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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e3b60a34d025a386385abb7aa61b853ed6dc6ec6 | 1,560 | ipp | C++ | ThirdParty/oglplus-develop/implement/oglplus/enums/program_pipeline_stage_names.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 24 | 2015-01-31T15:30:49.000Z | 2022-01-29T08:36:42.000Z | ThirdParty/oglplus-develop/implement/oglplus/enums/program_pipeline_stage_names.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 4 | 2015-08-21T02:29:15.000Z | 2020-05-02T13:50:36.000Z | ThirdParty/oglplus-develop/implement/oglplus/enums/program_pipeline_stage_names.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 9 | 2015-06-08T22:04:15.000Z | 2021-08-16T03:52:11.000Z | /*
* .file oglplus/enums/program_pipeline_stage_names.ipp
*
* Automatically generated header file. DO NOT modify manually,
* edit 'source/enums/oglplus/program_pipeline_stage.txt' instead.
*
* Copyright 2010-2013 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying ... | 28.888889 | 81 | 0.808974 | vif |
e3b6c312f8af454ff35451af8df355258f1a1ed7 | 2,892 | cpp | C++ | LifeBrush/Source/LifeBrush/SurfaceMovementComponent.cpp | timdecode/LifeBrush | dbc65bcc0ec77f9168e08cf7b39539af94420725 | [
"MIT"
] | 33 | 2019-04-23T23:00:09.000Z | 2021-11-09T11:44:09.000Z | LifeBrush/Source/LifeBrush/SurfaceMovementComponent.cpp | MyelinsheathXD/LifeBrush | dbc65bcc0ec77f9168e08cf7b39539af94420725 | [
"MIT"
] | 1 | 2019-10-09T15:57:56.000Z | 2020-03-05T20:01:01.000Z | LifeBrush/Source/LifeBrush/SurfaceMovementComponent.cpp | MyelinsheathXD/LifeBrush | dbc65bcc0ec77f9168e08cf7b39539af94420725 | [
"MIT"
] | 6 | 2019-04-25T00:10:55.000Z | 2021-04-12T05:16:28.000Z | // Copyright 2015, Timothy Davison. All rights reserved.
#include "LifeBrush.h"
#include "tcodsMeshInterface.h"
#include "SurfaceMovementComponent.h"
// Sets default values for this component's properties
USurfaceMovementComponent::USurfaceMovementComponent()
{
// Set this component to be initialized when the gam... | 27.283019 | 132 | 0.677732 | timdecode |
e3be72f379864534f93ce93d1b9da6ad2886583d | 8,450 | cxx | C++ | src/mod/pub/tst/test-kube-sphere/icosphere.cxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | 1 | 2017-12-26T14:29:37.000Z | 2017-12-26T14:29:37.000Z | src/mod/pub/tst/test-kube-sphere/icosphere.cxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | src/mod/pub/tst/test-kube-sphere/icosphere.cxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | #include "stdafx.hxx"
#include "mod-test-kube-sphere.hxx"
#include "icosphere.hxx"
#include "pfm.hxx"
#include "gfx-camera.hxx"
#include "rng/rng.hxx"
#include <unordered_map>
static uint64_t get_key(glm::vec3& pos)
{
float k1 = pos.x * 1.23f + pos.y * 4.56f + pos.z * 7.89f;
float k2 = pos.x * 9.87f + pos.y * 6.54... | 25.375375 | 146 | 0.653846 | indigoabstract |
e3c6d5bcb6f2f518f533ed7d75e634e36de180dc | 214 | cpp | C++ | source/Phase1/main.cpp | MoaazZaki/coolGameEngine | 2324c62c5c7ad6860b3a8b817cd24ca80b1b18ae | [
"MIT"
] | 2 | 2021-01-18T20:51:54.000Z | 2021-11-01T08:41:38.000Z | source/Phase1/main.cpp | MoaazZaki/coolGameEngine | 2324c62c5c7ad6860b3a8b817cd24ca80b1b18ae | [
"MIT"
] | null | null | null | source/Phase1/main.cpp | MoaazZaki/coolGameEngine | 2324c62c5c7ad6860b3a8b817cd24ca80b1b18ae | [
"MIT"
] | null | null | null | #include <game-state/GameStateManager.hpp>
#include <iostream>
int main(int argc, char** argv) {
famm::GameStateManager pleaseWork;
pleaseWork.onInitilaize();
pleaseWork.onDraw();
return 0;
} | 19.454545 | 42 | 0.686916 | MoaazZaki |
e3c84097fd162e415c899b2a7faa49afb9335cfb | 2,752 | cpp | C++ | win32ddgrdriver2d/win32ddgrdriver2d.cpp | matthew-macgregor/blitzplus_msvc2019 | 2a4b3b8b9f8e9b7ad2dc81bd80e08bb62c98bcdc | [
"Zlib"
] | 69 | 2015-01-04T08:42:44.000Z | 2022-03-13T09:56:24.000Z | win32ddgrdriver2d/win32ddgrdriver2d.cpp | JamesLinus/blitzplus | a4615c064f99a70fdd131554b6f5e2241611aff9 | [
"Zlib"
] | 3 | 2016-09-24T04:13:55.000Z | 2021-11-04T11:11:44.000Z | win32ddgrdriver2d/win32ddgrdriver2d.cpp | JamesLinus/blitzplus | a4615c064f99a70fdd131554b6f5e2241611aff9 | [
"Zlib"
] | 29 | 2015-05-14T03:59:52.000Z | 2020-07-25T02:46:25.000Z |
#include "win32ddgrdriver2d.h"
#include "../win32font/win32font.h"
static Win32Font *_font;
Win32DDGrDriver2D win32DDGrDriver2D;
struct Win32DDGrDriver2D::Context : public BBGrContext{
Win32DDGraphics *graphics;
Win32Font *font;
BBRect cliprect;
BBColor color;
Context( Win32DDGraphics *g ):BBGrContext(g),
g... | 18.594595 | 86 | 0.713299 | matthew-macgregor |
e3cdcb6d87c6fa2b1c67ec513c271abb3dd34082 | 41,481 | hpp | C++ | include/interpolation_3d_92_r2_k5.hpp | johndpope/ext3DLBP | 0704ae6a9dda7e74f1f52b45acd71d1b6f622efd | [
"MIT"
] | 8 | 2018-01-26T18:17:10.000Z | 2021-05-20T15:32:35.000Z | include/interpolation_3d_92_r2_k5.hpp | johndpope/ext3DLBP | 0704ae6a9dda7e74f1f52b45acd71d1b6f622efd | [
"MIT"
] | 6 | 2019-05-30T15:51:03.000Z | 2019-07-17T12:04:11.000Z | include/interpolation_3d_92_r2_k5.hpp | johndpope/ext3DLBP | 0704ae6a9dda7e74f1f52b45acd71d1b6f622efd | [
"MIT"
] | 3 | 2017-06-16T07:32:46.000Z | 2019-05-30T19:22:42.000Z | /* ==========================================================================================
Author: Leonardo Citraro
Company:
Filename:
Last modifed: 04.04.2017 by Leonardo Citraro
Description:
==========================================================================================
... | 60.204644 | 94 | 0.60013 | johndpope |
e3cfa36fb65536193e5e1e295e217584eada7e27 | 2,476 | hxx | C++ | tropical_convolution.hxx | pawelswoboda/tropical-convolution | e4de71fec95390ef8878d5b504a0b26eb11ead38 | [
"MIT"
] | null | null | null | tropical_convolution.hxx | pawelswoboda/tropical-convolution | e4de71fec95390ef8878d5b504a0b26eb11ead38 | [
"MIT"
] | null | null | null | tropical_convolution.hxx | pawelswoboda/tropical-convolution | e4de71fec95390ef8878d5b504a0b26eb11ead38 | [
"MIT"
] | null | null | null | #ifndef TROPICAL_CONVOLUTION_HXX
#define TROPICAL_CONVOLUTION_HXX
#include <tuple>
#include <cassert>
#include "tropical_convolution_naive.hxx"
#include "tropical_convolution_bussieck.hxx"
#include "min_sum.hxx"
// perform min convolution. Choose automatically betweeen the naive version which is fast on small inputs ... | 52.680851 | 177 | 0.756866 | pawelswoboda |
e3d4aba1556d3d66b8ea41e6050ddc66ee5178fa | 3,998 | cpp | C++ | tests/approval_tests/cdv/elem/swatch_legend.cpp | cpp-niel/cdv | 9aa310c6fe66dbc7f224ace3a3d4212ca6f0ed4a | [
"MIT"
] | 1 | 2020-08-09T01:05:30.000Z | 2020-08-09T01:05:30.000Z | tests/approval_tests/cdv/elem/swatch_legend.cpp | cpp-niel/cdv | 9aa310c6fe66dbc7f224ace3a3d4212ca6f0ed4a | [
"MIT"
] | null | null | null | tests/approval_tests/cdv/elem/swatch_legend.cpp | cpp-niel/cdv | 9aa310c6fe66dbc7f224ace3a3d4212ca6f0ed4a | [
"MIT"
] | null | null | null | #include <framework/approval_tests.hpp>
#include <cdv/core/color/categorical_schemes.hpp>
#include <cdv/elem/swatch_legend.hpp>
#include <cdv/fig/frame.hpp>
#include <cdv/fig/render_svg.hpp>
#include <cdv/stdx/date_io.hpp>
#include <array>
namespace cdv::elem
{
namespace
{
using namespace units_liter... | 51.25641 | 294 | 0.537269 | cpp-niel |
e3dd9824aa4d09efb272bffde134c9ee0b23fd63 | 770 | cpp | C++ | Lab_exercise/lab2/ex2/sizeof.cpp | Aries-Dawn/Cpp-Program-Design | 9d4fc9a902fff2f76e41314f5d6c52871d30a511 | [
"MIT"
] | null | null | null | Lab_exercise/lab2/ex2/sizeof.cpp | Aries-Dawn/Cpp-Program-Design | 9d4fc9a902fff2f76e41314f5d6c52871d30a511 | [
"MIT"
] | null | null | null | Lab_exercise/lab2/ex2/sizeof.cpp | Aries-Dawn/Cpp-Program-Design | 9d4fc9a902fff2f76e41314f5d6c52871d30a511 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdbool.h>
int main()
{
printf("\nPrint size of the fundamental types:\n");
printf("-----------------------------------------\n");
printf("The sizeof(char) is:%ld bytes.\n", sizeof(char));
printf("The sizeof(short) is:%ld bytes.\n", sizeof(short));
printf("The sizeof(int... | 42.777778 | 74 | 0.601299 | Aries-Dawn |
e3df424b6433eb1f55bb5c615ce6326bb65c501a | 8,298 | cpp | C++ | sdk/physx/2.8.3/Samples/SampleParticleFluid/src/SamplePacketData.cpp | daher-alfawares/xr.desktop | 218a7cff7a9be5865cf786d7cad31da6072f7348 | [
"Apache-2.0"
] | 1 | 2018-09-20T10:01:30.000Z | 2018-09-20T10:01:30.000Z | sdk/physx/2.8.3/Samples/SampleParticleFluid/src/SamplePacketData.cpp | daher-alfawares/xr.desktop | 218a7cff7a9be5865cf786d7cad31da6072f7348 | [
"Apache-2.0"
] | null | null | null | sdk/physx/2.8.3/Samples/SampleParticleFluid/src/SamplePacketData.cpp | daher-alfawares/xr.desktop | 218a7cff7a9be5865cf786d7cad31da6072f7348 | [
"Apache-2.0"
] | null | null | null | #include "SampleParticleFluid.h"
#include "MyFluid.h"
#include "ParticleFactory.h"
extern NxActor *gGroundPlane;
extern bool gHardwareSimulation;
extern NxScene* gScene;
extern NxPhysicsSDK* gPhysicsSDK;
extern NxArray<MyFluid*> gMyFluids;
extern NxVec3 gCameraPos;
extern NxVec3 gCameraForward;
extern bool gWireframeM... | 33.325301 | 122 | 0.716558 | daher-alfawares |
e3e3e13df41a9f4f63e828f4b20ac05e94b6ded7 | 10,290 | cpp | C++ | tests/pingpair_test/pingpair_test.cpp | zzuummaa/Arduino_rf24 | f4c27f311b9756eba44feef7ed1bbe3940fd823a | [
"BSD-3-Clause"
] | null | null | null | tests/pingpair_test/pingpair_test.cpp | zzuummaa/Arduino_rf24 | f4c27f311b9756eba44feef7ed1bbe3940fd823a | [
"BSD-3-Clause"
] | null | null | null | tests/pingpair_test/pingpair_test.cpp | zzuummaa/Arduino_rf24 | f4c27f311b9756eba44feef7ed1bbe3940fd823a | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (C) 2011 James Coliz, Jr. <maniacbug@ymail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundation.
*/
/**
* Full test on single RF pair
*
* This sketches uses as many RF2... | 23.493151 | 140 | 0.651312 | zzuummaa |
e3e3f780320071fef758dffac8ea8750e1f42c99 | 4,540 | cpp | C++ | src/engine/menu/results.cpp | FoxySeta/unibo-00819-programmazione-project | 4475a3a64b78222cbbdeda908f18cf93e4a210be | [
"MIT"
] | 3 | 2021-09-06T15:51:11.000Z | 2021-09-08T12:30:35.000Z | src/engine/menu/results.cpp | lucat1/unibo_00819_progetto | 4475a3a64b78222cbbdeda908f18cf93e4a210be | [
"MIT"
] | null | null | null | src/engine/menu/results.cpp | lucat1/unibo_00819_progetto | 4475a3a64b78222cbbdeda908f18cf93e4a210be | [
"MIT"
] | 2 | 2021-09-07T00:40:37.000Z | 2021-09-08T17:34:45.000Z | /*
University of bologna
First cicle degree in Computer Science
00819 - Programmazione
Luca Tagliavini #971133
04/26/2021
results.cpp: Implements the Engine::Menu::Results menu, hooking into the
database's data structure to gather informations about the match and various
heroes. Precondition: the inpu... | 36.612903 | 111 | 0.682379 | FoxySeta |
e3e3f812dc6a302d82fd0abde7024dc37a773fff | 12,377 | cpp | C++ | app/src/Shell.cpp | silhavyj/inode-based-file-system | dfc4e84326bf442a7fa3889c97f99c0a30e2690e | [
"MIT"
] | null | null | null | app/src/Shell.cpp | silhavyj/inode-based-file-system | dfc4e84326bf442a7fa3889c97f99c0a30e2690e | [
"MIT"
] | null | null | null | app/src/Shell.cpp | silhavyj/inode-based-file-system | dfc4e84326bf442a7fa3889c97f99c0a30e2690e | [
"MIT"
] | null | null | null | #include "Shell.h"
// function prototypes
bool validCP(const std::vector<std::string>& tokens);
bool validMV(const std::vector<std::string>& tokens);
bool validRM(const std::vector<std::string>& tokens);
bool validMKDIR(const std::vector<std::string>& tokens);
bool validRMDIR(const std::vector<std::string>& tok... | 34.572626 | 136 | 0.540761 | silhavyj |
e3e51be7a8c62315a0a03da37b6dc592ff8c5866 | 4,146 | cpp | C++ | plugin/maya/nodes/n_gfUtilAngleTrigMath.cpp | giulianofranca/gfTools | b23616ad7483c5f0798c1f1a8829f5b5f08ef6ea | [
"Apache-2.0"
] | 1 | 2021-09-25T06:45:37.000Z | 2021-09-25T06:45:37.000Z | plugin/maya/nodes/n_gfUtilAngleTrigMath.cpp | giuliano-franca/gfTools | b23616ad7483c5f0798c1f1a8829f5b5f08ef6ea | [
"Apache-2.0"
] | null | null | null | plugin/maya/nodes/n_gfUtilAngleTrigMath.cpp | giuliano-franca/gfTools | b23616ad7483c5f0798c1f1a8829f5b5f08ef6ea | [
"Apache-2.0"
] | 1 | 2021-09-25T06:45:41.000Z | 2021-09-25T06:45:41.000Z | #include "headers/n_gfUtilAngleTrigMath.h"
// Configure a input attribute.
#define INPUT_ATTR(FNATTR) \
FNATTR.setWritable(true); \
FNATTR.setReadable(true); \
FNATTR.setStorable(true); \
FNATTR.setKeyable(true); \
// Configure a output attribute.
#define OUTPUT_ATTR(FNATTR) \
FNATTR.setWritable(false); \
FNA... | 30.485294 | 118 | 0.668114 | giulianofranca |
e3e51e8a8a6dc979c0b9861ff408df2f8a41eae9 | 2,661 | hpp | C++ | codegen/codegen_undef_ApiClient_.hpp | FlorianRhiem/oatpp | 46095a0dafce9ef829c05e84f97a1de66734b92a | [
"Apache-2.0"
] | null | null | null | codegen/codegen_undef_ApiClient_.hpp | FlorianRhiem/oatpp | 46095a0dafce9ef829c05e84f97a1de66734b92a | [
"Apache-2.0"
] | null | null | null | codegen/codegen_undef_ApiClient_.hpp | FlorianRhiem/oatpp | 46095a0dafce9ef829c05e84f97a1de66734b92a | [
"Apache-2.0"
] | 1 | 2019-01-18T13:05:29.000Z | 2019-01-18T13:05:29.000Z | /***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| |_|
*
*
* Copyright 2018-present, Leoni... | 24.638889 | 77 | 0.740699 | FlorianRhiem |
e3e59bdd1e69a3d4922b9a045d73009d0eb1b27d | 1,195 | cpp | C++ | src/modules/sdk_net/sdk_router_distribution.cpp | wotsen/learning_platform_server | 38b3483ae5496927acec53c179a78f86f403e2d3 | [
"MIT"
] | null | null | null | src/modules/sdk_net/sdk_router_distribution.cpp | wotsen/learning_platform_server | 38b3483ae5496927acec53c179a78f86f403e2d3 | [
"MIT"
] | null | null | null | src/modules/sdk_net/sdk_router_distribution.cpp | wotsen/learning_platform_server | 38b3483ae5496927acec53c179a78f86f403e2d3 | [
"MIT"
] | 1 | 2020-02-16T09:57:01.000Z | 2020-02-16T09:57:01.000Z | /**
* @file sdk_router_distribution.cpp
* @author 余王亮 (wotsen@outlook.com)
* @brief
* @version 0.1
* @date 2020-04-05
*
* @copyright Copyright (c) 2020
*
*/
#include <loguru.hpp>
#include "sdk_router_distribution.h"
namespace wotsen
{
bool sdk_router_distribution(SdkRequest &sdk_request)
{
const Body &bo... | 21.727273 | 99 | 0.640167 | wotsen |
e3e5e7665694515653114ea1ca640e65ad799912 | 4,594 | cpp | C++ | src/TurtleBot.cpp | sukoonsarin/fetch-it | d05518aa922e58737daa9a03957ec90e8505587e | [
"BSD-3-Clause"
] | null | null | null | src/TurtleBot.cpp | sukoonsarin/fetch-it | d05518aa922e58737daa9a03957ec90e8505587e | [
"BSD-3-Clause"
] | null | null | null | src/TurtleBot.cpp | sukoonsarin/fetch-it | d05518aa922e58737daa9a03957ec90e8505587e | [
"BSD-3-Clause"
] | 10 | 2020-12-01T18:09:41.000Z | 2021-01-13T17:38:43.000Z | /**
* @file turtlebot.cpp
* @brief Source file to implement turtlebot class
* @date 12/07/2020
* @author Nidhi Bhojak
* @author Nalin Das
*
* @section LICENSE
*
* @copyright (c) 2020, Nalin Das, Sukoon Sarin, Nidhi Bhojak
* All rights reserved.
* Redistribution and use in source and binary forms, with or wi... | 31.465753 | 81 | 0.686983 | sukoonsarin |
e3ea617502764a0274eeac83503aa2f66e511359 | 1,061 | cpp | C++ | src/configuration.cpp | lionking0000/recYnH_Qt | 04651b500055a330b911db4f0af0d82a387393be | [
"MIT"
] | null | null | null | src/configuration.cpp | lionking0000/recYnH_Qt | 04651b500055a330b911db4f0af0d82a387393be | [
"MIT"
] | null | null | null | src/configuration.cpp | lionking0000/recYnH_Qt | 04651b500055a330b911db4f0af0d82a387393be | [
"MIT"
] | null | null | null | #include "configuration.h"
Configuration::Configuration()
{
// default test cell config values
this->nrow = 12;
this->ncol = 12;
this->cell_width = 10;
this->cell_height = 10;
// default colors
/* orange -> blue-ish
this->start_color_red = 242;
this->start_color_green = 177;
t... | 24.674419 | 48 | 0.607917 | lionking0000 |
e3ec4203bb697b1fa22ac1517492e613554c6c7b | 3,544 | cpp | C++ | src/qt/qtwebkit/Source/WebCore/Modules/networkinfo/NetworkInfoController.cpp | viewdy/phantomjs | eddb0db1d253fd0c546060a4555554c8ee08c13c | [
"BSD-3-Clause"
] | 1 | 2015-05-27T13:52:20.000Z | 2015-05-27T13:52:20.000Z | src/qt/qtwebkit/Source/WebCore/Modules/networkinfo/NetworkInfoController.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtwebkit/Source/WebCore/Modules/networkinfo/NetworkInfoController.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | 1 | 2017-03-19T13:03:23.000Z | 2017-03-19T13:03:23.000Z | /*
* Copyright (C) 2012 Samsung Electronics. 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 ... | 37.305263 | 129 | 0.759029 | viewdy |
e3ec91ade9b49171f86d12d9eb2d074982229da2 | 9,966 | cpp | C++ | lib/PhasarLLVM/Utils/DOTGraph.cpp | n-junge/phasar | baa80e78bf67b80f030db4d1eedfb97755d407fc | [
"MIT"
] | null | null | null | lib/PhasarLLVM/Utils/DOTGraph.cpp | n-junge/phasar | baa80e78bf67b80f030db4d1eedfb97755d407fc | [
"MIT"
] | null | null | null | lib/PhasarLLVM/Utils/DOTGraph.cpp | n-junge/phasar | baa80e78bf67b80f030db4d1eedfb97755d407fc | [
"MIT"
] | null | null | null | /******************************************************************************
* Copyright (c) 2017 Philipp Schubert.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Philipp Schubert and others
**********************... | 32.357143 | 79 | 0.564921 | n-junge |
e3ee99a8280f603efe5928321aec707c37d87bf7 | 7,243 | cpp | C++ | src/lepage/input/SourceLocationProvider.test.cpp | jaydee-io/lepage | 30ec14fa809e4e60de64ac7e5bf1f06ee71c93cf | [
"BSD-3-Clause"
] | null | null | null | src/lepage/input/SourceLocationProvider.test.cpp | jaydee-io/lepage | 30ec14fa809e4e60de64ac7e5bf1f06ee71c93cf | [
"BSD-3-Clause"
] | null | null | null | src/lepage/input/SourceLocationProvider.test.cpp | jaydee-io/lepage | 30ec14fa809e4e60de64ac7e5bf1f06ee71c93cf | [
"BSD-3-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// lepage
//
// This file is distributed under the 3-clause Berkeley Software Distribution
// License. See LICENSE for details.
////////////////////////////////////////////////////////////////////////////... | 36.580808 | 92 | 0.734088 | jaydee-io |
e3f2226fe80d6e12029a48d940baaa8216866a43 | 1,528 | cpp | C++ | libkroll/binding/static_bound_object.cpp | appcelerator/kroll | 50b9788d2c391db7676ad0d32f6d8271f51e2a66 | [
"Apache-2.0"
] | 17 | 2015-01-23T08:23:12.000Z | 2019-07-24T11:44:31.000Z | kroll/libkroll/binding/static_bound_object.cpp | MChorfa/TideSDK | fae6a35e39a0171942060948084f884391cf6f8a | [
"Apache-2.0"
] | 1 | 2016-03-04T06:11:37.000Z | 2016-03-04T06:11:37.000Z | kroll/libkroll/binding/static_bound_object.cpp | MChorfa/TideSDK | fae6a35e39a0171942060948084f884391cf6f8a | [
"Apache-2.0"
] | 9 | 2015-02-10T17:22:04.000Z | 2019-05-17T08:45:05.000Z | /*
* Appcelerator Kroll - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2008 Appcelerator, Inc. All Rights Reserved.
*/
#include "../kroll.h"
#include <cstring>
namespace kroll
{
StaticBoundObject::StaticBoundObject(const char* type)
: K... | 22.80597 | 71 | 0.699607 | appcelerator |
e3f4342df9ba193f40933fd4f7369d8c82b2e34c | 2,555 | cpp | C++ | src/eos/general/eos_table.cpp | charge72002/Athena_Radiation-master | a192aeab0c3cd258853fe43468a4a1d8c2a9279d | [
"BSD-3-Clause"
] | null | null | null | src/eos/general/eos_table.cpp | charge72002/Athena_Radiation-master | a192aeab0c3cd258853fe43468a4a1d8c2a9279d | [
"BSD-3-Clause"
] | null | null | null | src/eos/general/eos_table.cpp | charge72002/Athena_Radiation-master | a192aeab0c3cd258853fe43468a4a1d8c2a9279d | [
"BSD-3-Clause"
] | 1 | 2021-07-15T19:06:10.000Z | 2021-07-15T19:06:10.000Z | //========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//===============================... | 41.885246 | 90 | 0.528376 | charge72002 |
e3f751e16023ed1b2a437a88cc8e4b8dec19175c | 4,722 | cpp | C++ | tests/automata_generator/test.cpp | Xazax-hun/CppQuery | e1b505351abbe1b770dc15b5173b2a9fa06f9866 | [
"BSD-2-Clause"
] | 7 | 2015-05-17T02:31:54.000Z | 2018-05-26T16:15:16.000Z | tests/automata_generator/test.cpp | Xazax-hun/CppQuery | e1b505351abbe1b770dc15b5173b2a9fa06f9866 | [
"BSD-2-Clause"
] | null | null | null | tests/automata_generator/test.cpp | Xazax-hun/CppQuery | e1b505351abbe1b770dc15b5173b2a9fa06f9866 | [
"BSD-2-Clause"
] | null | null | null | #include <string>
#include <set>
#include <gtest/gtest.h>
#include "automata_generator/matcher_traits.hpp"
#include "automata_generator/automata_generator.hpp"
namespace {
// --- Test interface ---
struct A {};
struct B : A {};
struct C {};
struct E : B {};
A *func1(A *) { return 0; }
B *func2(A *, B *) { return ... | 27.453488 | 78 | 0.656925 | Xazax-hun |
e3f7b1939aa6318b2b978416f321fcf2b1400f52 | 2,079 | cpp | C++ | llvm/unittests/Analysis/TensorSpecTest.cpp | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | llvm/unittests/Analysis/TensorSpecTest.cpp | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | llvm/unittests/Analysis/TensorSpecTest.cpp | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | //===- TensorSpecTest.cpp - test for TensorSpec ---------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 33.532258 | 80 | 0.646465 | ornata |
e3f958eba90da1ed7a0a49f1380373510fe3fc21 | 1,232 | cpp | C++ | util.cpp | artm/mirror | dbaedebcde84a5a4eb66ddb5c25c3b8f7ccf6283 | [
"MIT"
] | 1 | 2018-10-31T17:18:34.000Z | 2018-10-31T17:18:34.000Z | util.cpp | artm/mirror | dbaedebcde84a5a4eb66ddb5c25c3b8f7ccf6283 | [
"MIT"
] | null | null | null | util.cpp | artm/mirror | dbaedebcde84a5a4eb66ddb5c25c3b8f7ccf6283 | [
"MIT"
] | null | null | null | #include "util.h"
#include <QVector>
#include <QRgb>
#include <QtDebug>
#include <QCoreApplication>
namespace Mirror {
static bool s_greyTableInit = false;
static QVector<QRgb> s_greyTable;
QImage CvMat2QImage(const cv::Mat& cvmat)
{
int height = cvmat.rows;
int width = cvmat.cols;
if (cvmat.depth() ==... | 26.782609 | 102 | 0.602273 | artm |
e3f99d57e302f365c82ebebc32194eee192a896b | 5,952 | cpp | C++ | femm/ActiveFEMM.cpp | ResonanceGroup/FEMM | 227f1cb46fc18b298e2da48d732692c206d0539f | [
"MIT"
] | 1 | 2020-05-18T00:57:57.000Z | 2020-05-18T00:57:57.000Z | femm/ActiveFEMM.cpp | ResonanceGroup/FEMM | 227f1cb46fc18b298e2da48d732692c206d0539f | [
"MIT"
] | 1 | 2018-05-02T13:43:31.000Z | 2018-05-02T13:43:31.000Z | femm/ActiveFEMM.cpp | ResonanceGroup/FEMM | 227f1cb46fc18b298e2da48d732692c206d0539f | [
"MIT"
] | 3 | 2018-05-02T13:38:43.000Z | 2021-05-19T10:48:49.000Z | // ActiveFEMM.cpp : implementation file
//
#include "stdafx.h"
#include "femm.h"
#include "lua.h"
#include "luadebug.h"
#include "luaconsoledlg.h"
#include "ActiveFEMM.h"
#include "mainfrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern lua... | 26.690583 | 127 | 0.680444 | ResonanceGroup |
e3fa2704de46b83734eb4e216dbf546f0833f36e | 2,127 | cpp | C++ | Classes/SetupVolumeEx.cpp | lfeng1420/BrickGame | e4961a7454ae1adece6845c64a6ba8ac59856d68 | [
"MIT"
] | 39 | 2016-05-07T06:39:54.000Z | 2021-04-13T15:00:52.000Z | Classes/SetupVolumeEx.cpp | lfeng1420/BrickGame | e4961a7454ae1adece6845c64a6ba8ac59856d68 | [
"MIT"
] | 8 | 2016-07-17T06:39:54.000Z | 2021-07-06T15:14:19.000Z | Classes/SetupVolumeEx.cpp | lfeng1420/BrickGame | e4961a7454ae1adece6845c64a6ba8ac59856d68 | [
"MIT"
] | 13 | 2016-03-11T11:46:19.000Z | 2018-08-10T16:34:33.000Z | #include "stdafx.h"
#include "SetupVolumeEx.h"
#include "BarrierLayer.h"
void CSetupVolumeEx::InitUI()
{
Size visibleSize1 = GET_VISIBLESIZE();
Size visibleSize(visibleSize1.height, visibleSize1.width);
Size bgSprSize = GET_CONTENTSIZE(m_pBGSprite);
Size closeSize = GET_CONTENTSIZE(m_pCloseMenuItem);
Size bgmLab... | 45.255319 | 112 | 0.77433 | lfeng1420 |
e3faae136570b7a33c53092f12a41843db9706b7 | 1,073 | cpp | C++ | src/OBJReader/Mesh.cpp | niiick1/OpenGLScene | 33a99428775e98b4fa3093ff2c481fffffaa974e | [
"MIT"
] | null | null | null | src/OBJReader/Mesh.cpp | niiick1/OpenGLScene | 33a99428775e98b4fa3093ff2c481fffffaa974e | [
"MIT"
] | null | null | null | src/OBJReader/Mesh.cpp | niiick1/OpenGLScene | 33a99428775e98b4fa3093ff2c481fffffaa974e | [
"MIT"
] | 1 | 2019-12-03T21:11:13.000Z | 2019-12-03T21:11:13.000Z | #include "OBJReader/Mesh.h"
Mesh::Mesh()
{
//ctor
}
Mesh::~Mesh() {
for (std::vector<Vertex*>::iterator it = allVertex.begin() ; it != allVertex.end(); ++it) {
delete *it;
}
for (std::vector<Vertex*>::iterator it = allNormals.begin() ; it != allNormals.end(); ++it) {
delete *it;
}... | 18.186441 | 97 | 0.623486 | niiick1 |
e3fb10e7d28870ed12fce54b4ff47c76c39f928e | 281 | cpp | C++ | source/layout/style.cpp | zhiayang/sap | f8d1d48b02c6df075bc59b5228fbd339d3923a4d | [
"Apache-2.0"
] | 13 | 2021-08-06T20:20:05.000Z | 2022-03-29T10:46:00.000Z | source/layout/style.cpp | zhiayang/sap | f8d1d48b02c6df075bc59b5228fbd339d3923a4d | [
"Apache-2.0"
] | 1 | 2021-08-07T17:42:59.000Z | 2021-09-19T00:34:30.000Z | source/layout/style.cpp | zhiayang/sap | f8d1d48b02c6df075bc59b5228fbd339d3923a4d | [
"Apache-2.0"
] | null | null | null | // style.cpp
// Copyright (c) 2022, zhiayang
// SPDX-License-Identifier: Apache-2.0
#include "sap/style.h"
namespace sap
{
static Style g_defaultStyle {};
const Style& defaultStyle()
{
return g_defaultStyle;
}
void setDefaultStyle(Style s)
{
g_defaultStyle = s;
}
}
| 13.380952 | 38 | 0.690391 | zhiayang |
e3fb14a998bf1a51394eafec4b24972534caab76 | 9,345 | cpp | C++ | src/Gui/MusicUi.cpp | fabiopichler/Omicron-Player-3 | 75c2a30e00f29138443ca20245b1414d320639f8 | [
"BSD-3-Clause"
] | 10 | 2015-10-03T00:18:06.000Z | 2017-07-04T18:11:21.000Z | src/Gui/MusicUi.cpp | fabiopichler/Tche-Media-Player | 75c2a30e00f29138443ca20245b1414d320639f8 | [
"BSD-3-Clause"
] | 1 | 2016-03-04T22:17:35.000Z | 2016-03-04T23:21:53.000Z | src/Gui/MusicUi.cpp | fabiopichler/Tche-Media-Player | 75c2a30e00f29138443ca20245b1414d320639f8 | [
"BSD-3-Clause"
] | 2 | 2015-10-03T00:18:07.000Z | 2016-12-07T09:10:42.000Z | /*******************************************************************************
Omicron Player Classic
Author: Fábio Pichler
Website: http://fabiopichler.net
License: BSD 3-Clause License
Copyright (c) 2015-2019, Fábio Pichler
All rights reserved.
Redistribution and use in source and binary forms, wi... | 40.280172 | 114 | 0.720706 | fabiopichler |
e3fee48d8292807f0f9edb76f09aa5fa2e35996b | 711 | hpp | C++ | stan/math/fwd/fun/determinant.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 1 | 2020-06-14T14:33:37.000Z | 2020-06-14T14:33:37.000Z | stan/math/fwd/fun/determinant.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | stan/math/fwd/fun/determinant.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 1 | 2020-05-10T12:55:07.000Z | 2020-05-10T12:55:07.000Z | #ifndef STAN_MATH_FWD_FUN_DETERMINANT_HPP
#define STAN_MATH_FWD_FUN_DETERMINANT_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/to_ref.hpp>
#include <stan/math/fwd/core.hpp>
namespace stan {
namespace math {
template <typen... | 28.44 | 79 | 0.735584 | LaudateCorpus1 |
540171e49de8ea58ddfdecfdc9531777b963aa22 | 2,880 | cpp | C++ | ext/ZFile.cpp | gitter-badger/TensorVox | a87a326249e5e31f15c25c41458df01638fd5fd0 | [
"MIT"
] | 132 | 2020-08-14T04:37:23.000Z | 2022-03-30T04:49:58.000Z | ext/ZFile.cpp | gitter-badger/TensorVox | a87a326249e5e31f15c25c41458df01638fd5fd0 | [
"MIT"
] | 7 | 2020-11-19T03:55:14.000Z | 2022-03-18T00:54:58.000Z | ext/ZFile.cpp | gitter-badger/TensorVox | a87a326249e5e31f15c25c41458df01638fd5fd0 | [
"MIT"
] | 14 | 2020-08-16T10:25:14.000Z | 2021-12-21T06:32:09.000Z | #include "ZFile.h"
using namespace std;
int ZFile::EZFOpenModeToIos(const EZFOpenMode::Enum & input)
{
/*
hehe wall of ifs
yanderedev amirite???
*/
if (input == EZFOpenMode::BinaryRead)
return ios::in | ios::binary;
else if (input == EZFOpenMode::BinaryWrite)
return ios::out | ios::binary;
else if (input ==... | 19.591837 | 88 | 0.677778 | gitter-badger |
54021c7b7504a4dd22bf7dc2f2589071043fe4f2 | 2,341 | cpp | C++ | admin/activec/samples/sdksamples/atl_samp/iissnapinext/globals.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/activec/samples/sdksamples/atl_samp/iissnapinext/globals.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/activec/samples/sdksamples/atl_samp/iissnapinext/globals.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //=============================================================================
//
// This source code is only intended as a supplement to existing Microsoft
// documentation.
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT ... | 25.445652 | 80 | 0.462196 | npocmaka |
5405e7f7f447438e019d324dae1f6190b9fc8177 | 2,346 | cpp | C++ | engine/ui/gGUIListbox.cpp | huseyinged1k/GlistEngine | 8f37ea2b1168c3cbc7be5ea211aa3898c29ab2ef | [
"Apache-2.0"
] | null | null | null | engine/ui/gGUIListbox.cpp | huseyinged1k/GlistEngine | 8f37ea2b1168c3cbc7be5ea211aa3898c29ab2ef | [
"Apache-2.0"
] | null | null | null | engine/ui/gGUIListbox.cpp | huseyinged1k/GlistEngine | 8f37ea2b1168c3cbc7be5ea211aa3898c29ab2ef | [
"Apache-2.0"
] | null | null | null | /*
* gGUIListbox.cpp
*
* Created on: Feb 5, 2022
* Author: noyan
*/
#include "gGUIListbox.h"
#include "gBaseApp.h"
#include "gBaseCanvas.h"
gGUIListbox::gGUIListbox() {
lineh = 24;
minlinenum = 5;
linenum = 0;
totalh = linenum * lineh;
minboxh = minlinenum * lineh;
listboxh = minboxh;
maxlinenum = ... | 25.78022 | 146 | 0.683717 | huseyinged1k |
5406ec085c6ca3c885075f2d47d89b7ac7f3bd65 | 34,370 | cpp | C++ | src/cybergarage/x3d/Node.cpp | cybergarage/CyberX3D4CC | edcb6d34aa0b64f166feff35731bc56533b4c819 | [
"BSD-3-Clause"
] | 4 | 2015-12-06T08:09:39.000Z | 2019-12-03T08:28:16.000Z | src/cybergarage/x3d/Node.cpp | cybergarage/CyberX3D4CC | edcb6d34aa0b64f166feff35731bc56533b4c819 | [
"BSD-3-Clause"
] | 2 | 2015-06-02T20:57:53.000Z | 2016-10-21T05:21:09.000Z | src/cybergarage/x3d/Node.cpp | cybergarage/CyberX3D4CC | edcb6d34aa0b64f166feff35731bc56533b4c819 | [
"BSD-3-Clause"
] | 6 | 2015-06-02T04:38:50.000Z | 2020-01-20T14:39:57.000Z | /******************************************************************
*
* CyberX3D for C++
*
* Copyright (C) Satoshi Konno 1996-2007
*
* File: Node.cpp
*
* 03/15/04
* - Thanks for Simon Goodall <sg02r@ecs.soton.ac.uk>
* - Fixed a memory leak in Node::outputContext().
* 03/17/04
* - Thanks for Simon Goodall <sg02r@ecs.sot... | 23.270142 | 115 | 0.616439 | cybergarage |
54088542985bcaaaee5a3031bf8b774d10caa027 | 548 | cpp | C++ | Chapter8/Calc/Error.cpp | PacktPublishing/Cpp-Windows-Programming | 9fa69bd9d7706ae205d0e6c2214c7f001c4533f3 | [
"MIT"
] | 34 | 2016-10-03T01:39:25.000Z | 2022-03-01T03:21:41.000Z | Cpp Windows Programming/Calc/Error.cpp | PacktPublishing/Cpp-Windows-Programming | 9fa69bd9d7706ae205d0e6c2214c7f001c4533f3 | [
"MIT"
] | null | null | null | Cpp Windows Programming/Calc/Error.cpp | PacktPublishing/Cpp-Windows-Programming | 9fa69bd9d7706ae205d0e6c2214c7f001c4533f3 | [
"MIT"
] | 31 | 2016-09-02T08:56:01.000Z | 2022-03-12T20:15:21.000Z | #include "..\\SmallWindows\\SmallWindows.h"
#include "Error.h"
Error::Error(ErrorId errorId)
:errorId(errorId) {
// Empty.
}
String Error::ErrorText() const {
switch (errorId) {
case SyntaxError:
return TEXT("Syntax Error.");
case CircularReference:
return TEXT("#Circular reference#");
... | 19.571429 | 47 | 0.642336 | PacktPublishing |
54115bea7657b185305f873e87c261b4bfe052ee | 1,708 | cpp | C++ | src/tools.cpp | jainSamkit/Sensor-Fusion_EKF | 1e543e12cc535238d11f420953bd8b9d2050ede7 | [
"MIT"
] | null | null | null | src/tools.cpp | jainSamkit/Sensor-Fusion_EKF | 1e543e12cc535238d11f420953bd8b9d2050ede7 | [
"MIT"
] | null | null | null | src/tools.cpp | jainSamkit/Sensor-Fusion_EKF | 1e543e12cc535238d11f420953bd8b9d2050ede7 | [
"MIT"
] | null | null | null | #include <iostream>
#include "tools.h"
#include <cmath>
using Eigen::VectorXd;
using Eigen::MatrixXd;
using std::vector;
using namespace std;
Tools::Tools() {}
Tools::~Tools() {}
VectorXd Tools::CalculateRMSE(const vector<VectorXd> &estimations,
const vector<VectorXd> &ground_truth) {
... | 18.565217 | 69 | 0.594848 | jainSamkit |
541c7c79574eae90b4dd0b75720124cae3b1ef55 | 2,185 | cpp | C++ | engine/external/tileson/include/Tileson.cpp | yhyu13/Engine2021 | 6ded548caa45bf980d88e09bed59431b61f5337e | [
"MIT"
] | null | null | null | engine/external/tileson/include/Tileson.cpp | yhyu13/Engine2021 | 6ded548caa45bf980d88e09bed59431b61f5337e | [
"MIT"
] | null | null | null | engine/external/tileson/include/Tileson.cpp | yhyu13/Engine2021 | 6ded548caa45bf980d88e09bed59431b61f5337e | [
"MIT"
] | null | null | null | //
// Created by robin on 31.07.2019.
//
#include "Tileson.h"
/*!
* Parses Tiled json data by file
* @param path path to file
* @return parsed data as Map
*/
#if USE_CPP17_FILESYSTEM
tson::Map tson::Tileson::parse(const fs::path& path)
{
if (fs::exists(path) && fs::is_regular_file(path))
{
std::ifstream i(path... | 22.760417 | 80 | 0.655378 | yhyu13 |
541ed1b4770a6a28771df5144de727039a4ec7cd | 2,462 | cc | C++ | chrome/browser/ui/webui/webui_js_error/webui_js_error_ui.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/ui/webui/webui_js_error/webui_js_error_ui.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/ui/webui/webui_js_error/webui_js_error_ui.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/webui_js_error/webui_js_error_ui.h"
#include <ios>
#include "base/feature_list.h"
#include "base/logging.h"
#include "... | 41.033333 | 80 | 0.733956 | zealoussnow |
5424998e6a9b18076c5e85305477e5febc560128 | 31,268 | cpp | C++ | xiablo/Plugins/SketchFabPlugin/Source/SketchfabAssetBrowser/Private/Commons/SketchfabTask.cpp | jing-interactive/ucd | 8fc8722291f086a0c0037a94d11c14562375e862 | [
"MIT"
] | 1 | 2022-02-02T23:36:07.000Z | 2022-02-02T23:36:07.000Z | xiablo/Plugins/SketchFabPlugin/Source/SketchfabAssetBrowser/Private/Commons/SketchfabTask.cpp | jing-interactive/ucd | 8fc8722291f086a0c0037a94d11c14562375e862 | [
"MIT"
] | null | null | null | xiablo/Plugins/SketchFabPlugin/Source/SketchfabAssetBrowser/Private/Commons/SketchfabTask.cpp | jing-interactive/ucd | 8fc8722291f086a0c0037a94d11c14562375e862 | [
"MIT"
] | null | null | null | // Copyright 2018 Sketchfab, Inc. All Rights Reserved.
#include "SketchfabTask.h"
#include "HAL/RunnableThread.h"
#include "Editor/EditorPerProjectUserSettings.h"
#include "Dom/JsonObject.h"
#include "Serialization/JsonReader.h"
#include "Serialization/JsonWriter.h"
#include "Serialization/JsonSerializer.h"
#include <... | 27.843277 | 165 | 0.715268 | jing-interactive |
54253b7b3f300972cbc51776e33fc246db162c24 | 2,152 | cc | C++ | serial_codegen.cc | piotrbla/simplePoly | 0b26e555d390dde81fbc23d71cf1b490d1204504 | [
"MIT"
] | 1 | 2021-02-26T02:26:07.000Z | 2021-02-26T02:26:07.000Z | serial_codegen.cc | piotrbla/simplePoly | 0b26e555d390dde81fbc23d71cf1b490d1204504 | [
"MIT"
] | null | null | null | serial_codegen.cc | piotrbla/simplePoly | 0b26e555d390dde81fbc23d71cf1b490d1204504 | [
"MIT"
] | null | null | null | #include "serial_codegen.hh"
#include "ast.hh"
#include "codegen.hh"
#include "scop.hh"
#include <isl/ctx.h>
#include <isl/set.h>
#include <isl/id.h>
#include <isl/union_map.h>
#include <isl/union_set.h>
#include <isl/ast_build.h>
#include <isl/printer.h>
#include <stdio.h>
void tc_codegen_serial(struct tc_scop* sco... | 33.107692 | 162 | 0.713755 | piotrbla |
54268fefbc623a2301702bbdaa109eea42307e8d | 35,252 | cpp | C++ | examples/texturesparseresidency/texturesparseresidency.cpp | harskish/Vulkan | 25be6e4fda8b0d16875a55a1a476209305d4a983 | [
"MIT"
] | null | null | null | examples/texturesparseresidency/texturesparseresidency.cpp | harskish/Vulkan | 25be6e4fda8b0d16875a55a1a476209305d4a983 | [
"MIT"
] | null | null | null | examples/texturesparseresidency/texturesparseresidency.cpp | harskish/Vulkan | 25be6e4fda8b0d16875a55a1a476209305d4a983 | [
"MIT"
] | null | null | null | /*
* Vulkan Example - Sparse texture residency example
*
* Copyright (C) 2016 by Sascha Willems - www.saschawillems.de
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
/*
todos:
- check sparse binding support on queue
- residencyNonResidentStrict
- meta data
- Run-time ima... | 48.15847 | 163 | 0.621525 | harskish |
542708321e48c6722546b774aefc04a6e86fa443 | 4,445 | hpp | C++ | include/codegen/include/GlobalNamespace/DisappearingArrowController.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/DisappearingArrowController.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/DisappearingArrowController.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.MonoBehaviour
#include "UnityEngine/MonoBeh... | 37.991453 | 146 | 0.733183 | Futuremappermydud |
54282c4e11d74ace2e495acc590814b183066bb7 | 47,062 | cpp | C++ | hookflash-core/core/hookflash/stack/cpp/stack_AccountPeerLocation.cpp | ilin-in/OP | bf3e87d90008e2a4106ee70360fbe15b0d694e77 | [
"Unlicense"
] | 1 | 2020-02-19T09:55:55.000Z | 2020-02-19T09:55:55.000Z | hookflash-core/core/hookflash/stack/cpp/stack_AccountPeerLocation.cpp | ilin-in/OP | bf3e87d90008e2a4106ee70360fbe15b0d694e77 | [
"Unlicense"
] | null | null | null | hookflash-core/core/hookflash/stack/cpp/stack_AccountPeerLocation.cpp | ilin-in/OP | bf3e87d90008e2a4106ee70360fbe15b0d694e77 | [
"Unlicense"
] | null | null | null | /*
Copyright (c) 2012, SMB Phone 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:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the ... | 42.094812 | 234 | 0.501976 | ilin-in |
542977c2b88e21d499849e6890fdf214006815a9 | 740 | cpp | C++ | chap6/chap6-1.1.cpp | liangzai90/Amazing-Algorithm-With-C | d1e992517eafd9197075d85591ed5270d945b5e3 | [
"Apache-2.0"
] | null | null | null | chap6/chap6-1.1.cpp | liangzai90/Amazing-Algorithm-With-C | d1e992517eafd9197075d85591ed5270d945b5e3 | [
"Apache-2.0"
] | null | null | null | chap6/chap6-1.1.cpp | liangzai90/Amazing-Algorithm-With-C | d1e992517eafd9197075d85591ed5270d945b5e3 | [
"Apache-2.0"
] | null | null | null | /*
数学趣题(=)
连续整数固定和问题
*/
#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <vector>
using namespace std;
void cntnsIntSum(int n)
{
int j=0,sum = 0;
for (int i = 1; i < n; i++) //控制起点的选择,从1到n-1
{
j = i - 1;
while (sum < n) //从起点向后顺序累... | 11.212121 | 46 | 0.539189 | liangzai90 |
54299b3a137ff24493c49acfdcdf207f07e7f974 | 2,134 | cpp | C++ | query_optimizer/expressions/PredicateLiteral.cpp | spring-operator/quickstep | 3e98776002eb5db7154031fd6ef1a7f000a89d81 | [
"Apache-2.0"
] | 31 | 2016-01-20T05:43:46.000Z | 2022-02-07T09:14:06.000Z | query_optimizer/expressions/PredicateLiteral.cpp | spring-operator/quickstep | 3e98776002eb5db7154031fd6ef1a7f000a89d81 | [
"Apache-2.0"
] | 221 | 2016-01-20T18:25:10.000Z | 2016-06-26T02:58:12.000Z | query_optimizer/expressions/PredicateLiteral.cpp | spring-operator/quickstep | 3e98776002eb5db7154031fd6ef1a7f000a89d81 | [
"Apache-2.0"
] | 17 | 2016-01-20T04:00:21.000Z | 2019-03-12T02:41:25.000Z | /**
* Copyright 2011-2015 Quickstep Technologies LLC.
* Copyright 2015 Pivotal Software, 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... | 33.873016 | 88 | 0.749297 | spring-operator |
542b058edf3a0fe27f276768a3b9b4b57dd39141 | 917 | cpp | C++ | HazelGameEngine/src/Hazel/Renderer/Buffer.cpp | duo131/Hazel_practice | 04eeec2550b9536e7b8a565d67630c1d2a669991 | [
"Apache-2.0"
] | null | null | null | HazelGameEngine/src/Hazel/Renderer/Buffer.cpp | duo131/Hazel_practice | 04eeec2550b9536e7b8a565d67630c1d2a669991 | [
"Apache-2.0"
] | null | null | null | HazelGameEngine/src/Hazel/Renderer/Buffer.cpp | duo131/Hazel_practice | 04eeec2550b9536e7b8a565d67630c1d2a669991 | [
"Apache-2.0"
] | null | null | null | #include "hzpch.h"
#include "Buffer.h"
#include "Renderer.h"
#include "Platform/OpenGL/OpenGLBuffer.h"
namespace Hazel {
VertexBuffer* VertexBuffer::Create(float* vertices, uint32_t size)
{
switch (Renderer::GetRedererAPI())
{
case RendererAPI::API::NONE:
HZ_CORE_ASSERT(false, "RendererAPI not support");
... | 22.365854 | 67 | 0.718648 | duo131 |
f9abb61976300a2badd15fa9e880897257cd6e58 | 8,285 | cpp | C++ | simulator/sim_lib/cray_iop_built_in_channels.cpp | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 49 | 2020-10-09T12:29:16.000Z | 2022-03-12T02:33:35.000Z | simulator/sim_lib/cray_iop_built_in_channels.cpp | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 1 | 2021-12-29T15:59:25.000Z | 2021-12-29T15:59:25.000Z | simulator/sim_lib/cray_iop_built_in_channels.cpp | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 6 | 2021-04-12T06:10:32.000Z | 2022-02-08T23:11:19.000Z | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "utils.h"
#include "cray_iop.h"
#include "cray_mainframe.h"
#include "iop_bmx.h"
#include "iop_concentrator.h"
#include "iop_console.h"
#include "iop_disk.h"
#include "iop_expander.h"
#include "iop_host_memory.h"
#include "iop_iop2cray.h"
#include "iop_i... | 31.382576 | 212 | 0.651298 | jrrk2 |
f9abc7cac5d5fb992b23a3e811475d036e696853 | 4,742 | cc | C++ | LuoGu/3380.cc | DesZou/Eros | f49c9ce1dfe193de8199163286afc28ff8c52eef | [
"MIT"
] | 1 | 2017-10-12T13:49:10.000Z | 2017-10-12T13:49:10.000Z | LuoGu/3380.cc | DesZou/Eros | f49c9ce1dfe193de8199163286afc28ff8c52eef | [
"MIT"
] | null | null | null | LuoGu/3380.cc | DesZou/Eros | f49c9ce1dfe193de8199163286afc28ff8c52eef | [
"MIT"
] | 1 | 2017-10-12T13:49:38.000Z | 2017-10-12T13:49:38.000Z | /*
* luogu3380
*
* 标解应该有平衡树,用带修改主席树实现查前驱后继就怪怪的。
* 但是主席树够强啊,跑得还特别快。(比较快)
* */
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <limits>
#include <iostream>
using std::cin;
using std::cout;
using std::cerr;
template<class T>
bool chkmin(T &a, const T &b) { return a > b? a = b, 1 : 0; }
template... | 26.79096 | 76 | 0.420498 | DesZou |
f9ac58b344e3e5afab1308c9a504d9b6568e1bc3 | 1,906 | cpp | C++ | src/Imperial.cpp | JohnBobSmith/ConvertIt | 4b2393f7aecdc12f69820f2b41b1a6617cd62f5d | [
"MIT"
] | 1 | 2019-01-27T21:43:29.000Z | 2019-01-27T21:43:29.000Z | src/Imperial.cpp | JohnBobSmith/convertit-git | 4b2393f7aecdc12f69820f2b41b1a6617cd62f5d | [
"MIT"
] | null | null | null | src/Imperial.cpp | JohnBobSmith/convertit-git | 4b2393f7aecdc12f69820f2b41b1a6617cd62f5d | [
"MIT"
] | null | null | null | #include "../include/Conversions.h"
#include "../include/Imperial.h"
#include <iostream>
float Imperial::convAcresToHectares(float acres)
{
float hectares = acres * 0.404685642;
return hectares;
}
float Imperial::convMilesToKilometers(float miles)
{
//Do not divide by 0
if (miles == 0) {
miles... | 21.41573 | 81 | 0.63851 | JohnBobSmith |
f9ad46bb0d2c8388bad8c833fc8ffbd08c52aa07 | 475 | cpp | C++ | ccc-2016/q3.cpp | dvychen/ccc-practice | fdad9255e204b38abba0684e989d092b8979391b | [
"MIT"
] | null | null | null | ccc-2016/q3.cpp | dvychen/ccc-practice | fdad9255e204b38abba0684e989d092b8979391b | [
"MIT"
] | null | null | null | ccc-2016/q3.cpp | dvychen/ccc-practice | fdad9255e204b38abba0684e989d092b8979391b | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
int main() {
// Input
int N, M;
cin >> N;
cin >> M;
int phoplaces[M];
for (int i = 0; i < M; i++) {
cin >> phoplaces[i];
}
int roads[N-1][2];
for (int i = 0; i < N-1; i++) {
cin >> roads[i][0];
cin >> roads[i][1];
}
// Sol... | 16.37931 | 36 | 0.517895 | dvychen |
f9adb99336560a042a9bc566fdbed5d0e0dd04a1 | 757 | cc | C++ | chrome/browser/ui/toolbar/chrome_labs_prefs.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | chrome/browser/ui/toolbar/chrome_labs_prefs.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chrome/browser/ui/toolbar/chrome_labs_prefs.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/toolbar/chrome_labs_prefs.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_regi... | 37.85 | 80 | 0.805812 | Ron423c |
f9ae681db932c4f65d2bcb5c44b2c836a725e6d8 | 3,528 | cpp | C++ | Spark/ResourceFactory.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | 1 | 2022-02-15T19:50:01.000Z | 2022-02-15T19:50:01.000Z | Spark/ResourceFactory.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | null | null | null | Spark/ResourceFactory.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | null | null | null | #include "ResourceFactory.h"
#include "Resource.h"
#include "ResourceIdentifier.h"
#include "ResourceLoader.h"
#include "Shader.h"
namespace spark::resourceManagement
{
std::map<std::string, std::function<std::shared_ptr<Resource>(const std::shared_ptr<ResourceIdentifier>& ri)>>
ResourceFactory::resourceCreationF... | 42.506024 | 136 | 0.702381 | MickAlmighty |
f9b01bd81fa4407f38711e48c245b09ce246b474 | 165 | cc | C++ | firstCubes.cc | TheSaltimbanqi/FOPR | 8ff4fb40f0ee3ba90bbbccc9565279bed6e22400 | [
"MIT"
] | null | null | null | firstCubes.cc | TheSaltimbanqi/FOPR | 8ff4fb40f0ee3ba90bbbccc9565279bed6e22400 | [
"MIT"
] | null | null | null | firstCubes.cc | TheSaltimbanqi/FOPR | 8ff4fb40f0ee3ba90bbbccc9565279bed6e22400 | [
"MIT"
] | null | null | null | #include <iostream>
int main()
{
int n=0;
std::cin >> n;
for(int i=0;i<n;++i)
{
std::cout << i*i*i << ',';
}
std::cout << n*n*n<<'\n';
return 0;
}
| 12.692308 | 30 | 0.442424 | TheSaltimbanqi |
f9b290cf64d6d3a7f0fcdc2d8f4cc4e3a362000c | 13,858 | cc | C++ | code/bess-v1/core/module.cc | Lossless-Virtual-Switching/Backdraft | 99e8f7acf833d1755a109898eb397c3412fff159 | [
"MIT"
] | 1 | 2020-06-22T13:21:43.000Z | 2020-06-22T13:21:43.000Z | code/bess-v1/core/module.cc | Lossless-Virtual-Switching/Backdraft | 99e8f7acf833d1755a109898eb397c3412fff159 | [
"MIT"
] | null | null | null | code/bess-v1/core/module.cc | Lossless-Virtual-Switching/Backdraft | 99e8f7acf833d1755a109898eb397c3412fff159 | [
"MIT"
] | null | null | null | // Copyright (c) 2014-2017, The Regents of the University of California.
// Copyright (c) 2016-2017, Nefeli Networks, 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:
//
// * Redistributio... | 27.827309 | 80 | 0.643816 | Lossless-Virtual-Switching |
f9b3c272ae175e51bfba8b2d9bf2e1079db0564d | 720 | cpp | C++ | test/unit-tests/spdk_wrapper/event_framework_api_test.cpp | YongJin-Cho/poseidonos | c07a0240316d4536aa09f22d7977604f3650d752 | [
"BSD-3-Clause"
] | null | null | null | test/unit-tests/spdk_wrapper/event_framework_api_test.cpp | YongJin-Cho/poseidonos | c07a0240316d4536aa09f22d7977604f3650d752 | [
"BSD-3-Clause"
] | null | null | null | test/unit-tests/spdk_wrapper/event_framework_api_test.cpp | YongJin-Cho/poseidonos | c07a0240316d4536aa09f22d7977604f3650d752 | [
"BSD-3-Clause"
] | null | null | null | #include "src/spdk_wrapper/event_framework_api.h"
#include <gtest/gtest.h>
namespace pos
{
} // namespace pos
namespace pos
{
TEST(EventFrameworkApi, SendSpdkEvent_)
{
}
TEST(EventFrameworkApi, CompleteEvents_)
{
}
TEST(EventFrameworkApi, GetTargetReactor_)
{
}
TEST(EventFrameworkApi, GetNextTargetReactor_)
{
}
... | 12 | 49 | 0.777778 | YongJin-Cho |
f9b3d1f1e85b9dfb5909975e7d1cbd2829ea6d57 | 538 | hpp | C++ | include/brica2/executor/omp.hpp | miyosuda/BriCA2 | 390320d56350423b7cc826ecad3f05c18c2da720 | [
"Apache-2.0"
] | null | null | null | include/brica2/executor/omp.hpp | miyosuda/BriCA2 | 390320d56350423b7cc826ecad3f05c18c2da720 | [
"Apache-2.0"
] | null | null | null | include/brica2/executor/omp.hpp | miyosuda/BriCA2 | 390320d56350423b7cc826ecad3f05c18c2da720 | [
"Apache-2.0"
] | 1 | 2020-06-25T04:40:03.000Z | 2020-06-25T04:40:03.000Z | #ifndef __BRICA2_EXECUTOR_OMP_HPP__
#define __BRICA2_EXECUTOR_OMP_HPP__
#include "brica2/executor.hpp"
#include <omp.h>
namespace brica2 {
class omp : public executor_type {
public:
virtual void post(std::function<void()> f) override { fs.push_back(f); }
virtual void sync() override {
std::size_t i;
#prag... | 17.933333 | 74 | 0.66171 | miyosuda |
f9b5f0d0f4fca35fe6b26b6dd336d81ee6c49290 | 2,526 | cpp | C++ | tests/testThreadsafeQueue.cpp | ToniRV/threadsafe_queue | a1cdc880baffe08656abe14d09576c57cc7ce910 | [
"MIT"
] | 1 | 2019-01-13T14:58:03.000Z | 2019-01-13T14:58:03.000Z | tests/testThreadsafeQueue.cpp | ToniRV/threadsafe_queue | a1cdc880baffe08656abe14d09576c57cc7ce910 | [
"MIT"
] | null | null | null | tests/testThreadsafeQueue.cpp | ToniRV/threadsafe_queue | a1cdc880baffe08656abe14d09576c57cc7ce910 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include <chrono>
#include <string>
#include <iostream>
#include <thread>
#include "ThreadsafeQueue.h"
void consumer(ThreadsafeQueue<std::string>& q,
const std::atomic_bool& kill_switch) {
while (!kill_switch) {
std::string msg = "No msg!";
if (q.popBlocking(msg)) {
... | 26.3125 | 79 | 0.603721 | ToniRV |
f9b74618e3496483ca4f6334826d74cc30e97833 | 2,199 | cpp | C++ | src/CExecutableScript.cpp | MrBlueHere/SServer | 05db88b0b5710cf018f86a962baf024ca4b1a8af | [
"MIT"
] | null | null | null | src/CExecutableScript.cpp | MrBlueHere/SServer | 05db88b0b5710cf018f86a962baf024ca4b1a8af | [
"MIT"
] | null | null | null | src/CExecutableScript.cpp | MrBlueHere/SServer | 05db88b0b5710cf018f86a962baf024ca4b1a8af | [
"MIT"
] | null | null | null | /**
* @author Ladislav Floriš
* @date 06.05.20
*/
#include "CExecutableScript.h"
#include "CError.h"
#include <sys/stat.h>
#include <unistd.h>
#include "csignal"
using namespace std;
const int CExecutableScript::READ_BUFFER = 256;
CExecutableScript::CExecutableScript(string path, shared_ptr<CLogger> logger) : CFile... | 24.164835 | 111 | 0.624375 | MrBlueHere |
f9ba8b18a9228647f9be8716478ac7dbc8f87116 | 272 | cpp | C++ | test/neg/neg-memberof2.cpp | snake0/upcxx-2020.10.0 | dcd313a65587efcdefdb4fdfb197389a0e390ccd | [
"BSD-3-Clause-LBNL"
] | null | null | null | test/neg/neg-memberof2.cpp | snake0/upcxx-2020.10.0 | dcd313a65587efcdefdb4fdfb197389a0e390ccd | [
"BSD-3-Clause-LBNL"
] | null | null | null | test/neg/neg-memberof2.cpp | snake0/upcxx-2020.10.0 | dcd313a65587efcdefdb4fdfb197389a0e390ccd | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-06-10T11:14:25.000Z | 2021-06-10T11:14:25.000Z | #include <upcxx/upcxx.hpp>
struct D { // NOT standard layout, NOT trivial, NOT POD
char f0;
char &fx;
D() : fx(f0) {}
};
int main() {
upcxx::init();
auto base = upcxx::new_<D>();
upcxx::global_ptr<char> gp = upcxx_memberof(base, f0);
upcxx::finalize();
}
| 18.133333 | 56 | 0.606618 | snake0 |
f9bfd8fa90d216e76e878725f4562e982bf09543 | 11,314 | cpp | C++ | Modules/LogicServerMultipleClient/muliple_yslim.cpp | alanzw/FGCG | 9819ff9c543cf52bfac16655d1d30417291b5d4c | [
"Apache-2.0"
] | 13 | 2016-10-24T11:39:12.000Z | 2021-04-11T13:24:05.000Z | Modules/LogicServerMultipleClient/muliple_yslim.cpp | zhangq49/sharerender | 9819ff9c543cf52bfac16655d1d30417291b5d4c | [
"Apache-2.0"
] | 1 | 2017-07-28T06:29:00.000Z | 2017-07-28T06:29:00.000Z | Modules/LogicServerMultipleClient/muliple_yslim.cpp | zhangq49/sharerender | 9819ff9c543cf52bfac16655d1d30417291b5d4c | [
"Apache-2.0"
] | 4 | 2018-06-05T03:39:06.000Z | 2020-06-06T04:44:20.000Z | #include "muliple_yslim.h"
#include <assert.h>
#include <stdlib.h>
#define eps (1e-3)
#define Bound_Constraint 1e14
#include <time.h>
YSlim::YSlim() {
vertices.clear();
faces.clear();
quadrics.clear();
pack_vertex_time_ = 0;
decimate_time_ = 0;
vert_cnt_ = -1;
while(!errors.empty()) errors.pop();
}
YSlim... | 22.582834 | 121 | 0.582287 | alanzw |
f9c18bdea43bae1ec0cc875092ed3c4c150565d0 | 539 | hpp | C++ | src/emu_module_core/include/emu_core/plugins/plugin_loader.hpp | pgrabas/emu6502 | 5b46d624cdbb3cffcfd76939d6cdda371f61ed6a | [
"MIT"
] | null | null | null | src/emu_module_core/include/emu_core/plugins/plugin_loader.hpp | pgrabas/emu6502 | 5b46d624cdbb3cffcfd76939d6cdda371f61ed6a | [
"MIT"
] | null | null | null | src/emu_module_core/include/emu_core/plugins/plugin_loader.hpp | pgrabas/emu6502 | 5b46d624cdbb3cffcfd76939d6cdda371f61ed6a | [
"MIT"
] | null | null | null | #pragma once
#include "emu_core/device_factory.hpp"
#include "emu_core/symbol_factory.hpp"
#include <cstdint>
#include <filesystem>
#include <memory>
#include <string_view>
#include <vector>
namespace emu::plugins {
struct PluginLoader {
virtual ~PluginLoader() = default;
virtual std::shared_ptr<SymbolFacto... | 23.434783 | 90 | 0.747681 | pgrabas |
f9c24aa44976e2d68d17cb76eb00ff41c92d8af3 | 1,220 | hxx | C++ | src/control/genai/c_avoid_edge.hxx | AltSysrq/Abendstern | 106e1ad2457f7bfd90080eecf49a33f6079f8e1e | [
"BSD-3-Clause"
] | null | null | null | src/control/genai/c_avoid_edge.hxx | AltSysrq/Abendstern | 106e1ad2457f7bfd90080eecf49a33f6079f8e1e | [
"BSD-3-Clause"
] | null | null | null | src/control/genai/c_avoid_edge.hxx | AltSysrq/Abendstern | 106e1ad2457f7bfd90080eecf49a33f6079f8e1e | [
"BSD-3-Clause"
] | 1 | 2022-01-29T11:54:41.000Z | 2022-01-29T11:54:41.000Z | /**
* @file
* @author Jason Lingle
* @brief Contains the AvoidEdgeCortex reflex
*/
/*
* c_avoid_edge.hxx
*
* Created on: 01.11.2011
* Author: jason
*/
#ifndef C_AVOID_EDGE_HXX_
#define C_AVOID_EDGE_HXX_
#include "ci_nil.hxx"
#include "ci_field.hxx"
#include "ci_self.hxx"
#include "cortex.hxx"
/**
* ... | 20.333333 | 92 | 0.686885 | AltSysrq |
f9c346cce410d7ee98f2830e25e10afaf6c9f06e | 1,304 | hpp | C++ | include/am/external_sort/file_cache.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 31 | 2015-03-03T19:13:42.000Z | 2020-09-03T08:11:56.000Z | include/am/external_sort/file_cache.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 1 | 2016-12-24T00:12:11.000Z | 2016-12-24T00:12:11.000Z | include/am/external_sort/file_cache.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 8 | 2015-09-06T01:55:21.000Z | 2021-12-20T02:16:13.000Z | #ifndef FILE_CACHE_HPP
#define FILE_CACHE_HPP
#include <types.h>
#include <string>
#include <stdio.h>
#include <util/log.h>
using namespace std;
template<
uint32_t SIZE = 1000000
>
class FileCache
{
public:
FileCache(const string& fileName)
{
f_ = fopen(fileName.c_str(), "r");
if (f_==NULL)
{
... | 16.3 | 58 | 0.582822 | izenecloud |
f9c61e3906e5ec4b2371d947409a01a2547882cc | 5,311 | cpp | C++ | libcore/src/util/Timer.cpp | sirikata/sirikata | 3a0d54a8c4778ad6e25ef031d461b2bc3e264860 | [
"BSD-3-Clause"
] | 31 | 2015-01-28T17:01:10.000Z | 2021-11-04T08:30:37.000Z | libcore/src/util/Timer.cpp | sirikata/sirikata | 3a0d54a8c4778ad6e25ef031d461b2bc3e264860 | [
"BSD-3-Clause"
] | null | null | null | libcore/src/util/Timer.cpp | sirikata/sirikata | 3a0d54a8c4778ad6e25ef031d461b2bc3e264860 | [
"BSD-3-Clause"
] | 9 | 2015-08-02T18:39:49.000Z | 2019-10-11T10:32:30.000Z | /* Sirikata
* Timer.cpp
*
* Copyright (c) 2009, Ewen Cheslack-Postava
* 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 co... | 37.13986 | 163 | 0.742233 | sirikata |
f9c9cb74d84d3e1e56ea7f3ce85a28f4169ce77c | 6,440 | cpp | C++ | ExternalProcessor.cpp | tig/spkindel | 7976f723c512ceee4ab1a4f6a0b25a963b7a0886 | [
"MIT"
] | null | null | null | ExternalProcessor.cpp | tig/spkindel | 7976f723c512ceee4ab1a4f6a0b25a963b7a0886 | [
"MIT"
] | null | null | null | ExternalProcessor.cpp | tig/spkindel | 7976f723c512ceee4ab1a4f6a0b25a963b7a0886 | [
"MIT"
] | null | null | null | // ExternalProcessor.cpp : Implementation of CExternalProcessor
#include "stdafx.h"
#include "ExternalProcessor.h"
/////////////////////////////////////////////////////////////////////////////
// CExternalProcessor
HRESULT CExternalProcessor::OnObjectCreated(IPremiseObject* pContainer, IPremiseObject* pCreat... | 26.502058 | 123 | 0.689596 | tig |
f9cc2b265f50128013637befef71e5a7e37b2a4c | 1,069 | cpp | C++ | CodeForces/misc/The Party and Sweets.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | CodeForces/misc/The Party and Sweets.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | CodeForces/misc/The Party and Sweets.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | #include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define pie 3.14
typedef long long int ll;
/*
.d8b. d8888b. db db .d8b. d8b db
d8' `8b 88 `8D `8b d8' d8' `8b 888o 88
88ooo88 88oobY' `8bd8' 88ooo88 88V8o 88
88~~~88 88`8b 88 88~~~88 88 V8o88
88 88 88 `88. 88 88 88 ... | 17.241935 | 42 | 0.50421 | Ashwanigupta9125 |
f9d04a5d77e53fb53f2446fe7144f9cfb16e0f88 | 7,437 | cpp | C++ | qt-creator-opensource-src-4.6.1/src/libs/utils/winutils.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | Src/libs/utils/winutils.cpp | kevinlq/QSD | b618fc63dc3aa5a18701c5b23e3ea3cdd253e89a | [
"MIT"
] | null | null | null | Src/libs/utils/winutils.cpp | kevinlq/QSD | b618fc63dc3aa5a18701c5b23e3ea3cdd253e89a | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | 35.583732 | 156 | 0.696114 | kevinlq |
f9d1353c35718f2f0dd430c1cf0f445477f01684 | 544 | cpp | C++ | ModelClasses/FlyObjects/UsefulClassesForLA/angle.cpp | Yegres5/diploma | eea15d195cd1b8dfe16bd6810f012af435416cb7 | [
"MIT"
] | 3 | 2019-12-18T07:11:54.000Z | 2021-01-12T08:26:59.000Z | ModelClasses/FlyObjects/UsefulClassesForLA/angle.cpp | Yegres5/diploma | eea15d195cd1b8dfe16bd6810f012af435416cb7 | [
"MIT"
] | null | null | null | ModelClasses/FlyObjects/UsefulClassesForLA/angle.cpp | Yegres5/diploma | eea15d195cd1b8dfe16bd6810f012af435416cb7 | [
"MIT"
] | null | null | null | #include "angle.h"
#include "QtMath"
Angle::Angle(double value):check(true),value(value)
{}
void Angle::incValue(const double incVal)
{
value += incVal;
if (check){
while(value>=M_PI*2)
value -= M_PI*2;
while(value<0)
value += M_PI*2;
}
}
double Angle::getValue() co... | 16.484848 | 52 | 0.580882 | Yegres5 |
f9d428c12321b36dbbe6a4d0b521087d1065b24f | 613 | cc | C++ | ios/web/public/test/test_browser_state.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-11-28T10:46:52.000Z | 2019-11-28T10:46:52.000Z | ios/web/public/test/test_browser_state.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ios/web/public/test/test_browser_state.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-27T11:15:39.000Z | 2016-08-17T14:19:56.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ios/web/public/test/test_browser_state.h"
#include "base/files/file_path.h"
namespace web {
TestBrowserState::TestBrowserState() {
}
TestBrow... | 21.892857 | 73 | 0.752039 | kjthegod |
f9da0fb8ae1c74729ac133c1f604e03de6ae945d | 707 | hpp | C++ | IComponent.hpp | rectoria/2017_NanoTekSpice | 793ba675dba90a7e05cfe8946c12e62aa2c17ba2 | [
"MIT"
] | null | null | null | IComponent.hpp | rectoria/2017_NanoTekSpice | 793ba675dba90a7e05cfe8946c12e62aa2c17ba2 | [
"MIT"
] | null | null | null | IComponent.hpp | rectoria/2017_NanoTekSpice | 793ba675dba90a7e05cfe8946c12e62aa2c17ba2 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2018
** IComponent
** File description:
** oui
*/
#pragma once
#include <iostream>
#include <string>
namespace nts
{
enum Tristate {
UNDEFINED = (-true),
TRUE = true,
FALSE = false
};
enum C_TYPE {
C_INPUT,
C_OUTPUT,
C_CLOCK,
C_TRUE,
C_FALSE,
C_4001,
C_4008,
C_4011,
... | 13.596154 | 55 | 0.625177 | rectoria |
f9da8676ba30e05629c961544707aa60b70865e2 | 1,760 | cpp | C++ | src/neuron_factory.cpp | mupimenov/ga4nn | 94309212c941c75496b347b8667e3788ffb09455 | [
"MIT"
] | null | null | null | src/neuron_factory.cpp | mupimenov/ga4nn | 94309212c941c75496b347b8667e3788ffb09455 | [
"MIT"
] | null | null | null | src/neuron_factory.cpp | mupimenov/ga4nn | 94309212c941c75496b347b8667e3788ffb09455 | [
"MIT"
] | null | null | null | /*
COPYRIGHT (c) 2016 Mikhail Pimenov
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish... | 36.666667 | 72 | 0.796023 | mupimenov |
f9db1d36e8681d880aa044ae6697d741d964db02 | 3,822 | cpp | C++ | source/AnimIK.cpp | xzrunner/model | e801f3cbfa0f5e7c190eec1e5286843f6cd68492 | [
"MIT"
] | null | null | null | source/AnimIK.cpp | xzrunner/model | e801f3cbfa0f5e7c190eec1e5286843f6cd68492 | [
"MIT"
] | null | null | null | source/AnimIK.cpp | xzrunner/model | e801f3cbfa0f5e7c190eec1e5286843f6cd68492 | [
"MIT"
] | null | null | null | #include "model/AnimIK.h"
#include "model/ModelInstance.h"
#include "model/SkeletalAnim.h"
#include "model/Model.h"
#include <SM_Matrix.h>
#include <SM_Calc.h>
namespace
{
sm::mat4 get_rot_inv(const sm::mat4& mat)
{
auto inv = mat;
inv.x[12] = inv.x[13] = inv.x[14] = 0;
return inv.Inverted();
}
}
namespace mode... | 28.522388 | 114 | 0.636054 | xzrunner |
f9e223adbb498be01cebcffc478156fa406a2b57 | 773 | cc | C++ | src/contest.cc | mpcal/shashki-ai | 969436624a128c0566aff8dafa701ff21dbc8222 | [
"MIT"
] | 5 | 2021-03-21T21:35:37.000Z | 2021-08-10T09:06:43.000Z | src/contest.cc | mpcal/shashki-ai | 969436624a128c0566aff8dafa701ff21dbc8222 | [
"MIT"
] | 1 | 2021-07-26T07:27:05.000Z | 2021-07-27T13:16:35.000Z | src/contest.cc | mpcal/shashki-ai | 969436624a128c0566aff8dafa701ff21dbc8222 | [
"MIT"
] | null | null | null | #include "contest.h"
#include <cstdio>
#include <ctime>
#include "board.h"
#include "game.h"
#include "game_stats.h"
using namespace std;
namespace shashki {
GameStats run_contest(const Strategy& bk_strategy, const Strategy& wt_strategy,
const uint_fast64_t n_games) {
bool blacks_turn = false... | 22.085714 | 79 | 0.673997 | mpcal |
f9e67b8d7e767b7750cb6ae3199f6c01ffa85d8e | 1,504 | cpp | C++ | project/src/data_types.cpp | GabrielLins64/Study_of_Cpp | 80e519560d5f66f0188b2bbe3525e2a31357cc16 | [
"MIT"
] | null | null | null | project/src/data_types.cpp | GabrielLins64/Study_of_Cpp | 80e519560d5f66f0188b2bbe3525e2a31357cc16 | [
"MIT"
] | null | null | null | project/src/data_types.cpp | GabrielLins64/Study_of_Cpp | 80e519560d5f66f0188b2bbe3525e2a31357cc16 | [
"MIT"
] | null | null | null | #include <data_types.hpp>
template <typename T>
void showTypeInfo(const char* tp_name)
{
std::cout << "~~~~~~~~~ X ~~~~~~~~~ X ~~~~~~~~~" << std::endl;
std::cout << "Type: " << tp_name << std::endl;
std::cout << "Size of " << typeid(T).name() << ": " << sizeof(T) << " bytes" << std::endl;
std::cout << ... | 44.235294 | 94 | 0.603059 | GabrielLins64 |
f9e6e5e746764bf9bf07076bae831e8bd4157b80 | 702 | cpp | C++ | projecteuler/2.cpp | itsjaysuthar/CPpractice | 820cf84ea7079ef3b34a604fd56672811f64f4dc | [
"MIT"
] | null | null | null | projecteuler/2.cpp | itsjaysuthar/CPpractice | 820cf84ea7079ef3b34a604fd56672811f64f4dc | [
"MIT"
] | null | null | null | projecteuler/2.cpp | itsjaysuthar/CPpractice | 820cf84ea7079ef3b34a604fd56672811f64f4dc | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------------------
//-------------------Author : itsjaysuthar ----------------------------------------------
//---------------------------------------------------------------------------------------
#include<bits/stdc++.h>
using namespace std;
int... | 22.645161 | 89 | 0.339031 | itsjaysuthar |
f9e9e42c7a13408a848955aa43719a0cc8da39df | 6,174 | cc | C++ | src/layers/fully_connected_layer.cc | xingdi-eric-yuan/cuda-deep-neural-nets | 25ef60e95e0831f47597d454be135591c5f23869 | [
"Unlicense",
"MIT"
] | 31 | 2015-07-17T15:13:23.000Z | 2022-03-28T01:44:32.000Z | src/layers/fully_connected_layer.cc | xingdi-eric-yuan/cuda-deep-neural-nets | 25ef60e95e0831f47597d454be135591c5f23869 | [
"Unlicense",
"MIT"
] | 1 | 2021-05-21T01:37:52.000Z | 2021-05-21T01:37:52.000Z | src/layers/fully_connected_layer.cc | xingdi-eric-yuan/cuda-deep-neural-nets | 25ef60e95e0831f47597d454be135591c5f23869 | [
"Unlicense",
"MIT"
] | 15 | 2015-07-27T05:50:14.000Z | 2022-03-22T17:08:38.000Z | #include "layer_bank.h"
using namespace std;
// fully connected layer
fully_connected_layer::fully_connected_layer(){
size = 0;
weight_decay = 0.0;
momentum_derivative = 0.0;
momentum_second_derivative = 0.0;
iter = 0;
mu = 0.0;
w = NULL;
b = NULL;
wgrad = NULL;
bgrad = NULL;
... | 32.15625 | 162 | 0.673469 | xingdi-eric-yuan |
f9ed3eed2529c0a01e3c9b9d73125dba56a9c479 | 992 | cpp | C++ | src/html/Parser.cpp | JohannesLaier/Triton | 5d51c28f945a890893da052e8198dc8f50547ee4 | [
"MIT"
] | null | null | null | src/html/Parser.cpp | JohannesLaier/Triton | 5d51c28f945a890893da052e8198dc8f50547ee4 | [
"MIT"
] | null | null | null | src/html/Parser.cpp | JohannesLaier/Triton | 5d51c28f945a890893da052e8198dc8f50547ee4 | [
"MIT"
] | null | null | null | #include "Parser.h"
#include <algorithm>
Parser::Parser() {
node = NULL;
}
char Parser::get() {
char c = codePtr[0];
codePtr++;
return c;
}
char Parser::look() {
return codePtr[0];
}
std::string Parser::getTagName() {
std::string name = "";
char c;
while ((c = get()) != '>') {
... | 18.716981 | 54 | 0.455645 | JohannesLaier |
f9ef9bad4666c8500d428823d458369d20b118bd | 776 | cpp | C++ | Engine/Src/SFCore/Object/SFObject.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | 1 | 2020-06-20T07:35:25.000Z | 2020-06-20T07:35:25.000Z | Engine/Src/SFCore/Object/SFObject.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | Engine/Src/SFCore/Object/SFObject.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// CopyRight (c) 2016 Kyungkun Ko
//
// Author : KyungKun Ko
//
// Description : Shared pointer
//
////////////////////////////////////////////////////////////////////////////////
#include "SFCorePCH.h"
#include "SFTypedefs.h"
#incl... | 15.836735 | 80 | 0.456186 | blue3k |
f9f35cbcea9379357cac7d517b4b2c88afc4368a | 256 | cpp | C++ | ch11/copy3.cpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | ch11/copy3.cpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | ch11/copy3.cpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
#include <iterator>
using namespace std;
int main()
{
copy(istream_iterator<string>(cin),
istream_iterator<string>(),
ostream_iterator<string>(cout, "\n"));
return 0;
}
| 17.066667 | 47 | 0.65625 | bashell |
f9f393fd81d1f36f6c5f43a7efaa1f14c4204631 | 8,772 | hpp | C++ | external/timemory/auto_tuple.hpp | NERSC/gpu-for-science-day-july-2019 | 40342b28d42ea1c65a5d1cd75ff95aba9191d30f | [
"MIT"
] | 6 | 2019-07-03T18:54:06.000Z | 2022-01-03T10:21:52.000Z | external/timemory/auto_tuple.hpp | NERSC/gpu-for-science-day-july-2019 | 40342b28d42ea1c65a5d1cd75ff95aba9191d30f | [
"MIT"
] | 1 | 2019-07-02T20:30:23.000Z | 2019-07-02T20:30:23.000Z | external/timemory/auto_tuple.hpp | NERSC/gpu-for-science-day-july-2019 | 40342b28d42ea1c65a5d1cd75ff95aba9191d30f | [
"MIT"
] | 7 | 2019-07-02T04:57:34.000Z | 2020-09-09T04:58:31.000Z | // MIT License
//
// Copyright (c) 2019, The Regents of the University of California,
// through Lawrence Berkeley National Laboratory (subject to receipt of any
// required approvals from the U.S. Dept. of Energy). All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy... | 38.473684 | 90 | 0.604309 | NERSC |
f9f768cdb16235f7a64f13326b95209ea44bb130 | 50,796 | cpp | C++ | mcgs.cpp | lstange/mcgs | bfce487095c42b3a8c54c8e10aebcd2189a02c62 | [
"MIT"
] | 1 | 2017-04-21T22:53:08.000Z | 2017-04-21T22:53:08.000Z | mcgs.cpp | lstange/mcgs | bfce487095c42b3a8c54c8e10aebcd2189a02c62 | [
"MIT"
] | null | null | null | mcgs.cpp | lstange/mcgs | bfce487095c42b3a8c54c8e10aebcd2189a02c62 | [
"MIT"
] | 1 | 2021-01-11T04:03:42.000Z | 2021-01-11T04:03:42.000Z | /* mcgs.cpp
Monte-Carlo simulation of group sizes under bivariate (possibly contaminated) normal distribution
Requirements:
sudo apt-get install libboost-all-dev
Building:
g++ -O3 -Wall -Wextra -std=c++11 -march=native -g -o mcgs mcgs.cpp
*/
#include <vector>
#include <map>
#include <cmath>
#include <... | 33.68435 | 128 | 0.53518 | lstange |
f9fe622f490c688aae03ab6c3f339d6e918d668c | 4,917 | cpp | C++ | Freesia/src/Platform/X11/X11Window.cpp | Htrap19/Freesia | df030b1981effd59f7856e6af7178b4a1667f8cd | [
"Apache-2.0"
] | 2 | 2021-12-27T15:07:55.000Z | 2022-01-04T20:10:33.000Z | Freesia/src/Platform/X11/X11Window.cpp | Htrap19/Freesia | df030b1981effd59f7856e6af7178b4a1667f8cd | [
"Apache-2.0"
] | null | null | null | Freesia/src/Platform/X11/X11Window.cpp | Htrap19/Freesia | df030b1981effd59f7856e6af7178b4a1667f8cd | [
"Apache-2.0"
] | null | null | null | //
// Created by Htrap19 on 12/1/21.
//
#include "X11Window.h"
#include <GLFW/glfw3.h>
#include "Freesia/Core/Log.h"
#include "Freesia/Core/Assert.h"
#include "Freesia/Events/WindowEvent.h"
#include "Freesia/Events/KeyEvent.h"
#include "Freesia/Events/MouseEvent.h"
namespace Freesia
{
static uint8_t s_GLFWWindow... | 28.587209 | 115 | 0.538133 | Htrap19 |
e600839598c526cabb9604007b6869de0785c3ed | 281 | cpp | C++ | apps/CoreApp/gtest/VisitTest.cpp | FleX-d/Core | b1d44e57dbe24cc20aa82fb249976fa31e88c098 | [
"BSD-3-Clause"
] | null | null | null | apps/CoreApp/gtest/VisitTest.cpp | FleX-d/Core | b1d44e57dbe24cc20aa82fb249976fa31e88c098 | [
"BSD-3-Clause"
] | null | null | null | apps/CoreApp/gtest/VisitTest.cpp | FleX-d/Core | b1d44e57dbe24cc20aa82fb249976fa31e88c098 | [
"BSD-3-Clause"
] | 3 | 2018-05-09T11:50:33.000Z | 2018-07-24T08:13:17.000Z | #include <cstdlib>
#include <iostream>
#include <gtest/gtest.h>
#include "Visitor.h"
TEST(Visitor, Test)
{
flexd::core::Visitor v;
flexd::core::UnfreezRequest_t r=new flexd::core::UnfreezRequest("Snake","1.01");
v.visit(r);
r->accept(v);
ASSERT_TRUE(true);
}
| 18.733333 | 84 | 0.654804 | FleX-d |
e60212f0137a5ac3b96d8a1245d9875c4d2a8346 | 1,178 | cpp | C++ | lib/Xcursor/Xcursor-def.cpp | sourcecode-reloaded/Xming | b9f2e99d00f9445a29803d622d24b5314ee35991 | [
"X11",
"MIT"
] | 4 | 2020-08-21T04:21:14.000Z | 2022-01-15T11:26:11.000Z | lib/Xcursor/Xcursor-def.cpp | sourcecode-reloaded/Xming | b9f2e99d00f9445a29803d622d24b5314ee35991 | [
"X11",
"MIT"
] | 1 | 2020-02-23T19:22:52.000Z | 2020-02-23T19:22:52.000Z | lib/Xcursor/Xcursor-def.cpp | talregev/Xming | e7a997e3c6441c572df6953468fd8e88ca9e07e7 | [
"X11",
"MIT"
] | 3 | 2020-12-18T06:33:36.000Z | 2022-02-22T16:25:50.000Z | LIBRARY Xcursor
VERSION LIBRARY_VERSION
EXPORTS
XcursorAnimateCreate
XcursorAnimateDestroy
XcursorAnimateNext
XcursorCursorsCreate
XcursorCursorsDestroy
XcursorFilenameLoadCursor
XcursorFilenameLoadCursors
XcursorImageLoadCursor
XcursorImagesLoadCursors
XcursorLibraryLoadCursor
XcursorLibraryLoadCursors
XcursorShapeLoa... | 21.418182 | 28 | 0.952462 | sourcecode-reloaded |
e6028456bb37a7d2a1f0b3ca8a61589bd75c9869 | 7,359 | cpp | C++ | src/mapper/InfoNES_Mapper_248.cpp | jay-kumogata/InfoNES | 045dd572123753cd53bbbcd387b70a66d0a8562c | [
"Apache-2.0"
] | 6 | 2019-05-10T02:09:55.000Z | 2021-09-16T09:10:14.000Z | src/mapper/InfoNES_Mapper_248.cpp | b004004/InfoNES-1 | 045dd572123753cd53bbbcd387b70a66d0a8562c | [
"Apache-2.0"
] | null | null | null | src/mapper/InfoNES_Mapper_248.cpp | b004004/InfoNES-1 | 045dd572123753cd53bbbcd387b70a66d0a8562c | [
"Apache-2.0"
] | 1 | 2019-05-10T16:02:51.000Z | 2019-05-10T16:02:51.000Z | /*===================================================================*/
/* */
/* Mapper 248 : Bao Qing Tian */
/* */
/*==========================... | 31.182203 | 85 | 0.478326 | jay-kumogata |
e603043db54419c5422ac825c315a50e7c05a467 | 1,506 | cpp | C++ | libs/ml/src/utilities/utils.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 96 | 2018-08-23T16:49:05.000Z | 2021-11-25T00:47:16.000Z | libs/ml/src/utilities/utils.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 1,011 | 2018-08-17T12:25:21.000Z | 2021-11-18T09:30:19.000Z | libs/ml/src/utilities/utils.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 65 | 2018-08-20T20:05:40.000Z | 2022-02-26T23:54:35.000Z | //------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// 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
//
// ... | 31.375 | 91 | 0.61753 | chr15murray |
e60f5fd18b9e17c8033c5c0067bdd054e82ee589 | 19 | cpp | C++ | Liatris/src/liapch.cpp | briandl2000/LiatrisPublic | a4960eacc73b31e967e3716c7ce2dbfbc62a9925 | [
"Apache-2.0"
] | null | null | null | Liatris/src/liapch.cpp | briandl2000/LiatrisPublic | a4960eacc73b31e967e3716c7ce2dbfbc62a9925 | [
"Apache-2.0"
] | null | null | null | Liatris/src/liapch.cpp | briandl2000/LiatrisPublic | a4960eacc73b31e967e3716c7ce2dbfbc62a9925 | [
"Apache-2.0"
] | null | null | null | #include "liapch.h" | 19 | 19 | 0.736842 | briandl2000 |
e61f86bfabe4ba4077201bc671d3230610a5424b | 1,058 | cpp | C++ | detail/max_points_on_a_line.cpp | zhangxin23/leetcode | 4c8fc60e59448045a3e880caaedd0486164e68e7 | [
"MIT"
] | 1 | 2015-07-15T07:31:42.000Z | 2015-07-15T07:31:42.000Z | detail/max_points_on_a_line.cpp | zhangxin23/leetcode | 4c8fc60e59448045a3e880caaedd0486164e68e7 | [
"MIT"
] | null | null | null | detail/max_points_on_a_line.cpp | zhangxin23/leetcode | 4c8fc60e59448045a3e880caaedd0486164e68e7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
/**
* Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.
* */
//Definition for a point.
struct Point {
int x;
int y;
Point() : x(0), y(0) {}
Point(int a, int b) : x(a), y(b) {}
};
class Solution {
p... | 23.511111 | 102 | 0.442344 | zhangxin23 |
e61fac05108799d28b167071b69bdcacbdd39d24 | 5,543 | hpp | C++ | private/inc/smartx/IasSmartXPriv.hpp | juimonen/SmartXbar | 033f521a5dba5bce5e097df9c98af5b2cc2636dd | [
"BSD-3-Clause"
] | 5 | 2018-11-05T07:37:58.000Z | 2022-03-04T06:40:09.000Z | private/inc/smartx/IasSmartXPriv.hpp | juimonen/SmartXbar | 033f521a5dba5bce5e097df9c98af5b2cc2636dd | [
"BSD-3-Clause"
] | null | null | null | private/inc/smartx/IasSmartXPriv.hpp | juimonen/SmartXbar | 033f521a5dba5bce5e097df9c98af5b2cc2636dd | [
"BSD-3-Clause"
] | 7 | 2018-12-04T07:32:19.000Z | 2021-02-17T11:28:28.000Z | /*
* Copyright (C) 2018 Intel Corporation.All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file IasSmartXPriv.hpp
* @date 2015
* @brief
*/
#ifndef IASSMARTXPRIV_HPP_
#define IASSMARTXPRIV_HPP_
#include "avbaudiomodules/audio/common/IasAudioCommonTypes.hpp"
#include "avbaudiomodule... | 32.798817 | 135 | 0.674725 | juimonen |
e621251e3f4ce2c7f59d358663a6da66c18a0179 | 18,987 | cpp | C++ | tools/legacy/sample_common/src/vaapi_device.cpp | dvkruchinin/oneVPL | ed898448e82651f7d3445bad92488bc13181253e | [
"MIT"
] | null | null | null | tools/legacy/sample_common/src/vaapi_device.cpp | dvkruchinin/oneVPL | ed898448e82651f7d3445bad92488bc13181253e | [
"MIT"
] | null | null | null | tools/legacy/sample_common/src/vaapi_device.cpp | dvkruchinin/oneVPL | ed898448e82651f7d3445bad92488bc13181253e | [
"MIT"
] | null | null | null | /*############################################################################
# Copyright (C) 2005 Intel Corporation
#
# SPDX-License-Identifier: MIT
############################################################################*/
#if defined(LIBVA_DRM_SUPPORT) || defined(LIBVA_X11_SUPPORT) || defined(LIBVA_AND... | 35.161111 | 111 | 0.509981 | dvkruchinin |
e6216afde3140c7d5f5eb00c46d364bf5736445e | 50,687 | cpp | C++ | src/plugins/legacy/polygonRoi/polygonRoiToolBox.cpp | dmargery/medInria-public | c232dbdf9353e14ec6e5184349ef1e523def0b76 | [
"BSD-4-Clause"
] | null | null | null | src/plugins/legacy/polygonRoi/polygonRoiToolBox.cpp | dmargery/medInria-public | c232dbdf9353e14ec6e5184349ef1e523def0b76 | [
"BSD-4-Clause"
] | null | null | null | src/plugins/legacy/polygonRoi/polygonRoiToolBox.cpp | dmargery/medInria-public | c232dbdf9353e14ec6e5184349ef1e523def0b76 | [
"BSD-4-Clause"
] | null | null | null | /*=========================================================================
medInria
Copyright (c) INRIA 2013 - 2019. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.... | 33.656707 | 210 | 0.598378 | dmargery |
e624a89710befc48421b040d0e9cc7b05070d8ec | 1,093 | cpp | C++ | carmen_hardware/firmware/test/test_control_loop.cpp | AndriyPt/carmen | 1b6beb70492604e41a079ea4054c68c0c8f30bdd | [
"MIT"
] | 2 | 2019-12-25T21:41:17.000Z | 2020-03-03T16:14:20.000Z | carmen_hardware/firmware/test/test_control_loop.cpp | AndriyPt/carmen | 1b6beb70492604e41a079ea4054c68c0c8f30bdd | [
"MIT"
] | null | null | null | carmen_hardware/firmware/test/test_control_loop.cpp | AndriyPt/carmen | 1b6beb70492604e41a079ea4054c68c0c8f30bdd | [
"MIT"
] | 1 | 2019-12-19T15:37:31.000Z | 2019-12-19T15:37:31.000Z | #include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "gmock-global/gmock-global.h"
#include <string>
#include "error.h"
#include <stdexcept>
#include "control_loop.h"
#include "osal.h"
#include "osal_control_loop.h"
using ::testing::NotNull;
using ::testing::Gt;
using ::testing::Throw;
MOCK_GLOBAL_FUNC3(generat... | 30.361111 | 111 | 0.792315 | AndriyPt |
e629517f3a76583239d8a7ca90e7f1dbfd572edd | 1,058 | hpp | C++ | test/reporter.hpp | sighingnow/algebra-cpp | 951c7e90327ddb2ac102fe91e9cbced218261db7 | [
"MIT"
] | 1 | 2016-03-13T00:33:01.000Z | 2016-03-13T00:33:01.000Z | test/reporter.hpp | sighingnow/algebra-cpp | 951c7e90327ddb2ac102fe91e9cbced218261db7 | [
"MIT"
] | null | null | null | test/reporter.hpp | sighingnow/algebra-cpp | 951c7e90327ddb2ac102fe91e9cbced218261db7 | [
"MIT"
] | null | null | null | /**
* The MIT License(MIT). Copyright (c) 2015-2016 He Tao
*/
#include <iostream>
#include <autocheck/autocheck.hpp>
/**
* Custom reporter for autocheck.
*/
class custom_reporter : public autocheck::reporter {
public:
virtual void success(size_t tests, size_t max_tests, size_t trivial,
... | 31.117647 | 78 | 0.620038 | sighingnow |
e62c4db52e4f6990efa423f87f09922b8ff86823 | 288 | hpp | C++ | Libraries/Macaronlib/include/Macaronlib/MemoryUtils/Memcpy.hpp | Plunkerusr/podsOS | b68e2ebdaa4eb99366dea6cc5509ba0c92c3601a | [
"MIT"
] | null | null | null | Libraries/Macaronlib/include/Macaronlib/MemoryUtils/Memcpy.hpp | Plunkerusr/podsOS | b68e2ebdaa4eb99366dea6cc5509ba0c92c3601a | [
"MIT"
] | null | null | null | Libraries/Macaronlib/include/Macaronlib/MemoryUtils/Memcpy.hpp | Plunkerusr/podsOS | b68e2ebdaa4eb99366dea6cc5509ba0c92c3601a | [
"MIT"
] | null | null | null | #pragma once
#include "../Common.hpp"
#ifdef __i386__
#include "Memcpy.x86.hpp"
#else
#include "Memcpy.aarch32.hpp"
#endif
[[gnu::always_inline]] inline void inline_memcpy(void* write, const void* read, size_t count)
{
inline_memcpy_impl((char*)write, (const char*)read, count);
}
| 19.2 | 93 | 0.71875 | Plunkerusr |
e62c7f3a2fd6c3b36805a11b0d19925998feb42f | 1,093 | hpp | C++ | Source/Runtime/Core/Public/Math/Util.hpp | Othereum/NoEngineGame | e3c9c9a330ba8e724cd96f98355b556d24e73d9d | [
"MIT"
] | 23 | 2020-05-21T06:25:29.000Z | 2021-04-06T03:37:28.000Z | Source/Runtime/Core/Public/Math/Util.hpp | Othereum/NoEngineGame | e3c9c9a330ba8e724cd96f98355b556d24e73d9d | [
"MIT"
] | 72 | 2020-06-09T04:46:27.000Z | 2020-12-07T03:20:51.000Z | Source/Runtime/Core/Public/Math/Util.hpp | Othereum/NoEngineGame | e3c9c9a330ba8e724cd96f98355b556d24e73d9d | [
"MIT"
] | 4 | 2020-06-10T02:23:54.000Z | 2022-03-28T07:22:08.000Z | #pragma once
#include "Angle.hpp"
#include "Quat.hpp"
#include "Vector.hpp"
namespace otm
{
template <class Float>
Angle<RadR> V2HFov(Angle<RadR> vfov, Vector<Float, 2> scr)
{
return 2 * Atan(Tan(vfov / 2) * (scr[0] / scr[1]));
}
template <class Float>
Angle<RadR> H2VFov(Angle<RadR> hfov, Vector<Float, 2> scr)
{
... | 25.418605 | 112 | 0.644099 | Othereum |
e62d87514ffe2dcd5a87fc7676dea61e2a3007b1 | 52,425 | cpp | C++ | src/pre_parse/pre_parse.cpp | lavovaLampa/vhdl-parser | f7fcde359680a70321725682a9bacb1e910cd8d1 | [
"MIT"
] | 1 | 2022-03-31T15:36:59.000Z | 2022-03-31T15:36:59.000Z | src/pre_parse/pre_parse.cpp | lavovaLampa/vhdl-parser | f7fcde359680a70321725682a9bacb1e910cd8d1 | [
"MIT"
] | null | null | null | src/pre_parse/pre_parse.cpp | lavovaLampa/vhdl-parser | f7fcde359680a70321725682a9bacb1e910cd8d1 | [
"MIT"
] | null | null | null | #include "pre_parse.hpp"
#include "lex/lexer.hpp"
#include "lex/pre_parse_lexer.hpp"
#include "lex/token.hpp"
#include <variant>
#include <cassert>
namespace pre_parse {
struct ErrorDetails {
std::string msg;
size_t offset;
size_t len;
};
struct DesignUnit {
tl::optional<std::string> name;
siz... | 33.096591 | 107 | 0.472485 | lavovaLampa |
e63311d87857445431058ea980d30bb66ebfdd20 | 3,337 | hpp | C++ | include/crypto/RSA.hpp | Jonas4420/Crypto | 4fda1854c838407e6cbfb0ffaf862609eaac203a | [
"MIT"
] | null | null | null | include/crypto/RSA.hpp | Jonas4420/Crypto | 4fda1854c838407e6cbfb0ffaf862609eaac203a | [
"MIT"
] | null | null | null | include/crypto/RSA.hpp | Jonas4420/Crypto | 4fda1854c838407e6cbfb0ffaf862609eaac203a | [
"MIT"
] | null | null | null | #ifndef CRYPTO_RSA_H
#define CRYPTO_RSA_H
#include "crypto/BigNum.hpp"
#include <stdexcept>
#include <utility>
#include <cstring>
namespace Crypto
{
class RSA
{
public:
class RSAPublicKey
{
public:
RSAPublicKey(const BigNum&, const BigNum&);
RSAPublicKey(const uint8_t*, std::size_t);
bool ope... | 26.070313 | 106 | 0.679652 | Jonas4420 |
e63d4558e2b3692bdaf744ae54c1f8bde098910e | 5,854 | hpp | C++ | src/libmeasurement_kit/ndt/run_impl.hpp | measurement-kit/debian-packaging | ed8b0575d8b487c8981c37cc790449b034028894 | [
"BSD-2-Clause"
] | null | null | null | src/libmeasurement_kit/ndt/run_impl.hpp | measurement-kit/debian-packaging | ed8b0575d8b487c8981c37cc790449b034028894 | [
"BSD-2-Clause"
] | null | null | null | src/libmeasurement_kit/ndt/run_impl.hpp | measurement-kit/debian-packaging | ed8b0575d8b487c8981c37cc790449b034028894 | [
"BSD-2-Clause"
] | 1 | 2020-03-18T03:24:52.000Z | 2020-03-18T03:24:52.000Z | // Part of measurement-kit <https://measurement-kit.github.io/>.
// Measurement-kit is free software. See AUTHORS and LICENSE for more
// information on the copying conditions.
#ifndef SRC_LIBMEASUREMENT_KIT_NDT_RUN_IMPL_HPP
#define SRC_LIBMEASUREMENT_KIT_NDT_RUN_IMPL_HPP
#include "../ndt/internal.hpp"
#include <measu... | 40.652778 | 91 | 0.521011 | measurement-kit |