text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
/*-
* Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
#include "wt_internal.h"
/*
* __async_get_key --
* WT_ASYNC_OP->get_key implementation for op handles.
*/
static int
__async_get_key(WT_ASYN... | code_c | code | 2,504 | null |
<gh_stars>10-100
/*
* Copyright © 2014 Broadcom
*
* 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, me... | code_c | code | 8,013 | null |
#include "test.h"
static_BAR(bar3, 2);
static void proc3()
{
int result;
result = bar_wait(bar3); ASSERT_success(result);
result = bar_wait(bar2); ASSERT_success(result);
tsk_stop();
}
static void proc2()
{
int result;
... | code_c | code | 642 | null |
<filename>cgv/gui/gui_driver.h
#pragma once
#include <cgv/base/base.h>
#include <cgv/signal/signal.h>
#include <cgv/data/ref_counted.h>
#include "button.h"
#include "gui_group.h"
#include "view.h"
#include "control.h"
#include "window.h"
#include "application.h"
#include "text_editor.h"
#include "lib_begin.h"... | code_c | code | 2,042 | null |
<filename>Demo/BaseSection/THKPushPopAnimationTransition/LoadingAnimationView/Layers/THKComponentView.h
//
// THKComponentView.h
// HouseKeeper
//
// Created by ben.gan on 2021/4/30.
// Copyright © 2021 binxun. All rights reserved.
//
#import "THKView.h"
NS_ASSUME_NONNULL_BEGIN
@interface THKComponentView : THKV... | code_c | code | 100 | null |
/**
* Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
*
*
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of cond... | code_c | code | 5,008 | null |
#include "rfs.h"
#include "wifi.h"
#include <unistd.h>
#include <string.h>
#define MS_TO_US 1000
#define MAX_BUF 100
char * exec = "dofile(\"send_http_requests.lua\")";
char send_buf[MAX_BUF];
const char * parked_func = "OCCUPIED,";
const char * left_func = "LEFT,";
const char * correct = "CORRECT,";
c... | code_c | code | 963 | null |
<reponame>seleuco/MAME4droid_Native<gh_stars>1-10
/*
* Thunder Ceptor board
* (C) 1986 Namco
*
* Hardware analyzed by nono
* Driver by BUT
*/
#include "emu.h"
#include "cpu/m6502/m6502.h"
#include "cpu/m6809/m6809.h"
#include "cpu/m6800/m6800.h"
#include "cpu/m68000/m68000.h"
#include "includes/namcoic.h"
#i... | code_c | code | 6,216 | null |
<reponame>tkopacz/FY19AzureAppCouchbaseDriver
/*
* Copyright 2018 Couchbase, 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/LIC... | code_c | code | 4,925 | null |
<gh_stars>1-10
/*-------------------------------------------------------------------------
*
* rewriteSupport.c
*
*
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bac... | code_c | code | 750 | null |
<reponame>xujiebing/DBJSCore
//
// DBJSCoreAppDelegate.h
// DBJSCore
//
// Created by xujiebing on 05/13/2019.
// Copyright (c) 2019 xujiebing. All rights reserved.
//
@import UIKit;
@interface DBJSCoreAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| code_c | code | 89 | null |
#include<stdio.h>
void changeElem(int*);
int main(){
int e;
e = 5;
changeElem(&e);
printf("%d",rand());
}
void changeElem(int* e){
int temp = 3;
*e = temp;
} | code_c | code | 51 | null |
<gh_stars>0
#ifndef __GABEDIT_MPQCMOLECULE_H__
#define __GABEDIT_MPQCMOLECULE_H__
void initMoleculeButtons();
void initMPQCMolecule();
void freeMPQCMolecule();
void putMPQCGeometryInfoInTextEditor();
gboolean setMPQCMolecule();
void createMPQCSymmetryFrame(GtkWidget *win, GtkWidget *box);
#endif /* __GABEDIT_MPQCMOL... | code_c | code | 95 | null |
<filename>ngx_poold.c<gh_stars>1-10
/*
* Copyright (C) AlexWoo(<NAME>) <EMAIL>
*/
#include "ngx_poold.h"
#include "ngx_map.h"
typedef struct ngx_poold_node_s ngx_poold_node_t;
static ngx_pool_t *ngx_poold_pool;
static ngx_map_t ngx_poold_map;
static ngx_poold_node_t *ngx_poold... | code_c | code | 1,288 | null |
<reponame>nguyenlkdn/agv-master<filename>libmodbus/src/modbus.h<gh_stars>10-100
/*
* Copyright © 2001-2013 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef MODBUS_H
#define MODBUS_H
/* Add this for macros that defined unix flavor */
#if (defined(__unix__) || defined(unix)) && !defined(USG)
#incl... | code_c | code | 3,200 | null |
// Copyright (C) Microsoft Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include "stdafx.h"
#include <string>
#include "AppWindow.h"
#include "ComponentBase.h"
#include "HostObjectSample_h.h"
class ScenarioAdd... | code_c | code | 187 | null |
<filename>third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h
// Copyright 2017 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 CopylessPasteServer_h
#define CopylessPasteServer_h
#include ... | code_c | code | 286 | null |
#include <term.h>
#define exit_upward_mode tigetstr("rum")
/** enable downward (normal) carriage motion **/
/*
TERMINFO_NAME(rum)
TERMCAP_NAME(ZX)
XOPEN(400)
*/
| code_c | code | 46 | null |
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyr... | code_c | code | 6,207 | null |
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is ... | code_c | code | 2,324 | null |
#include "clocks.h"
#include "enable_disable_enum.h"
#include "stm32f30x_new.h"
void enableAhbPeriphClk(RCC_AHBENR_t periph, EN_t state)
{
if(state == ENABLE)
{
RCC->AHBENR |= periph;
}
else
{
RCC->AHBENR &= ~periph;
}
}
void enableApb1PeriphClk(RCC_APB1ENR_t periph, EN_t state)... | code_c | code | 180 | null |
/*
Copyright (C) 2006-2007 <NAME>
This program 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 3 of the License, or
(at your option) any later version.
This program is distributed i... | code_c | code | 3,732 | null |
#ifndef SCENE_H
#define SCENE_H
#include <vector>
#include <assimp/mesh.h>
#include <assimp/scene.h>
#include "eigen.h"
#include "primitive.h"
#include "material.h"
#include "dynparams.h"
class Scene
{
private:
class Node
{
public:
Node(const std::string& name);
Node(const aiNode *node); // construct a... | code_c | code | 1,325 | null |
<reponame>blade-lang/blade
#ifdef _MSC_VER
#pragma warning (disable : 4113)
#pragma warning (disable : 4047)
#pragma warning (disable : 5105)
#endif
#include "module.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#else
#include "blade_unistd.h"
#endif /* HAVE_UNISTD_H */
#include "util.h"
#include <errno.h>
#include <st... | code_c | code | 2,346 | null |
<reponame>parsiad/FreeRDP<filename>libfreerdp/primitives/prim_YUV.c
/**
* FreeRDP: A Remote Desktop Protocol Implementation
* Generic YUV/RGB conversion operations
*
* Copyright 2014 <NAME> <<EMAIL>>
* Copyright 2015-2017 <NAME> <<EMAIL>>
* Copyright 2015-2017 <NAME> <<EMAIL>>
* Copyright 2015-2017 <NAME>
* Cop... | code_c | code | 13,686 | null |
#include "TM4C123.h"
#include <stdint.h>
int main()
{
SysTick->CTRL = 0x0; // Disable SysTick during setup
SysTick->LOAD = 4000000; // Initial counter value for 1 sec since the clock period is 250 ns
SysTick->VAL = 0x0; // Clear the COUNT bit of the CTRL register
SysTick->CTRL = 0x3; // Enable timer, ... | code_c | code | 211 | null |
<filename>pru/include/c++/10.1.0/bits/stl_iterator.h
// Iterators -*- C++ -*-
// Copyright (C) 2001-2020 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as... | code_c | code | 19,923 | null |
<gh_stars>1-10
#ifndef ANT_CHANNEL_CONFIG_H__
#define ANT_CHANNEL_CONFIG_H__
/** @file
*
* @defgroup ant_channel_config ANT channel configuration
* @{
* @ingroup ant_sdk_utils
* @brief ANT channel configuration module.
*/
#include <stdint.h>
#include "sdk_config.h"
#ifndef ANT_CONFIG_ENCRYPTED_CHANNELS
#e... | code_c | code | 565 | null |
<filename>include/linux/can/skb.h
/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
/*
* linux/can/skb.h
*
* Definitions for the CAN network socket buffer
*
* Copyright (C) 2012 <NAME> <<EMAIL>>
*
*/
#ifndef _CAN_SKB_H
#define _CAN_SKB_H
#include <linux/types.h>
#include <linux/skbuff.h>
#include <linux... | code_c | code | 1,332 | null |
<reponame>UVicFormulaMotorsport/MCC-EVBrain-EVSTM
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file stm32f4xx_it.c
* @brief Interrupt Service Routines.
******************************************************************************
* @attent... | code_c | code | 2,168 | null |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <limits.h>
#include <math.h>
#include <stdint.h>
/* link with -D_GNU_SOURCE */
#include <crypt.h>
uint64_t ilog2(uint64_t x)
{
__float128 y=x;
__int128_t i = *(__int128_t*)&y;
return x?(i>>112)-16383:-1;... | code_c | code | 654 | null |
<gh_stars>0
/**
* HypnoStarsAppDelegate.h
* HypnoStars
*
* Created by <NAME> on 05.04.10.
* Copyright 2010 <NAME>. All rights reserved.
*/
#import <UIKit/UIKit.h>
@class EAGLView;
@interface HypnoStarsAppDelegate : NSObject<UIApplicationDelegate>
{
UIWindow* window;
EAGLView* glView;
}
@property (nonatomic,... | code_c | code | 119 | null |
<reponame>Ponny035/LFS
// SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2017-2018, The Linux foundation. All rights reserved.
#include <linux/clk.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/log2.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include... | code_c | code | 5,448 | null |
<filename>kernel/kernel-4.9/arch/powerpc/kernel/setup_64.c
/*
*
* Common boot and setup code.
*
* Copyright (C) 2001 PPC64 Team, IBM Corp
*
* 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 Sof... | code_c | code | 6,040 | null |
//
// Vector2.h
// SimpleGameEngine
//
// Created by C0deH4cker on 12/7/13.
// Copyright (c) 2013 C0deH4cker. All rights reserved.
//
#ifndef _SGE_VECTOR2_H_
#define _SGE_VECTOR2_H_
#include <ostream>
#include "sge_depends.h"
#include "Matrix.h"
namespace sge {
/*! A two-dimensional vector. */
struct Vector2 ... | code_c | code | 1,492 | null |
<filename>archive/test/manual/cedet/tests/testsppreplace.c
/* testsppreplace.c --- unit test for CPP/SPP Replacement
Copyright (C) 2007-2018 Free Software Foundation, Inc.
Author: <NAME> <<EMAIL>>
This file is part of GNU Emacs.
GNU Emacs is free software: you can redistribute it and/or modify
it unde... | code_c | code | 1,002 | null |
/////////////////////////////////////////////////////////////////////////////
// Name: cpp/e_cback.h
// Purpose: callback helper class for events
// Author: <NAME>
// Modified by:
// Created: 29/10/2000
// RCS-ID: $Id: e_cback.h 3374 2012-09-26 11:37:03Z mdootson $
// Copyright: (c) 2000-2001... | code_c | code | 460 | null |
<reponame>mkannwischer/PQClean
#ifndef POLY_H
#define POLY_H
#include "SABER_params.h"
#include <stdint.h>
typedef union {
uint16_t coeffs[SABER_N];
} poly;
void PQCLEAN_FIRESABER_CLEAN_MatrixVectorMul(poly c[SABER_L], const poly A[SABER_L][SABER_L], const poly s[SABER_L], int16_t transpose);
void PQCLEAN_FIRES... | code_c | code | 201 | null |
<filename>platform/or1ksim/platform.c
/*
* Copyright (c) 2015 <NAME>
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#include <lk/reg.h>
#include <kernel/thread.h>
#include <dev/uart.h>
#include <dev/timer/or1k_t... | code_c | code | 511 | null |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2019 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | code_c | code | 4,174 | null |
<reponame>JiaYuanchao/JYCTransitionAnimation
//
// JYCAppDelegate.h
// JYCTransitionAnimation
//
// Created by jiayuanchao on 06/05/2017.
// Copyright (c) 2017 jiayuanchao. All rights reserved.
//
@import UIKit;
@interface JYCAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindo... | code_c | code | 96 | null |
<gh_stars>10-100
// HashCtx.h -- declaration of CHashContext
// (c) Copyright Schlumberger Technology Corp., unpublished work, created
// 1998. This computer program includes Confidential, Proprietary
// Information and is a Trade Secret of Schlumberger Technology Corp. All
// use, disclosure, and/or reproduction... | code_c | code | 1,001 | null |
<gh_stars>10-100
#ifndef _NSBASIC_C_
#define _NSBASIC_C_
#include "nsbasic.h"
extern struct basc_pref bp;
typedef struct
{
UInt16 trap15;
UInt16 libCall;
UInt16 ret[7];
} CodeBlockType;
CodeBlockType code_block;
#ifdef __MC68K__
extern char *devel_address(struct dataelem *arg, unsigned int ... | code_c | code | 16,058 | null |
#pragma once
namespace ClipboardManagerFoundation
{
namespace Base
{
static public ref class MainStaticObject sealed
{
#pragma region Commands
#pragma region ApplicationExitCommand
private:
static void ApplicationExit(Platform::Object^ parameter);
public:
static property Windows::UI::Xaml::Input::IC... | code_c | code | 402 | null |
<reponame>jainsakshi2395/linux
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.
*
* @File ctresource.h
*
* @Brief
* This file contains the definition of generic hardware resources for
* resource management.
*
* @Author <NAME>
* @Date May 13 20... | code_c | code | 617 | null |
<gh_stars>1-10
#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include "gamma.h"
#include <stdbool.h>
#include <string.h>
int main() {
/*
scenario: test_random_actions
uuid: 535190650
*/
/*
random actions, total chaos
*/
gamma_t* board = gamma_new(7, 10, 7, 6);
assert( board != NULL )... | code_c | code | 3,464 | null |
<filename>ompi/mca/io/romio321/romio/adio/ad_pvfs/ad_pvfs_hints.c
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
*
* Copyright (C) 1997 University of Chicago.
* See COPYRIGHT notice in top-level directory.
*/
#include "ad_pvfs.h"
void ADIOI_PVFS_SetInfo(ADIO_File fd, MPI_Info users_info... | code_c | code | 1,434 | null |
<filename>zuozhu/MyUI/YXImageScrollView.h
//
// YXImageScrollView.h
// XieJin
//
// Created by zyhang on 12/16/13.
// Copyright (c) 2013 zyhang. All rights reserved.
//
#import "YXBaseView.h"
//照片集
@interface YXImageScrollView : YXBaseView {
NSDictionary* config_;
NSMutableArray* _imageArray;
}
- (void... | code_c | code | 110 | null |
/*
* Copyright (c) 2015, Xerox Corporation (Xerox) and Palo Alto Research Center, Inc (PARC)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain... | code_c | code | 3,655 | null |
<filename>Sources/common/erm/math/BoundingBox.h<gh_stars>1-10
#pragma once
#include "erm/math/mat.h"
#include "erm/math/vec.h"
namespace erm {
template<typename T>
class BoundingBox
{
public:
BoundingBox(const T& min, const T& max)
: mMin(min)
, mMax(max)
{}
BoundingBox(const T& size)
: BoundingBox(size, s... | code_c | code | 382 | null |
<reponame>wqk317/mi8_kernel_source<filename>mi8/include/microvisor/kernel/syscalls.h<gh_stars>0
/*
* Copyright (c) 2012-2018 General Dynamics
* Copyright (c) 2014 Open Kernel Labs, Inc
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, prov... | code_c | code | 46,452 | null |
/*!The Treasure Box Library
*
* 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 wr... | code_c | code | 1,292 | null |
<reponame>leetobin/firebrick
/* $NoKeywords:$ */
/**
* @file
*
* mnflowRb.c
*
* RidgeBack initializer for MCT and DCT
*
* @xrefitem bom "File Content Label" "Release Content"
* @e project: AGESA
* @e sub-project: (Mem/NB/RB)
* @e \$Revision: 44324 $ @e \$Date: 2010-12-22 17:16:51 +0800 (Wed, 22 Dec 2010) $
*... | code_c | code | 1,410 | null |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | code_c | code | 660 | null |
#pragma once
#include "common.h"
#include "components/collidable.h"
#include "ecs.h"
#include "math/vector2.h"
#include "systems/physics.h"
#include "systems/renderable.h"
class SCollision : public System
{
Map<int, CCollidable*> collisionComponents; // Keep local cache of collision
... | code_c | code | 1,819 | null |
#pragma once
#include <gideon/cs/shared/data/Coordinate.h>
#include <gideon/cs/shared/data/ObjectInfo.h>
namespace gideon { namespace zoneserver { namespace gc {
/**
* @class MovementCallback
*/
class MovementCallback
{
public:
virtual ~MovementCallback() {}
public:
virtual void entityGoneToward(const Gam... | code_c | code | 324 | null |
#ifndef _MI_PLUGIN_H_
#define _MI_PLUGIN_H_
#define miplCreatePlugin_funcName "miplCreatePlugin"
typedef MI_API miPlugin* (MI_C_DECL*miplCreatePlugin_t)();
// base class for all plugins
class miPlugin
{
public:
miPlugin() {}
virtual ~miPlugin() {}
virtual const wchar_t* GetName() { return L"Plugin name"; }
virt... | code_c | code | 467 | null |
/* @migen@ */
/*
**==============================================================================
**
** WARNING: THIS FILE WAS AUTOMATICALLY GENERATED. PLEASE DO NOT EDIT.
**
**==============================================================================
*/
#ifndef _CIM_BindsToLANEndpoint_h
#define _CIM_BindsToLANEndp... | code_c | code | 2,731 | null |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2012 <NAME>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) ... | code_c | code | 3,129 | null |
<filename>opcua/open62541/include/open62541/types.h
/* 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/.
*
* Copyright 2014 (c) <NAME>
* Copyright 2014, 2016-2017... | code_c | code | 10,201 | null |
<gh_stars>0
/*
* Copyright 2002-2005 <NAME>
* Copyright 2002-2005 <NAME>
* Copyright 2005 <NAME>
* Copyright 2007-2009, 2013 <NAME> for CodeWeavers
* Copyright 2009-2011 <NAME> for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General... | code_c | code | 15,577 | null |
<filename>Example/Pods/Target Support Files/R3LRackspace/R3LRackspace-umbrella.h
#import <UIKit/UIKit.h>
FOUNDATION_EXPORT double R3LRackspaceVersionNumber;
FOUNDATION_EXPORT const unsigned char R3LRackspaceVersionString[];
| code_c | code | 64 | null |
<filename>ScriptHookDotNet/VertexFormats.h
/*
* Copyright (c) 2009-2011 Hazard (<EMAIL> / 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, includin... | code_c | code | 1,273 | null |
// sys/sem.h
// 2018/10/29 Robin.<EMAIL>
// License open source MIT
#ifndef sys_sem_h
#define sys_sem_h
#include <unistd.h>
#include <sys/ipc.h>
#include <sys/types.h>
#include <vector>
#include <map>
#include "../../portable/stub.h"
#ifndef SEMS_MAX_COUNT
#define SEMS_MAX_COUNT 255
#endif
#define ... | code_c | code | 965 | null |
//-------------------------------------------------------------------------
/*
Copyright (C) 2010-2019 EDuke32 developers and contributors
Copyright (C) 2019 Nuke.YKT
This file is part of NBlood.
NBlood is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License versio... | code_c | code | 651 | null |
<gh_stars>1-10
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef UTCOMMON_H
#define UTCOMMON_H
#include <gtest/gtest.h>
#include "gmock/gmock.h"
#include <k4a/k4atypes.h>
#include <ostream>
// Define the output operator for k4a_result_t types for clean test outp... | code_c | code | 226 | null |
/*!
MBGeneralSegue
MBAppKit
Copyright © 2018 RFUI.
Copyright © 2016 <NAME>Yuan Information Technology Co., Ltd.
https://github.com/RFUI/MBAppKit
Apache License, Version 2.0
http://www.apache.org/licenses/LICENSE-2.0
*/
#import <RFKit/RFRuntime.h>
/*!
UIViewController 基类的 prepareForSegue:sender: 方法已被重载为符合 ... | code_c | code | 951 | null |
<gh_stars>100-1000
//===-- EmitRaisedOutputPass.h ----------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===--------... | code_c | code | 524 | null |
<gh_stars>100-1000
/* vi:set ts=8 sts=4 sw=4 noet:
*
* VIM - Vi IMproved by <NAME>
*
* Do ":help uganda" in Vim to read copying and usage conditions.
* Do ":help credits" in Vim to see a list of people who contributed.
* See README.txt for an overview of the Vim source code.
*/
/*
* spellsuggest.c: functions ... | code_c | code | 34,653 | null |
<filename>intro to c/in_out_char.c<gh_stars>0
#include<stdio.h>
void main(){
int a = 4;
char b = 's';
float c = 4.34;
printf("%d\n", a);
printf("%c\n", b);
printf("%f", c);
int num;
printf("Enter no: ");
scanf("%d", &num);
printf("Your no: %d", num);
} | code_c | code | 83 | null |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011-2014, <NAME>, Inc.
* Copyright (c) 2014-2016, Open Source Robotics Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditio... | code_c | code | 3,070 | null |
/**
* \file
* \author <NAME>
* \date 2010-10-18
* \brief Definition of the ProcessModel class.
*
* \copyright
* Copyright (c) 2013, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http... | code_c | code | 779 | null |
#include <stdio.h>
#include <stdlib.h>
int main(){
int num, num2 ;
num = 20;
num2 = 5;
int soma = num + num2;
printf("A soma eh igual a : %i\n", soma);
int subtracao = num - num2;
printf("O valor da subtracao eh igual a : %i\n", subtracao);
int divisao = num / num2;
printf("O va... | code_c | code | 141 | null |
<filename>engine_test/shader_tests/src/graphics/mesh/mesh_handler.h
#pragma once
#include <array>
#include <string>
#include <vector>
#include <sstream>
#include <fstream>
#include <iostream>
#include <unordered_map>
#include "mesh_comp/cube.h"
#include "../../data/vec_dd.h"
#include "../../utils/detail.h"
#include "... | code_c | code | 1,279 | null |
<gh_stars>1-10
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <ctype.h>
#include <ndb.h>
#include "ndbhf.h"
static Ndb* doopen(char*, char*);
static void hffree(Ndb*);
static char *deffile = "#9/ndb/local";
/*
* the database entry in 'file' indicates the list of files
* that makeup the database. Ope... | code_c | code | 856 | null |
<gh_stars>1-10
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* T... | code_c | code | 652 | null |
<gh_stars>0
/*
CALICO
Renderer phase 2 - Wall prep
*/
#include "doomdef.h"
#include "r_local.h"
#include "mars.h"
static sector_t emptysector = { 0, 0, -2, -2, -2 };
void R_WallPrep(void) ATTR_DATA_CACHE_ALIGN ATTR_OPTIMIZE_SIZE;
static void R_WallEarlyPrep(viswall_t* segl) ATTR_DATA_CACHE_ALIGN ATTR_OPTIMIZE_S... | code_c | code | 3,267 | null |
/** @file
Copyright (c) 2017-2018, Arm Limited. All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses... | code_c | code | 256 | null |
#include <stdint.h>
#include <stdlib.h>
#include "vednn.h"
#include "velintrin.h"
#define VLEN (256)
static inline void k1(
const float * restrict pIn,
const float * restrict pKernel,
float * restrict const pOut,
const int64_t inChannel,
const int64_t inWidth,
const int64_t inHeight,
con... | code_c | code | 16,134 | null |
#pragma once
struct ShaderPath
{
enum struct Type { VERT, FRAG, GEOM, COMP, TESC, TESE } type;
std::string path;
ShaderPath(Type type, std::string const& path);
static unsigned GetGlType(Type type);
};
struct GpuProgram
{
GLuint programHandle;
std::vector<ShaderPath> shaderPathList;
GpuProgram();
virtual ~... | code_c | code | 221 | null |
#pragma once
#include "lab_m1/shooter/transform2D.h"
class bullet {
private:
glm::mat3 m_modelMatrix = glm::mat3(1);
glm::vec3 m_position = glm::vec3(0, 0, 1);
glm::vec3 m_initialPosition = glm::vec3(0, 0, 1);
glm::vec3 m_direction = glm::vec3(0, 0, 0);
float m_angle = 0.f;
float m_distance = 0.f;
... | code_c | code | 316 | null |
/*******************************************************************
#
#
# Copyright (c) Huawei Technologies Co., Ltd. 2013. All rights reserved.
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distrib... | code_c | code | 332 | null |
<gh_stars>1-10
// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef STORAGE_LEVELDB_UTIL_NFS_WRAPPER_H_
#define STORAGE_LEVELDB_UTIL_NFS_WRAPPER_H_
#include "nfs_version.h"
#include "../include/nfs... | code_c | code | 444 | null |
#pragma once
#include "painting2/RenderFilter.h"
#include <memmgr/Allocator.h>
namespace pt2
{
class RFBlur : public RenderFilter
{
public:
RFBlur()
: RenderFilter(FM_BLUR)
{}
virtual RenderFilter* Clone() const override {
return new (mm::AllocHelper::Allocate(Size())) RFBlur(*this);
}
virtual size_t Siz... | code_c | code | 109 | null |
<gh_stars>10-100
/*
File: JManager.h
Contains: Routines that can be used to invoke the Java Virtual Machine in MRJ
Version: Technology: MRJ 2.1
Release: QuickTime 6.0.2
Copyright: (c) 1996-2001 by Apple Computer, Inc., all rights reserved.
Bugs?: For... | code_c | code | 14,351 | null |
<filename>lab1/a1sliding/src/chap_fmt_plug.c
/* iSCSI CHAP authentication cracker. Hacked together during September of 2012
* by <NAME> <dhiru.kholia at gmail.com>.
*
* This software is Copyright (c) 2012, <NAME> <dhiru.kholia at gmail.com>,
* and it is hereby released to the general public under the following term... | code_c | code | 1,869 | null |
/*
* slant.c: Puzzle from nikoli.co.jp involving drawing a diagonal
* line through each square of a grid.
*/
/*
* In this puzzle you have a grid of squares, each of which must
* contain a diagonal line; you also have clue numbers placed at
* _points_ of that grid, which means there's a (w+1) x (h+1) array
* of ... | code_c | code | 18,277 | null |
<filename>lib/include/QDhcpDiscovery_global.h
#ifndef QDHCPDISCOVERY_GLOBAL_H
#define QDHCPDISCOVERY_GLOBAL_H
#include <QtCore/qglobal.h>
#if defined(QDHCPDISCOVERY_LIBRARY)
# define QDHCPDISCOVERYSHARED_EXPORT Q_DECL_EXPORT
#else
# define QDHCPDISCOVERYSHARED_EXPORT Q_DECL_IMPORT
#endif
#endif // QDHCPDISCOVERY_G... | code_c | code | 93 | null |
<reponame>google-ar/chromium
// Copyright (c) 2012 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 CHROME_BROWSER_HANG_MONITOR_HANG_CRASH_DUMP_WIN_H_
#define CHROME_BROWSER_HANG_MONITOR_HANG_CRASH_DUMP_WIN_H_
#i... | code_c | code | 292 | null |
<gh_stars>100-1000
#ifndef NO_TRAMPOLINES
extern void abort (void);
int x(int a, int b)
{
__label__ xlab;
__label__ xlab2;
void y(int b)
{
switch (b)
{
case 1: goto xlab;
case 2: goto xlab;
}
}
a = a + 2;
y (b);
xlab:
return a;
xlab2:
a++;
return... | code_c | code | 151 | null |
#ifndef __MESH__
#define __MESH__
/*!
* \file Mesh.h
* \brief Contains structure and methods for triangular mesh
* \author <NAME> - NeuroPoly (http://www.neuropoly.info)
*/
#include <string>
#include <vector>
#include <itkImage.h>
#include <vtkSmartPointer.h>
#include <vtkPolyData.h>
#include "Vertex.h"
#includ... | code_c | code | 1,192 | null |
<filename>llvm-3.3/projects/poolalloc/test/dsa/local/bitfields1.c
//--Make sure we can run DSA on it!
//RUN: clang %s -c -emit-llvm -o - | \
//RUN: dsaopt -dsa-bu -dsa-td -disable-output
#include <stdio.h>
#include <stdlib.h>
typedef union {
struct {
signed int immed:16;
unsi... | code_c | code | 234 | null |
<filename>MProkaron/Platform/MIPSM/rmp_platform_mipsm.c
/******************************************************************************
Filename : rmp_platform_mipsm.c
Author : pry
Date : 04/02/2018
Licence : The Unlicense; see LICENSE for details.
Description : The platform specific file for MIPS M-... | code_c | code | 2,139 | null |
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditi... | code_c | code | 976 | null |
/**
* \file Ifx_Cfg.h
* \brief Project configuration file.
*
* \copyright Copyright (c) 2018 Infineon Technologies AG. All rights reserved.
*
*
*
* IMPORTANT NOTICE
*
*
* Infineon Technologies AG (Infineon) is supplying this file for use
* exclusively with Infineon's microcon... | code_c | code | 635 | null |
#include <stdio.h>
#include <conio.h>
int main() {
//A program that notices user's car can be used today
int number, date = 0;
printf("Enter your car plate number (4 digit) : ");
scanf("%d", &number);
printf("Enter today's date : ");
scanf("%d", &date);
if (number % 10 == date % 10) {
printf("\nMy bad, you ... | code_c | code | 142 | null |
<reponame>Jokeren/NNPACK<filename>src/psimd/butterfly.h<gh_stars>0
#pragma once
#include <nnpack/simd.h>
static inline void v4f_butterfly(v4f a[restrict static 1], v4f b[restrict static 1]) {
const v4f new_a = *a + *b;
const v4f new_b = *a - *b;
*a = new_a;
*b = new_b;
}
static inline void v4f_butte... | code_c | code | 196 | null |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkTexturedButtonRepresentation.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is di... | code_c | code | 1,886 | null |
#pragma once
#include "common.h"
#include "mapper.h"
#include "Eigen/Dense"
#include "measurement_package.h"
#include "helper/chisquare.h"
#include "helper/matplotlibcpp.h"
namespace plt = matplotlibcpp;
class Draw {
private:
map<string, string> l_settings;
map<string, string> o_settings;
void Drawellipse(const Ei... | code_c | code | 1,097 | null |
<gh_stars>1-10
#include <malloc.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include "safeTo.h"
void rawUrlDecode(char *qs, char *rtn, int maxChar)
{
int i = 0;
for(; *qs != '\0'; qs++, rtn++) {
if(i == maxChar){
break;
}
if(*qs == '%') {
*rtn = (char) ToHex(qs[1]) *... | code_c | code | 732 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.