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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ec3c302a9b781d881f999abc27cb833669a303a1 | 3,524 | cpp | C++ | oneflow/core/functional/impl/nn_functor.cpp | qqsun8819/oneflow | b61e07b3406cc5c2d71f3d5e8b0f4de9b3fb9e40 | [
"Apache-2.0"
] | null | null | null | oneflow/core/functional/impl/nn_functor.cpp | qqsun8819/oneflow | b61e07b3406cc5c2d71f3d5e8b0f4de9b3fb9e40 | [
"Apache-2.0"
] | null | null | null | oneflow/core/functional/impl/nn_functor.cpp | qqsun8819/oneflow | b61e07b3406cc5c2d71f3d5e8b0f4de9b3fb9e40 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020 The OneFlow 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-2.0
Unless required by applicable law or agre... | 39.595506 | 99 | 0.553916 | qqsun8819 |
ec418007c8e1640dbe12df384e7384857bc93fe7 | 592 | hpp | C++ | SampleProject/GameLogic.hpp | i0r/i0rTech | c74b327345e6e9e1a08c6b5631e84383431f2661 | [
"BSD-3-Clause"
] | null | null | null | SampleProject/GameLogic.hpp | i0r/i0rTech | c74b327345e6e9e1a08c6b5631e84383431f2661 | [
"BSD-3-Clause"
] | null | null | null | SampleProject/GameLogic.hpp | i0r/i0rTech | c74b327345e6e9e1a08c6b5631e84383431f2661 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <i0rGame/IGameLogic.hpp>
class GameLogic : public IGameLogic {
DECLARE_MEMBER( private, renderable_t*, MouseCursor )
DECLARE_MEMBER( private, renderable_t*, MouseDecal )
DECLARE_MEMBER( private, Mesh*, ActiveAsset ) // selected asset
public:
explicit GameLogic() ;
~GameLogic() ;... | 24.666667 | 83 | 0.72973 | i0r |
ec44300edd71614eed5c98e1bead39250f917600 | 7,340 | cpp | C++ | samples/mkl/inverse/matrix_inverse_scalapack.cpp | josephwinston/icnc | 3f6b7c7dab7ae37d86d40d375f51ed5181ef05f4 | [
"BSD-3-Clause"
] | 112 | 2015-01-07T09:45:55.000Z | 2021-12-27T23:45:06.000Z | samples/mkl/inverse/matrix_inverse_scalapack.cpp | josephwinston/icnc | 3f6b7c7dab7ae37d86d40d375f51ed5181ef05f4 | [
"BSD-3-Clause"
] | 14 | 2015-03-17T14:20:39.000Z | 2018-12-04T15:24:16.000Z | samples/mkl/inverse/matrix_inverse_scalapack.cpp | josephwinston/icnc | 3f6b7c7dab7ae37d86d40d375f51ed5181ef05f4 | [
"BSD-3-Clause"
] | 27 | 2015-01-07T09:04:54.000Z | 2021-12-23T07:40:57.000Z | //********************************************************************************
// Copyright (c) 2007-2014 Intel Corporation. All rights reserved. **
// **
// Redistribution and use in source and binary forms, with or without ... | 36.7 | 90 | 0.540463 | josephwinston |
ec44fb84b41c80d3f2ca59f85264ba11aa3fc841 | 1,072 | cpp | C++ | Codility_CountFactors.cpp | CharlieGearsTech/Codility | b0c4355eb68f05f24390075e3fe2fe555d40b6b9 | [
"MIT"
] | 1 | 2021-01-31T22:59:59.000Z | 2021-01-31T22:59:59.000Z | Codility_CountFactors.cpp | CharlieGearsTech/Codility | b0c4355eb68f05f24390075e3fe2fe555d40b6b9 | [
"MIT"
] | null | null | null | Codility_CountFactors.cpp | CharlieGearsTech/Codility | b0c4355eb68f05f24390075e3fe2fe555d40b6b9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <assert.h>
#include <math.h>
#include <vector>
#include <algorithm>
#include <numeric>
#include <map>
#include <deque>
#include <stdlib.h>
#include <string>
using namespace std;
int solution(int N)
{
size_t i=1u;
size_t result=0u;
if(2147483647 == N)
return 2;
w... | 14.684932 | 26 | 0.541045 | CharlieGearsTech |
ec49a2fb150366998efe346c96a3da0efedfd82d | 4,987 | hh | C++ | dune/gdt/tests/linearelliptic/problems/interface.hh | ftalbrecht/dune-gdt | 574bc4a3b28d2a6a6195a6b4df6727c61f0d73c9 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:12:08.000Z | 2020-02-08T04:12:08.000Z | dune/gdt/tests/linearelliptic/problems/interface.hh | dune-community/dune-gdt-archive | 08c0167b2761f8263514189be2dcdf0e21a055dc | [
"BSD-2-Clause"
] | null | null | null | dune/gdt/tests/linearelliptic/problems/interface.hh | dune-community/dune-gdt-archive | 08c0167b2761f8263514189be2dcdf0e21a055dc | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:12:11.000Z | 2020-02-08T04:12:11.000Z | // This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_TESTS_LINEARELLIPTIC_PROBLEMS_INTERFACE_HH
#define DUNE_GDT_TESTS_LINEARELLIPTIC_PROBL... | 38.960938 | 120 | 0.704432 | ftalbrecht |
ec4b1f379c0ad5af0ddc1871fd9f6afbdc85f206 | 1,327 | cc | C++ | src/comm/SysStatusManager.cc | NejatRmz/qgroundcontrol | 225528c7c052d642df5e67eb9150af98a0684020 | [
"Apache-2.0"
] | 6 | 2019-04-30T03:28:25.000Z | 2021-03-23T23:58:33.000Z | src/comm/SysStatusManager.cc | NejatRmz/qgroundcontrol | 225528c7c052d642df5e67eb9150af98a0684020 | [
"Apache-2.0"
] | null | null | null | src/comm/SysStatusManager.cc | NejatRmz/qgroundcontrol | 225528c7c052d642df5e67eb9150af98a0684020 | [
"Apache-2.0"
] | 1 | 2019-06-05T08:17:33.000Z | 2019-06-05T08:17:33.000Z | /****************************************************************************
*
* Copyright (C) 2018 Pinecone Inc. All rights reserved.
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
******************************************************... | 27.645833 | 128 | 0.566692 | NejatRmz |
ec4e12251df21a6dcbc1a448676dab4968a414e3 | 10,397 | cxx | C++ | StRoot/StiUtilities/StiDebug.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | StRoot/StiUtilities/StiDebug.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | StRoot/StiUtilities/StiDebug.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include <map>
#include <string>
#include "TClass.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TCanvas.h"
#include "TGraph.h"
#include "TSystem.h"
#include "TString.h"
#include "StiDebug.h"
#include "TMath.h"
#include "TROOT.h"
#include "... | 29.123249 | 81 | 0.623834 | xiaohaijin |
ec4ee5b26ec0e6b270d6a1e872ffdbd1c640347e | 740 | cpp | C++ | AgoraClrLibrary/AgoraClrLibrary/AgoraClrPacketObserver.cpp | wulaoh/AgoraCLI | 217d3b46b2ca273057b425a6bac2ebab440b3195 | [
"MIT"
] | 45 | 2017-03-27T15:17:40.000Z | 2021-09-09T12:21:41.000Z | AgoraClrLibrary/AgoraClrLibrary/AgoraClrPacketObserver.cpp | wulaoh/AgoraCLI | 217d3b46b2ca273057b425a6bac2ebab440b3195 | [
"MIT"
] | 47 | 2017-03-07T08:32:55.000Z | 2021-01-08T09:32:31.000Z | AgoraClrLibrary/AgoraClrLibrary/AgoraClrPacketObserver.cpp | wulaoh/AgoraCLI | 217d3b46b2ca273057b425a6bac2ebab440b3195 | [
"MIT"
] | 21 | 2017-03-16T07:05:25.000Z | 2021-09-25T10:00:29.000Z | #include "stdafx.h"
#include "AgoraClrPacketObserver.h"
using namespace AgoraClrLibrary;
bool AgoraClrPacketObserver::onSendAudioPacket(Packet & packet)
{
if (onSendAudioPacketEvent) return onSendAudioPacketEvent(packet);
return true;
}
bool AgoraClrPacketObserver::onSendVideoPacket(Packet & packet)
{
... | 25.517241 | 74 | 0.787838 | wulaoh |
ec4faca9b3c46bb9fc9f559e4225053471bf67ba | 892 | cpp | C++ | oi/homework/2015-10-17/10-2/main.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | 3 | 2018-08-30T09:43:20.000Z | 2019-12-03T04:53:43.000Z | oi/homework/2015-10-17/10-2/main.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | oi/homework/2015-10-17/10-2/main.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | #include <cmath>
#include <iostream>
#include <string>
using namespace std;
int Find(const string &pat, int n);
int ComputeEnd(int n);
int main(/*int argc, char *argv[]*/) {
ios::sync_with_stdio(false);
int n;
string pat;
cin >> n >> pat;
cout << Find(pat, n) << endl;
return 0;
} // functi... | 18.978723 | 80 | 0.46861 | Riteme |
ec51c7bf7434a78333c922845e685c01dcb6f727 | 23,702 | hpp | C++ | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/glue_times_meat.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/glue_times_meat.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/glue_times_meat.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | // Copyright (C) 2008-2012 NICTA (www.nicta.com.au)
// Copyright (C) 2008-2012 Conrad Sanderson
//
// This file is part of the Armadillo C++ library.
// It is provided without any warranty of fitness
// for any purpose. You can redistribute this file
// and/or modify it under the terms of the GNU
// Lesser General Pub... | 27.43287 | 174 | 0.573201 | HerrFroehlich |
ec540c926c5cec8c050648fa3fe96507e5f5d092 | 9,960 | cpp | C++ | homework/Nakhodnov/07/CalculatorV5.cpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | 10 | 2017-09-21T15:17:33.000Z | 2021-01-11T13:11:55.000Z | homework/Nakhodnov/06/CalculatorV4.cpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | null | null | null | homework/Nakhodnov/06/CalculatorV4.cpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | 22 | 2017-09-21T15:45:08.000Z | 2019-02-21T19:15:25.000Z | #include <iostream>
#include <unordered_map>
#include <string>
#include <limits>
#include <cmath>
using namespace std;
template <class T>
class NumericParser {};
template <>
class NumericParser<int> {
private:
static constexpr int min = numeric_limits<int>::min();
static constexpr int max = ... | 27.287671 | 125 | 0.479217 | mtrempoltsev |
ec54b1666634717e35592d42e0b4c17a17789acf | 887 | cpp | C++ | combinatorial_1/mesa.cpp | eder-matheus/programming_challenges | 9d318bf5b8df18f732c07e60aa72b302ea887419 | [
"BSD-3-Clause"
] | null | null | null | combinatorial_1/mesa.cpp | eder-matheus/programming_challenges | 9d318bf5b8df18f732c07e60aa72b302ea887419 | [
"BSD-3-Clause"
] | null | null | null | combinatorial_1/mesa.cpp | eder-matheus/programming_challenges | 9d318bf5b8df18f732c07e60aa72b302ea887419 | [
"BSD-3-Clause"
] | 1 | 2021-08-24T17:18:54.000Z | 2021-08-24T17:18:54.000Z | // a mesa quadrada de ines venezuela - uri 2069
#include <iostream>
#include <cmath>
#define MAX 100000
unsigned long long fatoracao(unsigned long long n1, unsigned long long n2) {
unsigned long long f = 1;
unsigned long long n = std::max(n1, n2);
for (int i = 2; i * i <= n; i++) {
int e1 = 0;
if (n1 %... | 16.735849 | 76 | 0.496054 | eder-matheus |
ec54c7b5ae55f098efdb06447f041efc4e199487 | 22 | cpp | C++ | core/protocol.cpp | Rod-Lin/Ink | 527b258afc35b3d2a723d198c54cfb57bdaac127 | [
"MIT"
] | 1 | 2016-01-01T02:23:55.000Z | 2016-01-01T02:23:55.000Z | core/protocol.cpp | Byrd-Lin/Ink | 527b258afc35b3d2a723d198c54cfb57bdaac127 | [
"MIT"
] | null | null | null | core/protocol.cpp | Byrd-Lin/Ink | 527b258afc35b3d2a723d198c54cfb57bdaac127 | [
"MIT"
] | null | null | null | #include "protocol.h"
| 11 | 21 | 0.727273 | Rod-Lin |
ec57356aaa0d32741f95f6c33debf25d354e2d58 | 2,781 | hpp | C++ | include/ph_concepts/Type.hpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | include/ph_concepts/Type.hpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | include/ph_concepts/Type.hpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | //#pragma once
//
//#include "common.hpp"
//#include "concepts.hpp"
//
//
//
//template <typename T>
//struct Max{};
//
//
//template <>
//struct Max <char>
//{
// cexpr char max = CHAR_MAX;
//};
//
//template <>
//struct Max <signed char>
//{
// cexpr signed char max = SCHAR_MAX;
//};
//
//template <>
//struct M... | 13.767327 | 64 | 0.547645 | phiwen96 |
ec5807aee6cabaf83e7c83db40cd985c9421987a | 385 | cpp | C++ | Source/FEngine/ActorManager/Components/TransformComponent.cpp | fakhirsh/cyclicshift | d255a3cc82703decdbbd477df3fa14791cd528d5 | [
"MIT"
] | 1 | 2019-11-12T17:47:23.000Z | 2019-11-12T17:47:23.000Z | Source/FEngine/ActorManager/Components/TransformComponent.cpp | fakhirsh/cyclicshift | d255a3cc82703decdbbd477df3fa14791cd528d5 | [
"MIT"
] | 31 | 2019-10-25T11:28:21.000Z | 2019-12-10T16:57:30.000Z | Source/FEngine/ActorManager/Components/TransformComponent.cpp | fakhirsh/cyclicshift | d255a3cc82703decdbbd477df3fa14791cd528d5 | [
"MIT"
] | null | null | null | #include "TransformComponent.hpp"
namespace FEngine{
TransformComponent::TransformComponent(){
Init();
}
TransformComponent::~TransformComponent(){
}
bool TransformComponent::Init(){
x = y = z = angle = -1.0f;
this->SetType("transform");
return true;
}
... | 16.041667 | 46 | 0.576623 | fakhirsh |
ec5ee427ade3ffee203bbff2ae7f9da10c5f1950 | 14,405 | cpp | C++ | src/vm/builtins/std.cpp | mbeckem/tiro | b3d729fce46243f25119767c412c6db234c2d938 | [
"MIT"
] | 10 | 2020-01-23T20:41:19.000Z | 2021-12-28T20:24:44.000Z | src/vm/builtins/std.cpp | mbeckem/tiro | b3d729fce46243f25119767c412c6db234c2d938 | [
"MIT"
] | 22 | 2021-03-25T16:22:08.000Z | 2022-03-17T12:50:38.000Z | src/vm/builtins/std.cpp | mbeckem/tiro | b3d729fce46243f25119767c412c6db234c2d938 | [
"MIT"
] | null | null | null | #include "vm/builtins/modules.hpp"
#include "common/memory/ref_counted.hpp"
#include "vm/builtins/dump.hpp"
#include "vm/builtins/module_builder.hpp"
#include "vm/context.hpp"
#include "vm/error_utils.hpp"
#include "vm/math.hpp"
#include "vm/object_support/type_desc.hpp"
#include "vm/objects/buffer.hpp"
#include "vm/o... | 35.744417 | 98 | 0.687053 | mbeckem |
ec62dcb411a8947bb04eb3b32a22b9f60ac160db | 3,268 | cpp | C++ | fluorender/FluoRender/FLIVR/Point.cpp | sandorbx/VVD_Viewer | ad21f4c8700c81d89e8973a4ecacb777ee1d0f37 | [
"MIT"
] | 20 | 2016-06-22T04:14:55.000Z | 2022-03-21T15:06:48.000Z | fluorender/FluoRender/FLIVR/Point.cpp | sandorbx/VVD_Viewer | ad21f4c8700c81d89e8973a4ecacb777ee1d0f37 | [
"MIT"
] | 5 | 2019-06-06T18:47:10.000Z | 2022-03-31T14:05:18.000Z | fluorender/FluoRender/FLIVR/Point.cpp | sandorbx/VVD_Viewer | ad21f4c8700c81d89e8973a4ecacb777ee1d0f37 | [
"MIT"
] | 5 | 2017-07-11T22:28:45.000Z | 2021-12-03T22:21:08.000Z | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2004 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to d... | 23.014085 | 75 | 0.647491 | sandorbx |
ec69b8a067fca2a9271971601d5e6fac59fe6282 | 246,277 | cpp | C++ | proteus/cTwophaseDarcyCoefficientsModule.cpp | robertsawko/proteus | 6f1e4c2ca1af85a906b35a5162430006f0343861 | [
"NASA-1.3"
] | null | null | null | proteus/cTwophaseDarcyCoefficientsModule.cpp | robertsawko/proteus | 6f1e4c2ca1af85a906b35a5162430006f0343861 | [
"NASA-1.3"
] | null | null | null | proteus/cTwophaseDarcyCoefficientsModule.cpp | robertsawko/proteus | 6f1e4c2ca1af85a906b35a5162430006f0343861 | [
"NASA-1.3"
] | null | null | null | #include "Python.h"
#include "numpy/arrayobject.h"
#include "cTwophaseDarcyCoefficientsModule.h"
#include <iostream>
#define ND(p) ((PyArrayObject *)p)->nd
#define SHAPE(p) ((PyArrayObject *)p)->dimensions
#define DDATA(p) ((double *) (((PyArrayObject *)p)->data))
#define IDATA(p) ((int *) (((PyArrayObject *)p)->data))... | 31.930118 | 219 | 0.456705 | robertsawko |
ec6b6fa91acc39acac5ffeeb7da1f900f8a990ad | 2,170 | hpp | C++ | src/mods/BossDanteSetup.hpp | praydog/dx11_mod_base | cfbce80313b782813a959c2d2ceb69705643a6cd | [
"MIT"
] | 1 | 2022-03-26T22:57:55.000Z | 2022-03-26T22:57:55.000Z | src/mods/BossDanteSetup.hpp | praydog/dx11_mod_base | cfbce80313b782813a959c2d2ceb69705643a6cd | [
"MIT"
] | null | null | null | src/mods/BossDanteSetup.hpp | praydog/dx11_mod_base | cfbce80313b782813a959c2d2ceb69705643a6cd | [
"MIT"
] | null | null | null | #pragma once
#include "Mod.hpp"
class BossDanteSetup : public Mod
{
public:
inline static bool cheaton = false;
inline static bool isDtRegenEnabled = false;
inline static bool isSdtTransformSetup = false;
inline static bool isDtsTimerSkip = false;
inline static bool isCustomDtDuration = false;
inline static bool... | 28.181818 | 98 | 0.767742 | praydog |
ec6cf4df23bad0b2f55e936f77f918cc20824ed9 | 1,048 | cpp | C++ | test/core/strong_type.cpp | lifting-bits/gap | 971ac626e49e5508f6b488661120bd8cacbc0e72 | [
"Apache-2.0"
] | 2 | 2021-12-16T06:43:46.000Z | 2022-01-05T14:30:58.000Z | test/core/strong_type.cpp | lifting-bits/gap | 971ac626e49e5508f6b488661120bd8cacbc0e72 | [
"Apache-2.0"
] | 4 | 2022-01-05T13:49:36.000Z | 2022-02-22T22:05:35.000Z | test/core/strong_type.cpp | lifting-bits/gap | 971ac626e49e5508f6b488661120bd8cacbc0e72 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2021-present, Trail of Bits, Inc.
#include <compare> // for operator<, strong_ordering
#include <doctest/doctest.h>
#include <gap/core/strong_type.hpp> // for strong_type
namespace gap::test
{
struct int_tag {};
using tagged_int = gap::strong_type< int, int_tag >;
static_assert(tagged_in... | 26.871795 | 94 | 0.646947 | lifting-bits |
ec6ee35ccf70a4c625caadc8f2655fac31bdc530 | 1,236 | cpp | C++ | minorGems/util/test/testSnprintf.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | 1 | 2020-01-16T00:07:11.000Z | 2020-01-16T00:07:11.000Z | minorGems/util/test/testSnprintf.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | null | null | null | minorGems/util/test/testSnprintf.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | 2 | 2019-09-17T12:08:20.000Z | 2020-09-26T00:54:48.000Z | /*
* Modification History
*
* 2004-January-15 Jason Rohrer
* Created.
*/
/**
* A test program for snprintf behavior.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
int numStrings = 3;
// test strings of length 3, 4, and 5
const char *testStrings[3] = { "tst",... | 20.949153 | 71 | 0.511327 | PhilipLudington |
ec700f8a7f112fd0c5e814da27e08dd3f4f5da5e | 511 | cc | C++ | solutions/codeforces/contest/1475/b.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 4 | 2020-11-07T14:38:02.000Z | 2022-01-03T19:02:36.000Z | solutions/codeforces/contest/1475/b.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 1 | 2019-04-17T06:55:14.000Z | 2019-04-17T06:55:14.000Z | solutions/codeforces/contest/1475/b.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define debug(...) 0
#ifdef LOCAL
#include "../../_library/cc/debug.h"
#endif
// #define FILE
int main() {
cin.tie(nullptr)->sync_with_stdio(false);
#if defined(FILE) && !defined(LOCAL)
freopen(FILE ".in", "r", stdin), freopen(FILE ".out", "w", stdout);
#endif
int T... | 17.62069 | 69 | 0.522505 | zwliew |
ec71b5f27ef3d76a4bba21074591b9a6a7f11586 | 2,999 | cpp | C++ | part3/Task3.1/Task 3.1.cpp | Matvey1703/Homework | 4599a5a5a1bdaeb819eee13a6233c72ce544c179 | [
"Apache-2.0"
] | 1 | 2020-09-30T17:17:41.000Z | 2020-09-30T17:17:41.000Z | part3/Task3.1/Task 3.1.cpp | Matvey1703/Homework | 4599a5a5a1bdaeb819eee13a6233c72ce544c179 | [
"Apache-2.0"
] | null | null | null | part3/Task3.1/Task 3.1.cpp | Matvey1703/Homework | 4599a5a5a1bdaeb819eee13a6233c72ce544c179 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
void swap(int* a, int* b)
{
int tmp = *a;
*a = *b;
*b = tmp;
}
void insertionSort(int* array, int lo, int hi)
{
for (int i = lo; i <= hi; i++)
{
for (int j = i; j > lo && array[j - 1] > array[j]; j--)
{
swap(&array[j - 1], &array[j]);
}
}
}
vo... | 19.224359 | 187 | 0.598533 | Matvey1703 |
ec73c11132863f6e458700d196db74819b172f59 | 3,092 | cpp | C++ | src/DateHeaderView.cpp | fritzvd/Calendar | 3c8e458d9a7e8df04e2976a3879e1af56f384959 | [
"MIT"
] | null | null | null | src/DateHeaderView.cpp | fritzvd/Calendar | 3c8e458d9a7e8df04e2976a3879e1af56f384959 | [
"MIT"
] | null | null | null | src/DateHeaderView.cpp | fritzvd/Calendar | 3c8e458d9a7e8df04e2976a3879e1af56f384959 | [
"MIT"
] | null | null | null | /*
* Copyright 2017 Akshay Agarwal, agarwal.akshay.akshay8@gmail.com
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "DateHeaderView.h"
#include <DateFormat.h>
#include <Font.h>
#include <LayoutBuilder.h>
#include <LocaleRoster.h>
#include <StringView.h>
#include "MainView.h"
... | 24.346457 | 71 | 0.72348 | fritzvd |
3f435841cbaed1c75ef19fde534d0bc71eb38806 | 2,786 | cpp | C++ | Source/Client/IM-Client/IMClient/mcticker.cpp | InstantBusinessNetwork/IBN | bbcf47de56bfc52049eeb2e46677642a28f38825 | [
"MIT"
] | 21 | 2015-07-22T15:22:41.000Z | 2021-03-23T05:40:44.000Z | Source/Client/IM-Client/IMClient/mcticker.cpp | InstantBusinessNetwork/IBN | bbcf47de56bfc52049eeb2e46677642a28f38825 | [
"MIT"
] | 11 | 2015-10-19T07:54:10.000Z | 2021-09-01T08:47:56.000Z | Source/Client/IM-Client/IMClient/mcticker.cpp | InstantBusinessNetwork/IBN | bbcf47de56bfc52049eeb2e46677642a28f38825 | [
"MIT"
] | 16 | 2015-07-22T15:23:09.000Z | 2022-01-17T10:49:43.000Z | // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
#include "stdafx.h"
#include "mcticker.h"
///////////////////////////////////... | 22.836066 | 83 | 0.632807 | InstantBusinessNetwork |
3f46c03332a76897b9682da106cc2fc0ca92c674 | 5,188 | cpp | C++ | ValueEditor/Vec3ViewItem.cpp | yoann01/FabricUI | d4d24f25245b8ccd2d206aded2b6c5f2aca09155 | [
"BSD-3-Clause"
] | null | null | null | ValueEditor/Vec3ViewItem.cpp | yoann01/FabricUI | d4d24f25245b8ccd2d206aded2b6c5f2aca09155 | [
"BSD-3-Clause"
] | null | null | null | ValueEditor/Vec3ViewItem.cpp | yoann01/FabricUI | d4d24f25245b8ccd2d206aded2b6c5f2aca09155 | [
"BSD-3-Clause"
] | null | null | null | //
// Copyright (c) 2010-2017 Fabric Software Inc. All rights reserved.
//
#include "QVariantRTVal.h"
#include "Vec3ViewItem.h"
#include "ViewItemFactory.h"
#include "VEDoubleSpinBox.h"
#include <assert.h>
#include <FabricUI/Util/UIRange.h>
#include <QVariant>
#include <QBoxLayout>
#include <QLineEdit>
#include <QFra... | 24.587678 | 90 | 0.673863 | yoann01 |
3f4a0201e3a5e08a570651d5d1e18fbebb79ef71 | 18,472 | cc | C++ | TFM/click-2.0.1/elements/ipsec/sha1_impl.cc | wangyang2013/TFM | cabca56229a7e4dafc76da8d631980fc453c9493 | [
"BSD-3-Clause"
] | 3 | 2018-04-14T14:43:31.000Z | 2019-12-06T13:09:58.000Z | TFM/click-2.0.1/elements/ipsec/sha1_impl.cc | nfvproject/TFM | cabca56229a7e4dafc76da8d631980fc453c9493 | [
"BSD-3-Clause"
] | null | null | null | TFM/click-2.0.1/elements/ipsec/sha1_impl.cc | nfvproject/TFM | cabca56229a7e4dafc76da8d631980fc453c9493 | [
"BSD-3-Clause"
] | null | null | null | /* crypto/sha/sha1dgst.c */
/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non... | 28.115677 | 80 | 0.545366 | wangyang2013 |
3f57a41efaa3ebd1e327b77a853c80ac1be2bf9f | 3,760 | cpp | C++ | code_blocks/dictionary_file_to_array_cpp/main.cpp | NewYaroslav/xquotes_history | 6a72a3cf88f0d00c42aa735cc84327806257e422 | [
"MIT"
] | 4 | 2019-09-05T20:49:38.000Z | 2021-11-17T09:44:22.000Z | code_blocks/dictionary_file_to_array_cpp/main.cpp | NewYaroslav/xquotes_history | 6a72a3cf88f0d00c42aa735cc84327806257e422 | [
"MIT"
] | 2 | 2020-04-10T20:00:56.000Z | 2020-05-08T03:47:55.000Z | code_blocks/dictionary_file_to_array_cpp/main.cpp | NewYaroslav/xquotes_history | 6a72a3cf88f0d00c42aa735cc84327806257e422 | [
"MIT"
] | 3 | 2019-11-02T19:57:11.000Z | 2021-05-13T20:12:59.000Z | #include <iostream>
#include "banana_filesystem.hpp"
#include <cctype>
#include <algorithm>
using namespace std;
std::string convert_hex_to_string(unsigned char value) {
char hex_string[32] = {};
sprintf(hex_string,"0x%.2X", value);
return std::string(hex_string);
}
std::string str_toupper(std::string s)... | 37.6 | 131 | 0.547606 | NewYaroslav |
3f57feb450d0c5115df0fd6c0bcd646835c252f1 | 2,306 | cpp | C++ | codeforces/617div3/C1.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | codeforces/617div3/C1.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | codeforces/617div3/C1.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define fori(i,a,b) for (long int i = a; i <= b ; ++i)
#define ford(i,a,b) for(long int i = a;i >= b ; --i)
#define mk make_pair
#define mod 1000000007
#define pb push_back
#define ll long long
#define rnd mt19937_64 rng(chrono::high_resolution_clock::now().time_since_epoch... | 20.22807 | 91 | 0.43235 | xenowits |
3f5b2d4d29fe3030eaec23a832260507b6337802 | 9,407 | cpp | C++ | src/OpenAnalysis/DataFlow/CallGraphDFSolver.cpp | sriharikrishna/OpenAnalysis | 0d0c3819bd091cc0c83db5555cc20bfbc07ecbdc | [
"BSD-3-Clause"
] | null | null | null | src/OpenAnalysis/DataFlow/CallGraphDFSolver.cpp | sriharikrishna/OpenAnalysis | 0d0c3819bd091cc0c83db5555cc20bfbc07ecbdc | [
"BSD-3-Clause"
] | null | null | null | src/OpenAnalysis/DataFlow/CallGraphDFSolver.cpp | sriharikrishna/OpenAnalysis | 0d0c3819bd091cc0c83db5555cc20bfbc07ecbdc | [
"BSD-3-Clause"
] | null | null | null | /*! \file
\brief Definition of a dataflow algorithm for CallGraphs
\authors Michelle Strout (Nov 2004)
adapted from John Mellor-Crummey's dsystem
CallGraphFlowInsensitiveDFProblem
\version $Id: CallGraphDFSolver.cpp,v 1.3 2005/06/10 02:32:03 mstrout Exp $
Copyright (c) 2002-2005, Ric... | 34.332117 | 98 | 0.579568 | sriharikrishna |
3f5b7395202ce79abb4ffc5ff5d850670a71832a | 2,252 | hpp | C++ | sdl1/xargon/include/camoto/suppitem.hpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/xargon/include/camoto/suppitem.hpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/xargon/include/camoto/suppitem.hpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | /**
* @file camoto/suppitem.hpp
* @brief Supplemental files required to open other files.
*
* Copyright (C) 2010-2015 Adam Nielsen <malvineous@shikadi.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free ... | 27.13253 | 73 | 0.696714 | pdpdds |
3f6c8824f3b0862fcc040de8fc011e27274ae545 | 1,193 | cpp | C++ | UVa 11221 - Magic square palindromes/sample/sol.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 11221 - Magic square palindromes/sample/sol.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 11221 - Magic square palindromes/sample/sol.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | #include <cstdio>
#include <stack>
#include <cctype>
#include <cmath>
using namespace std;
char s[50000];
int main()
{
int TC, count = 0;
scanf("%d", &TC);
getc(stdin);
while (TC--)
{
count++;
char c = ' ';
int n = 0;
while (scanf("%c", &c), c != '\n')
{
... | 19.883333 | 42 | 0.318525 | tadvi |
3f6e6916ae5607539e65441188751fb7f763cafc | 1,628 | cpp | C++ | LLY/LLY/resource/IndexBuffer.cpp | ooeyusea/GameEngine | 85e7ceef7ddf663f9601a8a8787e29e8e8cdb425 | [
"MIT"
] | 3 | 2015-07-04T03:35:51.000Z | 2017-09-10T08:23:25.000Z | LLY/LLY/resource/IndexBuffer.cpp | ooeyusea/GameEngine | 85e7ceef7ddf663f9601a8a8787e29e8e8cdb425 | [
"MIT"
] | null | null | null | LLY/LLY/resource/IndexBuffer.cpp | ooeyusea/GameEngine | 85e7ceef7ddf663f9601a8a8787e29e8e8cdb425 | [
"MIT"
] | null | null | null | #include "IndexBuffer.h"
#include "VertexBuffer.h"
#include "VertexDescription.h"
#include "../util/FuncUnitl.h"
namespace lly {
IndexBuffer::IndexBuffer()
: _vao(0)
, _vio(0)
, _drawType(DrawType::POINTS)
, _count(0)
{
}
IndexBuffer::~IndexBuffer()
{
if (_vio)
{
glDeleteBuffers(1, &_vio);
_vi... | 19.853659 | 90 | 0.711916 | ooeyusea |
3f6f2131d27c5b0ad42c00490d70b1e723e12bb8 | 1,677 | cpp | C++ | DataStructure/3_Stack/3_1_LinearStack/LinearStack.cpp | objectnf/training-code | 675da96aae95dc10062b38d44ac67dc57301a11e | [
"WTFPL"
] | null | null | null | DataStructure/3_Stack/3_1_LinearStack/LinearStack.cpp | objectnf/training-code | 675da96aae95dc10062b38d44ac67dc57301a11e | [
"WTFPL"
] | null | null | null | DataStructure/3_Stack/3_1_LinearStack/LinearStack.cpp | objectnf/training-code | 675da96aae95dc10062b38d44ac67dc57301a11e | [
"WTFPL"
] | null | null | null | #include "LinearStack.h"
/* 创建 */
Stack* construct_stack()
{
Stack *linearStack = new Stack{{0}, 0};
return linearStack;
}
/* 销毁 */
void destroy_stack(Stack **linearStack)
{
if (linearStack == nullptr || *linearStack == nullptr) {
return;
}
delete *linearStack;
return... | 18.428571 | 61 | 0.554562 | objectnf |
3f71b7b2cd73f8dec8005e0dbe0616a2b6e7fcd1 | 3,960 | cpp | C++ | src/Client.cpp | texus/SpaceInvaders | aa43408e1579208cb6aed7a2af8ab29477447bd6 | [
"Zlib"
] | 1 | 2017-11-27T17:39:12.000Z | 2017-11-27T17:39:12.000Z | src/Client.cpp | texus/SpaceInvaders | aa43408e1579208cb6aed7a2af8ab29477447bd6 | [
"Zlib"
] | null | null | null | src/Client.cpp | texus/SpaceInvaders | aa43408e1579208cb6aed7a2af8ab29477447bd6 | [
"Zlib"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2013 Bruno Van de Velde (vdv_b@tgui.eu)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arisin... | 37.714286 | 126 | 0.507576 | texus |
3f73de2e36464439c9c6dd15f62f61d4c97c5569 | 3,710 | cpp | C++ | Connector/UserList.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | null | null | null | Connector/UserList.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | null | null | null | Connector/UserList.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | 1 | 2022-01-17T09:34:39.000Z | 2022-01-17T09:34:39.000Z | #include "stdhdrs.h"
#include "Server.h"
#include "User.h"
#include "UserList.h"
#include "Log.h"
#include "ProcConnMsg.h"
UserList::UserList(int max_channel_count)
{
init_(max_channel_count);
}
UserList::~UserList()
{
std::vector<channel_info*>::iterator it = vec_channel_info.begin();
std::vector<channel_info*>... | 19.734043 | 77 | 0.695418 | openlastchaos |
3f76f281046daa25566549bc3fdeac6cfa191d54 | 4,962 | cpp | C++ | src/core/animation.cpp | cubic1271/leaps | 492cdcddfc0b3f63b657da94fc4a4303980dd07f | [
"Zlib",
"CC0-1.0",
"MIT"
] | null | null | null | src/core/animation.cpp | cubic1271/leaps | 492cdcddfc0b3f63b657da94fc4a4303980dd07f | [
"Zlib",
"CC0-1.0",
"MIT"
] | null | null | null | src/core/animation.cpp | cubic1271/leaps | 492cdcddfc0b3f63b657da94fc4a4303980dd07f | [
"Zlib",
"CC0-1.0",
"MIT"
] | null | null | null | #include <core/twilight.h>
#include <cmath>
#include <simple2d/simple2d.h>
#include "core/animation.h"
#include "core/resource.h"
#include "core/state.h"
static twilight::AnimationManager* _animation = nullptr;
int twilight::AnimatedSprite::load(S2D_Sprite* sprite, const uint32_t width, const uint32_t height... | 27.414365 | 173 | 0.606207 | cubic1271 |
3f77d4632e2b98ac958a05d26dfadff941a35116 | 5,167 | cpp | C++ | main.cpp | nmalysheva/SSATAN-X | 1a7dcf1b8d3addf2b228109418e8a5a4ad161aae | [
"MIT"
] | null | null | null | main.cpp | nmalysheva/SSATAN-X | 1a7dcf1b8d3addf2b228109418e8a5a4ad161aae | [
"MIT"
] | null | null | null | main.cpp | nmalysheva/SSATAN-X | 1a7dcf1b8d3addf2b228109418e8a5a4ad161aae | [
"MIT"
] | null | null | null | #include <iostream>
#include <chrono>
#include <fstream>
#include <string>
#include "contact_network/ContactNetwork.h"
#include "algorithms/SSA.h"
#include "algorithms/SSATANX.h"
#include "utilities/types.h"
#include "utilities/Settings.h"
void saveInitialStates(nlohmann::ordered_json &output, const ContactNetwork &c... | 33.551948 | 127 | 0.666151 | nmalysheva |
3f7a4fa43639b8c2f96f9f53cb06015d7aca174d | 3,182 | cc | C++ | content/renderer/media/webrtc/webrtc_uma_histograms_unittest.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | content/renderer/media/webrtc/webrtc_uma_histograms_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | content/renderer/media/webrtc/webrtc_uma_histograms_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2014 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 "content/renderer/media/webrtc/webrtc_uma_histograms.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gte... | 37.880952 | 79 | 0.813953 | zipated |
3f7fac708aa99c149751d95398167c92a44ffe3e | 2,999 | hh | C++ | mimosa/flat/flat.hh | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 24 | 2015-01-19T16:38:24.000Z | 2022-01-15T01:25:30.000Z | mimosa/flat/flat.hh | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 2 | 2017-01-07T10:47:06.000Z | 2018-01-16T07:19:57.000Z | mimosa/flat/flat.hh | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 7 | 2015-01-19T16:38:31.000Z | 2020-12-12T19:10:30.000Z | #pragma once
# include <sys/types.h>
# include <sys/stat.h>
# include <fcntl.h>
# include <unistd.h>
# include <string>
# include <cstdint>
# include <cassert>
namespace mimosa
{
namespace flat
{
/**
* @class Flat
*
* This class is an helper to manage memory mapped.
* It is usefull when d... | 25.415254 | 89 | 0.565522 | abique |
3f82f51b08b2c21cc6b39615b7e285c9426f84bc | 1,315 | cpp | C++ | rt/core/point.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/core/point.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/core/point.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | #include <core/assert.h>
#include <core/float4.h>
#include <core/point.h>
#include <core/scalar.h>
#include <core/vector.h>
#include <algorithm>
#include <cmath>
namespace rt
{
Point::Point(const Float4& f4)
: x()
, y()
, z()
{
//assert(std::fabs(f4[3] - 1.f) < rt::epsilon);
if(f4[3] == 0)
{
x = f4[0... | 18.785714 | 80 | 0.556654 | DasNaCl |
3f8385305d24e1f06891371c6aa908593e6be346 | 400 | hpp | C++ | include/Container.hpp | syoch/wiiu-libgu | 6744c46c9522c1a6def23aa613e8b759c50064c4 | [
"MIT"
] | 1 | 2021-02-26T15:49:54.000Z | 2021-02-26T15:49:54.000Z | include/Container.hpp | syoch/wiiu-libgui | 6744c46c9522c1a6def23aa613e8b759c50064c4 | [
"MIT"
] | null | null | null | include/Container.hpp | syoch/wiiu-libgui | 6744c46c9522c1a6def23aa613e8b759c50064c4 | [
"MIT"
] | null | null | null | #pragma once
#ifndef LIBGUI_CONTAINER
#define LIBGUI_CONTAINER
#include <vector>
#include "ContainerBase.hpp"
namespace GUI
{
class Container : public virtual ContainerBase, public virtual WidgetBase
{
public:
Container(ContainerBase &super, int x, int y, int w, int h);
void _draw() overri... | 20 | 77 | 0.67 | syoch |
3f87820263d4e16c0fa71e4d8f09209de1548b69 | 3,059 | cpp | C++ | Source/ThirdParty/ANGLE/src/compiler/VersionGLSL.cpp | VincentWei/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | 6 | 2017-05-31T01:46:45.000Z | 2018-06-12T10:53:30.000Z | Source/ThirdParty/ANGLE/src/compiler/VersionGLSL.cpp | FMSoftCN/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | 2 | 2017-07-25T09:37:22.000Z | 2017-08-04T07:18:56.000Z | Source/ThirdParty/ANGLE/src/compiler/VersionGLSL.cpp | FMSoftCN/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | 2 | 2017-07-17T06:02:42.000Z | 2018-09-19T10:08:38.000Z | //
// Copyright (c) 2002-2010 The ANGLE Project 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 "compiler/VersionGLSL.h"
static const int GLSL_VERSION_110 = 110;
static const int GLSL_VERSION_120 = 120;
// We need to sc... | 28.06422 | 79 | 0.704152 | VincentWei |
3f89ca1dbec954684f1d30bb2898dd4d2377595f | 813 | cpp | C++ | clang/test/SemaTemplate/dependent-typos-recovery.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | clang/test/SemaTemplate/dependent-typos-recovery.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | clang/test/SemaTemplate/dependent-typos-recovery.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | // RUN: %clang_cc1 -fsyntax-only -verify %s
// There should be no extra errors about missing 'template' keywords.
struct B {
template <typename T>
int f(){};
} builder; // expected-note 2{{'builder' declared here}}
auto a = bilder.f<int>(); // expected-error{{undeclared identifier 'bilder'; did you... | 33.875 | 120 | 0.634686 | mkinsner |
3f89fb3847756827fb6267f05e4faf5b67d6dfcb | 8,723 | cc | C++ | gpu/config/gpu_util.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | gpu/config/gpu_util.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | gpu/config/gpu_util.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // 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 "gpu/config/gpu_util.h"
#include <memory>
#include <vector>
#include "base/command_line.h"
#include "base/debug/crash_logging.h"
#include "... | 37.599138 | 80 | 0.719936 | metux |
3f8fc89bab828b99b641295c68067cb9f1f58cec | 1,850 | cpp | C++ | matrix_formula/main.cpp | nkhatsko/tasks | a22cf0325cd2c563d39b247e12d910da9fa4f938 | [
"MIT"
] | null | null | null | matrix_formula/main.cpp | nkhatsko/tasks | a22cf0325cd2c563d39b247e12d910da9fa4f938 | [
"MIT"
] | null | null | null | matrix_formula/main.cpp | nkhatsko/tasks | a22cf0325cd2c563d39b247e12d910da9fa4f938 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cmath>
std::vector<int> get_vector(std::string print, char separator, char end) {
std::cout << print;
std::string str;
std::vector<int> vector;
while ((std::getline(std::cin, str, separator) && str.back() != end)) {
vector.push_back(std::atoi(str.c_str()));
};
... | 21.511628 | 76 | 0.475135 | nkhatsko |
3f92f360b98a412392412917d7ed6b0c3c0171ab | 3,475 | cpp | C++ | Enemy.cpp | FroxCode/Portfolio-MOSH | 76748ccc1e1ec05cc0803ca0819c4ad6be99cab9 | [
"MIT"
] | null | null | null | Enemy.cpp | FroxCode/Portfolio-MOSH | 76748ccc1e1ec05cc0803ca0819c4ad6be99cab9 | [
"MIT"
] | null | null | null | Enemy.cpp | FroxCode/Portfolio-MOSH | 76748ccc1e1ec05cc0803ca0819c4ad6be99cab9 | [
"MIT"
] | null | null | null | //Created by Cmag, Dsin
#include "Enemy.h"
Enemy::Enemy(){}
Enemy::~Enemy(){}
Enemy::Enemy(string const &texture, string const &deathSnd, vector<shared_ptr<Vector2f>> nodes) :
animatedSprite(sf::seconds(0.2f), true, false)
{
startPoint = Vector2f(nodes.at(0)->x -96, nodes.at(0)->y); //set the start node
endPoint ... | 29.449153 | 170 | 0.673669 | FroxCode |
3f93a1cf5f60f2ea6daaa230d0f4f64a31c9b33f | 14,727 | hpp | C++ | task-movement/Koala/graph/view.hpp | miloszc/task-movement | 26b40595b590b0fcc3c226fbe8576faa3b5c1244 | [
"MIT"
] | null | null | null | task-movement/Koala/graph/view.hpp | miloszc/task-movement | 26b40595b590b0fcc3c226fbe8576faa3b5c1244 | [
"MIT"
] | 19 | 2019-02-15T09:04:22.000Z | 2020-06-23T21:42:29.000Z | task-movement/Koala/graph/view.hpp | miloszc/task-movement | 26b40595b590b0fcc3c226fbe8576faa3b5c1244 | [
"MIT"
] | 1 | 2019-05-04T16:12:25.000Z | 2019-05-04T16:12:25.000Z | // Subgraph
template< class Graph, class VChooser, class EChooser >
Subgraph< Graph,VChooser,EChooser >::Subgraph( const Graph &g, std::pair< VChooser,EChooser > chs,
std::pair< bool,bool > fr):
SubgraphBase(), vchoose( chs.first ), echoose( chs.second ), counters( fr )... | 32.654102 | 126 | 0.679908 | miloszc |
3f9e06a3792652138a0c862bf33d512c3e21ed2c | 1,528 | cpp | C++ | src/boolean_operations/BOPBuilderShapeToBRepBuilderShapeAdapter.cpp | cfsengineering/tigl | abfbb57b82dc6beac7cde212a4cd5e0aed866db8 | [
"Apache-2.0"
] | 171 | 2015-04-13T11:24:34.000Z | 2022-03-26T00:56:38.000Z | src/boolean_operations/BOPBuilderShapeToBRepBuilderShapeAdapter.cpp | cfsengineering/tigl | abfbb57b82dc6beac7cde212a4cd5e0aed866db8 | [
"Apache-2.0"
] | 620 | 2015-01-20T08:34:36.000Z | 2022-03-30T11:05:33.000Z | src/boolean_operations/BOPBuilderShapeToBRepBuilderShapeAdapter.cpp | cfsengineering/tigl | abfbb57b82dc6beac7cde212a4cd5e0aed866db8 | [
"Apache-2.0"
] | 56 | 2015-02-09T13:33:56.000Z | 2022-03-19T04:52:51.000Z | /*
* Copyright (C) 2007-2013 German Aerospace Center (DLR/SC)
*
* Created: 2013-11-11 Martin Siggel <Martin.Siggel@dlr.de>
*
* 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.a... | 28.830189 | 113 | 0.787304 | cfsengineering |
3fa27eeda43f59ccf851bfbaf7f20d4adce17119 | 2,519 | cpp | C++ | Userland/Libraries/LibCore/MimeData.cpp | holdengreen/serenity | 0fccada6e9f714f76b2fbe0d189dcf4f26de38d4 | [
"BSD-2-Clause"
] | 1 | 2021-10-05T14:07:23.000Z | 2021-10-05T14:07:23.000Z | Userland/Libraries/LibCore/MimeData.cpp | holdengreen/serenity | 0fccada6e9f714f76b2fbe0d189dcf4f26de38d4 | [
"BSD-2-Clause"
] | null | null | null | Userland/Libraries/LibCore/MimeData.cpp | holdengreen/serenity | 0fccada6e9f714f76b2fbe0d189dcf4f26de38d4 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/StringBuilder.h>
#include <LibCore/MimeData.h>
namespace Core {
Vector<String> MimeData::formats() const
{
Vector<String> mime_types;
mime_types.ensure_capacity(m_data.size());
for ... | 30.349398 | 126 | 0.664152 | holdengreen |
3fa35c464ee1c8739ef7654c5254fe9d652152e7 | 1,898 | hpp | C++ | src/Context.hpp | jparimaa/vk-start | 78d02373765614b21fdaff6756dc37eb3dc98dbd | [
"MIT"
] | null | null | null | src/Context.hpp | jparimaa/vk-start | 78d02373765614b21fdaff6756dc37eb3dc98dbd | [
"MIT"
] | null | null | null | src/Context.hpp | jparimaa/vk-start | 78d02373765614b21fdaff6756dc37eb3dc98dbd | [
"MIT"
] | null | null | null | #pragma once
#include "VulkanUtils.hpp"
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include <vector>
class Context final
{
public:
struct KeyEvent
{
int key;
int action;
};
Context();
~Context();
GLFWwindow* getGlfwWindow() const;
VkPhysicalDevice getPhysicalDevi... | 27.507246 | 96 | 0.722339 | jparimaa |
3fa3aaef3a583494000c8abf974bc5d413d34426 | 13,906 | cc | C++ | src/components/application_manager/test/commands/hmi/simple_requests_to_hmi_test.cc | APipko/sdl_core | 7f7fcbb998fb17f2954fd103349af67ea9b71a3f | [
"BSD-3-Clause"
] | 2 | 2016-09-21T12:36:17.000Z | 2017-11-03T07:58:33.000Z | src/components/application_manager/test/commands/hmi/simple_requests_to_hmi_test.cc | APipko/sdl_core | 7f7fcbb998fb17f2954fd103349af67ea9b71a3f | [
"BSD-3-Clause"
] | 64 | 2016-04-21T10:30:58.000Z | 2020-01-30T11:17:36.000Z | src/components/application_manager/test/commands/hmi/simple_requests_to_hmi_test.cc | APipko/sdl_core | 7f7fcbb998fb17f2954fd103349af67ea9b71a3f | [
"BSD-3-Clause"
] | 12 | 2015-09-14T08:17:55.000Z | 2018-06-29T10:16:59.000Z | /*
* Copyright (c) 2016, Ford Motor Company
* All rights reserved.
*
* Copyright (c) 2017 Xevo Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code mus... | 48.622378 | 87 | 0.795987 | APipko |
3fa3f6c005dde4a7d03cacc25715b4e1e30ac373 | 5,196 | cpp | C++ | c/Haxe/OpenFL/01.HelloWorld/Export/windows/cpp/obj/src/haxe/ds/ObjectMap.cpp | amenoyoya/old-project | 640ec696af5d18267d86629098f41451857f8103 | [
"MIT"
] | null | null | null | c/Haxe/OpenFL/01.HelloWorld/Export/windows/cpp/obj/src/haxe/ds/ObjectMap.cpp | amenoyoya/old-project | 640ec696af5d18267d86629098f41451857f8103 | [
"MIT"
] | 1 | 2019-07-07T09:52:20.000Z | 2019-07-07T09:52:20.000Z | c/Haxe/OpenFL/01.HelloWorld/Export/windows/cpp/obj/src/haxe/ds/ObjectMap.cpp | amenoyoya/old-project | 640ec696af5d18267d86629098f41451857f8103 | [
"MIT"
] | null | null | null | #include <hxcpp.h>
#ifndef INCLUDED_IMap
#include <IMap.h>
#endif
#ifndef INCLUDED_haxe_ds_IntMap
#include <haxe/ds/IntMap.h>
#endif
#ifndef INCLUDED_haxe_ds_ObjectMap
#include <haxe/ds/ObjectMap.h>
#endif
namespace haxe{
namespace ds{
Void ObjectMap_obj::__construct()
{
HX_STACK_FRAME("haxe.ds.Object... | 27.638298 | 156 | 0.704965 | amenoyoya |
3fa587992b30560de5af9c1b0ad54d606bb4fff3 | 1,434 | hpp | C++ | src/cxx/ctul/cfg/collections.hpp | c0de4un/cxx-thread-util | 3b7f85e32370cfeb699d7a7d3c8bf08ca99acbe5 | [
"MIT"
] | 1 | 2020-01-30T15:13:37.000Z | 2020-01-30T15:13:37.000Z | src/cxx/ctul/cfg/collections.hpp | c0de4un/cxx-thread-util | 3b7f85e32370cfeb699d7a7d3c8bf08ca99acbe5 | [
"MIT"
] | null | null | null | src/cxx/ctul/cfg/collections.hpp | c0de4un/cxx-thread-util | 3b7f85e32370cfeb699d7a7d3c8bf08ca99acbe5 | [
"MIT"
] | null | null | null | /**
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABIL... | 29.875 | 80 | 0.477685 | c0de4un |
3fa59f47cb5e9f19ab64685b31997165b029dd9e | 4,133 | cpp | C++ | irohad/torii/processor/impl/query_processor_impl.cpp | steephengeorge/iroha | 9e0e19035308c6ebaf706f709c5b7b3ac46e708b | [
"Apache-2.0"
] | null | null | null | irohad/torii/processor/impl/query_processor_impl.cpp | steephengeorge/iroha | 9e0e19035308c6ebaf706f709c5b7b3ac46e708b | [
"Apache-2.0"
] | null | null | null | irohad/torii/processor/impl/query_processor_impl.cpp | steephengeorge/iroha | 9e0e19035308c6ebaf706f709c5b7b3ac46e708b | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved.
* http://soramitsu.co.jp
*
* 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... | 37.572727 | 79 | 0.654246 | steephengeorge |
3fa8fff70985bd72368741237218212ce9feee41 | 1,696 | cpp | C++ | common/trees/LoopASTNode.cpp | Youggls/Comploer | 4b933cf33c2b6e6d85f3583437940a23b26bfd18 | [
"MIT"
] | 22 | 2019-10-04T06:29:00.000Z | 2022-03-17T11:52:16.000Z | common/trees/LoopASTNode.cpp | Youggls/Comploer | 4b933cf33c2b6e6d85f3583437940a23b26bfd18 | [
"MIT"
] | 9 | 2019-09-30T08:14:07.000Z | 2019-12-18T15:21:31.000Z | common/trees/LoopASTNode.cpp | Youggls/Comploer | 4b933cf33c2b6e6d85f3583437940a23b26bfd18 | [
"MIT"
] | 6 | 2020-11-18T10:52:47.000Z | 2022-03-04T03:42:49.000Z | #include "LoopASTNode.h"
LoopASTNode::LoopASTNode(char *content,
LoopType type,
AbstractASTNode *body,
AbstractASTNode *condition)
: AbstractASTNode(content, ASTNodeType::loop)
{
this->loopType = type;
this->addChildNode(body);
... | 29.754386 | 71 | 0.54717 | Youggls |
3fa920a8e140455c19e4f17f78f268b7b2551546 | 467 | cpp | C++ | Arrays and Strings/1.3 URLify.cpp | AbrMa/Interview-Prep | 692bfd5a3bd85238b717ecd277dd739191d5fef2 | [
"MIT"
] | null | null | null | Arrays and Strings/1.3 URLify.cpp | AbrMa/Interview-Prep | 692bfd5a3bd85238b717ecd277dd739191d5fef2 | [
"MIT"
] | null | null | null | Arrays and Strings/1.3 URLify.cpp | AbrMa/Interview-Prep | 692bfd5a3bd85238b717ecd277dd739191d5fef2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
string URLify (string& str, int& n) {
int copy = n - 1, write = str.size() - 1;
while (copy >= 0) {
if (str[copy] == ' ') {
str[write - 2] = '%';
str[write - 1] = '2';
str[write] = '0';
write -= 3;
}
else {
str[write] = str[copy];
wr... | 15.566667 | 42 | 0.513919 | AbrMa |
3fa9f33b0594dda6cb807432272c3b9ebd27c924 | 600 | cpp | C++ | src/SingleHtmlElement.cpp | liferili/HTML-Formatter | 3ebf2a9814c8e077f98e2ef6d8135292d6387a76 | [
"MIT"
] | null | null | null | src/SingleHtmlElement.cpp | liferili/HTML-Formatter | 3ebf2a9814c8e077f98e2ef6d8135292d6387a76 | [
"MIT"
] | null | null | null | src/SingleHtmlElement.cpp | liferili/HTML-Formatter | 3ebf2a9814c8e077f98e2ef6d8135292d6387a76 | [
"MIT"
] | null | null | null | //
// Created by Liferov Ilia (liferili) on 6/5/16.
//
#include "SingleHtmlElement.h"
using namespace std;
SingleHtmlElement::SingleHtmlElement(string name, bool block, set <string> &attributes) :HtmlElement(name, block, attributes){}
bool SingleHtmlElement::isBlock() const {return this->block;}
bool SingleHtmlEle... | 28.571429 | 127 | 0.753333 | liferili |
3fab57890f3dd25784e7ecd305afb55dce7bf8b0 | 985 | cpp | C++ | CADYDIST.cpp | Akki5/spoj-solutions | 9169830415eb4f888ba0300eb47a423166b8d938 | [
"MIT"
] | 1 | 2019-05-23T20:03:40.000Z | 2019-05-23T20:03:40.000Z | CADYDIST.cpp | Akki5/spoj-solutions | 9169830415eb4f888ba0300eb47a423166b8d938 | [
"MIT"
] | null | null | null | CADYDIST.cpp | Akki5/spoj-solutions | 9169830415eb4f888ba0300eb47a423166b8d938 | [
"MIT"
] | 1 | 2021-08-28T16:48:42.000Z | 2021-08-28T16:48:42.000Z | #include<stdio.h>
#include<iostream>
#include<math.h>
using namespace std;
void quickSort(long long arr[], int left, int right)
{
int i = left, j = right;
long long tmp;
long long pivot = arr[(left + right) / 2];
while (i <= j) {
while (arr[i] < pivot)
i++;
while (arr[j] > pivot)
... | 18.240741 | 52 | 0.474112 | Akki5 |
3fabce870ca5fde9e03a4a59cd6d1a27ef0a5a9e | 1,826 | hpp | C++ | deprecated/TESTS/tensorIdxImporterTests.hpp | lubatang/uTensor | aedbc9bb5dc2e7532b744a9c6fe713c1d22bdb0b | [
"Apache-2.0"
] | 1 | 2018-05-01T19:13:52.000Z | 2018-05-01T19:13:52.000Z | deprecated/TESTS/tensorIdxImporterTests.hpp | lubatang/uTensor | aedbc9bb5dc2e7532b744a9c6fe713c1d22bdb0b | [
"Apache-2.0"
] | 1 | 2018-04-18T16:00:04.000Z | 2018-04-18T16:00:04.000Z | deprecated/TESTS/tensorIdxImporterTests.hpp | lubatang/uTensor | aedbc9bb5dc2e7532b744a9c6fe713c1d22bdb0b | [
"Apache-2.0"
] | null | null | null | #ifndef UTENSOR_IDX_IMPORTER_TESTS
#define UTENSOR_IDX_IMPORTER_TESTS
#include "tensorIdxImporter.hpp"
#include "test.hpp"
class idxImporterTest : public Test {
public:
void ntoh32Test(void) {
testStart("ntoh32 test");
uint32_t input = 63;
timer_start();
uint32_t result = ntoh32(input);
timer_s... | 23.113924 | 76 | 0.648959 | lubatang |
3fae16b8625fda8ecb93c718fdbf8a8a58cf32d5 | 1,847 | cpp | C++ | src/api/optimizers/nativeoptimizer.cpp | DavidPerezSanchez/GOS | 8621f319f2fa174af89771db861c93fbb6a2a684 | [
"Apache-2.0"
] | 5 | 2020-12-29T07:56:09.000Z | 2022-01-04T03:11:34.000Z | src/api/optimizers/nativeoptimizer.cpp | DavidPerezSanchez/GOS | 8621f319f2fa174af89771db861c93fbb6a2a684 | [
"Apache-2.0"
] | 4 | 2020-04-15T06:41:56.000Z | 2020-04-21T07:34:13.000Z | src/api/optimizers/nativeoptimizer.cpp | roger21gm/CSP2SAT | 8621f319f2fa174af89771db861c93fbb6a2a684 | [
"Apache-2.0"
] | 2 | 2021-01-07T18:15:26.000Z | 2022-03-07T11:54:08.000Z | #include "nativeoptimizer.h"
#include <iostream>
NativeOptimizer::NativeOptimizer() : Optimizer(){
}
int NativeOptimizer::minimize(Encoder * e, int lb, int ub, bool useAssumptions, bool narrowBounds){
if(beforeNativeOptimizationCall)
beforeNativeOptimizationCall(lb, ub);
bool issat = e->optimize... | 24.959459 | 104 | 0.716297 | DavidPerezSanchez |
3fb27d1c757eba88294d4f9fb02eccb670014165 | 6,155 | cpp | C++ | Sources/Core/cpp/SemanticAnalyzer/SMExAnaphora.cpp | elzin/SentimentAnalysisService | 41fba2ef49746473535196e89a5e49250439fd83 | [
"MIT"
] | 2 | 2021-07-07T19:39:11.000Z | 2021-12-02T15:54:15.000Z | Sources/Core/cpp/SemanticAnalyzer/SMExAnaphora.cpp | elzin/SentimentAnalysisService | 41fba2ef49746473535196e89a5e49250439fd83 | [
"MIT"
] | null | null | null | Sources/Core/cpp/SemanticAnalyzer/SMExAnaphora.cpp | elzin/SentimentAnalysisService | 41fba2ef49746473535196e89a5e49250439fd83 | [
"MIT"
] | 1 | 2021-12-01T17:48:20.000Z | 2021-12-01T17:48:20.000Z | #include "StdAfx.h"
#include ".\smexanaphora.h"
namespace SS
{
namespace Semantic
{
namespace AnalysisExperts
{
namespace IndexationExperts
{
CSMExAnaphora::CSMExAnaphora(void)
{
m_sDescription=_T(__FUNCTION__);
m_AnalyseLanguage=SS::Core::Types::ealUndefined;
}
CSMExAnaphora::~CSMExAnaphora(void)... | 21.826241 | 173 | 0.664988 | elzin |
3fb9734b54fec3560c2c51f0eb10fb4a3115c03b | 623 | cpp | C++ | Porblems/anton_and_danik.cpp | ashish-ad/CPP-STL-Practice-and-Cp | ca8a112096ad96ed1abccddc9e99b1ead5cf522b | [
"Unlicense"
] | null | null | null | Porblems/anton_and_danik.cpp | ashish-ad/CPP-STL-Practice-and-Cp | ca8a112096ad96ed1abccddc9e99b1ead5cf522b | [
"Unlicense"
] | null | null | null | Porblems/anton_and_danik.cpp | ashish-ad/CPP-STL-Practice-and-Cp | ca8a112096ad96ed1abccddc9e99b1ead5cf522b | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
long int n ;
string s;
cin>>n>>s;
char arr[n];
for (int i=0;i<n;i++){
arr[i]=s[i];
}
int anton=0,danik=0;
for (char i : arr){
//cout<<i<<" ";
if(i=='A'){
anton+=1;
}
... | 16.837838 | 43 | 0.41252 | ashish-ad |
3fbcd59b7846eddd1194c42f3fa8a38a3e8fd0c2 | 2,432 | hpp | C++ | NavalFreightCompany.hpp | danilaferents/Vessels | 06d5f3d08d1f059e53946a06240c69bd4b5e9c7f | [
"Apache-2.0"
] | null | null | null | NavalFreightCompany.hpp | danilaferents/Vessels | 06d5f3d08d1f059e53946a06240c69bd4b5e9c7f | [
"Apache-2.0"
] | null | null | null | NavalFreightCompany.hpp | danilaferents/Vessels | 06d5f3d08d1f059e53946a06240c69bd4b5e9c7f | [
"Apache-2.0"
] | null | null | null | #pragma once
#ifndef NavalFreightCompany_hpp
#define NavalFreightCompany_hpp
#include "main.hpp"
#include "Destination.hpp"
#include "Vessels.hpp"
#include "PassengerVessel.hpp"
#include "CargoVessel.hpp"
using namespace cargovessel;
using namespace passengervessel;
namespace navalfreightcompany
{
class NavalFreigh... | 34.253521 | 106 | 0.541118 | danilaferents |
3fc0088a75ac48b065a0010718549bed0335cc51 | 905 | hpp | C++ | source/mpl/mpl_flatten.hpp | dlin172/Plange | 4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04 | [
"BSD-3-Clause"
] | 16 | 2015-12-04T18:17:03.000Z | 2020-09-11T08:40:32.000Z | source/mpl/mpl_flatten.hpp | dlin172/Plange | 4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04 | [
"BSD-3-Clause"
] | 12 | 2017-07-12T02:04:05.000Z | 2018-07-07T01:17:12.000Z | source/mpl/mpl_flatten.hpp | dlin172/Plange | 4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04 | [
"BSD-3-Clause"
] | 5 | 2016-11-11T11:47:47.000Z | 2020-02-06T02:07:30.000Z | #ifndef INCLUDING_MPL_FLATTEN_HPP
#define INCLUDING_MPL_FLATTEN_HPP
#include "mpl_list.hpp"
namespace mpl {
namespace detail::flatten {
template<typename TAccumulator, typename TList>
struct impl {};
template<typename TList, template<typename...> typename UContainer>
struct impl<TList, UContainer<>> {
u... | 30.166667 | 187 | 0.730387 | dlin172 |
3fc1a029d1ce704735148cd72482008e1ced2b10 | 1,812 | cpp | C++ | utility/osprintf.cpp | Jamaika1/mxflib | 7eefe6da1f76f7de4f2de48322311533369f8ba5 | [
"Zlib"
] | 1 | 2015-04-30T16:21:31.000Z | 2015-04-30T16:21:31.000Z | utility/osprintf.cpp | Jamaika1/mxflib | 7eefe6da1f76f7de4f2de48322311533369f8ba5 | [
"Zlib"
] | null | null | null | utility/osprintf.cpp | Jamaika1/mxflib | 7eefe6da1f76f7de4f2de48322311533369f8ba5 | [
"Zlib"
] | 1 | 2020-04-24T07:25:47.000Z | 2020-04-24T07:25:47.000Z | // copyright Metaglue Corp, all rights reserved.
#include "osprintf.h"
namespace utility {
void osprintf::build_osprintf( const char *fmt, va_list args )
{
while( next_sz < BIGGESTSIZE ) // run away from runaway
{
if( buf ) delete[] buf;
buf = new char[next_sz];
sz = next_sz;
// thanks to http://perfec.to... | 26.26087 | 110 | 0.6617 | Jamaika1 |
3fc6dba9f72442725e296de264539c08b8001cc9 | 2,333 | cpp | C++ | source/msynth/msynth/ui/processor/MIIRControl.cpp | MRoc/MSynth | 3eb5c6cf0ad6a3d12f555ebca5fbe84c1b255829 | [
"MIT"
] | 1 | 2022-01-30T07:40:31.000Z | 2022-01-30T07:40:31.000Z | source/msynth/msynth/ui/processor/MIIRControl.cpp | MRoc/MSynth | 3eb5c6cf0ad6a3d12f555ebca5fbe84c1b255829 | [
"MIT"
] | null | null | null | source/msynth/msynth/ui/processor/MIIRControl.cpp | MRoc/MSynth | 3eb5c6cf0ad6a3d12f555ebca5fbe84c1b255829 | [
"MIT"
] | null | null | null | /**
* (C)2000-2003 MRoc
*/
#include "MIIRControl.h"
#define ID_LFO_CONTROL 3080
#define ID_ENV_CONTROL 3081
MPoint MIIRControl::COMBO_POINTS[] = {
MPoint( 15, 70 ),
MPoint( 15, 88 ),
MPoint( 15, 106 ) };
MIIRControl::MIIRControl() :
MAbstractDescriptorView(),
ivPtLfoControl( 0 ),
ivPtEnvC... | 25.086022 | 111 | 0.645092 | MRoc |
3fc790a4fd9ba523b1216e41f5a10ed871f83289 | 3,537 | cc | C++ | test/ustc_dbms_test.cc | zonghuaxiansheng/DSMgr | 91de5694c0b9cd6e49aa937fb04b488d005b25be | [
"Apache-2.0"
] | 1 | 2022-01-06T12:25:49.000Z | 2022-01-06T12:25:49.000Z | test/ustc_dbms_test.cc | zonghuaxiansheng/DSMgr | 91de5694c0b9cd6e49aa937fb04b488d005b25be | [
"Apache-2.0"
] | null | null | null | test/ustc_dbms_test.cc | zonghuaxiansheng/DSMgr | 91de5694c0b9cd6e49aa937fb04b488d005b25be | [
"Apache-2.0"
] | null | null | null | #include "buffer_manager.h"
// #include "data_storage_manager.h"
#include <ctime>
#include <iostream>
enum OPS_E {R, W};
struct OPS {
OPS_E ops_e_;
int page_id_;
};
bool RunBMgrTraceTest(ustc_dbms::BMgr& bmgr,
std::string& trace_path,
bool is_run) {
std::fstream trace... | 27.418605 | 94 | 0.502969 | zonghuaxiansheng |
3fce84655661d91fc4d422e299ec28385ed777eb | 1,083 | hpp | C++ | 2021/day8/src/lib.hpp | falseth/AdventOfCode | 7d37e6b42be2e90660fbf322fbd1dad780793740 | [
"MIT"
] | null | null | null | 2021/day8/src/lib.hpp | falseth/AdventOfCode | 7d37e6b42be2e90660fbf322fbd1dad780793740 | [
"MIT"
] | null | null | null | 2021/day8/src/lib.hpp | falseth/AdventOfCode | 7d37e6b42be2e90660fbf322fbd1dad780793740 | [
"MIT"
] | null | null | null | #ifndef LIB_HPP
#define LIB_HPP
#include <iostream>
#include <fstream>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
#include <iterator>
#include "EasyBMP.h"
using namespace std;
vector<string> parse(string input, string delimiter);
template<class T> ostream& operator<<(ostream& lhs, vec... | 25.785714 | 101 | 0.674054 | falseth |
3fcff2caf1db8b4f63e8b1864ef72f521769ad03 | 9,778 | cpp | C++ | 104Core/mask_sequence.cpp | Coderik/104P | 37435ff3709fbce9fcc87b59acc46212f484daad | [
"BSD-2-Clause"
] | null | null | null | 104Core/mask_sequence.cpp | Coderik/104P | 37435ff3709fbce9fcc87b59acc46212f484daad | [
"BSD-2-Clause"
] | null | null | null | 104Core/mask_sequence.cpp | Coderik/104P | 37435ff3709fbce9fcc87b59acc46212f484daad | [
"BSD-2-Clause"
] | null | null | null | /**
* Copyright (C) 2016, Vadim Fedorov <coderiks@gmail.com>
*
* This program is free software: you can use, modify and/or
* redistribute it under the terms of the simplified BSD
* License. You should have received a copy of this license along
* this program. If not, see
* <http://www.opensource.org/licenses/bsd... | 16.743151 | 85 | 0.643281 | Coderik |
3fd163d6cc463cfb51f9da322995ceb9d94a7e8f | 3,969 | cpp | C++ | Web/src/MapAgentCommon/MapAgentStrings.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Web/src/MapAgentCommon/MapAgentStrings.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Web/src/MapAgentCommon/MapAgentStrings.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | 53.635135 | 82 | 0.767196 | achilex |
3fd27126db6adcd9c0036a53ce5839bc36ebc8b7 | 4,527 | cpp | C++ | test/hotspot/jtreg/vmTestbase/nsk/jvmti/SingleStep/singlestep002/singlestep002.cpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | null | null | null | test/hotspot/jtreg/vmTestbase/nsk/jvmti/SingleStep/singlestep002/singlestep002.cpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | null | null | null | test/hotspot/jtreg/vmTestbase/nsk/jvmti/SingleStep/singlestep002/singlestep002.cpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 33.533333 | 112 | 0.701568 | 1690296356 |
3fd4a37fdcd71323b2ee4978ea85b0131551a5db | 307 | cpp | C++ | Source/Catastrophe/Gameplay/QTE_Bob/QteBobWidget.cpp | Enderderder/CatastropheGame | 251888d384ae59966788cce7bbbc98c3c0be7433 | [
"MIT"
] | null | null | null | Source/Catastrophe/Gameplay/QTE_Bob/QteBobWidget.cpp | Enderderder/CatastropheGame | 251888d384ae59966788cce7bbbc98c3c0be7433 | [
"MIT"
] | null | null | null | Source/Catastrophe/Gameplay/QTE_Bob/QteBobWidget.cpp | Enderderder/CatastropheGame | 251888d384ae59966788cce7bbbc98c3c0be7433 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "QteBobWidget.h"
UQteBobWidget::UQteBobWidget(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{}
void UQteBobWidget::InitializeQteWidget_Implementation()
{
/// Let blueprint do the thing
}
| 21.928571 | 78 | 0.794788 | Enderderder |
3fd994d275d47ccbeb73d2895e6145172f9241c9 | 2,759 | cpp | C++ | Source/Dwellers/Entity.cpp | Ganemo/Dwellers | 2aa6791f6b9d6aa66090004c9c43c25a08757c02 | [
"Apache-2.0"
] | null | null | null | Source/Dwellers/Entity.cpp | Ganemo/Dwellers | 2aa6791f6b9d6aa66090004c9c43c25a08757c02 | [
"Apache-2.0"
] | null | null | null | Source/Dwellers/Entity.cpp | Ganemo/Dwellers | 2aa6791f6b9d6aa66090004c9c43c25a08757c02 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Entity.h"
#include "Kismet/GameplayStatics.h"
AGodCamera* AEntity::Player = nullptr;
AEntity::AEntity()
{
PrimaryActorTick.bCanEverTick = true;
PrimaryActorTick.TickInterval = .01f;
RootComponent = CreateDefaultSubobject<USc... | 30.655556 | 136 | 0.760058 | Ganemo |
3fdf102762937105990c560a0e3af2a87d6b233c | 1,053 | hpp | C++ | include/sparse/common/utility.hpp | BorysekOndrej/sparse-not-forked | f4010d6bcd46b00261b4296d8010a7a0eb3d471f | [
"MIT"
] | 1 | 2021-04-27T16:11:16.000Z | 2021-04-27T16:11:16.000Z | include/sparse/common/utility.hpp | BorysekOndrej/sparse-not-forked | f4010d6bcd46b00261b4296d8010a7a0eb3d471f | [
"MIT"
] | 17 | 2021-03-14T09:17:32.000Z | 2021-05-23T16:10:00.000Z | include/sparse/common/utility.hpp | BorysekOndrej/sparse-not-forked | f4010d6bcd46b00261b4296d8010a7a0eb3d471f | [
"MIT"
] | 1 | 2021-05-20T15:13:05.000Z | 2021-05-20T15:13:05.000Z | #pragma once
#include <filesystem>
#include <nlohmann/json.hpp>
#include <sparse/common/types.hpp>
#include <string>
#include <unordered_map>
namespace sparse::common
{
std::string load_file_into_string(const std::filesystem::path& filename);
/**
* @brief Removes whitespace characters from both ends of given strin... | 21.489796 | 73 | 0.719848 | BorysekOndrej |
3fdf7f168d3b5e5bb4109bae633e1c61d14b00c9 | 40,687 | hpp | C++ | core/src/cogs/collections/btree.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 5 | 2019-02-08T15:59:14.000Z | 2022-01-22T19:12:33.000Z | core/src/cogs/collections/btree.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 1 | 2019-12-03T03:11:34.000Z | 2019-12-03T03:11:34.000Z | core/src/cogs/collections/btree.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | null | null | null | //
// Copyright (C) 2000-2020 - Colen M. Garoutte-Carson <colen at cogmine.com>, Cog Mine LLC
//
// Status: Good
#ifndef COGS_HEADER_COLLECTION_BTREE
#define COGS_HEADER_COLLECTION_BTREE
#include "cogs/collections/tlink.hpp"
#include "cogs/mem/ptr.hpp"
namespace cogs {
/// @brief Tree traversal order
enum cla... | 28.876508 | 128 | 0.674147 | cogmine |
3fe273369053c8b68929caac458fbcd4abe95670 | 3,659 | cpp | C++ | utility/detail/iface.linux.cpp | ExploreWilder/libutility | b3600d5bc77211c567674032ad1a7c65ff56cc1b | [
"BSD-2-Clause"
] | 2 | 2018-08-26T07:34:38.000Z | 2019-02-25T07:27:57.000Z | utility/detail/iface.linux.cpp | ExploreWilder/libutility | b3600d5bc77211c567674032ad1a7c65ff56cc1b | [
"BSD-2-Clause"
] | 1 | 2021-02-22T17:23:02.000Z | 2021-04-08T15:18:57.000Z | utility/detail/iface.linux.cpp | ExploreWilder/libutility | b3600d5bc77211c567674032ad1a7c65ff56cc1b | [
"BSD-2-Clause"
] | 3 | 2019-09-25T05:22:06.000Z | 2022-03-29T09:18:42.000Z | /**
* Copyright (c) 2017 Melown Technologies SE
*
* 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 conditions and the f... | 31.817391 | 78 | 0.656737 | ExploreWilder |
3fe470ec03d8756e24f91db108cfe5d668492844 | 1,102 | hpp | C++ | include/containers/pop_front.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 44 | 2020-10-03T21:37:52.000Z | 2022-03-26T10:08:46.000Z | include/containers/pop_front.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 1 | 2021-01-01T23:22:39.000Z | 2021-01-01T23:22:39.000Z | include/containers/pop_front.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | null | null | null | // Copyright David Stone 2019.
// 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)
#pragma once
#include <containers/algorithms/erase.hpp>
#include <containers/begin_end.hpp>
#include <containers/front_back.hpp>
#i... | 28.25641 | 93 | 0.778584 | davidstone |
3fe6dd0aff22cee668181ae38d3261139a86c049 | 5,299 | cc | C++ | abel/chrono/civil_time.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | abel/chrono/civil_time.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | abel/chrono/civil_time.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | //
#include <abel/chrono/civil_time.h>
#include <cstdlib>
#include <string>
#include <abel/strings/str_cat.h>
#include <abel/chrono/time.h>
namespace abel {
namespace {
// Since a civil time has a larger year range than abel::abel_time (64-bit years vs
// 64-bit seconds, respectively) we normalize years to roughl... | 32.509202 | 83 | 0.699 | Conun |
3fe9116e9ceb73ca2a0810d417e7837052d2dd1c | 2,219 | hpp | C++ | externals/browser/externals/browser/externals/libhttp/http/request.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | 1 | 2021-09-02T08:42:59.000Z | 2021-09-02T08:42:59.000Z | externals/browser/externals/browser/externals/libhttp/http/request.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | null | null | null | externals/browser/externals/browser/externals/libhttp/http/request.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | null | null | null | /**
* Copyright (c) 2017 Melown Technologies SE
*
* 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 conditions and the f... | 30.39726 | 78 | 0.722397 | HanochZhu |
3feadb764dcbf2e7f025966e13fdc60bf3e7ee7f | 31,178 | cpp | C++ | src/db/dbITerm.cpp | mgwoo/OpenDB | 8bf8df500dc525f2abfa16a8f5ac2cb67c09b6f4 | [
"BSD-3-Clause"
] | 1 | 2021-03-04T02:35:47.000Z | 2021-03-04T02:35:47.000Z | src/db/dbITerm.cpp | mgwoo/OpenDB | 8bf8df500dc525f2abfa16a8f5ac2cb67c09b6f4 | [
"BSD-3-Clause"
] | null | null | null | src/db/dbITerm.cpp | mgwoo/OpenDB | 8bf8df500dc525f2abfa16a8f5ac2cb67c09b6f4 | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2019, Nefelus Inc
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//... | 29.778415 | 95 | 0.6095 | mgwoo |
6847601bfd862fb484ee2369be0adf8d6a92b3c9 | 2,798 | hpp | C++ | include/codegen/include/OVR/OpenVR/IVRSpatialAnchors.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/OVR/OpenVR/IVRSpatialAnchors.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/OVR/OpenVR/IVRSpatialAnchors.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:04 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: System.ValueType
#include "System/ValueType.hpp"
#include "utils/il2cpp-utils.hpp"
// Co... | 59.531915 | 641 | 0.78985 | Futuremappermydud |
6849bb1c5e925f0bc5af6fd9160db213180b76e3 | 398 | cpp | C++ | 3656.cpp | viniciusmalloc/live-archive | b867987512872a9ae8156bbbcfbf47caf5e9ed8e | [
"MIT"
] | null | null | null | 3656.cpp | viniciusmalloc/live-archive | b867987512872a9ae8156bbbcfbf47caf5e9ed8e | [
"MIT"
] | null | null | null | 3656.cpp | viniciusmalloc/live-archive | b867987512872a9ae8156bbbcfbf47caf5e9ed8e | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main()
{
int n, x;
for (scanf("%d", &n); n != 0; scanf("%d", &n)) {
int soma = 0;
for (int i = 0; i < 2 * n; ++i) {
scanf("%d", &x);
if (x % 2 == 0)
soma++;... | 18.952381 | 53 | 0.379397 | viniciusmalloc |
684b10100037d7d9894576302539127df413e867 | 1,361 | cpp | C++ | src/pockets/Profiling.cpp | pourpluie/Pockets-team | cbae274cdabf2896ab7ecf113bccfbd005916ea7 | [
"BSD-2-Clause"
] | null | null | null | src/pockets/Profiling.cpp | pourpluie/Pockets-team | cbae274cdabf2896ab7ecf113bccfbd005916ea7 | [
"BSD-2-Clause"
] | null | null | null | src/pockets/Profiling.cpp | pourpluie/Pockets-team | cbae274cdabf2896ab7ecf113bccfbd005916ea7 | [
"BSD-2-Clause"
] | null | null | null |
#include "Profiling.h"
using namespace pockets;
OpenGLTimer::OpenGLTimer():
mId( 0 ),
mWaiting( false ),
mValue( 0 )
{}
//! initialize OpenGL state of timer
void OpenGLTimer::setup()
{
glGenQueries( 1, &mId );
}
OpenGLTimer::~OpenGLTimer()
{
glDeleteQueries( 1, &mId );
}
//! mark the beginning of the OpenGL comm... | 20.621212 | 76 | 0.693608 | pourpluie |
684b80fc84d6a66e8c216428d76247423586c351 | 1,466 | cpp | C++ | Algorithms/SubSetSum.cpp | hendry19901990/AlgorithmsUnlocked | e85b6dea4b3aea9b8015db24384b1527d828395d | [
"Xnet",
"X11"
] | 1 | 2022-03-25T10:20:25.000Z | 2022-03-25T10:20:25.000Z | Algorithms/SubSetSum.cpp | hendry19901990/AlgorithmsUnlocked | e85b6dea4b3aea9b8015db24384b1527d828395d | [
"Xnet",
"X11"
] | null | null | null | Algorithms/SubSetSum.cpp | hendry19901990/AlgorithmsUnlocked | e85b6dea4b3aea9b8015db24384b1527d828395d | [
"Xnet",
"X11"
] | null | null | null | #include <iostream>
#include <vector>
#include <deque>
#include <set>
#include <stdio.h>
#include <unordered_map>
#include <limits>
using namespace std;
int count = 0;
vector<vector<int> > SubsetSumsHelper;
void SubsbetSum(vector<vector<int> > &SubsetSumsHelper, const vector<int> &input, const int index_t, co... | 25.719298 | 120 | 0.632333 | hendry19901990 |
6852b00b1f8dbf2060bba66c9f2254c860d21f8b | 17,444 | cpp | C++ | libace/model/BasicType.cpp | xguerin/ace | ad6e1bc4cb4f10d6cf5b782f623ec0eef13e000b | [
"MIT"
] | 5 | 2016-06-14T17:56:47.000Z | 2022-02-10T19:54:25.000Z | libace/model/BasicType.cpp | xguerin/ace | ad6e1bc4cb4f10d6cf5b782f623ec0eef13e000b | [
"MIT"
] | 42 | 2016-06-21T20:48:22.000Z | 2021-03-23T15:20:51.000Z | libace/model/BasicType.cpp | xguerin/ace | ad6e1bc4cb4f10d6cf5b782f623ec0eef13e000b | [
"MIT"
] | 1 | 2016-10-02T02:58:49.000Z | 2016-10-02T02:58:49.000Z | /**
* Copyright (c) 2016 Xavier R. Guerin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | 24.569014 | 80 | 0.619984 | xguerin |
68585f6acaff750fe36dd6947ae6ef789c35ea1d | 669 | cc | C++ | cc/array/FindTheHighestAltitude.cc | zihengCat/leetcode-collections | e94d6ee7d17cc72c8f34162d60e8d869164cbd53 | [
"MIT"
] | 4 | 2021-12-08T15:36:36.000Z | 2022-03-23T12:21:06.000Z | cc/array/FindTheHighestAltitude.cc | zihengCat/leetcode-collections | e94d6ee7d17cc72c8f34162d60e8d869164cbd53 | [
"MIT"
] | null | null | null | cc/array/FindTheHighestAltitude.cc | zihengCat/leetcode-collections | e94d6ee7d17cc72c8f34162d60e8d869164cbd53 | [
"MIT"
] | null | null | null | #include <vector>
using namespace std;
/**
* LeetCode 1732. Find the Highest Altitude
* https://leetcode.com/problems/find-the-highest-altitude/
*/
class FindTheHighestAltitude {
public:
int largestAltitude(vector<int>& gain) {
if (gain.size() == 0) {
return 0;
}
int arrLen ... | 19.676471 | 59 | 0.506726 | zihengCat |
685fe5e469b499ce0aa338ed4fc24f073bc47590 | 607 | cpp | C++ | Project 2/src/BSTNode.cpp | Nurl4n/Fundamental-Structures-of-Computer-Science-II | f3383bb8796232e4ca67e3c2dc08a5e730c372b4 | [
"MIT"
] | null | null | null | Project 2/src/BSTNode.cpp | Nurl4n/Fundamental-Structures-of-Computer-Science-II | f3383bb8796232e4ca67e3c2dc08a5e730c372b4 | [
"MIT"
] | null | null | null | Project 2/src/BSTNode.cpp | Nurl4n/Fundamental-Structures-of-Computer-Science-II | f3383bb8796232e4ca67e3c2dc08a5e730c372b4 | [
"MIT"
] | null | null | null | /** Title : Algorithm for implementing Binary Search Tree and N-gram
* Author : Nurlan Farzaliyev
* ID : 21503756
* Section : 1
* Assignment : 2
* Description : Source code for Binary Search Tree Node
*/
#include "BSTNode.h"
#include <string>
#include <cstddef>
BSTNode::BSTNode(const string key, BSTNode *... | 17.852941 | 82 | 0.639209 | Nurl4n |
68613319ae7fddc8555bb650a590ddf0ee0ecf7f | 73 | cpp | C++ | sources/source.cpp | Lasar1k/LAB_03_SharedPtr | e07b4ae86dc1ae6bacff8844348eb6138c8af83f | [
"MIT"
] | null | null | null | sources/source.cpp | Lasar1k/LAB_03_SharedPtr | e07b4ae86dc1ae6bacff8844348eb6138c8af83f | [
"MIT"
] | null | null | null | sources/source.cpp | Lasar1k/LAB_03_SharedPtr | e07b4ae86dc1ae6bacff8844348eb6138c8af83f | [
"MIT"
] | null | null | null | // Copyright 2021 Lasar1k <alf.ivan2002@gmail.com>
#include <header.hpp>
| 24.333333 | 50 | 0.753425 | Lasar1k |
68641e9dac0522a1aaabe1cd6fb8528e25aabfe9 | 5,373 | cpp | C++ | SFML-1.6/Editeur/map_options.cpp | Krozark/Dethroned-God | 0e677bea1e5b4c96a31f1188a4e43b900d92f532 | [
"BSD-2-Clause"
] | null | null | null | SFML-1.6/Editeur/map_options.cpp | Krozark/Dethroned-God | 0e677bea1e5b4c96a31f1188a4e43b900d92f532 | [
"BSD-2-Clause"
] | null | null | null | SFML-1.6/Editeur/map_options.cpp | Krozark/Dethroned-God | 0e677bea1e5b4c96a31f1188a4e43b900d92f532 | [
"BSD-2-Clause"
] | null | null | null | #include "map_options.hpp"
#include "lister.hpp"
#include <stdio.h>
#include <stdlib.h>
using namespace std;
MAP_OPTION::MAP_OPTION()
{
setWindowTitle("Option generale de la carte");
layout=new QGridLayout;
frottement=new QSpinBox;
frottement->setRange(100,2000);
frottement->setSingleStep(50);
... | 25.708134 | 100 | 0.674111 | Krozark |
68664f21c3e11b8200f975b1caa8ab5f98f1f2c1 | 1,571 | cc | C++ | core/src/EnablePluginFromThis.cc | scpeters-test/ign-plugin | 94482af3e9b2cc1cbb7c2dbeb2c7846f8283f0f6 | [
"Apache-2.0"
] | 10 | 2020-04-15T16:59:32.000Z | 2022-03-18T20:36:17.000Z | core/src/EnablePluginFromThis.cc | scpeters-test/ign-plugin | 94482af3e9b2cc1cbb7c2dbeb2c7846f8283f0f6 | [
"Apache-2.0"
] | 47 | 2020-05-04T15:07:18.000Z | 2022-03-18T20:53:54.000Z | core/src/EnablePluginFromThis.cc | scpeters-test/ign-plugin | 94482af3e9b2cc1cbb7c2dbeb2c7846f8283f0f6 | [
"Apache-2.0"
] | 11 | 2020-05-05T22:04:44.000Z | 2022-03-18T13:59:46.000Z | /*
* Copyright (C) 2018 Open Source Robotics Foundation
*
* 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... | 24.936508 | 78 | 0.691916 | scpeters-test |
6867b4042eb12a3c3b1d23e59ac0a836d33ad184 | 2,274 | cc | C++ | pmlc/util/tags.cc | hfp/plaidml | c86852a910e68181781b3045f5a306d2f41a775f | [
"Apache-2.0"
] | null | null | null | pmlc/util/tags.cc | hfp/plaidml | c86852a910e68181781b3045f5a306d2f41a775f | [
"Apache-2.0"
] | null | null | null | pmlc/util/tags.cc | hfp/plaidml | c86852a910e68181781b3045f5a306d2f41a775f | [
"Apache-2.0"
] | null | null | null | #include "pmlc/util/tags.h"
#include "mlir/IR/BuiltinTypes.h"
namespace pmlc {
using namespace llvm; // NOLINT
using namespace mlir; // NOLINT
static StringRef tagDict() { return "tags"; }
bool hasTags(mlir::Operation *op) {
return static_cast<bool>(op->getAttrOfType<DictionaryAttr>(tagDict()));
}
void copyTags... | 28.425 | 76 | 0.688215 | hfp |
686f0aae19a89223b95123384bc2f642a190cd64 | 1,849 | cc | C++ | src/base/fuchsia/build_info.cc | Chilledheart/naiveproxy | 9d28da89b325a90d33add830f4202c8b17c7c3e3 | [
"BSD-3-Clause"
] | null | null | null | src/base/fuchsia/build_info.cc | Chilledheart/naiveproxy | 9d28da89b325a90d33add830f4202c8b17c7c3e3 | [
"BSD-3-Clause"
] | null | null | null | src/base/fuchsia/build_info.cc | Chilledheart/naiveproxy | 9d28da89b325a90d33add830f4202c8b17c7c3e3 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2022 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/fuchsia/build_info.h"
#include <fuchsia/buildinfo/cpp/fidl.h>
#include <lib/sys/cpp/component_context.h>
#include "base/check.h"
#include... | 29.349206 | 79 | 0.764197 | Chilledheart |
687041683b83bc77c9d03a5296a1cd6aee1d3881 | 758 | cpp | C++ | Codeforces/Contest.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | Codeforces/Contest.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | Codeforces/Contest.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | #include <bits/stdc++.h>
template<typename T> T gcd(T a, T b) {
if(!b) return a;
return gcd(b, a % b);
}
template<typename T> T lcm(T a, T b) {
return a * b / gcd(a, b);
}
template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; }
template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ... | 18.047619 | 67 | 0.514512 | aajjbb |
687302306554ccd5dd517a01b6a6b7bf7defe867 | 3,358 | hpp | C++ | libiop/protocols/encoded/lincheck/holographic_lincheck_aux.hpp | alexander-zw/libiop | a2ed2ec2f3e85f29b6035951553b02cb737c817a | [
"MIT"
] | null | null | null | libiop/protocols/encoded/lincheck/holographic_lincheck_aux.hpp | alexander-zw/libiop | a2ed2ec2f3e85f29b6035951553b02cb737c817a | [
"MIT"
] | null | null | null | libiop/protocols/encoded/lincheck/holographic_lincheck_aux.hpp | alexander-zw/libiop | a2ed2ec2f3e85f29b6035951553b02cb737c817a | [
"MIT"
] | null | null | null | /**@file
*****************************************************************************
virtual oracles for holographic lincheck
*****************************************************************************
* @author This file is part of libiop (see AUTHORS)
* @copyright MIT license (see LICENSE file)
*************... | 38.597701 | 104 | 0.715307 | alexander-zw |
6878301ec92764414fc5587b2bcec2906285ee80 | 1,539 | cc | C++ | tcmalloc/internal/environment_test.cc | henrytien/tcmalloc | db9a1852c0ad0cf2701dc39dc745acbf0517dc14 | [
"Apache-2.0"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | tcmalloc/internal/environment_test.cc | henrytien/tcmalloc | db9a1852c0ad0cf2701dc39dc745acbf0517dc14 | [
"Apache-2.0"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | tcmalloc/internal/environment_test.cc | henrytien/tcmalloc | db9a1852c0ad0cf2701dc39dc745acbf0517dc14 | [
"Apache-2.0"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | // Copyright 2019 The TCMalloc 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 33.456522 | 75 | 0.749838 | henrytien |
6878b9cb8aab5ce5e4ae89cff4b488f8e95f4418 | 704 | cpp | C++ | solved/0-b/blind-escape/gen.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/0-b/blind-escape/gen.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/0-b/blind-escape/gen.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <cstdio>
#include <cstdlib>
#include <ctime>
#define MAXT 200
#define MAXM 12
#define MAXN 12
void test_case()
{
int M = rand() % (MAXM - 5) + 6;
int N = rand() % (MAXN - 5) + 6;
printf("%d %d\n", M, N);
for (int i = 0; i < M; ++i) {
for (int j = 0; j < N; ++j) {
char c ... | 17.170732 | 61 | 0.369318 | abuasifkhan |
687c6c3cfe93274ccace579761ac7c8416b3de0a | 3,127 | cpp | C++ | cynosdb/src/v20190107/model/AccountParam.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | cynosdb/src/v20190107/model/AccountParam.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | cynosdb/src/v20190107/model/AccountParam.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 27.919643 | 141 | 0.70323 | suluner |
687d07e8c1276dac163667bba7c337ba8684aafd | 3,038 | cpp | C++ | src/swarmus_turtlebot/src/main.cpp | SwarmUS/SwarmUS-ROS | 7de5de963f2abf7869bddadda222a36242d14ac2 | [
"MIT"
] | 2 | 2020-07-26T01:27:06.000Z | 2021-05-31T04:15:12.000Z | src/swarmus_turtlebot/src/main.cpp | SwarmUS/SwarmUS-ROS | 7de5de963f2abf7869bddadda222a36242d14ac2 | [
"MIT"
] | 6 | 2020-07-20T20:39:26.000Z | 2021-03-15T15:53:32.000Z | src/swarmus_turtlebot/src/main.cpp | SwarmUS/SwarmUS-ROS | 7de5de963f2abf7869bddadda222a36242d14ac2 | [
"MIT"
] | null | null | null | #include "hivemind-bridge/Callback.h"
#include "ros/ros.h"
#include "swarmus_turtlebot/Navigation.hpp"
#include <hivemind-bridge/HiveMindBridge.h>
#include <optional>
#include <pheromones/FunctionCallArgumentDTO.h>
#include <swarmus_turtlebot/Logger.h>
#include <thread>
static const uint8_t RATE_HZ{1};
static const u... | 31.978947 | 97 | 0.681698 | SwarmUS |
6881ad75d750a45b96cbdbb52dead594b1c27699 | 591 | cpp | C++ | lib/jevmachopp/FunctionStartsCommand.cpp | jevinskie/jevmachopp | 840ac614a092aa477f4051ae2f507029b98f8e22 | [
"MIT"
] | 22 | 2021-12-24T16:21:01.000Z | 2022-01-26T16:10:33.000Z | lib/jevmachopp/FunctionStartsCommand.cpp | jevinskie/jevmachopp | 840ac614a092aa477f4051ae2f507029b98f8e22 | [
"MIT"
] | null | null | null | lib/jevmachopp/FunctionStartsCommand.cpp | jevinskie/jevmachopp | 840ac614a092aa477f4051ae2f507029b98f8e22 | [
"MIT"
] | 2 | 2021-12-27T02:16:12.000Z | 2022-01-26T16:10:46.000Z | #include "jevmachopp/FunctionStartsCommand.h"
#pragma mark raw offsets
raw_func_start_range FunctionStartsCommand::raw_offsets(const MachO &macho) const {
return {raw_offsets_cbegin(macho), raw_offsets_cend()};
}
FuncStartIterator FunctionStartsCommand::raw_offsets_cbegin(const MachO &macho) const {
return {... | 25.695652 | 87 | 0.76819 | jevinskie |