max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
14,668 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_SERVICES_PATCH_CONTENT_PATCH_SERVICE_H_
#define COMPONENTS_SERVICES_PATCH_CONTENT_PATCH_SERVICE_H_
#include "base/callback.h"
#include... | 275 |
4,612 | <filename>src/twisted/internet/iocpreactor/iocpsupport.py
__all__ = [
"CompletionPort",
"Event",
"accept",
"connect",
"get_accept_addrs",
"have_connectex",
"makesockaddr",
"maxAddrLen",
"recv",
"recvfrom",
"send",
]
from twisted_iocpsupport.iocpsupport import ( # type: igno... | 238 |
307 | #pragma once
#include "globalincs/pstypes.h"
void gr_opengl_deferred_init();
void opengl_clear_deferred_buffers();
void gr_opengl_deferred_lighting_begin();
void gr_opengl_deferred_lighting_end();
void gr_opengl_deferred_lighting_finish();
void gr_opengl_deferred_light_sphere_init(int rings, int segments);
void gr_... | 223 |
1,700 | <reponame>LinuxUserGD/godot-opengl-4<gh_stars>1000+
// Copyright 2009-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "coneline_intersector.h"
#include "intersector_epilog.h"
namespace embree
{
namespace isa
{
template<int M, bool filter>
struct ConeCurveMiIntersector1... | 2,854 |
3,084 | /*++
Copyright (c) 2005 Microsoft Corporation
All rights reserved.
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
File Name:
xpsf... | 2,528 |
3,710 | <gh_stars>1000+
#pragma once
#ifndef T_COLOR_FUNCTIONS_INCLUDED
#define T_COLOR_FUNCTIONS_INCLUDED
#include "tpixel.h"
#undef DVAPI
#undef DVVAR
#ifdef TCOLOR_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_VAR
#endif
//----------------------... | 1,205 |
611 | //
// BSubview.h
// ZIKViewRouterTests
//
// Created by zuik on 2018/4/18.
// Copyright © 2018 zuik. All rights reserved.
//
#import "ZIKPlatformCapabilities.h"
#if ZIK_HAS_UIKIT
#import <UIKit/UIKit.h>
#else
#import <AppKit/AppKit.h>
#endif
#import "BSubviewInput.h"
@interface BSubview : UIView <BSubviewInput>
... | 169 |
17,085 | /* 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.org/licenses/LICENSE-2.0
Unless required by applicable law or... | 1,324 |
553 | <reponame>u014427391/ecshop
package com.muses.taoshop.common.cas.constant;
/**
* <pre>
* 单点登录配置类
* </pre>
*
* @author nicky
* @version 1.00.00
* <pre>
* 修改记录
* 修改后版本: 修改人: 修改日期: 2018.10.28 22:40 修改内容:
* </pre>
*/
public class CasConsts {
//CAS server地址
public static final String CAS_SERV... | 635 |
636 | package cn.org.atool.fluent.mybatis.base.crud;
import cn.org.atool.fluent.mybatis.base.free.FreeQuery;
import cn.org.atool.fluent.mybatis.segment.JoinOn;
/**
* 关联查询构造方式一: 使用直接传入设置好别名和参数的Query
*
* @param <QL> 查询表一
* @author wudarui
*/
@SuppressWarnings({"unchecked", "unused"})
public interface JoinToBuilder<QL ex... | 1,146 |
5,169 | <gh_stars>1000+
{
"name": "FunAccordionView",
"platforms": {
"ios": "11.0"
},
"summary": "FunAccordionView provides a three level accordion view (forked of ThreeLevelAccordian).",
"requires_arc": true,
"version": "1.0.0",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<... | 301 |
488 | typedef long long int64_t;
// extern __attribute__ (( cdecl )) int64_t __divdi3 ( int64_t num, int64_t den );
#include "test2015_89.h"
#if 1
/* The attribute is not handled properly (dropped) by ROSE currently */
__attribute__ (( cdecl )) int64_t __divdi3(int64_t num, int64_t den)
#else
int64_t __divdi3(int64_t num, ... | 151 |
1,240 | package com.eventyay.organizer.data.repository;
import com.eventyay.organizer.common.Constants;
import com.eventyay.organizer.data.AbstractObservable;
import com.eventyay.organizer.data.Repository;
import com.eventyay.organizer.data.attendee.Attendee;
import com.eventyay.organizer.data.attendee.AttendeeApi;
import com... | 2,382 |
600 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import mock
from bravado.fido_client import FidoResponseAdapter
def test_header_conversion():
fido_response = mock.Mock(
name='fido_response',
headers={
b'Content-Type': [b'application/json'],
... | 312 |
1,511 | <filename>etc/release/gen_requirements_dev.py<gh_stars>1000+
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) nexB Inc. and others. All rights reserved.
# ScanCode is a trademark of nexB Inc.
# SPDX-License-Identifier: Apache-2.0
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
# Se... | 741 |
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,163 |
11,356 | // Copyright (c) 2001-2010 <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#if !defined(SPIRIT_LEXER_EXAMPLE_WORD_COUNT_TOKENS_FEB_10_2008_0739PM)
#define SPIRIT_LEXER_EXAMPLE_WORD_COUNT_TOKENS_FEB_10_... | 536 |
3,934 | <filename>packages/pyright-internal/src/tests/samples/typeAlias5.py
# This sample tests type aliases that are unions that include
# TypeVars.
from datetime import datetime
from typing import IO, Dict, Generic, List, Literal, Type, TypeVar, Union
_T1 = TypeVar("_T1")
_T2 = TypeVar("_T2")
MyUnion1 = Union[int, _T1, st... | 503 |
372 | <reponame>mjhopkins/google-api-java-client-services
/*
* 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... | 1,333 |
764 | {
"symbol": "LLWF",
"address": "0x8618e0E4120f96eCCBC280A37445C4d444b2952d",
"overview": {
"en": "Was established in July 7, 2016, the company cooperates with many industry leaders signing, also has the global system of cross-border manufacturer provides straightly, leave lotus culture has deep coop... | 457 |
1,085 | /*
* Copyright (C) 2017-2019 Dremio 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 l... | 428 |
1,418 | package aima.core.probability.domain;
/**
* A Domain over a continuous not countable set of objects (e.g. the Real
* numbers).
*
* @author <NAME>
*/
public interface ContinuousDomain extends Domain {
}
| 74 |
2,360 | <filename>var/spack/repos/builtin/packages/pegtl/package.py
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
# package has a Makefile, but only to b... | 1,051 |
345 | <reponame>mickaelseznec/Pytorch-Correlation-extension
from __future__ import division
from __future__ import print_function
import argparse
import time
import torch
from spatial_correlation_sampler import SpatialCorrelationSampler
from tqdm import trange
TIME_SCALES = {'s': 1, 'ms': 1000, 'us': 1000000}
parser = ar... | 1,119 |
2,366 | /*
* =============================================================================
*
* Copyright (c) 2011-2018, The THYMELEAF team (http://www.thymeleaf.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... | 1,865 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-793h-vw32-6xg7",
"modified": "2022-05-01T02:27:36Z",
"published": "2022-05-01T02:27:36Z",
"aliases": [
"CVE-2005-4465"
],
"details": "The Internet Key Exchange version 1 (IKEv1) implementation in NEC UNIVERGE IX1000, IX2000, and IX3000 allows remote attackers t... | 567 |
479 | // Copyright (C) 2010 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 applicable ... | 1,314 |
1,724 | <filename>driver-core/src/test/unit/com/mongodb/client/model/TestWindows.java
/*
* Copyright 2008-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... | 3,702 |
678 | /* Cycript - The Truly Universal Scripting Language
* Copyright (C) 2009-2016 <NAME> (saurik)
* Copyright (C) 2016 NowSecure <<EMAIL>>
*/
/* GNU Affero General Public License, Version 3 {{{ */
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero Ge... | 2,569 |
569 | /*
* 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 ... | 5,265 |
571 | /**
* @file batchDistance.cpp
* @brief mex interface for cv::batchDistance
* @ingroup core
* @author Amro
* @date 2015
*/
#include "mexopencv.hpp"
using namespace std;
using namespace cv;
/**
* Main entry called from Matlab
* @param nlhs number of left-hand-side arguments
* @param plhs pointers to mxArrays in... | 931 |
1,125 | // Auto-generated file. Do not edit!
// Template: src/f16-f32-vcvt/wasmsimd-int32.c.in
// Generator: tools/xngen
//
// Copyright 2021 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <assert.h>
#include <wasm... | 2,203 |
2,032 | <gh_stars>1000+
# -*- coding: utf-8 -*-
from ...context import init_test_context
init_test_context()
from zvt.consts import SAMPLE_STOCK_CODES
from zvt.recorders.eastmoney.holder.eastmoney_top_ten_holder_recorder import TopTenHolderRecorder
from zvt.recorders.eastmoney.holder.eastmoney_top_ten_tradable_holder_record... | 281 |
988 | <gh_stars>100-1000
/*
* Copyright (c) 2018 <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 applicabl... | 471 |
521 | <filename>src/elle/reactor/modules/dokany/dokan/dokanc.h<gh_stars>100-1000
/*
Dokan : user-mode file system library for Windows
Copyright (C) 2015 - 2016 <NAME>. <<EMAIL>> and <NAME>. <<EMAIL>>
Copyright (C) 2007 - 2011 <NAME> <<EMAIL>>
http://dokan-dev.github.io
This program is free software; you can redist... | 2,100 |
6,098 | # -*- encoding: utf-8 -*-
import random
import warnings
from contextlib import contextmanager
from collections import OrderedDict, Counter, defaultdict
try:
from StringIO import StringIO # py2 (first as py2 also has io.StringIO, but only with unicode support)
except:
from io import StringIO # py3
import h2o... | 53,082 |
7,482 | /*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2019-01-25 winner micro
*/
#ifndef DRV_ONESHOT_H__
#define DRV_ONESHOT_H__
typedef enum{
WM_UDP,
WM_APSOCKET,
WM_APWEB
}WM_ONESHOT_MODE;
ty... | 243 |
348 | {"nom":"Ousse","circ":"2ème circonscription","dpt":"Pyrénées-Atlantiques","inscrits":1257,"abs":528,"votants":729,"blancs":21,"nuls":5,"exp":703,"res":[{"nuance":"MDM","nom":"<NAME>","voix":309},{"nuance":"SOC","nom":"Mme <NAME>","voix":99},{"nuance":"FI","nom":"M. <NAME>","voix":75},{"nuance":"FN","nom":"M. <NAME>","v... | 283 |
16,989 | // Copyright 2018 The Bazel 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 appl... | 1,183 |
5,272 | <reponame>JiangShoudong/iOS-
//
// LMJElementsFlowLayout.h
// 瀑布流完善接口
//
// Created by apple on 16/7/31.
// Copyright © 2016年 NJHu. All rights reserved.
//
#import <UIKit/UIKit.h>
@class LMJElementsFlowLayout;
@protocol LMJElementsFlowLayoutDelegate <NSObject>
@required
/**
* 要求实现
*
* @param waterflowLay... | 613 |
879 | package org.zstack.test.utils;
import junit.framework.Assert;
import org.junit.Test;
import org.zstack.utils.network.NetworkUtils;
import java.util.concurrent.TimeUnit;
public class TestRemotePort {
@Test
public void test() {
boolean open = NetworkUtils.isRemotePortOpen("127.0.0.1", 22, (int) TimeUni... | 212 |
374 | /* Copyright (c) 2008-2009 <NAME>
Permission is hereby granted,free of charge,to any person obtaining a copy of this software and associated documentation files (the "Software"),to deal in the Software without restriction,including without limitation the rights to use,copy,modify,merge,publish,distribute,sublicense,an... | 1,121 |
461 | <reponame>t3zeng/mynewt-nimble
/*
* 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, Versi... | 3,704 |
463 | #!/usr/bin/env python3
import os
from t11 import gen11
from t22 import gen22
from t23 import gen23
from t36 import gen36
from t42 import gen42
from t51 import gen51
from t53 import gen53
from t54 import gen54
def make(c):
os.system('g++ %s.cpp -oa -O2; ./a; rm a' % (c))
if __name__ == '__main__':
gen11()
make('t1... | 164 |
1,338 | /*
* Copyright 2006, Haiku. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
*/
#include "BitmapExporter.h"
#include <Bitmap.h>
#include <BitmapStream.h>
#include <TranslatorFormats.h>
#include <TranslatorRoster.h>
#include "Icon.h"
#include "IconRenderer.... | 575 |
665 | <reponame>apache/isis
/*
* 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... | 2,754 |
1,165 | /*******************************************************************************
* Copyright 2018 T Mobile, Inc. or its affiliates. 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
... | 1,040 |
454 | package io.vertx.up.secure.bridge;
/**
* @author <a href="http://www.origin-x.cn">Lang</a>
*/
interface Info {
String AUTH_401_METHOD = "[ Auth ] Your `@Wall` class missed @Authenticate method ! {0}";
String AUTH_401_SERVICE = "[ Auth ] Your `Lee` in service-loader /META-INF/services/ is missing....";
S... | 148 |
895 | <reponame>JKot-Coder/slang
//
// The file is meant to be included multiple times, to produce different
// pieces of declaration/definition code related to diagnostic messages
//
// Each diagnostic is declared here with:
//
// DIAGNOSTIC(id, severity, name, messageFormat)
//
// Where `id` is the unique diagnostic I... | 388 |
8,747 | SOC_IRAM_LOW = 0x40020000
SOC_IRAM_HIGH = 0x40070000
SOC_DRAM_LOW = 0x3ffb0000
SOC_DRAM_HIGH = 0x40000000
SOC_RTC_DRAM_LOW = 0x3ff9e000
SOC_RTC_DRAM_HIGH = 0x3ffa0000
SOC_RTC_DATA_LOW = 0x50000000
SOC_RTC_DATA_HIGH = 0x50002000
| 131 |
400 | <gh_stars>100-1000
#ifndef OS_MODULES_H
#define OS_MODULES_H
#include "interrupt.h"
extern InterruptManager interruptManager;
#endif | 54 |
521 | /**
* @file tests/utils/address_tests.cpp
* @brief Tests for the @c address module.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include <gtest/gtest.h>
#include "retdec/utils/address.h"
using namespace ::testing;
namespace retdec {
namespace utils {
namespace tests {
/**
* @brief Test... | 6,692 |
713 | package org.infinispan.notifications.cachelistener.event;
/**
* This event subtype is passed in to any method annotated with
* {@link org.infinispan.notifications.cachelistener.annotation.CacheEntryPassivated}.
*
* @author <NAME>
* @author <NAME>
* @since 5.0
*/
public interface CacheEntryPassivatedEvent<K, V> ... | 198 |
1,382 | /*
* Copyright (c) 2007 - 2015 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... | 912 |
2,003 | <filename>src/sdk/sdk_perf.h
// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TERA_SDK_SDK_PERF_H_
#define TERA_SDK_SDK_PERF_H_
#include <thread>
#include "gflags/gflags.h"
#include "glog/logging... | 448 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using na... | 5,876 |
1,144 | package de.metas.handlingunits;
/*
* #%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 version 2 of the
... | 916 |
755 | <gh_stars>100-1000
/**
* @project: Overload
* @author: <NAME>.
* @licence: MIT
*/
#include <utility>
#include <stdexcept>
#include <cmath>
#include "OvMaths/FVector3.h"
const OvMaths::FVector3 OvMaths::FVector3::One(1.0f, 1.0f, 1.0f);
const OvMaths::FVector3 OvMaths::FVector3::Zero(0.0f, 0.0f, 0.0f);
const OvMaths::... | 2,169 |
2,296 | package com.github.appintro.example.ui.java;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import com.github.appintro.AppIntro;
import com.github.appintro.AppIntroFragment;
import com.github.appintro.AppIntroPageTransformerType;
import com.github.appintro.example... | 1,122 |
6,451 | <gh_stars>1000+
class TemporaryNoOpSummarizer:
def render(self, input):
return input
class DropAllVowelsSummarizer:
def render(self, input):
return input
| 71 |
6,034 | <reponame>ssSlowDown/onemall<filename>moved/product/product-service-impl/src/main/java/cn/iocoder/mall/product/convert/ProductSpuConvert.java
package cn.iocoder.mall.product.convert;
import cn.iocoder.common.framework.util.StringUtil;
import cn.iocoder.mall.product.api.bo.*;
import cn.iocoder.mall.product.api.dto.Prod... | 1,958 |
669 | <gh_stars>100-1000
"""
Copyright (c) Facebook, Inc. and its affiliates.
"""
BLOCK_SPREAD = 1
# BLOCK_TO_PICKUPS = 2
# BREWING_COMPLETED = 3
# BREWING_COMPLETING = 4
CHAT = 5
CHUNK_AVAILABLE = 6
# CHUNK_GENERATED = 7
# CHUNK_GENERATING = 8
# CHUNK_UNLOADED = 9
# CHUNK_UNLOADING = 10
COLLECTING_PICKUP = 11
# CRAFTING_NO... | 753 |
2,151 | /*
* This file is part of FFmpeg.
*
* FFmpeg 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 version.
*
* FFmpeg is distributed... | 2,271 |
575 | <filename>ios/chrome/browser/ui/authentication/signin/user_signin/user_policy_signout_coordinator.h
// 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 IOS_CHROME_BROWSER_UI_AUTHENTICATION_SIGNIN_US... | 382 |
628 | <filename>External/FEXCore/include/FEXCore/Utils/Allocator.h
#pragma once
#include <FEXCore/Utils/CompilerDefs.h>
#include <cstdint>
#include <functional>
namespace FEXCore::Allocator {
using MMAP_Hook = void*(*)(void*, size_t, int, int, int, off_t);
using MUNMAP_Hook = int(*)(void*, size_t);
using MALLOC_Hoo... | 316 |
25,360 | package org.jeecg.boot.starter.lock.test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import java.util.concurrent.Executo... | 964 |
2,571 | # ***************************************************************
# Copyright (c) 2021 Jittor. All Rights Reserved.
# Maintainers:
# <NAME> <<EMAIL>>.
#
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
# *******************************... | 726 |
2,111 | #include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
#include <assert.h>
#include "htslib/tbx.h"
#include "htslib/bgzf.h"
#include "htslib/khash.h"
KHASH_DECLARE(s2i, kh_cstr_t, int64_t)
tbx_conf_t tbx_conf_gff = { 0, 1, 4, 5, '#', 0 };
tbx_conf_t tbx_conf_bed = { TBX_UCSC, 1, 2, 3, '#', 0 };... | 4,408 |
7,746 | /*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
smt_relevancy.cpp
Abstract:
<abstract>
Author:
<NAME> (leonardo) 2008-06-04.
Revision History:
--*/
#include "smt/smt_context.h"
#include "smt/smt_relevancy.h"
#include "ast/ast_pp.h"
#include "ast/ast_ll_pp.h"
#include "ast/ast_smt2_pp.h"
... | 14,007 |
1,467 | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | 371 |
9,959 | @lombok.Builder
public class BuilderWithBadNames {
String build;
String toString;
}
| 28 |
681 | from metaworld.envs.mujoco.sawyer_xyz.sawyer_pick_and_place import (
SawyerPickAndPlaceEnv,
SawyerPickAndPlaceEnvYZ,
)
# from metaworld.core.image_env import ImageEnv
# from metaworld.envs.mujoco.cameras import sawyer_pick_and_place_camera
import numpy as np
env = SawyerPickAndPlaceEnvYZ(
hand_low=(-0.1, 0.55... | 411 |
5,411 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_ANDROID_APK_ASSETS_H_
#define BASE_ANDROID_APK_ASSETS_H_
#include <string>
#include "base/android/jni_android.h"
#include "base/files/file_... | 424 |
530 | import asyncio
import random
import pytest
from tartiflette import Resolver, create_engine
_BOOKS = [{"id": i, "title": f"Book #{i}"} for i in range(25)]
_SDL = """
type Book {
id: Int!
title: String!
}
type Query {
books: [Book!]
}
"""
@pytest.mark.asyncio
async def test_issue_457_sequentially(random_sche... | 1,296 |
4,238 | #!/usr/bin/env python
# Lint as: python3
"""A compatibility layer for the IPython shell."""
# pylint: disable=g-import-not-at-top
def IPShell(argv=None, user_ns=None, banner=None):
if argv is None:
argv = []
try:
from IPython.terminal.embed import InteractiveShellEmbed
shell = InteractiveShellEmbed(... | 203 |
542 | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... | 2,053 |
435 | package org.uma.jmetal.example.operator;
import org.uma.jmetal.lab.visualization.plot.PlotFront;
import org.uma.jmetal.lab.visualization.plot.impl.PlotSmile;
import org.uma.jmetal.operator.crossover.CrossoverOperator;
import org.uma.jmetal.operator.crossover.impl.SBXCrossover;
import org.uma.jmetal.problem.doubleprobl... | 1,510 |
1,069 | # coding: utf-8
from django.db import models
from django_th.models.services import Services
from django_th.models import TriggerService
class Slack(Services):
"""
Model for Slack Service
"""
webhook_url = models.URLField(max_length=2000, blank=True, null=True)
slack_token = models.CharField(ma... | 346 |
482 | package io.cattle.platform.datasource;
import javax.sql.DataSource;
public interface DataSourceFactory {
DataSource createDataSource(String name);
}
| 49 |
758 | def main(args=None):
try:
import pyct.cmd
except ImportError:
import sys
from . import _missing_cmd
print(_missing_cmd())
sys.exit(1)
return pyct.cmd.substitute_main('datashader',args=args)
if __name__ == "__main__":
main()
| 130 |
1,358 | <gh_stars>1000+
import logging
from distributed.http.prometheus import PrometheusCollector
from distributed.http.utils import RequestHandler
class WorkerMetricCollector(PrometheusCollector):
def __init__(self, server):
super().__init__(server)
self.logger = logging.getLogger("distributed.dask_wor... | 1,468 |
502 | /*
* 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,100 |
995 | /*
* Copyright (c) 2018-present, Facebook, Inc.
* 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.
*/
#include <fizz/protocol/BrotliCertificateDecompressor.h>
#include <brotli/decode.h>
using namespace f... | 602 |
450 | <filename>lib/Support/Debug.cpp
//===-- Debug.cpp - An easy way to add debug output to your code ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------... | 1,367 |
2,504 | <gh_stars>1000+
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Tencent is pleased to support the open source community by making behaviac available.
//
// Copyright (C) 2015-2017 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed... | 1,210 |
2,498 | /*
* chia.h
*
* Created on: May 24, 2021
* Author: mad
*/
#ifndef INCLUDE_CHIA_CHIA_H_
#define INCLUDE_CHIA_CHIA_H_
#include <chrono>
#include <cstdint>
#include <string>
#include <chia/settings.h>
// Unique plot id which will be used as a ChaCha8 key, and determines the PoSpace.
const uint32_t kIdLen =... | 898 |
2,269 | <reponame>Gizallina898/nar
/*
* Copyright 2019. Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 4,318 |
2,100 | <reponame>isabella232/gapid
// Copyright (C) 2018 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 b... | 1,978 |
1,073 | <reponame>kpdev/llvm-tnt<gh_stars>1000+
//===-- X86WinCOFFObjectWriter.cpp - X86 Win COFF Writer ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------... | 1,783 |
495 | package com.github.database.rider.spring.model;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.su... | 556 |
348 | {"nom":"Paslières","circ":"5ème circonscription","dpt":"Puy-de-Dôme","inscrits":1170,"abs":542,"votants":628,"blancs":15,"nuls":6,"exp":607,"res":[{"nuance":"COM","nom":"M. <NAME>","voix":439},{"nuance":"REM","nom":"M. <NAME>","voix":168}]} | 102 |
852 | <filename>RecoTracker/FinalTrackSelectors/plugins/LwtnnESProducer.cc<gh_stars>100-1000
#include "FWCore/Framework/interface/ModuleFactory.h"
#include "FWCore/Framework/interface/ESProducer.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "TrackingTools/Records/interface/TrackingComponentsRecord.h"
//... | 702 |
525 | /*
* Copyright 2015 Odnoklassniki Ltd, Mail.Ru Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 370 |
2,939 | #include "llvm/Support/Format.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/TableGen/Record.h"
#include "llvm/TableGen/TableGenBackend.h"
#include "mlir/Support/LLVM.h"
#include "mlir/TableGen/Attribute.h"
#include "mlir/TableGen/GenInfo.h"
namespace lumen {
namespace eir {
namespace tablegen {
using ::l... | 2,246 |
2,338 | <reponame>acidburn0zzz/llvm-project
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class TestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
@add_test_categories(["libc++"])
@skipIf(compiler=no_match("clang"))
def test(self)... | 1,522 |
348 | <gh_stars>100-1000
{"nom":"Niederentzen","circ":"4ème circonscription","dpt":"Haut-Rhin","inscrits":491,"abs":278,"votants":213,"blancs":15,"nuls":4,"exp":194,"res":[{"nuance":"REM","nom":"<NAME>","voix":102},{"nuance":"LR","nom":"<NAME>","voix":92}]} | 101 |
634 | <filename>zentral/contrib/zendesk/__init__.py
# django
default_app_config = "zentral.contrib.zendesk.apps.ZentralZendeskAppConfig"
| 57 |
778 | /*
* Copyright (C) 2020-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/helpers/non_copyable_or_moveable.h"
#include "shared/source/os_interface/linux/drm_neo.h"
#include "shared/source/os_interface/os_interface.h"
#include "level_zero/core/source/device/device.h... | 698 |
939 | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 875 |
19,824 | {
"main": "dist/keystone-ui-icons-icons-MoreHorizontalIcon.cjs.js",
"module": "dist/keystone-ui-icons-icons-MoreHorizontalIcon.esm.js"
}
| 57 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.