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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ac5ff70cafd7e62f70cb4040da21fa8941c32b51 | 490 | hpp | C++ | src/Versions/1.0/definitions.hpp | 737464/mtex | a7f5d92dc0877f74e5e77be721fba47944e0dbe6 | [
"MIT"
] | null | null | null | src/Versions/1.0/definitions.hpp | 737464/mtex | a7f5d92dc0877f74e5e77be721fba47944e0dbe6 | [
"MIT"
] | null | null | null | src/Versions/1.0/definitions.hpp | 737464/mtex | a7f5d92dc0877f74e5e77be721fba47944e0dbe6 | [
"MIT"
] | null | null | null | #ifndef definitions_hpp
#define definitions_hpp
#define SOL -1 //Start Of Line
#define TAB 9
#define LF 10
#define ESC 27
#define SPACE 32
#define DELETE 127
#define OPTION_SHIFT_L 130
#define OPTION_SHIFT_C 135
#define OPTION_SHIFT_V 138
#define OPTION_... | 23.333333 | 95 | 0.702041 | 737464 |
ac698a077a0c1f83e3dcf43cb7cb6aafb4740370 | 444 | cpp | C++ | Server/src/Session/systems/Bonuses.cpp | Pierre-Narcisi/r-type | ac1b10e404313fef56eaea52e0252d85b7feae05 | [
"Unlicense"
] | null | null | null | Server/src/Session/systems/Bonuses.cpp | Pierre-Narcisi/r-type | ac1b10e404313fef56eaea52e0252d85b7feae05 | [
"Unlicense"
] | null | null | null | Server/src/Session/systems/Bonuses.cpp | Pierre-Narcisi/r-type | ac1b10e404313fef56eaea52e0252d85b7feae05 | [
"Unlicense"
] | null | null | null | //
// Created by pierre on 20/11/2018.
//
#include "Bonuses.hpp"
namespace game {namespace system {
void Bonuses::UpdateBonuses() {
auto ids = ecs::Ecs::filter<ecs::component::Position, game::component::Bonuses>();
auto &pos = ecs::Ecs::getComponentMap<ecs::component::Position>();
auto &bon = ecs::Ecs::getComp... | 24.666667 | 84 | 0.641892 | Pierre-Narcisi |
ac6cee567dd671bd6c8d1acfba9052f40d1cbe62 | 1,342 | cpp | C++ | 2015/20/main.cpp | adrian-stanciu/adventofcode | 47b3d12226b0c71fff485ef140cd7731c9a5d72f | [
"MIT"
] | null | null | null | 2015/20/main.cpp | adrian-stanciu/adventofcode | 47b3d12226b0c71fff485ef140cd7731c9a5d72f | [
"MIT"
] | null | null | null | 2015/20/main.cpp | adrian-stanciu/adventofcode | 47b3d12226b0c71fff485ef140cd7731c9a5d72f | [
"MIT"
] | null | null | null | #include <cmath>
#include <iostream>
auto sum_of_divisors(int n)
{
auto sum = 0;
auto n_sqrt = static_cast<int>(sqrt(n));
for (auto i = 1; i < n_sqrt; ++i)
if (n % i == 0) {
sum += i;
sum += n / i;
}
if (n_sqrt * n_sqrt == n)
sum += n_sqrt;
return... | 16.567901 | 57 | 0.456781 | adrian-stanciu |
ac77ce6353d032199943d66eec6db971bd189fdf | 384 | cpp | C++ | acm/cf/20151230/a.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 17 | 2016-01-01T12:57:25.000Z | 2022-02-06T09:55:12.000Z | acm/cf/20151230/a.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | null | null | null | acm/cf/20151230/a.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 8 | 2018-12-27T01:31:49.000Z | 2022-02-06T09:55:12.000Z | #include<string>
#include<iostream>
using namespace std;
int main(){
int n;string a,b;
while(cin>>n>>a>>b){
if(b[0] == 'w'){
if(n ==5||n==6)cout<<"53"<<endl;
else cout<<"52"<<endl;
}
if(b[0] == 'm')
if(n == 31)cout<<"7"<<endl;
else if(n == ... | 22.588235 | 45 | 0.421875 | xiaohuihuigh |
ac7924ba0f2eb13e3fae1f447c982c71b669deb0 | 1,583 | hpp | C++ | c/lib/libnt/misc/numeral.hpp | Tiehuis/euler | b59972cb774e1cbe861bcf94673290b87de3c98e | [
"MIT"
] | 3 | 2017-10-11T16:04:53.000Z | 2017-10-12T12:13:22.000Z | c/lib/libnt/misc/numeral.hpp | Tiehuis/euler | b59972cb774e1cbe861bcf94673290b87de3c98e | [
"MIT"
] | null | null | null | c/lib/libnt/misc/numeral.hpp | Tiehuis/euler | b59972cb774e1cbe861bcf94673290b87de3c98e | [
"MIT"
] | 1 | 2018-03-22T14:27:30.000Z | 2018-03-22T14:27:30.000Z | #include <algorithm>
#include <string>
namespace {
enum {
I = 1,
V = 5,
X = 10,
L = 50,
C = 100,
D = 500,
M = 1000
}
}
namespace misc {
namespace numeral {
int minimum_symbols(uint64_t n)
{
#define loop__(c, i) \
do { \
... | 17.988636 | 63 | 0.337966 | Tiehuis |
ac7ce24ad6de844e2ff5d132bc1cb9595b6daa37 | 704 | cpp | C++ | netLayer/poller/Poller.cpp | zlonqi/longky | cc793313bed5ef8041face306279825328c70351 | [
"MIT"
] | null | null | null | netLayer/poller/Poller.cpp | zlonqi/longky | cc793313bed5ef8041face306279825328c70351 | [
"MIT"
] | null | null | null | netLayer/poller/Poller.cpp | zlonqi/longky | cc793313bed5ef8041face306279825328c70351 | [
"MIT"
] | null | null | null | //
// Created by root on 2019/12/8.
//
#include "Poller.h"
#include "netLayer/event/Channel.h"
#include "netLayer/poller/EPollPoller.h"
#include "netLayer/poller/PollPoller.h"
using namespace tank;
using namespace tank::net;
Poller::Poller(EventLoop* loop)
: ownerLoop_(loop)
{
}
Poller::~Poller() = default;... | 21.333333 | 66 | 0.681818 | zlonqi |
ac7d132cc11db6923dcf3a3eeefb316016d0025e | 395 | hpp | C++ | gamegio-library/src/gamegio/ParentCbor.hpp | tril0byte/HGamer3D | 7979c67d9b4672a5b2d1a50320a6d47b1a97ff05 | [
"Apache-2.0"
] | 27 | 2015-06-08T16:45:47.000Z | 2022-02-22T14:40:52.000Z | gamegio-library/src/gamegio/ParentCbor.hpp | tril0byte/HGamer3D | 7979c67d9b4672a5b2d1a50320a6d47b1a97ff05 | [
"Apache-2.0"
] | 18 | 2015-04-20T20:42:02.000Z | 2020-12-11T03:46:17.000Z | gamegio-library/src/gamegio/ParentCbor.hpp | tril0byte/HGamer3D | 7979c67d9b4672a5b2d1a50320a6d47b1a97ff05 | [
"Apache-2.0"
] | 4 | 2017-06-20T13:24:18.000Z | 2021-10-07T19:18:03.000Z | #ifndef __Parent_cbor__
#define __Parent_cbor__
#include <stdint.h>
#include <stdbool.h>
#include <string>
#include <vector>
#include "cbor.h"
#include "cborconstants_p.h"
namespace cbd {
typedef std::vector<uint8_t> Parent;
void readParent(CborValue *it, Parent *parent);
void writeParent(CborEncoder *enc, Parent p... | 17.954545 | 50 | 0.759494 | tril0byte |
ac81ce7897ac63dde1f3aa7c58e1a933cfea11d3 | 303 | cpp | C++ | codeforces/contests/1555/A.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | codeforces/contests/1555/A.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | codeforces/contests/1555/A.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | #include <bits/stdc++.h>
using namespace std;
void solve() {
long long n; cin >> n;
n = (n + 1) / 2;
cout << (n <= 2 ? 15 : n * 5) << endl;
}
int main() {
ios_base::sync_with_stdio(false), cin.tie(nullptr);
int T; cin >> T;
while(T--) solve();
// solve();
return 0;
} | 17.823529 | 55 | 0.50165 | wingkwong |
ac877f50be210a3f617e200a76889c7c2659b836 | 6,711 | cpp | C++ | OpenNN/examples/breast_cancer/main.cpp | wagnrd/Pong | 0c50b22e0805b2ae19ff07d25859a6358217b377 | [
"MIT"
] | 4 | 2019-03-06T16:53:27.000Z | 2021-07-28T03:05:08.000Z | OpenNN/examples/breast_cancer/main.cpp | wagnrd/Pong | 0c50b22e0805b2ae19ff07d25859a6358217b377 | [
"MIT"
] | 1 | 2021-02-11T17:10:29.000Z | 2021-02-11T20:54:03.000Z | OpenNN/examples/breast_cancer/main.cpp | wagnrd/Pong | 0c50b22e0805b2ae19ff07d25859a6358217b377 | [
"MIT"
] | null | null | null | /****************************************************************************************************************/
/* */
/* OpenNN: Open Neural Networks Library ... | 39.017442 | 126 | 0.586202 | wagnrd |
12be3788d403d97a6808eed533668e5f22cec12d | 1,256 | cpp | C++ | asg56/main.cpp | marivsteo/Object-Oriented-Programming-Course | f6bad4c505334837fd4d364ec304f4a97560162d | [
"MIT"
] | null | null | null | asg56/main.cpp | marivsteo/Object-Oriented-Programming-Course | f6bad4c505334837fd4d364ec304f4a97560162d | [
"MIT"
] | null | null | null | asg56/main.cpp | marivsteo/Object-Oriented-Programming-Course | f6bad4c505334837fd4d364ec304f4a97560162d | [
"MIT"
] | null | null | null | #include"DynVector.h"
#include"Repository.h"
#include"ControllerAdmin.h"
#include"ControllerUser.h"
#include"UIadmin.h"
#include"UIuser.h"
int main() {
Repository repo;
repo.addMovie(Movie{ "Avengers Endgame", "Superhero", "https://www.youtube.com/watch?v=TcMBFSGVi1c", 2019 });
repo.addMovie(Movie{ "Aveng... | 34.888889 | 116 | 0.654459 | marivsteo |
12beb1084a8ad2faa88d880a571988fa17653ecb | 3,033 | cpp | C++ | src/thin_to_lines.cpp | ericdanz/rgb_line_follower | 89e534301e1c4dd83649b0fa750d5f808caa2df8 | [
"BSD-3-Clause"
] | null | null | null | src/thin_to_lines.cpp | ericdanz/rgb_line_follower | 89e534301e1c4dd83649b0fa750d5f808caa2df8 | [
"BSD-3-Clause"
] | null | null | null | src/thin_to_lines.cpp | ericdanz/rgb_line_follower | 89e534301e1c4dd83649b0fa750d5f808caa2df8 | [
"BSD-3-Clause"
] | null | null | null | /*
* \thin_to_lines.cpp
* \takes a image and converts it to a trajectory for the robot to follow
*
* \author Chris Dunkers, CMU - cmdunkers@cmu.edu
* \date October 31, 2014
*/
#include "rgb_line_follower/thin_to_lines.h"
thin_to_lines::thin_to_lines(){
//the main node handle
ros::NodeHandle nh;
//grab ... | 27.572727 | 91 | 0.691065 | ericdanz |
12c414d3a44fef57bab0b11583218ad3b30cd9ac | 4,733 | cxx | C++ | test/itkPSMContainerTest.cxx | sheryjoe/ITKParticleShapeModeling | 389a3a043196270b37830a0bba656fe1a7ef1b84 | [
"Apache-2.0"
] | 11 | 2015-11-24T03:41:40.000Z | 2021-07-28T11:07:12.000Z | test/itkPSMContainerTest.cxx | sheryjoe/ITKParticleShapeModeling | 389a3a043196270b37830a0bba656fe1a7ef1b84 | [
"Apache-2.0"
] | 88 | 2015-05-22T18:33:49.000Z | 2019-08-30T17:53:46.000Z | test/itkPSMContainerTest.cxx | sheryjoe/ITKParticleShapeModeling | 389a3a043196270b37830a0bba656fe1a7ef1b84 | [
"Apache-2.0"
] | 9 | 2015-06-18T20:23:21.000Z | 2019-06-06T21:26:10.000Z | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | 28.172619 | 92 | 0.560321 | sheryjoe |
12c8a740398e083422f2d44ea08ee8efbd52c17a | 23,283 | cc | C++ | sql/mini_client.cc | euleryang/mysql-server-mysql-323-31 | f9346bfa3055f2217fe183bcb182aa6f39bca4d9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | sql/mini_client.cc | euleryang/mysql-server-mysql-323-31 | f9346bfa3055f2217fe183bcb182aa6f39bca4d9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | sql/mini_client.cc | euleryang/mysql-server-mysql-323-31 | f9346bfa3055f2217fe183bcb182aa6f39bca4d9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | /* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later ve... | 28.638376 | 90 | 0.636344 | euleryang |
12c9e23afb839ad2c4b886893b53bee21f66480f | 2,323 | cpp | C++ | Rosewood/src/Rosewood/Audio/Audio.cpp | dovker/Rosewood | 5131a061632732222ce68e5da5a257b8bda36ea5 | [
"Apache-2.0"
] | 1 | 2020-10-02T15:59:00.000Z | 2020-10-02T15:59:00.000Z | Rosewood/src/Rosewood/Audio/Audio.cpp | dovker/Rosewood | 5131a061632732222ce68e5da5a257b8bda36ea5 | [
"Apache-2.0"
] | null | null | null | Rosewood/src/Rosewood/Audio/Audio.cpp | dovker/Rosewood | 5131a061632732222ce68e5da5a257b8bda36ea5 | [
"Apache-2.0"
] | null | null | null | #include "rwpch.h"
#include "Audio.h"
#include <stdio.h>
#include <stdlib.h>
namespace Rosewood {
static Scope<SoLoud::Soloud> s_AudioDevice;
void Audio::Init()
{
s_AudioDevice = CreateScope<SoLoud::Soloud>();
s_AudioDevice->init();
}
void Audio::Deinit()
{
s_AudioD... | 19.040984 | 82 | 0.581576 | dovker |
12ca4483058b5e4dc838fde3b10c7d66b0bd26b0 | 636 | cpp | C++ | LiberoEngine/src/RendererOpenGL.cpp | Kair0z/LiberoEngine2D | 79fb93d7bbb5f5e6b805da6826c64ffa520989c3 | [
"MIT"
] | null | null | null | LiberoEngine/src/RendererOpenGL.cpp | Kair0z/LiberoEngine2D | 79fb93d7bbb5f5e6b805da6826c64ffa520989c3 | [
"MIT"
] | null | null | null | LiberoEngine/src/RendererOpenGL.cpp | Kair0z/LiberoEngine2D | 79fb93d7bbb5f5e6b805da6826c64ffa520989c3 | [
"MIT"
] | null | null | null | #include "PCH.h"
#include "RendererOpenGL.h"
namespace Libero
{
RendererOpenGL::RendererOpenGL()
: m_IsInitialized{false}
, m_Context{}
{
}
RendererOpenGL::~RendererOpenGL()
{
}
void RendererOpenGL::Initialize(GLFWwindow* pWindow)
{
InitContext(pWindow);
m_IsInitialized = true;
}
bool Rendere... | 13.826087 | 54 | 0.701258 | Kair0z |
12cbc4555302035882ccad47a3e2c52ac37c77ea | 4,555 | cpp | C++ | codeforces/697-Div3/d.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | codeforces/697-Div3/d.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | codeforces/697-Div3/d.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | // Created by Tanuj Jain
#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define pb push_back
#define mp make_pair
# define M_PI 3.14159265358979323846 /* pi */
#define FIO ios_base::sync_with_stdio(... | 28.117284 | 106 | 0.409879 | onexmaster |
12d1ec91cc6ccd1c30c4483c6b38b866f52f02ab | 2,720 | cpp | C++ | code/sates/report/plain_text_writer.cpp | seokhwan/sates_cpp | 8028c7490298d91a85e813118e9deb3c57ad4252 | [
"BSD-3-Clause"
] | 1 | 2020-02-15T12:06:39.000Z | 2020-02-15T12:06:39.000Z | code/sates/report/plain_text_writer.cpp | seokhwan/sates_cpp | 8028c7490298d91a85e813118e9deb3c57ad4252 | [
"BSD-3-Clause"
] | null | null | null | code/sates/report/plain_text_writer.cpp | seokhwan/sates_cpp | 8028c7490298d91a85e813118e9deb3c57ad4252 | [
"BSD-3-Clause"
] | null | null | null | #include "plain_text_writer.h"
#include "plain_text_stdout.h"
#include <sates/tc/tc_result_list.h>
#include <sstream>
#include <iomanip>
namespace sates
{
namespace report
{
plain_text_writer::plain_text_writer() {}
plain_text_writer::~plain_text_writer() {}
const std::string& plain_text_writer::gen_... | 32.771084 | 107 | 0.507353 | seokhwan |
12db43c9ff8840212e76558f015bfdead5bbb6e8 | 2,605 | cc | C++ | dune/xt/common/python.cc | ftschindler-work/dune-xt-common | 1748530e13dbf683b5bf14289bf3e134485755a8 | [
"BSD-2-Clause"
] | 2 | 2016-01-05T14:54:52.000Z | 2020-02-08T04:09:13.000Z | dune/xt/common/python.cc | ftschindler-work/dune-xt-common | 1748530e13dbf683b5bf14289bf3e134485755a8 | [
"BSD-2-Clause"
] | 119 | 2016-01-06T16:32:14.000Z | 2020-03-25T08:28:53.000Z | dune/xt/common/python.cc | ftschindler-work/dune-xt-common | 1748530e13dbf683b5bf14289bf3e134485755a8 | [
"BSD-2-Clause"
] | 5 | 2016-04-13T08:03:45.000Z | 2020-03-13T10:59:17.000Z | // This file is part of the dune-xt-common project:
// https://github.com/dune-community/dune-xt-common
// Copyright 2009-2018 dune-xt-common developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://o... | 31.768293 | 105 | 0.61881 | ftschindler-work |
12dc0977c258b3c00c70904c544f66fd11e86056 | 6,162 | cpp | C++ | src/scheduler.cpp | cainiaoDJ/netplus | 03350d507830b3a39620374225d16c0b57623ef1 | [
"MIT"
] | 48 | 2021-02-22T03:10:40.000Z | 2022-03-29T03:26:33.000Z | src/scheduler.cpp | cainiaoDJ/netplus | 03350d507830b3a39620374225d16c0b57623ef1 | [
"MIT"
] | 7 | 2021-03-20T09:25:11.000Z | 2022-03-07T03:26:56.000Z | src/scheduler.cpp | cainiaoDJ/netplus | 03350d507830b3a39620374225d16c0b57623ef1 | [
"MIT"
] | 13 | 2021-02-25T01:49:58.000Z | 2022-03-21T00:30:34.000Z |
#include <netp/core.hpp>
#include <netp/smart_ptr.hpp>
#include <netp/logger_broker.hpp>
#include <netp/scheduler.hpp>
namespace netp {
runner::runner(u8_t id, scheduler* s) :
m_id(id),
m_wait_flag(0),
m_state(task_runner_state::TR_S_IDLE),
m_scheduler(s)
{
NETP_TRACE_TASK("[TRunner][-%u-]construct new ... | 23.165414 | 81 | 0.654008 | cainiaoDJ |
12dd2a0810dbbe8c4f258744733d7ef07025a68b | 1,530 | cpp | C++ | JCommon/JNet/JRequest.cpp | jimmythepage/JEngine | aec32fd2a3be9910f7f75511ba90f0d92fbd82c6 | [
"MIT"
] | null | null | null | JCommon/JNet/JRequest.cpp | jimmythepage/JEngine | aec32fd2a3be9910f7f75511ba90f0d92fbd82c6 | [
"MIT"
] | 5 | 2020-05-08T13:41:03.000Z | 2020-05-10T11:06:23.000Z | JCommon/JNet/JRequest.cpp | jimmythepage/JTPE | b86f5bbd4bbe3a5d543f1707c9b49cecc4484b05 | [
"MIT"
] | null | null | null | #include "JCommonPch.h"
using namespace J;
using namespace J::TASK;
using namespace J::NET;
const __int64 TIMEOUT_REQUEST = 2000;
JRequest::JRequest():mResponseReady(false)
{
}
JRequest::~JRequest()
{
}
void JRequest::Init(const std::string name)
{
JTask::Init(name);
mResponseReady = false;
}
void JRequest::Clea... | 18.658537 | 76 | 0.673203 | jimmythepage |
12e1f5d66cfe42f10eeb8a13435735993233fe21 | 301 | hpp | C++ | src/fem/mapglobal.hpp | XiaoMaResearch/hybrid_tsunamic_plane_stress | 574988edfcd4839f680b85cde2bf818936e86b78 | [
"MIT"
] | 6 | 2019-04-12T19:51:23.000Z | 2021-09-16T07:12:57.000Z | src/fem/mapglobal.hpp | XiaoMaResearch/hybrid_tsunamic_plane_stress | 574988edfcd4839f680b85cde2bf818936e86b78 | [
"MIT"
] | null | null | null | src/fem/mapglobal.hpp | XiaoMaResearch/hybrid_tsunamic_plane_stress | 574988edfcd4839f680b85cde2bf818936e86b78 | [
"MIT"
] | 1 | 2019-07-07T07:23:58.000Z | 2019-07-07T07:23:58.000Z | //
// mapglobal.hpp
// hybrid_fem_bie
//
// Created by Max on 2/6/18.
//
//
#ifndef mapglobal_hpp
#define mapglobal_hpp
#include <stdio.h>
#include <Eigen/Eigen>
using namespace Eigen;
void mapglobal(const ArrayXi &index, VectorXd &u_global ,const VectorXd &u_local);
#endif /* mapglobal_hpp */
| 16.722222 | 82 | 0.714286 | XiaoMaResearch |
12eefbf6318406369661502ed6b9d560137afb49 | 2,903 | cpp | C++ | src/myengine/Sound.cpp | asderfghj/MyEngine | 13baf9122211b440f928c5cd14d6af378f0eca24 | [
"MIT"
] | null | null | null | src/myengine/Sound.cpp | asderfghj/MyEngine | 13baf9122211b440f928c5cd14d6af378f0eca24 | [
"MIT"
] | null | null | null | src/myengine/Sound.cpp | asderfghj/MyEngine | 13baf9122211b440f928c5cd14d6af378f0eca24 | [
"MIT"
] | null | null | null | #include "Sound.h"
#include "Resources.h"
#include <vorbis/vorbisfile.h>
#include <iostream>
#include <vector>
namespace frontier
{
struct SoundImpl
{
ALuint id;
~SoundImpl()
{
alDeleteBuffers(1, &id);
}
void load_ogg(std::string _fileName, std::vector<char> &_buffer, ALenum &_format, ALsizei &_freq... | 23.224 | 114 | 0.65794 | asderfghj |
12f42d3d8fc8288b605efd4036a7167dfd2907a6 | 593 | cpp | C++ | 3rdparty/openbw/bwapi/bwapi/BWScriptEmulator/DefenseClear.cpp | ratiotile/StardustDevEnvironment | 15c512b81579d8bd663db3fa8e0847d4c27f17e8 | [
"MIT"
] | 8 | 2020-09-29T17:11:15.000Z | 2022-01-29T20:41:33.000Z | 3rdparty/openbw/bwapi/bwapi/BWScriptEmulator/DefenseClear.cpp | ratiotile/StardustDevEnvironment | 15c512b81579d8bd663db3fa8e0847d4c27f17e8 | [
"MIT"
] | 1 | 2021-03-08T17:43:05.000Z | 2021-03-09T06:35:04.000Z | 3rdparty/openbw/bwapi/bwapi/BWScriptEmulator/DefenseClear.cpp | ratiotile/StardustDevEnvironment | 15c512b81579d8bd663db3fa8e0847d4c27f17e8 | [
"MIT"
] | 1 | 2021-03-01T04:31:30.000Z | 2021-03-01T04:31:30.000Z | #include "DefenseClear.h"
#include "Controller.h"
using namespace AISCRIPT;
DefenseClear defenseclear_gg_impl(AISCRIPT::Enum::DEFENSECLEAR_GG);
DefenseClear defenseclear_ag_impl(AISCRIPT::Enum::DEFENSECLEAR_AG);
DefenseClear defenseclear_ga_impl(AISCRIPT::Enum::DEFENSECLEAR_GA);
DefenseClear defenseclear_aa_impl(AISC... | 29.65 | 83 | 0.795953 | ratiotile |
12f49add9165595e5bf1b3680ddcac2a1a58d40a | 703 | hpp | C++ | src/query/interpreter/Interpreter.hpp | konnidb/bridgeDB | 0590e88d50323750a0e207ba5e7e948986f38ac5 | [
"Apache-2.0"
] | 3 | 2019-08-10T20:59:22.000Z | 2019-09-15T06:58:00.000Z | src/query/interpreter/Interpreter.hpp | konnidb/bridgeDB | 0590e88d50323750a0e207ba5e7e948986f38ac5 | [
"Apache-2.0"
] | 9 | 2019-08-10T20:44:11.000Z | 2019-10-28T10:41:58.000Z | src/query/interpreter/Interpreter.hpp | konnidb/bridgeDB | 0590e88d50323750a0e207ba5e7e948986f38ac5 | [
"Apache-2.0"
] | 1 | 2019-09-15T07:02:58.000Z | 2019-09-15T07:02:58.000Z | #include <iostream>
#include <string.h>
#include <unordered_map>
using namespace std;
#ifndef INTERPRETER_CLASS
#define INTERPRETER_CLASS
class Interpreter
{
private:
int parser_result = 0;
bool is_inside_match;
string query;
unordered_map<string, string> nodes;
unordered_map<string, string> node_alias;
u... | 21.96875 | 46 | 0.762447 | konnidb |
12f4bb2343b7cb0767af0ab66152f2ca9aceb8a4 | 12,312 | cc | C++ | .old/dcadmm_old.cc | chunlinli/clrdag | 40b6f0ff6a0e3bdd7d752e3eaa1f52764a8b3367 | [
"MIT"
] | 1 | 2020-06-10T04:28:24.000Z | 2020-06-10T04:28:24.000Z | .old/dcadmm_old.cc | chunlinli/clrdag | 40b6f0ff6a0e3bdd7d752e3eaa1f52764a8b3367 | [
"MIT"
] | null | null | null | .old/dcadmm_old.cc | chunlinli/clrdag | 40b6f0ff6a0e3bdd7d752e3eaa1f52764a8b3367 | [
"MIT"
] | 1 | 2022-01-27T11:20:04.000Z | 2022-01-27T11:20:04.000Z | /*
ref: Li, Shen, Pan "Likelihood inference for a large directed acyclic graph"
author: Chunlin Li (li000007@umn.edu), Ziyue Zhu (zhux0502@umn.edu)
version 0.19.02.16
*/
#include <math.h>
#include <RcppArmadillo.h>
using namespace std;
using namespace Rcpp;
using namespace arma;
// [[Rcpp::depends(RcppArmadillo)]]
... | 24.57485 | 109 | 0.340237 | chunlinli |
12f5b1b64a09868834dbd1bd9cd7b57d1aadb9da | 1,699 | cpp | C++ | codegen.cpp | zsr2531/bfc | 5f6917c1d8e084dd2ba4507c7bca8f73bbc4504e | [
"MIT"
] | 5 | 2020-09-06T10:42:41.000Z | 2021-12-22T09:37:44.000Z | codegen.cpp | zsr2531/bfc | 5f6917c1d8e084dd2ba4507c7bca8f73bbc4504e | [
"MIT"
] | null | null | null | codegen.cpp | zsr2531/bfc | 5f6917c1d8e084dd2ba4507c7bca8f73bbc4504e | [
"MIT"
] | 1 | 2021-08-13T09:40:04.000Z | 2021-08-13T09:40:04.000Z | #include "codegen.hpp"
auto CodeGen::visitPrintStatement(const PrintStatement& printStatement) -> void {
indentation();
builder << "putchar(memory[current]);\n";
}
auto CodeGen::visitInputStatement(const InputStatement& inputStatement) -> void {
indentation();
builder << "memory[current] = getchar();\... | 32.673077 | 96 | 0.666274 | zsr2531 |
12f95836da9869ca08b43e22f4e150f242c01f8e | 266 | cpp | C++ | Third Series of Exercises/Answers to Exercises/Exercise 1.cpp | AlirezaBoroon/Computer-and-Programming-Fundamental-Course-001 | d2dabcd3474c641c6291a47a2d987fa003b67546 | [
"MIT"
] | null | null | null | Third Series of Exercises/Answers to Exercises/Exercise 1.cpp | AlirezaBoroon/Computer-and-Programming-Fundamental-Course-001 | d2dabcd3474c641c6291a47a2d987fa003b67546 | [
"MIT"
] | null | null | null | Third Series of Exercises/Answers to Exercises/Exercise 1.cpp | AlirezaBoroon/Computer-and-Programming-Fundamental-Course-001 | d2dabcd3474c641c6291a47a2d987fa003b67546 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
cout<< "This program is for printing the numbers divisible by 4 from 1 to 50"<< endl;
int i;
for(i= 1; i<= 50; i++){
if(i% 4== 0){
cout<< i<< endl;
}
}
return 0;
}
| 19 | 89 | 0.511278 | AlirezaBoroon |
12fea91d57c55c0c3c343455476724135b8bef63 | 9,696 | cpp | C++ | src/env/mesh.cpp | malasiot/vsim | 2a69e27364bab29194328af3d050e34f907e226b | [
"MIT"
] | null | null | null | src/env/mesh.cpp | malasiot/vsim | 2a69e27364bab29194328af3d050e34f907e226b | [
"MIT"
] | null | null | null | src/env/mesh.cpp | malasiot/vsim | 2a69e27364bab29194328af3d050e34f907e226b | [
"MIT"
] | null | null | null | #include <vsim/env/geometry.hpp>
using namespace std ;
namespace vsim {
MeshPtr Mesh::createWireCube(float hs) {
MeshPtr m(new Mesh) ;
m->vertices_ = {{ -hs, +hs, +hs }, { +hs, +hs, +hs }, { +hs, -hs, +hs }, { -hs, -hs, +hs },
{ -hs, +hs, -hs }, { +hs, +hs, -hs }, { +hs, -hs, -hs }, { -h... | 28.686391 | 146 | 0.539604 | malasiot |
4201a0b91c7a79f85345e6f28f55e626e433b958 | 5,575 | hpp | C++ | windows/include/boost/spirit/home/qi/auxiliary/primitives.hpp | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | 6 | 2015-12-29T07:21:01.000Z | 2020-05-29T10:47:38.000Z | windows/include/boost/spirit/home/qi/auxiliary/primitives.hpp | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | windows/include/boost/spirit/home/qi/auxiliary/primitives.hpp | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | /*=============================================================================
Copyright (c) 2001-2008 Hartmut Kaiser
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)
====================================... | 33.584337 | 84 | 0.459193 | jaredhoberock |
420385d223f1d02495c5c49d18eaaf12a402c6a0 | 12,615 | cpp | C++ | Libs/GuiSys/CompTextEdit.cpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | Libs/GuiSys/CompTextEdit.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | Libs/GuiSys/CompTextEdit.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "CompTextEdit.hpp"
#include "AllComponents.hpp"
#include "CompText.hpp"
#include "GuiImpl.hpp"
#include "Window.hpp"
#include "OpenGL/OpenGLWindow.hpp" ... | 33.110236 | 219 | 0.608403 | dns |
421134743945b15d2b89a1e8cf177cd163c1aab0 | 4,758 | hpp | C++ | src/dbus_client.hpp | ivanu74/client | f86ea346f0384d12c67caf0265a321f86869d50f | [
"Apache-2.0"
] | null | null | null | src/dbus_client.hpp | ivanu74/client | f86ea346f0384d12c67caf0265a321f86869d50f | [
"Apache-2.0"
] | null | null | null | src/dbus_client.hpp | ivanu74/client | f86ea346f0384d12c67caf0265a321f86869d50f | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <iostream>
#include <string>
#include <sstream>
#include <sdbusplus/bus.hpp>
#include <cstdlib>
using namespace sdbusplus;
constexpr auto DUMP_MGR_SERVICE = "xyz.openbmc_project.Dump.Manager";
constexpr auto DUMP_MGR_PATH = "/xyz/openbmc_project/dump";
constexpr auto DUMP_CREATE_IFACE = "xyz.... | 31.932886 | 82 | 0.657209 | ivanu74 |
4218b5a12c85af202c2093dd090082f6717cee2c | 698 | cpp | C++ | singleNum.cpp | krisf01/leetcode | 0d32e1cb27d7d8cae4b1a7c4a7c1266749aa8956 | [
"MIT"
] | null | null | null | singleNum.cpp | krisf01/leetcode | 0d32e1cb27d7d8cae4b1a7c4a7c1266749aa8956 | [
"MIT"
] | null | null | null | singleNum.cpp | krisf01/leetcode | 0d32e1cb27d7d8cae4b1a7c4a7c1266749aa8956 | [
"MIT"
] | 1 | 2021-11-22T05:50:20.000Z | 2021-11-22T05:50:20.000Z | #include <vector>
#include <iostream>
using namespace std;
class Solution
{
public:
int singleNumber(vector<int>& nums)
{
sort(nums.begin(), nums.end());
for(int i = 0; i < nums.size() - 1;)
{
if(nums[i+1] != nums[i])
return nums[i];
... | 17.45 | 44 | 0.446991 | krisf01 |
421bfe9ee93508945e94112852001a9fa5a653f9 | 509 | cpp | C++ | test/Host_test/test.cpp | kenmazsyma/GPDS | 26db4ff0d056546e84b1082379f9802b6233b2a5 | [
"MIT"
] | null | null | null | test/Host_test/test.cpp | kenmazsyma/GPDS | 26db4ff0d056546e84b1082379f9802b6233b2a5 | [
"MIT"
] | null | null | null | test/Host_test/test.cpp | kenmazsyma/GPDS | 26db4ff0d056546e84b1082379f9802b6233b2a5 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "../../Host.h"
using namespace gpds;
int main(int argc, char **argv) {
std::shared_ptr<Host> host = Host::getInstance();
NETID id;
std::function<void(const boost::system::error_code &)> callback = nullptr;
try {
host->run(id, 10000);
} catch (std::exception &e) {
std::cou... | 18.851852 | 75 | 0.614931 | kenmazsyma |
422092e9a932737ac7af7337a16635418d95d81c | 5,835 | cpp | C++ | src/brew/video/ShaderVariables.cpp | grrrrunz/brew | 13e17e2f6c9fb0f612c3a0bcabd233085ca15867 | [
"MIT"
] | 1 | 2018-02-09T16:20:50.000Z | 2018-02-09T16:20:50.000Z | src/brew/video/ShaderVariables.cpp | grrrrunz/brew | 13e17e2f6c9fb0f612c3a0bcabd233085ca15867 | [
"MIT"
] | null | null | null | src/brew/video/ShaderVariables.cpp | grrrrunz/brew | 13e17e2f6c9fb0f612c3a0bcabd233085ca15867 | [
"MIT"
] | null | null | null | /**
*
* |_ _ _
* |_)| (/_VV
*
* Copyright 2015-2018 Marcus v. Keil
*
* Created on: 11.09.17
*
*/
#include <brew/video/ShaderVariables.h>
#include <algorithm>
namespace brew {
const String ShaderVariables::BuiltInCombinedCameraMatrix = "combinedCamera";
const String ShaderVariables::BuiltInWorldTransfo... | 30.710526 | 121 | 0.723393 | grrrrunz |
42216a89c3a611cafe34ecc7cf10e91e3a5c24a7 | 1,085 | cpp | C++ | Basics/hexadecimaltodecimal.cpp | akshay-thummar/DSA-Busted | 8194411555d978bcf9bd66f9e0da5e502a94a493 | [
"MIT"
] | 17 | 2021-12-03T14:29:01.000Z | 2022-03-09T18:25:05.000Z | Basics/hexadecimaltodecimal.cpp | riti2409/DSA-Busted | 8194411555d978bcf9bd66f9e0da5e502a94a493 | [
"MIT"
] | null | null | null | Basics/hexadecimaltodecimal.cpp | riti2409/DSA-Busted | 8194411555d978bcf9bd66f9e0da5e502a94a493 | [
"MIT"
] | 4 | 2022-01-29T14:03:48.000Z | 2022-03-01T22:53:41.000Z | #include<bits/stdc++.h>
using namespace std;
int hextodec(string n){
int ans=0;
int x=1;
int s=n.size();
for(int i=s-1;i>=0;i-- )
{
if(n[i]>='0'&&n[i]<='9'){
ans+=x*(n[i]-'0');
}
else if(n[i]>='A'&& n[i]<='F'){
ans+=x*(n[i]-'A'+10);
}
x*=16;
}
return ans;
}
int main()
{... | 19.035088 | 67 | 0.407373 | akshay-thummar |
4221e9f025bf19c3bea04e44ad4512844a31a11d | 13,761 | hpp | C++ | aliSystem/aliSystem_threadingQueue.hpp | hendrik-brower/ali | c9d8740fecdb486b7be00b4257ce6d79ea45aead | [
"MIT"
] | null | null | null | aliSystem/aliSystem_threadingQueue.hpp | hendrik-brower/ali | c9d8740fecdb486b7be00b4257ce6d79ea45aead | [
"MIT"
] | null | null | null | aliSystem/aliSystem_threadingQueue.hpp | hendrik-brower/ali | c9d8740fecdb486b7be00b4257ce6d79ea45aead | [
"MIT"
] | null | null | null | #ifndef INCLUDED_ALI_SYSTEM_THREADING_QUEUE
#define INCLUDED_ALI_SYSTEM_THREADING_QUEUE
#include <aliSystem_listener.hpp>
#include <aliSystem_listeners.hpp>
#include <aliSystem_stats.hpp>
#include <aliSystem_threadingSemaphore.hpp>
#include <aliSystem_threadingWork.hpp>
#include <memory>
#include <list>
#include <mute... | 50.591912 | 94 | 0.635128 | hendrik-brower |
42266cd07777abc2077a3427ab1400d3ff791ac6 | 7,591 | cpp | C++ | UnitCell.cpp | andyjaj/chainamps | 5652132bda91745a9b1dd7f8b6c9fbba7ea63004 | [
"MIT"
] | null | null | null | UnitCell.cpp | andyjaj/chainamps | 5652132bda91745a9b1dd7f8b6c9fbba7ea63004 | [
"MIT"
] | null | null | null | UnitCell.cpp | andyjaj/chainamps | 5652132bda91745a9b1dd7f8b6c9fbba7ea63004 | [
"MIT"
] | null | null | null | #include <vector>
#include <iterator>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstdlib>
//#include <utility>
#include <algorithm>
#include "sparse_interface.hpp"
#include "states.hpp"
#include "MPXIndex.hpp" //tensor index class
#include "MPX_matrix.hpp" //general tensor class
#include "MPS_... | 35.471963 | 170 | 0.627717 | andyjaj |
423022075e44858266a43eba2d0eb26aa871de20 | 10,175 | cpp | C++ | src/puzzles/hashiwokakero/hashiboard.cpp | huwlloyd-mmu/jpop | 8a749ec5d92b3a6d67ea898a5b4282113dc7ea4b | [
"MIT"
] | null | null | null | src/puzzles/hashiwokakero/hashiboard.cpp | huwlloyd-mmu/jpop | 8a749ec5d92b3a6d67ea898a5b4282113dc7ea4b | [
"MIT"
] | null | null | null | src/puzzles/hashiwokakero/hashiboard.cpp | huwlloyd-mmu/jpop | 8a749ec5d92b3a6d67ea898a5b4282113dc7ea4b | [
"MIT"
] | null | null | null | #include "hashiboard.h"
#include <vector>
#include <fstream>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <cstring>
using namespace std;
HashiBoard::HashiBoard(const std::string &fileName)
{
// this is a monster - do something about it!
ifstream inFile(fileName);
if (!inFile.is_open())
st... | 25.310945 | 130 | 0.589484 | huwlloyd-mmu |
42387aaa81785910dc9478aed998749fdface033 | 779 | cc | C++ | digraph.cc | mpolacek/goo | 74efae79e4ada9bff6c0b00d28b729ac4db2a066 | [
"MIT"
] | 1 | 2020-12-05T00:41:11.000Z | 2020-12-05T00:41:11.000Z | digraph.cc | mpolacek/goo | 74efae79e4ada9bff6c0b00d28b729ac4db2a066 | [
"MIT"
] | null | null | null | digraph.cc | mpolacek/goo | 74efae79e4ada9bff6c0b00d28b729ac4db2a066 | [
"MIT"
] | null | null | null | // The digraph hack.
// Valid C++98, invalid C++11.
// libcpp/lex.c:_cpp_lex_direct:
#if 0
else if (CPP_OPTION (pfile, digraphs))
{
if (*buffer->cur == ':')
{
/* C++11 [2.5/3 lex.pptoken], "Otherwise, if the next
three characters are <:: and the subsequent character
is neither : nor >, the <... | 26.862069 | 60 | 0.550706 | mpolacek |
424031b6a6458e3fa8578064f0faad261d0bbceb | 2,446 | hpp | C++ | utils/TinyPermutation.hpp | Marc--Olivier/DataVisualization | 8cbefa3db9807b21197efbc8c8d5b5846a1671ca | [
"BSL-1.0"
] | 2 | 2019-07-23T13:51:46.000Z | 2019-07-23T14:29:10.000Z | utils/TinyPermutation.hpp | Marc--Olivier/DataVisualization | 8cbefa3db9807b21197efbc8c8d5b5846a1671ca | [
"BSL-1.0"
] | null | null | null | utils/TinyPermutation.hpp | Marc--Olivier/DataVisualization | 8cbefa3db9807b21197efbc8c8d5b5846a1671ca | [
"BSL-1.0"
] | 1 | 2018-10-19T12:56:01.000Z | 2018-10-19T12:56:01.000Z | /**
* Copyright Marc-Olivier Andrez 2018.
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* https://www.boost.org/LICENSE_1_0.txt)
*/
#pragma once
#include "utils/TinyArray.hpp"
#include "utils/internal/TinyPermutation.hpp"
namespace utils {
t... | 30.197531 | 75 | 0.719951 | Marc--Olivier |
4242e72566c7caf406a7645b7dc1ce6b581930bd | 3,875 | cpp | C++ | src/graphnode.cpp | nicolcarstens/CppND-Memory-Management-Chatbot | 3685f2f07f6afd83ee5c001d8bc06be002400b20 | [
"MIT"
] | null | null | null | src/graphnode.cpp | nicolcarstens/CppND-Memory-Management-Chatbot | 3685f2f07f6afd83ee5c001d8bc06be002400b20 | [
"MIT"
] | null | null | null | src/graphnode.cpp | nicolcarstens/CppND-Memory-Management-Chatbot | 3685f2f07f6afd83ee5c001d8bc06be002400b20 | [
"MIT"
] | null | null | null | /******************************************************************************
*
* Udacity Nanodegree in C++
* Memory Management ChatBot - Project 3
*
* Work done by Nicol Carstens, February/March 2020
* Baseline code provided by udacity.com
*
* Status: ready to submit (7 March 2020)
*
* Copyright: Nicol Carste... | 32.838983 | 95 | 0.616 | nicolcarstens |
4242ea2c2abf4d22a304a9a004727f5fbecbdfce | 29 | cpp | C++ | moving_members.cpp | noora-ekramy/DS-project | 5446c6ddf03d0dda69d3da7cddbac70339f2bf4d | [
"Zlib"
] | 1 | 2022-02-18T14:38:23.000Z | 2022-02-18T14:38:23.000Z | moving_members.cpp | Mohammed-Refat/Pac-Man-Game | f4895cc5bcb48c259993eec11dec0ce7faa6695c | [
"Zlib"
] | null | null | null | moving_members.cpp | Mohammed-Refat/Pac-Man-Game | f4895cc5bcb48c259993eec11dec0ce7faa6695c | [
"Zlib"
] | 2 | 2021-07-13T12:50:18.000Z | 2021-10-21T09:31:11.000Z | #include "moving_members.h"
| 14.5 | 28 | 0.758621 | noora-ekramy |
424b34b618b495f146fa3c0c93648a36fc2b0498 | 1,985 | hpp | C++ | include/eve/module/real/core/function/regular/simd/ppc/rec.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 340 | 2020-09-16T21:12:48.000Z | 2022-03-28T15:40:33.000Z | include/eve/module/real/core/function/regular/simd/ppc/rec.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 383 | 2020-09-17T06:56:35.000Z | 2022-03-13T15:58:53.000Z | include/eve/module/real/core/function/regular/simd/ppc/rec.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 28 | 2021-02-27T23:11:23.000Z | 2022-03-25T12:31:29.000Z | //==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pr... | 31.015625 | 100 | 0.574811 | leha-bot |
4258e5d555bd410da6a62fc5702855ef720901d6 | 251 | cpp | C++ | judges/uri/iniciante/1133.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | null | null | null | judges/uri/iniciante/1133.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | 1 | 2018-10-17T11:53:02.000Z | 2018-10-17T11:54:42.000Z | judges/uri/iniciante/1133.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | 1 | 2018-10-17T12:14:04.000Z | 2018-10-17T12:14:04.000Z | #include <bits/stdc++.h>
using namespace std;
int main (){
int a, b, temp;
cin >> a >> b;
if(a > b){
temp = a;
a = b;
b = temp;
}
for(int i = a+1; i < b; i++){
if(i % 5 == 2 || i % 5 == 3){
printf("%d\n", i);
}
}
return 0;
} | 10.458333 | 31 | 0.422311 | eduardonunes2525 |
42603f05032abf40f1604bdd9ab744bbe9354220 | 768 | hpp | C++ | src/acceleration/two_grid/spectral_shape/tests/material_spectral_shapes_mock.hpp | SlaybaughLab/Transport | 8eb32cb8ae50c92875526a7540350ef9a85bc050 | [
"MIT"
] | 12 | 2018-03-14T12:30:53.000Z | 2022-01-23T14:46:44.000Z | src/acceleration/two_grid/spectral_shape/tests/material_spectral_shapes_mock.hpp | SlaybaughLab/Transport | 8eb32cb8ae50c92875526a7540350ef9a85bc050 | [
"MIT"
] | 194 | 2017-07-07T01:38:15.000Z | 2021-05-19T18:21:19.000Z | src/acceleration/two_grid/spectral_shape/tests/material_spectral_shapes_mock.hpp | SlaybaughLab/Transport | 8eb32cb8ae50c92875526a7540350ef9a85bc050 | [
"MIT"
] | 10 | 2017-07-06T22:58:59.000Z | 2021-03-15T07:01:21.000Z | #ifndef BART_SRC_CALCULATOR_TWO_GRID_TESTS_MATERIAL_SPECTRAL_SHAPES_MOCK_HPP_
#define BART_SRC_CALCULATOR_TWO_GRID_TESTS_MATERIAL_SPECTRAL_SHAPES_MOCK_HPP_
#include "acceleration/two_grid/spectral_shape/material_spectral_shapes_i.hpp"
#include "test_helpers/gmock_wrapper.h"
namespace bart::acceleration::two_grid::spe... | 42.666667 | 111 | 0.845052 | SlaybaughLab |
4262169de540add230ed738cbdd7cf61a44b3fa5 | 1,610 | hpp | C++ | include/boost/document/detail/ms_api/ms_functions.hpp | anuragxel/generic-document-library | e7d0f53f47ab85709968c91f0f4ca423796bc4cd | [
"BSL-1.0"
] | null | null | null | include/boost/document/detail/ms_api/ms_functions.hpp | anuragxel/generic-document-library | e7d0f53f47ab85709968c91f0f4ca423796bc4cd | [
"BSL-1.0"
] | null | null | null | include/boost/document/detail/ms_api/ms_functions.hpp | anuragxel/generic-document-library | e7d0f53f47ab85709968c91f0f4ca423796bc4cd | [
"BSL-1.0"
] | null | null | null | #ifndef _MS_FUNCTIONS_HPP
#define _MS_FUNCTIONS_HPP
// Copyright Anurag Ghosh 2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <string>
#include <iostream>
#include <cstdlib>
... | 36.590909 | 142 | 0.773913 | anuragxel |
4269b602bd75e232b2806f2ad80fdb4091dadd99 | 8,955 | cpp | C++ | tests/unit/test_semver_parser.cpp | mariokonrad/semver | 4ac6253abf7bab80fff7e834c2c3f550fa0c2da5 | [
"BSD-3-Clause"
] | 1 | 2021-01-29T10:56:38.000Z | 2021-01-29T10:56:38.000Z | tests/unit/test_semver_parser.cpp | mariokonrad/semver | 4ac6253abf7bab80fff7e834c2c3f550fa0c2da5 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_semver_parser.cpp | mariokonrad/semver | 4ac6253abf7bab80fff7e834c2c3f550fa0c2da5 | [
"BSD-3-Clause"
] | 1 | 2021-10-31T10:12:43.000Z | 2021-10-31T10:12:43.000Z | #include "detail/semver_parser.hpp"
#include <gtest/gtest.h>
namespace {
using ::semver::v1::detail::semver_parser;
class test_semver_parser : public ::testing::Test {};
#define EXPECT_SV(s, e) EXPECT_EQ(std::string(s), (e))
TEST_F(test_semver_parser, empty)
{
const auto v = semver_parser("");
ASSERT_FALSE(v.ok... | 22.902813 | 77 | 0.689559 | mariokonrad |
f1158143d2b139a95cd3dc1a8aa5f9c3965b7138 | 1,288 | cpp | C++ | testwidget.cpp | kingnak/prtester | 92535c754da01ecdfeae3088f7dd33556ac13c2b | [
"MIT"
] | null | null | null | testwidget.cpp | kingnak/prtester | 92535c754da01ecdfeae3088f7dd33556ac13c2b | [
"MIT"
] | null | null | null | testwidget.cpp | kingnak/prtester | 92535c754da01ecdfeae3088f7dd33556ac13c2b | [
"MIT"
] | null | null | null | #include "testwidget.h"
#include "ui_testwidget.h"
#include <QMessageBox>
TestWidget::TestWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::TestWidget),
m_total(0),
m_correct(0)
{
ui->setupUi(this);
}
TestWidget::~TestWidget()
{
delete ui;
}
void TestWidget::nextQuestion()
{
m_total++... | 20.774194 | 71 | 0.651398 | kingnak |
f11e1a27b288bfd8c47620a26c7e0aa7dbef20a5 | 5,460 | cpp | C++ | lib/ST_Anything/EX_Alarm.cpp | hansaya/GarageDoorOpener | 946b1431143d4c5b1c9493f951f6d8f09a7e52f5 | [
"MIT"
] | 1 | 2020-12-07T22:32:27.000Z | 2020-12-07T22:32:27.000Z | lib/ST_Anything/EX_Alarm.cpp | hansaya/GarageDoorOpener | 946b1431143d4c5b1c9493f951f6d8f09a7e52f5 | [
"MIT"
] | null | null | null | lib/ST_Anything/EX_Alarm.cpp | hansaya/GarageDoorOpener | 946b1431143d4c5b1c9493f951f6d8f09a7e52f5 | [
"MIT"
] | null | null | null | //******************************************************************************************
// File: EX_Alarm.h
// Authors: Dan G Ogorchock & Daniel J Ogorchock (Father and Son)
//
// Summary: EX_Alarm is a class which implements the SmartThings "Alarm" device capability.
// It inherits from the st::PollingSen... | 28.586387 | 125 | 0.628388 | hansaya |
f123c5f3966936c9e8f252d5f8feda12d2032c7e | 3,562 | cpp | C++ | src/modules/navigator/idle.cpp | ender-chen/HIFLY | 32b27cbdd37ee32dafc01cada86a3977229a064e | [
"BSD-3-Clause"
] | 2 | 2018-03-30T04:53:29.000Z | 2020-07-20T09:48:13.000Z | src/modules/navigator/idle.cpp | ender-chen/HIFLY | 32b27cbdd37ee32dafc01cada86a3977229a064e | [
"BSD-3-Clause"
] | null | null | null | src/modules/navigator/idle.cpp | ender-chen/HIFLY | 32b27cbdd37ee32dafc01cada86a3977229a064e | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
*
* Copyright (c) 2013-2014 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... | 31.522124 | 98 | 0.730208 | ender-chen |
f123f841aa0d1e73cbacbf08090079ae483009da | 1,219 | cpp | C++ | 10_DirichletSample.cpp | KathrynLaing/CPNLearning | b5123f7f1fe5adda8a63a73ed117c67e282cea69 | [
"MIT"
] | null | null | null | 10_DirichletSample.cpp | KathrynLaing/CPNLearning | b5123f7f1fe5adda8a63a73ed117c67e282cea69 | [
"MIT"
] | null | null | null | 10_DirichletSample.cpp | KathrynLaing/CPNLearning | b5123f7f1fe5adda8a63a73ed117c67e282cea69 | [
"MIT"
] | null | null | null | #include "10_DirichletSample.h"
using namespace std;
std::vector<double> DirSample(std::vector<double> beta, int k, int N){
//This Function takes k beta values and draws N times from the associated Dir distribution
//sample is output as a N*k vector listing each sample in order
double InputBeta[k],sample[k];
... | 32.945946 | 92 | 0.702215 | KathrynLaing |
f124037037684ff62344de5aa454c2e80b6719ab | 645 | cpp | C++ | test/cpu_tests.cpp | v3n/os | 4f0bc361f2fe90fc981c2e7b286a9fffad7cf8e3 | [
"MIT"
] | null | null | null | test/cpu_tests.cpp | v3n/os | 4f0bc361f2fe90fc981c2e7b286a9fffad7cf8e3 | [
"MIT"
] | 13 | 2015-03-08T19:14:13.000Z | 2015-04-13T21:32:55.000Z | test/cpu_tests.cpp | v3n/os | 4f0bc361f2fe90fc981c2e7b286a9fffad7cf8e3 | [
"MIT"
] | null | null | null | /******************************************************
* cpu_tests.cpp - cpu unit tests
* created 140204 jonathan howard (j@hovverd.com)
******************************************************/
#include "gtest/gtest.h"
#include "utils.h"
#include "cpu.h"
#include "opcodes.h"
TEST(OpCode, IsCorrectSize)
{
ASSE... | 23.888889 | 56 | 0.55969 | v3n |
f12830814cd7d8987f57ff98bf24eb298e7dddf8 | 13,152 | cpp | C++ | src/lp_data/HighsSolve.cpp | chrhansk/HiGHS | 311aa8571925ed23c952687569dbe7207e542e0a | [
"MIT"
] | null | null | null | src/lp_data/HighsSolve.cpp | chrhansk/HiGHS | 311aa8571925ed23c952687569dbe7207e542e0a | [
"MIT"
] | null | null | null | src/lp_data/HighsSolve.cpp | chrhansk/HiGHS | 311aa8571925ed23c952687569dbe7207e542e0a | [
"MIT"
] | null | null | null | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the HiGHS linear optimization suite */
/* */
/* Written an... | 43.405941 | 80 | 0.648647 | chrhansk |
f12e0ffdbe39a654a273bd3d25eaf9bcdb52c94e | 1,050 | cpp | C++ | code/1028.cpp | Tomspiano/PAT-Advanced-Level-Practice | e7f543a23f852bcbad52170897a42b41622191ed | [
"MIT"
] | null | null | null | code/1028.cpp | Tomspiano/PAT-Advanced-Level-Practice | e7f543a23f852bcbad52170897a42b41622191ed | [
"MIT"
] | null | null | null | code/1028.cpp | Tomspiano/PAT-Advanced-Level-Practice | e7f543a23f852bcbad52170897a42b41622191ed | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define N 100005
using namespace std;
#define rep(i,a,b) for(int i=(a); i<(b); ++i)
int n, c;
struct Stu {
char id[10], name[10];
int grade;
} s[N];
int t[N];
struct cmp1 {
bool operator() (const int a, const int b) const {
return strcmp(s[a].id, s[b].id) < 0;
}
};
struct cmp2 {
bool op... | 17.79661 | 64 | 0.528571 | Tomspiano |
f1365fb3614d0a22d8e33699b771ed09e762d8e9 | 14,666 | cpp | C++ | src/hlbsp.cpp | lewa-j/hlbsp-converter | 0fa0989bbca1f46a64bfc0f91a200e3d058080de | [
"MIT"
] | 1 | 2022-03-28T17:29:00.000Z | 2022-03-28T17:29:00.000Z | src/hlbsp.cpp | lewa-j/hlbsp-converter | 0fa0989bbca1f46a64bfc0f91a200e3d058080de | [
"MIT"
] | null | null | null | src/hlbsp.cpp | lewa-j/hlbsp-converter | 0fa0989bbca1f46a64bfc0f91a200e3d058080de | [
"MIT"
] | null | null | null | // Copyright (c) 2022 Alexey Ivanchukov (lewa_j)
#include "hlbsp.h"
#include <stdio.h>
#include <map>
#include <set>
#include "map.h"
#include "lightmap.h"
#include "wad.h"
#include "parser.h"
bool Map::load_hlbsp(FILE *f, const char *name, LoadConfig *config)
{
using namespace hlbsp;
dheader_t header;
dheader31_t... | 26.189286 | 129 | 0.607459 | lewa-j |
f1420ce519b34dc171cbfbc16da4d7458ef95ca6 | 14,190 | cpp | C++ | adapters-stk/test/gather_scatter_evaluators/gs_evaluators.cpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | adapters-stk/test/gather_scatter_evaluators/gs_evaluators.cpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | adapters-stk/test/gather_scatter_evaluators/gs_evaluators.cpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | // @HEADER
// ***********************************************************************
//
// Panzer: A partial differential equation assembly
// engine for strongly coupled complex multiphysics systems
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04... | 40.659026 | 127 | 0.666173 | hillyuan |
f1434d29c60189db59acd691c24476e3a0dd9915 | 992 | hpp | C++ | src/SingleLayerOptics/src/SpecularBSDFLayer.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | 15 | 2018-04-20T19:16:50.000Z | 2022-02-11T04:11:41.000Z | src/SingleLayerOptics/src/SpecularBSDFLayer.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | 31 | 2016-04-05T20:56:28.000Z | 2022-03-31T22:02:46.000Z | src/SingleLayerOptics/src/SpecularBSDFLayer.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | 6 | 2018-04-20T19:38:58.000Z | 2020-04-06T00:30:47.000Z | #ifndef SPECULARBSDFLAYER_H
#define SPECULARBSDFLAYER_H
#include <memory>
#include <vector>
#include "BSDFLayer.hpp"
namespace SingleLayerOptics
{
class CSpecularCell;
// BSDF creation for specular layers.
class CSpecularBSDFLayer : public CBSDFLayer
{
public:
CSpecularBSDFLayer(const st... | 30.060606 | 75 | 0.620968 | bakonyidani |
f148f49735e4587f3cf180cb32f052a7cdefb23a | 7,799 | cpp | C++ | test/test_atomic.cpp | gershnik/intrusive_shared_ptr | 962fa1b0cf02cd641a490997720ea269de5f0731 | [
"MIT"
] | null | null | null | test/test_atomic.cpp | gershnik/intrusive_shared_ptr | 962fa1b0cf02cd641a490997720ea269de5f0731 | [
"MIT"
] | null | null | null | test/test_atomic.cpp | gershnik/intrusive_shared_ptr | 962fa1b0cf02cd641a490997720ea269de5f0731 | [
"MIT"
] | null | null | null | #include <intrusive_shared_ptr/intrusive_shared_ptr.h>
#include "catch.hpp"
#include "mocks.h"
using namespace isptr;
TEST_CASE( "Atomic type traits are correct", "[traits]") {
using ptr = std::atomic<mock_ptr<instrumented_counted<1>>>;
SECTION("Construction, destruction and assignment") {
CHECK( ... | 36.443925 | 114 | 0.588024 | gershnik |
f14c247220b18beee313de415da94db2e8aecf56 | 1,533 | cc | C++ | uva/00572.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | uva/00572.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | uva/00572.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://uva.onlinejudge.org/external/5/572.pdf
#include<bits/stdc++.h>
using namespace std;
using ii=tuple<int,int>;
using vi=vector<int>;
using vs=vector<string>;
using vii=vector<ii>;
using vvi=vector<vi>;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
int n,m,u,v;
while(1){
cin>>n>>m;
if(!n)brea... | 26.431034 | 84 | 0.460535 | Ashindustry007 |
f153bfc2aa5edc0accc34c5dc82e126531314a00 | 9,873 | cpp | C++ | src/lcp-client-lib/LinksLcpNode.cpp | isabelleknott/readium-lcp-client | 764b28f5f4d879f771be7e727cf4a79ac0d62d9f | [
"BSD-3-Clause"
] | 11 | 2017-02-24T10:58:19.000Z | 2021-12-28T11:24:45.000Z | src/lcp-client-lib/LinksLcpNode.cpp | isabelleknott/readium-lcp-client | 764b28f5f4d879f771be7e727cf4a79ac0d62d9f | [
"BSD-3-Clause"
] | 19 | 2017-03-10T09:16:04.000Z | 2020-01-31T09:20:59.000Z | src/lcp-client-lib/LinksLcpNode.cpp | isabelleknott/readium-lcp-client | 764b28f5f4d879f771be7e727cf4a79ac0d62d9f | [
"BSD-3-Clause"
] | 10 | 2017-06-14T08:06:42.000Z | 2022-01-25T16:49:43.000Z | // Copyright (c) 2016 Mantano
// Licensed to the Readium Foundation under one or more contributor license agreements.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must... | 42.74026 | 155 | 0.6142 | isabelleknott |
f157888b4fdf99ddb02627556488caebb4fa2266 | 994 | cpp | C++ | Interactive-Visualization/Interactive-Visualization/massspring.cpp | tofhddl9/Interactive-visualization | 3d09f344d44e492c024034ed2ad3ccd30da5fed8 | [
"Apache-2.0"
] | null | null | null | Interactive-Visualization/Interactive-Visualization/massspring.cpp | tofhddl9/Interactive-visualization | 3d09f344d44e492c024034ed2ad3ccd30da5fed8 | [
"Apache-2.0"
] | null | null | null | Interactive-Visualization/Interactive-Visualization/massspring.cpp | tofhddl9/Interactive-visualization | 3d09f344d44e492c024034ed2ad3ccd30da5fed8 | [
"Apache-2.0"
] | null | null | null | #include "massspring.h"
MassSpring::~MassSpring()
{
for (auto mass : masses_) {
delete mass;
}
for (auto spring : springs_) {
delete spring;
}
}
PointMass* MassSpring::AddMass(float mass, glm::vec3 pos)
{
PointMass* pm = new PointMass(mass, pos);
masses_.push_back(pm);
ret... | 18.407407 | 92 | 0.608652 | tofhddl9 |
f15a6ec1d43a42f20a04b9f464dea2471fcf8bbd | 10,661 | hpp | C++ | thrill/core/duplicate_detection.hpp | SDEagle/thrill | f0e5aa2326a55af3c9a92fc418f8eb8e3cf8c5fa | [
"BSD-2-Clause"
] | 1 | 2020-08-04T19:16:16.000Z | 2020-08-04T19:16:16.000Z | thrill/core/duplicate_detection.hpp | tim3z/thrill | f0e5aa2326a55af3c9a92fc418f8eb8e3cf8c5fa | [
"BSD-2-Clause"
] | null | null | null | thrill/core/duplicate_detection.hpp | tim3z/thrill | f0e5aa2326a55af3c9a92fc418f8eb8e3cf8c5fa | [
"BSD-2-Clause"
] | null | null | null | /*******************************************************************************
* thrill/core/duplicate_detection.hpp
*
* Duplicate detection
*
* Part of Project Thrill - http://project-thrill.org
*
* Copyright (C) 2016 Alexander Noe <aleexnoe@gmail.com>
* Copyright (C) 2017 Timo Bingmann <tb@panthema.net>
*
... | 37.939502 | 95 | 0.591971 | SDEagle |
f15f7883acd47a27ca17ab00fbffa2e98f8f33a4 | 544 | cpp | C++ | src/While2ForConsumer.cpp | matfija/Clang-petlje | d02f3f4538eeb8208d29b8504efd47bd7765ee66 | [
"Apache-2.0"
] | null | null | null | src/While2ForConsumer.cpp | matfija/Clang-petlje | d02f3f4538eeb8208d29b8504efd47bd7765ee66 | [
"Apache-2.0"
] | null | null | null | src/While2ForConsumer.cpp | matfija/Clang-petlje | d02f3f4538eeb8208d29b8504efd47bd7765ee66 | [
"Apache-2.0"
] | 2 | 2020-07-22T21:33:26.000Z | 2021-07-30T01:08:45.000Z | #include "While2ForConsumer.hpp"
// Posetilac koji while pretvara u for
bool While2ForVisitor::VisitWhileStmt(WhileStmt *s) {
// Formiranje nove for petlje
ForStmt petlja(TheASTContext, nullptr, s->getCond(), nullptr, nullptr, s->getBody(),
SourceLocation(), SourceLocation(), SourceLocation());
... | 27.2 | 86 | 0.716912 | matfija |
f16f8f8c1a1712c45cb4dcc0a25c16f1e0bb9eaa | 37,285 | cc | C++ | aom_20170505/test/masked_variance_test.cc | rainliu/aom_analyzer | 440652d155140c00a2827512a54103be3d6ff7e4 | [
"MIT"
] | null | null | null | aom_20170505/test/masked_variance_test.cc | rainliu/aom_analyzer | 440652d155140c00a2827512a54103be3d6ff7e4 | [
"MIT"
] | null | null | null | aom_20170505/test/masked_variance_test.cc | rainliu/aom_analyzer | 440652d155140c00a2827512a54103be3d6ff7e4 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain i... | 47.136536 | 81 | 0.653668 | rainliu |
f182c7d5764ba98559563c0f1c56d71e6c8cbbc1 | 2,766 | cpp | C++ | source/Ch05/drill/main.cpp | Koma52/UDProg-Introduction | ca8cf7f7a2c11559d4f5b3c8ad5dd55040e99762 | [
"CC0-1.0"
] | null | null | null | source/Ch05/drill/main.cpp | Koma52/UDProg-Introduction | ca8cf7f7a2c11559d4f5b3c8ad5dd55040e99762 | [
"CC0-1.0"
] | null | null | null | source/Ch05/drill/main.cpp | Koma52/UDProg-Introduction | ca8cf7f7a2c11559d4f5b3c8ad5dd55040e99762 | [
"CC0-1.0"
] | 1 | 2020-09-12T11:41:44.000Z | 2020-09-12T11:41:44.000Z | #include "std_lib_facilities.h"
int main()
try {
//1-------------------------
// cout << "Succes!\n";
//2-------------------------
// cout << "Succes!\n";
//3-------------------------
// cout << "Succes" << "!\n";
//4-------------------------
// cout << "success" << '\n';
//5-------------------------
... | 15.988439 | 39 | 0.32791 | Koma52 |
f186d200cbce902ee9af4b0eb350bedbf5cbe7df | 2,936 | cpp | C++ | src/phaseChange/calc_vacf_pore.cpp | TING2938/Gmx2020PostAnalysis | 0859383946c05c7424adb1ffa72fd2f8066ce850 | [
"MIT"
] | 4 | 2021-11-23T15:02:13.000Z | 2022-03-21T16:32:09.000Z | src/phaseChange/calc_vacf_pore.cpp | jianghuili/Gmx2020PostAnalysis | 0859383946c05c7424adb1ffa72fd2f8066ce850 | [
"MIT"
] | null | null | null | src/phaseChange/calc_vacf_pore.cpp | jianghuili/Gmx2020PostAnalysis | 0859383946c05c7424adb1ffa72fd2f8066ce850 | [
"MIT"
] | 1 | 2021-11-23T15:01:49.000Z | 2021-11-23T15:01:49.000Z | /* Author : TING
* Date : 2019/09/09
* Email : yeting2938@hust.edu.cn
* Desc : calculation vacf
*/
#include <itp/gmx>
struct Handle : public itp::GmxHandle
{
using GmxHandle::GmxHandle;
vecd calcVacf(const itp::Vector<matd>& vel, veci& index, int lateral)
{
double tmp;
size_t half... | 22.242424 | 132 | 0.543256 | TING2938 |
f18ca09cbd93f8ea61bd155f4d6680ba4cf89ffe | 760 | cpp | C++ | stl/src/lists.cpp | pvavercak/cpp_course_sources | 6e17b8b05173c8ee41d329492c3e02200bad054f | [
"MIT"
] | null | null | null | stl/src/lists.cpp | pvavercak/cpp_course_sources | 6e17b8b05173c8ee41d329492c3e02200bad054f | [
"MIT"
] | null | null | null | stl/src/lists.cpp | pvavercak/cpp_course_sources | 6e17b8b05173c8ee41d329492c3e02200bad054f | [
"MIT"
] | null | null | null | #include <iostream>
#include <list>
int main()
{
std::list<int> ints;
ints.push_back(1);
ints.push_back(2);
ints.push_back(3);
std::list<int>::iterator it = ints.begin();
it = ints.insert(it, 0);
++it;
ints.insert(it, 100);
std::list<int>::iterator eraseIt = ints.begin();
+... | 15.510204 | 52 | 0.452632 | pvavercak |
f18d7257e45bcb9b3d4192db36c289c50fbb4ce9 | 354 | cpp | C++ | platforms/unix/examples/basicTest/main.cpp | yorenschriever/MultiNode | 5960da25ba69797130f3c30c81dcabb09f67ebbd | [
"MIT"
] | null | null | null | platforms/unix/examples/basicTest/main.cpp | yorenschriever/MultiNode | 5960da25ba69797130f3c30c81dcabb09f67ebbd | [
"MIT"
] | null | null | null | platforms/unix/examples/basicTest/main.cpp | yorenschriever/MultiNode | 5960da25ba69797130f3c30c81dcabb09f67ebbd | [
"MIT"
] | 1 | 2018-02-08T11:04:19.000Z | 2018-02-08T11:04:19.000Z | #include "MultiNode.h"
int main(){
SumNode X = SumNode();
SumNode Y = SumNode();
X.GetInputSocket("A")->SetValue(1);
X.GetInputSocket("B")->Connect(Y.GetOutputSocket("C"));
Y.GetInputSocket("A")->SetValue(2);
Y.GetInputSocket("B")->SetValue(100);
Debug::Info("Antwoord: " + std::to_string(X.GetOutputSocket(... | 19.666667 | 80 | 0.655367 | yorenschriever |
f18d9cf2dd85f6f42bca18a9c5f822577615156c | 3,003 | hpp | C++ | models/airport/airport.hpp | pvelesko/warped2-models | e0afe5119374c9e2191c946f70510bb6d7558f44 | [
"MIT"
] | 4 | 2015-04-13T17:22:51.000Z | 2018-01-16T14:54:33.000Z | models/airport/airport.hpp | pvelesko/warped2-models | e0afe5119374c9e2191c946f70510bb6d7558f44 | [
"MIT"
] | 3 | 2017-08-14T21:41:32.000Z | 2020-08-21T08:21:14.000Z | models/airport/airport.hpp | pvelesko/warped2-models | e0afe5119374c9e2191c946f70510bb6d7558f44 | [
"MIT"
] | 8 | 2015-09-28T08:25:34.000Z | 2020-04-01T12:25:15.000Z | // An implementation of Fujimoto's airport model
// Ported from the ROSS airport model (https://github.com/carothersc/ROSS/blob/master/ross/models/airport)
#ifndef AIRPORT_HPP_DEFINED
#define AIRPORT_HPP_DEFINED
#include <string>
#include <vector>
#include <memory>
#include <random>
#include "warped.hpp"
WARPED_DEF... | 29.15534 | 109 | 0.65035 | pvelesko |
f1948cca4ae05db3a8bf02134b0b496c67afc191 | 1,185 | cpp | C++ | Sources/x10/xla_tensor/ops/uniform.cpp | vguerra/swift-apis | 215c1380874c55d2f12ae81ce78968f9e25ed723 | [
"Apache-2.0"
] | null | null | null | Sources/x10/xla_tensor/ops/uniform.cpp | vguerra/swift-apis | 215c1380874c55d2f12ae81ce78968f9e25ed723 | [
"Apache-2.0"
] | null | null | null | Sources/x10/xla_tensor/ops/uniform.cpp | vguerra/swift-apis | 215c1380874c55d2f12ae81ce78968f9e25ed723 | [
"Apache-2.0"
] | 1 | 2020-06-04T23:23:46.000Z | 2020-06-04T23:23:46.000Z | #include "tensorflow/compiler/tf2xla/xla_tensor/ops/uniform.h"
#include "tensorflow/compiler/xla/xla_client/util.h"
#include "tensorflow/compiler/xla/xla_client/xla_util.h"
#include "tensorflow/compiler/tf2xla/xla_tensor/helpers.h"
#include "tensorflow/compiler/tf2xla/xla_tensor/lowering_context.h"
#include "tensorflo... | 35.909091 | 74 | 0.708017 | vguerra |
f194daba35894d73f4897ae3448b3c664e4cfd38 | 1,034 | cpp | C++ | engine/strings/source/unit_tests/StringTable_test.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/strings/source/unit_tests/StringTable_test.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/strings/source/unit_tests/StringTable_test.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "gtest/gtest.h"
class SW_Engine_Strings_StringTable : public ::testing::Test
{
public:
bool is_external_file(const string& str);
string parse_file_name(const string& str);
protected:
void SetUp();
};
bool SW_Engine_Strings_StringTable::is_external_file(const string& value)
{
return StringT... | 22 | 74 | 0.760155 | sidav |
f1968e55e86fa11fcf8410d5cfadff8c08a135a8 | 5,122 | cpp | C++ | unittests/DebugInfo/PDB/HashTableTest.cpp | vangthao95/llvm | 7161a90f679d8d52ab57a3166361a7ebd1ba5459 | [
"Apache-2.0"
] | 115 | 2018-02-01T18:56:44.000Z | 2022-03-21T13:23:00.000Z | FRProtector/unittests/DebugInfo/PDB/HashTableTest.cpp | whucs303/randomizationlib | 07a1f495e1cf878ad9dd4c79b7ff1c6b48cff876 | [
"MIT"
] | 27 | 2018-09-17T17:49:49.000Z | 2021-11-03T04:31:51.000Z | FRProtector/unittests/DebugInfo/PDB/HashTableTest.cpp | whucs303/randomizationlib | 07a1f495e1cf878ad9dd4c79b7ff1c6b48cff876 | [
"MIT"
] | 55 | 2018-02-01T07:11:49.000Z | 2022-03-04T01:20:23.000Z | //===- llvm/unittest/DebugInfo/PDB/HashTableTest.cpp ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 30.307692 | 80 | 0.675517 | vangthao95 |
1af210bd39f6df8b47a3576318910ea3ccd209d9 | 271 | cpp | C++ | listaEjerciciosU1/Ejercicio3-Variables/Variables.cpp | jivoliva1/cpp | 2b865e5429b62b7d98a5c4402c35c63e38be211b | [
"MIT"
] | null | null | null | listaEjerciciosU1/Ejercicio3-Variables/Variables.cpp | jivoliva1/cpp | 2b865e5429b62b7d98a5c4402c35c63e38be211b | [
"MIT"
] | null | null | null | listaEjerciciosU1/Ejercicio3-Variables/Variables.cpp | jivoliva1/cpp | 2b865e5429b62b7d98a5c4402c35c63e38be211b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int variable = 0;
cout << " Enteros: " << endl;
variable = 10;
cout << " Valor: " << variable << endl;
variable = 15;
cout << " segundo valor: " << variable << endl;
return 0;
}
| 13.55 | 47 | 0.597786 | jivoliva1 |
1af8148d701a088e718215047b857f90d014a4c0 | 328 | cpp | C++ | src/opendnp3/terminal/TerminalInterfaces.cpp | meaw/dnp3 | 662db361a96ef39c2b8e43da69f6f7994eb6446e | [
"ECL-2.0",
"Apache-2.0"
] | 51 | 2015-03-14T20:53:49.000Z | 2022-01-03T17:00:46.000Z | src/opendnp3/terminal/TerminalInterfaces.cpp | meaw/dnp3 | 662db361a96ef39c2b8e43da69f6f7994eb6446e | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-04-15T06:32:48.000Z | 2019-04-15T06:52:33.000Z | src/opendnp3/terminal/TerminalInterfaces.cpp | meaw/dnp3 | 662db361a96ef39c2b8e43da69f6f7994eb6446e | [
"ECL-2.0",
"Apache-2.0"
] | 33 | 2015-06-16T14:16:19.000Z | 2022-03-19T23:41:41.000Z |
#include "TerminalInterfaces.h"
#include <sstream>
namespace apl
{
const char ITerminal::CLEAR_SRC[2] = "\f";
const char ITerminal::EOL[3] = "\r\n";
std::string CommandNode::ToString() const
{
std::ostringstream oss;
oss << "Command: " << mName << "\r\n";
oss << mDesc << "\r\nUsage: " << mUsage;
return oss.str(... | 16.4 | 42 | 0.631098 | meaw |
1afa9c85116a4ab289b10af5fda92d14944daff8 | 761 | hpp | C++ | src/enemy.hpp | CaseyChesshir/Mallard-Kombat | ff855dbd4fdeea3acf3c827cda1055e765575ca6 | [
"MIT"
] | null | null | null | src/enemy.hpp | CaseyChesshir/Mallard-Kombat | ff855dbd4fdeea3acf3c827cda1055e765575ca6 | [
"MIT"
] | null | null | null | src/enemy.hpp | CaseyChesshir/Mallard-Kombat | ff855dbd4fdeea3acf3c827cda1055e765575ca6 | [
"MIT"
] | null | null | null | //
// enemy.hpp
// pure virtual class that defines all shared attributes by the enemies in the game
//
// Created by Casey Chesshir on 3/8/15.
//
//
#ifndef ENEMY_HPP
#define ENEMY_HPP
#include <SDL2/SDL.h> // SDL library
#include <SDL2/SDL_ttf.h> // SDL font library
#includ... | 21.742857 | 84 | 0.646518 | CaseyChesshir |
1afd813c3e6d5d46b01afe7e4773263227facbca | 860 | cpp | C++ | Engine/Core/source/Math/Vector3.cpp | Pursche/PurEngine | 9bc82309ee2773241e07ef1ec3335bbe449a791c | [
"MIT"
] | null | null | null | Engine/Core/source/Math/Vector3.cpp | Pursche/PurEngine | 9bc82309ee2773241e07ef1ec3335bbe449a791c | [
"MIT"
] | null | null | null | Engine/Core/source/Math/Vector3.cpp | Pursche/PurEngine | 9bc82309ee2773241e07ef1ec3335bbe449a791c | [
"MIT"
] | null | null | null | #include "Vector3.h"
#include "Vector2.h"
// Right handed coordinate system, positive X points north, positive Y points west and positive Z points up
Vector3 Vector3::One = Vector3(1.0f);
Vector3 Vector3::Zero = Vector3(0.0f);
Vector3 Vector3::Up = Vector3(0.0f, 1.0f, 0.0f);
Vector3 Vector3::Down = Vector3(0.0f, -1.0f... | 30.714286 | 107 | 0.653488 | Pursche |
1afd827d0c5e7ddde15dd9b5fb0cbe9347ab967c | 5,327 | cpp | C++ | NidhoggEngine/SourceCode/ModuleRenderer3D.cpp | Ap011y0n/Nidhogg-Engine | 9cda1807d8ee3f9cc2662723c8f817c0b3539194 | [
"MIT"
] | null | null | null | NidhoggEngine/SourceCode/ModuleRenderer3D.cpp | Ap011y0n/Nidhogg-Engine | 9cda1807d8ee3f9cc2662723c8f817c0b3539194 | [
"MIT"
] | null | null | null | NidhoggEngine/SourceCode/ModuleRenderer3D.cpp | Ap011y0n/Nidhogg-Engine | 9cda1807d8ee3f9cc2662723c8f817c0b3539194 | [
"MIT"
] | null | null | null | #include "Globals.h"
#include "Application.h"
#include "ModuleRenderer3D.h"
#include "ModuleCamera3D.h"
#include "Glew/include/glew.h"
#include "SDL/include/SDL_opengl.h"
#include <gl/GL.h>
#include <gl/GLU.h>
#pragma comment (lib, "glu32.lib") /* link OpenGL Utility lib */
#pragma comment (lib, "opengl32.lib"... | 24.892523 | 125 | 0.722921 | Ap011y0n |
1afe1f4a6f0b4b69f76ae880bfc57c71e7157441 | 12,217 | cpp | C++ | Src/MapEditor/component/racker.cpp | vox-1/MapEditor | f1b8a3df64c91e9c3aef7ee21e997f4f1163fa0e | [
"MIT"
] | 23 | 2018-12-02T01:08:39.000Z | 2022-03-19T02:28:56.000Z | Src/MapEditor/component/racker.cpp | vox-1/MapEditor | f1b8a3df64c91e9c3aef7ee21e997f4f1163fa0e | [
"MIT"
] | null | null | null | Src/MapEditor/component/racker.cpp | vox-1/MapEditor | f1b8a3df64c91e9c3aef7ee21e997f4f1163fa0e | [
"MIT"
] | 15 | 2018-12-07T06:33:55.000Z | 2022-03-26T13:27:25.000Z |
#include "stdafx.h"
#include "palete.h"
#include "rack.h"
#include "racker.h"
using namespace graphic;
cRacker::cRacker()
: cNode(common::GenerateId(), "racker", eNodeType::MODEL)
, m_boxTex(NULL)
, m_isLoad(false)
, m_isShowBoxTexture(false)
, m_isShowText(true)
, m_alpha(1.f)
{
}
cRacker::~cRacker()
{
Cle... | 24.336653 | 110 | 0.675207 | vox-1 |
2101377c09f21c21c1f649aeb334a2efbb26c090 | 1,714 | cpp | C++ | CK2CharacterModdingApplication/provinceSetParser.cpp | aristotle333/CK2CharacterCreator | decc7d0bfa5ae477f0f3a1d1aa860387eda18b47 | [
"MIT"
] | 1 | 2017-08-28T08:17:14.000Z | 2017-08-28T08:17:14.000Z | CK2CharacterModdingApplication/provinceSetParser.cpp | aristotle333/CK2CharacterCreator | decc7d0bfa5ae477f0f3a1d1aa860387eda18b47 | [
"MIT"
] | null | null | null | CK2CharacterModdingApplication/provinceSetParser.cpp | aristotle333/CK2CharacterCreator | decc7d0bfa5ae477f0f3a1d1aa860387eda18b47 | [
"MIT"
] | null | null | null | #include "provinceSetParser.h"
// Reads a specified Directory for province files. Province files names must start with their province id(number)
vector<string> readProvincesDirectory(const string& directory) {
// Singleton Reference
miscellaneousAttributes& miscAttr = miscellaneousAttributes::get_instance();
... | 35.708333 | 113 | 0.589265 | aristotle333 |
2102897c9ca591a4cb129a27b464b9fee8930796 | 1,677 | hpp | C++ | includes/Fox/Common/Version.hpp | Pierre-vh/Fox | ab3d9a5b3c409b5611840c477abef989830ea571 | [
"MIT"
] | 17 | 2019-01-17T22:41:11.000Z | 2020-08-27T03:39:07.000Z | includes/Fox/Common/Version.hpp | Pierre-vh/Moonshot | ab3d9a5b3c409b5611840c477abef989830ea571 | [
"MIT"
] | null | null | null | includes/Fox/Common/Version.hpp | Pierre-vh/Moonshot | ab3d9a5b3c409b5611840c477abef989830ea571 | [
"MIT"
] | 2 | 2019-06-30T19:07:10.000Z | 2019-12-26T17:30:17.000Z | //----------------------------------------------------------------------------//
// Part of the Fox project, licensed under the MIT license.
// See LICENSE.txt in the project root for license information.
// File : Version.hpp
// Author : Pierre van Houtryve
//----------------... | 43 | 80 | 0.61121 | Pierre-vh |
2106708e5f26f3b5b4fdb642a4de0554345ae31a | 2,345 | cpp | C++ | utility.cpp | khemritolya/desktopgalaxy | abe0e7497ed11acac96be06782ef61e34b60b977 | [
"MIT"
] | 3 | 2019-08-09T15:44:21.000Z | 2020-03-02T20:23:52.000Z | utility.cpp | khemritolya/desktopgalaxy | abe0e7497ed11acac96be06782ef61e34b60b977 | [
"MIT"
] | null | null | null | utility.cpp | khemritolya/desktopgalaxy | abe0e7497ed11acac96be06782ef61e34b60b977 | [
"MIT"
] | null | null | null | #include "utility.h"
#include "galaxy.h"
std::string logpath;
// Delete the log file, if there is one
void clear_logs() {
char buf[PATH_MAX];
ssize_t len = readlink("/proc/self/exe", buf, sizeof(buf)-1);
if (len != -1) {
buf[len] = '\0';
logpath = std::string(buf);
logpath = logpa... | 24.946809 | 117 | 0.600853 | khemritolya |
2108a79fc8e95acd2cf89939cd13d52213f2e432 | 1,022 | cpp | C++ | Tree_Data_Structure/zigzag-level-order-traversal-bt.cpp | elinus/InterviewBit | 1a0f74b7770120fd24899ba4f1922d1d177324c6 | [
"MIT"
] | null | null | null | Tree_Data_Structure/zigzag-level-order-traversal-bt.cpp | elinus/InterviewBit | 1a0f74b7770120fd24899ba4f1922d1d177324c6 | [
"MIT"
] | null | null | null | Tree_Data_Structure/zigzag-level-order-traversal-bt.cpp | elinus/InterviewBit | 1a0f74b7770120fd24899ba4f1922d1d177324c6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stack>
#include <vector>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
};
vector<vector<int>> zigzagLevelOrder(TreeNode *A) {
vector<vector<int>> result;
if (!A)
return result;
... | 20.857143 | 60 | 0.560665 | elinus |
21094d7fd51777ae17a489d19721e5751c348e36 | 3,466 | cpp | C++ | source/direct3d11/Texture2D11.cpp | bartwe/slimdx | 3e6cf800de425ac78717453588a9681527caa576 | [
"MIT"
] | null | null | null | source/direct3d11/Texture2D11.cpp | bartwe/slimdx | 3e6cf800de425ac78717453588a9681527caa576 | [
"MIT"
] | null | null | null | source/direct3d11/Texture2D11.cpp | bartwe/slimdx | 3e6cf800de425ac78717453588a9681527caa576 | [
"MIT"
] | null | null | null | #include "stdafx.h"
/*
* Copyright (c) 2007-2014 SlimDX Group
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... | 33.980392 | 137 | 0.721293 | bartwe |
2109785989e3c9ee60c50bd01324836b4c2dea3f | 859 | cpp | C++ | src/module/test/ModuleTest.cpp | sanjaykasturia/wav2letter | 85ca0cee04f2bbe0018630dfdb4daf0d447ebef8 | [
"BSD-3-Clause"
] | null | null | null | src/module/test/ModuleTest.cpp | sanjaykasturia/wav2letter | 85ca0cee04f2bbe0018630dfdb4daf0d447ebef8 | [
"BSD-3-Clause"
] | null | null | null | src/module/test/ModuleTest.cpp | sanjaykasturia/wav2letter | 85ca0cee04f2bbe0018630dfdb4daf0d447ebef8 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <gtest/gtest.h>
#include <arrayfire.h>
#include <flashlight/flashlight.h>
#include "commo... | 20.95122 | 72 | 0.681024 | sanjaykasturia |
210c44bf4d406b71f5dcd0478113ae3bd8ba5bfa | 1,181 | cpp | C++ | sorting/cyclic_sort.cpp | parmeet9891/cpp | 2998a2126186818f7c820d35d3814e57227943b4 | [
"MIT"
] | 468 | 2018-09-19T15:34:22.000Z | 2022-03-31T13:56:42.000Z | sorting/cyclic_sort.cpp | parmeet9891/cpp | 2998a2126186818f7c820d35d3814e57227943b4 | [
"MIT"
] | 97 | 2018-09-20T04:17:11.000Z | 2021-11-03T04:36:03.000Z | sorting/cyclic_sort.cpp | parmeet9891/cpp | 2998a2126186818f7c820d35d3814e57227943b4 | [
"MIT"
] | 353 | 2018-10-02T02:19:34.000Z | 2022-03-17T03:51:12.000Z | #include <time.h>
#include <iostream>
#include <vector>
using namespace std;
class cSort
{
public:
void doIt( vector<unsigned> s )
{
sq = s; display(); c_sort();
cout << "writes: " << wr << endl; display();
}
private:
void display()
{
copy( sq.begin(), sq.end(), ostream_iterator<unsigned>( s... | 17.893939 | 76 | 0.490262 | parmeet9891 |
210e77e532942b9cf72e31393d21f337d6dde472 | 7,657 | hpp | C++ | include/FVM/Equation/Operator.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 12 | 2020-09-07T11:19:10.000Z | 2022-02-17T17:40:19.000Z | include/FVM/Equation/Operator.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 110 | 2020-09-02T15:29:24.000Z | 2022-03-09T09:50:01.000Z | include/FVM/Equation/Operator.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 3 | 2021-05-21T13:24:31.000Z | 2022-02-11T14:43:12.000Z | #ifndef _DREAM_FVM_EQUATION_HPP
#define _DREAM_FVM_EQUATION_HPP
#include <vector>
#include <unordered_map>
#include "FVM/Equation/AdvectionDiffusionTerm.hpp"
#include "FVM/Equation/BoundaryCondition.hpp"
#include "FVM/Equation/EquationTerm.hpp"
#include "FVM/Equation/EvaluableEquationTerm.hpp"
#include "FVM/Equation/P... | 58.007576 | 202 | 0.716077 | chalmersplasmatheory |
21103ae103533bf9b43e1928bf6f819652293444 | 3,742 | cpp | C++ | tests/Playlist/main.cpp | Kristian-Popov/OALWrapper | 668ad1f2ae88241d244a171388e929991a97de30 | [
"Zlib"
] | 99 | 2015-01-15T11:38:01.000Z | 2022-03-25T00:18:25.000Z | tests/Playlist/main.cpp | Kristian-Popov/OALWrapper | 668ad1f2ae88241d244a171388e929991a97de30 | [
"Zlib"
] | 1 | 2021-11-05T16:26:49.000Z | 2021-11-05T17:36:23.000Z | tests/Playlist/main.cpp | Kristian-Popov/OALWrapper | 668ad1f2ae88241d244a171388e929991a97de30 | [
"Zlib"
] | 42 | 2015-02-16T08:19:17.000Z | 2022-01-14T12:40:32.000Z | #include "OALWrapper/OAL_Funcs.h"
#include "OALWrapper/OAL_Stream.h"
#include <SDL/SDL.h>
#include <string>
#include <cstdlib>
#include <list>
#include <signal.h>
using namespace std;
typedef list<string> stringList;
typedef stringList::iterator stringListIt;
class Playlist {
stringList mSongs;
strin... | 23.098765 | 108 | 0.526991 | Kristian-Popov |
21121fb19c7a58614587c4bb8107d6f388d9ff0c | 8,346 | hpp | C++ | library/utility/enum.hpp | SJSURoboticsTeam/urc-control_systems-2020 | 35dff34c1bc0beecc94ad6b8f2d4b551969c6854 | [
"Apache-2.0"
] | 6 | 2020-06-20T23:56:42.000Z | 2021-12-18T08:13:54.000Z | library/utility/enum.hpp | SJSURoboticsTeam/urc-control_systems-2020 | 35dff34c1bc0beecc94ad6b8f2d4b551969c6854 | [
"Apache-2.0"
] | 153 | 2020-06-09T14:49:29.000Z | 2022-01-31T16:39:39.000Z | library/utility/enum.hpp | SJSURoboticsTeam/urc-control_systems-2020 | 35dff34c1bc0beecc94ad6b8f2d4b551969c6854 | [
"Apache-2.0"
] | 10 | 2020-08-02T00:55:38.000Z | 2022-01-24T23:06:51.000Z | // Includes enhancements to the C++ "enum class" types.
#pragma once
#include <type_traits>
namespace sjsu
{
/// Example:
///
/// enum class SomeType : uint32_t { kValue1 = 1, kValue2 = 2 };
/// SomeType some_variable = SomeType::kValue1;
/// uint32_t numeric_variable = util::Value(some_variable);
///
... | 42.8 | 80 | 0.643422 | SJSURoboticsTeam |
21175ef4c8869c65445c4189ab8d7ddcc75b6ccd | 3,966 | cpp | C++ | ASCIILib/StringTokenizer.cpp | Natman64/ASCIILib | 04f661416261467df0d6f816fa31e870c0fcd8a9 | [
"MIT"
] | 1 | 2019-09-27T11:20:10.000Z | 2019-09-27T11:20:10.000Z | ASCIILib/StringTokenizer.cpp | NQNStudios/ASCIILib | 04f661416261467df0d6f816fa31e870c0fcd8a9 | [
"MIT"
] | 13 | 2015-09-27T23:58:19.000Z | 2015-09-28T16:24:11.000Z | ASCIILib/StringTokenizer.cpp | Natman64/ASCIILib | 04f661416261467df0d6f816fa31e870c0fcd8a9 | [
"MIT"
] | null | null | null | #include "StringTokenizer.h"
#include "unicode/locid.h"
#include "Log.h"
using namespace ascii;
ascii::StringTokenizer::StringTokenizer(UnicodeString buffer)
: mBuffer(buffer), mBufferPosition(0)
{
mDelimeters = UnicodeString(" ");
}
ascii::StringTokenizer::StringTokenizer(UnicodeString buffer,
... | 27.541667 | 121 | 0.645739 | Natman64 |
2118fa9ae62047c6602868c903843c9093551dd6 | 427 | cpp | C++ | src/Gomoku/win1_show.cpp | HahnXia/GOMOKU | 52086bbb1fa2d6c59c5b05168c26c2fa6f155f70 | [
"MIT"
] | 1 | 2018-09-07T16:59:38.000Z | 2018-09-07T16:59:38.000Z | src/Gomoku/win1_show.cpp | HahnXia/GOMOKU | 52086bbb1fa2d6c59c5b05168c26c2fa6f155f70 | [
"MIT"
] | null | null | null | src/Gomoku/win1_show.cpp | HahnXia/GOMOKU | 52086bbb1fa2d6c59c5b05168c26c2fa6f155f70 | [
"MIT"
] | null | null | null | #include "win1_show.h"
#include "ui_win1_show.h"
//胜利窗口1
win1_show::win1_show(QWidget *parent) :
QDialog(parent),
ui(new Ui::win1_show)
{
ui->setupUi(this);
}
win1_show::~win1_show()
{
delete ui;
}
void win1_show::on_Quitgame_clicked()//退出游戏
{
this->close();
emit quit_Signal(... | 15.814815 | 44 | 0.615925 | HahnXia |
211cfea9b9aa5e4eec91d12fd9cc3f236a4a597a | 1,275 | cpp | C++ | Snipets/01_Decisiones/StudentResults.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | Snipets/01_Decisiones/StudentResults.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | Snipets/01_Decisiones/StudentResults.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | // StudentResults.cpp
// Programa para calcular el resultado de las notas de los estudiantes dada por el estudiante
//Para ello se utiliza un if con una doble condicion en su interior mediante un operador booleano
#include <iostream>
#include <stdlib.h>
int main()
{
int info, fisica, mates, ing, esta, total;
float ... | 24.519231 | 97 | 0.6 | Gabroide |
211fa42bad7a2d7bf9b9bb91dbc738d72b521546 | 134,259 | cpp | C++ | src/SFmpqapi/SFmpqapi.cpp | actboy168/wc3mapmax | 46eebca381ca1816d8edb02332f19eb6c7f98f60 | [
"MIT"
] | 5 | 2015-11-01T20:56:33.000Z | 2021-12-14T16:33:22.000Z | src/SFmpqapi/SFmpqapi.cpp | actboy168/wc3mapmax | 46eebca381ca1816d8edb02332f19eb6c7f98f60 | [
"MIT"
] | null | null | null | src/SFmpqapi/SFmpqapi.cpp | actboy168/wc3mapmax | 46eebca381ca1816d8edb02332f19eb6c7f98f60 | [
"MIT"
] | 2 | 2016-04-13T12:31:05.000Z | 2019-10-11T10:41:35.000Z | /* License information for this code is in license.txt */
#define WIN32_LEAN_AND_MEAN
// Includes
#include <windows.h>
#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#ifdef _USRDLL
#include <shellapi.h>
#endif
#include "SComp.h"
#include "SFmpqapi.h"
struct SFMPQAPIMODULE {
SFMPQAPI... | 34.836274 | 229 | 0.725106 | actboy168 |
21211233155c57cf040b74121086c1f8ef47fdf7 | 902 | cpp | C++ | Vendor/OpenFramework/libs/openFrameworks/graphics/ofGraphicsBaseTypes.cpp | TygoB-B5/OSCSpaceShooter | 9a94fbbe4392c9283e47696d06a2866a7a8f1213 | [
"Apache-2.0"
] | 6,436 | 2015-01-01T19:51:56.000Z | 2022-03-31T05:45:34.000Z | libs/openFrameworks/graphics/ofGraphicsBaseTypes.cpp | Pandinosaurus/openFrameworks | 38c8715c022c6b34c9ce9c379aeb55315aa0f2a0 | [
"MIT"
] | 3,195 | 2015-01-01T00:18:46.000Z | 2022-03-31T04:41:47.000Z | libs/openFrameworks/graphics/ofGraphicsBaseTypes.cpp | Pandinosaurus/openFrameworks | 38c8715c022c6b34c9ce9c379aeb55315aa0f2a0 | [
"MIT"
] | 2,180 | 2015-01-01T02:42:29.000Z | 2022-03-30T06:36:48.000Z | #include "ofGraphicsBaseTypes.h"
#include "glm/vec2.hpp"
#include "glm/trigonometric.hpp"
#include "ofRectangle.h"
void ofBaseDraws::draw(const glm::vec2 & point) const {
draw(point.x, point.y);
}
void ofBaseDraws::draw(const ofRectangle & rect) const {
draw(rect.x, rect.y, rect.width, rect.height);
}
void ofBas... | 23.128205 | 82 | 0.736142 | TygoB-B5 |
21227c09bc112bb0666b143c42b06bebf2f7b061 | 2,266 | cc | C++ | src/lcs/t.cc | thinkoid/hacks | 7c5887860bf9177e487e2f2f041629ddbd3c38fb | [
"MIT"
] | null | null | null | src/lcs/t.cc | thinkoid/hacks | 7c5887860bf9177e487e2f2f041629ddbd3c38fb | [
"MIT"
] | null | null | null | src/lcs/t.cc | thinkoid/hacks | 7c5887860bf9177e487e2f2f041629ddbd3c38fb | [
"MIT"
] | null | null | null | #include <cassert>
#include <cstring>
#include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
//
// Note(!):
// This code is a C++-fication of the original cast iron C code found at:
// http://bix.ucsd.edu/bioalgorithms/downloads/code/LCS.c
//
... | 21.377358 | 73 | 0.388791 | thinkoid |
21282ddded350506c2e339cfb4d13feee621d605 | 192 | hpp | C++ | taskflow/cuda/cublas.hpp | larkwiot/parallel | 2666418e43728358d18fd6b20fa4cc90514937f9 | [
"MIT"
] | null | null | null | taskflow/cuda/cublas.hpp | larkwiot/parallel | 2666418e43728358d18fd6b20fa4cc90514937f9 | [
"MIT"
] | null | null | null | taskflow/cuda/cublas.hpp | larkwiot/parallel | 2666418e43728358d18fd6b20fa4cc90514937f9 | [
"MIT"
] | null | null | null | #pragma once
#include "cublas/cublas_flow.hpp"
#include "cublas/cublas_helper.hpp"
#include "cublas/cublas_level1.hpp"
#include "cublas/cublas_level2.hpp"
#include "cublas/cublas_level3.hpp"
| 24 | 35 | 0.796875 | larkwiot |
212a4f3966002bdefa70a1a546dfd30436e8037d | 130 | cc | C++ | Index/Include/Include_Index/index_impl/macros/index_macros_end.cc | ChronesDev/Index2 | 3910cea02928e0faaa92e2cc4ae76bcdf3939a14 | [
"MIT"
] | 103 | 2021-07-22T21:04:19.000Z | 2021-12-29T20:37:04.000Z | Index/Include/Include_Index/index_impl/macros/index_macros_end.cc | ChronesDev/Index2 | 3910cea02928e0faaa92e2cc4ae76bcdf3939a14 | [
"MIT"
] | 3 | 2021-07-22T13:47:33.000Z | 2022-03-09T19:41:11.000Z | Index/Include/Include_Index/index_impl/macros/index_macros_end.cc | ChronesDev/Index2 | 3910cea02928e0faaa92e2cc4ae76bcdf3939a14 | [
"MIT"
] | null | null | null | #undef var // auto
#undef global // inline
#undef stackalloc
#undef cat // inline struct
#undef elif // else if
#undef fun // auto | 21.666667 | 27 | 0.7 | ChronesDev |
21355062bfcfd162611cdb6fb31bce43945368a1 | 243 | cpp | C++ | src/ISpan.cpp | magickreeator/jaeger-client | 0b7cafeac794fc4759424c0c0a1364f0324507e9 | [
"Apache-2.0"
] | 17 | 2018-05-04T10:47:04.000Z | 2021-09-09T08:27:49.000Z | src/ISpan.cpp | sgnrslv/jaeger-client-php-ext | 7bd68b9aad5e3476bd60cb5d1991e8383b980541 | [
"Apache-2.0"
] | 1 | 2020-06-16T14:14:59.000Z | 2020-06-16T14:14:59.000Z | src/ISpan.cpp | sgnrslv/jaeger-client-php-ext | 7bd68b9aad5e3476bd60cb5d1991e8383b980541 | [
"Apache-2.0"
] | 4 | 2018-05-20T11:00:10.000Z | 2021-04-01T21:00:27.000Z | #include <iostream>
#include "ISpan.h"
#include "Tracer.h"
using namespace OpenTracing;
ISpan::~ISpan()
{
{
std::ostringstream ss;
ss << this;
Tracer::file_logger.PrintLine(" ~ISpan addr: " + ss.str());
}
}
| 17.357143 | 70 | 0.580247 | magickreeator |
2139b36eafee3b04c1ddd6c05db22fad476d34d4 | 3,617 | cpp | C++ | src/layout/GridLayout.cpp | guoyunhe/Play--Framework | 89d305d797b931b20e97ed124b33654b3874b20e | [
"BSD-2-Clause"
] | null | null | null | src/layout/GridLayout.cpp | guoyunhe/Play--Framework | 89d305d797b931b20e97ed124b33654b3874b20e | [
"BSD-2-Clause"
] | 1 | 2017-02-22T19:43:33.000Z | 2017-02-22T19:43:33.000Z | src/layout/GridLayout.cpp | Thunder07/Play--Framework | b0c8487656492f237f6613fccadbb8011b61bd4d | [
"BSD-2-Clause"
] | 1 | 2020-06-09T15:22:16.000Z | 2020-06-09T15:22:16.000Z | #include <assert.h>
#include "layout/GridLayout.h"
#include "PtrMacro.h"
using namespace Framework;
CGridLayout::CGridLayout(unsigned int cols, unsigned int rows, unsigned int spacing)
: CLayoutObject(1, 1)
, m_objects(boost::extents[cols][rows])
{
m_cols = cols;
m_rows = rows;
m_spacing = spacing;
}... | 23.640523 | 95 | 0.659663 | guoyunhe |
213a5ad1173131d7008cfda1a6de2cff7c4c32e2 | 456 | hpp | C++ | include/common/i_window.hpp | Basez/Agnostik-Engine | 10171bbeb73c590e75e9db5adf0135e0235f2884 | [
"MIT"
] | 7 | 2015-06-29T09:45:09.000Z | 2017-06-06T08:14:09.000Z | include/common/i_window.hpp | Basez/Agnostik-Engine | 10171bbeb73c590e75e9db5adf0135e0235f2884 | [
"MIT"
] | null | null | null | include/common/i_window.hpp | Basez/Agnostik-Engine | 10171bbeb73c590e75e9db5adf0135e0235f2884 | [
"MIT"
] | null | null | null | #pragma once
#include <glm/glm.hpp>
namespace AGN
{
class IWindow
{
public:
virtual ~IWindow() {}
virtual void setTitle(const char* a_title) = 0;
virtual void showMessageBox(const char* a_title, const char* a_message) = 0;
virtual void warpCursor(glm::ivec2 a_screenPosition) = 0;
virtual void showCursor(... | 24 | 78 | 0.70614 | Basez |
213b3c9f30560de852b589c1997bb002c20bf0e5 | 815 | cpp | C++ | src/cpp_learning/vitual_fun.cpp | genkimaru/DSandAlgorithm | 1863c4d3cfdcf5a6bfac879e31ed02ce55640dd6 | [
"MIT"
] | null | null | null | src/cpp_learning/vitual_fun.cpp | genkimaru/DSandAlgorithm | 1863c4d3cfdcf5a6bfac879e31ed02ce55640dd6 | [
"MIT"
] | null | null | null | src/cpp_learning/vitual_fun.cpp | genkimaru/DSandAlgorithm | 1863c4d3cfdcf5a6bfac879e31ed02ce55640dd6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
class Shape
{
public:
Shape(int width, int length)
{
cout << "shape constructor run " << endl;
}
virtual int area()
{
cout << "area is : " << endl;
return 0;
}
private:
int width;
int length;
};
class... | 14.818182 | 64 | 0.511656 | genkimaru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.