max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,444 | package mage.cards.d;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.common.delayed.OnLeaveReturnExiledToBattlefieldAbility;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.CreateDelayedTriggere... | 1,378 |
8,747 | // Copyright 2020 Espressif Systems (Shanghai) CO 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 by applicabl... | 636 |
14,668 | // 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 CHROME_BROWSER_UI_VIEWS_THEME_COPYING_WIDGET_H_
#define CHROME_BROWSER_UI_VIEWS_THEME_COPYING_WIDGET_H_
#include "base/memory/raw_ptr.h"
#include... | 465 |
2,114 | /*
* Copyright 2018-present Facebook, 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 a... | 722 |
1,755 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkExtentRCBPartitioner.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT... | 2,105 |
4,879 | <gh_stars>1000+
#pragma once
#include "map/catalog_headers_provider.hpp"
#include "partners_api/guides_on_map_api.hpp"
#include <memory>
class GuidesOnMapDelegate : public guides_on_map::Api::Delegate
{
public:
GuidesOnMapDelegate(std::shared_ptr<CatalogHeadersProvider> const & headersProvider);
platform::Http... | 150 |
318 | <reponame>Imshuaige/zqxt
# -*- coding:utf-8 -*-
# WeizhongTu 2014.05.31
from __future__ import unicode_literals
from django.test import TestCase
from django.core.urlresolvers import reverse
from .models import Tutorial,Column
class TutorialsViews(TestCase):
def setUp(self):
# create columns:
# `t... | 1,193 |
1,077 | <filename>Quicksilver/Code-External/NDClasses/NDResourceFork+PascalStrings.h
/*
* NDResourceFork+PascalStrings.h category
* NDResourceFork
*
* Created by <NAME> on Tue Feb 11 2003.
* Copyright (c) 2002 <NAME>. All rights reserved.
*/
/*!
@header NDResourceFork+PascalStrings
@abstract Defines the interface ... | 1,042 |
5,169 | <filename>Specs/1/3/7/ZendeskConnect/2.0.0/ZendeskConnect.podspec.json
{
"name": "ZendeskConnect",
"version": "2.0.0",
"summary": "Better Messages for Web and Mobile Apps",
"description": "Connect makes it easy to send email and mobile messages based on user actions, then test how much each message helps your b... | 335 |
9,136 |
#include <gtest/gtest.h>
#include "Bullet3Common/b3Logging.h"
#include "Bullet3Common/b3CommandLineArgs.h"
#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h"
#include "Bullet3OpenCL/RigidBody/kernels/solverSetup.h"
#include "Bullet3OpenCL/RigidBody/kernels/solverSetup2.h"
#include "Bullet3OpenCL/RigidBody/kernels/so... | 2,951 |
629 | <gh_stars>100-1000
#include "libcompat.h"
int timer_create(clockid_t clockid CK_ATTRIBUTE_UNUSED,
struct sigevent *sevp CK_ATTRIBUTE_UNUSED,
timer_t * timerid CK_ATTRIBUTE_UNUSED)
{
/*
* The create function does nothing. timer_settime will use
* alarm to set the timer, ... | 179 |
2,151 | <filename>third_party/android_tools/sdk/sources/android-25/com/android/settingslib/accessibility/AccessibilityUtils.java
/*
* 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.
* Y... | 2,556 |
5,129 | <reponame>Maria-philna/unilm<filename>infoxlm/src-infoxlm/infoxlm/__init__.py
import infoxlm.tasks
import infoxlm.models
import infoxlm.criterions | 65 |
1,056 | <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
* ... | 52,596 |
697 | <reponame>clinuxrulz/sodium
package pump;
public class Sale
{
public Sale(Fuel fuel, double price, double cost, double quantity) {
this.fuel = fuel;
this.price = price;
this.cost = cost;
this.quantity = quantity;
}
public final Fuel fuel;
public final double price;
... | 145 |
45,293 | <gh_stars>1000+
/*
* Copyright 2010-2017 JetBrains s.r.o.
*
* 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... | 486 |
1,909 | package org.knowm.xchange.bitcoinde.dto.marketdata;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Arrays;
public class BitcoindeOrders {
private final BitcoindeOrder[] bids;
private final BitcoindeOrder[] asks;
public BitcoindeOrders(
@JsonProperty("bids") BitcoindeOrder[] bids,... | 306 |
977 | <filename>Sources/Physics/Colliders/CapsuleCollider.cpp<gh_stars>100-1000
#include "CapsuleCollider.hpp"
#include <BulletCollision/CollisionShapes/btCapsuleShape.h>
namespace acid {
CapsuleCollider::CapsuleCollider(float radius, float height, const Transform &localTransform) :
//Collider(localTransform),
shape(std:... | 485 |
1,457 | <reponame>Actis92/lightning-flash
# Copyright The PyTorch Lightning 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/LICENSE-2.0
#
# Unless require... | 1,872 |
1,338 | <reponame>Kirishikesan/haiku
/*
* Copyright (C) 1999-2001 Free Software Foundation, Inc.
* This file is part of the GNU LIBICONV Library.
*
* The GNU LIBICONV Library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Library General Public
* License as published by the Free S... | 767 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Trait",
"definitions": [
"A distinguishing quality or characteristic, typically one belonging to a person.",
"A genetically determined characteristic."
],
"parts-of-speech": "Noun"
} | 96 |
571 | /*
* Copyright (c) 2020-2021 <NAME> <EMAIL>
* zlib License, see LICENSE file.
*/
#ifndef BN_HBE_PTR_H
#define BN_HBE_PTR_H
/**
* @file
* bn::hbe_ptr header file.
*
* @ingroup hblank_effect
*/
#include "bn_utility.h"
#include "bn_span_fwd.h"
#include "bn_functional.h"
namespace bn
{
/**
* @brief std::share... | 1,054 |
401 | /*
* Hedgewars for Android. An Android port of Hedgewars, a free turn based strategy game
* Copyright (c) 2011-2012 <NAME> <<EMAIL>>
* Copyright (C) 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... | 2,556 |
465 | <filename>Code/Chenglong/feature_wordnet_similarity.py
# -*- coding: utf-8 -*-
"""
@author: <NAME> <<EMAIL>>
@brief: wordnet similarity based features (veeerrry time consuming)
@note: in our final submission, we are only able to generate WordNet_Path_Similarity between
search_term and product_title in reasonable... | 2,889 |
1,491 | #include "fio_cli.h"
#include "http.h"
static void on_response(http_s *h);
int main(int argc, char const *argv[]) {
fio_cli_start(
argc, argv, 1, 1,
"This is an HTTP client example, use:\n"
"\n\tfioapp http://example.com/foo\n",
FIO_CLI_STRING("-unix -u Unix Socket address (has no place in u... | 347 |
413 | <filename>python/minicaffe/craft.py<gh_stars>100-1000
# coding = utf-8
# pylint: disable=too-many-arguments, invalid-name
"""Crafter for generate prototxt string"""
class LayerCrafter(object):
"""Layer Crafter for layer prototxt generation
"""
def __init__(self, **kwargs):
"""parameters for this ... | 1,216 |
1,768 | // Copyright (c) 2003 Compaq Corporation. All rights reserved.
// Portions Copyright (c) 2003 Microsoft Corporation. All rights reserved.
package tla2sany.semantic;
import java.util.Hashtable;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import tla2sany.explorer.ExploreNode;
im... | 1,714 |
772 | # Copyright 2021 The FedLearner 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 applica... | 1,112 |
947 | <filename>simpleimage.core/src/main/java/com/alibaba/simpleimage/codec/jpeg/HuffmanTable.java
/*
* Copyright 1999-2101 Alibaba Group.
*
* 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... | 2,971 |
1,664 | <reponame>likenamehaojie/Apache-Ambari-ZH<filename>contrib/views/capacity-scheduler/src/main/resources/ui/app/assets/data/resourcemanager.json
{
"href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/MyCluster/services/YARN/components/RESOURCEMANAGER?fields=host_components",
"ServiceComponentInfo" : {
"c... | 354 |
458 | <reponame>minond/ffi-overhead
extern "C" {
#include <stdio.h>
#include "newplus/plus.h"
}
#include <string>
void run(int count)
{
long long start = current_timestamp();
int x = 0;
while (x < count)
x = plusone(x);
printf("%lld\n", current_timestamp() - start);
}
int main(int argc, c... | 308 |
1,402 | <reponame>kvmanohar22/gtsam<gh_stars>1000+
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: <NAME>, et al. (see THANKS for the full author list)
* See LICENSE f... | 1,136 |
636 | <filename>fluent-mybatis-test/src/test/java/cn/org/atool/fluent/mybatis/generator/shared2/mix/HomeAddressTableMix.java
package cn.org.atool.fluent.mybatis.generator.shared2.mix;
import cn.org.atool.fluent.mybatis.generator.shared2.dm.HomeAddressDataMap;
import org.test4j.hamcrest.matcher.modes.EqMode;
import org.test4... | 962 |
938 | <reponame>karakufire/TinkersConstruct
package slimeknights.tconstruct.library.client.modifiers;
import com.google.common.collect.ImmutableList;
import com.google.gson.JsonObject;
import lombok.RequiredArgsConstructor;
import net.minecraft.client.renderer.model.BakedQuad;
import net.minecraft.client.renderer.model.Rend... | 1,107 |
1,444 | <reponame>GabrielSturtevant/mage
package mage.cards.a;
import mage.abilities.effects.common.SacrificeEffect;
import mage.abilities.effects.keyword.BolsterEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.StaticFilters;
import mage.target.TargetPlayer... | 383 |
2,151 | <reponame>chlorm-forks/gyp
#!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Make sure that manual rules on Windows override the built in ones.
"""
import sys
import TestGyp
if sys.pla... | 232 |
831 | <reponame>phpc0de/idea-android
/*
* Copyright (C) 2017 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... | 4,672 |
852 | #include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/makeRefToBaseProdFrom.h"
#include "FWCore/ParameterSet/interface/Parame... | 4,698 |
1,830 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Zeebe Community License 1.1. You may not use this file
* ... | 825 |
634 | <filename>backends-common/cassandra/src/main/java/org/apache/james/backends/cassandra/init/CassandraZonedDateTimeModule.java
/****************************************************************
* Licensed to the Apache Software Foundation (ASF) under one *
* or more contributor license agreements. See the NOTICE file... | 1,231 |
746 | <reponame>xizi/mmdeploy<gh_stars>100-1000
# Copyright (c) OpenMMLab. All rights reserved.
import glob
import os.path as osp
def get_ops_path() -> str:
"""Get path of the torchscript extension library.
Returns:
str: A path of the torchscript extension library.
"""
wildcard = osp.abspath(
... | 294 |
3,586 | <gh_stars>1000+
package com.linkedin.datahub.graphql.resolvers.load;
import com.linkedin.datahub.graphql.UsageStatsKey;
import com.linkedin.datahub.graphql.types.LoadableType;
import com.linkedin.pegasus2avro.usage.UsageQueryResult;
import com.linkedin.usage.UsageTimeRange;
import graphql.schema.DataFetcher;
import g... | 436 |
790 | <filename>AppServer/google/appengine/tools/devappserver2/thread_executor.py
#!/usr/bin/env python
#
# Copyright 2007 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:/... | 662 |
667 | //
// Copyright (c) 2013 The ANGLE Project 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 "compiler/translator/TranslatorGLSL.h"
//
// This function must be provided to create the actual
// compile object used by higher... | 279 |
2,261 | <reponame>XRay3D/compile-time-regular-expressions<gh_stars>1000+
#ifndef CTLL__TYPE_STACK__HPP
#define CTLL__TYPE_STACK__HPP
#include "utilities.hpp"
namespace ctll {
template <typename... Ts> struct list { };
struct _nothing { };
using empty_list = list<>;
// calculate size of list content
template <typename...... | 1,046 |
695 | <reponame>xenron/sandbox-dev-lintcode
// Time: O(n)
// Space: O(n)
class Solution {
public:
/**
* @param expression: a vector of strings;
* @return: an integer
*/
int evaluateExpression(vector<string> &expression) {
stack<int> operands;
stack<string> operators;
if (expre... | 2,704 |
554 | <filename>puput/models.py
from django.conf import settings
from django.core.exceptions import ValidationError
from django.db import models
from django.template.defaultfilters import slugify
from django.utils.translation import gettext_lazy as _
from wagtail.core.models import Page
from wagtail.admin.edit_handlers impo... | 2,243 |
3,402 | /*
* 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,481 |
2,690 | <gh_stars>1000+
#ifndef SM_NUMERICAL_DIFF_HPP
#define SM_NUMERICAL_DIFF_HPP
#include <Eigen/Core>
#include <sm/assert_macros.hpp>
#include <boost/function.hpp>
#include <boost/bind.hpp>
namespace sm { namespace eigen {
template<typename RESULT_VEC_T, typename INPUT_VEC_T, typename JACOBIAN_T = Eigen::MatrixXd>
... | 1,381 |
362 | <gh_stars>100-1000
// Copyright (c) 2018-2020, <NAME>. For more information see 'LICENSE'
#pragma once
#include "scene/Renderer/ScenePreRender.h"
#include "scene/Renderer/RenderQueue.h"
#include "scene/Shaders/ShaderCache.h"
namespace FG
{
//
// Render Technique interface
//
class IRenderTechnique
{
// type... | 730 |
791 | import tensorflow as tf
from tensorflow.python.ops import variables
from tensorflow.python.ops import array_ops
from tensorflow.python.framework import ops
from tensorflow.python.ops import state_ops
from tensorflow.python.ops import variable_scope
from tf_extended import math as tfe_math
import util
def _create_local... | 1,662 |
854 | __________________________________________________________________________________________________
sample 0 ms submission
/*
* @lc app=leetcode id=367 lang=java
*
* [367] Valid Perfect Square
*/
class Solution {
public boolean isPerfectSquare(int num) {
if (num == 1) {
return true;
}... | 627 |
2,134 | <reponame>dendisuhubdy/opentrack<filename>pose-widget/export.hpp
// generates export.hpp for each module from compat/linkage.hpp
#pragma once
#include "compat/linkage-macros.hpp"
#ifdef BUILD_POSE_WIDGET
# define OTR_POSE_WIDGET_EXPORT OTR_GENERIC_EXPORT
#else
# define OTR_POSE_WIDGET_EXPORT OTR_GENERIC_IMPORT
#... | 138 |
938 | package com.susion.rabbit.base.entities;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Keep;
/**
* susionwang at 2020-01-14
*/
@Entity
public class RabbitAppPerformanceInf... | 1,345 |
575 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_ARC_SESSION_ARC_CONTAINER_CLIENT_ADAPTER_H_
#define COMPONENTS_ARC_SESSION_ARC_CONTAINER_CLIENT_ADAPTER_H_
#include <memory>
#include... | 200 |
2,151 | <reponame>zipated/src
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/search_engines/template_url_prepopulate_data.h"
#if defined(OS_POSIX) && !defined(OS_MACOSX)
#include <locale.... | 10,980 |
10,225 | <reponame>CraigMcDonaldCodes/quarkus
package io.quarkus.deployment.builditem;
import io.quarkus.builder.item.SimpleBuildItem;
/**
* Marker used only to ensure that the file system resources where properly written in dev-mode
*/
public final class GeneratedFileSystemResourceHandledBuildItem extends SimpleBuildItem {... | 93 |
12,278 | /*=============================================================================
Copyright (c) 2019 <NAME>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
======================================================... | 149 |
383 | """The tests for the ATC ble_parser."""
from ble_monitor.ble_parser import BleParser
class TestATC:
"""Tests for the ATC parser"""
def test_atc_atc1441(self):
"""Test ATC parser for ATC 1441 format."""
data_string = "043e1d02010000f4830238c1a41110161a18a4c1380283f400a22f5f0bf819df"
da... | 2,551 |
1,037 | package com.nostra13.universalimageloader.core.download;
import org.fest.assertions.api.Assertions;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import com.nostra13.universalimageloader.core.download.ImageDownloader.Scheme;
@RunWith(RobolectricTestRunner.class... | 707 |
373 | <gh_stars>100-1000
/*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2015 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.org/licenses/LICEN... | 996 |
2,063 | package com.example.demo.scene.live.huya;
import android.app.Activity;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
import an... | 2,510 |
410 | {
"authors": [],
"date_download": "2018-01-01T22:41:28",
"date_modify": null,
"date_publish": "2017-12-26T00:00:00",
"description": "<NAME> of Erie, Pa., received a bill of more than $284 billion. The Erie Times News reports that's more than the combined national debts of Hungary and South Africa.",
"filena... | 746 |
2,225 | {
"fontId": "dejavu-math",
"fontName": "DejaVu Math",
"subsets": ["latin"],
"weights": [400],
"styles": ["normal"],
"defSubset": "latin",
"variable": false,
"lastModified": "2021-08-19",
"version": "v2.37",
"category": "display",
"source": "https://github.com/dejavu-fonts/dejavu-fonts/tree/master"... | 186 |
592 | //
// MMBounceButton.h
// LooseLeaf
//
// Created by <NAME> on 9/1/13.
// Copyright (c) 2013 Milestone Made, LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MMBounceButton : UIButton
@property (nonatomic, assign) CGFloat rotation;
- (UIColor*)borderColor;
- (UIColor*)backgroundColor;
- (CGAff... | 156 |
4,028 | <reponame>timgates42/python-prompt-toolkit<gh_stars>1000+
#!/usr/bin/env python
"""
Demonstration of a custom completer class and the possibility of styling
completions independently by passing formatted text objects to the "display"
and "display_meta" arguments of "Completion".
"""
from prompt_toolkit.completion impor... | 1,815 |
634 | <filename>modules/boot/container-api/src/main/java/consulo/container/plugin/util/PlatformServiceLocator.java
/*
* Copyright 2013-2019 consulo.io
*
* 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... | 548 |
4,807 | <reponame>jamespeapen/polybar
#pragma once
#include "common.hpp"
POLYBAR_NS
namespace scope_util {
/**
* Creates a wrapper that will trigger given callback when
* leaving the object's scope (i.e, when it gets destroyed)
*
* Example usage:
* @code cpp
* {
* on_exit handler([]{ ... });
... | 257 |
1,936 | #include <algorithm>
#include <functional>
#include <vector>
#include <Eigen/Core>
#include <maplab-common/test/testing-entrypoint.h>
#include <maplab-common/test/testing-predicates.h>
#include <product-quantization/learn-product-quantization.h>
namespace product_quantization {
TEST(LearnProductQuantizationTest, Ei... | 1,674 |
347 | /*
* Copyright oVirt Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.ovirt.engine.api.restapi.resource.openstack;
import javax.ws.rs.core.Response;
import org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKey;
import org.ovirt.engine.api.resource.openstack.OpenstackVolumeAuthenticationKeyResour... | 556 |
409 | <gh_stars>100-1000
package org.cloud.sonic.controller.feign;
import com.alibaba.fastjson.JSONObject;
import org.cloud.sonic.common.http.RespModel;
import org.cloud.sonic.controller.feign.fallback.TransportFeignClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.a... | 270 |
478 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "AdaptiveImageRenderer.g.h"
#include "Image.h"
namespace winrt::AdaptiveCards::Rendering::Uwp::implementation
{
struct AdaptiveImageRenderer : AdaptiveImageRendererT<AdaptiveImageRenderer>
{
... | 451 |
14,668 | <reponame>zealoussnow/chromium
// 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.
#ifndef CHROME_BROWSER_UI_WEBUI_UTIL_IMAGE_UTIL_H_
#define CHROME_BROWSER_UI_WEBUI_UTIL_IMAGE_UTIL_H_
#include "base/conta... | 299 |
446 | # Generated by Django 2.0 on 2018-07-29 01:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("events", "0036_auto_20180701_2148")]
operations = [
migrations.AddField(
model_name="organization",
name="cover_img",
f... | 344 |
3,348 | <reponame>wromansky/incubator-heron<filename>heron/uploaders/src/java/org/apache/heron/uploader/hdfs/HdfsUploader.java
/**
* 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 c... | 1,427 |
403 | package com.xcompany.xproject.auth.server;
import javax.servlet.http.HttpServletResponse;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.spr... | 1,291 |
328 | /*
* This file is part of GreatFET
*
* GPIO Interrupt support.
*/
#include "gpio_int.h"
#include <libopencm3/lpc43xx/m4/nvic.h>
#include <drivers/arm_vectors.h>
// Maps IRQs to their interrupts.
static const int irq_for_interrupt[] = {
NVIC_PIN_INT0_IRQ,
NVIC_PIN_INT1_IRQ,
NVIC_PIN_INT2_IRQ,
NVIC_PIN_I... | 2,239 |
918 | // This is a generated file! Please edit source .ksy file and use
// kaitai-struct-compiler to rebuild
#include "kaitai/elf.h"
namespace veles {
namespace kaitai {
namespace elf {
elf_t::elf_t(kaitai::kstream* p_io, kaitai::kstruct* p_parent, elf_t* p_root)
: kaitai::kstruct(p_io) {
m__io->pushName("_parent");... | 7,824 |
631 | <reponame>767248371/octo-rpc
/**
* Autogenerated by Thrift Compiler (0.8.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include "echo_constants.h"
namespace echo {
const echoConstants g_echo_constants;
echoConstants::echoConstants() {
}
} // namespace
| 111 |
2,338 | <filename>clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_cntp.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// REQUIRES: aarch64-registered-target
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -S -O1 -Werror -Wall -emit-ll... | 2,474 |
360 | <reponame>tigertv/Cube-Engine
#pragma once
namespace tzw {
struct Particle;
class ParticleEmitter;
class ParticleEmitterModule
{
public:
virtual ~ParticleEmitterModule() = default;
ParticleEmitterModule();
virtual void process(Particle * particle, ParticleEmitter * emitter);
};
} // namespace tzw | 101 |
326 | // Boost.Geometry Index
//
// Copyright (c) 2011-2013 <NAME>, <NAME>.
//
// This file was modified by Oracle on 2020.
// Modifications copyright (c) 2020 Oracle and/or its affiliates.
// Contributed and/or modified by <NAME>, on behalf of Oracle
//
// Use, modification and distribution is subject to the Boost Software ... | 482 |
66,985 | /*
* Copyright 2012-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... | 1,213 |
3,285 | <reponame>grybd/oneflow<filename>python/oneflow/test/graph/test_graph_pipeline.py<gh_stars>1000+
"""
Copyright 2020 The OneFlow 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 Lic... | 5,203 |
3,933 | <reponame>BennZoll/roboto
typedef struct {
double x;
double y;
char ty;
} spiro_cp;
typedef struct spiro_seg_s spiro_seg;
spiro_seg *
run_spiro(const spiro_cp *src, int n);
void
free_spiro(spiro_seg *s);
void
spiro_to_bpath(const spiro_seg *s, int n, bezctx *bc);
double get_knot_th(const spiro_seg *s, ... | 160 |
507 | # tests/test_provider_paultyng_airtable.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:11:05 UTC)
def test_provider_import():
import terrascript.provider.paultyng.airtable
def test_datasource_import():
from terrascript.data.paultyng.airtable import airtable_table
# TODO: Shortcut import... | 265 |
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... | 3,153 |
357 | <filename>vmidentity/platform/src/main/java/com/vmware/identity/interop/domainmanager/LinuxDomainTrust.java<gh_stars>100-1000
/*
* Copyright (c) 2012-2015 VMware, 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 ... | 1,964 |
628 | from doctr.file_utils import is_torch_available
def test_file_utils():
assert is_torch_available()
| 35 |
465 | #pragma once
#include <lanelet2_io/Exceptions.h>
#include <lanelet2_io/Projection.h>
namespace lanelet {
namespace projection {
class UtmProjector : public Projector {
public:
explicit UtmProjector(Origin origin, bool useOffset = true, bool throwInPaddingArea = false);
BasicPoint3d forward(const GPSPoint& gps) c... | 183 |
1,350 | <reponame>billwert/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridnetwork.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.a... | 3,959 |
583 | <gh_stars>100-1000
#include "transaction_manager.hpp"
#include "commit_context.hpp"
#include "storage/mvcc_data.hpp"
#include "transaction_context.hpp"
#include "utils/assert.hpp"
namespace opossum {
TransactionManager::TransactionManager()
: _next_transaction_id{INITIAL_TRANSACTION_ID},
_last_commit_id{IN... | 1,511 |
1,847 | // Copyright (c) 2020 The Orbit 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 <gtest/gtest.h>
#include <stdint.h>
#include <memory>
#include <variant>
#include "PerfEvent.h"
#include "PerfEventQueue.h"
namespace orbit_l... | 5,221 |
407 | <reponame>iuskye/SREWorks
package com.alibaba.tesla.tkgone.backend.service.dto;
import java.util.Date;
import lombok.Builder;
import lombok.Data;
/**
* @author xueyong.zxy
*/
@Builder
@Data
public class BackendDTO {
private Long id;
private Date gmtCreate;
private Date gmtModified;
private Stri... | 219 |
1,511 | /* libs/corecg/SkDebug_brew.cpp
**
** Copyright 2009, The Android Open Source Project
** Copyright 2009, Company 100, Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License"); | 56 |
2,326 | <reponame>mengzhisuoliu/librime
//
// Copyright RIME Developers
// Distributed under the BSD License
//
// 2011-12-01 <NAME> <<EMAIL>>
//
#ifndef RIME_DEPLOYER_H_
#define RIME_DEPLOYER_H_
#include <future>
#include <mutex>
#include <queue>
#include <boost/any.hpp>
#include <rime/common.h>
#include <rime/component.h>
#... | 610 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-cp8j-5593-5j34",
"modified": "2022-04-20T00:01:59Z",
"published": "2021-12-23T00:01:08Z",
"aliases": [
"CVE-2021-21906"
],
"details": "Stack-based buffer overflow vulnerability exists in how the CMA readfile function of Garrett Metal Detectors iC Module CMA Ver... | 499 |
465 | <gh_stars>100-1000
# https://www.kaggle.com/c/home-depot-product-search-relevance/forums/t/18967/data-preparation
COLOR_LIST = [
"white",
"black",
"brown",
"gray",
"chrome",
"stainless steel",
"whites",
"red",
"browns / tans",
"bronze",
"silver",
"blacks",
"beige",
"stainless",
"blue",
"nickel",
"metallics",
"clear",
... | 661 |
447 | /*=============================================================================
Copyright (c) 2014-2021 <NAME>. All rights reserved.
Distributed under the MIT License [ https://opensource.org/licenses/MIT ]
=============================================================================*/
#if !defined(CYCFI_Q_BITST... | 2,213 |
504 | <reponame>ekoATgithub/dddlib<gh_stars>100-1000
package org.dayatang.db;
import java.util.List;
/**
* @author chencao
*
*/
public interface DBManager {
/**
* 执行SQL脚本
*
* @param sqlFile SQL脚本路径
*/
public void executeSQL(String sqlFile);
/**
* 清理数据库,删除所有表和视图
*/
public void cleanDatabase();
/**
... | 537 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.