hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 77k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c217d399851f509ee29ab5c0ddb0a334b18ea89f | 3,645 | hpp | C++ | libs/xpressive/boost/xpressive/proto/v1_/proto_typeof.hpp | xoxox4dev/madedit | 8e0dd08818e040b099251c1eb8833b836cb36c6e | [
"Ruby"
] | 22 | 2015-06-28T17:48:54.000Z | 2021-04-16T08:47:26.000Z | libs/xpressive/boost/xpressive/proto/v1_/proto_typeof.hpp | mcanthony/madedit | 8e0dd08818e040b099251c1eb8833b836cb36c6e | [
"Ruby"
] | null | null | null | libs/xpressive/boost/xpressive/proto/v1_/proto_typeof.hpp | mcanthony/madedit | 8e0dd08818e040b099251c1eb8833b836cb36c6e | [
"Ruby"
] | 12 | 2015-04-25T00:40:35.000Z | 2021-11-11T06:39:48.000Z | ///////////////////////////////////////////////////////////////////////////////
/// \file proto_typeof.hpp
/// Type registrations so that proto1 expression templates can be used together
/// with the Boost.Typeof library.
//
// Copyright 2007 Eric Niebler. Distributed under the Boost
// Software License, Version 1.0.... | 47.960526 | 88 | 0.836763 |
c21e828b819fbdc15790471d7b9b16ed3aff16b2 | 8,475 | hpp | C++ | src/CellGraph.hpp | iosonofabio/ExpressionMatrix2 | a6fc6938fe857fe1bd6a9200071957691295ba3c | [
"MIT"
] | null | null | null | src/CellGraph.hpp | iosonofabio/ExpressionMatrix2 | a6fc6938fe857fe1bd6a9200071957691295ba3c | [
"MIT"
] | null | null | null | src/CellGraph.hpp | iosonofabio/ExpressionMatrix2 | a6fc6938fe857fe1bd6a9200071957691295ba3c | [
"MIT"
] | null | null | null | // The cell graph is a graph in which each vertex
// corresponds to a cell.
// An undirected edge is created between two vertices
// if the there is good similarity between the
// expression vectors of the corresponding cells.
#ifndef CZI_EXPRESSION_MATRIX2_CELL_GRAPH_HPP
#define CZI_EXPRESSION_MATRIX2_CELL_GRAPH_HPP
... | 29.023973 | 128 | 0.653923 |
c2204f53bccd49ff55d67f901341be870061d5c3 | 955 | hpp | C++ | lib/Array/concat.hpp | LiquidFun/WiredLedCube | dc2aac8bccf02d325b31081d6dc52f8ca79bd62a | [
"MIT"
] | 1 | 2021-04-06T09:48:39.000Z | 2021-04-06T09:48:39.000Z | lib/Array/concat.hpp | LiquidFun/WiredLedCube | dc2aac8bccf02d325b31081d6dc52f8ca79bd62a | [
"MIT"
] | null | null | null | lib/Array/concat.hpp | LiquidFun/WiredLedCube | dc2aac8bccf02d325b31081d6dc52f8ca79bd62a | [
"MIT"
] | null | null | null | #pragma once
#include <stddef.h>
#include "Array.hpp"
#include "IntegerSequence.hpp"
#include "make_array.hpp"
#include "MakeIntegerSequence.hpp"
namespace T27
{
namespace intern
{
template <class T, int... inds1, int... inds2>
constexpr Array<T, sizeof...(inds1) + sizeof...(inds2)> concat_(
... | 25.131579 | 72 | 0.559162 |
c222d086ec30d6d6ac0c7e70eca167724294b61b | 31,512 | cpp | C++ | sdl2_framework/DrawingSurface.cpp | chrisjpurdy/ksp_2d | 54f6f31aea7b6228a62168f7963058fa3a9243a2 | [
"MIT"
] | 2 | 2022-01-07T11:35:35.000Z | 2022-01-09T22:37:06.000Z | sdl2_framework/DrawingSurface.cpp | chrisjpurdy/ksp_2d | 54f6f31aea7b6228a62168f7963058fa3a9243a2 | [
"MIT"
] | null | null | null | sdl2_framework/DrawingSurface.cpp | chrisjpurdy/ksp_2d | 54f6f31aea7b6228a62168f7963058fa3a9243a2 | [
"MIT"
] | null | null | null | #include "header.h"
#if defined(_MSC_VER)
#include <SDL_syswm.h>
#endif
#include <math.h>
#include "BaseEngine.h"
#include "DisplayableObject.h"
#include "DrawingSurface.h"
#include "DrawingFilters.h"
#include "FontManager.h"
#include "templates.h"
/*
Template function to swap two values... | 36.85614 | 219 | 0.652862 |
c2269d3f254b29964f062a782a979882a83d184e | 7,457 | cpp | C++ | examples/ex7_ssl_server/ex7_ssl_server.cpp | saarbastler/beast_http_server | bd19f1651324a0fb05ddc27fb6799fd371627e64 | [
"BSD-2-Clause"
] | null | null | null | examples/ex7_ssl_server/ex7_ssl_server.cpp | saarbastler/beast_http_server | bd19f1651324a0fb05ddc27fb6799fd371627e64 | [
"BSD-2-Clause"
] | null | null | null | examples/ex7_ssl_server/ex7_ssl_server.cpp | saarbastler/beast_http_server | bd19f1651324a0fb05ddc27fb6799fd371627e64 | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
#include <server.hpp>
#include <ssl.hpp>
using namespace std;
template<class Request>
auto make_response(const Request & req, const string & user_body){
boost::beast::http::string_body::value_type body(user_body);
auto const body_size = body.size();
boost::beast::http::response<boo... | 46.899371 | 142 | 0.73488 |
c22acce4897c7e29eb52e25c5489caea137e48cd | 1,102 | cpp | C++ | OIandACM/OJ/Codeforces/1451C.cpp | ASC8384/- | 8d8fb4c1d4c10aca1e10a0faf5ab2b687fd936d2 | [
"CC0-1.0"
] | 8 | 2019-08-09T14:28:13.000Z | 2021-02-23T03:22:15.000Z | OIandACM/OJ/Codeforces/1451C.cpp | ASC8384/Template | 8d8fb4c1d4c10aca1e10a0faf5ab2b687fd936d2 | [
"CC0-1.0"
] | null | null | null | OIandACM/OJ/Codeforces/1451C.cpp | ASC8384/Template | 8d8fb4c1d4c10aca1e10a0faf5ab2b687fd936d2 | [
"CC0-1.0"
] | 4 | 2019-08-16T12:00:41.000Z | 2019-11-29T12:01:17.000Z | /*
** Author: ASC_8384
** Website: www.ASC8384.top
** License: CC0
** Time: 2020-11-21 22:55:51
*/
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count());
const int size = 2e5 + 9;
const ll mod = 1e9 + 7;
int a[size];
string s1, s2;... | 16.69697 | 68 | 0.513612 |
c2313e39bc1107089d98d69060fe05c8e3cdc0c1 | 1,906 | cpp | C++ | Minecraft/Taiga_Biome.cpp | borbrudar/Minecraft_clone | 117fbe94390f96e3a6227129de60c08a5cc2ccdc | [
"MIT"
] | null | null | null | Minecraft/Taiga_Biome.cpp | borbrudar/Minecraft_clone | 117fbe94390f96e3a6227129de60c08a5cc2ccdc | [
"MIT"
] | null | null | null | Minecraft/Taiga_Biome.cpp | borbrudar/Minecraft_clone | 117fbe94390f96e3a6227129de60c08a5cc2ccdc | [
"MIT"
] | null | null | null | #include "Taiga_Biome.h"
void Taiga_Biome::drawBiome(Shader shader, Block_Heavy & data, glm::mat4 model)
{
//draw the trees
for (int i = 0; i < trees.size(); i++) {
for (int j = 0; j < trees[i].part1.size(); j++) {
int x = trees[i].part1[j].x, y = trees[i].part1[j].y, z = trees[i].part1[j].z;
model[3][0] = x... | 30.741935 | 136 | 0.58447 |
ea4d3d64447cc74008b0b64b8ede39197bee2f21 | 1,923 | cpp | C++ | LiveCam/Core/GLSL/VAO.cpp | KanSmith/LiveCam | 8b863f55f08cb3ea5090e417c68ad82ded690743 | [
"MIT"
] | null | null | null | LiveCam/Core/GLSL/VAO.cpp | KanSmith/LiveCam | 8b863f55f08cb3ea5090e417c68ad82ded690743 | [
"MIT"
] | null | null | null | LiveCam/Core/GLSL/VAO.cpp | KanSmith/LiveCam | 8b863f55f08cb3ea5090e417c68ad82ded690743 | [
"MIT"
] | null | null | null | #include <GLSL/VAO.h>
namespace gl {
#if 0
VAO::VAO()
:id(0)
{
}
VAO::~VAO() {
id = 0;
}
bool VAO::setup() {
if(id) {
LC_ERROR(ERR_GL_VAO_ALREADY_SETUP);
return false;
}
glGenVertexArrays(1, &id);
if(!id) {
LC_ERROR(ERR_GL_VAO_CANNOT_CREATE);
return fa... | 19.424242 | 90 | 0.609984 |
ea51aef431a15015a7cc29613f6b088384c01dec | 4,489 | cpp | C++ | core/src/ConfigData.cpp | aschuman/CoBaB | 59700463859b267f6e37d5694667e3e4110aa70b | [
"MIT"
] | null | null | null | core/src/ConfigData.cpp | aschuman/CoBaB | 59700463859b267f6e37d5694667e3e4110aa70b | [
"MIT"
] | 3 | 2015-11-15T13:24:23.000Z | 2016-03-11T12:27:15.000Z | core/src/ConfigData.cpp | aschuman/CoBaB | 59700463859b267f6e37d5694667e3e4110aa70b | [
"MIT"
] | 3 | 2015-11-10T07:54:45.000Z | 2021-05-11T12:33:12.000Z | #include "ConfigData.h"
#include <QTranslator>
#include <QApplication>
/**
* @brief ConfigData::ConfigData Creates the ConfigData object.
*/
ConfigData::ConfigData() : QSettings("IOSB", "CoBaB"){
Q_INIT_RESOURCE(application);
languages.insert("German", QLocale(QLocale::German));
languages.insert("Englis... | 44.89 | 182 | 0.740699 |
ea54f68fa64e088280e1531c992ec8d53df920c9 | 1,988 | cpp | C++ | P4612.cpp | AndrewWayne/OI_Learning | 0fe8580066704c8d120a131f6186fd7985924dd4 | [
"MIT"
] | null | null | null | P4612.cpp | AndrewWayne/OI_Learning | 0fe8580066704c8d120a131f6186fd7985924dd4 | [
"MIT"
] | null | null | null | P4612.cpp | AndrewWayne/OI_Learning | 0fe8580066704c8d120a131f6186fd7985924dd4 | [
"MIT"
] | null | null | null | /*
* Author: xiaohei_AWM
* Date:5.3
* Mutto: Face to the weakness, expect for the strength.
*/
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<iostream>
#include<cstdlib>
#include<ctime>
#include<utility>
#include<functional>
#include<vector>
#include<assert.h>
using namespace std;
#define reg regist... | 23.666667 | 82 | 0.479376 |
ea5ce77589e9dcc71190384d6405826e9e895524 | 1,131 | cpp | C++ | Company-Google/393. UTF-8 Validation/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 1 | 2021-11-19T19:58:33.000Z | 2021-11-19T19:58:33.000Z | Company-Google/393. UTF-8 Validation/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | null | null | null | Company-Google/393. UTF-8 Validation/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 2 | 2021-11-26T12:47:27.000Z | 2022-01-13T16:14:46.000Z | //
// main.cpp
// 393. UTF-8 Validation
//
// Created by Jaylen Bian on 7/26/20.
// Copyright © 2020 边俊林. All rights reserved.
//
#include <map>
#include <set>
#include <queue>
#include <string>
#include <stack>
#include <vector>
#include <cstdio>
#include <numeric>
#include <cstdlib>
#include <utility>
#include <... | 20.563636 | 55 | 0.50221 |
ea5ef2d33b7d36eeb530e3e5720301530f805d2e | 280 | cpp | C++ | All_code/57.cpp | jnvshubham7/cpp-programming | 7d00f4a3b97b9308e337c5d3547fd3edd47c5e0b | [
"Apache-2.0"
] | 1 | 2021-12-22T12:37:36.000Z | 2021-12-22T12:37:36.000Z | All_code/57.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | All_code/57.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
int factorial(int n) {
int fact = 1;
for (int v = 1; v <= n; v++) {
fact = fact * v;
}
return fact;
}
return 0;
}
| 14 | 38 | 0.517857 |
ea5fc3262d4b79008225d3b325d0a3fe8a01ca37 | 4,058 | cc | C++ | mysql-server/sql/rpl_info.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/sql/rpl_info.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/sql/rpl_info.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /* Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... | 40.989899 | 79 | 0.750123 |
ea6304a806f2166c33b63ea65a502beb4a699b6c | 1,051 | cpp | C++ | src/utils/ExpressionManager.cpp | amecky/breakout | b580befabd1226c6c8c26550d5e0e0ca841fe67d | [
"MIT"
] | null | null | null | src/utils/ExpressionManager.cpp | amecky/breakout | b580befabd1226c6c8c26550d5e0e0ca841fe67d | [
"MIT"
] | null | null | null | src/utils/ExpressionManager.cpp | amecky/breakout | b580befabd1226c6c8c26550d5e0e0ca841fe67d | [
"MIT"
] | null | null | null | #include "ExpressionManager.h"
#include <diesel.h>
ExpressionManager::ExpressionManager() {
_vmCtx = vm_create_context();
vm_add_variable(_vmCtx, "TIMER", 0.0f);
vm_add_variable(_vmCtx, "PI", ds::PI);
vm_add_variable(_vmCtx, "TWO_PI", ds::TWO_PI);
}
ExpressionManager::~ExpressionManager() {
vm_destroy_context(_v... | 26.275 | 74 | 0.725975 |
ea6c81c35e56716575c82f45d8960b1f546f0b36 | 6,855 | cc | C++ | src/camera/test/camera_streaming_test/camera_streaming_test.cc | winksaville/Fuchsia | a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f | [
"BSD-3-Clause"
] | 3 | 2020-08-02T04:46:18.000Z | 2020-08-07T10:10:53.000Z | src/camera/test/camera_streaming_test/camera_streaming_test.cc | winksaville/Fuchsia | a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f | [
"BSD-3-Clause"
] | null | null | null | src/camera/test/camera_streaming_test/camera_streaming_test.cc | winksaville/Fuchsia | a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f | [
"BSD-3-Clause"
] | 1 | 2020-08-07T10:11:49.000Z | 2020-08-07T10:11:49.000Z | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <button_checker.h>
#include <fcntl.h>
#include <fuchsia/camera/test/cpp/fidl.h>
#include <fuchsia/camera2/cpp/fidl.h>
#include <lib/devmgr-integra... | 38.083333 | 98 | 0.677316 |
ea6cef86f165de40ad583269f5207fea3ec23482 | 1,419 | cpp | C++ | c++/leetcode/0909-Snakes_and_Ladders-M.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | 1 | 2020-03-02T10:56:22.000Z | 2020-03-02T10:56:22.000Z | c++/leetcode/0909-Snakes_and_Ladders-M.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | c++/leetcode/0909-Snakes_and_Ladders-M.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | // 909 Snakes and Ladders
// https://leetcode.com/problems/snakes-and-ladders
// version: 1; create time: 2020-01-12 11:30:15;
class Solution {
public:
int snakesAndLadders(vector<vector<int>>& board) {
const int m = board.size();
if (m == 0) return -1;
const int n = board.size();
i... | 31.533333 | 81 | 0.41649 |
ea6f5953820a8adb5dc11604f040d6b41a602292 | 2,649 | hpp | C++ | libvast/vast/access.hpp | ngrodzitski/vast | 5d114f53d51db8558f673c7f873bd92ded630bf6 | [
"BSD-3-Clause"
] | null | null | null | libvast/vast/access.hpp | ngrodzitski/vast | 5d114f53d51db8558f673c7f873bd92ded630bf6 | [
"BSD-3-Clause"
] | 1 | 2019-11-29T12:43:41.000Z | 2019-11-29T12:43:41.000Z | libvast/vast/access.hpp | ngrodzitski/vast | 5d114f53d51db8558f673c7f873bd92ded630bf6 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... | 29.433333 | 80 | 0.563609 |
ea7525f81d1d57b3a558ed62d3f5d00b2818ae70 | 2,762 | cpp | C++ | src/Thread.cpp | TheDSCPL/SSRE_2017-2018_group8 | 10a74266fbd9fcdb9a2898427096d80f6430b75e | [
"MIT"
] | null | null | null | src/Thread.cpp | TheDSCPL/SSRE_2017-2018_group8 | 10a74266fbd9fcdb9a2898427096d80f6430b75e | [
"MIT"
] | null | null | null | src/Thread.cpp | TheDSCPL/SSRE_2017-2018_group8 | 10a74266fbd9fcdb9a2898427096d80f6430b75e | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <chrono>
#include <thread>
#include <iostream>
#include <sys/time.h>
#include <string.h>
#include "../headers/Thread.hpp"
using namespace std;
Mutex::Mutex() : mutex(PTHREAD_MUTEX_INITIALIZER) {}
void Mutex::lock() {
pthread_mutex_lock(&mutex);
}
void Mutex::unlock() {
pthread_m... | 22.826446 | 107 | 0.636495 |
ea79d231215bf13d87c39807706844b823687db7 | 15,937 | cpp | C++ | server/http.cpp | lzxjack/chat-room | dc00c458045f4343738536ff0bf4e0cc1f70e733 | [
"MIT"
] | 5 | 2021-05-25T09:09:03.000Z | 2021-11-15T11:43:58.000Z | server/http.cpp | lzxjack/chat-room | dc00c458045f4343738536ff0bf4e0cc1f70e733 | [
"MIT"
] | null | null | null | server/http.cpp | lzxjack/chat-room | dc00c458045f4343738536ff0bf4e0cc1f70e733 | [
"MIT"
] | 2 | 2021-05-27T07:23:56.000Z | 2021-08-23T02:11:49.000Z | #include"http.h"
http::http(){
std::cout<<"http is created!"<<std::endl;
}
http::~http(){
}
/*
报文的请求方法解析,成功返回请求方法,失败返回nullptr;
*/
char* http::http_Request_method(char in_str[],char out_str[]){//数组不能引用
int len=0;
for(len=0;len<10;++len){
if(in_str[len]!=' '){
out_str[len]=in_str[len]... | 35.181015 | 98 | 0.491749 |
ea7a37cc9433bda075599a80bb98df3466fa4f70 | 5,403 | cc | C++ | xrtl/testing/diffing/diff_provider.cc | google/xrtl | 8cf0e7cd67371297149bda8e62d03b8c1e2e2dfe | [
"Apache-2.0"
] | 132 | 2017-03-30T03:26:57.000Z | 2021-11-18T09:18:04.000Z | xrtl/testing/diffing/diff_provider.cc | google/xrtl | 8cf0e7cd67371297149bda8e62d03b8c1e2e2dfe | [
"Apache-2.0"
] | 36 | 2017-04-02T22:57:53.000Z | 2018-06-27T04:20:30.000Z | xrtl/testing/diffing/diff_provider.cc | google/xrtl | 8cf0e7cd67371297149bda8e62d03b8c1e2e2dfe | [
"Apache-2.0"
] | 24 | 2017-04-09T12:48:13.000Z | 2021-10-20T02:20:07.000Z | // Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 39.727941 | 80 | 0.661484 |
ea7d8672f124302266848020fc28e0ef2e9c3c59 | 8,997 | cpp | C++ | ScriptHookDotNet/SettingsFile.cpp | HazardX/gta4_scripthookdotnet | 927b2830952664b63415234541a6c83592e53679 | [
"MIT"
] | 3 | 2021-11-14T20:59:58.000Z | 2021-12-16T16:41:31.000Z | ScriptHookDotNet/SettingsFile.cpp | HazardX/gta4_scripthookdotnet | 927b2830952664b63415234541a6c83592e53679 | [
"MIT"
] | 2 | 2021-11-29T14:41:23.000Z | 2021-11-30T13:13:51.000Z | ScriptHookDotNet/SettingsFile.cpp | HazardX/gta4_scripthookdotnet | 927b2830952664b63415234541a6c83592e53679 | [
"MIT"
] | 3 | 2021-11-21T12:41:55.000Z | 2021-12-22T16:17:52.000Z | /*
* Copyright (c) 2009-2011 Hazard (hazard_x@gmx.net / twitter.com/HazardX)
*
* 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
* ... | 35.702381 | 143 | 0.691342 |
ea7dd9dd3c1b7ac86e0cdb252dae94f7ac696cb1 | 311 | cpp | C++ | aql/benchmark/lib_62/class_2.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/benchmark/lib_62/class_2.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/benchmark/lib_62/class_2.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | #include "class_2.h"
#include "class_1.h"
#include "class_3.h"
#include "class_0.h"
#include "class_4.h"
#include "class_6.h"
#include <lib_47/class_0.h>
#include <lib_1/class_6.h>
#include <lib_11/class_4.h>
#include <lib_54/class_5.h>
#include <lib_47/class_7.h>
class_2::class_2() {}
class_2::~class_2() {}
| 20.733333 | 27 | 0.713826 |
ea80e7c266e18e5c6edc47648b5ddc46e50938b5 | 740 | cpp | C++ | 1697_hide_and_seek.cpp | harrydrippin/baekjoon | 4ee6b6796d9dece8860e777b38cf90c2c6b13132 | [
"MIT"
] | null | null | null | 1697_hide_and_seek.cpp | harrydrippin/baekjoon | 4ee6b6796d9dece8860e777b38cf90c2c6b13132 | [
"MIT"
] | null | null | null | 1697_hide_and_seek.cpp | harrydrippin/baekjoon | 4ee6b6796d9dece8860e777b38cf90c2c6b13132 | [
"MIT"
] | 1 | 2020-07-25T07:41:12.000Z | 2020-07-25T07:41:12.000Z | #include <iostream>
#include <queue>
using namespace std;
int main() {
int m[100001];
fill_n(m, 100001, 100002);
int n, k;
cin >> n >> k;
m[n] = 0;
queue<int> q;
q.push(n);
while (!q.empty()) {
int cur = q.front();
q.pop();
if (cur + 1 < 100001 && m[cur + 1] ... | 19.473684 | 74 | 0.366216 |
ea84617d10d67475381a3078add0ceff0b390d4d | 141 | cpp | C++ | Tutorial PNG/Tutorial PNG/DemoApp/main.cpp | 0lidaxiang/openGL_homework | 895620aad85d750ba9c78ea54fb4ab8bd69bf187 | [
"MIT"
] | 1 | 2017-02-04T03:08:40.000Z | 2017-02-04T03:08:40.000Z | Tutorial PNG/Tutorial PNG/DemoApp/main.cpp | 0lidaxiang/openGL_homework | 895620aad85d750ba9c78ea54fb4ab8bd69bf187 | [
"MIT"
] | null | null | null | Tutorial PNG/Tutorial PNG/DemoApp/main.cpp | 0lidaxiang/openGL_homework | 895620aad85d750ba9c78ea54fb4ab8bd69bf187 | [
"MIT"
] | null | null | null | #include "DemoApp.h"
int main(int *arg, char **argv)
{
DempApp app;
std::cout<<"Enter: Screen Shot"<<std::endl;
app.Start();
return 0;
} | 15.666667 | 44 | 0.638298 |
ea87fcf473d7ffc76b62a509b1dc7059f92b7edf | 640 | cpp | C++ | competitive programming/codeforces/486A - Calculating Function.cpp | sureshmangs/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 16 | 2020-06-02T19:22:45.000Z | 2022-02-05T10:35:28.000Z | competitive programming/codeforces/486A - Calculating Function.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | null | null | null | competitive programming/codeforces/486A - Calculating Function.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 2 | 2020-08-27T17:40:06.000Z | 2022-02-05T10:33:52.000Z | /*
For a positive integer n let's define a function f:
f(n)?=??-?1?+?2?-?3?+?..?+?(?-?1)nn
Your task is to calculate f(n) for a given integer n.
Input
The single line contains the positive integer n (1?=?n?=?1015).
Output
Print f(n) in a single line.
Examples
inputCopy
4
outputCopy
2
inputCopy
5
outputCopy
-3
Note... | 13.061224 | 63 | 0.551563 |
ea881b2fdd8f30bd40268d30f48545131c5d8ad1 | 19,128 | cpp | C++ | LibCarla/source/carla/rss/RssCheck.cpp | youngsend/carla | c918f4b73b6b845dc66ccf3ffe3f011e800607ec | [
"MIT"
] | 103 | 2020-03-10T04:21:50.000Z | 2022-03-29T13:26:57.000Z | LibCarla/source/carla/rss/RssCheck.cpp | 630156145/carla | b9fbbf7fd03ee2a4f3a7baf4343a28381cfe81ef | [
"MIT"
] | 12 | 2020-04-11T11:36:01.000Z | 2021-12-09T11:35:56.000Z | LibCarla/source/carla/rss/RssCheck.cpp | 630156145/carla | b9fbbf7fd03ee2a4f3a7baf4343a28381cfe81ef | [
"MIT"
] | 8 | 2020-11-21T07:47:12.000Z | 2022-03-25T13:41:05.000Z | // Copyright (c) 2019 Intel Corporation
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#include "carla/rss/RssCheck.h"
#include "carla/client/Map.h"
#include "carla/client/Vehicle.h"
#include "carla/client/Waypoint.h"
#include "carla/road/elem... | 41.04721 | 115 | 0.672261 |
ea88234b0e97b18027441b56582f5a64b831d84b | 295 | cpp | C++ | CPP files/win.cpp | jjang32/RPS | 2ce861f461f440ac9fadfbb7a1d3676d3c8a9f42 | [
"MIT"
] | null | null | null | CPP files/win.cpp | jjang32/RPS | 2ce861f461f440ac9fadfbb7a1d3676d3c8a9f42 | [
"MIT"
] | null | null | null | CPP files/win.cpp | jjang32/RPS | 2ce861f461f440ac9fadfbb7a1d3676d3c8a9f42 | [
"MIT"
] | null | null | null | #include "win.h"
#include "ui_win.h"
#include "mainwindow.h"
Win::Win(QWidget *parent) :
QDialog(parent),
ui(new Ui::Win)
{
ui->setupUi(this);
}
Win::~Win()
{
delete ui;
}
void Win::on_retry_clicked()
{
MainWindow *mainwindow = new MainWindow();
mainwindow->show();
}
| 13.409091 | 46 | 0.616949 |
ea88af00d49222b327902c88695f517acf477c1c | 956 | cpp | C++ | SDIDoc.cpp | chrisoldwood/WCL | 608a83f9e41f4c1d2a7ac6991abbcf264d5924e0 | [
"MIT"
] | 5 | 2017-10-02T04:10:35.000Z | 2021-07-26T04:45:35.000Z | SDIDoc.cpp | chrisoldwood/WCL | 608a83f9e41f4c1d2a7ac6991abbcf264d5924e0 | [
"MIT"
] | null | null | null | SDIDoc.cpp | chrisoldwood/WCL | 608a83f9e41f4c1d2a7ac6991abbcf264d5924e0 | [
"MIT"
] | null | null | null | /******************************************************************************
** (C) Chris Oldwood
**
** MODULE: SDIDOC.CPP
** COMPONENT: Windows C++ Library.
** DESCRIPTION: CSDIDoc class definition.
**
*******************************************************************************
*/
#include "Common.hpp"
#includ... | 20.340426 | 79 | 0.303347 |
ea8d52382b0b5936a612770af237ad24a8b2b2be | 8,899 | cpp | C++ | src/dpp/dispatcher.cpp | luizstudios/DPP | ea546cd10a06a23b62d1667c26a909cd59ca6100 | [
"Apache-2.0"
] | null | null | null | src/dpp/dispatcher.cpp | luizstudios/DPP | ea546cd10a06a23b62d1667c26a909cd59ca6100 | [
"Apache-2.0"
] | null | null | null | src/dpp/dispatcher.cpp | luizstudios/DPP | ea546cd10a06a23b62d1667c26a909cd59ca6100 | [
"Apache-2.0"
] | 1 | 2021-09-26T18:36:18.000Z | 2021-09-26T18:36:18.000Z | /************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* Licensed under the Apache License, Version 2.0 (the "License... | 32.126354 | 144 | 0.766041 |
ea8e774c6d9ee684545b00450bf4bca5662de336 | 2,010 | hpp | C++ | include/vcd/test/header.hpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | 1 | 2019-04-30T17:56:23.000Z | 2019-04-30T17:56:23.000Z | include/vcd/test/header.hpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | null | null | null | include/vcd/test/header.hpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | 4 | 2018-08-01T08:32:00.000Z | 2019-12-18T06:34:33.000Z | // ============================================================================
// Copyright 2018 Paul le Roux and Calvin Maree
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code ... | 40.2 | 79 | 0.706965 |
ea8f7fce46d40f6ac8156642a026a6bcefcc8d04 | 1,686 | cpp | C++ | server.cpp | cadet-007/Mytorrent-basic-peer2peer-file-sharing-system | b5c29b8fc9e58d6fd1d0485f5d50055f396e9686 | [
"Apache-2.0"
] | null | null | null | server.cpp | cadet-007/Mytorrent-basic-peer2peer-file-sharing-system | b5c29b8fc9e58d6fd1d0485f5d50055f396e9686 | [
"Apache-2.0"
] | null | null | null | server.cpp | cadet-007/Mytorrent-basic-peer2peer-file-sharing-system | b5c29b8fc9e58d6fd1d0485f5d50055f396e9686 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/socket.h>
#include<netinet/in.h>
using namespace std;
void error(const char *msg)
{
perror(msg);
exit(1);
}
int main(int argc,char *argv[])
{
if(argc<2)
{
cout<<"Po... | 20.814815 | 70 | 0.565243 |
ea942c5357bd877b134b4d92e147782588e3f3c6 | 5,051 | cpp | C++ | source/smeardeformer/SmearHistory.cpp | youdiaozi/c4d-nr-toolbox | ca6c5f737c901e2f74aeb0bc7aa477387d1a5cd6 | [
"BSD-3-Clause"
] | 16 | 2018-09-12T10:38:26.000Z | 2021-06-28T22:57:30.000Z | source/smeardeformer/SmearHistory.cpp | youdiaozi/c4d-nr-toolbox | ca6c5f737c901e2f74aeb0bc7aa477387d1a5cd6 | [
"BSD-3-Clause"
] | 10 | 2018-09-11T17:20:09.000Z | 2020-06-02T04:11:01.000Z | source/smeardeformer/SmearHistory.cpp | NiklasRosenstein/c4d-nr-toolbox | 28197ea7fcf396b5941277b049168d7faf00bfbf | [
"BSD-3-Clause"
] | 6 | 2018-11-30T23:34:49.000Z | 2021-04-02T15:03:23.000Z | /**
* Copyright (C) 2013, Niklas Rosenstein
* All rights reserved.
*
* SmearHistory.cpp
*/
#include "SmearHistory.h"
#include "nrUtils/Memory.h"
#include "nrUtils/Normals.h"
using namespace nr::memory;
Bool SmearState::Resize(Int32 count) {
Bool success = true;
success = success && Realloc<Vector>(orig... | 27.302703 | 84 | 0.627005 |
ea95e1ac0c66d504220f720ff6bdbb4f53d8f4e0 | 1,290 | cpp | C++ | DFS/RangeSumBST.cpp | karan2808/Cpp | 595f536e33505c5fd079b709d6370bf888043fb3 | [
"MIT"
] | 1 | 2021-01-31T03:43:59.000Z | 2021-01-31T03:43:59.000Z | DFS/RangeSumBST.cpp | karan2808/Cpp | 595f536e33505c5fd079b709d6370bf888043fb3 | [
"MIT"
] | null | null | null | DFS/RangeSumBST.cpp | karan2808/Cpp | 595f536e33505c5fd079b709d6370bf888043fb3 | [
"MIT"
] | 1 | 2021-01-25T14:27:08.000Z | 2021-01-25T14:27:08.000Z | #include <iostream>
using namespace std;
struct TreeNode
{
int val;
TreeNode *left;
TreeNode *right;
TreeNode()
{
val = 0;
left = nullptr;
right = nullptr;
}
TreeNode(int x)
{
val = x;
left = nullptr;
right = nullptr;
}
TreeNode(i... | 22.631579 | 100 | 0.542636 |
ea9635dcef6773bb10aa9d56672b48364e959e6e | 939 | cpp | C++ | old/src/riscv/Value.cpp | ClasSun9/riscv-dynamic-taint-analysis | 8a96f5ea8d07580315253dc074f60955fc633da9 | [
"MIT"
] | null | null | null | old/src/riscv/Value.cpp | ClasSun9/riscv-dynamic-taint-analysis | 8a96f5ea8d07580315253dc074f60955fc633da9 | [
"MIT"
] | null | null | null | old/src/riscv/Value.cpp | ClasSun9/riscv-dynamic-taint-analysis | 8a96f5ea8d07580315253dc074f60955fc633da9 | [
"MIT"
] | null | null | null | # include "Value.hpp"
namespace riscv {
int8_t SignedValue::As8() {
return static_cast<int8_t>(_value);
}
int16_t SignedValue::As16() {
return static_cast<int16_t>(_value);
}
int32_t SignedValue::As32() {
return static_cast<int32_t>(_value);
}
int64_t SignedValue::As64() {
return _value;
}
SignedV... | 18.411765 | 64 | 0.7082 |
ea9ade0c56314e1bfda94a363688fb429a691edd | 10,578 | cc | C++ | centreon-engine/src/configuration/hostextinfo.cc | centreon/centreon-collect | e63fc4d888a120d588a93169e7d36b360616bdee | [
"Unlicense"
] | 8 | 2020-07-26T09:12:02.000Z | 2022-03-30T17:24:29.000Z | centreon-engine/src/configuration/hostextinfo.cc | centreon/centreon-collect | e63fc4d888a120d588a93169e7d36b360616bdee | [
"Unlicense"
] | 47 | 2020-06-18T12:11:37.000Z | 2022-03-16T10:28:56.000Z | centreon-engine/src/configuration/hostextinfo.cc | centreon/centreon-collect | e63fc4d888a120d588a93169e7d36b360616bdee | [
"Unlicense"
] | 5 | 2020-06-29T14:22:02.000Z | 2022-03-17T10:34:10.000Z | /*
** Copyright 2011-2013 Merethis
**
** This file is part of Centreon Engine.
**
** Centreon Engine is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Engine is distributed in the hope... | 23.878104 | 79 | 0.668179 |
ea9d4310af354771c1c8338250f75c367b6b6e32 | 33,490 | hpp | C++ | include/lfd/GenericDescriptor.hpp | waterben/LineExtraction | d247de45417a1512a3bf5d0ffcd630d40ffb8798 | [
"MIT"
] | 1 | 2020-06-12T13:30:56.000Z | 2020-06-12T13:30:56.000Z | include/lfd/GenericDescriptor.hpp | waterben/LineExtraction | d247de45417a1512a3bf5d0ffcd630d40ffb8798 | [
"MIT"
] | null | null | null | include/lfd/GenericDescriptor.hpp | waterben/LineExtraction | d247de45417a1512a3bf5d0ffcd630d40ffb8798 | [
"MIT"
] | null | null | null | /*M///////////////////////////////////////////////////////////////////////////////////////
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | 40.742092 | 212 | 0.478173 |
eaa157c6d083c996a9d2b3fc57a64871f43db283 | 15,614 | cpp | C++ | projects/atLib/source/IO/Mesh/atFBXReader.cpp | mbatc/atLib | 7e3a69515f504a05a312d234291f02863e291631 | [
"MIT"
] | 1 | 2019-09-17T18:02:16.000Z | 2019-09-17T18:02:16.000Z | projects/atLib/source/IO/Mesh/atFBXReader.cpp | mbatc/atLib | 7e3a69515f504a05a312d234291f02863e291631 | [
"MIT"
] | null | null | null | projects/atLib/source/IO/Mesh/atFBXReader.cpp | mbatc/atLib | 7e3a69515f504a05a312d234291f02863e291631 | [
"MIT"
] | null | null | null | #include "atFBXParser.h"
#include "atFBXCommon.h"
#include "atHashMap.h"
struct _atFbxParseContext
{
atMesh *pMesh;
// Node ptr to bone index
atHashMap<int64_t, int64_t> boneLookup;
int64_t poseID = -1; // ID of the active pos
};
FbxAMatrix _GetGeometry(FbxNode *pNode)
{
FbxDouble3 pivotTrans = pNode->GetG... | 35.486364 | 207 | 0.723389 |
eaa35451e1076cf3995c60c038e843d3042dd589 | 5,278 | inl | C++ | TwitchQt/twitchvideoreply.inl | jkbz64/TwitchQt | 9bfddd9b48eea9eb25ae5f05239c0739c0bdfb12 | [
"MIT"
] | 9 | 2019-09-16T22:28:43.000Z | 2022-03-06T22:57:56.000Z | TwitchQt/twitchvideoreply.inl | jkbz64/TwitchQt | 9bfddd9b48eea9eb25ae5f05239c0739c0bdfb12 | [
"MIT"
] | 5 | 2020-10-11T15:01:09.000Z | 2021-10-11T05:39:28.000Z | TwitchQt/twitchvideoreply.inl | jkbz64/TwitchQt | 9bfddd9b48eea9eb25ae5f05239c0739c0bdfb12 | [
"MIT"
] | 2 | 2020-10-11T14:38:24.000Z | 2020-10-11T14:45:34.000Z |
inline void VideoReply::parseData(const JSON& json)
{
if (json.find("data") != json.end()) {
const auto& data = json["data"];
if (!data.empty()) {
const auto& video = data.front();
QList<MutedSegment> mutedSegmentsList;
if (video.find("muted_segments") != video.... | 41.559055 | 82 | 0.448844 |
eaa463011f86ef63641021cc9893c2f867c3b735 | 140 | cpp | C++ | synthesizer/lang/macro/lowercase.cpp | SleepyToDeath/NetQRE | 0176a31afa45faa4877974a4a0575a4e60534090 | [
"MIT"
] | 2 | 2021-03-30T15:25:44.000Z | 2021-05-14T07:22:25.000Z | synthesizer/lang/macro/lowercase.cpp | SleepyToDeath/NetQRE | 0176a31afa45faa4877974a4a0575a4e60534090 | [
"MIT"
] | null | null | null | synthesizer/lang/macro/lowercase.cpp | SleepyToDeath/NetQRE | 0176a31afa45faa4877974a4a0575a4e60534090 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
for (char c='a'; c<='z'; c++)
cout<<"[ \""<<c<<"\" ], ";
cout<<"[ \"\\c\" ]";
}
| 12.727273 | 30 | 0.435714 |
eaa6a10f28cdaef13cf59c82ed744c420fb4370d | 2,535 | cpp | C++ | Area.cpp | irrollforwardable/ascii_game_draft | e3658ed886aa944cf65ce2a9d742f39504028439 | [
"MIT"
] | null | null | null | Area.cpp | irrollforwardable/ascii_game_draft | e3658ed886aa944cf65ce2a9d742f39504028439 | [
"MIT"
] | null | null | null | Area.cpp | irrollforwardable/ascii_game_draft | e3658ed886aa944cf65ce2a9d742f39504028439 | [
"MIT"
] | null | null | null | #include "Area.h"
Area::Area(const std::string& t_Source)
{
// TODO calculate width and height from t_Source
m_W = 25;
m_H = 10;
// Resize 2D grid accordingly
m_Parts.resize(m_W);
for (size_t x = 0; x < m_Parts.size(); x++)
{
m_Parts[x].resize(m_H);
}
// TODO Generate Whol... | 26.40625 | 116 | 0.530572 |
eaa70dd8d8b82f080b7e5fdcd4f02e19749a841e | 10,254 | cpp | C++ | Framework/Util/Thread.cpp | dengwenyi88/Deferred_Lighting | b45b6590150a3119b0c2365f4795d93b3b4f0748 | [
"MIT"
] | 110 | 2017-06-23T17:12:28.000Z | 2022-02-22T19:11:38.000Z | RunTest/Framework3/Util/Thread.cpp | dtrebilco/ECSAtto | 86a04f0bdc521c79f758df94250c1898c39213c8 | [
"MIT"
] | null | null | null | RunTest/Framework3/Util/Thread.cpp | dtrebilco/ECSAtto | 86a04f0bdc521c79f758df94250c1898c39213c8 | [
"MIT"
] | 3 | 2018-02-12T00:16:18.000Z | 2018-02-18T11:12:35.000Z |
/* * * * * * * * * * * * * Author's note * * * * * * * * * * * *\
* _ _ _ _ _ _ _ _ _ _ _ _ *
* |_| |_| |_| |_| |_|_ _|_| |_| |_| _|_|_|_|_| *
* |_|_ _ _|_| |_| |_| |_|_|_|_|_| |_| |_| |_|_ _ _ *
* |_|_|_|_|_| |_| |_| |_| |_| |_| |_| |_| |_... | 25.444169 | 108 | 0.676712 |
eaa7ce23241ef9d19e386ea6aaeb0caa567a66d4 | 231 | cpp | C++ | test/llvm_test_code/call_graphs/global_ctor_dtor_4.cpp | ga0/phasar | b9ecb9a1f0353501376021fab67057a713fa70dc | [
"MIT"
] | 581 | 2018-06-10T10:37:55.000Z | 2022-03-30T14:56:53.000Z | test/llvm_test_code/call_graphs/global_ctor_dtor_4.cpp | meret-boe/phasar | 2b394d5611b107e4fd3d8eec37f26abca8ef1e9a | [
"MIT"
] | 172 | 2018-06-13T12:33:26.000Z | 2022-03-26T07:21:41.000Z | test/llvm_test_code/call_graphs/global_ctor_dtor_4.cpp | meret-boe/phasar | 2b394d5611b107e4fd3d8eec37f26abca8ef1e9a | [
"MIT"
] | 137 | 2018-06-10T10:31:14.000Z | 2022-03-06T11:53:56.000Z | __attribute__((constructor)) void before_main();
__attribute__((destructor)) void after_main();
void before_main() {}
void after_main() {}
struct S {
int data;
S(int data) : data(data) {}
~S() {}
};
S s(0);
int main() {}
| 14.4375 | 48 | 0.632035 |
eaabbda163a454e1416e67830d8336efb40a3bad | 1,476 | cpp | C++ | VC2010Samples/MFC/Visual C++ 2008 Feature Pack/RollupPane/InfoBar.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2010Samples/MFC/Visual C++ 2008 Feature Pack/RollupPane/InfoBar.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2010Samples/MFC/Visual C++ 2008 Feature Pack/RollupPane/InfoBar.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | // This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sourc... | 23.428571 | 77 | 0.667344 |
eaad671f1b22cc1c7ff643fabefdcc78702fd9d4 | 852 | cpp | C++ | codeforces/354/C/test.cpp | rdragos/work | aed4c9ace3fad6b0c63caadee69de2abde108b40 | [
"MIT"
] | 2 | 2020-05-30T17:11:47.000Z | 2021-09-25T08:16:48.000Z | codeforces/354/C/test.cpp | rdragos/work | aed4c9ace3fad6b0c63caadee69de2abde108b40 | [
"MIT"
] | null | null | null | codeforces/354/C/test.cpp | rdragos/work | aed4c9ace3fad6b0c63caadee69de2abde108b40 | [
"MIT"
] | 1 | 2021-09-24T11:14:27.000Z | 2021-09-24T11:14:27.000Z | #include <cstdio>
#include <algorithm>
#include <fstream>
#include <iostream>
#include <vector>
#include <queue>
#include <map>
#include <cstring>
#include <string>
#include <set>
#include <stack>
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define ll long long
using namespace std;
int... | 16.384615 | 46 | 0.539906 |
eaaee55d560d16a2957b2c5fb53f02afae059dec | 2,406 | cpp | C++ | src/zmqConsumerPoll.cpp | tompatman/zmqplus | efea491f2e9ca8f531ec7e102564fb56b1d62e0f | [
"MIT"
] | null | null | null | src/zmqConsumerPoll.cpp | tompatman/zmqplus | efea491f2e9ca8f531ec7e102564fb56b1d62e0f | [
"MIT"
] | null | null | null | src/zmqConsumerPoll.cpp | tompatman/zmqplus | efea491f2e9ca8f531ec7e102564fb56b1d62e0f | [
"MIT"
] | null | null | null | /*
* zmqConsumerPoll.cpp
*
* Created on: May 31, 2013
* Author: service
*/
#include "../include/zmqConsumerPoll.h"
using std::string;
zmqConsumerPoll::zmqConsumerPoll(ppcLogger *log, uint num_consumers_to_poll, int timeout_ms)
: _log(log)
, _num_consumers(num_consumers_to_poll)
, _timeout_ms(timeout_ms)
{... | 23.588235 | 112 | 0.620116 |
eaaf2f4745d98ff1b2d861e75db041301a3a0122 | 2,341 | cpp | C++ | midterm_mbghazi.cpp | mbghazi/Data-Structures | 4703488686d2a78267fcd5a6adcbeda36ac10703 | [
"MIT"
] | null | null | null | midterm_mbghazi.cpp | mbghazi/Data-Structures | 4703488686d2a78267fcd5a6adcbeda36ac10703 | [
"MIT"
] | null | null | null | midterm_mbghazi.cpp | mbghazi/Data-Structures | 4703488686d2a78267fcd5a6adcbeda36ac10703 | [
"MIT"
] | null | null | null | /*
** PROGRAM: Matrix Multiply
**
** PURPOSE: This is a simple matrix multiply program.
** It will compute the product
**
** C = A * B
**
** A and B are set to constant matrices so we
** can make a quick test of the multiplication.
**
** USAGE: Right now, I hardwire t... | 22.509615 | 86 | 0.564289 |
eab068770436f9db993275b1ce35ad8d8dba1c8d | 1,444 | cc | C++ | src/boson/test/queues_weakrb.cc | duckie/boson | f3eb787f385c86b7735fcd7bc0ac0dc6a8fb7b1a | [
"MIT"
] | 174 | 2016-10-10T12:47:01.000Z | 2022-03-09T16:06:59.000Z | src/boson/test/queues_weakrb.cc | duckie/boson | f3eb787f385c86b7735fcd7bc0ac0dc6a8fb7b1a | [
"MIT"
] | 5 | 2017-02-01T21:30:14.000Z | 2018-09-09T10:02:00.000Z | src/boson/test/queues_weakrb.cc | duckie/boson | f3eb787f385c86b7735fcd7bc0ac0dc6a8fb7b1a | [
"MIT"
] | 13 | 2016-10-10T12:19:14.000Z | 2021-12-04T08:23:26.000Z | #include <iostream>
#include <limits>
#include <random>
#include <thread>
#include "boson/queues/weakrb.h"
#include "catch.hpp"
TEST_CASE("Queues - WeakRB - serial random integers", "[queues][weakrb]") {
constexpr size_t const sample_size = 1e4;
std::random_device seed;
std::mt19937_64 generator{seed()};
std:... | 25.333333 | 83 | 0.605956 |
eab334692c7e899abd7ef97fc35637752d552cba | 64,611 | cpp | C++ | src/slg/film/film.cpp | DavidBluecame/LuxRays | be0f5228b8b65268278a6c6a1c98564ebdc27c05 | [
"Apache-2.0"
] | null | null | null | src/slg/film/film.cpp | DavidBluecame/LuxRays | be0f5228b8b65268278a6c6a1c98564ebdc27c05 | [
"Apache-2.0"
] | null | null | null | src/slg/film/film.cpp | DavidBluecame/LuxRays | be0f5228b8b65268278a6c6a1c98564ebdc27c05 | [
"Apache-2.0"
] | null | null | null | /***************************************************************************
* Copyright 1998-2015 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxRender. *
* ... | 33.339009 | 136 | 0.693148 |
eab95df009eeed45149bf914d5a1f84f0370f35c | 934 | cpp | C++ | src/071.simplify_path/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2016-07-02T17:44:10.000Z | 2016-07-02T17:44:10.000Z | src/071.simplify_path/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | null | null | null | src/071.simplify_path/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2019-12-21T04:57:15.000Z | 2019-12-21T04:57:15.000Z | class Solution {
public:
string simplifyPath(string path) {
stack<string> s;
string ans;
int len = path.length();
if (len == 0) return ans;
int start, end;
for (int i = 0; i < len; i++) {
if (i > 0 && path[i] != '/' && path[i - 1] == '/') {
... | 28.30303 | 92 | 0.313704 |
eab9870e3fd5d0d35a46824b7c7a469cf4a9f334 | 362 | cpp | C++ | array/Kth Row of Pascal's Triangle.cpp | 1aman1/practice-InterviewBit | cafb841bd57f74f8fc3690a7f7830e6ca9fda916 | [
"MIT"
] | 1 | 2019-08-14T05:46:57.000Z | 2019-08-14T05:46:57.000Z | array/Kth Row of Pascal's Triangle.cpp | 1aman1/practice | cafb841bd57f74f8fc3690a7f7830e6ca9fda916 | [
"MIT"
] | null | null | null | array/Kth Row of Pascal's Triangle.cpp | 1aman1/practice | cafb841bd57f74f8fc3690a7f7830e6ca9fda916 | [
"MIT"
] | null | null | null | /*
A0-> 1
A1-> 1 1
A2-> 1 2 1
A3-> 1 3 3 1
for A, pascal triangle will have A+1 elements
*/
vector<int> Solution::getRow(int A) {
vector<int> result;
int value = 1, index;
for( index = 0; index <= A ; index++){
result.push_back(value);
value = value * (A - index)/(i... | 21.294118 | 52 | 0.508287 |
eab9ea26b789a8deb87fcc31f169ada82a197dc8 | 44,492 | cpp | C++ | core/sql/parser/StmtDDLNode.cpp | sandhyasun/trafodion | db1a8a73b7b3b4767d5dec60ae091df891cfceee | [
"Apache-2.0"
] | null | null | null | core/sql/parser/StmtDDLNode.cpp | sandhyasun/trafodion | db1a8a73b7b3b4767d5dec60ae091df891cfceee | [
"Apache-2.0"
] | null | null | null | core/sql/parser/StmtDDLNode.cpp | sandhyasun/trafodion | db1a8a73b7b3b4767d5dec60ae091df891cfceee | [
"Apache-2.0"
] | null | null | null | /* -*-C++-*-
// @@@ START COPYRIGHT @@@
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache Licen... | 24.540541 | 126 | 0.634384 |
eabc05816776c1a659881280881d2cda272183b6 | 5,497 | cpp | C++ | STM32_Resources/Default/NES/mapper/083.cpp | Shuzhengz/Projects-Code | 1b9608004a682b1da4e31f3160736e5b2c52fb33 | [
"MIT"
] | 14 | 2019-01-14T08:16:55.000Z | 2021-06-14T11:56:56.000Z | STM32_Resources/Default/NES/mapper/083.cpp | Shuzhengz/Projects-Code | 1b9608004a682b1da4e31f3160736e5b2c52fb33 | [
"MIT"
] | null | null | null | STM32_Resources/Default/NES/mapper/083.cpp | Shuzhengz/Projects-Code | 1b9608004a682b1da4e31f3160736e5b2c52fb33 | [
"MIT"
] | 4 | 2019-01-14T08:16:32.000Z | 2021-12-05T05:53:06.000Z |
/////////////////////////////////////////////////////////////////////
// Mapper 83
void NES_mapper83::Reset()
{
regs[0] = regs[1] = regs[2] = 0;
// set CPU bank pointers
if(num_8k_ROM_banks >= 32)
{
set_CPU_banks(0,1,30,31);
regs[1] = 0x30;
}
else
{
set_CPU_banks(0,1,num_8k_ROM_banks-2,num_8... | 20.588015 | 69 | 0.433873 |
eabef1dd8733d3b75f83cffbbeb0509d369503f5 | 103 | cpp | C++ | addresslab.cpp | CaQtiml/CaQ-s-NOOB-LAB | a6cd2a730f2b2e6a834b1b39521052c5125150b5 | [
"MIT"
] | null | null | null | addresslab.cpp | CaQtiml/CaQ-s-NOOB-LAB | a6cd2a730f2b2e6a834b1b39521052c5125150b5 | [
"MIT"
] | null | null | null | addresslab.cpp | CaQtiml/CaQ-s-NOOB-LAB | a6cd2a730f2b2e6a834b1b39521052c5125150b5 | [
"MIT"
] | null | null | null | #include "stdio.h"
int main()
{
int b=8;
int &a=b;
printf("%d",a);
b+=2;
printf("%d",a);
} | 11.444444 | 19 | 0.466019 |
eac4248c774fa43b3fac2efa59431b406736dfbb | 8,112 | cpp | C++ | aws-cpp-sdk-securityhub/source/model/AwsEc2VpcEndpointServiceDetails.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-securityhub/source/model/AwsEc2VpcEndpointServiceDetails.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-securityhub/source/model/AwsEc2VpcEndpointServiceDetails.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/securityhub/model/AwsEc2VpcEndpointServiceDetails.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
n... | 31.937008 | 158 | 0.784147 |
eac6d42b898df62950c863b4f09fa22c958e6892 | 1,974 | cpp | C++ | PnC/DracoPnC/DracoStateMachine/Initialize.cpp | BharathMasetty/PnC | 3800bd7e3c5dd5ffa00e6a5f09d48d21c405206f | [
"MIT"
] | null | null | null | PnC/DracoPnC/DracoStateMachine/Initialize.cpp | BharathMasetty/PnC | 3800bd7e3c5dd5ffa00e6a5f09d48d21c405206f | [
"MIT"
] | null | null | null | PnC/DracoPnC/DracoStateMachine/Initialize.cpp | BharathMasetty/PnC | 3800bd7e3c5dd5ffa00e6a5f09d48d21c405206f | [
"MIT"
] | null | null | null | #include <PnC/DracoPnC/DracoCtrlArchitecture/DracoCtrlArchitecture.hpp>
#include <PnC/DracoPnC/DracoStateMachine/Initialize.hpp>
Initialize::Initialize(const StateIdentifier state_identifier_in,
DracoControlArchitecture* _ctrl_arch,
RobotSystem* _robot)
: StateMachine(... | 31.333333 | 78 | 0.644883 |
ead1b640546a3846870ddb6afb1cc99741fe7a51 | 1,788 | cc | C++ | core/user.cc | DaYeSquad/worktiledemo | 1dd0a14255fc006824c896ea236120cd3ce32a6c | [
"MIT"
] | 36 | 2016-04-04T03:10:45.000Z | 2020-12-31T07:03:28.000Z | core/user.cc | DaYeSquad/worktiledemo | 1dd0a14255fc006824c896ea236120cd3ce32a6c | [
"MIT"
] | null | null | null | core/user.cc | DaYeSquad/worktiledemo | 1dd0a14255fc006824c896ea236120cd3ce32a6c | [
"MIT"
] | 6 | 2016-04-12T08:48:17.000Z | 2021-07-24T08:15:00.000Z | //
// user.cpp
// HelloWorktile
//
// Created by Frank Lin on 3/23/16.
// Copyright © 2016 Frank Lin. All rights reserved.
//
#include "user.h"
#include "json11/json11.hpp"
using std::string;
using std::unique_ptr;
NS_WTC_BEGIN
////////////////////////////////////////////////////////////////////////////////
//... | 25.183099 | 134 | 0.604586 |
ead37173e91c5524dd8f41d266b05b0590ff2d40 | 5,763 | cpp | C++ | emulator/src/mame/video/pcw.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/mame/video/pcw.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/mame/video/pcw.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:GPL-2.0+
// copyright-holders:Kevin Thacker
/***************************************************************************
pcw.c
Functions to emulate the video hardware of the Amstrad PCW.
***************************************************************************/
#include "emu.h"
#include "includes/p... | 30.654255 | 224 | 0.660246 |
ead3d66d94475c5d960d55fe1aeb92b8886dbad6 | 127 | hpp | C++ | KGE/Core/Audio/ComponentAudioClip.hpp | jkeywo/KGE | 5ad2619a4e205dd549cdf638854db356a80694ea | [
"MIT"
] | 1 | 2016-08-10T14:03:29.000Z | 2016-08-10T14:03:29.000Z | KGE/Core/Audio/ComponentAudioClip.hpp | jkeywo/KGE | 5ad2619a4e205dd549cdf638854db356a80694ea | [
"MIT"
] | null | null | null | KGE/Core/Audio/ComponentAudioClip.hpp | jkeywo/KGE | 5ad2619a4e205dd549cdf638854db356a80694ea | [
"MIT"
] | null | null | null | #pragma once
#include "Core/Components/Component.hpp"
namespace KGE
{
class ComponentAudioClip : public Component
{
};
}; | 11.545455 | 44 | 0.732283 |
ead4598d77cfe0fbd446e38a2eafd58c6ec87e49 | 4,866 | cc | C++ | training/mr_em_map_adapter.cc | agesmundo/FasterCubePruning | f80150140b5273fd1eb0dfb34bdd789c4cbd35e6 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | 1 | 2019-06-03T00:44:01.000Z | 2019-06-03T00:44:01.000Z | training/mr_em_map_adapter.cc | jhclark/cdec | 237ddc67ffa61da310e19710f902d4771dc323c2 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | null | null | null | training/mr_em_map_adapter.cc | jhclark/cdec | 237ddc67ffa61da310e19710f902d4771dc323c2 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | 1 | 2021-02-19T12:44:54.000Z | 2021-02-19T12:44:54.000Z | #include <iostream>
#include <fstream>
#include <cassert>
#include <cmath>
#include <boost/utility.hpp>
#include <boost/program_options.hpp>
#include <boost/program_options/variables_map.hpp>
#include "boost/tuple/tuple.hpp"
#include "fdict.h"
#include "sparse_vector.h"
using namespace std;
namespace po = boost::pro... | 30.223602 | 116 | 0.59104 |
ead6a6563593a425e9fc1fd361c2c6fc2abc5b05 | 1,404 | cpp | C++ | thirdparty/sfs2x/Bitswarm/BBox/BBEvent.cpp | godot-addons/godot-sfs2x | a8d52aa9d548f6d45bbb64bfdaacab0df10e67c1 | [
"MIT"
] | 2 | 2020-05-14T07:48:32.000Z | 2021-02-03T14:58:11.000Z | thirdparty/sfs2x/Bitswarm/BBox/BBEvent.cpp | godot-addons/godot-sfs2x | a8d52aa9d548f6d45bbb64bfdaacab0df10e67c1 | [
"MIT"
] | 1 | 2020-05-28T16:39:20.000Z | 2020-05-28T16:39:20.000Z | thirdparty/sfs2x/Bitswarm/BBox/BBEvent.cpp | godot-addons/godot-sfs2x | a8d52aa9d548f6d45bbb64bfdaacab0df10e67c1 | [
"MIT"
] | 2 | 2018-07-07T20:15:00.000Z | 2018-10-26T05:18:30.000Z | // ===================================================================
//
// Description
// Contains the implementation of BBEvent
//
// Revision history
// Date Description
// 30-Nov-2012 First version
//
// ===================================================================
#include "BBEvent.h"
namespace Sfs... | 31.909091 | 117 | 0.504274 |
ead740e181fb132ccf2430f21f427346276b1b97 | 1,883 | hpp | C++ | include/IStreamSocket.hpp | lordio/insanity | 7dfbf398fe08968f40a32280bf2b16cca2b476a1 | [
"MIT"
] | 1 | 2015-02-05T10:41:14.000Z | 2015-02-05T10:41:14.000Z | include/IStreamSocket.hpp | lordio/insanity | 7dfbf398fe08968f40a32280bf2b16cca2b476a1 | [
"MIT"
] | 1 | 2015-02-04T20:47:52.000Z | 2015-02-05T07:43:05.000Z | include/IStreamSocket.hpp | lordio/insanity | 7dfbf398fe08968f40a32280bf2b16cca2b476a1 | [
"MIT"
] | null | null | null | #ifndef INSANITY_INTERFACE_STREAM_SOCKET
#define INSANITY_INTERFACE_STREAM_SOCKET
#include "Constants.hpp"
#include "IObject.hpp"
namespace Insanity
{
class IByteArray;
class INSANITY_API IStreamSocket : public virtual IObject
{
public:
//=================================================
//Create a new Strea... | 34.236364 | 76 | 0.478492 |
ead785b9cb2a4cac33dff6d2858fa848750a70e0 | 344 | cpp | C++ | projects/client/input/haft/source/haft/Input_Configuration.cpp | silentorb/mythic-cpp | 97319d158800d77e1a944c47c13523662bc07e08 | [
"MIT"
] | null | null | null | projects/client/input/haft/source/haft/Input_Configuration.cpp | silentorb/mythic-cpp | 97319d158800d77e1a944c47c13523662bc07e08 | [
"MIT"
] | null | null | null | projects/client/input/haft/source/haft/Input_Configuration.cpp | silentorb/mythic-cpp | 97319d158800d77e1a944c47c13523662bc07e08 | [
"MIT"
] | null | null | null | #include "Input_Configuration.h"
namespace haft {
Device *Input_Configuration::get_device(const std::string name) const {
for (auto &device: devices) {
if (device->get_name() == name)
return device.get();
}
return nullptr;
// throw runtime_error(string("Invalid device name "... | 24.571429 | 74 | 0.613372 |
ead7da1fbb8c0d130dd44346123a6ba87c889f8b | 1,276 | cc | C++ | chrome/browser/commerce/coupons/coupon_service_factory.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 76 | 2020-09-02T03:05:41.000Z | 2022-03-30T04:40:55.000Z | chrome/browser/commerce/coupons/coupon_service_factory.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 45 | 2020-09-02T03:21:37.000Z | 2022-03-31T22:19:45.000Z | chrome/browser/commerce/coupons/coupon_service_factory.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 8 | 2020-07-22T18:49:18.000Z | 2022-02-08T10:27:16.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/commerce/coupons/coupon_service_factory.h"
#include "chrome/browser/commerce/coupons/coupon_db.h"
#include "chrome/browser/comme... | 34.486486 | 80 | 0.78605 |
ead9c3a8781669f4af03b5db8a78491a045a2aef | 1,523 | cpp | C++ | cpp/exercises.cpp | StrubT/ProgressorDefaultExercises | 1237c4f8fe7007dd815f4cc6656512a72e409de0 | [
"MIT"
] | 2 | 2016-11-19T12:05:11.000Z | 2016-11-22T17:00:52.000Z | cpp/exercises.cpp | StrubT/ProgressorDefaultExercises | 1237c4f8fe7007dd815f4cc6656512a72e409de0 | [
"MIT"
] | 4 | 2017-09-21T13:11:34.000Z | 2017-09-22T09:24:45.000Z | cpp/exercises.cpp | StrubT/ProgressorDefaultExercises | 1237c4f8fe7007dd815f4cc6656512a72e409de0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <regex>
#include <algorithm>
using namespace std;
string helloWorld() {
return "Hello, World!";
}
string alternate(string first, string second) {
string result;
int i;
for (i = 0; i < first.length() && i < second.length(); i++)
result += first.substr(i, 1) +... | 27.690909 | 99 | 0.589626 |
eae6573fae791d2658baadcd206a819f238030ff | 5,179 | hxx | C++ | main/sc/inc/hints.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/sc/inc/hints.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/sc/inc/hints.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 28.456044 | 89 | 0.659394 |
eae87783473a79a689454e4b2011efe263c479f9 | 726 | cpp | C++ | Flinty/Flinty/src/fl/Core.cpp | TheCherno/AnimatedSpriteCompression | 012dc267c59a7921defed868d235533afa630b6b | [
"Apache-2.0"
] | 11 | 2016-08-10T18:16:29.000Z | 2021-11-20T12:09:28.000Z | Flinty/Flinty/src/fl/Core.cpp | TheCherno/AnimatedSpriteCompression | 012dc267c59a7921defed868d235533afa630b6b | [
"Apache-2.0"
] | null | null | null | Flinty/Flinty/src/fl/Core.cpp | TheCherno/AnimatedSpriteCompression | 012dc267c59a7921defed868d235533afa630b6b | [
"Apache-2.0"
] | 3 | 2019-05-16T15:37:34.000Z | 2020-04-10T01:05:03.000Z | #include "Core.h"
#include <iostream>
#include "gl.h"
#if defined(FL_PLATFORM_ANDROID)
#include "platform/android/AndroidSystem.h"
#endif
namespace fl {
#if defined(FL_PLATFORM_WINDOWS)
void Init()
{
}
#elif defined(FL_PLATFORM_ANDROID)
void Init(void* env, void* mainView)
{
AndroidSystem::Init((JNIEnv*)e... | 15.446809 | 109 | 0.646006 |
eaea8280c75f22a6557e0fc2c795457539db1e20 | 2,044 | hpp | C++ | GazeEstimationCpp/PinholeCameraModel.hpp | dmikushin/RemoteEye | f467594e8d0246d7cc87bf843da1d09e105fcca7 | [
"MIT"
] | 9 | 2020-05-10T15:40:10.000Z | 2022-01-26T19:58:55.000Z | GazeEstimationCpp/PinholeCameraModel.hpp | dmikushin/RemoteEye | f467594e8d0246d7cc87bf843da1d09e105fcca7 | [
"MIT"
] | 5 | 2020-08-08T22:22:51.000Z | 2021-01-18T12:18:37.000Z | GazeEstimationCpp/PinholeCameraModel.hpp | dmikushin/RemoteEye | f467594e8d0246d7cc87bf843da1d09e105fcca7 | [
"MIT"
] | 2 | 2020-08-08T09:31:59.000Z | 2020-12-14T05:49:33.000Z | #ifndef PINHOLE_CAMERA_MODEL_HPP_INCLUDED
#define PINHOLE_CAMERA_MODEL_HPP_INCLUDED
#include "MathTypes.hpp"
namespace gazeestimation{
class PinholeCameraModel
{
private:
Vec3 camera_angles;
Mat3x3 actual_rotation_matrix;
public:
// camera intrinsic
double principal_point_x;
double principal_point_y;
double p... | 20.44 | 117 | 0.751957 |
eaeaee7f2c260beb4af190c606e353fb56f190f5 | 1,356 | cpp | C++ | IndependentSet.cpp | manoelstilpen/clique_problem | bf1c9711128b9173301d9ff4d1ad2f837f7f523e | [
"MIT"
] | null | null | null | IndependentSet.cpp | manoelstilpen/clique_problem | bf1c9711128b9173301d9ff4d1ad2f837f7f523e | [
"MIT"
] | null | null | null | IndependentSet.cpp | manoelstilpen/clique_problem | bf1c9711128b9173301d9ff4d1ad2f837f7f523e | [
"MIT"
] | 1 | 2019-07-02T13:55:23.000Z | 2019-07-02T13:55:23.000Z | #include "IndependentSet.hpp"
IndependentSet::IndependentSet(){
definedGraph = false;
}
IndependentSet::IndependentSet(Graph _graph){
setGraph(_graph);
}
int IndependentSet::searchLargestIndependentSet(){
for(int k=0 ; k<graph.getNVertex() ; k++){
vector<int> vertex_list(graph.getNVertex());
... | 22.229508 | 85 | 0.558997 |
eaeb3528d0718695e61d2dc99b3bd35a908a30d4 | 225 | hpp | C++ | include/LIEF/span.hpp | rafael-santiago/LIEF | f230094d5877dd63d40915dc944c53c2a4be5ed9 | [
"Apache-2.0"
] | 1 | 2022-02-26T00:28:52.000Z | 2022-02-26T00:28:52.000Z | include/LIEF/span.hpp | rafael-santiago/LIEF | f230094d5877dd63d40915dc944c53c2a4be5ed9 | [
"Apache-2.0"
] | null | null | null | include/LIEF/span.hpp | rafael-santiago/LIEF | f230094d5877dd63d40915dc944c53c2a4be5ed9 | [
"Apache-2.0"
] | null | null | null | #ifndef LIEF_SPAN_H
#define LIEF_SPAN_H
#include <LIEF/third-party/span.hpp>
namespace LIEF {
template <typename ElementType, std::size_t Extent = tcb::dynamic_extent>
using span = tcb::span<ElementType, Extent>;
}
#endif
| 18.75 | 73 | 0.764444 |
eaebe3caf007b66f13294eaa39c997be945f32c1 | 1,067 | cc | C++ | chrome/browser/locale_tests_uitest.cc | zachlatta/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | 1 | 2021-09-24T22:49:10.000Z | 2021-09-24T22:49:10.000Z | chrome/browser/locale_tests_uitest.cc | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/locale_tests_uitest.cc | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/test/ui/ui_test.h"
class LocaleTestsDa : public UITest {
public:
LocaleTestsDa() : UITest() {
launch_arguments_.AppendSw... | 24.813953 | 73 | 0.719775 |
eaf0865ae2f420e0b3dd47bcee0fa3c845fbd082 | 953 | cpp | C++ | Ruminate/src/HelperFiles/a_funcs.cpp | Riku32/Ruminate | 0855384c2abb24f2552688561ff90bd555ef3c07 | [
"MIT"
] | null | null | null | Ruminate/src/HelperFiles/a_funcs.cpp | Riku32/Ruminate | 0855384c2abb24f2552688561ff90bd555ef3c07 | [
"MIT"
] | null | null | null | Ruminate/src/HelperFiles/a_funcs.cpp | Riku32/Ruminate | 0855384c2abb24f2552688561ff90bd555ef3c07 | [
"MIT"
] | null | null | null | #include "HelperFiles/a_funcs.hpp"
//relu
inline float Relu(float x)
{
return (x > 0) * x;
}
inline float ReluPrime(float x)
{
return x > 0;
}
//leaky relu
inline float ReluLeaky(float x)
{
if (x < 0)
{
return x * A;
}
else
{
return x;
}
}
... | 12.878378 | 66 | 0.499475 |
eaf608c4845378c97f1a955f5533efa1e5c2b962 | 8,845 | cpp | C++ | src/corder.cpp | Cetus-K/corder | cd635c3bf49f578952d65393270a9a980841299e | [
"MIT"
] | null | null | null | src/corder.cpp | Cetus-K/corder | cd635c3bf49f578952d65393270a9a980841299e | [
"MIT"
] | null | null | null | src/corder.cpp | Cetus-K/corder | cd635c3bf49f578952d65393270a9a980841299e | [
"MIT"
] | null | null | null | #include "corder.h"
// corder destructor
corder::~corder() {
vector < int > ().swap(l);
vector < int > ().swap(item);
vector < int > ().swap(sitem);
vector < vector < int > > ().swap(stypeindex);
vector < vector < int > > ().swap(stypelist);
vector < string > ().swap(mode);
vector < string > ().swap(type);
vec... | 28.905229 | 136 | 0.5645 |
46aeb29ba723d04d05eb80ed696f5532ce9ed1c5 | 767 | cpp | C++ | intermediate/funciones/vectorAddFunctions.cpp | eduardorasgado/CppZerotoAdvance2018 | 909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f | [
"MIT"
] | 1 | 2019-06-20T17:51:10.000Z | 2019-06-20T17:51:10.000Z | intermediate/funciones/vectorAddFunctions.cpp | eduardorasgado/CppZerotoAdvance2018 | 909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f | [
"MIT"
] | 2 | 2018-10-01T08:14:01.000Z | 2018-10-06T05:27:26.000Z | intermediate/funciones/vectorAddFunctions.cpp | eduardorasgado/CppZerotoAdvance2018 | 909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f | [
"MIT"
] | 1 | 2018-10-05T10:54:10.000Z | 2018-10-05T10:54:10.000Z | #include <iostream>
using namespace std;
int suma(int vector1[], int N);
void dataRequest();
void showVector();
int N, vector[100];
int main(int argc, char** argv)
{
// pidiendo los datos al usuario
dataRequest();
showVector();
int addition = suma(vector, N);
cout << "La suma de todos los numeros del vector es... | 18.707317 | 79 | 0.591917 |
46b1ee6ba3c748a62174ce31a4ffc4613f29cef5 | 13,087 | cpp | C++ | fileAudioEncoder.cpp | rzumer/BeatFinder | ef1c4e9f48c8524d0980d650d58e66ec75afa13a | [
"MIT"
] | 5 | 2019-02-18T01:17:27.000Z | 2020-02-17T01:50:11.000Z | fileAudioEncoder.cpp | rzumer/BeatFinder | ef1c4e9f48c8524d0980d650d58e66ec75afa13a | [
"MIT"
] | null | null | null | fileAudioEncoder.cpp | rzumer/BeatFinder | ef1c4e9f48c8524d0980d650d58e66ec75afa13a | [
"MIT"
] | 1 | 2019-02-22T01:32:20.000Z | 2019-02-22T01:32:20.000Z | #pragma comment (lib, "avfilter.lib")
#pragma comment (lib, "avformat.lib")
#pragma comment (lib, "avcodec.lib")
#pragma comment (lib, "avutil.lib")
#include "fileAudioEncoder.h";
using namespace std;
void fileAudioEncoder::cleanUp()
{
if (this->codecContext)
{
avcodec_close(this->codecContext);
avcodec_free_c... | 25.41165 | 124 | 0.693818 |
46b40baa8e59380f4e8a72608b3c243189d2daef | 2,446 | cpp | C++ | rohm-sensor-hal/source/I2CCommonArduinoHardwareLib.cpp | MikkoZ-Rohm/rohm-bm1383-hello-arduino | 573a45bb8d6c640234dc6f7dd65f3af73219199e | [
"Apache-2.0"
] | null | null | null | rohm-sensor-hal/source/I2CCommonArduinoHardwareLib.cpp | MikkoZ-Rohm/rohm-bm1383-hello-arduino | 573a45bb8d6c640234dc6f7dd65f3af73219199e | [
"Apache-2.0"
] | null | null | null | rohm-sensor-hal/source/I2CCommonArduinoHardwareLib.cpp | MikkoZ-Rohm/rohm-bm1383-hello-arduino | 573a45bb8d6c640234dc6f7dd65f3af73219199e | [
"Apache-2.0"
] | null | null | null | /* Copyright 2016 Rohm Semiconductor
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 ... | 32.613333 | 100 | 0.663123 |
46b43bc1bab7a5347fc5971471ee38be4705587b | 1,072 | cc | C++ | Fireworks/Core/src/FWParameterizable.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | Fireworks/Core/src/FWParameterizable.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | Fireworks/Core/src/FWParameterizable.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | // -*- C++ -*-
//
// Package: Core
// Class : FWParameterizable
//
// Implementation:
// <Notes on implementation>
//
// Original Author: Chris Jones
// Created: Sat Feb 23 13:36:27 EST 2008
//
// system include files
// user include files
#include "Fireworks/Core/interface/FWParameterizable.h"... | 15.098592 | 86 | 0.66791 |
46b5d3784f9e433cd01c0fbe1309174e2bf29a04 | 2,093 | cc | C++ | src/ui/scenic/lib/gfx/tests/has_renderable_content_visitor_unittest.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | 14 | 2020-10-25T05:48:36.000Z | 2021-09-20T02:46:20.000Z | src/ui/scenic/lib/gfx/tests/has_renderable_content_visitor_unittest.cc | DamieFC/fuchsia | f78a4a1326f4a4bb5834500918756173c01bab4f | [
"BSD-2-Clause"
] | 1 | 2022-01-14T23:38:40.000Z | 2022-01-14T23:38:40.000Z | src/ui/scenic/lib/gfx/tests/has_renderable_content_visitor_unittest.cc | DamieFC/fuchsia | f78a4a1326f4a4bb5834500918756173c01bab4f | [
"BSD-2-Clause"
] | 4 | 2020-12-28T17:04:45.000Z | 2022-03-12T03:20:44.000Z | // Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/ui/scenic/lib/gfx/resources/has_renderable_content_visitor.h"
#include <lib/ui/scenic/cpp/commands.h>
#include <gtest/gtest.h>
#include "s... | 40.25 | 98 | 0.731964 |
46bf4a0966c2e91a134128a667d39e6c9919746f | 8,978 | cpp | C++ | src/terark/io/MemStream.cpp | rockeet/terark-zip | 3235373d04b7cf5d584259111b3a057c45cc1708 | [
"BSD-3-Clause"
] | 44 | 2020-12-21T05:14:38.000Z | 2022-03-15T11:27:32.000Z | src/terark/io/MemStream.cpp | rockeet/terark-zip | 3235373d04b7cf5d584259111b3a057c45cc1708 | [
"BSD-3-Clause"
] | 2 | 2020-12-28T10:42:03.000Z | 2021-05-21T07:22:47.000Z | src/terark/io/MemStream.cpp | rockeet/terark-zip | 3235373d04b7cf5d584259111b3a057c45cc1708 | [
"BSD-3-Clause"
] | 21 | 2020-12-22T09:40:16.000Z | 2021-12-07T18:16:00.000Z | /* vim: set tabstop=4 : */
#include "MemStream.hpp"
#include <stdlib.h>
#include <algorithm>
#include <stdexcept>
#include <typeinfo>
#include <errno.h>
#if defined(_MSC_VER)
# include <intrin.h>
#pragma intrinsic(_BitScanReverse)
//#pragma intrinsic(_BitScanReverse64)
#endif
#include <boost/predef/other/endian.h>
#... | 21.124706 | 102 | 0.631989 |
46c1b7bcb666e58c1852e1291d3dcfb7d7afb797 | 5,706 | cpp | C++ | BlueBerry/Bundles/org.blueberry.core.expressions/src/internal/berryTestExpression.cpp | danielknorr/MITK | b1b9780b2a6671d8118313c5ef71e9aa128362be | [
"BSD-3-Clause"
] | 1 | 2017-03-05T05:29:32.000Z | 2017-03-05T05:29:32.000Z | BlueBerry/Bundles/org.blueberry.core.expressions/src/internal/berryTestExpression.cpp | danielknorr/MITK | b1b9780b2a6671d8118313c5ef71e9aa128362be | [
"BSD-3-Clause"
] | null | null | null | BlueBerry/Bundles/org.blueberry.core.expressions/src/internal/berryTestExpression.cpp | danielknorr/MITK | b1b9780b2a6671d8118313c5ef71e9aa128362be | [
"BSD-3-Clause"
] | 2 | 2020-10-27T06:51:00.000Z | 2020-10-27T06:51:01.000Z | /*===================================================================
BlueBerry Platform
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS... | 30.190476 | 184 | 0.695233 |
46c7a76985f5d3f9668922bd594d87318ead7fe1 | 1,040 | cpp | C++ | AtCoder/abc161/E.cpp | noobie7/Codes | 4d8265f4b7042bd7e8c0e0402d417c7e160ae6d4 | [
"MIT"
] | 2 | 2021-09-14T15:57:24.000Z | 2022-03-18T14:11:04.000Z | AtCoder/abc161/E.cpp | noobie7/Codes | 4d8265f4b7042bd7e8c0e0402d417c7e160ae6d4 | [
"MIT"
] | null | null | null | AtCoder/abc161/E.cpp | noobie7/Codes | 4d8265f4b7042bd7e8c0e0402d417c7e160ae6d4 | [
"MIT"
] | null | null | null | /*
"Do I really belong in this game I ponder, I just wanna play my part."
- Guts over fear, Eminem
*/
#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define ff first
#define Shazam ios_base::sync_with_stdio(false); cin.tie(NULL); cout.ti... | 29.714286 | 81 | 0.575962 |
46ca9a317c482ebdc784219d9ead089b15fdd056 | 8,788 | cpp | C++ | test/src/tc/pm/gtest/cpp/src/helper/PMCppUtilityHelper.cpp | jonghenhan/iotivity | 7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31 | [
"Apache-2.0"
] | 301 | 2015-01-20T16:11:32.000Z | 2021-11-25T04:29:36.000Z | test/src/tc/pm/gtest/cpp/src/helper/PMCppUtilityHelper.cpp | jonghenhan/iotivity | 7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31 | [
"Apache-2.0"
] | 13 | 2015-06-04T09:55:15.000Z | 2020-09-23T00:38:07.000Z | test/src/tc/pm/gtest/cpp/src/helper/PMCppUtilityHelper.cpp | jonghenhan/iotivity | 7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31 | [
"Apache-2.0"
] | 233 | 2015-01-26T03:41:59.000Z | 2022-03-18T23:54:04.000Z | /******************************************************************
*
* Copyright 2016 Samsung Electronics 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
*
... | 27.20743 | 98 | 0.612995 |
46cdd8004bd7e3f2911eb9073495f88913ee36c7 | 2,051 | cpp | C++ | LeetCode/Hash/LongestSubstringWithoutRepeatingCharacters_f.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 3 | 2021-07-26T15:58:45.000Z | 2021-09-08T14:55:11.000Z | LeetCode/Hash/LongestSubstringWithoutRepeatingCharacters_f.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | null | null | null | LeetCode/Hash/LongestSubstringWithoutRepeatingCharacters_f.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 2 | 2021-05-31T11:27:59.000Z | 2021-10-03T13:26:00.000Z | /*
* LeetCode 3 Longest Substring Without Repeating Characters
* Medium
* Shuo Feng
* 2021.9.15
*/
/*
* Solution 1:
* Begin with a starting point and check characters after, update a set and record the maximum size.
* When meet a repeating character, remove the previous point in set till there have not re... | 32.046875 | 130 | 0.387128 |
46cf676f19bb9b2850daf5c31dd6fa692a4b68ff | 2,789 | cpp | C++ | sources/Page.cpp | khsabrina/notebook-b | 5ab09040f7b3658314239148a54a45747a918b22 | [
"MIT"
] | null | null | null | sources/Page.cpp | khsabrina/notebook-b | 5ab09040f7b3658314239148a54a45747a918b22 | [
"MIT"
] | null | null | null | sources/Page.cpp | khsabrina/notebook-b | 5ab09040f7b3658314239148a54a45747a918b22 | [
"MIT"
] | null | null | null | #include "Row.hpp"
#include "Page.hpp"
using namespace std;
#include <iostream>
#include <iterator>
#include <map>
const int LENGHT_ROW=100;
Page::Page(){
}
void Page::add(int col,int row,Direction dir, string str){
if(dir == Direction::Horizontal){
int size = str.size();
if (col + size > LENGHT_RO... | 24.901786 | 64 | 0.453926 |
46d4d4e5eb5f615fc8966b8330dc7b0a6e138afc | 130 | cpp | C++ | src/CMake/Testftimeprototype.cpp | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 226 | 2018-12-29T01:13:49.000Z | 2022-03-30T19:16:31.000Z | src/CMake/Testftimeprototype.cpp | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 5,100 | 2019-01-14T18:19:25.000Z | 2022-03-31T23:08:36.000Z | src/CMake/Testftimeprototype.cpp | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 84 | 2019-01-24T17:41:50.000Z | 2022-03-10T10:01:46.000Z | #include <sys/time.h>
#include <sys/timeb.h>
int
main(int argc, char *argv[])
{
struct timeb *tp; ftime(tp);
return 0;
}
| 13 | 32 | 0.615385 |
46d53436f721cfb55f85f51e483ddd0174db7856 | 3,866 | cpp | C++ | src/desktop/panes/fspane.cpp | KDE/kookbook | 522ca12ebdf386cd3ca52d03fbf1b022c9e5e1b9 | [
"MIT"
] | 8 | 2018-12-18T20:49:56.000Z | 2022-01-11T07:40:56.000Z | src/desktop/panes/fspane.cpp | KDE/kookbook | 522ca12ebdf386cd3ca52d03fbf1b022c9e5e1b9 | [
"MIT"
] | null | null | null | src/desktop/panes/fspane.cpp | KDE/kookbook | 522ca12ebdf386cd3ca52d03fbf1b022c9e5e1b9 | [
"MIT"
] | 2 | 2019-02-18T17:08:49.000Z | 2020-10-08T06:01:03.000Z | /*
* Copyright (c) 2018 Sune Vuorela <sune@vuorela.dk>
*
* 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, ... | 31.430894 | 87 | 0.685722 |
46d9f66e3002849d353f2a3c08eb1ff530d8bd2a | 334 | hpp | C++ | include/Btk/impl/mixer.hpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | 2 | 2021-06-19T08:21:38.000Z | 2021-08-15T21:37:30.000Z | include/Btk/impl/mixer.hpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | null | null | null | include/Btk/impl/mixer.hpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | 1 | 2021-04-03T14:27:39.000Z | 2021-04-03T14:27:39.000Z | #if !defined(_BTK_IMPL_MIXER)
#define _BTK_IMPL_MIXER
//Implment for mixer
#include <SDL2/SDL_audio.h>
#include <SDL2/SDL_error.h>
#include <SDL2/SDL_rwops.h>
#include "../mixer.hpp"
#include "../rwops.hpp"
#include "../function.hpp"
#include "atomic.hpp"
#include <vector>
#include <mutex>
#include <list>
#endif // _B... | 20.875 | 29 | 0.730539 |
46da70a73467334640434461461fe89eaf2ba08b | 5,631 | cc | C++ | apps/rwh/arguments.cc | OSADP/Pikalert-Vehicle-Data-Translator- | 295da604408f6f13af0301b55476a81311459386 | [
"Apache-2.0"
] | 2 | 2020-06-03T15:59:50.000Z | 2020-12-21T11:11:57.000Z | apps/rwh/arguments.cc | OSADP/Pikalert-Vehicle-Data-Translator- | 295da604408f6f13af0301b55476a81311459386 | [
"Apache-2.0"
] | null | null | null | apps/rwh/arguments.cc | OSADP/Pikalert-Vehicle-Data-Translator- | 295da604408f6f13af0301b55476a81311459386 | [
"Apache-2.0"
] | 2 | 2019-10-02T06:47:23.000Z | 2020-02-02T18:32:23.000Z | //==============================================================================
//
// (c) Copyright, 2013 University Corporation for Atmospheric Research (UCAR).
// All rights reserved.
//
// File: $RCSfile: arguments.cc,v $
// Version: $Revision: 1.2 $ Dated: $Date: 2013/09/27 16:47:01 $
//
//===... | 28.439394 | 317 | 0.618007 |
46da8dd5beeb4b2abb3660c0727f7f527042298d | 748 | cpp | C++ | src/MultiCamera.cpp | mario-nj/four-cam | 8109d8f10bc967a728205d96f7f2d164016cd84b | [
"MIT"
] | null | null | null | src/MultiCamera.cpp | mario-nj/four-cam | 8109d8f10bc967a728205d96f7f2d164016cd84b | [
"MIT"
] | null | null | null | src/MultiCamera.cpp | mario-nj/four-cam | 8109d8f10bc967a728205d96f7f2d164016cd84b | [
"MIT"
] | null | null | null | #include "includes/CameraStreamer.hpp"
#include "opencv2/highgui.hpp"
using namespace cv;
int main(int argc, char** argv) {
// IP Câmera - urls
/*
vector<string> capture_source = {
"",
""
};
*/
// USB Câmera - índices
vector<int> capture_index = {0, 2, 4};
vector<strin... | 22 | 56 | 0.52139 |
46e75db4cb5af3abca61418168d8641ca99693c5 | 285 | cpp | C++ | chapter_2/section_x/io.cpp | martindes01/learncpp | 50c500b0cf03c9520eab0a6bdeb4556da7d13bbf | [
"MIT"
] | 4 | 2020-08-03T15:00:00.000Z | 2022-01-08T20:22:55.000Z | chapter_2/section_x/io.cpp | martindes01/learncpp | 50c500b0cf03c9520eab0a6bdeb4556da7d13bbf | [
"MIT"
] | null | null | null | chapter_2/section_x/io.cpp | martindes01/learncpp | 50c500b0cf03c9520eab0a6bdeb4556da7d13bbf | [
"MIT"
] | null | null | null | // Include custom headers
#include "io.h"
// Include standard library headers
#include <iostream>
int readNumber()
{
std::cout << "Enter an integer: ";
int x{ };
std::cin >> x;
return x;
}
void writeAnswer(int answer)
{
std::cout << "The answer is " << answer << '\n';
}
| 14.25 | 50 | 0.614035 |
46ef9733080898aed1ced4a6f987e79f1a761388 | 3,766 | cpp | C++ | src/network/socket.cpp | leezhenghui/Mushroom | 8aed2bdd80453d856145925d067bef5ed9d10ee0 | [
"BSD-3-Clause"
] | 351 | 2016-10-12T14:06:09.000Z | 2022-03-24T14:53:54.000Z | src/network/socket.cpp | leezhenghui/Mushroom | 8aed2bdd80453d856145925d067bef5ed9d10ee0 | [
"BSD-3-Clause"
] | 7 | 2017-03-07T01:49:16.000Z | 2018-07-27T08:51:54.000Z | src/network/socket.cpp | UncP/Mushroom | 8aed2bdd80453d856145925d067bef5ed9d10ee0 | [
"BSD-3-Clause"
] | 62 | 2016-10-31T12:46:45.000Z | 2021-12-28T11:25:26.000Z | /**
* > Author: UncP
* > Github: www.github.com/UncP/Mushroom
* > License: BSD-3
* > Time: 2017-04-23 10:23:53
**/
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <fcntl.h>
#include <cstring>
#include <cassert>
#include <cerrno>
#includ... | 20.467391 | 78 | 0.648168 |
46f2bbfc9a51188edf94dd3a3ad3404ff9cdab9a | 2,847 | cpp | C++ | source/main.cpp | Mstrodl/gm_win_toast | 0255133b3d90f45bed5e8871f05d584d4985338b | [
"MIT"
] | 1 | 2021-01-26T13:15:33.000Z | 2021-01-26T13:15:33.000Z | source/main.cpp | Mstrodl/gm_win_toast | 0255133b3d90f45bed5e8871f05d584d4985338b | [
"MIT"
] | null | null | null | source/main.cpp | Mstrodl/gm_win_toast | 0255133b3d90f45bed5e8871f05d584d4985338b | [
"MIT"
] | null | null | null | #include <wintoastlib.h>
#include <filesystem>
#include <GarrysMod/Lua/Interface.h>
//using namespace WinToastLib;
const auto AUMI = WinToastLib::WinToast::configureAUMI(L"Facepunch", L"Garry's Mod");
bool is_usable = true;
static const char* error_reasons[] = {
"No error",
"Not inialized",
"OS is not supported",
... | 25.881818 | 103 | 0.727432 |
46f35ad0d1bfa320692ae6d13de0007a229878f3 | 130 | cpp | C++ | nano/src/nano/nano.cpp | lyLoveSharon/nano | aa768a241a4ea282f83ccd088561a5eefd59d342 | [
"Apache-2.0"
] | null | null | null | nano/src/nano/nano.cpp | lyLoveSharon/nano | aa768a241a4ea282f83ccd088561a5eefd59d342 | [
"Apache-2.0"
] | null | null | null | nano/src/nano/nano.cpp | lyLoveSharon/nano | aa768a241a4ea282f83ccd088561a5eefd59d342 | [
"Apache-2.0"
] | null | null | null | #include "nano/nano.h"
const char *nano_version()
{
return "0.0.1";
}
const char *nano_module_name()
{
return "nano";
}
| 10.833333 | 30 | 0.623077 |
46f7ea9131f1e0f8f0ac7885da9e48173eabfb30 | 1,208 | cpp | C++ | ModeChoice/Household_List.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | ModeChoice/Household_List.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | ModeChoice/Household_List.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Household_List.cpp - read the household list file
//*********************************************************
#include "ModeChoice.hpp"
#include "Utility.hpp"
//---------------------------------------------------------
// Household_List
//---------------... | 24.16 | 96 | 0.508278 |
46fb1480e4ec109476ab56bb8b7429d68d7b3a9d | 2,824 | cpp | C++ | examples/basin.cpp | danielelinaro/BAL | d735048d9962a0c424c29db93f774494c67b12a9 | [
"MIT"
] | 1 | 2020-02-02T22:30:37.000Z | 2020-02-02T22:30:37.000Z | examples/basin.cpp | danielelinaro/BAL | d735048d9962a0c424c29db93f774494c67b12a9 | [
"MIT"
] | null | null | null | examples/basin.cpp | danielelinaro/BAL | d735048d9962a0c424c29db93f774494c67b12a9 | [
"MIT"
] | null | null | null | /*=========================================================================
*
* Program: Bifurcation Analysis Library
* Module: basin.cpp
*
* Copyright (C) 2009 Daniele Linaro
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public L... | 31.377778 | 82 | 0.621459 |
46fbdb4f601bffcca5874cf6df7c961fe59c9af8 | 1,342 | cc | C++ | packager/media/base/proto_json_util.cc | koln67/shaka-packager | 5b9fd409a5de502e8af2e46ee12840bd2226874d | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1,288 | 2016-05-25T01:20:31.000Z | 2022-03-02T23:56:56.000Z | packager/media/base/proto_json_util.cc | koln67/shaka-packager | 5b9fd409a5de502e8af2e46ee12840bd2226874d | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 894 | 2016-05-17T00:39:30.000Z | 2022-03-02T18:46:21.000Z | packager/media/base/proto_json_util.cc | koln67/shaka-packager | 5b9fd409a5de502e8af2e46ee12840bd2226874d | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 400 | 2016-05-25T01:20:35.000Z | 2022-03-03T02:12:00.000Z | // Copyright 2018 Google LLC. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "packager/media/base/proto_json_util.h"
#include <google/protobuf/util/json_util.h>
#in... | 31.209302 | 80 | 0.68927 |
46fc87995f5fde8b171405aa8a3901dc788264c8 | 1,186 | cpp | C++ | SRC/2018ICPC/Web_XuZhou/H.cpp | YouDad/ACM | ac26e0b360267943af32692629d6c34e739ee70d | [
"MIT"
] | 2 | 2018-07-27T08:09:48.000Z | 2018-09-26T16:36:37.000Z | SRC/2018ICPC/Web_XuZhou/H.cpp | YouDad/ACM | ac26e0b360267943af32692629d6c34e739ee70d | [
"MIT"
] | null | null | null | SRC/2018ICPC/Web_XuZhou/H.cpp | YouDad/ACM | ac26e0b360267943af32692629d6c34e739ee70d | [
"MIT"
] | null | null | null | // https://nanti.jisuanke.com/t/31460
#include<stdio.h>
#include<string.h>
typedef long long ll;
const int maxn=100005;
ll arr[(1<<18)+2],iarr[(1<<18)+2],M;
void update(ll*a,int x,ll val){
for(a[x+=M]=val,x/=2;x;x/=2)
a[x]=a[2*x]+a[2*x+1];
}
ll query(ll*a,int l,int r){
ll ans=0;
for(l+=M-1,r+=M+1;l^... | 25.782609 | 49 | 0.436762 |
46fd94f34eb507d75cdb0864c86d48bb91ffe0fc | 1,936 | cc | C++ | app/oxs/base/lock.cc | ViennaNovoFlop/ViennaNovoFlop-dev | f8c4d6c06590a0d9a3890d81e9b0b4dcb7ea9e00 | [
"TCL",
"SWL",
"MIT",
"X11",
"BSD-3-Clause"
] | null | null | null | app/oxs/base/lock.cc | ViennaNovoFlop/ViennaNovoFlop-dev | f8c4d6c06590a0d9a3890d81e9b0b4dcb7ea9e00 | [
"TCL",
"SWL",
"MIT",
"X11",
"BSD-3-Clause"
] | null | null | null | app/oxs/base/lock.cc | ViennaNovoFlop/ViennaNovoFlop-dev | f8c4d6c06590a0d9a3890d81e9b0b4dcb7ea9e00 | [
"TCL",
"SWL",
"MIT",
"X11",
"BSD-3-Clause"
] | null | null | null | /* FILE: lock.cc -*-Mode: c++-*-
*
* Data structure locking class
*
*/
#include "oc.h"
#include "lock.h"
#include "oxsexcept.h"
OC_USE_STD_NAMESPACE; // Specify std namespace, if supported
/* End includes */
OC_UINT4m Oxs_Lock::id_count=0;
Oxs_Lock::~Oxs_Lock()
{
if(write_lock>0)
OXS_THR... | 19.555556 | 71 | 0.658058 |
46fe7414e6a5c9bc077c601133632078f87b21aa | 6,197 | cc | C++ | libsrc/pylith/faults/FaultCohesiveTract.cc | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | 1 | 2021-01-20T17:18:28.000Z | 2021-01-20T17:18:28.000Z | libsrc/pylith/faults/FaultCohesiveTract.cc | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | null | null | null | libsrc/pylith/faults/FaultCohesiveTract.cc | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | null | null | null | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 34.237569 | 99 | 0.619977 |
46ffcc9c9c990a00d3ce0571090b9f9ef3d5f5e1 | 507 | cpp | C++ | p205/p205.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | 1 | 2019-10-07T05:00:21.000Z | 2019-10-07T05:00:21.000Z | p205/p205.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | p205/p205.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | class Solution {
public:
bool isIsomorphic(string s, string t) {
if (s.length() != t.length())
return false;
int n = s.length();
vector<char> from(260,'#'),to(260,'#');
for (int i = 0; i < n; ++i)
{
if (from[t[i]] == '#' && to[s[i]] == '#')
{
f... | 22.043478 | 52 | 0.368836 |
2000447c0fe485a0d3201f67bb26167f3660ef5a | 1,036 | cpp | C++ | platform/android/src/geojson/point.cpp | mueschm/mapbox-gl-native | b07db0f8d01f855dcd336aa1baabde94c5c1740d | [
"BSL-1.0",
"Apache-2.0"
] | 316 | 2021-02-05T10:34:35.000Z | 2022-03-23T21:58:39.000Z | platform/android/src/geojson/point.cpp | mueschm/mapbox-gl-native | b07db0f8d01f855dcd336aa1baabde94c5c1740d | [
"BSL-1.0",
"Apache-2.0"
] | 187 | 2021-02-11T10:39:30.000Z | 2022-03-31T21:59:47.000Z | platform/android/src/geojson/point.cpp | mueschm/mapbox-gl-native | b07db0f8d01f855dcd336aa1baabde94c5c1740d | [
"BSL-1.0",
"Apache-2.0"
] | 93 | 2021-02-04T09:39:14.000Z | 2022-03-31T04:03:56.000Z | #include "point.hpp"
namespace mbgl {
namespace android {
namespace geojson {
jni::Local<jni::Object<Point>> Point::New(jni::JNIEnv& env, const mbgl::Point<double>& point) {
static auto& javaClass = jni::Class<Point>::Singleton(env);
static auto method = javaClass.GetStaticMethod<jni::Object<Point> (jni::jdou... | 29.6 | 119 | 0.666023 |