max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,165 | <filename>jobs/pacman-rule-engine-2.0/src/main/java/com/tmobile/pacman/executor/MultiThreadedRuleRunner.java
/*******************************************************************************
* Copyright 2018 T Mobile, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the... | 7,391 |
1,040 | //-----------------------------------------------------------------------------
// File: KeybdBuf.h
//
// Desc: Header file for for DirectInput sample
//
// Copyright (c) 1997-1999 Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
#ifndef KEYBD_... | 222 |
4,606 | import sys
from contextlib import contextmanager
from dagster import lambda_solid, pipeline, repository
from dagster.api.snapshot_repository import sync_get_streaming_external_repositories_data_grpc
from dagster.core.host_representation import (
ExternalRepositoryData,
ManagedGrpcPythonEnvRepositoryLocationOri... | 918 |
2,177 | <filename>src/org/nutz/dao/impl/jdbc/psql/PsqlJsonAdaptor.java
package org.nutz.dao.impl.jdbc.psql;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import org.nutz.dao.jdbc.ValueAdaptor;
import org.nutz.json.Json;
import org.nutz.json.JsonFormat;
/**... | 1,154 |
769 | <gh_stars>100-1000
/**
* Copyright 2014 the original author or authors.
*
* Licensed under the Baidu company (the "License");
* you may not use this file except in compliance with the License.
*
*/
package com.baidu.bjf.remoting.protobuf.complex;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
/**
... | 275 |
1,545 | <filename>pint/util.py
"""
pint.util
~~~~~~~~~
Miscellaneous functions for pint.
:copyright: 2016 by Pint Authors, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import annotations
import logging
import math
import operator
import re
from collectio... | 13,069 |
1,355 | // Copyright (c) 2018 <NAME>
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "fmm_level_set_solver.h"
#include "pybind11_utils.h"
#include <jet/fmm_level_set_solver2.h>
#incl... | 3,524 |
852 | <filename>GeneratorInterface/PomwigInterface/test/SDDijetsAnalyzer.cc<gh_stars>100-1000
////////// Header section /////////////////////////////////////////////
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "TH1F.h"
class SDDijetsAnalyzer : public ed... | 3,609 |
1,303 | #include "sp/sp.h"
#include "sp/system/MemoryManager.h"
#include <Windows.h>
namespace sp { namespace internal {
SystemMemoryInfo MemoryManager::GetSystemInfo()
{
MEMORYSTATUSEX status;
status.dwLength = sizeof(MEMORYSTATUSEX);
GlobalMemoryStatusEx(&status);
SystemMemoryInfo result =
{
(int64)status.... | 180 |
1,144 | <gh_stars>1000+
/*
* #%L
* de-metas-common-rest_api
* %%
* Copyright (C) 2021 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
* License, or (at y... | 650 |
1,056 | <reponame>timfel/netbeans
/*
* 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.... | 858 |
682 | <filename>java/identify-graphics/README.metadata.json
{
"category": "Search and Query",
"description": "Display an alert message when a graphic is tapped.",
"formal_name": "IdentifyGraphics",
"ignore": false,
"images": [
"identify-graphics.png"
],
"keywords": [
"graphics",
... | 312 |
739 | <gh_stars>100-1000
{
"name": "<NAME>",
"img": "https://avatars.githubusercontent.com/u/56041462?v=4",
"email":"",
"links": {
"website": "https://isiaka-abdulahi-new-portfolio.netlify.app/",
"linkedin": "https://www.linkedin.com/in/isiaka-abdulahi-1bb16514a/",
"github": "https://github.co... | 233 |
1,330 | /*
* Copyright 2002-2008 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... | 408 |
507 | """
Test for Github issue 26: Problem when using resource in a loop
https://github.com/mjuenema/python-terrascript/issues/26
"""
import terrascript
import terrascript.provider.DataDog.datadog
import terrascript.resource.DataDog.datadog
def test_issue_26():
for name in ["first", "second", "third"]:
ts ... | 375 |
1,014 | <filename>Database/Equities/Countries/Indonesia/Industries/Rental & Leasing Services.json
{
"ASSA.JK": {
"short_name": "<NAME>ada Tbk.",
"long_name": "PT Adi Sarana Armada Tbk",
"summary": "PT Adi Sarana Armada Tbk operates as a transportation service company in Indonesia. The company pr... | 1,665 |
453 | <reponame>nirenr/AndroLua-
#include <lua.h>
#include <lauxlib.h>
int lsha1(lua_State *L);
int lhmac_sha1(lua_State *L);
| 60 |
14,668 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_INVALIDATION_IMPL_FCM_NETWORK_HANDLER_H_
#define COMPONENTS_INVALIDATION_IMPL_FCM_NETWORK_HANDLER_H_
#include "base/memory/raw_ptr.h"
... | 1,653 |
1,351 | <filename>plugins/experimental/slice/slice_test.cc
/** @file
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... | 2,403 |
938 | <filename>src/generated/resources/data/tconstruct/recipes/tools/modifiers/tasty.json
{
"type": "tconstruct:modifier_repair",
"modifier": "tconstruct:tasty",
"ingredient": {
"item": "tconstruct:bacon"
},
"repair_amount": 25
} | 90 |
362 | <gh_stars>100-1000
import os
import subprocess
import sys
from typing import Dict, List, Union
import numpy as np
from api_inference_community.normalizers import speaker_diarization_normalize
from app.pipelines import Pipeline
from huggingface_hub import snapshot_download
class SpeechSegmentationPipeline(Pipeline):
... | 950 |
376 | <filename>Lib/Chip/Unknown/Spansion/MB9BF52xT/DAC.hpp
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
// peripheral DAC
namespace DacDadr0{ ///< register DADR0
using Addr = Register::Address<0x40028000,0xfffffc00,0x00000000,unsigned>;
/// bitfield DA9
constexpr Registe... | 1,518 |
420 | <filename>relay/src/main/java/com/ubergeek42/weechat/relay/protocol/Infolist.java
/*******************************************************************************
* Copyright 2012 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... | 939 |
903 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 1,757 |
2,045 | <reponame>ikervazquezlopez/Pylearn2<gh_stars>1000+
from __future__ import print_function
import time
import warnings
import theano
import theano.tensor as TT
import numpy
from theano.compat.six.moves import xrange
from .linesearch import scalar_armijo_search
from .linesearch import scalar_search_wolfe2
def line_sea... | 3,370 |
587 | /*
** SPDX-License-Identifier: BSD-3-Clause
** Copyright Contributors to the OpenEXR Project.
*/
#ifndef OPENEXR_ATTR_STRING_H
#define OPENEXR_ATTR_STRING_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @addtogroup InternalAttributeFunctions
* @{
*/
/** Initializes storage for a string of the provided length
*
... | 849 |
634 | /*
* Copyright 2000-2011 JetBrains s.r.o.
*
* 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 agre... | 544 |
579 | <reponame>charles-lunarg/VulkanTools
/*
* Copyright (c) 2020-2021 Valve Corporation
* Copyright (c) 2020-2021 LunarG, 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:... | 10,825 |
1,108 | """
raven.contrib.webpy
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2013 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
import sys
import web
from raven.conf import setup_logging
from raven.handlers.logging import SentryHandler
from ... | 872 |
1,405 | package tms;
import com.tencent.tmsecure.module.aresengine.FilterResult;
import com.tencent.tmsecure.module.aresengine.ISmsDao;
import com.tencent.tmsecure.module.aresengine.SmsEntity;
import tms.bs;
/* access modifiers changed from: package-private */
public final class bt implements Runnable {
final /* syntheti... | 311 |
575 | <reponame>Ron423c/chromium<filename>components/payments/content/payment_handler_host.h
// 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_PAYMENTS_CONTENT_PAYMENT_HANDLER_HOST_H_
#define... | 1,808 |
486 | <filename>java/de/jflex/migration/unicodedatatest/build_defs.bzl
KNOWN_VERSIONS = ((1, 1), (2, 0), (2, 1), (3, 0), (3, 1), (3, 2), (4, 0), (4, 1), (5, 0), (5, 1), (5, 2), (6, 0), (6, 1), (6, 2), (6, 3), (7, 0), (8, 0), (9, 0), (10, 0), (11, 0), (12, 0), (12, 1))
def gen_build(name, version):
underscore_version = v... | 325 |
364 | <filename>hapi-fhir-sql-migrate/src/test/java/ca/uhn/fhir/jpa/migrate/taskdef/ModifyColumnTest.java
package ca.uhn.fhir.jpa.migrate.taskdef;
import ca.uhn.fhir.jpa.migrate.DriverTypeEnum;
import ca.uhn.fhir.jpa.migrate.JdbcUtils;
import org.flywaydb.core.internal.command.DbMigrate;
import org.junit.jupiter.params.Para... | 4,832 |
1,989 | <reponame>hhxx2015/hugegraph<gh_stars>1000+
/*
* Copyright 2017 HugeGraph Authors
*
* 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 t... | 5,012 |
32,544 | package com.baeldung.jsonoptimization;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
public class CustomerSlimShortNames {
@JsonProperty("i")
private long id;
@JsonProperty("n")
private String name;
@JsonProperty("a")
private String address;
public lo... | 831 |
1,380 | #ifndef SD_INDEX_H_
#define SD_INDEX_H_
/*
* sophia database
* sphia.org
*
* Copyright (c) <NAME>
* BSD License
*/
typedef struct sdindexheader sdindexheader;
typedef struct sdindexpage sdindexpage;
typedef struct sdindex sdindex;
struct sdindexheader {
uint32_t crc;
srversion version;
uint64_t offset;
ui... | 1,313 |
5,169 | <reponame>Gantios/Specs
{
"name": "Aardvark",
"version": "4.0.0",
"license": "Apache License, Version 2.0",
"summary": "Aardvark is a library that makes it dead simple to create actionable bug reports.",
"homepage": "https://github.com/square/Aardvark",
"authors": "Square",
"source": {
"git": "https:/... | 272 |
2,406 | <reponame>pazamelin/openvino
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vpu/middleend/pass_manager.hpp>
#include <tuple>
#include <vector>
#include <algorithm>
#include <limits>
#include <string>
#include <utility>
#include <list>
#include <set>
#include <unordere... | 1,240 |
482 | <reponame>lifecontrol/cattle
package io.cattle.platform.core.constants;
public class IdentityConstants {
public static final String EXTERNAL_ID = "externalId";
public static final String EXTERNAL_ID_TYPE = EXTERNAL_ID + "Type";
public static final String INVALID_TYPE = "invalidIdentityType";
}
| 101 |
1,178 | <reponame>leozz37/makani
/* Event definitions from Xwindows */
#define XKeyPress 2
#define XKeyRelease 3
#define XButtonPress 4
#define XButtonRelease 5
#define XMotionNotify 6
#define XEnterNotify 7
#define XLeaveNotify 8
#define XFocusIn 9
#define XFocusOut 10
#define XK... | 661 |
1,286 | <filename>dockerscan/actions/image/console.py
import os
import logging
from dockerscan import get_log_level, run_in_console
from .api import *
from .model import *
from ..helpers import display_results_console
log = logging.getLogger('dockerscan')
def launch_dockerscan_image_info_in_console(config: DockerImageInfo... | 765 |
3,189 | <gh_stars>1000+
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled May 11 2021 09:30:43).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <XCTest/XCTElementSnapshotAttributeDataSource-Protocol.h>
@class XCTCapabilities, XCTElementQuery, XCTElementQueryResults;
@protocol XCTRunnerAutomationSessi... | 296 |
1,144 | package com.v2ray.core.app.proxyman.command;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asy... | 15,707 |
530 | <reponame>meghasfdc/jmc
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The contents of this file are subject to the terms of either the Universal Permissive License
* v 1.0 as shown at http://oss.oracle.com/license... | 4,832 |
1,256 | #pragma once
#include <windows.h>
#ifdef __cplusplus
#define MY_EXTERN_C extern "C"
#else
#define MY_EXTERN_C extern
#endif
#define MY_DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
MY_EXTERN_C const GUID name = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
#define RESULT_ERROR 0
#... | 3,778 |
5,169 | {
"name": "Segment-Firebase",
"version": "2.6.1",
"summary": "Firebase Integration for Segment's analytics-ios library.",
"description": "Analytics for iOS provides a single API that lets you\nintegrate with over 100s of tools.\n\nThis is the Firebase integration for the iOS library.",
"homepage": "http://seg... | 484 |
593 | /**
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2022 Ruhr University Bochum, Paderborn University, Hackmanit GmbH
*
* Licensed under Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
package de.rub.nds.tlsattacker.core.protocol.serializer.ext... | 644 |
346 | <reponame>ja8zyjits/universe
{
"images": {
"icon-small": "https://downloads.mesosphere.com/assets/universe/000/netsil-icon-small.png",
"icon-medium": "https://downloads.mesosphere.com/assets/universe/000/netsil-icon-medium.png",
"icon-large": "https://downloads.mesosphere.com/assets/universe/000/netsil-ic... | 288 |
879 | <reponame>justincolangelo/AudioPluginBase<gh_stars>100-1000
#pragma once
#include "IPlug_include_in_plug_hdr.h"
#include "IPlugMouseTestDSP.h"
class IPlugMouseTest : public IPlug
{
public:
IPlugMouseTest(IPlugInstanceInfo instanceInfo);
~IPlugMouseTest();
void Reset();
void OnParamChange(int paramIdx);
vo... | 185 |
1,031 | /* Copyright (c) <2003-2021> <<NAME>, Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
*... | 1,615 |
12,278 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC Corporation, 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... | 2,636 |
504 | <filename>slack_bolt/middleware/authorization/__init__.py<gh_stars>100-1000
# Don't add async module imports here
from .authorization import Authorization
from .multi_teams_authorization import MultiTeamsAuthorization
from .single_team_authorization import SingleTeamAuthorization
| 74 |
5,460 | <gh_stars>1000+
"""Pagination control model for Route53Resolver."""
from .exceptions import InvalidNextTokenException
PAGINATION_MODEL = {
"list_resolver_endpoint_ip_addresses": {
"input_token": "next_token",
"limit_key": "max_results",
"limit_default": 100,
"unique_attribute": "Ip... | 531 |
3,095 | /****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (<EMAIL>)
**
** This file is part of the Qt Designer of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial ... | 6,440 |
2,542 | <gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stda... | 499 |
3,208 | <reponame>contropist/tqsdk-python<filename>tqsdk/demo/tutorial/t90.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'limin'
from tqsdk import TqApi, TqAuth
from tqsdk.ta import MA
'''
画图示例: 在主图中画指标线
注意: 画图示例中用到的数据不含有实际意义,请根据自己的实际策略情况进行修改
'''
api = TqApi(web_gui=True, auth=TqAuth("信易账户", "账户密码")) # web... | 519 |
24,910 | <reponame>nagabrahmam-mantha/ccxt<filename>examples/py/binance-fetch-ohlcv-closing-time-1.py
# -*- coding: utf-8 -*-
import os
import sys
# -----------------------------------------------------------------------------
this_folder = os.path.dirname(os.path.abspath(__file__))
root_folder = os.path.dirname(os.path.dirn... | 297 |
377 | /**
* Copyright 2014 Impetus Infotech.
*
* 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 ag... | 2,510 |
2,161 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 2,338 |
424 | <reponame>TeslaCN/vertx-sql-client<filename>vertx-oracle-client/src/test/java/io/vertx/oracleclient/test/OracleGeneratedKeysTestBase.java
/*
* Copyright (c) 2011-2021 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public Lic... | 1,563 |
537 | #pragma once
#include <turbodbc/result_sets/result_set.h>
namespace turbodbc { namespace result_sets {
/**
* @brief This class lets you use a base result_set in a row-based fashion
* without worrying about batches
*/
class row_based_result_set {
public:
/**
* @brief Create a new row_based_result_set whi... | 350 |
831 | <reponame>phpc0de/idea-android<gh_stars>100-1000
/*
* Copyright (C) 2013 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/... | 12,576 |
435 | {
"description": "Get ready to go home and start using MongoDB to add some great spatial functionality to your Python Application.",
"language": "eng",
"recorded": "2013-09-14",
"speakers": [
"shekhargulati"
],
"thumbnail_url": "https://i.ytimg.com/vi/mI7pMCa9JxU/hqdefault.jpg",
"title": "Bringing Spa... | 195 |
922 | <reponame>stungkit/macSVG
//
// PathElementEditor.h
// PathElementEditor
//
// Created by <NAME> on 3/2/12.
// Copyright © 2016 ArkPhone LLC. All rights reserved.
//
//#import "MacSVGPlugin/MacSVGPlugin.h"
#import <MacSVGPlugin/MacSVGPlugin.h>
@class PathSegmentEditorPopoverViewController;
@class ArcSettingsPopov... | 1,159 |
521 | /* $Id: USBProxyDevice-solaris.cpp $ */
/** @file
* USB device proxy - the Solaris backend.
*/
/*
* Copyright (C) 2009-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/o... | 15,606 |
2,494 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
... | 8,733 |
778 | <gh_stars>100-1000
//
// Project Name: KratosDelaunayMeshingApplication $
// Created by: $Author: JMCarbonell $
// Last modified by: $Co-Author: $
// Date: $Date: April 2018 $
// Revision: $Revision: ... | 936 |
1,396 | /*
* 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 u... | 486 |
2,151 | <filename>chrome/browser/chromeos/login/screens/network_screen_unittest.cc
// 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 "base/command_line.h"
#include "base/strings/utf_string_conversions.h"... | 1,715 |
35,083 | /*
* 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 ... | 736 |
1,414 | <gh_stars>1000+
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Mupen64plus - VertexShaderConstantDef.h *
* Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
* Copyright (C) 2003 Rice1964 ... | 1,613 |
777 | <gh_stars>100-1000
// 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 "ash/common/wm/workspace/phantom_window_controller.h"
#include <math.h>
#include "ash/common/wm/root_window_finder.h"
#i... | 2,120 |
1,301 | <gh_stars>1000+
/*
* Copyright (c) 2020 Trail of Bits, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later versio... | 28,508 |
480 | #include <iostream>
#include <fstream>
#include <regex>
#include <vector>
#include <string>
#include <experimental/filesystem>
using namespace std;
using namespace experimental::filesystem;
static vector<pair<size_t, string>> matches(const path &p, const regex &re)
{
vector<pair<size_t, string>> d;
ifstream i... | 503 |
4,772 | package example.repo;
import example.model.Customer612;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer612Repository extends CrudRepository<Customer612, Long> {
List<Customer612> findByLastName(String lastName);
}
| 83 |
2,114 | <reponame>rahogata/Jest
package io.searchbox.client.config.idle;
import java.util.concurrent.TimeUnit;
public interface ReapableConnectionManager {
void closeIdleConnections(long idleTimeout, TimeUnit unit);
}
| 70 |
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 ... | 836 |
1,781 |
/*
* (C) 2010-2011 Alibaba Group Holding Limited
*
* 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... | 5,799 |
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 nam... | 416 |
547 | <reponame>stmboyd/ext-ds
#ifndef PHP_DS_QUEUE_H
#define PHP_DS_QUEUE_H
#include "../../ds/ds_queue.h"
typedef struct _php_ds_queue_t {
ds_queue_t *queue;
zend_object std;
} php_ds_queue_t;
static inline php_ds_queue_t *php_ds_queue_fetch_object(zend_object *obj) {
return (php_ds_queue_t *)((char*)(obj... | 744 |
435 | <gh_stars>100-1000
{
"copyright_text": null,
"description": "This will be a review session, covering some of the interesting features in Python 3.3.\nFor the benefit of attendees that are still primarily using Python 2.x, the presentation will also cover a few of the key advantages of the Python 3.x series that are... | 772 |
861 | package cn.springcloud.gray.client.netflix.feign;
import cn.springcloud.gray.RequestInterceptor;
import cn.springcloud.gray.client.netflix.constants.GrayNetflixClientConstants;
import cn.springcloud.gray.request.GrayHttpTrackInfo;
import cn.springcloud.gray.request.GrayRequest;
import cn.springcloud.gray.request.GrayT... | 1,532 |
4,335 | /* ----------------------------------------------------------------------------
* Copyright (c) Huawei Technologies Co., Ltd. 2013-2020. All rights reserved.
* Description: Gyro
* Author: Huawei LiteOS Team
* Create: 2013-01-01
* Redistribution and use in source and binary forms, with or without modification,
* a... | 2,280 |
850 | <reponame>ljyanesm/cromwell
package cromwell.backend.google.pipelines.v2alpha1.api;
import com.google.api.client.json.GenericJson;
public class DeserializationTestClass extends GenericJson {
@com.google.api.client.util.Key
public java.lang.Integer integerValue;
@com.google.api.client.util.Key
public ... | 185 |
809 | /**
* @file
*
* @date Mar 16, 2018
* @author <NAME>
*/
#ifndef SRC_ARCH_E2K_INCLUDE_ASM_PTRACE_H_
#define SRC_ARCH_E2K_INCLUDE_ASM_PTRACE_H_
#ifndef __ASSEMBLER__
#include <stdint.h>
#include <e2k_api.h>
#define RESTORE_COMMON_REGS(regs) \
({ \
uint64_t ct... | 1,164 |
315 | <reponame>nh13/hap.py
// -*- mode: c++; indent-tabs-mode: nil; -*-
//
// Copyright (c) 2010-2015 Illumina, Inc.
// 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 c... | 4,046 |
2,151 | <gh_stars>1000+
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_UTILS_H_
#define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_UTILS_H_
#include "bas... | 1,331 |
12,278 | <gh_stars>1000+
#include <boost/parameter.hpp>
#include <iostream>
using namespace boost::parameter;
BOOST_PARAMETER_NAME(arg1)
struct somebody
{
BOOST_PARAMETER_MEMBER_FUNCTION(
(void), static f, tag, (optional (arg1,(int),0))
)
{
std::cout << arg1 << std::endl;
}
};
#include <boos... | 200 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 3,442 |
317 | package com.googlecode.totallylazy.transducers;
import com.googlecode.totallylazy.Sequence;
import com.googlecode.totallylazy.Sequences;
import com.googlecode.totallylazy.functions.Function1;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public interface GroupByTransducer<T, K> extends Transdu... | 829 |
3,066 | /*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this f... | 1,186 |
678 | <reponame>bzxy/cydia<gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices
*/
#import <StoreServices/StoreServices-Structs.h>
#import <StoreServices/SSPurchase.h>
#import <StoreServices/SSCoding.h>
#import <StoreSe... | 987 |
312 | <reponame>leoyey/reveno
package org.reveno.atp.api.exceptions;
import java.io.File;
public class FileNotFoundException extends RuntimeException {
private static final long serialVersionUID = 1718559297558833658L;
public FileNotFoundException(File file, Throwable e) {
super(String.format("File %s not ... | 128 |
8,747 | // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | 278 |
992 | [{"scope":"https://api.github.com:443","method":"delete","path":"/repos/protoEvangelion/foo?","body":"","status":204,"response":{}}]
| 44 |
852 | #ifndef DataFormats_PatCandidates_TriggerAlgorithm_h
#define DataFormats_PatCandidates_TriggerAlgorithm_h
// -*- C++ -*-
//
// Package: PatCandidates
// Class: pat::TriggerAlgorithm
//
//
/**
\class pat::TriggerAlgorithm TriggerAlgorithm.h "DataFormats/PatCandidates/interface/TriggerAlgorithm.h"
\brief ... | 2,053 |
2,639 | <filename>test/cpp/maybe.cpp
/*********************************************************************
* NAN - Native Abstractions for Node.js
*
* Copyright (c) 2019 NAN contributors
*
* MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
***************************************************************... | 360 |
1,760 | <gh_stars>1000+
/**
* Description: skack
* Source: https://www.geeksforgeeks.org/detect-cycle-in-a-graph/
* Verification: VT HSPC 2019 D
*/
template<int SZ> struct DirCyc {
vi adj[SZ], stk, cyc; vb inStk, vis;
void dfs(int x) {
stk.pb(x); inStk[x] = vis[x] = 1;
each(i,adj[x]) {
if (inStk[i]) cyc = {find(... | 296 |
1,093 | <reponame>Sorieee/spring-integration
/**
* Provides classes related to configuration.
*/
package org.springframework.integration.zookeeper.config;
| 42 |
2,107 | from .helpers import deprecated_alias
@deprecated_alias('get_notification_types')
def notify_get_types(client):
return client.call("notify_get_types")
@deprecated_alias('get_notifications')
def notify_get_notifications(client,
id=None,
max=None):
"""... | 275 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.