max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,700 | <reponame>aumuell/embree<filename>tutorials/embree_tests/common/algorithms/parallel_sort.cpp
// Copyright 2009-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "../../../external/catch.hpp"
#include "../common/algorithms/parallel_sort.h"
using namespace embree;
namespace parallel_sort_unit_test... | 639 |
2,134 | <reponame>dendisuhubdy/opentrack
#include "runtime-libraries.hpp"
#include "options/scoped.hpp"
#include <QMessageBox>
#include <QDebug>
#ifdef __clang__
# pragma clang diagnostic ignored "-Wcomma"
#endif
runtime_libraries::runtime_libraries(QFrame* frame, dylibptr t, dylibptr p, dylibptr f)
{
auto error = [](c... | 933 |
640 | <reponame>qjiang310/PRNN-GRU<filename>include/prnn/detail/matrix/cudnn_descriptors.h
/* \file CudnnDescriptors.h
\date Thursday August 15, 2015
\author <NAME> <<EMAIL>>
\brief The header file for the cudnn descriptor C++ wrappers.
*/
#pragma once
// Standard Library Includes
#include <memory>
#inclu... | 3,355 |
5,169 | {
"name": "SuggestionsBox",
"version": "1.1",
"summary": "SuggestionsBox helps you build better a product trough your user suggestions.",
"description": "An iOS library to aggregate users feedback about suggestions, features or comments in order to help you build a better product.",
"homepage": "https://githu... | 230 |
1,150 | <filename>junior_class/chapter-3-Computer_Vision/code/train_MNIST.py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ht... | 1,877 |
458 | /*!
* Modifications Copyright 2017-2018 H2O.ai, Inc.
*/
#ifndef MATRIX_MATRIX_H_
#define MATRIX_MATRIX_H_
#include <memory>
namespace h2o4gpu {
template <typename T>
class Matrix {
protected:
const size_t _m, _n, _mvalid;
void *_info, *_infoy, *_vinfo, *_vinfoy, *_weightinfo;
bool _done_init, _done_alloc,... | 546 |
476 | <reponame>tejasvinu/hetu-core
/*
* Copyright (C) 2018-2021. Huawei Technologies Co., Ltd. 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.or... | 1,652 |
601 | <reponame>alexbosy/spring-data-jdbc
/*
* Copyright 2017-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/LI... | 1,973 |
347 | <gh_stars>100-1000
package org.ovirt.engine.ui.common.view;
import com.gwtplatform.mvp.client.view.CenterPopupPositioner;
public class OvirtCenterPopupPositioner extends CenterPopupPositioner {
public OvirtCenterPopupPositioner() {
super();
}
@Override
protected int getLeft(int popupWidth) {... | 219 |
7,158 | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#ifndef __OPENCV_ALPHAMAT_CM_H__
#define __OPENCV_ALPHAMAT_CM_H__
namespace cv { namespace alphamat {
using namespace Eigen... | 156 |
6,140 | import warnings
from ..middleware.profiler import * # noqa: F401, F403
warnings.warn(
"'werkzeug.contrib.profiler' has moved to"
"'werkzeug.middleware.profiler'. This import is deprecated as of"
"version 0.15 and will be removed in version 1.0.",
DeprecationWarning,
stacklevel=2,
)
class MergeS... | 497 |
3,269 | <filename>C++/largest-number-after-mutating-substring.cpp
// Time: O(n)
// Space: O(1)
class Solution {
public:
string maximumNumber(string num, vector<int>& change) {
bool mutated = false;
for (int i = 0; i < size(num); ++i) {
int d = num[i] - '0';
if (change[d] < d) {
... | 321 |
3,301 | <filename>core/src/main/java/com/alibaba/alink/common/dl/BaseKerasSequentialTrainBatchOp.java
package com.alibaba.alink.common.dl;
import org.apache.flink.annotation.Internal;
import org.apache.flink.api.common.typeinfo.TypeInformation;
import org.apache.flink.api.common.typeinfo.Types;
import org.apache.flink.api.jav... | 2,455 |
2,023 | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 9 20:57:29 2012
@author: garrett
@email: <EMAIL>
original pygmail from:
https://github.com/vinod85/pygmail/blob/master/pygmail.py
"""
import imaplib, smtplib
import re
from email.mime.text import MIMEText
class pygmail(object):
IMAP_SERVER='imap.gmail.com... | 1,416 |
780 | #include "test.h"
int main() { return 0; } | 16 |
5,535 | /*-------------------------------------------------------------------------
*
* pg_tablespace.h
* definition of the "tablespace" system catalog (pg_tablespace)
*
*
* Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
... | 505 |
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... | 6,693 |
3,102 | // RUN: rm -rf %t
// RUN: %clang_cc1 -x c++ -fmodules %S/Inputs/explicit-build-overlap/def.map -fmodule-name=a -emit-module -o %t/a.pcm
// RUN: %clang_cc1 -x c++ -fmodules %S/Inputs/explicit-build-overlap/def.map -fmodule-name=b -emit-module -o %t/ba.pcm -fmodule-file=%t/a.pcm
// RUN... | 531 |
1,094 | #include "storage_engine/column_store.h"
#include "perftest_tools.h"
#include "datetime.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <algorithm>
#include <zlib.h>
#include <cstring>
#include <map>
#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;
using nam... | 2,614 |
3,227 |
/*!
\ingroup PkgKernelDKernelConcept
\cgalConcept
*/
class Kernel_d::Oriented_side_d {
public:
/// \name Operations
/// A model of this concept must provide:
/// @{
/*!
returns the side of \f$ p\f$ with respect to \f$ o\f$. `Kernel_object`
may be any of `Kernel_d::Sphere_d` or `Kernel_d::Hyperplane_d`.
\pre `p` an... | 196 |
371 | <reponame>wuchunfu/EngineX
package com.risk.riskmanage.rule.model.request;
import com.risk.riskmanage.rule.model.RuleInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RuleListParamV2 {
protected Integer pageNum ... | 224 |
5,098 | # Copyright 2021 The TensorFlow 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 applica... | 365 |
1,576 | package org.commonmark.internal.renderer;
import org.commonmark.node.Node;
import org.commonmark.renderer.NodeRenderer;
import java.util.HashMap;
import java.util.Map;
public class NodeRendererMap {
private final Map<Class<? extends Node>, NodeRenderer> renderers = new HashMap<>(32);
public void add(NodeRe... | 292 |
698 | /**
* Copyright (C) Zhang,Yuexiang (xfeep)
*
*For reuse some classes from tomcat8 we have to use this package
*/
package org.apache.coyote.http11;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.Selector;
import nginx.clojure.NginxHttpServerChannel;
import org.apache.coyote.Outp... | 1,622 |
1,968 | <filename>platform/android/ndk/Rtt_AndroidRuntimeDelegate.h
//////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
//... | 431 |
372 | /*
* Copyright © BeyondTrust Software 2004 - 2019
* 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
*
* Un... | 1,209 |
443 | <reponame>vault-the/changes
from __future__ import absolute_import
from sqlalchemy.orm import joinedload
from changes.api.base import APIView
from changes.api.serializer.models.job import JobWithBuildCrumbler
from changes.models.job import Job
from changes.models.jobplan import JobPlan
from changes.models.snapshot im... | 416 |
386 | <reponame>jkrude/charts<gh_stars>100-1000
/*
* Copyright (c) 2018 by <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
*
* Unl... | 2,582 |
1,149 | <reponame>thunderbiscuit/Learning-Bitcoin-from-the-Command-Line
#include <stdio.h>
#include "wally_core.h"
int main(void) {
int lw_response;
lw_response = wally_init(0);
printf("Startup: %d\n",lw_response);
wally_cleanup(0);
}
| 108 |
443 | """Add SystemOption
Revision ID: 19910015c867
Revises: <KEY>
Create Date: 2014-07-11 15:48:26.276042
"""
# revision identifiers, used by Alembic.
revision = '19910015c867'
down_revision = '<KEY>'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table(
'systemoption',
sa.... | 280 |
1,444 | <reponame>amc8391/mage
package mage.cards.c;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.common.CounterUnlessPaysEffect;
import mage.abilities.effects.keyword.AmassEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.target.T... | 389 |
412 | /*******************************************************************\
Author: Diffblue
\*******************************************************************/
/// \file
/// Utilities for printing location info steps in the trace in a format
/// agnostic way
#ifndef CPROVER_GOTO_PROGRAMS_STRUCTURED_TRACE_UTIL_H
#defin... | 502 |
8,844 | <gh_stars>1000+
class Dinosaur {
Disposable(Disposable... resources) {
}
}
| 34 |
839 | /**
* 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 m... | 618 |
729 | package com.mapbox.mapboxandroiddemo.examples.styles;
import android.graphics.Color;
import android.os.Bundle;
import com.mapbox.mapboxandroiddemo.R;
import com.mapbox.mapboxsdk.Mapbox;
import com.mapbox.mapboxsdk.maps.MapView;
import com.mapbox.mapboxsdk.maps.MapboxMap;
import com.mapbox.mapboxsdk.maps.OnMapReadyCal... | 1,271 |
2,963 | <filename>Compiler/Functions/Initializer.cpp<gh_stars>1000+
//
// Initializer.cpp
// EmojicodeCompiler
//
// Created by <NAME> on 22/08/2017.
// Copyright © 2017 <NAME>. All rights reserved.
//
#include "Initializer.hpp"
namespace EmojicodeCompiler {
} // namespace EmojicodeCompiler
| 105 |
1,168 | <reponame>wcalandro/kythe<filename>kythe/cxx/indexer/cxx/testdata/rec/rec_union.cc<gh_stars>1000+
// Checks that unions are recorded as records.
//- @U defines/binding UUnion
//- UUnion.complete definition
//- UUnion.subkind union
//- UUnion.node/kind record
union U { }; | 95 |
1,602 | from django import http
def test_view(request):
return http.HttpResponse()
| 25 |
984 | /*
* 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 ... | 600 |
335 | {
"word": "Main",
"definitions": [
"A principal pipe carrying water or gas to buildings, or taking sewage from them.",
"A principal cable carrying electricity.",
"The source of public water, gas, or electricity supply through pipes or cables.",
"The open ocean."
],
"parts... | 120 |
692 | #include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <assert.h>
#include "core/util.h"
#include "core/adios_logger.h"
#include "core/transforms/adios_transforms_hooks_read.h"
#include "core/transforms/adios_transforms_reqgroup.h"
#include "public/adios_error.h"
#ifdef ALACRITY
#include "alacrity.h"
#... | 2,447 |
348 | <gh_stars>100-1000
{"nom":"Saint-Silvain-sous-Toulx","dpt":"Creuse","inscrits":116,"abs":25,"votants":91,"blancs":2,"nuls":1,"exp":88,"res":[{"panneau":"1","voix":60},{"panneau":"2","voix":28}]} | 85 |
333 | from subprocess import check_output
def run_shell_script(script, print_output=False):
if '"' in script:
assert Exception("Docker shell script cannot contain double quotes, turn it into a single quote!")
output = check_output([
"docker",
"exec",
"-it",
"django",
... | 195 |
1,305 | <filename>IGraphics/Controls/Test/TestColorControl.h
/*
==============================================================================
This file is part of the iPlug 2 library. Copyright (C) the iPlug 2 developers.
See LICENSE.txt for more info.
==================================================================... | 443 |
3,262 | /*
* Tencent is pleased to support the open source community by making Angel available.
*
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. 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 ma... | 1,315 |
2,023 | import sys, os
from tempfile import mkstemp
from getopt import getopt, GetoptError
from subprocess import call as oscall
from depgraph2dot import pydepgraphdot
from py2depgraph import mymf
def genDepGraph(inScript, options):
path = sys.path[:]
debug = 0
mf = mymf(path, debug, options.exclude)
mf.run_s... | 1,354 |
764 | <gh_stars>100-1000
{
"symbol": "JinZu",
"address": "0x55cA65946818F0b02B267c935887b1082E4D829b",
"overview": {
"zh": "随着世界数字化进程的不断加速,互联网传输速度的不断提升,分布式计算资源的不断积累,数学和密码学技术在数字化时代的大量实用,我们预见未来通过基于区块链去中心化、开放、自治、不可篡改、保护隐私等特性建设的适用于分布式征信、分布式债权登记、分布式财富管理、分布式资产交易的底层公链,会让全球不同国 家、地区、商业场景的参与者具有简便的提供金融服务的能力。基于区块链技术的... | 682 |
427 | <gh_stars>100-1000
//===-- XCoreTargetTransformInfo.h - XCore specific TTI ---------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------... | 559 |
317 | from mdecbase import Service
from binaryninja import *
license = open('/opt/binaryninja/license.txt').read()
core_set_license(license)
class BinjaService(Service):
"""
Binary Ninja decompiler as a service
"""
def decompile(self, path: str) -> str:
"""
Decompile all the functions in ... | 537 |
1,264 | /*
* Licensed to GraphHopper GmbH under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use t... | 2,904 |
301 | /*-
* #%L
* Spring Auto REST Docs Json Doclet for JDK9+
* %%
* Copyright (C) 2015 - 2021 Scalable Capital GmbH
* %%
* 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... | 1,600 |
6,094 | package com.antfortune.freeline.idea.actions;
import com.antfortune.freeline.idea.utils.NotificationUtils;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ex.ApplicationInfoEx;
import com.intellij.util.ui.UIUtil;
import javax.swing.*;
import java.awt.*;
import java.... | 3,425 |
2,151 | // Copyright (c) 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.
#include "ui/display/manager/managed_display_info.h"
#include "testing/gtest/include/gtest/gtest.h"
#if defined(OS_CHROMEOS)
#include "ui/display/ma... | 2,587 |
5,954 | import org.bytedeco.javacpp.FloatPointer;
import org.bytedeco.javacv.CanvasFrame;
import org.bytedeco.javacv.OpenCVFrameConverter;
import org.bytedeco.opencv.opencv_core.*;
import org.bytedeco.opencv.opencv_imgproc.*;
import static org.bytedeco.opencv.global.opencv_core.*;
import static org.bytedeco.opencv.global.open... | 1,288 |
995 | // Copyright (C) 2016-2018 <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_YAP_CONFIG_HPP_INCLUDED
#define BOOST_YAP_CONFIG_HPP_INCLUDED
#ifndef BOOST_NO_CONSTEXPR_IF
/** Indic... | 270 |
372 | /*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | 1,767 |
6,059 | /*
* 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.
*/
#ifndef _FB_ANDROID_SERIALIZE_H
#define _FB_ANDROID_SERIALIZE_H
#include "utils/ByteOrder.h"
#include "utils/Debug.h"
#includ... | 309 |
322 | <filename>vehicle/OVMS.V3/components/vehicle_bmwi3/ecu_definitions/ecu_sas_code.cpp
//
// Warning: don't edit - generated by generate_ecu_code.pl processing ../dev/sas_i1.json: SAS 22: Optional equipment system
// This generated code makes it easier to process CANBUS messages from the SAS ecu in a BMW i3
//
case I... | 6,510 |
575 | <filename>content/browser/media/session/media_session_controllers_manager.cc
// 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.
#include "content/browser/media/session/media_session_controllers_manager.h"
... | 1,485 |
3,195 | <gh_stars>1000+
'''
Loss metric for QueryDet training
Author: <NAME>
'''
import numpy as np
import mxnet as mx
from core.detection_metric import EvalMetricWithSummary
class LossMetric(EvalMetricWithSummary):
def __init__(self, name, output_names, label_names, **kwargs):
super().__init__(name, output_nam... | 181 |
10,225 |
package io.quarkus.kubernetes.deployment;
import java.util.Map;
import io.dekorate.kubernetes.config.Port;
import io.dekorate.kubernetes.config.PortBuilder;
public class PortConverter {
public static Port convert(Map.Entry<String, PortConfig> e) {
return convert(e.getValue()).withName(e.getKey()).build... | 251 |
1,371 | <filename>codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/S3ExportInternalFeatures.java<gh_stars>1000+
/*
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use th... | 1,312 |
716 | <filename>tools/flang1/flang1exe/commdf.c<gh_stars>100-1000
/*
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
* See https://llvm.org/LICENSE.txt for license information.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/
/** \file
\brief Data definitions for commun... | 648 |
364 | /*
* .file example/oglplus/glx_main.cpp
* Implements GLX-based program main function for running examples
*
* Copyright 2008-2019 <NAME>. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include <oglpl... | 11,801 |
2,542 | //------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
#pragma once
#include <string>
#include <windows.h>
class PathHelper
{
public:
static std:... | 340 |
718 | <reponame>RPUTHUMA/Skater<filename>skater/tests/test_feature_importance.py
import unittest
import numpy as np
from scipy.stats import norm
from scipy.special import expit
from sklearn.linear_model import LinearRegression, LogisticRegression
from sklearn.ensemble import GradientBoostingClassifier
from sklearn import da... | 4,940 |
1,383 | <gh_stars>1000+
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at th... | 10,288 |
348 | {"nom":"Azincourt","circ":"4ème circonscription","dpt":"Pas-de-Calais","inscrits":227,"abs":81,"votants":146,"blancs":0,"nuls":3,"exp":143,"res":[{"nuance":"LR","nom":"<NAME>","voix":108},{"nuance":"REM","nom":"<NAME>","voix":35}]} | 94 |
45,293 | package test;
class GenericArray {
public static void ggff() {
String[] s = GenericArrayKt.ffgg(new String[0]);
}
}
| 54 |
408 | <filename>pywick/gridsearch/grid_test.py
import json
from .gridsearch import GridSearch
my_args = {
'shape': '+plus+',
'animal':['cat', 'mouse', 'dog'],
'number':[4, 5, 6],
'device':['CUP', 'MUG', 'TPOT'],
'flower' : '=Rose='
}
def tryme(args_dict):
print(json.dumps(args_dict, indent=4))
def ... | 443 |
881 | <filename>dev/restinio/http_server_run.hpp
/*
* restinio
*/
/*!
* \file
* \brief Helper function for simple run of HTTP server.
*/
#pragma once
#include <restinio/impl/ioctx_on_thread_pool.hpp>
#include <restinio/http_server.hpp>
namespace restinio
{
//
// break_signal_handling_t
//
/*!
* @brief Indication ... | 10,427 |
440 | <filename>include/options.h
#pragma once
#include <string>
#include "translate.h"
class OptionsContext
{
public:
OptionsContext();
virtual ~OptionsContext();
bool Load();
bool Save();
const bool GetIgnoreFirmwareVersion() const { return m_ignoreFirmwareVersion; }
const Languag... | 174 |
776 | package act.ws;
/*-
* #%L
* ACT Framework
* %%
* Copyright (C) 2014 - 2017 ActFramework
* %%
* 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/... | 4,027 |
28,056 | package com.alibaba.fastjson.deserializer.issues3796.bean;
import java.util.List;
public class ObjectZ1 {
private int a;
private int b;
private int c;
private int d;
private int e;
private List<Integer> f;
private List<Integer> g;
private List<Integer> h;
private... | 690 |
323 | <gh_stars>100-1000
void __declspec(noinline) __declspec(noreturn) NoReturn() {
__asm int 3;
}
void __declspec(noinline) __declspec(noreturn) __declspec(naked) Parent() {
__asm call NoReturn;
}
int main() {
Parent();
}
| 100 |
1,233 | <reponame>ItsMattL/glazier
# Lint as: python3
# Copyright 2020 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... | 450 |
3,269 | # Time: add: O(logn)
# get: O(logn)
# Space: O(n)
from sortedcontainers import SortedList
class SORTracker(object):
def __init__(self):
self.__sl = SortedList()
self.__i = 0
def add(self, name, score):
"""
:type name: str
:type score: int
:rtype: None... | 273 |
2,151 | <filename>src/compiler/glsl/glcpp/tests/066-if-nospace-expression.c
#if(1)
success
#endif
| 39 |
1,056 | <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,344 |
7,629 | <filename>projects/spdlog/fuzz/format_fuzzer.cc<gh_stars>1000+
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICEN... | 840 |
1,056 | <filename>java/javawebstart/src/org/netbeans/modules/javawebstart/J2SERunConfigProviderImpl.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. Th... | 1,059 |
2,151 | // Copyright (c) 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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_WEBORIGIN_REPORTING_SERVICE_PROXY_PTR_HOLDER_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_WEBORIGIN_REPO... | 1,475 |
493 | <filename>src/main/java/com/mauersu/controller/SetConroller.java
package com.mauersu.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.spri... | 588 |
407 | <filename>paas/tesla-authproxy/tesla-authproxy-start/src/main/java/com/alibaba/tesla/ApplicationPrivate.java
package com.alibaba.tesla;
import com.alibaba.tesla.monitor.DatasourceExporterPrivate;
import com.alibaba.tesla.monitor.OkhttpExporter;
import io.prometheus.client.hotspot.DefaultExports;
import io.prometheus.c... | 693 |
348 | <filename>docs/data/leg-t2/068/06804290.json<gh_stars>100-1000
{"nom":"Rustenhart","circ":"4ème circonscription","dpt":"Haut-Rhin","inscrits":654,"abs":400,"votants":254,"blancs":15,"nuls":6,"exp":233,"res":[{"nuance":"REM","nom":"<NAME>","voix":126},{"nuance":"LR","nom":"<NAME>","voix":107}]} | 121 |
2,044 | <filename>grpc-spring-boot-starter/src/main/java/org/lognet/springboot/grpc/security/SecurityInterceptor.java
package org.lognet.springboot.grpc.security;
import io.grpc.Context;
import io.grpc.Contexts;
import io.grpc.ForwardingServerCall;
import io.grpc.ForwardingServerCallListener;
import io.grpc.Metadata;
import i... | 3,265 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-hxw4-2574-h442",
"modified": "2022-05-02T03:26:11Z",
"published": "2022-05-02T03:26:11Z",
"aliases": [
"CVE-2009-1546"
],
"details": "Integer overflow in Avifil32.dll in the Windows Media file handling functional... | 790 |
5,169 | {
"name": "HMKit",
"version": "1.0.0",
"summary": "6th Man Apps helper classes.",
"description": "HMKit provides HoopMetrics developers the fundamental building blocks used to enforce the style and feel of the application.",
"homepage": "https://github.com/6thManApps/HMKit",
"license": "MIT",
"authors": {... | 277 |
554 | /*
* MIT License
*
* Copyright (c) 2020 ManBang Group
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modif... | 1,842 |
2,151 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_BUBBLE_BUBBLE_MANAGER_MOCKS_H_
#define COMPONENTS_BUBBLE_BUBBLE_MANAGER_MOCKS_H_
#include <memory>
#include <utility>
#include "base/... | 745 |
410 | <gh_stars>100-1000
/* plug_openssl.h - plug-in openssl algorithms */
#ifndef RHASH_PLUG_OPENSSL_H
#define RHASH_PLUG_OPENSSL_H
#if defined(USE_OPENSSL) || defined(OPENSSL_RUNTIME)
#ifdef __cplusplus
extern "C" {
#endif
int rhash_plug_openssl(void); /* load openssl algorithms */
unsigned rhash_get_openssl_supported_ha... | 285 |
1,133 | <reponame>vincentschut/isce2<gh_stars>1000+
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Copyright 2013 California Institute of Technology. ALL RIGHTS RESERVED.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance wit... | 1,533 |
463 | <reponame>yangalexandery/rl-teacher
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-03-17 19:07
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('human_feedback_api', '0007_feedback_priority'),
]
... | 232 |
578 | <gh_stars>100-1000
// Copyright (c) 2019 <NAME> <EMAIL>
// This software is provided 'as-is' under the zlib License, see the LICENSE.txt file.
// This notice and the license may not be removed or altered from any source distribution.
#ifdef TWO_MODULES
module;
#include <bgfx/bgfx.h>
#include <gfx/Cpp20.h>
module TW... | 1,610 |
662 | <gh_stars>100-1000
//
// JFImageCollectionViewController.h
// JFImagePickerController
//
// Created by Johnil on 15-7-3.
// Copyright (c) 2014年 Johnil. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface JFImageCollectionViewController : UIViewController
- (UICollectionView *)collectionView;
@end
| 111 |
511 | /******************************************************************
*
* Copyright 2019 Samsung Electronics 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:/... | 10,994 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Villar-Loubière","dpt":"Hautes-Alpes","inscrits":50,"abs":11,"votants":39,"blancs":4,"nuls":2,"exp":33,"res":[{"panneau":"1","voix":21},{"panneau":"2","voix":12}]} | 100 |
315 | #include <bits/stdc++.h>
using namespace std;
using LL = long long;
int main() {
cout << "Total Number of Elements : ";
int n;
cin >> n;
int arr[n];
cout << "Enter the numbers one by one : " << endl;
for (int i = 0; i < n; i++) {
cin >> arr[i];
}
int permutations = 0;
cout << "The different permutati... | 239 |
1,056 | <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
* ... | 3,139 |
8,664 | <reponame>Taritsyn/ChakraCore
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------... | 4,363 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.