hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a0f4b36f1c500051c8d0e46aa197fc94a85052d0 | 14,731 | cpp | C++ | test/iterator/iterator.cpp | bmanga/cmcstl2 | 0d9fc51a4ede0d36ddf664be55289aa34ca48560 | [
"MIT"
] | 1 | 2019-04-22T05:53:46.000Z | 2019-04-22T05:53:46.000Z | test/iterator/iterator.cpp | bmanga/cmcstl2 | 0d9fc51a4ede0d36ddf664be55289aa34ca48560 | [
"MIT"
] | null | null | null | test/iterator/iterator.cpp | bmanga/cmcstl2 | 0d9fc51a4ede0d36ddf664be55289aa34ca48560 | [
"MIT"
] | null | null | null | // cmcstl2 - A concept-enabled C++ standard library
//
// Copyright Casey Carter 2015
// Copyright Eric Niebler 2015
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
/... | 30.373196 | 85 | 0.718078 | bmanga |
a0f863acd8044c19ee7424d39029ec71c97377ea | 871 | hpp | C++ | include/quote/direct2d/traits.hpp | quartorz/quote | 610f891fb8be6993b0db773f718ae5e7f24b1f40 | [
"MIT"
] | null | null | null | include/quote/direct2d/traits.hpp | quartorz/quote | 610f891fb8be6993b0db773f718ae5e7f24b1f40 | [
"MIT"
] | null | null | null | include/quote/direct2d/traits.hpp | quartorz/quote | 610f891fb8be6993b0db773f718ae5e7f24b1f40 | [
"MIT"
] | null | null | null | #pragma once
#include <quote/direct2d/base_types.hpp>
#include <quote/direct2d/resource.hpp>
#include <quote/direct2d/object.hpp>
#include <quote/direct2d/solid_brush.hpp>
#include <quote/direct2d/font.hpp>
#include <quote/direct2d/text.hpp>
#include <quote/direct2d/userdefined_object.hpp>
namespace quote{ ... | 24.885714 | 58 | 0.709529 | quartorz |
a0fbe6cb74850bf49539406d5222088c139daf02 | 14,644 | cc | C++ | src/vt/trace/trace.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 26 | 2019-11-26T08:36:15.000Z | 2022-02-15T17:13:21.000Z | src/vt/trace/trace.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 1,215 | 2019-09-09T14:31:33.000Z | 2022-03-30T20:20:14.000Z | src/vt/trace/trace.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 12 | 2019-09-08T00:03:05.000Z | 2022-02-23T21:28:35.000Z | /*
//@HEADER
// *****************************************************************************
//
// trace.cc
// DARMA/vt => Virtual Transport
//
// Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contra... | 27.526316 | 82 | 0.701243 | rbuch |
9d02df3fd2d07b96e82c8df03a674cb306218ca9 | 4,341 | cpp | C++ | component/oai-amf/src/nas/ies/Rejected_NSSAI.cpp | kukkalli/oai-cn5g-fed | 15634fac935ac8671b61654bdf75bf8af07d3c3a | [
"Apache-2.0"
] | null | null | null | component/oai-amf/src/nas/ies/Rejected_NSSAI.cpp | kukkalli/oai-cn5g-fed | 15634fac935ac8671b61654bdf75bf8af07d3c3a | [
"Apache-2.0"
] | null | null | null | component/oai-amf/src/nas/ies/Rejected_NSSAI.cpp | kukkalli/oai-cn5g-fed | 15634fac935ac8671b61654bdf75bf8af07d3c3a | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... | 33.651163 | 81 | 0.534209 | kukkalli |
9d04c9955d252b0ab02488940f34120d14acd294 | 367 | cpp | C++ | Recursion/9. Check a string accoring to rules (automata type).cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | Recursion/9. Check a string accoring to rules (automata type).cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | Recursion/9. Check a string accoring to rules (automata type).cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | #include<iostream>
using namespace std;
/*Suppose you have a string made up of only
the letters 'a' and 'b'. Write a recursive
function that checks if the string was
generated using the following rules:
a) the string begins with an 'a'
b) each 'a' is followed by nothing or an 'a' or
"bb"
c) each "bb" is followed by no... | 19.315789 | 48 | 0.708447 | Ashwanigupta9125 |
9d0526b54ba603056e3fabf9aaa44782a3d68292 | 1,109 | cpp | C++ | atcoder/abc/abc144_e.cpp | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | 1 | 2018-11-12T15:18:55.000Z | 2018-11-12T15:18:55.000Z | atcoder/abc/abc144_e.cpp | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | atcoder/abc/abc144_e.cpp | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
typedef pair<ll, ll> Pll;
typedef vector<int> Vi;
//typedef tuple<int, int, int> T;
#define FOR(i,s,x) for(int i=s;i<(int)(x);i++)
#define REP(i,x) FOR(i,0,x)
#define ALL(c) c.begin(), c.end()
#define DUMP( x ) cerr << #x... | 23.104167 | 70 | 0.532011 | knuu |
9d056c2a6acb712d1476125784a9993a47878cab | 6,023 | cpp | C++ | IMG/IMG_PXD.cpp | agalod/ipop | b14353e7d2af5fd3f80a1bc76efe59f86ab22e00 | [
"MIT"
] | null | null | null | IMG/IMG_PXD.cpp | agalod/ipop | b14353e7d2af5fd3f80a1bc76efe59f86ab22e00 | [
"MIT"
] | null | null | null | IMG/IMG_PXD.cpp | agalod/ipop | b14353e7d2af5fd3f80a1bc76efe59f86ab22e00 | [
"MIT"
] | null | null | null | //
// Class: IMG_PXC (: public MtqGrabber)
//
// File: IMG_PXC.cpp
//
// Modul: MtqLib: IP_Grabber
//
// Purpose: Encapsuling of the framegrabber functions
// of the fpxc200 ImaScan fframegrabber
//
// Author: Alex Roehnisch (glo-ar)
// WZL - RWTH Aachen
//
// Version:
// Status: WORKING
/... | 34.417143 | 153 | 0.651004 | agalod |
9d05a909cbb545852de4f98a9a73cd739cc0b727 | 4,911 | cpp | C++ | navigation_cli/src/velocity_smoother.cpp | l756302098/ros_practice | 4da8b4ddb25ada2e6f1adb3c0f8b34576aedf6b7 | [
"MIT"
] | null | null | null | navigation_cli/src/velocity_smoother.cpp | l756302098/ros_practice | 4da8b4ddb25ada2e6f1adb3c0f8b34576aedf6b7 | [
"MIT"
] | null | null | null | navigation_cli/src/velocity_smoother.cpp | l756302098/ros_practice | 4da8b4ddb25ada2e6f1adb3c0f8b34576aedf6b7 | [
"MIT"
] | null | null | null | #include <boost/thread.hpp>
#include <iostream>
#include <vector>
#include <cstdlib>
#include <ctime>
#include <math.h>
#include <ros/ros.h>
#include <geometry_msgs/PoseStamped.h>
#include <geometry_msgs/Twist.h>
#include <nav_msgs/Odometry.h>
#include <c2_algorithm.h>
#include <velocity_smoother.h>
velocity_smoother... | 28.552326 | 113 | 0.633069 | l756302098 |
9d0838342c598bb951bee57e5918516c54746e18 | 1,272 | hxx | C++ | Legolas/Matrix/tst/HeatEquationTest/SpaceSourceVectorDefinition.hxx | LaurentPlagne/Legolas | fdf533528baf7ab5fcb1db15d95d2387b3e3723c | [
"MIT"
] | null | null | null | Legolas/Matrix/tst/HeatEquationTest/SpaceSourceVectorDefinition.hxx | LaurentPlagne/Legolas | fdf533528baf7ab5fcb1db15d95d2387b3e3723c | [
"MIT"
] | null | null | null | Legolas/Matrix/tst/HeatEquationTest/SpaceSourceVectorDefinition.hxx | LaurentPlagne/Legolas | fdf533528baf7ab5fcb1db15d95d2387b3e3723c | [
"MIT"
] | 1 | 2021-02-11T14:43:25.000Z | 2021-02-11T14:43:25.000Z | /**
* project DESCARTES
*
* @file SpaceSourceVectorDefinition.hxx
*
* @author Laurent PLAGNE
* @date june 2004 - january 2005
*
* @par Modifications
* - author date object
*
* (c) Copyright EDF R&D - CEA 2001-2005
*/
#ifndef __LEGOLAS_SPACESOURCEVECTORDEFINITION_HXX__
#define __LEGOLAS_SPACESOURC... | 22.714286 | 75 | 0.691038 | LaurentPlagne |
9d09ec4c8fad62f422dc3fe9993429a8ddee8870 | 241 | cpp | C++ | test/test_shaders.cpp | valentingalea/mathlib | 23ae9766e552f96dfcebe9a561b40002ccdeb942 | [
"MIT"
] | 176 | 2018-08-26T19:56:36.000Z | 2022-02-22T09:09:13.000Z | test/test_shaders.cpp | valentingalea/mathlib | 23ae9766e552f96dfcebe9a561b40002ccdeb942 | [
"MIT"
] | 2 | 2022-01-04T09:40:39.000Z | 2022-01-16T20:18:11.000Z | test/test_shaders.cpp | valentingalea/mathlib | 23ae9766e552f96dfcebe9a561b40002ccdeb942 | [
"MIT"
] | 4 | 2019-08-25T07:23:04.000Z | 2022-01-19T09:43:50.000Z | #include "c4droid.h"
#include "shader/sandbox.h"
vec3 sandbox::iResolution = vec3(100, 100, 0);
float sandbox::iTime = 0.f;
float sandbox::iTimeDelta = 0.f;
int main()
{
sandbox::fragment_shader ps;
ps.main(ps.gl_FragColor, vec2(0));
} | 18.538462 | 47 | 0.697095 | valentingalea |
9d0bba7a1e997ed6de552a133bf93b643d829f6d | 1,194 | cpp | C++ | simple_numbers_10^6_2.cpp | webkadiz/olympiad-problems | 620912815904c0f95b91ccd193ca3db0ea20e507 | [
"MIT"
] | null | null | null | simple_numbers_10^6_2.cpp | webkadiz/olympiad-problems | 620912815904c0f95b91ccd193ca3db0ea20e507 | [
"MIT"
] | null | null | null | simple_numbers_10^6_2.cpp | webkadiz/olympiad-problems | 620912815904c0f95b91ccd193ca3db0ea20e507 | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
using namespace std;
template <typename T>
void print_arr(T arr[], int len) {
for (int i = 0; i < len; i++) cout << arr[i] << endl;
}
bool detSimple(int num) {
int sqrtN = sqrt(num);
for (int i = 2; i <= sqrtN; i++) {
if (num % i == 0) return false;
}
return true;
}
... | 13.41573 | 55 | 0.502513 | webkadiz |
9d0de6b1e32a60c53f6c32c5f3260ccae9687e91 | 2,752 | cpp | C++ | vkconfig_core/test/test_util.cpp | ncesario-lunarg/VulkanTools | 3ea8ac1d278a4412e34e443063cad90632bbbc3b | [
"Apache-2.0"
] | 1 | 2021-03-04T03:33:44.000Z | 2021-03-04T03:33:44.000Z | vkconfig_core/test/test_util.cpp | ncesario-lunarg/VulkanTools | 3ea8ac1d278a4412e34e443063cad90632bbbc3b | [
"Apache-2.0"
] | null | null | null | vkconfig_core/test/test_util.cpp | ncesario-lunarg/VulkanTools | 3ea8ac1d278a4412e34e443063cad90632bbbc3b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020 Valve Corporation
* Copyright (c) 2020 LunarG, 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.org/licenses/LICENSE-2.0
*
* Unl... | 28.081633 | 98 | 0.694041 | ncesario-lunarg |
9d0dfe83e5ca604bd5baefa4a5c50cf1730c0fa1 | 2,285 | cpp | C++ | test/mover.cpp | srjilarious/termable | 7995e6e2b6ee80f43956d8c4966ff68f5c4d3777 | [
"MIT"
] | null | null | null | test/mover.cpp | srjilarious/termable | 7995e6e2b6ee80f43956d8c4966ff68f5c4d3777 | [
"MIT"
] | 1 | 2021-05-27T18:26:35.000Z | 2021-05-27T18:26:35.000Z | test/mover.cpp | srjilarious/termable | 7995e6e2b6ee80f43956d8c4966ff68f5c4d3777 | [
"MIT"
] | null | null | null | // Set of tests, blocking out how I want the API to look.
#include <termable/termable.hpp>
#include <cstdio>
#include <chrono>
#include <thread>
int main(int argc, char** argv)
{
termable::termableLinux term;
term.clear();
term.showCursor(false);
auto sz = term.displaySize();
termable::termB... | 30.878378 | 90 | 0.48884 | srjilarious |
9d0e143aaf9d560e9d4cb5e5412e01cb109a05b7 | 1,213 | cc | C++ | 0200_Number_of_Islands/0200.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0200_Number_of_Islands/0200.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0200_Number_of_Islands/0200.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null |
#include <vector>
#include <assert.h>
using std::vector;
class Solution {
public:
int numIslands(vector<vector<char>>& grid) {
int rtn = 0;
for (size_t row = 0; row < grid.size(); ++row)
for (size_t column = 0; column < grid[0].size(); ++column)
if (grid[row][column] == '1') {
mar... | 26.369565 | 68 | 0.515251 | LuciusKyle |
9d0e5b4fe87229b8ce2cc693336b34c139f6f6fd | 3,957 | cpp | C++ | src/InOut.cpp | ahfakt/Stream | c3a1ddcd904e0f15246db34ad71f85748312cbaf | [
"MIT"
] | null | null | null | src/InOut.cpp | ahfakt/Stream | c3a1ddcd904e0f15246db34ad71f85748312cbaf | [
"MIT"
] | null | null | null | src/InOut.cpp | ahfakt/Stream | c3a1ddcd904e0f15246db34ad71f85748312cbaf | [
"MIT"
] | null | null | null | #include "Stream/InOut.h"
#include <cstring>
namespace Stream {
Input&
Input::read(void* dest, std::size_t size)
try {
for (std::size_t outl; size; reinterpret_cast<std::byte*&>(dest) += outl, size -= outl)
outl = readBytes(reinterpret_cast<std::byte*>(dest), size);
return *this;
} catch (Exception& exc) {
exc.m... | 21.274194 | 90 | 0.697498 | ahfakt |
9d104bcaadefc6ccbc51cca877ed954d6df2a564 | 3,440 | hpp | C++ | engine/src/Graphics/Scene.hpp | aleksigron/graphics-toolkit | f8e60c57316a72dff9de07512e9771deb3799208 | [
"MIT"
] | null | null | null | engine/src/Graphics/Scene.hpp | aleksigron/graphics-toolkit | f8e60c57316a72dff9de07512e9771deb3799208 | [
"MIT"
] | null | null | null | engine/src/Graphics/Scene.hpp | aleksigron/graphics-toolkit | f8e60c57316a72dff9de07512e9771deb3799208 | [
"MIT"
] | null | null | null | #pragma once
#include "Core/HashMap.hpp"
#include "Core/Array.hpp"
#include "Core/SortedArray.hpp"
#include "Core/StringView.hpp"
#include "Engine/Entity.hpp"
#include "Math/Mat4x4.hpp"
class Camera;
class Allocator;
class TransformUpdateReceiver;
struct SceneObjectId
{
unsigned int i;
bool operator==(SceneObje... | 26.060606 | 103 | 0.757267 | aleksigron |
9d108bb0f98bc7316b76553969ea82353d969d04 | 225 | cpp | C++ | sample/asrDemo2/src/asrdemo/StatusListener.cpp | formattor/asr-linux-cpp-change | 630c54daf78f4f0f68e51f7aa996298ee517f2b1 | [
"MIT"
] | 6 | 2019-06-10T12:57:32.000Z | 2020-11-27T10:56:13.000Z | sample/asrDemo2/src/asrdemo/StatusListener.cpp | formattor/asr-linux-cpp-change | 630c54daf78f4f0f68e51f7aa996298ee517f2b1 | [
"MIT"
] | 1 | 2021-02-19T02:39:47.000Z | 2021-02-19T02:39:47.000Z | sample/asrDemo2/src/asrdemo/StatusListener.cpp | formattor/asr-linux-cpp-change | 630c54daf78f4f0f68e51f7aa996298ee517f2b1 | [
"MIT"
] | null | null | null | //
// Created by fu on 3/13/18.
//
#include "StatusListener.hpp"
namespace asrdemo {
void StatusListener::on_last_status(int status){
finished = true;
}
bool StatusListener::is_finished() const{
return finished;
}
} | 16.071429 | 48 | 0.706667 | formattor |
9d132a5ca1a501a6a305e5adb00597456286780a | 919 | hpp | C++ | cpp/tests/mock-objects/slot-buffer-mock.hpp | luckiday/ndnrtc | ea224ce8d9f01d164925448c7424cf0f0caa4b07 | [
"BSD-2-Clause"
] | null | null | null | cpp/tests/mock-objects/slot-buffer-mock.hpp | luckiday/ndnrtc | ea224ce8d9f01d164925448c7424cf0f0caa4b07 | [
"BSD-2-Clause"
] | null | null | null | cpp/tests/mock-objects/slot-buffer-mock.hpp | luckiday/ndnrtc | ea224ce8d9f01d164925448c7424cf0f0caa4b07 | [
"BSD-2-Clause"
] | null | null | null | //
// slot-buffer-mock.hpp
//
// Created by Peter Gusev on 07 April 2016.
// Copyright 2013-2016 Regents of the University of California
//
#ifndef __slot_buffer_mock_h__
#define __slot_buffer_mock_h__
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "src/slot-buffer.hpp"
class MockSlotBuffer : public ... | 21.880952 | 70 | 0.743199 | luckiday |
9d15cd6fb681f2a422e30cb3a6daa193469d1157 | 8,373 | hh | C++ | src/sge_fixed.hh | sungiant/sge | 89692d4376cb4374e0936b5373878e59dc9a68bb | [
"MIT"
] | 6 | 2020-09-04T10:19:29.000Z | 2021-05-07T05:21:37.000Z | src/sge_fixed.hh | sungiant/sge | 89692d4376cb4374e0936b5373878e59dc9a68bb | [
"MIT"
] | null | null | null | src/sge_fixed.hh | sungiant/sge | 89692d4376cb4374e0936b5373878e59dc9a68bb | [
"MIT"
] | null | null | null | #pragma once
namespace sge::fixed {
//--------------------------------------------------------------------------------------------------------------------//
// just some of this: https://gcc.gnu.org/onlinedocs/gcc-4.6.3/libstdc++/api/a00752_source.html
// with minor changes
template<typename TP, size_t SZ> struct arr... | 65.929134 | 210 | 0.52514 | sungiant |
1dd6d3c5bcbd014cebf4c82be4499d2a2710e1d4 | 3,465 | cpp | C++ | Study Material/CP/06.ch6/01.basic string.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | 1 | 2019-12-19T06:51:20.000Z | 2019-12-19T06:51:20.000Z | Study Material/CP/06.ch6/01.basic string.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | Study Material/CP/06.ch6/01.basic string.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// input handle
#define iln() scanf("\n") //scan new line
#define in(n) scanf("%d",&n) //scan int
#define ins(n) scanf("%s",n) //scan char[]
#define inc(n) scanf("%c ",&n) //scan char
#define inf(n) scanf("%lf",&n) //scan double/float
#define inl(n) scanf("%lld",&n) //scan... | 27.943548 | 91 | 0.609812 | mohamedGamalAbuGalala |
1ddb51468b551f069bf768431e3d3e5e738e45ef | 25,211 | cpp | C++ | newton-4.00/applications/ndSandbox/demos/ndBasicVehicle.cpp | MADEAPPS/newton-dynamics | e346eec9d19ffb1c995b09417400167d3c52a635 | [
"Zlib"
] | 1,031 | 2015-01-02T14:08:47.000Z | 2022-03-29T02:25:27.000Z | newton-4.00/applications/ndSandbox/demos/ndBasicVehicle.cpp | MADEAPPS/newton-dynamics | e346eec9d19ffb1c995b09417400167d3c52a635 | [
"Zlib"
] | 240 | 2015-01-11T04:27:19.000Z | 2022-03-30T00:35:57.000Z | newton-4.00/applications/ndSandbox/demos/ndBasicVehicle.cpp | MADEAPPS/newton-dynamics | e346eec9d19ffb1c995b09417400167d3c52a635 | [
"Zlib"
] | 224 | 2015-01-05T06:13:54.000Z | 2022-02-25T14:39:51.000Z | /* Copyright (c) <2003-2021> <Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* includi... | 36.015714 | 231 | 0.74527 | MADEAPPS |
1ddbeebd271c366f119b7fb90db807eebca11b04 | 2,712 | hpp | C++ | tools/coredump.hpp | kobi-ca/hogl | 19cd7262ed22a46cc06346d9d592ff278db5266b | [
"BSD-2-Clause"
] | null | null | null | tools/coredump.hpp | kobi-ca/hogl | 19cd7262ed22a46cc06346d9d592ff278db5266b | [
"BSD-2-Clause"
] | null | null | null | tools/coredump.hpp | kobi-ca/hogl | 19cd7262ed22a46cc06346d9d592ff278db5266b | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2015, Max Krasnyansky <max.krasnyansky@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright... | 27.393939 | 85 | 0.705752 | kobi-ca |
1dde81947d86004525242dcd438f3463d604603c | 2,672 | cpp | C++ | annotator/ForAnnotator.cpp | bright-tools/coverage | e4b99d46fef4e93c3fc508ff836f11b3f5f45786 | [
"Apache-2.0"
] | 1 | 2015-08-05T12:42:36.000Z | 2015-08-05T12:42:36.000Z | annotator/ForAnnotator.cpp | bright-tools/coverage | e4b99d46fef4e93c3fc508ff836f11b3f5f45786 | [
"Apache-2.0"
] | null | null | null | annotator/ForAnnotator.cpp | bright-tools/coverage | e4b99d46fef4e93c3fc508ff836f11b3f5f45786 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2013 John Bailey
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 writi... | 28.425532 | 102 | 0.694237 | bright-tools |
1de097ff8a690c828d6b2327917bc879fa0a1cf8 | 3,348 | cpp | C++ | Classes/yaadv/CharLabel.cpp | gadget114514/yaadv | 5b9ad77e2361ddcaa0e9b0f8457e9a02c7ece68b | [
"MIT"
] | 3 | 2019-12-21T09:53:22.000Z | 2020-12-29T17:55:58.000Z | Classes/yaadv/CharLabel.cpp | gadget114514/yaadv | 5b9ad77e2361ddcaa0e9b0f8457e9a02c7ece68b | [
"MIT"
] | 4 | 2019-03-11T09:47:23.000Z | 2019-03-11T09:49:43.000Z | Classes/yaadv/CharLabel.cpp | gadget114514/yaadv | 5b9ad77e2361ddcaa0e9b0f8457e9a02c7ece68b | [
"MIT"
] | null | null | null | #include "CharLabel.h"
USING_NS_CC;
USING_NS_CC;
using namespace yaadv;
namespace yaadv {
CharLabel::CharLabel()
: _pos(0),
_defaultDelayTime(1.0f),
_fadeTime(0.5f),
_lineHeight(0),
_charLabel(nullptr),
_x(0),
_y(0),
_defaultFontSize(20),
_showFinishCallback(nullptr... | 24.8 | 118 | 0.641278 | gadget114514 |
1de67b2d79dc361e5ead72c50b5709122987a820 | 1,837 | cxx | C++ | rrl/examples/location_registration.cxx | msofka/LRR | 8c04ab9d27980c98a201943c1fe46e7e451df367 | [
"Apache-2.0"
] | 2 | 2018-01-09T00:33:42.000Z | 2018-01-09T00:33:53.000Z | rrl/examples/location_registration.cxx | msofka/LRR | 8c04ab9d27980c98a201943c1fe46e7e451df367 | [
"Apache-2.0"
] | null | null | null | rrl/examples/location_registration.cxx | msofka/LRR | 8c04ab9d27980c98a201943c1fe46e7e451df367 | [
"Apache-2.0"
] | null | null | null | #include <vul/vul_file.h>
#include <vul/vul_arg.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <fstream>
#include <rrl/itkLocationRegistration.h>
//:
// \file
// \brief Register and recognize volume location using itkLocationRegistration object.
// \author Michal Sofka
// \da... | 34.660377 | 145 | 0.658138 | msofka |
1de6c1b39c89e999691e1750dfb8b934f98160ed | 2,449 | cpp | C++ | src/services/pcn-bridge/src/PortsStp.cpp | francescomessina/polycube | 38f2fb4ffa13cf51313b3cab9994be738ba367be | [
"ECL-2.0",
"Apache-2.0"
] | 337 | 2018-12-12T11:50:15.000Z | 2022-03-15T00:24:35.000Z | src/services/pcn-bridge/src/PortsStp.cpp | l1b0k/polycube | 7af919245c131fa9fe24c5d39d10039cbb81e825 | [
"ECL-2.0",
"Apache-2.0"
] | 253 | 2018-12-17T21:36:15.000Z | 2022-01-17T09:30:42.000Z | src/services/pcn-bridge/src/PortsStp.cpp | l1b0k/polycube | 7af919245c131fa9fe24c5d39d10039cbb81e825 | [
"ECL-2.0",
"Apache-2.0"
] | 90 | 2018-12-19T15:49:38.000Z | 2022-03-27T03:56:07.000Z | /*
* Copyright 2019 The Polycube 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... | 24.247525 | 75 | 0.722336 | francescomessina |
1de9540885fa0d0e3fe6300ef53917eca970a9dc | 3,501 | cpp | C++ | src/fastcd/image_sequence_extension.cpp | InterDigitalInc/ObjectRemovalDetection | 14ccff9792e2ab006377dc02b8260897465db988 | [
"Apache-2.0"
] | 1 | 2021-08-10T21:06:46.000Z | 2021-08-10T21:06:46.000Z | src/fastcd/image_sequence_extension.cpp | InterDigitalInc/ObjectRemovalDetection | 14ccff9792e2ab006377dc02b8260897465db988 | [
"Apache-2.0"
] | null | null | null | src/fastcd/image_sequence_extension.cpp | InterDigitalInc/ObjectRemovalDetection | 14ccff9792e2ab006377dc02b8260897465db988 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 InterDigital
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* License is avaiable on the root under license.txt and you may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE... | 38.054348 | 99 | 0.652956 | InterDigitalInc |
1dea5f9c4787a85b6ee2f4cee015cf5ba968676c | 538 | hpp | C++ | smart_tales_ii/game/player/upgrades.hpp | TijmenUU/smarttalesii | c3a9c90bc2385e21e6fe4aa1cfda550edf6e20ba | [
"CC-BY-3.0",
"CC-BY-4.0"
] | null | null | null | smart_tales_ii/game/player/upgrades.hpp | TijmenUU/smarttalesii | c3a9c90bc2385e21e6fe4aa1cfda550edf6e20ba | [
"CC-BY-3.0",
"CC-BY-4.0"
] | 11 | 2018-02-08T14:50:16.000Z | 2022-01-21T19:54:24.000Z | smart_tales_ii/game/player/upgrades.hpp | TijmenUU/smarttalesii | c3a9c90bc2385e21e6fe4aa1cfda550edf6e20ba | [
"CC-BY-3.0",
"CC-BY-4.0"
] | null | null | null | /*
upgrades.hpp
These utility functions define the available upgrades
and the obstacles affected by them.
Upgrades are of type enum class Sensor
*/
#pragma once
#include "../obstacle/obstacletype.hpp"
#include <cstdint>
#include <string>
namespace Upgrade
{
enum class Sensor : uint8_t
{
Unknown = 0,
Passi... | 16.8125 | 54 | 0.728625 | TijmenUU |
1decf42631f3c99c1dc74b098006d796f5c63c2a | 7,343 | tcc | C++ | libraries/nodes/tcc/NeuralNetworkLayerNode.tcc | kernhanda/ELL | 370c0de4e4c190ca0cb43654b4246b3686bca464 | [
"MIT"
] | null | null | null | libraries/nodes/tcc/NeuralNetworkLayerNode.tcc | kernhanda/ELL | 370c0de4e4c190ca0cb43654b4246b3686bca464 | [
"MIT"
] | null | null | null | libraries/nodes/tcc/NeuralNetworkLayerNode.tcc | kernhanda/ELL | 370c0de4e4c190ca0cb43654b4246b3686bca464 | [
"MIT"
] | 1 | 2020-12-10T17:49:07.000Z | 2020-12-10T17:49:07.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: NeuralNetworkLayerNode.tcc (nodes)
// Authors: Chuck Jacobs
//
///////////////////////////////////////////////////////////////////////////////////////////... | 45.04908 | 193 | 0.702574 | kernhanda |
1df5bd8057e14196520937dc7b8a487ab2373593 | 11,925 | cpp | C++ | Examples_5_4/Sticktrace/UtilDlg.cpp | hukushirom/luastick | 29e43ee9d7e26b6ab45a510e664825b8c64845ac | [
"MIT"
] | 12 | 2020-04-26T11:38:00.000Z | 2021-11-02T21:13:27.000Z | Examples_5_4/Sticktrace/UtilDlg.cpp | hukushirom/luastick | 29e43ee9d7e26b6ab45a510e664825b8c64845ac | [
"MIT"
] | null | null | null | Examples_5_4/Sticktrace/UtilDlg.cpp | hukushirom/luastick | 29e43ee9d7e26b6ab45a510e664825b8c64845ac | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "LeException.h"
#include "UtilStr.h"
#include "UtilDlg.h" // This header.
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
int UtilDlg::GetCurSel (const CListCtrl* pListCtrl)
{
POSITION pos = pListCtrl->GetFirstSelectedItemPosition();
if... | 31.715426 | 126 | 0.558239 | hukushirom |
1dfa244581c29e671e556e4c2867d69c878d69d9 | 799 | cpp | C++ | Acmicpc/C++/BOJ1149.cpp | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | 1 | 2020-07-08T23:16:19.000Z | 2020-07-08T23:16:19.000Z | Acmicpc/C++/BOJ1149.cpp | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | 1 | 2020-05-16T03:12:24.000Z | 2020-05-16T03:14:42.000Z | Acmicpc/C++/BOJ1149.cpp | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | 2 | 2020-05-16T03:25:16.000Z | 2021-02-10T16:51:25.000Z | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int n;
scanf("%d", &n);
vector<vector<int>> v(n, vector<int>(3));
vector<vector<int>> d(n, vector<int>(3));
for (int i = 0; i < n; i++)
for (int j = 0; j < 3; j++){
sca... | 22.194444 | 55 | 0.364205 | sungmen |
1dfaf6a8ae20cb03d52c3d5c6e3b530e8aa2532e | 246 | cpp | C++ | solutions/405.convert-a-number-to-hexadecimal.242445862.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/405.convert-a-number-to-hexadecimal.242445862.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/405.convert-a-number-to-hexadecimal.242445862.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
string toHex(unsigned int num) {
string map = "0123456789abcdef";
string ans;
do {
ans += map[num % 16];
num /= 16;
} while (num);
reverse(ans.begin(), ans.end());
return ans;
}
};
| 17.571429 | 36 | 0.544715 | satu0king |
1dfb32a92f3bbb94d925b6b069348cdbb954dda4 | 4,822 | cpp | C++ | lldb/source/Commands/CommandObjectMemoryTag.cpp | acidburn0zzz/llvm-project | 7ca7a2547f00e34f5ec91be776a1d0bbca74b7a9 | [
"Apache-2.0"
] | 2 | 2019-04-11T16:25:43.000Z | 2020-12-09T10:22:01.000Z | lldb/source/Commands/CommandObjectMemoryTag.cpp | acidburn0zzz/llvm-project | 7ca7a2547f00e34f5ec91be776a1d0bbca74b7a9 | [
"Apache-2.0"
] | null | null | null | lldb/source/Commands/CommandObjectMemoryTag.cpp | acidburn0zzz/llvm-project | 7ca7a2547f00e34f5ec91be776a1d0bbca74b7a9 | [
"Apache-2.0"
] | null | null | null | //===-- CommandObjectMemoryTag.cpp ----------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 37.379845 | 80 | 0.653256 | acidburn0zzz |
380193a01ea21d09daceeba698105d3cfa778f89 | 1,377 | cpp | C++ | main.cpp | platonische/cpp-abstractQueue | 27378dc5b472e2485b2f388f1dd22474d0e081a6 | [
"Unlicense"
] | null | null | null | main.cpp | platonische/cpp-abstractQueue | 27378dc5b472e2485b2f388f1dd22474d0e081a6 | [
"Unlicense"
] | null | null | null | main.cpp | platonische/cpp-abstractQueue | 27378dc5b472e2485b2f388f1dd22474d0e081a6 | [
"Unlicense"
] | null | null | null | #include <iostream>
//#include "src/exted/Int/QueueIntValue.h"
#include "src/exted/Any/QueueAnyValue.h"
using namespace std;
int main()
{
int *array = new int[6] { 1, 2, 3, 4, 5, '\0' };
QueueAnyValue<int>* queue = new QueueAnyValue<int>();
queue->sampleData(array);
queue->addElement(queue->createEl... | 28.102041 | 75 | 0.672476 | platonische |
3801aa9db2b9713fc5c3c039c66fb9fb242b807a | 274 | cpp | C++ | src/Jacobi.cpp | EthanHowellUKY/linear-algebra | b71756655c7bc2351e8084ecaf89298f747ce9af | [
"Apache-2.0"
] | null | null | null | src/Jacobi.cpp | EthanHowellUKY/linear-algebra | b71756655c7bc2351e8084ecaf89298f747ce9af | [
"Apache-2.0"
] | null | null | null | src/Jacobi.cpp | EthanHowellUKY/linear-algebra | b71756655c7bc2351e8084ecaf89298f747ce9af | [
"Apache-2.0"
] | null | null | null |
#include "LinearAlgebra/Jacobi.h"
Jacobi::Jacobi() {}
Jacobi::~Jacobi() {}
Matrix Jacobi::solve(Matrix &A, Matrix &b) { return Matrix(); }
Matrix Jacobi::solve(Matrix &A, std::vector<double> &b) { return Matrix(); }
void Jacobi::print() { std::cout << "Jacobi" << '\n'; }
| 30.444444 | 76 | 0.638686 | EthanHowellUKY |
38020ea11c08f5129ed5f7ccae0d071375a4d378 | 2,157 | cpp | C++ | tgfx/src/gpu/DualIntervalGradientColorizer.cpp | cy-j/libpag | 9b1636a0a67ad5e009d60c6c348034790d247692 | [
"BSL-1.0",
"CC0-1.0",
"MIT"
] | 2 | 2022-02-26T16:10:30.000Z | 2022-03-18T01:28:40.000Z | tgfx/src/gpu/DualIntervalGradientColorizer.cpp | cy-j/libpag | 9b1636a0a67ad5e009d60c6c348034790d247692 | [
"BSL-1.0",
"CC0-1.0",
"MIT"
] | null | null | null | tgfx/src/gpu/DualIntervalGradientColorizer.cpp | cy-j/libpag | 9b1636a0a67ad5e009d60c6c348034790d247692 | [
"BSL-1.0",
"CC0-1.0",
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... | 38.517857 | 97 | 0.646732 | cy-j |
38029cc83604fcd2320a6603c26209fc0d7a3dce | 963 | cpp | C++ | save.cpp | januwA/winreg-example | 9ddd27c281c772efe969bc82877c5e31741c913f | [
"MIT"
] | null | null | null | save.cpp | januwA/winreg-example | 9ddd27c281c772efe969bc82877c5e31741c913f | [
"MIT"
] | null | null | null | save.cpp | januwA/winreg-example | 9ddd27c281c772efe969bc82877c5e31741c913f | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
#include <Windows.h>
#include "ModifyPrivilege.hpp"
int main()
{
// 备份注册表信息
// 获取权限
if (!SUCCEEDED(ModifyPrivilege(SE_BACKUP_NAME, true)))
return 1;
// 保存
HKEY hKey;
LSTATUS retCode;
retCode = RegOpenKe... | 19.26 | 97 | 0.561786 | januwA |
380459a54f6dbe558dcefdb60505a2236fe555b9 | 37,382 | cpp | C++ | NoFTL_v1.0/shoreMT-KIT/src/workload/tm1/shore_tm1_xct.cpp | DBlabRT/NoFTL | cba8b5a6d9c422bdd39b01575244e557cbd12e43 | [
"Unlicense"
] | 4 | 2019-01-24T02:00:23.000Z | 2021-03-17T11:56:59.000Z | NoFTL_v1.0/shoreMT-KIT/src/workload/tm1/shore_tm1_xct.cpp | DBlabRT/NoFTL | cba8b5a6d9c422bdd39b01575244e557cbd12e43 | [
"Unlicense"
] | null | null | null | NoFTL_v1.0/shoreMT-KIT/src/workload/tm1/shore_tm1_xct.cpp | DBlabRT/NoFTL | cba8b5a6d9c422bdd39b01575244e557cbd12e43 | [
"Unlicense"
] | 4 | 2019-01-22T10:35:55.000Z | 2021-03-17T11:57:23.000Z | /* -*- mode:C++; c-basic-offset:4 -*-
Shore-kits -- Benchmark implementations for Shore-MT
Copyright (c) 2007-2009
Data Intensive Applications and Systems Labaratory (DIAS)
Ecole Polytechnique Federale de Lausanne
All Rights Reserved.
... | 27.938714 | 83 | 0.525467 | DBlabRT |
3804715db8b8eee96fa51b1a0acdd716a4cd23ea | 386 | cpp | C++ | pat-b/1037.cpp | brucegua/pat_exer | 8ac7c21d829f5ef12d3cc05b82e80b5bf2923519 | [
"Apache-2.0"
] | null | null | null | pat-b/1037.cpp | brucegua/pat_exer | 8ac7c21d829f5ef12d3cc05b82e80b5bf2923519 | [
"Apache-2.0"
] | null | null | null | pat-b/1037.cpp | brucegua/pat_exer | 8ac7c21d829f5ef12d3cc05b82e80b5bf2923519 | [
"Apache-2.0"
] | null | null | null | #include "stdio.h"
int main() {
long long P[3], pks, A[3], aks, ks;
scanf("%lld.%lld.%lld %lld.%lld.%lld", P, P+1, P+2, A, A+1, A+2);
pks = P[0]*17*29 + P[1]*29 + P[2];
aks = A[0]*17*29 + A[1]*29 + A[2];
ks = aks - pks;
if (ks < 0) {
printf("-");
ks = -ks;
}
pr... | 20.315789 | 69 | 0.409326 | brucegua |
3805b3f0d3a387a4bd70e1c053c0da7eb0edfa53 | 5,276 | hpp | C++ | include/cppdevtk/base/stack_frame.hpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | include/cppdevtk/base/stack_frame.hpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | include/cppdevtk/base/stack_frame.hpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// \file
///
/// \copyright Copyright (C) 2015 - 2020 CoSoSys Ltd <info@cososys.com>\n
/// Licensed under the Apache License, Version 2.0 (the "License");\n
/// you may not use this file e... | 31.975758 | 126 | 0.662813 | CoSoSys |
38079ec9993eb6eb20efec0a45357d2c5aafe93c | 3,681 | cc | C++ | src/content/browser/gpu/gpu_client.cc | yang-guangliang/osv-free | b81fee48bc8898fdc641a2e3c227957ed7e6445e | [
"Apache-2.0"
] | 2 | 2021-05-24T13:52:28.000Z | 2021-05-24T13:53:10.000Z | src/content/browser/gpu/gpu_client.cc | yang-guangliang/osv-free | b81fee48bc8898fdc641a2e3c227957ed7e6445e | [
"Apache-2.0"
] | null | null | null | src/content/browser/gpu/gpu_client.cc | yang-guangliang/osv-free | b81fee48bc8898fdc641a2e3c227957ed7e6445e | [
"Apache-2.0"
] | 3 | 2018-03-12T07:58:10.000Z | 2019-08-31T04:53:58.000Z | // Copyright 2016 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/gpu/gpu_client.h"
#include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
#include "content/browser/gpu/gpu_process_... | 33.463636 | 79 | 0.746265 | yang-guangliang |
380873761274ed62e6b5a1c2181e29a84cbe854a | 359 | hh | C++ | src/parse/scantiger.hh | MrMaDGaME/Tiger | f31f73cd386b3ccb3e02abe7b23a3de09d70bd0f | [
"MIT"
] | null | null | null | src/parse/scantiger.hh | MrMaDGaME/Tiger | f31f73cd386b3ccb3e02abe7b23a3de09d70bd0f | [
"MIT"
] | null | null | null | src/parse/scantiger.hh | MrMaDGaME/Tiger | f31f73cd386b3ccb3e02abe7b23a3de09d70bd0f | [
"MIT"
] | null | null | null | #pragma once
#include <parse/parsetiger.hh>
#include <parse/tiger-parser.hh>
// Set parameters for Flex header, and include it.
#define YY_FLEX_NAMESPACE_BEGIN \
namespace parse \
{
#define YY_FLEX_NAMESPAC... | 27.615385 | 80 | 0.526462 | MrMaDGaME |
38098de5f1124d0914deec5a7fc3642d7b0670e8 | 1,603 | cc | C++ | services/network/resource_scheduler_client.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | services/network/resource_scheduler_client.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | services/network/resource_scheduler_client.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.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 "services/network/resource_scheduler_client.h"
#include "net/url_request/url_request_context.h"
#include "services/network/network_context.h"
n... | 34.847826 | 79 | 0.737991 | zipated |
3809bd3f2ed4893c0f56c46f1e407666c70d3c94 | 6,139 | cpp | C++ | field_map/2020field.cpp | FRC900/2020RobotCode | e5d5f8f9f0ea2dc0e1139e776989ccb5a05896de | [
"BSD-3-Clause"
] | 4 | 2020-11-25T18:30:33.000Z | 2021-11-14T04:50:16.000Z | utility/field_map/2020field.cpp | FRC900/2020Offseason | 36ccd74667d379b07d9b7a1e937307c6d8119229 | [
"BSD-3-Clause"
] | 19 | 2021-03-20T01:10:04.000Z | 2022-01-17T22:51:05.000Z | utility/field_map/2020field.cpp | FRC900/2020Offseason | 36ccd74667d379b07d9b7a1e937307c6d8119229 | [
"BSD-3-Clause"
] | 2 | 2021-04-13T22:48:25.000Z | 2021-11-14T06:13:06.000Z | #include <iostream>
#include <opencv2/opencv.hpp>
// https://stackoverflow.com/questions/43342199/draw-rotated-rectangle-in-opencv-c
// Include center point of your rectangle, size of your rectangle and the degrees of rotation
void drawRotatedRectangle(cv::Mat& image, const cv::Point ¢erPoint, const cv::Size &rect... | 37.895062 | 174 | 0.697345 | FRC900 |
380b3270a252950662f6e5ac8920339166e7d470 | 1,091 | cc | C++ | codeforces/629_#343_Div2/C/main.cc | jinzhao1994/ACM | 5846032df31ab000deb57d8cbb8cb4c27c0e955b | [
"WTFPL"
] | 2 | 2015-07-22T01:26:47.000Z | 2015-08-30T11:33:19.000Z | codeforces/629_#343_Div2/C/main.cc | jinzhao1994/ACM | 5846032df31ab000deb57d8cbb8cb4c27c0e955b | [
"WTFPL"
] | null | null | null | codeforces/629_#343_Div2/C/main.cc | jinzhao1994/ACM | 5846032df31ab000deb57d8cbb8cb4c27c0e955b | [
"WTFPL"
] | null | null | null | #include <cstdio>
const int mod = 1000000007;
const int N = 100001;
const int M = 2001;
int c[M][M];
int n, m, tot, pre;
char s[N];
inline int regular(int x) {
if (x >= mod) {
return x - mod;
}
if (x < 0) {
return x + mod;
}
return x;
}
inline int cal(int i, int j) {
if (j == 0) {
return 1;
}
return re... | 17.596774 | 68 | 0.418882 | jinzhao1994 |
380bc7f7a9aa43cfbfbf93c7174483a42ce6543d | 5,380 | cpp | C++ | Microsoft/SAMPLES/Ole2View/IViewers/IUnknown.cpp | mdileep/Tigger | 8e06d117a5b520c5fc9e37a710bf17aa51a9958c | [
"MIT",
"Unlicense"
] | 1 | 2022-01-04T21:13:05.000Z | 2022-01-04T21:13:05.000Z | Microsoft/SAMPLES/Ole2View/IViewers/IUnknown.cpp | mdileep/Tigger | 8e06d117a5b520c5fc9e37a710bf17aa51a9958c | [
"MIT",
"Unlicense"
] | null | null | null | Microsoft/SAMPLES/Ole2View/IViewers/IUnknown.cpp | mdileep/Tigger | 8e06d117a5b520c5fc9e37a710bf17aa51a9958c | [
"MIT",
"Unlicense"
] | 1 | 2022-01-04T21:13:01.000Z | 2022-01-04T21:13:01.000Z | // IUnknown.cpp : implementation file
//
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1993 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and Microsoft
// Quick... | 27.309645 | 149 | 0.594238 | mdileep |
380c40f37e8adaf01161fd5c654afe62986c3d9a | 1,702 | cpp | C++ | ext/UiaDll/UiaDll/SelectionItemMethods.cpp | leoniv/uia | eafe3dd5f27cbc5b3c73a9c9342af234f6e5f309 | [
"MIT"
] | 11 | 2015-04-16T18:20:35.000Z | 2021-10-07T00:48:41.000Z | ext/UiaDll/UiaDll/SelectionItemMethods.cpp | leoniv/uia | eafe3dd5f27cbc5b3c73a9c9342af234f6e5f309 | [
"MIT"
] | 7 | 2016-01-14T10:04:02.000Z | 2020-02-24T12:55:09.000Z | ext/UiaDll/UiaDll/SelectionItemMethods.cpp | leoniv/uia | eafe3dd5f27cbc5b3c73a9c9342af234f6e5f309 | [
"MIT"
] | 4 | 2015-10-26T16:18:46.000Z | 2018-08-11T00:45:17.000Z | #include "Stdafx.h"
extern "C" {
__declspec(dllexport) void SelectionItem_Release(SelectionItemInformationPtr selectionItemInfo) {
delete selectionItemInfo;
}
__declspec(dllexport) SelectionItemInformationPtr SelectionItem_Information(ElementInformationPtr element, char* errorInfo, const int errorInfoLength... | 41.512195 | 154 | 0.753231 | leoniv |
380e901290ac1694f19f26588defab9c1e10a2d4 | 10,920 | cpp | C++ | src/fanfoukit.cpp | zccrs/meefan | 7dcea7d368bf2235b6216d96d249a9b6be6d96d9 | [
"MIT"
] | null | null | null | src/fanfoukit.cpp | zccrs/meefan | 7dcea7d368bf2235b6216d96d249a9b6be6d96d9 | [
"MIT"
] | null | null | null | src/fanfoukit.cpp | zccrs/meefan | 7dcea7d368bf2235b6216d96d249a9b6be6d96d9 | [
"MIT"
] | null | null | null | #include "fanfoukit.h"
#include "httprequest.h"
#include <QPair>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QRegExp>
#include <QStringList>
#include <QFile>
#include <QDir>
#include <QDateTime>
#include <QSettings>
#include <QCryptographicHash>
#include <QUuid>
#include <QtFeedback/QFeedbackHa... | 26.896552 | 138 | 0.67674 | zccrs |
380eccdba101fe67405e699d92383e990c266bd8 | 29,808 | cc | C++ | src/ui/scenic/lib/scheduling/default_frame_scheduler.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | src/ui/scenic/lib/scheduling/default_frame_scheduler.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | src/ui/scenic/lib/scheduling/default_frame_scheduler.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 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 "src/ui/scenic/lib/scheduling/default_frame_scheduler.h"
#include <lib/async/cpp/task.h>
#include <lib/async/default.h>
#include <lib/async/time.... | 43.388646 | 100 | 0.722658 | casey |
3811123b088cedfb7686765d09479455f4481b99 | 300 | hpp | C++ | includes/monster/UnsightedMonster.hpp | AndrewLester/final-project-cyborgwizards | 1b6abfb759e2dda0ea368a6798cae5b354c5bb75 | [
"Unlicense"
] | null | null | null | includes/monster/UnsightedMonster.hpp | AndrewLester/final-project-cyborgwizards | 1b6abfb759e2dda0ea368a6798cae5b354c5bb75 | [
"Unlicense"
] | null | null | null | includes/monster/UnsightedMonster.hpp | AndrewLester/final-project-cyborgwizards | 1b6abfb759e2dda0ea368a6798cae5b354c5bb75 | [
"Unlicense"
] | null | null | null | #ifndef UNSIGHTED_MONSTER_HPP
#define UNSIGHTED_MONSTER_HPP
#include "Monster.hpp"
class UnsightedMonster : public Monster {
private:
int prev_intensity_ = 0;
public:
UnsightedMonster(LevelPos pos);
void Draw(ScreenPos top_left) override;
void OnNotify(Event* event) override;
};
#endif | 18.75 | 41 | 0.773333 | AndrewLester |
38180331ac38a2f7aff94f68a5a61007e56a9b22 | 897 | cpp | C++ | Utils/FieldOfViewChecker.cpp | L0rd1k/VisualKIT | d4ffb399cb69fe926fb093846b94fd02ac0826f2 | [
"MIT"
] | 10 | 2020-03-03T14:29:41.000Z | 2022-03-26T15:40:31.000Z | Utils/FieldOfViewChecker.cpp | L0rd1k/VisualKIT | d4ffb399cb69fe926fb093846b94fd02ac0826f2 | [
"MIT"
] | null | null | null | Utils/FieldOfViewChecker.cpp | L0rd1k/VisualKIT | d4ffb399cb69fe926fb093846b94fd02ac0826f2 | [
"MIT"
] | null | null | null | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: FieldOfViewChecker.cpp
* Author: ilya
*
* Created on November 19, 2019, 12:49 PM
*/
#include "FieldOfViewChecker.... | 25.628571 | 79 | 0.702341 | L0rd1k |
381bac2c9c576f9a9fe5e4bff6a9e3210940bccb | 6,624 | cc | C++ | ndash/src/manifest_fetcher.cc | google/ndash | 1465e2fb851ee17fd235280bdbbbf256e5af8044 | [
"Apache-2.0"
] | 41 | 2017-04-19T19:38:10.000Z | 2021-09-07T02:40:27.000Z | ndash/src/manifest_fetcher.cc | google/ndash | 1465e2fb851ee17fd235280bdbbbf256e5af8044 | [
"Apache-2.0"
] | 8 | 2017-04-21T16:40:09.000Z | 2019-12-09T19:48:40.000Z | ndash/src/manifest_fetcher.cc | google/ndash | 1465e2fb851ee17fd235280bdbbbf256e5af8044 | [
"Apache-2.0"
] | 19 | 2017-04-24T14:43:18.000Z | 2022-03-17T19:13:45.000Z | /*
* Copyright 2017 Google 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 29.309735 | 80 | 0.69535 | google |
381ca0a284819d7abe03040d408e100620b3650a | 5,235 | cpp | C++ | bcos-tars-protocol/protocol/BlockImpl.cpp | chuwen95/FISCO-BCOS | e9cc29151c90dd1f4634f4d52ba773bb216700ac | [
"Apache-2.0"
] | 1 | 2022-03-06T10:46:12.000Z | 2022-03-06T10:46:12.000Z | bcos-tars-protocol/protocol/BlockImpl.cpp | chuwen95/FISCO-BCOS | e9cc29151c90dd1f4634f4d52ba773bb216700ac | [
"Apache-2.0"
] | null | null | null | bcos-tars-protocol/protocol/BlockImpl.cpp | chuwen95/FISCO-BCOS | e9cc29151c90dd1f4634f4d52ba773bb216700ac | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2021 FISCO BCOS.
* SPDX-License-Identifier: Apache-2.0
* 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
*
* Un... | 31.160714 | 98 | 0.693983 | chuwen95 |
381d5fe3dbccae9629fe81ae99ef0d73e19b7317 | 332 | cpp | C++ | Libraries/RobsJuceModules/rosic/analysis/rosic_EnvelopeFollower.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Libraries/RobsJuceModules/rosic/analysis/rosic_EnvelopeFollower.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Libraries/RobsJuceModules/rosic/analysis/rosic_EnvelopeFollower.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z | //#include "rosic_EnvelopeFollower.h"
//using namespace rosic;
// Construction/Destruction:
EnvelopeFollower::EnvelopeFollower()
{
mode = 1; // mean absolute value
}
EnvelopeFollower::~EnvelopeFollower()
{
}
// Setup:
void EnvelopeFollower::setMode(int Mode)
{
if( Mode >= MEAN_ABS && Mode < NUM_MODES )
mo... | 15.090909 | 44 | 0.698795 | RobinSchmidt |
381ddf9c3ad82ec8cbeaa0b653ecb66cbb8d057a | 1,261 | cpp | C++ | vsproj/PointLight.cpp | nguillemot/spooky | e8a3ccb7ee58b70b289b2643ce5b35350d4cc785 | [
"MIT"
] | null | null | null | vsproj/PointLight.cpp | nguillemot/spooky | e8a3ccb7ee58b70b289b2643ce5b35350d4cc785 | [
"MIT"
] | 1 | 2016-09-12T18:27:38.000Z | 2016-09-12T18:28:25.000Z | vsproj/PointLight.cpp | nguillemot/spooky | e8a3ccb7ee58b70b289b2643ce5b35350d4cc785 | [
"MIT"
] | null | null | null | #include "PointLight.h"
#include <iostream>
PointLight::PointLight()
{
}
PointLight::~PointLight()
{
}
PointLight::PointLight(const PointLight& copy_from)
{
pLight.LightColor = copy_from.pLight.LightColor;
pLight.LightPosition = copy_from.pLight.LightPosition;
pLight.AmbientLightColor = copy_from.pLight.Ambient... | 18.275362 | 68 | 0.746233 | nguillemot |
382057a12618436e33e8ed6b94c6c9eccb8f8652 | 6,392 | cpp | C++ | src/utils/keyframe_msg.cpp | mfkiwl/FLVIS | 7472fef6fbc6cfc1e2c0de5dd1d0a7ae5462f689 | [
"BSD-2-Clause"
] | 113 | 2020-10-18T12:35:16.000Z | 2022-03-29T06:08:49.000Z | src/utils/keyframe_msg.cpp | JazzyFeng/FLVIS-gpu | 74dd8a136d1923592d2ca74d2408cc2c3bbb8c7b | [
"BSD-2-Clause"
] | 9 | 2020-07-04T07:54:57.000Z | 2022-02-17T06:37:33.000Z | src/utils/keyframe_msg.cpp | JazzyFeng/FLVIS-gpu | 74dd8a136d1923592d2ca74d2408cc2c3bbb8c7b | [
"BSD-2-Clause"
] | 29 | 2021-01-11T13:04:53.000Z | 2022-03-29T06:08:50.000Z | #include "include/keyframe_msg.h"
KeyFrameMsg::KeyFrameMsg()
{
}
KeyFrameMsg::KeyFrameMsg(ros::NodeHandle &nh, string topic_name, int buffersize)
{
kf_pub = nh.advertise<flvis::KeyFrame>(topic_name,1);
}
void KeyFrameMsg::cmdLMResetPub(ros::Time stamp)
{
flvis::KeyFrame kf;
kf.header.stamp = stamp;
... | 35.511111 | 117 | 0.60826 | mfkiwl |
3821d1764bdbf16b2a280a706cf2c97a1aeb51bb | 2,116 | cpp | C++ | framework/areg/trace/private/LoggerBase.cpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 70 | 2021-07-20T11:26:16.000Z | 2022-03-27T11:17:43.000Z | framework/areg/trace/private/LoggerBase.cpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 32 | 2021-07-31T05:20:44.000Z | 2022-03-20T10:11:52.000Z | framework/areg/trace/private/LoggerBase.cpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 40 | 2021-11-02T09:45:38.000Z | 2022-03-27T11:17:46.000Z | /************************************************************************
* This file is part of the AREG SDK core engine.
* AREG SDK is dual-licensed under Free open source (Apache version 2.0
* License) and Commercial (with various pricing models) licenses, depending
* on the nature of the project (commercial, re... | 33.587302 | 103 | 0.653592 | Ali-Nasrolahi |
3823cded0aca4feea941da2e1de65517ca6c1848 | 111,958 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32746G-Discovery/Demonstrations/TouchGFX/Gui/generated/images/src/MainMenu/demo_button_04_pressed.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32746G-Discovery/Demonstrations/TouchGFX/Gui/generated/images/src/MainMenu/demo_button_04_pressed.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32746G-Discovery/Demonstrations/TouchGFX/Gui/generated/images/src/MainMenu/demo_button_04_pressed.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | // Generated by imageconverter. Please, do not edit!
#include <touchgfx/hal/Config.hpp>
LOCATION_EXTFLASH_PRAGMA
KEEP extern const unsigned char _demo_button_04_pressed[] LOCATION_EXTFLASH_ATTRIBUTE = { // 134x55 RGB565 pixels.
0x00,0x00,0x05,0x01,0x05,0x01,0x05,0x01,0x05,0x01,0x05,0x01,0x05,0x01,0x05,0x01,0x05,0x01,... | 108.486434 | 160 | 0.792779 | ramkumarkoppu |
3824965739957beae561460ccec5c7bab1d4fc87 | 6,429 | cpp | C++ | modules/animationqt/src/widgets/keyframesequencewidgetqt.cpp | BioDataAnalysis/inviwo | 6ca6fdd28837229ec1fdfa38d7ab35f3f07dd75b | [
"BSD-2-Clause"
] | null | null | null | modules/animationqt/src/widgets/keyframesequencewidgetqt.cpp | BioDataAnalysis/inviwo | 6ca6fdd28837229ec1fdfa38d7ab35f3f07dd75b | [
"BSD-2-Clause"
] | null | null | null | modules/animationqt/src/widgets/keyframesequencewidgetqt.cpp | BioDataAnalysis/inviwo | 6ca6fdd28837229ec1fdfa38d7ab35f3f07dd75b | [
"BSD-2-Clause"
] | null | null | null | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2018-2020 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | 39.685185 | 97 | 0.690154 | BioDataAnalysis |
3826493a538c177b705b60750827079f197dd7f3 | 162 | cpp | C++ | Game/Client/WXCore/Core/WXObjectFactory.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Client/WXCore/Core/WXObjectFactory.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Client/WXCore/Core/WXObjectFactory.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "WXObjectFactory.h"
#include "WXObject.h"
namespace WX
{
void ObjectFactory::destroyInstance(Object* object)
{
delete object;
}
}
| 12.461538 | 55 | 0.654321 | hackerlank |
38266974dbd08c54f5a98e37605ab216390edda9 | 614 | cpp | C++ | test/framework/test_logger.cpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 1,467 | 2016-10-25T12:27:19.000Z | 2022-03-28T04:32:05.000Z | test/framework/test_logger.cpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 2,366 | 2016-10-25T10:07:57.000Z | 2022-03-31T22:03:24.000Z | test/framework/test_logger.cpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 662 | 2016-10-26T04:41:22.000Z | 2022-03-31T04:15:02.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "framework/test_logger.hpp"
#include "logger/logger_manager.hpp"
logger::LoggerManagerTreePtr getTestLoggerManager(
const logger::LogLevel &log_level) {
static logger::LoggerManagerTreePtr log_manager(... | 29.238095 | 77 | 0.7443 | akshatkarani |
382823605523a30a8b080b24cbb5c405f79ecdbe | 7,699 | cpp | C++ | hw4/ch11/file_operation.cpp | Xanonymous-GitHub/os-hw | ec8e8320341028eba6f6ca96e5771f65882ed6d3 | [
"MIT"
] | null | null | null | hw4/ch11/file_operation.cpp | Xanonymous-GitHub/os-hw | ec8e8320341028eba6f6ca96e5771f65882ed6d3 | [
"MIT"
] | null | null | null | hw4/ch11/file_operation.cpp | Xanonymous-GitHub/os-hw | ec8e8320341028eba6f6ca96e5771f65882ed6d3 | [
"MIT"
] | null | null | null | #include "inode.h"
int erase_inode_content(int cur_inode) {
// flag to verify if deletion completed or not
bool delete_completed = false;
// iterate over direct pointers
for (int i = 0; i < 10; i++) {
if (inode_arr[cur_inode].pointer[i] == -1) {
delete_completed = true;
... | 35.155251 | 134 | 0.606053 | Xanonymous-GitHub |
38284f4dab2e48a712004c651ca40d48d9dfb3f2 | 287 | cpp | C++ | pointers_again/pointer_1.cpp | sahilduhan/Learn-C-plus-plus | 80dba2ee08b36985deb297293a0318da5d6ace94 | [
"RSA-MD"
] | null | null | null | pointers_again/pointer_1.cpp | sahilduhan/Learn-C-plus-plus | 80dba2ee08b36985deb297293a0318da5d6ace94 | [
"RSA-MD"
] | null | null | null | pointers_again/pointer_1.cpp | sahilduhan/Learn-C-plus-plus | 80dba2ee08b36985deb297293a0318da5d6ace94 | [
"RSA-MD"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a = 100;
int *p = &a; // p is a pointer to an integer which points towards the adress of a
cout << " the adress of a is " << p << endl;
cout << " the adress of the next is " << p + 1 << endl;
return 0;
} | 26.090909 | 85 | 0.571429 | sahilduhan |
382e50d2b8f50e1d48f979c31b8c155252aa26ca | 129 | cxx | C++ | Modules/ThirdParty/VNL/src/vxl/core/vnl/xio/tests/test_driver.cxx | arobert01/ITK | 230d319fdeaa3877273fab5d409dd6c11f0a6874 | [
"Apache-2.0"
] | 945 | 2015-01-09T00:43:52.000Z | 2022-03-30T08:23:02.000Z | Modules/ThirdParty/VNL/src/vxl/core/vnl/xio/tests/test_driver.cxx | arobert01/ITK | 230d319fdeaa3877273fab5d409dd6c11f0a6874 | [
"Apache-2.0"
] | 2,354 | 2015-02-04T21:54:21.000Z | 2022-03-31T20:58:21.000Z | Modules/ThirdParty/VNL/src/vxl/core/vnl/xio/tests/test_driver.cxx | arobert01/ITK | 230d319fdeaa3877273fab5d409dd6c11f0a6874 | [
"Apache-2.0"
] | 566 | 2015-01-04T14:26:57.000Z | 2022-03-18T20:33:18.000Z | #include "testlib/testlib_register.h"
DECLARE(test_vnl_xio);
void
register_tests()
{
REGISTER(test_vnl_xio);
}
DEFINE_MAIN;
| 10.75 | 37 | 0.767442 | arobert01 |
383234b936ca1442c0be2bfcff02cba5ae3d58bd | 3,277 | cc | C++ | old-software/kpixSw/sidApi/online/KpixHistogram.cc | slaclab/kpix | abf5b87f9a5d25e4810fc5be523bdcc76c5cba91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | old-software/kpixSw/sidApi/online/KpixHistogram.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/KpixHistogram.cc | slaclab/kpix | abf5b87f9a5d25e4810fc5be523bdcc76c5cba91 | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-12-12T22:58:44.000Z | 2020-12-12T22:58:44.000Z | //-----------------------------------------------------------------------------
// File : KpixHistogram.h
// Author : Ryan Herbst <rherbst@slac.stanford.edu>
// Created : 10/15/2008
// Project : SID Electronics API
//--------------------------------------------------------------------------... | 28.745614 | 85 | 0.5148 | slaclab |
3833640b3de34ac049d4def56c2a4e4f1e450837 | 2,533 | cpp | C++ | clang-tools-extra/clang-tidy/bugprone/BadSignalToKillThreadCheck.cpp | rarutyun/llvm | 76fa6b3bcade074bdedef740001c4528e1aa08a8 | [
"Apache-2.0"
] | 305 | 2019-09-14T17:16:05.000Z | 2022-03-31T15:05:20.000Z | clang-tools-extra/clang-tidy/bugprone/BadSignalToKillThreadCheck.cpp | rarutyun/llvm | 76fa6b3bcade074bdedef740001c4528e1aa08a8 | [
"Apache-2.0"
] | 410 | 2019-06-06T20:52:32.000Z | 2022-01-18T14:21:48.000Z | clang-tools-extra/clang-tidy/bugprone/BadSignalToKillThreadCheck.cpp | rarutyun/llvm | 76fa6b3bcade074bdedef740001c4528e1aa08a8 | [
"Apache-2.0"
] | 50 | 2019-05-10T21:12:24.000Z | 2022-01-21T06:39:47.000Z | //===--- BadSignalToKillThreadCheck.cpp - clang-tidy ---------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------... | 33.773333 | 80 | 0.667588 | rarutyun |
383509b931755ac2dc15276fc93191f18e9308bd | 28,288 | cpp | C++ | extRCap.cpp | ilesser/OpenRCX | 2d55c222b50de659f9792ffd3dfce2cda7a1e276 | [
"BSD-3-Clause"
] | null | null | null | extRCap.cpp | ilesser/OpenRCX | 2d55c222b50de659f9792ffd3dfce2cda7a1e276 | [
"BSD-3-Clause"
] | null | null | null | extRCap.cpp | ilesser/OpenRCX | 2d55c222b50de659f9792ffd3dfce2cda7a1e276 | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2019, Nefelus Inc
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//... | 27.544304 | 156 | 0.592725 | ilesser |
383af8b80b765fd9ce022005c7bf83bd2e15e3e4 | 4,295 | cpp | C++ | source/MultiLibrary/Media/SoundSource.cpp | danielga/multilibrary | 3d1177dd3affa875e06015f5e3e42dda525f3336 | [
"BSD-3-Clause"
] | 2 | 2018-06-22T12:43:57.000Z | 2019-05-31T21:56:27.000Z | source/MultiLibrary/Media/SoundSource.cpp | danielga/multilibrary | 3d1177dd3affa875e06015f5e3e42dda525f3336 | [
"BSD-3-Clause"
] | 1 | 2017-09-09T01:21:31.000Z | 2017-11-12T17:52:56.000Z | source/MultiLibrary/Media/SoundSource.cpp | danielga/multilibrary | 3d1177dd3affa875e06015f5e3e42dda525f3336 | [
"BSD-3-Clause"
] | 1 | 2022-03-30T18:57:41.000Z | 2022-03-30T18:57:41.000Z | /*************************************************************************
* MultiLibrary - https://danielga.github.io/multilibrary/
* A C++ library that covers multiple low level systems.
*------------------------------------------------------------------------
* Copyright (c) 2014-2022, Daniel Almeida
* All righ... | 29.02027 | 95 | 0.71362 | danielga |
383c2ad1cae19ddb3858e1d099787efd60f93368 | 325 | tpp | C++ | rb_tree/includes/btree_apply_infix.tpp | paulahemsi/ft_containers | c7d6c878c25bf4faeb60f86f977639c8a7006776 | [
"MIT"
] | 1 | 2022-03-02T15:14:16.000Z | 2022-03-02T15:14:16.000Z | rb_tree/includes/btree_apply_infix.tpp | paulahemsi/ft_containers | c7d6c878c25bf4faeb60f86f977639c8a7006776 | [
"MIT"
] | 73 | 2021-12-11T18:54:53.000Z | 2022-03-28T01:32:52.000Z | rb_tree/includes/btree_apply_infix.tpp | paulahemsi/ft_containers | c7d6c878c25bf4faeb60f86f977639c8a7006776 | [
"MIT"
] | null | null | null |
#ifndef BTREE_APPLY_INFIX_TPP
#define BTREE_APPLY_INFIX_TPP
#include "btree.tpp"
template <class T>
void btree_apply_infix(ft::btree<T> *root, void (*applyf)(const T*))
{
if (!root || is_nil(root))
return;
btree_apply_infix(root->left, applyf);
applyf(root->item);
btree_apply_infix(root->right, applyf);
}
#e... | 17.105263 | 68 | 0.726154 | paulahemsi |
383deb430ac201f2ebda757eb5bb45240fae5de0 | 308 | cpp | C++ | CC++/WTL/WTL/Samples/GuidGen/stdatl.cpp | Peterinor/Coding | 3ac4908b3c6ae5df96390332e5452da934d12c3b | [
"MIT"
] | null | null | null | CC++/WTL/WTL/Samples/GuidGen/stdatl.cpp | Peterinor/Coding | 3ac4908b3c6ae5df96390332e5452da934d12c3b | [
"MIT"
] | null | null | null | CC++/WTL/WTL/Samples/GuidGen/stdatl.cpp | Peterinor/Coding | 3ac4908b3c6ae5df96390332e5452da934d12c3b | [
"MIT"
] | null | null | null | // stdatl.cpp : source file that includes just the standard includes
// GuidGen.pch will be the pre-compiled header
// stdatl.obj will contain the pre-compiled type information
#include "stdatl.h"
#if (_ATL_VER < 0x0700) && !defined(_WIN32_WCE)
#include <atlimpl.cpp>
#endif //(_ATL_VER < 0x0700)
| 30.8 | 69 | 0.720779 | Peterinor |
3840c0b8543ce8833bc13189f64afd2ab3f0a90d | 23,729 | cpp | C++ | sdl1/cannonball/src/main/hwvideo/hwroad.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/cannonball/src/main/hwvideo/hwroad.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/cannonball/src/main/hwvideo/hwroad.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | #include <cstring> // memcpy
#include "hwvideo/hwroad.hpp"
#include "globals.hpp"
#include "frontend/config.hpp"
/***************************************************************************
Video Emulation: OutRun Road Rendering Hardware.
Based on MAME source code.
Copyright Aaron Giles.
All rights re... | 36.618827 | 142 | 0.435838 | pdpdds |
384207afeda1ef3452bc021f83b7af56bc0e2454 | 657 | cpp | C++ | COS2614/Assignments/Assignment 1/Question_1/main.cpp | ziyaadfredericks/university | 0c9612921b417e6b428a34a84d3012bd07281dd0 | [
"MIT"
] | null | null | null | COS2614/Assignments/Assignment 1/Question_1/main.cpp | ziyaadfredericks/university | 0c9612921b417e6b428a34a84d3012bd07281dd0 | [
"MIT"
] | null | null | null | COS2614/Assignments/Assignment 1/Question_1/main.cpp | ziyaadfredericks/university | 0c9612921b417e6b428a34a84d3012bd07281dd0 | [
"MIT"
] | null | null | null | #include <QApplication>
#include <QInputDialog>
#include <QMessageBox>
#include <QString>
float convertToCelsius(float temperatureC) {
return ((9 * temperatureC) / 5) + 32;
}
int main(int argc, char* argv[]) {
QApplication app(argc, argv);
bool buttonClicked = false;
float temperatureC = QInputDialog::g... | 27.375 | 156 | 0.707763 | ziyaadfredericks |
3844e3bc31a4c4ab80936712d0ac7514c9cb3571 | 88,151 | cc | C++ | media/engine/webrtcvideoengine2.cc | UWNetworksLab/webrtc-mod | 5b910438baf4f7c7883996a2323d8ed809fd10e1 | [
"DOC",
"BSD-3-Clause"
] | 1 | 2017-02-20T04:24:44.000Z | 2017-02-20T04:24:44.000Z | media/engine/webrtcvideoengine2.cc | UWNetworksLab/webrtc-mod | 5b910438baf4f7c7883996a2323d8ed809fd10e1 | [
"DOC",
"BSD-3-Clause"
] | null | null | null | media/engine/webrtcvideoengine2.cc | UWNetworksLab/webrtc-mod | 5b910438baf4f7c7883996a2323d8ed809fd10e1 | [
"DOC",
"BSD-3-Clause"
] | 1 | 2016-10-17T18:34:08.000Z | 2016-10-17T18:34:08.000Z | /*
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 34.952815 | 80 | 0.702805 | UWNetworksLab |
38455ccbd33cea36f2acc4d1768a2df1e9696def | 17,502 | cpp | C++ | src/network_stores/src/jsub_callbacks.cpp | yulicrunchy/JALoP | a474b464d4916fe559cf1df97c855232e5ec24ab | [
"Apache-2.0"
] | null | null | null | src/network_stores/src/jsub_callbacks.cpp | yulicrunchy/JALoP | a474b464d4916fe559cf1df97c855232e5ec24ab | [
"Apache-2.0"
] | null | null | null | src/network_stores/src/jsub_callbacks.cpp | yulicrunchy/JALoP | a474b464d4916fe559cf1df97c855232e5ec24ab | [
"Apache-2.0"
] | null | null | null | /**
* @file jsub_callbacks.cpp This file contains handlers for the
* Network Library subscriber callbacks.
*
* @section LICENSE
*
* Source code in 3rd-party is licensed and owned by their respective
* copyright holders.
*
* All other source code is copyright Tresys Technology and licensed as below.
*
* Copyright (c) 20... | 26.884793 | 112 | 0.721003 | yulicrunchy |
3845895e575a59b58c530274848359c48cb6d098 | 1,856 | cpp | C++ | app/src/main/cpp/GameApplication.cpp | KoreanGinseng/2d_shooting_game_for_android | be21b4f4bbf8326c834f2148f6ab6337fd2c0518 | [
"MIT"
] | null | null | null | app/src/main/cpp/GameApplication.cpp | KoreanGinseng/2d_shooting_game_for_android | be21b4f4bbf8326c834f2148f6ab6337fd2c0518 | [
"MIT"
] | null | null | null | app/src/main/cpp/GameApplication.cpp | KoreanGinseng/2d_shooting_game_for_android | be21b4f4bbf8326c834f2148f6ab6337fd2c0518 | [
"MIT"
] | null | null | null | /******************************************************************************/
/*! @file GameApplication.cpp
@brief ゲームアプリケーションクラス実装ファイル
*******************************************************************************/
#include "GameApplication.h"
using namespace Shooting2D;
/*************************... | 33.745455 | 80 | 0.386853 | KoreanGinseng |
384716cf972c58eedfa9659e8799bf3146931521 | 2,633 | cpp | C++ | Gems/Atom/RPI/Code/Source/RPI.Public/Image/AttachmentImagePool.cpp | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 11 | 2021-07-08T09:58:26.000Z | 2022-03-17T17:59:26.000Z | Gems/Atom/RPI/Code/Source/RPI.Public/Image/AttachmentImagePool.cpp | RoddieKieley/o3de | e804fd2a4241b039a42d9fa54eaae17dc94a7a92 | [
"Apache-2.0",
"MIT"
] | 29 | 2021-07-06T19:33:52.000Z | 2022-03-22T10:27:49.000Z | Gems/Atom/RPI/Code/Source/RPI.Public/Image/AttachmentImagePool.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 <Atom/RPI.Public/Image/AttachmentImagePool.h>
#include <Atom/RPI.Reflect/ResourcePoolAss... | 32.9125 | 134 | 0.609191 | cypherdotXd |
38471ec692cf3fb79f8f69e8bb522db856b9adc0 | 6,787 | cpp | C++ | third_party/opencore-audio/gsm_amr/amr_nb/common/src/ph_disp_tab.cpp | asveikau/audio | 4b8978d5a7855a0ee62cd15b1dd76d35fb6c8290 | [
"0BSD"
] | null | null | null | third_party/opencore-audio/gsm_amr/amr_nb/common/src/ph_disp_tab.cpp | asveikau/audio | 4b8978d5a7855a0ee62cd15b1dd76d35fb6c8290 | [
"0BSD"
] | null | null | null | third_party/opencore-audio/gsm_amr/amr_nb/common/src/ph_disp_tab.cpp | asveikau/audio | 4b8978d5a7855a0ee62cd15b1dd76d35fb6c8290 | [
"0BSD"
] | null | null | null | /* ------------------------------------------------------------------
* Copyright (C) 2008 PacketVideo
*
* 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/li... | 35.165803 | 89 | 0.398556 | asveikau |
3848339fd71227afed4ea80e324561f03b125856 | 1,781 | cpp | C++ | QubGL/src/Rendering/Mesh.cpp | festivaledu/QubGL | 2ab1def8a654868fa010f3384ef8937b257cc111 | [
"MIT"
] | null | null | null | QubGL/src/Rendering/Mesh.cpp | festivaledu/QubGL | 2ab1def8a654868fa010f3384ef8937b257cc111 | [
"MIT"
] | null | null | null | QubGL/src/Rendering/Mesh.cpp | festivaledu/QubGL | 2ab1def8a654868fa010f3384ef8937b257cc111 | [
"MIT"
] | null | null | null | //
// Mesh.cpp
// QubGL
//
// Copyright © 2020 Team FESTIVAL. All rights reserved.
//
#include "Mesh.hpp"
#include <iostream>
#include "ElementBufferObject.hpp"
#include "Material.hpp"
#include "Vertex.hpp"
#include "VertexArrayObject.hpp"
#include "VertexBufferObject.hpp"
Mesh::Mesh(std::vector<Vertex>& vertice... | 20.011236 | 122 | 0.651319 | festivaledu |
38499074995745c03f3829d2214b884e45fb9cd2 | 96 | cpp | C++ | src/node.cpp | fMalinka/sem1R | fab02834ec73b9b85550a7013741902da1010e72 | [
"MIT"
] | null | null | null | src/node.cpp | fMalinka/sem1R | fab02834ec73b9b85550a7013741902da1010e72 | [
"MIT"
] | null | null | null | src/node.cpp | fMalinka/sem1R | fab02834ec73b9b85550a7013741902da1010e72 | [
"MIT"
] | null | null | null | #include "node.h"
Node::Node()
{
//std::vector<edge> *relationship;
}
Node::~Node()
{
}
| 7.384615 | 38 | 0.552083 | fMalinka |
38499397174f03255678ddd633cbd016d85d840b | 8,434 | cpp | C++ | src/gerbil/KmerDistributor.cpp | danflomin/gerbil | 699826e07c81a5bcb045d23ebc33371b124115ca | [
"MIT"
] | 37 | 2017-01-04T12:31:47.000Z | 2022-03-11T08:47:32.000Z | src/gerbil/KmerDistributor.cpp | danflomin/gerbil | 699826e07c81a5bcb045d23ebc33371b124115ca | [
"MIT"
] | 18 | 2016-05-06T07:58:48.000Z | 2022-02-17T04:11:17.000Z | src/gerbil/KmerDistributor.cpp | danflomin/gerbil | 699826e07c81a5bcb045d23ebc33371b124115ca | [
"MIT"
] | 13 | 2016-05-16T12:52:50.000Z | 2022-03-02T19:26:50.000Z | /*
* KmerDistributer.cpp
*
* Created on: Jan 22, 2016
* Author: rechner
*/
#include "../../include/gerbil/KmerDistributer.h"
#include "../../include/gerbil/config.h"
#include <stdio.h>
#include <cmath>
#include <cstring>
#include <climits>
#include <map>
#include <algorithm>
#include <sstream>
namespace ge... | 30.669091 | 132 | 0.623429 | danflomin |
384d6369e11578437894de056daf3ff41eb928b1 | 9,189 | hpp | C++ | tpls/pressio/include/pressio/utils/logger/spdlog/details/registry.hpp | fnrizzi/pressio-demoapps | 6ff10bbcf4d526610580940753c9620725bff1ba | [
"BSD-3-Clause"
] | 29 | 2019-11-11T13:17:57.000Z | 2022-03-16T01:31:31.000Z | tpls/pressio/include/pressio/utils/logger/spdlog/details/registry.hpp | fnrizzi/pressio-demoapps | 6ff10bbcf4d526610580940753c9620725bff1ba | [
"BSD-3-Clause"
] | 303 | 2019-09-30T10:15:41.000Z | 2022-03-30T08:24:04.000Z | tpls/pressio/include/pressio/utils/logger/spdlog/details/registry.hpp | fnrizzi/pressio-demoapps | 6ff10bbcf4d526610580940753c9620725bff1ba | [
"BSD-3-Clause"
] | 4 | 2020-07-07T03:32:36.000Z | 2022-03-10T05:21:42.000Z | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#ifndef UTILS_LOGGER_SPDLOG_DETAILS_REGISTRY_HPP_
#define UTILS_LOGGER_SPDLOG_DETAILS_REGISTRY_HPP_
// Loggers registry of unique name->logger pointer
// An attempt to create a lo... | 26.868421 | 100 | 0.688541 | fnrizzi |
384ea49223a428bcef5d10b66d931c3d10ace61d | 2,798 | cpp | C++ | src/bar_widget.cpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | src/bar_widget.cpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | src/bar_widget.cpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2014 Kristina Simpson <sweet.kristas@gmail.com>
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 app... | 30.086022 | 104 | 0.686562 | cbeck88 |
384ed0f44997e7818e229d719c76a8722cd2a7c6 | 3,781 | cc | C++ | mwrap/example/fem/src/elastic2d.cc | ejyoo921/FMM3D | 6aeb4031340c1aeca0754f0fd2b7ef8e754a449e | [
"Apache-2.0"
] | 31 | 2015-07-10T08:25:10.000Z | 2021-10-15T12:39:49.000Z | mwrap/example/fem/src/elastic2d.cc | ejyoo921/FMM3D | 6aeb4031340c1aeca0754f0fd2b7ef8e754a449e | [
"Apache-2.0"
] | 6 | 2020-07-06T02:24:03.000Z | 2020-08-10T15:06:35.000Z | mwrap/example/fem/src/elastic2d.cc | ejyoo921/FMM3D | 6aeb4031340c1aeca0754f0fd2b7ef8e754a449e | [
"Apache-2.0"
] | 17 | 2017-03-28T02:50:22.000Z | 2022-03-11T14:12:16.000Z | /*
* elastic2d.cc
* Element type for 2D elasticity (4 node quad only).
*
* Copyright (c) 2007 David Bindel
* See the file COPYING for copying permissions
*/
#include "etype.h"
#include "mesh.h"
#include "elastic2d.h"
#include "quad2d.h"
#include "gauss2by2.h"
#include <string.h>
#define ME Elastic2D
ME::ME... | 21.729885 | 61 | 0.427665 | ejyoo921 |
384f638fdca397c8059b2b35004ba99e4e4d61ea | 15,355 | cpp | C++ | OpenTESArena/src/Media/TextureUtils.cpp | TotalCaesar659/OpenTESArena | e72eda7a5e03869309b5ed7375f432d0ad826ff3 | [
"MIT"
] | null | null | null | OpenTESArena/src/Media/TextureUtils.cpp | TotalCaesar659/OpenTESArena | e72eda7a5e03869309b5ed7375f432d0ad826ff3 | [
"MIT"
] | null | null | null | OpenTESArena/src/Media/TextureUtils.cpp | TotalCaesar659/OpenTESArena | e72eda7a5e03869309b5ed7375f432d0ad826ff3 | [
"MIT"
] | null | null | null | #include <algorithm>
#include "TextureUtils.h"
#include "../Assets/ArenaTextureName.h"
#include "../Math/Rect.h"
#include "../Media/TextureManager.h"
#include "../Rendering/Renderer.h"
#include "../UI/ArenaFontName.h"
#include "../UI/FontLibrary.h"
#include "../UI/Surface.h"
#include "../UI/TextAlignment.h"
#include "... | 37.820197 | 121 | 0.730511 | TotalCaesar659 |
384f87eeba92a32cf92994a6cf06d0e3af80af45 | 2,760 | cpp | C++ | unit-test/common/test_topicregistry.cpp | google/detectorgraph | d6c923f8e495a21137312b236e35c36a55d3a755 | [
"Apache-2.0"
] | 43 | 2018-05-17T07:13:18.000Z | 2022-02-02T01:54:06.000Z | unit-test/common/test_topicregistry.cpp | google/detectorgraph | d6c923f8e495a21137312b236e35c36a55d3a755 | [
"Apache-2.0"
] | 4 | 2018-09-20T04:14:11.000Z | 2018-09-21T08:05:33.000Z | unit-test/common/test_topicregistry.cpp | google/detectorgraph | d6c923f8e495a21137312b236e35c36a55d3a755 | [
"Apache-2.0"
] | 12 | 2018-05-17T09:03:31.000Z | 2020-10-13T16:38:15.000Z | // Copyright 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.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 28.163265 | 92 | 0.727536 | google |
ee2c53c0d076a24737f2fadf8282c91e61f5c46e | 1,188 | cpp | C++ | dataset/test/modification/1486_all/32/transformation_1.cpp | Karina5005/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | 3 | 2022-02-15T00:29:39.000Z | 2022-03-15T08:36:44.000Z | dataset/test/modification/1486_all/32/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | dataset/test/modification/1486_all/32/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | #include <iomanip>
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
int main();
int main() {
int j;
cin >> j;
if (5 > 3) cout << "new code";for ( ; j--; )
/* 'for' inside */
{
int t;
cin >> t;
int hf_q[t + 1];
int wye_en = 0;
lo... | 22.415094 | 65 | 0.300505 | Karina5005 |
ee322252a1fa099722bffa033a79ab27106e4ffd | 1,339 | cpp | C++ | kactl/stress-tests/geometry/CircleLine.cpp | prince776/CodeBook | 874fc7f94011ad1d25a55bcd91fecd2a11eb5a9b | [
"CC0-1.0"
] | 17 | 2021-01-25T12:07:17.000Z | 2022-02-26T17:20:31.000Z | kactl/stress-tests/geometry/CircleLine.cpp | NavneelSinghal/CodeBook | ff60ace9107dd19ef8ba81e175003f567d2a9070 | [
"CC0-1.0"
] | null | null | null | kactl/stress-tests/geometry/CircleLine.cpp | NavneelSinghal/CodeBook | ff60ace9107dd19ef8ba81e175003f567d2a9070 | [
"CC0-1.0"
] | 4 | 2021-02-28T11:13:44.000Z | 2021-11-20T12:56:20.000Z | #include "../utilities/template.h"
#include "../utilities/randGeo.h"
#include "../../content/geometry/lineDistance.h"
#include "../../content/geometry/CircleLine.h"
typedef Point<double> P;
int main() {
{
auto res = circleLine(P(0, 0), 1, P(-1, -1), P(1, 1));
assert(res.size() == 2);
asser... | 26.254902 | 102 | 0.512323 | prince776 |
ee32398844a1abce62e35c50d982dd1b6748e08f | 12,954 | cpp | C++ | android/android_23/frameworks/base/media/libstagefright/codecs/aacdec/calc_auto_corr.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | null | null | null | android/android_23/frameworks/base/media/libstagefright/codecs/aacdec/calc_auto_corr.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | null | null | null | android/android_23/frameworks/base/media/libstagefright/codecs/aacdec/calc_auto_corr.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | null | null | null | /* ------------------------------------------------------------------
* Copyright (C) 1998-2009 PacketVideo
*
* 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... | 31.064748 | 81 | 0.483171 | yakuizhao |
ee3633d6f4961e602ca50ad8472a8ef09ef685fe | 6,981 | cpp | C++ | Shell_simulation_node/src/shell_simulation_node.cpp | shashankkmciv18/Averera | 6c59d8e812bfbff3d7470e2ad6e6f12cf5d95109 | [
"MIT"
] | null | null | null | Shell_simulation_node/src/shell_simulation_node.cpp | shashankkmciv18/Averera | 6c59d8e812bfbff3d7470e2ad6e6f12cf5d95109 | [
"MIT"
] | null | null | null | Shell_simulation_node/src/shell_simulation_node.cpp | shashankkmciv18/Averera | 6c59d8e812bfbff3d7470e2ad6e6f12cf5d95109 | [
"MIT"
] | null | null | null | #include <ros/ros.h>
#include<std_msgs/Float64.h>
#include<nav_msgs/Odometry.h>
#include<math.h>
#include<tf/transform_datatypes.h>
#include<shell_simulation/Car_Command.h>
#include<vector>
using namespace std;
// Structure for coordinates
struct coordinates
{
float x,y;
};
// Class for goal/target points
struc... | 31.445946 | 118 | 0.559232 | shashankkmciv18 |
ee368e8fb43d4e878de7bb297d57d1659d0b8753 | 446 | cpp | C++ | src/unity/ios/logging_ios.cpp | devlz303/gulden-official | c624d0383b081fe3ae5e79b4f228a8224e79818e | [
"MIT"
] | null | null | null | src/unity/ios/logging_ios.cpp | devlz303/gulden-official | c624d0383b081fe3ae5e79b4f228a8224e79818e | [
"MIT"
] | null | null | null | src/unity/ios/logging_ios.cpp | devlz303/gulden-official | c624d0383b081fe3ae5e79b4f228a8224e79818e | [
"MIT"
] | 1 | 2020-09-10T09:22:14.000Z | 2020-09-10T09:22:14.000Z | // Copyright (c) 2018 The Gulden developers
// Authored by: Willem de Jonge (willem@isnapp.nl)
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include "../unity_impl.h"
#include "gulden_unified_frontend.hpp"
... | 23.473684 | 70 | 0.733184 | devlz303 |
ee395ea7eebb6a15c65fec1680e5d1f18476e107 | 1,039 | hpp | C++ | apps/opencs/model/world/cellcoordinates.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/model/world/cellcoordinates.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/model/world/cellcoordinates.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | #ifndef CSM_WOLRD_CELLCOORDINATES_H
#define CSM_WOLRD_CELLCOORDINATES_H
#include <iosfwd>
#include <string>
#include <QMetaType>
namespace CSMWorld
{
class CellCoordinates
{
int mX;
int mY;
public:
CellCoordinates();
CellCoordinates (int x, int y);
... | 24.162791 | 88 | 0.643888 | Bodillium |
ee3c4f85c44539b00e1af0bebfad76e50232dc84 | 2,965 | cc | C++ | bin/asharing.cc | chyyuu/sv6 | 1dceb0f462fdcc676a4e0bd03579d682eee15b52 | [
"MIT-0"
] | null | null | null | bin/asharing.cc | chyyuu/sv6 | 1dceb0f462fdcc676a4e0bd03579d682eee15b52 | [
"MIT-0"
] | null | null | null | bin/asharing.cc | chyyuu/sv6 | 1dceb0f462fdcc676a4e0bd03579d682eee15b52 | [
"MIT-0"
] | null | null | null | // Tests to drive abstract sharing analysis
#include "types.h"
#include "user.h"
#include <fcntl.h>
#include "mtrace.h"
#include "pthread.h"
#include "rnd.hh"
#include <stdio.h>
#include <string.h>
#include <sys/mman.h>
#include <atomic>
#include <utility>
static int cpu;
std::atomic<int> barrier;
enum { ncore = 8 ... | 18.765823 | 99 | 0.543339 | chyyuu |
ee3ce33328af8ef0ec1385f264581ba0cbafd6e7 | 906 | hpp | C++ | shared/math/math_definitions.hpp | mathew235/csgo-internal | 2d0744d65191de5801dd93c53ce7811c581e3a89 | [
"MIT"
] | 130 | 2019-05-26T09:19:08.000Z | 2022-03-22T17:31:46.000Z | shared/math/math_definitions.hpp | mathew235/csgo-internal | 2d0744d65191de5801dd93c53ce7811c581e3a89 | [
"MIT"
] | 13 | 2019-05-27T16:02:19.000Z | 2021-12-31T20:01:47.000Z | shared/math/math_definitions.hpp | mathew235/csgo-internal | 2d0744d65191de5801dd93c53ce7811c581e3a89 | [
"MIT"
] | 52 | 2019-05-26T09:19:27.000Z | 2021-12-07T16:45:28.000Z | #pragma once
#define PITCH 0
#define YAW 1
#define ROLL 2
namespace shared::math
{
/// <summary>
/// Converts radians to degrees
/// </summary>
/// <param name="rad">Radians</param>
/// <returns>Degrees</returns>
inline float rad2deg( const float rad )
{
return static_cast<float>( rad * ( 180.f / M_PI ) );
... | 22.65 | 66 | 0.629139 | mathew235 |
ee41c707061fd83bf5f2e1396561107e0fee5618 | 1,132 | hpp | C++ | src/plugins/intel_cpu/src/utils/shape_inference/shape_inference.hpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 1 | 2022-03-09T08:11:10.000Z | 2022-03-09T08:11:10.000Z | src/plugins/intel_cpu/src/utils/shape_inference/shape_inference.hpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 18 | 2022-01-21T08:42:58.000Z | 2022-03-28T13:21:31.000Z | src/plugins/intel_cpu/src/utils/shape_inference/shape_inference.hpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 1 | 2020-12-13T22:16:54.000Z | 2020-12-13T22:16:54.000Z | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <ngraph/runtime/host_tensor.hpp>
#include <openvino/core/core.hpp>
#include <openvino/core/node.hpp>
#include "static_shape.hpp"
void shape_inference(ov::Node* op,
const std::vector<ov::... | 35.375 | 111 | 0.691696 | ryanloney |
ee4406425163a88c4b35214d4b13c7defdd285bc | 3,898 | cpp | C++ | compiler/enco/frontend/tflite/src/Op/MaxPool2D.cpp | bogus-sudo/ONE-1 | 7052a817eff661ec2854ed2e7ee0de5e8ba82b55 | [
"Apache-2.0"
] | 1 | 2020-05-22T13:51:03.000Z | 2020-05-22T13:51:03.000Z | compiler/enco/frontend/tflite/src/Op/MaxPool2D.cpp | bogus-sudo/ONE-1 | 7052a817eff661ec2854ed2e7ee0de5e8ba82b55 | [
"Apache-2.0"
] | 1 | 2020-09-23T23:12:23.000Z | 2020-09-23T23:20:34.000Z | compiler/enco/frontend/tflite/src/Op/MaxPool2D.cpp | bogus-sudo/ONE-1 | 7052a817eff661ec2854ed2e7ee0de5e8ba82b55 | [
"Apache-2.0"
] | 1 | 2021-07-22T11:02:43.000Z | 2021-07-22T11:02:43.000Z | /*
* Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 31.435484 | 97 | 0.713443 | bogus-sudo |
ee469103ef48db646f415e81cc23d9dad2982dd0 | 4,181 | hpp | C++ | openstudiocore/src/model/PlanarSurfaceGroup_Impl.hpp | jasondegraw/OpenStudio | 2ab13f6e5e48940929041444e40ad9d36f80f552 | [
"blessing"
] | 1 | 2016-12-29T08:45:03.000Z | 2016-12-29T08:45:03.000Z | openstudiocore/src/model/PlanarSurfaceGroup_Impl.hpp | jasondegraw/OpenStudio | 2ab13f6e5e48940929041444e40ad9d36f80f552 | [
"blessing"
] | null | null | null | openstudiocore/src/model/PlanarSurfaceGroup_Impl.hpp | jasondegraw/OpenStudio | 2ab13f6e5e48940929041444e40ad9d36f80f552 | [
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2016, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by t... | 33.448 | 108 | 0.70916 | jasondegraw |
ee483af3242a3c8a00820fe19068514018f7290c | 2,841 | cpp | C++ | CO2003/1_Review/q3/main.cpp | Smithienious/hcmut-201 | be16b77831aae83ff42e656a181881686c74e674 | [
"MIT"
] | null | null | null | CO2003/1_Review/q3/main.cpp | Smithienious/hcmut-201 | be16b77831aae83ff42e656a181881686c74e674 | [
"MIT"
] | 2 | 2020-10-12T09:57:12.000Z | 2020-11-09T11:05:01.000Z | CO2003/1_Review/q3/main.cpp | Smithienious/hcmut-201 | be16b77831aae83ff42e656a181881686c74e674 | [
"MIT"
] | 4 | 2020-10-12T10:30:56.000Z | 2020-12-15T14:46:04.000Z | #include <bits/stdc++.h>
using namespace std;
class Point
{
private:
double x, y;
public:
Point()
{
/*
* STUDENT ANSWER
* TODO: set zero x-y coordinate
*/
x = 0;
y = 0;
}
Point(double x, double y)
{
/*
* STUDENT ANSWER
... | 21.522727 | 179 | 0.491728 | Smithienious |
ee4857e01074268462a3f224d91c86464ba9ef87 | 4,378 | cpp | C++ | taco-oopsla2017/src/storage/array.cpp | peterahrens/FillEstimationIPDPS2017 | 857b6ee8866a2950aa5721d575d2d7d0797c4302 | [
"BSD-3-Clause"
] | null | null | null | taco-oopsla2017/src/storage/array.cpp | peterahrens/FillEstimationIPDPS2017 | 857b6ee8866a2950aa5721d575d2d7d0797c4302 | [
"BSD-3-Clause"
] | null | null | null | taco-oopsla2017/src/storage/array.cpp | peterahrens/FillEstimationIPDPS2017 | 857b6ee8866a2950aa5721d575d2d7d0797c4302 | [
"BSD-3-Clause"
] | null | null | null | #include "taco/storage/array.h"
#include <cstring>
#include <iostream>
#include "taco/type.h"
#include "taco/error.h"
#include "taco/util/uncopyable.h"
#include "taco/util/strings.h"
using namespace std;
namespace taco {
namespace storage {
struct Array::Content : util::Uncopyable {
Type type;
void* data;
... | 21.673267 | 75 | 0.476473 | peterahrens |
ee4ad7e9f18ce75ef36f4d328d9b1a417a7dd9c9 | 1,605 | cc | C++ | spectator/dist_summary.cc | copperlight/spectator-cpp | 993c98700a29cbcf067fb87fb88b37d5213530f0 | [
"Apache-2.0"
] | 31 | 2019-01-05T20:48:59.000Z | 2021-11-15T10:32:33.000Z | spectator/dist_summary.cc | copperlight/spectator-cpp | 993c98700a29cbcf067fb87fb88b37d5213530f0 | [
"Apache-2.0"
] | 58 | 2018-11-21T20:58:41.000Z | 2021-04-14T18:08:45.000Z | spectator/dist_summary.cc | copperlight/spectator-cpp | 993c98700a29cbcf067fb87fb88b37d5213530f0 | [
"Apache-2.0"
] | 15 | 2018-11-20T23:50:59.000Z | 2021-08-03T04:21:32.000Z | #include "dist_summary.h"
#include "atomicnumber.h"
namespace spectator {
DistributionSummary::DistributionSummary(IdPtr id) noexcept
: id_(std::move(id)), count_(0), total_(0), totalSq_(0.0), max_(0) {}
IdPtr DistributionSummary::MeterId() const noexcept { return id_; }
std::vector<Measurement> DistributionSum... | 28.660714 | 73 | 0.712773 | copperlight |
ee4ce3c22d5112e132bd828b4273ae7bc8c83514 | 5,420 | cpp | C++ | matCUDA tests/src/UnitTest02.cpp | leomiquelutti/matCUDA | 95bd7917289288b0137ce23a952d4ccfd43e0d1d | [
"MIT"
] | null | null | null | matCUDA tests/src/UnitTest02.cpp | leomiquelutti/matCUDA | 95bd7917289288b0137ce23a952d4ccfd43e0d1d | [
"MIT"
] | null | null | null | matCUDA tests/src/UnitTest02.cpp | leomiquelutti/matCUDA | 95bd7917289288b0137ce23a952d4ccfd43e0d1d | [
"MIT"
] | null | null | null | #include "unitTests.h"
#define sizeSmall 4
#define sizeLarge 1024
void test_plus_equal_float_1()
{
// small vector
Array<float> v1( sizeSmall );
for (int i = 0; i < v1.GetDescriptor().GetDim( 0 ); i++)
v1(i) += -1.0;
Array<float> v2( sizeSmall );
for (int i = 0; i < v2.GetDescriptor().GetDim( 0 ); i++)
v2(i... | 22.396694 | 59 | 0.596679 | leomiquelutti |