hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7792a1082bf8019894311fd989b4766c94970307 | 1,963 | cpp | C++ | src/Platform.Cocoa/MouseCocoa.cpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | src/Platform.Cocoa/MouseCocoa.cpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | src/Platform.Cocoa/MouseCocoa.cpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#include "MouseCocoa.hpp"
#include <type_traits>
namespace Pomdog {
namespace Detail {
namespace Cocoa {
//-----------------------------------------------------------------------
MouseCocoa::MouseCocoa()
: scro... | 32.180328 | 86 | 0.464086 | bis83 |
77953649de1f1064d89f8c61642717fe310407f2 | 11,224 | cpp | C++ | engine/cl_splitscreen.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | cstrike15_src/engine/cl_splitscreen.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | cstrike15_src/engine/cl_splitscreen.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | #include "client_pch.h"
#include "cl_splitscreen.h"
#if defined( _PS3 )
#include "tls_ps3.h"
#define m_SplitSlot reinterpret_cast< SplitSlot_t *& >(GetTLSGlobals()->pEngineSplitSlot)
#endif // _PS3
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
class CSplitScreen : public ISp... | 26.787589 | 164 | 0.733428 | DannyParker0001 |
7797a2841cc2e2f774a2a6567c322c089c125f9e | 937 | cpp | C++ | basic/math/find_missing_numbers.cpp | sanjosh/smallprogs | 8acf7a357080b9154b55565be7c7667db0d4049b | [
"Apache-2.0"
] | 7 | 2017-02-28T06:33:43.000Z | 2021-12-17T04:58:19.000Z | basic/math/find_missing_numbers.cpp | sanjosh/smallprogs | 8acf7a357080b9154b55565be7c7667db0d4049b | [
"Apache-2.0"
] | null | null | null | basic/math/find_missing_numbers.cpp | sanjosh/smallprogs | 8acf7a357080b9154b55565be7c7667db0d4049b | [
"Apache-2.0"
] | 3 | 2017-02-28T06:33:30.000Z | 2021-02-25T09:42:31.000Z |
/*
Missing numbers
------------------
# One missing
Approach 1 : sum
approach 2 : XOR
Assume a1 ^ a2 ^ a3 ^ …^ an = A and a1 ^ a2 ^ a3 ^ …^ an-1 = B
Then A ^ B = an
Approach 3 : a[a[i]] = 1
------------------
# Two missing
Approach 1 sum and avg (statistical)
sum of array, avg of array - compare with sum a... | 18.74 | 97 | 0.67556 | sanjosh |
7798421161971d4c29008ced6e9b718cfc0ff5ca | 679 | cpp | C++ | day06/part2.cpp | Moremar/advent_of_code_2016 | dea264671fc2c31baa42b1282751dfd1ae071a7d | [
"Apache-2.0"
] | null | null | null | day06/part2.cpp | Moremar/advent_of_code_2016 | dea264671fc2c31baa42b1282751dfd1ae071a7d | [
"Apache-2.0"
] | null | null | null | day06/part2.cpp | Moremar/advent_of_code_2016 | dea264671fc2c31baa42b1282751dfd1ae071a7d | [
"Apache-2.0"
] | null | null | null | #include "part1.hpp"
#include "part2.hpp"
using namespace std;
string Part2::solve(const vector<string> &signals) {
vector<map<char, int>> freqs = Part1::getFreqs(signals);
// pick the least popular letter for each position
string corrected = "";
for (const auto freq : freqs) {
vector<pair<ch... | 32.333333 | 94 | 0.60972 | Moremar |
7799a55d53c8ef71110728812322ddeb84cd0ec8 | 1,910 | hpp | C++ | SpaceWars2/skills/Laser.hpp | su8ru/SpaceWars2 | 1aa9ecd7ab8217ae5df8c6499597c8cbc7ab9f40 | [
"Apache-2.0"
] | 2 | 2020-02-01T08:47:10.000Z | 2020-02-01T08:51:05.000Z | SpaceWars2/skills/Laser.hpp | subaru2003/SpaceWars2 | 1aa9ecd7ab8217ae5df8c6499597c8cbc7ab9f40 | [
"Apache-2.0"
] | 44 | 2019-06-03T11:46:56.000Z | 2019-08-06T16:20:15.000Z | SpaceWars2/skills/Laser.hpp | su8ru/SpaceWars2 | 1aa9ecd7ab8217ae5df8c6499597c8cbc7ab9f40 | [
"Apache-2.0"
] | 3 | 2019-06-13T17:42:12.000Z | 2019-06-14T23:36:45.000Z | #pragma once
#include <Siv3D.hpp>
#include "Bullet.hpp"
#include "../Scenes/Game.hpp"
class Laser final : public Bullet {
private:
bool isCharging = true;
int energy = 1;
Vec2 myPos;
bool isLeft;
bool isLInvalid = false;
bool isRInvalid = false;
static bool isLShooting;
static bool isRShooting;
static Option... | 28.507463 | 104 | 0.68534 | su8ru |
779a7d4470804b9abcde7bb29dd24179ad47b79d | 1,112 | hpp | C++ | contrib/autoboost/autoboost/context/fcontext.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/context/fcontext.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/context/fcontext.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z |
// Copyright Oliver Kowalke 2009.
// 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 AUTOBOOST_CONTEXT_FCONTEXT_H
#define AUTOBOOST_CONTEXT_FCONTEXT_H
#if defined(__PGI)
#include <std... | 24.173913 | 107 | 0.747302 | CaseyCarter |
779affb1bcfd059a3db12a0761b89a2d0e0b41e6 | 298 | cpp | C++ | src/swimport/tests/49_arrays/src.cpp | talos-gis/swimport | e8f0fcf02b0c9751b199f750f1f8bc57c8ff54b3 | [
"MIT"
] | 1 | 2019-03-07T20:43:42.000Z | 2019-03-07T20:43:42.000Z | src/swimport/tests/49_arrays/src.cpp | talos-gis/swimport | e8f0fcf02b0c9751b199f750f1f8bc57c8ff54b3 | [
"MIT"
] | null | null | null | src/swimport/tests/49_arrays/src.cpp | talos-gis/swimport | e8f0fcf02b0c9751b199f750f1f8bc57c8ff54b3 | [
"MIT"
] | null | null | null | #include "src.h"
std::array<int,10> primes(){
return {2,3,5,7,11,13,17,19,23,29};
}
std::array<std::pair<int,int>, 3> zip(std::array<int,3> a, std::array<int,3> b){
return {
std::make_pair(a[0], b[0]),
std::make_pair(a[1], b[1]),
std::make_pair(a[2], b[2])
};
} | 24.833333 | 80 | 0.526846 | talos-gis |
77a0048f0fe674428e66ebd07ce03d67b0051e93 | 970 | hpp | C++ | src/afk/renderer/Model.hpp | christocs/ModelAnimation | d32941dec8f2ef54e96086319a00ca5cf783e2fa | [
"0BSD"
] | null | null | null | src/afk/renderer/Model.hpp | christocs/ModelAnimation | d32941dec8f2ef54e96086319a00ca5cf783e2fa | [
"0BSD"
] | null | null | null | src/afk/renderer/Model.hpp | christocs/ModelAnimation | d32941dec8f2ef54e96086319a00ca5cf783e2fa | [
"0BSD"
] | null | null | null | #pragma once
#include <filesystem>
#include <glob.h>
#include <vector>
#include <assimp/scene.h>
#include "afk/renderer/Animation.hpp"
#include "afk/renderer/Bone.hpp"
#include "afk/renderer/Mesh.hpp"
#include "afk/renderer/ModelNode.hpp"
#include "afk/renderer/Texture.hpp"
namespace Afk {
struct Model {
usi... | 23.658537 | 69 | 0.630928 | christocs |
77a095bceba23eb22b7c337086cacc6130a19a8d | 2,177 | cc | C++ | history_gtest.cc | doj/few | cdaa53b08f73a901cd07022b92e20f02e9b7b91b | [
"MIT"
] | 2 | 2015-04-05T20:15:31.000Z | 2021-07-14T19:36:03.000Z | history_gtest.cc | doj/few | cdaa53b08f73a901cd07022b92e20f02e9b7b91b | [
"MIT"
] | null | null | null | history_gtest.cc | doj/few | cdaa53b08f73a901cd07022b92e20f02e9b7b91b | [
"MIT"
] | null | null | null | /* -*- mode: C++; c-basic-offset: 4; tab-width: 8; -*-
* vi: set shiftwidth=4 tabstop=8:
* :indentSize=4:tabSize=8:
*/
#include "gtest/gtest.h"
#include "history.h"
#if defined(_WIN32)
#include <io.h>
#include <stdio.h>
namespace {
int unlink(const std::string& fn)
{
return _unlink(fn.c_str());
}
i... | 22.915789 | 64 | 0.582912 | doj |
77a2348dafc26ce71fc4ba976e5697322317c65e | 2,067 | cpp | C++ | src/draw/ArcProgress.cpp | charanyaarvind/StratifyAPI | adfd1bc8354489378d53c6acd77ebedad5790b4f | [
"BSD-3-Clause"
] | null | null | null | src/draw/ArcProgress.cpp | charanyaarvind/StratifyAPI | adfd1bc8354489378d53c6acd77ebedad5790b4f | [
"BSD-3-Clause"
] | null | null | null | src/draw/ArcProgress.cpp | charanyaarvind/StratifyAPI | adfd1bc8354489378d53c6acd77ebedad5790b4f | [
"BSD-3-Clause"
] | null | null | null | /*! \file */ //Copyright 2011-2018 Tyler Gilbert; All Rights Reserved
#include <cmath>
#include "sgfx.hpp"
#include "draw/ArcProgress.hpp"
using namespace draw;
ArcProgress::ArcProgress() {
m_offset = 0;
m_direction = 1;
}
void ArcProgress::draw_to_scale(const DrawingScaledAttr & attr){
//draw the progress bar on... | 19.5 | 71 | 0.62119 | charanyaarvind |
77aa54d0679caf80d7343fbd65cd3b94af1a8b13 | 3,063 | cpp | C++ | src/oems/oems_sorter.cpp | ref2401/oems | 00a295d01280211c3298ddacda0e0937471917ab | [
"MIT"
] | 3 | 2019-12-10T05:53:40.000Z | 2021-09-13T17:54:30.000Z | src/oems/oems_sorter.cpp | ref2401/oems | 00a295d01280211c3298ddacda0e0937471917ab | [
"MIT"
] | 1 | 2017-10-23T12:12:22.000Z | 2017-10-23T12:12:22.000Z | src/oems/oems_sorter.cpp | ref2401/oems | 00a295d01280211c3298ddacda0e0937471917ab | [
"MIT"
] | null | null | null | #include "oems/oems_sorter.h"
#include <cassert>
namespace {
using namespace oems;
void copy_data_from_gpu(ID3D11Device* p_device, ID3D11DeviceContext* p_ctx,
ID3D11Buffer* p_buffer_src, float* p_dest, size_t byte_count)
{
assert(p_device);
assert(p_ctx);
assert(p_buffer_src);
assert(p_dest);
... | 29.737864 | 103 | 0.726086 | ref2401 |
77aab3eb1a087416cb39ea09c17f09dddb587c5e | 993 | cpp | C++ | CCO/CCO_96_P5_All_Roads_Lead_Where.cpp | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | null | null | null | CCO/CCO_96_P5_All_Roads_Lead_Where.cpp | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | 1 | 2021-10-14T18:26:56.000Z | 2021-10-14T18:26:56.000Z | CCO/CCO_96_P5_All_Roads_Lead_Where.cpp | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | 1 | 2021-08-06T03:39:55.000Z | 2021-08-06T03:39:55.000Z | #include <bits/stdc++.h>
using namespace std;
const int M = 1002;
int n, m, a, b, vis[M], pre[M];
string A, B;
vector<int> adj[M];
void dfs(int st) {
vis[st] = true;
for (int i : adj[st]) {
if (!vis[i]) {
pre[i] = st;
dfs(i);
}
}
}
string find(int st, int ed) {
... | 15.515625 | 36 | 0.414904 | Togohogo1 |
77acf87696718a89aa33813c79f6336f94a157d4 | 508 | hpp | C++ | src/ir/nodes.hpp | traplol/malang | 3c02f4f483b7580a557841c31a65bf190fd1228f | [
"MIT"
] | 4 | 2017-10-31T14:01:58.000Z | 2019-07-16T04:53:32.000Z | src/ir/nodes.hpp | traplol/malang | 3c02f4f483b7580a557841c31a65bf190fd1228f | [
"MIT"
] | null | null | null | src/ir/nodes.hpp | traplol/malang | 3c02f4f483b7580a557841c31a65bf190fd1228f | [
"MIT"
] | 2 | 2018-01-23T12:59:07.000Z | 2019-07-16T04:53:39.000Z | #ifndef MALANG_IR_NODES_HPP
#define MALANG_IR_NODES_HPP
#include "ir.hpp"
#include "ir_noop.hpp"
#include "ir_block.hpp"
#include "ir_assignment.hpp"
#include "ir_binary_ops.hpp"
#include "ir_branch.hpp"
#include "ir_call.hpp"
#include "ir_label.hpp"
#include "ir_memory.hpp"
#include "ir_primitives.hpp"
#include "ir_r... | 23.090909 | 32 | 0.777559 | traplol |
77bee52477c3f9529bafa7fafcfe5311d8d08699 | 5,391 | cpp | C++ | tests/unit/offload/OffloadFreeListTest.cpp | gjerecze/daqdb | ebab10f3ef2a64d541043b7378a951af294d44cb | [
"Apache-2.0"
] | 22 | 2019-02-08T17:23:12.000Z | 2021-10-12T06:35:37.000Z | tests/unit/offload/OffloadFreeListTest.cpp | gjerecze/daqdb | ebab10f3ef2a64d541043b7378a951af294d44cb | [
"Apache-2.0"
] | 8 | 2019-02-11T06:30:47.000Z | 2020-04-22T09:49:44.000Z | tests/unit/offload/OffloadFreeListTest.cpp | gjerecze/daqdb | ebab10f3ef2a64d541043b7378a951af294d44cb | [
"Apache-2.0"
] | 10 | 2019-02-11T10:26:52.000Z | 2019-09-16T20:49:25.000Z | /**
* Copyright (c) 2019 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 32.089286 | 79 | 0.717863 | gjerecze |
77c45786ebad0c4226a9b75c4b4b03d15bb5af98 | 8,572 | cpp | C++ | TerrainEffects/RoadEffect.cpp | GuMiner/agow | b8665d5879f43a6bcb6e878827b3b25af9cc1b1d | [
"MIT"
] | null | null | null | TerrainEffects/RoadEffect.cpp | GuMiner/agow | b8665d5879f43a6bcb6e878827b3b25af9cc1b1d | [
"MIT"
] | null | null | null | TerrainEffects/RoadEffect.cpp | GuMiner/agow | b8665d5879f43a6bcb6e878827b3b25af9cc1b1d | [
"MIT"
] | null | null | null | #include <glm\mat4x4.hpp>
#include <glm\gtc\random.hpp>
#include <SFML\System.hpp>
#include <algorithm>
#include "Generators\ColorGenerator.h"
#include "logging\Logger.h"
#include "RoadEffect.h"
RoadStats RoadEffect::stats = RoadStats();
RoadEffect::RoadEffect()
{
}
bool RoadEffect::LoadBasics(ShaderFactory* shaderM... | 38.78733 | 165 | 0.623425 | GuMiner |
77cbbdd518320c2ccef95b126826213b3f82d59e | 14,526 | cpp | C++ | src/terrain/sources/proland/dem/ResidualProducer.cpp | stormbirds/Proland-4.0 | fdff3642e36c56af8ec5f9299166a3d4bf36d33a | [
"Unlicense"
] | 99 | 2015-01-14T21:18:20.000Z | 2021-12-01T09:42:15.000Z | src/terrain/sources/proland/dem/ResidualProducer.cpp | stormbirds/Proland-4.0 | fdff3642e36c56af8ec5f9299166a3d4bf36d33a | [
"Unlicense"
] | null | null | null | src/terrain/sources/proland/dem/ResidualProducer.cpp | stormbirds/Proland-4.0 | fdff3642e36c56af8ec5f9299166a3d4bf36d33a | [
"Unlicense"
] | 46 | 2015-04-03T12:38:31.000Z | 2021-09-26T02:38:56.000Z | /*
* Proland: a procedural landscape rendering library.
* Copyright (c) 2008-2011 INRIA
*
* 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 3 of the License, or
* (at your op... | 33.088838 | 143 | 0.547226 | stormbirds |
77ce9a852fad73496c9f54211e14f188a0d6d031 | 702 | cpp | C++ | chingjun/39-recover-rotated-sorted-array.cpp | joshua-jin/algorithm-campus | 8f60cd63542f4f5778a992179c3e767fbc023338 | [
"MIT"
] | 8 | 2016-05-10T12:59:36.000Z | 2020-09-16T19:47:44.000Z | chingjun/39-recover-rotated-sorted-array.cpp | joshua-jin/algorithm-campus | 8f60cd63542f4f5778a992179c3e767fbc023338 | [
"MIT"
] | null | null | null | chingjun/39-recover-rotated-sorted-array.cpp | joshua-jin/algorithm-campus | 8f60cd63542f4f5778a992179c3e767fbc023338 | [
"MIT"
] | 2 | 2016-12-22T09:28:54.000Z | 2020-01-22T17:56:02.000Z | class Solution {
public:
void reverse(vector<int> &nums, int startIndex, int endIndex) {
while (startIndex < endIndex) {
int temp = nums[startIndex];
nums[startIndex] = nums[endIndex];
nums[endIndex] = temp;
startIndex++;
endIndex--;
}
... | 28.08 | 67 | 0.464387 | joshua-jin |
77d413c3e92109973099b4dd060302a7b5cece06 | 1,366 | cpp | C++ | Src/Source/GoToLineWindow.cpp | Sylvain78/BeTeX | 4624602987dd0f2790280c69f380661a03a03180 | [
"MIT"
] | null | null | null | Src/Source/GoToLineWindow.cpp | Sylvain78/BeTeX | 4624602987dd0f2790280c69f380661a03a03180 | [
"MIT"
] | null | null | null | Src/Source/GoToLineWindow.cpp | Sylvain78/BeTeX | 4624602987dd0f2790280c69f380661a03a03180 | [
"MIT"
] | null | null | null | #include "GoToLineWindow.h"
using namespace InterfaceConstants;
GoToLineWindow::GoToLineWindow(BRect r,BMessenger* messenger) : BWindow(r,"Go To Line...",B_FLOATING_WINDOW,B_NOT_ZOOMABLE|B_NOT_RESIZABLE)
{
SetFeel(B_NORMAL_WINDOW_FEEL);
parent = new BView(Bounds(),"parent",B_FOLLOW_ALL_SIDES,B_WILL_DRAW);
parent... | 22.032258 | 139 | 0.691069 | Sylvain78 |
77d5cd25afa0df4941a3ec889ba98beb669636ed | 17,235 | cpp | C++ | external/sbml/sbml/test/TestReadFromFile7.cpp | dchandran/evolvenetworks | 072f9e1292552f691a86457ffd16a5743724fb5e | [
"BSD-3-Clause"
] | 1 | 2019-08-22T17:17:41.000Z | 2019-08-22T17:17:41.000Z | external/sbml/sbml/test/TestReadFromFile7.cpp | dchandran/evolvenetworks | 072f9e1292552f691a86457ffd16a5743724fb5e | [
"BSD-3-Clause"
] | null | null | null | external/sbml/sbml/test/TestReadFromFile7.cpp | dchandran/evolvenetworks | 072f9e1292552f691a86457ffd16a5743724fb5e | [
"BSD-3-Clause"
] | null | null | null | /**
* \file TestReadFromFile7.cpp
* \brief Reads test-data/l2v3-all.xml into memory and tests it.
* \author Sarah Keating
*
* $Id: TestReadFromFile7.cpp 10129 2009-08-28 12:23:22Z sarahkeating $
* $HeadURL: https://sbml.svn.sourceforge.net/svnroot/sbml/trunk/libsbml/src/sbml/test/TestReadFromFile7.cpp... | 29.715517 | 111 | 0.577778 | dchandran |
77d6b3536812d99301b4c7618c41a759ea9defee | 1,017 | cpp | C++ | src/readraw.cpp | gmke/zernike | 0880b0ae43cbb051afb54aa5decc246252467a8d | [
"MIT"
] | 4 | 2019-05-15T09:28:48.000Z | 2021-06-16T17:28:29.000Z | src/readraw.cpp | gmke/zernike | 0880b0ae43cbb051afb54aa5decc246252467a8d | [
"MIT"
] | null | null | null | src/readraw.cpp | gmke/zernike | 0880b0ae43cbb051afb54aa5decc246252467a8d | [
"MIT"
] | 1 | 2019-01-17T13:30:49.000Z | 2019-01-17T13:30:49.000Z | # include <libraw/libraw.h>
# include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
NumericMatrix readraw(CharacterVector fname, NumericVector channels) {
LibRaw rawimage;
int ret=0;
int i, j;
std::string fn = as<std::string>(fname);
ret=rawimage.open_file(fn.c_str());
if (ret != 0) stop("LibRaw ... | 25.425 | 71 | 0.629302 | gmke |
77e16fa3fbc6dc6a3613b94a4ec0268a7bd40243 | 1,519 | cc | C++ | base/error.cc | ifwe/tagged_test | 02b5a9373962b4c857b6f73b8d0efe847d0e9799 | [
"Apache-2.0"
] | null | null | null | base/error.cc | ifwe/tagged_test | 02b5a9373962b4c857b6f73b8d0efe847d0e9799 | [
"Apache-2.0"
] | null | null | null | base/error.cc | ifwe/tagged_test | 02b5a9373962b4c857b6f73b8d0efe847d0e9799 | [
"Apache-2.0"
] | null | null | null | /* This file is licensed under the terms of the Apache License, Version 2.0
* Please see the file COPYING for the full text of this license
*
* Copyright 2010-2011 Tagged */
/* <base/error.cc>
Implements <base/error.h>. */
#include <base/error.h>
#include <cstdlib>
#include <iostream>
#include <sstream>
#inc... | 23.369231 | 111 | 0.65767 | ifwe |
77e18c4760e88a5beeacc54db569ee874a580847 | 1,501 | cpp | C++ | leetcode/Array Pair Sum Divisibility Problem.cpp | vkashkumar/Competitive-Programming | c457e745208c0ca3e45b1ffce254a21504533f51 | [
"MIT"
] | 2 | 2019-01-30T12:45:18.000Z | 2021-05-06T19:02:51.000Z | leetcode/Array Pair Sum Divisibility Problem.cpp | vkashkumar/Competitive-Programming | c457e745208c0ca3e45b1ffce254a21504533f51 | [
"MIT"
] | null | null | null | leetcode/Array Pair Sum Divisibility Problem.cpp | vkashkumar/Competitive-Programming | c457e745208c0ca3e45b1ffce254a21504533f51 | [
"MIT"
] | 3 | 2020-10-02T15:42:04.000Z | 2022-03-27T15:14:16.000Z | // https://practice.geeksforgeeks.org/problems/array-pair-sum-divisibility-problem/0
#include<bits/stdc++.h>
using namespace std;
#define fast ios::sync_with_stdio(false);cin.tie(0)
#define pb push_back
#define digit(x) floor(log10(x))+1
#define mod 1000000007
#define endl "\n"
#define int long long
#define matrix vec... | 26.803571 | 84 | 0.471019 | vkashkumar |
77ee7f92982342419476201213006b887b3e1014 | 1,536 | cpp | C++ | Online Judges/URI/2519/main.cpp | AnneLivia/URI-Online | 02ff972be172a62b8abe25030c3676f6c04efd1b | [
"MIT"
] | 64 | 2019-03-17T08:56:28.000Z | 2022-01-14T02:31:21.000Z | Online Judges/URI/2519/main.cpp | AnneLivia/URI-Online | 02ff972be172a62b8abe25030c3676f6c04efd1b | [
"MIT"
] | 1 | 2020-12-24T07:16:30.000Z | 2021-03-23T20:51:05.000Z | Online Judges/URI/2519/main.cpp | AnneLivia/URI-Online | 02ff972be172a62b8abe25030c3676f6c04efd1b | [
"MIT"
] | 19 | 2019-05-25T10:48:16.000Z | 2022-01-07T10:07:46.000Z | #include <iostream>
#include <vector>
using namespace std;
vector<vector<int> > fk;
int n, m;
int query(int x, int y) {
int sum = 0;
for (int i = x; i > 0; i-=(i&(-i))) {
for (int j = y; j > 0; j-=(j&(-j))) {
sum+=fk[i][j];
}
}
return sum;
}
int query(int x1, int y1, int ... | 21.633803 | 91 | 0.378906 | AnneLivia |
77eeb386d98a76d27a7d0f3e4f754033926db7a4 | 1,703 | cpp | C++ | ae5b2.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 264 | 2015-01-08T10:07:01.000Z | 2022-03-26T04:11:51.000Z | ae5b2.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 17 | 2016-04-15T03:38:07.000Z | 2020-10-30T00:33:57.000Z | ae5b2.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 127 | 2015-01-08T04:56:44.000Z | 2022-02-25T18:40:37.000Z | // 2009-12-30
//Dynamic max prefix sum query with segment tree. O((n+m) lg n)
#include <iostream>
#include <algorithm>
#include <functional>
using namespace std;
static int sum[1000000];
static int max_psum[1000000];
void recalc(int root)
{
sum[root]=sum[root<<1]+sum[1+(root<<1)];
max_psum[root]=max(max_psum[root<<1]... | 18.117021 | 63 | 0.590722 | ohmyjons |
77efb79e999805f6584f5ca06d8ee4d49512a27d | 4,299 | cpp | C++ | TDD/tdd_instance_json.cpp | gxhblues/TDD | a1f0dce58a5caeb67e21cf79513df10879a7926a | [
"MIT"
] | null | null | null | TDD/tdd_instance_json.cpp | gxhblues/TDD | a1f0dce58a5caeb67e21cf79513df10879a7926a | [
"MIT"
] | null | null | null | TDD/tdd_instance_json.cpp | gxhblues/TDD | a1f0dce58a5caeb67e21cf79513df10879a7926a | [
"MIT"
] | null | null | null | #include "pch.h"
#include "tdd_instance.h"
#include "tdd_shape_box.h"
#include "tdd_shape_connection.h"
#include "tdd_shape_text.h"
#include "tdd_shape_free.h"
#include "tdd_shape_table.h"
#include "tdd_shape_qrcode.h"
#include "tdd_instance_action.h"
using namespace std;
namespace TDD
{
void to_json(json& j, const I... | 23.883333 | 92 | 0.442661 | gxhblues |
77f07abc258021fb1166525aaa4eef7de6d406ca | 453 | hh | C++ | cc/data-fix-guile.hh | acorg/acmacs-whocc | af508bd4651ffb565cd4cf771200540918b1b2bd | [
"MIT"
] | null | null | null | cc/data-fix-guile.hh | acorg/acmacs-whocc | af508bd4651ffb565cd4cf771200540918b1b2bd | [
"MIT"
] | null | null | null | cc/data-fix-guile.hh | acorg/acmacs-whocc | af508bd4651ffb565cd4cf771200540918b1b2bd | [
"MIT"
] | null | null | null | #pragma once
#include "acmacs-base/guile.hh"
// ----------------------------------------------------------------------
namespace acmacs::data_fix::inline v1
{
// pass pointer to this function to guile::init()
void guile_defines();
} // namespace acmacs::data_fix::inline v1
// ------------------------------... | 25.166667 | 73 | 0.456954 | acorg |
77f375dc872dc2f4556b13a9381d538524984220 | 2,280 | hpp | C++ | tests/testServer/ServiceComplexTypeRpcs.hpp | hermannolafs/gWhisper | 2c7efe80337fad6d7ebe65597d97b2e430ab4cb6 | [
"Apache-2.0"
] | 47 | 2019-03-07T18:49:09.000Z | 2022-03-16T17:02:20.000Z | tests/testServer/ServiceComplexTypeRpcs.hpp | hermannolafs/gWhisper | 2c7efe80337fad6d7ebe65597d97b2e430ab4cb6 | [
"Apache-2.0"
] | 97 | 2019-03-06T15:10:50.000Z | 2022-03-16T16:30:18.000Z | tests/testServer/ServiceComplexTypeRpcs.hpp | hermannolafs/gWhisper | 2c7efe80337fad6d7ebe65597d97b2e430ab4cb6 | [
"Apache-2.0"
] | 13 | 2019-03-07T18:49:13.000Z | 2022-02-03T07:22:13.000Z | // Copyright 2019 IBM Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... | 36.190476 | 78 | 0.644298 | hermannolafs |
77f4a89af8b7d867e75c778ec1916caf14ee76a4 | 2,668 | cc | C++ | cefclient/browser/window_test_win.cc | githubzhaoliang/sdkdemoapp_windows | e267ea8ec91f7101f323a6b72ad32bedbb1f034b | [
"BSD-3-Clause"
] | 27 | 2015-01-20T10:25:14.000Z | 2018-11-30T08:42:13.000Z | cef/tests/cefclient/browser/window_test_win.cc | lovewitty/miniblink49 | c8cb0b50636915d748235eea95a57e24805dc43e | [
"Apache-2.0"
] | 2 | 2019-01-14T00:17:19.000Z | 2019-02-03T08:18:49.000Z | cef/tests/cefclient/browser/window_test_win.cc | lovewitty/miniblink49 | c8cb0b50636915d748235eea95a57e24805dc43e | [
"Apache-2.0"
] | 23 | 2015-01-09T10:51:00.000Z | 2021-01-06T13:06:20.000Z | // Copyright (c) 2013 The Chromium Embedded Framework 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 "cefclient/browser/window_test.h"
namespace client {
namespace window_test {
namespace {
HWND GetRootHwnd(CefRefPtr<Cef... | 31.761905 | 80 | 0.723763 | githubzhaoliang |
af7ef5a4b85779e17307f454021fbbd2538c491c | 3,296 | cpp | C++ | DotNetExp/HeapTreeNode.cpp | CaledoniaProject/DotNetExp | 891d74b08205b29c5daa1fa9ec0c00171ab65f84 | [
"MIT"
] | 32 | 2020-08-14T13:39:14.000Z | 2022-03-15T03:59:46.000Z | DotNetExp/HeapTreeNode.cpp | CaledoniaProject/DotNetExp | 891d74b08205b29c5daa1fa9ec0c00171ab65f84 | [
"MIT"
] | 2 | 2020-08-15T00:40:03.000Z | 2022-02-07T23:40:57.000Z | DotNetExp/HeapTreeNode.cpp | isabella232/DotNetExp | 73d82016c743ef28d703b88fc418804de48644f6 | [
"MIT"
] | 14 | 2020-08-15T00:41:03.000Z | 2022-02-07T22:42:12.000Z | #include "pch.h"
#include "HeapTreeNode.h"
#include "SortHelper.h"
#include "resource.h"
#include "ObjectsTreeNode.h"
static const struct {
PCWSTR header;
int width;
int format = LVCFMT_LEFT;
} columns[] = {
{ L"Type Name", 420 },
{ L"Method Table", 120, LVCFMT_RIGHT },
{ L"Object Count", 100, LVCFMT_RIGHT },
{... | 24.414815 | 113 | 0.694175 | CaledoniaProject |
af90d3a5e6bbf5d6bb27288b8c1db00e0520d99f | 143 | cpp | C++ | GoFish/Card.cpp | uaineteine/GoFish | 8140428e8ebb4a2cdb07b65c4e2f90a2236b0cca | [
"MIT"
] | null | null | null | GoFish/Card.cpp | uaineteine/GoFish | 8140428e8ebb4a2cdb07b65c4e2f90a2236b0cca | [
"MIT"
] | null | null | null | GoFish/Card.cpp | uaineteine/GoFish | 8140428e8ebb4a2cdb07b65c4e2f90a2236b0cca | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Card.h"
Card::Card(int value, int suit)
{
Num = value;
Suit = suit;
}
Card::~Card()
{
}
int Num;
int Suit; | 8.411765 | 31 | 0.601399 | uaineteine |
af90fcc67631fc6346ca4ef1f70c0e6b5d069d23 | 331 | cpp | C++ | Difficulty 3/alex_and_barb.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | Difficulty 3/alex_and_barb.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | Difficulty 3/alex_and_barb.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int k, m, n;
bool alexs_turn = true;
cin >> k >> m >> n;
while(k) {
if(k >= m + n) k -= m;
else if(k > n) k -= n;
else k = 0;
alexs_turn = !alexs_turn;
}
if(!alexs_turn) cout << "Barb";
else cout << "Ale... | 16.55 | 35 | 0.453172 | BrynjarGeir |
af91378bfcd5f32650d5f4059b9ca690e09952ca | 2,094 | hh | C++ | src/input/Touchpad.hh | lutris/openmsx | 91ed35400c7b4c8c460004710736af9abc4dde29 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 5 | 2015-02-27T21:42:28.000Z | 2021-10-10T23:36:08.000Z | src/input/Touchpad.hh | lutris/openmsx | 91ed35400c7b4c8c460004710736af9abc4dde29 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/input/Touchpad.hh | lutris/openmsx | 91ed35400c7b4c8c460004710736af9abc4dde29 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2015-06-15T09:57:56.000Z | 2017-05-14T01:11:48.000Z | #ifndef TOUCHPAD_HH
#define TOUCHPAD_HH
#include "JoystickDevice.hh"
#include "MSXEventListener.hh"
#include "StateChangeListener.hh"
#include <memory>
namespace openmsx {
class MSXEventDistributor;
class StateChangeDistributor;
class CommandController;
class StringSetting;
class TclObject;
class Touchpad : public ... | 29.492958 | 75 | 0.748329 | lutris |
af96a56d2b84496b743017abe3f9e85dd8052cd3 | 11,760 | ipp | C++ | include/External/stlib/packages/numerical/random/discrete/DiscreteGeneratorBinned.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/numerical/random/discrete/DiscreteGeneratorBinned.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/numerical/random/discrete/DiscreteGeneratorBinned.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | // -*- C++ -*-
#if !defined(__numerical_random_DiscreteGeneratorBinned_ipp__)
#error This file is an implementation detail of DiscreteGeneratorBinned.
#endif
namespace numerical {
template<class Generator>
inline
typename DiscreteGeneratorBinned<Generator>::result_type
DiscreteGeneratorBinned<Generator>::... | 31.36 | 80 | 0.597789 | bxl295 |
af97bbd12365e535c1e9f5f1944b6c55bb3b4b92 | 1,375 | cpp | C++ | LeetCode/Problems/0145_Binary_Tree_Postorder_Traversal/binary_tree_postorder_traversal.cpp | jocodoma/coding-interview-prep | f7f06be0bc5687c376b753ba3fa46b07412eeb80 | [
"MIT"
] | null | null | null | LeetCode/Problems/0145_Binary_Tree_Postorder_Traversal/binary_tree_postorder_traversal.cpp | jocodoma/coding-interview-prep | f7f06be0bc5687c376b753ba3fa46b07412eeb80 | [
"MIT"
] | null | null | null | LeetCode/Problems/0145_Binary_Tree_Postorder_Traversal/binary_tree_postorder_traversal.cpp | jocodoma/coding-interview-prep | f7f06be0bc5687c376b753ba3fa46b07412eeb80 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<int> postorderTraversal(TreeNode* root) {
// return recursiveTraversal(root);
... | 24.553571 | 75 | 0.550545 | jocodoma |
af9d4644c7ff69a1b9faee999a0e125238840882 | 5,951 | hpp | C++ | src/csalt/src/userfunutils/FunctionOutputData.hpp | IncompleteWorlds/GMAT_2020 | 624de54d00f43831a4d46b46703e069d5c8c92ff | [
"Apache-2.0"
] | null | null | null | src/csalt/src/userfunutils/FunctionOutputData.hpp | IncompleteWorlds/GMAT_2020 | 624de54d00f43831a4d46b46703e069d5c8c92ff | [
"Apache-2.0"
] | null | null | null | src/csalt/src/userfunutils/FunctionOutputData.hpp | IncompleteWorlds/GMAT_2020 | 624de54d00f43831a4d46b46703e069d5c8c92ff | [
"Apache-2.0"
] | null | null | null | //------------------------------------------------------------------------------
// FunctionOutputData
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2020 United States Government as represen... | 36.286585 | 89 | 0.631995 | IncompleteWorlds |
af9e5c8a0b386c5ed63691799377fca378e9db67 | 4,648 | cpp | C++ | src/prod/src/Management/healthmanager/IHealthJobItem.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Management/healthmanager/IHealthJobItem.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Management/healthmanager/IHealthJobItem.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 28.169697 | 99 | 0.655336 | vishnuk007 |
afa2e52436d604e6dc03ea87d6e467a6820e18ef | 799 | cpp | C++ | luogu/codes/P1051.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | 1 | 2021-02-22T03:39:24.000Z | 2021-02-22T03:39:24.000Z | luogu/codes/P1051.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | luogu/codes/P1051.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
struct node
{
string xm;
int qm, bj;
char bgb, xb;
int lw;
int ans;
int sum;
}a[101];
int n, tot = 0;
bool cmp(node x, node y)
{
if(x.ans == y.ans) return x.sum < y.sum;
else return x.ans > y.ans;
}
int main()
{
scanf("%d",&n);
for... | 19.975 | 67 | 0.46433 | Tony031218 |
afa3698dec43b47e99d645417f0d5c99f8f353e9 | 3,989 | hpp | C++ | src/core/lib/core_reflection/metadata/meta_expose.hpp | wgsyd/wgtf | d8cacb43e2c5d40080d33c18a8c2f5bd27d21bed | [
"BSD-3-Clause"
] | 28 | 2016-06-03T05:28:25.000Z | 2019-02-14T12:04:31.000Z | src/core/lib/core_reflection/metadata/meta_expose.hpp | karajensen/wgtf | 740397bcfdbc02bc574231579d57d7c9cd5cc26d | [
"BSD-3-Clause"
] | null | null | null | src/core/lib/core_reflection/metadata/meta_expose.hpp | karajensen/wgtf | 740397bcfdbc02bc574231579d57d7c9cd5cc26d | [
"BSD-3-Clause"
] | 14 | 2016-06-03T05:52:27.000Z | 2019-03-21T09:56:03.000Z | #pragma once
#include "core_reflection/metadata/meta_impl.hpp"
#include "core_reflection/reflection_macros.hpp"
#include "core_reflection/metadata/meta_types.hpp"
#include "core_reflection/utilities/reflection_function_utilities.hpp"
namespace wgt
{
BEGIN_EXPOSE(MetaBase, MetaNone())
END_EXPOSE()
BEGIN_EXPOSE(MetaNo... | 25.246835 | 87 | 0.810228 | wgsyd |
afa4ab28c45c8aeeaaafca429fff5b40960c5361 | 4,595 | cpp | C++ | src/asset-archiver/asset-archiver.cpp | scp-studios/scp-game-framework | 17ffb68a50d834e490d387028f05add9f5391ea5 | [
"MIT"
] | 1 | 2022-01-31T22:20:01.000Z | 2022-01-31T22:20:01.000Z | src/asset-archiver/asset-archiver.cpp | scp-studios/scp-game-framework | 17ffb68a50d834e490d387028f05add9f5391ea5 | [
"MIT"
] | null | null | null | src/asset-archiver/asset-archiver.cpp | scp-studios/scp-game-framework | 17ffb68a50d834e490d387028f05add9f5391ea5 | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <vector>
#include <string>
#include <filesystem>
#include <sstream>
// Hello. This is a simple command line utility for packaging assets into a si-
// ngle file. It works recursively.
namespace stdfs = std::filesystem;
// Unused argument suppressor
#define UNUSED_ARG(x... | 30.838926 | 102 | 0.605658 | scp-studios |
afae263cd3a9e957a7500eb9a1e18a3b3adea3f3 | 2,053 | cpp | C++ | tests/swats_test.cpp | ElianeBriand/ensmallen | 0f634056d054d100b2a70cb8f15ea9fa38680d10 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | tests/swats_test.cpp | ElianeBriand/ensmallen | 0f634056d054d100b2a70cb8f15ea9fa38680d10 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | tests/swats_test.cpp | ElianeBriand/ensmallen | 0f634056d054d100b2a70cb8f15ea9fa38680d10 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2019-01-16T16:21:59.000Z | 2019-01-16T16:21:59.000Z | /**
* @file swats_test.cpp
* @author Marcus Edel
*
* Test file for the SWATS optimizer.
*
* ensmallen is free software; you may redistribute it and/or modify it under
* the terms of the 3-clause BSD license. You should have received a copy of
* the 3-clause BSD license along with ensmallen. If not, see
* htt... | 29.328571 | 79 | 0.71018 | ElianeBriand |
afaf0c9404b2416edabec68fd000ac66b7a25362 | 6,375 | cpp | C++ | src/test/feature/ManagementTool/test_hawq_register_rollback.cpp | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 450 | 2015-09-05T09:12:51.000Z | 2018-08-30T01:45:36.000Z | src/test/feature/ManagementTool/test_hawq_register_rollback.cpp | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 1,274 | 2015-09-22T20:06:16.000Z | 2018-08-31T22:14:00.000Z | src/test/feature/ManagementTool/test_hawq_register_rollback.cpp | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 278 | 2015-09-21T19:15:06.000Z | 2018-08-31T00:36:51.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 49.038462 | 186 | 0.714667 | YangHao666666 |
afafe01bc52f52d0237b360d94f7692b8943bb7d | 1,233 | cpp | C++ | src/bounce/Bounce.cpp | Gigi1237/Bounce | 6e674dd7babda0192b930cc532f692c75219d1fd | [
"MIT"
] | null | null | null | src/bounce/Bounce.cpp | Gigi1237/Bounce | 6e674dd7babda0192b930cc532f692c75219d1fd | [
"MIT"
] | 2 | 2015-02-11T02:46:15.000Z | 2015-02-26T14:41:30.000Z | src/bounce/Bounce.cpp | Gigi1237/Bounce | 6e674dd7babda0192b930cc532f692c75219d1fd | [
"MIT"
] | null | null | null | #include "Bounce.h"
#include <iostream>
//#include <intrin.h> - Not needed on linux
World *world;
void ClearScreen()
{
std::cout << std::string(100, '\n');
}
void handleUp(int action)
{
//if (action == 1){
ClearScreen();
World::setGravity(World::getGravity() + 0.5f);
std::cout << Worl... | 20.55 | 62 | 0.622871 | Gigi1237 |
afb142fff97a1c2d73ccad2dabee4c031dd69a8f | 991 | cpp | C++ | luogu/codes/P1311.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | 1 | 2021-02-22T03:39:24.000Z | 2021-02-22T03:39:24.000Z | luogu/codes/P1311.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | luogu/codes/P1311.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | /*************************************************************
* > File Name : P1311.cpp
* > Author : Tony
* > Created Time : 2019/10/20 19:31:08
* > Algorithm :
**************************************************************/
#include <bits/stdc++.h>
using namespace std;
inline in... | 26.078947 | 65 | 0.379415 | Tony031218 |
afb258add685e6ea7e2995fbc57674ba17d6b48f | 677 | hpp | C++ | TheMachine/include/TheMachine/utils.hpp | adepierre/TheMachine | 96df7775a4a6745802ab76649a63a4d16641a54b | [
"MIT"
] | 1 | 2021-09-24T10:05:52.000Z | 2021-09-24T10:05:52.000Z | TheMachine/include/TheMachine/utils.hpp | adepierre/TheMachine | 96df7775a4a6745802ab76649a63a4d16641a54b | [
"MIT"
] | null | null | null | TheMachine/include/TheMachine/utils.hpp | adepierre/TheMachine | 96df7775a4a6745802ab76649a63a4d16641a54b | [
"MIT"
] | null | null | null | #pragma once
#include <opencv2/core.hpp>
struct Detection
{
float x1, y1, x2, y2;
float score;
int cls;
};
void DrawRectangle(cv::Mat& img, const Detection& d, const cv::Scalar& color);
void DrawDetection(cv::Mat& img, const Detection& d, const cv::Scalar& color);
void DrawPerson(cv::Mat& img, const Detection& ... | 27.08 | 100 | 0.713442 | adepierre |
afb855da368616917984a559264b3171bcc4e44e | 1,454 | cpp | C++ | POJ/POJ2417.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | POJ/POJ2417.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | POJ/POJ2417.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include <cmath>
#include <cstdio>
#include <cstring>
#define HMOD 1000007LL
using namespace std;
struct hash_link
{
long long ori;
long long val;
int nxt;
};
hash_link e[HMOD << 2];
int edge_num[HMOD], cnt;
long long a, b, MOD;
inline void add(long long x, long long y)
{
long long ori = x;
x %= HMOD;
for (int... | 17.518072 | 64 | 0.552957 | HeRaNO |
afbd8af7b78eee23bb4ad7a5ebc12380299cde0e | 1,877 | cpp | C++ | cpp/src/torch_tensorrt.cpp | narendasan/TRTorch | badcc696891596925def4a260a8f58ade24f2296 | [
"BSD-3-Clause"
] | null | null | null | cpp/src/torch_tensorrt.cpp | narendasan/TRTorch | badcc696891596925def4a260a8f58ade24f2296 | [
"BSD-3-Clause"
] | null | null | null | cpp/src/torch_tensorrt.cpp | narendasan/TRTorch | badcc696891596925def4a260a8f58ade24f2296 | [
"BSD-3-Clause"
] | null | null | null | #include "torch/csrc/jit/api/module.h"
#include "core/compiler.h"
#include "core/util/prelude.h"
#include "torch_tensorrt/torch_tensorrt.h"
namespace torch_tensorrt {
// Defined in types.cpp
trtorch::core::runtime::CudaDevice to_internal_cuda_device(Device device);
namespace torchscript {
// Defined in compile_spec.... | 33.517857 | 101 | 0.755994 | narendasan |
afbeb2766cd84485a0e217549e064cb65b22fda5 | 109 | hpp | C++ | inc/receive_msg.hpp | os-chat/Chat | 71d4750030a285fe5dab466d52f6d18f8f70ef07 | [
"MIT"
] | null | null | null | inc/receive_msg.hpp | os-chat/Chat | 71d4750030a285fe5dab466d52f6d18f8f70ef07 | [
"MIT"
] | null | null | null | inc/receive_msg.hpp | os-chat/Chat | 71d4750030a285fe5dab466d52f6d18f8f70ef07 | [
"MIT"
] | null | null | null | #ifndef RECEIVE_MSG_HPP
#define RECEIVE_MSG_HPP
#include "common.hpp"
void *receive_msg(void *ptr);
#endif | 13.625 | 29 | 0.779817 | os-chat |
afc0d98a7d0cbb89cdb834e40f8505129adeb8d5 | 4,137 | tpp | C++ | base/serialization.tpp | BowenforGit/Grasper | 268468d6eb0a56e9a4815c0c1d7660b06bf8a1f7 | [
"Apache-2.0"
] | 29 | 2019-11-18T14:25:05.000Z | 2022-02-10T07:21:48.000Z | base/serialization.tpp | BowenforGit/Grasper | 268468d6eb0a56e9a4815c0c1d7660b06bf8a1f7 | [
"Apache-2.0"
] | 2 | 2021-03-17T03:17:38.000Z | 2021-04-11T04:06:23.000Z | base/serialization.tpp | BowenforGit/Grasper | 268468d6eb0a56e9a4815c0c1d7660b06bf8a1f7 | [
"Apache-2.0"
] | 6 | 2019-11-21T18:04:15.000Z | 2022-03-01T02:48:50.000Z | /* Copyright 2019 Husky Data Lab, CUHK
Authors: Created by Hongzhi Chen (hzchen@cse.cuhk.edu.hk)
*/
template <class T>
ibinstream& operator<<(ibinstream& m, const T* p) {
return m << *p;
}
template <class T>
ibinstream& operator<<(ibinstream& m, const vector<T>& v) {
m << v.size();
for (typename vector<T... | 22.483696 | 105 | 0.539521 | BowenforGit |
afc26b1c39f8e3183c2e2400230efa5e674a8b13 | 10,914 | cpp | C++ | sources/VS/ThirdParty/wxWidgets/samples/archive/archive.cpp | Sasha7b9Work/S8-53M2 | fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e | [
"MIT"
] | 15 | 2019-05-19T23:10:41.000Z | 2021-08-06T14:02:09.000Z | sources/VS/ThirdParty/wxWidgets/samples/archive/archive.cpp | Sasha7b9Work/S8-53M2 | fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e | [
"MIT"
] | 3 | 2019-12-05T08:08:50.000Z | 2020-05-14T20:31:39.000Z | sources/VS/ThirdParty/wxWidgets/samples/archive/archive.cpp | Sasha7b9Work/S8-53M2 | fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e | [
"MIT"
] | 4 | 2020-02-27T00:57:21.000Z | 2021-08-06T14:02:11.000Z | /////////////////////////////////////////////////////////////////////////////
// Name: samples/archive/archive.cpp
// Purpose: A sample application to manipulate archives
// Author: Tobias Taschner
// Created: 2018-02-07
// Copyright: (c) 2018 wxWidgets development team
// Licence: wxWindows l... | 30.830508 | 128 | 0.616822 | Sasha7b9Work |
afc86f98606a6be02eecf6dc0f15664affe8a493 | 841 | cc | C++ | libmat/test/src/test_cr_cColItr_all.cc | stiegerc/winterface | b6d501df1d0c015f2cd7126ac6b4e746d541c80c | [
"BSD-2-Clause"
] | 2 | 2020-10-06T09:14:23.000Z | 2020-11-25T06:08:54.000Z | libmat/test/src/test_cr_cColItr_all.cc | stiegerc/Winterface | b6d501df1d0c015f2cd7126ac6b4e746d541c80c | [
"BSD-2-Clause"
] | 1 | 2020-12-23T04:20:33.000Z | 2020-12-23T04:20:33.000Z | libmat/test/src/test_cr_cColItr_all.cc | stiegerc/Winterface | b6d501df1d0c015f2cd7126ac6b4e746d541c80c | [
"BSD-2-Clause"
] | 1 | 2020-07-14T13:53:32.000Z | 2020-07-14T13:53:32.000Z | // 2014-2019, ETH Zurich, Integrated Systems Laboratory
// Authors: Christian Stieger
#include "testTools.h"
#include "test_cr_tVecItr_all.h"
#include "test_cr_tVecItr_all.cc"
template<>
void test_cr_tVecItr_all<CPX__,RE__,CPX__,lm_tCol<CPX__,RE__,CPX__>>::test_dereference() {
const size_t M = genRndST();
const ... | 24.735294 | 97 | 0.72176 | stiegerc |
afca3e293acc406f7c6dc97e7fbc547718455d00 | 1,088 | cpp | C++ | ECE264/Labs/Lab#3/lab3_GradeBook.cpp | Reiuiji/UmassdPortfolio | 959d852a91825326fd777c1883cdfac39d8dd3dd | [
"MIT"
] | 3 | 2017-04-23T00:53:11.000Z | 2019-03-11T23:47:20.000Z | ECE264/Labs/Lab#3/lab3_GradeBook.cpp | Reiuiji/UmassdPortfolio | 959d852a91825326fd777c1883cdfac39d8dd3dd | [
"MIT"
] | null | null | null | ECE264/Labs/Lab#3/lab3_GradeBook.cpp | Reiuiji/UmassdPortfolio | 959d852a91825326fd777c1883cdfac39d8dd3dd | [
"MIT"
] | null | null | null | //Lab 3 lab3_GradeBook.cpp
#include <iostream>
using namespace std;
#include "lab3_GradeBook.h"
//set the gradebook with a course and a instructor tag
GradeBook::GradeBook(string course, string Instructor)
{
setCourseName(course);
setInstructorName(Instructor);
}
//set the course name
void GradeBook::setCourseName(... | 20.923077 | 77 | 0.729779 | Reiuiji |
afcc23ae27949774542c6cb63d9a826e503cce32 | 7,678 | cpp | C++ | 2/second-lab/second-lab/app.cpp | i582/HLProgramming | 4d2da80c69f8e1014cbf7be9087bdec6b2c05d45 | [
"MIT"
] | null | null | null | 2/second-lab/second-lab/app.cpp | i582/HLProgramming | 4d2da80c69f8e1014cbf7be9087bdec6b2c05d45 | [
"MIT"
] | null | null | null | 2/second-lab/second-lab/app.cpp | i582/HLProgramming | 4d2da80c69f8e1014cbf7be9087bdec6b2c05d45 | [
"MIT"
] | null | null | null | #include "app.h"
App::App()
{
this->window = nullptr;
this->renderer = nullptr;
this->e = {};
this->running = true;
}
App::~App()
{
SDL_RemoveTimer(repeatOnceFunctionTimer);
SDL_RemoveTimer(customEventFunctionTimer);
SDL_Log("Старт разрушения окна");
SDL_DestroyWindow(window);
SDL_Log("разрушение окна успе... | 23.057057 | 163 | 0.711383 | i582 |
afcd9013abc4b631e94dd5af638cb031c4873c53 | 27 | cpp | C++ | WitchEngine3/src/WE3/input/SourceHolder.cpp | jadnohra/World-Of-Football | fc4c9dd23e0b2d8381ae8f62b1c387af7f28fcfc | [
"MIT"
] | 3 | 2018-12-02T14:09:22.000Z | 2021-11-22T07:14:05.000Z | WitchEngine3/src/WE3/input/SourceHolder.cpp | jadnohra/World-Of-Football | fc4c9dd23e0b2d8381ae8f62b1c387af7f28fcfc | [
"MIT"
] | 1 | 2018-12-03T22:54:38.000Z | 2018-12-03T22:54:38.000Z | WitchEngine3/src/WE3/input/SourceHolder.cpp | jadnohra/World-Of-Football | fc4c9dd23e0b2d8381ae8f62b1c387af7f28fcfc | [
"MIT"
] | 2 | 2020-09-22T21:04:14.000Z | 2021-05-24T09:43:28.000Z | #include "SourceHolder.h"
| 13.5 | 26 | 0.740741 | jadnohra |
afcdcc50e1f4f31417bb60aa43ec84ee85e55e0b | 2,779 | hpp | C++ | src/CAghostnodes.hpp | streeve/ExaCA | f6bd298d9719edfe948ce629369f02ac7c18c65b | [
"MIT"
] | 13 | 2021-06-04T14:50:33.000Z | 2022-03-26T03:21:17.000Z | src/CAghostnodes.hpp | streeve/ExaCA | f6bd298d9719edfe948ce629369f02ac7c18c65b | [
"MIT"
] | 30 | 2021-07-21T23:13:34.000Z | 2022-03-29T18:37:19.000Z | src/CAghostnodes.hpp | streeve/ExaCA | f6bd298d9719edfe948ce629369f02ac7c18c65b | [
"MIT"
] | 5 | 2021-07-21T23:36:12.000Z | 2022-03-11T00:52:15.000Z | // Copyright 2021 Lawrence Livermore National Security, LLC and other ExaCA Project Developers.
// See the top-level LICENSE file for details.
//
// SPDX-License-Identifier: MIT
#ifndef EXACA_GHOST_HPP
#define EXACA_GHOST_HPP
#include "CAtypes.hpp"
#include <Kokkos_Core.hpp>
void GhostNodesInit(int, int, int Decomp... | 73.131579 | 120 | 0.732997 | streeve |
afd03638568c09eb7f19f3eaa4843bdc98beca12 | 10,745 | hpp | C++ | include/Library/Astrodynamics/Trajectory/Orbit/Models/Kepler.hpp | cowlicks/library-astrodynamics | aec161a1e5a1294820a90e1a74633b5a71d59a33 | [
"Apache-2.0"
] | null | null | null | include/Library/Astrodynamics/Trajectory/Orbit/Models/Kepler.hpp | cowlicks/library-astrodynamics | aec161a1e5a1294820a90e1a74633b5a71d59a33 | [
"Apache-2.0"
] | null | null | null | include/Library/Astrodynamics/Trajectory/Orbit/Models/Kepler.hpp | cowlicks/library-astrodynamics | aec161a1e5a1294820a90e1a74633b5a71d59a33 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Library/Astrodynamics
/// @file Library/Astrodynamics/Trajectory/Orbit/Models/Kepler.hpp
/// @author Lucas Brémond <luca... | 62.47093 | 189 | 0.304514 | cowlicks |
afd146c0ac57d6534ef3fe0cfe39762f126d39fb | 6,793 | cpp | C++ | frameworks/lua/libs/kernel/dmzLuaKernelHandle.cpp | ashok/dmz | 2f8d4bced646f25abf2e98bdc0d378dafb4b32ed | [
"MIT"
] | 1 | 2015-11-05T03:03:31.000Z | 2015-11-05T03:03:31.000Z | frameworks/lua/libs/kernel/dmzLuaKernelHandle.cpp | ashok/dmz | 2f8d4bced646f25abf2e98bdc0d378dafb4b32ed | [
"MIT"
] | null | null | null | frameworks/lua/libs/kernel/dmzLuaKernelHandle.cpp | ashok/dmz | 2f8d4bced646f25abf2e98bdc0d378dafb4b32ed | [
"MIT"
] | null | null | null | #include <dmzLuaKernel.h>
#include "dmzLuaKernelPrivate.h"
#include <dmzLuaKernelValidate.h>
#include <dmzRuntimeDefinitions.h>
#include <dmzSystem.h>
#include <dmzTypesHashTableHandleTemplate.h>
#include <dmzTypesString.h>
#include <luacpp.h>
using namespace dmz;
namespace {
static const char HandleName[] = "dmz.ty... | 20.901538 | 85 | 0.596055 | ashok |
afd61686a999ca676966fe471358861c772f1deb | 8,902 | cc | C++ | ns-allinone-3.30/ns-3.30/src/internet/model/tcp-ledbat.cc | NEWPLAN/ns3_v3.30 | c931036574ee1efd58dad6df3f6d8365b4948bcd | [
"Apache-2.0"
] | null | null | null | ns-allinone-3.30/ns-3.30/src/internet/model/tcp-ledbat.cc | NEWPLAN/ns3_v3.30 | c931036574ee1efd58dad6df3f6d8365b4948bcd | [
"Apache-2.0"
] | null | null | null | ns-allinone-3.30/ns-3.30/src/internet/model/tcp-ledbat.cc | NEWPLAN/ns3_v3.30 | c931036574ee1efd58dad6df3f6d8365b4948bcd | [
"Apache-2.0"
] | 1 | 2019-10-23T15:15:27.000Z | 2019-10-23T15:15:27.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2016 NITK Surathkal
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is di... | 28.809061 | 119 | 0.599416 | NEWPLAN |
afdafc445a97e97903270769867114615ec67fd1 | 268 | cpp | C++ | timus/2100.cpp | y-wan/OJ | 5dea140dbaaec98e440ad4b1c10fa5072f1ceea7 | [
"MIT"
] | null | null | null | timus/2100.cpp | y-wan/OJ | 5dea140dbaaec98e440ad4b1c10fa5072f1ceea7 | [
"MIT"
] | null | null | null | timus/2100.cpp | y-wan/OJ | 5dea140dbaaec98e440ad4b1c10fa5072f1ceea7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main() {
int n;
string s;
cin >> n;
int sum = n + 2;
for (int i = 0; i < n; i++) {
cin >> s;
if (s[s.size() - 4] == '+') sum++;
}
if (sum == 13) sum++;
cout << 100 * sum << endl;
return 0;
}
| 14.888889 | 36 | 0.496269 | y-wan |
afdc73c0e5a987e35e16416b60dd714a5847b7ee | 1,657 | cpp | C++ | test/src/MISC/Common/LongRunningOperation.cpp | theoremprover/cpp-parser | 543cd50acc9e08aadf278b9c970d4db6c332887a | [
"BSD-3-Clause"
] | 18 | 2018-05-10T18:50:06.000Z | 2022-01-11T17:11:34.000Z | test/src/MISC/Common/LongRunningOperation.cpp | theoremprover/cpp-parser | 543cd50acc9e08aadf278b9c970d4db6c332887a | [
"BSD-3-Clause"
] | 24 | 2018-06-14T17:54:17.000Z | 2022-03-11T23:21:29.000Z | test/src/MISC/Common/LongRunningOperation.cpp | theoremprover/cpp-parser | 543cd50acc9e08aadf278b9c970d4db6c332887a | [
"BSD-3-Clause"
] | 4 | 2019-04-02T16:04:34.000Z | 2022-01-10T11:44:43.000Z | // This file is part of Notepad++ project
// Copyright (C)2003 Don HO <don.h@free.fr>
//
// 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... | 33.816327 | 76 | 0.754375 | theoremprover |
afe2e3508b335766c62fc986f31dba7fb2f00ecf | 911 | cpp | C++ | cppPrime/cppBrowse_c02/test_10.cpp | ilvcr/cpplgproject | d3dc492b37c3754e35669eee2dd96d83de63ead4 | [
"Apache-2.0"
] | null | null | null | cppPrime/cppBrowse_c02/test_10.cpp | ilvcr/cpplgproject | d3dc492b37c3754e35669eee2dd96d83de63ead4 | [
"Apache-2.0"
] | null | null | null | cppPrime/cppBrowse_c02/test_10.cpp | ilvcr/cpplgproject | d3dc492b37c3754e35669eee2dd96d83de63ead4 | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
> File Name: test_10.cpp
> Author: @Yoghourt->ilvcr, Cn,Sx,Ty
> Mail: ilvcr@outlook.com || liyaoliu@foxmail.com
> Created Time: 2018年06月21日 星期四 23时30分40秒
> Description: 将泛型算法应用到vector类对象上
***********************************************... | 23.358974 | 74 | 0.512623 | ilvcr |
afe9b85bc1688b517c46b98ca8f2066909a22edb | 2,036 | cc | C++ | PTA/PAT_A/Cpp11/A1075_AC.cc | StrayDragon/OJ-Solutions | b31b11c01507544aded2302923da080b39cf2ba8 | [
"MIT"
] | 1 | 2019-05-13T10:09:55.000Z | 2019-05-13T10:09:55.000Z | PTA/PAT_A/Cpp11/A1075_AC.cc | StrayDragon/OJ-Solutions | b31b11c01507544aded2302923da080b39cf2ba8 | [
"MIT"
] | null | null | null | PTA/PAT_A/Cpp11/A1075_AC.cc | StrayDragon/OJ-Solutions | b31b11c01507544aded2302923da080b39cf2ba8 | [
"MIT"
] | null | null | null | // ---
// id : 1075
// title : PAT Judge
// difficulty : Medium
// score : 25
// tag : Primary Algorithm
// keyword : sort
// status : AC
// from : PAT (Advanced Level) Practice
// ---
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
struct User {
... | 25.135802 | 74 | 0.478389 | StrayDragon |
afedea283c5bfd25ca1256f4f676b4c187dc5e08 | 7,233 | cpp | C++ | src/lz4mt_result.cpp | 1shekhar/lz4mt-cpp | a01631c2a5496c8d6335801d270b3d8688da078d | [
"BSD-2-Clause"
] | 140 | 2015-01-08T03:42:50.000Z | 2022-02-15T13:08:27.000Z | src/lz4mt_result.cpp | 1shekhar/lz4mt-cpp | a01631c2a5496c8d6335801d270b3d8688da078d | [
"BSD-2-Clause"
] | 15 | 2015-01-29T21:00:39.000Z | 2021-11-25T14:20:12.000Z | src/lz4mt_result.cpp | 1shekhar/lz4mt-cpp | a01631c2a5496c8d6335801d270b3d8688da078d | [
"BSD-2-Clause"
] | 40 | 2015-01-13T07:19:05.000Z | 2022-01-12T18:24:30.000Z | #include "lz4mt.h"
extern "C" const char*
lz4mtResultToString(Lz4MtResult result)
{
const char* s = "???";
switch(result) {
case LZ4MT_RESULT_OK:
s = "OK";
break;
case LZ4MT_RESULT_ERROR:
s = "ERROR";
break;
case LZ4MT_RESULT_INVALID_MAGIC_NUMBER:
s = "INVALID_MAGIC_NUMBER";
break;
case LZ4MT_RESULT... | 26.690037 | 161 | 0.718651 | 1shekhar |
aff3322e251c03dea97c9a0bedf81187344ccea0 | 475 | cc | C++ | actions.cc | amadio/g4run | 05dbfd0ec30567d0a60513d3002994094cd51af3 | [
"BSD-2-Clause"
] | 2 | 2020-08-18T12:22:13.000Z | 2022-03-12T17:01:05.000Z | actions.cc | amadio/g4run | 05dbfd0ec30567d0a60513d3002994094cd51af3 | [
"BSD-2-Clause"
] | null | null | null | actions.cc | amadio/g4run | 05dbfd0ec30567d0a60513d3002994094cd51af3 | [
"BSD-2-Clause"
] | null | null | null | #include "actions.h"
G4Run* RunAction::GenerateRun() { return nullptr; }
void RunAction::BeginOfRunAction(const G4Run*) { }
void RunAction::EndOfRunAction(const G4Run*) { }
void EventAction::BeginOfEventAction(const G4Event*) { }
void EventAction::EndOfEventAction(const G4Event*) { }
void TrackingAction::PreUserTrac... | 33.928571 | 63 | 0.772632 | amadio |
aff434f15dd46c9df3ed72ad489bfa072dcf1e37 | 3,332 | cpp | C++ | src/poll.cpp | TheClonerx/cppnet | 1d282824d227542a3b130c37ef068ebddb212fa5 | [
"MIT"
] | 7 | 2019-03-03T05:43:52.000Z | 2021-08-28T01:24:44.000Z | src/poll.cpp | TheClonerx/cppnet | 1d282824d227542a3b130c37ef068ebddb212fa5 | [
"MIT"
] | null | null | null | src/poll.cpp | TheClonerx/cppnet | 1d282824d227542a3b130c37ef068ebddb212fa5 | [
"MIT"
] | 1 | 2020-01-02T05:47:12.000Z | 2020-01-02T05:47:12.000Z | #include <cppnet/poll.hpp>
#include <algorithm>
bool net::poll::add(socket::native_handle_type fd, int eventmask)
{
if (fd < 0)
return false;
auto it = std::find_if(fds.begin(), fds.end(), [fd](const pollfd& p) {
return p.fd == fd;
});
if (it != fds.end())
return false;
fds... | 28.724138 | 128 | 0.604142 | TheClonerx |
aff5a97359496a813dfb2ec91f1506e5a4b269e0 | 537 | hpp | C++ | src/Enclave/binary/logic.hpp | dove-project/dove-backend | e9f4f6211181ccc9072416816d65793dc137444b | [
"MIT"
] | null | null | null | src/Enclave/binary/logic.hpp | dove-project/dove-backend | e9f4f6211181ccc9072416816d65793dc137444b | [
"MIT"
] | null | null | null | src/Enclave/binary/logic.hpp | dove-project/dove-backend | e9f4f6211181ccc9072416816d65793dc137444b | [
"MIT"
] | null | null | null | #ifndef _LOGIC_HPP
#define _LOGIC_HPP
#include "../binary_op.hpp"
#ifdef LIB_FTFP
class BitwiseAndOp: public BinaryOp {
void call(fixed scalar1, fixed scalar2, fixed *result);
};
class BitwiseOrOp: public BinaryOp {
void call(fixed scalar1, fixed scalar2, fixed *result);
};
#else
class BitwiseAndOp: public Binary... | 23.347826 | 60 | 0.73743 | dove-project |
aff66757a237a9cc4ba9c0d79d3c7b310a77a916 | 557 | cpp | C++ | UVa Online Judge/10976 - Fractions Again.cpp | SamanKhamesian/ACM-ICPC-Problems | c68c04bee4de9ba9f30e665cd108484e0fcae4d7 | [
"Apache-2.0"
] | 2 | 2019-03-19T23:59:48.000Z | 2019-03-21T20:13:12.000Z | UVa Online Judge/10976 - Fractions Again.cpp | SamanKhamesian/ACM-ICPC-Problems | c68c04bee4de9ba9f30e665cd108484e0fcae4d7 | [
"Apache-2.0"
] | null | null | null | UVa Online Judge/10976 - Fractions Again.cpp | SamanKhamesian/ACM-ICPC-Problems | c68c04bee4de9ba9f30e665cd108484e0fcae4d7 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <cmath>
#include <set>
#include <vector>
using namespace std;
int main()
{
int k;
vector <pair <int, int>> ans;
while (cin >> k)
{
ans.clear();
for (int y = k + 1; y <= 2 * k; y++)
{
int x = ((k * y) / (y - k));
if ((k * y) % ... | 15.472222 | 67 | 0.452424 | SamanKhamesian |
aff78f49864e880352a13d5671ccc2629f72f429 | 742 | hpp | C++ | TypeTraits/IsMemberPointer.hpp | jlandess/LandessDevCore | 3319c36c3232415d6bdba7da8b4896c0638badf2 | [
"BSD-3-Clause"
] | 2 | 2021-06-09T00:38:46.000Z | 2021-09-04T21:55:33.000Z | TypeTraits/IsMemberPointer.hpp | jlandess/LandessDevCore | 3319c36c3232415d6bdba7da8b4896c0638badf2 | [
"BSD-3-Clause"
] | null | null | null | TypeTraits/IsMemberPointer.hpp | jlandess/LandessDevCore | 3319c36c3232415d6bdba7da8b4896c0638badf2 | [
"BSD-3-Clause"
] | 1 | 2021-08-30T00:46:12.000Z | 2021-08-30T00:46:12.000Z | //
// Created by phoenixflower on 10/12/19.
//
#ifndef LANDESSDEVDATASTRUCTURES_ISMEMBERPOINTER_H
#define LANDESSDEVDATASTRUCTURES_ISMEMBERPOINTER_H
//#include "Definitions/Common.hpp"
namespace LD
{
namespace Detail
{
template< class T >
struct is_member_pointer_helper : LD::FalseType... | 26.5 | 84 | 0.685984 | jlandess |
aff897b6d20f05945ace3db06260645217b01119 | 1,798 | cc | C++ | src/factory-py.cc | florent-lamiraux/dynamic-graph-python | 3adadf9e64585dfc623726af9f87f363da99284a | [
"BSD-2-Clause"
] | null | null | null | src/factory-py.cc | florent-lamiraux/dynamic-graph-python | 3adadf9e64585dfc623726af9f87f363da99284a | [
"BSD-2-Clause"
] | null | null | null | src/factory-py.cc | florent-lamiraux/dynamic-graph-python | 3adadf9e64585dfc623726af9f87f363da99284a | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2010, Florent Lamiraux, Thomas Moulard, LAAS-CNRS.
//
// This file is part of dynamic-graph-python.
// dynamic-graph-python is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation, either
// versi... | 30.474576 | 70 | 0.713571 | florent-lamiraux |
affad5f7b825cc3df186ffecf55dc0b8ae2b88d8 | 1,513 | cpp | C++ | arduino-libs/Pacman/src/AmbushState.cpp | taylorsmithatnominet/BSidesCBR-2021-Badge | df3f13d780d6fb1b6d03d08e9bdd72f507f69aa6 | [
"MIT"
] | null | null | null | arduino-libs/Pacman/src/AmbushState.cpp | taylorsmithatnominet/BSidesCBR-2021-Badge | df3f13d780d6fb1b6d03d08e9bdd72f507f69aa6 | [
"MIT"
] | null | null | null | arduino-libs/Pacman/src/AmbushState.cpp | taylorsmithatnominet/BSidesCBR-2021-Badge | df3f13d780d6fb1b6d03d08e9bdd72f507f69aa6 | [
"MIT"
] | null | null | null | #include "AmbushState.h"
#include "Level.h"
#include "MovementModule.h"
#include "Player.h"
#include "PathFinderModule.h"
#include "Config.h"
namespace pacman {
Vect2 AmbushState::GetNextTarget()
{
Vect2 next = *m_playerwPtr->GetPos();
m_datawPtr->m_levelwPtr->NextIntersection(next, m_playerwPtr->GetDirection());... | 20.445946 | 88 | 0.727693 | taylorsmithatnominet |
affb2458f5b7d83a31f0e74be076cbaf4cb652fa | 3,405 | cpp | C++ | Source/DemoScene/DX9Vector3.cpp | ookumaneko/PC-Psp-Cross-Platform-Demoscene | 0c192f9ecf5a4fd9db3c9a2c9998b365bf480c1e | [
"MIT"
] | null | null | null | Source/DemoScene/DX9Vector3.cpp | ookumaneko/PC-Psp-Cross-Platform-Demoscene | 0c192f9ecf5a4fd9db3c9a2c9998b365bf480c1e | [
"MIT"
] | null | null | null | Source/DemoScene/DX9Vector3.cpp | ookumaneko/PC-Psp-Cross-Platform-Demoscene | 0c192f9ecf5a4fd9db3c9a2c9998b365bf480c1e | [
"MIT"
] | null | null | null | #ifndef _PSP_VER
#include "Vector3.h"
Vector3& Vector3::operator =(const Vector3 &rhs)
{
_vec = rhs._vec;
return *this;
}
Vector3 Vector3::operator +(const Vector3& rhs) const
{
Vector3 ret;
D3DXVec3Add( &ret._vec, &_vec, &rhs._vec );
return ret;
}
Vector3 Vector3::operator- (const Vector3& rhs) const
{
Vecto... | 19.346591 | 82 | 0.684288 | ookumaneko |
9b7c242e21a2a00dc1e56060aba426bdbd26aa2f | 884 | cpp | C++ | src/npf/layout/rows.cpp | yeSpud/Tumblr-cpp | 0f69846abf47495384077488fda49a2b17dfc439 | [
"MIT"
] | 1 | 2021-07-16T04:25:02.000Z | 2021-07-16T04:25:02.000Z | src/npf/layout/rows.cpp | yeSpud/Tumblr-cpp | 0f69846abf47495384077488fda49a2b17dfc439 | [
"MIT"
] | 4 | 2021-09-16T08:46:40.000Z | 2022-03-12T05:12:20.000Z | src/npf/layout/rows.cpp | yeSpud/Tumblr-cpp | 0f69846abf47495384077488fda49a2b17dfc439 | [
"MIT"
] | null | null | null | //
// Created by Spud on 7/16/21.
//
#include "npf/layout/rows.hpp"
void Rows::populateBlocks(const JSON_ARRAY &array) { // TODO Comments
display = std::vector<std::vector<int>>(array.Size());
for (JSON_ARRAY_ENTRY &entry : array) {
if (entry.IsObject()) {
JSON_OBJECT object = entry.GetObj();
POPULATE_AR... | 23.891892 | 86 | 0.670814 | yeSpud |
9b805aa696c8ec98cb29950c14711a0a32d847bd | 433 | cpp | C++ | competitive_programming/programming_contests/uri/handball.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 205 | 2018-12-01T17:49:49.000Z | 2021-12-22T07:02:27.000Z | competitive_programming/programming_contests/uri/handball.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 2 | 2020-01-01T16:34:29.000Z | 2020-04-26T19:11:13.000Z | competitive_programming/programming_contests/uri/handball.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 50 | 2018-11-28T20:51:36.000Z | 2021-11-29T04:08:25.000Z | // https://www.urionlinejudge.com.br/judge/en/problems/view/1715
#include <iostream>
using namespace std;
int main() {
int players, matches, p;
while (cin >> players >> matches) {
int counter = 0;
for (int i = 0; i < players; i++) {
bool scored = true;
for (int j = 0; j < matches; j++) {
cin >> p;... | 16.037037 | 64 | 0.56351 | LeandroTk |
9b8245efdb7e9da180d5eab0976e5c7db2a2d9b3 | 1,903 | cpp | C++ | example-Sprite/src/CustomSpriteA.cpp | selflash/ofxSelflash | 087a263b2d4de970edd75ecab2c2a48b7b58e62d | [
"MIT"
] | 19 | 2015-05-14T09:57:38.000Z | 2022-01-10T23:32:28.000Z | example-Sprite/src/CustomSpriteA.cpp | selflash/ofxSelflash | 087a263b2d4de970edd75ecab2c2a48b7b58e62d | [
"MIT"
] | 3 | 2015-08-04T09:07:26.000Z | 2018-01-18T07:14:35.000Z | example-Sprite/src/CustomSpriteA.cpp | selflash/ofxSelflash | 087a263b2d4de970edd75ecab2c2a48b7b58e62d | [
"MIT"
] | 1 | 2015-08-04T09:05:22.000Z | 2015-08-04T09:05:22.000Z | #include "CustomSpriteA.h"
//==============================================================
// Constructor / Destructor
//==============================================================
//--------------------------------------------------------------
CustomSpriteA::CustomSpriteA() {
ofLog() << "[CustomSpriteA]Cust... | 29.276923 | 64 | 0.257488 | selflash |
9b85c208fc178f98f0861559d9f07fda788d569f | 702 | cpp | C++ | TriviallyCopyable.cpp | haxpor/cpp_st | 43d1492266c6e01e6e243c834fba26eedf1ab9f3 | [
"MIT"
] | 2 | 2021-06-10T22:05:01.000Z | 2021-09-17T08:21:20.000Z | TriviallyCopyable.cpp | haxpor/cpp_st | 43d1492266c6e01e6e243c834fba26eedf1ab9f3 | [
"MIT"
] | null | null | null | TriviallyCopyable.cpp | haxpor/cpp_st | 43d1492266c6e01e6e243c834fba26eedf1ab9f3 | [
"MIT"
] | 1 | 2020-02-25T04:26:52.000Z | 2020-02-25T04:26:52.000Z | /**
* Testbed on checking whether std::vector<scalar-type> is trivially copyable or not via
* type traits.
*
* Read more about trivially copyable at Notes section in https://en.cppreference.com/w/cpp/types/is_trivially_copyable
*/
#include <type_traits>
#include <iostream>
#include <vector>
std::vector<unsigned i... | 30.521739 | 119 | 0.702279 | haxpor |
9b8833ba7e7bdfcedd0db0682b215621dc48e04b | 14,489 | cpp | C++ | src/gtirb_pprinter/AArch64PrettyPrinter.cpp | binrats/gtirb-pprinter | 864640a62fe41068a80e0ef295da9d0522402aab | [
"MIT"
] | null | null | null | src/gtirb_pprinter/AArch64PrettyPrinter.cpp | binrats/gtirb-pprinter | 864640a62fe41068a80e0ef295da9d0522402aab | [
"MIT"
] | null | null | null | src/gtirb_pprinter/AArch64PrettyPrinter.cpp | binrats/gtirb-pprinter | 864640a62fe41068a80e0ef295da9d0522402aab | [
"MIT"
] | null | null | null | //===- AArch64PrettyPrinter.cpp ---------------------------------*- C++ -*-===//
//
// Copyright (c) 2020, The Binrat Developers.
//
// This code is licensed under the GNU Affero General Public License
// as published by the Free Software Foundation, either version 3 of
// the License, or (at your option) any later... | 30.697034 | 139 | 0.549934 | binrats |
9b8a17ad719aea690882161969571456622fe051 | 864 | cpp | C++ | microsoft/15.cpp | 19yetnoob/-6Companies30days | 93f8dc6370cae7a8907d02b3ac8de610b73b8d9f | [
"MIT"
] | null | null | null | microsoft/15.cpp | 19yetnoob/-6Companies30days | 93f8dc6370cae7a8907d02b3ac8de610b73b8d9f | [
"MIT"
] | null | null | null | microsoft/15.cpp | 19yetnoob/-6Companies30days | 93f8dc6370cae7a8907d02b3ac8de610b73b8d9f | [
"MIT"
] | null | null | null | void dfs(int node,set<int>s[],vector<int>&visit,string &ans){
visit[node]=1;
for(auto a:s[node]){
if(visit[a]==-1)
dfs(a,s,visit,ans);
}
ans=(char)('a'+node)+ans;
}
string findOrder(string dict[], int N, int K) {
set<int>v[26];
for(... | 27.870968 | 62 | 0.359954 | 19yetnoob |
9b8b881113ff6ca95474e985ffbb0bc2d3d5d058 | 11,401 | cpp | C++ | software/arduino-1.8.13/portable/sketchbook/libraries/UArmForArduino/src/uArmController.cpp | abstractguy/TSO_project | 1130e6fb081d1486ff15339a9757c46a927a2965 | [
"BSD-2-Clause"
] | 1 | 2021-06-06T14:12:32.000Z | 2021-06-06T14:12:32.000Z | software/arduino-1.8.13/portable/sketchbook/libraries/UArmForArduino/src/uArmController.cpp | abstractguy/TSO_project | 1130e6fb081d1486ff15339a9757c46a927a2965 | [
"BSD-2-Clause"
] | 6 | 2021-04-06T12:35:34.000Z | 2022-03-12T00:58:16.000Z | software/arduino-1.8.13/portable/sketchbook/libraries/UArmForArduino/src/uArmController.cpp | abstractguy/TSO_project | 1130e6fb081d1486ff15339a9757c46a927a2965 | [
"BSD-2-Clause"
] | 2 | 2020-03-05T00:09:48.000Z | 2021-06-03T20:06:03.000Z | /**
******************************************************************************
* @file uArmController.cpp
* @author David.Long
* @email xiaokun.long@ufactory.cc
* @date 2016-09-28
* @license GNU
* copyright(c) 2016 UFactory Team. All right reserved
* @modified Samuel Duclos
**********************... | 31.321429 | 189 | 0.716165 | abstractguy |
9b8d1d760d9debbb2924fe84ff2422e54e6024c1 | 10,417 | cpp | C++ | app/src/main/cpp/Polyhedrons/TestCube.cpp | er-gv/ad-GLES-screensaver-suit | 0cf20431187db0c5601cfecf782b86559c91d167 | [
"Apache-2.0"
] | null | null | null | app/src/main/cpp/Polyhedrons/TestCube.cpp | er-gv/ad-GLES-screensaver-suit | 0cf20431187db0c5601cfecf782b86559c91d167 | [
"Apache-2.0"
] | null | null | null | app/src/main/cpp/Polyhedrons/TestCube.cpp | er-gv/ad-GLES-screensaver-suit | 0cf20431187db0c5601cfecf782b86559c91d167 | [
"Apache-2.0"
] | null | null | null | //
// Created by Erez on 15/05/20.
//
#include "TestCube.h"
#include "../graphics/GLUtils.h"
#include <glm/glm.hpp>
#include <glm/vec3.hpp>
#include <glm/mat4x4.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <android/log.h>
#include <GLES3/gl3.h>
#define LOG_TAG "TesterCubs"
#... | 30.548387 | 119 | 0.623116 | er-gv |
9b8fe593b7c252f51a2afe8fca6f8835d8851af0 | 9,551 | cpp | C++ | src/Task.cpp | tehilinski/MTBMPI | 5d8fa590c6708c6ef412c6d2959f04e125f2d9e0 | [
"Apache-2.0"
] | null | null | null | src/Task.cpp | tehilinski/MTBMPI | 5d8fa590c6708c6ef412c6d2959f04e125f2d9e0 | [
"Apache-2.0"
] | null | null | null | src/Task.cpp | tehilinski/MTBMPI | 5d8fa590c6708c6ef412c6d2959f04e125f2d9e0 | [
"Apache-2.0"
] | null | null | null | /*------------------------------------------------------------------------------------------------------------
file Task.cpp
class mtbmpi::Task
brief Class to control a single concurrent task.
details
Tasks are created by the TaskFactory and owns
a work task object as a TaskAdapter.
The work tasks are derived... | 23.8775 | 110 | 0.597424 | tehilinski |
9b91494bfc8e3d744f2c88529dcbe3779ce83d77 | 4,158 | cpp | C++ | ChangeJournal/VolumeOptions.cpp | ambray/Ntfs | c610315b007d0d0d1666d878e4f9c955deb86077 | [
"MIT"
] | 20 | 2016-02-04T12:23:39.000Z | 2021-12-30T04:17:49.000Z | ChangeJournal/VolumeOptions.cpp | c3358/Ntfs | c610315b007d0d0d1666d878e4f9c955deb86077 | [
"MIT"
] | null | null | null | ChangeJournal/VolumeOptions.cpp | c3358/Ntfs | c610315b007d0d0d1666d878e4f9c955deb86077 | [
"MIT"
] | 6 | 2015-07-15T04:29:07.000Z | 2020-12-21T22:35:17.000Z | #include "VolumeOptions.hpp"
ntfs::VolOps::VolOps(std::shared_ptr<void> volHandle) : vhandle(volHandle)
{
}
void ntfs::VolOps::setVolHandle(std::shared_ptr<void> vh)
{
if(vhandle)
vhandle.reset();
vhandle = vh;
}
std::shared_ptr<void> ntfs::VolOps::getVolHandle()
{
return vhandle;
}
std::tuple<std::string, s... | 30.573529 | 142 | 0.746994 | ambray |
9b9527084fade5933b613150bacd7da8f99aed7b | 949 | hpp | C++ | include/actl/operation/scalar/comparison/less.hpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | 17 | 2018-08-22T06:48:20.000Z | 2022-02-22T21:20:09.000Z | include/actl/operation/scalar/comparison/less.hpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | null | null | null | include/actl/operation/scalar/comparison/less.hpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | null | null | null | // Copyright 2020 Oleksandr Bacherikov.
//
// Distributed under the Boost Software License, Version 1.0
// (see accompanying file LICENSE.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#pragma once
#include <actl/operation/scalar/scalar_operation.hpp>
namespace ac {
namespace scalar {
struct less_f : s... | 21.088889 | 60 | 0.702845 | AlCash07 |
9b9717d14bc6673e4d7bb284cfc1bba887fae73b | 751 | cpp | C++ | examples/cpp/operator/integer.cpp | airgiser/ucb | d03e62a17f35a9183ed36662352f603f0f673194 | [
"MIT"
] | 1 | 2022-01-08T14:59:44.000Z | 2022-01-08T14:59:44.000Z | examples/cpp/operator/integer.cpp | airgiser/just-for-fun | d03e62a17f35a9183ed36662352f603f0f673194 | [
"MIT"
] | null | null | null | examples/cpp/operator/integer.cpp | airgiser/just-for-fun | d03e62a17f35a9183ed36662352f603f0f673194 | [
"MIT"
] | null | null | null | /*
* Copyright (c) airfox 2012.
*
* \brief Overload operators
*/
#include "integer.h"
Integer::Integer(int val) : m_val(val)
{
}
const Integer &operator+(const Integer &i)
{
return i;
}
const Integer operator-(const Integer &i)
{
return Integer(-i.m_val);
}
const Integer operator~(const Integer &i)
{
... | 13.175439 | 42 | 0.623169 | airgiser |
9b9a11328c68287403d1e94cdd736ba46ee725d6 | 457 | hh | C++ | userFiles/ctrl/body/articulations/specific_art/Roll_Shoulder_Art.hh | mharding01/augmented-neuromuscular-RT-running | 7e1ef00d3fdf9cfa9d59fc4f3a6a0e6dd792a834 | [
"MIT"
] | null | null | null | userFiles/ctrl/body/articulations/specific_art/Roll_Shoulder_Art.hh | mharding01/augmented-neuromuscular-RT-running | 7e1ef00d3fdf9cfa9d59fc4f3a6a0e6dd792a834 | [
"MIT"
] | null | null | null | userFiles/ctrl/body/articulations/specific_art/Roll_Shoulder_Art.hh | mharding01/augmented-neuromuscular-RT-running | 7e1ef00d3fdf9cfa9d59fc4f3a6a0e6dd792a834 | [
"MIT"
] | null | null | null | /*!
* \author Nicolas Van der Noot
* \file Roll_Shoulder_Art.hh
* \brief Roll_Shoulder_Art class
*/
#ifndef _ROLL_SHOULDER_ART_HH_
#define _ROLL_SHOULDER_ART_HH_
#include "Articulation.hh"
/*! \brief Roll foot articulation
*/
class Roll_Shoulder_Art : public Articulation
{
public:
Roll_Shoulder_Art(CtrlInpu... | 19.041667 | 86 | 0.761488 | mharding01 |
9b9ad6d38e874528617dd5edf39aeb0e92fe366b | 4,443 | cxx | C++ | ITS/ITSbase/AliITSdigitSSD.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | ITS/ITSbase/AliITSdigitSSD.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | ITS/ITSbase/AliITSdigitSSD.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 2004-2006, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 38.634783 | 79 | 0.597569 | AllaMaevskaya |
9b9afd88d914d2cadc0eb9f5808fba8bf1ca90af | 7,892 | cpp | C++ | libs/fastflow/tests/test_dotprod_parfor.cpp | GMAP/NPB-CPP | 2f77a1bce83c4efda56c4bafb555bcf9abe85dd2 | [
"MIT"
] | 11 | 2020-12-16T22:44:08.000Z | 2022-03-30T00:52:58.000Z | libs/fastflow/tests/test_dotprod_parfor.cpp | GMAP/NPB-CPP | 2f77a1bce83c4efda56c4bafb555bcf9abe85dd2 | [
"MIT"
] | 1 | 2021-04-01T09:07:52.000Z | 2021-07-21T22:10:07.000Z | libs/fastflow/tests/test_dotprod_parfor.cpp | GMAP/NPB-CPP | 2f77a1bce83c4efda56c4bafb555bcf9abe85dd2 | [
"MIT"
] | 3 | 2020-12-21T18:47:43.000Z | 2021-11-20T19:48:45.000Z | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* ***************************************************************************
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by ... | 36.368664 | 155 | 0.533198 | GMAP |
9b9b04e6df390c202915d081bc3ff390efa01033 | 2,072 | cpp | C++ | MPAGSCipher/CaesarCipher.cpp | tomlatham/mpags-day-3-JamesDownsLab | 1bd5cddd53ec798440aec77978668f5056bd3d18 | [
"MIT"
] | null | null | null | MPAGSCipher/CaesarCipher.cpp | tomlatham/mpags-day-3-JamesDownsLab | 1bd5cddd53ec798440aec77978668f5056bd3d18 | [
"MIT"
] | 1 | 2019-11-06T14:17:01.000Z | 2019-11-06T14:17:01.000Z | MPAGSCipher/CaesarCipher.cpp | tomlatham/mpags-day-3-JamesDownsLab | 1bd5cddd53ec798440aec77978668f5056bd3d18 | [
"MIT"
] | 1 | 2019-11-06T11:39:22.000Z | 2019-11-06T11:39:22.000Z | //
// Created by james on 01/11/2019.
//
#include "CaesarCipher.hpp"
#include <iostream>
#include <string>
#include <vector>
CaesarCipher::CaesarCipher(const size_t key): key_{key} {}
CaesarCipher::CaesarCipher(const std::string& key): key_{0} {
// check to see whether string can be parsed as a number
... | 31.393939 | 151 | 0.585907 | tomlatham |
9b9d1a0a21a98b3890885c4c9c21988e2227b7dc | 5,272 | cpp | C++ | mrvizifymain.cpp | dpai/Vizify | e10ea233fc923164f281777ceb4bcd528c617b8b | [
"Apache-2.0"
] | 6 | 2020-05-19T07:41:59.000Z | 2022-03-27T20:31:35.000Z | mrvizifymain.cpp | dpai/Vizify | e10ea233fc923164f281777ceb4bcd528c617b8b | [
"Apache-2.0"
] | null | null | null | mrvizifymain.cpp | dpai/Vizify | e10ea233fc923164f281777ceb4bcd528c617b8b | [
"Apache-2.0"
] | null | null | null | #include "mrvizifymain.h"
#include "ui_mrvizifymain.h"
#include "citk.h"
#include "cvtkwidget.h"
#include "cmrvizthreshold.h"
#include "MrVizifyConfig.h"
//#include "compareimageui.h"
#ifdef USE_CIMGPROC
#include "CImgProcWidget.h"
#endif
#ifdef USE_CIMGCONV
#include "ConverterWidget.h"
#endif
#ifdef... | 23.22467 | 112 | 0.662557 | dpai |
9b9e9d3e6bc01f9e16184354f5272b9a263ae466 | 1,065 | hpp | C++ | src/JSON/JSONSerialiser.hpp | ilyaskurikhin/beesim | f30a8fad0d784074400e48055d69823717cae623 | [
"DOC"
] | null | null | null | src/JSON/JSONSerialiser.hpp | ilyaskurikhin/beesim | f30a8fad0d784074400e48055d69823717cae623 | [
"DOC"
] | null | null | null | src/JSON/JSONSerialiser.hpp | ilyaskurikhin/beesim | f30a8fad0d784074400e48055d69823717cae623 | [
"DOC"
] | null | null | null | /*
* prjsv 2015, 2016
* 2014, 2016
* Marco Antognini
*/
#ifndef INFOSV_JSONSERIALISER_HPP
#define INFOSV_JSONSERIALISER_HPP
#include <JSON/JSON.hpp>
#include <stdexcept>
#include <string>
namespace j
{
class BadPayload : public std::runtime_error
{
public:
BadPayload(std::string const& msg);
};
class NoSu... | 22.1875 | 68 | 0.748357 | ilyaskurikhin |
9b9f91932f7933f31ad51495f9796c4c7e1a3c1a | 1,538 | cpp | C++ | src/sound/load_music.cpp | Damdoshi/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 38 | 2016-07-30T09:35:19.000Z | 2022-03-04T10:13:48.000Z | src/sound/load_music.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 15 | 2017-02-12T19:20:52.000Z | 2021-06-09T09:30:52.000Z | src/sound/load_music.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 12 | 2016-10-06T09:06:59.000Z | 2022-03-04T10:14:00.000Z | // Jason Brillante "Damdoshi"
// Hanged Bunny Studio 2014-2018
//
// Bibliotheque Lapin
#include <string.h>
#include "lapin_private.h"
#define PATTERN "%s -> %p"
t_bunny_music *bunny_read_music(t_bunny_configuration *cnf)
{
t_bunny_sound *pc = NULL;
if (bunny_set_sound_attribute(NULL, &pc, &cnf, true) ==... | 23.30303 | 93 | 0.659948 | Damdoshi |
9ba04a333b68ffc1f035a2a6455d3a1c9e7b685c | 1,500 | cpp | C++ | Source/PyramidMath/ExplorerMovementComponent.cpp | andriuchap/summer-ue4jam-2019 | 125a67cffe6b98d5d6a04b762a07e2c75256d86b | [
"Apache-2.0"
] | null | null | null | Source/PyramidMath/ExplorerMovementComponent.cpp | andriuchap/summer-ue4jam-2019 | 125a67cffe6b98d5d6a04b762a07e2c75256d86b | [
"Apache-2.0"
] | null | null | null | Source/PyramidMath/ExplorerMovementComponent.cpp | andriuchap/summer-ue4jam-2019 | 125a67cffe6b98d5d6a04b762a07e2c75256d86b | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "ExplorerMovementComponent.h"
#include "GameFramework/PhysicsVolume.h"
UExplorerMovementComponent::UExplorerMovementComponent(const FObjectInitializer &ObjInitializer)
{
FallingGravityScale = 2.0F;
FallingThreshold = 100.0F;
}
... | 30.612245 | 130 | 0.76 | andriuchap |
9ba04e7228cd06789745eb3286b692d96b630416 | 281 | cpp | C++ | CSES-Problemset/sorting and searching/distinct_numbers.cpp | rranjan14/cp-solutions | 9614508efbed1e4ee8b970b5eed535d782a5783f | [
"MIT"
] | null | null | null | CSES-Problemset/sorting and searching/distinct_numbers.cpp | rranjan14/cp-solutions | 9614508efbed1e4ee8b970b5eed535d782a5783f | [
"MIT"
] | null | null | null | CSES-Problemset/sorting and searching/distinct_numbers.cpp | rranjan14/cp-solutions | 9614508efbed1e4ee8b970b5eed535d782a5783f | [
"MIT"
] | null | null | null | #include <iostream>
#include <set>
#define lli long long int
using namespace std;
int main()
{
lli n, x;
cin >> n;
set<int, greater<int>> s;
for (lli i = 0; i < n; i++)
{
cin >> x;
s.insert(x);
}
cout << s.size() << "\n";
return 0;
} | 16.529412 | 31 | 0.480427 | rranjan14 |
9ba227d5b892261ae49a495c23d4152e89d695a5 | 4,976 | hpp | C++ | core/boards/stm32l073xx/include/dma.hpp | azuwey/hexos | 746901a86d664c44c03cd46bb2370975f6a11542 | [
"MIT"
] | null | null | null | core/boards/stm32l073xx/include/dma.hpp | azuwey/hexos | 746901a86d664c44c03cd46bb2370975f6a11542 | [
"MIT"
] | null | null | null | core/boards/stm32l073xx/include/dma.hpp | azuwey/hexos | 746901a86d664c44c03cd46bb2370975f6a11542 | [
"MIT"
] | null | null | null | #ifndef __STM32L073XX_DMA
#define __STM32L073XX_DMA
#include "common_types.hpp"
namespace DMA {
namespace ADDRESSES {
const inline t_uint32 BASE_ADDRESS = ((t_uint32)0x40020000U);
} // namespace ADDRESSES
namespace TYPEDEFS {
typedef union {
struct __attribute__((packed)) {
__R t_uint32 GIF1 : 0x01U;
... | 26.897297 | 93 | 0.610732 | azuwey |
9ba4986fe67d3ad1ea2b0c0559932474b9320384 | 2,125 | cpp | C++ | geode/value/Compute.cpp | jjqcat/geode | 157cc904c113cc5e29a1ffe7c091a83b8ec2cf8e | [
"BSD-3-Clause"
] | 75 | 2015-02-08T22:04:31.000Z | 2022-02-26T14:31:43.000Z | geode/value/Compute.cpp | bantamtools/geode | d906f1230b14953b68af63aeec2f7b0418d5fdfd | [
"BSD-3-Clause"
] | 15 | 2015-01-08T15:11:38.000Z | 2021-09-05T13:27:22.000Z | geode/value/Compute.cpp | bantamtools/geode | d906f1230b14953b68af63aeec2f7b0418d5fdfd | [
"BSD-3-Clause"
] | 22 | 2015-03-11T16:43:13.000Z | 2021-02-15T09:37:51.000Z | #include <geode/value/Compute.h>
#include <geode/python/from_python.h>
#include <geode/python/Ptr.h>
#include <geode/python/Class.h>
#include <geode/utility/format.h>
namespace geode {
#ifdef GEODE_PYTHON
static PyObject* empty_tuple = 0;
namespace {
class CachePython : public Value<Ptr<>>,public Action {
public:
G... | 22.368421 | 79 | 0.696471 | jjqcat |
9ba729f79b09d9da86be71e67339b928a0abb3c9 | 10,229 | cpp | C++ | cVRP/Individual.cpp | Frown00/evolutionary-algorithm | 1ae279d904910be70c473c0ec6a9b9dc1395190e | [
"MIT"
] | null | null | null | cVRP/Individual.cpp | Frown00/evolutionary-algorithm | 1ae279d904910be70c473c0ec6a9b9dc1395190e | [
"MIT"
] | null | null | null | cVRP/Individual.cpp | Frown00/evolutionary-algorithm | 1ae279d904910be70c473c0ec6a9b9dc1395190e | [
"MIT"
] | null | null | null | #include "Individual.h"
#include "utils.cpp"
Individual::Individual(int t_dimension) {
m_dimension = t_dimension;
m_fitness = -1;
}
Individual::Individual(Individual* other)
{
m_genotype = other->m_genotype;
m_fitness = other->m_fitness;
m_dimension = other->m_dimension;
m_genotype_text = other->m_genotyp... | 30.810241 | 111 | 0.655196 | Frown00 |
9ba7ebc605fc3a841bc949e22916bb82cca3a365 | 2,081 | cpp | C++ | tests/msg_feed_id/test.cpp | morgenm/PMC-Game | ae09b3df200bd1cf47bcf8888939112e5ac42d38 | [
"MIT"
] | null | null | null | tests/msg_feed_id/test.cpp | morgenm/PMC-Game | ae09b3df200bd1cf47bcf8888939112e5ac42d38 | [
"MIT"
] | null | null | null | tests/msg_feed_id/test.cpp | morgenm/PMC-Game | ae09b3df200bd1cf47bcf8888939112e5ac42d38 | [
"MIT"
] | null | null | null | #include "msg_sys/msg_feed_id.h"
#include <iostream>
void TryEquals() {
MessageFeedID lhs;
MessageFeedID rhs;
rhs.NewID();
if( lhs == rhs ) {
std::cout << "MessageFeedID TryEquals Bad Test: FAILED!\n";
}
else {
std::cout << "MessageFeedID TryEquals Bad Test: Passed.\n";
}
... | 21.905263 | 73 | 0.583373 | morgenm |
9baa88af4a23983b1d79e18b1992c91ec4dc3c21 | 1,207 | hh | C++ | libs/core/include/singleton.hh | no111u3/laptop_control | 92f25ef61511dfacd5edeff3dedf06f31a347a9f | [
"Apache-2.0"
] | 1 | 2019-04-30T13:46:51.000Z | 2019-04-30T13:46:51.000Z | libs/core/include/singleton.hh | no111u3/laptop_control | 92f25ef61511dfacd5edeff3dedf06f31a347a9f | [
"Apache-2.0"
] | null | null | null | libs/core/include/singleton.hh | no111u3/laptop_control | 92f25ef61511dfacd5edeff3dedf06f31a347a9f | [
"Apache-2.0"
] | null | null | null | /**
Copyright 2019 Boris Vinogradov <no111u3@gmail.com>
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 ... | 28.738095 | 75 | 0.651201 | no111u3 |
9bb32ea99deda845c13b99b27305e1a56d6f0444 | 1,196 | hxx | C++ | ImageSharpOpenJpegNative/src/openjpeg.mct.hxx | cinderblocks/ImageSharp.OpenJpeg | bf5c976a6dbfa0d2666be566c845a7410440cea2 | [
"Apache-2.0"
] | null | null | null | ImageSharpOpenJpegNative/src/openjpeg.mct.hxx | cinderblocks/ImageSharp.OpenJpeg | bf5c976a6dbfa0d2666be566c845a7410440cea2 | [
"Apache-2.0"
] | null | null | null | ImageSharpOpenJpegNative/src/openjpeg.mct.hxx | cinderblocks/ImageSharp.OpenJpeg | bf5c976a6dbfa0d2666be566c845a7410440cea2 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2022 Sjofn LLC. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 38.580645 | 90 | 0.698997 | cinderblocks |
9bb6ef5eb90e150ed1c7d1a90646c8202a54213e | 14,412 | cpp | C++ | project/src/bytecode_vm/vm.cpp | Jeff-Mott-OR/cpplox | 6b2b771c50fd3d0121283d1f2e54860e1d263bca | [
"MIT"
] | 57 | 2018-04-18T11:06:31.000Z | 2022-01-26T22:15:01.000Z | project/src/bytecode_vm/vm.cpp | Jeff-Mott-OR/cpplox | 6b2b771c50fd3d0121283d1f2e54860e1d263bca | [
"MIT"
] | 24 | 2018-04-20T04:24:39.000Z | 2018-11-13T06:11:37.000Z | project/src/bytecode_vm/vm.cpp | Jeff-Mott-OR/cpplox | 6b2b771c50fd3d0121283d1f2e54860e1d263bca | [
"MIT"
] | 6 | 2018-04-19T03:25:35.000Z | 2020-02-20T03:22:52.000Z | #include "vm.hpp"
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <iostream>
#include <utility>
#include <gsl/gsl_util>
#include "compiler.hpp"
#include "debug.hpp"
using std::chrono::duration_cast;
using std::chrono::seconds;
using std::chrono::system_clock;
using std::cout;
using std::move;
using... | 33.594406 | 136 | 0.490425 | Jeff-Mott-OR |
9bb8bc9b7e857f3e82af6939d8ca22a11a54b4d9 | 2,147 | hpp | C++ | search.hpp | dasapon/cappuccino | e198a495d8061b01ab34eb202415db2b28bce619 | [
"MIT"
] | 2 | 2018-02-14T15:10:41.000Z | 2018-02-19T23:46:45.000Z | search.hpp | dasapon/cappuccino | e198a495d8061b01ab34eb202415db2b28bce619 | [
"MIT"
] | null | null | null | search.hpp | dasapon/cappuccino | e198a495d8061b01ab34eb202415db2b28bce619 | [
"MIT"
] | null | null | null | #pragma once
#include "position.hpp"
#include "state.hpp"
#include "hash_table.hpp"
#include "time.hpp"
constexpr int max_ply = 128;
using PV = sheena::Array<Move, max_ply>;
enum {
RPSDepth = 4 * depth_scale,
};
class KillerMove : public sheena::Array<Move, 2>{
public:
void update(Move m){
if((*this)[0] != m){... | 23.855556 | 98 | 0.704704 | dasapon |
9bbc054ea09ab3a7ff30d0248cdf6e577f52a1f9 | 15,964 | hpp | C++ | examples/example_utils.hpp | ROCmMathLibrariesBot/hipCUB | 003a5b2b791dc01e88d0c0caaaf1de9ae53ad638 | [
"BSD-3-Clause"
] | 36 | 2019-05-14T09:27:57.000Z | 2022-03-03T09:19:11.000Z | examples/example_utils.hpp | ROCmMathLibrariesBot/hipCUB | 003a5b2b791dc01e88d0c0caaaf1de9ae53ad638 | [
"BSD-3-Clause"
] | 70 | 2019-05-06T23:07:53.000Z | 2022-03-17T08:24:22.000Z | examples/example_utils.hpp | ROCmMathLibrariesBot/hipCUB | 003a5b2b791dc01e88d0c0caaaf1de9ae53ad638 | [
"BSD-3-Clause"
] | 25 | 2019-05-03T19:45:13.000Z | 2022-03-31T08:14:38.000Z | #ifndef EXAMPLES_EXAMPLE_UTILS_HPP
#define EXAMPLES_EXAMPLE_UTILS_HPP
#include "mersenne.h"
#include <vector>
#include <sstream>
#include <iostream>
#include <hipcub/util_type.hpp>
#include <hipcub/util_allocator.hpp>
#include <hipcub/iterator/discard_output_iterator.hpp>
#define AssertEquals(a, b) if ((a) != (b)) { ... | 26.343234 | 120 | 0.502255 | ROCmMathLibrariesBot |