max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
973 | <filename>source/MaterialXGenShader/GenContext.h
//
// TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
// All rights reserved. See LICENSE.txt for license.
//
#ifndef MATERIALX_GENCONTEXT_H
#define MATERIALX_GENCONTEXT_H
/// @file
/// Context classes for shader generation
#include <MaterialXGe... | 3,466 |
359 | <gh_stars>100-1000
/*
Copyright 2019 The Matrix.org Foundation C.I.C
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 ... | 1,961 |
1,083 | #ifndef DALE_FORM_PROC_DEF
#define DALE_FORM_PROC_DEF
#include "../../../Units/Units.h"
namespace dale {
/*! Parse a procedure-body def form.
* @param units The units context.
* @param fn The function currently in scope.
* @param block The current block.
* @param node The node being parsed.
* @param get_add... | 419 |
903 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 1,348 |
480 | <reponame>weicao/galaxysql<filename>polardbx-parser/src/test/java/com/alibaba/polardbx/druid/bvt/sql/mysql/parseDate/MySqlUtils_parseDate_error.java
/*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in com... | 2,255 |
407 | package com.alibaba.sreworks.job;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springfram... | 182 |
852 | #ifndef L1TRIGGERSCALEREAD_H
#define L1TRIGGERSCALEREAD_H
#include "TestBase.h"
#include "CoralBase/TimeStamp.h"
#include "CondFormats/RunInfo/interface/L1TriggerScaler.h"
class L1TriggerScalerRead : virtual public TestBase {
public:
L1TriggerScalerRead(const std::string& connectionString, const std::string& user, ... | 256 |
702 | /*
* Copyright ConsenSys AG.
*
* 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... | 3,069 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-fj6c-w79g-p5j2",
"modified": "2022-05-02T03:47:47Z",
"published": "2022-05-02T03:47:47Z",
"aliases": [
"CVE-2009-3708"
],
"details": "Stack-based buffer overflow in the Meta Content Optimizer in Konae Technologies Alleycode HTML Editor 2.21 a... | 429 |
419 | <filename>thirdparty/win/miracl/miracl_osmt/source/threadux.cpp
/*
Example program to illustrate MIRACL multi-threading with Unix
tested with RedHat Linux 6.0
GCC compiler
1. Make sure MR_UNIX_MT is defined in mirdef.h
2. Compile all MIRACL modules with -D_REENTRANT flag
3. g++ -I. -D_REENTRANT -O2 thr... | 1,642 |
323 | <filename>src/main/java/org/xbib/io/compress/xz/DeltaEncoder.java
package org.xbib.io.compress.xz;
class DeltaEncoder extends DeltaCoder implements FilterEncoder {
private final DeltaOptions options;
private final byte[] props = new byte[1];
DeltaEncoder(DeltaOptions options) {
props[0] = (byte) (... | 276 |
1,261 | <reponame>luizoti/toga<gh_stars>1000+
from .base import Widget
class Divider(Widget):
def create(self):
self._action('create Divider')
def rehint(self):
self._action('rehint Divider')
def set_direction(self, value):
self._set_value('direction', value)
| 119 |
3,227 | <reponame>ffteja/cgal
// Copyright (c) 2003-2006 INRIA Sophia-Antipolis (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s) : <NAME>, <NAME>
// Partially supported by the IST Pro... | 1,443 |
398 | <reponame>zhanghqgit/joyrpc
package io.joyrpc.cluster.distribution.loadbalance.roundrobin;
/*-
* #%L
* joyrpc
* %%
* Copyright (C) 2019 joyrpc.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 ... | 615 |
1,785 | package com.inuker.bluetooth;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.inuker.bluetooth.library.utils.BluetoothLog;
import java.lang.ref.PhantomReference;
/**
* Created by liwentian on 2017/3/9.
*/
public class TestActivity extends... | 726 |
372 | /*
* 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 distributed under t... | 1,326 |
348 | {"nom":"Gibret","circ":"3ème circonscription","dpt":"Landes","inscrits":97,"abs":26,"votants":71,"blancs":6,"nuls":4,"exp":61,"res":[{"nuance":"REM","nom":"<NAME>","voix":35},{"nuance":"SOC","nom":"M. <NAME>","voix":26}]} | 91 |
304 | <filename>examples/order_management/order/src/demo_data.py
import asyncio
from src.store import Base, create_order, engine
async def create_demo_data():
async with engine.begin() as conn:
await conn.run_sync(Base.metadata.drop_all)
await conn.run_sync(Base.metadata.create_all)
await crea... | 213 |
808 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 5,215 |
49,076 | <reponame>spreoW/spring-framework
/*
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICE... | 488 |
678 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "MMObject.h"
#import "IHeadImageExt.h"
#import "IMMLanguageMgrExt.h"
#import "LocationRetrieveDelegate.h"
#import "MMResourceMgrExt.h"
#import "PBMessageObserverDelegate.h"
#impo... | 2,408 |
1,362 | #include "../include/multicore.h"
void store32(unsigned long address, unsigned long value)
{
*(unsigned long *) address = value;
}
unsigned long load32(unsigned long address)
{
return *(unsigned long *) address;
}
void start_core1(void (*func)(void))
{
store32((unsigned long)&spin_cpu1, (unsigned long)fu... | 323 |
707 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#pragma once
#include <memory>
#include <string>
#include <string_view>
#include <units/time.h>
#include <wpi/SmallPtr... | 3,962 |
2,400 | /*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 1,168 |
7,482 | <reponame>BreederBai/rt-thread
/*
* @ : Copyright (c) 2021 Phytium Information Technology, Inc.
*
* SPDX-License-Identifier: Apache-2.0.
*
* @Date: 2021-04-07 09:53:07
* @LastEditTime: 2021-05-24 10:13:51
* @Description: This files is for uart functions
*
* @Modify History:
* Ver Who Date C... | 1,642 |
1,163 | <reponame>smit-hinsu/iree<gh_stars>1000+
// Copyright 2019 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef IREE_HAL_VULKAN_VULKAN_DEVICE_H_
#define IREE_HA... | 544 |
1,144 | package de.metas.handlingunits.expectations;
/*
* #%L
* de.metas.handlingunits.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either vers... | 3,682 |
511 | /****************************************************************************
*
* 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 copy of the License at... | 923 |
2,212 | package net.openid.appauth.browser;
import org.junit.Test;
import java.util.HashSet;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Tests for {@link ExactBrowserMatcher}.
*/
public class ExactBrowserMatcherTest {
private static final BrowserDescriptor CHROME_55 = Browsers.Chrome.standaloneBr... | 571 |
416 | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... | 3,367 |
4,020 | package me.coley.recaf.parse.bytecode.ast;
import org.objectweb.asm.Type;
/**
* Field default value AST.
*
* @author Matt
*/
public class DefaultValueAST extends AST {
private final AST content;
/**
* @param line
* Line number this node is written on.
* @param start
* Offset from line start this no... | 389 |
772 | {
"key": "declareAssign_list_123",
"name": "declareAssign_list_123",
"category": "Variables",
"syntax": "var list = [1, 2, 3];"
} | 60 |
776 | package ghissues;
import act.handler.NoReturnValueAdvice;
import act.util.LogSupport;
import org.osgl.aaa.NoAuthentication;
@NoReturnValueAdvice
@NoAuthentication
public class BaseController extends LogSupport {
}
| 64 |
375 | from .autoattack import AutoAttack
| 8 |
2,542 | <filename>src/prod/src/ServiceModel/ProgressUnit.cpp
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ---------------------------------------... | 339 |
890 | /*
*
* Copyright 2018 Asylo 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 or agree... | 3,521 |
1,229 | <reponame>StarWang/detext<filename>src/detext/layers/vocab_layer.py
from abc import ABC, abstractmethod
import tensorflow as tf
import tensorflow_hub as hub
from absl import logging
from detext.utils.parsing_utils import InternalFtrType
from detext.utils.vocab_utils import read_tf_vocab, read_vocab
INPUT_SIGNATURE =... | 3,489 |
772 | package com.sksamuel.scrimage.examples;
import com.sksamuel.scrimage.ImmutableImage;
import com.sksamuel.scrimage.nio.JpegWriter;
import java.io.IOException;
public class Trim {
public static void main(String[] args) throws IOException {
ImmutableImage image = ImmutableImage.loader().fromResource("/input.j... | 251 |
476 | /*
* Copyright (C) 2018-2021. Huawei Technologies Co., Ltd. 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
*
* U... | 2,099 |
8,428 | # stdlib
from datetime import time
from datetime import timedelta
from functools import lru_cache
from typing import Optional
from typing import Union
# third party
from pydantic import BaseSettings
class LogConfig(BaseSettings):
LOGURU_FORMAT: str = (
"<green>{time:YYYY-MM-DD HH:mm:ss}</green> | "
... | 538 |
403 | <filename>snippets/message-time-control/src/main/java/org/camunda/bpm/demo/listener/ControlTimeListenerEnd.java
package org.camunda.bpm.demo.listener;
import org.camunda.bpm.engine.RuntimeService;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.ExecutionListener;
import... | 276 |
1,372 | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... | 1,006 |
764 | {
"symbol": "ATD",
"account_name": "eosatidiumio",
"overview": {
"en": "Atidium is a payment and budget management decentralized application for individuals and businesses. The Atrium DApp will allow to use ATD tokens as a way of keeping track of your future expenses. Improving your budget status by... | 175 |
530 | <filename>strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-maven-layout/strongbox-storage-maven-layout-provider/src/main/java/org/carlspring/strongbox/storage/indexing/local/ArtifactEntryArtifactContextHelper.java
package org.carlspring.strongbox.storage.indexing.local;
/**
* @author <NAME>
*/
... | 458 |
302 | #ifndef URLSTRINGBOXLOADER_H
#define URLSTRINGBOXLOADER_H
#include "engine_global.h"
#include "istringboxloader.h"
#include "ihttpclientfactory.h"
#include <QStringList>
#include "resourcemodelurl.h"
#include "iwaiter.h"
namespace BrowserAutomationStudioFramework
{
class ENGINESHARED_EXPORT UrlStringBoxLoader : p... | 530 |
511 | //******************************************************************
//
// Copyright 2015 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... | 1,656 |
590 | /*!
@file
@author <NAME>
@date 08/2008
*/
#include "Precompiled.h"
#include "DemoKeeper.h"
#include "Base/Main.h"
namespace demo
{
DemoKeeper::DemoKeeper() :
mTextBoxTest(nullptr)
{
}
void DemoKeeper::notifyMouseSetFocus(MyGUI::Widget* _sender, MyGUI::Widget* _old)
{
MyGUI::ImageBox* image = _sender->c... | 1,184 |
323 | ##
# @file PlaceDrawer.py
# @author <NAME>
# @date Mar 2019
# @brief A python implementation of placement drawer as an alternative when cairo C/C++ API is not available.
#
import sys
import os
import time
import math
import cairocffi as cairo
import numpy as np
class PlaceDrawer(object):
"""
@brief A py... | 6,297 |
12,718 | #include <unistd.h>
#include "syscall.h"
off_t __lseek(int fd, off_t offset, int whence)
{
#ifdef SYS__llseek
off_t result;
#ifdef __wasilibc_unmodified_upstream // WASI has no syscall
return syscall(SYS__llseek, fd, offset>>32, offset, &result, whence) ? -1 : result;
#else
return llseek(fd, offset>>32, offset, &re... | 238 |
13,846 | <reponame>tomaswesterlund/aspnetcore<gh_stars>1000+
{
"$schema": "http://json.schemastore.org/template",
"author": "Microsoft",
"classifications": [
"Web",
"ASP.NET"
],
"name": "Razor Component",
"generatorVersions": "[1.0.0.0-*)",
"description": "A reusable UI component implemented with Razor",
... | 494 |
11,010 | package com.google.inject.internal;
import com.google.common.collect.ImmutableMultimap;
import com.google.inject.Binding;
import com.google.inject.Key;
import com.google.inject.spi.Dependency;
import com.google.inject.spi.ErrorDetail;
import java.util.Collection;
import java.util.Formatter;
import java.util.List;
impo... | 1,894 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 4,279 |
458 | /*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2017 GwtMaterialDesign
* %%
* 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
* ... | 1,715 |
1,755 | <filename>IO/XML/vtkXMLRectilinearGridWriter.cxx
/*=========================================================================
Program: Visualization Toolkit
Module: vtkXMLRectilinearGridWriter.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyr... | 1,968 |
1,738 | <gh_stars>1000+
def __boot():
import sys
import os
PYTHONPATH = os.environ.get('PYTHONPATH')
if PYTHONPATH is None or (sys.platform == 'win32' and not PYTHONPATH):
PYTHONPATH = []
else:
PYTHONPATH = PYTHONPATH.split(os.pathsep)
pic = getattr(sys, 'path_importer_cache', {})
s... | 1,111 |
856 | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <backendsCommon/WorkloadData.hpp>
#include <backendsCommon/Workload.hpp>
#include <arm_compute/runtime/IFunction.h>
#include <arm_compute/core/Error.h>
namespace armnn {
class NeonPadWorkload : public BaseW... | 323 |
1,700 | package org.wysaid.cgeDemo.demoUtils;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Rect;
import android.opengl.GLES20;
import android.util.Log;
import org.wysaid.common.Common;
import org.wysaid.common.FrameBufferObject;
import org.wysaid.comm... | 2,391 |
4,054 | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openal;
import java.nio.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.... | 35,268 |
12,252 | <gh_stars>1000+
package org.keycloak.protocol.docker.mapper;
import org.keycloak.Config;
import org.keycloak.models.KeycloakSession;
import org.keycloak.models.KeycloakSessionFactory;
import org.keycloak.protocol.ProtocolMapper;
import org.keycloak.protocol.docker.DockerAuthV2Protocol;
import org.keycloak.provider.Pro... | 487 |
360 | /*
* 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 to in writin... | 514 |
1,314 | package cn.dreampie.resource;
import cn.dreampie.resource.user.model.User;
import javax.servlet.*;
import java.io.IOException;
import java.util.Date;
/**
* Created by wangrenhui on 15/3/27.
*/
public class TestServlet implements Servlet {
public void init(ServletConfig config) throws ServletException {
}
... | 261 |
1,799 | package io.cucumber.core.backend;
import org.apiguardian.api.API;
@API(status = API.Status.EXPERIMENTAL)
public interface StaticHookDefinition extends Located {
void execute();
int getOrder();
}
| 72 |
2,661 | // Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 2,798 |
819 | <reponame>Asteur/vrhelper<gh_stars>100-1000
/*
Copyright 2017 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... | 1,954 |
364 | package ca.uhn.fhir.rest.param;
/*
* #%L
* HAPI FHIR - Core Library
* %%
* Copyright (C) 2014 - 2021 Smile CDR, 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
*
* htt... | 3,539 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-c393-9g57-887f",
"modified": "2022-05-01T18:18:40Z",
"published": "2022-05-01T18:18:40Z",
"aliases": [
"CVE-2007-3930"
],
"details": "Interpretation conflict between Microsoft Internet Explorer and DocuWiki before 2007-06-26b allows remote attackers to inject a... | 780 |
575 | <filename>third_party/blink/renderer/platform/fonts/shaping/stretchy_operator_shaper.h
// 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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_SHAPING_STRETCHY_... | 902 |
384 | from nautobot.circuits.models import Circuit, Provider
from nautobot.core.apps import HomePageItem, HomePagePanel
layout = (
HomePagePanel(
name="Circuits",
weight=500,
items=(
HomePageItem(
name="Providers",
link="circuits:provider_list",
... | 441 |
763 | package org.batfish.datamodel.phc_to_flow;
import static com.google.common.base.Preconditions.checkArgument;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import java.util.List;
import java.util.Optional;
import javax.annotation.ParametersAreNonnullByDefault;
import or... | 1,494 |
2,227 | import logging
def exit_error(err, exception=True):
logging.error(err)
if exception:
raise Exception(err)
| 46 |
651 | package org.spongycastle.crypto.params;
import java.math.BigInteger;
import java.util.Vector;
/**
* Private key parameters for NaccacheStern cipher. For details on this cipher,
* please see
*
* http://www.gemplus.com/smart/rd/publications/pdf/NS98pkcs.pdf
*/
public class NaccacheSternPrivateKeyParameters extend... | 594 |
1,144 | package de.metas.ui.web.handlingunits.report;
import de.metas.handlingunits.process.api.HUProcessDescriptor;
import de.metas.process.AdProcessId;
import de.metas.process.ProcessPreconditionsResolution;
import de.metas.process.RelatedProcessDescriptor.DisplayPlace;
import de.metas.ui.web.process.ProcessId;
import de.me... | 829 |
4,054 | <filename>configserver/src/main/java/com/yahoo/vespa/config/server/rpc/RequestHandlerProvider.java
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.rpc;
import com.yahoo.config.provision.TenantName;
import com.yahoo.v... | 207 |
480 | <gh_stars>100-1000
/*
Preface header for GEOS wrapper
*/
#ifdef HAVE_GEOS_C_H
#ifdef HAVE_GEOSSETSRID_R
#define RGEO_GEOS_SUPPORTED
#endif
#endif
#ifdef HAVE_GEOSPREPAREDCONTAINS_R
#define RGEO_GEOS_SUPPORTS_PREPARED1
#endif
#ifdef HAVE_GEOSPREPAREDDISJOINT_R
#define RGEO_GEOS_SUPPORTS_PREPARED2
#endif
#ifdef HAVE... | 459 |
970 | # Copyright (c) 2019 Uber Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 1,371 |
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,707 |
368 | <gh_stars>100-1000
package org.nem.core.node;
import net.minidev.json.JSONObject;
import org.hamcrest.MatcherAssert;
import org.hamcrest.core.*;
import org.junit.*;
import org.nem.core.serialization.*;
import org.nem.core.test.*;
public class NodeVersionTest {
//region constants
@Test
public void zeroConstantIsC... | 2,083 |
521 | <reponame>Fimbure/icebox-1<gh_stars>100-1000
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of th... | 2,045 |
572 | """SFP - Simple Functional Programming."""
def head(iterable):
return next(iter(iterable))
def last(iterable):
for x in iterable:
pass
return x
def number(numero):
if numero == 1:
return 'Um'
elif numero == 2:
return 'Dois'
elif numero == 3:
return 'Três'
... | 262 |
3,799 | <reponame>semoro/androidx<gh_stars>1000+
/*
* 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... | 777 |
335 | <reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000
{
"word": "Picket",
"definitions": [
"Act as a picket outside (a workplace or other venue)"
],
"parts-of-speech": "Verb"
} | 90 |
369 | // Copyright (c) 2017-2021, Mudita <NAME>.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "DOMRequest.hpp"
#include <service-desktop/DeveloperModeMessage.hpp>
namespace app::manager
{
DOMRequest::DOMRequest(ApplicationName sender, std::unique_ptr<sdesktop::... | 237 |
892 | <reponame>github/advisory-database
{
"schema_version": "1.2.0",
"id": "GHSA-864h-hxjv-ff89",
"modified": "2022-05-13T01:51:22Z",
"published": "2022-05-13T01:51:22Z",
"aliases": [
"CVE-2018-2616"
],
"details": "Vulnerability in the OSS Support Tools component of Oracle Support Tools (subcomponent: Diag... | 575 |
3,586 | package com.linkedin.datahub.graphql.types.relationships.mappers;
import com.linkedin.datahub.graphql.generated.EntityRelationshipLegacy;
import com.linkedin.datahub.graphql.generated.EntityWithRelationships;
import com.linkedin.datahub.graphql.types.common.mappers.AuditStampMapper;
import com.linkedin.datahub.graphql... | 492 |
681 | <filename>src/test/java/edu/harvard/iq/dataverse/ExternalIdentifierTest.java
package edu.harvard.iq.dataverse;
import org.junit.Test;
import java.util.regex.Pattern;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class ExternalIdentifierTest {
@Test
public void te... | 659 |
986 | /**********************************************************************
Sneedacity: A Digital Audio Editor
WaveTrackVRulerControls.h
<NAME> split from TrackPanel.cpp
**********************************************************************/
#ifndef __SNEEDACITY_WAVE_TRACK_VRULER_CONTROLS__
#define __SNEEDACITY_WAVE_T... | 218 |
367 | <gh_stars>100-1000
# coding: utf-8
from __future__ import unicode_literals
import json
from boxsdk.object.terms_of_service_user_status import TermsOfServiceUserStatus
from boxsdk.config import API
def test_get(test_terms_of_service_user_status, mock_box_session):
created_at = '2016-05-18T17:38:03-07:00',
ex... | 1,150 |
14,886 | // Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... | 11,746 |
1,176 | //===----------------------------------------------------------------------===//
//
// BusTub
//
// log_manager.cpp
//
// Identification: src/recovery/log_manager.cpp
//
// Copyright (c) 2015-2019, Carnegie Mellon University Database Group
//
//===------------------------------------------------... | 508 |
700 | /*
* Copyright (c) 2016-2017, Guangshan (<EMAIL>) and 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
*
* http://www.apache.org/licenses/LICENSE-2.... | 401 |
11,356 | /* Copyright © 2019 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
#include <ml/neural_net/tf_compute_context.hpp>
#include <cstdint>
#include <iostream>
#include <ran... | 5,730 |
1,755 | <filename>packages/seacas/libraries/exodus/src/deprecated/ex_put_concat_var_param.c
/*
* Copyright(C) 1999-2020 National Technology & Engineering Solutions
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
* NTESS, the U.S. Government retains certain rights in this software.
*
* See packages... | 835 |
14,668 | // 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.
#ifndef CHROME_UTILITY_IMAGE_WRITER_IMAGE_WRITER_HANDLER_H_
#define CHROME_UTILITY_IMAGE_WRITER_IMAGE_WRITER_HANDLER_H_
#include <stdint.h>
#include <me... | 641 |
335 | {
"word": "Assembly",
"definitions": [
"A group of people gathered together in one place for a common purpose.",
"A group of people elected to make laws or decisions for a particular country or region.",
"The action of gathering together as a group for a common purpose.",
"The re... | 231 |
9,106 | <reponame>terrorizer1980/react-native-windows
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#ifdef USE_WINUI3
#include <Microsoft.UI.Xaml.Hosting.DesktopWindowXamlSource.h>
using IDesktopWindowXamlSourceNative2 = IDesktopWindowXamlSourceNative;
#else
#include <Windows.UI.Xaml... | 127 |
499 | import os, sys, time, datetime
def get_run_sh(hdfs_env, hdfs_input, path_src, time_str, app_name, mem):
if time_str is None:
time_str = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
name_env = os.path.basename(hdfs_env)
name_input = os.path.basename(hdfs_input)
name_output = 'output_{}'.fo... | 2,941 |
3,102 | // RUN: %clang_cc1 -fsanitize=address -emit-llvm -o - %s | FileCheck %s
// Test blacklist functionality.
// RUN: echo "src:%s=init" | sed -e 's/\\/\\\\/g' > %t-file.blacklist
// RUN: echo "type:PODWithCtorAndDtor=init" > %t-type.blacklist
// RUN: echo "type:NS::PODWithCtor=init" >> %t-type.blacklist
// RUN: %clang_cc1... | 858 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "documentdb_tagged_metrics.h"
#include "job_tracker.h"
#include <vespa/searchcorespi/flush/iflushtarget.h>
#include <chrono>
#include <mutex>
namespace proton {
/**
* Class that handles all... | 632 |
1,338 | /*
* Copyright (c) 2000-2008, <NAME> <<EMAIL>>,
* Copyright (c) 2000-2008, <NAME> <<EMAIL>>,
* All Rights Reserved. Distributed under the terms of the MIT license.
*/
#include <stdio.h>
#include "Event.h"
Event::Event(bool autoDelete)
: fTime(0),
fAutoDelete(autoDelete)
{
}
Event::Event(bigtime_t time, bo... | 269 |
678 | <gh_stars>100-1000
#include <stdint.h> // uint32_t, uint64_t
#include <mach/kern_return.h> // kern_return_t, KERN_SUCCESS
#include <mach/mach_error.h> // mach_error_string
#include <mach/mach_host.h> // host_get_io_master, mach_port_t
#include <mach/mach_traps.h> // mach_host_self
#include <mac... | 2,170 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.