max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
14,668 | <reponame>chromium/chromium<gh_stars>1000+
// 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.
#include "components/mirroring/service/session.h"
#include <algorithm>
#include <memory>
#include <string>
#in... | 16,718 |
746 | /**
* 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... | 1,402 |
348 | {"nom":"<NAME>","circ":"5ème circonscription","dpt":"Seine-Maritime","inscrits":629,"abs":356,"votants":273,"blancs":13,"nuls":1,"exp":259,"res":[{"nuance":"SOC","nom":"<NAME>","voix":179},{"nuance":"LR","nom":"<NAME>","voix":80}]} | 92 |
347 | <reponame>greck2908/gamification-engine<filename>gengine/__init__.py
# -*- coding: utf-8 -*-
from pyramid.events import NewRequest
from gengine.app.permissions import yield_all_perms
from gengine.base.context import reset_context
from gengine.base.errors import APIError
from gengine.base.settings import set_settings
f... | 2,103 |
634 | <gh_stars>100-1000
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.ui;
import java.awt.*;
import java.awt.geom.GeneralPath;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
impor... | 1,171 |
537 | #pragma once
#include "cpp_odbc/level2/api.h"
#include "cpp_odbc/level2/diagnostic_record.h"
#include "cpp_odbc/level2/fixed_length_string_buffer.h"
#include "cpp_odbc/level2/handles.h"
#include "cpp_odbc/level2/input_string_buffer.h"
#include "cpp_odbc/level2/level1_connector.h"
#include "cpp_odbc/level2/string_buffe... | 270 |
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 CHROME_CHROME_CLEANER_TEST_TEST_STRINGS_H_
#define CHROME_CHROME_CLEANER_TEST_TEST_STRINGS_H_
#include <windows.h>
namespace chrome_cleaner {
/... | 425 |
10,225 | <filename>extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusExistingCircuitBreakerNames.java
package io.quarkus.smallrye.faulttolerance.runtime;
import java.util.Set;
import javax.annotation.Priority;
import javax.enterprise.inject.Alternative;
import javax.in... | 265 |
377 | /**
* Copyright 2012 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,261 |
369 | // Copyright (c) 2017-2022, <NAME>. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <assert.h>
#include <log/log.hpp>
#include "LoggerBuffer.hpp"
#include "log_colors.hpp"
#include <rotator/Rotator.hpp>
#include <map>
#include <mutex.hpp>
#include <string... | 1,408 |
5,169 | {
"name": "TRRouter",
"version": "1.0.0",
"summary": "A Path Router for different stratogies",
"homepage": "https://github.com/yangtseboy/TRRouter.git",
"license": "Copyright (c) 2017年 YANGSTEBOY. All rights reserved.",
"platforms": {
"ios": "8.0"
},
"authors": {
"harry": "<EMAIL>"
},
"sourc... | 216 |
1,671 | [
"${ProjectPath}\\bin\\Debug\\${Tfm}\\publish\\wwwroot\\ComponentApp.lib.module.js",
"${ProjectPath}\\bin\\Debug\\${Tfm}\\publish\\wwwroot\\ComponentApp.modules.json",
"${ProjectPath}\\bin\\Debug\\${Tfm}\\publish\\wwwroot\\ComponentApp.styles.css",
"${ProjectPath}\\obj\\Debug\\${Tfm}\\jsmodules\\jsmodules.publ... | 193 |
403 | <filename>plugin-api/src/main/java/com/megaease/easeagent/plugin/api/metric/Snapshot.java
/*
* Copyright (c) 2017, MegaEase
* 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 L... | 1,216 |
2,059 | <filename>src/include/sdl2rwops.h<gh_stars>1000+
#ifndef __SDL2RWOPS_H__
#define __SDL2RWOPS_H__
typedef struct SDL2_RWops_s SDL2_RWops_t; // the actual SDL2 SDL_RWops
typedef struct x86emu_s x86emu_t;
typedef SDL2_RWops_t* (*sdl2_allocrw)();
typedef void (*sdl2_freerw)(SDL2_RWops_t*);
typedef struct SDL2RWSave_s ... | 540 |
715 | /*
* Copyright 2019 Lightbend Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 1,303 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-7hvg-572p-33pg",
"modified": "2022-04-30T18:16:08Z",
"published": "2022-04-30T18:16:08Z",
"aliases": [
"CVE-2001-0482"
],
"details": "Configuration error in Argus PitBull LX allows root users to bypass specified access control restrictions and cause a denial of... | 409 |
606 | package org.arend.core.context;
import org.arend.core.context.param.DependentLink;
import org.arend.core.context.param.EmptyDependentLink;
import org.jetbrains.annotations.NotNull;
public class LinkList {
private DependentLink myFirst = EmptyDependentLink.getInstance();
private DependentLink myLast = EmptyDepende... | 445 |
4,269 | /*
*
* Copyright 2014 Netflix, 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... | 1,135 |
7,482 | <filename>bsp/stm32/libraries/STM32L0xx_HAL/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_bus.h
/**
******************************************************************************
* @file stm32l0xx_ll_bus.h
* @author MCD Application Team
* @brief Header file of BUS LL module.
@verbatim
###... | 28,751 |
2,151 | <filename>third_party/quic_trace/src/tools/render/sdl_util.h
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE... | 1,986 |
727 | <gh_stars>100-1000
/*
* FILE: sha2.h
* AUTHOR: <NAME>
* http://www.aarongifford.com/computers/sha.html
*
* Copyright (c) 2000-2003, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... | 1,811 |
895 | #include "slang-json-native.h"
#include "../../slang-com-helper.h"
#include "../core/slang-rtti-util.h"
#include "slang-json-diagnostics.h"
namespace Slang {
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!! JSONToNativeConverter !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
/* static */Index JSONToNativeConverter::_getFieldCount(const S... | 7,920 |
543 | package com.riiablo.graphics;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShaderProgram;
import com.riiablo.codec.Index;
... | 1,541 |
554 | <reponame>fxxf1111/X-APM<gh_stars>100-1000
package github.tornaco.xposedmoduletest.model;
import lombok.Builder;
import lombok.Getter;
/**
* Created by Tornaco on 2017/7/29.
* Licensed with Apache.
*/
@Builder
@Getter
public class Contribution {
private String nick;
private String ad;
pri... | 135 |
787 | <reponame>zhuohuwu0603/leetcode_cpp_lzl124631x
// OJ: https://leetcode.com/problems/matrix-cells-in-distance-order/
// Author: github.com/lzl124631x
// Time: O(RC)
// Space: O(1)
class Solution {
public:
vector<vector<int>> allCellsDistOrder(int R, int C, int r0, int c0) {
vector<vector<int>> ans;
a... | 630 |
841 | package org.jboss.resteasy.test.providers.jackson2.resource;
import java.util.HashMap;
import java.util.Map;
import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.ext.ExceptionMapper;
import jakarta.ws.rs.ext.Provider;
/**
* User: rsearls
* Date: 10/26/16
*/
@Provider
public... | 275 |
377 | /**
* Copyright 2013 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... | 1,570 |
1,604 | <reponame>EricRabil/m1n1
/* SPDX-License-Identifier: MIT */
#ifndef XNUBOOT_H
#define XNUBOOT_H
#define CMDLINE_LENGTH 608
struct boot_video {
u64 base;
u64 display;
u64 stride;
u64 width;
u64 height;
u64 depth;
};
struct boot_args {
u16 revision;
u16 version;
u64 virt_base;
... | 292 |
5,169 | {
"name": "CustomModalView",
"version": "1.0.0",
"summary": "Fully customizable Modal View component built in SwiftUI for SwiftUI on iOS and macOS",
"swift_versions": "5.0",
"description": "Custom Modal View is a fully customizable modal view component built in SwiftUI for SwiftUI.\nIt's API is built similar ... | 314 |
380 |
/**
* Author: <NAME>
* Date: 27 July 2021 (Tuesday)
*/
import java.util.*;
public class RearrangeWithoutXtraspace{
public static void main(String args[]){
Solution s = new Solution();
int[] arr = {4,0,2,1,3};
s.arrangeArray(arr,arr.length);
}
}
/*
CONCEPT :
a=a+b*b
in first traversal we encrypt numbe... | 304 |
794 |
#include "CAThread.h"
#if CC_TARGET_PLATFORM != CC_PLATFORM_WIN32
#include <unistd.h>
#endif
NS_CC_BEGIN
CALock::CALock()
{
pthread_mutex_init(&m_cMutex, NULL);
}
CALock::~CALock()
{
pthread_mutex_destroy(&m_cMutex);
}
void CALock::Lock()
{
pthread_mutex_lock(&m_cMutex);
}
void CALock::UnLock()
{
pthread_mute... | 1,276 |
831 | <gh_stars>100-1000
/*
* Copyright (C) 2016 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... | 910 |
339 | <reponame>Razakhel/RaZ<gh_stars>100-1000
#include "RaZ/Data/OffFormat.hpp"
#include "RaZ/Data/Mesh.hpp"
#include "RaZ/Utils/FilePath.hpp"
#include "RaZ/Utils/Logger.hpp"
#include <fstream>
namespace Raz::OffFormat {
Mesh load(const FilePath& filePath) {
Logger::debug("[OffLoad] Loading OFF file ('" + filePath + "'... | 860 |
1,085 | <gh_stars>1000+
REPOSITORY_DEPENDENCY_DEFINITION_FILENAME = 'repository_dependencies.xml'
REPOSITORY_SUITE_DEFINITION = 'repository_suite_definition'
TOOL_DEPENDENCY_DEFINITION = 'tool_dependency_definition'
TOOL_DEPENDENCY_DEFINITION_FILENAME = 'tool_dependencies.xml'
UNRESTRICTED = 'unrestricted'
types = [UNRESTRICT... | 250 |
2,107 | /* NetHack 3.7 nhlua.c $NHDT-Date: 1582675449 2020/02/26 00:04:09 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.20 $ */
/* Copyright (c) 2018 by <NAME> */
/* NetHack may be freely redistributed. See license for details. */
#include "hack.h"
#include "sp_lev.h"
/* lua_CFunction prototypes */
static int l_sele... | 12,251 |
3,579 | /*
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
*
* 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,136 |
562 | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""Integrations tests for the LLVM CompilerGym environments."""
from time import time
import gym
import numpy as np
import pytest
from compi... | 859 |
403 | <reponame>licaon-kter/prim-ftpd
/*
* 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, Vers... | 1,591 |
4,949 | <gh_stars>1000+
/**********************************************************************
Tenacity
AudacityHeaders.cpp
<NAME>
**********************************************************************/
#include "AudacityHeaders.h"
| 50 |
2,073 | <filename>activemq-unit-tests/src/test/java/org/apache/activemq/usecases/BrowseDLQTest.java
/**
* 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... | 1,448 |
1,138 | package com.zaihuishou.expandablerecycleradapter.adapter;
import com.zaihuishou.expandablerecycleradapter.model.ExpandableListItem;
import com.zaihuishou.expandablerecycleradapter.viewholder.AbstractAdapterItem;
import com.zaihuishou.expandablerecycleradapter.viewholder.AbstractExpandableAdapterItem;
import com.zaihui... | 9,247 |
852 | <gh_stars>100-1000
#ifndef MergedGenParticleProducer_h
#define MergedGenParticleProducer_h
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/Event.h"
#include "DataFormats/HepMCCandidate/interface/GenParticle.h"
#inclu... | 315 |
1,838 | //---------------------------------------------------------------------//
// Wrapper header file that includes Checked-C-specific declarations //
// explicitly. //
/////////////////////////////////////////////////////////////////////////
// Ensure that clang-s... | 146 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-33vf-chjh-98j4",
"modified": "2022-04-29T01:26:54Z",
"published": "2022-04-29T01:26:54Z",
"aliases": [
"CVE-2003-0725"
],
"details": "Buffer overflow in the RTSP protocol parser for the View Source plug-in (vsrcplin.so or vsrcplin3260.dll) for RealNetworks Heli... | 581 |
6,036 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "test_util.h"
#include <list>
#include <algorithm>
#if !defined(MLAS_NO_ONNXRUNTIME_THREADPOOL)
MLAS_THREADPOOL* GetMlasThreadPool(void) {
static MLAS_THREADPOOL* threadpool = new onnxruntime::... | 719 |
4,764 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2021 <NAME> <<EMAIL>>
# All rights reserved.
#
# This code is licensed under the MIT License.
#
# 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 withou... | 4,758 |
1,106 | /***************************************************************************************************
* Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are me... | 3,752 |
12,278 | <reponame>jamescodesthings/android-runtime<filename>test-app/runtime/src/main/cpp/v8_inspector/src/inspector/v8-inspector-protocol-encoding.h
// Copyright 2019 the V8 project 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 V8... | 446 |
335 | <reponame>Safal08/Hacktoberfest-1<filename>O/Outcast_noun.json
{
"word": "Outcast",
"definitions": [
"A person who has been rejected or ostracized by their society or social group."
],
"parts-of-speech": "Noun"
} | 98 |
1,998 | <gh_stars>1000+
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from botbuilder.dialogs import (
ComponentDialog,
WaterfallDialog,
WaterfallStepContext,
DialogTurnResult,
)
from botbuilder.core import MessageFactory, UserState
from data_models import UserP... | 619 |
1,305 | /*
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
/* Generated By:JJTree: Do not edit this line. JDMIpAddress.java */
package com.sun.jmx.snmp.IPAcl;
... | 375 |
622 | package tudelft.christmas;
import java.util.Calendar;
public class DefaultClock implements Clock {
@Override
public Calendar now () {
return Calendar.getInstance();
}
}
| 65 |
675 | /**
* @file subview.hpp
* @author <NAME>
*
* Definition of the Subview class, which modifies the input as necessary.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD license along with mlpa... | 1,794 |
672 | <reponame>honeyeeb/objc4-723
/*
* Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You ma... | 1,459 |
368 | <reponame>gta-chaos-mod/plugin-sdk
/*
Plugin-SDK (Grand Theft Auto) SHARED source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "FontPrint.h"
#include "CFont.h"
#include "Other.h"
#include "CSprite.h"... | 3,372 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.resourcegraph.models;
import com.azure.resourcemanager.resourcegraph.fluent.models.ResourceChangeDataInner;
impo... | 573 |
2,542 | <reponame>gridgentoo/ServiceFabricAzure<filename>src/prod/src/Management/BackupRestore/BA/BackupCopierJobQueueBase.h
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for... | 546 |
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... | 40,457 |
396 | /*
Copyright 2018 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 ... | 445 |
772 | <reponame>ryansloan/code-dot-or
{
"ku-IQ": {
"data": {
"short_instructions": {
"2-3 Artist 4": "یارمەتیم بدە ئەو ماڵە تەواو بكەم لەبۆ ئەم پشیلەیە.",
"2-3 Artist 9 NEW": "ئەم كۆلارەیە تەواو بكە",
"2-3 Maze 10": "ڕێگام نیشان بدە بەرەو دڕندە سەوزەکە! (ئاگاداری مینەکان بە)",
"2-3... | 572 |
995 | /*=============================================================================
Copyright (c) 2016 <NAME>
intrinsics.hpp
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)
===============================... | 2,042 |
4,772 | <reponame>fjacobs/spring-data-examples
package example.repo;
import example.model.Customer1025;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1025Repository extends CrudRepository<Customer1025, Long> {
List<Customer1025> findByLastName(String lastName);... | 103 |
324 | <reponame>tormath1/jclouds
/*
* 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
... | 1,509 |
1,401 | import math
import os
import shutil
import tempfile
import unittest
import mleap.pyspark # noqa
from mleap.pyspark.spark_support import SimpleSparkSerializer # noqa
import pandas as pd
from pandas.testing import assert_frame_equal
from pyspark.ml import Pipeline
from pyspark.sql.types import FloatType
from pyspark.... | 2,118 |
3,428 | {"id":"00288","group":"spam-2","checksum":{"type":"MD5","value":"e1f7256dd7c447815e6693fd8efea6c9"},"text":"From <EMAIL> Mon Jun 24 17:03:23 2002\nReturn-Path: social-admin@linux.ie\nDelivery-Date: Mon May 13 03:32:38 2002\nReceived: from lugh.tuatha.org (<EMAIL> [19192.168.3.115]) by\n dogma.slashnull.org (8.11.6/... | 1,012 |
1,159 | #ifndef GFX_FONT
#define GFX_FONT
#include <string>
#include "base/refl/enum.h"
namespace Gfx
{
class Font
{
public:
class Weight {
public:
static Weight Normal() { return Weight(400); }
static Weight Bold() { return Weight(700); }
Weight() { *this = Normal(); }
Weight(int value) : value(value) {}
expli... | 306 |
5,166 | <reponame>iconara/aws-doc-sdk-examples
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
"""
Stub functions that are used by the Amazon CloudWatch unit tests.
"""
from test_tools.example_stubber import ExampleStubber
class CloudWatchStubber(ExampleStubber):
... | 2,177 |
1,085 | <filename>services/datastore/src/test/java/com/dremio/datastore/generator/supplier/variable/VarLengthSupplier.java
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain ... | 525 |
372 | <reponame>mjhopkins/google-api-java-client-services
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 3,913 |
2,189 | {
"plugin_name": "debug_node",
"plugin_namespace": "debug_node",
"plugin_project": "debug_node_plugin"
}
| 46 |
1,398 | <reponame>Mu-L/confluo
#include "alert_index.h"
namespace confluo {
monitor::alert_index::alert_index()
: idx_(8, 256) {
}
void monitor::alert_index::add_alert(uint64_t time_bucket,
const std::string &trigger_name,
const std::string &trigg... | 680 |
313 | <reponame>corindwyer/titus-control-plane
/*
* Copyright 2021 Netflix, 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
*
* Unle... | 814 |
3,934 | <filename>packages/pyright-internal/src/tests/samples/typeAlias15.py
# This sample tests the case where a generic type alias is specialized
# with an instantiable class rather than a class instance.
from typing import TypeVar, Sequence, Type
_T = TypeVar("_T", bound=Type[Exception])
_MaybeSequence = _T | Sequence[_T]... | 195 |
17,703 | <reponame>dcillera/envoy<filename>test/common/init/watcher_impl_test.cc
#include "test/mocks/init/mocks.h"
#include "gtest/gtest.h"
namespace Envoy {
namespace Init {
namespace {
TEST(InitWatcherImplTest, Name) {
ExpectableWatcherImpl watcher;
EXPECT_EQ("test", watcher.name());
}
TEST(InitWatcherImplTest, Ready... | 307 |
668 | <reponame>qianfen2021/conan<filename>conan-common/src/main/java/com/tal/wangxiao/conan/common/converter/AbstractObjectConverter.java
package com.tal.wangxiao.conan.common.converter;
import org.springframework.beans.BeanUtils;
/**
* DO转VO抽象类,完成分页对象的转换
* @author huyaoguo
* @date 2021/1/25
*/
public abstract class A... | 328 |
5,964 | /* Copyright (c) 2006-2009 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 _NP_EXTENSIONS_H_
#define _NP_EXTENSIONS_H_
// Use the shorter include path here so that this file can be used in non-
// Chromium p... | 13,826 |
4,756 | // Copyright (C) 2012 The Libphonenumber Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | 977 |
746 | /*
* Copyright 2017 JBoss 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 i... | 2,598 |
348 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Script for uniform polygon points & 2D Boxes from instance annotations
# author: <NAME>
# reviewers:
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; Authors provide no warranty with the software
and are not liable for anything... | 4,061 |
383 | <gh_stars>100-1000
import time
from lagom import Logger
from lagom import BaseEngine
from lagom.transform import describe
class Engine(BaseEngine):
def train(self, n=None, **kwargs):
self.agent.train()
t0 = time.perf_counter()
D = self.runner(self.agent, self.env, self.co... | 662 |
1,276 | <reponame>parallel101/course
#include <vector>
#include <set>
#include "printer.h"
using namespace std;
int main() {
set<int> b = {1, 4, 2, 1};
auto [ok1, it1] = b.insert(3);
cout << "插入3成功:" << ok1 << endl;
cout << "3所在的位置:" << *it1 << endl;
auto [ok2, it2] = b.insert(3);
cout << "再次插入3成功:" <... | 231 |
852 | <gh_stars>100-1000
#ifndef L1TTwinMuxParamsRcd_h
#define L1TTwinMuxParamsRcd_h
// -*- C++ -*-
//
// Class : L1TwinMuxParamsRcd
//
// Author: <NAME>
// Created:
// mod g karathanasis
//
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h"
class L1TTwinMuxParamsRcd : public edm::eventsetup::... | 170 |
5,515 | <reponame>joginder07/baseui
{
"author": "<NAME>",
"authorLink": "https://twitter.com/nthgergo",
"title": "Base Web on Figma Communities",
"tagline": "Base Web is now available as an open-source gallery on Figma",
"date": "13 February 2020",
"coverImage": "https://camo.githubusercontent.com/0193dc7614caaed1c... | 206 |
607 | /*
* Copyright (c) 2005-2021 <NAME>. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice,
* this list of conditi... | 4,305 |
410 | <filename>app/src/main/java/com/iwebpp/wspp/SecureWebSocketServer.java
// Copyright (c) 2014 <NAME><<EMAIL>>
package com.iwebpp.wspp;
import com.iwebpp.node.EventEmitter2;
import com.iwebpp.node.NodeContext;
import com.iwebpp.wspp.SecureWebSocket.SecInfo;
import com.iwebpp.wspp.WebSocketServer.ListeningCallback;
imp... | 688 |
609 | #
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <<EMAIL>>
# SPDX-License-Identifier: BSD-3-Clause
""" Import shortcuts for our most commonly used functionality. """
# Create shorthands for the most common parts of the library's usb3 gateware.
from .gateware.usb.usb3.device import... | 178 |
3,358 | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2008 <NAME>
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or modif... | 652 |
3,227 | <filename>Voronoi_diagram_2/doc/Voronoi_diagram_2/CGAL/Regular_triangulation_adaptation_traits_2.h<gh_stars>1000+
namespace CGAL {
/*!
\ingroup PkgVoronoiDiagram2Points
The class `Regular_triangulation_adaptation_traits_2` provides a model for the `AdaptationTraits_2`
concept. The template parameter of the `Regular_... | 343 |
7,789 | /*
* Copyright 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 3,831 |
1,056 | <filename>enterprise/j2ee.dd/src/org/netbeans/modules/j2ee/dd/impl/application/ApplicationProxy.java<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 copyr... | 6,558 |
1,438 | <filename>src/com/dexvis/util/MapUtil.java
package com.dexvis.util;
import java.util.Map;
import com.dexvis.exception.ElementNotFoundException;
/**
*
*
* This package contains miscellaneous routines for dealing with hashmaps. Most
* are also applicable to Properties as well.
*
*/
public class MapUtil
{
/*... | 5,626 |
1,700 | <filename>thirdparty/embree/common/math/vec2fa.h
// Copyright 2009-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "../sys/alloc.h"
#include "math.h"
#include "../simd/sse.h"
namespace embree
{
////////////////////////////////////////////////////////////////////////////////
//... | 5,159 |
340 | import numpy
n, m = [int(x) for x in input().strip().split()]
arr = []
for _ in range(n):
arr.append([int(x) for x in input().strip().split()])
print(numpy.array(arr).transpose())
print(numpy.array(arr).flatten()) | 83 |
585 | <reponame>KevinKecc/caffe2
/**
* 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.org/licenses/LICENSE-2.0
*
* Unl... | 743 |
356 | <filename>fbchat_archive_parser/writers/pretty_json.py
from __future__ import unicode_literals, absolute_import
from .dict import DictWriter
import json
class PrettyJsonWriter(DictWriter):
def serialize_content(self, data):
return json.dumps(data, sort_keys=True, indent=4, ensure_ascii=False)
@prop... | 132 |
348 | <filename>docs/data/leg-t1/074/07402186.json
{"nom":"Montagny-les-Lanches","circ":"2ème circonscription","dpt":"Haute-Savoie","inscrits":500,"abs":187,"votants":313,"blancs":1,"nuls":0,"exp":312,"res":[{"nuance":"LR","nom":"<NAME>","voix":97},{"nuance":"REM","nom":"Mme <NAME>","voix":95},{"nuance":"FI","nom":"<NAME>","... | 414 |
575 | <gh_stars>100-1000
// 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.
package org.chromium.chrome.browser.customtabs.content;
import static org.chromium.chrome.browser.dependency_injection.ChromeCommonQua... | 9,071 |
348 | {"nom":"Canville-les-Deux-Eglises","dpt":"Seine-Maritime","inscrits":246,"abs":60,"votants":186,"blancs":15,"nuls":1,"exp":170,"res":[{"panneau":"2","voix":89},{"panneau":"1","voix":81}]} | 78 |
366 | <filename>flow_screen_components/flowListFSC/.vscode/settings.json
{
"eslint.nodePath": "/Users/aedelstein/.vscode/extensions/salesforce.salesforcedx-vscode-lwc-45.13.0/node_modules"
} | 79 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.resources.models;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import com.faster... | 503 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.