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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
61d7d0a1bf3b9eeefeba28c620907ce9b3b43be5 | 1,533 | cpp | C++ | ParamedicCommander.cpp | AviNagosa/cpp_WarGame_Ex4 | 4d054a82efb6cd4468674be5062e8462c5b6dbe1 | [
"MIT"
] | null | null | null | ParamedicCommander.cpp | AviNagosa/cpp_WarGame_Ex4 | 4d054a82efb6cd4468674be5062e8462c5b6dbe1 | [
"MIT"
] | null | null | null | ParamedicCommander.cpp | AviNagosa/cpp_WarGame_Ex4 | 4d054a82efb6cd4468674be5062e8462c5b6dbe1 | [
"MIT"
] | null | null | null | #include "ParamedicCommander.hpp"
void ParamedicCommander::operation(std::vector<std::vector<Soldier*>> &board,std::pair<int,int> source){
int x1 = source.first;
int y1 = source.second;
Soldier* paramedicCommander = board[x1][y1];
std::stack<std::pair<int,int>> myPlatoon;
// healAround(board,x1... | 34.066667 | 104 | 0.452707 | AviNagosa |
61d7fcc28537064a96af419020956c602426eb51 | 32,220 | cc | C++ | client/clientservicer.cc | gorlak/P4 | fa25916ef69fa77887bb493800b6ce12be3f469e | [
"BSD-2-Clause"
] | null | null | null | client/clientservicer.cc | gorlak/P4 | fa25916ef69fa77887bb493800b6ce12be3f469e | [
"BSD-2-Clause"
] | null | null | null | client/clientservicer.cc | gorlak/P4 | fa25916ef69fa77887bb493800b6ce12be3f469e | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 1995, 2001 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*/
# ifdef USE_EBCDIC
# define NEED_EBCDIC
# endif
# include <stdhdrs.h>
# include <strbuf.h>
# include <strdict.h>
# include <strops.h>
# include <strarray.h>
# include <st... | 25.211268 | 81 | 0.565053 | gorlak |
61d831db7ee8f53dd38f550ca9bb4112a528b20b | 9,689 | cc | C++ | src/theia/vision/sfm/triangulation/triangulation_test.cc | nuernber/Theia | 4bac771b09458a46c44619afa89498a13cd39999 | [
"BSD-3-Clause"
] | 1 | 2021-02-02T13:30:52.000Z | 2021-02-02T13:30:52.000Z | src/theia/vision/sfm/triangulation/triangulation_test.cc | nuernber/Theia | 4bac771b09458a46c44619afa89498a13cd39999 | [
"BSD-3-Clause"
] | null | null | null | src/theia/vision/sfm/triangulation/triangulation_test.cc | nuernber/Theia | 4bac771b09458a46c44619afa89498a13cd39999 | [
"BSD-3-Clause"
] | 1 | 2020-09-28T08:43:13.000Z | 2020-09-28T08:43:13.000Z | // Copyright (C) 2013 The Regents of the University of California (Regents)
// and Google, Inc. 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 ... | 37.554264 | 80 | 0.647745 | nuernber |
61d893f82a7bea7717d41b3c2b90fb8f05a81c68 | 2,882 | cpp | C++ | source/editor/gui/Player/PInventory.cpp | Slattz/NLTK | b4e687c329ac4820a02fd45ce13d8afdddd26ef3 | [
"MIT"
] | 19 | 2018-07-26T10:41:16.000Z | 2021-12-31T00:09:40.000Z | source/editor/gui/Player/PInventory.cpp | Slattz/NLTK | b4e687c329ac4820a02fd45ce13d8afdddd26ef3 | [
"MIT"
] | 4 | 2019-03-29T04:12:38.000Z | 2019-05-16T18:57:25.000Z | source/editor/gui/Player/PInventory.cpp | Slattz/NLTK | b4e687c329ac4820a02fd45ce13d8afdddd26ef3 | [
"MIT"
] | 5 | 2018-07-14T21:43:56.000Z | 2020-12-11T19:46:49.000Z | #include <3ds.h>
#include <string>
#include <citro2d.h>
#include "CTRFont.hpp"
#include "gfx.h"
#include "save.h"
#include "item.h"
#include "e_utils.h"
#include "utils.h"
#include "InputManager.h"
#include "menus.h"
#include "gui/PlayerMenu.hpp"
static std::vector<std::pair<std::string, s32>> inventoryData; // TODO: ... | 26.2 | 149 | 0.568008 | Slattz |
61d905fc66d11a428214bb4eac8d911568cfc420 | 4,873 | cc | C++ | node_modules/opencv4nodejs/cc/modules/features2d/detectors/MSERDetector.cc | osman-demirci/digital-guard-app-ipcamera | 397a105d34194e2ce1ab7a31f34d03631a316b44 | [
"Apache-2.0"
] | 1 | 2020-12-01T10:15:31.000Z | 2020-12-01T10:15:31.000Z | node_modules/opencv4nodejs/cc/modules/features2d/detectors/MSERDetector.cc | osman-demirci/digital-guard-app-ipcamera | 397a105d34194e2ce1ab7a31f34d03631a316b44 | [
"Apache-2.0"
] | null | null | null | node_modules/opencv4nodejs/cc/modules/features2d/detectors/MSERDetector.cc | osman-demirci/digital-guard-app-ipcamera | 397a105d34194e2ce1ab7a31f34d03631a316b44 | [
"Apache-2.0"
] | null | null | null | #include "MSERDetector.h"
#include "Rect.h"
#include "Point.h"
Nan::Persistent<v8::FunctionTemplate> MSERDetector::constructor;
NAN_MODULE_INIT(MSERDetector::Init) {
v8::Local<v8::FunctionTemplate> ctor = Nan::New<v8::FunctionTemplate>(MSERDetector::New);
v8::Local<v8::ObjectTemplate> instanceTemplate = ct... | 42.373913 | 113 | 0.725631 | osman-demirci |
61dc979c2a7355b7c9faefe9d9e47a9137a1fe9a | 18,005 | cpp | C++ | src/tag.cpp | sarthon/herbstluftwm | b6925946bed73b7b9a74d84e5ed47209ee669eca | [
"BSD-2-Clause-FreeBSD"
] | 4 | 2019-07-30T22:32:38.000Z | 2019-11-12T04:30:11.000Z | src/tag.cpp | calvinhenderson/herbstluftwm | b6925946bed73b7b9a74d84e5ed47209ee669eca | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/tag.cpp | calvinhenderson/herbstluftwm | b6925946bed73b7b9a74d84e5ed47209ee669eca | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /** Copyright 2011-2013 Thorsten Wißmann. All rights reserved.
*
* This software is licensed under the "Simplified BSD License".
* See LICENSE for details */
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include "tag.h"
#include "globals.h"
#include "clientlist.h"
#include "ipc-protocol.h"
#include ... | 30.620748 | 98 | 0.624049 | sarthon |
61de8541ecc67347ddaddda0963e571c17e6c70c | 133 | cpp | C++ | ProjectResolver.cpp | MCModMachine/Client | d52f47d30e9a46645697dae639a8c2eb85b6be5e | [
"MIT"
] | 1 | 2016-08-17T10:17:09.000Z | 2016-08-17T10:17:09.000Z | ProjectResolver.cpp | MCModMachine/Client | d52f47d30e9a46645697dae639a8c2eb85b6be5e | [
"MIT"
] | null | null | null | ProjectResolver.cpp | MCModMachine/Client | d52f47d30e9a46645697dae639a8c2eb85b6be5e | [
"MIT"
] | null | null | null | //
// ProjectResolver.cpp
// mcubed-client
//
// Created by Gaelan Bright Steele on 7/3/16.
//
//
#include "ProjectResolver.hpp"
| 13.3 | 46 | 0.661654 | MCModMachine |
61e07c9646651fb073e527891cb89661f6f5ab11 | 2,809 | cpp | C++ | src/RenderProcessHandler.cpp | GPBeta/nc.js | 859ab391930d3ac13f69312074ac2ecc65b8594a | [
"MIT"
] | 105 | 2016-05-31T15:57:47.000Z | 2022-03-04T07:08:45.000Z | src/RenderProcessHandler.cpp | GPBeta/nc.js | 859ab391930d3ac13f69312074ac2ecc65b8594a | [
"MIT"
] | 6 | 2016-06-23T02:36:17.000Z | 2020-02-27T02:56:49.000Z | src/RenderProcessHandler.cpp | GPBeta/nc.js | 859ab391930d3ac13f69312074ac2ecc65b8594a | [
"MIT"
] | 32 | 2016-07-09T12:51:35.000Z | 2022-01-11T07:41:12.000Z |
/***************************************************************
* Name: RenderProcessHandler.cpp
* Purpose: Codes for Node-CEF Render Process Handler Class
* Author: Joshua GPBeta (studiocghibli@gmail.com)
* Created: 2016-05-22
* Copyright: Studio GPBeta (www.gpbeta.com)
* License:
********... | 33.440476 | 85 | 0.49733 | GPBeta |
61eac8aa131cc6d476c979b93e162c0c1c23cdf4 | 513 | hxx | C++ | include/pqxx/internal/gates/connection-errorhandler.hxx | ash-j-f/libpqxx | 0f0941c4fb04c56703ccacd567a27160a8a74b93 | [
"BSD-3-Clause"
] | null | null | null | include/pqxx/internal/gates/connection-errorhandler.hxx | ash-j-f/libpqxx | 0f0941c4fb04c56703ccacd567a27160a8a74b93 | [
"BSD-3-Clause"
] | null | null | null | include/pqxx/internal/gates/connection-errorhandler.hxx | ash-j-f/libpqxx | 0f0941c4fb04c56703ccacd567a27160a8a74b93 | [
"BSD-3-Clause"
] | null | null | null | #include <pqxx/internal/callgate.hxx>
namespace pqxx
{
class connection;
class errorhandler;
}
namespace pqxx::internal::gate
{
class PQXX_PRIVATE connection_errorhandler : callgate<connection>
{
friend class pqxx::errorhandler;
connection_errorhandler(reference x) : super(x) {}
void register_errorhandler(err... | 22.304348 | 65 | 0.74269 | ash-j-f |
61eb60da6bb7bdbeff7e85ee49cc68c93a27edb8 | 1,099 | cpp | C++ | test/2020.10.06/b/b.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | test/2020.10.06/b/b.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | test/2020.10.06/b/b.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <vector>
const int N = 2e5 + 1e4;
struct node {
int id;
int country, score;
};
bool vis[N];
node a[N];
int main() {
#ifdef woshiluo
freopen( "b.in", "r", stdin );
freopen( "b.out", "w", stdout );
#endif
int n;
scanf( "%d", &n );
for( int i = 1; i <= n; i ++ ) {
a[i].id = i;
sc... | 19.981818 | 83 | 0.509554 | woshiluo |
61ebb0342ec7940dcfc768a68d71ff287df55500 | 6,192 | cpp | C++ | AssignmentProject/Player.cpp | VasilStamatov/GraphicsLearning | 8cf5dc57fedd809066472e96c8182153a1fa54d9 | [
"MIT"
] | null | null | null | AssignmentProject/Player.cpp | VasilStamatov/GraphicsLearning | 8cf5dc57fedd809066472e96c8182153a1fa54d9 | [
"MIT"
] | null | null | null | AssignmentProject/Player.cpp | VasilStamatov/GraphicsLearning | 8cf5dc57fedd809066472e96c8182153a1fa54d9 | [
"MIT"
] | null | null | null | #include "Player.h"
#include "Box.h"
#include <GameEngine/ResourceManager.h>
#include <GameEngine\GameEngineErrors.h>
#include <SDL/SDL.h>
void Player::Init(b2World* _world,
const glm::vec2& _position,
const glm::vec2& _drawDims,
glm::vec2& _collisionDims,
GameEngine::ColorRGBA8 _color)
{
//set t... | 29.207547 | 142 | 0.593992 | VasilStamatov |
61ec0f4d60a9fc41e720319c1ce0ce72a3114fdb | 1,335 | hpp | C++ | supervisor/src/network/websocket/ManagerVisitor.hpp | mdziekon/eiti-tin-ftp-stattr | c8b8c119f6731045f90281d607b98d7a5ffb3bd2 | [
"MIT"
] | 1 | 2018-11-12T02:48:46.000Z | 2018-11-12T02:48:46.000Z | supervisor/src/network/websocket/ManagerVisitor.hpp | mdziekon/eiti-tin-ftp-stattr | c8b8c119f6731045f90281d607b98d7a5ffb3bd2 | [
"MIT"
] | null | null | null | supervisor/src/network/websocket/ManagerVisitor.hpp | mdziekon/eiti-tin-ftp-stattr | c8b8c119f6731045f90281d607b98d7a5ffb3bd2 | [
"MIT"
] | null | null | null | #ifndef TIN_NETWORK_WEBSOCKET_MANAGERVISITOR_HPP
#define TIN_NETWORK_WEBSOCKET_MANAGERVISITOR_HPP
namespace tin { namespace network { namespace websocket
{
class Manager;
namespace events
{
struct TerminateNetworkManager;
struct NewServerConnection;
struct ServerConnectionClosed;
... | 32.560976 | 82 | 0.708614 | mdziekon |
61ed8cf47b6d9db480d424b5df3b496fc0964cb5 | 7,952 | cpp | C++ | tests/benchmarks/benchmark_tensor.cpp | roman-ellerbrock/QuTree | 28c5b4eddf20e41cd015a03d33f31693eff17839 | [
"MIT"
] | 6 | 2020-04-24T09:58:23.000Z | 2022-02-06T03:40:55.000Z | tests/benchmarks/benchmark_tensor.cpp | roman-ellerbrock/QuTree | 28c5b4eddf20e41cd015a03d33f31693eff17839 | [
"MIT"
] | 1 | 2020-06-18T11:33:14.000Z | 2020-06-18T11:35:23.000Z | tests/benchmarks/benchmark_tensor.cpp | roman-ellerbrock/QuTree | 28c5b4eddf20e41cd015a03d33f31693eff17839 | [
"MIT"
] | 1 | 2020-12-26T15:23:21.000Z | 2020-12-26T15:23:21.000Z | //
// Created by Roman Ellerbrock on 2/3/20.
//
#include <iomanip>
#include "benchmark_tensor.h"
#include "benchmark_helper.h"
#include "benchmark_tree.h"
namespace benchmark {
TensorShape make_TensorDim(size_t order, size_t dim) {
assert(order > 1);
assert(dim > 0);
vector<size_t> dims;
for (size_t i = 0; i ... | 33.552743 | 110 | 0.628521 | roman-ellerbrock |
61ef8dfe9a000a64aa08d78e1d78fbe96d7ca168 | 9,144 | cpp | C++ | example/processing_room/processing_app.cpp | GeniusVentures/SuperGenius | ae43304f4a2475498ef56c971296175acb88d0ee | [
"MIT"
] | 1 | 2021-07-10T21:25:03.000Z | 2021-07-10T21:25:03.000Z | example/processing_room/processing_app.cpp | GeniusVentures/SuperGenius | ae43304f4a2475498ef56c971296175acb88d0ee | [
"MIT"
] | null | null | null | example/processing_room/processing_app.cpp | GeniusVentures/SuperGenius | ae43304f4a2475498ef56c971296175acb88d0ee | [
"MIT"
] | null | null | null | #include "processing/processing_service.hpp"
#include <iostream>
#include <boost/program_options.hpp>
#include <boost/format.hpp>
#include <libp2p/multi/multibase_codec/multibase_codec_impl.hpp>
#include <libp2p/log/configurator.hpp>
#include <libp2p/log/logger.hpp>
using namespace sgns::processing;
namespace
{
... | 32.892086 | 136 | 0.600612 | GeniusVentures |
61f15eed8fbfa60be522860a3e181667181f8228 | 2,785 | cc | C++ | Sources/Traits/Observable.cc | twistedflick/Yuka | c1601a7314ccbdb1de2f4b7c69f4e2eb3f749b35 | [
"Apache-2.0"
] | null | null | null | Sources/Traits/Observable.cc | twistedflick/Yuka | c1601a7314ccbdb1de2f4b7c69f4e2eb3f749b35 | [
"Apache-2.0"
] | null | null | null | Sources/Traits/Observable.cc | twistedflick/Yuka | c1601a7314ccbdb1de2f4b7c69f4e2eb3f749b35 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2018 Mo McRoberts.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 20.477941 | 76 | 0.687612 | twistedflick |
61f7ef867b0b2b66c2df5584ecdc8c811b6f037e | 24 | cpp | C++ | src/rp2_common/pico_standard_link/new_delete.cpp | asynts/pico-sdk | 3a9052bc7b5f59cdbf0096ebee954db5af7babe7 | [
"BSD-3-Clause"
] | null | null | null | src/rp2_common/pico_standard_link/new_delete.cpp | asynts/pico-sdk | 3a9052bc7b5f59cdbf0096ebee954db5af7babe7 | [
"BSD-3-Clause"
] | null | null | null | src/rp2_common/pico_standard_link/new_delete.cpp | asynts/pico-sdk | 3a9052bc7b5f59cdbf0096ebee954db5af7babe7 | [
"BSD-3-Clause"
] | null | null | null | // Moved to my codebase
| 12 | 23 | 0.708333 | asynts |
61f8ef9b7ac54cdab280ffea4ef63c702710ff67 | 7,071 | cpp | C++ | Dump (complete other files)/MATLAB/control.cpp | Mauvai/Quadcopter-FYP-legacy | 161f2842d06d30aad06895efa198dc0ee28a27c2 | [
"MIT"
] | null | null | null | Dump (complete other files)/MATLAB/control.cpp | Mauvai/Quadcopter-FYP-legacy | 161f2842d06d30aad06895efa198dc0ee28a27c2 | [
"MIT"
] | null | null | null | Dump (complete other files)/MATLAB/control.cpp | Mauvai/Quadcopter-FYP-legacy | 161f2842d06d30aad06895efa198dc0ee28a27c2 | [
"MIT"
] | null | null | null | /* See Ross' Logbook, semester 2 week 3 for control difference equations.
* Gains are DILIBERATELY ENTERED AS FLOATS, AND NOT A FLOAT ARRAY - faster, no referencing overhead.
*Channel 1, u1 is Height
*Channel 2, u2 is Roll
*Channel 3, u3 is Pitch
*Channel 4, u4 is Yaw
*Motor 1 PWM input is summed +u1 -u3+u4... | 51.613139 | 156 | 0.682506 | Mauvai |
61fa755ffc416f277da7e0de904ebcbaed9b80af | 43 | hpp | C++ | src/boost_spirit_include_qi_int.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_include_qi_int.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_include_qi_int.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/include/qi_int.hpp>
| 21.5 | 42 | 0.790698 | miathedev |
110305308784e6e667bd787d44a294464fee708d | 2,646 | hpp | C++ | inc/net/async.hpp | douderg/https-client | e169fe4297aaad76098637d02361c611e79001bc | [
"BSL-1.0"
] | 1 | 2022-02-20T22:19:55.000Z | 2022-02-20T22:19:55.000Z | inc/net/async.hpp | douderg/https-client | e169fe4297aaad76098637d02361c611e79001bc | [
"BSL-1.0"
] | null | null | null | inc/net/async.hpp | douderg/https-client | e169fe4297aaad76098637d02361c611e79001bc | [
"BSL-1.0"
] | 1 | 2022-02-22T00:08:02.000Z | 2022-02-22T00:08:02.000Z | #pragma once
#include <boost/beast.hpp>
#include <boost/beast/core/bind_handler.hpp>
#include <boost/beast/core/flat_buffer.hpp>
#include <boost/beast/core/stream_traits.hpp>
#include <boost/beast/http/dynamic_body.hpp>
#include <boost/beast/http/message.hpp>
#include <boost/beast/http/read.hpp>
#include <boost/beast/... | 30.767442 | 153 | 0.645881 | douderg |
11059480300d6c513449ad09c59545265395b6fd | 6,398 | cpp | C++ | FormulaEngine/ScriptWorld.cpp | apoch/formula-engine | 594190bb5602a7362f09e4ed080c68224390a231 | [
"BSD-3-Clause"
] | 30 | 2015-10-13T05:11:48.000Z | 2021-07-16T06:24:18.000Z | FormulaEngine/ScriptWorld.cpp | apoch/formula-engine | 594190bb5602a7362f09e4ed080c68224390a231 | [
"BSD-3-Clause"
] | null | null | null | FormulaEngine/ScriptWorld.cpp | apoch/formula-engine | 594190bb5602a7362f09e4ed080c68224390a231 | [
"BSD-3-Clause"
] | 3 | 2016-06-03T03:01:43.000Z | 2021-07-16T06:24:31.000Z | #include "Pch.h"
#include "Interfaces.h"
#include "Formula.h"
#include "Actions.h"
#include "TokenPool.h"
#include "PropertyBag.h"
#include "EventHandler.h"
#include "Scriptable.h"
#include "ScriptWorld.h"
ScriptWorld::ScriptWorld (TokenPool * pool, IEngineBinder * binder)
: m_binder(binder),
m_tokens(pool)
{
... | 26.114286 | 134 | 0.719912 | apoch |
110a718c4b17363fe841bd825867a9651ae30f6f | 2,217 | cpp | C++ | tests/src/experimental/tests_DynArray.cpp | Mike-Bal/mart-common | 0b52654c6f756e8e86689e56d24849c97079229c | [
"MIT"
] | null | null | null | tests/src/experimental/tests_DynArray.cpp | Mike-Bal/mart-common | 0b52654c6f756e8e86689e56d24849c97079229c | [
"MIT"
] | null | null | null | tests/src/experimental/tests_DynArray.cpp | Mike-Bal/mart-common | 0b52654c6f756e8e86689e56d24849c97079229c | [
"MIT"
] | null | null | null | #include <mart-common/experimental/DynArray.h>
#include <catch2/catch.hpp>
#if __cpp_lib_span
#include <span>
#endif
TEST_CASE( "experimental_DynArrayTrivial_has_correct_size", "[experimental][dynarray]" )
{
mart::DynArrayTriv<int> arr1;
CHECK( arr1.size() == 0 );
mart::DynArrayTriv<int> arr2( 5 );
CHECK( arr2... | 19.794643 | 88 | 0.606676 | Mike-Bal |
1110807be62f625c87aa59d67b4759d31e1ab28b | 17,841 | cpp | C++ | jlp_andor/jlp_Atmcd32d_linux.cpp | jlprieur/PiscoSpeck2 | f6018b362feb67b71c920c3272a44fed35cad844 | [
"MIT"
] | 1 | 2020-03-28T14:45:16.000Z | 2020-03-28T14:45:16.000Z | jlp_andor/jlp_Atmcd32d_linux.cpp | jlprieur/PiscoSpeck2 | f6018b362feb67b71c920c3272a44fed35cad844 | [
"MIT"
] | null | null | null | jlp_andor/jlp_Atmcd32d_linux.cpp | jlprieur/PiscoSpeck2 | f6018b362feb67b71c920c3272a44fed35cad844 | [
"MIT"
] | 1 | 2020-07-09T00:20:38.000Z | 2020-07-09T00:20:38.000Z | /****************************************************************************
* jlp_Atmcd32d_linux.cpp
* Dummy Andor library to replace Windows one
*
* JLP
* Version 28/08/2015
*****************************************************************************/
#include "asp2_typedef.h" // BYTE
#include "jlp_Atmcd32d_linux.... | 66.32342 | 200 | 0.779553 | jlprieur |
1110fab520e853673a70ebe0815b8879209eb52c | 3,121 | cpp | C++ | inference-engine/src/vpu/graph_transformer/src/middleend/passes/propagate_dynamism_to_outputs.cpp | mpenkows/openvino | 438c69411a16f58f279f444582eec892916d5a8c | [
"Apache-2.0"
] | null | null | null | inference-engine/src/vpu/graph_transformer/src/middleend/passes/propagate_dynamism_to_outputs.cpp | mpenkows/openvino | 438c69411a16f58f279f444582eec892916d5a8c | [
"Apache-2.0"
] | null | null | null | inference-engine/src/vpu/graph_transformer/src/middleend/passes/propagate_dynamism_to_outputs.cpp | mpenkows/openvino | 438c69411a16f58f279f444582eec892916d5a8c | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "vpu/middleend/pass_manager.hpp"
#include <set>
#include <memory>
namespace vpu {
namespace {
class PassImpl final : public Pass {
public:
explicit PassImpl(StageBuilder::Ptr stageBuilder) : _stageBuilder(std::move(stage... | 36.717647 | 115 | 0.604614 | mpenkows |
111225b73f892dfdc834d3596a2d948bbbdd37a2 | 1,026 | hpp | C++ | libs/systems/include/sge/systems/window.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/systems/include/sge/systems/window.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/systems/include/sge/systems/window.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_SYSTEMS_WINDOW_HPP_INCLUDED
#define SGE_SYSTEMS_WINDOW_HPP_INCLUDED
#include <sge/syst... | 22.8 | 80 | 0.72807 | cpreh |
11145c3a1ad05f911c8547ab86977a5962be7502 | 1,262 | cpp | C++ | src/PSV_Utils.cpp | MSeys/PSV_2DCore_samples | 3942c75391aeda9172dfed75165e80b5628a7a60 | [
"MIT"
] | null | null | null | src/PSV_Utils.cpp | MSeys/PSV_2DCore_samples | 3942c75391aeda9172dfed75165e80b5628a7a60 | [
"MIT"
] | null | null | null | src/PSV_Utils.cpp | MSeys/PSV_2DCore_samples | 3942c75391aeda9172dfed75165e80b5628a7a60 | [
"MIT"
] | null | null | null | #include "PSV_Utils.h"
PSV_TouchSamplingMode PSV_TSMode{ PSV_TOUCH_MOTION };
// 0 is reserved for drawing when there is no transformation
int PSV_CT{ 0 };
std::vector<Vector2f> PSV_Translations{ Vector2f{ 0, 0 } };
std::vector<Scale2f> PSV_Scales{ Scale2f{ 1, 1 } };
bool PSV_Allowed{ false };
void PSV_SetTouchSamp... | 15.775 | 80 | 0.674326 | MSeys |
11191d13042be879ca1b85e70c0a49aa5fdf32c8 | 113 | cpp | C++ | src/asn1/Asn1Sequence.cpp | LabSEC/libcryptosec | e53030ec32b52b6abeaa973a9f0bfba0eb2c2440 | [
"BSD-3-Clause"
] | 22 | 2015-08-26T16:40:59.000Z | 2022-02-22T19:52:55.000Z | src/asn1/Asn1Sequence.cpp | LabSEC/Libcryptosec | e53030ec32b52b6abeaa973a9f0bfba0eb2c2440 | [
"BSD-3-Clause"
] | 14 | 2015-09-01T00:39:22.000Z | 2018-12-17T16:24:28.000Z | src/asn1/Asn1Sequence.cpp | LabSEC/Libcryptosec | e53030ec32b52b6abeaa973a9f0bfba0eb2c2440 | [
"BSD-3-Clause"
] | 22 | 2015-08-31T19:17:37.000Z | 2021-01-04T13:38:35.000Z | #include <libcryptosec/asn1/Asn1Sequence.h>
Asn1Sequence::Asn1Sequence()
{
}
Asn1Sequence::~Asn1Sequence()
{
}
| 11.3 | 43 | 0.743363 | LabSEC |
1119f16640fa86183026819b3f5d8c4f5b025ee1 | 145 | hpp | C++ | Source/Tools/alive_api/AEJsonUpgrader.hpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | 1 | 2021-04-11T23:44:43.000Z | 2021-04-11T23:44:43.000Z | Source/Tools/alive_api/AEJsonUpgrader.hpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | null | null | null | Source/Tools/alive_api/AEJsonUpgrader.hpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | null | null | null | #pragma once
#include "JsonUpgrader.hpp"
class AEJsonUpgrader : public BaseJsonUpgrader
{
public:
virtual void AddUpgraders() override;
};
| 14.5 | 46 | 0.758621 | THEONLYDarkShadow |
111c303a55d067f1ab1ec11f263587d516e1cd6e | 2,618 | cpp | C++ | example/main.cpp | Megaxela/CodeExecutor | 4d4f4e6ffb298e250e04edb23a29bf90c3e0d43a | [
"MIT"
] | 3 | 2020-05-22T09:24:30.000Z | 2020-11-06T15:16:04.000Z | example/main.cpp | Megaxela/CodeExecutor | 4d4f4e6ffb298e250e04edb23a29bf90c3e0d43a | [
"MIT"
] | null | null | null | example/main.cpp | Megaxela/CodeExecutor | 4d4f4e6ffb298e250e04edb23a29bf90c3e0d43a | [
"MIT"
] | 2 | 2020-05-12T03:28:11.000Z | 2020-11-18T09:48:27.000Z | #include <iostream>
#include <CodeExecutor/Builder.hpp>
#include <CodeExecutor/Process.hpp>
#include <CodeExecutor/CommonCompiler.hpp>
#include <CodeExecutor/CommonLinker.hpp>
static const char* source1Example =
"#include <iostream>\n"
"extern \"C\" int func(int a, int b)"
"{"
" std::cout << a + b <<... | 23.585586 | 86 | 0.585943 | Megaxela |
111c635e4c628c2a19ad779ec3b5d4367200a25f | 983 | hpp | C++ | src/ParallelAlgorithms/Events/Factory.hpp | isha1810/spectre | fc22b6cc9c64d7ebc7f6ffef3252056358673558 | [
"MIT"
] | null | null | null | src/ParallelAlgorithms/Events/Factory.hpp | isha1810/spectre | fc22b6cc9c64d7ebc7f6ffef3252056358673558 | [
"MIT"
] | null | null | null | src/ParallelAlgorithms/Events/Factory.hpp | isha1810/spectre | fc22b6cc9c64d7ebc7f6ffef3252056358673558 | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cstddef>
#include <type_traits>
#include "ParallelAlgorithms/Events/ObserveErrorNorms.hpp"
#include "ParallelAlgorithms/Events/ObserveFields.hpp"
#include "ParallelAlgorithms/Events/ObserveTimeStep.hpp"
#include "Time/Action... | 32.766667 | 74 | 0.734486 | isha1810 |
111fa1fff1f3ff3fb6f6c4d8df923964b5c3175d | 2,996 | cpp | C++ | query_optimizer/LogicalGenerator.cpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 82 | 2016-04-18T03:59:06.000Z | 2019-02-04T11:46:08.000Z | query_optimizer/LogicalGenerator.cpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 265 | 2016-04-19T17:52:43.000Z | 2018-10-11T17:55:08.000Z | query_optimizer/LogicalGenerator.cpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 68 | 2016-04-18T05:00:34.000Z | 2018-10-30T12:41:02.000Z | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 34.436782 | 71 | 0.756342 | Hacker0912 |
11247b0a46266ea1827ed45e5ec5498869d38f80 | 1,035 | cpp | C++ | helperlib/fourier.cpp | Ben1980/fourier | 7edd8e7004a528d574584cba08d8c653edc5ee41 | [
"MIT"
] | null | null | null | helperlib/fourier.cpp | Ben1980/fourier | 7edd8e7004a528d574584cba08d8c653edc5ee41 | [
"MIT"
] | null | null | null | helperlib/fourier.cpp | Ben1980/fourier | 7edd8e7004a528d574584cba08d8c653edc5ee41 | [
"MIT"
] | 2 | 2020-03-25T15:54:40.000Z | 2020-08-31T08:42:56.000Z | #include "fourier.h"
#include <algorithm>
#include <cmath>
bool Fourier::Equal(const Coefficients& expected, const Coefficients& result)
{
if(!expected || !result) return false;
if(expected().size() != result().size()) return false;
const bool equal = std::equal(expected().begin(), expected().end(), resul... | 34.5 | 92 | 0.66087 | Ben1980 |
1126843072c418bbb69d2c4511b0610d92d88e13 | 5,408 | cpp | C++ | tests/cthread/test_cthread_read_defined_3.cpp | hachetman/systemc-compiler | 0cc81ace03336d752c0146340ff5763a20e3cefd | [
"Apache-2.0"
] | 86 | 2020-10-23T15:59:47.000Z | 2022-03-28T18:51:19.000Z | tests/cthread/test_cthread_read_defined_3.cpp | hachetman/systemc-compiler | 0cc81ace03336d752c0146340ff5763a20e3cefd | [
"Apache-2.0"
] | 18 | 2020-12-14T13:11:26.000Z | 2022-03-14T05:34:20.000Z | tests/cthread/test_cthread_read_defined_3.cpp | hachetman/systemc-compiler | 0cc81ace03336d752c0146340ff5763a20e3cefd | [
"Apache-2.0"
] | 17 | 2020-10-29T16:19:43.000Z | 2022-03-11T09:51:05.000Z | /******************************************************************************
* Copyright (c) 2020, Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception.
*
*****************************************************************************/
//
// Created by ripopov on 12/4/... | 32 | 79 | 0.571006 | hachetman |
112a10fafc301bd5da5276252f09e35d75868bbf | 1,016 | cpp | C++ | src/ConvexConcaveCollisionAlgorithm.cpp | yoshinoToylogic/bulletsharp | 79558f9e78b68f1d218d64234645848661a54e01 | [
"MIT"
] | null | null | null | src/ConvexConcaveCollisionAlgorithm.cpp | yoshinoToylogic/bulletsharp | 79558f9e78b68f1d218d64234645848661a54e01 | [
"MIT"
] | null | null | null | src/ConvexConcaveCollisionAlgorithm.cpp | yoshinoToylogic/bulletsharp | 79558f9e78b68f1d218d64234645848661a54e01 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#ifndef DISABLE_COLLISION_ALGORITHMS
#include "CollisionObject.h"
#include "CollisionObjectWrapper.h"
#include "ConvexConcaveCollisionAlgorithm.h"
ConvexConcaveCollisionAlgorithm::CreateFunc::CreateFunc()
: CollisionAlgorithmCreateFunc(new btConvexConcaveCollisionAlgorithm::CreateFunc()... | 29.028571 | 105 | 0.813976 | yoshinoToylogic |
112acc7bafbf886dea086b46cb7e491d34d8ec71 | 2,194 | cc | C++ | login.cc | DSNP/dsnpd | 0670d60c80a407b8a399b7a456ce0b2c2d3ee6bd | [
"MIT"
] | null | null | null | login.cc | DSNP/dsnpd | 0670d60c80a407b8a399b7a456ce0b2c2d3ee6bd | [
"MIT"
] | 3 | 2021-02-04T00:26:22.000Z | 2021-02-04T00:30:06.000Z | login.cc | DSNP/dsnpd | 0670d60c80a407b8a399b7a456ce0b2c2d3ee6bd | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2009-2011, Adrian Thurston <thurston@complang.org>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVI... | 35.387097 | 86 | 0.707384 | DSNP |
112d8a47697576f7b2c6b8e9b86373b13629d8de | 3,303 | cpp | C++ | Tests/substring.cpp | klassen-software-solutions/kssutil | 985a80e96d648c448f2ac81d7dcbc48054e0c7aa | [
"MIT"
] | 1 | 2019-05-08T16:45:02.000Z | 2019-05-08T16:45:02.000Z | Tests/substring.cpp | klassen-software-solutions/kssutil | 985a80e96d648c448f2ac81d7dcbc48054e0c7aa | [
"MIT"
] | 14 | 2019-01-23T15:22:55.000Z | 2021-08-27T23:23:42.000Z | Tests/substring.cpp | klassen-software-solutions/kssutil | 985a80e96d648c448f2ac81d7dcbc48054e0c7aa | [
"MIT"
] | 1 | 2022-02-05T09:04:53.000Z | 2022-02-05T09:04:53.000Z | //
// substring.cpp
// kssutil
//
// Created by Steven W. Klassen on 2014-01-25.
// Copyright (c) 2014 Klassen Software Solutions. All rights reserved.
//
#include <iostream>
#include <kss/test/all.h>
#include <kss/util/substring.hpp>
using namespace std;
using namespace kss::util;
using namespace kss::util::str... | 38.406977 | 114 | 0.6703 | klassen-software-solutions |
112dc5e1ced9272942baca39a38edea5f4cd359e | 728 | cpp | C++ | vm86/executeBytecodeOnHostMachine.cpp | Sainan/vm86 | e9cf021c78bdfc03d250a0b10f55ff5213d1af89 | [
"Unlicense"
] | 1 | 2021-09-27T11:50:44.000Z | 2021-09-27T11:50:44.000Z | vm86/executeBytecodeOnHostMachine.cpp | Sainan/vm86 | e9cf021c78bdfc03d250a0b10f55ff5213d1af89 | [
"Unlicense"
] | null | null | null | vm86/executeBytecodeOnHostMachine.cpp | Sainan/vm86 | e9cf021c78bdfc03d250a0b10f55ff5213d1af89 | [
"Unlicense"
] | null | null | null | #include "executeBytecodeOnHostMachine.hpp"
#include <stdexcept>
#include <windows.h>
namespace vm86
{
regvalue_t executeBytecodeOnHostMachine(const std::vector<uint8_t>& bytecode, regvalue_t reg_counter, regvalue_t reg_data)
{
void* const buffer = VirtualAlloc(nullptr, bytecode.size(), MEM_COMMIT, PAGE_READWRIT... | 30.333333 | 123 | 0.752747 | Sainan |
112e0c2bd4e0c9c1d0064ec2f4e6ff39a6e61bb9 | 4,368 | cpp | C++ | TestSrc/TestTokens.cpp | dirkcgrunwald/SAM | 0478925c506ad38fd405954cc4415a3e96e77d90 | [
"MIT"
] | null | null | null | TestSrc/TestTokens.cpp | dirkcgrunwald/SAM | 0478925c506ad38fd405954cc4415a3e96e77d90 | [
"MIT"
] | null | null | null | TestSrc/TestTokens.cpp | dirkcgrunwald/SAM | 0478925c506ad38fd405954cc4415a3e96e77d90 | [
"MIT"
] | null | null | null | #define BOOST_TEST_MAIN TestTokens
#include <boost/test/unit_test.hpp>
#include <stdexcept>
#include <stack>
#include <tuple>
#include <sam/Tokens.hpp>
#include <sam/VastNetflow.hpp>
#include <sam/FeatureMap.hpp>
using namespace sam;
struct F {
VastNetflow netflow;
std::shared_ptr<FeatureMap> featureMap = std::ma... | 25.694118 | 79 | 0.688645 | dirkcgrunwald |
1131a29608fbbb76c124977c6e1437c9e2726135 | 335 | cpp | C++ | Codes/multiple_variables_declarations_&_constant.cpp | Felipe-Pereira-Barros/CPP | 050add96024c8e5b0d01ebb6cab52452cbb6dff5 | [
"MIT"
] | 2 | 2020-05-21T14:44:36.000Z | 2020-05-28T01:08:18.000Z | Codes/multiple_variables_declarations_&_constant.cpp | Felipe-Pereira-Barros/CPP | 050add96024c8e5b0d01ebb6cab52452cbb6dff5 | [
"MIT"
] | null | null | null | Codes/multiple_variables_declarations_&_constant.cpp | Felipe-Pereira-Barros/CPP | 050add96024c8e5b0d01ebb6cab52452cbb6dff5 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
#define pi 3.1415
#define channel cout << "Felipe Pereira Barros\n\n";
int main(){
//int LIFE, AMMO, HEALTH;
/*int LIFE;
int AMMO;
int HEALTH;*/
int LIFE=3; int AMMO=500; int HEALTH=100;
cout << pi << "\n\n";
channel
system("pause");
... | 14.565217 | 52 | 0.576119 | Felipe-Pereira-Barros |
1134a720ba180c863b06ec264c436a5b9364aa46 | 501 | cpp | C++ | q/src/res/Impl/Free_Type_Font_Loader.cpp | jeanleflambeur/silkopter | cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8 | [
"BSD-3-Clause"
] | 36 | 2015-03-09T16:47:14.000Z | 2021-02-04T08:32:04.000Z | q/src/res/Impl/Free_Type_Font_Loader.cpp | jeanlemotan/silkopter | cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8 | [
"BSD-3-Clause"
] | 42 | 2017-02-11T11:15:51.000Z | 2019-12-28T16:00:44.000Z | q/src/res/Impl/Free_Type_Font_Loader.cpp | jeanleflambeur/silkopter | cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8 | [
"BSD-3-Clause"
] | 5 | 2015-10-15T05:46:48.000Z | 2020-05-11T17:40:36.000Z | #include "QStdAfx.h"
#include "res/Resource.h"
#include "text/Font.h"
#include "Free_Type_Font_Loader.h"
using namespace q;
using namespace res;
using namespace impl;
using namespace data;
using namespace text;
bool Free_Type_Font_Loader::can_load_from_source(data::Source& /*source*/) const
{
return t... | 20.04 | 95 | 0.712575 | jeanleflambeur |
11368f5297c08c1bdcf850dd42ba2e324d86ecc4 | 496 | cpp | C++ | math_logics/factorial.cpp | sanathvernekar/Routine_codes | a898ca7e79cf39c289cb2fefaf764c9f8e0eb331 | [
"MIT"
] | null | null | null | math_logics/factorial.cpp | sanathvernekar/Routine_codes | a898ca7e79cf39c289cb2fefaf764c9f8e0eb331 | [
"MIT"
] | null | null | null | math_logics/factorial.cpp | sanathvernekar/Routine_codes | a898ca7e79cf39c289cb2fefaf764c9f8e0eb331 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define ll long long int
ll factorial[2000000];
ll max_fact=1;
ll fact(ll x){
ll i;
if(x<=max_fact)return factorial[x];
else{
for(i=max_fact+1;i<=x;i++){
factorial[i]=(factorial[i-1]*i)%mod;
}
max_fact=... | 13.052632 | 48 | 0.560484 | sanathvernekar |
11395bed29ed905ef9ebbb97b267c6743d734db9 | 2,732 | cpp | C++ | MikaCL/main.cpp | acbarrentine/Mika | 8d88f015360c1ab731da0fda1281a3327dcb9ec9 | [
"Unlicense"
] | null | null | null | MikaCL/main.cpp | acbarrentine/Mika | 8d88f015360c1ab731da0fda1281a3327dcb9ec9 | [
"Unlicense"
] | null | null | null | MikaCL/main.cpp | acbarrentine/Mika | 8d88f015360c1ab731da0fda1281a3327dcb9ec9 | [
"Unlicense"
] | null | null | null | #include "stdafx.h"
#include "../Compiler/Compiler.h"
void Usage()
{
GCompiler.Message(MsgSeverity::kInfo, "Usage: MikaCL <glue_source_header_path> [-s <source_script_path>] [-o <output_file_path>] [-d <debug_file_path>]\n");
GCompiler.Message(MsgSeverity::kInfo, " Example: MikaCL TestScrits/MikaGlue.mikah -s... | 29.376344 | 160 | 0.577233 | acbarrentine |
113de64bfc72e1832c8714ad09ca78d608e0b49e | 3,124 | cpp | C++ | tengine/game/entities/camera.cpp | BSVino/Digitanks | 1bd1ed115493bce22001ae6684b70b8fcf135db0 | [
"BSD-4-Clause"
] | 5 | 2015-07-03T18:42:32.000Z | 2017-08-25T10:28:12.000Z | tengine/game/entities/camera.cpp | BSVino/Digitanks | 1bd1ed115493bce22001ae6684b70b8fcf135db0 | [
"BSD-4-Clause"
] | null | null | null | tengine/game/entities/camera.cpp | BSVino/Digitanks | 1bd1ed115493bce22001ae6684b70b8fcf135db0 | [
"BSD-4-Clause"
] | null | null | null | #include "camera.h"
#include <geometry.h>
#include <game/cameramanager.h>
REGISTER_ENTITY(CCamera);
NETVAR_TABLE_BEGIN(CCamera);
NETVAR_TABLE_END();
SAVEDATA_TABLE_BEGIN_EDITOR(CCamera);
SAVEDATA_DEFINE_HANDLE_ENTITY(CSaveData::DATA_COPYTYPE, CEntityHandle<CBaseEntity>, m_hCameraTarget, "CameraTarget");
SAVEDATA... | 29.752381 | 118 | 0.775288 | BSVino |
114492e420f2b0202b17594790b10c85305ce532 | 5,523 | cpp | C++ | libaln/src/alncalcconfidence.cpp | Bill-Armstrong/NANO | 34356c2bcbc5e5b81383a0caf6da84dd0df03482 | [
"MIT"
] | 2 | 2020-10-05T21:48:53.000Z | 2020-10-05T21:49:01.000Z | libaln/src/alncalcconfidence.cpp | Bill-Armstrong/NANO | 34356c2bcbc5e5b81383a0caf6da84dd0df03482 | [
"MIT"
] | 1 | 2020-08-14T08:00:12.000Z | 2020-08-14T08:00:12.000Z | libaln/src/alncalcconfidence.cpp | Bill-Armstrong/NANO | 34356c2bcbc5e5b81383a0caf6da84dd0df03482 | [
"MIT"
] | 4 | 2020-07-22T23:07:02.000Z | 2022-01-14T03:22:31.000Z | // ALN Library
/* MIT License
Copyright (c) 2020 William Ward Armstrong
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,... | 29.222222 | 89 | 0.673728 | Bill-Armstrong |
1145033b0fe6d6dad1658b1922fb2387246a8e1f | 214 | cpp | C++ | C++/o1-check-power-of-2.cpp | xenron/sandbox-dev-lintcode | 114145723af43eafc84ff602ad3ac7b353a9fc38 | [
"MIT"
] | 695 | 2015-04-18T16:11:56.000Z | 2022-03-11T13:28:44.000Z | C++/o1-check-power-of-2.cpp | Abd-Elrazek/LintCode | 8f6ee0ff38cb7cf8bf9fca800243823931604155 | [
"MIT"
] | 4 | 2015-07-04T13:07:35.000Z | 2020-08-11T11:32:29.000Z | C++/o1-check-power-of-2.cpp | Abd-Elrazek/LintCode | 8f6ee0ff38cb7cf8bf9fca800243823931604155 | [
"MIT"
] | 338 | 2015-04-28T04:39:03.000Z | 2022-03-16T03:00:15.000Z | // Time: O(1)
// Space: O(1)
class Solution {
public:
/*
* @param n: An integer
* @return: True or false
*/
bool checkPowerOf2(int n) {
return n > 0 && (n & (n - 1)) == 0;
}
};
| 15.285714 | 43 | 0.453271 | xenron |
114a1b95175b42ec9a10955ba24cabc439c1284a | 864 | cpp | C++ | cpp/sowcpp/src/ch09/prog9-13.cpp | newnix/Forge | 6d18105460fabc20592ed3c29813173cdb57d512 | [
"BSD-3-Clause-Clear"
] | null | null | null | cpp/sowcpp/src/ch09/prog9-13.cpp | newnix/Forge | 6d18105460fabc20592ed3c29813173cdb57d512 | [
"BSD-3-Clause-Clear"
] | null | null | null | cpp/sowcpp/src/ch09/prog9-13.cpp | newnix/Forge | 6d18105460fabc20592ed3c29813173cdb57d512 | [
"BSD-3-Clause-Clear"
] | null | null | null | // Practice Program 9-13
// Demonstrates a pointer to a const parameter
#include <iostream>
void displayValues(const int *, int);
int main()
{
// Array sizes
const int SIZE = 6;
// Define an array of const ints
const int array1[SIZE] = { 1, 2, 3, 4, 5, 6};
// Define an array of nonconst ints
... | 22.153846 | 95 | 0.626157 | newnix |
114b7c156decc9542072cfaff1c9070b3f42f069 | 13,987 | cpp | C++ | export/windows/obj/src/lime/system/JNI.cpp | arturspon/zombie-killer | 07848c5006916e9079537a3d703ffe3740afaa5a | [
"MIT"
] | null | null | null | export/windows/obj/src/lime/system/JNI.cpp | arturspon/zombie-killer | 07848c5006916e9079537a3d703ffe3740afaa5a | [
"MIT"
] | null | null | null | export/windows/obj/src/lime/system/JNI.cpp | arturspon/zombie-killer | 07848c5006916e9079537a3d703ffe3740afaa5a | [
"MIT"
] | 1 | 2021-07-16T22:57:01.000Z | 2021-07-16T22:57:01.000Z | // Generated by Haxe 4.0.0-rc.2+77068e10c
#include <hxcpp.h>
#ifndef INCLUDED_Reflect
#include <Reflect.h>
#endif
#ifndef INCLUDED_haxe_IMap
#include <haxe/IMap.h>
#endif
#ifndef INCLUDED_haxe_Log
#include <haxe/Log.h>
#endif
#ifndef INCLUDED_haxe_ds_StringMap
#include <haxe/ds/StringMap.h>
#endif
#ifndef INCLUDED_lim... | 38.320548 | 219 | 0.679917 | arturspon |
114da60a83afbf61ee7e8b550c99eb501d9b97ca | 6,220 | cpp | C++ | test/views/binding_view.cpp | shi27feng/mockturtle | 032dcd590b57040c5ff10d80b515353ffe822671 | [
"MIT"
] | null | null | null | test/views/binding_view.cpp | shi27feng/mockturtle | 032dcd590b57040c5ff10d80b515353ffe822671 | [
"MIT"
] | null | null | null | test/views/binding_view.cpp | shi27feng/mockturtle | 032dcd590b57040c5ff10d80b515353ffe822671 | [
"MIT"
] | null | null | null | #include <catch.hpp>
#include <sstream>
#include <lorina/genlib.hpp>
#include <mockturtle/io/genlib_reader.hpp>
#include <mockturtle/networks/klut.hpp>
#include <mockturtle/views/binding_view.hpp>
using namespace mockturtle;
std::string const simple_library = "GATE zero 0 O=CONST0;\n"
... | 41.744966 | 124 | 0.595981 | shi27feng |
1150563ce1ba961345148e6969fb8447cf082339 | 697 | cpp | C++ | src/adc_sync.cpp | close2/alibvr-examples | a1d267670349aad23c0986ead59ebba6d279c130 | [
"MIT"
] | null | null | null | src/adc_sync.cpp | close2/alibvr-examples | a1d267670349aad23c0986ead59ebba6d279c130 | [
"MIT"
] | null | null | null | src/adc_sync.cpp | close2/alibvr-examples | a1d267670349aad23c0986ead59ebba6d279c130 | [
"MIT"
] | null | null | null | #define F_CPU 8000000UL
#include <util/delay.h>
#include "ports.h"
#include "adc.h"
// First define the Adc.
// We want a single conversion, whenever we start a conversion.
// Use the internal 1.1V voltage as reference.
typedef Adc<_adc::Ref::V1_1> AdcV1_1;
typedef PIN_D6 Led;
__attribute__ ((OS_main)) int main(vo... | 21.78125 | 63 | 0.647059 | close2 |
1152b7e84283053e94cac0b2cbca972a6d5d8832 | 9,301 | cpp | C++ | dawn/src/dawn/dawn-opt.cpp | PanicSheep/dawn | 5ae233b1bff66dd9d7b53cde88ad3e957b4a5143 | [
"MIT"
] | null | null | null | dawn/src/dawn/dawn-opt.cpp | PanicSheep/dawn | 5ae233b1bff66dd9d7b53cde88ad3e957b4a5143 | [
"MIT"
] | null | null | null | dawn/src/dawn/dawn-opt.cpp | PanicSheep/dawn | 5ae233b1bff66dd9d7b53cde88ad3e957b4a5143 | [
"MIT"
] | null | null | null | //===--------------------------------------------------------------------------------*- C++ -*-===//
// _
// | |
// __| | __ ___ ___ ___
// / _` |/ _` \ \ /\ / / '_ |
// | (_| | (_| |\ V V /| | | |
// ... | 37.353414 | 162 | 0.641329 | PanicSheep |
1154769f682578831f0622843a5ffdcf8cf129c7 | 21,007 | cpp | C++ | src/game/etj_save_system.cpp | Aciz/etjump | 6215e86cf9aeef504dc4eb24a57ecdc797cb7a2e | [
"BSL-1.0",
"MIT"
] | 16 | 2019-09-07T18:08:08.000Z | 2022-03-04T21:37:06.000Z | src/game/etj_save_system.cpp | Aciz/etjump | 6215e86cf9aeef504dc4eb24a57ecdc797cb7a2e | [
"BSL-1.0",
"MIT"
] | 121 | 2019-09-07T19:30:39.000Z | 2022-01-31T20:59:48.000Z | src/game/etj_save_system.cpp | etjump/etjump | 8dcc3ca939e95063e630367d98cac7ffeec6d88c | [
"BSL-1.0",
"MIT"
] | 14 | 2019-09-07T17:20:40.000Z | 2022-01-30T06:47:15.000Z | /*
* MIT License
*
* Copyright (c) 2021 ETJump team <zero@etjump.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
... | 22.95847 | 150 | 0.691531 | Aciz |
115747e69ec6f2e22509d7426923f8bf7d1f2742 | 1,363 | cpp | C++ | Source/SphereObject.cpp | claytonkanderson/Sunburst | 881363da513f138d57d6032b4d0d33bf85a4d096 | [
"MIT"
] | null | null | null | Source/SphereObject.cpp | claytonkanderson/Sunburst | 881363da513f138d57d6032b4d0d33bf85a4d096 | [
"MIT"
] | null | null | null | Source/SphereObject.cpp | claytonkanderson/Sunburst | 881363da513f138d57d6032b4d0d33bf85a4d096 | [
"MIT"
] | null | null | null | //
// SphereObj.cpp
// CSE_168
//
// Created by Clayton Anderson on 4/11/17.
// Copyright © 2017 Clayton Anderson. All rights reserved.
//
#define GLM_ENABLE_EXPERIMENTAL
#include "SphereObject.hpp"
bool SphereObject::Intersect(const Ray &ray, Intersection &hit)
{
vec3 p, d, q, c;
p = ray.Origin;
d = ... | 20.969231 | 63 | 0.486427 | claytonkanderson |
11606275a283f7c6a9eef32a7fd10f10bb80e42b | 12,542 | cpp | C++ | lifecycle/src/lifecycle_talker.cpp | HATAEGON/demos | fb3ad7e7fc6548c30e77a6ed86a2bd108fce5d82 | [
"Apache-2.0"
] | null | null | null | lifecycle/src/lifecycle_talker.cpp | HATAEGON/demos | fb3ad7e7fc6548c30e77a6ed86a2bd108fce5d82 | [
"Apache-2.0"
] | null | null | null | lifecycle/src/lifecycle_talker.cpp | HATAEGON/demos | fb3ad7e7fc6548c30e77a6ed86a2bd108fce5d82 | [
"Apache-2.0"
] | null | null | null | // Copyright 2016 Open Source Robotics Foundation, 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 License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appli... | 40.588997 | 96 | 0.737123 | HATAEGON |
11618218922b6e1590c9d93f947d503eb08537d3 | 273 | hpp | C++ | src/info.hpp | jlangvand/jucipp | 0a3102f13e62d78a329d488fb1eb8812181e448e | [
"MIT"
] | null | null | null | src/info.hpp | jlangvand/jucipp | 0a3102f13e62d78a329d488fb1eb8812181e448e | [
"MIT"
] | null | null | null | src/info.hpp | jlangvand/jucipp | 0a3102f13e62d78a329d488fb1eb8812181e448e | [
"MIT"
] | 1 | 2019-12-05T00:56:32.000Z | 2019-12-05T00:56:32.000Z | #pragma once
#include <gtkmm.h>
class Info : public Gtk::InfoBar {
Info();
public:
static Info &get() {
static Info instance;
return instance;
}
void print(const std::string &text);
private:
Gtk::Label label;
sigc::connection timeout_connection;
};
| 14.368421 | 38 | 0.666667 | jlangvand |
11678fedcabd0106b1d812718274714701f60a7a | 9,433 | cpp | C++ | NYP_Framework_Week08_SOLUTION/Base/Source/SpatialPartition/Grid.cpp | KianMarvi/Assignment | 8133acec4dd65bc49316aec8deb3961035bdef27 | [
"MIT"
] | null | null | null | NYP_Framework_Week08_SOLUTION/Base/Source/SpatialPartition/Grid.cpp | KianMarvi/Assignment | 8133acec4dd65bc49316aec8deb3961035bdef27 | [
"MIT"
] | 8 | 2019-12-29T17:17:00.000Z | 2020-02-07T08:08:01.000Z | NYP_Framework_Week08_SOLUTION/Base/Source/SpatialPartition/Grid.cpp | KianMarvi/Assignment | 8133acec4dd65bc49316aec8deb3961035bdef27 | [
"MIT"
] | null | null | null | #include "Grid.h"
#include "stdio.h"
#include "MeshBuilder.h"
#include "RenderHelper.h"
#include "../GenericEntity.h"
#include "../SceneGraph/SceneGraph.h"
/********************************************************************************
Constructor
*********************************************************************... | 30.33119 | 102 | 0.457225 | KianMarvi |
11693cdca03008dcf4f1d1c9d9d9e2cd55ab4853 | 2,017 | cpp | C++ | bin/lib/setuptools/main.cpp | TansuoTro/CPPS | cca35d8dc2128aba7fa4a40cb6d83487e265cf3f | [
"MIT"
] | null | null | null | bin/lib/setuptools/main.cpp | TansuoTro/CPPS | cca35d8dc2128aba7fa4a40cb6d83487e265cf3f | [
"MIT"
] | null | null | null | bin/lib/setuptools/main.cpp | TansuoTro/CPPS | cca35d8dc2128aba7fa4a40cb6d83487e265cf3f | [
"MIT"
] | null | null | null | #import "json"
#import "compress"
namespace setuptools{
//生成安装文件
var setup(var option){
io.mkdir("dist");
var filename = "{option["name"]}-{option["username"]}-{option["version"]}-{option["platfrom"]}";
var configname = "dist/{filename}.json";
print("build config json file...");
var jsonval = json.encode(o... | 23.183908 | 98 | 0.632127 | TansuoTro |
116c8dfd6129ad74f1dd6ae441a5bc1bb7a09067 | 65,211 | cc | C++ | src/paths/long/SupportedHyperBasevector6.cc | Amjadhpc/w2rap-contigger | 221f6cabedd19743046ee5dec18e6feb85130218 | [
"MIT"
] | 48 | 2016-04-26T16:52:59.000Z | 2022-01-15T09:18:17.000Z | src/paths/long/SupportedHyperBasevector6.cc | Amjadhpc/w2rap-contigger | 221f6cabedd19743046ee5dec18e6feb85130218 | [
"MIT"
] | 45 | 2016-04-27T08:20:56.000Z | 2022-02-14T07:47:11.000Z | src/paths/long/SupportedHyperBasevector6.cc | Amjadhpc/w2rap-contigger | 221f6cabedd19743046ee5dec18e6feb85130218 | [
"MIT"
] | 15 | 2016-05-11T14:35:25.000Z | 2022-01-15T09:18:45.000Z | ///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2014) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... | 43.071995 | 91 | 0.494119 | Amjadhpc |
1172cce167b95ca9b05e836c5abee13c484c6b3d | 110,612 | cpp | C++ | groups/bal/ball/ball_fileobserver.t.cpp | hughesr/bde | d593e3213918b9292c25e08cfc5b6651bacdea0d | [
"Apache-2.0"
] | 1 | 2019-01-22T19:44:05.000Z | 2019-01-22T19:44:05.000Z | groups/bal/ball/ball_fileobserver.t.cpp | anuranrc/bde | d593e3213918b9292c25e08cfc5b6651bacdea0d | [
"Apache-2.0"
] | null | null | null | groups/bal/ball/ball_fileobserver.t.cpp | anuranrc/bde | d593e3213918b9292c25e08cfc5b6651bacdea0d | [
"Apache-2.0"
] | null | null | null | // ball_fileobserver.t.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example f... | 38.621508 | 79 | 0.517656 | hughesr |
11735a061840d0bbabdb7bf57d273e56d8b72ce5 | 505 | cpp | C++ | tests/parsers/headers/cseq_parsers.cpp | voivoid/CppSip | 4d5776e777b4f95f60357d8f7c05926222751d33 | [
"MIT"
] | null | null | null | tests/parsers/headers/cseq_parsers.cpp | voivoid/CppSip | 4d5776e777b4f95f60357d8f7c05926222751d33 | [
"MIT"
] | null | null | null | tests/parsers/headers/cseq_parsers.cpp | voivoid/CppSip | 4d5776e777b4f95f60357d8f7c05926222751d33 | [
"MIT"
] | null | null | null | #include "boost/test/unit_test.hpp"
#include "CppSip/parser/headers/cseq.h"
#include "parsers/utils.h"
namespace CppSipHdr = CppSip::Message::Headers;
namespace
{
define_parser( CSeq, CppSipHdr::CSeq )
}
BOOST_AUTO_TEST_SUITE( header_parsers )
BOOST_AUTO_TEST_CASE( test_CSEQ_parser )
{
{
const auto [ id, m... | 18.703704 | 67 | 0.724752 | voivoid |
1173978138e68a0eaa676e21d4dc9e160aa79789 | 9,151 | cpp | C++ | Ko-Fi Engine/Source/PanelConfiguration.cpp | Chamfer-Studios/Ko-Fi-Engine | cdc7fd9fd8c30803ac2e3fe0ecaf1923bbd7532e | [
"MIT"
] | 2 | 2022-02-26T23:35:53.000Z | 2022-03-04T16:25:18.000Z | Ko-Fi Engine/Source/PanelConfiguration.cpp | Chamfer-Studios/Ko-Fi-Engine | cdc7fd9fd8c30803ac2e3fe0ecaf1923bbd7532e | [
"MIT"
] | 2 | 2022-02-23T09:41:09.000Z | 2022-03-08T08:46:21.000Z | Ko-Fi Engine/Source/PanelConfiguration.cpp | Chamfer-Studios/Ko-Fi-Engine | cdc7fd9fd8c30803ac2e3fe0ecaf1923bbd7532e | [
"MIT"
] | 1 | 2022-03-03T18:41:32.000Z | 2022-03-03T18:41:32.000Z | #include "PanelConfiguration.h"
#include "PanelChooser.h"
#include "Engine.h"
#include "M_Window.h"
#include "M_SceneManager.h"
#include "M_Renderer3D.h"
#include "M_Input.h"
#include "M_Audio.h"
#include "EngineConfig.h"
#include "M_Editor.h"
#include "SceneIntro.h"
#include <imgui.h>
#include "glew.h"
PanelConfigur... | 34.794677 | 166 | 0.674571 | Chamfer-Studios |
1176b4de385af7e2333cf73d93da9cbca6b00a1c | 356 | cpp | C++ | source/main.cpp | danielga/gm_ffi | b3f557a3203febcdf38f24cf6bc476230861284e | [
"BSD-3-Clause"
] | 3 | 2016-03-26T13:09:05.000Z | 2021-08-25T16:41:53.000Z | source/main.cpp | danielga/gm_ffi | b3f557a3203febcdf38f24cf6bc476230861284e | [
"BSD-3-Clause"
] | 5 | 2016-06-29T21:10:04.000Z | 2021-08-25T13:01:23.000Z | source/main.cpp | danielga/gm_ffi | b3f557a3203febcdf38f24cf6bc476230861284e | [
"BSD-3-Clause"
] | 1 | 2021-01-29T03:56:50.000Z | 2021-01-29T03:56:50.000Z | #include <GarrysMod/Lua/Interface.h>
extern "C" int luaopen_cffi( lua_State *L );
GMOD_MODULE_OPEN( )
{
if( luaopen_cffi( LUA->GetState( ) ) != 0 )
{
LUA->Push( -1 );
LUA->SetField( GarrysMod::Lua::INDEX_GLOBAL, "ffi" );
}
return 1;
}
GMOD_MODULE_CLOSE( )
{
LUA->PushNil( );
LUA->SetField( GarrysMod::Lua::... | 16.181818 | 55 | 0.640449 | danielga |
117e063904ed41e24d36f1dad5e1ebde7ef81d85 | 4,038 | cc | C++ | modules/bridge/test/bridge_sender_test.cc | yilun917/apollo | 022bc600f5cef8005a02e2c3b1a2485f56d6adfc | [
"Apache-2.0"
] | null | null | null | modules/bridge/test/bridge_sender_test.cc | yilun917/apollo | 022bc600f5cef8005a02e2c3b1a2485f56d6adfc | [
"Apache-2.0"
] | null | null | null | modules/bridge/test/bridge_sender_test.cc | yilun917/apollo | 022bc600f5cef8005a02e2c3b1a2485f56d6adfc | [
"Apache-2.0"
] | 1 | 2020-02-20T13:47:23.000Z | 2020-02-20T13:47:23.000Z | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 36.053571 | 80 | 0.664438 | yilun917 |
1187addb4c919f924b5a736a34f10a7eb34b57bc | 54 | cpp | C++ | lib/cmake/Qt5SerialBus/Qt5SerialBus_TinyCanBusPlugin_Import.cpp | samlior/Qt5.15.0-rc2-static-macosx10.15 | b9a1698a9a44baefbf3aa258af2ef487f12beff0 | [
"blessing"
] | null | null | null | lib/cmake/Qt5SerialBus/Qt5SerialBus_TinyCanBusPlugin_Import.cpp | samlior/Qt5.15.0-rc2-static-macosx10.15 | b9a1698a9a44baefbf3aa258af2ef487f12beff0 | [
"blessing"
] | null | null | null | lib/cmake/Qt5SerialBus/Qt5SerialBus_TinyCanBusPlugin_Import.cpp | samlior/Qt5.15.0-rc2-static-macosx10.15 | b9a1698a9a44baefbf3aa258af2ef487f12beff0 | [
"blessing"
] | null | null | null | #include <QtPlugin>
Q_IMPORT_PLUGIN(TinyCanBusPlugin)
| 18 | 33 | 0.851852 | samlior |
118bade351832547369c6167ddddb202d78af347 | 11,922 | cc | C++ | caffe2/contrib/opengl/core/rewrite_net.cc | huiqun2001/caffe2 | 97209961b675c8bea3831450ba46c9e8b7bad3de | [
"MIT"
] | null | null | null | caffe2/contrib/opengl/core/rewrite_net.cc | huiqun2001/caffe2 | 97209961b675c8bea3831450ba46c9e8b7bad3de | [
"MIT"
] | null | null | null | caffe2/contrib/opengl/core/rewrite_net.cc | huiqun2001/caffe2 | 97209961b675c8bea3831450ba46c9e8b7bad3de | [
"MIT"
] | null | null | null | // Copyright 2004-present Facebook. All Rights Reserved.
#include "rewrite_net.h"
#include "caffe2/core/operator.h"
#include "caffe2/utils/proto_utils.h"
#include <unordered_map>
#include <unordered_set>
#ifdef CAFFE2_ANDROID
#include "../android/AndroidGLContext.h"
#endif
namespace caffe2 {
struct Analysis {
str... | 33.583099 | 99 | 0.635632 | huiqun2001 |
118c35a5565a5d9cce8365a3f49be697a7311e5f | 7,825 | cpp | C++ | src/network/bidirectional_network_graph.cpp | jczaplew/fmm | e325196f355b6c7674d1846401fb14b0d9203301 | [
"Apache-2.0"
] | 545 | 2017-11-13T11:45:24.000Z | 2022-03-31T12:31:54.000Z | src/network/bidirectional_network_graph.cpp | jczaplew/fmm | e325196f355b6c7674d1846401fb14b0d9203301 | [
"Apache-2.0"
] | 198 | 2017-12-28T14:54:27.000Z | 2022-03-31T10:54:31.000Z | src/network/bidirectional_network_graph.cpp | jczaplew/fmm | e325196f355b6c7674d1846401fb14b0d9203301 | [
"Apache-2.0"
] | 145 | 2018-01-17T14:29:42.000Z | 2022-03-16T03:06:47.000Z | #include "network/bidirectional_network_graph.hpp"
#include "network/heap.hpp"
#include "network/network.hpp"
#include "network/network_graph.hpp"
#include "util/debug.hpp"
#include <cmath>
#include <iostream>
#include <algorithm>
#include <unordered_map>
#include <queue>
using namespace FMM;
using namespace FMM::COR... | 28.874539 | 77 | 0.632971 | jczaplew |
118c6b9e5f6942c6117d85d95fff59575ff20bd2 | 2,551 | hpp | C++ | rocprim/include/rocprim/device/detail/ordered_block_id.hpp | yoichiyoshida/rocPRIM | 024f15a9106ad2e9dd831601ed5a017d99382e20 | [
"MIT"
] | null | null | null | rocprim/include/rocprim/device/detail/ordered_block_id.hpp | yoichiyoshida/rocPRIM | 024f15a9106ad2e9dd831601ed5a017d99382e20 | [
"MIT"
] | null | null | null | rocprim/include/rocprim/device/detail/ordered_block_id.hpp | yoichiyoshida/rocPRIM | 024f15a9106ad2e9dd831601ed5a017d99382e20 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved.
//
// 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
// t... | 28.988636 | 80 | 0.705214 | yoichiyoshida |
118ca1e41e8a0d525fe38b440e681d65243e8549 | 14,220 | cc | C++ | src/components/application_manager/test/request_info_test.cc | Sohei-Suzuki-Nexty/sdl_core | 68f082169e0a40fccd9eb0db3c83911c28870f07 | [
"BSD-3-Clause"
] | 249 | 2015-01-15T16:50:53.000Z | 2022-03-24T13:23:34.000Z | src/components/application_manager/test/request_info_test.cc | Sohei-Suzuki-Nexty/sdl_core | 68f082169e0a40fccd9eb0db3c83911c28870f07 | [
"BSD-3-Clause"
] | 2,917 | 2015-01-12T16:17:49.000Z | 2022-03-31T11:57:47.000Z | src/components/application_manager/test/request_info_test.cc | Sohei-Suzuki-Nexty/sdl_core | 68f082169e0a40fccd9eb0db3c83911c28870f07 | [
"BSD-3-Clause"
] | 306 | 2015-01-12T09:23:20.000Z | 2022-01-28T18:06:30.000Z | /*
* Copyright (c) 2015, Ford Motor Company
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of condit... | 39.065934 | 80 | 0.702672 | Sohei-Suzuki-Nexty |
1193aedfa533cb891972c4b3a7f6b8ae4a9be8d9 | 2,346 | cpp | C++ | src/Color_tester/Color_tester_view.cpp | InzynierDomu/LED_tester | 27e09fb27ac200620d8610416e1ae9e777543a0a | [
"MIT"
] | null | null | null | src/Color_tester/Color_tester_view.cpp | InzynierDomu/LED_tester | 27e09fb27ac200620d8610416e1ae9e777543a0a | [
"MIT"
] | null | null | null | src/Color_tester/Color_tester_view.cpp | InzynierDomu/LED_tester | 27e09fb27ac200620d8610416e1ae9e777543a0a | [
"MIT"
] | null | null | null | /**
* @file Color_tester_view.cpp
* @brief UI view for color picker mode
* @author by Szymon Markiewicz
* @details http://www.inzynierdomu.pl/
* @date 03-2022
*/
#include "Color_tester_view.h"
#include <cstdlib>
#include <iomanip>
#include <sstream>
#include <string>
namespace Color_tester
{
/**
* @brief con... | 24.4375 | 121 | 0.733589 | InzynierDomu |
1198b2a29e5d3346bf767d17ac195f249db9431a | 4,469 | cpp | C++ | source/Scene.cpp | Kair0z/Custom-Raytracer | 5130c389776d75ba93f2748e25e2c24239dddd2f | [
"MIT"
] | null | null | null | source/Scene.cpp | Kair0z/Custom-Raytracer | 5130c389776d75ba93f2748e25e2c24239dddd2f | [
"MIT"
] | null | null | null | source/Scene.cpp | Kair0z/Custom-Raytracer | 5130c389776d75ba93f2748e25e2c24239dddd2f | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Scene.h"
#include "PSphere.h"
#include "PPlane.h"
#include "LDirection.h"
#include "LPoint.h"
#include "Camera.h"
#include <iostream>
#include <iomanip>
#include "SDL.h"
#include "PTriangle.h"
#include "PMesh.h"
#include "CatchInput.h"
Scene::Scene()
: m_ActiveCameraIdx{}
{
}
Scene::~Scen... | 20.040359 | 116 | 0.691206 | Kair0z |
119aef15434d6416111b2583a82e12f23d1b51a9 | 6,939 | cpp | C++ | tcaplusdb/src/v20190823/model/ServerDetailInfo.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | tcaplusdb/src/v20190823/model/ServerDetailInfo.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | tcaplusdb/src/v20190823/model/ServerDetailInfo.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 27.535714 | 146 | 0.686987 | suluner |
119c658607b40f46704273dfd4a72b3a4d73fb3f | 256 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/world/ProxyMeshDependencyMode.hpp | flibX0r/RED4ext.SDK | 18d075ef7559e35d8b02dc2e00a03ccc7ff4d77b | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/world/ProxyMeshDependencyMode.hpp | flibX0r/RED4ext.SDK | 18d075ef7559e35d8b02dc2e00a03ccc7ff4d77b | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/world/ProxyMeshDependencyMode.hpp | flibX0r/RED4ext.SDK | 18d075ef7559e35d8b02dc2e00a03ccc7ff4d77b | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
namespace RED4ext
{
namespace world {
enum class ProxyMeshDependencyMode : uint8_t
{
Auto = 0,
Discard = 1,
};
} // namespace world
} // namespace RED4ext
| 16 | 57 | 0.707031 | flibX0r |
119efbbd2ade10a020c4b26ff837aaba752a0919 | 3,808 | cpp | C++ | dispenso/task_set.cpp | jeffamstutz/dispenso | 0fb1db63a386c1ba59cd761677af6e9f0052c61c | [
"MIT"
] | 1 | 2022-01-26T01:12:01.000Z | 2022-01-26T01:12:01.000Z | dispenso/task_set.cpp | jeffamstutz/dispenso | 0fb1db63a386c1ba59cd761677af6e9f0052c61c | [
"MIT"
] | null | null | null | dispenso/task_set.cpp | jeffamstutz/dispenso | 0fb1db63a386c1ba59cd761677af6e9f0052c61c | [
"MIT"
] | null | null | null | // Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE.md file in the root directory of this source tree.
#include "task_set.h"
namespace dispenso {
void ConcurrentTaskSet::trySetCurrentException() {
#if defined(__cpp_exceptions)
auto st... | 32 | 98 | 0.738445 | jeffamstutz |
11a05285c205c1ee5abb44736ee54f2c8e9e7516 | 1,207 | cpp | C++ | src/cmake_project/impl/cprj_includes_parser_context.cpp | lpea/cppinclude | dc126c6057d2fe30569e6e86f66d2c8eebb50212 | [
"MIT"
] | 177 | 2020-08-24T19:20:35.000Z | 2022-03-27T01:58:04.000Z | src/cmake_project/impl/cprj_includes_parser_context.cpp | lpea/cppinclude | dc126c6057d2fe30569e6e86f66d2c8eebb50212 | [
"MIT"
] | 15 | 2020-08-30T17:59:42.000Z | 2022-01-12T11:14:10.000Z | src/cmake_project/impl/cprj_includes_parser_context.cpp | lpea/cppinclude | dc126c6057d2fe30569e6e86f66d2c8eebb50212 | [
"MIT"
] | 11 | 2020-09-17T23:31:10.000Z | 2022-03-04T13:15:21.000Z | #include "cmake_project/impl/cprj_includes_parser_context.hpp"
#include <string_view>
//------------------------------------------------------------------------------
namespace cmake_project
{
//------------------------------------------------------------------------------
IncludeParserContext::IncludeParserContext... | 25.145833 | 80 | 0.408451 | lpea |
11a1a2b66f679c3038332a03db6b1c3ad46fc30b | 7,412 | cpp | C++ | Samples/EmbedDemo/okApp.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 241 | 2015-01-04T00:36:58.000Z | 2022-01-06T19:19:23.000Z | Samples/EmbedDemo/okApp.cpp | slagusev/gamekit | a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d | [
"MIT"
] | 10 | 2015-07-10T18:27:17.000Z | 2019-06-26T20:59:59.000Z | Samples/EmbedDemo/okApp.cpp | slagusev/gamekit | a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d | [
"MIT"
] | 82 | 2015-01-25T18:02:35.000Z | 2022-03-05T12:28:17.000Z | /*
-------------------------------------------------------------------------------
This file is part of OgreKit.
http://gamekit.googlecode.com/
Copyright (c) 2006-2010 harkon.kr
Contributor(s): none yet.
-------------------------------------------------------------------------------
This software is... | 21.73607 | 113 | 0.688073 | gamekit-developers |
11ac3be20d2a90517a9b1370623a40f951d7c8a7 | 1,148 | cpp | C++ | src/HAPCompositeAccessory.cpp | lmartu68/Particle-HAP | 3e8c3bd7fdc13ceb6fe3d06b92565262ac4f49bd | [
"MIT"
] | 59 | 2019-01-29T12:05:28.000Z | 2021-06-16T04:36:53.000Z | src/HAPCompositeAccessory.cpp | lmartu68/Particle-HAP | 3e8c3bd7fdc13ceb6fe3d06b92565262ac4f49bd | [
"MIT"
] | 16 | 2019-03-13T12:38:56.000Z | 2021-11-13T09:47:36.000Z | src/HAPCompositeAccessory.cpp | lmartu68/Particle-HAP | 3e8c3bd7fdc13ceb6fe3d06b92565262ac4f49bd | [
"MIT"
] | 19 | 2019-02-12T04:38:47.000Z | 2021-12-09T22:03:29.000Z | //
// CompositeAccessory.cpp
// HKTester
//
// Created by Lukas Jezny on 02/03/2019.
// Copyright © 2019 Lukas Jezny. All rights reserved.
//
#include "HAPCompositeAccessory.h"
void HAPCompositeAccessory::identity(bool oldValue, bool newValue, HKConnection *sender) {
}
bool HAPCompositeAccessory::handle() {
... | 31.888889 | 226 | 0.689024 | lmartu68 |
11ae69d2daec2802ea93630f28fc9ec275743e86 | 790 | cpp | C++ | COJ/Bingo!.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | COJ/Bingo!.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | COJ/Bingo!.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <list>
#include <iterator>
#include <cstdlib>
#include <set>
//Not sent, probably WA
using namespace std;
int main () {
int n, b, aux, act;
list<int> sobrantes;
set<int> total;
list<int>::iterator itr;
ci... | 15.490196 | 66 | 0.520253 | MartinAparicioPons |
11b5305e8e5681361f9e42be5e1b9e7a3eb23da7 | 1,021 | hpp | C++ | ThirdParty/oglplus-develop/include/oglplus/ext/NV_path_rendering/color.hpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 24 | 2015-01-31T15:30:49.000Z | 2022-01-29T08:36:42.000Z | ThirdParty/oglplus-develop/include/oglplus/ext/NV_path_rendering/color.hpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 4 | 2015-08-21T02:29:15.000Z | 2020-05-02T13:50:36.000Z | ThirdParty/oglplus-develop/include/oglplus/ext/NV_path_rendering/color.hpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 9 | 2015-06-08T22:04:15.000Z | 2021-08-16T03:52:11.000Z | /**
* @file oglplus/ext/NV_path_rendering/color.hpp
* @brief Wrapper for the NV_path_rendering color enumeration
*
* @author Matus Chochlik
*
* Copyright 2010-2014 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.bo... | 24.309524 | 68 | 0.782566 | vif |
11b53e59de6319daaaec98ecd460c63568a18c9f | 2,527 | cc | C++ | gazebo/math/Vector3_TEST.cc | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2015-07-02T08:23:30.000Z | 2020-11-17T19:00:38.000Z | gazebo/math/Vector3_TEST.cc | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/math/Vector3_TEST.cc | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2015-04-22T18:33:15.000Z | 2021-11-16T10:17:45.000Z | /*
* Copyright 2013 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 applicab... | 26.882979 | 75 | 0.62129 | thomas-moulard |
11be90e78fbffbad86c8bbb8ce0df2738521ac9e | 20,625 | cpp | C++ | Systems/Engine/Resource.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | Systems/Engine/Resource.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | Systems/Engine/Resource.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
///
/// \file Resource.cpp
/// Implementation of the resource system class.
///
/// Authors: Chris Peters, Joshua Claeys
/// Copyright 2010-2016, DigiPen Institute of Technology
///
/////////////////////////////////////////////////... | 29.422254 | 132 | 0.636606 | jodavis42 |
11bf27c160201211f01279d3b1d7cc1bd00726dc | 11,479 | cpp | C++ | tests/ParserTests/ParserTests_Literals.cpp | mattmassicotte/three | 3986c656724d1317bdb46d4777f8f952103d7ce7 | [
"MIT"
] | 8 | 2015-01-02T21:40:55.000Z | 2016-05-12T10:48:09.000Z | tests/ParserTests/ParserTests_Literals.cpp | mattmassicotte/three | 3986c656724d1317bdb46d4777f8f952103d7ce7 | [
"MIT"
] | null | null | null | tests/ParserTests/ParserTests_Literals.cpp | mattmassicotte/three | 3986c656724d1317bdb46d4777f8f952103d7ce7 | [
"MIT"
] | null | null | null | #include "../ParserTestsBase.h"
#include "compiler/constructs/DataType.h"
class ParserTests_Literals : public ParserTestsBase {
};
TEST_F(ParserTests_Literals, IntegerLiteral) {
ASTNode* node = this->parseSingleFunction("def test(Int a)\n"
" a = 1\n"
... | 40.850534 | 111 | 0.612248 | mattmassicotte |
11c2ca55023c9ef3e88b0ee19757d529057f4850 | 1,133 | cpp | C++ | TGEditor/TGEditor.cpp | ThePixly/TGEngine | aff5d5f42c3094dcc37253f4a3f5e09db560a4eb | [
"Apache-2.0"
] | null | null | null | TGEditor/TGEditor.cpp | ThePixly/TGEngine | aff5d5f42c3094dcc37253f4a3f5e09db560a4eb | [
"Apache-2.0"
] | null | null | null | TGEditor/TGEditor.cpp | ThePixly/TGEngine | aff5d5f42c3094dcc37253f4a3f5e09db560a4eb | [
"Apache-2.0"
] | null | null | null | #include "TGEditor.hpp"
Texture tex1;
Texture tex2;
Mesh mesh;
Mesh mesh2;
Font arial;
Camera camera;
tg_ui::UIEntity entity = tg_ui::UIEntity({0, 0}, {0.3, 0.15});
int main() {
Editor editor = Editor();
std::cout << "Starting Editor" << std::endl;
tg_ui::UITextureComponent texture = tg_ui::UITextureComponent(&te... | 21.377358 | 120 | 0.676964 | ThePixly |
11c94aef96b9693f36ccfe4c0f938afca3d0f1f3 | 2,066 | cpp | C++ | logic/extensions.cpp | cpuwolf/opentrack | 5541cfc68d87c2fc254eb2f2a5aad79831871a88 | [
"ISC"
] | 1 | 2018-02-06T08:36:39.000Z | 2018-02-06T08:36:39.000Z | logic/extensions.cpp | cpuwolf/opentrack | 5541cfc68d87c2fc254eb2f2a5aad79831871a88 | [
"ISC"
] | null | null | null | logic/extensions.cpp | cpuwolf/opentrack | 5541cfc68d87c2fc254eb2f2a5aad79831871a88 | [
"ISC"
] | null | null | null | #include "extensions.hpp"
#include <functional>
#include "compat/util.hpp"
using namespace options;
using ext_fun_type = void(IExtension::*)(Pose&);
using ext_mask = IExtension::event_mask;
using ext_ord = IExtension::event_ordinal;
static constexpr struct event_type_mapping
{
ext_fun_type ptr;
ext_mask mas... | 28.694444 | 107 | 0.674734 | cpuwolf |
11cbcf069349a496a1f758a35b9ac9c0e03b8f24 | 1,924 | cpp | C++ | src/math/fft.cpp | SYury/mipt-zzzzz-teambook | 72731effc3ccc279ed670ed712a3f76c524865ac | [
"MIT"
] | null | null | null | src/math/fft.cpp | SYury/mipt-zzzzz-teambook | 72731effc3ccc279ed670ed712a3f76c524865ac | [
"MIT"
] | null | null | null | src/math/fft.cpp | SYury/mipt-zzzzz-teambook | 72731effc3ccc279ed670ed712a3f76c524865ac | [
"MIT"
] | null | null | null | typedef complex<double> ftype;
const double pi = acos(-1);
ftype w[maxn];
template<typename T>
void fft(T *in, ftype *out, int n, int k = 1) {
if(n == 1) {
*out = *in;
return;
}
n /= 2;
fft(in, out, n, 2 * k);
fft(in + k, out + n, n, 2 * k);
for(int i = 0; i < n; i++) {
... | 25.653333 | 74 | 0.405405 | SYury |
11d0f9de17d3fc48efa7122e43a9d2f769acd6c1 | 2,559 | cpp | C++ | src/services/pcn-nat/src/serializer/NatJsonObject.cpp | francescomessina/polycube | 38f2fb4ffa13cf51313b3cab9994be738ba367be | [
"ECL-2.0",
"Apache-2.0"
] | 337 | 2018-12-12T11:50:15.000Z | 2022-03-15T00:24:35.000Z | src/services/pcn-nat/src/serializer/NatJsonObject.cpp | l1b0k/polycube | 7af919245c131fa9fe24c5d39d10039cbb81e825 | [
"ECL-2.0",
"Apache-2.0"
] | 253 | 2018-12-17T21:36:15.000Z | 2022-01-17T09:30:42.000Z | src/services/pcn-nat/src/serializer/NatJsonObject.cpp | l1b0k/polycube | 7af919245c131fa9fe24c5d39d10039cbb81e825 | [
"ECL-2.0",
"Apache-2.0"
] | 90 | 2018-12-19T15:49:38.000Z | 2022-03-27T03:56:07.000Z | /**
* nat API
* nat API generated from nat.yang
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/polycube-network/swagger-codegen.git
* branch polycube
*/
/* Do not edit this file manually */
#include "NatJsonObject.h"
#include <rege... | 17.895105 | 82 | 0.677999 | francescomessina |
11d5afa4c990b22e96b78db375dc349177a406bb | 11,589 | cpp | C++ | src/plugins/blogique/core.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | 1 | 2017-01-12T07:05:45.000Z | 2017-01-12T07:05:45.000Z | src/plugins/blogique/core.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/plugins/blogique/core.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2010-2012 Oleg Linkin
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 27.462085 | 87 | 0.670377 | MellonQ |
11d6afa8d19152ec96b88173ac1146576b9201f2 | 1,026 | cpp | C++ | aprindere/a.cpp | MarianVasilca/The100DayProject | df207c5a96b917a8a0134d9138bf000400120746 | [
"MIT"
] | null | null | null | aprindere/a.cpp | MarianVasilca/The100DayProject | df207c5a96b917a8a0134d9138bf000400120746 | [
"MIT"
] | null | null | null | aprindere/a.cpp | MarianVasilca/The100DayProject | df207c5a96b917a8a0134d9138bf000400120746 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
using namespace std;
ifstream fin("aprindere.in");
ofstream fout("aprindere.out");
const int NMax = 1005;
int N, M, T[NMax];
bool Room[NMax];
vector < int > V[NMax];
int Result;
void Read()
{
fin >> N >> M;
for(int i = 0; i < N; i++)
... | 16.819672 | 59 | 0.437622 | MarianVasilca |
11d903a7f33944dee2c22ff52b49ff48e55aa65f | 1,005 | cpp | C++ | Infrastructure/KEI.Infrastructure.CLR/ViewService.cpp | athulrajts/Resusables | 0ef297ab0501b305589402d0aec0c1da80313b04 | [
"MIT"
] | null | null | null | Infrastructure/KEI.Infrastructure.CLR/ViewService.cpp | athulrajts/Resusables | 0ef297ab0501b305589402d0aec0c1da80313b04 | [
"MIT"
] | null | null | null | Infrastructure/KEI.Infrastructure.CLR/ViewService.cpp | athulrajts/Resusables | 0ef297ab0501b305589402d0aec0c1da80313b04 | [
"MIT"
] | null | null | null | #pragma once
#include "pch.h"
#include "ViewService.h"
#include "ViewServiceNativeWrapper.h"
void ViewService::AutoInitialize()
{
ViewServiceNativeWrapper::AutoInitialize();
}
void ViewService::InitializeBaseViewService()
{
ViewServiceNativeWrapper::InitializeBaseViewService();
}
void ViewService::ErrorDialog(std... | 24.512195 | 84 | 0.806965 | athulrajts |
11e27b71ae3749e8135fba827b08b6b6a8a5de7f | 3,308 | cpp | C++ | Userland/Libraries/LibJS/Runtime/BoundFunction.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 19,438 | 2019-05-20T15:11:11.000Z | 2022-03-31T23:31:32.000Z | Userland/Libraries/LibJS/Runtime/BoundFunction.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 7,882 | 2019-05-20T01:03:52.000Z | 2022-03-31T23:26:31.000Z | Userland/Libraries/LibJS/Runtime/BoundFunction.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 2,721 | 2019-05-23T00:44:57.000Z | 2022-03-31T22:49:34.000Z | /*
* Copyright (c) 2020, Jack Karamanian <karamanian.jack@gmail.com>
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibJS/Runtime/AbstractOperations.h>
#include <LibJS/Runtime/BoundFunction.h>
#include <LibJS/Runtime/GlobalObject.h>
namespace JS {
... | 34.458333 | 188 | 0.727328 | r00ster91 |
11e5c9efdf01e3677d4334c92efee3985861cd27 | 355 | cpp | C++ | C++/std/template/template.cpp | Martinfx/C-Learn | 7e8d55a4ee45f66b96cf5235f2259b4d465d3db2 | [
"Apache-2.0"
] | 16 | 2017-08-15T22:25:43.000Z | 2020-01-03T22:51:06.000Z | C++/std/template/template.cpp | Martinfx/C-Learn | 7e8d55a4ee45f66b96cf5235f2259b4d465d3db2 | [
"Apache-2.0"
] | null | null | null | C++/std/template/template.cpp | Martinfx/C-Learn | 7e8d55a4ee45f66b96cf5235f2259b4d465d3db2 | [
"Apache-2.0"
] | 3 | 2017-11-23T04:35:14.000Z | 2019-03-21T06:42:52.000Z | #include <iostream>
/*
namespace utils {
template<class T>
inline bool operator!= (const T& x, const T& y) {
return !(x == y);
}
template<class T>
inline bool operator> (const T& x, const T& y) {
return (y < x);
}
template<class T>
inline bool operator<= (const T& x, const T& y) {
return !(y < x );
}... | 14.2 | 49 | 0.577465 | Martinfx |
eb1b398c17441adc3497135d69d0d1455789d7f1 | 2,489 | cpp | C++ | unittests/rapidschema/schema/schema_test.cpp | ledergec/rapidschema | 3a43202b604f5f036abc6ebfbac5d3e1112b3347 | [
"Apache-2.0"
] | 3 | 2019-02-07T16:14:20.000Z | 2019-03-06T01:38:38.000Z | unittests/rapidschema/schema/schema_test.cpp | ledergec/rapidschema | 3a43202b604f5f036abc6ebfbac5d3e1112b3347 | [
"Apache-2.0"
] | 26 | 2019-01-10T16:23:15.000Z | 2019-04-30T21:13:17.000Z | unittests/rapidschema/schema/schema_test.cpp | ledergec/rapidschema | 3a43202b604f5f036abc6ebfbac5d3e1112b3347 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2019 Christian Ledergerber
#ifdef RAPIDSCHEMA_WITH_SCHEMA_GENERATION
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "rapidschema/ostream_operators.h"
#include "rapidschema/schema/object_schema.h"
#include "rapidschema/test_utils.h"
namespace rapidschema {
namespace schema {
using testin... | 30.728395 | 89 | 0.376456 | ledergec |
eb1b92ffacbf27fd93c6b2d9834c2fa859e9a6c3 | 5,186 | cpp | C++ | worker/src/RTC/RembClient.cpp | liwf616/mediasoup | 99d1c696bd4b985ea8bf5348b7f520998e165c32 | [
"ISC"
] | 2 | 2020-09-03T01:37:57.000Z | 2020-09-03T01:38:15.000Z | worker/src/RTC/RembClient.cpp | liwf616/mediasoup | 99d1c696bd4b985ea8bf5348b7f520998e165c32 | [
"ISC"
] | 1 | 2021-08-24T01:39:43.000Z | 2021-08-24T01:39:43.000Z | worker/src/RTC/RembClient.cpp | baiyfcu/mediasoup | fede86766ad87b184ef139dfe631b30a82506451 | [
"0BSD"
] | 1 | 2021-06-11T10:53:24.000Z | 2021-06-11T10:53:24.000Z | #define MS_CLASS "RTC::RembClient"
// #define MS_LOG_DEV
#include "RTC/RembClient.hpp"
#include "DepLibUV.hpp"
#include "Logger.hpp"
namespace RTC
{
/* Static. */
static constexpr uint64_t EventInterval{ 2000 }; // In ms.
static constexpr uint64_t MaxElapsedTime{ 5000 }; // In m... | 25.93 | 94 | 0.707675 | liwf616 |
eb21bd57582ca283642401a4502c769b9313fc2d | 7,516 | cpp | C++ | test/flatzinc/test_fzn_comparison.cpp | SaGagnon/gecode-5.5.0-cbs | e871b320a9b2031423bb0fa452b1a5c09641a041 | [
"MIT-feh"
] | 1 | 2020-06-26T11:10:55.000Z | 2020-06-26T11:10:55.000Z | test/flatzinc/test_fzn_comparison.cpp | SaGagnon/gecode-5.5.0-cbs | e871b320a9b2031423bb0fa452b1a5c09641a041 | [
"MIT-feh"
] | null | null | null | test/flatzinc/test_fzn_comparison.cpp | SaGagnon/gecode-5.5.0-cbs | e871b320a9b2031423bb0fa452b1a5c09641a041 | [
"MIT-feh"
] | 1 | 2020-06-26T11:10:57.000Z | 2020-06-26T11:10:57.000Z | /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <tack@gecode.org>
*
* Copyright:
* Guido Tack, 2014
*
* Last modified:
* $Date: 2014-11-04 13:28:32 +0100 (Tue, 04 Nov 2014) $ by $Author: schulte $
* $Revision: 14287 $
*
* This file is part... | 26.37193 | 82 | 0.629457 | SaGagnon |
eb226527f12a72f0327adcf8e105df8ccd0f2534 | 2,266 | cpp | C++ | plansys2_pddl_parser/test/pddl_parser_test.cpp | movefasta/ros2_planning_system | c058cb16960b49a1c0f7d80280408a27136a9cc2 | [
"Apache-2.0"
] | null | null | null | plansys2_pddl_parser/test/pddl_parser_test.cpp | movefasta/ros2_planning_system | c058cb16960b49a1c0f7d80280408a27136a9cc2 | [
"Apache-2.0"
] | null | null | null | plansys2_pddl_parser/test/pddl_parser_test.cpp | movefasta/ros2_planning_system | c058cb16960b49a1c0f7d80280408a27136a9cc2 | [
"Apache-2.0"
] | null | null | null | // Copyright 2022 Marco Roveri - University of Trento
//
// 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 applica... | 29.815789 | 93 | 0.699029 | movefasta |
eb264b1064b526a6a4f3cc469c456bae41638427 | 7,878 | hpp | C++ | preview/cplusplus/examples/hello-encode-cpp/src/util.hpp | alexelizarov/oneVPL | cdf7444dc971544d148c51e0d93a2df1bb55dda7 | [
"MIT"
] | null | null | null | preview/cplusplus/examples/hello-encode-cpp/src/util.hpp | alexelizarov/oneVPL | cdf7444dc971544d148c51e0d93a2df1bb55dda7 | [
"MIT"
] | null | null | null | preview/cplusplus/examples/hello-encode-cpp/src/util.hpp | alexelizarov/oneVPL | cdf7444dc971544d148c51e0d93a2df1bb55dda7 | [
"MIT"
] | 1 | 2021-06-17T07:38:18.000Z | 2021-06-17T07:38:18.000Z | //==============================================================================
// Copyright Intel Corporation
//
// SPDX-License-Identifier: MIT
//==============================================================================
///
/// Utility library header file for sample code
///
/// @file
#ifndef PREVIEW_CPLUSPLU... | 27.449477 | 109 | 0.567784 | alexelizarov |
eb2af48276d5818980313b1efa66d74927901f65 | 1,093 | cc | C++ | src/Main.cc | vanessavvp/cc-pr2-turing-machine | 463d43190bd884cb3ead63fb4177a7dae8b6479b | [
"MIT"
] | null | null | null | src/Main.cc | vanessavvp/cc-pr2-turing-machine | 463d43190bd884cb3ead63fb4177a7dae8b6479b | [
"MIT"
] | null | null | null | src/Main.cc | vanessavvp/cc-pr2-turing-machine | 463d43190bd884cb3ead63fb4177a7dae8b6479b | [
"MIT"
] | null | null | null | /**
* PROJECT HEADER
* @file Main.cc
* @author: Vanessa Valentina Villalba Perez
* Contact: alu0101265704@ull.edu.es
* @date: 30/10/2021
* Subject: Complejidad Computacional
* Practice: Number º2
* Purpose: Implementing a Turing Machine
*/
#include <iostream>
#include <filesystem>
#include "../include/Turing... | 29.540541 | 103 | 0.670631 | vanessavvp |
eb2b14c9f35fb7af54a313c756c87e588ee4e811 | 3,332 | cpp | C++ | source/RegistreBorne.cpp | fantome3/test1 | 6b28cbbe87110baa68ef22ed7aeba13f538fcaef | [
"MIT"
] | null | null | null | source/RegistreBorne.cpp | fantome3/test1 | 6b28cbbe87110baa68ef22ed7aeba13f538fcaef | [
"MIT"
] | null | null | null | source/RegistreBorne.cpp | fantome3/test1 | 6b28cbbe87110baa68ef22ed7aeba13f538fcaef | [
"MIT"
] | null | null | null | /*
* RegistreBorne.cpp
*
* Created on: 2018-11-09
* Author: etudiant
*/
#include "RegistreBorne.h"
#include "Borne.h"
#include "BorneException.h"
#include <sstream>
namespace bornesQuebec {
RegistreBorne::RegistreBorne(const std::string& p_nomRegistre):m_nomRegistreBorne(p_nomRegistre)
{
PRECONDITION(!p_... | 24.144928 | 96 | 0.718187 | fantome3 |
eb3072e187b54684263490e5bbfb9bfc246c28ff | 10,636 | cpp | C++ | VkLayer_profiler_layer/profiler_overlay/imgui_widgets/imgui_histogram_ex.cpp | lstalmir/VulkanProfiler | da06f27d71bf753bdef575ba1ed35e0acb8e84e7 | [
"MIT"
] | 1 | 2021-03-11T12:10:20.000Z | 2021-03-11T12:10:20.000Z | VkLayer_profiler_layer/profiler_overlay/imgui_widgets/imgui_histogram_ex.cpp | lstalmir/VulkanProfiler | da06f27d71bf753bdef575ba1ed35e0acb8e84e7 | [
"MIT"
] | 10 | 2020-12-09T15:14:11.000Z | 2021-01-23T18:52:26.000Z | VkLayer_profiler_layer/profiler_overlay/imgui_widgets/imgui_histogram_ex.cpp | lstalmir/VulkanProfiler | da06f27d71bf753bdef575ba1ed35e0acb8e84e7 | [
"MIT"
] | null | null | null | // Copyright (c) 2019-2021 Lukasz Stalmirski
//
// 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... | 39.835206 | 172 | 0.540429 | lstalmir |
eb311c5c4416306f420d98ae17ae072153ca572c | 684 | hpp | C++ | src/cmake_project/api/cprj_loader.hpp | lpea/cppinclude | dc126c6057d2fe30569e6e86f66d2c8eebb50212 | [
"MIT"
] | 177 | 2020-08-24T19:20:35.000Z | 2022-03-27T01:58:04.000Z | src/cmake_project/api/cprj_loader.hpp | lpea/cppinclude | dc126c6057d2fe30569e6e86f66d2c8eebb50212 | [
"MIT"
] | 15 | 2020-08-30T17:59:42.000Z | 2022-01-12T11:14:10.000Z | src/cmake_project/api/cprj_loader.hpp | lpea/cppinclude | dc126c6057d2fe30569e6e86f66d2c8eebb50212 | [
"MIT"
] | 11 | 2020-09-17T23:31:10.000Z | 2022-03-04T13:15:21.000Z | #pragma once
#include <stdfwd/memory>
//------------------------------------------------------------------------------
namespace compilation_db
{
class Database;
}
//------------------------------------------------------------------------------
namespace cmake_project
{
class Project;
//--------------------------... | 20.117647 | 80 | 0.383041 | lpea |
eb3342b742cd316632282b99a06f9a3c0748a646 | 59,021 | hpp | C++ | include/cuda/IterativeProcessingKernel3D.hpp | tugluk/MGARD | 360a2fb853adbb1d758704960d4f51e85e4d3f57 | [
"Apache-2.0"
] | null | null | null | include/cuda/IterativeProcessingKernel3D.hpp | tugluk/MGARD | 360a2fb853adbb1d758704960d4f51e85e4d3f57 | [
"Apache-2.0"
] | null | null | null | include/cuda/IterativeProcessingKernel3D.hpp | tugluk/MGARD | 360a2fb853adbb1d758704960d4f51e85e4d3f57 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021, Oak Ridge National Laboratory.
* MGARD-GPU: MultiGrid Adaptive Reduction of Data Accelerated by GPUs
* Author: Jieyang Chen (chenj3@ornl.gov)
* Date: April 2, 2021
*/
#ifndef MGRAD_CUDA_ITERATIVE_PROCESSING_KERNEL_3D_TEMPLATE
#define MGRAD_CUDA_ITERATIVE_PROCESSING_KERNEL_3D_TEMPLATE
#includ... | 36.796135 | 80 | 0.498382 | tugluk |
eb34689f1915f9d5e1da9e004f0a54641fa9bbe2 | 574 | cpp | C++ | CPlusPlusFundamentals/ArrayVectors/AbaveAverageVector/main.cpp | bozhikovstanislav/Cpp-SoftUni | 6562d15b9e3a550b11566630a1bc1ec65670bff7 | [
"MIT"
] | null | null | null | CPlusPlusFundamentals/ArrayVectors/AbaveAverageVector/main.cpp | bozhikovstanislav/Cpp-SoftUni | 6562d15b9e3a550b11566630a1bc1ec65670bff7 | [
"MIT"
] | null | null | null | CPlusPlusFundamentals/ArrayVectors/AbaveAverageVector/main.cpp | bozhikovstanislav/Cpp-SoftUni | 6562d15b9e3a550b11566630a1bc1ec65670bff7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
float averageNumber(std::vector<int> vc, int n) {
float sum=0;
float average=0;
for (int num:vc) {
sum+=num;
}
average=sum/n;
return average;
}
int main() {
unsigned long n = 0;
std::cin >> n;
std::vector<int> numbers(n);
for (int &nu... | 19.133333 | 49 | 0.520906 | bozhikovstanislav |
eb357337ce22e2a7ca4f73e6b29810f443e52151 | 2,668 | cpp | C++ | JavaScriptCore/runtime/ErrorPrototype.cpp | explorer-ading/cricket-jscore | b10eabc016cec3db87f9976684839ddaf4cca0b1 | [
"MIT"
] | 1 | 2019-06-10T09:50:51.000Z | 2019-06-10T09:50:51.000Z | JavaScriptCore/runtime/ErrorPrototype.cpp | explorer-ading/cricket-jscore | b10eabc016cec3db87f9976684839ddaf4cca0b1 | [
"MIT"
] | null | null | null | JavaScriptCore/runtime/ErrorPrototype.cpp | explorer-ading/cricket-jscore | b10eabc016cec3db87f9976684839ddaf4cca0b1 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
* Copyright (C) 2003, 2008 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
... | 39.235294 | 182 | 0.743628 | explorer-ading |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.