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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f79d563b6f639a248aa43fd4da3bcfc6a1f5f7d0 | 1,007 | cpp | C++ | uva/11770.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | uva/11770.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | uva/11770.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
#define le 10004
using namespace std;
int in[le];
vector<int> v[le];
vector<int> ve;
bool vis[le];
void dfs(int a){
vis[a] = true;
for(int i = 0; i < v[a].size(); i++){
if(!vis[v[a][i]]) dfs(v[a][i]);
}
ve.push_back(a);
}
void dfs1(int a){
vis[a] = true;
for(int i = 0; i < v[a].... | 23.97619 | 74 | 0.472691 | cosmicray001 |
f79dbd520e9752b41bb60bace27aa3187ac8cd99 | 1,001 | cpp | C++ | Codes/Volume 01/E0006 Sum square difference.cpp | upobir/Project-Euler-Codes | a4a95da7d87e159c8efecd94d258bab0fcc8af7f | [
"MIT"
] | 2 | 2021-02-17T05:19:14.000Z | 2022-02-13T19:52:00.000Z | Codes/Volume 01/E0006 Sum square difference.cpp | upobir/Project-Euler-Codes | a4a95da7d87e159c8efecd94d258bab0fcc8af7f | [
"MIT"
] | null | null | null | Codes/Volume 01/E0006 Sum square difference.cpp | upobir/Project-Euler-Codes | a4a95da7d87e159c8efecd94d258bab0fcc8af7f | [
"MIT"
] | null | null | null | # include <bits/stdc++.h>
# include "../TimeMacro.h"
using namespace std;
typedef long long int ll;
/*
Statement:
The sum of the squares of the first ten natural numbers is,
12+22+...+102=385
The square of the sum of the first ten natural numbers is,
(1+2+...+10)2=552=3025
Hence the difference between the sum ... | 22.244444 | 129 | 0.686314 | upobir |
f7a2295d23d4e1589637baac771e004bc15ccdeb | 922 | cpp | C++ | Chapter11/problem_88/main.cpp | showa-yojyo/The-Modern-Cpp-Challenge | 807b6be8faebe5bdd3ce138ab83648a3864aeab3 | [
"MIT"
] | null | null | null | Chapter11/problem_88/main.cpp | showa-yojyo/The-Modern-Cpp-Challenge | 807b6be8faebe5bdd3ce138ab83648a3864aeab3 | [
"MIT"
] | null | null | null | Chapter11/problem_88/main.cpp | showa-yojyo/The-Modern-Cpp-Challenge | 807b6be8faebe5bdd3ce138ab83648a3864aeab3 | [
"MIT"
] | null | null | null | // #88 シーザー暗号
// 簡単のために大文字しか処理しない
//
// C++ 新機能の学習には不向き
#include <iostream>
#include <string>
#include <string_view>
#include <cassert>
std::string caesar_encrypt(std::string_view text, int shift)
{
std::string str;
str.reserve(text.length());
for (auto const & c : text)
{
if (isalpha(c) && isupper(c... | 18.44 | 60 | 0.555315 | showa-yojyo |
f7a563b649a6abac9d3551478c2bc74b93e56863 | 10,030 | hpp | C++ | include/interactive_mid_protocols/SigmaProtocolDlog.hpp | manel1874/libscapi | 8cf705162af170c04c8e2299213f52888193cabe | [
"MIT"
] | 160 | 2016-05-11T09:45:56.000Z | 2022-03-06T09:32:19.000Z | include/interactive_mid_protocols/SigmaProtocolDlog.hpp | cryptobiu/libscapi | 49eee7aee9eb3544a7facb199d0a6e98097b058a | [
"MIT"
] | 57 | 2016-12-26T07:02:12.000Z | 2022-03-06T16:34:31.000Z | include/interactive_mid_protocols/SigmaProtocolDlog.hpp | manel1874/libscapi | 8cf705162af170c04c8e2299213f52888193cabe | [
"MIT"
] | 67 | 2016-10-10T17:56:22.000Z | 2022-03-15T22:56:39.000Z | /**
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*
* Copyright (c) 2016 LIBSCAPI (http://crypto.biu.ac.il/SCAPI)
* This file is part of the SCAPI project.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Permission is hereby granted, free of charge, to any p... | 39.333333 | 158 | 0.705085 | manel1874 |
f7a86692e2f92eea95567f049e6922398bef8326 | 1,592 | cpp | C++ | tests/src/compressor.cpp | nospi/synth2 | f4548e01753a74e826f4155685259750cfe2581f | [
"Unlicense"
] | 1 | 2021-07-14T07:49:46.000Z | 2021-07-14T07:49:46.000Z | tests/src/compressor.cpp | nospi/synth2 | f4548e01753a74e826f4155685259750cfe2581f | [
"Unlicense"
] | null | null | null | tests/src/compressor.cpp | nospi/synth2 | f4548e01753a74e826f4155685259750cfe2581f | [
"Unlicense"
] | null | null | null | #include <catch.hpp>
#include <dsp.h>
using namespace dsp;
TEST_CASE("ratio -> gain reduction", "[compressor]")
{
SECTION("accurate gain reduction")
{
compressor comp;
comp.enabled = true;
comp.setAttack(1.0);
comp.setRelease(100.0);
comp.setRatio(0.5);
comp.setThreshold(-9.0);
double input = gain:... | 24.875 | 75 | 0.64196 | nospi |
f7b0f53f9f04f0ab654c4df8d603decaf598f4bd | 226 | hpp | C++ | plugins/content_compiler/include/TinyObjImporter.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | 5 | 2018-08-16T00:55:33.000Z | 2020-06-19T14:30:17.000Z | plugins/content_compiler/include/TinyObjImporter.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | plugins/content_compiler/include/TinyObjImporter.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | #pragma once
#ifndef ASSET_PIPELINE_OBJ_FILE_IMPORTER_HPP
#define ASSET_PIPELINE_OBJ_FILE_IMPORTER_HPP
struct MeshData* LoadMeshDataFromObj(const char* fname, bool interleaved);
#endif //!ASSET_PIPELINE_OBJ_FILE_IMPORTER_HPP | 32.285714 | 74 | 0.871681 | fuchstraumer |
f7b20b899b75b10530c962bf5d7bac41cd84fd46 | 61,618 | cpp | C++ | lumino/LuminoEngine/test/Test_Graphics_LowLevelRendering.cpp | lriki/Lumino | 1a80430f4a83dbdfbe965b3d5b16064991b3edb0 | [
"MIT"
] | 30 | 2016-01-24T05:35:45.000Z | 2020-03-03T09:54:27.000Z | lumino/LuminoEngine/test/Test_Graphics_LowLevelRendering.cpp | lriki/Lumino | 1a80430f4a83dbdfbe965b3d5b16064991b3edb0 | [
"MIT"
] | 35 | 2016-04-18T06:14:08.000Z | 2020-02-09T15:51:58.000Z | lumino/LuminoEngine/test/Test_Graphics_LowLevelRendering.cpp | lriki/Lumino | 1a80430f4a83dbdfbe965b3d5b16064991b3edb0 | [
"MIT"
] | 5 | 2016-04-03T02:52:05.000Z | 2018-01-02T16:53:06.000Z | #include "Common.hpp"
#include <LuminoGraphics/RHI/ShaderDescriptor.hpp>
#include <LuminoGraphics/RHI/GraphicsCommandBuffer.hpp>
class Test_Graphics_LowLevelRendering : public ::testing::Test
{
public:
virtual void SetUp()
{
m_shader1 = Shader::create(LN_ASSETFILE("simple.vsh"), LN_ASSETFILE("simple.psh"));
m_... | 35.907925 | 175 | 0.662436 | lriki |
fc8f78032ee6ba1a767dcf2a6177d3c738140678 | 892 | cpp | C++ | postOrderDolasim.cpp | musttafayildirim/veriYapilariUygulamalari | 87015f19e566f71c0e48c8a7e4c2fb01070d808d | [
"Apache-2.0"
] | null | null | null | postOrderDolasim.cpp | musttafayildirim/veriYapilariUygulamalari | 87015f19e566f71c0e48c8a7e4c2fb01070d808d | [
"Apache-2.0"
] | null | null | null | postOrderDolasim.cpp | musttafayildirim/veriYapilariUygulamalari | 87015f19e566f71c0e48c8a7e4c2fb01070d808d | [
"Apache-2.0"
] | null | null | null | #include <stdlib.h>
#include <iostream>
using namespace std;
struct dugum
{
int value;
dugum *sol;
dugum *sag;
};
struct dugum *ana;
struct dugum *ekle(struct dugum *r, int value);
void postOrder(struct dugum *r); // Kök sonda
int main()
{
ana = NULL;
int n, v;
cout << "Kac adet değer eklemek istiyorsunuz?" << end... | 14.387097 | 56 | 0.617713 | musttafayildirim |
fc8fe31d2dd383ec2b5a44bcaa440938d6277550 | 66,901 | cc | C++ | test/aarch32/test-assembler-cond-rdlow-rnlow-rmlow-in-it-block-t32.cc | capablevms/VIXL | 769c8e46a09bb077e9a2148b86a2093addce8233 | [
"BSD-3-Clause"
] | 573 | 2016-08-31T20:21:20.000Z | 2021-08-29T14:01:11.000Z | test/aarch32/test-assembler-cond-rdlow-rnlow-rmlow-in-it-block-t32.cc | capablevms/VIXL | 769c8e46a09bb077e9a2148b86a2093addce8233 | [
"BSD-3-Clause"
] | 366 | 2016-09-02T06:37:43.000Z | 2021-08-11T18:38:24.000Z | test/aarch32/test-assembler-cond-rdlow-rnlow-rmlow-in-it-block-t32.cc | capablevms/VIXL | 769c8e46a09bb077e9a2148b86a2093addce8233 | [
"BSD-3-Clause"
] | 135 | 2016-09-01T02:02:58.000Z | 2021-08-13T01:25:22.000Z | // Copyright 2016, VIXL authors
// 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 ... | 58.995591 | 80 | 0.52192 | capablevms |
fc934b8cd745265f74102619d9ea7d423fcf2240 | 524 | cpp | C++ | warm-woody-knocker/src/Parameters/RelativeParameter.cpp | fedulvtubudul/warm-woody-knocker | fdf19c72e33397f4cef70832a0e04d6dfeffb6c3 | [
"MIT"
] | 2 | 2020-01-20T02:39:34.000Z | 2020-03-03T05:52:45.000Z | warm-woody-knocker/src/Parameters/RelativeParameter.cpp | fedulvtubudul/warm-woody-knocker | fdf19c72e33397f4cef70832a0e04d6dfeffb6c3 | [
"MIT"
] | 1 | 2017-11-21T04:34:37.000Z | 2017-11-21T04:34:37.000Z | warm-woody-knocker/src/Parameters/RelativeParameter.cpp | fedulvtubudul/warm-woody-knocker | fdf19c72e33397f4cef70832a0e04d6dfeffb6c3 | [
"MIT"
] | null | null | null | #include "RelativeParameter.h"
RelativeParameter::RelativeParameter(String *title, Storage *storage, StoredParameter parameter, int steps, void (*onChange)(RelativeParameter *sender)) :
IntegerParameter(title, storage, parameter, 0, steps, onChange) {
relativeValue = (float)(value - minValue) / (float)(maxValue -... | 27.578947 | 155 | 0.742366 | fedulvtubudul |
fc9f77231a38f04ba92b9283627f35a2bcf552e8 | 2,868 | hpp | C++ | src/texture/components/frame.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 2 | 2021-03-18T16:25:04.000Z | 2021-11-13T00:29:27.000Z | src/texture/components/frame.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | null | null | null | src/texture/components/frame.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 1 | 2021-11-13T00:29:30.000Z | 2021-11-13T00:29:30.000Z | /**
* @file
* @author __AUTHOR_NAME__ <mail@host.com>
* @copyright 2021 __COMPANY_LTD__
* @license <a href="https://opensource.org/licenses/MIT">MIT License</a>
*/
#ifndef ZEN_TEXTURES_COMPONENTS_FRAME_HPP
#define ZEN_TEXTURES_COMPONENTS_FRAME_HPP
#include <string>
#include "../../ecs/entity.hpp"
#include "../... | 15.015707 | 74 | 0.585077 | hexoctal |
fca149fe0688e4b8e9adc90af2c0051f8aa235c8 | 12,118 | hpp | C++ | 3dc/avp/win95/heap_tem.hpp | Melanikus/AvP | 9d61eb974a23538e32bf2ef1b738643a018935a0 | [
"BSD-3-Clause"
] | null | null | null | 3dc/avp/win95/heap_tem.hpp | Melanikus/AvP | 9d61eb974a23538e32bf2ef1b738643a018935a0 | [
"BSD-3-Clause"
] | null | null | null | 3dc/avp/win95/heap_tem.hpp | Melanikus/AvP | 9d61eb974a23538e32bf2ef1b738643a018935a0 | [
"BSD-3-Clause"
] | null | null | null | #ifndef _included_heap_tem_hpp_
#define _included_heap_tem_hpp_
// Author: Jake Hotson, Rebellion Developments Ltd.
// Previously, the first declaration of these class templates was as friends
// of Ordered_Heap_Member. But Visual C++ 5 will not parse the friend
// declarations unless we give a forward declaration f... | 22.032727 | 122 | 0.620812 | Melanikus |
fca39b8f7c38636a36c894a516fd745946f9ef7c | 4,828 | cpp | C++ | SoftBodyExample002/src/ofApp.cpp | elosine/of | c0e79029271869c38db8086a1ae4e093db3d06c5 | [
"Apache-2.0"
] | null | null | null | SoftBodyExample002/src/ofApp.cpp | elosine/of | c0e79029271869c38db8086a1ae4e093db3d06c5 | [
"Apache-2.0"
] | null | null | null | SoftBodyExample002/src/ofApp.cpp | elosine/of | c0e79029271869c38db8086a1ae4e093db3d06c5 | [
"Apache-2.0"
] | null | null | null | #include "ofApp.h"
#include "BulletSoftBody/btSoftRigidDynamicsWorld.h"
#ifndef round
#define round(x) (x<0?ceil((x)-0.5):floor((x)+0.5))
#endif
//--------------------------------------------------------------
void ofApp::setup() {
ofSetFrameRate(60);
ofSetVerticalSync(true);
sender.setup(HOST, PORT);
... | 26.822222 | 120 | 0.509528 | elosine |
fca417f10322a6f89e1ab22f4677646149e98356 | 1,019 | cpp | C++ | testapp/scenes/PhysicsTestScene.cpp | artfulbytes/sumobot_simulator | f2784d2ff506759019d7d5e840bd7aed591a0add | [
"MIT"
] | null | null | null | testapp/scenes/PhysicsTestScene.cpp | artfulbytes/sumobot_simulator | f2784d2ff506759019d7d5e840bd7aed591a0add | [
"MIT"
] | null | null | null | testapp/scenes/PhysicsTestScene.cpp | artfulbytes/sumobot_simulator | f2784d2ff506759019d7d5e840bd7aed591a0add | [
"MIT"
] | null | null | null | #include "PhysicsTestScene.h"
#include "shapes/RectObject.h"
#include "shapes/CircleObject.h"
#include <glm/glm.hpp>
PhysicsTestScene::PhysicsTestScene() :
Scene("Test physics with 5x5cm@1kg box and 5cm@1kg ball", PhysicsWorld::Gravity::SideView)
{
const glm::vec4 color(1.0f, 1.0f, 1.0f, 1.0f);
const Body... | 48.52381 | 120 | 0.632974 | artfulbytes |
fca4b92b735242ef96313a85ae68c5c736d3abb1 | 2,425 | hpp | C++ | source/modus_core/detail/Timer.hpp | Gurman8r/modus | 5c97a89f77c1c5733793dddc20c5ce4afe1fd134 | [
"MIT"
] | null | null | null | source/modus_core/detail/Timer.hpp | Gurman8r/modus | 5c97a89f77c1c5733793dddc20c5ce4afe1fd134 | [
"MIT"
] | null | null | null | source/modus_core/detail/Timer.hpp | Gurman8r/modus | 5c97a89f77c1c5733793dddc20c5ce4afe1fd134 | [
"MIT"
] | null | null | null | #ifndef _ML_TIMER_HPP_
#define _ML_TIMER_HPP_
#include <modus_core/detail/Duration.hpp>
#include <modus_core/detail/NonCopyable.hpp>
namespace ml
{
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
ML_alias high_resolution_clock = typename chrono::high_resolution_clock;
ML_alias t... | 20.726496 | 83 | 0.514639 | Gurman8r |
fca972212583242a52954757673e9472f6112631 | 1,592 | cpp | C++ | tests/test035.cpp | rpnx-net/rntcsv | dedb3463602dbefd10fb6e4c24673a304959616c | [
"BSD-3-Clause"
] | null | null | null | tests/test035.cpp | rpnx-net/rntcsv | dedb3463602dbefd10fb6e4c24673a304959616c | [
"BSD-3-Clause"
] | null | null | null | tests/test035.cpp | rpnx-net/rntcsv | dedb3463602dbefd10fb6e4c24673a304959616c | [
"BSD-3-Clause"
] | null | null | null | // test035.cpp - custom conversion
#include <iomanip>
#include <math.h>
#include <rntcsv.h>
#include "unittest.h"
// Data requested as ints to be converted to fixed-point two decimal numbers
namespace rntcsv
{
template<>
void converter<int>::to_value(const std::string& pStr, int& pVal) const
{
pVal = static... | 24.492308 | 83 | 0.627513 | rpnx-net |
fcac94d26e672483b77aac90086fef421c03c832 | 1,308 | cpp | C++ | c535.cpp | puyuliao/ZJ-d879 | bead48e0a500f21bc78f745992f137706d15abf8 | [
"MIT"
] | null | null | null | c535.cpp | puyuliao/ZJ-d879 | bead48e0a500f21bc78f745992f137706d15abf8 | [
"MIT"
] | null | null | null | c535.cpp | puyuliao/ZJ-d879 | bead48e0a500f21bc78f745992f137706d15abf8 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#include<stdint.h>
using namespace std;
#define IOS {cin.tie(0);ios_base::sync_with_stdio(false);}
#define N 1000000
#pragma GCC target("avx")
#define ttry 200
int seed;
struct point{
int x,y;
double mx,my;
point(int _x,int _y):x(_x),y(_y),mx(_x * cos(seed) - _y * sin(seed)),my(-... | 25.153846 | 109 | 0.506881 | puyuliao |
fcae18ee50cec18cbf26660dcefac1f022977bf3 | 3,308 | cpp | C++ | Game/Engine/WorldPhysics/GravityStrategy.cpp | LukasKalinski/Gravity-Game | 5c817e3ae7658e5e42a8cff760a57380eb11fe3e | [
"MIT"
] | null | null | null | Game/Engine/WorldPhysics/GravityStrategy.cpp | LukasKalinski/Gravity-Game | 5c817e3ae7658e5e42a8cff760a57380eb11fe3e | [
"MIT"
] | null | null | null | Game/Engine/WorldPhysics/GravityStrategy.cpp | LukasKalinski/Gravity-Game | 5c817e3ae7658e5e42a8cff760a57380eb11fe3e | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////
// GravityStrategy.cpp
// Implementation of the Class GravityStrategy
// Created on: 28-mar-2008 10:27:34
// Original author: Lukas Kalinski
///////////////////////////////////////////////////////////
#include <iostream>
#include "GravitySt... | 26.677419 | 104 | 0.657497 | LukasKalinski |
fcb6211ebe0b44a7f024789d671a8f512ba0b613 | 1,619 | cpp | C++ | Behavioral/ChainOfResponsibility.cpp | ivan-volnov/DesignPatterns | fbbf8ec8a72d5b9c5d0563c7162feccdd3a6f34e | [
"MIT"
] | null | null | null | Behavioral/ChainOfResponsibility.cpp | ivan-volnov/DesignPatterns | fbbf8ec8a72d5b9c5d0563c7162feccdd3a6f34e | [
"MIT"
] | null | null | null | Behavioral/ChainOfResponsibility.cpp | ivan-volnov/DesignPatterns | fbbf8ec8a72d5b9c5d0563c7162feccdd3a6f34e | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
typedef enum {READ, WRITE, EXECUTE, UNKNOWN} Type;
class IHandler
{
public:
virtual void handle(Type arg)
{
}
protected:
IHandler *_handler;
IHandler(IHandler *handler) :
_handler(handler)
{
}
};
class IReadHander : public IHandler
{
... | 17.408602 | 70 | 0.578752 | ivan-volnov |
fcb69abd15338bf8287bd277f4df3dc10b2529f3 | 1,487 | cpp | C++ | reactor/Reactors.cpp | ty7swkr/abc | 3986908b0b0667a8c7f5f5fb6d6241a96a32b1e9 | [
"MIT"
] | 2 | 2021-08-15T03:42:52.000Z | 2021-12-02T08:22:08.000Z | reactor/Reactors.cpp | ty7swkr/open_reactor | 3986908b0b0667a8c7f5f5fb6d6241a96a32b1e9 | [
"MIT"
] | null | null | null | reactor/Reactors.cpp | ty7swkr/open_reactor | 3986908b0b0667a8c7f5f5fb6d6241a96a32b1e9 | [
"MIT"
] | null | null | null | /*
* Reactors.cpp
*
* Created on: 2020. 2. 12.
* Author: tys
*/
#include "Reactors.h"
using namespace reactor;
bool
Reactors::init(const size_t &thread_num,
const size_t &max_clients_per_reactor,
const size_t &max_events_per_reactor,
... | 22.19403 | 90 | 0.62811 | ty7swkr |
fcb8560557372a3312b85885f1b00a1dc8dfa869 | 6,568 | cpp | C++ | unit_tests/test_classes/pull_stub_param.cpp | 17605699101/oolua | 09df5d184f263a3e5538e869eb94cdc6fecd8707 | [
"MIT"
] | 1 | 2018-01-25T03:14:11.000Z | 2018-01-25T03:14:11.000Z | unit_tests/test_classes/pull_stub_param.cpp | 17605699101/oolua | 09df5d184f263a3e5538e869eb94cdc6fecd8707 | [
"MIT"
] | null | null | null | unit_tests/test_classes/pull_stub_param.cpp | 17605699101/oolua | 09df5d184f263a3e5538e869eb94cdc6fecd8707 | [
"MIT"
] | null | null | null |
# include "oolua_tests_pch.h"
# include "common_cppunit_headers.h"
# include "gmock/gmock.h"
# include "oolua.h"
# include "expose_pulls_stub_param.h"
# include <string>
//We are testing that a proxy class method can correctly pull a stub
//and can convert to the required type for the method which it is proxying.
cl... | 31.27619 | 97 | 0.784866 | 17605699101 |
fcba7fcef9dce7f98b69305ea5a0366ab2cbddcf | 260 | cpp | C++ | Olamundo/operador_ternario/main.cpp | tosantos1/LIP | 7dbc045afa02729f4e2f2f1d3b29baebf5be72ad | [
"MIT"
] | null | null | null | Olamundo/operador_ternario/main.cpp | tosantos1/LIP | 7dbc045afa02729f4e2f2f1d3b29baebf5be72ad | [
"MIT"
] | null | null | null | Olamundo/operador_ternario/main.cpp | tosantos1/LIP | 7dbc045afa02729f4e2f2f1d3b29baebf5be72ad | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
/*int x, y;
cin >> x;
if(x>10)
{
y = x +3;
}else {
y = 3*x;
}*/
int x, y;
cin >> x;
y = x > 10? x+3 : x*3;
cout << "y = " << y << endl;
return 0;
}
| 12.380952 | 28 | 0.373077 | tosantos1 |
fcc0df8b0f510bd9bafb61dc16890f4f7b40a750 | 232 | cpp | C++ | API/GameEngineContents/TitleLevel.cpp | Bellcow4/Portfolio | 4f04cbf6d5a3af77eed885de25d51c8a3083dfc7 | [
"MIT"
] | null | null | null | API/GameEngineContents/TitleLevel.cpp | Bellcow4/Portfolio | 4f04cbf6d5a3af77eed885de25d51c8a3083dfc7 | [
"MIT"
] | null | null | null | API/GameEngineContents/TitleLevel.cpp | Bellcow4/Portfolio | 4f04cbf6d5a3af77eed885de25d51c8a3083dfc7 | [
"MIT"
] | null | null | null | #include "TitleLevel.h"
#include "GameEngine/GameEngine.h"
TitleLevel::TitleLevel()
{
}
TitleLevel::~TitleLevel()
{
}
void TitleLevel::Loading()
{
}
void TitleLevel::Update()
{
GameEngine::GlobalEngine().ChangeLevel("Play");
}
| 11.6 | 48 | 0.706897 | Bellcow4 |
fcc6dc4ae622bccfd365842e47ab231e25e3bef5 | 1,179 | cpp | C++ | source/slang/slang-ir-ssa-simplification.cpp | lucy96chen/slang | fc84455d0d1cb6b9396ba869a17d6f8d4b65ecc6 | [
"MIT"
] | null | null | null | source/slang/slang-ir-ssa-simplification.cpp | lucy96chen/slang | fc84455d0d1cb6b9396ba869a17d6f8d4b65ecc6 | [
"MIT"
] | null | null | null | source/slang/slang-ir-ssa-simplification.cpp | lucy96chen/slang | fc84455d0d1cb6b9396ba869a17d6f8d4b65ecc6 | [
"MIT"
] | null | null | null | // slang-ir-ssa-simplification.cpp
#include "slang-ir-ssa-simplification.h"
#include "slang-ir.h"
#include "slang-ir-ssa.h"
#include "slang-ir-sccp.h"
#include "slang-ir-dce.h"
#include "slang-ir-simplify-cfg.h"
namespace Slang
{
struct IRModule;
// Run a combination of SSA, SCCP, SimplifyCFG, and DeadCodeEli... | 31.864865 | 111 | 0.651399 | lucy96chen |
fcc96a9e1300c7c8bbce1c731d75565523e9607a | 9,529 | cpp | C++ | ToolKit/Controls/Deprecated/XTVC50Helpers.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 2 | 2018-03-30T06:40:08.000Z | 2022-02-23T12:40:13.000Z | ToolKit/Controls/Deprecated/XTVC50Helpers.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | null | null | null | ToolKit/Controls/Deprecated/XTVC50Helpers.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 1 | 2020-08-11T05:48:02.000Z | 2020-08-11T05:48:02.000Z | // XTVC50Helpers.cpp : Visual C++ 5.0 helpers
//
// This file is a part of the XTREME CONTROLS MFC class library.
// (c)1998-2011 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
/... | 23.942211 | 77 | 0.673628 | 11Zero |
fcca148a1e72ffc4c900f388cb19bbf00f850513 | 2,031 | cpp | C++ | source/tests/widgetzeug-test/ColorGradientInterpolation_test.cpp | kateyy/libzeug | ffb697721cd8ef7d6e685fd5e2c655d711565634 | [
"MIT"
] | null | null | null | source/tests/widgetzeug-test/ColorGradientInterpolation_test.cpp | kateyy/libzeug | ffb697721cd8ef7d6e685fd5e2c655d711565634 | [
"MIT"
] | null | null | null | source/tests/widgetzeug-test/ColorGradientInterpolation_test.cpp | kateyy/libzeug | ffb697721cd8ef7d6e685fd5e2c655d711565634 | [
"MIT"
] | null | null | null | #include <gmock/gmock.h>
#include <QColor>
#include <QDebug>
#include <QList>
#include <widgetzeug/ColorGradient.h>
class ColorGradientInterpolation_test : public testing::Test
{
public:
ColorGradientInterpolation_test()
: m_colors({ { 221, 69, 76 }, { 47, 120, 224 }, { 172, 221, 122 } })
, m_positi... | 31.734375 | 120 | 0.712457 | kateyy |
fccd75f39c80811871b905e8b12053b851b46ea9 | 679 | hpp | C++ | spinok/source/ECS/ComponentList.hpp | ckgomes/projects_archive | f5282d51dd1539bbefb5c1d12d2ab35ec3d6e548 | [
"MIT"
] | 1 | 2016-06-04T14:34:23.000Z | 2016-06-04T14:34:23.000Z | spinok/source/ECS/ComponentList.hpp | ckgomes/projects_archive | f5282d51dd1539bbefb5c1d12d2ab35ec3d6e548 | [
"MIT"
] | null | null | null | spinok/source/ECS/ComponentList.hpp | ckgomes/projects_archive | f5282d51dd1539bbefb5c1d12d2ab35ec3d6e548 | [
"MIT"
] | null | null | null | #ifndef COMPONENT_LIST_HPP
#define COMPONENT_LIST_HPP
#include "../Common/Configuration.hpp"
#include "../Common/LanguageExtensions.hpp"
#include "../Components/Transform2DComponent.hpp"
#include "../Components/GraphicsComponent.hpp"
#include "../Components/PhysicsComponent.hpp"
#include "../Components/HullComponent.... | 22.633333 | 68 | 0.717231 | ckgomes |
fcd02c0e3f6d4612631ebefc530193b0951d1904 | 22,033 | hpp | C++ | include/crab/domains/array_smashing.hpp | LinerSu/crab | 8f3516f4b4765f4a093bb3c3a94ac2daa174130c | [
"Apache-2.0"
] | 152 | 2016-02-28T06:04:02.000Z | 2022-03-30T10:44:56.000Z | include/crab/domains/array_smashing.hpp | LinerSu/crab | 8f3516f4b4765f4a093bb3c3a94ac2daa174130c | [
"Apache-2.0"
] | 43 | 2017-07-03T06:25:19.000Z | 2022-03-23T21:09:32.000Z | include/crab/domains/array_smashing.hpp | LinerSu/crab | 8f3516f4b4765f4a093bb3c3a94ac2daa174130c | [
"Apache-2.0"
] | 28 | 2015-11-22T15:51:52.000Z | 2022-01-30T00:46:57.000Z | /*******************************************************************************
* Array smashing domain
*
* Word-level assumption: for any array load, it assumes that the
* number of read bytes is equal to the number of bytes written during
* the last array write. If this assumption is too strong then use the
* ... | 37.40747 | 82 | 0.636318 | LinerSu |
fcd3ff48e589a0c909cd6e1cc6360193765c9cbf | 10,307 | hpp | C++ | game_essentials/vector2d.hpp | martycagas/particle-game | 9ee67cc6ff029e94e08ad1b875ba3055ac3fa814 | [
"MIT"
] | null | null | null | game_essentials/vector2d.hpp | martycagas/particle-game | 9ee67cc6ff029e94e08ad1b875ba3055ac3fa814 | [
"MIT"
] | null | null | null | game_essentials/vector2d.hpp | martycagas/particle-game | 9ee67cc6ff029e94e08ad1b875ba3055ac3fa814 | [
"MIT"
] | null | null | null | /**
* @file vector2d.hpp
* @author Martin Cagas
*
* @brief Mathematical 2D vector.
*
* @section ATTRIBUTION
*
* This library contains pieces of code and ideas taken from the Godot Engine's implementation of
* the Vector2 class, licensed under the following license:
*
* Copyright (c) 2007-2021 Juan Lini... | 29.617816 | 99 | 0.551858 | martycagas |
fce19e7ea60fd7cf2d81e95963ef82a75ed605ef | 292 | cpp | C++ | Chapter06/Exercise39/Exercise39.cpp | PacktWorkshops/The-Cpp-Workshop | e96d86734d2c277eb3522fc3da8b9a0b765a94f7 | [
"MIT"
] | 86 | 2020-03-23T20:50:05.000Z | 2022-02-19T21:41:38.000Z | Chapter06/Exercise39/Exercise39.cpp | PacktWorkshops/The-Cpp-Workshop | e96d86734d2c277eb3522fc3da8b9a0b765a94f7 | [
"MIT"
] | 7 | 2020-02-14T12:14:39.000Z | 2021-12-27T09:15:01.000Z | Chapter06/Exercise39/Exercise39.cpp | PacktWorkshops/The-Cpp-Workshop | e96d86734d2c277eb3522fc3da8b9a0b765a94f7 | [
"MIT"
] | 66 | 2020-03-23T22:25:17.000Z | 2022-02-01T09:01:41.000Z | #include <iostream>
#include <cstring>
using namespace std;
int main()
{
char const* cp = "arbitrary null terminated text string";
char* buffer = new char[ strlen(cp)+1 ];
strcpy(buffer, cp);
cout << "buffer = " << buffer << endl;
delete[] buffer;
return 0;
}
| 17.176471 | 61 | 0.60274 | PacktWorkshops |
fce2e50ab548e23f98bb759114bb7425811cc1bd | 9,746 | cpp | C++ | code/source/texture.cpp | DEAKSoftware/KFX | 8a759d21a651d9f8acbfef2e3d19b1e8580a74b5 | [
"MIT"
] | null | null | null | code/source/texture.cpp | DEAKSoftware/KFX | 8a759d21a651d9f8acbfef2e3d19b1e8580a74b5 | [
"MIT"
] | null | null | null | code/source/texture.cpp | DEAKSoftware/KFX | 8a759d21a651d9f8acbfef2e3d19b1e8580a74b5 | [
"MIT"
] | null | null | null | /*===========================================================================
Texture Object
Dominik Deak
===========================================================================*/
#ifndef ___TEXTURE_CPP___
#define ___TEXTURE_CPP___
/*------------------------------------------------------------... | 30.939683 | 105 | 0.437 | DEAKSoftware |
fce94b344083aade5dcc79cb4a7b91dc88052981 | 2,501 | cpp | C++ | source/ashes/renderer/GlRenderer/Command/Commands/GlClearColourFboCommand.cpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 227 | 2018-09-17T16:03:35.000Z | 2022-03-19T02:02:45.000Z | source/ashes/renderer/GlRenderer/Command/Commands/GlClearColourFboCommand.cpp | DragonJoker/RendererLib | 0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a | [
"MIT"
] | 39 | 2018-02-06T22:22:24.000Z | 2018-08-29T07:11:06.000Z | source/ashes/renderer/GlRenderer/Command/Commands/GlClearColourFboCommand.cpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 8 | 2019-05-04T10:33:32.000Z | 2021-04-05T13:19:27.000Z | /*
This file belongs to Ashes.
See LICENSE file in root folder.
*/
#include "Command/Commands/GlClearColourFboCommand.hpp"
#include "Core/GlContextStateStack.hpp"
#include "Core/GlDevice.hpp"
#include "Image/GlImageView.hpp"
#include "Image/GlImage.hpp"
#include "RenderPass/GlFrameBuffer.hpp"
#include "ashesgl_api.hp... | 26.892473 | 104 | 0.665734 | DragonJoker |
fceedace44d9c566c27510e2eee838460792a711 | 1,025 | cpp | C++ | src/impl@win32/md_impl@mci.cpp | strear/saam | 4c0b4dd70d30caf606926825daa75ca2dd5ab0b9 | [
"MIT"
] | null | null | null | src/impl@win32/md_impl@mci.cpp | strear/saam | 4c0b4dd70d30caf606926825daa75ca2dd5ab0b9 | [
"MIT"
] | null | null | null | src/impl@win32/md_impl@mci.cpp | strear/saam | 4c0b4dd70d30caf606926825daa75ca2dd5ab0b9 | [
"MIT"
] | null | null | null | #include "../media.hpp"
#undef UNICODE
#include <windows.h>
#pragma comment(lib, "winmm.lib")
using namespace Saam;
namespace {
struct ImplData {
UINT id;
};
}
Media::Media(const char* file) : impl(new ImplData()) {
MCI_OPEN_PARMS openp;
openp.lpstrElementName = file;
mciSendCommand(NULL, MCI_OPEN, MCI_OPEN... | 22.282609 | 69 | 0.715122 | strear |
fcf1cc4b5a9d61d6bd084dc79a0a722c6b985316 | 2,063 | hpp | C++ | include/nana-source-view/skeleton/text_renderer.hpp | 5cript/nana-source-view | 6c9ad0c439e2a4952ff799eb99364e2bdf184b65 | [
"Unlicense"
] | null | null | null | include/nana-source-view/skeleton/text_renderer.hpp | 5cript/nana-source-view | 6c9ad0c439e2a4952ff799eb99364e2bdf184b65 | [
"Unlicense"
] | null | null | null | include/nana-source-view/skeleton/text_renderer.hpp | 5cript/nana-source-view | 6c9ad0c439e2a4952ff799eb99364e2bdf184b65 | [
"Unlicense"
] | null | null | null | #pragma once
#include <nana-source-view/interfaces/styler.hpp>
#include <nana-source-view/abstractions/store.hpp>
#include <nana/basic_types.hpp>
#include <nana/paint/graphics.hpp>
namespace nana_source_view::skeletons
{
class text_renderer
{
public: // Typedefs
using graph_reference = ::nana::pa... | 26.113924 | 80 | 0.555986 | 5cript |
fcff7910d7e166f864e44517d7f7e4accfe4c87f | 30 | cpp | C++ | VehicleSirenMute.cpp | CakeA/AdvancedVehicleSirens | aa1208b8028c69502d442e3aa285350a7aa1eda3 | [
"MIT"
] | 1 | 2021-08-01T18:07:34.000Z | 2021-08-01T18:07:34.000Z | VehicleSirenMute.cpp | CakeA/AdvancedVehicleSirens | aa1208b8028c69502d442e3aa285350a7aa1eda3 | [
"MIT"
] | null | null | null | VehicleSirenMute.cpp | CakeA/AdvancedVehicleSirens | aa1208b8028c69502d442e3aa285350a7aa1eda3 | [
"MIT"
] | 2 | 2021-03-06T12:37:50.000Z | 2021-04-09T14:03:02.000Z | #include "VehicleSirenMute.h"
| 15 | 29 | 0.8 | CakeA |
fcffaa6b931735086d60d9182c185b1959656430 | 6,129 | cpp | C++ | example/src/myWindowClass.cpp | arntrk/SplineBasis | de142177fd92df8bd6c8b9cb4533ce7f8994f426 | [
"MIT"
] | null | null | null | example/src/myWindowClass.cpp | arntrk/SplineBasis | de142177fd92df8bd6c8b9cb4533ce7f8994f426 | [
"MIT"
] | null | null | null | example/src/myWindowClass.cpp | arntrk/SplineBasis | de142177fd92df8bd6c8b9cb4533ce7f8994f426 | [
"MIT"
] | null | null | null | #include "myWindowClass.h"
#include "BSplineBasis.hpp"
#include "KnotVector.h"
#include "OpenGLShader.hpp"
#include <string>
#include <iostream>
struct Point {
GLfloat x;
GLfloat y;
GLfloat z;
};
std::vector<Point> vertices = {
{ -0.5f, -0.5f, 0.0f },
{ 0.5f, -0.5f, 0.0f },
{ 0.0f, 0.5f, 0.0f }
... | 24.813765 | 113 | 0.606135 | arntrk |
1e03c2823579360d4c79623acea7eb9fa691ebc6 | 8,630 | cpp | C++ | DaggerXL/DaggerXL_Game.cpp | kcat/XLEngine | 0e735ad67fa40632add3872e0cbe5a244689cbe5 | [
"MIT"
] | 1 | 2021-07-25T15:10:39.000Z | 2021-07-25T15:10:39.000Z | DaggerXL/DaggerXL_Game.cpp | kcat/XLEngine | 0e735ad67fa40632add3872e0cbe5a244689cbe5 | [
"MIT"
] | null | null | null | DaggerXL/DaggerXL_Game.cpp | kcat/XLEngine | 0e735ad67fa40632add3872e0cbe5a244689cbe5 | [
"MIT"
] | null | null | null | #include "DaggerXL_Game.h"
#include "DaggerXL_Player.h"
#include "Logic_Door.h"
#include "Logic_Obj_Action.h"
#include "Logic_NPC.h"
#include "../fileformats/ArchiveTypes.h"
#include "../fileformats/CellTypes.h"
#include "../ui/Console.h"
//Game instance used for console commands.
DaggerXL_Game *DaggerXL_Game::s_pGame... | 25.382353 | 164 | 0.61066 | kcat |
1e06aa92151892bb0f24629466337353225df0dc | 1,439 | cpp | C++ | test/tuple_try.cpp | mdobrea/effective-fix | 0dc8013a8470366f99281f191ea4379d59ef761a | [
"BSD-2-Clause"
] | 3 | 2016-08-08T08:05:11.000Z | 2021-02-02T09:11:35.000Z | test/tuple_try.cpp | mdobrea/effective-fix | 0dc8013a8470366f99281f191ea4379d59ef761a | [
"BSD-2-Clause"
] | null | null | null | test/tuple_try.cpp | mdobrea/effective-fix | 0dc8013a8470366f99281f191ea4379d59ef761a | [
"BSD-2-Clause"
] | 1 | 2019-12-29T22:19:47.000Z | 2019-12-29T22:19:47.000Z | #include <iostream>
#include <utility>
#include <tuple>
struct Currency
{
using ValueType=std::string;
Currency(const ValueType& value_) : value(value_) {}
ValueType value;
};
struct MarketID
{
using ValueType=std::string;
MarketID(const ValueType& value_) : value(value_) {}
ValueType value;
};
struct Securi... | 22.484375 | 111 | 0.672689 | mdobrea |
1e071e9d66c8cd59df672ae8589ff5754624e340 | 2,088 | cpp | C++ | Solution/PhoenixEngine/Source/Rendering/GFXUtils.cpp | rohunb/PhoenixEngine | 4d21f9000c2e0c553c398785e8cebff1bc190a8c | [
"MIT"
] | 2 | 2017-11-09T20:05:36.000Z | 2018-07-05T00:55:01.000Z | Solution/PhoenixEngine/Source/Rendering/GFXUtils.cpp | rohunb/PhoenixEngine | 4d21f9000c2e0c553c398785e8cebff1bc190a8c | [
"MIT"
] | null | null | null | Solution/PhoenixEngine/Source/Rendering/GFXUtils.cpp | rohunb/PhoenixEngine | 4d21f9000c2e0c553c398785e8cebff1bc190a8c | [
"MIT"
] | null | null | null | #include "Stdafx.h"
#include "Rendering/GFXUtils.h"
#include "Config/GFXCompileConfig.h"
#include "Rendering/Debug/GFXDebug.h"
#include "Rendering/GL/GLInterface.h"
#include "Rendering/GL/GLTypes.h"
#ifndef PHOENIX_GFX_COMPILE_CONFIG
# error("Config/GFXCompileConfig.h should be included in this file.")
#endif
using ... | 24 | 85 | 0.687739 | rohunb |
1e080990ec95179fd575d579fb1dd27ef65a9dc1 | 1,333 | cpp | C++ | Game/PlayerManager.cpp | BenzoL17/Dots | 4db6322d9a66da83a88a9fc24f5c3016682ff5bd | [
"MIT"
] | null | null | null | Game/PlayerManager.cpp | BenzoL17/Dots | 4db6322d9a66da83a88a9fc24f5c3016682ff5bd | [
"MIT"
] | null | null | null | Game/PlayerManager.cpp | BenzoL17/Dots | 4db6322d9a66da83a88a9fc24f5c3016682ff5bd | [
"MIT"
] | null | null | null | #include "PlayerManager.h"
IPlayer *player;
IPlayer *firstPlayer;
IPlayer *secondPlayer;
PlayerManager::PlayerManager()
{
}
PlayerManager::~PlayerManager()
{
}
PlayerManager * PlayerManager::getInstance()
{
static PlayerManager *instance;
if (!instance)
instance = new PlayerManager();
retu... | 15.869048 | 49 | 0.669167 | BenzoL17 |
1e0bc4e288d8da3916af0a30811643600364f7e9 | 8,389 | hpp | C++ | include/fpt/Pairs.hpp | frobnitzem/FastParticleToolkit | d5bc77f891d8aae18d777b8855ff4a6b3dd79761 | [
"CC-BY-4.0"
] | null | null | null | include/fpt/Pairs.hpp | frobnitzem/FastParticleToolkit | d5bc77f891d8aae18d777b8855ff4a6b3dd79761 | [
"CC-BY-4.0"
] | null | null | null | include/fpt/Pairs.hpp | frobnitzem/FastParticleToolkit | d5bc77f891d8aae18d777b8855ff4a6b3dd79761 | [
"CC-BY-4.0"
] | null | null | null | #pragma once
#include <fpt/Cell.hpp>
#define SQR(x) ((x)*(x))
/* E = eps ( s/r^12 - 2 s/r^6 ) = 4 eps (s1/r^12 - s1/r^6)
* s = 2^(1/6) s1
*
* for s = eps = 1
* E = r2^(-6) - 2 r2^(-3)
*
* dE / d(r2) = -6 r2^(-7) + 6 r2^(-4)
* given r2 = (x1-x2)**2 + (y1-y2)**2 + (z1-z2)**2
*
* d(r2) / dx1 = 2 (x1-x... | 33.027559 | 120 | 0.513291 | frobnitzem |
1f62e127190c17b3b1c3b682767ebf75b7a9fdff | 1,169 | cpp | C++ | heap_priorityQueue/BINHEAP.cpp | heyswappy/Data-Structures-In-C | 58945a8125f821a17cabb622f381c4b37ddef578 | [
"MIT"
] | 1 | 2019-03-14T13:37:44.000Z | 2019-03-14T13:37:44.000Z | heap_priorityQueue/BINHEAP.cpp | heyswappy/Data-Structures-In-C | 58945a8125f821a17cabb622f381c4b37ddef578 | [
"MIT"
] | null | null | null | heap_priorityQueue/BINHEAP.cpp | heyswappy/Data-Structures-In-C | 58945a8125f821a17cabb622f381c4b37ddef578 | [
"MIT"
] | 1 | 2021-03-23T16:42:37.000Z | 2021-03-23T16:42:37.000Z | #include<iostream>
#include<cstdlib>
class Heap{
private:
int *arr;
int count;
public:
void percolateUp(int i);
void percolateDown(int i);
void insert(int a);
int pop();
int *sort();
};
void Heap :: percolateUp(int i){
int parent = (i-1)/2;
if(parent<0 || i<0){
return;
}
if(arr[parent... | 15.381579 | 45 | 0.534645 | heyswappy |
1f65b6f9dc134fd16f681d9bf8142503797b2d99 | 17,297 | hpp | C++ | boost/graph/distributed/distributed_control.hpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | 1 | 2021-09-03T10:22:04.000Z | 2021-09-03T10:22:04.000Z | boost/graph/distributed/distributed_control.hpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | null | null | null | boost/graph/distributed/distributed_control.hpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2018 Thejaka Amila Kanewala, Marcin Zalewski, Andrew Lumsdaine.
// Boost Software License - Version 1.0 - August 17th, 2003
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the... | 31.109712 | 313 | 0.704284 | thejkane |
1f6696544f49df3477ae868fa23312e02f622314 | 1,304 | cpp | C++ | LinkedList/SearchinLL.cpp | ShivamDureja/Data-Structures-And-Algorithms | 49c8fe18cbb57c54e8af900ca166604f967e7285 | [
"Unlicense"
] | 1 | 2021-11-24T05:25:42.000Z | 2021-11-24T05:25:42.000Z | LinkedList/SearchinLL.cpp | ShivamDureja/Data-Structures-And-Algorithms | 49c8fe18cbb57c54e8af900ca166604f967e7285 | [
"Unlicense"
] | null | null | null | LinkedList/SearchinLL.cpp | ShivamDureja/Data-Structures-And-Algorithms | 49c8fe18cbb57c54e8af900ca166604f967e7285 | [
"Unlicense"
] | null | null | null | #include <iostream>
using namespace std;
struct Node
{
int data;
struct Node *next;
} *first = NULL;
void create(int A[], int n)
{
struct Node *t, *last;
first = (struct Node *)malloc(sizeof(struct Node));
first->data = A[0];
first->next = NULL;
last = first;
for (int i = 1; i < n; i+... | 17.863014 | 57 | 0.450153 | ShivamDureja |
1f74b8528d5d1e3388d4c61563bddfaed127b572 | 4,818 | cpp | C++ | src/main.cpp | zzx9636/BosonUSB_Stereo | 270ee5c4ce161c83481fa3b318bfaf6aaa6207b9 | [
"MIT"
] | null | null | null | src/main.cpp | zzx9636/BosonUSB_Stereo | 270ee5c4ce161c83481fa3b318bfaf6aaa6207b9 | [
"MIT"
] | null | null | null | src/main.cpp | zzx9636/BosonUSB_Stereo | 270ee5c4ce161c83481fa3b318bfaf6aaa6207b9 | [
"MIT"
] | null | null | null | #include "CameraStreamer.hpp"
#include "cvMatContainer.hpp"
#include "opencv2/highgui.hpp"
#include <sys/types.h>
#include <sys/stat.h>
#include <cmath>
#define MAX_DT 33334
#define NUM_CAM 2
int main()
{
//USB Camera indices
vector<string> capture_index = { "/dev/video1", "/dev/video2" };
bool show_img =... | 34.170213 | 127 | 0.471773 | zzx9636 |
1f754ac95b4b9d38c24d44229f78d8f042085519 | 939 | cpp | C++ | src/jsxer/nodes/IfStatement.cpp | psyirius/jsxer | e55dea39356dcbd482a03e0069eb3dd64473751e | [
"BSD-3-Clause"
] | 5 | 2022-01-18T17:46:17.000Z | 2022-03-08T19:16:10.000Z | src/jsxer/nodes/IfStatement.cpp | psyirius/jsxer | e55dea39356dcbd482a03e0069eb3dd64473751e | [
"BSD-3-Clause"
] | 15 | 2022-02-07T15:31:59.000Z | 2022-03-26T00:20:09.000Z | src/jsxer/nodes/IfStatement.cpp | psyirius/jsxer | e55dea39356dcbd482a03e0069eb3dd64473751e | [
"BSD-3-Clause"
] | 1 | 2022-02-07T05:09:32.000Z | 2022-02-07T05:09:32.000Z | #include "IfStatement.h"
void IfStatement::parse() {
bodyInfo = decoders::d_line_info(reader);
test = decoders::d_node(reader);
otherwise = decoders::d_node(reader);
}
string IfStatement::to_string() {
string result = bodyInfo.lbl_statement() + "if (" + test->to_string() + ") { \n"
... | 29.34375 | 106 | 0.574015 | psyirius |
1f89886662e342f30a3e338c592179368e7d0d1e | 2,356 | hpp | C++ | PlayRho/Dynamics/WorldImplJoint.hpp | Hexlord/PlayRho | a3a91554cf9b267894d06a996c5799a0479c5b5f | [
"Zlib"
] | 88 | 2017-07-13T18:12:40.000Z | 2022-03-23T03:43:11.000Z | PlayRho/Dynamics/WorldImplJoint.hpp | Hexlord/PlayRho | a3a91554cf9b267894d06a996c5799a0479c5b5f | [
"Zlib"
] | 388 | 2017-07-13T04:32:09.000Z | 2021-11-10T20:59:23.000Z | PlayRho/Dynamics/WorldImplJoint.hpp | Hexlord/PlayRho | a3a91554cf9b267894d06a996c5799a0479c5b5f | [
"Zlib"
] | 18 | 2017-07-20T16:14:57.000Z | 2021-06-20T07:17:23.000Z | /*
* Original work Copyright (c) 2006-2011 Erin Catto http://www.box2d.org
* Modified work Copyright (c) 2021 Louis Langholtz https://github.com/louis-langholtz/PlayRho
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* a... | 35.164179 | 94 | 0.75764 | Hexlord |
1f8da2357183dbd656fc96ad0430a573d63fdddc | 1,217 | cpp | C++ | AliceVector3.cpp | BattleFireLTD/Rasterizer | ca6f25a0e14ee338bd4378264380be2e861cb18a | [
"MIT"
] | 2 | 2021-11-15T12:42:26.000Z | 2022-03-14T11:06:27.000Z | AliceVector3.cpp | BattleFireLTD/Rasterizer | ca6f25a0e14ee338bd4378264380be2e861cb18a | [
"MIT"
] | null | null | null | AliceVector3.cpp | BattleFireLTD/Rasterizer | ca6f25a0e14ee338bd4378264380be2e861cb18a | [
"MIT"
] | 1 | 2020-09-15T07:57:39.000Z | 2020-09-15T07:57:39.000Z | #include "AliceVector3.h"
#include <math.h>
namespace Alice {
Vector3 Vector3::operator+(const Vector3&r) {
return Vector3(x + r.x, y + r.y, z + r.z);
}
Vector3 Vector3::operator-(const Vector3&r) {
return Vector3(x - r.x, y - r.y, z - r.z);
}
Vector3 Vector3::operator*(float scalar) {
return Vector3(x*scala... | 24.34 | 62 | 0.599014 | BattleFireLTD |
1fa065a50128977eb33e73f32abeea11c20ee39d | 66 | cpp | C++ | energy/src/energy/solve_angle/solve_angle.cpp | tianyuecao/SJTU-RM-CV-2019 | f6845aa8dfe785d6a025e698ac2e227638cb0fa0 | [
"MIT"
] | null | null | null | energy/src/energy/solve_angle/solve_angle.cpp | tianyuecao/SJTU-RM-CV-2019 | f6845aa8dfe785d6a025e698ac2e227638cb0fa0 | [
"MIT"
] | null | null | null | energy/src/energy/solve_angle/solve_angle.cpp | tianyuecao/SJTU-RM-CV-2019 | f6845aa8dfe785d6a025e698ac2e227638cb0fa0 | [
"MIT"
] | null | null | null | //
// Created by vanessa on 12/7/19.
//
#include "solve_angle.h"
| 11 | 33 | 0.636364 | tianyuecao |
1fa0c6626fc2ceaa37e8bf1789cf46c8e45f1ae4 | 977 | cpp | C++ | 08_class_copy/main.cpp | acc-cosc-1337-spring-2019/midterm-spring-2019-littlefeller | 2d8268c5f7a4de0f40a2a2b2e855cdac41f4b213 | [
"MIT"
] | null | null | null | 08_class_copy/main.cpp | acc-cosc-1337-spring-2019/midterm-spring-2019-littlefeller | 2d8268c5f7a4de0f40a2a2b2e855cdac41f4b213 | [
"MIT"
] | null | null | null | 08_class_copy/main.cpp | acc-cosc-1337-spring-2019/midterm-spring-2019-littlefeller | 2d8268c5f7a4de0f40a2a2b2e855cdac41f4b213 | [
"MIT"
] | null | null | null | /*
Create a Die instance and copy to another Die variable.
Explain what happens with comments in your code.
Create a reference to a Die, explain what happens with comments in your code.
Create test cases in 08_class_copy_test.
*/
#include "die.h"
#include<iostream>
int main()
{
//d2 is a copy of d1, meaning t... | 16.844828 | 124 | 0.62129 | acc-cosc-1337-spring-2019 |
1fa7e88810b5cbbd7df71a709fde62130e7931ff | 1,363 | cpp | C++ | solved/l-n/monitoring-processes/monitoring.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/l-n/monitoring-processes/monitoring.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/l-n/monitoring-processes/monitoring.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <algorithm>
#include <cstdio>
using namespace std;
#define MAXN 50000
typedef unsigned int u32;
struct Reader {
char b; Reader() { read(); }
void read() { int r = fgetc_unlocked(stdin); b = r == EOF ? 0 : r; }
void skip() { while (b > 0 && b <= 32) read(); }
u32 next_u32() {
u32 v... | 18.418919 | 76 | 0.450477 | abuasifkhan |
1faa2c60162073cf4340d9f4036581a80ebb6f80 | 522 | hpp | C++ | CNN/value_array_matcher.hpp | suiyili/projects | 29b4ab0435c8994809113c444b3dea4fff60b75c | [
"MIT"
] | null | null | null | CNN/value_array_matcher.hpp | suiyili/projects | 29b4ab0435c8994809113c444b3dea4fff60b75c | [
"MIT"
] | null | null | null | CNN/value_array_matcher.hpp | suiyili/projects | 29b4ab0435c8994809113c444b3dea4fff60b75c | [
"MIT"
] | null | null | null | #pragma once
#include "dnn_type.hpp"
#include <catch2/matchers/catch_matchers.hpp>
using namespace cnn;
using namespace Catch::Matchers;
class value_array_matcher final : public MatcherBase<value_array> {
public:
explicit value_array_matcher(const value_array &expected);
~value_array_matcher() override = default... | 24.857143 | 67 | 0.791188 | suiyili |
1fafc9aa3f2f3993de4fda4df460de15de5655bf | 1,066 | cpp | C++ | data/dailyCodingProblem235.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | 2 | 2020-09-04T20:56:23.000Z | 2021-06-11T07:42:26.000Z | data/dailyCodingProblem235.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | data/dailyCodingProblem235.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*
Given an array of numbers of length N, find both
the minimum and maximum using less than 2 * (N - 2) comparisons.
*/
// first elment is min and second in max
pair<int, int> minMaxArray(int arr[], int n) {
if(n == 0) return {INT_MAX, INT_MIN};
pair<int, int> ans;
... | 19.381818 | 64 | 0.547842 | vidit1999 |
1fb6069a91f81e2a719d7ae02860588bbe7f5949 | 6,820 | cc | C++ | src/mlir/driver.cc | aghosn/verona | b75b96bd2b496b662caea58b69fb1c2893cd5f72 | [
"MIT"
] | 3,477 | 2020-01-16T20:13:28.000Z | 2022-03-28T10:46:50.000Z | src/mlir/driver.cc | aghosn/verona | b75b96bd2b496b662caea58b69fb1c2893cd5f72 | [
"MIT"
] | 328 | 2020-01-17T00:33:59.000Z | 2022-03-25T09:40:33.000Z | src/mlir/driver.cc | aghosn/verona | b75b96bd2b496b662caea58b69fb1c2893cd5f72 | [
"MIT"
] | 198 | 2020-01-16T20:55:57.000Z | 2022-02-19T09:26:43.000Z | // Copyright Microsoft and Project Verona Contributors.
// SPDX-License-Identifier: MIT
#include "driver.h"
#include "consumer.h"
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/Dialect/StandardOps/IR/Ops.h"
#include "mlir/ExecutionEngi... | 27.95082 | 79 | 0.665836 | aghosn |
1fb7992c1ac8eebf69f7f03119aef5fc810c20e2 | 659 | cpp | C++ | raygame/ShootingComponent.cpp | RavisSavoy47/AIDecisionMakingExercise | eb0f7d97c7261aabc244ae2f048bc786383bfa3e | [
"MIT"
] | null | null | null | raygame/ShootingComponent.cpp | RavisSavoy47/AIDecisionMakingExercise | eb0f7d97c7261aabc244ae2f048bc786383bfa3e | [
"MIT"
] | null | null | null | raygame/ShootingComponent.cpp | RavisSavoy47/AIDecisionMakingExercise | eb0f7d97c7261aabc244ae2f048bc786383bfa3e | [
"MIT"
] | null | null | null | #include "ShootingComponent.h"
#include "Bullet.h"
#include "Transform2D.h"
#include "Engine.h"
#include "GameManager.h"
#include "Transform2D.h"
ShootingComponent::ShootingComponent(Actor* target, float cooldown)
{
m_timer = 0;
m_cooldown = cooldown;
m_target = target;
}
void ShootingComponent::update(float del... | 24.407407 | 125 | 0.729894 | RavisSavoy47 |
1fb7cd5ef74eaf5fdfe3a9247e8e95cabb3696aa | 1,540 | cpp | C++ | graph/_dinic2.cpp | albexl/team-reference | eeeeb5f715c59890cc1d7753fdadb0d29ad3273b | [
"MIT"
] | 1 | 2021-07-16T19:59:38.000Z | 2021-07-16T19:59:38.000Z | graph/_dinic2.cpp | albexl/team-reference | eeeeb5f715c59890cc1d7753fdadb0d29ad3273b | [
"MIT"
] | null | null | null | graph/_dinic2.cpp | albexl/team-reference | eeeeb5f715c59890cc1d7753fdadb0d29ad3273b | [
"MIT"
] | null | null | null | template<typename F>
struct dinic
{
struct edge
{
int src, dst, rev;
F flow, cap;
};
int n;
vector<vector<edge>> adj;
dinic(int n) : n(n), adj(n), it(n), level(n) {}
void add_edge(int u, int v, F cuv, F cvu = 0)
{
adj[u].push_back({u, v, (int) adj[v].size(), 0, cuv});
if (u == v) adj[u].back().rev++;... | 17.111111 | 60 | 0.48961 | albexl |
1fc4fe503fea3864c0b057651905f0b49c4d286d | 210 | hpp | C++ | srcXcode/srcXcode/MyBot.hpp | alexsct20/antsChallenge | c96854ee0d61315db1b1c46ccbf5ed0fe2103c05 | [
"Apache-1.1"
] | null | null | null | srcXcode/srcXcode/MyBot.hpp | alexsct20/antsChallenge | c96854ee0d61315db1b1c46ccbf5ed0fe2103c05 | [
"Apache-1.1"
] | null | null | null | srcXcode/srcXcode/MyBot.hpp | alexsct20/antsChallenge | c96854ee0d61315db1b1c46ccbf5ed0fe2103c05 | [
"Apache-1.1"
] | null | null | null | //
// MyBot.hpp
// srcXcode
//
// Created by Alexandre on 07/01/2017.
// Copyright © 2017 Alexandre. All rights reserved.
//
#ifndef MyBot_hpp
#define MyBot_hpp
#include <stdio.h>
#endif /* MyBot_hpp */
| 14 | 52 | 0.666667 | alexsct20 |
1fc57e8068d3766eb4efe1fe12e3672f012b573f | 486 | cpp | C++ | vm/builtin/autoload.cpp | DCarper/rubinius | 6d1f079d0e792fda5606de65c81c8d622366a822 | [
"BSD-3-Clause"
] | 2 | 2016-08-07T17:14:57.000Z | 2020-03-03T08:51:37.000Z | vm/builtin/autoload.cpp | slawosz/rubinius | 6cb4a19a33e942110ae14a1721cf4b48036fcc06 | [
"BSD-3-Clause"
] | 1 | 2022-03-12T14:09:00.000Z | 2022-03-12T14:09:00.000Z | vm/builtin/autoload.cpp | slawosz/rubinius | 6cb4a19a33e942110ae14a1721cf4b48036fcc06 | [
"BSD-3-Clause"
] | 1 | 2021-09-18T04:55:38.000Z | 2021-09-18T04:55:38.000Z | #include "prelude.hpp"
#include "call_frame.hpp"
#include "builtin/class.hpp"
#include "builtin/autoload.hpp"
namespace rubinius {
Autoload* Autoload::create(STATE) {
return state->new_object<Autoload>(G(autoload));
}
void Autoload::init(STATE) {
GO(autoload).set(state->new_class("Autoload"));
G(aut... | 24.3 | 59 | 0.703704 | DCarper |
1fc657661af12d2deaed997d65c43aa44f8bc275 | 1,698 | cc | C++ | ext/capn_proto/stream_fd_message_reader.cc | peakxu/capnp-ruby | f310932d6fab58e04a5346b45f48b2e2ad0afed9 | [
"MIT"
] | 40 | 2015-01-21T21:15:14.000Z | 2022-02-14T07:31:07.000Z | ext/capn_proto/stream_fd_message_reader.cc | peakxu/capnp-ruby | f310932d6fab58e04a5346b45f48b2e2ad0afed9 | [
"MIT"
] | 4 | 2015-03-27T16:21:15.000Z | 2017-07-14T21:35:28.000Z | ext/capn_proto/stream_fd_message_reader.cc | peakxu/capnp-ruby | f310932d6fab58e04a5346b45f48b2e2ad0afed9 | [
"MIT"
] | 8 | 2015-03-21T13:02:53.000Z | 2018-05-11T09:06:09.000Z | #include "ruby_capn_proto.h"
#include "message_reader.h"
#include "stream_fd_message_reader.h"
#include "struct_schema.h"
#include "dynamic_struct_reader.h"
#include "class_builder.h"
#include "exception.h"
namespace ruby_capn_proto {
using WrappedType = capnp::StreamFdMessageReader;
VALUE StreamFdMessageReader::C... | 28.3 | 82 | 0.703769 | peakxu |
1fc7a20b6e3746f63e44544aab29550e2c539bc2 | 9,764 | cpp | C++ | src/c/PlayingData.cpp | Hiiragi/Harmonia | e47e811364e15a9bc7b2322c10d1e35fca041e2a | [
"MIT"
] | null | null | null | src/c/PlayingData.cpp | Hiiragi/Harmonia | e47e811364e15a9bc7b2322c10d1e35fca041e2a | [
"MIT"
] | null | null | null | src/c/PlayingData.cpp | Hiiragi/Harmonia | e47e811364e15a9bc7b2322c10d1e35fca041e2a | [
"MIT"
] | null | null | null | /**
* Harmonia
*
* Copyright (c) 2018 Hiiragi
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
#include "PlayingData.h"
#include "SoundGroup.h"
#include "Harmonia.h"
#include "SoundStatus.h"
#include "SoundEventType.h"
#include "ogg/ogg.h"
#include "vorbis/... | 21.272331 | 136 | 0.704322 | Hiiragi |
1fd257b24bb09c0085bee1408cb419d36eeb42da | 2,203 | cpp | C++ | src/forms/editors/BaseEditor.cpp | stoneface86/gbsynth | b585378227522e02cc76f29e7b4b4be4b0568689 | [
"MIT"
] | null | null | null | src/forms/editors/BaseEditor.cpp | stoneface86/gbsynth | b585378227522e02cc76f29e7b4b4be4b0568689 | [
"MIT"
] | null | null | null | src/forms/editors/BaseEditor.cpp | stoneface86/gbsynth | b585378227522e02cc76f29e7b4b4be4b0568689 | [
"MIT"
] | null | null | null |
#include "forms/editors/BaseEditor.hpp"
#include <QSignalBlocker>
#include <QHBoxLayout>
#include <QLabel>
#include <QShowEvent>
#include <QtDebug>
BaseEditor::BaseEditor(
BaseTableModel &model,
PianoInput const& input,
QWidget *parent
) :
PersistantDialog(parent, Qt::WindowTitleHint | Qt::WindowSys... | 23.945652 | 105 | 0.668634 | stoneface86 |
1fd49032f52ecd2460e9e3439237a9074620a8cb | 1,019 | cpp | C++ | src/algorithms/warmup/PlusMinus.cpp | notoes/HackerRankChallenges | 95f280334846a57cfc8433662a1ed0de2aacc3e9 | [
"MIT"
] | null | null | null | src/algorithms/warmup/PlusMinus.cpp | notoes/HackerRankChallenges | 95f280334846a57cfc8433662a1ed0de2aacc3e9 | [
"MIT"
] | null | null | null | src/algorithms/warmup/PlusMinus.cpp | notoes/HackerRankChallenges | 95f280334846a57cfc8433662a1ed0de2aacc3e9 | [
"MIT"
] | null | null | null | /*
https://www.hackerrank.com/challenges/plus-minus
Given an array of integers, calculate which fraction of its elements are positive, which fraction of its elements are negative, and which fraction of its elements are zeroes, respectively. Print the decimal value of each fraction on a new line.
*/
#include <l... | 24.853659 | 248 | 0.615309 | notoes |
1fd522855c93ee7a49caaefd520ea7535c9587bd | 1,281 | hpp | C++ | boost/sequence/end.hpp | ericniebler/time_series | 4040119366cc21f25c7734bb355e4a647296a96d | [
"BSL-1.0"
] | 11 | 2015-02-21T11:23:44.000Z | 2021-08-15T03:39:29.000Z | boost/sequence/end.hpp | ericniebler/time_series | 4040119366cc21f25c7734bb355e4a647296a96d | [
"BSL-1.0"
] | null | null | null | boost/sequence/end.hpp | ericniebler/time_series | 4040119366cc21f25c7734bb355e4a647296a96d | [
"BSL-1.0"
] | 3 | 2015-05-09T02:25:42.000Z | 2019-11-02T13:39:29.000Z | // Copyright David Abrahams 2006. 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)
#ifndef BOOST_SEQUENCE_END_DWA200655_HPP
# define BOOST_SEQUENCE_END_DWA200655_HPP
# include <boost/detail/function1.hpp>
# i... | 24.634615 | 74 | 0.662763 | ericniebler |
1fd7c8c8023682b54edb138f4ab1f1e1648b5882 | 4,212 | hpp | C++ | benchmark.hpp | lebensterben/pq-fast-scan | cf4a26ddae4540811b7479c55c87ade3d186fd94 | [
"BSD-3-Clause-Clear"
] | 45 | 2015-09-12T12:32:18.000Z | 2022-03-09T02:24:34.000Z | benchmark.hpp | lebensterben/pq-fast-scan | cf4a26ddae4540811b7479c55c87ade3d186fd94 | [
"BSD-3-Clause-Clear"
] | 3 | 2016-01-21T03:23:16.000Z | 2021-01-19T11:21:31.000Z | benchmark.hpp | lebensterben/pq-fast-scan | cf4a26ddae4540811b7479c55c87ade3d186fd94 | [
"BSD-3-Clause-Clear"
] | 13 | 2016-04-13T07:43:39.000Z | 2022-03-09T02:24:36.000Z | //
// Copyright (c) 2015 – Thomson Licensing, SAS
//
// The source code form of this open source project is subject to the terms of the
// Clear BSD license.
//
// You can redistribute it and/or modify it under the terms of the Clear BSD
// License (See LICENSE file).
//
#ifndef BENCHMARK_HPP_
#define BENCHMARK_HPP_
... | 30.302158 | 108 | 0.696581 | lebensterben |
1fdaeb819447040659a9af2a0f7a481eacbb13a3 | 439 | cpp | C++ | ojo.cpp | EnriqueJose99/P3Lab-5_EnriqueJoseGaleanoTalavera | 69b2e7f20256b4da6dd1dc182609d23fffdd855c | [
"MIT"
] | null | null | null | ojo.cpp | EnriqueJose99/P3Lab-5_EnriqueJoseGaleanoTalavera | 69b2e7f20256b4da6dd1dc182609d23fffdd855c | [
"MIT"
] | null | null | null | ojo.cpp | EnriqueJose99/P3Lab-5_EnriqueJoseGaleanoTalavera | 69b2e7f20256b4da6dd1dc182609d23fffdd855c | [
"MIT"
] | null | null | null | #include "ojo.h"
#include <string>
using namespace std;
Ojo::Ojo(){
}
Ojo::Ojo(string pColorOJ, bool pVisionNocturna){
colorOJ = pColorOJ;
visionNocturna = pVisionNocturna;
}
void Ojo::setColorOJ(string pColorOJ){
colorOJ = pColorOJ;
}
string Ojo::getColorOJ(){
return colorOJ;
}
void Ojo::setVisionNocturna(... | 16.884615 | 50 | 0.738041 | EnriqueJose99 |
1fdb68927e0800997f016d8d2d0663bbb3ce365b | 746 | cpp | C++ | src/StackAllocator.cpp | vazgriz/NovaEngine | ce0dba1408a61d4387193556353731f1f2678b66 | [
"MIT"
] | null | null | null | src/StackAllocator.cpp | vazgriz/NovaEngine | ce0dba1408a61d4387193556353731f1f2678b66 | [
"MIT"
] | null | null | null | src/StackAllocator.cpp | vazgriz/NovaEngine | ce0dba1408a61d4387193556353731f1f2678b66 | [
"MIT"
] | null | null | null | #include "NovaEngine/StackAllocator.h"
using namespace Nova;
StackAllocator::StackAllocator(size_t offset, size_t size) {
m_offset = offset;
m_size = size;
m_ptr = offset;
}
Allocation StackAllocator::allocate(size_t size, size_t alignment) {
size_t ptr = IGenericAllocator::align(m_ptr, alignment);
... | 23.3125 | 68 | 0.647453 | vazgriz |
1fdc8e454b13ceb31683dc5a4145c882c8472c56 | 2,945 | cpp | C++ | TopmostThumbnail/main.cpp | robmikh/TopmostThumbnail | b5351963b6fa6041b2c7175a7f2911dfa2e71e5c | [
"MIT"
] | null | null | null | TopmostThumbnail/main.cpp | robmikh/TopmostThumbnail | b5351963b6fa6041b2c7175a7f2911dfa2e71e5c | [
"MIT"
] | null | null | null | TopmostThumbnail/main.cpp | robmikh/TopmostThumbnail | b5351963b6fa6041b2c7175a7f2911dfa2e71e5c | [
"MIT"
] | null | null | null | #include "pch.h"
#include "MainWindow.h"
namespace winrt
{
using namespace Windows::Foundation;
using namespace Windows::Foundation::Numerics;
}
namespace util
{
using namespace robmikh::common::desktop;
}
util::WindowInfo GetWindowToCapture(std::vector<util::WindowInfo> const& windows);
int wmain(int ... | 27.268519 | 82 | 0.580985 | robmikh |
1fdca8fbb7f658eeb6ad1f137ed043f89648a861 | 1,615 | cpp | C++ | tests/card_test.cpp | CS126SP20/kingdoms-project | 393a4e2007785cdac709c55ecf63a6abc3914830 | [
"MIT"
] | null | null | null | tests/card_test.cpp | CS126SP20/kingdoms-project | 393a4e2007785cdac709c55ecf63a6abc3914830 | [
"MIT"
] | null | null | null | tests/card_test.cpp | CS126SP20/kingdoms-project | 393a4e2007785cdac709c55ecf63a6abc3914830 | [
"MIT"
] | null | null | null | // Created by Eric Xu on 4/30/20.
#include <mylibrary/card.h>
#include <catch2/catch.hpp>
using mylibrary::Card;
TEST_CASE("5-arg Constructor") {
string name = "hit";
string match = "dodge";
string file = "cards/hit.jpeg";
Card hit(-1,name, match, 30, file);
REQUIRE(hit.GetHealth() == -1);
REQUIRE(hit.G... | 26.47541 | 47 | 0.640867 | CS126SP20 |
1fdcb224cf4a350197282ffa908afba6259459c7 | 3,043 | cpp | C++ | src/common/Auth.cpp | aafemt/firebird | 6f5617524996a8ef6eb721cc782d7fa3513b7d3b | [
"Condor-1.1"
] | 1 | 2021-04-04T12:16:07.000Z | 2021-04-04T12:16:07.000Z | src/common/Auth.cpp | mistmist/firebird | d31495be14daa8bca46c879bdaf0e30194abd891 | [
"Condor-1.1"
] | null | null | null | src/common/Auth.cpp | mistmist/firebird | d31495be14daa8bca46c879bdaf0e30194abd891 | [
"Condor-1.1"
] | null | null | null | /*
* PROGRAM: Firebird authentication
* MODULE: Auth.cpp
* DESCRIPTION: Implementation of interfaces, passed to plugins
* Plugins loader
*
* The contents of this file are subject to the Initial
* Developer's Public License Version 1.0 (the "License");
* you may not use this file except in compliance w... | 23.05303 | 87 | 0.717713 | aafemt |
1feb501116316bf198728b9b2936c49afdd93823 | 27,607 | cpp | C++ | speedcc/lua-support/src/native/SCLuaRegisterSCRole.cpp | kevinwu1024/SpeedCC | 7b32e3444236d8aebf8198ebc3fede8faf201dee | [
"MIT"
] | 7 | 2018-03-10T02:01:49.000Z | 2021-09-14T15:42:10.000Z | speedcc/lua-support/src/native/SCLuaRegisterSCRole.cpp | kevinwu1024/SpeedCC | 7b32e3444236d8aebf8198ebc3fede8faf201dee | [
"MIT"
] | null | null | null | speedcc/lua-support/src/native/SCLuaRegisterSCRole.cpp | kevinwu1024/SpeedCC | 7b32e3444236d8aebf8198ebc3fede8faf201dee | [
"MIT"
] | 1 | 2018-03-10T02:01:58.000Z | 2018-03-10T02:01:58.000Z | /****************************************************************************
Copyright (c) 2017-2020 Kevin Wu (Wu Feng)
github: http://github.com/kevinwu1024
Licensed under the MIT License (the "License"); you may not use this file except
in compliance with the License. You may obtain a copy of the License a... | 31.371591 | 167 | 0.736697 | kevinwu1024 |
1fecb9a81d9d32650e56086b4bda045376c4a573 | 1,084 | cpp | C++ | code/Hackers_with_Bits.cpp | Shiv-sharma-111/Data-Structure | 4ce78da070ca2fb3a8552e9997e2607be25ff16e | [
"MIT"
] | null | null | null | code/Hackers_with_Bits.cpp | Shiv-sharma-111/Data-Structure | 4ce78da070ca2fb3a8552e9997e2607be25ff16e | [
"MIT"
] | null | null | null | code/Hackers_with_Bits.cpp | Shiv-sharma-111/Data-Structure | 4ce78da070ca2fb3a8552e9997e2607be25ff16e | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n,count=0;
vector<int> v;
cin>>n;
int *arr=new int[n];
for(int i=0;i<n;i++)
{
cin>>arr[i];
}
for(int i=0;i<n;i++)
{
if(arr[i]==1)
{
count++;
}
else if(arr[i-1]==1 && arr[i]==0)
{
count++;
}
else
{
v... | 14.453333 | 112 | 0.433579 | Shiv-sharma-111 |
1fed03fef0d3b8d30793896bc84060e9cbd8c093 | 956 | cpp | C++ | src/arken/digest/sha1/embedded.cpp | charonplatform/charonplatform | ba5f711b2f8a8da760ccb71925d21a53f3255817 | [
"BSD-3-Clause"
] | 1 | 2018-01-26T14:54:27.000Z | 2018-01-26T14:54:27.000Z | src/arken/digest/sha1/embedded.cpp | arken-dev/arken | ba5f711b2f8a8da760ccb71925d21a53f3255817 | [
"BSD-3-Clause"
] | null | null | null | src/arken/digest/sha1/embedded.cpp | arken-dev/arken | ba5f711b2f8a8da760ccb71925d21a53f3255817 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Arken Platform Authors.
// All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include <arken/base>
extern "C" {
#include <digest/sha1.h>
}
using namespace arken::digest;
char * sha1::hash(const char * hash)
{
return sh... | 19.510204 | 53 | 0.630753 | charonplatform |
1feeef5d9c4218cccc624393d386090413a9133b | 3,321 | cpp | C++ | src/tools/dedicated_arbitrator/client.cpp | afrostalin/FireNET | 212bd7b0bf5a3ceef4c19fe527c7f23e624e296b | [
"BSL-1.0"
] | 27 | 2015-12-22T20:29:12.000Z | 2021-06-05T18:25:27.000Z | src/tools/dedicated_arbitrator/client.cpp | afrostalin/FireNET | 212bd7b0bf5a3ceef4c19fe527c7f23e624e296b | [
"BSL-1.0"
] | 36 | 2015-06-14T15:17:19.000Z | 2017-12-28T16:01:02.000Z | src/tools/dedicated_arbitrator/client.cpp | afrostalin/FireNET | 212bd7b0bf5a3ceef4c19fe527c7f23e624e296b | [
"BSL-1.0"
] | 14 | 2016-01-14T11:15:47.000Z | 2021-05-04T20:24:46.000Z | // Copyright (C) 2014-2018 Ilya Chernetsov. All rights reserved. Contacts: <chernecoff@gmail.com>
// License: https://github.com/afrostalin/FireNET/blob/master/LICENSE
#include "global.h"
#include "client.h"
#include <QTcpServer>
RemoteClient::RemoteClient(QObject *parent) : QObject(parent),
m_socket(nullptr),
bLa... | 22.288591 | 97 | 0.73231 | afrostalin |
1ff336a533d933201a6259e1e122e9ed17a472f9 | 6,195 | cpp | C++ | sgfx/src/image.cpp | keithoma/the_shape_of_data | 143f94685f5b77e562463f158cc97544579f14ad | [
"MIT"
] | null | null | null | sgfx/src/image.cpp | keithoma/the_shape_of_data | 143f94685f5b77e562463f158cc97544579f14ad | [
"MIT"
] | null | null | null | sgfx/src/image.cpp | keithoma/the_shape_of_data | 143f94685f5b77e562463f158cc97544579f14ad | [
"MIT"
] | null | null | null | #include <sgfx/color.hpp>
#include <sgfx/image.hpp>
#include <sgfx/ppm.hpp>
#include <sgfx/primitive_types.hpp>
#include <sgfx/primitives.hpp>
//#include "sysconfig.h"
#include <experimental/filesystem>
#include <algorithm>
#include <fstream>
#include <map>
#include <sstream>
#include <stdexcept>
#include <string>
#... | 27.780269 | 105 | 0.574496 | keithoma |
1ff4c9257fba55df1268dfdcb84d88921d3b23ca | 7,759 | cpp | C++ | Classes/patterns/gamescene.cpp | wendy556609/Game_middle | de0cb13b1d4bea07c12c278972c9555a22ab24cc | [
"MIT"
] | null | null | null | Classes/patterns/gamescene.cpp | wendy556609/Game_middle | de0cb13b1d4bea07c12c278972c9555a22ab24cc | [
"MIT"
] | null | null | null | Classes/patterns/gamescene.cpp | wendy556609/Game_middle | de0cb13b1d4bea07c12c278972c9555a22ab24cc | [
"MIT"
] | null | null | null | #include "GameScene.h"
USING_NS_CC;
GameScene::GameScene() {
_c3sButton = nullptr;
_midObj = nullptr;
_runner = nullptr;
_enemy = nullptr;
_Bar = nullptr;
}
GameScene::~GameScene() {
CC_SAFE_DELETE(_c3sButton);
CC_SAFE_DELETE(_midObj);
CC_SAFE_DELETE(_runner);
CC_SAFE_DELETE(_ene... | 34.484444 | 126 | 0.64596 | wendy556609 |
1ffdd76e6dd27ce971c3c05de3d6c10c501ec640 | 751 | cpp | C++ | ClientMigration/TShared/Random.cpp | Fiskmans/ClientMigration | ab863986fb580b790c5918819878f86e8c5b4d6b | [
"MIT"
] | 1 | 2020-03-16T12:19:42.000Z | 2020-03-16T12:19:42.000Z | ClientMigration/TShared/Random.cpp | Fiskmans/ClientMigration | ab863986fb580b790c5918819878f86e8c5b4d6b | [
"MIT"
] | null | null | null | ClientMigration/TShared/Random.cpp | Fiskmans/ClientMigration | ab863986fb580b790c5918819878f86e8c5b4d6b | [
"MIT"
] | null | null | null | #include <pch.h>
#include "Random.h"
#include <random>
std::mt19937& random()
{
static std::random_device seed;
#ifdef _DEBUG
static std::mt19937 rng(1337);
#else
static std::mt19937 rng(seed());
#endif // _DEBUG
return rng;
}
float Tools::RandomNormalized()
{
static std::uniform_real_distribution<float> dist(0.... | 19.25641 | 62 | 0.721704 | Fiskmans |
9504ef15e93b2e515c891570ccf262c9a9bcb67b | 37,517 | cpp | C++ | 01.Firmware/components/FabGL/src/emudevs/i8080.cpp | POMIN-163/xbw | ebda2fb925ec54e48e806ba1c3cd4e04a7b25368 | [
"Apache-2.0"
] | 5 | 2022-02-14T03:12:57.000Z | 2022-03-06T11:58:31.000Z | 01.Firmware/components/FabGL/src/emudevs/i8080.cpp | POMIN-163/xbw | ebda2fb925ec54e48e806ba1c3cd4e04a7b25368 | [
"Apache-2.0"
] | null | null | null | 01.Firmware/components/FabGL/src/emudevs/i8080.cpp | POMIN-163/xbw | ebda2fb925ec54e48e806ba1c3cd4e04a7b25368 | [
"Apache-2.0"
] | 4 | 2022-02-23T07:00:59.000Z | 2022-03-10T03:58:11.000Z | // Intel 8080 (KR580VM80A) microprocessor core model
//
// Copyright (C) 2012 Alexander Demin <alexander@demin.ws>
//
// Credits
//
// Viacheslav Slavinsky, Vector-06C FPGA Replica
// http://code.google.com/p/vector06cc/
//
// Dmitry Tselikov, Bashrikia-2M and Radio-86RK on Altera DE1
// http://bashkiria-2m.narod.ru/fp... | 22.225711 | 77 | 0.366341 | POMIN-163 |
95056509bd91c195b856715ccafc75d483a1dd5a | 27,927 | cpp | C++ | packages/data_gen/electron_photon/test/tstStandardEvaluatedElectronDataGenerator.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/data_gen/electron_photon/test/tstStandardEvaluatedElectronDataGenerator.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/data_gen/electron_photon/test/tstStandardEvaluatedElectronDataGenerator.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file tstStandardEvaluatedElectronDataGenerator.cpp
//! \author Luke Kersting
//! \brief The eedl data generator class unit tests
//!
//---------------------------------------------------------------------------//
// Std Lib Inc... | 38.626556 | 83 | 0.73044 | lkersting |
9507afa76950b2b0d47b7eb3a349fe44f6a1ff90 | 7,391 | cpp | C++ | path_follower/src/utils/path_interpolated.cpp | sunarditay/gerona | 7ca6bb169571d498c4a2d627faddc8cbe590d2c9 | [
"BSD-3-Clause"
] | 296 | 2017-06-19T07:06:58.000Z | 2022-03-09T01:27:44.000Z | path_follower/src/utils/path_interpolated.cpp | sunarditay/gerona | 7ca6bb169571d498c4a2d627faddc8cbe590d2c9 | [
"BSD-3-Clause"
] | 29 | 2017-11-07T08:49:12.000Z | 2021-09-21T22:18:28.000Z | path_follower/src/utils/path_interpolated.cpp | sunarditay/gerona | 7ca6bb169571d498c4a2d627faddc8cbe590d2c9 | [
"BSD-3-Clause"
] | 117 | 2017-05-30T10:50:36.000Z | 2022-03-09T01:27:23.000Z | // HEADER
#include <path_follower/utils/path_interpolated.h>
// PROJECT
#include <path_follower/utils/cubic_spline_interpolation.h>
#include <cslibs_navigation_utilities/MathHelper.h>
#include <path_follower/parameters/path_follower_parameters.h>
// SYSTEM
#include <deque>
#include <nav_msgs/Path.h>
#pragma GCC diagn... | 26.116608 | 144 | 0.61629 | sunarditay |
950d7784d61f9d1a8ff34dcace7698279cd59bb3 | 2,034 | hpp | C++ | src/config/rcconfig.hpp | project-trident/pc-firewall | ef08c96faff5bdb4b1d3c2341f35a65587512fba | [
"BSD-2-Clause"
] | 1 | 2019-12-10T03:51:34.000Z | 2019-12-10T03:51:34.000Z | src/config/rcconfig.hpp | project-trident/pc-firewall | ef08c96faff5bdb4b1d3c2341f35a65587512fba | [
"BSD-2-Clause"
] | null | null | null | src/config/rcconfig.hpp | project-trident/pc-firewall | ef08c96faff5bdb4b1d3c2341f35a65587512fba | [
"BSD-2-Clause"
] | null | null | null |
#ifndef __RC_CONFIG
#define __RC_CONFIG
#include <qobject.h>
#include <qstring.h>
#include <qregexp.h>
#include <vector>
/*
* This class provides basic manipulation of the
* rc.conf file. It aims to reserve original file as
* good as possible, by allowing enabling/disabling of
* services and adding service depe... | 30.818182 | 96 | 0.711898 | project-trident |
95174568680c2dc4f1bbf5f0b1f254243bc9843a | 5,920 | cpp | C++ | tests/constraint/test_NewtonsMethodProjectable.cpp | usc-csci-545/aikido | afd8b203c17cb0b05d7db436f8bffbbe2111a75a | [
"BSD-3-Clause"
] | null | null | null | tests/constraint/test_NewtonsMethodProjectable.cpp | usc-csci-545/aikido | afd8b203c17cb0b05d7db436f8bffbbe2111a75a | [
"BSD-3-Clause"
] | null | null | null | tests/constraint/test_NewtonsMethodProjectable.cpp | usc-csci-545/aikido | afd8b203c17cb0b05d7db436f8bffbbe2111a75a | [
"BSD-3-Clause"
] | null | null | null | #include <aikido/constraint/NewtonsMethodProjectable.hpp>
#include <aikido/constraint/Satisfied.hpp>
#include <aikido/constraint/dart/TSR.hpp>
#include "PolynomialConstraint.hpp"
#include <aikido/statespace/Rn.hpp>
#include <Eigen/Dense>
#include <gtest/gtest.h>
using aikido::constraint::NewtonsMethodProjectable;
us... | 27.663551 | 80 | 0.69527 | usc-csci-545 |
9519e680c587c51ac577eb7957409e12dba07f14 | 3,668 | hpp | C++ | luaponte/detail/format_signature.hpp | jb--/luaponte | 06bfe551bce23e411e75895797b8bb84bb662ed2 | [
"BSL-1.0"
] | 3 | 2015-08-30T10:02:10.000Z | 2018-08-27T06:54:44.000Z | luaponte/detail/format_signature.hpp | halmd-org/luaponte | 165328485954a51524a0b1aec27518861c6be719 | [
"BSL-1.0"
] | null | null | null | luaponte/detail/format_signature.hpp | halmd-org/luaponte | 165328485954a51524a0b1aec27518861c6be719 | [
"BSL-1.0"
] | null | null | null | // Luaponte library
// Copyright (c) 2012 Peter Colberg
// Luaponte is based on Luabind, a library, inspired by and similar to
// Boost.Python, that helps you create bindings between C++ and Lua,
// Copyright (c) 2003-2010 Daniel Wallin and Arvid Norberg.
// Use, modification and distribution is subject to the Boost... | 22.641975 | 79 | 0.690567 | jb-- |
951c28ea4ba42ed2e62293f33f823d22d4cd3b75 | 1,344 | cpp | C++ | src/Cpp/Learning_Cpp/Course_Codes/The_Udeamy_Course/Source_Codes_Cpp_Udeamy_Course/8. Statements-and-Operators-Source-code/ArithmeticOperators/main.cpp | Ahmopasa/TheCodes | 560ed94190fd0da8cc12285e9b4b5e27b19010a5 | [
"MIT"
] | 2 | 2021-07-18T18:12:10.000Z | 2021-07-19T15:40:25.000Z | Section08/ArithmeticOperators/main.cpp | Himanshu40/Learn-Cpp | f0854f7c88bf31857c0c6216af80245666ca9b54 | [
"CC-BY-4.0"
] | null | null | null | Section08/ArithmeticOperators/main.cpp | Himanshu40/Learn-Cpp | f0854f7c88bf31857c0c6216af80245666ca9b54 | [
"CC-BY-4.0"
] | null | null | null | // Section 8
// Arithmetic operators
/*
+ addition
- subtraction
* multiplication
/ division
% modulo or remainder (works only with integers)
+, -. * and / operators are overloaded to work with multiple types such as int, double, etc.
% only for integer types
*/
#include <i... | 22.4 | 97 | 0.447917 | Ahmopasa |
951da4b27091e2d53251754d42ebb84d2a7b116f | 5,529 | cpp | C++ | Final/Dataset/B2016_Z3_Z4/student5867.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z3_Z4/student5867.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z3_Z4/student5867.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | /B2016/2017: Zadaća 3, Zadatak 4
#include <iostream>
#include <vector>
#include <list>
#include <string>
#include <set>
#include <stdexcept>
int duzina (std::string s)
{
int razmak(0);
for(int i = 0; i < s.size(); i++)
{
if(s[i] == ' ' || s[i] == '-')
razmak++;
}
... | 26.710145 | 86 | 0.380539 | Team-PyRated |
9529950721996ae477c83f006d80e4682bde144a | 6,464 | hh | C++ | src/physics/PhysicsEngine.hh | nherment/gazebo | fff0aa30b4b5748e43c2b0aa54ffcd366e9f042a | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2016-01-17T20:41:39.000Z | 2018-05-01T12:02:58.000Z | src/physics/PhysicsEngine.hh | nherment/gazebo | fff0aa30b4b5748e43c2b0aa54ffcd366e9f042a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/physics/PhysicsEngine.hh | nherment/gazebo | fff0aa30b4b5748e43c2b0aa54ffcd366e9f042a | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2015-09-29T02:30:16.000Z | 2022-03-30T12:11:22.000Z | /*
* Copyright 2011 Nate Koenig & Andrew Howard
*
* 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 l... | 36.937143 | 80 | 0.670483 | nherment |
952b3309e85bbcb8f04d3e63ded6b9c8220e199d | 12,554 | hpp | C++ | include/wire/encoding/message.hpp | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | 5 | 2016-04-07T19:49:39.000Z | 2021-08-03T05:24:11.000Z | include/wire/encoding/message.hpp | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | null | null | null | include/wire/encoding/message.hpp | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | 1 | 2020-12-27T11:47:31.000Z | 2020-12-27T11:47:31.000Z | /*
* message.hpp
*
* Created on: Jan 21, 2016
* Author: zmij
*/
#ifndef WIRE_ENCODING_MESSAGE_HPP_
#define WIRE_ENCODING_MESSAGE_HPP_
#include <wire/encoding/types.hpp>
#include <wire/encoding/wire_io.hpp>
#include <wire/core/identity.hpp>
#include <wire/core/context.hpp>
#include <wire/version.hpp>
#incl... | 23.86692 | 100 | 0.598295 | zmij |
952c8c203293fcea3f1a4316e26e92ca53194fb0 | 66 | cpp | C++ | Unreal/CtaCpp/Runtime/Scripts/Combat/IDamageCalculationSystem.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | 3 | 2021-06-02T16:44:02.000Z | 2022-01-24T20:20:10.000Z | Unreal/CtaCpp/Runtime/Scripts/Combat/IDamageCalculationSystem.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | null | null | null | Unreal/CtaCpp/Runtime/Scripts/Combat/IDamageCalculationSystem.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | null | null | null | #include "IDamageCalculationSystem.h"
namespace Cta::Combat
{
}
| 11 | 38 | 0.757576 | areilly711 |
953833ac2864423265ddc4a58fda008ef5fd79ce | 1,395 | cc | C++ | Kernel/KernelMain.cc | ahoka/esrtk | bb5ff7f9caa22b6d6d91e660c6d78e471394a0cc | [
"BSD-2-Clause"
] | 1 | 2018-07-08T15:47:57.000Z | 2018-07-08T15:47:57.000Z | Kernel/KernelMain.cc | ahoka/esrtk | bb5ff7f9caa22b6d6d91e660c6d78e471394a0cc | [
"BSD-2-Clause"
] | null | null | null | Kernel/KernelMain.cc | ahoka/esrtk | bb5ff7f9caa22b6d6d91e660c6d78e471394a0cc | [
"BSD-2-Clause"
] | null | null | null | #include <Memory.hh>
#include <Modules.hh>
#include <Platform.hh>
#include <CompilerSupport.hh>
#include <Kernel/Scheduler.hh>
#include <Multiboot.hh>
// XXX remove these
#include <X86/PageDirectory.hh>
#include <X86/Idt.hh>
#include <X86/EarlySerial.hh>
#include <Kernel/ProcessContext.hh>
#include <Supervisor/Superv... | 19.647887 | 79 | 0.670251 | ahoka |
953bf65856af1b3824fe1cc6b79b53ad0801d7ef | 471 | cpp | C++ | p1140.cpp | ThinkiNOriginal/PTA-Advanced | 55cae28f76102964d0f6fd728dd62d6eba980c49 | [
"MIT"
] | null | null | null | p1140.cpp | ThinkiNOriginal/PTA-Advanced | 55cae28f76102964d0f6fd728dd62d6eba980c49 | [
"MIT"
] | null | null | null | p1140.cpp | ThinkiNOriginal/PTA-Advanced | 55cae28f76102964d0f6fd728dd62d6eba980c49 | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
string D;
int N;
cin >> D >> N;
for (int i = 1; i < N; i++) {
string tmp;
int len = D.size();
for (int j = 0; j < len; j++) {
int cnt = 1;
for (int k = j + 1; k < len; k++) {
if (D[k] == D[j... | 13.852941 | 38 | 0.458599 | ThinkiNOriginal |
953e171f9981e0dc9e6b6c867345b228cec9f9e0 | 34,071 | cpp | C++ | Client/client/World/PacketHandler.cpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 14 | 2019-03-05T10:03:59.000Z | 2021-12-21T03:00:18.000Z | Client/client/World/PacketHandler.cpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 1 | 2019-10-24T21:37:59.000Z | 2019-10-24T21:37:59.000Z | Client/client/World/PacketHandler.cpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 1 | 2020-12-06T21:07:52.000Z | 2020-12-06T21:07:52.000Z | #include "PacketHandler.hpp"
#include "../Entities/Player.hpp"
#include "../Entities/Creature.hpp"
#include "../Entities/AnimationUnit.hpp"
#include "../Entities/DynamicObject.hpp"
#include "../Graphics/Interface/MenuTitles.hpp"
#include "../Graphics/Interface/MenuWardrobe.hpp"
#include "../Graphics/Interface/MenuSpell... | 29.120513 | 219 | 0.666931 | pinkmouse |
954d378192a469c8a9500f1780f63d17bd129257 | 8,641 | cpp | C++ | OilSpillage/Inventory/ItemWeapon.cpp | Xemrion/Exam-work | 7243f8db9951a0cdaebcfb5804df737a4d795b10 | [
"Apache-2.0"
] | 3 | 2020-04-25T22:23:07.000Z | 2022-03-03T17:44:00.000Z | OilSpillage/Inventory/ItemWeapon.cpp | Xemrion/Exam-work | 7243f8db9951a0cdaebcfb5804df737a4d795b10 | [
"Apache-2.0"
] | null | null | null | OilSpillage/Inventory/ItemWeapon.cpp | Xemrion/Exam-work | 7243f8db9951a0cdaebcfb5804df737a4d795b10 | [
"Apache-2.0"
] | null | null | null | #include "ItemWeapon.h"
#include <sstream>
#include "../game.h"
#include <iomanip>
std::string ItemWeapon::generateDescription(Weapon weapon)
{
std::stringstream stream;
stream << std::boolalpha;
if (weapon.type == WeaponType::MachineGun) {
stream << "Damage/S: " << Item::fixedDecimals(weapon.damage / weapon.fir... | 40.00463 | 165 | 0.638468 | Xemrion |
954d7a7c4806750968c1a8abfdf30247a06d1145 | 6,039 | hpp | C++ | include/SimpleBuffer.hpp | cosama/zed-context-driver | 3459c76599a2175a7af3c1986b79da9f3222d135 | [
"BSD-3-Clause-LBNL"
] | null | null | null | include/SimpleBuffer.hpp | cosama/zed-context-driver | 3459c76599a2175a7af3c1986b79da9f3222d135 | [
"BSD-3-Clause-LBNL"
] | null | null | null | include/SimpleBuffer.hpp | cosama/zed-context-driver | 3459c76599a2175a7af3c1986b79da9f3222d135 | [
"BSD-3-Clause-LBNL"
] | null | null | null | /***********************************************************************************
* Header file that defines the SimpleBuffer class, a simpler way to use shared
* SharedBuffers,
*
* Author: Marco Salathe <msalathe@lbl.gov>
* Date: Mai 2018
* License: See License.txt in parent folder of this repository.
*... | 44.080292 | 144 | 0.664348 | cosama |
95537f37a62c7779178ea7066163603847a27aa3 | 1,189 | cxx | C++ | src/CData.cxx | DieSkaarj/Conways-GameOfLife | 12fc27cb747027c5379da5be7d222c7326eeee08 | [
"CC0-1.0"
] | null | null | null | src/CData.cxx | DieSkaarj/Conways-GameOfLife | 12fc27cb747027c5379da5be7d222c7326eeee08 | [
"CC0-1.0"
] | null | null | null | src/CData.cxx | DieSkaarj/Conways-GameOfLife | 12fc27cb747027c5379da5be7d222c7326eeee08 | [
"CC0-1.0"
] | null | null | null | #include "CData.h"
#include "CGame.h"
#include "NUtil.h"
#include "CCluster.h"
void CData::draw(WINDOW* t_window){
auto cleanLineBetweenBorder=[&t_window](int y){
for(int i=1;i<t_window->_maxx;++i)
mvwprintw(t_window,y,i," ");
};
cleanLineBetweenBorder(2);
cleanLineBetweenBorder(4);
cleanLineBetweenBorder... | 27.022727 | 130 | 0.693019 | DieSkaarj |
95544104a8d9de09d0832e84a2cf3fe2f3209db6 | 367 | cpp | C++ | PROGRAMMERS/no12948.cpp | minjujuu/Algorithm | 3787b57b818db9ef9b9f96bd430f57c95bbbe86d | [
"MIT"
] | null | null | null | PROGRAMMERS/no12948.cpp | minjujuu/Algorithm | 3787b57b818db9ef9b9f96bd430f57c95bbbe86d | [
"MIT"
] | null | null | null | PROGRAMMERS/no12948.cpp | minjujuu/Algorithm | 3787b57b818db9ef9b9f96bd430f57c95bbbe86d | [
"MIT"
] | null | null | null | // 핸드폰 번호 가리기 https://programmers.co.kr/learn/courses/30/lessons/12948
#include <string>
#include <vector>
using namespace std;
string solution(string phone_number) {
string answer = "";
// phone_number의 길이-4 보다 작으면 *로 채움
for(int i=0; i<phone_number.length()-4; i++) {
phone_number[i] = '*';
}
... | 24.466667 | 70 | 0.645777 | minjujuu |
9559d8eb5ad6310f4463b47efff1177259aa9c60 | 1,148 | hpp | C++ | src/new_tree_rearrangements/Twice_Bloom_Filter.hpp | theosanderson/usher | a58c56361cbd40be9dd671afabfa0839aa1cd58e | [
"MIT"
] | null | null | null | src/new_tree_rearrangements/Twice_Bloom_Filter.hpp | theosanderson/usher | a58c56361cbd40be9dd671afabfa0839aa1cd58e | [
"MIT"
] | null | null | null | src/new_tree_rearrangements/Twice_Bloom_Filter.hpp | theosanderson/usher | a58c56361cbd40be9dd671afabfa0839aa1cd58e | [
"MIT"
] | null | null | null | #include <atomic>
#include <cstdio>
#include <sys/mman.h>
//See whether a valus appeared twice
class Twice_Bloom_Filter{
uint16_t* filter;
int hash(int pos){
//This works for coronavirus whose length is 29903<32767, it basically does nothing
return pos&0x7FFF;
}
public:
Twice_Bloom_F... | 31.027027 | 121 | 0.633275 | theosanderson |
955a5990cecad6107c13d991e0d5c343a93c7a3d | 2,892 | cpp | C++ | rmw_gurumdds_shared_cpp/src/rmw_count.cpp | clemjh/rmw_gurumdds | c8c472854fa2eca57cee0e409bf0cb3f787a265a | [
"Apache-2.0"
] | null | null | null | rmw_gurumdds_shared_cpp/src/rmw_count.cpp | clemjh/rmw_gurumdds | c8c472854fa2eca57cee0e409bf0cb3f787a265a | [
"Apache-2.0"
] | null | null | null | rmw_gurumdds_shared_cpp/src/rmw_count.cpp | clemjh/rmw_gurumdds | c8c472854fa2eca57cee0e409bf0cb3f787a265a | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 GurumNetworks, 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 agree... | 28.92 | 77 | 0.724412 | clemjh |
955b8c9a0d982db5ccc080815ed91e81033e7c30 | 644 | cpp | C++ | source/blink/system/AngularVelocitySystem.cpp | zjhlogo/blink | 025da3506b34e3f0b02be524c97ae1f39c4c5854 | [
"Apache-2.0"
] | null | null | null | source/blink/system/AngularVelocitySystem.cpp | zjhlogo/blink | 025da3506b34e3f0b02be524c97ae1f39c4c5854 | [
"Apache-2.0"
] | null | null | null | source/blink/system/AngularVelocitySystem.cpp | zjhlogo/blink | 025da3506b34e3f0b02be524c97ae1f39c4c5854 | [
"Apache-2.0"
] | null | null | null | /**
@file AngularVelocitySystem.cpp
@brief
@details ~
@author zjhlogo
@date 8.11.2021
@copyright Copyright zjhlogo, 2021. All right reserved.
**/
#include "AngularVelocitySystem.h"
#include "../component/Components.h"
namespace blink
{
bool AngularVelocitySystem::initializ... | 26.833333 | 125 | 0.583851 | zjhlogo |
955ceedf077bb8f69c10b544b635e8a59245a588 | 322 | cpp | C++ | Scanner/src/Controllers/LoggerController.cpp | Vyraax/gt511c3 | 23197526a241977103b03397a4bde9116230b079 | [
"OML"
] | null | null | null | Scanner/src/Controllers/LoggerController.cpp | Vyraax/gt511c3 | 23197526a241977103b03397a4bde9116230b079 | [
"OML"
] | null | null | null | Scanner/src/Controllers/LoggerController.cpp | Vyraax/gt511c3 | 23197526a241977103b03397a4bde9116230b079 | [
"OML"
] | null | null | null | #include "LoggerController.h"
#include "Interfaces/LoggerInterface.h"
LoggerController::LoggerController() : Controller()
{
this->ui = new LoggerInterface();
}
void LoggerController::OnEvent(Event& event)
{
}
void LoggerController::OnUpdate(float delta)
{
}
void LoggerController::OnRender()
{
this->ui->render();
... | 15.333333 | 51 | 0.73913 | Vyraax |
95655a5e3d4021a63f61d88df2c7cf725fa8b032 | 45,713 | hpp | C++ | src/Evolution/Systems/Cce/Equations.hpp | nilsvu/spectre | 1455b9a8d7e92db8ad600c66f54795c29c3052ee | [
"MIT"
] | 117 | 2017-04-08T22:52:48.000Z | 2022-03-25T07:23:36.000Z | src/Evolution/Systems/Cce/Equations.hpp | GitHimanshuc/spectre | 4de4033ba36547113293fe4dbdd77591485a4aee | [
"MIT"
] | 3,177 | 2017-04-07T21:10:18.000Z | 2022-03-31T23:55:59.000Z | src/Evolution/Systems/Cce/Equations.hpp | geoffrey4444/spectre | 9350d61830b360e2d5b273fdd176dcc841dbefb0 | [
"MIT"
] | 85 | 2017-04-07T19:36:13.000Z | 2022-03-01T10:21:00.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <type_traits>
#include "DataStructures/SpinWeighted.hpp" // IWYU pragma: keep
#include "DataStructures/Tags.hpp"
#include "DataStructures/Tags/TempTensor.hpp"
#include "DataStructures/Tensor/Tensor.hpp"
#include "Evolution/S... | 47.76698 | 80 | 0.639971 | nilsvu |
9568f543c00f7e126effa3d20b3329e154886c2e | 575 | cpp | C++ | src/BaseTools/Chombo_Interval.cpp | novertonCSU/Chombo_4 | b833e49793758a7d6d22f976694c9d2e90d29c00 | [
"BSD-3-Clause-LBNL"
] | 11 | 2019-06-08T01:20:51.000Z | 2021-12-21T12:18:54.000Z | src/BaseTools/Chombo_Interval.cpp | novertonCSU/Chombo_4 | b833e49793758a7d6d22f976694c9d2e90d29c00 | [
"BSD-3-Clause-LBNL"
] | 3 | 2020-03-13T06:25:55.000Z | 2021-06-23T18:12:53.000Z | src/BaseTools/Chombo_Interval.cpp | novertonCSU/Chombo_4 | b833e49793758a7d6d22f976694c9d2e90d29c00 | [
"BSD-3-Clause-LBNL"
] | 4 | 2019-08-27T14:34:34.000Z | 2021-10-04T21:46:59.000Z | #ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include <cstdlib>
#include <iostream>
#include "Chombo_Interval.H"
#include ... | 23.958333 | 64 | 0.573913 | novertonCSU |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.