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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cf6f018ad42712605f9c5ca364adc02f0b6a2af3 | 28,546 | cpp | C++ | com/netfx/src/clr/fusion/tools/copy2gac/copy2gac.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/netfx/src/clr/fusion/tools/copy2gac/copy2gac.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/netfx/src/clr/fusion/tools/copy2gac/copy2gac.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
#include "common.h"
#include <comdef.h>
#include <tchar.h>
//#include "initguid.h"
#include <initguid.h>
#include "copy2gac.h"
#include "bindsink.h"
TCHAR *CApp::c_szBakupDir = TEXT("bak\\");
CApp::CApp() ... | 31.753059 | 146 | 0.452323 | npocmaka |
cf708df51fb5083c3c62162788598581a3e4ff18 | 3,336 | cpp | C++ | tools/client_session/client_session.cpp | smallsunsun1/async_lib | d1e88aa73a1084a9549f884241266c8bdf568411 | [
"Apache-2.0",
"MIT"
] | null | null | null | tools/client_session/client_session.cpp | smallsunsun1/async_lib | d1e88aa73a1084a9549f884241266c8bdf568411 | [
"Apache-2.0",
"MIT"
] | null | null | null | tools/client_session/client_session.cpp | smallsunsun1/async_lib | d1e88aa73a1084a9549f884241266c8bdf568411 | [
"Apache-2.0",
"MIT"
] | null | null | null | #include <glog/logging.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/text_format.h>
#include <grpc++/grpc++.h>
#include <grpc/grpc.h>
#include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "absl/flags/flag.h"
#inc... | 32.38835 | 77 | 0.731715 | smallsunsun1 |
cf71987536faba6b3dffd0ab446b58c52cd5bbd1 | 244 | cpp | C++ | contests/UnBalloon/2-maratona/c-complexo-demais/complexo_demais.cpp | XatubaPox/programming-competitive | f5fe512266de7109f45259a82a74035ed19d9474 | [
"MIT"
] | 1 | 2022-01-25T13:11:45.000Z | 2022-01-25T13:11:45.000Z | contests/UnBalloon/2-maratona/c-complexo-demais/complexo_demais.cpp | XatubaPox/programming-competitive | f5fe512266de7109f45259a82a74035ed19d9474 | [
"MIT"
] | null | null | null | contests/UnBalloon/2-maratona/c-complexo-demais/complexo_demais.cpp | XatubaPox/programming-competitive | f5fe512266de7109f45259a82a74035ed19d9474 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main (){
int a, b, c, d, com1, com2;
cin >> a >> b >> c >> d;
com1 = (a * c) - (b * d);
com2 = (a * d) + (b * c);
printf("(%i) + (%ii)\n", com1, com2);
return 0;
}
| 14.352941 | 41 | 0.422131 | XatubaPox |
cf719b54b3cde4c45c34365b7d2f54cf098d449e | 13,322 | cpp | C++ | platform/javascript/export/export.cpp | xsellier/godot | 0512868e0d6236c42ac3cd3efbf8604b979b2f62 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 2 | 2019-08-19T19:28:25.000Z | 2020-12-08T08:21:14.000Z | platform/javascript/export/export.cpp | xsellier/godot | 0512868e0d6236c42ac3cd3efbf8604b979b2f62 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | platform/javascript/export/export.cpp | xsellier/godot | 0512868e0d6236c42ac3cd3efbf8604b979b2f62 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | /*************************************************************************/
/* export.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | 33.305 | 153 | 0.673998 | xsellier |
cf779711db3d667c6089abce10543466f82a9d1a | 943 | cc | C++ | solutions/leetcode/unique-paths-ii/dp.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 4 | 2020-11-07T14:38:02.000Z | 2022-01-03T19:02:36.000Z | solutions/leetcode/unique-paths-ii/dp.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 1 | 2019-04-17T06:55:14.000Z | 2019-04-17T06:55:14.000Z | solutions/leetcode/unique-paths-ii/dp.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | null | null | null | #include <vector>
int uniquePathsWithObstacles(std::vector<std::vector<int>> &obstacleGrid) {
if (obstacleGrid.at(0).at(0))
return 0;
const int M = obstacleGrid.at(0).size();
const int N = obstacleGrid.size();
// Convert to a 2D vector of unsigned ints
// to avoid signed integer overflows
std::vector... | 26.942857 | 79 | 0.492047 | zwliew |
cf79c6deb54ab67715ce12a04a4e39c542afc31f | 17,493 | cc | C++ | src/oxli/assembler.cc | sadeepdarshana/khmer | bee54c4f579611d970c59367323d31d3545cafa6 | [
"CNRI-Python"
] | 558 | 2015-05-22T15:03:21.000Z | 2022-03-23T04:49:17.000Z | src/oxli/assembler.cc | sadeepdarshana/khmer | bee54c4f579611d970c59367323d31d3545cafa6 | [
"CNRI-Python"
] | 1,057 | 2015-05-14T20:27:04.000Z | 2022-03-08T09:29:36.000Z | src/oxli/assembler.cc | sadeepdarshana/khmer | bee54c4f579611d970c59367323d31d3545cafa6 | [
"CNRI-Python"
] | 193 | 2015-05-18T10:13:34.000Z | 2021-12-10T11:58:01.000Z | /*
This file is part of khmer, https://github.com/dib-lab/khmer/, and is
Copyright (C) 2015-2016, The Regents of the University of California.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source ... | 32.758427 | 99 | 0.63231 | sadeepdarshana |
cf79d84525dbac544bc9cf6a6930997cbb1ab8a6 | 9,972 | hpp | C++ | src/imgui/imgui_impl_dx11_shaders.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 13 | 2019-03-25T09:40:12.000Z | 2022-03-13T16:12:39.000Z | src/imgui/imgui_impl_dx11_shaders.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 110 | 2018-10-16T09:05:43.000Z | 2022-03-16T23:32:28.000Z | src/imgui/imgui_impl_dx11_shaders.hpp | SleepKiller/swbfii-shaderpatch | b49ce3349d4dd09b19237ff4766652166ba1ffd4 | [
"MIT"
] | 1 | 2020-02-06T20:32:50.000Z | 2020-02-06T20:32:50.000Z |
constexpr inline static unsigned char imgui_impl_dx11_vs_shader[] =
{68, 88, 66, 67, 193, 41, 206, 126, 110, 128, 143, 52, 233, 167, 187,
47, 111, 86, 223, 148, 1, 0, 0, 0, 80, 4, 0, 0, 6, 0,
0, 0, 56, 0, 0, 0, 24, 1, 0, 0, 32, 2, 0, 0, 156,
2, 0, 0,... | 74.977444 | 78 | 0.286502 | SleepKiller |
cf7d1141ef88a7242dd538b4f82daa4596954eb6 | 607 | cpp | C++ | 98.validate-binary-search-tree.159689697.ac.cpp | blossom2017/Leetcode | 8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b | [
"Apache-2.0"
] | null | null | null | 98.validate-binary-search-tree.159689697.ac.cpp | blossom2017/Leetcode | 8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b | [
"Apache-2.0"
] | null | null | null | 98.validate-binary-search-tree.159689697.ac.cpp | blossom2017/Leetcode | 8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b | [
"Apache-2.0"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
bool isValid(TreeNode * root, TreeNode * &prev)
{
if(!root)return true;
if(... | 23.346154 | 59 | 0.560132 | blossom2017 |
cf7dc474ebd427220acf680c83be738994184d17 | 3,920 | cpp | C++ | hi_dsp_library/dywapitchtrack/PitchDetection.cpp | Matt-Dub/HISE | ae2dd1653e1c8d749a9088edcd573de6252b0b96 | [
"Intel"
] | null | null | null | hi_dsp_library/dywapitchtrack/PitchDetection.cpp | Matt-Dub/HISE | ae2dd1653e1c8d749a9088edcd573de6252b0b96 | [
"Intel"
] | null | null | null | hi_dsp_library/dywapitchtrack/PitchDetection.cpp | Matt-Dub/HISE | ae2dd1653e1c8d749a9088edcd573de6252b0b96 | [
"Intel"
] | null | null | null | /* ===========================================================================
*
* This file is part of HISE.
* Copyright 2016 Christoph Hart
*
* HISE is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation,... | 28.405797 | 129 | 0.713265 | Matt-Dub |
cf7f6c1997592fdbd0ad70e5196c9cedb8dc848b | 852 | cpp | C++ | fi-tools/sw-faults/Regression/testsuite/CPP/54/54.origin.cpp | ucx-code/ucXception | 6b1f4fe4aa53a28e87584d07f540095c20ee50e9 | [
"BSD-3-Clause"
] | 2 | 2020-08-11T10:54:56.000Z | 2021-03-22T14:54:19.000Z | fi-tools/sw-faults/Regression/testsuite/CPP/54/54.origin.cpp | ucx-code/ucXception | 6b1f4fe4aa53a28e87584d07f540095c20ee50e9 | [
"BSD-3-Clause"
] | null | null | null | fi-tools/sw-faults/Regression/testsuite/CPP/54/54.origin.cpp | ucx-code/ucXception | 6b1f4fe4aa53a28e87584d07f540095c20ee50e9 | [
"BSD-3-Clause"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <algorithm>
struct _slot { int begin; int end; };
struct _slot slot[150000];
bool operator<(const struct _slot& a, const struct _slot& b) {
return a.end < b.end;
}
int main()
{
int n;
scanf("%d\n", &n);
int i;
for (i = 0; i < n; i++)
{
... | 18.521739 | 62 | 0.428404 | ucx-code |
cf7fa47cfadeb082783b387895eac6395ed54bac | 5,121 | cpp | C++ | tab/tools/tab_com.cpp | constcut/mtherapp | 20b8e32361ef492d5b7cb4ff150f0956e952fdef | [
"MIT"
] | 2 | 2022-03-04T17:54:48.000Z | 2022-03-28T06:20:31.000Z | tab/tools/tab_com.cpp | constcut/aurals | bb00fac92a3a919867fe2e482c37fc0abe5e6984 | [
"MIT"
] | null | null | null | tab/tools/tab_com.cpp | constcut/aurals | bb00fac92a3a919867fe2e482c37fc0abe5e6984 | [
"MIT"
] | null | null | null | #include "tab/Tab.hpp"
#include "midi/MidiFile.hpp"
#include "GmyFile.hpp"
#include "TabLoader.hpp"
#include "GtpFiles.hpp"
#include <fstream>
#include <QDebug>
using namespace aurals;
//TODO prepare undo operations
//They have to be for all possible commands
void Tab::setSignsTillEnd(size_t num, size_t denom) {... | 25.605 | 124 | 0.629369 | constcut |
cf8244e6fdf3164351551303e75ffb44b29c1b3d | 7,487 | cpp | C++ | hw/src/SEST.cpp | bebosudo/sensors_station | c5db51d38f2ccd3d3671a42ab164e6357e0a6694 | [
"MIT"
] | 1 | 2018-01-01T18:25:26.000Z | 2018-01-01T18:25:26.000Z | hw/src/SEST.cpp | bebosudo/sensors_station | c5db51d38f2ccd3d3671a42ab164e6357e0a6694 | [
"MIT"
] | null | null | null | hw/src/SEST.cpp | bebosudo/sensors_station | c5db51d38f2ccd3d3671a42ab164e6357e0a6694 | [
"MIT"
] | 1 | 2018-01-01T22:55:28.000Z | 2018-01-01T22:55:28.000Z | // SEST library.
// Alberto Chiusole -- 2017.
#include "SEST.h"
#include "Arduino.h"
// #include <algorithm>
#include <cstdint>
#include <math.h>
#include <string>
const unsigned int MS_WAIT_BEFORE_TIMEOUT = 5000;
SEST::SEST(Client& client, const std::string& address,
const std::string& write_key)
... | 29.828685 | 78 | 0.594364 | bebosudo |
cf84b0016e76801f834cd3a0f8ed389708fda89e | 939 | hpp | C++ | include/oogl/RenderBuffer.hpp | rharel/cpp-oogl | e8fd19649cc113aff43ddb8d805ca356e9a6b02c | [
"MIT"
] | 1 | 2019-08-28T19:03:45.000Z | 2019-08-28T19:03:45.000Z | include/oogl/RenderBuffer.hpp | rharel/cpp-oogl | e8fd19649cc113aff43ddb8d805ca356e9a6b02c | [
"MIT"
] | null | null | null | include/oogl/RenderBuffer.hpp | rharel/cpp-oogl | e8fd19649cc113aff43ddb8d805ca356e9a6b02c | [
"MIT"
] | 1 | 2019-08-28T19:03:51.000Z | 2019-08-28T19:03:51.000Z | /**
* Render Buffer Object.
*
* @author Raoul Harel
* @url github/rharel/cpp-oogl
*/
#pragma once
#include <glew/glew.h>
#include <oogl/GLObject.hpp>
namespace oogl
{
/**
* This class wraps around OpenGL render buffer objects.
* Render buffers are used as render targets and are used together
... | 18.057692 | 71 | 0.538871 | rharel |
cf85be95aed6719820898de9f92c83aa6ffdaac5 | 18,997 | cpp | C++ | src/utils/file.cpp | ramonbrugman/bubichain | 433e2352d0c7cea591cd5c9229e9e2c5dbd7957a | [
"Apache-2.0"
] | 99 | 2017-08-08T01:37:45.000Z | 2021-05-15T14:39:43.000Z | src/utils/file.cpp | ramonbrugman/bubichain | 433e2352d0c7cea591cd5c9229e9e2c5dbd7957a | [
"Apache-2.0"
] | 3 | 2017-08-23T06:39:15.000Z | 2019-09-06T18:18:17.000Z | src/utils/file.cpp | ramonbrugman/bubichain | 433e2352d0c7cea591cd5c9229e9e2c5dbd7957a | [
"Apache-2.0"
] | 41 | 2017-08-08T01:38:41.000Z | 2022-02-15T12:12:21.000Z | /*
Copyright © Bubi Technologies Co., Ltd. 2017 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 required by applicable ... | 26.869873 | 162 | 0.669895 | ramonbrugman |
cf8675a041ff03cac9068f6c39293bd2adf55684 | 448 | cc | C++ | src/calc/errorhandler.cc | madeso/bbcalc | 1f5e316ce007b1d1d9b4fc49f9afb03715e5674c | [
"MIT"
] | null | null | null | src/calc/errorhandler.cc | madeso/bbcalc | 1f5e316ce007b1d1d9b4fc49f9afb03715e5674c | [
"MIT"
] | null | null | null | src/calc/errorhandler.cc | madeso/bbcalc | 1f5e316ce007b1d1d9b4fc49f9afb03715e5674c | [
"MIT"
] | null | null | null | #include "calc/errorhandler.h"
#include <fmt/core.h>
#include "calc/output.h"
void
ErrorHandler::Err(const std::string& str)
{
errors.emplace_back(str);
}
[[nodiscard]] bool
ErrorHandler::HasErr() const
{
return !errors.empty();
}
void
ErrorHandler::PrintErrors(Output* output)
{
output->PrintError("... | 14 | 54 | 0.642857 | madeso |
cf869f7a2b62a398c965eb211f3d2ccc82f9018e | 1,012 | cpp | C++ | Week 4/Week 4 Sample Programs/Pr7-1.cpp | sugamkarki/NAMI-Year-II-Term-I-Software_Engineering | 39182816b670dcb75ec322e24b346a4cfeb80be0 | [
"Apache-2.0"
] | null | null | null | Week 4/Week 4 Sample Programs/Pr7-1.cpp | sugamkarki/NAMI-Year-II-Term-I-Software_Engineering | 39182816b670dcb75ec322e24b346a4cfeb80be0 | [
"Apache-2.0"
] | null | null | null | Week 4/Week 4 Sample Programs/Pr7-1.cpp | sugamkarki/NAMI-Year-II-Term-I-Software_Engineering | 39182816b670dcb75ec322e24b346a4cfeb80be0 | [
"Apache-2.0"
] | null | null | null | /**
* @file Pr7-1.cpp
* @author your name (you@domain.com)
* @brief
* @version 0.1
* @date 2020-12-14
*
* @copyright Copyright (c) 2020
*
*/
#include <iostream>
/**
* @brief
*
*/
using namespace std;
int main()
{
/**
* @brief
*
*/
const int NUM_EMPLOYEES = ... | 17.152542 | 45 | 0.4417 | sugamkarki |
cf89a29bc26a7caa9493f3cd67ef36d25d5eecd7 | 4,419 | hh | C++ | include/upnpdevice.hh | vbtdung/h-box | 9d39aef2adee5384d556a4dcf991d6af262ca92e | [
"MIT"
] | 1 | 2018-09-16T06:13:12.000Z | 2018-09-16T06:13:12.000Z | include/upnpdevice.hh | vbtdung/h-box | 9d39aef2adee5384d556a4dcf991d6af262ca92e | [
"MIT"
] | null | null | null | include/upnpdevice.hh | vbtdung/h-box | 9d39aef2adee5384d556a4dcf991d6af262ca92e | [
"MIT"
] | null | null | null | /*
Copyright (c) 2010-2012 Aalto University
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | 29.657718 | 143 | 0.742476 | vbtdung |
cf89b08d967eeaa4b97f2f80785b3611011af143 | 1,567 | cpp | C++ | module_05/ex03/ShrubberyCreationForm.cpp | paulahemsi/piscine_cpp | f98feefd8e70308f77442f9b4cb64758676349a7 | [
"MIT"
] | 4 | 2021-12-14T18:02:53.000Z | 2022-03-24T01:12:38.000Z | module_05/ex02/ShrubberyCreationForm.cpp | paulahemsi/piscine_cpp | f98feefd8e70308f77442f9b4cb64758676349a7 | [
"MIT"
] | null | null | null | module_05/ex02/ShrubberyCreationForm.cpp | paulahemsi/piscine_cpp | f98feefd8e70308f77442f9b4cb64758676349a7 | [
"MIT"
] | 3 | 2021-11-01T00:34:50.000Z | 2022-01-29T19:57:30.000Z |
#include "ShrubberyCreationForm.hpp"
#include <iostream>
#include <fstream>
# define V_CYAN "\e[0;38;5;44m"
# define RESET "\e[0m"
ShrubberyCreationForm::ShrubberyCreationForm(std::string target) : AForm("ShrubberyCreationForm", 145, 137)
{
this->setTarget(target);
std::cout << *this << std::endl;
return ;
}
... | 23.742424 | 136 | 0.64582 | paulahemsi |
cf9043d6181db83caf01cf8750abc169b60d67b9 | 1,983 | cpp | C++ | update-client-hub/modules/pal-blockdevice/source/arm_uc_pal_blockdevice_mbed.cpp | linlingao/mbed-cloud-client | 13e0cef7f9508c10d50f3beb049eafea2af6f17b | [
"Apache-2.0"
] | null | null | null | update-client-hub/modules/pal-blockdevice/source/arm_uc_pal_blockdevice_mbed.cpp | linlingao/mbed-cloud-client | 13e0cef7f9508c10d50f3beb049eafea2af6f17b | [
"Apache-2.0"
] | null | null | null | update-client-hub/modules/pal-blockdevice/source/arm_uc_pal_blockdevice_mbed.cpp | linlingao/mbed-cloud-client | 13e0cef7f9508c10d50f3beb049eafea2af6f17b | [
"Apache-2.0"
] | null | null | null | //----------------------------------------------------------------------------
// The confidential and proprietary information contained in this file may
// only be used by a person authorised under and to the extent permitted
// by a subsisting licensing agreement from ARM Limited or its affiliates.
//
// ... | 33.05 | 84 | 0.655572 | linlingao |
cf9c90ec735a4cfa1930fc220d98f50ac5d81adb | 1,062 | cpp | C++ | src/XML/XMLConfigMarkISection.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | 1 | 2019-04-29T05:31:32.000Z | 2019-04-29T05:31:32.000Z | src/XML/XMLConfigMarkISection.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | null | null | null | src/XML/XMLConfigMarkISection.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | null | null | null | /*
* XMLConfigMarkISection.cpp
*
* Created on: Feb 11, 2014
* Author: clustro
*/
#include "XMLConfigMarkISection.h"
#include <stdexcept>
namespace Lazarus {
XMLConfigMarkISection::XMLConfigMarkISection(const std::string& name)
{
m_name = name;
}
XMLConfigMarkISection::~XMLConfigMarkISection()
{
for(au... | 17.409836 | 83 | 0.731638 | dmalysiak |
cfa0a7342f3511014fb9e13475eba0260af4b4fa | 360 | cpp | C++ | src/prob_171.cpp | SummerSad/Leet-Code | d0dff86b1b85579738d23d832c795d38c1789672 | [
"MIT"
] | null | null | null | src/prob_171.cpp | SummerSad/Leet-Code | d0dff86b1b85579738d23d832c795d38c1789672 | [
"MIT"
] | null | null | null | src/prob_171.cpp | SummerSad/Leet-Code | d0dff86b1b85579738d23d832c795d38c1789672 | [
"MIT"
] | null | null | null | /* 171. Excel Sheet Column Number
* A -> 1
* B -> 2
* C -> 3
* ...
* Z -> 26
* AA -> 27
* AB -> 28
* ...
*/
#include <stdio.h>
int titleToNumber(char *s)
{
int n = 0;
for (int i = 0; s[i] != '\0'; ++i) {
n *= 26;
n += s[i] - 'A' + 1;
}
return n;
}
int main()
{
printf("%d\n"... | 12.413793 | 38 | 0.402778 | SummerSad |
cfa1320511ff52f0a2845363b9d048156e4db389 | 984 | cpp | C++ | CodeForces/1191 D.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | CodeForces/1191 D.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | CodeForces/1191 D.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | //Author: WindCry1
//Mail: lanceyu120@gmail.com
//Website: https://windcry1.com
#include<cstring>
#include<cmath>
#include<cstdio>
#include<cctype>
#include<cstdlib>
#include<ctime>
#include<vector>
#include<iostream>
#include<string>
#include<queue>
#include<set>
#include<map>
#include<algorithm>
#include<complex>
#in... | 17.263158 | 61 | 0.654472 | windcry1 |
cfa513fb403af0c1b44258b41759fa11b473937c | 11,545 | cpp | C++ | uav_interface/OLED.cpp | NHLStenden-CVDS/TwirreArduino | 2832c6d7fa0f46e41bac3bf4124b24446f8dcde8 | [
"MIT"
] | null | null | null | uav_interface/OLED.cpp | NHLStenden-CVDS/TwirreArduino | 2832c6d7fa0f46e41bac3bf4124b24446f8dcde8 | [
"MIT"
] | null | null | null | uav_interface/OLED.cpp | NHLStenden-CVDS/TwirreArduino | 2832c6d7fa0f46e41bac3bf4124b24446f8dcde8 | [
"MIT"
] | null | null | null | /*
* Twirre: architecture for autonomous UAVs using interchangeable commodity components
*
* Copyright© 2017 Centre of expertise in Computer Vision & Data Science, NHL Stenden University of applied sciences
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associ... | 29.678663 | 463 | 0.661758 | NHLStenden-CVDS |
cfa6559ed374df5ed9d3535040d86d09a4e33776 | 1,810 | hpp | C++ | extlibs/include/Jopnal/Utility/DateTime.hpp | Jopnal/Jopmodel | cfd50b9fd24eaf63497bf5bed883f0b831d9ad65 | [
"Zlib"
] | 2 | 2016-07-16T17:21:10.000Z | 2016-08-09T11:41:33.000Z | extlibs/include/Jopnal/Utility/DateTime.hpp | Jopnal/Jopmodel | cfd50b9fd24eaf63497bf5bed883f0b831d9ad65 | [
"Zlib"
] | null | null | null | extlibs/include/Jopnal/Utility/DateTime.hpp | Jopnal/Jopmodel | cfd50b9fd24eaf63497bf5bed883f0b831d9ad65 | [
"Zlib"
] | null | null | null | // Jopnal Engine C++ Library
// Copyright (c) 2016 Team Jopnal
//
// 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 pur... | 24.133333 | 77 | 0.61105 | Jopnal |
cfa6e83d21638c08d9c9441c4e5b89bbed2ebb51 | 302 | cpp | C++ | src/main.cpp | z3t0/Game | cda8dccebd488519d4a018c0d11cccc69e5e5859 | [
"MIT"
] | null | null | null | src/main.cpp | z3t0/Game | cda8dccebd488519d4a018c0d11cccc69e5e5859 | [
"MIT"
] | null | null | null | src/main.cpp | z3t0/Game | cda8dccebd488519d4a018c0d11cccc69e5e5859 | [
"MIT"
] | null | null | null | // Main file
// Copyright (C) Rafi Khan 2016
// Includes
#include "Game.hpp"
#include <iostream>
// Defines
#define WINDOW_WIDTH 800
#define WINDOW_HEIGHT 600
#define WINDOW_TITLE "Game"
int main() {
Game game (WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_TITLE);
game.update();
return 0;
}
| 13.130435 | 58 | 0.688742 | z3t0 |
bbb92752b7acc8ba023e6962380f66d29ec08c1b | 2,850 | cpp | C++ | lumeview/src/lumeview/cmd/active_command_queues.cpp | miho/lume | c0bddf68228af2817dc31c27c7fbc618e80c6017 | [
"BSD-2-Clause"
] | 6 | 2018-09-11T12:05:55.000Z | 2021-11-27T11:56:33.000Z | lumeview/src/lumeview/cmd/active_command_queues.cpp | miho/lume | c0bddf68228af2817dc31c27c7fbc618e80c6017 | [
"BSD-2-Clause"
] | 2 | 2019-10-06T21:05:15.000Z | 2019-10-08T09:09:30.000Z | lumeview/src/lumeview/cmd/active_command_queues.cpp | miho/lume | c0bddf68228af2817dc31c27c7fbc618e80c6017 | [
"BSD-2-Clause"
] | 2 | 2018-12-25T00:57:17.000Z | 2019-10-06T21:05:39.000Z | // This file is part of lumeview, a lightweight viewer for unstructured meshes
//
// Copyright (C) 2019 Sebastian Reiter <s.b.reiter@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:
... | 35.625 | 104 | 0.701404 | miho |
bbc1bbb95bd10f881dd3d39f332bc8700fff32ce | 3,881 | cpp | C++ | test/unit_test/sql_test.cpp | KaiserLancelot/klib | 5fe789c24dae999ab3512e5882f14a194dd34699 | [
"MIT"
] | 1 | 2022-02-28T12:31:44.000Z | 2022-02-28T12:31:44.000Z | test/unit_test/sql_test.cpp | KaiserLancelot/klib | 5fe789c24dae999ab3512e5882f14a194dd34699 | [
"MIT"
] | null | null | null | test/unit_test/sql_test.cpp | KaiserLancelot/klib | 5fe789c24dae999ab3512e5882f14a194dd34699 | [
"MIT"
] | 1 | 2021-11-06T14:23:21.000Z | 2021-11-06T14:23:21.000Z | #include <cstdint>
#include <filesystem>
#include <iostream>
#include <string>
#include <vector>
#include <catch2/catch.hpp>
#include "klib/sql.h"
#include "klib/util.h"
TEST_CASE("sql", "[sql]") {
{
klib::SqlDatabase db("test.db", klib::SqlDatabase::ReadWrite,
"6K4VpQY5&b*WRR^Y");
... | 33.456897 | 76 | 0.605514 | KaiserLancelot |
bbc427345988366e65b5972a4f9f05ea6d5a3cb6 | 1,678 | cc | C++ | art/Framework/Modules/RandomNumberSaver_module.cc | drbenmorgan/fnal-art | 31b8a5c76af364bbbfd8960bc2039b4f3cd47ae3 | [
"BSD-3-Clause"
] | null | null | null | art/Framework/Modules/RandomNumberSaver_module.cc | drbenmorgan/fnal-art | 31b8a5c76af364bbbfd8960bc2039b4f3cd47ae3 | [
"BSD-3-Clause"
] | 16 | 2021-11-05T14:29:41.000Z | 2022-03-24T15:43:39.000Z | art/Framework/Modules/RandomNumberSaver_module.cc | drbenmorgan/fnal-art | 31b8a5c76af364bbbfd8960bc2039b4f3cd47ae3 | [
"BSD-3-Clause"
] | 2 | 2020-09-26T01:37:11.000Z | 2021-05-03T13:02:24.000Z | // vim: set sw=2 expandtab :
//
// Store state of the RandomNumberGenerator service into the event.
//
#include "art/Framework/Core/ModuleMacros.h"
#include "art/Framework/Core/ProcessingFrame.h"
#include "art/Framework/Core/SharedProducer.h"
#include "art/Framework/Principal/Event.h"
#include "art/Framework/Services/... | 26.634921 | 74 | 0.68534 | drbenmorgan |
bbc46436074f66ad626ed22ae76c5725ba929f9e | 741 | hh | C++ | F/src/transformation.hh | vaginessa/Ctrl-Alt-Test | b981ebdbc6b0678f004c4052d70ebb56af2d89a0 | [
"Apache-2.0"
] | 114 | 2015-04-14T10:30:05.000Z | 2021-06-11T02:57:59.000Z | F/src/transformation.hh | vaginessa/Ctrl-Alt-Test | b981ebdbc6b0678f004c4052d70ebb56af2d89a0 | [
"Apache-2.0"
] | null | null | null | F/src/transformation.hh | vaginessa/Ctrl-Alt-Test | b981ebdbc6b0678f004c4052d70ebb56af2d89a0 | [
"Apache-2.0"
] | 11 | 2015-07-26T02:11:32.000Z | 2020-04-02T21:06:15.000Z | //
// 3D transformation
//
#ifndef TRANSFORMATION_HH
# define TRANSFORMATION_HH
#include "quaternion.hh"
#include "vector.hh"
struct Transformation
{
quaternion q;
vector3f v;
Transformation(const quaternion & q, const vector3f & v):
q(q), v(v)
{}
Transformation() {}
};
Transformation operator * (co... | 19.5 | 59 | 0.700405 | vaginessa |
bbc58aee5660d9dc5d34996e548f5e2d89307840 | 1,077 | cpp | C++ | clang-tools-extra/test/clang-reorder-fields/FieldDependencyWarningDerived.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | clang-tools-extra/test/clang-reorder-fields/FieldDependencyWarningDerived.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | clang-tools-extra/test/clang-reorder-fields/FieldDependencyWarningDerived.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | // RUN: clang-reorder-fields -record-name bar::Derived -fields-order z,y %s -- 2>&1 | FileCheck --check-prefix=CHECK-MESSAGES %s
// FIXME: clang-reorder-fields should provide -verify mode to make writing these checks
// easier and more accurate, for now we follow clang-tidy's approach.
namespace bar {
struct Base {
... | 29.108108 | 137 | 0.697307 | medismailben |
bbc7b559c1c6530d70446f6bd8bd5d7db83e2534 | 950 | cpp | C++ | LeetCode/100/78.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | LeetCode/100/78.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | LeetCode/100/78.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | // created by Kona @VSCode
#include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <queue>
#include <vector>
#include <string.h>
#define LOCAL_TEST
typedef long long ll;
using std::cin;
using std::cout;
using std::endl;
using std::map;
using std::queue;
using std::string;
using std::vector;... | 19.791667 | 53 | 0.578947 | K-ona |
bbca9eb05c36ad544f2a78cb82deed6307ef8ea1 | 912 | cpp | C++ | test/src/test_kvector.cpp | OrhanKupusoglu/find-first-id | 025061782cfb6b1300bebeaa1f3c0e4df27211a5 | [
"MIT"
] | 1 | 2020-06-14T20:27:53.000Z | 2020-06-14T20:27:53.000Z | test/src/test_kvector.cpp | OrhanKupusoglu/find-first-id | 025061782cfb6b1300bebeaa1f3c0e4df27211a5 | [
"MIT"
] | null | null | null | test/src/test_kvector.cpp | OrhanKupusoglu/find-first-id | 025061782cfb6b1300bebeaa1f3c0e4df27211a5 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "../include/kcommon_tests.h"
#include "../../src/include/kvector.h"
kcommon_tests<kupid::kvector> test_kvector{"kupid::kvector"};
TEST(TestKVector, SizeZero) {
test_kvector.test_size_zero();
}
TEST(TestKVector, SizeOne) {
test_kvector.test_size_one();
}
TEST(TestKVector, Si... | 19 | 61 | 0.736842 | OrhanKupusoglu |
bbcab6e5eb97ed4e4c7d6b2bca67ec20f072dc1f | 1,690 | tcc | C++ | ulmblas/level2/hpur2.tcc | sneha0401/ulmBLAS | 2b7665c6abc1784fe4041febd9d12de519ef4f08 | [
"BSD-3-Clause"
] | 95 | 2015-05-14T15:21:44.000Z | 2022-03-17T08:02:08.000Z | ulmblas/level2/hpur2.tcc | sneha0401/ulmBLAS | 2b7665c6abc1784fe4041febd9d12de519ef4f08 | [
"BSD-3-Clause"
] | 4 | 2020-06-25T14:59:49.000Z | 2022-02-16T12:45:00.000Z | ulmblas/level2/hpur2.tcc | sneha0401/ulmBLAS | 2b7665c6abc1784fe4041febd9d12de519ef4f08 | [
"BSD-3-Clause"
] | 40 | 2015-09-14T02:43:43.000Z | 2021-12-26T11:43:36.000Z | #ifndef ULMBLAS_LEVEL2_HPUR2_TCC
#define ULMBLAS_LEVEL2_HPUR2_TCC 1
#include <ulmblas/auxiliary/conjugate.h>
#include <ulmblas/auxiliary/real.h>
#include <ulmblas/level1extensions/axpy2v.h>
#include <ulmblas/level2/hpur2.h>
namespace ulmBLAS {
template <typename IndexType, typename Alpha, typename TX, typename TY,
... | 23.802817 | 71 | 0.478107 | sneha0401 |
bbcb7f036369bf66a496a344ac3d96e25f6c73be | 6,964 | cpp | C++ | common/Uart.cpp | loliot/lot-API | cec96c68450c1f3730480a8c142dc98e0fd35f17 | [
"MIT"
] | 2 | 2021-03-07T22:54:42.000Z | 2021-07-07T23:56:10.000Z | common/Uart.cpp | loliot/lot-API | cec96c68450c1f3730480a8c142dc98e0fd35f17 | [
"MIT"
] | 16 | 2019-10-10T06:37:59.000Z | 2020-01-29T09:56:06.000Z | common/Uart.cpp | loliot/lot-API | cec96c68450c1f3730480a8c142dc98e0fd35f17 | [
"MIT"
] | 20 | 2019-10-08T11:16:11.000Z | 2020-01-05T13:26:45.000Z | /*
* MIT License
* Copyright (c) 2019-2020 Hyeonki Hong <hhk7734@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the righ... | 27.309804 | 97 | 0.572229 | loliot |
bbd36d23c059c09b16b1a684061a261146c07123 | 802 | cpp | C++ | 89-Gray Code.cpp | iaxax/leetcode | 47f0ed33fe943c40c31e237453b82731688b70ce | [
"MIT"
] | null | null | null | 89-Gray Code.cpp | iaxax/leetcode | 47f0ed33fe943c40c31e237453b82731688b70ce | [
"MIT"
] | null | null | null | 89-Gray Code.cpp | iaxax/leetcode | 47f0ed33fe943c40c31e237453b82731688b70ce | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> grayCode(int n) {
vector<int> v(n + 1, 1);
for (int i = 1; i <= n; ++i) {
v[i] = v[i - 1] * 2;
}
vector<int> result = {0};
result.reserve(v[n]);
for (int i = 0; i < n; ++i) {
int sz = res... | 23.588235 | 52 | 0.387781 | iaxax |
bbd3b343fce753023dfc6462e0fb3caa48a0136e | 1,415 | cpp | C++ | src/frontend/Gui/Gui_textures.cpp | bpapaspyros/RobSim | b126e892910085fde4d14f50380b8db44fa7cd24 | [
"MIT"
] | null | null | null | src/frontend/Gui/Gui_textures.cpp | bpapaspyros/RobSim | b126e892910085fde4d14f50380b8db44fa7cd24 | [
"MIT"
] | null | null | null | src/frontend/Gui/Gui_textures.cpp | bpapaspyros/RobSim | b126e892910085fde4d14f50380b8db44fa7cd24 | [
"MIT"
] | null | null | null | #include <iostream>
#include <SOIL/SOIL.h>
#include "frontend/Gui/Gui_textures.h"
Gui_textures::Gui_textures(){
background = "../res/world/moon.jpg";
}
/*- -------------------------------------------------------------- -*/
GLuint Gui_textures::loadEpicTex(std::string filename){
GLuint tex;
tex = S... | 24.824561 | 91 | 0.475618 | bpapaspyros |
bbd6b046403f207d4c30199808bc32c1844dd87a | 462 | cpp | C++ | Smallest_Numbers_of_Notes.cpp | omkarugale7/codechef-questions | 05cb8f4f9e5bded9ca3b8ee4e913bdd314cb0585 | [
"MIT"
] | null | null | null | Smallest_Numbers_of_Notes.cpp | omkarugale7/codechef-questions | 05cb8f4f9e5bded9ca3b8ee4e913bdd314cb0585 | [
"MIT"
] | null | null | null | Smallest_Numbers_of_Notes.cpp | omkarugale7/codechef-questions | 05cb8f4f9e5bded9ca3b8ee4e913bdd314cb0585 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int t;
cin >> t;
for (int i = 0; i < t; i++)
{
int n, ans = 0, j = 0;
cin >> n;
int re[6] = {100, 50, 10, 5, 2, 1};
while (n > 0)
{
int b = n / re[j];
if (b != 0)
{
... | 17.111111 | 43 | 0.292208 | omkarugale7 |
bbd8e68c1fd78dd58ba6e7301382aa1174829bbe | 1,552 | cpp | C++ | test/unit-tests/allocator/context_manager/gc_ctx/gc_ctx_test.cpp | so931/poseidonos | 2aa82f26bfbd0d0aee21cd0574779a655634f08c | [
"BSD-3-Clause"
] | 1 | 2022-02-07T23:30:50.000Z | 2022-02-07T23:30:50.000Z | test/unit-tests/allocator/context_manager/gc_ctx/gc_ctx_test.cpp | so931/poseidonos | 2aa82f26bfbd0d0aee21cd0574779a655634f08c | [
"BSD-3-Clause"
] | null | null | null | test/unit-tests/allocator/context_manager/gc_ctx/gc_ctx_test.cpp | so931/poseidonos | 2aa82f26bfbd0d0aee21cd0574779a655634f08c | [
"BSD-3-Clause"
] | null | null | null | #include "src/allocator/context_manager/gc_ctx/gc_ctx.h"
#include <gtest/gtest.h>
#include "test/unit-tests/allocator/context_manager/block_allocation_status_mock.h"
using testing::NiceMock;
namespace pos
{
TEST(GcCtx, GetCurrentGcMode_TestModeNoGC)
{
// given
NiceMock<MockBlockAllocationStatus> allocStatus... | 22.823529 | 83 | 0.691366 | so931 |
bbd98f5647e0f85eb95a40172c343e4062d678b9 | 3,683 | cpp | C++ | src/src/CVDecoder.cpp | AydinyanNarek/OpenCV | 202551bd10cbd66f77e8dc008808cb499be21cc3 | [
"MIT"
] | 1 | 2020-06-22T08:48:51.000Z | 2020-06-22T08:48:51.000Z | src/src/CVDecoder.cpp | AydinyanNarek/OpenCV | 202551bd10cbd66f77e8dc008808cb499be21cc3 | [
"MIT"
] | null | null | null | src/src/CVDecoder.cpp | AydinyanNarek/OpenCV | 202551bd10cbd66f77e8dc008808cb499be21cc3 | [
"MIT"
] | null | null | null | #include "../include/CVDecoder.h"
#include "opencv2/videoio/legacy/constants_c.h"
#include "opencv2/video/background_segm.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/video.hpp"
#include <future>
void BaseVideo::registerErrors() {
Errors::ErrorRegister::registerErrors({
{"FileOpenError", ... | 29.230159 | 130 | 0.609014 | AydinyanNarek |
bbda226ea166b485f1acf2d086c965e59642a6ae | 1,815 | cpp | C++ | Source/Scene/CommonTool.cpp | hipiPan/effects | d9003f71e6fb485d054fb198cfdf5b944e2e158f | [
"MIT"
] | 2 | 2019-10-14T14:48:29.000Z | 2019-10-14T15:45:25.000Z | Source/Scene/CommonTool.cpp | hipiPan/effects | d9003f71e6fb485d054fb198cfdf5b944e2e158f | [
"MIT"
] | null | null | null | Source/Scene/CommonTool.cpp | hipiPan/effects | d9003f71e6fb485d054fb198cfdf5b944e2e158f | [
"MIT"
] | null | null | null | #include "CommonTool.h"
#include "Core/Utility/Log.h"
#include "UI/UISystem.h"
EFFECTS_NAMESPACE_BEGIN
Camera::Camera(glm::vec3 position, float yaw, float pitch)
{
m_position = position;
m_front = glm::vec3(0, 0, -1);
m_up = glm::vec3(0, 1, 0);
m_yaw = yaw;
m_pitch = pitch;
}
Camera::~Camera()
{
}
void Camera::Mo... | 20.862069 | 94 | 0.699174 | hipiPan |
bbdaddc5a5d700c11c383e5d4c60e5373fd34440 | 1,788 | cpp | C++ | Util/GetFilenameForFileURL.cpp | yoann01/FabricUI | d4d24f25245b8ccd2d206aded2b6c5f2aca09155 | [
"BSD-3-Clause"
] | null | null | null | Util/GetFilenameForFileURL.cpp | yoann01/FabricUI | d4d24f25245b8ccd2d206aded2b6c5f2aca09155 | [
"BSD-3-Clause"
] | null | null | null | Util/GetFilenameForFileURL.cpp | yoann01/FabricUI | d4d24f25245b8ccd2d206aded2b6c5f2aca09155 | [
"BSD-3-Clause"
] | null | null | null | //
// Copyright (c) 2010-2017 Fabric Software Inc. All rights reserved.
//
// Must come first!!
#include <FTL/Config.h>
#if defined(FTL_OS_DARWIN)
#include <CoreFoundation/CoreFoundation.h>
#endif
#include <FabricUI/Util/GetFilenameForFileURL.h>
namespace FabricUI {
namespace Util {
QString GetFilenameForFileURL( ... | 24.493151 | 68 | 0.612975 | yoann01 |
bbdd15c899c408ad89073c84f54de3654bf7bdec | 131 | hh | C++ | src/Exception/StopPropagationUnsafeException.hh | GroovyCarrot/hhvm-event-dispatcher | 0140f298c06ce60eeb2f07e7cc1f95aeca5ca853 | [
"MIT"
] | null | null | null | src/Exception/StopPropagationUnsafeException.hh | GroovyCarrot/hhvm-event-dispatcher | 0140f298c06ce60eeb2f07e7cc1f95aeca5ca853 | [
"MIT"
] | null | null | null | src/Exception/StopPropagationUnsafeException.hh | GroovyCarrot/hhvm-event-dispatcher | 0140f298c06ce60eeb2f07e7cc1f95aeca5ca853 | [
"MIT"
] | null | null | null | <?hh // strict
namespace GroovyCarrot\Event\Exception;
final class StopPropagationUnsafeException extends \RuntimeException
{
}
| 14.555556 | 68 | 0.80916 | GroovyCarrot |
bbde5f10bf85a778b7cc6e6582601b3d1b8ab41b | 1,522 | cpp | C++ | src/minoru_driver.cpp | srv/minoru_driver | 24718626df4856546c92ba67ec1aa614f10d63f9 | [
"MIT"
] | null | null | null | src/minoru_driver.cpp | srv/minoru_driver | 24718626df4856546c92ba67ec1aa614f10d63f9 | [
"MIT"
] | null | null | null | src/minoru_driver.cpp | srv/minoru_driver | 24718626df4856546c92ba67ec1aa614f10d63f9 | [
"MIT"
] | null | null | null | #include <ros/ros.h>
#include "opencv2/opencv.hpp"
using namespace std;
class MinoruDriver
{
ros::NodeHandle nh_;
ros::NodeHandle nh_private_;
int left_dev_idx_, right_dev_idx_;
public:
MinoruDriver() : nh_private_("~")
{
nh_private_.param("left_dev_idx", left_dev_idx_, 0);
nh_private_.param("righ... | 20.293333 | 135 | 0.632063 | srv |
bbe077c3c4c2315afac111f90087d1336a11f9a2 | 2,357 | cc | C++ | src/fdb5/pmem/PMemIndexLocation.cc | dvuckovic/fdb | c529bf5293d1f5e33048b1b12e7fdfbf4d7448b2 | [
"Apache-2.0"
] | 5 | 2020-01-03T10:23:05.000Z | 2021-10-21T12:52:47.000Z | src/fdb5/pmem/PMemIndexLocation.cc | dvuckovic/fdb | c529bf5293d1f5e33048b1b12e7fdfbf4d7448b2 | [
"Apache-2.0"
] | null | null | null | src/fdb5/pmem/PMemIndexLocation.cc | dvuckovic/fdb | c529bf5293d1f5e33048b1b12e7fdfbf4d7448b2 | [
"Apache-2.0"
] | 1 | 2021-07-08T16:26:06.000Z | 2021-07-08T16:26:06.000Z | /*
* (C) Copyright 1996- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an interg... | 28.059524 | 120 | 0.654221 | dvuckovic |
bbe2dceeb3a33c2ad9ec4e423208ef9ccfbd0662 | 677 | cpp | C++ | core/fxcodec/jpeg/jpeg_common.cpp | sanarea/pdfium | 632a6cb844457a97dd48b97ad69ab365aeb17491 | [
"Apache-2.0"
] | 25 | 2019-05-07T16:16:40.000Z | 2022-03-30T09:04:00.000Z | core/fxcodec/jpeg/jpeg_common.cpp | sanarea/pdfium | 632a6cb844457a97dd48b97ad69ab365aeb17491 | [
"Apache-2.0"
] | 4 | 2020-10-20T13:09:56.000Z | 2021-04-10T00:23:35.000Z | core/fxcodec/jpeg/jpeg_common.cpp | sanarea/pdfium | 632a6cb844457a97dd48b97ad69ab365aeb17491 | [
"Apache-2.0"
] | 11 | 2019-09-11T20:43:10.000Z | 2022-03-30T09:04:01.000Z | // Copyright 2020 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fxcodec/jpeg/jpeg_common.h"
extern "C" {
void src_do_nothing(... | 24.178571 | 80 | 0.763663 | sanarea |
bbe62e6c7c990f0e77c045f19f8681629a5d5230 | 1,112 | cpp | C++ | 1st/binary_tree_maximum_path_sum.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 1st/binary_tree_maximum_path_sum.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 1st/binary_tree_maximum_path_sum.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
int maxPathSum(TreeNode* root) {
if (!root)
return 0;
int max = root->val;
ma... | 20.981132 | 80 | 0.530576 | buptlxb |
bbec70110e809c6967064542c7d91bb44ba9dd5a | 345 | hpp | C++ | src/engine/effects/transition.hpp | Blackhawk-TA/32blit-rpg | eaad46e1eeab6765a6b8f6e31a2d196aeeaba6f9 | [
"MIT"
] | 1 | 2021-12-31T23:52:57.000Z | 2021-12-31T23:52:57.000Z | src/engine/effects/transition.hpp | Blackhawk-TA/GateKeeper | 49a260bf7ba2304f1649b5ed487bc1e55028e672 | [
"MIT"
] | null | null | null | src/engine/effects/transition.hpp | Blackhawk-TA/GateKeeper | 49a260bf7ba2304f1649b5ed487bc1e55028e672 | [
"MIT"
] | null | null | null | //
// Created by daniel on 04.09.21.
//
#pragma once
#include "../../utils/utils.hpp"
namespace transition {
enum TransitionState {
INACTIVE = 0,
FADING_IN = 1,
BLACKED_OUT = 2,
CALLBACK_EXECUTED = 3,
FADING_OUT = 4,
};
bool in_process();
void draw();
void update(uint32_t time);
void start(std::funct... | 15.681818 | 44 | 0.657971 | Blackhawk-TA |
bbedf375e29f6763894e3215a28d18a7eeb1c5ac | 622 | cpp | C++ | EJERCICIOS/EJERCICIO C++/Examen II parcial/main.cpp | dianaM182/cpp | 45b0e688b00f5a6f4483aba13904b5d760806726 | [
"MIT"
] | null | null | null | EJERCICIOS/EJERCICIO C++/Examen II parcial/main.cpp | dianaM182/cpp | 45b0e688b00f5a6f4483aba13904b5d760806726 | [
"MIT"
] | null | null | null | EJERCICIOS/EJERCICIO C++/Examen II parcial/main.cpp | dianaM182/cpp | 45b0e688b00f5a6f4483aba13904b5d760806726 | [
"MIT"
] | null | null | null | #include <iostream>
#include <windows.h>
#include <conio.h>
#include <stdlib.h>
#include <time.h>
#include "juego.h"
using namespace std;
int main ()
{
char tecla;
int puntos = 0 ;
int xPos = 30 , yPos = 20 ;
inicializarArreglo ();
dificultad ();
gotoxy(50,2);
cout << puntos;
pintar ... | 16.810811 | 63 | 0.533762 | dianaM182 |
bbf0a7a66b0ee02ead8c4c703ec62112b95514a8 | 880 | hpp | C++ | src/config.hpp | niclasr/crosswrench | 6853721d4915bda559daa8941fcbf268230959e6 | [
"MIT"
] | null | null | null | src/config.hpp | niclasr/crosswrench | 6853721d4915bda559daa8941fcbf268230959e6 | [
"MIT"
] | null | null | null | src/config.hpp | niclasr/crosswrench | 6853721d4915bda559daa8941fcbf268230959e6 | [
"MIT"
] | null | null | null | #if !defined(_SRC_CONFIG_HPP_)
#define _SRC_CONFIG_HPP_
#include <cxxopts.hpp>
#include <map>
#include <string>
namespace crosswrench {
class config
{
public:
static config *instance();
bool setup(cxxopts::ParseResult &);
bool setup(std::map<std::string, std::string> &);
std::string get_value(std:... | 24.444444 | 64 | 0.6875 | niclasr |
bbf2d90c98fd385db609fd3dcfe93d0f8c9bed99 | 2,911 | cxx | C++ | main/connectivity/source/drivers/jdbc/JBigDecimal.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/connectivity/source/drivers/jdbc/JBigDecimal.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/connectivity/source/drivers/jdbc/JBigDecimal.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.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 y... | 33.848837 | 115 | 0.666438 | Grosskopf |
bbf53e86095496ff574033e1ca25641b62a54cdd | 2,333 | cc | C++ | vcs/src/model/GetDeviceVideoUrlRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | vcs/src/model/GetDeviceVideoUrlRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | vcs/src/model/GetDeviceVideoUrlRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud 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 required... | 24.302083 | 78 | 0.74925 | iamzken |
bbf5b2c4c0f9c577a3cf2e2b567844544922714c | 2,615 | cpp | C++ | solved_problems/276D.cpp | archit-1997/codeforces | 6f78a3ed5930531159ae22f7b70dc56e37a9e240 | [
"MIT"
] | 1 | 2021-01-27T16:37:31.000Z | 2021-01-27T16:37:31.000Z | solved_problems/276D.cpp | archit-1997/codeforces | 6f78a3ed5930531159ae22f7b70dc56e37a9e240 | [
"MIT"
] | null | null | null | solved_problems/276D.cpp | archit-1997/codeforces | 6f78a3ed5930531159ae22f7b70dc56e37a9e240 | [
"MIT"
] | null | null | null | /*A little girl loves problems on bitwise operations very much. Here's one of
them.
You are given two integers l and r. Let's consider the values of for all pairs
of integers a and b (l ≤ a ≤ b ≤ r). Your task is to find the maximum value
among all considered ones.
Expression means applying bitwise excluding o... | 19.810606 | 81 | 0.555641 | archit-1997 |
bbf775190e7cb605a20e6a75a4f952682d6c5ab7 | 2,597 | cc | C++ | tests/si/rendering.cc | juliusnehring/arcana-samples | b5d71c114f353b278323b96450b1bfcd947336b7 | [
"MIT"
] | null | null | null | tests/si/rendering.cc | juliusnehring/arcana-samples | b5d71c114f353b278323b96450b1bfcd947336b7 | [
"MIT"
] | null | null | null | tests/si/rendering.cc | juliusnehring/arcana-samples | b5d71c114f353b278323b96450b1bfcd947336b7 | [
"MIT"
] | null | null | null | #include <nexus/app.hh>
#include <resource-system/res.hh>
#include <phantasm-renderer/pr.hh>
#include <structured-interface/element_tree.hh>
#include <structured-interface/gui.hh>
#include <structured-interface/layout/aabb_layout.hh>
#include <structured-interface/si.hh>
#include <arcana-incubator/device-abstractio... | 32.873418 | 93 | 0.471698 | juliusnehring |
bbf8a32a55fd0365ced4e6755b380389560f0481 | 239 | cpp | C++ | Sources/Core/cpp_cli/LinguisticsKernel/AnaphoraResolution.cpp | elzin/SentimentAnalysisService | 41fba2ef49746473535196e89a5e49250439fd83 | [
"MIT"
] | 2 | 2021-07-07T19:39:11.000Z | 2021-12-02T15:54:15.000Z | Sources/Core/cpp_cli/LinguisticsKernel/AnaphoraResolution.cpp | elzin/SentimentAnalysisService | 41fba2ef49746473535196e89a5e49250439fd83 | [
"MIT"
] | null | null | null | Sources/Core/cpp_cli/LinguisticsKernel/AnaphoraResolution.cpp | elzin/SentimentAnalysisService | 41fba2ef49746473535196e89a5e49250439fd83 | [
"MIT"
] | 1 | 2021-12-01T17:48:20.000Z | 2021-12-01T17:48:20.000Z | #include "StdAfx.h"
#include "AnaphoraResolution.h"
namespace SS
{
namespace LinguisticProcessor
{
System::String* CAnaphoraResolution::ResovleAnaphoras(System::String* xmlData)
{
//System::Xml::XmlDocument* xdoc =
return "";
}
}
} | 13.277778 | 78 | 0.732218 | elzin |
bbf8daeb17bf1b808e9e5fcdc0a99a7314a4bba0 | 342 | cpp | C++ | alignment/format/CompareSequencesPrinter.cpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 4 | 2015-07-03T11:59:54.000Z | 2018-05-17T00:03:22.000Z | alignment/format/CompareSequencesPrinter.cpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 79 | 2015-06-29T18:07:21.000Z | 2018-09-19T13:38:39.000Z | alignment/format/CompareSequencesPrinter.cpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 19 | 2015-06-23T08:43:29.000Z | 2021-04-28T18:37:47.000Z | #include <alignment/format/CompareSequencesPrinter.hpp>
void CompareSequencesOutput::PrintHeader(std::ostream &out)
{
out << "qName qLength qStart qEnd qStrand "
<< "tName tLength tStart tEnd tStrand "
<< "score numMatch numMismatch numIns numDel "
<< "mapQV qAlignedSeq matchPattern tAligne... | 34.2 | 69 | 0.704678 | ggraham |
bbf93efa86bcd22abe2d82d7272be8dbc773bbe7 | 4,577 | cpp | C++ | Tools/EditorFramework/Assets/Implementation/AssetBrowserDlg.cpp | eltld/ezEngine | 3230235249dd2769f166872b753efd6bd8347c98 | [
"CC-BY-3.0"
] | null | null | null | Tools/EditorFramework/Assets/Implementation/AssetBrowserDlg.cpp | eltld/ezEngine | 3230235249dd2769f166872b753efd6bd8347c98 | [
"CC-BY-3.0"
] | null | null | null | Tools/EditorFramework/Assets/Implementation/AssetBrowserDlg.cpp | eltld/ezEngine | 3230235249dd2769f166872b753efd6bd8347c98 | [
"CC-BY-3.0"
] | 1 | 2020-03-08T04:55:16.000Z | 2020-03-08T04:55:16.000Z | #include <PCH.h>
#include <EditorFramework/Assets/AssetBrowserDlg.moc.h>
#include <EditorFramework/EditorApp/EditorApp.moc.h>
#include <QSettings>
#include <QFileDialog>
bool ezAssetBrowserDlg::s_bShowItemsInSubFolder = true;
bool ezAssetBrowserDlg::s_bSortByRecentUse = true;
ezMap<ezString, ezString> ezAssetBrowserDl... | 33.903704 | 134 | 0.785667 | eltld |
bbfb4ef8311162faaec0768c6d394198f212dd38 | 1,934 | hpp | C++ | include/codegen/include/UnityEngine/Playables/ScriptPlayableBinding.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/Playables/ScriptPlayableBinding.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/Playables/ScriptPlayableBinding.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:32 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
#include "utils/i... | 40.291667 | 140 | 0.751293 | Futuremappermydud |
01023635c6b74cc4156bb6c32a9ac47db8f07603 | 13,177 | cpp | C++ | tst/amazon/dsstne/engine/TestNNDataSet.cpp | farruhnet/AmazonDeepEngine | f64044d1e467333d0c9bb0643f0edf75328c503b | [
"Apache-2.0"
] | 3,924 | 2016-05-10T22:40:39.000Z | 2017-05-02T17:54:20.000Z | tst/amazon/dsstne/engine/TestNNDataSet.cpp | saminfante/amazon-dsstne | f64044d1e467333d0c9bb0643f0edf75328c503b | [
"Apache-2.0"
] | 88 | 2016-05-11T05:11:45.000Z | 2017-04-24T02:34:20.000Z | tst/amazon/dsstne/engine/TestNNDataSet.cpp | saminfante/amazon-dsstne | f64044d1e467333d0c9bb0643f0edf75328c503b | [
"Apache-2.0"
] | 633 | 2016-05-10T23:07:33.000Z | 2017-05-02T11:33:50.000Z | #include <cppunit/extensions/HelperMacros.h>
#include "amazon/dsstne/engine/GpuTypes.h"
#include "amazon/dsstne/engine/NNTypes.h"
#include "amazon/dsstne/engine/NNLayer.h"
class TestNNDataSet : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE(TestNNDataSet);
CPPUNIT_TEST(testCreateDenseDataset);
CPPUNIT_TES... | 37.648571 | 120 | 0.667982 | farruhnet |
0104f5a20428da8cf4052c000b8a9516779a986b | 6,076 | cc | C++ | chrome/browser/extensions/extension_user_script_loader.cc | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/extensions/extension_user_script_loader.cc | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/extensions/extension_user_script_loader.cc | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-04-04T13:34:56.000Z | 2020-11-04T07:17:52.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/extensions/extension_user_script_loader.h"
#include <set>
#include <string>
#include "base/bind.h"
#include "base/bind_helpers.... | 36.383234 | 80 | 0.691409 | hefen1 |
0107174051aedc2d3deca281915d982f230b7543 | 51 | cpp | C++ | grafi/mst.cpp | malorubiuz/tutorato_olimpiadi2021 | 86736147af5f47da5cc3276bd9a894977bdee073 | [
"Unlicense"
] | null | null | null | grafi/mst.cpp | malorubiuz/tutorato_olimpiadi2021 | 86736147af5f47da5cc3276bd9a894977bdee073 | [
"Unlicense"
] | null | null | null | grafi/mst.cpp | malorubiuz/tutorato_olimpiadi2021 | 86736147af5f47da5cc3276bd9a894977bdee073 | [
"Unlicense"
] | null | null | null | // https://training.olinfo.it/#/task/mst/statement
| 25.5 | 50 | 0.72549 | malorubiuz |
010ca98526703b0679373efbc1558ea33f88ce19 | 13,270 | hpp | C++ | src/kre/Color.hpp | sweetkristas/swiftly | 0b5c2badc88637b8bdaa841a45d1babd8f12a703 | [
"BSL-1.0",
"Zlib",
"BSD-3-Clause"
] | null | null | null | src/kre/Color.hpp | sweetkristas/swiftly | 0b5c2badc88637b8bdaa841a45d1babd8f12a703 | [
"BSL-1.0",
"Zlib",
"BSD-3-Clause"
] | null | null | null | src/kre/Color.hpp | sweetkristas/swiftly | 0b5c2badc88637b8bdaa841a45d1babd8f12a703 | [
"BSL-1.0",
"Zlib",
"BSD-3-Clause"
] | null | null | null | /*
Copyright (C) 2013-2014 by Kristina Simpson <sweet.kristas@gmail.com>
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 pur... | 46.725352 | 104 | 0.685757 | sweetkristas |
010d96856a034d744699b0f519c2b53f6f22f4f2 | 1,949 | cpp | C++ | examples/BlockOut3000/src/BlockOut.cpp | iboB/maibo | df43ddf82b3c79e00f3d2c8b38db181e5edae264 | [
"MIT"
] | 4 | 2015-08-07T09:11:15.000Z | 2018-01-03T15:47:04.000Z | examples/BlockOut3000/src/BlockOut.cpp | iboB/maibo | df43ddf82b3c79e00f3d2c8b38db181e5edae264 | [
"MIT"
] | null | null | null | examples/BlockOut3000/src/BlockOut.cpp | iboB/maibo | df43ddf82b3c79e00f3d2c8b38db181e5edae264 | [
"MIT"
] | null | null | null | // MaiBo - BlockOut3000
// Copyright(c) 2015 Borislav Stanimirov
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// http://opensource.org/licenses/MIT
//
#include "BlockOut.h"
#include <maibo/Resources/ResourceManager.h>
#include <maibo/Common/high_res_clock.h>
#include... | 18.740385 | 64 | 0.675731 | iboB |
0115223ec2252299710c1da0003e077f5d7f1d70 | 2,054 | cpp | C++ | src/python/rcl/signal_routing.cpp | s3a-spatialaudio/VISR | 55f6289bc5058d4898106f3520e1a60644ffb3ab | [
"ISC"
] | 17 | 2019-03-12T14:52:22.000Z | 2021-11-09T01:16:23.000Z | src/python/rcl/signal_routing.cpp | s3a-spatialaudio/VISR | 55f6289bc5058d4898106f3520e1a60644ffb3ab | [
"ISC"
] | null | null | null | src/python/rcl/signal_routing.cpp | s3a-spatialaudio/VISR | 55f6289bc5058d4898106f3520e1a60644ffb3ab | [
"ISC"
] | 2 | 2019-08-11T12:53:07.000Z | 2021-06-22T10:08:08.000Z | /* Copyright Institute of Sound and Vibration Research - All rights reserved */
#include <librcl/signal_routing.hpp>
#include <libpml/signal_routing_parameter.hpp>
#include <libvisr/atomic_component.hpp>
#include <libvisr/composite_component.hpp>
#include <libvisr/signal_flow_context.hpp>
#include <pybind11/pybind1... | 34.813559 | 90 | 0.61149 | s3a-spatialaudio |
011826155d71a772bbc03d9e112238400f826590 | 1,500 | cpp | C++ | books/tech/cpp/std-17/n_m_josuttis-cpp_std_lib/ch_18-concurrency/03-std_thread/main.cpp | ordinary-developer/education | 1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58 | [
"MIT"
] | null | null | null | books/tech/cpp/std-17/n_m_josuttis-cpp_std_lib/ch_18-concurrency/03-std_thread/main.cpp | ordinary-developer/education | 1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58 | [
"MIT"
] | null | null | null | books/tech/cpp/std-17/n_m_josuttis-cpp_std_lib/ch_18-concurrency/03-std_thread/main.cpp | ordinary-developer/education | 1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58 | [
"MIT"
] | null | null | null | #include <thread>
#include <chrono>
#include <random>
#include <exception>
#include <iostream>
void doSomething(int num, char c) noexcept {
try {
std::default_random_engine dre{ (long unsigned int)(42 * c) };
std::uniform_int_distribution<int> id{ 10, 1000 };
for (int i{0}; i < num; ++i) {
... | 30 | 82 | 0.49 | ordinary-developer |
01199bd7dec47b449ce3b993524232a2e30e2273 | 4,723 | cc | C++ | mojo/edk/system/channel_endpoint_unittest.cc | jason-simmons/flutter_buildroot | 1c9494e60378bd119d910d530344077fc091b3a5 | [
"BSD-3-Clause"
] | 1 | 2020-04-28T14:35:10.000Z | 2020-04-28T14:35:10.000Z | mojo/edk/system/channel_endpoint_unittest.cc | jason-simmons/flutter_buildroot | 1c9494e60378bd119d910d530344077fc091b3a5 | [
"BSD-3-Clause"
] | null | null | null | mojo/edk/system/channel_endpoint_unittest.cc | jason-simmons/flutter_buildroot | 1c9494e60378bd119d910d530344077fc091b3a5 | [
"BSD-3-Clause"
] | 1 | 2020-04-28T14:35:11.000Z | 2020-04-28T14:35:11.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 "mojo/edk/system/channel_endpoint.h"
#include <memory>
#include <utility>
#include "mojo/edk/system/channel_test_base.h"
#include "mojo/edk/sys... | 33.978417 | 79 | 0.745501 | jason-simmons |
011dbcc21459af503b5f4cbd95f68d50159949ae | 2,863 | cpp | C++ | src/qmf/PosixEventNotifierImpl.cpp | irinabov/debian-qpid-cpp-1.35.0 | 98b0597071c0a5f0cc407a35d5a4690d9189065e | [
"Apache-2.0"
] | 1 | 2017-11-29T09:19:02.000Z | 2017-11-29T09:19:02.000Z | src/qmf/PosixEventNotifierImpl.cpp | irinabov/debian-qpid-cpp-1.35.0 | 98b0597071c0a5f0cc407a35d5a4690d9189065e | [
"Apache-2.0"
] | null | null | null | src/qmf/PosixEventNotifierImpl.cpp | irinabov/debian-qpid-cpp-1.35.0 | 98b0597071c0a5f0cc407a35d5a4690d9189065e | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 25.336283 | 101 | 0.691233 | irinabov |
012666f0744f3fa671c5ef6e95a63055ea599901 | 4,812 | hpp | C++ | RobWork/src/rw/loaders/WorkCellLoader.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWork/src/rw/loaders/WorkCellLoader.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWork/src/rw/loaders/WorkCellLoader.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************
* Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 35.124088 | 97 | 0.602868 | ZLW07 |
01291c7f1b1339e2224cb7beea76d52c251d5911 | 2,556 | cpp | C++ | QuantExt/qle/pricingengines/discountingcommodityforwardengine.cpp | mrslezak/Engine | c46ff278a2c5f4162db91a7ab500a0bb8cef7657 | [
"BSD-3-Clause"
] | 335 | 2016-10-07T16:31:10.000Z | 2022-03-02T07:12:03.000Z | QuantExt/qle/pricingengines/discountingcommodityforwardengine.cpp | mrslezak/Engine | c46ff278a2c5f4162db91a7ab500a0bb8cef7657 | [
"BSD-3-Clause"
] | 59 | 2016-10-31T04:20:24.000Z | 2022-01-03T16:39:57.000Z | QuantExt/qle/pricingengines/discountingcommodityforwardengine.cpp | mrslezak/Engine | c46ff278a2c5f4162db91a7ab500a0bb8cef7657 | [
"BSD-3-Clause"
] | 180 | 2016-10-08T14:23:50.000Z | 2022-03-28T10:43:05.000Z | /*
Copyright (C) 2018 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License... | 38.149254 | 118 | 0.70579 | mrslezak |
012a9a9a9d63054e55210b2b055421000c502c34 | 12,570 | cpp | C++ | Attic/AtomicEditorReference/Source/UI/UIResourceFrame.cpp | honigbeutler123/AtomicGameEngine | c53425f19b216eb21ecd3bda85052aaa1a6f2aaa | [
"Apache-2.0",
"MIT"
] | null | null | null | Attic/AtomicEditorReference/Source/UI/UIResourceFrame.cpp | honigbeutler123/AtomicGameEngine | c53425f19b216eb21ecd3bda85052aaa1a6f2aaa | [
"Apache-2.0",
"MIT"
] | null | null | null | Attic/AtomicEditorReference/Source/UI/UIResourceFrame.cpp | honigbeutler123/AtomicGameEngine | c53425f19b216eb21ecd3bda85052aaa1a6f2aaa | [
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
// Please see LICENSE.md in repository root for license information
// https://github.com/AtomicGameEngine/AtomicGameEngine
#include "AtomicEditor.h"
#include <Atomic/Container/ArrayPtr.h>
#include <Atomic/UI/UI.h>
#include <Atomic/IO/Log.h>
#incl... | 25.705521 | 97 | 0.626571 | honigbeutler123 |
012e389215c245c995bada2c7188cf25d9b0c1c2 | 758 | cpp | C++ | examples/cat.cpp | davidwed/sqlrelay_rudiments | 6ccffdfc5fa29f8c0226f3edc2aa888aa1008347 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | examples/cat.cpp | davidwed/sqlrelay_rudiments | 6ccffdfc5fa29f8c0226f3edc2aa888aa1008347 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | examples/cat.cpp | davidwed/sqlrelay_rudiments | 6ccffdfc5fa29f8c0226f3edc2aa888aa1008347 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | #include <rudiments/file.h>
#include <rudiments/stdio.h>
int main(int argc, const char **argv) {
file f;
char buffer[1024];
// for each file specified on the command line...
for (int32_t i=1; i<argc; i++) {
// open the file
if (!f.open(argv[i],O_RDONLY)) {
continue;
}
// read chunks from the file an... | 20.486486 | 53 | 0.649077 | davidwed |
01364d67efa8f300831d925aede8ec3d2bc52368 | 1,722 | cpp | C++ | UVA/AdHoc/195_Anagram.cpp | shiva92/Contests | 720bb3699f774a6ea1f99e888e0cd784e63130c8 | [
"Apache-2.0"
] | null | null | null | UVA/AdHoc/195_Anagram.cpp | shiva92/Contests | 720bb3699f774a6ea1f99e888e0cd784e63130c8 | [
"Apache-2.0"
] | null | null | null | UVA/AdHoc/195_Anagram.cpp | shiva92/Contests | 720bb3699f774a6ea1f99e888e0cd784e63130c8 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <algorithm>
#include <sstream>
#include <set>
#include <climits>
#include <cstdio>
#include <string>
using namespace std;
bool next_permute(int arr[], int start, int end) {
if (start == end)
return false;
if (end - start == 1)
re... | 18.717391 | 59 | 0.54007 | shiva92 |
01365e9f3734e85a8a8317b257856a288f23c9aa | 278 | cpp | C++ | src/guiobject.cpp | Groogy/derelict | 5ca82ae5a5a553e292e388706a27b53840cf3afa | [
"Zlib"
] | null | null | null | src/guiobject.cpp | Groogy/derelict | 5ca82ae5a5a553e292e388706a27b53840cf3afa | [
"Zlib"
] | null | null | null | src/guiobject.cpp | Groogy/derelict | 5ca82ae5a5a553e292e388706a27b53840cf3afa | [
"Zlib"
] | null | null | null | #include "guiobject.hpp"
GuiObject::~GuiObject()
{
}
void GuiObject::update()
{
for(auto& hook : myUpdateHooks)
{
hook(*this);
}
}
void GuiObject::processEvent(const sf::Event&)
{
}
void GuiObject::attachUpdateHook(UpdateHook hook)
{
myUpdateHooks.push_back(hook);
}
| 11.583333 | 49 | 0.697842 | Groogy |
0136a96208f2b3890c4d90590887df753d7e3658 | 118 | cpp | C++ | app/src/app_main.cpp | Darckore/CmakeTemplate | f2d5ba1a17fd7304518e3b8ededfea1d638f8dc8 | [
"Unlicense"
] | null | null | null | app/src/app_main.cpp | Darckore/CmakeTemplate | f2d5ba1a17fd7304518e3b8ededfea1d638f8dc8 | [
"Unlicense"
] | null | null | null | app/src/app_main.cpp | Darckore/CmakeTemplate | f2d5ba1a17fd7304518e3b8ededfea1d638f8dc8 | [
"Unlicense"
] | null | null | null | #include "libsomething/libsource.h"
int main()
{
something::derpy::init();
something::derpy::msg();
return 0;
} | 14.75 | 35 | 0.661017 | Darckore |
013dc4f0bac66a539b63e706331a85a7f75971f9 | 1,461 | cpp | C++ | NetworkManager/SynchrounousTcp/SyncTcpClient.cpp | lahmer/lbcms | 5910aecae63082f838c7be28316764c3ed3a08f1 | [
"MIT"
] | null | null | null | NetworkManager/SynchrounousTcp/SyncTcpClient.cpp | lahmer/lbcms | 5910aecae63082f838c7be28316764c3ed3a08f1 | [
"MIT"
] | null | null | null | NetworkManager/SynchrounousTcp/SyncTcpClient.cpp | lahmer/lbcms | 5910aecae63082f838c7be28316764c3ed3a08f1 | [
"MIT"
] | null | null | null | //
// Created by lahmer on 8/12/16.
//
#include "SyncTcpClient.h"
namespace lbcms{
namespace network{
SyncTcpClient::SyncTcpClient(std::string ipv4, int port){
m_ios = new boost::asio::io_service();
m_endPoint = new boost::asio::ip::tcp::endpoint(boost::asio::ip::address_v4::from_s... | 32.466667 | 113 | 0.540041 | lahmer |
014008b449ed269a8223297ad23cb343eb3f7aaf | 4,505 | cpp | C++ | to/lang/OpenCV-2.2.0/modules/gpu/src/initialization.cpp | eirTony/INDI1 | 42642d8c632da53f60f2610b056547137793021b | [
"MIT"
] | null | null | null | to/lang/OpenCV-2.2.0/modules/gpu/src/initialization.cpp | eirTony/INDI1 | 42642d8c632da53f60f2610b056547137793021b | [
"MIT"
] | 14 | 2016-11-24T10:46:39.000Z | 2016-12-10T07:24:15.000Z | to/lang/OpenCV-2.2.0/modules/gpu/src/initialization.cpp | eirTony/INDI1 | 42642d8c632da53f60f2610b056547137793021b | [
"MIT"
] | null | null | null | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | 35.472441 | 113 | 0.698779 | eirTony |
014956f089ee6588a275ffed9fd8f4f07189301e | 1,943 | hpp | C++ | src/programs/libpfasst_swe_sphere/x/SWE_Sphere_TS_PFASST_lg_irk_lc_n_erk_ver01.hpp | raaphy/sweet | 69fcf1920becd4fd762ded2f726614aae00b3f69 | [
"MIT"
] | 6 | 2017-11-20T08:12:46.000Z | 2021-03-11T15:32:36.000Z | src/programs/libpfasst_swe_sphere/x/SWE_Sphere_TS_PFASST_lg_irk_lc_n_erk_ver01.hpp | raaphy/sweet | 69fcf1920becd4fd762ded2f726614aae00b3f69 | [
"MIT"
] | 4 | 2018-02-02T21:46:33.000Z | 2022-01-11T11:10:27.000Z | src/programs/libpfasst_swe_sphere/x/SWE_Sphere_TS_PFASST_lg_irk_lc_n_erk_ver01.hpp | raaphy/sweet | 69fcf1920becd4fd762ded2f726614aae00b3f69 | [
"MIT"
] | 12 | 2016-03-01T18:33:34.000Z | 2022-02-08T22:20:31.000Z | /*
* SWE_Sphere_TS_PFASST_lg_irk_lf_n_erk.hpp
*
* Created on: 30 May 2017
* Author: Martin Schreiber <SchreiberX@gmail.com>
*/
#ifndef SRC_PROGRAMS_SWE_SPHERE_REXI_SWE_SPHERE_TS_PFASST_LG_IRK_LF_N_ERK_HPP_
#define SRC_PROGRAMS_SWE_SPHERE_REXI_SWE_SPHERE_TS_PFASST_LG_IRK_LF_N_ERK_HPP_
#include <sweet/sphere... | 25.233766 | 82 | 0.808029 | raaphy |
0149eb6a10551bf132bfad7527c9f751d3a9a640 | 1,936 | cpp | C++ | src/Evel/Signal.cpp | hleclerc/Evel | c607adda555f417dfc9fb4de310c07c48ea3642f | [
"Apache-2.0"
] | null | null | null | src/Evel/Signal.cpp | hleclerc/Evel | c607adda555f417dfc9fb4de310c07c48ea3642f | [
"Apache-2.0"
] | null | null | null | src/Evel/Signal.cpp | hleclerc/Evel | c607adda555f417dfc9fb4de310c07c48ea3642f | [
"Apache-2.0"
] | null | null | null | #include "System/SocketUtil.h"
#include "EvLoop.h"
#include "Signal.h"
#include <sys/signalfd.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <errno.h>
namespace Evel {
static int make_signal_fd( const int *sigs ) {
// set up a mask
sigset_t mask;
sigemptyset( &mask );
for( in... | 22 | 96 | 0.496384 | hleclerc |
014b3775fe75b815c2ff0d8d59dcf819ecac80a6 | 498 | hpp | C++ | inference-engine/src/low_precision_transformations/include/low_precision/variadic_split.hpp | monroid/openvino | 8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6 | [
"Apache-2.0"
] | 2,406 | 2020-04-22T15:47:54.000Z | 2022-03-31T10:27:37.000Z | inference-engine/src/low_precision_transformations/include/low_precision/variadic_split.hpp | thomas-yanxin/openvino | 031e998a15ec738c64cc2379d7f30fb73087c272 | [
"Apache-2.0"
] | 4,948 | 2020-04-22T15:12:39.000Z | 2022-03-31T18:45:42.000Z | inference-engine/src/low_precision_transformations/include/low_precision/variadic_split.hpp | thomas-yanxin/openvino | 031e998a15ec738c64cc2379d7f30fb73087c272 | [
"Apache-2.0"
] | 991 | 2020-04-23T18:21:09.000Z | 2022-03-31T18:40:57.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <vector>
#include "split.hpp"
#include "ngraph/node.hpp"
namespace ngraph {
namespace pass {
namespace low_precision {
class LP_TRANSFORMATIONS_API VariadicSplitTransformation : public SplitTransformation {... | 20.75 | 87 | 0.761044 | monroid |
014b650e6d099d9a88f5e71c15b7534533e440d2 | 13,819 | cpp | C++ | src/core/primitives/Instance.cpp | chaosink/tungsten | 88ea02044dbaf20472a8173b6752460b50c096d8 | [
"Apache-2.0",
"Unlicense"
] | 1,655 | 2015-01-12T13:05:37.000Z | 2022-03-31T13:37:57.000Z | src/core/primitives/Instance.cpp | chaosink/tungsten | 88ea02044dbaf20472a8173b6752460b50c096d8 | [
"Apache-2.0",
"Unlicense"
] | 65 | 2015-01-13T08:34:28.000Z | 2021-06-08T05:07:58.000Z | src/core/primitives/Instance.cpp | chaosink/tungsten | 88ea02044dbaf20472a8173b6752460b50c096d8 | [
"Apache-2.0",
"Unlicense"
] | 190 | 2015-01-12T14:53:05.000Z | 2022-03-30T17:30:00.000Z | #include "Instance.hpp"
#include "TriangleMesh.hpp"
#include "sampling/PathSampleGenerator.hpp"
#include "sampling/SampleWarp.hpp"
#include "bsdfs/NullBsdf.hpp"
#include "io/JsonObject.hpp"
#include "io/Scene.hpp"
#include <iomanip>
namespace Tungsten {
void Instance::buildProxy()
{
std::vector<Vec3f> masterS... | 30.106754 | 196 | 0.619799 | chaosink |
014bc0069b9e903f3dac59f1bcb180f4f51c96e5 | 2,258 | cpp | C++ | core/unittest/wrapper/test_knowhere.cpp | Gracieeea/milvus | e44e455acd2731ad7c8f645e6fd13dd8f0eeea86 | [
"Apache-2.0"
] | null | null | null | core/unittest/wrapper/test_knowhere.cpp | Gracieeea/milvus | e44e455acd2731ad7c8f645e6fd13dd8f0eeea86 | [
"Apache-2.0"
] | null | null | null | core/unittest/wrapper/test_knowhere.cpp | Gracieeea/milvus | e44e455acd2731ad7c8f645e6fd13dd8f0eeea86 | [
"Apache-2.0"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 38.271186 | 75 | 0.741364 | Gracieeea |
014caf9301b4fcc559a661bf05d0866733468fc2 | 32,217 | cpp | C++ | src/interpreter/instructions/integer.cpp | lioncash/riscv-emu | e903baf122cbbc2b40f58f4c50ff970893ffe746 | [
"MIT"
] | 1 | 2021-09-17T04:07:26.000Z | 2021-09-17T04:07:26.000Z | src/interpreter/instructions/integer.cpp | lioncash/riscv-emu | e903baf122cbbc2b40f58f4c50ff970893ffe746 | [
"MIT"
] | null | null | null | src/interpreter/instructions/integer.cpp | lioncash/riscv-emu | e903baf122cbbc2b40f58f4c50ff970893ffe746 | [
"MIT"
] | null | null | null | #include <riscy/interpreter/state.hpp>
#include <algorithm>
#include <array>
#include <bit>
#include <type_traits>
#include "common/bit_util.hpp"
#include "interpreter/instructions/helper.hpp"
#include "interpreter/instructions/instructions.hpp"
namespace riscy {
using UnaryBitFn = RISCVState::GPRType (*)(RISCVStat... | 34.236982 | 118 | 0.660055 | lioncash |
014e3fe2bfff7730be6a123335e6461b388f9042 | 232 | cpp | C++ | problems/sortingundersquaredistance/util/generator.cpp | stoman/CompetitiveProgramming | 0000b64369b50e31c6f48939e837bdf6cece8ce4 | [
"MIT"
] | 2 | 2020-12-22T13:21:25.000Z | 2021-12-12T22:26:26.000Z | problems/sortingundersquaredistance/util/generator.cpp | stoman/CompetitiveProgramming | 0000b64369b50e31c6f48939e837bdf6cece8ce4 | [
"MIT"
] | null | null | null | problems/sortingundersquaredistance/util/generator.cpp | stoman/CompetitiveProgramming | 0000b64369b50e31c6f48939e837bdf6cece8ce4 | [
"MIT"
] | null | null | null | #include <stdio.h>
int main() {
int n = 100000;
printf("%d\n", n);
for (int i = 0; i < n; i++) {
printf("%d", 1000000000 - i);
if(i < n - 1) {
printf(" ");
}
}
printf("\n");
} | 17.846154 | 37 | 0.37069 | stoman |
014f17a2c334271589647c73aac1ff688bd40192 | 5,360 | cpp | C++ | WebKit/Source/WebCore/rendering/RenderFullScreen.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | 1 | 2019-06-18T06:52:54.000Z | 2019-06-18T06:52:54.000Z | WebKit/Source/WebCore/rendering/RenderFullScreen.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | null | null | null | WebKit/Source/WebCore/rendering/RenderFullScreen.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2010 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... | 32.682927 | 105 | 0.707276 | JavaScriptTesting |
015443921d65bc1db235a2359a9a93972df22e2d | 1,232 | cpp | C++ | examples/future_types/promises.cpp | alandefreitas/futures | 326957b2bc4238716faecd7a5bff4616d967b4ce | [
"MIT"
] | 10 | 2022-01-07T02:20:54.000Z | 2022-03-11T05:24:13.000Z | examples/future_types/promises.cpp | alandefreitas/futures | 326957b2bc4238716faecd7a5bff4616d967b4ce | [
"MIT"
] | null | null | null | examples/future_types/promises.cpp | alandefreitas/futures | 326957b2bc4238716faecd7a5bff4616d967b4ce | [
"MIT"
] | null | null | null | #include <futures/algorithm.hpp>
#include <futures/futures.hpp>
#include <futures/executor/new_thread_executor.hpp>
#include <iostream>
int
main() {
using namespace futures;
//[inline Inline promise
promise<int> p1;
cfuture<int> f1 = p1.get_future();
p1.set_value(2);
std::cout << f1.get() << '... | 23.245283 | 57 | 0.553571 | alandefreitas |
01564c8a718824868e1cc0161d0162ecb5505980 | 45 | cpp | C++ | cpp/cpp_class/friend/use_tv.cpp | lolyu/aoi | a26e5eb205aafadc7301b2e4acc67915d3bcc935 | [
"MIT"
] | null | null | null | cpp/cpp_class/friend/use_tv.cpp | lolyu/aoi | a26e5eb205aafadc7301b2e4acc67915d3bcc935 | [
"MIT"
] | null | null | null | cpp/cpp_class/friend/use_tv.cpp | lolyu/aoi | a26e5eb205aafadc7301b2e4acc67915d3bcc935 | [
"MIT"
] | null | null | null | #include "tv.h"
int main()
{
return 0;
} | 7.5 | 15 | 0.533333 | lolyu |
0158305873ffccd56f72565a3b3ed3305923a407 | 370 | cpp | C++ | OJ/PT/PT16.cpp | doan201203/truong_doan | 68350b7a24ea266320cd41e1a4878e8a58b3f707 | [
"Apache-2.0"
] | null | null | null | OJ/PT/PT16.cpp | doan201203/truong_doan | 68350b7a24ea266320cd41e1a4878e8a58b3f707 | [
"Apache-2.0"
] | null | null | null | OJ/PT/PT16.cpp | doan201203/truong_doan | 68350b7a24ea266320cd41e1a4878e8a58b3f707 | [
"Apache-2.0"
] | null | null | null | #include<stdio.h>
int main(){
int N[100000], n, count = 0, kt;
scanf("%d", &n);
for(int i = 1 ; i <= n ; i++ ){
scanf("%d", &N[i]);
}
for(int i = 1 ; i <= n ; i++){
kt = N[i] % 19;
if(kt == 0 || kt == 3 || kt == 6 || kt == 9 || kt == 11 || kt == 14 || kt == 17){
c... | 24.666667 | 89 | 0.337838 | doan201203 |
0158d2856b65209b7976459ad302259436420369 | 2,278 | hpp | C++ | include/game.hpp | vvbv/AlphaZero-Univalle | eb4ba2253ea266e3c5cad2cee24401ff95073c23 | [
"MIT"
] | null | null | null | include/game.hpp | vvbv/AlphaZero-Univalle | eb4ba2253ea266e3c5cad2cee24401ff95073c23 | [
"MIT"
] | null | null | null | include/game.hpp | vvbv/AlphaZero-Univalle | eb4ba2253ea266e3c5cad2cee24401ff95073c23 | [
"MIT"
] | 1 | 2018-06-20T19:15:14.000Z | 2018-06-20T19:15:14.000Z | #ifndef GAME_HPP_
#define GAME_HPP_
#include "board.hpp"
#include "state_game.hpp"
#include <climits>
#include <tuple>
class Game{
private:
int max_depth;
struct minmax_game_elements {
int pos_max_row;
int pos_max_column;
int pos_min_row;
... | 36.741935 | 108 | 0.64662 | vvbv |
015af092012a1520d753ae693e0c98ff3a70396c | 1,991 | cpp | C++ | clang-tools-extra/clangd/unittests/support/ThreadingTests.cpp | ingve/llvm-project | 13a467c8d169fc8caf142240382e9fce82a20e5e | [
"Apache-2.0"
] | 1 | 2020-09-10T01:00:18.000Z | 2020-09-10T01:00:18.000Z | clang-tools-extra/clangd/unittests/support/ThreadingTests.cpp | coolstar/llvm-project | e21ccdd5b5667de50de65ee8903a89a21020e89a | [
"Apache-2.0"
] | null | null | null | clang-tools-extra/clangd/unittests/support/ThreadingTests.cpp | coolstar/llvm-project | e21ccdd5b5667de50de65ee8903a89a21020e89a | [
"Apache-2.0"
] | null | null | null | //===-- ThreadingTests.cpp --------------------------------------*- C++ -*-===//
//
// 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
//
//===---------------------------... | 30.630769 | 80 | 0.60673 | ingve |
015b325f0a46dfd8a5c86b43e9fedf1cea828ee7 | 2,420 | cpp | C++ | src/jaegertracing/utils/RateLimiterTest.cpp | dvzubarev/jaeger-client-cpp | 278947e0a87fd310421b6d3170ac005bc51bca82 | [
"Apache-2.0"
] | 193 | 2021-03-27T00:46:13.000Z | 2022-03-29T07:25:00.000Z | src/jaegertracing/utils/RateLimiterTest.cpp | dvzubarev/jaeger-client-cpp | 278947e0a87fd310421b6d3170ac005bc51bca82 | [
"Apache-2.0"
] | 220 | 2018-04-05T15:25:20.000Z | 2022-01-21T02:38:57.000Z | src/jaegertracing/utils/RateLimiterTest.cpp | dvzubarev/jaeger-client-cpp | 278947e0a87fd310421b6d3170ac005bc51bca82 | [
"Apache-2.0"
] | 122 | 2018-04-08T01:07:20.000Z | 2022-03-03T21:14:02.000Z | /*
* Copyright (c) 2017 Uber Technologies, 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 o... | 29.876543 | 75 | 0.720248 | dvzubarev |
015d16aa95d2f873537d151bfddce2ef8e744bf3 | 11,875 | cpp | C++ | medialibrary/src/main/cpp/Common/decoder/DecodeVideoThread.cpp | WakeHao/CainCamera | 34549c18150201d68967f02246991b8bf2d3bfb7 | [
"Apache-2.0"
] | 2,564 | 2017-11-14T07:22:16.000Z | 2022-03-30T13:39:41.000Z | medialibrary/src/main/cpp/Common/decoder/DecodeVideoThread.cpp | WakeHao/CainCamera | 34549c18150201d68967f02246991b8bf2d3bfb7 | [
"Apache-2.0"
] | 166 | 2017-12-15T02:26:24.000Z | 2022-03-05T10:50:03.000Z | medialibrary/src/main/cpp/Common/decoder/DecodeVideoThread.cpp | WakeHao/CainCamera | 34549c18150201d68967f02246991b8bf2d3bfb7 | [
"Apache-2.0"
] | 693 | 2017-09-12T12:20:23.000Z | 2022-03-30T13:39:43.000Z | //
// Created by CainHuang on 2020-02-24.
//
#include "DecodeVideoThread.h"
DecodeVideoThread::DecodeVideoThread() {
LOGD("DecodeVideoThread::constructor()");
av_register_all();
mFrameQueue = nullptr;
mVideoDemuxer = std::make_shared<AVMediaDemuxer>();
mVideoDecoder = std::make_shared<AVVideoDecod... | 22.836538 | 104 | 0.589221 | WakeHao |
015fb70636b9c7727e0ce79f8acaa0cb0e1496e4 | 5,398 | cpp | C++ | engine/src/Core/AppStatus.cpp | MajesticShekel/Strontium | e672e4f7ee0338ef4e29ac61dad3f10905e8d105 | [
"MIT"
] | null | null | null | engine/src/Core/AppStatus.cpp | MajesticShekel/Strontium | e672e4f7ee0338ef4e29ac61dad3f10905e8d105 | [
"MIT"
] | null | null | null | engine/src/Core/AppStatus.cpp | MajesticShekel/Strontium | e672e4f7ee0338ef4e29ac61dad3f10905e8d105 | [
"MIT"
] | null | null | null | #include "Core/AppStatus.h"
appStatus defaultEditorStatus =
{
{
{ "KEY_UNKNOWN", -1 },
{ "KEY_SPACE", 32 },
{ "KEY_APOSTROPHE", 39 },
{ "KEY_COMMA", 44 },
{ "KEY_MINUS", 45 },
{ "KEY_PERIOD", 46 },
{ "KEY_SLASH", 47 },
{ "KEY_0", 48 },
{ "KEY_1", 49 },
{ "KEY_2", 50 },
{ "KEY_3", 51 },
{ "K... | 22.491667 | 79 | 0.524639 | MajesticShekel |
0162b501d7b3cd246245f560572d30c8091d75cc | 1,101 | cpp | C++ | LeetCode/Problems/Algorithms/#658_FindKClosestElements_sol1_binary_search_and_two_pointers_approach_O(logN+K)_time_O(1)_extra_space_32ms_30.8MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#658_FindKClosestElements_sol1_binary_search_and_two_pointers_approach_O(logN+K)_time_O(1)_extra_space_32ms_30.8MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#658_FindKClosestElements_sol1_binary_search_and_two_pointers_approach_O(logN+K)_time_O(1)_extra_space_32ms_30.8MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> findClosestElements(vector<int>& arr, int k, int x) {
const int N = arr.size();
// Step 1: binary search the (lower_bound) position of x in arr
int xPos = lower_bound(arr.begin(), arr.end(), x) - arr.begin();
xPos = min(N - 1, xPos... | 35.516129 | 92 | 0.448683 | Tudor67 |
01648bffc83e30c7daeacfa0ab8001392574c991 | 549 | cpp | C++ | AOC2017/day2/day_2_puzzle_2.cpp | schneiderl/problems-solved | 881895fc262ccd49c278ce38a06c1d2686fb72b6 | [
"Unlicense"
] | null | null | null | AOC2017/day2/day_2_puzzle_2.cpp | schneiderl/problems-solved | 881895fc262ccd49c278ce38a06c1d2686fb72b6 | [
"Unlicense"
] | 2 | 2017-09-29T14:09:48.000Z | 2018-01-25T01:07:31.000Z | AOC2017/day2/day_2_puzzle_2.cpp | schneiderl/problems-solved | 881895fc262ccd49c278ce38a06c1d2686fb72b6 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char const *argv[])
{
int sum = 0;
for (int i = 0; i < 16; ++i){ //because there are 16 rows
int lowest = 5000000000;
int largest = 0;
int curr = 0;
int line[16];
for (int j = 0; j < 16; ++j){
cin>>li... | 17.709677 | 58 | 0.513661 | schneiderl |
0166081927ed5e32c9e1002953709b8a5d537a90 | 437 | cpp | C++ | PAT/B1008.cpp | iphelf/Programming-Practice | 2a95bb7153957b035427046b250bf7ffc6b00906 | [
"WTFPL"
] | null | null | null | PAT/B1008.cpp | iphelf/Programming-Practice | 2a95bb7153957b035427046b250bf7ffc6b00906 | [
"WTFPL"
] | null | null | null | PAT/B1008.cpp | iphelf/Programming-Practice | 2a95bb7153957b035427046b250bf7ffc6b00906 | [
"WTFPL"
] | null | null | null | #include<stdio.h>
#include<algorithm>
using namespace std;
const int MAXN=100;
int a[MAXN];
int main(void) {
// freopen("in.txt","r",stdin);
int N;
long long M;
scanf("%d%lld",&N,&M);
for(int i=0;i<N;i++) scanf("%d",&a[i]);
M=M%N;
reverse(a,a+N-M);
reverse(a+N-M,a+N);
reverse(a,a+N)... | 15.068966 | 61 | 0.510297 | iphelf |
0166fb1d2f6af68b9d32f6594b2a0ce4cdfa1be2 | 1,041 | hpp | C++ | EasyFramework3d/core/gui/ButtonEvent.hpp | sizilium/FlexChess | f12b94e800ddcb00535067eca3b560519c9122e0 | [
"MIT"
] | null | null | null | EasyFramework3d/core/gui/ButtonEvent.hpp | sizilium/FlexChess | f12b94e800ddcb00535067eca3b560519c9122e0 | [
"MIT"
] | null | null | null | EasyFramework3d/core/gui/ButtonEvent.hpp | sizilium/FlexChess | f12b94e800ddcb00535067eca3b560519c9122e0 | [
"MIT"
] | null | null | null | /**
* @file ButtonEvent.hpp
* @author sizilium
* @date 26.12.2007
* @brief This file is part of the Vision Synthesis Easy Framework.\n
* This file has no copyright; you can change everything.
* Visit www.vision-synthesis.de or www.easy-framework.de for further informations.\n
* If there is a bug please send a ma... | 18.263158 | 89 | 0.68684 | sizilium |
016803f139985567256a115aae95e6d70b3971f6 | 550 | hpp | C++ | include/Particles/TriangularPrism.hpp | mtortora/chiralDFT | d5ea5e940d6bc72d96fd9728d042de1e09d3ef85 | [
"MIT"
] | 2 | 2018-01-03T09:33:09.000Z | 2019-06-14T13:29:37.000Z | include/Particles/TriangularPrism.hpp | mtortora/chiralDFT | d5ea5e940d6bc72d96fd9728d042de1e09d3ef85 | [
"MIT"
] | null | null | null | include/Particles/TriangularPrism.hpp | mtortora/chiralDFT | d5ea5e940d6bc72d96fd9728d042de1e09d3ef85 | [
"MIT"
] | null | null | null | #ifndef TRIANGULAR_PRISM_HPP_
#define TRIANGULAR_PRISM_HPP_
#include "rapid2/RAPID.H"
#include "BaseParticle.hpp"
template<typename number>
class TriangularPrism: public BaseParticle<number>
{
public:
TriangularPrism();
~TriangularPrism() {delete Mesh;}
RAPID_model* Mesh;
void Build(int) override;
void Tess... | 16.666667 | 56 | 0.747273 | mtortora |
01681018a312e33a0fd253af2e0f9a3b206d1cf0 | 2,332 | cpp | C++ | lib/core/src/irods_threads.cpp | JustinKyleJames/irods | 59e9db75200e95796ec51ec20eb3b185d9e4b5f5 | [
"BSD-3-Clause"
] | 333 | 2015-01-15T15:42:29.000Z | 2022-03-19T19:16:15.000Z | lib/core/src/irods_threads.cpp | JustinKyleJames/irods | 59e9db75200e95796ec51ec20eb3b185d9e4b5f5 | [
"BSD-3-Clause"
] | 3,551 | 2015-01-02T19:55:40.000Z | 2022-03-31T21:24:56.000Z | lib/core/src/irods_threads.cpp | JustinKyleJames/irods | 59e9db75200e95796ec51ec20eb3b185d9e4b5f5 | [
"BSD-3-Clause"
] | 148 | 2015-01-31T16:13:46.000Z | 2022-03-23T20:23:43.000Z | #include "irods_threads.hpp"
// =-=-=-=-=-=-=-
//
void thread_wait(
thread_context* _ctx ) {
if ( !_ct ) {
return;
}
#ifdef __cplusplus
#else // __cplusplus
#endif // __cplusplus
}
// =-=-=-=-=-=-=-
//
void thread_notify(
thread_context* _ctx ) {
if ( !_ct ) {
return;
}
#ifde... | 19.931624 | 90 | 0.566038 | JustinKyleJames |
6c69bc5b037960781c1885b8ba02cc6577ef3ff3 | 885 | hpp | C++ | stringify/container_traits.hpp | 5cript/SimpleJSON | 878a6341baed91c29630447f6bd480391f563045 | [
"MIT"
] | 4 | 2015-06-25T02:06:13.000Z | 2018-07-11T13:20:24.000Z | stringify/container_traits.hpp | 5cript/SimpleJSON | 878a6341baed91c29630447f6bd480391f563045 | [
"MIT"
] | 14 | 2015-03-29T10:32:21.000Z | 2018-01-25T16:45:08.000Z | stringify/container_traits.hpp | 5cript/SimpleJSON | 878a6341baed91c29630447f6bd480391f563045 | [
"MIT"
] | 2 | 2017-07-16T09:43:22.000Z | 2020-08-30T09:33:40.000Z | #pragma once
// and iterator traits :D
#include <iterator>
#include <type_traits>
template <typename T, template <typename, class = std::allocator <T> > class ContainerT>
struct has_random_access_iterator : std::is_same <
typename std::iterator_traits<typename ContainerT<T>::iterator>::iterator_category
, st... | 35.4 | 88 | 0.757062 | 5cript |
6c6aaa6a485e39b792983c293ac84c7384ebb0bd | 3,427 | hpp | C++ | include/jwt/error_codes.hpp | ValBaturin/cpp-jwt | 8272256dd0105e2e66838dc081e30e638966ca12 | [
"MIT"
] | 324 | 2017-12-27T09:57:20.000Z | 2022-03-30T15:43:27.000Z | include/jwt/error_codes.hpp | ValBaturin/cpp-jwt | 8272256dd0105e2e66838dc081e30e638966ca12 | [
"MIT"
] | 68 | 2018-01-28T15:08:11.000Z | 2021-10-16T15:59:06.000Z | include/jwt/error_codes.hpp | ValBaturin/cpp-jwt | 8272256dd0105e2e66838dc081e30e638966ca12 | [
"MIT"
] | 100 | 2018-01-04T08:09:14.000Z | 2021-12-02T13:37:37.000Z | /*
Copyright (c) 2017 Arun Muralidharan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribut... | 25.014599 | 78 | 0.753137 | ValBaturin |
6c6b1b2db504ed65d544f18498e337eb6b79563c | 1,980 | inl | C++ | thrust/detail/copy.inl | UIKit0/thrust | 7bcbe7e4400ec06463d4c9c8001e0fe57e47b719 | [
"Apache-2.0"
] | 1 | 2021-03-19T07:13:36.000Z | 2021-03-19T07:13:36.000Z | thrust/detail/copy.inl | UIKit0/thrust | 7bcbe7e4400ec06463d4c9c8001e0fe57e47b719 | [
"Apache-2.0"
] | null | null | null | thrust/detail/copy.inl | UIKit0/thrust | 7bcbe7e4400ec06463d4c9c8001e0fe57e47b719 | [
"Apache-2.0"
] | 2 | 2017-03-09T19:54:24.000Z | 2021-06-03T22:49:59.000Z | /*
* Copyright 2008-2012 NVIDIA Corporation
*
* 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... | 31.428571 | 76 | 0.713636 | UIKit0 |