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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6c735b5cb0eae44b95032cc897c039a77ac1fa01 | 12,875 | cpp | C++ | Doom/src/Doom/Components/Render3D.cpp | Shturm0weak/OpenGL_Engine | 6e6570f8dd9000724274942fff5a100f0998b780 | [
"MIT"
] | 126 | 2020-10-20T21:39:53.000Z | 2022-01-25T14:43:44.000Z | Doom/src/Doom/Components/Render3D.cpp | Shturm0weak/2D_OpenGL_Engine | 6e6570f8dd9000724274942fff5a100f0998b780 | [
"MIT"
] | 2 | 2021-01-07T17:29:19.000Z | 2021-08-14T14:04:28.000Z | Doom/src/Doom/Components/Render3D.cpp | Shturm0weak/2D_OpenGL_Engine | 6e6570f8dd9000724274942fff5a100f0998b780 | [
"MIT"
] | 16 | 2021-01-09T09:08:40.000Z | 2022-01-25T14:43:46.000Z | #include "../pch.h"
#include "Render3D.h"
#include "../Core/Editor.h"
#include "../Render/Instancing.h"
#include "../Components/PointLight.h"
using namespace Doom;
void Renderer3D::ChangeRenderTechnic(RenderTechnic rt)
{
if (m_IsTransparent) return;
if (rt == RenderTechnic::Instancing)
{
for (auto i = Instancing... | 33.881579 | 134 | 0.71666 | Shturm0weak |
6c739e683ffe3061b2d448fc2a33a103f268d058 | 59,679 | cpp | C++ | source/TheoremProver/ProverExpression.cpp | ubavic/gclc | bf28e4317d4c7a73d39ce3bbdb6f73ea4c6f0c44 | [
"MIT"
] | null | null | null | source/TheoremProver/ProverExpression.cpp | ubavic/gclc | bf28e4317d4c7a73d39ce3bbdb6f73ea4c6f0c44 | [
"MIT"
] | null | null | null | source/TheoremProver/ProverExpression.cpp | ubavic/gclc | bf28e4317d4c7a73d39ce3bbdb6f73ea4c6f0c44 | [
"MIT"
] | null | null | null | #include "ProverExpression.h"
#include "TheoremProver.h"
#include <assert.h>
#include <cmath>
#define EPSILON 0.00001
static unsigned idCounter=0;
Rules CGCLCProverExpression::mRules;
unsigned arity(enum GCLCexperssion_type type) {
switch (type) {
case ep_number:
case ep_point:
case ep_consta... | 29.67628 | 83 | 0.516027 | ubavic |
6c787509fbfdfcd384bddbed541c91b54ab5f40a | 342 | cpp | C++ | messagebus/src/vespa/messagebus/systemtimer.cpp | yehzu/vespa | a439476f948f52a57485f5e7700b17bf9aa73417 | [
"Apache-2.0"
] | 1 | 2018-12-30T05:42:18.000Z | 2018-12-30T05:42:18.000Z | messagebus/src/vespa/messagebus/systemtimer.cpp | yehzu/vespa | a439476f948f52a57485f5e7700b17bf9aa73417 | [
"Apache-2.0"
] | 1 | 2021-03-31T22:27:25.000Z | 2021-03-31T22:27:25.000Z | messagebus/src/vespa/messagebus/systemtimer.cpp | yehzu/vespa | a439476f948f52a57485f5e7700b17bf9aa73417 | [
"Apache-2.0"
] | 1 | 2020-02-01T07:21:28.000Z | 2020-02-01T07:21:28.000Z | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "systemtimer.h"
#include <vespa/fastos/time.h>
namespace mbus {
uint64_t
SystemTimer::getMilliTime() const
{
FastOS_Time time;
time.SetNow();
return (uint64_t)time.MilliSecs();
}... | 21.375 | 118 | 0.72807 | yehzu |
6c787aec2dc1230e4601300a1359407f33d1a329 | 711 | cxx | C++ | reflex/test/implementation/members/GetTest.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 10 | 2018-03-26T07:41:44.000Z | 2021-11-06T08:33:24.000Z | reflex/test/implementation/members/GetTest.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | null | null | null | reflex/test/implementation/members/GetTest.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 1 | 2020-11-17T03:17:00.000Z | 2020-11-17T03:17:00.000Z | // Check getting of members
#include "util/HelperMacros.hpp"
#include "Reflex/Type.h"
#include "Reflex/Member.h"
#include "Get.hpp"
using namespace Reflex;
REFLEX_TEST(test001)
{
// See e.g. https://savannah.cern.ch/bugs/?65759
Type tT = Type::ByName("St<int>::T");
CPPUNIT_ASSERT(tT);
St<int>::A::s = 43;
... | 20.911765 | 51 | 0.652602 | paulwratt |
6c7b4c7e3d4e289295807145a6830bde246f7f86 | 4,130 | cpp | C++ | Map/LRUCache.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | Map/LRUCache.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | 3 | 2020-05-08T18:02:51.000Z | 2020-05-09T08:37:35.000Z | Map/LRUCache.cpp | UltraProton/PlacementPrep | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef struct node{
int key;
int val;
node *left;
node *right;
node(int k,int v): key(k), val(v),left(NULL), right(NULL) {};
} Node;
class LRU_Cache{
public:
Node *dummy_head;
Node *dummy_tail;
int size;
int curr_size;
unorde... | 19.389671 | 71 | 0.528814 | UltraProton |
6c7f11e1db06a72eec821eeca89e1c3dd935ec91 | 1,392 | cpp | C++ | Tools/MultiThreading/code1/Semaphore.cpp | liangjisheng/C-Cpp | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | [
"MIT"
] | 5 | 2019-09-17T09:12:15.000Z | 2021-05-29T10:54:39.000Z | Tools/MultiThreading/code1/Semaphore.cpp | liangjisheng/C-Cpp | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | [
"MIT"
] | null | null | null | Tools/MultiThreading/code1/Semaphore.cpp | liangjisheng/C-Cpp | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | [
"MIT"
] | 2 | 2021-07-26T06:36:12.000Z | 2022-01-23T15:20:30.000Z |
// 多线程资源访问冲突,创建两个线程,按照计数递增的顺序输出计数
#include "windows.h"
#include "stdio.h"
int number = 1;
HANDLE hSemaphore;
unsigned long __stdcall ThreadProc1(void* lpParameter)
{
long count = 0;
while(number < 100)
{
WaitForSingleObject(hSemaphore,INFINITE); // 等待信号量为有信号状态
printf("线程1当前计数:%d\n",number);
number++;
Sle... | 23.59322 | 89 | 0.72342 | liangjisheng |
6c8191b0eec8f18392afd35018c53e2ce8d266ef | 1,082 | cpp | C++ | problemsets/UVA/UVA442.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/UVA/UVA442.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/UVA/UVA442.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | /**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <cmath>
#include <string>
#include <algorithm>
#include <sstream>
#include <map>
#include <set>
#include <queue>
using namespace std;
char S[1000];... | 16.646154 | 42 | 0.499076 | juarezpaulino |
6c85f34a59ccc5b47f8e3940a37ea27fd4ea8d6b | 274 | cpp | C++ | tests/test_lib.cpp | nachovizzo/cpp_starter_project | f77769c903527f75adc9861376038c4bed1e1f2a | [
"MIT"
] | 13 | 2020-10-30T16:05:47.000Z | 2022-02-25T21:31:33.000Z | tests/test_lib.cpp | nachovizzo/cpp_starter_project | f77769c903527f75adc9861376038c4bed1e1f2a | [
"MIT"
] | null | null | null | tests/test_lib.cpp | nachovizzo/cpp_starter_project | f77769c903527f75adc9861376038c4bed1e1f2a | [
"MIT"
] | 14 | 2020-08-26T02:46:23.000Z | 2022-02-25T22:08:49.000Z | // @file test_lib.cpp
// @author Ignacio Vizzo [ivizzo@uni-bonn.de]
//
// Copyright (c) 2020 Ignacio Vizzo, all rights reserved
#include <gtest/gtest.h>
#include "lib/example_lib.hpp"
TEST(Testlib, RemoveThisFile) { EXPECT_NO_THROW(delete_this_file::foo()); }
| 27.4 | 75 | 0.70073 | nachovizzo |
6c868f01888df62407a66e1492ca2df9ca24907b | 176 | cc | C++ | proc/display-env.cc | DavidCai1993/APUE-exercises | 5c5b74d8042176cc07a73380149c831d20da407e | [
"MIT"
] | null | null | null | proc/display-env.cc | DavidCai1993/APUE-exercises | 5c5b74d8042176cc07a73380149c831d20da407e | [
"MIT"
] | null | null | null | proc/display-env.cc | DavidCai1993/APUE-exercises | 5c5b74d8042176cc07a73380149c831d20da407e | [
"MIT"
] | null | null | null | #include <iostream>
#include "../common.h"
int main (int argc, char** argv, char** envp) {
for (char** env = envp; *env != NULL; env++) {
PRINT(*env)
}
return 0;
}
| 16 | 48 | 0.556818 | DavidCai1993 |
6c89545aac41622e2766c1afe06c61c43012ea11 | 6,396 | cpp | C++ | isaac_variant_caller/src/lib/blt_common/blt_arg_parse_util.cpp | sequencing/isaac_variant_caller | ed24e20b097ee04629f61014d3b81a6ea902c66b | [
"BSL-1.0"
] | 21 | 2015-01-09T01:11:28.000Z | 2019-09-04T03:48:21.000Z | isaac_variant_caller/src/lib/blt_common/blt_arg_parse_util.cpp | sequencing/isaac_variant_caller | ed24e20b097ee04629f61014d3b81a6ea902c66b | [
"BSL-1.0"
] | 4 | 2015-07-23T09:38:39.000Z | 2018-02-01T05:37:26.000Z | isaac_variant_caller/src/lib/blt_common/blt_arg_parse_util.cpp | sequencing/isaac_variant_caller | ed24e20b097ee04629f61014d3b81a6ea902c66b | [
"BSL-1.0"
] | 13 | 2015-01-29T16:41:26.000Z | 2021-06-25T02:42:32.000Z | // -*- mode: c++; indent-tabs-mode: nil; -*-
//
// Copyright (c) 2009-2013 Illumina, Inc.
//
// This software is provided under the terms and conditions of the
// Illumina Open Source Software License 1.
//
// You should have received a copy of the Illumina Open Source
// Software License 1 along with this program. If ... | 27.568966 | 113 | 0.601001 | sequencing |
6c8a68c9f007871f961fe495aae755678e3fbf09 | 6,198 | cpp | C++ | melodic/src/ros_comm/xmlrpcpp/test/test_base64.cpp | disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA | 3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0 | [
"BSD-3-Clause"
] | 2 | 2021-07-14T12:33:55.000Z | 2021-11-21T07:14:13.000Z | melodic/src/ros_comm/xmlrpcpp/test/test_base64.cpp | disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA | 3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0 | [
"BSD-3-Clause"
] | null | null | null | melodic/src/ros_comm/xmlrpcpp/test/test_base64.cpp | disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA | 3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0 | [
"BSD-3-Clause"
] | null | null | null | /*
* Unit tests for XmlRpc++
*
* Copyright (C) 2017, Zoox Inc
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later ... | 37.337349 | 80 | 0.586641 | disorn-inc |
6c8aa1b3180a2b61d132ea2cf5ffd4c304c7be91 | 480 | cpp | C++ | oops/objectAsArgument.cpp | misrapk/C-Basic-Codes | 4d959576a15b3846f3c1fd5c870c6821d8a90ecc | [
"MIT"
] | null | null | null | oops/objectAsArgument.cpp | misrapk/C-Basic-Codes | 4d959576a15b3846f3c1fd5c870c6821d8a90ecc | [
"MIT"
] | null | null | null | oops/objectAsArgument.cpp | misrapk/C-Basic-Codes | 4d959576a15b3846f3c1fd5c870c6821d8a90ecc | [
"MIT"
] | null | null | null | // pass object as argument
#include<iostream>
using namespace std;
class test{
int var;
public:
test(int i){
var = i;
cout<<"CONSTRUCTING "<<var<<"\n";
}
~test(){
cout<<"Destructing "<<var<<"\n";
}
int get(){
return var;
}
};
void f(test t);
int main(){
test ob1(10);
cout<<"In LO... | 12.307692 | 43 | 0.54375 | misrapk |
6c991a9eb542b7004cce5341ba54b95256aa5e2d | 48 | cpp | C++ | Dechetterie-Librairie/ControlIPBox.cpp | Norskel/Dechetterie | 343c4b97b7ea5f0dbb3394168e2a75d2a6b538e6 | [
"Apache-2.0"
] | 2 | 2018-04-05T11:02:00.000Z | 2019-01-26T17:55:20.000Z | Dechetterie-Librairie/ControlIPBox.cpp | Norskel/Dechetterie | 343c4b97b7ea5f0dbb3394168e2a75d2a6b538e6 | [
"Apache-2.0"
] | null | null | null | Dechetterie-Librairie/ControlIPBox.cpp | Norskel/Dechetterie | 343c4b97b7ea5f0dbb3394168e2a75d2a6b538e6 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "ControlIPBox.h"
| 16 | 26 | 0.708333 | Norskel |
6c9d79ab3ba2a98cbf2dcb57dcf62896e9e7db5e | 1,239 | cpp | C++ | src/IContentProcessor.cpp | RudiBik/flexgrep | d7bb07350693f129481572f41639df95f8a03261 | [
"BSD-3-Clause"
] | 4 | 2022-02-11T18:43:55.000Z | 2022-02-19T09:50:09.000Z | src/IContentProcessor.cpp | RudiBik/flexgrep | d7bb07350693f129481572f41639df95f8a03261 | [
"BSD-3-Clause"
] | null | null | null | src/IContentProcessor.cpp | RudiBik/flexgrep | d7bb07350693f129481572f41639df95f8a03261 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2022, Rudi Bikschentajew
// 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.
#include <ContentProcessors/IContentProcessor.hpp>
// filters
#include <PathFilter/ContentRegexFilter.hpp>
// proces... | 29.5 | 82 | 0.722357 | RudiBik |
6c9d90ca07975645563dbbc418b295bc10d653bb | 3,357 | hpp | C++ | ocs2_thirdparty/include/cppad/cg/math_other.hpp | grizzi/ocs2 | 4b78c4825deb8b2efc992fdbeef6fdb1fcca2345 | [
"BSD-3-Clause"
] | 126 | 2021-07-13T13:59:12.000Z | 2022-03-31T02:52:18.000Z | ct_core/include/external/cppad/cg/math_other.hpp | ADVRHumanoids/ct | 774ad978c032fda0ef3c2eed0dc3f25f829df7f8 | [
"Apache-2.0"
] | 27 | 2021-07-14T12:14:04.000Z | 2022-03-30T16:27:52.000Z | ct_core/include/external/cppad/cg/math_other.hpp | ADVRHumanoids/ct | 774ad978c032fda0ef3c2eed0dc3f25f829df7f8 | [
"Apache-2.0"
] | 55 | 2021-07-14T07:08:47.000Z | 2022-03-31T15:54:30.000Z | #ifndef CPPAD_CG_MATH_OTHER_INCLUDED
#define CPPAD_CG_MATH_OTHER_INCLUDED
/* --------------------------------------------------------------------------
* CppADCodeGen: C++ Algorithmic Differentiation with Source Code Generation:
* Copyright (C) 2012 Ciengis
*
* CppADCodeGen is distributed under multiple licens... | 32.592233 | 86 | 0.483467 | grizzi |
6c9e5c1b0893a9b1645b1c62b4dde6594351c532 | 25,694 | cpp | C++ | src/compile/BrainfuckCompiler.cpp | nbozidarevic/freud | d16f1930abef0360a8cd0f863a6c003f080b11c3 | [
"MIT"
] | null | null | null | src/compile/BrainfuckCompiler.cpp | nbozidarevic/freud | d16f1930abef0360a8cd0f863a6c003f080b11c3 | [
"MIT"
] | null | null | null | src/compile/BrainfuckCompiler.cpp | nbozidarevic/freud | d16f1930abef0360a8cd0f863a6c003f080b11c3 | [
"MIT"
] | null | null | null | #include "BrainfuckCompiler.h"
using namespace antlr4;
BrainfuckCompiler::BrainfuckCompiler(
istream& input,
ostream& output
):input(input), output(output) {
pointer = 0;
}
void BrainfuckCompiler::run() {
ANTLRInputStream antlrInput(input);
SimpleCLexer lexer(&antlrInput);
CommonTokenStream tokens(&lexer... | 29.533333 | 159 | 0.625866 | nbozidarevic |
6c9fc41e386bca87f22fcff5268fa39d7a5403ec | 67,288 | cpp | C++ | RenderCore/LightingEngine/SunSourceConfiguration.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | 3 | 2015-12-04T09:16:53.000Z | 2021-05-28T23:22:49.000Z | RenderCore/LightingEngine/SunSourceConfiguration.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | null | null | null | RenderCore/LightingEngine/SunSourceConfiguration.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | 2 | 2015-03-03T05:32:39.000Z | 2015-12-04T09:16:54.000Z | // Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "SunSourceConfiguration.h"
#include "ShadowPreparer.h"
#include "ShadowUniforms.h" // for the attach driver infrastructure
#include "../Techniques/TechniqueUtils.h... | 55.518152 | 273 | 0.64918 | djewsbury |
6ca0c40ea75d9eb9f0aa57c35c1debc98de28fc0 | 236 | cpp | C++ | hexmap_qt/hexmap_widgets/layers_widget.cpp | mflagel/asdf_multiplat | 9ef5a87b9ea9e38a7c6d409a60a1b8c5dce4b015 | [
"MIT"
] | null | null | null | hexmap_qt/hexmap_widgets/layers_widget.cpp | mflagel/asdf_multiplat | 9ef5a87b9ea9e38a7c6d409a60a1b8c5dce4b015 | [
"MIT"
] | null | null | null | hexmap_qt/hexmap_widgets/layers_widget.cpp | mflagel/asdf_multiplat | 9ef5a87b9ea9e38a7c6d409a60a1b8c5dce4b015 | [
"MIT"
] | null | null | null | #include "layers_widget.h"
#include "ui_layers_widget.h"
layers_widget::layers_widget(QWidget *parent) :
QWidget(parent),
ui(new Ui::layers_widget)
{
ui->setupUi(this);
}
layers_widget::~layers_widget()
{
delete ui;
}
| 15.733333 | 47 | 0.694915 | mflagel |
6ca0f22618c23c604f397957a568e303ea6debd9 | 1,313 | cc | C++ | examples/cube/shader.cc | cristiandonosoc/rothko | 0d488e10cc3b4150f638da9cf6711e66ba19b1c5 | [
"MIT",
"BSL-1.0",
"BSD-4-Clause",
"Unlicense"
] | 5 | 2019-05-26T00:04:06.000Z | 2020-12-28T19:20:12.000Z | examples/cube/shader.cc | cristiandonosoc/rothko | 0d488e10cc3b4150f638da9cf6711e66ba19b1c5 | [
"MIT",
"BSL-1.0",
"BSD-4-Clause",
"Unlicense"
] | null | null | null | examples/cube/shader.cc | cristiandonosoc/rothko | 0d488e10cc3b4150f638da9cf6711e66ba19b1c5 | [
"MIT",
"BSL-1.0",
"BSD-4-Clause",
"Unlicense"
] | 1 | 2019-06-02T19:35:59.000Z | 2019-06-02T19:35:59.000Z | // Copyright 2019, Cristián Donoso.
// This code has a BSD license. See LICENSE.
#include "shader.h"
#include <rothko/graphics/renderer.h>
#include <rothko/graphics/shader.h>
using namespace rothko;
namespace {
constexpr char kVertexShader[] = R"(
layout (location = 0) in vec3 in_pos;
layout (location = 1) in vec2... | 21.177419 | 76 | 0.714395 | cristiandonosoc |
6ca180b6b8021c8ae97a451a9e5e3b0b9c7135cf | 3,132 | cpp | C++ | aws-cpp-sdk-discovery/source/model/ConfigurationItemType.cpp | ploki/aws-sdk-cpp | 17074e3e48c7411f81294e2ee9b1550c4dde842c | [
"Apache-2.0"
] | 1 | 2020-07-16T19:03:13.000Z | 2020-07-16T19:03:13.000Z | aws-cpp-sdk-discovery/source/model/ConfigurationItemType.cpp | ploki/aws-sdk-cpp | 17074e3e48c7411f81294e2ee9b1550c4dde842c | [
"Apache-2.0"
] | 18 | 2018-05-15T16:41:07.000Z | 2018-05-21T00:46:30.000Z | aws-cpp-sdk-discovery/source/model/ConfigurationItemType.cpp | ploki/aws-sdk-cpp | 17074e3e48c7411f81294e2ee9b1550c4dde842c | [
"Apache-2.0"
] | 1 | 2021-10-01T15:29:44.000Z | 2021-10-01T15:29:44.000Z | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 32.968421 | 92 | 0.650383 | ploki |
6ca1cbca5195b189848190e63ff5b7e93c5e443a | 3,044 | hxx | C++ | admin/select/src/lookindlg.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/select/src/lookindlg.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/select/src/lookindlg.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+--------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1994 - 1998.
//
// File: LookInDlg.hxx
//
// Contents: Definition of class to display a dialog representing the
// scope hierarchy contained in a... | 22.382353 | 78 | 0.477661 | npocmaka |
6ca44e702932fe6856b48abbf58f0668a4ede6f5 | 1,445 | cpp | C++ | willow/src/popx/op/castx.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 61 | 2020-07-06T17:11:46.000Z | 2022-03-12T14:42:51.000Z | willow/src/popx/op/castx.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 1 | 2021-02-25T01:30:29.000Z | 2021-11-09T11:13:14.000Z | willow/src/popx/op/castx.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 6 | 2020-07-15T12:33:13.000Z | 2021-11-07T06:55:00.000Z | // Copyright (c) 2019 Graphcore Ltd. All rights reserved.
#include <popops/Cast.hpp>
#include <popart/error.hpp>
#include <popart/op/cast.hpp>
#include <popart/popx/devicex.hpp>
#include <popart/popx/op/castx.hpp>
#include <popart/popx/opxmanager.hpp>
namespace popart {
namespace popx {
CastOpx::CastOpx(Op *op, Devic... | 32.840909 | 78 | 0.635986 | gglin001 |
6ca55b8172df1983bf31dab2fb2ed597fb9e16f7 | 3,015 | cpp | C++ | src/sigevent.cpp | drcforbin/rwte | e1527369fa46c8ae92cd92269d3820c631771a8b | [
"MIT"
] | 9 | 2017-06-25T03:01:04.000Z | 2022-01-01T19:03:26.000Z | src/sigevent.cpp | drcforbin/rwte | e1527369fa46c8ae92cd92269d3820c631771a8b | [
"MIT"
] | null | null | null | src/sigevent.cpp | drcforbin/rwte | e1527369fa46c8ae92cd92269d3820c631771a8b | [
"MIT"
] | 2 | 2019-03-07T21:18:44.000Z | 2019-08-27T08:44:14.000Z | #include "rw/logging.h"
#include "rwte/sigevent.h"
#include <array>
#include <atomic>
#include <cassert>
#include <cstddef>
#include <errno.h>
#include <signal.h>
#include <sys/eventfd.h>
#include <unistd.h>
#define LOGGER() (rw::logging::get("sigevent"))
// todo: clean up all these exposed errors
static std::atomi... | 25.991379 | 97 | 0.6 | drcforbin |
6ca7a614a69203b0a2b9898b8243b576ad16ad4e | 726 | cpp | C++ | Dynamic Programming/integer-knapsack.cpp | chaitanyarahalkar/Algorithms | 27c7f952645afccab12d89c025d69a427c36550f | [
"MIT"
] | 3 | 2021-07-22T12:43:59.000Z | 2021-07-23T16:34:54.000Z | Dynamic Programming/integer-knapsack.cpp | chaitanyarahalkar/Algorithms | 27c7f952645afccab12d89c025d69a427c36550f | [
"MIT"
] | null | null | null | Dynamic Programming/integer-knapsack.cpp | chaitanyarahalkar/Algorithms | 27c7f952645afccab12d89c025d69a427c36550f | [
"MIT"
] | 1 | 2020-05-03T13:56:55.000Z | 2020-05-03T13:56:55.000Z | #include <iostream>
using std::cout;
using std::max;
int integer_knapsack(int capacity,int weights[],int values[],int n){
int table[n+1][capacity+1];
for(int i = 0; i <= n;i++){
for(int w = 0; w <= capacity; w++){
if(i == 0 || w == 0)
table[i][w] = 0;
else if(weights[i-1] <= w)
table[i][w] = max... | 19.105263 | 80 | 0.57989 | chaitanyarahalkar |
6ca9045f3755a0df5d5a0703cf04eb202eb500a9 | 11,222 | cc | C++ | src/formats/bddbinary.cc | nerdling/SBSAT | 6328c6aa105b75693d06bf0dae4a3b5ca220318b | [
"Unlicense"
] | 4 | 2015-03-08T07:56:29.000Z | 2017-10-12T04:19:27.000Z | src/formats/bddbinary.cc | nerdling/SBSAT | 6328c6aa105b75693d06bf0dae4a3b5ca220318b | [
"Unlicense"
] | null | null | null | src/formats/bddbinary.cc | nerdling/SBSAT | 6328c6aa105b75693d06bf0dae4a3b5ca220318b | [
"Unlicense"
] | null | null | null |
/* =========FOR INTERNAL USE ONLY. NO DISTRIBUTION PLEASE ========== */
/*********************************************************************
Copyright 1999-2007, University of Cincinnati. All rights reserved.
By using this software the USER indicates that he or she has read,
understood and will comply with the ... | 35.178683 | 101 | 0.652825 | nerdling |
6caba64a04f07f235d33c3225a050f1cc5819285 | 2,206 | cpp | C++ | LLVMPasses/UsedInAsm.cpp | MuhammadAbuBakar95/kernel-specialization | 1b802e64d37b0aa629197cec72760a0a445a9e33 | [
"BSD-3-Clause"
] | 2 | 2020-08-25T12:01:56.000Z | 2021-09-24T04:18:08.000Z | LLVMPasses/UsedInAsm.cpp | MuhammadAbuBakar95/kernel-specialization | 1b802e64d37b0aa629197cec72760a0a445a9e33 | [
"BSD-3-Clause"
] | 2 | 2018-10-08T23:27:57.000Z | 2018-10-12T16:42:48.000Z | LLVMPasses/UsedInAsm.cpp | MuhammadAbuBakar95/kernel-specialization | 1b802e64d37b0aa629197cec72760a0a445a9e33 | [
"BSD-3-Clause"
] | 4 | 2019-04-18T13:14:06.000Z | 2020-12-16T10:16:21.000Z |
#include "llvm/IR/Function.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Instructions.h"
#include "llvm/Pass.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Operator.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/Support/CommandLine.h"
#include <llvm/Analysis/LoopInfo.h... | 30.219178 | 104 | 0.547597 | MuhammadAbuBakar95 |
6cade4592b030523b3609b142c7310e57176860c | 4,057 | cpp | C++ | EpLibrary2.0/EpLibrary/Sources/epSemaphore.cpp | juhgiyo/EpLibrary | 130c3ec3fdd4af829c63f0f8b142d0cc3349100e | [
"Unlicense",
"MIT"
] | 34 | 2015-01-01T12:08:15.000Z | 2022-03-19T15:34:41.000Z | EpLibrary2.0/EpLibrary/Sources/epSemaphore.cpp | darongE/EpLibrary | a637612ceff19e4106c7972ce1bca3ccfe666087 | [
"Unlicense",
"MIT"
] | 1 | 2021-01-26T05:07:27.000Z | 2021-01-26T05:19:45.000Z | EpLibrary2.0/EpLibrary/Sources/epSemaphore.cpp | darongE/EpLibrary | a637612ceff19e4106c7972ce1bca3ccfe666087 | [
"Unlicense",
"MIT"
] | 25 | 2015-01-17T19:27:57.000Z | 2021-11-17T06:26:20.000Z | /*!
Semaphore for the EpLibrary
The MIT License (MIT)
Copyright (c) 2008-2013 Woong Gyu La <juhgiyo@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including wit... | 25.515723 | 122 | 0.774957 | juhgiyo |
6cb7a89676cdb366136c5de68f80b8c22182930a | 14,646 | cpp | C++ | camserver/src/main.cpp | dhm-org/dhm_suite | 19f803fbe973bebf9bd63994e58ea94f475ba3f6 | [
"Apache-2.0"
] | 4 | 2019-10-08T22:23:45.000Z | 2021-03-08T08:14:11.000Z | camserver/src/main.cpp | dhm-org/dhm_suite | 19f803fbe973bebf9bd63994e58ea94f475ba3f6 | [
"Apache-2.0"
] | 24 | 2019-06-18T21:57:32.000Z | 2020-10-13T21:39:53.000Z | camserver/src/main.cpp | dhm-org/dhm_suite | 19f803fbe973bebf9bd63994e58ea94f475ba3f6 | [
"Apache-2.0"
] | null | null | null | /**
******************************************************************************
Copyright 2019, by the California Institute of Technology. ALL RIGHTS RESERVED.
United States Government Sponsorship acknowledged. Any commercial use must be
negotiated with the Office of Technology Transfer at the
California... | 34.13986 | 182 | 0.586645 | dhm-org |
6cb9dd7de20db5165a1d2b1005291090897e7a38 | 1,683 | cpp | C++ | Tree/Childsumparent.cpp | Anirban166/GeeksforGeeks | 3b0f4a5a5c9476477e5920692258c097b20b64a0 | [
"MIT"
] | 19 | 2019-07-22T06:23:36.000Z | 2021-09-12T13:01:41.000Z | Tree/Childsumparent.cpp | Anirban166/GeeksforGeeks | 3b0f4a5a5c9476477e5920692258c097b20b64a0 | [
"MIT"
] | null | null | null | Tree/Childsumparent.cpp | Anirban166/GeeksforGeeks | 3b0f4a5a5c9476477e5920692258c097b20b64a0 | [
"MIT"
] | 3 | 2019-10-10T03:41:06.000Z | 2020-05-05T08:27:46.000Z | #include<bits/stdc++.h>
using namespace std;
struct Node
{
int data;
struct Node* left;
struct Node* right;
Node(int x){
data = x;
left = right = NULL;
}
};
void insert(Node *root,int a1,int a2,char lr){
if(root==NULL){
return;
}
if(root->data==a1){
switch(lr){
case 'L... | 17.53125 | 87 | 0.576352 | Anirban166 |
6cbcef723672032c7692adc6bfce02f9b30c4a79 | 2,116 | cpp | C++ | Solutions/jumpGame.II.cpp | VenkataAnilKumar/LeetCode | df6d9e4b7172266bef4bc1f771fce3abb2216298 | [
"Fair"
] | 1 | 2020-10-30T07:10:23.000Z | 2020-10-30T07:10:23.000Z | Solutions/jumpGame.II.cpp | VenkataAnilKumar/LeetCode | df6d9e4b7172266bef4bc1f771fce3abb2216298 | [
"Fair"
] | null | null | null | Solutions/jumpGame.II.cpp | VenkataAnilKumar/LeetCode | df6d9e4b7172266bef4bc1f771fce3abb2216298 | [
"Fair"
] | null | null | null | // Source : https://oj.leetcode.com/problems/jump-game-ii/
// Author : Venkata Anil Kumar
/**********************************************************************************
*
* Given an array of non-negative integers, you are initially positioned at the first index of the array.
*
* Each element in the array repre... | 23.511111 | 104 | 0.469754 | VenkataAnilKumar |
6cbd9aff77171b28f395acf889c57e13e4cc803c | 18,513 | hpp | C++ | TestFile.hpp | tyson3822/IdentifyCardNumberRecognition | ce7885e0de1529d9360427380119b6df49d4cfb9 | [
"Apache-2.0"
] | null | null | null | TestFile.hpp | tyson3822/IdentifyCardNumberRecognition | ce7885e0de1529d9360427380119b6df49d4cfb9 | [
"Apache-2.0"
] | null | null | null | TestFile.hpp | tyson3822/IdentifyCardNumberRecognition | ce7885e0de1529d9360427380119b6df49d4cfb9 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <string>
#include <iomanip>
using namespace std;
#define PRINT_COUNT 0
#define PRINT_RESULT 1
#include "opencv2/core/utility.hpp"
#include "opencv2/core/ocl.hpp"
#include "opencv2/video/tracking.hpp"
#include "ope... | 30.499176 | 147 | 0.50975 | tyson3822 |
6cc1223883c6cd22235d00a96d89560f945cb7d4 | 1,952 | hpp | C++ | MartrixGoC++/include/BoardEncode.hpp | MartrixG/GraduationProject | 3f82a48ba27159ae0a1c67b3c441d4d1378543e5 | [
"MIT"
] | null | null | null | MartrixGoC++/include/BoardEncode.hpp | MartrixG/GraduationProject | 3f82a48ba27159ae0a1c67b3c441d4d1378543e5 | [
"MIT"
] | null | null | null | MartrixGoC++/include/BoardEncode.hpp | MartrixG/GraduationProject | 3f82a48ba27159ae0a1c67b3c441d4d1378543e5 | [
"MIT"
] | null | null | null | //
// Created by 11409 on 2021/4/23.
//
#ifndef MARTRIXGOC_BOARDENCODE_HPP
#define MARTRIXGOC_BOARDENCODE_HPP
#include <cstring>
#include <iostream>
#include <fstream>
#include "Game.hpp"
static std::string boardEncode(Game* game)
{
static std::stringstream ss;
ss.clear();
ss.str("");
int state[5][BO... | 25.684211 | 74 | 0.527664 | MartrixG |
6cc325f6c9e6a7d552dc0e5498b82c313c0c38fd | 75 | cpp | C++ | render/RenderTest/Main.cpp | don-reba/colors-visualization | fe3937087be79715307127591a06f38b4647254f | [
"BSD-3-Clause"
] | null | null | null | render/RenderTest/Main.cpp | don-reba/colors-visualization | fe3937087be79715307127591a06f38b4647254f | [
"BSD-3-Clause"
] | null | null | null | render/RenderTest/Main.cpp | don-reba/colors-visualization | fe3937087be79715307127591a06f38b4647254f | [
"BSD-3-Clause"
] | null | null | null | #define BOOST_TEST_MODULE Offline Test
#include <boost/test/unit_test.hpp> | 37.5 | 39 | 0.826667 | don-reba |
6cc4ecc5555f7d2798d120ec5260f5544e4061b6 | 1,967 | cpp | C++ | salmap_rv/src/exec_graph.cpp | flyingfalling/salmap_rv | 61827a42f456afcd9c930646de33bc3f9533e3e2 | [
"MIT"
] | 1 | 2022-02-17T03:05:40.000Z | 2022-02-17T03:05:40.000Z | salmap_rv/src/exec_graph.cpp | flyingfalling/salmap_rv | 61827a42f456afcd9c930646de33bc3f9533e3e2 | [
"MIT"
] | null | null | null | salmap_rv/src/exec_graph.cpp | flyingfalling/salmap_rv | 61827a42f456afcd9c930646de33bc3f9533e3e2 | [
"MIT"
] | null | null | null | #include <salmap_rv/include/exec_graph.hpp>
#include <salmap_rv/include/featfilterimpl.hpp>
using namespace salmap_rv;
void salmap_rv::exec_graph::fill_atomic_filters()
{
atomic_filters = deps.atomic_filters();
}
void salmap_rv::exec_graph::clear()
{
deps.clear();
atomic_filters.clear();
avail_filters.cle... | 17.5625 | 77 | 0.683274 | flyingfalling |
6cc8ff9a7f7b11f987c8e7bcaf228de007838138 | 1,188 | cpp | C++ | min_steps.cpp | Nik404/Dynamic-Prograamming | e6ba4901107332189d78fb8c426ee6f82bfc99c8 | [
"MIT"
] | 1 | 2020-09-11T05:22:37.000Z | 2020-09-11T05:22:37.000Z | min_steps.cpp | Nik404/Dynamic-Prograamming | e6ba4901107332189d78fb8c426ee6f82bfc99c8 | [
"MIT"
] | null | null | null | min_steps.cpp | Nik404/Dynamic-Prograamming | e6ba4901107332189d78fb8c426ee6f82bfc99c8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <climits>
using namespace std;
int minSteps2(int n,int *arr){
if(n == 1){
return 0;
}
if(arr[n] > 0){
return arr[n];
}
int ans = 1 + minSteps2(n-1,arr);
if(n % 2 == 0){
ans = min(ans,1 + minSteps2(n/2,arr));
}
if(n %3 == 0){
ans = min(ans,1 + minSteps2(n... | 17.470588 | 73 | 0.508418 | Nik404 |
6cc95afda298bbab2913be6eaf98c9ebd24cb322 | 5,559 | cc | C++ | google-tv-pairing-protocol/cpp/tests/polo/pairing/polochallengeresponsetest.cc | Keneral/ae1 | e5bbf05e3a01b449f33cca14c5ce8048df45624b | [
"Unlicense"
] | null | null | null | google-tv-pairing-protocol/cpp/tests/polo/pairing/polochallengeresponsetest.cc | Keneral/ae1 | e5bbf05e3a01b449f33cca14c5ce8048df45624b | [
"Unlicense"
] | null | null | null | google-tv-pairing-protocol/cpp/tests/polo/pairing/polochallengeresponsetest.cc | Keneral/ae1 | e5bbf05e3a01b449f33cca14c5ce8048df45624b | [
"Unlicense"
] | null | null | null | // Copyright 2012 Google Inc. 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... | 36.572368 | 79 | 0.74132 | Keneral |
6cdc844b334237b22d179c429c79289be2e528d5 | 26,327 | hpp | C++ | Examples/Injection/Calculation_component/Bindings/CppDynamic/calculation_dynamic.hpp | anpilog/AutomaticComponentToolkit | d0c0260908f1d9191789c1ed812e982194427a04 | [
"BSD-2-Clause"
] | 22 | 2018-12-12T14:55:48.000Z | 2022-02-17T11:59:28.000Z | Examples/Injection/Calculation_component/Bindings/CppDynamic/calculation_dynamic.hpp | anpilog/AutomaticComponentToolkit | d0c0260908f1d9191789c1ed812e982194427a04 | [
"BSD-2-Clause"
] | 77 | 2018-12-14T15:05:57.000Z | 2021-12-16T15:29:17.000Z | Examples/Injection/Calculation_component/Bindings/CppDynamic/calculation_dynamic.hpp | anpilog/AutomaticComponentToolkit | d0c0260908f1d9191789c1ed812e982194427a04 | [
"BSD-2-Clause"
] | 20 | 2018-12-14T14:22:19.000Z | 2021-09-08T02:17:33.000Z | /*++
Copyright (C) 2019 Calculation developers
All rights reserved.
This file has been generated by the Automatic Component Toolkit (ACT) version 1.6.0.
Abstract: This is an autogenerated C++-Header file in order to allow an easy
use of Calculation library
Interface version: 1.0.0
*/
#ifndef __CALCULATION_CPPHE... | 36.113855 | 171 | 0.708246 | anpilog |
6cdd0700835acce3b9f0a7eecc334691a0caa36b | 1,418 | cpp | C++ | master/master_thread.cpp | RickAi/csci5570 | 2814c0a6bf608c73bf81d015d13e63443470e457 | [
"Apache-2.0"
] | 7 | 2019-04-09T16:25:49.000Z | 2021-12-07T10:29:52.000Z | master/master_thread.cpp | RickAi/csci5570 | 2814c0a6bf608c73bf81d015d13e63443470e457 | [
"Apache-2.0"
] | null | null | null | master/master_thread.cpp | RickAi/csci5570 | 2814c0a6bf608c73bf81d015d13e63443470e457 | [
"Apache-2.0"
] | 4 | 2019-08-07T07:43:27.000Z | 2021-05-21T07:54:14.000Z |
//
// Created by aiyongbiao on 2018/11/10.
//
#include <base/node.hpp>
#include "master_thread.hpp"
#include "glog/logging.h"
namespace minips {
void MasterThread::Main() {
Init();
while (serving_) {
Message msg;
work_queue_.WaitAndPop(&msg);
if (msg.meta.fl... | 30.170213 | 96 | 0.483075 | RickAi |
6cdd5dc76cd908597ac166ac042fbb769a0e0e65 | 3,338 | cpp | C++ | debugger/cinder/blocks/PretzelGui/src/modules/PretzelTextField.cpp | VincentPT/xscript | cea6ee9e8c5af87af75188695ffa89080dce49b8 | [
"MIT"
] | 2 | 2019-03-05T09:57:54.000Z | 2022-02-14T12:42:01.000Z | src/cinder/blocks/PretzelGui/src/modules/PretzelTextField.cpp | VincentPT/buzz | edaaf4b60e8ef94eda63471ddfb1afd285b6ab38 | [
"MIT"
] | null | null | null | src/cinder/blocks/PretzelGui/src/modules/PretzelTextField.cpp | VincentPT/buzz | edaaf4b60e8ef94eda63471ddfb1afd285b6ab38 | [
"MIT"
] | 1 | 2019-12-24T22:24:01.000Z | 2019-12-24T22:24:01.000Z | #include "PretzelTextField.h"
#include "cinder/app/App.h"
#include "cinder/app/Window.h"
#include "cinder/Utilities.h"
//#include "NSCursor.h"
using namespace ci;
using namespace ci::app;
using namespace std;
namespace pretzel{
PretzelTextField::PretzelTextField(BasePretzel *parent, std::string labelText, std::strin... | 31.490566 | 135 | 0.632415 | VincentPT |
6cdf627a815fdfcb3290bbf8b3724d31c7686ac2 | 4,345 | cpp | C++ | engine/foundation/osal/thread/task.cpp | openharmony-gitee-mirror/multimedia_histreamer | 4ef8cea6605de39f058f158a03d8f57a51b338ff | [
"Apache-2.0"
] | 1 | 2021-12-03T13:55:09.000Z | 2021-12-03T13:55:09.000Z | engine/foundation/osal/thread/task.cpp | openharmony-gitee-mirror/multimedia_histreamer | 4ef8cea6605de39f058f158a03d8f57a51b338ff | [
"Apache-2.0"
] | null | null | null | engine/foundation/osal/thread/task.cpp | openharmony-gitee-mirror/multimedia_histreamer | 4ef8cea6605de39f058f158a03d8f57a51b338ff | [
"Apache-2.0"
] | 1 | 2021-09-13T11:18:18.000Z | 2021-09-13T11:18:18.000Z | /*
* Copyright (c) 2021-2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 31.035714 | 118 | 0.635903 | openharmony-gitee-mirror |
6ce05210fa239fcfafda723fa83f2ebdb5b58742 | 2,130 | cc | C++ | chrome/browser/sync/sessions/browser_list_router_helper.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/sync/sessions/browser_list_router_helper.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chrome/browser/sync/sessions/browser_list_router_helper.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/sync/sessions/browser_list_router_helper.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
... | 31.791045 | 73 | 0.73615 | zealoussnow |
6ce4129fd2d4dae8e467330a9ca1f2a9e7b5370b | 667 | cpp | C++ | LeetCode/Solutions/LC0494.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 54 | 2019-05-13T12:13:09.000Z | 2022-02-27T02:59:00.000Z | LeetCode/Solutions/LC0494.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 2 | 2020-10-02T07:16:43.000Z | 2020-10-19T04:36:19.000Z | LeetCode/Solutions/LC0494.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 20 | 2020-05-26T09:48:13.000Z | 2022-03-18T15:18:27.000Z | /*
Problem Statement: https://leetcode.com/problems/target-sum/
Time: O(n • k)
Space: O(n • k)
Author: Mohammed Shoaib, github.com/Mohammed-Shoaib
*/
class Solution {
public:
int findTargetSumWays(vector<int>& nums, int S) {
int n, k, sum;
n = nums.size();
sum = accumulate(nums.begin(), nums.end(), 0);
k = 2 ... | 19.617647 | 60 | 0.547226 | Mohammed-Shoaib |
6ce8248920b7bd8fbccc61129ee19c620424980a | 27,192 | cxx | C++ | dune/xt/data/spherical_quadratures/octant_quadrature/data/order_12.cxx | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:09:11.000Z | 2020-02-08T04:09:11.000Z | dune/xt/data/spherical_quadratures/octant_quadrature/data/order_12.cxx | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 40 | 2018-08-26T08:34:34.000Z | 2021-09-28T13:01:55.000Z | dune/xt/data/spherical_quadratures/octant_quadrature/data/order_12.cxx | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:10:14.000Z | 2020-02-08T04:10:14.000Z | // This file is part of the dune-xt-data project:
// https://github.com/dune-community/dune-xt-data
// Copyright 2009-2018 dune-xt-data developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensou... | 103 | 117 | 0.585613 | dune-community |
6cf04dc582180cbf87dc84748ac7563cf09ebbf6 | 1,028 | cxx | C++ | examples/c++/eldriver.cxx | moredu/upm | d6f76ff8c231417666594214679c49399513112e | [
"MIT"
] | 619 | 2015-01-14T23:50:18.000Z | 2019-11-08T14:04:33.000Z | examples/c++/eldriver.cxx | moredu/upm | d6f76ff8c231417666594214679c49399513112e | [
"MIT"
] | 576 | 2015-01-02T09:55:14.000Z | 2019-11-12T15:31:10.000Z | examples/c++/eldriver.cxx | moredu/upm | d6f76ff8c231417666594214679c49399513112e | [
"MIT"
] | 494 | 2015-01-14T18:33:56.000Z | 2019-11-07T10:08:15.000Z | /*
* Author: Zion Orent <zorent@ics.com>
* Copyright (c) 2015 Intel Corporation.
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
#include <iostream>
#include <sign... | 18.690909 | 74 | 0.634241 | moredu |
6cf7eecdcba0df7320019d9942f81fbee6a79ab5 | 1,112 | cpp | C++ | website/archive/binaries/mac/src/clustalw/src/tree/RandomGenerator.cpp | homiak/jabaws | f9c48c1311a07bffd99866f3d70a82e889f10493 | [
"Apache-2.0"
] | null | null | null | website/archive/binaries/mac/src/clustalw/src/tree/RandomGenerator.cpp | homiak/jabaws | f9c48c1311a07bffd99866f3d70a82e889f10493 | [
"Apache-2.0"
] | null | null | null | website/archive/binaries/mac/src/clustalw/src/tree/RandomGenerator.cpp | homiak/jabaws | f9c48c1311a07bffd99866f3d70a82e889f10493 | [
"Apache-2.0"
] | null | null | null | /**
* Author: Mark Larkin
*
* Copyright (c) 2007 Des Higgins, Julie Thompson and Toby Gibson.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "RandomGenerator.h"
namespace clustalw
{
/**
* The contructor initialises the random algorithm.
* @param s
* @return
*/
RandomGenerator::RandomGene... | 16.848485 | 69 | 0.530576 | homiak |
6cf8cefd2d510fe6e1c474dec747ec11b2703926 | 2,006 | cpp | C++ | DeepSpace/src/main/cpp/commands/LineTrackerFollowLine.cpp | NorthernForce/DeepSpace | b8446f0fb732e7df030970332574e13d94e79df9 | [
"MIT"
] | 3 | 2019-01-08T00:09:56.000Z | 2020-03-12T03:05:20.000Z | DeepSpace/src/main/cpp/commands/LineTrackerFollowLine.cpp | NorthernForce/DeepSpace | b8446f0fb732e7df030970332574e13d94e79df9 | [
"MIT"
] | 12 | 2019-01-17T00:33:54.000Z | 2019-06-27T01:56:18.000Z | DeepSpace/src/main/cpp/commands/LineTrackerFollowLine.cpp | NorthernForce/DeepSpace | b8446f0fb732e7df030970332574e13d94e79df9 | [
"MIT"
] | null | null | null | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 36.472727 | 84 | 0.631605 | NorthernForce |
6cfa2729a6fedef36192edd39ecd2ceebf9fb4b9 | 22,521 | cpp | C++ | Game/ShipElectricSparks.cpp | sjohal21/Floating-Sandbox | 0170e3696ed4f012f5f17fdbbdaef1af4117f495 | [
"CC-BY-4.0"
] | 44 | 2018-07-08T16:44:53.000Z | 2022-02-06T14:07:30.000Z | Game/ShipElectricSparks.cpp | sjohal21/Floating-Sandbox | 0170e3696ed4f012f5f17fdbbdaef1af4117f495 | [
"CC-BY-4.0"
] | 31 | 2019-03-24T16:00:38.000Z | 2022-02-24T20:23:18.000Z | Game/ShipElectricSparks.cpp | sjohal21/Floating-Sandbox | 0170e3696ed4f012f5f17fdbbdaef1af4117f495 | [
"CC-BY-4.0"
] | 24 | 2018-11-08T21:58:53.000Z | 2022-01-12T12:04:42.000Z | /***************************************************************************************
* Original Author: Gabriele Giuseppini
* Created: 2021-05-29
* Copyright: Gabriele Giuseppini (https://github.com/GabrieleGiuseppini)
***************************************************************************************/
... | 39.719577 | 175 | 0.588828 | sjohal21 |
6cfe6905c1e4bad62314e1e2b671e04c14fa71fa | 1,009 | hpp | C++ | code/source/game/devlogic.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | 12 | 2015-01-12T00:19:20.000Z | 2021-08-05T10:47:20.000Z | code/source/game/devlogic.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | code/source/game/devlogic.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | #ifndef CLOVER_DEVLOGIC_HPP
#define CLOVER_DEVLOGIC_HPP
#include "build.hpp"
#include "game/editor/editor.hpp"
#include "ui/hid/actionlistener.hpp"
#include "util/dyn_array.hpp"
#include "util/profiler.hpp"
#include "util/string.hpp"
namespace clover {
namespace game {
/// Handles developer-only logic which can be c... | 20.18 | 121 | 0.751239 | crafn |
9f0272e6668050b1476c55d8a0cb7c94d1fb978c | 1,073 | hpp | C++ | src/DBConnection2.hpp | malirod/DoubleDispatch | 8bca9765d2c21f8c3fa3fbabea6593b820d2ea53 | [
"MIT"
] | null | null | null | src/DBConnection2.hpp | malirod/DoubleDispatch | 8bca9765d2c21f8c3fa3fbabea6593b820d2ea53 | [
"MIT"
] | null | null | null | src/DBConnection2.hpp | malirod/DoubleDispatch | 8bca9765d2c21f8c3fa3fbabea6593b820d2ea53 | [
"MIT"
] | null | null | null | /* Copyright (c) 2018 Yaroslav Stanislavyk <stl.ros@outlook.com> */
#pragma once
#include "DBConnection.hpp"
class IConnectionDispatcher;
class IDBConnection2 {
public:
virtual ~IDBConnection2();
virtual void Dispatch(IConnectionDispatcher& connection_dispatcher) = 0;
virtual int Query() const = 0;
};
clas... | 24.386364 | 79 | 0.766076 | malirod |
9f072564830d0c41c8991fbd4e0106f0aa6bf766 | 430 | cpp | C++ | FullBright.cpp | Apflmus/Rust-Cheat | 7b4a1212cc1b0f46ff8cf510e83ca358b58aeb72 | [
"Apache-2.0"
] | 36 | 2017-10-31T21:52:47.000Z | 2020-01-19T02:32:27.000Z | FullBright.cpp | J0hnDark/Rust-Cheat | 7b4a1212cc1b0f46ff8cf510e83ca358b58aeb72 | [
"Apache-2.0"
] | 2 | 2018-01-03T17:22:53.000Z | 2019-09-25T19:25:29.000Z | FullBright.cpp | J0hnDark/Rust-Cheat | 7b4a1212cc1b0f46ff8cf510e83ca358b58aeb72 | [
"Apache-2.0"
] | 19 | 2020-02-22T02:25:22.000Z | 2022-03-31T15:08:50.000Z | #include "Globals.h"
#include "Utils.h"
float origvalue1;
float origvalue2;
DWORD64 lightColorOrig;
void setToDay()
{
ULONG_PTR objectClass = read<ULONG_PTR>(entity[1].gameObject + 0x30);
ULONG_PTR entityPtr = read<ULONG_PTR>(objectClass + 0x18);
ULONG_PTR skyDome = read<ULONG_PTR>(entityPtr + 0x28);
UL... | 25.294118 | 71 | 0.711628 | Apflmus |
9f079944d0af5b6fee82b73ec3940bde0ff085d1 | 536 | cpp | C++ | HaloTAS/TASDLL/halo_map_data.cpp | s3anyboy/HaloTAS | 9584786f19e1475399298fda2d5783d47623cccd | [
"MIT"
] | 6 | 2019-09-10T19:47:04.000Z | 2020-11-26T08:32:36.000Z | HaloTAS/TASDLL/halo_map_data.cpp | s3anyboy/HaloTAS | 9584786f19e1475399298fda2d5783d47623cccd | [
"MIT"
] | 13 | 2018-11-24T09:37:49.000Z | 2021-10-22T02:29:11.000Z | HaloTAS/TASDLL/halo_map_data.cpp | s3anyboy/HaloTAS | 9584786f19e1475399298fda2d5783d47623cccd | [
"MIT"
] | 3 | 2020-07-28T09:19:14.000Z | 2020-09-02T04:48:49.000Z | #include "halo_map_data.h"
std::string halo::mapdata::tag_entry::tag_class_to_str(uint32_t tag_class)
{
char c[4];
memcpy(&c, &tag_class, 4);
std::reverse(c, c + 4);
std::string str(c, 4);
return str;
}
std::string halo::mapdata::tag_entry::tag_class_str()
{
return tag_class_to_str(tag_class);
}
std::string ha... | 20.615385 | 74 | 0.744403 | s3anyboy |
9f0e1a3c89311ca1a68579fabbe0185299ead107 | 320 | cpp | C++ | Programmers/src/12906/solution.cpp | lstar2397/algorithms | 686ea882079e26111f86b5bd5a7ab1b14ccf0fa2 | [
"MIT"
] | null | null | null | Programmers/src/12906/solution.cpp | lstar2397/algorithms | 686ea882079e26111f86b5bd5a7ab1b14ccf0fa2 | [
"MIT"
] | null | null | null | Programmers/src/12906/solution.cpp | lstar2397/algorithms | 686ea882079e26111f86b5bd5a7ab1b14ccf0fa2 | [
"MIT"
] | null | null | null | #include <vector>
using namespace std;
vector<int> solution(vector<int> arr) {
int prevElement = -1;
vector<int> answer;
for (size_t i = 0; i < arr.size(); i++)
{
int curElement = arr.at(i);
if (prevElement != curElement)
{
answer.push_back(arr.at(i));
prevElement = curElement;
}
}
return answer;
} | 18.823529 | 40 | 0.640625 | lstar2397 |
9f0ffd9712abd9144dc8796567667d9dc8e64b22 | 613 | hpp | C++ | src/atmosphere/Generator.hpp | dat14jpe/mulen | 33beeb8a38e5556ddd44efba909e18aab9a3d401 | [
"MIT"
] | 5 | 2020-01-15T12:49:45.000Z | 2021-11-24T05:15:59.000Z | src/atmosphere/Generator.hpp | dat14jpe/mulen | 33beeb8a38e5556ddd44efba909e18aab9a3d401 | [
"MIT"
] | null | null | null | src/atmosphere/Generator.hpp | dat14jpe/mulen | 33beeb8a38e5556ddd44efba909e18aab9a3d401 | [
"MIT"
] | null | null | null | #pragma once
#include "Common.hpp"
#include "util/Shader.hpp"
namespace Mulen::Atmosphere {
// Atmosphere generator.
class Generator
{
const std::string shaderName;
Util::Shader shader; // brick generation shader
public:
const std::string& GetShaderName() { return shaderName; }... | 26.652174 | 79 | 0.628059 | dat14jpe |
9f10972fa8ea326ad5479dd176c28e5e637b17e2 | 1,755 | cpp | C++ | projects/solutions/03/driveController.cpp | RoboJackets-Software-Training-Test/test-project-1-oswinso | 45b8f82477106bae739069f594ff8711cfc47981 | [
"MIT"
] | null | null | null | projects/solutions/03/driveController.cpp | RoboJackets-Software-Training-Test/test-project-1-oswinso | 45b8f82477106bae739069f594ff8711cfc47981 | [
"MIT"
] | null | null | null | projects/solutions/03/driveController.cpp | RoboJackets-Software-Training-Test/test-project-1-oswinso | 45b8f82477106bae739069f594ff8711cfc47981 | [
"MIT"
] | null | null | null | #include <STSL/RJRobot.h>
#include "pid.h"
#include <ctime>
#include <unistd.h>
#include <cstdlib>
int main()
{
PID controller_left(10.0, 0.1, 0, .01, 0.5, 0.25);
PID controller_right(10.0, 0.1, 0, .01, 0.5, 0.25);
float target = 0.5;
float current = 0;
float controller_effort_left, controller... | 35.816327 | 121 | 0.622792 | RoboJackets-Software-Training-Test |
2f57ada990ace2990d12d4e8e9443c6c78a2c7ee | 1,978 | cpp | C++ | cpp/visual studio/CalculatorServer/RerollBotConsole/debug_main.cpp | NiHoel/Anno1800UXEnhancer | b430fdb428696b5218ca65a5e9b977d659cfca01 | [
"Apache-2.0"
] | 27 | 2020-03-29T16:02:09.000Z | 2021-12-18T20:08:51.000Z | cpp/visual studio/CalculatorServer/RerollBotConsole/debug_main.cpp | NiHoel/Anno1800UXEnhancer | b430fdb428696b5218ca65a5e9b977d659cfca01 | [
"Apache-2.0"
] | 22 | 2020-04-03T03:40:59.000Z | 2022-03-29T15:55:28.000Z | cpp/visual studio/CalculatorServer/RerollBotConsole/debug_main.cpp | NiHoel/Anno1800UXEnhancer | b430fdb428696b5218ca65a5e9b977d659cfca01 | [
"Apache-2.0"
] | 2 | 2021-10-17T16:15:46.000Z | 2022-01-10T18:56:49.000Z | #pragma once
#include "reader_trading.hpp"
using namespace reader;
template<typename T>
void print(const std::map<unsigned int, T>& map,
const std::map<unsigned int, std::string>& dictionary = std::map<unsigned int, std::string>())
{
for (const auto& entry : map)
{
if (dictionary.find(entry.first) != dictionar... | 39.56 | 211 | 0.708291 | NiHoel |
2f58f8aec3cf2d351f8cdbc2b76cc4c3a3130f4b | 1,736 | cpp | C++ | source/Library.Shared/DirectXHelper.cpp | ssshammi/real-time-3d-rendering-with-directx-and-hlsl | 05a05c5c26784dafa9a89747276f385252951f2f | [
"MIT"
] | null | null | null | source/Library.Shared/DirectXHelper.cpp | ssshammi/real-time-3d-rendering-with-directx-and-hlsl | 05a05c5c26784dafa9a89747276f385252951f2f | [
"MIT"
] | null | null | null | source/Library.Shared/DirectXHelper.cpp | ssshammi/real-time-3d-rendering-with-directx-and-hlsl | 05a05c5c26784dafa9a89747276f385252951f2f | [
"MIT"
] | null | null | null | #include "pch.h"
#include "DirectXHelper.h"
#include "GameException.h"
using namespace std;
using namespace gsl;
namespace Library
{
void CreateIndexBuffer(not_null<ID3D11Device*> device, const span<const uint16_t>& indices, not_null<ID3D11Buffer**> indexBuffer)
{
D3D11_BUFFER_DESC indexBufferDesc{ 0 };
indexBu... | 41.333333 | 132 | 0.797811 | ssshammi |
2f5ce6543dedfe6f7ef6e254a019fd9ad388216b | 9,417 | cpp | C++ | Sources/Elastos/LibCore/src/org/apache/harmony/security/x509/CAuthorityKeyIdentifier.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/LibCore/src/org/apache/harmony/security/x509/CAuthorityKeyIdentifier.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/LibCore/src/org/apache/harmony/security/x509/CAuthorityKeyIdentifier.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// 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
//
// ... | 33.158451 | 101 | 0.686206 | jingcao80 |
2f61464da250ce475ed64ec7eb26d779456189f3 | 4,610 | cc | C++ | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_aguila/com_util.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_aguila/com_util.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_aguila/com_util.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | #include "com_util.h"
#include <cassert>
#include <cmath>
#include <iterator>
#include <vector>
#include "com_const.h"
/*!
\param x
\return The smallest value.
*/
double com_Util::ceil125(double x)
{
double lx, rv;
double p10, fr;
double sign = ( x > 0) ? 1.0 : -1.0;
if (x == 0.0) return 0.0;
lx ... | 22.598039 | 80 | 0.574187 | quanpands |
2f6d66246269188a6ee76958fbda89c343bee662 | 9,206 | cc | C++ | compiler/verify/access_test.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | null | null | null | compiler/verify/access_test.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | null | null | null | compiler/verify/access_test.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | null | null | null | #include "compiler/compiler.h"
#include "compiler/module.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "test/module.h"
namespace compiler {
namespace {
using ::testing::ElementsAre;
using ::testing::Eq;
using ::testing::IsEmpty;
using ::testing::Pair;
using ::testing::SizeIs;
using ::testing::Unordere... | 30.084967 | 80 | 0.645449 | asoffer |
2f71342ed59b3d5ff423a16576635f4b488dde86 | 2,591 | hpp | C++ | pass/lgraph_to_lnast/pass_lgraph_to_lnast.hpp | maximiliantiao/livehd | 88215f0d6fc395db96e6ed058f00b9205454bd0c | [
"BSD-3-Clause"
] | null | null | null | pass/lgraph_to_lnast/pass_lgraph_to_lnast.hpp | maximiliantiao/livehd | 88215f0d6fc395db96e6ed058f00b9205454bd0c | [
"BSD-3-Clause"
] | null | null | null | pass/lgraph_to_lnast/pass_lgraph_to_lnast.hpp | maximiliantiao/livehd | 88215f0d6fc395db96e6ed058f00b9205454bd0c | [
"BSD-3-Clause"
] | null | null | null | // This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#pragma once
#include "pass.hpp"
#include "lnast.hpp"
#include "lgraph.hpp"
class Pass_lgraph_to_lnast : public Pass {
protected:
uint64_t temp_var_count = 0;
uint64_t seq_count = 0;
void do_trans(L... | 49.826923 | 105 | 0.708221 | maximiliantiao |
2f726f13dfbfcaa829a1d4fd3067f2c66e0e51ae | 15,367 | cpp | C++ | OpenMMPlugin/OpenMMPlugin.cpp | MadCatX/molmodel | 5abde979e1780dcc61a4b05affcba6e116250585 | [
"MIT"
] | null | null | null | OpenMMPlugin/OpenMMPlugin.cpp | MadCatX/molmodel | 5abde979e1780dcc61a4b05affcba6e116250585 | [
"MIT"
] | null | null | null | OpenMMPlugin/OpenMMPlugin.cpp | MadCatX/molmodel | 5abde979e1780dcc61a4b05affcba6e116250585 | [
"MIT"
] | null | null | null | /* -------------------------------------------------------------------------- *
* SimTK Molmodel(tm): OpenMM Plugin *
* -------------------------------------------------------------------------- *
* This is part of the SimTK Core biosimulation toolkit originating from ... | 45.599407 | 113 | 0.573437 | MadCatX |
2f736a6ce93bac0581e2d3fe130792a513fccd8e | 277 | cpp | C++ | 5.14/5_14.cpp | dengxianglong/cplusplusprimerplusstudy | eefc5d7bf5ab31186c04171fadade3552838f4b2 | [
"MIT"
] | null | null | null | 5.14/5_14.cpp | dengxianglong/cplusplusprimerplusstudy | eefc5d7bf5ab31186c04171fadade3552838f4b2 | [
"MIT"
] | null | null | null | 5.14/5_14.cpp | dengxianglong/cplusplusprimerplusstudy | eefc5d7bf5ab31186c04171fadade3552838f4b2 | [
"MIT"
] | 1 | 2018-08-29T07:40:20.000Z | 2018-08-29T07:40:20.000Z | #include<iostream>
#include<ctime>
int main()
{
using namespace std;
cout<<"Enter the time of seconds";
float secs;
cin>>secs;
clock_t delay=secs*CLOCKS_PER_SEC;
cout<<"starting\a\n";
clock_t start=clock();
while(clock()-start<delay)
;
cout<<"done\a\n";
return 0;
} | 17.3125 | 35 | 0.685921 | dengxianglong |
2f73c76c39570c855639304268358b31a016875c | 6,115 | cpp | C++ | source/response/NetcdfResponse.cpp | fmidev/smartmet-plugin-wcs | 60aee4d3ef9d2bba5de44b4a871f669fc1b47d08 | [
"MIT"
] | null | null | null | source/response/NetcdfResponse.cpp | fmidev/smartmet-plugin-wcs | 60aee4d3ef9d2bba5de44b4a871f669fc1b47d08 | [
"MIT"
] | 8 | 2017-04-07T13:14:46.000Z | 2018-04-25T08:04:22.000Z | source/response/NetcdfResponse.cpp | fmidev/smartmet-plugin-wcs | 60aee4d3ef9d2bba5de44b4a871f669fc1b47d08 | [
"MIT"
] | 1 | 2017-06-03T19:07:22.000Z | 2017-06-03T19:07:22.000Z | #include "NetcdfResponse.h"
#include "Options.h"
#include "WcsConvenience.h"
#include "WcsException.h"
#include <exception>
#include <fstream>
namespace SmartMet
{
namespace Plugin
{
namespace WCS
{
void NetcdfResponse::get(std::ostream& output) {}
void NetcdfResponse::setEngine(const Spine::SmartMetEngine* engine)
{... | 27.545045 | 98 | 0.677514 | fmidev |
2f74f7047801223f3c2f19e655a7f430ae9e28f9 | 6,947 | cpp | C++ | source/tm/pokemon/substitute.cpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 7 | 2021-03-05T16:50:19.000Z | 2022-02-02T04:30:07.000Z | source/tm/pokemon/substitute.cpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 47 | 2021-02-01T18:54:23.000Z | 2022-03-06T19:06:16.000Z | source/tm/pokemon/substitute.cpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 1 | 2021-01-28T13:10:41.000Z | 2021-01-28T13:10:41.000Z | // Copyright David Stone 2020.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <tm/pokemon/substitute.hpp>
#include <tm/move/moves.hpp>
#include <tm/move/target.hpp>
#include <tm/generation.hpp>
name... | 24.810714 | 103 | 0.727508 | davidstone |
2f788e33af522aa9557545464bbcff4bb798e174 | 629 | cc | C++ | caffe2/contrib/script/lexer.cc | shigengtian/caffe2 | e19489d6acd17fea8ca98cd8e4b5b680e23a93c5 | [
"Apache-2.0"
] | 585 | 2015-08-10T02:48:52.000Z | 2021-12-01T08:46:59.000Z | caffe2/contrib/script/lexer.cc | mingzhe09088/caffe2 | 8f41717c46d214aaf62b53e5b3b9b308b5b8db91 | [
"Apache-2.0"
] | 27 | 2018-04-14T06:44:22.000Z | 2018-08-01T18:02:39.000Z | caffe2/contrib/script/lexer.cc | mingzhe09088/caffe2 | 8f41717c46d214aaf62b53e5b3b9b308b5b8db91 | [
"Apache-2.0"
] | 183 | 2015-08-10T02:49:04.000Z | 2021-12-01T08:47:13.000Z | #include "caffe2/contrib/script/lexer.h"
#include "caffe2/core/common.h"
namespace caffe2 {
namespace script {
std::string kindToString(int kind) {
if (kind < 256)
return std::string(1, kind);
switch (kind) {
#define DEFINE_CASE(tok, str, _) \
case tok: \
return str;
TC_FORALL_T... | 23.296296 | 75 | 0.678855 | shigengtian |
2f7beda12553d4f4497978504718c5f2d671ed2e | 1,462 | hpp | C++ | input/InputHandler.hpp | CaDS-Studentprojects/PixelGames | a1d7b57bdd9699fc36a64f8a86b92fbd61a3c3df | [
"MIT"
] | null | null | null | input/InputHandler.hpp | CaDS-Studentprojects/PixelGames | a1d7b57bdd9699fc36a64f8a86b92fbd61a3c3df | [
"MIT"
] | null | null | null | input/InputHandler.hpp | CaDS-Studentprojects/PixelGames | a1d7b57bdd9699fc36a64f8a86b92fbd61a3c3df | [
"MIT"
] | null | null | null | /*
* InputHandler.hpp
*
* Created on: Mar 5, 2018
* Author: daniel
*/
#ifndef INPUTHANDLER_HPP_
#define INPUTHANDLER_HPP_
#include <iostream>
#include <thread>
#include <memory>
//#include <ncurses.h>
#include "Input.hpp"
using namespace std;
namespace pixelgames {
namespace input {
class InputHandler ... | 19.756757 | 95 | 0.559508 | CaDS-Studentprojects |
2f7cc82989ef7d05398699e3de5904c6d30beaa0 | 7,505 | cpp | C++ | wpb_mani_bringup/src/wpb_mani_dummy.cpp | 6-robot/wpb_mani | 6aa6e2d8713c8d018a422e4665ff8fcd7e299ad0 | [
"BSD-3-Clause"
] | 4 | 2021-02-08T03:55:26.000Z | 2021-12-13T12:06:34.000Z | wpb_mani_bringup/src/wpb_mani_dummy.cpp | 6-robot/wpb_mani | 6aa6e2d8713c8d018a422e4665ff8fcd7e299ad0 | [
"BSD-3-Clause"
] | null | null | null | wpb_mani_bringup/src/wpb_mani_dummy.cpp | 6-robot/wpb_mani | 6aa6e2d8713c8d018a422e4665ff8fcd7e299ad0 | [
"BSD-3-Clause"
] | 1 | 2021-06-08T01:17:54.000Z | 2021-06-08T01:17:54.000Z | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2017-2020, Waterplus http://www.6-robot.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that ... | 33.959276 | 139 | 0.619853 | 6-robot |
2f7ef1f441876287343b826032049464bc03c426 | 2,178 | hpp | C++ | networking/ArpPacketBase.hpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | networking/ArpPacketBase.hpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | networking/ArpPacketBase.hpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | #if !defined ARP_PACKET_BASE_HPP
#define ARP_PACKET_BASE_HPP
#include <cstdint>
#include "DataPacket.hpp"
#include "SimpleDataField.hpp"
class ArpPacketBase : public DataPacket
{
public:
// Initializes everything to 0
ArpPacketBase();
// Initializes everything to the given values
ArpPacketBase(std... | 19.621622 | 80 | 0.676768 | leighgarbs |
2f8442d410c5e9a22cfa3f56c9b35709cc31ff1a | 816 | cpp | C++ | AtCoder/AGC013/C/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | AtCoder/AGC013/C/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | AtCoder/AGC013/C/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<algorithm>
#define rep(i,x,y) for(int i=(x);i<=(y);++i)
#define per(i,x,y) for(int i=(x);i>=(y);--i)
typedef long long LL;
const int N=4e5+10;
LL n,l,t,x[N],w[N],a[N],b[N],ca,cb,ans[N];
int main(){
scanf("%lld%lld%lld",&n,&l,&t);
rep(i,1,n)scanf("%lld%lld",&x[i],&w[i]);
LL tmp=t/l;
t%=l;
... | 31.384615 | 134 | 0.535539 | sjj118 |
2f879e759547b05f157356802ea09d507b3c4104 | 664 | cc | C++ | test/src/TosRequestTest.cc | volcengine/ve-tos-cpp-sdk | 3f18be2d924f69bf6271b4cc3bdd1b7a023e795f | [
"Apache-2.0"
] | null | null | null | test/src/TosRequestTest.cc | volcengine/ve-tos-cpp-sdk | 3f18be2d924f69bf6271b4cc3bdd1b7a023e795f | [
"Apache-2.0"
] | null | null | null | test/src/TosRequestTest.cc | volcengine/ve-tos-cpp-sdk | 3f18be2d924f69bf6271b4cc3bdd1b7a023e795f | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include "../../sdk/include/utils/BaseUtils.h"
using namespace VolcengineTos;
TEST(TosRequestTest, RequestURLTest) {
// /abc/😊?/😭#~!.txt
// const char16_t* path = u"/abc/\u16D83D\u16DE0A?/\u16D83D\u16DE2D#~!.txt";
// std::wstring_convert<std::codecvt<char16_t, char, mbstate_t>, ch... | 41.5 | 97 | 0.658133 | volcengine |
2f8b54c6eb734f9780b509a256efbb4fcea872a8 | 2,113 | cpp | C++ | simple-paint-sdl2/simple-paint-sdl2/simple-paint-sdl2/modules/editor/editor_event.cpp | i582/simple-paint-sdl2 | 3fc4eac68b6cfac949d42d6ea25a38e8fd206b7c | [
"MIT"
] | null | null | null | simple-paint-sdl2/simple-paint-sdl2/simple-paint-sdl2/modules/editor/editor_event.cpp | i582/simple-paint-sdl2 | 3fc4eac68b6cfac949d42d6ea25a38e8fd206b7c | [
"MIT"
] | null | null | null | simple-paint-sdl2/simple-paint-sdl2/simple-paint-sdl2/modules/editor/editor_event.cpp | i582/simple-paint-sdl2 | 3fc4eac68b6cfac949d42d6ea25a38e8fd206b7c | [
"MIT"
] | null | null | null | #include "editor.h"
void Editor::onEvent()
{
while (running && SDL_WaitEvent(&e))
{
switch (e.window.windowID)
{
case WINDOW_NEW_DOCUMENT:
{
switch (e.type)
{
case SDL_MOUSEMOTION:
{
new_document->mouseMotion(&e);
break;
}
case SDL_MOUSEBUTTONDOWN:
{
new_document->mou... | 11.804469 | 61 | 0.558921 | i582 |
2f8cbfc8d174a89016fc601a8a3ee247a61b6378 | 3,765 | cc | C++ | third_party/GsTL/include/GsTL/kriging/OK_constraints.cc | hiteshbedre/movetk | 8d261f19538e28ff36cac98a89ef067f8c26f978 | [
"Apache-2.0"
] | 70 | 2015-01-21T12:24:50.000Z | 2022-03-16T02:10:45.000Z | third_party/GsTL/include/GsTL/kriging/OK_constraints.cc | bacusters/movetk | acbc9c5acb69dd3eb23aa7d2156ede02ed468eae | [
"Apache-2.0"
] | 44 | 2020-09-11T17:40:30.000Z | 2021-04-08T23:56:19.000Z | third_party/GsTL/include/GsTL/kriging/OK_constraints.cc | aniketmitra001/movetk | cdf0c98121da6df4cadbd715fba02b05be724218 | [
"Apache-2.0"
] | 18 | 2015-02-15T18:04:31.000Z | 2021-01-16T08:54:32.000Z | /* GsTL: the Geostatistics Template Library
*
* Author: Nicolas Remy
* Copyright (c) 2000 The Board of Trustees of the Leland Stanford Junior University
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following c... | 34.861111 | 88 | 0.714475 | hiteshbedre |
2f914c28300e3779f99ebca7ba23f72dc7fe7316 | 916 | cpp | C++ | trunk/preflet/PCardView.cpp | louisdem/IMKit | 9734cd67c04af047c37a0e17119dc19429855990 | [
"BSD-3-Clause"
] | null | null | null | trunk/preflet/PCardView.cpp | louisdem/IMKit | 9734cd67c04af047c37a0e17119dc19429855990 | [
"BSD-3-Clause"
] | null | null | null | trunk/preflet/PCardView.cpp | louisdem/IMKit | 9734cd67c04af047c37a0e17119dc19429855990 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2003-2009, IM Kit Team.
* Distributed under the terms of the MIT License.
*
* Authors:
* Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
*/
#ifdef __HAIKU__
# include <interface/CardLayout.h>
#endif
#include "PCardView.h"
//#pragma mark Constructors
PCardView::PCardView(BRect bounds)
: Abstr... | 19.083333 | 64 | 0.728166 | louisdem |
2f999dde5f075b94ddcf1aac8dac60ffd4d39952 | 1,526 | cpp | C++ | Source/Services/TitleStorage/WinRT/TitleStorageBlobResult_WinRT.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | 2 | 2021-07-17T13:34:20.000Z | 2022-01-09T00:55:51.000Z | Source/Services/TitleStorage/WinRT/TitleStorageBlobResult_WinRT.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | null | null | null | Source/Services/TitleStorage/WinRT/TitleStorageBlobResult_WinRT.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | 1 | 2018-11-18T08:32:40.000Z | 2018-11-18T08:32:40.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
/... | 31.142857 | 139 | 0.694626 | blgrossMS |
2fa187d5ad28cb96e88932220266065eb6bbe7d3 | 2,058 | cpp | C++ | src/ui95_ext/cbeye.cpp | Terebinth/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 117 | 2015-01-13T14:48:49.000Z | 2022-03-16T01:38:19.000Z | src/ui95_ext/cbeye.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 4 | 2015-05-01T13:09:53.000Z | 2017-07-22T09:11:06.000Z | src/ui95_ext/cbeye.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 78 | 2015-01-13T09:27:47.000Z | 2022-03-18T14:39:09.000Z | #include "stdafx.h"
#include "campaign/include/team.h"
#include "campaign/include/package.h"
#include "ui/include/filters.h"
C_BullsEye::C_BullsEye() : C_Base()
{
_SetCType_(_CNTL_BULLSEYE_);
Color_ = 0;
Scale_ = 1.0f;
DefaultFlags_ = C_BIT_ENABLED;
WorldX_ = WorldY_ = 0;
}
C_BullsEye::C_BullsEye(... | 23.123596 | 144 | 0.615646 | Terebinth |
2fa1b65fc61179a67e5146eb2b89b68ff7012124 | 724 | cpp | C++ | cpp/Test4-0609/T2.cpp | ljcbaby/Program-Practice | e999c07b595fcf3e70c8da462304e3cc0a292bac | [
"Unlicense"
] | null | null | null | cpp/Test4-0609/T2.cpp | ljcbaby/Program-Practice | e999c07b595fcf3e70c8da462304e3cc0a292bac | [
"Unlicense"
] | null | null | null | cpp/Test4-0609/T2.cpp | ljcbaby/Program-Practice | e999c07b595fcf3e70c8da462304e3cc0a292bac | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
class shape {// 形状类
public:
double getArea() // 求面积
{
return -1;
}
double getPerimeter() // 求周长
{
return -1;
}
};
class RegularPolygon : public shape { // 正多边形类
private:
int n; // 边数
double side; // 边长
public:
... | 16.088889 | 60 | 0.516575 | ljcbaby |
2fa2cd318402d162ee4d0ca23acaaaf20d893d5a | 727 | cpp | C++ | Dynamic Programming/33reachGivenScore.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | 1 | 2021-01-18T14:51:20.000Z | 2021-01-18T14:51:20.000Z | Dynamic Programming/33reachGivenScore.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | Dynamic Programming/33reachGivenScore.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | // { Driver Code Starts
// Driver Code
#include<bits/stdc++.h>
#define ll long long int
using namespace std;
// } Driver Code Ends
// Complete this function
ll count(ll n)
{
ll availableScores[] = {3,5,10};
ll asn = sizeof(availableScores)/sizeof(ll);
ll dp[n+1][asn+1];
for(ll i=0;i<n+1;i++){
for(ll j=... | 17.731707 | 66 | 0.537827 | Coderangshu |
2fa4d1431ec8237eca35f498013043188a7ef8f0 | 569,716 | cc | C++ | NFComm/NFMessageDefine/NFMsgShare.pb.cc | bytemode/NoahGameFrame | 34dbcc7db2d5d588ff282543dc371a37372d07d7 | [
"Apache-2.0"
] | 3 | 2019-06-03T07:34:23.000Z | 2019-06-03T07:34:28.000Z | NFComm/NFMessageDefine/NFMsgShare.pb.cc | bytemode/NoahGameFrame | 34dbcc7db2d5d588ff282543dc371a37372d07d7 | [
"Apache-2.0"
] | null | null | null | NFComm/NFMessageDefine/NFMsgShare.pb.cc | bytemode/NoahGameFrame | 34dbcc7db2d5d588ff282543dc371a37372d07d7 | [
"Apache-2.0"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: NFMsgShare.proto
#include "NFMsgShare.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#includ... | 37.144087 | 167 | 0.723924 | bytemode |
2fa4d82ec3604390d96209ed3a2b62c80f805e4e | 3,773 | hpp | C++ | Connection.hpp | 15-466/15-466-f21-intro | c3e1d2643fed8757f1345b46718d406d20a72c8e | [
"RSA-MD"
] | null | null | null | Connection.hpp | 15-466/15-466-f21-intro | c3e1d2643fed8757f1345b46718d406d20a72c8e | [
"RSA-MD"
] | null | null | null | Connection.hpp | 15-466/15-466-f21-intro | c3e1d2643fed8757f1345b46718d406d20a72c8e | [
"RSA-MD"
] | null | null | null | #pragma once
/*
* Connection is a simple wrapper around a TCP socket connection.
* You don't create 'Connection' objects yourself, rather, you
* create a Client or Server object which will manage connection(s)
* for you.
* For example:
//simple server
int main(int argc, char **argv) {
Server server("1337"); //... | 29.248062 | 133 | 0.693878 | 15-466 |
2fa7361af6b9e99e44fd971b9339aa240add43e3 | 2,186 | cpp | C++ | src/spriterenderer.cpp | Foltik/K5 | a347b7c252c38e0b9190554ce25b9a399f9b66c4 | [
"WTFPL"
] | 2 | 2017-05-11T10:53:34.000Z | 2017-09-07T19:32:35.000Z | src/spriterenderer.cpp | Foltik/K5 | a347b7c252c38e0b9190554ce25b9a399f9b66c4 | [
"WTFPL"
] | 1 | 2017-10-01T03:46:52.000Z | 2017-10-16T20:59:56.000Z | src/spriterenderer.cpp | Foltik/K5 | a347b7c252c38e0b9190554ce25b9a399f9b66c4 | [
"WTFPL"
] | null | null | null | #include "spriterenderer.h"
#include <glm/gtc/matrix_transform.hpp>
#include "texture.h"
#include "shader.h"
constexpr const char* vertexSource = R"(
#version 330 Core
layout (location = 0) in vec4 vertex;
out vec2 texCoord;
uniform mat4 model;
uniform mat4 proj;
void main() {
texCoord = vertex.zw;
gl_Posi... | 24.561798 | 134 | 0.646386 | Foltik |
2fab1ff8d8acf572be3967eac62aa98b8242c3e9 | 36,423 | cpp | C++ | blackmeta/sprites.cpp | frenchcomp/blackmeta | 198938021b3e9cc7aaab330de707899a10b5beba | [
"MIT"
] | null | null | null | blackmeta/sprites.cpp | frenchcomp/blackmeta | 198938021b3e9cc7aaab330de707899a10b5beba | [
"MIT"
] | null | null | null | blackmeta/sprites.cpp | frenchcomp/blackmeta | 198938021b3e9cc7aaab330de707899a10b5beba | [
"MIT"
] | null | null | null | /**
* LICENSE
*
* This source file is subject to the MIT license and the version 3 of the GPL3
* license that are bundled with this package in the folder licences
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to richarddeloge@gmail... | 1,011.75 | 30,791 | 0.829943 | frenchcomp |
2fab615191b2a6c4e6d749856f038bb4a97aa66f | 15,869 | cxx | C++ | Examples/Projections/SensorModelExample.cxx | lfyater/Orfeo | eb3d4d56089065b99641d8ae7338d2ed0358d28a | [
"Apache-2.0"
] | 2 | 2019-02-13T14:48:19.000Z | 2019-12-03T02:54:28.000Z | Examples/Projections/SensorModelExample.cxx | lfyater/Orfeo | eb3d4d56089065b99641d8ae7338d2ed0358d28a | [
"Apache-2.0"
] | null | null | null | Examples/Projections/SensorModelExample.cxx | lfyater/Orfeo | eb3d4d56089065b99641d8ae7338d2ed0358d28a | [
"Apache-2.0"
] | 2 | 2019-01-17T10:36:14.000Z | 2019-12-03T02:54:36.000Z | /*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... | 31.674651 | 81 | 0.696452 | lfyater |
2fac20bc3cb0bc379ed01b3c621c920274a32869 | 676 | hh | C++ | build/x86/params/X86System.hh | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | 5 | 2019-12-12T16:26:09.000Z | 2022-03-17T03:23:33.000Z | build/X86/params/X86System.hh | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | build/X86/params/X86System.hh | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | #ifndef __PARAMS__X86System__
#define __PARAMS__X86System__
class X86System;
#include <cstddef>
#include "params/X86ACPIRSDP.hh"
#include <cstddef>
#include "params/X86IntelMPFloatingPointer.hh"
#include <cstddef>
#include "params/X86IntelMPConfigTable.hh"
#include <cstddef>
#include "params/X86SMBiosSMBiosTable.hh"
... | 24.142857 | 56 | 0.773669 | billionshang |
2fafbe421ade27cbeb1603ada68d2148948a02b0 | 4,000 | cpp | C++ | enduser/zone_internetgames/src/client/shell/winfrx/dibsec.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | enduser/zone_internetgames/src/client/shell/winfrx/dibsec.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | enduser/zone_internetgames/src/client/shell/winfrx/dibsec.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "dibfrx.h"
#ifndef LAYOUT_RTL
#define LAYOUT_LTR 0x00000000
#define LAYOUT_RTL 0x00000001
#define NOMIRRORBITMAP 0x80000000
#endif
CDibSection::CDibSection()
{
m_RefCnt = 1;
m_hBmp = NULL;
m_pBits = NULL;
m_hDC = NULL;
m_h... | 22.857143 | 105 | 0.63375 | npocmaka |
2fb05814055f460e452efaa09d389272346efb5d | 917 | cpp | C++ | 01-Iterations/BinaryGap.cpp | hNrChVz/codility-lessons-solution | b76e802c97ed95feb69a1038736db6d494418777 | [
"FSFAP"
] | null | null | null | 01-Iterations/BinaryGap.cpp | hNrChVz/codility-lessons-solution | b76e802c97ed95feb69a1038736db6d494418777 | [
"FSFAP"
] | null | null | null | 01-Iterations/BinaryGap.cpp | hNrChVz/codility-lessons-solution | b76e802c97ed95feb69a1038736db6d494418777 | [
"FSFAP"
] | null | null | null | #include <bitset>
#include <algorithm>
using namespace std;
/*
My first impression here is to have an array of binary representaion of N.
e.g.
N = 9 ; will have an array of { 1, 0, 0, 1 }
With that, I can use std::bitset, std::bitset<64> nBit (N);
NOTE:
N is from [1..2,147,483,647], so 32-bit long will suffice. I'v... | 18.714286 | 86 | 0.607415 | hNrChVz |
2fb3ff3f057f16f6add625d930f6938c82cb0dd5 | 2,654 | hpp | C++ | include/km/Console.hpp | keymaker-io/keymaker-alpha | ffe5310ed1304654ff4ae3a7025fff34b629588b | [
"MIT"
] | 3 | 2017-02-04T17:17:11.000Z | 2017-03-04T22:41:26.000Z | include/km/Console.hpp | keymaker-io/keymaker-alpha | ffe5310ed1304654ff4ae3a7025fff34b629588b | [
"MIT"
] | null | null | null | include/km/Console.hpp | keymaker-io/keymaker-alpha | ffe5310ed1304654ff4ae3a7025fff34b629588b | [
"MIT"
] | null | null | null | /*!
* Title ---- km/Console.hpp
* Author --- Giacomo Trudu aka `Wicker25` - wicker25[at]gmail[dot]com
*
* Copyright (C) 2017 by Giacomo Trudu.
* All rights reserved.
*
* This file is part of KeyMaker software.
*/
#ifndef __KM_CONSOLE_HPP__
#define __KM_CONSOLE_HPP__
#include <km.hpp>
#include <km/Exception.hp... | 15.892216 | 74 | 0.608892 | keymaker-io |
2fb453ebb76486bc333d65bd5c8a8e393bb84ac4 | 2,975 | cpp | C++ | src/concurrent/mutex.cpp | tkng/pficommon | 1301e1c9f958656e4bc882ae2db9452e8cffab7e | [
"BSD-3-Clause"
] | 48 | 2017-04-03T18:46:24.000Z | 2022-02-28T01:44:05.000Z | src/concurrent/mutex.cpp | tkng/pficommon | 1301e1c9f958656e4bc882ae2db9452e8cffab7e | [
"BSD-3-Clause"
] | 44 | 2017-02-21T13:13:52.000Z | 2021-02-06T13:08:31.000Z | src/concurrent/mutex.cpp | tkng/pficommon | 1301e1c9f958656e4bc882ae2db9452e8cffab7e | [
"BSD-3-Clause"
] | 13 | 2016-12-28T05:04:58.000Z | 2021-10-01T02:17:23.000Z | // Copyright (c)2008-2011, Preferred Infrastructure 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 must retain the above copyright
// ... | 23.991935 | 78 | 0.688739 | tkng |
2fb50156f68c6695b68a1caad1c9c83cd801e263 | 884 | hpp | C++ | android-31/android/service/controls/templates/RangeTemplate.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/service/controls/templates/RangeTemplate.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-31/android/service/controls/templates/RangeTemplate.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "./ControlTemplate.hpp"
class JString;
class JString;
namespace android::service::controls::templates
{
class RangeTemplate : public android::service::controls::templates::ControlTemplate
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit RangeTemplate(const... | 27.625 | 201 | 0.734163 | YJBeetle |
2fb59d9b2cee9e409976fff49c37cb2504d4b1a1 | 19,696 | cpp | C++ | sources/SceneGraph/Collision/spCollisionCapsule.cpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 14 | 2015-08-16T21:05:20.000Z | 2019-08-21T17:22:01.000Z | sources/SceneGraph/Collision/spCollisionCapsule.cpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | null | null | null | sources/SceneGraph/Collision/spCollisionCapsule.cpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 3 | 2020-02-15T09:17:41.000Z | 2020-05-21T14:10:40.000Z | /*
* Collision sphere file
*
* This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by Lukas Hermanns)
* See "SoftPixelEngine.hpp" for license information.
*/
#include "SceneGraph/Collision/spCollisionCapsule.hpp"
#include "SceneGraph/Collision/spCollisionSphere.hpp"
#include "SceneGraph/Collision/spC... | 32.66335 | 134 | 0.602 | rontrek |
2fb8c4642ad2dab5b8a8f68d75a5a15cd96318df | 2,357 | cpp | C++ | Game files/Algorithm1.cpp | morisscofield/Suicide_Checkers | 2f059b9ba32d8581bb77e1f313979d49ef72fd1d | [
"Apache-2.0"
] | null | null | null | Game files/Algorithm1.cpp | morisscofield/Suicide_Checkers | 2f059b9ba32d8581bb77e1f313979d49ef72fd1d | [
"Apache-2.0"
] | null | null | null | Game files/Algorithm1.cpp | morisscofield/Suicide_Checkers | 2f059b9ba32d8581bb77e1f313979d49ef72fd1d | [
"Apache-2.0"
] | null | null | null | #include "Algorithm1.h"
// Public methods
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool Algorithm1::can_move() const
{
vector<coordinates> movable = _calculate.movable_pieces();
if (movable.empty() ... | 25.344086 | 151 | 0.661434 | morisscofield |
2fbc1a52c062fb6e4a7cda4b643af5518a52e54d | 2,482 | cpp | C++ | grante/TreeCoverDecomposition.cpp | pantonante/grante-bazel | e3f22ec111463a7ae0686494422ab09f86b4d39a | [
"DOC"
] | null | null | null | grante/TreeCoverDecomposition.cpp | pantonante/grante-bazel | e3f22ec111463a7ae0686494422ab09f86b4d39a | [
"DOC"
] | null | null | null | grante/TreeCoverDecomposition.cpp | pantonante/grante-bazel | e3f22ec111463a7ae0686494422ab09f86b4d39a | [
"DOC"
] | null | null | null |
#include <algorithm>
#include "DisjointSet.h"
#include "TreeCoverDecomposition.h"
namespace Grante {
TreeCoverDecomposition::TreeCoverDecomposition(const FactorGraph* fg)
: fg(fg) {
}
void TreeCoverDecomposition::ComputeDecompositionGreedy(
std::vector<std::vector<unsigned int> >& tree_factor_indices,
std::vect... | 30.268293 | 74 | 0.705479 | pantonante |
2fc40702519049e0224042135223e111a2ce32a8 | 704 | cpp | C++ | #1006 Sign In and Sign Out .cpp | ZachVec/PAT-Advanced | 52ba5989c095ddbee3c297e82a4b3d0d2e0cd449 | [
"MIT"
] | 1 | 2021-12-26T08:34:47.000Z | 2021-12-26T08:34:47.000Z | #1006 Sign In and Sign Out .cpp | ZachVec/PAT-Advanced | 52ba5989c095ddbee3c297e82a4b3d0d2e0cd449 | [
"MIT"
] | null | null | null | #1006 Sign In and Sign Out .cpp | ZachVec/PAT-Advanced | 52ba5989c095ddbee3c297e82a4b3d0d2e0cd449 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
size_t n, t1 = (size_t)(-1), t2 = 0;
string in, out, temp;
if(scanf("%zu", &n) == EOF) return 0;
for(size_t i = 0, t, h, m, s; i < n; ++i) {
cin >> temp;
scanf("%zu:%zu:%zu", &h, &m, &s);
if((t = h * 3600 + m * 60 + s) < t1) ... | 22 | 47 | 0.4375 | ZachVec |
2fc606b44d3b6f3f76836b0145aa24216edc2aab | 4,276 | hpp | C++ | src/libraries/core/primitives/SymmTensor/SymmTensor_.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/core/primitives/SymmTensor/SymmTensor_.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/core/primitives/SymmTensor/SymmTensor_.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011-2016 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
... | 27.063291 | 79 | 0.515435 | MrAwesomeRocks |
2fd006daa4002fb6c9e2a17d007d63966ab2b8d4 | 2,530 | hpp | C++ | tools/tests/common/test_sources.hpp | intel/qpl | cdc8442f7a5e7a6ff6eea39c69665e0c5034d85d | [
"MIT"
] | 11 | 2022-02-25T08:20:23.000Z | 2022-03-25T08:36:19.000Z | tools/tests/common/test_sources.hpp | intel/qpl | cdc8442f7a5e7a6ff6eea39c69665e0c5034d85d | [
"MIT"
] | null | null | null | tools/tests/common/test_sources.hpp | intel/qpl | cdc8442f7a5e7a6ff6eea39c69665e0c5034d85d | [
"MIT"
] | null | null | null | /*******************************************************************************
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
******************************************************************************/
/*
* Intel® Query Processing Library (Intel® QPL)
* Tests
*/
#ifndef QPL_TES... | 24.326923 | 88 | 0.635573 | intel |
7c7c6a3e81d20d6db294fbc3b3efd29a099d3bd2 | 670 | hpp | C++ | src/io.hpp | davidstraka2/gamebook-engine | 53fa8d825a056e28ddd90e718af73ab691019fe5 | [
"MIT"
] | null | null | null | src/io.hpp | davidstraka2/gamebook-engine | 53fa8d825a056e28ddd90e718af73ab691019fe5 | [
"MIT"
] | null | null | null | src/io.hpp | davidstraka2/gamebook-engine | 53fa8d825a056e28ddd90e718af73ab691019fe5 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
namespace io {
/**
* Have user choose from a list of options
*
* @return Index of chosen option in list
*/
int choose(const std::vector<std::string>& options);
/** Finalize curses */
void finCurses();
/** Initialize curses */
... | 21.612903 | 72 | 0.601493 | davidstraka2 |
7c7fb883483e6dc49c613dc0d6441203b52f38f6 | 116,105 | hpp | C++ | third_party/omr/compiler/aarch64/codegen/OMRTreeEvaluatorTable.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/compiler/aarch64/codegen/OMRTreeEvaluatorTable.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/compiler/aarch64/codegen/OMRTreeEvaluatorTable.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2018, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... | 149.427284 | 436 | 0.714276 | xiacijie |
7c81f5ab25ed38455d4260460579c2813d53a3ed | 4,941 | cpp | C++ | source/modules/soul_core/code_generation/soul_PatchGenerator.cpp | squirrelmaker/SOUL | 2f8f74e8efae005e6f1e6d5f4f11b5ae22104143 | [
"0BSD"
] | 1,711 | 2018-12-03T13:49:34.000Z | 2022-03-29T09:22:03.000Z | source/modules/soul_core/code_generation/soul_PatchGenerator.cpp | squirrelmaker/SOUL | 2f8f74e8efae005e6f1e6d5f4f11b5ae22104143 | [
"0BSD"
] | 68 | 2019-01-29T09:13:05.000Z | 2022-02-24T01:30:44.000Z | source/modules/soul_core/code_generation/soul_PatchGenerator.cpp | squirrelmaker/SOUL | 2f8f74e8efae005e6f1e6d5f4f11b5ae22104143 | [
"0BSD"
] | 123 | 2019-01-29T02:13:48.000Z | 2021-12-12T09:48:24.000Z | /*
_____ _____ _____ __
| __| | | | | The SOUL language
|__ | | | | | |__ Copyright (c) 2019 - ROLI Ltd.
|_____|_____|_____|_____|
The code in this file is provided under the terms of the ISC license:
Permission to use, copy, modify, and/or distribute this software for any p... | 31.471338 | 111 | 0.57377 | squirrelmaker |
7c835a7b92393af44f07dda02187705dea54a191 | 204 | cpp | C++ | stm32/Core/Src/RadioConfig/radio_config_c2_64_32.cpp | tk20dk/garfield | b2602125c80d024cd55f1d25f3c9bf56067aba05 | [
"MIT"
] | null | null | null | stm32/Core/Src/RadioConfig/radio_config_c2_64_32.cpp | tk20dk/garfield | b2602125c80d024cd55f1d25f3c9bf56067aba05 | [
"MIT"
] | null | null | null | stm32/Core/Src/RadioConfig/radio_config_c2_64_32.cpp | tk20dk/garfield | b2602125c80d024cd55f1d25f3c9bf56067aba05 | [
"MIT"
] | null | null | null | #include <stdint.h>
#include "RadioConfig/radio_config_c2_64_32.h"
uint8_t const RADIO__CONFIG_C2_64_32[] = RADIO_CONFIGURATION_DATA_ARRAY;
uint8_t const *RADIO_CONFIG_C2_64_32 = RADIO__CONFIG_C2_64_32;
| 34 | 72 | 0.848039 | tk20dk |
7c8e85e1de525a9d79b597fb774df78e132e0c9e | 490 | hxx | C++ | src/mod/pub/demo/gl-frag-shader-demo/mod-gl-frag-shader-demo.hxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | 1 | 2017-12-26T14:29:37.000Z | 2017-12-26T14:29:37.000Z | src/mod/pub/demo/gl-frag-shader-demo/mod-gl-frag-shader-demo.hxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | src/mod/pub/demo/gl-frag-shader-demo/mod-gl-frag-shader-demo.hxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | #pragma once
#include "appplex-conf.hxx"
#ifdef MOD_GL_FRAG_SHADER_DEMO
#include "mws-mod.hxx"
class mod_gl_frag_shader_demo_impl;
class mod_gl_frag_shader_demo_page;
class mod_gl_frag_shader_demo : public mws_mod
{
public:
static mws_sp<mod_gl_frag_shader_demo> nwi();
virtual void init();
virtual void bui... | 16.333333 | 46 | 0.785714 | indigoabstract |
7ca2502c852021e8477872b042abdfb61ffd8681 | 669 | hpp | C++ | sw/3rd_party/VTK-7.1.0/ThirdParty/diy2/vtkdiy2/include/vtkdiy/time.hpp | esean/stl_voro_fill | c569a4019ff80afbf85482c7193711ea85a7cafb | [
"MIT"
] | 4 | 2019-05-30T01:52:12.000Z | 2021-09-29T21:12:13.000Z | sw/3rd_party/VTK-7.1.0/ThirdParty/diy2/vtkdiy2/include/vtkdiy/time.hpp | esean/stl_voro_fill | c569a4019ff80afbf85482c7193711ea85a7cafb | [
"MIT"
] | null | null | null | sw/3rd_party/VTK-7.1.0/ThirdParty/diy2/vtkdiy2/include/vtkdiy/time.hpp | esean/stl_voro_fill | c569a4019ff80afbf85482c7193711ea85a7cafb | [
"MIT"
] | 2 | 2019-08-30T23:36:13.000Z | 2019-11-08T16:52:01.000Z | #ifndef DIY_TIME_HPP
#define DIY_TIME_HPP
#include <sys/time.h>
#ifdef __MACH__
#include <mach/clock.h>
#include <mach/mach.h>
#endif
namespace diy
{
typedef unsigned long time_type;
inline time_type get_time()
{
#ifdef __MACH__ // OS X does not have clock_gettime, use clock_get_time
... | 19.676471 | 72 | 0.690583 | esean |