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 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 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 float64 1 77k ⌀ | 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 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 7 1.05M | avg_line_length float64 1.21 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0173d54babdf4883a3150eb0599e66987bd23a3b | 5,591 | cpp | C++ | CsCoreDEPRECATED/Source/CsCoreDEPRECATED/Components/CsWidgetComponent.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsCoreDEPRECATED/Source/CsCoreDEPRECATED/Components/CsWidgetComponent.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsCoreDEPRECATED/Source/CsCoreDEPRECATED/Components/CsWidgetComponent.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2019 Closed Sum Games, LLC. All Rights Reserved.
#include "Components/CsWidgetComponent.h"
#include "CsCoreDEPRECATED.h"
// Types
#include "Types/CsTypes.h"
// Library
#include "Library/CsLibrary_Common.h"
// UI
#include "UI/CsUserWidget.h"
#include "UI/Simple/CsSimpleWidget.h"
#include "Pawn/CsPawn... | 24.959821 | 150 | 0.764979 |
01763bf730e3956eed4037306a07412622ffb5a9 | 2,021 | hpp | C++ | include/Core/Tiles/Tileset.hpp | Sygmei/ObEngine | 881b1471cd9824a0afed22b9a47131fd3ebc6009 | [
"MIT"
] | 442 | 2017-03-03T11:42:11.000Z | 2021-05-20T13:40:02.000Z | include/Core/Tiles/Tileset.hpp | Sygmei/ObEngine | 881b1471cd9824a0afed22b9a47131fd3ebc6009 | [
"MIT"
] | 308 | 2017-02-21T10:39:31.000Z | 2021-05-14T21:30:56.000Z | include/Core/Tiles/Tileset.hpp | Sygmei/ObEngine | 881b1471cd9824a0afed22b9a47131fd3ebc6009 | [
"MIT"
] | 45 | 2017-03-11T15:24:28.000Z | 2021-05-09T15:21:42.000Z | #pragma once
#include <map>
#include <SFML/Graphics/VertexArray.hpp>
#include <Graphics/RenderTarget.hpp>
#include <Graphics/Texture.hpp>
#include <Scene/Camera.hpp>
#include <Types/Identifiable.hpp>
#include <Types/Serializable.hpp>
namespace obe::Tiles
{
class Tileset : public Types::Identifiable
{
pr... | 32.079365 | 100 | 0.660564 |
017768daea06f2b3bad9fa5c4261f7da65f3a67a | 5,330 | cpp | C++ | mainprograms/TestTwoDProblem.cpp | Kauehenrik/FemCourseEigenClass2021 | d4927d92b541fdd2b2aa1fa424a413dd561ae96e | [
"MIT"
] | 1 | 2021-06-12T13:21:51.000Z | 2021-06-12T13:21:51.000Z | mainprograms/TestTwoDProblem.cpp | Kauehenrik/FemCourseEigenClass2021 | d4927d92b541fdd2b2aa1fa424a413dd561ae96e | [
"MIT"
] | null | null | null | mainprograms/TestTwoDProblem.cpp | Kauehenrik/FemCourseEigenClass2021 | d4927d92b541fdd2b2aa1fa424a413dd561ae96e | [
"MIT"
] | null | null | null |
//
// TestOneDProblem.cpp MODIFICADO DO ORIGINAL
// FemSC
//
// Created by Eduardo Ferri on 08/17/15.
//
//
//TestOneDProblem cpp
// Os testes foram preparados com um proposito educacional,
// recomenda-se que o aluno entenda a funcionalidade de cada
// teste e posteriormente use com seu cÛdigo caso a caso
// ... | 31.538462 | 536 | 0.593246 |
0177e04f79e8bbcea39736ba26a1a8493ddd5140 | 683 | cxx | C++ | tests/test_utils.cxx | hiroshin-dev/cxxplug | 5d55a0424391301221a765f978d76fc702d33dd2 | [
"MIT"
] | null | null | null | tests/test_utils.cxx | hiroshin-dev/cxxplug | 5d55a0424391301221a765f978d76fc702d33dd2 | [
"MIT"
] | null | null | null | tests/test_utils.cxx | hiroshin-dev/cxxplug | 5d55a0424391301221a765f978d76fc702d33dd2 | [
"MIT"
] | null | null | null | ///
/// Copyright (c) 2022 Hiroshi Nakashima
///
/// This software is released under the MIT License, see LICENSE.
///
#include "gtest/gtest.h"
#include "cxxplug/cxxplug.hxx"
TEST(utils, get_environment) {
{
const auto value = cxxplug::get_environment("TEST_ENVIRONMENT");
EXPECT_EQ(value, "test-environment"... | 22.766667 | 73 | 0.688141 |
0178901bb980db888ea41e06293f16fbc51d45bf | 758 | cpp | C++ | 16. Heap/top_k _frequent_eleemnt.cpp | Ujjawalgupta42/Hacktoberfest2021-DSA | eccd9352055085973e3d6a1feb10dd193905584b | [
"MIT"
] | 225 | 2021-10-01T03:09:01.000Z | 2022-03-11T11:32:49.000Z | 16. Heap/top_k _frequent_eleemnt.cpp | Ujjawalgupta42/Hacktoberfest2021-DSA | eccd9352055085973e3d6a1feb10dd193905584b | [
"MIT"
] | 252 | 2021-10-01T03:45:20.000Z | 2021-12-07T18:32:46.000Z | 16. Heap/top_k _frequent_eleemnt.cpp | Ujjawalgupta42/Hacktoberfest2021-DSA | eccd9352055085973e3d6a1feb10dd193905584b | [
"MIT"
] | 911 | 2021-10-01T02:55:19.000Z | 2022-02-06T09:08:37.000Z | #define pb push_back
class Solution {
public:
vector<int> topKFrequent(vector<int>& nums, int k) {
vector<int> ans ;
unordered_map<int,int> mp ;
for ( int i =0 ; i<nums.size(); i++)
{
mp[nums[i]] ++ ;
}
//
priority_queue<pair<int,int>... | 25.266667 | 92 | 0.523747 |
017c55c48eca20afad7562e302b57bc3d0b76907 | 831 | cpp | C++ | tests/assert/is-not-null.cpp | njlr/mnmlstc-unittest | 3e48e15730535f258251742efddf556be764e079 | [
"Apache-2.0"
] | 3 | 2015-02-27T04:09:09.000Z | 2021-05-11T16:02:55.000Z | tests/assert/is-not-null.cpp | njlr/mnmlstc-unittest | 3e48e15730535f258251742efddf556be764e079 | [
"Apache-2.0"
] | null | null | null | tests/assert/is-not-null.cpp | njlr/mnmlstc-unittest | 3e48e15730535f258251742efddf556be764e079 | [
"Apache-2.0"
] | 2 | 2017-08-15T12:34:09.000Z | 2020-05-17T07:30:05.000Z | #include <iostream>
#include <memory>
#include <string>
#include <cstdlib>
#include <unittest/assert.hpp>
#include <unittest/error.hpp>
void v1() {
using unittest::v1::error;
namespace assert = unittest::v1::assert;
std::unique_ptr<int> ptr { new int };
try { assert::is_not_null(ptr.release()); }
catch (... | 21.307692 | 65 | 0.583634 |
01801849ac23992dc22a0048d412b27e1b3ea4e8 | 143 | cpp | C++ | main.cpp | SCUTSSE/chatbot | 4ac82e6eeb8d4a158439962b9dcedfa0b7967ddd | [
"MIT"
] | 1 | 2020-05-19T20:17:34.000Z | 2020-05-19T20:17:34.000Z | main.cpp | SCUTSSE/chatbot | 4ac82e6eeb8d4a158439962b9dcedfa0b7967ddd | [
"MIT"
] | null | null | null | main.cpp | SCUTSSE/chatbot | 4ac82e6eeb8d4a158439962b9dcedfa0b7967ddd | [
"MIT"
] | 1 | 2018-07-13T10:22:37.000Z | 2018-07-13T10:22:37.000Z | #include"Chatbot.h"
#include <iostream>
using namespace std;
int main()
{
Tuling xiaoling;
xiaoling.Interface();
return 0;
} | 11.916667 | 23 | 0.643357 |
0181eef46a2b7d6d6418277e17ef875214245fb1 | 7,341 | cc | C++ | chrome/browser/ui/views/autofill/save_card_bubble_views.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | chrome/browser/ui/views/autofill/save_card_bubble_views.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/views/autofill/save_card_bubble_views.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/autofill/save_card_bubble_views.h"
#include <stddef.h>
#include "base/strings/utf_string_conversions.h"
#include "buil... | 34.144186 | 80 | 0.720883 |
01843b26f300477b1298c52eeaa7c67d8a99c897 | 1,232 | cpp | C++ | sandbox/oldies/memtest/memtest.cpp | rboman/progs | c60b4e0487d01ccd007bcba79d1548ebe1685655 | [
"Apache-2.0"
] | 2 | 2021-12-12T13:26:06.000Z | 2022-03-03T16:14:53.000Z | sandbox/oldies/memtest/memtest.cpp | rboman/progs | c60b4e0487d01ccd007bcba79d1548ebe1685655 | [
"Apache-2.0"
] | 5 | 2019-03-01T07:08:46.000Z | 2019-04-28T07:32:42.000Z | sandbox/oldies/memtest/memtest.cpp | rboman/progs | c60b4e0487d01ccd007bcba79d1548ebe1685655 | [
"Apache-2.0"
] | 2 | 2017-12-13T13:13:52.000Z | 2019-03-13T20:08:15.000Z | #include <iostream>
int
memtest()
{
// memtest.cpp ---
long int step = 1024 * 1024;
double *ptr = NULL;
long int lastsiz = 0;
int k = 0;
do
{
long int size = (++k) * step;
std::cout << "trying to allocate "
<< (size * sizeof(double)) / 1024 / 1024;
... | 22 | 77 | 0.417208 |
0184efcc3b5989736813b82f861630e2889a8d41 | 134 | cpp | C++ | first_app.cpp | venim1103/sdl-vulkan-demo | 5c8f36eabf820e3bfb23da0aadb3be6b313a5629 | [
"Apache-2.0"
] | null | null | null | first_app.cpp | venim1103/sdl-vulkan-demo | 5c8f36eabf820e3bfb23da0aadb3be6b313a5629 | [
"Apache-2.0"
] | null | null | null | first_app.cpp | venim1103/sdl-vulkan-demo | 5c8f36eabf820e3bfb23da0aadb3be6b313a5629 | [
"Apache-2.0"
] | null | null | null | #include "first_app.hpp"
namespace vulkan
{
void FirstApp::run()
{
SDL_Event event;
while(!sdlwindow.shouldClose(&event));
}
}
| 10.307692 | 40 | 0.69403 |
0184f99805058d61808eb95383e1f95ac4607084 | 1,013 | cpp | C++ | test/aoj/0560.test.cpp | atree-GitHub/competitive-library | 606b444036530b698a6363b1a41cdaa90a7f9578 | [
"CC0-1.0"
] | 1 | 2022-01-25T23:03:10.000Z | 2022-01-25T23:03:10.000Z | test/aoj/0560.test.cpp | atree4728/competitive-library | 1aaa4d2cf9283b9a1a3d4c7f114ff7b867ca2f8b | [
"CC0-1.0"
] | 6 | 2021-10-06T01:17:04.000Z | 2022-01-16T14:45:47.000Z | test/aoj/0560.test.cpp | atree-GitHub/competitive-library | 606b444036530b698a6363b1a41cdaa90a7f9578 | [
"CC0-1.0"
] | null | null | null | #define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0560"
#include <cassert>
#include <iostream>
#include "lib/data_structure/partial_sum_2D.hpp"
int main() {
using namespace std;
size_t n, m, q;
cin >> n >> m >> q;
vector<string> field(n);
for (auto &&elem: field) cin >> ele... | 32.677419 | 92 | 0.467917 |
01854efcd74250706192739705de9ec6b2d42d42 | 3,151 | cpp | C++ | modules/task_2/kolesin_a_bubblesort/main.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | 1 | 2020-11-20T15:05:12.000Z | 2020-11-20T15:05:12.000Z | modules/task_2/kolesin_a_bubblesort/main.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | 1 | 2021-02-13T03:00:05.000Z | 2021-02-13T03:00:05.000Z | modules/task_2/kolesin_a_bubblesort/main.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | 1 | 2020-10-11T09:11:57.000Z | 2020-10-11T09:11:57.000Z | // Copyright 2020 Kolesin Andrey
#include <gtest-mpi-listener.hpp>
#include <gtest/gtest.h>
#include <stdio.h>
#include <random>
#include <vector>
#include <algorithm>
#include "./bubblesort.h"
TEST(Count_Words, Test_1) {
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
std::vector<int> arr = {1};
paral... | 30.592233 | 86 | 0.569026 |
0188369b84b64e22807211ad007ac4f33e189ef3 | 343 | hpp | C++ | src/sys/house.hpp | Hopobcn/EnTT-Pacman | 5187472419f05b79fa9b92593e85fff7c0ae6ca1 | [
"MIT"
] | null | null | null | src/sys/house.hpp | Hopobcn/EnTT-Pacman | 5187472419f05b79fa9b92593e85fff7c0ae6ca1 | [
"MIT"
] | null | null | null | src/sys/house.hpp | Hopobcn/EnTT-Pacman | 5187472419f05b79fa9b92593e85fff7c0ae6ca1 | [
"MIT"
] | null | null | null | //
// house.hpp
// EnTT Pacman
//
// Created by Indi Kernick on 29/9/18.
// Copyright © 2018 Indi Kernick. All rights reserved.
//
#ifndef SYS_HOUSE_HPP
#define SYS_HOUSE_HPP
#include "util/registry.hpp"
// These systems deal with ghosts entering and leaving the house
void enterHouse(Registry &);
void leaveHous... | 17.15 | 64 | 0.720117 |
01883cbbd16b6b273468c079782dda2d60153503 | 471 | cpp | C++ | src/mnis_bom.cpp | evanodell/mnis | 40d5909ff836654d3618e05597b3047aebc9d737 | [
"MIT"
] | 1 | 2017-10-13T13:08:20.000Z | 2017-10-13T13:08:20.000Z | src/mnis_bom.cpp | evanodell/mnis | 40d5909ff836654d3618e05597b3047aebc9d737 | [
"MIT"
] | 1 | 2018-05-18T12:49:13.000Z | 2021-04-04T15:36:06.000Z | src/mnis_bom.cpp | evanodell/mnis | 40d5909ff836654d3618e05597b3047aebc9d737 | [
"MIT"
] | null | null | null | #include <Rcpp.h>
using namespace Rcpp;
// mnis_bom
//' Strip out BOM from JSON data
//'
//' @param x The GET return to strip BOM out of
//' @export
// [[Rcpp::export]]
std::string mnis_bom(std::string x) {
if (x.size() < 3)
return x;
if (x[0] == '\xEF' && x[1] == '\xBB' && x[2] == '\xBF')
return x.substr... | 16.821429 | 57 | 0.573248 |
018e7beb17ff3ac7140452cde5d3b1849993d0f1 | 21,319 | cc | C++ | build/px4_sitl_default/build_gazebo/MagneticField.pb.cc | amilearning/PX4-Autopilot | c1b997fbc48492689a5f6d0a090d1ea2c7d6c272 | [
"BSD-3-Clause"
] | null | null | null | build/px4_sitl_default/build_gazebo/MagneticField.pb.cc | amilearning/PX4-Autopilot | c1b997fbc48492689a5f6d0a090d1ea2c7d6c272 | [
"BSD-3-Clause"
] | null | null | null | build/px4_sitl_default/build_gazebo/MagneticField.pb.cc | amilearning/PX4-Autopilot | c1b997fbc48492689a5f6d0a090d1ea2c7d6c272 | [
"BSD-3-Clause"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: MagneticField.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "MagneticField.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
... | 36.195246 | 143 | 0.735166 |
018f9341b13ea26fc66097e44c6d3fc1a3347ed6 | 3,657 | cpp | C++ | src/quit.cpp | meelgroup/RoundXOR | c35d7316a46deed7cca0ab7eb314b5aa2ff7d7f7 | [
"MIT"
] | 5 | 2021-10-29T18:39:10.000Z | 2022-03-23T11:53:46.000Z | src/quit.cpp | meelgroup/RoundXOR | c35d7316a46deed7cca0ab7eb314b5aa2ff7d7f7 | [
"MIT"
] | 1 | 2022-02-09T10:56:21.000Z | 2022-02-09T10:56:30.000Z | src/quit.cpp | meelgroup/linpb | c35d7316a46deed7cca0ab7eb314b5aa2ff7d7f7 | [
"MIT"
] | null | null | null | /***********************************************************************
Copyright (c) 2014-2020, Jan Elffers
Copyright (c) 2019-2020, Jo Devriendt
Copyright (c) 2020, Stephan Gocht
Parts of the code were copied or adapted from MiniSat.
MiniSat -- Copyright (c) 2003-2006, Niklas Een, Niklas Sorensson
Copyr... | 36.57 | 93 | 0.67405 |
0192040515727a93065c7763efdbbe306a22e3e9 | 2,270 | cpp | C++ | OS/linux.cpp | partouf/GoPiGoCPP | b0605953cf5f810d7452b2a0d0592cd6715403d7 | [
"MIT"
] | 1 | 2016-03-08T13:30:39.000Z | 2016-03-08T13:30:39.000Z | OS/linux.cpp | partouf/GoPiGoCPP | b0605953cf5f810d7452b2a0d0592cd6715403d7 | [
"MIT"
] | null | null | null | OS/linux.cpp | partouf/GoPiGoCPP | b0605953cf5f810d7452b2a0d0592cd6715403d7 | [
"MIT"
] | null | null | null | #include "linux.h"
#include <stdio.h>
#include <stdlib.h>
#include <linux/i2c-dev.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdexcept>
#include <string>
GoPiGo::LinuxBoard::LinuxBoard(int AI2CDeviceNumber) : IBoard()
{
this->I2CDevice... | 17.734375 | 92 | 0.629075 |
0193187f81e58e37d72b74708ccfa30e9e8df82d | 922 | cpp | C++ | old/programs/cpp/roguelike.cpp | andruwne/druw2000.github.io | bbae45eb135ee25dd8d64c12ab9af69306388994 | [
"MIT"
] | null | null | null | old/programs/cpp/roguelike.cpp | andruwne/druw2000.github.io | bbae45eb135ee25dd8d64c12ab9af69306388994 | [
"MIT"
] | 1 | 2018-04-10T02:33:32.000Z | 2018-04-10T02:33:32.000Z | old/programs/cpp/roguelike.cpp | Druw2000/src | bbae45eb135ee25dd8d64c12ab9af69306388994 | [
"MIT"
] | 1 | 2019-02-22T22:12:26.000Z | 2019-02-22T22:12:26.000Z | /* It would be cool to try out ncurses library and line drawing characters
U+2550 ═
U+2551 ║
U+2554 ╔
U+2557 ╗
U+255A ╚
U+255D ╝
U+2560 ╠
U+2563 ╣
U+2566 ╦
U+2569 ╩
U+256C ╬
*/
#include <iostream>
#include <fstream>
#include <string>
#include <chrono>
using namespace std;
int room();
class rand_int;
int main (int a... | 19.617021 | 77 | 0.616052 |
0197d688542c3d7014675a027dc5e9ae40b81266 | 8,257 | cpp | C++ | converter.cpp | jackMilano/QT-Converter | 8089f1b028dee223bc536788789ca7aa96d44b95 | [
"MIT"
] | null | null | null | converter.cpp | jackMilano/QT-Converter | 8089f1b028dee223bc536788789ca7aa96d44b95 | [
"MIT"
] | null | null | null | converter.cpp | jackMilano/QT-Converter | 8089f1b028dee223bc536788789ca7aa96d44b95 | [
"MIT"
] | null | null | null | #include "converter.h"
#include "ui_converter.h"
#include <QComboBox>
#include <QEventLoop>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QVector>
#include <QtWidgets>
#include <cmath>
#include <iostream>
Converter::Converter(QWidget *parent) :
QMainWindow(parent),
_ui(new Ui::Converter)... | 28.870629 | 127 | 0.675669 |
019885849c6e40616f80020631204cd3811ae869 | 14,162 | cpp | C++ | graphicspiece.cpp | 0yinf/Klotski | df3c3d6ea58d936e059b31c614bdafebd88e70ec | [
"MIT"
] | 2 | 2017-09-17T16:16:15.000Z | 2017-09-17T16:16:18.000Z | graphicspiece.cpp | 0yinf/Klotski | df3c3d6ea58d936e059b31c614bdafebd88e70ec | [
"MIT"
] | 1 | 2017-09-21T08:27:20.000Z | 2017-09-21T08:27:20.000Z | graphicspiece.cpp | 0yinf/Klotski | df3c3d6ea58d936e059b31c614bdafebd88e70ec | [
"MIT"
] | 3 | 2017-09-13T02:44:46.000Z | 2017-09-17T05:41:11.000Z | //#define IGNORE_VALID_MOVES
#define MOVE_SYNC_THRESHOLD 0.6
//#define MOVE_DIRECTION_LIMIT_CANCEL_THRESHOLD 0.03
#include "common.h"
#include "graphicspiece.h"
#include "move.h"
#include <QPainter>
#include <QWidget>
#include <QGraphicsScene>
#include <QDebug>
#include <QGraphicsSceneMouseEvent>
#include <QSequenti... | 33.961631 | 116 | 0.59695 |
0199c6f043091081dc9b62b0896afc710cd495d8 | 2,333 | cpp | C++ | luna2d/platform/wp/lunawplog.cpp | stepanp/luna2d | b9dbec8cabaaf4c3c0a4f99720350d25a8b42fcf | [
"MIT"
] | 30 | 2015-01-06T20:42:55.000Z | 2022-01-12T01:46:47.000Z | luna2d/platform/wp/lunawplog.cpp | stepanp/luna2d | b9dbec8cabaaf4c3c0a4f99720350d25a8b42fcf | [
"MIT"
] | null | null | null | luna2d/platform/wp/lunawplog.cpp | stepanp/luna2d | b9dbec8cabaaf4c3c0a4f99720350d25a8b42fcf | [
"MIT"
] | 13 | 2016-04-26T15:42:44.000Z | 2022-03-21T02:40:58.000Z | //-----------------------------------------------------------------------------
// luna2d engine
// Copyright 2014-2017 Stepan Prokofjev
//
// 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 ... | 28.802469 | 86 | 0.676382 |
019ded58dc8cb5bb2ae9c8f747fb644d00efffe2 | 431 | hpp | C++ | Hurrican/src/enemies/Gegner_Diamant.hpp | s1eve-mcdichae1/Hurrican | 3ed6ff9ee94d2ea2b79e451466d28f06d58acf19 | [
"MIT"
] | 21 | 2018-04-13T10:45:45.000Z | 2022-03-29T14:53:43.000Z | Hurrican/src/enemies/Gegner_Diamant.hpp | s1eve-mcdichae1/Hurrican | 3ed6ff9ee94d2ea2b79e451466d28f06d58acf19 | [
"MIT"
] | 10 | 2018-07-03T02:08:44.000Z | 2021-05-17T16:13:21.000Z | Hurrican/src/enemies/Gegner_Diamant.hpp | s1eve-mcdichae1/Hurrican | 3ed6ff9ee94d2ea2b79e451466d28f06d58acf19 | [
"MIT"
] | 3 | 2021-10-08T12:35:05.000Z | 2022-03-03T06:03:49.000Z | #ifndef _GEGNER_DIAMANT_H
#define _GEGNER_DIAMANT_H
#include "GegnerClass.hpp"
#include "Gegner_Stuff.hpp"
class GegnerDiamant : public GegnerClass {
public:
GegnerDiamant(int Wert1,
int Wert2, // Konstruktor
bool Light);
void GegnerExplode() override; // Gegner explodi... | 25.352941 | 95 | 0.672854 |
019e2d5982570cba05a08d57a7d44f0e0ca3a6c1 | 1,231 | cpp | C++ | playground/meta-programming/if-else.cpp | llHoYall/Cpp_Playground | 3f50237c7530e31be571e67ad2a627d1f33bbf51 | [
"MIT"
] | null | null | null | playground/meta-programming/if-else.cpp | llHoYall/Cpp_Playground | 3f50237c7530e31be571e67ad2a627d1f33bbf51 | [
"MIT"
] | null | null | null | playground/meta-programming/if-else.cpp | llHoYall/Cpp_Playground | 3f50237c7530e31be571e67ad2a627d1f33bbf51 | [
"MIT"
] | null | null | null | /*******************************************************************************
* @brief Template Meta programming: If-Else
* @author llHoYall <hoya128@gmail.com>
* @version v1.0
* @history
* 2018.12.29 Created.
******************************************************************************/
/* Include Header... | 24.62 | 80 | 0.434606 |
019e9cff3c65cc2e178cb19d59c226d7d94b6a88 | 456 | hpp | C++ | courses/compilation/cpp/dnn/step_2/include/dnn/propagation.hpp | JohanMabille/MAP586 | d20e01f101ff3f57c96129833835a1cd46071a6d | [
"BSD-3-Clause"
] | 4 | 2022-01-28T15:55:49.000Z | 2022-02-15T12:14:32.000Z | courses/compilation/cpp/dnn/step_2/include/dnn/propagation.hpp | JohanMabille/MAP586 | d20e01f101ff3f57c96129833835a1cd46071a6d | [
"BSD-3-Clause"
] | null | null | null | courses/compilation/cpp/dnn/step_2/include/dnn/propagation.hpp | JohanMabille/MAP586 | d20e01f101ff3f57c96129833835a1cd46071a6d | [
"BSD-3-Clause"
] | 3 | 2021-12-27T08:57:07.000Z | 2022-01-17T22:22:02.000Z | #ifndef DNN_PROPAGATION
#define DNN_PROPAGATION
#include "types.hpp"
namespace dnn
{
void forward_propagation(const array_t& input, const weights_t& weights, matrix_t& aggregation, matrix_t& activation);
void backward_propagation(const array_t& input, const array_t& expected,
con... | 35.076923 | 122 | 0.688596 |
019ed6cc10cfeca30386e45142fbed1c86a29e88 | 3,553 | cpp | C++ | Povox/src/Povox/Renderer/RayTracing/RayTracerTesting.cpp | PowerOfNames/PonX | cac2c67168857409b40f9f76e9570868668370fd | [
"Apache-2.0"
] | null | null | null | Povox/src/Povox/Renderer/RayTracing/RayTracerTesting.cpp | PowerOfNames/PonX | cac2c67168857409b40f9f76e9570868668370fd | [
"Apache-2.0"
] | null | null | null | Povox/src/Povox/Renderer/RayTracing/RayTracerTesting.cpp | PowerOfNames/PonX | cac2c67168857409b40f9f76e9570868668370fd | [
"Apache-2.0"
] | null | null | null | #include "pxpch.h"
#include "Povox/Renderer/RayTracing/RayTracerTesting.h"
#include "Povox/Renderer/RenderCommand.h"
#include "Povox/Renderer/VertexArray.h"
#include "Povox/Renderer/Texture.h"
namespace Povox {
struct TracerData
{
Ref<VertexArray> VertexArray;
Ref<Shader> RayMarchingShader;
Ref<Texture> ... | 28.653226 | 143 | 0.723614 |
019ee8efe8f3ac6ac6a1188e277b8ecde4de275b | 7,839 | cxx | C++ | tests/test_string_algo.cxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | tests/test_string_algo.cxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | tests/test_string_algo.cxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | /*
* Copyright (c) 2019, 2020, 2021 SiKol Ltd.
* Distributed under the Boost Software License, Version 1.0.
*/
#include <string>
#include <vector>
#include <catch2/catch.hpp>
#include <ivy/charenc/utf32.hxx>
#include <ivy/regex.hxx>
#include <ivy/string/join.hxx>
#include <ivy/string/match.hxx>
#inc... | 27.699647 | 80 | 0.60148 |
019f4e5b9a6bfc4569ad707f56c4bd5e2d12f115 | 5,964 | cpp | C++ | demos/gravitygizmo/src/player.cpp | leftidev/leng | 9df738a9f5d8f90d2a01234d4d4b13311017d93e | [
"MIT"
] | null | null | null | demos/gravitygizmo/src/player.cpp | leftidev/leng | 9df738a9f5d8f90d2a01234d4d4b13311017d93e | [
"MIT"
] | null | null | null | demos/gravitygizmo/src/player.cpp | leftidev/leng | 9df738a9f5d8f90d2a01234d4d4b13311017d93e | [
"MIT"
] | null | null | null | #include "player.h"
#include <iostream>
namespace leng {
Player::Player(float x, float y, float width, float height, const std::string& path) : Entity(x, y, width, height, path) {
upHeld = false;
downHeld = false;
rightHeld = false;
leftHeld = false;
inAir = true;
jumped = true;
canDouble... | 22.088889 | 134 | 0.598592 |
01a0efd0f8c35898ee28b2f5badd32cbed94b497 | 1,728 | cpp | C++ | CPlusPlus/UserDefinedTypes/struct_particles.cpp | stijnvanhoey/training-material | d8e23c2aefaaafbd6a6d5e059147831c651f21ec | [
"CC0-1.0"
] | null | null | null | CPlusPlus/UserDefinedTypes/struct_particles.cpp | stijnvanhoey/training-material | d8e23c2aefaaafbd6a6d5e059147831c651f21ec | [
"CC0-1.0"
] | null | null | null | CPlusPlus/UserDefinedTypes/struct_particles.cpp | stijnvanhoey/training-material | d8e23c2aefaaafbd6a6d5e059147831c651f21ec | [
"CC0-1.0"
] | 1 | 2019-01-07T22:45:34.000Z | 2019-01-07T22:45:34.000Z | #include <cmath>
#include <functional>
#include <iostream>
#include <random>
using namespace std;
struct Particle {
double x, y, z;
double mass;
};
Particle init_particle(function<double()> pos_distr,
function<double()> mass_distr);
void move_particle(Particle& p, double dx, double dy,... | 27 | 72 | 0.570023 |
01a3a615852f421a860e6011a67dc0de0036e85a | 294 | cpp | C++ | All_code/67.cpp | jnvshubham7/cpp-programming | 7d00f4a3b97b9308e337c5d3547fd3edd47c5e0b | [
"Apache-2.0"
] | 1 | 2021-12-22T12:37:36.000Z | 2021-12-22T12:37:36.000Z | All_code/67.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | All_code/67.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
long long int a[n];
int sum=0;
for(int i=0;i<n;i++){
cin>>a[i];
sum=sum+a[i];
}
cout<<sum;
return 0;
}
| 14 | 38 | 0.482993 |
01a6e736f7d9374023cc774afc226b6bc2eef20d | 4,794 | tpp | C++ | hardware/libraries/TinyGSM-master/src/TinyGsmGSMLocation.tpp | oscillator25/saaf-water | 909edd23eaa3a57c80ccfcebcb0a735305389088 | [
"Apache-2.0"
] | 32 | 2021-09-10T17:17:02.000Z | 2022-03-03T11:01:38.000Z | hardware/libraries/TinyGSM-master/src/TinyGsmGSMLocation.tpp | oscillator25/saaf-water | 909edd23eaa3a57c80ccfcebcb0a735305389088 | [
"Apache-2.0"
] | 1 | 2021-07-31T14:45:56.000Z | 2021-07-31T14:46:32.000Z | hardware/libraries/TinyGSM-master/src/TinyGsmGSMLocation.tpp | oscillator25/saaf-water | 909edd23eaa3a57c80ccfcebcb0a735305389088 | [
"Apache-2.0"
] | 6 | 2021-11-18T05:59:46.000Z | 2022-01-09T09:18:37.000Z | /**
* @file TinyGsmGSMLocation.h
* @author Volodymyr Shymanskyy
* @license LGPL-3.0
* @copyright Copyright (c) 2016 Volodymyr Shymanskyy
* @date Nov 2016
*/
#ifndef SRC_TINYGSMGSMLOCATION_H_
#define SRC_TINYGSMGSMLOCATION_H_
#include "TinyGsmCommon.h"
#define TINY_GSM_MODEM_HAS_GSM_LOCATION... | 31.96 | 80 | 0.583438 |
01a7c79f1c5b69a783f597b7707f36eb1668bac3 | 725 | cpp | C++ | examples/simple/simple.cpp | leegang/WifiConfig | e49f1e641e050e2ea207636cac6e8c77829c8672 | [
"MIT"
] | 6 | 2019-06-19T09:42:59.000Z | 2022-02-23T23:11:20.000Z | examples/simple/simple.cpp | leegang/WifiConfig | e49f1e641e050e2ea207636cac6e8c77829c8672 | [
"MIT"
] | 3 | 2019-05-22T14:56:05.000Z | 2020-09-29T03:28:04.000Z | examples/simple/simple.cpp | leegang/WifiConfig | e49f1e641e050e2ea207636cac6e8c77829c8672 | [
"MIT"
] | 4 | 2019-05-22T14:52:45.000Z | 2020-09-08T09:12:22.000Z | #include <Arduino.h>
#include <WiFiConfig.h>
struct Config
{
char name[20] = {0};
bool enabled = false;
int hour = 0;
} config;
ConfigManager configManager;
void setup()
{
Serial.begin(115200);
configManager.setAPName("Config Demo");
configManager.setAPFilename("/index.html");
configMa... | 20.714286 | 108 | 0.664828 |
01ab1d194ef773e9550ad4b8bdfef6e9358c50f7 | 13,862 | cpp | C++ | src/core/Application.cpp | lutrarutra/trafsim | 05e87b263b48e39d63f699dcaa456f10ca61e9a4 | [
"Apache-2.0"
] | 12 | 2019-12-28T21:45:23.000Z | 2022-03-28T12:40:44.000Z | src/core/Application.cpp | lutrarutra/trafsim | 05e87b263b48e39d63f699dcaa456f10ca61e9a4 | [
"Apache-2.0"
] | null | null | null | src/core/Application.cpp | lutrarutra/trafsim | 05e87b263b48e39d63f699dcaa456f10ca61e9a4 | [
"Apache-2.0"
] | 1 | 2021-05-31T10:22:41.000Z | 2021-05-31T10:22:41.000Z | #include "Application.hpp"
#include <memory>
#include <iostream>
#include <string>
#include <utility>
#include "imgui.h"
#include "imgui-SFML.h"
#include "imgui_internal.h"
#include "trafficsim/RoadTile.hpp"
#include "trafficsim/StraightRoad.hpp"
#include "trafficsim/RoadIntersection.hpp"
#include "trafficsim/RoadTr... | 38.292818 | 171 | 0.608931 |
01abc6bf05dae881136da2cea20d766c99ee050a | 529 | cpp | C++ | utils.cpp | VietaFan/backgammon-probs | 0752be1d055bf9f583044323744cc7fe2d65a75b | [
"Apache-2.0"
] | null | null | null | utils.cpp | VietaFan/backgammon-probs | 0752be1d055bf9f583044323744cc7fe2d65a75b | [
"Apache-2.0"
] | null | null | null | utils.cpp | VietaFan/backgammon-probs | 0752be1d055bf9f583044323744cc7fe2d65a75b | [
"Apache-2.0"
] | null | null | null | #include "utils.h"
int choose_dp[50][50];
int combin_diffs[20][20][20];
void init_choosedp(int maxn) {
for (int i=0; i<maxn; ++i) {
choose_dp[0][i] = 0;
choose_dp[i][0] = 1;
}
for (int i=1; i<maxn; ++i) {
for (int j=1; j<=i; ++j)
choose_dp[i][j] = choose_dp[i-1][j]+choose_dp[i-1][j-1];
choose_dp[i][i+1] =... | 25.190476 | 66 | 0.565217 |
01aedd45e7ea4136002fda83b4302b5bbd28ae42 | 66 | cpp | C++ | test/query-manager/Runner.cpp | izenecloud/sf1r-lite | 8de9aa83c38c9cd05a80b216579552e89609f136 | [
"Apache-2.0"
] | 77 | 2015-02-12T20:59:20.000Z | 2022-03-05T18:40:49.000Z | test/query-manager/Runner.cpp | fytzzh/sf1r-lite | 8de9aa83c38c9cd05a80b216579552e89609f136 | [
"Apache-2.0"
] | 1 | 2017-04-28T08:55:47.000Z | 2017-07-10T10:10:53.000Z | test/query-manager/Runner.cpp | fytzzh/sf1r-lite | 8de9aa83c38c9cd05a80b216579552e89609f136 | [
"Apache-2.0"
] | 33 | 2015-01-05T03:03:05.000Z | 2022-02-06T04:22:46.000Z | #define BOOST_TEST_MODULE Query Manager
#include "TestRunner.inl"
| 22 | 39 | 0.833333 |
01b0d628d63692a37ac776da1c881343806e3b6e | 105,658 | cpp | C++ | Remote.cpp | kengonakajima/moyai | 70077449eb2446de6c24de928050ad8affc6df3d | [
"Zlib"
] | 37 | 2015-07-23T04:02:51.000Z | 2021-09-23T08:39:12.000Z | Remote.cpp | kengonakajima/moyai | 70077449eb2446de6c24de928050ad8affc6df3d | [
"Zlib"
] | 1 | 2018-08-30T08:33:38.000Z | 2018-08-30T08:33:38.000Z | Remote.cpp | kengonakajima/moyai | 70077449eb2446de6c24de928050ad8affc6df3d | [
"Zlib"
] | 8 | 2015-07-23T04:02:58.000Z | 2020-11-10T14:52:12.000Z | #include "common.h"
#include "client.h"
#include "Remote.h"
#include "JPEGCoder.h"
#include "crc32.h"
#ifdef USE_UNTZ
#include "threading/Threading.h" // To implement lock around send buffer inside libuv
RCriticalSection g_lock;
#endif
#include "ConvertUTF.h"
////////
void Moyai::globalInitNetwork() {
static ... | 41.548565 | 214 | 0.627326 |
01b2d5c9761b9d2cb889fb82409aab565a58c758 | 14,524 | cpp | C++ | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8SVGPathSegCurvetoCubicRel.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8SVGPathSegCurvetoCubicRel.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8SVGPathSegCurvetoCubicRel.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.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.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8SVGPathSegCurvetoCubicRel.h"
#include "bind... | 47.464052 | 326 | 0.774649 |
01b356052faac528613ddedb53d87ecf6305400a | 96,356 | cpp | C++ | ref-impl/src/impl/ImplAAFDictionary.cpp | Phygon/aaf | faef720e031f501190481e1d1fc1870a7dc8f98b | [
"Linux-OpenIB"
] | null | null | null | ref-impl/src/impl/ImplAAFDictionary.cpp | Phygon/aaf | faef720e031f501190481e1d1fc1870a7dc8f98b | [
"Linux-OpenIB"
] | null | null | null | ref-impl/src/impl/ImplAAFDictionary.cpp | Phygon/aaf | faef720e031f501190481e1d1fc1870a7dc8f98b | [
"Linux-OpenIB"
] | null | null | null | //=---------------------------------------------------------------------=
//
// $Id$ $Name$
//
// The contents of this file are subject to the AAF SDK Public Source
// License Agreement Version 2.0 (the "License"); You may not use this
// file except in compliance with the License. The License is available
// in AAFSD... | 27.720368 | 144 | 0.682708 |
01b3e55d56db4c26698eff448438f681cbfc80e6 | 1,473 | cc | C++ | chapter-acceleration/openmp/offload-case-studies/case5.cc | Mark1626/road-to-plus-plus | 500db757051e32e6ccd144b70171c826527610d4 | [
"CC0-1.0"
] | 1 | 2021-07-04T12:41:16.000Z | 2021-07-04T12:41:16.000Z | chapter-acceleration/openmp/offload-case-studies/case5.cc | Mark1626/road-to-plus-plus | 500db757051e32e6ccd144b70171c826527610d4 | [
"CC0-1.0"
] | null | null | null | chapter-acceleration/openmp/offload-case-studies/case5.cc | Mark1626/road-to-plus-plus | 500db757051e32e6ccd144b70171c826527610d4 | [
"CC0-1.0"
] | null | null | null | #include <cmath>
#include <cstdio>
// static const int waveletsize = 3;
// static const int size = 6;
class HaarWavelet {
public:
static const int waveletsize = 3;
static const int size = 6;
double wavelet[waveletsize] = {0.0, 1.0 / 2.0, 1.0 / 2.0};
double sigmafactors[size + 1] = {1.00000000000, 7.07167810e-... | 26.781818 | 79 | 0.619823 |
01bdd4f02548e24a34c2e63f51fc3ff6bfc8f172 | 29,130 | cpp | C++ | boolean_network/cudd_bnet.cpp | tonyfloatersu/simulator | 78dc09c6a704a7e9e0ffd3ad7f33f7b71971a773 | [
"MIT"
] | 1 | 2020-10-28T15:15:03.000Z | 2020-10-28T15:15:03.000Z | boolean_network/cudd_bnet.cpp | SJTU-ECTL/simulator | 78dc09c6a704a7e9e0ffd3ad7f33f7b71971a773 | [
"MIT"
] | null | null | null | boolean_network/cudd_bnet.cpp | SJTU-ECTL/simulator | 78dc09c6a704a7e9e0ffd3ad7f33f7b71971a773 | [
"MIT"
] | null | null | null | /**
@file
@ingroup nanotrav
@brief Functions to read in a boolean network.
@author Fabio Somenzi
@copyright@parblock
Copyright (c) 1995-2015, Regents of the University of Colorado
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted ... | 28.199419 | 79 | 0.545383 |
01c16f4db4d5265ce125f3556cb43e5b3dc33ea8 | 2,068 | cpp | C++ | src/Socket.cpp | vhyz/requests | 5937c84f9c9e0fe6d24641126ddfc09ebaed6469 | [
"MIT"
] | null | null | null | src/Socket.cpp | vhyz/requests | 5937c84f9c9e0fe6d24641126ddfc09ebaed6469 | [
"MIT"
] | null | null | null | src/Socket.cpp | vhyz/requests | 5937c84f9c9e0fe6d24641126ddfc09ebaed6469 | [
"MIT"
] | null | null | null | //
// Created by vhyz on 19-5-12.
//
#include "Socket.h"
#include <strings.h>
#include <zconf.h>
void Socket::send(const std::string &s) { send(s.c_str(), s.size()); }
void Socket::send(const char *msg, ssize_t n) {
buffer.writeNBytes((void *)msg, n);
}
int Socket::recv(char *p, ssize_t n) { return buffer.readB... | 26.177215 | 80 | 0.591876 |
01c21c7a16d17914f565eb5eccb68e4788672333 | 9,864 | cpp | C++ | src/utils/BCSimConvenience.cpp | sigurdstorve/OpenBCSim | 500025c1b63bc6ff083cbd649771d1b98e3f7314 | [
"BSD-3-Clause"
] | 17 | 2016-05-27T13:09:19.000Z | 2022-03-21T07:08:47.000Z | src/utils/BCSimConvenience.cpp | rojsc/OpenBCSim | 53773172974ad42fc3faceb7b36611573abf1c4c | [
"BSD-3-Clause"
] | 63 | 2015-09-10T11:22:56.000Z | 2021-05-21T14:52:39.000Z | src/utils/BCSimConvenience.cpp | rojsc/OpenBCSim | 53773172974ad42fc3faceb7b36611573abf1c4c | [
"BSD-3-Clause"
] | 15 | 2016-07-26T14:52:18.000Z | 2022-01-02T15:52:28.000Z | /*
Copyright (c) 2015, Sigurd Storve
All rights reserved.
Licensed under the BSD license.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, th... | 44.233184 | 136 | 0.686942 |
01c4459a7f9bb4ac7d43ac46f2adf3af5b923cde | 3,241 | cpp | C++ | hihope_neptune-oh_hid/00_src/v0.1/foundation/graphic/ui/test/unittest/font/ui_font_unit_test.cpp | dawmlight/vendor_oh_fun | bc9fb50920f06cd4c27399f60076f5793043c77d | [
"Apache-2.0"
] | 1 | 2022-02-15T08:51:55.000Z | 2022-02-15T08:51:55.000Z | hihope_neptune-oh_hid/00_src/v0.1/foundation/graphic/ui/test/unittest/font/ui_font_unit_test.cpp | dawmlight/vendor_oh_fun | bc9fb50920f06cd4c27399f60076f5793043c77d | [
"Apache-2.0"
] | null | null | null | hihope_neptune-oh_hid/00_src/v0.1/foundation/graphic/ui/test/unittest/font/ui_font_unit_test.cpp | dawmlight/vendor_oh_fun | bc9fb50920f06cd4c27399f60076f5793043c77d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020-2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 29.733945 | 79 | 0.73465 |
01c4bb3f0706119a5b8d4925a18a5d136aad9c19 | 160 | cpp | C++ | 11Libraries/HelloLibrary.cpp | rianders/2016IntroToProgramming | 0e24b2b58c5be2e4d40d3b31b83518c48df5804e | [
"Apache-2.0"
] | 3 | 2016-01-27T18:12:40.000Z | 2016-02-03T20:27:19.000Z | 11Libraries/HelloLibrary.cpp | rianders/2016IntroToProgramming | 0e24b2b58c5be2e4d40d3b31b83518c48df5804e | [
"Apache-2.0"
] | 3 | 2016-03-21T02:18:52.000Z | 2016-03-21T03:02:51.000Z | 11Libraries/HelloLibrary.cpp | rianders/2016IntroToProgramming | 0e24b2b58c5be2e4d40d3b31b83518c48df5804e | [
"Apache-2.0"
] | 16 | 2016-01-27T18:12:41.000Z | 2019-09-15T01:42:28.000Z | #include "HelloLibrary.h"
#include <iostream>
#include <string>
using namespace std;
void HelloWorld() {
cout << "Hello My Library" << endl;
} | 12.307692 | 39 | 0.63125 |
01c6da2cde6ed9650ca85e0e289e61c18db9f890 | 6,289 | cpp | C++ | DiligentSamples/Samples/SampleBase/src/Android/SampleAppAndroid.cpp | raptoravis/defpr | 7335474b09dde91710d7bb2725c06e88d95b86f3 | [
"Apache-2.0"
] | null | null | null | DiligentSamples/Samples/SampleBase/src/Android/SampleAppAndroid.cpp | raptoravis/defpr | 7335474b09dde91710d7bb2725c06e88d95b86f3 | [
"Apache-2.0"
] | null | null | null | DiligentSamples/Samples/SampleBase/src/Android/SampleAppAndroid.cpp | raptoravis/defpr | 7335474b09dde91710d7bb2725c06e88d95b86f3 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2015-2018 Egor Yusov
*
* 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
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARR... | 38.115152 | 137 | 0.575608 |
01c7a3a7f5792c81fd3eb2eb886f2c784d0d78bd | 1,170 | hpp | C++ | include/cutee/macros.hpp | IanHG/cutee | b3b3eba5d78b4871847a5251d311b588e7ba97c0 | [
"MIT"
] | null | null | null | include/cutee/macros.hpp | IanHG/cutee | b3b3eba5d78b4871847a5251d311b588e7ba97c0 | [
"MIT"
] | 12 | 2018-06-18T12:56:33.000Z | 2020-09-08T10:29:29.000Z | include/cutee/macros.hpp | IanHG/cutee | b3b3eba5d78b4871847a5251d311b588e7ba97c0 | [
"MIT"
] | null | null | null | #pragma once
#ifndef CUTEE_MACROS_HPP_INCLUDED
#define CUTEE_MACROS_HPP_INCLUDED
#include "suite.hpp"
#include "float_eq.hpp"
/**
* Assertion Macros
**/
#define UNIT_ASSERT(a, b) \
cutee::asserter::assertt(a, cutee::info{b, __FILE__, __LINE__});
#define UNIT_ASSERT_NOT(a, b) \
cutee::asserter::assert_not(a, ... | 32.5 | 95 | 0.722222 |
01c817ed00701072add5f6d11fe4fc2d0ae003cf | 592 | cpp | C++ | cpp/triangle/triangle.cpp | homembaixinho/exercism | fe145381365c101f8e0c5998180ef4973cd9f4ee | [
"MIT"
] | null | null | null | cpp/triangle/triangle.cpp | homembaixinho/exercism | fe145381365c101f8e0c5998180ef4973cd9f4ee | [
"MIT"
] | null | null | null | cpp/triangle/triangle.cpp | homembaixinho/exercism | fe145381365c101f8e0c5998180ef4973cd9f4ee | [
"MIT"
] | null | null | null | #include "triangle.h"
#include <algorithm>
#include <stdexcept>
#include <vector>
using namespace std;
namespace triangle {
flavor kind(double a, double b, double c) {
// checks for invalid triangles
double smallest = min(min(a,b), c);
double largest = max(max(a,b), c);
if (a + b + c - 2*largest <=... | 19.733333 | 51 | 0.589527 |
01ca1ad888864e8ce50fb68689971ab6ad88eb15 | 115,748 | cpp | C++ | AStyleTest/src/AStyleTest_Format.cpp | a-w/astyle | 8225c7fc9b65162bdd958cabb87eedd9749f1ecd | [
"MIT"
] | null | null | null | AStyleTest/src/AStyleTest_Format.cpp | a-w/astyle | 8225c7fc9b65162bdd958cabb87eedd9749f1ecd | [
"MIT"
] | null | null | null | AStyleTest/src/AStyleTest_Format.cpp | a-w/astyle | 8225c7fc9b65162bdd958cabb87eedd9749f1ecd | [
"MIT"
] | null | null | null | // AStyleTest_Format.cpp
// Copyright (c) 2016 by Jim Pattee <jimp03@email.com>.
// Licensed under the MIT license.
// License.txt describes the conditions under which this software may be distributed.
//----------------------------------------------------------------------------
// headers
//------------------... | 27.170892 | 117 | 0.480276 |
01cb6824755f79a0a0032f5d4891e44773a82ac8 | 2,752 | cc | C++ | device/fido/hid/fido_hid_discovery.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | device/fido/hid/fido_hid_discovery.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | device/fido/hid/fido_hid_discovery.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2017 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 "device/fido/hid/fido_hid_discovery.h"
#include <utility>
#include "base/bind.h"
#include "base/no_destructor.h"
#include "device/fido/hid/fido... | 31.272727 | 78 | 0.731831 |
01cce684c5c58f1a380917ec02e2f24139c17f69 | 1,274 | cpp | C++ | src/segment.cpp | drjod/construct | 0199baf8b56735869b28ae526f78dcca117b2060 | [
"BSD-3-Clause"
] | null | null | null | src/segment.cpp | drjod/construct | 0199baf8b56735869b28ae526f78dcca117b2060 | [
"BSD-3-Clause"
] | null | null | null | src/segment.cpp | drjod/construct | 0199baf8b56735869b28ae526f78dcca117b2060 | [
"BSD-3-Clause"
] | 2 | 2020-03-23T13:08:11.000Z | 2020-04-15T11:27:31.000Z | #include "segment.h"
#include "configuration.h"
#include "utilities.h"
#include <math.h>
namespace contra
{
Resistances Segment::set_resistances(Configuration* configuration)
{
return configuration->set_resistances(casing.get_D(), casing.get_lambda_g());
}
void Segment::set_functions(Piping* piping)
{
Configurati... | 22.75 | 83 | 0.616954 |
01cfe3d0f5b6974abb9d2c5adde1650821f94fe1 | 642 | hpp | C++ | src/include/guinsoodb/parser/statement/vacuum_statement.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-04-22T05:41:54.000Z | 2021-04-22T05:41:54.000Z | src/include/guinsoodb/parser/statement/vacuum_statement.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | null | null | null | src/include/guinsoodb/parser/statement/vacuum_statement.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-12-12T10:24:57.000Z | 2021-12-12T10:24:57.000Z | //===----------------------------------------------------------------------===//
// GuinsooDB
//
// guinsoodb/parser/statement/vacuum_statement.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "guinsoodb/parser/parsed_expression.h... | 22.928571 | 80 | 0.549844 |
01d14832780c7094cd947006b67ddbae23b4e18a | 1,535 | cpp | C++ | src/testlibjsapi_gtkmm/label.cpp | RipcordSoftware/libjsapi | 57369128d9da6eb84ff3b9c5b9791aee4ae34ce4 | [
"MIT"
] | 17 | 2015-04-21T13:24:22.000Z | 2022-01-23T07:17:56.000Z | src/testlibjsapi_gtkmm/label.cpp | RipcordSoftware/libjsapi | 57369128d9da6eb84ff3b9c5b9791aee4ae34ce4 | [
"MIT"
] | 31 | 2015-03-17T16:28:54.000Z | 2018-06-17T02:02:10.000Z | src/testlibjsapi_gtkmm/label.cpp | RipcordSoftware/libjsapi | 57369128d9da6eb84ff3b9c5b9791aee4ae34ce4 | [
"MIT"
] | 4 | 2015-11-16T15:31:24.000Z | 2021-12-28T17:03:53.000Z | #include "label.h"
#include <cstring>
Label::Label(rs::jsapi::Context& cx, Gtk::Label* label) : cx_(cx), obj_(cx), label_(label), widget_(label, obj_) {
auto functions = widget_.GetFunctions();
functions.emplace_back("setText", std::bind(&Label::SetText, this, std::placeholders::_1, std::placeholders::_2));
... | 39.358974 | 118 | 0.633225 |
01d3ad3ae93b6588103d7dd8e00ec56f2386f769 | 159 | hh | C++ | Statement/MySQLStatement.hh | decouple/dbal | ea94dcb215d9693ab81d3be5394ff7448e254380 | [
"MIT"
] | null | null | null | Statement/MySQLStatement.hh | decouple/dbal | ea94dcb215d9693ab81d3be5394ff7448e254380 | [
"MIT"
] | null | null | null | Statement/MySQLStatement.hh | decouple/dbal | ea94dcb215d9693ab81d3be5394ff7448e254380 | [
"MIT"
] | null | null | null | <?hh // strict
use Decouple\Common\Contract\DB\Statement;
interface MySQLStatement extends Statement {
public function fetchColumn(int $column=0) : mixed;
}
| 26.5 | 53 | 0.773585 |
01d409fe2a659c8b80e8da3affb79979ccebb12c | 5,638 | cpp | C++ | src/bridge.cpp | dudpray0220/C-ProxyServer | 40038726b988b21055b17af90b9142fcad2a213c | [
"Apache-2.0"
] | 1 | 2021-11-29T08:11:43.000Z | 2021-11-29T08:11:43.000Z | src/bridge.cpp | dudpray0220/C-ProxyServer | 40038726b988b21055b17af90b9142fcad2a213c | [
"Apache-2.0"
] | null | null | null | src/bridge.cpp | dudpray0220/C-ProxyServer | 40038726b988b21055b17af90b9142fcad2a213c | [
"Apache-2.0"
] | 1 | 2021-12-01T04:45:55.000Z | 2021-12-01T04:45:55.000Z | #include "../inc/bridge.hpp"
// public
namespace yhbae {
bridge::bridge(boost::asio::io_service &ios) // 생성자
: downstream_socket_(ios), upstream_socket_(ios) // 멤버변수 down, upstream_socket에 파라미터를 연결해줌.
{};
bridge::socket_type &yhbae::bridge::downstream_socket() // &를 붙이면 주소가 된다. 멤버함수(Method), soc... | 41.455882 | 146 | 0.622206 |
01d72abac4cfe9609df0fbda7140cbaf0a1f800f | 2,528 | cpp | C++ | async-io-linux-filesystem/AsyncFileReader.cpp | daank94/async-io-linux-filesystem | 6c5a3d2a20913bbb203c5cf2618203c7ae26a569 | [
"MIT"
] | 1 | 2019-12-26T21:07:22.000Z | 2019-12-26T21:07:22.000Z | async-io-linux-filesystem/AsyncFileReader.cpp | daank94/async-io-linux-filesystem | 6c5a3d2a20913bbb203c5cf2618203c7ae26a569 | [
"MIT"
] | null | null | null | async-io-linux-filesystem/AsyncFileReader.cpp | daank94/async-io-linux-filesystem | 6c5a3d2a20913bbb203c5cf2618203c7ae26a569 | [
"MIT"
] | 1 | 2020-01-02T01:27:42.000Z | 2020-01-02T01:27:42.000Z |
#include "AsyncFileReader.h"
#include <sys/epoll.h>
#include <unistd.h>
#include <stdio.h>
AsyncFileReader::AsyncFileReader()
: epoll_fd_(epoll_create1(0)),
stopped_(false)
{
static_assert(EVENT_BUFFER_SIZE > 0, "EVENT_BUFFER_SIZE must be greater than 0");
static_assert(READ_BUFFER_SIZE > 0, "READ_BUFFER_SIZE... | 24.07619 | 172 | 0.730222 |
01daf20c9fab3925dd7c843fd491b5cfa35042df | 977 | cpp | C++ | uva/chapter_3/10341.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | 1 | 2019-05-12T23:41:00.000Z | 2019-05-12T23:41:00.000Z | uva/chapter_3/10341.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | uva/chapter_3/10341.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | #include <cmath>
#include <stdio.h>
#include <iostream>
using namespace std;
int p, q, r, s, t, u;
double f(double x) {
return p * exp(-x) + q * sin(x) + r * cos(x) + s * tan(x) + t * x * x + u;
}
double fd(double x){ // the derivative of function f
return -p*exp(-x) + q*cos(x) - r*sin(x) + s/(cos(x)*cos(x)) ... | 21.23913 | 78 | 0.468782 |
01dd7017a5734ed0acb9fa4079335c1f4ed723f2 | 1,504 | cpp | C++ | main_web.cpp | kooBH/Qt_File_IO | 2a95289f295018ece13665e0bc3112efbe889d8a | [
"Unlicense"
] | null | null | null | main_web.cpp | kooBH/Qt_File_IO | 2a95289f295018ece13665e0bc3112efbe889d8a | [
"Unlicense"
] | 6 | 2019-03-14T11:57:03.000Z | 2019-06-07T10:42:18.000Z | main_web.cpp | kooBH/Qt_File_IO | 2a95289f295018ece13665e0bc3112efbe889d8a | [
"Unlicense"
] | null | null | null | #include <QtWebEngineCore>
#include <QApplication>
#include <QWebEngineView>
#include <QVBoxLayout>
#include <QPushButton>
#include <QWidget>
QUrl commandLineUrlArgument()
{
const QStringList args = QCoreApplication::arguments();
for (const QString &arg : args.mid(1)) {
if (!arg.startsWith(QLatin1Char('-')))
... | 24.258065 | 89 | 0.692154 |
01e23ec8197e816ffb8957afcc85f7b9973b60ef | 3,163 | hpp | C++ | diffsim_torch3d/arcsim/src/physics.hpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | diffsim_torch3d/arcsim/src/physics.hpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | diffsim_torch3d/arcsim/src/physics.hpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
Copyright ©2013 The Regents of the University of California
(Regents). All Rights Reserved. Permission to use, copy, modify, and
distribute this software and its documentation for educational,
research, and not-for-profit purposes, without fee and without a
signed licensing agreement, is hereby granted, pr... | 39.5375 | 98 | 0.669617 |
01e2fc1419df585b6bbda0d311ec4e0ead3faa7e | 2,287 | cpp | C++ | benchmarks/benchmark_ref_counted_ptr.cpp | abu-lib/mem | 9a8a92b53ff079ecae0f8211213f5ed5571d1ed8 | [
"Apache-2.0"
] | null | null | null | benchmarks/benchmark_ref_counted_ptr.cpp | abu-lib/mem | 9a8a92b53ff079ecae0f8211213f5ed5571d1ed8 | [
"Apache-2.0"
] | 1 | 2021-09-26T14:15:33.000Z | 2021-09-26T15:40:32.000Z | benchmarks/benchmark_ref_counted_ptr.cpp | abu-lib/mem | 9a8a92b53ff079ecae0f8211213f5ed5571d1ed8 | [
"Apache-2.0"
] | null | null | null | #include <benchmark/benchmark.h>
#include <cstdlib>
#include <ctime>
#include <memory>
#include "abu/mem.h"
namespace {
static void BM_shared_ptr_int_lifetime(benchmark::State& state) {
std::srand(std::time(nullptr));
int v = std::rand();
for (auto _ : state) {
(void)_;
auto tmp = std::... | 25.131868 | 77 | 0.663314 |
01e399aae29a026843f9751f0769d04e8ba7dc2f | 52,394 | cpp | C++ | source/equation.cpp | LiquidFenrir/CalculaThreeDS | 1f87cdafa639e8289ebf886c6dd0e341c4da6279 | [
"MIT"
] | 10 | 2020-11-08T13:40:44.000Z | 2021-05-19T09:40:53.000Z | source/equation.cpp | LiquidFenrir/CalculaThreeDS | 1f87cdafa639e8289ebf886c6dd0e341c4da6279 | [
"MIT"
] | 2 | 2021-01-18T13:56:08.000Z | 2021-03-11T13:45:05.000Z | source/equation.cpp | LiquidFenrir/CalculaThreeDS | 1f87cdafa639e8289ebf886c6dd0e341c4da6279 | [
"MIT"
] | null | null | null | #include "equation.h"
#include "sprites.h"
#include "text.h"
#include "colors.h"
#include <algorithm>
#include <cmath>
static const Number E_VAL(std::exp(1.0));
static const Number PI_VAL(M_PI);
static const Number I_VAL(0.0, 1.0);
Equation::Equation() : parts(3)
{
parts[0].meta.assoc = 2;
parts[0].meta.speci... | 38.83914 | 236 | 0.492881 |
01e39ce818b54c879e1b196b68ac199bd3856752 | 2,133 | cpp | C++ | Sources/AGEngine/Utils/Frustum.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 47 | 2015-03-29T09:44:25.000Z | 2020-11-30T10:05:56.000Z | Sources/AGEngine/Utils/Frustum.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 313 | 2015-01-01T18:16:30.000Z | 2015-11-30T07:54:07.000Z | Sources/AGEngine/Utils/Frustum.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 9 | 2015-06-07T13:21:54.000Z | 2020-08-25T09:50:07.000Z | #pragma once
#include "Frustum.hh"
#include <glm/glm.hpp>
namespace AGE
{
void Frustum::buildPlanes()
{
_planes[PLANE_NEAR].setCoefficients(
_viewProj[0][2] + _viewProj[0][3],
_viewProj[1][2] + _viewProj[1][3],
_viewProj[2][2] + _viewProj[2][3],
_viewProj[3][2] + _viewProj[3][3]);
_planes[PLANE_FAR... | 23.966292 | 86 | 0.631036 |
01e7355d0093d04bd17cd74177abaa99133bd59e | 20,259 | cpp | C++ | render_algorithms/ripgen-fbo/src/UI.cpp | itsermo/holovideo-algorithms | 6b39f896a8c61d2a82a7314efc583940d685dd55 | [
"BSD-3-Clause"
] | 3 | 2018-02-26T19:53:10.000Z | 2020-01-16T14:30:02.000Z | render_algorithms/ripgen-fbo/src/UI.cpp | itsermo/holovideo-algorithms | 6b39f896a8c61d2a82a7314efc583940d685dd55 | [
"BSD-3-Clause"
] | null | null | null | render_algorithms/ripgen-fbo/src/UI.cpp | itsermo/holovideo-algorithms | 6b39f896a8c61d2a82a7314efc583940d685dd55 | [
"BSD-3-Clause"
] | null | null | null | #include <stdlib.h>
#include <stdio.h>
#include "setupglew.h"
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glxew.h>
//#include <GL/glx.h> //for Nvida Framelock code
#include <GL/glut.h>
#include "JSharedMemory.h"
#include "JSequencer.h"
#include "JDisplayState.h"
#include "RIP.h"
#include "UI.h"
#include "flyR... | 27.982044 | 149 | 0.710203 |
543527a510cb32554b395028916e54e8d894c42f | 775 | cpp | C++ | src/xtd.core/src/xtd/reflection/assembly_title_attribute.cpp | BaderEddineOuaich/xtd | 6f28634c7949a541d183879d2de18d824ec3c8b1 | [
"MIT"
] | 1 | 2022-02-25T16:53:06.000Z | 2022-02-25T16:53:06.000Z | src/xtd.core/src/xtd/reflection/assembly_title_attribute.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | src/xtd.core/src/xtd/reflection/assembly_title_attribute.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | #include "../../../include/xtd/reflection/assembly_title_attribute.h"
using namespace std;
using namespace xtd;
using namespace xtd::reflection;
assembly_title_attribute::assembly_title_attribute(const ustring& title) : title_(title) {
}
assembly_title_attribute::assembly_title_attribute(const ustring& title, const ... | 35.227273 | 124 | 0.79871 |
543567ad7d0c1ef880e252e10dc15d03a3e809d8 | 29,672 | cpp | C++ | applications/physbam/physbam-lib/Public_Library/PhysBAM_Dynamics/Coupled_Driver/PLS_FSI_EXAMPLE.cpp | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 20 | 2017-07-03T19:09:09.000Z | 2021-09-10T02:53:56.000Z | applications/physbam/physbam-lib/Public_Library/PhysBAM_Dynamics/Coupled_Driver/PLS_FSI_EXAMPLE.cpp | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | null | null | null | applications/physbam/physbam-lib/Public_Library/PhysBAM_Dynamics/Coupled_Driver/PLS_FSI_EXAMPLE.cpp | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 9 | 2017-09-17T02:05:06.000Z | 2020-01-31T00:12:01.000Z | //#####################################################################
// Copyright 2004-2007, Ron Fedkiw, Eran Guendelman, Nipun Kwatra, Frank Losasso, Andrew Selle, Tamar Shinar, Jonathan Su, Jerry Talton.
// This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying fil... | 71.155875 | 194 | 0.722365 |
54358998b03fceb71efcc8fb2e66032bb7240d54 | 857 | cpp | C++ | CodeForces/1624/B_Make_AP.cpp | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | null | null | null | CodeForces/1624/B_Make_AP.cpp | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | null | null | null | CodeForces/1624/B_Make_AP.cpp | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
// freopen("input.in", "r", stdin);
ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
int t; cin >> t;
while(t--) {
int a, b, c; cin >> a >> b >> c;
if (a > c) swap(a, c);
int ret = c - a;
int... | 23.162162 | 74 | 0.347725 |
543614d4379119294edb2d06606b2e4da4f4ceee | 755 | cpp | C++ | p636/p636_2.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | 1 | 2019-10-07T05:00:21.000Z | 2019-10-07T05:00:21.000Z | p636/p636_2.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | p636/p636_2.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> exclusiveTime(int n, vector<string>& logs) {
vector<int> res(n);
stack<int> st;
int preTime = 0;
for (int i = 0; i < logs.size(); ++i) {
int pos = logs[i].find(':');
int id = atoi(logs[i].substr(0, pos).c_str());
p... | 23.59375 | 62 | 0.403974 |
543fa89656496c552e0840f549271c1541df4c4e | 865 | cpp | C++ | src/state_vector/state_vector.cpp | libtangle/tools | 4362e5312bcfbe93c912c3f8df9159816003b66e | [
"MIT"
] | 1 | 2019-10-14T05:41:58.000Z | 2019-10-14T05:41:58.000Z | src/state_vector/state_vector.cpp | libtangle/tools | 4362e5312bcfbe93c912c3f8df9159816003b66e | [
"MIT"
] | 1 | 2019-09-15T17:57:43.000Z | 2019-09-16T06:36:19.000Z | src/state_vector/state_vector.cpp | libtangle/tools | 4362e5312bcfbe93c912c3f8df9159816003b66e | [
"MIT"
] | null | null | null | #include "state_vector.h"
#include "omp.h"
#include <iostream>
#include <stdlib.h>
StateVector::StateVector(int num_qubits)
{
this->num_qubits = num_qubits;
this->num_amps = 1L << num_qubits;
// Allocate the required memory for the state vector
std::size_t bytes = num_amps * sizeof(complex);
state... | 22.179487 | 56 | 0.523699 |
5440b08301628ef96e197bf93542acbaa63f2f0f | 1,490 | hpp | C++ | include/prog/sym/func_def.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 14 | 2020-04-14T17:00:56.000Z | 2021-08-30T08:29:26.000Z | include/prog/sym/func_def.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 27 | 2020-12-27T16:00:44.000Z | 2021-08-01T13:12:14.000Z | include/prog/sym/func_def.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 1 | 2020-05-29T18:33:37.000Z | 2020-05-29T18:33:37.000Z | #pragma once
#include "prog/expr/node.hpp"
#include "prog/sym/const_decl_table.hpp"
#include "prog/sym/func_decl_table.hpp"
#include <vector>
namespace prog::sym {
// Function definition. Contains the body of a user-function.
class FuncDef final {
friend class FuncDefTable;
public:
enum class Flags : unsigned in... | 29.8 | 89 | 0.672483 |
5445fbb01d0b541ba8265c0941408dadaf0ef837 | 226 | hpp | C++ | source/platform/windows/defines.hpp | ameisen/gcgg | 6ee9a841ddd88182c235a688e6b7d8894f7af1fe | [
"Apache-2.0"
] | null | null | null | source/platform/windows/defines.hpp | ameisen/gcgg | 6ee9a841ddd88182c235a688e6b7d8894f7af1fe | [
"Apache-2.0"
] | null | null | null | source/platform/windows/defines.hpp | ameisen/gcgg | 6ee9a841ddd88182c235a688e6b7d8894f7af1fe | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cassert>
#define OS Windows
#define __likely(c) (c)
#define __unlikely(c) (c)
#define __unreachable __assume(0)
#define nodefault default: { __unreachable; }
#define xassert(c) assert(c)
| 17.384615 | 46 | 0.69469 |
5446676bcffd729b260e4aba4e25c442da814dc9 | 2,705 | cxx | C++ | src/shared/init_models.cxx | solomonik/ctf | b79428ca8e7a5fa6ef22197ff5129d1aace3134b | [
"BSD-2-Clause"
] | 56 | 2015-02-28T08:19:58.000Z | 2021-11-04T16:46:17.000Z | src/shared/init_models.cxx | solomonik/ctf | b79428ca8e7a5fa6ef22197ff5129d1aace3134b | [
"BSD-2-Clause"
] | 40 | 2015-04-08T14:58:42.000Z | 2017-11-17T20:57:26.000Z | src/shared/init_models.cxx | solomonik/ctf | b79428ca8e7a5fa6ef22197ff5129d1aace3134b | [
"BSD-2-Clause"
] | 17 | 2015-04-03T00:57:43.000Z | 2018-03-30T20:46:14.000Z | namespace CTF_int{
double seq_tsr_spctr_cst_off_k0_init[] = {5.3745E-06, 3.6464E-08, 2.2334E-10};
double seq_tsr_spctr_cst_off_k1_init[] = {5.3745E-06, 3.6464E-08, 2.2334E-10};
double seq_tsr_spctr_cst_off_k2_init[] = {-2.1996E-04, 3.1883E-09, 3.8743E-11};
double seq_tsr_spctr_off_k0_init[] = {8.6970E-06, 4.5598E-11, 1... | 65.97561 | 79 | 0.721257 |
54480537ce43bf919f9db44aa9af3ca8e5844ec5 | 1,009 | cpp | C++ | Project2/GccApplication3/GccApplication3/tests/test012_service_rr.cpp | paulmoon/csc460 | a432cfccef97fca5820cb0fc006112bb773cda0f | [
"MIT"
] | null | null | null | Project2/GccApplication3/GccApplication3/tests/test012_service_rr.cpp | paulmoon/csc460 | a432cfccef97fca5820cb0fc006112bb773cda0f | [
"MIT"
] | null | null | null | Project2/GccApplication3/GccApplication3/tests/test012_service_rr.cpp | paulmoon/csc460 | a432cfccef97fca5820cb0fc006112bb773cda0f | [
"MIT"
] | null | null | null | #ifdef USE_TEST_012
/*
Testing RR tasks subscribing to another RR publisher.
Desired Trace:
T012;0;0;1;1;2;2;3;3;4;4;5;5;6;6;7;7;8;8;9;9;
*/
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "os.h"
#include "uart/uart.h"
#include "trace/trace.h"
#include "../profile... | 18.017857 | 54 | 0.54113 |
544d01213eb9ec71ae3a48c1140790d960edc11c | 6,585 | cpp | C++ | src/maglev/MagLevNull.cpp | mindpowered/maglev-cpp | 8383ed7576202d6d61fcdfb6723a2baa74b8e010 | [
"MIT"
] | null | null | null | src/maglev/MagLevNull.cpp | mindpowered/maglev-cpp | 8383ed7576202d6d61fcdfb6723a2baa74b8e010 | [
"MIT"
] | null | null | null | src/maglev/MagLevNull.cpp | mindpowered/maglev-cpp | 8383ed7576202d6d61fcdfb6723a2baa74b8e010 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.1.1
#include <hxcpp.h>
#ifndef INCLUDED_maglev_MagLevAny
#include <maglev/MagLevAny.h>
#endif
#ifndef INCLUDED_maglev_MagLevNull
#include <maglev/MagLevNull.h>
#endif
#ifndef INCLUDED_maglev_MagLevString
#include <maglev/MagLevString.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_25586abe6b76e172_662_... | 34.296875 | 179 | 0.731815 |
544ebc8e13e44f1a9d4d382557bc3bffc28f7cfe | 1,933 | cpp | C++ | test/type_traits/is_trivially_copy_assignable.libcxx.cpp | FirstLoveLife/Rider-Faiz | ffa1ec3b335b836bd81600fb67587734325b2ce6 | [
"MIT"
] | 3 | 2019-01-18T08:36:03.000Z | 2020-10-29T08:30:59.000Z | test/type_traits/is_trivially_copy_assignable.libcxx.cpp | FirstLoveLife/Faiz | ffa1ec3b335b836bd81600fb67587734325b2ce6 | [
"MIT"
] | null | null | null | test/type_traits/is_trivially_copy_assignable.libcxx.cpp | FirstLoveLife/Faiz | ffa1ec3b335b836bd81600fb67587734325b2ce6 | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 21.719101 | 80 | 0.691154 |
5450373884e4d7eeae4d4c943765a34f77388329 | 650 | cpp | C++ | dlls/ADM/Physics/PhysManager.cpp | BlueNightHawk4906/HL-ADM-Custom | 7cd3925de819d4f5a2a808e5c0b34bb03a51c991 | [
"Unlicense"
] | 1 | 2020-12-11T17:52:33.000Z | 2020-12-11T17:52:33.000Z | dlls/ADM/Physics/PhysManager.cpp | BlueNightHawk4906/HL-ADM-Custom | 7cd3925de819d4f5a2a808e5c0b34bb03a51c991 | [
"Unlicense"
] | 7 | 2021-07-09T09:19:14.000Z | 2021-07-20T19:35:21.000Z | dlls/ADM/Physics/PhysManager.cpp | phoenixprojectsoftware/phoenixADM | 5f170a34739e64111dbe161d9ab9e0baa219512b | [
"Unlicense"
] | null | null | null | #include "Base/ExtDLL.h"
#include "Util.h"
#include "Base/CBase.h"
#include "PhysManager.h"
#include "../shared/ADM/Physics/PhysicsWorld.h"
LINK_ENTITY_TO_CLASS( phys_manager, CPhysManager );
void CPhysManager::Spawn()
{
pev->solid = SOLID_NOT;
pev->movetype = MOVETYPE_NONE;
// pev->flags |= FL_ALWA... | 22.413793 | 78 | 0.673846 |
545343e4b425c92a160ff5ae232d07b35cfc5e73 | 846 | cpp | C++ | MoveAndCard.cpp | misaka15565/Doudizhu_CanJu | 6bf4827ff79f523760df1362d2b746138eb0f7c5 | [
"Apache-2.0"
] | null | null | null | MoveAndCard.cpp | misaka15565/Doudizhu_CanJu | 6bf4827ff79f523760df1362d2b746138eb0f7c5 | [
"Apache-2.0"
] | null | null | null | MoveAndCard.cpp | misaka15565/Doudizhu_CanJu | 6bf4827ff79f523760df1362d2b746138eb0f7c5 | [
"Apache-2.0"
] | null | null | null | #include <vector>
using namespace std;
//sc means 单张牌
typedef char sc;
const int TYPE_0_PASS = 0;
const int TYPE_1_SINGLE = 1;
const int TYPE_2_PAIR = 2;
const int TYPE_3_TRIPLE = 3;
const int TYPE_4_BOMB = 4;
const int TYPE_5_KING_BOMB = 5;
const int TYPE_6_3_1 = 6;
const int TYPE_7_3_2 = 7;
const int TYPE_8_SERIAL_... | 18.391304 | 37 | 0.65721 |
54571cf0e13f22a286b8c650a63c535529550a82 | 35,187 | hpp | C++ | include/ext/net/http/http_server.hpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | 1 | 2018-05-14T13:46:59.000Z | 2018-05-14T13:46:59.000Z | include/ext/net/http/http_server.hpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | null | null | null | include/ext/net/http/http_server.hpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <memory>
#include <string>
#include <vector>
#include <functional>
#include <iterator>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <boost/container/flat_set.hpp>
#include <boost/container/flat_map.hpp>
#include <ext/config.hpp>
#include <ext/future.hpp>
#include <... | 55.412598 | 191 | 0.772729 |
54576dde40f92e2115e8513477ef33ee1b106a31 | 673 | cpp | C++ | campion-era/control.cpp/control.cpp | GeorgianBadita/algorithmic-problems | 6b260050b7a1768b5e47a1d7d4ef7138a52db210 | [
"MIT"
] | 1 | 2021-07-05T16:32:14.000Z | 2021-07-05T16:32:14.000Z | campion-era/control.cpp/control.cpp | GeorgianBadita/algorithmic-problems | 6b260050b7a1768b5e47a1d7d4ef7138a52db210 | [
"MIT"
] | null | null | null | campion-era/control.cpp/control.cpp | GeorgianBadita/algorithmic-problems | 6b260050b7a1768b5e47a1d7d4ef7138a52db210 | [
"MIT"
] | 1 | 2021-05-14T15:40:09.000Z | 2021-05-14T15:40:09.000Z | #include<fstream>
using namespace std;
int x[100];
int main()
{
ifstream f("control.in");
ofstream g("control.out");
int ok,aux,i,n,v[101],ap=0,s=0;
f>>n;
for(i=1;i<=n;i++)
{
f>>v[i];
}
do
{
ok=1;
for(i=1;i<=n-1;i++)
{... | 20.393939 | 40 | 0.2526 |
546385e4c80aaa2894a8b262692e2894d57c4c14 | 5,774 | cpp | C++ | test/indenter/test_indenter_python.cpp | SammyEnigma/qutepart-cpp | 3c5401c7d2856697171c4331099e2fa05ef0c49b | [
"WTFPL"
] | 5 | 2019-11-02T15:36:38.000Z | 2021-11-01T21:17:32.000Z | test/indenter/test_indenter_python.cpp | SammyEnigma/qutepart-cpp | 3c5401c7d2856697171c4331099e2fa05ef0c49b | [
"WTFPL"
] | 1 | 2021-02-11T23:11:00.000Z | 2021-02-11T23:11:00.000Z | test/indenter/test_indenter_python.cpp | SammyEnigma/qutepart-cpp | 3c5401c7d2856697171c4331099e2fa05ef0c49b | [
"WTFPL"
] | 3 | 2020-01-29T17:55:34.000Z | 2021-12-23T11:38:41.000Z | #include <QtTest/QtTest>
#include "base_indenter_test.h"
class Test: public BaseTest
{
Q_OBJECT
private slots:
void python_data() {
addColumns();
QTest::newRow("dedent return")
<< "def some_function():\n"
" return"
<< std::make_pair(1, 8)
... | 29.762887 | 91 | 0.336682 |
5463d9bb199bab6956d3a9ba142fbd22002a67a9 | 3,707 | hpp | C++ | hydra/vulkan/pipeline_layout.hpp | tim42/hydra | dfffd50a2863695742c0c6122a505824db8be7c3 | [
"MIT"
] | 2 | 2016-09-15T22:29:46.000Z | 2017-11-30T11:16:12.000Z | hydra/vulkan/pipeline_layout.hpp | tim42/hydra | dfffd50a2863695742c0c6122a505824db8be7c3 | [
"MIT"
] | null | null | null | hydra/vulkan/pipeline_layout.hpp | tim42/hydra | dfffd50a2863695742c0c6122a505824db8be7c3 | [
"MIT"
] | null | null | null | //
// file : pipeline_layout.hpp
// in : file:///home/tim/projects/hydra/hydra/vulkan/pipeline_layout.hpp
//
// created by : Timothée Feuillet
// date: Sun Aug 14 2016 13:43:28 GMT+0200 (CEST)
//
//
// Copyright (c) 2016 Timothée Feuillet
//
// Permission is hereby granted, free of charge, to any person obtaining a cop... | 36.70297 | 151 | 0.671702 |
5463e2b117bb725c57e7be31f033e82e3e782a5d | 30,428 | cpp | C++ | src/topology/TMR_TACSTopoCreator.cpp | peekwez/tmr | 3ac41d8edd9b65c833f55940c451ee87019c5f55 | [
"Apache-2.0"
] | null | null | null | src/topology/TMR_TACSTopoCreator.cpp | peekwez/tmr | 3ac41d8edd9b65c833f55940c451ee87019c5f55 | [
"Apache-2.0"
] | null | null | null | src/topology/TMR_TACSTopoCreator.cpp | peekwez/tmr | 3ac41d8edd9b65c833f55940c451ee87019c5f55 | [
"Apache-2.0"
] | null | null | null | /*
This file is part of the package TMR for adaptive mesh refinement.
Copyright (C) 2015 Georgia Tech Research Corporation.
Additional copyright (C) 2015 Graeme Kennedy.
All rights reserved.
TMR is licensed under the Apache License, Version 2.0 (the "License");
you may not use this software except in comp... | 31.401445 | 97 | 0.627021 |
546a11c1b2fb0ea64885541a70df951ecaf43844 | 1,136 | hpp | C++ | src/common/naive.hpp | TNishimoto/rlbwt_iterator | f2a4ae0276cb756d2724570def84641449da2f87 | [
"MIT"
] | null | null | null | src/common/naive.hpp | TNishimoto/rlbwt_iterator | f2a4ae0276cb756d2724570def84641449da2f87 | [
"MIT"
] | null | null | null | src/common/naive.hpp | TNishimoto/rlbwt_iterator | f2a4ae0276cb756d2724570def84641449da2f87 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <iostream>
#include <list>
#include <memory>
#include <random>
#include <exception>
#include <algorithm>
#include <fstream>
#include <chrono>
#include <time.h> //#include <stdio.h>
namespace stool
{
class NaiveAlgorithms
{
template <typename INDEX>
static std::vector<IND... | 27.047619 | 81 | 0.43662 |
54720cd912f3adf5ecc237fbb8e1ef36829439c1 | 773 | hpp | C++ | SDK/ARKSurvivalEvolved_EngramEntry_Toilet_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_EngramEntry_Toilet_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_EngramEntry_Toilet_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_EngramEntry_Toilet_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//------------------------------------------------------... | 19.820513 | 106 | 0.626132 |
54722c53866980373235710947a1645834cb2bd8 | 18,465 | cpp | C++ | ums1/ums1.cpp | codepilot/UMS1 | e89332f613c0306cc8ff20e232c9e7d15b7672df | [
"MIT"
] | 1 | 2016-07-20T18:40:42.000Z | 2016-07-20T18:40:42.000Z | ums1/ums1.cpp | codepilot/UMS1 | e89332f613c0306cc8ff20e232c9e7d15b7672df | [
"MIT"
] | null | null | null | ums1/ums1.cpp | codepilot/UMS1 | e89332f613c0306cc8ff20e232c9e7d15b7672df | [
"MIT"
] | null | null | null | #include "stdafx.h"
LPFN_DISCONNECTEX DisconnectEx=0;
SOCKET sListen;
char *status200HelloWorld = "HTTP/1.1 200 Ok\r\nContent-Length: 12\r\nConnection: close\r\n\r\nHello World!";
#if 0
#include <km\Ntifs.h>
#include <km\Fltkernel.h>
#else
/* START OF LIBUV SOURCE MATERIAL (SEE LIBUV-LICENSE) */
namespace WinInte... | 32.973214 | 153 | 0.746548 |
5472d4010d1eaeaf62637e439bd939e07cee465d | 28,590 | cpp | C++ | src/Renderer.cpp | smithy545/engine | 1818a1acafdbc2550b10ef74a215aa41d94edf0f | [
"MIT"
] | null | null | null | src/Renderer.cpp | smithy545/engine | 1818a1acafdbc2550b10ef74a215aa41d94edf0f | [
"MIT"
] | null | null | null | src/Renderer.cpp | smithy545/engine | 1818a1acafdbc2550b10ef74a215aa41d94edf0f | [
"MIT"
] | null | null | null | //
// Created by Philip Smith on 10/17/2020.
//
#include <engine/Renderer.h>
#include <engine/OrbitCam.h>
#include <engine/InstanceList.h>
#include <engine/mesh/Mesh.h>
#include <engine/sprite/ShapeSprite.h>
#include <engine/sprite/TextSprite.h>
#include <engine/sprite/TextureSprite.h>
#include <fmt/format.h>
#includ... | 42.863568 | 123 | 0.619203 |
547358039612061aa8526099823f2a38d461fac8 | 11,458 | cpp | C++ | src/common/backend/utils/adt/oid.cpp | opengauss-mirror/openGauss-graph | 6beb138fd00abdbfddc999919f90371522118008 | [
"MulanPSL-1.0"
] | 360 | 2020-06-30T14:47:34.000Z | 2022-03-31T15:21:53.000Z | src/common/backend/utils/adt/oid.cpp | opengauss-mirror/openGauss-graph | 6beb138fd00abdbfddc999919f90371522118008 | [
"MulanPSL-1.0"
] | 4 | 2020-06-30T15:09:16.000Z | 2020-07-14T06:20:03.000Z | src/common/backend/utils/adt/oid.cpp | opengauss-mirror/openGauss-graph | 6beb138fd00abdbfddc999919f90371522118008 | [
"MulanPSL-1.0"
] | 133 | 2020-06-30T14:47:36.000Z | 2022-03-25T15:29:00.000Z | /* -------------------------------------------------------------------------
*
* oid.c
* Functions for the built-in type Oid ... also oidvector.
*
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATIO... | 26.400922 | 120 | 0.616774 |
5473a402d01ac1bead5979450f8b478098257405 | 1,972 | cpp | C++ | test2.cpp | jhxqy/WebServerDemo | 5fce6dcbda875f61c96e7952b063e34b8ae6cb29 | [
"MIT"
] | null | null | null | test2.cpp | jhxqy/WebServerDemo | 5fce6dcbda875f61c96e7952b063e34b8ae6cb29 | [
"MIT"
] | null | null | null | test2.cpp | jhxqy/WebServerDemo | 5fce6dcbda875f61c96e7952b063e34b8ae6cb29 | [
"MIT"
] | null | null | null | //
// test2.cpp
// EZasync
//
// Created by 贾皓翔 on 2019/6/5.
// Copyright © 2019 贾皓翔. All rights reserved.
//
#include <stdio.h>
#include "asynchttp/HTTP.hpp"
using namespace std;
using namespace HTTP;
int main(){
IOContext ctx;
Serv s(ctx,"8088");
HttpDispatcher *http=HttpDispatcherImpl::Create();
... | 31.301587 | 88 | 0.591785 |
54759639a050f166bc45c0f04691f95a389bba4d | 1,915 | cpp | C++ | src/Neuron.cpp | AmarOk1412/NeuralDriver | 672fa4284eaaa88dc18498e23c7b40e1ec3d1c7d | [
"WTFPL"
] | null | null | null | src/Neuron.cpp | AmarOk1412/NeuralDriver | 672fa4284eaaa88dc18498e23c7b40e1ec3d1c7d | [
"WTFPL"
] | null | null | null | src/Neuron.cpp | AmarOk1412/NeuralDriver | 672fa4284eaaa88dc18498e23c7b40e1ec3d1c7d | [
"WTFPL"
] | null | null | null | #include "Neuron.h"
#include <math.h>
#include <random>
#include <iostream>
#include <assert.h>
Neuron::Neuron(const int nbInput)
{
init(nbInput, 3.4);
}
Neuron::~Neuron()
{
}
double Neuron::calcOutput(std::vector<double> const& input)
{
return 1/(1+exp(-thetaTX(input)));
}
double Neuron::thetaTX(const std::v... | 19.742268 | 66 | 0.643864 |
547978b2f97378047c7210e419cf5cedb7255741 | 1,531 | cpp | C++ | third-party/llvm/llvm-src/tools/clang/lib/Driver/DarwinSDKInfo.cpp | ram-nad/chapel | 1d4aae17e58699c1481d2b2209c9d1fcd2658fc8 | [
"ECL-2.0",
"Apache-2.0"
] | 115 | 2018-02-01T18:56:44.000Z | 2022-03-21T13:23:00.000Z | third-party/llvm/llvm-src/tools/clang/lib/Driver/DarwinSDKInfo.cpp | ram-nad/chapel | 1d4aae17e58699c1481d2b2209c9d1fcd2658fc8 | [
"ECL-2.0",
"Apache-2.0"
] | 27 | 2018-09-17T17:49:49.000Z | 2021-11-03T04:31:51.000Z | third-party/llvm/llvm-src/tools/clang/lib/Driver/DarwinSDKInfo.cpp | ram-nad/chapel | 1d4aae17e58699c1481d2b2209c9d1fcd2658fc8 | [
"ECL-2.0",
"Apache-2.0"
] | 55 | 2018-02-01T07:11:49.000Z | 2022-03-04T01:20:23.000Z | //===--- DarwinSDKInfo.cpp - SDK Information parser for darwin - ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 34.022222 | 80 | 0.63292 |
54802c98caf4d2337d84f7b53369a0cc6d201cb7 | 334 | cpp | C++ | Source/XeluIcons/Private/XeluIconsDeveloperSettings.cpp | mklabs/ue-xelu-icons | 4aaf54ecb9533fc3689f457b280b79293b861b47 | [
"MIT"
] | 5 | 2022-02-01T22:49:51.000Z | 2022-03-03T10:18:36.000Z | Source/XeluIcons/Private/XeluIconsDeveloperSettings.cpp | mklabs/ue-xelu-icons | 4aaf54ecb9533fc3689f457b280b79293b861b47 | [
"MIT"
] | 1 | 2022-01-31T23:09:04.000Z | 2022-01-31T23:09:04.000Z | Source/XeluIcons/Private/XeluIconsDeveloperSettings.cpp | mklabs/ue-xelu-icons | 4aaf54ecb9533fc3689f457b280b79293b861b47 | [
"MIT"
] | null | null | null | // Copyright 2022 Mickael Daniel. All Rights Reserved.
#include "XeluIconsDeveloperSettings.h"
UXeluIconsDeveloperSettings::UXeluIconsDeveloperSettings()
{
IconsDataTable = FSoftObjectPath(TEXT("/XeluIcons/DT_Xelu_Icons.DT_Xelu_Icons"));
}
FName UXeluIconsDeveloperSettings::GetCategoryName() const
{
return FName(... | 22.266667 | 82 | 0.805389 |
54873d2ce7769081b8be72c41d3903efc133f45d | 155 | cpp | C++ | src/Zadanie20.cpp | radzbydzi/Podstawy-Programowania | c97e72fd2fc0ecf3a88b0095cc409802be009013 | [
"Unlicense"
] | null | null | null | src/Zadanie20.cpp | radzbydzi/Podstawy-Programowania | c97e72fd2fc0ecf3a88b0095cc409802be009013 | [
"Unlicense"
] | null | null | null | src/Zadanie20.cpp | radzbydzi/Podstawy-Programowania | c97e72fd2fc0ecf3a88b0095cc409802be009013 | [
"Unlicense"
] | null | null | null | #include "Zadanie20.h"
Zadanie20::Zadanie20()
{
}
Zadanie20::~Zadanie20()
{
}
void Zadanie20::run()
{
cout<<"Zadanie20"<<endl<<endl;
pokazTresc();
}
| 9.117647 | 31 | 0.645161 |
54888c9318b3b338b8652db0a9750d917d1eef3b | 297 | hpp | C++ | include/RegularExpressionMatching.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | include/RegularExpressionMatching.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | include/RegularExpressionMatching.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #ifndef REGULAR_EXPRESSION_MATCHING_HPP_
#define REGULAR_EXPRESSION_MATCHING_HPP_
#include <string>
using namespace std;
class RegularExpressionMatching {
public:
bool isMatch(string s, string p);
private:
bool isMatch(char _s, char _p);
};
#endif // REGULAR_EXPRESSION_MATCHING_HPP_
| 17.470588 | 42 | 0.787879 |
5489c5139f0a48c5e723f63b2936a0cfd0342dfb | 995 | cpp | C++ | workbench/src/event.cpp | MasterQ32/cg-workbench | 3d6229b961192689e6dbd0a09ec4b61041ecb155 | [
"MIT"
] | 5 | 2017-12-27T12:57:36.000Z | 2021-10-02T03:21:40.000Z | workbench/src/event.cpp | MasterQ32/cg-workbench | 3d6229b961192689e6dbd0a09ec4b61041ecb155 | [
"MIT"
] | 9 | 2020-09-29T22:40:49.000Z | 2020-10-17T20:05:05.000Z | workbench/src/event.cpp | MasterQ32/cg-workbench | 3d6229b961192689e6dbd0a09ec4b61041ecb155 | [
"MIT"
] | null | null | null | #include "event.hpp"
#include <SDL.h>
#include "sink.hpp"
timestamp_t Event::system_time;
Event::Event() :
current(system_time - 10000), // 10 seconds ago...
counter(0)
{
}
void Event::Trigger()
{
this->triggered = true;
this->current = system_time;
this->counter += 1;
}
void Event::Reset()
{
this->co... | 15.307692 | 54 | 0.638191 |
548bc5e3181dfac55df4e56c841997aa1b26ed76 | 8,428 | hpp | C++ | source/list.hpp | saJonMR/programmiersprachen_aufgabenblatt_3 | 2d02c2da6389cc152986aa55ffce91f86ff8b6e3 | [
"MIT"
] | null | null | null | source/list.hpp | saJonMR/programmiersprachen_aufgabenblatt_3 | 2d02c2da6389cc152986aa55ffce91f86ff8b6e3 | [
"MIT"
] | null | null | null | source/list.hpp | saJonMR/programmiersprachen_aufgabenblatt_3 | 2d02c2da6389cc152986aa55ffce91f86ff8b6e3 | [
"MIT"
] | null | null | null | #ifndef BUW_LIST_HPP
#define BUW_LIST_HPP
#include <cassert>
#include <cstddef> //ptrdiff_t
#include <iterator> //std::bidirectional_iterator_tag
#include <iostream>
#include <initializer_list>
template <typename T>
class List;
template <typename T>
struct ListNode {
T value = T{};
ListNode* prev = null... | 24.218391 | 118 | 0.568818 |
548d738958b13f8c71e2e4d7c9fec12a2f52df80 | 316 | cpp | C++ | Source/HippoQOR/do_wrapper.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/HippoQOR/do_wrapper.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/HippoQOR/do_wrapper.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //do_wrapper.cpp
#include "HippoQOR/do_wrapper.h"
//--------------------------------------------------------------------------------
namespace nsUnitTesting
{
//--------------------------------------------------------------------------------
VirtualDestructable::~VirtualDestructable()
{
}
}//nsUnitTesting
| 22.571429 | 83 | 0.35443 |
548e9d8103cba0d2c43a2530193557f5d737f284 | 8,134 | cpp | C++ | src/main/cpp/rocketmq/CredentialsProvider.cpp | lizhanhui/rocketmq-client-cpp | d2001836e40d4f1da29ae7b2848fdfe0077ed1bf | [
"Apache-2.0"
] | null | null | null | src/main/cpp/rocketmq/CredentialsProvider.cpp | lizhanhui/rocketmq-client-cpp | d2001836e40d4f1da29ae7b2848fdfe0077ed1bf | [
"Apache-2.0"
] | null | null | null | src/main/cpp/rocketmq/CredentialsProvider.cpp | lizhanhui/rocketmq-client-cpp | d2001836e40d4f1da29ae7b2848fdfe0077ed1bf | [
"Apache-2.0"
] | 1 | 2021-09-16T06:31:07.000Z | 2021-09-16T06:31:07.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 38.733333 | 120 | 0.717482 |
54908d60e1fa2dd3d5ae4d32336bf6d1e354b105 | 2,911 | cpp | C++ | samples/client/enumeration/Client.cpp | vlsinitsyn/axis1 | 65a622201e526dedf7c3aeadce7cac5bd79895bf | [
"Apache-2.0"
] | 1 | 2021-11-10T19:36:30.000Z | 2021-11-10T19:36:30.000Z | samples/client/enumeration/Client.cpp | vlsinitsyn/axis1 | 65a622201e526dedf7c3aeadce7cac5bd79895bf | [
"Apache-2.0"
] | null | null | null | samples/client/enumeration/Client.cpp | vlsinitsyn/axis1 | 65a622201e526dedf7c3aeadce7cac5bd79895bf | [
"Apache-2.0"
] | 2 | 2021-11-02T13:09:57.000Z | 2021-11-10T19:36:22.000Z |
#include "EnumerationWS.hpp"
#include <stdlib.h> // For malloc(), calloc(), strdup() and free()
#include <iostream>
#define WSDL_DEFAULT_ENDPOINT "http://localhost:80/axis/enumeration"
static void usage( char * programName, char * defaultURL)
{
cout << "Usage:" << endl
<< programName << " [-? | service_url] ... | 21.723881 | 89 | 0.571968 |
5496e5f2c2d9d4d1c0f06af597e04c1a5be7b8db | 30,774 | hpp | C++ | include/misc.hpp | harith-alsafi/statistic-model-cpp | 0883f208ff6dcdc6634b95e88b92e9097bd76475 | [
"Condor-1.1",
"Naumen",
"Xnet",
"X11",
"MS-PL"
] | null | null | null | include/misc.hpp | harith-alsafi/statistic-model-cpp | 0883f208ff6dcdc6634b95e88b92e9097bd76475 | [
"Condor-1.1",
"Naumen",
"Xnet",
"X11",
"MS-PL"
] | null | null | null | include/misc.hpp | harith-alsafi/statistic-model-cpp | 0883f208ff6dcdc6634b95e88b92e9097bd76475 | [
"Condor-1.1",
"Naumen",
"Xnet",
"X11",
"MS-PL"
] | null | null | null | #pragma once
#include <vector>
#include <string>
#include <iostream>
#include <fstream>
/**
* @file misc.hpp
* @author Harith Al-Safi
* @brief
* @version 0.1
* @date 2021-12-10
*
* @copyright Copyright (c) 2021
*
*/
#include <algorithm>
#include <numeric>
#include "graphs.hpp"
/**
* @brief Operator to ... | 30.052734 | 96 | 0.34136 |
549a4413d99a4670838f6d27035dc1c820d069e9 | 3,305 | cpp | C++ | Assignment/OpenGLEngineA4/OpenGLEngine/SphereContactGeneratorSystem.cpp | GBCNewGamePlus/Physics | 739a244cfee506b3506a2bc6ec0dcdebe2c5417d | [
"MIT"
] | null | null | null | Assignment/OpenGLEngineA4/OpenGLEngine/SphereContactGeneratorSystem.cpp | GBCNewGamePlus/Physics | 739a244cfee506b3506a2bc6ec0dcdebe2c5417d | [
"MIT"
] | null | null | null | Assignment/OpenGLEngineA4/OpenGLEngine/SphereContactGeneratorSystem.cpp | GBCNewGamePlus/Physics | 739a244cfee506b3506a2bc6ec0dcdebe2c5417d | [
"MIT"
] | null | null | null | #include "SphereContactGeneratorSystem.h"
#include "ParticleContactComponent.h"
namespace Reality
{
SphereContactGeneratorSystem::SphereContactGeneratorSystem()
{
requireComponent<SphereComponent>();
requireComponent<ParticleComponent>();
requireComponent<TransformComponent>();
}
void SphereContactGenerat... | 31.778846 | 96 | 0.646596 |
549e0a60308d6fc7cd2622cc282f2236689aee00 | 2,950 | cc | C++ | DAPPLES.cc | hkktr/POLSKI-SPOJ | 59f7e0be99fca6532681c2ca01c8a7d97c6b5eed | [
"Unlicense"
] | 1 | 2021-02-01T11:21:56.000Z | 2021-02-01T11:21:56.000Z | DAPPLES.cc | hkktr/POLSKI-SPOJ | 59f7e0be99fca6532681c2ca01c8a7d97c6b5eed | [
"Unlicense"
] | null | null | null | DAPPLES.cc | hkktr/POLSKI-SPOJ | 59f7e0be99fca6532681c2ca01c8a7d97c6b5eed | [
"Unlicense"
] | 1 | 2022-01-28T15:25:45.000Z | 2022-01-28T15:25:45.000Z | // C++14 (gcc 8.3)
#include <cmath>
#include <iostream>
#include <limits>
#include <vector>
constexpr int kG{1'000};
long long CalculateTreeHeight(long long height, int max_velocity) {
return static_cast<long long>(std::pow(max_velocity, 2)) / (2 * kG) + height;
}
class Resident {
public:
Resident... | 28.365385 | 80 | 0.591525 |
54a0b6e2a9f9e376b72d0ade5bee4b71640c8e76 | 3,711 | cpp | C++ | Src/Eni/Gpio/STM32/Gpio.cpp | vlad230596/Eni | 2bbd07b6e4e20b2c2a6ad6fdc9d948e6352eecb7 | [
"MIT"
] | null | null | null | Src/Eni/Gpio/STM32/Gpio.cpp | vlad230596/Eni | 2bbd07b6e4e20b2c2a6ad6fdc9d948e6352eecb7 | [
"MIT"
] | null | null | null | Src/Eni/Gpio/STM32/Gpio.cpp | vlad230596/Eni | 2bbd07b6e4e20b2c2a6ad6fdc9d948e6352eecb7 | [
"MIT"
] | null | null | null |
#include "EniConfig.h"
#if defined(ENI_GPIO) && defined(ENI_STM)
#include "../Gpio.h"
#include "GpioPin.h"
#if !IS_ENI_GPIO_SUPPORTED
#if defined(ENI_HAL_INCLUDE_FILE)
#include ENI_HAL_INCLUDE_FILE
#else
#error "HAL include file missing declaration"
#endif
#endif
namespace Eni {
void Gpio::applyConfig(const ... | 21.327586 | 126 | 0.70574 |
54a1285f6999c571c5406de8597e25057d1389cb | 2,537 | hpp | C++ | cpp/archive/archive-good-stuff/db.hpp | MomsFriendlyRobotCompany/gecko | f340381113bdb423a39d47aaee61e013bb9e002a | [
"MIT"
] | 2 | 2020-03-11T03:53:19.000Z | 2020-10-06T03:18:32.000Z | cpp/archive/archive-good-stuff/db.hpp | MomsFriendlyRobotCompany/gecko | f340381113bdb423a39d47aaee61e013bb9e002a | [
"MIT"
] | null | null | null | cpp/archive/archive-good-stuff/db.hpp | MomsFriendlyRobotCompany/gecko | f340381113bdb423a39d47aaee61e013bb9e002a | [
"MIT"
] | null | null | null | /**************************************************\
* The MIT License (MIT)
* Copyright (c) 2014 Kevin Walchko
* see LICENSE for full details
\**************************************************/
#pragma once
#include <string>
#include <map>
#include <tuple>
#include <exception>
#include <gecko/exceptions.hpp>
struct... | 29.5 | 94 | 0.590067 |