max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
578 | package com.ocnyang.contourviewdemo;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.LinearGradient;
import android.graphics.RadialGradient;
import android.graphics.Shader;
import android.net.Uri;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;... | 1,388 |
815 | <reponame>xj361685640/ParaView
/*------------------------------------------------------------------------------*/
/**
* \file GW_MatrixNxP.h
* \brief Definition of class \c GW_MatrixNxP
* \author <NAME>
* \date 5-31-2003
*/
/*------------------------------------------------------------------------------*... | 11,017 |
372 | import numpy as np
import cv2
def horizontalFlip(image, planes, segmentation, depth, metadata):
image = image[:, ::-1]
depth = depth[:, ::-1]
segmentation = segmentation[:, ::-1]
metadata[2] = image.shape[1] - metadata[2]
if len(planes) > 0:
planes[:, 0] *= -1
pass
return image,... | 518 |
487 | // Copyright 2017-2020 The Verible 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/LICENSE-2.0
//
// Unless required by applicable law o... | 625 |
778 | <filename>applications/DEMApplication/custom_utilities/mesh_to_clu_converter.cpp
// Translated to C++ from the original work in FORTRAN by <NAME>, 2016
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
void Diagonalize(const double (&A)[3][3], doub... | 12,681 |
723 |
#import <Foundation/Foundation.h>
@class LRPackage;
@class LRPackageType;
@class LRPackageReference;
// a set of specific package versions (only one version of a package can be included)
@interface LRPackageSet : NSObject
- (instancetype)initWithPackages:(NSArray *)packages;
@property(nonatomic, readonly, copy) ... | 183 |
1,755 | /*=========================================================================
Program: ParaView
Module: vtkSelection.cxx
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; ... | 7,757 |
468 | <reponame>PiraToRo/hexbin
{
"name": "coldwar",
"author": "<NAME>",
"license": "CC0",
"vector": "http://hexb.in/vector/coldwar.svg",
"description": "ColdWar.io Simulation Platform. Artwork by @cj_barnaby",
"order_online_url": "https://www.stickermule.com/marketplace/9199-coldwar-dot-io",
"raster": "http://... | 156 |
23,901 | # coding=utf-8
# Copyright 2021 The Google Research 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/LICENSE-2.0
#
# Unless required by applicab... | 1,321 |
1,300 | <filename>optuna/samplers/nsgaii/_crossovers/_spx.py<gh_stars>1000+
from typing import Optional
import numpy as np
from optuna._experimental import experimental
from optuna.samplers.nsgaii._crossovers._base import BaseCrossover
from optuna.study import Study
@experimental("3.0.0")
class SPXCrossover(BaseCrossover):... | 878 |
32,544 | <filename>hibernate5/src/main/java/com/baeldung/hibernate/pojo/inheritance/Person.java
package com.baeldung.hibernate.pojo.inheritance;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
@MappedSuperclass
public class Person {
@Id
private long personId;
private String name;
pub... | 308 |
736 | <reponame>tuomijal/pmdarima
# -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
from ..compat import DTYPE
__all__ = [
'load_heartrate'
]
def load_heartrate(as_series=False, dtype=DTYPE):
"""Uniform heart-rate data.
A sample of heartrate data borrowed from an
`MIT database <http://ecg.m... | 2,534 |
32,544 | package com.baeldung.guava.mathutils;
import static org.junit.Assert.*;
import java.math.RoundingMode;
import com.google.common.math.LongMath;
import org.junit.Test;
public class GuavaLongMathUnitTest {
@Test
public void whenPerformBinomialOnTwoLongValues_shouldReturnResultIfUnderLong() {
long resu... | 3,547 |
957 | #ifdef __EFFEKSEER_RENDERER_INTERNAL_LOADER__
#ifndef __EFFEKSEERRENDERER_TEXTURELOADER_H__
#define __EFFEKSEERRENDERER_TEXTURELOADER_H__
#include <Effekseer.h>
#include "../EffekseerRendererCommon/EffekseerRenderer.DDSTextureLoader.h"
#include "../EffekseerRendererCommon/EffekseerRenderer.PngTextureLoader.h"
#incl... | 625 |
501 | <filename>sshd-common/src/main/java/org/apache/sshd/common/keyprovider/KeyTypeIndicator.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 copyright ownership. The ASF ... | 821 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-fjj6-r3pr-3rrj",
"modified": "2022-05-13T01:38:38Z",
"published": "2022-05-13T01:38:38Z",
"aliases": [
"CVE-2016-8634"
],
"details": "A vulnerability was found in foreman 1.14.0. When creating an organization or location in Foreman, if the name contains HTML th... | 573 |
14,668 | // 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.
#include "chrome/browser/ash/crostini/crostini_remover.h"
#include <string>
#include <utility>
#include "base/bind.h"
#include "chrome/browser/ash/crost... | 1,300 |
677 | #ifndef LYNX_GL_CANVAS_LYNX_PATH_H_
#define LYNX_GL_CANVAS_LYNX_PATH_H_
#include <vector>
#include "gl/canvas/lynx_point.h"
#include "base/scoped_ptr.h"
#include "base/scoped_vector.h"
namespace canvas {
class LxPath {
public:
struct SubPath {
std::vector<LxPoint> points_;
bool closed_;
SubPath() : ... | 433 |
453 | <reponame>The0x539/wasp
#include <math.h>
#include "headers/scalbn.h"
double scalbn(double x, int exp)
{
return _scalbn(x, exp);
}
| 64 |
388 | <gh_stars>100-1000
import errno
import os
import tempfile
import time
import pytest
from celery_once.backends.file import key_to_lock_name, File
from celery_once.tasks import AlreadyQueued
def test_key_to_lock_name():
assert key_to_lock_name('qo_test') == \
'qo_test_999f583e69db6a0c04b86beeebb2b631'
... | 2,045 |
1,001 | <reponame>yndu13/aliyun-openapi-python-sdk<gh_stars>1000+
######################## BEGIN LICENSE BLOCK ########################
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# ve... | 540 |
348 | <gh_stars>100-1000
{"nom":"Beuvry","circ":"10ème circonscription","dpt":"Pas-de-Calais","inscrits":7011,"abs":3930,"votants":3081,"blancs":55,"nuls":26,"exp":3000,"res":[{"nuance":"FN","nom":"<NAME>","voix":1025},{"nuance":"REM","nom":"Mme <NAME>","voix":720},{"nuance":"FI","nom":"<NAME>","voix":449},{"nuance":"SOC","n... | 280 |
4,640 | <filename>tests/python/contrib/test_hexagon/test_run_unit_tests.py<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 fi... | 621 |
900 | from wasmer import Store, Module, Instance
import os
__dir__ = os.path.dirname(os.path.realpath(__file__))
# Instantiates the module.
module = Module(Store(), open(__dir__ + '/greet.wasm', 'rb').read())
instance = Instance(module)
# Set the subject to greet.
subject = bytes('Wasmer 🐍', 'utf-8')
length_of_subject = ... | 434 |
335 | {
"word": "Quinqueliteral",
"definitions": [
"(Of a root) containing five consonants."
],
"parts-of-speech": "Adjective"
} | 65 |
609 | <reponame>0xflotus/token-core-android
package org.consenlabs.tokencore.foundation.crypto;
import com.google.common.base.Strings;
import org.consenlabs.tokencore.wallet.model.Messages;
import org.consenlabs.tokencore.wallet.model.TokenException;
/**
* Created by xyz on 2018/2/2.
*/
public class SCryptParams impleme... | 963 |
7,073 | from functools import wraps
def decorator(f):
@wraps(f)
def wrapper(*args, **kws):
return f(*args, **kws)
return wrapper
class WrappedMethods:
@decorator
def wrapped_method(self):
pass
@decorator
def wrapped_method_with_arguments(self, a, b=2):
pass
| 135 |
1,331 | /* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 8.01.0622 */
/* @@MIDL_FILE_HEADING( ) */
/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_V... | 98,414 |
634 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.psi.impl.smartPointers;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.util.Segment;
import com.intellij.openapi.vfs.VirtualFile;
... | 378 |
3,934 | # This sample tests the type analyzer's handling of the built-in
# __import__ function.
reveal_type(__path__, expected_text="Iterable[str]")
# This should not generate a type error.
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
| 80 |
1,351 | /** @file
*
* A brief file description
*
* @section license License
*
* 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... | 1,400 |
362 | <filename>whois-commons/src/main/java/net/ripe/db/whois/common/domain/IpRanges.java
package net.ripe.db.whois.common.domain;
import com.google.common.collect.Sets;
import net.ripe.db.whois.common.ip.Interval;
import net.ripe.db.whois.common.ip.IpInterval;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import... | 749 |
14,668 | <gh_stars>1000+
// 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.
#include "components/exo/wayland/zwp_text_input_manager.h"
#include <text-input-extension-unstable-v1-server-protocol.h>
#include <text-i... | 9,012 |
344 | <filename>src/lac/tests/tst-lac.cpp<gh_stars>100-1000
/*
* dynamatic array test program.
*
* @author hain
* @email <EMAIL>
*/
#include "gtest/gtest.h"
#include "glog/logging.h"
#include <map>
#include <list>
#include <vector>
#include <string>
#include <sys/time.h>
#include <iostream>
#include "stdlib.h"
#in... | 837 |
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... | 1,141 |
1,844 | /*
* Copyright 2010-2013 Ning, Inc.
* Copyright 2014-2015 Groupon, Inc
* Copyright 2014-2015 The Billing Project, LLC
*
* The Billing Project licenses this file to you 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 cop... | 2,988 |
31,545 | <filename>test/cmake_target_include_directories/project/Bar.hpp
#include <nlohmann/json.hpp>
#include "Foo.hpp"
class Bar : public Foo{};
| 54 |
1,980 | <filename>builder/index/src/main/java/proto/PoseidonIf.java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: poseidon_if.proto
package proto;
public final class PoseidonIf {
private PoseidonIf() {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionR... | 117,764 |
1,208 | <filename>aws_lambda_powertools/utilities/batch/exceptions.py
"""
Batch processing exceptions
"""
import traceback
class SQSBatchProcessingError(Exception):
"""When at least one message within a batch could not be processed"""
def __init__(self, msg="", child_exceptions=()):
super().__init__(msg)
... | 370 |
310 | /*
* Copyright (C) 2015 Ribot 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 applicable law or agreed... | 371 |
343 | // Copyright 2012 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/LICENSE-2.0
//
// Unless required by applicable... | 2,764 |
30,023 | """The yeelightsunflower component."""
| 11 |
575 | <filename>include/dds/core/xtypes/TypeProvider.hpp<gh_stars>100-1000
/*
* Copyright 2010, Object Management Group, Inc.
* Copyright 2010, PrismTech, Corp.
* Copyright 2010, Real-Time Innovations, Inc.
* Copyright 2019, Proyectos y Sistemas de Mantenimiento SL (eProsima).
*
* Licensed under the Apache License, Ver... | 767 |
1,199 | <filename>language/question_answering/decatt_docreader/layers/document_reader.py
# coding=utf-8
# Copyright 2018 The Google AI Language Team 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 Lice... | 2,889 |
2,338 | #import <XCTest/XCTest.h>
@interface XCTestCase (WMFBundleConvenience)
- (NSBundle *)wmf_bundle;
@end
| 48 |
26,932 | #pragma once
#include <tchar.h>
#include <Windows.h>
#include <comdef.h>
#include <Shtypes.h>
#include <DocObj.h>
struct __declspec(uuid("1AC7516E-E6BB-4A69-B63F-E841904DC5A6")) IIEUserBroker : IUnknown
{
virtual HRESULT STDMETHODCALLTYPE Initialize(HWND *, LPCWSTR, LPDWORD) = 0;
virtual HRESULT STDMETHODCALLTYPE C... | 6,959 |
5,169 | <filename>Specs/2/1/2/EVNCustomSearchBar/0.0.1/EVNCustomSearchBar.podspec.json
{
"name": "EVNCustomSearchBar",
"version": "0.0.1",
"summary": "Born for iOS 11 SearchBar",
"description": "EVNCustomSearchBar: 自定义SearchBar,custom SearchBar 用于暂时适配iOS 11",
"homepage": "https://github.com/zonghongyan/EVNCustomSearc... | 327 |
5,169 | <reponame>Gantios/Specs
{
"name": "podSpecLFMS",
"version": "0.0.4",
"summary": "This file maily used for create a login form.",
"description": "The framework will show the login form and user can easily mange thire login through this framework",
"homepage": "https://github.com/Lalson/CocoPodsTest",
"licens... | 280 |
10,225 | <gh_stars>1000+
package io.quarkus.it.mailer;
import java.time.Duration;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import io.quarkus.mailer.Mail;
import io.quarkus.mailer.MailTemplate;
import io.quarkus.mailer.Mailer;
... | 1,405 |
686 | /*
* X11 tablet driver
*
* Copyright 2003 CodeWeavers (<NAME>)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later... | 33,534 |
3,227 | #include <iostream>
#include <CGAL/Arithmetic_kernel.h>
#if defined(CGAL_HAS_DEFAULT_ARITHMETIC_KERNEL)
#include <CGAL/Test/_test_arithmetic_kernel.h>
int main() {
typedef CGAL::Arithmetic_kernel AK;
CGAL::test_arithmetic_kernel<AK>();
return 0;
}
#else
#warning CGAL has no default CGAL::Arithmetic kernel
i... | 137 |
504 | <reponame>steakknife/pcgeos
#define FORM_PASSWORD_CHARACTER '*'
#define MAX_FORM_ELEMENT_EDIT_TEXT_CHARS 200
#define FORM_TEXT_POINT_SIZE 12
#define FORM_TEXT_POINT_SIZE_TV 16
#define SELECT_LIST_MIN_WIDTH 18
#define MAX_FORM_ELEMENT_OPTION_LENGTH 200
#define FORM_MAX_CHARACTERS_IN_SUB... | 306 |
530 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache 2.0 License.
#pragma once
#include "crypto/openssl/openssl_wrappers.h"
#include <openssl/bn.h>
#include <openssl/ecdsa.h>
#include <vector>
namespace crypto
{
/** Converts an ECDSA signature in IEEE P1363 encoding to RFC 3279... | 479 |
3,301 | <reponame>okjay/Alink
package com.alibaba.alink.params.io.shared;
import org.apache.flink.ml.api.misc.param.ParamInfo;
import org.apache.flink.ml.api.misc.param.ParamInfoFactory;
import org.apache.flink.ml.api.misc.param.WithParams;
public interface HasFileSystemUri<T> extends WithParams <T> {
ParamInfo <String> FS_... | 224 |
6,224 | /*
* Copyright (c) 2020 Google LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT zephyr_sim_ec_host_cmd_periph
#include <device.h>
#include <drivers/ec_host_cmd_periph.h>
#include <string.h>
#ifndef CONFIG_ARCH_POSIX
#error Simulator only valid on posix
#endif
static uint8_t rx_buffer[256];
s... | 788 |
14,668 | // Copyright (c) 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 SERVICES_AUDIO_AUDIO_PROCESSOR_H_
#define SERVICES_AUDIO_AUDIO_PROCESSOR_H_
#include <string>
#include "base/callback.h"
#include "base/memo... | 546 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/Symbolication.framework/Symbolication
*/
#import <Foundation/NSObject.h>
#import <Symbolication/Symbolication-Structs.h>
@class NSMutableArray, NSMapTable;
@interface VMUVMRegionIdentifier : NSObject {
NSMutableAr... | 353 |
4,812 | #!/usr/bin/env python
import sys
InterestingVar = 0
input = open(sys.argv[1], "r")
for line in input:
i = line.find(';')
if i >= 0:
line = line[:i]
if line.startswith("@interesting = global") or "@interesting" in line:
InterestingVar += 1
if InterestingVar == 4:
sys.exit(0) # interesting!
sys.exit(... | 126 |
915 | """
Experimental
============
A bunch of routines useful when doing measurements and experiments.
"""
__all__ = [
"measure_ir",
"physics",
"point_cloud",
"delay_calibration",
"deconvolution",
"localization",
"signals",
"rt60",
]
from .measure_ir import measure_ir
from .physics import ... | 218 |
1,163 | <filename>cassandra/datastax/insights/util.py
# Copyright DataStax, 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 ... | 901 |
360 | import numpy as np
import torch
from lietorch import SO3, SE3, Sim3
from .graph_utils import graph_to_edge_list
def pose_metrics(dE):
""" Translation/Rotation/Scaling metrics from Sim3 """
t, q, s = dE.data.split([3, 4, 1], -1)
ang = SO3(q).log().norm(dim=-1)
# convert radians to degrees
r_err = (... | 963 |
777 | <gh_stars>100-1000
/*
* Artificial Intelligence for Humans
* Volume 1: Fundamental Algorithms
* Java Version
* http://www.aifh.org
* http://www.jeffheaton.com
*
* Code repository:
* https://github.com/jeffheaton/aifh
* Copyright 2013 by <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License... | 892 |
539 | <reponame>rathann/flite
/*************************************************************************/
/* */
/* Language Technologies Institute */
/* Carnegie Mellon University ... | 3,481 |
11,356 | // Copyright <NAME> 2002.
// 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)
#include <boost/python/operators.hpp>
#include <boost/python/class.hpp>
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>... | 1,974 |
1,235 | <filename>core/include/holojs/private/holojs-view.h
#pragma once
#include "app-model.h"
#include "script-host-errors.h"
#include <functional>
#include <memory>
namespace HoloJs {
class IHoloJsScriptHostInternal;
class IBackgroundWorkItem {
public:
virtual ~IBackgroundWorkItem() {}
virtual long execute() ... | 462 |
506 | package com.xnx3.template;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.swing.JDialog;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import com.xnx3.BaseVO;
import com.x... | 4,246 |
697 | <reponame>Qt-Widgets/vpaint
// Copyright (C) 2012-2019 The VPaint Developers.
// See the COPYRIGHT file at the top-level directory of this distribution
// and at https://github.com/dalboris/vpaint/blob/master/COPYRIGHT
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file ex... | 478 |
1,216 | package com.bottomsheetbehavior;
import android.graphics.Color;
import android.view.View;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.common.MapBuilder... | 1,937 |
680 | <gh_stars>100-1000
#!/usr/bin/env python
"""manage state transition details"""
#
# Copyright 2017-2018 IBM 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.o... | 752 |
787 | <filename>jenetics/src/main/java/io/jenetics/BitGene.java
/*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ <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 ... | 873 |
2,268 | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $Workfile: $
// $NoKeywords: $
//=============================================================================//
#if !defined( C_HL2_PLAYERLOCALDATA_H )
#define C_HL2_PLAYERLOCALDATA_H
#ifdef _WIN32
#pragma once
#end... | 434 |
17,703 | <filename>test/mocks/compression/compressor/mocks.h
#pragma once
#include "envoy/compression/compressor/compressor.h"
#include "envoy/compression/compressor/config.h"
#include "gmock/gmock.h"
namespace Envoy {
namespace Compression {
namespace Compressor {
class MockCompressor : public Compressor {
public:
MockCo... | 307 |
6,445 | <reponame>LaudateCorpus1/llvm-project<filename>third-party/benchmark/test/output_test_helper.cc
#include <cstdio>
#include <cstring>
#include <fstream>
#include <iostream>
#include <map>
#include <memory>
#include <random>
#include <sstream>
#include <streambuf>
#include "../src/benchmark_api_internal.h"
#include "../... | 6,914 |
1,844 | <reponame>gomez-javier-github/killbill<gh_stars>1000+
/*
* Copyright 2014-2019 Groupon, Inc
* Copyright 2014-2019 The Billing Project, LLC
*
* The Billing Project licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. ... | 601 |
648 | {"resourceType":"DataElement","id":"Conformance.kind","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/Conformance.kind","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"Conformance.kind","short":"instance | capability | requirements","... | 214 |
14,668 | <filename>tools/perf/contrib/vr_benchmarks/webxr_sample_pages.py
# 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.
from contrib.vr_benchmarks.vr_sample_page import XrSamplePage
from contrib.vr_benchmarks.vr_... | 925 |
367 | import argparse
import os
import re
import errno
import subprocess
import sys
import gzip
import shutil
import traceback
import json
import urllib
import csv
import logging
import datetime
import strict_rfc3339
import codecs
from itertools import chain
from urllib.error import URLError
import publicsuffix
from utils.s... | 8,642 |
309 | /*
* Copyright (C) 2021 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* www.apache.org/l... | 532 |
348 | {"nom":"Albas","circ":"1ère circonscription","dpt":"Aude","inscrits":71,"abs":23,"votants":48,"blancs":7,"nuls":2,"exp":39,"res":[{"nuance":"REM","nom":"<NAME>","voix":34},{"nuance":"FN","nom":"M. <NAME>","voix":5}]} | 88 |
412 |
int main()
{
int i;
for(i = 0; i < 10; i++) {
int j;
for(j = 0; j < 10; j++) {
int k;
k = 0;
while(k < 10)
{
k++;
}
}
}
}
| 116 |
303 | <reponame>mr-c/LightZone<gh_stars>100-1000
/* Copyright (C) 2005-2011 <NAME> */
package com.lightcrafts.prefs;
import com.lightcrafts.image.export.ImageExportOptions;
import com.lightcrafts.image.types.ImageType;
import com.lightcrafts.image.types.JPEGImageType;
import com.lightcrafts.image.types.TIFFImageType;
impor... | 2,593 |
3,012 | <filename>NetworkPkg/Mtftp4Dxe/Mtftp4Option.h
/** @file
Routines to process MTFTP4 options.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __EFI_MTFTP4_OPTION_H__
#define __EFI_MTFTP4_OPTION_H__
#define MTFTP4_SUPPORTED_OP... | 1,838 |
4,492 | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
INCLUDES = """
/* define our OpenSSL API compatibility level to 1.0.1. Any symbols older than
that will raise an error during compilati... | 1,239 |
2,659 | /*
* Copyright 2021 4Paradigm
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 484 |
323 | /*
* Copyright (c) 2013, SUSE Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
extern int solv_pgpvrfy(const unsigned char *pub, int publ, const unsigned char *sig, int sigl);
| 74 |
1,079 |
/**
* Copyright (C) 2016, Canonical Ltd.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* Author: <NAME> <... | 331 |
5,168 | <reponame>Olalaye/MegEngine
/**
* \file imperative/src/impl/ops/tensorrt_runtime.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed und... | 476 |
879 | <gh_stars>100-1000
package org.zstack.sdk;
import org.zstack.sdk.CertificateInventory;
public class UpdateCertificateResult {
public CertificateInventory inventory;
public void setInventory(CertificateInventory inventory) {
this.inventory = inventory;
}
public CertificateInventory getInventory... | 124 |
435 | {
"copyright_text": "Standard YouTube License",
"description": "Se har\u00e1 un repaso hist\u00f3rico sobre como se ha ido afrontando el problema de la representaci\u00f3n de caracteres por de medios electr\u00f3nicos a lo largo de la historia desde el tel\u00e9grafo hasta el est\u00e1ndar actual.\n\nSeguidamente d... | 562 |
303 | /*
_____ __ ___ __ ____ _ __
/ ___/__ ___ _ ___ / |/ /__ ___ / /_____ __ __/ __/_______(_)__ / /_
/ (_ / _ `/ ' \/ -_) /|_/ / _ \/ _ \/ '_/ -_) // /\ \/ __/ __/ / _ \/ __/
\___/\_,_/_/_/_/\__/_/ /_/\___/_//_/_/\_\\__/\_, /___/\__/_/ /_/ .__/\__/
... | 13,900 |
2,406 | # Copyright (C) 2020-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from openvino.tools.pot.configs.config import Config
from .utils.path import TOOL_CONFIG_PATH
DEVICE = [
'CPU',
'GPU',
'VPU'
]
def test_target_device():
def read_config(filename):
tool_config_path = TOOL_CONFIG... | 302 |
1,682 | /*
Copyright (c) 2016 LinkedIn Corp.
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... | 594 |
2,023 | from dal_4 import DAL4
################################################################################
class DAL5:
# DEFAULTS
PATH_SEPARATOR = ' '
NAME_CHARACTERS = ''.join([chr(i) for i in range(256) \
if len(repr(chr(i))) == 3])
# Disk Abstraction Layer
def __in... | 2,133 |
417 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package de.janquadflieg.mrracer.controller;
import de.janquadflieg.mrracer.Utils;
import de.janquadflieg.mrracer.behaviour.Behaviour;
import de.janquadflieg.mrracer.classification.AngleBasedClassifier;
import de.janquad... | 4,501 |
2,405 | <filename>tools/win/src/maple_loader/src/processing/app/Preferences.java
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Part of the Processing project - http://processing.org
Copyright (c) 2004-09 <NAME> and <NAME>
Copyright (c) 2001-04 Massachusetts Institute of Technology
This progra... | 1,409 |
954 | /*
* Copyright 2003-2009 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 event copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 480 |
373 | /** SocSerDes.h
SoC Specific header file for SerDes
Copyright 2017-2020 NXP
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef SOC_SERDES_H
#define SOC_SERDES_H
typedef enum {
NONE = 0,
PCIE1,
PCIE2,
PCIE3,
PCIE4,
PCIE5,
PCIE6,
SATA1,
SATA2,
SATA3,
SATA4,
X... | 562 |
682 | <reponame>HackerFoo/vtr-verilog-to-routing
/**CFile****************************************************************
FileName [cecChoice.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Combinational equivalence checking.]
Synopsis [Computation of structural choices.]
Auth... | 7,254 |
535 | from sys import stdout
# completely hides the system cursor
async def hide_cursor():
stdout.write("\033[?25l")
stdout.flush()
| 48 |
326 | from typing import Tuple
import numpy as np
from etna.datasets import TSDataset
from etna.metrics import MAE
from etna.metrics import MAPE
from etna.metrics import MSE
from etna.metrics.utils import compute_metrics
def test_compute_metrics(train_test_dfs: Tuple[TSDataset, TSDataset]):
"""Check that compute_metr... | 355 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.