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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
305d4eee99c10a701c699429aafc9ba99f516786 | 4,104 | cpp | C++ | graphics/cgal/Periodic_2_triangulation_2/test/Periodic_2_triangulation_2/test_p2t2_delaunay_performance.cpp | hlzz/dotfiles | 0591f71230c919c827ba569099eb3b75897e163e | [
"BSD-3-Clause"
] | 4 | 2016-03-30T14:31:52.000Z | 2019-02-02T05:01:32.000Z | graphics/cgal/Periodic_2_triangulation_2/test/Periodic_2_triangulation_2/test_p2t2_delaunay_performance.cpp | hlzz/dotfiles | 0591f71230c919c827ba569099eb3b75897e163e | [
"BSD-3-Clause"
] | null | null | null | graphics/cgal/Periodic_2_triangulation_2/test/Periodic_2_triangulation_2/test_p2t2_delaunay_performance.cpp | hlzz/dotfiles | 0591f71230c919c827ba569099eb3b75897e163e | [
"BSD-3-Clause"
] | null | null | null | // Author(s) : Nico Kruithof <Nico@nghk.nl>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/point_generators_2.h>
#include <CGAL/Periodic_2_triangulation_traits_2.h>
#include <CGAL/Periodic_2_triangulation_2.h>
#include <CGAL/Periodic_2_Delaunay_triangulation_2.h>
#include <CGAL/De... | 28.699301 | 102 | 0.619639 | hlzz |
3068223a022e6743babbd188fb5a676f6730e957 | 447 | hpp | C++ | tools/material_munge/src/describe_material.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 13 | 2019-03-25T09:40:12.000Z | 2022-03-13T16:12:39.000Z | tools/material_munge/src/describe_material.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 110 | 2018-10-16T09:05:43.000Z | 2022-03-16T23:32:28.000Z | tools/material_munge/src/describe_material.hpp | SleepKiller/swbfii-shaderpatch | b49ce3349d4dd09b19237ff4766652166ba1ffd4 | [
"MIT"
] | 1 | 2020-02-06T20:32:50.000Z | 2020-02-06T20:32:50.000Z | #pragma once
#include "material_options.hpp"
#include "patch_material_io.hpp"
#pragma warning(push)
#pragma warning(disable : 4996)
#pragma warning(disable : 4127)
#include <yaml-cpp/yaml.h>
#pragma warning(pop)
namespace sp {
auto describe_material(const std::string_view name,
const YAML::N... | 23.526316 | 81 | 0.693512 | SleepKiller |
30689d076d4f026e3c067e58ebff2f48865527c2 | 5,327 | hpp | C++ | src/competitiveProgramming/headers/competitive/programming/graph/Graph.hpp | dareagle/competitive-programming | 4f92a09592b8e0cb4cbcc530681721a728902908 | [
"Apache-2.0"
] | 160 | 2016-05-27T14:26:38.000Z | 2022-03-06T19:30:00.000Z | src/competitiveProgramming/headers/competitive/programming/graph/Graph.hpp | dareagle/competitive-programming | 4f92a09592b8e0cb4cbcc530681721a728902908 | [
"Apache-2.0"
] | 7 | 2016-06-26T16:01:43.000Z | 2019-06-15T21:00:10.000Z | src/competitiveProgramming/headers/competitive/programming/graph/Graph.hpp | dareagle/competitive-programming | 4f92a09592b8e0cb4cbcc530681721a728902908 | [
"Apache-2.0"
] | 40 | 2016-06-28T11:06:13.000Z | 2021-12-01T14:48:28.000Z | #ifndef _GRAPH_GRAPH_INCLUDED
#define _GRAPH_GRAPH_INCLUDED
/**
* @author Manwe
*
* class that models a graph and allows to scan it in order to produce
* various results (just using <a
* href="https://en.wikipedia.org/wiki/Breadth-first_search">BFS</a> for
* now) Graph can be directed o... | 36.737931 | 203 | 0.697203 | dareagle |
30698f9956867d81b4eb3a667adac6980857c830 | 27,993 | cpp | C++ | lg/solvers/htd-master/src/htd/MinFillOrderingAlgorithm.cpp | vuphan314/dpo | e24fe63fc3321c0cd6d2179c3300596b91082ab5 | [
"MIT"
] | 14 | 2020-01-31T23:02:39.000Z | 2021-12-26T06:00:13.000Z | lg/solvers/htd-master/src/htd/MinFillOrderingAlgorithm.cpp | vuphan314/dpo | e24fe63fc3321c0cd6d2179c3300596b91082ab5 | [
"MIT"
] | 3 | 2020-06-27T21:11:46.000Z | 2020-06-27T21:11:47.000Z | lg/solvers/htd-master/src/htd/MinFillOrderingAlgorithm.cpp | vuphan314/dpo | e24fe63fc3321c0cd6d2179c3300596b91082ab5 | [
"MIT"
] | 2 | 2020-08-08T03:04:30.000Z | 2021-05-21T04:56:02.000Z | /*
* File: MinFillOrderingAlgorithm.cpp
*
* Author: ABSEHER Michael (abseher@dbai.tuwien.ac.at)
*
* Copyright 2015-2017, Michael Abseher
* E-Mail: <abseher@dbai.tuwien.ac.at>
*
* This file is part of htd.
*
* htd is free software: you can redistribute it and/or modify it under
* the terms of the GNU Gen... | 40.277698 | 243 | 0.544779 | vuphan314 |
3070e179768c73cd626c3f651e0cbd649b275d5c | 2,040 | cpp | C++ | src/midi-chrono/DigitPanel.cpp | nkshigeru/crossmidi | 5f4bf348853cd9362d7dbd02349289ab49e6ac08 | [
"MIT"
] | null | null | null | src/midi-chrono/DigitPanel.cpp | nkshigeru/crossmidi | 5f4bf348853cd9362d7dbd02349289ab49e6ac08 | [
"MIT"
] | null | null | null | src/midi-chrono/DigitPanel.cpp | nkshigeru/crossmidi | 5f4bf348853cd9362d7dbd02349289ab49e6ac08 | [
"MIT"
] | null | null | null | #include "DigitPanel.h"
wxBEGIN_EVENT_TABLE(DigitPanel, wxWindow)
EVT_PAINT(DigitPanel::OnPaint)
EVT_SET_FOCUS(DigitPanel::OnSetFocus)
EVT_KILL_FOCUS(DigitPanel::OnKillFocus)
EVT_CHAR(DigitPanel::OnChar)
wxEND_EVENT_TABLE()
static const wxColour BackgroundColor(60, 60, 60);
static const wxColour ForegroundColor(2... | 16.721311 | 114 | 0.677941 | nkshigeru |
3071701e8abe277941855f000c4ee0a042d16a52 | 221 | cpp | C++ | components/compiler/nullerrorhandler.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | components/compiler/nullerrorhandler.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | components/compiler/nullerrorhandler.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null |
#include "nullerrorhandler.hpp"
void Compiler::NullErrorHandler::report (const std::string& message, const TokenLoc& loc, Type type) {}
void Compiler::NullErrorHandler::report (const std::string& message, Type type) {} | 36.833333 | 103 | 0.760181 | Bodillium |
307337815be30d94d1f20881c1ce7c5d136d7d0a | 3,666 | cpp | C++ | Soomla/gates/CCWorldCompletionGate.cpp | markpetersen01/Cocos2D-game | 93e12850f3ecdfbda9c1ce60792b8e7b1c2bd4b8 | [
"Apache-2.0"
] | 14 | 2015-01-29T10:39:08.000Z | 2019-05-09T09:30:58.000Z | Soomla/gates/CCWorldCompletionGate.cpp | markpetersen01/Cocos2D-game | 93e12850f3ecdfbda9c1ce60792b8e7b1c2bd4b8 | [
"Apache-2.0"
] | 10 | 2015-02-09T07:48:33.000Z | 2017-03-17T10:24:20.000Z | Soomla/gates/CCWorldCompletionGate.cpp | markpetersen01/Cocos2D-game | 93e12850f3ecdfbda9c1ce60792b8e7b1c2bd4b8 | [
"Apache-2.0"
] | 13 | 2015-02-09T01:28:08.000Z | 2019-09-05T07:31:12.000Z | /*
Copyright (C) 2012-2014 Soomla 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 applicable law or agreed to in writing, s... | 31.603448 | 161 | 0.651937 | markpetersen01 |
3075ae8bd122c717b012469c3986946244fe2b93 | 61 | cpp | C++ | src/core/Zobrist.cpp | AlexKent3141/OnePunchGo | a86caaf421c8122222f72316171702617c519d28 | [
"MIT"
] | 3 | 2018-05-14T12:32:19.000Z | 2021-04-20T23:11:56.000Z | src/core/Zobrist.cpp | AlexKent3141/OnePunchGo | a86caaf421c8122222f72316171702617c519d28 | [
"MIT"
] | 1 | 2018-03-30T18:44:49.000Z | 2018-03-31T15:57:49.000Z | src/core/Zobrist.cpp | AlexKent3141/OnePunchGo | a86caaf421c8122222f72316171702617c519d28 | [
"MIT"
] | null | null | null | #include "Zobrist.h"
Zobrist* Zobrist::_instance = nullptr;
| 15.25 | 38 | 0.737705 | AlexKent3141 |
30809a69e3f1c678ef802e3c0447131ca0a736bd | 11,634 | hpp | C++ | agency/future/always_ready_future.hpp | nerikhman/agency | 966ac59101f2fc3561a86b11874fbe8de361d0e4 | [
"BSD-3-Clause"
] | 129 | 2016-08-18T23:24:15.000Z | 2022-03-25T12:06:05.000Z | agency/future/always_ready_future.hpp | nerikhman/agency | 966ac59101f2fc3561a86b11874fbe8de361d0e4 | [
"BSD-3-Clause"
] | 86 | 2016-08-19T03:43:33.000Z | 2020-07-20T14:27:41.000Z | agency/future/always_ready_future.hpp | nerikhman/agency | 966ac59101f2fc3561a86b11874fbe8de361d0e4 | [
"BSD-3-Clause"
] | 23 | 2016-08-18T23:52:13.000Z | 2022-02-28T16:28:20.000Z | #pragma once
#include <agency/detail/config.hpp>
#include <agency/detail/requires.hpp>
#include <agency/detail/type_traits.hpp>
#include <agency/detail/utility.hpp>
#include <agency/experimental/variant.hpp>
#include <agency/experimental/optional.hpp>
#include <agency/future/future_traits/is_future.hpp>
#include <agen... | 25.625551 | 107 | 0.690562 | nerikhman |
3081591279821cde49ee9c31d28dea4cdeab86c1 | 4,992 | cpp | C++ | test_task_leisure_time.cpp | yecharlie/tk | 8157a393c1d9840793eb41098cb6e03cba6e4f54 | [
"MIT"
] | null | null | null | test_task_leisure_time.cpp | yecharlie/tk | 8157a393c1d9840793eb41098cb6e03cba6e4f54 | [
"MIT"
] | null | null | null | test_task_leisure_time.cpp | yecharlie/tk | 8157a393c1d9840793eb41098cb6e03cba6e4f54 | [
"MIT"
] | null | null | null | #include "tk.h"
#include <cstdlib> // rand()
#include <vector>
#include <sstream>
#include <fstream>
class customer;
class producer;
const int MIN_REQ_SEEDS = 300;
struct seeds : public tk::object
{
int count;
int pending() {return count == 0;}
void put(int n) {if ((count += n) == n) alert();}
int take() {
... | 21.333333 | 116 | 0.614383 | yecharlie |
30826b8fcc7ba9d7bbcad99539507ba66d8832f8 | 2,575 | cpp | C++ | src/ngfx/drawOps/DrawColorOp.cpp | kamranrad1993/ngfx | eeef60e3419a88371a97e8bc3109d2b35b82cc89 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 12 | 2021-04-03T16:50:22.000Z | 2022-03-18T07:14:14.000Z | src/ngfx/drawOps/DrawColorOp.cpp | kamranrad1993/ngfx | eeef60e3419a88371a97e8bc3109d2b35b82cc89 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 6 | 2021-05-06T21:02:19.000Z | 2022-02-14T11:57:27.000Z | src/ngfx/drawOps/DrawColorOp.cpp | kamranrad1993/ngfx | eeef60e3419a88371a97e8bc3109d2b35b82cc89 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 5 | 2021-06-11T20:15:37.000Z | 2022-03-18T07:14:21.000Z | /*
* Copyright 2020 GoPro Inc.
*
* 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 Licens... | 40.873016 | 81 | 0.706019 | kamranrad1993 |
3087837487d28cf748219f196d1e37e5f91059f2 | 1,230 | cpp | C++ | Source/Common/Logger/LoggerSeverity.cpp | gunstarpl/Game-Engine | b800ff84b4c5487a33a6c86fca6dcac1e584e223 | [
"Unlicense"
] | 10 | 2018-10-12T12:20:11.000Z | 2022-01-20T17:13:50.000Z | Source/Common/Logger/LoggerSeverity.cpp | gunstarpl/Game-Engine | b800ff84b4c5487a33a6c86fca6dcac1e584e223 | [
"Unlicense"
] | null | null | null | Source/Common/Logger/LoggerSeverity.cpp | gunstarpl/Game-Engine | b800ff84b4c5487a33a6c86fca6dcac1e584e223 | [
"Unlicense"
] | null | null | null | /*
Copyright (c) 2018-2021 Piotr Doan. All rights reserved.
Software distributed under the permissive MIT License.
*/
#include "Common/Logger/LoggerSeverity.hpp"
using namespace Logger;
const char* Logger::GetSeverityName(Severity::Type severity)
{
switch(severity)
{
case Severity::Trace: re... | 30.75 | 62 | 0.602439 | gunstarpl |
308ba11d685edf4cee932201d15cd2903d447d5f | 10,582 | cc | C++ | src/exception.cc | CMU-TBD/tcm | dbddfa556a64eedfd774bc347e702463676b56a7 | [
"BSD-2-Clause"
] | null | null | null | src/exception.cc | CMU-TBD/tcm | dbddfa556a64eedfd774bc347e702463676b56a7 | [
"BSD-2-Clause"
] | null | null | null | src/exception.cc | CMU-TBD/tcm | dbddfa556a64eedfd774bc347e702463676b56a7 | [
"BSD-2-Clause"
] | null | null | null | /**************************************************************************
*
* PROJECT: Task Control Management.
*
* (c) Copyright 1996 Reid Simmons. All rights reserved.
*
* FILE: exception.cc
*
* ABSTRACT: Classes for raising and handling exceptions/failures.
*
* EXPORTS:
*
* $Revision: 1.16 $
* $Date... | 34.025723 | 104 | 0.613306 | CMU-TBD |
308f7713be1a912b99f1584a0e9a468c446bcea6 | 5,180 | hxx | C++ | content/c++/hiroshi-mikuriya_mac-welcome/letters.hxx | chabukan/3d_led_cube | cbf910c847141b2e4104eeec0b5ebcab8f8aa09b | [
"MIT"
] | 3 | 2017-07-10T08:13:35.000Z | 2017-07-28T04:57:44.000Z | content/c++/hiroshi-mikuriya_mac-welcome/letters.hxx | chabukan/3d_led_cube | cbf910c847141b2e4104eeec0b5ebcab8f8aa09b | [
"MIT"
] | 2 | 2017-07-12T05:11:07.000Z | 2018-01-04T03:07:29.000Z | content/c++/hiroshi-mikuriya_mac-welcome/letters.hxx | chabukan/3d_led_cube | cbf910c847141b2e4104eeec0b5ebcab8f8aa09b | [
"MIT"
] | 11 | 2017-07-10T04:52:59.000Z | 2021-04-07T05:43:10.000Z | {"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABDDDDDDDDDBAAAAFPPPPPPPPPPNDAADNPPPPPPPPPPPLBABLPPPPPPPPPPPJAABLPPPPPPPPPPMDAABLPPMEDDDDDDBAAABLPPLBAAAAAAAAAABLPPLBAAAAAAAAAABLPPLBAAAAAAAAAABLPPLBAAAAAAAAAABLPPMEDDBAAAAAAABLPPPPPPMCAAAAAABLPPPPPPPJAAAAAABLPPPPPPPLBAAAAABLPPPPPPNEAAAAAABLPPMEDDBAAAA... | 470.909091 | 517 | 0.988417 | chabukan |
309529fa984b3b3acdb7c4bfa51813d02c01f9c2 | 6,440 | cpp | C++ | tc/sgx/trusted_worker_manager/enclave/epid_signup_helper.cpp | fengjixuchui/avalon | 024588df1e643685257bc2f3a18a75524e4b5086 | [
"Apache-2.0"
] | null | null | null | tc/sgx/trusted_worker_manager/enclave/epid_signup_helper.cpp | fengjixuchui/avalon | 024588df1e643685257bc2f3a18a75524e4b5086 | [
"Apache-2.0"
] | null | null | null | tc/sgx/trusted_worker_manager/enclave/epid_signup_helper.cpp | fengjixuchui/avalon | 024588df1e643685257bc2f3a18a75524e4b5086 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2020 Intel Corporation
*
* 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 ... | 38.795181 | 78 | 0.738354 | fengjixuchui |
3098b92ccdaa86b3863522b2db37278194693437 | 27 | cpp | C++ | JavaScript/Snetris/main.cpp | Myazure/Examples | ec72961184c1d75ea2cfed9489b3c7e2ecba08af | [
"MIT"
] | 3 | 2019-03-01T01:15:57.000Z | 2020-04-24T00:28:11.000Z | JavaScript/Snetris/main.cpp | Myazure/Examples | ec72961184c1d75ea2cfed9489b3c7e2ecba08af | [
"MIT"
] | null | null | null | JavaScript/Snetris/main.cpp | Myazure/Examples | ec72961184c1d75ea2cfed9489b3c7e2ecba08af | [
"MIT"
] | 3 | 2018-09-26T08:48:54.000Z | 2019-11-07T00:40:55.000Z |
int *ptr=nullptr;
| 2.454545 | 17 | 0.481481 | Myazure |
309e6bf9bcb840ddb5d778acb88d30f8fd58cc15 | 4,443 | cpp | C++ | vkoo/src/core/DescriptorSetLayout.cpp | KaiSut0/interactive-hex-meshing | 187c926610ca5617f569405c23ab5a62b189e100 | [
"MIT"
] | 129 | 2021-09-07T17:15:18.000Z | 2022-02-28T08:59:02.000Z | vkoo/src/core/DescriptorSetLayout.cpp | KaiSut0/interactive-hex-meshing | 187c926610ca5617f569405c23ab5a62b189e100 | [
"MIT"
] | 2 | 2021-10-03T07:30:20.000Z | 2022-01-06T16:05:41.000Z | vkoo/src/core/DescriptorSetLayout.cpp | KaiSut0/interactive-hex-meshing | 187c926610ca5617f569405c23ab5a62b189e100 | [
"MIT"
] | 11 | 2021-09-08T11:29:09.000Z | 2022-03-17T08:39:50.000Z | #include "vkoo/core/DescriptorSetLayout.h"
#include "vkoo/core/Device.h"
#include "vkoo/core/ShaderModule.h"
namespace vkoo {
inline VkDescriptorType FindDescriptorType(ShaderResourceType resource_type,
bool dynamic) {
switch (resource_type) {
case ShaderResourceType::... | 34.710938 | 79 | 0.728562 | KaiSut0 |
309e6f762aab8c1c4fd7c99502ea2303b5ff06b6 | 857 | cpp | C++ | Scenario/RobotArmy.cpp | Glutamat42/Robot-Simulator | 4cec0e3bcb2aeb607f57e83bd545d626ea53af1a | [
"MIT"
] | null | null | null | Scenario/RobotArmy.cpp | Glutamat42/Robot-Simulator | 4cec0e3bcb2aeb607f57e83bd545d626ea53af1a | [
"MIT"
] | null | null | null | Scenario/RobotArmy.cpp | Glutamat42/Robot-Simulator | 4cec0e3bcb2aeb607f57e83bd545d626ea53af1a | [
"MIT"
] | null | null | null | //
// Created by markus on 19.04.21.
//
#include "RobotArmy.h"
#include "../Operators/BasicWithNovelty.h"
void RobotArmy::setUp() {
this->world = new World("assets/maps/world1.png");
for (int i = 0; i < 50; ++i) {
Robot* robot = new Robot(std::string("robot_army_" + std::to_string(i)), 8, world, M_PI... | 28.566667 | 106 | 0.632439 | Glutamat42 |
30a02980ba6802483c61cd87c547110f359d34b5 | 2,621 | hpp | C++ | ufora/FORA/TypedFora/ABI/MutableVectorHandle.hpp | ufora/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 571 | 2015-11-05T20:07:07.000Z | 2022-01-24T22:31:09.000Z | ufora/FORA/TypedFora/ABI/MutableVectorHandle.hpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 218 | 2015-11-05T20:37:55.000Z | 2021-05-30T03:53:50.000Z | ufora/FORA/TypedFora/ABI/MutableVectorHandle.hpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 40 | 2015-11-07T21:42:19.000Z | 2021-05-23T03:48:19.000Z | /***************************************************************************
Copyright 2015 Ufora 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/licen... | 28.182796 | 89 | 0.700114 | ufora |
30a246cef07d874b5d004393b9bf8f04f95d676d | 23,321 | cpp | C++ | src/manipulator.cpp | s9rA16Bf4/B.O.A.T | ab8203bf43991c643fbea4e6fdf487185c3a4de7 | [
"MIT"
] | null | null | null | src/manipulator.cpp | s9rA16Bf4/B.O.A.T | ab8203bf43991c643fbea4e6fdf487185c3a4de7 | [
"MIT"
] | null | null | null | src/manipulator.cpp | s9rA16Bf4/B.O.A.T | ab8203bf43991c643fbea4e6fdf487185c3a4de7 | [
"MIT"
] | null | null | null | #include "manipulator.hpp"
bool manipulator::process(std::vector<std::string> parsedValues){
bool toReturn = false;
file fP;
builtInFunc bif;
for (unsigned int y = 0; y < parsedValues.size(); y++){
std::vector<std::string> splitLine = fP.split(parsedValues[y], " ");
for (unsigned int i = 0; i < splitL... | 49.408898 | 183 | 0.511642 | s9rA16Bf4 |
30a73ee04de69fe2ca492f82c325b75ac1f0b236 | 751 | cpp | C++ | 20200523_PAST3/b.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | 20200523_PAST3/b.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | 20200523_PAST3/b.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
// 入出力の高速化
ios::sync_with_stdio(false);
cin.tie(nullptr);
// 表示精度変更
cout << fixed << setprecision(16);
int N, M, Q;
int s,n,m;
int point;
cin >> N >> M >> Q;
vector<vector<int>> ans(N+1,vector<int>(M+1));
// クエリ入力
for(i... | 18.775 | 50 | 0.366178 | miyalab |
30a81c9cbfd7f4d3ae352221c034c13c2cd828cb | 3,134 | cpp | C++ | modules/core/engine/src/Network/NetworkEngineService.cpp | syl22-00/aac-sdk | 79696da55b0bca09a4c68f361ef1f47efb8f717e | [
"Apache-2.0"
] | 4 | 2018-08-29T08:16:52.000Z | 2019-05-17T02:04:56.000Z | modules/core/engine/src/Network/NetworkEngineService.cpp | syl22-00/aac-sdk | 79696da55b0bca09a4c68f361ef1f47efb8f717e | [
"Apache-2.0"
] | null | null | null | modules/core/engine/src/Network/NetworkEngineService.cpp | syl22-00/aac-sdk | 79696da55b0bca09a4c68f361ef1f47efb8f717e | [
"Apache-2.0"
] | 1 | 2020-05-18T02:02:47.000Z | 2020-05-18T02:02:47.000Z | /*
* Copyright 2017-2018 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "... | 33.698925 | 156 | 0.73612 | syl22-00 |
dd666faa83e83509e65b07557622f08a949421bd | 23,360 | cpp | C++ | Source/JavaScriptCore/dfg/DFGOSRExitCompilerCommon.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Source/JavaScriptCore/dfg/DFGOSRExitCompilerCommon.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Source/JavaScriptCore/dfg/DFGOSRExitCompilerCommon.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2013-2020 Apple 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 conditi... | 51.796009 | 284 | 0.709846 | jacadcaps |
dd6a1e72d88bd07d160e378dcbd57afc1830e4df | 2,396 | cpp | C++ | src/poScene/EventCenter.cpp | ZawaadulKarim/Cinder-poScene | 7e273d15a89f0a19d336e516017f910ef343f8f2 | [
"BSD-3-Clause"
] | 71 | 2015-08-07T16:54:15.000Z | 2021-11-07T06:10:22.000Z | src/poScene/EventCenter.cpp | ZawaadulKarim/Cinder-poScene | 7e273d15a89f0a19d336e516017f910ef343f8f2 | [
"BSD-3-Clause"
] | 19 | 2015-12-17T21:38:32.000Z | 2019-12-09T20:05:18.000Z | src/poScene/EventCenter.cpp | ZawaadulKarim/Cinder-poScene | 7e273d15a89f0a19d336e516017f910ef343f8f2 | [
"BSD-3-Clause"
] | 29 | 2015-08-11T19:57:11.000Z | 2021-05-06T20:25:50.000Z | /*
Copyright (c) 2015, Potion Design LLC
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 conditions and the fo... | 35.235294 | 92 | 0.755426 | ZawaadulKarim |
dd6de117154db922f3587e5cad7bd882df9e1348 | 8,128 | hpp | C++ | sdl/Optimization/FeatureHypergraphPairs.hpp | sdl-research/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 29 | 2015-01-26T21:49:51.000Z | 2021-06-18T18:09:42.000Z | sdl/Optimization/FeatureHypergraphPairs.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 1 | 2015-12-08T15:03:15.000Z | 2016-01-26T14:31:06.000Z | sdl/Optimization/FeatureHypergraphPairs.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 4 | 2015-11-21T14:25:38.000Z | 2017-10-30T22:22:00.000Z | // Copyright 2014-2015 SDL plc
// 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 to in writing,... | 33.726141 | 107 | 0.703002 | sdl-research |
dd732be1422bb4926de2d07a214f29f3cb29bccb | 2,050 | cpp | C++ | Adventure in a Maze - GFG/adventure-in-a-maze.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | Adventure in a Maze - GFG/adventure-in-a-maze.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | Adventure in a Maze - GFG/adventure-in-a-maze.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | // { Driver Code Starts
#include<bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution {
#define N 1000000007
public:
bool moveRight(int a){
if(a == 1 || a == 3) return true;
return false;
}
bool moveDown(int a){
if(a != 1) return true;
return false;
}
vector<int> FindWays(vector<v... | 23.837209 | 85 | 0.450244 | sahib-pratap-singh |
dd7a4704470862257bc59f2cf184316925131f56 | 2,024 | cpp | C++ | src/filters/VoronoiFilter.cpp | dasl-/ofxFilterLibrary | 6e43d33b205f04706b72747e5b4ce7f45cab3e88 | [
"MIT"
] | 98 | 2015-01-28T23:23:06.000Z | 2021-03-27T16:29:17.000Z | src/filters/VoronoiFilter.cpp | dasl-/ofxFilterLibrary | 6e43d33b205f04706b72747e5b4ce7f45cab3e88 | [
"MIT"
] | 5 | 2015-04-17T17:19:21.000Z | 2017-10-27T15:46:55.000Z | src/filters/VoronoiFilter.cpp | dasl-/ofxFilterLibrary | 6e43d33b205f04706b72747e5b4ce7f45cab3e88 | [
"MIT"
] | 18 | 2015-07-23T02:44:31.000Z | 2020-02-24T12:52:15.000Z | //
// VoronoiFilter.cpp
// filterSandbox
//
// Created by Matthew Fargo on 2014/06/23.
//
//
#include "VoronoiFilter.h"
VoronoiFilter::VoronoiFilter(ofTexture & texture) : AbstractFilter(texture.getWidth(), texture.getHeight()) {
_name = "Voronoi";
_texture = texture;
for (int i=0; i<NUM_POINTS; i++) {... | 30.666667 | 109 | 0.511858 | dasl- |
dd7f17a6ce4b7ae61c5ebb39d303412c7b8df4c5 | 784 | cpp | C++ | ftnoir_protocol_wine/ftnoir_protocol_wine_dll.cpp | MaximeMorel/opentrack | d83db9c7cfd7ee12366032b9b0796dc63acdabb3 | [
"ISC"
] | null | null | null | ftnoir_protocol_wine/ftnoir_protocol_wine_dll.cpp | MaximeMorel/opentrack | d83db9c7cfd7ee12366032b9b0796dc63acdabb3 | [
"ISC"
] | null | null | null | ftnoir_protocol_wine/ftnoir_protocol_wine_dll.cpp | MaximeMorel/opentrack | d83db9c7cfd7ee12366032b9b0796dc63acdabb3 | [
"ISC"
] | null | null | null | #include "ftnoir_protocol_wine.h"
#include <QDebug>
#include "facetracknoir/global-settings.h"
FTNoIR_ProtocolDll::FTNoIR_ProtocolDll() {
}
FTNoIR_ProtocolDll::~FTNoIR_ProtocolDll()
{
}
////////////////////////////////////////////////////////////////////////////////
// Factory function that creates instances if the... | 30.153846 | 88 | 0.693878 | MaximeMorel |
dd83132ad9e7c5ddc5d3e68ee3061b1cb08505b6 | 598 | cpp | C++ | 01_Programming_Basics/01_Programming_Basics_with_C++/11_For_Loop_Exercise/07_Salary.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | 01_Programming_Basics/01_Programming_Basics_with_C++/11_For_Loop_Exercise/07_Salary.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | 01_Programming_Basics/01_Programming_Basics_with_C++/11_For_Loop_Exercise/07_Salary.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <iomanip>
using namespace std;
int main() {
int n = 0;
int salary = 0;
cin >> n >> salary;
cin.ignore();
for (int i = 0; i < n; i++) {
string website = "";
getline(cin, website);
if (website == "Facebook") {
salary -= 150;
} else if (w... | 16.162162 | 51 | 0.498328 | Knightwalker |
dd83c3ade54f0729203dfb4ccab6dc9588e6005e | 826 | hpp | C++ | cpp/gain-node.hpp | trxcllnt/webaudio-raub | 957d68c2612a3de88e50fb8655d3d700c5a6c001 | [
"MIT"
] | null | null | null | cpp/gain-node.hpp | trxcllnt/webaudio-raub | 957d68c2612a3de88e50fb8655d3d700c5a6c001 | [
"MIT"
] | null | null | null | cpp/gain-node.hpp | trxcllnt/webaudio-raub | 957d68c2612a3de88e50fb8655d3d700c5a6c001 | [
"MIT"
] | null | null | null | #ifndef _GAIN_NODE_HPP_
#define _GAIN_NODE_HPP_
#include <addon-tools.hpp>
#include "audio-node.hpp"
class GainNode : public AudioNode {
public:
~GainNode();
// Public V8 init
static void init(V8_VAR_OBJ target);
// Make a new instance from C++ land
static V8_VAR_OBJ getNew(V8_VAR_OBJ context);
// ... | 15.584906 | 50 | 0.739709 | trxcllnt |
dd879f9f84b93c3827ff135e4becb188a456aa89 | 352 | cpp | C++ | Observer/Observer/Viewers/RadioViewer.cpp | jayavardhanravi/DesignPatterns | aa6a37790f447c7caf69c6a1a9c6107074309a03 | [
"BSD-2-Clause"
] | 8 | 2020-01-23T23:20:40.000Z | 2022-01-08T13:04:08.000Z | Observer/Observer/Viewers/RadioViewer.cpp | jayavardhanravi/DesignPatterns | aa6a37790f447c7caf69c6a1a9c6107074309a03 | [
"BSD-2-Clause"
] | null | null | null | Observer/Observer/Viewers/RadioViewer.cpp | jayavardhanravi/DesignPatterns | aa6a37790f447c7caf69c6a1a9c6107074309a03 | [
"BSD-2-Clause"
] | 1 | 2020-01-28T14:27:54.000Z | 2020-01-28T14:27:54.000Z | #include "RadioViewer.h"
RadioViewer::RadioViewer(const std::string &name) : name_(name)
{
}
RadioViewer::~RadioViewer()
{
}
void RadioViewer::GetUpdates(const std::string& dataObtained)
{
dataObtained_ = dataObtained;
std::cout << "[RADIO] "<< name_ << " : " << dataObtained_ << std::endl;
}
std::string RadioView... | 16.761905 | 72 | 0.681818 | jayavardhanravi |
dd946ecdbff8bbc29fc41b829d5c1e4bdbaf93d4 | 443 | hpp | C++ | src/Surface.hpp | Seek/RayTracing | 24978d83a98d9c1c4d545cddfa38be9c6279663f | [
"MIT"
] | null | null | null | src/Surface.hpp | Seek/RayTracing | 24978d83a98d9c1c4d545cddfa38be9c6279663f | [
"MIT"
] | null | null | null | src/Surface.hpp | Seek/RayTracing | 24978d83a98d9c1c4d545cddfa38be9c6279663f | [
"MIT"
] | null | null | null | #ifndef SURFACE_HPP
#define SURFACE_HPP
#pragma once
#include "Ray.hpp"
#include "Transform.hpp"
#include "LocalSurface.hpp"
class Surface {
public:
Surface() {}
Surface(const Transform& _obj2world, const Transform& _world2obj)
: obj2world(_obj2world), world2obj(_world2obj) {}
virtual bool intersect(const Ray&... | 21.095238 | 96 | 0.744921 | Seek |
dd9580ba95c9bba172b301598d64d952591acc61 | 5,797 | cpp | C++ | src/CGnuPlotStyleTreeMap.cpp | colinw7/CQGnuPlot | 8001b0a0d40c1fde8e5efe05ebe0c9b0541daa94 | [
"MIT"
] | null | null | null | src/CGnuPlotStyleTreeMap.cpp | colinw7/CQGnuPlot | 8001b0a0d40c1fde8e5efe05ebe0c9b0541daa94 | [
"MIT"
] | null | null | null | src/CGnuPlotStyleTreeMap.cpp | colinw7/CQGnuPlot | 8001b0a0d40c1fde8e5efe05ebe0c9b0541daa94 | [
"MIT"
] | 1 | 2019-04-01T13:08:45.000Z | 2019-04-01T13:08:45.000Z | #include <CGnuPlotStyleTreeMap.h>
#include <CGnuPlotStyleTreeMapPainter.h>
#include <CGnuPlotTreeMapStyleValue.h>
#include <CGnuPlotStyleValueMgr.h>
#include <CGnuPlotPlot.h>
#include <CGnuPlotGroup.h>
#include <CGnuPlotWindow.h>
#include <CGnuPlotRenderer.h>
#include <CGnuPlotKey.h>
#include <CGnuPlotRectObject.h>
#in... | 21.630597 | 92 | 0.566672 | colinw7 |
dd95abdeb0f787d3bf307ae0c9bc480f0806bdde | 14,374 | cpp | C++ | lisp.cpp | long-long-float/lisp-cpp | 436c3f5be8e02a43c153cb0a304a08bed2503d0c | [
"MIT"
] | null | null | null | lisp.cpp | long-long-float/lisp-cpp | 436c3f5be8e02a43c153cb0a304a08bed2503d0c | [
"MIT"
] | 8 | 2015-05-21T13:49:57.000Z | 2015-07-19T12:22:49.000Z | lisp.cpp | long-long-float/lisp-cpp | 436c3f5be8e02a43c153cb0a304a08bed2503d0c | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <iterator>
#include <string>
#include <sstream>
#include <vector>
#include <list>
#include <map>
#include <stack>
#include <typeinfo>
#include <stdexcept>
#include <cstdlib>
#include <ctype.h>
#include <dlfcn.h>
#include "lisp.h"
#define PRINT_LINE (std::cout << "line:... | 27.536398 | 132 | 0.500904 | long-long-float |
dd96b4bed6fa2b33e921124d6bd639f6628b9172 | 3,518 | cpp | C++ | MonoNative/mscorlib/System/Runtime/Serialization/Formatters/mscorlib_System_Runtime_Serialization_Formatters_IFieldInfo.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative/mscorlib/System/Runtime/Serialization/Formatters/mscorlib_System_Runtime_Serialization_Formatters_IFieldInfo.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative/mscorlib/System/Runtime/Serialization/Formatters/mscorlib_System_Runtime_Serialization_Formatters_IFieldInfo.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | #include <mscorlib/System/Runtime/Serialization/Formatters/mscorlib_System_Runtime_Serialization_Formatters_IFieldInfo.h>
#include <mscorlib/System/mscorlib_System_String.h>
#include <mscorlib/System/mscorlib_System_Type.h>
namespace mscorlib
{
namespace System
{
namespace Runtime
{
namespace Serialization
... | 46.906667 | 232 | 0.738772 | brunolauze |
dd993b542288e3e5d036714d60aebc403ba67f09 | 10,991 | cpp | C++ | CogWheelManager/cogwheelmanager.cpp | clockworkengineer/CogWheel | 9e1f67e6b45c9193c528c596c01684510986bbd0 | [
"MIT"
] | 1 | 2021-03-04T07:05:06.000Z | 2021-03-04T07:05:06.000Z | CogWheelManager/cogwheelmanager.cpp | clockworkengineer/CogWheel | 9e1f67e6b45c9193c528c596c01684510986bbd0 | [
"MIT"
] | null | null | null | CogWheelManager/cogwheelmanager.cpp | clockworkengineer/CogWheel | 9e1f67e6b45c9193c528c596c01684510986bbd0 | [
"MIT"
] | null | null | null | /*
* File: cogwheelmanager.cpp
*
* Author: Robert Tizzard
*
* Created on August 10, 2017
*
* Copyright 2017.
*
*/
//
// Class: CogWheelManager
//
// Description: Class to open up a local socket to server and send commands
// to control it. At present this is just stop, start and kill. It also supports
// co... | 22.897917 | 149 | 0.685561 | clockworkengineer |
dd9ee8829fdfde6e1febff2a3843705c52838dc1 | 540 | cpp | C++ | source/476.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | 2 | 2017-02-28T11:39:13.000Z | 2019-12-07T17:23:20.000Z | source/476.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | source/476.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | //
// 476.cpp
// LeetCode
//
// Created by Narikbi on 15.02.17.
// Copyright © 2017 app.leetcode.kz. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <deque>
#include <queue>
#include <set>
using namespace std;
int findComplement(int... | 14.594595 | 58 | 0.585185 | narikbi |
dd9fd231b65c903c2ec0d15f77801eb7340660c9 | 2,467 | cpp | C++ | StackedPlot/src/StackedPlot.cpp | ofnode/openFrameworksDemos | ae7d2f9f43884ef54bec44420994c49e2bf8081a | [
"MIT"
] | 75 | 2015-02-03T14:42:44.000Z | 2021-09-17T00:54:56.000Z | StackedPlot/src/StackedPlot.cpp | ofnode/openFrameworksDemos | ae7d2f9f43884ef54bec44420994c49e2bf8081a | [
"MIT"
] | 1 | 2016-11-15T16:02:21.000Z | 2016-11-15T16:02:21.000Z | StackedPlot/src/StackedPlot.cpp | ofnode/openFrameworksDemos | ae7d2f9f43884ef54bec44420994c49e2bf8081a | [
"MIT"
] | 16 | 2015-05-05T19:17:09.000Z | 2018-08-15T11:57:46.000Z | #include "StackedPlot.h"
float sum(const vector<float>& x) {
float sum = 0;
for(int i = 0; i < x.size(); i++) {
sum += x[i];
}
return sum;
}
vector<float> divide(const vector<float>& x, float y) {
vector<float> out = x;
for(int i = 0; i < out.size(); i++) {
out[i] /= y;
}
... | 26.815217 | 93 | 0.566275 | ofnode |
dda031ae4dd3480aa28c59c63fd348dfdc237587 | 1,654 | hh | C++ | src/gmm/test/src/util.hh | juliia5m/knu_voice | 1f5d150ded23af4c152b8d20f1ab4ecec77b40e1 | [
"Apache-2.0"
] | 717 | 2015-01-03T15:25:46.000Z | 2022-03-30T12:45:45.000Z | src/gmm/test/src/util.hh | juliia5m/knu_voice | 1f5d150ded23af4c152b8d20f1ab4ecec77b40e1 | [
"Apache-2.0"
] | 91 | 2015-03-19T09:25:23.000Z | 2021-05-19T08:51:26.000Z | src/gmm/test/src/util.hh | juliia5m/knu_voice | 1f5d150ded23af4c152b8d20f1ab4ecec77b40e1 | [
"Apache-2.0"
] | 315 | 2015-01-21T00:06:00.000Z | 2022-03-29T08:13:36.000Z | /*
* $File: util.hh
* $Date: Tue Dec 24 16:46:50 2013 +0800
* $Author: Xinyu Zhou <zxytim[at]gmail[dot]com>
*/
#pragma once
#include "type.hh"
#include <cassert>
#include <vector>
using namespace std;
#if 0
static vector<real_t> random_vector(int dim, real_t range, Random &random) {
vector<real_t> vec(dim);
... | 21.480519 | 87 | 0.598549 | juliia5m |
dda15b7babae2a15026a40c6a11f656342cf1193 | 2,074 | cpp | C++ | src/new/15/const_nontype.cpp | dendisuhubdy/Cplusplus17 | 420528c2a0f8a4217fcc3865b8cfd1bc71bb00e0 | [
"MIT"
] | null | null | null | src/new/15/const_nontype.cpp | dendisuhubdy/Cplusplus17 | 420528c2a0f8a4217fcc3865b8cfd1bc71bb00e0 | [
"MIT"
] | null | null | null | src/new/15/const_nontype.cpp | dendisuhubdy/Cplusplus17 | 420528c2a0f8a4217fcc3865b8cfd1bc71bb00e0 | [
"MIT"
] | null | null | null | /*
Copyright (C) 2018 Adrian D. Finlay. All rights reserved.
Licensed under the MIT 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
https://opensource.org/licenses/MIT
Permission is hereby granted, free of charge, to a... | 29.628571 | 84 | 0.694311 | dendisuhubdy |
dda71c28946be2810cbe221ba910d79539da460f | 777 | cpp | C++ | cpp/ql/src/jsf/4.16 Initialization/AV Rule 145.cpp | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 4,036 | 2020-04-29T00:09:57.000Z | 2022-03-31T14:16:38.000Z | cpp/ql/src/jsf/4.16 Initialization/AV Rule 145.cpp | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 2,970 | 2020-04-28T17:24:18.000Z | 2022-03-31T22:40:46.000Z | cpp/ql/src/jsf/4.16 Initialization/AV Rule 145.cpp | ScriptBox99/github-codeql | 2ecf0d3264db8fb4904b2056964da469372a235c | [
"MIT"
] | 794 | 2020-04-29T00:28:25.000Z | 2022-03-30T08:21:46.000Z | //wrong: inconsistent initialization, only the first should be initialized,
//or all should be initialized
enum {
VALUE_SHOULD_BE_10 = 10,
VALUE_SHOULD_BE_11,
VALUE_SHOULD_BE_12,
VALUE_SHOULD_BE_20, //newly added member, but initialization was forgotten
//(would have a value of 13 instead of ... | 32.375 | 76 | 0.705277 | vadi2 |
dda9427c9fa1a4c593603a7086ed63a8093483af | 6,677 | cc | C++ | chromium/components/html_viewer/media_factory.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/components/html_viewer/media_factory.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/components/html_viewer/media_factory.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | // 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 "components/html_viewer/media_factory.h"
#include <stdint.h>
#include <utility>
#include "base/bind.h"
#include "base/command_line.h"
#include ... | 35.515957 | 80 | 0.741051 | wedataintelligence |
ddaa6de0dc09a0c6d7d70588bc8a9f476b6cbf0f | 397 | hpp | C++ | include/bus.hpp | c1m5j/bpp | 669220ebfbee57822028d13fa3a5a48a3e73ee85 | [
"MIT"
] | 2 | 2021-07-30T14:46:04.000Z | 2021-07-30T14:58:52.000Z | include/bus.hpp | c1m5j/bpp | 669220ebfbee57822028d13fa3a5a48a3e73ee85 | [
"MIT"
] | 2 | 2021-07-30T13:13:18.000Z | 2021-07-30T13:42:50.000Z | include/bus.hpp | c1m5j/bpp | 669220ebfbee57822028d13fa3a5a48a3e73ee85 | [
"MIT"
] | 1 | 2021-07-30T13:03:12.000Z | 2021-07-30T13:03:12.000Z | #pragma once
/**
* A simple "system bus" which allows for interconnection between
* components, saving us passing pointers or references to each
* other every function call.
*/
class CPU;
class Display;
class Audio;
class Memory;
class Input;
class Bus {
public:
Bus();
~Bus();
Memory* memory;
C... | 15.88 | 65 | 0.649874 | c1m5j |
ddaacbf4ec547517cf530554fbd7ce84c4d8b456 | 1,271 | cpp | C++ | solutions/LeetCode/C++/581.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | solutions/LeetCode/C++/581.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | solutions/LeetCode/C++/581.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 16 ms submission
#include <bits/stdc++.h>
using namespace std;
static const auto io_sync_off = []() {
// turn off sync
std::ios::sync_with_stdio(false);
// untie in/out streams
cin.tie(NULL);
r... | 26.479167 | 98 | 0.553108 | timxor |
ddb03f42dad03a78297ba5d8b2dba95d500edf0a | 218 | cpp | C++ | B-CPP-300-LYN-3-1-CPPrush2/src/TOY_main.cpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | 2 | 2022-02-07T12:44:51.000Z | 2022-02-08T12:04:08.000Z | B-CPP-300-LYN-3-1-CPPrush2/src/TOY_main.cpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | null | null | null | B-CPP-300-LYN-3-1-CPPrush2/src/TOY_main.cpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | 1 | 2022-01-23T21:26:06.000Z | 2022-01-23T21:26:06.000Z | /*
** EPITECH PROJECT, 2020
** B-CPP-300-LYN-3-1-CPPrush2-
** File description:
** TOY_main.cpp
*/
#include <iostream>
#include "Toy/Toy.hpp"
#include "Teddy/Teddy.hpp"
int main()
{
Toy toy();
return (0);
} | 12.111111 | 30 | 0.619266 | Neotoxic-off |
ddb3097015a120c4d0ae3b76f584c561ff429374 | 1,315 | hpp | C++ | src/fixie_lib/null_impl/context.hpp | vonture/fixie | 7fa1a6787ae26ee141a906fe39fb85c2e3cf4dfc | [
"MIT"
] | 7 | 2015-01-09T22:08:17.000Z | 2021-10-12T10:32:58.000Z | src/fixie_lib/null_impl/context.hpp | vonture/fixie | 7fa1a6787ae26ee141a906fe39fb85c2e3cf4dfc | [
"MIT"
] | 1 | 2015-08-19T07:51:53.000Z | 2015-08-19T07:51:53.000Z | src/fixie_lib/null_impl/context.hpp | vonture/fixie | 7fa1a6787ae26ee141a906fe39fb85c2e3cf4dfc | [
"MIT"
] | 5 | 2015-08-20T07:10:23.000Z | 2022-03-24T07:09:10.000Z | #ifndef _FIXIE_LIB_NULL_CONTEXT_HPP_
#define _FIXIE_LIB_NULL_CONTEXT_HPP_
#include "fixie_lib/context.hpp"
namespace fixie
{
namespace null_impl
{
class context : public fixie::context_impl
{
public:
virtual const fixie::caps& caps() override;
virtual const std:... | 36.527778 | 132 | 0.686692 | vonture |
ddb8bcdacd964307ac28b9d0f1370849e41251de | 3,273 | cc | C++ | src/iconv_file.cc | DavisVaughan/vroom | d1799d51197f1631c38aa28f461f172bec6ca24e | [
"MIT"
] | 385 | 2019-04-28T10:07:52.000Z | 2022-03-30T21:32:21.000Z | src/iconv_file.cc | DavisVaughan/vroom | d1799d51197f1631c38aa28f461f172bec6ca24e | [
"MIT"
] | 328 | 2019-04-26T08:40:37.000Z | 2022-03-31T15:54:58.000Z | src/iconv_file.cc | DavisVaughan/vroom | d1799d51197f1631c38aa28f461f172bec6ca24e | [
"MIT"
] | 53 | 2019-05-08T10:27:32.000Z | 2022-02-04T20:18:34.000Z | #include <cerrno>
#include <cpp11/R.hpp>
#include "R_ext/Riconv.h"
#include "connection.h"
#define VROOM_BUFSIZ 1024
// Adapted from
// https://www.gnu.org/software/libc/manual/html_node/iconv-Examples.html
[[cpp11::register]] size_t convert_connection(
SEXP in_con, SEXP out_con, const std::string& from, const... | 24.425373 | 80 | 0.58509 | DavisVaughan |
ddc1c869618ff0a13d652fe6fd3d26f1dba5bf16 | 10,834 | hpp | C++ | example/ccana/source/ProjectConeETCC.hpp | goroyabu/anlpy | 2d5d65b898d31d69f990e973cbfdbabd8cb0a15c | [
"MIT"
] | null | null | null | example/ccana/source/ProjectConeETCC.hpp | goroyabu/anlpy | 2d5d65b898d31d69f990e973cbfdbabd8cb0a15c | [
"MIT"
] | null | null | null | example/ccana/source/ProjectConeETCC.hpp | goroyabu/anlpy | 2d5d65b898d31d69f990e973cbfdbabd8cb0a15c | [
"MIT"
] | null | null | null | /***
@file ProjectConeETCC.hpp
@date
@author User
@detail Automatically generated by mkanlproject
***/
#ifndef ProjectConeETCC_hpp
#define ProjectConeETCC_hpp
#include <tuple>
#include <TFile.h>
#include <TTree.h>
#include <TH2D.h>
#include <TH3F.h>
#include <TMath.h>
#include <TVector3.h>
#include... | 30.866097 | 135 | 0.53729 | goroyabu |
ddcfac6bbb06a1712fc7b742efe68a75f9acc3da | 3,420 | hxx | C++ | Modules/Core/include/selxInterfaceAcceptor.hxx | FBerendsen/SuperElastix-1 | 69d97589e34f6f2109621e917792ce18e32442fe | [
"Apache-2.0"
] | null | null | null | Modules/Core/include/selxInterfaceAcceptor.hxx | FBerendsen/SuperElastix-1 | 69d97589e34f6f2109621e917792ce18e32442fe | [
"Apache-2.0"
] | null | null | null | Modules/Core/include/selxInterfaceAcceptor.hxx | FBerendsen/SuperElastix-1 | 69d97589e34f6f2109621e917792ce18e32442fe | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
*
* Copyright Leiden University Medical Center, Erasmus University Medical
* Center and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License... | 42.222222 | 178 | 0.724854 | FBerendsen |
ddd1809dc7cf496b788d57f4a944a97ef47c5ff6 | 1,023 | cpp | C++ | hanse_ros/hanse_sonardriver/src/sonarvisualize.cpp | iti-luebeck/HANSE2012 | fd2348823a6a51baf87cd493529f085fb22d65a7 | [
"BSD-3-Clause"
] | null | null | null | hanse_ros/hanse_sonardriver/src/sonarvisualize.cpp | iti-luebeck/HANSE2012 | fd2348823a6a51baf87cd493529f085fb22d65a7 | [
"BSD-3-Clause"
] | null | null | null | hanse_ros/hanse_sonardriver/src/sonarvisualize.cpp | iti-luebeck/HANSE2012 | fd2348823a6a51baf87cd493529f085fb22d65a7 | [
"BSD-3-Clause"
] | null | null | null | #include "sonarvisualize.h"
SonarVisualize::SonarVisualize(ros::NodeHandle handle) :
nh(handle),
subscriber(handle.subscribe("/hanse/sonar/scan", 1, &SonarVisualize::callback, this))
{
}
void SonarVisualize::tick()
{
}
void SonarVisualize::callback(const hanse_msgs::ScanningSonar &msg)
{
const char gradi... | 22.733333 | 103 | 0.580645 | iti-luebeck |
ddd195ddee54fef8548a5ff20e469dddfb4fc1de | 622 | cpp | C++ | Vijos/1439.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | Vijos/1439.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | Vijos/1439.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include<cstdio>
#include<algorithm>
using namespace std;
struct Type
{
int x, y;
} a[50001];
int n, l, r;
bool my_comp(const Type &a, const Type &b)
{
if (a.x < b.x) return 1;
if (a.x > b.x) return 0;
if (a.y < b.y) return 1;
return 0;
}
int main()
{
//freopen("p1.in","r",stdin);
scanf("%d", &n);
for (int i = ... | 16.810811 | 42 | 0.485531 | HeRaNO |
ddd5485ec2014ef8726a59d2ea05c183c3ee4222 | 6,049 | cpp | C++ | ylang/source/compiler/yssa_constfold.cpp | edmundmk/ylang | d8744052bb33fd98fc02bd0c6e9fb476e6cd259c | [
"MIT"
] | 1 | 2016-01-09T16:02:41.000Z | 2016-01-09T16:02:41.000Z | ylang/source/compiler/yssa_constfold.cpp | edmundmk/ylang | d8744052bb33fd98fc02bd0c6e9fb476e6cd259c | [
"MIT"
] | null | null | null | ylang/source/compiler/yssa_constfold.cpp | edmundmk/ylang | d8744052bb33fd98fc02bd0c6e9fb476e6cd259c | [
"MIT"
] | null | null | null | //
// yssa_constfold.cpp
//
// Created by Edmund Kapusniak on 26/03/2015.
// Copyright (c) 2015 Edmund Kapusniak. All rights reserved.
//
#include "yssa_constfold.h"
#include <divmod.h>
#include "yssa.h"
static void yssa_constfold_op( yssa_module* module, yssa_opinst* op );
static yssa_opinst* yssa_fold_refs( ys... | 25.961373 | 77 | 0.465697 | edmundmk |
ddd5fb6e4ea41bd31b154deebfa8f86578457d44 | 264 | cpp | C++ | circuits/nor2.cpp | Ignotus/circuitmod | 6e2b0c949df9c40e77d56f5fc0e890a54e1c7a17 | [
"BSD-2-Clause"
] | null | null | null | circuits/nor2.cpp | Ignotus/circuitmod | 6e2b0c949df9c40e77d56f5fc0e890a54e1c7a17 | [
"BSD-2-Clause"
] | null | null | null | circuits/nor2.cpp | Ignotus/circuitmod | 6e2b0c949df9c40e77d56f5fc0e890a54e1c7a17 | [
"BSD-2-Clause"
] | null | null | null | #include "nor2.h"
DECLARE_CIRCUIT_CLASS_IMPL(NOr2)
{
setState(key("Q"), !(state(key("A")) || state(key("B"))));
}
template<>
void declareIO<NOr2>(IConfig& config)
{
config.declareInput("A");
config.declareInput("B");
config.declareOutput("Q");
}
| 17.6 | 62 | 0.636364 | Ignotus |
dddbc0d10bdc7eabcbad35bad7b1eccf4d54ebd0 | 2,911 | cpp | C++ | modules/tachyon/Loc.cpp | mathstuf/ospray | 5c34884317b5bb84346e4e1e2e2bf8c7f50d307c | [
"Apache-2.0"
] | 1 | 2016-05-24T19:27:01.000Z | 2016-05-24T19:27:01.000Z | modules/tachyon/Loc.cpp | mathstuf/ospray | 5c34884317b5bb84346e4e1e2e2bf8c7f50d307c | [
"Apache-2.0"
] | null | null | null | modules/tachyon/Loc.cpp | mathstuf/ospray | 5c34884317b5bb84346e4e1e2e2bf8c7f50d307c | [
"Apache-2.0"
] | null | null | null | // ======================================================================== //
// Copyright 2009-2016 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | 33.45977 | 90 | 0.470972 | mathstuf |
dddc4b62fb7d0812d0e57d625619d5f7535eaa39 | 151 | hpp | C++ | MeetingCodes/Meeting4/Square.hpp | SubhoB/spectre-cpp-basics | 0f581b879e83e88d1491b31e22aa447419d471a3 | [
"MIT"
] | 15 | 2020-06-01T19:48:57.000Z | 2021-11-01T07:33:42.000Z | MeetingCodes/Meeting4/Square.hpp | SubhoB/spectre-cpp-basics | 0f581b879e83e88d1491b31e22aa447419d471a3 | [
"MIT"
] | 1 | 2020-06-02T02:43:41.000Z | 2020-06-02T03:55:50.000Z | MeetingCodes/Meeting4/Square.hpp | SubhoB/spectre-cpp-basics | 0f581b879e83e88d1491b31e22aa447419d471a3 | [
"MIT"
] | 6 | 2020-06-23T22:36:56.000Z | 2021-06-14T14:46:49.000Z | #pragma once
#include "Rectangle.hpp"
class Square : public Rectangle {
public:
Square(double length) noexcept;
double Perimeter() noexcept;
};
| 15.1 | 33 | 0.728477 | SubhoB |
dddeeaf6474b1f0cfe3eec6b030994d2bf4b3cf1 | 2,603 | cc | C++ | src/simplesat/bin_algebra/binary_op.cc | evmaus/ClusterSAT | d26ff539fe9789611e9ecd8ef5c14a19e150105b | [
"Apache-2.0"
] | null | null | null | src/simplesat/bin_algebra/binary_op.cc | evmaus/ClusterSAT | d26ff539fe9789611e9ecd8ef5c14a19e150105b | [
"Apache-2.0"
] | null | null | null | src/simplesat/bin_algebra/binary_op.cc | evmaus/ClusterSAT | d26ff539fe9789611e9ecd8ef5c14a19e150105b | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
//
// 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 to in ... | 25.772277 | 78 | 0.644257 | evmaus |
50b1c8f16f2e0d6abd5a9e3ebb51eb4d0f0aab5b | 264 | cc | C++ | poj/1004/1004.cc | punkieL/proCon | 7e994d67e5efdf7ac0b1bee5e0b19b317f07e8af | [
"MIT"
] | 1 | 2015-10-06T16:27:42.000Z | 2015-10-06T16:27:42.000Z | poj/1004/1004.cc | punkieL/proCon | 7e994d67e5efdf7ac0b1bee5e0b19b317f07e8af | [
"MIT"
] | 1 | 2016-03-02T16:18:11.000Z | 2016-03-02T16:18:11.000Z | poj/1004/1004.cc | punkieL/proCon | 7e994d67e5efdf7ac0b1bee5e0b19b317f07e8af | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
using namespace std;
int main(void){
double balance;
double sum=0;
double average;
for(int i=0;i<12;i++){
cin >> balance;
sum += balance;
}
printf("$%.2f\n",sum/12);
return 0;
}
| 14.666667 | 29 | 0.549242 | punkieL |
50b45c10d785f44c98c6d89637b444c06d2f50c0 | 5,293 | cc | C++ | misc.cc | stealth/loaded | cebc149cdbdf2f1f21037518888f4c118adcc2dd | [
"BSD-4-Clause"
] | 4 | 2015-03-29T00:19:29.000Z | 2021-04-13T17:25:47.000Z | misc.cc | stealth/loaded | cebc149cdbdf2f1f21037518888f4c118adcc2dd | [
"BSD-4-Clause"
] | null | null | null | misc.cc | stealth/loaded | cebc149cdbdf2f1f21037518888f4c118adcc2dd | [
"BSD-4-Clause"
] | 2 | 2015-05-19T09:35:55.000Z | 2016-01-28T09:46:45.000Z | #include <cstdio>
#include <cerrno>
#include <stdint.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <unistd.h>
#include <map>
#include <sched.h>
#include "packet.h"
#include "strategy.h"
#include "config.h"
namespace loaded {
using namespace std;
unsigned short in_cksum (unsigned short *ptr, int nbytes)... | 21.51626 | 78 | 0.587191 | stealth |
50b675201c7d188aad4c09b66a394a2395df1a5c | 533 | cpp | C++ | BOJ_CPP/24077.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/24077.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/24077.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
using namespace std;
int main() {
fastio;
int n, m, cnt = 0;
cin >> n >> m;
vector<int> v1(n), v2(m);
for (int i = 0; i < n; ++i) {
cin >> v1[i];
}
for (int i = 0; i < m; ++i) {
cin >> ... | 22.208333 | 63 | 0.439024 | tnsgh9603 |
50b84f39d65a3bd9bac300b4c4806aeb027dea70 | 2,283 | cpp | C++ | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/osgParticle/IO_FluidProgram.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 3 | 2018-08-20T12:12:43.000Z | 2021-06-06T09:43:27.000Z | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/osgParticle/IO_FluidProgram.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | null | null | null | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/osgParticle/IO_FluidProgram.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 1 | 2022-03-31T03:12:23.000Z | 2022-03-31T03:12:23.000Z |
#include <osgParticle/FluidProgram>
#include <osgParticle/Operator>
#include <iostream>
#include <osg/Vec3>
#include <osg/io_utils>
#include <osgDB/Registry>
#include <osgDB/Input>
#include <osgDB/Output>
bool FluidProgram_readLocalData(osg::Object &obj, osgDB::Input &fr);
bool FluidProgram_writeLocalData(const ... | 25.366667 | 97 | 0.588699 | UM-ARM-Lab |
50b8f112a33092ee70dad539ab269c595c844fe8 | 3,876 | cpp | C++ | source/Irrlicht/CFileList.cpp | flaithbheartaigh/mirrlicht | ccc16e8f5465fb72e81ae986e56ef2e4c3e7654b | [
"IJG"
] | null | null | null | source/Irrlicht/CFileList.cpp | flaithbheartaigh/mirrlicht | ccc16e8f5465fb72e81ae986e56ef2e4c3e7654b | [
"IJG"
] | null | null | null | source/Irrlicht/CFileList.cpp | flaithbheartaigh/mirrlicht | ccc16e8f5465fb72e81ae986e56ef2e4c3e7654b | [
"IJG"
] | null | null | null | // Copyright (C) 2002-2007 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "CFileList.h"
#include "IrrCompileConfig.h"
#include "irrArray.h"
#include <stdlib.h>
namespace irr
{
namespace io
{
#if (de... | 21.296703 | 90 | 0.625903 | flaithbheartaigh |
50ba02646733afe87ea2144e5758957ea3201b57 | 223 | hpp | C++ | src/include/parser/tableref/list.hpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | 1 | 2019-08-01T08:21:33.000Z | 2019-08-01T08:21:33.000Z | src/include/parser/tableref/list.hpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | null | null | null | src/include/parser/tableref/list.hpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | null | null | null | #include "parser/tableref/basetableref.hpp"
#include "parser/tableref/crossproductref.hpp"
#include "parser/tableref/joinref.hpp"
#include "parser/tableref/subqueryref.hpp"
#include "parser/tableref/table_function_ref.hpp"
| 37.166667 | 49 | 0.820628 | mweisgut |
50bb37010b287fc36a8e0aca0b48cefd79a55e13 | 1,217 | cpp | C++ | alternatives/ch5/pn06.cpp | alex-w/iers2010 | 0bb0f5862e0536cadd31b04a4fb70f9d87b758b9 | [
"WTFPL"
] | 2 | 2021-06-01T15:15:22.000Z | 2021-06-22T08:45:54.000Z | alternatives/ch5/pn06.cpp | alex-w/iers2010 | 0bb0f5862e0536cadd31b04a4fb70f9d87b758b9 | [
"WTFPL"
] | 2 | 2015-01-29T21:36:59.000Z | 2020-05-12T10:15:21.000Z | alternatives/ch5/pn06.cpp | alex-w/iers2010 | 0bb0f5862e0536cadd31b04a4fb70f9d87b758b9 | [
"WTFPL"
] | 4 | 2015-05-24T04:49:45.000Z | 2021-12-07T10:47:48.000Z | #include "iau.hpp"
#include "iersc.hpp"
void iers2010::sofa::pn06(double date1, double date2, double dpsi, double deps,
double &epsa, iers2010::RotationMatrix3 &rb,
iers2010::RotationMatrix3 &rp,
iers2010::RotationMatrix3 &rbp,
... | 32.891892 | 80 | 0.61627 | alex-w |
50bcba3f3ddaf546a63f076f116a9318c3cb6709 | 1,714 | cpp | C++ | kernel/graphics/virtiogpu/GraphicsAdapter.cpp | emacodes/pranaOS | 963f2b5940ea94b153cf36780097740654fe6acd | [
"BSD-2-Clause"
] | null | null | null | kernel/graphics/virtiogpu/GraphicsAdapter.cpp | emacodes/pranaOS | 963f2b5940ea94b153cf36780097740654fe6acd | [
"BSD-2-Clause"
] | null | null | null | kernel/graphics/virtiogpu/GraphicsAdapter.cpp | emacodes/pranaOS | 963f2b5940ea94b153cf36780097740654fe6acd | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2021, Krisna Pranav
*
* SPDX-License-Identifier: BSD-2-Clause
*/
// includes
#include <kernel/bus/pci/IDs.h>
#include <kernel/graphics/console/GenericFramebufferConsole.h>
#include <kernel/graphics/GraphicsManagement.h>
#include <kernel/graphics/virtiogpu/GPU.h>
#include <kernel/graphics/virtiogp... | 29.050847 | 85 | 0.740373 | emacodes |
50c9f97b2a9d4b5c7f80d461d5fbb92b7edcc284 | 1,232 | hpp | C++ | src/Pipeline/SpirvBinary.hpp | tonyh-fff/swiftshader | f354daff5a2b882fc182c8377c826aa99b30f989 | [
"Apache-2.0"
] | 1,570 | 2016-06-30T10:40:04.000Z | 2022-03-31T01:47:33.000Z | src/Pipeline/SpirvBinary.hpp | tonyh-fff/swiftshader | f354daff5a2b882fc182c8377c826aa99b30f989 | [
"Apache-2.0"
] | 9 | 2017-01-16T07:09:08.000Z | 2020-08-25T18:28:59.000Z | src/Pipeline/SpirvBinary.hpp | tonyh-fff/swiftshader | f354daff5a2b882fc182c8377c826aa99b30f989 | [
"Apache-2.0"
] | 253 | 2016-06-30T18:57:10.000Z | 2022-03-25T03:57:40.000Z | // Copyright 2021 The SwiftShader 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... | 28 | 90 | 0.760552 | tonyh-fff |
50ca3443df3eb4d350b7a9da3a3671c62ced502b | 9,333 | cc | C++ | src/atlas/grid/detail/grid/LonLat.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 67 | 2018-03-01T06:56:49.000Z | 2022-03-08T18:44:47.000Z | src/atlas/grid/detail/grid/LonLat.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 93 | 2018-12-07T17:38:04.000Z | 2022-03-31T10:04:51.000Z | src/atlas/grid/detail/grid/LonLat.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 33 | 2018-02-28T17:06:19.000Z | 2022-01-20T12:12:27.000Z | /*
* (C) Copyright 2013 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergo... | 30.400651 | 119 | 0.525019 | twsearle |
50cb1bc0ff3488fb4ef3addee40f236cea45ac30 | 299 | cpp | C++ | ch03/SpeedPubSub/Publisher.cpp | PacktPublishing/Hands-On-Design-Patterns-with-Qt-5 | 00f3f7de9ce75f86e056bf9be942d169bb96d7ff | [
"MIT"
] | 12 | 2018-11-25T23:55:42.000Z | 2021-11-10T09:48:44.000Z | ch03/SpeedPubSub/Publisher.cpp | PacktPublishing/Hands-On-Design-Patterns-with-Qt-5- | 00f3f7de9ce75f86e056bf9be942d169bb96d7ff | [
"MIT"
] | null | null | null | ch03/SpeedPubSub/Publisher.cpp | PacktPublishing/Hands-On-Design-Patterns-with-Qt-5- | 00f3f7de9ce75f86e056bf9be942d169bb96d7ff | [
"MIT"
] | 5 | 2019-12-24T20:08:09.000Z | 2020-08-13T12:21:11.000Z | #include "Publisher.h"
Publisher::Publisher()
: m_broker(nullptr)
{
// empty method
}
Broker *Publisher::broker() const
{
return m_broker;
}
void Publisher::setBroker(Broker *broker)
{
m_broker = broker;
}
void Publisher::notify(Topic a_topic)
{
m_broker->notify(a_topic);
}
| 13 | 41 | 0.672241 | PacktPublishing |
50cbafb3bc65294adbb2731387d65e812e06c998 | 4,844 | cpp | C++ | Source/WebKit/WebProcess/GPU/media/ios/RemoteMediaSessionHelper.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Source/WebKit/WebProcess/GPU/media/ios/RemoteMediaSessionHelper.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Source/WebKit/WebProcess/GPU/media/ios/RemoteMediaSessionHelper.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2020 Apple 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 a... | 34.35461 | 143 | 0.780347 | jacadcaps |
50d159bbdb8f8e1ddc881f3506cb339555eac873 | 129 | inl | C++ | dependencies/glm/detail/func_geometric_simd.inl | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/glm/detail/func_geometric_simd.inl | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/glm/detail/func_geometric_simd.inl | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:3bce881d22b8d93090c786528e69892a0cf9fb1b0de6062d544685b1fdb37fb9
size 2693
| 32.25 | 75 | 0.883721 | realtehcman |
50d19e677be795d7922c7a5eb2835ee93213912f | 1,172 | cc | C++ | SimG4CMS/Calo/src/CaloDetInfo.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | SimG4CMS/Calo/src/CaloDetInfo.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | SimG4CMS/Calo/src/CaloDetInfo.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "SimG4CMS/Calo/interface/CaloDetInfo.h"
#include <iomanip>
CaloDetInfo::CaloDetInfo(
uint32_t id, uint32_t d, double r, const std::string& name, G4ThreeVector pos, const G4VSolid* solid, bool flag)
: id_(id), depth_(d), rho_(r), name_(name), pos_(pos), solid_(solid), flag_(flag) {}
CaloDetInfo::Calo... | 30.051282 | 116 | 0.614334 | ckamtsikis |
50d5756eeb67ec607a2648d89f278c01cb172ad1 | 3,808 | cpp | C++ | OpenGLBasics/Camera.cpp | LensPlaysGames/CMake_OpenGLBasics | 59e818b01376b6e72646245d2affbcc430489f81 | [
"MIT"
] | null | null | null | OpenGLBasics/Camera.cpp | LensPlaysGames/CMake_OpenGLBasics | 59e818b01376b6e72646245d2affbcc430489f81 | [
"MIT"
] | null | null | null | OpenGLBasics/Camera.cpp | LensPlaysGames/CMake_OpenGLBasics | 59e818b01376b6e72646245d2affbcc430489f81 | [
"MIT"
] | null | null | null | #include "Camera.h"
#include "Timer.h"
#include <glm/ext/matrix_transform.hpp>
#include <glm/ext/matrix_clip_space.hpp>
#include <glm/gtc/type_ptr.hpp>
Camera::Camera(int width, int height, glm::vec3 position) {
Width = width;
Height = height;
Position = position;
}
void Camera::Update(GLFWwindow* window... | 40.946237 | 114 | 0.646534 | LensPlaysGames |
50d9337412843699c486fa3411a5286facd8528c | 64,635 | cpp | C++ | test/unit/api/memory.cpp | samuel100u/oneVPL-cpu | 7b7efd66edd099801b1c7a4edb45d5494ec67d7e | [
"MIT"
] | 12 | 2020-10-27T15:10:08.000Z | 2022-03-22T06:27:36.000Z | test/unit/api/memory.cpp | samuel100u/oneVPL-cpu | 7b7efd66edd099801b1c7a4edb45d5494ec67d7e | [
"MIT"
] | 8 | 2020-11-04T07:17:15.000Z | 2022-02-05T00:52:55.000Z | test/unit/api/memory.cpp | samuel100u/oneVPL-cpu | 7b7efd66edd099801b1c7a4edb45d5494ec67d7e | [
"MIT"
] | 5 | 2021-01-28T19:23:26.000Z | 2022-03-24T17:50:31.000Z | /*############################################################################
# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT
############################################################################*/
#include <gtest/gtest.h>
#include "api/test_bitstreams.h"
#include "vpl/mfxjpeg.h... | 33.265569 | 102 | 0.717769 | samuel100u |
50dada853c87460b2d0f714b4825e9135c6b0a78 | 804 | cpp | C++ | MesaDeRestaurante.cpp | nathaliamoreno/R2Q1-Lab-LP | eaf67f43838e92a5170d3efd1a9680b8670650aa | [
"Apache-2.0"
] | null | null | null | MesaDeRestaurante.cpp | nathaliamoreno/R2Q1-Lab-LP | eaf67f43838e92a5170d3efd1a9680b8670650aa | [
"Apache-2.0"
] | null | null | null | MesaDeRestaurante.cpp | nathaliamoreno/R2Q1-Lab-LP | eaf67f43838e92a5170d3efd1a9680b8670650aa | [
"Apache-2.0"
] | null | null | null | #include "MesaDeRestaurante.h"
#include <iostream>
using namespace std;
MesaDeRestaurante::MesaDeRestaurante(){
iAtual = 0;
}
void MesaDeRestaurante::adicionaAoPedido(Pedido p){
int i,q;
std::string str1, str2;
str2 = p.getDescricao();
for(i = 0; i < iAtual; i++){
str1 = pedido[i].getDescri... | 22.971429 | 66 | 0.575871 | nathaliamoreno |
50dbdc77dce0137632a7e18a6031fd238117e405 | 6,070 | cpp | C++ | Circuit/KeyboardView.cpp | Wang-Yue/Circu | a194bb904f9debab35d24eecb53c091556c17cd6 | [
"BSD-3-Clause"
] | 8 | 2018-08-24T01:31:38.000Z | 2021-03-01T14:57:59.000Z | Circuit/KeyboardView.cpp | Wang-Yue/Circu | a194bb904f9debab35d24eecb53c091556c17cd6 | [
"BSD-3-Clause"
] | 1 | 2019-12-08T13:43:19.000Z | 2019-12-13T03:36:16.000Z | Circuit/KeyboardView.cpp | Wang-Yue/Circuit | a194bb904f9debab35d24eecb53c091556c17cd6 | [
"BSD-3-Clause"
] | null | null | null | //
// KeyboardView.cpp
// CircuitApp
//
// Created by Yue Wang on 8/19/18.
// Copyright © 2018 Yue Wang. All rights reserved.
//
#include "KeyboardView.hpp"
#include "Pad.hpp"
#include "Scale.hpp"
#include <map>
static const Color kAvailableKeyColor(0x0000ffff);
static const Color kOctaveKeyColor(0x00ff00ff);
st... | 28.767773 | 92 | 0.635914 | Wang-Yue |
50dd032e62d19627d0574735eefe0cfb7a2408d0 | 100 | cpp | C++ | test/test_catch2/src/unit__failing_test.cpp | luisnuxx/formiga | 893a464eae3323ee6dcfe8c9c4b8f681783326c6 | [
"MIT"
] | 2 | 2018-02-18T20:11:00.000Z | 2019-12-01T14:21:19.000Z | test/test_catch2/src/unit__failing_test.cpp | luisnuxx/formiga | 893a464eae3323ee6dcfe8c9c4b8f681783326c6 | [
"MIT"
] | null | null | null | test/test_catch2/src/unit__failing_test.cpp | luisnuxx/formiga | 893a464eae3323ee6dcfe8c9c4b8f681783326c6 | [
"MIT"
] | null | null | null |
TEST_CASE( "stupid/1=2", "Prove that one equals 2" ){
int one = 1;
REQUIRE( one == 2 );
}
| 14.285714 | 53 | 0.54 | luisnuxx |
50e0ce3d3026acd3bf7438f3d1b07a3b860b0be2 | 6,360 | cpp | C++ | runtime/src/exc_engine/x64/unwind_handler.cpp | Shtan7/KTL | 9c0adf8fac2f0bb481060b7bbb15b1356089af3c | [
"MIT"
] | 38 | 2020-12-16T22:12:50.000Z | 2022-03-24T04:07:14.000Z | runtime/src/exc_engine/x64/unwind_handler.cpp | Shtan7/KTL | 9c0adf8fac2f0bb481060b7bbb15b1356089af3c | [
"MIT"
] | 165 | 2020-11-11T21:22:23.000Z | 2022-03-26T14:30:40.000Z | runtime/src/exc_engine/x64/unwind_handler.cpp | Shtan7/KTL | 9c0adf8fac2f0bb481060b7bbb15b1356089af3c | [
"MIT"
] | 5 | 2021-07-16T19:05:28.000Z | 2021-12-22T11:46:42.000Z | #include <bugcheck.hpp>
#include <cpu_context.hpp>
#include <symbol.hpp>
#define BREAK_IF_FALSE(cond) \
if (!(cond)) \
break
EXTERN_C ktl::crt::exc_engine::symbol __ImageBase;
namespace ktl::crt::exc_engine::x64 {
namespace pe {
template <typename Ty>
struct dir_header {
/*0x00*/ relative_virtu... | 29.719626 | 80 | 0.652516 | Shtan7 |
50e213b3ce5d3ae10a274b4a78be5a3556f4e36a | 2,767 | cpp | C++ | src/hotspot/share/jfr/recorder/checkpoint/types/jfrThreadState.cpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | 2 | 2018-06-19T05:43:32.000Z | 2018-06-23T10:04:56.000Z | src/hotspot/share/jfr/recorder/checkpoint/types/jfrThreadState.cpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | src/hotspot/share/jfr/recorder/checkpoint/types/jfrThreadState.cpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | 33.337349 | 138 | 0.764727 | siweilxy |
50e470b20732df9ff68ed9cb8f249f7b39440a73 | 706 | cpp | C++ | Snake2QT/Snake.cpp | PaulinaGacek/SnakeGame | 34352fe6fd956d3319f75fa826aaa00a3560254e | [
"MIT"
] | null | null | null | Snake2QT/Snake.cpp | PaulinaGacek/SnakeGame | 34352fe6fd956d3319f75fa826aaa00a3560254e | [
"MIT"
] | null | null | null | Snake2QT/Snake.cpp | PaulinaGacek/SnakeGame | 34352fe6fd956d3319f75fa826aaa00a3560254e | [
"MIT"
] | null | null | null | //
// Created by pauli on 02.06.2021.
//
#include "Snake.h"
void Snake::set_tail_X(size_t index, int position) {
//if(index >= length)
//throw std::invalid_argument("Invalid index");
x[index] = position;
}
void Snake::set_tail_Y(size_t index, int position) {
//if(index >= length)
... | 22.774194 | 56 | 0.601983 | PaulinaGacek |
50e4803bcaf787f6b2a1838fcc2cdb55358c7851 | 1,195 | cpp | C++ | WebServer/EventLoopThread.cpp | sandychn/WebServer | 24fa15468cb733214acb1a8a55a87fe35512f0f3 | [
"MIT"
] | null | null | null | WebServer/EventLoopThread.cpp | sandychn/WebServer | 24fa15468cb733214acb1a8a55a87fe35512f0f3 | [
"MIT"
] | null | null | null | WebServer/EventLoopThread.cpp | sandychn/WebServer | 24fa15468cb733214acb1a8a55a87fe35512f0f3 | [
"MIT"
] | null | null | null | /*
* File: EventLoopThread.cpp
* Project: WebServer
* Author: Sandy
* Last Modified: 2020-10-30 19:57:39
*/
#include "EventLoopThread.h"
#include <functional>
EventLoopThread::EventLoopThread()
: loop_(nullptr),
exiting_(false),
thread_(std::bind(&EventLoopThread::threadFunc, this)... | 21.339286 | 81 | 0.569874 | sandychn |
50e843d7626b8f1d86417a69dc488eb726ddbd83 | 40,848 | hpp | C++ | src/AmsSort/GroupMsgToPeAssignment.hpp | mschimek/KaDiS | ac9c5755d325d1d373a188e6fc0733b12205a74d | [
"BSD-2-Clause"
] | 1 | 2019-04-26T15:50:58.000Z | 2019-04-26T15:50:58.000Z | src/AmsSort/GroupMsgToPeAssignment.hpp | mschimek/KaDiS | ac9c5755d325d1d373a188e6fc0733b12205a74d | [
"BSD-2-Clause"
] | null | null | null | src/AmsSort/GroupMsgToPeAssignment.hpp | mschimek/KaDiS | ac9c5755d325d1d373a188e6fc0733b12205a74d | [
"BSD-2-Clause"
] | null | null | null | /*****************************************************************************
* This file is part of the Project Karlsruhe Distributed Sorting Library
* (KaDiS).
*
* Copyright (c) 2019, Michael Axtmann <michael.axtmann@kit.edu>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with o... | 39.581395 | 185 | 0.55518 | mschimek |
50e8ee41caacdda0a250d42639c5595cf24aafe1 | 37 | cpp | C++ | examples/re2/foo.cpp | Costallat/hunter | dc0d79cb37b30cad6d6472d7143fe27be67e26d5 | [
"BSD-2-Clause"
] | 2,146 | 2015-01-10T07:26:58.000Z | 2022-03-21T02:28:01.000Z | examples/re2/foo.cpp | koinos/hunter | fc17bc391210bf139c55df7f947670c5dff59c57 | [
"BSD-2-Clause"
] | 1,778 | 2015-01-03T11:50:30.000Z | 2019-12-26T05:31:20.000Z | examples/re2/foo.cpp | koinos/hunter | fc17bc391210bf139c55df7f947670c5dff59c57 | [
"BSD-2-Clause"
] | 734 | 2015-03-05T19:52:34.000Z | 2022-02-22T23:18:54.000Z | #include <re2/re2.h>
int main() {
}
| 7.4 | 20 | 0.567568 | Costallat |
50e992e2cc69d4b7d46f7a26379fbd71862cff29 | 3,543 | hh | C++ | RAVL2/Image/Base/Font.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/Image/Base/Font.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/Image/Base/Font.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | // This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2001, University of Surrey
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here... | 26.840909 | 95 | 0.624047 | isuhao |
50eed212b41cb046cc33d295a986fbf26fb194e5 | 3,433 | cpp | C++ | Emoticon/EmoticonManager.cpp | qunarcorp/startalk_pc_v2 | 59d873ddcd41052d9a1379a9c35cb69075fcef3c | [
"MIT"
] | 30 | 2019-08-22T08:33:23.000Z | 2022-03-15T02:04:20.000Z | Emoticon/EmoticonManager.cpp | qunarcorp/startalk_pc_v2 | 59d873ddcd41052d9a1379a9c35cb69075fcef3c | [
"MIT"
] | 4 | 2019-12-11T08:18:55.000Z | 2021-03-19T07:23:50.000Z | Emoticon/EmoticonManager.cpp | qunarcorp/startalk_pc_v2 | 59d873ddcd41052d9a1379a9c35cb69075fcef3c | [
"MIT"
] | 19 | 2019-08-22T17:09:24.000Z | 2021-08-10T08:24:39.000Z | #include "EmoticonManager.h"
#include <QFrame>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QLabel>
#include <QToolButton>
#include <QPushButton>
#include <QMouseEvent>
#include "LocalEmoticon.h"
#include "NetEmoticon.h"
#define DEM_FIXED_WIDTH 630
#define DEM_FIXED_HEIGHT 560
//
EmoticonTitleBar::Emotico... | 29.09322 | 85 | 0.751238 | qunarcorp |
50f16c9f117feea7f818c848e97a6858af08f2a0 | 1,568 | cpp | C++ | LeetCode/C++/General/Medium/RecoverBinarySearchTree/solution.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | LeetCode/C++/General/Medium/RecoverBinarySearchTree/solution.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | LeetCode/C++/General/Medium/RecoverBinarySearchTree/solution.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <deque>
#include <vector>
using namespace std;
/*
Time complexity: O(n + (n * log n)) [where n is the number of nodes in the Binary Search Tree]
Space complexity: O(n)
*/
class Solution
{
private:
vector<int> values;
vector<TreeNode*> nodes;
public:
... | 24.5 | 106 | 0.444515 | busebd12 |
50f72987195c1135bc42e48dcc76495219ed1529 | 1,536 | hh | C++ | fluids/navier_stokes_2d.hh | jpanikulam/experiments | be36319a89f8baee54d7fa7618b885edb7025478 | [
"MIT"
] | 1 | 2019-04-14T11:40:28.000Z | 2019-04-14T11:40:28.000Z | fluids/navier_stokes_2d.hh | IJDykeman/experiments-1 | 22badf166b2ea441e953939463f751020b8c251b | [
"MIT"
] | 5 | 2018-04-18T13:54:29.000Z | 2019-08-22T20:04:17.000Z | fluids/navier_stokes_2d.hh | IJDykeman/experiments-1 | 22badf166b2ea441e953939463f751020b8c251b | [
"MIT"
] | 1 | 2018-12-24T03:45:47.000Z | 2018-12-24T03:45:47.000Z | #pragma once
#include "eigen.hh"
namespace jcc {
namespace fluids {
namespace plane {
struct SimulationConfig {
// Pressure constant
double rho = 1e3;
// Viscosity
double nu = 0.9;
// Grid spacing
double dx = 1e-2;
// Time step
double dt = 1e-5;
};
struct SimulationState {
Eigen::MatrixXd press... | 26.482759 | 115 | 0.64388 | jpanikulam |
50f80a08c2071cff7dd05d238949735abe090180 | 49,056 | cpp | C++ | src/msvc/exe/k2elf2dlx/Convert.cpp | kkennett/oscore.dev | 59e786f12f9af969211c95a9d2863b1767528341 | [
"BSD-3-Clause"
] | null | null | null | src/msvc/exe/k2elf2dlx/Convert.cpp | kkennett/oscore.dev | 59e786f12f9af969211c95a9d2863b1767528341 | [
"BSD-3-Clause"
] | null | null | null | src/msvc/exe/k2elf2dlx/Convert.cpp | kkennett/oscore.dev | 59e786f12f9af969211c95a9d2863b1767528341 | [
"BSD-3-Clause"
] | null | null | null | //
// BSD 3-Clause License
//
// Copyright (c) 2020, Kurt Kennett
// 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 th... | 37.361767 | 126 | 0.567209 | kkennett |
50fa12d006ae061b3830f247fbed70e1a5a380a0 | 2,561 | cc | C++ | src/cxx/mwir/libmwir/ex-cards.cc | sfarrens/cosmostat | a475315cda06dca346095a1e83cb6ad23979acae | [
"MIT"
] | null | null | null | src/cxx/mwir/libmwir/ex-cards.cc | sfarrens/cosmostat | a475315cda06dca346095a1e83cb6ad23979acae | [
"MIT"
] | null | null | null | src/cxx/mwir/libmwir/ex-cards.cc | sfarrens/cosmostat | a475315cda06dca346095a1e83cb6ad23979acae | [
"MIT"
] | null | null | null | /************************** EX-CARDS.CPP ******************** AgF 2001-11-11 *
* *
* Example of using non-uniform random variate generator library to shuffle *
* a list of numbers. *
... | 48.320755 | 83 | 0.431472 | sfarrens |
50fc7aa485ded204c77de8261832ea011d3cafdd | 849 | cpp | C++ | UVa 11797 - Drutojan Express/sample/11797 - Drutojan Express.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 11797 - Drutojan Express/sample/11797 - Drutojan Express.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 11797 - Drutojan Express/sample/11797 - Drutojan Express.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | #include <stdio.h>
#include <map>
#include <iostream>
#include <queue>
using namespace std;
const string name[5] = {"Ja", "Sam", "Sha", "Sid", "Tan"};
int main() {
map<string, int> R;
int testcase, cases = 0;
int n, m, x;
char s[1024];
for(int i = 0; i < 5; i++)
R[name[i]] = i;
scanf("%d", &testcase);
while(te... | 20.707317 | 58 | 0.491166 | tadvi |
50ff3f5cd2efc9b268d82004c17bec7bf0f3d781 | 907 | cpp | C++ | tcmplx-access-plus/api.cpp | codylico/text-complex-plus | 4d71d8ce86375cae69e326bfb7f9bb57768e508c | [
"Unlicense"
] | null | null | null | tcmplx-access-plus/api.cpp | codylico/text-complex-plus | 4d71d8ce86375cae69e326bfb7f9bb57768e508c | [
"Unlicense"
] | null | null | null | tcmplx-access-plus/api.cpp | codylico/text-complex-plus | 4d71d8ce86375cae69e326bfb7f9bb57768e508c | [
"Unlicense"
] | null | null | null | /*
* \file tcmplx-access-plus/api.cpp
* \brief API-wide declarations for text-complex
* \author Cody Licorish (svgmovement@gmail.com)
*/
#define TCMPLX_AP_WIN32_DLL_INTERNAL
#include "api.hpp"
namespace text_complex {
namespace access {
//BEGIN configurations
char const* api_version(void) noexcept {
... | 24.513514 | 53 | 0.641676 | codylico |
dd03b44d009fc81f3ad7faad733cef61912fedf1 | 993 | cpp | C++ | Molecularity/Tool/Tool_Convert.cpp | kyle-robinson/directx-game | ff5964a6edd3241b703409976f27d68205b9ddd3 | [
"CC-BY-4.0"
] | 1 | 2021-06-14T22:44:01.000Z | 2021-06-14T22:44:01.000Z | Molecularity/Tool/Tool_Convert.cpp | kyle-robinson/directx-game | ff5964a6edd3241b703409976f27d68205b9ddd3 | [
"CC-BY-4.0"
] | null | null | null | Molecularity/Tool/Tool_Convert.cpp | kyle-robinson/directx-game | ff5964a6edd3241b703409976f27d68205b9ddd3 | [
"CC-BY-4.0"
] | 1 | 2021-06-04T12:44:06.000Z | 2021-06-04T12:44:06.000Z | #include "stdafx.h"
#include "Tool_Convert.h"
Tool_Convert::Tool_Convert()
{
EnergyCost = 25;
CurrentType = BoxType::Mesh;
MaxNumber = 2;
MinNumber = 0;
ChangeCurrent( 0 );
}
Tool_Convert::~Tool_Convert()
{ }
void Tool_Convert::ChangeCurrent( int number )
{
if ( number > MaxNumber )
number = MinNumber;
else... | 17.12069 | 52 | 0.698892 | kyle-robinson |
dd04e5b3b51185a8813363573cbc37408c2d2c1d | 7,841 | cpp | C++ | Oem/DWFTK/develop/global/src/dwf/publisher/impl/DWF6PackagePublisher.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Oem/DWFTK/develop/global/src/dwf/publisher/impl/DWF6PackagePublisher.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Oem/DWFTK/develop/global/src/dwf/publisher/impl/DWF6PackagePublisher.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (c) 2004-2006 by Autodesk, Inc.
//
// By using this code, you are agreeing to the terms and conditions of
// the License Agreement included in the documentation for this code.
//
// AUTODESK MAKES NO WARRANTIES, EXPRESSED OR IMPLIED,
// AS TO THE CORRECTNESS OF THIS CODE OR ANY DERIVATIVE
/... | 30.628906 | 135 | 0.588573 | achilex |
dd05284c102ac99a75464f29ae7e8320f1abbc9a | 430 | hpp | C++ | development/CppDB/libCppDb/include/CppDb/details/CrcTypes.hpp | AntonPoturaev/CppDB | 034d7feafc438fc585441742472bf4b5ef637eb2 | [
"Unlicense"
] | null | null | null | development/CppDB/libCppDb/include/CppDb/details/CrcTypes.hpp | AntonPoturaev/CppDB | 034d7feafc438fc585441742472bf4b5ef637eb2 | [
"Unlicense"
] | null | null | null | development/CppDB/libCppDb/include/CppDb/details/CrcTypes.hpp | AntonPoturaev/CppDB | 034d7feafc438fc585441742472bf4b5ef637eb2 | [
"Unlicense"
] | null | null | null | #if !defined(__CPP_ABSTRACT_DATA_BASE_DETAILS_CRC_TYPES_HPP__)
# define __CPP_ABSTRACT_DATA_BASE_DETAILS_CRC_TYPES_HPP__
#include <boost/crc.hpp>
namespace CppAbstractDataBase { namespace Details {
typedef boost::crc_32_type tCrcAlgorithm;
} /// end namespace Details
typedef Details::tCrcAlgorithm::value_type tCr... | 33.076923 | 62 | 0.832558 | AntonPoturaev |
dd08d346ce941191c315e37a554d85af48b33e05 | 32,801 | cpp | C++ | tracer/src/Datadog.Trace.ClrProfiler.Native/always_on_profiler.cpp | Kielek/signalfx-dotnet-tracing | 80c65ca936748788629287472401fa9f31b79410 | [
"Apache-2.0"
] | null | null | null | tracer/src/Datadog.Trace.ClrProfiler.Native/always_on_profiler.cpp | Kielek/signalfx-dotnet-tracing | 80c65ca936748788629287472401fa9f31b79410 | [
"Apache-2.0"
] | 2 | 2022-02-10T06:13:13.000Z | 2022-02-17T01:31:15.000Z | tracer/src/Datadog.Trace.ClrProfiler.Native/always_on_profiler.cpp | Kielek/signalfx-dotnet-tracing | 80c65ca936748788629287472401fa9f31b79410 | [
"Apache-2.0"
] | null | null | null | // We want to use std::min, not the windows.h macro
#define NOMINMAX
#include "always_on_profiler.h"
#include "logger.h"
#include <chrono>
#include <map>
#include <algorithm>
#ifndef _WIN32
#include <pthread.h>
#include <codecvt>
#endif
constexpr auto kMaxStringLength = 512UL;
constexpr auto kMaxCodesPerBuffer = ... | 36.649162 | 161 | 0.637176 | Kielek |
dd094ffbce2847e2b78b31337b526a123f35b8f3 | 183 | hpp | C++ | include/net/http/client/curl_native.hpp | francisfsjiang/libjstack | 2ffdd7f953f30edf6755cc53260e744ca0fad451 | [
"MIT"
] | 10 | 2015-03-19T04:41:21.000Z | 2016-03-24T13:58:15.000Z | include/net/http/client/curl_native.hpp | francisfsjiang/Abathur | 2ffdd7f953f30edf6755cc53260e744ca0fad451 | [
"MIT"
] | 2 | 2021-08-07T11:47:07.000Z | 2021-09-05T04:35:37.000Z | include/net/http/client/curl_native.hpp | francisfsjiang/Abathur | 2ffdd7f953f30edf6755cc53260e744ca0fad451 | [
"MIT"
] | 3 | 2015-03-20T11:57:16.000Z | 2017-01-24T03:47:50.000Z |
#ifndef LIBJSTACK_CURL_NATIVE_HPP
#define LIBJSTACK_CURL_NATIVE_HPP
namespace libjstack::net::http::curl_native {
#include <curl/curl.h>
}
#endif //LIBJSTACK_CURL_NATIVE_HPP
| 15.25 | 45 | 0.786885 | francisfsjiang |
dd0969dbdf43c0139e0296d370a760a749833e08 | 14,699 | cpp | C++ | UIImplementation/Source/Preferences/FileTypeAssociationsPreferencesPage.cpp | codesmithyide/codesmithy | 9be7c2c45fa1f533aa7a7623b8f610737c720bca | [
"MIT"
] | 6 | 2017-06-17T00:03:14.000Z | 2019-02-03T03:17:39.000Z | UIImplementation/Source/Preferences/FileTypeAssociationsPreferencesPage.cpp | codesmithyide/codesmithy | 9be7c2c45fa1f533aa7a7623b8f610737c720bca | [
"MIT"
] | 98 | 2016-08-31T12:49:09.000Z | 2020-11-01T19:39:28.000Z | UIImplementation/Source/Preferences/FileTypeAssociationsPreferencesPage.cpp | codesmithyide/codesmithy | 9be7c2c45fa1f533aa7a7623b8f610737c720bca | [
"MIT"
] | 1 | 2019-02-03T03:17:40.000Z | 2019-02-03T03:17:40.000Z | /*
Copyright (c) 2015-2017 Xavier Leclercq
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, me... | 38.080311 | 225 | 0.624532 | codesmithyide |
dd0a882b1c015f6b4f95833283c4f4e00e2833fe | 1,869 | cc | C++ | SimG4Core/SensitiveDetector/src/SensitiveDetectorMakerBase.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | SimG4Core/SensitiveDetector/src/SensitiveDetectorMakerBase.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | SimG4Core/SensitiveDetector/src/SensitiveDetectorMakerBase.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | // -*- C++ -*-
//
// Package: SimG4Core/SensitiveDetector
// Class : SensitiveDetectorMakerBase
//
// Implementation:
// [Notes on implementation]
//
// Original Author: Christopher Jones
// Created: Tue, 08 Jun 2021 13:25:09 GMT
//
// system include files
// user include files
#include "SimG4C... | 33.375 | 104 | 0.497057 | Purva-Chaudhari |
dd0bd28ad4978de4a81b7644bb52f95d53aa12d6 | 429 | cpp | C++ | Codeforces/262A-Roma and Lucky Numbers/262A-Roma and Lucky Numbers.cpp | alielsokary/Competitive-programming | 7dffaa334e18c61c8a7985f5bbb64e3613d1008b | [
"MIT"
] | null | null | null | Codeforces/262A-Roma and Lucky Numbers/262A-Roma and Lucky Numbers.cpp | alielsokary/Competitive-programming | 7dffaa334e18c61c8a7985f5bbb64e3613d1008b | [
"MIT"
] | null | null | null | Codeforces/262A-Roma and Lucky Numbers/262A-Roma and Lucky Numbers.cpp | alielsokary/Competitive-programming | 7dffaa334e18c61c8a7985f5bbb64e3613d1008b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int n, k,a[100000], b[100000], x, cnt,cnt2;
int main()
{
cin>>n>>k;
for (int i = 0; i < n; i++) {
cin>>a[i];
x = a[i];
while(x>0){
int tmp = x%10;
x/= 10;
if(tmp == 7 || tmp == 4)
cnt++;
}
b[i] = cnt;
cnt = 0;
}
f... | 13 | 43 | 0.398601 | alielsokary |
dd0d2300164ee607cb8215b6fcd388ec2c527d86 | 1,068 | cpp | C++ | sqrt.cpp | santoshgawande/LeetCode-Snippets | c8a863fb47aeb7b560d287566cf97b40cc636d83 | [
"Apache-2.0"
] | null | null | null | sqrt.cpp | santoshgawande/LeetCode-Snippets | c8a863fb47aeb7b560d287566cf97b40cc636d83 | [
"Apache-2.0"
] | null | null | null | sqrt.cpp | santoshgawande/LeetCode-Snippets | c8a863fb47aeb7b560d287566cf97b40cc636d83 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
class Solution {
public:
int mySqrt(int x) {
vector<int> v;
if(x<2){
return x;
}else{
for(int i=2;i<=x/2;i++){
v.push_back(i);
int r = i;
cout<<"v[i]"<<r<<" ";
... | 23.733333 | 72 | 0.343633 | santoshgawande |
dd10ec2db2b80310b1733d3f2daaad6d0308a38d | 1,104 | hpp | C++ | MLPP/BernoulliNB/BernoulliNB.hpp | KangLin/MLPP | abd2dba6076c98aa2e1c29fb3198b74a3f28f8fe | [
"MIT"
] | 927 | 2021-12-03T07:02:25.000Z | 2022-03-30T07:37:23.000Z | MLPP/BernoulliNB/BernoulliNB.hpp | DJofOUC/MLPP | 6940fc1fbcb1bc16fe910c90a32d9e4db52e264f | [
"MIT"
] | 7 | 2022-02-13T22:38:08.000Z | 2022-03-07T01:00:32.000Z | MLPP/BernoulliNB/BernoulliNB.hpp | DJofOUC/MLPP | 6940fc1fbcb1bc16fe910c90a32d9e4db52e264f | [
"MIT"
] | 132 | 2022-01-13T02:19:04.000Z | 2022-03-23T19:23:56.000Z | //
// BernoulliNB.hpp
//
// Created by Marc Melikyan on 1/17/21.
//
#ifndef BernoulliNB_hpp
#define BernoulliNB_hpp
#include <vector>
#include <map>
namespace MLPP{
class BernoulliNB{
public:
BernoulliNB(std::vector<std::vector<double>> inputSet, std::vector<double> outputSet);
... | 23.489362 | 98 | 0.505435 | KangLin |
dd130a931a0c27414f70b43818c607c5e21b315d | 503 | cpp | C++ | src/qwelk.cpp | raincheque/qwelk | e78ee0ccf7a7f1af91d823d0563b0af360933237 | [
"MIT"
] | 25 | 2017-11-22T13:48:05.000Z | 2021-12-29T05:49:01.000Z | src/qwelk.cpp | netboy3/qwelk-vcvrack-plugins | e78ee0ccf7a7f1af91d823d0563b0af360933237 | [
"MIT"
] | 12 | 2017-11-20T20:45:27.000Z | 2021-12-08T20:35:06.000Z | src/qwelk.cpp | netboy3/qwelk-vcvrack-plugins | e78ee0ccf7a7f1af91d823d0563b0af360933237 | [
"MIT"
] | 4 | 2018-01-11T21:02:12.000Z | 2019-09-29T12:32:50.000Z | #include "qwelk.hpp"
Plugin *pluginInstance;
void init(rack::Plugin *p) {
pluginInstance = p;
p->addModel(modelAutomaton);
p->addModel(modelByte);
p->addModel(modelChaos);
p->addModel(modelColumn);
p->addModel(modelGate);
p->addModel(modelOr);
p->addModel(modelNot);
p->addModel(m... | 21.869565 | 32 | 0.652087 | raincheque |