hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce575d497dd4d90767c7083f24c41adf9f83bad6 | 3,688 | cpp | C++ | Source/AllProjects/Tests2/StressTests/StressTests.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 216 | 2019-03-09T06:41:28.000Z | 2022-02-25T16:27:19.000Z | Source/AllProjects/Tests2/StressTests/StressTests.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 9 | 2020-09-27T08:00:52.000Z | 2021-07-02T14:27:31.000Z | Source/AllProjects/Tests2/StressTests/StressTests.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 29 | 2019-03-09T10:12:24.000Z | 2021-03-03T22:25:29.000Z | //
// FILE NAME: StressTests.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 01/27/2007
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opensource.or... | 26.156028 | 83 | 0.462852 | MarkStega |
ce585c81085d79311d6ca2360cecc1999744b0c7 | 1,409 | cpp | C++ | src/VisualizerApp.cpp | quartorz/procon2015-visualizer | feca85fbcb0e126a602cddc5c1615d6a51e53f1d | [
"MIT"
] | null | null | null | src/VisualizerApp.cpp | quartorz/procon2015-visualizer | feca85fbcb0e126a602cddc5c1615d6a51e53f1d | [
"MIT"
] | null | null | null | src/VisualizerApp.cpp | quartorz/procon2015-visualizer | feca85fbcb0e126a602cddc5c1615d6a51e53f1d | [
"MIT"
] | null | null | null | #include "cinder/app/AppNative.h"
#include "cinder/gl/gl.h"
#include <fstream>
#include <stdexcept>
#include "procon/ground.hpp"
#include "procon/stone.hpp"
#include "procon/utility.hpp"
#include "procon/constant.hpp"
using namespace ci;
using namespace ci::app;
class VisualizerApp : public AppNative {
procon::gro... | 20.720588 | 70 | 0.636622 | quartorz |
ce58e12c2422071f3d6dcabbebea07b733c4f9d7 | 2,676 | hpp | C++ | third_party/boost/simd/arch/common/scalar/function/asec.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | third_party/boost/simd/arch/common/scalar/function/asec.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/arch/common/scalar/function/asec.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//===========================... | 32.240964 | 100 | 0.516069 | SylvainCorlay |
ce626b4c91f195155ed09776826c20c96e7743a6 | 14,192 | hpp | C++ | Base/include/Framework/Collection/HashMap.impl.hpp | BlockProject3D/Framework | 1c27ef19d9a12d158a2b53f6bd28dd2d8e678912 | [
"BSD-3-Clause"
] | 2 | 2019-02-02T20:48:17.000Z | 2019-02-22T09:59:40.000Z | Base/include/Framework/Collection/HashMap.impl.hpp | BlockProject3D/Framework | 1c27ef19d9a12d158a2b53f6bd28dd2d8e678912 | [
"BSD-3-Clause"
] | 125 | 2020-01-14T18:26:38.000Z | 2021-02-23T15:33:55.000Z | Base/include/Framework/Collection/HashMap.impl.hpp | BlockProject3D/Framework | 1c27ef19d9a12d158a2b53f6bd28dd2d8e678912 | [
"BSD-3-Clause"
] | 1 | 2020-05-26T08:55:10.000Z | 2020-05-26T08:55:10.000Z | // Copyright (c) 2020, BlockProject 3D
//
// 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 ... | 37.347368 | 153 | 0.530369 | BlockProject3D |
ce6427aa9f92f440102c152c66e8e7118dae8c5b | 974 | cpp | C++ | tests/juliet/testcases/CWE404_Improper_Resource_Shutdown/CWE404_Improper_Resource_Shutdown__open_fclose_82_goodB2G.cpp | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | 28 | 2017-01-20T15:25:54.000Z | 2020-03-17T00:28:31.000Z | testcases/CWE404_Improper_Resource_Shutdown/CWE404_Improper_Resource_Shutdown__open_fclose_82_goodB2G.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 1 | 2017-01-20T15:26:27.000Z | 2018-08-20T00:55:37.000Z | testcases/CWE404_Improper_Resource_Shutdown/CWE404_Improper_Resource_Shutdown__open_fclose_82_goodB2G.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 2 | 2019-07-15T19:07:04.000Z | 2019-09-07T14:21:04.000Z | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE404_Improper_Resource_Shutdown__open_fclose_82_goodB2G.cpp
Label Definition File: CWE404_Improper_Resource_Shutdown__open.label.xml
Template File: source-sinks-82_goodB2G.tmpl.cpp
*/
/*
* @description
* CWE: 404 Improper Resource Shutdown or Release
* BadSourc... | 27.828571 | 100 | 0.723819 | RanerL |
ce65580e3677a1c18a9343da8a3dba9d6579b9b5 | 810 | cpp | C++ | src/camera.cpp | mdarocha/software-renderer | e90a24c67dc7a0b71b69b019f1a71e17d6b9f7c1 | [
"MIT"
] | null | null | null | src/camera.cpp | mdarocha/software-renderer | e90a24c67dc7a0b71b69b019f1a71e17d6b9f7c1 | [
"MIT"
] | null | null | null | src/camera.cpp | mdarocha/software-renderer | e90a24c67dc7a0b71b69b019f1a71e17d6b9f7c1 | [
"MIT"
] | null | null | null | #include "camera.h"
void Camera::setup_mat() {
model.identity();
double depth = 255;
viewport.identity();
viewport[0][3] = screen_w / 2.0f;
viewport[1][3] = screen_h / 2.0f;
viewport[2][3] = depth / 2.0f;
viewport[0][0] = screen_w / 2.0f;
viewport[1][1] = screen_h / 2.0f;
viewpor... | 20.25 | 44 | 0.507407 | mdarocha |
ce6748391e5456246bece20d7b19077e7be501a5 | 32,824 | cpp | C++ | newton-4.00/sdk/dCore/dPolygonSoupBuilder.cpp | execomrt/newton-dynamics | b38363000bed09cf514cdad92013b0c0b4c48f3f | [
"Zlib"
] | 1,031 | 2015-01-02T14:08:47.000Z | 2022-03-29T02:25:27.000Z | newton-4.00/sdk/dCore/dPolygonSoupBuilder.cpp | execomrt/newton-dynamics | b38363000bed09cf514cdad92013b0c0b4c48f3f | [
"Zlib"
] | 240 | 2015-01-11T04:27:19.000Z | 2022-03-30T00:35:57.000Z | newton-4.00/sdk/dCore/dPolygonSoupBuilder.cpp | execomrt/newton-dynamics | b38363000bed09cf514cdad92013b0c0b4c48f3f | [
"Zlib"
] | 224 | 2015-01-05T06:13:54.000Z | 2022-02-25T14:39:51.000Z | /* Copyright (c) <2003-2021> <Julio Jerez, Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpo... | 27.104872 | 159 | 0.641847 | execomrt |
ce706dca100873d5920df2317a00268e5a0aeb78 | 810 | cpp | C++ | cpp/containers_byref.cpp | PhilipDaniels/learn | cbacb52fd472b5c90b6c3890bb912cd3020905fc | [
"MIT"
] | null | null | null | cpp/containers_byref.cpp | PhilipDaniels/learn | cbacb52fd472b5c90b6c3890bb912cd3020905fc | [
"MIT"
] | null | null | null | cpp/containers_byref.cpp | PhilipDaniels/learn | cbacb52fd472b5c90b6c3890bb912cd3020905fc | [
"MIT"
] | null | null | null | #include <iostream>
#include <map>
#include <string>
#include <utility>
using namespace std;
class Thing
{
public:
Thing()
{
cout << "ctor (no args)\n";
}
Thing(const string& name)
: name_(name)
{
cout << "ctor " << name_ << "\n";
}
~Thing()
{
cout << ... | 16.875 | 73 | 0.534568 | PhilipDaniels |
ce72a05966b16d2c5de13b5dfbf2ff7ac9d4e4fc | 2,858 | hpp | C++ | include/canard/net/ofp/v13/instruction_order.hpp | amedama41/bulb | 2e9fd8a8c35cfc2be2ecf5f747f83cf36ffbbdbb | [
"BSL-1.0"
] | null | null | null | include/canard/net/ofp/v13/instruction_order.hpp | amedama41/bulb | 2e9fd8a8c35cfc2be2ecf5f747f83cf36ffbbdbb | [
"BSL-1.0"
] | 8 | 2016-07-21T11:29:13.000Z | 2016-12-03T05:16:42.000Z | include/canard/net/ofp/v13/instruction_order.hpp | amedama41/bulb | 2e9fd8a8c35cfc2be2ecf5f747f83cf36ffbbdbb | [
"BSL-1.0"
] | null | null | null | #ifndef CANARD_NET_OFP_V13_INSTRUCTION_ORDER_HPP
#define CANARD_NET_OFP_V13_INSTRUCTION_ORDER_HPP
#include <cstdint>
#include <type_traits>
#include <boost/fusion/container/map.hpp>
#include <boost/fusion/sequence/intrinsic/has_key.hpp>
#include <boost/fusion/sequence/intrinsic/value_at_key.hpp>
#include <boost/fusion... | 28.29703 | 80 | 0.729181 | amedama41 |
ce73d2a1cdeef49d8636dd7a3fe5d986df51f12c | 694 | cpp | C++ | test/ais/Test_ais_message_06.cpp | ShadowTeolog/marnav | 094dd06a2b9e52591bc9c3879ea4b5cf34a92192 | [
"BSD-4-Clause"
] | null | null | null | test/ais/Test_ais_message_06.cpp | ShadowTeolog/marnav | 094dd06a2b9e52591bc9c3879ea4b5cf34a92192 | [
"BSD-4-Clause"
] | 1 | 2021-11-10T14:40:21.000Z | 2021-11-10T14:40:21.000Z | test/ais/Test_ais_message_06.cpp | ShadowTeolog/marnav | 094dd06a2b9e52591bc9c3879ea4b5cf34a92192 | [
"BSD-4-Clause"
] | 1 | 2020-12-21T16:38:02.000Z | 2020-12-21T16:38:02.000Z | #include <gtest/gtest.h>
#include <marnav/ais/message_06.hpp>
#include <marnav/ais/ais.hpp>
namespace
{
using namespace marnav;
class Test_ais_message_06 : public ::testing::Test
{
};
TEST_F(Test_ais_message_06, parse)
{
std::vector<std::pair<std::string, uint32_t>> v;
v.push_back(std::make_pair("6h2E:p66B2SR04<0@... | 22.387097 | 71 | 0.737752 | ShadowTeolog |
ce73dbe2817ae43b45554082d67c99f202683af5 | 5,461 | cpp | C++ | modules/tools/src/libifm3d_tools/make_app.cpp | VitiBot/ifm3d | a41081ae7a6d43eb845df85604acd4cbb000d1f8 | [
"Apache-2.0",
"MIT"
] | null | null | null | modules/tools/src/libifm3d_tools/make_app.cpp | VitiBot/ifm3d | a41081ae7a6d43eb845df85604acd4cbb000d1f8 | [
"Apache-2.0",
"MIT"
] | 1 | 2018-10-09T13:19:55.000Z | 2018-10-09T13:19:55.000Z | modules/tools/src/libifm3d_tools/make_app.cpp | VitiBot/ifm3d | a41081ae7a6d43eb845df85604acd4cbb000d1f8 | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* Copyright (C) 2017 Love Park Robotics, 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 o... | 31.935673 | 78 | 0.611243 | VitiBot |
ce74f0f9a6cc2d6bcab698dab329c2f687e0fd43 | 2,814 | cpp | C++ | src/cap/file.cpp | pckelsey/replaycap | 02459c3d6babad2bb318ff58d2feef8a9ead826d | [
"MIT"
] | null | null | null | src/cap/file.cpp | pckelsey/replaycap | 02459c3d6babad2bb318ff58d2feef8a9ead826d | [
"MIT"
] | null | null | null | src/cap/file.cpp | pckelsey/replaycap | 02459c3d6babad2bb318ff58d2feef8a9ead826d | [
"MIT"
] | null | null | null | #include "file.hpp"
#include "packet.hpp"
#include "util/log.hpp"
#include <pcap.h>
#include <cstring>
#include <functional>
#include <sstream>
namespace cap
{
const size_t s_allocSize = 1024 * 1024 * 10;
void pcap_handle_packet(std::uint8_t* p_args, const pcap_pkthdr* p_header, const std::uint8_t* p_data)
... | 25.351351 | 121 | 0.624378 | pckelsey |
ce7722685420326157f0bfbec8377b5252b489ef | 7,148 | cpp | C++ | lib/texture/load_texturemap.cpp | Pcornat/BenLib | 5ec30f5eb0bbf827d4d3fd00c8cca1064109fb4c | [
"MIT"
] | null | null | null | lib/texture/load_texturemap.cpp | Pcornat/BenLib | 5ec30f5eb0bbf827d4d3fd00c8cca1064109fb4c | [
"MIT"
] | null | null | null | lib/texture/load_texturemap.cpp | Pcornat/BenLib | 5ec30f5eb0bbf827d4d3fd00c8cca1064109fb4c | [
"MIT"
] | null | null | null | /*
** BENSUPERPC PROJECT, 2020
** Texture
** File description:
** load_titlemap.cpp
*/
#include "load_texturemap.hpp"
#if __cplusplus <= 201402L
void my::texture::load_texturemap(std::map<int, std::string> &texture_map, const std::string &file)
{
std::string index = "";
std::string path = "";
std::string ... | 35.74 | 149 | 0.584779 | Pcornat |
ce78bcef01758e7aa96849be4a187b4b19a97331 | 100 | cpp | C++ | ionGUI/imGUI.cpp | iondune/ionEngine | 7ce3394dafbabf0e0bb9f5d07dbfae31161800d4 | [
"MIT"
] | 36 | 2015-06-28T14:53:06.000Z | 2021-10-31T04:26:53.000Z | ionGUI/imGUI.cpp | iondune/ionEngine | 7ce3394dafbabf0e0bb9f5d07dbfae31161800d4 | [
"MIT"
] | 90 | 2015-05-01T07:21:43.000Z | 2017-08-30T01:16:41.000Z | ionGUI/imGUI.cpp | iondune/ionEngine | 7ce3394dafbabf0e0bb9f5d07dbfae31161800d4 | [
"MIT"
] | 9 | 2016-04-08T07:48:02.000Z | 2019-07-22T15:13:53.000Z |
#include "imGUI.h"
#include <imgui.cpp>
#include <imgui_draw.cpp>
#include <imgui_demo.cpp>
| 14.285714 | 26 | 0.68 | iondune |
706c04dd2f4fc36f99cfdbadbdf3a7856e19db93 | 579 | cc | C++ | src/common/progress_bar.cc | slwilliams/stegasis | 8f7c466231588d51f0af01b46092218324f5e6b1 | [
"MIT",
"Unlicense"
] | 2 | 2015-12-18T01:14:53.000Z | 2016-01-26T15:33:03.000Z | src/common/progress_bar.cc | slwilliams/stegasis | 8f7c466231588d51f0af01b46092218324f5e6b1 | [
"MIT",
"Unlicense"
] | null | null | null | src/common/progress_bar.cc | slwilliams/stegasis | 8f7c466231588d51f0af01b46092218324f5e6b1 | [
"MIT",
"Unlicense"
] | null | null | null | #include <stdio.h>
#include "progress_bar.h"
// Taken from rosshemsley.co.uk/2011/02/creating-a-progress-bar-in-c-or-any-other-console-app/
// Slightly modified
// Process has done i out of n rounds, with width w
void loadBar(int x, int n, int w) {
float ratio = x / (float)n;
int c = ratio * w;
printf(... | 19.3 | 94 | 0.502591 | slwilliams |
706cad888bd510c25b19ca7b2d999f1da5ed6961 | 5,175 | hpp | C++ | idlib-parsing-expression/library/src/idlib/parsing_expression/predefined.hpp | egoboo/idlib | b27b9d3fe7357ecfe5f9dc71afe283a3d16b1ba8 | [
"MIT"
] | 1 | 2021-07-30T14:02:43.000Z | 2021-07-30T14:02:43.000Z | idlib-parsing-expression/library/src/idlib/parsing_expression/predefined.hpp | egoboo/idlib | b27b9d3fe7357ecfe5f9dc71afe283a3d16b1ba8 | [
"MIT"
] | null | null | null | idlib-parsing-expression/library/src/idlib/parsing_expression/predefined.hpp | egoboo/idlib | b27b9d3fe7357ecfe5f9dc71afe283a3d16b1ba8 | [
"MIT"
] | 2 | 2017-01-27T16:53:08.000Z | 2017-08-27T07:28:43.000Z | ///////////////////////////////////////////////////////////////////////////////////////////////////
//
// Idlib: A C++ utility library
// Copyright (C) 2017-2018 Michael Heilmann
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any dama... | 28.59116 | 101 | 0.576232 | egoboo |
706cbc8d6ce0111b541ad606584dd1f311fff91d | 12,607 | cpp | C++ | kernel/fs/fd.cpp | ethan4984/rock | 751b9af1009b622bedf384c1f80970b333c436c3 | [
"BSD-2-Clause"
] | 207 | 2020-05-27T21:57:28.000Z | 2022-02-26T15:17:27.000Z | kernel/fs/fd.cpp | ethan4984/crepOS | 751b9af1009b622bedf384c1f80970b333c436c3 | [
"BSD-2-Clause"
] | 3 | 2020-07-26T18:14:05.000Z | 2020-12-09T05:32:07.000Z | kernel/fs/fd.cpp | ethan4984/rock | 751b9af1009b622bedf384c1f80970b333c436c3 | [
"BSD-2-Clause"
] | 17 | 2020-07-05T19:08:48.000Z | 2021-10-13T12:30:13.000Z | #include <fs/fd.hpp>
#include <types.hpp>
#include <string.hpp>
#include <sched/smp.hpp>
#include <sched/scheduler.hpp>
#include <memutils.hpp>
#include <drivers/tty.hpp>
#include <utility>
#include <fs/ramfs.hpp>
#define SYSCALL_FD_TRANSLATE(FD_INDEX) \
smp::cpu *core = smp::core_local(); \
sched::task *curre... | 26.155602 | 108 | 0.582137 | ethan4984 |
7071ab9e54b26a71c6c8710e9b4f6dce6b641e5d | 12,632 | cpp | C++ | dev/Gems/Maestro/Code/Tests/Tracks/AnimTrackTest.cpp | raghnarx/lumberyard | 1c52b941dcb7d94341fcf21275fe71ff67173ada | [
"AML"
] | 8 | 2019-10-07T16:33:47.000Z | 2020-12-07T03:59:58.000Z | dev/Gems/Maestro/Code/Tests/Tracks/AnimTrackTest.cpp | 29e7e280-0d1c-4bba-98fe-f7cd3ca7500a/lumberyard | 1c52b941dcb7d94341fcf21275fe71ff67173ada | [
"AML"
] | null | null | null | dev/Gems/Maestro/Code/Tests/Tracks/AnimTrackTest.cpp | 29e7e280-0d1c-4bba-98fe-f7cd3ca7500a/lumberyard | 1c52b941dcb7d94341fcf21275fe71ff67173ada | [
"AML"
] | 4 | 2019-08-05T07:25:46.000Z | 2020-12-07T05:12:55.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 31.267327 | 117 | 0.64962 | raghnarx |
70792c98cc9ea14283521b86b065b091d04505e0 | 9,627 | cpp | C++ | qmf/bpr/BPREngine.cpp | ddtuan99/qmf | ec1e6e8d399101f4e1915d354007a6fc576623d6 | [
"Apache-2.0"
] | 485 | 2016-04-15T03:32:37.000Z | 2022-01-31T23:12:01.000Z | qmf/bpr/BPREngine.cpp | Seanpm2001-Quora/qmf | c36330e97604cdd69805365e297590c293962b77 | [
"Apache-2.0"
] | 29 | 2016-04-19T20:06:51.000Z | 2021-02-04T06:26:36.000Z | qmf/bpr/BPREngine.cpp | Seanpm2001-Quora/qmf | c36330e97604cdd69805365e297590c293962b77 | [
"Apache-2.0"
] | 104 | 2016-04-19T17:54:59.000Z | 2022-01-31T23:15:09.000Z | /*
* Copyright 2016 Quora, 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... | 34.382143 | 80 | 0.648281 | ddtuan99 |
707958fddabc7267950a00bbe5c651ead3adf965 | 4,416 | cpp | C++ | src/physics/dynamic_object.cpp | Harrand/Engine-A | 995fff8a7a07ac496c368a235659e72107b6b6cb | [
"Apache-2.0"
] | null | null | null | src/physics/dynamic_object.cpp | Harrand/Engine-A | 995fff8a7a07ac496c368a235659e72107b6b6cb | [
"Apache-2.0"
] | null | null | null | src/physics/dynamic_object.cpp | Harrand/Engine-A | 995fff8a7a07ac496c368a235659e72107b6b6cb | [
"Apache-2.0"
] | null | null | null | #include "physics/dynamic_object.hpp"
DynamicObject::DynamicObject(float mass, Transform transform, Asset asset, Vector3F velocity, float moment_of_inertia, Vector3F angular_velocity, std::initializer_list<Vector3F> forces): StaticObject(transform, asset), PhysicsObject(mass, velocity, moment_of_inertia, angular_veloc... | 45.061224 | 319 | 0.721014 | Harrand |
707b2b0c9d2850a100bacfc5a8f4e19478599bec | 1,810 | cpp | C++ | SORTING/4.MERGE_SORT.cpp | shauryauppal/Algo-DS-StudyMaterial | 1c481f066d21b33ec2533156e75f45fa9b6a7606 | [
"Apache-2.0"
] | 3 | 2020-12-03T14:52:23.000Z | 2021-12-19T09:26:50.000Z | SORTING/4.MERGE_SORT.cpp | shauryauppal/Algo-DS-StudyMaterial | 1c481f066d21b33ec2533156e75f45fa9b6a7606 | [
"Apache-2.0"
] | null | null | null | SORTING/4.MERGE_SORT.cpp | shauryauppal/Algo-DS-StudyMaterial | 1c481f066d21b33ec2533156e75f45fa9b6a7606 | [
"Apache-2.0"
] | null | null | null | //merge sort algorithm for sorting
#include <bits/stdc++.h>
using namespace std;
// Merges two subarrays of arr[].
// First subarray is arr[l..m]
// Second subarray is arr[m+1..r]
void merge(int arr[],int l,int m,int r)
{
int i,j,k,n1,n2;
n1=m-l+1;
n2=r-m;
int L[n1],R[n2];
/* Copy data t... | 21.547619 | 63 | 0.456354 | shauryauppal |
707cf29880f69093174c9a9e2af6eb109e18e774 | 348 | cpp | C++ | CodeChef/LunchTime/SeptLunchTime2018/Codechef_Lunchtime_sept_2018_juding_delay.cpp | ysumit99/Compi-Coding | d0e96c4f024328b0bfb799fab927919dae367f7a | [
"MIT"
] | 1 | 2019-04-19T13:06:33.000Z | 2019-04-19T13:06:33.000Z | CodeChef/LunchTime/SeptLunchTime2018/Codechef_Lunchtime_sept_2018_juding_delay.cpp | ysumit99/Compi-Coding | d0e96c4f024328b0bfb799fab927919dae367f7a | [
"MIT"
] | null | null | null | CodeChef/LunchTime/SeptLunchTime2018/Codechef_Lunchtime_sept_2018_juding_delay.cpp | ysumit99/Compi-Coding | d0e96c4f024328b0bfb799fab927919dae367f7a | [
"MIT"
] | null | null | null | //https://www.codechef.com/LTIME64B/problems/JDELAY#
#include<bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{
int t;
cin >>t;
while(t--)
{
int n;
cin >> n;
int s,j,count = 0;
for (int i = 0; i < n; ++i)
{
cin >> s >> j;
if(j-s > 5)
count++;
}
cout << co... | 10.875 | 52 | 0.517241 | ysumit99 |
70843bc90a3b1b499590db3d3e50f832cca7e2fc | 1,559 | cpp | C++ | 1/1.2.cpp | hinduBale/DAA-Lab | dbce11b6cfb892b19ca4a976c6d325f7b3b652b2 | [
"MIT"
] | null | null | null | 1/1.2.cpp | hinduBale/DAA-Lab | dbce11b6cfb892b19ca4a976c6d325f7b3b652b2 | [
"MIT"
] | null | null | null | 1/1.2.cpp | hinduBale/DAA-Lab | dbce11b6cfb892b19ca4a976c6d325f7b3b652b2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <process.h>
#include <dir.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fstream>
using namespace std;
string random_string( size_t length )
{
auto randchar = []() -> char
{
const char charset[] =
"0123456789"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
... | 20.786667 | 60 | 0.518281 | hinduBale |
70859c98558f32bc4e245092e9bd63f11d9a3308 | 357 | cpp | C++ | Scheduler/SerialSendTask.cpp | Taylorjtt/Mige-FFB | 3d3d65abccf0367f7e6f97b2587dcbf40a80a874 | [
"MIT"
] | 5 | 2019-09-13T08:07:57.000Z | 2021-12-16T16:08:01.000Z | Scheduler/SerialSendTask.cpp | Taylorjtt/Mige-FFB | 3d3d65abccf0367f7e6f97b2587dcbf40a80a874 | [
"MIT"
] | 7 | 2019-05-24T19:03:15.000Z | 2019-06-08T23:39:08.000Z | Scheduler/SerialSendTask.cpp | Taylorjtt/Mige-FFB | 3d3d65abccf0367f7e6f97b2587dcbf40a80a874 | [
"MIT"
] | 1 | 2019-10-02T15:31:31.000Z | 2019-10-02T15:31:31.000Z | /*
* SerialSendTask.cpp
*
* Created on: Apr 6, 2018
* Author: John
*/
#include "SerialSendTask.h"
uint32_t SerialSendTask::getPackedCurrentData(void)
{
uint32_t packedData = 0;
packedData |= ((uint32_t)AdcResult.ADCRESULT0) << 12;
packedData |= ((uint32_t)AdcResult.ADCRESULT1);
return packedData;
}
Se... | 17 | 55 | 0.703081 | Taylorjtt |
70878eaf7ea0b6b8abf42a6d36e9fdbe98426426 | 1,577 | hpp | C++ | src/essence.game/qpang/room/tnl/net_events/client/cg_ready.hpp | hinnie123/qpang-essence-emulator-1 | 2b99f21bcbcbdcd5ff8104d4845ebc10ec0e6e1b | [
"MIT"
] | 15 | 2019-12-04T14:36:09.000Z | 2021-06-11T12:00:04.000Z | src/essence.game/qpang/room/tnl/net_events/client/cg_ready.hpp | hinnie123/qpang-essence-emulator-1 | 2b99f21bcbcbdcd5ff8104d4845ebc10ec0e6e1b | [
"MIT"
] | 6 | 2019-12-24T11:28:01.000Z | 2020-03-31T00:14:50.000Z | src/essence.game/qpang/room/tnl/net_events/client/cg_ready.hpp | hinnie123/qpang-essence-emulator-1 | 2b99f21bcbcbdcd5ff8104d4845ebc10ec0e6e1b | [
"MIT"
] | 21 | 2019-12-04T14:35:56.000Z | 2022-02-14T20:59:31.000Z | #ifndef CG_READY_H
#define CG_READY_H
#include "GameNetEvent.h"
#include "gc_ready.hpp"
#include "qpang/room/session/RoomSession.h"
class CGReady : public GameNetEvent
{
typedef NetEvent Parent;
public:
enum CMD : U32
{
UNREADY = 0,
READY = 1,
};
CGReady() : GameNetEvent{ CG_READY, NetEvent::GuaranteeType... | 21.60274 | 114 | 0.669626 | hinnie123 |
7087f95ff4738c47dc2a0a484874ee39d4ece50b | 2,264 | cxx | C++ | src/mlio/example.cxx | laurencer/ml-io | b40a88f0b61f7dfd2b74897a9b2385539d5796aa | [
"Apache-2.0"
] | null | null | null | src/mlio/example.cxx | laurencer/ml-io | b40a88f0b61f7dfd2b74897a9b2385539d5796aa | [
"Apache-2.0"
] | null | null | null | src/mlio/example.cxx | laurencer/ml-io | b40a88f0b61f7dfd2b74897a9b2385539d5796aa | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 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 "lice... | 26.022989 | 77 | 0.636926 | laurencer |
708a4f63534ae06298499b486637c76e0f6fb234 | 15,426 | cxx | C++ | Rendering/VolumeOpenGL2/vtkMultiBlockVolumeMapper.cxx | dsleep/VTK | cbf9c453cf50a954ab5d6a2448b8a0391bde9378 | [
"BSD-3-Clause"
] | 1 | 2020-03-24T14:08:58.000Z | 2020-03-24T14:08:58.000Z | Rendering/VolumeOpenGL2/vtkMultiBlockVolumeMapper.cxx | dsleep/VTK | cbf9c453cf50a954ab5d6a2448b8a0391bde9378 | [
"BSD-3-Clause"
] | null | null | null | Rendering/VolumeOpenGL2/vtkMultiBlockVolumeMapper.cxx | dsleep/VTK | cbf9c453cf50a954ab5d6a2448b8a0391bde9378 | [
"BSD-3-Clause"
] | 2 | 2020-03-24T14:09:05.000Z | 2021-09-17T09:30:26.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: vtkMultiBlockVolumeMapper.cxx
copyright (c) ken martin, will schroeder, bill lorensen
all rights reserved.
see copyright.txt or http://www.kitware.com/copyright.htm for details.
this so... | 31.740741 | 99 | 0.590886 | dsleep |
708df20b2af1778d953209e4838febcc072177c6 | 14,079 | cpp | C++ | source/librenderer/font_distance_field.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 113 | 2015-06-25T06:24:59.000Z | 2021-09-26T02:46:02.000Z | source/librenderer/font_distance_field.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 2 | 2015-05-03T07:22:49.000Z | 2017-12-11T09:17:20.000Z | source/librenderer/font_distance_field.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 17 | 2015-11-10T15:07:15.000Z | 2021-01-19T15:28:16.000Z | // +----------------------------------------------------------------------
// | Project : ray.
// | All rights reserved.
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017.
// +----------------------------------------------------------------------
// | * Redistributi... | 27.824111 | 229 | 0.6759 | Lauvak |
70902c788c1b7e7ba80ffb7e0d09673c37ff0595 | 6,106 | cpp | C++ | LearnOpenGLAAA/08colors/src/SandboxLayer.cpp | KirkXu/LearnOpenGLAAA | b5be7e4edb5cade6d740d020f3d13c3884bb7d30 | [
"Apache-2.0"
] | 1 | 2021-08-04T07:06:58.000Z | 2021-08-04T07:06:58.000Z | LearnOpenGLAAA/08colors/src/SandboxLayer.cpp | KirkXu/LearnOpenGLAAA | b5be7e4edb5cade6d740d020f3d13c3884bb7d30 | [
"Apache-2.0"
] | null | null | null | LearnOpenGLAAA/08colors/src/SandboxLayer.cpp | KirkXu/LearnOpenGLAAA | b5be7e4edb5cade6d740d020f3d13c3884bb7d30 | [
"Apache-2.0"
] | null | null | null | #include "SandboxLayer.h"
#include "stb_image/stb_image.h"
#include "glfw/include/GLFW/glfw3.h"
using namespace GLCore;
using namespace GLCore::Utils;
SandboxLayer::SandboxLayer()
{
}
SandboxLayer::~SandboxLayer()
{
}
void SandboxLayer::OnAttach()
{
EnableGLDebugging();
// Init here
m_Shader.push_back(Shader::Fr... | 25.872881 | 114 | 0.639699 | KirkXu |
7091b4312806e9fb70c82837d598a158e6a88e70 | 5,273 | hpp | C++ | code/parallel/priority_thread_pool.hpp | Brunovsky/competitive | 41cf49378e430ca20d844f97c67aa5059ab1e973 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | code/parallel/priority_thread_pool.hpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | code/parallel/priority_thread_pool.hpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #pragma once
#include <bits/stdc++.h>
using namespace std;
/**
* Thread pool designed for a unique owner, jobs processed by priority order.
* Pretty much identical to the basic thread pool.
*/
template <typename P, typename Compare = less<>>
struct priority_thread_pool {
private:
using job_t = function<void(... | 29.623596 | 83 | 0.547127 | Brunovsky |
7091e3f1306ed2dcd515853dfdf4279cef94cf9a | 698 | cpp | C++ | catkin_ws/src/beginner_tutorials/src/nnode.cpp | Manas173/Autonomous-ATV-using-ROS-API | efa3775ed90dc6a658728b9396e645983d97431f | [
"MIT"
] | null | null | null | catkin_ws/src/beginner_tutorials/src/nnode.cpp | Manas173/Autonomous-ATV-using-ROS-API | efa3775ed90dc6a658728b9396e645983d97431f | [
"MIT"
] | null | null | null | catkin_ws/src/beginner_tutorials/src/nnode.cpp | Manas173/Autonomous-ATV-using-ROS-API | efa3775ed90dc6a658728b9396e645983d97431f | [
"MIT"
] | null | null | null | #include <ros/ros.h>
#include <pcl_ros/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl_conversions/pcl_conversions.h>
typedef pcl::PointCloud<pcl::PointXYZ> PointCloud;
int main(int argc, char** argv)
{
ros::init (argc, argv, "pub_pcl");
ros::NodeHandle nh;
ros::Publisher pub = nh.advertise<PointCloud... | 24.928571 | 64 | 0.664756 | Manas173 |
7091e8dc803ab88ac32a857e7d31a491281a24ae | 6,501 | cpp | C++ | src/sdl_gui/src/sdl_gui_layout.cpp | N4G170/sdl_gui | a3541d372a7884d0375df360f9244682a98a0de3 | [
"MIT"
] | null | null | null | src/sdl_gui/src/sdl_gui_layout.cpp | N4G170/sdl_gui | a3541d372a7884d0375df360f9244682a98a0de3 | [
"MIT"
] | null | null | null | src/sdl_gui/src/sdl_gui_layout.cpp | N4G170/sdl_gui | a3541d372a7884d0375df360f9244682a98a0de3 | [
"MIT"
] | null | null | null | #include "sdl_gui_layout.hpp"
#include "sdl_gui_log.hpp"
#include "sdl_gui_utils.hpp"
#include <utility>
#include <algorithm>
namespace sdl_gui
{
Layout::Layout(GuiMainPointers main_pointers, const Position& position, const Dimensions& size): GuiElement{main_pointers, position, size},
// m_layout_config{LayoutWra... | 29.821101 | 169 | 0.673589 | N4G170 |
709235fdfa75950f9099c22aab4082fed2836d41 | 377 | cpp | C++ | greedy/13458.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | greedy/13458.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | greedy/13458.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | // 시험 감독
#include <iostream>
using namespace std;
int main(void)
{
int n, b, c;
long long cnt = 0;
int a[1000001];
cin >> n;
for(int i = 0; i < n; i++)
cin >> a[i];
cin >> b >> c;
for(int i = 0; i < n; i++)
{
a[i] -= b;
cnt++;
if(a[i] > 0)
{
if(a[i] % c == 0) cnt += ( a[i] / c );
else cnt += ( ... | 14.5 | 41 | 0.427056 | SiverPineValley |
7092b299407379d84105959ca2cd6d77f22d4367 | 19,034 | cc | C++ | src/BGL/tests/test-007.cc | pbrier/Mandoline | bb517e7e5ba531d4e20c2474a53ee521dd1d1642 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2017-01-05T06:40:55.000Z | 2017-01-05T06:40:55.000Z | src/BGL/tests/test-007.cc | pbrier/Mandoline | bb517e7e5ba531d4e20c2474a53ee521dd1d1642 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/BGL/tests/test-007.cc | pbrier/Mandoline | bb517e7e5ba531d4e20c2474a53ee521dd1d1642 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #include <fstream>
#include "../BGL.h"
// Spiral
BGL::Point spiralPoints[] = {
BGL::Point(0.875, 1.875),
BGL::Point(0.875, 1.86954),
BGL::Point(0.87572, 1.8641),
BGL::Point(0.87713, 1.85882),
BGL::Point(0.87854, 1.85355),
BGL::Point(0.88064, 1.84848),
BGL::Point(0.88337, 1.84375),
BGL... | 31.829431 | 82 | 0.585636 | pbrier |
709bb3b55662bc9643a272c3ab2ea221e636766f | 1,170 | cpp | C++ | poppler-21.11.0/qt5/tests/check_actualtext.cpp | stackoverflowed/multimodal | 95668d0b34d297e96b5ef76521e587578ef2581f | [
"MIT"
] | null | null | null | poppler-21.11.0/qt5/tests/check_actualtext.cpp | stackoverflowed/multimodal | 95668d0b34d297e96b5ef76521e587578ef2581f | [
"MIT"
] | null | null | null | poppler-21.11.0/qt5/tests/check_actualtext.cpp | stackoverflowed/multimodal | 95668d0b34d297e96b5ef76521e587578ef2581f | [
"MIT"
] | null | null | null | #include <QtTest/QtTest>
#include <poppler-qt5.h>
#include <QtCore/QFile>
class TestActualText : public QObject
{
Q_OBJECT
public:
explicit TestActualText(QObject *parent = nullptr) : QObject(parent) { }
private slots:
void checkActualText1();
void checkActualText2();
private:
void checkActualTe... | 20.172414 | 98 | 0.704274 | stackoverflowed |
709c03a1dd3c7ddb7f5711c6d6704bde164e8560 | 744 | cpp | C++ | test/test_trace.cpp | daboehme/heffte | 52e710d5fc727be9091697b7350824b95a82a76c | [
"BSD-3-Clause"
] | null | null | null | test/test_trace.cpp | daboehme/heffte | 52e710d5fc727be9091697b7350824b95a82a76c | [
"BSD-3-Clause"
] | null | null | null | test/test_trace.cpp | daboehme/heffte | 52e710d5fc727be9091697b7350824b95a82a76c | [
"BSD-3-Clause"
] | null | null | null | /** @class */
/*
-- heFFTe --
Univ. of Tennessee, Knoxville
@date
*/
#include "test_fft3d.h"
void perform_tracing_test(MPI_Comm const comm){
all_tests<> name("tracing mechanism");
assert(mpi::comm_size(comm) == 2);
test_fft3d_arrays<backend::stock, double, 9, 9, 9>(comm);
}
int main(in... | 20.108108 | 101 | 0.650538 | daboehme |
709f3a404a19dbc307a665eedb21bddb9d3bfd21 | 242,533 | cpp | C++ | src/presolve/HPresolve.cpp | carlkl/HiGHS | 885c5de95a2b73269b0f885ea27234bb0c29c2a3 | [
"MIT"
] | 3 | 2019-04-17T11:34:07.000Z | 2021-05-21T05:56:42.000Z | src/presolve/HPresolve.cpp | coin-or/HiGHS | d7951b02d327549bccfc5b85a5696983792524d8 | [
"MIT"
] | 17 | 2020-03-30T19:16:59.000Z | 2020-12-15T01:01:42.000Z | src/presolve/HPresolve.cpp | mckib2/HiGHS | ab302f1c1dd7a81a5abc50fc86f852afc115424f | [
"MIT"
] | 1 | 2022-02-08T19:30:43.000Z | 2022-02-08T19:30:43.000Z | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the HiGHS linear optimization suite */
/* */
/* Written an... | 38.558506 | 80 | 0.609092 | carlkl |
709f8de2116cc49cd28534bbd173b027f957bcc2 | 39,090 | cpp | C++ | sort512perf.cpp | iraqigeek/avx-512-sort | aca18ffa45ebb667d1c27f449c5e656a7d1cce04 | [
"MIT"
] | 6 | 2020-06-16T08:49:41.000Z | 2022-02-07T04:12:19.000Z | sort512perf.cpp | iraqigeek/avx-512-sort | aca18ffa45ebb667d1c27f449c5e656a7d1cce04 | [
"MIT"
] | 1 | 2022-03-27T11:34:10.000Z | 2022-03-27T12:27:21.000Z | sort512perf.cpp | berenger-eu/avx-512-sort | 41e83110be1df5a7f19fdb97813a46ed3cd09ef3 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////
/// Berenger Bramas - 2016
/// berenger.bramas@mpcdf.mpg.de
/// MIT Licence
/// AVX 512 Sorting algorithm
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
/// Compilation :
/// Gcc : g+... | 40.216049 | 297 | 0.536019 | iraqigeek |
709fa7bbc002da3131a11a900d17e50c15a1d58e | 227,564 | cpp | C++ | src/bitcoin_main.cpp | gabriel-eiger/bitcredit | 4f8306d98116420e7e80008426006e9fd23ee7db | [
"MIT"
] | 1 | 2015-04-23T04:45:46.000Z | 2015-04-23T04:45:46.000Z | src/bitcoin_main.cpp | gabriel-eiger/bitcredit | 4f8306d98116420e7e80008426006e9fd23ee7db | [
"MIT"
] | null | null | null | src/bitcoin_main.cpp | gabriel-eiger/bitcredit | 4f8306d98116420e7e80008426006e9fd23ee7db | [
"MIT"
] | null | null | null | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bitcoin_main.h"
#include "addrman.h"
#include "alert.h"
#include "chain... | 40.50623 | 306 | 0.638414 | gabriel-eiger |
70a03ff858ec30d0e17ebcc8147f5a42be07e5ab | 12,658 | cc | C++ | hyperion/synthesis/ATermZernikeModel.cc | mpokorny/legms | 8ea5d1899ac5e2658ebe481b706430474685bb2d | [
"Apache-2.0"
] | 2 | 2021-02-03T00:40:55.000Z | 2021-02-03T13:30:31.000Z | hyperion/synthesis/ATermZernikeModel.cc | mpokorny/legms | 8ea5d1899ac5e2658ebe481b706430474685bb2d | [
"Apache-2.0"
] | null | null | null | hyperion/synthesis/ATermZernikeModel.cc | mpokorny/legms | 8ea5d1899ac5e2658ebe481b706430474685bb2d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2020 Associated Universities, Inc. Washington DC, USA.
*
* 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 re... | 31.566085 | 80 | 0.672776 | mpokorny |
70a31aea3c0ff963dcdf9facfd3d12d2d23ab5ef | 21,945 | cpp | C++ | XMPFiles/source/FormatSupport/PSIR_FileWriter.cpp | honpong/exempi | 463eae525089208448dc533f32ecee966e5119c2 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 13 | 2015-04-10T16:31:04.000Z | 2021-10-12T18:01:22.000Z | XMPFiles/source/FormatSupport/PSIR_FileWriter.cpp | honpong/exempi | 463eae525089208448dc533f32ecee966e5119c2 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 7 | 2016-06-05T22:12:29.000Z | 2018-09-25T23:15:52.000Z | XMPFiles/source/FormatSupport/PSIR_FileWriter.cpp | honpong/exempi | 463eae525089208448dc533f32ecee966e5119c2 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 11 | 2015-05-07T06:25:51.000Z | 2021-12-23T19:43:35.000Z | // =================================================================================================
// ADOBE SYSTEMS INCORPORATED
// Copyright 2006 Adobe Systems Incorporated
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe lic... | 35.625 | 111 | 0.62365 | honpong |
70a3a2dbf080862105bc3e274669988a3fd85e53 | 10,503 | hpp | C++ | src/tablestore/core/impl/async_batch_writer.hpp | TimeExceed/aliyun-tablestore-cpp-sdk | f8d2fdf500badf70073dff4e21a5d2d7aa7d3853 | [
"BSD-3-Clause"
] | 2 | 2020-02-24T06:51:55.000Z | 2020-04-24T14:40:10.000Z | src/tablestore/core/impl/async_batch_writer.hpp | TimeExceed/aliyun-tablestore-cpp-sdk | f8d2fdf500badf70073dff4e21a5d2d7aa7d3853 | [
"BSD-3-Clause"
] | null | null | null | src/tablestore/core/impl/async_batch_writer.hpp | TimeExceed/aliyun-tablestore-cpp-sdk | f8d2fdf500badf70073dff4e21a5d2d7aa7d3853 | [
"BSD-3-Clause"
] | 1 | 2020-02-24T06:51:57.000Z | 2020-02-24T06:51:57.000Z | #pragma once
#ifndef TABLESTORE_CORE_IMPL_BATCH_WRITER_HPP
#define TABLESTORE_CORE_IMPL_BATCH_WRITER_HPP
/*
BSD 3-Clause License
Copyright (c) 2017, Alibaba Cloud
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions ... | 32.119266 | 93 | 0.696087 | TimeExceed |
70a5beb15ba64ec1bd46bf663ef20d4eb4b31f11 | 27,406 | cpp | C++ | src/core/SkColorSpaceXform.cpp | lightbell/skia | 37aea440fdb0257a4cffb0b41ab9745a9fc4d4fa | [
"BSD-3-Clause"
] | 46 | 2019-06-25T11:05:49.000Z | 2021-12-31T04:47:53.000Z | src/core/SkColorSpaceXform.cpp | lightbell/skia | 37aea440fdb0257a4cffb0b41ab9745a9fc4d4fa | [
"BSD-3-Clause"
] | 5 | 2019-10-16T06:54:37.000Z | 2020-02-06T08:22:40.000Z | src/core/SkColorSpaceXform.cpp | lightbell/skia | 37aea440fdb0257a4cffb0b41ab9745a9fc4d4fa | [
"BSD-3-Clause"
] | 18 | 2019-05-22T09:29:23.000Z | 2021-04-28T02:12:42.000Z | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkColorData.h"
#include "SkColorSpacePriv.h"
#include "SkColorSpaceXformPriv.h"
#include "SkColorSpaceXform_A2B.h"
#include "SkColorSpaceXform_Base.h"
#include "SkCo... | 44.854337 | 100 | 0.604539 | lightbell |
70a74a702a4f2d2654800630807bc4ea9a4fb4f2 | 2,411 | cpp | C++ | Worksheets-Projects-Solutions/Week-9/infile/infile-main.cpp | joegreene/2015-Fall-CS-121 | cfcb2e57c0d6d5043d8cdb318131ecb00855389c | [
"MIT"
] | null | null | null | Worksheets-Projects-Solutions/Week-9/infile/infile-main.cpp | joegreene/2015-Fall-CS-121 | cfcb2e57c0d6d5043d8cdb318131ecb00855389c | [
"MIT"
] | null | null | null | Worksheets-Projects-Solutions/Week-9/infile/infile-main.cpp | joegreene/2015-Fall-CS-121 | cfcb2e57c0d6d5043d8cdb318131ecb00855389c | [
"MIT"
] | null | null | null | /*
Program: ifstream-example
Programmer: Everyone who was at the SI session on 10/20/2015.
Notes:
- ifstream works just like cin, except you have to see if you've opened your file first
before actually working with it.
- This program's purpose is to show briefly how to work with ifstream.
- T... | 32.146667 | 98 | 0.666528 | joegreene |
70a9a6a87f7ade6f891a5c942dfc2fe31e671c78 | 4,486 | cpp | C++ | LibFoundation/Distance/Wm4DistVector3Rectangle3.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 3 | 2021-08-02T04:03:03.000Z | 2022-01-04T07:31:20.000Z | LibFoundation/Distance/Wm4DistVector3Rectangle3.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | null | null | null | LibFoundation/Distance/Wm4DistVector3Rectangle3.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 5 | 2019-10-13T02:44:19.000Z | 2021-08-02T04:03:10.000Z | // Geometric Tools, Inc.
// http://www.geometrictools.com
// Copyright (c) 1998-2006. All Rights Reserved
//
// The Wild Magic Version 4 Foundation Library source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4FoundationLicense.pdf
// and may not be copied ... | 33.984848 | 78 | 0.554169 | wjezxujian |
70a9f96159a99f77b150b3fe5958f7c3eee4847c | 1,105 | cpp | C++ | devtools/lit/tests/Inputs/shtest-run-at-line/litcfg.cpp | PHP-OPEN-HUB/polarphp | 70ff4046e280fd99d718d4761686168fa8012aa5 | [
"PHP-3.01"
] | null | null | null | devtools/lit/tests/Inputs/shtest-run-at-line/litcfg.cpp | PHP-OPEN-HUB/polarphp | 70ff4046e280fd99d718d4761686168fa8012aa5 | [
"PHP-3.01"
] | null | null | null | devtools/lit/tests/Inputs/shtest-run-at-line/litcfg.cpp | PHP-OPEN-HUB/polarphp | 70ff4046e280fd99d718d4761686168fa8012aa5 | [
"PHP-3.01"
] | null | null | null | // This source file is part of the polarphp.org open source project
//
// Copyright (c) 2017 - 2019 polarphp software foundation
// Copyright (c) 2017 - 2019 zzu_softboy <zzu_softboy@163.com>
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://polarphp.org/LICENSE.txt for license info... | 33.484848 | 123 | 0.741176 | PHP-OPEN-HUB |
70ad41b6b0d5342afd2d70c3ccd59f72c7390883 | 230 | hpp | C++ | modules/perspective_square.hpp | davidscholberg/opengl-es-test | 9792d6d6f4f01fb91a8ec59ecf0fd02cd019db79 | [
"BSD-2-Clause"
] | null | null | null | modules/perspective_square.hpp | davidscholberg/opengl-es-test | 9792d6d6f4f01fb91a8ec59ecf0fd02cd019db79 | [
"BSD-2-Clause"
] | null | null | null | modules/perspective_square.hpp | davidscholberg/opengl-es-test | 9792d6d6f4f01fb91a8ec59ecf0fd02cd019db79 | [
"BSD-2-Clause"
] | null | null | null | #ifndef PERSPECTIVE_SQUARE_HPP_
#define PERSPECTIVE_SQUARE_HPP_
#include <string>
namespace perspective_square {
extern const std::string module_name;
int run(int argc, char **argv);
}
#endif // PERSPECTIVE_SQUARE_HPP_
| 19.166667 | 41 | 0.773913 | davidscholberg |
70af289383215cb471eef3a604a285c592c23698 | 1,702 | cpp | C++ | ftnoir_tracker_hydra/ftnoir_tracker_hydra.cpp | MaximeMorel/opentrack | d83db9c7cfd7ee12366032b9b0796dc63acdabb3 | [
"ISC"
] | null | null | null | ftnoir_tracker_hydra/ftnoir_tracker_hydra.cpp | MaximeMorel/opentrack | d83db9c7cfd7ee12366032b9b0796dc63acdabb3 | [
"ISC"
] | null | null | null | ftnoir_tracker_hydra/ftnoir_tracker_hydra.cpp | MaximeMorel/opentrack | d83db9c7cfd7ee12366032b9b0796dc63acdabb3 | [
"ISC"
] | null | null | null | /* Copyright: "i couldn't care less what anyone does with the 5 lines of code i wrote" - mm0zct */
#include "ftnoir_tracker_hydra.h"
#include "facetracknoir/global-settings.h"
#include "facetracknoir/rotation.h"
#include <cstdio>
#ifdef _WIN32
# define SIXENSE_STATIC_LIB
# define SIXENSE_UTILS_STATIC_LIB
#endif
#in... | 23 | 98 | 0.663337 | MaximeMorel |
70b4e2c88571662462c7803cf844c4b19b4e5324 | 583 | cpp | C++ | isis/src/control/apps/cnetbin2pvl/main.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 134 | 2018-01-18T00:16:24.000Z | 2022-03-24T03:53:33.000Z | isis/src/control/apps/cnetbin2pvl/main.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 3,825 | 2017-12-11T21:27:34.000Z | 2022-03-31T21:45:20.000Z | isis/src/control/apps/cnetbin2pvl/main.cpp | jlaura/isis3 | 2c40e08caed09968ea01d5a767a676172ad20080 | [
"CC0-1.0"
] | 164 | 2017-11-30T21:15:44.000Z | 2022-03-23T10:22:29.000Z | #include "Isis.h"
/** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-... | 26.5 | 75 | 0.74271 | kdl222 |
70b68e09f2f24dcf543f5efcf95d9d52ae28761f | 3,356 | hpp | C++ | modules/boost/simd/base/include/boost/simd/arithmetic/functions/simd/sse/ssse3/abs.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/boost/simd/base/include/boost/simd/arithmetic/functions/simd/sse/ssse3/abs.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/boost/simd/base/include/boost/simd/arithmetic/functions/simd/sse/ssse3/abs.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2012 - 2014 MetaScale SAS
//
// Distributed under the Boost Softw... | 33.227723 | 85 | 0.494338 | psiha |
70b7609f8de6b50abefa91d2380db190bdecd8c8 | 130 | hxx | C++ | src/Providers/UNIXProviders/NamespaceInManager/UNIX_NamespaceInManager_ZOS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/NamespaceInManager/UNIX_NamespaceInManager_ZOS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/NamespaceInManager/UNIX_NamespaceInManager_ZOS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_ZOS
#ifndef __UNIX_NAMESPACEINMANAGER_PRIVATE_H
#define __UNIX_NAMESPACEINMANAGER_PRIVATE_H
#endif
#endif
| 10.833333 | 43 | 0.853846 | brunolauze |
70b8ba88f18cd4ab540f9202d9f343ba34bf67e2 | 1,046 | cpp | C++ | src/libclipper/test/persistent_state_test.cpp | yujialuo/Clipper | 7269521f003b542b60d13f3a69276b62f610ef33 | [
"Apache-2.0"
] | 2 | 2017-12-28T14:23:19.000Z | 2018-01-30T23:37:27.000Z | src/libclipper/test/persistent_state_test.cpp | yujialuo/Clipper | 7269521f003b542b60d13f3a69276b62f610ef33 | [
"Apache-2.0"
] | null | null | null | src/libclipper/test/persistent_state_test.cpp | yujialuo/Clipper | 7269521f003b542b60d13f3a69276b62f610ef33 | [
"Apache-2.0"
] | 3 | 2018-01-30T23:40:27.000Z | 2018-09-19T21:07:51.000Z | #include <gtest/gtest.h>
#include <clipper/config.hpp>
#include <clipper/persistent_state.hpp>
#include <clipper/test_constants.hpp>
using namespace clipper;
namespace {
class StateDBTest : public ::testing::Test {
public:
StateDBTest() {}
StateDB db_;
};
TEST_F(StateDBTest, TestSinglePutGet) {
StateKey ke... | 23.244444 | 57 | 0.66826 | yujialuo |
70be7cceca96fe491293fcda03641be1bb2e0c51 | 3,052 | cpp | C++ | 2019/stacy/day5/helper.cpp | BenningtonComputing/adventofcode | f162163862e122ac15495e14d138601379fab382 | [
"MIT"
] | null | null | null | 2019/stacy/day5/helper.cpp | BenningtonComputing/adventofcode | f162163862e122ac15495e14d138601379fab382 | [
"MIT"
] | null | null | null | 2019/stacy/day5/helper.cpp | BenningtonComputing/adventofcode | f162163862e122ac15495e14d138601379fab382 | [
"MIT"
] | 1 | 2021-12-27T09:31:30.000Z | 2021-12-27T09:31:30.000Z | //
// Created by stacychoco on 8/6/20.
//
#include "helper.h"
string read_file(const string& path) {
// this function reads contents of a file into a string
string str;
// opens file
ifstream input;
input.open(path);
// reads contents of file into string
input >> str;
// closes file
... | 21.342657 | 63 | 0.418087 | BenningtonComputing |
70c18ba8c2e8e90463b807265530a6054482aa21 | 1,024 | cpp | C++ | problems/atcoder/arc124/a---lr-constraints/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/atcoder/arc124/a---lr-constraints/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/atcoder/arc124/a---lr-constraints/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#ifdef LOCAL
#include "code/formatting.hpp"
#else
#define debug(...) (void)0
#endif
using namespace std;
static_assert(sizeof(int) == 4 && sizeof(long) == 8);
int main() {
ios::sync_with_stdio(false), cin.tie(nullptr);
int N, K;
cin >> N >> K;
vector<pair<string, int>> rests(K... | 23.272727 | 53 | 0.469727 | brunodccarvalho |
70c1f5ecb2f32a175c5527c71259652881bd9015 | 3,451 | cpp | C++ | Lab 1/SequentialList.cpp | mhyeun/MTE-140-Labs | 2d4adaa65e0583916be71fc11c26a1f9a95cdf9b | [
"BSD-4-Clause-UC"
] | null | null | null | Lab 1/SequentialList.cpp | mhyeun/MTE-140-Labs | 2d4adaa65e0583916be71fc11c26a1f9a95cdf9b | [
"BSD-4-Clause-UC"
] | null | null | null | Lab 1/SequentialList.cpp | mhyeun/MTE-140-Labs | 2d4adaa65e0583916be71fc11c26a1f9a95cdf9b | [
"BSD-4-Clause-UC"
] | null | null | null | // .cpp files contain code definitions for methods that have been declared
// in the according .hpp file. The skeleton has been set up here for you.
// That is, the methods have been initiated, and your mission, should you
// choose to accept it (which you should for marks), is to fill in each method
// with the a... | 20.789157 | 85 | 0.631991 | mhyeun |
70c3386de6a24d62ed646837c69513cb5028093e | 21 | cpp | C++ | core/src/tnahpch.cpp | BryceStandley/TNAH | 909ba9cf9f04632a3b518646c3af39752bd9d407 | [
"MIT"
] | 1 | 2021-11-08T09:44:40.000Z | 2021-11-08T09:44:40.000Z | core/src/tnahpch.cpp | BryceStandley/TNAH | 909ba9cf9f04632a3b518646c3af39752bd9d407 | [
"MIT"
] | null | null | null | core/src/tnahpch.cpp | BryceStandley/TNAH | 909ba9cf9f04632a3b518646c3af39752bd9d407 | [
"MIT"
] | null | null | null | #include "tnahpch.h"
| 10.5 | 20 | 0.714286 | BryceStandley |
70c498ad936ff013c4df7dfa88fcab1a624ac001 | 2,384 | cpp | C++ | framework/tests/decoder/decoderUnitTest.cpp | skufly/CicadaPlayer | d15880e28ad856979e2dec88930116b58eae9d06 | [
"MIT"
] | 3 | 2020-03-28T08:21:09.000Z | 2020-10-25T23:10:43.000Z | framework/tests/decoder/decoderUnitTest.cpp | skufly/CicadaPlayer | d15880e28ad856979e2dec88930116b58eae9d06 | [
"MIT"
] | 1 | 2020-06-13T14:36:25.000Z | 2020-06-13T14:36:25.000Z | framework/tests/decoder/decoderUnitTest.cpp | skufly/CicadaPlayer | d15880e28ad856979e2dec88930116b58eae9d06 | [
"MIT"
] | 1 | 2020-05-26T22:56:56.000Z | 2020-05-26T22:56:56.000Z | //
// Created by moqi on 2019/11/15.
//
#include <data_source/dataSourcePrototype.h>
#include <demuxer/demuxer_service.h>
#include <codec/decoderFactory.h>
#include <utils/timer.h>
#include "gtest/gtest.h"
#include <string>
using namespace Cicada;
using namespace std;
static void test_codec(const string &url, AFCode... | 24.326531 | 81 | 0.602349 | skufly |
70c9d17b2135245da7dd66a65d5507adae21489c | 364 | cpp | C++ | Chapter07-SFINAE-and-Overload-Resolution-Management/overload6.cpp | shekerkamma/Hands-On-Design-Patterns-with-CPP | 5f6aa05ac44491a92fef6e38179d1bd3c8e39347 | [
"MIT"
] | 1 | 2020-11-23T21:57:24.000Z | 2020-11-23T21:57:24.000Z | Chapter07-SFINAE-and-Overload-Resolution-Management/overload6.cpp | shekerkamma/Hands-On-Design-Patterns-with-CPP | 5f6aa05ac44491a92fef6e38179d1bd3c8e39347 | [
"MIT"
] | null | null | null | Chapter07-SFINAE-and-Overload-Resolution-Management/overload6.cpp | shekerkamma/Hands-On-Design-Patterns-with-CPP | 5f6aa05ac44491a92fef6e38179d1bd3c8e39347 | [
"MIT"
] | 1 | 2022-01-21T23:14:24.000Z | 2022-01-21T23:14:24.000Z | #include <iostream>
void f(int i, int j = 0) { std::cout << "f(int, int)" << std::endl; }
template <typename T>
void f(T i, T* p = NULL)
{
std::cout << "f(T, T*)" << std::endl;
}
void f(...) { std::cout << "f(...)" << std::endl; }
int main()
{
int i;
f(5); // f(int, int)
f(5l); // f(T, T*)
f(5, ... | 17.333333 | 69 | 0.423077 | shekerkamma |
70ca955b72a2205f0ad93be82bd7cbbb5b3efef6 | 21,152 | cpp | C++ | Applications/cmd_engine/main.cpp | jmhong-simulation/LithopiaOpen | 49c4c0863714ee11730e4807eb10c1e1ebb520f1 | [
"MIT"
] | 8 | 2017-06-01T07:00:10.000Z | 2021-12-16T11:01:29.000Z | Applications/cmd_engine/main.cpp | jmhong-simulation/LithopiaOpen | 49c4c0863714ee11730e4807eb10c1e1ebb520f1 | [
"MIT"
] | null | null | null | Applications/cmd_engine/main.cpp | jmhong-simulation/LithopiaOpen | 49c4c0863714ee11730e4807eb10c1e1ebb520f1 | [
"MIT"
] | null | null | null | // The Lithopia project initiated by Jeong-Mo Hong for 3D Printing Community.
// Copyright (c) 2015 Jeong-Mo Hong - All Rights Reserved.
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
#include "../Engine/Framework/WORLD.h"
#inclu... | 33.735247 | 176 | 0.695915 | jmhong-simulation |
70cc9e2e511096820b5482766c4eacb392257f9a | 4,514 | cpp | C++ | source/geometry/GeometryELU.cpp | JujuDel/MNN | 8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a | [
"Apache-2.0"
] | 6,958 | 2019-05-06T02:38:02.000Z | 2022-03-31T18:08:48.000Z | source/geometry/GeometryELU.cpp | JujuDel/MNN | 8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a | [
"Apache-2.0"
] | 1,775 | 2019-05-06T04:40:19.000Z | 2022-03-30T15:39:24.000Z | source/geometry/GeometryELU.cpp | JujuDel/MNN | 8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a | [
"Apache-2.0"
] | 1,511 | 2019-05-06T02:38:05.000Z | 2022-03-31T16:59:39.000Z | //
// GeometryELU.cpp
// MNN
//
// Created by MNN on 2020/07/23.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "geometry/GeometryComputer.hpp"
#include "core/OpCommonUtils.hpp"
#include "geometry/GeometryComputerUtils.hpp"
namespace MNN {
static void initTensor(std::shared_ptr<Tensor> tensor, Te... | 40.666667 | 168 | 0.58817 | JujuDel |
70cd88d5238c1da6f529e5f0b59013eb332317de | 1,695 | cpp | C++ | CudaMatrixLibrairy/main.cpp | adamczykpiotr/CudaMatrixLibrairy | bc4c2504c2f3d29490e368d9e2726a5e08167bca | [
"MIT"
] | 1 | 2020-05-30T19:10:15.000Z | 2020-05-30T19:10:15.000Z | CudaMatrixLibrairy/main.cpp | adamczykpiotr/CudaMatrixLibrary | bc4c2504c2f3d29490e368d9e2726a5e08167bca | [
"MIT"
] | null | null | null | CudaMatrixLibrairy/main.cpp | adamczykpiotr/CudaMatrixLibrary | bc4c2504c2f3d29490e368d9e2726a5e08167bca | [
"MIT"
] | null | null | null | #include <iostream>
#include "Utils.h"
#include "Launcher.h"
//http://www.bluebit.gr/matrix-calculator/calculate.aspx
int main() {
Utils::validateCUDA();
unsigned int rows0, cols0, rows1, cols1;
rows0 = 2048u;
cols0 = 1024u;
rows1 = 1024u;
cols1 = 512u;
// allocate memory in host RAM
float* hostMatrix... | 26.904762 | 82 | 0.690265 | adamczykpiotr |
70d02a8f56943159d236253974fe1b914cd85d29 | 3,180 | hpp | C++ | lib/queue/queue.hpp | LuLStackCoder/My-implementation-STL | 65ef1af97e53f82eba09dc7149f2b809998b8e66 | [
"MIT"
] | 1 | 2021-03-08T14:17:53.000Z | 2021-03-08T14:17:53.000Z | lib/queue/queue.hpp | LuLStackCoder/My-implementation-STL | 65ef1af97e53f82eba09dc7149f2b809998b8e66 | [
"MIT"
] | null | null | null | lib/queue/queue.hpp | LuLStackCoder/My-implementation-STL | 65ef1af97e53f82eba09dc7149f2b809998b8e66 | [
"MIT"
] | null | null | null | #ifndef QUEUE_HPP
#define QUEUE_HPP
#include <stdexcept>
namespace lib {
// INTERFACE
template <typename T>
class Node {
public:
Node(T data, Node* ptr);
T item;
Node* next;
};
template <typename T>
class Queue {
public:
Queue();
~Queue();
void push(T data);
T pop();
T& front();
... | 18.381503 | 78 | 0.55283 | LuLStackCoder |
70d44e82ef67909c461bbee68b0b08f63a58efb3 | 47,611 | cpp | C++ | src/Network/TCPClient/ClusterNodeManagementClient.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | 1 | 2019-04-29T05:31:32.000Z | 2019-04-29T05:31:32.000Z | src/Network/TCPClient/ClusterNodeManagementClient.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | null | null | null | src/Network/TCPClient/ClusterNodeManagementClient.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | null | null | null | /*
* ClusterNodeManagementClient.cpp
*
* Created on: 22.03.2013
* Author: Darius
*/
#include "ClusterNodeManagementClient.h"
#include "../../Network/ConnectionManager.h"
#include "../../Toolbox.h"
#include "../../Scheduling/Process.h"
#include "../../Threading/MutexLocker.h"
#include "../SharedMemSHUComStru... | 33.13222 | 168 | 0.742896 | dmalysiak |
70d543d341dd092c98d810cc3feb5aee62d33e7f | 797 | cpp | C++ | kernel/node/Socket.cpp | harsh-kakasaniya55/skift | 79ccaf5398cfb7921599105607ad6688ece452d8 | [
"MIT"
] | null | null | null | kernel/node/Socket.cpp | harsh-kakasaniya55/skift | 79ccaf5398cfb7921599105607ad6688ece452d8 | [
"MIT"
] | null | null | null | kernel/node/Socket.cpp | harsh-kakasaniya55/skift | 79ccaf5398cfb7921599105607ad6688ece452d8 | [
"MIT"
] | null | null | null | #include <libsystem/Assert.h>
#include "kernel/node/Connection.h"
#include "kernel/node/Socket.h"
FsSocket::FsSocket() : FsNode(FILE_TYPE_SOCKET)
{
_pending = list_create();
}
static void deref_connection(FsNode *node)
{
node->deref();
}
FsSocket::~FsSocket()
{
list_destroy_with_callback(_pending, (List... | 17.711111 | 87 | 0.693852 | harsh-kakasaniya55 |
70e0a3d60152b800358798561a57b49c116e8afc | 14,742 | cpp | C++ | geodrawer/complexdrawer.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | geodrawer/complexdrawer.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | geodrawer/complexdrawer.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | #include "kernel.h"
#include "errorobject.h"
#include "rootdrawer.h"
using namespace Ilwis;
using namespace Geodrawer;
ComplexDrawer::ComplexDrawer(const QString &name,
DrawerInterface* parentDrawer,
RootDrawer *rootdrawer,
const I... | 30.970588 | 144 | 0.586555 | ridoo |
70e0d0299c250a51d50a6a012cdf18cf364cefba | 10,988 | cxx | C++ | test/unity/toolkits/drawing_classifier/test_drawing_classifier.cxx | pappasG/turicreate | 494e313957a6c01333628b182a7d5bc6efea18f8 | [
"BSD-3-Clause"
] | null | null | null | test/unity/toolkits/drawing_classifier/test_drawing_classifier.cxx | pappasG/turicreate | 494e313957a6c01333628b182a7d5bc6efea18f8 | [
"BSD-3-Clause"
] | null | null | null | test/unity/toolkits/drawing_classifier/test_drawing_classifier.cxx | pappasG/turicreate | 494e313957a6c01333628b182a7d5bc6efea18f8 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright © 2019 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at
* https://opensource.org/licenses/BSD-3-Clause
*/
#define BOOST_TEST_MODULE test_drawing_classifier
#include <toolkits/drawing_classifier/drawing... | 39.811594 | 80 | 0.717055 | pappasG |
70e33b5c0f4ec5a6aeaba32d30780757810d5b83 | 4,894 | cc | C++ | crypto/quic_tls.cc | wongsingfo/libtransport | dfdaa125f4de3d0de331706c226f531a34301d00 | [
"MIT"
] | 1 | 2020-04-10T06:00:57.000Z | 2020-04-10T06:00:57.000Z | crypto/quic_tls.cc | wongsingfo/quic-lab | dfdaa125f4de3d0de331706c226f531a34301d00 | [
"MIT"
] | null | null | null | crypto/quic_tls.cc | wongsingfo/quic-lab | dfdaa125f4de3d0de331706c226f531a34301d00 | [
"MIT"
] | null | null | null | //
// Created by Chengke Wong on 2020/4/24.
//
#include "openssl/ssl.h"
#include "quic_tls.h"
#include "util/string_raw.h"
#include "crypto/aead.h"
using namespace crypto;
namespace crypto {
// https://commondatastorage.googleapis.com/chromium-boringssl-docs/ssl.h.html#QUIC-integration
static int QUIC_EX_DATA_IND... | 30.974684 | 95 | 0.693502 | wongsingfo |
70e4d7d3643cf9f21359d2ba16e29da431295d6e | 4,007 | cpp | C++ | src/corehost/corehost.cpp | mmitche/cli | 129bd03098739a9fa5709a3f2b02b92b77428b69 | [
"MIT"
] | null | null | null | src/corehost/corehost.cpp | mmitche/cli | 129bd03098739a9fa5709a3f2b02b92b77428b69 | [
"MIT"
] | null | null | null | src/corehost/corehost.cpp | mmitche/cli | 129bd03098739a9fa5709a3f2b02b92b77428b69 | [
"MIT"
] | null | null | null | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "trace.h"
#include "pal.h"
#include "utils.h"
#include "libhost.h"
extern int corehost_main(const int argc, const pal::char_t* argv[]);... | 32.056 | 115 | 0.650362 | mmitche |
70e58e70c7fb6b1bb8066c6c6feaad7beac1b6ef | 2,228 | cpp | C++ | test/chrono/cpu_time.cpp | BryanFlynt/xstd | 4c11f614b828a93e20cb35903c179cfd52fef47e | [
"Apache-2.0"
] | null | null | null | test/chrono/cpu_time.cpp | BryanFlynt/xstd | 4c11f614b828a93e20cb35903c179cfd52fef47e | [
"Apache-2.0"
] | null | null | null | test/chrono/cpu_time.cpp | BryanFlynt/xstd | 4c11f614b828a93e20cb35903c179cfd52fef47e | [
"Apache-2.0"
] | null | null | null |
/**
* \file cpu_time.cpp
* \author Bryan Flynt
* \date Oct 07, 2021
* \copyright Copyright (C) 2021 Bryan Flynt - All Rights Reserved
*/
#include "xstd/detail/chrono/cpu_time.hpp"
#include "catch.hpp"
#include <iostream>
long fibonacci(unsigned n) {
if (n < 2) return n;
return fibonac... | 35.365079 | 107 | 0.624776 | BryanFlynt |
70e60be3f9a8cf83e230bfbf352688a51ec3529a | 233 | cpp | C++ | src/deltatime.cpp | Kuxe/swordbow-magic | 22c4bde7fe70728f631bfa77765dbe8ea121df33 | [
"MIT"
] | 1 | 2020-03-29T16:20:02.000Z | 2020-03-29T16:20:02.000Z | src/deltatime.cpp | Kuxe/swordbow-magic | 22c4bde7fe70728f631bfa77765dbe8ea121df33 | [
"MIT"
] | 47 | 2015-01-02T16:54:57.000Z | 2015-10-08T21:09:06.000Z | src/deltatime.cpp | Kuxe/swordbow-magic | 22c4bde7fe70728f631bfa77765dbe8ea121df33 | [
"MIT"
] | 2 | 2015-01-02T17:23:18.000Z | 2020-03-29T16:20:04.000Z | #include "deltatime.hpp"
void DeltaTime::start() {
timer.start();
}
void DeltaTime::stop() {
timer.stop();
}
float DeltaTime::delta() const {
return timer.delta();
}
float DeltaTime::elapsed() const {
return timer.elapsed();
}
| 14.5625 | 34 | 0.67382 | Kuxe |
70e6eb0fe6f00c5492b268a525c387822f349cca | 2,539 | hpp | C++ | include/boost/simd/arch/common/simd/function/insert.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/arch/common/simd/function/insert.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/arch/common/simd/function/insert.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | //==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//===========================... | 35.760563 | 106 | 0.554549 | yaeldarmon |
70e904fb79d3075e4e95ebfc7ed418fe94ef6dd4 | 8,542 | hpp | C++ | lib/core/include/transport/default_transport.hpp | mbwatson/irods | c242db4cb20155500767d76b62bcbc4d4032b6cf | [
"BSD-3-Clause"
] | null | null | null | lib/core/include/transport/default_transport.hpp | mbwatson/irods | c242db4cb20155500767d76b62bcbc4d4032b6cf | [
"BSD-3-Clause"
] | null | null | null | lib/core/include/transport/default_transport.hpp | mbwatson/irods | c242db4cb20155500767d76b62bcbc4d4032b6cf | [
"BSD-3-Clause"
] | null | null | null | #ifndef IRODS_IO_DEFAULT_TRANSPORT_HPP
#define IRODS_IO_DEFAULT_TRANSPORT_HPP
#undef NAMESPACE_IMPL
#undef rxComm
#undef rxDataObjOpen
#undef rxDataObjRead
#undef rxDataObjWrite
#undef rxDataObjClose
#undef rxDataObjLseek
// clang-format off
#ifdef IRODS_IO_TRANSPORT_ENABLE_SERVER_SIDE_API
#include "rsDataObjOpen... | 28.858108 | 97 | 0.546008 | mbwatson |
70e9713b0e7b91cc1396f7778d584bf098645e34 | 358 | hpp | C++ | hipacc_kernels/point/channelextract_3_u8_uchar4.hpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | 1 | 2021-06-08T08:58:54.000Z | 2021-06-08T08:58:54.000Z | hipacc_kernels/point/channelextract_3_u8_uchar4.hpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | 1 | 2021-11-13T14:55:55.000Z | 2021-11-13T14:55:55.000Z | hipacc_kernels/point/channelextract_3_u8_uchar4.hpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | null | null | null | class ChannelExtract_3_u8_uchar4 : public Kernel<unsigned char> {
private:
Accessor<uchar4> &input;
public:
ChannelExtract_3_u8_uchar4(IterationSpace<unsigned char> &iter, Accessor<uchar4> &input)
: Kernel(iter), input(input){
add_accessor(&input);
}
void kernel() {
output() ... | 23.866667 | 92 | 0.656425 | HipaccVX |
70f07de7448415e2d1f60b9b22674deae638a5f8 | 5,412 | cpp | C++ | Source/Utilities/UT/File-UT.cpp | mdahlgrengadd/AudioLib-Emscripten | 5ce6c31650c1e285e50badfead170e12b6c54a13 | [
"MIT",
"Unlicense"
] | 7 | 2017-12-08T19:52:01.000Z | 2022-01-16T19:52:29.000Z | Source/Utilities/UT/File-UT.cpp | mdahlgrengadd/AudioLib-Emscripten | 5ce6c31650c1e285e50badfead170e12b6c54a13 | [
"MIT",
"Unlicense"
] | null | null | null | Source/Utilities/UT/File-UT.cpp | mdahlgrengadd/AudioLib-Emscripten | 5ce6c31650c1e285e50badfead170e12b6c54a13 | [
"MIT",
"Unlicense"
] | 4 | 2018-04-02T09:48:07.000Z | 2022-01-16T19:52:32.000Z | /*
* AudioLib
*
* Copyright (c) 2017 - Terence M. Darwen - tmdarwen.com
*
* The 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 l... | 32.407186 | 100 | 0.707132 | mdahlgrengadd |
70f108c544c99b790568362e9e078f12489f6eb2 | 627 | cpp | C++ | profit loss.cpp | tanyakumari18/tanyaday1cdev | dce7d95ca1f005fd0187db32cda3dfece32d0df8 | [
"Apache-2.0"
] | null | null | null | profit loss.cpp | tanyakumari18/tanyaday1cdev | dce7d95ca1f005fd0187db32cda3dfece32d0df8 | [
"Apache-2.0"
] | null | null | null | profit loss.cpp | tanyakumari18/tanyaday1cdev | dce7d95ca1f005fd0187db32cda3dfece32d0df8 | [
"Apache-2.0"
] | null | null | null | #include<stdio.h>
int main()
{
float Unit_Price, Sales_Amount, Amount;
printf("\n Please Enter the Actrual Product Cost : ");
scanf("%f", &Unit_Price);
printf("\n Please Enter the Sale Price (or Selling Price) : ");
scanf("%f", &Sales_Amount);
if (Sales_Amount > Unit_Price)
... | 22.392857 | 68 | 0.577352 | tanyakumari18 |
70f948e2d3f9b1383f5f4db765c972ab2962813a | 2,049 | hpp | C++ | src/vendor/cget/cget/pkg/chriskohlhoff__asio/install/include/asio/experimental/detail/channel_payload.hpp | watr/Karabiner-Elements | 6b38cc0bf56e67373b46ec1fe06fc4e5b57bcd82 | [
"Unlicense"
] | 3 | 2022-03-12T14:11:56.000Z | 2022-03-21T00:48:06.000Z | src/vendor/cget/cget/pkg/chriskohlhoff__asio/install/include/asio/experimental/detail/channel_payload.hpp | watr/Karabiner-Elements | 6b38cc0bf56e67373b46ec1fe06fc4e5b57bcd82 | [
"Unlicense"
] | 2 | 2022-03-22T21:28:05.000Z | 2022-03-22T21:28:06.000Z | core/include/asio/experimental/detail/channel_payload.hpp | Damien-Ginesy/Projet_S8 | 475e348c23110459495a9ccfb3cd0a374dd5f601 | [
"MIT"
] | null | null | null | //
// experimental/detail/channel_payload.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_... | 21.797872 | 79 | 0.716447 | watr |
70f997bf5e61df49941baa098ab7f32a715b53d7 | 10,313 | cpp | C++ | library/src/blas_ex/rocblas_trsm_ex.cpp | settle/rocBLAS | dfd602a48b707630b0d3382b59cac475e5692ff4 | [
"MIT"
] | null | null | null | library/src/blas_ex/rocblas_trsm_ex.cpp | settle/rocBLAS | dfd602a48b707630b0d3382b59cac475e5692ff4 | [
"MIT"
] | null | null | null | library/src/blas_ex/rocblas_trsm_ex.cpp | settle/rocBLAS | dfd602a48b707630b0d3382b59cac475e5692ff4 | [
"MIT"
] | null | null | null | /* ************************************************************************
* Copyright 2016 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include <hip/hip_runtime.h>
#include "rocblas.h"
#include "Tensile.h"
#include "TensileTypes.h"
#include "status.h"... | 39.362595 | 97 | 0.35431 | settle |
cb028662a0a6a48ac15feb9db7f744dc60679bc3 | 2,000 | hpp | C++ | Glitter/Headers/hyperedge.hpp | alexxxzzz/hypetess | 25d288c2583ffc81408db5331a320b5ce61b761a | [
"Unlicense",
"MIT"
] | null | null | null | Glitter/Headers/hyperedge.hpp | alexxxzzz/hypetess | 25d288c2583ffc81408db5331a320b5ce61b761a | [
"Unlicense",
"MIT"
] | null | null | null | Glitter/Headers/hyperedge.hpp | alexxxzzz/hypetess | 25d288c2583ffc81408db5331a320b5ce61b761a | [
"Unlicense",
"MIT"
] | null | null | null | //
// hyperedge.h
// O5C435
//
// Created by alexxx on 02/07/2016.
//
//
#define M_PI 3.14159265358979323846264338327950288 /* pi */
#ifndef hyperedge_h
#define hyperedge_h
#pragma once
#endif /* hyperedge_h */
#include <glm/glm.hpp>
//#include <cmath>
#include <cstdlib>
class hyperedge{
std::vecto... | 26.315789 | 103 | 0.5545 | alexxxzzz |
cb07212afe04d2d473d7dfe7749ab27fdf14a02f | 2,845 | hpp | C++ | planning/motion_velocity_smoother/include/motion_velocity_smoother/smoother/smoother_base.hpp | meliketanrikulu/autoware.universe | 04f2b53ae1d7b41846478641ad6ff478c3d5a247 | [
"Apache-2.0"
] | 58 | 2021-11-30T09:03:46.000Z | 2022-03-31T15:25:17.000Z | planning/motion_velocity_smoother/include/motion_velocity_smoother/smoother/smoother_base.hpp | meliketanrikulu/autoware.universe | 04f2b53ae1d7b41846478641ad6ff478c3d5a247 | [
"Apache-2.0"
] | 425 | 2021-11-30T02:24:44.000Z | 2022-03-31T10:26:37.000Z | planning/motion_velocity_smoother/include/motion_velocity_smoother/smoother/smoother_base.hpp | meliketanrikulu/autoware.universe | 04f2b53ae1d7b41846478641ad6ff478c3d5a247 | [
"Apache-2.0"
] | 69 | 2021-11-30T02:09:18.000Z | 2022-03-31T15:38:29.000Z | // Copyright 2021 Tier IV, 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 i... | 36.012658 | 96 | 0.764851 | meliketanrikulu |
cb099b6ae0fc961df93053e037f779e82fecb500 | 603 | cpp | C++ | slicecountspinbox.cpp | animetosho/ParParGUI | a9e81dec356d698eb1449da9e285889d9d976581 | [
"CC0-1.0"
] | 4 | 2021-12-05T15:59:05.000Z | 2022-03-27T02:49:03.000Z | slicecountspinbox.cpp | animetosho/ParParGUI | a9e81dec356d698eb1449da9e285889d9d976581 | [
"CC0-1.0"
] | null | null | null | slicecountspinbox.cpp | animetosho/ParParGUI | a9e81dec356d698eb1449da9e285889d9d976581 | [
"CC0-1.0"
] | null | null | null | #include "slicecountspinbox.h"
#include "par2calc.h"
#include "settings.h"
SliceCountSpinBox::SliceCountSpinBox(QWidget *parent)
: QSpinBox(parent), mainWin(nullptr)
{
}
void SliceCountSpinBox::stepBy(int steps)
{
if(steps == 0) return;
int target = value() + steps;
// fix up target
if(mainWin)
... | 25.125 | 129 | 0.678275 | animetosho |
cb0c8d2434b769c29cadf7aed7f4222e0df33162 | 311 | cpp | C++ | PetSimulatorSFML/PetSimulator/Physics.cpp | drahenshaw/PetSimulator | 0eabda2ad41da760c66930361363c270209fbafa | [
"MIT"
] | null | null | null | PetSimulatorSFML/PetSimulator/Physics.cpp | drahenshaw/PetSimulator | 0eabda2ad41da760c66930361363c270209fbafa | [
"MIT"
] | null | null | null | PetSimulatorSFML/PetSimulator/Physics.cpp | drahenshaw/PetSimulator | 0eabda2ad41da760c66930361363c270209fbafa | [
"MIT"
] | null | null | null | #include "Physics.h"
float Physics::Absolute(float x)
{
return (x > 0 ? x : -x);
}
bool Physics::isColliding(Creature & orc, Consumables & item)
{
return (Absolute(orc.getCreature().getPosition().x - item.getXReleased()) < 30 && (Absolute(orc.getCreature().getPosition().y - item.getYReleased())) < 30);
}
| 23.923077 | 157 | 0.672026 | drahenshaw |
cb0e98cf00dac19faa68481926930b3f6dc2161a | 1,314 | cpp | C++ | src/save.cpp | shchavinskyi/Tracer | c832ae6cba7da69f382eaf1218da3674832fcbe7 | [
"MIT"
] | null | null | null | src/save.cpp | shchavinskyi/Tracer | c832ae6cba7da69f382eaf1218da3674832fcbe7 | [
"MIT"
] | null | null | null | src/save.cpp | shchavinskyi/Tracer | c832ae6cba7da69f382eaf1218da3674832fcbe7 | [
"MIT"
] | null | null | null | #include "save.h"
#include "data.h"
#include "logging.h"
#include "scene.h"
#include <glm/vec3.hpp>
#include <string>
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunknown-warning-option"
#pragma clang diagnostic ignored "-Wold-style-cast"
#pragma clang diagnostic ignored "-Wres... | 30.55814 | 110 | 0.754947 | shchavinskyi |
cb11d499ec46bc6127a18477dc12c6713fcf1e08 | 10,013 | cpp | C++ | small_glload.cpp | Ybalrid/small_glload | 38f6aff7e9c3b2e055499a0f42fc3449fe687cab | [
"Unlicense"
] | null | null | null | small_glload.cpp | Ybalrid/small_glload | 38f6aff7e9c3b2e055499a0f42fc3449fe687cab | [
"Unlicense"
] | null | null | null | small_glload.cpp | Ybalrid/small_glload | 38f6aff7e9c3b2e055499a0f42fc3449fe687cab | [
"Unlicense"
] | null | null | null | #include "small_glload.hpp"
#ifdef _WIN32
PFNWGLCHOOSEPIXELFORMATARBPROC wglChoosePixelFormatARB = nullptr;
PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB = nullptr;
PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT = nullptr;
#endif
void* (APIENTRY* small_glloader_get_proc_address)(const char*) = nullptr;
... | 30.250755 | 116 | 0.82343 | Ybalrid |
cb1272693afa76e1265ad4606e830b4bd372092f | 8,674 | hpp | C++ | source/LibFgBase/src/FgMath.hpp | denim2x/FaceGenBaseLibrary | 52317cf96984a47d7f2d0c5471230d689404101c | [
"MIT"
] | null | null | null | source/LibFgBase/src/FgMath.hpp | denim2x/FaceGenBaseLibrary | 52317cf96984a47d7f2d0c5471230d689404101c | [
"MIT"
] | null | null | null | source/LibFgBase/src/FgMath.hpp | denim2x/FaceGenBaseLibrary | 52317cf96984a47d7f2d0c5471230d689404101c | [
"MIT"
] | null | null | null | //
// Copyright (c) 2019 Singular Inversions Inc. (facegen.com)
// Use, modification and distribution is subject to the MIT License,
// see accompanying file LICENSE.txt or facegen.com/base_library_license.txt
//
#ifndef FGMATH_HPP
#define FGMATH_HPP
#include "FgStdVector.hpp"
#include "FgStdArray.hpp"
n... | 27.71246 | 124 | 0.589463 | denim2x |
cb15da23e3bb9ce00a46828964a9c86dd9aa6e51 | 2,044 | hpp | C++ | src/common/work-puller.hpp | niketanpansare/geeps | bd53e0234735aa85c6f2fd98e82bd57650ab1ad3 | [
"BSD-3-Clause"
] | 105 | 2016-05-08T05:18:19.000Z | 2021-10-05T02:51:27.000Z | src/common/work-puller.hpp | niketanpansare/geeps | bd53e0234735aa85c6f2fd98e82bd57650ab1ad3 | [
"BSD-3-Clause"
] | 6 | 2016-12-01T15:59:25.000Z | 2020-08-10T08:32:55.000Z | src/common/work-puller.hpp | niketanpansare/geeps | bd53e0234735aa85c6f2fd98e82bd57650ab1ad3 | [
"BSD-3-Clause"
] | 44 | 2016-05-20T15:46:41.000Z | 2021-05-19T06:54:37.000Z | #ifndef __work_puller_hpp__
#define __work_puller_hpp__
/*
* Copyright (c) 2016, Carnegie Mellon University.
* 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 sourc... | 40.078431 | 78 | 0.762231 | niketanpansare |
0e10ecca24f98ac8cee64f3d2e6e755a2c9a3a45 | 1,712 | hpp | C++ | src/include/functionals/functionalExtremes.hpp | elinjammal/opensmile | 0ae2da44e61744ff1aaa9bae2b95d747febb08de | [
"W3C"
] | 245 | 2020-10-24T16:27:13.000Z | 2022-03-31T03:01:11.000Z | src/include/functionals/functionalExtremes.hpp | elinjammal/opensmile | 0ae2da44e61744ff1aaa9bae2b95d747febb08de | [
"W3C"
] | 41 | 2021-01-13T11:30:42.000Z | 2022-01-14T14:36:11.000Z | src/include/functionals/functionalExtremes.hpp | elinjammal/opensmile | 0ae2da44e61744ff1aaa9bae2b95d747febb08de | [
"W3C"
] | 43 | 2020-12-11T15:28:19.000Z | 2022-03-20T11:55:58.000Z | /*F***************************************************************************
* This file is part of openSMILE.
*
* Copyright (c) audEERING GmbH. All rights reserved.
* See the file COPYING for details on license terms.
***************************************************************************E*/
/* openSMIL... | 31.703704 | 220 | 0.693341 | elinjammal |
0e113a6c101cd1c8738620bb8e0084ca849ba36e | 5,147 | cpp | C++ | test/test_Struct.cpp | MatteoRagni/rice | a1e8792c0bb45ead5f2a54228af40e65e74bfd83 | [
"BSD-2-Clause"
] | 1 | 2021-06-08T04:55:19.000Z | 2021-06-08T04:55:19.000Z | test/test_Struct.cpp | jsomers/rice | 6bbcc2dd85d010a1108a4d7ac7ece39b1c1210f5 | [
"BSD-2-Clause"
] | null | null | null | test/test_Struct.cpp | jsomers/rice | 6bbcc2dd85d010a1108a4d7ac7ece39b1c1210f5 | [
"BSD-2-Clause"
] | null | null | null | #include "unittest.hpp"
#include "rice/Struct.hpp"
#include "rice/Symbol.hpp"
#include "rice/global_function.hpp"
using namespace Rice;
TESTSUITE(Struct);
namespace
{
Struct define_3d_point()
{
static Struct rb_cPoint = define_struct()
.define_member("x")
.define_member("y")
.define_member(... | 24.985437 | 76 | 0.676511 | MatteoRagni |
0e13accfe07105910ec7d30d83d6f68230a63ee0 | 9,709 | cc | C++ | wrspice/devlib/bsim1/b1aski.cc | wrcad/xictools | f46ba6d42801426739cc8b2940a809b74f1641e2 | [
"Apache-2.0"
] | 73 | 2017-10-26T12:40:24.000Z | 2022-03-02T16:59:43.000Z | wrspice/devlib/bsim1/b1aski.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 12 | 2017-11-01T10:18:22.000Z | 2022-03-20T19:35:36.000Z | wrspice/devlib/bsim1/b1aski.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 34 | 2017-10-06T17:04:21.000Z | 2022-02-18T16:22:03.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 36.5 | 77 | 0.50139 | wrcad |
0e160030407ca6f68618eb251c1f313ec98eb3f9 | 6,867 | cpp | C++ | src/fdm/xml/fdm_XmlNode.cpp | paperoga-dev/mscsim | a5bd3b88745bf8d91e85fd001b0972662ff8e410 | [
"MIT"
] | 195 | 2019-12-01T00:21:06.000Z | 2022-03-29T09:06:07.000Z | src/fdm/xml/fdm_XmlNode.cpp | paperoga-dev/mscsim | a5bd3b88745bf8d91e85fd001b0972662ff8e410 | [
"MIT"
] | 4 | 2019-06-03T12:41:17.000Z | 2021-01-30T21:47:00.000Z | src/fdm/xml/fdm_XmlNode.cpp | paperoga-dev/mscsim | a5bd3b88745bf8d91e85fd001b0972662ff8e410 | [
"MIT"
] | 26 | 2019-12-01T02:42:26.000Z | 2022-02-14T11:50:49.000Z | /****************************************************************************//*
* Copyright (C) 2021 Marek M. Cel
*
* 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, ... | 24.970909 | 99 | 0.427552 | paperoga-dev |
0e1786043e481a693a1ca391be315568cf1cf47c | 33,431 | cpp | C++ | src/game/server/team_control_point.cpp | LavKazan/ThePassTimeProject | 6d321448588d5bda85ea8175a2b27e756de465f8 | [
"Unlicense"
] | 39 | 2018-09-10T16:15:04.000Z | 2020-07-01T13:40:16.000Z | src/game/server/team_control_point.cpp | LavKazan/ThePassTimeProject | 6d321448588d5bda85ea8175a2b27e756de465f8 | [
"Unlicense"
] | 13 | 2017-08-08T02:07:18.000Z | 2022-03-22T23:49:58.000Z | src/game/server/team_control_point.cpp | LavKazan/ThePassTimeProject | 6d321448588d5bda85ea8175a2b27e756de465f8 | [
"Unlicense"
] | 34 | 2018-12-12T09:41:59.000Z | 2021-09-15T12:00:02.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//===========================================================================//
#include "cbase.h"
#include "team_control_point.h"
#include "player.h"
#include "teamplay_gamerules.h"
#include "teamplayroundbased_gamerules.h"... | 30.558501 | 137 | 0.566749 | LavKazan |
0e1c3dad8908bba6b4e727acb30bfed5d33ab393 | 5,537 | cpp | C++ | thread/ViconThread.cpp | MarhesLab/NeeleyThesisCode | a0e2f3691c3179eace353416ddb90f15ce372a9c | [
"MIT"
] | null | null | null | thread/ViconThread.cpp | MarhesLab/NeeleyThesisCode | a0e2f3691c3179eace353416ddb90f15ce372a9c | [
"MIT"
] | null | null | null | thread/ViconThread.cpp | MarhesLab/NeeleyThesisCode | a0e2f3691c3179eace353416ddb90f15ce372a9c | [
"MIT"
] | 2 | 2017-05-04T16:41:23.000Z | 2020-04-01T20:32:44.000Z | /*
For more information on multithreading, see the PDF titled
"POSIX Threading Programming Resource" in this folder.
*/
#include <iostream>
#include "ViconThread.h"
using namespace std;
// Mutex Declarations
pthread_mutex_t vicon_mutex;
// Constructor
ViconThread::ViconThread(string vicon_name)
{... | 24.71875 | 97 | 0.704353 | MarhesLab |
0e1cf7e80ae405b42ce789fc253d346530d6d144 | 1,379 | hpp | C++ | src/lunar_string.hpp | ytakano/tsukuyomi | 1a3d0eb035fcb6dd1bb0aa96f608643119dae12d | [
"BSD-3-Clause"
] | null | null | null | src/lunar_string.hpp | ytakano/tsukuyomi | 1a3d0eb035fcb6dd1bb0aa96f608643119dae12d | [
"BSD-3-Clause"
] | null | null | null | src/lunar_string.hpp | ytakano/tsukuyomi | 1a3d0eb035fcb6dd1bb0aa96f608643119dae12d | [
"BSD-3-Clause"
] | null | null | null | #ifndef LUNAR_STRING_HPP
#define LUNAR_STRING_HPP
#include <string>
#include <locale>
#include <codecvt>
namespace lunar {
static std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> string_converter;
inline
std::u32string
to_u32string(int n)
{
char str[16];
snprintf(str, sizeof(str), "%d", n);
r... | 14.364583 | 84 | 0.681653 | ytakano |
0e1d02389443938ff076dc9fe500518ab5c491b0 | 6,590 | cpp | C++ | src/Setup.cpp | HU-ACTS/sensor-module | 6277cba8eb41cf3ecb0aafd58ed25d58abff2d81 | [
"Apache-2.0"
] | null | null | null | src/Setup.cpp | HU-ACTS/sensor-module | 6277cba8eb41cf3ecb0aafd58ed25d58abff2d81 | [
"Apache-2.0"
] | null | null | null | src/Setup.cpp | HU-ACTS/sensor-module | 6277cba8eb41cf3ecb0aafd58ed25d58abff2d81 | [
"Apache-2.0"
] | null | null | null | #include "Setup.hpp"
static gpio_num_t UsedLEDPin;
static int UsedLEDTimeOn;
static int UsedLEDTimeOff;
void blink_task(void *pvParameter)
{
while(1) {
gpio_set_level(UsedLEDPin, 1);
vTaskDelay(UsedLEDTimeOff / portTICK_PERIOD_MS);
gpio_set_level(UsedLEDPin, 0);
vTaskDelay(UsedLEDTimeOn / portT... | 29.819005 | 106 | 0.718968 | HU-ACTS |
0e1dd5cb7a6af6d31853b14eaa21fa6a6c6a9cd2 | 370 | cpp | C++ | src/security/error.cpp | Alexey-N-Chernyshov/cpp-libp2p | 8b52253f9658560a4b1311b3ba327f02284a42a6 | [
"Apache-2.0",
"MIT"
] | 135 | 2020-06-13T08:57:36.000Z | 2022-03-27T05:26:11.000Z | src/security/error.cpp | igor-egorov/cpp-libp2p | 7c9d83bf0760a5f653d86ddbb00645414c61d4fc | [
"Apache-2.0",
"MIT"
] | 41 | 2020-06-12T15:45:05.000Z | 2022-03-07T23:10:33.000Z | src/security/error.cpp | igor-egorov/cpp-libp2p | 7c9d83bf0760a5f653d86ddbb00645414c61d4fc | [
"Apache-2.0",
"MIT"
] | 43 | 2020-06-15T10:12:45.000Z | 2022-03-21T03:04:50.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include <libp2p/security/error.hpp>
OUTCOME_CPP_DEFINE_CATEGORY(libp2p::security::SecurityError, e) {
using E = libp2p::security::SecurityError;
switch (e) {
case E::AUTHENTICATION_ERROR:
return "authen... | 21.764706 | 65 | 0.705405 | Alexey-N-Chernyshov |
0e2b405ad67961b20de5f74f84a953aba2790663 | 919 | cc | C++ | config/integer.cc | ognis/jargon | 3cd9917f5ffb3a7185467b6294656e666f04d05b | [
"Apache-2.0"
] | null | null | null | config/integer.cc | ognis/jargon | 3cd9917f5ffb3a7185467b6294656e666f04d05b | [
"Apache-2.0"
] | null | null | null | config/integer.cc | ognis/jargon | 3cd9917f5ffb3a7185467b6294656e666f04d05b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2014- Shingo OKAWA.
*/
#if defined (HAVE_WINDOWS_H)
# include <windows.h>
#endif
#if defined (HAVE_TCHAR_H)
# include <tchar.h>
#endif
#include <cstdint>
#include <cwchar>
/* Detects platform characteristics. */
int main(int argc, char *argv[]) {
#if defined (CHECK_IF_INT8_T_EXIST)
int8_t x = ... | 22.414634 | 39 | 0.717084 | ognis |
0e2c77d2e1c57ad161fb60e8157b6498efeee836 | 10,157 | cpp | C++ | annonet_infer.cpp | reunanen/annonet | 4767f4dee850d78e7c214ffdcc8002d7de8c683c | [
"MIT"
] | 7 | 2019-01-20T07:33:44.000Z | 2022-01-17T09:41:33.000Z | annonet_infer.cpp | reunanen/annonet | 4767f4dee850d78e7c214ffdcc8002d7de8c683c | [
"MIT"
] | 5 | 2017-11-09T07:22:11.000Z | 2020-05-08T14:09:12.000Z | annonet_infer.cpp | reunanen/annonet | 4767f4dee850d78e7c214ffdcc8002d7de8c683c | [
"MIT"
] | 2 | 2019-01-21T04:34:32.000Z | 2019-02-27T17:41:13.000Z | /*
This example shows how to train a semantic segmentation net using images
annotated in the "anno" program (see https://github.com/reunanen/anno).
Instructions:
1. Use anno to label some data.
2. Build the annonet_train program.
3. Run:
./annonet_train /path/to/anno/data
4. Wait whi... | 43.780172 | 214 | 0.606577 | reunanen |
0e336c37fb66e7f221a9532923d97d36c892df71 | 12,702 | cc | C++ | libraries/vendor/rocksdb/table/block_based/full_filter_block.cc | raggi/xgt | ab7dedab2230eadb500a556abe6468d686d7db55 | [
"MIT"
] | 15 | 2018-12-16T13:11:33.000Z | 2021-12-08T10:38:08.000Z | libraries/vendor/rocksdb/table/block_based/full_filter_block.cc | raggi/xgt | ab7dedab2230eadb500a556abe6468d686d7db55 | [
"MIT"
] | 26 | 2021-06-08T16:20:23.000Z | 2022-03-30T03:42:21.000Z | libraries/vendor/rocksdb/table/block_based/full_filter_block.cc | raggi/xgt | ab7dedab2230eadb500a556abe6468d686d7db55 | [
"MIT"
] | 26 | 2018-12-13T05:44:22.000Z | 2021-11-17T21:22:41.000Z | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#include "table/block_based/full_filter_block.h"
#include... | 34.991736 | 80 | 0.708707 | raggi |
0e34a83336a6738a14085c9c98311f347aa706f9 | 934 | cpp | C++ | example/LightBulbExample/IO/PongGameIO.cpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 5 | 2016-02-04T06:14:42.000Z | 2017-02-06T02:21:43.000Z | example/LightBulbExample/IO/PongGameIO.cpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 41 | 2015-04-15T21:05:45.000Z | 2015-07-09T12:59:02.000Z | example/LightBulbExample/IO/PongGameIO.cpp | domin1101/LightBulb | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | null | null | null | #include "IO/PongGameIO.hpp"
#include "LightBulb/IO/TemplateDeclaration.hpp"
#include <cereal/cereal.hpp>
template <class Archive>
void serialize(Archive& archive, PongGameState& state)
{
archive(cereal::make_nvp("ballPosX", state.ballPosX));
archive(cereal::make_nvp("ballPosY", state.ballPosY));
archive(cereal::m... | 25.944444 | 72 | 0.765525 | domin1101 |
0e364fb7c629a801f6157969ffc16f34d0ea3301 | 3,227 | hpp | C++ | src/mlpack/methods/decision_tree/all_categorical_split_impl.hpp | NaxAlpha/mlpack-build | 1f0c1454d4b35eb97ff115669919c205cee5bd1c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2018-05-21T11:08:36.000Z | 2022-03-12T07:52:14.000Z | src/mlpack/methods/decision_tree/all_categorical_split_impl.hpp | okmegy/Mlpack | ac9abef3c1353f483ed1af42ba5a7432f291ca1a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | src/mlpack/methods/decision_tree/all_categorical_split_impl.hpp | okmegy/Mlpack | ac9abef3c1353f483ed1af42ba5a7432f291ca1a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /**
* @file all_categorical_split_impl.hpp
* @author Ryan Curtin
*
* Implementation of the AllCategoricalSplit categorical split class.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD lice... | 31.637255 | 78 | 0.723582 | NaxAlpha |
0e3738b5e6714dbbb8e7899abea194b59a24e937 | 712 | hpp | C++ | android-31/android/accounts/NetworkErrorException.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/accounts/NetworkErrorException.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/accounts/NetworkErrorException.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "./AccountsException.hpp"
class JString;
class JThrowable;
namespace android::accounts
{
class NetworkErrorException : public android::accounts::AccountsException
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit NetworkErrorException(const char *className,... | 24.551724 | 191 | 0.748596 | YJBeetle |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.