max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
428 | /*
** 2013 February 14
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
*/
packag... | 471 |
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... | 322 |
32,544 | package com.baeldung.spring.data.dynamodb.repositories;
import java.util.Optional;
import org.socialsignin.spring.data.dynamodb.repository.EnableScan;
import org.springframework.data.repository.CrudRepository;
import com.baeldung.spring.data.dynamodb.model.ProductInfo;
@EnableScan
public interface ProductInfoReposi... | 141 |
14,668 | // Copyright 2021 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_VIZ_SERVICE_DISPLAY_DISPLAY_RESOURCE_PROVIDER_NULL_H_
#define COMPONENTS_VIZ_SERVICE_DISPLAY_DISPLAY_RESOURCE_PROVIDER_NULL_H_
#includ... | 332 |
3,897 | <filename>targets/TARGET_NUVOTON/TARGET_M2354/device/system_M2354.c
/**************************************************************************//**
* @file system_M2354.c
* @version V2.00
* @brief System Setting Source File
*
* @note
* @copyright SPDX-License-Identifier: Apache-2.0
* Copyright (C) 2016 N... | 1,232 |
711 | <reponame>jingetiema2100/MicroCommunity
package com.java110.goods.bmo.groupBuyBatch;
import com.java110.po.groupBuyBatch.GroupBuyBatchPo;
import org.springframework.http.ResponseEntity;
public interface IDeleteGroupBuyBatchBMO {
/**
* 修改拼团批次
* add by wuxw
*
* @param groupBuyBatchPo
* @r... | 177 |
3,655 | <reponame>cheneyveron/PaddleX<gh_stars>1000+
// Copyright (c) 2021 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.o... | 4,615 |
677 | // Copyright 2017 The Lynx Authors. All rights reserved.
#include "render/label_measurer.h"
#include "render/input.h"
#include "render/impl/render_object_impl.h"
#include "render/render_tree_host.h"
namespace lynx {
Input::Input(const char *tag_name,
uint64_t id,
RenderTreeHost* host)
: ... | 1,827 |
623 | <reponame>xhochy/onnxmltools
# SPDX-License-Identifier: Apache-2.0
from ....common._registration import register_shape_calculator
from ....common.data_types import FloatTensorType
from ....common.utils import check_input_and_output_numbers, check_input_and_output_types
def calculate_flatten_output_shapes(operator):
... | 522 |
640 | /*
* z88dk z80 multi-task library
*
* $Id: thread_manager.c,v 1.4 2015-01-21 17:49:59 stefano Exp $
*/
#include <threading/preempt.h>
void thread_manager()
{
#asm
PUBLIC thread_manager_first_entry
push af ; Preserve register on process stack
push bc
push de
... | 1,197 |
513 | #pragma once
#include "platglue.h"
#include <stdio.h>
class LinkedListElement
{
public:
LinkedListElement* m_Next;
LinkedListElement* m_Prev;
LinkedListElement(void)
{
m_Next = this;
m_Prev = this;
printf("LinkedListElement (%p)->(%p)->(%p)\n", m_Prev, this, m_Next);
}... | 529 |
573 | <reponame>Avuxo/dynarmic
/* This file is part of the dynarmic project.
* Copyright (c) 2018 MerryMage
* SPDX-License-Identifier: 0BSD
*/
#include "dynarmic/common/fp/op/FPRSqrtEstimate.h"
#include "dynarmic/common/common_types.h"
#include "dynarmic/common/fp/fpcr.h"
#include "dynarmic/common/fp/fpsr.h"
#include "d... | 910 |
5,964 | <filename>v8_7_5/src/objects/cell-inl.h
// Copyright 2018 the V8 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.
#ifndef V8_OBJECTS_CELL_INL_H_
#define V8_OBJECTS_CELL_INL_H_
#include "src/objects/cell.h"
#include "src/heap... | 330 |
7,113 | <filename>shared/common/src/main/java/com/alibaba/otter/shared/common/model/config/data/DataMedia.java
/*
* Copyright (C) 2010-2101 Alibaba Group Holding 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 ... | 2,438 |
343 | <filename>syzygy/version/syzygy_version.h
// Copyright 2011 Google 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/LICEN... | 1,202 |
1,049 | <gh_stars>1000+
//
// Created by Devilsen on 2019-08-09.
//
#ifndef CZXING_IMAGESCHEDULER_H
#define CZXING_IMAGESCHEDULER_H
#include <jni.h>
#include <opencv2/core/mat.hpp>
#include <src/MultiFormatReader.h>
#include <src/BinaryBitmap.h>
#include "Result.h"
#include "JavaCallHelper.h"
#include "QRCodeRecognizer.h"
#... | 877 |
809 | <reponame>nikitavlaev/embox
#ifndef SQLITE_SYS_STAT_H_
#define SQLITE_SYS_STAT_H_
#include <sys/types.h>
extern int fchmod(int fildes, mode_t mode);
#include_next <sys/stat.h>
#endif /* SQLITE_SYS_STAT_H_ */
| 101 |
301 | <gh_stars>100-1000
/******************************************************************
*
* Copyright 2016 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.
* You may obtain a... | 816 |
5,169 | <filename>Specs/WHCycleScrollView/1.0.0/WHCycleScrollView.podspec.json
{
"name": "WHCycleScrollView",
"version": "1.0.0",
"summary": "A cycle scrollView",
"description": "A cycle scrollView,Support web image and local image together",
"homepage": "https://github.com/kiwh77/WHCycleScrollView",
"license": "MI... | 292 |
709 | <filename>src/main/java/com/olacabs/jackhammer/models/mapper/HardcodeSecretMapper.java
package com.olacabs.jackhammer.models.mapper;
import com.olacabs.jackhammer.models.HardcodeSecret;
import org.skife.jdbi.v2.StatementContext;
import org.skife.jdbi.v2.tweak.ResultSetMapper;
import java.sql.ResultSet;
import java.sq... | 300 |
308 | """
Docker
====
This module provides a docker tools.
"""
from fabric.api import env
from fabtools.system import UnsupportedFamily, distrib_family
from fabtools.utils import run_as_root
from fabtools import files
def core():
"""
Require the docker core installation.
Example::
from fabtools im... | 398 |
458 | <reponame>VelocityRa/Ghidra-Cpp-Class-Analyzer<gh_stars>100-1000
package cppclassanalyzer.graph;
import ghidra.graph.visualization.DefaultGraphDisplayProvider;
public class InheritanceGraphDisplayProvider extends DefaultGraphDisplayProvider {
@Override
public String getName() {
return "Inheritance Graph Display ... | 105 |
679 | <filename>main/sw/source/filter/inc/wwstyles.hxx
/**************************************************************
*
* 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 copyrig... | 4,869 |
605 | <reponame>LaudateCorpus1/llvm-project<filename>libc/test/src/math/differential_testing/hypot_perf.cpp
//===-- Differential test for hypot ---------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license infor... | 238 |
371 | <filename>src/net/loveruby/cflat/exception/JumpError.java
package net.loveruby.cflat.exception;
public class JumpError extends SemanticError {
public JumpError(String msg) {
super(msg);
}
}
| 80 |
965 | // concrt-omp-parallel-any-of.cpp
// compile with: /EHsc /openmp
#include <ppl.h>
#include <array>
#include <random>
#include <iostream>
using namespace concurrency;
using namespace std;
// Uses OpenMP to determine whether a condition exists in
// the specified range of elements.
template <class InIt, class Predicat... | 1,042 |
348 | <filename>docs/data/leg-t2/089/08902271.json
{"nom":"Moulins-en-Tonnerrois","circ":"2ème circonscription","dpt":"Yonne","inscrits":98,"abs":34,"votants":64,"blancs":5,"nuls":0,"exp":59,"res":[{"nuance":"REM","nom":"<NAME>","voix":32},{"nuance":"UDI","nom":"<NAME>","voix":27}]} | 117 |
775 | <filename>ChateauExtras/src/main/java/com/badoo/chateau/extras/recycle/ViewHolderFactory.java
package com.badoo.chateau.extras.recycle;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;
public interface ViewHolderFactory<T extends RecyclerView.Vie... | 136 |
5,169 | {
"name": "MikadoSDK",
"version": "0.0.1",
"summary": "A short description of MikadoSDK.",
"description": "TODO: Add long description of the pod here.",
"homepage": "https://gitlab.com/prettytechnical/mikado-sdk",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<NAME>": "https... | 380 |
401 | package com.zwh.annotation.aspect;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.METHOD)
public @interface CheckLogin {
} | 91 |
872 | <filename>375 Guess Number Higher or Lower II.py<gh_stars>100-1000
"""
We are playing the Guess Game. The game is as follows:
I pick a number from 1 to n. You have to guess which number I picked.
Every time you guess wrong, I'll tell you whether the number I picked is higher or lower.
However, when you guess a parti... | 1,221 |
473 | #ifndef BOOL_H_
#define BOOL_H_
typedef unsigned char bool;
enum { false = 0, true = 1 };
enum {ERROR = -1, SUCCESS = 0, FAIL = 1};
#endif
| 61 |
1,333 | #include "assembler/x86_64/managed_register_x86_64.h"
namespace whale {
namespace x86_64 {
// Define register pairs.
// This list must be kept in sync with the RegisterPair enum.
#define REGISTER_PAIR_LIST(P) \
P(RAX, RDX) \
P(RAX, RCX) \
P(RAX, RBX) \
P(RAX, RD... | 917 |
460 | /*
* Copyright (C) 1999 <NAME> (<EMAIL>)
* (C) 1999 <NAME> (<EMAIL>)
* (C) 2001 <NAME> (<EMAIL>)
* (C) 2006 <NAME> (<EMAIL>)
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
* Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (htt... | 18,147 |
1,085 | {"commitInfo":{"timestamp":1610656317464,"operation":"WRITE","operationParameters":{"mode":"Append","partitionBy":"[]"},"readVersion":4,"isBlindAppend":true,"operationMetrics":{"numFiles":"1","numOutputBytes":"2612","numOutputRows":"101"}}}
{"add":{"path":"part-00000-12ea5a77-f9a0-46dd-8390-305b85bb0ed7-c000.snappy.par... | 142 |
3,486 | package com.thinkaurelius.titan.diskstorage.locking.consistentkey;
import com.thinkaurelius.titan.diskstorage.ReadBuffer;
import com.thinkaurelius.titan.diskstorage.StaticBuffer;
import com.thinkaurelius.titan.diskstorage.WriteBuffer;
import com.thinkaurelius.titan.diskstorage.util.StaticArrayBuffer;
import com.thinka... | 727 |
1,396 | <gh_stars>1000+
/*
* 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, software
... | 507 |
787 | // OJ: https://leetcode.com/problems/minimum-time-visiting-all-points/
// Author: github.com/lzl124631x
// Time: O(N)
// Space: O(1)
class Solution {
int getDist(vector<int> &a, vector<int> &b) {
return max(abs(a[0] - b[0]), abs(a[1] - b[1]));
}
public:
int minTimeToVisitAllPoints(vector<vector<int>... | 239 |
1,444 | <filename>Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/DeathtouchTest.java
package org.mage.test.cards.abilities.keywords;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* @author LevelX2
*/
publ... | 2,006 |
481 | <gh_stars>100-1000
/* Copyright 2015 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 ... | 743 |
702 | #!/usr/bin/python
print("Olá, Mundo!")
| 18 |
330 | #import <Cocoa/Cocoa.h>
@interface NSImage (Resize)
- (NSImage *)imageWithHeight:(CGFloat)height;
+ (NSImage *)imageFromName:(NSString *)name withHeight:(CGFloat)height;
@end | 70 |
2,603 | <reponame>JVVJV/FreeRTOS<gh_stars>1000+
/***********************************************************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only
* intended for use with Renesas products. No other uses are authori... | 1,207 |
934 | <gh_stars>100-1000
// Copyright 2018-present MongoDB 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 applica... | 957 |
8,264 | """This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license.
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'label_studio.core.settings.label_st... | 105 |
4,012 | /*
* Copyright (c) 2020, NVIDIA CORPORATION.
*
* 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 ... | 26,690 |
5,169 | <gh_stars>1000+
{
"name": "Frisbee",
"version": "0.2.0",
"summary": "Another network wrapper for URLSession",
"description": "Built to make it easy to create tests for your application's network layer.",
"homepage": "https://github.com/ronanrodrigo/Frisbee",
"license": {
"type": "MIT",
"file": "LICE... | 280 |
348 | {"nom":"Inzinzac-Lochrist","circ":"6ème circonscription","dpt":"Morbihan","inscrits":5174,"abs":2426,"votants":2748,"blancs":52,"nuls":27,"exp":2669,"res":[{"nuance":"REM","nom":"<NAME>","voix":990},{"nuance":"DVG","nom":"<NAME>","voix":604},{"nuance":"FI","nom":"<NAME>","voix":329},{"nuance":"UDI","nom":"<NAME>","voix... | 272 |
577 | # The jarray module is mostly phased out, but it is still has one
# constructor function - zeros - that is not directly available in the
# array module.
#
# The equivalent of
# jarray.zeros(n, typecode)
# is
# array.array(typecode, itertools.repeat(0, n))
#
# however itertools.repeat does not define __len__ and therefo... | 2,802 |
449 | <filename>include/kdb.h<gh_stars>100-1000
/* Copyright (c) 2013 The F9 Microkernel Project. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef KDB_H_
#define KDB_H_
/* Simple in-kernel debugger */
int kdb_handler(char c);
int kdb_d... | 127 |
5,865 | /*
* Copyright 2021 ThoughtWorks, 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 agr... | 4,853 |
319 | <filename>site/flask/lib/python2.7/site-packages/whoosh/automata/glob.py
# Copyright 2012 <NAME>. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain... | 4,791 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos.encryption.implementation;
import java.time.Instant;
final class CachedEncryptionSettings {
private final EncryptionSettings encryptionSettings;
private final Instant encryptionSettingsExp... | 309 |
435 | <reponame>amaajemyfren/data<filename>pycon-es-2016/videos/antoni-aloy-somos-lo-peor-pycones-2016.json<gh_stars>100-1000
{
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "Basta entrar en un una lista de correo, trabajar en un sector t\u00e9cnico o tomar unas birras con los c... | 562 |
785 | <reponame>Ada64/servicetalk
/*
* Copyright © 2021 Apple Inc. and the ServiceTalk project 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
*
* http://www.apache.org/licenses/LI... | 841 |
3,603 | /*
* 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, software
* distribut... | 1,385 |
336 | <gh_stars>100-1000
#include "Bios.h"
#include "hal.h"
bool sdl_running();
void sdl_loop();
int sdl_lastKey();
namespace BIOS {
namespace KEY {
bool KeyPressed()
{
return false;
}
EKey GetKey()
{
if (!gHal->IsRunning())
return Escape;
cha... | 367 |
360 | /*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... | 457 |
4,842 | package com.gpmall.comment.dto;
import com.gpmall.commons.result.AbstractResponse;
/**
* @author heps
* @date 2019/8/11 23:01
*
* 添加商品评价返回结果
*/
public class AddCommentResponse extends AbstractResponse {
}
| 94 |
778 | <gh_stars>100-1000
#if !defined(DEM_KDEM_WITH_DAMAGE_PARALLEL_BOND_H_INCLUDED)
#define DEM_KDEM_WITH_DAMAGE_PARALLEL_BOND_H_INCLUDED
/* Project includes */
#include "DEM_KDEM_with_damage_CL.h"
#include "DEM_discontinuum_constitutive_law.h"
namespace Kratos {
class KRATOS_API(DEM_APPLICATION) DEM_KDEM_with_damage... | 3,549 |
739 | <filename>Submissions/mcflav.json<gh_stars>100-1000
{
"name": "<NAME>",
"img": "https://avatars.githubusercontent.com/u/52865683?v=4",
"email": "<EMAIL>",
"links": {
"website": "https://mcflav.github.io/myPortfolio.io/",
"linkedin": "https://www.linkedin.com/in/michael-coleman-ab23a562/",
... | 238 |
13,111 | /*
* 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 ... | 670 |
605 | <reponame>mkinsner/llvm<gh_stars>100-1000
//===------------- MemoryFlags.cpp - Memory allocation flags --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------... | 407 |
12,718 | <gh_stars>1000+
/* from ntddser.h */
#define INITGUID
#include <basetyps.h>
#define GUID_CLASS_COMPORT GUID_DEVINTERFACE_COMPORT
#define GUID_SERENUM_BUS_ENUMERATOR GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR
DEFINE_GUID(GUID_DEVINTERFACE_COMPORT, 0x86e0d1e0L, 0x8089, 0x11d0, 0x9c, 0xe4, 0x08, 0x00, 0x3e, 0x30, 0x1f, 0... | 243 |
794 | //
// CAControl.cpp
// CrossApp
//
// Created by <NAME> on 14-5-6.
// Copyright (c) 2014 http://9miao.com All rights reserved.
//
#include "CAControl.h"
NS_CC_BEGIN
CAControl::CAControl()
:m_bRecSpe(true)
,m_eState(CAControl::State::Normal)
{
this->setHaveNextResponder(false);
this->setMultipleTouchEnabl... | 294 |
1,781 | <reponame>yulin2/UltimateAndroid
/*******************************************************************************
* Copyright 2013 Comcast Cable Communications Management, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y... | 579 |
1,963 | #include "bootloader.h"
#include "stm32_def.h"
#include "backup.h"
#ifdef BL_LEGACY_LEAF
void dtr_togglingHook(uint8_t *buf, uint32_t *len)
{
/**
* Four byte is the magic pack "1EAF" that puts the MCU into bootloader.
* Check if the incoming contains the string "1EAF".
* If yes, put the MCU into the bootlo... | 544 |
1,875 | /*
* Copyright 2017 <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 ... | 5,736 |
406 | /***************************************************************************
* tests/common/test_cmdline.cpp
*
* Part of the STXXL. See http://stxxl.sourceforge.net
*
* Copyright (C) 2013 <NAME> <<EMAIL>>
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.tx... | 516 |
4,036 | <reponame>vadi2/codeql
void cpp_fun() {
typeof(({ int twisty(); twisty(); })) twisty();
decltype( ({using namespace std; using t = int; 1; }) ) i;
}
| 66 |
5,421 | <filename>venv/Lib/site-packages/nuitka/codegen/AttributeCodes.py
# Copyright 2021, <NAME>, mailto:<EMAIL>
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
... | 4,139 |
335 | <gh_stars>100-1000
#ifndef OSMIUM_HANDLER_HPP
#define OSMIUM_HANDLER_HPP
/*
This file is part of Osmium (https://osmcode.org/libosmium).
Copyright 2013-2021 <NAME> <<EMAIL>> and others (see README).
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person... | 1,514 |
530 | package org.carlspring.strongbox.configuration;
import org.carlspring.strongbox.client.MutableRemoteRepositoryRetryArtifactDownloadConfiguration;
import java.io.Serializable;
/**
* @author <NAME>
* @author <NAME>
*/
public class MutableRemoteRepositoriesConfiguration
implements Serializable
{
public ... | 683 |
473 | /*
* QEMU KVM support -- ARM specific functions.
*
* Copyright (c) 2012 Linaro Limited
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*
*/
#ifndef QEMU_KVM_ARM_H
#define QEMU_KVM_ARM_H
#include "sysemu/kvm.h"
#include "exec/memo... | 1,619 |
695 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package controller;
import java.awt.Color;
import java.util.List;
import de.lessvoid.nifty.controls.DropDown;
import de.lessvoid.nifty.controls.ListBox;
import de.lessvoid.nifty.controls.Slider;
import de.l... | 1,669 |
4,816 | /**
* @file tests/ctypes/composite_type_tests.cpp
* @brief Tests for the @c composite type module.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include <memory>
#include <gtest/gtest.h>
#include "retdec/ctypes/context.h"
#include "retdec/ctypes/integral_type.h"
#include "retdec/ctypes/mem... | 1,150 |
2,504 | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 199 |
14,668 | // Copyright 2021 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 MOJO_CORE_TEST_MOJO_TEST_SUITE_BASE_H_
#define MOJO_CORE_TEST_MOJO_TEST_SUITE_BASE_H_
#include "base/test/test_suite.h"
#include "build/build_con... | 326 |
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... | 2,945 |
414 | <gh_stars>100-1000
package com.lvwangbeta.poplar.feed;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class PoplarFeedServiceApplicatio... | 131 |
6,036 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/codegen/mti/math/matmul_ops.h"
#include "core/codegen/mti/common.h"
#include "core/codegen/mti/mti_tvm_utils.h"
#include <topi/transform.h>
namespace onnxruntime {
namespace tvm_codegen {
tvm::Tensor MatMu... | 2,595 |
1,848 | class nsISupports {
public:
virtual nsISupports* QueryInterface();
};
class nsIRunnable : public nsISupports {};
class Runnable : public nsIRunnable {};
| 52 |
1,256 | <gh_stars>1000+
from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class AbsTests(TranspileTestCase):
def test_abs_doc(self):
self.assertCodeExecution("""
print(abs.__doc__)
""")
def test_abs_implemented(self):
self.assertCodeExecution("""
class Ab... | 468 |
410 | <filename>software/assets/testcard_display1_rgb332.h
static char __attribute__((aligned(4))) testcard_display1[] = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0x... | 261,018 |
2,179 | <filename>shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-core/src/test/java/org/apache/shardingsphere/sharding/route/strategy/ShardingStrategyFactoryTest.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distrib... | 1,273 |
311 | public class ComparableAsyncChild implements Runnable, Comparable<ComparableAsyncChild> {
private final int priority;
private final Runnable task;
public ComparableAsyncChild(int priority, Runnable task) {
this.priority = priority;
this.task = task;
}
@Override
public int compareTo(ComparableAsyn... | 239 |
2,062 | import types
from typing import List, Type
import strawberry
from strawberry.field import StrawberryField
def create_type(name: str, fields: List[StrawberryField]) -> Type:
"""Create a Strawberry type from a list of StrawberryFields
>>> @strawberry.field
>>> def hello(info) -> str:
>>> return "W... | 503 |
1,444 | package mage.abilities.dynamicvalue.common;
import mage.abilities.Ability;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.effects.Effect;
import mage.constants.AbilityType;
import mage.game.Game;
import mage.watchers.common.ManaPaidSourceWatcher;
/**
* @author TheElk801
*/
public enum SnowMa... | 348 |
749 | # coding=utf-8
from copy import deepcopy
from random import randint
from six.moves import xrange
from netutils_linux_monitoring.base_top import BaseTop
from netutils_linux_monitoring.colors import Color
from netutils_linux_monitoring.layout import make_table
class IrqTop(BaseTop):
""" Utility for monitoring ha... | 1,501 |
1,210 | import unittest
from pycoin.cmds.tx import DEFAULT_VERSION
from pycoin.encoding.hexbytes import h2b
from pycoin.symbols.btc import network
Spendable = network.tx.Spendable
Tx = network.tx
TxIn = network.tx.TxIn
TxOut = network.tx.TxOut
class SignTest(unittest.TestCase):
def test_sign_p2sh(self):
tx_ou... | 4,159 |
5,903 | /*
* *****************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by <NAME> : http://www.pentaho.com
*
* *******************************************************************************
* Licensed under the Apache License, Version 2.0 ... | 293 |
309 | #!/usr/bin/env python
# -*- coding: latin-1 -*-
"""
ExtractMsg:
Extracts emails and attachments saved in Microsoft Outlook's .msg files
based on
https://github.com/mattgwwalker/msg-extractor
"""
__author__ = "<NAME>"
#modified by doomedraven
# --- LICENSE -----------------------------------------------------... | 4,259 |
2,294 | <filename>tutorials/W3D2_HiddenDynamics/solutions/W3D2_Tutorial1_Solution_985833af.py<gh_stars>1000+
def simulate_SPRT_fixedtime(mu, sigma, stop_time, true_dist = 1):
"""Simulate a Sequential Probability Ratio Test with fixed time stopping
rule. Two observation models are 1D Gaussian distributions N(1,sigma^2) and
... | 697 |
852 | #ifndef TkDetLayers_TBPLayer_h
#define TkDetLayers_TBPLayer_h
#include "TBLayer.h"
#include "PixelRod.h"
#include "TOBRod.h"
#include "Phase2OTBarrelRod.h"
#include "Utilities/BinningTools/interface/PeriodicBinFinderInPhi.h"
/** A concrete implementation for TOB layer or PixelBarrel layer or a Phase 2 OT Barrel laye... | 916 |
1,364 | <reponame>ZhiQiAnSecFork/ssf
#ifndef SSF_LAYER_PROXY_BASIC_PROXY_ACCEPTOR_SERVICE_H_
#define SSF_LAYER_PROXY_BASIC_PROXY_ACCEPTOR_SERVICE_H_
#include <functional>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <type_traits>
#include <utility>
#include <boost/asio/async_result.hpp>
#include ... | 3,599 |
32,544 | <gh_stars>1000+
package com.baeldung.mvc_mvp.mvp;
public class ProductPresenter {
private final Product product;
private final ProductView view;
public ProductPresenter(Product product, ProductView view) {
this.product = product;
this.view = view;
}
public String getName()... | 381 |
1,383 | <filename>src/chrono_fsi/ChFsiInterface.h
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
//... | 2,524 |
2,151 | /*
* Copyright (C) 2007 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... | 7,710 |
852 | <filename>DetectorDescription/Core/src/DDComparator.cc<gh_stars>100-1000
#include "DetectorDescription/Core/interface/DDComparator.h"
#include <cstddef>
#include <memory>
#include "DetectorDescription/Core/interface/DDBase.h"
// reason for the ctor: reference initialization at construction.
// FIXME: DDCompareEqual:... | 1,273 |
6,224 | <reponame>lviala-zaack/zephyr
/*
* Copyright (c) 2018 Foundries.io
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT openisa_rv32m1_intmux
/**
* @file
* @brief RV32M1 INTMUX (interrupt multiplexer) driver
*
* This driver provides support for level 2 interrupts on the RV32M1
* SoC using the INT... | 2,810 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.