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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b5a286fc25c9eeb226960bc335240f45d42b2bf0 | 16,543 | cc | C++ | cpp/tests/test-config-load.cc | peurpdapeurp/ndnrtc | 59552bff9398ee2e49636f32cac020cc8027ae04 | [
"BSD-2-Clause"
] | null | null | null | cpp/tests/test-config-load.cc | peurpdapeurp/ndnrtc | 59552bff9398ee2e49636f32cac020cc8027ae04 | [
"BSD-2-Clause"
] | null | null | null | cpp/tests/test-config-load.cc | peurpdapeurp/ndnrtc | 59552bff9398ee2e49636f32cac020cc8027ae04 | [
"BSD-2-Clause"
] | null | null | null | //
// test-config-load.cc
//
// Created by Peter Gusev on 02 March 2016.
// Copyright 2013-2016 Regents of the University of California
//
#include <stdlib.h>
#include "gtest/gtest.h"
#include "client/src/config.hpp"
#define TEST_CONFIG_FILE "tests/default.cfg"
#define TEST_CONFIG_SAMPLE_CONSUMER_FILE "tests/samp... | 47.950725 | 111 | 0.75603 | peurpdapeurp |
b5a2dd9b7e1424db040084ec3aca80ebee539bc9 | 5,748 | cpp | C++ | homework/Serov/05/matrix.cpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | 10 | 2017-09-21T15:17:33.000Z | 2021-01-11T13:11:55.000Z | homework/Serov/05/matrix.cpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | null | null | null | homework/Serov/05/matrix.cpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | 22 | 2017-09-21T15:45:08.000Z | 2019-02-21T19:15:25.000Z | #include <iostream>
#include <vector>
#include <cassert>
#include <signal.h>
using namespace std;
template <class T>
class Row{ //понадобится для реализации [][]
public:
vector <T> row;
size_t size;
Row(size_t columns, T value){ //аналогично простому вектору
assert(columns>0);
row.resize(columns);
size=colu... | 19.418919 | 123 | 0.639353 | mtrempoltsev |
b5a3696b833329118c2f39e01cf650d0a845c223 | 13,853 | cpp | C++ | kinesis-video-producer/src/CachingEndpointOnlyCallbackProvider.cpp | nsharma098/amazon-kinesis-video-streams-producer-sdk-cpp | e3b63724494b16e00079027ccc232e8914731d66 | [
"Apache-2.0"
] | null | null | null | kinesis-video-producer/src/CachingEndpointOnlyCallbackProvider.cpp | nsharma098/amazon-kinesis-video-streams-producer-sdk-cpp | e3b63724494b16e00079027ccc232e8914731d66 | [
"Apache-2.0"
] | null | null | null | kinesis-video-producer/src/CachingEndpointOnlyCallbackProvider.cpp | nsharma098/amazon-kinesis-video-streams-producer-sdk-cpp | e3b63724494b16e00079027ccc232e8914731d66 | [
"Apache-2.0"
] | null | null | null | /** Copyright 2019 Amazon.com. All rights reserved. */
#include "CachingEndpointOnlyCallbackProvider.h"
#include "Version.h"
#include "Logger.h"
namespace com { namespace amazonaws { namespace kinesis { namespace video {
LOGGER_TAG("com.amazonaws.kinesis.video");
using std::move;
using std::unique_ptr;
using std::m... | 42.888545 | 129 | 0.687216 | nsharma098 |
b2727a63c965a2bd9e1a5745876eb827081fd488 | 656 | hpp | C++ | include/free_type_utilities.hpp | ShoYamanishi/SDFont | 07dfa7c08ed9074ea87f98d2a3cc882405b09f1b | [
"MIT"
] | 15 | 2019-08-30T15:47:28.000Z | 2022-03-18T23:06:37.000Z | include/free_type_utilities.hpp | 0x4D3342/SDFont | 07dfa7c08ed9074ea87f98d2a3cc882405b09f1b | [
"MIT"
] | null | null | null | include/free_type_utilities.hpp | 0x4D3342/SDFont | 07dfa7c08ed9074ea87f98d2a3cc882405b09f1b | [
"MIT"
] | 6 | 2019-03-31T17:15:45.000Z | 2022-01-12T14:58:48.000Z | #ifndef __FREE_TYPE_UTILITIES_HPP__
#define __FREE_TYPE_UTILITIES_HPP__
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <math.h>
#include <ft2build.h>
#include <gd.h>
#include FT_FREETYPE_H
using namespace std;
/** @file free_type_utilities.hpp
... | 21.16129 | 65 | 0.765244 | ShoYamanishi |
b27a4186ba3617984cd4f97c136aba7762dc420a | 9,724 | cpp | C++ | SVIEngine/jni/SVI/Physics/SVIClothSimulator.cpp | Samsung/SVIEngine | 36964f5b296317a3b7b2825137fef921a8c94973 | [
"Apache-2.0"
] | 27 | 2015-04-24T07:14:55.000Z | 2020-01-24T16:16:37.000Z | SVIEngine/jni/SVI/Physics/SVIClothSimulator.cpp | Lousnote5/SVIEngine | 36964f5b296317a3b7b2825137fef921a8c94973 | [
"Apache-2.0"
] | null | null | null | SVIEngine/jni/SVI/Physics/SVIClothSimulator.cpp | Lousnote5/SVIEngine | 36964f5b296317a3b7b2825137fef921a8c94973 | [
"Apache-2.0"
] | 15 | 2015-12-08T14:46:19.000Z | 2020-01-21T19:26:41.000Z | #include "SVIPhysics.h"
//2011-11-07 masterkeaton27@gmail.com
namespace SVI{
SVIClothSimulator::SVIClothSimulator() :
mPivotsA(NULL),
mPivotsB(NULL),
mCurrentPivots(NULL),
mNextPivots(NULL),
mSprings(NULL),
mGravity(0.0f,0.0f,-0.98f),
mGridSize(13),
mPivotCount(13*13),
mSpringConstant(50.0f),
mSpringNatu... | 32.092409 | 134 | 0.665056 | Samsung |
b27c956cc075a5a01adf19a5c3643ac4476573ce | 6,814 | cxx | C++ | StRoot/StSpinPool/StChargedPionAnalysisMaker/StChargedPionEvent.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | StRoot/StSpinPool/StChargedPionAnalysisMaker/StChargedPionEvent.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | StRoot/StSpinPool/StChargedPionAnalysisMaker/StChargedPionEvent.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | // $Id: StChargedPionEvent.cxx,v 1.10 2009/01/04 17:42:58 kocolosk Exp $
#include "StChargedPionEvent.h"
#include "TClass.h"
#include "StMessMgr.h"
#include "StChargedPionVertex.h"
#include "StChargedPionTrack.h"
#include "StChargedPionJet.h"
ClassImp(StChargedPionEvent)
StChargedPionEvent::StChargedPionEvent() :... | 31.114155 | 93 | 0.659525 | xiaohaijin |
b283ae67bb9e8fd7cb69e67c876ce3e2f4170fe1 | 663 | cpp | C++ | examples/toml/toml.cpp | AlloSphere-Research-Group/al_lib | 94d23fe71b79d3464a658f16ca34c2040e6d7334 | [
"BSD-3-Clause"
] | 26 | 2018-11-05T23:29:43.000Z | 2022-03-17T18:16:49.000Z | examples/toml/toml.cpp | yangevelyn/allolib | 1654be795b6515c058eb8243751b903a2aa6efdc | [
"BSD-3-Clause"
] | 41 | 2018-01-19T18:34:41.000Z | 2022-01-27T23:52:01.000Z | examples/toml/toml.cpp | yangevelyn/allolib | 1654be795b6515c058eb8243751b903a2aa6efdc | [
"BSD-3-Clause"
] | 11 | 2018-01-05T16:42:19.000Z | 2022-01-27T22:08:01.000Z | #include "al/app/al_App.hpp"
#include "al/io/al_Toml.hpp"
using namespace al;
using namespace std;
// in order to use global function based toml loading,
// al.toml file needs to be in data folder (in the `bin/data` folder)
// if not, TOML::get* function will throw runtime exception
// for toml syntax, https://githu... | 24.555556 | 69 | 0.653092 | AlloSphere-Research-Group |
b286bf50a799ff50d525c2e34404edef583f241b | 2,593 | cpp | C++ | Dx11/Rendering/MeshSDF.cpp | stoyannk/dx11-framework | 1f1ce560d7c80f9e05f39479c316761f54c5cf12 | [
"BSD-2-Clause"
] | 18 | 2015-12-07T16:08:27.000Z | 2020-02-11T12:30:36.000Z | Dx11/Rendering/MeshSDF.cpp | stoyannk/dx11-framework | 1f1ce560d7c80f9e05f39479c316761f54c5cf12 | [
"BSD-2-Clause"
] | null | null | null | Dx11/Rendering/MeshSDF.cpp | stoyannk/dx11-framework | 1f1ce560d7c80f9e05f39479c316761f54c5cf12 | [
"BSD-2-Clause"
] | 8 | 2017-02-18T01:30:57.000Z | 2022-01-03T22:41:11.000Z | // Copyright (c) 2011-2014, Stoyan Nikolov
// All rights reserved.
// This software is governed by a permissive BSD-style license. See LICENSE.
#include "stdafx.h"
#include "MeshSDF.h"
#include "MathConv.h"
#include <numeric>
#include <utility>
#include <ThirdParty/glm/glm/gtc/matrix_transform.hpp>
using n... | 26.731959 | 105 | 0.651755 | stoyannk |
b286d01b53be9c52bfc2956d5a1f098dc9dfd065 | 3,167 | hh | C++ | src/Kernel/SphericalTableKernel.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Kernel/SphericalTableKernel.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Kernel/SphericalTableKernel.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// SphericalTableKernel
//
// Take a 3D Kernel and build a specialized 1D tabulated version appropriate
// for use with the spherical SPH algorithm described in
// Omang, M., Børve, S., & Trulsen, J. (2006). SPH in spherical and cylindrica... | 34.802198 | 113 | 0.688033 | jmikeowen |
b28953c094397a1814b6e0fd88971a0252e2e957 | 2,851 | hpp | C++ | thread/mrsw.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 1 | 2017-08-11T19:12:24.000Z | 2017-08-11T19:12:24.000Z | thread/mrsw.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 11 | 2018-07-07T20:09:44.000Z | 2020-02-16T22:45:09.000Z | thread/mrsw.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | null | null | null | #pragma once
#include "semaphore.hpp"
namespace so_thread
{
/// multi-reader single-writer
class mrsw
{
so_this_typedefs( mrsw ) ;
private:
semaphore_t _reader ;
semaphore_t _writer ;
public:
mrsw( void_t ) noexcept
{
}
mrsw( this_rref_t... | 22.100775 | 68 | 0.507892 | aconstlink |
b28b6e8f16b2820c197e08a012193c4f3e03e3e7 | 5,370 | cpp | C++ | TESTS/TARGET_RDA/airkiss/main.cpp | ghsecuritylab/RDA5981_Develop | bb97e2ae458a5bbb4757c8fe4c7fbc4401356db2 | [
"Apache-2.0"
] | 3 | 2018-03-13T13:42:12.000Z | 2019-05-17T11:48:04.000Z | TESTS/TARGET_RDA/airkiss/main.cpp | ghsecuritylab/RDA5981_Develop | bb97e2ae458a5bbb4757c8fe4c7fbc4401356db2 | [
"Apache-2.0"
] | null | null | null | TESTS/TARGET_RDA/airkiss/main.cpp | ghsecuritylab/RDA5981_Develop | bb97e2ae458a5bbb4757c8fe4c7fbc4401356db2 | [
"Apache-2.0"
] | 8 | 2018-01-28T02:23:18.000Z | 2021-02-26T01:15:55.000Z | #include "mbed.h"
#include "rtos.h"
#include "inet.h"
#include "WiFiStackInterface.h"
#include "rda5981_sniffer.h"
#include "airkiss.h"
#include "gpadckey.h"
WiFiStackInterface wifi;
char ssid[32];
char passwd[64];
uint8_t random;
Semaphore airkiss_done(0);
/* airkiss reset */
GpadcKey airkiss_reset_key(KEY_A5);
Tim... | 23.973214 | 103 | 0.633892 | ghsecuritylab |
b28dc718841c241ea9a019d26d8244e16ef3d074 | 13,133 | cpp | C++ | Code/Projects/Eldritch/src/Components/wbcompeldfrobbable.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Projects/Eldritch/src/Components/wbcompeldfrobbable.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Projects/Eldritch/src/Components/wbcompeldfrobbable.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | #include "core.h"
#include "wbcompeldfrobbable.h"
#include "aabb.h"
#include "wbcompeldtransform.h"
#include "wbcompeldcollision.h"
#include "wbcompeldmesh.h"
#include "wbentity.h"
#include "eldritchframework.h"
#include "irenderer.h"
#include "configmanager.h"
#include "wbeventmanager.h"
#include "eldritchmesh.h"
#inc... | 31.120853 | 80 | 0.727404 | kas1e |
b28e898e6841d5f08298dfb12c7847667110c644 | 2,354 | hpp | C++ | provider/mi_instance.hpp | Bhaskers-Blu-Org2/omi-script-provider | f2efe4434617d02887f1b99f7467e9d9203364a1 | [
"MIT"
] | 4 | 2019-06-16T02:29:23.000Z | 2021-04-20T16:09:19.000Z | provider/mi_instance.hpp | microsoft/omi-script-provider | f2efe4434617d02887f1b99f7467e9d9203364a1 | [
"MIT"
] | null | null | null | provider/mi_instance.hpp | microsoft/omi-script-provider | f2efe4434617d02887f1b99f7467e9d9203364a1 | [
"MIT"
] | 4 | 2019-11-03T11:52:56.000Z | 2020-08-05T14:54:06.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#ifndef INCLUDED_MI_INSTANCE_HPP
#define INCLUDED_MI_INSTANCE_HPP
#include "internal_counted_ptr.hpp"
#include "mi_value.hpp"
#include "socket_wrapper.hpp"
#include <map>
namespace scx
{
class MI_ObjectDecl;
class M... | 27.372093 | 80 | 0.730671 | Bhaskers-Blu-Org2 |
b29103fbb0fe79d08cd96b498067621f8d948f9a | 987 | cpp | C++ | Sort strings based on position value.cpp | dishanp/Coding-In-C-and-Cpp | bb615c8c524920f1b0bcbadf1c8b9328aa83616a | [
"BSD-2-Clause"
] | 2 | 2021-10-01T04:20:04.000Z | 2021-10-01T04:20:06.000Z | Sort strings based on position value.cpp | dishanp/Coding-In-C-and-Cpp | bb615c8c524920f1b0bcbadf1c8b9328aa83616a | [
"BSD-2-Clause"
] | null | null | null | Sort strings based on position value.cpp | dishanp/Coding-In-C-and-Cpp | bb615c8c524920f1b0bcbadf1c8b9328aa83616a | [
"BSD-2-Clause"
] | 8 | 2021-10-01T04:20:38.000Z | 2022-03-19T17:05:05.000Z | /*
Write a function sortStringByValue() which takes in a list of strings and sort them according
to the sum of the positional value of the alphabets where position of a is 1, b is 2, c is 3.....etc.
till z=26. Alphabets are not ----- character other than alphabets (upper and lower case) should
not be considered for po... | 24.073171 | 101 | 0.666667 | dishanp |
b29121f132eff6815c1ca9d7a43850d81a418840 | 31,341 | cpp | C++ | inekf_ros/src/InEKF_ROS.cpp | UMich-CURLY/invariant-ekf-ros | bacfa4e429ead14f13582698e4e44820d8482a52 | [
"BSD-3-Clause"
] | 29 | 2018-11-07T23:04:21.000Z | 2022-03-22T00:46:30.000Z | inekf_ros/src/InEKF_ROS.cpp | MichiganRobotX/invariant-ekf-ros | bacfa4e429ead14f13582698e4e44820d8482a52 | [
"BSD-3-Clause"
] | 2 | 2018-09-27T15:15:18.000Z | 2018-10-18T14:35:22.000Z | inekf_ros/src/InEKF_ROS.cpp | UMich-CURLY/invariant-ekf-ros | bacfa4e429ead14f13582698e4e44820d8482a52 | [
"BSD-3-Clause"
] | 7 | 2019-12-27T20:38:10.000Z | 2022-02-05T08:32:25.000Z | /* ----------------------------------------------------------------------------
* Copyright 2018, Ross Hartley <m.ross.hartley@gmail.com>
* All Rights Reserved
* See LICENSE for the license information
* -------------------------------------------------------------------------- */
/**
* @file InEKF_ROS.... | 46.157585 | 158 | 0.618072 | UMich-CURLY |
b291e943f232b65823824b1c3d221b10af839b94 | 6,169 | hpp | C++ | octotiger/radiation/kernel_interface.hpp | srinivasyadav18/octotiger | 4d93c50fe345a081b7985ecb4cb698d16c121565 | [
"BSL-1.0"
] | 35 | 2016-11-17T22:35:11.000Z | 2022-01-24T19:07:36.000Z | octotiger/radiation/kernel_interface.hpp | srinivasyadav18/octotiger | 4d93c50fe345a081b7985ecb4cb698d16c121565 | [
"BSL-1.0"
] | 123 | 2016-11-17T21:29:25.000Z | 2022-03-03T21:40:04.000Z | octotiger/radiation/kernel_interface.hpp | srinivasyadav18/octotiger | 4d93c50fe345a081b7985ecb4cb698d16c121565 | [
"BSL-1.0"
] | 10 | 2018-11-28T18:17:42.000Z | 2022-01-25T12:52:37.000Z | // Copyright (c) 2019 AUTHORS
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include "octotiger/defs.hpp"
#include "octotiger/radiation/cpu_kernel.hpp"
#include "octotiger/radiation/cuda_kerne... | 33.166667 | 84 | 0.53088 | srinivasyadav18 |
b29334f1c72da4be6685f83f50a5d08dc8779faa | 441 | cpp | C++ | acmicpc.net/2261.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | 4 | 2016-04-15T07:54:39.000Z | 2021-01-11T09:02:16.000Z | acmicpc.net/2261.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | null | null | null | acmicpc.net/2261.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
using namespace std;
struct point {
int x, y;
bool operator<(const point& p) {
return x < p.x || (x == p.x && y < p.y);
}
};
set<point> xy;
int main() {
int N; scanf("%d", &N);
for (int i = 0; i < N; i++) {... | 17.64 | 42 | 0.548753 | kbu1564 |
b294f1c719412818a41f1d4c65ded55c38105469 | 1,982 | cpp | C++ | source/Texture.cpp | Xaer033/Torque | 55ed32b5269e0058121b38e95be19b67e325db6d | [
"MIT"
] | null | null | null | source/Texture.cpp | Xaer033/Torque | 55ed32b5269e0058121b38e95be19b67e325db6d | [
"MIT"
] | null | null | null | source/Texture.cpp | Xaer033/Torque | 55ed32b5269e0058121b38e95be19b67e325db6d | [
"MIT"
] | null | null | null |
#include "Texture.h"
#include "IwGL.h"
#include "IwImage.h"
namespace GG
{
Texture::Texture()
{
_image = NULL;
_handle = 0;
}
Texture::Texture( CIwImage & image )
{
_handle = 0;
setImage( image );
}
Texture::~Texture()
{
//we dont own image, so dont free
_image = NULL;
if( _handle )
glDe... | 16.79661 | 148 | 0.655399 | Xaer033 |
b296ce099bb61fee0eae7166076f22eb16c1d24d | 1,713 | cc | C++ | google/cloud/storage/internal/raw_client.cc | GoogleCloudPlatform/google-cloud-cpp | c4fc35de9e15f95b1dbf585f1c96de5dba609e2b | [
"Apache-2.0"
] | 80 | 2017-11-24T00:19:45.000Z | 2019-01-25T10:24:33.000Z | google/cloud/storage/internal/raw_client.cc | GoogleCloudPlatform/google-cloud-cpp | c4fc35de9e15f95b1dbf585f1c96de5dba609e2b | [
"Apache-2.0"
] | 1,579 | 2017-11-24T01:01:21.000Z | 2019-01-28T23:41:21.000Z | google/cloud/storage/internal/raw_client.cc | GoogleCloudPlatform/google-cloud-cpp | c4fc35de9e15f95b1dbf585f1c96de5dba609e2b | [
"Apache-2.0"
] | 51 | 2017-11-24T00:56:11.000Z | 2019-01-18T20:35:02.000Z | // Copyright 2021 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 37.23913 | 80 | 0.716287 | GoogleCloudPlatform |
b29735647e323dce1479ed96703f40a43197e0fc | 1,335 | cpp | C++ | Cracking coding Interview/Array and String/URLify.cpp | jv640/Coding | 19bda40200ee1fdcc16bb3dc174fe14c7090b58d | [
"MIT"
] | null | null | null | Cracking coding Interview/Array and String/URLify.cpp | jv640/Coding | 19bda40200ee1fdcc16bb3dc174fe14c7090b58d | [
"MIT"
] | null | null | null | Cracking coding Interview/Array and String/URLify.cpp | jv640/Coding | 19bda40200ee1fdcc16bb3dc174fe14c7090b58d | [
"MIT"
] | null | null | null | /*
Description : Write a method to replace all spaces in a string with '%20: You may assume that the string has sufficient space at the end to hold the additional characters,
and that you are given the "true" length of the string/
*/
int replaceSpaces(char str[])
{
// count spaces and find curr... | 24.722222 | 174 | 0.484644 | jv640 |
b29cf73236e924e5609aa88ce9dba0bb6ca75816 | 5,744 | cpp | C++ | src/losses.cpp | AvocadoML/ReferenceBackend | 391644beb6eacc1982c23aab6ca5104acae4131e | [
"Apache-2.0"
] | null | null | null | src/losses.cpp | AvocadoML/ReferenceBackend | 391644beb6eacc1982c23aab6ca5104acae4131e | [
"Apache-2.0"
] | null | null | null | src/losses.cpp | AvocadoML/ReferenceBackend | 391644beb6eacc1982c23aab6ca5104acae4131e | [
"Apache-2.0"
] | null | null | null | /*
* losses.cpp
*
* Created on: Nov 25, 2021
* Author: Maciej Kozarzewski
*/
#include <Avocado/reference_backend.h>
#include <Avocado/backend_descriptors.hpp>
#include "utils.hpp"
namespace
{
using namespace avocado::backend;
template<typename T>
T kernel_MSE_loss(const T *output, const T *target, av_i... | 33.011494 | 140 | 0.686281 | AvocadoML |
b2a44270c5ac741c456296b45b733c5670016c8f | 3,458 | h++ | C++ | include/ogonek/segmentation/graphemes.h++ | libogonek/ogonek | 46b7edbf6b7ff89892f5ba25494749b442e771b3 | [
"CC0-1.0"
] | 25 | 2016-10-21T12:37:23.000Z | 2021-02-22T05:46:46.000Z | include/ogonek/segmentation/graphemes.h++ | libogonek/ogonek | 46b7edbf6b7ff89892f5ba25494749b442e771b3 | [
"CC0-1.0"
] | null | null | null | include/ogonek/segmentation/graphemes.h++ | libogonek/ogonek | 46b7edbf6b7ff89892f5ba25494749b442e771b3 | [
"CC0-1.0"
] | 4 | 2016-09-05T10:23:18.000Z | 2020-07-09T19:37:37.000Z | // Ogonek
//
// Written in 2012-2013 by Martinho Fernandes <martinho.fernandes@gmail.com>
//
// To the extent possible under law, the author(s) have dedicated all copyright and related
// and neighboring rights to this software to the public domain worldwide. This software is
// distributed without any warranty.
//
// ... | 37.182796 | 120 | 0.643436 | libogonek |
b2abaced5f1b57ccd0a666a432bb5287208d68b7 | 4,346 | hpp | C++ | include/Matrix3.hpp | CCColda/calcda | 0d30d2d7c0d8c4abdbf7642e8df2879b9ef7b7a0 | [
"MIT"
] | null | null | null | include/Matrix3.hpp | CCColda/calcda | 0d30d2d7c0d8c4abdbf7642e8df2879b9ef7b7a0 | [
"MIT"
] | null | null | null | include/Matrix3.hpp | CCColda/calcda | 0d30d2d7c0d8c4abdbf7642e8df2879b9ef7b7a0 | [
"MIT"
] | null | null | null | #ifndef CALCDA_MATRIX3_H
#define CALCDA_MATRIX3_H
#include <initializer_list> // std::initializer_list
#include "Intrinsic.hpp"
#include "Rotation.hpp" // Calcda::Rotation
#include "Vector2.hpp" // Calcda::Vector2
#include "Vector3.hpp" // Calcda::Vector3
#include <string>
namespace Calcda {
//! @brief Class for... | 28.973333 | 78 | 0.645651 | CCColda |
b2b22ebb2ba3af965860f4367dff6a0839e1c44a | 836 | hpp | C++ | auxprogs/utrrnaseq/src/flex_vec.hpp | sestaton/Augustus | 893e0b21fa90bd57fcd0dff2c1e849e88bb02049 | [
"Artistic-1.0"
] | 178 | 2018-05-25T09:51:13.000Z | 2022-03-30T13:55:58.000Z | auxprogs/utrrnaseq/src/flex_vec.hpp | sestaton/Augustus | 893e0b21fa90bd57fcd0dff2c1e849e88bb02049 | [
"Artistic-1.0"
] | 249 | 2018-07-02T07:03:12.000Z | 2022-03-30T00:01:01.000Z | auxprogs/utrrnaseq/src/flex_vec.hpp | sestaton/Augustus | 893e0b21fa90bd57fcd0dff2c1e849e88bb02049 | [
"Artistic-1.0"
] | 95 | 2018-08-21T21:33:19.000Z | 2022-03-30T13:56:00.000Z | /**
* \file flex_vec.hpp
*/
#ifndef FLEX_VEC_HPP_
#define FLEX_VEC_HPP_
#include <vector>
/**
* @brief Special vector in which the value of its first index can be chosen individually
*/
template<class T> class Flex_Vec : public std::vector<T>
{
public:
Flex_Vec(int first_pos, int last_pos) : std::vector<T>(last... | 24.588235 | 109 | 0.659091 | sestaton |
b2b3634ccfd0f8cf7b428301b2b6bcc576370662 | 5,716 | hpp | C++ | include/smooth/c1.hpp | tgurriet/smooth | c19e35e23c8e0084314726729d0cf6729192240f | [
"MIT"
] | 31 | 2021-07-06T21:05:05.000Z | 2022-02-09T13:26:44.000Z | include/smooth/c1.hpp | tgurriet/smooth | c19e35e23c8e0084314726729d0cf6729192240f | [
"MIT"
] | 23 | 2021-07-07T21:13:49.000Z | 2022-03-19T04:40:37.000Z | include/smooth/c1.hpp | tgurriet/smooth | c19e35e23c8e0084314726729d0cf6729192240f | [
"MIT"
] | 6 | 2021-07-09T07:16:08.000Z | 2022-01-12T14:29:44.000Z | // smooth: Lie Theory for Robotics
// https://github.com/pettni/smooth
//
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
//
// Copyright (c) 2021 Petter Nilsson
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation fi... | 22.592885 | 88 | 0.647481 | tgurriet |
b2b448081e570f152ecb5186ac7edce3b04d01ba | 3,526 | hpp | C++ | include/edlib/EDP/LocalHamiltonian.hpp | cecri/ExactDiagonalization | a168ed2f60149b1c3e5bd9ae46a5d169aea76773 | [
"MIT"
] | null | null | null | include/edlib/EDP/LocalHamiltonian.hpp | cecri/ExactDiagonalization | a168ed2f60149b1c3e5bd9ae46a5d169aea76773 | [
"MIT"
] | null | null | null | include/edlib/EDP/LocalHamiltonian.hpp | cecri/ExactDiagonalization | a168ed2f60149b1c3e5bd9ae46a5d169aea76773 | [
"MIT"
] | null | null | null | #pragma once
#include <Eigen/Sparse>
namespace edp
{
namespace internal
{
inline uint32_t ipow(uint32_t base, uint32_t exp)
{
uint32_t result = 1U;
while(exp != 0)
{
if((exp & 1U) != 0)
{
result *= base;
}
exp >>= 1U;
... | 27.76378 | 99 | 0.577708 | cecri |
b2b58a468617610f26a94ce21af9b0d8c5a552ee | 7,484 | cpp | C++ | Implementations/content/strings (14)/Heavy/SuffixArrayTest.cpp | wanglawrence9990/USACO | 45c9bce4b3ac77d2a4ba2e646ff45a02563b59d2 | [
"CC0-1.0"
] | null | null | null | Implementations/content/strings (14)/Heavy/SuffixArrayTest.cpp | wanglawrence9990/USACO | 45c9bce4b3ac77d2a4ba2e646ff45a02563b59d2 | [
"CC0-1.0"
] | null | null | null | Implementations/content/strings (14)/Heavy/SuffixArrayTest.cpp | wanglawrence9990/USACO | 45c9bce4b3ac77d2a4ba2e646ff45a02563b59d2 | [
"CC0-1.0"
] | 1 | 2021-07-04T02:36:09.000Z | 2021-07-04T02:36:09.000Z | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef double db;
typedef string str;
typedef pair<int, int> pi;
typedef pair<ll,ll> pl;
typedef pair<ld,ld> pd;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<ld> vd;
typedef vector<str> vs;
typedef ... | 28.241509 | 94 | 0.563201 | wanglawrence9990 |
b2c369a20d23a70445a99c42cc27e5bd2b1168d8 | 1,193 | cpp | C++ | cpp/src/exercise/e0900/e0892.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0900/e0892.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0900/e0892.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | // https://leetcode-cn.com/problems/surface-area-of-3d-shapes/
#include "extern.h"
class S0892 {
public:
int surfaceArea(vector<vector<int>>& grid) {
if (grid.empty() || grid.front().empty()) return 0;
int r_size = grid.size(), c_size = grid.front().size();
int result = 0;
for (int... | 34.085714 | 73 | 0.50964 | ajz34 |
b2c76d68c287040000c84c2c6f878d977b19a5af | 1,897 | cpp | C++ | SortingAndSearching/SlidingMedian/m2.cpp | 0x5eba/CSES-solutions | c18b66262f5dbef44b58d793f5185c3d0cf3a77c | [
"MIT"
] | 27 | 2019-12-23T21:20:00.000Z | 2022-02-06T04:28:27.000Z | SortingAndSearching/SlidingMedian/m2.cpp | 0x5eba/CSES-solutions | c18b66262f5dbef44b58d793f5185c3d0cf3a77c | [
"MIT"
] | 2 | 2020-04-14T21:40:43.000Z | 2020-09-06T11:15:42.000Z | SortingAndSearching/SlidingMedian/m2.cpp | 0x5eba/CSES-solutions | c18b66262f5dbef44b58d793f5185c3d0cf3a77c | [
"MIT"
] | 9 | 2020-05-22T08:00:29.000Z | 2021-09-14T09:01:58.000Z | #include<bits/stdc++.h>
using namespace std;
typedef pair<int,int> ii;
typedef long long ll;
bool mysort(ii &a, ii &b) {
return (a.first < b.first);
}
template<typename T> T getint() {
T val=0;
char c;
bool neg=false;
while((c=getchar()) && !(c>='0' && c<='9')) {
neg|=c=='-';
}
do {
val=(val*10)+c-'... | 20.180851 | 84 | 0.448603 | 0x5eba |
b2c8aeded0904b0b2479c8225e17385703a8f9ec | 511 | hpp | C++ | src/acceleration/bbox.hpp | gosteponlegopls/inferno | b007277be1c0500403bd46c93b279c02615fbb17 | [
"MIT"
] | 13 | 2019-09-09T09:29:27.000Z | 2019-10-26T00:04:29.000Z | src/acceleration/bbox.hpp | gosteponlegopls/inferno | b007277be1c0500403bd46c93b279c02615fbb17 | [
"MIT"
] | null | null | null | src/acceleration/bbox.hpp | gosteponlegopls/inferno | b007277be1c0500403bd46c93b279c02615fbb17 | [
"MIT"
] | 1 | 2019-10-07T15:44:23.000Z | 2019-10-07T15:44:23.000Z | #ifndef INFERNO_ACCELERATION_BBOX_H_
#define INFERNO_ACCELERATION_BBOX_H_
#include "../maths.hpp"
class Ray;
class Triangle;
class BBox {
public:
glm::vec3 vmin, vmax;
BBox();
void MakeEmpty();
void Add(glm::vec3 vec);
bool Inside(glm::vec3 v);
bool TestIntersect(Ray& ray);
float ClosestIntersection(Ra... | 20.44 | 64 | 0.726027 | gosteponlegopls |
b2cd318fd9d56335f1794610ba1da280fd11d400 | 2,298 | cpp | C++ | GenericExpressInstanceParserTests/BenchmarkTestCase.cpp | quinte17/GenericExpressInstanceParser | cfa5736e73fb34cc1fa86f87f7dcd1e74218c42f | [
"Zlib"
] | null | null | null | GenericExpressInstanceParserTests/BenchmarkTestCase.cpp | quinte17/GenericExpressInstanceParser | cfa5736e73fb34cc1fa86f87f7dcd1e74218c42f | [
"Zlib"
] | 6 | 2015-02-15T13:35:19.000Z | 2015-02-15T14:41:05.000Z | GenericExpressInstanceParserTests/BenchmarkTestCase.cpp | quinte17/GenericExpressInstanceParser | cfa5736e73fb34cc1fa86f87f7dcd1e74218c42f | [
"Zlib"
] | null | null | null | #include "BenchmarkTestCase.h"
//qt inlcudes
#include <QTest>
//stl includes
#include <sstream>
//generic express instance parser (geip) inclues
#include <GenericExpressInstanceParser.h>
BenchmarkTestCase::BenchmarkTestCase(QObject *parent)
: QObject(parent)
{
}
BenchmarkTestCase::~BenchmarkTestCase()
{
}
/*... | 23.44898 | 85 | 0.568755 | quinte17 |
b2ceace61fd1438091b30e2bb3ae9de79df1cd24 | 2,780 | cpp | C++ | Programacion Competitiva/UVA/10044.cpp | Angel1612/Computer_Science_UNSA | e1696fd2cb7c66f6af9aa14dbd96b4f67c787425 | [
"MIT"
] | null | null | null | Programacion Competitiva/UVA/10044.cpp | Angel1612/Computer_Science_UNSA | e1696fd2cb7c66f6af9aa14dbd96b4f67c787425 | [
"MIT"
] | null | null | null | Programacion Competitiva/UVA/10044.cpp | Angel1612/Computer_Science_UNSA | e1696fd2cb7c66f6af9aa14dbd96b4f67c787425 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <map>
#include <sstream>
#include <cmath>
#include <bitset>
#include <utility>
#include <set>
#include <numeric>
#include <time.h... | 22.419355 | 77 | 0.455396 | Angel1612 |
b2ceff915f080f48571331a4f045f1088351e225 | 1,166 | cpp | C++ | utils/print_stats.cpp | ndvbd/tongrams | a301022cd01a21f542757c22b6738ff647887e00 | [
"Apache-2.0"
] | null | null | null | utils/print_stats.cpp | ndvbd/tongrams | a301022cd01a21f542757c22b6738ff647887e00 | [
"Apache-2.0"
] | null | null | null | utils/print_stats.cpp | ndvbd/tongrams | a301022cd01a21f542757c22b6738ff647887e00 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include "../lm_types.hpp"
#include "util.hpp"
#include "stats.cpp"
using namespace tongrams;
template<typename T>
void print_stats(const char* binary_filename) {
T model;
util::logger("Loading data structure");
size_t bytes = util::load(model, binary_filename);
model.print_stats(... | 27.116279 | 95 | 0.593482 | ndvbd |
b2d2e2ceee6dd9715c2634dd71b13f0f4beac50e | 16,914 | cc | C++ | chrome/browser/sync/glue/autofill_profile_model_associator.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 2 | 2017-09-02T19:08:28.000Z | 2021-11-15T15:15:14.000Z | chrome/browser/sync/glue/autofill_profile_model_associator.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/sync/glue/autofill_profile_model_associator.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/sync/glue/autofill_profile_model_associator.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/sync/glue/a... | 35.311065 | 80 | 0.701135 | Gitman1989 |
b2d37ae701bdb5a596446000a15e667c0b88cee3 | 588 | cpp | C++ | Source/SA/Logger/Streams/ALogStream.cpp | SapphireSuite/Logger | c922f1b0899274cc586df66b18572da55f4a3e2a | [
"MIT"
] | null | null | null | Source/SA/Logger/Streams/ALogStream.cpp | SapphireSuite/Logger | c922f1b0899274cc586df66b18572da55f4a3e2a | [
"MIT"
] | 1 | 2022-02-08T18:52:56.000Z | 2022-02-08T18:52:56.000Z | Source/SA/Logger/Streams/ALogStream.cpp | SapphireSuite/Logger | c922f1b0899274cc586df66b18572da55f4a3e2a | [
"MIT"
] | null | null | null | // Copyright (c) 2022 Sapphire's Suite. All Rights Reserved.
#include <Streams/ALogStream.hpp>
namespace Sa
{
void ALogStream::ProcessLog(const Log& _log, bool _bForce)
{
if (_bForce)
{
Output(_log);
return;
}
const bool bLevelEnabled = levelFlags & _log.level;
const bool bChannelEnabled = channelF... | 16.8 | 77 | 0.693878 | SapphireSuite |
b2d501f028082eb9bfafe3206858fa4ab18da761 | 8,238 | cpp | C++ | SallenKeyLPF/Plugin/Source/PluginProcessor.cpp | kzantow-audio/Bad-Circuit-Modelling | d592dbafc98d9a45190b9fe6ae1c86f382e26bea | [
"MIT"
] | 22 | 2020-01-05T02:22:04.000Z | 2021-12-11T06:20:13.000Z | SallenKeyLPF/Plugin/Source/PluginProcessor.cpp | kzantow-audio/Bad-Circuit-Modelling | d592dbafc98d9a45190b9fe6ae1c86f382e26bea | [
"MIT"
] | 1 | 2020-12-08T15:40:56.000Z | 2020-12-08T22:14:39.000Z | SallenKeyLPF/Plugin/Source/PluginProcessor.cpp | kzantow-audio/Bad-Circuit-Modelling | d592dbafc98d9a45190b9fe6ae1c86f382e26bea | [
"MIT"
] | 3 | 2020-10-01T01:51:41.000Z | 2021-07-21T11:34:59.000Z | /*
==============================================================================
This file was auto-generated!
It contains the basic framework code for a JUCE plugin processor.
==============================================================================
*/
#include "PluginProcessor.h"
#include "FullP... | 32.054475 | 142 | 0.630978 | kzantow-audio |
b2d9e93db99c1ec59c85467669589c93523066b3 | 4,349 | hpp | C++ | test/data_sampler.hpp | youruncleda/relative_pose | cb613f210a812e03754fbfc9c2e93d1f6fe4a265 | [
"BSD-3-Clause"
] | 21 | 2020-07-08T17:58:17.000Z | 2022-02-28T03:58:37.000Z | test/data_sampler.hpp | taogashi/relative_pose | cb613f210a812e03754fbfc9c2e93d1f6fe4a265 | [
"BSD-3-Clause"
] | null | null | null | test/data_sampler.hpp | taogashi/relative_pose | cb613f210a812e03754fbfc9c2e93d1f6fe4a265 | [
"BSD-3-Clause"
] | 5 | 2020-07-24T01:26:28.000Z | 2020-10-13T13:32:48.000Z | #include <opencv2/opencv.hpp>
double ANGLE_EPSILON = 1e-5;
struct DataSampler
{
bool zero_screw_transl;
double angle_bound, nearest_dist, baseline_turb, depth,
focal, half_size, noise, outlier_rate;
cv::Vec3d baseline;
cv::RNG rng;
DataSampler();
void sampleRays(int num_points, cv::... | 31.28777 | 83 | 0.675328 | youruncleda |
b2dbd22913caabe1dd52abe4ff37accd261dd658 | 1,528 | cpp | C++ | src/body_interact_game/body_analizer.cpp | forno/body_interact_game | 8668c45fbe4c0d91aa1345b6c833d3b507920669 | [
"BSD-3-Clause"
] | 1 | 2021-04-26T04:44:19.000Z | 2021-04-26T04:44:19.000Z | src/body_interact_game/body_analizer.cpp | forno/body_interact_game | 8668c45fbe4c0d91aa1345b6c833d3b507920669 | [
"BSD-3-Clause"
] | null | null | null | src/body_interact_game/body_analizer.cpp | forno/body_interact_game | 8668c45fbe4c0d91aa1345b6c833d3b507920669 | [
"BSD-3-Clause"
] | null | null | null | #include <body_interact_game/body_analizer.hpp>
#include <Eigen/SVD>
namespace
{
constexpr auto pi {3.141592653589793};
inline Eigen::AngleAxisd get_yaw_inverse_matrix(Eigen::Affine3d pos) noexcept
{
const auto ypr {pos.rotation().eulerAngles(2, 0, 1)};
const auto yaw_angle {ypr(0) < pi / 2 ? ypr(2) : ypr(2) - ... | 36.380952 | 104 | 0.744764 | forno |
b2e414c4c122c0d20494e7a124f7f019fee0a649 | 4,709 | cpp | C++ | src/io.cpp | cmourglia/cpp_utils | ae7ea1521ac68edced2dbe0f0d00d760028cc2d2 | [
"MIT"
] | null | null | null | src/io.cpp | cmourglia/cpp_utils | ae7ea1521ac68edced2dbe0f0d00d760028cc2d2 | [
"MIT"
] | null | null | null | src/io.cpp | cmourglia/cpp_utils | ae7ea1521ac68edced2dbe0f0d00d760028cc2d2 | [
"MIT"
] | null | null | null | #include <beard/io/io.h>
#include <beard/core/macros.h>
#include <codecvt>
#if BEARD_PLATFORM_WINDOWS
START_EXTERNAL_INCLUDE
# include <Windows.h>
END_EXTERNAL_INCLUDE
#elif
# error TODO
#endif
namespace beard::io
{
i64 get_file_write_time(const char* filename)
{
#if BEARD_PLATFORM_WINDOWS
HANDLE fileHandle = Crea... | 24.148718 | 109 | 0.635804 | cmourglia |
b2e714af274683b9767415360dea70f91b29b6c6 | 278 | hpp | C++ | include/o80_example/joint.hpp | intelligent-soft-robots/o80_example | bd72eca61e0ddd0c3318ac3aabdba163e77c5ba2 | [
"BSD-3-Clause"
] | 1 | 2021-04-08T09:03:43.000Z | 2021-04-08T09:03:43.000Z | include/o80_example/joint.hpp | intelligent-soft-robots/o80_example | bd72eca61e0ddd0c3318ac3aabdba163e77c5ba2 | [
"BSD-3-Clause"
] | 1 | 2020-12-22T16:44:38.000Z | 2020-12-22T16:44:38.000Z | include/o80_example/joint.hpp | intelligent-soft-robots/o80_example | bd72eca61e0ddd0c3318ac3aabdba163e77c5ba2 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "o80/state.hpp"
namespace o80_example
{
class Joint : public o80::State<double, Joint>
{
public:
Joint() : o80::State<double, Joint>(0)
{
}
Joint(double value) : o80::State<double, Joint>(value)
{
}
};
} // namespace o80_example
| 15.444444 | 58 | 0.625899 | intelligent-soft-robots |
b2e827a6d1cd26afc8fe25b85bef4d70d035f9c0 | 8,556 | cpp | C++ | Engine/Preview_Lightning.cpp | AutoSync/LightningEngine | 0c3b0daba4399aa71d56327254caca59cb5f4858 | [
"Apache-2.0"
] | null | null | null | Engine/Preview_Lightning.cpp | AutoSync/LightningEngine | 0c3b0daba4399aa71d56327254caca59cb5f4858 | [
"Apache-2.0"
] | null | null | null | Engine/Preview_Lightning.cpp | AutoSync/LightningEngine | 0c3b0daba4399aa71d56327254caca59cb5f4858 | [
"Apache-2.0"
] | null | null | null | //// 2018 - 2022 AutoSync Lightning Engine | Erick Andrade - All Rights Reserved
//
///* nuklear - 1.32.0 - public domain */
//#include <stdio.h>
//#include <stdlib.h>
//#include <stdint.h>
//#include <stdarg.h>
//#include <string.h>
//#include <math.h>
//#include <assert.h>
//#include <limits.h>
//#include <time.h>
//... | 36.564103 | 126 | 0.589177 | AutoSync |
b2e941fecd4d3f3e6b267317035a2a83f01e782f | 1,145 | cpp | C++ | src/ui/AsyncMessage.cpp | jnmeurisse/FortiRDP | 53f48413c8a292304de27468b271847534353c61 | [
"Apache-2.0"
] | null | null | null | src/ui/AsyncMessage.cpp | jnmeurisse/FortiRDP | 53f48413c8a292304de27468b271847534353c61 | [
"Apache-2.0"
] | null | null | null | src/ui/AsyncMessage.cpp | jnmeurisse/FortiRDP | 53f48413c8a292304de27468b271847534353c61 | [
"Apache-2.0"
] | 1 | 2022-02-19T19:47:43.000Z | 2022-02-19T19:47:43.000Z | /*!
* This file is part of FortiRDP
*
* Copyright (C) 2022 Jean-Noel Meurisse
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "AsyncMessage.h"
AsyncMessage::AsyncMessage(UINT eventNumber):
_id(eventNumber)
{
}
AsyncMessage::~AsyncMessage()
{
}
LRESULT AsyncMessage::send(HWND hWnd, void* lParam) const
{
retu... | 24.361702 | 82 | 0.8 | jnmeurisse |
b2e9ffdbba0177937e38cf55fe2ec9dec0f50bae | 42,665 | cpp | C++ | CodeGenere/photogram/cEqAppui_PProjInc_M2CDRad5APFraser.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 451 | 2016-11-25T09:40:28.000Z | 2022-03-30T04:20:42.000Z | CodeGenere/photogram/cEqAppui_PProjInc_M2CDRad5APFraser.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 143 | 2016-11-25T20:35:57.000Z | 2022-03-01T11:58:02.000Z | CodeGenere/photogram/cEqAppui_PProjInc_M2CDRad5APFraser.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 139 | 2016-12-02T10:26:21.000Z | 2022-03-10T19:40:29.000Z | // File Automatically generated by eLiSe
#include "StdAfx.h"
#include "cEqAppui_PProjInc_M2CDRad5APFraser.h"
cEqAppui_PProjInc_M2CDRad5APFraser::cEqAppui_PProjInc_M2CDRad5APFraser():
cElCompiledFonc(2)
{
AddIntRef (cIncIntervale("Intr",0,14));
AddIntRef (cIncIntervale("Orient",14,20));
AddIntRef (cIncInt... | 41.951819 | 182 | 0.663284 | kikislater |
b2ed90e1ec93d49c26bdf4abf6e6eb746fb82ebc | 508 | cpp | C++ | 1000-1100/1003. Check If Word Is Valid After Substitutions.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 1000-1100/1003. Check If Word Is Valid After Substitutions.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 1000-1100/1003. Check If Word Is Valid After Substitutions.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | class Solution
{
public:
bool isValid(string s)
{
stack<char> stk;
for (auto &c : s)
{
if (c == 'c')
{
string tmp;
for (int i = 0; i < 2 && !stk.empty(); i++)
{
tmp.push_back(stk.top());
stk.pop();
}
if (tmp.size() == 2 && tmp[0] ==... | 18.142857 | 62 | 0.385827 | erichuang1994 |
b2f02d92f43bcf33b03806283c1ec89cf100506e | 2,806 | hpp | C++ | MACAO/ORAM.hpp | thanghoang/MACAO | b1614ca7311f3555ca492b1088ca031089c1099e | [
"MIT"
] | 4 | 2020-02-25T22:55:35.000Z | 2021-06-17T22:10:34.000Z | MACAO/ORAM.hpp | thanghoang/MACAO | b1614ca7311f3555ca492b1088ca031089c1099e | [
"MIT"
] | null | null | null | MACAO/ORAM.hpp | thanghoang/MACAO | b1614ca7311f3555ca492b1088ca031089c1099e | [
"MIT"
] | 5 | 2020-03-04T21:37:54.000Z | 2022-01-07T19:27:15.000Z | /*
* ORAM.hpp
*
* Author: thanghoang
*/
#ifndef SSORAM_HPP
#define SSORAM_HPP
#include "config.h"
class ORAM
{
public:
ORAM();
~ORAM();
static int build(TYPE_POS_MAP *pos_map, TYPE_INDEX **metaData);
static int getEvictIdx(TYPE_INDEX *srcIdx, TYPE_INDEX *destIdx, TYPE_INDEX *siblIdx, strin... | 43.84375 | 160 | 0.743051 | thanghoang |
b2f0a5db171fc333c3dde0a8f6200150cdfbde7d | 1,847 | cpp | C++ | usaco_practice/gold/gold_practice/radio.cpp | juneharold/USACO | a96b54f68e7247c61044f3c0d9e7260952c508e2 | [
"MIT"
] | null | null | null | usaco_practice/gold/gold_practice/radio.cpp | juneharold/USACO | a96b54f68e7247c61044f3c0d9e7260952c508e2 | [
"MIT"
] | null | null | null | usaco_practice/gold/gold_practice/radio.cpp | juneharold/USACO | a96b54f68e7247c61044f3c0d9e7260952c508e2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <string>
using namespace std;
#define f first
#define s second
const int MAX=1005;
int N, M, dp[MAX][MAX]={};
pair<int, int> fj[MAX], bs[MAX];
string fjpath, bspath;
int solve(int a, int b) {
if (a<0 || b<0) return 1e9;
if (dp[a][b]!=1e9) return dp[a][b];
... | 22.253012 | 85 | 0.409854 | juneharold |
b2f19468a25729f55ddfba3f5415c1ade12e5fa3 | 502 | cpp | C++ | Lista5/exe3.cpp | nathalyoliveira/LG1-IFSP | b072c916f71a8b5924a766d8b6fa4e0a481faa64 | [
"MIT"
] | null | null | null | Lista5/exe3.cpp | nathalyoliveira/LG1-IFSP | b072c916f71a8b5924a766d8b6fa4e0a481faa64 | [
"MIT"
] | null | null | null | Lista5/exe3.cpp | nathalyoliveira/LG1-IFSP | b072c916f71a8b5924a766d8b6fa4e0a481faa64 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<conio.h>
int main()
{
int a[15], b[15],i, j,x, y;
for (i=0;i<15;++i)
{puts("DIGITE OS VALORES DO VETOR A:");
scanf("%d", &a[i]);}
for(i=0;i<15;++i)
{
b[i]=1;
for(y=a[i]; y>=1; y--)
{b[i]=b[i]*y;}
}
for(i=0;i<15;++i)
for(j=i+1;j<15... | 14.764706 | 46 | 0.39243 | nathalyoliveira |
b2f381a8a283377e0c47afcc4b39f4069dd274d2 | 797 | cpp | C++ | src/TCPClient.cpp | mjssw/crux-net | 6dd2e2b36e9e6211b959f21cb34e3c7fb4845788 | [
"BSD-3-Clause"
] | 1 | 2016-07-04T16:07:57.000Z | 2016-07-04T16:07:57.000Z | src/TCPClient.cpp | mjssw/crux-net | 6dd2e2b36e9e6211b959f21cb34e3c7fb4845788 | [
"BSD-3-Clause"
] | null | null | null | src/TCPClient.cpp | mjssw/crux-net | 6dd2e2b36e9e6211b959f21cb34e3c7fb4845788 | [
"BSD-3-Clause"
] | null | null | null | #include "TCPClient.h"
#include "Session.h"
namespace Crux
{
TCPClient::TCPClient()
: m_Connected(false), m_pSession( NULL )
{
}
TCPClient::~TCPClient()
{
}
void TCPClient::Disconnect()
{
m_Connected = false;
m_pSession->Disconnect();
}
bool TCPClient::Connected() const
{
return m_Connected;
}
void TCPClient::... | 15.037736 | 66 | 0.734003 | mjssw |
b2ffe4331f29fb6e3bcbc7f7f79bd88ccf42a2f3 | 706 | cpp | C++ | Algorithms/Implementation/counting-valleys.cpp | CodeLogist/hackerrank-solutions | faecc4c9563a017eb61e83f0025aa9eb78fd33a1 | [
"MIT"
] | 73 | 2016-09-14T18:20:41.000Z | 2022-02-05T14:58:04.000Z | Algorithms/Implementation/counting-valleys.cpp | A-STAR0/hackerrank-solutions-1 | 518cdd9049477d70c499ba4f51f06ac99178f0ab | [
"MIT"
] | 3 | 2017-03-03T01:12:31.000Z | 2020-04-18T16:51:59.000Z | Algorithms/Implementation/counting-valleys.cpp | A-STAR0/hackerrank-solutions-1 | 518cdd9049477d70c499ba4f51f06ac99178f0ab | [
"MIT"
] | 69 | 2017-03-02T19:03:54.000Z | 2022-03-29T12:35:38.000Z | #include <vector>
#include <iostream>
#include <algorithm>
int main() {
int n; std::cin >> n;
std::vector<int> heights(n+2,0);
std::string steps; std::cin >> steps;
for (int i = 1; i < n+1; i++) {
heights[i] = heights[i-1] + (steps[i-1] == 'U' ? 1 : -1);
}
int valley_count = 0... | 22.774194 | 86 | 0.444759 | CodeLogist |
6502ccea58da2816e11f2756f5a72692b8419b44 | 4,266 | cpp | C++ | src/yb/redisserver/cpp_redis/sources/redis_subscriber.cpp | pritamdamania87/yugabyte-db | 70355f6c9248356e84cf21588013ea477fd04a5d | [
"Apache-2.0",
"CC0-1.0"
] | 1 | 2021-01-15T00:24:31.000Z | 2021-01-15T00:24:31.000Z | src/yb/redisserver/cpp_redis/sources/redis_subscriber.cpp | pritamdamania87/yugabyte-db | 70355f6c9248356e84cf21588013ea477fd04a5d | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/yb/redisserver/cpp_redis/sources/redis_subscriber.cpp | pritamdamania87/yugabyte-db | 70355f6c9248356e84cf21588013ea477fd04a5d | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | #include "cpp_redis/redis_subscriber.hpp"
#include "cpp_redis/redis_error.hpp"
#include "cpp_redis/replies/bulk_string_reply.hpp"
namespace cpp_redis {
redis_subscriber::~redis_subscriber(void) {
if (is_connected())
disconnect();
}
void
redis_subscriber::connect(const std::string& host, unsigned int port,
... | 25.698795 | 134 | 0.723394 | pritamdamania87 |
65043abe05a14cd892f253a478832fcffba14c63 | 1,354 | cpp | C++ | SFMLTilingTest/SFMLTilingTest.cpp | deanmsands3/TestBench | bdefdfa25fdb2d61b7f14d6b06cae5904ffc5107 | [
"Unlicense"
] | null | null | null | SFMLTilingTest/SFMLTilingTest.cpp | deanmsands3/TestBench | bdefdfa25fdb2d61b7f14d6b06cae5904ffc5107 | [
"Unlicense"
] | null | null | null | SFMLTilingTest/SFMLTilingTest.cpp | deanmsands3/TestBench | bdefdfa25fdb2d61b7f14d6b06cae5904ffc5107 | [
"Unlicense"
] | null | null | null | #include <unordered_map>
#include <iostream>
#include <SFML/Graphics.hpp>
#include <cmath>
#include <vector>
#include <string>
#include "TwoDimRenderingEngine.h"
#define WIDTH 1280
#define HEIGHT 720
int main(int argc, char **argv) {
std::vector<std::string> texture_files{
"Black", "Red", "Blue", "Green", "Yellow",... | 31.488372 | 73 | 0.60709 | deanmsands3 |
6507a43c497b8fa11b5b99747952df588ab4ff6d | 1,638 | cpp | C++ | gameObjects/Shot.cpp | streusselhirni/HF-ICT_GUI_Game-Pokemon | a260fd8088b3c1ef69a7d197d8de3448459341ba | [
"MIT"
] | null | null | null | gameObjects/Shot.cpp | streusselhirni/HF-ICT_GUI_Game-Pokemon | a260fd8088b3c1ef69a7d197d8de3448459341ba | [
"MIT"
] | null | null | null | gameObjects/Shot.cpp | streusselhirni/HF-ICT_GUI_Game-Pokemon | a260fd8088b3c1ef69a7d197d8de3448459341ba | [
"MIT"
] | null | null | null | #include <QString>
#include <cmath>
#include "Shot.h"
#include <QPainter>
Shot::Shot(int x, int y, int speed, int angle)
: GameObject(x, y, 50, new QMovie("img/pokeball.gif"), 50),
speed(speed),
angle(angle),
rotation(0),
t(0) {
this->fired = false;
}
void Shot::mov... | 26.419355 | 95 | 0.559829 | streusselhirni |
650e168120823187ed7ae46f661159a7f19274dc | 963 | cpp | C++ | Friendship/Main.cpp | rastabrandy02/Programming2 | 8dba0e75c01dc884df09f19bcacf1140ca9ca501 | [
"MIT"
] | null | null | null | Friendship/Main.cpp | rastabrandy02/Programming2 | 8dba0e75c01dc884df09f19bcacf1140ca9ca501 | [
"MIT"
] | null | null | null | Friendship/Main.cpp | rastabrandy02/Programming2 | 8dba0e75c01dc884df09f19bcacf1140ca9ca501 | [
"MIT"
] | 1 | 2021-02-22T08:43:48.000Z | 2021-02-22T08:43:48.000Z | #include <iostream>
#include "Friendship.cpp"
using namespace std;
void StarTouched(Player* p)
{
p->invincible = true;
}
int main()
{
string name;
string itemName;
bool playing = true;
cout << "Introduce your name: " << endl;
cin >> name;
Player player(name);
while (playing)
{
cout << "---STATS---" << e... | 20.0625 | 64 | 0.608515 | rastabrandy02 |
651025462d34c381134cf849b531b7444cfdf6e3 | 2,486 | cpp | C++ | Practice/2018/2018.9.25/BZOJ3428.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.9.25/BZOJ3428.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.9.25/BZOJ3428.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=50100;
const int inf=2147483647;
class Point
{
public:
int x,y;
};
int n;
Point B[maxN],W[maxN],Up[maxN],Down[maxN];
int... | 19.888 | 95 | 0.542639 | SYCstudio |
651039cda528f0b5c29d952f73704ceab04ddcba | 103 | cpp | C++ | src/my_app.cpp | mahilab/mahi-template | 022d0aa27b69abc71b7c6df610a65149069d62ad | [
"MIT"
] | 6 | 2018-09-14T05:07:03.000Z | 2021-09-30T17:15:11.000Z | template/src/my_app.cpp | mahilab/MEL | b877b2ed9cd265b1ee3c1cc623a339ec1dc73185 | [
"Zlib"
] | 1 | 2020-10-15T13:46:27.000Z | 2020-10-15T13:46:27.000Z | src/my_app.cpp | mahilab/mahi-template | 022d0aa27b69abc71b7c6df610a65149069d62ad | [
"MIT"
] | 3 | 2018-09-20T00:58:31.000Z | 2022-02-09T06:02:56.000Z | #include "MyClass.hpp"
int main() {
MyClass my_class;
my_class.hello_world();
return 0;
}
| 12.875 | 27 | 0.631068 | mahilab |
651162572aa7b7cbd753b2f7fd25c25e50ba7b26 | 3,601 | hpp | C++ | ivarp/include/ivarp/refactor_constraint_system/bound_and_simplify/bounded.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | ivarp/include/ivarp/refactor_constraint_system/bound_and_simplify/bounded.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | ivarp/include/ivarp/refactor_constraint_system/bound_and_simplify/bounded.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | // The code is open source under the MIT license.
// Copyright 2019-2020, Phillip Keldenich, TU Braunschweig, Algorithms Group
// https://ibr.cs.tu-bs.de/alg
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to de... | 43.914634 | 121 | 0.679811 | phillip-keldenich |
65138f723da8a2a7afc17942eddb6fa73ac11eb8 | 7,282 | cpp | C++ | Library/UILib/control_manager.cpp | ysm1180/NewJojoGame | d46be6e979642ed3f139ad7905c983ac03356dd2 | [
"MIT"
] | 6 | 2018-10-12T08:06:35.000Z | 2019-01-20T12:53:35.000Z | Library/UILib/control_manager.cpp | ysm1180/ThreeKingdoms-Caocao | d46be6e979642ed3f139ad7905c983ac03356dd2 | [
"MIT"
] | 2 | 2018-10-12T08:09:05.000Z | 2019-01-20T12:55:27.000Z | Library/UILib/control_manager.cpp | ysm1180/NewJojoGame | d46be6e979642ed3f139ad7905c983ac03356dd2 | [
"MIT"
] | 2 | 2018-05-19T17:49:23.000Z | 2018-10-15T03:10:57.000Z | #include "control_manager.h"
#include "audio_player.h"
#include "base_control.h"
#include "BaseLib\memory_pool.h"
#include "button.h"
#include "checkbox.h"
#include "combobox.h"
#include "graphic_rect.h"
#include "graphic_text.h"
#include "groupbox.h"
#include "image.h"
#include "layout.h"
#include "listview.h"
#inclu... | 34.187793 | 80 | 0.772178 | ysm1180 |
651893c66c5cb9a5aeacb85757d79ef1bed78516 | 4,490 | cc | C++ | tensorflow/compiler/jit/xla_interpreter_device.cc | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | tensorflow/compiler/jit/xla_interpreter_device.cc | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | tensorflow/compiler/jit/xla_interpreter_device.cc | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2017 The TensorFlow 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 by applicable ... | 41.962617 | 81 | 0.745434 | uve |
6518de16501351bd26c4dd51f4999cc049450244 | 1,666 | cpp | C++ | Quasics2017Code/Ralph/src/Commands/SwingTurnForAngle.cpp | quasics/quasics-frc-sw-2015 | e5a4f1b4e209ba941f12c2cc41759854f3c5420b | [
"BSD-3-Clause"
] | 5 | 2016-12-16T19:05:05.000Z | 2021-03-05T01:23:27.000Z | Quasics2017Code/Ralph/src/Commands/SwingTurnForAngle.cpp | quasics/quasics-frc-sw-2015 | e5a4f1b4e209ba941f12c2cc41759854f3c5420b | [
"BSD-3-Clause"
] | null | null | null | Quasics2017Code/Ralph/src/Commands/SwingTurnForAngle.cpp | quasics/quasics-frc-sw-2015 | e5a4f1b4e209ba941f12c2cc41759854f3c5420b | [
"BSD-3-Clause"
] | 2 | 2020-01-03T01:52:43.000Z | 2022-02-02T01:23:45.000Z | #include "SwingTurnForAngle.h"
#include "../Robot.h"
SwingTurnForAngle::SwingTurnForAngle(double targetDegreesAntiClockwise, double powerPercent) {
Requires(Robot::driveTrain.get());
Requires(Robot::gyro.get());
targetDegrees = targetDegreesAntiClockwise;
while (targetDegrees > 180) {
targetDegrees -= 360;
}
... | 24.865672 | 94 | 0.710084 | quasics |
651a3aac8a6ca622759c40562a744bbf640b0e98 | 2,009 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/accounts/CChooseResponse.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/accounts/CChooseResponse.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/accounts/CChooseResponse.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// 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
//
// ... | 33.483333 | 91 | 0.671478 | jingcao80 |
fb9410d0c997726a000381545d53111a2c044289 | 470 | cpp | C++ | lesson03/main.cpp | sonsongithub/study_cpp | 7a05505b4d7f42d0e6ff8d1014a128dc97df4689 | [
"MIT"
] | null | null | null | lesson03/main.cpp | sonsongithub/study_cpp | 7a05505b4d7f42d0e6ff8d1014a128dc97df4689 | [
"MIT"
] | null | null | null | lesson03/main.cpp | sonsongithub/study_cpp | 7a05505b4d7f42d0e6ff8d1014a128dc97df4689 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <tuple>
void hoge(std::vector<double> a) {
std::cout << "double" << std::endl;
}
void hoge(std::vector<int> a) {
std::cout << "int" << std::endl;
}
template <typename... Args>
int do_it_int(Args&&... args) {
std::vector<int> collected_args{std::forward<Args>... | 15.666667 | 65 | 0.582979 | sonsongithub |
fb972440557309e039d91b63500059efac2e2276 | 6,904 | cpp | C++ | sumo/src/utils/geom/GeomHelper.cpp | iltempe/osmosi | c0f54ecdbb7c7b5602d587768617d0dc50f1d75d | [
"MIT"
] | null | null | null | sumo/src/utils/geom/GeomHelper.cpp | iltempe/osmosi | c0f54ecdbb7c7b5602d587768617d0dc50f1d75d | [
"MIT"
] | null | null | null | sumo/src/utils/geom/GeomHelper.cpp | iltempe/osmosi | c0f54ecdbb7c7b5602d587768617d0dc50f1d75d | [
"MIT"
] | 2 | 2017-12-14T16:41:59.000Z | 2020-10-16T17:51:27.000Z | /****************************************************************************/
/// @file GeomHelper.cpp
/// @author Daniel Krajzewicz
/// @author Friedemann Wesner
/// @author Jakob Erdmann
/// @author Michael Behrisch
/// @date Sept 2002
/// @version $Id$
///
// Some static methods performing geometrical ope... | 30.148472 | 113 | 0.482329 | iltempe |
fb97ad979466ab2667fd371cd3d645500eda19eb | 1,002 | cpp | C++ | progress/herding.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | progress/herding.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | progress/herding.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | #include <iostream>
#include <fstream>
using namespace std;
bool herded(int A, int B, int C) {
if (B-A==1 && C-B==1) return true;
return false;
}
int find_min(int A, int B, int C, int moves) {
if (herded(A, B, C)) {
cout<<moves;
return 0;
}
int ld, rd; //left distance, right distanc... | 18.555556 | 47 | 0.472056 | birdhumming |
fb97e50d4da5b7a44c96164089206351794cec06 | 1,547 | cpp | C++ | ch5/5-11_set_recv_buffer.cpp | JimmyTang178/MyLinuxServer | 12d8b103163566090807469276fe4dcf4cef0b67 | [
"Apache-2.0"
] | null | null | null | ch5/5-11_set_recv_buffer.cpp | JimmyTang178/MyLinuxServer | 12d8b103163566090807469276fe4dcf4cef0b67 | [
"Apache-2.0"
] | null | null | null | ch5/5-11_set_recv_buffer.cpp | JimmyTang178/MyLinuxServer | 12d8b103163566090807469276fe4dcf4cef0b67 | [
"Apache-2.0"
] | null | null | null | #include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <stdio.h>
#include <assert.h>
#define BUF_SIZE 1024
int main(int argc, char* argv[]){
if (argc <= 3){
printf("usage: %s ip port recv_buffer_size\n... | 26.672414 | 74 | 0.618617 | JimmyTang178 |
fb990ef5a987bd942b89128aa41020c92c8b31bd | 251 | cpp | C++ | src/UOJ_1060 - (1698051) Accepted.cpp | dreamtocode/URI | 1f402853e8ae43f3761fc3099e7694bff721d5bc | [
"MIT"
] | 1 | 2015-04-26T03:55:07.000Z | 2015-04-26T03:55:07.000Z | src/UOJ_1060 - (1698051) Accepted.cpp | dreamtocode/URI | 1f402853e8ae43f3761fc3099e7694bff721d5bc | [
"MIT"
] | null | null | null | src/UOJ_1060 - (1698051) Accepted.cpp | dreamtocode/URI | 1f402853e8ae43f3761fc3099e7694bff721d5bc | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
double a;
int b = 0;
for(int i = 0; i < 6; i++) {
cin>>a;
if (a==0) continue;
if(a > 0)
b++;
}
cout<<b<<" valores positivos\n";
return 0;
} | 16.733333 | 36 | 0.446215 | dreamtocode |
fb99bb6f1a81a13f98002c0db06d6fd680d95642 | 4,278 | cpp | C++ | sources/day06.cpp | Gyebro/aoc19 | 59d00c525dd6539e121588984d2221494b0d265a | [
"MIT"
] | 2 | 2019-12-09T16:21:46.000Z | 2019-12-11T20:19:02.000Z | sources/day06.cpp | Gyebro/aoc19 | 59d00c525dd6539e121588984d2221494b0d265a | [
"MIT"
] | null | null | null | sources/day06.cpp | Gyebro/aoc19 | 59d00c525dd6539e121588984d2221494b0d265a | [
"MIT"
] | null | null | null | //
// Created by Gyebro on 2019-12-05.
//
#include "day06.h"
#include <limits>
class Planet {
public:
Planet(const string& ID) : id(ID) {
master = numeric_limits<size_t>::max();
}
Planet(const string& ID, size_t master_idx) : id(ID), master(master_idx) { }
string id;
size_t master;
};
size... | 38.890909 | 114 | 0.521739 | Gyebro |
fb99bfed6e5eb5e89e24e969ae56f304c12a8651 | 870 | cpp | C++ | AZ3166/src/cores/arduino/system/SerialLog.cpp | duglah/devkit-sdk | 7f016a1b00a25d6133009028c67b75e54495cf93 | [
"MIT"
] | 34 | 2019-05-08T07:36:51.000Z | 2021-11-11T19:40:39.000Z | AZ3166/src/cores/arduino/system/SerialLog.cpp | duglah/devkit-sdk | 7f016a1b00a25d6133009028c67b75e54495cf93 | [
"MIT"
] | 127 | 2018-01-04T10:24:22.000Z | 2019-04-19T15:18:58.000Z | AZ3166/src/cores/arduino/system/SerialLog.cpp | duglah/devkit-sdk | 7f016a1b00a25d6133009028c67b75e54495cf93 | [
"MIT"
] | 30 | 2018-01-15T03:40:57.000Z | 2019-04-18T19:58:19.000Z | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
#include "Arduino.h"
#ifdef __cplusplus
extern "C" {
#endif
void serial_log(const char* msg)
{
if (msg != NULL)
{
Serial.print(msg);
}
}
void serial_xlog(const char *format, ...)
{
va_list... | 17.755102 | 61 | 0.514943 | duglah |
fb9a663e106034b1524963366ddb62a387e02449 | 2,749 | cpp | C++ | src/core/actions/set_categories_draw_disabled.cpp | svendcsvendsen/judoassistant | 453211bff86d940c2b2de6f9eea2aabcdab830fa | [
"MIT"
] | 3 | 2019-04-26T17:48:24.000Z | 2021-11-08T20:21:51.000Z | src/core/actions/set_categories_draw_disabled.cpp | svendcsvendsen/judoassistant | 453211bff86d940c2b2de6f9eea2aabcdab830fa | [
"MIT"
] | 90 | 2019-04-25T17:23:10.000Z | 2022-02-12T19:49:55.000Z | src/core/actions/set_categories_draw_disabled.cpp | judoassistant/judoassistant | 3b200d3e35d9aff16ba224e6071ee9d888a5a03c | [
"MIT"
] | null | null | null | #include "core/actions/set_categories_draw_disabled.hpp"
#include "core/actions/draw_categories_action.hpp"
#include "core/draw_systems/draw_system.hpp"
#include "core/rulesets/ruleset.hpp"
#include "core/stores/category_store.hpp"
#include "core/stores/tournament_store.hpp"
SetCategoriesDrawDisabled::SetCategoriesDra... | 32.72619 | 123 | 0.720626 | svendcsvendsen |
fba01e0641b67f43f20947fabad68968f2d80333 | 4,484 | cpp | C++ | SocketCode/PyC/serverP.cpp | TeCSAR-UNCC/NVDA_DETEC | 6ec484ec0ef4ad1382056ceb0cd5e4c197c576b9 | [
"Apache-2.0"
] | 12 | 2019-05-10T09:56:39.000Z | 2021-08-09T03:42:28.000Z | SocketCode/PyC/serverP.cpp | TeCSAR-UNCC/Edge-Video-Analytic | 6ec484ec0ef4ad1382056ceb0cd5e4c197c576b9 | [
"Apache-2.0"
] | null | null | null | SocketCode/PyC/serverP.cpp | TeCSAR-UNCC/Edge-Video-Analytic | 6ec484ec0ef4ad1382056ceb0cd5e4c197c576b9 | [
"Apache-2.0"
] | 7 | 2019-06-14T03:38:09.000Z | 2021-08-09T03:43:27.000Z | #include <unistd.h>
#include <stdio.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <string.h>
#define PORT 65432
#define IPADDR INADDR_ANY
#include "opencv2/opencv.hpp"
using namespace cv;
//g++ serverTest.cpp -o server `pkg-config --cflags --libs opencv`
//gcc -shared -Wl,-son... | 18.919831 | 91 | 0.640946 | TeCSAR-UNCC |
fba14044edcca95408e72cc13286a336710f1cb5 | 1,396 | cpp | C++ | Felix/numberfmt_test.cpp | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | Felix/numberfmt_test.cpp | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | Felix/numberfmt_test.cpp | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "numberfmt.h"
#include <boost/test/unit_test.hpp>
#ifdef UNIT_TEST
BOOST_AUTO_TEST_SUITE( CNumberFmtTestCase )
BOOST_AUTO_TEST_CASE( GetFormattedNumberInt )
{
CNumberFmt fm ;
int i = 1000 ;
CString n = fm.Format( i ) ;
BOOST_CHECK_EQUAL( n, _T("1,000" ) ) ;
}
B... | 18.12987 | 48 | 0.651862 | ultimatezen |
fba3edb2e9f0fe48298033d075a4778a8cd50850 | 5,779 | cpp | C++ | RogueEngine/Source/PatrolAI.cpp | silferysky/RogueArcher | 3c77696260f773a0b7adb88b991e09bb35069901 | [
"FSFAP"
] | 1 | 2019-06-18T20:07:47.000Z | 2019-06-18T20:07:47.000Z | RogueEngine/Source/PatrolAI.cpp | silferysky/RogueArcher | 3c77696260f773a0b7adb88b991e09bb35069901 | [
"FSFAP"
] | null | null | null | RogueEngine/Source/PatrolAI.cpp | silferysky/RogueArcher | 3c77696260f773a0b7adb88b991e09bb35069901 | [
"FSFAP"
] | null | null | null | /* Start Header ************************************************************************/
/*!
\file PatrolAI.cpp
\project Exale
\author Chan Wai Kit Terence, c.terence, 440005918 (100%)
\par c.terence\@digipen.edu
\date 1 December,2019
\brief This file contains the... | 30.256545 | 141 | 0.702025 | silferysky |
fba60b470c16f69d924243310f711e871656007b | 1,339 | cpp | C++ | src/connection.cpp | Zack-83/xml2 | e7e87ecb1f3d7ef0f5ce50148644a860ea8125c3 | [
"MIT"
] | 114 | 2017-06-14T07:07:32.000Z | 2022-03-02T00:38:08.000Z | src/connection.cpp | Zack-83/xml2 | e7e87ecb1f3d7ef0f5ce50148644a860ea8125c3 | [
"MIT"
] | 180 | 2017-07-19T21:42:10.000Z | 2022-03-09T09:38:03.000Z | src/connection.cpp | Zack-83/xml2 | e7e87ecb1f3d7ef0f5ce50148644a860ea8125c3 | [
"MIT"
] | 55 | 2017-07-28T21:42:38.000Z | 2022-03-15T03:46:24.000Z | #include <Rinternals.h>
#include <vector>
#include "xml2_utils.h"
// Wrapper around R's read_bin function
SEXP read_bin(SEXP con, size_t bytes) {
SEXP e;
SEXP raw_sxp = PROTECT(Rf_mkString("raw"));
SEXP bytes_sxp = PROTECT(Rf_ScalarInteger(bytes));
PROTECT(e = Rf_lang4(Rf_install("readBin"), con, raw_sxp, byte... | 24.796296 | 79 | 0.695295 | Zack-83 |
fba817833993a01adc54e4a2038c847ef70b5071 | 1,414 | cc | C++ | solutions/cses/sorting-and-searching/1640.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 4 | 2020-11-07T14:38:02.000Z | 2022-01-03T19:02:36.000Z | solutions/cses/sorting-and-searching/1640.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 1 | 2019-04-17T06:55:14.000Z | 2019-04-17T06:55:14.000Z | solutions/cses/sorting-and-searching/1640.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#incl... | 20.794118 | 80 | 0.539604 | zwliew |
fbaadf6857a1186e56daecc49b64ae33d67630e2 | 2,292 | hh | C++ | libgringo/gringo/bug.hh | potassco/gringo | c489fd3c7d629964e33aa5d39abd55934c8c97eb | [
"MIT"
] | 423 | 2016-05-25T18:53:56.000Z | 2022-03-29T17:27:39.000Z | libgringo/gringo/bug.hh | potassco/gringo | c489fd3c7d629964e33aa5d39abd55934c8c97eb | [
"MIT"
] | 306 | 2016-05-25T17:07:45.000Z | 2022-03-31T07:50:01.000Z | libgringo/gringo/bug.hh | potassco/gringo | c489fd3c7d629964e33aa5d39abd55934c8c97eb | [
"MIT"
] | 93 | 2016-05-18T12:06:12.000Z | 2022-03-21T17:17:36.000Z | // {{{ MIT License
// Copyright 2017 Roland Kaminski
// 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,... | 26.651163 | 85 | 0.736038 | potassco |
fbace5aef821cfaa0ed9b883f8217c9659afc97e | 63,162 | cpp | C++ | RocketPlugin/RocketLobbyWidgets.cpp | Adminotech/meshmoon-plugins | 32043ef783bdf137860d7d01eb22de564628e572 | [
"Apache-2.0"
] | 4 | 2018-05-09T01:55:14.000Z | 2021-12-19T17:46:29.000Z | RocketPlugin/RocketLobbyWidgets.cpp | Adminotech/meshmoon-plugins | 32043ef783bdf137860d7d01eb22de564628e572 | [
"Apache-2.0"
] | null | null | null | RocketPlugin/RocketLobbyWidgets.cpp | Adminotech/meshmoon-plugins | 32043ef783bdf137860d7d01eb22de564628e572 | [
"Apache-2.0"
] | 2 | 2016-03-15T06:12:05.000Z | 2021-06-06T00:18:38.000Z | /**
@author Adminotech Ltd.
Copyright Adminotech Ltd.
All rights reserved.
@file
@brief */
#include "StableHeaders.h"
#include "RocketLobbyWidgets.h"
#include "RocketLobbyWidget.h"
#include "RocketPlugin.h"
#include "utils/RocketAnimations.h"
#include "Math/MathFunc.h"
#include "Framework.... | 32.424025 | 181 | 0.629682 | Adminotech |
fbb3914ba9946d115068326a3cc9138f23ef2b72 | 14,871 | cpp | C++ | src/lib/OpenEXR/ImfMultiPartOutputFile.cpp | remia/openexr | 566087f13259f4429d55125d1001b2696ac2bfc3 | [
"BSD-3-Clause"
] | 587 | 2015-01-04T09:56:19.000Z | 2019-11-21T13:23:33.000Z | third_party/openexr-672c77d7c923402f549371e08b39ece4552cbb85/src/lib/OpenEXR/ImfMultiPartOutputFile.cpp | Vertexwahn/FlatlandRT | 37d09fde38b25eff5f802200b43628efbd1e3198 | [
"Apache-2.0"
] | 360 | 2015-01-04T10:55:17.000Z | 2019-11-21T16:37:22.000Z | third_party/openexr-672c77d7c923402f549371e08b39ece4552cbb85/src/lib/OpenEXR/ImfMultiPartOutputFile.cpp | Vertexwahn/FlatlandRT | 37d09fde38b25eff5f802200b43628efbd1e3198 | [
"Apache-2.0"
] | 297 | 2015-01-11T12:06:42.000Z | 2019-11-19T21:59:57.000Z | //
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) Contributors to the OpenEXR Project.
//
#include "ImfMultiPartOutputFile.h"
#include "ImfBoxAttribute.h"
#include "ImfChromaticitiesAttribute.h"
#include "ImfDeepScanLineOutputFile.h"
#include "ImfDeepTiledOutputFile.h"
#include "ImfFloatAttribute.h"
#includ... | 28.653179 | 92 | 0.589671 | remia |
fbb5b2175e5aa94cf133c39edd86958527354dfc | 3,223 | cpp | C++ | src/xray/render/base/sources/render_base_world.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/render/base/sources/render_base_world.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/render/base/sources/render_base_world.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | ////////////////////////////////////////////////////////////////////////////
// Created : 28.10.2008
// Author : Dmitriy Iassenev
// Copyright (C) GSC Game World - 2009
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include <xray/render/base/world.h>
#include <... | 27.547009 | 161 | 0.635433 | ixray-team |
fbb6862c82ee82b3e015372ae63ce99dbd3b2506 | 28,325 | cc | C++ | apps/music/ActivityMusicPlayer.cc | zhiqiang-hu/cell-phone-ux-demo | 80df27f47bdf3318b60fe327890f868c3fe28969 | [
"Apache-2.0"
] | 13 | 2017-12-17T16:18:44.000Z | 2022-01-07T15:40:36.000Z | apps/music/ActivityMusicPlayer.cc | zhiqiang-hu/cell-phone-ux-demo | 80df27f47bdf3318b60fe327890f868c3fe28969 | [
"Apache-2.0"
] | null | null | null | apps/music/ActivityMusicPlayer.cc | zhiqiang-hu/cell-phone-ux-demo | 80df27f47bdf3318b60fe327890f868c3fe28969 | [
"Apache-2.0"
] | 8 | 2018-07-07T03:08:33.000Z | 2022-01-27T09:25:08.000Z | ///////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT NOTICE
//
// The following open source license statement does not apply to any
// entity in the Exception List published by FMSoft.
//
// For more information, please visit:
//
// https://www.fmsoft.... | 28.128103 | 116 | 0.653557 | zhiqiang-hu |
fbb9cb8da650bfd5cc2b2284d7a6474bac2ce667 | 3,908 | cpp | C++ | src/calendareventoccurrence.cpp | sailfishos/nemo-qml-plugin-calendar | cbe54ef60782df5377c6535531b6edfbd7358071 | [
"BSD-3-Clause"
] | null | null | null | src/calendareventoccurrence.cpp | sailfishos/nemo-qml-plugin-calendar | cbe54ef60782df5377c6535531b6edfbd7358071 | [
"BSD-3-Clause"
] | 22 | 2021-06-22T07:54:44.000Z | 2022-03-18T15:52:47.000Z | src/calendareventoccurrence.cpp | sailfishos/nemo-qml-plugin-calendar | cbe54ef60782df5377c6535531b6edfbd7358071 | [
"BSD-3-Clause"
] | 6 | 2021-06-15T13:01:40.000Z | 2021-11-03T12:12:54.000Z | /*
* Copyright (C) 2013 - 2019 Jolla Ltd.
* Copyright (C) 2020 Open Mobile Platform LLC.
*
* You may use this file under the terms of the BSD license as follows:
*
* "Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met... | 37.219048 | 113 | 0.692426 | sailfishos |
fbb9ea5385d668a718d29aac18d4403dfcb5cb43 | 5,043 | cc | C++ | chrome/browser/engagement/history_aware_site_engagement_service.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/engagement/history_aware_site_engagement_service.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/engagement/history_aware_site_engagement_service.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/engagement/history_aware_site_engagement_service.h"
#include "base/time/clock.h"
#include "base/time/time.h"
#include "chrome/br... | 41.677686 | 80 | 0.743407 | zealoussnow |
fbbbf35b837bfb822b1cd481242a9f156c485530 | 598 | cpp | C++ | Homeworks/2_ImageWarping/project/src/App/Warp.cpp | Adven-00/USTC_CG_2020 | 7f44197c42305309f2a74418367ace149de04ed8 | [
"MIT"
] | null | null | null | Homeworks/2_ImageWarping/project/src/App/Warp.cpp | Adven-00/USTC_CG_2020 | 7f44197c42305309f2a74418367ace149de04ed8 | [
"MIT"
] | null | null | null | Homeworks/2_ImageWarping/project/src/App/Warp.cpp | Adven-00/USTC_CG_2020 | 7f44197c42305309f2a74418367ace149de04ed8 | [
"MIT"
] | null | null | null | #include "Warp.h"
void Warp::Render(QImage* ptr_image)
{
QImage image_tmp(*(ptr_image));
int width = ptr_image->width();
int height = ptr_image->height();
ptr_image->fill(Qt::lightGray);
for (int i = 0; i < width; i++)
{
for (int j = 0; j < height; j++)
{
QPoint p(i, j);
QPoint po = Output(p);
i... | 18.6875 | 71 | 0.598662 | Adven-00 |
fbbdc5be30f812e4188e6b33e9232e7ca3fd854b | 4,026 | hpp | C++ | src/ltb/cuda/optix/optix.hpp | LoganBarnes/ltb-gvs | b1178e31c35aece434c7d47af955275fca9bb2a5 | [
"MIT"
] | 1 | 2020-04-04T16:57:25.000Z | 2020-04-04T16:57:25.000Z | src/ltb/cuda/optix/optix.hpp | LoganBarnes/ltb-gvs | b1178e31c35aece434c7d47af955275fca9bb2a5 | [
"MIT"
] | null | null | null | src/ltb/cuda/optix/optix.hpp | LoganBarnes/ltb-gvs | b1178e31c35aece434c7d47af955275fca9bb2a5 | [
"MIT"
] | null | null | null | // ///////////////////////////////////////////////////////////////////////////////////////
// LTB Geometry Visualization Server
// Copyright (c) 2020 Logan Barnes - All Rights Reserved
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation fil... | 43.290323 | 118 | 0.615748 | LoganBarnes |
fbc48fb9fe7322616778707920f911da1282d0d3 | 5,393 | cpp | C++ | test-alerts.cpp | clean-code-craft-tcq-2/coverage-in-c-MohaseenaAkbar | f92d69427c5e4a4ebc9d86144086c110b03118c0 | [
"MIT"
] | null | null | null | test-alerts.cpp | clean-code-craft-tcq-2/coverage-in-c-MohaseenaAkbar | f92d69427c5e4a4ebc9d86144086c110b03118c0 | [
"MIT"
] | null | null | null | test-alerts.cpp | clean-code-craft-tcq-2/coverage-in-c-MohaseenaAkbar | f92d69427c5e4a4ebc9d86144086c110b03118c0 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "test/catch.hpp"
#include "typewise-alert.h"
/*Test case for inferBreach*/
TEST_CASE("infers the breach according to limits") {
REQUIRE(inferBreach(12, 20, 30) == TOO_LOW);
REQUIRE(inferBreach(40, 20, 30) =... | 39.364964 | 98 | 0.79084 | clean-code-craft-tcq-2 |
fbc5e23262cc809ca33de49454463093564b0643 | 887 | cpp | C++ | leetcode/751. IP to CIDR/s1.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/751. IP to CIDR/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/751. IP to CIDR/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | // OJ: https://leetcode.com/problems/ip-to-cidr/
// Author: github.com/lzl124631x
// Time: O()
// Space: O()
class Solution {
private:
unsigned ipToUnsigned(string &ip) {
unsigned ans = 0, val = 0;
for (int i = 0; i < ip.size(); ++i) {
if (ip[i] == '.') {
ans = (ans + val... | 27.71875 | 60 | 0.441939 | zhuohuwu0603 |
fbc816a10dbee724410c8039cc89dea44455696d | 3,887 | cpp | C++ | main.cpp | clayne/K2NN | 49ad31c8d2cdfe2fa6e54673905ebe604e12a8ae | [
"MIT"
] | 9 | 2016-10-04T14:14:02.000Z | 2022-02-08T11:04:12.000Z | main.cpp | clayne/K2NN | 49ad31c8d2cdfe2fa6e54673905ebe604e12a8ae | [
"MIT"
] | 10 | 2016-11-21T16:08:16.000Z | 2018-11-12T17:39:10.000Z | main.cpp | clayne/K2NN | 49ad31c8d2cdfe2fa6e54673905ebe604e12a8ae | [
"MIT"
] | 3 | 2016-10-04T14:14:05.000Z | 2020-08-01T00:23:55.000Z | /*******************************************************************
* main.cpp
* K2NN
*
* Author: Kareem Omar
* kareem.omar@uah.edu
* https://github.com/komrad36
*
* Last updated Dec 9, 2016
*******************************************************************/
//
// Fastest CPU implementation of both a b... | 35.66055 | 158 | 0.631592 | clayne |
fbca0e9d33a453b7293b9b6240572bbffb7d257b | 5,268 | cpp | C++ | menu.cpp | winderica/nNovel-Sharp | 9deeb920d2fb5a76417231ad5043e7652913ee04 | [
"MIT"
] | null | null | null | menu.cpp | winderica/nNovel-Sharp | 9deeb920d2fb5a76417231ad5043e7652913ee04 | [
"MIT"
] | null | null | null | menu.cpp | winderica/nNovel-Sharp | 9deeb920d2fb5a76417231ad5043e7652913ee04 | [
"MIT"
] | null | null | null | #include "menu.h"
#include "char.h"
Menu::Menu(Screen &screen, Font &font) : screen(screen), font(font) {}
void Menu::showOptions(
const std::vector<std::string> &options,
const std::vector<std::function<void(void)>> &actions,
uint32_t x1,
uint32_t y1
) {
uint32_t total = H * options.size(), curre... | 36.583333 | 98 | 0.509301 | winderica |
fbca1b8a435dd64592063b4f4f8f9625914a75d3 | 748 | cc | C++ | src/libcxx_support.cc | S-YOU/liumos | 5f2335ca293596d645110fe0ab3b09a9246c8366 | [
"MIT"
] | null | null | null | src/libcxx_support.cc | S-YOU/liumos | 5f2335ca293596d645110fe0ab3b09a9246c8366 | [
"MIT"
] | null | null | null | src/libcxx_support.cc | S-YOU/liumos | 5f2335ca293596d645110fe0ab3b09a9246c8366 | [
"MIT"
] | null | null | null | #include "generic.h"
void* operator new(unsigned long, std::align_val_t) {
Panic("void * operator new(unsigned long, std::align_val_t)");
}
void operator delete(void*, std::align_val_t) {
Panic("void operator delete(void*, std::align_val_t)");
}
extern "C" void __cxa_throw() {
Panic("libcxx_support");
}
exter... | 20.777778 | 64 | 0.73262 | S-YOU |
fbcb29fa179ee6d75ccf58657d732a8f18e30748 | 4,592 | cpp | C++ | StructuredProgramming/lab_s02e02/lab_s02e02_main.cpp | Michal-Fularz/ProgrammingCourse | bee3fb5be39902b08a917bb66a891329cf09f70f | [
"MIT"
] | 1 | 2020-05-16T14:10:08.000Z | 2020-05-16T14:10:08.000Z | StructuredProgramming/lab_s02e02/lab_s02e02_main.cpp | Michal-Fularz/ProgrammingCourse | bee3fb5be39902b08a917bb66a891329cf09f70f | [
"MIT"
] | null | null | null | StructuredProgramming/lab_s02e02/lab_s02e02_main.cpp | Michal-Fularz/ProgrammingCourse | bee3fb5be39902b08a917bb66a891329cf09f70f | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include "lab_s02e02_MF.h"
void ex_1()
{
std::cout << "Exercise 1" << std::endl;
std::string word = "racecar";
do
{
std::cout << "Enter a word to check if it is a palindrome or type exit to break th... | 28.880503 | 218 | 0.558798 | Michal-Fularz |
fbcdf5842c719c66ba56015813978b2c7befec29 | 1,747 | cpp | C++ | Cpp/164_maximum_gap/solution.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | 1 | 2015-12-19T23:05:35.000Z | 2015-12-19T23:05:35.000Z | Cpp/164_maximum_gap/solution.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | Cpp/164_maximum_gap/solution.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | class Solution
{
public:
// bucket sort
int maximumGap(vector<int>& nums)
{
// min and max element
int minE;
int maxE;
// bucket sort variables
int bucket_size;
int bucket_num;
int bucket_id;
int last_max;
// other variables needed
... | 30.649123 | 81 | 0.439611 | zszyellow |
fbd0b894df3f14bace43df96726034a570ea168c | 2,870 | cc | C++ | roman/index/game_indexer.cc | eatnumber1/roman | 0d4867ca5a75f0781da503c58f11ee4d58df22a3 | [
"MIT"
] | null | null | null | roman/index/game_indexer.cc | eatnumber1/roman | 0d4867ca5a75f0781da503c58f11ee4d58df22a3 | [
"MIT"
] | null | null | null | roman/index/game_indexer.cc | eatnumber1/roman | 0d4867ca5a75f0781da503c58f11ee4d58df22a3 | [
"MIT"
] | null | null | null | #include "roman/index/game_indexer.h"
namespace roman {
using ::rhutil::Status;
using ::rhutil::StatusOr;
using ::rhutil::OkStatus;
using ::rhutil::InvalidArgumentError;
using ::rhutil::InvalidArgumentErrorBuilder;
using ::rhutil::NotFoundErrorBuilder;
using ::dat2pb::RomDat;
namespace {
absl::flat_hash_map<
Hash... | 27.075472 | 79 | 0.610453 | eatnumber1 |
fbd12afad82e861d4a5b6533e6967db93471353e | 213 | hpp | C++ | oauth/include/oauth/oauth.hpp | zina1995/Twitter-API-C-Library | 87b29c63b89be6feb05adbe05ebed0213aa67f9b | [
"MIT"
] | null | null | null | oauth/include/oauth/oauth.hpp | zina1995/Twitter-API-C-Library | 87b29c63b89be6feb05adbe05ebed0213aa67f9b | [
"MIT"
] | null | null | null | oauth/include/oauth/oauth.hpp | zina1995/Twitter-API-C-Library | 87b29c63b89be6feb05adbe05ebed0213aa67f9b | [
"MIT"
] | null | null | null | #ifndef OAUTH_OAUTH_HPP
#define OAUTH_OAUTH_HPP
#include <oauth/authorize.hpp>
#include <oauth/bearer_token.hpp>
#include <oauth/credentials.hpp>
#include <oauth/read_credentials.hpp>
#endif // OAUTH_OAUTH_HPP
| 21.3 | 37 | 0.798122 | zina1995 |
fbd14e9e9cf0e459d9eb82d6a737d41614a3cc4b | 2,532 | cc | C++ | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/20_util/is_null_pointer/value.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/20_util/is_null_pointer/value.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/20_util/is_null_pointer/value.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | // { dg-do compile { target c++11 } }
// 2013-05-02 Paolo Carlini <pcarlini@suse.de>
//
// Copyright (C) 2013-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Publi... | 45.214286 | 79 | 0.729068 | best08618 |
fbd3c61d5797b7141d70a043ec66039fc62e4b5b | 2,877 | cpp | C++ | base/std/thread.cpp | fengzi01/yamq | f11a0e28b0100b4155c124bb96488046353ec059 | [
"MIT"
] | null | null | null | base/std/thread.cpp | fengzi01/yamq | f11a0e28b0100b4155c124bb96488046353ec059 | [
"MIT"
] | null | null | null | base/std/thread.cpp | fengzi01/yamq | f11a0e28b0100b4155c124bb96488046353ec059 | [
"MIT"
] | null | null | null | #include "base/std/thread.h"
#include <utility> // std::forword
#include <memory>
#include <stdlib.h>
#include <sys/syscall.h>
#include <stdio.h>
namespace std2 {
/* thread data 封装 */
struct Thread::ThreadData {
ThreadFunc _func;
pid_t *_tid;
ThreadData (const ThreadFunc& func,pid_t *tid)
:_func(f... | 22.833333 | 94 | 0.582204 | fengzi01 |
fbd5c8c2a5c54eff5b94ee5091fceb5f2eea1b31 | 762 | cpp | C++ | sample.cpp | as-xjc/LruCache | 060e6f391d42b20926fda7dda354ef66f8037f83 | [
"MIT"
] | null | null | null | sample.cpp | as-xjc/LruCache | 060e6f391d42b20926fda7dda354ef66f8037f83 | [
"MIT"
] | null | null | null | sample.cpp | as-xjc/LruCache | 060e6f391d42b20926fda7dda354ef66f8037f83 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstdlib>
#include "lru.hpp"
int main() {
Lru<int, int> lru(5);
for (int i = 1; i <= 10; ++i) {
lru.Push(i, i);
}
auto print = [](int& value) { printf("%d,", value); };
printf("origin: cap %lu, size %lu: ", lru.GetCapacity(), lru.GetSize());
lru.ForEach(print);
for (int i... | 23.090909 | 74 | 0.532808 | as-xjc |
fbd69488570ed328b41585c3eb31d537a7401658 | 383 | hpp | C++ | pythran/pythonic/include/__builtin__/pythran/len_set.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/__builtin__/pythran/len_set.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/__builtin__/pythran/len_set.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_BUILTIN_PYTHRAN_LEN_SET_HPP
#define PYTHONIC_INCLUDE_BUILTIN_PYTHRAN_LEN_SET_HPP
#include "pythonic/include/utils/proxy.hpp"
namespace pythonic
{
namespace __builtin__
{
namespace pythran
{
template <class Iterable>
long len_set(Iterable const &s);
PROXY_DECL... | 15.958333 | 58 | 0.736292 | artas360 |
fbd8610a86eaaf32b5ad480ea14dc89fc9d234dc | 7,261 | cpp | C++ | blast/src/objtools/readers/feature_mod_apply.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/src/objtools/readers/feature_mod_apply.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/src/objtools/readers/feature_mod_apply.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | /* $Id: feature_mod_apply.cpp 632526 2021-06-02 17:25:01Z ivanov $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government W... | 30.004132 | 147 | 0.610247 | mycolab |
fbdbf5bad0fec1cdb839700736e273fc05730cd8 | 10,979 | cpp | C++ | AquaEngine/Components/ModelManager.cpp | tiagovcosta/aquaengine | aea6de9f47ba0243b90c144dee4422efb2389cc7 | [
"MIT"
] | 55 | 2015-05-29T20:19:28.000Z | 2022-01-18T21:23:15.000Z | AquaEngine/Components/ModelManager.cpp | tiagovcosta/aquaengine | aea6de9f47ba0243b90c144dee4422efb2389cc7 | [
"MIT"
] | null | null | null | AquaEngine/Components/ModelManager.cpp | tiagovcosta/aquaengine | aea6de9f47ba0243b90c144dee4422efb2389cc7 | [
"MIT"
] | 6 | 2015-09-02T09:51:38.000Z | 2020-08-16T07:54:34.000Z | #include "ModelManager.h"
#include "..\Components\TransformManager.h"
#include "..\Renderer\Camera.h"
#include "..\Renderer\RendererUtilities.h"
#include "..\Renderer\Renderer.h"
#include "..\Core\Allocators\ScopeStack.h"
#include "..\Core\Allocators\SmallBlockAllocator.h"
//#include "..\Utilities\Allocators\LinearA... | 28.968338 | 135 | 0.729301 | tiagovcosta |
fbde4b42b850a97fcc3330f4fc27c795acf2aa93 | 2,881 | hpp | C++ | third_party/boost/simd/arch/x86/avx/simd/function/rec.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/x86/avx/simd/function/rec.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/arch/x86/avx/simd/function/rec.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/**
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)
**/
//====================================... | 34.297619 | 100 | 0.562652 | SylvainCorlay |
fbe2d03f32ff439f7b4b88004f4ea2f1aaa1335b | 2,085 | cpp | C++ | test/unit/test_level.cpp | dyle71/hcs-logger | aa3061d160b8bf84e2e4de05c5b29f09a8428bde | [
"MIT"
] | null | null | null | test/unit/test_level.cpp | dyle71/hcs-logger | aa3061d160b8bf84e2e4de05c5b29f09a8428bde | [
"MIT"
] | null | null | null | test/unit/test_level.cpp | dyle71/hcs-logger | aa3061d160b8bf84e2e4de05c5b29f09a8428bde | [
"MIT"
] | null | null | null | /*
* This file is part of the headcode.space logger.
*
* The 'LICENSE.txt' file in the project root holds the software license.
* Copyright (C) 2021 headcode.space e.U.
* Oliver Maurhart <info@headcode.space>, https://www.headcode.space
*/
#include <headcode/logger/logger.hpp>
#include <gtest/gtest.h>
TEST(Le... | 48.488372 | 119 | 0.705516 | dyle71 |
fbe2d2d712649b5a33f1ddc532c7febaa724b36a | 332 | cc | C++ | below2.1/bus.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below2.1/bus.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below2.1/bus.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int t;
double x;
cin>>t;
for (int i = 0; i < t; i++)
{
cin>>x;
double sum=0;
for (int j = 0; j < x; j++)
{
sum+= 0.5;
sum*= 2;
}
cout<<int(sum)<<'\n';
}
... | 15.090909 | 35 | 0.35241 | danzel-py |