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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1e03dc884a7253fb4f979fff0ade588bf574bd4b | 7,292 | cxx | C++ | portaudio/bindings/cpp/source/portaudiocpp/System.cxx | gergocs/cpmpvoice | f438efcddf10ef3d3e0664eca5ace81367629235 | [
"Apache-2.0"
] | 393 | 2021-07-04T20:27:15.000Z | 2021-09-21T10:44:47.000Z | portaudio/bindings/cpp/source/portaudiocpp/System.cxx | gergocs/cpmpvoice | f438efcddf10ef3d3e0664eca5ace81367629235 | [
"Apache-2.0"
] | 41 | 2021-07-05T17:31:57.000Z | 2021-09-14T03:51:01.000Z | portaudio/bindings/cpp/source/portaudiocpp/System.cxx | gergocs/cpmpvoice | f438efcddf10ef3d3e0664eca5ace81367629235 | [
"Apache-2.0"
] | 32 | 2021-07-05T12:34:57.000Z | 2021-08-15T21:18:54.000Z | #include "portaudiocpp/System.hxx"
#include <cstddef>
#include <cassert>
#include "portaudiocpp/HostApi.hxx"
#include "portaudiocpp/Device.hxx"
#include "portaudiocpp/Stream.hxx"
#include "portaudiocpp/Exception.hxx"
#include "portaudiocpp/SystemHostApiIterator.hxx"
#include "portaudiocpp/SystemDeviceIterator.hxx"
n... | 23.675325 | 90 | 0.475453 | gergocs |
1e0516f8ddeaf90d4434c1e03eaf9fb150c014c7 | 8,298 | hh | C++ | libsrc/pylith/fekernels/DispVel.hh | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | null | null | null | libsrc/pylith/fekernels/DispVel.hh | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | null | null | null | libsrc/pylith/fekernels/DispVel.hh | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | null | null | null | /* -*- C++ -*-
*
* ----------------------------------------------------------------------
*
* Brad T. Aagaard, U.S. Geological Survey
* Charles A. Williams, GNS Science
* Matthew G. Knepley, University of Chicago
*
* This code was developed as part of the Computational Infrastructure
* for Geodynamics (http:*g... | 33.595142 | 97 | 0.532056 | Grant-Block |
1e065030a3efebd8d5ad4edf227539dd0751669c | 79,003 | cpp | C++ | emulator/src/devices/cpu/powerpc/ppccom.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/devices/cpu/powerpc/ppccom.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/devices/cpu/powerpc/ppccom.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Aaron Giles
/***************************************************************************
ppccom.c
Common PowerPC definitions and functions
***************************************************************************/
#include "emu.h"
#include "ppccom.h"
#include "... | 27.817958 | 250 | 0.611711 | rjw57 |
1e094e2118b8258d7b7588c3de488b00eea31286 | 248 | cc | C++ | tests/day12_tests.cc | LesnyRumcajs/advent-of-cpp-2015 | 3301f31fdcca3aeddae6691ce15b0eb712a7c867 | [
"MIT"
] | null | null | null | tests/day12_tests.cc | LesnyRumcajs/advent-of-cpp-2015 | 3301f31fdcca3aeddae6691ce15b0eb712a7c867 | [
"MIT"
] | null | null | null | tests/day12_tests.cc | LesnyRumcajs/advent-of-cpp-2015 | 3301f31fdcca3aeddae6691ce15b0eb712a7c867 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include "../src/day12.h"
TEST_CASE("Day12::part1", "[]") {
REQUIRE(6 == day12::sumAllNumbers("{\"a\":2,\"b\":4}"));
REQUIRE(3 == day12::sumAllNumbers("{\"a\":{\"b\":4},\"c\":-1}"));
} | 27.555556 | 69 | 0.564516 | LesnyRumcajs |
1f6117402c993c00fa7ca45af41be702e691c75e | 6,080 | cpp | C++ | examples/promps_hsmm_ball_viterbi.cpp | DiegoAE/BOSD | a7ce88462c64c540ba2922d16eb6f7eba8055b47 | [
"MIT"
] | 19 | 2019-05-03T05:31:43.000Z | 2022-01-08T18:14:31.000Z | examples/promps_hsmm_ball_viterbi.cpp | DiegoAE/BOSD | a7ce88462c64c540ba2922d16eb6f7eba8055b47 | [
"MIT"
] | 2 | 2019-02-14T15:29:34.000Z | 2020-06-04T10:14:54.000Z | examples/promps_hsmm_ball_viterbi.cpp | DiegoAE/BOSD | a7ce88462c64c540ba2922d16eb6f7eba8055b47 | [
"MIT"
] | 1 | 2019-07-01T07:44:09.000Z | 2019-07-01T07:44:09.000Z | #include <armadillo>
#include <boost/program_options.hpp>
#include <HSMM.hpp>
#include <json.hpp>
#include <ProMPs_emission.hpp>
using namespace arma;
using namespace hsmm;
using namespace robotics;
using namespace std;
using json = nlohmann::json;
namespace po = boost::program_options;
field<mat> fromMatToField(cons... | 38.974359 | 82 | 0.611678 | DiegoAE |
1f6454f565597e0119c7cd9f0cf864933bb9bc52 | 833 | cpp | C++ | 215-Kth-Largest-Element-in-an-Array/solution_test.cpp | johnhany/leetcode | 453a86ac16360e44893262e04f77fd350d1e80f2 | [
"Apache-2.0"
] | 3 | 2019-05-27T06:47:32.000Z | 2020-12-22T05:57:10.000Z | 215-Kth-Largest-Element-in-an-Array/solution_test.cpp | johnhany/leetcode | 453a86ac16360e44893262e04f77fd350d1e80f2 | [
"Apache-2.0"
] | null | null | null | 215-Kth-Largest-Element-in-an-Array/solution_test.cpp | johnhany/leetcode | 453a86ac16360e44893262e04f77fd350d1e80f2 | [
"Apache-2.0"
] | 5 | 2020-04-01T10:26:04.000Z | 2022-02-05T18:21:01.000Z | #define BOOST_TEST_MODULE SolutionTest
#include "solution.hpp"
//#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_SUITE(SolutionSuite)
BOOST_AUTO_TEST_CASE(PlainTest1)
{
vector<int> nums{3,2,1,5,6,4};
int k = 2;
int results = Solution().findKthLargest(nums, k);
int ex... | 19.372093 | 53 | 0.691477 | johnhany |
1f6509939218c9fbbc869ee57a6dfa41d37e8fd9 | 2,797 | cpp | C++ | 10-graphs-dfs/D-condensation.cpp | GimmeDanger/made-algo-2020-hw | 701db679a927f70ee5265ef35038e4a47daf52df | [
"MIT"
] | null | null | null | 10-graphs-dfs/D-condensation.cpp | GimmeDanger/made-algo-2020-hw | 701db679a927f70ee5265ef35038e4a47daf52df | [
"MIT"
] | null | null | null | 10-graphs-dfs/D-condensation.cpp | GimmeDanger/made-algo-2020-hw | 701db679a927f70ee5265ef35038e4a47daf52df | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define dbg 0
#if dbg
#define INPUT_SOURCE() ifstream cin("input.txt")
#else
#define INPUT_SOURCE()
#endif
#define FAST_IO() \
ios::sync_with_stdio(false); \
cout.tie(nullptr); \
cin.tie(nullptr)
using graph = vector<unordered_set<int>>;
/... | 22.198413 | 87 | 0.504469 | GimmeDanger |
1f6b282c287f4b512b2321af5a36faa2bb891294 | 9,097 | cpp | C++ | DrunkEngine/GameObject.cpp | MarcFly/Fly3D-Engine | e8da09a63c7c3d991b8f25c346798ee230593e78 | [
"Unlicense"
] | null | null | null | DrunkEngine/GameObject.cpp | MarcFly/Fly3D-Engine | e8da09a63c7c3d991b8f25c346798ee230593e78 | [
"Unlicense"
] | 3 | 2018-09-27T17:00:14.000Z | 2018-12-19T13:30:25.000Z | DrunkEngine/GameObject.cpp | MarcFly/Fly3D-Engine | e8da09a63c7c3d991b8f25c346798ee230593e78 | [
"Unlicense"
] | null | null | null | #include "GameObject.h"
#include "Application.h"
#include "ComponentMaterial.h"
#include "ComponentMesh.h"
#include "ComponentCamera.h"
#include "ResourceMesh.h"
#include "ComponentBillboard.h"
#include "ComponentSkeleton.h"
#include "ComponentAnimation.h"
// Creation of Root Node from a file
GameObject::GameObject()
... | 25.410615 | 119 | 0.68616 | MarcFly |
1f6d36c2e537f1d9ec41d98de0578c5e6520cc65 | 321 | cpp | C++ | src/ResLoader/data_mgr.cpp | wu1274704958/vulkan_demo | 545e00a1fae98e0ff179115887dfa7669b56ccde | [
"MIT"
] | null | null | null | src/ResLoader/data_mgr.cpp | wu1274704958/vulkan_demo | 545e00a1fae98e0ff179115887dfa7669b56ccde | [
"MIT"
] | null | null | null | src/ResLoader/data_mgr.cpp | wu1274704958/vulkan_demo | 545e00a1fae98e0ff179115887dfa7669b56ccde | [
"MIT"
] | 1 | 2021-12-27T08:40:07.000Z | 2021-12-27T08:40:07.000Z | #include <data_mgr.hpp>
#include <resource_mgr.hpp>
#include <log.hpp>
#include <sundry.hpp>
#include <serialization.hpp>
#include <assimp/scene.h>
#include <fileop.hpp>
using namespace dbg::literal;
//--------------------------------------------------------------------------------------------------------------------... | 29.181818 | 119 | 0.470405 | wu1274704958 |
1f7a927960bc887ab2d4ce231969c4fced9ede59 | 7,672 | cxx | C++ | main/dbaccess/source/ui/control/marktree.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/dbaccess/source/ui/control/marktree.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/dbaccess/source/ui/control/marktree.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07: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 y... | 31.442623 | 131 | 0.609489 | Grosskopf |
1f7b0bfdd5712791868cee25dc91ae687f6177ed | 5,023 | cpp | C++ | testing_environmen/testing_environmen/src/shadows/shadow.cpp | llGuy/gamedev | 16aa203934fd767926c58558e021630288556399 | [
"MIT"
] | null | null | null | testing_environmen/testing_environmen/src/shadows/shadow.cpp | llGuy/gamedev | 16aa203934fd767926c58558e021630288556399 | [
"MIT"
] | 4 | 2018-12-24T11:16:53.000Z | 2018-12-24T11:20:29.000Z | testing_environmen/testing_environmen/src/shadows/shadow.cpp | llGuy/gamedev | 16aa203934fd767926c58558e021630288556399 | [
"MIT"
] | null | null | null | /*#include "shadow.h"
auto shadow_handler::get_projection(void) -> glm::mat4 & { return projection_matrix; }
auto shadow_handler::get_depth_map(void) -> texture & { return depth_map; }
auto shadow_handler::get_fbo(void) -> framebuffer & { return depth_fbo; }
auto shadow_handler::get_shaders(void) -> program & { return... | 39.865079 | 153 | 0.724069 | llGuy |
1f7d8456c5838e79e62387209e49b4c930680972 | 8,434 | cpp | C++ | examples/ex30p.cpp | ajithvallabai/mfem | 5920fbf645f328c29a9d6489f2474d989f808451 | [
"BSD-3-Clause"
] | null | null | null | examples/ex30p.cpp | ajithvallabai/mfem | 5920fbf645f328c29a9d6489f2474d989f808451 | [
"BSD-3-Clause"
] | null | null | null | examples/ex30p.cpp | ajithvallabai/mfem | 5920fbf645f328c29a9d6489f2474d989f808451 | [
"BSD-3-Clause"
] | 1 | 2019-07-09T20:41:56.000Z | 2019-07-09T20:41:56.000Z | // MFEM Example 30 - Parallel Version
//
// Compile with: make ex30p
//
// Sample runs: mpirun -np 4 ex30p -m ../data/square-disc.mesh -o 1
// mpirun -np 4 ex30p -m ../data/square-disc.mesh -o 2
// mpirun -np 4 ex30p -m ../data/square-disc.mesh -o 2 -me 1e3
// ... | 34.85124 | 81 | 0.600901 | ajithvallabai |
1f84165a95592b9dcb4054bcf07a11a16389cc2b | 3,590 | cpp | C++ | src/scenes/SFPC/yosukeJohnWhitneyMatrix/yosukeJohnWhitneyMatrix.cpp | roymacdonald/ReCoded | 3bcb3d579cdd17381e54a508a1e4ef9e3d5bc4f1 | [
"MIT"
] | 64 | 2017-06-12T19:24:08.000Z | 2022-01-27T19:14:48.000Z | src/scenes/yosukeJohnWhitneyMatrix/yosukeJohnWhitneyMatrix.cpp | colaplate/recoded | 934e1184c7502d192435c406e56b8a2106e9b6b4 | [
"MIT"
] | 10 | 2017-06-13T10:38:39.000Z | 2017-11-15T11:21:05.000Z | src/scenes/yosukeJohnWhitneyMatrix/yosukeJohnWhitneyMatrix.cpp | colaplate/recoded | 934e1184c7502d192435c406e56b8a2106e9b6b4 | [
"MIT"
] | 24 | 2017-06-11T08:14:46.000Z | 2020-04-16T20:28:46.000Z |
#include "yosukeJohnWhitneyMatrix.h"
void yosukeJohnWhitneyMatrix::setup(){
// setup pramaters
numOfGroup.set("number-of-group", 4, 1, MAXNUMOFGROPU);
parameters.add(numOfGroup);
numOfBall.set("number-of-ball", 6, 1, MAXNUMOFBALL);
parameters.add(numOfBall);
radius.set("rotation-radius", 150, 1... | 29.916667 | 92 | 0.479109 | roymacdonald |
1f84cb7fd11acc3baba1edb3272eb6c8a9146224 | 740 | hpp | C++ | libs/renderer/include/Renderer.hpp | Sharpyfile/WARdrobe | 7842d486f65c7a045771f9ef78c0655eda2d346a | [
"DOC"
] | null | null | null | libs/renderer/include/Renderer.hpp | Sharpyfile/WARdrobe | 7842d486f65c7a045771f9ef78c0655eda2d346a | [
"DOC"
] | null | null | null | libs/renderer/include/Renderer.hpp | Sharpyfile/WARdrobe | 7842d486f65c7a045771f9ef78c0655eda2d346a | [
"DOC"
] | 1 | 2021-03-21T16:52:22.000Z | 2021-03-21T16:52:22.000Z | #pragma once
#include "Camera.hpp"
#include "Model.hpp"
#include "Shader.hpp"
#include "Skybox.hpp"
#include "glm/gtc/type_ptr.hpp"
#include "glm/glm.hpp"
class Renderer
{
public:
Renderer();
Renderer(unsigned int);
Renderer(bool, float[], int, unsigned int[], int, std::string);
void
Draw(Shader*, Model*, C... | 25.517241 | 106 | 0.674324 | Sharpyfile |
1f87813d03db483268f6c0b4feff429c8da9dc29 | 7,651 | cpp | C++ | glass/src/libnt/native/cpp/NTField2D.cpp | bvisness/allwpilib | 549af990072a1ed0c1649c34dc6e1a5cc5f01bd1 | [
"BSD-3-Clause"
] | null | null | null | glass/src/libnt/native/cpp/NTField2D.cpp | bvisness/allwpilib | 549af990072a1ed0c1649c34dc6e1a5cc5f01bd1 | [
"BSD-3-Clause"
] | null | null | null | glass/src/libnt/native/cpp/NTField2D.cpp | bvisness/allwpilib | 549af990072a1ed0c1649c34dc6e1a5cc5f01bd1 | [
"BSD-3-Clause"
] | null | null | null | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 32.2827 | 80 | 0.597177 | bvisness |
1f87e3622d8dda2ecceae07634359ee921097ad3 | 52 | cc | C++ | bazel/examples/cc__linking_mock_vs_real/a-real.cc | laszlocsomor/projects | fb0f8b62046c0c420dc409d2e44c10728028ea1a | [
"Apache-2.0"
] | 2 | 2018-02-21T13:51:38.000Z | 2019-09-10T19:35:15.000Z | bazel/examples/cc__linking_mock_vs_real/a-real.cc | laszlocsomor/projects | fb0f8b62046c0c420dc409d2e44c10728028ea1a | [
"Apache-2.0"
] | null | null | null | bazel/examples/cc__linking_mock_vs_real/a-real.cc | laszlocsomor/projects | fb0f8b62046c0c420dc409d2e44c10728028ea1a | [
"Apache-2.0"
] | 2 | 2018-08-14T11:31:21.000Z | 2020-01-10T15:47:49.000Z | #include "a.h"
int foo(int x) {
return x * 2;
}
| 8.666667 | 16 | 0.519231 | laszlocsomor |
1f8c75b508745d5ae510a58cbd68f0557da2a304 | 11,506 | cpp | C++ | source/RenderSystem.cpp | theacodes/PhoenixCore | 3953384f9cd84c5775dd23bd60b25ac8d6b6405b | [
"Zlib",
"MIT"
] | 2 | 2019-09-09T08:56:18.000Z | 2020-12-28T03:52:54.000Z | source/RenderSystem.cpp | theacodes/PhoenixCore | 3953384f9cd84c5775dd23bd60b25ac8d6b6405b | [
"Zlib",
"MIT"
] | null | null | null | source/RenderSystem.cpp | theacodes/PhoenixCore | 3953384f9cd84c5775dd23bd60b25ac8d6b6405b | [
"Zlib",
"MIT"
] | 1 | 2022-01-03T23:27:07.000Z | 2022-01-03T23:27:07.000Z | /*
Copyright (c) 2010, Jonathan Wayne Parrott
Please see the license.txt file included with this source
distribution for more information.
*/
#include "config.h"
#include "glew/GL/glew.h"
#include "RenderSystem.h"
#include "DroidSansMono.h"
#include "BitmapFont.h"
#include "BMFontLoader.h"
#include "... | 26.572748 | 132 | 0.557274 | theacodes |
1f9063857c2c84d167630d091341e8270899d63c | 1,820 | cpp | C++ | data_structures/Tree/c++/treap.cpp | CarbonDDR/al-go-rithms | 8e65affbe812931b7dde0e2933eb06c0f44b4130 | [
"CC0-1.0"
] | 1,253 | 2017-06-06T07:19:25.000Z | 2022-03-30T17:07:58.000Z | data_structures/Tree/c++/treap.cpp | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 554 | 2017-09-29T18:56:01.000Z | 2022-02-21T15:48:13.000Z | data_structures/Tree/c++/treap.cpp | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 2,226 | 2017-09-29T19:59:59.000Z | 2022-03-25T08:59:55.000Z | #include <cstdlib>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
// Treap has 2 main operations that are O(log(n)):
// - split(t, k) -> split t into 2 trees, one with all keys <= k, the other with the rest
// - merge(t1, t2) -> merge 2 trees where keys of t1 are smalle... | 23.037975 | 97 | 0.576923 | CarbonDDR |
1f90d9fb6690212280330dcb10894212c38a3465 | 4,338 | cpp | C++ | src/algorithm/IsomorphSpace.cpp | ehzawad/HyperGraphLib | a1424437a01ad5a9e0efa71d723d32fd58ca589c | [
"MIT"
] | 22 | 2016-05-25T06:25:14.000Z | 2022-01-12T09:15:38.000Z | src/algorithm/IsomorphSpace.cpp | ehzawad/HyperGraphLib | a1424437a01ad5a9e0efa71d723d32fd58ca589c | [
"MIT"
] | 12 | 2016-05-08T15:02:48.000Z | 2021-03-24T07:25:19.000Z | src/algorithm/IsomorphSpace.cpp | ehzawad/HyperGraphLib | a1424437a01ad5a9e0efa71d723d32fd58ca589c | [
"MIT"
] | 6 | 2017-02-12T23:12:07.000Z | 2021-06-28T06:34:55.000Z | /*
* MIT License
*
* Copyright (c) 2015 Alexis LE GOADEC
*
* 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, cop... | 33.114504 | 118 | 0.665514 | ehzawad |
1f9ab6767cb247484030b35aa5911d7aab15c084 | 777 | cpp | C++ | bolt/server/src/mhttppost.cpp | gamunu/bolt | c1a2956f02656f3ec2c244486a816337126905ae | [
"Apache-2.0"
] | 1 | 2022-03-06T09:23:56.000Z | 2022-03-06T09:23:56.000Z | bolt/server/src/mhttppost.cpp | gamunu/bolt | c1a2956f02656f3ec2c244486a816337126905ae | [
"Apache-2.0"
] | 3 | 2021-04-23T18:12:20.000Z | 2021-04-23T18:12:47.000Z | bolt/server/src/mhttppost.cpp | gamunu/bolt | c1a2956f02656f3ec2c244486a816337126905ae | [
"Apache-2.0"
] | null | null | null | #include<mhttppost.hpp>
#include<regex>
#include<boost/scoped_ptr.hpp>
#include <mysql_table.h>
#include <metadata.hpp>
using namespace std;
using namespace bolt::storage::mysql;
json::value MHttpPost::createTable(json::value object)
{
//TODO:Check if we are in windows or unix
wregex name_regx(U("^[A-Za-z][A-Za-z0-... | 22.2 | 57 | 0.680824 | gamunu |
1f9b955121445f1fb7046fb0d6d4ddf4552fdfc2 | 1,570 | cc | C++ | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/22_locale/money_get/get/char/39168.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/22_locale/money_get/get/char/39168.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/22_locale/money_get/get/char/39168.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | // Copyright (C) 2009-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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, or (at your op... | 28.035714 | 74 | 0.708917 | best08618 |
1f9ceca10c7920f9b0c1b921829cf18a9ee37b75 | 16,916 | cpp | C++ | wxWidgets-2.9.1/src/osx/carbon/combobox.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 241 | 2015-01-04T00:36:58.000Z | 2022-01-06T19:19:23.000Z | wxWidgets-2.9.1/src/osx/carbon/combobox.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 10 | 2015-07-10T18:27:17.000Z | 2019-06-26T20:59:59.000Z | wxWidgets-2.9.1/src/osx/carbon/combobox.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 82 | 2015-01-25T18:02:35.000Z | 2022-03-05T12:28:17.000Z | /////////////////////////////////////////////////////////////////////////////
// Name: src/osx/carbon/combobox.cpp
// Purpose: wxComboBox class
// Author: Stefan Csomor, Dan "Bud" Keith (composite combobox)
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan... | 24.730994 | 107 | 0.565855 | gamekit-developers |
1f9d47ab42c6c618df449777e23c5a474dbed1ac | 4,203 | cpp | C++ | src/FresponzeListener.cpp | suirless/fresponze | 2c8f9204c8ba4b734d7885cc1fe51f31c89d22ef | [
"Apache-2.0"
] | 8 | 2020-09-26T20:38:26.000Z | 2021-05-16T18:13:48.000Z | src/FresponzeListener.cpp | Vertver/Fresponze | ca45738a2c06474fb6f45b627f8b1c8b85e69cd1 | [
"Apache-2.0"
] | 23 | 2022-01-23T04:57:32.000Z | 2022-01-23T04:59:32.000Z | src/FresponzeListener.cpp | suirless/fresponze | 2c8f9204c8ba4b734d7885cc1fe51f31c89d22ef | [
"Apache-2.0"
] | 1 | 2020-12-07T13:48:15.000Z | 2020-12-07T13:48:15.000Z | /*********************************************************************
* Copyright (C) Anton Kovalev (vertver), 2020. All rights reserved.
* Fresponze - fast, simple and modern multimedia sound library
* Apache-2 License
**********************************************************************
* Licensed under the Apache ... | 26.26875 | 110 | 0.730193 | suirless |
1fa10edad2574c55eaacb70ccf1e426684a9be6a | 109 | cpp | C++ | SteamAPIWrap/Helper.cpp | HoggeL/Ludosity-s-Steamworks-Wrapper | 5cd8f5740829a20af23343865895ceb782f9b0b4 | [
"MIT"
] | null | null | null | SteamAPIWrap/Helper.cpp | HoggeL/Ludosity-s-Steamworks-Wrapper | 5cd8f5740829a20af23343865895ceb782f9b0b4 | [
"MIT"
] | null | null | null | SteamAPIWrap/Helper.cpp | HoggeL/Ludosity-s-Steamworks-Wrapper | 5cd8f5740829a20af23343865895ceb782f9b0b4 | [
"MIT"
] | null | null | null | #include "Precompiled.hpp"
#include "Helper.hpp"
using namespace SteamAPIWrap;
namespace SteamAPIWrap
{
}
| 10.9 | 29 | 0.770642 | HoggeL |
1fa36e00dac9162fc1247dc4c105e61ce28dacfb | 1,926 | cpp | C++ | Krack_X_Core_Test/core.cpp | Bensuperpc/Krack_Core_Test | 2b17f6b81087b7b234ce4f2776283a43175b9fae | [
"MIT"
] | 1 | 2019-11-14T17:42:31.000Z | 2019-11-14T17:42:31.000Z | Krack_X_Core_Test/core.cpp | Bensuperpc/Krack_Core_Test | 2b17f6b81087b7b234ce4f2776283a43175b9fae | [
"MIT"
] | null | null | null | Krack_X_Core_Test/core.cpp | Bensuperpc/Krack_Core_Test | 2b17f6b81087b7b234ce4f2776283a43175b9fae | [
"MIT"
] | null | null | null | /*
*
* git.py - for git clone and pull in local
*
* Created by Benoît(Bensuperpc@gmail.com) 04th June 2019
* Updated by X for C++11
*
* Released into the Public domain with MIT licence
* https://opensource.org/licenses/MIT
*
* Written with QtCreator and C++11
* Script compatibility : Windows, Linux
* Script requirement... | 22.658824 | 90 | 0.565421 | Bensuperpc |
1fa38e014ca5f85754d715b90f8c8c6bd411d65c | 4,557 | cpp | C++ | src/teleop_dummy/main_teleop_dummy_sigma.cpp | neemoh/ART | 3f990b9d3c4b58558adf97866faf4eea553ba71b | [
"Unlicense"
] | 11 | 2018-06-29T19:08:08.000Z | 2021-12-30T07:13:00.000Z | src/teleop_dummy/main_teleop_dummy_sigma.cpp | liuxia-zju/ATAR | 3f990b9d3c4b58558adf97866faf4eea553ba71b | [
"Unlicense"
] | 1 | 2020-05-09T23:44:55.000Z | 2020-05-09T23:44:55.000Z | src/teleop_dummy/main_teleop_dummy_sigma.cpp | liuxia-zju/ATAR | 3f990b9d3c4b58558adf97866faf4eea553ba71b | [
"Unlicense"
] | 6 | 2017-11-28T14:26:18.000Z | 2019-11-29T01:57:14.000Z | //
// Created by nima on 12/10/17.
//
#include <ros/ros.h>
#include <geometry_msgs/PoseStamped.h>
#include <sensor_msgs/Joy.h>
#include <kdl/frames.hpp>
#include <kdl_conversions/kdl_msg.h>
#include <std_msgs/String.h>
#include <std_msgs/Int8.h>
#include <src/ar_core/ControlEvents.h>
// This node simulates the slaves... | 33.507353 | 94 | 0.595128 | neemoh |
1fa4a5d0f424620062898e3dc6efb45278b2af22 | 13,519 | cpp | C++ | Sources/Engine/External/OpenALSoft/alc/converter.cpp | intensifier/NeoAxisEngine | 5c3d6d853c1d420e332aa31c73840f7cf3fd3eef | [
"IJG"
] | null | null | null | Sources/Engine/External/OpenALSoft/alc/converter.cpp | intensifier/NeoAxisEngine | 5c3d6d853c1d420e332aa31c73840f7cf3fd3eef | [
"IJG"
] | null | null | null | Sources/Engine/External/OpenALSoft/alc/converter.cpp | intensifier/NeoAxisEngine | 5c3d6d853c1d420e332aa31c73840f7cf3fd3eef | [
"IJG"
] | null | null | null |
#include "config.h"
#include "converter.h"
#include <algorithm>
#include <cstdint>
#include <iterator>
#include "AL/al.h"
#include "albyte.h"
#include "fpu_modes.h"
#include "mixer/defs.h"
namespace {
/* Base template left undefined. Should be marked =delete, but Clang 3.8.1
* chokes on that given the inline s... | 36.243968 | 112 | 0.6553 | intensifier |
1fa651fd76841758e078bce56db748f2b9794d19 | 901 | cpp | C++ | OJ/vol127/UVa12709.cpp | jennygaz/competitive | 2807b0fbd2eaaca8ba618f03b1e62c0241849e6c | [
"MIT"
] | null | null | null | OJ/vol127/UVa12709.cpp | jennygaz/competitive | 2807b0fbd2eaaca8ba618f03b1e62c0241849e6c | [
"MIT"
] | null | null | null | OJ/vol127/UVa12709.cpp | jennygaz/competitive | 2807b0fbd2eaaca8ba618f03b1e62c0241849e6c | [
"MIT"
] | null | null | null | /* UVa 12709 - Falling Ants */
/* Solution: Sort by H then by the product LW */
/* by jennyga */
#include <iostream>
#include <vector>
#include <algorithm>
#include <tuple>
#include <functional>
using namespace std;
constexpr int MAXN = 110;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
... | 25.027778 | 79 | 0.513873 | jennygaz |
1fa78f043c98ebdfff8814f34733c311bc583b2a | 8,334 | cpp | C++ | demos/cocos2d-x-3.2/Classes/HelloWorldScene.cpp | silwings/DragonBonesCPP | 8c1003875f78d8feba49fd30ada3196db9afdff1 | [
"MIT"
] | null | null | null | demos/cocos2d-x-3.2/Classes/HelloWorldScene.cpp | silwings/DragonBonesCPP | 8c1003875f78d8feba49fd30ada3196db9afdff1 | [
"MIT"
] | null | null | null | demos/cocos2d-x-3.2/Classes/HelloWorldScene.cpp | silwings/DragonBonesCPP | 8c1003875f78d8feba49fd30ada3196db9afdff1 | [
"MIT"
] | null | null | null | #include "HelloWorldScene.h"
USING_NS_CC;
using namespace dragonBones;
Scene* HelloWorld::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = HelloWorld::create();
// add layer as a child to scene
scene->addC... | 37.881818 | 138 | 0.695944 | silwings |
1fa7c79894bde96bf431ecc48a8e66be03076186 | 4,899 | cpp | C++ | Core/third_party/JavaScriptCore/bytecode/ArithProfile.cpp | InfiniteSynthesis/lynx-native | 022e277ee6767f5b668269a17b1679072cf7c3d6 | [
"MIT"
] | 677 | 2017-09-23T16:03:12.000Z | 2022-03-26T08:32:10.000Z | Core/third_party/JavaScriptCore/bytecode/ArithProfile.cpp | InfiniteSynthesis/lynx-native | 022e277ee6767f5b668269a17b1679072cf7c3d6 | [
"MIT"
] | 9 | 2020-04-18T18:47:18.000Z | 2020-04-18T18:52:41.000Z | Core/third_party/JavaScriptCore/bytecode/ArithProfile.cpp | InfiniteSynthesis/lynx-native | 022e277ee6767f5b668269a17b1679072cf7c3d6 | [
"MIT"
] | 92 | 2017-09-21T14:21:27.000Z | 2022-03-25T13:29:42.000Z | /*
* Copyright (C) 2016 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 34.020833 | 215 | 0.679118 | InfiniteSynthesis |
1fabacd0fa188edfceda3c63aa7473133957177a | 414 | cpp | C++ | Sail/src/Sail/api/GraphicsAPI.cpp | Piratkopia13/MasterThesisIntersectionVisualizer | 08b802a3b3fe3761c9ba7ac5a650cbca89887df8 | [
"MIT"
] | 1 | 2020-09-03T09:53:45.000Z | 2020-09-03T09:53:45.000Z | Sail/src/Sail/api/GraphicsAPI.cpp | aaron-foster-wallace/MasterThesisIntersectionVisualizer | 08b802a3b3fe3761c9ba7ac5a650cbca89887df8 | [
"MIT"
] | null | null | null | Sail/src/Sail/api/GraphicsAPI.cpp | aaron-foster-wallace/MasterThesisIntersectionVisualizer | 08b802a3b3fe3761c9ba7ac5a650cbca89887df8 | [
"MIT"
] | 1 | 2021-01-31T05:27:36.000Z | 2021-01-31T05:27:36.000Z | #include "pch.h"
#include "GraphicsAPI.h"
GraphicsAPI::GraphicsAPI() {
EventSystem::getInstance()->subscribeToEvent(Event::WINDOW_RESIZE, this);
}
GraphicsAPI::~GraphicsAPI() {
EventSystem::getInstance()->unsubscribeFromEvent(Event::WINDOW_RESIZE, this);
}
bool GraphicsAPI::onEvent(Event& event) {
EventHandler::H... | 25.875 | 93 | 0.768116 | Piratkopia13 |
1fabbc6ab4875b5d144177f4fbb4d30025b60936 | 23,874 | hpp | C++ | graehl/shared/tree.hpp | graehl/carmel | 4a5d0990a17d0d853621348272b2f05a0dab3450 | [
"Apache-2.0"
] | 29 | 2015-01-05T16:52:53.000Z | 2022-02-14T07:36:10.000Z | graehl/shared/tree.hpp | graehl/carmel | 4a5d0990a17d0d853621348272b2f05a0dab3450 | [
"Apache-2.0"
] | 1 | 2016-04-18T17:20:37.000Z | 2016-04-23T07:36:38.000Z | graehl/shared/tree.hpp | graehl/carmel | 4a5d0990a17d0d853621348272b2f05a0dab3450 | [
"Apache-2.0"
] | 7 | 2015-06-11T14:48:13.000Z | 2017-08-12T16:06:19.000Z | // Copyright 2014 Jonathan Graehl - http://graehl.org/
//
// 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 applic... | 26.206367 | 460 | 0.614895 | graehl |
1faca97e265772e544205831e22d13e0894b3339 | 83 | cpp | C++ | cloud9_root/src/third_party/stp/src/main/versionString.cpp | DanielGuoVT/symsc | 95b705bd1f4d2863d79866c84fc7ee90aba743cb | [
"Apache-2.0"
] | 3 | 2019-02-12T04:14:39.000Z | 2020-11-05T08:46:20.000Z | cloud9_root/src/third_party/stp/src/main/versionString.cpp | DanielGuoVT/symsc | 95b705bd1f4d2863d79866c84fc7ee90aba743cb | [
"Apache-2.0"
] | null | null | null | cloud9_root/src/third_party/stp/src/main/versionString.cpp | DanielGuoVT/symsc | 95b705bd1f4d2863d79866c84fc7ee90aba743cb | [
"Apache-2.0"
] | null | null | null | #include <string>
namespace BEEV{extern const std::string version = " exported ";}
| 27.666667 | 64 | 0.73494 | DanielGuoVT |
1fb06c4cfc4d1e9dada028d300608be949e698f5 | 24,451 | cc | C++ | iree/hal/string_util.cc | OliverScherf/iree | f2d74fd832fa412ce4375661f0c8607a1985b61a | [
"Apache-2.0"
] | null | null | null | iree/hal/string_util.cc | OliverScherf/iree | f2d74fd832fa412ce4375661f0c8607a1985b61a | [
"Apache-2.0"
] | null | null | null | iree/hal/string_util.cc | OliverScherf/iree | f2d74fd832fa412ce4375661f0c8607a1985b61a | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 40.281713 | 80 | 0.644391 | OliverScherf |
1fb39dd7f9862d543aab8948f2a3838d9b93fe3e | 2,058 | cpp | C++ | src/Generic/common/Decompressor.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | 1 | 2022-03-24T19:57:00.000Z | 2022-03-24T19:57:00.000Z | src/Generic/common/Decompressor.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | src/Generic/common/Decompressor.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | #include "Generic/common/leak_detection.h"
#include "Decompressor.h"
#include <sstream>
#include <utility>
#include "Generic/common/BoostUtil.h"
#include "Generic/common/SessionLogger.h"
#include "Generic/common/UnexpectedInputException.h"
Decompressor::ImplMap Decompressor::_implementations;
std::string extension(co... | 29.4 | 79 | 0.720117 | BBN-E |
1fb4d9fcf28e13e998a55d4723163ca30a407d8c | 589 | cpp | C++ | deque.cpp | AbhiRepository/algorithm_codes | 723b9a660084a701b468f98f1c184f9573856521 | [
"MIT"
] | 2 | 2018-09-05T17:12:37.000Z | 2018-09-18T09:27:40.000Z | deque.cpp | AbhiRepository/algorithm_codes | 723b9a660084a701b468f98f1c184f9573856521 | [
"MIT"
] | 8 | 2018-03-24T20:41:25.000Z | 2018-10-19T15:04:20.000Z | deque.cpp | AbhiRepository/algorithm_codes | 723b9a660084a701b468f98f1c184f9573856521 | [
"MIT"
] | 5 | 2018-09-05T17:12:43.000Z | 2018-10-01T09:13:52.000Z | //Program to implement deque for finding the maximum of all suaarays of size k
#include <iostream>
#include <deque>
using namespace std;
int main()
{
int a[]={1,43,23,11,46,22,81,22};
int n=sizeof(a)/sizeof(a[0]);
int k=3;
deque<int> d;
int i;
for (i = 0; i < k; ++i)
{
while(!d.empty() && a[i]>=a[d.back()... | 15.5 | 78 | 0.550085 | AbhiRepository |
1fb570c46f48c50828febe33a93d107e0d4ab239 | 1,124 | cpp | C++ | c++/422.cpp | AkashChandrakar/UVA | b90535c998ecdffe0f30e56fec89411f456b16a5 | [
"Apache-2.0"
] | 2 | 2016-10-23T14:35:13.000Z | 2018-09-16T05:38:47.000Z | c++/422.cpp | AkashChandrakar/UVA | b90535c998ecdffe0f30e56fec89411f456b16a5 | [
"Apache-2.0"
] | null | null | null | c++/422.cpp | AkashChandrakar/UVA | b90535c998ecdffe0f30e56fec89411f456b16a5 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> ii;
vector<int> v;
map<char, ii> hash;
char s[500];
ll process() {
int len = strlen(s);
ll res = 0;
char chr = 'a';
ii a, b, c;
stack<char> S;
map<char, ii> temphash;
for (int i = 0; i < len; ++i) {
if (s[i] == '(')
S.... | 18.129032 | 42 | 0.495552 | AkashChandrakar |
1fb880944f4e0dbf8b6354a2d62b8e9ce3e3727a | 5,736 | cpp | C++ | src/mpi/matrix/MatrixCSR.cpp | jgurhem/TBSLA | ef4e14fe033f179e1accdea09813962322431b88 | [
"MIT"
] | null | null | null | src/mpi/matrix/MatrixCSR.cpp | jgurhem/TBSLA | ef4e14fe033f179e1accdea09813962322431b88 | [
"MIT"
] | null | null | null | src/mpi/matrix/MatrixCSR.cpp | jgurhem/TBSLA | ef4e14fe033f179e1accdea09813962322431b88 | [
"MIT"
] | null | null | null | #include <tbsla/mpi/MatrixCSR.hpp>
#include <tbsla/cpp/utils/range.hpp>
#include <vector>
#include <algorithm>
#include <mpi.h>
#define TBSLA_MATRIX_CSR_READLINES 2048
int tbsla::mpi::MatrixCSR::read_bin_mpiio(MPI_Comm comm, std::string filename, int pr, int pc, int NR, int NC) {
int world, rank;
MPI_Comm_size(co... | 38.24 | 128 | 0.647838 | jgurhem |
1fb98b7fd35e9148e4f4c70f0541f2c9a05e17b5 | 1,562 | cpp | C++ | enduser/troubleshoot/launcher/client/tsmfc.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | enduser/troubleshoot/launcher/client/tsmfc.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | enduser/troubleshoot/launcher/client/tsmfc.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //
// MODULE: tsmfc.cpp
//
// PURPOSE: Imitate the MFC string resource functions that are not available
// in Win32 programs.
//
// PROJECT: Local Troubleshooter Launcher for the Device Manager
//
// COMPANY: Saltmine Creative, Inc. (206)-633-4743 support@saltmine.com
//
// AUTHOR: Richard Meadows
//
/... | 27.403509 | 78 | 0.644046 | npocmaka |
1fba7a152c610fc21125775f6fc104d260a08888 | 1,895 | cpp | C++ | GeneticAlgorithm/GeneticAlgorithm.cpp | TomaszRewak/BMCP | 99e94b11f70658d9b8de792b36af7ecbb215d665 | [
"MIT"
] | 2 | 2019-11-04T15:09:52.000Z | 2022-01-12T05:41:16.000Z | GeneticAlgorithm/GeneticAlgorithm.cpp | TomaszRewak/BMCP | 99e94b11f70658d9b8de792b36af7ecbb215d665 | [
"MIT"
] | null | null | null | GeneticAlgorithm/GeneticAlgorithm.cpp | TomaszRewak/BMCP | 99e94b11f70658d9b8de792b36af7ecbb215d665 | [
"MIT"
] | 1 | 2020-09-09T12:24:35.000Z | 2020-09-09T12:24:35.000Z | // ========================================
// ======= Created by Tomasz Rewak ========
// ========================================
// ==== https://github.com/TomaszRewak ====
// ========================================
#include <memory>
#include <vector>
#include <algorithm>
#include "GeneticAlgorithm.h"
#include "I... | 22.294118 | 112 | 0.668602 | TomaszRewak |
1fbcd45bf47b41749f66033657b69cdb0ff6a0c8 | 8,032 | cc | C++ | node_modules/@parcel/watcher/src/watchman/BSER.cc | hamsall/hamsall.github.io | dc21c8037c9cd13641c61628ef1ed04c306c7701 | [
"MIT"
] | 346 | 2019-04-08T01:30:31.000Z | 2022-03-24T01:49:04.000Z | node_modules/@parcel/watcher/src/watchman/BSER.cc | hamsall/hamsall.github.io | dc21c8037c9cd13641c61628ef1ed04c306c7701 | [
"MIT"
] | 79 | 2019-04-20T08:00:07.000Z | 2022-03-30T17:24:22.000Z | node_modules/@parcel/watcher/src/watchman/BSER.cc | hamsall/hamsall.github.io | dc21c8037c9cd13641c61628ef1ed04c306c7701 | [
"MIT"
] | 12 | 2019-04-08T08:02:10.000Z | 2022-02-03T05:18:53.000Z | #include <stdint.h>
#include "./BSER.hh"
BSERType decodeType(std::istream &iss) {
int8_t type;
iss.read(reinterpret_cast<char*>(&type), sizeof(type));
return (BSERType) type;
}
void expectType(std::istream &iss, BSERType expected) {
BSERType got = decodeType(iss);
if (got != expected) {
throw std::runti... | 26.508251 | 78 | 0.631225 | hamsall |
1fbd2a4e5c43d018d88dc7f3bb0039973f32725b | 47 | cpp | C++ | Unreal/CtaCpp/Runtime/Scripts/Combat/IItem.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | 3 | 2021-06-02T16:44:02.000Z | 2022-01-24T20:20:10.000Z | Unreal/CtaCpp/Runtime/Scripts/Combat/IItem.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | null | null | null | Unreal/CtaCpp/Runtime/Scripts/Combat/IItem.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | null | null | null | #include "IItem.h"
namespace Cta::Combat
{
}
| 7.833333 | 21 | 0.659574 | areilly711 |
1fbdb69e6030ee670f300c97ca10550e3effd251 | 8,052 | cpp | C++ | JLITOSL_Liczba_na_slowo/main.cpp | MichalWilczek/spoj-tasks | 6d5d77d750747ecb162c76a2b7eb4b8e8f2c4fc3 | [
"Unlicense"
] | null | null | null | JLITOSL_Liczba_na_slowo/main.cpp | MichalWilczek/spoj-tasks | 6d5d77d750747ecb162c76a2b7eb4b8e8f2c4fc3 | [
"Unlicense"
] | null | null | null | JLITOSL_Liczba_na_slowo/main.cpp | MichalWilczek/spoj-tasks | 6d5d77d750747ecb162c76a2b7eb4b8e8f2c4fc3 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <map>
#include <vector>
#include <string>
#include <bits/stdc++.h>
using namespace std;
void defineNumberNames(map<int, string> &numbers)
{
numbers[1] = "jeden";
numbers[2] = "dwa";
numbers[3] = "trzy";
numbers[4] = "cztery";
numbers[5] = "piec";
numbers[6] = "szesc... | 25.241379 | 99 | 0.551788 | MichalWilczek |
1fbeacbdb7e67d4301c5dba000e07850199a0087 | 1,707 | cpp | C++ | examples/google-code-jam/bcurcio/codejamA.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/bcurcio/codejamA.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/bcurcio/codejamA.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
int in(){int r=0,c;for(c=getchar_unlocked();c<=32;c=getchar_unlocked());if(c=='-') return -in();for(;c>32;r=(r<<1)+(r<<3)+c-'0',c=getchar_unlocked());return r;}
string ans[]={"X won", "O won","Draw","Game has not complete... | 25.102941 | 160 | 0.485647 | rbenic-fer |
1fbf35864c65425ffcd01c5ce0f7aa92d11ea696 | 13,780 | cpp | C++ | Samples/Animation/Character.cpp | Ravbug/RavEngine-Samples | e9763cfb00758caaed430f38a5c99c0d44f701a7 | [
"Apache-2.0"
] | 4 | 2021-03-05T05:49:34.000Z | 2022-03-30T15:30:46.000Z | Samples/Animation/Character.cpp | Ravbug/RavEngine-Samples | e9763cfb00758caaed430f38a5c99c0d44f701a7 | [
"Apache-2.0"
] | null | null | null | Samples/Animation/Character.cpp | Ravbug/RavEngine-Samples | e9763cfb00758caaed430f38a5c99c0d44f701a7 | [
"Apache-2.0"
] | null | null | null | #include "Character.hpp"
#include <RavEngine/AnimationAsset.hpp>
#include <RavEngine/MeshAssetSkinned.hpp>
#include <RavEngine/BuiltinMaterials.hpp>
#include <RavEngine/SkinnedMeshComponent.hpp>
#include <RavEngine/ScriptComponent.hpp>
#include <RavEngine/ChildEntityComponent.hpp>
#include <RavEngine/StaticMesh.... | 42.269939 | 204 | 0.726633 | Ravbug |
1fc001e78659d76aa089e84c6fb9c70ecdce8d35 | 771 | hxx | C++ | src/core/include/ivy/log/ostream_sink.hxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | src/core/include/ivy/log/ostream_sink.hxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | src/core/include/ivy/log/ostream_sink.hxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | /*
* Copyright (c) 2019, 2020, 2021 SiKol Ltd.
* Distributed under the Boost Software License, Version 1.0.
*/
#ifndef IVY_LOG_OSTREAM_SINK_HXX_INCLUDED
#define IVY_LOG_OSTREAM_SINK_HXX_INCLUDED
#include <iosfwd>
#include <ivy/log.hxx>
namespace ivy::log {
class ostream_sink final : public sin... | 24.870968 | 77 | 0.64332 | sikol |
1fc4d55393aa617d1b67178c945ac0af91c30c99 | 1,410 | hpp | C++ | 3rdparty/stout/include/stout/os/windows/dup.hpp | ruhip/mesos1.2.0 | 6f6d6786a91ee96fcd7cd435eee8933496c9903e | [
"Apache-2.0"
] | null | null | null | 3rdparty/stout/include/stout/os/windows/dup.hpp | ruhip/mesos1.2.0 | 6f6d6786a91ee96fcd7cd435eee8933496c9903e | [
"Apache-2.0"
] | null | null | null | 3rdparty/stout/include/stout/os/windows/dup.hpp | ruhip/mesos1.2.0 | 6f6d6786a91ee96fcd7cd435eee8933496c9903e | [
"Apache-2.0"
] | null | null | null | // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed und... | 26.603774 | 75 | 0.684397 | ruhip |
1fc902b20a360f4ecad706065ade6472eb397ddb | 752 | hpp | C++ | apps/openmw/mwgui/trainingwindow.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwgui/trainingwindow.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwgui/trainingwindow.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | #ifndef MWGUI_TRAININGWINDOW_H
#define MWGUI_TRAININGWINDOW_H
#include "windowbase.hpp"
#include "referenceinterface.hpp"
namespace MWGui
{
class TrainingWindow : public WindowBase, public ReferenceInterface
{
public:
TrainingWindow();
virtual void open();
virtual void exit();
... | 19.282051 | 71 | 0.667553 | Bodillium |
1fc95ac4f843a7d18f0cc7d79d75d2890dab8756 | 9,315 | cc | C++ | codec/L2/demos/pikEnc/host/pik/chroma_from_luma_test.cc | vmayoral/Vitis_Libraries | 2323dc5036041e18242718287aee4ce66ba071ef | [
"Apache-2.0"
] | 855 | 2017-07-24T16:54:42.000Z | 2022-03-11T01:33:14.000Z | codec/L2/demos/pikEnc/host/pik/chroma_from_luma_test.cc | vmayoral/Vitis_Libraries | 2323dc5036041e18242718287aee4ce66ba071ef | [
"Apache-2.0"
] | 59 | 2017-07-25T10:34:57.000Z | 2019-11-28T15:16:58.000Z | codec/L2/demos/pikEnc/host/pik/chroma_from_luma_test.cc | vmayoral/Vitis_Libraries | 2323dc5036041e18242718287aee4ce66ba071ef | [
"Apache-2.0"
] | 60 | 2017-07-24T17:58:59.000Z | 2022-03-11T01:33:22.000Z | // Copyright 2019 Google LLC
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
#include "pik/chroma_from_luma.h"
#include "gtest/gtest.h"
#include "pik/block.h"
#include "pik/butteraugli_distance.h"
#include "pik/co... | 34.120879 | 79 | 0.658937 | vmayoral |
1fcadab0db2c8335c2dd90aa29cf8d131edce2e2 | 2,184 | hpp | C++ | SbgatGui/include/LCVisualizer.hpp | bbercovici/SBGAT | 93e935baff49eb742470d7d593931f0573f0c062 | [
"MIT"
] | 6 | 2017-11-29T02:47:00.000Z | 2021-09-26T05:25:44.000Z | SbgatGui/include/LCVisualizer.hpp | bbercovici/SBGAT | 93e935baff49eb742470d7d593931f0573f0c062 | [
"MIT"
] | 34 | 2017-02-09T15:38:35.000Z | 2019-04-25T20:53:37.000Z | SbgatGui/include/LCVisualizer.hpp | bbercovici/SBGAT | 93e935baff49eb742470d7d593931f0573f0c062 | [
"MIT"
] | 1 | 2019-03-12T12:20:25.000Z | 2019-03-12T12:20:25.000Z | /** MIT License
Copyright (c) 2018 Benjamin Bercovici and Jay McMahon
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, copy, mo... | 25.395349 | 102 | 0.771978 | bbercovici |
1fcbf5611c831db23504fb8b66e189f045a46705 | 1,358 | cpp | C++ | src/toolchain/core/Misc/Location.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | null | null | null | src/toolchain/core/Misc/Location.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | null | null | null | src/toolchain/core/Misc/Location.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | 2 | 2015-03-03T04:36:51.000Z | 2018-10-01T03:04:11.000Z |
#include "Location.h"
Location::Location()
{
this->FileName = "";
this->Line = 0;
this->Column = 0;
}
/*
int Location::ComparesTo(const Location& other) const
{
if (this->FileName != other.FileName)
{
return 0;
}
int diff = this->Line - other.Line;
if (diff != 0)
{
... | 20.892308 | 81 | 0.623711 | layerzero |
1fccc513104b82f2e92b77eb0c65c400e5ced3f2 | 3,461 | cpp | C++ | src/main.cpp | khskarl/tori | 52e07e7b8bdbab7b46c4565a6be9353c0ce59422 | [
"MIT"
] | 2 | 2018-07-05T23:50:20.000Z | 2020-02-07T12:34:05.000Z | src/main.cpp | khskarl/tori | 52e07e7b8bdbab7b46c4565a6be9353c0ce59422 | [
"MIT"
] | null | null | null | src/main.cpp | khskarl/tori | 52e07e7b8bdbab7b46c4565a6be9353c0ce59422 | [
"MIT"
] | null | null | null | // 3rdparty Headers
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
// Standard Headers
#include <cstdio>
#include <cstdlib>
#include <iostream>
// Local Headers
#include <ImGui.hpp>
#include <Assets/AssetManager.hpp>
#include "Graphics/Renderer.hpp"
#includ... | 28.841667 | 87 | 0.672349 | khskarl |
1fd066c758fcecb9c26be0249bce8b5f92170893 | 2,484 | cpp | C++ | src/pca9685_motors.cpp | Mailamaca/motors_interface | c7062e5e6f1de36cfbe8904fa578d6f2bfc3d506 | [
"MIT"
] | null | null | null | src/pca9685_motors.cpp | Mailamaca/motors_interface | c7062e5e6f1de36cfbe8904fa578d6f2bfc3d506 | [
"MIT"
] | null | null | null | src/pca9685_motors.cpp | Mailamaca/motors_interface | c7062e5e6f1de36cfbe8904fa578d6f2bfc3d506 | [
"MIT"
] | 1 | 2021-12-03T16:01:31.000Z | 2021-12-03T16:01:31.000Z | #include "motors_interface/pca9685_motors.h"
// Constructor
PCA9685Motors::PCA9685Motors()
{
}
bool PCA9685Motors::setupPCA9685(bool real_hardware)
{
m_real_hardware = real_hardware;
if (m_real_hardware) {
// Calling wiringPi setup first.
wiringPiSetup();
// Setup wit... | 22.788991 | 82 | 0.651369 | Mailamaca |
1fd8bc11becb581a448e8784dd7166e27bfe1912 | 1,466 | hpp | C++ | src/coin/coin.hpp | datavetaren/epilog | 7067a4cf5b62dd8eca3ab9395fbb1b85d95a9820 | [
"MIT"
] | null | null | null | src/coin/coin.hpp | datavetaren/epilog | 7067a4cf5b62dd8eca3ab9395fbb1b85d95a9820 | [
"MIT"
] | null | null | null | src/coin/coin.hpp | datavetaren/epilog | 7067a4cf5b62dd8eca3ab9395fbb1b85d95a9820 | [
"MIT"
] | null | null | null | #pragma once
#ifndef _epilog_coin_coin_hpp
#define _epilog_coin_coin_hpp
#include "../interp/interpreter_base.hpp"
namespace epilog { namespace coin {
// Any term that has arity >= 2 and whose functor's name starts with '$'
// is a coin.
// The first argument must be an integer telling its value,
// The second argum... | 29.32 | 85 | 0.688267 | datavetaren |
1fd8d06dc16a83647d55c6c0b1dd1777716d0efb | 2,361 | cpp | C++ | SUAI/C1/LabOP4/sources/seeker_cpp/main.cpp | mersinvald/SUAI-1441 | 0ad15112aa8794e501fd6794db795e3312ae538c | [
"MIT"
] | 1 | 2017-01-23T17:38:59.000Z | 2017-01-23T17:38:59.000Z | SUAI/C1/LabOP4/sources/seeker_cpp/main.cpp | mersinvald/SUAI-1441 | 0ad15112aa8794e501fd6794db795e3312ae538c | [
"MIT"
] | null | null | null | SUAI/C1/LabOP4/sources/seeker_cpp/main.cpp | mersinvald/SUAI-1441 | 0ad15112aa8794e501fd6794db795e3312ae538c | [
"MIT"
] | 1 | 2016-05-28T05:18:04.000Z | 2016-05-28T05:18:04.000Z | #include <stdio.h>
void getInput(int &width,
int &heigth,
int** &bitmap, //array[w][h], initializing in function;
int* &exitPoint, //array[2], 0 - x, 1 - y;
int* &startPoint);
void printBitmap(int **bitmap, int w, int h);
int main()
{
int width, heigth;
... | 27.776471 | 134 | 0.545108 | mersinvald |
1fd91438fd7dece051485f2ca4a07d1bdca660be | 3,442 | hpp | C++ | mineworld/terminal.hpp | Lollipop-Studio/mineworld | 539897831ddc5e669bdff62f54a29a5d01358aa1 | [
"MIT"
] | 18 | 2019-09-26T16:38:02.000Z | 2022-03-09T06:44:59.000Z | mineworld/terminal.hpp | Lollipop-Studio/mineworld | 539897831ddc5e669bdff62f54a29a5d01358aa1 | [
"MIT"
] | 2 | 2019-12-05T02:15:07.000Z | 2021-11-22T08:33:30.000Z | mineworld/terminal.hpp | Lollipop-Studio/mineworld | 539897831ddc5e669bdff62f54a29a5d01358aa1 | [
"MIT"
] | 7 | 2020-01-13T21:18:37.000Z | 2021-09-07T00:31:33.000Z | #ifndef terminal_hpp
#define terminal_hpp
#include <iostream>
#include <string>
#include <vector>
#include <deque>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include "shape.hpp"
#include "util.hpp"
#include "cell.hpp"
#include "handler.hpp"
#include "block.hpp"
#include "types.hpp"
namespace... | 22.496732 | 75 | 0.478501 | Lollipop-Studio |
1fd985113702245f49b83fee1405a750b52fb3d3 | 1,314 | cpp | C++ | src/Parse/BasicTreeVisitor.cpp | Naios/swy | c48f7eb4322aa7fd44a3bb82259787b89292733b | [
"Apache-2.0"
] | 19 | 2017-06-04T09:39:51.000Z | 2021-11-16T10:14:45.000Z | src/Parse/BasicTreeVisitor.cpp | Naios/swy | c48f7eb4322aa7fd44a3bb82259787b89292733b | [
"Apache-2.0"
] | null | null | null | src/Parse/BasicTreeVisitor.cpp | Naios/swy | c48f7eb4322aa7fd44a3bb82259787b89292733b | [
"Apache-2.0"
] | 1 | 2019-03-19T02:24:40.000Z | 2019-03-19T02:24:40.000Z |
/**
Copyright(c) 2016 - 2017 Denis Blank <denis.blank at outlook dot 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 require... | 34.578947 | 74 | 0.732116 | Naios |
1fe1e26fa6c9490778dc7dde89ad97b152ba5129 | 1,524 | cpp | C++ | cpp/algorithm_ranges_inplace_merge.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | cpp/algorithm_ranges_inplace_merge.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | cpp/algorithm_ranges_inplace_merge.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | /*
g++ --std=c++20 -pthread -o ../_build/cpp/algorithm_ranges_inplace_merge.exe ./cpp/algorithm_ranges_inplace_merge.cpp && (cd ../_build/cpp/;./algorithm_ranges_inplace_merge.exe)
https://en.cppreference.com/w/cpp/algorithm/ranges/inplace_merge
*/
#include <algorithm>
#include <complex>
#include <functional>
#include ... | 33.130435 | 177 | 0.60105 | rpuntaie |
1fe1e8a508a7b089e04781df67f510873ae5e21f | 885 | cpp | C++ | LightOj/1053 - Higher Math.cpp | MhmdRyhn/Programming-Sloution | be189cbf81b14ac7c10d387e259aa23992ba1016 | [
"MIT"
] | 1 | 2019-07-29T04:05:34.000Z | 2019-07-29T04:05:34.000Z | LightOj/1053 - Higher Math.cpp | MhmdRyhn/Programming-Sloution | be189cbf81b14ac7c10d387e259aa23992ba1016 | [
"MIT"
] | null | null | null | LightOj/1053 - Higher Math.cpp | MhmdRyhn/Programming-Sloution | be189cbf81b14ac7c10d387e259aa23992ba1016 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<cmath>
using namespace std;
int main()
{
int t,a=5,b=10,c;
scanf("%d",&t);
for(int i=0; i<t; i++)
{
scanf("%d%d%d",&a,&b,&c);
/*printf("Direct: %s\n",(a>b and a>c and a*a==(b*b+c*c))? "yes":
((b>a and b>c and b*b==(a*a+c*c))? "yes":((c*c==(a*a+b... | 19.666667 | 89 | 0.328814 | MhmdRyhn |
1fe1ede3b6795ed7de178573fa3a5d4db6736875 | 2,798 | cpp | C++ | src/gui/icons/small_up_icon.cpp | jojoelfe/cisTEM | 6d5bc5803fd726022c381e65a721a24661b48639 | [
"BSD-3-Clause"
] | 7 | 2020-09-09T10:59:59.000Z | 2020-11-19T15:26:53.000Z | src/gui/icons/small_up_icon.cpp | jojoelfe/cisTEM | 6d5bc5803fd726022c381e65a721a24661b48639 | [
"BSD-3-Clause"
] | 85 | 2020-09-11T15:07:02.000Z | 2021-02-08T20:38:13.000Z | src/gui/icons/small_up_icon.cpp | jojoelfe/cisTEM | 6d5bc5803fd726022c381e65a721a24661b48639 | [
"BSD-3-Clause"
] | 6 | 2021-03-26T13:04:10.000Z | 2021-11-18T19:28:16.000Z | static const unsigned char small_up_icon_png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x07,
0x08, 0x06, 0x00, 0x00, 0x00, 0x3c, 0xb2, 0xac, 0x24, 0x00, 0x00, 0x00,
0x06, 0x62, 0x4b, 0x47, 0x44, 0x00, 0xff, 0x00, 0x... | 68.243902 | 72 | 0.659042 | jojoelfe |
1fe36009b980067522a5cde822fabc2266624f9a | 461 | cpp | C++ | X-Engine/src/XEngine/Core/Window.cpp | JohnMichaelProductions/X-Engine | 218ffcf64bfe5d5aed51b483c6f6986831ceeec4 | [
"Apache-2.0"
] | 4 | 2020-02-17T07:08:26.000Z | 2020-08-07T21:35:12.000Z | X-Engine/src/XEngine/Core/Window.cpp | JohnMichaelProductions/X-Engine | 218ffcf64bfe5d5aed51b483c6f6986831ceeec4 | [
"Apache-2.0"
] | 25 | 2020-03-08T05:35:25.000Z | 2020-07-08T01:59:52.000Z | X-Engine/src/XEngine/Core/Window.cpp | JohnMichaelProductions/X-Engine | 218ffcf64bfe5d5aed51b483c6f6986831ceeec4 | [
"Apache-2.0"
] | 1 | 2020-10-15T12:39:29.000Z | 2020-10-15T12:39:29.000Z | // Source file for Window class, decides to create a window based on the platform
#include "Xpch.h"
#include "XEngine/Core/Window.h"
#ifdef XPLATFORM_WINDOWS
#include "Platforms/OperatingSystems/Windows10/Win10Window.h"
#endif
namespace XEngine
{
Scope<Window> Window::Create(const WindowProps& props)
{
#ifdef XPLA... | 25.611111 | 81 | 0.759219 | JohnMichaelProductions |
1fe3b07329a19727c15b39fc56ad871b7c105468 | 251 | cpp | C++ | src/events/set_context.cpp | Damdoshi/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 38 | 2016-07-30T09:35:19.000Z | 2022-03-04T10:13:48.000Z | src/events/set_context.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 15 | 2017-02-12T19:20:52.000Z | 2021-06-09T09:30:52.000Z | src/events/set_context.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
//
// Lapin Library
#include <string.h>
#include "lapin_private.h"
void bunny_set_context(const t_bunny_context *context)
{
memcpy(&gl_callback, context, sizeof(gl_callback));
}
| 17.928571 | 57 | 0.729084 | Damdoshi |
1fe7df4ecd4330763d3d8f36d2bdad5419d4f07a | 3,499 | cpp | C++ | Asteroids/src/asteroid.cpp | pscompsci/Asteroids | 6e8f0eba2b8b6893ddee80779ef577e4890c947b | [
"MIT"
] | null | null | null | Asteroids/src/asteroid.cpp | pscompsci/Asteroids | 6e8f0eba2b8b6893ddee80779ef577e4890c947b | [
"MIT"
] | null | null | null | Asteroids/src/asteroid.cpp | pscompsci/Asteroids | 6e8f0eba2b8b6893ddee80779ef577e4890c947b | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2019 Peter Stacey
*
* 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, copy, modify, merge, publi... | 29.905983 | 81 | 0.68934 | pscompsci |
1fe9a4a014c4de1d662efc55e8903f248f620597 | 4,554 | cpp | C++ | src/Magnum/Math/Test/AngleTest.cpp | TUZIHULI/magnum | 1f6ae8f359976e5b2f1b9649342434a00a6ccbe1 | [
"MIT"
] | 1 | 2019-05-09T03:31:10.000Z | 2019-05-09T03:31:10.000Z | src/Magnum/Math/Test/AngleTest.cpp | TUZIHULI/magnum | 1f6ae8f359976e5b2f1b9649342434a00a6ccbe1 | [
"MIT"
] | null | null | null | src/Magnum/Math/Test/AngleTest.cpp | TUZIHULI/magnum | 1f6ae8f359976e5b2f1b9649342434a00a6ccbe1 | [
"MIT"
] | null | null | null | /*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014
Vladimír Vondruš <mosra@centrum.cz>
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 with... | 27.93865 | 78 | 0.658981 | TUZIHULI |
1fee02c077825a38fb2081178083abfa0536d458 | 447 | hpp | C++ | src/Core/ECS/Systems/ManaSystem.hpp | Gegel85/THFgame | 89b2508ac8564274c26db0f45f7fab4876badb5d | [
"MIT"
] | null | null | null | src/Core/ECS/Systems/ManaSystem.hpp | Gegel85/THFgame | 89b2508ac8564274c26db0f45f7fab4876badb5d | [
"MIT"
] | null | null | null | src/Core/ECS/Systems/ManaSystem.hpp | Gegel85/THFgame | 89b2508ac8564274c26db0f45f7fab4876badb5d | [
"MIT"
] | 1 | 2019-11-18T22:05:10.000Z | 2019-11-18T22:05:10.000Z | /*
** EPITECH PROJECT, 2019
** THFgame
** File description:
** ManaSystem.hpp
*/
#ifndef THFGAME_MANASYSTEM_HPP
#define THFGAME_MANASYSTEM_HPP
#include "../System.hpp"
namespace TouhouFanGame::ECS::Systems
{
//! @brief Updates Entity having a HealthComponent.
class ManaSystem : public System {
public:
ManaSyst... | 17.192308 | 68 | 0.740492 | Gegel85 |
1feeef5effe80b026453b93f9abee6cc83be6c80 | 3,383 | cpp | C++ | sourceCode/dotNet4.6/vb/language/shared/pageprotect.cpp | csoap/csoap.github.io | 2a8db44eb63425deff147652b65c5912f065334e | [
"Apache-2.0"
] | 5 | 2017-03-03T02:13:16.000Z | 2021-08-18T09:59:56.000Z | sourceCode/dotNet4.6/vb/language/shared/pageprotect.cpp | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | null | null | null | sourceCode/dotNet4.6/vb/language/shared/pageprotect.cpp | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | 4 | 2016-11-15T05:20:12.000Z | 2021-11-13T16:32:11.000Z | //-------------------------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Page Heap management. Ruthlessly stolen from the C# team. Please notify [....] and [....]
// about any changes to this file. It is likely the c... | 24.875 | 107 | 0.623116 | csoap |
1fef2a2de06f16ed0641dda067f59fd59ec07813 | 2,758 | hxx | C++ | gunrock/src/sssp/sssp_problem.hxx | aka-chris/mini | 608751ff11f74e1ee59222399cbf6c9ee92208fb | [
"Apache-2.0"
] | 17 | 2016-08-13T07:19:11.000Z | 2021-05-05T15:19:02.000Z | gunrock/src/sssp/sssp_problem.hxx | aka-chris/mini | 608751ff11f74e1ee59222399cbf6c9ee92208fb | [
"Apache-2.0"
] | 6 | 2016-10-19T02:43:21.000Z | 2020-01-05T07:10:59.000Z | gunrock/src/sssp/sssp_problem.hxx | aka-chris/mini | 608751ff11f74e1ee59222399cbf6c9ee92208fb | [
"Apache-2.0"
] | 7 | 2016-08-15T18:53:17.000Z | 2021-11-02T12:05:36.000Z | #pragma once
#include "problem.hxx"
#include <queue>
#include <utility>
namespace gunrock {
namespace sssp {
struct sssp_problem_t : problem_t {
mem_t<float> d_labels;
mem_t<int> d_preds;
mem_t<int> d_visited;
std::vector<float> labels;
std::vector<int> preds;
int src;
struct data_slice_t {
floa... | 29.655914 | 106 | 0.583394 | aka-chris |
1ff25378664e776e8db14948e7a4dad23f5604fd | 449 | cpp | C++ | Library/Standard/Primitives/ErrorMessage.cpp | dwhobrey/MindCausalModellingLibrary | 797d716e785d2dcd5c373ab385c20d3a74bbfcb0 | [
"BSD-3-Clause"
] | null | null | null | Library/Standard/Primitives/ErrorMessage.cpp | dwhobrey/MindCausalModellingLibrary | 797d716e785d2dcd5c373ab385c20d3a74bbfcb0 | [
"BSD-3-Clause"
] | null | null | null | Library/Standard/Primitives/ErrorMessage.cpp | dwhobrey/MindCausalModellingLibrary | 797d716e785d2dcd5c373ab385c20d3a74bbfcb0 | [
"BSD-3-Clause"
] | null | null | null | #include "PlatoIncludes.h"
#include "Strings.h"
#include "ErrorMessage.h"
namespace Plato {
ErrorMessage::ErrorMessage(int errorCode, const string& errorMessage) {
mErrorCode = errorCode;
mErrorMessage = &errorMessage;
}
ErrorMessage::~ErrorMessage() {
delete mErrorMessage;
}
... | 21.380952 | 75 | 0.659243 | dwhobrey |
1ff52a14c7d8ce269aa5bb4f25dad07f05db33f6 | 3,542 | cpp | C++ | HSAHRBNUOJ/P27xx/P2795.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | HSAHRBNUOJ/P27xx/P2795.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | HSAHRBNUOJ/P27xx/P2795.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include <cstdio>
#define MAXN 500010
#define INT_MAX 2147483647
using namespace std;
struct SBT
{
int left_child;
int right_child;
int s;
int key;
};
SBT tree[MAXN];
int siz, root;
int n, T, a, l, r, p, ans, t, pp, s;
long long pre[MAXN];
void right_rotate(int &node)
{
int k = tree[node].left_child;
tree[node... | 19.355191 | 92 | 0.595991 | HeRaNO |
1ff82f38a6ab2896e55589947d3c34ae68a56b54 | 929 | cpp | C++ | Chapter2/Section2.1/sort3/sort3.cpp | suzyz/USACO | c7f58850f20693fedfc30ef462f898d20d002396 | [
"MIT"
] | null | null | null | Chapter2/Section2.1/sort3/sort3.cpp | suzyz/USACO | c7f58850f20693fedfc30ef462f898d20d002396 | [
"MIT"
] | null | null | null | Chapter2/Section2.1/sort3/sort3.cpp | suzyz/USACO | c7f58850f20693fedfc30ef462f898d20d002396 | [
"MIT"
] | null | null | null | /*
ID: suzyzha1
PROG: sort3
LANG: C++
*/
#include <iostream>
#include <fstream>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
int n;
int seq[1010];
int num[4];
int main()
{
fstream fin("sort3.in",ios::in);
fstream fout("sort3.out",ios::out);
fin>>n;
for(int i=1;i<=n;i++)
{
f... | 14.075758 | 60 | 0.559742 | suzyz |
1ffac9eb99f33b232992979ba8096bc5e088038c | 1,273 | hpp | C++ | include/common/logging.hpp | jonas-ellert/gsaca-lyndon | b36110cb270b51f29035f8d53d798d56745deaac | [
"MIT"
] | null | null | null | include/common/logging.hpp | jonas-ellert/gsaca-lyndon | b36110cb270b51f29035f8d53d798d56745deaac | [
"MIT"
] | 1 | 2021-10-03T23:31:07.000Z | 2021-10-31T03:12:07.000Z | include/common/logging.hpp | jonas-ellert/gsaca-lyndon | b36110cb270b51f29035f8d53d798d56745deaac | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <sstream>
#define LOG_VERBOSE if constexpr (false) std::cout
#define LOG_STATS if constexpr (true) ::gsaca_lyndon::clog
namespace gsaca_lyndon {
namespace logging_internal {
constexpr uint64_t LOG_LIMIT = 1ULL << 20;
struct temporary_logger {
std::string key;
template<... | 21.948276 | 64 | 0.660644 | jonas-ellert |
1ffe7415a8705c70578a9b4516bf45825fccbeda | 2,097 | cc | C++ | agent/php7/hook/openrasp_fileupload.cc | xuing/openrasp | 9cb9ccebdd205ebd647eaf342ae6f89975b2bc72 | [
"Apache-2.0"
] | 2,219 | 2017-08-10T11:47:31.000Z | 2022-03-29T08:58:56.000Z | agent/php7/hook/openrasp_fileupload.cc | xuing/openrasp | 9cb9ccebdd205ebd647eaf342ae6f89975b2bc72 | [
"Apache-2.0"
] | 206 | 2017-08-14T02:37:15.000Z | 2022-03-31T23:01:00.000Z | agent/php7/hook/openrasp_fileupload.cc | xuing/openrasp | 9cb9ccebdd205ebd647eaf342ae6f89975b2bc72 | [
"Apache-2.0"
] | 551 | 2017-08-10T11:47:41.000Z | 2022-03-30T12:29:47.000Z | /*
* Copyright 2017-2021 Baidu Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 35.542373 | 152 | 0.680019 | xuing |
1ffebf01c19fc85691797133390d94c346d45410 | 10,017 | hpp | C++ | source/Switch_HIDInterface.hpp | TheGreatRambler/TOZ | 2bd5851359f82489072bf1c228d58831570653cb | [
"MIT"
] | 2 | 2021-04-26T20:50:45.000Z | 2021-04-27T09:52:54.000Z | source/Switch_HIDInterface.hpp | TheGreatRambler/TOZ | 2bd5851359f82489072bf1c228d58831570653cb | [
"MIT"
] | null | null | null | source/Switch_HIDInterface.hpp | TheGreatRambler/TOZ | 2bd5851359f82489072bf1c228d58831570653cb | [
"MIT"
] | null | null | null | #pragma once
#include <sys/ioctl.h>
#include <sys/select.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <linux/types.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadgetfs.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include... | 23.793349 | 217 | 0.677349 | TheGreatRambler |
950717ecbe0d897e317149de011fceba5a33e00d | 1,641 | cpp | C++ | src/gui/DeleteConfig.cpp | faroub/project-qt-cpp-cmake-IO-communication | f116b75766afce99664a6d82f4d6b10317b754a1 | [
"MIT"
] | null | null | null | src/gui/DeleteConfig.cpp | faroub/project-qt-cpp-cmake-IO-communication | f116b75766afce99664a6d82f4d6b10317b754a1 | [
"MIT"
] | null | null | null | src/gui/DeleteConfig.cpp | faroub/project-qt-cpp-cmake-IO-communication | f116b75766afce99664a6d82f4d6b10317b754a1 | [
"MIT"
] | null | null | null | #include <QPushButton>
#include <QHBoxLayout>
#include <QGridLayout>
#include <QListWidget>
#include "DeleteConfig.h"
gui::DeleteConfig::DeleteConfig(QWidget *ap_parent, utils::ConfigData *ap_ConfigData) :
QDialog(ap_parent),
mp_configFile... | 27.813559 | 87 | 0.678854 | faroub |
9507d2fb345fa46173949496ff8f87b669772505 | 3,923 | cpp | C++ | Lab5/1356M_Linux/tools.cpp | HoverWings/HUST_RFID_Labs | 8f824fb21b47cb92f35e1d90c7faaafe97cd38dd | [
"MIT"
] | null | null | null | Lab5/1356M_Linux/tools.cpp | HoverWings/HUST_RFID_Labs | 8f824fb21b47cb92f35e1d90c7faaafe97cd38dd | [
"MIT"
] | 1 | 2019-05-29T02:44:42.000Z | 2019-05-29T02:44:42.000Z | Lab5/1356M_Windows/tools.cpp | HoverWings/HUST_RFID_Labs | 8f824fb21b47cb92f35e1d90c7faaafe97cd38dd | [
"MIT"
] | null | null | null | #include "tools.h"
#include <QDebug>
Tools::Tools(QObject *parent) : QObject(parent)
{
list = new QStringList();
}
//获取当前PC可用的串口名
QStringList Tools::getSerialName()
{
QStringList temp;
foreach (const QSerialPortInfo &info, QSerialPortInfo::availablePorts())
{
QSerialPort serial... | 26.328859 | 98 | 0.536324 | HoverWings |
950c962c5c01b79bf0009f811ca6a88348499256 | 2,837 | cpp | C++ | src/GameHostStarter.cpp | maximaximal/piga | 54530c208e59eaaf8d44c1f8d640f5ec028d4126 | [
"Zlib"
] | 2 | 2015-01-07T18:36:39.000Z | 2015-01-08T13:54:43.000Z | src/GameHostStarter.cpp | maximaximal/piga | 54530c208e59eaaf8d44c1f8d640f5ec028d4126 | [
"Zlib"
] | null | null | null | src/GameHostStarter.cpp | maximaximal/piga | 54530c208e59eaaf8d44c1f8d640f5ec028d4126 | [
"Zlib"
] | null | null | null | #include <pigaco/GameHostStarter.hpp>
#include <QDir>
#include <easylogging++.h>
namespace pigaco
{
GameHostStarter::GameHostStarter()
: QObject()
{
m_gameProcess = new QProcess(this);
connect(m_gameProcess, SIGNAL(finished(int,QProcess::ExitStatus)), this, SLOT(gameEnded(int,QProcess::ExitStatus)));
... | 30.836957 | 152 | 0.627071 | maximaximal |
950dc54711be7a9eb53ace5073d65f7871dc8223 | 4,398 | cpp | C++ | tools/mull-xctest/XCTestInvocation.cpp | kateinoigakukun/mull-xctest | e7be5afa9afb64bef97dde29417c016af2a50dcc | [
"MIT"
] | 43 | 2021-03-04T04:57:41.000Z | 2022-03-03T17:16:54.000Z | tools/mull-xctest/XCTestInvocation.cpp | kateinoigakukun/mull-xctest | e7be5afa9afb64bef97dde29417c016af2a50dcc | [
"MIT"
] | 2 | 2021-03-09T10:32:29.000Z | 2021-10-19T12:01:25.000Z | tools/mull-xctest/XCTestInvocation.cpp | kateinoigakukun/mull-xctest | e7be5afa9afb64bef97dde29417c016af2a50dcc | [
"MIT"
] | 1 | 2021-03-09T14:29:17.000Z | 2021-03-09T14:29:17.000Z | #include "XCTestInvocation.h"
#include "MullXCTest/MutantSerialization.h"
#include <llvm/Support/Path.h>
#include <mull/MutationResult.h>
#include <mull/Parallelization/Parallelization.h>
#include <mull/Toolchain/Runner.h>
#include <sstream>
using namespace llvm;
using namespace mull;
namespace mull_xctest {
namespa... | 35.756098 | 80 | 0.649386 | kateinoigakukun |
950ddbd84b1db4d5ec15e309b1084abf6c670da4 | 981 | cpp | C++ | sources/Video/RenderSystem/ScopedActiveRenderContext.cpp | LukasBanana/ForkENGINE | 8b575bd1d47741ad5025a499cb87909dbabc3492 | [
"BSD-3-Clause"
] | 13 | 2017-03-21T22:46:18.000Z | 2020-07-30T01:31:57.000Z | sources/Video/RenderSystem/ScopedActiveRenderContext.cpp | LukasBanana/ForkENGINE | 8b575bd1d47741ad5025a499cb87909dbabc3492 | [
"BSD-3-Clause"
] | null | null | null | sources/Video/RenderSystem/ScopedActiveRenderContext.cpp | LukasBanana/ForkENGINE | 8b575bd1d47741ad5025a499cb87909dbabc3492 | [
"BSD-3-Clause"
] | 2 | 2018-07-23T19:56:41.000Z | 2020-07-30T01:32:01.000Z | /*
* Scoped active render context file
*
* This file is part of the "ForkENGINE" (Copyright (c) 2014 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "Video/RenderSystem/ScopedActiveRenderContext.h"
#include "Video/RenderSystem/RenderContext.h"
#include "Core/Exception/NullPointerExcep... | 21.8 | 89 | 0.738022 | LukasBanana |
950ddcf01a642ac46f2a51c94f79a581ed10ec0b | 160 | cpp | C++ | src/Updatable.cpp | Xansta/SeriousProton | f4f79d28bf292fbacb61a863a427b55da6d49774 | [
"MIT"
] | 62 | 2015-01-07T14:47:47.000Z | 2021-09-06T09:52:29.000Z | src/Updatable.cpp | Xansta/SeriousProton | f4f79d28bf292fbacb61a863a427b55da6d49774 | [
"MIT"
] | 70 | 2015-03-09T07:08:00.000Z | 2022-02-27T07:28:24.000Z | src/Updatable.cpp | Xansta/SeriousProton | f4f79d28bf292fbacb61a863a427b55da6d49774 | [
"MIT"
] | 49 | 2015-03-07T11:42:06.000Z | 2022-02-20T11:06:05.000Z | #include "Updatable.h"
PVector<Updatable> updatableList;
Updatable::Updatable()
{
updatableList.push_back(this);
}
Updatable::~Updatable()
{
//dtor
}
| 13.333333 | 35 | 0.7 | Xansta |
950e86d7af45ea905f102d29dfabadada67f7ea4 | 11,340 | cpp | C++ | Hanse/TaskXsensNavigation/taskxsensnavigation.cpp | iti-luebeck/HANSE2011 | 0bd5b3f1e0bc5a02516e7514b2241897337334c2 | [
"BSD-3-Clause"
] | null | null | null | Hanse/TaskXsensNavigation/taskxsensnavigation.cpp | iti-luebeck/HANSE2011 | 0bd5b3f1e0bc5a02516e7514b2241897337334c2 | [
"BSD-3-Clause"
] | null | null | null | Hanse/TaskXsensNavigation/taskxsensnavigation.cpp | iti-luebeck/HANSE2011 | 0bd5b3f1e0bc5a02516e7514b2241897337334c2 | [
"BSD-3-Clause"
] | null | null | null | /*
- Fahre zu Position Start
- Falls nicht moeglich, emergencyStop
- Mache x milisekunden Xsens-Following, dann einen Turn
- Falls nicht moeglich, state ueberspringen
- Fahre zu Position B
- Falls nicht moeglich, emergencyStop
- Mache Turn 180
- Falls nicht moeglich, stat... | 31.325967 | 159 | 0.645591 | iti-luebeck |
95120dff98db66a662c81530e469b7ea3b900831 | 6,616 | cpp | C++ | src/main.cpp | LiangGuoYu/spoa | 9dbcd7aa223c1e7fa789530c39fcd143d3886d3b | [
"MIT"
] | 1 | 2022-01-13T09:02:18.000Z | 2022-01-13T09:02:18.000Z | src/main.cpp | LiangGuoYu/spoa | 9dbcd7aa223c1e7fa789530c39fcd143d3886d3b | [
"MIT"
] | null | null | null | src/main.cpp | LiangGuoYu/spoa | 9dbcd7aa223c1e7fa789530c39fcd143d3886d3b | [
"MIT"
] | 1 | 2019-08-16T01:17:09.000Z | 2019-08-16T01:17:09.000Z | #include <getopt.h>
#include <cstdint>
#include <string>
#include <iostream>
#include <exception>
#include "sequence.hpp"
#include "spoa/spoa.hpp"
#include "bioparser/bioparser.hpp"
static const std::string version = "v3.0.1";
static struct option options[] = {
{"algorithm", required_argument, nullptr, 'l'},
... | 34.103093 | 92 | 0.502418 | LiangGuoYu |
95138877d849e1b0def7a93bc119145943a2b669 | 947 | cpp | C++ | kernel/ports.cpp | shockkolate/shockk-os | 1cbe2e14be6a8dd4bbe808e199284b6979dacdff | [
"Apache-2.0"
] | 2 | 2015-11-16T07:30:38.000Z | 2016-03-26T21:14:42.000Z | kernel/ports.cpp | shockkolate/shockk-os | 1cbe2e14be6a8dd4bbe808e199284b6979dacdff | [
"Apache-2.0"
] | null | null | null | kernel/ports.cpp | shockkolate/shockk-os | 1cbe2e14be6a8dd4bbe808e199284b6979dacdff | [
"Apache-2.0"
] | null | null | null | #include <kernel/ports.h>
uint8_t ports_inb(unsigned short port) {
uint8_t result;
__asm__ __volatile__ ("in %1, %0" : "=a" (result) : "d" (port));
return result;
}
uint16_t ports_ins(unsigned short port) {
uint16_t result;
__asm__ __volatile__ ("in %1, %0" : "=a" (result) : "d" (port));
return result;
}
uint3... | 26.305556 | 82 | 0.634636 | shockkolate |
95142327f8d73d2e272de7cd5d192dec4252d33d | 12,654 | hpp | C++ | inc/Services/StorageAndRetrievalService.hpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | inc/Services/StorageAndRetrievalService.hpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | inc/Services/StorageAndRetrievalService.hpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | #ifndef ECSS_SERVICES_STORAGEANDRETRIEVALSERVICE_HPP
#define ECSS_SERVICES_STORAGEANDRETRIEVALSERVICE_HPP
#include "ECSS_Definitions.hpp"
#include "Service.hpp"
#include "ErrorHandler.hpp"
#include "Helpers/PacketStore.hpp"
#include "etl/map.h"
/**
* Implementation of ST[15] Storage and Retrieval Service, as defined... | 35.745763 | 116 | 0.735973 | ACubeSAT |
951504d692ddd20a29a59fc9461cf1761fc90d10 | 336 | hpp | C++ | BlueNoise/src/Library/Sample.hpp | 1iyiwei/noise | 0d1be2030518517199dff5c7e7514ee072037d59 | [
"MIT"
] | 24 | 2016-12-13T09:48:17.000Z | 2022-01-13T03:24:45.000Z | BlueNoise/src/Library/Sample.hpp | 1iyiwei/noise | 0d1be2030518517199dff5c7e7514ee072037d59 | [
"MIT"
] | 2 | 2019-03-29T06:44:41.000Z | 2019-11-12T03:14:25.000Z | BlueNoise/src/Library/Sample.hpp | 1iyiwei/noise | 0d1be2030518517199dff5c7e7514ee072037d59 | [
"MIT"
] | 8 | 2016-11-09T15:54:19.000Z | 2021-04-08T14:04:17.000Z | /*
Sample.hpp
a sample with value and coordinate
Li-Yi Wei
06/28/2007
*/
#ifndef _SAMPLE_HPP
#define _SAMPLE_HPP
#include "Coordinate.hpp"
typedef CoordinateT<float> Coordinate;
class Sample
{
public:
Sample(const int dim);
~Sample(void);
public:
float value;
Coordinate coordin... | 11.2 | 38 | 0.669643 | 1iyiwei |
95157ef9fb1fbb630a97dea115860697d2688c01 | 2,288 | hpp | C++ | deps/src/boost_1_65_1/boost/metaparse/v1/keyword.hpp | shreyasvj25/turicreate | 32e84ca16aef8d04aff3d49ae9984bd49326bffd | [
"BSD-3-Clause"
] | 11,356 | 2017-12-08T19:42:32.000Z | 2022-03-31T16:55:25.000Z | deps/src/boost_1_65_1/boost/metaparse/v1/keyword.hpp | shreyasvj25/turicreate | 32e84ca16aef8d04aff3d49ae9984bd49326bffd | [
"BSD-3-Clause"
] | 2,402 | 2017-12-08T22:31:01.000Z | 2022-03-28T19:25:52.000Z | deps/src/boost_1_65_1/boost/metaparse/v1/keyword.hpp | shreyasvj25/turicreate | 32e84ca16aef8d04aff3d49ae9984bd49326bffd | [
"BSD-3-Clause"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | #ifndef BOOST_METAPARSE_V1_KEYWORD_HPP
#define BOOST_METAPARSE_V1_KEYWORD_HPP
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2009 - 2010.
// 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 <... | 27.902439 | 77 | 0.590909 | shreyasvj25 |
95169b8f50aaad152f30a32783937523f1f907b1 | 16,151 | hpp | C++ | stream/core.hpp | alipha/cpp | 0e880164e58ee8fcfe2fc818b4b9de289a4dd476 | [
"MIT"
] | 4 | 2020-10-28T21:31:30.000Z | 2021-08-02T21:38:22.000Z | stream/core.hpp | alipha/cpp | 0e880164e58ee8fcfe2fc818b4b9de289a4dd476 | [
"MIT"
] | null | null | null | stream/core.hpp | alipha/cpp | 0e880164e58ee8fcfe2fc818b4b9de289a4dd476 | [
"MIT"
] | null | null | null | #ifndef LIPH_STREAM_CORE_HPP
#define LIPH_STREAM_CORE_HPP
#include <cstddef>
#include <functional>
#include <iterator>
#include <memory>
#include <optional>
#include <stdexcept>
#include <tuple>
#include <type_traits>
#include <utility>
namespace stream {
class streamer_error : public std::runtime_error {
public:
... | 35.653422 | 165 | 0.667018 | alipha |
9516beedad8ae9daf9b1fa96b97b46ecb5df3bf9 | 786 | cpp | C++ | Drivers/CardsDriver.cpp | mdsharif-me/warzone-reloaded | 660194d08422c3d5ffd8c23d00ceb8064b6153ad | [
"MIT"
] | 1 | 2022-02-08T19:08:39.000Z | 2022-02-08T19:08:39.000Z | Drivers/CardsDriver.cpp | mdsharif-me/warzone-reloaded | 660194d08422c3d5ffd8c23d00ceb8064b6153ad | [
"MIT"
] | null | null | null | Drivers/CardsDriver.cpp | mdsharif-me/warzone-reloaded | 660194d08422c3d5ffd8c23d00ceb8064b6153ad | [
"MIT"
] | null | null | null | //
// Created by tigerrrr on 2/13/2022.
//
#include <iostream>
#include "../Headers/Cards.h"
using namespace std;
int main() {
Card* card1 = new Card("Bomb");
Card* card2 = new Card("Airlift");
const char * CardTypes[5] = { "Blockade", "Bomb", "Reinforcement", "Diplomacy", "airlift"};
Deck* de... | 20.153846 | 97 | 0.561069 | mdsharif-me |
9516e154551241d8f72c1d23c5abb7cf3134b3f6 | 858 | cpp | C++ | tests/expected/rect.cpp | div72/py2many | 60277bc13597bd32d078b88a7390715568115fc6 | [
"MIT"
] | 345 | 2021-01-28T17:33:08.000Z | 2022-03-25T16:07:56.000Z | tests/expected/rect.cpp | mkos11/py2many | be6cfaad5af32c43eb24f182cb20ad63b979d4ef | [
"MIT"
] | 291 | 2021-01-31T13:15:06.000Z | 2022-03-23T21:28:49.000Z | tests/expected/rect.cpp | mkos11/py2many | be6cfaad5af32c43eb24f182cb20ad63b979d4ef | [
"MIT"
] | 23 | 2021-02-09T17:15:03.000Z | 2022-02-03T05:57:44.000Z | #include <cassert> // NOLINT(build/include_order)
#include <iostream> // NOLINT(build/include_order)
#include "pycpp/runtime/builtins.h" // NOLINT(build/include_order)
#include "pycpp/runtime/sys.h" // NOLINT(build/include_order)
/* This file implements a rectangle class */
class Rectangle {
public:
int... | 24.514286 | 67 | 0.645688 | div72 |
95191f47b17aaae95099d0f6b262c22f923d8bbf | 1,025 | cpp | C++ | test/src/Game_Tests.cpp | gravity981/settlers | 0e2684f2358dbab8fdc70de4a9c94133a324a2b7 | [
"Unlicense"
] | null | null | null | test/src/Game_Tests.cpp | gravity981/settlers | 0e2684f2358dbab8fdc70de4a9c94133a324a2b7 | [
"Unlicense"
] | null | null | null | test/src/Game_Tests.cpp | gravity981/settlers | 0e2684f2358dbab8fdc70de4a9c94133a324a2b7 | [
"Unlicense"
] | null | null | null | #include <gtest/gtest.h>
#include <spdlog/spdlog.h>
#include "mock/MockGameObserver.h"
#include "mock/MockWorld.h"
#include "settlers/Game.h"
TEST(DISABLED_GameTests, startGameShouldChangeState)
{
MockWorld world;
EXPECT_CALL(world, generateFromFile).Times(1);
MockGameObserver observer;
EXPECT_CALL(observer, ... | 35.344828 | 81 | 0.647805 | gravity981 |
951a51bad8332cd5857563ca3efe7a0c76bed8ad | 389 | cpp | C++ | searching/linear.cpp | tusharad/Data-structures-and-algorithms | fde2dffb0ff19c7f88d01ac0ecb926c67348ad21 | [
"MIT"
] | null | null | null | searching/linear.cpp | tusharad/Data-structures-and-algorithms | fde2dffb0ff19c7f88d01ac0ecb926c67348ad21 | [
"MIT"
] | null | null | null | searching/linear.cpp | tusharad/Data-structures-and-algorithms | fde2dffb0ff19c7f88d01ac0ecb926c67348ad21 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
int val,flag = 0;
int arr[10] = {23,45,1,56,77,4};
int n = 6;
cout<<"Enter element to find"<<endl;
cin>>val;
for(int i = 0;i < n;i++){
if(arr[i] == val){
cout<<val<<" found at index "<<i+1<<endl;
flag = 1;
... | 20.473684 | 53 | 0.467866 | tusharad |
951c798b5eb4a51a53857ca6b839e586966a78a8 | 2,336 | cpp | C++ | code/modules/application/src/application/application.cpp | BrightComposite/RaptureStateToolkit | 6eb3c831540ba6a9d29e903dd3c537aac2e7f91f | [
"MIT"
] | null | null | null | code/modules/application/src/application/application.cpp | BrightComposite/RaptureStateToolkit | 6eb3c831540ba6a9d29e903dd3c537aac2e7f91f | [
"MIT"
] | null | null | null | code/modules/application/src/application/application.cpp | BrightComposite/RaptureStateToolkit | 6eb3c831540ba6a9d29e903dd3c537aac2e7f91f | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
#include <application/application.h>
#include <iostream>
#if defined(_MSC_VER) && (defined(_DEBUG) || defined(DEBUG))
//#include <vld.h>
#endif
//---------------------------------------------------------------------------
namespace asd
{... | 25.67033 | 107 | 0.556507 | BrightComposite |
951ddc5c5610781a10b5889ec222a12158def757 | 3,929 | cpp | C++ | src/apps/processcontroller/KernelMemoryBarMenuItem.cpp | Yn0ga/haiku | 74e271b2a286c239e60f0ec261f4f197f4727eee | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/apps/processcontroller/KernelMemoryBarMenuItem.cpp | Yn0ga/haiku | 74e271b2a286c239e60f0ec261f4f197f4727eee | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/apps/processcontroller/KernelMemoryBarMenuItem.cpp | Yn0ga/haiku | 74e271b2a286c239e60f0ec261f4f197f4727eee | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /*
* Copyright 2000, Georges-Edouard Berenger. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include "KernelMemoryBarMenuItem.h"
#include "Colors.h"
#include "MemoryBarMenu.h"
#include "ProcessController.h"
#include <stdio.h>
#include <Catalog.h>
#include <StringForSize.h>
#undef B... | 23.957317 | 76 | 0.709086 | Yn0ga |
95209cb0069d4e1c594836da7a2a341c45809709 | 4,853 | cc | C++ | netlibcc/net/EPoller.cc | kohakus/tiny-netlib | da9998ee06f4e2eb5ebcaf0e383196269dea1f33 | [
"MIT"
] | 1 | 2021-03-05T10:14:27.000Z | 2021-03-05T10:14:27.000Z | netlibcc/net/EPoller.cc | kohakus/tiny-netlib | da9998ee06f4e2eb5ebcaf0e383196269dea1f33 | [
"MIT"
] | null | null | null | netlibcc/net/EPoller.cc | kohakus/tiny-netlib | da9998ee06f4e2eb5ebcaf0e383196269dea1f33 | [
"MIT"
] | null | null | null | #include "netlibcc/net/EPoller.h"
#include <poll.h>
#include <errno.h>
#include <sys/epoll.h>
#include <unistd.h>
#include <cassert>
#include "netlibcc/net/Channel.h"
#include "netlibcc/core/Logger.h"
// utilize POLL flags in epoll functions for compatibility
static_assert(EPOLLIN == POLLIN, "epoll event flag... | 34.176056 | 102 | 0.602102 | kohakus |
9521d512682ebffd8467f2ed3f6f906106bb5103 | 1,031 | cpp | C++ | cs6366-computer-graphics/semester_project/cel_shader/cel_shader/ShaderProgram.cpp | gsteelman/utd | 65bf3b81b7a089612f6c7546aa0bbdfbdcdb334e | [
"Apache-2.0"
] | 3 | 2017-03-17T15:15:11.000Z | 2020-10-01T16:05:17.000Z | cs6366-computer-graphics/semester_project/cel_shader/cel_shader/ShaderProgram.cpp | gsteelman/utd | 65bf3b81b7a089612f6c7546aa0bbdfbdcdb334e | [
"Apache-2.0"
] | null | null | null | cs6366-computer-graphics/semester_project/cel_shader/cel_shader/ShaderProgram.cpp | gsteelman/utd | 65bf3b81b7a089612f6c7546aa0bbdfbdcdb334e | [
"Apache-2.0"
] | 7 | 2016-02-07T22:56:26.000Z | 2021-02-26T02:50:28.000Z | #include "ShaderProgram.h"
ShaderProgram::ShaderProgram() : m_ID(-1) {}
ShaderProgram::~ShaderProgram() {}
ShaderProgram::ShaderProgram( const string& vert, const string& frag ) {
read( vert, frag );
compile();
}
GLvoid ShaderProgram::read( const string& vert, const string& frag ) {
m_vert.m_type = GL_VERTEX... | 21.040816 | 72 | 0.682832 | gsteelman |
95282ab90877db8fc56209b874837ed43ce97156 | 6,458 | cpp | C++ | util/summation_test.cpp | RedBeard0531/mongo_utils | 402c2023df7d67609ce9da8e405bf13cdd270e20 | [
"Apache-2.0"
] | 1 | 2018-03-14T21:48:43.000Z | 2018-03-14T21:48:43.000Z | util/summation_test.cpp | RedBeard0531/mongo_utils | 402c2023df7d67609ce9da8e405bf13cdd270e20 | [
"Apache-2.0"
] | null | null | null | util/summation_test.cpp | RedBeard0531/mongo_utils | 402c2023df7d67609ce9da8e405bf13cdd270e20 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2016 MongoDB Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 33.117949 | 100 | 0.611025 | RedBeard0531 |
95288be34441d5030148a28f98df66bf9d4652bd | 913 | cc | C++ | FWCore/MessageService/test/UnitTestClient_O.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | FWCore/MessageService/test/UnitTestClient_O.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | FWCore/MessageService/test/UnitTestClient_O.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/global/EDAnalyzer.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/StreamID.h"
namespace edmtest {
class UnitTestClient_O : p... | 36.52 | 98 | 0.761227 | Purva-Chaudhari |
9528a92fec5fbccd7dd5027b2c2771880c85cfef | 37,860 | cpp | C++ | Plugins/MadaraLibrary/Source/ThirdParty/madara/transport/Transport.cpp | jredmondson/GamsPlugins | d133f86c263997a55f11b3b3d3344faeee60d726 | [
"BSD-2-Clause"
] | 3 | 2020-03-25T01:59:20.000Z | 2020-06-02T17:58:05.000Z | Plugins/MadaraLibrary/Source/ThirdParty/madara/transport/Transport.cpp | jredmondson/GamsPlugins | d133f86c263997a55f11b3b3d3344faeee60d726 | [
"BSD-2-Clause"
] | null | null | null | Plugins/MadaraLibrary/Source/ThirdParty/madara/transport/Transport.cpp | jredmondson/GamsPlugins | d133f86c263997a55f11b3b3d3344faeee60d726 | [
"BSD-2-Clause"
] | 1 | 2020-11-05T23:04:05.000Z | 2020-11-05T23:04:05.000Z | #include "Transport.h"
#include "madara/utility/Utility.h"
#include "madara/expression/Interpreter.h"
#include "madara/knowledge/ContextGuard.h"
#include <algorithm>
namespace madara
{
namespace transport
{
Base::Base(const std::string& id, TransportSettings& new_settings,
knowledge::ThreadSafeContext& context)
... | 29.371606 | 82 | 0.624459 | jredmondson |
952dc2242669efa197fd26b56f945f40a3137c0d | 2,850 | hpp | C++ | include/LIEF/ART/enums.hpp | ahawad/LIEF | 88931ea405d9824faa5749731427533e0c27173e | [
"Apache-2.0"
] | null | null | null | include/LIEF/ART/enums.hpp | ahawad/LIEF | 88931ea405d9824faa5749731427533e0c27173e | [
"Apache-2.0"
] | null | null | null | include/LIEF/ART/enums.hpp | ahawad/LIEF | 88931ea405d9824faa5749731427533e0c27173e | [
"Apache-2.0"
] | null | null | null | /* Copyright 2017 - 2022 R. Thomas
* Copyright 2017 - 2022 Quarkslab
*
* 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 req... | 22.619048 | 75 | 0.720702 | ahawad |
9530cad32c3d43378b6b6ea63c9c34fa820f333e | 4,087 | cpp | C++ | Algorithms/Data Structure/Segment Tree/Segment Tree (all-in-one version).cpp | purhan/mindsport | d14fe8917c64b475589f494d98b74e99c9e064e5 | [
"MIT"
] | null | null | null | Algorithms/Data Structure/Segment Tree/Segment Tree (all-in-one version).cpp | purhan/mindsport | d14fe8917c64b475589f494d98b74e99c9e064e5 | [
"MIT"
] | null | null | null | Algorithms/Data Structure/Segment Tree/Segment Tree (all-in-one version).cpp | purhan/mindsport | d14fe8917c64b475589f494d98b74e99c9e064e5 | [
"MIT"
] | 1 | 2021-07-19T08:39:38.000Z | 2021-07-19T08:39:38.000Z | // Segment Tree (all-in-one version)
// It supports range update, range adjust, range min query, range max query, range sum query with lazy propagation
// Reference: https://noiref.codecla.ws/ds/
#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 30;
const int MAX_N = 100000 + 5;
const int MAX_L = 2... | 28.78169 | 130 | 0.465867 | purhan |
953140c982d145318fcd52bb87a782273f158fcf | 4,569 | cpp | C++ | X-Engine/src/Platforms/OperatingSystems/Windows10/Win10Window.cpp | JohnMichaelProductions/X-Engine | 218ffcf64bfe5d5aed51b483c6f6986831ceeec4 | [
"Apache-2.0"
] | 4 | 2020-02-17T07:08:26.000Z | 2020-08-07T21:35:12.000Z | X-Engine/src/Platforms/OperatingSystems/Windows10/Win10Window.cpp | JohnMichaelProductions/X-Engine | 218ffcf64bfe5d5aed51b483c6f6986831ceeec4 | [
"Apache-2.0"
] | 25 | 2020-03-08T05:35:25.000Z | 2020-07-08T01:59:52.000Z | X-Engine/src/Platforms/OperatingSystems/Windows10/Win10Window.cpp | JohnMichaelProductions/X-Engine | 218ffcf64bfe5d5aed51b483c6f6986831ceeec4 | [
"Apache-2.0"
] | 1 | 2020-10-15T12:39:29.000Z | 2020-10-15T12:39:29.000Z | // Source file for Win10Window class functions, configured for Windows 10, also derived from window class
#include "Xpch.h"
#include <wtypes.h>
#include "XEngine/Core/Input.h"
#include "XEngine/EventSystem/KeyEvent.h"
#include "XEngine/EventSystem/MouseEvent.h"
#include "XEngine/EventSystem/ApplicationEvent.h"
#include... | 28.735849 | 115 | 0.712629 | JohnMichaelProductions |