text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<reponame>dibakch/differential-privacy
//
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless r... | code_c | code | 1,782 | null |
<gh_stars>1-10
// This is an open source non-commercial project. Dear PVS-Studio, please check
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
// Functions for creating a session file, i.e. implementing:
// :mkexrc
// :mkvimrc
// :mkview
// :mksession
#include <assert.h>
#inclu... | code_c | code | 9,196 | null |
/*
*
* BRIEF MODULE DESCRIPTION
* Galileo EV96100 board specific pci support.
*
* Copyright 2000 MontaVista Software Inc.
* Author: MontaVista Software, Inc.
* <EMAIL> or <EMAIL>
*
* This file was derived from <NAME>'s
* arch/mips/mips-boards/generic/pci.c
*
* <NAME>, <EMAIL>
* Copyright (C) 1999,... | code_c | code | 1,331 | null |
<filename>src/third_party/wiredtiger/src/include/wt_internal.h
/*-
* Copyright (c) 2014-2016 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
#ifndef __WT_INTERNAL_H
#define __WT_INTERNAL_H
#if defined(__cplusplus)
extern... | code_c | code | 3,271 | null |
<reponame>mlawsonca/ravendb-cpp-client<gh_stars>1-10
#pragma once
#include "EventArgs.h"
#include "InMemoryDocumentSessionOperations.h"
namespace ravendb::client::primitives
{
class SessionCreatedEventArgs : public EventArgs
{
private:
const std::weak_ptr<documents::session::InMemoryDocumentSessionOperations> ses... | code_c | code | 178 | null |
<reponame>emon-root/Swift
//===--- TypeAlignments.h - Alignments of various Swift types ---*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
... | code_c | code | 1,161 | null |
<reponame>durai-chellamuthu/node-opencv<filename>opencv-2.4.11/3rdparty/libjpeg/jccoefct.c<gh_stars>10-100
/*
* jccoefct.c
*
* Copyright (C) 1994-1997, <NAME>.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file c... | code_c | code | 4,818 | null |
<filename>C/chelloworld.c
/*
Created by <NAME>
github.com/singh96aman
*/
#include <stdio.h>
int main(){
printf("\n Hello World in C Language !");
} | code_c | code | 42 | null |
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
/* Qui p(x) proporzionale a x*x fra 0 ed 1 e zero altrove */
/* n(x) uniforme fra 0 ed 1 e zero altrove */
main(){
long int i, norm = 0, tot = 10000000;
double ave = 0.0, ave2 = 0.0;
srand(874531);
for(i = 0; i < tot; i++) {
double x, y, z;
... | code_c | code | 204 | null |
<filename>openeuler-kernel/drivers/media/mc/mc-device.c
// SPDX-License-Identifier: GPL-2.0-only
/*
* Media device
*
* Copyright (C) 2010 Nokia Corporation
*
* Contacts: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include <linux/compat.h>
#include <linux/export.h>
#include <linux/idr.h>
#include <linux/ioctl.h... | code_c | code | 6,753 | null |
#pragma once
#include "EventTriggerDef.h"
#include <gideon/cs/datatable/SpawnTemplate.h>
#include <gideon/cs/shared/data/NpcInfo.h>
#include <gideon/cs/shared/data/DeviceInfo.h>
#include <gideon/cs/shared/data/EntityPathInfo.h>
#include <boost/noncopyable.hpp>
namespace gdt {
class evt_t;
} // namespace gdt {
namesp... | code_c | code | 2,065 | null |
//------------------------------------------------------------------------------
// GB_binop_to_monoid: convert a binary op into its corresponding monoid
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2021, All Rights Reserved.
// SPDX-Licens... | code_c | code | 2,586 | null |
#ifndef KATANA_LIBTSUBA_TSUBA_WRITEGROUP_H_
#define KATANA_LIBTSUBA_TSUBA_WRITEGROUP_H_
#include <future>
#include <list>
#include <memory>
#include "katana/Result.h"
#include "tsuba/FileFrame.h"
#include "tsuba/file.h"
namespace tsuba {
/// Track multiple, outstanding async writes and provide a mechanism to ensure... | code_c | code | 588 | null |
<gh_stars>1-10
//
// Copyright (c) 2014 Wind River Systems, Inc.
//
// SPDX-License-Identifier: Apache-2.0
//
#include "sm_service_enabled_go_active_state.h"
#include <stdio.h>
#include "sm_types.h"
#include "sm_debug.h"
#include "sm_service_fsm.h"
#include "sm_service_go_active.h"
#define SM_SERVICE_GO_ACTIVE_TIMEO... | code_c | code | 2,751 | null |
<gh_stars>0
/**
This code is based on the glslang_c_interface implementation by <NAME>
**/
/**
BSD 2-Clause License
Copyright (c) 2019, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Re... | code_c | code | 3,132 | null |
<reponame>lokax/starrocks
// This file is licensed under the Elastic License 2.0. Copyright 2021 StarRocks Limited.
#pragma once
#include "exec/exec_node.h"
#include "exec/pipeline/operator.h"
#include "exec/vectorized/aggregate/aggregate_base_node.h"
// Aggregate means this node handle query with aggregate function... | code_c | code | 291 | null |
<filename>opal/mca/event/libevent2021/libevent/evdns.c
/* Copyright 2006-2007 <NAME>
* Copyright 2007-2012 <NAME> and <NAME>
*
* 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 mu... | code_c | code | 36,480 | null |
#include <std.h>
inherit ROOM;
void create(){
object ob;
:: create();
set_light(2);
set_property("indoors", 0);
set_climate("desert");
set_short("
%^ORANGE%^You are wandering in a desert.%^RESET%^
");
set_long(
@ZERINA
%^ORANGE%^You are wandering in a desert.%^RESET%^
The wind feels not as warm. The sand is still drif... | code_c | code | 238 | null |
<reponame>emilcondrea/trousers<gh_stars>10-100
/*
* Licensed Materials - Property of IBM
*
* trousers - An open source TCG Software Stack
*
* (C) Copyright International Business Machines Corp. 2007
*
*/
#include <stdlib.h>
#include <string.h>
#include "trousers/tss.h"
#include "trousers/trousers.h"
#include... | code_c | code | 560 | null |
/******************************************************************************
* Code generated with sympy 0.7.6 *
* *
* See http://www.sympy.org/ for more information. *
... | code_c | code | 218 | null |
<gh_stars>1-10
#include "Python.h"
#include "structmember.h" /* for offsetof() */
#include "_iomodule.h"
/*[clinic input]
module _io
class _io.BytesIO "bytesio *" "&PyBytesIO_Type"
[clinic start generated code]*/
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=7f50ec034f5c0b26]*/
typedef struct {
... | code_c | code | 9,645 | null |
#ifndef __NESIS_GROUPBOX_H
#define __NESIS_GROUPBOX_H
/***************************************************************************
* *
* Copyright (C) 2007 by Kanardia d.o.o. [see www.kanardia.eu] *
* Writen by: ... | code_c | code | 567 | null |
//
// JAScanner.h
// AFNetworking
//
// Created by Shepherd on 2019/3/5.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
FOUNDATION_EXPORT CGFloat visibleHeight;
FOUNDATION_EXPORT CGFloat visibleWidth;
FOUNDATION_EXPORT CGFloat animationDuration;
@class JAScanView;
typedef NS_ENUM(NSInteger,JAScann... | code_c | code | 504 | null |
<gh_stars>1-10
//
// Copyright (C) 2018 <NAME>
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include <RDGeneral/export.h>
#ifndef __RD_... | code_c | code | 279 | null |
#pragma once
#include "enums.h"
#include <catboost/private/libs/ctr_description/ctr_type.h>
#include <util/system/types.h>
constexpr ui32 GetMaxBinCount(ETaskType type) {
return (ETaskType::GPU == type) ? 255 : 65535;
}
constexpr ui32 GetMaxTreeDepth() {
return 16;
}
constexpr bool IsSupportedCtrType(ETas... | code_c | code | 404 | null |
<filename>examples/PromiseDemo/AServer/AServer.h
/**
* Tencent is pleased to support the open source community by making Tars available.
*
* Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
* i... | code_c | code | 366 | null |
<gh_stars>100-1000
/* Test front-end conversions, optimizer conversions, and run-time
conversions between different arithmetic types.
Constants are specified in a non-obvious way to make them work for
any word size. Their value on a 32-bit machine is indicated in the
comments.
Note that this code is N... | code_c | code | 3,439 | null |
//===--- Visibility.h - Visibility macros for runtime exports ---*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | code_c | code | 1,572 | null |
/* $OpenBSD: apecs_pci.c,v 1.12 2015/10/30 07:51:49 miod Exp $ */
/* $NetBSD: apecs_pci.c,v 1.10 1996/11/13 21:13:25 cgd Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
* All rights reserved.
*
* Author: <NAME>
*
* Permission to use, copy, modify and distribute this software and
* its docume... | code_c | code | 1,380 | null |
<reponame>bingchunjin/1806_SDK<filename>uboot/board/atmel/sama5d2_ptc/sama5d2_ptc.c
/*
* Copyright (C) 2016 Atmel
* Wenyou.Yang <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <atmel_hlcdc.h>
#include <lcd.h>
#include <mmc.h>
#include <net.h>
#include <netdev.h>
#include <sp... | code_c | code | 2,253 | null |
<reponame>gregbreen/uncannier-thunderboard-react<filename>utr-application/imu.c
/***************************************************************************//**
* @file
* @brief Inertial Measurement Unit
*******************************************************************************
* # License
* <b>Copyright 2018... | code_c | code | 2,047 | null |
<gh_stars>0
#pragma once
#include "IAudioPlayerView.h"
#include "HTMLayoutWindow.h"
class AudioPlayerView : public HTMLayoutWindow, public IAudioPlayerView
{
MacroEvent(Cancel)
MacroEvent(Hide)
MacroEvent(Play)
MacroEvent(Show)
MacroEvent(Stop)
// data
private:
HWND parent;
HINST... | code_c | code | 367 | null |
<filename>release/src/linux/linux/net/atm/addr.h
/* net/atm/addr.h - Local ATM address registry */
/* Written 1995-2000 by <NAME>, EPFL LRC/ICA */
#ifndef NET_ATM_ADDR_H
#define NET_ATM_ADDR_H
#include <linux/atm.h>
#include <linux/atmdev.h>
void atm_reset_addr(struct atm_dev *dev);
int atm_add_addr(struct atm_de... | code_c | code | 147 | null |
// Copyright (c) 2018-2019 The Ring Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef RING_QT_UICOLOURS_H
#define RING_QT_UICOLOURS_H
// Ring-fork: Simple palette skinning system
#define SKIN_TEXT ... | code_c | code | 385 | null |
<filename>MagickCore/vision.c<gh_stars>1-10
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | code_c | code | 14,590 | null |
<reponame>tonghua209/samsun6410_linux_3_0_0_1_for_aws
/*******************************************************************************
*
* Module Name: rsaddr - Address resource descriptors (16/32/64)
*
******************************************************************************/
/*
* Copyright (C) 2000 - 2011,... | code_c | code | 3,566 | null |
<reponame>codyd51/axle
/* Copyright (C) 2007 <NAME>
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
/*
FUNCTION
<<open_memstream>>, <<open_wmemstream>>---open a write stream around an arbitrary-length string
INDEX
open_memstream
INDEX... | code_c | code | 3,181 | null |
// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-
/******************************************************************************
*
* file: StandardTraits.h
*
* Copyright (c) 2007, <NAME>, <NAME> .
* All rights reverved.
*
* See the file COPYING in the top directory of this distribution for
* more i... | code_c | code | 1,287 | null |
<reponame>MysticChan/LoRaMac-node
/*!
* \file RegionRU864.c
*
* \brief Region implementation for RU864
*
* \copyright Revised BSD License, see section \ref LICENSE.
*
* \code
* ______ _
* / _____) _ | |
* ... | code_c | code | 8,851 | null |
<filename>source/uwp/Renderer/lib/AdaptiveTextInput.h
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "AdaptiveCards.Rendering.Uwp.h"
#include "Enums.h"
#include "TextInput.h"
#include "AdaptiveInputElement.h"
namespace AdaptiveNamespace
{
clas... | code_c | code | 1,851 | null |
// SPDX-License-Identifier: GPL-2.0
#include <linux/syscalls.h>
#include <linux/signal.h>
#include <linux/unistd.h>
#include <asm/syscalls.h>
#undef __SYSCALL
#define __SYSCALL(nr, call) [nr] = (call),
void *sys_call_table[__NR_syscalls] = {
#include <asm/unistd.h>
};
| code_c | code | 77 | null |
<filename>chromecast/browser/tts/tts_controller.h
// Copyright (c) 2018 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.
// PLEASE NOTE: this is a copy with modifications from chrome/browser/speech.
// It is temporary unt... | code_c | code | 3,206 | null |
/**************************** vectorf128.h *******************************
* Author: <NAME>
* Date created: 2012-05-30
* Last modified: 2019-08-01
* Version: 1.40.00
* Project: vector class library
* Description:
* Header file defining 128-bit floating point vector classes
*
* Instructio... | code_c | code | 28,651 | null |
/*
* Copyright (C) <NAME> <<EMAIL>>
*
* 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... | code_c | code | 686 | null |
#ifndef Magnum_Vk_ImageCreateInfo_h
#define Magnum_Vk_ImageCreateInfo_h
/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
2020, 2021 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a
copy of th... | code_c | code | 8,741 | null |
<gh_stars>0
/*
* Elcomsoft Wireless Security Auditor (EWSA) Project File's Frame (3.02)
*
* Copyright (C) 2010 ZhaoChunsheng
*
* 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 ... | code_c | code | 5,227 | null |
<filename>cache_lat.c
/*
* https://stackoverflow.com/questions/21369381/measuring-cache-latencies
*/
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <unistd.h>
int i386_cpuid_caches(size_t *data_caches) {
int i;
int num_data_caches... | code_c | code | 1,870 | null |
/*
* "$Id: versioning.h 12420 2015-01-22 16:00:15Z msweet $"
*
* API versioning definitions for CUPS.
*
* Copyright 2007-2013 by Apple Inc.
*
* These coded instructions, statements, and computer programs are the
* property of Apple Inc. and are protected by Federal copyright
* law. Distribution and ... | code_c | code | 2,137 | null |
#line 2 "../src/kernel/hppa/asm0.h"
/* Copyright (C) 2004 The PARI group.
This file is part of the PARI/GP package.
PARI/GP 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. It is distributed in the hope that it ... | code_c | code | 808 | null |
//
// Created by <NAME> on 19.06.20.
//
#include "occclasses/managers/subscription.h"
OCAC_CLASS_TYPE(OcaSubscriptionManager) OCAC_CLASS_NAME(OcaSubscriptionManager) = {
.class_identification = {
.ClassID = OCAC_CLASS_SUBSCRIPTIONMANAGER_ID,
.ClassVersion = OCAC_CLASS_SUBSCRIPTIONMANAGER_VERSION... | code_c | code | 789 | null |
<reponame>wdeconinck/atlas<gh_stars>10-100
/*
* (C) Copyright 2013 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted ... | code_c | code | 381 | null |
//
// MPIOSAncestorView.h
// mp_ios_runtime
//
// Created by PonyCui on 2021/10/9.
// Copyright © 2021 MPFlutter. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class MPIOSComponentView;
@interface MPIOSAncestorView : NSObject
@property (nonatomic, readonly) NSDictionary *co... | code_c | code | 148 | null |
<filename>Digital Count DownTimer.c<gh_stars>0
/***********************************************************************
Program for counter.
Program Written by <NAME>
Email: <EMAIL>;
***********************************************************************/
// LCD module connections
sbit LCD_RS at RA0_bit;
sbit ... | code_c | code | 886 | null |
<filename>tool/generate/com/IWbemServices.h
#include "windows.h"
#include "Shobjidl.h"
#include "Wbemidl.h"
// vtable_start 3
MIDL_INTERFACE("9556dc99-828c-11cf-a37e-00aa003240c7")
IWbemServices : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE OpenNamespace(
/* [in] */ __RPC__in const BSTR st... | code_c | code | 2,048 | null |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... | code_c | code | 1,346 | null |
/*
* JFFS2 -- Journalling Flash File System, Version 2.
*
* Copyright © 2006 NEC Corporation
*
* Created by <NAME> <<EMAIL>>
*
* For licensing information, see the file 'LICENCE' in this directory.
*
*/
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/fs.h>
#include <linux/time.h>
#include <... | code_c | code | 11,024 | null |
<reponame>magicode/mmmagic
/*
* Copyright (c) <NAME> 1986-1995.
* Software written by <NAME> and others;
* maintained 1995-present by <NAME> and others.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Re... | code_c | code | 20,398 | null |
<filename>ios/versioned-react-native/ABI8_0_0/React/Base/ABI8_0_0RCTEventDispatcher.h
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of... | code_c | code | 924 | null |
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | code_c | code | 1,990 | null |
<reponame>ThakurKarthik/expo
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <Foundation/Foundation.h>
#import <ReactABI31_0_0/ABI31_0_0RCTBridgeModule.h>
@protocol ABI31_0_0... | code_c | code | 376 | null |
#pragma once
#include <cstdint>
#include <functional>
#include <memory>
#include <queue>
#include <string>
#include "envoy/admin/v3/config_dump.pb.h"
#include "envoy/config/core/v3/config_source.pb.h"
#include "envoy/config/route/v3/route.pb.h"
#include "envoy/config/route/v3/route.pb.validate.h"
#include "envoy/conf... | code_c | code | 3,383 | null |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | code_c | code | 365 | null |
<gh_stars>1-10
/*
* Copyright (c) 2018 ARM Limited. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* 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.... | code_c | code | 2,008 | null |
/* $NetBSD: cacreg.h,v 1.5 2001/01/10 16:48:04 ad Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modification, ... | code_c | code | 1,980 | null |
/* SPDX-License-Identifier: MIT */
#pragma once
#include <define.h>
#include <malloc/malloc.h>
#include <x86/defs.h>
namespace captive {
namespace arch {
namespace x86 {
struct X86Register {
X86Register(const char *name, uint8_t size, uint8_t raw_index, bool hi = false, bool nw = false) : name(name), size... | code_c | code | 6,061 | null |
<filename>Source/C/Common/OsPath.h
/** @file
Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. ... | code_c | code | 850 | null |
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 - 2021, the Anboto author and contributors
#ifndef _STEM4U_Rational_h_
#define _STEM4U_Rational_h_
namespace Upp {
class Rational : public Moveable<Rational> {
public:
Rational() : num(0), den(1) {}
Rational(const Rational& v) {
num = v.num;
den = v.den;... | code_c | code | 1,860 | null |
<reponame>kjthegod/chromium
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_
#define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_
#in... | code_c | code | 352 | null |
<gh_stars>0
#ifndef CORELIB___MSWIN_NO_POPUP__H
#define CORELIB___MSWIN_NO_POPUP__H
/* $Id: mswin_no_popup.h 607865 2020-05-08 12:35:14Z ivanov $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Bi... | code_c | code | 656 | null |
<filename>core/src/wallet/bitcoin/transaction_builders/BitcoinLikeTransactionBuilder.h
/*
*
* BitcoinLikeTransactionBuilder.h
* ledger-core
*
* Created by <NAME> on 27/03/2018.
*
* The MIT License (MIT)
*
* Copyright (c) 2017 Ledger
*
* Permission is hereby granted, free of charge, to any person obtaining a ... | code_c | code | 1,854 | null |
<gh_stars>1-10
/*
* Copyright (C) 2007 The Android Open Source Project
* Copyright (C) 2015-2017 Intel Corporation
* Copyright (c) 2017, Fuzhou Rockchip Electronics Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | code_c | code | 545 | null |
<gh_stars>1-10
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*/
#pragma once
#include "mcrouter/config.h"
namespace facebook {
namespace memcache {
namespace mcrouter {
/* Time P... | code_c | code | 139 | null |
/*
* FreeRTOS HTTPS Client V1.2.0
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* 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, i... | code_c | code | 27,689 | null |
<filename>net/tipc/bcast.h<gh_stars>1-10
/*
* net/tipc/bcast.h: Include file for TIPC broadcast code
*
* Copyright (c) 2003-2006, 2014-2015, Ericsson AB
* Copyright (c) 2005, 2010-2011, Wind River Systems
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificatio... | code_c | code | 1,308 | null |
#pragma once
#include "detail/ForwardDecl.h"
namespace Ubpa {
template<typename V, typename E, typename P = EmptyP<V, E>>
class TEdge {
private:
// internal use
using HE = THalfEdge<V, E, P>;
public:
HE* const HalfEdge() { return halfEdge; }
const HE* const HalfEdge() const { return const_cast<TEdge*>(th... | code_c | code | 341 | null |
/****************************************************************************/
/* hotkey.c */
/* */
/* RDP Shadow hotkey handling functions. */
... | code_c | code | 5,999 | null |
// Copyright © 2016 <NAME>.
//
// This file is part of mxml. The full mxml copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#pragma once
#include "Event.h"
#include <mxml/dom/Sound.h>
#include <mx... | code_c | code | 629 | null |
<filename>Python/context.c
#include "mython.h"
#include "pycore_context.h"
#include "pycore_gc.h" // _PyObject_GC_MAY_BE_TRACKED()
#include "pycore_hamt.h"
#include "pycore_object.h"
#include "pycore_pyerrors.h"
#include "pycore_pystate.h" // _PyThreadState_GET()
#include "structmember.h" // P... | code_c | code | 8,842 | null |
/*
* driver/pwm-v3s.c
*
* Copyright(c) 2007-2020 <NAME> <<EMAIL>>
* Official site: http://xboot.org
* Mobile phone: +86-18665388956
* QQ: 8192542
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* i... | code_c | code | 1,836 | null |
// Copyright 2018 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.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_FINDER_FIND_TASK_CONTROLLER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_FINDER_FIND_TASK_CONTROLLER... | code_c | code | 1,696 | null |
<filename>include/GEPSplitter.h
#ifndef GEPSPLITTER_H
#define GEPSPLITTER_H
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/CallSite.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Support/raw_ostream.h"
#include "Common.h"
namespace gepsplitter {
class G... | code_c | code | 183 | null |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
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 o... | code_c | code | 711 | null |
// Created by <NAME> and <NAME>
// Copyright (c) 2013 OpenKit. All rights reserved.
//
#import <Foundation/Foundation.h>
#define OK_UNSUBSCRIBED_USER_ERROR_CODE 410
@interface OKNetworker : NSObject
+(int)getStatusCodeFromAFNetworkingError:(NSError*)error;
+ (void)requestWithMethod:(NSString *)method
... | code_c | code | 269 | null |
#pragma once
#ifndef _RIBBON_REFSTRING_H_
#define _RIBBON_REFSTRING_H_
namespace Ribbon {
namespace RefStringInternal {
struct StringMemoryImage final
{
std::atomic_uint m_refCount; // 4
uint16_t m_length; // 2
char16_t m_str[1]; // 10(=4), 26(=12), 42(=20)
uint32_t DecrementReference();
uint32_t Increme... | code_c | code | 995 | null |
/*
* (C) Copyright 2010
* <NAME>, ST Micoelectronics, <<EMAIL>>.
*
* (C) Copyright 2009
* Marvell Semiconductor <www.marvell.com>
* Written-by: <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/io.h>
#include <usb.h>
#include "ehci.h"
#include <asm/arch/hardware.h>
#i... | code_c | code | 471 | null |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_BASE_MOCK_MEDIA_LOG_H_
#define MEDIA_BASE_MOCK_MEDIA_LOG_H_
#include <memory>
#include <string>
#include "base/macros.h"
#include "media/b... | code_c | code | 402 | null |
<filename>Kernel/FileSystem/Plan9FileSystem.h<gh_stars>0
/*
* Copyright (c) 2020, <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must... | code_c | code | 1,709 | null |
/* Table of stab names for the BFD library.
Copyright 1990, 1991, 1992, 1994, 1995, 1996, 2000, 2005, 2007
Free Software Foundation, Inc.
Written by <NAME>.
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
it under the... | code_c | code | 612 | null |
/*
* Table of the DAVINCI register configurations for the PINMUX combinations
*
* Author: <NAME>, MontaVista Software, Inc. <<EMAIL>>
*
* Based on linux/include/asm-arm/arch-omap/mux.h:
* Copyright (C) 2003 - 2005 Nokia Corporation
*
* Written by <NAME>
*
* 2007 (c) MontaVista Software, Inc. This file is lice... | code_c | code | 6,352 | null |
#include <api.h>
void System_w_FromParent_setup() {
ecs_tracing_enable(-3);
}
static
void Iter(ecs_iter_t *it) {
Mass *m_ptr = ecs_term(it, Mass, 1);
bool shared = false;
if (m_ptr) {
shared = !ecs_term_is_owned(it, 1);
}
Position *p = NULL;
Velocity *v = NULL;
if (it->t... | code_c | code | 9,912 | null |
#pragma once
#include <glbinding/nogl.h>
#include <glbinding/gl/values.h>
namespace gl43core
{
// import values to namespace
using gl::GL_INVALID_INDEX;
using gl::GL_TIMEOUT_IGNORED;
} // namespace gl43core | code_c | code | 61 | null |
<filename>dlls/xmllite/writer.c<gh_stars>1-10
/*
* IXmlWriter implementation
*
* Copyright 2011 <NAME>
* Copyright 2014, 2016 <NAME> CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Softw... | code_c | code | 12,204 | null |
/*
* Thread pooling
*
* Copyright (c) 2006 <NAME>
* Copyright (c) 2014-2016 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at y... | code_c | code | 29,945 | null |
/*
* SpanDSP - a series of DSP components for telephony
*
* private/fax.h - private definitions for analogue line ITU T.30 fax processing
*
* Written by <NAME> <<EMAIL>>
*
* Copyright (C) 2005 <NAME>
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under... | code_c | code | 428 | null |
<gh_stars>1000+
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* pkix_pl_generalname.c
*
* GeneralName Object Definitions
*
*/
#include "pkix_pl_generaln... | code_c | code | 8,583 | null |
<filename>VideoEdit_GPUImage/classes/ShootVideo/subViews/BeautifySlideView.h
//
// BeautifySlideView.h
// MHShortVideo
//
// Created by 马浩 on 2018/11/19.
// Copyright © 2018 mh. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol BeautifySlideDelegate;
@interface BeautifySlideView : UIView
@property(nonato... | code_c | code | 170 | null |
#ifndef JOBCONTROLLER_H
#define JOBCONTROLLER_H
#include <atomic>
#include <queue>
#include <mutex>
#include <condition_variable>
#include <functional>
namespace holodec {
struct JobContext {
uint32_t threadId;
};
struct Job {
uint64_t id;
std::function<void (JobContext) > func;
};
struct JobController {... | code_c | code | 280 | null |
<gh_stars>1-10
/*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directo... | code_c | code | 237 | null |
//
// CentrixlinkAD.h
// Centrixlink
//
// Created by 王俊拯 on 16/6/14.
// Copyright © 2016年 Centrixlink. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "CentrixlinkConst.h"
#import "CentrixlinkProtocol.h"
#import "CLSLog.h"
NS_ASSUME_NONNULL_BEGIN
@class UIViewControlle... | code_c | code | 564 | null |
<reponame>wall72/LifeLog
//
// Resource.h
// LifeLog
//
// Created by cliff on 11. 4. 12..
// Copyright 2011 teamzepa. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@class Note;
@interface Resource : NSManagedObject {
@private
}
@property (nonatomic, retain) NSString ... | code_c | code | 295 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.