hexsha stringlengths 40 40 | size int64 19 11.4M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 270 | max_stars_repo_name stringlengths 5 110 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 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 3 270 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 270 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 19 11.4M | avg_line_length float64 1.93 229k | max_line_length int64 12 688k | alphanum_fraction float64 0.07 0.99 | matches listlengths 1 10 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
517c6767801ca68a9e685f04ffa3c210d0904211 | 10,321 | cpp | C++ | vm/capi/string.cpp | bruce/rubinius | 44d3bdd0d988a17de1fe446bd29d2e9dede65f45 | [
"BSD-3-Clause"
] | 1 | 2017-09-09T21:28:06.000Z | 2017-09-09T21:28:06.000Z | vm/capi/string.cpp | bruce/rubinius | 44d3bdd0d988a17de1fe446bd29d2e9dede65f45 | [
"BSD-3-Clause"
] | null | null | null | vm/capi/string.cpp | bruce/rubinius | 44d3bdd0d988a17de1fe446bd29d2e9dede65f45 | [
"BSD-3-Clause"
] | null | null | null | #include "builtin/bytearray.hpp"
#include "builtin/fixnum.hpp"
#include "builtin/integer.hpp"
#include "builtin/nativemethod.hpp"
#include "builtin/object.hpp"
#include "builtin/string.hpp"
#include "capi/capi.hpp"
#include "capi/ruby.h"
#include <cstring>
using namespace rubinius;
using namespace rubinius::capi;
n... | 28.829609 | 83 | 0.678035 | [
"object"
] |
517cbaefc4087b9eae310bf786c2e065467d5601 | 22,689 | cpp | C++ | src/avatar_locomanipulation/collision_environment/collision_environment.cpp | stevenjj/icra2020locomanipulation | 414085b68cc1b3b24f7b920b543bba9d95350c16 | [
"MIT"
] | 5 | 2020-01-06T11:43:18.000Z | 2021-12-14T22:59:09.000Z | src/avatar_locomanipulation/collision_environment/collision_environment.cpp | stevenjj/icra2020locomanipulation | 414085b68cc1b3b24f7b920b543bba9d95350c16 | [
"MIT"
] | null | null | null | src/avatar_locomanipulation/collision_environment/collision_environment.cpp | stevenjj/icra2020locomanipulation | 414085b68cc1b3b24f7b920b543bba9d95350c16 | [
"MIT"
] | 2 | 2020-09-03T16:08:34.000Z | 2022-02-17T11:13:49.000Z | #include <avatar_locomanipulation/collision_environment/collision_environment.h>
CollisionEnvironment::CollisionEnvironment(std::shared_ptr<RobotModel> & val){
valkyrie = val;
// Prepare valkyrie for appending to appended
valkyrie->geomModel.addAllCollisionPairs();
pinocchio::srdf::removeCollisionPairs(valky... | 40.954874 | 387 | 0.715281 | [
"object",
"vector",
"model",
"3d"
] |
517cdb9d1cf1a66f05bce8a8cf1223ca9f018ef4 | 1,795 | cpp | C++ | modules/media/test/apps/test_box_art_loader.cpp | LCClyde/nyra | f8280db2633e888ab62e929a2c238a33755ff694 | [
"MIT"
] | null | null | null | modules/media/test/apps/test_box_art_loader.cpp | LCClyde/nyra | f8280db2633e888ab62e929a2c238a33755ff694 | [
"MIT"
] | 1 | 2016-01-25T13:03:03.000Z | 2016-01-25T13:03:03.000Z | modules/media/test/apps/test_box_art_loader.cpp | LCClyde/nyra | f8280db2633e888ab62e929a2c238a33755ff694 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2017 Clyde Stanfield
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, pub... | 33.240741 | 79 | 0.689136 | [
"vector"
] |
3d629f2835f17c96084228b88217961331ad96b6 | 4,126 | hpp | C++ | ThirdParty-mod/java2cpp/org/apache/http/auth/AuthenticationException.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | 1 | 2019-04-03T01:53:28.000Z | 2019-04-03T01:53:28.000Z | ThirdParty-mod/java2cpp/org/apache/http/auth/AuthenticationException.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | ThirdParty-mod/java2cpp/org/apache/http/auth/AuthenticationException.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: org.apache.http.auth.AuthenticationException
================================================================================*/
#ifndef J... | 32.746032 | 163 | 0.729278 | [
"object"
] |
3d651c7f17a700ed05d995c2e4f57374c365c1ac | 4,296 | cpp | C++ | Greedy/water_connection.cpp | krayong/DS---Algo | 5105dab434fa59580b4068e64468a4a37245d763 | [
"Apache-2.0"
] | 2 | 2021-01-30T08:50:12.000Z | 2021-05-30T19:56:53.000Z | Greedy/water_connection.cpp | krayong/Data-Structures-and-Algorithms | 5105dab434fa59580b4068e64468a4a37245d763 | [
"Apache-2.0"
] | null | null | null | Greedy/water_connection.cpp | krayong/Data-Structures-and-Algorithms | 5105dab434fa59580b4068e64468a4a37245d763 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*************************************************************************************************************
*
* Link : https://practice.geeksforgeeks.org/problems/water-connection-problem/1
* Description:
Every house... | 29.424658 | 110 | 0.554236 | [
"vector"
] |
3d792e4455baba486579381cc7bdcfdfc2e5d831 | 1,947 | hpp | C++ | easycl/easysdl.hpp | ichko/gpu_computing | 14bb3f1d5963ba73f69179aad9a33221c74ac2db | [
"MIT"
] | null | null | null | easycl/easysdl.hpp | ichko/gpu_computing | 14bb3f1d5963ba73f69179aad9a33221c74ac2db | [
"MIT"
] | null | null | null | easycl/easysdl.hpp | ichko/gpu_computing | 14bb3f1d5963ba73f69179aad9a33221c74ac2db | [
"MIT"
] | 1 | 2022-01-01T22:19:40.000Z | 2022-01-01T22:19:40.000Z | #pragma once
#include <time.h>
#include <chrono>
#include <ctime>
#include <SDL.h>
#include "canvas.hpp"
struct EasySDL : public Canvas {
SDL_Renderer *renderer;
SDL_Window *window;
SDL_Texture *texture;
SDL_Event event;
float timer;
clock_t program_start;
float delta_t;
clock_t f... | 22.905882 | 124 | 0.586543 | [
"render"
] |
3d8a12adf2c8992c8959c1f119d2378414ee8c52 | 4,935 | cpp | C++ | common/src/pcharacter.cpp | ScenarioCPP/scenario | 8559e6053e208dd7ddceb2b8374309314e19c946 | [
"MIT"
] | null | null | null | common/src/pcharacter.cpp | ScenarioCPP/scenario | 8559e6053e208dd7ddceb2b8374309314e19c946 | [
"MIT"
] | null | null | null | common/src/pcharacter.cpp | ScenarioCPP/scenario | 8559e6053e208dd7ddceb2b8374309314e19c946 | [
"MIT"
] | null | null | null | #include <QtMath>
#include <QDebug>
#include "global_defines.h"
#include "pcharacter.h"
PCharacter::PCharacter(SpritePtr sprite, ColliderPtr collider, ControllerPtr controller, QObject *parent) :
Actor(sprite,parent),m_collider(collider),m_controller(controller)
{
signal_on_rendor(sprite);
sprite->set_type(... | 39.798387 | 125 | 0.674164 | [
"render",
"object"
] |
3d8b7e2f1003a524e7a1840834a414b1f4cdb955 | 3,161 | cpp | C++ | quantize__dither_quantize.cpp | poikilos/golgotha | d3184dea6b061f853423e0666dba23218042e5ba | [
"CC0-1.0"
] | 5 | 2015-12-09T20:37:49.000Z | 2021-08-10T08:06:29.000Z | quantize__dither_quantize.cpp | poikilos/golgotha | d3184dea6b061f853423e0666dba23218042e5ba | [
"CC0-1.0"
] | 13 | 2021-09-20T16:25:30.000Z | 2022-03-17T04:59:40.000Z | quantize__dither_quantize.cpp | poikilos/golgotha | d3184dea6b061f853423e0666dba23218042e5ba | [
"CC0-1.0"
] | 5 | 2016-01-04T22:54:22.000Z | 2021-09-20T16:09:03.000Z | #include "pch.h"
/**********************************************************************
Golgotha Forever - A portable, free 3D strategy and FPS game.
Copyright (C) 1999 Golgotha Forever Developers
Sources contained in this distribution were derived from
Crack Dot Com's public release of Golg... | 23.242647 | 91 | 0.551724 | [
"3d"
] |
3d91403a38a7a23ebd743b0a717f1decff4dc148 | 11,276 | cpp | C++ | lib/Runtime/Debug/DiagStackFrame.cpp | satheeshravi/ChakraCore | 3bf47ff12bf80ab06fb7ea6925ec7579985ac1f5 | [
"MIT"
] | 1 | 2021-11-07T18:56:21.000Z | 2021-11-07T18:56:21.000Z | lib/Runtime/Debug/DiagStackFrame.cpp | MaxMood96/ChakraCore | 9d9fea268ce1ae6c00873fd966a6a2be048f3455 | [
"MIT"
] | null | null | null | lib/Runtime/Debug/DiagStackFrame.cpp | MaxMood96/ChakraCore | 9d9fea268ce1ae6c00873fd966a6a2be048f3455 | [
"MIT"
] | 1 | 2021-09-04T23:26:57.000Z | 2021-09-04T23:26:57.000Z | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | 31.76338 | 207 | 0.647659 | [
"object"
] |
3d91c38a7af73397e3f5a69b7fc3f25bb839f106 | 8,330 | cc | C++ | media/gpu/v4l2/v4l2_device_unittest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | media/gpu/v4l2/v4l2_device_unittest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | media/gpu/v4l2/v4l2_device_unittest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/gpu/v4l2/v4l2_device.h"
#include <cstring>
#include <sstream>
#include <vector>
#include "media/base/color_plane_layout.h"
#include "tes... | 41.859296 | 80 | 0.708163 | [
"vector"
] |
3d987219d46b72d2e3f51a9e553927ece054b1e5 | 20,074 | cpp | C++ | src/lab_m1/tema1/tema1.cpp | whoisann/Shooter-Game | 8691354e1d53a4ac9a1ed1149852e19633c600ae | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/lab_m1/tema1/tema1.cpp | whoisann/Shooter-Game | 8691354e1d53a4ac9a1ed1149852e19633c600ae | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/lab_m1/tema1/tema1.cpp | whoisann/Shooter-Game | 8691354e1d53a4ac9a1ed1149852e19633c600ae | [
"MIT",
"BSD-3-Clause"
] | null | null | null | #include "lab_m1/tema1/tema1.h"
#include <vector>
#include <iostream>
#include "lab_m1/tema1/transform2D.h"
#include "lab_m1/tema1/object2D.h"
using namespace std;
using namespace m1;
/*
* To find out more about `FrameStart`, `Update`, `FrameEnd`
* and the order in which they are called, see `world.cpp`.
*/
... | 33.966159 | 170 | 0.603168 | [
"mesh",
"vector"
] |
3d994d511adb0123824ea8ccad33597ecb4a20f6 | 6,839 | cpp | C++ | v3d_main/v3d/mdichild.cpp | lens-biophotonics/v3d_external | 44ff3b60a297a96eaa77ca092e0de9af5c990ed3 | [
"MIT"
] | 39 | 2015-05-10T23:23:03.000Z | 2022-01-26T01:31:30.000Z | v3d_main/v3d/mdichild.cpp | lens-biophotonics/v3d_external | 44ff3b60a297a96eaa77ca092e0de9af5c990ed3 | [
"MIT"
] | 13 | 2016-03-04T05:29:23.000Z | 2021-02-07T01:11:10.000Z | v3d_main/v3d/mdichild.cpp | lens-biophotonics/v3d_external | 44ff3b60a297a96eaa77ca092e0de9af5c990ed3 | [
"MIT"
] | 44 | 2015-11-11T07:30:59.000Z | 2021-12-26T16:41:21.000Z | /*
* Copyright (c)2006-2010 Hanchuan Peng (Janelia Farm, Howard Hughes Medical Institute).
* All rights reserved.
*/
/************
********* LICENSE NOTICE ************
This folder contains all source codes for the V3D project, which is subject to the following conditi... | 36.185185 | 941 | 0.654189 | [
"model",
"3d"
] |
3d9aa3865359367e73b0ac0a6b21c8ad51bc26d9 | 24,501 | cxx | C++ | com/ole32/com/moniker2/csessmon.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/ole32/com/moniker2/csessmon.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/ole32/com/moniker2/csessmon.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1993 - 1993.
//
// File: csessmon.cxx
//
// Contents:
//
// Classes:
//
// Functions:
//
// History: 11-25-98 GilleG Created
//
// The purpo... | 25.954449 | 108 | 0.440145 | [
"object"
] |
3d9e46c9e77019b7eb8569dec8ada51b6845d247 | 12,080 | hpp | C++ | src/include/structures/rank_pairing_heap.hpp | mr-c/structures | 5a2279557ec0e9da9bcff37f68f8fb1cd89a9314 | [
"Apache-2.0"
] | 2 | 2019-03-18T20:37:47.000Z | 2019-03-19T04:51:47.000Z | src/include/structures/rank_pairing_heap.hpp | mr-c/structures | 5a2279557ec0e9da9bcff37f68f8fb1cd89a9314 | [
"Apache-2.0"
] | 1 | 2019-09-09T02:33:02.000Z | 2019-09-09T02:33:02.000Z | src/include/structures/rank_pairing_heap.hpp | mr-c/structures | 5a2279557ec0e9da9bcff37f68f8fb1cd89a9314 | [
"Apache-2.0"
] | 4 | 2018-02-15T19:17:15.000Z | 2020-06-25T13:26:19.000Z | // 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... | 32.737127 | 123 | 0.615149 | [
"vector"
] |
3d9f5e5ee56081639a99b3d69a6fc87157a84f56 | 2,096 | cpp | C++ | practice/almostArithmeticalProgression.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | practice/almostArithmeticalProgression.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | practice/almostArithmeticalProgression.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define fori(i,a,b) for (int i = a; i <= b ; ++i)
#define ford(i,a,b) for(int i = a;i >= b ; --i)
#define mk make_pair
#define mod 1000000007
#define pb push_back
#define ll long long
#define MAXN 100001
#define rnd mt19937_64 rng(chrono::high_resolution_clock::now().time_s... | 20.349515 | 89 | 0.527195 | [
"vector"
] |
3da49bdd5516d94d75a6162cfab4415ba2dd3465 | 4,749 | hpp | C++ | Engine/Source/GEOGL/Layers/Layer.hpp | Matthew-Krueger/GEOGL | aae6adbd3d9cfadb4fe65b961d018636e42ddecc | [
"Zlib"
] | null | null | null | Engine/Source/GEOGL/Layers/Layer.hpp | Matthew-Krueger/GEOGL | aae6adbd3d9cfadb4fe65b961d018636e42ddecc | [
"Zlib"
] | null | null | null | Engine/Source/GEOGL/Layers/Layer.hpp | Matthew-Krueger/GEOGL | aae6adbd3d9cfadb4fe65b961d018636e42ddecc | [
"Zlib"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2020 Matthew Krueger *
* *
* This software is provided 'as-is', without any express or implied ... | 48.958763 | 119 | 0.487471 | [
"render"
] |
3da6e7a8f76d0faa519269204b4968866ccbefad | 7,344 | cc | C++ | shell/platform/linux/fl_mouse_cursor_plugin.cc | iMostfa/engine | 09abc947e8d97a64edee790ccec6b4a9bc62485c | [
"BSD-3-Clause"
] | 1 | 2021-10-10T12:37:49.000Z | 2021-10-10T12:37:49.000Z | shell/platform/linux/fl_mouse_cursor_plugin.cc | iMostfa/engine | 09abc947e8d97a64edee790ccec6b4a9bc62485c | [
"BSD-3-Clause"
] | null | null | null | shell/platform/linux/fl_mouse_cursor_plugin.cc | iMostfa/engine | 09abc947e8d97a64edee790ccec6b4a9bc62485c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/shell/platform/linux/fl_mouse_cursor_plugin.h"
#include <gtk/gtk.h>
#include "flutter/shell/platform/linux/public/flutter_linux/fl_meth... | 39.913043 | 87 | 0.740468 | [
"object"
] |
3da7c7895fff0e0d94779f352705eaf7fa8c9fc3 | 10,871 | cc | C++ | xls/dslx/extract_conversion_order.cc | briansrls/xls | 35fd94eff68611d510288938469ee620a38e1976 | [
"Apache-2.0"
] | null | null | null | xls/dslx/extract_conversion_order.cc | briansrls/xls | 35fd94eff68611d510288938469ee620a38e1976 | [
"Apache-2.0"
] | null | null | null | xls/dslx/extract_conversion_order.cc | briansrls/xls | 35fd94eff68611d510288938469ee620a38e1976 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The XLS 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 t... | 38.14386 | 80 | 0.62331 | [
"vector"
] |
3daa5e96e6d11c16502c73bd9cb3da73157e9ec3 | 2,200 | cpp | C++ | src/server/screensaver.cpp | pvanhoof/NymphCast | 1b60ff19860e927809e91e129aa29e6ddeba17ca | [
"BSD-3-Clause"
] | 1 | 2020-09-16T13:02:14.000Z | 2020-09-16T13:02:14.000Z | src/server/screensaver.cpp | pvanhoof/NymphCast | 1b60ff19860e927809e91e129aa29e6ddeba17ca | [
"BSD-3-Clause"
] | null | null | null | src/server/screensaver.cpp | pvanhoof/NymphCast | 1b60ff19860e927809e91e129aa29e6ddeba17ca | [
"BSD-3-Clause"
] | null | null | null |
#include "screensaver.h"
#include <thread>
// Static variables.
std::atomic<bool> ScreenSaver::active = {false};
std::atomic<bool> ScreenSaver::firstRun = {true};
SDL_Window* ScreenSaver::window = 0;
SDL_Renderer* ScreenSaver::renderer = 0;
SDL_Texture* ScreenSaver::texture = 0;
ChronoTrigger ScreenSaver::ct;
std:... | 22.680412 | 83 | 0.692727 | [
"vector"
] |
3dafe38c5412c5f7ebb6af64a1d12904b4777dad | 691 | cpp | C++ | rali/source/node_nop.cpp | pruthvistony/MIVisionX | c3e2b360eb34ed7a75f3e08a4a7dfc256bfe801d | [
"MIT"
] | null | null | null | rali/source/node_nop.cpp | pruthvistony/MIVisionX | c3e2b360eb34ed7a75f3e08a4a7dfc256bfe801d | [
"MIT"
] | null | null | null | rali/source/node_nop.cpp | pruthvistony/MIVisionX | c3e2b360eb34ed7a75f3e08a4a7dfc256bfe801d | [
"MIT"
] | null | null | null | #include <vx_ext_rpp.h>
#include "node_nop.h"
#include "exception.h"
NopNode::NopNode(const std::vector<Image*>& inputs, const std::vector<Image*>& outputs):
Node(inputs, outputs)
{
}
void NopNode::create(std::shared_ptr<Graph> graph)
{
if(_node)
return;
_graph = graph;
if(_outputs.empty... | 23.033333 | 89 | 0.66136 | [
"vector"
] |
3db49f743a6dd557dc3d04d824e51dc8c0c369f3 | 5,640 | cpp | C++ | src/lwvl/src/Shader.cpp | XakNitram/DVD | 835045659be80a58de2a6669e0fe88c889d7eacd | [
"MIT"
] | null | null | null | src/lwvl/src/Shader.cpp | XakNitram/DVD | 835045659be80a58de2a6669e0fe88c889d7eacd | [
"MIT"
] | null | null | null | src/lwvl/src/Shader.cpp | XakNitram/DVD | 835045659be80a58de2a6669e0fe88c889d7eacd | [
"MIT"
] | null | null | null | #include "lwvl/lwvl.hpp"
/* ****** Uniform ****** */
lwvl::Uniform::Uniform(int location) : m_location(location) {}
void lwvl::Uniform::set(const int v0) { glUniform1i(m_location, v0); }
void lwvl::Uniform::set(const float v0) { glUniform1f(m_location, v0); }
void lwvl::Uniform::set(const unsigned int v0) { glUnif... | 34.601227 | 135 | 0.671099 | [
"geometry",
"object"
] |
3dbea4486d7c57e373d257e0888741e5cf60b05c | 306,150 | cpp | C++ | net/mmc/dhcp/scope.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | net/mmc/dhcp/scope.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | net/mmc/dhcp/scope.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /**********************************************************************/
/** Microsoft Windows/NT **/
/** Copyright(c) Microsoft Corporation, 1997 - 1999 **/
/**********************************************************************/
/*
scope.cpp
... | 35.54098 | 165 | 0.439935 | [
"object"
] |
3dc7d1cfc20021fd8dff30478ebc174c1bd3ac75 | 4,529 | cpp | C++ | src/FusionEKF.cpp | edoardomazzella/CarND-Extended-Kalman-Filter-Project | f35be87c58cffcc1911568986f9bec6daece9e93 | [
"MIT"
] | null | null | null | src/FusionEKF.cpp | edoardomazzella/CarND-Extended-Kalman-Filter-Project | f35be87c58cffcc1911568986f9bec6daece9e93 | [
"MIT"
] | null | null | null | src/FusionEKF.cpp | edoardomazzella/CarND-Extended-Kalman-Filter-Project | f35be87c58cffcc1911568986f9bec6daece9e93 | [
"MIT"
] | null | null | null | #include "FusionEKF.h"
#include <iostream>
#include "Eigen/Dense"
#include "tools.h"
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::cout;
using std::endl;
using std::vector;
/**
* Constructor.
*/
FusionEKF::FusionEKF() {
// create a 4D state vector, we don't know yet the values of the x state
Vecto... | 27.615854 | 101 | 0.57739 | [
"vector"
] |
3dc8dcdf29aa4d2b34b913c6e3996a08ee3880a2 | 1,394 | cpp | C++ | src/GHUtils/GHControllerTransition.cpp | GoldenHammerSoftware/GH | 757213f479c0fc80ed1a0f59972bf3e9d92b7526 | [
"MIT"
] | null | null | null | src/GHUtils/GHControllerTransition.cpp | GoldenHammerSoftware/GH | 757213f479c0fc80ed1a0f59972bf3e9d92b7526 | [
"MIT"
] | null | null | null | src/GHUtils/GHControllerTransition.cpp | GoldenHammerSoftware/GH | 757213f479c0fc80ed1a0f59972bf3e9d92b7526 | [
"MIT"
] | null | null | null | // Copyright Golden Hammer Software
#include "GHControllerTransition.h"
#include "GHControllerMgr.h"
#include "GHController.h"
GHControllerTransition::GHControllerTransition(GHControllerMgr& controllerMgr, GHController* controller,
float priority)
: mControllerMgr(control... | 27.88 | 104 | 0.642755 | [
"vector"
] |
3dd2c5583a7bcd11e88d293abf882060f6e0678c | 11,352 | hpp | C++ | include/application.hpp | Arvkus/vk-visualiser | b641dfae56d3f871fb01868eccb1abb3a1fc34fc | [
"MIT"
] | null | null | null | include/application.hpp | Arvkus/vk-visualiser | b641dfae56d3f871fb01868eccb1abb3a1fc34fc | [
"MIT"
] | null | null | null | include/application.hpp | Arvkus/vk-visualiser | b641dfae56d3f871fb01868eccb1abb3a1fc34fc | [
"MIT"
] | null | null | null | #include "common.hpp"
#include "instance.hpp"
#include "memory.hpp"
#include "pipeline.hpp"
#include "swapchain.hpp"
#include "descriptors.hpp"
#include "model.hpp"
#include "input.hpp"
#include "camera.hpp"
#include "loader.hpp"
class Application{
public:
void draw()
{
if(is_model_update()) return; ... | 37.714286 | 163 | 0.622357 | [
"render",
"vector",
"model"
] |
3dd401a9cbe4867d28368966270fb4f6beaf68c3 | 1,449 | cpp | C++ | Blue-Flame-Engine/Sandbox_Web/Sandbox/_2DScene.cpp | FantasyVII/Blue-Flame-Engine | b0e44ccffdd41539fa9075e5d6a2b3c1cc811d96 | [
"MIT"
] | 2 | 2020-10-12T13:40:05.000Z | 2021-09-17T08:37:03.000Z | Blue-Flame-Engine/Sandbox_Web/Sandbox/_2DScene.cpp | 21423236/Blue-Flame-Engine | cf26fbdb94d1338f04e57ba88f0bbfc8b77c969b | [
"MIT"
] | null | null | null | Blue-Flame-Engine/Sandbox_Web/Sandbox/_2DScene.cpp | 21423236/Blue-Flame-Engine | cf26fbdb94d1338f04e57ba88f0bbfc8b77c969b | [
"MIT"
] | null | null | null | #include "_2DScene.h"
namespace _2DScene
{
using namespace BF;
using namespace BF::AI;
using namespace BF::Application;
using namespace BF::Graphics;
using namespace BF::Graphics::API;
using namespace BF::Graphics::Renderers;
using namespace BF::Graphics::GUI;
using namespace BF::Math;
using namespace BF::Sys... | 21.954545 | 112 | 0.669427 | [
"render"
] |
3ddc384547a228def5938a03263c550d00e2a0ad | 11,429 | cpp | C++ | mux/attrcache.cpp | lashtear/tinymux | f8bc593d77889e8ace0c8a5fd063816bdc65548b | [
"RSA-MD"
] | 2 | 2016-03-26T17:48:50.000Z | 2017-05-23T20:16:15.000Z | mux/attrcache.cpp | lashtear/tinymux | f8bc593d77889e8ace0c8a5fd063816bdc65548b | [
"RSA-MD"
] | 9 | 2015-01-03T16:01:23.000Z | 2017-05-23T21:51:25.000Z | mux/attrcache.cpp | lashtear/tinymux | f8bc593d77889e8ace0c8a5fd063816bdc65548b | [
"RSA-MD"
] | 1 | 2016-09-18T16:15:28.000Z | 2016-09-18T16:15:28.000Z | /*! \file attrcache.cpp
* \brief Attribute caching module.
*
* $Id$
*
* The functions here manage the upper-level attribute value cache for
* disk-based mode. It's not used in memory-based builds. The lower-level
* cache is managed in svdhash.cpp
*
* The upper-level cache is organized by a CHashTable and a lin... | 22.72167 | 114 | 0.640738 | [
"object"
] |
3ddceb8347cafc10ae4b8c1e667d08c408998dbd | 9,396 | cpp | C++ | mx_psfFit.cpp | scstein/FastPsfFitting | a8538a50ec93f5673722078ced5bedfd50b2a0e9 | [
"BSD-3-Clause"
] | 6 | 2018-06-16T18:37:47.000Z | 2021-02-04T10:45:36.000Z | mx_psfFit.cpp | scstein/FastPsfFitting | a8538a50ec93f5673722078ced5bedfd50b2a0e9 | [
"BSD-3-Clause"
] | null | null | null | mx_psfFit.cpp | scstein/FastPsfFitting | a8538a50ec93f5673722078ced5bedfd50b2a0e9 | [
"BSD-3-Clause"
] | 2 | 2018-04-13T01:06:24.000Z | 2018-09-18T09:15:54.000Z |
// Authors: Simon Christoph Stein and Jan Thiart
// E-Mail: scstein@phys.uni-goettingen.de
// Date: March 2016
// Optimization is done using the ceres-solver library.
// http://ceres-solver.org, New BSD license.
// Copyright 2015 Google Inc. All rights reserved.
// % Copyright (c) 2016, Simon Christoph Stein
// % Al... | 42.515837 | 149 | 0.656875 | [
"vector",
"model"
] |
3ddd6fad2575d23c5bce5a8b18e65b46f02566fd | 8,093 | cpp | C++ | src/MPC.cpp | zasimov/CarND-MPC-Project | 81e214e71bed4ba679114394e2baa0064554ed9e | [
"MIT"
] | null | null | null | src/MPC.cpp | zasimov/CarND-MPC-Project | 81e214e71bed4ba679114394e2baa0064554ed9e | [
"MIT"
] | null | null | null | src/MPC.cpp | zasimov/CarND-MPC-Project | 81e214e71bed4ba679114394e2baa0064554ed9e | [
"MIT"
] | null | null | null | #include "MPC.h"
#include <cppad/cppad.hpp>
#include <cppad/ipopt/solve.hpp>
#include "Eigen-3.3/Eigen/Core"
#include "kinematic_model.h"
#include "config.h"
using CppAD::AD;
/*
* A number of variables
*/
const int kNumberOfVars = kStateDim * kN + kActuatorCount * (kN - 1);
/*
* A number of constraints.
*/
const ... | 29.753676 | 101 | 0.630792 | [
"object",
"vector"
] |
3de20cb780b3aea90637816d4bcf859998fc265c | 2,321 | cpp | C++ | Moss/src/Platform/OpenGL/OpenGLVertexArray.cpp | wzhhh123/Moss | 9a45127ffab59d0079c9db09b8966fc092a77440 | [
"Apache-2.0"
] | null | null | null | Moss/src/Platform/OpenGL/OpenGLVertexArray.cpp | wzhhh123/Moss | 9a45127ffab59d0079c9db09b8966fc092a77440 | [
"Apache-2.0"
] | null | null | null | Moss/src/Platform/OpenGL/OpenGLVertexArray.cpp | wzhhh123/Moss | 9a45127ffab59d0079c9db09b8966fc092a77440 | [
"Apache-2.0"
] | null | null | null | #include "mspch.h"
#include "OpenGLVertexArray.h"
#include <glad/glad.h>
namespace Moss {
static GLenum ShaderDataTypeToOpenGLBaseType(ShaderDataType type) {
switch (type)
{
case Moss::ShaderDataType::Float: return GL_FLOAT;
case Moss::ShaderDataType::Float2: return GL_FLOAT;
case Moss::ShaderDataTy... | 26.078652 | 97 | 0.734166 | [
"vector"
] |
3de43ff69a7ef23bb22c916a6abc9c98760df7b5 | 578 | hpp | C++ | include/chopper/build/build_data.hpp | Felix-Droop/Chopper | 5cc214103b2d088ae400bec0fde8973e03dd3095 | [
"BSD-3-Clause"
] | null | null | null | include/chopper/build/build_data.hpp | Felix-Droop/Chopper | 5cc214103b2d088ae400bec0fde8973e03dd3095 | [
"BSD-3-Clause"
] | null | null | null | include/chopper/build/build_data.hpp | Felix-Droop/Chopper | 5cc214103b2d088ae400bec0fde8973e03dd3095 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <chopper/build/batch.hpp>
#include <chopper/build/region.hpp>
#include <chopper/detail_parse_chopper_pack_line.hpp>
struct build_data
{
size_t hibf_num_technical_bins{};
size_t num_libfs{};
std::string hibf_max_bin_id{};
size_t hibf_max_bin{};
chopper_pack_record * hibf_max_r... | 28.9 | 70 | 0.742215 | [
"vector"
] |
3de85a249327e2e1decbd88a6ece071320bf8b87 | 546 | cpp | C++ | Leetcode/code/260-single-number-iii.cpp | skyline417/Algorithm | 2353a2b760ada35b2e22702b2283e8168e4e990c | [
"MIT"
] | null | null | null | Leetcode/code/260-single-number-iii.cpp | skyline417/Algorithm | 2353a2b760ada35b2e22702b2283e8168e4e990c | [
"MIT"
] | null | null | null | Leetcode/code/260-single-number-iii.cpp | skyline417/Algorithm | 2353a2b760ada35b2e22702b2283e8168e4e990c | [
"MIT"
] | null | null | null |
/*
题意:
一个整数数组,其中两个元素只出现一次,其余所有元素均出现两次。找出只出现一次的那两个元素。
思路:
常数空间复杂度
先求异或和 找出a^b的值
然后找出(a^b)的任意一个为1的位 第k位为1
根据这一位 把数组分成两部分 a和b各属于一部分
每一部分 可以化简为这个问题:一个整数数组,其中某个元素只出现一次,其余所有元素均出现两次。找出只出现一次的那个元素。
*/
class Solution {
public:
vector<int> singleNumber(vector<int>& nums) {
int ab=0;
fo... | 21 | 63 | 0.549451 | [
"vector"
] |
3de8a66ae1ae199768dd601980e6cc5fdd556bf1 | 568 | cpp | C++ | Vector.cpp | NullC0d3r/R6S-Trainer-Featurs | 847167fae9740bf455bf42d74293738d7c241414 | [
"MIT"
] | null | null | null | Vector.cpp | NullC0d3r/R6S-Trainer-Featurs | 847167fae9740bf455bf42d74293738d7c241414 | [
"MIT"
] | null | null | null | Vector.cpp | NullC0d3r/R6S-Trainer-Featurs | 847167fae9740bf455bf42d74293738d7c241414 | [
"MIT"
] | null | null | null |
#include "Vector.h"
Vector3::Vector3() {
}
Vector3::Vector3(float x, float y, float z)
: x(x), y(y), z(z) {
}
Vector3& Vector3::operator+=(const Vector3& vector) {
x += vector.x;
y += vector.y;
z += vector.z;
return *this;
}
Vector3& Vector3::operator-=(const Vector3& vector) {
x -= vector.x;
y -= vector.y... | 13.52381 | 53 | 0.602113 | [
"vector"
] |
3de98e065fc6335ecf3bfe25824d817de199575f | 7,047 | cc | C++ | chrome/browser/ui/webui/history_clusters/history_clusters_handler_unittest.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/ui/webui/history_clusters/history_clusters_handler_unittest.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/ui/webui/history_clusters/history_clusters_handler_unittest.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/history_clusters/history_clusters_handler.h"
#include <memory>
#include <string>
#include <vector>
#include "base/test... | 39.589888 | 80 | 0.734923 | [
"vector"
] |
3deae79f2bbf9725a82c66676c79b3bcf4f76899 | 13,188 | cpp | C++ | httpdns-20160201/src/httpdns_20160201.cpp | aliyun/alibabacloud-cpp-sdk | 0e7c0576abcd4ef1aef07d714b92654deb713c36 | [
"Apache-2.0"
] | 5 | 2021-02-01T03:20:23.000Z | 2022-01-28T02:13:49.000Z | httpdns-20160201/src/httpdns_20160201.cpp | aliyun/alibabacloud-cpp-sdk | 0e7c0576abcd4ef1aef07d714b92654deb713c36 | [
"Apache-2.0"
] | 4 | 2021-05-03T08:34:12.000Z | 2022-01-28T02:13:33.000Z | httpdns-20160201/src/httpdns_20160201.cpp | aliyun/alibabacloud-cpp-sdk | 0e7c0576abcd4ef1aef07d714b92654deb713c36 | [
"Apache-2.0"
] | 5 | 2021-04-02T02:59:04.000Z | 2022-02-24T02:33:44.000Z | // This file is auto-generated, don't edit it. Thanks.
#include <alibabacloud/httpdns_20160201.hpp>
#include <alibabacloud/endpoint_util.hpp>
#include <alibabacloud/open_api.hpp>
#include <alibabacloud/open_api_util.hpp>
#include <boost/any.hpp>
#include <boost/throw_exception.hpp>
#include <darabonba/core.hpp>
#inclu... | 56.600858 | 207 | 0.715954 | [
"vector"
] |
3deb5311a4a7bb4ff1c17c91a7e8eb419906ede0 | 5,092 | cpp | C++ | framework/core/buffer.cpp | TomasRejhons/siren | 9ef3ace7174cbdb48b9e45a2db104f3f5c4b9825 | [
"MIT"
] | null | null | null | framework/core/buffer.cpp | TomasRejhons/siren | 9ef3ace7174cbdb48b9e45a2db104f3f5c4b9825 | [
"MIT"
] | null | null | null | framework/core/buffer.cpp | TomasRejhons/siren | 9ef3ace7174cbdb48b9e45a2db104f3f5c4b9825 | [
"MIT"
] | 1 | 2021-05-26T12:06:12.000Z | 2021-05-26T12:06:12.000Z | /*
* MIT License
*
* Copyright (c) 2021 silicon-village
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, ... | 31.239264 | 111 | 0.686371 | [
"vector"
] |
3df39255e0400e7ba0ada0805f62336318d7baf8 | 2,211 | cpp | C++ | JobScheduler/JobDedup.cpp | mple/sigmod-programming-contest2013 | 900a969822f192793fa5f4152383cc9f5daafab4 | [
"MIT"
] | 1 | 2016-09-10T17:08:56.000Z | 2016-09-10T17:08:56.000Z | JobScheduler/JobDedup.cpp | mple/sigmod-programming-contest2013 | 900a969822f192793fa5f4152383cc9f5daafab4 | [
"MIT"
] | null | null | null | JobScheduler/JobDedup.cpp | mple/sigmod-programming-contest2013 | 900a969822f192793fa5f4152383cc9f5daafab4 | [
"MIT"
] | null | null | null | /*
* JobDedup.cpp
*
* Created on: Mar 29, 2013
* Author: johnchronis
*/
#include "JobDedup.h"
extern mple::TokenManager * globalmanager;
//extern mple::TokenManager * docmanager;
extern mple::JobScheduler* js;;
extern google::dense_hash_map<int, bool> wordbatch;
extern std::vector<int>* wordbatchv;
extern s... | 24.032609 | 108 | 0.647671 | [
"vector"
] |
ad014e04942b8be7e741078305a1f4941d7a9cbc | 26,338 | hpp | C++ | include/sigcxx/sigcxx.hpp | jiangrunwu/singal-and-slot | 76c274a6c6153a97bc26619094d08df13651460c | [
"MIT"
] | null | null | null | include/sigcxx/sigcxx.hpp | jiangrunwu/singal-and-slot | 76c274a6c6153a97bc26619094d08df13651460c | [
"MIT"
] | null | null | null | include/sigcxx/sigcxx.hpp | jiangrunwu/singal-and-slot | 76c274a6c6153a97bc26619094d08df13651460c | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 Freeman Zhang <zhanggyb@gmail.com>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitat... | 24.546132 | 114 | 0.643101 | [
"object"
] |
ad05201903100e960145f057f9dfdcb26036e758 | 39,504 | cpp | C++ | MoravaEngine/src/Renderer/RendererEditor.cpp | dtrajko/MoravaEngine | dab8a9e84bde6bdb5e979596c29cabccb566b9d4 | [
"Apache-2.0"
] | 168 | 2020-07-18T04:20:27.000Z | 2022-03-31T23:39:38.000Z | MoravaEngine/src/Renderer/RendererEditor.cpp | dtrajko/MoravaEngine | dab8a9e84bde6bdb5e979596c29cabccb566b9d4 | [
"Apache-2.0"
] | 5 | 2020-11-23T12:33:06.000Z | 2022-01-05T15:15:30.000Z | MoravaEngine/src/Renderer/RendererEditor.cpp | dtrajko/MoravaEngine | dab8a9e84bde6bdb5e979596c29cabccb566b9d4 | [
"Apache-2.0"
] | 8 | 2020-09-07T03:04:18.000Z | 2022-03-25T13:47:16.000Z | #include "Renderer/RendererEditor.h"
#include "Core/Application.h"
#include "Core/Profiler.h"
#include "Core/Timer.h"
#include "Framebuffer/MoravaFramebuffer.h"
#include "Mesh/GeometryFactory.h"
#include "Scene/SceneEditor.h"
#include "Platform/OpenGL/OpenGLMoravaShader.h"
#include <stdexcept>
RendererEditor::Rende... | 54.1893 | 174 | 0.71775 | [
"mesh",
"render",
"model"
] |
ad15656541ea17e85dab871b5a2bd819e49eeaca | 5,980 | cpp | C++ | tests/14-variable-transformation.cpp | USCbiostats/binaryarrays | 6bd956f1eddfe328841a2c96e99e40b194f75b26 | [
"MIT"
] | null | null | null | tests/14-variable-transformation.cpp | USCbiostats/binaryarrays | 6bd956f1eddfe328841a2c96e99e40b194f75b26 | [
"MIT"
] | null | null | null | tests/14-variable-transformation.cpp | USCbiostats/binaryarrays | 6bd956f1eddfe328841a2c96e99e40b194f75b26 | [
"MIT"
] | null | null | null | #include "tests.hpp"
BARRY_TEST_CASE("Transformation of models", "[transformation]")
{
// Reading large network
/**
set.seed(123)
x <- ergmito::rbernoulli(4, .2)
gender <- c(0,0,1,0)
x <- network::network(x, vertex.attr = list(gender = gender))
ans <- ergm::ergm.allstats(x ~... | 29.60396 | 131 | 0.590635 | [
"vector",
"model"
] |
ad1e7cf96e0a0b25fbd451cdd259774cebeeb024 | 17,351 | cpp | C++ | wpiutil/src/main/native/cpp/MemoryBuffer.cpp | carelesshippo/allwpilib | ab7ac4fbb97308473b4d6fc7f12b6e1a672f1471 | [
"BSD-3-Clause"
] | null | null | null | wpiutil/src/main/native/cpp/MemoryBuffer.cpp | carelesshippo/allwpilib | ab7ac4fbb97308473b4d6fc7f12b6e1a672f1471 | [
"BSD-3-Clause"
] | null | null | null | wpiutil/src/main/native/cpp/MemoryBuffer.cpp | carelesshippo/allwpilib | ab7ac4fbb97308473b4d6fc7f12b6e1a672f1471 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
//===--- MemoryBuffer.cpp - Memory Buffer implementation ------------------===//
//
// The LLVM Comp... | 33.175908 | 80 | 0.642557 | [
"object"
] |
ad1f2fcc4441f138726f67d6f0e8e049302e5962 | 8,731 | cc | C++ | content/browser/geolocation/geolocation_dispatcher_host.cc | justremotephone/android_external_chromium_org | 246856e61da7acf5494076c74198f2aea894a721 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-01-25T10:18:18.000Z | 2021-01-23T15:29:56.000Z | content/browser/geolocation/geolocation_dispatcher_host.cc | justremotephone/android_external_chromium_org | 246856e61da7acf5494076c74198f2aea894a721 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/geolocation/geolocation_dispatcher_host.cc | justremotephone/android_external_chromium_org | 246856e61da7acf5494076c74198f2aea894a721 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:24:13.000Z | 2020-11-04T07:24:13.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/geolocation/geolocation_dispatcher_host.h"
#include <utility>
#include "base/bind.h"
#include "base/metrics/histogram.h"
#... | 33.841085 | 79 | 0.741725 | [
"object"
] |
ad28cc316c623da2b7bf832ed60caee4581b40a3 | 1,899 | cpp | C++ | Gems/ScriptCanvas/Code/Include/ScriptCanvas/Core/Contracts/RestrictedNodeContract.cpp | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 11 | 2021-07-08T09:58:26.000Z | 2022-03-17T17:59:26.000Z | Gems/ScriptCanvas/Code/Include/ScriptCanvas/Core/Contracts/RestrictedNodeContract.cpp | RoddieKieley/o3de | e804fd2a4241b039a42d9fa54eaae17dc94a7a92 | [
"Apache-2.0",
"MIT"
] | 29 | 2021-07-06T19:33:52.000Z | 2022-03-22T10:27:49.000Z | Gems/ScriptCanvas/Code/Include/ScriptCanvas/Core/Contracts/RestrictedNodeContract.cpp | RoddieKieley/o3de | e804fd2a4241b039a42d9fa54eaae17dc94a7a92 | [
"Apache-2.0",
"MIT"
] | 4 | 2021-07-06T19:24:43.000Z | 2022-03-31T12:42:27.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "RestrictedNodeContract.h"
#include <ScriptCanvas/Core/ContractBus.h>
#include <ScriptCan... | 37.98 | 125 | 0.682464 | [
"3d"
] |
ad2bf48e97cb9040f59c249ebd5fc43f753c13ea | 2,937 | cpp | C++ | codeforces/C - Spy Syndrome 2/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/C - Spy Syndrome 2/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/C - Spy Syndrome 2/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: May/04/2018 19:11
* solution_verdict: Accepted language: GNU C++11
* run... | 22.082707 | 111 | 0.477698 | [
"vector"
] |
ad2c378889cd0e9f81f6198620220caf3efa47e8 | 3,082 | cpp | C++ | Filter_PD/PD/Safe_PD/v_Header.cpp | TomerEven/Pocket_Dictionary | 29f906855f5e52eec61d00cb6e8fa0fb5e90a8e4 | [
"Apache-2.0"
] | 2 | 2019-12-10T03:41:02.000Z | 2021-11-14T12:30:36.000Z | Filter_PD/PD/Safe_PD/v_Header.cpp | TomerEven/Pocket_Dictionary | 29f906855f5e52eec61d00cb6e8fa0fb5e90a8e4 | [
"Apache-2.0"
] | null | null | null | Filter_PD/PD/Safe_PD/v_Header.cpp | TomerEven/Pocket_Dictionary | 29f906855f5e52eec61d00cb6e8fa0fb5e90a8e4 | [
"Apache-2.0"
] | 2 | 2019-12-10T03:41:07.000Z | 2020-06-02T16:57:31.000Z | //
// Created by tomer on 10/29/19.
//
#include "v_Header.h"
v_Header::v_Header(size_t m, size_t f, size_t l) : header(m, f, l), const_header() {
size_t number_of_bits = ((m + f) << 1ULL) + 1;
if (HEADER_BLOCK_SIZE != (8 * sizeof(HEADER_BLOCK_TYPE))) {
assert(false);
}
this->vec.resize(number_... | 30.215686 | 93 | 0.615185 | [
"vector"
] |
ad32e6b6bb6772831dcfff1062479a091bd83862 | 14,465 | cpp | C++ | lexical.cpp | Drivit/Mini-C | 65cc78676055e25dfbdf0c706006615e23d9b79a | [
"MIT"
] | 1 | 2022-03-01T09:31:00.000Z | 2022-03-01T09:31:00.000Z | lexical.cpp | Drivit/Mini-C | 65cc78676055e25dfbdf0c706006615e23d9b79a | [
"MIT"
] | null | null | null | lexical.cpp | Drivit/Mini-C | 65cc78676055e25dfbdf0c706006615e23d9b79a | [
"MIT"
] | null | null | null | #include "lexical.h"
enum {
Q0,
Q1,
Q2,
Q3,
Q4,
Q5,
Q6,
Q7,
Q8,
Q9,
Q10,
Q11,
Q12,
Q13,
Q14,
Q15,
Q16,
Q17,
Q18,
Q19,
Q20,
Q21,
Q22,
Q23,
Q24,
Q25
};
int transitions[27][21] = {
... | 35.982587 | 144 | 0.435188 | [
"vector"
] |
ad334d3b69ee684111956153d31211f707e83ce5 | 15,096 | cc | C++ | instrumentation/cmplog-instructions-pass.cc | StarGazerM/AFLplusplus | 15340b85e88c72176ef303950376234abca7ee6b | [
"Apache-2.0"
] | 27 | 2022-03-01T01:09:03.000Z | 2022-03-21T13:09:56.000Z | instrumentation/cmplog-instructions-pass.cc | StarGazerM/AFLplusplus | 15340b85e88c72176ef303950376234abca7ee6b | [
"Apache-2.0"
] | 1 | 2021-07-23T21:34:32.000Z | 2021-07-23T21:34:32.000Z | instrumentation/cmplog-instructions-pass.cc | StarGazerM/AFLplusplus | 15340b85e88c72176ef303950376234abca7ee6b | [
"Apache-2.0"
] | 1 | 2022-03-01T23:56:34.000Z | 2022-03-01T23:56:34.000Z | /*
american fuzzy lop++ - LLVM CmpLog instrumentation
--------------------------------------------------
Written by Andrea Fioraldi <andreafioraldi@gmail.com>
Copyright 2015, 2016 Google Inc. All rights reserved.
Copyright 2019-2020 AFLplusplus Project. All rights reserved.
Licensed under the Apach... | 23.440994 | 80 | 0.563792 | [
"vector"
] |
ad35e2a8f70a2caf2df40e335284514658be1b25 | 1,070 | cpp | C++ | Online-Judge-Solution/Light OJ Solutions/1307 (Counting Triangles).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | Online-Judge-Solution/Light OJ Solutions/1307 (Counting Triangles).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | Online-Judge-Solution/Light OJ Solutions/1307 (Counting Triangles).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fileread freopen("in.txt","r",stdin)
#define filewrite freopen("out.txt","w",stdout)
#define ll long long int
#define FOR(i,n) for(int i=0;i<n;i++)
#define FOR(i,m) for(int i=0;i<m;i++)
#define vll vector<ll>
#define mp make_pair
#define msll map<string, ll>
#define pb push_back
using n... | 23.26087 | 60 | 0.446729 | [
"vector"
] |
ad378882b9c42091a1207662a5c405d0f6f00d70 | 1,933 | hpp | C++ | ppcnn/ppcnn_server/ppcnn_server_result.hpp | mt-st1/PP-CNN2 | a35caf4aa3081342b48556305f2b0574a3d68800 | [
"Apache-2.0"
] | 19 | 2020-09-28T20:53:20.000Z | 2022-03-14T06:22:26.000Z | ppcnn/ppcnn_server/ppcnn_server_result.hpp | mt-st1/PP-CNN2 | a35caf4aa3081342b48556305f2b0574a3d68800 | [
"Apache-2.0"
] | null | null | null | ppcnn/ppcnn_server/ppcnn_server_result.hpp | mt-st1/PP-CNN2 | a35caf4aa3081342b48556305f2b0574a3d68800 | [
"Apache-2.0"
] | 8 | 2020-09-28T20:53:26.000Z | 2022-02-15T13:52:41.000Z | /*
* Copyright 2020 Yamana Laboratory, Waseda University
* Supported by JST CREST Grant Number JPMJCR1503, Japan.
*
* 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... | 26.121622 | 76 | 0.70926 | [
"vector"
] |
ad38cf93ff28d47863ab580a6be876df26d65e1a | 1,116 | cpp | C++ | src/lib/calibration/calibration.cpp | idangerichter/CryptoWorkshop | c8d5e202fe3d02c85e58c8c01978db013a81eccd | [
"WTFPL"
] | null | null | null | src/lib/calibration/calibration.cpp | idangerichter/CryptoWorkshop | c8d5e202fe3d02c85e58c8c01978db013a81eccd | [
"WTFPL"
] | null | null | null | src/lib/calibration/calibration.cpp | idangerichter/CryptoWorkshop | c8d5e202fe3d02c85e58c8c01978db013a81eccd | [
"WTFPL"
] | null | null | null | #include "calibration.hpp"
#include "gap_score_provider.hpp"
#include "simple_score_provider.hpp"
#include <algorithm>
#include <functional>
#include <iostream>
constexpr double THRESHOLD_FLUSHED_MULTIPLIER = 0.9;
namespace Calibration
{
std::unique_ptr<ScoreProvider> Calibrate(std::vector<Measurement>& measurements_a... | 31.885714 | 99 | 0.669355 | [
"vector"
] |
ad3df6e567211ca85022dbad5491b484d0e0d19f | 1,440 | cpp | C++ | Gems/PhysX/Code/NumericalMethods/Source/Optimization/Utilities.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-20T12:39:24.000Z | 2021-07-20T12:39:24.000Z | Gems/PhysX/Code/NumericalMethods/Source/Optimization/Utilities.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/PhysX/Code/NumericalMethods/Source/Optimization/Utilities.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-20T11:07:25.000Z | 2021-07-20T11:07:25.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <NumericalMethods_precompiled.h>
#include <NumericalMethods/Optimization.h>
#include <Optim... | 35.121951 | 158 | 0.677778 | [
"3d"
] |
ad4323144beb38cda821e1b30d866d953262cfef | 965 | cpp | C++ | 41-50/47. Permutations II.cpp | zzuliLL/Leetcode- | a14fe1188da008a39d7aaf4e142ee582493b7c60 | [
"MIT"
] | null | null | null | 41-50/47. Permutations II.cpp | zzuliLL/Leetcode- | a14fe1188da008a39d7aaf4e142ee582493b7c60 | [
"MIT"
] | null | null | null | 41-50/47. Permutations II.cpp | zzuliLL/Leetcode- | a14fe1188da008a39d7aaf4e142ee582493b7c60 | [
"MIT"
] | null | null | null | //STL
class Solution {
public:
vector<vector<int>> permuteUnique(vector<int>& nums) {
vector<vector<int>> ans;
sort(nums.begin(), nums.end());
do
{
ans.push_back(nums);
}while(next_permutation(nums.begin(), nums.end()));
return ans;
}
};
//手敲的dfs
clas... | 22.44186 | 59 | 0.475648 | [
"vector"
] |
ad43ab7753a2b609fb5833a0cf951f263a4da629 | 3,245 | cpp | C++ | Core/Core/Caching/Backends/RedisBackend.cpp | d0si/vortex | a97031227d4e867986918d39eeb2d184147cf118 | [
"MIT"
] | 2 | 2019-12-27T22:06:25.000Z | 2020-01-13T18:43:29.000Z | Core/Core/Caching/Backends/RedisBackend.cpp | D0si/Vortex | a97031227d4e867986918d39eeb2d184147cf118 | [
"MIT"
] | 25 | 2020-01-29T23:04:23.000Z | 2020-04-17T06:40:11.000Z | Core/Core/Caching/Backends/RedisBackend.cpp | D0si/Vortex | a97031227d4e867986918d39eeb2d184147cf118 | [
"MIT"
] | 1 | 2022-03-09T09:14:47.000Z | 2022-03-09T09:14:47.000Z | #include <Core/Caching/Backends/RedisBackend.h>
namespace Vortex::Core::Caching::Backends {
RedisBackend::RedisBackend() {}
RedisBackend::RedisBackend(const Maze::Element& redis_config) {
set_config(redis_config);
}
RedisBackend::~RedisBackend() {
#ifdef HAS_FEATURE_CPPREDIS
if (_cli... | 25.155039 | 98 | 0.56641 | [
"vector"
] |
ad45b7fe5ec3a80e0dac806d6d5686973c1b090d | 2,480 | cpp | C++ | src/Compress.cpp | W-46ec/Huffman-Compression | 1c3e81d85f989784cdb840d9624a0ad021ed86cd | [
"MIT"
] | 1 | 2020-08-31T12:30:56.000Z | 2020-08-31T12:30:56.000Z | src/Compress.cpp | W-46ec/Huffman-Compression | 1c3e81d85f989784cdb840d9624a0ad021ed86cd | [
"MIT"
] | null | null | null | src/Compress.cpp | W-46ec/Huffman-Compression | 1c3e81d85f989784cdb840d9624a0ad021ed86cd | [
"MIT"
] | null | null | null | /*
* Compress.cpp
*
* Description: Implementation of compression function.
*
*
*
*/
#include <iostream>
#include "InBitStream.h"
#include "OutBitStream.h"
#include "FrequencyCounter.h"
#include "PriorityQueue.h"
#include "HuffmanTree.h"
#include "HeaderFormat.h"
using namespace std;
// Desc: Write the require... | 27.252747 | 77 | 0.685887 | [
"object"
] |
ad4a0261a281d32f47779411ab7278f2c8506df3 | 53 | hpp | C++ | src/boost_geometry_util_transform_variant.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_geometry_util_transform_variant.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_geometry_util_transform_variant.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/geometry/util/transform_variant.hpp>
| 26.5 | 52 | 0.830189 | [
"geometry"
] |
ad4f3727d9be633ec21bd6a252c378c81f01776e | 17,771 | cxx | C++ | private/inet/xml/xml/islands/peer.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/inet/xml/xml/islands/peer.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/inet/xml/xml/islands/peer.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | /*
* @(#)Peer.cxx 1.0 2/27/98
*
* Copyright (c) 1997 - 1999 Microsoft Corporation. All rights reserved. *
* implementation of xtag peer for XML data islands
*
*/
#include "core.hxx"
#pragma hdrstop
#include "peer.hxx"
#include "xmldom.hxx"
#include "core/com/bstr.hxx"
#include "islandshared.hxx... | 28.342903 | 136 | 0.551179 | [
"object"
] |
ad52238e3d18d89917735ff700c5f69a7a7fdf8e | 6,336 | cpp | C++ | generated-tests/memory.cpp | ArisenIO/arisen-wasm-spec-tests | 8264191d950776d6f4f79cb0736a07386f2278e1 | [
"MIT"
] | null | null | null | generated-tests/memory.cpp | ArisenIO/arisen-wasm-spec-tests | 8264191d950776d6f4f79cb0736a07386f2278e1 | [
"MIT"
] | null | null | null | generated-tests/memory.cpp | ArisenIO/arisen-wasm-spec-tests | 8264191d950776d6f4f79cb0736a07386f2278e1 | [
"MIT"
] | null | null | null | #include <wasm_spec_tests.hpp>
const string wasm_str_memory_0 = base_dir + "/arisen-wasm-spec-tests/generated-tests/wasms/memory.0.wasm";
std::vector<uint8_t> wasm_memory_0= read_wasm(wasm_str_memory_0.c_str());
BOOST_DATA_TEST_CASE(memory_0_module, boost::unit_test::data::xrange(0,1), index) { try {
TESTER tester... | 37.491124 | 108 | 0.733112 | [
"vector"
] |
ad54d79f360b3a2bd287bdc216eee54e27cebfca | 1,385 | cpp | C++ | tools/LiveCollab/LiveManager.cpp | matcool/BetterEdit | aaf3f37b4c0d7b6d8298cd099d8bd2d9699cb68f | [
"MIT"
] | 30 | 2021-01-25T22:25:05.000Z | 2022-01-22T13:18:19.000Z | tools/LiveCollab/LiveManager.cpp | matcool/BetterEdit | aaf3f37b4c0d7b6d8298cd099d8bd2d9699cb68f | [
"MIT"
] | 9 | 2021-07-03T11:41:47.000Z | 2022-03-30T15:14:46.000Z | tools/LiveCollab/LiveManager.cpp | matcool/BetterEdit | aaf3f37b4c0d7b6d8298cd099d8bd2d9699cb68f | [
"MIT"
] | 3 | 2021-07-01T20:52:24.000Z | 2022-01-13T16:16:58.000Z | #include "LiveManager.hpp"
using namespace gd;
using namespace gdmake;
using namespace gdmake::extra;
using namespace cocos2d;
using namespace cocos2d::extension;
LiveManager* g_manager;
bool LiveManager::init() {
return true;
}
LiveManager* LiveManager::sharedState() {
return g_manager;
}
bool LiveManager... | 24.298246 | 101 | 0.67509 | [
"vector"
] |
ad566e078f4a5ef6c8ce4d3d43798bddc32a996f | 58,153 | cpp | C++ | PlatformRig/DebuggingDisplays/BufferUploadDisplay.cpp | alexgithubber/XLE-Another-Fork | cdd8682367d9e9fdbdda9f79d72bb5b1499cec46 | [
"MIT"
] | null | null | null | PlatformRig/DebuggingDisplays/BufferUploadDisplay.cpp | alexgithubber/XLE-Another-Fork | cdd8682367d9e9fdbdda9f79d72bb5b1499cec46 | [
"MIT"
] | null | null | null | PlatformRig/DebuggingDisplays/BufferUploadDisplay.cpp | alexgithubber/XLE-Another-Fork | cdd8682367d9e9fdbdda9f79d72bb5b1499cec46 | [
"MIT"
] | null | null | null | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "BufferUploadDisplay.h"
#include "../../RenderCore/Techniques/ResourceBox.h"
#include "../../RenderOverlays/OverlayUtils.h"
#include ... | 51.145998 | 293 | 0.587983 | [
"render",
"vector"
] |
ad5b38c6937f8364a53cbfd66d05baaddb431d3a | 2,608 | cpp | C++ | multiview/multiview_cpp/src/perceive/geometry/line-2d.cpp | prcvlabs/multiview | 1a03e14855292967ffb0c0ec7fff855c5abbc9d2 | [
"Apache-2.0"
] | 5 | 2021-09-03T23:12:08.000Z | 2022-03-04T21:43:32.000Z | multiview/multiview_cpp/src/perceive/geometry/line-2d.cpp | prcvlabs/multiview | 1a03e14855292967ffb0c0ec7fff855c5abbc9d2 | [
"Apache-2.0"
] | 3 | 2021-09-08T02:57:46.000Z | 2022-02-26T05:33:02.000Z | multiview/multiview_cpp/src/perceive/geometry/line-2d.cpp | prcvlabs/multiview | 1a03e14855292967ffb0c0ec7fff855c5abbc9d2 | [
"Apache-2.0"
] | 2 | 2021-09-26T03:14:40.000Z | 2022-01-26T06:42:52.000Z |
#include "line-2d.hpp"
#include "perceive/utils/eigen-helpers.hpp"
#include "stdinc.hpp"
namespace perceive
{
template<typename T>
Vector3r fit_2d_line_T(const T* Xs, unsigned N, unsigned stride)
{
Vector3r line;
MatrixXr A(N, 3);
for(unsigned i = 0; i < N; ++i) {
for(unsigned j = 0; j < 3; ++j) A(i, j... | 25.821782 | 77 | 0.559816 | [
"vector"
] |
ad5be264c43ab996c869da43c215f5bb97fc421a | 22,541 | cpp | C++ | z2clib/Scanner.cpp | MasterZean/z2c-compiler-cpp | 20ceae268b2197439a4d0ff68e317d6d443c7840 | [
"Apache-2.0"
] | null | null | null | z2clib/Scanner.cpp | MasterZean/z2c-compiler-cpp | 20ceae268b2197439a4d0ff68e317d6d443c7840 | [
"Apache-2.0"
] | null | null | null | z2clib/Scanner.cpp | MasterZean/z2c-compiler-cpp | 20ceae268b2197439a4d0ff68e317d6d443c7840 | [
"Apache-2.0"
] | null | null | null | #include "Scanner.h"
char tab1[24] = { '+', '-', '*', '/', '=', ';', '(', ')', '.', '<', '>', '&', ',', '%', '|', '^', ':', '!', '[', ']', '@', '~', '?', '#' };
char tab2[9] = { '<', '>', '=', '!', '<', '>', ':', '+', '-' };
char tab3[9] = { '<', '>', '=', '=', '=', '=', ':', '+', '-' };
void Scanner::Scan(bo... | 23.286157 | 141 | 0.578058 | [
"vector"
] |
ad63b63f4918465918e2b69175a3e0b6cff5c186 | 3,180 | cpp | C++ | src/core/lib/lattice/elemparams.cpp | jacobmas/PALISADE | 4cd6a0e1efa58379797c15fa2fcfdca3a2d49d8d | [
"BSD-2-Clause"
] | 6 | 2019-03-19T04:12:00.000Z | 2022-01-27T11:23:01.000Z | src/core/lib/lattice/elemparams.cpp | jacobmas/PALISADE | 4cd6a0e1efa58379797c15fa2fcfdca3a2d49d8d | [
"BSD-2-Clause"
] | null | null | null | src/core/lib/lattice/elemparams.cpp | jacobmas/PALISADE | 4cd6a0e1efa58379797c15fa2fcfdca3a2d49d8d | [
"BSD-2-Clause"
] | 3 | 2019-04-30T07:07:50.000Z | 2022-01-27T06:59:53.000Z | /*
* @file elemparams.cpp - element parameters for palisade
* @author TPOC: palisade@njit.edu
*
* @copyright Copyright (c) 2017, New Jersey Institute of Technology (NJIT)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the f... | 36.551724 | 102 | 0.75283 | [
"object"
] |
ad63ddcc9ca1877ce1f8f65b343f4d863ab4406b | 295 | cpp | C++ | holder for older programs/C++/vector01.cpp | GabrielSorensen/CSIS3150 | da1c851ff1c537be0bb84c054f69f5a304edc7c7 | [
"MIT"
] | null | null | null | holder for older programs/C++/vector01.cpp | GabrielSorensen/CSIS3150 | da1c851ff1c537be0bb84c054f69f5a304edc7c7 | [
"MIT"
] | null | null | null | holder for older programs/C++/vector01.cpp | GabrielSorensen/CSIS3150 | da1c851ff1c537be0bb84c054f69f5a304edc7c7 | [
"MIT"
] | null | null | null | //operator overloading
// ratio ver. 2
#include <iostream>
#include <vector>
using namespace std;
int main () {
vector<int> squares;
for (int i=0; i <= 100; i++) {
squares.push_back(i*i);
}
for (int i=0; i< squares.size(); i++) {
cout << squares[i] << endl;
}
}
| 14.75 | 41 | 0.555932 | [
"vector"
] |
ad63ffcb5151ba84b03e079305090b013983168a | 12,865 | c++ | C++ | src/lua/helpers.c++ | therealaquarius/vega | 7caf97e911ca8df48ff450620c73829b9b76f0d9 | [
"MIT"
] | null | null | null | src/lua/helpers.c++ | therealaquarius/vega | 7caf97e911ca8df48ff450620c73829b9b76f0d9 | [
"MIT"
] | null | null | null | src/lua/helpers.c++ | therealaquarius/vega | 7caf97e911ca8df48ff450620c73829b9b76f0d9 | [
"MIT"
] | null | null | null | #include "helpers.h"
#include "types.h"
#include "main.h"
namespace lua
{
namespace h
{
void Data::operator()( lua_CFunction gc, void* data )
{
Lua::dec();
Table table( m_lua );
Arguments upvalues;
upvalues.add( data );
table.se... | 24.932171 | 99 | 0.363311 | [
"object"
] |
ad6bae8dff395383328590a0416a8d505b1aeb0a | 5,814 | cpp | C++ | common/WhirlyGlobeLib/src/FontTextureManager.cpp | zzjiong/WhirlyGlobe | f309004b9066f3466c4593d359234869c9e8f0a7 | [
"Apache-2.0"
] | null | null | null | common/WhirlyGlobeLib/src/FontTextureManager.cpp | zzjiong/WhirlyGlobe | f309004b9066f3466c4593d359234869c9e8f0a7 | [
"Apache-2.0"
] | 2 | 2021-01-04T01:27:26.000Z | 2021-01-08T01:30:41.000Z | common/WhirlyGlobeLib/src/FontTextureManager.cpp | zzjiong/WhirlyGlobe | f309004b9066f3466c4593d359234869c9e8f0a7 | [
"Apache-2.0"
] | null | null | null | /*
* FontTextureManager.mm
* WhirlyGlobeLib
*
* Created by Steve Gifford on 4/15/13.
* Copyright 2011-2019 mousebird consulting
*
* 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... | 27.685714 | 149 | 0.626075 | [
"vector"
] |
ad73006ef13c4a9204a399c3991aecb05416c50a | 4,394 | cpp | C++ | ImageCompressor.cpp | nimble0/rsic | e94f2e226fa68e7495c7423f1845b01edff6b2fe | [
"Apache-2.0"
] | null | null | null | ImageCompressor.cpp | nimble0/rsic | e94f2e226fa68e7495c7423f1845b01edff6b2fe | [
"Apache-2.0"
] | null | null | null | ImageCompressor.cpp | nimble0/rsic | e94f2e226fa68e7495c7423f1845b01edff6b2fe | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016 Erik Crevel
*
* 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 i... | 26.154762 | 92 | 0.679563 | [
"vector"
] |
ad753c24f954626de52b49fafb591698c3b2e0af | 13,065 | cxx | C++ | Studio/src/Groom/ShapeWorksGroom.cxx | amylenz/ShapeWorks | 78c2ee067a23e31f5b83d0121e60addb1b0bf462 | [
"MIT"
] | null | null | null | Studio/src/Groom/ShapeWorksGroom.cxx | amylenz/ShapeWorks | 78c2ee067a23e31f5b83d0121e60addb1b0bf462 | [
"MIT"
] | null | null | null | Studio/src/Groom/ShapeWorksGroom.cxx | amylenz/ShapeWorks | 78c2ee067a23e31f5b83d0121e60addb1b0bf462 | [
"MIT"
] | null | null | null | #include <ShapeWorksGroom.h>
#include <tinyxml.h>
#include <sstream>
#include <iostream>
#include <vector>
#include <map>
#include <stdexcept>
#include "vnl/vnl_vector.h"
#include "bounding_box.h"
#include "itkConnectedComponentImageFilter.h"
#include "itkImageRegionIterator.h"
#include "itkImageRegionIteratorWithInd... | 34.472296 | 100 | 0.627248 | [
"vector"
] |
ad7d879ffe1d6d27200f68fb281c4f100eba3243 | 1,690 | cpp | C++ | libraries/ADXL335/ADXL335.cpp | whileman133/balloon_sat | 2ab016cc65d469230859014ab486567383269378 | [
"MIT"
] | null | null | null | libraries/ADXL335/ADXL335.cpp | whileman133/balloon_sat | 2ab016cc65d469230859014ab486567383269378 | [
"MIT"
] | null | null | null | libraries/ADXL335/ADXL335.cpp | whileman133/balloon_sat | 2ab016cc65d469230859014ab486567383269378 | [
"MIT"
] | null | null | null | #include "Arduino.h"
#include "ADXL335.h"
ADXL335::ADXL335( float aref, int x_pin, int y_pin, int z_pin, MUX* mux, int muxPin )
{
_aref = aref;
_x_pin = x_pin;
_y_pin = y_pin;
_z_pin = z_pin;
_mux = mux;
_muxPin = muxPin;
}
void ADXL335::begin(void)
{
if( _mux )
{
pinMode( _muxPin, INPUT);
} // end if
... | 14.824561 | 85 | 0.628402 | [
"object"
] |
ad821eb42f78f3fe871bbc8e116be2b8278e647f | 4,364 | cpp | C++ | em andamento/fluxos/sources/flowsalg.cpp | kleberkruger/trabalhos-de-grafos | f55294909df093511f2b54c0929703c27c074636 | [
"MIT"
] | null | null | null | em andamento/fluxos/sources/flowsalg.cpp | kleberkruger/trabalhos-de-grafos | f55294909df093511f2b54c0929703c27c074636 | [
"MIT"
] | null | null | null | em andamento/fluxos/sources/flowsalg.cpp | kleberkruger/trabalhos-de-grafos | f55294909df093511f2b54c0929703c27c074636 | [
"MIT"
] | null | null | null | //
// Created by Kleber Kruger on 2019-06-04.
//
#include "flowsalg.h"
enum Color {
WHITE, GRAY, BLACK
};
struct SearchVertex {
int vertex;
Edge *parent;
Color color;
explicit SearchVertex(int vertex) : vertex(vertex), parent(nullptr), color(WHITE) {}
};
bool BFS(const Graph &graph, int s, int ... | 29.093333 | 105 | 0.501833 | [
"vector"
] |
ad88c91f699e30b524b8dcd130ec6e336e58f830 | 12,662 | cpp | C++ | eospac-wrapper/eospac_wrapper.cpp | lanl/singularity-eos | c35669b93a492903ad4ce7a15211bd42b7c88d37 | [
"BSD-3-Clause"
] | 3 | 2021-04-14T15:08:37.000Z | 2021-06-28T16:32:19.000Z | eospac-wrapper/eospac_wrapper.cpp | lanl/singularity-eos | c35669b93a492903ad4ce7a15211bd42b7c88d37 | [
"BSD-3-Clause"
] | 70 | 2021-04-15T23:08:34.000Z | 2022-03-31T17:43:18.000Z | eospac-wrapper/eospac_wrapper.cpp | lanl/singularity-eos | c35669b93a492903ad4ce7a15211bd42b7c88d37 | [
"BSD-3-Clause"
] | 2 | 2021-05-21T16:59:30.000Z | 2021-08-17T20:52:38.000Z | //======================================================================
// sesame2spiner tool for converting eospac to spiner
// Author: Jonah Miller (jonahm@lanl.gov)
// © 2021. Triad National Security, LLC. All rights reserved. This
// program was produced under U.S. Government contract 89233218CNA000001
// for Los... | 37.797015 | 90 | 0.688991 | [
"vector"
] |
ad894c9b01ac85413461303fab82ba167021b423 | 9,036 | cpp | C++ | Gem/Code/Source/SceneReloadSoakTestComponent.cpp | Bindless-Chicken/o3de-atom-sampleviewer | 13b11996079675445ce4e321f53c3ac79e01702d | [
"Apache-2.0",
"MIT"
] | 15 | 2021-07-07T02:16:06.000Z | 2022-03-22T07:39:06.000Z | Gem/Code/Source/SceneReloadSoakTestComponent.cpp | Bindless-Chicken/o3de-atom-sampleviewer | 13b11996079675445ce4e321f53c3ac79e01702d | [
"Apache-2.0",
"MIT"
] | 66 | 2021-07-07T00:01:05.000Z | 2022-03-28T06:37:41.000Z | Gem/Code/Source/SceneReloadSoakTestComponent.cpp | Bindless-Chicken/o3de-atom-sampleviewer | 13b11996079675445ce4e321f53c3ac79e01702d | [
"Apache-2.0",
"MIT"
] | 13 | 2021-07-06T18:21:33.000Z | 2022-01-04T18:29:18.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <SceneReloadSoakTestComponent.h>
#include <SampleComponentManager.h>
#include <SampleComp... | 40.520179 | 239 | 0.634683 | [
"render",
"model",
"transform",
"3d"
] |
ad8b0978e92d8ab654be41a2cba2f0e2d014b54f | 538 | cpp | C++ | lesson15_NumberSolitaire.cpp | Nadesri/my-codility-solutions | 76a724c262f5be7abf58bfad2e80874e1dedbf52 | [
"MIT"
] | null | null | null | lesson15_NumberSolitaire.cpp | Nadesri/my-codility-solutions | 76a724c262f5be7abf58bfad2e80874e1dedbf52 | [
"MIT"
] | null | null | null | lesson15_NumberSolitaire.cpp | Nadesri/my-codility-solutions | 76a724c262f5be7abf58bfad2e80874e1dedbf52 | [
"MIT"
] | null | null | null | #include <algorithm>
int calcMaxScoreAtI(vector<int> &aMaxSoFar, int currSquare, int i);
int solution(vector<int> &A) {
int n = A.size();
vector<int> aScoreAt(n);
for (int i=0; i < n; i++) {
aScoreAt[i] = calcMaxScoreAtI(aScoreAt, A[i], i);
}
return aScoreAt[n-1];
}
int calcMaxScoreAtI(ve... | 24.454545 | 68 | 0.591078 | [
"vector"
] |
ad8f2682593a2dbc9ccb934e28db9affcabe82cc | 1,691 | cpp | C++ | src/visualizer/Display-definitions.cpp | lefthandwriter/Kimera-VIO | 641576fd86bdecbd663b4db3cb068f49502f3a2c | [
"BSD-2-Clause"
] | 1,024 | 2019-09-20T22:55:09.000Z | 2022-03-30T13:00:14.000Z | src/visualizer/Display-definitions.cpp | lefthandwriter/Kimera-VIO | 641576fd86bdecbd663b4db3cb068f49502f3a2c | [
"BSD-2-Clause"
] | 154 | 2019-09-23T13:10:33.000Z | 2022-03-07T02:36:52.000Z | src/visualizer/Display-definitions.cpp | lefthandwriter/Kimera-VIO | 641576fd86bdecbd663b4db3cb068f49502f3a2c | [
"BSD-2-Clause"
] | 314 | 2019-09-20T23:49:05.000Z | 2022-03-30T06:21:38.000Z | /* ----------------------------------------------------------------------------
* Copyright 2017, Massachusetts Institute of Technology,
* Cambridge, MA 02139
* All Rights Reserved
* Authors: Luca Carlone, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* -------------------... | 33.156863 | 80 | 0.637493 | [
"mesh",
"3d"
] |
ad91906d14f82f4f56cbfdedaf3773173e28d1cc | 12,866 | cpp | C++ | OgreMain/src/OgreDecal.cpp | Stazer/ogre-next | 4d3aa2aedf4575ac8a9e32a4e2af859562752d51 | [
"MIT"
] | 1 | 2021-05-12T18:01:21.000Z | 2021-05-12T18:01:21.000Z | OgreMain/src/OgreDecal.cpp | Stazer/ogre-next | 4d3aa2aedf4575ac8a9e32a4e2af859562752d51 | [
"MIT"
] | 1 | 2020-07-25T19:20:07.000Z | 2020-07-25T19:20:07.000Z | OgreMain/src/OgreDecal.cpp | Stazer/ogre-next | 4d3aa2aedf4575ac8a9e32a4e2af859562752d51 | [
"MIT"
] | 1 | 2021-09-28T18:44:28.000Z | 2021-09-28T18:44:28.000Z | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2018 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | 43.466216 | 99 | 0.515933 | [
"object",
"shape"
] |
74f12824ee823bf9e497d323f31b0077a83fca45 | 28,270 | cc | C++ | old-software/kpixSw/sidApi/online/SidLink.cc | slaclab/kpix | abf5b87f9a5d25e4810fc5be523bdcc76c5cba91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | old-software/kpixSw/sidApi/online/SidLink.cc | slaclab/kpix | abf5b87f9a5d25e4810fc5be523bdcc76c5cba91 | [
"BSD-3-Clause-LBNL"
] | 3 | 2021-04-06T08:33:01.000Z | 2021-04-30T16:16:33.000Z | old-software/kpixSw/sidApi/online/SidLink.cc | slaclab/kpix | abf5b87f9a5d25e4810fc5be523bdcc76c5cba91 | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-12-12T22:58:44.000Z | 2020-12-12T22:58:44.000Z | //-----------------------------------------------------------------------------
// File : SidLink.cc
// Author : Ryan Herbst <rherbst@slac.stanford.edu>
// Created : 10/26/2006
// Project : SID Electronics API
//-----------------------------------------------------------------------------
/... | 30.332618 | 121 | 0.547612 | [
"object"
] |
74fd3d87784a02af76034c44c8e83436d78c8318 | 5,595 | cpp | C++ | CodeSignal/Company Challenges/SpaceX/cpuEmulator.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 6 | 2018-11-26T02:38:07.000Z | 2021-07-28T00:16:41.000Z | CodeSignal/Company Challenges/SpaceX/cpuEmulator.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 1 | 2021-05-30T09:25:53.000Z | 2021-06-05T08:33:56.000Z | CodeSignal/Company Challenges/SpaceX/cpuEmulator.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 4 | 2020-04-16T07:15:01.000Z | 2020-12-04T06:26:07.000Z | /*SpaceX is testing flight software subroutines (i.e., programs that consist of sequences of instructions) for a custom rocket CPU. To ensure that the software runs correctly before it's loaded into the rocket, you need to create a CPU simulator.
The CPU has 43 32-bit unsigned integer registers, which are named R00..R... | 33.704819 | 396 | 0.575514 | [
"vector"
] |
2d01bac511df0197991659e1a068e45ca97e0378 | 4,760 | hpp | C++ | include/Core/Castor3D/Material/Material.hpp | Mu-L/Castor3D | 7b9c6e7be6f7373ad60c0811d136c0004e50e76b | [
"MIT"
] | 245 | 2015-10-29T14:31:45.000Z | 2022-03-31T13:04:45.000Z | include/Core/Castor3D/Material/Material.hpp | Mu-L/Castor3D | 7b9c6e7be6f7373ad60c0811d136c0004e50e76b | [
"MIT"
] | 64 | 2016-03-11T19:45:05.000Z | 2022-03-31T23:58:33.000Z | include/Core/Castor3D/Material/Material.hpp | Mu-L/Castor3D | 7b9c6e7be6f7373ad60c0811d136c0004e50e76b | [
"MIT"
] | 11 | 2018-05-24T09:07:43.000Z | 2022-03-21T21:05:20.000Z | /*
See LICENSE file in root folder
*/
#ifndef ___C3D_Material_H___
#define ___C3D_Material_H___
#include "MaterialModule.hpp"
#include "Castor3D/Material/Pass/PassModule.hpp"
#include "Castor3D/Render/RenderModule.hpp"
#include <CastorUtils/Data/TextWriter.hpp>
namespace castor3d
{
class Material
: public castor:... | 24.791667 | 72 | 0.659244 | [
"render"
] |
2d01dd2d349991240a196ec88a421f6bb1768fa3 | 46,099 | hpp | C++ | include/linAlg.hpp | motchy869/motchyMathLib | 356676beef321902440ddf53b262dee57d335f44 | [
"MIT"
] | null | null | null | include/linAlg.hpp | motchy869/motchyMathLib | 356676beef321902440ddf53b262dee57d335f44 | [
"MIT"
] | null | null | null | include/linAlg.hpp | motchy869/motchyMathLib | 356676beef321902440ddf53b262dee57d335f44 | [
"MIT"
] | null | null | null | /**
* @author motchy (motchy869[at]gmail.com)
* @brief Linear Algebra library
*/
#pragma once
#include <cassert>
#include <cmath>
#include <complex>
#include <cstddef>
#include <cstring>
#include <iostream>
#include <numeric>
#include "common.hpp"
#include "analysis.hpp"
namespace MathLib {
namespace LinAlg {
... | 46.099 | 215 | 0.508015 | [
"vector"
] |
2d02eec6c1fa1455c5323333f2ec7939f706d9ce | 6,520 | hpp | C++ | navigation/teb_local_planner/include/teb_local_planner/homotopy_class_planner.hpp | mrsd16teamd/loco_car | 36e4ed685f9463ad689ca72eec80e0f05f1ad66c | [
"MIT"
] | 48 | 2016-11-10T06:00:27.000Z | 2022-03-01T12:57:23.000Z | navigation/teb_local_planner/include/teb_local_planner/homotopy_class_planner.hpp | mrsd16teamd/loco_car | 36e4ed685f9463ad689ca72eec80e0f05f1ad66c | [
"MIT"
] | 6 | 2017-04-03T05:39:06.000Z | 2017-07-27T02:35:44.000Z | navigation/teb_local_planner/include/teb_local_planner/homotopy_class_planner.hpp | mrsd16teamd/loco_car | 36e4ed685f9463ad689ca72eec80e0f05f1ad66c | [
"MIT"
] | 20 | 2017-02-28T13:24:31.000Z | 2021-12-06T12:36:46.000Z | /*********************************************************************
*
* Software License Agreement (BSD License)
*
* Copyright (c) 2016,
* TU Dortmund - Institute of Control Theory and Systems Engineering.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* m... | 43.466667 | 179 | 0.655215 | [
"vector"
] |
2d06ffa7dff0754d04c25d27a0e4e38615152ca4 | 552,328 | cpp | C++ | centrosome/_filter.cpp | cclauss/centrosome | 70373585d6d742c3f8f7ea844b5159861665c87d | [
"BSD-3-Clause"
] | null | null | null | centrosome/_filter.cpp | cclauss/centrosome | 70373585d6d742c3f8f7ea844b5159861665c87d | [
"BSD-3-Clause"
] | null | null | null | centrosome/_filter.cpp | cclauss/centrosome | 70373585d6d742c3f8f7ea844b5159861665c87d | [
"BSD-3-Clause"
] | null | null | null | /* Generated by Cython 0.27.3 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
#error Cython ... | 41.345011 | 906 | 0.615162 | [
"object",
"shape"
] |
2d0a1868525cf17c6d90f3a04617c6c22e182a58 | 11,633 | cpp | C++ | src/engine.cpp | davemoore22/libtcod-painters-algorithm | b67118b5d93150b80a1dcdf247f3433f648415f1 | [
"MIT"
] | 7 | 2019-05-18T06:59:03.000Z | 2020-08-01T01:50:55.000Z | src/engine.cpp | davemoore22/libtcod-painters-algorithm | b67118b5d93150b80a1dcdf247f3433f648415f1 | [
"MIT"
] | null | null | null | src/engine.cpp | davemoore22/libtcod-painters-algorithm | b67118b5d93150b80a1dcdf247f3433f648415f1 | [
"MIT"
] | null | null | null | // Copyright 2019 Dave Moore
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribut... | 27.830144 | 120 | 0.601736 | [
"render"
] |
2d164219c2a5b74131f7b1c7b4af2d1a619e6acb | 18,271 | cpp | C++ | homer.cpp | gleybersonandrade/JCTaxi | db28f0801d423e89f1465ff4b15852dbdbae4364 | [
"MIT"
] | null | null | null | homer.cpp | gleybersonandrade/JCTaxi | db28f0801d423e89f1465ff4b15852dbdbae4364 | [
"MIT"
] | null | null | null | homer.cpp | gleybersonandrade/JCTaxi | db28f0801d423e89f1465ff4b15852dbdbae4364 | [
"MIT"
] | null | null | null | /* CHARACTER */
static GLuint Torso= 1;
static GLuint UppLeftArm= 2;
static GLuint LwrLeftArm= 3;
static GLuint UppRightArm= 4;
static GLuint LwrRightArm= 5;
static GLuint UppRightLeg= 6;
static GLuint LwrRightLeg= 7;
static GLuint UppLeftLeg= 6;
static GLuint LwrLeftLeg= 7;
static GLuint HomerHead= 8;
GLint toggle = ... | 25.13205 | 97 | 0.652291 | [
"object",
"model",
"3d"
] |
2d19f14274a86ef678101a71836a98a2f54bc5d5 | 3,023 | cpp | C++ | src/tasker.cpp | pirobtumen/Remember | 5d218d9c0e353ff1df7695486c794288f1ba0a96 | [
"MIT"
] | null | null | null | src/tasker.cpp | pirobtumen/Remember | 5d218d9c0e353ff1df7695486c794288f1ba0a96 | [
"MIT"
] | null | null | null | src/tasker.cpp | pirobtumen/Remember | 5d218d9c0e353ff1df7695486c794288f1ba0a96 | [
"MIT"
] | null | null | null | // -----------------------------------------------------------------------------
//
// MIT License
//
// Copyright (c) 2016 Alberto Sola
//
// 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 ... | 31.821053 | 81 | 0.47701 | [
"vector"
] |
2d1a8ee7804875df92f90850588e2d7668faa53e | 1,957 | cpp | C++ | src/water/anim/AnimatorGerstner.cpp | WannaBeFaster/water | bcda6c5cfd17ad3fef7b0fdce03353827c6e7ee4 | [
"MIT"
] | 5 | 2019-09-18T18:59:30.000Z | 2019-09-23T14:25:15.000Z | src/water/anim/AnimatorGerstner.cpp | WannaBeFaster/water | bcda6c5cfd17ad3fef7b0fdce03353827c6e7ee4 | [
"MIT"
] | null | null | null | src/water/anim/AnimatorGerstner.cpp | WannaBeFaster/water | bcda6c5cfd17ad3fef7b0fdce03353827c6e7ee4 | [
"MIT"
] | null | null | null | #include "../../headers.h"
#include "../scene/Patch.h"
#include "AnimatorGerstner.h"
//-------------------------------------------------------------------------------------------------
void AnimatorGerstner::addWave(const WaveSettings& wave)
{
waves_.push_back(wave);
}
//-----------------------------------------... | 24.4625 | 99 | 0.422075 | [
"vector"
] |
2d23bc6d78e023653a27e8164492c3bf91ea7d21 | 1,755 | cpp | C++ | lib/projectfs/projectstructure.cpp | NablaVM/libnabla | 01fcc87c7b487be13d63bffeec2e4355cbfe69a2 | [
"MIT"
] | null | null | null | lib/projectfs/projectstructure.cpp | NablaVM/libnabla | 01fcc87c7b487be13d63bffeec2e4355cbfe69a2 | [
"MIT"
] | null | null | null | lib/projectfs/projectstructure.cpp | NablaVM/libnabla | 01fcc87c7b487be13d63bffeec2e4355cbfe69a2 | [
"MIT"
] | null | null | null | #include "projectstructure.hpp"
namespace NABLA
{
// ---------------------------------------------------------------
//
// ---------------------------------------------------------------
ProjectStructure::ProjectStructure()
{
clear();
}
// ----------------------------------------... | 26.19403 | 71 | 0.239886 | [
"vector"
] |
2d2a694ab3f40b23223331ff2b7bb5345b72c022 | 2,759 | cpp | C++ | src/applib/AppCfgData.cpp | jxmot/esp8266-dht-udp | ea35ccf622b98c50b648a0ad5513dd6c99b0b41f | [
"MIT"
] | 1 | 2018-06-15T08:56:51.000Z | 2018-06-15T08:56:51.000Z | src/applib/AppCfgData.cpp | jxmot/esp8266-dht-udp | ea35ccf622b98c50b648a0ad5513dd6c99b0b41f | [
"MIT"
] | 15 | 2018-01-28T03:05:08.000Z | 2020-11-21T16:00:41.000Z | src/applib/AppCfgData.cpp | jxmot/esp8266-dht-udp | ea35ccf622b98c50b648a0ad5513dd6c99b0b41f | [
"MIT"
] | null | null | null | /* ************************************************************************ */
/*
AppCfgData.cpp - Intended to provide application configuration data, this
could be things such as -
1) Application name
2) Feature control flags. A "debug mute" is implemented here.
3) Text message (be ca... | 26.27619 | 78 | 0.601305 | [
"object"
] |
2d2a7a293b724f4a8f9e39128a1cd5d27379530c | 2,620 | cpp | C++ | api_test/main.cpp | jasoncoposky/scratch | 9ae7f73bfdfc787a44be2e963ad6889a0aac6f25 | [
"BSD-3-Clause"
] | null | null | null | api_test/main.cpp | jasoncoposky/scratch | 9ae7f73bfdfc787a44be2e963ad6889a0aac6f25 | [
"BSD-3-Clause"
] | 2 | 2017-02-21T18:11:43.000Z | 2020-10-05T20:10:02.000Z | api_test/main.cpp | jasoncoposky/scratch | 9ae7f73bfdfc787a44be2e963ad6889a0aac6f25 | [
"BSD-3-Clause"
] | 1 | 2020-02-16T11:24:12.000Z | 2020-02-16T11:24:12.000Z |
// =-=-=-=-=-=-=-
// STL Includes
#include <iostream>
#include <string>
#include <functional>
// =-=-=-=-=-=-=-
// dlopen, etc
#include <dlfcn.h>
#include "operation_manager.hpp"
#include "keyValPair.hpp"
void init_rule_engine(
const std::string& _rule_file,
bp::object& _rule_context ) {
... | 25.436893 | 100 | 0.560687 | [
"object"
] |
2d2b5abd37edbf7472155a21d884710b2e1e0145 | 4,563 | cpp | C++ | test/common/graph_test.cpp | ScottLiao920/noisepage | 4ffb238529645efcaae99255f84d002f8d7fdf7d | [
"MIT"
] | 971 | 2020-09-13T10:24:02.000Z | 2022-03-31T07:02:51.000Z | test/common/graph_test.cpp | ScottLiao920/noisepage | 4ffb238529645efcaae99255f84d002f8d7fdf7d | [
"MIT"
] | 1,019 | 2018-07-20T23:11:10.000Z | 2020-09-10T06:41:42.000Z | test/common/graph_test.cpp | ScottLiao920/noisepage | 4ffb238529645efcaae99255f84d002f8d7fdf7d | [
"MIT"
] | 318 | 2018-07-23T16:48:16.000Z | 2020-09-07T09:46:31.000Z | #include "common/graph.h"
#include "test_util/test_harness.h"
namespace noisepage {
using common::Graph;
class GraphTest : public TerrierTest {};
// ----------------------------------------------------------------------------
// Test Utilities
// --------------------------------------------------------------------... | 26.074286 | 110 | 0.586675 | [
"vector"
] |
2d353cff83d31fca80770dbd98b3910b3e05afb4 | 5,131 | cpp | C++ | ref/src/Chapter07/smart sweepers - v1.1/CMinesweeper.cpp | kugao222/geneticAlgorithmInLua | 9bfd2a443f9492759027791a2b2b41b9467241b2 | [
"MIT"
] | null | null | null | ref/src/Chapter07/smart sweepers - v1.1/CMinesweeper.cpp | kugao222/geneticAlgorithmInLua | 9bfd2a443f9492759027791a2b2b41b9467241b2 | [
"MIT"
] | null | null | null | ref/src/Chapter07/smart sweepers - v1.1/CMinesweeper.cpp | kugao222/geneticAlgorithmInLua | 9bfd2a443f9492759027791a2b2b41b9467241b2 | [
"MIT"
] | null | null | null | #include "CMinesweeper.h"
//-----------------------------------constructor-------------------------
//
//-----------------------------------------------------------------------
CMinesweeper::CMinesweeper():
m_dRotation(RandFloat()*CParams::dTwoPi),
m_lTrack(0.1... | 27.586022 | 75 | 0.581953 | [
"vector",
"transform"
] |
2d38b0856cbaef90a1ca4b3aed8503e945fe8c33 | 7,585 | inl | C++ | Common/DyMath/Include/Math/Type/Inline/DVector4/Simd/DVector4TF32.inl | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | 4 | 2019-03-17T19:46:54.000Z | 2019-12-09T20:11:01.000Z | Common/DyMath/Include/Math/Type/Inline/DVector4/Simd/DVector4TF32.inl | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | 11 | 2019-06-09T13:53:27.000Z | 2020-02-09T09:47:28.000Z | Common/DyMath/Include/Math/Type/Inline/DVector4/Simd/DVector4TF32.inl | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | 1 | 2019-06-04T15:20:18.000Z | 2019-06-04T15:20:18.000Z | #pragma once
///
/// MIT License
/// Copyright (c) 2018-2019 Jongmin Yun
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
/// AUT... | 29.628906 | 113 | 0.703626 | [
"vector"
] |
2d396a5644e120d93057121de5a60662b4642778 | 4,018 | cpp | C++ | src/C/Security-57031.40.6/Security/libsecurity_transform/lib/Utilities.cpp | GaloisInc/hacrypto | 5c99d7ac73360e9b05452ac9380c1c7dc6784849 | [
"BSD-3-Clause"
] | 34 | 2015-02-04T18:03:14.000Z | 2020-11-10T06:45:28.000Z | src/C/Security-57031.40.6/Security/libsecurity_transform/lib/Utilities.cpp | GaloisInc/hacrypto | 5c99d7ac73360e9b05452ac9380c1c7dc6784849 | [
"BSD-3-Clause"
] | 5 | 2015-06-30T21:17:00.000Z | 2016-06-14T22:31:51.000Z | src/C/Security-57031.40.6/Security/libsecurity_transform/lib/Utilities.cpp | GaloisInc/hacrypto | 5c99d7ac73360e9b05452ac9380c1c7dc6784849 | [
"BSD-3-Clause"
] | 15 | 2015-10-29T14:21:58.000Z | 2022-01-19T07:33:14.000Z | /*
* Copyright (c) 2011,2014 Apple Inc. All Rights Reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* c... | 28.7 | 137 | 0.729467 | [
"object"
] |
2d3b043c4484aafa6e98e47f97157340be8f8f13 | 637 | hpp | C++ | audio/Device.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | audio/Device.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | audio/Device.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #ifndef ___INANITY_AUDIO_DEVICE_HPP___
#define ___INANITY_AUDIO_DEVICE_HPP___
#include "audio.hpp"
#include "../math/basic.hpp"
BEGIN_INANITY_AUDIO
class Source;
class Sound;
/// Abstract sound device class.
class Device : public Object
{
public:
virtual ptr<Sound> CreateBufferedSound(ptr<Source> source) = 0;
vir... | 23.592593 | 90 | 0.77551 | [
"object"
] |
2d3c19b66bfd0cdf3a7343326812766fc6a0f966 | 5,011 | cc | C++ | lib/tests/unit/external_module_test.cc | geoffnichols/pxp-agent | a852f9f4705f7027b96f7ea7d46675c9827a3536 | [
"Apache-2.0"
] | null | null | null | lib/tests/unit/external_module_test.cc | geoffnichols/pxp-agent | a852f9f4705f7027b96f7ea7d46675c9827a3536 | [
"Apache-2.0"
] | null | null | null | lib/tests/unit/external_module_test.cc | geoffnichols/pxp-agent | a852f9f4705f7027b96f7ea7d46675c9827a3536 | [
"Apache-2.0"
] | null | null | null | #include "root_path.hpp"
#include "content_format.hpp"
#include <pxp-agent/external_module.hpp>
#include <cpp-pcp-client/protocol/chunks.hpp> // ParsedChunks
#include <leatherman/json_container/json_container.hpp>
#include <boost/filesystem/operations.hpp>
#include <catch.hpp>
#include <string>
#include <ve... | 36.845588 | 89 | 0.538216 | [
"vector"
] |
2d3da782b7b43bda066c5fb56e6db2ee1e2841b6 | 18,041 | cpp | C++ | src/GLHelpers.cpp | bpwiselybabu/SceneGraph | 1ae7142615bb2c15883ed928a5ed69b0cd281665 | [
"Apache-2.0"
] | 15 | 2015-10-18T15:11:34.000Z | 2021-06-15T02:22:13.000Z | src/GLHelpers.cpp | bpwiselybabu/SceneGraph | 1ae7142615bb2c15883ed928a5ed69b0cd281665 | [
"Apache-2.0"
] | 13 | 2015-04-24T20:37:44.000Z | 2020-01-27T15:26:42.000Z | src/GLHelpers.cpp | bpwiselybabu/SceneGraph | 1ae7142615bb2c15883ed928a5ed69b0cd281665 | [
"Apache-2.0"
] | 9 | 2015-08-21T18:52:27.000Z | 2020-04-08T15:15:38.000Z | /*
* \file GLHelpers.cpp
*
* $Id$
*/
#include <SceneGraph/GLHelpers.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <vector>
#undef Success
#include <Eigen/Core>
#include <Eigen/LU>
namespace SceneGraph
{
////////////////////////////////////////////////////////////////////////////////////... | 31.051635 | 123 | 0.536722 | [
"vector",
"model"
] |
2d3eeb83b881b7e804ac64e520a9eed61685d98d | 3,661 | hpp | C++ | test/hipcub/test_hipcub_device_radix_sort.hpp | nunnikri/hipCUB | 6e9bc3cfb36493719c89051d1053edceb1d2374e | [
"BSD-3-Clause"
] | null | null | null | test/hipcub/test_hipcub_device_radix_sort.hpp | nunnikri/hipCUB | 6e9bc3cfb36493719c89051d1053edceb1d2374e | [
"BSD-3-Clause"
] | null | null | null | test/hipcub/test_hipcub_device_radix_sort.hpp | nunnikri/hipCUB | 6e9bc3cfb36493719c89051d1053edceb1d2374e | [
"BSD-3-Clause"
] | null | null | null | // MIT License
//
// Copyright (c) 2017-2022 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 lim... | 36.61 | 119 | 0.716471 | [
"vector"
] |
2d430f3d0524bf586a289c7cdc9ba44e11bb1731 | 14,320 | cpp | C++ | Plugins/OpenVR/OpenVRDevice.cpp | GlynnJKW/Stratum | ddc55796f3207fe3df23c455c6304cb72aebcb02 | [
"MIT"
] | null | null | null | Plugins/OpenVR/OpenVRDevice.cpp | GlynnJKW/Stratum | ddc55796f3207fe3df23c455c6304cb72aebcb02 | [
"MIT"
] | null | null | null | Plugins/OpenVR/OpenVRDevice.cpp | GlynnJKW/Stratum | ddc55796f3207fe3df23c455c6304cb72aebcb02 | [
"MIT"
] | null | null | null | #include "OpenVRDevice.hpp"
#pragma region Conversion code
// Converts to float4x4 format and flips from right-handed to left-handed
float4x4 OpenVRDevice::ConvertMat34(vr::HmdMatrix34_t mat34) {
return float4x4(
mat34.m[0][0], mat34.m[0][1], mat34.m[0][2], mat34.m[0][3],
mat34.m[1][0], mat34.m[1][1], mat34.m[1][... | 33.933649 | 196 | 0.729469 | [
"render",
"vector",
"model"
] |
2d44c3275dd490d4218f2a0329c950f50353f7e8 | 924 | cpp | C++ | Unterricht/W8/QuickHerzig.cpp | streusselhirni/hfict-aad | a9ddbf306ba36bb9299021f102281cd1e2824f45 | [
"MIT"
] | null | null | null | Unterricht/W8/QuickHerzig.cpp | streusselhirni/hfict-aad | a9ddbf306ba36bb9299021f102281cd1e2824f45 | [
"MIT"
] | null | null | null | Unterricht/W8/QuickHerzig.cpp | streusselhirni/hfict-aad | a9ddbf306ba36bb9299021f102281cd1e2824f45 | [
"MIT"
] | null | null | null | //
// Created by Nicolas Haenni on 20.10.18.
//
#include "QuickHerzig.h"
void QuickHerzig::sort(std::vector<int> &v) {
// abort
if (v.size() <= 1) return;
//int pivot = v.at(v.size()-1);
int pivotpos = rand() % v.size();
int tmp = v.at(pivotpos);
v[pivotpos] = v.at(v.size() - 1);
... | 22.536585 | 52 | 0.445887 | [
"vector"
] |
2d48787bd6ab476cdf3e534e0872743276675f3f | 19,639 | cpp | C++ | zide/zide.cpp | MasterZean/z2c-compiler-cpp | 20ceae268b2197439a4d0ff68e317d6d443c7840 | [
"Apache-2.0"
] | null | null | null | zide/zide.cpp | MasterZean/z2c-compiler-cpp | 20ceae268b2197439a4d0ff68e317d6d443c7840 | [
"Apache-2.0"
] | null | null | null | zide/zide.cpp | MasterZean/z2c-compiler-cpp | 20ceae268b2197439a4d0ff68e317d6d443c7840 | [
"Apache-2.0"
] | null | null | null | #include "zide.h"
#include <z2clib/Source.h>
#include <z2clib/Scanner.h>
#include <z2clibex/Compiler.h>
#include <z2clibex/ExprParser.h>
ZPackage pak;
//#include <Theme/Theme.h>
void OutlineThread(Zide* zide, const String& data, uint64 hash) {
try {
ZSource* source = new ZSource();
source->Package = &pak;
pa... | 22.165914 | 112 | 0.652528 | [
"vector"
] |
2d4b6216dbf6fc0fb55a5ecd292cb0d296d21f97 | 3,986 | cpp | C++ | Warcraft II/Warcraft II/GryphonAviary.cpp | DevCrumbs/Warcraft-II | fd4fab4c629783d6acc18c34bdaac15fcfb54dd1 | [
"MIT"
] | 9 | 2019-07-02T06:24:03.000Z | 2022-03-18T20:07:02.000Z | Warcraft II/Warcraft II/GryphonAviary.cpp | DevCrumbs/Warcraft-II | fd4fab4c629783d6acc18c34bdaac15fcfb54dd1 | [
"MIT"
] | 109 | 2018-02-21T23:40:29.000Z | 2020-04-25T18:26:41.000Z | Warcraft II/Warcraft II/GryphonAviary.cpp | DevCrumbs/Warcraft-II | fd4fab4c629783d6acc18c34bdaac15fcfb54dd1 | [
"MIT"
] | 6 | 2018-06-27T07:30:10.000Z | 2020-03-09T19:18:41.000Z | #include "Defs.h"
#include "p2Log.h"
#include "GryphonAviary.h"
#include "j1Player.h"
#include "j1Scene.h"
#include "j1Pathfinding.h"
#include "j1Map.h"
#include "j1Movement.h"
#include "j1Collision.h"
#include "j1Particles.h"
#include "j1FadeToBlack.h"
GryphonAviary::GryphonAviary(fPoint pos, iPoint size, int currL... | 34.362069 | 237 | 0.718264 | [
"vector"
] |
2d5182494ffd1dedf54432f3bc41a94abe90a77b | 1,797 | cpp | C++ | emerald/sph2d_box/tests/test_parallel_scan.cpp | blackencino/emerald | 3c4823dbdeff7c63007ff359d262608227f5433f | [
"Apache-2.0"
] | 3 | 2020-08-16T17:56:25.000Z | 2021-02-25T21:55:39.000Z | emerald/sph2d_box/tests/test_parallel_scan.cpp | blackencino/emerald | 3c4823dbdeff7c63007ff359d262608227f5433f | [
"Apache-2.0"
] | null | null | null | emerald/sph2d_box/tests/test_parallel_scan.cpp | blackencino/emerald | 3c4823dbdeff7c63007ff359d262608227f5433f | [
"Apache-2.0"
] | null | null | null | #pragma warning(push)
#pragma warning(disable : 4244)
#include <tbb/blocked_range.h>
#include <tbb/parallel_scan.h>
#pragma warning(pop)
#include <gtest/gtest.h>
#include <cstdint>
#include <numeric>
#include <vector>
namespace emerald::sph2d_box {
uint64_t do_parallel_scan(size_t const size,
... | 27.646154 | 78 | 0.605454 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.