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 109 | 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 48.5k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b801e592bd925b022e5251a73679242a95b0a876 | 1,517 | cpp | C++ | backup/2/leetcode/c++/archive/20.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/leetcode/c++/archive/20.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/leetcode/c++/archive/20.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 38.897436 | 345 | 0.460778 | yangyanzhan |
b8026e9b349ab53fc2ce909ae41254781f745676 | 875 | hpp | C++ | utils/base_eng/base_eng.hpp | John-Sharp/gl_demos | 8a17f1236d73b031feabc788b5a6cdc123af68ec | [
"MIT"
] | null | null | null | utils/base_eng/base_eng.hpp | John-Sharp/gl_demos | 8a17f1236d73b031feabc788b5a6cdc123af68ec | [
"MIT"
] | null | null | null | utils/base_eng/base_eng.hpp | John-Sharp/gl_demos | 8a17f1236d73b031feabc788b5a6cdc123af68ec | [
"MIT"
] | null | null | null | #ifndef BASE_ENG_H
#define BASE_ENG_H
#include <stdbool.h>
#include <GL/glew.h>
#include <GL/gl.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "../../InputProcessor/gen_input_processor.hpp"
class BaseEng
{
public:
SDL_Window *window;
SDL_GLContext main_context;
unsigne... | 17.857143 | 55 | 0.629714 | John-Sharp |
b80e5f70d276bbdf6fc72c7a2a4fb8ea621719b3 | 3,439 | cpp | C++ | dorvm/loader.cpp | jsalvadorp/dor | 6506df1ddf8dd7a38fa4071148d3d9738d4bd469 | [
"BSD-3-Clause"
] | 1 | 2016-06-29T21:47:37.000Z | 2016-06-29T21:47:37.000Z | dorvm/loader.cpp | jsalvadorp/dor | 6506df1ddf8dd7a38fa4071148d3d9738d4bd469 | [
"BSD-3-Clause"
] | null | null | null | dorvm/loader.cpp | jsalvadorp/dor | 6506df1ddf8dd7a38fa4071148d3d9738d4bd469 | [
"BSD-3-Clause"
] | null | null | null | #include <cassert>
#include <cstring>
#include <iostream>
#include "loader.hpp"
#include "heap.hpp"
#include <iomanip>
#include "../dorc/instructions.hpp"
Proc *makeProc(char *buf, size_t length, obj::word_t *pool);
Pool loadBinary(std::ifstream &in) {
Pool p;
char c;
while(in.get(c) && c != '\n');
... | 29.393162 | 102 | 0.570805 | jsalvadorp |
b810f307d34ebebac63f29c740a94b2a1a7bb269 | 7,938 | cpp | C++ | KeyConfig/KeyConfig/KeyConfigDlg.cpp | dezGusty/kiosk | 7cf6440c364b90af3539f699329fbf5bea1cd679 | [
"MIT"
] | 2 | 2016-02-19T21:13:07.000Z | 2021-03-22T20:56:34.000Z | KeyConfig/KeyConfig/KeyConfigDlg.cpp | abogeorge/kiosk | 7cf6440c364b90af3539f699329fbf5bea1cd679 | [
"MIT"
] | null | null | null | KeyConfig/KeyConfig/KeyConfigDlg.cpp | abogeorge/kiosk | 7cf6440c364b90af3539f699329fbf5bea1cd679 | [
"MIT"
] | 2 | 2016-08-25T21:06:47.000Z | 2019-09-05T13:06:26.000Z |
// KeyConfigDlg.cpp : implementation file
//
#include "stdafx.h"
#include "KeyConfig.h"
#include "KeyConfigDlg.h"
#include "afxdialogex.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
/// letters char array is used to compare the received data from dialog with actual values
char letters[26] = { 'a', 'b', 'c', 'd', 'e... | 23.766467 | 220 | 0.720081 | dezGusty |
b81292dee4a5a212370630e90d179523af81eae3 | 489 | cpp | C++ | cc_src/ccio.cpp | pit-ray/TxEditorCCTool | 903180082db5ddc80009608e46630f6cfc026eaf | [
"MIT"
] | null | null | null | cc_src/ccio.cpp | pit-ray/TxEditorCCTool | 903180082db5ddc80009608e46630f6cfc026eaf | [
"MIT"
] | null | null | null | cc_src/ccio.cpp | pit-ray/TxEditorCCTool | 903180082db5ddc80009608e46630f6cfc026eaf | [
"MIT"
] | null | null | null | #include "../cc_include/ccio.hpp"
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
#include <stdexcept>
#include <iostream>
#include <vector>
using namespace std ;
ccio::ccio() :
CCXParser(),
color(),
... | 16.862069 | 48 | 0.701431 | pit-ray |
b8134cc06ac4639a183712804bcbbcabf28334f4 | 1,076 | hpp | C++ | CranApp/R-Portable/App/R-Portable/library/BH/include/boost/algorithm/cxx17/for_each_n.hpp | singhmanish979/Trend-Analytics | c6dacb4288884ba8086f1ebc0d2e6067486d165b | [
"MIT"
] | 918 | 2016-12-22T02:53:08.000Z | 2022-03-22T06:21:35.000Z | CranApp/R-Portable/App/R-Portable/library/BH/include/boost/algorithm/cxx17/for_each_n.hpp | singhmanish979/Trend-Analytics | c6dacb4288884ba8086f1ebc0d2e6067486d165b | [
"MIT"
] | 203 | 2016-12-27T12:09:03.000Z | 2022-03-30T20:46:55.000Z | CranApp/R-Portable/App/R-Portable/library/BH/include/boost/algorithm/cxx17/for_each_n.hpp | singhmanish979/Trend-Analytics | c6dacb4288884ba8086f1ebc0d2e6067486d165b | [
"MIT"
] | 122 | 2016-12-22T17:38:09.000Z | 2022-02-22T14:25:49.000Z | /*
Copyright (c) Marshall Clow 2017.
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE10.txt or copy at http://www.boost.org/LICENSE10.txt)
*/
/// \file for_each_n.hpp
/// \brief Apply a functor to the elements of a sequence
/// \author Marshall Clow
#ifndef BOOST_AL... | 28.315789 | 79 | 0.693309 | singhmanish979 |
b814974dba3a4145a31f658ee2dd5405086489a3 | 10,219 | cpp | C++ | projects/examples/ex_volume_ray_cast_opencl/src/renderer/opencl_volume_renderer.cpp | Nyran/schism | c2cdb8884e3e6714a3b291f0f754220b7f5cbc7b | [
"BSD-3-Clause"
] | 10 | 2015-09-17T06:01:03.000Z | 2019-10-23T07:10:20.000Z | projects/examples/ex_volume_ray_cast_opencl/src/renderer/opencl_volume_renderer.cpp | Nyran/schism | c2cdb8884e3e6714a3b291f0f754220b7f5cbc7b | [
"BSD-3-Clause"
] | 5 | 2015-01-06T14:11:32.000Z | 2016-12-12T10:26:53.000Z | projects/examples/ex_volume_ray_cast_opencl/src/renderer/opencl_volume_renderer.cpp | Nyran/schism | c2cdb8884e3e6714a3b291f0f754220b7f5cbc7b | [
"BSD-3-Clause"
] | 15 | 2015-01-29T20:56:13.000Z | 2020-07-02T19:03:20.000Z |
// Copyright (c) 2012 Christopher Lux <christopherlux@gmail.com>
// Distributed under the Modified BSD License, see license.txt.
#include "opencl_volume_renderer.h"
#include <exception>
#include <string>
#include <sstream>
#include <stdexcept>
#include <CL/cl.hpp>
#include <scm/log.h>
#include <scm/core/memory.h>
... | 39.303846 | 190 | 0.622664 | Nyran |
b815cf70ce91705a2340075bf3af456a0da76b2e | 5,299 | cpp | C++ | src/ObcCmdParser.cpp | krishna116/obc | bce8baf15a4344f0ced070c6fc23ab73a60f4a1a | [
"MIT"
] | null | null | null | src/ObcCmdParser.cpp | krishna116/obc | bce8baf15a4344f0ced070c6fc23ab73a60f4a1a | [
"MIT"
] | null | null | null | src/ObcCmdParser.cpp | krishna116/obc | bce8baf15a4344f0ced070c6fc23ab73a60f4a1a | [
"MIT"
] | null | null | null | /*
The MIT License
Copyright 2021 Krishna sssky307@163.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 rights to use, copy, mo... | 27.035714 | 111 | 0.542178 | krishna116 |
b81930946e0a1b155de8a919ce95cae52947729b | 679 | cpp | C++ | Questions Level-Wise/Hard/count-of-smaller-numbers-after-self.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | 2 | 2021-03-05T22:32:23.000Z | 2021-03-05T22:32:29.000Z | Sort/count-of-smaller-numbers-after-self.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | null | null | null | Sort/count-of-smaller-numbers-after-self.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> countSmaller(vector<int>& nums)
{
if(nums.size()==0)
return nums;
int i,n,min=INT_MAX,max=INT_MIN;
for(auto e: nums)
{
if(e<min)min=e;
if(e>max)max=e;
}
min*=-1,n=min+max+1;
vector<i... | 22.633333 | 48 | 0.382916 | PrakharPipersania |
b81b91599db1c65d4edf7160425b593ee40706fe | 2,238 | cpp | C++ | src/execution/operator/schema/physical_create_table_as.cpp | wesm/duckdb | f2fa094abc59d70a8c981d6e9f9c9c3911f08362 | [
"MIT"
] | 3 | 2021-05-13T04:15:45.000Z | 2022-03-03T16:57:16.000Z | src/execution/operator/schema/physical_create_table_as.cpp | wesm/duckdb | f2fa094abc59d70a8c981d6e9f9c9c3911f08362 | [
"MIT"
] | 2 | 2021-10-02T02:52:39.000Z | 2022-01-04T20:08:06.000Z | src/execution/operator/schema/physical_create_table_as.cpp | wesm/duckdb | f2fa094abc59d70a8c981d6e9f9c9c3911f08362 | [
"MIT"
] | 1 | 2021-11-23T07:33:22.000Z | 2021-11-23T07:33:22.000Z | #include "duckdb/execution/operator/schema/physical_create_table_as.hpp"
#include "duckdb/catalog/catalog_entry/table_catalog_entry.hpp"
#include "duckdb/execution/expression_executor.hpp"
#include "duckdb/storage/data_table.hpp"
namespace duckdb {
PhysicalCreateTableAs::PhysicalCreateTableAs(LogicalOperator &op, Sc... | 37.932203 | 113 | 0.630474 | wesm |
b81c6bedda971301c7baa13092ebc070869bd700 | 339 | cpp | C++ | JuneLeetCodingChallenge/June 27th 2020/Perfect Squares.cpp | SAITARUN55/100DaysofCodeinC- | d52e683f52abc9bc633af7e15bb970882efc3788 | [
"MIT"
] | 4 | 2020-05-18T05:12:36.000Z | 2020-08-28T07:16:41.000Z | JuneLeetCodingChallenge/June 27th 2020/Perfect Squares.cpp | SAITARUN55/100DaysofCodeinC- | d52e683f52abc9bc633af7e15bb970882efc3788 | [
"MIT"
] | null | null | null | JuneLeetCodingChallenge/June 27th 2020/Perfect Squares.cpp | SAITARUN55/100DaysofCodeinC- | d52e683f52abc9bc633af7e15bb970882efc3788 | [
"MIT"
] | 5 | 2020-05-01T04:56:26.000Z | 2022-02-02T15:37:53.000Z | class Solution {
public:
int numSquares(int n) {
while(n%4==0) n = n/4;
if(n%8 == 7) return 4;
if(isSquare(n)) return 1;
for(int i=1;i*i<=n;i++) if(isSquare(n-i*i)) return 2;
return 3;
}
bool isSquare(int n) {
int sqroot = sqrt(n);
return (n==(sqroot*... | 22.6 | 61 | 0.486726 | SAITARUN55 |
b81e6f6e0482fe0239f08117f3ab738b033f166c | 908 | cpp | C++ | Cfdiv3636/3.cpp | NoobSolver/Contests | 4ee056cf9603d02a869d7f73d3ba44d13fa1712e | [
"MIT"
] | null | null | null | Cfdiv3636/3.cpp | NoobSolver/Contests | 4ee056cf9603d02a869d7f73d3ba44d13fa1712e | [
"MIT"
] | null | null | null | Cfdiv3636/3.cpp | NoobSolver/Contests | 4ee056cf9603d02a869d7f73d3ba44d13fa1712e | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define endl '\n'
#define ll long long
int main()
{
int t; cin>>t;
while(t--)
{
int n; cin>>n;
ll a[n];
int p;
vector<pair<int,int>>pos,neg;
for(int i=0;i<n;i++)
{
cin>>a[i];
if(a[i]<0){neg.push_back({a[i],i});}
else{pos.push_back({a[i],i});}
}
i... | 12.971429 | 39 | 0.424009 | NoobSolver |
b81fc9e4a04434a5092287e5e5e8e0128b92853e | 2,928 | cpp | C++ | src/test/rpc/GetCounts_test.cpp | DEEPSPACE007/DsDeFi-Exchange | 777486b799bae42a4297f9524f3ff30e0b149ef7 | [
"Unlicense"
] | null | null | null | src/test/rpc/GetCounts_test.cpp | DEEPSPACE007/DsDeFi-Exchange | 777486b799bae42a4297f9524f3ff30e0b149ef7 | [
"Unlicense"
] | null | null | null | src/test/rpc/GetCounts_test.cpp | DEEPSPACE007/DsDeFi-Exchange | 777486b799bae42a4297f9524f3ff30e0b149ef7 | [
"Unlicense"
] | null | null | null |
#include <test/jtx.h>
#include <ripple/beast/unit_test.h>
#include <ripple/protocol/jss.h>
#include <ripple/protocol/SField.h>
#include <ripple/basics/CountedObject.h>
namespace ripple {
class GetCounts_test : public beast::unit_test::suite
{
void testGetCounts()
{
using namespace test::jtx;
... | 25.025641 | 86 | 0.533811 | DEEPSPACE007 |
b8229b3e8ad3bdfef46e57825ff90cda1efc0de0 | 3,759 | cpp | C++ | src/PluginMain.cpp | InteractiveComputerGraphics/MayaPartioTools | f560a006c1a100f9f0b7766929bfd0903cc34fce | [
"MIT"
] | 20 | 2019-01-24T09:06:57.000Z | 2022-03-25T01:58:56.000Z | src/PluginMain.cpp | InteractiveComputerGraphics/MayaPartioTools | f560a006c1a100f9f0b7766929bfd0903cc34fce | [
"MIT"
] | 1 | 2020-03-06T19:42:06.000Z | 2020-03-10T12:00:35.000Z | src/PluginMain.cpp | InteractiveComputerGraphics/MayaPartioTools | f560a006c1a100f9f0b7766929bfd0903cc34fce | [
"MIT"
] | 2 | 2020-11-06T03:54:50.000Z | 2021-03-04T09:34:13.000Z |
#include <maya/MFnPlugin.h>
#include <maya/MGlobal.h>
#include <maya/MApiNamespace.h>
#include <maya/MViewport2Renderer.h>
#include <maya/MDrawRegistry.h>
#include <stdio.h>
// nodes
#include "PartioEmitter.h"
#include "PartioVisualizer.h"
#include "PartioVisualizerDrawOverride.h"
bool RegisterPluginUI()
{
// Creat... | 25.571429 | 130 | 0.733972 | InteractiveComputerGraphics |
b82536fc47987b417f1a46fcaffc0a4519af1c7a | 2,862 | cc | C++ | src/tools/linux/core2md/core2md.cc | mpercy/breakpad | 03e70817907c1938cb585c61923c8fed5ec22b71 | [
"BSD-3-Clause"
] | null | null | null | src/tools/linux/core2md/core2md.cc | mpercy/breakpad | 03e70817907c1938cb585c61923c8fed5ec22b71 | [
"BSD-3-Clause"
] | null | null | null | src/tools/linux/core2md/core2md.cc | mpercy/breakpad | 03e70817907c1938cb585c61923c8fed5ec22b71 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012, Google 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditi... | 39.205479 | 75 | 0.716282 | mpercy |
b8256b806f170ba92cf10a1248a0569bbef07e8b | 11,635 | cpp | C++ | tile2ee/File.cpp | Argent77/tile2ee | 513375452121fc36408debda5ec1ef7b79464c3c | [
"MIT"
] | 2 | 2021-05-02T06:46:23.000Z | 2021-08-24T23:24:38.000Z | tile2ee/File.cpp | InfinityTools/tile2ee | 513375452121fc36408debda5ec1ef7b79464c3c | [
"MIT"
] | null | null | null | tile2ee/File.cpp | InfinityTools/tile2ee | 513375452121fc36408debda5ec1ef7b79464c3c | [
"MIT"
] | null | null | null | /*
Copyright (c) 2015 Argent77
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublic... | 21.829268 | 104 | 0.622432 | Argent77 |
b826c5a687eb58728f78a9804b8009255fbaaa3e | 3,937 | cpp | C++ | src/mzParser/mzp_base64.cpp | lkszmn/spectrast | f028aafcea5045e3cb5837c337f4fa90c90993f3 | [
"Zlib",
"MIT"
] | 1 | 2020-09-29T00:33:32.000Z | 2020-09-29T00:33:32.000Z | src/mzParser/mzp_base64.cpp | lkszmn/spectrast | f028aafcea5045e3cb5837c337f4fa90c90993f3 | [
"Zlib",
"MIT"
] | null | null | null | src/mzParser/mzp_base64.cpp | lkszmn/spectrast | f028aafcea5045e3cb5837c337f4fa90c90993f3 | [
"Zlib",
"MIT"
] | 3 | 2019-10-30T13:08:05.000Z | 2022-02-22T19:16:31.000Z | /* downloaded from web */
//#include <cmath>
//#include <stdio.h>
//#include "stdafx.h"
//#include <cstring>
//#include "base64.h"
#include "mzParser.h"
inline int getPosition( char buf );
static const unsigned char *b64_tbl = (const unsigned char*) "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012... | 23.158824 | 129 | 0.482093 | lkszmn |
b82b8014bb6b9692b97374b9508e4a00e5adb293 | 2,364 | cpp | C++ | extensions/azure/storage/AzureBlobStorage.cpp | hunyadi-dev/nifi-minifi-cpp | 5b72bddfd04da510cd4cfaa1734e021732dfe03e | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | extensions/azure/storage/AzureBlobStorage.cpp | hunyadi-dev/nifi-minifi-cpp | 5b72bddfd04da510cd4cfaa1734e021732dfe03e | [
"Apache-2.0",
"OpenSSL"
] | 1 | 2021-02-02T13:32:12.000Z | 2021-02-02T13:32:12.000Z | extensions/azure/storage/AzureBlobStorage.cpp | aminadinari19/nifi-minifi-cpp | 6f2f0b5d3ad69b32572bf0a4fa082525e5bc7e3a | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | /**
* @file AzureBlobStorage.cpp
* AzureBlobStorage class implementation
*
* 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 fil... | 38.129032 | 140 | 0.751269 | hunyadi-dev |
b82dc995c19d21b80df6f67c4865af78cfd82c2f | 16,135 | cpp | C++ | wpilibj/src/athena/cpp/lib/HALUtil.cpp | flamingchickens1540/wpilib-mirror | 58a82be5baaf0248ce3161804c9743724f165479 | [
"BSD-3-Clause"
] | null | null | null | wpilibj/src/athena/cpp/lib/HALUtil.cpp | flamingchickens1540/wpilib-mirror | 58a82be5baaf0248ce3161804c9743724f165479 | [
"BSD-3-Clause"
] | null | null | null | wpilibj/src/athena/cpp/lib/HALUtil.cpp | flamingchickens1540/wpilib-mirror | 58a82be5baaf0248ce3161804c9743724f165479 | [
"BSD-3-Clause"
] | null | null | null | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2016. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 32.928571 | 102 | 0.708088 | flamingchickens1540 |
b8355268d7c0b0ba20315eeec695cc0b2da117e5 | 7,513 | hpp | C++ | include/Oculus/Platform/Samples/VrHoops/LeaderboardManager_OnMostWinsLeaderboardUpdated.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/Oculus/Platform/Samples/VrHoops/LeaderboardManager_OnMostWinsLeaderboardUpdated.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/Oculus/Platform/Samples/VrHoops/LeaderboardManager_OnMostWinsLeaderboardUpdated.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: Oculus.Platform.Samples.VrHoops.Lea... | 74.386139 | 434 | 0.77692 | v0idp |
b83a18e1fbf2931da871cf5237a87a235eebd13b | 6,025 | cpp | C++ | src/adapters/alsa/mixer.cpp | FernandoBryant/polybar | f488a889bc8012e7da714be7b9543254ac65cfc4 | [
"MIT"
] | 6,283 | 2019-05-06T01:10:56.000Z | 2022-03-31T23:42:59.000Z | src/adapters/alsa/mixer.cpp | FernandoBryant/polybar | f488a889bc8012e7da714be7b9543254ac65cfc4 | [
"MIT"
] | 1,482 | 2016-11-19T15:48:40.000Z | 2019-05-05T12:47:25.000Z | src/adapters/alsa/mixer.cpp | FernandoBryant/polybar | f488a889bc8012e7da714be7b9543254ac65cfc4 | [
"MIT"
] | 506 | 2019-05-08T18:36:25.000Z | 2022-03-25T03:04:39.000Z | #include <cmath>
#include "adapters/alsa/generic.hpp"
#include "adapters/alsa/mixer.hpp"
#include "utils/math.hpp"
#define MAX_LINEAR_DB_SCALE 24
POLYBAR_NS
namespace alsa {
/**
* Construct mixer object
*/
mixer::mixer(string&& mixer_selem_name, string&& soundcard_name)
: m_name(forward<string>(mixe... | 25.858369 | 119 | 0.654108 | FernandoBryant |
b83d79593245d51fa7c912a0019d2ab863b43b68 | 9,943 | hh | C++ | clpoly/realroot.hh | Ntimesp/CLPoly | 62ce7a8ac3e24549c65a9fa4183cfc450a94be4f | [
"MIT"
] | null | null | null | clpoly/realroot.hh | Ntimesp/CLPoly | 62ce7a8ac3e24549c65a9fa4183cfc450a94be4f | [
"MIT"
] | null | null | null | clpoly/realroot.hh | Ntimesp/CLPoly | 62ce7a8ac3e24549c65a9fa4183cfc450a94be4f | [
"MIT"
] | null | null | null | /**
* @file realroot.hh
* @author 李昊坤 (ker@pm.me)
* @brief 实根隔离
*/
#ifndef CLPOLY_REALROOT_HH
#define CLPOLY_REALROOT_HH
#include <clpoly/polynomial.hh>
#include <clpoly/upolynomial.hh>
#include <clpoly/polynomial_gcd.hh>
#include <vector>
namespace clpoly{
const upolynomial_<ZZ> __upolynomial_x_plus_1={{1,1},{... | 28.167139 | 129 | 0.446042 | Ntimesp |
b841a5259d8218c2810ecd6ae66ab4d049e2d29c | 559 | cpp | C++ | src/snabl/types/time.cpp | ricelang/snabl | 488591099faf089d4deba30f90017305ff31598c | [
"MIT"
] | 1 | 2021-10-20T07:44:36.000Z | 2021-10-20T07:44:36.000Z | src/snabl/types/time.cpp | ricelang/snabl | 488591099faf089d4deba30f90017305ff31598c | [
"MIT"
] | null | null | null | src/snabl/types/time.cpp | ricelang/snabl | 488591099faf089d4deba30f90017305ff31598c | [
"MIT"
] | null | null | null | #include <ostream>
#include "snabl/box.hpp"
#include "snabl/types/time.hpp"
namespace snabl {
Time Time::ms(Int n) { return Time(n*1000000); }
Time::Time(Int ns): ns(ns) { }
Int Time::as_ms() const { return ns / 1000000; }
bool operator ==(const Time &lhs, const Time &rhs) { return lhs.ns == rhs.ns; }
bool... | 24.304348 | 80 | 0.631485 | ricelang |
cdc2b28cc4c37947bdbb82021f331762a7acb12a | 7,207 | cpp | C++ | src/main.cpp | ligmg/ligmg | b0046cac6ee0aed044ef9b3e2ea091b3d44219ee | [
"BSD-2-Clause"
] | 8 | 2018-07-03T23:40:42.000Z | 2021-05-18T00:39:47.000Z | src/main.cpp | ligmg/ligmg | b0046cac6ee0aed044ef9b3e2ea091b3d44219ee | [
"BSD-2-Clause"
] | 2 | 2022-01-05T13:06:46.000Z | 2022-01-28T04:14:45.000Z | src/main.cpp | ligmg/ligmg | b0046cac6ee0aed044ef9b3e2ea091b3d44219ee | [
"BSD-2-Clause"
] | 1 | 2021-05-18T00:39:50.000Z | 2021-05-18T00:39:50.000Z | #include <CombBLAS/CombBLAS.h>
#include <mpi.h>
#include <chrono>
#include <iostream>
#include <mxx/reduction.hpp>
#include <numeric>
#include <ligmg/ligmg.hpp>
#include <set>
#include "parse_options.hpp"
// using INT_TYPE = int64_t;
using INT_TYPE = int;
#if ALLINEA_SAMPLE_SOLVE
#include "mapsampler_api.h"
#endif
i... | 33.365741 | 80 | 0.547246 | ligmg |
cdc489ffc9c023e07f7f38ba915ca8e1d2bd943f | 14,012 | cpp | C++ | src/GApplication/GApplication.cpp | danijel1023/Groak | a2aa9472eb4cacb66e0d1e3aeebfd4871ca14f2a | [
"MIT"
] | null | null | null | src/GApplication/GApplication.cpp | danijel1023/Groak | a2aa9472eb4cacb66e0d1e3aeebfd4871ca14f2a | [
"MIT"
] | null | null | null | src/GApplication/GApplication.cpp | danijel1023/Groak | a2aa9472eb4cacb66e0d1e3aeebfd4871ca14f2a | [
"MIT"
] | null | null | null | #include "GApplication.h"
#include "GWindow.h"
#include "GLog_Manager.h"
GApplication* GApplication::m_Instance = nullptr;
GApplication::GApplication() {
GLog_Manager::Init();
GLog_Manager::Set_Device(GLog_Device::Std_Console);
GLog_Manager::Set_Log_Level(GLog_Level::Trace);
m_Instance = this;
... | 29.940171 | 136 | 0.545604 | danijel1023 |
cdc4e0e504340ee077912945a1f7b95f6b00a809 | 14,347 | cc | C++ | src/pfmla.cc | czlynn/protocon | aa520f9edf3be7ff458f96e88cd2dab1eec4c505 | [
"0BSD"
] | 1 | 2019-09-02T22:19:43.000Z | 2019-09-02T22:19:43.000Z | src/pfmla.cc | czlynn/protocon | aa520f9edf3be7ff458f96e88cd2dab1eec4c505 | [
"0BSD"
] | null | null | null | src/pfmla.cc | czlynn/protocon | aa520f9edf3be7ff458f96e88cd2dab1eec4c505 | [
"0BSD"
] | null | null | null | /**
* \file pfmla.cc
* This file has functions for the propositional formula data structure.
*/
#include "pfmla.hh"
#include "cx/map.hh"
namespace Cx {
/**
* Perform backwards reachability.
* \param pf Initial states.
*/
PFmla
PFmla::pre_reach(const P::Fmla& pf) const
{
P::Fmla visit( pf );
P::Fmla laye... | 23.10306 | 104 | 0.578379 | czlynn |
cdc5793d1337e45a68fb2359087668078b583e6c | 4,985 | cpp | C++ | Application/source/ui/frame/settings/AppAppearance.cpp | tallbl0nde/TriPlayer | 737adfdfcea89924286b1cd13ec47a9ebaffda96 | [
"MIT"
] | 106 | 2020-11-01T09:58:37.000Z | 2022-03-26T10:44:26.000Z | Application/source/ui/frame/settings/AppAppearance.cpp | PoloNX/TriPlayer | 39deb363472d518163aa48ff066477cc69495467 | [
"MIT"
] | 30 | 2020-11-01T11:21:48.000Z | 2022-02-01T23:09:47.000Z | Application/source/ui/frame/settings/AppAppearance.cpp | PoloNX/TriPlayer | 39deb363472d518163aa48ff066477cc69495467 | [
"MIT"
] | 15 | 2020-11-02T12:06:03.000Z | 2021-08-05T14:22:39.000Z | #include "Application.hpp"
#include "lang/Lang.hpp"
#include "lang/Language.hpp"
#include "ui/frame/settings/AppAppearance.hpp"
namespace Frame::Settings {
AppAppearance::AppAppearance(Main::Application * a) : Frame(a) {
// Temporary variables
Config * cfg = this->app->config();
Aether::Lis... | 42.606838 | 187 | 0.593982 | tallbl0nde |
cdd000f1cf3dd1e2c914a805573642111b6cde65 | 7,566 | cpp | C++ | source/FieldIO.cpp | nhaflinger/Vesuvius | 93db82977dae0080a7705fe2532258be54500860 | [
"MIT"
] | null | null | null | source/FieldIO.cpp | nhaflinger/Vesuvius | 93db82977dae0080a7705fe2532258be54500860 | [
"MIT"
] | null | null | null | source/FieldIO.cpp | nhaflinger/Vesuvius | 93db82977dae0080a7705fe2532258be54500860 | [
"MIT"
] | null | null | null | //
// FieldIO.cpp
// Copyright (c) 2016-2018
// author: Douglas Creel
//
#include "FieldIO.h"
FieldIO::FieldIO()
{
}
FieldIO::~FieldIO()
{
}
void FieldIO::initializeVDB()
{
openvdb::initialize();
}
openvdb::FloatGrid::Ptr FieldIO::loadVDBSource(const char* filename)
{
openvdb::io::File f... | 29.670588 | 263 | 0.647634 | nhaflinger |
cdd2324402f3f5b6fdf59dd5d57190407bddfad0 | 15,235 | hxx | C++ | OCC/opencascade-7.2.0/x64/debug/inc/TDF_Attribute.hxx | jiaguobing/FastCAE | 2348ab87e83fe5c704e4c998cf391229c25ac5d5 | [
"BSD-3-Clause"
] | 2 | 2020-02-21T01:04:35.000Z | 2020-02-21T03:35:37.000Z | OCC/opencascade-7.2.0/x64/debug/inc/TDF_Attribute.hxx | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2020-03-06T04:49:42.000Z | 2020-03-06T04:49:42.000Z | OCC/opencascade-7.2.0/x64/debug/inc/TDF_Attribute.hxx | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2021-11-21T13:03:26.000Z | 2021-11-21T13:03:26.000Z | // Created by: DAUTRY Philippe
// Copyright (c) 1997-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public Li... | 35.762911 | 150 | 0.716902 | jiaguobing |
cdd5185694d52c2761d2214bac99b8fe9e564de8 | 25,580 | cpp | C++ | src/zxing/zxing/pdf417/detector/PDF417Detector.cpp | okruhliak/sailfish-barcode | e3eb0cdcbbf117c2a46a1f82e4c10d707ab3421d | [
"MIT",
"Apache-2.0",
"Unlicense"
] | 9 | 2018-04-16T20:46:55.000Z | 2021-07-15T10:02:11.000Z | src/zxing/zxing/pdf417/detector/PDF417Detector.cpp | okruhliak/sailfish-barcode | e3eb0cdcbbf117c2a46a1f82e4c10d707ab3421d | [
"MIT",
"Apache-2.0",
"Unlicense"
] | 33 | 2018-06-04T08:15:21.000Z | 2022-03-28T03:32:12.000Z | src/zxing/zxing/pdf417/detector/PDF417Detector.cpp | okruhliak/sailfish-barcode | e3eb0cdcbbf117c2a46a1f82e4c10d707ab3421d | [
"MIT",
"Apache-2.0",
"Unlicense"
] | 16 | 2018-05-29T15:26:00.000Z | 2022-01-03T14:30:52.000Z | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
/*
* Copyright 2010 ZXing authors 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
*
* ... | 38.582202 | 97 | 0.628499 | okruhliak |
cdd8372c7a8cd00f08288252743f511b764bba99 | 297 | hpp | C++ | glm/ext/vector_double5.hpp | gchunev/Dice4D | f96db406204fdca0155d26db856b66a2afd4e664 | [
"MIT"
] | 1 | 2019-05-22T08:53:46.000Z | 2019-05-22T08:53:46.000Z | glm/ext/vector_double5.hpp | gchunev/Dice4D | f96db406204fdca0155d26db856b66a2afd4e664 | [
"MIT"
] | null | null | null | glm/ext/vector_double5.hpp | gchunev/Dice4D | f96db406204fdca0155d26db856b66a2afd4e664 | [
"MIT"
] | null | null | null | /// @ref core
/// @file glm/ext/vector_double5.hpp
#pragma once
#include "../detail/type_vec5.hpp"
namespace glm
{
/// @addtogroup core_vector
/// @{
/// 5 components vector of double-precision floating-point numbers.
///
typedef vec<5, double, defaultp> dvec5;
/// @}
}//namespace glm
| 16.5 | 68 | 0.666667 | gchunev |
cdd8b95bb2c56c2d44e2dc6e126d458a1e23a1b6 | 1,211 | cpp | C++ | lib/talvos/Utils.cpp | talvos/talvos | f2f134eb74402f87eeff8f93027a2a7c988177ff | [
"BSD-3-Clause"
] | 66 | 2018-03-12T18:25:34.000Z | 2021-08-10T02:14:56.000Z | lib/talvos/Utils.cpp | talvos/talvos | f2f134eb74402f87eeff8f93027a2a7c988177ff | [
"BSD-3-Clause"
] | 10 | 2018-04-14T09:42:56.000Z | 2019-03-29T11:44:12.000Z | lib/talvos/Utils.cpp | talvos/talvos | f2f134eb74402f87eeff8f93027a2a7c988177ff | [
"BSD-3-Clause"
] | 5 | 2018-03-29T09:30:22.000Z | 2020-12-22T23:59:28.000Z | // Copyright (c) 2018 the Talvos developers. All rights reserved.
//
// This file is distributed under a three-clause BSD license. For full license
// terms please see the LICENSE file distributed with this source code.
/// \file Utils.cpp
/// This file defines miscellaneous utilities used internally by libtalvos.
#i... | 23.288462 | 79 | 0.638315 | talvos |
cddc64ef8986aa059c6aad5c4a439d1b6ec31064 | 6,690 | cpp | C++ | libmdal/field.cpp | utz82/MDAL | dfcab5c8c9b24c4d7c5ae62b54c3de91a3d39484 | [
"BSD-3-Clause"
] | 11 | 2016-10-21T20:29:54.000Z | 2021-02-16T22:00:00.000Z | libmdal/field.cpp | utz82/MDAL | dfcab5c8c9b24c4d7c5ae62b54c3de91a3d39484 | [
"BSD-3-Clause"
] | null | null | null | libmdal/field.cpp | utz82/MDAL | dfcab5c8c9b24c4d7c5ae62b54c3de91a3d39484 | [
"BSD-3-Clause"
] | 1 | 2019-05-20T04:20:48.000Z | 2019-05-20T04:20:48.000Z | #include <iostream>
#include <sstream>
#include <string>
#include <algorithm>
#include "mdal.h"
using namespace std;
mdField::mdField() {
isWord = false;
isRequiredNow = false;
requiredSeqBegin = false;
requiredBlkBegin = false;
requiredAlways = false;
requiredBy = nullptr;
requiredWhe... | 25.830116 | 128 | 0.552317 | utz82 |
cddeecd3c14c14dcb616adb54c66ad10ba2a83f8 | 8,553 | cpp | C++ | ar_mask/HandDetector.cpp | niwtr/On-Paper | 5c7e8319b93d3cc31043aae69d98bfb608126daa | [
"MIT"
] | 1 | 2019-12-08T12:27:49.000Z | 2019-12-08T12:27:49.000Z | ar_mask/HandDetector.cpp | niwtr/On-Paper | 5c7e8319b93d3cc31043aae69d98bfb608126daa | [
"MIT"
] | null | null | null | ar_mask/HandDetector.cpp | niwtr/On-Paper | 5c7e8319b93d3cc31043aae69d98bfb608126daa | [
"MIT"
] | 2 | 2020-02-29T11:02:37.000Z | 2020-07-30T13:57:52.000Z | #include "HandDetector.h"
#include "cvutils.h"
on_paper::HandDetector::HandDetector(int tar_width) :
_tar_width(tar_width)
{
}
void on_paper::HandDetector::train(const cv::Mat& img, const cv::Mat& mask)
{
Mat img_std, mask_std;
resize(img, img_std, Size(_tar_width, _tar_width * 1.0 / img.size().width * img.size().... | 22.567282 | 134 | 0.638256 | niwtr |
cde0dbfe7bf22fe5ab1f3e96500843d4162225d9 | 382 | hpp | C++ | includes/version.hpp | paulhuggett/machowriter | 0a2cf64c55984687faa6009ad785a14a562198e5 | [
"MIT"
] | 1 | 2022-02-05T08:09:24.000Z | 2022-02-05T08:09:24.000Z | includes/version.hpp | paulhuggett/machowriter | 0a2cf64c55984687faa6009ad785a14a562198e5 | [
"MIT"
] | 1 | 2019-05-20T14:31:10.000Z | 2019-05-21T10:22:47.000Z | includes/version.hpp | paulhuggett/machowriter | 0a2cf64c55984687faa6009ad785a14a562198e5 | [
"MIT"
] | null | null | null | #ifndef VERSION_HPP
#define VERSION_HPP
#include <cstdint>
inline constexpr std::uint32_t version (std::uint16_t major, std::uint8_t minor,
std::uint8_t revision) {
return (static_cast<std::uint32_t> (major) << 16) | (static_cast<std::uint32_t> (minor) << 8) |
st... | 29.384615 | 99 | 0.625654 | paulhuggett |
cde1da1020f8f18df0779b079b1ec103c9553e40 | 2,645 | cpp | C++ | ProjectTitan/src/core/framebuffer.cpp | BestHelloWorld/ProjectTitan | 221e2fbfd4e17d701557e0187c3d8a6a9e57a79b | [
"Apache-2.0"
] | null | null | null | ProjectTitan/src/core/framebuffer.cpp | BestHelloWorld/ProjectTitan | 221e2fbfd4e17d701557e0187c3d8a6a9e57a79b | [
"Apache-2.0"
] | null | null | null | ProjectTitan/src/core/framebuffer.cpp | BestHelloWorld/ProjectTitan | 221e2fbfd4e17d701557e0187c3d8a6a9e57a79b | [
"Apache-2.0"
] | null | null | null | #include "framebuffer.h"
void FrameBuffer::Init()
{
glGenFramebuffers(1, &mFrameBufferObject);
}
void FrameBuffer::AttachColorBuffer(const CHAR *bufferName, GLenum attachment, INT width, INT height)
{
UINT colorBuffer;
glBindFramebuffer(GL_FRAMEBUFFER, mFrameBufferObject);
glGenTextures(1, &colorBuffer);
glBindT... | 29.065934 | 103 | 0.77656 | BestHelloWorld |
cde9b92a0fbbe85f0210a3d40c46812e31b2ffc9 | 16,812 | inl | C++ | include/ml/swizzle.inl | flubbe/ml | 0877924e7b7e21d0cb4b781617006aca2e13c1c4 | [
"MIT"
] | null | null | null | include/ml/swizzle.inl | flubbe/ml | 0877924e7b7e21d0cb4b781617006aca2e13c1c4 | [
"MIT"
] | null | null | null | include/ml/swizzle.inl | flubbe/ml | 0877924e7b7e21d0cb4b781617006aca2e13c1c4 | [
"MIT"
] | null | null | null | /**
* ml - simple header-only mathematics library
*
* component access for vec2/vec3/vec4.
*
* \author Felix Lubbe
* \copyright Copyright (c) 2021
* \license Distributed under the MIT software license (see accompanying LICENSE.txt).
*/
#ifndef ML_SWIZZLE_COMPONENTS
# error ML_SWIZZLE_COMPONENTS not set.
#... | 20.806931 | 90 | 0.618606 | flubbe |
cdecba1817d5551c0d35e1bc3b2e32e8f16332af | 603 | cpp | C++ | JobScheduler/JobRun.cpp | mple/sigmod-programming-contest2013 | 900a969822f192793fa5f4152383cc9f5daafab4 | [
"MIT"
] | 1 | 2016-09-10T17:08:56.000Z | 2016-09-10T17:08:56.000Z | JobScheduler/JobRun.cpp | mple/sigmod-programming-contest2013 | 900a969822f192793fa5f4152383cc9f5daafab4 | [
"MIT"
] | null | null | null | JobScheduler/JobRun.cpp | mple/sigmod-programming-contest2013 | 900a969822f192793fa5f4152383cc9f5daafab4 | [
"MIT"
] | null | null | null | /*
* JobRun.cpp
*
* Created on: Mar 30, 2013
* Author: johnchronis
*/
#include "JobRun.h"
extern mple::bitarea * results;
extern mple::QueryIndex * indexx;
extern std::vector<DocID> globaldocs;
namespace mple {
void SplitGenHashes();
void SplitGenerateRes();
JobRun::JobRun() {
// TODO Auto-generated constr... | 17.735294 | 76 | 0.678275 | mple |
cdecce5835b6091e7deb3bfc528f7135b3f981b4 | 408 | cpp | C++ | src/game/server/variant_t.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/server/variant_t.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/server/variant_t.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 "cbase.h"
#include "variant_t.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
void var... | 20.4 | 81 | 0.507353 | cstom4994 |
cdef9e87ce84dfc8b9014edd0b0d5acbac209014 | 36,663 | hpp | C++ | redfish-core/lib/usi_information.hpp | steven-RD/bmcweb | e6064acf1be09830ee89fa05a0efe129a6df3e8f | [
"Apache-2.0"
] | null | null | null | redfish-core/lib/usi_information.hpp | steven-RD/bmcweb | e6064acf1be09830ee89fa05a0efe129a6df3e8f | [
"Apache-2.0"
] | null | null | null | redfish-core/lib/usi_information.hpp | steven-RD/bmcweb | e6064acf1be09830ee89fa05a0efe129a6df3e8f | [
"Apache-2.0"
] | 2 | 2019-06-25T09:15:44.000Z | 2019-06-25T09:21:15.000Z |
/*
* File: usi_switch.hpp
* Author: Steven
*
* Created 20190520
*/
#ifndef USI_INFORMATION_HPP
#define USI_INFORMATION_HPP
#include "node.hpp"
#include <dbus_utility.hpp>
#include <error_messages.hpp>
#include <openbmc_dbus_rest.hpp>
#include <utils/json_utils.hpp>
#include <variant>
namespace redfish {
... | 47.614286 | 136 | 0.402831 | steven-RD |
cdf4f20d100c49b70d7c0c722894c838a5b234fc | 970 | cpp | C++ | src/deps/corrade/src/Corrade/Utility/Test/ResourceTestFiles/compiled-empty-be.cpp | BKAUTO/Trinocular-habitat-sim | 7ad70669095926cc4d5438befa65b019d0f91a8c | [
"MIT"
] | null | null | null | src/deps/corrade/src/Corrade/Utility/Test/ResourceTestFiles/compiled-empty-be.cpp | BKAUTO/Trinocular-habitat-sim | 7ad70669095926cc4d5438befa65b019d0f91a8c | [
"MIT"
] | null | null | null | src/deps/corrade/src/Corrade/Utility/Test/ResourceTestFiles/compiled-empty-be.cpp | BKAUTO/Trinocular-habitat-sim | 7ad70669095926cc4d5438befa65b019d0f91a8c | [
"MIT"
] | null | null | null | /* Compiled resource file. DO NOT EDIT! */
#include "Corrade/Corrade.h"
#include "Corrade/Utility/Macros.h"
#include "Corrade/Utility/Resource.h"
CORRADE_ALIGNAS(4) static const unsigned char resourcePositions[] = {
0x00,0x00,0x00,0x09,
0x00,0x00,0x00,0x00
};
static const unsigned char resourceFilenames[] = ... | 30.3125 | 103 | 0.758763 | BKAUTO |
cdf52e5cdea53d81c2dbf972cfb1ff71dedbe71f | 19,868 | hpp | C++ | session.hpp | easyeagel/core | 3c1c4e5e6337cc319e70ff38af3fa820de0c83dc | [
"MIT"
] | null | null | null | session.hpp | easyeagel/core | 3c1c4e5e6337cc319e70ff38af3fa820de0c83dc | [
"MIT"
] | null | null | null | session.hpp | easyeagel/core | 3c1c4e5e6337cc319e70ff38af3fa820de0c83dc | [
"MIT"
] | null | null | null | // Copyright [2014] <lgb (LiuGuangBao)>
//=====================================================================================
//
// Filename: session.hpp
//
// Description: 服务器框架会话接口
//
// Version: 1.0
// Created: 2013年04月07日 13时02分52秒
// Revision: none
// Compiler: gcc
//
// ... | 25.570142 | 132 | 0.532011 | easyeagel |
cdf814fbacc56c61020899419c63bd373eb72963 | 4,373 | cpp | C++ | .RemoteTalk/Plugin/RemoteTalkVOICEROID/rtvr2HookHandler.cpp | i-saint/RemoteTalk | 3ac2528ab66ed923cb9c56596944effdeaecee50 | [
"MIT"
] | 36 | 2018-12-18T22:33:36.000Z | 2021-10-31T07:03:15.000Z | .RemoteTalk/Plugin/RemoteTalkVOICEROID/rtvr2HookHandler.cpp | i-saint/RemoteTalk | 3ac2528ab66ed923cb9c56596944effdeaecee50 | [
"MIT"
] | 1 | 2020-04-04T16:13:43.000Z | 2020-04-05T05:08:17.000Z | .RemoteTalk/Plugin/RemoteTalkVOICEROID/rtvr2HookHandler.cpp | i-saint/RemoteTalk | 3ac2528ab66ed923cb9c56596944effdeaecee50 | [
"MIT"
] | 3 | 2019-04-12T17:37:23.000Z | 2020-09-30T15:50:31.000Z | #include "pch.h"
#include "rtvr2Common.h"
#include "rtvr2HookHandler.h"
#include "rtvr2TalkServer.h"
namespace rtvr2 {
void DSoundHandler::clearCallbacks()
{
onPlay = {};
onStop = {};
onUpdate = {};
}
void DSoundHandler::update(IDirectSoundBuffer *_this, bool apply_margin)
{
if (m_buffer.empty()) {
... | 29.547297 | 242 | 0.661788 | i-saint |
cdf9290817346adb277c5e26eec264117f33a612 | 35,929 | inl | C++ | contrib/DirectX/include/d3dxmath.inl | deadmann/cerberus | 749f8e90bd87b2d8737c57a599979939b2774916 | [
"BSD-2-Clause"
] | null | null | null | contrib/DirectX/include/d3dxmath.inl | deadmann/cerberus | 749f8e90bd87b2d8737c57a599979939b2774916 | [
"BSD-2-Clause"
] | null | null | null | contrib/DirectX/include/d3dxmath.inl | deadmann/cerberus | 749f8e90bd87b2d8737c57a599979939b2774916 | [
"BSD-2-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 1998 Microsoft Corporation. All Rights Reserved.
//
// File: d3dxmath.inl
// Content: D3DX math inline functions
//
//////////////////////////////////////////////////////////////////////////////
#ifndef __D3... | 19.850276 | 106 | 0.558156 | deadmann |
cdfbf42138bce9a4b42905a7f7753833f8726fa5 | 1,557 | cpp | C++ | src/example/event.cpp | aparesse/Lightswing | 0d28c9996c13f2e9928d84451352cf5ff4ec8133 | [
"MIT"
] | null | null | null | src/example/event.cpp | aparesse/Lightswing | 0d28c9996c13f2e9928d84451352cf5ff4ec8133 | [
"MIT"
] | null | null | null | src/example/event.cpp | aparesse/Lightswing | 0d28c9996c13f2e9928d84451352cf5ff4ec8133 | [
"MIT"
] | null | null | null | // Copyright (C)
//
// This program 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; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope... | 26.389831 | 78 | 0.637123 | aparesse |
cdfd8a7232e47e236bd6f1f14bdd59bfe423e056 | 500 | cpp | C++ | matu380.cpp | NewtonVan/Fxxk_Y0u_m47u | d303c7f13c074b5462ac8390a9ff94e546099fac | [
"MIT"
] | 1 | 2020-09-26T16:47:16.000Z | 2020-09-26T16:47:16.000Z | matu380.cpp | NewtonVan/Fxxk_Y0u_m47u | d303c7f13c074b5462ac8390a9ff94e546099fac | [
"MIT"
] | null | null | null | matu380.cpp | NewtonVan/Fxxk_Y0u_m47u | d303c7f13c074b5462ac8390a9ff94e546099fac | [
"MIT"
] | 1 | 2020-09-26T16:47:40.000Z | 2020-09-26T16:47:40.000Z | class Cat
: public Felid
{
public:
Cat()
{
cout<<"Cat constructor..."<<endl;
}
~Cat()
{
cout<<"Cat destructor..."<<endl;
}
void sound() const
{
cout<<"Miaow!"<<endl;
}
};
class Leopard
: public Felid
{
public:
Leopard()
{
cout<<"Leopard constructor..."<<endl;
}
~Leopard()
{
cout<<"Leopard des... | 11.111111 | 39 | 0.582 | NewtonVan |
a803d80f7886d76554716057d9c289818ebb69cd | 3,110 | cpp | C++ | src/prod/src/Hosting2/ContainerHealthCheckStatusChangeNotification.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Hosting2/ContainerHealthCheckStatusChangeNotification.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Hosting2/ContainerHealthCheckStatusChangeNotification.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 31.1 | 114 | 0.691318 | vishnuk007 |
a805ee3611386292e320284c9f96d9ba2a8bfca3 | 4,666 | hpp | C++ | include/slim/types/Array.hpp | wnewbery/cpp-slim | c7087294b55db5d7ca846438ebddfaec395d1a12 | [
"MIT"
] | 3 | 2017-12-24T23:35:04.000Z | 2019-03-16T09:35:46.000Z | include/slim/types/Array.hpp | wnewbery/cpp-slim | c7087294b55db5d7ca846438ebddfaec395d1a12 | [
"MIT"
] | 98 | 2016-07-01T14:55:03.000Z | 2020-03-13T14:12:49.000Z | include/slim/types/Array.hpp | wnewbery/cpp-slim | c7087294b55db5d7ca846438ebddfaec395d1a12 | [
"MIT"
] | 2 | 2019-04-03T12:16:14.000Z | 2020-03-13T14:13:25.000Z | #pragma once
#include "Object.hpp"
#include "Enumerable.hpp"
#include <vector>
namespace slim
{
class Boolean;
class Number;
class String;
/**Script array type.*/
class Array : public Object, public Enumerable
{
public:
typedef std::vector<ObjectPtr> List;
typedef List::itera... | 33.568345 | 90 | 0.605658 | wnewbery |
a80db3f60b3b2526329b293d199106e36f0c19b0 | 50,036 | cpp | C++ | src/qt/qtbase/src/widgets/kernel/qopenglwidget.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/src/widgets/kernel/qopenglwidget.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/src/widgets/kernel/qopenglwidget.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtWidgets module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid com... | 37.173848 | 108 | 0.734991 | power-electro |
a80f62e1d7828790650a57b4c8047576b0d44b91 | 5,659 | cxx | C++ | plugins/cmi_io/png_reader.cxx | IXDdev/IXD_engine | 497c1fee90e486c19debc5347b740b56b1fef416 | [
"BSD-3-Clause"
] | 1 | 2020-07-26T10:54:41.000Z | 2020-07-26T10:54:41.000Z | plugins/cmi_io/png_reader.cxx | IXDdev/IXD_engine | 497c1fee90e486c19debc5347b740b56b1fef416 | [
"BSD-3-Clause"
] | null | null | null | plugins/cmi_io/png_reader.cxx | IXDdev/IXD_engine | 497c1fee90e486c19debc5347b740b56b1fef416 | [
"BSD-3-Clause"
] | null | null | null | #include "png_reader.h"
#include <cgv/base/register.h>
#include <cgv/base/import.h>
#include <iostream>
/// default constructor
png_reader::png_reader() : fp(0)
{
interlacing = false;
}
/// close file in destructor
png_reader::~png_reader()
{
if (fp)
fclose(fp);
fp = 0;
}
/// overload to return the type name of ... | 29.628272 | 207 | 0.726277 | IXDdev |
a812924b9557834ef80a5dfbe89ffc7fcaa90e95 | 8,542 | hpp | C++ | src/game/sys/physics/transform_system.hpp | lowkey42/MagnumOpus | 87897b16192323b40064119402c74e014a48caf3 | [
"MIT"
] | 5 | 2020-03-13T23:16:33.000Z | 2022-03-20T19:16:46.000Z | src/game/sys/physics/transform_system.hpp | lowkey42/MagnumOpus | 87897b16192323b40064119402c74e014a48caf3 | [
"MIT"
] | 24 | 2015-04-20T20:26:23.000Z | 2015-11-20T22:39:38.000Z | src/game/sys/physics/transform_system.hpp | lowkey42/medienprojekt | 87897b16192323b40064119402c74e014a48caf3 | [
"MIT"
] | 1 | 2022-03-08T03:11:21.000Z | 2022-03-08T03:11:21.000Z | /*********************************************************************************\
* Provides fast access to entities base on their position *
* ___ *
* /\/\ __ _ __ _ _ __ _ _ _ __ ___ /___\_ __ _ _ ___ ... | 28.760943 | 92 | 0.566729 | lowkey42 |
a81d321e7551ba4caae8ab0992c194d01b6a42af | 965 | cpp | C++ | test/protobuf-dcom-plugin-unittest/TestMd5GuidGenerator.cpp | end2endzone/protobuf-dcom-plugin | 33186be769bf86c1f76aa1e13b08b5edbb9d514a | [
"MIT-0",
"MIT"
] | 1 | 2020-04-28T09:38:08.000Z | 2020-04-28T09:38:08.000Z | test/protobuf-dcom-plugin-unittest/TestMd5GuidGenerator.cpp | end2endzone/protobuf-dcom-plugin | 33186be769bf86c1f76aa1e13b08b5edbb9d514a | [
"MIT-0",
"MIT"
] | 1 | 2019-03-16T15:14:58.000Z | 2019-03-16T15:14:58.000Z | test/protobuf-dcom-plugin-unittest/TestMd5GuidGenerator.cpp | end2endzone/protobuf-dcom-plugin | 33186be769bf86c1f76aa1e13b08b5edbb9d514a | [
"MIT-0",
"MIT"
] | null | null | null | #include "TestMd5GuidGenerator.h"
#include "Md5GuidGenerator.h"
void TestMd5GuidGenerator::SetUp()
{
}
void TestMd5GuidGenerator::TearDown()
{
}
TEST_F(TestMd5GuidGenerator, testGuidFormat)
{
Md5GuidGenerator gen;
gen.setProtoFilename("foo.proto");
gen.setPackage("bar");
gen.setComponentName("mycomponent");
... | 21.444444 | 44 | 0.690155 | end2endzone |
a81dc616eac5dda8b99bf10685fd92c5e9bb12f5 | 80,214 | hpp | C++ | include/UnityEngine/Physics.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/UnityEngine/Physics.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/UnityEngine/Physics.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.Ra... | 86.344456 | 315 | 0.757299 | marksteward |
a81f502886a648e27b34c0898a62fdf702d377ec | 2,489 | cpp | C++ | VRP.FGA_2022/FirstIteration/Individual.cpp | DimaSidorenko/VRP.FGA_2022 | 3f08d9c976c9f86a25cdf51f287e3fc5b75c7451 | [
"MIT"
] | null | null | null | VRP.FGA_2022/FirstIteration/Individual.cpp | DimaSidorenko/VRP.FGA_2022 | 3f08d9c976c9f86a25cdf51f287e3fc5b75c7451 | [
"MIT"
] | null | null | null | VRP.FGA_2022/FirstIteration/Individual.cpp | DimaSidorenko/VRP.FGA_2022 | 3f08d9c976c9f86a25cdf51f287e3fc5b75c7451 | [
"MIT"
] | null | null | null | #include "Individual.h"
Individual::Individual() :
chromosome(), sequences(), fitness(NONE_FITNESS) {};
Individual::Individual(Chromosome& chromosome, InputData& input, Chromosome& blueprint, double globalLR, bool enable_blueprint) : chromosome(chromosome)
{
sequences = BornAnIndividual(blueprint, globalLR... | 25.141414 | 153 | 0.597027 | DimaSidorenko |
a8242a194bd2ea03b1285d50792cb87c64b83475 | 168 | cpp | C++ | code/RepeaterBullet.cpp | Ethan-Lyu2000/PlantVSZombies | 8d11a7f4396afab8a8c7468ff19fefbce4c7c8f7 | [
"MIT"
] | 1 | 2021-10-17T12:18:09.000Z | 2021-10-17T12:18:09.000Z | code/RepeaterBullet.cpp | Ethan-Lyu2000/PlantVSZombies | 8d11a7f4396afab8a8c7468ff19fefbce4c7c8f7 | [
"MIT"
] | null | null | null | code/RepeaterBullet.cpp | Ethan-Lyu2000/PlantVSZombies | 8d11a7f4396afab8a8c7468ff19fefbce4c7c8f7 | [
"MIT"
] | null | null | null | #include"RepeaterBullet.h"
PeaBullet::PeaBullet(int po_x, int po_y) :Bullet(po_x, po_y, 120, "Bullet.jpg", 1, "Bullet_bk.jpg")
{
}
PeaBullet::~PeaBullet()
{
} | 18.666667 | 100 | 0.660714 | Ethan-Lyu2000 |
a824dd92a59200c4b5573c3a6a7603abe92c973a | 18,233 | cpp | C++ | roomedit/owl-6.43/source/owlcore/dumpstack.cpp | marcelkauf/Meridian59-101 | a83e2779e39bc529dc61dc02db091db7db29734c | [
"FSFAP"
] | 214 | 2015-01-02T23:36:42.000Z | 2022-03-30T01:41:41.000Z | roomedit/owl-6.43/source/owlcore/dumpstack.cpp | marcelkauf/Meridian59-101 | a83e2779e39bc529dc61dc02db091db7db29734c | [
"FSFAP"
] | 100 | 2015-01-01T13:51:57.000Z | 2022-03-28T15:49:36.000Z | roomedit/owl-6.43/source/owlcore/dumpstack.cpp | marcelkauf/Meridian59-101 | a83e2779e39bc529dc61dc02db091db7db29734c | [
"FSFAP"
] | 85 | 2015-01-08T16:09:04.000Z | 2022-02-22T05:24:56.000Z | //--------------------------------------------------------------------------
// ObjectWindows //
// Copyright (c) 1993, 1996 by Borland International
// All Rights Reserved.
// Copyright (c) 1998 by Yura Bidus //
// ... | 32.328014 | 132 | 0.596501 | marcelkauf |
a825f76b7ecc70b1d71ce5cfc718b2f95eaf5a75 | 4,783 | cpp | C++ | src/util/util.cpp | pauljherring/fmm | 45d4e64b2dcd6c0f5e03bb1860acdb771bafcb80 | [
"Apache-2.0"
] | 545 | 2017-11-13T11:45:24.000Z | 2022-03-31T12:31:54.000Z | src/util/util.cpp | pauljherring/fmm | 45d4e64b2dcd6c0f5e03bb1860acdb771bafcb80 | [
"Apache-2.0"
] | 198 | 2017-12-28T14:54:27.000Z | 2022-03-31T10:54:31.000Z | src/util/util.cpp | pauljherring/fmm | 45d4e64b2dcd6c0f5e03bb1860acdb771bafcb80 | [
"Apache-2.0"
] | 145 | 2018-01-17T14:29:42.000Z | 2022-03-16T03:06:47.000Z | #include "util/util.hpp"
#include <iostream>
#include <string>
#include <sys/stat.h>
#include <chrono>
#include <vector>
#include <ctime>
#include "mm/mm_type.hpp"
#if defined BOOST_OS_WINDOWS && !defined S_ISDIR
#define S_ISDIR(m) (((m) & _S_IFDIR) == _S_IFDIR)
#endif
#ifdef BOOST_NO_EXCEPTIONS
namespace boost {... | 25.854054 | 101 | 0.581852 | pauljherring |
a82724bab8422019891211e81c2f681f73ccdbeb | 2,965 | hpp | C++ | modules/core/gallery/include/nt2/gallery/functions/qmult.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/gallery/include/nt2/gallery/functions/qmult.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/gallery/include/nt2/gallery/functions/qmult.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 31.88172 | 169 | 0.58516 | psiha |
a827833114794bca286456e9b913989d717e4295 | 13,787 | hpp | C++ | init.hpp | venim1103/sdl_vulkan_template | d093d703098a5da20d71fa084390bc379738af81 | [
"Apache-2.0"
] | null | null | null | init.hpp | venim1103/sdl_vulkan_template | d093d703098a5da20d71fa084390bc379738af81 | [
"Apache-2.0"
] | null | null | null | init.hpp | venim1103/sdl_vulkan_template | d093d703098a5da20d71fa084390bc379738af81 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "common.hpp"
const std::vector<const char *> validationLayers = {"VK_LAYER_KHRONOS_validation"}; // Validation layers enabled
#ifdef __APPLE__
const std::vector<const char *> deviceExtensions = { VK_KHR_SWAPCHAIN_EXTENSION_NAME, VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME };
#else
const std::vector<... | 46.577703 | 260 | 0.789439 | venim1103 |
a8299cfcb25fe20b820ca62118962fbc27611801 | 2,352 | cpp | C++ | Datastrutures-Algorithms-Python/src/Stacks/stacklists.cpp | rathoresuryansh196/Datastrutures-Algorithms | 6646778db0028c7ca25290b14fb4697559f1a774 | [
"CC0-1.0"
] | null | null | null | Datastrutures-Algorithms-Python/src/Stacks/stacklists.cpp | rathoresuryansh196/Datastrutures-Algorithms | 6646778db0028c7ca25290b14fb4697559f1a774 | [
"CC0-1.0"
] | null | null | null | Datastrutures-Algorithms-Python/src/Stacks/stacklists.cpp | rathoresuryansh196/Datastrutures-Algorithms | 6646778db0028c7ca25290b14fb4697559f1a774 | [
"CC0-1.0"
] | 1 | 2019-10-06T16:17:54.000Z | 2019-10-06T16:17:54.000Z | #include<iostream>
using namespace std;
#include<conio.h>
class node
{
int data;
class node *link,*top,*p,*t;
public:
void push(int);
void pop(void);
void display(void);
node()
{
top=NULL;
p=NULL;
t=NULL;
}
... | 23.058824 | 84 | 0.268707 | rathoresuryansh196 |
a82a81b8a70d476001e66ab4acf8c1d6cb349f23 | 11,593 | hpp | C++ | libcaf_io/caf/io/abstract_broker.hpp | samanbarghi/actor-framework | 9fb82f556760e1004e27fb4d303499b603a3fc19 | [
"BSL-1.0",
"BSD-3-Clause"
] | 2 | 2020-08-25T15:22:08.000Z | 2021-03-05T16:29:24.000Z | libcaf_io/caf/io/abstract_broker.hpp | wujsy/actor-framework | 9fb82f556760e1004e27fb4d303499b603a3fc19 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | libcaf_io/caf/io/abstract_broker.hpp | wujsy/actor-framework | 9fb82f556760e1004e27fb4d303499b603a3fc19 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | 35.237082 | 89 | 0.632451 | samanbarghi |
a83005a683a79d7f989ef1a5fbaffd02f4f9d005 | 2,251 | cpp | C++ | unittest/vslib/TestMACsecAttr.cpp | vmittal-msft/sonic-sairedis | 6baff35880005aee2854fdcde105c4322c28d04f | [
"Apache-2.0"
] | null | null | null | unittest/vslib/TestMACsecAttr.cpp | vmittal-msft/sonic-sairedis | 6baff35880005aee2854fdcde105c4322c28d04f | [
"Apache-2.0"
] | null | null | null | unittest/vslib/TestMACsecAttr.cpp | vmittal-msft/sonic-sairedis | 6baff35880005aee2854fdcde105c4322c28d04f | [
"Apache-2.0"
] | null | null | null | #include "MACsecAttr.h"
#include <gtest/gtest.h>
#include <unordered_set>
using namespace saivs;
TEST(MACsecAttr, ctr)
{
MACsecAttr sec;
}
TEST(MACsecAttr, dtr)
{
MACsecAttr sec;
}
TEST(MACsecAttr, get_cipher_name)
{
EXPECT_EQ(MACsecAttr::get_cipher_name(sai_macsec_cipher_suite_t::SAI_MACSEC_CIPHER_SU... | 23.694737 | 152 | 0.730342 | vmittal-msft |
a8366780eb0698e6ac8ab31f8bd936007ba45820 | 30,660 | cpp | C++ | dependency/darknet-cpp/src/network.cpp | kmansoo/deep-vision-x-player | 3182f2b0a73f9e69e52d132b2d36f759241d715e | [
"MIT"
] | null | null | null | dependency/darknet-cpp/src/network.cpp | kmansoo/deep-vision-x-player | 3182f2b0a73f9e69e52d132b2d36f759241d715e | [
"MIT"
] | null | null | null | dependency/darknet-cpp/src/network.cpp | kmansoo/deep-vision-x-player | 3182f2b0a73f9e69e52d132b2d36f759241d715e | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <time.h>
#include <assert.h>
#include "network.h"
#include "image.h"
#include "data.h"
#include "utils.h"
#include "blas.h"
#include "crop_layer.h"
#include "connected_layer.h"
#include "gru_layer.h"
#include "rnn_layer.h"
#include "crnn_layer.h"
#include "local_layer.h"
#include "convoluti... | 27.013216 | 127 | 0.572962 | kmansoo |
a838b328ec89b77e7939e409e0f523f850b611d3 | 5,899 | cpp | C++ | src/MephCommandButton.cpp | pvergara/MTK | 5ffde489393ff13e6ce69c00fe35ed2baf0de711 | [
"MIT"
] | null | null | null | src/MephCommandButton.cpp | pvergara/MTK | 5ffde489393ff13e6ce69c00fe35ed2baf0de711 | [
"MIT"
] | null | null | null | src/MephCommandButton.cpp | pvergara/MTK | 5ffde489393ff13e6ce69c00fe35ed2baf0de711 | [
"MIT"
] | null | null | null | #include "MephCommandButton.h"
/*MephCommandButton::MephCommandButton():pressed(NOTPRESSED),moused(NOTMOUSED)
{
this->imagemode=(MEPHWINDOWED|MEPHSOLID);
this->x=1;
this->y=1;
this->width=50;
this->height=20;
this->mephcommandbuttonsingleton=this->mephcommandbuttonsingleton->getMephCommandButton... | 28.635922 | 172 | 0.722834 | pvergara |
a840a034ca64ad99385a894b6d768543b696f405 | 1,674 | cpp | C++ | autodiff/src/Atan2.cpp | hendrik-skubch/alica-supplementary | de6d48cc6b8144bdc7bf03373ae04212b1f545bc | [
"MIT"
] | 1 | 2018-12-28T12:06:45.000Z | 2018-12-28T12:06:45.000Z | autodiff/src/Atan2.cpp | hendrik-skubch/alica-supplementary | de6d48cc6b8144bdc7bf03373ae04212b1f545bc | [
"MIT"
] | 12 | 2018-05-28T05:27:04.000Z | 2021-11-23T07:52:35.000Z | autodiff/src/Atan2.cpp | hendrik-skubch/alica-supplementary | de6d48cc6b8144bdc7bf03373ae04212b1f545bc | [
"MIT"
] | 3 | 2019-03-27T01:05:10.000Z | 2020-07-23T19:11:09.000Z |
#include "Atan2.h"
#include "ConstPower.h"
#include "Constant.h"
#include "TermHolder.h"
#include <cmath>
#include <sstream>
namespace autodiff
{
Atan2::Atan2(TermPtr left, TermPtr right, TermHolder* owner)
: BinaryFunction(left, right, owner)
{
}
int Atan2::accept(ITermVisitor* visitor)
{
return visitor->... | 25.363636 | 126 | 0.632616 | hendrik-skubch |
a841e79dc498dba93f1768e08eb0f4a3e0bd74d3 | 3,998 | cpp | C++ | Spoj/Spoj RACETIME - Treap.cpp | bishoy-magdy/Competitive-Programming | 689daac9aeb475da3c28aba4a69df394c68a9a34 | [
"MIT"
] | null | null | null | Spoj/Spoj RACETIME - Treap.cpp | bishoy-magdy/Competitive-Programming | 689daac9aeb475da3c28aba4a69df394c68a9a34 | [
"MIT"
] | null | null | null | Spoj/Spoj RACETIME - Treap.cpp | bishoy-magdy/Competitive-Programming | 689daac9aeb475da3c28aba4a69df394c68a9a34 | [
"MIT"
] | null | null | null | //https://v...content-available-to-author-only...e.net/problem/SPOJ-CERC07S//#pragma GCC optimize ("O3")
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
extern struct node *EMPTY;
typedef int vTyp;
mt19937 eng{std::random_device{}()};
uniform_int_distribution<int> uid(0, (int) 2e9);
str... | 22.715909 | 108 | 0.471986 | bishoy-magdy |
61b4462ba02a18a3a81d2239174409395d0582f7 | 57,855 | cpp | C++ | cloudi_py.cpp | CloudI/cloudi_api_python | c4e683ff20f25968c0cf71a991b2ad2aa7b8a38f | [
"MIT"
] | 1 | 2020-11-17T10:51:11.000Z | 2020-11-17T10:51:11.000Z | cloudi_py.cpp | CloudI/cloudi_api_python | c4e683ff20f25968c0cf71a991b2ad2aa7b8a38f | [
"MIT"
] | null | null | null | cloudi_py.cpp | CloudI/cloudi_api_python | c4e683ff20f25968c0cf71a991b2ad2aa7b8a38f | [
"MIT"
] | null | null | null | /* -*-Mode:C;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*-
* ex: set ft=c fenc=utf-8 sts=4 ts=4 sw=4 et nomod:
*
* MIT License
*
* Copyright (c) 2012-2021 Michael Truog <mjtruog at protonmail dot com>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this s... | 36.686747 | 80 | 0.549788 | CloudI |
61b48af6ebb79115fe87b348515276414b6a29d1 | 2,643 | cpp | C++ | src/render/common/renderPrimitives.cpp | ilidemi/visa-viz | 2f7eb55b9f2b2dedf0b7dbe224cfda59f1958926 | [
"MIT"
] | 11 | 2021-11-29T10:32:29.000Z | 2022-02-13T12:11:26.000Z | src/render/common/renderPrimitives.cpp | ilidemi/visa-viz | 2f7eb55b9f2b2dedf0b7dbe224cfda59f1958926 | [
"MIT"
] | null | null | null | src/render/common/renderPrimitives.cpp | ilidemi/visa-viz | 2f7eb55b9f2b2dedf0b7dbe224cfda59f1958926 | [
"MIT"
] | null | null | null | #pragma once
#include "../../util/deque.cpp"
#include "../../util/list.cpp"
#include "glUtil.cpp"
template <typename TPrimitivesGroupContext>
void primitivesReserve(TPrimitivesGroupContext *groupCtx, int primitivesCount)
{
groupCtx->vertexAttributes.clear();
groupCtx->vertexAttributes.reserve(primitivesCount ... | 33.0375 | 106 | 0.772229 | ilidemi |
61b84fdd61a609d930154c06f7d62a54a6a99cd3 | 4,912 | cpp | C++ | src/engine/graphics/vulkan/buffers/vk_buffer.cpp | Overpeek/Overpeek-Engine | 3df11072378ba870033a19cd09fb332bcc4c466d | [
"MIT"
] | 13 | 2020-01-10T16:36:46.000Z | 2021-08-09T09:24:47.000Z | src/engine/graphics/vulkan/buffers/vk_buffer.cpp | Overpeek/Overpeek-Engine | 3df11072378ba870033a19cd09fb332bcc4c466d | [
"MIT"
] | 1 | 2020-01-16T11:03:49.000Z | 2020-01-16T11:11:15.000Z | src/engine/graphics/vulkan/buffers/vk_buffer.cpp | Overpeek/Overpeek-Engine | 3df11072378ba870033a19cd09fb332bcc4c466d | [
"MIT"
] | 1 | 2020-02-06T21:22:47.000Z | 2020-02-06T21:22:47.000Z | #include "vk_buffer.hpp"
#ifdef BUILD_VULKAN
#include "engine/graphics/vulkan/vk_logical_device.hpp"
#include "engine/graphics/vulkan/vk_window.hpp"
#include "engine/graphics/vulkan/buffers/vk_command_pool.hpp"
namespace oe::graphics {
VKBuffer::VKBuffer(vk::BufferUsageFlagBits usage, size_t size, cons... | 38.077519 | 165 | 0.755293 | Overpeek |
61c01c4980a126f23b68656847615d06f0754d6d | 1,102 | hpp | C++ | src/Base/Format.hpp | xenginez/XE | 7f536c906460c7062cad5b8e09a644812cabf6d3 | [
"MIT"
] | 2 | 2019-06-10T06:51:27.000Z | 2021-11-20T19:57:46.000Z | src/Base/Format.hpp | xenginez/XE | 7f536c906460c7062cad5b8e09a644812cabf6d3 | [
"MIT"
] | 1 | 2019-07-12T03:05:02.000Z | 2019-08-12T12:01:06.000Z | src/Base/Format.hpp | xenginez/XE | 7f536c906460c7062cad5b8e09a644812cabf6d3 | [
"MIT"
] | null | null | null | /*!
* \file Format.hpp
*
* \author ZhengYuanQing
* \date 2021/11/07
* \email zhengyuanqing.95@gmail.com
*
*/
#ifndef FORMAT_HPP__6B939898_70E8_4C71_AA12_A456F9F639CA
#define FORMAT_HPP__6B939898_70E8_4C71_AA12_A456F9F639CA
#include "String.h"
BEG_XE_NAMESPACE
template< typename T >
XE::String Format( XE::uin... | 24.488889 | 112 | 0.666969 | xenginez |
61c4257f44243ca6d2bfeb009dcb8de412384514 | 1,180 | cpp | C++ | main.cpp | hulefei/HelloCpp | 4e299fab1ef430b1cedf2e22a2d1beaec7ef0086 | [
"MIT"
] | null | null | null | main.cpp | hulefei/HelloCpp | 4e299fab1ef430b1cedf2e22a2d1beaec7ef0086 | [
"MIT"
] | null | null | null | main.cpp | hulefei/HelloCpp | 4e299fab1ef430b1cedf2e22a2d1beaec7ef0086 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Sales_data.h"
#include "Window_mgr.h"
//读写SalesData
void rwSalesData();
//操作类
void OperateWindow();
//隐式转换
void explicitFunction();
int main() {
std::cout << "Hello, main!" << std::endl;
// Sales_data salesData;
// salesData.to_string();
// OperateWindow();
explicitFun... | 21.071429 | 67 | 0.59661 | hulefei |
61c81f69d295b64767e820eefb24aada3dd66a4b | 299 | cpp | C++ | cf/Contest/654/Magical sticks/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Contest/654/Magical sticks/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Contest/654/Magical sticks/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define int long long
using namespace std;
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int t;
cin >> t;
for (int i = 0; i < t; ++i) {
int n;
cin >> n;
cout << setprecision(10) << ceil(n/2.0) << "\n";
}
} | 15.736842 | 56 | 0.494983 | wdjpng |
61c888f317d35bfb4d1a4fca1188e99adb798ebe | 1,009 | hpp | C++ | src/bunch.hpp | silverhammermba/bananagrams | ad2b3ec1ef28bd7604580df80ecd67456ad53858 | [
"MIT"
] | 1 | 2018-05-17T17:43:37.000Z | 2018-05-17T17:43:37.000Z | src/bunch.hpp | silverhammermba/bananagrams | ad2b3ec1ef28bd7604580df80ecd67456ad53858 | [
"MIT"
] | null | null | null | src/bunch.hpp | silverhammermba/bananagrams | ad2b3ec1ef28bd7604580df80ecd67456ad53858 | [
"MIT"
] | null | null | null | #ifndef BUNCH_HPP
#define BUNCH_HPP
#include <list>
#include <random>
static const unsigned int letter_count[26]
{
13, 3, 3, 6, 18, 3, 4, 3, 12, 2, 2, 5, 3, 8, 11, 3, 2, 9, 6, 9, 6, 3, 3, 2, 3, 2
// A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
};
// for single player game
cla... | 20.18 | 96 | 0.655104 | silverhammermba |
61c9946021c47293014e18d3acbfcfa945cadc73 | 4,896 | cpp | C++ | src_smartcontract_db/trx/scan/transaction_update_cache/TransactionTableUpdateCache.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 1 | 2020-10-15T08:24:35.000Z | 2020-10-15T08:24:35.000Z | src_smartcontract_db/trx/scan/transaction_update_cache/TransactionTableUpdateCache.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | null | null | null | src_smartcontract_db/trx/scan/transaction_update_cache/TransactionTableUpdateCache.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | null | null | null | /*
* TransactionTableUpdateCache.cpp
*
* Created on: 2020/06/13
* Author: iizuka
*/
#include "trx/scan/transaction_update_cache/TransactionTableUpdateCache.h"
#include "trx/scan/transaction_update_cache/InsertRecordsCacheCursor.h"
#include "trx/scan/transaction_update_cache/InsertedRecordsRepository.h"
#inc... | 34.723404 | 101 | 0.810662 | alinous-core |
61caec6621e1dd5251d4edd1bf614a83d02a1488 | 4,969 | cpp | C++ | libs/fnd/cmath/test/src/unit_test_fnd_cmath_logb.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/cmath/test/src/unit_test_fnd_cmath_logb.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/cmath/test/src/unit_test_fnd_cmath_logb.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file unit_test_fnd_cmath_logb.cpp
*
* @brief logb のテスト
*
* @author myoukaku
*/
#include <bksge/fnd/cmath/logb.hpp>
#include <bksge/fnd/cmath/isnan.hpp>
#include <bksge/fnd/type_traits/is_same.hpp>
#include <gtest/gtest.h>
#include <limits>
#include "constexpr_test.hpp"
namespace bksge_cma... | 32.907285 | 85 | 0.627692 | myoukaku |
61cbcb293b474e1f6c2a4b277eab8e02df79232b | 1,579 | cpp | C++ | Controller/InputListener.cpp | LukasKalinski/Gravity-Game | 5c817e3ae7658e5e42a8cff760a57380eb11fe3e | [
"MIT"
] | null | null | null | Controller/InputListener.cpp | LukasKalinski/Gravity-Game | 5c817e3ae7658e5e42a8cff760a57380eb11fe3e | [
"MIT"
] | null | null | null | Controller/InputListener.cpp | LukasKalinski/Gravity-Game | 5c817e3ae7658e5e42a8cff760a57380eb11fe3e | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////
// InputListener.cpp
// Implementation of the Class InputListener
// Created on: 28-mar-2008 10:28:03
// Original author: Lukas Kalinski
///////////////////////////////////////////////////////////
#include "InputListener.h"
InputListener:... | 26.316667 | 85 | 0.644712 | LukasKalinski |
61ce543fa99543a9448f4c7b17e3c92b70289de5 | 4,378 | cpp | C++ | test/test_sum_easy_server.cpp | yiyuanzhong/flinter | c52655ea5f8e48244fdb59bdf34b915faee57a6e | [
"Apache-2.0"
] | 29 | 2016-01-29T09:31:09.000Z | 2021-07-11T12:00:31.000Z | test/test_sum_easy_server.cpp | yiyuanzhong/flinter | c52655ea5f8e48244fdb59bdf34b915faee57a6e | [
"Apache-2.0"
] | 2 | 2015-03-30T09:59:51.000Z | 2017-03-13T09:35:18.000Z | test/test_sum_easy_server.cpp | yiyuanzhong/flinter | c52655ea5f8e48244fdb59bdf34b915faee57a6e | [
"Apache-2.0"
] | 17 | 2015-03-28T09:24:53.000Z | 2021-08-07T10:09:10.000Z | #include <stdlib.h>
#include <string.h>
#include <flinter/linkage/easy_context.h>
#include <flinter/linkage/easy_handler.h>
#include <flinter/linkage/easy_server.h>
#include <flinter/thread/mutex.h>
#include <flinter/thread/mutex_locker.h>
#include <flinter/logger.h>
#include <flinter/msleep.h>
#include <flinter/sig... | 24.875 | 83 | 0.544769 | yiyuanzhong |
61d226992110c9d3a3a7fd0e057ee8b37cf96954 | 7,021 | hpp | C++ | include/Simple-Log/Logger.hpp | DNKpp/Simple-Log | 93c0b8a2021f38503fbdc6292b77c4fc8c1d3fcd | [
"BSL-1.0"
] | 15 | 2021-02-15T19:50:23.000Z | 2021-02-27T23:53:16.000Z | include/Simple-Log/Logger.hpp | DNKpp/Simple-Log | 93c0b8a2021f38503fbdc6292b77c4fc8c1d3fcd | [
"BSL-1.0"
] | 1 | 2021-01-25T00:28:02.000Z | 2021-01-25T00:28:02.000Z | include/Simple-Log/Logger.hpp | DNKpp/Simple-Log | 93c0b8a2021f38503fbdc6292b77c4fc8c1d3fcd | [
"BSL-1.0"
] | null | null | null | // Copyright Dominic Koepke 2021 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
#ifndef SL_LOG_LOGGER_HPP
#define SL_LOG_LOGGER_HPP
#pragma once
#include "Core.hpp"
#include "Rec... | 30.004274 | 215 | 0.722404 | DNKpp |
61d3bfbd6c0b8fff2d3d04015bd156567a881525 | 825 | cpp | C++ | POC/NodeTCP/src/main.cpp | RobotGuide/RobotGuideProject | ba7fcc4a0fc4eb6b743ddbaeb75e7ae114eefb4e | [
"MIT"
] | 2 | 2021-01-27T20:06:54.000Z | 2021-03-02T14:30:37.000Z | POC/NodeTCP/src/main.cpp | RobotGuide/RobotGuideProject | ba7fcc4a0fc4eb6b743ddbaeb75e7ae114eefb4e | [
"MIT"
] | null | null | null | POC/NodeTCP/src/main.cpp | RobotGuide/RobotGuideProject | ba7fcc4a0fc4eb6b743ddbaeb75e7ae114eefb4e | [
"MIT"
] | null | null | null | #include <ESP8266WiFi.h>
#include <SPI.h>
const char* ssid = "AndroidAPa760";
const char* password = "rzbb0008";
void setup()
{
Serial.begin(9600);
Serial.println();
Serial.printf("Connecting to %s ", ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.pr... | 17.934783 | 52 | 0.591515 | RobotGuide |
61d3f01869a5121676387b3c23ec360f6bfe7b87 | 111,507 | cpp | C++ | engine/cl_main.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | cstrike15_src/engine/cl_main.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | cstrike15_src/engine/cl_main.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | //===== Copyright 1996-2005, Valve Corporation, All rights reserved. ======//
//
// Purpose:
//
// $Workfile: $
// $Date: $
// $NoKeywords: $
//===========================================================================//
#include "client_pch.h"
#include "sound.h"
#include <inetchannel.h>
#include <time.... | 28.431158 | 242 | 0.666398 | DannyParker0001 |
61d795c90d8f7fa7eb6c13bc90e32f894cdbda6d | 708 | hpp | C++ | cbits/profiler.hpp | rai-project/go-pytorch | f2a7fd55aa51f802545b4be3b1b35eec8f56af1b | [
"Apache-2.0"
] | 14 | 2018-11-26T18:33:27.000Z | 2021-12-17T11:14:33.000Z | cbits/profiler.hpp | rai-project/go-pytorch | f2a7fd55aa51f802545b4be3b1b35eec8f56af1b | [
"Apache-2.0"
] | 7 | 2019-04-02T16:46:01.000Z | 2020-06-10T02:02:33.000Z | cbits/profiler.hpp | rai-project/go-pytorch | f2a7fd55aa51f802545b4be3b1b35eec8f56af1b | [
"Apache-2.0"
] | 3 | 2019-07-16T16:47:07.000Z | 2021-12-29T07:47:59.000Z |
#pragma once
#include "timer.h"
#include "timer.impl.hpp"
class StartProfile {
public:
explicit StartProfile(profile *prof, const std::shared_ptr<torch::jit::script::Module> &net)
: prof_(prof), net_(net) {}
virtual ~StartProfile() {}
protected:
virtual void run() final {
if (prof_ == nullptr || ne... | 18.153846 | 94 | 0.637006 | rai-project |
61da7434aab802290799da66b01fd9d94686fd1a | 24,819 | hpp | C++ | include/etl/dyn.hpp | BeatWolf/etl | 32e8153b38e0029176ca4fe2395b7fa6babe3189 | [
"MIT"
] | 1 | 2020-02-19T13:13:10.000Z | 2020-02-19T13:13:10.000Z | include/etl/dyn.hpp | BeatWolf/etl | 32e8153b38e0029176ca4fe2395b7fa6babe3189 | [
"MIT"
] | null | null | null | include/etl/dyn.hpp | BeatWolf/etl | 32e8153b38e0029176ca4fe2395b7fa6babe3189 | [
"MIT"
] | null | null | null | //=======================================================================
// Copyright (c) 2014-2018 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... | 34.711888 | 152 | 0.607559 | BeatWolf |
61dd6643e0886b6e22f1824d5ecb26d16b1f3712 | 2,329 | cpp | C++ | Server/CScript.cpp | VortrexFTW/lhmp-old | e0f8a849625182aa654ca2022962dcfd6b34eac7 | [
"Apache-2.0"
] | 1 | 2019-03-29T21:38:13.000Z | 2019-03-29T21:38:13.000Z | Server/CScript.cpp | VortrexFTW/lhmp-old | e0f8a849625182aa654ca2022962dcfd6b34eac7 | [
"Apache-2.0"
] | null | null | null | Server/CScript.cpp | VortrexFTW/lhmp-old | e0f8a849625182aa654ca2022962dcfd6b34eac7 | [
"Apache-2.0"
] | 1 | 2018-11-14T08:53:44.000Z | 2018-11-14T08:53:44.000Z | // (C) LHMP Team 2013-2016; Licensed under Apache 2; See LICENSE;;
#include "CCore.h"
#include "CScript.h"
#include "squirrelheads.h"
extern CCore *g_CCore;
CScript::CScript(const char *szScriptName)
{
// get the script path
char szScriptPath[512];
sprintf(szScriptPath, "%s", szScriptName);
// make sure the scr... | 20.252174 | 67 | 0.708029 | VortrexFTW |
61dffe476faeebdb2f483a72d859ab7ab1d50921 | 709 | cpp | C++ | CSES_Problem_Set/Introductory_Problems/Palindrome_Reorder.cpp | hoanghai1803/CP_Training | 03495a21509fb3ab7fc64674b9a1b0c7d4327ecb | [
"MIT"
] | 4 | 2021-08-25T10:53:32.000Z | 2021-09-30T03:25:50.000Z | CSES_Problem_Set/Introductory_Problems/Palindrome_Reorder.cpp | hoanghai1803/CP_Training | 03495a21509fb3ab7fc64674b9a1b0c7d4327ecb | [
"MIT"
] | null | null | null | CSES_Problem_Set/Introductory_Problems/Palindrome_Reorder.cpp | hoanghai1803/CP_Training | 03495a21509fb3ab7fc64674b9a1b0c7d4327ecb | [
"MIT"
] | null | null | null | // Author: __BruteForce__
#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 1e6 + 6;
const int MAX_CH = 1e2 + 2;
char str[MAX_N];
int cnt[MAX_CH];
int odd, middleCharacter;
int main() {
scanf("%s", str);
for (char ch: str) cnt[ch]++;
for (int ch = 'A'; ch <= 'Z'; ch++)
if (cn... | 21.484848 | 58 | 0.510578 | hoanghai1803 |
61e0f75d2c1e2e004543b1f72d3c604916a97aab | 2,701 | hpp | C++ | bytesteady/data.hpp | ElementAI/bytesteady | 737cfc4a5fc0f0ad783ccc70b73200b5e3cef06f | [
"Apache-2.0"
] | 3 | 2021-11-08T19:18:32.000Z | 2022-03-06T06:09:58.000Z | bytesteady/data.hpp | ElementAI/bytesteady | 737cfc4a5fc0f0ad783ccc70b73200b5e3cef06f | [
"Apache-2.0"
] | null | null | null | bytesteady/data.hpp | ElementAI/bytesteady | 737cfc4a5fc0f0ad783ccc70b73200b5e3cef06f | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 ServiceNow
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, s... | 28.431579 | 75 | 0.727879 | ElementAI |
61e9b8ff9e84becf8dc41cb6ba28a9abf14b54e6 | 663 | cpp | C++ | Searching/linear_search.cpp | ValeKI/algo-implementation | 9acf207b3d612aabae2ad2f0720fe63c4cb1506c | [
"MIT"
] | 1 | 2020-10-22T06:49:13.000Z | 2020-10-22T06:49:13.000Z | Searching/linear_search.cpp | ValeKI/algo-implementation | 9acf207b3d612aabae2ad2f0720fe63c4cb1506c | [
"MIT"
] | 1 | 2019-09-30T17:41:16.000Z | 2019-10-04T05:40:37.000Z | Searching/linear_search.cpp | ValeKI/algo-implementation | 9acf207b3d612aabae2ad2f0720fe63c4cb1506c | [
"MIT"
] | 8 | 2020-10-19T11:44:59.000Z | 2020-10-28T13:34:16.000Z |
#include <iostream>
using namespace std;
int lin_search(int temp[],int value,int pos,int s){
if (temp[pos]==value)
return pos;
else{
if (pos==s)
return -1;
else
lin_search(temp,value,++pos,s);
}
}
int main(){
int size, result;
int val,a[100];
cout<<"En... | 17.918919 | 77 | 0.580694 | ValeKI |
61eaf0bc1f35893e8306bc84a7dba202da5d296a | 134 | hpp | C++ | engine/source/render/rhi/details/vulkan/vulkan_platform.hpp | JasonYui/PolarisEngine | 5c96b8171fb1e7d07e6a68058664467940af4558 | [
"MIT"
] | null | null | null | engine/source/render/rhi/details/vulkan/vulkan_platform.hpp | JasonYui/PolarisEngine | 5c96b8171fb1e7d07e6a68058664467940af4558 | [
"MIT"
] | null | null | null | engine/source/render/rhi/details/vulkan/vulkan_platform.hpp | JasonYui/PolarisEngine | 5c96b8171fb1e7d07e6a68058664467940af4558 | [
"MIT"
] | null | null | null | #pragma once
#include "predefine/platform.hpp"
#if PLATFORM_WINDOWS
#include "rhi/details/vulkan/vulkan_windows_platform.hpp"
#endif | 19.142857 | 57 | 0.813433 | JasonYui |
61ecacdbb74365a61c635b5e8ec56c442947fc54 | 5,003 | hpp | C++ | Source/RTSPPlayerClient/Base/Serialization/NetworkSerializer.hpp | Grandbrain/RTSPPlayer | 5f8243575d97f5491fee8cb1569f80622e66bbb5 | [
"MIT"
] | 1 | 2020-11-02T16:59:42.000Z | 2020-11-02T16:59:42.000Z | Source/RTSPPlayerClient/Base/Serialization/NetworkSerializer.hpp | Grandbrain/RTSPPlayer | 5f8243575d97f5491fee8cb1569f80622e66bbb5 | [
"MIT"
] | null | null | null | Source/RTSPPlayerClient/Base/Serialization/NetworkSerializer.hpp | Grandbrain/RTSPPlayer | 5f8243575d97f5491fee8cb1569f80622e66bbb5 | [
"MIT"
] | null | null | null | /// \file NetworkSerializer.hpp
/// \brief Contains declarations of classes and functions for processing network
/// data.
/// \bug No known bugs.
#ifndef NETWORKSERIALIZER_HPP
#define NETWORKSERIALIZER_HPP
#include "MemorySerializer.hpp"
#include <QHash>
#include <QByteArray>
/// A namespace that contains common c... | 29.60355 | 80 | 0.613832 | Grandbrain |
61ed2e02d238cbfb02db016628038e3aece90acc | 15,661 | cpp | C++ | src/constitutive/mechanics/solid/small_strain_J2_plasticity_damage.cpp | dbeurle/neon | 63cd2929a6eaaa0e1654c729cd35a9a52a706962 | [
"MIT"
] | 9 | 2018-07-12T17:06:33.000Z | 2021-11-20T23:13:26.000Z | src/constitutive/mechanics/solid/small_strain_J2_plasticity_damage.cpp | dbeurle/neon | 63cd2929a6eaaa0e1654c729cd35a9a52a706962 | [
"MIT"
] | 119 | 2016-06-22T07:36:04.000Z | 2019-03-10T19:38:12.000Z | src/constitutive/mechanics/solid/small_strain_J2_plasticity_damage.cpp | dbeurle/neon | 63cd2929a6eaaa0e1654c729cd35a9a52a706962 | [
"MIT"
] | 9 | 2017-10-08T16:51:38.000Z | 2021-03-15T08:08:04.000Z | #include "small_strain_J2_plasticity_damage.hpp"
#include "constitutive/internal_variables.hpp"
#include "numeric/mechanics"
#include "io/json.hpp"
#include "exceptions.hpp"
#include <range/v3/view/transform.hpp>
#include <tbb/parallel_for.h>
#include <iostream>
namespace neon::mechanics::solid
{
small_strain_J2_p... | 49.71746 | 125 | 0.606922 | dbeurle |
61ef0df0bb705426a18e91d8aa23cd7a9b4cd90a | 3,469 | cpp | C++ | Game/Tests/PropertyGroupScenarios.cpp | takeupcode/TUCUT | 17ef8064792b6b74e311d6438f43970cc97dba77 | [
"MIT"
] | 8 | 2018-10-29T02:42:52.000Z | 2021-02-04T17:37:14.000Z | Game/Tests/PropertyGroupScenarios.cpp | takeupcode/TUCUT | 17ef8064792b6b74e311d6438f43970cc97dba77 | [
"MIT"
] | null | null | null | Game/Tests/PropertyGroupScenarios.cpp | takeupcode/TUCUT | 17ef8064792b6b74e311d6438f43970cc97dba77 | [
"MIT"
] | 1 | 2019-11-07T02:18:23.000Z | 2019-11-07T02:18:23.000Z | //
// PropertyGroupScenarios.cpp
// TestTUCUT
//
// Created by Abdul Wahid Tanner on 8/19/18.
// Copyright © 2018 Take Up Code. All rights reserved.
//
#include <string>
#include "../../Test/Test.h"
#include "../PropertyGroup.h"
using namespace std;
using namespace TUCUT;
SCENARIO( PropertyGroup, "Construction... | 29.151261 | 102 | 0.652638 | takeupcode |
61f31e4237f30b2a1c620c2c99ec28e9f57796e0 | 4,797 | cpp | C++ | src/ToolBox/superpmi/superpmi-shim-counter/methodcallsummarizer.cpp | guhuro/coreclr | 812230630b694f14ebf0d54eb1c357f4dfb9bb5a | [
"MIT"
] | null | null | null | src/ToolBox/superpmi/superpmi-shim-counter/methodcallsummarizer.cpp | guhuro/coreclr | 812230630b694f14ebf0d54eb1c357f4dfb9bb5a | [
"MIT"
] | null | null | null | src/ToolBox/superpmi/superpmi-shim-counter/methodcallsummarizer.cpp | guhuro/coreclr | 812230630b694f14ebf0d54eb1c357f4dfb9bb5a | [
"MIT"
] | 1 | 2021-02-24T10:01:34.000Z | 2021-02-24T10:01:34.000Z | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
#include "standardpch.h"
#include "methodcallsummarizer.h"
MethodCallSummarizer::MethodCallSummarizer(WCHAR *logPath)
{
numNames = 0;
names = nullptr;
... | 34.021277 | 152 | 0.649573 | guhuro |
61fe5f13529bb3f076438d7732a25e04ee446fa2 | 1,557 | cpp | C++ | api/source/mk_util.cpp | mtdxc/ZLMediaKit | 9c442d94ff627f20f9ef6f72d08d1011b9efc042 | [
"MIT"
] | null | null | null | api/source/mk_util.cpp | mtdxc/ZLMediaKit | 9c442d94ff627f20f9ef6f72d08d1011b9efc042 | [
"MIT"
] | null | null | null | api/source/mk_util.cpp | mtdxc/ZLMediaKit | 9c442d94ff627f20f9ef6f72d08d1011b9efc042 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/xia-chu/ZLMediaKit).
*
* Use of this source code is governed by MIT license that can be found in the
* LICENSE file in the root of the source tree. All contributing project authors
... | 27.315789 | 123 | 0.71869 | mtdxc |
61ff54abae605f414c1cc76ba16731f59a0d3d58 | 672 | cpp | C++ | third_party/github/translib/src/frameLoop.cpp | maxcong001/empty002 | 61785ae8ad83b9b538bc5758e083d91ac493d632 | [
"MIT"
] | 4 | 2017-04-27T22:28:34.000Z | 2019-03-02T08:41:03.000Z | third_party/github/translib/src/frameLoop.cpp | maxcong001/empty002 | 61785ae8ad83b9b538bc5758e083d91ac493d632 | [
"MIT"
] | null | null | null | third_party/github/translib/src/frameLoop.cpp | maxcong001/empty002 | 61785ae8ad83b9b538bc5758e083d91ac493d632 | [
"MIT"
] | 1 | 2017-09-13T13:04:37.000Z | 2017-09-13T13:04:37.000Z | /*
* FrameLoop.cpp
*
* Created on: 2016年7月11日
* Author:
*/
#include "frameLoop.h"
#include "timer.h"
namespace translib
{
FrameLoop::FrameLoop() : Loop()
{
_frameTimer = new Timer(*this);
_frameInterval = 10;
}
FrameLoop::~FrameLoop()
{
delete _frameTimer;
}
void FrameLoop::setFrameInterval(uint32_t ... | 13.176471 | 81 | 0.686012 | maxcong001 |
11001f80938be9aece5462235264afbdf8a1fdc7 | 785 | cpp | C++ | args/physics/components/physics_component.cpp | Algo-ryth-mix/Args-Engine | cc5084c5060ff071602cc9e2fdfb52791e65ca5b | [
"MIT"
] | null | null | null | args/physics/components/physics_component.cpp | Algo-ryth-mix/Args-Engine | cc5084c5060ff071602cc9e2fdfb52791e65ca5b | [
"MIT"
] | null | null | null | args/physics/components/physics_component.cpp | Algo-ryth-mix/Args-Engine | cc5084c5060ff071602cc9e2fdfb52791e65ca5b | [
"MIT"
] | null | null | null |
#include <physics/components/physics_component.hpp>
#include <physics/colliders/convexcollider.hpp>
namespace args::physics
{
void physicsComponent::calculateNewLocalCenterOfMass()
{
}
void physicsComponent::ConstructConvexHull()
{
calculateNewLocalCenterOfMass();
}
void physicsC... | 20.128205 | 73 | 0.689172 | Algo-ryth-mix |
110366cb933760b1fc3e629c5e7638741d3d76c6 | 7,323 | cpp | C++ | src/engine/core/FS/file_system.cpp | galek/LumixEngine | d7d1738f7fc2bc7f6cf08d1217330a591b370ed9 | [
"MIT"
] | 8 | 2015-09-06T20:05:27.000Z | 2021-07-14T11:12:33.000Z | src/engine/core/FS/file_system.cpp | gamedevforks/LumixEngine | d7d1738f7fc2bc7f6cf08d1217330a591b370ed9 | [
"MIT"
] | null | null | null | src/engine/core/FS/file_system.cpp | gamedevforks/LumixEngine | d7d1738f7fc2bc7f6cf08d1217330a591b370ed9 | [
"MIT"
] | null | null | null | #include "core/fs/file_system.h"
#include "core/array.h"
#include "core/base_proxy_allocator.h"
#include "core/fs/disk_file_device.h"
#include "core/fs/ifile.h"
#include "core/mt/lock_free_fixed_queue.h"
#include "core/mt/task.h"
#include "core/mt/transaction.h"
#include "core/profiler.h"
#include "core/queue.h"
#incl... | 18.7289 | 75 | 0.667076 | galek |
110598dd1b6366763cef4292fbf0f85e425d7ddf | 13,052 | cpp | C++ | getout/main.cpp | cymonsgames/CymonsGames | ac905e1c1ff3b9ba40b97a7b910461c119a327a9 | [
"MIT"
] | 21 | 2015-04-21T07:57:17.000Z | 2022-03-27T04:22:36.000Z | getout/main.cpp | cymonsgames/CymonsGames | ac905e1c1ff3b9ba40b97a7b910461c119a327a9 | [
"MIT"
] | 1 | 2021-08-13T13:47:37.000Z | 2021-08-13T13:47:37.000Z | getout/main.cpp | cymonsgames/CymonsGames | ac905e1c1ff3b9ba40b97a7b910461c119a327a9 | [
"MIT"
] | 8 | 2015-01-22T23:03:39.000Z | 2021-11-05T07:25:18.000Z | /*
main.cpp
Part of Get Out
Copyright 2008 James E. Ward
Based on a small RL by Ido Yehieli
init taken from Shox by Joseph Larson and modified by James E. Ward
Most printed lines written by Darren Grey
Licensed under GNU 3 see included copying.txt
*/
//preprocessor stuff
#include<string>
#include <cstdlib>
#include <... | 22.978873 | 95 | 0.477245 | cymonsgames |
1106a3dbc635040d4bdb5955311f83db2b9505d0 | 2,984 | cpp | C++ | sparse/testing/testing_zoperation.cpp | LiangqinGong/magma | 4c2588119ee636999b230b248fca3e3824a23be9 | [
"BSD-3-Clause"
] | 13 | 2018-03-25T01:03:31.000Z | 2022-03-31T09:12:23.000Z | sparse/testing/testing_zoperation.cpp | LiangqinGong/magma | 4c2588119ee636999b230b248fca3e3824a23be9 | [
"BSD-3-Clause"
] | 3 | 2020-01-02T05:21:16.000Z | 2020-01-07T20:04:05.000Z | sparse/testing/testing_zoperation.cpp | LiangqinGong/magma | 4c2588119ee636999b230b248fca3e3824a23be9 | [
"BSD-3-Clause"
] | 7 | 2018-03-24T23:33:28.000Z | 2022-01-25T18:41:03.000Z | /*
-- MAGMA (version 2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date
@precisions normal z -> c d s
@author Hartwig Anzt
*/
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
... | 33.155556 | 101 | 0.51508 | LiangqinGong |
11073875de86d93dcf6a74ed20da6e6b46193a33 | 369 | hpp | C++ | libpigpiodpp/include/pigpiodpp/pinassignedexception.hpp | freesurfer-rge/linesidecabinet | 8944c67fa7d340aa792e3a6e681113a4676bfbad | [
"MIT"
] | null | null | null | libpigpiodpp/include/pigpiodpp/pinassignedexception.hpp | freesurfer-rge/linesidecabinet | 8944c67fa7d340aa792e3a6e681113a4676bfbad | [
"MIT"
] | 14 | 2019-11-17T14:46:25.000Z | 2021-03-10T02:48:40.000Z | libpigpiodpp/include/pigpiodpp/pinassignedexception.hpp | freesurfer-rge/linesidecabinet | 8944c67fa7d340aa792e3a6e681113a4676bfbad | [
"MIT"
] | null | null | null | #pragma once
#include <stdexcept>
namespace PiGPIOdpp {
//! Exception for when an already assigned pin is requested
class PinAssignedException : public std::runtime_error {
public:
explicit PinAssignedException(const unsigned int pin);
const unsigned int pinId;
std::string message;
virtual co... | 20.5 | 61 | 0.728997 | freesurfer-rge |
110762ad199bd941ef7c055a9e7d4b3811356e04 | 606 | cpp | C++ | src/asynclock/delete_trap.cpp | TetraSomia/liblapin | f5ee3ce9b0fff8459ec15d5e24287f2c16e5ae35 | [
"BSD-3-Clause"
] | 1 | 2021-06-14T19:26:42.000Z | 2021-06-14T19:26:42.000Z | src/asynclock/delete_trap.cpp | TetraSomia/liblapin | f5ee3ce9b0fff8459ec15d5e24287f2c16e5ae35 | [
"BSD-3-Clause"
] | null | null | null | src/asynclock/delete_trap.cpp | TetraSomia/liblapin | f5ee3ce9b0fff8459ec15d5e24287f2c16e5ae35 | [
"BSD-3-Clause"
] | null | null | null | // Jason Brillante "Damdoshi"
// Hanged Bunny Studio 2014-2016
//
// Lapin library
#include "lapin_private.h"
void __bunny_delete_trap(struct bunny_trap *trap,
t_bunny_call_order order)
{
struct bunny_trap **snt;
if (order == BCO_BEFORE_LOOP_MAIN_FUNCTION)
snt = &gl_bunny_trap_head[0];
else
... | 18.9375 | 54 | 0.665017 | TetraSomia |
110b1dd06e64181346f0bd0846d04d0fe080c78e | 11,801 | inl | C++ | src/bin/tools/ValueOperations/Reductions.inl | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | 19 | 2020-10-21T10:05:17.000Z | 2022-03-20T13:41:50.000Z | src/bin/tools/ValueOperations/Reductions.inl | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | 4 | 2021-01-01T15:58:15.000Z | 2021-09-19T03:31:09.000Z | src/bin/tools/ValueOperations/Reductions.inl | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | 4 | 2020-10-05T09:01:50.000Z | 2022-01-11T03:02:39.000Z | #include <limits>
#include <algorithm>
#include <cmath>
#include <stdexcept>
struct ReductionMin : public Reduction {
ReductionMin(const std::string &arg = "") { reset(); setArg(arg); }
virtual void reset() { m_acc = std::numeric_limits<Real>::max(); }
virtual void operator()(Real val) { m_acc = std::min(m... | 43.386029 | 185 | 0.623676 | pbedenbaugh |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.