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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
110cbef83749e4679843f96daa5e63445292da42 | 260 | cpp | C++ | Exercicios/Exercicios C - Uri #1/1017.cpp | yunger7/SENAI | 85093e0ce3ed83e50dcd570d7c42b1dda4111929 | [
"MIT"
] | 1 | 2020-09-07T12:19:27.000Z | 2020-09-07T12:19:27.000Z | Exercicios/Exercicios C - Uri #1/1017.cpp | yunger7/SENAI | 85093e0ce3ed83e50dcd570d7c42b1dda4111929 | [
"MIT"
] | null | null | null | Exercicios/Exercicios C - Uri #1/1017.cpp | yunger7/SENAI | 85093e0ce3ed83e50dcd570d7c42b1dda4111929 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int tempo, velocidade;
float distancia, litros;
scanf("%i",&tempo);
scanf("%i",&velocidade);
distancia = velocidade * tempo;
litros = distancia / 12;
printf("%.3f\n",litros);
return 0;
}
| 13.684211 | 32 | 0.642308 | yunger7 |
110f345b99483c05d0b2b793d03b326bcc2434f1 | 4,691 | hpp | C++ | common/lua_utility.hpp | dreamboy9/practice23 | e656abf1780db0c799579a110af1ab8a4594561f | [
"MIT"
] | null | null | null | common/lua_utility.hpp | dreamboy9/practice23 | e656abf1780db0c799579a110af1ab8a4594561f | [
"MIT"
] | null | null | null | common/lua_utility.hpp | dreamboy9/practice23 | e656abf1780db0c799579a110af1ab8a4594561f | [
"MIT"
] | null | null | null | #pragma once
#include <string_view>
#include "lua.hpp"
#define luaL_rawsetfield(L, tbindex, kname, valueexp)\
lua_pushliteral(L, kname);\
(valueexp);\
lua_rawset(L, tbindex);\
namespace moon
{
struct lua_scope_pop
{
lua_State* lua;
lua_scope_pop(lua_State* L)
:lua(L)
... | 24.432292 | 77 | 0.523982 | dreamboy9 |
110f635869d0498080eb5c523f907977d8780ef8 | 5,282 | cpp | C++ | datastore/common/objects/DeviceInformation.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 27 | 2017-11-04T23:58:54.000Z | 2022-03-28T14:21:50.000Z | datastore/common/objects/DeviceInformation.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 64 | 2020-03-16T19:59:43.000Z | 2022-03-18T14:49:18.000Z | datastore/common/objects/DeviceInformation.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 13 | 2019-12-01T21:32:33.000Z | 2022-03-28T15:40:02.000Z | // =============================================================================
// Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Permission is hereby grante... | 28.095745 | 80 | 0.677206 | cmwill |
11104e3546a7072757a804cc91febe90c3ff4fdd | 272,970 | cxx | C++ | PWGHF/vertexingHF/AliAnalysisTaskSEXicZero2XiPifromKFP.cxx | aschmier/AliPhysics | da5b91e5c81b2fd46596f34bf9ca9f8b7674dbae | [
"BSD-3-Clause"
] | null | null | null | PWGHF/vertexingHF/AliAnalysisTaskSEXicZero2XiPifromKFP.cxx | aschmier/AliPhysics | da5b91e5c81b2fd46596f34bf9ca9f8b7674dbae | [
"BSD-3-Clause"
] | null | null | null | PWGHF/vertexingHF/AliAnalysisTaskSEXicZero2XiPifromKFP.cxx | aschmier/AliPhysics | da5b91e5c81b2fd46596f34bf9ca9f8b7674dbae | [
"BSD-3-Clause"
] | null | null | null | /**************************************************************************
* Copyright(c) 1998-2019, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 47.990506 | 663 | 0.674715 | aschmier |
111229f6540120aaf32aae903dcd13e1ff5e0db1 | 3,979 | cc | C++ | src/speed-of-sound.cc | lelandjansen/speed-of-sound | 7fbe3716e60f0fa009ce2f30c45d7ab9f15d4c69 | [
"MIT"
] | 1 | 2019-08-04T03:15:06.000Z | 2019-08-04T03:15:06.000Z | src/speed-of-sound.cc | lelandjansen/speed-of-sound | 7fbe3716e60f0fa009ce2f30c45d7ab9f15d4c69 | [
"MIT"
] | 11 | 2016-07-24T20:28:59.000Z | 2017-12-05T01:52:26.000Z | src/speed-of-sound.cc | lelandjansen/speed-of-sound | 7fbe3716e60f0fa009ce2f30c45d7ab9f15d4c69 | [
"MIT"
] | 5 | 2017-11-03T16:46:06.000Z | 2020-07-09T08:42:57.000Z | #include "speed-of-sound.h"
namespace speedofsound {
SpeedOfSound::SpeedOfSound() { SpeedOfSound::Compute(init_environment_); }
SpeedOfSound::SpeedOfSound(const Environment& ambient_conitions)
: init_environment_(ambient_conitions),
init_speed_of_sound_(Compute(ambient_conitions)) {}
auto SpeedOfSound::Ge... | 40.191919 | 76 | 0.759236 | lelandjansen |
111247a51e364077626aa441bcc27143497376a4 | 485 | cpp | C++ | ECOP03/LAB07/FigurasGeometricas/circulo.cpp | gadfaria/unifei | bc85b8e9490845abb2cb72eb624e5a0f26cc1dc9 | [
"MIT"
] | 2 | 2020-10-26T23:22:22.000Z | 2022-03-22T23:12:17.000Z | ECOP03/LAB07/FigurasGeometricas/circulo.cpp | gadfaria/unifei | bc85b8e9490845abb2cb72eb624e5a0f26cc1dc9 | [
"MIT"
] | null | null | null | ECOP03/LAB07/FigurasGeometricas/circulo.cpp | gadfaria/unifei | bc85b8e9490845abb2cb72eb624e5a0f26cc1dc9 | [
"MIT"
] | null | null | null | #include <iostream>
#include "circulo.h"
using namespace std;
Circulo::Circulo(double xx, double yy, double r) : Ponto{xx, yy}, raio{r} {}
void Circulo::imprimeDados()
{
Ponto::imprimeDados();
cout << "Raio: " << raio << endl;
}
ostream &operator<<(ostream &out, Circulo &c)
{
out << "Origem: ( " << c.x << ", " <... | 18.653846 | 76 | 0.57732 | gadfaria |
1118acdb0a74548044410caece983d6f09a646f1 | 805 | cpp | C++ | cpp/ex01/Body.cpp | 0shimax/learn-ai-algo | 400680eae3ad421e6e6194d6d789a57f4763fdae | [
"MIT"
] | null | null | null | cpp/ex01/Body.cpp | 0shimax/learn-ai-algo | 400680eae3ad421e6e6194d6d789a57f4763fdae | [
"MIT"
] | null | null | null | cpp/ex01/Body.cpp | 0shimax/learn-ai-algo | 400680eae3ad421e6e6194d6d789a57f4763fdae | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
class Body{
public:
void pre_trace(string fname, string indicator, int x) {
char cstr[x];
strncpy(cstr, indicator.c_str(), x);
cout << cstr << x << ":" << fname << "(" << x << ")" << endl;
}
void post_trace(string fname, i... | 24.393939 | 69 | 0.49441 | 0shimax |
1118fd07f5891db3fa2427fb6b556d0e4bd21d0e | 574 | hpp | C++ | bwt/sa_accessors.hpp | pdinklag/TemplateVsVirtual | c9ab5a1158e3248013703d30415677b124c4e959 | [
"MIT"
] | null | null | null | bwt/sa_accessors.hpp | pdinklag/TemplateVsVirtual | c9ab5a1158e3248013703d30415677b124c4e959 | [
"MIT"
] | null | null | null | bwt/sa_accessors.hpp | pdinklag/TemplateVsVirtual | c9ab5a1158e3248013703d30415677b124c4e959 | [
"MIT"
] | null | null | null | #pragma once
#include "interfaces.hpp"
struct SuffixArrayAccessor_Inline {
const index_t* sa;
inline index_t operator[](const size_t i) const { return sa[i]; }
};
struct SuffixArrayAccessor_Interface : public ISuffixArrayAccess {
const index_t* sa;
inline SuffixArrayAccessor_Interface(const... | 27.333333 | 79 | 0.724739 | pdinklag |
111ccb69ccff6148acc02ff8dc9a09062e25d9ec | 801 | hpp | C++ | include/sfml/AbstractWindow.hpp | Zardoz89/dcpu_vm | 9e4555091020832d67a10dd93ef488c248f00361 | [
"MIT"
] | 3 | 2015-06-29T14:36:19.000Z | 2018-04-25T07:02:42.000Z | include/sfml/AbstractWindow.hpp | Zardoz89/dcpu_vm | 9e4555091020832d67a10dd93ef488c248f00361 | [
"MIT"
] | null | null | null | include/sfml/AbstractWindow.hpp | Zardoz89/dcpu_vm | 9e4555091020832d67a10dd93ef488c248f00361 | [
"MIT"
] | null | null | null | #ifndef ABSTRACTWINDOW_HPP_
#define ABSTRACTWINDOW_HPP_ 1
#include <SFML/Graphics.hpp>
#include <SFML/Graphics/RenderWindow.hpp>
namespace windows {
/**
* @brief Abstract class that are the base of windows used by the VM
*/
class AbstractWindow: public sf::RenderWindow {
public:
AbstractWindow() : focus(false)... | 18.627907 | 78 | 0.646692 | Zardoz89 |
112571b3933e115a2ae19f3ded74a7e5f22b7c98 | 6,247 | cpp | C++ | src/ngraph/runtime/plaidml/plaidml_pass_winograd.cpp | GBuella/ngraph | ec935c0bafc5ba8c6940d9c9dcf45ddeac487513 | [
"Apache-2.0"
] | null | null | null | src/ngraph/runtime/plaidml/plaidml_pass_winograd.cpp | GBuella/ngraph | ec935c0bafc5ba8c6940d9c9dcf45ddeac487513 | [
"Apache-2.0"
] | null | null | null | src/ngraph/runtime/plaidml/plaidml_pass_winograd.cpp | GBuella/ngraph | ec935c0bafc5ba8c6940d9c9dcf45ddeac487513 | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... | 46.274074 | 100 | 0.487434 | GBuella |
112bb7f065b2d8f9cbfd656c4c3e31a66bf73930 | 4,017 | cpp | C++ | example-texture/src/ofApp.cpp | edap/ofxLSystem | 13e9f466ab435321dda0ca7591b43b611b0e64a1 | [
"MIT"
] | 39 | 2016-04-09T19:05:17.000Z | 2021-11-27T15:10:34.000Z | example-texture/src/ofApp.cpp | yuriyoung/ofxLSystem | 95236107b4a863e14577a5c5431d6e6c0565e31e | [
"MIT"
] | 4 | 2016-04-02T04:57:52.000Z | 2017-07-08T12:59:57.000Z | example-texture/src/ofApp.cpp | yuriyoung/ofxLSystem | 95236107b4a863e14577a5c5431d6e6c0565e31e | [
"MIT"
] | 16 | 2016-06-17T01:50:28.000Z | 2021-11-21T01:32:56.000Z | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofDisableAlphaBlending();
ofEnableDepthTest();
light.enable();
light.setPosition(ofVec3f(400,300,200));
light.lookAt(ofVec3f(0,0,0));
//important, ofDisableArbText has to be called before th... | 26.427632 | 127 | 0.511327 | edap |
112c37810e3b591ffc0f07470211d14296abcc04 | 28,297 | cpp | C++ | src/optimisers/gridsearch.cpp | MaximeRobeyns/OPTK | de776f9eacd6231b5841c6d9b382fdd726065b57 | [
"ECL-2.0"
] | 1 | 2020-12-07T06:13:10.000Z | 2020-12-07T06:13:10.000Z | src/optimisers/gridsearch.cpp | MaximeRobeyns/OPTK | de776f9eacd6231b5841c6d9b382fdd726065b57 | [
"ECL-2.0"
] | null | null | null | src/optimisers/gridsearch.cpp | MaximeRobeyns/OPTK | de776f9eacd6231b5841c6d9b382fdd726065b57 | [
"ECL-2.0"
] | null | null | null | /**
* Copyright (C) 2020 Maxime Robeyns <maximerobeyns@gmail.com>
*
* Written for the ACRC, University of Bristol
*
* Licensed under the Educational Community 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
*
* h... | 32.903488 | 88 | 0.545217 | MaximeRobeyns |
1132df64219ad2f878cbca55431e2a7225608a8a | 977 | hh | C++ | app/bootstrap/common.hh | decouple/framework | 8dcb04e75660c977ed8d53b2e6e3aa7fa5ff9b95 | [
"MIT"
] | null | null | null | app/bootstrap/common.hh | decouple/framework | 8dcb04e75660c977ed8d53b2e6e3aa7fa5ff9b95 | [
"MIT"
] | null | null | null | app/bootstrap/common.hh | decouple/framework | 8dcb04e75660c977ed8d53b2e6e3aa7fa5ff9b95 | [
"MIT"
] | null | null | null | <?hh // partial
require_once "functions.hh";
$base_dir = realpath(dirname(dirname(dirname(__FILE__))));
$paths = hack_require($base_dir.'/app/config/paths.hh');
hack_require($base_dir . '/vendor/autoload.php');
use Decouple\Log\Log;
use Decouple\Registry\Registry;
use Decouple\Decoupler\Decoupler;
use Decouple\DBAL\D... | 27.138889 | 82 | 0.691914 | decouple |
1135ed0b64167fecb00496dd9ea3604d8ac9422b | 15,891 | cxx | C++ | src/mod/pub/tst/test-ffmpeg/ffmpeg/vdec-ffmpeg.cxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | 1 | 2017-12-26T14:29:37.000Z | 2017-12-26T14:29:37.000Z | src/mod/pub/tst/test-ffmpeg/ffmpeg/vdec-ffmpeg.cxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | src/mod/pub/tst/test-ffmpeg/ffmpeg/vdec-ffmpeg.cxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | #include "stdafx.hxx"
#include "vdec-ffmpeg.hxx"
#include "venc-ffmpeg.hxx"
#include "gfx.hxx"
#include "gfx-rt.hxx"
#include "gfx-shader.hxx"
#include "gfx-vxo.hxx"
#include "gfx-quad-2d.hxx"
#include "gfx-tex.hxx"
#include "gfx-util.hxx"
#include "gfx-state.hxx"
#include "gfx-camera.hxx"
#include "gfx-vxo-ext.hxx"
#... | 23.131004 | 137 | 0.582405 | indigoabstract |
113a4d52ab60fb8c042cf751ee9eb591ce5bcf74 | 904 | cpp | C++ | tests/Switch.Core.UnitTests/Switch/AsyncTest.cpp | victor-timoshin/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 4 | 2020-02-11T13:22:58.000Z | 2022-02-24T00:37:43.000Z | tests/Switch.Core.UnitTests/Switch/AsyncTest.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | null | null | null | tests/Switch.Core.UnitTests/Switch/AsyncTest.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 2 | 2020-02-01T02:19:01.000Z | 2021-12-30T06:44:00.000Z | #include <Switch/Async.hpp>
#include <gtest/gtest.h>
using namespace System;
using namespace System::Threading::Tasks;
namespace SwitchUnitTests {
TEST(AsyncTest, RunningAsyncTask) {
static string result;
result = "";
struct MyStruct {
async_(Task<>, AsyncTask, {result = "Forty two";});
};
... | 22.6 | 61 | 0.655973 | victor-timoshin |
113b784e465624723087cdf741762544f636dfca | 779 | hpp | C++ | modules/core/src/Util/gmUtilPathValidator.hpp | GraphMIC/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 43 | 2016-04-11T11:34:05.000Z | 2022-03-31T03:37:57.000Z | modules/core/src/Util/gmUtilPathValidator.hpp | kevinlq/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 1 | 2016-05-17T12:58:16.000Z | 2016-05-17T12:58:16.000Z | modules/core/src/Util/gmUtilPathValidator.hpp | kevinlq/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 14 | 2016-05-13T20:23:16.000Z | 2021-12-20T10:33:19.000Z | #pragma once
#include <QObject>
namespace gm
{
namespace Util
{
class GM_CORE_EXPORT PathValidator : public QObject
{
Q_OBJECT
Q_PROPERTY(bool pathExists READ getPathExists NOTIFY pathExistsChanged);
Q_PROPERTY(QString path READ getPath WRITE setPath NOTIFY ... | 26.862069 | 84 | 0.562259 | GraphMIC |
113da483bb2513b6c38df9e8901c1860ab01dbb7 | 595 | cpp | C++ | cpp/godot-cpp/src/gen/VisualScriptSwitch.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | 1 | 2021-03-16T09:51:00.000Z | 2021-03-16T09:51:00.000Z | cpp/godot-cpp/src/gen/VisualScriptSwitch.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | cpp/godot-cpp/src/gen/VisualScriptSwitch.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | #include "VisualScriptSwitch.hpp"
#include <core/GodotGlobal.hpp>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include <core/Godot.hpp>
#include "__icalls.hpp"
namespace godot {
VisualScriptSwitch::___method_bindings VisualScriptSwitch::___mb = {};
void VisualScriptSwitch::___init_method_bindings() ... | 22.884615 | 217 | 0.791597 | GDNative-Gradle |
113e557442b3ae780ad78c07afd2a2c70ddab17f | 1,973 | cc | C++ | VSet.cc | JoeyEremondi/treewidth-memoization | 5cd6be9e05bba189d14409f28c37805948ef11b3 | [
"BSD-3-Clause"
] | 1 | 2015-07-25T15:09:11.000Z | 2015-07-25T15:09:11.000Z | VSet.cc | JoeyEremondi/treewidth-memoization | 5cd6be9e05bba189d14409f28c37805948ef11b3 | [
"BSD-3-Clause"
] | 1 | 2015-09-19T00:44:24.000Z | 2015-09-21T16:47:12.000Z | VSet.cc | JoeyEremondi/treewidth-memoization | 5cd6be9e05bba189d14409f28c37805948ef11b3 | [
"BSD-3-Clause"
] | null | null | null | #include "VSet.hh"
#include <cstdio>
#include <cstdlib>
//TODO use bitset underneath?
int VSet::maxNumVerts = 64; //TODO sensible default?
VSet::VSet()
: bitVec(64)
{
if (maxNumVerts > 64)
{
bitVec.resize(maxNumVerts);
}
}
VSet::VSet(const Graph &G)
: bitVec(64)
{
auto iterInfo = boost::vertices(G);
if ... | 15.91129 | 74 | 0.619868 | JoeyEremondi |
113f1d495fdf8f4a228e95e5e3048cc74211adfe | 827 | cpp | C++ | test/unit/tcframe/spec/constraint/ConstraintSuiteTests.cpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 76 | 2015-03-31T01:36:17.000Z | 2021-12-29T08:16:25.000Z | test/unit/tcframe/spec/constraint/ConstraintSuiteTests.cpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 68 | 2016-11-28T18:58:26.000Z | 2018-08-10T13:33:35.000Z | test/unit/tcframe/spec/constraint/ConstraintSuiteTests.cpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 17 | 2015-04-24T03:52:32.000Z | 2022-03-11T23:28:02.000Z | #include "gmock/gmock.h"
#include "tcframe/spec/constraint/ConstraintSuite.hpp"
using ::testing::ElementsAre;
using ::testing::Test;
namespace tcframe {
class ConstraintSuiteTests : public Test {};
TEST_F(ConstraintSuiteTests, HasSubtasks_WithoutSubtasks) {
ConstraintSuite constraintSuite({Subtask(Subtask::MAI... | 29.535714 | 105 | 0.742443 | tcgen |
1140dff5dca909c91d5adafd46027a322f3c2fad | 5,027 | cc | C++ | search-perceptron-pv.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | search-perceptron-pv.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | search-perceptron-pv.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | #include "Application.hh"
#include "ChartFactory.hh"
#include "PV.hh"
APPLICATION
using namespace Permute;
// Trains a PV using perceptron updates at each position in the search
// trajectory. The --trajectory parameter in {loss, model} determines the
// search trajectory. At each position, the perceptron update m... | 30.840491 | 168 | 0.649692 | lemrobotry |
11430b125380179b2343d05baa97fabbbb757b03 | 2,231 | hpp | C++ | wav-osiloscope/src/wave-viewer.hpp | ouchiminh/wav-osilloscope | 7f4a73459e3e17beeaf118674d66f8477da988d1 | [
"MIT"
] | null | null | null | wav-osiloscope/src/wave-viewer.hpp | ouchiminh/wav-osilloscope | 7f4a73459e3e17beeaf118674d66f8477da988d1 | [
"MIT"
] | null | null | null | wav-osiloscope/src/wave-viewer.hpp | ouchiminh/wav-osilloscope | 7f4a73459e3e17beeaf118674d66f8477da988d1 | [
"MIT"
] | null | null | null | #pragma once
#include <fstream>
#include <istream>
#include <iterator>
#include <algorithm>
#include <string>
#include "SFML/Graphics.hpp"
#include "SFML/Audio.hpp"
#include "ouchilib/utl/property.hpp"
namespace ouchi {
class wave_viewer : sf::Drawable {
sf::SoundBuffer sb_;
std::vector<sf::Vertex> va_;
long long ... | 28.240506 | 181 | 0.619453 | ouchiminh |
1143b1c1e5d4c6cbf005299f86c54abafb50602a | 4,170 | cpp | C++ | src/tsessionstorefactory.cpp | xsjqqq123/treefrog-framework | da7cc2c4b277e4858ee7a6e5e7be7ce707642e00 | [
"BSD-3-Clause"
] | 1 | 2019-01-08T12:37:11.000Z | 2019-01-08T12:37:11.000Z | src/tsessionstorefactory.cpp | dragondjf/treefrog-framework | b85df01fffab5a9bab94679376ec057ebc2293f5 | [
"BSD-3-Clause"
] | null | null | null | src/tsessionstorefactory.cpp | dragondjf/treefrog-framework | b85df01fffab5a9bab94679376ec057ebc2293f5 | [
"BSD-3-Clause"
] | 2 | 2018-09-14T12:35:36.000Z | 2020-05-09T16:52:20.000Z | /* Copyright (c) 2010-2013, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include <QDir>
#include <QList>
#include <QHash>
#include <QMapIterator>
#include <QPluginLoader>
#includ... | 29.366197 | 124 | 0.6247 | xsjqqq123 |
1144d8e9b46886aadb48028a2cf585e6a29a6c15 | 2,240 | cpp | C++ | src/gmkgameinfo.cpp | DatZach/Gmk | 8888f6ee028b548064553d1f98e506bcaf79bfad | [
"MIT"
] | 2 | 2016-01-11T14:40:56.000Z | 2019-05-24T14:32:06.000Z | src/gmkgameinfo.cpp | DatZach/Gmk | 8888f6ee028b548064553d1f98e506bcaf79bfad | [
"MIT"
] | null | null | null | src/gmkgameinfo.cpp | DatZach/Gmk | 8888f6ee028b548064553d1f98e506bcaf79bfad | [
"MIT"
] | 1 | 2019-06-01T18:00:23.000Z | 2019-06-01T18:00:23.000Z | /*
* gmkgameinfo.cpp
* GMK Game Information
*/
#include <gmkgameinfo.hpp>
namespace Gmk
{
GameInformation::GameInformation(GmkFile* gmk)
: GmkResource(gmk),
backgroundColor(BuildColor(255, 255, 225)),
showInSeperateWindow(true),
caption("Game Information"),
left(-1),
top(-1),
width(600),... | 25.454545 | 75 | 0.704911 | DatZach |
11481aee7f2b97dafbf5c9067721c8cf58a4724d | 38 | cpp | C++ | GameEngine/src/Core/Layer.cpp | addictedcode/GDENG2 | 71368d7dd7b9b5ed37e64e847a614c68a735e428 | [
"Apache-2.0"
] | null | null | null | GameEngine/src/Core/Layer.cpp | addictedcode/GDENG2 | 71368d7dd7b9b5ed37e64e847a614c68a735e428 | [
"Apache-2.0"
] | null | null | null | GameEngine/src/Core/Layer.cpp | addictedcode/GDENG2 | 71368d7dd7b9b5ed37e64e847a614c68a735e428 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "Layer.h" | 19 | 19 | 0.710526 | addictedcode |
114b3f953674547cd547b89ba85b70221dc9f8c0 | 434 | hpp | C++ | example/include/ClangToolsExample.hpp | ANYbotics/cmake_clang_tools | 3d6d77cb7d846bdc6dad419bd35980fbc021171e | [
"BSD-3-Clause"
] | 3 | 2022-02-02T12:19:15.000Z | 2022-03-30T02:24:16.000Z | example/include/ClangToolsExample.hpp | ANYbotics/cmake_clang_tools | 3d6d77cb7d846bdc6dad419bd35980fbc021171e | [
"BSD-3-Clause"
] | 1 | 2022-02-20T14:11:13.000Z | 2022-02-28T08:53:28.000Z | example/include/ClangToolsExample.hpp | ANYbotics/cmake_clang_tools | 3d6d77cb7d846bdc6dad419bd35980fbc021171e | [
"BSD-3-Clause"
] | 2 | 2021-06-09T10:24:07.000Z | 2022-03-30T02:24:24.000Z | /*!
* @file ClangToolsExample.hpp
* @author Gabriel Hottiger
* @date Feb, 2018
* @version 0.0
*
*/
#pragma once
namespace allWrong {
class ClangToolsExample {
// Not default constructor
ClangToolsExample() { }
// Horrible function
int horribleFunction(const int& input);
// Wrong function na... | 13.5625 | 41 | 0.668203 | ANYbotics |
114d2eed5749f8665e1046a3270176c6e78fa002 | 13,834 | cpp | C++ | public/include/XMPCore/source/INode.cpp | colaub/XMP-Toolkit-SDK | 9e23134de315a4c5c9f00138d6c9e5e46d4ecb6a | [
"BSD-3-Clause"
] | 1 | 2020-06-26T02:37:27.000Z | 2020-06-26T02:37:27.000Z | public/include/XMPCore/source/INode.cpp | colaub/XMP-Toolkit-SDK | 9e23134de315a4c5c9f00138d6c9e5e46d4ecb6a | [
"BSD-3-Clause"
] | 1 | 2021-02-23T11:31:21.000Z | 2021-02-23T11:31:21.000Z | public/include/XMPCore/source/INode.cpp | colaub/XMP-Toolkit-SDK | 9e23134de315a4c5c9f00138d6c9e5e46d4ecb6a | [
"BSD-3-Clause"
] | 1 | 2021-06-08T06:31:10.000Z | 2021-06-08T06:31:10.000Z | // =================================================================================================
// Copyright Adobe
// Copyright 2015 Adobe
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe license agreement accompanying it.... | 36.405263 | 177 | 0.747723 | colaub |
115b7a19265b0d36943dcbaaf731b7a28259d585 | 11,131 | cpp | C++ | tests/utilities/rel_helper.cpp | zanmato1984/cura | 0d6ff23bb3f6456911cf1e9dc34754173e7652ed | [
"Apache-2.0"
] | 29 | 2020-08-10T03:44:05.000Z | 2022-01-29T16:19:32.000Z | tests/utilities/rel_helper.cpp | zanmato1984/cura | 0d6ff23bb3f6456911cf1e9dc34754173e7652ed | [
"Apache-2.0"
] | 8 | 2020-08-10T03:54:54.000Z | 2022-02-15T04:11:01.000Z | tests/utilities/rel_helper.cpp | zanmato1984/cura | 0d6ff23bb3f6456911cf1e9dc34754173e7652ed | [
"Apache-2.0"
] | 11 | 2020-10-10T09:52:52.000Z | 2022-01-20T01:58:26.000Z | #include "rel_helper.h"
#include "cura/expression/aggregation.h"
#include "cura/expression/binary_op.h"
#include "cura/expression/expressions.h"
#include "cura/expression/literal.h"
#include "cura/expression/ti_unary_op.h"
#include "cura/expression/unary_op.h"
#include <rapidjson/document.h>
#include <rapidjson/string... | 33.326347 | 79 | 0.673075 | zanmato1984 |
115c32e047e908f891688b75211d1235c2a9d216 | 830 | cpp | C++ | tao/x11/portable_server/servant_manager_cb.cpp | ClausKlein/taox11 | 669cfd2d0be258722c7ee32b23f2e5cb83e4520f | [
"MIT"
] | 20 | 2019-11-13T12:31:20.000Z | 2022-02-27T12:30:39.000Z | tao/x11/portable_server/servant_manager_cb.cpp | ClausKlein/taox11 | 669cfd2d0be258722c7ee32b23f2e5cb83e4520f | [
"MIT"
] | 46 | 2019-11-15T20:40:18.000Z | 2022-03-31T19:04:36.000Z | tao/x11/portable_server/servant_manager_cb.cpp | ClausKlein/taox11 | 669cfd2d0be258722c7ee32b23f2e5cb83e4520f | [
"MIT"
] | 5 | 2019-11-12T15:00:50.000Z | 2022-01-17T17:33:05.000Z | /**
* @file servant_manager_cb.cpp
* @author Marcel Smit
*
* @brief CORBA C++11 POA implementations
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
#include "tao/x11/portable_server/portableserver_proxies.h"
#include "tao/x11/portable_server/servant_manager_cb.h"
#if (TAO_HAS_MINIMUM_POA == 0) && ... | 23.714286 | 88 | 0.707229 | ClausKlein |
11607d86bf7f8beaeff285eda4b84012cc907af0 | 11,079 | hxx | C++ | opencascade/OpenGl_PBREnvironment.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/OpenGl_PBREnvironment.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/OpenGl_PBREnvironment.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Author: Ilya Khramov
// Copyright (c) 2019 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software F... | 50.589041 | 156 | 0.696994 | mgreminger |
1167009afda7a07b716c205160288370c3227d9c | 9,927 | cpp | C++ | src/apps/mplayerc/OpenDlg.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | src/apps/mplayerc/OpenDlg.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | 1 | 2019-11-14T04:18:32.000Z | 2019-11-14T04:18:32.000Z | src/apps/mplayerc/OpenDlg.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | /*
* $Id: OpenDlg.cpp 2756 2013-05-21 23:37:13Z exodus8 $
*
* (C) 2003-2006 Gabest
* (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE 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 Foun... | 23.248244 | 126 | 0.70827 | chinajeffery |
1167ba2b69b1cc953d9f00cfd3f903f96163a0ab | 9,591 | cpp | C++ | src/gl/opengl/vcGLState.cpp | zengweicheng666/vaultclient | 7b2c929bf5d77f98e9414765520e84cdd9ac8dc8 | [
"MIT"
] | 1 | 2020-07-15T14:05:34.000Z | 2020-07-15T14:05:34.000Z | src/gl/opengl/vcGLState.cpp | zengweicheng666/vaultclient | 7b2c929bf5d77f98e9414765520e84cdd9ac8dc8 | [
"MIT"
] | null | null | null | src/gl/opengl/vcGLState.cpp | zengweicheng666/vaultclient | 7b2c929bf5d77f98e9414765520e84cdd9ac8dc8 | [
"MIT"
] | null | null | null | #include "vcOpenGL.h"
#include "SDL2/SDL.h"
#include "SDL2/SDL_syswm.h"
static vcGLState s_internalState;
vcFramebuffer g_defaultFramebuffer;
int32_t g_maxAnisotropy = 0;
static const GLenum vcGLSSOPToGL[] = { GL_KEEP, GL_ZERO, GL_REPLACE, GL_INCR, GL_DECR };
UDCOMPILEASSERT(udLengthOf(vcGLSSOPToGL) == vcGLSSOP_Total... | 30.93871 | 245 | 0.740486 | zengweicheng666 |
1167d148c83b3ee64b8cd65146a2e5ea2a0ebb38 | 326 | hpp | C++ | src/star.hpp | sndtkrh/ssgen | 4ef024a47f2c1f21fbc711670f0956dedec8ce19 | [
"MIT"
] | null | null | null | src/star.hpp | sndtkrh/ssgen | 4ef024a47f2c1f21fbc711670f0956dedec8ce19 | [
"MIT"
] | null | null | null | src/star.hpp | sndtkrh/ssgen | 4ef024a47f2c1f21fbc711670f0956dedec8ce19 | [
"MIT"
] | null | null | null |
constexpr double PI = 3.14159265358979323846;
struct Star{
int HIPnumber;
double ra, dec; // radian
double magnitude;
Star();
Star( int n, double ra_deg, double dec_deg, double magnitude )
: HIPnumber(n), magnitude(magnitude) {
ra = 2 * PI * (ra_deg / 360.0);
dec = 2 * PI * (dec_deg / 360.0);
... | 21.733333 | 64 | 0.625767 | sndtkrh |
116a2d64fe708e9dcb028f1c278cc01f525b870f | 623 | cpp | C++ | c++/Count Primes/Count Primes.cpp | tonardo2015/leetcode | 02e659f0415158b02f1e9cdb3f63ac0870b109af | [
"MIT"
] | null | null | null | c++/Count Primes/Count Primes.cpp | tonardo2015/leetcode | 02e659f0415158b02f1e9cdb3f63ac0870b109af | [
"MIT"
] | null | null | null | c++/Count Primes/Count Primes.cpp | tonardo2015/leetcode | 02e659f0415158b02f1e9cdb3f63ac0870b109af | [
"MIT"
] | null | null | null | /*
这道题可以用埃氏筛法来做
简单来讲就是如果我们找到一个素数,那么他的倍数一定就是合数
那么我们在找到一个素数之后就把它的倍数都筛掉就可以了
*/
class Solution {
public:
int countPrimes(int n) {
typedef long long ll;
int *isprime = new int[n + 1];
for(int i = 2;i < n;i++) isprime[i] = 1;
int res = 0;
for(int i = 2;i < n;i++){
... | 23.074074 | 100 | 0.436597 | tonardo2015 |
116a7d1cacc7a4bae9d0f6f2bf97645ddc5c14cb | 22,504 | cpp | C++ | Marlin/ServerEventDriver.cpp | zYg-sys/Marlin | eeabb4d324c5f8d253a50c106208bb833cb824e8 | [
"MIT"
] | 23 | 2016-09-16T11:25:54.000Z | 2022-03-03T07:18:57.000Z | Marlin/ServerEventDriver.cpp | zYg-sys/Marlin | eeabb4d324c5f8d253a50c106208bb833cb824e8 | [
"MIT"
] | 26 | 2016-10-21T11:07:54.000Z | 2022-03-05T18:27:03.000Z | Marlin/ServerEventDriver.cpp | zYg-sys/Marlin | eeabb4d324c5f8d253a50c106208bb833cb824e8 | [
"MIT"
] | 7 | 2018-09-11T12:17:46.000Z | 2021-07-08T09:10:04.000Z | /////////////////////////////////////////////////////////////////////////////////
//
// SourceFile: ServerEventDriver.cpp
//
// Marlin Server: Internet server/client
//
// Copyright (c) 2014-2021 ir. W.E. Huisman
// All rights reserved
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
... | 26.382181 | 134 | 0.677968 | zYg-sys |
11716406e651ea191b32fad800f6940bb820c274 | 4,012 | cpp | C++ | Source/Drivers/DS325/DriverImpl/IRDS325Stream.cpp | briannydegger/openni2ds325 | 7943cfd6581582b07caae5b162c6b5c6213ff947 | [
"Apache-2.0"
] | 8 | 2015-02-14T21:58:46.000Z | 2021-07-11T20:41:58.000Z | Source/Drivers/DS325/DriverImpl/IRDS325Stream.cpp | briannydegger/openni2ds325 | 7943cfd6581582b07caae5b162c6b5c6213ff947 | [
"Apache-2.0"
] | null | null | null | Source/Drivers/DS325/DriverImpl/IRDS325Stream.cpp | briannydegger/openni2ds325 | 7943cfd6581582b07caae5b162c6b5c6213ff947 | [
"Apache-2.0"
] | 8 | 2015-02-03T21:31:26.000Z | 2017-02-27T00:14:20.000Z | /*****************************************************************************
* *
* OpenNI 2.x *
* Copyright (C) 2012 PrimeSense Ltd. *
* C... | 34.290598 | 115 | 0.56331 | briannydegger |
11734b65f055b645bbbc6d9cac932421725e3a3d | 2,417 | hpp | C++ | include/elemental/graphics/Display.hpp | ahmadia/Elemental-1 | f9a82c76a06728e9e04a4316e41803efbadb5a19 | [
"BSD-3-Clause"
] | null | null | null | include/elemental/graphics/Display.hpp | ahmadia/Elemental-1 | f9a82c76a06728e9e04a4316e41803efbadb5a19 | [
"BSD-3-Clause"
] | null | null | null | include/elemental/graphics/Display.hpp | ahmadia/Elemental-1 | f9a82c76a06728e9e04a4316e41803efbadb5a19 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2009-2013, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#pragma once
#ifndef GRAPHICS_DISPLAY_HPP
#define GRAPH... | 29.120482 | 79 | 0.679355 | ahmadia |
1173791533bb2eb6f4c72edb1a6af345493b5116 | 428 | cpp | C++ | src/ProtoTools.cpp | JerrySievert/ProtoTools | e707876c937cb82a791200ce7152820d71d08b8f | [
"CC0-1.0"
] | 9 | 2018-11-29T05:12:19.000Z | 2021-05-07T23:50:15.000Z | src/ProtoTools.cpp | JerrySievert/ProtoTools | e707876c937cb82a791200ce7152820d71d08b8f | [
"CC0-1.0"
] | null | null | null | src/ProtoTools.cpp | JerrySievert/ProtoTools | e707876c937cb82a791200ce7152820d71d08b8f | [
"CC0-1.0"
] | 1 | 2018-10-31T16:10:34.000Z | 2018-10-31T16:10:34.000Z | #include "ProtoTools.hpp"
// The plugin-wide instance of the Plugin class
Plugin *plugin;
void init(rack::Plugin *p) {
plugin = p;
// This is the unique identifier for your plugin
p->slug = TOSTRING(SLUG);
p->version = TOSTRING(VERSION);
p->website = "https://github.com/JerrySievert/ProtoTools";
p->manual... | 26.75 | 86 | 0.707944 | JerrySievert |
1173dd5ee2330ebe68560aaec39f0809b49812f5 | 1,509 | cpp | C++ | SubFunctionsTest.cpp | Boid-team/Boid | 944350fa72cd6a0ce6332ec9b5320fa0691a91dd | [
"MIT"
] | null | null | null | SubFunctionsTest.cpp | Boid-team/Boid | 944350fa72cd6a0ce6332ec9b5320fa0691a91dd | [
"MIT"
] | null | null | null | SubFunctionsTest.cpp | Boid-team/Boid | 944350fa72cd6a0ce6332ec9b5320fa0691a91dd | [
"MIT"
] | null | null | null | #include <iostream>
#include <ncurses.h>
#include <stdlib.h>
#include <time.h>
#include <string>
#include <sstream>
#include "Object.h"
#include "Bird.h"
#include "Functions.cpp"
using namespace std;
int main(){
srand(time(NULL));
Object *array = new Bird[5];
//get average x position of bird array of 4 b... | 27.436364 | 142 | 0.572565 | Boid-team |
11744f6913e7668462543521f036d4beeab1bb22 | 868 | cpp | C++ | src/coherence/component/net/extend/protocol/cache/RemoveAllRequest.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | src/coherence/component/net/extend/protocol/cache/RemoveAllRequest.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | src/coherence/component/net/extend/protocol/cache/RemoveAllRequest.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "private/coherence/component/net/extend/protocol/cache/RemoveAllRequest.hpp"
COH_OPEN_NAMESPACE6(coherence,component,net,extend,proto... | 24.8 | 85 | 0.580645 | chpatel3 |
11756f341d4eca0e6628178adc267229a4e2ca6f | 4,754 | hpp | C++ | examples/hal/HalTest1.hpp | RicoPauli/eeros | 3cc2802253c764b16c6368ad7bdaef1e3c683367 | [
"Apache-2.0"
] | null | null | null | examples/hal/HalTest1.hpp | RicoPauli/eeros | 3cc2802253c764b16c6368ad7bdaef1e3c683367 | [
"Apache-2.0"
] | null | null | null | examples/hal/HalTest1.hpp | RicoPauli/eeros | 3cc2802253c764b16c6368ad7bdaef1e3c683367 | [
"Apache-2.0"
] | null | null | null | #ifndef ORG_EEROS_HALTEST1_HPP_
#define ORG_EEROS_HALTEST1_HPP_
#include <eeros/control/PeripheralOutput.hpp>
#include <eeros/control/PeripheralInput.hpp>
#include <eeros/control/Constant.hpp>
#include <eeros/control/TimeDomain.hpp>
#include <eeros/safety/SafetySystem.hpp>
#include <eeros/hal/HAL.hpp>
#include <eeros/... | 30.474359 | 174 | 0.717501 | RicoPauli |
11758a328c7d57b698421fed2fa4fa74c7e59a41 | 2,373 | cpp | C++ | Userland/Libraries/LibCore/DirIterator.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 19,438 | 2019-05-20T15:11:11.000Z | 2022-03-31T23:31:32.000Z | Userland/Libraries/LibCore/DirIterator.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 7,882 | 2019-05-20T01:03:52.000Z | 2022-03-31T23:26:31.000Z | Userland/Libraries/LibCore/DirIterator.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 2,721 | 2019-05-23T00:44:57.000Z | 2022-03-31T22:49:34.000Z | /*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Vector.h>
#include <LibCore/DirIterator.h>
#include <errno.h>
#include <unistd.h>
namespace Core {
DirIterator::DirIterator(String path, Flags flags)
: m_path(move(path))
, m_flags... | 18.984 | 87 | 0.570164 | r00ster91 |
117be2749399d4527e32b1f6970e08d6f4c3eb0d | 12,480 | cpp | C++ | android-31/android/text/TextUtils.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/text/TextUtils.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/text/TextUtils.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JCharArray.hpp"
#include "../../JArray.hpp"
#include "../../JObjectArray.hpp"
#include "../../JArray.hpp"
#include "../content/Context.hpp"
#include "../os/Parcel.hpp"
#include "./TextPaint.hpp"
#include "./TextUtils_TruncateAt.hpp"
#include "../../JString.hpp"
#include "../../JClass.hpp"
#include "../.... | 24.518664 | 159 | 0.691667 | YJBeetle |
117dd979fdd6c3a019bca848c8285a73c0002884 | 4,116 | cpp | C++ | test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/owner_less.pass.cpp | hfinkel/libcxx-bgq | e5e6eadd144e011ef82c17ae8da9e5f91f9d2df8 | [
"MIT"
] | null | null | null | test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/owner_less.pass.cpp | hfinkel/libcxx-bgq | e5e6eadd144e011ef82c17ae8da9e5f91f9d2df8 | [
"MIT"
] | null | null | null | test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/owner_less.pass.cpp | hfinkel/libcxx-bgq | e5e6eadd144e011ef82c17ae8da9e5f91f9d2df8 | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 30.947368 | 94 | 0.588678 | hfinkel |
117ddb04bb0e492081d555cc2051b6527ad53ff0 | 1,597 | cpp | C++ | BinarySearchTree/isBST.cpp | rt1599/algorithms | 4bce9649875af5d1a99ca2365a76cf07021be4d4 | [
"MIT"
] | 472 | 2018-05-25T06:45:44.000Z | 2020-01-06T15:46:09.000Z | BinarySearchTree/isBST.cpp | rt1599/algorithms | 4bce9649875af5d1a99ca2365a76cf07021be4d4 | [
"MIT"
] | 6 | 2020-01-25T22:22:44.000Z | 2021-06-01T04:53:25.000Z | BinarySearchTree/isBST.cpp | rt1599/algorithms | 4bce9649875af5d1a99ca2365a76cf07021be4d4 | [
"MIT"
] | 44 | 2019-03-02T07:38:38.000Z | 2020-01-01T16:05:06.000Z | /**
* check whether the given binary tree is Binary Search Tree or not.
*/
#include <iostream>
#include <limits>
#include "BST/BST.hpp"
/* Function Declarations */
bool isBST(Node* root);
bool isBSTUtil(Node* root, int minValue, int maxValue);
/* Main Operational Function */
int main()
{
BST tree1;
int origi... | 25.758065 | 68 | 0.6268 | rt1599 |
1181769f292df0e236aeed96b90b2d891a6e77e3 | 16,171 | cpp | C++ | cvs/objects/util/base/source/interpolation_rule.cpp | Sh1Yi/gcam-core | aa652d0648d698d9fc8e76bb2c9c07d6763282e7 | [
"ECL-2.0"
] | 157 | 2016-10-13T17:44:11.000Z | 2022-03-30T09:34:50.000Z | cvs/objects/util/base/source/interpolation_rule.cpp | Sh1Yi/gcam-core | aa652d0648d698d9fc8e76bb2c9c07d6763282e7 | [
"ECL-2.0"
] | 190 | 2016-10-13T20:19:10.000Z | 2022-03-25T19:17:05.000Z | cvs/objects/util/base/source/interpolation_rule.cpp | Sh1Yi/gcam-core | aa652d0648d698d9fc8e76bb2c9c07d6763282e7 | [
"ECL-2.0"
] | 95 | 2016-10-13T17:44:44.000Z | 2022-03-28T02:10:52.000Z | /*
* LEGAL NOTICE
* This computer software was prepared by Battelle Memorial Institute,
* hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830
* with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE
* CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
* LIABILITY FOR THE USE OF... | 42.111979 | 124 | 0.633974 | Sh1Yi |
1181dac6b36688b0aedcccdc596cef44a3cb2bb5 | 3,514 | cpp | C++ | HFClib sources/Src/Crypting.cpp | quachdnguyen/locate-src | 14b702aa797efd7758c232ba8e83e63101a80524 | [
"BSD-3-Clause"
] | null | null | null | HFClib sources/Src/Crypting.cpp | quachdnguyen/locate-src | 14b702aa797efd7758c232ba8e83e63101a80524 | [
"BSD-3-Clause"
] | null | null | null | HFClib sources/Src/Crypting.cpp | quachdnguyen/locate-src | 14b702aa797efd7758c232ba8e83e63101a80524 | [
"BSD-3-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////////////
// HFC Library - Copyright (C) 1999-2008 Janne Huttunen
////////////////////////////////////////////////////////////////////
#include "HFCLib.h"
namespace Crypt // Implementation
{
UINT EnCrypt(const PUCHAR szSrc,DWORD nDataLen,PUCHAR szDst,DWORD... | 32.841121 | 154 | 0.607285 | quachdnguyen |
1182e3ebf814f446a1b2b896a5e30af0c1c802be | 2,871 | cpp | C++ | eagleye_util/fix2kml/src/fix2kml.cpp | Takumi-Ukai/eagleye | 7dedf982b30fcdbd1235aac370550a6caf19b984 | [
"BSD-3-Clause"
] | null | null | null | eagleye_util/fix2kml/src/fix2kml.cpp | Takumi-Ukai/eagleye | 7dedf982b30fcdbd1235aac370550a6caf19b984 | [
"BSD-3-Clause"
] | null | null | null | eagleye_util/fix2kml/src/fix2kml.cpp | Takumi-Ukai/eagleye | 7dedf982b30fcdbd1235aac370550a6caf19b984 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019, Map IV, Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and... | 38.28 | 122 | 0.749216 | Takumi-Ukai |
11842c29404adeb6eb837869305d0c9b91dd4c22 | 9,914 | cpp | C++ | src/loader/Config.cpp | Archomeda/gw2-addon-loader | 700782c4d97c40fd3fbeff23e4df49ba5b5e3d97 | [
"MIT"
] | 12 | 2018-03-21T13:48:38.000Z | 2021-08-05T22:14:50.000Z | src/loader/Config.cpp | megai2/gw2-addon-loader | 91f23075f19ca0cde3c38104b85e311a1644e273 | [
"MIT"
] | 2 | 2019-01-31T22:32:38.000Z | 2021-02-23T17:12:39.000Z | src/loader/Config.cpp | Archomeda/gw2-addon-loader | 700782c4d97c40fd3fbeff23e4df49ba5b5e3d97 | [
"MIT"
] | 5 | 2019-05-07T19:53:14.000Z | 2019-09-27T22:30:24.000Z | #include "Config.h"
#include "globals.h"
#include "log.h"
#include "addons/Addon.h"
#include "addons/addons_manager.h"
#include "utils/encoding.h"
#include "utils/file.h"
using namespace std;
using namespace std::filesystem;
using namespace loader::addons;
using namespace loader::utils;
namespace loader {
Config... | 38.130769 | 146 | 0.615796 | Archomeda |
1186fe3f2aa85b73e2acb5e9e7765297fc51bb43 | 764 | cpp | C++ | C++/SetParameters.cpp | Izhido/MiniVideoCard | bcfe5a979d8cdcaf9d5a438798e58eca4fbaa1b0 | [
"MIT"
] | 1 | 2017-05-12T15:21:00.000Z | 2017-05-12T15:21:00.000Z | C++/SetParameters.cpp | Izhido/MiniVideoCard | bcfe5a979d8cdcaf9d5a438798e58eca4fbaa1b0 | [
"MIT"
] | null | null | null | C++/SetParameters.cpp | Izhido/MiniVideoCard | bcfe5a979d8cdcaf9d5a438798e58eca4fbaa1b0 | [
"MIT"
] | null | null | null | //
// SetParameters.cpp
// MiniVideoCard
//
// Created by Heriberto Delgado on 4/23/17.
// Copyright © 2017 Heriberto Delgado. All rights reserved.
//
#include "SetParameters.h"
#include "Parameters.h"
namespace MiniVideoCard
{
SetParameters::SetParameters()
{
this->parameters = nullptr;
t... | 19.589744 | 83 | 0.615183 | Izhido |
11881a7cc3d3fc01b7810058160ef614dc0bdf2b | 4,885 | cpp | C++ | test/unit/semantic/CheckAssignableTest.cpp | jlt3fw/oralreportpractice | fb6ae5366cf5b45bc1d5c08f00f97bee38909fcc | [
"MIT"
] | null | null | null | test/unit/semantic/CheckAssignableTest.cpp | jlt3fw/oralreportpractice | fb6ae5366cf5b45bc1d5c08f00f97bee38909fcc | [
"MIT"
] | null | null | null | test/unit/semantic/CheckAssignableTest.cpp | jlt3fw/oralreportpractice | fb6ae5366cf5b45bc1d5c08f00f97bee38909fcc | [
"MIT"
] | null | null | null | #include "ASTHelper.h"
#include "CheckAssignable.h"
#include "SemanticError.h"
#include "ExceptionContainsWhat.h"
#include <catch2/catch_test_macros.hpp>
#include <iostream>
TEST_CASE("Check Assignable: variable lhs", "[Symbol]") {
std::stringstream stream;
stream << R"(varlhs() { var x; x = 1; return 0; })"... | 39.08 | 117 | 0.596315 | jlt3fw |
11886e301e81eb26a2b68b0e246f611ec25d4b81 | 1,129 | cpp | C++ | codechef/ISCC2018/t22.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codechef/ISCC2018/t22.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codechef/ISCC2018/t22.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstring>
# define N 101
using namespace std;
bool prime[N];
void SieveOfEratosthenes()
{
// Create a boolean array "prime[0..n]" and initialize
// all entries it as true. A value in prime[i] will
// finally be false if i is Not a prime, else true.
memset(prime, true, size... | 17.920635 | 58 | 0.503986 | udayan14 |
118e1c6f6858b5ae07eeeb820e743c0684ab6202 | 3,137 | cpp | C++ | Visual Mercutio/zSOAP/PSS_SoapPublisher_ModelAttributes.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zSOAP/PSS_SoapPublisher_ModelAttributes.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zSOAP/PSS_SoapPublisher_ModelAttributes.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_SoapPublisher_ModelAttributes -----------------------------------*
****************************************************************************
* Description : SOAP protocol to publish the model attributes *
* Devel... | 35.647727 | 115 | 0.471151 | Jeanmilost |
118ea497c12a4fb77c58fd7d20a0ef72a200e7f0 | 112 | cpp | C++ | toolsets/test/main.cpp | PenguinLemma/evoke | 813c17ffdcacaf00467fa81722b7b9bdfb4827c7 | [
"Apache-2.0"
] | 150 | 2018-09-28T16:58:05.000Z | 2022-02-16T01:39:29.000Z | toolsets/test/main.cpp | PenguinLemma/evoke | 813c17ffdcacaf00467fa81722b7b9bdfb4827c7 | [
"Apache-2.0"
] | 78 | 2018-10-02T15:21:17.000Z | 2022-01-09T12:50:50.000Z | toolsets/test/main.cpp | PenguinLemma/evoke | 813c17ffdcacaf00467fa81722b7b9bdfb4827c7 | [
"Apache-2.0"
] | 26 | 2018-09-29T05:36:37.000Z | 2022-01-10T13:45:33.000Z | #define BOOST_TEST_MODULE Evoke_toolsets
#include <boost/test/included/unit_test.hpp>
// this is main for test
| 22.4 | 44 | 0.803571 | PenguinLemma |
118f2dc600b2900c88ed58fb53d4f0802e2ab5d3 | 3,093 | cc | C++ | test/user_profile_storage_test.cc | rainerdun/recomm_engine | 8433150fc25d4af83253250b2c4cd18a269e796c | [
"MIT"
] | 7 | 2016-01-14T15:53:59.000Z | 2021-08-25T03:47:10.000Z | test/user_profile_storage_test.cc | BaiGang/recomm_engine | 8433150fc25d4af83253250b2c4cd18a269e796c | [
"MIT"
] | null | null | null | test/user_profile_storage_test.cc | BaiGang/recomm_engine | 8433150fc25d4af83253250b2c4cd18a269e796c | [
"MIT"
] | 9 | 2015-04-14T10:18:46.000Z | 2018-12-20T08:18:21.000Z | #include <string>
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/filesystem.hpp>
#include "gtest.h"
#include "user_profile_storage.h"
#include "recomm_engine_types.h"
#include "city.h"
#include "common.h"
#define USER_NUM 5
#define KEYWORD_NUM 10
#define TOPIC_NUM 160
namespace recomm... | 32.21875 | 91 | 0.62011 | rainerdun |
119245d51bcbd7801459d93d7f7539898d06a25f | 940 | cpp | C++ | codeforces/contests/round/673-div2/d.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | codeforces/contests/round/673-div2/d.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | codeforces/contests/round/673-div2/d.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
int32_t main(){
desync();
int t;
cin >> t;
while(t--){
int n;
cin >> n;
int sum = 0;
vi arr(n);
for(int &i:arr){
cin >> i;
sum += i;
}
if(sum%n){
cout << -1 << endl;
con... | 20 | 54 | 0.302128 | tysm |
11942e75b8182699aa4f860255def639682e1754 | 1,035 | cpp | C++ | design_patterns/behavioral/template-method/c++/template.cpp | artbobrov/algorithms_and_data_structures | 799d301169da9f8507f8bb324859f9041caf1622 | [
"MIT"
] | null | null | null | design_patterns/behavioral/template-method/c++/template.cpp | artbobrov/algorithms_and_data_structures | 799d301169da9f8507f8bb324859f9041caf1622 | [
"MIT"
] | null | null | null | design_patterns/behavioral/template-method/c++/template.cpp | artbobrov/algorithms_and_data_structures | 799d301169da9f8507f8bb324859f9041caf1622 | [
"MIT"
] | 1 | 2021-03-08T14:22:51.000Z | 2021-03-08T14:22:51.000Z | #include <iostream>
class AbstractClass {
public:
virtual void TemplateMethod() {
primitiveOperation1();
primitiveOperation2();
}
virtual ~AbstractClass() = default;
protected:
virtual void primitiveOperation1() = 0;
virtual void primitiveOperation2() = 0;
AbstractClass() = default;
};
class ConcreteClass1... | 21.122449 | 66 | 0.720773 | artbobrov |
11951490df7111806ea5fc16bb43e92e84e98e1d | 565 | cpp | C++ | test/ut_zero_and_one.cpp | matazure/mtensor | 4289284b201cb09ed1dfc49f44d6738751affd63 | [
"MIT"
] | 82 | 2020-04-11T09:33:36.000Z | 2022-03-23T03:47:25.000Z | test/ut_zero_and_one.cpp | Lexxos/mtensor | feb120923dad3fb4ae3b31dd09931622a63c3d06 | [
"MIT"
] | 28 | 2017-04-26T17:12:35.000Z | 2019-04-08T04:05:24.000Z | test/ut_zero_and_one.cpp | Lexxos/mtensor | feb120923dad3fb4ae3b31dd09931622a63c3d06 | [
"MIT"
] | 22 | 2017-01-10T14:57:29.000Z | 2019-12-17T08:55:59.000Z | #include "ut_foundation.hpp"
TEST(ZeroAndOneTests, Point) {
auto tmp = zero<point<float, 4>>::value();
ASSERT_FLOAT_EQ(0.0f, tmp[0]);
ASSERT_FLOAT_EQ(0.0f, tmp[1]);
ASSERT_FLOAT_EQ(0.0f, tmp[2]);
ASSERT_FLOAT_EQ(0.0f, tmp[3]);
}
#ifdef __GNUC__
TEST(ZeroAndOneTests, AttributeVector) {
typedef ... | 28.25 | 61 | 0.665487 | matazure |
1195a682142e3a419d6978162cb49926c9740aa5 | 3,364 | cpp | C++ | FECore/FEModelData.cpp | AlexandraAllan23/FEBio | c94a1c30e0bae5f285c0daae40a7e893e63cff3c | [
"MIT"
] | 59 | 2020-06-15T12:38:49.000Z | 2022-03-29T19:14:47.000Z | FECore/FEModelData.cpp | AlexandraAllan23/FEBio | c94a1c30e0bae5f285c0daae40a7e893e63cff3c | [
"MIT"
] | 36 | 2020-06-14T21:10:01.000Z | 2022-03-12T12:03:14.000Z | FECore/FEModelData.cpp | AlexandraAllan23/FEBio | c94a1c30e0bae5f285c0daae40a7e893e63cff3c | [
"MIT"
] | 26 | 2020-06-25T15:02:13.000Z | 2022-03-10T09:14:03.000Z | /*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obtaining ... | 25.679389 | 96 | 0.657253 | AlexandraAllan23 |
11995373d0805ed2cec54eaec257cb5743cd6c4e | 165 | cpp | C++ | AppObject.cpp | hsiaoairplane/3d-watermark-lsd | 168df211b579fafc77a9bccba6ed54ae30a0ee23 | [
"MIT"
] | 1 | 2018-07-20T02:44:11.000Z | 2018-07-20T02:44:11.000Z | AppObject.cpp | hsiaoairplane/3d-watermark-lsd | 168df211b579fafc77a9bccba6ed54ae30a0ee23 | [
"MIT"
] | null | null | null | AppObject.cpp | hsiaoairplane/3d-watermark-lsd | 168df211b579fafc77a9bccba6ed54ae30a0ee23 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "AppObject.h"
#include <QGLViewer/qglviewer.h>
#include <QtGlobal>
#include "WorldManager.h"
using namespace qglviewer;
| 13.75 | 33 | 0.69697 | hsiaoairplane |
119d38aaa1d62437c2b2fe9179df3b671f3ff4ba | 5,042 | cpp | C++ | source/emulator/src/Config.cpp | InoriRus/Kyty | 1aa7cf72ce598ee4ca31edc63f5b9708d629c69d | [
"MIT"
] | 76 | 2021-11-13T13:07:59.000Z | 2022-03-22T11:35:29.000Z | source/emulator/src/Config.cpp | InoriRus/Kyty | 1aa7cf72ce598ee4ca31edc63f5b9708d629c69d | [
"MIT"
] | 7 | 2021-12-01T18:45:13.000Z | 2022-03-26T18:34:33.000Z | source/emulator/src/Config.cpp | InoriRus/Kyty | 1aa7cf72ce598ee4ca31edc63f5b9708d629c69d | [
"MIT"
] | 9 | 2021-11-24T08:38:13.000Z | 2022-03-24T13:25:04.000Z | #include "Emulator/Config.h"
#include "Kyty/Core/DbgAssert.h"
#include "Kyty/Core/MagicEnum.h"
#include "Kyty/Scripts/Scripts.h"
#ifdef KYTY_EMU_ENABLED
namespace Kyty::Config {
struct Config
{
uint32_t screen_width = 1280;
uint32_t screen_height = 720;
bo... | 25.336683 | 83 | 0.717572 | InoriRus |
119efc7d9f197d02bf2d46d6b50359c29c24a1e4 | 700 | cpp | C++ | lib/uti/my_network/tests/test_1_source_code/servUdp.cpp | NicolasKeita/R-type-video-game | b1fdbcc15c0bfb09bd5ad2fd6e9874f18773e3a8 | [
"MIT"
] | 1 | 2020-01-13T22:50:40.000Z | 2020-01-13T22:50:40.000Z | lib/uti/my_network/tests/test_1_source_code/servUdp.cpp | NicolasKeita/R-type-video-game | b1fdbcc15c0bfb09bd5ad2fd6e9874f18773e3a8 | [
"MIT"
] | null | null | null | lib/uti/my_network/tests/test_1_source_code/servUdp.cpp | NicolasKeita/R-type-video-game | b1fdbcc15c0bfb09bd5ad2fd6e9874f18773e3a8 | [
"MIT"
] | null | null | null |
#include <cstdlib>
#include <iostream>
#include <boost/asio.hpp>
#include "BlockingMultiThread/ServerUdpMultiThreadWrapper.hpp"
using boost::asio::ip::udp;
// the return is the reply
std::string handleMessageReceived(const std::string &messageReceived)
{
std::cerr << "[Message received] : " << messageReceived <... | 22.580645 | 82 | 0.638571 | NicolasKeita |
119f2bc9cd47419e23bdf6ff56a4c2b3554f7dd6 | 7,953 | cpp | C++ | Examples/02. SimplyMetaModel/SimplyMetaModel.cpp | lasotek/PDDwithHOSC | 442bb32091c006dcdba3f7afdeb66a8bcf30eebc | [
"MIT"
] | 1 | 2021-02-01T18:38:50.000Z | 2021-02-01T18:38:50.000Z | Examples/02. SimplyMetaModel/SimplyMetaModel.cpp | lasotek/PDDwithHOSC | 442bb32091c006dcdba3f7afdeb66a8bcf30eebc | [
"MIT"
] | null | null | null | Examples/02. SimplyMetaModel/SimplyMetaModel.cpp | lasotek/PDDwithHOSC | 442bb32091c006dcdba3f7afdeb66a8bcf30eebc | [
"MIT"
] | null | null | null | // SimplyMetaModel.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#define PERFORM_ERROR {\
string str;\
while((str=(string)LastErrorInfo)!="")\
printf("%s\n",str.c_str());\
goto end_of;\
}
#define ACC 0.001
#define LOW_FREQ 0
#define HIGH_FREQ 1e6
//#de... | 43.939227 | 178 | 0.701245 | lasotek |
11a19f89c3e642fd781b20c65ba88f48c8b94db5 | 5,588 | cc | C++ | src/utils/common.cc | kaiping/RNNLM | 0bdc679deaf40216e8162f77d68b4e746b0b7516 | [
"Apache-2.0"
] | null | null | null | src/utils/common.cc | kaiping/RNNLM | 0bdc679deaf40216e8162f77d68b4e746b0b7516 | [
"Apache-2.0"
] | null | null | null | src/utils/common.cc | kaiping/RNNLM | 0bdc679deaf40216e8162f77d68b4e746b0b7516 | [
"Apache-2.0"
] | null | null | null | #include "utils/common.h"
#include <fcntl.h>
#include <glog/logging.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/text_format.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <stdarg.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#inc... | 26.358491 | 74 | 0.663386 | kaiping |
11ab03f2921662be224323ac1f7f2178c6efb20f | 342 | cpp | C++ | source/Library.Shared/HullShader.cpp | ssshammi/real-time-3d-rendering-with-directx-and-hlsl | 05a05c5c26784dafa9a89747276f385252951f2f | [
"MIT"
] | null | null | null | source/Library.Shared/HullShader.cpp | ssshammi/real-time-3d-rendering-with-directx-and-hlsl | 05a05c5c26784dafa9a89747276f385252951f2f | [
"MIT"
] | null | null | null | source/Library.Shared/HullShader.cpp | ssshammi/real-time-3d-rendering-with-directx-and-hlsl | 05a05c5c26784dafa9a89747276f385252951f2f | [
"MIT"
] | null | null | null | #include "pch.h"
#include "HullShader.h"
using namespace std;
using namespace DirectX;
using namespace winrt;
namespace Library
{
RTTI_DEFINITIONS(HullShader)
HullShader::HullShader(const com_ptr<ID3D11HullShader>& hullShader) :
mShader(hullShader)
{
}
com_ptr<ID3D11HullShader> HullShader::Shader() const
{
... | 16.285714 | 70 | 0.760234 | ssshammi |
11acd53f7c210d4a637e7c877801063aa4b2fbf5 | 9,934 | cpp | C++ | Angel/Input/InputManager.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | null | null | null | Angel/Input/InputManager.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | null | null | null | Angel/Input/InputManager.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2008-2014, Shane Liesegang
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// *... | 26.420213 | 94 | 0.666902 | Tifox |
11adcfeaad7111d04ffac867ba5061c5eaedb927 | 43,345 | cpp | C++ | src/model/attribute/HeaderModel.cpp | afichet/openexr-viewer | a7c9c44e01af541d4edd637a93c807e9549ae5fb | [
"BSD-3-Clause"
] | 6 | 2021-05-06T07:13:04.000Z | 2022-03-25T14:02:46.000Z | src/model/attribute/HeaderModel.cpp | simileV/openexr-viewer | f4004d2f9b914418e6db3b4d371463d2c0828d52 | [
"BSD-3-Clause"
] | 22 | 2021-05-15T21:29:09.000Z | 2022-01-31T11:49:33.000Z | src/model/attribute/HeaderModel.cpp | simileV/openexr-viewer | f4004d2f9b914418e6db3b4d371463d2c0828d52 | [
"BSD-3-Clause"
] | 2 | 2021-05-27T20:15:39.000Z | 2022-03-20T12:12:30.000Z | /**
* Copyright (c) 2021 Alban Fichet <alban dot fichet at gmx dot fr>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyrig... | 26.494499 | 131 | 0.554228 | afichet |
11ae791a2a162c63b72ca394cffb89d4ca6e2c65 | 18,781 | hpp | C++ | openstudiocore/src/utilities/core/Enum.hpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/utilities/core/Enum.hpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/utilities/core/Enum.hpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | #ifndef __OPENSTUDIO_ENUM_HPP__
#define __OPENSTUDIO_ENUM_HPP__
#include <set>
#include <map>
#include <vector>
#include <utilities/core/StaticInitializer.hpp>
#include <boost/preprocessor.hpp>
#include <boost/optional.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/case... | 35.039179 | 222 | 0.61887 | bobzabcik |
11b3bf0e6cf4e943c161ed7a92384e80aa76be7b | 53,560 | cpp | C++ | src/reyes/reyes_test/ShaderParser.cpp | cwbaker/sweet_render | 259830adba09fabe4de2eef3537f4a95828965d3 | [
"MIT"
] | null | null | null | src/reyes/reyes_test/ShaderParser.cpp | cwbaker/sweet_render | 259830adba09fabe4de2eef3537f4a95828965d3 | [
"MIT"
] | null | null | null | src/reyes/reyes_test/ShaderParser.cpp | cwbaker/sweet_render | 259830adba09fabe4de2eef3537f4a95828965d3 | [
"MIT"
] | null | null | null |
#include <UnitTest++/UnitTest++.h>
#include <reyes/ShaderParser.hpp>
#include <reyes/SyntaxNode.hpp>
#include <reyes/Symbol.hpp>
#include <reyes/SymbolTable.hpp>
#include <reyes/Shader.hpp>
#include <reyes/ErrorPolicy.hpp>
#include <reyes/assert.hpp>
#include <vector>
#include <string.h>
using std::vector... | 36.963423 | 132 | 0.302763 | cwbaker |
11b6e1015968ede8ec78f3ca11e45eb6e047f695 | 136,013 | cc | C++ | borca/arch.cc | ucb-cs250/nextpnr | 0ac4e75e1f039393275cd13fce769f8cc899cd28 | [
"0BSD"
] | null | null | null | borca/arch.cc | ucb-cs250/nextpnr | 0ac4e75e1f039393275cd13fce769f8cc899cd28 | [
"0BSD"
] | null | null | null | borca/arch.cc | ucb-cs250/nextpnr | 0ac4e75e1f039393275cd13fce769f8cc899cd28 | [
"0BSD"
] | null | null | null | /*
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2018 Clifford Wolf <clifford@symbioticeda.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notic... | 49.74872 | 132 | 0.459941 | ucb-cs250 |
11b6e1bf233fbbdacfd98a911e2e3ecbfc796ad3 | 445 | inl | C++ | Library/Sources/Stroika/Foundation/Containers/DataStructures/TO_BE_IMPORTED/UTILS4NewSterlStuff/HashKey.inl | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Library/Sources/Stroika/Foundation/Containers/DataStructures/TO_BE_IMPORTED/UTILS4NewSterlStuff/HashKey.inl | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Library/Sources/Stroika/Foundation/Containers/DataStructures/TO_BE_IMPORTED/UTILS4NewSterlStuff/HashKey.inl | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z |
template <typename KEY>
inline size_t Hash (const KEY& k)
{
return (HashMem ((const char*)&k, sizeof (k)));
}
template <>
inline size_t /*Hashing::*/ Hash<std::string> (const std::string& k)
{
return (HashMem ((const char*)k.c_str (), k.size ()));
}
template <typename KEY>
HashKey<KEY>::HashKey (const KEY& k... | 17.8 | 68 | 0.626966 | SophistSolutions |
11b833b1ec1e1ad10c53d64eb2b0bace82a607b3 | 3,494 | cxx | C++ | Servers/ServerManager/vtkSMStringArrayHelper.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 1 | 2021-07-31T19:38:03.000Z | 2021-07-31T19:38:03.000Z | Servers/ServerManager/vtkSMStringArrayHelper.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | null | null | null | Servers/ServerManager/vtkSMStringArrayHelper.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 2 | 2019-01-22T19:51:40.000Z | 2021-07-31T19:38:05.000Z | /*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without... | 32.351852 | 81 | 0.62822 | matthb2 |
11ba43af5d506aa9c42113abfe1ca3ac9b349f37 | 4,566 | cpp | C++ | lab_04/mainwindow.cpp | paulpaulaga/computer-graphics | b0a92a9253cebc75f50e87b5370763a38de48f67 | [
"MIT"
] | null | null | null | lab_04/mainwindow.cpp | paulpaulaga/computer-graphics | b0a92a9253cebc75f50e87b5370763a38de48f67 | [
"MIT"
] | null | null | null | lab_04/mainwindow.cpp | paulpaulaga/computer-graphics | b0a92a9253cebc75f50e87b5370763a38de48f67 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
updateColor();
}
MainWindow::~MainWindow()
{
delete ui;
}
Ellipse::Algo TypeFromName(const QString &name)
{
if (name == "Каноническое ... | 23.060606 | 91 | 0.585852 | paulpaulaga |
11ba5bba5e2d6f15217785c2c41b11cd4909792a | 890 | cpp | C++ | Events.cpp | GrPe/GynGameChallenge- | 2e8ac857ec6cd9733f71d543bf82478ebdd8bbed | [
"MIT"
] | null | null | null | Events.cpp | GrPe/GynGameChallenge- | 2e8ac857ec6cd9733f71d543bf82478ebdd8bbed | [
"MIT"
] | null | null | null | Events.cpp | GrPe/GynGameChallenge- | 2e8ac857ec6cd9733f71d543bf82478ebdd8bbed | [
"MIT"
] | null | null | null | #include "Events.hpp"
#include "SFML\Graphics.hpp"
#include <iostream>
void Events::CatchEvent(sf::RenderWindow& window, Player& player, std::vector <Bullet>& vb, sf::Texture& tx)
{
sf::Event e;
while (window.pollEvent(e))
{
switch (e.type)
{
case sf::Event::Closed:
window.close();
break;
case sf::Eve... | 19.347826 | 108 | 0.614607 | GrPe |
11be4b5533e3cb23b4c3a3cd80c9fa65cda08e9f | 4,989 | cpp | C++ | src/oatpp/encoding/Unicode.cpp | swarkentin/oatpp | 6838f37c04277e44b22e23df33e8eded70701f3c | [
"Apache-2.0"
] | 1 | 2019-05-11T14:56:40.000Z | 2019-05-11T14:56:40.000Z | src/oatpp/encoding/Unicode.cpp | swarkentin/oatpp | 6838f37c04277e44b22e23df33e8eded70701f3c | [
"Apache-2.0"
] | null | null | null | src/oatpp/encoding/Unicode.cpp | swarkentin/oatpp | 6838f37c04277e44b22e23df33e8eded70701f3c | [
"Apache-2.0"
] | null | null | null | /***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| |_|
*
*
* Copyright 2018-present, Leoni... | 30.796296 | 89 | 0.472239 | swarkentin |
11c319a1bdeb428db9c961aeca39968234ab406b | 714 | cpp | C++ | src/modules/MaNGOSBot/playerbot/strategy/generic/EmoteStrategy.cpp | MaNGOSBot/Uno | e5c95da966c367f1425d0d1d737bfdfc14362964 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | 1 | 2018-05-06T12:13:04.000Z | 2018-05-06T12:13:04.000Z | src/modules/Bots/playerbot/strategy/generic/EmoteStrategy.cpp | Lidocian/ZeroBots | 297072e07f85fc661e1b0e9a34c09580e3bfef14 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/modules/Bots/playerbot/strategy/generic/EmoteStrategy.cpp | Lidocian/ZeroBots | 297072e07f85fc661e1b0e9a34c09580e3bfef14 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | #include "botpch.h"
#include "../../playerbot.h"
#include "EmoteStrategy.h"
using namespace ai;
void EmoteStrategy::InitTriggers(std::list<TriggerNode*> &triggers)
{
triggers.push_back(new TriggerNode(
"random",
NextAction::array(0, new NextAction("emote", 1.0f), NULL)));
triggers.push_back(... | 27.461538 | 81 | 0.645658 | MaNGOSBot |
11c3d6248987b582947e418124142ab1912e50d3 | 2,434 | cpp | C++ | Super_Soukoban/Super_Soukoban/ModuleRender.cpp | Dani-24/Serapios | a9ae39605b32c84e21256163c0094243085187d0 | [
"MIT"
] | 2 | 2021-02-23T01:42:14.000Z | 2021-02-23T17:31:01.000Z | Super_Soukoban/Super_Soukoban/ModuleRender.cpp | Dani-24/Serapios | a9ae39605b32c84e21256163c0094243085187d0 | [
"MIT"
] | 2 | 2021-02-23T18:23:36.000Z | 2021-03-02T16:47:43.000Z | Super_Soukoban/Super_Soukoban/ModuleRender.cpp | Dani-24/Serapios | a9ae39605b32c84e21256163c0094243085187d0 | [
"MIT"
] | 6 | 2021-02-23T17:54:53.000Z | 2021-06-06T01:17:11.000Z | #include "ModuleRender.h"
#include "Application.h"
#include "ModuleWindow.h"
#include "ModuleTextures.h"
#include "ModuleInput.h"
#include "External_Libraries/SDL/include/SDL_render.h"
#include "External_Libraries/SDL/include/SDL_scancode.h"
ModuleRender::ModuleRender (bool startEnabled) : Module(startEnabled)
{
}
Mod... | 22.537037 | 107 | 0.715283 | Dani-24 |
11c605a3187a936e02fdab663d428876928c28c5 | 6,781 | cpp | C++ | test_csgjscpp.cpp | executionunit/csgjs-cpp | 2ac537e2760d14d15d0b31f4308cdb7201c8e493 | [
"MIT"
] | 5 | 2020-07-16T17:26:19.000Z | 2022-03-30T09:28:15.000Z | test_csgjscpp.cpp | executionunit/csgjs-cpp | 2ac537e2760d14d15d0b31f4308cdb7201c8e493 | [
"MIT"
] | null | null | null | test_csgjscpp.cpp | executionunit/csgjs-cpp | 2ac537e2760d14d15d0b31f4308cdb7201c8e493 | [
"MIT"
] | 3 | 2020-07-16T17:16:02.000Z | 2021-11-16T04:06:54.000Z |
#include "mycsgjs.h"
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest/doctest.h"
using namespace csgjscpp;
using Polygons = CSGJSCPP_VECTOR<csgjscpp::Polygon>;
TEST_CASE("double tjunction right") {
/*
+--------------+
| |
| |
| +----+
| 2! +---> | ... | 22.232787 | 80 | 0.420439 | executionunit |
11c76d4a6866981768f2baaa810a1efaddff2599 | 49 | hpp | C++ | modules/leg0/exp_header.hpp | vis4rd/AGH_PAT_Modern-Cpp_2021 | 586dd2385b1a19fef13d1e697dc96b4cfda662a5 | [
"MIT"
] | null | null | null | modules/leg0/exp_header.hpp | vis4rd/AGH_PAT_Modern-Cpp_2021 | 586dd2385b1a19fef13d1e697dc96b4cfda662a5 | [
"MIT"
] | null | null | null | modules/leg0/exp_header.hpp | vis4rd/AGH_PAT_Modern-Cpp_2021 | 586dd2385b1a19fef13d1e697dc96b4cfda662a5 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream> // 1.1M chars!! | 16.333333 | 35 | 0.673469 | vis4rd |
11c8a946dd1743e0efec94728cdb043d9c0a0912 | 1,291 | cpp | C++ | folly/test/AtForkTest.cpp | agenih/facebook | b3141b5d9af8de15dc2247fda265534183ca5f0d | [
"Apache-2.0"
] | 1 | 2018-02-28T06:33:19.000Z | 2018-02-28T06:33:19.000Z | folly/test/AtForkTest.cpp | agenih/facebook | b3141b5d9af8de15dc2247fda265534183ca5f0d | [
"Apache-2.0"
] | 3 | 2016-07-19T00:19:58.000Z | 2019-07-19T23:33:10.000Z | folly/test/AtForkTest.cpp | cedexis/folly | 284a4bf64203f8cc81918e0a91d726d45b3ee2ed | [
"Apache-2.0"
] | 1 | 2019-03-08T11:06:22.000Z | 2019-03-08T11:06:22.000Z | /*
* Copyright 2017-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 26.346939 | 75 | 0.661503 | agenih |
11cdc1a0c0c6af31bb779a177e4d4d85048cc7e2 | 14,465 | cpp | C++ | Modules/OpenIGTLinkUI/Qmitk/QmitkIGTLDeviceSetupConnectionWidget.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Modules/OpenIGTLinkUI/Qmitk/QmitkIGTLDeviceSetupConnectionWidget.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Modules/OpenIGTLinkUI/Qmitk/QmitkIGTLDeviceSetupConnectionWidget.cpp | zhaomengxiao/MITK_lancet | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2020-11-27T09:41:18.000Z | 2020-11-27T09:41:18.000Z | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 33.100686 | 133 | 0.727826 | zhaomengxiao |
11d43a244b319e8ba60e03b8eff20557f6a0fa59 | 14,348 | cpp | C++ | core/test/cosmos/Fixtures.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | null | null | null | core/test/cosmos/Fixtures.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | null | null | null | core/test/cosmos/Fixtures.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | null | null | null | #include "Fixtures.hpp"
#include <wallet/cosmos/CosmosLikeConstants.hpp>
#include <api/CosmosLikeVoteOption.hpp>
namespace ledger {
namespace testing {
namespace cosmos {
std::shared_ptr<core::CosmosLikeAccount>
createCosmosLikeAccount(const std... | 59.289256 | 150 | 0.414065 | RomanWlm |
11d6bd3992ac06922d8899ef79cd1601a0279967 | 792 | cpp | C++ | src/Eigen-3.3/doc/snippets/ComplexEigenSolver_compute.cpp | shareq2005/CarND-MPC-Project | f4094e8b446d2fac2ca0a4c5054d5058621595b0 | [
"MIT"
] | 3,457 | 2018-06-09T15:36:42.000Z | 2020-06-01T22:09:25.000Z | src/Eigen-3.3/doc/snippets/ComplexEigenSolver_compute.cpp | shareq2005/CarND-MPC-Project | f4094e8b446d2fac2ca0a4c5054d5058621595b0 | [
"MIT"
] | 851 | 2017-11-27T15:09:56.000Z | 2022-03-31T22:26:38.000Z | src/Eigen-3.3/doc/snippets/ComplexEigenSolver_compute.cpp | shareq2005/CarND-MPC-Project | f4094e8b446d2fac2ca0a4c5054d5058621595b0 | [
"MIT"
] | 1,380 | 2017-06-12T23:58:23.000Z | 2022-03-31T14:52:48.000Z | MatrixXcf A = MatrixXcf::Random(4,4);
cout << "Here is a random 4x4 matrix, A:" << endl << A << endl << endl;
ComplexEigenSolver<MatrixXcf> ces;
ces.compute(A);
cout << "The eigenvalues of A are:" << endl << ces.eigenvalues() << endl;
cout << "The matrix of eigenvectors, V, is:" << endl << ces.eigenvectors() << endl <... | 46.588235 | 99 | 0.616162 | shareq2005 |
11d8cbc5e6bdc7e8149422bc26a11ede2f1c6b71 | 76,283 | cc | C++ | src/bin/d2/d2_parser.cc | nchaigne/kea | 2badfd4d9b4f2420b0e9683db5da16a3ab90dd81 | [
"Apache-2.0"
] | null | null | null | src/bin/d2/d2_parser.cc | nchaigne/kea | 2badfd4d9b4f2420b0e9683db5da16a3ab90dd81 | [
"Apache-2.0"
] | null | null | null | src/bin/d2/d2_parser.cc | nchaigne/kea | 2badfd4d9b4f2420b0e9683db5da16a3ab90dd81 | [
"Apache-2.0"
] | null | null | null | // A Bison parser, made by GNU Bison 3.0.4.
// Skeleton implementation for Bison LALR(1) parsers in C++
// Copyright (C) 2002-2015 Free Software Foundation, Inc.
// 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... | 32.024769 | 147 | 0.517547 | nchaigne |
11dfa24e38fdb0d2e3e7822ab5a16cfec6b8d003 | 1,875 | cc | C++ | src/solvers/test/test_ProjectedOperator.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/solvers/test/test_ProjectedOperator.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/solvers/test/test_ProjectedOperator.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | /*
* test_ProjectedOperator.cc
*
* Created on: Jul 3, 2020
* Author: rabab
*/
#define TEST_LIST \
FUNC(test_ProjectedOperator_general)
#include "TestDriver.hh"
#include "callow/utils/Initialization.hh"
#include "utilities/MathUtilities.hh"
#include "callow/solver/EigenSolverC... | 22.321429 | 62 | 0.646933 | baklanovp |
11e1bff5ba96d2e1cf428cf3eba355873de29fe4 | 1,598 | cpp | C++ | raygame/AABBCollider.cpp | pSmith000/GameFrameworkCPP | f73bdd026b8df1df68f8fb232d7ca589ae3b7314 | [
"MIT"
] | null | null | null | raygame/AABBCollider.cpp | pSmith000/GameFrameworkCPP | f73bdd026b8df1df68f8fb232d7ca589ae3b7314 | [
"MIT"
] | 1 | 2022-03-11T17:39:21.000Z | 2022-03-11T17:39:21.000Z | raygame/AABBCollider.cpp | pSmith000/GameFrameworkCPP | f73bdd026b8df1df68f8fb232d7ca589ae3b7314 | [
"MIT"
] | 11 | 2021-12-06T22:13:10.000Z | 2021-12-06T22:14:24.000Z | #include "AABBCollider.h"
#include "CircleCollider.h"
#include "Actor.h"
#include "Transform2D.h"
AABBCollider::AABBCollider(Actor* owner) : Collider::Collider(owner, ColliderType::BOX)
{
m_width = getOwner()->getTransform()->getScale().x;
m_height = getOwner()->getTransform()->getScale().y;
}
AABBCollider::AABBCol... | 25.774194 | 114 | 0.717146 | pSmith000 |
11e279ea0ce76d85e17b4732abcfef19f70ac5d5 | 845 | cpp | C++ | src/test/OpenEXRTest/random.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/test/OpenEXRTest/random.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/test/OpenEXRTest/random.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 "random.h"
#include <assert.h>
#include <random>
static std::default_random_engine generator;
void
random_reseed (int s)
{
generator.seed (s);
}
//
// Return an integer in the range [0,range), so that 0 <= i ... | 21.125 | 71 | 0.608284 | remia |
11e37ca60f4f8dc1537234afd27de86548194132 | 931 | cpp | C++ | android-31/java/security/spec/ECFieldFp.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/security/spec/ECFieldFp.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/security/spec/ECFieldFp.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../../JObject.hpp"
#include "../../math/BigInteger.hpp"
#include "./ECFieldFp.hpp"
namespace java::security::spec
{
// Fields
// QJniObject forward
ECFieldFp::ECFieldFp(QJniObject obj) : JObject(obj) {}
// Constructors
ECFieldFp::ECFieldFp(java::math::BigInteger arg0)
: JObject(
"java.securi... | 17.903846 | 55 | 0.640172 | YJBeetle |
11e42faa8d43cb76a95609924de72a20a7658fb8 | 1,771 | cpp | C++ | SYCL/Regression/device_pci_address_bdf_format.cpp | abuyukku/llvm-test-suite | b10bd8e733519ae0e365fc097d36a32bc1d53d62 | [
"Apache-2.0"
] | null | null | null | SYCL/Regression/device_pci_address_bdf_format.cpp | abuyukku/llvm-test-suite | b10bd8e733519ae0e365fc097d36a32bc1d53d62 | [
"Apache-2.0"
] | null | null | null | SYCL/Regression/device_pci_address_bdf_format.cpp | abuyukku/llvm-test-suite | b10bd8e733519ae0e365fc097d36a32bc1d53d62 | [
"Apache-2.0"
] | null | null | null | // RUN: %clangxx -fsycl %s -o %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
//==- device_pci_address_bdf_format.cpp - SYCL PCI address BDF format test -==//
//
// Tests the BDF format of the PCI address reported through the corresponding
// query.
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Ex... | 31.625 | 80 | 0.632411 | abuyukku |
eb19de9c0f841932060029fae09aca4e6b8ab014 | 4,385 | cpp | C++ | src/thunderbots/software/ai/hl/stp/action/kick_action.cpp | Solaris5959/Software | b34ed63f671460dcb8db62d328b776747adaf374 | [
"MIT"
] | null | null | null | src/thunderbots/software/ai/hl/stp/action/kick_action.cpp | Solaris5959/Software | b34ed63f671460dcb8db62d328b776747adaf374 | [
"MIT"
] | null | null | null | src/thunderbots/software/ai/hl/stp/action/kick_action.cpp | Solaris5959/Software | b34ed63f671460dcb8db62d328b776747adaf374 | [
"MIT"
] | null | null | null | #include "ai/hl/stp/action/kick_action.h"
#include <ai/world/ball.h>
#include "ai/intent/kick_intent.h"
#include "ai/intent/move_intent.h"
#include "geom/polygon.h"
#include "geom/util.h"
#include "shared/constants.h"
KickAction::KickAction() : Action(), ball({0, 0}, {0, 0}, Timestamp::fromSeconds(0)) {}
std::uniqu... | 40.601852 | 89 | 0.577195 | Solaris5959 |
eb1cfeca5d07adfc1f98ff1cf8709a3f01f1dcb0 | 8,234 | cpp | C++ | Crossy_Roads/Sphere.cpp | Daryan7/Crossy_Roads | af816aa73ba29241fb1db4722940e42be8a76102 | [
"MIT"
] | 1 | 2018-04-18T12:54:33.000Z | 2018-04-18T12:54:33.000Z | Crossy_Roads/Sphere.cpp | Daryan7/Crossy_Roads | af816aa73ba29241fb1db4722940e42be8a76102 | [
"MIT"
] | null | null | null | Crossy_Roads/Sphere.cpp | Daryan7/Crossy_Roads | af816aa73ba29241fb1db4722940e42be8a76102 | [
"MIT"
] | null | null | null | #include "Sphere.h"
using namespace glm;
#define PI 3.14159f
void Sphere::init(int numCircles, int pointsPerCircle, float diameter, ShaderProgram& program) {
/*if (numCircles % 2 == 0)
return;
vector<float> vertices;
vector<float> colors;
vector<float> normals((numCircles*pointsPerCircle + 2) * 3);
vector<vec3... | 37.09009 | 119 | 0.683507 | Daryan7 |
eb1d4b8a02028fd424640c3ac5150317fd0bce95 | 10,077 | cpp | C++ | src/org/apache/poi/common/usermodel/fonts/FontCharset.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/common/usermodel/fonts/FontCharset.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/common/usermodel/fonts/FontCharset.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/common/usermodel/fonts/FontCharset.java
#include <org/apache/poi/common/usermodel/fonts/FontCharset.hpp>
#include <java/io/Serializable.hpp>
#include <java/lang/ArrayStoreException.hpp>
#include <java/lang/Class.hpp>
#include <java/lang/Comparable.hpp>
#include <java/lang/Enu... | 43.064103 | 233 | 0.677781 | pebble2015 |
eb21a4a1d42ba2c103fddc0ff649a89dff8607dd | 10,458 | cpp | C++ | source/crypto/pow.cpp | wilsonfonseca/iota.lib.cpp | c49791b8e4f1499dc652fb84dedb016e5f42cdf4 | [
"MIT"
] | null | null | null | source/crypto/pow.cpp | wilsonfonseca/iota.lib.cpp | c49791b8e4f1499dc652fb84dedb016e5f42cdf4 | [
"MIT"
] | null | null | null | source/crypto/pow.cpp | wilsonfonseca/iota.lib.cpp | c49791b8e4f1499dc652fb84dedb016e5f42cdf4 | [
"MIT"
] | null | null | null | //
// MIT License
//
// Copyright (c) 2017-2018 Thibault Martinez and Simon Ninon
//
// 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 r... | 40.223077 | 96 | 0.601262 | wilsonfonseca |
eb2888a6c5d824a8d7aa216ba450d67866fa79f0 | 6,864 | cpp | C++ | src/game/shared/tfc/tfc_playeranimstate.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/shared/tfc/tfc_playeranimstate.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/shared/tfc/tfc_playeranimstate.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "tfc_playeranimstate.h"
#include "base_playeranimstate.h"
#include "tier0/vprof.h"
#include "animation.h"
#inclu... | 21.185185 | 102 | 0.668269 | cstom4994 |
eb2bb774f3e7e6d73453ca49372aa2d91b2fc1d4 | 3,577 | cpp | C++ | game/string_pool.cpp | astrellon/Rouge | 088f55b331284238e807e0562b9cbbed6428c20f | [
"MIT"
] | null | null | null | game/string_pool.cpp | astrellon/Rouge | 088f55b331284238e807e0562b9cbbed6428c20f | [
"MIT"
] | null | null | null | game/string_pool.cpp | astrellon/Rouge | 088f55b331284238e807e0562b9cbbed6428c20f | [
"MIT"
] | null | null | null | #include "string_pool.h"
#include <sstream>
#include <game/engine.h>
#include <game/game.h>
#include <game/character.h>
#include <game/race.h>
#include <log/logger.h>
namespace am {
namespace game {
std::string StringPool::replace(const char *str)
{
if (str == nullptr || str[0] == '\0')
{
return std::stri... | 22.496855 | 91 | 0.581213 | astrellon |
eb2d595ad6ea2f7219c41e036ec690f15380c910 | 7,682 | cpp | C++ | Lumos/Source/Lumos/Scripting/Lua/LuaScriptComponent.cpp | jmorton06/UntitledEngine | eabeb8b5b43c6b5039c0c3b9ab2bd7e3af03e7f4 | [
"MIT"
] | null | null | null | Lumos/Source/Lumos/Scripting/Lua/LuaScriptComponent.cpp | jmorton06/UntitledEngine | eabeb8b5b43c6b5039c0c3b9ab2bd7e3af03e7f4 | [
"MIT"
] | null | null | null | Lumos/Source/Lumos/Scripting/Lua/LuaScriptComponent.cpp | jmorton06/UntitledEngine | eabeb8b5b43c6b5039c0c3b9ab2bd7e3af03e7f4 | [
"MIT"
] | null | null | null | #include "Precompiled.h"
#include "LuaScriptComponent.h"
#include "LuaManager.h"
#include "Scene/Scene.h"
#include "Scene/Entity.h"
#include "Scene/EntityManager.h"
#include "Core/StringUtilities.h"
#include "Core/Engine.h"
namespace Lumos
{
LuaScriptComponent::LuaScriptComponent()
{
m_Sce... | 31.227642 | 134 | 0.540875 | jmorton06 |
eb3236bf188c134588072334c7506de7270eabca | 2,217 | hpp | C++ | modules/core/include/shard/core/byte.hpp | ikimol/shard | 72a72dbebfd247d2b7b300136c489672960b37d8 | [
"MIT"
] | null | null | null | modules/core/include/shard/core/byte.hpp | ikimol/shard | 72a72dbebfd247d2b7b300136c489672960b37d8 | [
"MIT"
] | null | null | null | modules/core/include/shard/core/byte.hpp | ikimol/shard | 72a72dbebfd247d2b7b300136c489672960b37d8 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Miklos Molnar. All rights reserved.
#ifndef SHARD_CORE_BYTE_HPP
#define SHARD_CORE_BYTE_HPP
#include <type_traits>
namespace shard {
namespace core {
enum class byte : unsigned char {};
template <typename T, typename = std::enable_if_t<std::is_integral<T>::value>>
inline constexpr byte to_byt... | 27.036585 | 81 | 0.711322 | ikimol |
eb3d693333ba6713e0c91a6a267084608a93e5a2 | 854 | cpp | C++ | Sid's Levels/Level - 1/Recursion/NthStair.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | Sid's Levels/Level - 1/Recursion/NthStair.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | Sid's Levels/Level - 1/Recursion/NthStair.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | // { Driver Code Starts
#include<bits/stdc++.h>
using namespace std;
long long mod = 1000000007;
long long countWays(int);
int main()
{
//taking total testcases
int t;
cin >> t;
while(t--)
{
//taking stair count
int m;
cin>>m;
cout<<countWays(m)<<endl; // ... | 17.08 | 81 | 0.498829 | Tiger-Team-01 |
eb3e74d214084eecc5b658e8fca504f9c6ffd3e7 | 130 | cpp | C++ | ROHIT KUMAR SINGH (Hacktober Contribution)/HackerRank/numcheck.cpp | Anjali0206/Hacktoberfest-KIIT-2021 | 9b0b1f0e6d55f41c68f6172e4ecdea9bee9775fe | [
"MIT"
] | 8 | 2019-10-05T18:40:46.000Z | 2019-10-25T16:26:41.000Z | ROHIT KUMAR SINGH (Hacktober Contribution)/HackerRank/numcheck.cpp | Anjali0206/Hacktoberfest-KIIT-2021 | 9b0b1f0e6d55f41c68f6172e4ecdea9bee9775fe | [
"MIT"
] | 13 | 2020-09-30T19:27:29.000Z | 2021-09-08T02:31:48.000Z | ROHIT KUMAR SINGH (Hacktober Contribution)/HackerRank/numcheck.cpp | Anjali0206/Hacktoberfest-KIIT-2021 | 9b0b1f0e6d55f41c68f6172e4ecdea9bee9775fe | [
"MIT"
] | 84 | 2020-09-30T19:00:05.000Z | 2021-09-30T04:17:34.000Z | #include<iostream>
using namespace std;
int main()
{
if(isnum(54))
{
cout<<"yes";
}
return 0;
} | 11.818182 | 21 | 0.476923 | Anjali0206 |
eb3fa36aed13a192f01adc4be793f4e5430daf77 | 5,311 | hpp | C++ | src/mlpack/methods/regularized_svd/regularized_svd_function.hpp | florian-rosenthal/mlpack | 4287a89886e39703571165ef1d40693eb51d22c6 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4,216 | 2015-01-01T02:06:12.000Z | 2022-03-31T19:12:06.000Z | src/mlpack/methods/regularized_svd/regularized_svd_function.hpp | florian-rosenthal/mlpack | 4287a89886e39703571165ef1d40693eb51d22c6 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2,621 | 2015-01-01T01:41:47.000Z | 2022-03-31T19:01:26.000Z | src/mlpack/methods/regularized_svd/regularized_svd_function.hpp | florian-rosenthal/mlpack | 4287a89886e39703571165ef1d40693eb51d22c6 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1,972 | 2015-01-01T23:37:13.000Z | 2022-03-28T06:03:41.000Z | /**
* @file methods/regularized_svd/regularized_svd_function.hpp
* @author Siddharth Agrawal
*
* An implementation of the RegularizedSVDFunction class.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3... | 31.426036 | 80 | 0.701939 | florian-rosenthal |
eb4adcf49ff4e58147f1e7b1bd5f6fab110a86ed | 14,468 | cpp | C++ | query_optimizer/rules/ExtractCommonSubexpression.cpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 82 | 2016-04-18T03:59:06.000Z | 2019-02-04T11:46:08.000Z | query_optimizer/rules/ExtractCommonSubexpression.cpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 265 | 2016-04-19T17:52:43.000Z | 2018-10-11T17:55:08.000Z | query_optimizer/rules/ExtractCommonSubexpression.cpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 68 | 2016-04-18T05:00:34.000Z | 2018-10-30T12:41:02.000Z | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 40.077562 | 92 | 0.663395 | Hacker0912 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.