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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2938faf77b20d7c7ec88dbcae3064c3a4bd1102e | 6,306 | cc | C++ | gpio.cc | pablogad/libpt6312 | 068e4cbb34e7cedf28225f1750093cb35fe14c8f | [
"MIT"
] | null | null | null | gpio.cc | pablogad/libpt6312 | 068e4cbb34e7cedf28225f1750093cb35fe14c8f | [
"MIT"
] | null | null | null | gpio.cc | pablogad/libpt6312 | 068e4cbb34e7cedf28225f1750093cb35fe14c8f | [
"MIT"
] | null | null | null | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
#include "gpio.h"
#define BCM2708_PERI_BASE 0x20000000
#define BCM2709_PERI_BASE 0x3F000000
#define BCM2711_PERI_BASE 0xFE000000
#define GPIO_REGISTER_OFFSET 0x200000
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#i... | 30.463768 | 92 | 0.621313 | pablogad |
293b00cc509d5365ac435ac9d368e545b0a9856b | 340 | cpp | C++ | WayTooLong2.cpp | AmitHasanShuvo/Programming | f47ecc626e518a0bf5f9f749afd15ce67bbe737b | [
"MIT"
] | 8 | 2019-05-26T19:24:13.000Z | 2021-03-24T17:36:14.000Z | WayTooLong2.cpp | AmitHasanShuvo/Programming | f47ecc626e518a0bf5f9f749afd15ce67bbe737b | [
"MIT"
] | null | null | null | WayTooLong2.cpp | AmitHasanShuvo/Programming | f47ecc626e518a0bf5f9f749afd15ce67bbe737b | [
"MIT"
] | 1 | 2020-04-19T04:59:54.000Z | 2020-04-19T04:59:54.000Z | #include <iostream>
using namespace std;
int main()
{
int n;
string s;
cin >> n;
while (n--)
{
cin >> s;
if (s.length > 10)
{
cout << s [0] << s.length() - 2 << s[s.length() - 1] << endl;
}
else
{
cout << s <<endl;
}
... | 14.782609 | 73 | 0.358824 | AmitHasanShuvo |
293c36ddd2874c631ae47e70850b37497fc89e71 | 2,773 | cpp | C++ | source/ParadiseCracked.WidescreenFix/dllmain.cpp | Sergeanur/WidescreenFixesPack | 7e159be860a870476a97c322a0c4dd244e50cee7 | [
"MIT"
] | null | null | null | source/ParadiseCracked.WidescreenFix/dllmain.cpp | Sergeanur/WidescreenFixesPack | 7e159be860a870476a97c322a0c4dd244e50cee7 | [
"MIT"
] | null | null | null | source/ParadiseCracked.WidescreenFix/dllmain.cpp | Sergeanur/WidescreenFixesPack | 7e159be860a870476a97c322a0c4dd244e50cee7 | [
"MIT"
] | null | null | null | #include "stdafx.h"
struct Screen
{
int Width;
int Height;
float fWidth;
float fHeight;
float fAspectRatio;
} Screen;
void Init()
{
CIniReader iniReader("");
Screen.Width = iniReader.ReadInteger("MAIN", "ResX", 0);
Screen.Height = iniReader.ReadInteger("MAIN", "ResY", 0);
if (!Scr... | 33.011905 | 104 | 0.635052 | Sergeanur |
293e5316bf711593f8a4a216551e2bd2fc3252f5 | 9,613 | cpp | C++ | Project 10-16/15 Geometry Shader Beginning/GameApp.cpp | flygod1159/DirectX11-With-Windows-SDK | 236acb9c658af6fa22c5319871fc88c2e80f6bb1 | [
"MIT"
] | null | null | null | Project 10-16/15 Geometry Shader Beginning/GameApp.cpp | flygod1159/DirectX11-With-Windows-SDK | 236acb9c658af6fa22c5319871fc88c2e80f6bb1 | [
"MIT"
] | 1 | 2020-02-21T17:11:24.000Z | 2020-02-21T17:11:24.000Z | Project 10-16/15 Geometry Shader Beginning/GameApp.cpp | huangten/DirectX11-With-Windows-SDK | 148b6306a078618f82b02ae25969dbad2831e456 | [
"MIT"
] | null | null | null | #include "GameApp.h"
#include "d3dUtil.h"
#include "DXTrace.h"
using namespace DirectX;
GameApp::GameApp(HINSTANCE hInstance)
: D3DApp(hInstance),
m_ShowMode(Mode::SplitedTriangle),
m_VertexCount()
{
}
GameApp::~GameApp()
{
}
bool GameApp::Init()
{
if (!D3DApp::Init())
return false;
// 务必先初始化所有渲染状态,以供下面的特效使用... | 26.628809 | 124 | 0.707688 | flygod1159 |
293fba4f6b92bc9bdc73f3241880a8ae94864240 | 2,191 | cc | C++ | src/time_range.cc | aexoden/chatstats | 07b7321cb6eed4d667ba1de9abbd29249286154f | [
"MIT"
] | null | null | null | src/time_range.cc | aexoden/chatstats | 07b7321cb6eed4d667ba1de9abbd29249286154f | [
"MIT"
] | null | null | null | src/time_range.cc | aexoden/chatstats | 07b7321cb6eed4d667ba1de9abbd29249286154f | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2012 Jason Lynch <jason@calindora.com>
*
* 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, ... | 39.125 | 154 | 0.746691 | aexoden |
293fd0ef9abe948383bde73e55271725660759f9 | 46,152 | cpp | C++ | gen/windows/kin/eigen/src/Jb_LeftToeBottom_to_RightToeBottom.cpp | UMich-BipedLab/Cassie_StateEstimation | d410ddce0ab342651f5ec0540c2867faf959a3a9 | [
"BSD-3-Clause"
] | 26 | 2018-07-20T15:20:19.000Z | 2022-03-14T07:12:12.000Z | gen/windows/kin/eigen/src/Jb_LeftToeBottom_to_RightToeBottom.cpp | UMich-BipedLab/Cassie_StateEstimation | d410ddce0ab342651f5ec0540c2867faf959a3a9 | [
"BSD-3-Clause"
] | 2 | 2019-04-19T22:57:00.000Z | 2022-01-11T12:46:20.000Z | gen/windows/kin/eigen/src/Jb_LeftToeBottom_to_RightToeBottom.cpp | UMich-BipedLab/Cassie_StateEstimation | d410ddce0ab342651f5ec0540c2867faf959a3a9 | [
"BSD-3-Clause"
] | 10 | 2018-07-29T08:05:14.000Z | 2022-02-03T08:48:11.000Z | /*
* Automatically Generated from Mathematica.
* Thu 23 May 2019 13:33:22 GMT-04:00
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "Jb_LeftToeBottom_to_RightToeBottom.h"
#ifdef _MSC_VER
#define INLINE __forceinline /* use __forceinline (VC++ specific) */
#else
#define INLINE ... | 22.961194 | 136 | 0.639777 | UMich-BipedLab |
2940fcdcd73945aed3002f0e0026e9636affb263 | 4,363 | cpp | C++ | Problem_3/memory.cpp | JHernandez2802/CSCE4600_Project2 | 9712fa66b60592ed1d124985bb387ffbda0a97fc | [
"MIT"
] | null | null | null | Problem_3/memory.cpp | JHernandez2802/CSCE4600_Project2 | 9712fa66b60592ed1d124985bb387ffbda0a97fc | [
"MIT"
] | null | null | null | Problem_3/memory.cpp | JHernandez2802/CSCE4600_Project2 | 9712fa66b60592ed1d124985bb387ffbda0a97fc | [
"MIT"
] | null | null | null | // File memory.cpp
/*****************************************************************
Programmer: Matthew Sherwood, Li Zhang, Juan Hernandez *
Class: CSCE 4600 *
Date: 04/27/2015 *
Assignment: Project 2 ... | 35.762295 | 122 | 0.581251 | JHernandez2802 |
29426a4924d0a1ce932071854b40ee91dac53887 | 20,914 | hxx | C++ | main/ucb/source/ucp/file/filrset.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/ucb/source/ucp/file/filrset.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/ucb/source/ucp/file/filrset.hxx | 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... | 30.755882 | 112 | 0.663144 | Grosskopf |
29439ad570d02677ede21e16267f328998f36425 | 25,053 | cpp | C++ | src/CodeGen_GPU_Host.cpp | RaduAlexandru/Halide | c72a42d14a92754328555c50ceea42e6979b807d | [
"MIT"
] | null | null | null | src/CodeGen_GPU_Host.cpp | RaduAlexandru/Halide | c72a42d14a92754328555c50ceea42e6979b807d | [
"MIT"
] | null | null | null | src/CodeGen_GPU_Host.cpp | RaduAlexandru/Halide | c72a42d14a92754328555c50ceea42e6979b807d | [
"MIT"
] | 1 | 2019-11-14T04:57:53.000Z | 2019-11-14T04:57:53.000Z | #include <sstream>
#include "CodeGen_GPU_Host.h"
#include "CodeGen_Internal.h"
#include "CodeGen_Metal_Dev.h"
#include "CodeGen_OpenCL_Dev.h"
#include "CodeGen_OpenGLCompute_Dev.h"
#include "CodeGen_OpenGL_Dev.h"
#include "CodeGen_PTX_Dev.h"
#include "CodeGen_D3D12Compute_Dev.h"
#include "Debug.h"
#include "ExprUsesVa... | 42.319257 | 119 | 0.574901 | RaduAlexandru |
29441e0dd15f1eed77b2f1dabb2b4d25a3b28687 | 23,791 | cc | C++ | src/netlicensing.cc | optimad/NetLicensingClient-cpp | ff0004cd73af75321a951a0d57dad6d37c03a441 | [
"Apache-2.0"
] | null | null | null | src/netlicensing.cc | optimad/NetLicensingClient-cpp | ff0004cd73af75321a951a0d57dad6d37c03a441 | [
"Apache-2.0"
] | null | null | null | src/netlicensing.cc | optimad/NetLicensingClient-cpp | ff0004cd73af75321a951a0d57dad6d37c03a441 | [
"Apache-2.0"
] | null | null | null | #include "netlicensing/constants.h"
#include "netlicensing/netlicensing.h"
#include "netlicensing/service.h"
#include "netlicensing/validation_parameters.h"
#include <time.h>
namespace netlicensing {
/**
* C++ representation of the Product Service. See NetLicensingAPI for details:
* https://netlicensing.io/wiki/... | 43.493601 | 146 | 0.741625 | optimad |
294497bfa2080d95dcd27985a1da3700940591dc | 4,139 | cpp | C++ | src/Volume.cpp | dermegges/ugl | e5551f98d59c115460d1298d9082996b5da119da | [
"Apache-2.0"
] | null | null | null | src/Volume.cpp | dermegges/ugl | e5551f98d59c115460d1298d9082996b5da119da | [
"Apache-2.0"
] | null | null | null | src/Volume.cpp | dermegges/ugl | e5551f98d59c115460d1298d9082996b5da119da | [
"Apache-2.0"
] | null | null | null | /** @file Volume.cpp
Copyright 2016 Computational Topology Group, University of Kaiserslautern
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/LICENS... | 22.617486 | 120 | 0.669727 | dermegges |
294657967ad9d80bcc85fbabf717da606ad5a548 | 1,161 | cpp | C++ | src/testAxisTranslator.cpp | MINDS-i/Drone-Tests | 212fa812ce0825fd059ddb9fcf95042a5c7f73cb | [
"Apache-2.0"
] | 3 | 2016-01-06T19:34:17.000Z | 2018-11-29T17:22:02.000Z | src/testAxisTranslator.cpp | MINDS-i/Drone-Tests | 212fa812ce0825fd059ddb9fcf95042a5c7f73cb | [
"Apache-2.0"
] | null | null | null | src/testAxisTranslator.cpp | MINDS-i/Drone-Tests | 212fa812ce0825fd059ddb9fcf95042a5c7f73cb | [
"Apache-2.0"
] | null | null | null | #include <avr/io.h>
#include <util/delay.h>
#include <avr/sleep.h>
#include <stdio.h>
#include "testHooks.h"
#include "math/Vec3.h"
#include "input/AxisTranslator.h"
//TESTING "math/Vec3.cpp"
Vec3 axis[]{
Vec3(0,0,0),
Vec3(1,0,0),
Vec3(0,1,0),
Vec3(0,0,1),
Vec3(1,1,1),
Vec3(0,-1,-1),
Vec3... | 21.109091 | 63 | 0.562446 | MINDS-i |
294925d214d62c43f56d4a9a2bcd57d2ff75fb06 | 2,037 | cpp | C++ | Trabalho 3/source/segmentation.cpp | RafaelAmauri/Teoria-de-Grafos | 4c5f992b22362379f5dce23b41319abf20cd6c82 | [
"MIT"
] | null | null | null | Trabalho 3/source/segmentation.cpp | RafaelAmauri/Teoria-de-Grafos | 4c5f992b22362379f5dce23b41319abf20cd6c82 | [
"MIT"
] | null | null | null | Trabalho 3/source/segmentation.cpp | RafaelAmauri/Teoria-de-Grafos | 4c5f992b22362379f5dce23b41319abf20cd6c82 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include "DisjointForest.h"
inline float thresholdFunction(const float componentSize,const float k){
return k/componentSize;
}
void segmentImage(const std::vector<edge_pointer> &edges, int totalComponents, const int minimumComponentSize, const float kValue) {
std::cout <<... | 37.722222 | 132 | 0.592538 | RafaelAmauri |
29494e871e219cdfb3f5f432d867eecbc25ce581 | 671 | cc | C++ | tests/CompileTests/ElsaTestCases/notCompilable/t0230.cc | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | tests/CompileTests/ElsaTestCases/notCompilable/t0230.cc | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | tests/CompileTests/ElsaTestCases/notCompilable/t0230.cc | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | // t0230.cc
// function template overloadings that differ only in constness under pointer
// needed for ostream.h, __copy_aux2
// overloading 0: most general
template <class S>
int foo(S x) // line 7
{
return 1;
}
// overloading 1: pointer to non-const
template <class T>
int foo(T *x) ... | 18.135135 | 77 | 0.576751 | maurizioabba |
294af1b378db035cfb4dd468656132b77182c39d | 443 | cpp | C++ | src/software/gui/geom/geometry_conversion.cpp | scveloso/Software | ac882d3df0aa0d108e5157c076c82c030d023e12 | [
"MIT"
] | null | null | null | src/software/gui/geom/geometry_conversion.cpp | scveloso/Software | ac882d3df0aa0d108e5157c076c82c030d023e12 | [
"MIT"
] | null | null | null | src/software/gui/geom/geometry_conversion.cpp | scveloso/Software | ac882d3df0aa0d108e5157c076c82c030d023e12 | [
"MIT"
] | null | null | null | #include "software/gui/geom/geometry_conversion.h"
QPointF createQPointF(const Point& point)
{
return QPointF(point.x(), point.y());
}
QRectF createQRectF(const Rectangle& rectangle)
{
return QRectF(createQPointF(rectangle.nwCorner()),
createQPointF(rectangle.seCorner()));
}
QLineF createQL... | 24.611111 | 89 | 0.724605 | scveloso |
294ea9ce8eb36ca16be33917c1e49b62f3e4a0d0 | 360 | hh | C++ | include/ai/logic/lexer.hh | obs145628/ai-cpp | 32ff9365e0d3a36d219352ee6e3a01e62c633cc9 | [
"MIT"
] | null | null | null | include/ai/logic/lexer.hh | obs145628/ai-cpp | 32ff9365e0d3a36d219352ee6e3a01e62c633cc9 | [
"MIT"
] | null | null | null | include/ai/logic/lexer.hh | obs145628/ai-cpp | 32ff9365e0d3a36d219352ee6e3a01e62c633cc9 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include "token.hh"
namespace logic
{
class Lexer
{
public:
Lexer(std::istream& is);
bool is_eof() const;
Token peek() const;
Token next();
Token eat(Token::Type type);
private:
std::istream& is_;
Token token_;
Token read_();
Token rea... | 11.612903 | 32 | 0.591667 | obs145628 |
29522cada724b26ebd22502132b90211b9527c67 | 8,799 | hpp | C++ | app/liblsl/lslboost/boost/mpl/aux_/full_lambda.hpp | mvidaldp/liblsl-android-builder | e48402fb88ca1b381fd38c70e105df8bd0f3902d | [
"MIT"
] | 58 | 2018-12-08T23:53:50.000Z | 2022-03-26T14:14:40.000Z | app/liblsl/lslboost/boost/mpl/aux_/full_lambda.hpp | mvidaldp/liblsl-android-builder | e48402fb88ca1b381fd38c70e105df8bd0f3902d | [
"MIT"
] | 125 | 2018-11-21T15:42:39.000Z | 2022-03-29T12:15:54.000Z | app/liblsl/lslboost/boost/mpl/aux_/full_lambda.hpp | mvidaldp/liblsl-android-builder | e48402fb88ca1b381fd38c70e105df8bd0f3902d | [
"MIT"
] | 42 | 2019-03-06T13:43:18.000Z | 2022-03-21T08:55:34.000Z |
#if !defined(BOOST_PP_IS_ITERATING)
///// header body
#ifndef BOOST_MPL_AUX_FULL_LAMBDA_HPP_INCLUDED
#define BOOST_MPL_AUX_FULL_LAMBDA_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2001-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http:... | 24.785915 | 85 | 0.696897 | mvidaldp |
2953c7b8c7ef22143c0d0a9e3378a9fc4969feea | 1,884 | cpp | C++ | imageMultiply/imageMultiply.cpp | FreeSoftwareDevlopment/imageMultiply | d873f867ba216162d51f778c323dfa24d3f05dec | [
"MIT"
] | null | null | null | imageMultiply/imageMultiply.cpp | FreeSoftwareDevlopment/imageMultiply | d873f867ba216162d51f778c323dfa24d3f05dec | [
"MIT"
] | null | null | null | imageMultiply/imageMultiply.cpp | FreeSoftwareDevlopment/imageMultiply | d873f867ba216162d51f778c323dfa24d3f05dec | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <filesystem>
#include <wrapper_stbi.h>
#include "stbi_img_write.hpp"
#define s 4
#define path std::filesystem::path
#define exists std::filesystem::exists
int main(int argc, char* argv[])
{
if (argc > 3) {
int width[2], height[2], BPP[2];
memset(width, 0x00, sizeof... | 28.119403 | 90 | 0.593418 | FreeSoftwareDevlopment |
2954c9556366ebc00eabb264f642d21b779cab56 | 8,641 | cpp | C++ | Game/world/vob.cpp | okkindel/OpenGothic | 0055d51d4c96ff56fd330378b1c1a90c365d1316 | [
"MIT"
] | null | null | null | Game/world/vob.cpp | okkindel/OpenGothic | 0055d51d4c96ff56fd330378b1c1a90c365d1316 | [
"MIT"
] | null | null | null | Game/world/vob.cpp | okkindel/OpenGothic | 0055d51d4c96ff56fd330378b1c1a90c365d1316 | [
"MIT"
] | null | null | null | #include "vob.h"
#include <Tempest/Log>
#include <Tempest/Vec>
#include "interactive.h"
#include "staticobj.h"
#include "world/triggers/movetrigger.h"
#include "world/triggers/codemaster.h"
#include "world/triggers/triggerlist.h"
#include "world/triggers/triggerscript.h"
#include "world/triggers/triggerworldstart.h"... | 33.622568 | 113 | 0.678162 | okkindel |
29556f07b555f7505007b26dc332d879a1524186 | 839 | cpp | C++ | GetHuffmanCodes/main.cpp | rNexeR/AnalisisAlgoritmos | cc9a86a93319cd412a40eed300f8249630540d19 | [
"MIT"
] | null | null | null | GetHuffmanCodes/main.cpp | rNexeR/AnalisisAlgoritmos | cc9a86a93319cd412a40eed300f8249630540d19 | [
"MIT"
] | null | null | null | GetHuffmanCodes/main.cpp | rNexeR/AnalisisAlgoritmos | cc9a86a93319cd412a40eed300f8249630540d19 | [
"MIT"
] | null | null | null | #include "Test.h"
#include <iostream>
using namespace std;
void getHuffmanCodes(BinaryNode *tree, map<char, string> *answer, string current)
{
if (tree->left != 0)
{
getHuffmanCodes(tree->left, answer, current + '0');
}else{
(*answer)[tree->value] = current;
}
if (tree->right != 0... | 19.511628 | 83 | 0.561383 | rNexeR |
295983160c1716f3ea918b4809a81dd9863960e6 | 5,332 | cpp | C++ | 3rdParty/pin/pin-2.13-61206-msvc10-windows/source/tools/ToolUnitTests/args_lineno.cpp | FXTi/peachfuzz-code | 7ec04adb11f001b06ffb2b1415cc7723101486d3 | [
"MIT"
] | 10 | 2017-06-18T19:40:23.000Z | 2022-03-09T08:09:44.000Z | 3rdParty/pin/pin-2.13-61206-msvc10-windows/source/tools/ToolUnitTests/args_lineno.cpp | FXTi/peachfuzz-code | 7ec04adb11f001b06ffb2b1415cc7723101486d3 | [
"MIT"
] | 2 | 2019-07-01T12:39:41.000Z | 2020-11-09T11:40:54.000Z | 3rdParty/pin/pin-2.13-61206-msvc10-windows/source/tools/ToolUnitTests/args_lineno.cpp | FXTi/peachfuzz-code | 7ec04adb11f001b06ffb2b1415cc7723101486d3 | [
"MIT"
] | 11 | 2016-07-01T02:21:06.000Z | 2020-11-23T08:29:22.000Z | /*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2013 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyr... | 35.078947 | 111 | 0.53901 | FXTi |
295ac2c3cc97df233abcb9e17be3e886980b42eb | 5,392 | cc | C++ | ui/views/controls/scrollbar/scrollbar_unittest.cc | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | 5 | 2019-05-24T01:25:34.000Z | 2020-04-06T05:07:01.000Z | ui/views/controls/scrollbar/scrollbar_unittest.cc | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | null | null | null | ui/views/controls/scrollbar/scrollbar_unittest.cc | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | 5 | 2016-12-23T04:21:10.000Z | 2020-06-18T13:52:33.000Z | // Copyright (c) 2012 The Chromium 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 "ui/views/controls/scrollbar/native_scroll_bar.h"
#include "ui/views/controls/scrollbar/native_scroll_bar_views.h"
#include "ui/views/control... | 31.532164 | 79 | 0.73368 | domenic |
295ad9355f5f3d2e66bbc9f3923d4c27f5fddb51 | 75,435 | cpp | C++ | src/controller/tests/data_model/TestRead.cpp | sungho1shin/connectedhomeip | 050eb6d24487598a97743b6a23d41232e45bef88 | [
"Apache-2.0"
] | null | null | null | src/controller/tests/data_model/TestRead.cpp | sungho1shin/connectedhomeip | 050eb6d24487598a97743b6a23d41232e45bef88 | [
"Apache-2.0"
] | null | null | null | src/controller/tests/data_model/TestRead.cpp | sungho1shin/connectedhomeip | 050eb6d24487598a97743b6a23d41232e45bef88 | [
"Apache-2.0"
] | null | null | null | /*
*
* Copyright (c) 2021 Project CHIP Authors
* 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... | 50.02321 | 159 | 0.705057 | sungho1shin |
295eb0d17b6abad78da718755b0380199969e078 | 624 | cc | C++ | src/init.cc | leozdgao/node-skia-canvas | 3ea3fa92f6c5050e961717a87354e330169b12b0 | [
"MIT"
] | 7 | 2021-11-03T12:09:48.000Z | 2022-03-30T02:19:07.000Z | src/init.cc | leozdgao/node-skia | 3ea3fa92f6c5050e961717a87354e330169b12b0 | [
"MIT"
] | 4 | 2021-05-23T09:07:01.000Z | 2021-09-25T15:04:20.000Z | src/init.cc | leozdgao/node-skia | 3ea3fa92f6c5050e961717a87354e330169b12b0 | [
"MIT"
] | 1 | 2022-03-30T02:19:08.000Z | 2022-03-30T02:19:08.000Z | #include <napi.h>
#include "Canvas.h"
#include "CanvasGradient.h"
#include "CanvasPattern.h"
#include "CanvasRenderingContext2D.h"
#include "FontManager.h"
#include "Image.h"
#include "ImageData.h"
#include "TextMetrics.h"
static Napi::Object Init(Napi::Env env, Napi::Object exports) {
Canvas::Init(env, exports);
... | 24.96 | 63 | 0.733974 | leozdgao |
29613854c5ce903425656594247e45e16c50a2f1 | 2,762 | cpp | C++ | AABBMesh.cpp | tdriggs/ETGG2802 | fd30a4663bb22eda6f97427d3259d53d93af5071 | [
"MIT"
] | null | null | null | AABBMesh.cpp | tdriggs/ETGG2802 | fd30a4663bb22eda6f97427d3259d53d93af5071 | [
"MIT"
] | null | null | null | AABBMesh.cpp | tdriggs/ETGG2802 | fd30a4663bb22eda6f97427d3259d53d93af5071 | [
"MIT"
] | null | null | null | #include "AABBMesh.h"
AABBMesh::AABBMesh(AABB* box, Texture* texture) {
vector<float> pdata = {
//front
box->mins.x,box->mins.y,box->maxs.z, box->maxs.x,box->mins.y,box->maxs.z, box->maxs.x,box->maxs.y,box->maxs.z, box->mins.x,box->maxs.y,box->maxs.z,
//left
box->mins.x,box->mins.y,box->mins.z, ... | 34.098765 | 161 | 0.580377 | tdriggs |
296335e5ba4f05778a7680f620a5589983e85375 | 20,201 | cpp | C++ | src/lib/coil/common/coil/stringutil.cpp | r-kurose/OpenRTM-aist | 258c922c55a97c6d1265dbf45e1e8b2ea29b2d86 | [
"RSA-MD"
] | null | null | null | src/lib/coil/common/coil/stringutil.cpp | r-kurose/OpenRTM-aist | 258c922c55a97c6d1265dbf45e1e8b2ea29b2d86 | [
"RSA-MD"
] | null | null | null | src/lib/coil/common/coil/stringutil.cpp | r-kurose/OpenRTM-aist | 258c922c55a97c6d1265dbf45e1e8b2ea29b2d86 | [
"RSA-MD"
] | null | null | null | // -*- C++ -*-
/*!
* @file StringUtil.cpp
* @brief String operation utility
* @date $Date: 2007-12-31 03:08:07 $
* @author Noriaki Ando <n-ando@aist.go.jp>
*
* Copyright (C) 2006-2008
* Noriaki Ando
* Task-intelligence Research Group,
* Intelligent Systems Research Institute,
* National Insti... | 24.2509 | 108 | 0.545221 | r-kurose |
2964367ce43a9a1716b78f12eb378cf58a7585de | 1,874 | cpp | C++ | test/training_data/plag_original_codes/04_034.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | 13 | 2021-01-20T19:53:16.000Z | 2021-11-14T16:30:32.000Z | test/training_data/plag_original_codes/04_034.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | null | null | null | test/training_data/plag_original_codes/04_034.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | null | null | null | // 引用元 : https://atcoder.jp/contests/abc073/submissions/10044155
// 得点 : 400
// コード長 : 2443
// 実行時間 : 16
#include <bits/stdc++.h>
#include <cmath>
#include <numeric>
using namespace std;
#define rep(i,a,b) for(int64_t i=(a); i<(b); ++i) // a ≦ i < b
#define Rrep(i,a,b) for(int64_t i=(a);i>=(b);--i) // reverse r... | 25.324324 | 87 | 0.571505 | xryuseix |
2964f818d384b7becc09b311d0717462512431d2 | 2,210 | cpp | C++ | src/serac/infrastructure/profiling.cpp | bendudson/serac | d7cf1349e8830f852d868911b80a90a68dc123ec | [
"BSD-3-Clause"
] | null | null | null | src/serac/infrastructure/profiling.cpp | bendudson/serac | d7cf1349e8830f852d868911b80a90a68dc123ec | [
"BSD-3-Clause"
] | null | null | null | src/serac/infrastructure/profiling.cpp | bendudson/serac | d7cf1349e8830f852d868911b80a90a68dc123ec | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019-2022, Lawrence Livermore National Security, LLC and
// other Serac Project Developers. See the top-level LICENSE file for
// details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include "serac/infrastructure/profiling.hpp"
#include "serac/infrastructure/logger.hpp"
#ifdef SERAC_USE_CALIPER
#... | 22.1 | 107 | 0.726244 | bendudson |
2965206e543477d59cfef9ee25dda2f50a376a53 | 1,822 | cpp | C++ | cpp/stl/iterator/inserters.cpp | lolyu/aoi | a26e5eb205aafadc7301b2e4acc67915d3bcc935 | [
"MIT"
] | null | null | null | cpp/stl/iterator/inserters.cpp | lolyu/aoi | a26e5eb205aafadc7301b2e4acc67915d3bcc935 | [
"MIT"
] | null | null | null | cpp/stl/iterator/inserters.cpp | lolyu/aoi | a26e5eb205aafadc7301b2e4acc67915d3bcc935 | [
"MIT"
] | null | null | null | #include <hiredis/hiredis.h>
#include <deque>
#include <iostream>
#include <iterator>
#include <string>
#include <unordered_map>
#include <vector>
template <typename OutputIterator>
void hgetall(OutputIterator output, redisContext *context, const std::string &key);
/*
back_inserter ---> back_insert_iterator
front_in... | 29.387097 | 111 | 0.614709 | lolyu |
2967fcdf64b6f69a6a2c3e0e4b9ab43a1402ddd8 | 1,657 | cpp | C++ | src/map/src/mouse/mouse_cmd.cpp | WOWZON3/RoseOnline | ec17901400fedb1a4705a8a8bb69925910c5b0cd | [
"Apache-2.0"
] | 1 | 2020-03-09T22:19:26.000Z | 2020-03-09T22:19:26.000Z | src/map/src/mouse/mouse_cmd.cpp | WOWZON3/RoseOnline | ec17901400fedb1a4705a8a8bb69925910c5b0cd | [
"Apache-2.0"
] | null | null | null | src/map/src/mouse/mouse_cmd.cpp | WOWZON3/RoseOnline | ec17901400fedb1a4705a8a8bb69925910c5b0cd | [
"Apache-2.0"
] | null | null | null | #include "mouse/mouse_cmd.h"
#include "logconsole.h"
#include "entity_system.h"
#include "srv_mouse_cmd.h"
#include "components/basic_info.h"
#include "components/destination.h"
#include "components/position.h"
#include "components/target.h"
#include <cmath>
using namespace RoseCommon;
using namespace RoseCommon::... | 32.490196 | 115 | 0.678334 | WOWZON3 |
2968d9c1020f4537715f9a6bace647f88cdf51a1 | 12,027 | cxx | C++ | gui/GradientSelector.cxx | kevinsmia1939/TeleSculptor | 88f50a65d20a02a692900259dab15ed83f69bad4 | [
"BSD-3-Clause"
] | 269 | 2015-01-22T15:30:24.000Z | 2019-05-22T00:17:37.000Z | gui/GradientSelector.cxx | kevinsmia1939/TeleSculptor | 88f50a65d20a02a692900259dab15ed83f69bad4 | [
"BSD-3-Clause"
] | 119 | 2019-05-28T18:26:28.000Z | 2022-03-18T15:24:30.000Z | gui/GradientSelector.cxx | kevinsmia1939/TeleSculptor | 88f50a65d20a02a692900259dab15ed83f69bad4 | [
"BSD-3-Clause"
] | 92 | 2015-01-13T16:56:59.000Z | 2019-04-22T16:41:49.000Z | // This file is part of TeleSculptor, and is distributed under the
// OSI-approved BSD 3-Clause License. See top-level LICENSE file or
// https://github.com/Kitware/TeleSculptor/blob/master/LICENSE for details.
#include "GradientSelector.h"
#include <qtGradient.h>
#include <qtIndexRange.h>
//////////////////////////... | 37.702194 | 79 | 0.614035 | kevinsmia1939 |
296918eec0e3e162bcd972078b71b303cc9e306f | 62 | cxx | C++ | base/fs/utils/ntlib/src/sortcnt.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/fs/utils/ntlib/src/sortcnt.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/fs/utils/ntlib/src/sortcnt.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "pch.cxx"
#include "..\..\ulib\src\sortcnt.cxx"
| 20.666667 | 39 | 0.596774 | npocmaka |
297429099ea067c13ea2516bee08d4b9bf0c0f70 | 178 | cpp | C++ | src/cpu/insts/Cli.cpp | ammubhave/emu | ff9501719f3cc53207a8931d85c19d24c86dccdc | [
"MIT"
] | null | null | null | src/cpu/insts/Cli.cpp | ammubhave/emu | ff9501719f3cc53207a8931d85c19d24c86dccdc | [
"MIT"
] | null | null | null | src/cpu/insts/Cli.cpp | ammubhave/emu | ff9501719f3cc53207a8931d85c19d24c86dccdc | [
"MIT"
] | null | null | null | #include "gen/Cli.h"
#include "cpu/Cpu.h"
#include "cpu/insts/Util.h"
namespace emu::cpu::insts {
void Cli::execute(Cpu& cpu) { IF = false; }
} // namespace emu::cpu::insts
| 16.181818 | 43 | 0.646067 | ammubhave |
2974592fb5dca8087b052e2274f775e540827cee | 26,499 | cpp | C++ | Util/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | 5 | 2020-06-30T05:06:40.000Z | 2021-05-24T08:38:33.000Z | Util/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | null | null | null | Util/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | 2 | 2015-10-01T18:28:20.000Z | 2020-09-09T16:25:27.000Z | //===-- BasicBlockUtils.cpp - BasicBlock Utilities -------------------------==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 38.404348 | 83 | 0.650553 | ianloic |
29752d0e474f5eef01d05adb816cffcca4ad7df1 | 677 | cpp | C++ | 000/36.cpp | correipj/ProjectEuler | 0173d8ec7f309b4f0c243a94351772b1be55e8bf | [
"Unlicense"
] | null | null | null | 000/36.cpp | correipj/ProjectEuler | 0173d8ec7f309b4f0c243a94351772b1be55e8bf | [
"Unlicense"
] | null | null | null | 000/36.cpp | correipj/ProjectEuler | 0173d8ec7f309b4f0c243a94351772b1be55e8bf | [
"Unlicense"
] | null | null | null | // https://projecteuler.net/problem=36
// Double-base palindromes
#include <iostream>
#include <vector>
using namespace std;
vector<int> base(int n, int b) {
vector<int> v;
while(n) {
v.insert(v.begin(), n % b);
n /= b;
}
return v;
}
bool isPalindrome(int n, int b) {
int rev = 0;
... | 14.404255 | 42 | 0.524372 | correipj |
29768a9c78928137a26bc830aec3fd174513b766 | 11,314 | cpp | C++ | UAlbertaBot/Source/TransportManager.cpp | xu-kj/sc1bot | a3a3fd6b2e2cc20460ced35ca61f077880626b77 | [
"MIT"
] | null | null | null | UAlbertaBot/Source/TransportManager.cpp | xu-kj/sc1bot | a3a3fd6b2e2cc20460ced35ca61f077880626b77 | [
"MIT"
] | 16 | 2021-04-01T05:16:27.000Z | 2021-04-28T06:18:59.000Z | UAlbertaBot/Source/TransportManager.cpp | xu-kj/sc1bot | a3a3fd6b2e2cc20460ced35ca61f077880626b77 | [
"MIT"
] | null | null | null | #include "TransportManager.h"
#include "BaseLocationManager.h"
#include "Global.h"
#include "Micro.h"
#include "MapTools.h"
using namespace UAlbertaBot;
TransportManager::TransportManager()
{
}
void TransportManager::executeMicro(const BWAPI::Unitset &targets)
{
const BWAPI::Unitset &transportUnits = getUnits();
... | 28.074442 | 195 | 0.712657 | xu-kj |
2976a7d4c18e04d49b99b11dc2a7cba85406a3b9 | 910 | cpp | C++ | Problems/Timus/1083_Factorials/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | null | null | null | Problems/Timus/1083_Factorials/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | 1 | 2019-05-09T19:17:00.000Z | 2019-05-09T19:17:00.000Z | Problems/Timus/1083_Factorials/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
unsigned long calculateFact(unsigned int n, unsigned int k, unsigned int remain)
{
if (n == remain)
return remain;
else
return n * calculateFact(n - k, k, remain);
}
unsigned long calculateFactIterative(unsigned int n, unsigned int k,... | 19.782609 | 89 | 0.57033 | grand87 |
297b51b9d2aeae574a34a3a0d254ffe41f31187a | 1,120 | hpp | C++ | 3party/boost/boost/log/expressions/predicates.hpp | bowlofstew/omim | 8045157c95244aa8f862d47324df42a19b87e335 | [
"Apache-2.0"
] | 133 | 2018-04-20T14:09:40.000Z | 2021-08-15T11:51:25.000Z | 3party/boost/boost/log/expressions/predicates.hpp | bowlofstew/omim | 8045157c95244aa8f862d47324df42a19b87e335 | [
"Apache-2.0"
] | 61 | 2015-05-27T11:20:11.000Z | 2019-12-20T15:06:21.000Z | 3party/boost/boost/log/expressions/predicates.hpp | bowlofstew/omim | 8045157c95244aa8f862d47324df42a19b87e335 | [
"Apache-2.0"
] | 83 | 2018-04-27T03:58:02.000Z | 2022-01-11T09:23:40.000Z | /*
* Copyright Andrey Semashev 2007 - 2014.
* 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)
*/
/*!
* \file predicates.hpp
* \author Andrey Semashev
* \date 29.01.2012
*
* The heade... | 32 | 71 | 0.785714 | bowlofstew |
297d2d525a0fb98c606e24ee5ca83be67935d7e5 | 3,782 | hpp | C++ | include/gl-utils/draw/stencil.hpp | fire/TressFX-OpenGL | 15f1820408d2b9c4696bb9fd8777d7445875705b | [
"MIT"
] | 7 | 2019-03-12T08:11:39.000Z | 2020-08-11T18:47:50.000Z | include/gl-utils/draw/stencil.hpp | fire/TressFX-OpenGL | 15f1820408d2b9c4696bb9fd8777d7445875705b | [
"MIT"
] | null | null | null | include/gl-utils/draw/stencil.hpp | fire/TressFX-OpenGL | 15f1820408d2b9c4696bb9fd8777d7445875705b | [
"MIT"
] | 3 | 2019-02-28T13:06:17.000Z | 2021-10-31T01:24:01.000Z | #pragma once
namespace glUtils {
struct StencilTest {
static const GLenum AlwaysPass = GL_ALWAYS;
static const GLenum AlwaysFail = GL_NEVER;
static const GLenum IfRefIsLessThenCurrent = GL_LESS; // write if this->reference_value < current_stencil_value
static const GLenum IfRefIsLessOrEqualCurr... | 41.108696 | 129 | 0.696192 | fire |
297d337cc8cc2c2d88c78eba211db3f8738a6e08 | 534 | cpp | C++ | GameEngine/KekEngine/src/entity.cpp | oborotev/BJTU-GDI | 938c9d749946e0363bdd28d35e0a134e96607358 | [
"MIT"
] | null | null | null | GameEngine/KekEngine/src/entity.cpp | oborotev/BJTU-GDI | 938c9d749946e0363bdd28d35e0a134e96607358 | [
"MIT"
] | null | null | null | GameEngine/KekEngine/src/entity.cpp | oborotev/BJTU-GDI | 938c9d749946e0363bdd28d35e0a134e96607358 | [
"MIT"
] | null | null | null | //
// Created by storm on 26/03/16.
//
# include "entity.h"
Entity::Entity(const int &x, const int &y)
{
this->_x = x;
this->_y = y;
}
const int &Entity::getX()
{
return (this->_x);
}
const int &Entity::getY()
{
return (this->_y);
}
void Entity::setY(const double &y)
{
this->_y = y;
}
void ... | 13.02439 | 52 | 0.582397 | oborotev |
29810f801e0104ecdaea3d7f156182e57ade6742 | 8,211 | cpp | C++ | libs/ContainerKit/tests/CircularQueue_test.cpp | HPezz/LekaOS | e4c16f52e2c7bd3d75c9d5aefe94eb67dbf5a694 | [
"Apache-2.0"
] | 2 | 2021-10-30T20:51:30.000Z | 2022-01-12T11:18:34.000Z | libs/ContainerKit/tests/CircularQueue_test.cpp | HPezz/LekaOS | e4c16f52e2c7bd3d75c9d5aefe94eb67dbf5a694 | [
"Apache-2.0"
] | 343 | 2021-07-15T12:57:08.000Z | 2022-03-29T10:14:06.000Z | libs/ContainerKit/tests/CircularQueue_test.cpp | HPezz/LekaOS | e4c16f52e2c7bd3d75c9d5aefe94eb67dbf5a694 | [
"Apache-2.0"
] | 3 | 2021-12-30T02:53:24.000Z | 2022-01-11T22:08:05.000Z | // Leka - LekaOS
// Copyright 2021 APF France handicap (based on work by Mbed-OS)
// SPDX-License-Identifier: Apache-2.0
#include "CircularQueue.h"
#include <array>
#include <memory>
#include "gtest/gtest.h"
#include "stubs/mbed/mbed_critical.h"
using namespace leka;
class CircularQueueTest : public testing::Test
{... | 21.272021 | 91 | 0.689197 | HPezz |
2981d9aa32083e1d38efee9472e2929f29db6915 | 1,525 | hpp | C++ | libraries/chain/include/betterchain/chain/contracts/betterchain_contract.hpp | betterchainio/betterchain | 29f82c25ae6812beaf09f8d7069932474bea9f8b | [
"MIT"
] | 3 | 2018-01-18T07:12:34.000Z | 2018-01-22T10:00:29.000Z | libraries/chain/include/betterchain/chain/contracts/betterchain_contract.hpp | betterchainio/betterchain | 29f82c25ae6812beaf09f8d7069932474bea9f8b | [
"MIT"
] | null | null | null | libraries/chain/include/betterchain/chain/contracts/betterchain_contract.hpp | betterchainio/betterchain | 29f82c25ae6812beaf09f8d7069932474bea9f8b | [
"MIT"
] | 2 | 2018-01-30T01:03:10.000Z | 2019-02-28T09:04:06.000Z | /**
* @file
* @copyright defined in BetterChain/LICENSE.txt
*/
#pragma once
#include <betterchain/chain/apply_context.hpp>
#include <betterchain/chain/types.hpp>
namespace betterchain { namespace chain { namespace contracts {
/**
* @defgroup native_action_handlers Native Action Handlers
*/
///@{... | 31.770833 | 100 | 0.78623 | betterchainio |
2983a363235db51a4ba0d157cfa23b056476c5ab | 6,496 | cpp | C++ | hexapod_emlid/Navio/NavioLib/PCA9685.cpp | helios57/hexapod | 82b4fc54f49e0acca62a42635ba8844abdb541a7 | [
"MIT"
] | null | null | null | hexapod_emlid/Navio/NavioLib/PCA9685.cpp | helios57/hexapod | 82b4fc54f49e0acca62a42635ba8844abdb541a7 | [
"MIT"
] | null | null | null | hexapod_emlid/Navio/NavioLib/PCA9685.cpp | helios57/hexapod | 82b4fc54f49e0acca62a42635ba8844abdb541a7 | [
"MIT"
] | null | null | null | /*
PCA9685 driver code is placed under the BSD license.
Written by Mikhail Avkhimenia (mikhail.avkhimenia@emlid.com)
Copyright (c) 2014, Emlid Limited, www.emlid.com
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following condition... | 34.553191 | 90 | 0.705819 | helios57 |
29840304ac1dc2563bb150214bc160422a8f4a89 | 2,094 | cc | C++ | policies/DIF/EFCP/DTCP/RcvrFC/RcvrFCPolicyDefaultWithCounters/RcvrFCPolicyDefaultWithCounters.cc | karlhto/RINA | 68fe850c7871d59fb882e06fa55432088d12cc51 | [
"MIT"
] | 30 | 2015-01-19T15:02:24.000Z | 2021-11-05T09:29:48.000Z | policies/DIF/EFCP/DTCP/RcvrFC/RcvrFCPolicyDefaultWithCounters/RcvrFCPolicyDefaultWithCounters.cc | karlhto/RINA | 68fe850c7871d59fb882e06fa55432088d12cc51 | [
"MIT"
] | 20 | 2015-01-14T16:22:03.000Z | 2020-10-14T14:17:06.000Z | policies/DIF/EFCP/DTCP/RcvrFC/RcvrFCPolicyDefaultWithCounters/RcvrFCPolicyDefaultWithCounters.cc | karlhto/RINA | 68fe850c7871d59fb882e06fa55432088d12cc51 | [
"MIT"
] | 13 | 2015-01-22T09:16:50.000Z | 2020-09-03T09:47:14.000Z | //
// This program 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 version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it wil... | 32.215385 | 97 | 0.722541 | karlhto |
29849cb3af72658f66e8b017fd032d82da264c37 | 583,866 | cpp | C++ | src/dblf84/dblf84_424.cpp | glennhickey/context | e7cdb988e2bb6eed5be78567ae7b88378eda9411 | [
"MIT-0"
] | 1 | 2018-04-22T22:16:47.000Z | 2018-04-22T22:16:47.000Z | src/dblf84/dblf84_424.cpp | glennhickey/context | e7cdb988e2bb6eed5be78567ae7b88378eda9411 | [
"MIT-0"
] | null | null | null | src/dblf84/dblf84_424.cpp | glennhickey/context | e7cdb988e2bb6eed5be78567ae7b88378eda9411 | [
"MIT-0"
] | null | null | null | #include <cmath>
#include "../contextmodel.h"
using namespace std;
void ContextModel::mat424()
{
long double val = 1./2.*pow(_p[3],2)*_p[0]*_p[1]*(-4.*_b*_q[0]*_q[2]*exp(_b+_c[0])-2.*_b
*_q[0]*_q[2]*exp(_c[0]+2.*_b)+4.*_b*_q[0]*_q[2]*exp(_b+_d+_c[0])+2.*_b*_q[0]*_q[2]*exp(_c[0]
+_d+2.*_b)-_q[0]*exp(_c[0])*_q[2]+_q[0]... | 81.671003 | 93 | 0.525504 | glennhickey |
298572373c8d0464d0468981987a577ec0d990a6 | 70,859 | cpp | C++ | src/VAnaSumRunParameter.cpp | Eventdisplay/Eventdisplay | 01ef380cf53a44f95351960a297a2d4f271a4160 | [
"BSD-3-Clause"
] | 11 | 2019-12-10T13:34:46.000Z | 2021-08-24T15:39:35.000Z | src/VAnaSumRunParameter.cpp | Eventdisplay/Eventdisplay | 01ef380cf53a44f95351960a297a2d4f271a4160 | [
"BSD-3-Clause"
] | 53 | 2019-11-19T13:14:36.000Z | 2022-02-16T14:22:27.000Z | src/VAnaSumRunParameter.cpp | pivosb/Eventdisplay | 6b299a1d3f77ddb641f98a511a37a5045ddd6b47 | [
"BSD-3-Clause"
] | 3 | 2020-05-07T13:52:46.000Z | 2021-06-25T09:49:21.000Z | /*! \class VAnaSumRunParameter
*
*
*/
#include "VAnaSumRunParameter.h"
/*
definition of data class for anasum run parameters
*/
VAnaSumRunParameterDataClass::VAnaSumRunParameterDataClass()
{
fEventDisplayVersion = "";
fRunOn = 0;
fRunOnFileName = "";
fRunOff = 0;
fRunOffFileName ... | 37.630908 | 455 | 0.521613 | Eventdisplay |
298719e599e3fed057231f0a70317f2e4eac46c7 | 9,745 | cpp | C++ | source/graphmanager.cpp | sydernee/TBC-Despeect | 427ce8a7f985ff93fe2dfaf86d1288a272376376 | [
"MIT"
] | 1 | 2018-09-11T06:59:46.000Z | 2018-09-11T06:59:46.000Z | source/graphmanager.cpp | TheBlackCat-SWE/Despeect | 427ce8a7f985ff93fe2dfaf86d1288a272376376 | [
"MIT"
] | 3 | 2018-06-20T11:20:54.000Z | 2018-06-24T13:51:21.000Z | source/graphmanager.cpp | sydernee/Despeect | 427ce8a7f985ff93fe2dfaf86d1288a272376376 | [
"MIT"
] | 1 | 2018-09-18T14:51:25.000Z | 2018-09-18T14:51:25.000Z | #include "graphmanager.hpp"
#include <QFocusEvent>
#include <QGraphicsItemGroup>
#include <QGraphicsView>
#include "arc.hpp"
#include "DSItem.hpp"
#include "node.hpp"
#include "QInputDialog"
#include "QLineEdit"
#include <QMessageBox>
GraphManager::GraphManager():Graph(new QGraphicsScene()),Relations(),RelationsModel... | 37.625483 | 143 | 0.622884 | sydernee |
298746ffd6b0caa17717543afceffb3733b2dcc3 | 20,373 | cpp | C++ | sources/ide/ide.cpp | dabroz/dablang | 60c9b0310cee1488fbde1dbbc2fd411a9cc6dbce | [
"MIT"
] | 1 | 2015-11-29T22:32:55.000Z | 2015-11-29T22:32:55.000Z | sources/ide/ide.cpp | dabroz/dablang | 60c9b0310cee1488fbde1dbbc2fd411a9cc6dbce | [
"MIT"
] | null | null | null | sources/ide/ide.cpp | dabroz/dablang | 60c9b0310cee1488fbde1dbbc2fd411a9cc6dbce | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "resource.h"
//#define WXUSINGDLL
#define wxUSE_EXTENDED_RTTI 1
//qValue * compileText(std::map<qString, qString> & filemap);
#ifdef _DEBUG
#pragma comment(lib, "wxbase29ud.lib")
#pragma comment(lib, "wxmsw29ud_core.lib")
#pragma comment(lib, "wxmsw29ud_stc.lib")
#pragma comment(lib, "w... | 23.471198 | 164 | 0.652874 | dabroz |
298906c56ba245801397465a490017c95fa3d8d7 | 8,375 | cpp | C++ | Tests/AK/TestTypeTraits.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 650 | 2019-03-01T13:33:03.000Z | 2022-03-15T09:26:44.000Z | Tests/AK/TestTypeTraits.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 51 | 2019-04-03T08:32:38.000Z | 2019-05-19T13:44:28.000Z | Tests/AK/TestTypeTraits.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 33 | 2019-03-26T05:47:59.000Z | 2021-11-22T18:18:45.000Z | /*
* Copyright (c) 2020-2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibTest/TestCase.h>
#include <AK/StdLibExtras.h>
#include <AK/TypeList.h>
#define STATIC_EXPECT_EQ(lhs, rhs) \
static_assert(IsSame<lhs, rhs>, "");
#define STATIC_EXPECT_FALSE(Expression) \
st... | 31.133829 | 151 | 0.684776 | r00ster91 |
2989379b746cde2c64f50b7803052938280f6ccb | 1,415 | cc | C++ | test/syscalls/linux/exec_proc_exe_workload.cc | Exhorder6/gvisor | add8bca5ba53b37096bc653900cb278e11681461 | [
"Apache-2.0"
] | 12,536 | 2018-05-02T09:57:54.000Z | 2022-03-31T14:25:15.000Z | test/syscalls/linux/exec_proc_exe_workload.cc | Exhorder6/gvisor | add8bca5ba53b37096bc653900cb278e11681461 | [
"Apache-2.0"
] | 2,478 | 2018-05-02T14:01:30.000Z | 2022-03-31T19:57:47.000Z | test/syscalls/linux/exec_proc_exe_workload.cc | Exhorder6/gvisor | add8bca5ba53b37096bc653900cb278e11681461 | [
"Apache-2.0"
] | 1,163 | 2018-05-02T10:03:44.000Z | 2022-03-29T17:15:01.000Z | // Copyright 2018 The gVisor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | 32.906977 | 75 | 0.680565 | Exhorder6 |
298b3444ffa2bab164c818f28e6d1fab70d66f66 | 54,994 | cpp | C++ | testing/TestDisambiguator.cpp | jordiae/psychec | 7930108c08c8ac1b81cf4e2a980edbe708517462 | [
"BSD-3-Clause"
] | null | null | null | testing/TestDisambiguator.cpp | jordiae/psychec | 7930108c08c8ac1b81cf4e2a980edbe708517462 | [
"BSD-3-Clause"
] | null | null | null | testing/TestDisambiguator.cpp | jordiae/psychec | 7930108c08c8ac1b81cf4e2a980edbe708517462 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
Copyright (c) 2016-20 Leandro T. C. Melo (ltcmelo@gmail.com)
This library 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;... | 26.670223 | 99 | 0.640161 | jordiae |
298b3d00e3d43d75c48ea01e834b463b31847d0c | 237 | cpp | C++ | Problems/CodeForces/Rated/Div_2/Educational_Codeforces_Rounds/Round_94/A.String_Similarity.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | 2 | 2020-07-20T06:40:22.000Z | 2021-11-20T01:23:26.000Z | Problems/CodeForces/Rated/Div_2/Educational_Codeforces_Rounds/Round_94/A.String_Similarity.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | null | null | null | Problems/CodeForces/Rated/Div_2/Educational_Codeforces_Rounds/Round_94/A.String_Similarity.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int T,n;
string s;
int main() {
scanf("%d",&T);
for( int tc = 1 ; tc <= T ; tc++ ) {
cin >> n >> s;
for( int i = 0 ; i < n ; i++ )
printf("%c",s[n-1]);
puts("");
}
return 0;
}
| 13.941176 | 37 | 0.464135 | metehkaya |
298eeab73fd6ab8b2f448a4ad32d1bd76dda268c | 147 | cpp | C++ | tutorials/learncpp.com#1.0#1/operators/arithmetic_operators/source3.cpp | officialrafsan/CppDroid | 5fb2cc7750fea53b1ea6ff47b5094da6e95e9224 | [
"MIT"
] | null | null | null | tutorials/learncpp.com#1.0#1/operators/arithmetic_operators/source3.cpp | officialrafsan/CppDroid | 5fb2cc7750fea53b1ea6ff47b5094da6e95e9224 | [
"MIT"
] | null | null | null | tutorials/learncpp.com#1.0#1/operators/arithmetic_operators/source3.cpp | officialrafsan/CppDroid | 5fb2cc7750fea53b1ea6ff47b5094da6e95e9224 | [
"MIT"
] | null | null | null | bool IsEven(int x)
{
// if x % 2 == 0, 2 divides evenly into our number
// which means it must be an even number
return (x % 2) == 0;
} | 24.5 | 54 | 0.578231 | officialrafsan |
298ef4a7eeff743181fdbd8991b1ad78983f2200 | 1,751 | cpp | C++ | Gimbal/srml/shit_mountain.cpp | scutrobotlab/RM2021_Hero | c36c9d039100cb7a87a5177ca6b20f8f3e3c0daa | [
"Apache-2.0"
] | 3 | 2021-08-25T07:10:48.000Z | 2021-12-14T12:23:58.000Z | Gimbal/srml/shit_mountain.cpp | scutrobotlab/RM2021_Hero | c36c9d039100cb7a87a5177ca6b20f8f3e3c0daa | [
"Apache-2.0"
] | null | null | null | Gimbal/srml/shit_mountain.cpp | scutrobotlab/RM2021_Hero | c36c9d039100cb7a87a5177ca6b20f8f3e3c0daa | [
"Apache-2.0"
] | 2 | 2022-01-20T09:43:38.000Z | 2022-03-06T01:37:36.000Z | /**
******************************************************************************
* Copyright (c) 2019 - ~, SCUT-RobotLab Development Team
* @file shit_mountain.cpp
* @author M3chD09 rinngo17@foxmail.com
* @brief Library full of shit.
* @date 2021-04-05
* @version 1.0
*
*********************... | 38.911111 | 80 | 0.446031 | scutrobotlab |
298f014d63f8fbc37b5ac5459e97ac760023f39c | 467 | cc | C++ | chrome/updater/policy_manager_unittest.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | chrome/updater/policy_manager_unittest.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chrome/updater/policy_manager_unittest.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2020 The Chromium 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 "chrome/updater/policy_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace updater {
TEST(PolicyManager, GetPolicyManager) {
... | 29.1875 | 77 | 0.773019 | Ron423c |
298f7a46735c087e379d14fa6a608e38c7db0a34 | 2,676 | cpp | C++ | src/modules/cpu.cpp | hypergig/Waybar | 3945c7766891148c339a77118b7c1dbe709af407 | [
"MIT"
] | 1 | 2021-10-03T19:46:42.000Z | 2021-10-03T19:46:42.000Z | src/modules/cpu.cpp | hypergig/Waybar | 3945c7766891148c339a77118b7c1dbe709af407 | [
"MIT"
] | 1 | 2019-08-29T08:39:54.000Z | 2019-08-29T08:39:54.000Z | src/modules/cpu.cpp | hypergig/Waybar | 3945c7766891148c339a77118b7c1dbe709af407 | [
"MIT"
] | 1 | 2020-01-18T22:09:36.000Z | 2020-01-18T22:09:36.000Z | #include "modules/cpu.hpp"
#include <numeric>
waybar::modules::Cpu::Cpu(const std::string& id, const Json::Value& config)
: ALabel(config, "cpu", id, "{usage}%", 10) {
thread_ = [this] {
dp.emit();
thread_.sleep_for(interval_);
};
}
auto waybar::modules::Cpu::update() -> void {
// TODO: as creating ... | 31.857143 | 100 | 0.607623 | hypergig |
298feb1c5ce8e8b2a62485e9627ddf5437298f18 | 1,930 | cpp | C++ | Example/ch16/vect3.cpp | yuechuanx/Cpp-Primer-Plus-5th | e8f78a1f46fbdda45854629ebde49def6905e028 | [
"MIT"
] | 2 | 2018-01-28T14:00:53.000Z | 2019-04-23T15:18:14.000Z | Example/ch16/vect3.cpp | yuechuanx/Cpp-Primer-Plus-5th | e8f78a1f46fbdda45854629ebde49def6905e028 | [
"MIT"
] | null | null | null | Example/ch16/vect3.cpp | yuechuanx/Cpp-Primer-Plus-5th | e8f78a1f46fbdda45854629ebde49def6905e028 | [
"MIT"
] | 1 | 2018-12-15T10:40:14.000Z | 2018-12-15T10:40:14.000Z | // vect3.cpp -- using STL functions
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
struct Review {
std::string title;
int rating;
};
bool operator<(const Review & r1, const Review & r2);
bool worseThan(const Review & r1, const Review & r2);
bool FillReview(Review & rr);
void Show... | 24.43038 | 61 | 0.605181 | yuechuanx |
2992ad0945d24bc4ff3b0de9758997f2a01411d5 | 7,081 | cxx | C++ | Servers/ServerManager/vtkPVProcessModuleBatchHelper.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 1 | 2021-07-31T19:38:03.000Z | 2021-07-31T19:38:03.000Z | Servers/ServerManager/vtkPVProcessModuleBatchHelper.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | null | null | null | Servers/ServerManager/vtkPVProcessModuleBatchHelper.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 2 | 2019-01-22T19:51:40.000Z | 2021-07-31T19:38:05.000Z | /*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without... | 28.668016 | 99 | 0.570682 | matthb2 |
2992bc3c1836daabe9954802c28f2b919f7a4ba4 | 2,079 | hpp | C++ | include/network.hpp | jaistark/sp | 911933c65f950e6bc51451840068ca9249554846 | [
"BSD-2-Clause"
] | 28 | 2015-03-04T08:34:40.000Z | 2022-02-13T05:59:11.000Z | include/network.hpp | jaistark/sp | 911933c65f950e6bc51451840068ca9249554846 | [
"BSD-2-Clause"
] | null | null | null | include/network.hpp | jaistark/sp | 911933c65f950e6bc51451840068ca9249554846 | [
"BSD-2-Clause"
] | 14 | 2015-03-04T08:34:42.000Z | 2020-12-08T16:13:37.000Z | #ifndef _NETWORK_HPP_
#define _NETWORK_HPP_
#include "common.hpp"
#include "Snap.h"
#include "snap_tools.hpp"
// Keep track of the number of triples in which a pair of nodes is involved.
class Counts {
public:
Counts() {};
Counts(int n) { counts_.resize(n); }
~Counts() {};
// Increment sum of T(:... | 27 | 76 | 0.650794 | jaistark |
29940ebfdf8682b1149cbb2819c41e4dc4bdb2ee | 3,259 | cpp | C++ | src/Gui/Selectors/SelectInstrument.cpp | waddlesplash/ragingmidi | 7153bf68667fba7540541dddcd3ae5e5a02572f9 | [
"MIT"
] | 13 | 2015-05-06T05:35:22.000Z | 2021-05-31T21:11:45.000Z | src/Gui/Selectors/SelectInstrument.cpp | waddlesplash/ragingmidi | 7153bf68667fba7540541dddcd3ae5e5a02572f9 | [
"MIT"
] | null | null | null | src/Gui/Selectors/SelectInstrument.cpp | waddlesplash/ragingmidi | 7153bf68667fba7540541dddcd3ae5e5a02572f9 | [
"MIT"
] | 3 | 2020-06-14T16:49:44.000Z | 2021-12-06T07:58:45.000Z | /*
* Raging MIDI (https://github.com/waddlesplash/ragingmidi).
*
* Copyright (c) 2012-2013 WaddleSplash & contributors (see AUTHORS.txt).
*
* 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 Softw... | 28.840708 | 83 | 0.717398 | waddlesplash |
2996b0c47dc3a0659ac515bbb630661af306c228 | 9,876 | hpp | C++ | boost/boost/geometry/index/detail/rtree/node/weak_dynamic.hpp | tonystone/geofeatures | 25aca530a9140b3f259e9ee0833c93522e83a697 | [
"BSL-1.0",
"Apache-2.0"
] | 24 | 2015-08-25T05:35:37.000Z | 2020-10-24T14:21:59.000Z | boost/boost/geometry/index/detail/rtree/node/weak_dynamic.hpp | tonystone/geofeatures | 25aca530a9140b3f259e9ee0833c93522e83a697 | [
"BSL-1.0",
"Apache-2.0"
] | 97 | 2015-08-25T16:11:16.000Z | 2019-03-17T00:54:32.000Z | boost/boost/geometry/index/detail/rtree/node/weak_dynamic.hpp | tonystone/geofeatures | 25aca530a9140b3f259e9ee0833c93522e83a697 | [
"BSL-1.0",
"Apache-2.0"
] | 9 | 2015-08-26T03:11:38.000Z | 2018-03-21T07:16:29.000Z | // Boost.Geometry Index
//
// R-tree nodes based on static conversion, storing dynamic-size containers
//
// Copyright (c) 2011-2014 Adam Wulkiewicz, Lodz, Poland.
//
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http... | 33.477966 | 136 | 0.713548 | tonystone |
299758d7f508ace9b2ab100079be214083dbe839 | 4,569 | cpp | C++ | app/src/render/render_task.cpp | shuyanglin/antimony-interactive | 4787dea233c62015babb0da5e299d9f41d500905 | [
"MIT",
"Unlicense"
] | null | null | null | app/src/render/render_task.cpp | shuyanglin/antimony-interactive | 4787dea233c62015babb0da5e299d9f41d500905 | [
"MIT",
"Unlicense"
] | null | null | null | app/src/render/render_task.cpp | shuyanglin/antimony-interactive | 4787dea233c62015babb0da5e299d9f41d500905 | [
"MIT",
"Unlicense"
] | null | null | null | #include <boost/python.hpp>
#include <boost/format.hpp>
#include <QApplication>
#include <QDebug>
#include <QTime>
#include "render/render_task.h"
#include "render/render_image.h"
#include "fab/types/shape.h"
#include "fab/types/transform.h"
using namespace boost::python;
RenderTask::RenderTask(PyObject *s, QMatri... | 27.359281 | 76 | 0.548917 | shuyanglin |
299ceb19c210ba3fca0db238e2298a4926b5ce7d | 1,673 | cpp | C++ | Engine/Src/Ancona/Framework/Serializing/Archive.cpp | ild-games/Ancona | 6a4f520f97d17648a6dd3ba0582cd51da4f9e809 | [
"MIT"
] | 11 | 2018-04-15T21:00:48.000Z | 2021-12-30T20:55:21.000Z | Engine/Src/Ancona/Framework/Serializing/Archive.cpp | tlein/Ancona | 6a4f520f97d17648a6dd3ba0582cd51da4f9e809 | [
"MIT"
] | 58 | 2016-04-17T20:41:25.000Z | 2017-02-27T01:21:46.000Z | Engine/Src/Ancona/Framework/Serializing/Archive.cpp | ild-games/Ancona | 6a4f520f97d17648a6dd3ba0582cd51da4f9e809 | [
"MIT"
] | 4 | 2018-05-04T17:03:20.000Z | 2021-02-12T21:26:57.000Z | #include <Ancona/Framework/Serializing/Archive.hpp>
#include <Ancona/System/Log.hpp>
using namespace ild;
Archive::Archive(
rapidjson::Value * root,
std::shared_ptr<SerializingContext> context,
bool loading,
rapidjson::MemoryPoolAllocator<> & allocator,
bool snapshotSave) :
... | 26.140625 | 114 | 0.649731 | ild-games |
299dca7eac7d8e67ae348e1d5eadb9488adaa786 | 414 | cpp | C++ | find-the-factorial.cpp | aditya270520/100-days-of-Cpp | 0c6ca42195c488ffdeb29572ce1befb33ad092ef | [
"MIT"
] | null | null | null | find-the-factorial.cpp | aditya270520/100-days-of-Cpp | 0c6ca42195c488ffdeb29572ce1befb33ad092ef | [
"MIT"
] | null | null | null | find-the-factorial.cpp | aditya270520/100-days-of-Cpp | 0c6ca42195c488ffdeb29572ce1befb33ad092ef | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int n;
long double factorial = 1.0;
cout << "Enter a positive integer: ";
cin >> n;
if (n < 0)
cout << "Error! Factorial of a negative number doesn't exist.";
else {
for(int i = 1; i <= n; ++i) {
factorial *= i;... | 18.818182 | 71 | 0.483092 | aditya270520 |
29a2b24c1192b0cceeb3a25b3783a1bcc37f0666 | 9,454 | cpp | C++ | src/test/unit/lang/parser/other_test.cpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2019-07-05T01:40:40.000Z | 2019-07-05T01:40:40.000Z | src/test/unit/lang/parser/other_test.cpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | null | null | null | src/test/unit/lang/parser/other_test.cpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2020-07-14T11:36:09.000Z | 2020-07-14T11:36:09.000Z | #include <gtest/gtest.h>
#include <iostream>
#include <fstream>
#include <istream>
#include <sstream>
#include <exception>
#include <stdexcept>
#include <test/unit/lang/utility.hpp>
TEST(lang_parser,good_trunc) {
EXPECT_TRUE(is_parsable("src/test/test-models/bad/lang/good_trunc.stan"));
}
TEST(lang_parser,good_vec_... | 33.764286 | 99 | 0.757351 | drezap |
29a2c9e9f60f65677b8a8486b4096604be9f94a4 | 4,923 | cc | C++ | DQM/RPCMonitorClient/src/RPCRechitProbabilityClient.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | DQM/RPCMonitorClient/src/RPCRechitProbabilityClient.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | DQM/RPCMonitorClient/src/RPCRechitProbabilityClient.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | // Original Author: Anna Cimmino
#include "DQM/RPCMonitorClient/interface/RPCRecHitProbabilityClient.h"
//Framework
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
//DQMServices
#include "DQMServices/Core/interface/MonitorElement.h"
#include <string>
R... | 29.836364 | 152 | 0.680276 | nistefan |
29a3ae6abd137dcfab3add163490d2f3393b6ef0 | 1,209 | cc | C++ | src/xenia/base/console_app_main_posix.cc | amessier/xenia | 6b45cf84472c26436d4a5db61a7b50dab301e398 | [
"BSD-3-Clause"
] | 3,100 | 2018-05-03T10:04:39.000Z | 2022-03-31T04:51:53.000Z | src/xenia/base/console_app_main_posix.cc | amessier/xenia | 6b45cf84472c26436d4a5db61a7b50dab301e398 | [
"BSD-3-Clause"
] | 671 | 2018-05-04T00:51:22.000Z | 2022-03-31T15:20:22.000Z | src/xenia/base/console_app_main_posix.cc | amessier/xenia | 6b45cf84472c26436d4a5db61a7b50dab301e398 | [
"BSD-3-Clause"
] | 877 | 2018-05-03T21:01:17.000Z | 2022-03-31T19:43:14.000Z | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2021 Ben Vanik. All rights reserved. ... | 31 | 79 | 0.515302 | amessier |
29a3d1d177ae02aca03376322fc9c973ee8eef03 | 6,282 | cpp | C++ | thrift/lib/cpp2/server/ResourcePool.cpp | donsbot/fbthrift | 11e343118082583eb4326d51ff19c343c61ed3cb | [
"Apache-2.0"
] | null | null | null | thrift/lib/cpp2/server/ResourcePool.cpp | donsbot/fbthrift | 11e343118082583eb4326d51ff19c343c61ed3cb | [
"Apache-2.0"
] | null | null | null | thrift/lib/cpp2/server/ResourcePool.cpp | donsbot/fbthrift | 11e343118082583eb4326d51ff19c343c61ed3cb | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... | 35.094972 | 79 | 0.695002 | donsbot |
29a5702e887b217bd1d53849046eaadf0b5f872f | 5,592 | cc | C++ | mindspore/ccsrc/plugin/device/cpu/kernel/depthtospace_cpu_kernel.cc | httpsgithu/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | 1 | 2022-02-23T09:13:43.000Z | 2022-02-23T09:13:43.000Z | mindspore/ccsrc/plugin/device/cpu/kernel/depthtospace_cpu_kernel.cc | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/plugin/device/cpu/kernel/depthtospace_cpu_kernel.cc | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2021-2022 Huawei Technologies Co., Ltd
*
* 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... | 46.214876 | 119 | 0.743562 | httpsgithu |
29a6ad27b55f2b8751df3bfd2cf27dc91ab2687a | 807 | cpp | C++ | Programming and Algorithm/High Level Programming Language 2/6804 [Inheritance] The Triangle Class/Latest Submission/framework.cpp | Lan-Jing/Courses | 540db9499b8725ca5b82a2c4e7a3da09f73c0efa | [
"MIT"
] | 1 | 2021-12-17T23:09:00.000Z | 2021-12-17T23:09:00.000Z | Programming and Algorithm/High Level Programming Language 2/6804 [Inheritance] The Triangle Class/Latest Submission/framework.cpp | Lan-Jing/Courses | 540db9499b8725ca5b82a2c4e7a3da09f73c0efa | [
"MIT"
] | null | null | null | Programming and Algorithm/High Level Programming Language 2/6804 [Inheritance] The Triangle Class/Latest Submission/framework.cpp | Lan-Jing/Courses | 540db9499b8725ca5b82a2c4e7a3da09f73c0efa | [
"MIT"
] | 1 | 2021-08-03T23:42:06.000Z | 2021-08-03T23:42:06.000Z | #include <iostream>
#include <string>
#include "source.hpp "
using namespace std;
int main()
{
Triangle shape1;
cout << shape1.getSide1() << endl;
cout << shape1.getSide2() << endl;
cout << shape1.getSide3() << endl;
cout << shape1.getArea() << endl;
cout << shape1.getPerimeter() << endl;
cout << shape1... | 24.454545 | 40 | 0.609665 | Lan-Jing |
29a6b20f400037c996befe49a6a3f0d8abb48311 | 6,374 | cpp | C++ | src/ufile.cpp | pranav-pointer/ulib-win | b67f644ed11c849e3c93b909f90d443df7be4e4c | [
"Apache-2.0"
] | 4 | 2016-09-07T07:02:52.000Z | 2019-06-22T08:55:53.000Z | src/ufile.cpp | dbremner/ulib-win | 2ad600df92351ea12b79cad769056ab111e2f9bf | [
"Apache-2.0"
] | null | null | null | src/ufile.cpp | dbremner/ulib-win | 2ad600df92351ea12b79cad769056ab111e2f9bf | [
"Apache-2.0"
] | 3 | 2019-06-22T16:00:39.000Z | 2022-03-09T13:46:27.000Z | /*
* =====================================================================================
*
* Filename: ufile.cpp
*
* Description: implement of UFile class
*
* Version: 1.0
* Created: 2009-7-22 20:29:39
* Revision: none
* Compiler: gcc
*
* Author: huys (hys... | 20.107256 | 88 | 0.577659 | pranav-pointer |
29a74c4c8a134ec1b7a0928417e12e9836f2549e | 2,484 | hpp | C++ | ODFAEG/extlibs/headers/MySQL/conncpp/CArray.hpp | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | null | null | null | ODFAEG/extlibs/headers/MySQL/conncpp/CArray.hpp | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | 1 | 2020-02-14T14:19:44.000Z | 2020-12-04T17:39:17.000Z | ODFAEG/extlibs/headers/MySQL/conncpp/CArray.hpp | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | 2 | 2021-05-23T13:45:28.000Z | 2021-07-24T13:36:13.000Z | /************************************************************************************
Copyright (C) 2020 MariaDB Corporation AB
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; eit... | 28.227273 | 86 | 0.635266 | Mechap |
29a81407f1418145ed1617326819a09abb805b80 | 2,021 | cpp | C++ | src/phyx-1.01/src/main.cpp | jlanga/smsk_selection | 08070c6d4a6fbd9320265e1e698c95ba80f81123 | [
"MIT"
] | 4 | 2021-07-18T05:20:20.000Z | 2022-01-03T10:22:33.000Z | src/phyx-1.01/src/main.cpp | jlanga/smsk_selection | 08070c6d4a6fbd9320265e1e698c95ba80f81123 | [
"MIT"
] | 1 | 2017-08-21T07:26:13.000Z | 2018-11-08T13:59:48.000Z | src/phyx-1.01/src/main.cpp | jlanga/smsk_orthofinder | 08070c6d4a6fbd9320265e1e698c95ba80f81123 | [
"MIT"
] | 2 | 2021-07-18T05:20:26.000Z | 2022-03-31T18:23:31.000Z | /*
* main.cpp
*
* Created on: Nov 24, 2009
* Author: smitty
*/
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
using namespace std;
#include "node.h"
#include "tree_reader.h"
#include "string_node_object.h"
#include "vector_node_object.h"
#include "tree.h"
int main(int argc... | 25.910256 | 95 | 0.592776 | jlanga |
29a8aac9bd73671c0164d2f753462227baaa1fdb | 28,594 | cpp | C++ | src/core/Application.cpp | onqtam/game | 08d9f2871bfd5c757d541064b77d38474123592a | [
"MIT"
] | 41 | 2016-10-12T15:54:04.000Z | 2022-01-12T04:17:20.000Z | src/core/Application.cpp | onqtam/game | 08d9f2871bfd5c757d541064b77d38474123592a | [
"MIT"
] | null | null | null | src/core/Application.cpp | onqtam/game | 08d9f2871bfd5c757d541064b77d38474123592a | [
"MIT"
] | 10 | 2015-09-16T19:56:36.000Z | 2021-12-27T21:12:11.000Z | #include "Application.h"
#include "PluginManager.h"
#include "World.h"
#include "rendering/GraphicsHelpers.h"
#include "rendering/Renderer.h"
#include "imgui/ImGuiManager.h"
#define RCRL_LIVE_DEMO 1
HA_SUPPRESS_WARNINGS
#include <GLFW/glfw3.h>
#include <imgui.h>
#ifdef EMSCRIPTEN
#include <emscripten/emscripten.h>
#... | 36.103535 | 131 | 0.612506 | onqtam |
29a8ab5bc3786f88708aa04a156d493e82f7dbb1 | 737 | hpp | C++ | TenNenDemon/Code/Game/CutsceneDefinition.hpp | sam830917/TenNenDemon | a5f60007b73cccc6af8675c7f3dec597008dfdb4 | [
"MIT"
] | null | null | null | TenNenDemon/Code/Game/CutsceneDefinition.hpp | sam830917/TenNenDemon | a5f60007b73cccc6af8675c7f3dec597008dfdb4 | [
"MIT"
] | null | null | null | TenNenDemon/Code/Game/CutsceneDefinition.hpp | sam830917/TenNenDemon | a5f60007b73cccc6af8675c7f3dec597008dfdb4 | [
"MIT"
] | null | null | null | #pragma once
#include "Engine/Core/XmlUtils.hpp"
#include <map>
#include <vector>
#include <string>
class Texture;
struct CutsceneLines
{
std::string m_line = "";
std::string m_characterName = "";
Texture* m_background = nullptr;
Texture* m_characterImage = nullptr;
};
class CutsceneDefinition
{
public:
static ... | 21.676471 | 85 | 0.750339 | sam830917 |
29a91c33b90e0a0097b9caae6a983e194f40b3b6 | 1,687 | cpp | C++ | C++/001_Two_Sum.cpp | stephenkid/LeetCode-Sol | 8cb429652e0741ca4078b6de5f9eeaddcb8607a8 | [
"MIT"
] | 1,958 | 2015-01-30T01:19:03.000Z | 2022-03-17T03:34:47.000Z | src/main/cpp/001_Two_Sum.cpp | TechnoBlogger14o3/LeetCode-Sol-Res | 04621f21a76fab29909c1fa04a37417257a88f63 | [
"MIT"
] | 135 | 2016-03-03T04:53:10.000Z | 2022-03-03T21:14:37.000Z | src/main/cpp/001_Two_Sum.cpp | TechnoBlogger14o3/LeetCode-Sol-Res | 04621f21a76fab29909c1fa04a37417257a88f63 | [
"MIT"
] | 914 | 2015-01-27T22:27:22.000Z | 2022-03-05T04:25:10.000Z | /*
*Given an array of integers, return indices of the two numbers such that they add up to a specific target.
*You may assume that each input would have exactly one solution.
*Example:
*Given nums = [2, 7, 11, 15], target = 9,
*Because nums[0] + nums[1] = 2 + 7 = 9,
*return [0, 1].
*UPDATE (2016/2/13):
*The r... | 23.430556 | 111 | 0.609366 | stephenkid |
29a981a9ffe71d9af92058659e721749035752b5 | 6,685 | cpp | C++ | Graphics/src/GLSLProgram.cpp | MarcoLotto/ScenaFramework | 533e5149a1580080e41bfb37d5648023b6e39f6f | [
"MIT"
] | 2 | 2019-01-21T20:47:29.000Z | 2020-01-09T01:08:24.000Z | Graphics/src/GLSLProgram.cpp | MarcoLotto/ScaenaFramework | 533e5149a1580080e41bfb37d5648023b6e39f6f | [
"MIT"
] | null | null | null | Graphics/src/GLSLProgram.cpp | MarcoLotto/ScaenaFramework | 533e5149a1580080e41bfb37d5648023b6e39f6f | [
"MIT"
] | null | null | null | /**********************************
* SCAENA FRAMEWORK
* Author: Marco Andrés Lotto
* License: MIT - 2016
**********************************/
#include "Mesh.h"
#include "GLSLProgram.h"
#include "GLSLProgramGLImplementation.h"
#include "GLSLProgramGLES3Implementation.h"
#include "GLSLProgramGLES2Implementation.h"
#incl... | 32.294686 | 114 | 0.770681 | MarcoLotto |
29aca580358534363dc2832e3946efde7a6a03aa | 32,586 | cpp | C++ | Dev/Cpp/EffekseerRendererLLGI/EffekseerRendererLLGI.Renderer.cpp | NumAniCloud/Effekseer | f4547a57eea4c85b55cb8218bf6cac6af6d6dd37 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-11-21T01:34:30.000Z | 2020-11-21T01:34:30.000Z | Dev/Cpp/EffekseerRendererLLGI/EffekseerRendererLLGI.Renderer.cpp | NumAniCloud/Effekseer | f4547a57eea4c85b55cb8218bf6cac6af6d6dd37 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Dev/Cpp/EffekseerRendererLLGI/EffekseerRendererLLGI.Renderer.cpp | NumAniCloud/Effekseer | f4547a57eea4c85b55cb8218bf6cac6af6d6dd37 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
#include "EffekseerRendererLLGI.Renderer.h"
#include "EffekseerRendererLLGI.RenderState.h"
#include "EffekseerRendererLLGI.RendererImplemented.h"
#include "EffekseerRendererLLGI.DeviceObject.h"
#include "EffekseerRendererLLGI.IndexBuffer.h"
#include "EffekseerRendererLLGI.Shader.h"
#include "EffekseerRendererLLGI.Ve... | 33.490236 | 148 | 0.767201 | NumAniCloud |
29afc06854a54804bb39a19257a081a08e45b44e | 2,510 | cc | C++ | vendor/chromium/base/allocator/allocator_shim_default_dispatch_to_tcmalloc.cc | thorium-cfx/fivem | 587eb7c12066a2ebf8631bde7bb39ee2df1b5a0c | [
"MIT"
] | 5,411 | 2017-04-14T08:57:56.000Z | 2022-03-30T19:35:15.000Z | vendor/chromium/base/allocator/allocator_shim_default_dispatch_to_tcmalloc.cc | thorium-cfx/fivem | 587eb7c12066a2ebf8631bde7bb39ee2df1b5a0c | [
"MIT"
] | 802 | 2017-04-21T14:18:36.000Z | 2022-03-31T21:20:48.000Z | vendor/chromium/base/allocator/allocator_shim_default_dispatch_to_tcmalloc.cc | thorium-cfx/fivem | 587eb7c12066a2ebf8631bde7bb39ee2df1b5a0c | [
"MIT"
] | 2,011 | 2017-04-14T09:44:15.000Z | 2022-03-31T15:40:39.000Z | // Copyright 2016 The Chromium 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 "base/allocator/allocator_shim.h"
#include "base/allocator/allocator_shim_internals.h"
#include "third_party/tcmalloc/chromium/src/config.h"
#in... | 29.529412 | 80 | 0.662151 | thorium-cfx |
29b08b9a31543499edd4949d6a60db52a6734f4e | 2,312 | cpp | C++ | Source/RendererCore/D3D12/D3D12CommandPool.cpp | DavidTheFighter/KalosEngine | 4c550114066bee1c41d08f38f5b692e567e96c27 | [
"MIT"
] | 1 | 2018-12-16T21:19:58.000Z | 2018-12-16T21:19:58.000Z | Source/RendererCore/D3D12/D3D12CommandPool.cpp | DavidTheFighter/KalosEngine | 4c550114066bee1c41d08f38f5b692e567e96c27 | [
"MIT"
] | null | null | null | Source/RendererCore/D3D12/D3D12CommandPool.cpp | DavidTheFighter/KalosEngine | 4c550114066bee1c41d08f38f5b692e567e96c27 | [
"MIT"
] | null | null | null | #include "RendererCore/D3D12/D3D12CommandPool.h"
#if BUILD_D3D12_BACKEND
#include <RendererCore/D3D12/D3D12Renderer.h>
#include <RendererCore/D3D12/D3D12CommandBuffer.h>
#include <RendererCore/D3D12/D3D12Enums.h>
D3D12CommandPool::D3D12CommandPool(D3D12Renderer *rendererPtr, QueueType queueType)
{
renderer ... | 32.111111 | 160 | 0.768166 | DavidTheFighter |
29b2eaef2648af9c18fc65796d59851e8232b5aa | 508 | cpp | C++ | src/Player/LocalPlayer.cpp | f0xeri/Mine-Plus-Plus | 52c8323913b30e5c2837925dc88de002fe0e1b78 | [
"MIT"
] | 28 | 2021-04-04T13:55:04.000Z | 2022-02-01T05:51:21.000Z | src/Player/LocalPlayer.cpp | codingwatching/Mine-Plus-Plus | 7b90c904b660dd5089c44dbf34d494367d0d060b | [
"MIT"
] | 1 | 2021-07-28T15:33:42.000Z | 2021-07-28T15:33:42.000Z | src/Player/LocalPlayer.cpp | codingwatching/Mine-Plus-Plus | 7b90c904b660dd5089c44dbf34d494367d0d060b | [
"MIT"
] | 1 | 2021-07-30T04:13:14.000Z | 2021-07-30T04:13:14.000Z | //
// Created by Yaroslav on 20.07.2021.
//
#include "LocalPlayer.hpp"
void LocalPlayer::update(double dt, State *state) {
if (state->thirdPersonView)
{
state->camera->pos.y = pos.y + 3;
state->camera->pos.x = pos.x + glm::sin(state->camera->rotY) * 3;
state->camera->pos.z = pos.z + gl... | 21.166667 | 73 | 0.574803 | f0xeri |
29b2fb4aa2a6d3c0667e29ca14143e155eed7eb5 | 6,202 | cpp | C++ | native/src/seal/c/keygenerator.cpp | zirconium-n/SEAL | 88bbc51dd684b82a781312ff04abd235c060163e | [
"MIT"
] | 1,604 | 2019-05-06T22:40:56.000Z | 2022-03-31T14:53:33.000Z | native/src/seal/c/keygenerator.cpp | zirconium-n/SEAL | 88bbc51dd684b82a781312ff04abd235c060163e | [
"MIT"
] | 425 | 2019-05-09T08:10:10.000Z | 2022-03-31T17:16:51.000Z | native/src/seal/c/keygenerator.cpp | zirconium-n/SEAL | 88bbc51dd684b82a781312ff04abd235c060163e | [
"MIT"
] | 468 | 2019-05-08T11:06:24.000Z | 2022-03-30T14:30:10.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// STD
#include <algorithm>
#include <iterator>
// SEALNet
#include "seal/c/keygenerator.h"
#include "seal/c/utilities.h"
// SEAL
#include "seal/keygenerator.h"
#include "seal/util/common.h"
using namespace std;
using na... | 26.965217 | 115 | 0.695421 | zirconium-n |
29b40d7dc12a0dc753ff469a0d70e4c5dc206314 | 438 | hpp | C++ | include/ssGUI/Enums/AnchorType.hpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | 15 | 2022-01-21T10:48:04.000Z | 2022-03-27T17:55:11.000Z | include/ssGUI/Enums/AnchorType.hpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | null | null | null | include/ssGUI/Enums/AnchorType.hpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | 4 | 2022-01-21T10:48:05.000Z | 2022-01-22T15:42:34.000Z | #ifndef SSGUI_ANCHOR_TYPE
#define SSGUI_ANCHOR_TYPE
//namespace: ssGUI::Enums
namespace ssGUI::Enums
{
/*enum: AnchorType
TOP_LEFT - Anchoring top left
TOP_RIGHT - Anchoring top right
BOTTOM_LEFT - Anchoring bottom left
BOTTOM_RIGHT - Anchoring bottom right
*/
enum class Ancho... | 18.25 | 42 | 0.625571 | Neko-Box-Coder |
29b4b8cfbb1cfe69b82dd2d5afd90d41e896bef4 | 218 | cpp | C++ | src/main.cpp | zaki0929/rosFlowLIDAR | e4e5cdcd2541c484afb28e129b7503a6c9b532a0 | [
"MIT"
] | null | null | null | src/main.cpp | zaki0929/rosFlowLIDAR | e4e5cdcd2541c484afb28e129b7503a6c9b532a0 | [
"MIT"
] | null | null | null | src/main.cpp | zaki0929/rosFlowLIDAR | e4e5cdcd2541c484afb28e129b7503a6c9b532a0 | [
"MIT"
] | null | null | null | #include "ofMain.h"
#include "ofApp.h"
#include "ros/ros.h"
int main(int argc, char *argv[]){
ros::init(argc, argv, "flow_lidar");
ofSetupOpenGL(1024,768,OF_WINDOW);
ofApp *app = new ofApp();
ofRunApp(app);
}
| 19.818182 | 38 | 0.66055 | zaki0929 |
29b61c356b519494cfda48e703b5779db9816ed2 | 89,955 | cpp | C++ | src/coreclr/src/vm/syncblk.cpp | swaroop-sridhar/runtime | d0efddd932f6fb94c3e9436ab393fc390c7b2da9 | [
"MIT"
] | 11 | 2021-10-21T07:56:23.000Z | 2022-03-31T15:08:10.000Z | src/coreclr/src/vm/syncblk.cpp | swaroop-sridhar/runtime | d0efddd932f6fb94c3e9436ab393fc390c7b2da9 | [
"MIT"
] | 1 | 2020-11-17T09:52:30.000Z | 2020-11-17T09:52:30.000Z | src/coreclr/src/vm/syncblk.cpp | swaroop-sridhar/runtime | d0efddd932f6fb94c3e9436ab393fc390c7b2da9 | [
"MIT"
] | 2 | 2021-05-17T22:12:46.000Z | 2021-05-19T06:21:16.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// SYNCBLK.CPP
//
//
// Definition of a SyncBlock and the SyncBlockCache which manages it
//
#include "common.h"
#include "vars.hpp"
#include "util.hpp"
#include "class.h"
#inc... | 30.277684 | 176 | 0.593663 | swaroop-sridhar |
29b74e7c0d5bb67ae412ee47c96971497019c737 | 16,706 | cpp | C++ | Source/SVWidgetsLib/FilterParameterWidgets/CalculatorWidget.cpp | jmarquisbq/SIMPL | 375653013742cfe9aed603fc9a6bab6d9c96be31 | [
"NRL"
] | null | null | null | Source/SVWidgetsLib/FilterParameterWidgets/CalculatorWidget.cpp | jmarquisbq/SIMPL | 375653013742cfe9aed603fc9a6bab6d9c96be31 | [
"NRL"
] | null | null | null | Source/SVWidgetsLib/FilterParameterWidgets/CalculatorWidget.cpp | jmarquisbq/SIMPL | 375653013742cfe9aed603fc9a6bab6d9c96be31 | [
"NRL"
] | null | null | null | /* ============================================================================
* Copyright (c) 2009-2015 BlueQuartz Software, LLC
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code... | 35.773019 | 158 | 0.542141 | jmarquisbq |
29b9130993ce84a96532667cbd236085c4577c5d | 5,602 | cpp | C++ | src/wiztk/system/threading/thread.cpp | wiztk/framework | 179baf8a24406b19d3f4ea28e8405358b21f8446 | [
"Apache-2.0"
] | 37 | 2017-11-22T14:15:33.000Z | 2021-11-25T20:39:39.000Z | src/wiztk/system/threading/thread.cpp | wiztk/framework | 179baf8a24406b19d3f4ea28e8405358b21f8446 | [
"Apache-2.0"
] | 3 | 2018-03-01T12:44:22.000Z | 2021-01-04T23:14:41.000Z | src/wiztk/system/threading/thread.cpp | wiztk/framework | 179baf8a24406b19d3f4ea28e8405358b21f8446 | [
"Apache-2.0"
] | 10 | 2017-11-25T19:09:11.000Z | 2020-12-02T02:05:47.000Z | /*
* Copyright 2017 - 2018 The WizTK Authors.
*
* 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 ... | 23.244813 | 83 | 0.691539 | wiztk |
29ba9c18432148acb41da7fde93b13235e944a1e | 3,084 | hpp | C++ | src/boost/serialization/strong_typedef.hpp | 107-systems/107-Arduino-BoostUnits | fc3677ae79c1e75c99b3aa7813eb6ec83124b944 | [
"MIT"
] | null | null | null | src/boost/serialization/strong_typedef.hpp | 107-systems/107-Arduino-BoostUnits | fc3677ae79c1e75c99b3aa7813eb6ec83124b944 | [
"MIT"
] | 1 | 2021-08-30T18:02:49.000Z | 2021-08-30T18:02:49.000Z | src/boost/serialization/strong_typedef.hpp | 107-systems/107-Arduino-BoostUnits | fc3677ae79c1e75c99b3aa7813eb6ec83124b944 | [
"MIT"
] | null | null | null | #ifndef BOOST_SERIALIZATION_STRONG_TYPEDEF_HPP
#define BOOST_SERIALIZATION_STRONG_TYPEDEF_HPP
// MS compatible compilers support #pragma once
#if defined(_MSC_VER)
# pragma once
#endif
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// strong_typedef.hpp:
// (C) Copyright 2002 Robert... | 60.470588 | 114 | 0.479572 | 107-systems |
29bd5ac843593d90d0c3ffbc1163a2ce5156a9ac | 1,634 | hpp | C++ | phya/include/Signal/paLowpass.hpp | sheldonrobinson/phya-code | 88c9cf0d725159f94d85dcc2d8f04e3bdfcf92b2 | [
"BSD-3-Clause"
] | 1 | 2016-05-06T04:27:54.000Z | 2016-05-06T04:27:54.000Z | phya/include/Signal/paLowpass.hpp | sheldonrobinson/phya-code | 88c9cf0d725159f94d85dcc2d8f04e3bdfcf92b2 | [
"BSD-3-Clause"
] | null | null | null | phya/include/Signal/paLowpass.hpp | sheldonrobinson/phya-code | 88c9cf0d725159f94d85dcc2d8f04e3bdfcf92b2 | [
"BSD-3-Clause"
] | null | null | null | //
// paLowpass.hpp
//
// Note we can have the input and output pointing to the same
// paBlock
//
#if !defined (__paLowpass_hpp)
#define __paLowpass_hpp
#include "Signal/paBlock.hpp"
class PHYA_API paLowpass
{
private:
paBlock* m_input;
paBlock* m_output;
// Buffered 'set' variables,... | 19.686747 | 89 | 0.654223 | sheldonrobinson |
29c16222bccf96b9fc6fbe218c1bdde13534f655 | 1,683 | cpp | C++ | frameworks/core/components/svg/svg_fe_offset_component.cpp | openharmony-gitee-mirror/ace_ace_engine | 78013960cdce81348d1910e466a3292605442a5e | [
"Apache-2.0"
] | null | null | null | frameworks/core/components/svg/svg_fe_offset_component.cpp | openharmony-gitee-mirror/ace_ace_engine | 78013960cdce81348d1910e466a3292605442a5e | [
"Apache-2.0"
] | null | null | null | frameworks/core/components/svg/svg_fe_offset_component.cpp | openharmony-gitee-mirror/ace_ace_engine | 78013960cdce81348d1910e466a3292605442a5e | [
"Apache-2.0"
] | 1 | 2021-09-13T11:17:50.000Z | 2021-09-13T11:17:50.000Z | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 ... | 27.145161 | 92 | 0.741533 | openharmony-gitee-mirror |
29c278494359f687d5ecdedc20fca3ea44e8d253 | 5,174 | cpp | C++ | src/Figures/CTriangle.cpp | aashrafh/PaintForKids | 9dda14f1f24ac70af2d6bd277be05016f7a94339 | [
"MIT"
] | 2 | 2020-09-16T01:11:24.000Z | 2021-01-14T09:38:16.000Z | src/Figures/CTriangle.cpp | aashrafh/PaintForKids | 9dda14f1f24ac70af2d6bd277be05016f7a94339 | [
"MIT"
] | null | null | null | src/Figures/CTriangle.cpp | aashrafh/PaintForKids | 9dda14f1f24ac70af2d6bd277be05016f7a94339 | [
"MIT"
] | null | null | null | #include "CTriangle.h"
int CTriangle::TriCnt = 0;
CTriangle::CTriangle(Point P1, Point P2, Point P3, GfxInfo FigureGfxInfo) :CFigure(FigureGfxInfo)
{
Corner1 = P1;
Corner2 = P2;
Corner3 = P3;
FigGfxInfo.Resize_Factor = 1;
TriCnt++;
}
CTriangle::CTriangle(){}
void CTriangle::Draw(Output *pOut) const
{
//Call Out... | 29.397727 | 162 | 0.628334 | aashrafh |
29c44d7886f2601e2aaeba9d5d203fd585cb7723 | 25,620 | cpp | C++ | tests/BlurTest.cpp | derp-caf/external_skia | b09dc92e00edce8366085aaad7dcce94ceb11b69 | [
"BSD-3-Clause"
] | 1 | 2019-05-29T09:54:38.000Z | 2019-05-29T09:54:38.000Z | tests/BlurTest.cpp | derp-caf/external_skia | b09dc92e00edce8366085aaad7dcce94ceb11b69 | [
"BSD-3-Clause"
] | null | null | null | tests/BlurTest.cpp | derp-caf/external_skia | b09dc92e00edce8366085aaad7dcce94ceb11b69 | [
"BSD-3-Clause"
] | 8 | 2019-01-12T23:06:45.000Z | 2021-09-03T00:15:46.000Z | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBlurMask.h"
#include "SkBlurMaskFilter.h"
#include "SkBlurDrawLooper.h"
#include "SkCanvas.h"
#include "SkColorFilter.h"
#include "SkColorPriv.h"
#include "SkEmbos... | 36.340426 | 100 | 0.560304 | derp-caf |
29c54fa07903f19a551759612a50d6181a24f780 | 25,392 | cpp | C++ | src/CommonProperties.cpp | TimoKunze/ButtonControls | a0b9860a30a86e613a633635b16e3db117133c50 | [
"MIT"
] | 2 | 2019-12-12T08:12:21.000Z | 2021-03-30T05:00:53.000Z | src/CommonProperties.cpp | TimoKunze/ButtonControls | a0b9860a30a86e613a633635b16e3db117133c50 | [
"MIT"
] | null | null | null | src/CommonProperties.cpp | TimoKunze/ButtonControls | a0b9860a30a86e613a633635b16e3db117133c50 | [
"MIT"
] | 1 | 2021-12-09T18:23:25.000Z | 2021-12-09T18:23:25.000Z | // CommonProperties.cpp: The controls' "Common" property page
#include "stdafx.h"
#include "CommonProperties.h"
CommonProperties::CommonProperties()
{
m_dwTitleID = IDS_TITLECOMMONPROPERTIES;
m_dwDocStringID = IDS_DOCSTRINGCOMMONPROPERTIES;
}
//////////////////////////////////////////////////////////////////////... | 43.628866 | 231 | 0.745432 | TimoKunze |
29c6e3aba66fab1049dfff02a5e850768e564549 | 4,924 | cpp | C++ | Spark/effects/BloomPass.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | 1 | 2022-02-15T19:50:01.000Z | 2022-02-15T19:50:01.000Z | Spark/effects/BloomPass.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | null | null | null | Spark/effects/BloomPass.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | null | null | null | #include "BloomPass.hpp"
#include "CommonUtils.h"
#include "Shader.h"
#include "Spark.h"
namespace spark::effects
{
BloomPass::BloomPass(unsigned int width, unsigned int height) : w(width), h(height)
{
bloomDownScaleShaderMip0ToMip1 = Spark::get().getResourceLibrary().getResourceByName<resources::Shader>("bloomDo... | 40.694215 | 148 | 0.743501 | MickAlmighty |
29c6e6c2a85399516d56ce80b65d1d71edabdea6 | 623 | cpp | C++ | InterviewBit/DP/lls.cpp | Cobnagi/Competitive-programming | 4037e0542350e789a31bf3ebd97896c0d75bea17 | [
"MIT"
] | 6 | 2019-10-06T17:39:42.000Z | 2022-03-03T10:57:52.000Z | InterviewBit/DP/lls.cpp | Cobnagi/Competitive-programming | 4037e0542350e789a31bf3ebd97896c0d75bea17 | [
"MIT"
] | null | null | null | InterviewBit/DP/lls.cpp | Cobnagi/Competitive-programming | 4037e0542350e789a31bf3ebd97896c0d75bea17 | [
"MIT"
] | 2 | 2019-10-06T11:09:01.000Z | 2019-10-06T17:40:46.000Z | int Solution::longestSubsequenceLength(const vector<int> &A) {
if(A.size()==0)
return 0;
vector<int> incr(A.size(),1);
vector<int> decr(A.size(),1);
for(int i=0;i<incr.size();i++){
for(int j=0;j<i;j++){
if(A[i]>A[j])
incr[i]=max(incr[i],incr[j]+1);
... | 24.92 | 62 | 0.434992 | Cobnagi |
29c794a301cc8731fe49de58b703012148d98af6 | 3,091 | cpp | C++ | service/resource-encapsulation/src/resourceClient/RCSDiscoveryManager.cpp | rzr/iotivity-1 | 42bbf60e6bdbaec05a2d26cbc1571885ccfa093b | [
"Apache-2.0"
] | null | null | null | service/resource-encapsulation/src/resourceClient/RCSDiscoveryManager.cpp | rzr/iotivity-1 | 42bbf60e6bdbaec05a2d26cbc1571885ccfa093b | [
"Apache-2.0"
] | null | null | null | service/resource-encapsulation/src/resourceClient/RCSDiscoveryManager.cpp | rzr/iotivity-1 | 42bbf60e6bdbaec05a2d26cbc1571885ccfa093b | [
"Apache-2.0"
] | null | null | null | //******************************************************************
//
// Copyright 2015 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... | 41.213333 | 108 | 0.624393 | rzr |
29cb16ddc22d8dc7c457fb0f0b10ae20d384446c | 8,163 | hpp | C++ | external/range-v3/include/range/v3/view/cycle.hpp | VladPodilnyk/kmeans-cpp | bb8843698a034752fe612fa872403a76a34ab82e | [
"MIT"
] | null | null | null | external/range-v3/include/range/v3/view/cycle.hpp | VladPodilnyk/kmeans-cpp | bb8843698a034752fe612fa872403a76a34ab82e | [
"MIT"
] | null | null | null | external/range-v3/include/range/v3/view/cycle.hpp | VladPodilnyk/kmeans-cpp | bb8843698a034752fe612fa872403a76a34ab82e | [
"MIT"
] | null | null | null | /// \file cycle.hpp
// Range v3 library
//
// Copyright Eric Niebler 2013-present
// Copyright Gonzalo Brito Gadeschi 2015
// Copyright Casey Carter 2015
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at
// http... | 35.646288 | 95 | 0.487688 | VladPodilnyk |
29cc65444999159d8ed28c864083b15576185b07 | 5,855 | cpp | C++ | Linked List/Pointer Based Concepts/Remove Duplicates From A Sorted Singly LL.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 8 | 2021-02-13T17:07:27.000Z | 2021-08-20T08:20:40.000Z | Linked List/Pointer Based Concepts/Remove Duplicates From A Sorted Singly LL.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | null | null | null | Linked List/Pointer Based Concepts/Remove Duplicates From A Sorted Singly LL.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 5 | 2021-02-17T18:12:20.000Z | 2021-10-10T17:49:34.000Z | // Problem: https://www.interviewbit.com/problems/remove-duplicates-from-sorted-list/
/****************************************************************************************************/
// Method 1
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define pb push_bac... | 21.061151 | 104 | 0.580359 | Edith-3000 |
29ce2f149b1a02816d24937485ccfdce7ff9fc8a | 753 | cpp | C++ | src/simpledbus/common/Introspectable.cpp | jeremyephron/SimpleDBus | d352886b260beb1775348cc88b146e9362809b3e | [
"MIT"
] | 5 | 2020-07-16T02:53:50.000Z | 2021-09-08T22:25:15.000Z | src/simpledbus/common/Introspectable.cpp | jeremyephron/SimpleDBus | d352886b260beb1775348cc88b146e9362809b3e | [
"MIT"
] | 5 | 2021-01-03T18:07:47.000Z | 2021-02-04T06:37:42.000Z | src/simpledbus/common/Introspectable.cpp | kdewald/SimpleDBus | e8b25b93dce66d172e87ec3c088ed9f1f168bcba | [
"MIT"
] | 3 | 2021-02-03T15:59:19.000Z | 2021-08-31T01:52:05.000Z | #include "Introspectable.h"
#include "../base/Message.h"
#include "../base/Logger.h"
#include <iostream>
using namespace SimpleDBus;
Introspectable::Introspectable(Connection* conn, std::string service, std::string path)
: _conn(conn), _service(service), _path(path), _interface("org.freedesktop.DBus.Introspecta... | 31.375 | 103 | 0.734396 | jeremyephron |
29cea93f574377bb930e2fc20280e0ac6a5d042c | 4,491 | cpp | C++ | libraries/AM2315/AM2315.cpp | AndreTeixeira1998/Arduino | 16918bada3cf9dfee0f6baa72ee1de87602b84ca | [
"MIT"
] | null | null | null | libraries/AM2315/AM2315.cpp | AndreTeixeira1998/Arduino | 16918bada3cf9dfee0f6baa72ee1de87602b84ca | [
"MIT"
] | 3 | 2022-01-05T14:55:28.000Z | 2022-01-17T15:16:13.000Z | libraries/AM2315/AM2315.cpp | AndreTeixeira1998/Arduino | 16918bada3cf9dfee0f6baa72ee1de87602b84ca | [
"MIT"
] | null | null | null | //
// FILE: AM2315.cpp
// AUTHOR: Rob.Tillaart@gmail.com
// VERSION: 0.1.2
// PURPOSE: AM2315 Temperature and Humidity sensor library for Arduino
// URL: https://github.com/RobTillaart/AM2315
//
// HISTORY:
// 0.1.0 2022-01-05 initial version
// 0.1.1 2022-01-11 fix handshake.
// 0.1.2 2022-01-13 fix ... | 18.7125 | 70 | 0.598308 | AndreTeixeira1998 |