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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a1c8727f3c2000aa50907fa3bb8fea195659d7d | 14,493 | cpp | C++ | assembler_teleop/src/TeleopVirtualRobot.cpp | jacknlliu/assembler | 91055547b595e3104c8b56c758949fe35643f07e | [
"MIT"
] | 3 | 2018-05-04T07:06:51.000Z | 2021-08-09T02:53:29.000Z | assembler_teleop/src/TeleopVirtualRobot.cpp | jacknlliu/assembler | 91055547b595e3104c8b56c758949fe35643f07e | [
"MIT"
] | 3 | 2017-10-14T14:12:41.000Z | 2019-08-29T12:39:42.000Z | assembler_teleop/src/TeleopVirtualRobot.cpp | jacknlliu/assembler | 91055547b595e3104c8b56c758949fe35643f07e | [
"MIT"
] | 2 | 2020-12-29T06:19:52.000Z | 2021-08-09T02:53:33.000Z | #include "assembler_teleop/TeleopVirtualRobot.h"
#include "assembler_teleop/general_keyboard.h"
// MoveIt!
#include <moveit/robot_model_loader/robot_model_loader.h>
#include <moveit/robot_model/robot_model.h>
#include <moveit/robot_state/robot_state.h>
// action lib
#include <actionlib/client/simple_action_client.h>... | 32.641892 | 157 | 0.678879 | jacknlliu |
0a1f81157651a74e62edf4e74d91cc04a20d0d72 | 2,872 | cpp | C++ | test/core/test_read_integrator.cpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | 12 | 2017-02-01T08:28:38.000Z | 2018-08-25T15:47:51.000Z | test/core/test_read_integrator.cpp | Mjolnir-MD/Mjolnir | 043df4080720837042c6b67a5495ecae198bc2b3 | [
"MIT"
] | 60 | 2019-01-14T08:11:33.000Z | 2021-07-29T08:26:36.000Z | test/core/test_read_integrator.cpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | 8 | 2019-01-13T11:03:31.000Z | 2021-08-01T11:38:00.000Z | #define BOOST_TEST_MODULE "test_read_integrator"
#ifdef BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#else
#include <boost/test/included/unit_test.hpp>
#endif
#include <mjolnir/core/BoundaryCondition.hpp>
#include <mjolnir/core/SimulatorTraits.hpp>
#include <mjolnir/input/read_integrator.hpp>
BOOST_AUTO_TE... | 35.45679 | 90 | 0.654596 | yutakasi634 |
0a2153c886dbedee76fcba89030c671bb4b876aa | 3,781 | cpp | C++ | ChessMateEngine/engine/move_selector.cpp | trflynn89/chessmate | 92261c290edebd0f6c52aff84656b734467697ca | [
"MIT"
] | null | null | null | ChessMateEngine/engine/move_selector.cpp | trflynn89/chessmate | 92261c290edebd0f6c52aff84656b734467697ca | [
"MIT"
] | null | null | null | ChessMateEngine/engine/move_selector.cpp | trflynn89/chessmate | 92261c290edebd0f6c52aff84656b734467697ca | [
"MIT"
] | null | null | null | #include "move_selector.h"
#include "movement/valid_move_set.h"
#include <fly/fly.hpp>
#include <algorithm>
namespace chessmate {
namespace {
static const int s_posInfinity = 32767;
static const int s_negInfinity = -32767;
} // namespace
//==================================================================... | 26.626761 | 100 | 0.533986 | trflynn89 |
0a218c8b50f44fe32678084c7cdeeff0359fdbb0 | 2,743 | cpp | C++ | components/xtl/tests/stl/str_04.cpp | untgames/funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 7 | 2016-03-30T17:00:39.000Z | 2017-03-27T16:04:04.000Z | components/xtl/tests/stl/str_04.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2017-11-21T11:25:49.000Z | 2018-09-20T17:59:27.000Z | components/xtl/tests/stl/str_04.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2016-11-29T15:18:40.000Z | 2017-03-27T16:04:08.000Z | //Тестирование find_first_not_of
#include <stdio.h>
#include <stl/string>
using namespace stl;
int main()
{
printf ("Results of str_04:\n");
// The first member function searches for a single character in a string
string str1 ( "xddd-1234-abcd" );
printf ("The original string str1 is: '%s'\n", str1.c_str ())... | 33.45122 | 100 | 0.637258 | untgames |
0a23228e4cbe1410a64afc44bf67c9fddb7a7b97 | 5,364 | hpp | C++ | ProMini_Slave/include/ArduinoNano_Iic.hpp | RafaelReyesCarmona/DucoCluster | 755fa6ab57129afdc65050514e654660a6b9e8eb | [
"MIT"
] | null | null | null | ProMini_Slave/include/ArduinoNano_Iic.hpp | RafaelReyesCarmona/DucoCluster | 755fa6ab57129afdc65050514e654660a6b9e8eb | [
"MIT"
] | null | null | null | ProMini_Slave/include/ArduinoNano_Iic.hpp | RafaelReyesCarmona/DucoCluster | 755fa6ab57129afdc65050514e654660a6b9e8eb | [
"MIT"
] | null | null | null | /*
* Project: DuinoCoinRig
* File: ArduinoNano_Iic
* Version: 0.2
* Purpose: Communication with the master
* Author: Frank Niggemann
*/
/***********************************************************************************************************************
* Code Iic
*************************************... | 28.531915 | 120 | 0.634787 | RafaelReyesCarmona |
0a2426fc10dd21a7083989c1545325e579e1a868 | 153 | cpp | C++ | src/La Trop/map/map.cpp | branchwelder/SoftSysHedonisticHibiscus | c6c652191bb10fcbf2e6f990de84fa9a9211f459 | [
"MIT"
] | null | null | null | src/La Trop/map/map.cpp | branchwelder/SoftSysHedonisticHibiscus | c6c652191bb10fcbf2e6f990de84fa9a9211f459 | [
"MIT"
] | 2 | 2020-07-17T20:01:46.000Z | 2020-07-17T20:01:54.000Z | src/La Trop/map/map.cpp | branchwelder/SoftSysHedonisticHibiscus | c6c652191bb10fcbf2e6f990de84fa9a9211f459 | [
"MIT"
] | null | null | null | //
// map.cpp
// La Trop
//
// Created by Sam Myers on 4/24/17.
// Copyright © 2017 Hedonistic Hibiscus. All rights reserved.
//
#include "map.hpp"
| 15.3 | 62 | 0.633987 | branchwelder |
0a251785a9c469357a6cd7c1c93f59e78f6e22d1 | 243 | hpp | C++ | TemplateRPG/Items/special/other_items.hpp | davideberdin/Text-Turn-based-RPG-Template | 3b1e88b6498b7473b3928e7188157a7d7f1ba844 | [
"MIT"
] | 1 | 2015-11-29T04:47:29.000Z | 2015-11-29T04:47:29.000Z | TemplateRPG/Items/special/other_items.hpp | davideberdin/Text-Turn-based-RPG-Template | 3b1e88b6498b7473b3928e7188157a7d7f1ba844 | [
"MIT"
] | null | null | null | TemplateRPG/Items/special/other_items.hpp | davideberdin/Text-Turn-based-RPG-Template | 3b1e88b6498b7473b3928e7188157a7d7f1ba844 | [
"MIT"
] | null | null | null | //
// other_items.hpp
// TemplateRPG
//
// Created by Davide Berdin on 28/11/15.
// Copyright © 2015 Davide Berdin. All rights reserved.
//
#ifndef other_items_hpp
#define other_items_hpp
#include <stdio.h>
#endif /* other_items_hpp */
| 16.2 | 56 | 0.703704 | davideberdin |
0a2da9b4c2cc96a78f94d4e4b641a652457f26c5 | 8,737 | cpp | C++ | src/raytracer/misc/Computations.cpp | extramask93/RayTracer | ba7f46fb212971e47b296991a7a7e981fef50dda | [
"Unlicense"
] | null | null | null | src/raytracer/misc/Computations.cpp | extramask93/RayTracer | ba7f46fb212971e47b296991a7a7e981fef50dda | [
"Unlicense"
] | null | null | null | src/raytracer/misc/Computations.cpp | extramask93/RayTracer | ba7f46fb212971e47b296991a7a7e981fef50dda | [
"Unlicense"
] | null | null | null | //
// Created by damian on 10.07.2020.
//
#include "Computations.h"
#include <intersections/Intersections.h>
#include <thread>
#include <iostream>
#include <misc/Shader.h>
namespace rt {
Computations prepareComputations(const Intersection &i, const Ray &ray,const rt::Intersections &intersections){
(void)intersection... | 33.996109 | 119 | 0.643241 | extramask93 |
0a2e17982d67e6ab4bd9078d49fc7f981caa8c63 | 2,753 | cxx | C++ | vtk/8.1.0/src/ThirdParty/vtkm/vtk-m/vtkm/cont/testing/UnitTestRuntimeDeviceInformation.cxx | Fresher-Chen/tarsim | 9d2ec1001ee82ca11325e4b1edb8f2843e36518b | [
"Apache-2.0"
] | 1 | 2020-03-02T17:31:48.000Z | 2020-03-02T17:31:48.000Z | vtk/8.1.0/src/ThirdParty/vtkm/vtk-m/vtkm/cont/testing/UnitTestRuntimeDeviceInformation.cxx | Fresher-Chen/tarsim | 9d2ec1001ee82ca11325e4b1edb8f2843e36518b | [
"Apache-2.0"
] | 1 | 2019-06-03T17:04:59.000Z | 2019-06-05T15:13:28.000Z | ThirdParty/vtkm/vtk-m/vtkm/cont/testing/UnitTestRuntimeDeviceInformation.cxx | metux/vtk8 | 77f907913f20295e1eacdb3aba9ed72e2b3ae917 | [
"BSD-3-Clause"
] | 1 | 2020-07-20T06:43:49.000Z | 2020-07-20T06:43:49.000Z | //============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... | 31.284091 | 93 | 0.6996 | Fresher-Chen |
0a366e5ef4dd70030b5c693d13b4c55866647b54 | 2,876 | cpp | C++ | optimizing-c++/htt/htt.cpp | a1exwang/dirty-linux-experiments | fb7f89e32e066e764045ab5a50f96d11d6173afe | [
"MIT"
] | null | null | null | optimizing-c++/htt/htt.cpp | a1exwang/dirty-linux-experiments | fb7f89e32e066e764045ab5a50f96d11d6173afe | [
"MIT"
] | null | null | null | optimizing-c++/htt/htt.cpp | a1exwang/dirty-linux-experiments | fb7f89e32e066e764045ab5a50f96d11d6173afe | [
"MIT"
] | null | null | null | #include <x86intrin.h>
#include <chrono>
#include <thread>
#include <iostream>
#include <cstdlib>
#include <vector>
using namespace std;
extern "C" int64_t loop_start(uint64_t n, uint64_t p);
/**
* These sample program illustrates Hyper threading bottlenecks.
* When your load is ALU-bound, hyper threading will not ... | 35.95 | 118 | 0.589013 | a1exwang |
0a3a6bb65101987190da33613fc09ffb2ac50080 | 3,231 | cpp | C++ | src/software/estop/arduino_util.cpp | jonl112/Software | 61a028a98d5c0dd5e79bf055b231633290ddbf9f | [
"MIT"
] | null | null | null | src/software/estop/arduino_util.cpp | jonl112/Software | 61a028a98d5c0dd5e79bf055b231633290ddbf9f | [
"MIT"
] | null | null | null | src/software/estop/arduino_util.cpp | jonl112/Software | 61a028a98d5c0dd5e79bf055b231633290ddbf9f | [
"MIT"
] | null | null | null |
#include "arduino_util.h"
#include <stdlib.h>
#include <unistd.h>
#include <boost/filesystem.hpp>
#include <boost/format.hpp>
#include <iostream>
#include "shared/constants.h"
std::optional<std::string> ArduinoUtil::getArduinoPort()
{
auto devices = getSerialDevices();
for (auto device : devices)
{
... | 26.268293 | 122 | 0.606004 | jonl112 |
0a3de9fc68b1b66ee6e20cfbe266432b3dc9fa47 | 689 | cpp | C++ | OJ_Assignment/Ch01-Introduction/1004.1.19.cpp | Gerald-Gui/UCAS-Data-Structure | 15b17f0a09fd1f736e8cd7595b2c6b969308e1c0 | [
"MIT"
] | 3 | 2021-04-01T09:52:17.000Z | 2022-02-12T05:59:34.000Z | OJ_Assignment/Ch01-Introduction/1004.1.19.cpp | Gerald-Gui/UCAS-Data-Structure | 15b17f0a09fd1f736e8cd7595b2c6b969308e1c0 | [
"MIT"
] | null | null | null | OJ_Assignment/Ch01-Introduction/1004.1.19.cpp | Gerald-Gui/UCAS-Data-Structure | 15b17f0a09fd1f736e8cd7595b2c6b969308e1c0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
const unsigned int maxint = 0xffffffff;
int main() {
int n, arrsize;
uint32_t * arr;
cin >> n >> arrsize;
if (n > arrsize || n <= 0) {
printf("-1\n");
return 0;
}
arr = new uint32_t[arrsize];
mem... | 19.138889 | 47 | 0.445573 | Gerald-Gui |
0a3ef024c5160bb6b357d6757de7e859d1386126 | 6,987 | cpp | C++ | src/Character.cpp | laonious/hexgame | 309771d4d9a7fe6b41631579ac76b3dfb42fc257 | [
"Unlicense"
] | 3 | 2018-09-04T15:48:00.000Z | 2019-12-03T18:11:18.000Z | src/Character.cpp | laonious/hexgame | 309771d4d9a7fe6b41631579ac76b3dfb42fc257 | [
"Unlicense"
] | null | null | null | src/Character.cpp | laonious/hexgame | 309771d4d9a7fe6b41631579ac76b3dfb42fc257 | [
"Unlicense"
] | 1 | 2018-09-05T07:48:10.000Z | 2018-09-05T07:48:10.000Z | #include "Character.h"
#include "HexMap.h"
#include "HexUtils.h"
#include "Pipeline.h"
#include "ServiceLocator.h"
#include <cmath>
#include <fstream>
void CharacterFileLoader::parseLine(const std::string &field,
const std::string &data) {
if (field.compare("name") == 0) {
cha... | 33.753623 | 80 | 0.684843 | laonious |
0a432c95eaa8f35a40257072c7e15d9a4f7280d2 | 808 | hpp | C++ | lib/world/map.hpp | julienlopez/QCityBuilder | fe61a56bcdeda301211d49a9e358258eefafa14c | [
"MIT"
] | 1 | 2019-03-19T03:14:22.000Z | 2019-03-19T03:14:22.000Z | lib/world/map.hpp | julienlopez/QCityBuilder | fe61a56bcdeda301211d49a9e358258eefafa14c | [
"MIT"
] | 11 | 2015-01-27T17:35:12.000Z | 2018-08-13T07:48:35.000Z | lib/world/map.hpp | julienlopez/QCityBuilder | fe61a56bcdeda301211d49a9e358258eefafa14c | [
"MIT"
] | null | null | null | #ifndef MAP_HPP
#define MAP_HPP
#include "namespace_world.hpp"
#include <utils/array2d.hpp>
#include <utils/rect.hpp>
BEGIN_NAMESPACE_WORLD
class Map
{
public:
enum class SquareType : unsigned char
{
Empty = 0,
Building,
Road
};
using square_container_t = std::vector<utils::... | 17.565217 | 58 | 0.683168 | julienlopez |
0a432dc4fdf4557a745a7850ff44729a159d1a34 | 1,270 | cpp | C++ | main.cpp | NighttimeDriver50000/J1X0_IMU | 1d9610f310e730134b3f472fd9ddb304ad7eb4e7 | [
"MIT"
] | null | null | null | main.cpp | NighttimeDriver50000/J1X0_IMU | 1d9610f310e730134b3f472fd9ddb304ad7eb4e7 | [
"MIT"
] | null | null | null | main.cpp | NighttimeDriver50000/J1X0_IMU | 1d9610f310e730134b3f472fd9ddb304ad7eb4e7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <time.h>
#include "inv_mpu_spi_wrapper.hpp"
extern "C" {
#include "inv_mpu.h"
}
using namespace std;
#define LOOP_FREQUENCY (2)
static volatile int received_sigterm = 0;
static volatile int received_nb_signals = 0;
static void sigterm_handler(int sig)
{
received_sigterm = sig;
... | 20.483871 | 66 | 0.659055 | NighttimeDriver50000 |
0a46dbeb7021722dceacef81b50700c9116d9984 | 574 | hh | C++ | src/Zynga/Framework/StorableObject/V1/Test/Mock/ValidNestedMap.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 19 | 2018-04-23T09:30:48.000Z | 2022-03-06T21:35:18.000Z | src/Zynga/Framework/StorableObject/V1/Test/Mock/ValidNestedMap.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 22 | 2017-11-27T23:39:25.000Z | 2019-08-09T08:56:57.000Z | src/Zynga/Framework/StorableObject/V1/Test/Mock/ValidNestedMap.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 28 | 2017-11-16T20:53:56.000Z | 2021-01-04T11:13:17.000Z | <?hh // strict
namespace Zynga\Framework\StorableObject\V1\Test\Mock;
use Zynga\Framework\Type\V1\StringBox;
use Zynga\Framework\StorableObject\V1\Base as StorableObjectBase;
use Zynga\Framework\StorableObject\V1\StorableMap;
use Zynga\Framework\StorableObject\V1\Test\Mock\Valid;
class ValidNestedMap extends Stora... | 22.076923 | 65 | 0.763066 | chintan-j-patel |
0a49edde0124a86c6ca945d3368947d26b181ae1 | 2,568 | cpp | C++ | SJF Scheduling.cpp | Anikcb/Operating-System | 3a39e86686fa24bfa72b56d5061c3c177a635863 | [
"MIT"
] | null | null | null | SJF Scheduling.cpp | Anikcb/Operating-System | 3a39e86686fa24bfa72b56d5061c3c177a635863 | [
"MIT"
] | null | null | null | SJF Scheduling.cpp | Anikcb/Operating-System | 3a39e86686fa24bfa72b56d5061c3c177a635863 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int burst_time[100];
int arrival_time[100];
int waiting_time[100];
int turnaround_time[100];
vector<int>v;
void space_fun(int num)
{
for(int i=1;i<=num;i++)cout<<" ";
}
int check(int st)
{
int mn=1e5,pos=-1,mn_arr=1e5,result;
for(int i=0;i<(int)... | 25.68 | 120 | 0.528816 | Anikcb |
0a4aed3658df81e9e67245dafb8ecced652fd8c8 | 13,235 | cpp | C++ | private/shell/shell32/unicpp/sdwindow.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/shell/shell32/unicpp/sdwindow.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/shell/shell32/unicpp/sdwindow.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | #include "stdafx.h"
#pragma hdrstop
#include "stdenum.h"
#define DM_SDFOLDER 0
// in DVOC.CPP
extern DWORD GetViewOptionsForDispatch(void);
//=====================================================================
// ShellFolderView Class Definition...
//===================================================... | 29.875847 | 180 | 0.605893 | King0987654 |
0a4aef98c14edfb926ac99bf26b4209e22e0115f | 1,089 | cpp | C++ | src/ReadWrite/WriteImage.cpp | pateldeev/cs474 | 4aeb7c6a5317256e9e1f517d614a83b5b52f9f52 | [
"Xnet",
"X11"
] | null | null | null | src/ReadWrite/WriteImage.cpp | pateldeev/cs474 | 4aeb7c6a5317256e9e1f517d614a83b5b52f9f52 | [
"Xnet",
"X11"
] | null | null | null | src/ReadWrite/WriteImage.cpp | pateldeev/cs474 | 4aeb7c6a5317256e9e1f517d614a83b5b52f9f52 | [
"Xnet",
"X11"
] | null | null | null | #include <iostream>
#include <fstream>
#include "Image.h"
#include "ReadWrite.h"
int writeImage(const char fname[], const ImageType & image) {
int i, j;
int N, M, Q;
unsigned char * charImage;
std::ofstream ofp;
image.getImageInfo(N, M, Q);
charImage = (unsigned char *) new unsigned char [M... | 20.54717 | 86 | 0.513315 | pateldeev |
0a4ca286a8b0ca0c1b4f8da01c1c36ff51cf413b | 4,883 | cpp | C++ | src/minisef/networksystem/networkserver.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/minisef/networksystem/networkserver.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/minisef/networksystem/networkserver.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//===========================================================================//
#include "networkserver.h"
#include "networksystem.h"
#include "icvar.h"
#include "filesystem.h"
#include "UDP_Socket.h"
#include "sm_protocol... | 21.702222 | 121 | 0.632808 | cstom4994 |
0a4cb9edec566a07e3e86a91be221479c3978078 | 2,677 | cpp | C++ | Practice/2018/2018.9.27/Luogu1295.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.9.27/Luogu1295.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.9.27/Luogu1295.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
#define lson (now<<1)
#define rson (lson|1)
const int maxN=201000;
const int inf=2147483647;
const ll INF=1e17;
class SegmentData
{
public... | 22.123967 | 74 | 0.605902 | SYCstudio |
aeaa8fe0a1f9ad2666609dc10d64678dacd55ecc | 1,682 | hpp | C++ | app/GUI/widgetPacks/CraftingWindow.hpp | isonil/survival | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | [
"MIT"
] | 1 | 2017-05-12T10:12:41.000Z | 2017-05-12T10:12:41.000Z | app/GUI/widgetPacks/CraftingWindow.hpp | isonil/Survival | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | [
"MIT"
] | null | null | null | app/GUI/widgetPacks/CraftingWindow.hpp | isonil/Survival | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | [
"MIT"
] | 1 | 2019-01-09T04:05:36.000Z | 2019-01-09T04:05:36.000Z | #ifndef APP_CRAFTING_WINDOW_HPP
#define APP_CRAFTING_WINDOW_HPP
#include "engine/util/Vec2.hpp"
#include <vector>
namespace engine { namespace GUI { class Window; class Button; class RectWidget; class Image; class Label; } }
namespace app
{
class Character;
class Structure;
class CraftingWindow
{
public:
Craf... | 26.28125 | 111 | 0.706302 | isonil |
aeaaae6de38b505fc2ea3fcdf98ae4333abed1ac | 7,512 | cpp | C++ | mpc_controller/ros_acado_bridge/ACADOtoolkit/acado/code_generation/linear_solvers/export_cholesky_solver.cpp | kurshakuz/graduation-project | 352a94c2d3e24ce714460446342b612fbb6d1f52 | [
"BSD-2-Clause"
] | 2 | 2021-04-07T08:37:28.000Z | 2021-09-30T09:38:22.000Z | mpc_controller/ros_acado_bridge/ACADOtoolkit/acado/code_generation/linear_solvers/export_cholesky_solver.cpp | kurshakuz/graduation-project | 352a94c2d3e24ce714460446342b612fbb6d1f52 | [
"BSD-2-Clause"
] | null | null | null | mpc_controller/ros_acado_bridge/ACADOtoolkit/acado/code_generation/linear_solvers/export_cholesky_solver.cpp | kurshakuz/graduation-project | 352a94c2d3e24ce714460446342b612fbb6d1f52 | [
"BSD-2-Clause"
] | 2 | 2021-03-01T14:20:58.000Z | 2021-06-21T12:34:33.000Z | /*
* This file is part of ACADO Toolkit.
*
* ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
* Copyright (C) 2008-2014 by Boris Houska, Hans Joachim Ferreau,
* Milan Vukov, Rien Quirynen, KU Leuven.
* Developed within the Optimization in Engineering Center (OPTEC)
* u... | 28.240602 | 124 | 0.633387 | kurshakuz |
aeabd7358cb7200739ac913a280cbfcd9e702614 | 2,669 | cpp | C++ | HiroCamSDK/src/main/cpp/dependence/src/libmp4v2/src/atom_video.cpp | shirleyyuqi/UIFySim | 15810480022003f5f84509229ef5acbd47e54172 | [
"Apache-2.0"
] | 1 | 2019-12-25T17:38:30.000Z | 2019-12-25T17:38:30.000Z | HiroCamSDK/src/main/cpp/dependence/src/libmp4v2/src/atom_video.cpp | shirleyyuqi/UIFySim | 15810480022003f5f84509229ef5acbd47e54172 | [
"Apache-2.0"
] | 1 | 2020-03-18T10:20:43.000Z | 2020-03-18T10:20:43.000Z | mp4v2-2.0.0/src/atom_video.cpp | nichesuch/AirOrche | ab048fe01eb85633464ab676ff33e06c7fef1097 | [
"MIT"
] | null | null | null | /*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS... | 29.988764 | 79 | 0.620457 | shirleyyuqi |
aead11d0a4d5056f721fdf7cd09985ff74eac382 | 14,040 | cpp | C++ | src/crl_camera/CRLPhysicalCamera.cpp | M-Gjerde/MultiSense | 921a1a62757a4831bd51b2659e2bff670641d962 | [
"MIT"
] | null | null | null | src/crl_camera/CRLPhysicalCamera.cpp | M-Gjerde/MultiSense | 921a1a62757a4831bd51b2659e2bff670641d962 | [
"MIT"
] | null | null | null | src/crl_camera/CRLPhysicalCamera.cpp | M-Gjerde/MultiSense | 921a1a62757a4831bd51b2659e2bff670641d962 | [
"MIT"
] | null | null | null | //
// Created by magnus on 3/1/22.
//
#include <thread>
#include <bitset>
#include "CRLPhysicalCamera.h"
#include <iostream>
bool CRLPhysicalCamera::connect(const std::string& ip) {
if (cameraInterface == nullptr) {
cameraInterface = crl::multisense::Channel::Create(ip);
if (cameraInterface != nu... | 39.327731 | 147 | 0.664245 | M-Gjerde |
aeb691fe67483e4925723ef8042719561bc3483b | 2,301 | cpp | C++ | src/third_party/wiredtiger/test/cppsuite/test_harness/core/component.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/third_party/wiredtiger/test/cppsuite/test_harness/core/component.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/third_party/wiredtiger/test/cppsuite/test_harness/core/component.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /*-
* Public Domain 2014-present MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* bina... | 26.755814 | 99 | 0.71621 | benety |
aeb74f694820238042f898779f0855bcf64e853b | 3,871 | cpp | C++ | akmenu4/arm9/source/ui/uisettings.cpp | lifehackerhansol/akrpg | 6ffbe0e73ec205e7e7d2f4e6bbe69cfd0603ae6f | [
"MIT"
] | null | null | null | akmenu4/arm9/source/ui/uisettings.cpp | lifehackerhansol/akrpg | 6ffbe0e73ec205e7e7d2f4e6bbe69cfd0603ae6f | [
"MIT"
] | null | null | null | akmenu4/arm9/source/ui/uisettings.cpp | lifehackerhansol/akrpg | 6ffbe0e73ec205e7e7d2f4e6bbe69cfd0603ae6f | [
"MIT"
] | null | null | null | /*---------------------------------------------------------------------------------
Copyright (C) 2007 Acekard, www.acekard.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 restrictio... | 43.011111 | 120 | 0.718677 | lifehackerhansol |
aebb08a2b4518fcfd7b6e94719f4b0c2bad58865 | 2,306 | cpp | C++ | src/Telnet/CmdLineRegistry.cpp | vinthewrench/FooServer | 1e00a80df41235d29c6402cb8ae4d1f7bbbe07a6 | [
"MIT"
] | null | null | null | src/Telnet/CmdLineRegistry.cpp | vinthewrench/FooServer | 1e00a80df41235d29c6402cb8ae4d1f7bbbe07a6 | [
"MIT"
] | null | null | null | src/Telnet/CmdLineRegistry.cpp | vinthewrench/FooServer | 1e00a80df41235d29c6402cb8ae4d1f7bbbe07a6 | [
"MIT"
] | null | null | null | //
// CmdLineRegistry.cpp
//
// Created by Vincent Moscaritolo on 4/6/21.
//
#include <sstream>
#include <iostream>
#include <iomanip>
#include "CmdLineRegistry.hpp"
#include "CmdLineHelp.hpp"
CmdLineRegistry *CmdLineRegistry::sharedInstance = 0;
CmdLineRegistry::CmdLineRegistry(){
_commandMap.clear();
}
CmdLin... | 20.589286 | 83 | 0.654814 | vinthewrench |
aebecd48c6f11466a99c5486da998a4bdeac832e | 1,755 | cpp | C++ | NYP_Framework_Week08_SOLUTION/Base/Source/SceneGraph/UpdateTransformation.cpp | KianMarvi/Assignment | 8133acec4dd65bc49316aec8deb3961035bdef27 | [
"MIT"
] | null | null | null | NYP_Framework_Week08_SOLUTION/Base/Source/SceneGraph/UpdateTransformation.cpp | KianMarvi/Assignment | 8133acec4dd65bc49316aec8deb3961035bdef27 | [
"MIT"
] | 8 | 2019-12-29T17:17:00.000Z | 2020-02-07T08:08:01.000Z | NYP_Framework_Week08_SOLUTION/Base/Source/SceneGraph/UpdateTransformation.cpp | KianMarvi/Assignment | 8133acec4dd65bc49316aec8deb3961035bdef27 | [
"MIT"
] | null | null | null | #include "UpdateTransformation.h"
CUpdateTransformation::CUpdateTransformation()
: curSteps(0)
, deltaSteps(1)
, minSteps(0)
, maxSteps(0)
{
Update_Mtx.SetToIdentity();
Update_Mtx_REVERSED.SetToIdentity();
}
CUpdateTransformation::~CUpdateTransformation()
{
}
// Reset the transformation matrix to identity ma... | 23.4 | 106 | 0.756695 | KianMarvi |
aec2cd8d25f33e6972d435b5b4c5d2b0780563a9 | 43,881 | cpp | C++ | ycsb-bench/FPTree/fptree.cpp | mkatsa/PENVMTool | c63de91036cd84d36cd8ac54f2033ea141a292dc | [
"Apache-2.0"
] | 1 | 2022-03-22T15:16:56.000Z | 2022-03-22T15:16:56.000Z | ycsb-bench/FPTree/fptree.cpp | mkatsa/PENVMTool | c63de91036cd84d36cd8ac54f2033ea141a292dc | [
"Apache-2.0"
] | null | null | null | ycsb-bench/FPTree/fptree.cpp | mkatsa/PENVMTool | c63de91036cd84d36cd8ac54f2033ea141a292dc | [
"Apache-2.0"
] | null | null | null | // Copyright (c) Simon Fraser University. All rights reserved.
// Licensed under the MIT license.
//
// Authors:
// George He <georgeh@sfu.ca>
// Duo Lu <luduol@sfu.ca>
// Tianzheng Wang <tzwang@sfu.ca>
#include "fptree.h"
#ifdef PMEM
inline bool file_pool_exists(const std::string& name)
{
return ( a... | 33.471396 | 131 | 0.548825 | mkatsa |
aec3745ccfbe2778822a6bac7782b542316635fa | 424 | cpp | C++ | Dataset/Leetcode/train/9/404.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/9/404.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/9/404.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
bool XXX(int x)
{
if (x < 0)//负数全部排除
{
return false;
}
else if (0 <= x && x < 10)//1位数都是
{
return true;
}
else
{
string src, dest;
while (x)//先将数字转换为字符
{
src += x % 10;
x /= 10;
}
dest = src;//记录原字符
reverse(src.begin(),src.end());/... | 13.25 | 40 | 0.478774 | kkcookies99 |
aec41824da20a509025fbe466e62fd40970fc2aa | 3,221 | cc | C++ | driver/mmio/coherent_allocator.cc | ghollingworth/libedgetpu | d37e668cd9ef0e657b9e4e413df53f370532e87e | [
"Apache-2.0"
] | 99 | 2020-06-09T05:52:44.000Z | 2022-03-08T06:06:55.000Z | driver/mmio/coherent_allocator.cc | ghollingworth/libedgetpu | d37e668cd9ef0e657b9e4e413df53f370532e87e | [
"Apache-2.0"
] | 35 | 2020-06-09T15:00:26.000Z | 2022-03-15T10:22:32.000Z | driver/mmio/coherent_allocator.cc | ghollingworth/libedgetpu | d37e668cd9ef0e657b9e4e413df53f370532e87e | [
"Apache-2.0"
] | 23 | 2020-06-09T14:50:54.000Z | 2022-03-15T11:18:16.000Z | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | 29.281818 | 79 | 0.737659 | ghollingworth |
aec4fa5f013ce3542d2a8234f7c2c087f2eb5e70 | 15,288 | cpp | C++ | ess/src/v20201111/model/FlowCreateApprover.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | ess/src/v20201111/model/FlowCreateApprover.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | ess/src/v20201111/model/FlowCreateApprover.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | 30.273267 | 157 | 0.699241 | suluner |
aec6d145325c12f73507b85aeee31a2a9738846e | 1,330 | cpp | C++ | machine-learning/small-tasks/f-score.cpp | nothingelsematters/university | 5561969b1b11678228aaf7e6660e8b1a93d10294 | [
"WTFPL"
] | 1 | 2018-06-03T17:48:50.000Z | 2018-06-03T17:48:50.000Z | machine-learning/small-tasks/f-score.cpp | nothingelsematters/University | b1e188cb59e5a436731b92c914494626a99e1ae0 | [
"WTFPL"
] | null | null | null | machine-learning/small-tasks/f-score.cpp | nothingelsematters/University | b1e188cb59e5a436731b92c914494626a99e1ae0 | [
"WTFPL"
] | 14 | 2019-04-07T21:27:09.000Z | 2021-12-05T13:37:25.000Z | #include <iostream>
#include <iomanip>
long double harmonic_mean(long double a, long double b) {
return a + b == 0 ? 0 : 2 * a * b / (a + b);
}
int main() {
size_t size;
std::cin >> size;
unsigned int sum = 0;
unsigned int column[size] = {};
unsigned int row[size] = {};
unsigned int trac... | 25.09434 | 86 | 0.502256 | nothingelsematters |
aec923f14b582423c7c0faad661e1a3bfc8b1fa1 | 1,792 | tpp | C++ | src/hypro/algorithms/reachability/contexts/ContextFactory.tpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 22 | 2016-10-05T12:19:01.000Z | 2022-01-23T09:14:41.000Z | src/hypro/algorithms/reachability/contexts/ContextFactory.tpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 23 | 2017-05-08T15:02:39.000Z | 2021-11-03T16:43:39.000Z | src/hypro/algorithms/reachability/contexts/ContextFactory.tpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 12 | 2017-06-07T23:51:09.000Z | 2022-01-04T13:06:21.000Z | #include "ContextFactory.h"
namespace hypro {
template <typename State>
IContext* ContextFactory<State>::createContext( const std::shared_ptr<Task<State>>& t,
const Strategy<State>& strat,
WorkQueue<std::shared_ptr<Task<State>>>* localQueue,
WorkQueue<std::shared_ptr<Task<State>>>* ... | 54.30303 | 157 | 0.719866 | hypro |
aecd3731ef690d74bce0b394957ff12c0fcff50f | 485 | cpp | C++ | Nova/abyss/vulkan/context.cpp | TWoolhouse/Nova | 793d4057d9553a1bf8bcb7205449837b14a72874 | [
"MIT"
] | 1 | 2021-12-18T16:28:59.000Z | 2021-12-18T16:28:59.000Z | Nova/abyss/vulkan/context.cpp | TWoolhouse/Nova | 793d4057d9553a1bf8bcb7205449837b14a72874 | [
"MIT"
] | null | null | null | Nova/abyss/vulkan/context.cpp | TWoolhouse/Nova | 793d4057d9553a1bf8bcb7205449837b14a72874 | [
"MIT"
] | null | null | null | #include "npch.h"
#include "context.h"
#include "instance.h"
#include "surface.h"
namespace Nova::abyss {
Context::Context(const std::string_view& name) : alloc(nullptr) {
nova_bark_init("[Abyss] <Vulkan> ...");
create_instance(*this, name);
create_surface(*this);
nova_bark_init("[Abyss] Done!");
}
Contex... | 22.045455 | 66 | 0.676289 | TWoolhouse |
aece5efffcdb23bbd05e0f4a8f1176eacfa9941d | 2,601 | cpp | C++ | Siv3D/src/Siv3D/NoiseGenerator/SivNoiseGenerator.cpp | yumetodo/OpenSiv3D | ea191438ecbc64185f5df3d9f79dffc6757e4192 | [
"MIT"
] | 7 | 2020-04-26T11:06:02.000Z | 2021-09-05T16:42:31.000Z | Siv3D/src/Siv3D/NoiseGenerator/SivNoiseGenerator.cpp | yumetodo/OpenSiv3D | ea191438ecbc64185f5df3d9f79dffc6757e4192 | [
"MIT"
] | 10 | 2020-04-26T13:25:36.000Z | 2022-03-01T12:34:44.000Z | Siv3D/src/Siv3D/NoiseGenerator/SivNoiseGenerator.cpp | yumetodo/OpenSiv3D | ea191438ecbc64185f5df3d9f79dffc6757e4192 | [
"MIT"
] | 2 | 2020-05-11T08:23:23.000Z | 2020-08-08T12:33:30.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2019 Ryo Suzuki
// Copyright (c) 2016-2019 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/NoiseGenerator.hpp>
# include... | 27.670213 | 196 | 0.749327 | yumetodo |
aece9d416b2e1cb5c05d72447e7f5be1e13e8916 | 1,959 | cpp | C++ | src/inertial/imu_interpolator.cpp | jstraub/tdp | dcab53662be5b88db1538cf831707b07ab96e387 | [
"MIT-feh"
] | 1 | 2017-10-17T19:25:47.000Z | 2017-10-17T19:25:47.000Z | src/inertial/imu_interpolator.cpp | jstraub/tdp | dcab53662be5b88db1538cf831707b07ab96e387 | [
"MIT-feh"
] | 1 | 2018-05-02T06:04:06.000Z | 2018-05-02T06:04:06.000Z | src/inertial/imu_interpolator.cpp | jstraub/tdp | dcab53662be5b88db1538cf831707b07ab96e387 | [
"MIT-feh"
] | 5 | 2017-09-17T18:46:20.000Z | 2019-03-11T12:52:57.000Z | /* Copyright (c) 2016, Julian Straub <jstraub@csail.mit.edu> Licensed
* under the MIT license. See the license file LICENSE.
*/
#include <iomanip>
#include <tdp/inertial/imu_interpolator.h>
namespace tdp {
void ImuInterpolator::Start() {
receiveImu_.Set(true);
receiverThread_ = std::thread([&]() {
tdp::Im... | 32.65 | 75 | 0.53854 | jstraub |
aed30bdabeeb57f2d1140cbb35e0babf9f062166 | 6,273 | cxx | C++ | xp_comm_proj/rd_dbase/dbfhdr.cxx | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | 3 | 2020-08-03T08:52:20.000Z | 2021-04-10T11:55:49.000Z | xp_comm_proj/rd_dbase/dbfhdr.cxx | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | null | null | null | xp_comm_proj/rd_dbase/dbfhdr.cxx | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | 1 | 2021-06-08T18:16:45.000Z | 2021-06-08T18:16:45.000Z | //
// This file contains the source code for the dBASE file header object.
// This object provides utilities to read and manage a dBASE (dbf)
// header record.
//
#include <stdio.h>
#ifdef MSDOS
#include <basetsd.h>
#endif
#include "dbfhdr.h"
#include "gsbyteu.h"
static DBF_ByteUtil_c ByteUtil; // used to... | 23.671698 | 85 | 0.65774 | avs |
aed37aa5bda8e541a9e7765ce99e4f600394c716 | 1,297 | cpp | C++ | src/host/common/usb_device.cpp | coolacid/EspTinyUSB | 317daf338807e0e2be12e8edec0023cebecdc4ab | [
"MIT"
] | 250 | 2020-07-20T20:09:40.000Z | 2022-03-30T04:39:53.000Z | src/host/common/usb_device.cpp | coolacid/EspTinyUSB | 317daf338807e0e2be12e8edec0023cebecdc4ab | [
"MIT"
] | 77 | 2020-07-21T13:47:55.000Z | 2022-03-30T12:20:28.000Z | src/host/common/usb_device.cpp | coolacid/EspTinyUSB | 317daf338807e0e2be12e8edec0023cebecdc4ab | [
"MIT"
] | 44 | 2020-08-14T04:11:24.000Z | 2022-03-19T01:20:02.000Z | #include "esp_log.h"
#include "usb_device.hpp"
USBhostDevice::USBhostDevice()
{
}
USBhostDevice::~USBhostDevice()
{
}
esp_err_t USBhostDevice::allocate(size_t _size)
{
size_t out_worst_case_size = 50 + _size;
ESP_LOGI("", "allocate with new size: %d [%d]", _size, out_worst_case_size);
esp_err_t err = ... | 24.942308 | 80 | 0.655359 | coolacid |
aed4bcede82e27e822d14f3a4a2514cac7fab7f5 | 1,816 | cpp | C++ | src/base/IndexBuffer.cpp | kostrykin/Carna | 099783bb7f8a6f52fcc8ccd4666e491cf0aa864c | [
"BSD-3-Clause"
] | null | null | null | src/base/IndexBuffer.cpp | kostrykin/Carna | 099783bb7f8a6f52fcc8ccd4666e491cf0aa864c | [
"BSD-3-Clause"
] | null | null | null | src/base/IndexBuffer.cpp | kostrykin/Carna | 099783bb7f8a6f52fcc8ccd4666e491cf0aa864c | [
"BSD-3-Clause"
] | 3 | 2015-07-23T12:10:14.000Z | 2021-06-08T16:07:05.000Z | /*
* Copyright (C) 2010 - 2015 Leonid Kostrykin
*
* Chair of Medical Engineering (mediTEC)
* RWTH Aachen University
* Pauwelsstr. 20
* 52074 Aachen
* Germany
*
*/
#include <Carna/base/glew.h>
#include <Carna/base/IndexBuffer.h>
namespace Carna
{
namespace base
{
// ---------------------------------... | 29.290323 | 102 | 0.682269 | kostrykin |
aed5f87bd00067fe657b6c61aee8dda14c13eb09 | 1,015 | cpp | C++ | src/console/src/console_gear.cpp | RoyAwesome/raoe | d9350cf50bb2cd1d313df2944fb6a48354142ae8 | [
"MIT"
] | null | null | null | src/console/src/console_gear.cpp | RoyAwesome/raoe | d9350cf50bb2cd1d313df2944fb6a48354142ae8 | [
"MIT"
] | null | null | null | src/console/src/console_gear.cpp | RoyAwesome/raoe | d9350cf50bb2cd1d313df2944fb6a48354142ae8 | [
"MIT"
] | null | null | null | /*
Copyright 2022 Roy Awesome's Open Engine (RAOE)
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... | 30.757576 | 87 | 0.722167 | RoyAwesome |
aed934728e11f056dfd6c7496b23afa0d402b252 | 1,130 | cpp | C++ | src/server/sqlrbindvariabletranslation.cpp | laigor/sqlrelay-non-english-fixes- | 7803f862ddbf88bca078c50d621c64c22fc0a405 | [
"PHP-3.01",
"CC-BY-3.0"
] | 16 | 2018-04-23T09:58:33.000Z | 2022-01-31T13:40:20.000Z | src/server/sqlrbindvariabletranslation.cpp | laigor/sqlrelay-non-english-fixes- | 7803f862ddbf88bca078c50d621c64c22fc0a405 | [
"PHP-3.01",
"CC-BY-3.0"
] | null | null | null | src/server/sqlrbindvariabletranslation.cpp | laigor/sqlrelay-non-english-fixes- | 7803f862ddbf88bca078c50d621c64c22fc0a405 | [
"PHP-3.01",
"CC-BY-3.0"
] | 4 | 2020-12-23T12:17:54.000Z | 2022-01-04T20:46:34.000Z | // Copyright (c) 1999-2018 David Muse
// See the file COPYING for more information
#include <sqlrelay/sqlrserver.h>
class sqlrbindvariabletranslationprivate {
friend class sqlrbindvariabletranslation;
private:
sqlrbindvariabletranslations *_bvts;
domnode *_parameters;
};
sqlrbindvariabletranslation::sqlrbin... | 23.061224 | 68 | 0.79292 | laigor |
aee05ae09abe8b68c650c5bfbaabeeeed0e20759 | 130 | hpp | C++ | include/git.hpp | fcharlie/git-analyze-sync | 1c974ac4b6f695c01ee666aff60d7817f6c0acaf | [
"MIT"
] | 1 | 2021-02-18T06:12:13.000Z | 2021-02-18T06:12:13.000Z | include/git.hpp | fcharlie/git-analyze-sync | 1c974ac4b6f695c01ee666aff60d7817f6c0acaf | [
"MIT"
] | 1 | 2021-08-28T14:08:30.000Z | 2021-08-28T14:09:32.000Z | include/git.hpp | fcharlie/git-analyze-sync | 1c974ac4b6f695c01ee666aff60d7817f6c0acaf | [
"MIT"
] | 1 | 2021-08-28T14:00:29.000Z | 2021-08-28T14:00:29.000Z | //// GIT BASE HEAD
#ifndef AZE_GIT_BASE_HPP
#define AZE_GIT_BASE_HPP
#include "details/git.hpp"
#include "details/git.ipp"
#endif
| 18.571429 | 26 | 0.769231 | fcharlie |
aee119ebe9faf08b7fb22f61ba2d49e1ba1003ba | 715 | cpp | C++ | SPOJ/NSTEPS(Adhoc maths).cpp | abusomani/DS-Algo | b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba | [
"Unlicense"
] | null | null | null | SPOJ/NSTEPS(Adhoc maths).cpp | abusomani/DS-Algo | b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba | [
"Unlicense"
] | null | null | null | SPOJ/NSTEPS(Adhoc maths).cpp | abusomani/DS-Algo | b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba | [
"Unlicense"
] | null | null | null | //Sometimes I feel like giving up, then I remember I have a lot of motherfuckers to prove wrong!
//@BEGIN OF SOURCE CODE ( By Abhishek Somani)
#include <bits/stdc++.h>
using namespace std;
#define fastio ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
typedef long long ll;
ll MOD = 1000000007;
int main()
{
f... | 23.833333 | 96 | 0.562238 | abusomani |
aee533fff11c8b2bcded6fe74787c3fd75f94e48 | 2,733 | cpp | C++ | src/RenderObject.cpp | NTForked/DiscreteElasticRods | e28dac56149553437da8aea51b377be1b5b57cbf | [
"MIT"
] | 51 | 2017-05-19T06:50:08.000Z | 2022-03-27T21:00:13.000Z | src/RenderObject.cpp | NTForked/DiscreteElasticRods | e28dac56149553437da8aea51b377be1b5b57cbf | [
"MIT"
] | 4 | 2017-05-03T00:28:58.000Z | 2020-01-30T12:32:16.000Z | src/RenderObject.cpp | NTForked/DiscreteElasticRods | e28dac56149553437da8aea51b377be1b5b57cbf | [
"MIT"
] | 11 | 2015-04-01T09:21:51.000Z | 2020-07-30T08:48:45.000Z | #include "RenderObject.h"
#include "Utils.h"
RenderObject::RenderObject(unsigned id, const Mesh *mesh):
m_id(id), m_mesh(mesh)
{
m_transform.identity();
calcBoundaries();
}
RenderObject::RenderObject(const Mesh* mesh, const mg::Matrix4D &transform):
m_id(-1), m_mesh(mesh), m_transform(transform)
{
calcBoun... | 32.152941 | 122 | 0.714965 | NTForked |
aee8e1ff4446833de7a3f606486e0799613fef81 | 2,840 | cpp | C++ | src/custom/test/manager.cpp | kxz18/MegEngine | 88c1eedbd716805244b35bdda57c3cea5efe734d | [
"Apache-2.0"
] | null | null | null | src/custom/test/manager.cpp | kxz18/MegEngine | 88c1eedbd716805244b35bdda57c3cea5efe734d | [
"Apache-2.0"
] | null | null | null | src/custom/test/manager.cpp | kxz18/MegEngine | 88c1eedbd716805244b35bdda57c3cea5efe734d | [
"Apache-2.0"
] | null | null | null | /**
* \file src/custom/test/manager.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS... | 27.572816 | 89 | 0.621127 | kxz18 |
aee92e6a1097cae65f1cdf7bd7db8e938d768b2c | 10,040 | cpp | C++ | glscene/source/ResourceRef.cpp | Morozov-5F/glsdk | bff2b5074681bf3d2c438216e612d8a0ed80cead | [
"MIT"
] | 2 | 2020-09-13T20:38:14.000Z | 2020-09-13T20:38:23.000Z | glscene/source/ResourceRef.cpp | Morozov-5F/glsdk | bff2b5074681bf3d2c438216e612d8a0ed80cead | [
"MIT"
] | 1 | 2021-01-10T13:39:51.000Z | 2021-01-12T10:50:56.000Z | glscene/source/ResourceRef.cpp | Morozov-5F/glsdk | bff2b5074681bf3d2c438216e612d8a0ed80cead | [
"MIT"
] | null | null | null |
#include "pch.h"
#include <glload/gl_all.hpp>
#include "glscene/ResourceRef.h"
#include "ResourceData.h"
namespace glscene
{
std::string ResourceMultiplyDefinedException::GetErrorName(
const std::string &resourceId, const std::string &resourceType )
{
return std::string("The resourceId '") + resource... | 36.245487 | 127 | 0.735159 | Morozov-5F |
aef187e33dbf7062d00aa0bb3907cf9eb6e92098 | 667 | cpp | C++ | c++_for_programmers/01_basics/3_enums.cpp | Joy110900/cpp | 3d8c582d5b1d3af47d44ae3cef2f6015e272f287 | [
"MIT"
] | null | null | null | c++_for_programmers/01_basics/3_enums.cpp | Joy110900/cpp | 3d8c582d5b1d3af47d44ae3cef2f6015e272f287 | [
"MIT"
] | null | null | null | c++_for_programmers/01_basics/3_enums.cpp | Joy110900/cpp | 3d8c582d5b1d3af47d44ae3cef2f6015e272f287 | [
"MIT"
] | null | null | null | /*Enum example*/
/*
Enum is a user defined datatype which is initialised as below.
*/
#include <iostream>
using namespace std;
int main()
{
//define MONTHS as having 12 possible values
enum MONTH {Jan, Feb, Mar, Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec}; // Jan is assigned 0, Feb is assigned 1 and so on.
... | 23 | 122 | 0.646177 | Joy110900 |
aef288d79580780fb962856320b1fb494d05d53f | 12,516 | cpp | C++ | BulletLeague3D/ModulePlayer.cpp | AaronGCProg/RacingBullet3D | d64b852b3b6eb53c1285d4e49746f842645e721a | [
"MIT"
] | null | null | null | BulletLeague3D/ModulePlayer.cpp | AaronGCProg/RacingBullet3D | d64b852b3b6eb53c1285d4e49746f842645e721a | [
"MIT"
] | null | null | null | BulletLeague3D/ModulePlayer.cpp | AaronGCProg/RacingBullet3D | d64b852b3b6eb53c1285d4e49746f842645e721a | [
"MIT"
] | null | null | null | #include "Globals.h"
#include "Application.h"
#include "ModulePlayer.h"
#include "Primitive.h"
#include "PhysBody3D.h"
#include "ModuleSceneIntro.h"
ModulePlayer::ModulePlayer(Application* app, bool start_enabled, int playerNum) : Module(app, start_enabled), vehicle(NULL), playerNum(playerNum)
{
turn = acceleration =... | 25.336032 | 145 | 0.669942 | AaronGCProg |
aef6455a1994b330528cb71b4c48989a81e4d09c | 478 | cpp | C++ | UVa/Competitive_Programming_Exercises/03-Problem_Solving_Paradigms/02-Divide_and_Conquer/01-Binary_Search/00679.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-01-30T13:21:30.000Z | 2018-01-30T13:21:30.000Z | UVa/Competitive_Programming_Exercises/03-Problem_Solving_Paradigms/02-Divide_and_Conquer/01-Binary_Search/00679.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | null | null | null | UVa/Competitive_Programming_Exercises/03-Problem_Solving_Paradigms/02-Divide_and_Conquer/01-Binary_Search/00679.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-08-29T13:26:50.000Z | 2018-08-29T13:26:50.000Z | #include <bits/stdc++.h>
using namespace std;
int tc, x, y, lim;
vector <int> a[20], b[20];
int main(){
a[0].push_back(1);
for(int i = 1; i < 20; i++){
lim = 1 << i - 1;
for(int j = 0; j < lim; j++)
a[i].push_back(a[i - 1][j] << 1);
for(int j = 0; j < lim; j++)
a[i].push_bac... | 19.916667 | 48 | 0.414226 | TISparta |
aef65053772c0e749712a0e9098b68c6d3582b9d | 6,989 | cpp | C++ | autotests/KPropertySetTest.cpp | KDE/kproperty | 3286ad09e44e913fbd033fa65a8bd104111f5870 | [
"BSD-3-Clause"
] | 9 | 2015-12-29T20:09:07.000Z | 2020-12-01T06:45:29.000Z | autotests/KPropertySetTest.cpp | KDE/kproperty | 3286ad09e44e913fbd033fa65a8bd104111f5870 | [
"BSD-3-Clause"
] | null | null | null | autotests/KPropertySetTest.cpp | KDE/kproperty | 3286ad09e44e913fbd033fa65a8bd104111f5870 | [
"BSD-3-Clause"
] | 2 | 2018-03-12T06:48:09.000Z | 2020-09-20T02:18:49.000Z | /* This file is part of the KDE project
Copyright (C) 2017 Jarosław Staniek <staniek@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, o... | 40.633721 | 148 | 0.737731 | KDE |
aef9ece3a8db2a41fdfd31d983bd33449d35f811 | 2,009 | hpp | C++ | include/GDE/Core/CoreTypes.hpp | genbetadev/Genbeta-Dev-Engine | 1bda1f92a927c7657df7fcc6460474c9ef8ac9cd | [
"MIT"
] | 3 | 2016-05-04T23:36:27.000Z | 2021-05-02T06:46:50.000Z | include/GDE/Core/CoreTypes.hpp | fordream/Genbeta-Dev-Engine | 1bda1f92a927c7657df7fcc6460474c9ef8ac9cd | [
"MIT"
] | 3 | 2015-01-13T22:45:29.000Z | 2019-03-07T16:35:37.000Z | include/GDE/Core/CoreTypes.hpp | fordream/Genbeta-Dev-Engine | 1bda1f92a927c7657df7fcc6460474c9ef8ac9cd | [
"MIT"
] | 4 | 2015-01-16T14:41:41.000Z | 2020-04-21T21:12:19.000Z | #ifndef GDE_CORE_TYPES_HPP
#define GDE_CORE_TYPES_HPP
#include <map>
#include <string>
namespace GDE
{
// Fowards Declarations
class App;
class Scene;
class SceneManager;
class ConfigReader;
class ConfigCreate;
/// Nivel o tipo de Log
enum LogLevel
{
Debug = 0,
Info = 1,
Warning = 2,
Error = 3
};
/// Enumara... | 25.1125 | 83 | 0.708313 | genbetadev |
aefed9da8ddac4d637d8ec4be04f3dcb33077578 | 725 | cpp | C++ | tests/std/tests/Dev10_563443_empty_vector_begin_plus_zero/test.cpp | isra-fel/STL | 6ae9a578b4f52193dc523922c943a2214a873577 | [
"Apache-2.0"
] | 8,232 | 2019-09-16T22:51:24.000Z | 2022-03-31T03:55:39.000Z | tests/std/tests/Dev10_563443_empty_vector_begin_plus_zero/test.cpp | isra-fel/STL | 6ae9a578b4f52193dc523922c943a2214a873577 | [
"Apache-2.0"
] | 2,263 | 2019-09-17T05:19:55.000Z | 2022-03-31T21:05:47.000Z | tests/std/tests/Dev10_563443_empty_vector_begin_plus_zero/test.cpp | isra-fel/STL | 6ae9a578b4f52193dc523922c943a2214a873577 | [
"Apache-2.0"
] | 1,276 | 2019-09-16T22:51:40.000Z | 2022-03-31T03:30:05.000Z | // Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include <array>
#include <assert.h>
#include <deque>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
template <typename C>
void test() {
C c;
const typename C::con... | 21.323529 | 59 | 0.591724 | isra-fel |
4e0747a7edc4b251f829e1d34a5abcc1e125929d | 70,129 | cxx | C++ | PWGJE/PWGJE/AliAnalysisTaskJetProperties.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 114 | 2017-03-03T09:12:23.000Z | 2022-03-03T20:29:42.000Z | PWGJE/PWGJE/AliAnalysisTaskJetProperties.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 19,637 | 2017-01-16T12:34:41.000Z | 2022-03-31T22:02:40.000Z | PWGJE/PWGJE/AliAnalysisTaskJetProperties.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 1,021 | 2016-07-14T22:41:16.000Z | 2022-03-31T05:15:51.000Z | // **************************************************************************************
// * *
// * Task for Jet properties and jet shape analysis in PWG4 Jet Task Force Train for pp *
// * ... | 39.156337 | 168 | 0.652227 | maroozm |
4e07ffded9aab7c634229dcf72f6f1acfc7061d6 | 403 | cpp | C++ | Applications/calculator/main.cpp | Butterzz1288/ButterOS | 4faee625eba83bd22bc8d180e0c4136f543c3404 | [
"BSD-2-Clause"
] | 5 | 2021-11-25T10:53:24.000Z | 2022-03-31T08:17:45.000Z | Applications/calculator/main.cpp | Butterzz1288/ButterOS | 4faee625eba83bd22bc8d180e0c4136f543c3404 | [
"BSD-2-Clause"
] | null | null | null | Applications/calculator/main.cpp | Butterzz1288/ButterOS | 4faee625eba83bd22bc8d180e0c4136f543c3404 | [
"BSD-2-Clause"
] | null | null | null | #include <Lemon/GUI/Window.h>
#include <Lemon/GUI/Messagebox.h>
#include <Lemon/System/Spawn.h>
Lemon::GUI::Window* window;
window = new Lemon::GUI::Window("Addition", {600, 348}, WINDOW_FLAGS_RESIZABLE, Lemon::GUI::WindowType::GUI);
box = new Lemon::GUI::textInput("Input 1")
box = new Lemon::GUI::textInput("Input 2"... | 36.636364 | 109 | 0.702233 | Butterzz1288 |
4e0e0a55682db38fc988fc71a7b830d5ba500dd4 | 9,786 | cpp | C++ | speedcc/lua-support/src/native/SCLuaRegisterSCDateTimeDate.cpp | kevinwu1024/SpeedCC | 7b32e3444236d8aebf8198ebc3fede8faf201dee | [
"MIT"
] | 7 | 2018-03-10T02:01:49.000Z | 2021-09-14T15:42:10.000Z | speedcc/lua-support/src/native/SCLuaRegisterSCDateTimeDate.cpp | kevinwu1024/SpeedCC | 7b32e3444236d8aebf8198ebc3fede8faf201dee | [
"MIT"
] | null | null | null | speedcc/lua-support/src/native/SCLuaRegisterSCDateTimeDate.cpp | kevinwu1024/SpeedCC | 7b32e3444236d8aebf8198ebc3fede8faf201dee | [
"MIT"
] | 1 | 2018-03-10T02:01:58.000Z | 2018-03-10T02:01:58.000Z | /****************************************************************************
Copyright (c) 2017-2020 Kevin Wu (Wu Feng)
github: http://github.com/kevinwu1024
Licensed under the MIT License (the "License"); you may not use this file except
in compliance with the License. You may obtain a copy of the License a... | 28.614035 | 114 | 0.747394 | kevinwu1024 |
4e0f1c6eb87b82cea1b56682a957f6a7adb696b1 | 245 | cc | C++ | Emscripten/em_asm_/em_asm_.cc | stephenfire/Book-DISO-WebAssembly | 35054b59caa4284680d7dd73bf2637de5631caa7 | [
"MIT"
] | 57 | 2018-02-14T02:12:00.000Z | 2022-03-04T09:12:26.000Z | Emscripten/em_asm_/em_asm_.cc | stephenfire/Book-DISO-WebAssembly | 35054b59caa4284680d7dd73bf2637de5631caa7 | [
"MIT"
] | 15 | 2018-08-23T12:37:53.000Z | 2021-05-09T10:22:27.000Z | Emscripten/em_asm_/em_asm_.cc | stephenfire/Book-DISO-WebAssembly | 35054b59caa4284680d7dd73bf2637de5631caa7 | [
"MIT"
] | 15 | 2019-01-27T09:35:19.000Z | 2022-02-03T13:56:03.000Z | #include <emscripten.h>
#include <iostream>
using namespace std;
int main (int argc, char **argv) {
int x = 100;
int y = EM_ASM_({
console.log("This value is from C++: ", $0);
return 10;
}, x);
cout << y << endl;
return 0;
}
| 16.333333 | 48 | 0.579592 | stephenfire |
4e0ff903226b52853d94e2bc191ba3dd2bf2b2de | 5,381 | cpp | C++ | Engine/Source/Developer/CrashDebugHelper/Private/Windows/CrashDebugHelperWindows.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/Developer/CrashDebugHelper/Private/Windows/CrashDebugHelperWindows.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/Developer/CrashDebugHelper/Private/Windows/CrashDebugHelperWindows.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "CrashDebugHelperWindows.h"
#include "CrashDebugHelperPrivate.h"
#include "WindowsPlatformStackWalkExt.h"
#include "Misc/Parse.h"
#include "Misc/CommandLine.h"
#include "EngineVersion.h"
#include "ISourceControlModule.h"
#include "WindowsHWrapper.... | 29.404372 | 112 | 0.733135 | windystrife |
4e14b8d9c33441c8e4cf4b7b77834f5889b1154e | 14,267 | cxx | C++ | inetsrv/query/query/dllreg.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetsrv/query/query/dllreg.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetsrv/query/query/dllreg.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1997 - 1999.
//
// File: dllreg.cxx
//
// Contents: Null and Plain Text filter registration
//
// History: 06-May-97 KrishnaN Created
// ... | 37.944149 | 150 | 0.498563 | npocmaka |
4e164e5e843306462759f02ac2622bea6e19ede9 | 10,419 | cxx | C++ | Tracing/TraceEdit/cellexport.cxx | tostathaina/farsight | 7e9d6d15688735f34f7ca272e4e715acd11473ff | [
"Apache-2.0"
] | 8 | 2016-07-22T11:24:19.000Z | 2021-04-10T04:22:31.000Z | Tracing/TraceEdit/cellexport.cxx | YanXuHappygela/Farsight | 1711b2a1458c7e035edd21fe0019a1f7d23fcafa | [
"Apache-2.0"
] | null | null | null | Tracing/TraceEdit/cellexport.cxx | YanXuHappygela/Farsight | 1711b2a1458c7e035edd21fe0019a1f7d23fcafa | [
"Apache-2.0"
] | 7 | 2016-07-21T07:39:17.000Z | 2020-01-29T02:03:27.000Z | /*****************************************************************************************
// File dialog for autocellexport to save individual traces in swc and jpg files. //
// You are given the options of saving swc files, jpg files, or both in the chosen //
// directory you choose. You can also name the files as... | 34.73 | 199 | 0.758422 | tostathaina |
4e1b0734caad480a361ef9049621f122aed0c125 | 876 | hpp | C++ | include/elasty/cloth-sim-object.hpp | 0x0c/elasty | 3995cacbefa8d7f39249e9f75fa291828e2e7c2d | [
"MIT"
] | null | null | null | include/elasty/cloth-sim-object.hpp | 0x0c/elasty | 3995cacbefa8d7f39249e9f75fa291828e2e7c2d | [
"MIT"
] | null | null | null | include/elasty/cloth-sim-object.hpp | 0x0c/elasty | 3995cacbefa8d7f39249e9f75fa291828e2e7c2d | [
"MIT"
] | null | null | null | #ifndef cloth_sim_object_hpp
#define cloth_sim_object_hpp
#include <elasty/sim-object.hpp>
#include <string>
#include <Eigen/Core>
#include <Eigen/Geometry>
namespace elasty
{
class ClothSimObject : public SimObject
{
public:
enum class Strategy
{
Bending,
Isometri... | 25.028571 | 88 | 0.606164 | 0x0c |
4e206c705787e9fb8d030f1e407867ad49c4d54c | 226,423 | cpp | C++ | bnn/src/network/output/hls-syn/lfcW1A1-pynqZ1-Z2/sol1/syn/systemc/Matrix_Vector_Activa_1_2.cpp | IceyFong/Lutification | 3e42d34d6840d5deb84407aad5c58216527a4b0a | [
"BSD-3-Clause"
] | null | null | null | bnn/src/network/output/hls-syn/lfcW1A1-pynqZ1-Z2/sol1/syn/systemc/Matrix_Vector_Activa_1_2.cpp | IceyFong/Lutification | 3e42d34d6840d5deb84407aad5c58216527a4b0a | [
"BSD-3-Clause"
] | null | null | null | bnn/src/network/output/hls-syn/lfcW1A1-pynqZ1-Z2/sol1/syn/systemc/Matrix_Vector_Activa_1_2.cpp | IceyFong/Lutification | 3e42d34d6840d5deb84407aad5c58216527a4b0a | [
"BSD-3-Clause"
] | null | null | null | #include "Matrix_Vector_Activa_1.h"
#include "AESL_pkg.h"
using namespace std;
namespace ap_rtl {
void Matrix_Vector_Activa_1::thread_ap_clk_no_reset_() {
if ( ap_rst.read() == ap_const_logic_1) {
ap_CS_fsm = ap_ST_fsm_state1;
} else {
ap_CS_fsm = ap_NS_fsm.read();
}
if ( ap_rst.read(... | 94.06855 | 341 | 0.713828 | IceyFong |
4e26668966a1c7e7bfc1789acf6637fae71f1fd5 | 15,052 | cpp | C++ | wikidiff2/Wikidiff2.cpp | uesp/uesp-setup | 353a09cd199cffb1c339f34080775bb9c6c07918 | [
"MIT"
] | null | null | null | wikidiff2/Wikidiff2.cpp | uesp/uesp-setup | 353a09cd199cffb1c339f34080775bb9c6c07918 | [
"MIT"
] | null | null | null | wikidiff2/Wikidiff2.cpp | uesp/uesp-setup | 353a09cd199cffb1c339f34080775bb9c6c07918 | [
"MIT"
] | null | null | null | /**
* Diff formatter, based on code by Steinar H. Gunderson, converted to work with the
* Dairiki diff engine by Tim Starling
*
* GPL.
*/
#include <stdio.h>
#include <string.h>
#include <sstream>
#include <stdarg.h>
#include "Wikidiff2.h"
#include <regex>
void Wikidiff2::diffLines(const StringVector & lines1, c... | 34.287016 | 209 | 0.65493 | uesp |
89ed15d5ca81281b699841d2d4af850564034645 | 3,295 | cpp | C++ | ds/security/services/smartcrd/server/scardsvr/waitsam.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/security/services/smartcrd/server/scardsvr/waitsam.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/security/services/smartcrd/server/scardsvr/waitsam.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (C) Microsoft Corporation, 1998 - 1999
Module Name:
waitsam
Abstract:
This module provides back-door access to some internal NT routines. This
is needed to get at the SAM Startup Event -- it has an illegal name from
the Win32 routines, so we have to sneak back and pull i... | 18.407821 | 90 | 0.65736 | npocmaka |
89ed2835a07b2ca5ef38bcdd9efbcd1b02580d25 | 503 | cpp | C++ | src/10-2-1-26.cpp | XuZhixuan/cpp_homework | 31bcfd9a8df4df3af354240dfa2d72ed3b62057e | [
"MIT"
] | 3 | 2019-10-20T17:22:17.000Z | 2021-01-13T04:32:55.000Z | src/10-2-1-26.cpp | XuZhixuan/cpp_homework | 31bcfd9a8df4df3af354240dfa2d72ed3b62057e | [
"MIT"
] | null | null | null | src/10-2-1-26.cpp | XuZhixuan/cpp_homework | 31bcfd9a8df4df3af354240dfa2d72ed3b62057e | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
double fun(double);
int main()
{
using namespace std;
float lower, upper;
cin >> lower;
cin >> upper;
double step = (upper - lower) / 200;
double sum = 0;
double temp = 0;
for (int i = 0; i < 200; i++)
{
temp = fun(lower);
lower += step;
te... | 12.897436 | 38 | 0.532803 | XuZhixuan |
89ed9c9b2bee0a2efa6d1784ae4b2c1a3cc5f598 | 2,548 | cpp | C++ | tests/methodTask.cpp | DylanZA/eslang | 341ed66b3c1a5cfbb0f859bfe1146e88697f59fd | [
"MIT"
] | 15 | 2017-09-19T02:12:04.000Z | 2021-05-01T13:12:51.000Z | tests/methodTask.cpp | DylanZA/eslang | 341ed66b3c1a5cfbb0f859bfe1146e88697f59fd | [
"MIT"
] | null | null | null | tests/methodTask.cpp | DylanZA/eslang | 341ed66b3c1a5cfbb0f859bfe1146e88697f59fd | [
"MIT"
] | null | null | null | #include <eslang/Context.h>
#include <eslang/Logging.h>
#include <gtest/gtest.h>
#include "TestCommon.h"
namespace s {
class MethodCounter : public Process {
public:
int const kMax;
MethodCounter(ProcessArgs i, int m = 256) : Process(std::move(i)), kMax(m) {}
LIFETIMECHECK;
MethodTask<int> subRun(int n) {
... | 19.751938 | 79 | 0.628728 | DylanZA |
89efb0aca813eae615cb58674ae17bf1b0185498 | 5,105 | cpp | C++ | released_plugins/v3d_plugins/neurontracing_neutube/src_neutube/neurolabi/gui/zstackaccessor.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2021-12-27T19:14:03.000Z | 2021-12-27T19:14:03.000Z | released_plugins/v3d_plugins/neurontracing_neutube/src_neutube/neurolabi/gui/zstackaccessor.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2016-12-03T05:33:13.000Z | 2016-12-03T05:33:13.000Z | released_plugins/v3d_plugins/neurontracing_neutube/src_neutube/neurolabi/gui/zstackaccessor.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | #include "zstackaccessor.h"
#include <string.h>
#include "tz_image_io.h"
#include "tz_file_list.h"
using namespace std;
//Suppor 100M buffer
int ZStackAccessor::m_capacity = 104857600;
ZStackAccessor::ZStackAccessor()
{
m_buffer = NULL;
m_bufferZStart = 0;
m_width = 0;
m_height = 0;
m_byteNumberPerVoxel = ... | 26.045918 | 79 | 0.646425 | zzhmark |
89f361df2f866028bcf6ca3433e4d10791657ae1 | 449 | cpp | C++ | 6 star Problem Solving/Algorithms/String/Beautiful Binary String.cpp | TheCodeAlpha26/Hackerrank-Demystified | 03713a8f3a05e5d6dfed6f6808b06340558e2310 | [
"Apache-2.0"
] | 6 | 2021-04-26T17:09:54.000Z | 2021-07-08T17:36:16.000Z | 6 star Problem Solving/Algorithms/String/Beautiful Binary String.cpp | TheCodeAlpha26/Hackerrank-Demystified | 03713a8f3a05e5d6dfed6f6808b06340558e2310 | [
"Apache-2.0"
] | null | null | null | 6 star Problem Solving/Algorithms/String/Beautiful Binary String.cpp | TheCodeAlpha26/Hackerrank-Demystified | 03713a8f3a05e5d6dfed6f6808b06340558e2310 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int beautifulBinaryString(string s) {
int c=0;
for(int i=0;i<s.size()-2;i++)
if(s[i]=='0'&&s[i+1]=='1'&&s[i+2]=='0')
{
c++;
i+=2;
}
return(c);
}
int main()
{
int n... | 19.521739 | 53 | 0.407572 | TheCodeAlpha26 |
89f43b6498c438f50f0e47087ae9536bb2b23999 | 6,209 | cpp | C++ | AntiAirborne/Sources/battle/ParatrooperNode.cpp | beardog-ukr/ubiquitous-spork | 7f75d8f40dff70a965e901a4190dd35d64599441 | [
"Unlicense"
] | null | null | null | AntiAirborne/Sources/battle/ParatrooperNode.cpp | beardog-ukr/ubiquitous-spork | 7f75d8f40dff70a965e901a4190dd35d64599441 | [
"Unlicense"
] | null | null | null | AntiAirborne/Sources/battle/ParatrooperNode.cpp | beardog-ukr/ubiquitous-spork | 7f75d8f40dff70a965e901a4190dd35d64599441 | [
"Unlicense"
] | null | null | null | #include "ParatrooperNode.h"
using namespace anti_airborne;
#include "ZOrderConstTypes.h"
#include "ZOrderConstValues.h"
#include "SixCatsLogger.h"
#include "SixCatsLoggerMacro.h"
#include <sstream>
USING_NS_CC;
using namespace std;
//static const int kAngleManipulationActionTag = 21;
//static const int kDistanceMa... | 29.708134 | 99 | 0.57626 | beardog-ukr |
89fea8d9c89cbe560fa72909fff68fc44e8052f9 | 943 | cpp | C++ | source/EvaluationChain.cpp | vt4a2h/prcxx | 04794048f21cec548fa750b78239f920eef1bb60 | [
"MIT"
] | 1 | 2022-01-04T17:55:55.000Z | 2022-01-04T17:55:55.000Z | source/EvaluationChain.cpp | vt4a2h/prcxx | 04794048f21cec548fa750b78239f920eef1bb60 | [
"MIT"
] | null | null | null | source/EvaluationChain.cpp | vt4a2h/prcxx | 04794048f21cec548fa750b78239f920eef1bb60 | [
"MIT"
] | null | null | null | //
// MIT License
//
// Copyright (c) 2020-present Vitaly Fanaskov
//
// prcxx -- Yet another C++ property library
// Project home: https://github.com/vt4a2h/prcxx
//
// See LICENSE file for the further details.
//
#include "prcxx/EvaluationChain.hpp"
namespace prcxx {
bool EvaluationChain::empty() const
{
return... | 16.258621 | 50 | 0.700954 | vt4a2h |
89ff92912fe7e51166d943cc1a89b652ff4b53c1 | 3,866 | cpp | C++ | GraphicsMagick.NET/Drawables/DrawableAffine.cpp | dlemstra/GraphicsMagick.NET | 332718f2315c3752eaeb84f4a6a30a553441e79e | [
"ImageMagick",
"Apache-2.0"
] | 35 | 2015-10-18T19:49:52.000Z | 2022-01-18T05:30:46.000Z | GraphicsMagick.NET/Drawables/DrawableAffine.cpp | elyor0529/GraphicsMagick.NET | 332718f2315c3752eaeb84f4a6a30a553441e79e | [
"ImageMagick",
"Apache-2.0"
] | 12 | 2016-07-22T16:05:03.000Z | 2020-02-26T15:21:03.000Z | GraphicsMagick.NET/Drawables/DrawableAffine.cpp | elyor0529/GraphicsMagick.NET | 332718f2315c3752eaeb84f4a6a30a553441e79e | [
"ImageMagick",
"Apache-2.0"
] | 12 | 2016-02-24T12:11:50.000Z | 2021-07-12T18:20:12.000Z | //=================================================================================================
// Copyright 2014-2015 Dirk Lemstra <https://graphicsmagick.codeplex.com/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the License. You may ob... | 40.694737 | 100 | 0.38955 | dlemstra |
d60020f0254390e3b1d98b622875861c7b262861 | 10,521 | cpp | C++ | src/Scheme.cpp | nizikawa-worms/wkTerrainSync | 676bcb981b2cc1bba80e8928fceb3731d40beb63 | [
"WTFPL"
] | 7 | 2021-04-19T14:30:03.000Z | 2022-01-14T16:44:47.000Z | src/Scheme.cpp | nizikawa-worms/wkTerrainSync | 676bcb981b2cc1bba80e8928fceb3731d40beb63 | [
"WTFPL"
] | 1 | 2022-01-27T09:09:05.000Z | 2022-01-27T10:17:41.000Z | src/Scheme.cpp | nizikawa-worms/wkTerrainSync | 676bcb981b2cc1bba80e8928fceb3731d40beb63 | [
"WTFPL"
] | null | null | null |
#include "Scheme.h"
#include "Hooks.h"
#include "Missions.h"
#include "Packets.h"
#include "LobbyChat.h"
#include "Utils.h"
#include "Config.h"
#include "WaLibc.h"
#include "Frontend.h"
#include "Debugf.h"
namespace fs = std::filesystem;
void Scheme::dumpSchemeFromResources(int id, std::filesystem::path path) {
// i... | 36.658537 | 332 | 0.719323 | nizikawa-worms |
d600c8b96bfa216bb9a9f73f08857aa103979207 | 6,786 | cpp | C++ | src/main.cpp | jclc/tiralabra-compression | 1b4a2375d006e10718ff7887ba36d94e5f7a3c1f | [
"MIT"
] | null | null | null | src/main.cpp | jclc/tiralabra-compression | 1b4a2375d006e10718ff7887ba36d94e5f7a3c1f | [
"MIT"
] | 2 | 2017-04-15T16:06:11.000Z | 2017-05-11T21:50:58.000Z | src/main.cpp | jclc/tiralabra-compression | 1b4a2375d006e10718ff7887ba36d94e5f7a3c1f | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include <memory>
#include <chrono>
#include "input.hpp"
#include "output.hpp"
#include <thread>
#include <cmath>
#include "encoder.hpp"
#include "decoder.hpp"
#include "progressbar.hpp"
#include "tempfilenames.hpp"
void printHelp() {
std::cout << "tiralabra-co... | 30.294643 | 89 | 0.595933 | jclc |
d601747ccb7268afd879de7522813e6ef338ef4f | 3,178 | cpp | C++ | src/editor/Widgets/VerbWidget.cpp | tedvalson/NovelTea | f731951f25936cb7f5ff23e543e0301c1b5bfe82 | [
"MIT"
] | null | null | null | src/editor/Widgets/VerbWidget.cpp | tedvalson/NovelTea | f731951f25936cb7f5ff23e543e0301c1b5bfe82 | [
"MIT"
] | null | null | null | src/editor/Widgets/VerbWidget.cpp | tedvalson/NovelTea | f731951f25936cb7f5ff23e543e0301c1b5bfe82 | [
"MIT"
] | null | null | null | #include "VerbWidget.hpp"
#include "ui_VerbWidget.h"
#include <NovelTea/ProjectData.hpp>
#include <NovelTea/Verb.hpp>
#include <QDebug>
VerbWidget::VerbWidget(const std::string &idName, QWidget *parent)
: EditorTabWidget(parent)
, ui(new Ui::VerbWidget)
{
m_idName = idName;
ui->setupUi(this);
load();
MODIFIER(u... | 26.483333 | 97 | 0.724984 | tedvalson |
d6026da06043db22c7ffe76028b4b7418bac6c79 | 5,059 | hpp | C++ | src/libmarsvk/include/mvk/ComputePipeline.hpp | zmichaels11/mvk | 67ee3dcca1db39c7ad076864b8d5ba006e5d5cda | [
"BSD-3-Clause"
] | null | null | null | src/libmarsvk/include/mvk/ComputePipeline.hpp | zmichaels11/mvk | 67ee3dcca1db39c7ad076864b8d5ba006e5d5cda | [
"BSD-3-Clause"
] | null | null | null | src/libmarsvk/include/mvk/ComputePipeline.hpp | zmichaels11/mvk | 67ee3dcca1db39c7ad076864b8d5ba006e5d5cda | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <cstddef>
#include <memory>
#include <utility>
#include "volk.h"
#include "mvk/Pipeline.hpp"
#include "mvk/PipelineLayout.hpp"
#include "mvk/PipelineShaderStageCreateInfo.hpp"
namespace mvk {
class Device;
class PipelineCache;
class DescriptorSetLayout;
class ComputePipeline;... | 33.726667 | 127 | 0.627594 | zmichaels11 |
d604d7002f6c58f71ac7b27100e2897d237ce421 | 36,020 | cc | C++ | tesseract-recognize.cc | mauvilsa/tesseract-recognize | 5bace16f3201565264e058bd594df43cfaca9fd4 | [
"MIT"
] | 34 | 2017-04-13T16:12:14.000Z | 2021-09-13T18:12:25.000Z | tesseract-recognize.cc | mauvilsa/tesseract-recognize | 5bace16f3201565264e058bd594df43cfaca9fd4 | [
"MIT"
] | 7 | 2017-07-17T12:16:53.000Z | 2021-08-10T06:07:14.000Z | tesseract-recognize.cc | mauvilsa/tesseract-recognize | 5bace16f3201565264e058bd594df43cfaca9fd4 | [
"MIT"
] | 7 | 2017-07-24T09:11:47.000Z | 2021-06-15T17:21:26.000Z | /**
* Tool that does layout analysis and OCR using tesseract providing results in Page XML format
*
* @version $Version: 2021.02.09$
* @author Mauricio Villegas <mauricio_ville@yahoo.com>
* @copyright Copyright (c) 2015-present, Mauricio Villegas <mauricio_ville@yahoo.com>
* @link https://github.com/mauvilsa/tess... | 40.931818 | 209 | 0.598751 | mauvilsa |
d607276feed1876d7426297fa7dd6a9fab4b7381 | 1,561 | cpp | C++ | src/c++/methods/CommentsInstanceMethods.cpp | TestingTravis/modioSDK | b15c4442a8acdb4bf690a846232399eaf9fe18f6 | [
"MIT"
] | null | null | null | src/c++/methods/CommentsInstanceMethods.cpp | TestingTravis/modioSDK | b15c4442a8acdb4bf690a846232399eaf9fe18f6 | [
"MIT"
] | null | null | null | src/c++/methods/CommentsInstanceMethods.cpp | TestingTravis/modioSDK | b15c4442a8acdb4bf690a846232399eaf9fe18f6 | [
"MIT"
] | null | null | null | #include "c++/ModIOInstance.h"
namespace modio
{
void Instance::getAllModComments(u32 mod_id, modio::FilterCreator &filter, const std::function<void(const modio::Response &response, const std::vector<modio::Comment> &comments)> &callback)
{
const struct GetAllModCommentsCall *get_all_mod_comments_call = new GetAll... | 44.6 | 189 | 0.778988 | TestingTravis |
d61a1cca8333efa64a7526312a72713da091f7a9 | 2,567 | hpp | C++ | OfferReview/OfferReview/01_38/26_SubstructureInTree/SubstructureInTree.hpp | chm994483868/HMDailyLearningRecord | 95ff0a5347927ce4527bcdd70374e5be22bfc60d | [
"MIT"
] | 2 | 2021-06-26T08:07:04.000Z | 2021-08-03T06:05:40.000Z | OfferReview/OfferReview/01_38/26_SubstructureInTree/SubstructureInTree.hpp | chm994483868/HMDailyLearningRecord | 95ff0a5347927ce4527bcdd70374e5be22bfc60d | [
"MIT"
] | null | null | null | OfferReview/OfferReview/01_38/26_SubstructureInTree/SubstructureInTree.hpp | chm994483868/HMDailyLearningRecord | 95ff0a5347927ce4527bcdd70374e5be22bfc60d | [
"MIT"
] | null | null | null | //
// SubstructureInTree.hpp
// OfferReview
//
// Created by CHM on 2020/7/29.
// Copyright © 2020 CHM. All rights reserved.
//
#ifndef SubstructureInTree_hpp
#define SubstructureInTree_hpp
#include <stdio.h>
namespace SubstructureInTree {
// 26:树的子结构
// 题目:输入两棵二叉树A和B,判断B是不是A的子结构。
struct BinaryTreeNode {
do... | 23.550459 | 94 | 0.3806 | chm994483868 |
d61dfb0f234a9e2d183888452ae7a80373d8809d | 742 | cpp | C++ | Codeforces/Codeforces 1200 1400/1178B.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | 1 | 2019-09-07T15:56:05.000Z | 2019-09-07T15:56:05.000Z | Codeforces/Codeforces 1200 1400/1178B.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | null | null | null | Codeforces/Codeforces 1200 1400/1178B.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(int argc, char const *argv[]) {
string inp;
cin >> inp;
vector<ll> left(inp.length(), 0), right(inp.length(), 0);
for (size_t i = 2, j = inp.length() - 3; i < inp.length(); ++i, --j)
{
if (inp[i - 1] == 'v' && in... | 24.733333 | 72 | 0.421833 | Superdanby |
d6202244b11c5b42952b1c447fa48887abbc05fd | 2,521 | cpp | C++ | src/ssl/Exception.cpp | Good-Pudge/OkHttpFork | b179350d6262f281c1c27d69d944c62f536fe1ba | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 10 | 2019-02-21T06:21:48.000Z | 2022-02-22T08:01:24.000Z | src/ssl/Exception.cpp | Good-Pudge/OkHttpFork | b179350d6262f281c1c27d69d944c62f536fe1ba | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 2 | 2018-02-04T20:16:46.000Z | 2018-02-04T20:19:00.000Z | src/ssl/Exception.cpp | Good-Pudge/OkHttpFork | b179350d6262f281c1c27d69d944c62f536fe1ba | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 10 | 2018-10-15T10:17:00.000Z | 2022-02-17T02:28:51.000Z | //
// Created by Good_Pudge.
//
#include "Util.hpp"
#include <ohf/ssl/Exception.hpp>
namespace ohf {
namespace ssl {
std::string get_error(Exception::Code code) {
std::string m_what;
switch(code) {
case ohf::Exception::Code::SSL_CREATE_ERROR:
m_w... | 36.536232 | 108 | 0.503372 | Good-Pudge |
d62036c96de9ba6e8889edad3ab32b8b439d6f04 | 1,106 | cpp | C++ | FrameWorkCode/TreeItem.cpp | sans-sehgal/OpenOCR_Correct | 18424cd4d887a25c7cfc1743f1f975196b749deb | [
"BSD-3-Clause"
] | 6 | 2021-12-03T05:42:26.000Z | 2022-03-09T01:25:16.000Z | FrameWorkCode/TreeItem.cpp | sans-sehgal/OpenOCR_Correct | 18424cd4d887a25c7cfc1743f1f975196b749deb | [
"BSD-3-Clause"
] | 101 | 2021-08-18T04:12:43.000Z | 2022-03-27T17:31:20.000Z | FrameWorkCode/TreeItem.cpp | sans-sehgal/OpenOCR_Correct | 18424cd4d887a25c7cfc1743f1f975196b749deb | [
"BSD-3-Clause"
] | 4 | 2021-08-21T13:37:21.000Z | 2022-02-26T06:00:27.000Z | #pragma once
#include "TreeItem.h"
#include "Filters.h"
TreeItem::~TreeItem()
{
qDeleteAll(mChildItems);
}
void TreeItem::append_child(TreeItem * child)
{
mChildItems.append(child);
}
TreeItem * TreeItem::child(int row)
{
if(row < 0 || row >= mChildItems.size())
return nullptr;
return mChildItems.at(row);
}
in... | 16.507463 | 71 | 0.659132 | sans-sehgal |
d621d41f5406af4cac6f7bf1158e7c7047acf386 | 1,496 | cc | C++ | test/log_stream_unittest.cc | Mercy1101/my_log | 593dddc9cc4d7b6f2fa51176c7f83429fe43c266 | [
"MIT"
] | null | null | null | test/log_stream_unittest.cc | Mercy1101/my_log | 593dddc9cc4d7b6f2fa51176c7f83429fe43c266 | [
"MIT"
] | null | null | null | test/log_stream_unittest.cc | Mercy1101/my_log | 593dddc9cc4d7b6f2fa51176c7f83429fe43c266 | [
"MIT"
] | null | null | null | /// Copyright (c) 2019,2020 Lijiancong. All rights reserved.
///
/// Use of this source code is governed by a MIT license
/// that can be found in the License file.
#include "log_stream.hpp"
#include <catch2/catch.hpp>
#include "profiler.hpp"
TEST_CASE("log_stream 简单测试", "log") {
LOG(TRACE) << "string"
... | 27.2 | 60 | 0.407754 | Mercy1101 |
d6230b0105f396a22f3275ea218d38487a4e3995 | 3,607 | hpp | C++ | include/Org/BouncyCastle/Crypto/Parameters/DesParameters.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/Org/BouncyCastle/Crypto/Parameters/DesParameters.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/Org/BouncyCastle/Crypto/Parameters/DesParameters.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: Org.BouncyCastle.Crypto.Parameters.KeyParameter
#include "Org/BouncyCa... | 56.359375 | 134 | 0.712503 | darknight1050 |
d624b48f9cc20fcb15c28a498237a6c04a8fa8d6 | 4,204 | cpp | C++ | src/base/ossimAdjustableParameterInfo.cpp | vladislav-horbatiuk/ossim | 82417ad868fac022672335e1684bdd91d662c18c | [
"MIT"
] | 251 | 2015-10-20T09:08:11.000Z | 2022-03-22T18:16:38.000Z | src/base/ossimAdjustableParameterInfo.cpp | IvanLJF/ossim | 2e0143f682b9884a09ff2598ef8737f29e44fbdf | [
"MIT"
] | 73 | 2015-11-02T17:12:36.000Z | 2021-11-15T17:41:47.000Z | src/base/ossimAdjustableParameterInfo.cpp | IvanLJF/ossim | 2e0143f682b9884a09ff2598ef8737f29e44fbdf | [
"MIT"
] | 146 | 2015-10-15T16:00:15.000Z | 2022-03-22T12:37:14.000Z | //*******************************************************************
// Copyright (C) 2000 ImageLinks Inc.
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts
//
//*************************************************************************
// $Id: ossimAdjustableParameterInfo.cpp 11347 2007-07-2... | 27.298701 | 89 | 0.596575 | vladislav-horbatiuk |
d62745605e1ad49759010b0e6da70446dda2987e | 938 | cpp | C++ | Problem/src/SimpleProblem.cpp | tut-cc/DiceTilingMeu | d07d6e27370385ff7b4bce48f34f64bb1caa41ee | [
"MIT"
] | 8 | 2015-10-12T05:39:06.000Z | 2016-08-20T06:12:26.000Z | Problem/src/SimpleProblem.cpp | tut-cc/DiceTilingMeu | d07d6e27370385ff7b4bce48f34f64bb1caa41ee | [
"MIT"
] | null | null | null | Problem/src/SimpleProblem.cpp | tut-cc/DiceTilingMeu | d07d6e27370385ff7b4bce48f34f64bb1caa41ee | [
"MIT"
] | null | null | null | #include "SimpleProblem.hpp"
#include <string>
#include <iostream>
SimpleProblem::SimpleProblem() : field([](){
std::vector<std::string> list;
for (int i = 0; i < 32; ++i) {
std::string str;
std::cin >> str;
list.push_back( str );
}
return list;
}()), stones([this](){
std::vector<std::vector<std:... | 19.142857 | 75 | 0.614072 | tut-cc |
d628b15b7336c5d05c275d4421ee0aa981992da8 | 234 | cpp | C++ | solved/11054.cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | solved/11054.cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | solved/11054.cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<math.h>
void main( )
{
long n,work,prework,i,wine;
while(scanf("%ld",&n)==1 && n!=0)
{
work=prework=0;
for(i=0;i<n;i++)
{
scanf("%ld",&wine);
work+=abs(prework);
prework+=wine;
}
printf("%ld\n",work);
}
}
| 12.315789 | 34 | 0.594017 | goutomroy |
d62b88a1c0df56df0d339305aee9f48e8cfcafcb | 45,230 | cpp | C++ | tsim_example/hardware/chisel/build/verilator/VTestAccel.cpp | BenjaminTu/TsimTest | 4874af4130b32cfb7af522f0f7718c7ded1572a7 | [
"Apache-2.0"
] | null | null | null | tsim_example/hardware/chisel/build/verilator/VTestAccel.cpp | BenjaminTu/TsimTest | 4874af4130b32cfb7af522f0f7718c7ded1572a7 | [
"Apache-2.0"
] | null | null | null | tsim_example/hardware/chisel/build/verilator/VTestAccel.cpp | BenjaminTu/TsimTest | 4874af4130b32cfb7af522f0f7718c7ded1572a7 | [
"Apache-2.0"
] | null | null | null | // Verilated -*- C++ -*-
// DESCRIPTION: Verilator output: Design implementation internals
// See VTestAccel.h for the primary calling header
#include "VTestAccel.h"
#include "VTestAccel__Syms.h"
#include "verilated_dpi.h"
//--------------------
void VTestAccel::eval() {
VL_DEBUG_IF(VL_DBG_MSGF("+++++TOP Eval... | 55.70197 | 408 | 0.775525 | BenjaminTu |
d62bc6167214d511203aec3feca9318565bff4ae | 972 | cpp | C++ | State.cpp | nathiss/ticTacToe | e51866b66dda3fe92e82450a7732ad175eb1c96c | [
"MIT"
] | null | null | null | State.cpp | nathiss/ticTacToe | e51866b66dda3fe92e82450a7732ad175eb1c96c | [
"MIT"
] | null | null | null | State.cpp | nathiss/ticTacToe | e51866b66dda3fe92e82450a7732ad175eb1c96c | [
"MIT"
] | null | null | null | #include "State.hpp"
State::Type State::type = State::MENU;
State::State()
{
}
State::~State()
{
}
void State::clear(sf::Color color)
{
window->clear(color);
}
void State::display()
{
window->display();
}
void State::run()
{
pollEvent();
update();
clear(bag->get<sf::Color>("color.bg"));
... | 17.357143 | 69 | 0.631687 | nathiss |
d63017b15ecaa6d29a1338a6d85bc3750a226912 | 1,812 | hpp | C++ | interpreter/IDuckPro_AST/src/interpreter/Token.hpp | PS-Group/compiler-theory-samples | c916af50eb42020024257ecd17f9be1580db7bf0 | [
"MIT"
] | null | null | null | interpreter/IDuckPro_AST/src/interpreter/Token.hpp | PS-Group/compiler-theory-samples | c916af50eb42020024257ecd17f9be1580db7bf0 | [
"MIT"
] | null | null | null | interpreter/IDuckPro_AST/src/interpreter/Token.hpp | PS-Group/compiler-theory-samples | c916af50eb42020024257ecd17f9be1580db7bf0 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
struct TokenPos
{
size_t line;
size_t column;
TokenPos()
:line(0), column(0)
{
}
TokenPos(size_t vLine, size_t vColumn)
:line(vLine), column(vColumn)
{
}
};
class Token
{
public:
enum Type {
Type_EOF,
Type_LBRACKET,
... | 17.09434 | 62 | 0.509934 | PS-Group |
d630bdf3a014147a45ffdf8137e1ee9f87d00937 | 441 | cpp | C++ | Mini lista para Iniciantes/aula01-Ex01.cpp | Suricat0Br/Programacao-em-C | a04b5b8e3dbbf82fcec4888d7bdf888bdc53d715 | [
"Apache-2.0"
] | null | null | null | Mini lista para Iniciantes/aula01-Ex01.cpp | Suricat0Br/Programacao-em-C | a04b5b8e3dbbf82fcec4888d7bdf888bdc53d715 | [
"Apache-2.0"
] | null | null | null | Mini lista para Iniciantes/aula01-Ex01.cpp | Suricat0Br/Programacao-em-C | a04b5b8e3dbbf82fcec4888d7bdf888bdc53d715 | [
"Apache-2.0"
] | null | null | null | #include <stdlib.h>
#include <iostream>
#include<stdio.h>
//Faça um Programa que peça as 4 notas bimestrais e mostre a média.
int main()
{
int i;
float nota, media;
printf("Ola, Bem vindo(a) ao software de cadastro de notas!\n\n");
for(i = 0; i<4; i++){
printf("Insira sua %d nota:\n",(i+1));
sc... | 23.210526 | 70 | 0.582766 | Suricat0Br |
d63744912ee0b717d77967f1755ba91f73670b46 | 13,220 | cpp | C++ | VGP334/02_HelloModel/GameState.cpp | CyroPCJr/OmegaEngine | 65fbd6cff54266a9c934e3a875a4493d26758661 | [
"MIT"
] | 1 | 2021-04-23T19:18:12.000Z | 2021-04-23T19:18:12.000Z | VGP334/02_HelloModel/GameState.cpp | CyroPCJr/OmegaEngine | 65fbd6cff54266a9c934e3a875a4493d26758661 | [
"MIT"
] | null | null | null | VGP334/02_HelloModel/GameState.cpp | CyroPCJr/OmegaEngine | 65fbd6cff54266a9c934e3a875a4493d26758661 | [
"MIT"
] | 1 | 2021-06-15T10:42:08.000Z | 2021-06-15T10:42:08.000Z | #include "GameState.h"
#include "GameState.h"
#include <ImGui/Inc/imgui.h>
using namespace Omega::Graphics;
using namespace Omega::Input;
using namespace Omega::Math;
namespace
{
void SimpleDrawCamera(const Camera& camera)
{
auto defaultMatView = camera.GetViewMatrix();
Vector3 cameraPosition = c... | 31.778846 | 113 | 0.710287 | CyroPCJr |
d63c01f88d79ba06c15e4f77dd4f2423c0380760 | 2,376 | hpp | C++ | c/src/xkms/XKMSKeyBinding.hpp | douglascrp/xmlsec-mityc-sinadura | cf63024481914be33ae3a06ef1cc7629dd59aa0f | [
"Apache-2.0"
] | null | null | null | c/src/xkms/XKMSKeyBinding.hpp | douglascrp/xmlsec-mityc-sinadura | cf63024481914be33ae3a06ef1cc7629dd59aa0f | [
"Apache-2.0"
] | null | null | null | c/src/xkms/XKMSKeyBinding.hpp | douglascrp/xmlsec-mityc-sinadura | cf63024481914be33ae3a06ef1cc7629dd59aa0f | [
"Apache-2.0"
] | 2 | 2018-08-10T18:54:23.000Z | 2018-08-10T18:56:27.000Z | /*
* Copyright 2004-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 22.846154 | 75 | 0.690236 | douglascrp |
d646a6e4ee87c9c9bf70d990b57780443f314a5a | 20,081 | cpp | C++ | wdbecmbd/CrdWdbeVec/PnlWdbeVecDetail_blks.cpp | mpsitech/wdbe-WhizniumDBE | 27360ce6569dc55098a248b8a0a4b7e3913a6ce6 | [
"MIT"
] | 4 | 2020-10-27T14:33:25.000Z | 2021-08-07T20:55:42.000Z | wdbecmbd/CrdWdbeVec/PnlWdbeVecDetail_blks.cpp | mpsitech/wdbe-WhizniumDBE | 27360ce6569dc55098a248b8a0a4b7e3913a6ce6 | [
"MIT"
] | null | null | null | wdbecmbd/CrdWdbeVec/PnlWdbeVecDetail_blks.cpp | mpsitech/wdbe-WhizniumDBE | 27360ce6569dc55098a248b8a0a4b7e3913a6ce6 | [
"MIT"
] | null | null | null | /**
* \file PnlWdbeVecDetail_blks.cpp
* job handler for job PnlWdbeVecDetail (implementation of blocks)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
using namespace std;
using namespace Sbecore;
using n... | 29.88244 | 164 | 0.656143 | mpsitech |
d647597753feac195611ad369ff8b913dba5c048 | 2,235 | cpp | C++ | FindCriticalProcess.cpp | chk141/Homework-of-C-Language | b2d0d2b67abd55d51febb21c3eb6ce4a682e2cff | [
"BSD-3-Clause"
] | 255 | 2018-07-06T08:59:32.000Z | 2022-03-31T07:54:53.000Z | FindCriticalProcess.cpp | chk141/Homework-of-C-Language | b2d0d2b67abd55d51febb21c3eb6ce4a682e2cff | [
"BSD-3-Clause"
] | 4 | 2019-08-25T06:21:44.000Z | 2021-12-20T03:07:15.000Z | FindCriticalProcess.cpp | chk141/Homework-of-C-Language | b2d0d2b67abd55d51febb21c3eb6ce4a682e2cff | [
"BSD-3-Clause"
] | 105 | 2018-08-31T16:51:51.000Z | 2022-03-10T22:10:34.000Z | #include <stdio.h>
#include <Windows.h>
#include <Psapi.h>
#pragma comment(lib, "Psapi.lib")
#pragma comment(lib,"Advapi32.lib")
#define ProcessBreakOnTermination 29
typedef int ProcessInformationClass;
typedef NTSTATUS(NTAPI * _NtQueryInformationProcess)(
HANDLE ProcessHandle,
ProcessInformationClass information... | 25.988372 | 159 | 0.725727 | chk141 |
d647eaac3930291b4b98b7283dd33ceb8deeb8d6 | 1,955 | cpp | C++ | src/flowcontrol/returnblock.cpp | dendisuhubdy/coriander | 7df182981e5c4a8e043fea25d272d025a953f06d | [
"Apache-2.0"
] | 644 | 2017-05-21T05:25:20.000Z | 2022-03-25T04:18:14.000Z | src/flowcontrol/returnblock.cpp | hughperkins/cuda-ir-to-opencl | 7c6b65bc08a25a6bce21efe7b86be8fa985597af | [
"Apache-2.0"
] | 82 | 2017-05-21T15:19:24.000Z | 2022-01-30T01:41:44.000Z | src/flowcontrol/returnblock.cpp | hughperkins/cuda-ir-to-opencl | 7c6b65bc08a25a6bce21efe7b86be8fa985597af | [
"Apache-2.0"
] | 88 | 2017-05-21T01:31:16.000Z | 2022-01-31T09:28:17.000Z | // Copyright Hugh Perkins 2016
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writi... | 29.179104 | 127 | 0.719182 | dendisuhubdy |
d649c297cb189aab00fe797a913a428155e44923 | 1,485 | hh | C++ | src/include/meadow/dhalia.hh | cagelight/meadow | 9638ce5a1f18be3da3ace157b937e41cd65c6ec1 | [
"MIT"
] | null | null | null | src/include/meadow/dhalia.hh | cagelight/meadow | 9638ce5a1f18be3da3ace157b937e41cd65c6ec1 | [
"MIT"
] | null | null | null | src/include/meadow/dhalia.hh | cagelight/meadow | 9638ce5a1f18be3da3ace157b937e41cd65c6ec1 | [
"MIT"
] | null | null | null | #pragma once
/*
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--------------------------------------------------------------------------------------------------------------------------------
=============================================... | 49.5 | 128 | 0.040404 | cagelight |
d64e09197a3f0e439b5b3ba4589813b3b59b90dd | 946 | cc | C++ | ports/www/chromium-legacy/newport/files/patch-chrome_browser_extensions_install__signer.cc | danielfojt/DeltaPorts | 5710b4af4cacca5eb1ac577df304c788c07c4217 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ports/www/chromium-legacy/newport/files/patch-chrome_browser_extensions_install__signer.cc | danielfojt/DeltaPorts | 5710b4af4cacca5eb1ac577df304c788c07c4217 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ports/www/chromium-legacy/newport/files/patch-chrome_browser_extensions_install__signer.cc | danielfojt/DeltaPorts | 5710b4af4cacca5eb1ac577df304c788c07c4217 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | --- chrome/browser/extensions/install_signer.cc.orig 2019-03-17 20:14:24 UTC
+++ chrome/browser/extensions/install_signer.cc
@@ -293,13 +293,13 @@ void LogRequestStartHistograms() {
DCHECK(g_single_thread_checker.Get().CalledOnValidThread());
// Process::Current().CreationTime is only defined on some platforms.... | 49.789474 | 89 | 0.718816 | danielfojt |
d64f30d0b518162b311046829ac62e773319ccee | 3,897 | cpp | C++ | lib/jit/generation/engine/stream.cpp | listenlink/isaac | b0a265ee45337f92f1e8e9f2fb08a057292b0240 | [
"MIT"
] | 17 | 2017-01-22T10:40:52.000Z | 2021-12-01T07:42:40.000Z | lib/jit/generation/engine/stream.cpp | listenlink/isaac | b0a265ee45337f92f1e8e9f2fb08a057292b0240 | [
"MIT"
] | 3 | 2017-01-19T07:17:29.000Z | 2017-02-08T06:07:48.000Z | lib/jit/generation/engine/stream.cpp | listenlink/isaac | b0a265ee45337f92f1e8e9f2fb08a057292b0240 | [
"MIT"
] | 13 | 2017-01-10T13:21:03.000Z | 2021-08-11T11:44:06.000Z | /* Copyright 2015-2017 Philippe Tillet
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* pub... | 34.794643 | 161 | 0.737234 | listenlink |
d6504513e7835627bac13803c23aedb0f90dc74a | 355 | cpp | C++ | src/11000/11399.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/11000/11399.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/11000/11399.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int no_person, ans=0;
cin>>no_person;
int *line=new int[no_person];
for(int i=0; i<no_person; i++)
cin>>line[i];
sort(line, line+no_person);
for(int i=0; i<no_person; i++)
ans+=line[i]*(no_person-i);
... | 16.136364 | 35 | 0.585915 | upple |