hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ab40082a901a928429b5b02e0d545ed13cce544f | 3,436 | cpp | C++ | src/Adafruit_I2CDevice.cpp | nrobinson2000/Adafruit_VEML7700 | ad29bfb331ad08ed6e40de68abae6455f99760bf | [
"BSD-3-Clause"
] | 3 | 2019-07-19T23:47:53.000Z | 2019-07-22T03:45:10.000Z | src/Adafruit_I2CDevice.cpp | nrobinson2000/Adafruit_VEML7700 | ad29bfb331ad08ed6e40de68abae6455f99760bf | [
"BSD-3-Clause"
] | 1 | 2019-11-15T22:59:55.000Z | 2019-11-15T22:59:55.000Z | src/Adafruit_I2CDevice.cpp | nrobinson2000/Adafruit_VEML7700 | ad29bfb331ad08ed6e40de68abae6455f99760bf | [
"BSD-3-Clause"
] | null | null | null | #include "Adafruit_I2CDevice.h"
//#define DEBUG_SERIAL Serial
Adafruit_I2CDevice::Adafruit_I2CDevice(uint8_t addr, TwoWire *theWire) {
_addr = addr;
_wire = theWire;
_begun = false;
}
bool Adafruit_I2CDevice::begin(void) {
_wire->begin();
_begun = true;
return detected();
}
bool Adafruit_I2CDevice::det... | 24.719424 | 133 | 0.656868 | nrobinson2000 |
ab410361601715b1e2a22afb58c864c7ab9f93ba | 2,605 | cc | C++ | src/controller/SweepController.cc | ThomasPak/pakman | 8d74f3b7162d04a1c72fbda9517ed19063f1a246 | [
"BSD-3-Clause"
] | 14 | 2019-11-09T15:07:47.000Z | 2021-04-06T14:46:20.000Z | src/controller/SweepController.cc | ThomasPak/pakman | 8d74f3b7162d04a1c72fbda9517ed19063f1a246 | [
"BSD-3-Clause"
] | 1 | 2020-09-16T18:12:52.000Z | 2020-10-31T19:00:09.000Z | src/controller/SweepController.cc | ThomasPak/pakman | 8d74f3b7162d04a1c72fbda9517ed19063f1a246 | [
"BSD-3-Clause"
] | 3 | 2019-12-25T06:11:06.000Z | 2020-03-12T19:02:32.000Z | #include <string>
#include <vector>
#include <stdexcept>
#include <iostream>
#include <assert.h>
#include "core/utils.h"
#include "core/OutputStreamHandler.h"
#include "system/system_call.h"
#include "interface/output.h"
#include "interface/protocols.h"
#include "master/AbstractMaster.h"
#include "SweepController.h"... | 25.539216 | 76 | 0.637236 | ThomasPak |
ab41c67e0a52c2f7692aad0f676694619c4df6dc | 10,574 | cpp | C++ | Engine/source/sfx/fmod/sfxFMODEvent.cpp | fr1tz/alux3d | 249a3b51751ce3184d52879b481f83eabe89e7e3 | [
"MIT"
] | 46 | 2015-01-05T17:34:43.000Z | 2022-01-04T04:03:09.000Z | Engine/source/sfx/fmod/sfxFMODEvent.cpp | fr1tz/alux3d | 249a3b51751ce3184d52879b481f83eabe89e7e3 | [
"MIT"
] | 10 | 2015-01-20T23:14:46.000Z | 2019-04-05T22:04:15.000Z | Engine/source/sfx/fmod/sfxFMODEvent.cpp | fr1tz/terminal-overload | 85f0689a40022e5eb7e54dcb6ddfb5ddd82a0a60 | [
"CC-BY-4.0"
] | 9 | 2015-08-08T18:46:06.000Z | 2021-02-01T13:53:20.000Z | // Copyright information can be found in the file named COPYING
// located in the root directory of this distribution.
#include "platform/platform.h"
#include "sfx/fmod/sfxFMODEvent.h"
#include "sfx/fmod/sfxFMODEventGroup.h"
#include "sfx/fmod/sfxFMODProject.h"
#include "sfx/fmod/sfxFMODDevice.h"
#include "sfx/sfxPara... | 32.94081 | 143 | 0.594099 | fr1tz |
ab4478572e25c1f4288bd06f1aeebffb8fbac55d | 367 | cpp | C++ | 1180.cpp | fenatan/URI-Online-Judge | 983cadd364e658cdebcbc2c0165e8f54e023a823 | [
"MIT"
] | null | null | null | 1180.cpp | fenatan/URI-Online-Judge | 983cadd364e658cdebcbc2c0165e8f54e023a823 | [
"MIT"
] | null | null | null | 1180.cpp | fenatan/URI-Online-Judge | 983cadd364e658cdebcbc2c0165e8f54e023a823 | [
"MIT"
] | null | null | null | #include <stdio.h>
int main(){
int x,n[10000],pos, menor;
scanf("%d", &x);
scanf("%d", &n[0]);
pos = 0;
menor = n[0];
for(int i =1; i < x; i++){
scanf("%d", &n[i]);
if(n[i] < menor){
menor = n[i]; pos = i;
}
}
printf("Menor valor: %d\n", menor);
... | 17.47619 | 39 | 0.411444 | fenatan |
ab48d98dfd1c89b41b84bf5f47d4cff12c1b603b | 14,349 | cpp | C++ | framework/Renderer/RendererDirectX11/Sources/HLSLShader.cpp | assoria/kigs | 53136685a23e5552a94fb72a794275c7abbfe7f4 | [
"MIT"
] | 26 | 2019-11-14T19:02:52.000Z | 2020-04-20T06:08:34.000Z | framework/Renderer/RendererDirectX11/Sources/HLSLShader.cpp | assoria/kigs | 53136685a23e5552a94fb72a794275c7abbfe7f4 | [
"MIT"
] | null | null | null | framework/Renderer/RendererDirectX11/Sources/HLSLShader.cpp | assoria/kigs | 53136685a23e5552a94fb72a794275c7abbfe7f4 | [
"MIT"
] | 6 | 2020-02-03T12:38:23.000Z | 2020-04-16T10:55:41.000Z | #include "HLSLShader.h"
#include "RendererDX11.h"
#include "HLSLUniform.h"
#include "ModuleSceneGraph.h"
#include "TravState.h"
#include <d3d11.h>
#include <d3dcompiler.h>
HLSLShaderInfo::~HLSLShaderInfo()
{
if (mInternalShaderStruct)
mInternalShaderStruct->Release();
mInternalShaderStruct = nullptr;
if (mBlob)... | 27.97076 | 189 | 0.724023 | assoria |
ab4e949ad7c175e6ceec284c42b7458a6364986f | 683 | cpp | C++ | 099. Same Tree/main.cpp | corkiwang1122/LeetCode | 39b1680b58173e6ec23a475605c3450ce8f78a81 | [
"MIT"
] | 3,690 | 2015-01-03T03:40:23.000Z | 2022-03-31T08:10:19.000Z | 099. Same Tree/main.cpp | Windfall94/LeetCode | 1756256d7e619164076bbf358c8f7ca68cd8bd79 | [
"MIT"
] | 21 | 2015-01-25T16:39:43.000Z | 2021-02-26T05:28:22.000Z | 099. Same Tree/main.cpp | Windfall94/LeetCode | 1756256d7e619164076bbf358c8f7ca68cd8bd79 | [
"MIT"
] | 1,290 | 2015-01-09T01:28:20.000Z | 2022-03-28T12:20:39.000Z | #include <iostream>
#include "solution.h"
// Test Unit
// Create a tree for test
// 1
// / \
// 2 3
// / \ \
// 4 5 6
// / \
// 7 8
// /
// 9
int main() {
TreeNode root1(1);
TreeNode root2(1);
TreeNode t2(2);
TreeNode t3(3);
TreeNod... | 15.522727 | 56 | 0.493411 | corkiwang1122 |
ab50838eff5cdabfad78223e914e41f49e754f3f | 9,297 | cpp | C++ | src/regexmanager.cpp | amritbrar/newsboat | fdef6fc5558aaf0baa3b8c185b335ca577535a33 | [
"MIT"
] | null | null | null | src/regexmanager.cpp | amritbrar/newsboat | fdef6fc5558aaf0baa3b8c185b335ca577535a33 | [
"MIT"
] | null | null | null | src/regexmanager.cpp | amritbrar/newsboat | fdef6fc5558aaf0baa3b8c185b335ca577535a33 | [
"MIT"
] | null | null | null | #include "regexmanager.h"
#include <cstring>
#include <iostream>
#include <stack>
#include "config.h"
#include "confighandlerexception.h"
#include "logger.h"
#include "strprintf.h"
#include "utils.h"
namespace newsboat {
RegexManager::RegexManager()
{
// this creates the entries in the map. we need them there to h... | 24.991935 | 93 | 0.640959 | amritbrar |
ab58cbe459588cf687552a9e8de2f1bca2dac76a | 492 | cpp | C++ | 8B/main.cpp | nikolyanikolya/some_repository | 41bdbda91f48e6df724ebaeae199c157099e59cb | [
"Apache-2.0"
] | null | null | null | 8B/main.cpp | nikolyanikolya/some_repository | 41bdbda91f48e6df724ebaeae199c157099e59cb | [
"Apache-2.0"
] | null | null | null | 8B/main.cpp | nikolyanikolya/some_repository | 41bdbda91f48e6df724ebaeae199c157099e59cb | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
void soch(int n, int k, std::vector<int> arr){
if(k==0) {
for(auto i :arr)
{
std::cout<<i<<" ";
}
std::cout<<"\n";
return;
}
if(n>=k){
arr.push_back(n);
soch(n-1, k-1, arr);
arr.pop_back();
}
if(n>... | 14.909091 | 47 | 0.424797 | nikolyanikolya |
ab5acabeb4c303299a5c0f808dadad79927a5b08 | 6,800 | hh | C++ | aegir-brewd/src/ProcessState.hh | gczuczy/aegir | 1275ca41bfe4a56347eb2531211df4c70933fb96 | [
"BSD-3-Clause"
] | null | null | null | aegir-brewd/src/ProcessState.hh | gczuczy/aegir | 1275ca41bfe4a56347eb2531211df4c70933fb96 | [
"BSD-3-Clause"
] | 11 | 2020-06-04T20:31:02.000Z | 2022-02-26T01:39:26.000Z | aegir-brewd/src/ProcessState.hh | gczuczy/aegir | 1275ca41bfe4a56347eb2531211df4c70933fb96 | [
"BSD-3-Clause"
] | 1 | 2020-12-10T19:19:41.000Z | 2020-12-10T19:19:41.000Z | /*
* This class holds the current process state
* - Stores the program
* - Holds sensor state information
* - Holds sensor statistics info
*/
#ifndef AEGIR_PROCESSSTATE_H
#define AEGIR_PROCESSSTATE_H
#include <memory>
#include <atomic>
#include <cstdint>
#include <mutex>
#include <map>
#include <set>
#include <l... | 41.212121 | 109 | 0.702941 | gczuczy |
ab5da778f7143e4022894d6511f7411a41107932 | 824 | cpp | C++ | Test/Automation/FunctionIntercepts/GetWriteWatch.cpp | SecurityInnovation/Holodeck | 54b97675a73b668f8eec8d9c8a8c7733e1a53db3 | [
"MIT"
] | 35 | 2015-05-16T06:36:47.000Z | 2021-08-31T15:32:09.000Z | Test/Automation/FunctionIntercepts/GetWriteWatch.cpp | crypticterminal/Holodeck | 54b97675a73b668f8eec8d9c8a8c7733e1a53db3 | [
"MIT"
] | 3 | 2015-06-18T06:16:51.000Z | 2017-11-16T23:23:59.000Z | Test/Automation/FunctionIntercepts/GetWriteWatch.cpp | crypticterminal/Holodeck | 54b97675a73b668f8eec8d9c8a8c7733e1a53db3 | [
"MIT"
] | 10 | 2015-04-07T14:45:48.000Z | 2021-11-14T15:14:45.000Z | #include "common.h"
BOOL My_GetWriteWatch()
{
DWORD dwFlags=NULL;
PVOID lpBaseAddress=NULL;
SIZE_T dwRegionSize=NULL;
PVOID * lpAddresses=NULL;
PULONG_PTR lpdwCount=NULL;
PULONG lpdwGranularity=NULL;
UINT returnVal_Real = NULL;
UINT returnVal_Intercepted = NULL;
DWORD error_Real = 0;
DWORD error_Intercepte... | 30.518519 | 114 | 0.786408 | SecurityInnovation |
ab63a0185511fdd2303249d16a461f67c7726279 | 11,140 | cpp | C++ | rendering/overlay-dc-wx.cpp | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 10 | 2016-12-28T22:06:31.000Z | 2021-05-24T13:42:30.000Z | rendering/overlay-dc-wx.cpp | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 4 | 2015-10-09T23:55:10.000Z | 2020-04-04T08:09:22.000Z | rendering/overlay-dc-wx.cpp | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | null | null | null | // -*- coding: us-ascii-unix -*-
// Copyright 2012 Lukas Kemmer
//
// 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 a... | 30.858726 | 82 | 0.690395 | lukas-ke |
ab64299842294d0baf56d8984b3d27e484c18bdd | 3,482 | cpp | C++ | Include/Firefly/Source/Buffer.cpp | Intro-Ventors/Firefly | fa817785758c72f135492e9cc36daf1250169490 | [
"MIT"
] | null | null | null | Include/Firefly/Source/Buffer.cpp | Intro-Ventors/Firefly | fa817785758c72f135492e9cc36daf1250169490 | [
"MIT"
] | null | null | null | Include/Firefly/Source/Buffer.cpp | Intro-Ventors/Firefly | fa817785758c72f135492e9cc36daf1250169490 | [
"MIT"
] | null | null | null | #include "Firefly/Buffer.hpp"
#include <array>
namespace Firefly
{
Buffer::Buffer(const std::shared_ptr<Engine>& pEngine, const uint64_t size, const BufferType type)
: EngineBoundObject(pEngine), m_Size(size), m_Type(type)
{
}
Buffer::~Buffer()
{
if (!isTerminated())
terminate();
}
std::shared_ptr<Buf... | 28.540984 | 173 | 0.734635 | Intro-Ventors |
ab6a0c4341484c53bf93b68b830a3f07e40a3b75 | 459 | hpp | C++ | PPmatrix/copy.hpp | Petkr/PPmatrix | af0d6bece21a39f837e14d9dbee3e72bbfda14b4 | [
"MIT"
] | null | null | null | PPmatrix/copy.hpp | Petkr/PPmatrix | af0d6bece21a39f837e14d9dbee3e72bbfda14b4 | [
"MIT"
] | null | null | null | PPmatrix/copy.hpp | Petkr/PPmatrix | af0d6bece21a39f837e14d9dbee3e72bbfda14b4 | [
"MIT"
] | null | null | null | #pragma once
#include "zip.hpp"
#include "PP.hpp"
namespace PPmatrix
{
constexpr void copy(view auto&& from, view auto&& to)
{
zip(from, to,
[](const auto& from, auto& to)
{
to = from;
});
}
constexpr void copy(const std::initializer_list<auto>& l, view auto&& to)
{
copy(detail::wrap_initializer... | 15.827586 | 74 | 0.614379 | Petkr |
03648e4f78243871fc51d79a056bd1947e82ed43 | 4,010 | cpp | C++ | iphub_client/src/iphub_client.cpp | Hun1eR/IPHub-Client | 6fac2ea982a96aa67739f43651d603365fac1401 | [
"MIT"
] | 3 | 2020-04-26T16:27:58.000Z | 2021-02-10T19:11:02.000Z | iphub_client/src/iphub_client.cpp | Hun1eR/IPHub-Client | 6fac2ea982a96aa67739f43651d603365fac1401 | [
"MIT"
] | null | null | null | iphub_client/src/iphub_client.cpp | Hun1eR/IPHub-Client | 6fac2ea982a96aa67739f43651d603365fac1401 | [
"MIT"
] | null | null | null | // ***********************************************************************
// Author : the_hunter
// Created : 04-01-2020
//
// Last Modified By : the_hunter
// Last Modified On : 04-01-2020
// ***********************************************************************
#include <iphub_client/iphub_clien... | 22.784091 | 108 | 0.680299 | Hun1eR |
036c3c14a86efcaabcfbca29c462ed53ec20505b | 2,934 | cpp | C++ | src/engine/renderable/shape/Cube.cpp | stanfortonski/Procedural-Terrain-Generator-OpenGL | a88bf2d7a44e7efa10dd980147e2bad0d1a782bf | [
"MIT"
] | 93 | 2020-03-06T21:40:48.000Z | 2022-03-28T06:30:55.000Z | src/engine/renderable/shape/Cube.cpp | pashashigalev/Shigalev-Pavel | 0c9094f409eb5a9d44ea4825fba86fcfe07a757e | [
"BSD-3-Clause"
] | 1 | 2021-08-31T07:56:37.000Z | 2021-08-31T16:06:35.000Z | src/engine/renderable/shape/Cube.cpp | stanfortonski/Procedural-Terrain-Generator-OpenGL | a88bf2d7a44e7efa10dd980147e2bad0d1a782bf | [
"MIT"
] | 10 | 2020-06-06T11:21:35.000Z | 2022-03-24T01:55:20.000Z | /* Copyright (c) 2020 by Stan Fortoński */
#include "Cube.hpp"
namespace Engine
{
Cube::Cube()
{
float cubeVertices[] = {
-1.0, -1.0, -1.0, 0.0, 0.0, 0.0, 0.0, -1.0,
1.0, 1.0, -1.0, 1.0, 1.0, 0.0, 0.0, -1.0,
1.0, -1.0, -1.0, 1.0, 0.0, 0.0, 0.0, -1.0,
1.0, 1.0, -1.0, 1.0, 1.0, ... | 33.724138 | 87 | 0.451602 | stanfortonski |
036cabde48685a3e4ce71fbe97b8a9847351cf15 | 196 | hpp | C++ | phoenix/gtk/header.hpp | vgmtool/vgm2pre | f4f917df35d531512292541234a5c1722b8af96f | [
"MIT"
] | 21 | 2015-04-13T03:07:12.000Z | 2021-11-20T00:27:00.000Z | phoenix/gtk/header.hpp | apollolux/hello-phoenix | 71510b5f329804c525a9576fb0367fe8ab2487cd | [
"MIT"
] | 2 | 2015-10-06T14:59:48.000Z | 2022-01-27T08:57:57.000Z | phoenix/gtk/header.hpp | apollolux/hello-phoenix | 71510b5f329804c525a9576fb0367fe8ab2487cd | [
"MIT"
] | 2 | 2021-11-19T08:36:57.000Z | 2022-03-04T16:03:16.000Z | #include <nall/xorg/guard.hpp>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#include <gdk/gdkkeysyms.h>
#include <cairo.h>
#include <X11/Xatom.h>
#include <nall/xorg/guard.hpp>
| 21.777778 | 30 | 0.709184 | vgmtool |
036d783865551dab07def3eb0e5fa61a6843f524 | 798 | cpp | C++ | hackerrank/richie-rich/solution.cpp | SamProkopchuk/coding-problems | fa0ca2c05ac90e41945de1a5751e5545a8459ac4 | [
"MIT"
] | null | null | null | hackerrank/richie-rich/solution.cpp | SamProkopchuk/coding-problems | fa0ca2c05ac90e41945de1a5751e5545a8459ac4 | [
"MIT"
] | null | null | null | hackerrank/richie-rich/solution.cpp | SamProkopchuk/coding-problems | fa0ca2c05ac90e41945de1a5751e5545a8459ac4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int highest_value_palindrome(string &s, size_t k) {
int i, l, d;
l = s.length();
for (d = 0, i = 0; i < l / 2; ++i)
if (s[i] != s[l - 1 - i]) ++d;
if (k < d) return -1;
for (i = 0; i < l / 2; ++i) {
if (s[i] != s[l - 1 - i]) {
s[i] = s... | 21.567568 | 52 | 0.389724 | SamProkopchuk |
036df2ed03041b89e259717234c761ca3b9dd618 | 4,014 | cpp | C++ | Tests/Display/Window/utils.cpp | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | Tests/Display/Window/utils.cpp | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | Tests/Display/Window/utils.cpp | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | /*
** ClanLib SDK
** Copyright (c) 1997-2016 The ClanLib Team
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this software for a... | 26.407895 | 126 | 0.718984 | ValtoFrameworks |
036dfd8bbdf86dd03762034000bbf22d885eb1d6 | 1,403 | cpp | C++ | plugins/stone-phaser/PhaserShared.cpp | jpcima/stone-phaser | da92961a4148b77fca131ba0e51d9ea7ad0b2476 | [
"BSL-1.0"
] | 22 | 2019-08-18T22:13:25.000Z | 2022-02-22T04:44:38.000Z | plugins/stone-phaser/PhaserShared.cpp | jpcima/stone-phaser | da92961a4148b77fca131ba0e51d9ea7ad0b2476 | [
"BSL-1.0"
] | 4 | 2019-08-18T21:44:04.000Z | 2019-10-07T12:46:08.000Z | plugins/stone-phaser/PhaserShared.cpp | jpcima/stone-phaser | da92961a4148b77fca131ba0e51d9ea7ad0b2476 | [
"BSL-1.0"
] | 3 | 2019-12-31T03:10:29.000Z | 2021-06-07T09:49:38.000Z | #include "PhaserShared.hpp"
#include "StonePhaserDsp.hpp"
void InitParameter(uint32_t index, DISTRHO::Parameter ¶meter)
{
DISTRHO_SAFE_ASSERT_RETURN(index < StonePhaserDsp::NumActives,);
switch (index) {
case StonePhaserDsp::p_bypass:
parameter.initDesignation(DISTRHO::kParameterDesignationByp... | 38.972222 | 90 | 0.699929 | jpcima |
036f29eb07e4b3cfd1ce6c696ace00bac88df595 | 38,310 | cpp | C++ | modules/attention_segmentation/src/fitting_surface_pdm.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 17 | 2015-11-16T14:21:10.000Z | 2020-11-09T02:57:33.000Z | modules/attention_segmentation/src/fitting_surface_pdm.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 35 | 2015-07-27T15:04:43.000Z | 2019-08-22T10:52:35.000Z | modules/attention_segmentation/src/fitting_surface_pdm.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 18 | 2015-08-06T09:26:27.000Z | 2020-09-03T01:31:00.000Z | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012-, Open Perception, 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... | 27.84157 | 132 | 0.586688 | ToMadoRe |
036feb6a5fc87b0034e6dafa9ddbfddb1034f75d | 1,121 | hpp | C++ | engine/renderer/include/scenecapture.hpp | redstrate/prism | acb6c5306c6f60088744191f3d3d8713fc6950bd | [
"MIT"
] | 18 | 2020-08-11T18:13:49.000Z | 2022-03-08T21:42:54.000Z | engine/renderer/include/scenecapture.hpp | redstrate/prism | acb6c5306c6f60088744191f3d3d8713fc6950bd | [
"MIT"
] | 11 | 2020-08-27T12:37:48.000Z | 2022-02-21T05:17:03.000Z | engine/renderer/include/scenecapture.hpp | redstrate/prism | acb6c5306c6f60088744191f3d3d8713fc6950bd | [
"MIT"
] | 1 | 2020-12-08T14:01:48.000Z | 2020-12-08T14:01:48.000Z | #pragma once
#include "math.hpp"
class GFX;
class GFXCommandBuffer;
class GFXFramebuffer;
class GFXPipeline;
class GFXRenderPass;
class GFXTexture;
class GFXBuffer;
class Scene;
const int scene_cubemap_resolution = 1024;
const int irradiance_cubemap_resolution = 32;
class SceneCapture {
public:
explicit SceneCa... | 28.025 | 122 | 0.758252 | redstrate |
03731030f3fd4c98a7bede29414c049b5cb59e01 | 595 | cpp | C++ | main.cpp | NamanhTran/Syntax-Analyzer | c91db3ea79300e2e95b781559d2ace491d0e6aec | [
"MIT"
] | null | null | null | main.cpp | NamanhTran/Syntax-Analyzer | c91db3ea79300e2e95b781559d2ace491d0e6aec | [
"MIT"
] | 17 | 2021-04-01T23:07:21.000Z | 2021-04-15T18:03:37.000Z | main.cpp | NamanhTran/Syntax-Analyzer | c91db3ea79300e2e95b781559d2ace491d0e6aec | [
"MIT"
] | 1 | 2021-04-10T19:55:09.000Z | 2021-04-10T19:55:09.000Z | #include <iostream>
#include <string>
#include "syntax_parser.hpp"
int main(int argc, char** argv) {
// If the path file was not provided then print the usage instruction
if (argc != 2) {
std::cout << "Error no path to test case text file provided in command line." << std::endl;
std::cout << "... | 27.045455 | 99 | 0.638655 | NamanhTran |
0374e8a7e6cfb3100a861ec7c6c2acd2311d5cbf | 2,874 | cpp | C++ | tests/test-unsat-core.cpp | afnaanhashmi/smt-switch | 73dd8ccf3c737e6bcf214d9f967df4a16b437eb8 | [
"BSD-3-Clause"
] | null | null | null | tests/test-unsat-core.cpp | afnaanhashmi/smt-switch | 73dd8ccf3c737e6bcf214d9f967df4a16b437eb8 | [
"BSD-3-Clause"
] | null | null | null | tests/test-unsat-core.cpp | afnaanhashmi/smt-switch | 73dd8ccf3c737e6bcf214d9f967df4a16b437eb8 | [
"BSD-3-Clause"
] | null | null | null | /********************* */
/*! \file test-unsat-core.cpp
** \verbatim
** Top contributors (to current version):
** Makai Mann
** This file is part of the smt-switch project.
** Copyright (c) 2020 by the authors listed in the file AUTHORS
** in the top-level source... | 26.859813 | 80 | 0.671886 | afnaanhashmi |
0375c37a19d04cd8a6a61c6b03fd5054e45156a4 | 2,731 | cpp | C++ | external/juce/JUCE/modules/juce_gui_extra/misc/juce_SplashScreen.cpp | ngwese/soundplane | 92ed75035694db1a8886e4791aab0a23efff4cc3 | [
"MIT"
] | 20 | 2015-01-26T05:34:53.000Z | 2022-01-31T07:09:35.000Z | external/juce/JUCE/modules/juce_gui_extra/misc/juce_SplashScreen.cpp | ngwese/soundplane | 92ed75035694db1a8886e4791aab0a23efff4cc3 | [
"MIT"
] | 35 | 2015-03-07T18:26:09.000Z | 2021-07-16T17:07:32.000Z | external/juce/JUCE/modules/juce_gui_extra/misc/juce_SplashScreen.cpp | ngwese/soundplane | 92ed75035694db1a8886e4791aab0a23efff4cc3 | [
"MIT"
] | 8 | 2015-03-10T08:44:04.000Z | 2021-01-04T00:31:12.000Z | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2015 - ROLI Ltd.
Permission is granted to use this software under the terms of either:
a) the GPL v2 (or any later version)
b) the Affero GPL v3
Details... | 32.511905 | 92 | 0.622116 | ngwese |
03776ffbc11d1136f20f66c2e41abb3ec3f72e2d | 5,305 | hpp | C++ | library/L3_Application/task_scheduler.hpp | aakashvarshney23/SJSU-CmpE-146 | 9d71d9897faac435a6adafc8f3158d373dfe8b20 | [
"Apache-2.0"
] | 1 | 2019-09-02T22:02:23.000Z | 2019-09-02T22:02:23.000Z | library/L3_Application/task_scheduler.hpp | aakashvarshney23/SJSU-CmpE-146 | 9d71d9897faac435a6adafc8f3158d373dfe8b20 | [
"Apache-2.0"
] | null | null | null | library/L3_Application/task_scheduler.hpp | aakashvarshney23/SJSU-CmpE-146 | 9d71d9897faac435a6adafc8f3158d373dfe8b20 | [
"Apache-2.0"
] | null | null | null | // This file contains the TaskScheduler class used to scheduler task classes
// that inherit TaskInterface.
// Tasks inheriting TaskInterface are automatically added to the scheduler when
// constructed. Simply start the scheduler after constructing and configuring
// desired tasks.
// Usage:
// sjsu::rtos::... | 33.789809 | 80 | 0.671631 | aakashvarshney23 |
0378dabbb9b6b652402ba6493837faa154e0dd7f | 3,459 | cpp | C++ | ScenarioGrapher/InputManager.cpp | MatthewOwens/ScenarioGrapher | 22109386b29dd8cb185c5e344765004c604f4519 | [
"MIT"
] | null | null | null | ScenarioGrapher/InputManager.cpp | MatthewOwens/ScenarioGrapher | 22109386b29dd8cb185c5e344765004c604f4519 | [
"MIT"
] | 9 | 2017-05-09T16:30:46.000Z | 2017-05-25T10:29:27.000Z | ScenarioGrapher/InputManager.cpp | MatthewOwens/ScenarioGrapher | 22109386b29dd8cb185c5e344765004c604f4519 | [
"MIT"
] | null | null | null | #include "InputManager.h"
#include <iostream>
#include <functional>
InputManager::InputManager()
{
keyBinds["up"] = sf::Keyboard::W;
keyBinds["down"] = sf::Keyboard::S;
keyBinds["left"] = sf::Keyboard::A;
keyBinds["right"] = sf::Keyboard::D;
keyBinds["confirm"] = sf::Keyboard::Return;
keyBinds... | 25.813433 | 101 | 0.672738 | MatthewOwens |
0379b92a9c8c38ae9e86b7e2bfac909f4c98f1d6 | 2,660 | cc | C++ | check/general/circle.cc | nicuveo/MML | b877a65abb61ea2fe6d8407b50f44fd170fb748d | [
"MIT"
] | null | null | null | check/general/circle.cc | nicuveo/MML | b877a65abb61ea2fe6d8407b50f44fd170fb748d | [
"MIT"
] | null | null | null | check/general/circle.cc | nicuveo/MML | b877a65abb61ea2fe6d8407b50f44fd170fb748d | [
"MIT"
] | null | null | null | //
// Copyright Antoine Leblanc 2010 - 2015
// Distributed under the MIT license.
//
// http://nauths.fr
// http://github.com/nicuveo
// mailto://antoine.jp.leblanc@gmail.com
//
//HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
// Includes
#include <cstdlib>
#include <iostream>
#include <boost/... | 20.620155 | 76 | 0.664662 | nicuveo |
037dcea8cd4979209819c50a1d8205fa49730774 | 2,847 | hh | C++ | src/whetstone/MFD3D.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/whetstone/MFD3D.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/whetstone/MFD3D.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | /*
WhetStone, Version 2.2
Release name: naka-to.
Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL.
Amanzi is released under the three-clause BSD License.
The terms of use and "as is" disclaimer for this license are
provided in the top-level COPYRIGHT file.
Author: Konstantin Lipnikov (li... | 31.633333 | 99 | 0.748507 | fmyuan |
037f296e4920826babaca66078858a4802327824 | 1,063 | cpp | C++ | Ejercicios/Ejercicio42_punto_de_Venta_parte3/Productos.cpp | Maldanar201/LenguajeProgramacion1 | 5a53c51077c0e41deff8daf40dbe6f0778b41f9c | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio42_punto_de_Venta_parte3/Productos.cpp | Maldanar201/LenguajeProgramacion1 | 5a53c51077c0e41deff8daf40dbe6f0778b41f9c | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio42_punto_de_Venta_parte3/Productos.cpp | Maldanar201/LenguajeProgramacion1 | 5a53c51077c0e41deff8daf40dbe6f0778b41f9c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
extern void agregarProducto(string descripcion, int cantidad, double precio);
void Productos(int opcion)
{
system("cls");
int opcionProductos = 0;
switch(opcion)
{
case 1:
{
cout <<" ### BEBIDAS CALIENTES ### "<< endl;
cout <<"==============... | 16.609375 | 78 | 0.450611 | Maldanar201 |
037f96916c881310cbaf8c861e32d66f3bf1f93b | 4,860 | cpp | C++ | Arduino/Daves Garage/LED Episode 08/src/main.cpp | j1fvandenbosch/IOT-Workarea-Storage | 3232f1e9afc3d8d05828de11fc85c226ef46a716 | [
"MIT"
] | null | null | null | Arduino/Daves Garage/LED Episode 08/src/main.cpp | j1fvandenbosch/IOT-Workarea-Storage | 3232f1e9afc3d8d05828de11fc85c226ef46a716 | [
"MIT"
] | null | null | null | Arduino/Daves Garage/LED Episode 08/src/main.cpp | j1fvandenbosch/IOT-Workarea-Storage | 3232f1e9afc3d8d05828de11fc85c226ef46a716 | [
"MIT"
] | null | null | null | //+--------------------------------------------------------------------------
//
// NightDriver - (c) 2018 Dave Plummer. All Rights Reserved.
//
// File: LED Episode 07
//
// Description:
//
// Draws sample effects on a an addressable strip using FastLED
//
// History: Sep-15-2020 davepl ... | 32.837838 | 140 | 0.603909 | j1fvandenbosch |
0380bf74194d497cf9dc754c4dadf1cbc563154c | 765 | cc | C++ | src/BoydBuildUtil.cc | BoydOrg/BoydEngine | ebe0fae7c70fbf3038f79e6a2c9ba55582ae09da | [
"BSD-3-Clause"
] | 1 | 2021-07-31T14:56:02.000Z | 2021-07-31T14:56:02.000Z | src/BoydBuildUtil.cc | BoydOrg/BoydEngine | ebe0fae7c70fbf3038f79e6a2c9ba55582ae09da | [
"BSD-3-Clause"
] | 1 | 2020-01-27T12:42:53.000Z | 2020-03-17T17:12:57.000Z | src/BoydBuildUtil.cc | BoydOrg/BoydEngine | ebe0fae7c70fbf3038f79e6a2c9ba55582ae09da | [
"BSD-3-Clause"
] | null | null | null | #include <cstddef>
#include <cstring>
#include <fstream>
int main(int argc, char **argv)
{
std::ofstream outfile(argv[1]);
if(!outfile)
{
fprintf(stderr, "Failed to open %s for writing!\n", argv[1]);
return 1;
}
// HACK to get sensible filepaths (= starting from this folder) from _... | 33.26087 | 111 | 0.677124 | BoydOrg |
038cfa5d1e1da6ff09ae694966e5b290303f6b9d | 2,793 | cpp | C++ | src/LookingGlassOgre/SkyBoxSimple.cpp | Misterblue/LookingGlass-Viewer | c80120e3e5cc8ed699280763c95ca8bb8db8174b | [
"BSD-3-Clause"
] | 3 | 2018-10-14T18:06:33.000Z | 2021-07-23T15:00:10.000Z | src/LookingGlassOgre/SkyBoxSimple.cpp | Misterblue/LookingGlass-Viewer | c80120e3e5cc8ed699280763c95ca8bb8db8174b | [
"BSD-3-Clause"
] | null | null | null | src/LookingGlassOgre/SkyBoxSimple.cpp | Misterblue/LookingGlass-Viewer | c80120e3e5cc8ed699280763c95ca8bb8db8174b | [
"BSD-3-Clause"
] | 2 | 2018-10-14T18:06:37.000Z | 2019-06-10T22:35:37.000Z | /* Copyright (c) Robert Adams
* 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 following disclaimer... | 40.478261 | 88 | 0.734336 | Misterblue |
039637c3f873a360156056621919b2b25ae1c3ec | 1,657 | cpp | C++ | UVA/level 2/11631 - Dark Roads.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | 1 | 2020-04-13T11:12:19.000Z | 2020-04-13T11:12:19.000Z | UVA/level 2/11631 - Dark Roads.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | null | null | null | UVA/level 2/11631 - Dark Roads.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | null | null | null | // Kruskal + Union Find Disjoint Set
#include <bits/stdc++.h>
using namespace std;
// deklarasi global
int p[200005]; // var parent
vector<pair<int,pair<int,int> > > edgelist; // var edgelist
/* START UFDS */
void init(int v) // inisialisasi parent vertex = vertex itu sendiri
{
for(int i = 0; i < v; ... | 22.093333 | 81 | 0.474955 | lieahau |
039a8d9f51788465102e180c6e32f1faacb72ed6 | 2,208 | cpp | C++ | c++/84-7897-268-4/cap.2/ParametrosReferencia/parametrosReferencia.cpp | leopansa/libros | 1fd44aaa230eedb493f52497e82bed1ab1cc6252 | [
"MIT"
] | null | null | null | c++/84-7897-268-4/cap.2/ParametrosReferencia/parametrosReferencia.cpp | leopansa/libros | 1fd44aaa230eedb493f52497e82bed1ab1cc6252 | [
"MIT"
] | null | null | null | c++/84-7897-268-4/cap.2/ParametrosReferencia/parametrosReferencia.cpp | leopansa/libros | 1fd44aaa230eedb493f52497e82bed1ab1cc6252 | [
"MIT"
] | null | null | null | // Paso de PARAMETROS POR REFERENCIA
// Cuando se efectura llamada a una funcion, hay dos formas de pasar
// los parametros actuales a sus correspondientes parametros formales: por valor y por referencia.
// Pasar por valor:
// Copiar parametros actuales en sus correspondientes parametros formales, operacion que se h... | 35.612903 | 103 | 0.638587 | leopansa |
039ef8937c69c6593d8ab70c2f87b6ee1e0030fa | 24,277 | cpp | C++ | examples/56_PBR_IBL/PBRIBLDemo.cpp | zsb534923374/VulkanDemos | 3bda2a8f29cfb69ffdb1bed5a53ffa1c4a2c1dc5 | [
"MIT"
] | null | null | null | examples/56_PBR_IBL/PBRIBLDemo.cpp | zsb534923374/VulkanDemos | 3bda2a8f29cfb69ffdb1bed5a53ffa1c4a2c1dc5 | [
"MIT"
] | null | null | null | examples/56_PBR_IBL/PBRIBLDemo.cpp | zsb534923374/VulkanDemos | 3bda2a8f29cfb69ffdb1bed5a53ffa1c4a2c1dc5 | [
"MIT"
] | null | null | null | #include "Common/Common.h"
#include "Common/Log.h"
#include "Demo/DVKCommon.h"
#include "Math/Vector4.h"
#include "Math/Matrix4x4.h"
#include <vector>
// http://yangwc.com/2019/07/21/ImageBasedLighting/
class PBRIBLDemo : public DemoBase
{
public:
PBRIBLDemo(int32 width, int32 height, const char* title, const std:... | 28.261932 | 128 | 0.725378 | zsb534923374 |
039fc111bcbdb11329679954ac0544c2ba17f82f | 1,194 | cpp | C++ | client.cpp | pushpendra1997/Redis_C- | a0a99d74cb742201beda2f76d5da283b8394a341 | [
"MIT"
] | 2 | 2021-06-19T01:59:27.000Z | 2021-07-06T08:14:41.000Z | client.cpp | pushpendra1997/Redis_C- | a0a99d74cb742201beda2f76d5da283b8394a341 | [
"MIT"
] | null | null | null | client.cpp | pushpendra1997/Redis_C- | a0a99d74cb742201beda2f76d5da283b8394a341 | [
"MIT"
] | 2 | 2020-04-21T01:04:50.000Z | 2020-04-22T18:17:20.000Z | #include <bits/stdc++.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
using namespace std;
#define PORT 8080
int main(int argc, char const *argv[])
{
int sock = 0, valread;
struct sockaddr_in serv_addr;
char hello[1024] = {0};
char buffer[1024] = {0};
if ((sock = ... | 27.136364 | 79 | 0.546064 | pushpendra1997 |
03a0c0bd58ac829a4a1ea4fff008a26d4962d556 | 7,630 | cpp | C++ | worker/src/Master/Configuration.cpp | idarkblue/mediasoup | f77bbd3680c122a2a4f15836b746e53e4b8571d0 | [
"0BSD"
] | null | null | null | worker/src/Master/Configuration.cpp | idarkblue/mediasoup | f77bbd3680c122a2a4f15836b746e53e4b8571d0 | [
"0BSD"
] | null | null | null | worker/src/Master/Configuration.cpp | idarkblue/mediasoup | f77bbd3680c122a2a4f15836b746e53e4b8571d0 | [
"0BSD"
] | null | null | null | #include <fstream>
#include <iostream>
#include "json.hpp"
#include "Master/Log.hpp"
#include "Master/Configuration.hpp"
#include "Master/Defines.hpp"
#include "MediaSoupErrors.hpp"
#define PMS_CLASS "pingos::Configuration"
#define MS_CLASS "pingos::Configuration"
using json = nlohmann::json;
namespace pingos{
LogC... | 40.802139 | 114 | 0.649672 | idarkblue |
03a15518cc9f355ecc8a5c4fd96ea32f8bd19f08 | 538 | hpp | C++ | src/basic_marcher.hpp | sampotter/eikonal | e86e19ebc498a802adfe034f4c84b9919bace857 | [
"Apache-2.0"
] | 1 | 2019-02-05T05:46:05.000Z | 2019-02-05T05:46:05.000Z | src/basic_marcher.hpp | sampotter/eikonal | e86e19ebc498a802adfe034f4c84b9919bace857 | [
"Apache-2.0"
] | null | null | null | src/basic_marcher.hpp | sampotter/eikonal | e86e19ebc498a802adfe034f4c84b9919bace857 | [
"Apache-2.0"
] | 1 | 2020-04-09T20:12:33.000Z | 2020-04-09T20:12:33.000Z | #ifndef __BASIC_MARCHER_HPP__
#define __BASIC_MARCHER_HPP__
#include "marcher.hpp"
#include "node.hpp"
#include "updates.line.hpp"
struct basic_marcher: public marcher<basic_marcher, node, 4>,
public updates::line<RHR>
{
static constexpr cost_func F_ = RHR;
static constexpr int num_neighbors... | 22.416667 | 61 | 0.726766 | sampotter |
03a1adf209106bea35c80de33a434003ab296d7f | 2,499 | hpp | C++ | breeze/text/split.hpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-04-03T22:35:52.000Z | 2021-04-03T22:35:52.000Z | breeze/text/split.hpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | null | null | null | breeze/text/split.hpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-10-01T04:26:48.000Z | 2021-10-01T04:26:48.000Z | // ===========================================================================
// Copyright 2011-2020 Gennaro Prota
//
// Licensed under the 3-Clause BSD License.
// (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or
// <https://opensource.org/licenses/BSD-3... | 34.232877 | 78 | 0.516206 | gennaroprota |
03a4f2ba3eb5d13de500061e0acd29c8cf2ab8e9 | 413 | cpp | C++ | Firmware/FFBoard/Src/TimerHandler.cpp | bremme/OpenFFBoard | f3626c0f18e878097a7fa6717debabb23b9d13b0 | [
"MIT"
] | 4 | 2022-02-04T07:39:25.000Z | 2022-03-16T13:16:49.000Z | Firmware/FFBoard/Src/TimerHandler.cpp | bremme/OpenFFBoard | f3626c0f18e878097a7fa6717debabb23b9d13b0 | [
"MIT"
] | 8 | 2021-09-28T13:00:33.000Z | 2021-09-28T23:09:44.000Z | Firmware/FFBoard/Src/TimerHandler.cpp | bremme/OpenFFBoard | f3626c0f18e878097a7fa6717debabb23b9d13b0 | [
"MIT"
] | 1 | 2022-02-25T14:14:25.000Z | 2022-02-25T14:14:25.000Z | /*
* TimerHandler.cpp
*
* Created on: Feb 14, 2020
* Author: Yannick
*/
#include "TimerHandler.h"
#include "global_callbacks.h"
std::vector<TimerHandler*> TimerHandler::timerHandlers;
TimerHandler::TimerHandler() {
addCallbackHandler(timerHandlers,this);
}
TimerHandler::~TimerHandler() {
removeCallback... | 17.208333 | 57 | 0.74092 | bremme |
03a697e056bbfcdc17ef065b6f4dbb1a6eb36015 | 17,366 | cc | C++ | test/test_common/simulated_time_system.cc | ASOPVII/envoy | 983e9e974409470fd8bba2fb45705cef74a47ba9 | [
"Apache-2.0"
] | 1 | 2020-11-04T10:44:50.000Z | 2020-11-04T10:44:50.000Z | test/test_common/simulated_time_system.cc | ASOPVII/envoy | 983e9e974409470fd8bba2fb45705cef74a47ba9 | [
"Apache-2.0"
] | 20 | 2022-02-10T01:07:38.000Z | 2022-03-31T23:32:37.000Z | test/test_common/simulated_time_system.cc | ASOPVII/envoy | 983e9e974409470fd8bba2fb45705cef74a47ba9 | [
"Apache-2.0"
] | 1 | 2019-11-29T14:11:16.000Z | 2019-11-29T14:11:16.000Z | #include "test/test_common/simulated_time_system.h"
#include <chrono>
#include "envoy/event/dispatcher.h"
#include "common/common/assert.h"
#include "common/common/lock_guard.h"
#include "common/event/real_time_system.h"
#include "common/event/timer_impl.h"
#include "common/runtime/runtime_features.h"
namespace Env... | 38.850112 | 100 | 0.729759 | ASOPVII |
03a705c66d075b244133054b96d13aa08aa06525 | 6,030 | cpp | C++ | src/class_read/constant_pool/cp_info.cpp | JustProject/JustVM | fe9905f024199a9041a828853901ae3ec32c0d6d | [
"Apache-2.0"
] | 4 | 2018-02-01T05:44:24.000Z | 2021-11-18T02:32:04.000Z | src/class_read/constant_pool/cp_info.cpp | lfkdsk/JustJVM | fe9905f024199a9041a828853901ae3ec32c0d6d | [
"Apache-2.0"
] | null | null | null | src/class_read/constant_pool/cp_info.cpp | lfkdsk/JustJVM | fe9905f024199a9041a828853901ae3ec32c0d6d | [
"Apache-2.0"
] | 1 | 2021-07-14T04:49:42.000Z | 2021-07-14T04:49:42.000Z |
#include "cp_info.h"
//using std::cout;
//using std::endl;
//
///**
// * reader cp item from bytes
// * @param reader bytes_reader
// * @param u16 item_tag
// * @return cp pointer
// */
//cp_item *read_cp_item_from_bytes(bytes_reader &reader, BC_U1 u16) {
//
// if (!reader.get_ready_to_read_constant_pool()) {
// ... | 31.40625 | 104 | 0.680929 | JustProject |
03a75decec9a3874539f5d4c03ccbfcac9d8d467 | 21,501 | hpp | C++ | include/xframe/xaxis_view.hpp | SylvainCorlay/xframe | ceb346b7be28cc0aea2ea91aa99533eed6e99bb3 | [
"BSD-3-Clause"
] | 176 | 2017-09-25T20:21:49.000Z | 2019-10-03T20:09:38.000Z | include/xframe/xaxis_view.hpp | vishalbelsare/xframe | 24d65f462cb9345c0814264dc449c5552c2592bb | [
"BSD-3-Clause"
] | 53 | 2017-09-29T06:52:58.000Z | 2019-06-27T08:20:35.000Z | include/xframe/xaxis_view.hpp | vishalbelsare/xframe | 24d65f462cb9345c0814264dc449c5552c2592bb | [
"BSD-3-Clause"
] | 20 | 2017-09-25T20:21:50.000Z | 2019-06-29T01:43:02.000Z | /***************************************************************************
* Copyright (c) Johan Mabille, Sylvain Corlay, Wolf Vollprecht and *
* Martin Renou *
* Copyright (c) QuantStack *
* ... | 34.567524 | 120 | 0.594298 | SylvainCorlay |
03aab3ba79c916e67dcf94ae3ac83a0c25344a92 | 2,022 | cpp | C++ | thirdparty/sfs2x/Requests/Buddylist/InitBuddyListRequest.cpp | godot-addons/godot-sfs2x | a8d52aa9d548f6d45bbb64bfdaacab0df10e67c1 | [
"MIT"
] | 2 | 2020-05-14T07:48:32.000Z | 2021-02-03T14:58:11.000Z | thirdparty/sfs2x/Requests/Buddylist/InitBuddyListRequest.cpp | godot-addons/godot-sfs2x | a8d52aa9d548f6d45bbb64bfdaacab0df10e67c1 | [
"MIT"
] | 1 | 2020-05-28T16:39:20.000Z | 2020-05-28T16:39:20.000Z | thirdparty/sfs2x/Requests/Buddylist/InitBuddyListRequest.cpp | godot-addons/godot-sfs2x | a8d52aa9d548f6d45bbb64bfdaacab0df10e67c1 | [
"MIT"
] | 2 | 2018-07-07T20:15:00.000Z | 2018-10-26T05:18:30.000Z | // ===================================================================
//
// Description
// Contains the implementation of InitBuddyListRequest
//
// Revision history
// Date Description
// 30-Nov-2012 First version
//
// ===================================================================
#include "InitBuddyLis... | 31.107692 | 91 | 0.484174 | godot-addons |
03b64a0717839e87074dfdc66b75c2e9d82ce8d6 | 1,561 | cpp | C++ | dev/Generated/SymbolIconSource.properties.cpp | not-kmahone/microsoft-ui-xaml | 862a049693ccd86f3541c478c93f5b82ab175236 | [
"MIT"
] | 3 | 2018-12-06T08:02:41.000Z | 2020-03-24T13:23:27.000Z | dev/Generated/SymbolIconSource.properties.cpp | chingucoding/microsoft-ui-xaml | 9c623fec308f1c081afbff2563e2acdff92729c3 | [
"MIT"
] | 2 | 2018-12-07T16:49:26.000Z | 2018-12-07T16:50:00.000Z | dev/Generated/SymbolIconSource.properties.cpp | chingucoding/microsoft-ui-xaml | 9c623fec308f1c081afbff2563e2acdff92729c3 | [
"MIT"
] | 1 | 2020-08-28T10:29:11.000Z | 2020-08-28T10:29:11.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
// DO NOT EDIT! This file was generated by CustomTasks.DependencyPropertyCodeGen
#include "pch.h"
#include "common.h"
#include "SymbolIconSource.h"
CppWinRTA... | 31.857143 | 126 | 0.700833 | not-kmahone |
03ba169fc9a59a051b8a3d9fe1ad7c75439a687a | 511 | cpp | C++ | C++/11_Strings.cpp | BurningTiles/HackerRank | 1af475bc64b1bf27ab5058230d6e472314679b61 | [
"MIT"
] | 2 | 2020-11-04T10:12:24.000Z | 2020-12-05T14:16:28.000Z | C++/11_Strings.cpp | BurningTiles/HackerRank | 1af475bc64b1bf27ab5058230d6e472314679b61 | [
"MIT"
] | null | null | null | C++/11_Strings.cpp | BurningTiles/HackerRank | 1af475bc64b1bf27ab5058230d6e472314679b61 | [
"MIT"
] | null | null | null | /**
* Author : BurningTiles
* Created : 2020-09-07 06:49:38
* Link : GitHub.com/BurningTiles
* Program : Strings
**/
#include <bits/stdc++.h>
using namespace std;
int main(){
string str1, str2;
cin >> str1 >> str2;
cout << str1.size() << " " << str2.size() << "\n";
cout << str1 << str2 << ... | 18.925926 | 72 | 0.553816 | BurningTiles |
03bdecb183e2859d666a23bc66c165836d69cfee | 137 | cpp | C++ | structure_donnee.cpp | khayriddine/jeux_echecv2 | fbfaa6cb4f5c484554dc42352d10d186986f3b34 | [
"FTL"
] | null | null | null | structure_donnee.cpp | khayriddine/jeux_echecv2 | fbfaa6cb4f5c484554dc42352d10d186986f3b34 | [
"FTL"
] | null | null | null | structure_donnee.cpp | khayriddine/jeux_echecv2 | fbfaa6cb4f5c484554dc42352d10d186986f3b34 | [
"FTL"
] | null | null | null | #include "structure_donnee.h"
structure_donnee::structure_donnee()
{
//ctor
}
structure_donnee::~structure_donnee()
{
//dtor
}
| 11.416667 | 37 | 0.70073 | khayriddine |
03be1c8421759480c9e610afaf9762db535e3b97 | 959 | cpp | C++ | BOJ/15658.cpp | ReinforceIII/Algorithm | 355f6e19f8deb6a76f82f5283d7c1987acd699a6 | [
"MIT"
] | null | null | null | BOJ/15658.cpp | ReinforceIII/Algorithm | 355f6e19f8deb6a76f82f5283d7c1987acd699a6 | [
"MIT"
] | null | null | null | BOJ/15658.cpp | ReinforceIII/Algorithm | 355f6e19f8deb6a76f82f5283d7c1987acd699a6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <sstream>
#include <algorithm>
#include <vector>
#include <limits.h>
using namespace std;
int maxi = INT_MIN;
int mini = INT_MAX;
void recur(vector<int> &n, int index, int result, int plus, int minus, int mul, int div) {
int s = n.size();
if(index == s) {
maxi = ... | 23.390244 | 90 | 0.637122 | ReinforceIII |
03bf49bdb123a7bc747fd159e381c49bac36c6f2 | 922 | cpp | C++ | codeforces/A - Gabriel and Caterpillar/Wrong answer on test 15 (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/A - Gabriel and Caterpillar/Wrong answer on test 15 (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/A - Gabriel and Caterpillar/Wrong answer on test 15 (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Jan/08/2019 11:59
* solution_verdict: Wrong answer on test 15 language: GNU C++14
* run... | 38.416667 | 111 | 0.385033 | kzvd4729 |
03c1b6f4bd53309310af6fb854eecea44af4199e | 72,796 | cc | C++ | node_modules/grpc/deps/grpc/src/core/ext/filters/client_channel/client_channel.cc | manojvenkateswararaja/mortgagebackend-new | 817072bc00c37187fe2765ad443ce05a5322dfcd | [
"Apache-2.0"
] | 72 | 2018-02-18T19:50:50.000Z | 2022-02-10T16:12:18.000Z | node_modules/grpc/deps/grpc/src/core/ext/filters/client_channel/client_channel.cc | BahirathyR/backendmphoc | e827b3000381f4aa4bbf93836bc4aaf089fb6436 | [
"Apache-2.0"
] | 6 | 2018-02-28T05:34:33.000Z | 2018-11-27T22:48:42.000Z | node_modules/grpc/deps/grpc/src/core/ext/filters/client_channel/client_channel.cc | BahirathyR/backendmphoc | e827b3000381f4aa4bbf93836bc4aaf089fb6436 | [
"Apache-2.0"
] | 20 | 2018-03-03T19:21:45.000Z | 2021-09-28T23:38:59.000Z | /*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 42.998228 | 80 | 0.681906 | manojvenkateswararaja |
03c1bd4c9a58e959bec403a525bce98b094373fa | 2,659 | cpp | C++ | Uzura/GScripter/gscripter_loader.cpp | jskny/Uzura | 356f8c25ceef5bd098b8e338e4acabb3f8653dca | [
"MIT"
] | null | null | null | Uzura/GScripter/gscripter_loader.cpp | jskny/Uzura | 356f8c25ceef5bd098b8e338e4acabb3f8653dca | [
"MIT"
] | null | null | null | Uzura/GScripter/gscripter_loader.cpp | jskny/Uzura | 356f8c25ceef5bd098b8e338e4acabb3f8653dca | [
"MIT"
] | null | null | null | /*
* ガーネット・スクリプター
* loader
* 2011 / 06 / 06
* jskny
*/
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include "gscripter_loader.h"
#include "gscripter_util.h"
using namespace std;
namespace gscripter
{
//---------------------------------------------------------
// 読み込み本体
//-------... | 16.829114 | 83 | 0.558857 | jskny |
03c287edeb327c731e8e9b5697ef29fa10b92a06 | 14,637 | cpp | C++ | src/ac_gc.cpp | madedit/aclang | 698ea6a56812f3702d63b6b4235a5eee8eaa0773 | [
"MIT"
] | 10 | 2015-01-27T09:16:29.000Z | 2021-05-07T16:39:05.000Z | src/ac_gc.cpp | madedit/aclang | 698ea6a56812f3702d63b6b4235a5eee8eaa0773 | [
"MIT"
] | null | null | null | src/ac_gc.cpp | madedit/aclang | 698ea6a56812f3702d63b6b4235a5eee8eaa0773 | [
"MIT"
] | 4 | 2015-01-27T09:45:05.000Z | 2021-05-07T16:39:06.000Z | /* see copyright notice in aclang.h */
#include "ac_gc.h"
#include "ac_vm.h"
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <stdio.h>
#include <string.h>
acGCObject* acGarbageCollector::createObject(acVarType type)
{
acGCObject* obj;
switch(type)
{
case acVT_NULL:
case acVT_BOOL:... | 24.558725 | 113 | 0.516089 | madedit |
03c30cdcb763a45d33bf1c5d830ee5603436e69b | 2,558 | hpp | C++ | include/unordered_map.hpp | Shtan7/KTL | 9c0adf8fac2f0bb481060b7bbb15b1356089af3c | [
"MIT"
] | 38 | 2020-12-16T22:12:50.000Z | 2022-03-24T04:07:14.000Z | include/unordered_map.hpp | Shtan7/KTL | 9c0adf8fac2f0bb481060b7bbb15b1356089af3c | [
"MIT"
] | 165 | 2020-11-11T21:22:23.000Z | 2022-03-26T14:30:40.000Z | include/unordered_map.hpp | Shtan7/KTL | 9c0adf8fac2f0bb481060b7bbb15b1356089af3c | [
"MIT"
] | 5 | 2021-07-16T19:05:28.000Z | 2021-12-22T11:46:42.000Z | #pragma once
#include <basic_types.hpp>
#include <hash.hpp>
#include <hash_table_impl.hpp>
namespace ktl {
template <class Key,
class Ty,
class Hash = hash<Key>,
class KeyEqual = equal_to<Key>,
class BytesAllocator = basic_paged_allocator<byte>,
size_t MaxLoadFactor1... | 32.379747 | 76 | 0.647381 | Shtan7 |
03c40767b9336f5986c07439fcb4097b5cd09d79 | 2,477 | cpp | C++ | src/chip/adder_test.cpp | txf0990/LogicSimulator | 9e384b9859ab01b8b0634a75d6698dab2f75d8be | [
"MIT"
] | null | null | null | src/chip/adder_test.cpp | txf0990/LogicSimulator | 9e384b9859ab01b8b0634a75d6698dab2f75d8be | [
"MIT"
] | null | null | null | src/chip/adder_test.cpp | txf0990/LogicSimulator | 9e384b9859ab01b8b0634a75d6698dab2f75d8be | [
"MIT"
] | null | null | null | #include "chip/adder.h"
#include <memory>
#include <vector>
#include "gtest/gtest.h"
#include "chip/basic_gates.h"
#include "chip/chip_test_util.h"
namespace {
using pin_board::PinBoard;
using pin_board::PinIndex;
using chip::Adder_2;
using std::pair;
using std::vector;
void GenerateAndTest(int digit) {
PinBoa... | 28.802326 | 87 | 0.587 | txf0990 |
03c467f9b4ea3847bbe7ca9d51d36b9d5fb0f7ef | 1,480 | hpp | C++ | src/Vulkan/VkGetProcAddress.hpp | sunnycase/swiftshader | 592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc | [
"Apache-2.0"
] | 1,570 | 2016-06-30T10:40:04.000Z | 2022-03-31T01:47:33.000Z | src/Vulkan/VkGetProcAddress.hpp | sunnycase/swiftshader | 592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc | [
"Apache-2.0"
] | 9 | 2017-01-16T07:09:08.000Z | 2020-08-25T18:28:59.000Z | src/Vulkan/VkGetProcAddress.hpp | sunnycase/swiftshader | 592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc | [
"Apache-2.0"
] | 253 | 2016-06-30T18:57:10.000Z | 2022-03-25T03:57:40.000Z | // Copyright 2018 The SwiftShader 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 b... | 34.418605 | 88 | 0.782432 | sunnycase |
03c9063d6b4aebb2810c01cb96dc0c19ce592235 | 3,398 | cpp | C++ | opencl/test/unit_test/aub_tests/command_queue/single_tile_products_excludes.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/aub_tests/command_queue/single_tile_products_excludes.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/aub_tests/command_queue/single_tile_products_excludes.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/common/test_macros/test.h"
HWTEST_EXCLUDE_PRODUCT(FourTilesAllContextsTest, GENERATEONLY_givenFourTilesAndAllContextsWhenSubmittingThenDataIsValid, IGFX_XE_HPG_CORE);
HWTEST_EXCLUDE_PRODUCT(FourTilesDualContextT... | 102.969697 | 171 | 0.933196 | mattcarter2017 |
03ce180323e40510da35734e49b00fe3b443d79d | 1,019 | cpp | C++ | MT/quick-matrix-pow.cpp | eqvpkbz/Templates-In-OI | 78f294e760494b44baad746d57f9a0a1e31f6495 | [
"MIT"
] | 4 | 2020-11-20T14:25:49.000Z | 2021-02-20T01:45:24.000Z | MT/quick-matrix-pow.cpp | eqvpkbz/Templates-In-OI | 78f294e760494b44baad746d57f9a0a1e31f6495 | [
"MIT"
] | null | null | null | MT/quick-matrix-pow.cpp | eqvpkbz/Templates-In-OI | 78f294e760494b44baad746d57f9a0a1e31f6495 | [
"MIT"
] | 2 | 2020-11-20T15:01:15.000Z | 2021-02-19T14:22:59.000Z | #include <cstdio>
#include <cstring>
#define re register
#define rep(i, a, b) for(re int i = (a); i <= (b); ++ i)
#define Rep(i, a, b) for(re int i = (a); i < (b); ++ i)
typedef long long ll;
const int mod = 1e9 + 7;
static inline void up(ll &x, ll y) {
x = (x + y) % mod;
}
const int n = 100 + 5;
struct mat ... | 24.261905 | 59 | 0.466143 | eqvpkbz |
03d5bd1799ab95d3421793c7935fd96f174eabf0 | 5,731 | cc | C++ | shared.cc | iszczesniak/ddpp | bc27ad2b7f699d8ef2e11dcb3b56d538d92e4b4e | [
"BSL-1.0"
] | null | null | null | shared.cc | iszczesniak/ddpp | bc27ad2b7f699d8ef2e11dcb3b56d538d92e4b4e | [
"BSL-1.0"
] | null | null | null | shared.cc | iszczesniak/ddpp | bc27ad2b7f699d8ef2e11dcb3b56d538d92e4b4e | [
"BSL-1.0"
] | null | null | null | #include "shared.hpp"
#include "adaptive_units.hpp"
#include "graph.hpp"
#include "utils.hpp"
using namespace std;
std::optional<std::pair<cupath, cupath> >
trace(const graph &g, const tn_t &tn, const unsigned &ncu)
{
std::optional<std::pair<cupath, cupath> > result;
optional<cupath> p1, p2;
optional<COST> ... | 36.503185 | 71 | 0.502181 | iszczesniak |
03d8be1ad62834a65eb4244143ef90866f59c05b | 7,228 | cc | C++ | node_modules/couchbase/deps/lcb/tests/iotests/t_n1ql.cc | tkopacz/FY19AzureAppCouchbaseDriver | cf4e244593bd229981ce2b3249dca9246e2cee1b | [
"MIT"
] | 1 | 2019-01-08T10:04:14.000Z | 2019-01-08T10:04:14.000Z | node_modules/couchbase/deps/lcb/tests/iotests/t_n1ql.cc | tkopacz/FY19AzureAppCouchbaseDriver | cf4e244593bd229981ce2b3249dca9246e2cee1b | [
"MIT"
] | 8 | 2018-02-22T23:42:07.000Z | 2020-05-23T12:00:41.000Z | node_modules/couchbase/deps/lcb/tests/iotests/t_n1ql.cc | tkopacz/FY19AzureAppCouchbaseDriver | cf4e244593bd229981ce2b3249dca9246e2cee1b | [
"MIT"
] | 1 | 2019-04-01T13:35:24.000Z | 2019-04-01T13:35:24.000Z | #include "config.h"
#include "iotests.h"
#include <libcouchbase/couchbase.h>
#include <libcouchbase/n1ql.h>
#include "internal.h"
using std::vector;
using std::string;
struct N1QLResult {
vector<string> rows;
string meta;
int htcode;
lcb_error_t rc;
bool called;
N1QLResult() {
reset(... | 26.671587 | 82 | 0.64098 | tkopacz |
03d8fe01259c12504f8573d21824eb0407cab654 | 716 | cpp | C++ | AugustLeetCodingChallenge/August 1st 2020/Detect Capital.cpp | SAITARUN55/100DaysofCodeinC- | d52e683f52abc9bc633af7e15bb970882efc3788 | [
"MIT"
] | 4 | 2020-05-18T05:12:36.000Z | 2020-08-28T07:16:41.000Z | AugustLeetCodingChallenge/August 1st 2020/Detect Capital.cpp | SAITARUN55/100DaysofCodeinC- | d52e683f52abc9bc633af7e15bb970882efc3788 | [
"MIT"
] | null | null | null | AugustLeetCodingChallenge/August 1st 2020/Detect Capital.cpp | SAITARUN55/100DaysofCodeinC- | d52e683f52abc9bc633af7e15bb970882efc3788 | [
"MIT"
] | 5 | 2020-05-01T04:56:26.000Z | 2022-02-02T15:37:53.000Z | class Solution {
public:
bool detectCapitalUse(string word) {
bool AllCap = true;
bool AllSmall = true;
bool ExpFirst = true;
int n = word.size();
if(islower(word[0])){
ExpFirst = false;
}
for(int i = 0; i < n; i++){
... | 20.457143 | 40 | 0.378492 | SAITARUN55 |
03db7c2d3324b4ed8b55b2704e4b7b9c2af04541 | 531 | hpp | C++ | kernel/sync/include/semaphore.hpp | USN484259/COFUOS | a751c3ab1a24f634ae33b5ddced55c184c8f9381 | [
"MIT"
] | 1 | 2022-03-03T09:57:56.000Z | 2022-03-03T09:57:56.000Z | kernel/sync/include/semaphore.hpp | USN484259/COFUOS | a751c3ab1a24f634ae33b5ddced55c184c8f9381 | [
"MIT"
] | null | null | null | kernel/sync/include/semaphore.hpp | USN484259/COFUOS | a751c3ab1a24f634ae33b5ddced55c184c8f9381 | [
"MIT"
] | 1 | 2022-01-22T14:19:24.000Z | 2022-01-22T14:19:24.000Z | #pragma once
#include "types.h"
#include "process/include/waitable.hpp"
namespace UOS{
class semaphore : public waitable{
const dword total;
dword count;
bool named = false;
public:
semaphore(dword initial);
~semaphore(void);
OBJTYPE type(void) const override{
return OBJ_SEMAPHORE;
}
dword max_cou... | 21.24 | 58 | 0.709981 | USN484259 |
03e3a8f2e2e1e2298e39d90cf4efe03487cf04b3 | 419 | hpp | C++ | include/game/skirmish/isometricconversion.hpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | 3 | 2015-03-28T02:51:58.000Z | 2018-11-08T16:49:53.000Z | include/game/skirmish/isometricconversion.hpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | 39 | 2015-05-18T08:29:16.000Z | 2020-07-18T21:17:44.000Z | include/game/skirmish/isometricconversion.hpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | null | null | null | #ifndef QRW_ISOMETRICCONVERSION_HPP
#define QRW_ISOMETRICCONVERSION_HPP
#include <SFML/System/Vector2.hpp>
namespace qrw
{
// Convert provided world position into isometric view coordinates.
sf::Vector2f worldToIso(sf::Vector2f worldPosition);
// Convert the provided isometric view coordinates into world positions.... | 23.277778 | 72 | 0.818616 | namelessvoid |
03e5c6834f40b1f0f1797e7a1828a06405d6c9da | 14,537 | cpp | C++ | adapters-stk/src/Panzer_STK_ParameterListCallbackBlocked.cpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T03:49:50.000Z | 2022-03-22T03:49:50.000Z | adapters-stk/src/Panzer_STK_ParameterListCallbackBlocked.cpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | adapters-stk/src/Panzer_STK_ParameterListCallbackBlocked.cpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | // @HEADER
// ***********************************************************************
//
// Panzer: A partial differential equation assembly
// engine for strongly coupled complex multiphysics systems
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85... | 39.827397 | 143 | 0.687969 | hillyuan |
03ea636ea06f8f60ac4d204749081c9cd323f492 | 431 | cpp | C++ | SpatialGDK/Source/SpatialGDKFunctionalTests/SpatialGDK/SpatialTestPropertyReplication/ReplicatedTestActor.cpp | cyberbibby/UnrealGDK | 9502a1ba11d21b3cb64978ba7ea178c63371cdd0 | [
"MIT"
] | 1 | 2020-07-15T12:43:02.000Z | 2020-07-15T12:43:02.000Z | SpatialGDK/Source/SpatialGDKFunctionalTests/SpatialGDK/SpatialTestPropertyReplication/ReplicatedTestActor.cpp | cyberbibby/UnrealGDK | 9502a1ba11d21b3cb64978ba7ea178c63371cdd0 | [
"MIT"
] | null | null | null | SpatialGDK/Source/SpatialGDKFunctionalTests/SpatialGDK/SpatialTestPropertyReplication/ReplicatedTestActor.cpp | cyberbibby/UnrealGDK | 9502a1ba11d21b3cb64978ba7ea178c63371cdd0 | [
"MIT"
] | null | null | null | // Copyright (c) Improbable Worlds Ltd, All Rights Reserved
#include "ReplicatedTestActor.h"
#include "Net/UnrealNetwork.h"
AReplicatedTestActor::AReplicatedTestActor()
{
TestReplicatedProperty = 0;
}
void AReplicatedTestActor::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const
{
Super::... | 25.352941 | 104 | 0.825986 | cyberbibby |
03edbb03d0e32f3bdadf4507b9eb2622b6f99f38 | 1,011 | cpp | C++ | tests/IntersectionOfTwoLinkedListsTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | tests/IntersectionOfTwoLinkedListsTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | tests/IntersectionOfTwoLinkedListsTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #include "catch.hpp"
#include "IntersectionOfTwoLinkedLists.hpp"
TEST_CASE("Intersection of Two Linked Lists") {
IntersectionOfTwoLinkedLists s;
ListNode *h1 = nullptr;
ListNode *h2 = nullptr;
SECTION("Sample test") {
ListNode *n = nullptr;
ListNode *expected = nullptr;
n = new... | 24.071429 | 59 | 0.487636 | yanzhe-chen |
03ef62d8de84a71ba1b37e7cd8eee4c655f59b8b | 31,364 | cpp | C++ | UnitTests/RGBtoYUVUnitTests.cpp | hawaiianspy/blipvert | bf41312d1e798f8dec1676dfa02fa6a7ae78fa0f | [
"MIT"
] | null | null | null | UnitTests/RGBtoYUVUnitTests.cpp | hawaiianspy/blipvert | bf41312d1e798f8dec1676dfa02fa6a7ae78fa0f | [
"MIT"
] | 45 | 2021-06-11T06:03:59.000Z | 2021-07-25T08:30:34.000Z | UnitTests/RGBtoYUVUnitTests.cpp | hawaiianspy/blipvert | bf41312d1e798f8dec1676dfa02fa6a7ae78fa0f | [
"MIT"
] | null | null | null | //
// blipvert C++ library
//
// MIT License
//
// Copyright(c) 2021 Don Jordan
//
// 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 th... | 28.590702 | 147 | 0.747067 | hawaiianspy |
03f291770d351117ff673f938b8d774cd1faaf00 | 688 | cpp | C++ | test/unit/main.cpp | gidabite/libcds | f10fef7ff8c9d1abb4af1cfbf9ae5c60f9911014 | [
"BSD-2-Clause"
] | 2,118 | 2015-01-01T00:30:42.000Z | 2022-03-30T12:47:38.000Z | test/unit/main.cpp | liangwens/libcds | b4d11539824bb91ae4604f47aa1416fdd7cc1ff1 | [
"BSL-1.0"
] | 113 | 2015-01-03T15:29:40.000Z | 2022-03-05T21:30:11.000Z | test/unit/main.cpp | liangwens/libcds | b4d11539824bb91ae4604f47aa1416fdd7cc1ff1 | [
"BSL-1.0"
] | 385 | 2015-01-01T21:51:48.000Z | 2022-03-25T12:51:30.000Z | // Copyright (c) 2006-2018 Maxim Khizhinsky
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <cds_test/ext_gtest.h>
#include <cds/init.h>
#include <cds_test/fixture.h>
namespace cds_test {
/*sta... | 25.481481 | 80 | 0.642442 | gidabite |
03f419ab0e6bc762f720aa375e9716e8a48c9efa | 2,270 | cpp | C++ | Graphics/GraphicsTools/src/XXH128Hasher.cpp | AnomalousMedical/DiligentCore | 5751cdba04373ced8c49ef40ce6a9dffb41a141e | [
"Apache-2.0"
] | null | null | null | Graphics/GraphicsTools/src/XXH128Hasher.cpp | AnomalousMedical/DiligentCore | 5751cdba04373ced8c49ef40ce6a9dffb41a141e | [
"Apache-2.0"
] | null | null | null | Graphics/GraphicsTools/src/XXH128Hasher.cpp | AnomalousMedical/DiligentCore | 5751cdba04373ced8c49ef40ce6a9dffb41a141e | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019-2022 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29.868421 | 89 | 0.729956 | AnomalousMedical |
03fa1f445e2f5b107b0b3451080c252ec089918f | 2,582 | cpp | C++ | tests/test_hints.cpp | alamb/aal_commander | 98904febdd1da0e17cbdc1f15669197e74d997de | [
"BSD-2-Clause",
"MIT"
] | null | null | null | tests/test_hints.cpp | alamb/aal_commander | 98904febdd1da0e17cbdc1f15669197e74d997de | [
"BSD-2-Clause",
"MIT"
] | null | null | null | tests/test_hints.cpp | alamb/aal_commander | 98904febdd1da0e17cbdc1f15669197e74d997de | [
"BSD-2-Clause",
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "commander/parsed_line.h"
#include "commander/hints.h"
#include "test_utils.h"
TEST(test_hints, none_completions)
{
Hints hints(Parsed_line("pw"), strvec({}));
EXPECT_EQ(Hints::COLOR_RED, hints.color());
EXPECT_TRUE(hints.bold());
EXPECT_EQ(" (INVALID [pw] ())", hints.... | 30.738095 | 85 | 0.669636 | alamb |
03fd43e9f8eb8ffa8d63a3be61b48abf0c096d5c | 8,830 | hpp | C++ | src/ParallelAlgorithms/LinearSolver/Multigrid/ElementsAllocator.hpp | nilsvu/spectre | 1455b9a8d7e92db8ad600c66f54795c29c3052ee | [
"MIT"
] | null | null | null | src/ParallelAlgorithms/LinearSolver/Multigrid/ElementsAllocator.hpp | nilsvu/spectre | 1455b9a8d7e92db8ad600c66f54795c29c3052ee | [
"MIT"
] | null | null | null | src/ParallelAlgorithms/LinearSolver/Multigrid/ElementsAllocator.hpp | nilsvu/spectre | 1455b9a8d7e92db8ad600c66f54795c29c3052ee | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <algorithm>
#include <charm++.h>
#include <cstddef>
#include <optional>
#include <unordered_set>
#include <vector>
#include "Domain/ElementDistribution.hpp"
#include "Domain/Structure/ElementId.hpp"
#include "Domain/Tags.hpp"... | 46.968085 | 80 | 0.693318 | nilsvu |
ff03c84f07f3a132db2c1a779a239e2a83905621 | 792 | cpp | C++ | Graphics/src/SkinnedNormalMapShader.cpp | MarcoLotto/ScenaFramework | 533e5149a1580080e41bfb37d5648023b6e39f6f | [
"MIT"
] | 2 | 2019-01-21T20:47:29.000Z | 2020-01-09T01:08:24.000Z | Graphics/src/SkinnedNormalMapShader.cpp | MarcoLotto/ScenaFramework | 533e5149a1580080e41bfb37d5648023b6e39f6f | [
"MIT"
] | null | null | null | Graphics/src/SkinnedNormalMapShader.cpp | MarcoLotto/ScenaFramework | 533e5149a1580080e41bfb37d5648023b6e39f6f | [
"MIT"
] | null | null | null | /**********************************
* SCAENA FRAMEWORK
* Author: Marco Andrés Lotto
* License: MIT - 2016
**********************************/
#include "SkinnedNormalMapShader.h"
#include "GraphicDevice.h"
#include "SkinnedNormalMapForwardShader.h"
#include "SkinnedNormalMapDeferredShader.h"
SkinnedNormalMapShader* Sk... | 34.434783 | 130 | 0.743687 | MarcoLotto |
ff083d1f51b6be381d42ecc9e336dcb065fbc6a9 | 1,394 | cpp | C++ | Minimum Cost to Fill Given Weight in A Bag/code_1.cpp | Jatin-Goyal5/Data-Structures-and-Algorithms | f6bd0f77e5640c2e0568f3fffc4694758e77af96 | [
"MIT"
] | 27 | 2019-01-31T10:22:29.000Z | 2021-08-29T08:25:12.000Z | Minimum Cost to Fill Given Weight in A Bag/code_1.cpp | Jatin-Goyal5/Data-Structures-and-Algorithms | f6bd0f77e5640c2e0568f3fffc4694758e77af96 | [
"MIT"
] | 6 | 2020-09-30T19:01:49.000Z | 2020-12-17T15:10:54.000Z | Minimum Cost to Fill Given Weight in A Bag/code_1.cpp | Jatin-Goyal5/Data-Structures-and-Algorithms | f6bd0f77e5640c2e0568f3fffc4694758e77af96 | [
"MIT"
] | 27 | 2019-09-21T14:19:32.000Z | 2021-09-15T03:06:41.000Z | //
// code_1.cpp
// Algorithm
//
// Created by Mohd Shoaib Rayeen on 23/11/18.
// Copyright © 2018 Shoaib Rayeen. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
int getMinimumCost(vector<int> cost, int W) {
int n = int(cost.size());
vector<int> val, wt;
int size = ... | 22.852459 | 90 | 0.452654 | Jatin-Goyal5 |
ff095e9e067fc0fdeac95e94139c777689efa5a7 | 1,704 | cpp | C++ | src/Core/Window.cpp | dgi09/2DGameEngine | 18eff334f2ebf469d780688b2bfee6af760a699d | [
"BSD-2-Clause"
] | 1 | 2017-03-13T22:07:35.000Z | 2017-03-13T22:07:35.000Z | src/Core/Window.cpp | dgi09/2DGameEngine | 18eff334f2ebf469d780688b2bfee6af760a699d | [
"BSD-2-Clause"
] | null | null | null | src/Core/Window.cpp | dgi09/2DGameEngine | 18eff334f2ebf469d780688b2bfee6af760a699d | [
"BSD-2-Clause"
] | null | null | null | #include "Window.h"
LRESULT CALLBACK WinProc(HWND hWindow, UINT msg, WPARAM wParam, LPARAM lParam);
Window::Window(LPCWSTR title,UINT width,UINT height)
{
WNDCLASSEX win;
ZeroMemory(&win,sizeof(WNDCLASSEX));
win.cbClsExtra = 0;
win.cbWndExtra = 0;
win.cbSize = sizeof(WNDCLASSEX);
win.hInstance = GetModuleHan... | 16.384615 | 106 | 0.715376 | dgi09 |
ff0b0f522ab78e958cc665035bd7dc1f52bed7f3 | 2,006 | cc | C++ | src/reader/wgsl/parser_impl_test.cc | jhanssen/tint | 30c1f25a7a4e180419444c12046348edb0f8fdd0 | [
"Apache-2.0"
] | null | null | null | src/reader/wgsl/parser_impl_test.cc | jhanssen/tint | 30c1f25a7a4e180419444c12046348edb0f8fdd0 | [
"Apache-2.0"
] | null | null | null | src/reader/wgsl/parser_impl_test.cc | jhanssen/tint | 30c1f25a7a4e180419444c12046348edb0f8fdd0 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 26.051948 | 75 | 0.686939 | jhanssen |
ff0de56af8e96e809e30814feecd9f543f7e77d9 | 4,980 | cpp | C++ | lib/libsockets/tests/resolve.cpp | xrkmonitor/xrkmonitor | 92aaf624e19962e162c59c31fe6f6cf497cdb3df | [
"Apache-2.0"
] | 3 | 2021-05-08T02:10:11.000Z | 2022-03-03T13:20:27.000Z | lib/libsockets/tests/resolve.cpp | xrkmonitor/open | 92aaf624e19962e162c59c31fe6f6cf497cdb3df | [
"Apache-2.0"
] | null | null | null | lib/libsockets/tests/resolve.cpp | xrkmonitor/open | 92aaf624e19962e162c59c31fe6f6cf497cdb3df | [
"Apache-2.0"
] | 2 | 2021-02-08T01:34:34.000Z | 2021-02-17T14:01:10.000Z | #include <sys/types.h>
#ifndef _WIN32
#include <sys/socket.h>
#include <netdb.h>
#endif
#include <string.h>
#include <string>
#include <Utility.h>
#include <Ipv4Address.h>
#include <Ipv6Address.h>
#include <assert.h>
#include <SocketHandler.h>
#include <StdoutLog.h>
int main(int argc, char *argv[])
{
StdoutLog log;
... | 31.719745 | 101 | 0.597992 | xrkmonitor |
ff12e890d9354739c372c64db92936909b3067a0 | 48,073 | cpp | C++ | src/asterix_lib/cat10.cpp | AntonioAlarcon32/Asterix_Decoder | 59012ce0c4c40b38bdd056578fd92c67e1e2978c | [
"FTL"
] | 1 | 2022-01-30T15:15:34.000Z | 2022-01-30T15:15:34.000Z | src/asterix_lib/cat10.cpp | AntonioAlarcon32/Asterix_Decoder | 59012ce0c4c40b38bdd056578fd92c67e1e2978c | [
"FTL"
] | null | null | null | src/asterix_lib/cat10.cpp | AntonioAlarcon32/Asterix_Decoder | 59012ce0c4c40b38bdd056578fd92c67e1e2978c | [
"FTL"
] | null | null | null | #include "hdr/asterix_lib/cat10.h"
#include "hdr/asterix_lib/utilities.h"
Cat10::Cat10()
{
this->category = 10;
this->length = 0;
this->offset = 0;
this->systemAreaCode = 0;
this->systemIdentificationCode = 0;
this->typeOfMessage = "N/A";
this->trTYP = "N/A";
this->trDCR = "N/A";
... | 32.547732 | 122 | 0.592952 | AntonioAlarcon32 |
d4351f7f6e5586d44c04d397964ed934a1a0b87c | 59,431 | cpp | C++ | obs-studio/UI/window-basic-main-outputs.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/UI/window-basic-main-outputs.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/UI/window-basic-main-outputs.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | #include <string>
#include <algorithm>
#include <QMessageBox>
#include "qt-wrappers.hpp"
#include "audio-encoders.hpp"
#include "window-basic-main.hpp"
#include "window-basic-main-outputs.hpp"
using namespace std;
extern bool EncoderAvailable(const char *encoder);
volatile bool streaming_active = false;
volatile boo... | 29.233153 | 78 | 0.724336 | noelemahcz |
d435ca05fe4624f866030f65f99db894b51510e4 | 362 | hpp | C++ | include/awl/backends/wayland/optional_compositor_fwd.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | include/awl/backends/wayland/optional_compositor_fwd.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | include/awl/backends/wayland/optional_compositor_fwd.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | #ifndef AWL_BACKENDS_WAYLAND_OPTIONAL_COMPOSITOR_FWD_HPP_INCLUDED
#define AWL_BACKENDS_WAYLAND_OPTIONAL_COMPOSITOR_FWD_HPP_INCLUDED
#include <awl/backends/wayland/compositor_fwd.hpp>
#include <fcppt/optional/object_fwd.hpp>
namespace awl::backends::wayland
{
using optional_compositor = fcppt::optional::object<awl::b... | 24.133333 | 88 | 0.839779 | freundlich |
d436c61c4821c38c6ae0238a26f02883a0782a01 | 717 | hpp | C++ | source/File.hpp | acodcha/catan-stratification | 12c45cbf0f97727cc1c8d8c243ce5d0f2468843b | [
"MIT"
] | 1 | 2020-10-07T01:03:32.000Z | 2020-10-07T01:03:32.000Z | source/File.hpp | acodcha/catan-stratification | 12c45cbf0f97727cc1c8d8c243ce5d0f2468843b | [
"MIT"
] | null | null | null | source/File.hpp | acodcha/catan-stratification | 12c45cbf0f97727cc1c8d8c243ce5d0f2468843b | [
"MIT"
] | 1 | 2021-09-22T03:02:41.000Z | 2021-09-22T03:02:41.000Z | #pragma once
#include "Base.hpp"
namespace CatanRanker {
/// \brief General-purpose file handler base class.
template <class FileStream> class File {
public:
~File() noexcept {
if (stream_.is_open()) {
stream_.close();
}
}
constexpr const std::experimental::filesystem::path& path() const noexc... | 17.925 | 81 | 0.637378 | acodcha |
d4376ee0c0eee505dfc67f017158fe99dda956af | 329 | hpp | C++ | Gpx_2/Gpx/_Declaration.hpp | DexterDreeeam/DxtSdk2021 | 2dd8807b4ebe1d65221095191eaa7938bc5e9e78 | [
"MIT"
] | 1 | 2021-11-18T03:57:54.000Z | 2021-11-18T03:57:54.000Z | Gpx_2/Gpx/_Declaration.hpp | DexterDreeeam/P9 | 2dd8807b4ebe1d65221095191eaa7938bc5e9e78 | [
"MIT"
] | null | null | null | Gpx_2/Gpx/_Declaration.hpp | DexterDreeeam/P9 | 2dd8807b4ebe1d65221095191eaa7938bc5e9e78 | [
"MIT"
] | null | null | null | #pragma once
namespace gpx
{
struct window_desc;
struct runtime_desc;
struct pipeline_desc;
struct shader_desc;
struct vertices_viewer_desc;
struct texture_viewer_desc;
struct dynamic_memory_desc;
class window;
class runtime;
class pipeline;
class shader;
class vertices_viewer;
class texture_viewer;
class dynamic_me... | 14.304348 | 28 | 0.832827 | DexterDreeeam |
d438054fe030c8afc206dfada9e1e38f8133a835 | 1,655 | cpp | C++ | adaptors/ubuntu/tts-player-impl-ubuntu.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | adaptors/ubuntu/tts-player-impl-ubuntu.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | adaptors/ubuntu/tts-player-impl-ubuntu.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2014 Samsung Electronics 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... | 19.244186 | 99 | 0.728701 | pwisbey |
d438e8b0271d371a4233165b6b5503725be89fdd | 2,787 | hpp | C++ | src/library/include/aseq/model/genotype.hpp | mlinderm/aseq | 497dfd9b42bc0fa09a09c2db79c063d28c9a5fa0 | [
"Apache-2.0"
] | null | null | null | src/library/include/aseq/model/genotype.hpp | mlinderm/aseq | 497dfd9b42bc0fa09a09c2db79c063d28c9a5fa0 | [
"Apache-2.0"
] | null | null | null | src/library/include/aseq/model/genotype.hpp | mlinderm/aseq | 497dfd9b42bc0fa09a09c2db79c063d28c9a5fa0 | [
"Apache-2.0"
] | null | null | null | //
// Created by Michael Linderman on 3/1/16.
//
#pragma once
#include <aseq/util/exception.hpp>
#include "aseq/util/flyweight.hpp"
#include "aseq/util/attributes.hpp"
namespace aseq {
namespace model {
class VariantContext;
typedef int AlleleIndex;
struct sample_tag {};
typedef util::flyweight_string_no_track<sa... | 30.626374 | 97 | 0.7108 | mlinderm |
d4459a825a303a1203ba6a1ce18271fcc0ebb4e3 | 2,507 | cpp | C++ | src/operators/kernel/fpga/KD/scale_kernel.cpp | flying1999/paddle-mobile | a9ad824933015d8383d1978efe81e7ce4c583ca9 | [
"Apache-2.0"
] | null | null | null | src/operators/kernel/fpga/KD/scale_kernel.cpp | flying1999/paddle-mobile | a9ad824933015d8383d1978efe81e7ce4c583ca9 | [
"Apache-2.0"
] | null | null | null | src/operators/kernel/fpga/KD/scale_kernel.cpp | flying1999/paddle-mobile | a9ad824933015d8383d1978efe81e7ce4c583ca9 | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2018 PaddlePaddle 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... | 31.734177 | 79 | 0.691663 | flying1999 |
d445b8af47237dac26a101240aa514de5e89f703 | 1,628 | cpp | C++ | code/chapter_6/class_A_B_destruction.cpp | deepeshmenonpm/thecandcppclub_source_code | 291200df1d03669dacc78f64f5ece78ce5d8d333 | [
"Apache-2.0"
] | 4 | 2020-06-15T19:09:31.000Z | 2020-11-24T13:53:27.000Z | code/chapter_6/class_A_B_destruction.cpp | deepeshmenonpm/thecandcppclub_source_code | 291200df1d03669dacc78f64f5ece78ce5d8d333 | [
"Apache-2.0"
] | null | null | null | code/chapter_6/class_A_B_destruction.cpp | deepeshmenonpm/thecandcppclub_source_code | 291200df1d03669dacc78f64f5ece78ce5d8d333 | [
"Apache-2.0"
] | 2 | 2020-11-02T14:39:12.000Z | 2022-02-02T04:12:09.000Z | #include <iostream>
using namespace std;
class A
{
private:
int *memory;
public:
explicit A(int size) : memory{new int[size]}
{
cout << "A is created!" << endl;
}
virtual ~A()
{
cout << "A is destroyed" << endl;
if(memory != nullptr)
{
delete []memory;
}
}
virtu... | 13.235772 | 77 | 0.537469 | deepeshmenonpm |
d44988e46d063c09c78f535fe1721ef67db06658 | 6,973 | cpp | C++ | Source/WebCore/svg/SVGMaskElement.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | null | null | null | Source/WebCore/svg/SVGMaskElement.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | 9 | 2020-04-18T18:47:18.000Z | 2020-04-18T18:52:41.000Z | Source/WebCore/svg/SVGMaskElement.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
* Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
* Copyright (C) 2005 Alexander Kellett <lypanov@kde.org>
* Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
* Copyright (C) Research In Motion Limited 2009-2010. All rig... | 37.489247 | 138 | 0.742722 | ijsf |
d449b3b971d2f50a101aa85666fb33d28e658abd | 1,855 | hh | C++ | source/reads/IrrFinder.hh | a7420174/ExpansionHunterDenovo | cbe1306aa8ad7c4b33cdf981d64b3415aa057f91 | [
"Apache-2.0",
"BSD-3-Clause"
] | 50 | 2019-09-20T18:37:38.000Z | 2022-03-10T08:55:42.000Z | source/reads/IrrFinder.hh | mfbennett/ExpansionHunterDenovo | abf1cc78535f572ec49d38a65f6e84f4104fae2a | [
"Apache-2.0",
"BSD-3-Clause"
] | 35 | 2019-09-20T18:38:20.000Z | 2022-03-29T22:50:55.000Z | source/reads/IrrFinder.hh | mfbennett/ExpansionHunterDenovo | abf1cc78535f572ec49d38a65f6e84f4104fae2a | [
"Apache-2.0",
"BSD-3-Clause"
] | 21 | 2019-09-20T20:54:43.000Z | 2022-03-30T13:18:25.000Z | //
// ExpansionHunter Denovo
// Copyright 2016-2019 Illumina, Inc.
// All rights reserved.
//
// Author: Egor Dolzhenko <edolzhenko@illumina.com>,
// Michael Eberle <meberle@illumina.com>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with... | 42.159091 | 113 | 0.754178 | a7420174 |
d451c271ea32b11ed8c9ce41307d8cce6b486b04 | 386 | cpp | C++ | Source Code/Platform/Video/GenericDrawCommand.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | null | null | null | Source Code/Platform/Video/GenericDrawCommand.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | null | null | null | Source Code/Platform/Video/GenericDrawCommand.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Headers/GenericDrawCommand.h"
#include "Platform/Video/Buffers/VertexBuffer/Headers/VertexDataInterface.h"
namespace Divide {
bool Compatible(const GenericDrawCommand& lhs, const GenericDrawCommand& rhs) noexcept {
return lhs._sourceBuffer == rhs._sourceBuffer &&
... | 27.571429 | 89 | 0.733161 | IonutCava |
d45a25d9d02a8415b88f5ec6056ab7416b8263a6 | 2,676 | cpp | C++ | Labs/calculator/Calculate.cpp | dbilovd/compeng-sem1-cpp | 136c89ec63b65e4bc7fba07a45f29dc0c9de56e6 | [
"Apache-2.0"
] | 1 | 2018-12-03T10:06:06.000Z | 2018-12-03T10:06:06.000Z | Labs/calculator/Calculate.cpp | dbilovd/compeng-sem1-cpp | 136c89ec63b65e4bc7fba07a45f29dc0c9de56e6 | [
"Apache-2.0"
] | null | null | null | Labs/calculator/Calculate.cpp | dbilovd/compeng-sem1-cpp | 136c89ec63b65e4bc7fba07a45f29dc0c9de56e6 | [
"Apache-2.0"
] | 1 | 2018-12-03T10:23:55.000Z | 2018-12-03T10:23:55.000Z | #include <iostream>
#include "Calculate.h"
using namespace std;
/**
* Constructors
*/
// new Calculate(+, 10, 5)
Calculate::Calculate(double* resPtr, char operation, double firstNumber, double secondNumber) :
resPtr(resPtr), op(operation), a(firstNumber), b(secondNumber)
{
}
// new Calculate(+, 10)
Calculate:... | 21.238095 | 96 | 0.542227 | dbilovd |
d45dd12e5ae0e438d1cd491ff67252cbb22111fa | 1,200 | cpp | C++ | Hancu/18-09-2018_14-22-45/HB_MPI_Spawn_Worker2.cpp | KenJi544/unIII | 2884cab48c1088b4e3d5f0fe744cecdb8cc9f14d | [
"MIT"
] | 2 | 2018-09-16T12:03:23.000Z | 2018-10-15T16:08:03.000Z | Hancu/18-09-2018_14-22-45/HB_MPI_Spawn_Worker2.cpp | KenJi544/unIII | 2884cab48c1088b4e3d5f0fe744cecdb8cc9f14d | [
"MIT"
] | 1 | 2019-05-16T12:15:09.000Z | 2019-05-16T12:15:09.000Z | Hancu/18-09-2018_14-22-45/HB_MPI_Spawn_Worker2.cpp | KenJi544/unIII | 2884cab48c1088b4e3d5f0fe744cecdb8cc9f14d | [
"MIT"
] | null | null | null |
#include <mpi.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
int size,size1,rank,namelen,t,incep=3;
char processor_name[MPI_MAX_PROCESSOR_NAME];
MPI_Comm parent;
MPI_Status status;
MPI_Init(&argc, &argv);
MPI_Comm_get_parent(&parent);
MPI_Get_processor_name(processor_name,&namelen);
if ... | 36.363636 | 133 | 0.674167 | KenJi544 |
d4680817e5216d33b292c6c323bf299e89943ea5 | 1,159 | hpp | C++ | core/include/gfx/renderer.hpp | Darckore/SpaceAssault | 287db7eff40e83fe08a34d50f617eedfaccb3a55 | [
"MIT"
] | null | null | null | core/include/gfx/renderer.hpp | Darckore/SpaceAssault | 287db7eff40e83fe08a34d50f617eedfaccb3a55 | [
"MIT"
] | null | null | null | core/include/gfx/renderer.hpp | Darckore/SpaceAssault | 287db7eff40e83fe08a34d50f617eedfaccb3a55 | [
"MIT"
] | null | null | null | #pragma once
namespace engine::graphics
{
class window;
class gfx;
class sprite;
namespace detail
{
class pipeline;
}
class renderer
{
private:
using size_type = std::size_t;
using storage_type = std::unordered_map<const gfx*, renderer>;
using point_type = utils::vecd2;
usi... | 20.333333 | 87 | 0.683348 | Darckore |
d46e6b020557ae4d4ba736c10d3bff32433b7815 | 1,732 | hpp | C++ | ec2-api/parse/util/unique.hpp | kaikrueger/ec2-api | c53b7adcc83ae0c1ba758abe10ac8d4c41e05d69 | [
"BSD-4-Clause"
] | 1 | 2015-08-08T05:37:03.000Z | 2015-08-08T05:37:03.000Z | ec2-api/parse/util/unique.hpp | kaikrueger/ec2-api | c53b7adcc83ae0c1ba758abe10ac8d4c41e05d69 | [
"BSD-4-Clause"
] | null | null | null | ec2-api/parse/util/unique.hpp | kaikrueger/ec2-api | c53b7adcc83ae0c1ba758abe10ac8d4c41e05d69 | [
"BSD-4-Clause"
] | null | null | null | // mirko.rahn@itwm.fraunhofer.de
#ifndef _XML_UTIL_UNIQUE_HPP
#define _XML_UTIL_UNIQUE_HPP
#include <vector>
#include <string>
#include <boost/unordered_map.hpp>
namespace ec2 {
namespace xml
{
namespace util
{
template<typename T, typename Key = std::string>
struct unique
{
private:
typede... | 19.244444 | 76 | 0.515012 | kaikrueger |
d47162e4cde42469eeb592bf73bfa7eb7a94f54a | 38 | hpp | C++ | headers/crossplatformutils.hpp | raeper/raep | 8eb4559c80720e5e09f8c1c7f627181ee832e22c | [
"MIT"
] | 2 | 2017-06-30T14:32:19.000Z | 2017-06-30T14:34:33.000Z | headers/crossplatformutils.hpp | raeper/raep | 8eb4559c80720e5e09f8c1c7f627181ee832e22c | [
"MIT"
] | null | null | null | headers/crossplatformutils.hpp | raeper/raep | 8eb4559c80720e5e09f8c1c7f627181ee832e22c | [
"MIT"
] | null | null | null |
namespace aim {
namespace utils {
}
} | 7.6 | 17 | 0.684211 | raeper |
d47c5edcce95bb49f9e596e5170165d0bf73035f | 307 | cpp | C++ | codeforces/stoneflags.cpp | rain-kun/competitive | 581b43fa00ba01bb52737b20bf9da426785a0c16 | [
"MIT"
] | null | null | null | codeforces/stoneflags.cpp | rain-kun/competitive | 581b43fa00ba01bb52737b20bf9da426785a0c16 | [
"MIT"
] | null | null | null | codeforces/stoneflags.cpp | rain-kun/competitive | 581b43fa00ba01bb52737b20bf9da426785a0c16 | [
"MIT"
] | null | null | null | #include <iostream>
int main() {
long long int n,m;
int a;
std::cin >> n>>m>>a;
//m+=-a;
long long int l=int(),b=0;
if(a==1)
std::cout << n*m;
else{
while(l<n || b<m)
{
if (l<n) {
l+=a;
}
if(b<m){
b+=a;
}
}
std::cout << (l/a)*(b/a);
}
return 0;
}
| 12.28 | 30 | 0.400651 | rain-kun |
d47e4eb93a62643375d428032fa8590b1f7f4eb0 | 979 | cpp | C++ | Code/TouchPoints/src/IllustratorModeSelectorMenu.cpp | TAMGeF/InteractivePaint | 5316ca445186dc46ae6a50f524095000ed2878d5 | [
"CECILL-B"
] | null | null | null | Code/TouchPoints/src/IllustratorModeSelectorMenu.cpp | TAMGeF/InteractivePaint | 5316ca445186dc46ae6a50f524095000ed2878d5 | [
"CECILL-B"
] | null | null | null | Code/TouchPoints/src/IllustratorModeSelectorMenu.cpp | TAMGeF/InteractivePaint | 5316ca445186dc46ae6a50f524095000ed2878d5 | [
"CECILL-B"
] | null | null | null | #include "IllustratorModeSelectorMenu.h"
namespace touchpoints { namespace ui
{
IllustratorModeSelectorMenu::IllustratorModeSelectorMenu() {}
IllustratorModeSelectorMenu::IllustratorModeSelectorMenu(vec2 startPoint, int height, int width, bool visible,
drawing::Illustrator* illustrator,
multimap<int, shared_ptr... | 37.653846 | 111 | 0.787538 | TAMGeF |
d47e91a467ea9a562b4de19d19ade357e1ec74a1 | 816 | cpp | C++ | resistor-divider-logic/src/resistor_divider_logic.cpp | dsabala/resistor-divider | 46088fff75c4acd7e23b5d251d45a5e85c950053 | [
"MIT"
] | 1 | 2021-09-08T14:02:35.000Z | 2021-09-08T14:02:35.000Z | resistor-divider-logic/src/resistor_divider_logic.cpp | dsabala/resistor-divider | 46088fff75c4acd7e23b5d251d45a5e85c950053 | [
"MIT"
] | null | null | null | resistor-divider-logic/src/resistor_divider_logic.cpp | dsabala/resistor-divider | 46088fff75c4acd7e23b5d251d45a5e85c950053 | [
"MIT"
] | null | null | null | // https://github.com/dsabala/resistor-divider
// License: MIT
#include <resistor-divider-logic/resistor_divider_logic.hpp>
#include <pairs_finder.hpp>
namespace ResistorDivider
{
SearchResults Search(SearchCriteria & criteria)
{
SearchResults results;
if(!(CheckCriteria(criteria)))
{
result... | 19.428571 | 84 | 0.677696 | dsabala |
d47eb973ad51df9b2466b525e00aa79956b6b670 | 4,078 | hpp | C++ | library/peripherals/timer.hpp | SarahS16/SJSU-Dev2 | 47f9ddb7d3c3743f839b57f381bf979dd61d49ab | [
"Apache-2.0"
] | 6 | 2020-06-20T23:56:42.000Z | 2021-12-18T08:13:54.000Z | library/peripherals/timer.hpp | SarahS16/SJSU-Dev2 | 47f9ddb7d3c3743f839b57f381bf979dd61d49ab | [
"Apache-2.0"
] | 153 | 2020-06-09T14:49:29.000Z | 2022-01-31T16:39:39.000Z | library/peripherals/timer.hpp | SarahS16/SJSU-Dev2 | 47f9ddb7d3c3743f839b57f381bf979dd61d49ab | [
"Apache-2.0"
] | 10 | 2020-08-02T00:55:38.000Z | 2022-01-24T23:06:51.000Z | #pragma once
#include <cstdint>
#include <functional>
#include "peripherals/inactive.hpp"
#include "peripherals/interrupt.hpp"
#include "utility/error_handling.hpp"
#include "utility/math/units.hpp"
namespace sjsu
{
/// An abstract interface for timer peripherals. This interface can be used for
/// keeping time, sta... | 34.268908 | 80 | 0.608386 | SarahS16 |
d47f493a26c798484524ec239eeb18f1f26c7984 | 366 | cpp | C++ | luoGuCode/p1352/p1352.cpp | Xchkoo/luoGuCode | 9c802bec130cfe1d681b70333193e8f874dd5203 | [
"MIT"
] | 2 | 2020-08-06T00:37:19.000Z | 2020-09-20T03:44:10.000Z | luoGuCode/p1352/p1352.cpp | Xchkoo/MyAlgorithmCode | 9c802bec130cfe1d681b70333193e8f874dd5203 | [
"MIT"
] | 1 | 2020-09-27T03:45:54.000Z | 2020-10-05T04:59:40.000Z | luoGuCode/p1352/p1352.cpp | Xchkoo/luoGuCode | 9c802bec130cfe1d681b70333193e8f874dd5203 | [
"MIT"
] | null | null | null | /*
* © Copyright 2021 Xchkoo All rights reserved.
*
* AUTHOR: Xchkoo
* DATE: 2021-02-05
* LISENSE: CC v4.0 BY-SA https://creativecommons.org/licenses/by-sa/4.0/deed.zh
* Remark: Thanks for viewing XD
* Welcome to my blog -> Xchkoo.top
*/
#include <iostream>
typedef long long ll;
typedef size_t s_t;
const int MA... | 19.263158 | 80 | 0.669399 | Xchkoo |
d481e5060399762da1e066d8b2faeebfb0367755 | 1,359 | hpp | C++ | KFPlugin/KFBus/KFBusConfig.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | 1 | 2021-04-26T09:31:32.000Z | 2021-04-26T09:31:32.000Z | KFPlugin/KFBus/KFBusConfig.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | KFPlugin/KFBus/KFBusConfig.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | #ifndef __KF_BUS_CONFIG_H__
#define __KF_BUS_CONFIG_H__
#include "KFZConfig/KFConfig.h"
namespace KFrame
{
class KFConnection
{
public:
KFConnection()
{
}
public:
std::string _app_name;
std::string _app_type;
std::string _app_id;
std::string _... | 25.166667 | 133 | 0.52833 | 282951387 |
d48b827c32e266bd50683eab47c5cbefe8a0e1ab | 353 | cpp | C++ | src/simd-and/src/benchmark-simd-and-vector.cpp | bverhagen/optimization-experiments | 4f9914626bfaacb03caa230637d5075136537681 | [
"MIT"
] | null | null | null | src/simd-and/src/benchmark-simd-and-vector.cpp | bverhagen/optimization-experiments | 4f9914626bfaacb03caa230637d5075136537681 | [
"MIT"
] | null | null | null | src/simd-and/src/benchmark-simd-and-vector.cpp | bverhagen/optimization-experiments | 4f9914626bfaacb03caa230637d5075136537681 | [
"MIT"
] | null | null | null | #include "benchmark-simd-and.h"
#include <iostream>
#include "common/include/performanceUtils.h"
using std::size_t;
namespace SimdAnd {
namespace Performance {
TEMPLATED_BENCHMARK(BenchmarkSimdAnd<v4uint8_t>::run, simdAnd, "SimdAnd::vectorized")->Range(minVectorRange, maxRange);
} // namespace Perf... | 27.153846 | 127 | 0.736544 | bverhagen |
d48bdced88ae1dc421be5f29d4b4117d739d188a | 2,827 | cpp | C++ | unittest/InitializerCheckTest.cpp | nonelse/nullarihyon | ff23cc1f0fd98e09197f3ca228871a1f12c49182 | [
"MIT"
] | null | null | null | unittest/InitializerCheckTest.cpp | nonelse/nullarihyon | ff23cc1f0fd98e09197f3ca228871a1f12c49182 | [
"MIT"
] | null | null | null | unittest/InitializerCheckTest.cpp | nonelse/nullarihyon | ff23cc1f0fd98e09197f3ca228871a1f12c49182 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <iostream>
#include <set>
#include <clang/Tooling/Tooling.h>
#include <clang/ASTMatchers/ASTMatchers.h>
#include <clang/ASTMatchers/ASTMatchFinder.h>
#include <ExpressionNullabilityCalculator.h>
#include <InitializerChecker.h>
#include "TestHelper.h"
using namespace clang;
using na... | 38.726027 | 122 | 0.593562 | nonelse |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.