text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
/*-
* Copyright (c) 2011 NetApp, 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | code_c | code | 535 | null |
/*
* Jetfuel Game Engine- A SDL-based 2D game-engine
* Copyright (C) 2017 InfernoStudios
*
* 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... | code_c | code | 2,287 | null |
<reponame>traversaro/gazebo
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, <NAME>, 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:
*
* * Redistributi... | code_c | code | 2,317 | null |
//
// SceneDelegate.h
// SymmetricTree_BinaryTree
//
// Created by penghe on 2019/10/5.
// Copyright © 2019 renmoqiqi. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SceneDelegate : UIResponder <UIWindowSceneDelegate>
@property (strong, nonatomic) UIWindow * window;
@end
| code_c | code | 83 | null |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/wait.h>
#include <stdbool.h>
#include <string.h>
typedef int piped_t[2];
typedef struct {
int c1;
int c2;
} item;
void swap(item*, item*);
void bubble_sort(item*, int);
void print_stuff(item* arr, ... | code_c | code | 1,149 | null |
<gh_stars>0
/*
* io_k8s_api_node_v1_overhead.h
*
* Overhead structure represents the resource overhead associated with running a pod.
*/
#ifndef _io_k8s_api_node_v1_overhead_H_
#define _io_k8s_api_node_v1_overhead_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../incl... | code_c | code | 293 | null |
<reponame>Ron423c/chromium
// Copyright 2019 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 WEBLAYER_PUBLIC_NAVIGATION_H_
#define WEBLAYER_PUBLIC_NAVIGATION_H_
#include <string>
#include <vector>
class GURL;
... | code_c | code | 2,103 | null |
<gh_stars>10-100
/* No PNG support */
/* #define NO_PNG - defined in Makefile */
/* No JPEG support */
#undef HAVE_JPEG
/* No GIF support */
#undef HAVE_GIF
/* No GSL support */
/* #define NO_GSL - defined in Makefile */
/* Do NOT ese double precision */
#undef MGL_USE_DOUBLE
/* No IDTF support */
#undef HA... | code_c | code | 93 | null |
/* header file for mpbfield3.c */
void cmppotp32(float complex q[], float complex pot[],
float complex ffc[], float *we, int nx, int ny, int nz,
int kstrt, int nvpy, int nvpz, int nzv, int kxyp,
int kyzp, int nzhd);
void cmppdivf32(float complex f[], float complex df[], in... | code_c | code | 822 | null |
<gh_stars>0
#ifndef CNEURALNET_H
#define CNEURALNET_H
//turn off the warnings for the STL
#pragma warning (disable : 4786)
//------------------------------------------------------------------------
//
// Name: CNeuralNet.h
//
// Author: <NAME> 2002
//
// Desc: Class for creating a feedforward neural net.From the bo... | code_c | code | 1,003 | null |
navigation: iphoneModegotoSort
Set Variable [ $$iPhoneLayout; Value:Get ( LayoutName ) ]
Set Field [ steward::windowSizeAndPlace[5]; Get ( WindowHeight ) ]
Set Field [ steward::windowSizeAndPlace[6]; Get ( WindowWidth ) ]
Set Field [ steward::windowSizeAndPlace[7]; Get ( WindowTop ) ]
Set Field [ steward::windowSizeAnd... | code_c | code | 197 | null |
<reponame>WheelofTime/libcuckoo-windows
#ifndef UTIL_H
#define UTIL_H
#include <Windows.h>
#include "cuckoohash_config.h" // for LIBCUCKOO_DEBUG
#if LIBCUCKOO_DEBUG
# define LIBCUCKOO_DBG(fmt, ...) \
fprintf(stderr, "\x1b[32m""[libcuckoo:%s:%d:%lu] " fmt"" "\x1b[0m", \
... | code_c | code | 250 | null |
<filename>frc971/control_loops/drivetrain/spline.h
#ifndef FRC971_CONTROL_LOOPS_DRIVETRAIN_SPLINE_H_
#define FRC971_CONTROL_LOOPS_DRIVETRAIN_SPLINE_H_
#include "Eigen/Dense"
#include "frc971/control_loops/binomial.h"
namespace frc971 {
namespace control_loops {
namespace drivetrain {
// Class to hold a spline as a ... | code_c | code | 2,016 | null |
<reponame>seeclong/apollo<gh_stars>1-10
/******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | code_c | code | 2,133 | null |
// 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 PPAPI_THUNK_VIDEO_CAPTURE_API_H_
#define PPAPI_THUNK_VIDEO_CAPTURE_API_H_
#include <string>
#include <vector>
#include "base/memory/ref_coun... | code_c | code | 445 | null |
/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2015-2021 Micron Technology, Inc. All rights reserved.
*/
#include <mtf/framework.h>
#include <hse_util/slab.h>
#include <hse_util/hse_err.h>
#include <hse_util/yaml.h>
MTF_MODULE_UNDER_TEST(hse_platform);
MTF_BEGIN_UTEST_COLLECTION(yaml);
enum test_... | code_c | code | 4,972 | null |
<gh_stars>1000+
/*
* Copyright 2021 4Paradigm
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | code_c | code | 371 | null |
#include <stdio.h>
#include<string.h>
void main()
{
int a,b,n;
char c[10],e[]="orange";
float d;
scanf("%d%d",&a,&b);
scanf("%s",c);
scanf("%f",&d);
n=strcmp(c,e);
if((a%2==0) && (b%3==0) && (n==0) && (d<10000))
{
printf("ACCCEPTED");
}
else
{
... | code_c | code | 102 | null |
<reponame>PaulDoessel/gaffer-play<filename>include/Gaffer/CompoundNumericPlug.h
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2011-2012, <NAME>. All rights reserved.
// Copyright (c) 2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in s... | code_c | code | 2,437 | null |
<gh_stars>0
#include "fioFormatV.c"
#include <stdio.h>
#include <wchar.h>
status_t my_printf (const char *buf,
size_t nchars,
size_t outarg)
{
printf("%.*s", (int)nchars, buf);
return 0;
}
#define SANITY "this is a string\n"
#define SANITY_2 "this is a string\n%d aaaaa... | code_c | code | 191 | null |
<gh_stars>0
//
// NearMeViewController.h
// BG-Tourist-Guide
//
// Created by Hakintosh on 2/5/16.
// Copyright © 2016 Hakintosh. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface NearMeViewController : UIViewController<UITableViewDelegate, UITableViewDataSource>
@end
| code_c | code | 81 | null |
#ifndef BLANK_TEXTURES_H
#define BLANK_TEXTURES_H
#include <QOpenGLFunctions_3_3_Core>
#include <memory>
#include <optional>
class BlankTextures final :
protected QOpenGLFunctions_3_3_Core
{
public:
BlankTextures();
BlankTextures( const BlankTextures& ) = delete;
BlankTextures& operator=( cons... | code_c | code | 230 | null |
// Copyright 2012 Google Inc
// All Rights Reserved.
#ifndef GRR_CLIENT_NANNY_EVENT_LOGGER_H_
#define GRR_CLIENT_NANNY_EVENT_LOGGER_H_
#include <string> // for string
#ifdef WIN32
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&); \
void operator=(const Ty... | code_c | code | 572 | null |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_BUFFER 1024
#define SPACE '#'
#define TAB '\t'
int CalculateNumberOfSpaces(int Offset, int TabSize)
{
return TabSize - (Offset % TabSize);
}
/* K&R's _getline() function from p29 */
int _getline(char s[], int lim)
{
int c, ... | code_c | code | 276 | null |
<reponame>oprypin/crystal-imgui-sfml
#include <imconfig-SFML.h>
#undef ImTextureID
#define IMGUI_USE_WCHAR32
| code_c | code | 31 | null |
/***
*
* Author: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Copyright 2011-2012 <NAME>, <NAME>, <NAME>
*
* This file is part of Parallel Reptile (version 1.1)
*
* PReptile is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as publis... | code_c | code | 296 | null |
<filename>Chapter5/5-20/dcl_qualify.c<gh_stars>0
/**
* Exercise 5-20, page 104
* Упражнение 5.20, страница 137
*
* Expand dcl to handle declarations with function argument types, qualifiers like
* const, and so on.
*
* Усовершенствуйте dcl так, чтобы программа обрабатывала объявления с типами
* аргументов функц... | code_c | code | 2,786 | null |
/*
* Copyright (c) 2000-2001 Apple Computer, Inc. All Rights Reserved.
*
* The contents of this file constitute Original Code as defined in and are
* subject to the Apple Public Source License Version 1.2 (the 'License').
* You may not use this file except in compliance with the License. Please obtain
* a copy o... | code_c | code | 3,129 | null |
//
// RSAppDelegate.h
// RSStoreKit
//
// Created by CocoaPods on 04/15/2015.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface RSAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| code_c | code | 80 | null |
/* RMT example -- step motor */
/*
* SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: CC0-1.0
*/
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "driver/rmt.h"
#include "step_motor.h"
#include "step_motor_d... | code_c | code | 816 | null |
/*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile: vtkTestHierarchicalDataReader.h,v $
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This so... | code_c | code | 636 | null |
<gh_stars>0
//
// StatusOriginalView.h
// Weibo
//
// Created by Jason on 15/5/24.
// Copyright (c) 2015年 JasoneIo. All rights reserved.
//
#import <UIKit/UIKit.h>
@class StatusOriginalFrameModel;
@interface StatusOriginalView : UIView
@property (nonatomic,strong) StatusOriginalFrameModel *originalFrame;
@end
| code_c | code | 91 | null |
#ifdef HAVE_CONFIG_H
#include "../../../ext_config.h"
#endif
#include <php.h>
#include "../../../php_ext.h"
#include "../../../ext.h"
#include <Zend/zend_operators.h>
#include <Zend/zend_exceptions.h>
#include <Zend/zend_interfaces.h>
#include "kernel/main.h"
#include "kernel/fcall.h"
#include "kernel/memory.h"
#in... | code_c | code | 2,734 | null |
<filename>components/zigbee/zcl/zclZllGroupsCluster.h
/***************************************************************************//**
\file zclZllGroupsCluster.h
\brief
The header file describes the ZCL ZLL Groups Cluster and its interface
The file describes the types and interface of the ZCL Group... | code_c | code | 1,389 | null |
<reponame>logaritmdev/dezel-core-ui
#ifndef VariableValue_h
#define VariableValue_h
#include "Value.h"
#include <string>
namespace Dezel {
namespace Style {
using std::string;
class Parser;
class Stylesheet;
class VariableValue : public Value {
private:
string name;
public:
friend class Parser;
friend clas... | code_c | code | 155 | null |
<filename>avr/timelineBanner_customChars/LCD.h
#ifndef LCD_H
#define LCD_H
#include <avr/io.h>
#include <util/delay.h>
#include <avr/pgmspace.h>
#define LCD_D_DDR DDRB
#define LCD_D_PORT PORTB
#define LCD_RS_DDR DDRD
#define LCD_RS_PORT PORTD
#define LCD_RS_BIT PD5
#define LCD_E_DDR DDRD
#define LCD_E_PORT ... | code_c | code | 556 | null |
/*
* Copyright (C) 2001 <NAME> (<EMAIL>)
* Copyright (C) 2001 <NAME> (<EMAIL>)
* Copyright (C) 2006 <NAME> (<EMAIL>)
* Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
... | code_c | code | 950 | null |
#ifndef INC_COMPONENT_MACRO_H
#define INC_COMPONENT_MACRO_H
/*
// Examble component
// NOTE: Don't declare these inside ANONYMOUS NAMESPACE
#define COMPONENT_PROC_TREE(list_) \
list_(float, rand_seed, 1234.f, MetaData( 0.f, 10000.f ) ) \
list_(float, tree_width, 120.f, MetaData( 0.f, 512.f... | code_c | code | 1,035 | null |
#pragma once
#include "Core/Buffer.h"
#include "Renderer/Buffer.h"
namespace Flush {
//////////////////////////////////////////////////////////////////////////////////
// VertexBuffer
//////////////////////////////////////////////////////////////////////////////////
class OpenGLVertexBuffer : public VertexBuffe... | code_c | code | 505 | null |
<reponame>zouhirzz/FreeRDP<filename>include/freerdp/message.h
/**
* FreeRDP: A Remote Desktop Protocol Implementation
* Asynchronous Message Interface
*
* Copyright 2012 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | code_c | code | 4,749 | null |
#ifndef TATDBImagesAndMoviesDataModuleH
#define TATDBImagesAndMoviesDataModuleH
#include <System.Classes.hpp>
#include <Data.DB.hpp>
#include <Data.FMTBcd.hpp>
#include <Data.SqlExpr.hpp>
#include <Datasnap.DBClient.hpp>
#include <Datasnap.Provider.hpp>
#include <Data.DBXMySQL.hpp>
#include <string>
#include "Poco/Mute... | code_c | code | 439 | null |
<reponame>TheSledgeHammer/2.11BSD
/* $NetBSD: reg.h,v <ip> 2016/01/13 18:41:48 christos Exp $ */
// -*- C++ -*-
/* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2001, 2003
Free Software Foundation, Inc.
Written by <NAME> (<EMAIL>)
This file is part of groff.
groff is free software; you can redistribute it and/... | code_c | code | 604 | null |
<filename>Kernel/include/MM.h
#ifndef __MM_H_
#define __MM_H_
#define MM_SIZE ( 1024 * 1024 * 128 )
#define PAGESIZE ( 1024 * 4 )
#define INITIAL_DIR 0x600000
#include <defs.h>
#endif | code_c | code | 53 | null |
<reponame>LaudateCorpus1/llvm-project<filename>clang/test/Frontend/fixed_point_comparisons.c
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,UNPADDED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixe... | code_c | code | 5,338 | null |
/*
* server.c - Utilities for fake servers used by the nmh test suite
*
* This code is Copyright (c) 2014, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <u... | code_c | code | 1,387 | null |
/*
* Copyright (c) 2018 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <string.h>
#include <i2s.h>
int _impl_i2s_buf_read(struct device *dev, void *buf, size_t *size)
{
void *mem_block;
int ret;
ret = i2s_read((struct device *)dev, &mem_block, size);
if (!ret) {
... | code_c | code | 281 | null |
#ifndef socket_H
#define socket_H
#include "noncopyable.h"
#include <memory>
#include <sys/types.h> /* See NOTES */
#include <sys/socket.h>
#include <assert.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <iostream>
#include <netinet/tcp.h>
#include <string.h>
class Socket : public noncopyable /*p... | code_c | code | 212 | null |
<gh_stars>0
// RISC-V 32 specific definitions
#pragma once
typedef unsigned uint32_t;
typedef int int32_t;
typedef unsigned long long uint64_t;
typedef long long int64_t;
#define CSR_MTVEC 0x305
#define CSR_MSCRATCH 0x340
#define CSR_MEPC 0x341
#define CSR_MCAUSE 0x342
#define CSR_MTVAL 0x343
#define CSR... | code_c | code | 102 | null |
/*
Z88DK Z80 Macro Assembler
Copyright (C) <NAME>, InterLogic 1993-99
Copyright (C) <NAME>, 2011-2017
License: The Artistic License 2.0, http://www.perlfoundation.org/artistic_license_2_0
Repository: https://github.com/pauloscustodio/z88dk-z80asm
*/
#pragma once
extern char copyrightmsg[];
| code_c | code | 84 | null |
#define NDX 0x00A00A
#define KEYD 0x00A000
#define FA 0x000281
#define VARTAB 0x0003E3
#define FNLEN 0x00027E
#define FNADR 0x000084
#define STATUS 0x000276
#define SA 0x000280
| code_c | code | 50 | null |
/*
* Copyright (c) 2012-2017, <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:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of condition... | code_c | code | 2,609 | null |
<reponame>i386/optique<gh_stars>0
//
// Author: <NAME> <<EMAIL>>
//
// Copyright (c) 2012-2013 HockeyApp, Bit Stadium GmbH. All rights reserved.
// See LICENSE.txt for author information.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documen... | code_c | code | 1,135 | null |
<reponame>NLAFET/ABFT<gh_stars>1-10
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2012 The University of Tennessee and The University
* ... | code_c | code | 2,897 | null |
<gh_stars>0
/*
* Copyright 1993-2018 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO LICENSEE:
*
* This source code and/or documentation ("Licensed Deliverables") are
* subject to NVIDIA intellectual property rights under U.S. and
* international Copyright laws.
*
* These Licensed Deliverables containe... | code_c | code | 4,769 | null |
#ifdef HAVE_CONFIG_H
#include "../../../../ext_config.h"
#endif
#include <php.h>
#include "../../../../php_ext.h"
#include "../../../../ext.h"
#include <Zend/zend_operators.h>
#include <Zend/zend_exceptions.h>
#include <Zend/zend_interfaces.h>
#include "kernel/main.h"
#include "kernel/fcall.h"
#include "kernel/oper... | code_c | code | 549 | null |
#ifndef PQCLEAN_NTRULPR761_CLEAN_CRYPTO_DECODE_256X16_H
#define PQCLEAN_NTRULPR761_CLEAN_CRYPTO_DECODE_256X16_H
#include <stdint.h>
#define PQCLEAN_NTRULPR761_CLEAN_crypto_decode_256x16_STRBYTES 128
#define PQCLEAN_NTRULPR761_CLEAN_crypto_decode_256x16_ITEMS 256
#define PQCLEAN_NTRULPR761_CLEAN_crypto_decode_256x16_IT... | code_c | code | 120 | null |
<reponame>GPUOpen-Tools/common-src-AMDTAPIClasses
//==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file apAddWatchEvent.h
///
//====================================... | code_c | code | 354 | null |
/*!
* \file OxFitterAmoebaNr2.h
* \author <NAME>
* \date 2018/08/06
*/
#ifndef Tomato_OXFITTERAMOEBANr2_H
#define Tomato_OXFITTERAMOEBANr2_H
#include "CmakeConfigForTomato.h"
#ifdef USE_NR2
#include "OxFitter.h"
extern "C"{
#include "nr_modified.h"
#include "nrutil.h"
};
namespace Ox {
namespace Ugly {
... | code_c | code | 1,687 | null |
/*
* Copyright (c) Texas Instruments Incorporated 2018
*
* 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 condi... | code_c | code | 4,274 | null |
#ifndef _ASM_PARISC_SCATTERLIST_H
#define _ASM_PARISC_SCATTERLIST_H
#include <asm/page.h>
#include <asm/types.h>
#include <asm-generic/scatterlist.h>
#define ISA_DMA_THRESHOLD (~0UL)
#define sg_virt_addr(sg) ((unsigned long)sg_virt(sg))
#endif /* _ASM_PARISC_SCATTERLIST_H */
| code_c | code | 79 | null |
/**
* @author <NAME>
* @date 07/24/2017
*
* @brief Mathematical term data structure for ossim.
*
* See top level LICENSE.txt file.
*/
#ifndef OSSIM_FUNCTION_H
#define OSSIM_FUNCTION_H
#include <ossim/base/ossimConstants.h>
#include <vector>
#include <cmath>
/**
* @brief Different types for ter... | code_c | code | 2,920 | null |
<reponame>daniel-anavaino/tinkercell<filename>API/TC_AutoGeneRegulatoryTool_api.h<gh_stars>1-10
#ifndef TINKERCELL_TC_AUTOGENEREGULATORYTOOL_API_H
#define TINKERCELL_TC_AUTOGENEREGULATORYTOOL_API_H
#include "TC_structs.h"
BEGIN_C_DECLS
/*!
\brief Get all DNA parts inside the given container or module
\pa... | code_c | code | 477 | null |
<gh_stars>1-10
/*
* Copyright (c) 2001-2015 Hypertriton, Inc. <http://hypertriton.com/>
* 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... | code_c | code | 11,892 | null |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2020 www.open3d.org
//
// Permissio... | code_c | code | 1,930 | null |
/*
* File: CountDownLatch.h
* Project: base
* Author: Sandy
* Last Modified: 2020-10-30 19:56:13
*/
#pragma once
#include "Condition.h"
#include "MutexLock.h"
#include "noncopyable.h"
// "Linux多线程服务端编程:使用muduo C++网络库" p.42
// CountDownLatch的主要作用是确保Thread中传进去的func真的启动了以后
// 外层的start才返回
class Coun... | code_c | code | 153 | null |
<reponame>PolygonalSun/lib3mf
/*++
Copyright (C) 2015 netfabb GmbH (Original Author)
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 copyright n... | code_c | code | 905 | null |
<filename>Applications/LivingColors/src/CC2500.c
/*!
* \file CC2500.cpp
* \version 1.1
* \date 29-01-2009
* \author <NAME>, <EMAIL>
*
* Copyright (c) 2008, 2009 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License... | code_c | code | 1,237 | null |
<gh_stars>0
//#pragma once
#ifndef TAXI_H
#define TAXI_H
#include <list>
#include <iostream>
#include <string>
using namespace std;
class CGraph;
class CTaxi
{
public:
CTaxi(void);
~CTaxi(void);
//access functions
void SetLocation(int v);
int GetLocation();
bool IsAvailable();
void SetAvailable(bool b);
... | code_c | code | 322 | null |
//
// Created by <NAME> on 12/15/21.
//
#ifndef MARIUS_CHECKPOINTER_H
#define MARIUS_CHECKPOINTER_H
#include "data/dataloader.h"
#include "nn/model.h"
#include "storage/storage.h"
struct CheckpointMeta {
string name = "checkpoint";
int num_epochs = -1;
int checkpoint_id = -1;
bool link_prediction = ... | code_c | code | 339 | null |
<reponame>kstoreyf/TreeCorr
//---------------------------------------------------------------------------
#ifndef BoundsH
#define BoundsH
#include <complex>
//---------------------------------------------------------------------------
// We use a code for the metric to use -- flat-sky or spherical geometry.
enum Met... | code_c | code | 2,716 | null |
<reponame>GregoryLi0/LCUI<gh_stars>1000+
/*
* in_core_font.c -- basic in-core font-engine.
*
* Copyright (c) 2018, <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:
*
* * R... | code_c | code | 805 | null |
static const char* selbgcolor = "#0E0607";
static const char* selfgcolor = "#e5c7c6";
static const char* normbgcolor = "#704A4E";
static const char* normfgcolor = "#e5c7c6";
static const char* urgbgcolor = "#624041";
static const char* urgfgcolor = "#e5c7c6";
| code_c | code | 77 | null |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* bi_env.c :+: :+: :+: ... | code_c | code | 650 | null |
<filename>cpp/util/BaseStatFile.h
// Copyright 2004-present Facebook. All Rights Reserved.
#pragma once
#include <fcntl.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <cerrno>
#include <string>
#include <system_error>
namespace facebook {
namespace profilo {
namespace util {
enum StatTyp... | code_c | code | 647 | null |
<reponame>MeganWheeler1997/magma<filename>devmand/gateway/src/devmand/devices/cli/StructuredUbntDevice.h
// Copyright (c) 2016-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 additio... | code_c | code | 568 | null |
<reponame>andrijunaedi/belajar-c<filename>readChar.c
#include<stdio.h>
int main(){
char cc;
char c;
printf ("hello\n");
printf("baca 1 karakter saja : ");scanf ("%c ", &cc);
printf("baca 1 karakter saja : ");scanf ("%d ", &c);
printf ("%c \n", cc);
printf ("%d \n", c);
return 0;
... | code_c | code | 91 | null |
#ifndef CaloSimAlgos_CaloHitResponse_h
#define CaloSimAlgos_CaloHitResponse_h
#include "CalibFormats/CaloObjects/interface/CaloSamples.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "Geometry/CaloGeometry/interface/CaloGeometry.h"
#include "SimDataFormats/CrossingFrame/interface/MixCollection.h"
#include "... | code_c | code | 1,231 | null |
void pow()
{
int n;
int num;
int b;
num = 5;
b = num;
n = 4;
int i;
for (i=0; i < n-1; i = i + 1)
{
num = num * b;
}
print num;
}
void main()
{
print 42;
} | code_c | code | 49 | null |
<reponame>AllSafeCyberSecur1ty/Nuclear-Engineering<filename>Universal-Physics-mod/src/gui/interface/TextWrapper.h
#pragma once
#include "common/String.h"
#include "Point.h"
#include <vector>
namespace ui
{
class TextWrapper
{
public:
struct Index
{
int raw_index;
int wrapped_index;
int clear_index;
... | code_c | code | 308 | null |
<filename>ios/versioned-react-native/ABI37_0_0/Expo/UMPermissionsInterface/ABI37_0_0UMPermissionsInterface/ABI37_0_0UMPermissionsInterface.h
// Copyright 2018-present 650 Industries. All rights reserved.
#import <Foundation/Foundation.h>
#import <ABI37_0_0UMCore/ABI37_0_0UMModuleRegistry.h>
typedef enum ABI37_0_0UMPe... | code_c | code | 403 | null |
<reponame>ryone9re/KR<gh_stars>0
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAXSIZE 100
#define BUFSIZE 100
int mgetline(char s[], int lim);
int getch(void);
void ungetch(int);
void ungets(char s[]);
int bp = 0;
int buf[BUFSIZE];
int main()
{
char c, s[MAXSIZE];
mgetli... | code_c | code | 269 | null |
/**
* Copyright (c) 2016-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>
@class IGListAdapter;
NS_ASSUME_NONNULL_BEGIN
/**
The type of update that was performed by an `IGL... | code_c | code | 514 | null |
/*
* Programacao de Computadores e ALgoritmos
* Trabalho 3
* lista3.06.c
*
* Equipe:
* <NAME>
* <NAME>
* <NAME>
* <NAME>
* <NAME>
* <NAME>
*
*/
#include <stdio.h>
#include "../../util.c/util.h"
int main(int argc, const char *argv[])
{
float a,b,c;
printf("digite o primeiro numero:");
scanf(... | code_c | code | 138 | null |
/*******************************************************************************
* Copyright (C) 2018 <NAME>, University of Lausanne
*
* 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 wi... | code_c | code | 5,322 | null |
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2020 <NAME>
*
* 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 w... | code_c | code | 1,966 | null |
/*=========================================================================
Library: CTK
Copyright (c) Kitware 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.ap... | code_c | code | 1,766 | null |
//
// PriceManager.h
// I2Bot
//
// Created by <NAME> on 1/23/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Price.h"
@interface PriceManager : NSObject {
NSMutableArray* code_entries;
NSMutableDictionary* code_categories;
NSString* codeType;
int pa... | code_c | code | 230 | null |
<filename>RenderContext.h
//
// RenderContext.h
//
#pragma once
namespace cb
{
struct RenderContext
{
typedef void(*function_t)(const void* command, cb::RenderContext* rc);
RenderContext(void* contextData);
template <class ContextClass>
ContextClass& data();
template... | code_c | code | 249 | null |
<reponame>Esigodini/dynarmic
/* This file is part of the mp project.
* Copyright (c) 2020 MerryMage
* SPDX-License-Identifier: 0BSD
*/
#pragma once
#include <tuple>
#include <type_traits>
#include <mp/traits/function_info.h>
#include <mp/traits/is_instance_of_template.h>
using namespace mp;
// function_info
st... | code_c | code | 385 | null |
<reponame>koenenwmn/optimsoc
/* Copyright (c) 2013 by the author(s)
*
* 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 us... | code_c | code | 1,034 | null |
//
// HBAPTweet.h
// Aphelion
//
// Created by <NAME> on 27/07/13.
// Copyright (c) 2013 HASHBANG Productions. All rights reserved.
//
#import <Foundation/Foundation.h>
@class HBAPUser, HBAPTweetTextStorage;
@interface HBAPTweet : NSObject <NSSecureCoding>
- (instancetype)initWithDictionary:(NSDictionary *)dict... | code_c | code | 361 | null |
<filename>vendor/pimple/pimple/ext/pimple/pimple.c
/*
* This file is part of Pimple.
*
* Copyright (c) 2014 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restrictio... | code_c | code | 10,784 | null |
/*
* Copyright 2018 Blender Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | code_c | code | 2,926 | null |
<reponame>AngelaGarciaOlvera1970247/C
#include <stdio.h>
int lower(int c);
int main(void)
{
char s[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int i;
i = 0;
while (s[i] != '\0') {
printf("%c -> %c\n", s[i], lower(s[i]));
i++;
}
return 0;
}
int lower(int c)
{
return (c >= 'A' && c<... | code_c | code | 100 | null |
<reponame>esatp/StatisLabel
//
// SMViewController.h
// StatisLabel
//
// Created by <NAME> on 02/29/2016.
// Copyright (c) 2016 <NAME>. All rights reserved.
//
@import UIKit;
@interface SMViewController : UIViewController
@end
| code_c | code | 67 | null |
// 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 CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MESSAGE_FILTER_H_
#define CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MESSAGE_FILTER_H_
#include "base/... | code_c | code | 312 | null |
#pragma once
#include "../../Formula.h"
#include "../Model.h"
#include "ModelEvaluation_Constraint.h"
#include "../../../core/logging.h"
namespace carl {
namespace model {
template<typename Rational, typename Poly>
void substituteSubformulas(Formula<Poly>& f, const Model<Rational,Poly>& m) {
CARL_LOG_DEBUG("c... | code_c | code | 2,135 | null |
/*
Copyright (c) 2007, Adobe Systems, Incorporated
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 conditions and ... | code_c | code | 2,606 | null |
/*
* =====================================================================================
*
* Filenams: mblue_segment.h
*
* Description: a segment, an independent logical module, usually exists as a
* micro-service or business processor unit.
*
* Version: 1.0
* Created: 2017/10/1... | code_c | code | 610 | null |
<gh_stars>0
//######################################################################
//
// GraspIt!
// Copyright (C) 2002-2009 Columbia University in the City of New York.
// All rights reserved.
//
// GraspIt! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public Lice... | code_c | code | 1,470 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.