max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
2,151 | <reponame>google-ar/chromium
// Copyright (c) 2012 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 "ppapi/shared_impl/flash_clipboard_format_registry.h"
#include <stddef.h>
#include <cctype>
#include "base/ma... | 1,013 |
424 | package com.j256.ormlite.stmt;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.sql.SQLException;
import java.util.List;
import org.junit.Test;
import com.j256.ormlite.BaseCoreTest;
import com.j256.ormlite.dao.Dao;
import... | 810 |
626 | package org.jsmart.zerocode.core.defaultrunner;
import org.jsmart.zerocode.core.runner.ZeroCodePackageRunner;
import org.jsmart.zerocode.core.domain.TestPackageRoot;
import org.junit.runner.RunWith;
@TestPackageRoot("unit_test_files/default_cases")
@RunWith(ZeroCodePackageRunner.class)
public class DefaultRunnerTestR... | 111 |
696 | <reponame>hwang-pku/Strata<filename>modules/pricer/src/main/java/com/opengamma/strata/pricer/model/SabrParameters.java
/*
* Copyright (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.pricer.model;
import java.io.Seria... | 6,243 |
714 | <filename>OpenXLSX/headers/XLRow.hpp
/*
____ ____ ___ ____ ____ ____ ___
6MMMMb `MM( )M' `MM' 6MMMMb\`MM( )M'
8P Y8 `MM. d' MM 6M' ` `MM. d'
6M Mb __ ____ ____ __... | 6,492 |
1,467 | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "backend/plain/account_detail_record_id.hpp"
using namespace shared_model::interface::types;
using namespace shared_model::plain;
AccountDetailRecordId::AccountDetailRecordId(AccountIdType writer,
... | 216 |
678 | <filename>iOSOpenDev/frameworks/AccountSettingsUI.framework/Headers/AccountSettingsUIAccountAddType.h
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/AccountSettingsUI.framework/AccountSettingsUI
*/
#import <AccountSettingsUI/XXUnknownSuperclass.h>
@class PSSpeci... | 649 |
1,444 | <filename>Mage.Sets/src/mage/cards/c/CoercivePortal.java
package mage.cards.c;
import mage.abilities.Ability;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.DestroyAllEffect;
import mage.cards.CardImpl;
import mage.cards... | 1,271 |
2,212 | <reponame>digjanaik/detect-secrets
#!/usr/bin/python
REGULAR_VALUE = 'this is just a long string, like a user facing error message'
FOOD = 'sweet potato casserole'
ANIMAL = 'Hippo'
| 66 |
4,775 | <filename>third_party/phlib/include/emenu.h
#ifndef _PH_EMENU_H
#define _PH_EMENU_H
#ifdef __cplusplus
extern "C" {
#endif
#define PH_EMENU_DISABLED 0x1
#define PH_EMENU_CHECKED 0x2
#define PH_EMENU_HIGHLIGHT 0x4
#define PH_EMENU_MENUBARBREAK 0x8
#define PH_EMENU_MENUBREAK 0x10
#define PH_EMENU_DEFAULT 0x20
#define P... | 2,237 |
453 | <reponame>The0x539/wasp
/* Copyright 2002, Red Hat Inc. */
#include <mqueue.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <string.h>
#define _LIBC 1
#include <sys/lock.h>
#undef _LIBC
#include "mqlocal.h"
__LOCK_INIT(static, mq_rdbuf_lock);
ssize_t
mq_receive (mqd_t msg... | 711 |
5,607 | /*
* Copyright 2017-2020 original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 643 |
8,969 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef RUNTIME_VM_NATIVE_FUNCTION_H_
#define RUNTIME_VM_NATIVE_FUNCTION_H_
#include "vm/allocation.h"... | 414 |
473 | <filename>src/lapack_like/factor/Cholesky.cpp<gh_stars>100-1000
/*
Copyright (c) 2009-2016, <NAME>
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
... | 3,242 |
5,053 | from distutils.version import LooseVersion
import os
import torch
is_torch_1_7_plus = LooseVersion(torch.__version__) >= LooseVersion("1.7.0")
if is_torch_1_7_plus:
from s3prl.upstream.interfaces import Featurizer
def test_frontend_output_size():
# Skip some testing cases
if not is_torch_1_7_plus:
... | 476 |
777 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/password_manager/core/browser/browser_save_password_progress_logger.h"
#include "base/strings/utf_string_conversions.h"
#include "co... | 1,288 |
652 | <filename>server/api/rules/regular_students.py
from datetime import timedelta
from typing import Dict, List, Set
from sqlalchemy import and_
from server.api.rules.utils import register_rule
from server.api.rules.lesson_rule import LessonRule
@register_rule
class RegularStudents(LessonRule):
"""students with 10-... | 216 |
463 | <reponame>pblew/jmockit1<filename>main/src/mockit/internal/expectations/InstanceBasedMatching.java
/*
* Copyright (c) 2006 JMockit developers
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package mockit.internal.expectations;
import java.util.*;
import javax.annotation.*;
import mock... | 543 |
634 | <gh_stars>100-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. Th... | 2,389 |
313 | // Copyright 2021 The AIBENCH 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 a... | 701 |
594 | #ifndef _APP_SOBJ_SAMPLER_RTX_SAMPLER_H_
#define _APP_SOBJ_SAMPLER_RTX_SAMPLER_H_
#include <Basic/HeapObj.h>
#include <UGM/point.h>
#include <UGM/val.h>
#include <functional>
#include <vector>
namespace Ubpa {
namespace Basic {
class Image;
}
namespace Engine {
class Scene;
class RayTracer;
}
}
namespa... | 464 |
347 | package org.ovirt.engine.api.restapi.resource;
import org.ovirt.engine.api.model.Hook;
import org.ovirt.engine.api.model.Hooks;
import org.ovirt.engine.api.resource.HostHookResource;
public class BackendHostHookResource extends AbstractBackendSubResource<Hook, Object> implements HostHookResource {
private Backen... | 430 |
1,337 | <filename>modules/core/test/com/haulmont/cuba/core/global/EntityLoadInfoBuilderTest.java
/*
* Copyright (c) 2008-2016 Haulmont.
*
* 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
*
* ... | 658 |
1,602 | <filename>third-party/hwloc/hwloc-src/tests/ports/include/aix/sys/systemcfg.h
/*
* Copyright © 2011 <NAME>
* Copyright © 2016 Inria. All rights reserved.
* See COPYING in top-level directory.
*/
#ifndef HWLOC_PORT_AIX_SYS_SYSTEMCFG_H
#define HWLOC_PORT_AIX_SYS_SYSTEMCFG_H
struct {
int dcache_size;
int dcache... | 350 |
427 | package org.deeplearning4j.malmo;
import org.json.JSONObject;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.factory.Nd4j;
import com.microsoft.msr.malmo.TimestampedStringVector;
import com.microsoft.msr.malmo.WorldState;
/**
* Basic observation space that contains just the X,Y,Z location trip... | 644 |
765 | <reponame>hyu-iot/gem5
#include "systemc.h"
#include "specialized_signals/scx_signal_int.h"
#include "specialized_signals/scx_signal_signed.h"
#include "specialized_signals/scx_signal_uint.h"
#include "specialized_signals/scx_signal_unsigned.h"
SC_MODULE(up_down)
{
sc_in_clk clk;
sc_in<sc_uint<1> >... | 2,009 |
984 | /*
* 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 applicable law or agreed to in wri... | 1,975 |
2,179 | /*
* 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,706 |
575 | <gh_stars>100-1000
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_RESOURCES_CHROMEOS_ZIP_ARCHIVER_CPP_COMPRESSOR_IO_JAVASCRIPT_STREAM_H_
#define CHROME_BROWSER_RESOURCES_CHROMEOS... | 912 |
1,755 | #ifndef _H5BLOCK_ERRORS_H_
#define _H5BLOCK_ERRORS_H_
extern h5part_error_handler _err_handler;
#define CHECK_LAYOUT( f ) \
if ( ! f->block->have_layout ) \
return (*_err_handler) ( \
_H5Part_get_funcname(), \
H5PART_ERR_LAYOUT, \
"No layout defined." )
#define HANDLE_H5PART_LAYOUT_ERR \
(*_err_handler... | 673 |
387 | #include "arcpch.h"
#include "JoystickManager.h"
namespace Arcane
{
JoystickInputData JoystickManager::s_JoystickData[MAX_JOYSTICKS];
JoystickManager::JoystickManager() {
for (int i = 0; i < MAX_JOYSTICKS; i++) {
s_JoystickData[i].SetId(i);
s_JoystickData[i].SetConnection(glfwJoystickPresent(i)); // Check f... | 806 |
388 | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 ustwo studio inc (www.ustwo.com)
*
* 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 t... | 2,103 |
1,016 | package com.thinkbiganalytics.policy.standardization;
/*-
* #%L
* thinkbig-field-policy-default
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* 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 L... | 690 |
515 | /*
* Copyright 2018-present HiveMQ and the HiveMQ Community
*
* 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 ... | 1,940 |
578 | <filename>example/xx_three/lines_fat.cpp<gh_stars>100-1000
#include <xx_three/xx_three.h>
#include <gfx-pbr/Api.h>
#include <stl/array.h>
#include <stl/vector.hpp>
#include <cstdio>
#include <cstring>
using namespace two;
#define FAT 1
#define CACHE 0
EX(xx_lines_fat)
{
#if UI
UNUSED(dockbar);
SceneViewer& viewe... | 1,507 |
2,125 | import logging
import sys
import pytest
# Add test environment variable before all tests
def pytest_sessionstart(session):
logging.basicConfig(
format='[%(asctime)s][%(processName)s][%(name)s][%(levelname)s] %(message)s',
level=logging.INFO,
stream=sys.stdout)
def pytest_configure(confi... | 611 |
508 | //
// airbnb-datepicker.h
// airbnb-datepicker
//
// Created by <NAME> on 5/3/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for airbnb-datepicker.
FOUNDATION_EXPORT double airbnb_datepickerVersionNumber;
//! Project version string for airbnb-datepicker... | 170 |
380 | <reponame>gunjan-bhattarai/the-pile<filename>processing_scripts/pile_proportions_sanitycheck.py<gh_stars>100-1000
from the_pile.utils import *
import lm_dataformat as lmd
import random
import os
from tqdm import tqdm
import shutil
fnames = ls('pile_output')[:10]
import collections
total_bytes = 0
bytes_per_subset =... | 370 |
2,139 | package org.jruby.ir.targets.indy;
import org.jruby.ir.targets.CheckpointCompiler;
import org.jruby.ir.targets.IRBytecodeAdapter;
import org.jruby.runtime.ThreadContext;
import static org.jruby.util.CodegenUtils.sig;
public class IndyCheckpointCompiler implements CheckpointCompiler {
private final IRBytecodeAdap... | 265 |
578 | <gh_stars>100-1000
{"LeftAttack":{"height":163,"className":"LeftAttack","width":292,"id":"1001","totalFrames":25},"LeftDefend":{"height":98,"className":"LeftDefend","width":131,"id":"1001","totalFrames":2},"LeftDie":{"height":175,"className":"LeftDie","width":159,"id":"1001","totalFrames":27},"LeftHit":{"height":113,"c... | 378 |
4,339 | /*
* 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,392 |
340 | <filename>include/eve/module/real/combinatorial/function/regular/generic/fibonacci.hpp
//==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//===============... | 798 |
651 | package net.serenitybdd.screenplay.jenkins.tasks;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Task;
import net.serenitybdd.screenplay.actions.Click;
import net.serenitybdd.screenplay.jenkins.user_interface.navigation.Breadcrumbs;
import net.thucydides.core.annotations.Step;
import stati... | 300 |
480 | <gh_stars>100-1000
#
# Collective Knowledge (various graphs for experiment)
#
# See CK LICENSE.txt for licensing details
# See CK COPYRIGHT.txt for copyright details
#
# Developer: <NAME>, <EMAIL>, http://fursin.net
#
cfg={} # Will be updated by CK (meta description of this module)
work={} # Will be updated by CK (te... | 31,244 |
572 |
#ifndef __BLEND_FUNCTOR_AVX2_H__
#define __BLEND_FUNCTOR_AVX2_H__
#include "x86simdutil.h"
extern "C" {
extern unsigned char TVPOpacityOnOpacityTable[256*256];
extern unsigned char TVPNegativeMulTable[256*256];
};
// ソースのアルファを使う
template<typename blend_func>
struct avx2_variation : public blend_func {
inline tjs_u... | 17,282 |
1,125 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 2,004 |
368 | /**
* @file file_writer.h
* @brief 写文件Wrapper类
* @author xiangwangfeng <<EMAIL>>
* @data 2011-4-25
* @website www.xiangwangfeng.com
*/
#pragma once
#include <xstring>
#include "global_defs.h"
NAMESPACE_BEGIN(Util)
//写文件Wrapper类
class FileWriter
{
public:
FileWriter(const std::wstring& filepath);
~Fil... | 284 |
348 | {"nom":"Trémont","circ":"1ère circonscription","dpt":"Orne","inscrits":78,"abs":40,"votants":38,"blancs":1,"nuls":0,"exp":37,"res":[{"nuance":"DVD","nom":"<NAME>","voix":20},{"nuance":"SOC","nom":"M. <NAME>","voix":17}]} | 90 |
598 | <filename>quill/include/quill/bundled/invoke/invoke.h
/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/invoke.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018-2019, by <NAME... | 2,997 |
921 | // Copyright (c) 2015-2020 <NAME> <<EMAIL>> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.vladsch.md.nav.util;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.function.BiFunction;
public interfac... | 158 |
1,247 | <reponame>CyberFlameGO/pharos
// Copyright 2020 <NAME>. See LICENSE file for terms.
#include <libpharos/options.hpp>
#include <libpharos/descriptors.hpp>
using namespace pharos;
static int partition_main(int argc, char **argv) {
ProgOptVarMap vm = parse_cert_options(
argc, argv, cert_standard_options(),
R... | 326 |
369 | <gh_stars>100-1000
// Copyright (c) 2017-2022, Mudit<NAME>. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include <cstring>
#include "ATStream.hpp"
#include "ATCommon.hpp"
#include <map>
namespace at
{
Result::Code ATStream::parseState(const std::string &state, uint32_t... | 3,767 |
625 | <filename>lib/proto/soupbin3_session.c
#include "libtrading/proto/soupbin3_session.h"
#include "libtrading/buffer.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#define SOUPBIN3_RX_BUFFER_SIZE 4096
struct soupbin3_session *soupbin3_session_new(int sockfd)
{
struct soupbin3_session *self = calloc(1... | 577 |
651 | /******************************************************************************
* Copyright (c) Intel Corporation - All rights reserved. *
* This file is part of the LIBXSMM library. *
* *
... | 724 |
611 | // DejaLu
// Copyright (c) 2015 <NAME>. All rights reserved.
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import <MailCore/MailCore.h>
#import "DJLContactTypes.h"
#define DJLADDRESSBOOKMANAGER_LOADED @"DJLADDRESSBOOKMANAGER_LOADED"
typedef void (^DJLAddAddressCompletionBlock)(NSString * ... | 347 |
711 | /*
* Copyright 2015 JBoss Inc
*
* Licensed under the Aimport io.apiman.gateway.engine.beans.PolicyFailure;
import io.apiman.gateway.engine.beans.PolicyFailureType;
import io.apiman.gateway.engine.components.IPolicyFailureFactoryComponent;
rg/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 466 |
3,710 | #pragma once
static unsigned long closedfolder_buffer[] = {
0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,
0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffcfcfcf,
0xffbfbfbf, 0xffbfbfbf, 0xffefefef, 0xffffffff, 0xffffffff, 0xffefefef,
0xff7f7f7f, 0xff7f7f7f, 0xf... | 34,153 |
11,699 | <reponame>kxxt/taichi
#include <atomic>
#include <cstdio>
#include <vector>
#include <unordered_map>
#include <map>
#include <sys/time.h>
double get_time() {
struct timeval tv;
gettimeofday(&tv, nullptr);
return tv.tv_sec + 1e-6 * tv.tv_usec;
}
int main() {
int n = 1024;
int N = 100000000;
{
std::vect... | 522 |
1,963 | <gh_stars>1000+
#ifdef VIRTIOCON
#include "virtio_config.h"
#include "open-amp/lib/remoteproc/remoteproc_virtio.c"
#endif /* VIRTIOCON */
| 65 |
548 | from datetime import datetime
from django.conf import settings
from django.contrib.sites.models import Site
def site(request):
"""
Adds the current site to the context.
"""
return {'site': Site.objects.get(id=settings.SITE_ID)}
def now(request):
"""
Add current datetime to template context.... | 126 |
663 | # (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import string
import unicodedata
from typing import Dict, Optional
from .trello_users import TrelloUser, TrelloUsers
class GithubTrelloUserMatcher:
"""
Find the Trello user from a Github user u... | 1,078 |
997 | <filename>pdq/php/ext/pdq/impl/pdqhashing.h
// ================================================================
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
// ================================================================
#ifndef PDQHASHING_H
#define PDQHASHING_H
#include "pdqhashtypes.h... | 1,623 |
5,169 | <filename>Specs/2/1/e/MSDKDns/1.2.1/MSDKDns.podspec.json
{
"name": "MSDKDns",
"version": "1.2.1",
"summary": "HTTPDNS C98 iOS SDK.",
"description": "iOS c98 library for HttpDns.",
"homepage": "https://github.com/tencentyun/httpdns-ios-sdk",
"license": {
"type": "Copyright",
"text": "©2015 Tencent.co... | 365 |
14,668 | // Copyright 2018 The Crashpad 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 ... | 10,405 |
2,059 | #if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA))
#error meh!
#endif
GO(gdk_colorspace_get_type, iFv)
GO(gdk_interp_type_get_type, iFv)
GO(gdk_pixbuf_add_alpha, pFpiCCC)
GO(gdk_pixbuf_alpha_mode_get_type, iFv)
//GO(gdk_pixbuf_animation_get_height,
//GO(gdk_pixbuf_animation_get_iter,
//GO(gdk_pixbuf... | 2,578 |
603 | from logging import getLogger
from typing import List, Union
import numpy as np
from sklearn.utils.multiclass import type_of_target
from whylogs.core.statistics import NumberTracker
from whylogs.proto import ScoreMatrixMessage
from whylogs.util.util_functions import encode_to_integers
SUPPORTED_TYPES = ("binary", "m... | 3,140 |
575 | // Copyright (c) 2012 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 ASH_SYSTEM_TRAY_TRAY_ITEM_VIEW_H_
#define ASH_SYSTEM_TRAY_TRAY_ITEM_VIEW_H_
#include <memory>
#include "ash/ash_export.h"
#include "base/mac... | 1,282 |
403 | package io.craft.atom.nio;
import io.craft.atom.io.Channel;
import io.craft.atom.io.IoAcceptor;
import io.craft.atom.io.IoConnector;
import io.craft.atom.nio.api.NioFactory;
import io.craft.atom.test.AvailablePortFinder;
import io.craft.atom.test.CaseCounter;
import java.util.concurrent.Future;
import jun... | 1,449 |
816 | /*
* Copyright 2016-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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | 2,024 |
357 | /* krb5-types.h -- this file was generated for x86_64-unknown-linux-gnu by
$Id$ */
#ifndef __krb5_types_h__
#define __krb5_types_h__
#include <stdint.h>
#include <sys/types.h>
#include "roken.h"
typedef int krb5_socket_t;
#ifndef HEIMDAL_DEPRECATED
#if defined(__GNUC__) && ((__GNUC__ > 3) || ((_... | 589 |
310 | <reponame>Harshitha91/Tmdb-react-native-node
/* Copyright 2003-2020 <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)
*
* See http://www.boost.org/libs/multi_index for library home page.
*/
#ifndef BOOS... | 1,601 |
2,673 | #!/usr/bin/env python3
import warnings
from abc import abstractmethod
from copy import deepcopy
import torch
from torch.nn import ModuleList
from .. import settings
from ..constraints import Positive
from ..lazy import LazyEvaluatedKernelTensor, ZeroLazyTensor, delazify, lazify
from ..models import exact_prediction_... | 9,564 |
371 |
package com.baoying.enginex.executor.system.model;
import java.io.Serializable;
import java.util.Date;
public class SysOrganization implements Serializable {
private static final long serialVersionUID = -1L;
private long id;//组织编号
private String name;//组织名称
private String code;//组织代号
priv... | 700 |
1,141 | <filename>EHenTaiViewer/QJViewController.h
//
// QJViewController.h
// EHenTaiViewer
//
// Created by QinJ on 2017/5/18.
// Copyright © 2017年 kayanouriko. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface QJViewController : UIViewController
//是否为刷新状态
- (BOOL)isShowFreshingStatus;
//显示菊花
- (void)showFres... | 210 |
5,169 | <filename>Specs/1/9/7/KeyPathTesting/0.1.4/KeyPathTesting.podspec.json
{
"name": "KeyPathTesting",
"version": "0.1.4",
"summary": "KeyPathTesting is a framework that leverages Result Builders to implement a new syntax that allows developers to write KeyPath-based unit tests",
"description": "KeyPathTesting is a... | 505 |
1,545 | /**
* 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,536 |
310 | <filename>framework/webapp/src/com/ilscipio/scipio/ce/webapp/ftl/context/MultiVarMethod.java
package com.ilscipio.scipio.ce.webapp.ftl.context;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest... | 5,029 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-27gm-ghr9-4v95",
"modified": "2021-10-08T21:26:37Z",
"published": "2020-01-30T21:22:15Z",
"aliases": [
],
"summary": "Cross-site scripting vulnerability in TinyMCE",
"details": "### Impact\nA cross-site scripting (XSS) vulnerability was discovered in: the core p... | 1,176 |
1,139 | package com.journaldev.androidfingerprintapi;
import android.app.KeyguardManager;
import android.content.Context;
import android.content.Intent;
import android.hardware.fingerprint.FingerprintManager;
import android.os.Bundle;
import android.security.keystore.KeyGenParameterSpec;
import android.security.keystore.KeyPe... | 2,952 |
386 | <filename>bus-image/src/main/java/org/aoju/bus/image/nimble/codec/ExtMemoryOutputStream.java
/*********************************************************************************
* *
* The MIT License (MIT) ... | 1,905 |
4,013 | from checkov.common.models.enums import CheckResult, CheckCategories
from checkov.cloudformation.checks.resource.base_resource_value_check import BaseResourceValueCheck
class CloudtrailMultiRegion(BaseResourceValueCheck):
def __init__(self):
name = "Ensure CloudTrail is enabled in all Regions"
id ... | 229 |
330 | package com.alphawallet.app.ui.widget.entity;
import android.widget.Filter;
import com.alphawallet.app.ui.widget.adapter.DappBrowserSuggestionsAdapter;
import java.util.ArrayList;
import java.util.List;
import com.alphawallet.app.entity.DApp;
public class SuggestionsFilter extends Filter {
private DappBrowserS... | 641 |
5,169 | <reponame>Gantios/Specs<filename>Specs/1/8/9/ZModalVC/0.3.2/ZModalVC.podspec.json
{
"name": "ZModalVC",
"version": "0.3.2",
"summary": "Awesome library to do stuff",
"description": "Description test. I' writing a long sentence to be sure lib lint will accept it",
"homepage": "https://github.com/xxZap/ZModalVC... | 283 |
575 | <gh_stars>100-1000
// 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.
#include "chrome/browser/lite_video/lite_video_hint.h"
#include "base/time/time.h"
#include "chrome/browser/lite_video/lite_video_feat... | 982 |
4,054 | <filename>security-utils/src/test/resources/transport-security-options-with-disable-hostname-validation-set-to-false.json
{
"files": {
"private-key": "myhost.key",
"ca-certificates": "my_cas.pem",
"certificates": "certs.pem"
}
} | 100 |
579 | #!/usr/bin/env python
# -*-coding:utf-8-*-
# @Time : 2020/1/7
# @Author : <NAME>
from apps.app import celery, app
from apps.init_core_module import init_core_module
"""
celery worker main
Don't del 'celery' obj
"""
init_core_module(
app=app
)
| 101 |
377 | <reponame>MC-JY/inception
/*
* Licensed to the Technische Universität Darmstadt under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Technische Universität Darmstadt
* licenses this file to you under ... | 484 |
5,964 | // 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.
#include "config.h"
#include "modules/vr/VRController.h"
#include "core/frame/LocalFrame.h"
#include "platform/RuntimeEnabledFeatures.h"
namespace blink... | 663 |
341 | package agency.tango.android.avatarview;
import android.support.annotation.NonNull;
import agency.tango.android.avatarview.views.AvatarView;
public interface IImageLoader {
void loadImage(@NonNull AvatarView avatarView, @NonNull AvatarPlaceholder avatarPlaceholder, String avatarUrl);
void loadImage(@NonNull... | 138 |
762 | <gh_stars>100-1000
"""Benchmark using opencv's VideoCapture"""
import time
import random
import numpy as np
import av
import argparse
import warnings
import numpy as np
import pims
import cv2
parser = argparse.ArgumentParser("PyAV benchmark")
parser.add_argument('--file', type=str, default='/tmp/testsrc_h264_100s_defa... | 868 |
8,271 | <filename>src/test/resources/samples/langs/C/rfc_string.h
/**
** Copyright (c) 2011-2012, <NAME>
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
** 1. Redistributions of source code must retain ... | 32,073 |
321 | <reponame>AppSecAI-TEST/qalingo-engine
/**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENSE-2.0
*
* Copyright (c) Hoteia, 2012-2014
* http://www.hoteia.com ... | 4,021 |
485 | <filename>internalblue/fw/fw_0x21a9.py
# fw_default.py
#
# Generic firmware file in case we do not know something...
#
# Copyright (c) 2020 The InternalBlue Team. (MIT License)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "So... | 621 |
575 | <reponame>Ron423c/chromium
// 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.
#include "chrome/browser/metrics/usage_scenario/tab_usage_scenario_tracker.h"
#include "base/containers/contains.h"
#include "... | 4,084 |
707 | <gh_stars>100-1000
// 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.
package edu.wpi.first.hal.simulation;
import edu.wpi.first.hal.JNIWrapper;
public class AnalogInDat... | 893 |
852 | #include "GeneratorInterface/ReggeGribovPartonMCInterface/interface/ReggeGribovPartonMC.h"
| 31 |
1,694 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import "MMRefreshTableFooterView.h"
@class UIActivityIndicatorView, UILabel;
@interface EmoticonStoreFootView : MMRefreshTableFooterView
{... | 365 |
21,382 | #include <sstream>
#include "metrics/stats_reporter.h"
#include "metrics/streaming_perf_metric.h"
#include "util/streaming_logging.h"
namespace ray {
namespace streaming {
bool StreamingReporter::Start(const StreamingMetricsConfig &conf) {
if (impl_) {
STREAMING_LOG(WARNING) << "Streaming perf is active";
} ... | 1,277 |
3,603 | <reponame>WeDoSoftware/trino<filename>core/trino-main/src/test/java/io/trino/connector/MockConnectorEntities.java
/*
* 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.apac... | 1,722 |
777 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_THUMBNAILS_THUMBNAIL_TAB_HELPER_H_
#define CHROME_BROWSER_THUMBNAILS_THUMBNAIL_TAB_HELPER_H_
#include "base/macros.h"
#include... | 876 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.