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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2bd992541caecf6225a6cab026a440efc59c0648 | 2,330 | cc | C++ | v11/core/devices/sound/sound_manager.cc | InclusiveTechNU/v11 | d32357bf52f5d6cf4ad3002235d1144f1f347d96 | [
"Apache-2.0"
] | 4 | 2020-04-26T10:19:45.000Z | 2021-11-22T18:24:16.000Z | v11/core/devices/sound/sound_manager.cc | InclusiveTechNU/v11 | d32357bf52f5d6cf4ad3002235d1144f1f347d96 | [
"Apache-2.0"
] | 21 | 2020-01-08T12:23:00.000Z | 2020-11-24T05:47:25.000Z | v11/core/devices/sound/sound_manager.cc | InclusiveTechNU/v11 | d32357bf52f5d6cf4ad3002235d1144f1f347d96 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2020 Northwestern Inclusive Technology Lab
*
* 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 app... | 33.768116 | 78 | 0.636481 | InclusiveTechNU |
2bdc448603e85dc428ae3bd2d01e8b9a7ff1571c | 2,550 | hpp | C++ | include/libtorrent/extensions/ut_pex.hpp | stdjs/libtorrent | 50e118ac6f884e051a2bbca6a52be06cfdb5d9d9 | [
"BSL-1.0",
"BSD-3-Clause"
] | 4,242 | 2015-06-05T14:01:32.000Z | 2022-03-30T10:04:56.000Z | include/libtorrent/extensions/ut_pex.hpp | stdjs/libtorrent | 50e118ac6f884e051a2bbca6a52be06cfdb5d9d9 | [
"BSL-1.0",
"BSD-3-Clause"
] | 4,817 | 2015-06-12T17:19:13.000Z | 2022-03-31T20:41:38.000Z | include/libtorrent/extensions/ut_pex.hpp | stdjs/libtorrent | 50e118ac6f884e051a2bbca6a52be06cfdb5d9d9 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1,232 | 2015-06-14T20:53:11.000Z | 2022-03-30T04:40:10.000Z | /*
Copyright (c) 2006, MassaRoddel
Copyright (c) 2006, 2013, 2015-2017, 2019, Arvid Norberg
Copyright (c) 2015, Steven Siloti
Copyright (c) 2016, Alden Torres
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are ... | 39.230769 | 107 | 0.794902 | stdjs |
2be4f6454127908c9e3770aed3c5d110ad1351fd | 836 | cpp | C++ | src/function/aggregate/distributive/first.cpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | 1 | 2019-08-01T08:21:33.000Z | 2019-08-01T08:21:33.000Z | src/function/aggregate/distributive/first.cpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | null | null | null | src/function/aggregate/distributive/first.cpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | null | null | null | #include "function/aggregate/distributive_functions.hpp"
#include "common/exception.hpp"
#include "common/types/null_value.hpp"
#include "common/vector_operations/vector_operations.hpp"
using namespace std;
using namespace duckdb;
static void first_update(Vector inputs[], index_t input_count, Vector &result) {
asser... | 28.827586 | 127 | 0.782297 | mweisgut |
2be65eaadd795ad8d77f9f5dea29866e0be44a49 | 196 | cpp | C++ | otherusers/codeforces/784E.Twisted Circuit.cpp | solen0/algorithm-stone | 53a5f1bf71b2bfeab7cf3df6be7ce027121091e4 | [
"MIT"
] | null | null | null | otherusers/codeforces/784E.Twisted Circuit.cpp | solen0/algorithm-stone | 53a5f1bf71b2bfeab7cf3df6be7ce027121091e4 | [
"MIT"
] | null | null | null | otherusers/codeforces/784E.Twisted Circuit.cpp | solen0/algorithm-stone | 53a5f1bf71b2bfeab7cf3df6be7ce027121091e4 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int iIn1,iIn2,iIn3,iIn4;
int main()
{
cin>>iIn1>>iIn2>>iIn3>>iIn4;
cout<<(((iIn1^iIn2)&(iIn3|iIn4))^((iIn2&iIn3)|(iIn1^iIn4)));
return 0;
}
| 13.066667 | 61 | 0.617347 | solen0 |
2be6ab44543f4644180b56595f140ae0cfbe55af | 22,664 | cc | C++ | hastyhex.cc | fcharlie/hastyhex | 56aefea9e038dcbf5f3ce4f798b8bc511626068e | [
"Unlicense"
] | null | null | null | hastyhex.cc | fcharlie/hastyhex | 56aefea9e038dcbf5f3ce4f798b8bc511626068e | [
"Unlicense"
] | null | null | null | hastyhex.cc | fcharlie/hastyhex | 56aefea9e038dcbf5f3ce4f798b8bc511626068e | [
"Unlicense"
] | null | null | null | #include <algorithm>
#include <cctype>
#include <cerrno>
#include <cstdio>
#include <cstring>
#include <functional>
#include <string_view>
#include <system_error>
#include <vector>
namespace planck {
struct error_code {
std::string message;
int code{0};
explicit operator bool() const noexcept { return code != 0;... | 33.626113 | 110 | 0.572979 | fcharlie |
2be8b3b0789a6a0955a5af48530c71b8a3d219e4 | 7,908 | cc | C++ | src/sandbox/interpolation/atlas-parallel-structured-interpolation.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | null | null | null | src/sandbox/interpolation/atlas-parallel-structured-interpolation.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | null | null | null | src/sandbox/interpolation/atlas-parallel-structured-interpolation.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | null | null | null | /*
* (C) Copyright 2013 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergo... | 38.019231 | 119 | 0.639479 | twsearle |
2bedb82b9335e6e41765a79d1caeebc5329aaf70 | 7,742 | cpp | C++ | smallvm/scheduler.cpp | mobadarah/kalimat-lang | 9eb6c64dd5380efaf863b619a506ebf000be7fd9 | [
"Apache-2.0"
] | 6 | 2021-07-05T15:35:33.000Z | 2022-03-25T21:21:43.000Z | smallvm/scheduler.cpp | anasawad/kalimat | 830cbe9ddde13865bc1f77a2f74efd3dac3b58cc | [
"Apache-2.0"
] | null | null | null | smallvm/scheduler.cpp | anasawad/kalimat | 830cbe9ddde13865bc1f77a2f74efd3dac3b58cc | [
"Apache-2.0"
] | 1 | 2022-03-25T21:15:33.000Z | 2022-03-25T21:15:33.000Z | #include "scheduler.h"
#include "process.h"
#include "vm.h"
#include "runtime/runwindow.h"
#include <queue>
using namespace std;
#include <QApplication>
static unsigned int g_seed;
//Used to seed the generator.
inline void fast_srand( int seed )
{
g_seed = seed;
}
// George Marsaglia's xorshf random number gen... | 23.110448 | 148 | 0.610824 | mobadarah |
2bef16763b9c9479ff7e804aac9ce2061f2e5b6d | 22,884 | cpp | C++ | src/modules/osg/generated_code/FrameBufferObject.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 3 | 2017-04-20T09:11:47.000Z | 2021-04-29T19:24:03.000Z | src/modules/osg/generated_code/FrameBufferObject.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | null | null | null | src/modules/osg/generated_code/FrameBufferObject.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | null | null | null | // This file has been generated by Py++.
#include "boost/python.hpp"
#include "wrap_osg.h"
#include "wrap_referenced.h"
#include "FrameBufferObject.pypp.hpp"
namespace bp = boost::python;
struct FrameBufferObject_wrapper : osg::FrameBufferObject, bp::wrapper< osg::FrameBufferObject > {
FrameBufferObject_wrapper... | 44.958743 | 180 | 0.608329 | cmbruns |
2bf08f182f592dc74f89e07decba138e04417d97 | 2,382 | cpp | C++ | engine/Game/Map.cpp | ledocool/snail_engine | 0114a62dbecbbe58348fbe7083d9182bc1bd8c3c | [
"Apache-2.0"
] | null | null | null | engine/Game/Map.cpp | ledocool/snail_engine | 0114a62dbecbbe58348fbe7083d9182bc1bd8c3c | [
"Apache-2.0"
] | null | null | null | engine/Game/Map.cpp | ledocool/snail_engine | 0114a62dbecbbe58348fbe7083d9182bc1bd8c3c | [
"Apache-2.0"
] | 1 | 2018-08-11T14:31:27.000Z | 2018-08-11T14:31:27.000Z | /*
* Copyright 2018 LedoCool.
*
* 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... | 24.060606 | 118 | 0.663308 | ledocool |
2bf5709711157c4cf9f7c4d6d68be2ff56d8588c | 5,897 | hpp | C++ | src/lua/functions/creatures/combat/spell_functions.hpp | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | src/lua/functions/creatures/combat/spell_functions.hpp | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | src/lua/functions/creatures/combat/spell_functions.hpp | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | /**
* Canary - A free and open-source MMORPG server emulator
* Copyright (C) 2021 OpenTibiaBR <opentibiabr@outlook.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 o... | 50.401709 | 114 | 0.766322 | Waclaw-I |
2bf6a9e2368863d8ff2c13b73162c454b435d8d6 | 50 | hpp | C++ | src/boost_units_systems_si_solid_angle.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_units_systems_si_solid_angle.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_units_systems_si_solid_angle.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/units/systems/si/solid_angle.hpp>
| 25 | 49 | 0.8 | miathedev |
2bfab93026472b3bed29fecc271b55c210f841b5 | 64,166 | cpp | C++ | apps/resnet_50_blockwise/Resnet50BlockGenerator.cpp | AmeerHajAli/Halide | 57296c8f35997dfa2ab323885ed74d24750407c0 | [
"Apache-2.0"
] | null | null | null | apps/resnet_50_blockwise/Resnet50BlockGenerator.cpp | AmeerHajAli/Halide | 57296c8f35997dfa2ab323885ed74d24750407c0 | [
"Apache-2.0"
] | 1 | 2020-05-20T08:42:26.000Z | 2020-05-20T08:42:26.000Z | apps/resnet_50_blockwise/Resnet50BlockGenerator.cpp | AmeerHajAli/Halide | 57296c8f35997dfa2ab323885ed74d24750407c0 | [
"Apache-2.0"
] | 2 | 2020-03-18T06:51:59.000Z | 2020-12-23T21:25:49.000Z | #include <unordered_map>
#include <tuple>
#include "Halide.h"
namespace {
struct Tensor {
Halide::Func f;
std::vector<int> shape;
std::string name;
};
struct WeightShape {
int c; // output channels
int w;
int h;
int pad;
int stride;
};
// returns index of found value in array or -1 i... | 43.591033 | 154 | 0.615825 | AmeerHajAli |
2bfd4b8da9e9e2b27cc9668cba4f7f2ddb8b444c | 2,283 | cc | C++ | packages/manufactured/Manufactured_Radial_Cross_Sections.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 2 | 2020-04-13T20:06:41.000Z | 2021-02-12T17:55:54.000Z | packages/manufactured/Manufactured_Radial_Cross_Sections.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 1 | 2018-10-22T21:03:35.000Z | 2018-10-22T21:03:35.000Z | packages/manufactured/Manufactured_Radial_Cross_Sections.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 3 | 2019-04-03T02:15:37.000Z | 2022-01-04T05:50:23.000Z | #include "Manufactured_Radial_Cross_Sections.hh"
#include <cmath>
#include <limits>
#include "Angular_Discretization.hh"
#include "Check.hh"
#include "Energy_Discretization.hh"
using namespace std;
Manufactured_Radial_Cross_Sections::
Manufactured_Radial_Cross_Sections(shared_ptr<Angular_Discretization> angular,
... | 32.614286 | 105 | 0.620675 | brbass |
2bfdbe11358146206cf1b0152706c16f13c0ca6a | 117 | cpp | C++ | Lab 05/BST_oc_lg/BST_oc_lg/Person.cpp | LEmilio14/CIS22C-Homework | e87a4e680f7ed5c2d68a25827a26d46a98beff73 | [
"MIT"
] | 1 | 2020-03-30T00:29:38.000Z | 2020-03-30T00:29:38.000Z | Lab 05/BST_oc_lg/BST_oc_lg/Person.cpp | LEmilio14/CIS22C-Homework | e87a4e680f7ed5c2d68a25827a26d46a98beff73 | [
"MIT"
] | null | null | null | Lab 05/BST_oc_lg/BST_oc_lg/Person.cpp | LEmilio14/CIS22C-Homework | e87a4e680f7ed5c2d68a25827a26d46a98beff73 | [
"MIT"
] | null | null | null | #include "Person.h"
Person::Person(std::string n, std::string b) : name(n), birthday(b)
{
}
Person::~Person()
{
} | 10.636364 | 67 | 0.615385 | LEmilio14 |
2bffb31513f871c6c98ecc266eb87a95db977f8c | 20,388 | cxx | C++ | sourceCode/dotNet4.6/wpf/src/host/dll/bootstrapper.cxx | csoap/csoap.github.io | 2a8db44eb63425deff147652b65c5912f065334e | [
"Apache-2.0"
] | 5 | 2017-03-03T02:13:16.000Z | 2021-08-18T09:59:56.000Z | sourceCode/dotNet4.6/wpf/src/host/dll/bootstrapper.cxx | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | null | null | null | sourceCode/dotNet4.6/wpf/src/host/dll/bootstrapper.cxx | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | 4 | 2016-11-15T05:20:12.000Z | 2021-11-13T16:32:11.000Z | //+-----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Description:
// Implements the BootStrapper class of PresentationHost.
//
// History
// 2002/06/25-murrayw
// Created
// 2003/06/30-[....]
// ... | 40.776 | 169 | 0.594271 | csoap |
92064fa500c10b2edd2d3daf45e0224bb9237be5 | 358 | cpp | C++ | tests/SquareTest.cpp | Penguinum/Homulib | 20940a525af9e0a2a69cf72a2549289d0df06746 | [
"MIT"
] | null | null | null | tests/SquareTest.cpp | Penguinum/Homulib | 20940a525af9e0a2a69cf72a2549289d0df06746 | [
"MIT"
] | null | null | null | tests/SquareTest.cpp | Penguinum/Homulib | 20940a525af9e0a2a69cf72a2549289d0df06746 | [
"MIT"
] | null | null | null | #include <iostream>
#include <Square.h>
using namespace std;
int main() {
homu::SampleRate = 10000;
homu::Square gen;
gen.start(100);
for (int i = 0; i < 10000; ++i) {
double s = gen.tick();
if (s > 1 || s < -1) {
cerr << "Warning: s = " << s << endl;
}
cout... | 17.9 | 49 | 0.458101 | Penguinum |
9206c9b0f2629a3ca727eb17f5245732f5303eff | 2,181 | cpp | C++ | shared_from_this.cpp | latelee/cpp_learning | 9c1c99f8e62b69fb51dcd80a8d01540a60d457ea | [
"MIT"
] | 1 | 2021-06-04T00:21:19.000Z | 2021-06-04T00:21:19.000Z | shared_from_this.cpp | latelee/cpp_learning | 9c1c99f8e62b69fb51dcd80a8d01540a60d457ea | [
"MIT"
] | null | null | null | shared_from_this.cpp | latelee/cpp_learning | 9c1c99f8e62b69fb51dcd80a8d01540a60d457ea | [
"MIT"
] | 2 | 2021-02-24T07:19:40.000Z | 2021-06-04T00:21:20.000Z | /**
shared_ptr和enable_shared_from_this的使用
g++ -Wall -std=c++11 shared_from_this.cpp
结论:
不要在构造函数中使用 shared_from_this,可以写一个init手动初始化
不要一些地方使用 shared_ptr,另一些地方没使用,一定要统一使用
使用std::dynamic_pointer_cast<T>()需要基类中存在虚函数
*/
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <memory>
class CTest... | 22.484536 | 93 | 0.598349 | latelee |
92093e5e307abebf8372aa8fbefb96b291a93b14 | 9,437 | cpp | C++ | src/mongo/db/geo/geonear.cpp | edaniels/mongo | 60f9f92f966d7bfabe722d96bc6e196292a4d051 | [
"Apache-2.0"
] | 1 | 2017-02-13T10:29:02.000Z | 2017-02-13T10:29:02.000Z | src/mongo/db/geo/geonear.cpp | andremussche/minimongo | 820d678f3561abb5660e27ff3204bd0e69dfe66c | [
"Apache-2.0"
] | null | null | null | src/mongo/db/geo/geonear.cpp | andremussche/minimongo | 820d678f3561abb5660e27ff3204bd0e69dfe66c | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2012 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* ... | 39.485356 | 117 | 0.556109 | edaniels |
920e81b185a4c2d98cb89052e25d64c4a04a8a71 | 452 | cpp | C++ | tools/device_query.cpp | RyanLiuNtust/caffe | b2b709b1491f745e18cfe2fdb843fefa4be57e51 | [
"BSD-2-Clause"
] | 1 | 2019-06-27T11:33:25.000Z | 2019-06-27T11:33:25.000Z | tools/device_query.cpp | silky/caffe | 86a3263fe5035a0caa341f88663d61c60efcddad | [
"BSD-2-Clause"
] | null | null | null | tools/device_query.cpp | silky/caffe | 86a3263fe5035a0caa341f88663d61c60efcddad | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2014 Sergio Guadarrama
#include "caffe/common.hpp"
#include "caffe/net.hpp"
using namespace caffe; // NOLINT(build/namespaces)
int main(int argc, char** argv) {
if (argc > 2) {
LOG(ERROR) << "device_query [device_id=0]";
return 0;
}
if (argc == 2) {
LOG(INFO) << "Querying device_id=... | 18.833333 | 51 | 0.610619 | RyanLiuNtust |
920f5455e11698d915e87c724602eecd97fff3fc | 16,839 | cpp | C++ | lib/core/src/RecognitionTestModel.cpp | BoysTownorg/av-speech-in-noise | 71178c1f920e300f05c9da2d582d64035c591284 | [
"MIT"
] | null | null | null | lib/core/src/RecognitionTestModel.cpp | BoysTownorg/av-speech-in-noise | 71178c1f920e300f05c9da2d582d64035c591284 | [
"MIT"
] | null | null | null | lib/core/src/RecognitionTestModel.cpp | BoysTownorg/av-speech-in-noise | 71178c1f920e300f05c9da2d582d64035c591284 | [
"MIT"
] | null | null | null | #include "RecognitionTestModel.hpp"
#include "IOutputFile.hpp"
#include "av-speech-in-noise/Model.hpp"
#include <gsl/gsl>
#include <cmath>
#include <functional>
namespace av_speech_in_noise {
namespace {
class NullTestMethod : public TestMethod {
auto complete() -> bool override { return {}; }
auto nextTarget(... | 34.295316 | 80 | 0.730982 | BoysTownorg |
920fb35bb58afae80970dc755a9e629e62c612b6 | 4,935 | cpp | C++ | src/lib_ext.cpp | Outerra/LuaJIT | f8dba968f1afc739b999122df07f10aa2c79f42f | [
"MIT"
] | null | null | null | src/lib_ext.cpp | Outerra/LuaJIT | f8dba968f1afc739b999122df07f10aa2c79f42f | [
"MIT"
] | null | null | null | src/lib_ext.cpp | Outerra/LuaJIT | f8dba968f1afc739b999122df07f10aa2c79f42f | [
"MIT"
] | null | null | null | #include <comm/str.h>
extern "C"{
#define LUA_CORE
#include "lj_state.h"
#include "lj_gc.h"
#include "lj_obj.h"
#include "lj_str.h"
#include "lj_lex.h"
#include "lj_vm.h"
#include "lj_frame.h"
#include "lj_coidtoken.h"
#define api_checknelems(L, n) api_check(L, (n) <= (L->top - L->base))
#define api_checkvalid... | 24.675 | 85 | 0.612158 | Outerra |
9210451a0000a06fd237cf75a01988b076c8934b | 1,394 | cpp | C++ | libs/log/impl/src/log/impl/tree_formatter.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/log/impl/src/log/impl/tree_formatter.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/log/impl/src/log/impl/tree_formatter.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// 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)
#include <fcppt/algorithm/fold.hpp>
#include <fcppt/container/tree/make_to_root.hpp>
#include <fcpp... | 41 | 90 | 0.650646 | freundlich |
921e4d47e02a1c318b3d42a27d941b55757f7136 | 178 | hpp | C++ | src/systems/humanoid/humanoid_state_system.hpp | albin-johansson/wanderer | 74c1e788e37d6555def23fb6f49d2342baf2a6fe | [
"MIT"
] | 11 | 2021-05-09T09:19:35.000Z | 2022-03-22T10:11:16.000Z | src/systems/humanoid/humanoid_state_system.hpp | albin-johansson/wanderer | 74c1e788e37d6555def23fb6f49d2342baf2a6fe | [
"MIT"
] | 5 | 2021-02-23T11:43:10.000Z | 2021-02-23T11:43:52.000Z | src/systems/humanoid/humanoid_state_system.hpp | albin-johansson/wanderer | 74c1e788e37d6555def23fb6f49d2342baf2a6fe | [
"MIT"
] | null | null | null | #pragma once
#include <entt.hpp>
namespace wanderer::sys {
void update_humanoid_states(entt::registry& registry, entt::dispatcher& dispatcher);
} // namespace wanderer::sys
| 17.8 | 84 | 0.752809 | albin-johansson |
92256846cf4ce5ae638b11a473f296ee6c506dca | 511 | cpp | C++ | cxx/src/AAD/dag_tape.cpp | ren15/lazy_eval | d67f455955af91a5b279a391ee10e33aeed8076c | [
"MIT"
] | null | null | null | cxx/src/AAD/dag_tape.cpp | ren15/lazy_eval | d67f455955af91a5b279a391ee10e33aeed8076c | [
"MIT"
] | null | null | null | cxx/src/AAD/dag_tape.cpp | ren15/lazy_eval | d67f455955af91a5b279a391ee10e33aeed8076c | [
"MIT"
] | null | null | null | /*
Toy code contained in chapter 9, sections 5 (pages 349 to 355).
*/
#include "dag_tape.hpp"
using namespace DAG_tape;
int main()
{
Number x[5] = { 1.0, 2.0, 3.0, 4.0, 5.0 };
// Evaluate and build the tape
Number y = f(x);
// Propagate adjoints through the tape in reverse order
y.propag... | 20.44 | 71 | 0.547945 | ren15 |
9226031267397f726c28277406467861364dad21 | 946 | hpp | C++ | utils/sourcelocation.hpp | jnyfah/KalculatorApp | f7b3dfbedca903034371e291c157f1954dce3894 | [
"MIT"
] | 1 | 2022-03-22T14:11:24.000Z | 2022-03-22T14:11:24.000Z | utils/sourcelocation.hpp | jnyfah/Kalculator | f7b3dfbedca903034371e291c157f1954dce3894 | [
"MIT"
] | 2 | 2021-06-19T12:46:28.000Z | 2021-06-19T14:09:31.000Z | utils/sourcelocation.hpp | jnyfah/KalculatorApp | f7b3dfbedca903034371e291c157f1954dce3894 | [
"MIT"
] | null | null | null | #ifndef LOCATION_HPP
#define LOCATION_HPP
#include <string>
class SourceLocation{
public:
SourceLocation() = default;
SourceLocation(unsigned short _line, unsigned short _col): line(_line), col(_col)
{}
unsigned getLine(){
return line;
}
unsigned getcol(){
return col;
}
... | 22.52381 | 88 | 0.660677 | jnyfah |
922b7e5e9e8dcbefdf1d1606bb224454dfdfde21 | 1,807 | cpp | C++ | src/Options.cpp | komatura/Voltage-noise-generator | 31332f9ae4a0ce5a2a259ad136b75d67831da637 | [
"MIT"
] | null | null | null | src/Options.cpp | komatura/Voltage-noise-generator | 31332f9ae4a0ce5a2a259ad136b75d67831da637 | [
"MIT"
] | null | null | null | src/Options.cpp | komatura/Voltage-noise-generator | 31332f9ae4a0ce5a2a259ad136b75d67831da637 | [
"MIT"
] | 1 | 2018-07-27T22:38:43.000Z | 2018-07-27T22:38:43.000Z | #include "Options.h"
#include <exception>
#include <iostream>
std::string Options::_intputFile = "../Noise Spectras/noiseSpectra.csv";
std::string Options::_inputType = "csv";
std::string Options::_outputFile = "noise-fast-example.csv";;
std::string Options::_outputType = "csv";
int Options::_dbFilter = -80;
void Op... | 22.308642 | 77 | 0.624792 | komatura |
922c6df112f2ab7981b059775b7046fe79778b01 | 15,893 | cpp | C++ | ImageAdPopup/ImageAdPopup/ImageAdPopup.cpp | shc0743/CLearn | e6580588102bb66fb76903deb6699f19b38f4676 | [
"MIT"
] | null | null | null | ImageAdPopup/ImageAdPopup/ImageAdPopup.cpp | shc0743/CLearn | e6580588102bb66fb76903deb6699f19b38f4676 | [
"MIT"
] | null | null | null | ImageAdPopup/ImageAdPopup/ImageAdPopup.cpp | shc0743/CLearn | e6580588102bb66fb76903deb6699f19b38f4676 | [
"MIT"
] | null | null | null | // ImageAdPopup.cpp : 定义应用程序的入口点。
//
#include "framework.h"
#include "ImageAdPopup.h"
#include "resource.h"
#include "../../resource/tool.h"
#include<opencv2/opencv.hpp>
#include<opencv2/highgui/highgui_c.h>
#define MAX_LOADSTRING 100
// 全局变量:
HINSTANCE hInst; // 当前实例
WCHAR szTitle[MA... | 29.054845 | 96 | 0.639338 | shc0743 |
922cee2b7faab8432e5f68c482950d9e50483111 | 788 | hpp | C++ | src/StateFirst.hpp | matheuscscp/19-hertz | ad4b5fa85e0b6e0b67d0ae7fca04b11465cd7cc7 | [
"MIT"
] | null | null | null | src/StateFirst.hpp | matheuscscp/19-hertz | ad4b5fa85e0b6e0b67d0ae7fca04b11465cd7cc7 | [
"MIT"
] | null | null | null | src/StateFirst.hpp | matheuscscp/19-hertz | ad4b5fa85e0b6e0b67d0ae7fca04b11465cd7cc7 | [
"MIT"
] | null | null | null |
#ifndef STATEFIRST_HPP
#define STATEFIRST_HPP
#include <list>
#include "State.hpp"
#include "Player.hpp"
#include "Map.hpp"
#include "Ghost.hpp"
#include "Animation.hpp"
#include "Timer.hpp"
#include "Stopwatch.hpp"
#include "Audio.hpp"
class StateFirst : public State {
GAMESTATE
private:
Sprite* bg;
Sprite* spr_... | 17.511111 | 64 | 0.738579 | matheuscscp |
922ec2212ec4724b4f98a7c109d70dc0bd66e675 | 25,661 | cpp | C++ | src/Synth/Voice.cpp | frabert/dlsynth | 176d37010038b2f45622ed657a690dff4ad621ce | [
"MIT"
] | 3 | 2019-08-02T16:47:53.000Z | 2020-10-11T17:10:01.000Z | src/Synth/Voice.cpp | frabert/dlsynth | 176d37010038b2f45622ed657a690dff4ad621ce | [
"MIT"
] | null | null | null | src/Synth/Voice.cpp | frabert/dlsynth | 176d37010038b2f45622ed657a690dff4ad621ce | [
"MIT"
] | null | null | null | #include "Voice.hpp"
#include "../NumericUtils.hpp"
#include "EG.hpp"
#include "LFO.hpp"
#include "ModMatrix.hpp"
#include "SPSCQueue.hpp"
#include "VoiceMessage.hpp"
#include <unordered_set>
#if DLSYNTH_USE_SSE >= 3
#include <pmmintrin.h>
using FilterState = __m128;
#else
using FilterState = std::array<float, 4>;
#en... | 34.771003 | 104 | 0.61081 | frabert |
923212173262028338a4b2afdb62de79833698c2 | 15,583 | cpp | C++ | vpd_tool_impl.cpp | Alpana07/openpower-vpd-parser | a6181e2202d85ed10fffcc1c9a577606c7017cb9 | [
"Apache-2.0"
] | null | null | null | vpd_tool_impl.cpp | Alpana07/openpower-vpd-parser | a6181e2202d85ed10fffcc1c9a577606c7017cb9 | [
"Apache-2.0"
] | null | null | null | vpd_tool_impl.cpp | Alpana07/openpower-vpd-parser | a6181e2202d85ed10fffcc1c9a577606c7017cb9 | [
"Apache-2.0"
] | null | null | null | #include "vpd_tool_impl.hpp"
#include "vpd_exceptions.hpp"
#include <cstdlib>
#include <filesystem>
#include <iostream>
#include <sdbusplus/bus.hpp>
#include <variant>
#include <vector>
using namespace std;
using namespace openpower::vpd;
using namespace inventory;
using namespace openpower::vpd::manager::editor;
na... | 30.083012 | 80 | 0.511968 | Alpana07 |
92346338183fd55f8451f1f8a90777d5469c6f0f | 6,225 | hpp | C++ | src/include/concore/serializer.hpp | lucteo/concore | ffbc3b8cead7498ddad601dcf357fa72529f81ad | [
"MIT"
] | 52 | 2020-05-23T21:34:33.000Z | 2022-02-23T03:06:50.000Z | src/include/concore/serializer.hpp | lucteo/concore | ffbc3b8cead7498ddad601dcf357fa72529f81ad | [
"MIT"
] | null | null | null | src/include/concore/serializer.hpp | lucteo/concore | ffbc3b8cead7498ddad601dcf357fa72529f81ad | [
"MIT"
] | 2 | 2021-05-06T18:41:25.000Z | 2021-07-24T03:50:42.000Z | /**
* @file serializer.hpp
* @brief Defines the @ref concore::v1::serializer "serializer" class
*
* @see @ref concore::v1::serializer "serializer"
*/
#pragma once
#include "task.hpp"
#include "any_executor.hpp"
#include "except_fun_type.hpp"
#include <memory>
namespace concore {
inline namespace v1 {
... | 41.778523 | 100 | 0.699759 | lucteo |
923527fd4b98459c768027464fa496e36325ca7d | 786 | cpp | C++ | U/144185.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | 1 | 2020-09-13T02:51:25.000Z | 2020-09-13T02:51:25.000Z | U/144185.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | null | null | null | U/144185.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | 1 | 2021-06-05T03:37:57.000Z | 2021-06-05T03:37:57.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
using namespace std;
const int inf = 1e6 + 5;
int n, s, t, ans;
int a[inf], dp[inf];
int main ()
{
scanf ("%d%d%d", &n, &s, &t);
for (int i = 1; i <= n; i ++)
{
scanf ("%d", &a[i]);
}
for (int i = 1; i <= n; i ++)
... | 22.457143 | 61 | 0.39313 | langonginc |
9236f19c54569e75e013b53475687cb003f244a2 | 15,446 | cpp | C++ | Common/ac/gamesetupstruct.cpp | criezy/ags | 057ae5ce588adf1edd2c73d74ef49206674f32c2 | [
"Artistic-2.0"
] | null | null | null | Common/ac/gamesetupstruct.cpp | criezy/ags | 057ae5ce588adf1edd2c73d74ef49206674f32c2 | [
"Artistic-2.0"
] | null | null | null | Common/ac/gamesetupstruct.cpp | criezy/ags | 057ae5ce588adf1edd2c73d74ef49206674f32c2 | [
"Artistic-2.0"
] | null | null | null | //=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 Chris Jones and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS ... | 30.953908 | 127 | 0.615629 | criezy |
923b06104034f2396ce7519255b665bcd7980689 | 5,261 | cpp | C++ | recursion-and-dp/paint-fill.cpp | mayankamencherla/cracking-the-coding-interview-solutions | 3cccad728cd4d41154eed9e93dd0546923a23fda | [
"MIT"
] | 3 | 2018-12-04T09:41:01.000Z | 2020-10-05T17:30:49.000Z | recursion-and-dp/paint-fill.cpp | mayankamencherla/cracking-the-coding-interview-solutions | 3cccad728cd4d41154eed9e93dd0546923a23fda | [
"MIT"
] | null | null | null | recursion-and-dp/paint-fill.cpp | mayankamencherla/cracking-the-coding-interview-solutions | 3cccad728cd4d41154eed9e93dd0546923a23fda | [
"MIT"
] | 1 | 2018-12-04T09:41:05.000Z | 2018-12-04T09:41:05.000Z | /**
* Given a string, compute all permutations of the string
* The string has only unique characters
*/
#include <vector>
#include <iostream>
#include <string>
#include <unordered_set>
using namespace std;
enum Color {white, black, brown, yellow};
class Grid
{
private:
/**
* This 2D grid
... | 21.561475 | 99 | 0.380346 | mayankamencherla |
923d4bb8223db583988b83b65bbe0c54fea5ea24 | 4,159 | cpp | C++ | main/dad/MathTest.cpp | irumsey/ijrumsey.com | 3dcf909eada5a09d39e6bf89a1f0bf1fa7328789 | [
"MIT"
] | null | null | null | main/dad/MathTest.cpp | irumsey/ijrumsey.com | 3dcf909eada5a09d39e6bf89a1f0bf1fa7328789 | [
"MIT"
] | null | null | null | main/dad/MathTest.cpp | irumsey/ijrumsey.com | 3dcf909eada5a09d39e6bf89a1f0bf1fa7328789 | [
"MIT"
] | null | null | null | #include "MathTest.h"
#include "Utility.h"
#include <lucid/gal/Pipeline.h>
#include <lucid/gal/Types.h>
#include <lucid/math/Matrix.h>
#include <lucid/math/Vector.h>
#include <lucid/math/Scalar.h>
#include <lucid/math/Integer.h>
#include <lucid/math/Fixed.h>
#include <lucid/math/Constants.h>
#include <lucid/core/Profil... | 29.083916 | 146 | 0.650397 | irumsey |
92404a5e56b23b009e319153f00e68004d2c42df | 4,668 | cpp | C++ | src/ngraph/runtime/plaidml/plaidml_translate.cpp | tzerrell/ngraph | b02b0812745ca1cb5f73d426ae9e0ad729eb0bbd | [
"Apache-2.0"
] | 1 | 2021-10-04T21:55:19.000Z | 2021-10-04T21:55:19.000Z | src/ngraph/runtime/plaidml/plaidml_translate.cpp | tzerrell/ngraph | b02b0812745ca1cb5f73d426ae9e0ad729eb0bbd | [
"Apache-2.0"
] | null | null | null | src/ngraph/runtime/plaidml/plaidml_translate.cpp | tzerrell/ngraph | b02b0812745ca1cb5f73d426ae9e0ad729eb0bbd | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... | 35.097744 | 96 | 0.570908 | tzerrell |
9241dd2aedb3f3d21defdeb08ec819e3b44e518a | 4,383 | cpp | C++ | src/src/cache.cpp | jcleng/nix-kangle-3.5.13.2 | cc7bbaa429ada9a7eb7a023a152b6e2fc5defe3f | [
"MIT"
] | null | null | null | src/src/cache.cpp | jcleng/nix-kangle-3.5.13.2 | cc7bbaa429ada9a7eb7a023a152b6e2fc5defe3f | [
"MIT"
] | null | null | null | src/src/cache.cpp | jcleng/nix-kangle-3.5.13.2 | cc7bbaa429ada9a7eb7a023a152b6e2fc5defe3f | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2010, NanChang BangTeng Inc
*
* kangle web server http://www.kangleweb.net/
* ---------------------------------------------------------------------
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as ... | 26.403614 | 169 | 0.668492 | jcleng |
9245d1061c7ed8b7acf36b7b68dea56a86e656f3 | 1,460 | cpp | C++ | Engine/src/gfx_MatrixStack.cpp | realn/exptor3D | 85bafa0a4c59eb15102756046805e4f9b23245c2 | [
"MIT"
] | null | null | null | Engine/src/gfx_MatrixStack.cpp | realn/exptor3D | 85bafa0a4c59eb15102756046805e4f9b23245c2 | [
"MIT"
] | null | null | null | Engine/src/gfx_MatrixStack.cpp | realn/exptor3D | 85bafa0a4c59eb15102756046805e4f9b23245c2 | [
"MIT"
] | null | null | null | #include <glm/gtc/matrix_transform.hpp>
#include "gfx_MatrixStack.h"
namespace gfx {
MatrixStack::MatrixStack() = default;
MatrixStack::~MatrixStack() = default;
void MatrixStack::setProjectionMatrix(glm::mat4 matrix) {
matrixProjection = matrix;
}
void MatrixStack::setCurrentModelViewMatrix(glm::mat... | 23.174603 | 77 | 0.697945 | realn |
92525b9e762f9ed07337525ca6fde63dbc1f4a17 | 256 | cpp | C++ | Algorithm/0650 (Medium)02 Keys Keyboard/Prime-factorization.cpp | ZexinLi0w0/LeetCode | cf3988620ccdcc3d54b9beafd04c517c96f01bb9 | [
"MIT"
] | 1 | 2020-12-03T10:10:15.000Z | 2020-12-03T10:10:15.000Z | Algorithm/0650 (Medium)02 Keys Keyboard/Prime-factorization.cpp | ZexinLi0w0/LeetCode | cf3988620ccdcc3d54b9beafd04c517c96f01bb9 | [
"MIT"
] | null | null | null | Algorithm/0650 (Medium)02 Keys Keyboard/Prime-factorization.cpp | ZexinLi0w0/LeetCode | cf3988620ccdcc3d54b9beafd04c517c96f01bb9 | [
"MIT"
] | null | null | null | class Solution {
public:
int minSteps(int n) {
int ans = 0, d = 2;
while (n > 1) {
while (n % d == 0) {
ans += d;
n /= d;
}
d++;
}
return ans;
}
};
| 17.066667 | 32 | 0.289063 | ZexinLi0w0 |
925540bf15b70652fad497ff4fd22a7bb47a4199 | 941 | hpp | C++ | include/pfs/multimedia/audio.hpp | semenovf/pfs-multimedia | 78e2ea9dfe89d2f84d583f768ca35f183773d859 | [
"MIT"
] | null | null | null | include/pfs/multimedia/audio.hpp | semenovf/pfs-multimedia | 78e2ea9dfe89d2f84d583f768ca35f183773d859 | [
"MIT"
] | null | null | null | include/pfs/multimedia/audio.hpp | semenovf/pfs-multimedia | 78e2ea9dfe89d2f84d583f768ca35f183773d859 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2021 Vladislav Trifochkin
//
// This file is part of [multimedia-lib](https://github.com/semenovf/multimedia-lib) library.
//
// Changelog:
// 2021.08.03 Initial version.
//////////////////////////////////////////////... | 26.885714 | 93 | 0.611052 | semenovf |
9256b722ce489d3a3107ac9adde929a0e5b69300 | 609 | cpp | C++ | cpp/problem007.cpp | curtislb/ProjectEuler | 7baf8d7b7ac0e8697d4dec03458b473095a45da4 | [
"MIT"
] | null | null | null | cpp/problem007.cpp | curtislb/ProjectEuler | 7baf8d7b7ac0e8697d4dec03458b473095a45da4 | [
"MIT"
] | null | null | null | cpp/problem007.cpp | curtislb/ProjectEuler | 7baf8d7b7ac0e8697d4dec03458b473095a45da4 | [
"MIT"
] | null | null | null | /*
* problem007.cpp
*
* Problem 7: 10001st prime
*
* By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see
* that the 6th prime is 13.
*
* What is the Nth prime number?
*
* Author: Curtis Belmonte
* Created: Aug 23, 2014
*/
#include <iostream>
#include "common.h"
using namespace st... | 19.645161 | 79 | 0.492611 | curtislb |
925745bad2cd93ee61020d73292840fa5b693758 | 9,994 | cpp | C++ | perf/perf_logging.cpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | perf/perf_logging.cpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | perf/perf_logging.cpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | #ifdef BE_TEST_PERF
#include <catch/catch.hpp>
#include "ensure_init.hpp"
#include "blackhole_log.hpp"
#include "time.hpp"
#define BE_CATCH_TAGS "[core][core:logging]"
using namespace be;
TEST_CASE("Complex Log::handle performance", BE_CATCH_TAGS) {
ensure_init();
Log& log = blackhole_log();
F64 avg = 0;
... | 34.944056 | 117 | 0.512207 | magicmoremagic |
925d17bf3c2b4fd4c04898aad736283ee5f26fe5 | 1,060 | cc | C++ | src/memory/RomZemina80in1.cc | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 320 | 2015-06-16T20:32:33.000Z | 2022-03-26T17:03:27.000Z | src/memory/RomZemina80in1.cc | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2,592 | 2015-05-30T12:12:21.000Z | 2022-03-31T17:16:15.000Z | src/memory/RomZemina80in1.cc | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 74 | 2015-06-18T19:51:15.000Z | 2022-03-24T15:09:33.000Z | // Zemina 80-in-1 cartridge
//
// Information obtained by studying MESS sources:
// 0x4000 : 0x4000-0x5FFF
// 0x4001 : 0x6000-0x7FFF
// 0x4002 : 0x8000-0x9FFF
// 0x4003 : 0xA000-0xBFFF
#include "RomZemina80in1.hh"
#include "CacheLine.hh"
#include "serialize.hh"
#include "xrange.hh"
namespace openmsx {
RomZem... | 20.384615 | 80 | 0.688679 | D15C0DE |
1785e1872a3f42bec95d47bf87250acf2275263c | 37,708 | cpp | C++ | handlers/audiohandler.cpp | Feqzz/qZoom-Client | ac68be4a10a1db66dcf276ee881d5fa093e5f718 | [
"MIT"
] | 3 | 2020-08-24T09:03:35.000Z | 2020-11-18T17:28:24.000Z | handlers/audiohandler.cpp | Stykk-Gruppen/qZoom-Client | ac68be4a10a1db66dcf276ee881d5fa093e5f718 | [
"MIT"
] | 1 | 2020-08-24T13:59:24.000Z | 2020-08-24T13:59:24.000Z | handlers/audiohandler.cpp | Feqzz/qZoom-Client | ac68be4a10a1db66dcf276ee881d5fa093e5f718 | [
"MIT"
] | 1 | 2021-09-27T15:33:25.000Z | 2021-09-27T15:33:25.000Z | #include "audiohandler.h"
/**
* @brief AudioHandler::AudioHandler
* @param _audioDeviceName
* @param _writeLock
* @param _time
* @param _socketHandler
* @param bufferSize
* @param _imageHandler
*/
AudioHandler::AudioHandler(QString _audioDeviceName, std::mutex* _writeLock,int64_t _time,
... | 33.340407 | 144 | 0.628063 | Feqzz |
1789a6bd98195a54c4f73373642de2863c80ae52 | 1,935 | cpp | C++ | Engine/Src/SFCore/Script/Tong/SFTongScriptEngine.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | 1 | 2020-06-20T07:35:25.000Z | 2020-06-20T07:35:25.000Z | Engine/Src/SFCore/Script/Tong/SFTongScriptEngine.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | Engine/Src/SFCore/Script/Tong/SFTongScriptEngine.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// CopyRight (c) 2018 Kyungkun Ko
//
// Author : KyungKun Ko
//
// Description : TongScript
//
//
////////////////////////////////////////////////////////////////////////////////
#include "SFCorePCH.h"
#include "SFType... | 23.035714 | 116 | 0.624806 | blue3k |
178c09e87abe68be72b19d4769855eec169d0370 | 836 | cpp | C++ | niuke_HW/ds_zuo/8_10_sumPrime.cpp | drt4243566/leetcode_learn | ef51f215079556895eec2252d84965cd1c3a7bf4 | [
"MIT"
] | null | null | null | niuke_HW/ds_zuo/8_10_sumPrime.cpp | drt4243566/leetcode_learn | ef51f215079556895eec2252d84965cd1c3a7bf4 | [
"MIT"
] | null | null | null | niuke_HW/ds_zuo/8_10_sumPrime.cpp | drt4243566/leetcode_learn | ef51f215079556895eec2252d84965cd1c3a7bf4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int isprime(int sum){
if(sum<2){
return 0;
}
if(sum==2){
return 1;
}
for(int i=2;i<=int(sqrt(sum));i++){
if(sum%i==0){
return 0;
}
}
return 1;
}
int process(vector<int> v, ... | 18.173913 | 78 | 0.444976 | drt4243566 |
178d7230c3edb9796f0fde0d63600c5af7794c66 | 5,692 | cpp | C++ | PlayerStateAnimationControlled.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | PlayerStateAnimationControlled.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | PlayerStateAnimationControlled.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
/*************************************************************************
-------------------------------------------------------------------------
Description:
-------------------------------------------------------------------------
History:... | 31.447514 | 146 | 0.745081 | IvarJonsson |
178f0b8cdd2b70a35eb42ad77b3911afbd730ef0 | 331 | cpp | C++ | apps/cc3o3/state/components/Meta.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | 3 | 2019-10-27T22:32:44.000Z | 2020-05-21T04:00:46.000Z | apps/cc3o3/state/components/Meta.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | apps/cc3o3/state/components/Meta.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | #include "stdafx.h"
#include "Meta.h"
namespace RF::cc::state::comp {
///////////////////////////////////////////////////////////////////////////////
Meta::Meta( state::VariableIdentifier const& identifier )
: mIdentifier( identifier )
{
//
}
///////////////////////////////////////////////////////////////////////... | 20.6875 | 79 | 0.347432 | max-delta |
178ff48c58da624950c2ba16d76ac0bde5e4cd62 | 164 | cpp | C++ | examples/constexpr.cpp | michaelbprice/default-arguments | 9fe2e1cf72e6527daa5599172c762dd29b389326 | [
"MIT"
] | 1 | 2017-09-26T17:26:33.000Z | 2017-09-26T17:26:33.000Z | examples/constexpr.cpp | michaelbprice/default-arguments | 9fe2e1cf72e6527daa5599172c762dd29b389326 | [
"MIT"
] | null | null | null | examples/constexpr.cpp | michaelbprice/default-arguments | 9fe2e1cf72e6527daa5599172c762dd29b389326 | [
"MIT"
] | null | null | null | // GCC> g++ -std=c++11
constexpr int fn (int n = 42)
{
return n;
}
int main ()
{
static_assert(fn() == 42);
static_assert(fn(0) == 0);
return 0;
}
| 12.615385 | 30 | 0.518293 | michaelbprice |
17929754c13f17263cd2dbae86edf2ce3e3be7eb | 2,312 | cpp | C++ | factory.cpp | zhanghexie/design-patterns | ff8841dd555116f49da00876f0c68865c916a251 | [
"MIT"
] | null | null | null | factory.cpp | zhanghexie/design-patterns | ff8841dd555116f49da00876f0c68865c916a251 | [
"MIT"
] | null | null | null | factory.cpp | zhanghexie/design-patterns | ff8841dd555116f49da00876f0c68865c916a251 | [
"MIT"
] | null | null | null | /*
* 工厂模式
* 张鹤轩
* 2020-8-5
*/
#include<iostream>
using namespace std;
// 运算父类
class Operator {
private:
double _numberA;
double _numberB;
public:
double getA(){
return _numberA;
}
void setA(double number){
_numberA = number;
}
dou... | 18.95082 | 53 | 0.519464 | zhanghexie |
179ac0d99e652a5f14b930e36b1a6a94724db995 | 1,672 | cpp | C++ | Libraries/Platform/Windows/CallStack.cpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | 3 | 2022-02-11T10:34:33.000Z | 2022-02-24T17:44:17.000Z | Libraries/Platform/Windows/CallStack.cpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | Libraries/Platform/Windows/CallStack.cpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#include "Precompiled.hpp"
namespace Zero
{
// Provide a custom stack walker
class CustomStackWalker : public StackWalker
{
public:
StringBuilder Stack;
StringBuilder Modules;
StringBuilder Other;
void SetExtraSymbolPath(LPCSTR symPath)
{
m_szSymPath = _strdup(symPath);... | 23.222222 | 77 | 0.694976 | RyanTylerRae |
179e4bd1aca2daa222dba9cc7be7bd9ebe342182 | 1,229 | cpp | C++ | src/linearsolvers/interface/config/LinearSolverConfig.cpp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | 3 | 2021-06-24T10:20:12.000Z | 2021-07-18T14:43:19.000Z | src/linearsolvers/interface/config/LinearSolverConfig.cpp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | 2 | 2021-07-22T15:31:03.000Z | 2021-07-28T14:27:28.000Z | src/linearsolvers/interface/config/LinearSolverConfig.cpp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | 1 | 2021-07-22T15:24:24.000Z | 2021-07-22T15:24:24.000Z | /**
* @file
* @author University of Warwick
* @version 1.0
*
* @section LICENSE
*
* @section DESCRIPTION
*
* Contains the definitions for the LinearSolverConfig class
*/
#include "LinearSolverConfig.h"
#include "Communicator.h"
#include "SparseMatrixCSR.h"
#include "SparseMatrixCOO.h"
namespace cupcfd
{
n... | 25.081633 | 124 | 0.748576 | thorbenlouw |
17a2295c1b073093364fd7657d5dce3be9b3f6f1 | 5,136 | cpp | C++ | Info/Info/CashShopBarter/CashShopBarter.cpp | Teles1/LuniaAsio | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | [
"MIT"
] | null | null | null | Info/Info/CashShopBarter/CashShopBarter.cpp | Teles1/LuniaAsio | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | [
"MIT"
] | null | null | null | Info/Info/CashShopBarter/CashShopBarter.cpp | Teles1/LuniaAsio | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | [
"MIT"
] | null | null | null | #include "CashShopBarter.h"
namespace Lunia {
namespace XRated {
namespace Database {
namespace Info {
void CashStampInfo::Serialize(Serializer::IStreamWriter& out) const
{
out.Begin(L"AllM::XRated::Database::Info::CashStampInfo");
out.Write(L"ItemHash", Hash);
out.Write(L"Fee", Fee);
... | 39.813953 | 86 | 0.674844 | Teles1 |
17a6a43f8048d0d9d2f74229e09fdafafdce75d7 | 1,239 | hpp | C++ | waterbox/bsnescore/bsnes/nall/http/client.hpp | Fortranm/BizHawk | 8cb0ffb6f8964cc339bbe1784838918fb0aa7e27 | [
"MIT"
] | 1,414 | 2015-06-28T09:57:51.000Z | 2021-10-14T03:51:10.000Z | waterbox/bsnescore/bsnes/nall/http/client.hpp | Fortranm/BizHawk | 8cb0ffb6f8964cc339bbe1784838918fb0aa7e27 | [
"MIT"
] | 2,369 | 2015-06-25T01:45:44.000Z | 2021-10-16T08:44:18.000Z | waterbox/bsnescore/bsnes/nall/http/client.hpp | Fortranm/BizHawk | 8cb0ffb6f8964cc339bbe1784838918fb0aa7e27 | [
"MIT"
] | 430 | 2015-06-29T04:28:58.000Z | 2021-10-05T18:24:17.000Z | #pragma once
#include <nall/http/role.hpp>
namespace nall::HTTP {
struct Client : Role {
inline auto open(const string& hostname, uint port = 80) -> bool;
inline auto upload(const Request& request) -> bool;
inline auto download(const Request& request) -> Response;
inline auto close() -> void;
~Client() { c... | 21.736842 | 83 | 0.656981 | Fortranm |
17a8a7635e4ac2a0c576df160c822966822689bd | 16,652 | cpp | C++ | stuncore/stunbuilder.cpp | csteuer/stunserver | ab36eaf5767ce13b12dfef4d894091539695f7cd | [
"Apache-2.0"
] | null | null | null | stuncore/stunbuilder.cpp | csteuer/stunserver | ab36eaf5767ce13b12dfef4d894091539695f7cd | [
"Apache-2.0"
] | null | null | null | stuncore/stunbuilder.cpp | csteuer/stunserver | ab36eaf5767ce13b12dfef4d894091539695f7cd | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2011 John Selbie
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 wri... | 28.128378 | 156 | 0.692109 | csteuer |
17a8ed61671ff3b513a2c80717b395139a9a3762 | 256 | cpp | C++ | src/RE/BSShaderProperty.cpp | rollingrock/CommonLibVR | bf4f92eecf3d2df23b48527fbdcce9b844d38fbd | [
"MIT"
] | 6 | 2020-04-05T04:37:42.000Z | 2022-03-19T17:42:24.000Z | src/RE/BSShaderProperty.cpp | kassent/CommonLibSSE | 394231b44ba01925fef9d01ea2b0b29c2fff601c | [
"MIT"
] | 3 | 2021-11-08T09:31:20.000Z | 2022-03-02T19:22:42.000Z | src/RE/BSShaderProperty.cpp | kassent/CommonLibSSE | 394231b44ba01925fef9d01ea2b0b29c2fff601c | [
"MIT"
] | 6 | 2020-04-10T18:11:46.000Z | 2022-01-18T22:31:25.000Z | #include "RE/BSShaderProperty.h"
#include <numeric>
namespace RE
{
void BSShaderProperty::SetEffectShaderData(const BSTSmartPointer<BSEffectShaderData>& a_data)
{
lastRenderPassState = std::numeric_limits<SInt32>::max();
effectData = a_data;
}
}
| 18.285714 | 94 | 0.761719 | rollingrock |
17ae2d38cc631c1bb390681b74e79f0a4649bfb6 | 96,463 | cpp | C++ | aws-cpp-sdk-iot/source/IoTClient.cpp | AmineChatt1A/aws-sdk-cpp | 3e979d7bc272f77ac179b4849f7386027201c1a2 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-iot/source/IoTClient.cpp | AmineChatt1A/aws-sdk-cpp | 3e979d7bc272f77ac179b4849f7386027201c1a2 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-iot/source/IoTClient.cpp | AmineChatt1A/aws-sdk-cpp | 3e979d7bc272f77ac179b4849f7386027201c1a2 | [
"Apache-2.0"
] | 1 | 2021-10-01T15:29:44.000Z | 2021-10-01T15:29:44.000Z | /*
* Copyright 2010-2017 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 "license" fil... | 43.866758 | 243 | 0.773675 | AmineChatt1A |
17b2619bb9316b03330bee50fb884f659fb3f3c7 | 8,722 | hpp | C++ | SDK/ARKSurvivalEvolved_Buff_ChargeEmitterStructure_ChargeLantern_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Buff_ChargeEmitterStructure_ChargeLantern_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Buff_ChargeEmitterStructure_ChargeLantern_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Buff_ChargeEmitterStructure_ChargeLantern_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//----------------------------... | 64.132353 | 161 | 0.604334 | 2bite |
17b27b4a32d7ed9479191876a4246189b37531be | 2,182 | cpp | C++ | yumemi_recruit/ranking.cpp | syohex/cpp-study | 598c2afbe77c6d4ba88f549d3e99f97b5bf81acb | [
"MIT"
] | null | null | null | yumemi_recruit/ranking.cpp | syohex/cpp-study | 598c2afbe77c6d4ba88f549d3e99f97b5bf81acb | [
"MIT"
] | null | null | null | yumemi_recruit/ranking.cpp | syohex/cpp-study | 598c2afbe77c6d4ba88f549d3e99f97b5bf81acb | [
"MIT"
] | null | null | null | #include "ranking.h"
#include <fstream>
#include <sstream>
#include <map>
#include <queue>
#include <cmath>
namespace {
struct ScoreData {
std::string id;
std::int64_t score;
};
struct CompareScore {
public:
bool operator()(const ScoreData &a, const ScoreData &b) const {
return a.score < b.sco... | 23.462366 | 99 | 0.584326 | syohex |
17b629dceecf53f2e6963be77fb630f13b04b3fe | 1,771 | hpp | C++ | src/websocket/connection.hpp | madmongo1/blog-december-2020 | 899a22344d2252985f7f8e540eeee6ffc7c8dab7 | [
"BSL-1.0"
] | 1 | 2022-02-05T01:43:25.000Z | 2022-02-05T01:43:25.000Z | src/websocket/connection.hpp | madmongo1/blog-december-2020 | 899a22344d2252985f7f8e540eeee6ffc7c8dab7 | [
"BSL-1.0"
] | null | null | null | src/websocket/connection.hpp | madmongo1/blog-december-2020 | 899a22344d2252985f7f8e540eeee6ffc7c8dab7 | [
"BSL-1.0"
] | 1 | 2021-09-24T23:42:51.000Z | 2021-09-24T23:42:51.000Z | //
// Copyright (c) 2020 Richard Hodges (hodges.r@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef DECEMBER_2020_CONNECTION_HPP
#define DECEMBER_2020_CONNECTION_HPP
#include "websocket/connect_opti... | 22.705128 | 79 | 0.638058 | madmongo1 |
17b8ad922f2617643971acf8d58e9e721f45f314 | 1,003 | cpp | C++ | alica_tests/autogenerated/src/Plans/constraints/GoalPlan1402488870347Constraints.cpp | hendrik-skubch/alica | fe82928edf3a36df5f07a2258ff21d17ca8fa6d9 | [
"MIT"
] | 12 | 2015-06-09T07:19:50.000Z | 2018-11-20T10:40:08.000Z | alica_tests/autogenerated/src/Plans/constraints/GoalPlan1402488870347Constraints.cpp | hendrik-skubch/alica | fe82928edf3a36df5f07a2258ff21d17ca8fa6d9 | [
"MIT"
] | 4 | 2015-09-10T10:23:33.000Z | 2018-04-20T12:07:34.000Z | alica_tests/autogenerated/src/Plans/constraints/GoalPlan1402488870347Constraints.cpp | hendrik-skubch/alica | fe82928edf3a36df5f07a2258ff21d17ca8fa6d9 | [
"MIT"
] | 4 | 2016-06-13T12:04:57.000Z | 2018-07-04T08:11:35.000Z | #include "Plans/constraints/GoalPlan1402488870347Constraints.h"
using namespace std;
using namespace alica;
/*PROTECTED REGION ID(ch1402488870347) ENABLED START*/
// Add additional using directives here
/*PROTECTED REGION END*/
namespace alicaAutogenerated
{
// Plan:GoalPlan
/*
* Tasks:
* - EP:1402488881800 : Defau... | 18.574074 | 101 | 0.711864 | hendrik-skubch |
17bb70158dd77a042a5e77409938703102595af7 | 7,579 | cpp | C++ | 201910/misc/agc024_d.gen.cpp | akouryy/kyopro-2020 | 9eaffe0e653deb96daeb105320d798db621ddcf6 | [
"MIT"
] | null | null | null | 201910/misc/agc024_d.gen.cpp | akouryy/kyopro-2020 | 9eaffe0e653deb96daeb105320d798db621ddcf6 | [
"MIT"
] | null | null | null | 201910/misc/agc024_d.gen.cpp | akouryy/kyopro-2020 | 9eaffe0e653deb96daeb105320d798db621ddcf6 | [
"MIT"
] | null | null | null | #line 1 "base.hpp"//a
#ifndef __clang__
#pragma GCC optimize ("O3")
#endif
void solve(
#ifdef GCJ_CASE
long long case_id
#endif
);
#if defined(EBUG) && !defined(ONLINE_JUDGE)
#define debug true
#define _GLIBCXX_DEBUG
// #define _LIBCPP_DEBUG 0
#define _LIBCPP_DEBUG2 0
#else
#define NDEBUG
#define debug false
#endif
#in... | 33.387665 | 149 | 0.611426 | akouryy |
17bf0dcf1f1752c90fb9f2e9ed5e4a84a99c2b53 | 4,881 | cpp | C++ | docs/users-guide/examples/impl-abs-type/AArrayAc.cpp | kevin-f-ortega/fpp | ee355fc99eb8040157c62e69f58ac6a8435cd981 | [
"Apache-2.0"
] | 24 | 2021-02-11T19:54:39.000Z | 2022-03-01T22:13:17.000Z | docs/users-guide/examples/impl-abs-type/AArrayAc.cpp | kevin-f-ortega/fpp | ee355fc99eb8040157c62e69f58ac6a8435cd981 | [
"Apache-2.0"
] | 107 | 2020-12-14T16:37:34.000Z | 2022-02-04T02:41:31.000Z | docs/users-guide/examples/impl-abs-type/AArrayAc.cpp | kevin-f-ortega/fpp | ee355fc99eb8040157c62e69f58ac6a8435cd981 | [
"Apache-2.0"
] | 9 | 2021-02-19T08:28:26.000Z | 2022-02-10T20:25:34.000Z | // ======================================================================
// \title A
// \author Auto-generated
// \brief cpp file for A
//
// \copyright
// Copyright 2020 California Institute of Technology.
// ALL RIGHTS RESERVED. United States Government Sponsorship
// acknowledged. Any commercial use must be neg... | 22.389908 | 75 | 0.531448 | kevin-f-ortega |
17bfcdc5bcb08164808bccf8c816a49ddb3bb1b3 | 1,233 | cpp | C++ | Contests/The 2017 China Collegiate Programming Contest, Qinhuangdao Site/C - Crusaders Quest.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | 2 | 2018-02-24T06:45:56.000Z | 2018-05-29T04:47:39.000Z | Contests/The 2017 China Collegiate Programming Contest, Qinhuangdao Site/C - Crusaders Quest.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | null | null | null | Contests/The 2017 China Collegiate Programming Contest, Qinhuangdao Site/C - Crusaders Quest.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | 2 | 2018-06-28T09:53:27.000Z | 2022-03-23T13:29:57.000Z | #include <bits/stdc++.h>
using namespace std;
#pragma comment(linker,"/stack:1024000000,1024000000")
#define db(x) cout<<(x)<<endl
#define pc(x) putchar(x)
#define ps(x) puts(x)
#define pf(x) push_front(x)
#define pb(x) push_back(x)
#define mp(x,y) make_pair(x,y)
#define ms(x,y) memset(x,y,sizeof x)
typedef long long L... | 20.55 | 54 | 0.557989 | QAQrz |
17c11a228e399a3bac99813a45da736e4c53324b | 4,824 | cpp | C++ | dof-mgr/example/CartesianScaling/main.cpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T03:49:50.000Z | 2022-03-22T03:49:50.000Z | dof-mgr/example/CartesianScaling/main.cpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | dof-mgr/example/CartesianScaling/main.cpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include "Kokkos_Core.hpp"
#include "Teuchos_GlobalMPISession.hpp"
#include "PanzerCore_config.hpp"
#include "Panzer_IntrepidFieldPattern.hpp"
#include "Panzer_IntrepidFieldPattern.hpp"
#include "Panzer_DOFManager.hpp"
#include "Intrepid2_HGRAD_HEX_C1_FEM.hpp"
#include "Intrepid2_HGRAD_HEX_C2_FE... | 36.545455 | 145 | 0.713308 | hillyuan |
17c790731188ec707a442b0439328254c320a29b | 7,027 | cpp | C++ | src/util/cardinality.cpp | FabianWolff/cvc4-debian | e38afe6cb10bdb79f0bae398b9605e4deae7578f | [
"BSL-1.0"
] | null | null | null | src/util/cardinality.cpp | FabianWolff/cvc4-debian | e38afe6cb10bdb79f0bae398b9605e4deae7578f | [
"BSL-1.0"
] | null | null | null | src/util/cardinality.cpp | FabianWolff/cvc4-debian | e38afe6cb10bdb79f0bae398b9605e4deae7578f | [
"BSL-1.0"
] | null | null | null | /********************* */
/*! \file cardinality.cpp
** \verbatim
** Top contributors (to current version):
** Morgan Deters, Tim King
** This file is part of the CVC4 project.
** Copyright (c) 2009-2016 by the authors listed in the file AUTHORS
** in the to... | 26.820611 | 80 | 0.596556 | FabianWolff |
17cf0522856172f92b4e85aac2114e9d82f0f157 | 38 | hpp | C++ | tests/include/configs.hpp | Ybalrid/Annwvyn | 30d63c722524c35a9054d51dcdd9f39af0599a3d | [
"MIT"
] | 39 | 2015-04-02T15:32:19.000Z | 2022-03-26T12:48:28.000Z | tests/include/configs.hpp | Ybalrid/Annwvyn | 30d63c722524c35a9054d51dcdd9f39af0599a3d | [
"MIT"
] | 136 | 2015-02-24T19:45:59.000Z | 2019-02-21T15:01:12.000Z | tests/include/configs.hpp | Ybalrid/Annwvyn | 30d63c722524c35a9054d51dcdd9f39af0599a3d | [
"MIT"
] | 12 | 2015-02-24T19:37:38.000Z | 2019-05-13T12:07:26.000Z | #pragma once
#define RENDERER "NoVR"
| 9.5 | 23 | 0.736842 | Ybalrid |
17d2535ac038561e8c8707b0aa3862972fb25fc8 | 5,617 | cpp | C++ | CK3ToEU4Tests/MapperTests/DynamicIdeasMapperTests/DynamicIdeasMapperTests.cpp | gawquon/CK3toEU4 | 5a84c720e4241adcfd4980691fd4c0a868473a93 | [
"MIT"
] | 1 | 2022-02-18T15:42:43.000Z | 2022-02-18T15:42:43.000Z | CK3ToEU4Tests/MapperTests/DynamicIdeasMapperTests/DynamicIdeasMapperTests.cpp | klorpa/CK3toEU4 | 7e46f29714c03fc5033aa9e23c29222b034ac08a | [
"MIT"
] | 15 | 2022-03-10T15:47:50.000Z | 2022-03-25T22:15:25.000Z | CK3ToEU4Tests/MapperTests/DynamicIdeasMapperTests/DynamicIdeasMapperTests.cpp | klorpa/CK3toEU4 | 7e46f29714c03fc5033aa9e23c29222b034ac08a | [
"MIT"
] | null | null | null | #include "../CK3ToEU4/Source/Mappers/DynamicIdeasMapper/DynamicIdeasMapper.h"
#include "include/gmock/gmock-matchers.h"
#include "gtest/gtest.h"
TEST(Mappers_DynamicIdeasMapperTests, defaultsLoadIn)
{
const auto& theMapper = mappers::DynamicIdeasMapper(mappers::LocalizationMapper::LocalizationMapper());
EXPECT_THAT... | 63.829545 | 141 | 0.755207 | gawquon |
17d33873d8bbd970fb5107cdd32944ba0cac43fb | 902 | cpp | C++ | src/StringUtils.cpp | AheadIO/light_sequence_parser | a355dbaeb464d270de06f2658554582947de87d2 | [
"MIT"
] | 1 | 2018-09-15T12:07:54.000Z | 2018-09-15T12:07:54.000Z | src/StringUtils.cpp | AheadIO/light_sequence_parser | a355dbaeb464d270de06f2658554582947de87d2 | [
"MIT"
] | 1 | 2017-11-30T12:58:43.000Z | 2017-11-30T12:58:43.000Z | src/StringUtils.cpp | AheadIO/light_sequence_parser | a355dbaeb464d270de06f2658554582947de87d2 | [
"MIT"
] | null | null | null | #include <sequence/details/StringUtils.hpp>
std::string concat(CStringView a) { return a.toString(); }
std::string concat(CStringView a, CStringView b) {
std::string result;
result.reserve(a.size() + b.size());
result.append(a.ptr(), a.size());
result.append(b.ptr(), b.size());
return result;
}
std::string... | 29.096774 | 80 | 0.648559 | AheadIO |
17d516cafe7492a102bf273c464caa8cfc487ce6 | 36 | cpp | C++ | sources/Services/Controllers/ControllableVariable.cpp | haiko21/LittleGPTracker | 0f137aa67dfd86379b830cc51ba900b9423127ce | [
"BSD-3-Clause"
] | 66 | 2015-01-29T09:12:51.000Z | 2022-03-23T19:20:49.000Z | sources/Services/Controllers/ControllableVariable.cpp | haiko21/LittleGPTracker | 0f137aa67dfd86379b830cc51ba900b9423127ce | [
"BSD-3-Clause"
] | 18 | 2015-08-19T19:50:31.000Z | 2021-10-12T02:33:09.000Z | sources/Services/Controllers/ControllableVariable.cpp | haiko21/LittleGPTracker | 0f137aa67dfd86379b830cc51ba900b9423127ce | [
"BSD-3-Clause"
] | 20 | 2015-08-19T00:46:57.000Z | 2022-03-14T13:44:49.000Z |
#include "ControllableVariable.h"
| 12 | 33 | 0.777778 | haiko21 |
17d87ce61451403d55bddba588e5c4c22fd33a84 | 775 | hpp | C++ | evias/core/ro_container.hpp | evias/evias | 5b5d4c16404f855c3234afa05b11c339a3ebb4cb | [
"BSD-3-Clause"
] | 1 | 2015-10-31T03:18:02.000Z | 2015-10-31T03:18:02.000Z | evias/core/ro_container.hpp | evias/evias | 5b5d4c16404f855c3234afa05b11c339a3ebb4cb | [
"BSD-3-Clause"
] | null | null | null | evias/core/ro_container.hpp | evias/evias | 5b5d4c16404f855c3234afa05b11c339a3ebb4cb | [
"BSD-3-Clause"
] | null | null | null | #ifndef __EVIAS_CORE_READONLY_CONTAINER__
# define __EVIAS_CORE_READONLY_CONTAINER__
#include "container.hpp"
namespace evias {
namespace core {
class readOnlyContainer : public Container
{
protected:
const uint8_t* const _dataPointer;
const uint64_t _dataSize;
public... | 20.945946 | 63 | 0.649032 | evias |
17d968a74d5123e1e86e9ad92b86d2fc6beecc23 | 16,991 | hpp | C++ | include/UnityEngine/ProBuilder/Vertex.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/ProBuilder/Vertex.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/ProBuilder/Vertex.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.IEquatable`1
#include "System/IEquatable_1.hpp"
// Including t... | 54.809677 | 541 | 0.718616 | darknight1050 |
17e11bbd196de3887900c74ef970153b2357e915 | 3,096 | cc | C++ | src/console_check.cc | MobSlicer152/breadlauncher | e891c8d80d0bd6a34af8f94ff62877f5accb69c7 | [
"Apache-2.0"
] | 1 | 2021-09-15T22:46:12.000Z | 2021-09-15T22:46:12.000Z | src/console_check.cc | MobSlicer152/breadlauncher | e891c8d80d0bd6a34af8f94ff62877f5accb69c7 | [
"Apache-2.0"
] | null | null | null | src/console_check.cc | MobSlicer152/breadlauncher | e891c8d80d0bd6a34af8f94ff62877f5accb69c7 | [
"Apache-2.0"
] | null | null | null | #include "console_check.h"
bool check_parent_is_console(void)
{
#ifdef _WIN32
HANDLE th32 = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
HANDLE parent;
IMAGE_DOS_HEADER *dos_hdr;
IMAGE_NT_HEADERS32 *nt32_hdrs = nullptr;
IMAGE_NT_HEADERS64 *nt64_hdrs = nullptr;
SIZE_T parent_hdrs_size;
PROCESSENTR... | 29.485714 | 90 | 0.685078 | MobSlicer152 |
17e2ec7289910e7d6438e79885707697b3569353 | 1,814 | cpp | C++ | luogu/P3919.cpp | StableAgOH/solution-codes | 1fde9424a40f989570e05d7340ddd5497a0d390d | [
"CC0-1.0"
] | 1 | 2022-01-23T09:26:35.000Z | 2022-01-23T09:26:35.000Z | problems/T/T1051/std.cpp | jgsu-acm/oj-problems | 60fe9054ea2aea3465eedeffcce996d299711750 | [
"MIT"
] | null | null | null | problems/T/T1051/std.cpp | jgsu-acm/oj-problems | 60fe9054ea2aea3465eedeffcce996d299711750 | [
"MIT"
] | null | null | null | #include <iostream>
#include <chrono>
using namespace std;
//==========================================
const int maxn = 1e6+5;
int a[maxn];
struct Node { int l,r,val; } hjt[maxn*25];
int cnt, root[maxn];
void build(int l,int r,int& k)
{
k = ++cnt;
if(l==r)
{
hjt[k].val = a[l];
return;
}... | 22.675 | 95 | 0.467475 | StableAgOH |
17e47ffc3e08765694088602fb32e01154b9300a | 4,411 | cpp | C++ | dali/internal/event/animation/animation-playlist.cpp | dalihub/dali-core | f9b1a5a637bbc91de4aaf9e0be9f79cba0bbb195 | [
"Apache-2.0",
"BSD-3-Clause"
] | 21 | 2016-11-18T10:26:40.000Z | 2021-11-02T09:46:15.000Z | dali/internal/event/animation/animation-playlist.cpp | dalihub/dali-core | f9b1a5a637bbc91de4aaf9e0be9f79cba0bbb195 | [
"Apache-2.0",
"BSD-3-Clause"
] | 7 | 2016-10-18T17:39:12.000Z | 2020-12-01T11:45:36.000Z | dali/internal/event/animation/animation-playlist.cpp | dalihub/dali-core | f9b1a5a637bbc91de4aaf9e0be9f79cba0bbb195 | [
"Apache-2.0",
"BSD-3-Clause"
] | 16 | 2017-03-08T15:50:32.000Z | 2021-05-24T06:58:10.000Z | /*
* Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* 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... | 31.283688 | 133 | 0.723192 | dalihub |
17e5ae024fb983ff75552be17e49d15678214dd2 | 2,356 | cpp | C++ | 2020/06.cpp | wgevaert/AOC | aaa9c06f9817e338cca01bbf37b6ba81256dd5ba | [
"WTFPL"
] | 2 | 2020-08-06T22:14:51.000Z | 2020-08-10T19:42:36.000Z | 2020/06.cpp | wgevaert/AOC | aaa9c06f9817e338cca01bbf37b6ba81256dd5ba | [
"WTFPL"
] | null | null | null | 2020/06.cpp | wgevaert/AOC | aaa9c06f9817e338cca01bbf37b6ba81256dd5ba | [
"WTFPL"
] | null | null | null | #include <iostream>
#include <fstream>
#include <chrono>
// Because I'm too lazy to type
typedef unsigned long long ull_t;
typedef unsigned u_t;
typedef long long ll_t;
unsigned verb_lvl = 0;
int real_main(int argc, char** argv) {
if (argc < 2) {
std::cerr << "Usage: " << argv[0] << " [-v {verbosity_leve... | 27.717647 | 122 | 0.466044 | wgevaert |
17e9759ec9892f4a369d9dfe6bfc18e78baf5e42 | 6,601 | cpp | C++ | src/qt/qtbase/examples/widgets/layouts/borderlayout/borderlayout.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | src/qt/qtbase/examples/widgets/layouts/borderlayout/borderlayout.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/examples/widgets/layouts/borderlayout/borderlayout.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follow... | 31.136792 | 81 | 0.594001 | power-electro |
17eacadb38080e768db324acbc4263dd4631606c | 724 | hpp | C++ | android-31/android/net/ipsec/ike/IkeRfc822AddrIdentification.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/net/ipsec/ike/IkeRfc822AddrIdentification.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-31/android/net/ipsec/ike/IkeRfc822AddrIdentification.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "./IkeIdentification.hpp"
class JObject;
class JString;
namespace android::net::ipsec::ike
{
class IkeRfc822AddrIdentification : public android::net::ipsec::ike::IkeIdentification
{
public:
// Fields
JString rfc822Name();
// QJniObject forward
template<typename ...Ts> explicit Ike... | 24.965517 | 204 | 0.729282 | YJBeetle |
17ebbe8b4ce6cec528c6f279c4f0fa71af17a3fa | 10,968 | cc | C++ | examples/blas/trmm.cc | rabauke/numeric_bindings | f4de93bd7a01a8b31c9367fad35c81d086768f99 | [
"BSL-1.0"
] | null | null | null | examples/blas/trmm.cc | rabauke/numeric_bindings | f4de93bd7a01a8b31c9367fad35c81d086768f99 | [
"BSL-1.0"
] | null | null | null | examples/blas/trmm.cc | rabauke/numeric_bindings | f4de93bd7a01a8b31c9367fad35c81d086768f99 | [
"BSL-1.0"
] | null | null | null | #include <cstdlib>
#include <iostream>
#include <complex>
#define BOOST_UBLAS_NO_ELEMENT_PROXIES
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/bindings/ublas/matrix.hpp>
#include <boost/numeric/bindings/blas/level3.hpp>
#include <boost/numeric/bindings/lower.hpp>
#include <boost/numeric/bindings/upp... | 39.883636 | 80 | 0.559172 | rabauke |
17ebc1edb604a9bcdfb26c82f46cac91e308485c | 46,970 | cpp | C++ | FSMEngineProject/FSMRenderEnvironment.cpp | millerf1234/FSMRenderEngine | 44291023c2df01d04c9fc05bb45240e9145b4b37 | [
"MIT"
] | null | null | null | FSMEngineProject/FSMRenderEnvironment.cpp | millerf1234/FSMRenderEngine | 44291023c2df01d04c9fc05bb45240e9145b4b37 | [
"MIT"
] | null | null | null | FSMEngineProject/FSMRenderEnvironment.cpp | millerf1234/FSMRenderEngine | 44291023c2df01d04c9fc05bb45240e9145b4b37 | [
"MIT"
] | null | null | null | //
// File: FSMRenderEnvironment.cpp
//
// Desc: See header for more details
//
//
// Programmer: Forrest Miller
// Date: Created March 9, 2019 [I doubt it will be finished today tho...]
//
#include <sstream>
#include <fstream>
#include <thread> //Thread not actually needed outs... | 40.843478 | 154 | 0.586864 | millerf1234 |
17ec0eddda1950827258724f4f64a989250f5c40 | 278 | cpp | C++ | step00/test_staticpow.cpp | CppGoneWild/MetaConf | 474a584efd18071c805a75deb6c408504a014145 | [
"Unlicense"
] | 2 | 2017-10-17T12:25:53.000Z | 2018-08-24T11:56:58.000Z | step00/test_staticpow.cpp | CppGoneWild/MetaConf | 474a584efd18071c805a75deb6c408504a014145 | [
"Unlicense"
] | null | null | null | step00/test_staticpow.cpp | CppGoneWild/MetaConf | 474a584efd18071c805a75deb6c408504a014145 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include "StaticPow.hpp"
int main(int, char **)
{
std::cout << "2^4 = " << StaticPow<2, 4>::result << std::endl;
std::cout << "3^4 = " << StaticPow<3, 4>::result << std::endl;
std::cout << "4^4 = " << StaticPow<4, 4>::result << std::endl;
return (0);
} | 25.272727 | 63 | 0.553957 | CppGoneWild |
17efc2b2b564c3922548b5f3cf1e064907bb2f03 | 592 | hpp | C++ | include/nesturbia/util/crc32.hpp | SteelCityKeyPuncher/nesturbia | a98a5d52ec2b508f64075933020bd64f584690b2 | [
"MIT"
] | null | null | null | include/nesturbia/util/crc32.hpp | SteelCityKeyPuncher/nesturbia | a98a5d52ec2b508f64075933020bd64f584690b2 | [
"MIT"
] | null | null | null | include/nesturbia/util/crc32.hpp | SteelCityKeyPuncher/nesturbia | a98a5d52ec2b508f64075933020bd64f584690b2 | [
"MIT"
] | null | null | null | #ifndef UTIL_CRC32_HPP_INCLUDED
#define UTIL_CRC32_HPP_INCLUDED
#include <cstddef>
#include <cstdint>
namespace nesturbia {
static inline uint32_t crc32(const void *message, size_t length) {
uint32_t crc = 0xffffffff;
for (size_t i = 0; i < length; i++) {
auto crcLookup = (crc ^ reinterpret_cast<const uint8... | 21.925926 | 82 | 0.657095 | SteelCityKeyPuncher |
17f35564ebb28471a91aacb8b268b462c1765e91 | 1,336 | cpp | C++ | eepromlayout.cpp | gvissers/Robot | dd5571953d9936846cca6fc1167e89341760ca32 | [
"Apache-2.0"
] | null | null | null | eepromlayout.cpp | gvissers/Robot | dd5571953d9936846cca6fc1167e89341760ca32 | [
"Apache-2.0"
] | null | null | null | eepromlayout.cpp | gvissers/Robot | dd5571953d9936846cca6fc1167e89341760ca32 | [
"Apache-2.0"
] | null | null | null | #include <EEPROM.h>
#include <string.h>
#include "eepromlayout.h"
const EEPromLayout::ItemInfo EEPromLayout::_layout[_layout_size] = {
{ {'B', 'N', 'O', 'C'}, 0, 22 }
};
const EEPromLayout::ItemInfo* EEPromLayout::find(const char* magic)
{
for (int i = 0; i < _layout_size; ++i)
{
if (!memcmp(_layo... | 23.857143 | 70 | 0.561377 | gvissers |
17f3e79e9c3b1ecac6e48cc166bb9736318440cd | 3,122 | cpp | C++ | src/fsm-editor/visitors/linkverifier.cpp | AsuMagic/centauri-fsm-editor | 0830969dd0c1548870ab71efa8b36a77fc40dbd4 | [
"MIT"
] | null | null | null | src/fsm-editor/visitors/linkverifier.cpp | AsuMagic/centauri-fsm-editor | 0830969dd0c1548870ab71efa8b36a77fc40dbd4 | [
"MIT"
] | null | null | null | src/fsm-editor/visitors/linkverifier.cpp | AsuMagic/centauri-fsm-editor | 0830969dd0c1548870ab71efa8b36a77fc40dbd4 | [
"MIT"
] | null | null | null | #include "linkverifier.hpp"
#include "../nodes/nodes.hpp"
#include "../editor.hpp"
#include "predvisitor.hpp"
namespace fsme
{
namespace visitors
{
const char* get_feasibility_string(LinkFeasibility feasibility)
{
switch (feasibility)
{
case LinkFeasibility::FEASIBLE:
return "Feasible.";
case LinkFeasibility::... | 22.623188 | 91 | 0.730621 | AsuMagic |
17f676a40bb94f996435b00bd963b9846affb441 | 615 | cpp | C++ | data/passage.cpp | FuSoftware/QTwee | eb37c6f9f398bf5f8c094d79d87ed40ec5a30d6d | [
"MIT"
] | null | null | null | data/passage.cpp | FuSoftware/QTwee | eb37c6f9f398bf5f8c094d79d87ed40ec5a30d6d | [
"MIT"
] | null | null | null | data/passage.cpp | FuSoftware/QTwee | eb37c6f9f398bf5f8c094d79d87ed40ec5a30d6d | [
"MIT"
] | null | null | null | #include "passage.h"
Passage::Passage(QString name, QString text, QStringList tags)
{
this->name = name;
this->text = text;
this->tags = tags;
}
void Passage::addLine(QString line)
{
this->text.append("\n");
this->text.append(line);
}
QString Passage::getName()
{
return this->name;
}
QString... | 15.375 | 62 | 0.653659 | FuSoftware |
17fbedac0f4b750bf0b861e73c30f1ae18cf1cfd | 278 | hpp | C++ | Axis.Core/unit_tests/BogusFileReader.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.Core/unit_tests/BogusFileReader.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.Core/unit_tests/BogusFileReader.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #pragma once
#include "services/io/FileReader.hpp"
class BogusFileReader : public axis::services::io::FileReader
{
private:
int _lineCountToFail;
public:
BogusFileReader(const axis::String& filename);
~BogusFileReader(void);
virtual void ReadLine( axis::String& s );
};
| 17.375 | 61 | 0.751799 | renato-yuzup |
17fc95f8bd04538d36b26f2d0711784434f1f3e0 | 570 | cpp | C++ | A_Is_your_horseshoe_on_the_other_hoof_.cpp | ar1936/CPP | 4c76c2bf5308d8d3b6e295482e3ce4284fbeaf13 | [
"MIT"
] | 1 | 2021-04-20T13:49:56.000Z | 2021-04-20T13:49:56.000Z | A_Is_your_horseshoe_on_the_other_hoof_.cpp | ar1936/cpp | 4c76c2bf5308d8d3b6e295482e3ce4284fbeaf13 | [
"MIT"
] | null | null | null | A_Is_your_horseshoe_on_the_other_hoof_.cpp | ar1936/cpp | 4c76c2bf5308d8d3b6e295482e3ce4284fbeaf13 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
vector<int>v;
for(int i=0;i<4;i++)
{
int x;
cin>>x;
v.push_back(x);
}
sort(v.begin(),v.end());
int res = 0;
for (int i = 0; i < v.size(); i++) {
// Move the index ahead whi... | 16.764706 | 52 | 0.378947 | ar1936 |
aa020dcb371108b0eb181cc1033512618eea2196 | 926 | cpp | C++ | EngineUPC/MainApp/TB3D_Player.cpp | UPC-DESARROLLO-JUEGOS-1/DJ1-2017-II-TileEngine3D | 748b570545aef735bb0e94e5d30ca421dca177bf | [
"MIT"
] | 1 | 2020-04-24T21:50:49.000Z | 2020-04-24T21:50:49.000Z | EngineUPC/MainApp/TB3D_Player.cpp | UPC-DESARROLLO-JUEGOS-1/DJ1-2017-II-TileEngine3D | 748b570545aef735bb0e94e5d30ca421dca177bf | [
"MIT"
] | null | null | null | EngineUPC/MainApp/TB3D_Player.cpp | UPC-DESARROLLO-JUEGOS-1/DJ1-2017-II-TileEngine3D | 748b570545aef735bb0e94e5d30ca421dca177bf | [
"MIT"
] | null | null | null | #include "TB3D_Player.h"
#include "TB3D_Engine.h"
TB3D_Player::TB3D_Player(TB3D_Engine* engine) : TB3D_Actor(engine)
{
mPlayerControl = new TB3D_PlayerControl(this);
}
TB3D_Player::~TB3D_Player()
{
delete mPlayerControl;
TB3D_Actor::~TB3D_Actor();
}
void TB3D_Player::CreateCollision(float size) {
mCollisionCub... | 21.045455 | 87 | 0.731102 | UPC-DESARROLLO-JUEGOS-1 |
aa02e98494287f7ff520af9e5ca6626cc956e346 | 1,946 | cpp | C++ | src/wipc/Window.cpp | epsitec-sa/node-windows-ipc | ae09fe6b22dfb415c0c8c50d8dca59ffd8b19abe | [
"MIT"
] | null | null | null | src/wipc/Window.cpp | epsitec-sa/node-windows-ipc | ae09fe6b22dfb415c0c8c50d8dca59ffd8b19abe | [
"MIT"
] | null | null | null | src/wipc/Window.cpp | epsitec-sa/node-windows-ipc | ae09fe6b22dfb415c0c8c50d8dca59ffd8b19abe | [
"MIT"
] | null | null | null | // Copyright @ 2013-2019, EPSITEC SA, CH-1400 Yverdon-les-Bains, Switzerland
// Author: Roger Vuistiner
#include <functional>
#include "./Window.h"
#include "./Module.h"
using namespace Epsitec::System;
namespace Epsitec
{
namespace Windows
{
HWND Window::CreateHandle(HINSTANCE hInst, LPCTSTR className, DWORD st... | 25.946667 | 98 | 0.65519 | epsitec-sa |
aa0583e26ee2174bd8f2ec6888f75f42f9faa10d | 984 | cpp | C++ | 5.Trees/Diameter_of_a_Binary_tree.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | 5.Trees/Diameter_of_a_Binary_tree.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | 5.Trees/Diameter_of_a_Binary_tree.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
class node{
public:
int data;
node *left;
node *right;
node(int d){
data = d;
left = NULL;
right = NULL;
}
};
node *buildtree()
{
int d;
cin>>d;
if(d==-1){
return NULL;
}
nod... | 15.375 | 37 | 0.489837 | suraj0803 |
aa05cbfaf3eb96ad1869cb208695ad52a3864eb4 | 311 | cpp | C++ | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/os/Generic/CpuInfo.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | 16 | 2018-10-13T12:29:06.000Z | 2022-02-25T14:56:47.000Z | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/os/Generic/CpuInfo.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | 8 | 2020-03-10T23:11:09.000Z | 2020-03-14T01:19:32.000Z | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/os/Generic/CpuInfo.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | 4 | 2019-05-02T02:13:54.000Z | 2021-12-16T16:03:26.000Z | #if NET_4_0
#include "os/c-api/il2cpp-config-platforms.h"
#if !IL2CPP_PLATFORM_SUPPORTS_CPU_INFO
#include "os/CpuInfo.h"
namespace il2cpp
{
namespace os
{
void* CpuInfo::Create()
{
return NULL;
}
int32_t CpuInfo::Usage(void* previous)
{
return 0;
}
}
}
#endif
#endif
| 12.44 | 45 | 0.633441 | dngoins |
aa05ec82d254a152152b6c230b489365df8c90d4 | 2,421 | hh | C++ | gazebo/gui/building/ImportImageDialog.hh | yinnglu/gazebo | 3a5618a2a18873141e3cac734a692b778cec4fc0 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2018-07-17T00:17:13.000Z | 2020-05-26T08:39:25.000Z | gazebo/gui/building/ImportImageDialog.hh | yinnglu/gazebo | 3a5618a2a18873141e3cac734a692b778cec4fc0 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2022-02-03T18:32:35.000Z | 2022-02-03T18:32:35.000Z | gazebo/gui/building/ImportImageDialog.hh | mingfeisun/gazebo | f3eae789c738f040b8fb27c2dc16dc4c06f2495c | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2016-04-25T22:05:09.000Z | 2020-03-08T08:45:12.000Z | /*
* Copyright (C) 2014 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 28.821429 | 75 | 0.685667 | yinnglu |
aa084f7335b07efa86d9d69b593ddd70c8b219a4 | 6,372 | cpp | C++ | Based_Engine/Based_Engine/Transform.cpp | Sanmopre/Based_Engine | 2a408dc501f6357bde9872e2eef70f67295e0a3a | [
"MIT"
] | null | null | null | Based_Engine/Based_Engine/Transform.cpp | Sanmopre/Based_Engine | 2a408dc501f6357bde9872e2eef70f67295e0a3a | [
"MIT"
] | null | null | null | Based_Engine/Based_Engine/Transform.cpp | Sanmopre/Based_Engine | 2a408dc501f6357bde9872e2eef70f67295e0a3a | [
"MIT"
] | null | null | null | #include "Transform.h"
#include "GameObject.h"
#include "MeshComponent.h"
#include "Mesh.h"
Transform::Transform(GameObject* game_object)
{
object = game_object;
local_position = { 0,0,0 };
local_rotation = {0,0,0,0 };
local_scale = { 1,1,1 };
euler_rotation = local_rotation.ToEulerXYX();
euler_rotation.x = Rad... | 24.320611 | 125 | 0.761142 | Sanmopre |
aa0cf3dd12ba2471a1c7d102d8adc24ee14eb127 | 1,689 | cpp | C++ | src/_leetcode/leet_m59_1.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_m59_1.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_m59_1.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | /*
* ====================== leet_m59_1.cpp ==========================
* -- tpr --
* CREATE -- 2020.05.27
* MODIFY --
* ----------------------------------------------------------
* 面试题59 - I. 滑动窗口的最大值
*/
#inclu... | 23.136986 | 82 | 0.408526 | turesnake |
aa10ba28b24010ceb7bfa7e8b561cc048205902e | 21,584 | cpp | C++ | Test/Tools/Fault Tester/FileFunctions.cpp | SecurityInnovation/Holodeck | 54b97675a73b668f8eec8d9c8a8c7733e1a53db3 | [
"MIT"
] | 35 | 2015-05-16T06:36:47.000Z | 2021-08-31T15:32:09.000Z | Test/Tools/Fault Tester/FileFunctions.cpp | crypticterminal/Holodeck | 54b97675a73b668f8eec8d9c8a8c7733e1a53db3 | [
"MIT"
] | 3 | 2015-06-18T06:16:51.000Z | 2017-11-16T23:23:59.000Z | Test/Tools/Fault Tester/FileFunctions.cpp | crypticterminal/Holodeck | 54b97675a73b668f8eec8d9c8a8c7733e1a53db3 | [
"MIT"
] | 10 | 2015-04-07T14:45:48.000Z | 2021-11-14T15:14:45.000Z | #include "stdafx.h"
extern BOOL BOOL_VAL;
extern DWORD INT_VAL;
extern SECURITY_ATTRIBUTES GENERIC_SECURITY;
extern FILE_SEGMENT_ELEMENT GENERIC_SEGMENT_ARRAY[];
extern HANDLE GENERIC_HANDLE;
extern CHAR OUT_STRING_VAL[];
extern WCHAR WOUT_STRING_VAL[];
bool My_CopyFileA(DWORD ret, DWORD error)
{
DWORD dwRet = 20;
... | 17.062451 | 123 | 0.726742 | SecurityInnovation |
aa1aa16587335c06010ea46c4a72b2688e9b0bac | 420 | cpp | C++ | models/Image.cpp | dydil/Qtify | 118fcc3786a5fa79160f65ee0fb8623d4877aa01 | [
"MIT"
] | 1 | 2020-01-10T13:21:26.000Z | 2020-01-10T13:21:26.000Z | models/Image.cpp | dydil/Qtify | 118fcc3786a5fa79160f65ee0fb8623d4877aa01 | [
"MIT"
] | 1 | 2019-11-22T22:08:27.000Z | 2019-11-22T23:09:31.000Z | models/Image.cpp | dydil/Qtify | 118fcc3786a5fa79160f65ee0fb8623d4877aa01 | [
"MIT"
] | null | null | null | #include "Image.h"
namespace Qtify
{
Image::Image(const QJsonObject &json):
height(json["height"].toInt()),
url(json["url"].toString()),
width(json["width"].toInt())
{
}
int Image::getHeight() const
{
return height;
}
const QString &Image::getUrl() const
... | 15 | 42 | 0.519048 | dydil |
aa1bd92902de5689c92798fa11b2444b9df08dd1 | 3,793 | cpp | C++ | GeneratedFiles/Release/moc_iconList.cpp | IEEM-HsKA/Automotive-Security-Threat-Modelling-Tool | e3b2ea5a188b11aaa4bb329edcc0d3d1b47ae07b | [
"MIT"
] | 1 | 2021-12-08T13:27:22.000Z | 2021-12-08T13:27:22.000Z | GeneratedFiles/Release/moc_iconList.cpp | IEEM-HsKA/Automotive-Security-Threat-Modelling-Tool | e3b2ea5a188b11aaa4bb329edcc0d3d1b47ae07b | [
"MIT"
] | null | null | null | GeneratedFiles/Release/moc_iconList.cpp | IEEM-HsKA/Automotive-Security-Threat-Modelling-Tool | e3b2ea5a188b11aaa4bb329edcc0d3d1b47ae07b | [
"MIT"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'iconList.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.11.1)
**
** WARNING! All changes made in this file will be lost!
***********************************************************... | 31.347107 | 101 | 0.625099 | IEEM-HsKA |
aa2037f4866aaf753620ad308f80491cd66d4c00 | 918 | hpp | C++ | source/lix/exec/closure.hpp | vector-of-bool/lix | b4f590abbdc9aedc92347d3b7a33854c05f7066e | [
"MIT"
] | 2 | 2018-09-15T10:17:32.000Z | 2022-01-29T04:01:02.000Z | source/lix/exec/closure.hpp | vector-of-bool/lix | b4f590abbdc9aedc92347d3b7a33854c05f7066e | [
"MIT"
] | null | null | null | source/lix/exec/closure.hpp | vector-of-bool/lix | b4f590abbdc9aedc92347d3b7a33854c05f7066e | [
"MIT"
] | null | null | null | #ifndef LIX_EXEC_CLOSURE_HPP_INCLUDED
#define LIX_EXEC_CLOSURE_HPP_INCLUDED
#include <lix/code/code.hpp>
#include <lix/code/types.hpp>
#include <lix/value_fwd.hpp>
#include <ostream>
#include <vector>
namespace lix::exec {
class context;
class closure {
lix::code::code _code;
lix::code::iterator ... | 24.157895 | 76 | 0.654684 | vector-of-bool |
aa23e94166372b7a250b80a9613993ca71ebd1fe | 252 | cpp | C++ | VC2010Samples/ComTypeLibfor7/commap/premap.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2010Samples/ComTypeLibfor7/commap/premap.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2010Samples/ComTypeLibfor7/commap/premap.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | // premap.cpp : source file that includes just the standard includes
// premap.pch will be the pre-compiled header
// premap.obj will contain the pre-compiled type information
#include "premap.h"
#if _ATL_VER < 0x0700
#include "atlimpl.cpp"
#endif
| 25.2 | 68 | 0.753968 | alonmm |
aa261befba201d06d5289a18dba0960cc312447b | 1,998 | cpp | C++ | Final/Dataset/B2016_Z1_Z2/student5957.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z1_Z2/student5957.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z1_Z2/student5957.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | /*B 2016/2017, Zadaća 1, Zadatak 2
NAPOMENA: ulaz/izlaz za zadatke je specificiran
javnim autotestovima. Zalbe za ne analiziranje testova
se ne uvazavaju!
NAPOMENA: nece svi (javni) testovi sa zamgera biti
dostupni na c9.
*/
#include<iostream>
#include<vector>
#include<iomanip>
using std::cout;
using... | 24.365854 | 83 | 0.564565 | Team-PyRated |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.