hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31410c8491c5c51571bb9c7f467cd97df0e9483d | 240 | cpp | C++ | 1177.cpp | fenatan/URI-Online-Judge | 983cadd364e658cdebcbc2c0165e8f54e023a823 | [
"MIT"
] | null | null | null | 1177.cpp | fenatan/URI-Online-Judge | 983cadd364e658cdebcbc2c0165e8f54e023a823 | [
"MIT"
] | null | null | null | 1177.cpp | fenatan/URI-Online-Judge | 983cadd364e658cdebcbc2c0165e8f54e023a823 | [
"MIT"
] | null | null | null | #include <stdio.h>
int main(){
int t, cont;
scanf("%d", &t);
cont = 0;
for(int i =0; i < 1000; i++){
printf("N[%d] = %d\n", i,cont);
cont++;
if(cont == t)
cont = 0;
}
return 0;
}
| 16 | 39 | 0.383333 | fenatan |
31456f3d1416156987e215907a737654e51918fa | 765 | hpp | C++ | src/sandbox/ProgramArgs.hpp | maxisoft/sandboxtank | ee1f37e3bda3dc27c8dfa64630166eed8a1af08d | [
"MIT"
] | null | null | null | src/sandbox/ProgramArgs.hpp | maxisoft/sandboxtank | ee1f37e3bda3dc27c8dfa64630166eed8a1af08d | [
"MIT"
] | 3 | 2020-08-30T09:10:53.000Z | 2020-08-30T09:41:57.000Z | src/sandbox/ProgramArgs.hpp | maxisoft/sandboxtank | ee1f37e3bda3dc27c8dfa64630166eed8a1af08d | [
"MIT"
] | 1 | 2021-09-23T00:34:13.000Z | 2021-09-23T00:34:13.000Z | #pragma once
#include <cassert>
#include <filesystem>
#include <array>
#include <optional>
#include <map>
#include <vector>
#include <tchar.h>
#include <cstdio>
namespace maxisoft::sandbox
{
struct ProgramArgs
{
size_t argc;
std::filesystem::path program;
std::filesystem::path config;... | 22.5 | 85 | 0.657516 | maxisoft |
31466ca33813793ae064846b15401a505b804744 | 1,349 | hpp | C++ | src/img_set.hpp | yytdfc/libtorch-mnasnet | f7f025bdcaa3f2a1654b4ad5786a91f6179bf3c5 | [
"MIT"
] | 1 | 2019-02-05T16:40:29.000Z | 2019-02-05T16:40:29.000Z | src/img_set.hpp | yytdfc/libtorch-mnasnet | f7f025bdcaa3f2a1654b4ad5786a91f6179bf3c5 | [
"MIT"
] | null | null | null | src/img_set.hpp | yytdfc/libtorch-mnasnet | f7f025bdcaa3f2a1654b4ad5786a91f6179bf3c5 | [
"MIT"
] | null | null | null | #include <torch/data/datasets/base.h>
#include <torch/data/example.h>
#include <torch/types.h>
class ImgSet : public Dataset<ImgSet> {
public:
/// The mode in which the dataset is loaded.
enum class Mode { kTrain, kTest };
/// Loads the MNIST dataset from the `root` path.
///
/// The supplied `... | 28.702128 | 77 | 0.644922 | yytdfc |
3149634d70ee92dca8decb62f5436e91c12b97c1 | 648 | cpp | C++ | Strings_Equalization.cpp | De-Fau-Lt/Solutions | 2539f815ab5c77769b3e3cc00fe0e7a7ec940ad5 | [
"MIT"
] | null | null | null | Strings_Equalization.cpp | De-Fau-Lt/Solutions | 2539f815ab5c77769b3e3cc00fe0e7a7ec940ad5 | [
"MIT"
] | null | null | null | Strings_Equalization.cpp | De-Fau-Lt/Solutions | 2539f815ab5c77769b3e3cc00fe0e7a7ec940ad5 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while (t--)
{
string s, t;
cin >> s >> t;
unordered_set<char> s1;
unordered_set<char> s2;
for (auto x : s)
s1.insert(x);
for (auto x : t)
... | 18.514286 | 57 | 0.322531 | De-Fau-Lt |
314c654635e645dde3a91ba4ad5a0d5d348d2b75 | 5,253 | cpp | C++ | source/geometry/GeometryPooling3D.cpp | WillTao-RD/MNN | 48575121859093bab8468d6992596962063b7aff | [
"Apache-2.0"
] | 2 | 2020-12-15T13:56:31.000Z | 2022-01-26T03:20:28.000Z | source/geometry/GeometryPooling3D.cpp | qaz734913414/MNN | a5d5769789054a76c6e4dce2ef97d1f45b0e7e2d | [
"Apache-2.0"
] | null | null | null | source/geometry/GeometryPooling3D.cpp | qaz734913414/MNN | a5d5769789054a76c6e4dce2ef97d1f45b0e7e2d | [
"Apache-2.0"
] | 1 | 2021-11-24T06:26:27.000Z | 2021-11-24T06:26:27.000Z | //
// GeometryPooling3D.cpp
// MNN
//
// Created by MNN on 2020/7/28.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "ConvertUtils.hpp"
#include "geometry/GeometryComputer.hpp"
#include "core/OpCommonUtils.hpp"
#include "geometry/GeometryComputerUtils.hpp"
namespace MNN {
class GeometryPooling3D :... | 52.009901 | 218 | 0.665905 | WillTao-RD |
315125966bd503336d33f24b102415ee0c389169 | 3,355 | cpp | C++ | AutoCompleteComboBox.cpp | joeriedel/Tread3.0A2 | 337c4aa74d554e21b50d6bd4406ce0f67aa39144 | [
"MIT"
] | 1 | 2020-07-19T10:19:18.000Z | 2020-07-19T10:19:18.000Z | AutoCompleteComboBox.cpp | joeriedel/Tread3.0A2 | 337c4aa74d554e21b50d6bd4406ce0f67aa39144 | [
"MIT"
] | null | null | null | AutoCompleteComboBox.cpp | joeriedel/Tread3.0A2 | 337c4aa74d554e21b50d6bd4406ce0f67aa39144 | [
"MIT"
] | null | null | null | // ComboBoxEx.cpp : implementation file
//
// Autocompleting combo-box (like the URL edit box in netscape)
//
// Written by Chris Maunder (Chris.Maunder@cbr.clw.csiro.au)
// Copyright (c) 1998.
//
// This code may be used in compiled form in any way you desire. This
// file may be redistributed unmodified by any means ... | 29.955357 | 80 | 0.668554 | joeriedel |
3153e009a72700cb3dd8943ee0734bddeb83e78c | 2,897 | hxx | C++ | src/dbl/service/server/service_connection.hxx | mcptr/dbl-service | 9af5aee06be0a4b909782b251bf6078513399d33 | [
"MIT"
] | null | null | null | src/dbl/service/server/service_connection.hxx | mcptr/dbl-service | 9af5aee06be0a4b909782b251bf6078513399d33 | [
"MIT"
] | null | null | null | src/dbl/service/server/service_connection.hxx | mcptr/dbl-service | 9af5aee06be0a4b909782b251bf6078513399d33 | [
"MIT"
] | 1 | 2018-10-09T06:30:03.000Z | 2018-10-09T06:30:03.000Z | #ifndef DBL_SERVICE_SERVER_SERVICE_CONNECTION_HXX
#define DBL_SERVICE_SERVER_SERVICE_CONNECTION_HXX
#include "connection.hxx"
#include "dbl/auth/auth.hxx"
#include "dbl/types/types.hxx"
#include <memory>
namespace dbl {
namespace service {
namespace server {
class ServiceOperationError : public std::runtime_error
{... | 20.692857 | 57 | 0.722126 | mcptr |
3157f68bbb610485664b1c94a911623fb91d84c2 | 487 | cpp | C++ | WeatherViewer/main.cpp | ajstacher/CST276SRS01 | bea416c7479cc590ff09d48dbe695ba1b07edb03 | [
"MIT"
] | null | null | null | WeatherViewer/main.cpp | ajstacher/CST276SRS01 | bea416c7479cc590ff09d48dbe695ba1b07edb03 | [
"MIT"
] | null | null | null | WeatherViewer/main.cpp | ajstacher/CST276SRS01 | bea416c7479cc590ff09d48dbe695ba1b07edb03 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "station.h"
#include "current.h"
#include "statistics.h"
int main()
{
//for rand() in station
srand(time(NULL));
//create
WeatherStation::Station weather_station;
//attached upon construction
WeatherViewer::Current current_weather(weather_station);
WeatherViewer::Statistics stati... | 18.037037 | 57 | 0.716632 | ajstacher |
316002e48643abdc8582e51b55bed3dc64dc6876 | 16,859 | cpp | C++ | opengl/src/Rendering/ImageEffects/DepthOfFieldImageEffect.cpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 36 | 2015-03-12T10:42:36.000Z | 2022-01-12T04:20:40.000Z | opengl/src/Rendering/ImageEffects/DepthOfFieldImageEffect.cpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 1 | 2015-12-17T00:25:43.000Z | 2016-02-20T12:00:57.000Z | opengl/src/Rendering/ImageEffects/DepthOfFieldImageEffect.cpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 6 | 2017-06-17T07:57:53.000Z | 2019-04-09T21:11:24.000Z | /*
* Copyright (c) 2013, Hernan Saez
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of cond... | 40.722222 | 155 | 0.690314 | hhsaez |
3168e4a09c0e78c678ed89b72d7f03167fa4ac03 | 4,186 | cpp | C++ | src/MResProvider_Textures.cpp | viktorcpp/endless2.0save | 9824aebd56346f1b9526b730063b84918bd6ac08 | [
"MIT"
] | null | null | null | src/MResProvider_Textures.cpp | viktorcpp/endless2.0save | 9824aebd56346f1b9526b730063b84918bd6ac08 | [
"MIT"
] | null | null | null | src/MResProvider_Textures.cpp | viktorcpp/endless2.0save | 9824aebd56346f1b9526b730063b84918bd6ac08 | [
"MIT"
] | null | null | null |
namespace endless
{
//MResProvider_Textures
void MResProvider_Textures::Load( MTexture::TextureInternalData::Component& comp, const char* path )
{
if( path == 0 )
{
LOGE( "%s : path == 0", __FUNCTION__ );
return;
}
std::string _er... | 37.711712 | 128 | 0.605351 | viktorcpp |
3168fefb5f1222fdcea6c08eb2d03c2e93d7a926 | 1,148 | hpp | C++ | src/FCFS.hpp | zwimer/CPU-Simulator | 9e2e52a17e01258d36ac2780fb342319b922ca10 | [
"MIT"
] | null | null | null | src/FCFS.hpp | zwimer/CPU-Simulator | 9e2e52a17e01258d36ac2780fb342319b922ca10 | [
"MIT"
] | null | null | null | src/FCFS.hpp | zwimer/CPU-Simulator | 9e2e52a17e01258d36ac2780fb342319b922ca10 | [
"MIT"
] | null | null | null | /* Operating Systems Project 1
* Alex Slanski, Owen Stenson, Zac Wimer
*/
#ifndef FCFS_hpp
#define FCFS_hpp
//My includes
#include "Algo.hpp"
//System includes
#include <set>
#include <list>
//FCFS algorithm class
class FCFS : public Algo {
private:
//Representation
bool ProcessRunning;
uint... | 20.5 | 62 | 0.649826 | zwimer |
3169678165a9a86ed8a9c281b07f7acef6a94a72 | 16,593 | cpp | C++ | src/ossim/imaging/ossimConvolutionSource.cpp | rkanavath/ossim18 | d2e8204d11559a6a868755a490f2ec155407fa96 | [
"MIT"
] | null | null | null | src/ossim/imaging/ossimConvolutionSource.cpp | rkanavath/ossim18 | d2e8204d11559a6a868755a490f2ec155407fa96 | [
"MIT"
] | null | null | null | src/ossim/imaging/ossimConvolutionSource.cpp | rkanavath/ossim18 | d2e8204d11559a6a868755a490f2ec155407fa96 | [
"MIT"
] | 1 | 2019-09-25T00:43:35.000Z | 2019-09-25T00:43:35.000Z | // Copyright (C) 2000 ImageLinks Inc.
//
// License: MIT
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Garrett Potts
//
//*******************************************************************
// $Id: ossimConvolutionSource.cpp 23664 2015-12-14 14:17:27Z dburken $
#include <ossi... | 31.426136 | 124 | 0.560779 | rkanavath |
316f7fa87e927b61a192ca89ff949b36a2db3016 | 5,071 | cpp | C++ | src/source/TMC2660Stepper.cpp | ManuelMcLure/TMCStepper | c425c40f0adfa24c1c21ce7d6428bcffc2c921ae | [
"MIT"
] | 336 | 2018-03-26T13:51:46.000Z | 2022-03-21T21:58:47.000Z | src/source/TMC2660Stepper.cpp | ManuelMcLure/TMCStepper | c425c40f0adfa24c1c21ce7d6428bcffc2c921ae | [
"MIT"
] | 218 | 2017-07-28T06:13:53.000Z | 2022-03-26T16:41:21.000Z | src/source/TMC2660Stepper.cpp | ManuelMcLure/TMCStepper | c425c40f0adfa24c1c21ce7d6428bcffc2c921ae | [
"MIT"
] | 176 | 2018-09-11T22:16:27.000Z | 2022-03-26T13:04:03.000Z | #include "TMCStepper.h"
#include "SW_SPI.h"
TMC2660Stepper::TMC2660Stepper(uint16_t pinCS, float RS) :
_pinCS(pinCS),
Rsense(RS)
{}
TMC2660Stepper::TMC2660Stepper(uint16_t pinCS, uint16_t pinMOSI, uint16_t pinMISO, uint16_t pinSCK) :
_pinCS(pinCS),
Rsense(default_RS)
{
SW_SPIClass *SW_SPI_Obj = new SW... | 25.872449 | 111 | 0.649576 | ManuelMcLure |
31716dc44479baf6e425aa2d736e7ba7ce0731b8 | 2,504 | cpp | C++ | decorator.cpp | retorillo/twitter-header | f00aa4899f6e2ebbbea68566c7e1329663faf966 | [
"MIT"
] | null | null | null | decorator.cpp | retorillo/twitter-header | f00aa4899f6e2ebbbea68566c7e1329663faf966 | [
"MIT"
] | null | null | null | decorator.cpp | retorillo/twitter-header | f00aa4899f6e2ebbbea68566c7e1329663faf966 | [
"MIT"
] | null | null | null | #include "decorator.h"
int main(int argc, char** argv) {
if (!PeekNamedPipe(GetStdHandle(STD_INPUT_HANDLE), NULL, NULL, NULL, NULL, NULL)) {
printf("error: no piping input\n");
return -1;
}
std::ostringstream figletout;
char buf[256];
while (fgets(buf, sizeof(buf), stdin))
figletout << buf;
std... | 28.781609 | 87 | 0.545927 | retorillo |
317eb30a5430c2b6b4f38957885c41795d17e487 | 3,718 | hpp | C++ | src/stdplus/fd/ops.hpp | pzh2386034/stdplus | 9148977c89406ee3b096dc5a3bd9e8f22abb7764 | [
"Apache-2.0"
] | 4 | 2018-11-05T10:44:47.000Z | 2020-11-20T08:16:15.000Z | src/stdplus/fd/ops.hpp | pzh2386034/stdplus | 9148977c89406ee3b096dc5a3bd9e8f22abb7764 | [
"Apache-2.0"
] | 1 | 2020-11-18T22:40:50.000Z | 2020-11-19T16:14:18.000Z | src/stdplus/fd/ops.hpp | pzh2386034/stdplus | 9148977c89406ee3b096dc5a3bd9e8f22abb7764 | [
"Apache-2.0"
] | 2 | 2018-11-05T10:44:35.000Z | 2022-01-14T01:47:39.000Z | #pragma once
#include <stdplus/fd/intf.hpp>
#include <stdplus/raw.hpp>
#include <stdplus/types.hpp>
#include <utility>
namespace stdplus
{
namespace fd
{
namespace detail
{
void readExact(Fd& fd, span<std::byte> data);
void recvExact(Fd& fd, span<std::byte> data, RecvFlags flags);
void writeExact(Fd& fd, span<const s... | 25.465753 | 79 | 0.653846 | pzh2386034 |
317faaa00b1b6a123534476f089e762e2bddba9d | 4,257 | cpp | C++ | SampleOSXCocoaPodsProject/Pods/BRCLucene/src/core/CLucene/search/ConjunctionScorer.cpp | zaubara/BRFullTextSearch | e742f223a1c203eacb576711dd57b1187aee3deb | [
"Apache-2.0"
] | 151 | 2015-01-17T06:29:38.000Z | 2022-02-17T11:27:38.000Z | SampleOSXCocoaPodsProject/Pods/BRCLucene/src/core/CLucene/search/ConjunctionScorer.cpp | yonglam/BRFullTextSearch | e742f223a1c203eacb576711dd57b1187aee3deb | [
"Apache-2.0"
] | 28 | 2015-03-01T20:14:42.000Z | 2019-07-22T09:23:54.000Z | SampleOSXCocoaPodsProject/Pods/BRCLucene/src/core/CLucene/search/ConjunctionScorer.cpp | yonglam/BRFullTextSearch | e742f223a1c203eacb576711dd57b1187aee3deb | [
"Apache-2.0"
] | 28 | 2015-03-05T13:24:12.000Z | 2022-03-26T09:16:29.000Z | /*------------------------------------------------------------------------------
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
*
* Distributable under the terms of either the Apache License (Version 2.0) or
* the GNU Lesser General Public License, as specified in the COPYING file.
---------------------... | 31.768657 | 112 | 0.641532 | zaubara |
31862c317577bdfcae93770f62f5e108f41bf31c | 89,640 | cpp | C++ | Commands.cpp | UKTailwind/MMB4W | cda50487f2ce23ea1b2a8da79b7b38be46cdece2 | [
"Unlicense"
] | 3 | 2022-02-20T11:32:27.000Z | 2022-03-02T21:22:50.000Z | Commands.cpp | UKTailwind/MMB4W | cda50487f2ce23ea1b2a8da79b7b38be46cdece2 | [
"Unlicense"
] | null | null | null | Commands.cpp | UKTailwind/MMB4W | cda50487f2ce23ea1b2a8da79b7b38be46cdece2 | [
"Unlicense"
] | null | null | null | /***********************************************************************************************************************
MMBasic for Windows
Commands.cpp
<COPYRIGHT HOLDERS> Geoff Graham, Peter Mather
Copyright (c) 2021, <COPYRIGHT HOLDERS> All rights reserved.
Redistribution and use in source and binary form... | 37.102649 | 201 | 0.564179 | UKTailwind |
318739c084517a6d383cd9ac430c2f2687e34845 | 570 | cpp | C++ | uva/11498_Division_of_Nlogonia.cpp | st3v3nmw/competitive-programming | 581d36c1c128e0e3ee3a0b52628e932ab43821d4 | [
"MIT"
] | null | null | null | uva/11498_Division_of_Nlogonia.cpp | st3v3nmw/competitive-programming | 581d36c1c128e0e3ee3a0b52628e932ab43821d4 | [
"MIT"
] | null | null | null | uva/11498_Division_of_Nlogonia.cpp | st3v3nmw/competitive-programming | 581d36c1c128e0e3ee3a0b52628e932ab43821d4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int k = -1, dx, dy, x, y;
while (k != 0) {
cin >> k;
cin >> dx >> dy;
for (int i = 0; i < k; i++) {
cin >> x >> y;
if (x == dx || y == dy)
cout << "divisa\n";
else if (x > dx &... | 24.782609 | 38 | 0.301754 | st3v3nmw |
318c6ebd7514a2f693cd89e691ad21183b611873 | 289 | cpp | C++ | node_modules/lzz-gyp/lzz-source/smtc_CreateUnnamedNs.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_CreateUnnamedNs.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_CreateUnnamedNs.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_CreateUnnamedNs.cpp
//
#include "smtc_CreateUnnamedNs.h"
// semantic
#include "smtc_UnnamedNs.h"
#define LZZ_INLINE inline
namespace smtc
{
NsPtr createUnnamedNs (NsPtr const & encl_ns, util::Loc const & loc)
{
return new UnnamedNs (encl_ns, loc);
}
}
#undef LZZ_INLINE
| 18.0625 | 70 | 0.730104 | SuperDizor |
318d069fc3f208237efcde7f2b6d3cbc02f4c724 | 1,474 | hpp | C++ | lib/geometry/circle_intersection.hpp | hareku/cpp-algorithm | 455339645d5797f0e6b211694345e1a221fc131c | [
"Apache-2.0"
] | null | null | null | lib/geometry/circle_intersection.hpp | hareku/cpp-algorithm | 455339645d5797f0e6b211694345e1a221fc131c | [
"Apache-2.0"
] | null | null | null | lib/geometry/circle_intersection.hpp | hareku/cpp-algorithm | 455339645d5797f0e6b211694345e1a221fc131c | [
"Apache-2.0"
] | null | null | null | #ifndef LIB_GEOMETRY_CIRCLE_INTERSECTION
#define LIB_GEOMETRY_CIRCLE_INTERSECTION 1
#include <bits/stdc++.h>
namespace lib::geometry {
// circles_cross checks whether circle a and circle b intersect.
template <class T> bool circles_cross(std::complex<T> a, T ar, std::complex<T> b, T br, const T eps = std::numeric_li... | 36.85 | 146 | 0.661465 | hareku |
3194ae5c521496fbfaa45774e10505c6011afb62 | 15,222 | cpp | C++ | SoftbodySimulation/src/Scenario/ObstacleCourseScenario.cpp | GitDaroth/SoftbodySimulation | 21b32dfb7a72be1f2fe54de8d2863bbf6a100288 | [
"MIT"
] | 3 | 2021-02-28T23:48:17.000Z | 2021-11-02T15:08:34.000Z | SoftbodySimulation/src/Scenario/ObstacleCourseScenario.cpp | GitDaroth/SoftbodySimulation | 21b32dfb7a72be1f2fe54de8d2863bbf6a100288 | [
"MIT"
] | null | null | null | SoftbodySimulation/src/Scenario/ObstacleCourseScenario.cpp | GitDaroth/SoftbodySimulation | 21b32dfb7a72be1f2fe54de8d2863bbf6a100288 | [
"MIT"
] | null | null | null | #include "Scenario/ObstacleCourseScenario.h"
#include <Constraint/BoxConstraint.h>
#include <Constraint/RigidShapeConstraint.h>
#include <Constraint/SoftShapeLinearConstraint.h>
#include <Constraint/SoftShapeQuadraticConstraint.h>
const QString ObstacleCourseScenario::NAME = "ObstacleCourse";
ObstacleCourseScenario:... | 54.953069 | 164 | 0.711207 | GitDaroth |
31a5ff702f960fee81fcf44662d4581fe0f5620a | 1,414 | cpp | C++ | src/io/github/technicalnotes/programming/basics/47-parameterpassing.cpp | chiragbhatia94/programming-cpp | efd6aa901deacf416a3ab599e6599845a8111eac | [
"MIT"
] | null | null | null | src/io/github/technicalnotes/programming/basics/47-parameterpassing.cpp | chiragbhatia94/programming-cpp | efd6aa901deacf416a3ab599e6599845a8111eac | [
"MIT"
] | null | null | null | src/io/github/technicalnotes/programming/basics/47-parameterpassing.cpp | chiragbhatia94/programming-cpp | efd6aa901deacf416a3ab599e6599845a8111eac | [
"MIT"
] | null | null | null | #include "bits/stdc++.h"
using namespace std;
// here a & b are formal parameters
void swapByValue(int a, int b);
void swapByReference(int &a, int &b);
void swapByPointer(int *a, int *b);
int main(int argc, char **argv)
{
// here i & j are actual parameters
int i = 10, j = 20;
cout << "Initial value: "
<... | 27.192308 | 198 | 0.483027 | chiragbhatia94 |
31aa3f0bd9ddc9a5b2a36cb268a119be9267a82e | 2,086 | cpp | C++ | src/ShadowVolumeRender.cpp | Loic-Corenthy/miniGL | 47976ea80e253e115eafae5934ec3ebdd2275d16 | [
"MIT"
] | 1 | 2021-08-18T03:54:22.000Z | 2021-08-18T03:54:22.000Z | src/ShadowVolumeRender.cpp | Loic-Corenthy/miniGL | 47976ea80e253e115eafae5934ec3ebdd2275d16 | [
"MIT"
] | null | null | null | src/ShadowVolumeRender.cpp | Loic-Corenthy/miniGL | 47976ea80e253e115eafae5934ec3ebdd2275d16 | [
"MIT"
] | null | null | null | //===============================================================================================//
/*!
* \file ShadowVolumeRender.cpp
* \author Loïc Corenthy
* \version 1.0
*/
//===============================================================================================//
#include "ShadowVolumeRen... | 26.74359 | 99 | 0.630393 | Loic-Corenthy |
b3b4c439f875d44e9c0e00a049a5a161a4f7b5d9 | 7,403 | cpp | C++ | src/postprocess/VrHooks.cpp | fholger/openvr_foveated | 542768df39864386deebf260e73cf5158851fb9c | [
"BSD-3-Clause"
] | 76 | 2021-12-22T23:52:06.000Z | 2022-03-30T05:52:02.000Z | src/postprocess/VrHooks.cpp | fholger/openvr_foveated | 542768df39864386deebf260e73cf5158851fb9c | [
"BSD-3-Clause"
] | 10 | 2021-12-23T05:46:18.000Z | 2022-01-15T11:43:31.000Z | src/postprocess/VrHooks.cpp | fholger/openvr_foveated | 542768df39864386deebf260e73cf5158851fb9c | [
"BSD-3-Clause"
] | 3 | 2021-12-23T00:55:40.000Z | 2022-03-02T12:08:16.000Z | #include "VrHooks.h"
#include "Config.h"
#include "PostProcessor.h"
#include <openvr.h>
#include <MinHook.h>
#include <unordered_map>
#include <unordered_set>
namespace {
std::unordered_map<void*, void*> hooksToOriginal;
bool ivrSystemHooked = false;
bool ivrCompositorHooked = false;
ID3D11DeviceContext *hookedC... | 38.963158 | 206 | 0.749021 | fholger |
b3b59670970b0825a6e0861126e8a9bc9b177aa0 | 17,708 | cpp | C++ | Minimap Source/Minimap/j1Map.cpp | OscarHernandezG/MinimapTestbed | 4c06210c0e67af037232de95e02fbe44ec900cbc | [
"MIT"
] | null | null | null | Minimap Source/Minimap/j1Map.cpp | OscarHernandezG/MinimapTestbed | 4c06210c0e67af037232de95e02fbe44ec900cbc | [
"MIT"
] | null | null | null | Minimap Source/Minimap/j1Map.cpp | OscarHernandezG/MinimapTestbed | 4c06210c0e67af037232de95e02fbe44ec900cbc | [
"MIT"
] | null | null | null | #include <math.h>
#include "Brofiler\Brofiler.h"
#include "Defs.h"
#include "p2Log.h"
#include "j1App.h"
#include "j1Input.h"
#include "j1Render.h"
#include "j1Textures.h"
#include "j1Collision.h"
#include "j1Scene.h"
#include "j1Audio.h"
#include "j1Map.h"
#include "j1Window.h"
j1Map::j1Map() : j1Module(), isMa... | 21.516403 | 157 | 0.63508 | OscarHernandezG |
b3b668b8797a8ff65a370f2bfaa392c52bc2462a | 20,305 | cpp | C++ | src/CompressibleInterface.cpp | StephanLenz/Gas-Kinetic-Scheme | bb92a9640cd95ac9342adf8c31c4800414d5950a | [
"MIT"
] | 2 | 2018-03-05T07:51:01.000Z | 2021-10-30T08:44:41.000Z | src/CompressibleInterface.cpp | StephanLenz/Gas-Kinetic-Scheme | bb92a9640cd95ac9342adf8c31c4800414d5950a | [
"MIT"
] | null | null | null | src/CompressibleInterface.cpp | StephanLenz/Gas-Kinetic-Scheme | bb92a9640cd95ac9342adf8c31c4800414d5950a | [
"MIT"
] | 1 | 2021-03-28T12:42:15.000Z | 2021-03-28T12:42:15.000Z |
#include "Interface.h"
#include "CompressibleInterface.h"
#include <sstream>
CompressibleInterface::CompressibleInterface()
{
}
CompressibleInterface::CompressibleInterface(Cell* negCell, Cell* posCell, float2 center, float2 normal, FluidParameter fluidParam, InterfaceBC* BC)
: Interface(negCell, posCell, cente... | 62.094801 | 195 | 0.353854 | StephanLenz |
b3bb7024e5e4f424c0c5d0927f92c63be9d4c0b7 | 1,274 | hpp | C++ | 22_Pvector/Pvector.hpp | jonixis/CPP18 | 0dfe165f22a3cbef9e8cda102196d53d3e120e57 | [
"MIT"
] | null | null | null | 22_Pvector/Pvector.hpp | jonixis/CPP18 | 0dfe165f22a3cbef9e8cda102196d53d3e120e57 | [
"MIT"
] | null | null | null | 22_Pvector/Pvector.hpp | jonixis/CPP18 | 0dfe165f22a3cbef9e8cda102196d53d3e120e57 | [
"MIT"
] | null | null | null | #include <vector>
#include <fstream>
#include <iostream>
using namespace std;
#ifndef INC_41_TRAITS_PVECTOR_HPP
#define INC_41_TRAITS_PVECTOR_HPP
template<typename T>
struct persistence_traits {
static void write(ofstream &o, const T &elem) {
o << elem << endl;
}
};
template<typename T, typename P=p... | 18.2 | 54 | 0.536892 | jonixis |
b3bc314b3e857569bdb88feaed3e98e849c6c9d7 | 1,442 | cpp | C++ | src/walls.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | null | null | null | src/walls.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | 1 | 2017-05-16T15:57:29.000Z | 2017-05-17T19:43:56.000Z | src/walls.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
#include <cmath>
using namespace std;
const double epsilon = 0.0001;
struct Point {
double x, y;
};
double dist(const Point& p, const Point& q) {
return sqrt((p.x - q.x) * (p.x - q.x) + (p.y - q.y) * (p.y - ... | 20.309859 | 71 | 0.520111 | JulianNeeleman |
b3bcd8253059818f8721730ed9c272478c943a7e | 23,067 | cpp | C++ | emf_core_bindings/src/emf_fs.cpp | GabeRealB/emf | a233edaed7ed99948b0a935e6378bac131fdf4c2 | [
"Apache-2.0",
"MIT"
] | null | null | null | emf_core_bindings/src/emf_fs.cpp | GabeRealB/emf | a233edaed7ed99948b0a935e6378bac131fdf4c2 | [
"Apache-2.0",
"MIT"
] | null | null | null | emf_core_bindings/src/emf_fs.cpp | GabeRealB/emf | a233edaed7ed99948b0a935e6378bac131fdf4c2 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-01-10T15:00:08.000Z | 2021-01-10T15:00:08.000Z | #include <emf_core/emf_fs.h>
#include <emf_core_bindings/emf_core_bindings.h>
using namespace EMF::Core::C;
namespace EMF::Core::Bindings::C {
extern "C" {
emf_file_handler_t EMF_CALL_C emf_fs_register_file_handler(const emf_file_handler_interface_t* EMF_NOT_NULL file_handler,
const emf_file_type_span_t* EMF_NO... | 48.460084 | 130 | 0.816144 | GabeRealB |
b3c2be0d7c9f027f32390842006099361e76ec7d | 135 | cpp | C++ | Cplusplus/week_four/extra/DailyTask_Mechanic/man.cpp | nexusstar/SoftUni | b97bdb08a227fd335df5b7869940c14717f760f2 | [
"MIT"
] | 1 | 2016-12-20T19:53:03.000Z | 2016-12-20T19:53:03.000Z | Cplusplus/week_four/extra/DailyTask_Mechanic/man.cpp | nexusstar/SoftUni | b97bdb08a227fd335df5b7869940c14717f760f2 | [
"MIT"
] | null | null | null | Cplusplus/week_four/extra/DailyTask_Mechanic/man.cpp | nexusstar/SoftUni | b97bdb08a227fd335df5b7869940c14717f760f2 | [
"MIT"
] | null | null | null | #include "man.h"
#include "car.h"
void Man::crashCar(Car &aCar)
{
if(aCar.needsRepair == true) return;
aCar.needsRepair = true;
}
| 15 | 38 | 0.666667 | nexusstar |
b3c2ef63f883c3d06f27912aa32ed1534c46e34d | 2,814 | cpp | C++ | source/Windows/Storage/File.cpp | awstanley/cpp-gamefilesystem | fc06cf5f2b4f873846677f45fa5480a69cdd91df | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2021-07-12T19:25:29.000Z | 2021-07-12T19:25:29.000Z | source/Windows/Storage/File.cpp | awstanley/cpp-gamefilesystem | fc06cf5f2b4f873846677f45fa5480a69cdd91df | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 6 | 2017-10-16T19:30:25.000Z | 2018-10-06T23:55:19.000Z | source/Windows/Storage/File.cpp | awstanley/cpp-gamefilesystem | fc06cf5f2b4f873846677f45fa5480a69cdd91df | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 3 | 2017-10-14T10:21:44.000Z | 2021-07-12T19:25:39.000Z | /*
* Copyright 2017-2018 ReversingSpace. See the COPYRIGHT file at the
* top-level directory of this distribution and in the repository:
* https://github.com/ReversingSpace/cpp-gamefilesystem
*
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
* http://www.apache.org/licenses/LICENSE-2.0> or the... | 28.714286 | 70 | 0.704691 | awstanley |
b3c43ce490d6003bf0804ccb623ab9ac6be650c6 | 1,094 | hpp | C++ | L7/EMail/SMTP/GpSmtpClientCurl.hpp | ITBear/GpNetwork | 65b28ee8ed16e47efd8f8991cd8942c8a517c45e | [
"Apache-2.0"
] | null | null | null | L7/EMail/SMTP/GpSmtpClientCurl.hpp | ITBear/GpNetwork | 65b28ee8ed16e47efd8f8991cd8942c8a517c45e | [
"Apache-2.0"
] | null | null | null | L7/EMail/SMTP/GpSmtpClientCurl.hpp | ITBear/GpNetwork | 65b28ee8ed16e47efd8f8991cd8942c8a517c45e | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "GpSmtpClient.hpp"
typedef void CURL;
namespace GPlatform {
class GPNETWORK_API GpSmtpClientCurl final: public GpSmtpClient
{
public:
CLASS_REMOVE_CTRS_MOVE_COPY(GpSmtpClientCurl)
CLASS_DECLARE_DEFAULTS(GpSmtpClientCurl)
public:
GpSmt... | 31.257143 | 106 | 0.5 | ITBear |
b3c5c742b8bc852eae598eaf1b1a12f53da03a96 | 324 | cpp | C++ | src/megabreakthrough/megapawn.cpp | hallur/boardgame | 374fd1366cbae785bc40ba24403d50e36b2a3637 | [
"MIT"
] | null | null | null | src/megabreakthrough/megapawn.cpp | hallur/boardgame | 374fd1366cbae785bc40ba24403d50e36b2a3637 | [
"MIT"
] | 1 | 2018-04-09T19:08:41.000Z | 2018-04-09T19:08:41.000Z | src/megabreakthrough/megapawn.cpp | hallur/boardgame | 374fd1366cbae785bc40ba24403d50e36b2a3637 | [
"MIT"
] | null | null | null | #include "megabreakthrough/megapawn.h"
boardgame::megabreakthrough::MegaPawn::MegaPawn(boardgame::Player* player, bool top) : boardgame::breakthrough::Pawn(player, top, 'm') {
moveRules_.push_back(MoveRule( 0, (top ? 1 : -1), true, false, false, 2 )); // up up
}
boardgame::megabreakthrough::MegaPawn::~MegaPawn(... | 46.285714 | 136 | 0.70679 | hallur |
b3d1e1203c2696aa0fdfed91592ed93edb51fb92 | 2,719 | cpp | C++ | ObjOrientedProgramming/Movie/Movie/Movie.cpp | jhbrian/Learning-Progress | de7b9d037aa0b5e1ec8199b4eabfcd1e24c73bcb | [
"MIT"
] | null | null | null | ObjOrientedProgramming/Movie/Movie/Movie.cpp | jhbrian/Learning-Progress | de7b9d037aa0b5e1ec8199b4eabfcd1e24c73bcb | [
"MIT"
] | null | null | null | ObjOrientedProgramming/Movie/Movie/Movie.cpp | jhbrian/Learning-Progress | de7b9d037aa0b5e1ec8199b4eabfcd1e24c73bcb | [
"MIT"
] | null | null | null | //*************************************************************************************
//Program Name: Movie
//Author: Jin Han Ho
//IDE Used: Visual Studio 2019
//Program description: read inputs from input file and output them as 4 sets of object
//****************************************************************... | 26.398058 | 104 | 0.513056 | jhbrian |
b3d743aa9520ca333b45e102bcb2087b68b4c0fe | 4,334 | cpp | C++ | oneEngine/oneGame/source/renderer/object/shapes/RrShapePlane.cpp | skarik/1Engine | 84e846544b4a89af8fd7e9236131363096538ef4 | [
"BSD-3-Clause"
] | 8 | 2017-12-08T02:59:31.000Z | 2022-02-02T04:30:03.000Z | oneEngine/oneGame/source/renderer/object/shapes/RrShapePlane.cpp | skarik/1Engine | 84e846544b4a89af8fd7e9236131363096538ef4 | [
"BSD-3-Clause"
] | 2 | 2021-04-16T03:44:42.000Z | 2021-08-30T06:48:44.000Z | oneEngine/oneGame/source/renderer/object/shapes/RrShapePlane.cpp | skarik/1Engine | 84e846544b4a89af8fd7e9236131363096538ef4 | [
"BSD-3-Clause"
] | 1 | 2021-04-16T02:09:54.000Z | 2021-04-16T02:09:54.000Z | #include "RrShapePlane.h"
#include "gpuw/Device.h"
#include "gpuw/GraphicsContext.h"
#include "renderer/material/Material.h"
rrMeshBuffer RrShapePlane::m_MeshBuffer;
void RrShapePlane::BuildMeshBuffer ( void )
{
if (m_MeshBuffer.m_mesh_uploaded == false)
{
const Real hxsize = 0.5F;
const Real hysize = 0.5F;
a... | 33.596899 | 123 | 0.739502 | skarik |
b3d91ac2b161cf618f17cb46fac3839324372ada | 4,595 | cpp | C++ | tests/unit/test_exact_ops.cpp | ylatkin/tfcp | 9db30f7fd23dfc9f56cbe9657c39dfd6ab4559cd | [
"Apache-2.0"
] | 2 | 2020-04-28T16:37:03.000Z | 2021-01-07T15:52:15.000Z | tests/unit/test_exact_ops.cpp | ylatkin/tfcp | 9db30f7fd23dfc9f56cbe9657c39dfd6ab4559cd | [
"Apache-2.0"
] | 1 | 2020-01-07T04:40:51.000Z | 2020-01-07T06:48:49.000Z | tests/unit/test_exact_ops.cpp | ylatkin/tfcp | 9db30f7fd23dfc9f56cbe9657c39dfd6ab4559cd | [
"Apache-2.0"
] | null | null | null | //======================================================================
// 2019-2020 (c) Evgeny Latkin
// License: Apache 2.0 (http://www.apache.org/licenses/)
//======================================================================
#include <tfcp/test_utils.h>
#include <tfcp/exact.h>
#include <tfcp/simd.h>
#include... | 25.960452 | 73 | 0.395212 | ylatkin |
b3da909cea3b1c3a0731cc6138e902ac2390dffd | 12,477 | hpp | C++ | mcppalloc_bitmap_allocator/mcppalloc_bitmap_allocator/include/mcppalloc/mcppalloc_bitmap_allocator/bitmap_state_impl.hpp | garyfurnish/mcppalloc | 5a6dfc99bab23e7f6aba8d20919d71a6e31c38bf | [
"MIT"
] | null | null | null | mcppalloc_bitmap_allocator/mcppalloc_bitmap_allocator/include/mcppalloc/mcppalloc_bitmap_allocator/bitmap_state_impl.hpp | garyfurnish/mcppalloc | 5a6dfc99bab23e7f6aba8d20919d71a6e31c38bf | [
"MIT"
] | null | null | null | mcppalloc_bitmap_allocator/mcppalloc_bitmap_allocator/include/mcppalloc/mcppalloc_bitmap_allocator/bitmap_state_impl.hpp | garyfurnish/mcppalloc | 5a6dfc99bab23e7f6aba8d20919d71a6e31c38bf | [
"MIT"
] | null | null | null | #pragma once
#include <atomic>
#include <iostream>
#include <mcppalloc/mcppalloc_slab_allocator/slab_allocator.hpp>
#include <mcpputil/mcpputil/intrinsics.hpp>
#include <mcpputil/mcpputil/security.hpp>
namespace mcppalloc::bitmap_allocator::details
{
inline bitmap_state_t *get_state(void *v)
{
uintptr_t vi = r... | 34.658333 | 126 | 0.703054 | garyfurnish |
b3dcce1a208ebefcab89e7970a04993c5780a1f9 | 466 | cpp | C++ | examples/appearance/figure/figure_2.cpp | gitplcc/matplotplusplus | c088749434154c230ee7547c6871d65e58876dc6 | [
"MIT"
] | 2,709 | 2020-08-29T01:25:40.000Z | 2022-03-31T18:35:25.000Z | examples/appearance/figure/figure_2.cpp | p-ranav/matplotplusplus | b45015e2be88e3340b400f82637b603d733d45ce | [
"MIT"
] | 124 | 2020-08-29T04:48:17.000Z | 2022-03-25T15:45:59.000Z | examples/appearance/figure/figure_2.cpp | p-ranav/matplotplusplus | b45015e2be88e3340b400f82637b603d733d45ce | [
"MIT"
] | 203 | 2020-08-29T04:16:22.000Z | 2022-03-30T02:08:36.000Z | #include <matplot/matplot.h>
int main() {
using namespace matplot;
auto h = figure(true);
h->name("Measured Data");
h->number_title(false);
h->color("green");
h->position({0, 0, 600, 600});
h->size(500, 500);
h->draw();
h->font("Arial");
h->font_size(40);
h->title("My exper... | 20.26087 | 38 | 0.534335 | gitplcc |
b3dd57ad425ec876ef7d19ec92a978a2c029c1d1 | 17,494 | cpp | C++ | HTWK_ChangeSpeed/ChangeSpeed.cpp | HTWKSmartDriving/aadc-2017 | aff82d8b7d936cdfade6e8ad3edd548c71be8311 | [
"BSD-3-Clause"
] | 10 | 2017-11-17T16:39:03.000Z | 2020-10-10T08:33:43.000Z | HTWK_ChangeSpeed/ChangeSpeed.cpp | HTWKSmartDriving/aadc-2017 | aff82d8b7d936cdfade6e8ad3edd548c71be8311 | [
"BSD-3-Clause"
] | null | null | null | HTWK_ChangeSpeed/ChangeSpeed.cpp | HTWKSmartDriving/aadc-2017 | aff82d8b7d936cdfade6e8ad3edd548c71be8311 | [
"BSD-3-Clause"
] | 5 | 2017-11-18T09:35:24.000Z | 2021-01-20T07:03:46.000Z | #include "ChangeSpeed.h"
ADTF_FILTER_PLUGIN(FILTER_NAME, OID, ChangeSpeed);
ChangeSpeed::ChangeSpeed(const tChar *__info) : Leaf(__info) {
// speed properties
SetPropertyFloat(ROAD_SPEED_PROPERTY, SPEED_ROAD);
SetPropertyStr(ROAD_SPEED_PROPERTY NSSUBPROP_DESCRIPTION, "Speed to drive on road");
SetPro... | 37.460385 | 137 | 0.634732 | HTWKSmartDriving |
b3df21842b1f9462c97161cf890ce8cf1a5004a1 | 2,402 | cpp | C++ | simulation/algorithms/Type2/C++/Qt/Type2/MainWindow.cpp | motchy869/Distributed-ThompthonSampling | 17bb11f789ccc410e12c99347decc09c836dd708 | [
"MIT"
] | null | null | null | simulation/algorithms/Type2/C++/Qt/Type2/MainWindow.cpp | motchy869/Distributed-ThompthonSampling | 17bb11f789ccc410e12c99347decc09c836dd708 | [
"MIT"
] | null | null | null | simulation/algorithms/Type2/C++/Qt/Type2/MainWindow.cpp | motchy869/Distributed-ThompthonSampling | 17bb11f789ccc410e12c99347decc09c836dd708 | [
"MIT"
] | null | null | null | #include "common.h"
#include "Simulator.h"
#include "MainWindow.h"
#include <QApplication>
#include <QDebug>
#include <QLabel>
#include <QMetaObject>
#include <QProgressBar>
#include <QThread>
#include <QVBoxLayout>
//QThreadによるマルチスレッド処理に関しては次が参考になる: https://qiita.com/hermit4/items/b1eaf6132fb06a30091f
MainWindow::M... | 34.314286 | 124 | 0.764779 | motchy869 |
b3e2fc0a940576d593698a434dc6ea4c8eb7d035 | 4,620 | cpp | C++ | examples/example_0520.cpp | dyomas/pyhrol | 6865b7de3377f9d6d3f1b282a39d5980497b703d | [
"BSD-3-Clause"
] | null | null | null | examples/example_0520.cpp | dyomas/pyhrol | 6865b7de3377f9d6d3f1b282a39d5980497b703d | [
"BSD-3-Clause"
] | null | null | null | examples/example_0520.cpp | dyomas/pyhrol | 6865b7de3377f9d6d3f1b282a39d5980497b703d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2013, 2014, Pyhrol, pyhrol@rambler.ru
* GEO: N55.703431,E37.623324 .. N48.742359,E44.536997
*
* 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 mu... | 27.017544 | 112 | 0.683117 | dyomas |
b3e5f4e875d2cd30505a5b6e7b464f4a323dfa52 | 8,682 | cpp | C++ | Axis.Echinopsis/application/factories/collectors/TextReportElementCollectorParser.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.Echinopsis/application/factories/collectors/TextReportElementCollectorParser.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.Echinopsis/application/factories/collectors/TextReportElementCollectorParser.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #include "TextReportElementCollectorParser.hpp"
#include "foundation/OutOfBoundsException.hpp"
#include "services/language/factories/AxisGrammar.hpp"
#include "services/language/parsing/ExpressionNode.hpp"
#include "services/language/parsing/SymbolTerminal.hpp"
#include "services/language/parsing/OperatorTerminal.hpp"
... | 36.944681 | 124 | 0.760194 | renato-yuzup |
b3e6cbb6e267a886524cda9fcc411b608994070d | 3,241 | cpp | C++ | wavebench-dag/src/algorithms/local_sequence_alignment.cpp | fabianmcg/wavedag | e975792aef4423de6cf43af6bfde44ef89a5db0d | [
"MIT"
] | 1 | 2021-01-10T09:04:38.000Z | 2021-01-10T09:04:38.000Z | wavebench-dag/src/algorithms/local_sequence_alignment.cpp | fabianmcg/wavedag | e975792aef4423de6cf43af6bfde44ef89a5db0d | [
"MIT"
] | null | null | null | wavebench-dag/src/algorithms/local_sequence_alignment.cpp | fabianmcg/wavedag | e975792aef4423de6cf43af6bfde44ef89a5db0d | [
"MIT"
] | null | null | null | /*---------------------------------------------------------------------------*/
/*!
* \file local_sequence_alignment.cpp
* \author Robert Searles
* \date Tue Sep 19 15:46:00 EST 2018
* \brief Local Sequence Alignment in-gridcell algorithm
* \note
*/
/*------------------------------------------------------... | 25.722222 | 122 | 0.551682 | fabianmcg |
b3ee6bcc5ab85f7d9652b5132b9b94a57d183632 | 118 | hpp | C++ | build/opencv_tests_config.hpp | Meatlf/OpenCV4 | 4a882c0b3cf10700c0cc4ac785266fa02d3f2470 | [
"BSD-3-Clause"
] | null | null | null | build/opencv_tests_config.hpp | Meatlf/OpenCV4 | 4a882c0b3cf10700c0cc4ac785266fa02d3f2470 | [
"BSD-3-Clause"
] | null | null | null | build/opencv_tests_config.hpp | Meatlf/OpenCV4 | 4a882c0b3cf10700c0cc4ac785266fa02d3f2470 | [
"BSD-3-Clause"
] | null | null | null |
#define OPENCV_INSTALL_PREFIX "/usr/local/opencv430"
#define OPENCV_TEST_DATA_INSTALL_PATH "share/opencv4/testdata"
| 23.6 | 62 | 0.838983 | Meatlf |
b3f2161a3d7782a1babd2aa31e38ceb78aefe9d1 | 1,728 | cpp | C++ | src/main.cpp | WhitNearSpace/Whitworth-CommandModule | d7316fa391c58c69ef25a447df9465e36e21dddf | [
"MIT"
] | 1 | 2019-05-28T16:03:37.000Z | 2019-05-28T16:03:37.000Z | src/main.cpp | WhitNearSpace/Whitworth-CommandModule | d7316fa391c58c69ef25a447df9465e36e21dddf | [
"MIT"
] | null | null | null | src/main.cpp | WhitNearSpace/Whitworth-CommandModule | d7316fa391c58c69ef25a447df9465e36e21dddf | [
"MIT"
] | null | null | null | #include <mbed.h>
#include "RockBlock9603.h"
DigitalOut led1(LED1);
RockBlock9603 sat(p9, p10, NC);
int main() {
uint64_t imei;
ThisThread::sleep_for(1s);
imei = sat.get_IMEI();
printf("IMEI = %llu\n", imei);
int bars = sat.get_new_signal_quality();
printf("bars = %d\n", bars);
BufferStatus bs = sat.g... | 28.8 | 83 | 0.528356 | WhitNearSpace |
b3f89f55c1b435f645f66f2214d6eb717e3acb03 | 2,059 | cpp | C++ | PolyEngine/RenderingDevice/OpenGL/Src/Proxy/GLCubemapDeviceProxy.cpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 65 | 2017-04-04T20:33:44.000Z | 2019-12-02T23:06:58.000Z | PolyEngine/RenderingDevice/OpenGL/Src/Proxy/GLCubemapDeviceProxy.cpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 46 | 2017-04-21T12:26:38.000Z | 2019-12-15T05:31:47.000Z | PolyEngine/RenderingDevice/OpenGL/Src/Proxy/GLCubemapDeviceProxy.cpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 51 | 2017-04-12T10:53:32.000Z | 2019-11-20T13:05:54.000Z | #include <PolyRenderingDeviceGLPCH.hpp>
#include <Proxy/GLCubemapDeviceProxy.hpp>
#include <Proxy/GLTextureDeviceProxy.hpp>
#include <Common/GLUtils.hpp>
using namespace Poly;
GLCubemapDeviceProxy::GLCubemapDeviceProxy(size_t width, size_t height)
: Width(width), Height(height)
{
InitCubemapParams();
}
GLCubemapD... | 29.84058 | 116 | 0.797475 | PiotrMoscicki |
b3fd26f7b9288fa991e3b2c0fc65deef03a222fa | 3,366 | cpp | C++ | Practica3/prodcons.cpp | JArandaIzquierdo/SistemasConcurrentesYDistribuidos | 1d773458efecefa32b61ade42a1654679d515dc4 | [
"Apache-2.0"
] | null | null | null | Practica3/prodcons.cpp | JArandaIzquierdo/SistemasConcurrentesYDistribuidos | 1d773458efecefa32b61ade42a1654679d515dc4 | [
"Apache-2.0"
] | null | null | null | Practica3/prodcons.cpp | JArandaIzquierdo/SistemasConcurrentesYDistribuidos | 1d773458efecefa32b61ade42a1654679d515dc4 | [
"Apache-2.0"
] | null | null | null | #include <mpi.h>
#include <iostream>
#include <math.h>
#include <time.h> // incluye "time"
#include <unistd.h> // incluye "usleep"
#include <stdlib.h> // incluye "rand" y "srand"
// ---------------------------------------------------------------------
#define Productor 0
#define Buffer 1
#define... | 29.787611 | 92 | 0.501485 | JArandaIzquierdo |
b600d5f91b170f23522494a471170d54da0dbfda | 8,614 | cxx | C++ | PWGJE/EMCALJetTasks/AliJetShape.cxx | wiechula/AliPhysics | 6c5c45a5c985747ee82328d8fd59222b34529895 | [
"BSD-3-Clause"
] | null | null | null | PWGJE/EMCALJetTasks/AliJetShape.cxx | wiechula/AliPhysics | 6c5c45a5c985747ee82328d8fd59222b34529895 | [
"BSD-3-Clause"
] | null | null | null | PWGJE/EMCALJetTasks/AliJetShape.cxx | wiechula/AliPhysics | 6c5c45a5c985747ee82328d8fd59222b34529895 | [
"BSD-3-Clause"
] | null | null | null | #include "AliJetShape.h"
#include "TMath.h"
#include "TMatrixD.h"
#include "TMatrixDSym.h"
#include "TMatrixDSymEigen.h"
#include "TVector3.h"
#include "TVector2.h"
#include "AliFJWrapper.h"
using namespace std;
#ifdef FASTJET_VERSION
//________________________________________________________________________
Double3... | 32.752852 | 113 | 0.648015 | wiechula |
b60194fe3eb6c2ef2c8c9628984ac3668f1b5d58 | 1,794 | cpp | C++ | 2015/day25/p1/main.cpp | jbaldwin/adventofcode2019 | bdc333330dd5e36458a49f0b7cd64d462c9988c7 | [
"MIT"
] | null | null | null | 2015/day25/p1/main.cpp | jbaldwin/adventofcode2019 | bdc333330dd5e36458a49f0b7cd64d462c9988c7 | [
"MIT"
] | null | null | null | 2015/day25/p1/main.cpp | jbaldwin/adventofcode2019 | bdc333330dd5e36458a49f0b7cd64d462c9988c7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <map>
int main(int argc, char* argv[])
{
constexpr int64_t row = 2978;
constexpr int64_t col = 3083;
constexpr int64_t first_code = 20151125;
constexpr int64_t multiply_by = 252533;
constexpr int64_t modulo_by = 33554393;
// Pat... | 22.148148 | 98 | 0.466555 | jbaldwin |
b608c99031ce1661c470b10d7f08725e8fb4e8a9 | 683 | cpp | C++ | competitive_programming/programming_contests/uri/kiloman.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 205 | 2018-12-01T17:49:49.000Z | 2021-12-22T07:02:27.000Z | competitive_programming/programming_contests/uri/kiloman.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 2 | 2020-01-01T16:34:29.000Z | 2020-04-26T19:11:13.000Z | competitive_programming/programming_contests/uri/kiloman.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 50 | 2018-11-28T20:51:36.000Z | 2021-11-29T04:08:25.000Z | // https://www.urionlinejudge.com.br/judge/en/problems/view/1250
#include <iostream>
#include <vector>
#include <string>
using namespace std;
bool is_hit(vector<int> &v, string js, int ind) {
if (js[ind] == 'S' && (v[ind] == 1 || v[ind] == 2)) return true;
if (js[ind] == 'J' && v[ind] > 2) return true;
return fal... | 15.522727 | 65 | 0.535871 | LeandroTk |
b608ee41a49d252159d0f8d61fd93b12abdbb96e | 5,913 | cpp | C++ | src/render/ui_renderer.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | 3 | 2015-02-22T20:34:28.000Z | 2020-03-04T08:55:25.000Z | src/render/ui_renderer.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | 22 | 2015-12-13T16:29:40.000Z | 2017-03-04T15:45:44.000Z | src/render/ui_renderer.cpp | Reaping2/Reaping2 | 0d4c988c99413e50cc474f6206cf64176eeec95d | [
"MIT"
] | 14 | 2015-11-23T21:25:09.000Z | 2020-07-17T17:03:23.000Z | #include "i_render.h"
#include "ui_renderer.h"
#include "main/window.h"
#include "engine/engine.h"
#include "uimodel_repo.h"
#include "shader_manager.h"
#include "uimodel.h"
#include "font.h"
#include "counter.h"
#include "platform/game_clock.h"
namespace {
typedef std::vector<glm::vec2> Positions_t;
typedef std::vect... | 34.377907 | 138 | 0.61424 | MrPepperoni |
b60a5042dcce244695b69aa8b1d3334bcef2896e | 7,841 | cpp | C++ | ExploringScaleSymmetry/Chapter9/ch9_figure2.cpp | TGlad/ExploringScaleSymmetry | 25b2dae0279a0ac26f6bae2277d3b76a1cda8b04 | [
"MIT"
] | null | null | null | ExploringScaleSymmetry/Chapter9/ch9_figure2.cpp | TGlad/ExploringScaleSymmetry | 25b2dae0279a0ac26f6bae2277d3b76a1cda8b04 | [
"MIT"
] | null | null | null | ExploringScaleSymmetry/Chapter9/ch9_figure2.cpp | TGlad/ExploringScaleSymmetry | 25b2dae0279a0ac26f6bae2277d3b76a1cda8b04 | [
"MIT"
] | null | null | null | // Thomas Lowe, 2020.
// Calculates the fractal content for a limit set over multiple scales, and plots it as a log-log graph, to demonstrate its oscillation.
// This also plots the limit set itself and the expanded limit set at every scale. Use a breakpoint in this look to see each expanded set.
#include "stdafx.h"
#d... | 35.004464 | 206 | 0.593929 | TGlad |
b60a58e8480c3728b1a52904796d106364be9060 | 22,480 | cpp | C++ | src/ants.cpp | Segfaultt/Ant-Wars-HD | a913af070519e8215c8acae8c8683db28e1df046 | [
"MIT"
] | null | null | null | src/ants.cpp | Segfaultt/Ant-Wars-HD | a913af070519e8215c8acae8c8683db28e1df046 | [
"MIT"
] | null | null | null | src/ants.cpp | Segfaultt/Ant-Wars-HD | a913af070519e8215c8acae8c8683db28e1df046 | [
"MIT"
] | null | null | null | #include <math.h>
#include "black_hole.h"
#define PI_OVER_180 0.017453293
#define ONE_EIGHTY_OVER_PI 57.29578
#define PYTHAG(a, b) sqrt(pow(a, 2) + pow(b, 2))
#define ANT_REPEL_FORCE 1
int sign(auto x)
{
if (x < 0)
return -1;
else
return 1;
}
//=====ANT=====
ant::ant(ant_type type_, int starting_x, int starting... | 24.172043 | 218 | 0.625801 | Segfaultt |
b60a90fd109abcc6dd7e20f9fd76e0ab74c8738d | 904 | cpp | C++ | tests/LineFitting/LineFitting.cpp | argon24/robest | e91fe1f0ec94ae6fcf81a246ad4433b3371ddaa0 | [
"MIT"
] | 6 | 2018-01-14T23:51:02.000Z | 2021-12-02T08:42:20.000Z | tests/LineFitting/LineFitting.cpp | argon24/robest | e91fe1f0ec94ae6fcf81a246ad4433b3371ddaa0 | [
"MIT"
] | 1 | 2018-11-10T09:56:57.000Z | 2018-11-17T23:17:39.000Z | tests/LineFitting/LineFitting.cpp | argon24/robest | e91fe1f0ec94ae6fcf81a246ad4433b3371ddaa0 | [
"MIT"
] | 5 | 2018-11-09T20:12:35.000Z | 2021-09-24T09:41:47.000Z | #include "LineFitting.hpp"
LineFittingProblem::LineFittingProblem()
{
setNbParams(2);
setNbMinSamples(2);
}
LineFittingProblem::~LineFittingProblem()
{
}
void LineFittingProblem::setData(std::vector<double> & x, std::vector<double> & y)
{
points.clear();
for (int i = 0; i < x.size(); i++){
P... | 14.819672 | 90 | 0.607301 | argon24 |
b60b7041157ce16da22f9fe08bf84a682dbfc029 | 1,830 | cpp | C++ | Days 081 - 090/Day 82/ReadNFromRead7.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 081 - 090/Day 82/ReadNFromRead7.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 081 - 090/Day 82/ReadNFromRead7.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <string>
class FileReader
{
private:
mutable unsigned int offset = 0;
const std::string contents;
std::string nBuffer = "";
public:
explicit FileReader(const std::string& filename)
: contents(GetFileContents(filename))
{ }... | 18.3 | 83 | 0.631694 | LucidSigma |
b612d969a96841023213950ddd99d44d5f3ad978 | 343 | cpp | C++ | Samples/Win7Samples/multimedia/windowsmediaservices9/eventnotification/StdAfx.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/multimedia/windowsmediaservices9/eventnotification/StdAfx.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/multimedia/windowsmediaservices9/eventnotification/StdAfx.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | //+-------------------------------------------------------------------------
//
// Microsoft Windows Media Technologies
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// File: StdAfx.cpp
//
// Contents:
//
//--------------------------------------------------------------------------
... | 26.384615 | 77 | 0.335277 | windows-development |
b61789691f0cd73e4fd1cee7782b1361822ae577 | 1,672 | cpp | C++ | Engine/Src/SFEngine/SceneGraph/SFSceneNodeComponent.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | 1 | 2020-06-20T07:35:25.000Z | 2020-06-20T07:35:25.000Z | Engine/Src/SFEngine/SceneGraph/SFSceneNodeComponent.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | Engine/Src/SFEngine/SceneGraph/SFSceneNodeComponent.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// CopyRight (c) 2018 Kyungkun Ko
//
// Author : KyungKun Ko
//
// Description : SceneNodeComponent
//
//
////////////////////////////////////////////////////////////////////////////////
#include "SFEnginePCH.h"
#inc... | 20.641975 | 115 | 0.584928 | blue3k |
b629847993fbb9a0832ede635bff792fc3f1a756 | 616 | cpp | C++ | cpp/001-010/ZigZag Conversion.cpp | KaiyuWei/leetcode | fd61f5df60cfc7086f7e85774704bacacb4aaa5c | [
"MIT"
] | 150 | 2015-04-04T06:53:49.000Z | 2022-03-21T13:32:08.000Z | cpp/001-010/ZigZag Conversion.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 1 | 2015-04-13T15:15:40.000Z | 2015-04-21T20:23:16.000Z | cpp/001-010/ZigZag Conversion.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 64 | 2015-06-30T08:00:07.000Z | 2022-01-01T16:44:14.000Z | class Solution {
public:
string convert(string s, int numRows) {
if (numRows == 1) {
return s;
}
vector<string> rows(numRows);
int row = 0;
int step = 1;
for (char ch : s) {
rows[row].push_back(ch);
if (row == ... | 21.241379 | 43 | 0.362013 | KaiyuWei |
b62d74bccbbca48b413e7fdbb0e2637cd73ff48a | 394 | hpp | C++ | include/Exceptions/InputErrorException.hpp | Ethan13310/NanoTekSpice | d69550213a7607662653c52d8f34e5b565714a30 | [
"MIT"
] | 2 | 2018-06-29T10:17:51.000Z | 2018-07-04T13:01:53.000Z | include/Exceptions/InputErrorException.hpp | Ethan13310/NanoTekSpice | d69550213a7607662653c52d8f34e5b565714a30 | [
"MIT"
] | null | null | null | include/Exceptions/InputErrorException.hpp | Ethan13310/NanoTekSpice | d69550213a7607662653c52d8f34e5b565714a30 | [
"MIT"
] | 3 | 2021-03-03T15:29:13.000Z | 2022-02-22T15:44:44.000Z | /*
** EPITECH PROJECT, 2018
** NanoTekSpice
** File description:
** InputErrorException.hpp
*/
#pragma once
#include <string>
#include "Exceptions/BaseException.hpp"
namespace nts
{
class InputErrorException : public BaseException
{
public:
InputErrorException(char const *message);
InputErrorExceptio... | 15.76 | 50 | 0.72335 | Ethan13310 |
b62e7ed0d6914eecc5cdb23b532a15d7864d26fd | 546 | cpp | C++ | heap-vs-stack/main.cpp | markccchiang/openmp-examples | 5970d051e634bc2ad2cf99e84c2544bef1fa258b | [
"MIT"
] | 94 | 2017-04-12T13:24:10.000Z | 2022-03-20T11:44:31.000Z | heap-vs-stack/main.cpp | markccchiang/openmp-examples | 5970d051e634bc2ad2cf99e84c2544bef1fa258b | [
"MIT"
] | null | null | null | heap-vs-stack/main.cpp | markccchiang/openmp-examples | 5970d051e634bc2ad2cf99e84c2544bef1fa258b | [
"MIT"
] | 26 | 2019-01-31T00:33:14.000Z | 2022-03-05T19:13:20.000Z | #include <iostream>
#include <omp.h>
int main() {
int heap_sum = 0;
omp_set_num_threads(3);
#pragma omp parallel
{
int stack_sum=0;
stack_sum++;
heap_sum++;
printf("stack sum is %d\n", stack_sum);
printf("heap sum is %d\n", heap_sum);
}
std::cout << ... | 20.222222 | 63 | 0.532967 | markccchiang |
ac072c254639cbe5b225437c8b0554364bffa354 | 5,372 | cpp | C++ | example/particles.cpp | libclsph/libclsph | 4cdf18fba05a64826484b0db238b604c90a2e894 | [
"MIT"
] | 39 | 2015-01-05T10:39:27.000Z | 2022-01-25T12:21:00.000Z | example/particles.cpp | libclsph/libclsph | 4cdf18fba05a64826484b0db238b604c90a2e894 | [
"MIT"
] | null | null | null | example/particles.cpp | libclsph/libclsph | 4cdf18fba05a64826484b0db238b604c90a2e894 | [
"MIT"
] | 10 | 2015-09-01T22:47:38.000Z | 2022-01-25T12:21:04.000Z | #define EXIT_ON_CL_ERROR
#include <iostream>
#include <iomanip>
#include <string>
#include "sph_simulation.h"
#include "file_save_delegates/houdini_file_saver.h"
#include "util/cereal/archives/binary.hpp"
int main(int argc, char** argv) {
if(argc < 5) {
std::cout << "Too few arguments" << std::endl <<
... | 40.69697 | 173 | 0.573157 | libclsph |
ac0ae526c97f6b4214c6e119684ca9ac6181ecd3 | 249 | cpp | C++ | baseclass/testPattern.cpp | HxHexa/quang-advCG-raytracer | 605f7dfcc9237f331d456646b7653ad0f26c0cc4 | [
"MIT"
] | null | null | null | baseclass/testPattern.cpp | HxHexa/quang-advCG-raytracer | 605f7dfcc9237f331d456646b7653ad0f26c0cc4 | [
"MIT"
] | null | null | null | baseclass/testPattern.cpp | HxHexa/quang-advCG-raytracer | 605f7dfcc9237f331d456646b7653ad0f26c0cc4 | [
"MIT"
] | null | null | null | /* it does what it says it does
* */
#include "headers/testPattern.hpp"
TestPattern::TestPattern() {
transform = Matrix::Identity();
}
Color TestPattern::patternAt(Tuple point) {
return Color(point.getx(), point.gety(), point.getz());
}
| 19.153846 | 59 | 0.674699 | HxHexa |
ac13a5152317f2e27bd83903b60d4f3b55b7ca2e | 18,075 | cpp | C++ | src/legecy/stereo_calibration_example.cpp | behnamasadi/OpenCVProjects | 157c8d536c78c5660b64a23300a7aaf941584756 | [
"BSD-3-Clause"
] | null | null | null | src/legecy/stereo_calibration_example.cpp | behnamasadi/OpenCVProjects | 157c8d536c78c5660b64a23300a7aaf941584756 | [
"BSD-3-Clause"
] | null | null | null | src/legecy/stereo_calibration_example.cpp | behnamasadi/OpenCVProjects | 157c8d536c78c5660b64a23300a7aaf941584756 | [
"BSD-3-Clause"
] | null | null | null | #include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
template<typename to, typename from>
to lexical_cast(from const &x)
{
std::stringstream os;
to ret;
os << x;
os >> ret;
return ret;
}
static bool readStringList... | 31.325823 | 161 | 0.614495 | behnamasadi |
ac169641572830604d2fb8fe1f3781c065eaa214 | 811 | hxx | C++ | src/NodoElemento.hxx | taleroangel/ProyeccionesEDD | d246dc22776fca09b2a36c82b3db682f3af3a155 | [
"MIT"
] | null | null | null | src/NodoElemento.hxx | taleroangel/ProyeccionesEDD | d246dc22776fca09b2a36c82b3db682f3af3a155 | [
"MIT"
] | null | null | null | src/NodoElemento.hxx | taleroangel/ProyeccionesEDD | d246dc22776fca09b2a36c82b3db682f3af3a155 | [
"MIT"
] | null | null | null | #ifndef NODOELEMENTO_HXX
#define NODOELEMENTO_HXX
#include <vector>
#include "CodigoElemento.hxx"
#include "NodoCodificacion.hxx"
template <typename T>
struct NodoElemento : public NodoCodificacion<T> {
T dato;
NodoElemento<T>() = default;
NodoElemento<T>(T elemento, freq_t frecuencia);
std::vector... | 25.34375 | 73 | 0.727497 | taleroangel |
ac25801ccef67dcdf6a3c9db98319da2d360da8e | 2,741 | cpp | C++ | codeforces/1515C.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1515C.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1515C.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | // C. Phoenix and Towers
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <numeric>
#include <set>
using namespace std;
int main() {
int t;
cin >> t;
while (t--) {
int n, m, x;
cin >> n >> m >> x;
int tmp;
// <height, count_of_such_h... | 26.104762 | 80 | 0.41846 | sgrade |
ac26ace285bf1b9861c6eeb28f6f1d014eb74d1a | 6,923 | cpp | C++ | src/Public/CaptureCpp/CaptureCpp.cpp | zpublic/cozy | dde5f2bcf7482e2e5042f9e51266d9fd272e1456 | [
"WTFPL"
] | 48 | 2015-04-11T13:25:45.000Z | 2022-03-28T08:27:40.000Z | src/Public/CaptureCpp/CaptureCpp.cpp | ToraiRei/cozy | c8197d9c6531f1864d6063ae149db53b669241f0 | [
"WTFPL"
] | 4 | 2016-04-06T09:30:57.000Z | 2022-02-26T01:21:18.000Z | src/Public/CaptureCpp/CaptureCpp.cpp | ToraiRei/cozy | c8197d9c6531f1864d6063ae149db53b669241f0 | [
"WTFPL"
] | 33 | 2015-06-03T10:06:54.000Z | 2020-12-15T00:50:28.000Z | // CaptureCpp.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "CaptureCpp.h"
CAPTURECPP_API CCaptureCpp CcaptureCppInstance;
CCaptureCpp::CCaptureCpp(void)
{
}
void CCaptureCpp::GetWindowSize(HWND hwnd, LPLONG x, LPLONG y)
{
RECT rect;
::GetWindowRect(hwnd, &re... | 28.966527 | 148 | 0.648563 | zpublic |
ac29e77fee02fbba5e1cce28204aa9374c07145d | 453 | cpp | C++ | Source/GCE/Game/Mover/BishopMoverComponent.cpp | ssapo/GCE | ddb5dfa2472c2f4ba01bf81d4fac9a64ac861e9f | [
"MIT"
] | 2 | 2019-07-28T13:30:14.000Z | 2019-11-22T08:14:28.000Z | Source/GCE/Game/Mover/BishopMoverComponent.cpp | ssapo/GCE | ddb5dfa2472c2f4ba01bf81d4fac9a64ac861e9f | [
"MIT"
] | null | null | null | Source/GCE/Game/Mover/BishopMoverComponent.cpp | ssapo/GCE | ddb5dfa2472c2f4ba01bf81d4fac9a64ac861e9f | [
"MIT"
] | 1 | 2019-07-07T13:39:08.000Z | 2019-07-07T13:39:08.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "BishopMoverComponent.h"
UBishopMoverComponent::UBishopMoverComponent()
{
MoveDirections = {
FIntPoint(1, 1),
FIntPoint(-1, 1),
FIntPoint(-1, -1),
FIntPoint(1, -1)
};
AttackDirections = {
FIntPoint(1, 1),
FIntPoin... | 17.423077 | 78 | 0.682119 | ssapo |
ac34978eb29682dc1962c2d6bea27229ee9fbb64 | 602 | cpp | C++ | RealmLib/Packets/Client/EnterArena.cpp | SometimesRain/realmnet | 76ead08b4a0163a05b65389e512942a620331256 | [
"MIT"
] | 10 | 2018-11-25T21:59:43.000Z | 2022-01-09T22:41:52.000Z | RealmLib/Packets/Client/EnterArena.cpp | SometimesRain/realmnet | 76ead08b4a0163a05b65389e512942a620331256 | [
"MIT"
] | 1 | 2018-11-28T12:59:59.000Z | 2018-11-28T12:59:59.000Z | RealmLib/Packets/Client/EnterArena.cpp | SometimesRain/realmnet | 76ead08b4a0163a05b65389e512942a620331256 | [
"MIT"
] | 6 | 2018-12-28T22:34:13.000Z | 2021-10-16T10:17:17.000Z | #include "stdafx.h"
#include <GameData/Constants.h>
#include <GameData/TypeManager.h>
#include "Packets/PacketWriter.h"
#include "Packets/PacketReader.h"
#include <Packets/EnterArena.h>
EnterArena::EnterArena(int currency)
: currency(currency)
{
}
EnterArena::EnterArena(byte* data)
{
PacketReader r(data);
r.re... | 15.842105 | 79 | 0.734219 | SometimesRain |
ac3c95a1375cbc236fc8821d5baa34156e8b71cf | 3,810 | hpp | C++ | SDE.hpp | jetpotion/MonteCarloOptionPricer | 0024c9c900d1c968fca8946aa438ba07453272d8 | [
"MIT"
] | 2 | 2020-12-13T00:07:01.000Z | 2021-01-14T00:40:33.000Z | SDE.hpp | jetpotion/MonteCarloOptionPricer | 0024c9c900d1c968fca8946aa438ba07453272d8 | [
"MIT"
] | null | null | null | SDE.hpp | jetpotion/MonteCarloOptionPricer | 0024c9c900d1c968fca8946aa438ba07453272d8 | [
"MIT"
] | null | null | null | #ifndef SDE_HPP
#define SDE_HPP
//THE VARIOUS TYPES OF SDE
namespace MonteCarloOptionApplication
{
namespace ISde
{
class SDE
{
public:
SDE() = default;
SDE(const SDE& source) = default;
SDE& operator=(const SDE& source);
virtual ~SDE() = default; //Destructor
[[nodiscard]] virtual double Drift... | 48.227848 | 121 | 0.732021 | jetpotion |
ac4044985b5b2bef8e0f296ca8f4a65ec312e6b5 | 1,431 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32746G-Discovery/Demonstrations/TouchGFX/Gui/target/GPIO.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32746G-Discovery/Demonstrations/TouchGFX/Gui/target/GPIO.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32746G-Discovery/Demonstrations/TouchGFX/Gui/target/GPIO.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | /**
******************************************************************************
* This file is part of the TouchGFX 4.10.0 distribution.
*
* @attention
*
* Copyright (c) 2018 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
... | 19.337838 | 80 | 0.570929 | ramkumarkoppu |
ac43229a8a489dccf391abb2a9f6c2421bee788a | 1,436 | hpp | C++ | src/api/cpp/include/OISkeleton.hpp | jacobnb/OpenISS | 028b315953b27dd3acc449efd5cfb485805a14b3 | [
"Apache-2.0"
] | null | null | null | src/api/cpp/include/OISkeleton.hpp | jacobnb/OpenISS | 028b315953b27dd3acc449efd5cfb485805a14b3 | [
"Apache-2.0"
] | null | null | null | src/api/cpp/include/OISkeleton.hpp | jacobnb/OpenISS | 028b315953b27dd3acc449efd5cfb485805a14b3 | [
"Apache-2.0"
] | 1 | 2018-11-17T19:33:31.000Z | 2018-11-17T19:33:31.000Z | //
// OISkeleton.hpp
// Skeleton
//
// Created by Haotao Lai on 2018-08-08.
// Created by Jashanjot Singh on 2018-07-22.
//
#ifndef OPENISS_OISKELETON_H
#define OPENISS_OISKELETON_H
#include <unordered_map>
#include <memory>
#include <vector>
#include "OIEnum.hpp"
#include "OITracker.hpp"
#include "OIFrame.hpp"
usin... | 22.793651 | 82 | 0.721448 | jacobnb |
ac44a7fc940a4ae2816883c6aaf7e69622258d7e | 7,353 | hpp | C++ | artlib-cpp/include/srilakshmikanthanp/src/anixt_font.hpp | Thanus-MR/artlib | 263c30701f36637ffad271c9c88e8d1aafdc2c2b | [
"MIT"
] | 1 | 2021-04-17T02:24:02.000Z | 2021-04-17T02:24:02.000Z | artlib-cpp/include/srilakshmikanthanp/src/anixt_font.hpp | Thanus-MR/artlib | 263c30701f36637ffad271c9c88e8d1aafdc2c2b | [
"MIT"
] | null | null | null | artlib-cpp/include/srilakshmikanthanp/src/anixt_font.hpp | Thanus-MR/artlib | 263c30701f36637ffad271c9c88e8d1aafdc2c2b | [
"MIT"
] | null | null | null | ///@file basic_font.hpp
/**
* Copyright (c) 2020 Sri Lakshmi Kanthan P
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#ifndef BASIC_FONT_HEADER
#define BASIC_FONT_HEADER
#include "anixt_config.hpp"
#include "filesystem"
#include "fstream"
#include "third_party/jso... | 33.884793 | 92 | 0.509452 | Thanus-MR |
ac45c8faca723e2e5e80e841e60b8dc687c2c893 | 4,951 | cpp | C++ | libskiwi/tail_calls_check.cpp | janm31415/skiwi | 851a006c2964d527cc38b7a71f3e835b8dab52b5 | [
"MIT"
] | 4 | 2020-10-06T14:09:13.000Z | 2020-10-24T17:34:53.000Z | libskiwi/tail_calls_check.cpp | janm31415/skiwi | 851a006c2964d527cc38b7a71f3e835b8dab52b5 | [
"MIT"
] | null | null | null | libskiwi/tail_calls_check.cpp | janm31415/skiwi | 851a006c2964d527cc38b7a71f3e835b8dab52b5 | [
"MIT"
] | null | null | null | #include "tail_calls_check.h"
#include "visitor.h"
SKIWI_BEGIN
namespace
{
/*
A procedure call is called a tail call if it occurs in a tail position.
A tail position is defined recursively as follows:
- the body of a procedure is in tail position
- if a let expression is in tail position, then the body
... | 25.005051 | 131 | 0.568976 | janm31415 |
ac49848a1882ecebb1539e54148b73293229f10c | 3,048 | cc | C++ | leetcode/ds_hash_longest_consecutive_seq.cc | prashrock/C- | 3ed46815d40b3e42cd9f36d23c8ee2a9de742323 | [
"MIT"
] | 1 | 2016-12-05T10:42:46.000Z | 2016-12-05T10:42:46.000Z | leetcode/ds_hash_longest_consecutive_seq.cc | prashrock/CPP | 3ed46815d40b3e42cd9f36d23c8ee2a9de742323 | [
"MIT"
] | null | null | null | leetcode/ds_hash_longest_consecutive_seq.cc | prashrock/CPP | 3ed46815d40b3e42cd9f36d23c8ee2a9de742323 | [
"MIT"
] | null | null | null | //g++-5 --std=c++11 -Wall -g -o ds_hash_longest_consecutive_seq ds_hash_longest_consecutive_seq.cc
/**
* @file Longest Consecutive Sequence
* @brief Given unsorted array, find length of longest consecutive sequence
*/
// https://leetcode.com/problems/longest-consecutive-sequence/
/**
* Given an unsorted array o... | 35.034483 | 98 | 0.543307 | prashrock |
ac566ec5d7bb9d1454c4a6bee2debad773b9c603 | 6,910 | cpp | C++ | ValidateEditor/SQLColsDlg.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | 1 | 2021-12-31T17:20:01.000Z | 2021-12-31T17:20:01.000Z | ValidateEditor/SQLColsDlg.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | 10 | 2022-01-14T13:28:32.000Z | 2022-02-13T12:46:34.000Z | ValidateEditor/SQLColsDlg.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////////////////////////////
//
//
// ██╗░░██╗░██╗░░░░░░░██╗░█████╗░████████╗████████╗░█████╗░
// ██║░██╔╝░██║░░██╗░░██║██╔══██╗╚══██╔══╝╚══██╔══╝██╔══██╗
// █████═╝░░╚██╗████╗██╔╝███████║░░░██║░░░░░░██║░░░███████║
// ██╔═██╗░░░████╔═████║░██╔... | 26.273764 | 113 | 0.675687 | edwig |
ac587e3dfbebebde8bf200e83c733b6a00cfd8a5 | 27,114 | cxx | C++ | PWG/FLOW/Base/AliFlowAnalysisWithSimpleSP.cxx | amveen/AliPhysics | bef49dc8e7f8ad5f656d54430031eb67abcf3243 | [
"BSD-3-Clause"
] | null | null | null | PWG/FLOW/Base/AliFlowAnalysisWithSimpleSP.cxx | amveen/AliPhysics | bef49dc8e7f8ad5f656d54430031eb67abcf3243 | [
"BSD-3-Clause"
] | null | null | null | PWG/FLOW/Base/AliFlowAnalysisWithSimpleSP.cxx | amveen/AliPhysics | bef49dc8e7f8ad5f656d54430031eb67abcf3243 | [
"BSD-3-Clause"
] | null | null | null | /*************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors a... | 43.244019 | 173 | 0.599174 | amveen |
ac5c29c36c2518fc591a949accccfd9aecb55958 | 24,233 | cpp | C++ | src/utils.cpp | dangerdevices/gdstk | bff6b2e5950b9da5b3b3f8bdb653778cf679e592 | [
"BSL-1.0"
] | 135 | 2020-08-12T22:32:21.000Z | 2022-03-31T04:34:56.000Z | src/utils.cpp | dangerdevices/gdstk | bff6b2e5950b9da5b3b3f8bdb653778cf679e592 | [
"BSL-1.0"
] | 80 | 2020-08-12T23:03:44.000Z | 2022-03-18T12:25:41.000Z | src/utils.cpp | dangerdevices/gdstk | bff6b2e5950b9da5b3b3f8bdb653778cf679e592 | [
"BSL-1.0"
] | 35 | 2020-09-08T15:55:01.000Z | 2022-03-29T04:52:58.000Z | /*
Copyright 2020 Lucas Heitzmann Gabrielli.
This file is part of gdstk, distributed under the terms of the
Boost Software License - Version 1.0. See the accompanying
LICENSE file or <http://www.boost.org/LICENSE_1_0.txt>
*/
#include "utils.h"
#include <assert.h>
#include <inttypes.h>
#include <limits.h>
#include <m... | 36.007429 | 100 | 0.48566 | dangerdevices |
ac5e1706224622eb8bbd928ba02326fa6394a112 | 1,282 | hh | C++ | src/test/resources/samples/langs/Hack/HomeController.hh | JavascriptID/sourcerer-app | 9ad05f7c6a18c03793c8b0295a2cb318118f6245 | [
"MIT"
] | 8,271 | 2015-01-01T15:04:43.000Z | 2022-03-31T06:18:14.000Z | src/test/resources/samples/langs/Hack/HomeController.hh | JavascriptID/sourcerer-app | 9ad05f7c6a18c03793c8b0295a2cb318118f6245 | [
"MIT"
] | 3,238 | 2015-01-01T14:25:12.000Z | 2022-03-30T17:37:51.000Z | src/test/resources/samples/langs/Hack/HomeController.hh | JavascriptID/sourcerer-app | 9ad05f7c6a18c03793c8b0295a2cb318118f6245 | [
"MIT"
] | 4,070 | 2015-01-01T11:40:51.000Z | 2022-03-31T13:45:53.000Z | <?hh // strict
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
... | 32.871795 | 81 | 0.686427 | JavascriptID |
ac5fcec114a163f12d822091aba08574cff84eba | 2,383 | cpp | C++ | Game/UI_Element_Slider.cpp | Chr157i4n/OpenGL_Space_Game | b4cd4ab65385337c37f26af641597c5fc9126f04 | [
"MIT"
] | 3 | 2020-08-05T00:02:30.000Z | 2021-08-23T00:41:24.000Z | Game/UI_Element_Slider.cpp | Chr157i4n/OpenGL_Space_Game | b4cd4ab65385337c37f26af641597c5fc9126f04 | [
"MIT"
] | null | null | null | Game/UI_Element_Slider.cpp | Chr157i4n/OpenGL_Space_Game | b4cd4ab65385337c37f26af641597c5fc9126f04 | [
"MIT"
] | 2 | 2021-07-03T19:32:08.000Z | 2021-08-19T18:48:52.000Z | #include "UI_Element_Slider.h"
#include "Game.h"
UI_Element_Slider::UI_Element_Slider(int x, int y, int w, int h, uint64 lifespan, std::string label, glm::vec4 foreColor, glm::vec4 backColor, bool isDebugInfo) : UI_Element(x, y, w, h, lifespan, foreColor, backColor, isDebugInfo)
{
this->label = label;
labelOffsetX... | 27.390805 | 230 | 0.664289 | Chr157i4n |
ac60947c206cb6be3969c04c3c524a5d8698d7c6 | 753 | cpp | C++ | codeforces/1392B.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1392B.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1392B.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | // B. Omkar and Infinity Clock
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
int t;
cin >> t;
while(t--){
int n;
unsigned long long k;
cin >> n >> k;
vector<int> v(n);
for (int i=0; i<n; ++i){
cin >> v[... | 16.733333 | 57 | 0.393094 | sgrade |
ac6b85c1faf5fc4c0540d0babded351d39970599 | 19,405 | cpp | C++ | src/kits/storage/NodeInfo.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | 3 | 2018-05-21T15:32:32.000Z | 2019-03-21T13:34:55.000Z | src/kits/storage/NodeInfo.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | src/kits/storage/NodeInfo.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | /*
* Copyright 2002-2010 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Ingo Weinhold, bonefish@users.sf.net
* Axel Dörfler, axeld@pinc-software.de
*/
//-----------------------------------------------------------------------------
#include <NodeInfo.h>
//---... | 31.916118 | 88 | 0.524916 | stasinek |
ac6c6bddc8d811b7ae25f6bbb9f8ce0e716e12c5 | 323 | cpp | C++ | maximum-difference-between-increasing-elements/maximum-difference-between-increasing-elements.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | 1 | 2022-02-14T07:57:07.000Z | 2022-02-14T07:57:07.000Z | maximum-difference-between-increasing-elements/maximum-difference-between-increasing-elements.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | null | null | null | maximum-difference-between-increasing-elements/maximum-difference-between-increasing-elements.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | null | null | null | class Solution {
public:
int maximumDifference(vector<int>& nums) {
int diff=0;
int minimum=INT_MAX;
for(int n : nums)
{
if(n<minimum)
minimum=n;
if(n-minimum>diff)
diff=n-minimum;
}
return diff==0?-1:diff;
}... | 21.533333 | 46 | 0.458204 | sharmishtha2401 |
ac6ecd4799d50f8520d54d5cf0337cbc916110bf | 283 | cpp | C++ | sxaccelerate/src/io/examples/plugins/SxPluginA.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | 1 | 2020-02-29T03:26:32.000Z | 2020-02-29T03:26:32.000Z | sxaccelerate/src/io/examples/plugins/SxPluginA.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | null | null | null | sxaccelerate/src/io/examples/plugins/SxPluginA.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | null | null | null | #include <SxPluginA.h>
#include <stdio.h>
SxPluginA::SxPluginA (SxPluginManager *parent_, void *)
: SxDemoPluginBase (parent_)
{
//empty
}
SxPluginA::~SxPluginA ()
{
printf ("About to destroy plugin A.\n");
}
void SxPluginA::foo ()
{
printf ("This is plugin A.\n");
} | 14.894737 | 55 | 0.650177 | ashtonmv |
ac6f4c0bcd49e1cd1ef543efe8fede81bd300cd0 | 2,687 | hpp | C++ | src/api/c/graphics_common.hpp | JuliaComputing/arrayfire | 93427f09ff928f97df29c0e358c3fcf6b478bec6 | [
"BSD-3-Clause"
] | 1 | 2018-06-14T23:49:18.000Z | 2018-06-14T23:49:18.000Z | src/api/c/graphics_common.hpp | JuliaComputing/arrayfire | 93427f09ff928f97df29c0e358c3fcf6b478bec6 | [
"BSD-3-Clause"
] | 1 | 2015-07-02T15:53:02.000Z | 2015-07-02T15:53:02.000Z | src/api/c/graphics_common.hpp | JuliaComputing/arrayfire | 93427f09ff928f97df29c0e358c3fcf6b478bec6 | [
"BSD-3-Clause"
] | 1 | 2018-02-26T17:11:03.000Z | 2018-02-26T17:11:03.000Z | /*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... | 29.206522 | 82 | 0.670636 | JuliaComputing |
ac73d7723b986f9918a84f5b983ca76be10bff40 | 409 | cpp | C++ | tests/common/FunexTest.cpp | boldowa/GIEPY | 5aa326b264ef19f71d2e0ab5513b08fac7bca941 | [
"MIT"
] | 8 | 2018-03-15T22:01:35.000Z | 2019-07-13T18:04:41.000Z | tests/common/FunexTest.cpp | telinc1/GIEPY | 9c87ad1070e519637fc4b11b6bef01f998961678 | [
"MIT"
] | 21 | 2018-02-18T06:25:40.000Z | 2018-07-13T17:54:40.000Z | tests/common/FunexTest.cpp | telinc1/GIEPY | 9c87ad1070e519637fc4b11b6bef01f998961678 | [
"MIT"
] | 2 | 2018-07-25T21:04:23.000Z | 2022-01-01T08:40:13.000Z | /**
* FunexTest.cpp
*/
#include <bolib.h>
#include "common/Funex.h"
#include "CppUTest/TestHarness.h"
TEST_GROUP(Funex)
{
void setup()
{
}
void teardown()
{
}
};
TEST(Funex, FunexMatch)
{
}
TEST(Funex, ishex)
{
}
TEST(Funex, atoh)
{
}
TEST(Funex, IsSpace)
{
}
TEST(Funex, CutOffTailSpaces)
{
}
TEST(Fune... | 7.865385 | 33 | 0.640587 | boldowa |
ac75db0aa1c9874d955232f8b76b7cb84a7b0012 | 2,022 | hpp | C++ | src/trafficsim/RoadTile.hpp | lutrarutra/trafsim | 05e87b263b48e39d63f699dcaa456f10ca61e9a4 | [
"Apache-2.0"
] | 12 | 2019-12-28T21:45:23.000Z | 2022-03-28T12:40:44.000Z | src/trafficsim/RoadTile.hpp | lutrarutra/trafsim | 05e87b263b48e39d63f699dcaa456f10ca61e9a4 | [
"Apache-2.0"
] | null | null | null | src/trafficsim/RoadTile.hpp | lutrarutra/trafsim | 05e87b263b48e39d63f699dcaa456f10ca61e9a4 | [
"Apache-2.0"
] | 1 | 2021-05-31T10:22:41.000Z | 2021-05-31T10:22:41.000Z | #pragma once
#include <array>
#include <climits> // UINT_MAX
#include <SFML/Graphics.hpp>
#include "Tile.hpp"
#include "TrafficLight.hpp"
namespace ts
{
/*
* Every Road type is derived from this class
* RoadTile is abstract class, and is derived from Tile
*
* Functions inherited from Tile:
* getNode()
*... | 24.658537 | 84 | 0.661721 | lutrarutra |
ac79c816f4f43e7b2101141a3716b678589576d4 | 13,006 | cpp | C++ | frameworks/object/modules/basic/dmzObjectModuleGridBasic.cpp | dmzgroup/dmz | fc2d9ddcb04ed71f4106b8d33539529807b3dea6 | [
"MIT"
] | 2 | 2015-11-05T03:03:43.000Z | 2017-05-15T12:55:39.000Z | frameworks/object/modules/basic/dmzObjectModuleGridBasic.cpp | dmzgroup/dmz | fc2d9ddcb04ed71f4106b8d33539529807b3dea6 | [
"MIT"
] | null | null | null | frameworks/object/modules/basic/dmzObjectModuleGridBasic.cpp | dmzgroup/dmz | fc2d9ddcb04ed71f4106b8d33539529807b3dea6 | [
"MIT"
] | null | null | null | #include <dmzObjectAttributeMasks.h>
#include "dmzObjectModuleGridBasic.h"
#include <dmzRuntimeConfigToTypesBase.h>
#include <dmzRuntimeConfigToVector.h>
#include <dmzRuntimePluginFactoryLinkSymbol.h>
#include <dmzRuntimePluginInfo.h>
#include <dmzTypesVolume.h>
/*!
\class dmz::ObjectModuleGridBasic
\ingroup Object
\... | 23.908088 | 104 | 0.559819 | dmzgroup |
ac7ec77ea103427b85401cf12cbcdde234ceabdd | 15,125 | cpp | C++ | Caesar/Hack/Aimbot/Aimbot.cpp | danielkrupinski/caesar | 8d84261f2b9e01c0c0d40220db301b5a0d508b3d | [
"MIT"
] | 27 | 2018-08-31T18:57:24.000Z | 2022-02-13T22:58:05.000Z | Caesar/Hack/Aimbot/Aimbot.cpp | danielkrupinski/caesar | 8d84261f2b9e01c0c0d40220db301b5a0d508b3d | [
"MIT"
] | 6 | 2018-09-19T21:50:38.000Z | 2020-07-28T13:48:47.000Z | Caesar/Hack/Aimbot/Aimbot.cpp | danielkrupinski/caesar | 8d84261f2b9e01c0c0d40220db301b5a0d508b3d | [
"MIT"
] | 9 | 2018-10-07T09:10:20.000Z | 2021-04-30T16:44:43.000Z | #include "../../Required.h"
#include "../../Config.h"
extern Config config;
CAimBot g_AimBot;
void SmoothAimAngles(QAngle MyViewAngles, QAngle AimAngles, QAngle &OutAngles, float Smoothing, bool bSpiral, float SpiralX, float SpiralY)
{
if (Smoothing < 1)
{
OutAngles = AimAngles;
return;
}
OutAngles = AimAngl... | 23.341049 | 244 | 0.686479 | danielkrupinski |
ac7f583280c773e6d73aa692d441c3b074a3beed | 2,230 | cpp | C++ | src/mainwindow.cpp | ashleyshu/sway | 3c89ed47773267914ba9840bc4c85714403ca137 | [
"MIT"
] | null | null | null | src/mainwindow.cpp | ashleyshu/sway | 3c89ed47773267914ba9840bc4c85714403ca137 | [
"MIT"
] | null | null | null | src/mainwindow.cpp | ashleyshu/sway | 3c89ed47773267914ba9840bc4c85714403ca137 | [
"MIT"
] | null | null | null | #include <QDebug>
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "tasklistdialog.h"
#include "conslistdialog.h"
#include "taskinputdialog.h"
#include "consinputdialog.h"
#include "schedulecreator.h"
#include "googlecal.h"
//! Main Window Class
/*!
\Author: Group 33
Description: Main ... | 20.272727 | 81 | 0.690583 | ashleyshu |
ac80c716b8c45340677a672b95e9b7cdead5efcb | 3,025 | cpp | C++ | modcode/Client.cpp | eezstreet/Rapture | 1022f1013d7a7a3a84ea3ba56518420daf4733fc | [
"ISC"
] | 2 | 2017-10-25T03:22:34.000Z | 2020-04-02T16:33:40.000Z | modcode/Client.cpp | eezstreet/Rapture | 1022f1013d7a7a3a84ea3ba56518420daf4733fc | [
"ISC"
] | 12 | 2016-07-03T21:08:25.000Z | 2016-07-30T06:17:26.000Z | modcode/Client.cpp | eezstreet/Rapture | 1022f1013d7a7a3a84ea3ba56518420daf4733fc | [
"ISC"
] | 3 | 2016-03-02T06:56:42.000Z | 2018-04-13T14:37:06.000Z | #include "Client.h"
#include "ClientDisplay.h"
#include "ClientFont.h"
namespace Client {
static bool bInitialized = false;
/*
Packet serialization/deserialization functions.
The serialization function is called when a packet is next in the queue to be written.
The deserialization function is conversely call... | 30.867347 | 110 | 0.729587 | eezstreet |
ac8209cc98e70c57ba64947689f569a1c3d585e4 | 1,195 | hpp | C++ | experimental/Pomdog.Experimental/Gameplay2D/Animator.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Gameplay2D/Animator.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Gameplay2D/Animator.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#ifndef POMDOG_ANIMATOR_0CFC0E37_HPP
#define POMDOG_ANIMATOR_0CFC0E37_HPP
#include "Pomdog.Experimental/Gameplay/Component.hpp"
#include "Pomdog/Application/Duration.hpp"
#include <string>
#include <memory>
na... | 24.895833 | 81 | 0.745607 | bis83 |
ac841a98df20217c9d4e857dfdf68828aaff42cf | 6,100 | hpp | C++ | pomdog/pomdog.hpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 163 | 2015-03-16T08:42:32.000Z | 2022-01-11T21:40:22.000Z | pomdog/pomdog.hpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 17 | 2015-04-12T20:57:50.000Z | 2020-10-10T10:51:45.000Z | pomdog/pomdog.hpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 21 | 2015-04-12T20:45:11.000Z | 2022-01-14T20:50:16.000Z | // Copyright mogemimi. Distributed under the MIT license.
#pragma once
/// Root namespace for the Pomdog game engine.
namespace pomdog {
} // namespace pomdog
#include "pomdog/application/game.hpp"
#include "pomdog/application/game_host.hpp"
#include "pomdog/application/game_window.hpp"
#include "pomdog/application/... | 38.853503 | 67 | 0.812623 | mogemimi |
ac848d83a6dede8aa29e7e0e403c35e2b9d7b5ce | 879 | hpp | C++ | include/utils/platform.hpp | afreakana/cfs-spmv | cdd139c5d80b774708806298868a456ad8df1669 | [
"BSD-3-Clause"
] | 1 | 2021-02-16T12:19:25.000Z | 2021-02-16T12:19:25.000Z | include/utils/platform.hpp | afreakana/cfs-spmv | cdd139c5d80b774708806298868a456ad8df1669 | [
"BSD-3-Clause"
] | null | null | null | include/utils/platform.hpp | afreakana/cfs-spmv | cdd139c5d80b774708806298868a456ad8df1669 | [
"BSD-3-Clause"
] | 1 | 2020-04-30T12:52:48.000Z | 2020-04-30T12:52:48.000Z | #ifndef PLATFORM_HPP
#define PLATFORM_HPP
#include <cmath>
#include "cfs_config.hpp"
#ifdef _INTEL_COMPILER
#define PRAGMA_IVDEP _Pragma("ivdep")
#else
#define PRAGMA_IVDEP _Pragma("GCC ivdep")
//#define PRAGMA_IVDEP
#endif
namespace cfs {
namespace util {
using namespace std;
enum class Platform { cpu };
enum cl... | 20.44186 | 73 | 0.688282 | afreakana |
ac8574ba1f8f6017a639557901393ab589ca2519 | 918 | cpp | C++ | LuoguCodes/CF980B.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/CF980B.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/CF980B.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | #include <cstdio>
#include <string>
#include <iostream>
#include <algorithm>
const int kMaxN = 99;
char map[4 + 5][kMaxN + 5];
int main()
{
for (int i = 0; i < 9; ++i)
for (int j = 0; j < 99 + 5; ++j)
map[i][j] = ';.';;
int n, k;
std::cin >> n >> k;
if (k == 0)
{
std::cout << "YES" << std::endl;
for (... | 17 | 48 | 0.400871 | Anguei |
ac8631435d960d1bee2d98002a8909bba8a22693 | 13,119 | cc | C++ | Digit_Example/opt_two_step/gen/opt/J_u_rightToeHeight_digit.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Digit_Example/opt_two_step/gen/opt/J_u_rightToeHeight_digit.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Digit_Example/opt_two_step/gen/opt/J_u_rightToeHeight_digit.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | /*
* Automatically Generated from Mathematica.
* Fri 5 Nov 2021 16:30:17 GMT-04:00
*/
#ifdef MATLAB_MEX_FILE
#include <stdexcept>
#include <cmath>
#include<math.h>
/**
* Copied from Wolfram Mathematica C Definitions file mdefs.hpp
* Changed marcos to inline functions (Eric Cousineau)
*/
inline double Power(doubl... | 22.311224 | 122 | 0.650659 | prem-chand |
ac87d1e1be13ef149210fbd942410e7b7c7e384f | 2,521 | cpp | C++ | src/api/pipy.cpp | keveinliu/pipy | 9a03d33631c8aa8eee2f5acf9aa4d19fcc682b9a | [
"BSL-1.0"
] | 1 | 2021-12-02T02:41:30.000Z | 2021-12-02T02:41:30.000Z | src/api/pipy.cpp | keveinliu/pipy | 9a03d33631c8aa8eee2f5acf9aa4d19fcc682b9a | [
"BSL-1.0"
] | null | null | null | src/api/pipy.cpp | keveinliu/pipy | 9a03d33631c8aa8eee2f5acf9aa4d19fcc682b9a | [
"BSL-1.0"
] | null | null | null | /*
* Copyright (c) 2019 by flomesh.io
*
* Unless prior written consent has been obtained from the copyright
* owner, the following shall not be allowed.
*
* 1. The distribution of any source codes, header files, make files,
* or libraries of the software.
*
* 2. Disclosure of any source codes pertaini... | 29.658824 | 77 | 0.676716 | keveinliu |
12c2663764bf2f911c51e7c31ef0d53add7afc91 | 1,884 | cpp | C++ | Game/Source/Game/src/MY_Scene_MenuBase.cpp | SweetheartSquad/GameJam2016 | e5787a6521add448fde8182ada0bce250ba831ea | [
"MIT"
] | null | null | null | Game/Source/Game/src/MY_Scene_MenuBase.cpp | SweetheartSquad/GameJam2016 | e5787a6521add448fde8182ada0bce250ba831ea | [
"MIT"
] | null | null | null | Game/Source/Game/src/MY_Scene_MenuBase.cpp | SweetheartSquad/GameJam2016 | e5787a6521add448fde8182ada0bce250ba831ea | [
"MIT"
] | null | null | null | #pragma once
#include <MY_Scene_MenuBase.h>
#include <RenderSurface.h>
#include <StandardFrameBuffer.h>
MY_Scene_MenuBase::MY_Scene_MenuBase(Game * _game) :
MY_Scene_Base(_game),
screenSurfaceShader(new Shader("assets/RenderSurface_2", false, true)),
screenSurface(new RenderSurface(screenSurfaceShader)),
screenF... | 34.888889 | 116 | 0.778662 | SweetheartSquad |
12c4d966933ab0e5976f87e85c8ebbf1f4f5303f | 4,116 | hpp | C++ | jni/Player.hpp | kaitokidi/androidSpaceTongue | 0c839dd92fe6393fa095735b08cb8966c771c36a | [
"MIT"
] | null | null | null | jni/Player.hpp | kaitokidi/androidSpaceTongue | 0c839dd92fe6393fa095735b08cb8966c771c36a | [
"MIT"
] | null | null | null | jni/Player.hpp | kaitokidi/androidSpaceTongue | 0c839dd92fe6393fa095735b08cb8966c771c36a | [
"MIT"
] | null | null | null | #ifndef PLAYER_HPP
#define PLAYER_HPP
#include "utils.hpp"
class Player {
public:
sf::SoundBuffer expbuf;
sf::Texture ship;
Player() :
pos(sf::Vector2f(0,0)), speed(sf::Vector2f(0,0))
{
expbuf.loadFromFile("res/explos.ogg");
expl.setBuffer(expbuf);
expl.setVolume(100);
alive = true;
spri... | 20.683417 | 98 | 0.654276 | kaitokidi |
12cc90aa410589156f8780d3316bea673f55b192 | 22,105 | cpp | C++ | cocos2d-x-2.2/samples/Cpp/TestCpp/Classes/ExtensionsTest/CocoStudioSceneTest/SceneEditorTest.cpp | centrallydecentralized/ufo | 29e8f9ce4ce92635ed22f8a051c917cfe6e0313d | [
"BSD-3-Clause"
] | 58 | 2015-01-05T04:40:48.000Z | 2021-12-17T06:01:28.000Z | cocos2d-x-2.2/samples/Cpp/TestCpp/Classes/ExtensionsTest/CocoStudioSceneTest/SceneEditorTest.cpp | centrallydecentralized/ufo | 29e8f9ce4ce92635ed22f8a051c917cfe6e0313d | [
"BSD-3-Clause"
] | null | null | null | cocos2d-x-2.2/samples/Cpp/TestCpp/Classes/ExtensionsTest/CocoStudioSceneTest/SceneEditorTest.cpp | centrallydecentralized/ufo | 29e8f9ce4ce92635ed22f8a051c917cfe6e0313d | [
"BSD-3-Clause"
] | 46 | 2015-01-03T06:20:54.000Z | 2020-04-18T13:32:52.000Z |
#include "cocos-ext.h"
#include "../ExtensionsTest.h"
#include "SceneEditorTest.h"
#include "TriggerCode/EventDef.h"
#include "../../testResource.h"
using namespace cocos2d;
using namespace cocos2d::extension;
using namespace cocos2d::ui;
CCLayer *Next();
CCLayer *Back();
CCLayer *Restart();
static i... | 24.977401 | 176 | 0.688803 | centrallydecentralized |
12ccb19ceb3c1569112a3e7b2c3147bd87d652aa | 12,812 | cpp | C++ | src/windows/Undo.cpp | hhyyrylainen/DualViewPP | 1fb4a1db85a8509342e16d68c75d4ec7721ced9e | [
"MIT"
] | null | null | null | src/windows/Undo.cpp | hhyyrylainen/DualViewPP | 1fb4a1db85a8509342e16d68c75d4ec7721ced9e | [
"MIT"
] | null | null | null | src/windows/Undo.cpp | hhyyrylainen/DualViewPP | 1fb4a1db85a8509342e16d68c75d4ec7721ced9e | [
"MIT"
] | null | null | null | // ------------------------------------ //
#include "Undo.h"
#include "resources/DatabaseAction.h"
#include "Database.h"
#include "DualView.h"
#include "Settings.h"
using namespace DV;
// ------------------------------------ //
UndoWindow::UndoWindow() :
ClearHistory("Clear History"), HistorySizeLabel("History i... | 29.934579 | 94 | 0.659694 | hhyyrylainen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.