max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
666 | /**
*
* Copyright 2018 iQIYI.com
*
* 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... | 676 |
1,109 | from twisted.python import log
from gryphon.data_service.pollers.volume.volume_poller import VolumePoller
class OkcoinVolume(VolumePoller):
def __init__(self):
self.exchange_name = u'OKCOIN_BTC_USD'
self.url = 'https://www.okcoin.com/api/v1/ticker.do?symbol=ltc_usd'
def parse_volume_json(sel... | 211 |
14,668 | <filename>ppapi/c/private/ppb_isolated_file_system_private.h<gh_stars>1000+
/* Copyright 2013 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* From private/ppb_isolated_file_system_private.idl,
* modified Fri No... | 985 |
12,278 | <filename>3rdParty/boost/1.71.0/libs/vmd/test/test_cmake/main.cpp
#include <boost/vmd/vmd.hpp>
int main() {
} | 55 |
1,633 | <filename>KJFrame/demo/src/main/java/org/kymjs/kjframe/demo/WidgetActivity.java
package org.kymjs.kjframe.demo;
import android.view.View;
import android.widget.Button;
import org.kymjs.kjframe.KJActivity;
import org.kymjs.kjframe.demo.widget.KJSlidingMenuDemo;
import org.kymjs.kjframe.ui.BindView;
import org.kymjs.kj... | 861 |
1,374 | package def.dom;
@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class})
public class SVGFECompositeElement extends SVGElement {
public SVGAnimatedString in1;
public SVGAnimatedString in2;
public SVGAnimatedNumber k1;
public SVGAnimatedNumber k2;
public SVGAnimatedNumber k3;
public SV... | 433 |
45,293 | // 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.
package org.jetbrains.kotlin.js.backend.ast;
import org.jetbrains.annotations.NotNull;
public final c... | 468 |
486 | //
// Copyright (C) 2019 Microsoft. All rights reserved.
// See LICENSE file in the project root for full license information.
//
// This is a helper file for the samples. Includes useful RAII wrappers, flow control
// macros and other common functions used by the samples.
#include <codecvt>
#include <strin... | 3,674 |
355 | <filename>common/src/main/java/com/twitter/ambrose/model/WorkflowId.java
package com.twitter.ambrose.model;
/**
* WorkflowId sent to the client is a composite of a bunch of information required to later fetch
* the DAG and events.
*/
public final class WorkflowId {
public static WorkflowId parseString(String work... | 519 |
868 | /*
* 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 n... | 1,473 |
2,110 | # SPDX-License-Identifier: Apache-2.0
# Copyright 2020 igo95862
# 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 ... | 230 |
595 | <reponame>gueux/openduty<gh_stars>100-1000
import requests
class RocketNotifier:
def notify(self, notification):
try:
payload = {
"text": notification.message
}
response = requests.post(notification.user_to_notify.profile.rocket_webhook_ur... | 299 |
763 | <reponame>zabrewer/batfish
package org.batfish.representation.cisco_nxos;
/** A {@link RouteMapSet} that sets the tag of a route. */
public final class RouteMapSetTag implements RouteMapSet {
private final long _tag;
public RouteMapSetTag(long tag) {
_tag = tag;
}
@Override
public <T> T accept(RouteMa... | 159 |
872 | """
Premium Question
https://leetcode.com/problems/palindrome-permutation-ii/
"""
from collections import defaultdict
__author__ = 'Daniel'
class Solution(object):
def generatePalindromes(self, s):
"""
:type s: str
:rtype: List[str]
"""
m = defaultdict(int)
for c ... | 674 |
582 | /*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | 2,309 |
1,997 | /*
* Copyright 2021 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 "license" fil... | 865 |
523 | <reponame>q4a/Taskbar
/* Copyright 2020 <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... | 2,945 |
678 | <filename>iOSOpenDev/frameworks/iPodUI.framework/Headers/IUCompilationsDataSource.h<gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iPodUI.framework/iPodUI
*/
#import <iPodUI/IUAlbumsDataSource.h>
@interface IUCompilationsDataSource : IUAlbumsD... | 191 |
361 | #include "voxgraph/backend/node/node.h"
namespace voxgraph {
void Node::addToProblem(ceres::Problem* problem,
ceres::LocalParameterization* local_parameterization) {
CHECK_NOTNULL(problem);
CHECK_NOTNULL(local_parameterization);
// Add the node to the solver and set it to be held constan... | 303 |
3,682 | import pytest
import football_pandas as fb
@pytest.fixture
def mock_csv_file(tmp_path):
mock_csv_data = [
"Team,Games,Wins,Losses,Draws,Goals For,Goals Against",
"Liverpool FC, 38, 32, 3, 3, 85, 33",
"Norwich City FC, 38, 5, 27, 6, 26, 75",
]
datafile = tmp_path / "football.csv"
... | 609 |
1,540 | package testhelper;
import java.lang.management.ManagementFactory;
import java.lang.management.ThreadMXBean;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class PerformanceUtils {
private static final ThreadMXBean THREAD_MX_BEAN = ManagementFactory.getThreadMXBean();
... | 633 |
416 | //
// GKLocalPlayer.h
// Game Center
//
// Copyright 2010-2021 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <GameKit/GKPlayer.h>
#import <GameKit/GKDefines.h>
#import <GameKit/GKEventListener.h>
#import <GameKit/GKTurnBasedMatch.h>
#import <GameKit/GKMatchmaker.h>
#import <GameKit/GK... | 2,691 |
984 | <reponame>om-sharma/java-driver
/*
* 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 ap... | 3,770 |
2,952 | <filename>hoomd/extern/cereal/sandbox/sandbox_shared_lib/derived.cpp
#ifndef CEREAL_DLL_USE
#define CEREAL_DLL_MAKE
#endif
#include "derived.hpp"
template void Derived::serialize<cereal::XMLOutputArchive>
( cereal::XMLOutputArchive & ar, std::uint32_t const version );
template void Derived::serialize<cereal::XMLI... | 150 |
3,967 | // Copyright (c) 2021, NVIDIA CORPORATION & 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 of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unl... | 688 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-f6mq-9vj5-5r82",
"modified": "2022-05-13T01:31:56Z",
"published": "2022-05-13T01:31:56Z",
"aliases": [
"CVE-2018-6690"
],
"details": "Accessing, modifying, or executing executable files vulnerability in Microsoft Windows client in McAfee Application and Change ... | 498 |
847 | /*
* speaker.c
*
* PC speaker/buzzer control.
*
* Written & released by <NAME> <<EMAIL>>
*
* This is free and unencumbered software released into the public domain.
* See the file COPYING for more details, or visit <http://unlicense.org>.
*/
/* JPB: PA2 */
#define gpio_spk gpioa
#define pin_spk 2
static st... | 645 |
1,695 | <reponame>gautamkmr/caffe2<filename>third_party/NNPACK/src/psimd/fft-real.c
#include <psimd/fft/real.h>
void nnp_fft8_4real__psimd(
const float t[restrict static 32],
float f[restrict static 32])
{
psimd_fft8_real_f32(
t, t + 16, 4, 0, 8,
f, 4);
}
void nnp_fft16_4real__psimd(
const float t[restrict static 64... | 1,079 |
804 | <gh_stars>100-1000
package com.github.liuweijw.business.pay.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
i... | 382 |
778 | //--------------------------------------------------------------------------------------------------------------------//
// //
// Tuplex: Blazing Fast Python Data Scien... | 1,390 |
2,120 | #ifndef LIGHT_H
#define LIGHT_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @Param
* red, green, blue in that order
*
* @Returns
* none
*
* @Description
* Lights up the RGB LED. This method takes around 61.5 us to finish.
*
* @Example
* Light_RGB(255, 0, 0... | 223 |
1,036 | package com.mylhyl.circledialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
import androidx.fragment.app.F... | 2,477 |
14,922 | <filename>ex_demos/nuklear_gui/external/Nuklear/src/nuklear_scrollbar.c
#include "nuklear.h"
#include "nuklear_internal.h"
/* ===============================================================
*
* SCROLLBAR
*
* ===============================================================*/
NK_LIB float... | 4,983 |
356 | <gh_stars>100-1000
/*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 5,339 |
665 | #
# python_converters_test.py
# <NAME> - 10 mars 2015
# This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
#
import py_conv_test_module as Tester
import unittest
tester = Tester.Tester()
class PythonConverterTest(unittest.TestCase):
def test_string(self):
val = "I am a STRINGGG"... | 746 |
328 | <gh_stars>100-1000
# Copyright 2021 The BladeDISC 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... | 3,611 |
5,616 | /*
* 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 ... | 510 |
591 | /*
* ========================= ShaderProgram.h ==========================
* -- tpr --
* CREATE -- 2018.11.21
* MODIFY --
* ----------------------------------------------------------
* 着色器程序 类
* -------------... | 1,236 |
347 | #include "stdafx.h"
#include "NetUtils.h"
// reply of the requery
UPEXPORT_CFUNC(size_t) req_reply(void *ptr, size_t size, size_t nmemb, void *stream)
{
string *str = (string*)stream;
(*str).append((char*)ptr, size*nmemb);
return size * nmemb;
}
// http GET
UPEXPORT_CFUNC(CURLcode) curl_get_req(const string &url, ... | 1,059 |
345 | import os
import os.path
import re
import unittest
from programy.mappings.denormal import DenormalCollection
from programy.storage.entities.store import Store
class DenormalStoreAsserts(unittest.TestCase):
def assert_lookup_storage(self, store):
store.empty()
store.add_to_lookup(" dot com ",".c... | 1,601 |
628 | <reponame>mjtitchener-fn/OpenColorIO
// SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
#include "ops/exposurecontrast/ExposureContrastOpData.cpp"
#include "testutils/UnitTest.h"
namespace OCIO = OCIO_NAMESPACE;
OCIO_ADD_TEST(ExposureContrastOpData, style)
{
OCIO::E... | 5,965 |
14,668 | // 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 CC_PAINT_IMAGE_ID_H_
#define CC_PAINT_IMAGE_ID_H_
#include <stdint.h>
#include "base/containers/flat_set.h"
#include "cc/paint/paint_image.h"
n... | 170 |
921 | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011-2014, <NAME>, Inc.
* Copyright (c) 2014-2016, Open Source Robotics Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... | 18,182 |
337 | <gh_stars>100-1000
package net.webservicex.test;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import org.junit.Test;
import junit.framework.Assert;
import net.webservicex.GetWeather;
public class JAXBContextTest {
public static final String CONTEXT_PATH = GetWeather.class.getPackage().g... | 214 |
3,453 | <gh_stars>1000+
from .backprop import GradxInputExplainer
import types
import torch.nn.functional as F
from torch.autograd import Variable
# Based on formulation in DeepExplain, https://arxiv.org/abs/1711.06104
# https://github.com/marcoancona/DeepExplain/blob/master/deepexplain/tensorflow/methods.py#L221-L272
class D... | 1,402 |
9,182 | // ======================================================================
// \title CFDP/Checksum/GTest/Checksums.cpp
// \author bocchino
// \brief cpp file for CFDP Checksum gtest utilities
//
// \copyright
// Copyright (C) 2016, California Institute of Technology.
// ALL RIGHTS RESERVED. United States Government ... | 266 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 3,474 |
988 | /*
* PROGRAM: Windows NT installation utilities
* MODULE: servi_proto.h
* DESCRIPTION: Prototypes for NT service functions
*
* The contents of this file are subject to the Interbase Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a ... | 709 |
458 | <filename>examples/crud/src/Crud.h
/*
* Copyright 2016 <NAME> <<EMAIL>>
*
* 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... | 856 |
622 | <filename>regtests/threads/call_from_worker_blocking.py
'''call function from main and get result'''
import threading
from time import sleep
shared = []
def blocking_func(x,y):
shared.append( x )
shared.append( y )
return x+y
def async_func( a ):
shared.append( a )
def main():
w = threading.start_webworker( wo... | 250 |
6,098 | package water.clustering.api;
import fi.iki.elonen.NanoHTTPD;
import fi.iki.elonen.router.RouterNanoHTTPD;
import org.apache.log4j.Logger;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.co... | 1,526 |
930 | <filename>pigeon-remoting/src/main/java/com/dianping/pigeon/remoting/invoker/route/RouteManager.java
/**
* Dianping.com Inc.
* Copyright (c) 2003-2013 All Rights Reserved.
*/
package com.dianping.pigeon.remoting.invoker.route;
import java.util.List;
import com.dianping.pigeon.remoting.common.domain.InvocationReque... | 234 |
796 | /*
* Copyright (C) 2015-2019 Uber Technologies, Inc. (<EMAIL>)
*
* 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 requi... | 1,705 |
1,602 | <filename>third-party/qthread/qthread-src/src/syscalls/accept.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
/* System Headers */
#include <qthread/qthread-int.h> /* for uint64_t */
#ifdef HAVE_SYS_SYSCALL_H
# include <unistd.h>
# include <sys/syscall.h> /* for SYS_accept and others */
#endif
/* Public He... | 809 |
371 | <reponame>CornellNLP/Cornell-Conversational-Analysis-Toolkit
import json
import os
import re
from itertools import chain
import pkg_resources
from collections import defaultdict
from typing import Dict, List, Tuple, Set, Optional
from convokit.politeness_collections.marker_utils import load_ngram_markers, extract_ngr... | 2,244 |
9,782 | <reponame>willianfonseca/presto
/*
* 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 i... | 8,780 |
585 | <filename>caffe2/operators/generate_proposals_op_util_boxes.h
/**
* Copyright (c) 2016-present, Facebook, 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... | 2,245 |
778 | package org.aion.evtmgr.impl.evt;
import org.aion.evtmgr.IEvent;
import org.aion.evtmgr.impl.abs.AbstractEvent;
/** @author jay */
public class EventMiner extends AbstractEvent implements IEvent {
private int callback = -1;
public static final int EVTTYPE = TYPE.MINER0.getValue();
public enum CALLBACK ... | 646 |
457 | package io.agora.framework.modules.consumers;
import android.opengl.GLES20;
import android.util.Log;
import android.view.Surface;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import io.agora.capture.video.camera.VideoCaptureFrame;
import io.agora.capture.video.camera.VideoModule;
import io.agor... | 775 |
591 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 4,128 |
2,338 | """
Test 'breakpoint command list'.
"""
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class TestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
@no_debug_info_test
def test_list_commands(self):
src_dir = self.getSourceD... | 601 |
1,727 | package structures;
public class BinarySearchTree {
Node root;
static class Node {
int key;
int value;
Node l;
Node r;
Node p;
public Node(int key, int value, Node p) {
this.key = key;
this.value = value;
this.p = p;
... | 1,412 |
3,931 | /*
* This file is part of dependency-check-core.
*
* 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 ... | 892 |
347 | package org.ovirt.engine.core.utils.serialization.json;
import java.util.Set;
import org.ovirt.engine.core.common.businessentities.Cluster;
import org.ovirt.engine.core.common.businessentities.VmRngDevice;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
@Sup... | 205 |
945 | /*
* 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,798 |
980 | <filename>src/main/java/org/jcodec/containers/mkv/boxes/EbmlBase.java
package org.jcodec.containers.mkv.boxes;
import org.jcodec.common.UsedViaReflection;
import org.jcodec.common.io.SeekableByteChannel;
import org.jcodec.containers.mkv.MKVType;
import org.jcodec.containers.mkv.util.EbmlUtil;
import org.jcodec.platform... | 506 |
646 | <filename>Source/HeliumRain/UI/HUD/FlareWeaponStatus.cpp
#include "HeliumRain/UI/HUD/FlareWeaponStatus.h"
#include "../../Flare.h"
#include "../Components/FlareRoundButton.h"
#include "../../Spacecrafts/FlareWeapon.h"
#include "../../Spacecrafts/FlareSpacecraft.h"
#include "../../Player/FlarePlayerController.h"
#inclu... | 1,792 |
1,260 | /*
Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 1,733 |
10,225 | <reponame>PieterjanDeconinck/quarkus
package io.quarkus.it.main;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import io.quarkus.runtime.LaunchMode;
import io.quarkus.runtime.configuration.ProfileManager;
im... | 1,387 |
310 | """
Copyright (c) 2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 323 |
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.
// ------------------------------------------------------------
#pragma once
#include "Replica... | 2,358 |
466 | <reponame>hsyuan/gporca
#!/usr/bin/env python
import subprocess
import sys
from packaging import version
if __name__ == "__main__":
cmd = subprocess.Popen(['env', 'GIT_DIR=orca_src/.git', 'git', 'describe', '--abbrev=0', '--tags'], stdout=subprocess.PIPE)
existing_tag = cmd.stdout.read()
print ("Latest Tag of O... | 326 |
365 | package com.blackcat.currencyedittexttester;
import android.annotation.SuppressLint;
import android.os.Build;
import com.blackcat.currencyedittext.CurrencyEditText;
import com.mnw.dataset.DataSet;
import com.mnw.dataset.DataSetRule;
import com.mnw.dataset.InvalidDataSetException;
import com.mnw.dataset.SimpleTestVect... | 3,116 |
1,350 | <filename>sdk/resourcemanager/azure-resourcemanager-sql/src/main/java/com/azure/resourcemanager/sql/models/LongTermRetentionDatabaseState.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.re... | 484 |
777 | <gh_stars>100-1000
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MOJO_EDK_SYSTEM_WATCHER_H_
#define MOJO_EDK_SYSTEM_WATCHER_H_
#include "base/callback.h"
#include "base/macros.h"
#include "ba... | 1,033 |
14,668 | // 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.
#include "components/feature_engagement/internal/condition_validator.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace feature_engagement {
T... | 988 |
15,179 | <reponame>Rohitpandit021/jina
import sys
import pytest
from jina import Document
from jina.clients.request import request_generator
from jina.proto import jina_pb2
from jina.types.message import Message
from jina.types.request import _trigger_fields, Request
from jina.enums import CompressAlgo
from tests import rando... | 3,137 |
672 | /*
* spawn_persona.c
* Use new POSIX spawn attributes to create a new process in a persona
*
* <NAME> <<EMAIL>>
*
*/
#include <ctype.h>
#include <err.h>
#include <errno.h>
#include <inttypes.h>
#include <libgen.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
... | 4,201 |
764 | <reponame>641589523/token-profile
{"symbol": "MQL","address": "0x428dc22668E6F3468273634067e5545ED5417A3E","overview":{"en": ""},"email": "","website": "https://miraqle.io/","state": "NORMAL","links": {"blog": "https://blog.naver.com/msqplus","twitter": "https://twitter.com/MIRAQLE_MQL","telegram": "","github": ""}} | 126 |
1,540 | package test.dataprovider;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
public class BooleanDataProviderSample {
@Test(dataProvider = "allBooleans")
public void doStuff(boolean t) {}
@DataProvider(name = "allBooleans")
public Object[][] createData() {
return new Object... | 123 |
4,370 | <reponame>rustedwizard/BosqueLanguage<gh_stars>1000+
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//----... | 4,056 |
4,036 | <gh_stars>1000+
// Generated automatically from javax.servlet.DispatcherType for testing purposes
package javax.servlet;
public enum DispatcherType
{
ASYNC, ERROR, FORWARD, INCLUDE, REQUEST;
private DispatcherType() {}
}
| 82 |
72,551 | <reponame>lwhsu/swift
#include "has_warning.h"
| 22 |
369 | /** @file
@brief Header
@date 2016
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2016 Sensics, 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 a... | 1,555 |
14,425 | /**
* 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 n... | 1,251 |
379 | package com.oim.fx.v1.view;
import java.util.ArrayList;
import java.util.List;
import com.oim.core.business.controller.PersonalController;
import com.oim.core.business.manager.HeadImageManager;
import com.oim.core.business.module.SystemModule;
import com.oim.core.business.view.LoginView;
import com.oim.core.business.... | 2,727 |
565 | <gh_stars>100-1000
#pragma once
#include <fstream>
#include <string>
#include "base/not_null.hpp"
namespace principia {
namespace base {
namespace internal_get_line {
// Recursively reads a line of arbitrary length.
std::string GetLine(std::ifstream& stream);
} // namespace internal_get_line
using internal_get... | 148 |
3,012 | /** @file
Header file for the SmbiosMisc Driver.
Based on files under Nt32Pkg/MiscSubClassPlatformDxe/
Copyright (c) 2021, NUVIA Inc. All rights reserved.<BR>
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2015, Hisilicon Limited. All rights reserved.<BR>
Copy... | 1,622 |
315 | # skateboard.py
# DIY Electric Skateboard
# Created by <NAME>, The Raspberry Pi Guy
# <NAME> assisted with the development of this program - if I die, it is his fault.
import pigpio
import time
import cwiid
import sys
import threading
import subprocess
pi = pigpio.pi()
is_debug = "debug" in sys.argv
# Global constan... | 2,178 |
1,133 | <gh_stars>1000+
/*
Copyright 2015 <NAME> L.P.
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,674 |
15,577 | <reponame>pdv-ru/ClickHouse
#include <Processors/Formats/Impl/NullFormat.h>
#include <Formats/FormatFactory.h>
#include <IO/WriteBuffer.h>
namespace DB
{
WriteBuffer NullOutputFormat::empty_buffer(nullptr, 0);
void registerOutputFormatNull(FormatFactory & factory)
{
factory.registerOutputFormat("Null", [](
... | 196 |
2,634 | package com.laifeng.sopcastsdk.stream.sender;
/**
* @Title: Sender
* @Package com.laifeng.sopcastsdk.stream.sender.rtmp
* @Description:
* @Author Jim
* @Date 16/9/14
* @Time 上午11:25
* @Version
*/
public interface Sender {
void start();
void onData(byte[] data, int type);
void stop();
}
| 125 |
4,095 | /*
* Copyright 2020-2021 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/LICENSE-2.0
*
* Unless required by a... | 1,647 |
1,671 | <filename>ambry-frontend/src/test/java/com/github/ambry/frontend/UndeleteHandlerTest.java
/*
* Copyright 2020 LinkedIn Corp. 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 Lic... | 4,346 |
2,661 | <gh_stars>1000+
/*
* 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 ... | 422 |
1,402 | <filename>gtsam/nonlinear/ISAM2.cpp
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: <NAME>, et al. (see THANKS for the full author list)
* See LICENSE for the ... | 11,630 |
384 | <reponame>hejamu/gromacs
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2015,2016,2017,2018,2019,2020,2021, by the GROMACS development team, led by
* <NAME>, <NAME>, <NAME>, and <NAME>,
* and including many others, as listed in the AUTHORS file in the
* top-level source dire... | 8,407 |
794 | <gh_stars>100-1000
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | 2,845 |
746 | <reponame>VishalS711/protege
package org.protege.editor.owl.ui.hierarchy.creation;
import org.protege.editor.core.ProtegeManager;
import org.protege.editor.core.ui.wizard.Wizard;
import org.protege.editor.core.util.Recommendation;
import org.protege.editor.owl.OWLEditorKit;
import org.semanticweb.owlapi.model.EntityTy... | 1,382 |
1,087 | /*
* Copyright 2014-2015 <NAME>. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
// Resource headers.
//-----
#ifdef SR_INCLUDE
#include "res/sphere.h"
#include "res/sphereSurfaceTex.h"
#include "res/loading_screen.h"
#include "res/sun_icon.h"
#include "res/lo... | 740 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.