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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53d4bfd68c5e7ae4c81ef2c70a648c4b72a1b862 | 108 | cpp | C++ | libdariadb/interfaces/imeasstorage.cpp | lysevi/memseries | e9c2e34b0723ea6e040ecdcce3d57153d32b061e | [
"Apache-2.0"
] | 24 | 2016-06-14T20:09:37.000Z | 2021-03-21T23:11:52.000Z | libdariadb/interfaces/imeasstorage.cpp | lysevi/dariadb | e9c2e34b0723ea6e040ecdcce3d57153d32b061e | [
"Apache-2.0"
] | 326 | 2016-03-18T08:04:33.000Z | 2017-07-03T08:47:37.000Z | libdariadb/interfaces/imeasstorage.cpp | lysevi/dariadb | e9c2e34b0723ea6e040ecdcce3d57153d32b061e | [
"Apache-2.0"
] | 8 | 2016-06-16T14:28:02.000Z | 2022-01-20T04:19:35.000Z | #include <libdariadb/interfaces/imeasstorage.h>
using namespace dariadb;
IMeasStorage::~IMeasStorage() {}
| 18 | 47 | 0.787037 | lysevi |
53d7eb8acc3a1ed686caee532258616aee5a514c | 990 | cpp | C++ | Codeforces/contests/round-549/a.cpp | Anzoteh96/Cpp-algorithms | 7519c65dcfa2018d81280fe947bef749970bb8bc | [
"MIT"
] | 1 | 2017-06-24T11:17:37.000Z | 2017-06-24T11:17:37.000Z | Codeforces/contests/round-549/a.cpp | Anzoteh96/Cpp-algorithms | 7519c65dcfa2018d81280fe947bef749970bb8bc | [
"MIT"
] | null | null | null | Codeforces/contests/round-549/a.cpp | Anzoteh96/Cpp-algorithms | 7519c65dcfa2018d81280fe947bef749970bb8bc | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll gcd(ll a, ll b) {
return (b == (ll)0) ? a : gcd(b, a % b);
}
int main () {
ll n, k;
cin >> n >> k; // n is the number of restaurants, k is their distance
// assume that the first
ll total = n * k;
ll a, b;
cin >> ... | 27.5 | 73 | 0.413131 | Anzoteh96 |
53e256525985698f2000eb27b61ed11a4ce3ec47 | 6,451 | cpp | C++ | src/Meshes.cpp | barne856/MARE | 5390fa15777876a7aebefe2c2aecf0b173011923 | [
"MIT"
] | 2 | 2020-05-23T19:37:18.000Z | 2020-06-07T23:25:43.000Z | src/Meshes.cpp | barne856/MARE | 5390fa15777876a7aebefe2c2aecf0b173011923 | [
"MIT"
] | null | null | null | src/Meshes.cpp | barne856/MARE | 5390fa15777876a7aebefe2c2aecf0b173011923 | [
"MIT"
] | 1 | 2021-03-17T09:53:58.000Z | 2021-03-17T09:53:58.000Z | // MARE
#include "Meshes.hpp"
#include "Renderer.hpp"
namespace mare {
SimpleMesh::SimpleMesh()
: geometry_buffer_count(0), vertex_render_count(0), index_render_count(0) {}
SimpleMesh::~SimpleMesh() { Renderer::destroy_mesh_render_states(this); }
void SimpleMesh::render(Camera *camera, Material *material) {
Rend... | 34.132275 | 80 | 0.705162 | barne856 |
53ecea2ed01d040f7608d2e2348143503cf40395 | 3,031 | cpp | C++ | liveloader/loader/main.cpp | MisterGC/clayground | 170072ecd5ca4dae9b75e4e37d819cbc435eeec3 | [
"Zlib"
] | 6 | 2020-07-15T07:40:50.000Z | 2021-12-10T01:50:04.000Z | liveloader/loader/main.cpp | MisterGC/clayground | 170072ecd5ca4dae9b75e4e37d819cbc435eeec3 | [
"Zlib"
] | 18 | 2020-11-09T11:34:29.000Z | 2022-01-16T11:56:26.000Z | liveloader/loader/main.cpp | MisterGC/clayground | 170072ecd5ca4dae9b75e4e37d819cbc435eeec3 | [
"Zlib"
] | 3 | 2020-10-15T17:28:53.000Z | 2020-10-15T17:31:28.000Z | // (c) serein.pfeiffer@gmail.com - zlib license, see "LICENSE" file
#include "utilityfunctions.h"
#include "clayliveloader.h"
#include <QApplication>
#include <QDir>
#include <QCommandLineParser>
#include <QDebug>
void processCmdLineArgs(const QGuiApplication& app, ClayLiveLoader& loader)
{
QCommandLineParser par... | 31.572917 | 125 | 0.60937 | MisterGC |
53f619a6dd10889822cb558afd2b9a2402a97cf0 | 266 | cpp | C++ | tests/main.cpp | bmharper/pal | 869db8c1d5c9979126442af448574332df153cd5 | [
"MIT"
] | null | null | null | tests/main.cpp | bmharper/pal | 869db8c1d5c9979126442af448574332df153cd5 | [
"MIT"
] | null | null | null | tests/main.cpp | bmharper/pal | 869db8c1d5c9979126442af448574332df153cd5 | [
"MIT"
] | 1 | 2022-02-23T09:57:17.000Z | 2022-02-23T09:57:17.000Z | #include "pch.h"
#include <third_party/TinyTest/TinyTestBuild.h>
/*
tundra2 pal_test && LD_LIBRARY_PATH=`pwd`/t2-output/linux-clang-debug-default t2-output/linux-clang-debug-default/pal_test Path
*/
int main(int argc, char** argv) {
return TTRun(argc, argv);
}
| 20.461538 | 127 | 0.740602 | bmharper |
53fbf7ead2a13a1f80b9256dc385f1668528b832 | 1,631 | hpp | C++ | src/jsoncons_ext/boost/type_extensions.hpp | avacore/jsoncons | 0fa3104b6237b3323a749c38ebeaaaebf55e9e48 | [
"BSL-1.0"
] | 3 | 2015-11-05T10:14:14.000Z | 2016-08-31T11:15:35.000Z | optmigrate/include/jsoncons_ext/boost/type_extensions.hpp | vollkorn/imgop-migrate | 9ded60bdac80b2e97e6dcc2a64d957bbbf8e967b | [
"MIT"
] | null | null | null | optmigrate/include/jsoncons_ext/boost/type_extensions.hpp | vollkorn/imgop-migrate | 9ded60bdac80b2e97e6dcc2a64d957bbbf8e967b | [
"MIT"
] | null | null | null | // Copyright 2013 Daniel Parker
// Distributed under the Boost license, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See https://sourceforge.net/projects/jsoncons/files/ for latest version
// See https://sourceforge.net/p/jsoncons/wiki/Home/ for documentati... | 26.306452 | 90 | 0.603311 | avacore |
d87f3308c25e8dbbe5f2dcbd6c355c6e90c94e6f | 241 | hh | C++ | src/Titon/Intl/locales/en/validations.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 206 | 2015-01-02T20:01:12.000Z | 2021-04-15T09:49:56.000Z | src/Titon/Intl/locales/en/validations.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 44 | 2015-01-02T06:03:43.000Z | 2017-11-20T18:29:06.000Z | src/Titon/Intl/locales/en/validations.hh | titon/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 27 | 2015-01-03T05:51:29.000Z | 2022-02-21T13:50:40.000Z | <?hh
return Map {
'currency' => '/^\$[0-9,]+(?:\.[0-9]{2})?$/',
'phone' => '/^(?:\+?1)?\s?(?:\([0-9]{3}\))?\s?[0-9]{3}-[0-9]{4}$/',
'postal_code' => '/^[0-9]{5}(?:-[0-9]{4})?$/',
'ssn' => '/^[0-9]{3}-[0-9]{2}-[0-9]{4}$/'
};
| 26.777778 | 71 | 0.290456 | ciklon-z |
d883e07588004bcc30d2872498ea599d0a4a378d | 354 | cpp | C++ | ProgrammingLanguages/C_family/LearnC++/LearnCpp/LearningFile/L28_Dice.cpp | tintinkung/LearningHub | 235ae7451dada88027a5463962cac9c672b8aa08 | [
"MIT"
] | null | null | null | ProgrammingLanguages/C_family/LearnC++/LearnCpp/LearningFile/L28_Dice.cpp | tintinkung/LearningHub | 235ae7451dada88027a5463962cac9c672b8aa08 | [
"MIT"
] | null | null | null | ProgrammingLanguages/C_family/LearnC++/LearnCpp/LearningFile/L28_Dice.cpp | tintinkung/LearningHub | 235ae7451dada88027a5463962cac9c672b8aa08 | [
"MIT"
] | null | null | null | #include "L28_Dice.hpp"
int Dice::ID = 0; // define static
int Dice::getPrivateID()
{
return Dice::ID;
}
Dice::Dice(const int value, const std::string color)
: value(value)
{
this->color = color;
Dice::ID++; //++ ID product it make dice unique id each object
}
Dice::~Dice()
{
}
const int Dice::toss() const
{
... | 14.75 | 63 | 0.641243 | tintinkung |
d889c47cb81a2e4cb91e16beb086fb0505e3446c | 1,333 | hpp | C++ | libs/core/font/include/bksge/core/font/otf/lookup.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/font/include/bksge/core/font/otf/lookup.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/font/include/bksge/core/font/otf/lookup.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file lookup.hpp
*
* @brief Lookup の定義
*
* @author myoukaku
*/
#ifndef BKSGE_CORE_FONT_OTF_LOOKUP_HPP
#define BKSGE_CORE_FONT_OTF_LOOKUP_HPP
#include <bksge/core/font/otf/read_big_endian.hpp>
#include <bksge/core/font/otf/types.hpp>
#include <bksge/fnd/memory/unique_ptr.hpp>
#include <cstdi... | 20.19697 | 67 | 0.68192 | myoukaku |
d88c17bd23379a747c4e6c73ecd3eea718bf954d | 7,290 | cpp | C++ | src/client/client/NetworkClient.cpp | samhanic/plt | 3fdbcd6fb945e6e680216bbf72e51cef7785d874 | [
"CC0-1.0"
] | 1 | 2019-09-18T20:45:56.000Z | 2019-09-18T20:45:56.000Z | src/client/client/NetworkClient.cpp | samhanic/plt | 3fdbcd6fb945e6e680216bbf72e51cef7785d874 | [
"CC0-1.0"
] | null | null | null | src/client/client/NetworkClient.cpp | samhanic/plt | 3fdbcd6fb945e6e680216bbf72e51cef7785d874 | [
"CC0-1.0"
] | null | null | null | #include "engine.h"
#include "../render.h"
#include "state.h"
#include "../client.h"
#include "ai.h"
#include <iostream>
#include <unistd.h>
#include <SFML/Graphics.hpp>
#include <SFML/Network.hpp>
#include <thread>
#include "../../../extern/jsoncpp-1.8.0/jsoncpp.cpp"
#include "../../src/shared/state.h"
#include "../.... | 37.772021 | 121 | 0.495062 | samhanic |
d89647b4fd9b0749153465d6d88fc58af6d1abfb | 249 | cc | C++ | build/ARM/python/m5/internal/param_RubyMemoryControl.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_RubyMemoryControl.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_RubyMemoryControl.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
extern "C" {
void init_param_RubyMemoryControl();
}
EmbeddedSwig embed_swig_param_RubyMemoryControl(init_param_RubyMemoryControl, "m5.internal._param_RubyMemoryControl");
| 27.666667 | 126 | 0.654618 | Jakgn |
d8a402c1071032d5a3ce8b8bfbf65a767fe0e30e | 13,368 | cpp | C++ | Minesweeper/VoidEngine/Graphics/UI/Widgets.cpp | VoidRune/Minesweeper | d36879cc89f4485199cf7000a326f14635305c07 | [
"MIT"
] | null | null | null | Minesweeper/VoidEngine/Graphics/UI/Widgets.cpp | VoidRune/Minesweeper | d36879cc89f4485199cf7000a326f14635305c07 | [
"MIT"
] | null | null | null | Minesweeper/VoidEngine/Graphics/UI/Widgets.cpp | VoidRune/Minesweeper | d36879cc89f4485199cf7000a326f14635305c07 | [
"MIT"
] | null | null | null | #include "Widgets.h"
namespace gui
{
bool Button(std::string title, float x, float y, float width, float height, vec3f color)
{
int winX = Window::Get().GetDimensions().x;
int winY = Window::Get().GetDimensions().y;
int minX = (x - width / 2.0f) * winX;
int maxX = (x + width / 2.0f) * winX;
int minY = (1.... | 34.276923 | 151 | 0.582436 | VoidRune |
d8affa0ef3d5292047dbc214fa5ef17a3765d158 | 7,509 | cpp | C++ | src/lib/stm32/stm32l0/CatenaStm32L0_CalibrateSystemClock.cpp | dhineshkumarmcci/Catena-Arduino-Platform | 478ad23318a7646f2e03170e9294b0ea69885da4 | [
"MIT"
] | 1 | 2021-11-27T22:56:25.000Z | 2021-11-27T22:56:25.000Z | src/lib/stm32/stm32l0/CatenaStm32L0_CalibrateSystemClock.cpp | dhineshkumarmcci/Catena-Arduino-Platform | 478ad23318a7646f2e03170e9294b0ea69885da4 | [
"MIT"
] | null | null | null | src/lib/stm32/stm32l0/CatenaStm32L0_CalibrateSystemClock.cpp | dhineshkumarmcci/Catena-Arduino-Platform | 478ad23318a7646f2e03170e9294b0ea69885da4 | [
"MIT"
] | 1 | 2021-04-03T09:56:13.000Z | 2021-04-03T09:56:13.000Z | /*
Module: CatenaStm32L0_CalibrateSystemClock.cpp
Function:
Home for CatenaStm32L0::CalibrateSystemClock()
Copyright notice:
See accompanying LICENSE file.
Author:
ChaeHee Won, MCCI Corporation October 2018
*/
#ifdef ARDUINO_ARCH_STM32
#include "CatenaStm32L0.h"
#include "Catena_Log.h"
using namespace McciC... | 22.020528 | 78 | 0.634039 | dhineshkumarmcci |
d8b029638493ccb29019a0dfe651cf71b2df8062 | 7,354 | cpp | C++ | src/datastack.cpp | cjungmann/SchemaServer | 2a15250b8d128ac3815ac3327889e0545422f73b | [
"MIT"
] | null | null | null | src/datastack.cpp | cjungmann/SchemaServer | 2a15250b8d128ac3815ac3327889e0545422f73b | [
"MIT"
] | null | null | null | src/datastack.cpp | cjungmann/SchemaServer | 2a15250b8d128ac3815ac3327889e0545422f73b | [
"MIT"
] | null | null | null | // -*- compile-command: "g++ -std=c++11 -Wall -Werror -Weffc++ -pedantic -ggdb -DINCLUDE_MAIN -o datastack datastack.cpp" -*-
#include "datastack.hpp"
/**
* @brief Calculate buffer size required to construct a line_handle.
*
* When this function was written, it was intended to coordinate with
* init_line_handle(... | 26.548736 | 125 | 0.632173 | cjungmann |
d8b21fd87cba49b89a68fe84abdf0a257a2f9ab3 | 826 | cpp | C++ | 0143_ReorderList.cpp | taro-masuda/leetcode | 39739e9fec7c66513b114c740ef982ccc09dc39f | [
"MIT"
] | null | null | null | 0143_ReorderList.cpp | taro-masuda/leetcode | 39739e9fec7c66513b114c740ef982ccc09dc39f | [
"MIT"
] | null | null | null | 0143_ReorderList.cpp | taro-masuda/leetcode | 39739e9fec7c66513b114c740ef982ccc09dc39f | [
"MIT"
] | 1 | 2020-03-18T05:23:40.000Z | 2020-03-18T05:23:40.000Z | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
void reorderList(List... | 24.294118 | 62 | 0.441889 | taro-masuda |
d8c32ffd65faa3a326e9416c1e6b241298618db5 | 42,159 | cpp | C++ | src/nbl/video/SOpenGLContextLocalCache.cpp | devshgraphicsprogramming/Nabla | 5588c69ac714734ca50b5d3c1409fed88b258bff | [
"Apache-2.0"
] | null | null | null | src/nbl/video/SOpenGLContextLocalCache.cpp | devshgraphicsprogramming/Nabla | 5588c69ac714734ca50b5d3c1409fed88b258bff | [
"Apache-2.0"
] | null | null | null | src/nbl/video/SOpenGLContextLocalCache.cpp | devshgraphicsprogramming/Nabla | 5588c69ac714734ca50b5d3c1409fed88b258bff | [
"Apache-2.0"
] | null | null | null | #include "nbl/video/IPhysicalDevice.h"
#include "nbl/video/ILogicalDevice.h"
#include "nbl/video/SOpenGLContextLocalCache.h"
#include "nbl/video/IOpenGL_LogicalDevice.h"
namespace nbl::video
{
void SOpenGLContextLocalCache::updateNextState_pipelineAndRaster(const IGPUGraphicsPipeline* _pipeline, uint32_t ctxid)
{
... | 50.732852 | 261 | 0.651178 | devshgraphicsprogramming |
d8c9ebb14416e1c3f10fb003e141eff65182e215 | 973 | hpp | C++ | cpp/std/src/std/TextQuery.hpp | hebostary/Notes | 32e0537ba6f2cb257cd2a202ba2504a7cf70a7ed | [
"Unlicense"
] | null | null | null | cpp/std/src/std/TextQuery.hpp | hebostary/Notes | 32e0537ba6f2cb257cd2a202ba2504a7cf70a7ed | [
"Unlicense"
] | null | null | null | cpp/std/src/std/TextQuery.hpp | hebostary/Notes | 32e0537ba6f2cb257cd2a202ba2504a7cf70a7ed | [
"Unlicense"
] | null | null | null | #ifndef TEXT_QUERY_H_
#define TEXT_QUERY_H_
#include "../common/common.hpp"
using namespace std;
using line_no = vector<string>::size_type;
class QueryResult;//重要,为了定义query函数的返回类型,这个定义是必须的
class TextQuery
{
public:
TextQuery(string file);
~TextQuery();
QueryResult query(const string& word) const;
private... | 24.325 | 85 | 0.716341 | hebostary |
d8ca1f23695e81b27ddb70231cfa304e2c256223 | 45 | cpp | C++ | old/hashcfb.cpp | fffaraz/SHA-CFB-OFB-CTR | b40d4255a8a409565aea3f9b1e15000873363354 | [
"MIT"
] | 1 | 2018-10-06T13:14:07.000Z | 2018-10-06T13:14:07.000Z | old/hashcfb.cpp | fffaraz/SHA-CFB-OFB-CTR | b40d4255a8a409565aea3f9b1e15000873363354 | [
"MIT"
] | null | null | null | old/hashcfb.cpp | fffaraz/SHA-CFB-OFB-CTR | b40d4255a8a409565aea3f9b1e15000873363354 | [
"MIT"
] | null | null | null | #include "hashcfb.h"
HashCFB::HashCFB()
{
}
| 7.5 | 20 | 0.644444 | fffaraz |
d8cc1f84a2ec0b2c5e49f154f8efd58f68301aca | 17,319 | cpp | C++ | XivAlexander/App_Window_MainWindow.cpp | SoonKeatNeo/XivAlexander | 4ec6bc7596288516ca3425e2defd0bc710b3b627 | [
"Apache-2.0"
] | null | null | null | XivAlexander/App_Window_MainWindow.cpp | SoonKeatNeo/XivAlexander | 4ec6bc7596288516ca3425e2defd0bc710b3b627 | [
"Apache-2.0"
] | null | null | null | XivAlexander/App_Window_MainWindow.cpp | SoonKeatNeo/XivAlexander | 4ec6bc7596288516ca3425e2defd0bc710b3b627 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "resource.h"
#include "App_XivAlexApp.h"
#include "App_Window_ConfigWindow.h"
#include "App_Window_MainWindow.h"
#include "App_Network_SocketHook.h"
#include "XivAlexander/XivAlexander.h"
static const auto WmTrayCallback = WM_APP + 1;
static const int TrayItemId = 1;
static const int TimerIdR... | 36.692797 | 155 | 0.715053 | SoonKeatNeo |
d8d252abe5f97d794b03617e582b02d52d928647 | 653 | cpp | C++ | patbasic/test1066.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | patbasic/test1066.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | patbasic/test1066.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | //
// Created by neild47 on 18-5-1.
//
#include <iostream>
using namespace std;
int test1066() {
int m, n, low, up, k;
scanf("%d%d%d%d%d", &m, &n, &low, &up, &k);
int tmp;
for (int i = 0; i < m; i++) {
scanf("%d", &tmp);
if (tmp >= low && tmp <= up) {
printf("%03d", k);
... | 20.40625 | 47 | 0.355283 | neild47 |
d8d65bf22678be53304d9a2732c260bde2488df5 | 1,158 | hpp | C++ | messages/error.hpp | VlinderSoftware/securitylayer | 0daef0efe08af2649b164affcbdd30845a7806cd | [
"Apache-2.0"
] | 1 | 2020-07-16T01:34:06.000Z | 2020-07-16T01:34:06.000Z | messages/error.hpp | blytkerchan/securitylayer | 0daef0efe08af2649b164affcbdd30845a7806cd | [
"Apache-2.0"
] | 1 | 2020-07-23T02:55:31.000Z | 2020-07-23T02:55:31.000Z | messages/error.hpp | blytkerchan/securitylayer | 0daef0efe08af2649b164affcbdd30845a7806cd | [
"Apache-2.0"
] | 1 | 2020-07-03T00:06:20.000Z | 2020-07-03T00:06:20.000Z | /* Copyright 2019 Ronald Landheer-Cieslak
*
* 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 a... | 25.173913 | 76 | 0.734024 | VlinderSoftware |
d8e187636698e6e09b4990bff39fd2c04d8272d0 | 701 | cpp | C++ | modules/JUCE/atk_core/atk_core.cpp | AudioTK/AudioTK | dba42eea68534501efe74692b74edf4792cca231 | [
"BSD-3-Clause"
] | 23 | 2021-02-04T10:47:46.000Z | 2022-03-25T03:45:00.000Z | modules/JUCE/atk_core/atk_core.cpp | AudioTK/AudioTK | dba42eea68534501efe74692b74edf4792cca231 | [
"BSD-3-Clause"
] | 2 | 2021-02-01T15:45:06.000Z | 2021-09-13T19:39:05.000Z | modules/JUCE/atk_core/atk_core.cpp | AudioTK/AudioTK | dba42eea68534501efe74692b74edf4792cca231 | [
"BSD-3-Clause"
] | 2 | 2021-04-12T03:28:12.000Z | 2021-12-17T00:47:11.000Z | /*
==============================================================================
This file is part of the ATK library.
Copyright (c) 2017 - Matthieu Brucher
ATK is an open source library subject to the BSD licnse.
==============================================================================
*/
#include "... | 30.478261 | 79 | 0.592011 | AudioTK |
d8e279c7e975d4c3affcfa99c20b99c14de303d3 | 2,870 | cpp | C++ | src/osvr/Common/AddDevice.cpp | ccccjason/OSVR_device_plugin | 6c9171265900530341cfa79357151daa39618737 | [
"Apache-2.0"
] | 1 | 2022-03-28T05:09:11.000Z | 2022-03-28T05:09:11.000Z | src/osvr/Common/AddDevice.cpp | ccccjason/my_osvr | fdb2a64cbf88211c34f8c8bd42f0f83a6b98769e | [
"Apache-2.0"
] | null | null | null | src/osvr/Common/AddDevice.cpp | ccccjason/my_osvr | fdb2a64cbf88211c34f8c8bd42f0f83a6b98769e | [
"Apache-2.0"
] | null | null | null | /** @file
@brief Implementation
@date 2014
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2014 Sensics, Inc.
//
// 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 L... | 37.272727 | 80 | 0.601742 | ccccjason |
d8ecd6f675b130df2badfb78c8030cc0bd853e00 | 1,033 | cpp | C++ | lintcode/1219.1.cpp | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:49.000Z | 2021-01-08T06:57:49.000Z | lintcode/1219.1.cpp | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | null | null | null | lintcode/1219.1.cpp | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:52.000Z | 2021-01-08T06:57:52.000Z | /**
* 1219. Heaters
* https://www.lintcode.com/problem/heaters/leaderboard
*/
class Solution {
public:
/**
* @param houses: positions of houses
* @param heaters: positions of heaters
* @return: the minimum radius standard of heaters
*/
int findRadius(vector<int> &houses, vector<int> &heat... | 29.514286 | 77 | 0.538238 | jianershi |
d8f0a7732124364dfa578f95c1557287d3f128a9 | 3,625 | cpp | C++ | samples/VideoClient/src/VideoClientApp.cpp | jing-interactive/Cinder-Stream | 4c03ce2e33d60d49e1807aa73fc289262bf7edc8 | [
"MIT"
] | 4 | 2017-04-11T08:22:32.000Z | 2020-05-27T20:25:24.000Z | samples/VideoClient/src/VideoClientApp.cpp | vnm-interactive/Cinder-Stream | 4c03ce2e33d60d49e1807aa73fc289262bf7edc8 | [
"MIT"
] | 1 | 2017-06-09T17:22:59.000Z | 2017-06-14T11:02:26.000Z | samples/VideoClient/src/VideoClientApp.cpp | vnm-interactive/Cinder-Stream | 4c03ce2e33d60d49e1807aa73fc289262bf7edc8 | [
"MIT"
] | null | null | null | /*
CinderStreamingClientApp.cpp
Created by Vladimir Gusev on 01/15/2015.
Copyright (c) 2015 scriptum.ru
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 limi... | 28.320313 | 110 | 0.712828 | jing-interactive |
d8f2daa63f0038b83cd72a219caf58d9bd675381 | 6,246 | cpp | C++ | src/stable/tcpserversocket.cpp | zippy/libbu | 6c79102419f9e79d25751fefc155f746496f4b50 | [
"BSD-3-Clause"
] | 1 | 2020-02-20T23:15:54.000Z | 2020-02-20T23:15:54.000Z | src/stable/tcpserversocket.cpp | zippy/libbu | 6c79102419f9e79d25751fefc155f746496f4b50 | [
"BSD-3-Clause"
] | null | null | null | src/stable/tcpserversocket.cpp | zippy/libbu | 6c79102419f9e79d25751fefc155f746496f4b50 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2007-2013 Xagasoft, All rights reserved.
*
* This file is part of the libbu++ library and is released under the
* terms of the license contained in the file LICENSE.
*/
#include "bu/config.h"
#ifndef WIN32
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/in... | 24.209302 | 89 | 0.59318 | zippy |
d8f5d3f0cd30418e75c7db600ca5130867a7155a | 727 | cpp | C++ | src/plugins/gta3/std.data/data_traits/fonts.cpp | gtaisbetterthanfn/modloader | 18f85c2766d4e052a452c7b1d8f5860a6daac24b | [
"MIT"
] | 186 | 2015-01-18T05:46:11.000Z | 2022-03-22T10:03:44.000Z | src/plugins/gta3/std.data/data_traits/fonts.cpp | AlisonMDL/modloader | 18f85c2766d4e052a452c7b1d8f5860a6daac24b | [
"MIT"
] | 82 | 2015-01-14T01:02:04.000Z | 2022-03-20T23:55:59.000Z | src/plugins/gta3/std.data/data_traits/fonts.cpp | AlisonMDL/modloader | 18f85c2766d4e052a452c7b1d8f5860a6daac24b | [
"MIT"
] | 34 | 2015-01-07T11:17:00.000Z | 2022-02-28T00:16:20.000Z | /*
* Copyright (C) 2015 LINK/2012 <dma_2012@hotmail.com>
* Licensed under the MIT License, see LICENSE at top level directory.
*
*/
#include <stdinc.hpp>
#include "../data_traits.hpp"
using namespace modloader;
struct fonts_traits
{
struct dtraits : modloader::dtraits::OpenFile
{
static const cha... | 25.068966 | 108 | 0.694635 | gtaisbetterthanfn |
d8f66ad216a4921286c70abe60b5522bf592338b | 1,526 | cpp | C++ | Classes/UIControl/UIPause/UIPause.cpp | friedcroco070801/bloodypenguins | 35f62812ca3e5a15de64bd2808eabbdc82fd848b | [
"MIT"
] | null | null | null | Classes/UIControl/UIPause/UIPause.cpp | friedcroco070801/bloodypenguins | 35f62812ca3e5a15de64bd2808eabbdc82fd848b | [
"MIT"
] | null | null | null | Classes/UIControl/UIPause/UIPause.cpp | friedcroco070801/bloodypenguins | 35f62812ca3e5a15de64bd2808eabbdc82fd848b | [
"MIT"
] | 1 | 2022-02-06T21:44:31.000Z | 2022-02-06T21:44:31.000Z | #include "UIPause.h"
#include "Models/models.h"
#include "UIControl/UIPauseLayer/UIPauseLayer.h"
#include "editor-support/cocostudio/SimpleAudioEngine.h"
#include <functional>
using namespace std;
using namespace CocosDenshion;
UIPause* UIPause::create(LevelModel* level) {
UIPause *btn = new (std::nothrow) UIPause;
... | 31.791667 | 140 | 0.594364 | friedcroco070801 |
d8ff0330e13dc8fa7200293d92c01a625650f45b | 275 | cpp | C++ | 1-Iniciante/03/1114.cpp | pedrospaulo/01-C- | d513a2fd87a82d90780aa69782d1a1b73b53d6c1 | [
"MIT"
] | null | null | null | 1-Iniciante/03/1114.cpp | pedrospaulo/01-C- | d513a2fd87a82d90780aa69782d1a1b73b53d6c1 | [
"MIT"
] | null | null | null | 1-Iniciante/03/1114.cpp | pedrospaulo/01-C- | d513a2fd87a82d90780aa69782d1a1b73b53d6c1 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <iostream>
using namespace std;
int main(){
int numero;
while(cin >> numero)
{
if (numero == 2002)
{
printf("Acesso Permitido\n");
break;
}
else
{
printf("Senha Invalida\n");
}
}
return 0;
}
| 11.458333 | 35 | 0.527273 | pedrospaulo |
2b1364e15c7dc6fe86361bb7e82be358b34d6bf0 | 1,041 | hpp | C++ | include/Interface.hpp | dargonfyl/imgui-painter | b4b3008b127da86576429506d9ab5d378a6bcc4d | [
"Unlicense"
] | null | null | null | include/Interface.hpp | dargonfyl/imgui-painter | b4b3008b127da86576429506d9ab5d378a6bcc4d | [
"Unlicense"
] | null | null | null | include/Interface.hpp | dargonfyl/imgui-painter | b4b3008b127da86576429506d9ab5d378a6bcc4d | [
"Unlicense"
] | null | null | null | #pragma once
#include <imgui.h>
#include "Canvas.hpp"
#include "Renderer.hpp"
namespace Im_Painter
{
/**
* UI functions. You must have imgui setup already done, otherwise none of this will work.
*
* Note that this also includes global hotkeys, which you should be aware of.
*/
namespace UI
{
/**
* Ke... | 20.411765 | 91 | 0.636888 | dargonfyl |
2b15f83a7f5daae19a62300085d91c3a9d8de28f | 6,668 | cpp | C++ | etherlib/account.cpp | ahuachen/ethslurp | bc7354cc03599eaa82fdc431f7adc8b223619fc1 | [
"MIT"
] | 3 | 2020-12-29T16:10:55.000Z | 2021-12-20T19:13:11.000Z | etherlib/account.cpp | ahuachen/ethslurp | bc7354cc03599eaa82fdc431f7adc8b223619fc1 | [
"MIT"
] | null | null | null | etherlib/account.cpp | ahuachen/ethslurp | bc7354cc03599eaa82fdc431f7adc8b223619fc1 | [
"MIT"
] | 3 | 2017-10-08T00:43:04.000Z | 2021-12-20T19:13:16.000Z | /*--------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2016 Great Hill Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Soft... | 32.686275 | 106 | 0.60138 | ahuachen |
2b17f1123eac080e035fabaf175b499bda19cbba | 11,247 | cpp | C++ | src/graphics/3dgraphics/FortressRenderer.cpp | macsforme/dominicus | 188c05f49faeb21b33f55190441859e474868d16 | [
"BSD-2-Clause"
] | 2 | 2018-11-21T19:08:39.000Z | 2018-11-21T19:08:43.000Z | src/graphics/3dgraphics/FortressRenderer.cpp | macsforme/dominicus | 188c05f49faeb21b33f55190441859e474868d16 | [
"BSD-2-Clause"
] | null | null | null | src/graphics/3dgraphics/FortressRenderer.cpp | macsforme/dominicus | 188c05f49faeb21b33f55190441859e474868d16 | [
"BSD-2-Clause"
] | null | null | null | // FortressRenderer.cpp
// Dominicus
#include "graphics/3dgraphics/FortressRenderer.h"
#include <cstdlib>
#include <map>
#include <string>
#include <vector>
#include "core/GameSystem.h"
#include "graphics/GameGraphics.h"
#include "math/MatrixMath.h"
#include "math/ScalarMath.h"
#include "platform/OpenGLHeaders.h"
#i... | 46.8625 | 208 | 0.747844 | macsforme |
2b1c18e314cbefde6847547a87d90cf1c92697dd | 3,178 | cpp | C++ | src/HCStream.cpp | a1sabau/bloomstream | 9195e3dea4bc7321a9dbf7a968d9c66285e38f7a | [
"MIT"
] | null | null | null | src/HCStream.cpp | a1sabau/bloomstream | 9195e3dea4bc7321a9dbf7a968d9c66285e38f7a | [
"MIT"
] | null | null | null | src/HCStream.cpp | a1sabau/bloomstream | 9195e3dea4bc7321a9dbf7a968d9c66285e38f7a | [
"MIT"
] | 1 | 2020-01-08T00:38:28.000Z | 2020-01-08T00:38:28.000Z | #include <Rcpp.h>
#include <utility>
#include <vector>
#include <string>
#include <algorithm>
#include <sstream>
#include <iterator>
#include <iostream>
#include <math.h>
#include "commons.h"
#include "Grid.hpp"
#include "SketchUtils.hpp"
#include "CountMinSketch.hpp"
#include "FlatBloofi.hpp"
class HCStream {
publ... | 24.259542 | 84 | 0.664254 | a1sabau |
2b1d09776901c65b2f5b7dc4fb9557e395613e6b | 1,512 | cpp | C++ | SpaceStationRescueSouls/SpaceStationRescueSouls/src/system/RenderSystem.cpp | Neversee-Productions/Space-Station-Rescue-Souls | 48621dd8ddf9c6282669b1547ebca0af56ef7fa9 | [
"MIT"
] | 1 | 2020-03-24T04:40:18.000Z | 2020-03-24T04:40:18.000Z | SpaceStationRescueSouls/SpaceStationRescueSouls/src/system/RenderSystem.cpp | Neversee-Productions/Space-Station-Rescue-Souls | 48621dd8ddf9c6282669b1547ebca0af56ef7fa9 | [
"MIT"
] | null | null | null | SpaceStationRescueSouls/SpaceStationRescueSouls/src/system/RenderSystem.cpp | Neversee-Productions/Space-Station-Rescue-Souls | 48621dd8ddf9c6282669b1547ebca0af56ef7fa9 | [
"MIT"
] | 1 | 2020-03-24T04:40:19.000Z | 2020-03-24T04:40:19.000Z | #include "stdafx.h"
#include "RenderSystem.h"
#include "visitor/RenderFillVisitor.h"
// Component
#include "component/Camera.h"
#include "component/Location.h"
#include "component/Dimensions.h"
#include "component/RenderRect.h"
app::sys::RenderSystem::RenderSystem(app::gra::Window & window)
: m_window(window)
, m... | 34.363636 | 136 | 0.72619 | Neversee-Productions |
2b1e15c5ec5b34435a548e50194688c29859dd7c | 84,671 | cpp | C++ | integer/test_multshiftround_shiftround_run.cpp | slugrustle/numerical_routines | 50a8071a0bdb913ae4dca1045312d20da778189b | [
"CC0-1.0"
] | 1 | 2019-10-12T09:22:41.000Z | 2019-10-12T09:22:41.000Z | integer/test_multshiftround_shiftround_run.cpp | slugrustle/numerical_routines | 50a8071a0bdb913ae4dca1045312d20da778189b | [
"CC0-1.0"
] | null | null | null | integer/test_multshiftround_shiftround_run.cpp | slugrustle/numerical_routines | 50a8071a0bdb913ae4dca1045312d20da778189b | [
"CC0-1.0"
] | null | null | null | /**
* test_multshiftround_shiftround_run.cpp
* Unit tests for the multshiftround and shiftround functions that
* evaluate the shift argument at runtime. These functions are tested
* separately from those that require the shift argument at compile
* time because they can be conditionally compiled to use rounding ma... | 46.167394 | 259 | 0.670418 | slugrustle |
2b1f197a983216675239ba86dd35fc925d4a2bc8 | 3,205 | cpp | C++ | src/GUI/Actions/Move.cpp | davidgreisler/four-in-a-line | a21014e926df30359365d76510c64665e49096e3 | [
"MIT"
] | 4 | 2015-01-18T09:33:30.000Z | 2019-02-28T12:00:09.000Z | src/GUI/Actions/Move.cpp | davidgreisler/four-in-a-line | a21014e926df30359365d76510c64665e49096e3 | [
"MIT"
] | null | null | null | src/GUI/Actions/Move.cpp | davidgreisler/four-in-a-line | a21014e926df30359365d76510c64665e49096e3 | [
"MIT"
] | null | null | null | #include "Move.hpp"
#include "../GameView.hpp"
#include <QAction>
#include <QEvent>
#include <QWidget>
#include <QMenu>
#include <QIcon>
namespace GUI
{
namespace Actions
{
/**
* Creates a new move action container.
*
* @param gameView Game view, used to invoke undo/show hint actions for the game.
* @param paren... | 20.544872 | 81 | 0.685803 | davidgreisler |
2b27b956111105beb243c63863ad9f1a041cfe9d | 8,306 | cc | C++ | parser_RF.cc | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | parser_RF.cc | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | parser_RF.cc | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | /*! \file
\brief Parsing for objects specific to RF
*/
#include "parser_common.hpp"
#include "NMRsim_RF.h"
#include "Parser.h"
//! builder for ::CycledSequence
struct CycledSeqBuilder {
CycledSeqBuilder(VariableBuilder& varbuilderv) : varbuilder_(varbuilderv) {}
VariableBuilder& varbuilder_; //!< builder for p... | 31.343396 | 133 | 0.69203 | dch0ph |
2b297f8f461fcb9210a3394793dd971d9d273e75 | 2,962 | cpp | C++ | competitive_programming/data_structures/vectors.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 205 | 2018-12-01T17:49:49.000Z | 2021-12-22T07:02:27.000Z | competitive_programming/data_structures/vectors.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 2 | 2020-01-01T16:34:29.000Z | 2020-04-26T19:11:13.000Z | competitive_programming/data_structures/vectors.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 50 | 2018-11-28T20:51:36.000Z | 2021-11-29T04:08:25.000Z | #include <string>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
// passing vector as reference
void desc_sort(vector<int> &v) {
sort(v.begin(), v.end(), greater<int>());
}
// passing vector as pointer
void desc_sort(vector<int> *v) {
sort(v->begin(), v->end(), greater<int>());
}... | 20.287671 | 61 | 0.581026 | LeandroTk |
1a72ef2c09d3df49c8f7d65fb777e5bea3029e92 | 719 | cpp | C++ | src/container.cpp | dfintha/mash | 22a4806d2e8df50f291a7377c3901117889d5b76 | [
"WTFPL"
] | null | null | null | src/container.cpp | dfintha/mash | 22a4806d2e8df50f291a7377c3901117889d5b76 | [
"WTFPL"
] | null | null | null | src/container.cpp | dfintha/mash | 22a4806d2e8df50f291a7377c3901117889d5b76 | [
"WTFPL"
] | null | null | null | #include "container.hpp"
mash::container::container() : contents(nullptr) { }
mash::container::container(mash::exprptr rhs) : contents(rhs) { }
mash::container::container(const mash::container& rhs) : contents(rhs.contents) { }
mash::container& mash::container::operator=(const mash::container& rhs) {
contents = rh... | 23.193548 | 83 | 0.703755 | dfintha |
1a74aacee37538dd3f39e8295b3cd1bf411767df | 483 | hpp | C++ | EngineController.hpp | BlackPhrase/CarEngineSimulation | c7f98dc6ea3b8e1acceb116631052a4ea7f6017b | [
"Unlicense"
] | null | null | null | EngineController.hpp | BlackPhrase/CarEngineSimulation | c7f98dc6ea3b8e1acceb116631052a4ea7f6017b | [
"Unlicense"
] | null | null | null | EngineController.hpp | BlackPhrase/CarEngineSimulation | c7f98dc6ea3b8e1acceb116631052a4ea7f6017b | [
"Unlicense"
] | 1 | 2019-12-27T03:12:24.000Z | 2019-12-27T03:12:24.000Z | #pragma once
class cEngine;
class cEngineController final
{
public:
cEngineController(/*cEngine *apEngine*/);
~cEngineController();
//void SetEngine(cEngine *apEngine){mpEngine = apEngine;}
//cEngine *GetEngine() const {return mpEngine;}
void StartEngine(cEngine *apEngine);
void StopEngine(cEngine *apEngine... | 21.954545 | 67 | 0.745342 | BlackPhrase |
1a7539a088d145ed2b8486bd3c0f7ecd004451c1 | 1,440 | cpp | C++ | jlp_x11plot/jlp_glogbk.cpp | jlprieur/jlplib | 6073d7a7eb76d916662b1f8a4eb54f345cf7c772 | [
"MIT"
] | null | null | null | jlp_x11plot/jlp_glogbk.cpp | jlprieur/jlplib | 6073d7a7eb76d916662b1f8a4eb54f345cf7c772 | [
"MIT"
] | null | null | null | jlp_x11plot/jlp_glogbk.cpp | jlprieur/jlplib | 6073d7a7eb76d916662b1f8a4eb54f345cf7c772 | [
"MIT"
] | 1 | 2020-07-09T00:20:49.000Z | 2020-07-09T00:20:49.000Z | /*************************************************************************
* jlp_glogbk.cpp
* JLP_GLogbk Class: routine to create a popup window
* in order to display the logbook (with the values of some parameters)
*
* C++ version with classes
*
* JLP
* Version 04/12/2008
*******************************************... | 26.181818 | 78 | 0.463194 | jlprieur |
1a826d796286e708637e54eb4eb35ef8c7c8f3e2 | 593 | cpp | C++ | ws/ws1/process.cpp | blackHatMonkey/BTP305 | 21f8025b151493185a5156ceec5e54260c8018c6 | [
"MIT"
] | 1 | 2020-12-14T21:49:58.000Z | 2020-12-14T21:49:58.000Z | ws/ws1/process.cpp | blackHatMonkey/BTP305 | 21f8025b151493185a5156ceec5e54260c8018c6 | [
"MIT"
] | null | null | null | ws/ws1/process.cpp | blackHatMonkey/BTP305 | 21f8025b151493185a5156ceec5e54260c8018c6 | [
"MIT"
] | 1 | 2020-01-18T19:21:36.000Z | 2020-01-18T19:21:36.000Z | // Name: Brian Smith
// Seneca Student ID: 137105177
// Seneca email: bsmith55@myseneca.ca
// Date of completion: 8/9/2018
//
// I confirm that the content of this file is created by me,
// with the exception of the parts provided to me by my professor.
#include <iostream>
#include "CString.h"
/*
* Process a string ... | 23.72 | 66 | 0.644182 | blackHatMonkey |
1a83cb5fb4bab28a27ef9380182fac9e2d3b6547 | 15,787 | hpp | C++ | code/vpp/docs/conceptual/headers/vppLangIntVertex.hpp | maikebing/vpp | efa6c32f898e103d749764ce3a0b7dc29d6e9a51 | [
"BSD-2-Clause"
] | null | null | null | code/vpp/docs/conceptual/headers/vppLangIntVertex.hpp | maikebing/vpp | efa6c32f898e103d749764ce3a0b7dc29d6e9a51 | [
"BSD-2-Clause"
] | null | null | null | code/vpp/docs/conceptual/headers/vppLangIntVertex.hpp | maikebing/vpp | efa6c32f898e103d749764ce3a0b7dc29d6e9a51 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright 2016-2018 SOFT-ERG, Przemek Kuczmierczyk (www.softerg.com)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above... | 39.765743 | 99 | 0.606258 | maikebing |
1a8470613e27132978b0a37d4d84122d6e695d0f | 486 | cpp | C++ | widest-vertical-area-between-two-points-containing-no-points/widest-vertical-area-between-two-points-containing-no-points.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | 1 | 2022-02-14T07:57:07.000Z | 2022-02-14T07:57:07.000Z | widest-vertical-area-between-two-points-containing-no-points/widest-vertical-area-between-two-points-containing-no-points.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | null | null | null | widest-vertical-area-between-two-points-containing-no-points/widest-vertical-area-between-two-points-containing-no-points.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | null | null | null | class Solution {
public:
int maxWidthOfVerticalArea(vector<vector<int>>& points) {
vector<int> vertical;
for(int i=0; i<points.size(); i++)
{
vertical.push_back(points[i][0]);
}
sort(vertical.begin(), vertical.end());
int max=0;
for(int i=1; i<poin... | 25.578947 | 61 | 0.487654 | sharmishtha2401 |
1a8612ba3915d6839c36b3e91c35fbfdb9e390bd | 1,770 | hpp | C++ | src/dense_hash_set.hpp | AlexisWilke/cpp-driver | 9ca662826d46a528ef02b4cbd4cff6cb25ca1fe6 | [
"Apache-2.0"
] | null | null | null | src/dense_hash_set.hpp | AlexisWilke/cpp-driver | 9ca662826d46a528ef02b4cbd4cff6cb25ca1fe6 | [
"Apache-2.0"
] | null | null | null | src/dense_hash_set.hpp | AlexisWilke/cpp-driver | 9ca662826d46a528ef02b4cbd4cff6cb25ca1fe6 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) DataStax, Inc.
This software can be used solely with DataStax Enterprise. Please consult the
license at http://www.datastax.com/terms/datastax-dse-driver-license-terms
*/
#ifndef __DSE_DENSE_HASH_SET_HPP_INCLUDED__
#define __DSE_DENSE_HASH_SET_HPP_INCLUDED__
#include "allocator.hpp"
#include ... | 35.4 | 94 | 0.570621 | AlexisWilke |
1a9620fa5bb631256f9c622747586ed542270532 | 333 | cxx | C++ | examples/old/to_str2.cxx | GenericUserbame/cx | a9d97d6a441d109ef4d5a0afcbd98b90cac4cb94 | [
"MIT"
] | 2 | 2016-08-22T11:19:49.000Z | 2017-09-06T16:17:52.000Z | examples/old/to_str2.cxx | GenericUserbame/cx | a9d97d6a441d109ef4d5a0afcbd98b90cac4cb94 | [
"MIT"
] | 71 | 2015-07-25T00:21:36.000Z | 2016-01-24T08:14:45.000Z | examples/old/to_str2.cxx | GenericUserbame/cx | a9d97d6a441d109ef4d5a0afcbd98b90cac4cb94 | [
"MIT"
] | null | null | null | #include io
/** @param void
*/
int main () {
bool *b = {true,false,false,true,true};
int *a = {0,1,2,3,4};
char *c = "some long ass string to_str splat";
float *d = {1.1,2.2,3.3,4.4,5.5};
io::puts(a.to_str);
io::puts(b.to_str);
io::puts(c.to_str);
io::puts(d.to_str);
... | 17.526316 | 50 | 0.507508 | GenericUserbame |
1a976e3bec9ef58e02c4482758ebd618eadbc840 | 7,567 | cpp | C++ | saga/saga/packages/advert/advert.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | saga/saga/packages/advert/advert.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | saga/saga/packages/advert/advert.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | #if defined(__WAVE__) && defined(SAGA_CREATE_PREPROCESSED_FILES)
#pragma wave option(preserve: 2, line: 1, output: "preprocessed/advert.cpp")
#endif
// Copyright (c) 2005-2009 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// job LICENSE_1_0.txt or copy at http://... | 36.205742 | 104 | 0.55372 | saga-project |
1a98d7e3d3b0edaef6b7259c82c56caa92bbbc9f | 1,385 | cpp | C++ | CIS22A HW 3/main.cpp | ishani-chakraborty/cis22a-homeworks | 203b907b74458135e2257f79ea7a6f10a142c063 | [
"MIT"
] | null | null | null | CIS22A HW 3/main.cpp | ishani-chakraborty/cis22a-homeworks | 203b907b74458135e2257f79ea7a6f10a142c063 | [
"MIT"
] | null | null | null | CIS22A HW 3/main.cpp | ishani-chakraborty/cis22a-homeworks | 203b907b74458135e2257f79ea7a6f10a142c063 | [
"MIT"
] | 1 | 2022-02-27T23:06:23.000Z | 2022-02-27T23:06:23.000Z | #include <iostream>
#include <iomanip>
#include <cmath>
/*
Homework 3
Author: Ishani Chakraborty
Program purpose: calculate the focus, the area,
and the circumference of an ellipse
*/
using namespace std;
int main(){
cout << "This program calculates the focus, area, and circumference of an ellipse." << endl;
... | 28.854167 | 96 | 0.583394 | ishani-chakraborty |
1a98e1fbcea973270e2fc8fbc46df0771d9cca42 | 3,695 | cc | C++ | ns-allinone-2.35/tclcl-1.20/tkAppInit.cc | nitishk017/ns2project | f037b796ff10300ffe0422580be5855c37d0b140 | [
"MIT"
] | 1 | 2020-05-29T13:04:42.000Z | 2020-05-29T13:04:42.000Z | ns-allinone-2.35/tclcl-1.20/tkAppInit.cc | nitishk017/ns2project | f037b796ff10300ffe0422580be5855c37d0b140 | [
"MIT"
] | null | null | null | ns-allinone-2.35/tclcl-1.20/tkAppInit.cc | nitishk017/ns2project | f037b796ff10300ffe0422580be5855c37d0b140 | [
"MIT"
] | 1 | 2022-02-26T05:49:26.000Z | 2022-02-26T05:49:26.000Z | /*
* tkAppInit.c --
*
* Provides a default version of the Tcl_AppInit procedure for
* use in wish and similar Tk-based applications.
*
* Copyright (c) 1993 The Regents of the University of California.
* Copyright (c) 1994 Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and red... | 24.150327 | 75 | 0.619215 | nitishk017 |
1a996fa90f75b5fb2fd761bbb7f2846494e69a7f | 62,907 | hpp | C++ | NalDevDrv.hpp | Vicshann/Common | f5f5145382ecac5e44459ad9fceb4bc281afd5df | [
"MIT"
] | 4 | 2018-05-22T13:43:34.000Z | 2021-12-21T08:33:59.000Z | NalDevDrv.hpp | Vicshann/Common | f5f5145382ecac5e44459ad9fceb4bc281afd5df | [
"MIT"
] | null | null | null | NalDevDrv.hpp | Vicshann/Common | f5f5145382ecac5e44459ad9fceb4bc281afd5df | [
"MIT"
] | 3 | 2020-03-21T10:56:17.000Z | 2021-12-24T11:31:10.000Z |
#pragma once
/*
Copyright (c) 2021 Victor Sheinmann, Vicshann@gmail.com
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,... | 42.447368 | 327 | 0.732049 | Vicshann |
1a998d2d9b423889a56d415471dd4fec2d231e10 | 2,996 | hpp | C++ | system/apps_experiments/118_basic/source/terminal-basic/basic_extmemfs.hpp | MotoMaxis/LA104 | b0c99bf2e90d6f6ebe3a9e938d5598f759b2a7c2 | [
"MIT"
] | 1 | 2021-06-20T15:28:38.000Z | 2021-06-20T15:28:38.000Z | system/apps_experiments/118_basic/source/terminal-basic/basic_extmemfs.hpp | MotoMaxis/LA104 | b0c99bf2e90d6f6ebe3a9e938d5598f759b2a7c2 | [
"MIT"
] | null | null | null | system/apps_experiments/118_basic/source/terminal-basic/basic_extmemfs.hpp | MotoMaxis/LA104 | b0c99bf2e90d6f6ebe3a9e938d5598f759b2a7c2 | [
"MIT"
] | null | null | null | /*
* Terminal-BASIC is a lightweight BASIC-like language interpreter
*
* Copyright (C) 2016-2018 Andrey V. Skvortsov <starling13@mail.ru>
* Copyright (C) 2019,2020 Terminal-BASIC team
* <https://bitbucket.org/%7Bf50d6fee-8627-4ce4-848d-829168eedae5%7D/>
*
* This program is free software: you can redistribut... | 22.526316 | 76 | 0.739987 | MotoMaxis |
1a9b553d69f22c244d74a29fbf462f11132c2c0f | 497 | cpp | C++ | HackerEarth/Prime.cpp | canis-majoris123/CompetitiveProgramming | be6c208abe6e0bd748c3bb0e715787506d73588d | [
"MIT"
] | null | null | null | HackerEarth/Prime.cpp | canis-majoris123/CompetitiveProgramming | be6c208abe6e0bd748c3bb0e715787506d73588d | [
"MIT"
] | null | null | null | HackerEarth/Prime.cpp | canis-majoris123/CompetitiveProgramming | be6c208abe6e0bd748c3bb0e715787506d73588d | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
int n, count;
cin >> n;
for(int j = 1; j <= n; j++)
{
count = 0;
for(int i = 2; i <= j/2; i++ )
{
if( j % i == 0 )
{
... | 18.407407 | 39 | 0.309859 | canis-majoris123 |
1a9d073b9a9004aefa78f1ba8429e0745e3e8032 | 804 | hh | C++ | kernel/arch/amd64/gdt/gdt.hh | ErrorOnUsername/axiom | 1455e10e8528cf272bea38c46bc05966a108215c | [
"MIT"
] | null | null | null | kernel/arch/amd64/gdt/gdt.hh | ErrorOnUsername/axiom | 1455e10e8528cf272bea38c46bc05966a108215c | [
"MIT"
] | null | null | null | kernel/arch/amd64/gdt/gdt.hh | ErrorOnUsername/axiom | 1455e10e8528cf272bea38c46bc05966a108215c | [
"MIT"
] | null | null | null | #pragma once
#include <ax_util/helpers.hh>
#include <ax_util/types.hh>
#include <kernel/arch/amd64/descriptor_table_pointer.hh>
namespace Kernel::GDT {
enum class GDTEntryOffset : uint16_t {
NullSegment = 0x0000,
KernelCodeSegment = 0x0008,
KernelDataSegment = 0x0010,
UserspaceCodeSegment = 0x0018... | 19.609756 | 61 | 0.774876 | ErrorOnUsername |
1aac2fb5339fa04c106cf09f141e7ec4dc3c798e | 3,519 | cpp | C++ | SDK/ARKSurvivalEvolved_PrimalInventoryBP_LoadoutDummyHotbar_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_PrimalInventoryBP_LoadoutDummyHotbar_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_PrimalInventoryBP_LoadoutDummyHotbar_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_PrimalInventoryBP_LoadoutDummyHotbar_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------... | 38.25 | 191 | 0.72549 | 2bite |
1abf1a73bdba15dd9169d6225878122a50da604f | 2,427 | hpp | C++ | combis/include/combisDesign.hpp | amwink/bis | 5d12c54b23be202d179fea9558d1aab09c35392e | [
"MIT"
] | null | null | null | combis/include/combisDesign.hpp | amwink/bis | 5d12c54b23be202d179fea9558d1aab09c35392e | [
"MIT"
] | null | null | null | combis/include/combisDesign.hpp | amwink/bis | 5d12c54b23be202d179fea9558d1aab09c35392e | [
"MIT"
] | null | null | null | #ifndef COMBISDESIGN_HPP_INCLUDED
#define COMBISDESIGN_HPP_INCLUDED
#include <fstream>
#include "bisniftiimage.hpp"
#include <dlib/matrix.h>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
typedef float_t value_type;
bool combisSVMdesign(std::string designfile,
... | 29.240964 | 120 | 0.558302 | amwink |
1ac0bccff3ab790065320a80a037356ac7795c54 | 603 | hpp | C++ | gmod/features/features.hpp | voidptrproject/voidhack_gmod | 3915c8ceb2ee2a479a3a4669eb72806104fbe2f5 | [
"MIT"
] | 2 | 2022-02-20T09:34:47.000Z | 2022-03-16T04:20:35.000Z | gmod/features/features.hpp | voidptrproject/voidhack_gmod | 3915c8ceb2ee2a479a3a4669eb72806104fbe2f5 | [
"MIT"
] | null | null | null | gmod/features/features.hpp | voidptrproject/voidhack_gmod | 3915c8ceb2ee2a479a3a4669eb72806104fbe2f5 | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <vector>
#include <optional>
#include "../interfaces.hpp"
#include "../render.hpp"
#include "../hooks.hpp"
#include "../globals.hpp"
#include "../input.hpp"
#include "../menu/menu.hpp"
namespace features {
struct feature;
struct features_interface_t {
std::vector<featu... | 20.793103 | 57 | 0.711443 | voidptrproject |
1ac77390ebe36209a416d5418d940143a83a909e | 1,341 | hpp | C++ | Goodrich/Chapter07/eulerTour.hpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 19 | 2019-09-15T12:23:51.000Z | 2020-06-18T08:31:26.000Z | Goodrich/Chapter07/eulerTour.hpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | Goodrich/Chapter07/eulerTour.hpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 13 | 2019-06-29T02:58:27.000Z | 2020-05-07T08:52:22.000Z | #ifndef EULER_TOUR_HPP
#define EULER_TOUR_HPP
template <typename E, typename R> // element and result type
class EulerTour {
protected:
struct Result {
R leftResult; // result from left tree
R rightResult; // result from right tree
R finalResult; // combined result
};
typedef Tree<E> BinaryTree; /... | 29.8 | 73 | 0.690529 | SebastianTirado |
1ac89481fc3731bb4700b768bc1a3a0738b7bab6 | 270 | cc | C++ | tensorflow/contrib/persona/kernels/agd-format/data.cc | epfl-vlsc/persona-system | 2aad40d908ae63239f5d546a56264922a55b99fc | [
"Apache-2.0"
] | 6 | 2017-08-07T14:05:41.000Z | 2020-02-28T03:57:56.000Z | tensorflow/contrib/persona/kernels/agd-format/data.cc | epfl-vlsc/persona-system | 2aad40d908ae63239f5d546a56264922a55b99fc | [
"Apache-2.0"
] | null | null | null | tensorflow/contrib/persona/kernels/agd-format/data.cc | epfl-vlsc/persona-system | 2aad40d908ae63239f5d546a56264922a55b99fc | [
"Apache-2.0"
] | null | null | null | #include "data.h"
namespace tensorflow {
DataReleaser::DataReleaser(Data &data) : data_(data) {}
DataReleaser::~DataReleaser() {
data_.release();
}
void Data::release() {}
char* Data::mutable_data() {
return nullptr;
}
} // namespace tensorflow {
| 18 | 57 | 0.648148 | epfl-vlsc |
1acccfb06fcc467ca2720a781a833f31da6b5b9e | 36,094 | cpp | C++ | src/library/util.cpp | javra/lean | cc70845332e63a1f1be21dc1f96d17269fc85909 | [
"Apache-2.0"
] | 130 | 2016-12-02T22:46:10.000Z | 2022-03-22T01:09:48.000Z | src/library/util.cpp | soonhokong/lean | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | [
"Apache-2.0"
] | 8 | 2017-05-03T01:21:08.000Z | 2020-02-25T11:38:05.000Z | src/library/util.cpp | soonhokong/lean | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | [
"Apache-2.0"
] | 28 | 2016-12-02T22:46:20.000Z | 2022-03-18T21:28:20.000Z | /*
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <algorithm>
#include "kernel/find_fn.h"
#include "kernel/instantiate.h"
#include "kernel/error_msgs.h"
#include "kernel/abstract.h"
#include "kerne... | 35.042718 | 140 | 0.606444 | javra |
1ace69c40f54b829704dfe604b343bcfcd8f952c | 395 | hpp | C++ | src/widget/entryslider_i.hpp | degarashi/sprinkler | afc6301ae2c7185f514148100da63dcef94d7f00 | [
"MIT"
] | null | null | null | src/widget/entryslider_i.hpp | degarashi/sprinkler | afc6301ae2c7185f514148100da63dcef94d7f00 | [
"MIT"
] | null | null | null | src/widget/entryslider_i.hpp | degarashi/sprinkler | afc6301ae2c7185f514148100da63dcef94d7f00 | [
"MIT"
] | null | null | null | #pragma once
#include "entryslider.hpp"
namespace dg::widget {
class EntrySliderI :
public EntrySlider<int>
{
Q_OBJECT
protected:
int _toUi(int v) const override;
int _fromUi(int v) const override;
QString _makeValueString(int value) const override;
void _onValueChanged() override;
signals:
vo... | 19.75 | 54 | 0.721519 | degarashi |
1ad047509a63fb4e2950c82e591df215fc4791c8 | 7,256 | cpp | C++ | src/jnivm/internal/field.cpp | Dadoum/libjnivm | e279303d58d6d42e1c2448f8b57196ae8c029eb8 | [
"MIT"
] | 3 | 2021-10-31T12:24:24.000Z | 2022-02-15T18:16:05.000Z | src/jnivm/internal/field.cpp | Dadoum/libjnivm | e279303d58d6d42e1c2448f8b57196ae8c029eb8 | [
"MIT"
] | 6 | 2019-11-06T21:07:07.000Z | 2021-05-25T21:46:56.000Z | src/jnivm/internal/field.cpp | Dadoum/libjnivm | e279303d58d6d42e1c2448f8b57196ae8c029eb8 | [
"MIT"
] | 2 | 2021-12-08T10:15:12.000Z | 2021-12-11T18:25:40.000Z | #include "field.hpp"
#include <jnivm/internal/findclass.h>
#include "log.h"
#include <jnivm/field.h>
#include <jnivm/class.h>
#include <functional>
#include "method.h"
using namespace jnivm;
template<bool isStatic, bool ReturnNull>
jfieldID jnivm::GetFieldID(JNIEnv *env, jclass cl_, const char *name, const char *type... | 40.764045 | 192 | 0.589305 | Dadoum |
1ad306e7f7d0fd80b7cd876ab5c00caefd778156 | 576 | cpp | C++ | ECS/Project/Project/Triangle/Triangle.cpp | AshwinKumarVijay/ECS-Development | c70bd6a9f681b828ded8e89bc7f4f14649edfb84 | [
"MIT"
] | 2 | 2017-01-30T23:37:42.000Z | 2017-09-08T09:32:37.000Z | ECS/Project/Project/Triangle/Triangle.cpp | AshwinKumarVijay/ECS-Development | c70bd6a9f681b828ded8e89bc7f4f14649edfb84 | [
"MIT"
] | null | null | null | ECS/Project/Project/Triangle/Triangle.cpp | AshwinKumarVijay/ECS-Development | c70bd6a9f681b828ded8e89bc7f4f14649edfb84 | [
"MIT"
] | null | null | null | #include "Triangle.h"
// Default Triangle Constructor.
Triangle::Triangle(glm::vec3 newA, glm::vec3 newB, glm::vec3 newC)
{
a = newA;
b = newB;
c = newC;
}
// Default Triangle Destructor.
Triangle::~Triangle()
{
}
// Compute and Return the Normal of this Triangle.
glm::vec3 Triangle::computeFaceNormal()
{
glm::... | 14.4 | 66 | 0.659722 | AshwinKumarVijay |
1ad3fe376ee9e9259689af334c56fe6ce3d56fa6 | 2,879 | cpp | C++ | test/generator/paramtest_jittest.cpp | jwitz54/Halide-2016-HLS | dd95daab3a7c871dd2f15c514912e21fb3c2bb7c | [
"MIT"
] | 4 | 2020-08-02T18:41:31.000Z | 2021-12-30T07:29:45.000Z | test/generator/paramtest_jittest.cpp | jwitz54/Halide-2016-HLS | dd95daab3a7c871dd2f15c514912e21fb3c2bb7c | [
"MIT"
] | null | null | null | test/generator/paramtest_jittest.cpp | jwitz54/Halide-2016-HLS | dd95daab3a7c871dd2f15c514912e21fb3c2bb7c | [
"MIT"
] | 1 | 2020-07-10T16:00:39.000Z | 2020-07-10T16:00:39.000Z | #include "Halide.h"
#include "paramtest_generator.cpp"
using Halide::Argument;
using Halide::Expr;
using Halide::Func;
using Halide::Image;
const int kSize = 32;
template<typename Type>
Image<Type> MakeImage() {
Image<Type> im(kSize, kSize, 3);
for (int x = 0; x < kSize; x++) {
for (int y = 0; y < k... | 30.62766 | 118 | 0.553664 | jwitz54 |
1ad7b24fb0bb6a193a492bab3a07f1e0b5531eb3 | 563 | hpp | C++ | inc/Main.hpp | alelievr/multic | 94c29150ef4e7f2b309202fa413da96f66def9a2 | [
"MIT"
] | null | null | null | inc/Main.hpp | alelievr/multic | 94c29150ef4e7f2b309202fa413da96f66def9a2 | [
"MIT"
] | null | null | null | inc/Main.hpp | alelievr/multic | 94c29150ef4e7f2b309202fa413da96f66def9a2 | [
"MIT"
] | null | null | null | #ifndef MAIN_HPP
# define MAIN_HPP
# include <iostream>
# include <string>
# include <vector>
# pragma clang diagnostic ignored "-Wc++98-compat-pedantic"
class Main
{
private:
enum Options
{
ShowExpanded = 0x001,
};
int _flags;
int :32;
std::string _programName;
void _Options(int... | 16.085714 | 59 | 0.639432 | alelievr |
1adab9df6dfbb954a4e898daa80b5aea8dfb411d | 1,218 | cpp | C++ | calculate.cpp | JcsnP/My-Playground | 683600bd32ee7050bbe2cfca8eaf96eb1cdf039c | [
"Unlicense"
] | 2 | 2020-12-31T09:30:57.000Z | 2021-03-15T05:04:18.000Z | calculate.cpp | JcsnP/My-Playground | 683600bd32ee7050bbe2cfca8eaf96eb1cdf039c | [
"Unlicense"
] | null | null | null | calculate.cpp | JcsnP/My-Playground | 683600bd32ee7050bbe2cfca8eaf96eb1cdf039c | [
"Unlicense"
] | null | null | null | #include <iostream>
using namespace std;
int calculate(int a, int b);
int main(){
int a, b;
cout << "first number: " << endl;
cin >> a;
cout << "second number: " << endl;
cin >> b;
int result = calculate(a, b);
cout << "Result is: " << result;
}
int calculate(int a, i... | 18.738462 | 45 | 0.417898 | JcsnP |
1ae03acef659f35503ef54481156232c8810b111 | 850 | cpp | C++ | Programs/8 Pointers/pointersInArrays.cpp | Lord-Lava/DSA-CPP-Apna-College | 077350c2aa900bb0cdb137ece2b95be58ccd76a8 | [
"MIT"
] | 5 | 2021-04-04T18:39:14.000Z | 2021-12-18T09:31:55.000Z | Programs/8 Pointers/pointersInArrays.cpp | Lord-Lava/DSA-CPP-Apna-College | 077350c2aa900bb0cdb137ece2b95be58ccd76a8 | [
"MIT"
] | null | null | null | Programs/8 Pointers/pointersInArrays.cpp | Lord-Lava/DSA-CPP-Apna-College | 077350c2aa900bb0cdb137ece2b95be58ccd76a8 | [
"MIT"
] | 1 | 2021-09-26T11:01:26.000Z | 2021-09-26T11:01:26.000Z | //arr is a constant pointer, thus pointer arithmetic can't be performed on it.
#include<iostream>
using namespace std;
int main(){
int arr[]={10,20,30};
cout<<*arr<<endl; //arr (name of array) behaves in a similar way as a pointer and points to the 0th element.
//printing array using pointer ptr... | 31.481481 | 160 | 0.591765 | Lord-Lava |
1ae25ba7ca2c41f5a64f8b1bb07fc92625fd48bc | 583 | cpp | C++ | Exercise_04_Particles/src/imgParticle.cpp | ChongChongS/P52Of | 1904f58e02f15b329c6c01c47e251bbadf427e5e | [
"MIT"
] | null | null | null | Exercise_04_Particles/src/imgParticle.cpp | ChongChongS/P52Of | 1904f58e02f15b329c6c01c47e251bbadf427e5e | [
"MIT"
] | null | null | null | Exercise_04_Particles/src/imgParticle.cpp | ChongChongS/P52Of | 1904f58e02f15b329c6c01c47e251bbadf427e5e | [
"MIT"
] | null | null | null | #include "imgParticle.h"
imgParticle::imgParticle(ofVec2f l,ofImage m_img):
Particle(l)
{
acceleration = ofVec2f(0,0);
float vx = ofNoise(r) * 0.3f;
float vy = ofNoise(r) * 0.3f - 1.0;
velocity = ofVec2f(vx,vy);
location = l;
lifespan = 100.0;
img = m_img;
}
void imgParticle::update()
{
velocity += accelerat... | 17.666667 | 50 | 0.684391 | ChongChongS |
1ae2eff43a950ccc661e6441a79e12a4c0eb8dae | 868 | cpp | C++ | src/statements/SpawnStatement.cpp | vgsantoniazzi/TinyInterpreter | c7269d50b47a1318989a43d807a40896f182ed16 | [
"MIT"
] | 29 | 2015-11-14T12:26:48.000Z | 2021-01-02T12:47:37.000Z | src/statements/SpawnStatement.cpp | vgsantoniazzi/TinyInterpreter | c7269d50b47a1318989a43d807a40896f182ed16 | [
"MIT"
] | 9 | 2015-06-12T13:58:54.000Z | 2016-06-07T03:00:41.000Z | src/statements/SpawnStatement.cpp | vgsantoniazzi/TinyInterpreter | c7269d50b47a1318989a43d807a40896f182ed16 | [
"MIT"
] | 6 | 2015-06-14T20:39:32.000Z | 2020-07-27T01:14:48.000Z | /**
* @file src/statements/SpawnStatement.cpp
* @author Victor Antoniazzi <vgsantoniazzi@gmail.com>
* @brief Implements SpawnStatement.
*/
#include <iostream>
#include <thread>
#include "../variables/Variables.hpp"
#include "SpawnStatement.hpp"
#include "Statement.hpp"
/**
* @brief The statement to run inside a th... | 24.111111 | 76 | 0.724654 | vgsantoniazzi |
1ae4708e94a6f4f5a9e11763832bbcf339518d05 | 1,682 | cpp | C++ | Leetcode/Hot100/39_Combination_Sum.cpp | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | 1 | 2019-11-26T11:52:25.000Z | 2019-11-26T11:52:25.000Z | Leetcode/Hot100/39_Combination_Sum.cpp | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | Leetcode/Hot100/39_Combination_Sum.cpp | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | /*
Given a set of candidate numbers (candidates) (without duplicates) and a target number (target),
find all unique combinations in candidates where the candidate numbers sums to target.
The same repeated number may be chosen from candidates unlimited number of times.
Note:
All numbers (including target) will be posi... | 24.028571 | 97 | 0.63258 | ZR-Huang |
1ae5b84a24f944df1c714f6475d5c8f553b42ebc | 6,278 | cpp | C++ | legacy/development/CPP_DEV_ROVER/rover/camera.cpp | aorella1/RoverSystem | 77f2c6033a3e914451038ee62c436f2f8d8985ef | [
"Apache-2.0"
] | null | null | null | legacy/development/CPP_DEV_ROVER/rover/camera.cpp | aorella1/RoverSystem | 77f2c6033a3e914451038ee62c436f2f8d8985ef | [
"Apache-2.0"
] | null | null | null | legacy/development/CPP_DEV_ROVER/rover/camera.cpp | aorella1/RoverSystem | 77f2c6033a3e914451038ee62c436f2f8d8985ef | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include "camera.h"
namespace camera {
// Converts a YCrCb color to RGB.
// Currently unused.
// static void ycc_to_rgb(uint8_t y, uint8_t cb, uint8_t cr, uint8_t* r, uint8_t* g, uint8_t* b) {
// float fy = (float) y;
// float fcb = (float) cb;
// float fcr = (float) cr;
// float... | 27.902222 | 133 | 0.586493 | aorella1 |
1ae852e87f2eda62fef56a40cb038ea535323465 | 3,251 | hpp | C++ | Code/Engine/Renderer/Camera.hpp | yixuan-wei/PersonalEngine | 6f3b1df3ddeb662fbf65ca8b3ea7ddb446ef5a20 | [
"MIT"
] | 1 | 2021-06-11T06:41:29.000Z | 2021-06-11T06:41:29.000Z | Code/Engine/Renderer/Camera.hpp | yixuan-wei/PersonalEngine | 6f3b1df3ddeb662fbf65ca8b3ea7ddb446ef5a20 | [
"MIT"
] | 1 | 2022-02-25T07:46:54.000Z | 2022-02-25T07:46:54.000Z | Code/Engine/Renderer/Camera.hpp | yixuan-wei/PersonalEngine | 6f3b1df3ddeb662fbf65ca8b3ea7ddb446ef5a20 | [
"MIT"
] | null | null | null | #pragma once
#include "Engine/Math/Vec2.hpp"
#include "Engine/Math/Vec3.hpp"
#include "Engine/Core/Rgba8.hpp"
#include "Engine/Math/Mat44.hpp"
#include "Engine/Core/Transform.hpp"
#include <vector>
struct AABB2;
class Texture;
class RenderContext;
class RenderBuffer;
enum eCameraClearBitFlag : unsigned int
{
CLEAR_... | 30.383178 | 105 | 0.756075 | yixuan-wei |
1ae9618c7e1a360d7281d7e9be4e8f39af0a8dff | 8,968 | cc | C++ | source/gpu_perf_api_unit_tests/counter_generator_vk_tests.cc | AdamJMiles/gpu_performance_api | 7bd0c8b484b2a658610581e2e48b615606130fdc | [
"MIT"
] | 61 | 2020-03-17T12:30:11.000Z | 2022-03-01T18:59:11.000Z | source/gpu_perf_api_unit_tests/counter_generator_vk_tests.cc | AdamJMiles/gpu_performance_api | 7bd0c8b484b2a658610581e2e48b615606130fdc | [
"MIT"
] | 12 | 2020-03-24T15:46:54.000Z | 2022-01-08T02:03:31.000Z | source/gpu_perf_api_unit_tests/counter_generator_vk_tests.cc | AdamJMiles/gpu_performance_api | 7bd0c8b484b2a658610581e2e48b615606130fdc | [
"MIT"
] | 19 | 2020-03-16T17:32:09.000Z | 2022-03-29T23:35:31.000Z | //==============================================================================
// Copyright (c) 2012-2021 Advanced Micro Devices, Inc. All rights reserved.
/// @author AMD Developer Tools Team
/// @file
/// @brief Unit Tests for VK Counter Generator.
//=================================================================... | 40.949772 | 127 | 0.760147 | AdamJMiles |
1af0030d9760e9627900ee1d12e4ef67a80bac9d | 1,880 | cpp | C++ | src/Overlook/Navigator.cpp | sppp/Overlook | 264f6b64d40dc4cf0cb7b7ad6046a0f10eb2297b | [
"BSD-3-Clause"
] | 7 | 2017-07-21T09:10:50.000Z | 2021-01-23T09:21:40.000Z | src/Overlook/Navigator.cpp | OuluLinux/Overlook | 264f6b64d40dc4cf0cb7b7ad6046a0f10eb2297b | [
"BSD-3-Clause"
] | null | null | null | src/Overlook/Navigator.cpp | OuluLinux/Overlook | 264f6b64d40dc4cf0cb7b7ad6046a0f10eb2297b | [
"BSD-3-Clause"
] | 8 | 2017-04-30T08:30:21.000Z | 2020-03-14T03:18:41.000Z | #include "Overlook.h"
namespace Overlook {
Navigator::Navigator() {
Add(tree.VSizePos().HSizePos());
FillTree(tree);
tree <<= THISBACK(SelectTree);
}
void Navigator::FillTree(TreeCtrl &tree)
{
Vector<int> parent, parent2;
parent.Add(0);
tree.SetRoot(OverlookImg::icon(), "Overlook");
a... | 25.066667 | 90 | 0.655851 | sppp |
8c17f78aff94dd918b7b2002f4241402e0f263d7 | 2,247 | cpp | C++ | i23dSFM/matching/indMatch_test.cpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | null | null | null | i23dSFM/matching/indMatch_test.cpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | null | null | null | i23dSFM/matching/indMatch_test.cpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | 1 | 2019-02-18T09:49:32.000Z | 2019-02-18T09:49:32.000Z | // Copyright (c) 2012, 2013 Pierre MOULON.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include "testing/testing.h"
#include "i23dSFM/matching/indMatch.hpp"
u... | 30.780822 | 79 | 0.679573 | zyxrrr |
8c23111fc6b8a3b32944247be4de1e9a3cfb8048 | 255 | hpp | C++ | node_modules/grad_armorbar/cfgFunctions.hpp | gruppe-adler/TvT_HoldingPoint.Altis | 685a25e1cab315c877dcc0bbc41cf7d181fdd3f8 | [
"CC-BY-3.0"
] | 1 | 2020-08-31T15:48:28.000Z | 2020-08-31T15:48:28.000Z | node_modules/grad_armorbar/cfgFunctions.hpp | AdlerSalbei/TvT_HoldingPoint.Altis | 685a25e1cab315c877dcc0bbc41cf7d181fdd3f8 | [
"CC-BY-3.0"
] | 3 | 2017-01-16T09:25:39.000Z | 2017-02-15T08:35:16.000Z | node_modules/grad_armorbar/cfgFunctions.hpp | gruppe-adler/TvT_HoldingPoint.Altis | 685a25e1cab315c877dcc0bbc41cf7d181fdd3f8 | [
"CC-BY-3.0"
] | null | null | null | #ifndef MODULES_DIRECTORY
#define MODULES_DIRECTORY modules
#endif
class GRAD_amb {
class functions {
file = MODULES_DIRECTORY\grad-armorBar\functions\common;
class armorCalc {};
class armorInit { postInit = 1;};
class subMenu {};
};
};
| 17 | 58 | 0.713725 | gruppe-adler |
8c23f01a3f1279c187be16dbd526e0b3dad5c8ec | 3,800 | cpp | C++ | SourceFiles/Bin1D.cpp | JamesBremner/Pack | bf968bafbff01f908e5c27919c475d404d2dceeb | [
"MIT"
] | 19 | 2015-11-08T01:01:11.000Z | 2021-06-28T23:10:14.000Z | SourceFiles/Bin1D.cpp | JamesBremner/Pack | bf968bafbff01f908e5c27919c475d404d2dceeb | [
"MIT"
] | 7 | 2016-03-28T05:03:31.000Z | 2020-07-09T13:55:57.000Z | SourceFiles/Bin1D.cpp | JamesBremner/Pack | bf968bafbff01f908e5c27919c475d404d2dceeb | [
"MIT"
] | 9 | 2015-04-30T04:19:19.000Z | 2017-10-22T12:09:12.000Z | #include "cPackEngine.h"
#ifndef NULL
#define NULL ((void *) 0)
#endif
/*
* File: Bin1D.cpp
* Author: arash
*
* Created on June 13, 2012, 11:23 AM
*/
using namespace std;
Bin1D::Bin1D():Bin() {
z_sub_bin_ = NULL;
}
Bin1D::Bin1D(const Bin1D& orig) {
Bin1D();
}
Bin1D::~Bin1D() {
}
bin_t Bin1D... | 18.905473 | 73 | 0.503421 | JamesBremner |
8c28ed8a6118dfc07781de0556827b899c77c78a | 16,453 | cpp | C++ | src/INI.cpp | bwpow/libshaga | d457ee8dc267af9e20564961c9f6928290cb29cb | [
"CC0-1.0"
] | 1 | 2018-05-09T18:15:21.000Z | 2018-05-09T18:15:21.000Z | src/INI.cpp | bwpow/libshaga | d457ee8dc267af9e20564961c9f6928290cb29cb | [
"CC0-1.0"
] | null | null | null | src/INI.cpp | bwpow/libshaga | d457ee8dc267af9e20564961c9f6928290cb29cb | [
"CC0-1.0"
] | null | null | null | /******************************************************************************
Shaga library is released under the New BSD license (see LICENSE.md):
Copyright (c) 2012-2021, SAGE team s.r.o., Samuel Kupka
All rights reserved.
*******************************************************************************/
#include "... | 27.421667 | 149 | 0.600134 | bwpow |
8c29f0fa50026e199cbeecd6074694140b48c9f4 | 10,006 | cpp | C++ | Sources/Overload/OvCore/src/OvCore/Scripting/LuaComponentBinder.cpp | kmqwerty/Overload | f3b8c751a05815400ed35dd2be20a3900f3454fd | [
"MIT"
] | 755 | 2019-07-10T01:26:39.000Z | 2022-03-31T12:43:19.000Z | Sources/Overload/OvCore/src/OvCore/Scripting/LuaComponentBinder.cpp | kmqwerty/Overload | f3b8c751a05815400ed35dd2be20a3900f3454fd | [
"MIT"
] | 111 | 2020-02-28T23:30:10.000Z | 2022-01-18T13:57:30.000Z | Sources/Overload/OvCore/src/OvCore/Scripting/LuaComponentBinder.cpp | kmqwerty/Overload | f3b8c751a05815400ed35dd2be20a3900f3454fd | [
"MIT"
] | 97 | 2019-11-06T15:19:56.000Z | 2022-03-25T08:40:04.000Z | /**
* @project: Overload
* @author: Overload Tech.
* @licence: MIT
*/
#include "OvCore/Scripting/LuaComponentBinder.h"
#include "OvCore/ECS/Actor.h"
#include "OvCore/ECS/Components/CTransform.h"
#include "OvCore/ECS/Components/CCamera.h"
#include "OvCore/ECS/Components/CPhysicalBox.h"
#include "OvCore/ECS/Components... | 41.518672 | 108 | 0.747452 | kmqwerty |
8c2a411a16bf094d66ed08d7ac32de3d9f95007a | 6,283 | cpp | C++ | src/RaZor/Interface/MainWindow.cpp | Razakhel/RaZor | e3cc7942f168a0df6cd08d8874e6390fd24e5b10 | [
"MIT"
] | null | null | null | src/RaZor/Interface/MainWindow.cpp | Razakhel/RaZor | e3cc7942f168a0df6cd08d8874e6390fd24e5b10 | [
"MIT"
] | 1 | 2021-01-13T01:35:45.000Z | 2021-05-04T15:43:56.000Z | src/RaZor/Interface/MainWindow.cpp | Razakhel/RaZor | e3cc7942f168a0df6cd08d8874e6390fd24e5b10 | [
"MIT"
] | 2 | 2021-01-13T01:36:02.000Z | 2021-08-08T10:17:53.000Z | #include "RaZor/Interface/MainWindow.hpp"
#include <RaZ/Utils/Logger.hpp>
#include <QKeyEvent>
MainWindow::MainWindow() {
////////////////////////
// Initializing RaZor //
////////////////////////
m_window.setupUi(this);
m_audioSystemSettings.setupUi(&m_audioSystemSettingsDialog);
m_physicsSystemSetting... | 36.317919 | 147 | 0.699666 | Razakhel |
8c2e6939a821499a2b728da008230250ae9ebbf8 | 2,058 | cpp | C++ | ds&alg/graphs/shortest_path/dijkstra.cpp | fwu11/data-structure-algorithm | f8703a71a1097c478d7c93867eec398bb9c719fb | [
"MIT"
] | null | null | null | ds&alg/graphs/shortest_path/dijkstra.cpp | fwu11/data-structure-algorithm | f8703a71a1097c478d7c93867eec398bb9c719fb | [
"MIT"
] | null | null | null | ds&alg/graphs/shortest_path/dijkstra.cpp | fwu11/data-structure-algorithm | f8703a71a1097c478d7c93867eec398bb9c719fb | [
"MIT"
] | null | null | null | // input
// Given 2 integers N and M. N represents the number of vertices in the graph. M represents the number of edges between any 2 vertices.
// Then M lines follow, each line has 3 space separated integers a, b, w where a and b represents an edge from a vertex a to a vertex b and w respresents the weight of that ed... | 30.264706 | 179 | 0.640914 | fwu11 |
8c3bbd4d6a5684985b0f2ddfadb8b143243b0c7f | 249 | hpp | C++ | src/graphics/glfw_helper.hpp | DonRomanos/Terms_of_Enrampagement | 7c825e1d6f460809df97af645736b69c27acadf8 | [
"MIT"
] | null | null | null | src/graphics/glfw_helper.hpp | DonRomanos/Terms_of_Enrampagement | 7c825e1d6f460809df97af645736b69c27acadf8 | [
"MIT"
] | null | null | null | src/graphics/glfw_helper.hpp | DonRomanos/Terms_of_Enrampagement | 7c825e1d6f460809df97af645736b69c27acadf8 | [
"MIT"
] | null | null | null | #pragma once
struct GLFWwindow;
namespace graphics
{
class GlfwHelper
{
public:
GlfwHelper(int window_widht, int window_height);
~GlfwHelper();
[[nodiscard]] GLFWwindow* get_window() const noexcept;
private:
GLFWwindow* window;
};
} | 13.833333 | 56 | 0.722892 | DonRomanos |
8c431352230adb7366a75b0d7d1f558bb2f37ab6 | 4,898 | cpp | C++ | Leetcode0882.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | 1 | 2020-06-28T06:29:05.000Z | 2020-06-28T06:29:05.000Z | Leetcode0882.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | null | null | null | Leetcode0882.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
//Filename: Leetcode0882.cpp
//
//Author: dezhonger - csdisassembly@gmail.com
//Create: 2021-05-03 23:18:30
//Last modified: 2021-05-04 01:12:52
#define rep(i, a, b) for(int i = (a); i < (b); i++)
#define reps(i, a, b) for(int i = (a); i < (b); i++)
#define pb pu... | 24.862944 | 132 | 0.537158 | dezhonger |
8c5126b745adca792a5d9a97eb5ca39c8d37f87a | 2,985 | hpp | C++ | src/utils/fl_array/fl_array_ut.hpp | JustProject/JustVM | fe9905f024199a9041a828853901ae3ec32c0d6d | [
"Apache-2.0"
] | 4 | 2018-02-01T05:44:24.000Z | 2021-11-18T02:32:04.000Z | src/utils/fl_array/fl_array_ut.hpp | lfkdsk/JustJVM | fe9905f024199a9041a828853901ae3ec32c0d6d | [
"Apache-2.0"
] | null | null | null | src/utils/fl_array/fl_array_ut.hpp | lfkdsk/JustJVM | fe9905f024199a9041a828853901ae3ec32c0d6d | [
"Apache-2.0"
] | 1 | 2021-07-14T04:49:42.000Z | 2021-07-14T04:49:42.000Z | //
// Created by zhangyutong926 on 12/2/16.
//
#ifndef JUSTVM_FL_ARRAY_U_H
#define JUSTVM_FL_ARRAY_U_H
#include <cstdint>
#include <memory>
namespace just {
namespace util {
namespace fl_array {
#define FL_ARRAY_UT_P(NAME, TYPE, LENGTH, CONTENT...) \
TYPE NAME##__FILE__##__DATE__##__TIME___temp[LENG... | 27.136364 | 92 | 0.450251 | JustProject |
8c519fb410de10cf95dcff886100d91cbee9ef73 | 9,668 | cpp | C++ | doc/sample_for_cpp/embedded/Generated_Font.cpp | aiekick/ImGuiFontStudio | b12184a178655631c561cb7107425ff8ec0ea810 | [
"Apache-2.0"
] | 221 | 2020-01-19T06:30:45.000Z | 2022-03-22T14:32:24.000Z | doc/sample_for_cpp/embedded/Generated_Font.cpp | aiekick/ImGuiFontStudio | b12184a178655631c561cb7107425ff8ec0ea810 | [
"Apache-2.0"
] | 13 | 2020-04-06T10:28:32.000Z | 2021-02-27T20:18:57.000Z | doc/sample_for_cpp/embedded/Generated_Font.cpp | aiekick/ImGuiFontStudio | b12184a178655631c561cb7107425ff8ec0ea810 | [
"Apache-2.0"
] | 20 | 2020-04-15T11:41:44.000Z | 2022-02-10T09:43:19.000Z | #include "Generated_Font.h"
static const char FONT_ICON_BUFFER_NAME_IGFS[9120+1] =
"7])#######;6h2U'/###W),##*Mc##f/5##EI[^I132k#H4)=-XNE/1-2JuB>jJ-k.>uu#=rEn/)`[FHEbX-$ofG<-u*.m/xe@UCHMR8%XfG<-(7T;-QF%U.4tw<6rhG<-M).m/Q-0%J"
"^SV+mB1*N2dXkr-*PV=B0/'mr<->>#47T;-G;u8Ms6:[-M`Xk4S#sk#VmRv$#Kb$0M>>uu%=Ds%uW<nL2AK;... | 136.169014 | 146 | 0.607675 | aiekick |
8c66b63f40f0be84fcd8d2d44ed27ebbb3e80bb5 | 319 | hpp | C++ | src/core/EnvironmentDestroyedView.hpp | Person-93/aima-cpp | 08d062dcb971edeaddb9a10083cf6da5a1b869f7 | [
"MIT"
] | null | null | null | src/core/EnvironmentDestroyedView.hpp | Person-93/aima-cpp | 08d062dcb971edeaddb9a10083cf6da5a1b869f7 | [
"MIT"
] | null | null | null | src/core/EnvironmentDestroyedView.hpp | Person-93/aima-cpp | 08d062dcb971edeaddb9a10083cf6da5a1b869f7 | [
"MIT"
] | null | null | null | #pragma once
#include "util/UniqueIdMixin.hpp"
namespace aima::core {
class EnvironmentDestroyedView : public util::UniqueIdMixin<EnvironmentDestroyedView> {
friend class Environment;
protected:
~EnvironmentDestroyedView() = default;
private:
virtual void notify() = 0;
};
}
| 19.9375 | 91 | 0.680251 | Person-93 |
8c67cfc1e4745bdafd73762a5ebbf41226681317 | 1,613 | cpp | C++ | scm_core/src/scm/core/platform/graphics/detail/nv_cpl_data_control.cpp | Nyran/schism | c2cdb8884e3e6714a3b291f0f754220b7f5cbc7b | [
"BSD-3-Clause"
] | 10 | 2015-09-17T06:01:03.000Z | 2019-10-23T07:10:20.000Z | scm_core/src/scm/core/platform/graphics/detail/nv_cpl_data_control.cpp | Nyran/schism | c2cdb8884e3e6714a3b291f0f754220b7f5cbc7b | [
"BSD-3-Clause"
] | 5 | 2015-01-06T14:11:32.000Z | 2016-12-12T10:26:53.000Z | scm_core/src/scm/core/platform/graphics/detail/nv_cpl_data_control.cpp | Nyran/schism | c2cdb8884e3e6714a3b291f0f754220b7f5cbc7b | [
"BSD-3-Clause"
] | 15 | 2015-01-29T20:56:13.000Z | 2020-07-02T19:03:20.000Z |
// Copyright (c) 2012 Christopher Lux <christopherlux@gmail.com>
// Distributed under the Modified BSD License, see license.txt.
#include "nv_cpl_data_control.h"
#include <scm/core/platform/platform.h>
#if SCM_PLATFORM == SCM_PLATFORM_WINDOWS // #ifdef _WIN32
# include <scm/core/platform/windows.h>
#else
# prag... | 23.376812 | 101 | 0.646001 | Nyran |
8c69b7c9f4404a355d912c2a455531998b18a512 | 2,237 | cpp | C++ | Neon/src/Neon/Platform/Vulkan/VulkanAllocator.cpp | FilipHusnjak/Neon | 3981a76f4a35302e0fc70d4e32b2b2ac19b53089 | [
"Apache-2.0"
] | 8 | 2020-09-11T10:36:38.000Z | 2021-12-16T12:59:31.000Z | Neon/src/Neon/Platform/Vulkan/VulkanAllocator.cpp | FilipHusnjak/Neon | 3981a76f4a35302e0fc70d4e32b2b2ac19b53089 | [
"Apache-2.0"
] | null | null | null | Neon/src/Neon/Platform/Vulkan/VulkanAllocator.cpp | FilipHusnjak/Neon | 3981a76f4a35302e0fc70d4e32b2b2ac19b53089 | [
"Apache-2.0"
] | 1 | 2021-01-06T13:36:56.000Z | 2021-01-06T13:36:56.000Z | #include "neopch.h"
#include "VulkanAllocator.h"
#include "VulkanContext.h"
namespace Neon
{
VulkanAllocator::VulkanAllocator(const SharedRef<VulkanDevice>& device, const std::string& tag)
: m_Tag(tag)
, m_Device(device)
{
}
void VulkanAllocator::Allocate(vk::MemoryRequirements requirements, vk::UniqueDevice... | 35.507937 | 117 | 0.7443 | FilipHusnjak |
8c710ecf60228526ae40bc2c0a1b27f33a33f662 | 5,375 | hpp | C++ | physics/inertia_tensor.hpp | qwer640/12 | ddb85384030e15c4d35dfb6ba29f8342cf32795d | [
"MIT"
] | 1 | 2020-02-23T21:12:28.000Z | 2020-02-23T21:12:28.000Z | physics/inertia_tensor.hpp | qwer640/5678 | ddb85384030e15c4d35dfb6ba29f8342cf32795d | [
"MIT"
] | null | null | null | physics/inertia_tensor.hpp | qwer640/5678 | ddb85384030e15c4d35dfb6ba29f8342cf32795d | [
"MIT"
] | null | null | null | #pragma once
#include "base/not_null.hpp"
#include "geometry/grassmann.hpp"
#include "geometry/named_quantities.hpp"
#include "geometry/point.hpp"
#include "geometry/r3_element.hpp"
#include "geometry/r3x3_matrix.hpp"
#include "geometry/rotation.hpp"
#include "geometry/symmetric_bilinear_form.hpp"
#include "physics/r... | 35.596026 | 80 | 0.728558 | qwer640 |
8c7569fed5dc882d7ab7f4243495befe8ee42c2e | 380 | cpp | C++ | Challenges/Exploit/ex0.cpp | ifyGecko/RE_Challenges | a7a86481d9a75d0dde81de77716ea42c81ce3d69 | [
"Unlicense"
] | 5 | 2019-08-24T00:19:42.000Z | 2020-09-26T14:21:07.000Z | Challenges/Exploit/ex0.cpp | rec-uah/RE_Challenges | 2b5446baceae40a558caf0812719b7bde0ba41dc | [
"Unlicense"
] | 1 | 2022-02-16T18:05:15.000Z | 2022-02-16T18:05:15.000Z | Challenges/Exploit/ex0.cpp | ifyGecko/RE_Challenges | a7a86481d9a75d0dde81de77716ea42c81ce3d69 | [
"Unlicense"
] | 9 | 2019-08-31T21:10:31.000Z | 2020-09-14T23:13:10.000Z | #include <iostream>
#include <cstring>
int main () {
char str[4] = {'A','C','E','\0'};
char input[10];
std::cout << "Rename the string to something totally sick! ";
std::cin >> input;
std::cout << "\n";
std::cout << "String: " << str << "\n"
<< "Input: " << input << "\n";
std::cout << (!... | 21.111111 | 63 | 0.492105 | ifyGecko |
8c87552f77efdb3c1e7f87ceb917bff34304ffa3 | 495 | hpp | C++ | Tools/RegistersGenerator/Msp432P401Y/BitsField/timera2bitsfield.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 22 | 2019-09-07T22:38:01.000Z | 2022-01-31T21:35:55.000Z | Tools/RegistersGenerator/Msp432P401Y/BitsField/timera2bitsfield.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | null | null | null | Tools/RegistersGenerator/Msp432P401Y/BitsField/timera2bitsfield.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 9 | 2019-09-22T11:26:24.000Z | 2022-03-21T10:53:15.000Z | /*******************************************************************************
* Filename : timera2bitsfield.hpp
*
* Details : Enumerations related with TIMER_A2 peripheral. This header
* file is auto-generated for MSP432P401Y device.
*
*
****************************************************... | 30.9375 | 80 | 0.470707 | snorkysnark |
8c88bab4a0ba99ff180666c3f6686e48394f90bd | 1,426 | cpp | C++ | src/collections.cpp | ozon-io/pymodsecurity | 7576e7c18391cc86e9fbba0183dcda09ebdb7936 | [
"Apache-2.0"
] | 33 | 2020-04-29T13:46:36.000Z | 2022-03-30T16:42:49.000Z | src/collections.cpp | ozon-io/pymodsecurity | 7576e7c18391cc86e9fbba0183dcda09ebdb7936 | [
"Apache-2.0"
] | 8 | 2020-04-25T18:15:09.000Z | 2021-09-07T10:24:56.000Z | src/collections.cpp | ozon-io/pymodsecurity | 7576e7c18391cc86e9fbba0183dcda09ebdb7936 | [
"Apache-2.0"
] | 4 | 2021-01-04T05:24:41.000Z | 2021-08-02T21:18:37.000Z | #include <pybind11/pybind11.h>
#include <modsecurity/collection/collections.h>
#include <modsecurity/collection/collection.h>
namespace py = pybind11;
using modsecurity::collection::Collections;
using modsecurity::collection::Collection;
void init_collections(py::module& m)
{
py::module collection_module = m.def... | 50.928571 | 94 | 0.758065 | ozon-io |
8c92d1554d53914ade22f99572c96c9bb7c47e02 | 5,684 | cpp | C++ | Libs/SoundSystem/Common/OggVorbisStream.cpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | Libs/SoundSystem/Common/OggVorbisStream.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | Libs/SoundSystem/Common/OggVorbisStream.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "OggVorbisStream.hpp"
#include "FileSys/FileMan.hpp"
#include "FileSys/File.hpp"
#include <cassert>
#include <iostream>
#include <stdexcept>
// Static call... | 29.450777 | 145 | 0.675053 | dns |
8c9bf8641adc7bb639403101411a1f72e55e0ecf | 2,926 | cpp | C++ | src/ConEmuCD/ConsoleState.cpp | FrankHB/ConEmu | 167a114ffa52ac6c0d8821d72bd42297bb02771a | [
"BSD-3-Clause"
] | null | null | null | src/ConEmuCD/ConsoleState.cpp | FrankHB/ConEmu | 167a114ffa52ac6c0d8821d72bd42297bb02771a | [
"BSD-3-Clause"
] | null | null | null | src/ConEmuCD/ConsoleState.cpp | FrankHB/ConEmu | 167a114ffa52ac6c0d8821d72bd42297bb02771a | [
"BSD-3-Clause"
] | null | null | null |
/*
Copyright (c) 2015-present Maximus5
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the follo... | 32.511111 | 104 | 0.765892 | FrankHB |
8ca00a2fdf629cc4c0c478dd684056d752e89e59 | 1,865 | cc | C++ | Linux/main.cc | TrevorShelton/cplot | 8bf40e94519cc4fd69b2e0677d3a3dcf8695245a | [
"MIT"
] | 32 | 2017-11-27T03:04:44.000Z | 2022-01-21T17:03:40.000Z | Linux/main.cc | TrevorShelton/cplot | 8bf40e94519cc4fd69b2e0677d3a3dcf8695245a | [
"MIT"
] | 30 | 2017-11-10T09:47:16.000Z | 2018-11-21T22:36:47.000Z | Linux/main.cc | TrevorShelton/cplot | 8bf40e94519cc4fd69b2e0677d3a3dcf8695245a | [
"MIT"
] | 20 | 2018-01-05T17:15:11.000Z | 2021-07-30T14:11:01.000Z | #include <signal.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <memory>
#include <pthread.h>
#include <iostream>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include "PlotWindow.h"
#include "../Utility/System.h"
#include "cli.h"
#include "gui.h"
volatile bool quit = false;
static void signalH... | 21.941176 | 67 | 0.655228 | TrevorShelton |
8ca6b21c9607a90a32fbb1a65ee453266ead17bd | 225 | cpp | C++ | kattis/logicfunctions.cpp | terror/Solutions | 1ad33daec95b565a38ac4730261593bcf249ac86 | [
"CC0-1.0"
] | 2 | 2020-08-01T22:53:32.000Z | 2020-08-31T22:45:35.000Z | kattis/logicfunctions.cpp | terror/Solutions | 1ad33daec95b565a38ac4730261593bcf249ac86 | [
"CC0-1.0"
] | null | null | null | kattis/logicfunctions.cpp | terror/Solutions | 1ad33daec95b565a38ac4730261593bcf249ac86 | [
"CC0-1.0"
] | null | null | null | #include "logicfunctions.h"
void exclusive(bool x, bool y, bool& ans) {
ans = !(x == y);
}
void implies(bool x, bool y, bool& ans) {
ans = !(x and !y);
}
void equivalence(bool x, bool y, bool& ans) {
ans = x == y;
}
| 16.071429 | 45 | 0.577778 | terror |
8ca905cd1893602f820069bcc82bdfd8ce994c82 | 1,257 | cpp | C++ | android-31/java/net/Proxy.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/net/Proxy.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/net/Proxy.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JObject.hpp"
#include "../../JString.hpp"
#include "./Proxy_Type.hpp"
#include "./SocketAddress.hpp"
#include "./Proxy.hpp"
namespace java::net
{
// Fields
java::net::Proxy Proxy::NO_PROXY()
{
return getStaticObjectField(
"java.net.Proxy",
"NO_PROXY",
"Ljava/net/Proxy;"
);
}
// QJni... | 17.957143 | 72 | 0.633254 | YJBeetle |
8cab462080c251ac910da90fe83496aeee8d010a | 273 | cpp | C++ | src/AudioSwitch_F32.cpp | UTSAAH/Dhwani-HA_Library | f182d8b6571d48b1e506637684844eb12e0a791c | [
"MIT"
] | 89 | 2017-03-25T19:27:07.000Z | 2022-03-21T21:11:03.000Z | src/AudioSwitch_F32.cpp | UTSAAH/Dhwani-HA_Library | f182d8b6571d48b1e506637684844eb12e0a791c | [
"MIT"
] | 43 | 2017-05-31T14:38:33.000Z | 2022-03-29T09:34:58.000Z | src/AudioSwitch_F32.cpp | UTSAAH/Dhwani-HA_Library | f182d8b6571d48b1e506637684844eb12e0a791c | [
"MIT"
] | 22 | 2017-03-07T22:15:59.000Z | 2021-12-18T15:23:04.000Z | #include "AudioSwitch_F32.h"
void AudioSwitch4_F32::update(void) {
audio_block_f32_t *out=NULL;
out = receiveReadOnly_f32(0);
if (!out) return;
AudioStream_F32::transmit(out,outputChannel); //just output to the one channel
AudioStream_F32::release(out);
}
| 22.75 | 80 | 0.732601 | UTSAAH |
8cac78c8227fe69417dbecc075f7e669154baba8 | 2,770 | cpp | C++ | lab07_mazeSolver_resursionWithBackTracking/MazeReader.cpp | JackNGould/programming2 | 59c127b6a6c586a6fcd69526763aad27cd152d90 | [
"MIT"
] | null | null | null | lab07_mazeSolver_resursionWithBackTracking/MazeReader.cpp | JackNGould/programming2 | 59c127b6a6c586a6fcd69526763aad27cd152d90 | [
"MIT"
] | null | null | null | lab07_mazeSolver_resursionWithBackTracking/MazeReader.cpp | JackNGould/programming2 | 59c127b6a6c586a6fcd69526763aad27cd152d90 | [
"MIT"
] | null | null | null | /*
* File Name: MazeReader.cpp
* @assignment EECS 268 Lab07
* @file: MazeReader.cpp
* @author: Jack Gould
* @brief: Implementation file for Maze Reader class. Construction is dependent upon successfull reading of a well formatted input file(throws exception otherwise). Uses helper functions to attempt to solve ma... | 21.811024 | 282 | 0.58231 | JackNGould |
8cae59a6ed5270e63c0f0dccd200449e57d27426 | 19,902 | hpp | C++ | Tools/RegistersGenerator/STM32F303/adc1registers.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 22 | 2019-09-07T22:38:01.000Z | 2022-01-31T21:35:55.000Z | Tools/RegistersGenerator/STM32F303/adc1registers.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | null | null | null | Tools/RegistersGenerator/STM32F303/adc1registers.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 9 | 2019-09-22T11:26:24.000Z | 2022-03-21T10:53:15.000Z | /*******************************************************************************
* Filename : adc1registers.hpp
*
* Details : Analog-to-Digital Converter. This header file is
* auto-generated for STM32F303 device.
*
*
***************************************************************************... | 47.956627 | 108 | 0.71827 | snorkysnark |
8cae928a064086d736bbb0be78840ae94320b691 | 594 | cpp | C++ | binary_tree_maximum_path_sum.cpp | ArnabBir/leetcode-solutions | 31cf1edaa2f39c1f8d0300ad815889999058a0c8 | [
"MIT"
] | null | null | null | binary_tree_maximum_path_sum.cpp | ArnabBir/leetcode-solutions | 31cf1edaa2f39c1f8d0300ad815889999058a0c8 | [
"MIT"
] | null | null | null | binary_tree_maximum_path_sum.cpp | ArnabBir/leetcode-solutions | 31cf1edaa2f39c1f8d0300ad815889999058a0c8 | [
"MIT"
] | null | null | null | class Solution {
private:
int ans = INT_MIN;
public:
int maxPathSumUtil(TreeNode* node, int sum) {
if(!node) return 0;
TreeNode* leftNode = node->left;
TreeNode* rightNode = node->right;
int leftSum = max(0, maxPathSumUtil(leftNode, node->val + sum));
int rightSu... | 28.285714 | 74 | 0.582492 | ArnabBir |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.