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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2ee089ac6152e50f1252c42c3f010a925f6d186b | 10,149 | cpp | C++ | catkin_ws/src/justina_gui/src/QtRosNode.cpp | mnegretev/EIR-2022-AtHomeBasicTasks | bfaa0641d2a3fdcfd06c78d2f40cb97ad74dcbc2 | [
"MIT"
] | 1 | 2022-02-28T16:36:46.000Z | 2022-02-28T16:36:46.000Z | catkin_ws/src/justina_gui/src/QtRosNode.cpp | mnegretev/EIR-2022-AtHomeBasicTasks | bfaa0641d2a3fdcfd06c78d2f40cb97ad74dcbc2 | [
"MIT"
] | null | null | null | catkin_ws/src/justina_gui/src/QtRosNode.cpp | mnegretev/EIR-2022-AtHomeBasicTasks | bfaa0641d2a3fdcfd06c78d2f40cb97ad74dcbc2 | [
"MIT"
] | 1 | 2022-02-23T03:05:18.000Z | 2022-02-23T03:05:18.000Z | #include "QtRosNode.h"
QtRosNode::QtRosNode()
{
this->gui_closed = false;
publishing_cmd_vel = false;
cmd_vel.linear.x = 0;
cmd_vel.linear.x = 0;
cmd_vel.linear.x = 0;
cmd_vel.angular.x = 0;
cmd_vel.angular.y = 0;
cmd_vel.angular.z = 0;
}
QtRosNode::~QtRosNode()
{
}
void QtRosNode::ru... | 33.058632 | 117 | 0.687555 | [
"vector"
] |
2ee1a94955aa29c115665051f9dc86943c172d34 | 3,958 | cpp | C++ | Week 7 Programming Assignment/HereThereBeDragon.cpp | vsourav/daa_2019-Jan-March- | a9cb31b24b96a57a9d28176fc64d9a53141f7e19 | [
"MIT"
] | 1 | 2019-11-11T15:43:09.000Z | 2019-11-11T15:43:09.000Z | Week 7 Programming Assignment/HereThereBeDragon.cpp | vsourav/daa_2019-Jan-March- | a9cb31b24b96a57a9d28176fc64d9a53141f7e19 | [
"MIT"
] | null | null | null | Week 7 Programming Assignment/HereThereBeDragon.cpp | vsourav/daa_2019-Jan-March- | a9cb31b24b96a57a9d28176fc64d9a53141f7e19 | [
"MIT"
] | null | null | null | /*
Here there be Dragons
(IOI Training Camp, 2012)
The kingdom is falling into ruin. People live in fear. Dragons pillage, kill, and just generally cause as much havoc as they possibly can. The king has just sent out a royal decree:
To any man out there who is able to bring me the heads of K dragons, I shall bequeath... | 39.188119 | 506 | 0.654118 | [
"vector"
] |
2eebe90661a6bfb31f3b3b0de070b69cd028a0c8 | 4,194 | cpp | C++ | ext/candc/ext/bin-old/magic.cpp | TeamSPoon/logicmoo_nlu | 5c3e5013a3048da7d68a8a43476ad84d3ea4bb47 | [
"MIT"
] | 6 | 2020-01-27T12:08:02.000Z | 2020-02-28T19:30:28.000Z | pack/logicmoo_nlu/prolog/candc/ext/bin-old/magic.cpp | logicmoo/old_logicmoo_workspace | 44025b6e389e2f2f7d86b46c1301cab0604bba26 | [
"MIT"
] | 1 | 2020-02-02T13:12:34.000Z | 2020-02-02T13:12:34.000Z | ext/candc/ext/bin-old/magic.cpp | TeamSPoon/logicmoo_nlu | 5c3e5013a3048da7d68a8a43476ad84d3ea4bb47 | [
"MIT"
] | null | null | null | #include "soapH.h"
////////////////////////////////////////////////////////////////////////////////
//
// Magic Squares Client
//
////////////////////////////////////////////////////////////////////////////////
// To access a stand-alone server on a port: magicserver[] = "IP:PORT";
// use "http://" to include HTTP he... | 26.544304 | 99 | 0.49237 | [
"vector"
] |
2ef67f637e2d486b8ac507e3b097e174e9920696 | 259 | hpp | C++ | source/Transform.hpp | CraftedCart/Agdq2018Smb1Payload | 4d1b5d141700276a08cc605303f20a3650c6a268 | [
"MIT"
] | null | null | null | source/Transform.hpp | CraftedCart/Agdq2018Smb1Payload | 4d1b5d141700276a08cc605303f20a3650c6a268 | [
"MIT"
] | null | null | null | source/Transform.hpp | CraftedCart/Agdq2018Smb1Payload | 4d1b5d141700276a08cc605303f20a3650c6a268 | [
"MIT"
] | null | null | null | #ifndef GDQ_RENDER_TRANSFORM_HPP
#define GDQ_RENDER_TRANSFORM_HPP
#include <gccore.h>
class Transform {
public:
guVector pos = {0.0f, 0.0f, 0.0f};
guVector rot = {0.0f, 0.0f, 0.0f};
guVector scl = {1.0f, 1.0f, 1.0f};
};
#endif
| 17.266667 | 42 | 0.6139 | [
"transform"
] |
2ef719f51b46115b2b5b619f443761ce07867a43 | 934 | cpp | C++ | 303.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 303.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 303.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ull = uint64_t;
using ll = int64_t;
using ld = long double;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
class NumArray {
public:
vi pre_sum;
NumArray(vector<int>& nums) {
int n = (int)nums.size();
pre_sum.resiz... | 22.238095 | 50 | 0.478587 | [
"vector"
] |
2efa35d447021a3954c39a5c8860c748b23cb56a | 46,158 | cpp | C++ | test/TestOpHandler.cpp | microsoft/proxy_wifi | 36f2ac083e79c39d26cc016ca47a2a696fd4d1f5 | [
"MIT"
] | 7 | 2022-01-24T20:15:17.000Z | 2022-03-14T16:42:34.000Z | test/TestOpHandler.cpp | microsoft/proxy_wifi | 36f2ac083e79c39d26cc016ca47a2a696fd4d1f5 | [
"MIT"
] | 3 | 2022-01-27T17:01:08.000Z | 2022-03-07T19:42:59.000Z | test/TestOpHandler.cpp | microsoft/proxy_wifi | 36f2ac083e79c39d26cc016ca47a2a696fd4d1f5 | [
"MIT"
] | 1 | 2022-03-11T05:15:24.000Z | 2022-03-11T05:15:24.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include <catch2/catch.hpp>
#include "OperationHandlerBuilder.hpp"
#include "StringUtils.hpp"
#include "ProxyWifi/ProxyWifiService.hpp"
#include "Iee80211Utils.hpp"
#include "WlansvcMock.hpp"
#include <memory>
#include <chrono>
using namespa... | 42.307974 | 139 | 0.686967 | [
"vector"
] |
2efbe41eea14f37be22c2e9d8505d28e38f095f9 | 7,690 | cpp | C++ | NoiseStudioLib/NoiseStudioLib/nodes/type_conversion.cpp | SneakyMax/NoiseStudio | b0c3c72e787d61b798acbcd2147f36e1e78f5bad | [
"Unlicense"
] | null | null | null | NoiseStudioLib/NoiseStudioLib/nodes/type_conversion.cpp | SneakyMax/NoiseStudio | b0c3c72e787d61b798acbcd2147f36e1e78f5bad | [
"Unlicense"
] | null | null | null | NoiseStudioLib/NoiseStudioLib/nodes/type_conversion.cpp | SneakyMax/NoiseStudio | b0c3c72e787d61b798acbcd2147f36e1e78f5bad | [
"Unlicense"
] | null | null | null | #include "type_conversion.h"
#include "composite_data_buffer.h"
namespace noises {
namespace nodes {
template<typename TSource, typename TTarget>
void change_type(const CompositeDataBuffer& input, DataBuffer& output, SocketType type, InputSocket& input_socket, OutputSocket& output_socket)
{
... | 40.687831 | 166 | 0.626658 | [
"vector"
] |
2efbfc0085faea1a3f646b3ec8ef1adf54fe63cf | 8,125 | cpp | C++ | src/prod/src/Reliability/Replication/SecondaryTraceHandler.Test.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Reliability/Replication/SecondaryTraceHandler.Test.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Reliability/Replication/SecondaryTraceHandler.Test.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#include "... | 36.931818 | 154 | 0.583385 | [
"vector"
] |
2efdd33198df5ddf35b22e6998a1bef260798671 | 3,481 | cpp | C++ | src/c/methods/AuthenticationMethods.cpp | Turupawn/TravisTest | 6f909d58bc3b81694a20d8a58b5763a437a0ab68 | [
"MIT"
] | null | null | null | src/c/methods/AuthenticationMethods.cpp | Turupawn/TravisTest | 6f909d58bc3b81694a20d8a58b5763a437a0ab68 | [
"MIT"
] | 1 | 2018-11-28T22:05:13.000Z | 2018-11-28T22:14:18.000Z | src/c/methods/AuthenticationMethods.cpp | Turupawn/TravisTest | 6f909d58bc3b81694a20d8a58b5763a437a0ab68 | [
"MIT"
] | null | null | null | #include "c/methods/AuthenticationMethods.h"
extern "C"
{
struct EmailRequestParams
{
void* object;
void (*callback)(void* object, ModioResponse response);
};
struct EmailExchangeParams
{
void* object;
void (*callback)(void* object, ModioResponse response);
};
std::map< u32,EmailRequest... | 33.152381 | 116 | 0.708992 | [
"object",
"vector"
] |
2c0483ea4c1fb012b9defd687c1bcfcd0d9d61c6 | 707 | cpp | C++ | C++/Graph Algorithms/Recursive Depth First Search.cpp | MacSimmy/algo-and-data-structure | 424ce425ed2205522de17cfddefcdb90fc9fb777 | [
"Apache-2.0"
] | 11,393 | 2015-01-23T20:01:53.000Z | 2022-03-31T18:50:32.000Z | C++/Graph Algorithms/Recursive Depth First Search.cpp | BiswajitMahato/interview | 94be5deb0c0df30ade2a569cf3056b7cc1e012f4 | [
"Apache-2.0"
] | 128 | 2015-06-28T03:01:12.000Z | 2022-01-04T17:27:36.000Z | C++/Graph Algorithms/Recursive Depth First Search.cpp | BiswajitMahato/interview | 94be5deb0c0df30ade2a569cf3056b7cc1e012f4 | [
"Apache-2.0"
] | 5,893 | 2015-01-07T19:48:31.000Z | 2022-03-31T02:41:32.000Z | #include<iostream>
#include<vector>
#include<list>
using namespace std;
void depth_first_search(vector<list<int>> graph,int src,vector<bool> &visited){
if(!visited[src]){
cout << src << " ";
visited[src] = true;
for(list<int>::iterator itr = graph[src].begin();itr != graph[src].end();itr++){... | 24.37931 | 88 | 0.574257 | [
"vector"
] |
2c0b4b3b338bfac296136677dce4891d1c2efbe3 | 4,355 | cpp | C++ | external/bandit-2.0.0/specs/matchers/contain.cpp | noorus/ndsp | fe0b6d2901dc39fdc1944e864665ccaef84abc2d | [
"MIT"
] | 7 | 2016-02-10T10:56:22.000Z | 2020-10-05T14:47:27.000Z | external/bandit-2.0.0/specs/matchers/contain.cpp | noorus/ndsp | fe0b6d2901dc39fdc1944e864665ccaef84abc2d | [
"MIT"
] | null | null | null | external/bandit-2.0.0/specs/matchers/contain.cpp | noorus/ndsp | fe0b6d2901dc39fdc1944e864665ccaef84abc2d | [
"MIT"
] | 1 | 2021-07-15T10:17:15.000Z | 2021-07-15T10:17:15.000Z | #include <set>
#include <specs/specs.h>
using namespace bandit::Matchers;
SPEC_BEGIN(Matchers::Contain)
describe("contain matcher", [&]{
std::string element0("element0");
std::string element1("element1");
describe("when the container is an STL vector", [&]{
describe("which contains the element"... | 27.738854 | 79 | 0.560046 | [
"vector"
] |
2c10a4f719b840e49ac5f2c5976aeaa1cf1b8441 | 9,364 | cpp | C++ | tlogs/mainwindow.cpp | mkinsz/QModule | ec7c0f8af8c33b9765d7a4e0350059284206d8a0 | [
"MIT"
] | null | null | null | tlogs/mainwindow.cpp | mkinsz/QModule | ec7c0f8af8c33b9765d7a4e0350059284206d8a0 | [
"MIT"
] | null | null | null | tlogs/mainwindow.cpp | mkinsz/QModule | ec7c0f8af8c33b9765d7a4e0350059284206d8a0 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QVBoxLayout>
#include <QLabel>
#include <QDebug>
#include <QJsonArray>
#include <QJsonObject>
#include <QJsonDocument>
#include <QStandardItem>
#include <QCryptographicHash>
#include <QStandardItemModel>
#include <QDateTime>
#include <QtMath>
#include "pagi... | 32.068493 | 144 | 0.631674 | [
"object",
"solid"
] |
2c1659deed9e31aa6f706f7c90c372ab13ac20b2 | 837 | cc | C++ | src/dynamic_graph/pool-py.cc | nim65s/dynamic-graph-python | 84df690f1125c1d87b4b470164e8d6eb262413d7 | [
"BSD-2-Clause"
] | 7 | 2016-07-29T19:43:39.000Z | 2021-11-08T12:09:20.000Z | src/dynamic_graph/pool-py.cc | nim65s/dynamic-graph-python | 84df690f1125c1d87b4b470164e8d6eb262413d7 | [
"BSD-2-Clause"
] | 40 | 2018-07-30T09:42:28.000Z | 2022-03-22T16:55:56.000Z | src/dynamic_graph/pool-py.cc | nim65s/dynamic-graph-python | 84df690f1125c1d87b4b470164e8d6eb262413d7 | [
"BSD-2-Clause"
] | 12 | 2015-04-03T16:03:15.000Z | 2020-08-19T01:25:53.000Z | // Copyright 2011, 2012, Florent Lamiraux, LAAS-CNRS.
#include <dynamic-graph/pool.h>
#include <dynamic-graph/entity.h>
#include <vector>
#include "dynamic-graph/python/dynamic-graph-py.hh"
namespace dynamicgraph {
namespace python {
namespace pool {
void writeGraph(const char* filename) { PoolStorage::getInstance... | 25.363636 | 108 | 0.72043 | [
"vector"
] |
2c1dd45471f65fba2495064d2bf7f1231bbc686e | 20,404 | cpp | C++ | Source.cpp | noora-ekramy/DS-project | 5446c6ddf03d0dda69d3da7cddbac70339f2bf4d | [
"Zlib"
] | 1 | 2022-02-18T14:38:23.000Z | 2022-02-18T14:38:23.000Z | Source.cpp | Mohammed-Refat/Pac-Man-Game | f4895cc5bcb48c259993eec11dec0ce7faa6695c | [
"Zlib"
] | null | null | null | Source.cpp | Mohammed-Refat/Pac-Man-Game | f4895cc5bcb48c259993eec11dec0ce7faa6695c | [
"Zlib"
] | 2 | 2021-07-13T12:50:18.000Z | 2021-10-21T09:31:11.000Z | #include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include<iostream>
#include"maze.h"
#include "pac.h"
#include "gost.h"
#include "our_button.h"
#include<sstream>
#include <fstream>
#include<vector>
#include "rapidxml.hpp"
#include<map>
#include<vector>
#include <cstring>
#include <fstream>
#includ... | 28.027473 | 164 | 0.596403 | [
"shape",
"vector"
] |
2c237899a82ae56f7f7edc045dc19270ca77d260 | 4,530 | hxx | C++ | odb-examples-2.4.0/inverse/employee.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-examples-2.4.0/inverse/employee.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-examples-2.4.0/inverse/employee.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | // file : inverse/employee.hxx
// copyright : not copyrighted - public domain
#ifndef EMPLOYEE_HXX
#define EMPLOYEE_HXX
#include <vector>
#include <string>
#include <odb/core.hxx>
// Include TR1 <memory> header in a compiler-specific fashion. Fall back
// on the Boost implementation if the compiler does not su... | 16.472727 | 72 | 0.672848 | [
"object",
"vector",
"model"
] |
2c2765223b81857b85760104b0491ad3d0b64f48 | 746 | cpp | C++ | BackTracking/2 Word Break Problem using Backtracking.cpp | i-am-grut/LoveBabbar-450-Questions | 08faaa70198363c6ac481a67c548e1e7e4c7c591 | [
"MIT"
] | 2 | 2021-06-25T07:26:23.000Z | 2022-01-28T22:24:34.000Z | BackTracking/2 Word Break Problem using Backtracking.cpp | i-am-grut/LoveBabbar-450-Questions | 08faaa70198363c6ac481a67c548e1e7e4c7c591 | [
"MIT"
] | null | null | null | BackTracking/2 Word Break Problem using Backtracking.cpp | i-am-grut/LoveBabbar-450-Questions | 08faaa70198363c6ac481a67c548e1e7e4c7c591 | [
"MIT"
] | null | null | null | class Solution{
public:
vector<string> ans;
void wordBreakHelper(string given, vector<string>& dict, string k){
int n=given.length();
if(n==0){
ans.push_back(k);
return;
}
for(int i=0;i<n;i++){
string prefix=given.substr(0,i+1);
if(find(dict.b... | 26.642857 | 71 | 0.509383 | [
"vector"
] |
2c29b1f95b45efc7e379f572c3bc3218c4b86065 | 596 | cpp | C++ | Class6/UTModelBase.cpp | TaigaHasegawa/Mathmetic-finance | c0c3f4e8a5e6ba7c031a2804c7d908c300a8a1b7 | [
"Apache-2.0"
] | null | null | null | Class6/UTModelBase.cpp | TaigaHasegawa/Mathmetic-finance | c0c3f4e8a5e6ba7c031a2804c7d908c300a8a1b7 | [
"Apache-2.0"
] | null | null | null | Class6/UTModelBase.cpp | TaigaHasegawa/Mathmetic-finance | c0c3f4e8a5e6ba7c031a2804c7d908c300a8a1b7 | [
"Apache-2.0"
] | null | null | null | /* UTModelBase.cpp
*
* Copyright (c) 2016
* Diva Analytics
*/
#include "UTModelBase.h"
using namespace std;
const string UTModelBase::ourClassTag = "Model Base";
///////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////... | 24.833333 | 80 | 0.310403 | [
"model"
] |
2c2f3b1eb661dfb9b33e9e14b68e3373a820b7c4 | 3,827 | cpp | C++ | sandbox/src/layer_2d.cpp | L4ZZA/pyro | 37302aaa3739c5092ea852d4abbc5aafc3eb3815 | [
"MIT"
] | null | null | null | sandbox/src/layer_2d.cpp | L4ZZA/pyro | 37302aaa3739c5092ea852d4abbc5aafc3eb3815 | [
"MIT"
] | null | null | null | sandbox/src/layer_2d.cpp | L4ZZA/pyro | 37302aaa3739c5092ea852d4abbc5aafc3eb3815 | [
"MIT"
] | null | null | null | #include "layer_2d.h"
#include "imgui/imgui.h"
#include <glm/gtc/type_ptr.hpp>
layer_2d::layer_2d(float width, float height)
: imgui_layer("sandbox_2d_layer")
, m_2d_camera_controller(glm::vec3{0.f,0.f,0.f}, width / height, true)
{
}
layer_2d::~layer_2d()
{
}
void layer_2d::on_attach()
{
... | 29.898438 | 109 | 0.551084 | [
"render"
] |
2c331254cd12b1c3c5f67cc999687a5c7f8a8249 | 6,874 | cpp | C++ | grad_req/gradReqs.cpp | vchapple17/grad-req-public | 137e853f3102aabc7914d9cb4784dbad500ed8d0 | [
"MIT"
] | null | null | null | grad_req/gradReqs.cpp | vchapple17/grad-req-public | 137e853f3102aabc7914d9cb4784dbad500ed8d0 | [
"MIT"
] | null | null | null | grad_req/gradReqs.cpp | vchapple17/grad-req-public | 137e853f3102aabc7914d9cb4784dbad500ed8d0 | [
"MIT"
] | null | null | null | //
// gradReqs.cpp
// grad_req
// Updated: Jan 8, 2018
// Created by Val Chapple on 1/17/17.
// Copyright © 2017 Val Chapple. All rights reserved.
//
#include <string>
#include <cstdlib>
#include <iostream>
#include <vector>
#include "gradReqs.hpp"
#include "gradCategory.hpp"
GradReqs::GradReqs() {
this->eng... | 49.1 | 116 | 0.722578 | [
"geometry",
"vector"
] |
2c3acaba89030dd8d16054b3496eb48fb5ed69c5 | 7,728 | cpp | C++ | ECF/Population.cpp | KarlaSalamun/ECF | 4bd21cf43d09435f034259a6b59129b1df6ad1b3 | [
"MIT"
] | null | null | null | ECF/Population.cpp | KarlaSalamun/ECF | 4bd21cf43d09435f034259a6b59129b1df6ad1b3 | [
"MIT"
] | null | null | null | ECF/Population.cpp | KarlaSalamun/ECF | 4bd21cf43d09435f034259a6b59129b1df6ad1b3 | [
"MIT"
] | null | null | null | #include "ECF_base.h"
#include <string.h>
Population::Population()
{
hof_ = static_cast<HallOfFameP> (new HallOfFame);
stats_ = static_cast<StatCalcP> (new StatCalc);
nIndividuals_ = 100;
nDemes_ = 1;
myDemeIndex_ = 0;
}
void Population::registerParameters(StateP state)
{
int *sizep = new i... | 26.648276 | 111 | 0.654762 | [
"vector"
] |
2c500684d4f9bafddb3c0bcd41cc74084fc4c3bd | 1,546 | cc | C++ | driver.cc | laphnn/contraction_optimizer | d9f0ebccaa7ab2ccdc36031dd8c222d97e11860c | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-05-05T17:55:08.000Z | 2021-05-05T17:55:08.000Z | driver.cc | laphnn/contraction_optimizer | d9f0ebccaa7ab2ccdc36031dd8c222d97e11860c | [
"BSD-3-Clause-LBNL"
] | null | null | null | driver.cc | laphnn/contraction_optimizer | d9f0ebccaa7ab2ccdc36031dd8c222d97e11860c | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include "graph.h"
#include "diagram.h"
#include "contraction_optimizer.h"
#include <iostream>
#include <fstream>
#include <chrono>
template <typename T>
std::ostream& operator<<(std::ostream& output, std::vector<T> const& values)
{
output<< "[";
for (auto const& value : values)
{
... | 28.109091 | 148 | 0.529107 | [
"vector"
] |
2c507f1ca6d2578ae3281a6ed84c7815ce35925b | 12,850 | cpp | C++ | main.cpp | pmvr/cpp-hsslms | 0e7f91331926dcd97629f9ccfa7a745d5be886a3 | [
"MIT"
] | null | null | null | main.cpp | pmvr/cpp-hsslms | 0e7f91331926dcd97629f9ccfa7a745d5be886a3 | [
"MIT"
] | null | null | null | main.cpp | pmvr/cpp-hsslms | 0e7f91331926dcd97629f9ccfa7a745d5be886a3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
#include "lmots.h"
#include "lms.h"
#include "hss.h"
#include "pershss.h"
#include "tests.h"
#include "performancetest.h"
#include <unistd.h>
#include <sys/sysinfo.h>
//#include "sha256.h"
std::string readfile(std::string &filename) {
std::ifstream ifs;
ifs.open (filename... | 35.893855 | 167 | 0.450272 | [
"vector"
] |
2c5e41ba0443ad698d4488ba8614cebefbc834e3 | 910 | cpp | C++ | Leetcode/1000-2000/1906. Minimum Absolute Difference Queries/1906.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/1000-2000/1906. Minimum Absolute Difference Queries/1906.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/1000-2000/1906. Minimum Absolute Difference Queries/1906.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> minDifference(vector<int>& nums, vector<vector<int>>& queries) {
vector<vector<int>> numToIndices(101);
for (int i = 0; i < nums.size(); ++i)
numToIndices[nums[i]].push_back(i);
if (numToIndices[nums[0]].size() == nums.size())
return vector<int>(queries.... | 26.764706 | 78 | 0.542857 | [
"vector"
] |
2c5e9e46b6d5b56f9ec31648d57b90c463ab5b56 | 185,997 | cpp | C++ | src/hotspot/os/solaris/os_solaris.cpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | src/hotspot/os/solaris/os_solaris.cpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | src/hotspot/os/solaris/os_solaris.cpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 34.431137 | 138 | 0.663919 | [
"object"
] |
2c68aa5b8ac444d899012f83c56fec8d2c5f7637 | 5,352 | cpp | C++ | llvm-spirv/lib/SPIRV/VectorComputeUtil.cpp | tiwaria1/llvm | 616a396db0610ae0c1992361af005a869ef81897 | [
"Apache-2.0"
] | null | null | null | llvm-spirv/lib/SPIRV/VectorComputeUtil.cpp | tiwaria1/llvm | 616a396db0610ae0c1992361af005a869ef81897 | [
"Apache-2.0"
] | null | null | null | llvm-spirv/lib/SPIRV/VectorComputeUtil.cpp | tiwaria1/llvm | 616a396db0610ae0c1992361af005a869ef81897 | [
"Apache-2.0"
] | null | null | null | //=- VectorComputeUtil.cpp - vector compute utilities implemetation * C++ -*-=//
//
// The LLVM/SPIR-V Translator
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
// Copyright (c) 2020 Intel Corporation. All rights reserved.
//
/... | 37.426573 | 80 | 0.728513 | [
"vector"
] |
ef1adeabc80b1a143385d2b78c60682ca91ae08d | 1,587 | cpp | C++ | flare_skia/src/skr_drawable.cpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | null | null | null | flare_skia/src/skr_drawable.cpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | null | null | null | flare_skia/src/skr_drawable.cpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | null | null | null | #include "flare_skia/skr_drawable.hpp"
#include "flare/actor_node.hpp"
#include "flare_skia/skr_actor_shape.hpp"
using namespace flare;
void SkrDrawable::updateClips(ActorNode* node)
{
m_ClippingShapes.clear();
ActorNode* clipSearch = node;
while (clipSearch != nullptr)
{
const std::vector<ActorNodeClip>& clip... | 22.041667 | 64 | 0.640832 | [
"shape",
"vector"
] |
ef1d147e02d529d931deafa3912f3e00e03aa517 | 15,537 | cpp | C++ | src/lib/top_level/geometry/search_blocking_set.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-10-27T15:18:28.000Z | 2022-02-09T11:13:07.000Z | src/lib/top_level/geometry/search_blocking_set.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 4 | 2019-12-09T11:49:11.000Z | 2020-07-30T17:34:45.000Z | src/lib/top_level/geometry/search_blocking_set.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-06-10T20:05:30.000Z | 2020-12-18T04:59:19.000Z | // search_blocking_set.cpp
//
// Anton Betten
// started in INC_CAN: July 14, 2010
// moved to TOP_LEVEL: Nov 2, 2010
// added active_set: Nov 3, 2010
//
//
//
#include "orbiter.h"
using namespace std;
namespace orbiter {
namespace top_level {
search_blocking_set::search_blocking_set()
{
Inc = NULL;
A = NULL... | 21.669456 | 86 | 0.613246 | [
"vector"
] |
ef1ea1425e99ef4d97c11b8d76084ac1c4fa1c6e | 72,305 | cpp | C++ | Source/JxParser.cpp | JamesBoer/Jinx | 4012cd9f5e532bdedb76a019588ac7adbe32e6d6 | [
"MIT"
] | 210 | 2016-07-08T23:50:26.000Z | 2022-03-28T21:44:38.000Z | Source/JxParser.cpp | JamesBoer/Jinx | 4012cd9f5e532bdedb76a019588ac7adbe32e6d6 | [
"MIT"
] | 19 | 2017-12-31T00:07:54.000Z | 2022-03-28T02:30:04.000Z | Source/JxParser.cpp | JamesBoer/Jinx | 4012cd9f5e532bdedb76a019588ac7adbe32e6d6 | [
"MIT"
] | 10 | 2017-07-08T05:07:06.000Z | 2021-08-17T15:56:24.000Z | /*
The Jinx library is distributed under the MIT License (MIT)
https://opensource.org/licenses/MIT
See LICENSE.TXT or Jinx.h for license details.
Copyright (c) 2016 James Boer
*/
#include "JxInternal.h"
namespace Jinx::Impl
{
inline_t Parser::Parser(RuntimeIPtr runtime, const SymbolList & symbolList, const String &... | 25.962298 | 178 | 0.672457 | [
"object",
"vector"
] |
ef20056275b06b649df570024d40ef96490b84ae | 1,955 | cc | C++ | examples/mesh/structured_mesh_demo.cc | Cryoris/lehrfempp | fe5b830c25b950be9be90dda0f4f693a6dcb054b | [
"MIT"
] | null | null | null | examples/mesh/structured_mesh_demo.cc | Cryoris/lehrfempp | fe5b830c25b950be9be90dda0f4f693a6dcb054b | [
"MIT"
] | null | null | null | examples/mesh/structured_mesh_demo.cc | Cryoris/lehrfempp | fe5b830c25b950be9be90dda0f4f693a6dcb054b | [
"MIT"
] | null | null | null | /** @brief Demonstrates the construction of a structured mesh in LehrFEM++ */
#include <iostream>
#include "lf/base/base.h"
#include "lf/mesh/hybrid2d/hybrid2d.h"
#include "lf/mesh/mesh.h"
#include "lf/mesh/test_utils/check_entity_indexing.h"
#include "lf/mesh/test_utils/check_mesh_completeness.h"
#include "lf/mesh/t... | 35.545455 | 79 | 0.699744 | [
"mesh"
] |
ef27a6c8675ff8e47805277727704bdd0b514829 | 269,568 | cc | C++ | chrome/browser/about_flags.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/about_flags.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/about_flags.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/about_flags.h"
#include <iterator>
#include <map>
#include <memory>
#include <set>
#include <utility>
#include "ash/public/... | 48.614608 | 89 | 0.777466 | [
"object",
"vector",
"model"
] |
ef29cbb838a4079580863787ab66721c9a6106a0 | 6,750 | cpp | C++ | E05_Transformation/AppClass.cpp | KennyHatch-afk/Simplex_16-17-Summer | 40e4360041caae4657da4d901afe72b6b78087f8 | [
"MIT"
] | null | null | null | E05_Transformation/AppClass.cpp | KennyHatch-afk/Simplex_16-17-Summer | 40e4360041caae4657da4d901afe72b6b78087f8 | [
"MIT"
] | null | null | null | E05_Transformation/AppClass.cpp | KennyHatch-afk/Simplex_16-17-Summer | 40e4360041caae4657da4d901afe72b6b78087f8 | [
"MIT"
] | null | null | null | #include "AppClass.h"
std::vector<MyMesh*> squares;
void Application::InitVariables(void)
{
//init the mesh
for (int a = 0; a < 46; a++)
{
m_pMesh = new MyMesh();
m_pMesh->GenerateCube(1.0f, C_BLACK);
squares.push_back(m_pMesh);
}
//m_pMesh->GenerateSphere(1.0f, 5, C_WHITE);
}
void Application::Update(voi... | 38.793103 | 87 | 0.726074 | [
"mesh",
"render",
"vector"
] |
ef39cfb5f7dbb25f4e48e53d0e80e59460379195 | 4,608 | cpp | C++ | src/device/opencl/opencl_mega.cpp | ardraeiss/blender_cycles_for_learnin | c9ae7449faff403a0ae70991bf600bd3d66ba7da | [
"Apache-2.0"
] | 1 | 2020-07-24T22:12:57.000Z | 2020-07-24T22:12:57.000Z | src/device/opencl/opencl_mega.cpp | guillaumechereau/cycles | c1d0aab6da017d9fa20824a25fdbc8d89ab59154 | [
"Apache-2.0"
] | null | null | null | src/device/opencl/opencl_mega.cpp | guillaumechereau/cycles | c1d0aab6da017d9fa20824a25fdbc8d89ab59154 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2011-2013 Blender Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 27.592814 | 88 | 0.654731 | [
"render",
"vector"
] |
ef408e2b598006af223441d182bafd14dc9fac6b | 4,848 | hpp | C++ | framework/include/minko/component/DirectionalLight.hpp | undeadinu/minko | 9171805751fb3a50c6fcab0b78892cdd4253ee11 | [
"BSD-3-Clause"
] | null | null | null | framework/include/minko/component/DirectionalLight.hpp | undeadinu/minko | 9171805751fb3a50c6fcab0b78892cdd4253ee11 | [
"BSD-3-Clause"
] | null | null | null | framework/include/minko/component/DirectionalLight.hpp | undeadinu/minko | 9171805751fb3a50c6fcab0b78892cdd4253ee11 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2014 Aerys
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, distribute,
sublicens... | 31.894737 | 108 | 0.582921 | [
"render",
"vector"
] |
ef451c7cd55fe3fd440f8233ba24d0b3a1a81fec | 1,178 | cpp | C++ | droidCrypto/tests/test_speed.cpp | CROSSINGTUD/mobile_psi_cpp | 4c5f0f56142535ca0d3524c99781cfd0c07b9205 | [
"MIT"
] | 14 | 2019-08-16T16:18:49.000Z | 2021-11-04T06:40:50.000Z | droidCrypto/tests/test_speed.cpp | contact-discovery/mobile_psi_cpp | 6458cab5add75d592861d9a1ee253cc07b3ab829 | [
"MIT"
] | null | null | null | droidCrypto/tests/test_speed.cpp | contact-discovery/mobile_psi_cpp | 6458cab5add75d592861d9a1ee253cc07b3ab829 | [
"MIT"
] | 4 | 2019-10-11T08:23:26.000Z | 2021-01-31T05:40:21.000Z | #include <iostream>
#include <cstring>
#include <thread>
#include <atomic>
#include <droidCrypto/ChannelWrapper.h>
#include <droidCrypto/gc/circuits/LowMCCircuit.h>
#include <droidCrypto/BitVector.h>
#include <droidCrypto/utils/Log.h>
#include <cassert>
int main(int argc, char** argv) {
std::vector<uint8_t> giga... | 33.657143 | 101 | 0.674024 | [
"vector"
] |
ef4b1e66936b42027ddb18461c4ab1e79f67650b | 8,253 | cpp | C++ | sem3/algos-and-ds/labs/lab-3/src/l.cpp | renbou/itmo | 7eeb411a06560b26e63341a1243f476cc28d7a95 | [
"Apache-2.0"
] | 6 | 2022-01-08T22:52:04.000Z | 2022-01-10T20:52:14.000Z | sem3/algos-and-ds/labs/lab-3/src/l.cpp | renbou/itmo | 7eeb411a06560b26e63341a1243f476cc28d7a95 | [
"Apache-2.0"
] | null | null | null | sem3/algos-and-ds/labs/lab-3/src/l.cpp | renbou/itmo | 7eeb411a06560b26e63341a1243f476cc28d7a95 | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <stdexcept>
#include <vector>
using uint64 = uint64_t;
using uint32 = uint32_t;
using int64 = int64_t;
using int32 = int32_t;
template <typename T> using Vec = std::vector<T>;
using IntVec = Vec<int>;
using Adjacent = Vec<Vec<bool>>;
using Graph = Vec<Vec<int>>;
cla... | 30.453875 | 80 | 0.623652 | [
"vector"
] |
ef52cd29a788be9202146ea5c57fc624a5f69bbe | 3,147 | cpp | C++ | Part_2/example_rviz_marker/src/lines_display.cpp | zhaolongkzz/ROS | 52c70d9d22fe1714c438312fde61214920a4dc3c | [
"MIT"
] | null | null | null | Part_2/example_rviz_marker/src/lines_display.cpp | zhaolongkzz/ROS | 52c70d9d22fe1714c438312fde61214920a4dc3c | [
"MIT"
] | null | null | null | Part_2/example_rviz_marker/src/lines_display.cpp | zhaolongkzz/ROS | 52c70d9d22fe1714c438312fde61214920a4dc3c | [
"MIT"
] | null | null | null | // lines_display.cpp
// Wyatt Newman, 11/17
// node to assist display of lines in rviz
// this node subscribes to topic "lineseg_vertices", from which it receives
//geometry_msgs/Point points specifying two vertices of a line segment
// each input ADDS to the current array of line segments (without deletions)
//NOTE: ... | 33.126316 | 103 | 0.7102 | [
"geometry"
] |
ef571af839476f29db60c8921bc6afd5036aa9f0 | 35,825 | cc | C++ | components/common/utils/bitmap/SPBitmapResample.cc | SBKarr/stappler | d9311cba0b0e9362be55feca39a866d7bccd6dff | [
"MIT"
] | 10 | 2015-06-16T16:52:53.000Z | 2021-04-15T09:21:22.000Z | components/common/utils/bitmap/SPBitmapResample.cc | SBKarr/stappler | d9311cba0b0e9362be55feca39a866d7bccd6dff | [
"MIT"
] | 3 | 2015-09-23T10:04:00.000Z | 2020-09-10T15:47:34.000Z | components/common/utils/bitmap/SPBitmapResample.cc | SBKarr/stappler | d9311cba0b0e9362be55feca39a866d7bccd6dff | [
"MIT"
] | 3 | 2018-11-11T00:37:49.000Z | 2020-09-07T03:04:31.000Z | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
// resampler.cpp, Separable filtering image rescaler v2.21, Rich Geldreich - richgel99@gmail.com
// See unlicense at the bottom of resampler.h, or at http:... | 26.775037 | 157 | 0.642149 | [
"vector"
] |
ef638c972c5a5b6b31f34d136f17c20c78f2f7be | 25,665 | cpp | C++ | dev/spark/Gem/Code/Components/UnitNavigationComponent.cpp | chrisinajar/spark | 3c6b30592c00bc38738cc3aaca2144edfc6cc8b2 | [
"AML"
] | 2 | 2020-08-20T03:40:24.000Z | 2021-02-07T20:31:43.000Z | dev/spark/Gem/Code/Components/UnitNavigationComponent.cpp | chrisinajar/spark | 3c6b30592c00bc38738cc3aaca2144edfc6cc8b2 | [
"AML"
] | null | null | null | dev/spark/Gem/Code/Components/UnitNavigationComponent.cpp | chrisinajar/spark | 3c6b30592c00bc38738cc3aaca2144edfc6cc8b2 | [
"AML"
] | 5 | 2020-08-27T20:44:18.000Z | 2021-08-21T22:54:11.000Z |
#include "spark_precompiled.h"
#include "UnitNavigationComponent.h"
#include <AzCore/RTTI/BehaviorContext.h>
#include <AzCore/Component/TransformBus.h>
#include <AzCore/Math/Transform.h>
#include "Busses/UnitBus.h"
#include "Busses/VariableBus.h"
#include "Busses/NetSyncBusses.h"
#include "Busses/MapBus.h"
#inclu... | 30.996377 | 284 | 0.771751 | [
"object",
"vector",
"transform"
] |
ef69944944526db21d1ded073de60d0ee9b5bc1e | 66,995 | cpp | C++ | renderdoc/driver/shaders/dxbc/dxbc_bytecode_vendorext.cpp | hbina/renderdoc | 3f71e1739cfda98761ce7dc3a572f709125c93f2 | [
"MIT"
] | 6,181 | 2015-01-07T11:49:11.000Z | 2022-03-31T21:46:55.000Z | renderdoc/driver/shaders/dxbc/dxbc_bytecode_vendorext.cpp | hbina/renderdoc | 3f71e1739cfda98761ce7dc3a572f709125c93f2 | [
"MIT"
] | 2,015 | 2015-01-16T01:45:25.000Z | 2022-03-25T12:01:06.000Z | renderdoc/driver/shaders/dxbc/dxbc_bytecode_vendorext.cpp | hbina/renderdoc | 3f71e1739cfda98761ce7dc3a572f709125c93f2 | [
"MIT"
] | 1,088 | 2015-01-06T08:36:25.000Z | 2022-03-30T03:31:21.000Z | /******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2021 Baldur Karlsson
*
* 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 ... | 38.043725 | 102 | 0.53704 | [
"vector",
"model"
] |
ef6d125bc49c7defeda6d34dd19449e2710a7d2c | 3,903 | cpp | C++ | Official Windows Platform Sample/Windows 8.1 Store app samples/[C++]-Windows 8.1 Store app samples/XAML ListView and GridView customizing interactivity sample/C++/Scenario1.xaml.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 2 | 2022-01-21T01:40:58.000Z | 2022-01-21T01:41:10.000Z | Official Windows Platform Sample/Windows 8.1 Store app samples/[C++]-Windows 8.1 Store app samples/XAML ListView and GridView customizing interactivity sample/C++/Scenario1.xaml.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 1 | 2022-03-15T04:21:41.000Z | 2022-03-15T04:21:41.000Z | Official Windows Platform Sample/Windows 8.1 Store app samples/[C++]-Windows 8.1 Store app samples/XAML ListView and GridView customizing interactivity sample/C++/Scenario1.xaml.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | null | null | null | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
/... | 32.256198 | 128 | 0.641814 | [
"object"
] |
ef6ffcadab449a34159b38ab30633ba2ae99f32e | 2,081 | cc | C++ | third_party/blink/renderer/core/fileapi/file_list_test.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/blink/renderer/core/fileapi/file_list_test.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/blink/renderer/core/fileapi/file_list_test.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/fileapi/file_list.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
TEST(FileListTest, path... | 32.015385 | 79 | 0.653051 | [
"vector"
] |
ef75cc0b55f90fc46a0ee3a822ed47264ee9d153 | 6,185 | cc | C++ | src/string_obj.cc | shangjiaxuan/Kagami | 6e6013b1ad2ebdf4b67162929fd2cd19c61635e3 | [
"BSD-2-Clause"
] | null | null | null | src/string_obj.cc | shangjiaxuan/Kagami | 6e6013b1ad2ebdf4b67162929fd2cd19c61635e3 | [
"BSD-2-Clause"
] | null | null | null | src/string_obj.cc | shangjiaxuan/Kagami | 6e6013b1ad2ebdf4b67162929fd2cd19c61635e3 | [
"BSD-2-Clause"
] | null | null | null | #include "string_obj.h"
namespace kagami {
inline bool IsStringFamily(Object &obj) {
return compare(obj.GetTypeId(), kTypeIdString, kTypeIdWideString);
}
Message CreateStringFromArray(ObjectMap &p) {
EXPECT_TYPE(p, "src", kTypeIdArray);
auto &base = p.Cast<ObjectArray>("src");
shared_ptr<string>... | 29.593301 | 90 | 0.647696 | [
"object"
] |
ef7729b2bfdf7b5e4f40d2ea2cd2e4fbc37add57 | 5,599 | cpp | C++ | LeetCode/C++/696. Count Binary Substrings.cpp | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | LeetCode/C++/696. Count Binary Substrings.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | LeetCode/C++/696. Count Binary Substrings.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z | /**
Give a string s, count the number of non-empty (contiguous) substrings that have the same number of 0's and 1's, and all the 0's and all the 1's in these substrings are grouped consecutively.
Substrings that occur multiple times are counted the number of times they occur.
Example 1:
Input: "00110011"
Output: 6
Ex... | 36.594771 | 389 | 0.601 | [
"vector"
] |
ef774c8f8ac09f59cd36cdf8c2cb2af4aee70a01 | 3,381 | cpp | C++ | aws-cpp-sdk-ce/source/model/RightsizingRecommendation.cpp | grujicbr/aws-sdk-cpp | bdd43c178042f09c6739645e3f6cd17822a7c35c | [
"Apache-2.0"
] | 1 | 2020-03-11T05:36:20.000Z | 2020-03-11T05:36:20.000Z | aws-cpp-sdk-ce/source/model/RightsizingRecommendation.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-ce/source/model/RightsizingRecommendation.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 25.80916 | 113 | 0.774327 | [
"model"
] |
ef79068fc8adcd8b8f2eb9f7cefc62d734813eb8 | 4,782 | cpp | C++ | Source/Tests/MainTests.cpp | Hammurabi/HCode | 12875c7662a2c4b36eeb829b4f144d3283f36cc6 | [
"MIT"
] | 5 | 2019-10-13T08:47:23.000Z | 2020-10-11T20:12:38.000Z | Source/Tests/MainTests.cpp | Hammurabi/HCode | 12875c7662a2c4b36eeb829b4f144d3283f36cc6 | [
"MIT"
] | null | null | null | Source/Tests/MainTests.cpp | Hammurabi/HCode | 12875c7662a2c4b36eeb829b4f144d3283f36cc6 | [
"MIT"
] | null | null | null | /**
*
* MIT License
*
* Copyright (c) 2019 Abdullah Fadhil
*
* 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, co... | 39.520661 | 145 | 0.633208 | [
"vector"
] |
ef7a400b9b8583e5d750eeb48f5c0587d1f4dfc1 | 9,207 | cc | C++ | src/RK/gradientRK.cc | as1m0n/spheral | 4d72822f56aca76d70724c543d389d15ff6ca48e | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | src/RK/gradientRK.cc | as1m0n/spheral | 4d72822f56aca76d70724c543d389d15ff6ca48e | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | src/RK/gradientRK.cc | as1m0n/spheral | 4d72822f56aca76d70724c543d389d15ff6ca48e | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | //---------------------------------Spheral++------------------------------------
// Compute the RK gradient.
//------------------------------------------------------------------------------
#include "RK/gradientRK.hh"
#include "RK/RKUtilities.hh"
#include "Field/Field.hh"
#include "Field/FieldList.hh"
#include "Neighbo... | 35.548263 | 127 | 0.616922 | [
"vector"
] |
ef841e1bcffdd027c669598f2e0d9feed7b45730 | 7,299 | cpp | C++ | single_thread_server.cpp | wellexam/chat-room | 0d6345debf51cc907952e0d1c5416e176d015332 | [
"Apache-2.0"
] | null | null | null | single_thread_server.cpp | wellexam/chat-room | 0d6345debf51cc907952e0d1c5416e176d015332 | [
"Apache-2.0"
] | null | null | null | single_thread_server.cpp | wellexam/chat-room | 0d6345debf51cc907952e0d1c5416e176d015332 | [
"Apache-2.0"
] | null | null | null | #include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <cstdio>
#include <cerrno>
#include <fcntl.h>
#include <cstdlib>
#include <cassert>
#include <sys/epoll.h>
#include <csignal>
#include <unistd.h>
#include <iostream>
#include <cstring>
#include <vector>
#include <unordered_map>
#include <li... | 32.154185 | 112 | 0.535416 | [
"vector"
] |
ef846bb507ee664070b9d4e76da36ad82048506f | 1,102 | hpp | C++ | week7/MyInteger/MyInteger.hpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | 1 | 2019-01-06T22:36:01.000Z | 2019-01-06T22:36:01.000Z | week7/MyInteger/MyInteger.hpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | null | null | null | week7/MyInteger/MyInteger.hpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | null | null | null | /*********************************************************************
** Author: Wei-Chien Hsu
** Date: 05/15/18
** Description:
1.should have a class variable of type pointer-to-int called pInteger.
2.should have a constructor that takes as a parameter an int
... | 27.55 | 87 | 0.538113 | [
"object"
] |
ef84c9dadb3c10a42013c62e7a0b2a88f656ae5d | 18,372 | cxx | C++ | private/inet/mshtml/iextag/utils.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/inet/mshtml/iextag/utils.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/inet/mshtml/iextag/utils.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | //=================================================
//
// File : Utils.cxx
//
// purpose : implementation of helpful stuff
//
//=================================================
#include "headers.h"
#include "utils.hxx"
#define BUFFEREDSTR_SIZE 1024
// VARIANT conversion interface exposed by script ... | 27.627068 | 108 | 0.471914 | [
"object"
] |
ef87985f56936416fb809d223be0feb50f79c823 | 35,476 | cpp | C++ | lugre/src/lugre_meshloader.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | 1 | 2020-10-18T14:33:05.000Z | 2020-10-18T14:33:05.000Z | lugre/src/lugre_meshloader.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | null | null | null | lugre/src/lugre_meshloader.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | null | null | null | // inspired by Ogre::MeshSerializerImpl
#include <OgreStableHeaders.h>
#include <OgreMeshFileFormat.h>
#include <OgreMesh.h>
#include <OgreSubMesh.h>
#include <OgreException.h>
#include <OgreLogManager.h>
#include <OgreSkeleton.h>
#include <OgreHardwareBufferManager.h>
#include <OgreMaterial.h>
#include <Og... | 27.868028 | 106 | 0.609793 | [
"mesh",
"geometry"
] |
ef96f2f731d6b63fcc6446e11725408a739a0313 | 40,743 | cpp | C++ | src/platform/webos/BLEManagerImpl.cpp | Arkq/connectedhomeip | 5148b5d00154f272e0fd250140dd94fbd33c958e | [
"Apache-2.0"
] | null | null | null | src/platform/webos/BLEManagerImpl.cpp | Arkq/connectedhomeip | 5148b5d00154f272e0fd250140dd94fbd33c958e | [
"Apache-2.0"
] | 2 | 2022-02-21T11:04:41.000Z | 2022-03-17T11:44:48.000Z | src/platform/webos/BLEManagerImpl.cpp | Arkq/connectedhomeip | 5148b5d00154f272e0fd250140dd94fbd33c958e | [
"Apache-2.0"
] | 2 | 2021-12-02T09:08:00.000Z | 2021-12-03T07:31:44.000Z | /*
*
* Copyright (c) 2020-2022 Project CHIP Authors
* Copyright (c) 2018 Nest Labs, Inc.
*
* 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.o... | 34.440406 | 132 | 0.695874 | [
"object",
"vector"
] |
aaba35c0037ec6f9acdfc3d2e1e1b437f69b5ec6 | 6,819 | cc | C++ | npy/tests/NSDFTest.cc | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 11 | 2020-07-05T02:39:32.000Z | 2022-03-20T18:52:44.000Z | npy/tests/NSDFTest.cc | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | null | null | null | npy/tests/NSDFTest.cc | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 4 | 2020-09-03T20:36:32.000Z | 2022-01-19T07:42:21.000Z | /*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... | 27.832653 | 101 | 0.63763 | [
"geometry",
"vector",
"model",
"transform"
] |
aaba414442f2648af5f6b442e033db1db7b43275 | 10,252 | cpp | C++ | src/percept/stk_rebalance/Rebalance.cpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 3 | 2017-08-08T21:06:02.000Z | 2020-01-08T13:23:36.000Z | src/percept/stk_rebalance/Rebalance.cpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 2 | 2016-12-17T00:18:56.000Z | 2019-08-09T15:29:25.000Z | src/percept/stk_rebalance/Rebalance.cpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 2 | 2017-11-30T07:02:41.000Z | 2019-08-05T17:07:04.000Z | // Copyright 2002 - 2008, 2010, 2011 National Technology Engineering
// Solutions of Sandia, LLC (NTESS). Under the terms of Contract
// DE-NA0003525 with NTESS, the U.S. Government retains certain rights
// in this software.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the L... | 38.980989 | 130 | 0.639485 | [
"mesh",
"vector"
] |
aabb80914a8c4d77de3b73fa00d6a4ff91ba0fc3 | 264 | cpp | C++ | docs/atl/codesnippet/CPP/cwindow-class_5.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/atl/codesnippet/CPP/cwindow-class_5.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/atl/codesnippet/CPP/cwindow-class_5.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | //The following example attaches an HWND to the CWindow object and
//calls CWindow::DestroyWindow() to destroy the window
CWindow myWindow;
myWindow.Attach(hWndChild);
//call the CWindow wrappers
myWindow.DestroyWindow();
hWndChild = NULL; | 29.333333 | 70 | 0.723485 | [
"object"
] |
aabceeceeff325352a14a68872c4818661b3682d | 11,397 | cc | C++ | code/mayaplugin/mayautil/mayaattrutil.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/mayaplugin/mayautil/mayaattrutil.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/mayaplugin/mayautil/mayaattrutil.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// mayaattrutil.cc
// (C) 2009 Radon Labs GmbH
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "mayautil/mayaattrutil.h"
#include "mayautil/mayatype.h"
#include <maya/MFnDepen... | 29.835079 | 80 | 0.534088 | [
"vector"
] |
aac37c7b363fd2a251f2c258c553db4727d84176 | 37,901 | cc | C++ | bin/ui/input_reader/input_interpreter.cc | PowerOlive/garnet | 16b5b38b765195699f41ccb6684cc58dd3512793 | [
"BSD-3-Clause"
] | null | null | null | bin/ui/input_reader/input_interpreter.cc | PowerOlive/garnet | 16b5b38b765195699f41ccb6684cc58dd3512793 | [
"BSD-3-Clause"
] | null | null | null | bin/ui/input_reader/input_interpreter.cc | PowerOlive/garnet | 16b5b38b765195699f41ccb6684cc58dd3512793 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Fuchsia 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 "garnet/bin/ui/input_reader/input_interpreter.h"
#include <fcntl.h>
#include <hid/acer12.h>
#include <hid/ambient-light.h>
#include <hid/boot.h>
... | 35.223978 | 80 | 0.673729 | [
"vector"
] |
aac46d1de1a46f30b80779c062fd219426a20168 | 1,827 | cpp | C++ | src/MidiInterface.cpp | tschiemer/rme-totalmix-midi-adapter | 4673a0aa927f69f8cc5a526198c84baf9acd72ce | [
"MIT"
] | null | null | null | src/MidiInterface.cpp | tschiemer/rme-totalmix-midi-adapter | 4673a0aa927f69f8cc5a526198c84baf9acd72ce | [
"MIT"
] | null | null | null | src/MidiInterface.cpp | tschiemer/rme-totalmix-midi-adapter | 4673a0aa927f69f8cc5a526198c84baf9acd72ce | [
"MIT"
] | null | null | null | #include <MidiInterface.hpp>
#include <cassert>
namespace RMETotalMixMidiAdapter{
void MidiInterface::rtMidiCallback( double timeStamp, std::vector<unsigned char> *message, void *userData ){
assert( userData != NULL );
MidiInterface * midiInterface = (MidiInterface*)userData;
// safety
if (midiIn... | 22.012048 | 112 | 0.644773 | [
"vector"
] |
aacb31832662998e74a611ea17de7fc183be436d | 17,345 | cpp | C++ | src/sprite3d.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | null | null | null | src/sprite3d.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 17 | 2015-08-04T07:19:18.000Z | 2015-08-07T20:51:46.000Z | src/sprite3d.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | null | null | null | #include <sprite3d.h>
#include <geometry3d.h>
#include <renderer.h>
#include <sadmutex.h>
#include <glcontext.h>
#include <os/glheaders.h>
#include <os/gltexturedgeometry3d.h>
#include <os/gluntexturedgeometry3d.h>
#include <math.h>
#include "db/schema/schema.h"
#include "db/dbproperty.h"
#include "db/... | 25.620384 | 120 | 0.558778 | [
"render"
] |
aad66e26450d18bcc44b08d998ea8de9e29e4729 | 594 | cpp | C++ | contest/yukicoder/401.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/yukicoder/401.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/yukicoder/401.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "vector.hpp"
int main() {
constexpr int dx[]{1, 0, -1, 0};
constexpr int dy[]{0, 1, 0, -1};
int n(in), x = 0, y = 0, d = 0;
Vector<Vector<int>> res(n, Vector<int>(n));
for (int i = 1; i <= n * n; ++i) {
res[y][x] = i;
x += dx[d];
y += dy[d];
if (x + dx[d] < 0 || n <= x + dx[d] || y +... | 24.75 | 77 | 0.368687 | [
"vector"
] |
aadcec917eb3975e37ab97978afbc335427a8ed7 | 1,076 | cpp | C++ | src/matrix.cpp | ilya-guseynov/computing-node | c3213c1ff55d5597f950ce4fbb749e5dec931d3b | [
"MIT"
] | null | null | null | src/matrix.cpp | ilya-guseynov/computing-node | c3213c1ff55d5597f950ce4fbb749e5dec931d3b | [
"MIT"
] | null | null | null | src/matrix.cpp | ilya-guseynov/computing-node | c3213c1ff55d5597f950ce4fbb749e5dec931d3b | [
"MIT"
] | null | null | null | #include <vector>
/**
* Calculates if provided matrix is square or not.
*
* @param provided_matrix Vector of vectors, which represents a matrix.
* @return true if matrix is square, false if not.
*/
bool is_matrix_square(std::vector<std::vector<double>> matrix) {
for (unsigned int i = 0; i < matrix.size(); i++)... | 22.893617 | 71 | 0.652416 | [
"vector"
] |
aae026c7fbc73529d444b92a817e2e0e2fc7aa8d | 1,181 | hpp | C++ | _midynet/include/FastMIDyNet/prior/sbm/python/edgematrix.hpp | charlesmurphy1/fast-midynet | 22071d49077fce9d5f99a4664f36767b27edea64 | [
"MIT"
] | null | null | null | _midynet/include/FastMIDyNet/prior/sbm/python/edgematrix.hpp | charlesmurphy1/fast-midynet | 22071d49077fce9d5f99a4664f36767b27edea64 | [
"MIT"
] | null | null | null | _midynet/include/FastMIDyNet/prior/sbm/python/edgematrix.hpp | charlesmurphy1/fast-midynet | 22071d49077fce9d5f99a4664f36767b27edea64 | [
"MIT"
] | null | null | null | #ifndef FAST_MIDYNET_PYTHON_EDGEMATRIX_H
#define FAST_MIDYNET_PYTHON_EDGEMATRIX_H
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <vector>
#include "FastMIDyNet/types.h"
#include "FastMIDyNet/prior/prior.hpp"
#include "FastMIDyNet/prior/python/prior.hpp"
#include "FastMIDyNet/prior/sbm/edge_count.h"... | 36.90625 | 199 | 0.806943 | [
"vector"
] |
aae7b06d944ee4e3502c7d872210f02ffcc74fe6 | 1,363 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Winforms/DesignerTransactionCloseEventHandlerExample/CPP/designertransactioncloseeventhandlerexample.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Winforms/DesignerTransactionCloseEventHandlerExample/CPP/designertransactioncloseeventhandlerexample.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Winforms/DesignerTransactionCloseEventHandlerExample/CPP/designertransactioncloseeventhandlerexample.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z | #using <system.dll>
using namespace System;
using namespace System::ComponentModel;
using namespace System::ComponentModel::Design;
namespace MiscCompModSamples
{
public ref class DesignerTransactionCloseEventHandlerExample
{
private:
DesignerTransactionCloseEventHandlerExample()
{
... | 31.697674 | 105 | 0.65664 | [
"object"
] |
aaeb32de551a118a648307284f0cb07767a93d0c | 2,586 | cpp | C++ | src/tabs.cpp | michael-gober/Smart_Symbolic_Graphing_Calculator | 56caaab9076d553de1fee24bb0e4f9e691c07e64 | [
"MIT"
] | null | null | null | src/tabs.cpp | michael-gober/Smart_Symbolic_Graphing_Calculator | 56caaab9076d553de1fee24bb0e4f9e691c07e64 | [
"MIT"
] | null | null | null | src/tabs.cpp | michael-gober/Smart_Symbolic_Graphing_Calculator | 56caaab9076d553de1fee24bb0e4f9e691c07e64 | [
"MIT"
] | 1 | 2021-11-20T21:25:15.000Z | 2021-11-20T21:25:15.000Z | #include <Calculator.h>
#include <stdio.h>
#include <graphing.hxx>
#include <tabs.hxx>
//Disable Scroll Animation Between Tabs
// static void scroll_begin_event(lv_event_t * e)
// {
// /*Disable the scroll animations. Triggered when a tab button is clicked */
// if(lv_event_get_code(e) == LV_EVENT_SCROLL_BEGIN... | 38.597015 | 100 | 0.721578 | [
"object"
] |
aaee4cd09782e13ee16bc37ae812750e0d8acb93 | 1,073 | cpp | C++ | workshop 2020/Advanced/reforestation/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | workshop 2020/Advanced/reforestation/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | workshop 2020/Advanced/reforestation/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <queue>
#include <limits>
#include <math.h>
#define int long long
using namespace std;
int space(int distance){
if(distance <= 2){
return 0;
}
return (distance -1)/2;
}
signed main() {
int n;
cin >> n;
priority_queue<pair<int, pair<int,... | 26.170732 | 116 | 0.612302 | [
"vector"
] |
aaf01a2be5bae31d4cb2f07fcfcba24edd2f2a12 | 34,467 | cpp | C++ | kernel/src/utils/SiconosAlgebra/SimpleMatrix.cpp | BuildJet/siconos | 5e9c95806f0a01d62ab564ffb1d9d50c2dc32ef0 | [
"Apache-2.0"
] | 137 | 2015-06-16T15:55:28.000Z | 2022-03-26T06:01:59.000Z | kernel/src/utils/SiconosAlgebra/SimpleMatrix.cpp | BuildJet/siconos | 5e9c95806f0a01d62ab564ffb1d9d50c2dc32ef0 | [
"Apache-2.0"
] | 381 | 2015-09-22T15:31:08.000Z | 2022-02-14T09:05:23.000Z | kernel/src/utils/SiconosAlgebra/SimpleMatrix.cpp | BuildJet/siconos | 5e9c95806f0a01d62ab564ffb1d9d50c2dc32ef0 | [
"Apache-2.0"
] | 30 | 2015-08-06T22:57:51.000Z | 2022-03-02T20:30:20.000Z | /* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2021 INRIA.
*
* 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
*
*... | 29.738568 | 170 | 0.62071 | [
"vector"
] |
aaf12d326fa4f8e35083d8ba61b63c93dd1ead66 | 3,254 | cpp | C++ | AppInfrastructure/IpcService/source/common/IpcVariantList.cpp | TeknoVenus/Dobby | a6e71af1650db031332567beaa627969c5a7872e | [
"Apache-2.0"
] | null | null | null | AppInfrastructure/IpcService/source/common/IpcVariantList.cpp | TeknoVenus/Dobby | a6e71af1650db031332567beaa627969c5a7872e | [
"Apache-2.0"
] | null | null | null | AppInfrastructure/IpcService/source/common/IpcVariantList.cpp | TeknoVenus/Dobby | a6e71af1650db031332567beaa627969c5a7872e | [
"Apache-2.0"
] | null | null | null | /*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 RDK Management
*
* 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... | 33.204082 | 190 | 0.712661 | [
"vector"
] |
aafe2be33c0f49beed44f7eb7c3180001f5f1ffe | 1,591 | cpp | C++ | uva/12542.cpp | partho222/programming | 98a87b6a04f39c343125cf5f0dd85e0f1c37d56c | [
"BSD-2-Clause"
] | null | null | null | uva/12542.cpp | partho222/programming | 98a87b6a04f39c343125cf5f0dd85e0f1c37d56c | [
"BSD-2-Clause"
] | null | null | null | uva/12542.cpp | partho222/programming | 98a87b6a04f39c343125cf5f0dd85e0f1c37d56c | [
"BSD-2-Clause"
] | null | null | null | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
... | 16.925532 | 72 | 0.409177 | [
"vector"
] |
c901ba2177584a933f32de59cf071e47ffe4ae91 | 3,840 | cpp | C++ | poincare/src/conjugate_layout.cpp | VersiraSec/epsilon-cfw | d12b44c6c6668ecc14b60d8dd098ba5c230b1291 | [
"FSFAP"
] | 1,442 | 2017-08-28T19:39:45.000Z | 2022-03-30T00:56:14.000Z | poincare/src/conjugate_layout.cpp | VersiraSec/epsilon-cfw | d12b44c6c6668ecc14b60d8dd098ba5c230b1291 | [
"FSFAP"
] | 1,321 | 2017-08-28T23:03:10.000Z | 2022-03-31T19:32:17.000Z | poincare/src/conjugate_layout.cpp | VersiraSec/epsilon-cfw | d12b44c6c6668ecc14b60d8dd098ba5c230b1291 | [
"FSFAP"
] | 421 | 2017-08-28T22:02:39.000Z | 2022-03-28T20:52:21.000Z | #include <poincare/conjugate.h>
#include <poincare/conjugate_layout.h>
#include <poincare/layout_helper.h>
#include <poincare/serialization_helper.h>
#include <escher/metric.h>
#include <assert.h>
namespace Poincare {
void ConjugateLayoutNode::moveCursorLeft(LayoutCursor * cursor, bool * shouldRecomputeLayout, bool f... | 35.555556 | 184 | 0.72526 | [
"render"
] |
c904b324f3a98975beaaaef24971583679b5c7a8 | 5,956 | cpp | C++ | tests/TestInterceptor.cpp | JackBoosY/gayrpc | a212591e87ae41061ea71c4b27546b28fd57697b | [
"MIT"
] | 187 | 2018-03-06T08:02:07.000Z | 2022-03-16T14:02:58.000Z | tests/TestInterceptor.cpp | JackBoosY/gayrpc | a212591e87ae41061ea71c4b27546b28fd57697b | [
"MIT"
] | 8 | 2020-01-02T09:47:28.000Z | 2022-01-15T02:28:36.000Z | tests/TestInterceptor.cpp | JackBoosY/gayrpc | a212591e87ae41061ea71c4b27546b28fd57697b | [
"MIT"
] | 43 | 2018-03-10T05:45:03.000Z | 2022-02-26T14:02:10.000Z | #define CATCH_CONFIG_MAIN// This tells Catch to provide a main() - only do this in one cpp file
#include <gayrpc/core/GayRpcInterceptor.h>
#include <vector>
#include "catch.hpp"
TEST_CASE("interceptor are computed", "[interceptor]")
{
using namespace gayrpc::core;
// normal
{
auto interceptor = g... | 39.184211 | 136 | 0.521323 | [
"vector"
] |
c904d843725cb22f40e9a42cce7c30cbcb4666cc | 15,947 | hpp | C++ | src/http_request.hpp | TylerOBrien/Cpp-HTTP-Request | c44da2b42cbc43552cbd66b3ef3e91f69aefa913 | [
"MIT"
] | null | null | null | src/http_request.hpp | TylerOBrien/Cpp-HTTP-Request | c44da2b42cbc43552cbd66b3ef3e91f69aefa913 | [
"MIT"
] | null | null | null | src/http_request.hpp | TylerOBrien/Cpp-HTTP-Request | c44da2b42cbc43552cbd66b3ef3e91f69aefa913 | [
"MIT"
] | null | null | null | /*
* HTTP Request
*
* http://tylerobrien.com
* https://github.com/TylerOBrien/Cpp-HTTP-Request
*
* Copyright (c) 2015 Tyler O'Brien
*
* 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 r... | 22.428973 | 106 | 0.643569 | [
"object"
] |
c905936e728adf138a99a936676102ed25b8248a | 2,961 | cpp | C++ | test/share.cpp | chilingg/Redopera | a898eb269d5d3eba9ba5b14ef9b4209f615f4547 | [
"MIT"
] | null | null | null | test/share.cpp | chilingg/Redopera | a898eb269d5d3eba9ba5b14ef9b4209f615f4547 | [
"MIT"
] | null | null | null | test/share.cpp | chilingg/Redopera | a898eb269d5d3eba9ba5b14ef9b4209f615f4547 | [
"MIT"
] | null | null | null | #include <rsc/RShaderProg.h>
#include <RGame.h>
#include <RRenderSystem.h>
#include <RWindow.h>
#include <RThread.h>
#include <RPlane.h>
#include <RTextbox.h>
#include <RDebug.h>
#include <RInputModule.h>
#include <REvent.h>
#include <RController.h>
#include <future>
using namespace Redopera;
// 测试多线程OpenGL Contex之间... | 23.5 | 124 | 0.616684 | [
"model"
] |
c909c029cca0dbf4a5ca5192b5584609d7918fba | 3,235 | cc | C++ | test/sim_countBL.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 138 | 2015-01-05T15:50:20.000Z | 2022-02-25T01:09:58.000Z | test/sim_countBL.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 337 | 2015-08-07T18:24:58.000Z | 2022-03-31T14:39:03.000Z | test/sim_countBL.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 70 | 2015-01-17T00:58:41.000Z | 2022-02-13T04:58:20.000Z | #include "SimModel.h"
#include "SimUtil.h"
#include "SimParasolidKrnl.h"
#include "SimPartitionedMesh.h"
#include "SimAdvMeshing.h"
#include <pcu_util.h>
#include <mpi.h>
#include <stdlib.h>
#include <stdio.h>
#include <cstring>
#include <iostream>
using namespace std;
const char* modelFilename;
const char* meshFile... | 24.323308 | 105 | 0.632148 | [
"mesh",
"model"
] |
c913541f02b2adce4570dcbdf2fd8a9b8f8b6c18 | 3,111 | cpp | C++ | core/log.cpp | chipgw/openbfme | 238df6be3ba3a95642b318fa3ca09d128812c9e6 | [
"MIT"
] | 5 | 2015-10-26T05:42:43.000Z | 2020-01-24T08:40:28.000Z | core/log.cpp | chipgw/openbfme | 238df6be3ba3a95642b318fa3ca09d128812c9e6 | [
"MIT"
] | null | null | null | core/log.cpp | chipgw/openbfme | 238df6be3ba3a95642b318fa3ca09d128812c9e6 | [
"MIT"
] | null | null | null | #include "log.hpp"
#include "application.hpp"
#ifdef OPENBFME_PLATFORM_WINDOWS
#include <Windows.h>
#endif
namespace OpenBFME {
namespace Log {
namespace {
/* A nice private list of FILE*'s and their associated level. */
struct Output {
OutputLevel level;
FILE* fp;
Output(OutputLevel l, FILE* f) : leve... | 27.776786 | 89 | 0.563484 | [
"vector"
] |
c918e268e39ad762f17588fc87cd51945fa58c2e | 3,183 | cpp | C++ | src/tests/TestLink.cpp | Rantanen/mumble | 762122319381bd9d5f23f497c68aad5186e30d91 | [
"BSD-3-Clause"
] | 2 | 2021-09-17T23:30:16.000Z | 2021-09-18T04:14:17.000Z | src/tests/TestLink.cpp | Rantanen/mumble | 762122319381bd9d5f23f497c68aad5186e30d91 | [
"BSD-3-Clause"
] | null | null | null | src/tests/TestLink.cpp | Rantanen/mumble | 762122319381bd9d5f23f497c68aad5186e30d91 | [
"BSD-3-Clause"
] | null | null | null | // Allow use of wcsncpy without warnings
#define _CRT_SECURE_NO_WARNINGS
#include <QtCore>
#ifdef WIN32
#include <windows.h>
#else
#include <fcntl.h>
#include <sys/mman.h>
#endif
struct LinkedMem {
#ifdef WIN32
UINT32 uiVersion;
DWORD uiTick;
#else
uint32_t uiVersion;
uint32_t uiTick;
#endif
float fAvatarPositi... | 21.80137 | 103 | 0.681118 | [
"vector"
] |
c91e4ea1ca9d86e0f6f8440e6ee333336c8cf4a6 | 10,274 | cpp | C++ | Classes/editor/Editor.cpp | youlanhai/cc-qt-framework | 35b19d253cdbe2800ecb8068e476efa408f76242 | [
"MIT"
] | null | null | null | Classes/editor/Editor.cpp | youlanhai/cc-qt-framework | 35b19d253cdbe2800ecb8068e476efa408f76242 | [
"MIT"
] | null | null | null | Classes/editor/Editor.cpp | youlanhai/cc-qt-framework | 35b19d253cdbe2800ecb8068e476efa408f76242 | [
"MIT"
] | 2 | 2015-11-05T08:25:14.000Z | 2018-03-07T07:29:48.000Z | #include "Editor.h"
#include "EditorPropertyItem.h"
#include "EditorPropertyTree.h"
#include "EditorTools.h"
#include "EditorHierarchy.h"
#include "EditorCanvas2D.h"
#include "EditorCanvas3D.h"
#include "EditorInspector.h"
#include "EditorPropertyDefault.h"
#include "EditorScene.h"
#include "uiloader/UILoader.h"
#incl... | 29.866279 | 132 | 0.575628 | [
"object"
] |
c9229de1954da61603c450a6840c8abc086b017d | 42,109 | cpp | C++ | private/shell/cpls/appwiz/datasrc.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/shell/cpls/appwiz/datasrc.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/shell/cpls/appwiz/datasrc.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | //+-----------------------------------------------------------------------
//
// Add/Remove Programs Data Source Object
//
//------------------------------------------------------------------------
#include "priv.h"
// Do not build this file if on Win9X or NT4
#ifndef DOWNLEVEL_PLATFORM
#include "datas... | 29.654225 | 112 | 0.503099 | [
"object"
] |
c92a2046990fcd9e9c87f4c59ec7e7f34edbb2ff | 1,192 | cpp | C++ | answers/94/ans.cpp | yumaokao/leetcpp | 440296f8639673bb5b8f33ee8764f25bb7fc75db | [
"MIT"
] | null | null | null | answers/94/ans.cpp | yumaokao/leetcpp | 440296f8639673bb5b8f33ee8764f25bb7fc75db | [
"MIT"
] | null | null | null | answers/94/ans.cpp | yumaokao/leetcpp | 440296f8639673bb5b8f33ee8764f25bb7fc75db | [
"MIT"
] | null | null | null | #include <string>
#include <climits>
#include <iostream>
#include <vector>
using namespace std;
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
struct TreeNode {
int ... | 19.540984 | 59 | 0.59396 | [
"vector"
] |
c9389987bf42d073c6976f28db7561d13ffba718 | 48,397 | cc | C++ | src/SVPH/SVPHHydroBase.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/SVPH/SVPHHydroBase.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/SVPH/SVPHHydroBase.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// SVPHHydroBase -- The SVPH hydrodynamic package for Spheral++.
//
// Created by JMO, Sun Jul 28 20:57:01 PDT 2013
//----------------------------------------------------------------------------//
#include "SVPH/SVPHHydroBase.hh"
#include ... | 49.183943 | 176 | 0.628469 | [
"mesh",
"vector"
] |
c93e274a402cb56df44d9c44c5176412714d6671 | 10,278 | cpp | C++ | src/lib/top_level/isomorph/representatives.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-10-27T15:18:28.000Z | 2022-02-09T11:13:07.000Z | src/lib/top_level/isomorph/representatives.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 4 | 2019-12-09T11:49:11.000Z | 2020-07-30T17:34:45.000Z | src/lib/top_level/isomorph/representatives.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-06-10T20:05:30.000Z | 2020-12-18T04:59:19.000Z | // representatives.cpp
//
// Anton Betten
// started July 3, 2012
//
//
//
//
#include "orbiter.h"
using namespace std;
namespace orbiter {
namespace top_level {
representatives::representatives()
{
null();
}
void representatives::null()
{
count = 0;
rep = NULL;
stab = NULL;
fusion = NULL;
handle = NULL;
... | 21.683544 | 96 | 0.600992 | [
"object"
] |
c93f34b1f5d69b396b4c8fb4c704def10c7b4fca | 22,388 | cpp | C++ | cpp/src/cylon/indexing/indexer.cpp | chathurawidanage/cylon | ac61b7a50880138fe67de21adee208016a94979a | [
"Apache-2.0"
] | null | null | null | cpp/src/cylon/indexing/indexer.cpp | chathurawidanage/cylon | ac61b7a50880138fe67de21adee208016a94979a | [
"Apache-2.0"
] | null | null | null | cpp/src/cylon/indexing/indexer.cpp | chathurawidanage/cylon | ac61b7a50880138fe67de21adee208016a94979a | [
"Apache-2.0"
] | null | null | null | /*
* 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 writing, software
* distributed u... | 50.310112 | 123 | 0.747945 | [
"vector"
] |
c93fdd0ea9b314134c29a61cc2210c61bb4d1e91 | 139,394 | cpp | C++ | C10_Libraries/Plugins/VRExpansionPlugin/VRExpansionPlugin/Intermediate/Build/Win64/UE4Editor/Inc/VRExpansionPlugin/VRBaseCharacterMovementComponent.gen.cpp | Docdavies/Unreal-Engine-4-Virtual-Reality-Projects | 86305b7a7c8112933e73bcd95d7d33a1d6b8c210 | [
"MIT"
] | 24 | 2019-04-20T01:46:33.000Z | 2022-02-06T07:22:53.000Z | C10_Libraries/Plugins/VRExpansionPlugin/VRExpansionPlugin/Intermediate/Build/Win64/UE4Editor/Inc/VRExpansionPlugin/VRBaseCharacterMovementComponent.gen.cpp | Docdavies/Unreal-Engine-4-Virtual-Reality-Projects | 86305b7a7c8112933e73bcd95d7d33a1d6b8c210 | [
"MIT"
] | null | null | null | C10_Libraries/Plugins/VRExpansionPlugin/VRExpansionPlugin/Intermediate/Build/Win64/UE4Editor/Inc/VRExpansionPlugin/VRBaseCharacterMovementComponent.gen.cpp | Docdavies/Unreal-Engine-4-Virtual-Reality-Projects | 86305b7a7c8112933e73bcd95d7d33a1d6b8c210 | [
"MIT"
] | 16 | 2019-06-03T16:02:56.000Z | 2022-01-19T08:36:57.000Z | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==============================================================... | 88.729472 | 956 | 0.87158 | [
"object",
"vector"
] |
c94cb8564771b8f4b89dde3520b4805129108ad8 | 9,780 | cpp | C++ | DoublePendulum/src/Pendulum.cpp | Zachhi/DoublePendulum | e7d9331cd2857cec903bec37db2599204307f1a9 | [
"MIT"
] | 2 | 2021-10-10T05:35:05.000Z | 2021-12-27T20:30:31.000Z | DoublePendulum/src/Pendulum.cpp | Zachhi/DoublePendulum-Windows-Linux | 9e6bedcac7000a2716d0ea255ae302a39f85ee7c | [
"MIT"
] | null | null | null | DoublePendulum/src/Pendulum.cpp | Zachhi/DoublePendulum-Windows-Linux | 9e6bedcac7000a2716d0ea255ae302a39f85ee7c | [
"MIT"
] | null | null | null | #include "Pendulum.h"
//constructor
Pendulum::Pendulum(int mass, float angle, int length, int x, int y)
{
start(mass, angle, length, x, y);
}
int Pendulum::getSize()
{
return pendulum.size();
}
sf::Color Pendulum::getArmColor()
{
return armColor;
}
//start a new pendulum
void Pendulum::start(int mass, float... | 34.80427 | 184 | 0.593047 | [
"object",
"vector",
"solid"
] |
c94e47cd80e8fd4a2ea0a137c4f868e872145856 | 1,990 | cpp | C++ | src/sandbox/graphics/vulkan/VulkanDeviceRenderer.cpp | OpenSpace-VisLink/sandbox | cb8a42facc3afe73794e2e4405aab13531ccbcb2 | [
"MIT"
] | null | null | null | src/sandbox/graphics/vulkan/VulkanDeviceRenderer.cpp | OpenSpace-VisLink/sandbox | cb8a42facc3afe73794e2e4405aab13531ccbcb2 | [
"MIT"
] | null | null | null | src/sandbox/graphics/vulkan/VulkanDeviceRenderer.cpp | OpenSpace-VisLink/sandbox | cb8a42facc3afe73794e2e4405aab13531ccbcb2 | [
"MIT"
] | 1 | 2020-12-01T18:17:58.000Z | 2020-12-01T18:17:58.000Z | #include "sandbox/graphics/vulkan/VulkanDeviceRenderer.h"
#include "sandbox/graphics/vulkan/VulkanDeviceState.h"
#include "sandbox/graphics/vulkan/VulkanSwapChain.h"
namespace sandbox {
void VulkanDeviceRenderer::update() {
GraphicsRenderer::update();
if (!state) {
state = &VulkanDeviceState::get(getContext());
... | 29.701493 | 140 | 0.746734 | [
"render"
] |
c95af3d20730109b5fc85e3a3597aaa904caf6cc | 1,455 | cc | C++ | src/dish.cc | Eveneko/Dish | 35a1fae7bafc4e30d36c9c909f7fb6f193366c7c | [
"MIT"
] | null | null | null | src/dish.cc | Eveneko/Dish | 35a1fae7bafc4e30d36c9c909f7fb6f193366c7c | [
"MIT"
] | null | null | null | src/dish.cc | Eveneko/Dish | 35a1fae7bafc4e30d36c9c909f7fb6f193366c7c | [
"MIT"
] | null | null | null | #include "dish.h"
int main(int argc, char* argv[]) {
Arguments args(INTRO_TEXT);
args.RegisterBool("help", "Print help message");
args.RegisterAlias('h', "help");
args.RegisterBool("quiet", "Hide all logs except errors");
args.RegisterAlias('q', "quiet");
args.RegisterBool("debug", "Show debu... | 25.526316 | 62 | 0.571134 | [
"vector"
] |
e922bbfe035c9dc9e868da786d56fc4cd8cd9c03 | 30,318 | cpp | C++ | RobWorkStudio/src/rwslibs/workcelleditor/WorkcellEditorWindow.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWorkStudio/src/rwslibs/workcelleditor/WorkcellEditorWindow.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWorkStudio/src/rwslibs/workcelleditor/WorkcellEditorWindow.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************
* Copyright 2019 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 37.018315 | 100 | 0.53615 | [
"cad",
"mesh",
"geometry",
"object",
"vector",
"model",
"transform"
] |
e9300b0f3247ed84a178b4eea1742b9151fa4f7a | 4,376 | cc | C++ | ports/nacl-spawn/library_dependencies.cc | SDFSampleStaging/Webports | 0a4330efc83729a39d65d5a2129e2c0be230a8b5 | [
"BSD-3-Clause"
] | 1 | 2022-02-25T19:20:26.000Z | 2022-02-25T19:20:26.000Z | ports/nacl-spawn/library_dependencies.cc | yeyus/naclports | ceb194315915c69a7266d695259e2c204f9cbbaf | [
"BSD-3-Clause"
] | null | null | null | ports/nacl-spawn/library_dependencies.cc | yeyus/naclports | ceb194315915c69a7266d695259e2c204f9cbbaf | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2014 The Native Client 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 "library_dependencies.h"
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <uni... | 27.35 | 77 | 0.629799 | [
"vector"
] |
e932e51b235cdb4487a470a8a4261e2122ac571c | 398 | cpp | C++ | lib/cpp/hawkes/model/list_of_realizations/model_hawkes_sumexpkern_loglik.cpp | sumau/tick | 1b56924a35463e12f7775bc0aec182364f26f2c6 | [
"BSD-3-Clause"
] | 411 | 2017-03-30T15:22:05.000Z | 2022-03-27T01:58:34.000Z | lib/cpp/hawkes/model/list_of_realizations/model_hawkes_sumexpkern_loglik.cpp | saurabhdash/tick | bbc561804eb1fdcb4c71b9e3e2d83a66e7b13a48 | [
"BSD-3-Clause"
] | 345 | 2017-04-13T14:53:20.000Z | 2022-03-26T00:46:22.000Z | lib/cpp/hawkes/model/list_of_realizations/model_hawkes_sumexpkern_loglik.cpp | saurabhdash/tick | bbc561804eb1fdcb4c71b9e3e2d83a66e7b13a48 | [
"BSD-3-Clause"
] | 102 | 2017-04-25T11:47:53.000Z | 2022-02-15T11:45:49.000Z | // License: BSD 3 clause
#include "tick/hawkes/model/list_of_realizations/model_hawkes_sumexpkern_loglik.h"
ModelHawkesSumExpKernLogLik::ModelHawkesSumExpKernLogLik(
const ArrayDouble &decays, const int max_n_threads)
: ModelHawkesLogLik(max_n_threads), decays(decays) {}
ulong ModelHawkesSumExpKernLogLik::ge... | 33.166667 | 82 | 0.796482 | [
"model"
] |
e93ae63674ea63b41010ad3c7cb756b558604610 | 2,368 | cc | C++ | pc/std-variant-test.cc | kyawakyawa/cpp-junk-parts | f56432e9a097d4b151803164cd6847ef152b8e16 | [
"MIT"
] | null | null | null | pc/std-variant-test.cc | kyawakyawa/cpp-junk-parts | f56432e9a097d4b151803164cd6847ef152b8e16 | [
"MIT"
] | null | null | null | pc/std-variant-test.cc | kyawakyawa/cpp-junk-parts | f56432e9a097d4b151803164cd6847ef152b8e16 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2019-2020 kyawakyawa
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... | 26.021978 | 78 | 0.668919 | [
"object"
] |
e94747a19269e47a4bcb35920df17fd900631e97 | 1,293 | hpp | C++ | simulation/extern_include/MatlabCppSharedLib/matlab_library.hpp | seanny1986/gym-aero | bb8e7f299ca83029c300fa85e423be90fc9c11e1 | [
"MIT"
] | 5 | 2018-11-21T11:52:49.000Z | 2021-04-14T03:13:31.000Z | simulation/extern_include/MatlabCppSharedLib/matlab_library.hpp | seanny1986/gym-aero | bb8e7f299ca83029c300fa85e423be90fc9c11e1 | [
"MIT"
] | 3 | 2018-08-24T03:12:36.000Z | 2019-09-29T06:21:32.000Z | simulation/extern_include/MatlabCppSharedLib/matlab_library.hpp | seanny1986/gym-aero | bb8e7f299ca83029c300fa85e423be90fc9c11e1 | [
"MIT"
] | 4 | 2018-08-10T07:02:30.000Z | 2022-03-09T07:20:16.000Z | /* Copyright 2017 The MathWorks, Inc. */
#ifndef MATLAB_LIBRARY_HPP
#define MATLAB_LIBRARY_HPP
#include "matlab_application.hpp"
#include <MatlabExecutionInterface/execution_interface.hpp>
#include <vector>
#include <streambuf>
#include <memory>
#include <future>
#include <complex>
namespace matlab {
namespace ... | 23.944444 | 170 | 0.586234 | [
"vector"
] |
e94a017a32c9b1d706cd0a31cb9535ab9b5e42c6 | 3,337 | cpp | C++ | SceneBuilder/Sphere.cpp | PanagiotisPtr/3D-Scene-Builder | b3440eef4b3a1279e8de7a779d93e5f2956b877f | [
"MIT"
] | null | null | null | SceneBuilder/Sphere.cpp | PanagiotisPtr/3D-Scene-Builder | b3440eef4b3a1279e8de7a779d93e5f2956b877f | [
"MIT"
] | null | null | null | SceneBuilder/Sphere.cpp | PanagiotisPtr/3D-Scene-Builder | b3440eef4b3a1279e8de7a779d93e5f2956b877f | [
"MIT"
] | null | null | null | #include "Sphere.h"
#include <map>
#include <glm/geometric.hpp>
#include <assert.h>
#include "GLFW/glfw3.h"
#include <set>
#include <chrono>
#include <numeric>
void glDrawVec3(glm::vec3 x) {
glVertex3f(x.x, x.y, x.z);
}
template<typename T>
std::tuple<T, T> buildOrderedTuple(T a, T b) {
return a < b ? std::make_tup... | 28.279661 | 105 | 0.689542 | [
"vector"
] |
e953684c9c1213c21622c77b37455d65ab006632 | 8,640 | cc | C++ | rippled.cc | codedumper1/mysql-ripple | bb9e3656519597c97d2c67ace918022c9b669d58 | [
"Apache-2.0"
] | null | null | null | rippled.cc | codedumper1/mysql-ripple | bb9e3656519597c97d2c67ace918022c9b669d58 | [
"Apache-2.0"
] | null | null | null | rippled.cc | codedumper1/mysql-ripple | bb9e3656519597c97d2c67ace918022c9b669d58 | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 The Ripple Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | 27.78135 | 79 | 0.675347 | [
"object"
] |
e954382f97ef8ab08576998d5ff1384e877a4a09 | 10,936 | cpp | C++ | lib/grid/grid_segment.cpp | mdavezac/bempp | bc573062405bda107d1514e40b6153a8350d5ab5 | [
"BSL-1.0"
] | null | null | null | lib/grid/grid_segment.cpp | mdavezac/bempp | bc573062405bda107d1514e40b6153a8350d5ab5 | [
"BSL-1.0"
] | null | null | null | lib/grid/grid_segment.cpp | mdavezac/bempp | bc573062405bda107d1514e40b6153a8350d5ab5 | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2011-2013 by the BEM++ Authors
//
// 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, mer... | 40.354244 | 80 | 0.626097 | [
"geometry",
"vector"
] |
e954511bd1519d121131fe8bf85c5004b1d7e865 | 3,073 | cpp | C++ | middleware/domain/source/manager/state/order.cpp | casualcore/casual | 047a4eaabbba52ad3ce63dc698a9325ad5fcec6d | [
"MIT"
] | null | null | null | middleware/domain/source/manager/state/order.cpp | casualcore/casual | 047a4eaabbba52ad3ce63dc698a9325ad5fcec6d | [
"MIT"
] | null | null | null | middleware/domain/source/manager/state/order.cpp | casualcore/casual | 047a4eaabbba52ad3ce63dc698a9325ad5fcec6d | [
"MIT"
] | 1 | 2022-02-21T18:30:25.000Z | 2022-02-21T18:30:25.000Z | //!
//! Copyright (c) 2019, The casual project
//!
//! This software is licensed under the MIT license, https://opensource.org/licenses/MIT
//!
#include "domain/manager/state/order.h"
#include "common/algorithm.h"
namespace casual
{
using namespace common;
namespace domain::manager::state::order
{
s... | 35.321839 | 155 | 0.606248 | [
"vector",
"transform"
] |
e95ba2f20632c1d70c2a06689aad8207955c05ce | 10,256 | cpp | C++ | test/test_vector.cpp | lcTls/levin | 7c3768ba96c752fe30b721fcc3af0f7202d5b6b3 | [
"Apache-2.0"
] | 113 | 2019-07-11T08:31:33.000Z | 2022-01-28T03:31:58.000Z | test/test_vector.cpp | msdgwzhy6/levin | 082a21d29ac19acbd16c5874367e77a424b7d255 | [
"Apache-2.0"
] | 1 | 2019-07-25T03:21:13.000Z | 2019-07-25T03:21:13.000Z | test/test_vector.cpp | msdgwzhy6/levin | 082a21d29ac19acbd16c5874367e77a424b7d255 | [
"Apache-2.0"
] | 27 | 2019-07-11T09:16:36.000Z | 2021-05-28T03:05:07.000Z | #include "details/vector.hpp"
#include <vector>
#include <gtest/gtest.h>
#include "svec.hpp"
#include "test_header.h"
namespace levin {
class CustomVectorTest : public ::testing::Test {
protected:
virtual void SetUp() {
}
virtual void TearDown() {
}
};
TEST_F(CustomVectorTest, test_default_construct)... | 36.112676 | 95 | 0.583561 | [
"vector"
] |
e95c6087c1f50e6f7f04ee857c7e1eba81bc5b43 | 5,820 | hpp | C++ | tab/Tab.hpp | constcut/mtherapp | 20b8e32361ef492d5b7cb4ff150f0956e952fdef | [
"MIT"
] | 2 | 2022-03-04T17:54:48.000Z | 2022-03-28T06:20:31.000Z | tab/Tab.hpp | constcut/aurals | bb00fac92a3a919867fe2e482c37fc0abe5e6984 | [
"MIT"
] | null | null | null | tab/Tab.hpp | constcut/aurals | bb00fac92a3a919867fe2e482c37fc0abe5e6984 | [
"MIT"
] | null | null | null | #ifndef TAB_H
#define TAB_H
#include <unordered_map>
#include <list>
#include <cassert>
#include "TabStructs.hpp"
#include "Chain.hpp"
#include "tab/tools/Commands.hpp"
#include "Track.hpp"
namespace aurals {
int updateDurationWithDetail(std::uint8_t detail, int base);
class Track;
class Tab : public... | 32.881356 | 118 | 0.621821 | [
"vector"
] |
e95eec0f7e386fb482f407c55949e72741aba54a | 7,142 | cpp | C++ | lib/PKFmanip.cpp | mcarlen/libbiarc | d016a1be643ddcded53411b4f242ac6004b65173 | [
"Apache-2.0"
] | null | null | null | lib/PKFmanip.cpp | mcarlen/libbiarc | d016a1be643ddcded53411b4f242ac6004b65173 | [
"Apache-2.0"
] | 1 | 2019-08-23T09:36:29.000Z | 2019-08-26T09:56:38.000Z | lib/PKFmanip.cpp | mcarlen/libbiarc | d016a1be643ddcded53411b4f242ac6004b65173 | [
"Apache-2.0"
] | 1 | 2019-08-11T21:12:02.000Z | 2019-08-11T21:12:02.000Z | /*!
\class PKFmanip include/PKFmanip.h include/PKFmanip.h
\ingroup BiarcLibGroup
\brief The PKFmanip class for storing and manipulating biarc curves
*/
//
// documentation of inlined methods
//
/*!
\fn ostream & PKFmanip::operator<<(ostream &out, PKFmanip &c)
Overloaded left shift operator. Writes the cur... | 22.601266 | 73 | 0.646038 | [
"object"
] |
e95f552c212d13ad9c77823fb0d6c8c0ee5320ab | 4,204 | cpp | C++ | weex_core/Source/core/render/page/render_page_base.cpp | yyqqing/incubator-weex | 58b4ee0abffdfcb22f5fb21c8f524923391db13f | [
"Apache-2.0"
] | 50 | 2019-06-12T03:46:17.000Z | 2022-03-30T09:20:27.000Z | weex_core/Source/core/render/page/render_page_base.cpp | yyqqing/incubator-weex | 58b4ee0abffdfcb22f5fb21c8f524923391db13f | [
"Apache-2.0"
] | 8 | 2019-07-12T02:17:21.000Z | 2022-02-07T07:30:55.000Z | weex_core/Source/core/render/page/render_page_base.cpp | yyqqing/incubator-weex | 58b4ee0abffdfcb22f5fb21c8f524923391db13f | [
"Apache-2.0"
] | 30 | 2019-06-28T17:07:57.000Z | 2021-12-09T06:06: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... | 37.873874 | 126 | 0.663654 | [
"render",
"vector"
] |
e9725790242b6a297fde53ab0c5c24f0264f7947 | 13,695 | cxx | C++ | HLT/TPCLib/AliHLTTPCTrackHistoComponent.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | null | null | null | HLT/TPCLib/AliHLTTPCTrackHistoComponent.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 2 | 2016-11-25T08:40:56.000Z | 2019-10-11T12:29:29.000Z | HLT/TPCLib/AliHLTTPCTrackHistoComponent.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | null | null | null | // $Id$
//**************************************************************************
//* This file is property of and copyright by the ALICE HLT Project *
//* ALICE Experiment at CERN, All rights reserved. *
//* *
//... | 37.013514 | 206 | 0.669295 | [
"object",
"vector"
] |
e975faab2f9c601e39d2cf1abe0574ef877de8ed | 2,695 | cpp | C++ | external/VRmUsbCamSDK/demos/c++/sdlviewer_cpp/initcamera.cpp | ocean-perception/vrmagic_stereo_ros | b0d0717ee449c12752452f29c05b75bccfaa49e9 | [
"MIT"
] | null | null | null | external/VRmUsbCamSDK/demos/c++/sdlviewer_cpp/initcamera.cpp | ocean-perception/vrmagic_stereo_ros | b0d0717ee449c12752452f29c05b75bccfaa49e9 | [
"MIT"
] | null | null | null | external/VRmUsbCamSDK/demos/c++/sdlviewer_cpp/initcamera.cpp | ocean-perception/vrmagic_stereo_ros | b0d0717ee449c12752452f29c05b75bccfaa49e9 | [
"MIT"
] | null | null | null | // ==============================================================================================
// This file is part of the VRmagic VRmUsbCam C++ API Wrapper Demo Application
// ==============================================================================================
// Camera Initialization
// -----------------... | 34.551282 | 97 | 0.660853 | [
"vector"
] |
e97b217c827913463c8dd6545e23b74770145413 | 1,366 | cpp | C++ | src/graphs/weighted_tree.cpp | LukaszSelwa/min-cut | f11eec7d3c55b886112179d8893ef6ed9b3fc2d5 | [
"MIT"
] | null | null | null | src/graphs/weighted_tree.cpp | LukaszSelwa/min-cut | f11eec7d3c55b886112179d8893ef6ed9b3fc2d5 | [
"MIT"
] | null | null | null | src/graphs/weighted_tree.cpp | LukaszSelwa/min-cut | f11eec7d3c55b886112179d8893ef6ed9b3fc2d5 | [
"MIT"
] | null | null | null | #include "weighted_tree.hpp"
namespace graphs {
weighted_tree::weighted_tree(size_t size)
: size(size), rootIdx(0), vertices(std::vector<tree_vertice>(size)) {
for (int i = 0; i < size; ++i) vertices[i].idx = i;
}
void weighted_tree::add_child_edge(int parent, int child, int weight) {
vertices[parent].ch... | 31.045455 | 86 | 0.650805 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.