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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
caf4c13eadfb49604d01a5087a1effba4a6e5214 | 2,539 | hpp | C++ | examples/GLUT/07-mouse-select/BiQuadFilter.hpp | zwells1/HapticMoCap | 0f102834b44f6f38473145da4e39090fafa126b2 | [
"BSD-3-Clause"
] | null | null | null | examples/GLUT/07-mouse-select/BiQuadFilter.hpp | zwells1/HapticMoCap | 0f102834b44f6f38473145da4e39090fafa126b2 | [
"BSD-3-Clause"
] | null | null | null | examples/GLUT/07-mouse-select/BiQuadFilter.hpp | zwells1/HapticMoCap | 0f102834b44f6f38473145da4e39090fafa126b2 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
/*
BiQuadFilter.hpp this class is designed to interpret where the Marker is
and to provide feedback that with a parameterisized object. I imagine that each object
will be interpretted different.
File Name: Filter.hpp
Author: Zachary Wells
Date: 10/18/2016
Tested With: Chai version 3.1.1
*/
//-----------... | 21.516949 | 89 | 0.576211 | zwells1 |
caf58e144ac2b87819e4ac70e9aabd214edc9f69 | 2,251 | cpp | C++ | tutorials/tutorial 2 - image capture/cpp/main.cpp | Myzhar/zed-examples | 3c035a711f9bce7250f38346c80ddfd9afd140bd | [
"MIT"
] | 1 | 2020-12-09T21:53:02.000Z | 2020-12-09T21:53:02.000Z | tutorials/tutorial 2 - image capture/cpp/main.cpp | Myzhar/zed-examples | 3c035a711f9bce7250f38346c80ddfd9afd140bd | [
"MIT"
] | null | null | null | tutorials/tutorial 2 - image capture/cpp/main.cpp | Myzhar/zed-examples | 3c035a711f9bce7250f38346c80ddfd9afd140bd | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2020, STEREOLABS.
//
// All rights reserved.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIE... | 36.901639 | 178 | 0.622834 | Myzhar |
cafc8f7fd5964d3ad54d2ded8ec79df2f5b86ac9 | 3,834 | cpp | C++ | Window/WINDOW_SelectModeProc.cpp | akeeb-alam/Shadow-Mapping | 1a406a2a370164a365245196c964024d6e6e99e2 | [
"BSD-3-Clause"
] | null | null | null | Window/WINDOW_SelectModeProc.cpp | akeeb-alam/Shadow-Mapping | 1a406a2a370164a365245196c964024d6e6e99e2 | [
"BSD-3-Clause"
] | null | null | null | Window/WINDOW_SelectModeProc.cpp | akeeb-alam/Shadow-Mapping | 1a406a2a370164a365245196c964024d6e6e99e2 | [
"BSD-3-Clause"
] | 2 | 2015-12-22T13:55:25.000Z | 2021-12-02T09:17:44.000Z | //////////////////////////////////////////////////////////////////////////////////////////
// WINDOW_SelectModeProc.cpp
// Callback function, called when "select resolution" dialog box is open
// Downloaded from: www.paulsprojects.net
// Created: 12th November 2002
//
// Copyright (c) 2006, Paul Baker
// Distributed un... | 26.811189 | 91 | 0.617632 | akeeb-alam |
1b0030dc98d73948df506f075a9ace9a41d90eea | 1,327 | cpp | C++ | WorldEdit/ObjectDialog.cpp | WhyWolfie/source2007 | 324257e9c69bbaec872ebb7ae4f96ab2ce98f520 | [
"FSFAP"
] | null | null | null | WorldEdit/ObjectDialog.cpp | WhyWolfie/source2007 | 324257e9c69bbaec872ebb7ae4f96ab2ce98f520 | [
"FSFAP"
] | null | null | null | WorldEdit/ObjectDialog.cpp | WhyWolfie/source2007 | 324257e9c69bbaec872ebb7ae4f96ab2ce98f520 | [
"FSFAP"
] | null | null | null | // ObjectDialog.cpp : implementation file
//
#include "stdafx.h"
#include "MZFileSystem.h"
#include "WorldEdit.h"
#include "ObjectDialog.h"
#include "FileInfo.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
////////////////////////////////////////////////////////... | 20.734375 | 77 | 0.651846 | WhyWolfie |
1b00deadffff90fe99ba1a0f67bdc1165ef2e457 | 118,098 | cpp | C++ | tools/generated/fix2xml/test_fix2xml_MultilegOrderCancelReplace.cpp | abdelkaderamar/fix2xml | fa781b747a8e40ed4c2d3dee8294fb51654f7428 | [
"MIT"
] | 1 | 2019-09-26T12:08:19.000Z | 2019-09-26T12:08:19.000Z | tools/generated/fix2xml/test_fix2xml_MultilegOrderCancelReplace.cpp | abdelkaderamar/fix2xml | fa781b747a8e40ed4c2d3dee8294fb51654f7428 | [
"MIT"
] | null | null | null | tools/generated/fix2xml/test_fix2xml_MultilegOrderCancelReplace.cpp | abdelkaderamar/fix2xml | fa781b747a8e40ed4c2d3dee8294fb51654f7428 | [
"MIT"
] | 1 | 2020-12-11T04:11:44.000Z | 2020-12-11T04:11:44.000Z | #include <gtest/gtest.h>
#include "converter/fixml2fix_converter.hxx"
#include "converter/xml_element_helper.hxx"
#include "converter/fix_helper.hxx"
#include "util/fix_env.hxx"
#include "tools/test_util.hxx"
#include <boost/log/trivial.hpp>
#include <quickfix/fix50sp2/MultilegOrderCancelReplace.h>
#include <list>
... | 62.751328 | 174 | 0.799827 | abdelkaderamar |
1b06f161b3810ef7eefc3180c6a1476d19dcea11 | 2,004 | cpp | C++ | src/GNOME-Apps-Customizer/create.cpp | CyanCoding/GNOME-Apps-Customizer | 2502f09f34ec0a3745b627684c0fc1951fdd7ced | [
"Apache-2.0"
] | 2 | 2021-05-22T17:00:43.000Z | 2021-06-25T13:26:27.000Z | src/GNOME-Apps-Customizer/create.cpp | CyanCoding/GNOME-Apps-Customizer | 2502f09f34ec0a3745b627684c0fc1951fdd7ced | [
"Apache-2.0"
] | null | null | null | src/GNOME-Apps-Customizer/create.cpp | CyanCoding/GNOME-Apps-Customizer | 2502f09f34ec0a3745b627684c0fc1951fdd7ced | [
"Apache-2.0"
] | null | null | null | #include "create.h"
#include <fstream>
#include "iniparser/iniparser.h"
// Gets the .desktop file path
std::string getDesktopPath(std::string name, std::string homeDir) {
return homeDir + "/.local/share/applications/" + name + ".desktop";
}
// Creates the content for a .desktop file
std::string getDesktopValue... | 25.367089 | 122 | 0.639721 | CyanCoding |
db45eb4f1a79a001cd74174dc7648fc9329a34b3 | 2,506 | cpp | C++ | HexGame/Engine/Graphics/Shader.cpp | kkorenev/HexGame | 33aae3b589f9c032056eab27be653caefbc22f1c | [
"MIT"
] | null | null | null | HexGame/Engine/Graphics/Shader.cpp | kkorenev/HexGame | 33aae3b589f9c032056eab27be653caefbc22f1c | [
"MIT"
] | null | null | null | HexGame/Engine/Graphics/Shader.cpp | kkorenev/HexGame | 33aae3b589f9c032056eab27be653caefbc22f1c | [
"MIT"
] | null | null | null | #include <Engine/Graphics/Shader.hpp>
#include <iostream>
#include <sstream>
Shader::Shader(const std::string& pathToVertex, const std::string& pathToFrag)
{
std::string vertexCode;
std::string fragmentCode;
std::ifstream VertexShaderFile;
std::ifstream FragmentShaderFile;
VertexShaderFile.exceptions(std::ifstr... | 24.811881 | 89 | 0.756584 | kkorenev |
db46201a43feee1b65406a0e31c3052477175523 | 55 | hpp | C++ | src/boost_spirit_include_classic_common_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_include_classic_common_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_include_classic_common_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/include/classic_common_fwd.hpp>
| 27.5 | 54 | 0.836364 | miathedev |
db47b1b982d1b440b3d4441d970b619bb2d20f58 | 3,156 | cpp | C++ | moai/src/moaicore/MOAICameraAnchor2D.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/moaicore/MOAICameraAnchor2D.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/moaicore/MOAICameraAnchor2D.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | // Copyright (c) 2010-2011 Zipline Games, Inc. All Rights Reserved.
// http://getmoai.com
#include "pch.h"
#include <moaicore/MOAICameraAnchor2D.h>
#include <moaicore/MOAILogMessages.h>
#include <moaicore/MOAITransformBase.h>
//================================================================//
// local
//============... | 27.684211 | 126 | 0.508555 | jjimenezg93 |
db49968f000c324c023c755835536025e46c6e96 | 18,160 | cpp | C++ | Source/AtomicJS/Javascript/JSAPI.cpp | honigbeutler123/AtomicGameEngine | c53425f19b216eb21ecd3bda85052aaa1a6f2aaa | [
"Apache-2.0",
"MIT"
] | null | null | null | Source/AtomicJS/Javascript/JSAPI.cpp | honigbeutler123/AtomicGameEngine | c53425f19b216eb21ecd3bda85052aaa1a6f2aaa | [
"Apache-2.0",
"MIT"
] | null | null | null | Source/AtomicJS/Javascript/JSAPI.cpp | honigbeutler123/AtomicGameEngine | c53425f19b216eb21ecd3bda85052aaa1a6f2aaa | [
"Apache-2.0",
"MIT"
] | null | null | null | //
// Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
//... | 26.903704 | 144 | 0.606773 | honigbeutler123 |
db4d45e2098f043048854519133b86292f967f92 | 2,817 | cpp | C++ | Engine/Source/mathutilities.cpp | bugsbycarlin/Honey | 56902979eb746c8dff5c8bcfc531fbf855c0bae5 | [
"MIT"
] | null | null | null | Engine/Source/mathutilities.cpp | bugsbycarlin/Honey | 56902979eb746c8dff5c8bcfc531fbf855c0bae5 | [
"MIT"
] | null | null | null | Engine/Source/mathutilities.cpp | bugsbycarlin/Honey | 56902979eb746c8dff5c8bcfc531fbf855c0bae5 | [
"MIT"
] | null | null | null | /*
Honey
Copyright 2018 - Matthew Carlin
*/
#include "mathutilities.h"
using namespace std;
namespace Honey {
MathUtilities& MathUtilities::instance() {
static MathUtilities math_instance;
return math_instance;
}
MathUtilities::MathUtilities() {
srand(time(NULL));
}
int MathUtilities::r... | 30.619565 | 107 | 0.588569 | bugsbycarlin |
db534075bd6f40354b8eae79ef3a343dbae4af31 | 774 | cpp | C++ | src/free_type/library.cpp | adamransom/barely_engine | 287e73f278496b79d556ee9f0a7b7ad517916bc5 | [
"MIT"
] | null | null | null | src/free_type/library.cpp | adamransom/barely_engine | 287e73f278496b79d556ee9f0a7b7ad517916bc5 | [
"MIT"
] | null | null | null | src/free_type/library.cpp | adamransom/barely_engine | 287e73f278496b79d556ee9f0a7b7ad517916bc5 | [
"MIT"
] | null | null | null | //
// library.cpp
// Copyright (c) 2015 Adam Ransom
//
#include <ft2build.h>
#include FT_FREETYPE_H
#include <config/ftoption.h>
#include "library.h"
#include "exception.h"
namespace BarelyEngine {
namespace FreeType {
Library::Library()
{
FT_Error error = FT_Init_FreeType(&library_);
if (error)
{
throw Ex... | 18 | 85 | 0.677003 | adamransom |
db54cb8e5559fa060761bec67e9e7f862a219fde | 2,866 | cc | C++ | source/columns.cc | JaMo42/lst | 0e2de3fac009af47b986a40a52c7ece8d6dd9e4d | [
"MIT"
] | null | null | null | source/columns.cc | JaMo42/lst | 0e2de3fac009af47b986a40a52c7ece8d6dd9e4d | [
"MIT"
] | null | null | null | source/columns.cc | JaMo42/lst | 0e2de3fac009af47b986a40a52c7ece8d6dd9e4d | [
"MIT"
] | null | null | null | #include "columns.hh"
Columns::Columns ()
: M_columns {}
, M_rows (1)
, M_has_quoted (false)
{}
def Columns::add (const FileInfo *f) -> void
{
let const width = (unicode::display_width (f->name)
+ (Arguments::classify ? (file_indicator (*f) != 0) : 0));
let const is_quoted = ((Arguments... | 24.495726 | 87 | 0.52582 | JaMo42 |
db5a69c2490fb71eec0cbc8b7c35ca414a2d4008 | 472 | cpp | C++ | 03-Arrays/transpose.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 21 | 2020-10-03T03:57:19.000Z | 2022-03-25T22:41:05.000Z | 03-Arrays/transpose.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 40 | 2020-10-02T07:02:34.000Z | 2021-10-30T16:00:07.000Z | 03-Arrays/transpose.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 90 | 2020-10-02T07:06:22.000Z | 2022-03-25T22:41:17.000Z | #include<iostream>
using namespace std;
int main()
{
int l,i,j;
cout<<"Enter length of the square matrix (max 100) - \n";
cin>>l;
int arr[100][100];
int tr[100][100];
cout<<"Enter the matrix row wise - \n";
for(i=0; i<l; i++)
{
for(j=0; j<l; j++)
cin>>arr[i][j];
}
for(i=0; i<l; i++)
{
for(j=0; j<l; j+... | 16.275862 | 58 | 0.5 | ShreyashRoyzada |
db621beecdf4b4520fff0242eafeb3166601fd8c | 1,890 | cpp | C++ | test/test_schnorr_sig.cpp | yuchen1024/HISE | e17f7d937f06c2298c2f978f669367393051b68a | [
"MIT"
] | 1 | 2021-09-12T01:25:40.000Z | 2021-09-12T01:25:40.000Z | test/test_schnorr_sig.cpp | yuchen1024/HISE | e17f7d937f06c2298c2f978f669367393051b68a | [
"MIT"
] | null | null | null | test/test_schnorr_sig.cpp | yuchen1024/HISE | e17f7d937f06c2298c2f978f669367393051b68a | [
"MIT"
] | null | null | null | #define DEBUG
//#define LOG
#include "../common/print.hpp"
#include "../cpk/schnorr_sig.hpp"
int main()
{
Print_SplitLine('-');
std::cout << "*** Schnorr SIG (based on mcl) ***" << std::endl;
Print_SplitLine('-');
std::cout << "benchmark test begins >>>" << std::endl;
Print_SplitLine('-');
... | 29.53125 | 104 | 0.588889 | yuchen1024 |
db6614a0d21be45863ae8d2b250ea296d57fe7eb | 12,365 | cpp | C++ | src/Scout.cpp | jacobrosenthal/library-pinoccio | 3017b03b1ed4311e345d4a5bc851f124827fb4ea | [
"Apache-2.0"
] | null | null | null | src/Scout.cpp | jacobrosenthal/library-pinoccio | 3017b03b1ed4311e345d4a5bc851f124827fb4ea | [
"Apache-2.0"
] | null | null | null | src/Scout.cpp | jacobrosenthal/library-pinoccio | 3017b03b1ed4311e345d4a5bc851f124827fb4ea | [
"Apache-2.0"
] | null | null | null | #include <Arduino.h>
#include <Wire.h>
#include <Scout.h>
#include "backpacks/Backpacks.h"
#include <math.h>
#include <avr/eeprom.h>
static void scoutDigitalStateChangeTimerHandler(SYS_Timer_t *timer);
static void scoutAnalogStateChangeTimerHandler(SYS_Timer_t *timer);
static void scoutPeripheralStateChangeTimerHandle... | 24.582505 | 126 | 0.674808 | jacobrosenthal |
db6b3ebcb68b691425db355b6b4d5aad0cbb612d | 643 | cpp | C++ | Problems/278. First Bad Version/binary.cpp | uSlashVlad/MyLeetCode | 3d5e8e347716beb0ffadb538c92eceb42ab7fcf9 | [
"MIT"
] | 1 | 2022-01-29T01:52:58.000Z | 2022-01-29T01:52:58.000Z | Problems/278. First Bad Version/binary.cpp | uSlashVlad/MyLeetCode | 3d5e8e347716beb0ffadb538c92eceb42ab7fcf9 | [
"MIT"
] | null | null | null | Problems/278. First Bad Version/binary.cpp | uSlashVlad/MyLeetCode | 3d5e8e347716beb0ffadb538c92eceb42ab7fcf9 | [
"MIT"
] | null | null | null | bool isBadVersion(int version);
class Solution
{
public:
int firstBadVersion(int n)
{
long int low = 1;
long int high = n;
while (low <= high)
{
long int mid = (low + high) / 2;
if (isBadVersion(mid))
{
if (isBadVersion(mid - 1... | 20.741935 | 44 | 0.351477 | uSlashVlad |
db6dba1d5a88900406259031bb4176ab82162b80 | 560 | cc | C++ | codeforces/1199/a.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | codeforces/1199/a.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | codeforces/1199/a.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://codeforces.com/contest/1199/problem/A
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, y;
cin >> n >> x >> y;
vector<int> a(n);
for (int i = 0; i < n; i++) cin >> a[i];
for (int i = 0; i < n; i++) {
bool ok = true;
for (int j = max(0, i - x); j < i; j++)
if (a[j]... | 19.310345 | 51 | 0.403571 | Ashindustry007 |
db6edff09bc85c983742814ae2bc2437b5f86c65 | 5,187 | cpp | C++ | tests/Unit/NumericalAlgorithms/LinearOperators/Test_Linearize.cpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 117 | 2017-04-08T22:52:48.000Z | 2022-03-25T07:23:36.000Z | tests/Unit/NumericalAlgorithms/LinearOperators/Test_Linearize.cpp | GitHimanshuc/spectre | 4de4033ba36547113293fe4dbdd77591485a4aee | [
"MIT"
] | 3,177 | 2017-04-07T21:10:18.000Z | 2022-03-31T23:55:59.000Z | tests/Unit/NumericalAlgorithms/LinearOperators/Test_Linearize.cpp | geoffrey4444/spectre | 9350d61830b360e2d5b273fdd176dcc841dbefb0 | [
"MIT"
] | 85 | 2017-04-07T19:36:13.000Z | 2022-03-01T10:21:00.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Framework/TestingFramework.hpp"
#include <cmath>
#include <cstddef>
#include "DataStructures/DataVector.hpp"
#include "DataStructures/Index.hpp"
#include "DataStructures/IndexIterator.hpp"
#include "DataStructures/Matrix.hpp"
#include "D... | 40.209302 | 77 | 0.56738 | macedo22 |
db6f069b52fcb30e50faed22933e1aa66da8b472 | 8,033 | hpp | C++ | src/base/command/Vary.hpp | saichikine/GMAT | 80bde040e12946a61dae90d9fc3538f16df34190 | [
"Apache-2.0"
] | null | null | null | src/base/command/Vary.hpp | saichikine/GMAT | 80bde040e12946a61dae90d9fc3538f16df34190 | [
"Apache-2.0"
] | null | null | null | src/base/command/Vary.hpp | saichikine/GMAT | 80bde040e12946a61dae90d9fc3538f16df34190 | [
"Apache-2.0"
] | 1 | 2021-12-05T05:40:15.000Z | 2021-12-05T05:40:15.000Z | //$Id$
//------------------------------------------------------------------------------
// Vary
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2018 United States Government as represent... | 37.713615 | 85 | 0.619445 | saichikine |
db73d6019854c64f35e5dfa290745bd5356f2a3f | 4,641 | cpp | C++ | ROF_Engine/ModuleAudio.cpp | RogerOlasz/ROF_Engine | 5c379ab51da85148a135863c8e01c4aa9f06701b | [
"MIT"
] | null | null | null | ROF_Engine/ModuleAudio.cpp | RogerOlasz/ROF_Engine | 5c379ab51da85148a135863c8e01c4aa9f06701b | [
"MIT"
] | null | null | null | ROF_Engine/ModuleAudio.cpp | RogerOlasz/ROF_Engine | 5c379ab51da85148a135863c8e01c4aa9f06701b | [
"MIT"
] | null | null | null | #include "Globals.h"
#include "Application.h"
#include "ModuleAudio.h"
#include <AK/SoundEngine/Common/AkMemoryMgr.h> // Memory Manager
#include <AK/SoundEngine/Common/AkModule.h> // Default memory and stream managers
#include <AK/SoundEngine/Common/IAkStreamMgr.h> // Streaming Manager
#include <AK/Tools... | 29.56051 | 112 | 0.710623 | RogerOlasz |
db79d17585391f42aa51bc394d8a83f816ee9e85 | 2,944 | cpp | C++ | Firmware/FFBoard/UserExtensions/Src/CanBridge.cpp | jonlidgard/OpenFFBoard | ab2cb6ec28880972628100bd6b33fbf687904cb8 | [
"MIT"
] | null | null | null | Firmware/FFBoard/UserExtensions/Src/CanBridge.cpp | jonlidgard/OpenFFBoard | ab2cb6ec28880972628100bd6b33fbf687904cb8 | [
"MIT"
] | null | null | null | Firmware/FFBoard/UserExtensions/Src/CanBridge.cpp | jonlidgard/OpenFFBoard | ab2cb6ec28880972628100bd6b33fbf687904cb8 | [
"MIT"
] | null | null | null | /*
* CanBridge.cpp
*
* Created on: 20.11.2020
* Author: Yannick
*/
#include <CanBridge.h>
#ifdef CANBRIDGE
#include "target_constants.h"
#include "ledEffects.h"
ClassIdentifier CanBridge::info = {
.name = "CAN Bridge" ,
.id=12,
.hidden=false //Set false to list
};
const ClassIdentifier CanBrid... | 23.365079 | 118 | 0.699049 | jonlidgard |
db7c3331371652010c9f13552c5287583fa8187b | 11,640 | cpp | C++ | src/xercesc/validators/schema/SchemaElementDecl.cpp | allianz-pmichel/xerces-c-src_2_8_0 | 7e62f6c653944894a34ee41581e6d7d66e3387dd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/xercesc/validators/schema/SchemaElementDecl.cpp | allianz-pmichel/xerces-c-src_2_8_0 | 7e62f6c653944894a34ee41581e6d7d66e3387dd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/xercesc/validators/schema/SchemaElementDecl.cpp | allianz-pmichel/xerces-c-src_2_8_0 | 7e62f6c653944894a34ee41581e6d7d66e3387dd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 29.543147 | 109 | 0.579811 | allianz-pmichel |
db7c6025a817c66784e5331dc3800f1866f87188 | 15,174 | cc | C++ | libs/tensorflow/include/tensorflow/cc/ops/string_ops.cc | leozimmerman/ofxMSATensorFlow | 9272d694651d29e3c43b8432622606fc964bc307 | [
"Apache-2.0"
] | 1 | 2019-05-19T06:25:26.000Z | 2019-05-19T06:25:26.000Z | libs/tensorflow/include/tensorflow/cc/ops/string_ops.cc | leozimmerman/ofxMSATensorFlow | 9272d694651d29e3c43b8432622606fc964bc307 | [
"Apache-2.0"
] | null | null | null | libs/tensorflow/include/tensorflow/cc/ops/string_ops.cc | leozimmerman/ofxMSATensorFlow | 9272d694651d29e3c43b8432622606fc964bc307 | [
"Apache-2.0"
] | null | null | null | // This file is MACHINE GENERATED! Do not edit.
#include "tensorflow/cc/ops/const_op.h"
#include "tensorflow/cc/ops/string_ops.h"
namespace tensorflow {
namespace ops {
AsString::AsString(const ::tensorflow::Scope& scope, ::tensorflow::Input input,
const AsString::Attrs& attrs) {
if (!scope.ok(... | 41.121951 | 113 | 0.626862 | leozimmerman |
db7d52d3b2eb269afdbdbc3984077b85e8408846 | 3,630 | cpp | C++ | libraries/chain/chain_config.cpp | SuperBladeMaster/EOS | 11d35f0f934402321853119d36caeb7022813743 | [
"Apache-2.0",
"MIT"
] | 13,162 | 2017-05-29T22:08:27.000Z | 2022-03-29T19:25:05.000Z | libraries/chain/chain_config.cpp | SuperBladeMaster/EOS | 11d35f0f934402321853119d36caeb7022813743 | [
"Apache-2.0",
"MIT"
] | 6,450 | 2017-05-30T14:41:50.000Z | 2022-03-30T11:30:04.000Z | libraries/chain/chain_config.cpp | SuperBladeMaster/EOS | 11d35f0f934402321853119d36caeb7022813743 | [
"Apache-2.0",
"MIT"
] | 4,491 | 2017-05-29T22:08:32.000Z | 2022-03-29T07:09:52.000Z | #include <eosio/chain/chain_config.hpp>
#include <eosio/chain/exceptions.hpp>
#include <eosio/chain/controller.hpp>
namespace eosio { namespace chain {
void chain_config_v0::validate() const {
EOS_ASSERT( target_block_net_usage_pct <= config::percent_100, action_validate_exception,
"target ... | 55.846154 | 150 | 0.720386 | SuperBladeMaster |
db8500599ce5772dab50bde8704afa3bf102478b | 4,654 | cpp | C++ | program/source/text/text.cpp | weigert/splash | 8ba1b31bbebdd7ab4da052c4a3470e2bb94a5754 | [
"MIT"
] | 173 | 2020-06-07T06:04:29.000Z | 2022-03-07T12:43:21.000Z | program/source/text/text.cpp | weigert/splash | 8ba1b31bbebdd7ab4da052c4a3470e2bb94a5754 | [
"MIT"
] | 11 | 2020-06-07T06:06:07.000Z | 2022-02-02T16:04:29.000Z | program/source/text/text.cpp | weigert/splash | 8ba1b31bbebdd7ab4da052c4a3470e2bb94a5754 | [
"MIT"
] | 7 | 2020-06-07T18:26:08.000Z | 2022-01-29T20:59:12.000Z | #include "../../program.h"
#include <SDL2/SDL_ttf.h>
#include <unistd.h>
glm::vec4 hexparse(std::string s){
//Remove Leading 0x
if(s.substr(0,2) == "0x")
s = s.substr(2);
std::stringstream ss;
int val = 0;
glm::vec4 vec(0);
for(int i = 0; i < 4; i++){
if(s.empty()) break;
ss.clear();
ss ... | 23.989691 | 95 | 0.580146 | weigert |
db861a4773b72a86b8efb252a89551ebab81e23b | 37,357 | cpp | C++ | scripts/ParentAnalysis/PARENT-master/src/util/io/io_binary.cpp | Laura-zj/Entropic_Path_Sampling | 4ea7e9c83dbb5600bb5e52b464fb4f48b928bf1a | [
"MIT"
] | 1 | 2021-08-19T02:30:39.000Z | 2021-08-19T02:30:39.000Z | scripts/ParentAnalysis/PARENT-master/src/util/io/io_binary.cpp | Laura-zj/Entropic_Path_Sampling | 4ea7e9c83dbb5600bb5e52b464fb4f48b928bf1a | [
"MIT"
] | null | null | null | scripts/ParentAnalysis/PARENT-master/src/util/io/io_binary.cpp | Laura-zj/Entropic_Path_Sampling | 4ea7e9c83dbb5600bb5e52b464fb4f48b928bf1a | [
"MIT"
] | 1 | 2021-09-02T06:25:54.000Z | 2021-09-02T06:25:54.000Z | // The binary IO library for the PARENT program suite
// Copyright (C) 2015 Markus Fleck (member of the laboratory of Bojan Zagrovic, University of Vienna)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 3
// as ... | 54.219158 | 360 | 0.626897 | Laura-zj |
db87c916f79333b1c77139362b8654f322f2c2ba | 4,770 | cpp | C++ | DK/DKFramework/Private/Direct3D12/RenderCommandEncoder.cpp | tiff2766/DK | 65eb923069c52a7d75fc0e8bdbaf304e32644551 | [
"BSD-3-Clause"
] | 33 | 2015-11-24T08:40:48.000Z | 2022-03-16T14:54:12.000Z | DK/DKFramework/Private/Direct3D12/RenderCommandEncoder.cpp | tiff2766/DK | 65eb923069c52a7d75fc0e8bdbaf304e32644551 | [
"BSD-3-Clause"
] | 3 | 2021-04-11T04:08:04.000Z | 2021-04-13T12:01:04.000Z | DK/DKFramework/Private/Direct3D12/RenderCommandEncoder.cpp | tiff2766/DK | 65eb923069c52a7d75fc0e8bdbaf304e32644551 | [
"BSD-3-Clause"
] | 10 | 2015-11-24T02:27:53.000Z | 2022-01-05T18:29:09.000Z | //
// File: RenderCommandEncoder.cpp
// Author: Hongtae Kim (tiff2766@gmail.com)
//
// Copyright (c) 2015-2017 Hongtae Kim. All rights reserved.
//
#include "../GraphicsAPI.h"
#if DKGL_ENABLE_DIRECT3D12
#include "RenderCommandEncoder.h"
#include "Texture.h"
#include "GraphicsDevice.h"
using namespace DKFramework;... | 28.562874 | 149 | 0.766247 | tiff2766 |
db88e57d068dee030949f8e9cf0f822c01817960 | 2,185 | cc | C++ | test/physics/grid/ValueGridInserter.test.cc | amandalund/celeritas | c631594b00c040d5eb4418fa2129f88c01e29316 | [
"Apache-2.0",
"MIT"
] | 22 | 2020-03-31T14:18:22.000Z | 2022-01-10T09:43:06.000Z | test/physics/grid/ValueGridInserter.test.cc | amandalund/celeritas | c631594b00c040d5eb4418fa2129f88c01e29316 | [
"Apache-2.0",
"MIT"
] | 261 | 2020-04-29T15:14:29.000Z | 2022-03-31T19:07:14.000Z | test/physics/grid/ValueGridInserter.test.cc | amandalund/celeritas | c631594b00c040d5eb4418fa2129f88c01e29316 | [
"Apache-2.0",
"MIT"
] | 15 | 2020-05-01T19:47:19.000Z | 2021-12-25T06:12:09.000Z | //----------------------------------*-C++-*----------------------------------//
// Copyright 2021 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... | 35.819672 | 79 | 0.500686 | amandalund |
db8e8c23eea9976de9a84655501391dfe5a83522 | 2,790 | cpp | C++ | src/General/TextureAtlas.cpp | darwin-s/nanocraft | dcb8b590fa3310b726529ab5e36b18893f6a3b1f | [
"Apache-2.0"
] | 2 | 2021-08-12T10:05:53.000Z | 2021-08-13T16:25:49.000Z | src/General/TextureAtlas.cpp | darwin-s/nanocraft | dcb8b590fa3310b726529ab5e36b18893f6a3b1f | [
"Apache-2.0"
] | null | null | null | src/General/TextureAtlas.cpp | darwin-s/nanocraft | dcb8b590fa3310b726529ab5e36b18893f6a3b1f | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 Sirbu Dan
//
// 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 to in wr... | 30 | 79 | 0.622222 | darwin-s |
db910444577c7bb86f209e183359f6472a61e361 | 1,546 | cpp | C++ | SoftPWM.cpp | jkairys/SoftPWM | d91e17be56abb649af375d70a42c6a686cfb2a3d | [
"MIT"
] | 1 | 2020-12-05T09:04:26.000Z | 2020-12-05T09:04:26.000Z | SoftPWM.cpp | jkairys/SoftPWM | d91e17be56abb649af375d70a42c6a686cfb2a3d | [
"MIT"
] | 1 | 2019-01-07T11:03:47.000Z | 2019-01-07T11:03:47.000Z | SoftPWM.cpp | jkairys/SoftPWM | d91e17be56abb649af375d70a42c6a686cfb2a3d | [
"MIT"
] | null | null | null | #include "Arduino.h"
#include "SoftPWM.h"
SoftPWM::SoftPWM(unsigned short pin, unsigned long period_us, unsigned short led){
_initialise(pin, period_us);
_led = led;
pinMode(_led, OUTPUT);
}
SoftPWM::SoftPWM(unsigned short pin, unsigned long period_us){
_initialise(pin, period_us);
}
void SoftPWM::setInverte... | 20.891892 | 82 | 0.668176 | jkairys |
db9b52a8907ed1816967b83841102ed565ba3354 | 2,574 | cpp | C++ | modules/core/combinatorial/unit/scalar/is_prime.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/combinatorial/unit/scalar/is_prime.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/combinatorial/unit/scalar/is_prime.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2013 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2013 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 33 | 80 | 0.644522 | psiha |
dba05f35eb11efa3b9f231a23ec97041c4015917 | 167 | cc | C++ | extern/typed-geometry/cmake/checks/cpu_lzcnt.cc | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/typed-geometry/cmake/checks/cpu_lzcnt.cc | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/typed-geometry/cmake/checks/cpu_lzcnt.cc | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | #include <cstdint>
#ifdef _MSC_VER
#include <intrin.h>
#else
#include <x86intrin.h>
#endif
int main()
{
uint64_t val = 42;
uint64_t res = _lzcnt_u64(val);
}
| 11.928571 | 35 | 0.664671 | rovedit |
dba0d97daf840d38b60f4dd0ac846245faafe0be | 18,374 | cpp | C++ | ui/src/vcxypad.cpp | pixeldoc2000/qlcplus | 21b2921360c249f3f8aae707bb35b6db5e619b43 | [
"Apache-2.0"
] | null | null | null | ui/src/vcxypad.cpp | pixeldoc2000/qlcplus | 21b2921360c249f3f8aae707bb35b6db5e619b43 | [
"Apache-2.0"
] | null | null | null | ui/src/vcxypad.cpp | pixeldoc2000/qlcplus | 21b2921360c249f3f8aae707bb35b6db5e619b43 | [
"Apache-2.0"
] | null | null | null | /*
Q Light Controller
vcxypad.cpp
Copyright (c) Heikki Junnila, Stefan Krumm
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.txt
Unl... | 30.170772 | 106 | 0.57848 | pixeldoc2000 |
dba13b1aecda6f36e199d8a7e718ad8d7d3b8d91 | 672 | cpp | C++ | cpp_algo/binary_search.cpp | emrahayanoglu/algo-problems | 4670a69e92dfe6bf87801c5023f4dc6fedb407f8 | [
"MIT"
] | null | null | null | cpp_algo/binary_search.cpp | emrahayanoglu/algo-problems | 4670a69e92dfe6bf87801c5023f4dc6fedb407f8 | [
"MIT"
] | null | null | null | cpp_algo/binary_search.cpp | emrahayanoglu/algo-problems | 4670a69e92dfe6bf87801c5023f4dc6fedb407f8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
int binarySearch(std::vector<int>& nums, int el){
int left = 0;
int right = nums.size() - 1;
while(left <= right){
int mid = (left + right) / 2;
if(nums[mid] == el){
return mid;
}
else if(nums[mid] < el)... | 19.2 | 52 | 0.479167 | emrahayanoglu |
dba68b4387c1b132afd0798f97ad4a4161ce2b0d | 3,741 | hpp | C++ | core/shared/Configuration.hpp | hexrain/utymap | 39cb7684bf014ecc770ed1c46d953f13e103f3f5 | [
"Apache-2.0"
] | 946 | 2016-03-13T23:00:37.000Z | 2022-03-29T08:35:30.000Z | core/shared/Configuration.hpp | hexrain/utymap | 39cb7684bf014ecc770ed1c46d953f13e103f3f5 | [
"Apache-2.0"
] | 136 | 2016-03-30T11:54:45.000Z | 2020-10-31T13:05:27.000Z | core/shared/Configuration.hpp | hexrain/utymap | 39cb7684bf014ecc770ed1c46d953f13e103f3f5 | [
"Apache-2.0"
] | 168 | 2016-05-02T15:04:53.000Z | 2022-03-28T17:23:26.000Z | #ifndef CONFIGURATION_HPP_DEFINED
#define CONFIGURATION_HPP_DEFINED
#include "Common.hpp"
#include "builders/CacheBuilder.hpp"
#include "builders/MeshCache.hpp"
#include "builders/misc/LampBuilder.hpp"
#include "builders/misc/BarrierBuilder.hpp"
#include "builders/poi/TreeBuilder.hpp"
#include "builders/buildings/Bui... | 37.039604 | 115 | 0.738038 | hexrain |
dba892a5405fc2e3d69f96998700941ce1117a0c | 465 | hpp | C++ | src/App/FactoryIndex/Module.hpp | psiberx/cp2077-archive-xl | 5e476978d3128980099c2a2aea5258b38b5f3558 | [
"MIT"
] | 7 | 2021-12-03T08:34:26.000Z | 2022-01-29T20:22:59.000Z | src/App/FactoryIndex/Module.hpp | psiberx/cp2077-archivexl | 5e476978d3128980099c2a2aea5258b38b5f3558 | [
"MIT"
] | null | null | null | src/App/FactoryIndex/Module.hpp | psiberx/cp2077-archivexl | 5e476978d3128980099c2a2aea5258b38b5f3558 | [
"MIT"
] | null | null | null | #pragma once
#include "Raws.hpp"
#include "Unit.hpp"
#include "App/Common/ModuleBase.hpp"
namespace App
{
class FactoryIndexModule : public ConfigurableUnitModule<FactoryIndexUnit>
{
public:
bool Attach() override;
bool Detach() override;
std::string_view GetName() override;
private:
void OnLoadFacto... | 21.136364 | 94 | 0.756989 | psiberx |
dbac5659aa490b5192413cccd48cf39be9b08f3f | 528 | hpp | C++ | GardenVexor/src/ResourceManager.hpp | kalsipp/vsxpanse | 7887d234312283ce1ace03bed610642b0c6f96b1 | [
"MIT"
] | null | null | null | GardenVexor/src/ResourceManager.hpp | kalsipp/vsxpanse | 7887d234312283ce1ace03bed610642b0c6f96b1 | [
"MIT"
] | null | null | null | GardenVexor/src/ResourceManager.hpp | kalsipp/vsxpanse | 7887d234312283ce1ace03bed610642b0c6f96b1 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <map>
#include <algorithm>
class ResourceCmp;
enum RESOURCE_TYPE
{
GENERIC
};
class ResourceManager
{
public:
static void initialize();
static void teardown();
static void register_resource(ResourceCmp* rescmp);
static void unregister_resource(ResourceCmp * rescmp);
static... | 24 | 77 | 0.787879 | kalsipp |
dbaccfa863c7705597e8bbf09a0a64fe92396f20 | 17,607 | cpp | C++ | nntrainer/layers/lstm.cpp | priyankmohanverma/nntrainer | 0c82b2f21d2587dce0a18afa35fbc8d59c23adcd | [
"Apache-2.0"
] | null | null | null | nntrainer/layers/lstm.cpp | priyankmohanverma/nntrainer | 0c82b2f21d2587dce0a18afa35fbc8d59c23adcd | [
"Apache-2.0"
] | null | null | null | nntrainer/layers/lstm.cpp | priyankmohanverma/nntrainer | 0c82b2f21d2587dce0a18afa35fbc8d59c23adcd | [
"Apache-2.0"
] | null | null | null | // SPDX-License-Identifier: Apache-2.0
/**
* Copyright (C) 2020 Jijoong Moon <jijoong.moon@samsung.com>
*
* @file lstm.cpp
* @date 17 March 2021
* @brief This is Long Short-Term Memory Layer Class of Neural Network
* @see https://github.com/nnstreamer/nntrainer
* @author Jijoong Moon <jijoong.moon@samsun... | 35.355422 | 80 | 0.6636 | priyankmohanverma |
dbb09a474ac0d18c86b3201b5021efd56c1647f6 | 2,531 | cpp | C++ | source/src/LZespolona.cpp | juliyla/Dron | 3e2872ae928e5abb6c6dd6b84b0c9a9076e83e0a | [
"MIT"
] | null | null | null | source/src/LZespolona.cpp | juliyla/Dron | 3e2872ae928e5abb6c6dd6b84b0c9a9076e83e0a | [
"MIT"
] | null | null | null | source/src/LZespolona.cpp | juliyla/Dron | 3e2872ae928e5abb6c6dd6b84b0c9a9076e83e0a | [
"MIT"
] | null | null | null | #include "../inc/LZespolona.hh"
#include <cmath>
#include "../inc/rozmiar.h"
using namespace std;
LZespolona &LZespolona::operator=(double l)
{
this->re = l;
this->im = 0;
return *this;
}
LZespolona operator + (LZespolona Skl1, LZespolona Skl2)
{
LZespolona Wynik;
Wynik.re = Skl1.re + Skl2.re;
Wyni... | 18.610294 | 66 | 0.628605 | juliyla |
dbb0ce42a34f96cd18c493f21aa5f788ccc77be7 | 7,752 | cpp | C++ | thirdparty/vesta/Framebuffer.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 6 | 2018-09-05T12:41:59.000Z | 2021-07-01T05:34:23.000Z | thirdparty/vesta/Framebuffer.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-02-07T19:09:21.000Z | 2015-08-14T03:15:42.000Z | thirdparty/vesta/Framebuffer.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-03-25T15:50:31.000Z | 2017-12-06T12:16:47.000Z | /*
* $Revision: 223 $ $Date: 2010-03-30 05:44:44 -0700 (Tue, 30 Mar 2010) $
*
* Copyright by Astos Solutions GmbH, Germany
*
* this file is published under the Astos Solutions Free Public License
* For details on copyright and terms of use see
* http://www.astos.de/Astos_Solutions_Free_Public_License.html
*/
... | 25.250814 | 107 | 0.626677 | hoehnp |
dbb4351ebe597555ec3bc1f6c264cca0854b61c4 | 585 | cpp | C++ | source/func.cpp | HIDE810/convarm | e324911a0c2b2eaf105b40782fdd538982db1c0f | [
"MIT"
] | 1 | 2021-12-20T12:26:24.000Z | 2021-12-20T12:26:24.000Z | source/func.cpp | HIDE810/convarm | e324911a0c2b2eaf105b40782fdd538982db1c0f | [
"MIT"
] | null | null | null | source/func.cpp | HIDE810/convarm | e324911a0c2b2eaf105b40782fdd538982db1c0f | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include "func.hpp"
std::string hexToString(int i, bool sign) {
std::stringstream ss;
ss << "#" << (sign ? "" : "-") << "0x" << std::hex << i;
return ss.str();
}
std::string getRegisterName(int pos) {
int reg = pos & 0xf;
std::string reg_name = "r" + std::to... | 24.375 | 60 | 0.548718 | HIDE810 |
dbc554b391698cad933269f67d3d19e05089da47 | 787 | cpp | C++ | src/imports/items/plugin.cpp | loicmolinari/quicken | 424e66299548449832c001da8e58d934552b5757 | [
"MIT"
] | null | null | null | src/imports/items/plugin.cpp | loicmolinari/quicken | 424e66299548449832c001da8e58d934552b5757 | [
"MIT"
] | null | null | null | src/imports/items/plugin.cpp | loicmolinari/quicken | 424e66299548449832c001da8e58d934552b5757 | [
"MIT"
] | null | null | null | // Copyright © 2018 Loïc Molinari <loicm@loicm.fr>
//
// This file is part of Quicken, licensed under the MIT license. See the license
// file at project root for full information.
#include <QtQml/qqmlextensionplugin.h>
#include <Quicken/private/quickenboilerplate_p.h>
class QuickenItemsPlugin : public QQmlExtension... | 27.137931 | 83 | 0.736976 | loicmolinari |
dbc626042476d3508bfb2c622cb9d85b4e7f37d0 | 477 | cpp | C++ | N1209-Remove-All-Adjacent-Duplicates-in-String-II/solution1.cpp | loypt/leetcode | 4463aa17b0fb01ec6f865ea9766ccce1ab7a690a | [
"CC0-1.0"
] | null | null | null | N1209-Remove-All-Adjacent-Duplicates-in-String-II/solution1.cpp | loypt/leetcode | 4463aa17b0fb01ec6f865ea9766ccce1ab7a690a | [
"CC0-1.0"
] | null | null | null | N1209-Remove-All-Adjacent-Duplicates-in-String-II/solution1.cpp | loypt/leetcode | 4463aa17b0fb01ec6f865ea9766ccce1ab7a690a | [
"CC0-1.0"
] | 2 | 2022-01-25T05:31:31.000Z | 2022-02-26T07:22:23.000Z | class Solution {
public:
string removeDuplicates(string s, int k) {
vector<int> count(s.size());
for (int i = 0; i < s.size(); ++i) {
if (i == 0 || s[i] != s[i - 1]) {
count[i] = 1;
} else {
count[i] = count[i - 1] + 1;
if (coun... | 25.105263 | 46 | 0.312369 | loypt |
3a7719b9bdbb141bb67d1d89c710eb78f9c36719 | 5,064 | cpp | C++ | src/BlockAllocator.cpp | Smokesr/mfgAllocators | d6f1c7786dbe5112536494146446d7854995983d | [
"Zlib"
] | null | null | null | src/BlockAllocator.cpp | Smokesr/mfgAllocators | d6f1c7786dbe5112536494146446d7854995983d | [
"Zlib"
] | null | null | null | src/BlockAllocator.cpp | Smokesr/mfgAllocators | d6f1c7786dbe5112536494146446d7854995983d | [
"Zlib"
] | null | null | null | /*
Copyright (c) 2015 Máté Vágó
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 any purpose,
including commercial applications, and to a... | 30.878049 | 182 | 0.564573 | Smokesr |
3a7c60ad1b430e7aa5a5a6c17a5290a071383707 | 1,960 | cpp | C++ | past2014-2015/0406/0406_1.cpp | kazunetakahashi/icpc-challenge | 6c3aa2bfd03b88d3ffa439e5c364e3086e31d640 | [
"MIT"
] | null | null | null | past2014-2015/0406/0406_1.cpp | kazunetakahashi/icpc-challenge | 6c3aa2bfd03b88d3ffa439e5c364e3086e31d640 | [
"MIT"
] | null | null | null | past2014-2015/0406/0406_1.cpp | kazunetakahashi/icpc-challenge | 6c3aa2bfd03b88d3ffa439e5c364e3086e31d640 | [
"MIT"
] | null | null | null | // http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=1328
// Lagrange補間多項式を使う。
// バグ取り時間内に終わりませんでした。持ち帰って検討します。
#include <iostream>
#include <vector>
#include <cassert>
#include <cmath>
#include <algorithm>
using namespace std;
const double eps = 0.00001;
int d;
double v[8];
int choose[6]; // 通る点のx座標をその都度ここに... | 18.148148 | 64 | 0.464286 | kazunetakahashi |
3a7c712329f6f411223e77675d21a45e241c9745 | 3,323 | cpp | C++ | main.cpp | Surrog/ArcheryCounter | b6629a94288656acd2d342d20f7137b2402f24f9 | [
"MIT"
] | 3 | 2019-04-21T20:34:07.000Z | 2022-03-16T10:10:42.000Z | main.cpp | Surrog/ArcheryCounter | b6629a94288656acd2d342d20f7137b2402f24f9 | [
"MIT"
] | 4 | 2019-03-22T10:05:11.000Z | 2022-03-28T09:26:38.000Z | main.cpp | Surrog/ArcheryCounter | b6629a94288656acd2d342d20f7137b2402f24f9 | [
"MIT"
] | null | null | null | #include "NN_approach.hpp"
#include "colour_filters.hpp"
#include "ellispes_approach.hpp"
#include "sources.hpp"
#include <algorithm>
#include <opencv2/opencv.hpp>
#include <iostream>
constexpr const char* model = IMAGE_TEST_DIR R".(\model\cleaned.jpg).";
constexpr const char* test = IMAGE_TEST_DIR R".(\20190325_204... | 34.978947 | 122 | 0.648811 | Surrog |
3a7d92f748012ca93f3bc42a2ec542dfea754926 | 675 | cpp | C++ | src/Input/KeyStrokeEvent.cpp | TheReincarnator/glaziery | f688943163b73cea7034e929539fff8aa39d63e5 | [
"MIT"
] | null | null | null | src/Input/KeyStrokeEvent.cpp | TheReincarnator/glaziery | f688943163b73cea7034e929539fff8aa39d63e5 | [
"MIT"
] | null | null | null | src/Input/KeyStrokeEvent.cpp | TheReincarnator/glaziery | f688943163b73cea7034e929539fff8aa39d63e5 | [
"MIT"
] | null | null | null | /*
* This file is part of the Glaziery.
* Copyright Thomas Jacob.
*
* READ README.TXT BEFORE USE!!
*/
// Main header file
#include <Glaziery/src/Headers.h>
KeyStrokeEvent::KeyStrokeEvent(bool option1, bool option2, int scanCode, bool held, bool pressed,
bool released, int repeats)
: KeyEvent(option1, option2... | 21.09375 | 97 | 0.739259 | TheReincarnator |
3a89df3ecc7f7597e1d2c60e3f550eb6ce79492b | 20,025 | cpp | C++ | meeting-qt/meeting-ipc/nem_hosting_module/global/global.cpp | GrowthEase/- | 5cc7cab95fc309049de8023ff618219dff22d773 | [
"MIT"
] | 48 | 2022-03-02T07:15:08.000Z | 2022-03-31T08:37:33.000Z | meeting-qt/meeting-ipc/nem_hosting_module/global/global.cpp | chandarlee/Meeting | 9350fdea97eb2cdda28b8bffd9c4199de15460d9 | [
"MIT"
] | 1 | 2022-02-16T01:54:05.000Z | 2022-02-16T01:54:05.000Z | meeting-qt/meeting-ipc/nem_hosting_module/global/global.cpp | chandarlee/Meeting | 9350fdea97eb2cdda28b8bffd9c4199de15460d9 | [
"MIT"
] | 9 | 2022-03-01T13:41:37.000Z | 2022-03-10T06:05:23.000Z | /**
* @copyright Copyright (c) 2021 NetEase, Inc. All rights reserved.
* Use of this source code is governed by a MIT license that can be found in the LICENSE file.
*/
#include "nem_hosting_module/global/global.h"
#include "nem_hosting_module/service/account_service.h"
#include "nem_hosting_module/servic... | 40.70122 | 148 | 0.633258 | GrowthEase |
3a8b2936a5c680d8b7d20fae19ece02a36b9cbe0 | 999 | cpp | C++ | 1-Sorting/Problems/TMT_Docutment.cpp | NavinShrinivas/Algorithm-Grind | d2d05341662de9e390a828bcedae9d1c9f52b9ad | [
"Unlicense"
] | 1 | 2021-11-16T15:18:37.000Z | 2021-11-16T15:18:37.000Z | 1-Sorting/Problems/TMT_Docutment.cpp | NavinShrinivas/Algorithm-Grind | d2d05341662de9e390a828bcedae9d1c9f52b9ad | [
"Unlicense"
] | null | null | null | 1-Sorting/Problems/TMT_Docutment.cpp | NavinShrinivas/Algorithm-Grind | d2d05341662de9e390a828bcedae9d1c9f52b9ad | [
"Unlicense"
] | 5 | 2021-09-28T07:16:27.000Z | 2021-11-17T00:54:39.000Z | #include<bits/stdc++.h>
#include<math.h>
#define long long int ll
using namespace std;
void swap(int a[],int i,int j)
{
int temp=a[i];
a[i]=a[j];
a[j]=temp;
}
int main()
{
int t;
cin>>t;
while(t)
{
int n,m_count,t_count;
cin>>n;
char a[n];
for(int i=0;i<n;i+... | 18.5 | 44 | 0.329329 | NavinShrinivas |
3a8cdd19908ea71987d57c2400ac4a0c983a15a5 | 1,489 | cpp | C++ | XivAlexander/App_Misc_Signatures.cpp | ddc/XivAlexander | 8371d70e42c64cd082d90fc1ca102b687c9d3899 | [
"Apache-2.0"
] | 345 | 2021-02-08T18:11:24.000Z | 2022-03-25T04:01:23.000Z | XivAlexander/App_Misc_Signatures.cpp | ddc/XivAlexander | 8371d70e42c64cd082d90fc1ca102b687c9d3899 | [
"Apache-2.0"
] | 376 | 2021-02-12T07:23:57.000Z | 2022-03-31T00:05:35.000Z | XivAlexander/App_Misc_Signatures.cpp | ddc/XivAlexander | 8371d70e42c64cd082d90fc1ca102b687c9d3899 | [
"Apache-2.0"
] | 65 | 2021-02-12T05:47:14.000Z | 2022-03-25T03:08:23.000Z | #include "pch.h"
#include "App_Misc_Signatures.h"
bool App::Misc::Signatures::SectionFilterTextOnly(const IMAGE_SECTION_HEADER& pSectionHeader) {
return 0 == strncmp(reinterpret_cast<const char*>(pSectionHeader.Name), ".text", 6);
}
std::vector<void*> App::Misc::Signatures::LookupForData(SectionFilter lookupInSectio... | 43.794118 | 201 | 0.725319 | ddc |
3a906f958e57b71992e05d9f8087111d8bff35f2 | 2,372 | cpp | C++ | aws-cpp-sdk-sagemaker/source/model/ListImageVersionsRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-sagemaker/source/model/ListImageVersionsRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-sagemaker/source/model/ListImageVersionsRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2022-03-23T15:17:18.000Z | 2022-03-23T15:17:18.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sagemaker/model/ListImageVersionsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::SageMaker::Model;
using namespace Aws::Utils::Json;
... | 24.453608 | 110 | 0.771079 | perfectrecall |
3a947f848c2e9ba765f95e9f4085520993861d3e | 3,197 | cpp | C++ | src/beast/modules/beast_core/misc/Uuid.cpp | latcoin/rippled | ca0740de23ec4366d53b0d3770d9a05fc83072db | [
"BSL-1.0"
] | null | null | null | src/beast/modules/beast_core/misc/Uuid.cpp | latcoin/rippled | ca0740de23ec4366d53b0d3770d9a05fc83072db | [
"BSL-1.0"
] | null | null | null | src/beast/modules/beast_core/misc/Uuid.cpp | latcoin/rippled | ca0740de23ec4366d53b0d3770d9a05fc83072db | [
"BSL-1.0"
] | null | null | null | //------------------------------------------------------------------------------
/*
This file is part of Beast: https://github.com/vinniefalco/Beast
Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com>
Portions of this file are from JUCE.
Copyright (c) 2013 - Raw Material Software Ltd.
Please visi... | 29.063636 | 117 | 0.607444 | latcoin |
3a951296ea8912cb9452517728d74e6ad40ca0af | 879 | cpp | C++ | userspace/apps/panel/widgets/SearchBar.cpp | FMMazur/skift | 8a837fdbdcb6b64215ce1abb3fb6cc5a9881eab5 | [
"MIT"
] | 1 | 2021-05-11T02:43:49.000Z | 2021-05-11T02:43:49.000Z | userspace/apps/panel/widgets/SearchBar.cpp | FMMazur/skift | 8a837fdbdcb6b64215ce1abb3fb6cc5a9881eab5 | [
"MIT"
] | null | null | null | userspace/apps/panel/widgets/SearchBar.cpp | FMMazur/skift | 8a837fdbdcb6b64215ce1abb3fb6cc5a9881eab5 | [
"MIT"
] | null | null | null | #include <libwidget/Elements.h>
#include <libwidget/Views.h>
#include "libwidget/elements/PanelElement.h"
#include "libwidget/layouts/Flags.h"
#include "libwidget/layouts/FlowLayout.h"
#include "libwidget/model/TextModel.h"
#include "libwidget/views/TextField.h"
#include "panel/widgets/SearchBar.h"
namespace panel
{
... | 22.538462 | 67 | 0.609784 | FMMazur |
3a9770623e5337fe9eb515e0bb22752f4c1454ea | 1,983 | cpp | C++ | tests/test_sc_process_wrapper2.cpp | verificationcontractor/sc_enhance | d4aa800a0ec20e420c1479fb6ba81c366eaf884f | [
"MIT"
] | 3 | 2021-01-10T13:35:11.000Z | 2022-02-08T06:42:55.000Z | tests/test_sc_process_wrapper2.cpp | verificationcontractor/sc_enhance | d4aa800a0ec20e420c1479fb6ba81c366eaf884f | [
"MIT"
] | 1 | 2022-02-07T19:19:23.000Z | 2022-02-12T10:40:23.000Z | tests/test_sc_process_wrapper2.cpp | verificationcontractor/sc_enhance | d4aa800a0ec20e420c1479fb6ba81c366eaf884f | [
"MIT"
] | null | null | null | #include <systemc>
#include "sc_enhance.hpp"
using namespace sc_core;
using namespace sc_dt;
SC_MODULE(demo) {
SC_PROCESS_UTILS(demo); // some utilities needed to make our macros work
sc_in<bool> clk {"clk"};
sc_in<bool> reset {"reset"};
int count = 0;
bool run = false;
// Declare method with... | 23.607143 | 76 | 0.571357 | verificationcontractor |
3a9a2b10cc6c58a7a2adb4095d0a5d93477dbdf8 | 16,202 | cpp | C++ | Views/albaViewRX.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | Views/albaViewRX.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Views/albaViewRX.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaViewRX
Authors: Paolo Quadrani , Stefano Perticoni
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; w... | 30.059369 | 115 | 0.585668 | IOR-BIC |
3aa78a385c4a1183f8c7e92477d4820ea5abb6e8 | 618 | cpp | C++ | lib/ArduinoJson_ID64/extras/tests/JsonVariant/add.cpp | wwmoo7/IRbaby-firmware | 7de0304c2c708a7094324bce1560ac39fcdb8e84 | [
"MIT"
] | 38 | 2020-04-09T03:17:16.000Z | 2022-03-21T06:33:05.000Z | lib/ArduinoJson_ID64/extras/tests/JsonVariant/add.cpp | wwmoo7/IRbaby-firmware | 7de0304c2c708a7094324bce1560ac39fcdb8e84 | [
"MIT"
] | 6 | 2020-05-19T10:56:31.000Z | 2022-01-24T07:21:40.000Z | lib/ArduinoJson_ID64/extras/tests/JsonVariant/add.cpp | wwmoo7/IRbaby-firmware | 7de0304c2c708a7094324bce1560ac39fcdb8e84 | [
"MIT"
] | 15 | 2020-06-26T09:31:32.000Z | 2021-09-01T15:22:00.000Z | // ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2020
// MIT License
#include <ArduinoJson.h>
#include <stdint.h>
#include <catch.hpp>
TEST_CASE("JsonVariant::add()") {
DynamicJsonDocument doc(4096);
JsonVariant var = doc.to<JsonVariant>();
SECTION("integer") {
var.add(42);
... | 19.935484 | 53 | 0.571197 | wwmoo7 |
3aaf050b5a4b8f37d33e606356b22105e81b5b87 | 8,498 | cpp | C++ | examples/esp32/main/main.cpp | Draegerwerk/SDCesp | ea3da666b18a3a3b273add398fd49cc78d6fa94c | [
"BSD-3-Clause"
] | 3 | 2020-04-10T05:41:42.000Z | 2022-03-21T11:51:53.000Z | examples/esp32/main/main.cpp | Draegerwerk/SDCesp | ea3da666b18a3a3b273add398fd49cc78d6fa94c | [
"BSD-3-Clause"
] | 3 | 2020-03-31T08:57:56.000Z | 2021-03-17T09:06:36.000Z | examples/esp32/main/main.cpp | Draegerwerk/SDCesp | ea3da666b18a3a3b273add398fd49cc78d6fa94c | [
"BSD-3-Clause"
] | 3 | 2020-03-30T07:40:36.000Z | 2021-05-21T10:11:59.000Z | #include "SimpleDevice.hpp"
#include "networking/NetworkConfig.hpp"
#include <chrono>
#include <pthread.h>
#include <sstream>
#include <thread>
#include "esp_eth.h"
#include "esp_system.h"
#include "esp_tls.h"
#include "esp_wifi.h"
#include "nvs_flash.h"
#ifndef CONFIG_WIFI_SSID
#define CONFIG_WIFI_SSID ... | 35.705882 | 100 | 0.590139 | Draegerwerk |
3ab061dcfe34967f657320a5fe5fa92a5b8c244d | 9,446 | cpp | C++ | src/main.cpp | vrees/LoraD1Mini | 89332c26e3ca1e7b73b01de1704f854838148002 | [
"MIT"
] | null | null | null | src/main.cpp | vrees/LoraD1Mini | 89332c26e3ca1e7b73b01de1704f854838148002 | [
"MIT"
] | null | null | null | src/main.cpp | vrees/LoraD1Mini | 89332c26e3ca1e7b73b01de1704f854838148002 | [
"MIT"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever they want with them without any restric... | 38.398374 | 139 | 0.651704 | vrees |
3ab3992d47c01b94ad12826577943a9ef6e53fe1 | 834 | cpp | C++ | Quarantine/DungeonGame/dungeon.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | Quarantine/DungeonGame/dungeon.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | 3 | 2020-05-08T18:02:51.000Z | 2020-05-09T08:37:35.000Z | Quarantine/DungeonGame/dungeon.cpp | UltraProton/PlacementPrep | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int dungeon(vector<vector<int>> &grid);
int main()
{
int t = 0;
int m = 0;
int n = 0;
cin >> m >> n;
vector<vector<int>> grid(m, vector<int>(n, 0));
for (int i = 0; i < m; i++)
{
for (int j = 0; j < n; j++)
{
cin >> ... | 19.857143 | 64 | 0.407674 | UltraProton |
3ab4554e413602b460508953f339d6dd29601dda | 588 | cpp | C++ | demos/pong/src/enemy.cpp | leftidev/leng | 9df738a9f5d8f90d2a01234d4d4b13311017d93e | [
"MIT"
] | null | null | null | demos/pong/src/enemy.cpp | leftidev/leng | 9df738a9f5d8f90d2a01234d4d4b13311017d93e | [
"MIT"
] | null | null | null | demos/pong/src/enemy.cpp | leftidev/leng | 9df738a9f5d8f90d2a01234d4d4b13311017d93e | [
"MIT"
] | null | null | null | #include "enemy.h"
namespace leng {
Enemy::Enemy(float x, float y, float width, float height, const char* path) : Entity(x, y, width, height, path) {
vel.y = 0.5f;
}
Enemy::~Enemy() { }
void Enemy::update(leng::Entity& ball, float delta_time) {
Entity::update(delta_time);
// Chase ball logi... | 23.52 | 113 | 0.576531 | leftidev |
3ab6a0672992c7b24477a3c9a0fb5000a6cf64e6 | 4,248 | cpp | C++ | opencl/test/unit_test/os_interface/linux/ioctl_helper_tests_dg1.cpp | WeixiZhu94/intel-opencl-runtime | 9ff1307b4b665a52d59c3d37c9c29e6952d32c93 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/os_interface/linux/ioctl_helper_tests_dg1.cpp | WeixiZhu94/intel-opencl-runtime | 9ff1307b4b665a52d59c3d37c9c29e6952d32c93 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/os_interface/linux/ioctl_helper_tests_dg1.cpp | WeixiZhu94/intel-opencl-runtime | 9ff1307b4b665a52d59c3d37c9c29e6952d32c93 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/execution_environment/execution_environment.h"
#include "shared/source/os_interface/linux/ioctl_helper.h"
#include "shared/source/os_interface/linux/memory_info.h"
#include "shared/test/common/helpers/debu... | 43.793814 | 268 | 0.772834 | WeixiZhu94 |
3abc0d2d904a7688525d01fc9ce879d5176fea05 | 2,456 | hpp | C++ | src/Simulation/BFER/Standard/Simulation_BFER_std.hpp | FredrikBlomgren/aff3ct | fa616bd923b2dcf03a4cf119cceca51cf810d483 | [
"MIT"
] | 315 | 2016-06-21T13:32:14.000Z | 2022-03-28T09:33:59.000Z | src/Simulation/BFER/Standard/Simulation_BFER_std.hpp | a-panella/aff3ct | 61509eb756ae3725b8a67c2d26a5af5ba95186fb | [
"MIT"
] | 153 | 2017-01-17T03:51:06.000Z | 2022-03-24T15:39:26.000Z | src/Simulation/BFER/Standard/Simulation_BFER_std.hpp | a-panella/aff3ct | 61509eb756ae3725b8a67c2d26a5af5ba95186fb | [
"MIT"
] | 119 | 2017-01-04T14:31:58.000Z | 2022-03-21T08:34:16.000Z | #ifndef SIMULATION_BFER_STD_HPP_
#define SIMULATION_BFER_STD_HPP_
#include <memory>
#include "Module/Source/Source.hpp"
#include "Module/CRC/CRC.hpp"
#include "Module/Modem/Modem.hpp"
#include "Module/Channel/Channel.hpp"
#include "Module/Quantizer/Quantizer.hpp"
#include "Module/Coset/Coset.hpp"
#include "Tools/Code... | 38.984127 | 107 | 0.631107 | FredrikBlomgren |
3abf2ceba1d9a092442db0ff353489013383598d | 1,028 | cpp | C++ | src/gpu/batches/GrDrawOp.cpp | vvuk/skia-1 | 59ed482af72beec6812b28d833d8bdf80ba32df7 | [
"BSD-3-Clause"
] | 1 | 2021-01-07T18:51:25.000Z | 2021-01-07T18:51:25.000Z | src/gpu/batches/GrDrawOp.cpp | emilio/skia-1 | 59ed482af72beec6812b28d833d8bdf80ba32df7 | [
"BSD-3-Clause"
] | null | null | null | src/gpu/batches/GrDrawOp.cpp | emilio/skia-1 | 59ed482af72beec6812b28d833d8bdf80ba32df7 | [
"BSD-3-Clause"
] | 1 | 2016-12-09T03:19:09.000Z | 2016-12-09T03:19:09.000Z | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrDrawOp.h"
GrDrawOp::GrDrawOp(uint32_t classID) : INHERITED(classID), fPipelineInstalled(false) { }
GrDrawOp::~GrDrawOp() {
if (fPipelineInstalled) {
... | 28.555556 | 88 | 0.720817 | vvuk |
3ac11bedfa016402ec9ad2b080cc9b6a3ae84554 | 773 | cpp | C++ | 12-smart-pointers/2-move-rvalue-reference/move_demo_operators.cpp | nofar88/cpp-5782 | 473c68627fc0908fdef8956caf1e1d2267c9417b | [
"MIT"
] | 14 | 2021-01-30T16:36:18.000Z | 2022-03-30T17:24:44.000Z | 12-smart-pointers/2-move-rvalue-reference/move_demo_operators.cpp | dimastar2310/cpp-5781 | 615ba07e0841522df74384f380172557f5e305a7 | [
"MIT"
] | 1 | 2022-03-02T20:55:14.000Z | 2022-03-02T20:55:14.000Z | 12-smart-pointers/2-move-rvalue-reference/move_demo_operators.cpp | dimastar2310/cpp-5781 | 615ba07e0841522df74384f380172557f5e305a7 | [
"MIT"
] | 16 | 2021-03-02T11:13:41.000Z | 2021-07-09T14:18:15.000Z | /**
* Demonstrates the difference between lvalue and rvalue-reference,
* and between copy-semantics and move-semantics.
*
* Author: Erel Segal-Halevi
* Since: 2020-06
*
* For more details see https://stackoverflow.com/a/3109981/827927 by Fred Overflow
*/
#include <iostream>
using namespace std;
class Test ... | 16.804348 | 83 | 0.630013 | nofar88 |
3ac12ef70a05b764874b89e23e86c91fe2b66c86 | 1,805 | cc | C++ | toy_lang/zoo/add_function.cc | snyderek/floating_temple | 267ee580620dc7f5a7fff7eb190dc03270267f4c | [
"Apache-2.0"
] | 2 | 2015-03-13T00:16:27.000Z | 2015-03-29T05:10:21.000Z | toy_lang/zoo/add_function.cc | snyderek/floating_temple | 267ee580620dc7f5a7fff7eb190dc03270267f4c | [
"Apache-2.0"
] | null | null | null | toy_lang/zoo/add_function.cc | snyderek/floating_temple | 267ee580620dc7f5a7fff7eb190dc03270267f4c | [
"Apache-2.0"
] | null | null | null | // Floating Temple
// Copyright 2015 Derek S. Snyder
//
// 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 applicab... | 25.422535 | 76 | 0.711911 | snyderek |
3ac27c94ac8594d15e5efc1837214cf45cc60ad4 | 489 | hpp | C++ | include/CppML/Algorithm/UniqueCompare.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | 48 | 2019-05-14T10:07:08.000Z | 2021-04-08T08:26:20.000Z | include/CppML/Algorithm/UniqueCompare.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | null | null | null | include/CppML/Algorithm/UniqueCompare.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | 4 | 2019-11-18T15:35:32.000Z | 2021-12-02T05:23:04.000Z | /**
* Copyright Žiga Sajovic, XLAB 2019
* Distributed under the MIT License
*
* https://github.com/ZigaSajovic/CppML
**/
#ifndef CPPML_UNIQUE_COMPARE_HPP
#define CPPML_UNIQUE_COMPARE_HPP
#include "./Unique.hpp"
namespace ml {
template <typename Comparator, typename Pipe = ml::ToList>
struct UniqueCompare {
temp... | 24.45 | 74 | 0.695297 | changjurhee |
3ac4338ba75a3c44ef3af8745ffdfc3fb7747be6 | 11,080 | cpp | C++ | src/cdisasm/disasm.cpp | thomas-pendragon/dablang | f8e1e0835138b6dc6a675da231e176ca20b1347a | [
"MIT"
] | 2 | 2017-06-02T02:55:36.000Z | 2017-06-02T22:15:46.000Z | src/cdisasm/disasm.cpp | thomas-pendragon/dablang | f8e1e0835138b6dc6a675da231e176ca20b1347a | [
"MIT"
] | 1 | 2020-06-19T15:58:33.000Z | 2020-06-19T15:58:33.000Z | src/cdisasm/disasm.cpp | thomas-pendragon/dablang | f8e1e0835138b6dc6a675da231e176ca20b1347a | [
"MIT"
] | 1 | 2017-06-02T22:17:52.000Z | 2017-06-02T22:17:52.000Z | #include "../cshared/shared.h"
#include "../cshared/disasm.h"
#include "../cshared/stream.h"
#ifdef _WIN32
#include <io.h>
#include <fcntl.h>
#define SET_BINARY_MODE(handle) _setmode(handle, O_BINARY)
#else
#define SET_BINARY_MODE(handle) ((void)0)
#endif
FILE *output = stdout;
struct DisasmContext
{
std::vector... | 27.630923 | 100 | 0.472744 | thomas-pendragon |
3ac44ddfe4906e1bdc402367c70a4ab4102220ff | 25,294 | cpp | C++ | src/node/network/network.cpp | mar348/village | fecc81b19018b1e9bf48c352696325869a2847a2 | [
"BSD-2-Clause"
] | null | null | null | src/node/network/network.cpp | mar348/village | fecc81b19018b1e9bf48c352696325869a2847a2 | [
"BSD-2-Clause"
] | null | null | null | src/node/network/network.cpp | mar348/village | fecc81b19018b1e9bf48c352696325869a2847a2 | [
"BSD-2-Clause"
] | null | null | null | //
// Created by daoful on 18-7-26.
//
#include <src/node/network/network.h>
germ::udp_network::udp_network (germ::node & node_a, uint16_t port) :
socket (node_a.service, germ::endpoint (boost::asio::ip::address_v6::any (), port)),
resolver (node_a.service),
node (node_a),
on (true)
{... | 41.465574 | 393 | 0.576065 | mar348 |
3ac4801b15fa7100e00f906e467dd4c92b2511c6 | 5,659 | cpp | C++ | libcaf_core/test/blocking_actor.cpp | v2nero/actor-framework | c2f811809143d32c598471a20363238b0882a761 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2021-03-06T19:51:07.000Z | 2021-03-06T19:51:07.000Z | libcaf_core/test/blocking_actor.cpp | Boubou818/actor-framework | da90ef78b26da5d225f039072e616da415c48494 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | libcaf_core/test/blocking_actor.cpp | Boubou818/actor-framework | da90ef78b26da5d225f039072e616da415c48494 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2021-02-19T11:25:15.000Z | 2021-02-19T11:25:15.000Z | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | 29.784211 | 80 | 0.528008 | v2nero |
3ac574d557d6a69e61d7377805397069ea13a228 | 361 | cpp | C++ | AtCoder/abc094/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/abc094/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/abc094/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int N, M, X; cin >> N >> M >> X;
int cnt_z = 0, cnt_n = 0;
for (int i = 0; i < M; ++i) {
int a; cin >> a;
if (0 <= a && a <= X) cnt_z++;
if (X <= a && a <= N) cnt_n++;
}
... | 22.5625 | 38 | 0.468144 | H-Tatsuhiro |
3ac7d7c42ba3b055ad968fc65c491a83d8de8352 | 1,474 | cpp | C++ | tests/uitsl/debug/compare_files.cpp | perryk12/conduit | 3ea055312598353afd465536c8e04cdec1111c8c | [
"MIT"
] | null | null | null | tests/uitsl/debug/compare_files.cpp | perryk12/conduit | 3ea055312598353afd465536c8e04cdec1111c8c | [
"MIT"
] | 1 | 2020-10-22T20:41:05.000Z | 2020-10-22T20:41:05.000Z | tests/uitsl/debug/compare_files.cpp | perryk12/conduit | 3ea055312598353afd465536c8e04cdec1111c8c | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "Catch/single_include/catch2/catch.hpp"
#include "uitsl/debug/compare_files.hpp"
TEST_CASE("compare_files copy") {
REQUIRE(
uitsl::compare_files( "assets/dali.txt", "assets/dali-copy.txt" )
);
REQUIRE(
uitsl::compare_files( "assets/wiley.txt", "assets/wiley-copy.txt"... | 18.197531 | 80 | 0.666893 | perryk12 |
3ac8b1c7d71372c0444161ac312c075847548b81 | 11,696 | cpp | C++ | Code/Tools/FBuild/FBuildWorker/Worker/WorkerWindow.cpp | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 30 | 2020-07-15T06:16:55.000Z | 2022-02-10T21:37:52.000Z | Code/Tools/FBuild/FBuildWorker/Worker/WorkerWindow.cpp | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 1 | 2020-10-19T22:12:03.000Z | 2020-10-19T22:12:03.000Z | Code/Tools/FBuild/FBuildWorker/Worker/WorkerWindow.cpp | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 12 | 2020-09-16T17:39:34.000Z | 2021-08-17T11:32:37.000Z | // WorkerWindow
//------------------------------------------------------------------------------
// Includes
//------------------------------------------------------------------------------
#include "WorkerWindow.h"
// FBuildWorker
#include "Tools/FBuild/FBuildWorker/Worker/WorkerSettings.h"
// FBuildCore
#include "... | 31.44086 | 137 | 0.54198 | qq573011406 |
3ac8c040046abdf9da0fee1e6a6e6d095d12112c | 1,875 | cpp | C++ | Geometry/Pick's Theorem + Polygon Area.cpp | Rand0mUsername/Algorithms | 05ec0d7ed7f0a4d13000d9d77d743812ac9a27e0 | [
"MIT"
] | 2 | 2020-01-10T14:12:03.000Z | 2020-05-28T19:12:21.000Z | Geometry/Pick's Theorem + Polygon Area.cpp | Rand0mUsername/algorithms | 05ec0d7ed7f0a4d13000d9d77d743812ac9a27e0 | [
"MIT"
] | null | null | null | Geometry/Pick's Theorem + Polygon Area.cpp | Rand0mUsername/algorithms | 05ec0d7ed7f0a4d13000d9d77d743812ac9a27e0 | [
"MIT"
] | 1 | 2022-01-11T03:14:48.000Z | 2022-01-11T03:14:48.000Z | // RandomUsername (Nikola Jovanovic)
// Pick's Theorem + Polygon Area
#include <bits/stdc++.h>
#define DBG false
#define debug(x) if(DBG) printf("(ln %d) %s = %d\n", __LINE__, #x, x);
#define lld long long
#define ff(i,a,b) for(int i=a; i<=b; i++)
#define fb(i,a,b) for(int i=a; i>=b; i--)
#define par pair<int, int>
#d... | 21.551724 | 97 | 0.56 | Rand0mUsername |
3accd7f6adb27c04c47374adadf8ec53efccaf4f | 2,151 | cpp | C++ | Graphs/Module-3/src/hlpath_dir2.cpp | Sinduja-S/Algorithm-Design-Lab | 9bd64ae42c574b91ca733bb108cd845c15fe3baf | [
"MIT"
] | 2 | 2020-04-17T05:26:11.000Z | 2020-05-09T12:27:07.000Z | Graphs/Module-3/src/hlpath_dir2.cpp | sindu-sss/Algorithm-Design-Lab | 9bd64ae42c574b91ca733bb108cd845c15fe3baf | [
"MIT"
] | null | null | null | Graphs/Module-3/src/hlpath_dir2.cpp | sindu-sss/Algorithm-Design-Lab | 9bd64ae42c574b91ca733bb108cd845c15fe3baf | [
"MIT"
] | 3 | 2020-04-02T12:50:10.000Z | 2021-03-27T05:01:22.000Z | #include <bits/stdc++.h>
using namespace std;
#define NINF INT_MIN
int visit[10]={0};
void edge_add(vector<int> adj[],int u,int v)
{
// if(flag==0){
// adj[u].push_back(v);
// adj[v].push_back(u);
// }
// else
// {
adj[u].push_back(v);
// }
}
void get_graph(vector<i... | 17.631148 | 82 | 0.53324 | Sinduja-S |
3ad08ebb9d9dd46cdb9f4c2b78911c8f2740719e | 10,400 | hpp | C++ | llpd/src/USART.hpp | syarusinsky/STM32f302x8-HAL | d940bcfe6a250a230a974f1e6e47a7d7b2e814fb | [
"Apache-2.0"
] | null | null | null | llpd/src/USART.hpp | syarusinsky/STM32f302x8-HAL | d940bcfe6a250a230a974f1e6e47a7d7b2e814fb | [
"Apache-2.0"
] | null | null | null | llpd/src/USART.hpp | syarusinsky/STM32f302x8-HAL | d940bcfe6a250a230a974f1e6e47a7d7b2e814fb | [
"Apache-2.0"
] | null | null | null | #include "LLPD.hpp"
#include <stdlib.h>
#if defined( STM32F302X8 )
#include "stm32f302x8.h"
#elif defined( STM32F302XC )
#include "stm32f302xc.h"
#endif
// these variables store masks for transmitting data based on word length determined in usart_init (default 8 bits)
static uint16_t usart1WordLenMask = 0b0000000011... | 26.196474 | 115 | 0.677596 | syarusinsky |
3ad5fe6a680b460d92580e812579daeae8a721f9 | 3,752 | cpp | C++ | poprob.cpp | winni2k/snptools | a343ae5aa8e8e43b77f1132675bb2b2c55d62511 | [
"Unlicense"
] | null | null | null | poprob.cpp | winni2k/snptools | a343ae5aa8e8e43b77f1132675bb2b2c55d62511 | [
"Unlicense"
] | null | null | null | poprob.cpp | winni2k/snptools | a343ae5aa8e8e43b77f1132675bb2b2c55d62511 | [
"Unlicense"
] | null | null | null | /**
@file poprob.cpp
@brief merge and transpose individual likelihood files to a population likelihood file
@author Yi Wang
@date 04/01/2011
*/
#include <algorithm>
#include <iostream>
#include <stdint.h>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <sstream>
#include <cstdio>
#include <string>
#in... | 26.237762 | 118 | 0.61807 | winni2k |
3ad6f2b6d775adc474013c122867a94fce731912 | 2,006 | cpp | C++ | android-31/java/sql/Date.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/sql/Date.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/sql/Date.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JCharArray.hpp"
#include "../../JString.hpp"
#include "../time/Instant.hpp"
#include "../time/LocalDate.hpp"
#include "./Date.hpp"
namespace java::sql
{
// Fields
// QJniObject forward
Date::Date(QJniObject obj) : java::util::Date(obj) {}
// Constructors
Date::Date(jlong arg0)
: java::util::... | 16.048 | 58 | 0.600199 | YJBeetle |
3ad711d7205bd99e9a7fabc2af261c9aba2b439c | 650 | cpp | C++ | B/B489.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | B/B489.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | B/B489.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
int n,m;
cin>>n;
vector<int> v(n, 0);
for(int i=0;i<n;i++){
cin>>v[i];
}
cin>>m;
vector<int> v0(m, 0);
for(int i=0;i<m;i++){
cin>>v0[i];
}
int ans = 0;
sort(v.begin(), ... | 20.3125 | 53 | 0.413846 | Darknez07 |
3adb29f2d45d82b840c1b5c32ef814aba9cc1d9c | 378 | cpp | C++ | C++/Array/03 initializing with zero.cpp | Noob-coder-07/DeepAlgo | b7f5f8eacefff561648b476946d80948b3f69f51 | [
"Apache-2.0"
] | null | null | null | C++/Array/03 initializing with zero.cpp | Noob-coder-07/DeepAlgo | b7f5f8eacefff561648b476946d80948b3f69f51 | [
"Apache-2.0"
] | null | null | null | C++/Array/03 initializing with zero.cpp | Noob-coder-07/DeepAlgo | b7f5f8eacefff561648b476946d80948b3f69f51 | [
"Apache-2.0"
] | 1 | 2021-09-07T03:12:49.000Z | 2021-09-07T03:12:49.000Z | #include<stdio.h>
#include<conio.h>
#include<iostream>
using namespace std;
int main()
{
cout << "Initializing with zero values " << endl;
cout << "======================= " << endl;
double numberarray[8] = {};
for(int i = 0 ; i < 8 ; i++)
{
cout << "Element of index " << i << " : " << nu... | 18 | 76 | 0.484127 | Noob-coder-07 |
3ae0f01315c3757f160718ebdf168513d9294652 | 11,429 | cpp | C++ | src/Kernel/Arrow.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | src/Kernel/Arrow.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | src/Kernel/Arrow.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | #include "Arrow.h"
#include "Interface/InputServiceInterface.h"
#include "Interface/ApplicationInterface.h"
#include "ArrowInputMousePositionProvider.h"
#include "Kernel/RenderCameraHelper.h"
#include "Kernel/FactorableUnique.h"
#include "Kernel/Assertion.h"
namespace Mengine
{
////////////////////... | 34.116418 | 171 | 0.501356 | Terryhata6 |
3ae119e12cd3dc1a58fc8a8a79f199db6b55bd61 | 1,186 | cpp | C++ | Week3 Answers/Car Fueling/Source.cpp | KirollousMoheb/Algorithmic-Toolbox-UC-SanDiego | c771e2ab3faccdf1539e487209ee9db2fe01c44f | [
"MIT"
] | 2 | 2020-06-28T05:02:29.000Z | 2021-06-01T13:59:28.000Z | Week3 Answers/Car Fueling/Source.cpp | KirollousMoheb/Algorithmic-Toolbox-UC-SanDiego | c771e2ab3faccdf1539e487209ee9db2fe01c44f | [
"MIT"
] | null | null | null | Week3 Answers/Car Fueling/Source.cpp | KirollousMoheb/Algorithmic-Toolbox-UC-SanDiego | c771e2ab3faccdf1539e487209ee9db2fe01c44f | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int min_refills(int dist, int tank, vector<int>& stops, int start, int count) {
if ((start + tank) >= dist) {
return count;
}
if (stops.size() == 0) {
return -1;
}
int old_start = start;
for (int i = 0; i <... | 23.72 | 80 | 0.462057 | KirollousMoheb |
3ae2b83cc5787b349ba0793d710a732c56c03abf | 53,843 | cpp | C++ | Test/TestAlgolyCopyArray.cpp | aldonunez/Gemini | 141e060bbc0698370c406046c35f5669eedcce75 | [
"Apache-2.0"
] | null | null | null | Test/TestAlgolyCopyArray.cpp | aldonunez/Gemini | 141e060bbc0698370c406046c35f5669eedcce75 | [
"Apache-2.0"
] | null | null | null | Test/TestAlgolyCopyArray.cpp | aldonunez/Gemini | 141e060bbc0698370c406046c35f5669eedcce75 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "TestBase.h"
using namespace Gemini;
TEST_CASE( "Algoly: CopyArray: global copy 2 elems", "[algoly][copy-array]" )
{
const char code[] =
"var ar1: [2] := [1, 2]\n"
"var ar2: [2] := [3, 4]\n"
"def a\n"
" ar1 := ar2\n"
" ar1[0] + ar1[... | 30.87328 | 124 | 0.414446 | aldonunez |
3ae4e38d638d72186fd138e56c4bb94c3f8ca1b8 | 1,240 | cpp | C++ | codes/c++/98-2.cpp | YuanweiZHANG/Leetcode | 14a083528431bc65ada8f8265a5ef9d0fae40ecd | [
"MIT"
] | null | null | null | codes/c++/98-2.cpp | YuanweiZHANG/Leetcode | 14a083528431bc65ada8f8265a5ef9d0fae40ecd | [
"MIT"
] | null | null | null | codes/c++/98-2.cpp | YuanweiZHANG/Leetcode | 14a083528431bc65ada8f8265a5ef9d0fae40ecd | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <stack>
using namespace std;
/**
* 2020-04-15
* Veronica
*/
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *... | 19.375 | 58 | 0.597581 | YuanweiZHANG |
3ae60a0b24c48fd29ba4ca26951e8e9419b120a3 | 2,799 | hpp | C++ | include/swift2d/utils/Singleton.hpp | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | null | null | null | include/swift2d/utils/Singleton.hpp | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | null | null | null | include/swift2d/utils/Singleton.hpp | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of Swift2D. //
// ... | 35.884615 | 80 | 0.357985 | Simmesimme |
3ae9309075db8a7fe8838c0bfc77f6f8f22a5fb3 | 3,144 | cpp | C++ | src/DX12/PostProc/Tonemapping.cpp | ohmaya/Cauldron | d883911a0ae926efdd5c81c4319b7ef041fb2dae | [
"MIT"
] | 1 | 2020-06-01T04:21:07.000Z | 2020-06-01T04:21:07.000Z | src/DX12/PostProc/Tonemapping.cpp | ohmaya/Cauldron | d883911a0ae926efdd5c81c4319b7ef041fb2dae | [
"MIT"
] | null | null | null | src/DX12/PostProc/Tonemapping.cpp | ohmaya/Cauldron | d883911a0ae926efdd5c81c4319b7ef041fb2dae | [
"MIT"
] | null | null | null | // AMD AMDUtils code
//
// Copyright(c) 2018 Advanced Micro Devices, Inc.All rights reserved.
// 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 limitat... | 46.925373 | 186 | 0.752226 | ohmaya |
3aeb8036c6a3ce55c2f1da284217d48c5164e832 | 9,913 | cpp | C++ | Assign2/DisplayModule/Frustum.cpp | thekana/MTRN3500-Assign2 | 07083eb3aab3f3b061c42159d83cbe50b5f55c68 | [
"OLDAP-2.5"
] | null | null | null | Assign2/DisplayModule/Frustum.cpp | thekana/MTRN3500-Assign2 | 07083eb3aab3f3b061c42159d83cbe50b5f55c68 | [
"OLDAP-2.5"
] | null | null | null | Assign2/DisplayModule/Frustum.cpp | thekana/MTRN3500-Assign2 | 07083eb3aab3f3b061c42159d83cbe50b5f55c68 | [
"OLDAP-2.5"
] | null | null | null | #ifdef __APPLE__
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
#elif defined(WIN32)
#include <Windows.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#else
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#endif
#include "Frustum.hpp"
using namespace scos;
... | 31.977419 | 106 | 0.654393 | thekana |
3af00df60d27bd063309b5546b43fa209ed06c0b | 4,359 | hpp | C++ | classes/Player.hpp | Rizsyad/PrivateServerGT | 5a7946fcbfde595278b5cfe9e92d29c984b2b3dd | [
"MIT"
] | 1 | 2021-12-08T07:33:51.000Z | 2021-12-08T07:33:51.000Z | classes/Player.hpp | Rizsyad/PrivateServerGT | 5a7946fcbfde595278b5cfe9e92d29c984b2b3dd | [
"MIT"
] | null | null | null | classes/Player.hpp | Rizsyad/PrivateServerGT | 5a7946fcbfde595278b5cfe9e92d29c984b2b3dd | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
struct PlayerInventory inventory;
// char getIp(PlayerInfo* charIp) {
// }
int getState(PlayerInfo* info) {
int val = 0;
val |= info->canWalkInBlocks << 0;
val |= info->canDoubleJump << 1;
val |= info->noHands << 3;
val |= info->noEyes << 4;
val |= info->noBody << 5;
... | 28.490196 | 117 | 0.650379 | Rizsyad |
3af071fd52637e666bedcea3ba2adc5ce3e01c59 | 9,153 | cpp | C++ | advent2019_17/advent2019_17.cpp | throx/advent2019 | b3d4929fe501c72fb9b7db854b08fda119d6cda9 | [
"Unlicense"
] | null | null | null | advent2019_17/advent2019_17.cpp | throx/advent2019 | b3d4929fe501c72fb9b7db854b08fda119d6cda9 | [
"Unlicense"
] | null | null | null | advent2019_17/advent2019_17.cpp | throx/advent2019 | b3d4929fe501c72fb9b7db854b08fda119d6cda9 | [
"Unlicense"
] | null | null | null | #include "pch.h"
#include "CPU.h"
#include "Console.h"
#include "Point.h"
using namespace std;
using namespace JadedHoboConsole;
typedef Point<int, 2> Point2;
typedef vector<string> Map;
int g_xx = 0;
int g_yy = 0;
void Load(CPU::Ram& ram)
{
stringstream data("1,330,331,332,109,2952,1101,1182,0,16,1101,1467,0,2... | 47.42487 | 4,916 | 0.551732 | throx |
3af0e6c667f1401827bd9396d097e00841d9aa08 | 785 | cpp | C++ | modules/thirdparty/riot/test/main.cpp | aversiveplusplus/aversiveplusplus | 5f5fe9faca50197fd6207e2c816efa7e9af6c804 | [
"BSD-3-Clause"
] | 29 | 2016-01-27T09:43:44.000Z | 2020-03-12T04:16:02.000Z | modules/thirdparty/riot/test/main.cpp | aversiveplusplus/aversiveplusplus | 5f5fe9faca50197fd6207e2c816efa7e9af6c804 | [
"BSD-3-Clause"
] | 20 | 2016-01-22T15:59:33.000Z | 2016-10-28T10:22:45.000Z | modules/thirdparty/riot/test/main.cpp | aversiveplusplus/aversiveplusplus | 5f5fe9faca50197fd6207e2c816efa7e9af6c804 | [
"BSD-3-Clause"
] | 6 | 2016-02-11T14:09:04.000Z | 2018-03-17T00:18:35.000Z | #include <stdio.h>
#include <board.h>
#include <stream/riot/uart_stream.hpp>
#include <stream/formatted_stream.hpp>
#include <shell.h>
using namespace Aversive::Base;
using namespace Aversive::Stream;
RIOT::UARTStream<> uart(1, 1000000);
FormattedStreamDecorator<decltype(uart)>& io = formatted(uart);
int serial_cm... | 21.216216 | 63 | 0.670064 | aversiveplusplus |
3af404db9d4bc917d834a94815374b71d24ed0ab | 530 | cpp | C++ | src/problem377/Solution.cpp | MyYaYa/leetcode | d779c215516ede594267b15abdfba5a47dc879dd | [
"Apache-2.0"
] | 1 | 2016-09-29T14:23:59.000Z | 2016-09-29T14:23:59.000Z | src/problem377/Solution.cpp | MyYaYa/leetcode | d779c215516ede594267b15abdfba5a47dc879dd | [
"Apache-2.0"
] | null | null | null | src/problem377/Solution.cpp | MyYaYa/leetcode | d779c215516ede594267b15abdfba5a47dc879dd | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int combinationSum4(vector<int>& nums, int target) {
sort(nums.begin(), nums.end());
int res[target+1];
fill_n(res, target+1 ,0);
for (int i = 1; i <= target; i++) {
for (int j = 0; j < nums.size(); j++) {
if (nums[j] > i)
... | 27.894737 | 56 | 0.377358 | MyYaYa |
3af9d91f9c389304eca3142d87006ea56e7dfd89 | 4,913 | hpp | C++ | include/GlobalNamespace/EnvironmentOverrideSettingsPanelController_Elements.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/EnvironmentOverrideSettingsPanelController_Elements.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/EnvironmentOverrideSettingsPanelController_Elements.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: EnvironmentOverrideSettingsPanelController
#include "GlobalNamespace/E... | 52.265957 | 401 | 0.750458 | darknight1050 |
3afa49617b1f242052e28cf9d8433c69542abf8b | 5,780 | cpp | C++ | PSSM/src/pssm.cpp | SCP-028/BINF8500 | cfb75b4de46aedb27501a1ba6bc1eda6bbda4529 | [
"MIT"
] | null | null | null | PSSM/src/pssm.cpp | SCP-028/BINF8500 | cfb75b4de46aedb27501a1ba6bc1eda6bbda4529 | [
"MIT"
] | 2 | 2018-09-15T23:57:12.000Z | 2018-09-18T21:35:23.000Z | PSSM/src/pssm.cpp | SCP-028/BINF8500 | cfb75b4de46aedb27501a1ba6bc1eda6bbda4529 | [
"MIT"
] | null | null | null | #include "pssm.h"
using std::string;
using std::vector;
namespace preprocess
{
string read_DNA(const string &DNA_path)
{
std::ifstream fin(DNA_path);
std::stringstream buffer;
string firstline;
if (fin.is_open())
{
getline(fin, firstline);
buffer << fin.rdbuf();
fin.close()... | 21.172161 | 87 | 0.478028 | SCP-028 |
3afd4adda413cafd177fc86242f188432f858506 | 5,500 | cpp | C++ | pwiz/utility/misc/automation_vector.cpp | edyp-lab/pwiz-mzdb | d13ce17f4061596c7e3daf9cf5671167b5996831 | [
"Apache-2.0"
] | 11 | 2015-01-08T08:33:44.000Z | 2019-07-12T06:14:54.000Z | pwiz/utility/misc/automation_vector.cpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | 61 | 2015-05-27T11:20:11.000Z | 2019-12-20T15:06:21.000Z | pwiz/utility/misc/automation_vector.cpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | 4 | 2016-02-03T09:41:16.000Z | 2021-08-01T18:42:36.000Z | //
// $Id: automation_vector.cpp 4129 2012-11-20 00:05:37Z chambm $
//
//
// Original author: Andrei Alexandrescu
//
// Copyright 1999 Micro Modeling Associates, Inc.
//
// This code was downloaded from:
// http://erdani.org/publications/adapting_automation_arrays.html
//
// No license was specified in the a... | 26.066351 | 88 | 0.67 | edyp-lab |
d7006776db2b6885d50711b1e68f1f6c5f3e4bb9 | 455 | cpp | C++ | docs/mfc/reference/codesnippet/CPP/cmonthcalctrl-class_13.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/mfc/reference/codesnippet/CPP/cmonthcalctrl-class_13.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/mfc/reference/codesnippet/CPP/cmonthcalctrl-class_13.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | // This work isn't normally necessary, since the control will set
// the day of the week to match the system locale by itself.
// Ask the system for the first day of the week
TCHAR sz[2];
GetLocaleInfo(LOCALE_SYSTEM_DEFAULT, LOCALE_IFIRSTDAYOFWEEK, sz, 2);
// Convert from string result
int nFirstDay = _ttoi(sz);
// ... | 35 | 68 | 0.771429 | bobbrow |
d704bfc1c756bf9e9338f230debaf01fcea3a65d | 5,369 | cpp | C++ | Service/RecordCollection/Visualization/RecordCollection/Visualization.cpp | KonstantinTomashevich/Emergence | 83b1d52bb62bf619f9402e3081dd9de6b0cb232c | [
"Apache-2.0"
] | 3 | 2021-06-02T05:06:48.000Z | 2022-01-26T09:39:44.000Z | Service/RecordCollection/Visualization/RecordCollection/Visualization.cpp | KonstantinTomashevich/Emergence | 83b1d52bb62bf619f9402e3081dd9de6b0cb232c | [
"Apache-2.0"
] | null | null | null | Service/RecordCollection/Visualization/RecordCollection/Visualization.cpp | KonstantinTomashevich/Emergence | 83b1d52bb62bf619f9402e3081dd9de6b0cb232c | [
"Apache-2.0"
] | null | null | null | #include <RecordCollection/Visualization.hpp>
namespace Emergence::RecordCollection::Visualization
{
using namespace VisualGraph::Common::Constants;
static std::string GetPathToMappings ()
{
return std::string (DEFAULT_ROOT_GRAPH_ID) + VisualGraph::NODE_PATH_SEPARATOR + MAPPING_SUBGRAPH +
VisualGraph::... | 33.981013 | 120 | 0.690631 | KonstantinTomashevich |
d707b3ab5ee990e3af51ff6d672478b40e369860 | 501 | hpp | C++ | sdk/include/poolstring.hpp | qianxj/XExplorer | 00e326da03ffcaa21115a2345275452607c6bab5 | [
"MIT"
] | null | null | null | sdk/include/poolstring.hpp | qianxj/XExplorer | 00e326da03ffcaa21115a2345275452607c6bab5 | [
"MIT"
] | null | null | null | sdk/include/poolstring.hpp | qianxj/XExplorer | 00e326da03ffcaa21115a2345275452607c6bab5 | [
"MIT"
] | null | null | null | #ifndef WPP_POOLSTRING_H
#define WPP_POOLSTRING_H
#define STR_POOL_SIZE (4096 *256)
namespace wpp {
namespace how {
class CPoolString
{
public:
CPoolString(void);
~CPoolString(void);
private:
wchar_t * pBuffer;
int used;
int alloced;
public:
wchar_t * GetStringByPos(int hString);
int AppendString(const ... | 17.275862 | 41 | 0.720559 | qianxj |
d707d3687c1afa7b28041e9da63ce9326d0745f5 | 245 | cpp | C++ | classes/adminuser.cpp | SinghParwinder/pao-project | 2ea9b76edd2fc3cad67393bdb1386036941cf458 | [
"MIT"
] | null | null | null | classes/adminuser.cpp | SinghParwinder/pao-project | 2ea9b76edd2fc3cad67393bdb1386036941cf458 | [
"MIT"
] | null | null | null | classes/adminuser.cpp | SinghParwinder/pao-project | 2ea9b76edd2fc3cad67393bdb1386036941cf458 | [
"MIT"
] | null | null | null | #include "adminuser.h"
adminuser::adminuser()
{
}
adminuser::adminuser(QString n, QString sn, QDate d, QString u, QString p)
: user(n, sn, d, u, p) {}
QString adminuser::getType() const { return type; }
QString adminuser::type = "admin";
| 20.416667 | 74 | 0.673469 | SinghParwinder |
d70ad834b8a89fca798aad1373bc57fb4e701e86 | 28,256 | cpp | C++ | BasiliskII/src/BeOS/video_beos.cpp | jvernet/macemu | c616a0dae0f451fc15016765c896175fae3f46cf | [
"Intel",
"X11"
] | 940 | 2015-01-04T12:20:10.000Z | 2022-03-29T12:35:27.000Z | BasiliskII/src/BeOS/video_beos.cpp | Seanpm2001-virtual-machines/macemu | c616a0dae0f451fc15016765c896175fae3f46cf | [
"Intel",
"X11"
] | 163 | 2015-02-10T09:08:10.000Z | 2022-03-13T05:48:10.000Z | BasiliskII/src/BeOS/video_beos.cpp | Seanpm2001-virtual-machines/macemu | c616a0dae0f451fc15016765c896175fae3f46cf | [
"Intel",
"X11"
] | 188 | 2015-01-07T19:46:11.000Z | 2022-03-26T19:06:00.000Z | /*
* video_beos.cpp - Video/graphics emulation, BeOS specific stuff
*
* Basilisk II (C) 1997-2008 Christian Bauer
* Portions written by Marc Hellwig
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free So... | 25.99448 | 175 | 0.69879 | jvernet |
d70b7c3cfa11c89e379949d2cb8ca9bef1aed664 | 10,078 | hpp | C++ | include/wiztk/base/counted-deque.hpp | wiztk/framework | 179baf8a24406b19d3f4ea28e8405358b21f8446 | [
"Apache-2.0"
] | 37 | 2017-11-22T14:15:33.000Z | 2021-11-25T20:39:39.000Z | include/wiztk/base/counted-deque.hpp | wiztk/framework | 179baf8a24406b19d3f4ea28e8405358b21f8446 | [
"Apache-2.0"
] | 3 | 2018-03-01T12:44:22.000Z | 2021-01-04T23:14:41.000Z | include/wiztk/base/counted-deque.hpp | wiztk/framework | 179baf8a24406b19d3f4ea28e8405358b21f8446 | [
"Apache-2.0"
] | 10 | 2017-11-25T19:09:11.000Z | 2020-12-02T02:05:47.000Z | /*
* Copyright 2017 The WizTK Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 21.861171 | 92 | 0.672753 | wiztk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.