max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
461 | /*******************************************************************************
* 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... | 7,712 |
575 | <gh_stars>100-1000
// Copyright 2016 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 <memory>
#include "base/run_loop.h"
#include "base/task/thread_pool.h"
#include "base/test/bind.h"
#include "base/test/task_e... | 1,101 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.sql.implementation;
import com.azure.resourcemanager.resources.fluentcore.model.implementation.WrapperImpl;
import com.azure.resourcemanager.sql.models.SqlDatabaseImportExpo... | 698 |
1,694 | package org.stagemonitor.alerting.annotation;
import com.codahale.metrics.annotation.ExceptionMetered;
import com.codahale.metrics.annotation.Timed;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.stagemonitor.alerting.AlertingPlugin;
import org.st... | 2,816 |
2,151 | // 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.
#include "chrome/browser/chrome_content_browser_client.h"
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/macros.h"
#in... | 3,886 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.compute.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core... | 1,544 |
631 | <filename>wallet/transactions/assets/assets_reg_creators.cpp
// Copyright 2018 The Beam Team
//
// 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/LICENS... | 693 |
8,428 | # third party
from sqlalchemy import Column
from sqlalchemy import Integer
from sqlalchemy import String
# relative
from . import Base
# this table holds the list of known nodes usually peer domains
class Node(Base):
__tablename__ = "node"
id = Column(Integer(), primary_key=True, autoincrement=True)
nod... | 117 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 5,888 |
1,338 | <filename>headers/posix/stdc-predef.h
/*
* Copyright 2021 Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _STDC_PREDEF_H
#define _STDC_PREDEF_H
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
# define __STDC_NO_THREADS__ 1
#endif
#endif /* _STDC_PREDEF_... | 129 |
14,668 | <filename>mojo/core/ports/message_queue.cc
// Copyright 2016 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 "mojo/core/ports/message_queue.h"
#include <algorithm>
#include "base/compiler_specific.h"
#include ... | 1,086 |
2,151 | // Copyright 2016 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 ASH_WM_LOCK_STATE_CONTROLLER_TEST_API_H_
#define ASH_WM_LOCK_STATE_CONTROLLER_TEST_API_H_
#include "ash/wm/lock_state_controller.h"
namespace as... | 668 |
2,564 | //
// Created by CainHuang on 2019/3/13.
//
#include "FrameBuffer.h"
TextureAttributes FrameBuffer::defaultTextureAttributes = {
.minFilter = GL_LINEAR,
.magFilter = GL_LINEAR,
.wrapS = GL_CLAMP_TO_EDGE,
.wrapT = GL_CLAMP_TO_EDGE,
.internalFormat = GL_RGBA,
.format = GL... | 882 |
537 | <reponame>TheVinhLuong102/drf-flex-fields
from rest_flex_fields import FlexFieldsModelViewSet
from tests.testapp.models import Pet
from tests.testapp.serializers import PetSerializer
class PetViewSet(FlexFieldsModelViewSet):
"""
API endpoint for testing purposes.
"""
serializer_class = PetSerializer
... | 132 |
682 | <reponame>HackerFoo/vtr-verilog-to-routing<filename>abc/src/aig/saig/saigSynch.c
/**CFile****************************************************************
FileName [saigSynch.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Sequential AIG package.]
Synopsis [Computation of sy... | 9,026 |
1,652 | <reponame>minluzhou/test1
package com.ctrip.xpipe.redis.core.entity;
import com.ctrip.xpipe.endpoint.HostPort;
import com.ctrip.xpipe.utils.ObjectUtils;
/**
* @author wenchao.meng
* <p>
* Jul 17, 2016
*/
public interface Redis {
String getId();
String getIp();
String getMaster();
... | 606 |
2,406 | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vector>
#include "single_layer_tests/mvn.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
const std::vector<ngraph::AxisSet> emptyReductionAxes = {{}};
const std::vector<std::... | 4,416 |
14,668 | <gh_stars>1000+
// 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.
package org.chromium.chrome.browser.send_tab_to_self;
import static org.mockito.Mockito.eq;
import static org.mockito.Mockito.when;
impo... | 709 |
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 ... | 2,312 |
1,738 | /*
* 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... | 3,423 |
1,312 | #include "lwip/include/lwip/init.h"
#include "lwip/include/lwip/timeouts.h"
#include "lwip/include/lwip/netif.h"
#include "lwip/include/lwip/tcp.h"
#include "lwip/include/lwip/udp.h"
#include "lwip/include/lwip/ip_addr.h"
| 114 |
355 | #!/usr/bin/env python3
"""
The input expected is a standards-compliant GFF3 file.
http://www.sequenceontology.org/gff3.shtml
Example of a gene with GO annotation:
AAGK01000005 . gene 161052 164192 . + . ID=0ACE4B1023C0E198886936CD6BE3869B;locus_tag=TpMuguga_03g00084
AAGK01000005 . mRNA 161052 164192 . + . I... | 3,308 |
335 | {
"word": "Distribution",
"definitions": [
"The action of sharing something out among a number of recipients.",
"The action or process of supplying goods to retailers.",
"The different number of cards of each suit in a player's hand.",
"The way in which something is shared out am... | 132 |
1,655 | #ifndef CLIPARSER_HPP_
#define CLIPARSER_HPP_
#include <tinyformat/tinyformat.hpp>
#include <unordered_map>
#include <iostream>
#include <vector>
#include <string>
namespace Tungsten {
class CliParser
{
struct CliOption
{
char shortOpt;
std::string longOpt;
std::string description;
... | 722 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-43j7-3qrg-cqxx",
"modified": "2022-05-05T02:48:51Z",
"published": "2022-05-05T02:48:51Z",
"aliases": [
"CVE-2013-0355"
],
"details": "Unspecified vulnerability in the Enterprise Manager Base Platform component in Oracle Enterprise Manager Gri... | 454 |
348 | <gh_stars>100-1000
{"nom":"Crimolois","circ":"3ème circonscription","dpt":"Côte-d'Or","inscrits":582,"abs":347,"votants":235,"blancs":24,"nuls":7,"exp":204,"res":[{"nuance":"REM","nom":"<NAME>","voix":117},{"nuance":"FN","nom":"<NAME>","voix":87}]} | 103 |
3,428 | <gh_stars>1000+
{"id":"00118","group":"spam-2","checksum":{"type":"MD5","value":"141d803810acd9d4fc23db103dddfcd9"},"text":"From <EMAIL> Thu Aug 2 01:53:22 2001\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>\nReceived: from cps_mail.entelchile.net (postmaster.cps-sa.cl\n [172.16.58.390]) by mail.netnoteinc.com... | 1,080 |
190,993 | <filename>tensorflow/core/common_runtime/gpu/gpu_virtual_mem_allocator_test.cc<gh_stars>1000+
/* Copyright 2020 The TensorFlow 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 Lice... | 2,832 |
1,564 | package org.modelmapper.jackson;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.modelmapper.ModelMapper;
import org.modelmapper.Module;
/**
* ModelMapper module for Jackson
*
* @author <NAME>
*/
public class JacksonModule implements Module {
private ObjectMapper objectMapper;
public JacksonMo... | 283 |
1,433 | <reponame>gerald-yang/ubuntu-iotivity-demo
/******************************************************************
*
* Copyright 2015 Samsung Electronics All Rights Reserved.
*
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | 17,636 |
11,356 | <reponame>Bpowers4/turicreate<filename>src/external/boost/boost_1_68_0/libs/geometry/example/with_external_libs/x01_qt_example.cpp
// Boost.Geometry (aka GGL, Generic Geometry Library)
//
// Copyright (c) 2007-2012 <NAME>, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the Boost Softwar... | 1,089 |
722 | package org.ahocorasick.trie;
/**
* Contains the matched keyword and some payload data.
*
* @author <NAME>
* @param <T> The type of the wrapped payload data.
*/
public class Payload<T> implements Comparable<Payload<T>> {
private final String keyword;
private final T data;
public Payload(final Strin... | 254 |
17,990 | <reponame>Mu-L/ice-1<filename>examples/basic-vite/build.json
{
"hash": false,
"minify": "esbuild",
"polyfill": false,
"vite": true,
"vendor": false,
"plugins": [
"build-plugin-jsx-plus"
],
"sassLoaderOptions": {
"prependData": ".test{color:red}"
},
"tsChecker": true,
"proxy": {
"/api":... | 211 |
5,169 | {
"name": "MLFunctionalPackage",
"version": "1.0.2",
"summary": "A set of map-filter-reduce tools for Objective-C",
"description": "# MLFunctionalPackage\n## A set of map-filter-reduce tools for Objective-C\n\nThanks to blocks Objective-C has the potential to support functional programming style. \nThis library... | 511 |
649 | package net.serenitybdd.screenplay.webtests.ui;
import io.github.bonigarcia.wdm.WebDriverManager;
import net.serenitybdd.junit.runners.SerenityRunner;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.abilities.BrowseTheWeb;
import net.serenitybdd.screenplay.actions.Click;
import net.serenityb... | 758 |
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 ... | 8,041 |
575 | <reponame>Ron423c/chromium<filename>chrome/browser/ui/views/crostini/crostini_force_close_view_browsertest.cc
// 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.
#include "chrome/browser/ui/views/crostini/c... | 976 |
443 | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import torchvision
import torchvision.transforms as transforms
from collections import OrderedDict
# =========== configuration ==============
M = 1.0
alpha = 0.01
def getLoader(phase, download=False):
if phase==... | 1,050 |
634 | # Generated by Django 2.2.3 on 2019-09-25 19:34
from django.db import migrations
def update_enrollment_osquery_release(apps, schema_editor):
Enrollment = apps.get_model("osquery", "Enrollment")
for enrollment in Enrollment.objects.filter(osquery_release__gt=""):
enrollment.osquery_release = enrollmen... | 225 |
3,834 | <filename>engine/runtime/src/main/java/org/enso/interpreter/runtime/callable/UnresolvedConversion.java
package org.enso.interpreter.runtime.callable;
import com.oracle.truffle.api.dsl.Cached;
import com.oracle.truffle.api.dsl.ImportStatic;
import com.oracle.truffle.api.dsl.Specialization;
import com.oracle.truffle.api... | 1,102 |
575 | <gh_stars>100-1000
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/dom_distiller/core/page_features.h"
#include <stddef.h>
#include <memory>
#include <string>
#include "base/json... | 3,861 |
5,169 | {
"name": "SessionSodium",
"version": "0.9.1",
"swift_versions": "5.0",
"license": {
"type": "ISC",
"file": "LICENSE"
},
"summary": "Swift-Sodium provides a safe and easy to use interface to perform common cryptographic operations on iOS and OSX.",
"homepage": "https://github.com/loki-project/sess... | 483 |
848 | <gh_stars>100-1000
/* Copyright 2018 The TensorFlow 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
Unless required by ... | 13,103 |
1,561 | /*
* Copyright (c) 2015 Cossack Labs Limited
*
* 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 a... | 2,253 |
345 | <filename>kemon/trace.c
/*++
Copyright (c) Didi Research America. All rights reserved.
Module Name:
trace.c
Author:
<NAME>, 08-Feb-2017
Revision History:
--*/
#include <libkern/libkern.h>
#include <sys/systm.h>
#include "trace.h"
extern
void
hex_printf(
void *buffer,
... | 7,429 |
460 | <filename>trunk/win/Source/Includes/QtIncludes/src/gui/widgets/qcheckbox.h<gh_stars>100-1000
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (<EMAIL>)
**
** T... | 1,291 |
1,020 | <reponame>icse18-refactorings/RoboBinding
package org.robobinding.util;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
/**
*
* @since 1.0
* @version $Revision: 1.0 $
* @author <NAME>
*/
public class BitmapDrawableData {
public final int resourceId;
public final B... | 212 |
498 | <filename>01_wallet_rpc/rpc-common/src/main/java/com/bizzan/bc/wallet/entity/Coin.java
package com.bizzan.bc.wallet.entity;
import lombok.Data;
import java.math.BigDecimal;
import java.math.BigInteger;
@Data
public class Coin {
private String name;
private String unit;
private String rpc;
private St... | 241 |
1,320 | <gh_stars>1000+
/*
* Copyright 2019 Flipkart Internet Pvt. Ltd.
*
* 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... | 1,424 |
578 | <filename>app/server/credential/src/main/java/io/syndesis/server/credential/generic/OAuth2CredentialProviderFactory.java
/*
* Copyright (C) 2016 Red Hat, 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 co... | 1,226 |
396 | <filename>indicatorbox-library/src/main/java/com/wusp/indicatorbox_library/Particle/ParticleField.java
package com.wusp.indicatorbox_library.Particle;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import java.util.ArrayList;
/**
... | 1,642 |
417 | <gh_stars>100-1000
/***************************************************************************
file : grtexture.h
created : Wed Jun 1 14:56:31 CET 2005
copyright : (C) 2005 by <NAME>
version : $Id: grtexture.h,v 1.2.2.1 2008/08/16 14:12:08 berniw Ex... | 995 |
429 | /*******************************************************************************************
*
* raylib [shaders] example - Apply a shader to a 3d model
*
* NOTE: This example requires raylib OpenGL 3.3 or ES2 versions for shaders support,
* OpenGL 1.1 does not support shaders, recompile raylib to OpenGL 3.... | 1,376 |
4,538 | <filename>components/ota/hal/ota_hal_vfs_plat.c
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include "ota_log.h"
#include "ota_hal.h"
#include <aos/vfs.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include "ota_import.h"
#include "ota_h... | 5,267 |
14,668 | <gh_stars>1000+
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/accessibility/live_caption_speech_recognition_host.h"
#include <memory>
#include <utility>
#include "chrome/bro... | 1,223 |
348 | {"nom":"Eragny-sur-Epte","circ":"2ème circonscription","dpt":"Oise","inscrits":451,"abs":265,"votants":186,"blancs":13,"nuls":2,"exp":171,"res":[{"nuance":"REM","nom":"<NAME>","voix":98},{"nuance":"FN","nom":"<NAME>","voix":73}]} | 94 |
370 | // Copyright (c) 2018 <NAME>. All rights reserved.
//
#pragma once
#include <bitset>
#include <iostream>
#include <smf/rpc_generated.h>
namespace std {
inline ostream &
operator<<(ostream &o, const ::smf::rpc::header &h) {
o << "rpc::header={compression:"
<< ::smf::rpc::EnumNamecompression_flags(h.compression()... | 225 |
765 | <filename>src/systemc/tests/systemc/datatypes/misc/concat/test03/test03.cpp
/*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work fo... | 1,665 |
1,401 | package com.github.jvmgo.instructions.control;
import com.github.jvmgo.instructions.base.BranchInstruction;
import com.github.jvmgo.instructions.base.BytecodeReader;
import com.github.jvmgo.rtda.Frame;
public class goto_ extends BranchInstruction {
@Override
public int getOpCode() {
return 0xa7;
}... | 206 |
434 | <filename>openwrt-18.06/package/utils/fritz-tools/src/fritz_cal_extract.c
/*
* A tool for reading the zlib compressed calibration data
* found in AVM Fritz!Box based devices).
*
* Copyright (c) 2017 <NAME> <<EMAIL>>
*
* Based on zpipe, which is an example of proper use of zlib's inflate().
* that is Not copyrigh... | 2,977 |
374 | package me.hao0.diablo.common.convert;
import com.google.common.base.Converter;
/**
* Author: haolin
* Email: <EMAIL>
*/
public class BooleanConverter extends Converter<String, Boolean> {
public static final BooleanConverter INSTANCE = new BooleanConverter();
private BooleanConverter(){}
@Override
... | 182 |
435 | <reponame>amaajemyfren/data<filename>pycon-israel-2018/videos/advanced-celery-tricks-itamar-hartstein-pycon-israel-2018.json
{
"copyright_text": null,
"description": "Advanced Celery Tricks - How we adapted and extended Celery to fit our data pipeline\n\nIn Singular, we have a data pipeline which consists of hundre... | 675 |
2,195 | <reponame>liupeng68/mynews
/*
* Copyright (c) 2015 [<EMAIL> | <EMAIL>]
*
* 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 re... | 1,399 |
711 | #include "vk_default_loader.h"
#include "vulkan/vulkan.h"
#if defined(_WIN32)
#include <windows.h>
typedef void* (*vkGetInstanceProcAddrFn)(void* lib, const char* procname);
static vkGetInstanceProcAddrFn symLoader;
static void* loaderWrap(VkInstance instance, const char* vkproc) {
return (*sym... | 801 |
956 | <filename>src/dpdk/drivers/net/nfp/nfpcore/nfp6000/nfp6000.h<gh_stars>100-1000
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2018 Netronome Systems, Inc.
* All rights reserved.
*/
#ifndef __NFP_NFP6000_H__
#define __NFP_NFP6000_H__
/* CPP Target IDs */
#define NFP_CPP_TARGET_INVALID 0
#define NF... | 643 |
478 | <reponame>aerys/minko
/*
Copyright (c) 2014 Aerys
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish,... | 2,394 |
348 | <filename>docs/data/leg-t2/051/05101439.json<gh_stars>100-1000
{"nom":"Pomacle","circ":"1ère circonscription","dpt":"Marne","inscrits":332,"abs":167,"votants":165,"blancs":9,"nuls":1,"exp":155,"res":[{"nuance":"LR","nom":"<NAME>","voix":101},{"nuance":"DIV","nom":"<NAME>","voix":54}]} | 116 |
334 | <reponame>SpongePowered/Common
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated do... | 1,564 |
4,772 | <filename>jpa/deferred/src/main/java/example/repo/Customer228Repository.java<gh_stars>1000+
package example.repo;
import example.model.Customer228;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer228Repository extends CrudRepository<Customer228, Long> {
L... | 117 |
3,194 | /**
* Copyright (c) 2011-2021, <NAME> 詹波 (<EMAIL>).
*
* 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 b... | 538 |
2,151 | // © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
*
* Copyright (C) 2005-2012, International Business Machines
* Corporation and others. All Rights Reserved.
*
**********... | 1,204 |
469 | <reponame>born2snipe/mini2Dx
/*******************************************************************************
* Copyright 2019 See AUTHORS file
*
* 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 Licen... | 1,299 |
2,151 | // 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 IOS_CHROME_BROWSER_PAYMENTS_IOS_PAYMENT_INSTRUMENT_H_
#define IOS_CHROME_BROWSER_PAYMENTS_IOS_PAYMENT_INSTRUMENT_H_
#import <UIKit/UIKit.h>
#inc... | 1,118 |
713 | <reponame>franz1981/infinispan<gh_stars>100-1000
package org.infinispan.commands.write;
import org.infinispan.commands.DataCommand;
import org.infinispan.metadata.impl.PrivateMetadata;
/**
* Mixes features from DataCommand and WriteCommand
*
* @author <NAME>
* @since 4.0
*/
public interface DataWriteCommand exte... | 262 |
2,151 | <reponame>X018/CCTOOL
//===- llvm/Analysis/ScalarEvolution.h - Scalar Evolution -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------... | 26,023 |
3,227 | #include <CGAL/Cartesian.h>
#include <CGAL/Segment_2.h>
#include <CGAL/Iso_rectangle_2.h>
#include <CGAL/Largest_empty_iso_rectangle_2.h>
#include <fstream>
#include <cassert>
#include <sstream>
#define MIN_X 0
#define MIN_Y 0
#define MAX_X 10
#define MAX_Y 10
typedef double Number_Type... | 2,864 |
429 | package io.airlift.http.client.jetty;
import io.airlift.http.client.HttpClientConfig;
public class TestJettyHttpClientSocksProxyHttp2
extends TestJettyHttpClientSocksProxy
{
@Override
protected HttpClientConfig createClientConfig()
{
return super.createClientConfig()
.setHt... | 133 |
1,760 | /*
* Copyright (C)2009 - SSHJ Contributors
*
* 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... | 495 |
2,137 | <gh_stars>1000+
package com.publiccms.common.view;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import com.publiccms.common.base.AbstractFreemarkerView;
import com.publiccms.common.tools.ControllerUtils;
/**
*
* WebFreeMarkerView 视图类
*
*/
public class WebFreeMarkerView exte... | 266 |
319 | <filename>Examples/B04283_04_code/main.cpp
#include <iostream>
#include <string>
#include <sstream>
#include <cmath>
using namespace std;
// OpenCV includes
#include "opencv2/core/utility.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
using namespace cv;
Mat img;
// OpenCV command line parser func... | 2,803 |
1,408 | <reponame>sohumango/arm-trusted-firmware<gh_stars>1000+
/*
* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef QTI_SECURE_IO_CFG_H
#define QTI_SECURE_IO_CFG_H
#include <stdint.h>
/*
* List of peripheral/IO memory areas that are protected from... | 417 |
1,285 | package net.minestom.server.registry;
import net.kyori.adventure.key.Key;
import net.kyori.adventure.key.Keyed;
import net.minestom.server.utils.NamespaceID;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
public interface ProtocolObject extends Keyed {
@Contract(pure = true)... | 226 |
1,273 | <gh_stars>1000+
package org.broadinstitute.hellbender.tools.copynumber.formats.collections;
import org.broadinstitute.hellbender.tools.copynumber.formats.metadata.SampleLocatableMetadata;
import org.broadinstitute.hellbender.tools.copynumber.formats.records.CopyRatioSegment;
import org.broadinstitute.hellbender.utils.... | 1,193 |
11,775 | <reponame>rainyShine/jib
/*
* Copyright 2020 Google LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 472 |
3,834 | package org.enso.interpreter.node.expression.builtin.error;
import com.oracle.truffle.api.nodes.Node;
import org.enso.interpreter.dsl.BuiltinMethod;
import org.enso.interpreter.runtime.error.DataflowError;
@BuiltinMethod(
type = "Error",
name = "throw",
description = "Returns a new value error with given ... | 163 |
429 | <reponame>fedepad/daos
/*
* (C) Copyright 2018-2021 Intel Corporation.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
package io.daos.fs.hadoop;
import io.daos.BufferAllocator;
import io.daos.dfs.DaosFile;
import io.netty.buffer.ByteBuf;
import org.apache.hadoop.fs.FileSystem;
import org.slf4j.Logger;
import... | 2,291 |
5,411 | /*
* This file is part of the CitizenFX project - http://citizen.re/
*
* See LICENSE and MENTIONS in the root of the source tree for information
* regarding licensing.
*/
#pragma once
enum ConsoleModifiers
{
ConsoleModifierNone = 0,
ConsoleModifierAlt = 1,
ConsoleModifierShift = 2,
ConsoleModif... | 283 |
700 | <reponame>liboz/kuromoji
/**
* Copyright © 2010-2018 Atilika Inc. and contributors (see CONTRIBUTORS.md)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. A copy of the
* License is distributed with this work in the LICENSE.md fi... | 1,111 |
534 | <gh_stars>100-1000
#pragma once
#include <limits.h>
#define NAT_INT_MIN LLONG_MIN
#define NAT_INT_MAX LLONG_MAX
namespace Natalie {
using nat_int_t = long long;
}
| 70 |
3,589 | package picocli.examples.casesensitivity;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;
import java.util.Arrays;
@Command(name = "POSIX Option Resemble Demo",
description = "Demonstrates multiple POSIX options resembling a long option.")
public class POSIXOption... | 586 |
343 | <reponame>gerasim13/Tonic
//
// ControlPulse.cpp
// Tonic
//
// Created by <NAME> on 3/10/13.
//
#include "ControlPulse.h"
namespace Tonic { namespace Tonic_{
ControlPulse_::ControlPulse_() : lastOnTime_(0)
{}
} // Namespace Tonic_
} // Namespace Tonic
| 116 |
1,093 | <filename>spring-integration-core/src/test/java/org/springframework/integration/router/config/HeaderValueRouterParserTests.java
/*
* Copyright 2002-2019 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 Licen... | 1,072 |
1,546 | #include <cstdlib>
#include <cstring>
#include <iostream>
#include "apu.hpp"
#include "cartridge.hpp"
#include "joypad.hpp"
#include "ppu.hpp"
#include "cpu.hpp"
namespace CPU {
/* CPU state */
u8 ram[0x800];
u8 A, X, Y, S;
u16 PC;
Flags P;
bool nmi, irq;
// Remaining clocks to end frame:
const int TOTAL_CYCLES = 2... | 6,983 |
337 | <reponame>qussarah/declare
import org.jetbrains.annotations.NotNull;
class B<T>{
final T t;
public <U> U foo(U u, @NotNull String s) {
return null;
}
} | 80 |
401 | <reponame>roman-murashov/hedgewars
/*
* Hedgewars for Android. An Android port of Hedgewars, a free turn based strategy game
* Copyright (c) 2011-2012 <NAME> <<EMAIL>>
*
* 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 ... | 3,296 |
494 | /*******************************************************************************
* Copyright 2011 Netflix
*
* 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/... | 1,398 |
5,169 | {
"name": "YouTubePlayer",
"version": "0.1",
"summary": "Swift library for embedding and controlling YouTube videos in your iOS applications",
"homepage": "https://github.com/gilesvangruisen/Swift-YouTube-Player",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<NAME>": "<EMAIL>... | 257 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/t2/050/50621.json<gh_stars>100-1000
{"nom":"Vaudreville","dpt":"Manche","inscrits":66,"abs":17,"votants":49,"blancs":0,"nuls":49,"exp":0,"res":[]} | 91 |
1,837 | //========================================================================
//Copyright 2007-2010 <NAME> <EMAIL>
//------------------------------------------------------------------------
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the Licen... | 16,455 |
324 | /*
* 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 ... | 5,714 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.