max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
984 | <reponame>tullyliu/BaikalDB<filename>test/test_region_manager.cpp
// Copyright (c) 2018 Baidu, Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... | 12,939 |
1,573 | from .PropertySets import *
from .Elements import *
from .Styles import *
from .Renderer import *
from .Constants import PY2
if PY2:
from cStringIO import StringIO as BytesIO
else:
from io import BytesIO
def dumps(doc):
s = BytesIO()
r = Renderer()
r.Write(doc, s)
return s.getvalue()
| 126 |
3,296 | <filename>legofy/cli.py
'''Command line interface to Legofy'''
import click
import legofy
from legofy import palettes
@click.command()
@click.argument('image', required=True, type=click.Path(dir_okay=False,
exists=True,
... | 485 |
1,273 | package org.broadinstitute.hellbender.tools.walkers;
import htsjdk.samtools.SAMReadGroupRecord;
import htsjdk.variant.variantcontext.Allele;
import htsjdk.variant.variantcontext.VariantContext;
import htsjdk.variant.variantcontext.VariantContextBuilder;
import htsjdk.variant.vcf.*;
import org.broadinstitute.barclay.ar... | 2,974 |
2,813 | <gh_stars>1000+
package org.jabref.preferences;
import java.nio.file.Path;
import java.util.List;
public class GuiPreferences {
private final double positionX;
private final double positionY;
private final double sizeX;
private final double sizeY;
private final boolean windowMaximised;
priva... | 1,012 |
713 | <reponame>franz1981/infinispan
@Experimental
public interface ClusteredLockManager {
boolean defineLock(String name);
boolean defineLock(String name, ClusteredLockConfiguration configuration);
ClusteredLock get(String name);
ClusteredLockConfiguration getConfiguration(String name);
boolean isDefined... | 126 |
973 | <gh_stars>100-1000
/*_##########################################################################
_##
_## Copyright (C) 2016 Pcap4J.org
_##
_##########################################################################
*/
package org.pcap4j.packet;
import java.io.Serializable;
import org.pcap4j.util.ByteArrays;... | 8,577 |
376 |
extern zend_class_entry *ice_filter_css_ce;
ZEPHIR_INIT_CLASS(Ice_Filter_Css);
PHP_METHOD(Ice_Filter_Css, sanitize);
#if PHP_VERSION_ID >= 70200
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ice_filter_css_sanitize, 0, 1, IS_STRING, 0)
#else
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ice_filter_css_sanitize,... | 309 |
2,753 | /*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: <NAME>, <NAME>, <NAME>, <NAME>,
* <NAME>, <NAME>
*/
#ifndef MKLMulticlass_H_
#define MKLMulticlass_H_
#include <shogun/lib/config.h>
#include <shogun/base/SGObject.h>
#include <shogun/kernel/Kernel.h>
#include... | 2,087 |
2,838 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2020 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 2,930 |
533 | /*
* Copyright (c) 2018 Baidu, Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1,073 |
678 | <reponame>bzxy/cydia
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/DataAccess.framework/Frameworks/DADaemonSupport.framework/DADaemonSupport
*/
#import <DADaemonSupport/XXUnknownSuperclass.h>
#import <DADaemonSupport/DAEventsAttachmentDownloadConsumer.h>
@class... | 488 |
4,047 | #define BUILDING_DLL
#include<mylib.h>
int func2(void) {
return 42;
}
| 37 |
2,670 | #include <iostream>
#include "Objects/box.h"
using namespace std;
/**
* Calculate and print the volume of a box.
*/
int main()
{
box package{ 10, 10, 10 };
cout << "Package length: " << package.length << endl;
cout << "Package width: " << package.width << endl;
cout << "Package height: " << package... | 140 |
765 | <reponame>hyu-iot/gem5<gh_stars>100-1000
/*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding ... | 1,361 |
421 | <reponame>hamarb123/dotnet-api-docs<gh_stars>100-1000
//<snippet06>
#using <System.dll>
using namespace System;
using namespace System::IO::Ports;
ref class PortDataReceived
{
public:
static void Main()
{
// <Snippet20>
SerialPort^ mySerialPort = gcnew SerialPort("COM1");
mySe... | 594 |
775 | # Copyright (C) 2020-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
import json
import os.path as osp
from typing import Any, Dict, List, Optional, Sequence
import numpy as np
from ote_sdk.entities.annotation import Annotation, AnnotationSceneEntity, AnnotationSceneKind
from ote_sdk.entities.dataset_it... | 7,180 |
5,836 | //
// Copyright 2016 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 358 |
3,212 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 1,057 |
17,809 | #pragma once
#if __cplusplus >= 201703
// Visual C++ only supports __has_include in versions 14.12 and greater
# if !defined(_MSC_VER) || _MSC_VER >= 1912
# if __has_include(<optional>)
# include <optional>
namespace opt = std;
# endif
# endif
#else
# include <compat/optional.hpp>
namespace opt = std::ex... | 126 |
348 | {"nom":"Brouains","circ":"2ème circonscription","dpt":"Manche","inscrits":121,"abs":46,"votants":75,"blancs":10,"nuls":0,"exp":65,"res":[{"nuance":"REM","nom":"<NAME>","voix":33},{"nuance":"LR","nom":"<NAME>","voix":32}]} | 88 |
361 | import torch
import torch.nn as nn
import torch.nn.functional as F
import sys
from Modules.Attention import Attention
class CloningSamplesAttention(nn.Module):
'''
Implementation of the the last Cloning sample attention part.
Implementation includes residual linear connection,Multiheadattentionlayer,
... | 451 |
339 | <reponame>markusforss/advancedfx<filename>AfxHookSource/Model/DemoTime.h
#pragma once
#include "Properties.h"
#include "Model.h"
namespace AfxHookSource {
namespace Model {
class CDemoTime : public CClass
{
public:
enum EMode
{
EMode_Tick,
EMode_Time
};
typedef CIntProperty CTick;
typedef... | 447 |
461 | <reponame>Tupiet/nsmbw-mod
/* Use default implementation, see arc4random.h */
| 28 |
403 | <reponame>megaease/easeagent
/*
* Copyright (c) 2021, MegaEase
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 4,259 |
650 | <filename>Userland/Utilities/rev.cpp<gh_stars>100-1000
/*
* Copyright (c) 2021, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCore/ArgsParser.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
int main(int argc, char** argv)
{
if (pledge("stdio rpath", nullptr) < 0) {
... | 952 |
839 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... | 672 |
680 | <gh_stars>100-1000
/**
* Copyright 卫志强 QQ:<EMAIL> Inc. All rights reserved.
*/
package com.skyeye.eve.service.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.... | 2,942 |
988 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 4,153 |
1,204 | /*
* Copyright 2015 <NAME>.
*
* 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 w... | 541 |
14,425 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 1,169 |
405 | #ifndef _GAUSSIAN_SOLVER_H_
#define _GAUSSIAN_SOLVER_H_
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "config.h"
typedef struct
{
/*
At any point during Gaussian elimination, the results of intermediate computations are kept in the elements of this structure.
*/
int r... | 1,678 |
1,745 | //********************************* bs::framework - Copyright 2018-2019 <NAME> ************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "BsScriptAudioClip.generated.h"
#include "BsMonoMethod.h"
#include "... | 1,277 |
2,138 | package org.jeecgframework.tag.core.easyui;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.JspWriter;
import org.jeecgframework.core.online.util.FreemarkerHelper;
import ... | 3,770 |
4,054 | <gh_stars>1000+
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "frtconnection.h"
#include <vespa/config/common/errorcode.h>
#include <vespa/fnet/frt/supervisor.h>
#include <vespa/fnet/frt/target.h>
#include <vespa/fnet/frt/rpcrequest.h>
#include <vespa... | 1,522 |
3,680 | <gh_stars>1000+
//
// Copyright 2019 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced wit... | 1,674 |
852 | import FWCore.ParameterSet.Config as cms
pfNoPUMEtTask = cms.Task()
from JetMETCorrections.Configuration.JetCorrectionServices_cff import *
calibratedAK4PFJetsForPFNoPUMEt = cms.EDProducer('PFJetCorrectionProducer',
src = cms.InputTag('ak4PFJets'),
correctors = cms.vstring('ak4PFL1FastL2L3') # NOTE: use "ak4P... | 2,298 |
679 | <gh_stars>100-1000
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF license... | 2,019 |
2,338 | #ifndef TEMPLATE_CLASS_TEST_H // comment 1
#define TEMPLATE_CLASS_TEST_H
template <typename T>
class A {
public:
void f();
void g();
template <typename U> void h();
template <typename U> void k();
static int b;
static int c;
};
template <typename T>
void A<T>::f() {}
template <typename T>
template <type... | 194 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 1,735 |
30,023 | <reponame>domwillcode/home-assistant
"""The uvc component."""
| 22 |
1,127 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "op_table.hpp"
#include "openvino/opsets/opset8.hpp"
using namespace std;
using namespace ov::opset8;
namespace ov {
namespace frontend {
namespace tensorflow {
namespace op {
OutputVector translate_range_op(const NodeCo... | 267 |
2,121 | /*
* BSD 3-Clause License
*
* Copyright (c) 2018 GitHub.
* Copyright (c) 2016 Intel Corporation. (original DPDK example code)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Red... | 10,242 |
373 | <reponame>YegorKozlov/acs-aem-commons
/*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2013 Adobe
* %%
* 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... | 1,753 |
6,992 | /*
* Copyright 2002-2020 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 923 |
438 | """Define callables that generate pandas.Series from pandas.DataFrame."""
import abc
from typing import Union, Tuple
import numpy
from pandas import DataFrame, Series
# === Series from DataFrame objects ======
class _SeriesFromDf(abc.ABC):
"""A serializable callable that returns a pandas.Series from input
... | 7,507 |
575 | <reponame>Ron423c/chromium
// 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.
#include "components/policy/content/policy_blocklist_navigation_throttle.h"
#include "base/bind.h"
#include "base/check_op.h"
... | 2,417 |
348 | {"nom":"Viennay","circ":"2ème circonscription","dpt":"Deux-Sèvres","inscrits":829,"abs":429,"votants":400,"blancs":20,"nuls":7,"exp":373,"res":[{"nuance":"REM","nom":"<NAME>","voix":189},{"nuance":"SOC","nom":"<NAME>","voix":184}]} | 95 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Saint-Léger-des-Prés","dpt":"Ille-et-Vilaine","inscrits":180,"abs":26,"votants":154,"blancs":8,"nuls":7,"exp":139,"res":[{"panneau":"1","voix":93},{"panneau":"2","voix":46}]} | 99 |
337 | <filename>idea/testData/refactoring/pullUp/k2j/fromClassToClassWithGenerics.1.java
class A<T extends I, U extends I, V> {
} | 49 |
764 | {"symbol": "RPM","address": "0x490c95bE16384E1f28B9e864e98fFEcFCBfF386d","overview":{"en": ""},"email": "<EMAIL>","website": "https://repme.io/","state": "NORMAL","links": {"blog": "https://medium.com/@repmedapp","twitter": "https://twitter.com/repmeio","telegram": "https://t.me/repmecrew","github": "https://github.com... | 131 |
965 | <reponame>bobbrow/cpp-docs
int strPartDim[4] = { 80, 160, 240, -1 };
m_StatusBarIcon = AfxGetApp()->LoadIcon(IDI_ICON1);
m_StatusBarCtrl.SetParts(4, strPartDim);
m_StatusBarCtrl.SetIcon(1, m_StatusBarIcon);
m_StatusBarCtrl.SetText(_T("Part 1"), 1, 0); | 109 |
312 | <reponame>yanaspaula/rdf4j
/*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v... | 1,206 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jrt;
import java.nio.ByteBuffer;
/**
* Data value (a sequence of bytes)
**/
public class DataValue extends Value
{
private final byte[] value;
/**
* Create from a Java-type valu... | 418 |
428 | <filename>Java/old/Canvas_ver/src/org/loon/framework/android/game/core/graphics/LColor.java<gh_stars>100-1000
package org.loon.framework.android.game.core.graphics;
/**
*
* Copyright 2008 - 2009
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance ... | 4,967 |
488 | //
// Access field in super class
//
class Ok {
public Ok(String s) {
this.str = s;
}
String str;
}
public class pgc_test2011_20 extends Ok {
pgc_test2011_20() {
super("what?");
}
static public void main(String args[]) {
pgc_test2011_20 t = new pgc_test2011_20();
... | 193 |
381 | package org.apache.helix.taskexecution;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache Lice... | 983 |
325 | /* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2019 Intel Corporation. All rights reserved.
*/
#include <stdint.h>
const int32_t fir_int32_06_4172_5100_010_095[247] = {
-128632,
-59497,
27046,
238561,
615381,
1180391,
1925670,
2802557,
3718091,
4541067,
5118546,
5302088,
4979296,
4105097,
... | 1,825 |
1,056 | <reponame>timfel/netbeans
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.... | 5,599 |
6,304 | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkCanvas.h"
#include "modules/svg/include/SkSVGEllipse.h"
#include "modules/svg/include/SkSVGRenderContext.h"
#include "modules/svg/include/SkSVGValue.h... | 745 |
2,360 | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Date(CMakePackage):
"""A date and time library based on the C++11/14/17 <chrono> header"""... | 864 |
937 | <filename>cyclops-reactive-collections/src/test/java/cyclops/reactive/data/collections/PStacksTest.java
package cyclops.reactive.data.collections;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
import java.util.Arrays;
import cyclops.data.Seq;
import org.junit.Test;
import c... | 648 |
474 | #include "ShaderCompilerCommon.h"
#include "ShaderCompiler.h"
#include <bx/bx.h>
#include <bgfx/bgfx.h>
#define BGFX_UNIFORM_FRAGMENTBIT UINT8_C(0x10) // Copy-pasta from bgfx_p.h
#define BGFX_UNIFORM_SAMPLERBIT UINT8_C(0x20) // Copy-pasta from bgfx_p.h
// TODO: this needs to be fixed in bgfx
namespace bgfx
{
uin... | 5,218 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Saint-Genest-d'Ambière","circ":"4ème circonscription","dpt":"Vienne","inscrits":924,"abs":536,"votants":388,"blancs":3,"nuls":45,"exp":340,"res":[{"nuance":"MDM","nom":"<NAME>","voix":174},{"nuance":"UDI","nom":"<NAME>-<NAME>","voix":166}]} | 129 |
5,169 | {
"name": "EKStreamView",
"version": "0.0.1",
"summary": "A scrolling view having many cells in different heights and in columns for iOS, just like Pinterest.",
"homepage": "https://github.com/ekohe/EKStreamView",
"license": "Copyright (c) 2012 <NAME> (<EMAIL>)",
"authors": {
"Ekohe": "<EMAIL>"
},
"... | 222 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 1,131 |
442 | <gh_stars>100-1000
#This file is part of ElectricEye.
#SPDX-License-Identifier: Apache-2.0
#Licensed to the Apache Software Foundation (ASF) under one
#or more contributor license agreements. See the NOTICE file
#distributed with this work for additional information
#regarding copyright ownership. The ASF licenses t... | 41,252 |
2,574 | <filename>src/main/java/org/yinwang/pysonar/ast/Withitem.java
package org.yinwang.pysonar.ast;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* A name alias. Used for the components of import and import-from statements.
*/
public class Withitem extends Node {
@Nullabl... | 329 |
350 | /*
* Copyright 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 913 |
420 | <reponame>MJochim/seahub
import os
import json
import pytest
from mock import patch
import seaserv
from seaserv import seafile_api
from tests.common.utils import randstring
from seahub.constants import PERMISSION_PREVIEW, PERMISSION_PREVIEW_EDIT
from seahub.test_utils import BaseTestCase, TRAVIS
class DirSharedIte... | 16,305 |
1,127 | <reponame>kurylo/openvino
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "transformations/opset_conversions/convert_opset3_to_opset2.hpp"
#include <memory>
#include <ngraph/pass/manager.hpp>
#include <vector>
#include "itt.hpp"
#include "transformations/op_conversions... | 535 |
4,095 | /*
* Copyright 2016-2021 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 362 |
375 | <gh_stars>100-1000
/*
* Copyright 2018 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.ide.eclipse.main.plugin.tableeditor.tasks.handler;
import javax.inject.Named;
import org.eclipse.e4.core.di.annotations.E... | 613 |
493 | <reponame>venkattgg/venkey
/**
* Copyright (C) 2016 Turi
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#ifndef CPPIPC_COMMON_OBJECT_FACTORY_BASE_HPP
#define CPPIPC_COMMON_OBJECT_FACTORY_BASE_HPP
#include <map>
#... | 762 |
428 | <filename>test/input/RValueReferenceType.cxx
namespace start {
typedef int&& type;
}
| 30 |
1,767 | package com.annimon.stream.operator;
import com.annimon.stream.function.LongPredicate;
import com.annimon.stream.iterator.PrimitiveIterator;
import java.util.NoSuchElementException;
import org.jetbrains.annotations.NotNull;
public class LongTakeWhile extends PrimitiveIterator.OfLong {
private final PrimitiveIter... | 712 |
2,564 | package com.cgfay.video.widget;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.os.Handler;
import android.os.Message;
import android.util.AttributeSet;
import android.view.MotionEvent;
import an... | 16,204 |
620 | /*
* Copyright (C) 2009-2011 <NAME>
*
* 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 ... | 2,201 |
1,018 | /*
Copyright 2017 D-Wave Systems Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 339 |
8,027 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | 2,100 |
6,304 | #!/usr/bin/env python
#
# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Create a ccache binary for linux hosts."""
import argparse
import os
import subprocess
import sys
FILE_DIR = os.path.dirname(os.path.abspath(__file__))
IN... | 545 |
5,169 | <reponame>Gantios/Specs
{
"name": "HBBasicLib",
"version": "1.0.14",
"summary": "HBBasic iOS SDK",
"description": "iOS library for HBBasic",
"homepage": "https://github.com/hepburnalex/HBBasicLib",
"license": "MIT",
"authors": {
"hepburn": "<EMAIL>"
},
"platforms": {
"ios": "9.0"
},
"sourc... | 308 |
4,224 | <gh_stars>1000+
/****************************************************************************
*
* Copyright (c) 2013-2022 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are m... | 1,149 |
342 | <reponame>gspu/bitkeeper
/*
* Copyright 2012,2015-2016 BitMover, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 403 |
2,372 | <filename>physx/source/common/src/CmVisualization.cpp
//
// 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 ... | 2,009 |
335 | <filename>F/Friend-noun.json
{
"word": "Friend",
"definitions": [
"a person with whom one has a bond of mutual affection, typically one exclusive of sexual or family relations."
],
"parts-of-speech": "Noun"
} | 84 |
1,741 | <reponame>x9090/lighthouse
#--------------------------------------------------------------------------
# Disassembler API Selector
#--------------------------------------------------------------------------
#
# this file will select and load the shimmed disassembler API for the
# appropriate (current) disassemble... | 350 |
332 | <reponame>prabuckt/Footfall
// * Name: ConfigurationManager.h
// * Project: Footfall
// * Author: <NAME>
// * Creation Date: 13/02/2017
// * Copyright: (c) 2017 by Watershed Arts Trust Ltd.
#ifndef ConfigurationManager_h
#define ConfigurationManager_h
#include <stdio.h>
#include "ofxJSON.h"
#include "ofMain.h"
#inclu... | 220 |
2,479 | """
Common helper functions for tests.
"""
from __future__ import absolute_import, division, print_function
from attr import Attribute
from attr._make import NOTHING, make_class
def simple_class(cmp=False, repr=False, hash=False, str=False, slots=False,
frozen=False):
"""
Return a new simpl... | 512 |
1,511 | <filename>tests/cluecode/data/copyrights_basic/ABC_cpp-Case_cpp.cpp
/******************************
ABC DEF
ABC Company
www.abcCompany.com
-----------------------
File: testCase.cpp
Project: testProject
-----------------------
Copyright (C) ABC Company
**********************************/ | 83 |
1,602 | #include "getRandomPtr.h"
long cCantFreeMe = 13;
void* getRandomPtr() {
return (void*)&cCantFreeMe;
}
| 45 |
1,475 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License... | 786 |
6,224 | <gh_stars>1000+
/*
* Copyright (c) 2019-2021 Vestas Wind Systems A/S
*
* Based on clock_control_mcux_sim.c, which is:
* Copyright (c) 2017, NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT nxp_kinetis_scg
#include <drivers/clock_control.h>
#include <dt-bindings/clock/kinetis_scg.h>
#include... | 1,840 |
27,208 | # MIT License
#
# 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 without restriction, including without limitation the rights
# to use, copy, modify, merge, publi... | 1,397 |
1,799 | <gh_stars>1000+
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
//... | 894 |
376 | /* Copyright <NAME>.
Copyright (c) 2000 TXT DataKonsult Ab & Monty Program Ab
Copyright (c) 2009-2011, Monty Program Ab
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 mus... | 890 |
778 | <reponame>medismailben/llvm-project
//===----------------------------------------------------------------------===//
//
// 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... | 1,065 |
493 | <reponame>mauersu/Redis-admin<filename>src/main/java/com/mauersu/config/RedisConfig.java
package com.mauersu.config;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.apache.commons.logging.Log;
import org.apache.common... | 547 |
344 | #ifndef AUTOFDO_PERFDATA_READER_H_
#define AUTOFDO_PERFDATA_READER_H_
#include <map>
#include <memory>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/Object/ELFObjectFile.h"
#include "llvm/Object/ObjectFile.h"
#include "quipper/perf_parser.h"
n... | 3,242 |
2,151 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* 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 app... | 416 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.