max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
3,136 | <filename>xhookwrapper/biz/src/main/java/com/qiyi/biz/Biz.java
package com.qiyi.biz;
/**
* Created by caikelun on 18/01/2018.
*/
public class Biz {
private static final Biz ourInstance = new Biz();
public static Biz getInstance() {
return ourInstance;
}
private Biz() {
}
public sy... | 195 |
3,269 | <filename>C++/string-matching-in-an-array.cpp<gh_stars>1000+
// Time: O(n + m + z) = O(n), n is the total size of patterns
// , m is the total size of query string
// , z is the number of all matched strings
// , O(n) = O(m) = O(z) in this p... | 3,303 |
344 | <filename>include/battle_ai_script_commands.h
#ifndef GUARD_BATTLE_AI_SCRIPT_COMMANDS_H
#define GUARD_BATTLE_AI_SCRIPT_COMMANDS_H
#include "global.h"
void __attribute__((long_call)) BattleAI_HandleItemUseBeforeAISetup(u8 defaultScoreMoves);
void __attribute__((long_call)) BattleAI_SetupAIData(u8 defaultScoreMoves);
/... | 268 |
1,338 | <reponame>Kirishikesan/haiku
/*
* Copyright (c) 1999-2000, <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
... | 2,936 |
390 | <filename>Misc/PythonSQL/DeserializeSavePlots.py
import pyodbc
import pickle
import os
cnxn = pyodbc.connect('DRIVER={SQL Server};SERVER={SERVER_NAME};DATABASE={DB_NAME};UID={USER_NAME};PWD={PASSWORD}')
cursor = cnxn.cursor()
cursor.execute("EXECUTE [dbo].[SerializePlots]")
tables = cursor.fetchall()
for i, table in e... | 182 |
310 | <filename>src/org/jitsi/impl/neomedia/jmfext/media/protocol/androidcamera/PreviewStream.java<gh_stars>100-1000
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file e... | 3,106 |
1,179 | <gh_stars>1000+
//
// NSError+SQRLVerbosityExtensions.h
// Squirrel
//
// Created by <NAME> on 2013-08-05.
// Copyright (c) 2013 GitHub. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSError (SQRLVerbosityExtensions)
// Returns a description of the receiver, without holding back. Includes ... | 148 |
373 | <gh_stars>100-1000
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.media;
import android.media.AudioFormat;
import android.media.AudioManager;
import android.media.AudioTrack;
impo... | 9,149 |
776 | package act.db;
/*-
* #%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/... | 429 |
2,293 | <filename>CMSIS/DoxyGen/Driver/src/Driver_USART.c
/**
\defgroup usart_interface_gr USART Interface
\brief Driver API for Universal Synchronous Asynchronous Receiver/Transmitter (%Driver_USART.h)
\details
The <b>Universal Synchronous Asynchronous Receiver/Transmitter</b> (USART) implements a synchronous and asynchron... | 13,799 |
1,444 | <reponame>GabrielSturtevant/mage
package mage.cards.s;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.ExileTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.const... | 927 |
2,072 | <reponame>defendercrypt/amundsen
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
"""
This is a example script for extracting Feast feature tables
Usage:
python3 sample_feast_loader.py [feast_core] [neo4j_endpoint] [es_url]
For example:
python sample_feast_loader.py fea... | 2,853 |
2,360 | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RRngtools(RPackage):
"""Utility Functions for Working with Random Number Generators
P... | 632 |
481 | <filename>libweston/linux-explicit-synchronization.c<gh_stars>100-1000
/*
* Copyright © 2018 Collabora, Ltd.
*
* 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, includ... | 3,042 |
323 | /*
* Copyright (c) 2014 <NAME> on behalf of AirPair.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mo... | 3,558 |
342 | <filename>kite-data/kite-data-hbase/src/main/java/org/kitesdk/data/hbase/avro/io/ColumnEncoder.java
/**
* Copyright 2013 Cloudera 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
*
... | 1,259 |
1,093 | <reponame>akmeraki/deep-learning-
"""Scripts to run models implemented in yadlt from the command line.""" | 31 |
14,668 | <reponame>chromium/chromium
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_SHARED_HIGHLIGHTING_CORE_COMMON_SHARED_HIGHLIGHTING_METRICS_H_
#define COMPONENTS_SHARED_HIGHLIGHTING_CORE_... | 2,448 |
357 | /*
* Copyright (c) 2012-2015 VMware, 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 applicab... | 676 |
521 | /*
* Copyright (C) 2007 <NAME> <<EMAIL>>.
*
* 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 any later version.
*
* This program is distributed in th... | 989 |
643 | <filename>ReactSkia/views/common/RSkImageUtils.cpp
/*
* Copyright (C) 1994-2021 OpenTV, Inc. and Nagravision S.A.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <math.h>
#include "include/core/SkRect.h"
#include "ReactSki... | 1,336 |
1,131 | // 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,191 |
2,663 | <reponame>lobap/Superalgos<gh_stars>1000+
{
"topic": "Data Mining",
"pageNumber": 1,
"type": "Data Mining - Introduction",
"definition": {
"text": "Data Mining in Superalgos means extracting data from external sources and processing that data in order to have it ready for consumption by trading ... | 1,033 |
3,402 | /*
* 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,121 |
2,692 | <gh_stars>1000+
#!/usr/bin/env python
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
from typing import Set, Tuple
import pytest
from onefuzztypes.primitives import Region
from __app__.onefuzzlib.azure.nsg import ok_to_delete
# Active regions, NSG region, NSG name, expected result
NsgOkT... | 445 |
872 | package cn.zealon.readingcloud.book.controller;
import cn.zealon.readingcloud.book.service.BookService;
import cn.zealon.readingcloud.book.vo.BookVO;
import cn.zealon.readingcloud.common.pojo.book.Book;
import cn.zealon.readingcloud.common.result.Result;
import io.swagger.annotations.*;
import org.springframework.bean... | 636 |
854 | __________________________________________________________________________________________________
sample 52 ms submission
class Solution
{
public:
long long maxSum(vector<int>& arr)
{
long long ans=INT_MIN, curr=0LL;
for(int i=0;i<arr.size();i++)
{
curr+=arr[i];
... | 1,133 |
398 | <reponame>bwcxyk/openjdk-docker
# ------------------------------------------------------------------------------
#
# 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.or... | 17,017 |
412 | package indirect;
public abstract class ThirdInstance implements ThirdInterface {
public ThirdInstance() {
val = TestEnum.Four;
}
private TestEnum val;
public TestEnum getState() {
return val;
}
}
| 85 |
14,668 | <gh_stars>1000+
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include "base/callback_helpers.h"
#include "base/test/task_environment.h"
#include "chrome/browser/nearby_sharing/sche... | 581 |
1,582 | <reponame>carlin-q-scott/AspNet.Security.OAuth.Providers
{
"$schema": "https://raw.githubusercontent.com/justeat/httpclient-interception/master/src/HttpClientInterception/Bundles/http-request-bundle-schema.json",
"items": [
{
"comment": "https://trakt.docs.apiary.io/#reference/authentication-oauth/get-tok... | 762 |
604 | <gh_stars>100-1000
#include "pch.h"
#include "config.hpp"
#include <fstream>
#include <Shlwapi.h>
#include <yaml-cpp/yaml.h>
#pragma comment(lib, "Shlwapi.lib")
Config config{};
bool config_init() {
using namespace std::literals;
config.enable = false;
wchar_t path[MAX_PATH];
GetModuleFileNameW(nu... | 2,299 |
414 | <gh_stars>100-1000
//
// SEInputAccessoryView.h
// RichTextEditor
//
// Created by <NAME> on 13/09/26.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SEInputAccessoryView : UIToolbar
@property (nonatomic, weak) IBOutlet UIBarButtonItem *keyboardButton;
@property (nonatom... | 286 |
2,151 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_WM_PUBLIC_ANIMATION_HOST_H_
#define UI_WM_PUBLIC_ANIMATION_HOST_H_
#include "base/compiler_specific.h"
#include "ui/wm/public/wm_public_export... | 499 |
492 | """
Generic SNMPv2c TRAP
++++++++++++++++++++
Send SNMPv1 TRAP using the following options:
* SNMPv2c
* with community name 'public'
* over IPv4/UDP
* send TRAP notification
* with Uptime 12345
* with Generic Trap #1 (warmStart) and Specific Trap 0
* include managed object information '1.3.6.1.2.1.1.1.0' = 'my system... | 537 |
11,010 | <reponame>da196/System-BQ
package com.google.inject.internal;
/**
* Class used for restricting APIs in other packages to only be used by this package.
*
* <p>Other packages can reference this class but only this package can reference an instance of it,
* so adding this class as a method param ensures that only thi... | 135 |
2,504 | <gh_stars>1000+
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF ... | 570 |
14,668 | <filename>chrome/test/data/webui/certificate_viewer_ui_test-inl.h
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_TEST_DATA_WEBUI_CERTIFICATE_VIEWER_UI_TEST_INL_H_
#define CHROME_TEST... | 911 |
388 | <filename>AccordionPanel/src/java/example/MainPanel.java
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.Arrays;
import java.util.List;
import java.util.stream.S... | 2,627 |
3,285 | """
Copyright 2013 <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 writing, software
distrib... | 1,949 |
325 | package com.box.l10n.mojito.service.repository.statistics;
import com.box.l10n.mojito.entity.Repository;
import com.box.l10n.mojito.quartz.QuartzJobInfo;
import com.box.l10n.mojito.quartz.QuartzPollableTaskScheduler;
import com.box.l10n.mojito.service.repository.statistics.RepositoryStatisticsJob;
import com.box.l10n.... | 439 |
666 | <gh_stars>100-1000
/**
*
* Copyright 2018 iQIYI.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 368 |
1,020 | <filename>javadoc-taglet/src/main/java/org/robobinding/doctaglet/PropTaglet.java
package org.robobinding.doctaglet;
import java.text.MessageFormat;
import java.util.Map;
import com.sun.javadoc.Doc;
import com.sun.javadoc.Tag;
import com.sun.tools.doclets.formats.html.TagletOutputImpl;
import com.sun.tools.doc... | 1,204 |
458 | /*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2017 GwtMaterialDesign
* %%
* 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
* ... | 3,185 |
1,570 | <reponame>pavanv/django-tastypie
from django.conf.urls import include, url
from core.tests.api import Api, NoteResource, UserResource
api = Api()
api.register(NoteResource())
api.register(UserResource())
urlpatterns = [
url(r'^api/', include(api.urls)),
]
| 98 |
823 | //
// BaseViewController.h
// MierMilitaryNews
//
// Created by 李响 on 15/9/10.
// Copyright (c) 2015年 miercn. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MierNavigationBar.h"
#import "AppDelegate.h"
#import "UINavigationController+FDFullscreenPopGesture.h"
@interface BaseViewController : UIViewCon... | 243 |
3,102 | /* For use with the objc_property.m PCH test */
@interface TestProperties
{
int value;
float percentage;
}
+ alloc;
@property int value;
@property float percentage;
@end
| 57 |
845 | <reponame>bitbrain-za/Open-Home-Automation
///////////////////////////////////////////////////////////////////////////
// CONFIGURATION - HARDWARE
///////////////////////////////////////////////////////////////////////////
// Door sensor
#define DOOR_SENSOR D3
#if defined(DOOR_SENSOR)
#define DOOR_... | 1,394 |
5,836 | //
// Copyright 2016 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 502 |
371 | import os
import sys
import traceback
from configparser import ConfigParser
from contextlib import contextmanager
from pathlib import Path
from typing import (
Any,
Dict,
Iterator,
List,
Mapping,
NamedTuple,
Optional,
Set,
Tuple,
Union,
)
import tomli
from packaging.specifiers i... | 9,643 |
2,268 | <filename>sp/src/game/client/fx_interpvalue.h
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#ifndef FX_INTERPVALUE_H
#define FX_INTERPVALUE_H
#ifdef _WIN32
#pragma once
#endif
// Types of ... | 421 |
725 | <reponame>vexofp/hyperion<filename>libsrc/utils/jsonschema/JsonSchemaChecker.cpp
// stdlib includes
#include <cassert>
#include <iterator>
#include <sstream>
#include <algorithm>
// Utils-Jsonschema includes
#include <utils/jsonschema/JsonSchemaChecker.h>
JsonSchemaChecker::JsonSchemaChecker()
{
// empty
}
JsonSche... | 4,082 |
335 | {
"word": "Discrimination",
"definitions": [
"The unjust or prejudicial treatment of different categories of people, especially on the grounds of race, age, or sex.",
"Recognition and understanding of the difference between one thing and another.",
"The ability to judge what is of high q... | 172 |
310 | {
"name": "Sonos (Mac)",
"description": "A Mac client for the music streaming devices.",
"url": "http://www.sonos.com/support?r=1"
} | 50 |
1,259 | from django.apps import AppConfig
class InvitesConfig(AppConfig):
name = "organisations.invites"
| 32 |
4,493 | <filename>audio_logger.cpp
/*! \file audio_logger.cpp
* \brief Enter description here.
* \author <NAME>
*/
#include "audio_logger.h"
#include <SDL.h>
#include <SDL_audio.h>
#include <mutex>
#include <atomic>
#include <algorithm>
#ifndef pi
#define pi 3.1415926535897932384626433832795
#endif
#ifndef sqrt2
#de... | 5,509 |
1,133 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Copyright 2012 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 with the License.
// You may obtain a copy... | 2,615 |
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... | 688 |
435 | <gh_stars>100-1000
{
"copyright_text": null,
"description": "",
"duration": 2251,
"language": "kor",
"recorded": "2018-08-18",
"related_urls": [
{
"label": "Conference schedule",
"url": "https://www.pycon.kr/2018/en/program/schedule/"
}
],
"speakers": [],
"tags": [],
"thumbnail_u... | 323 |
1,006 | /****************************************************************************
* sched/paging/pg_miss.c
*
* 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.... | 2,025 |
608 | /*
* 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.
*/
package com.facebook.battery.serializer.healthstats;
import android.os.Build;
import androidx.annotation.Nullable;
import androidx... | 2,246 |
506 | /*
* Copyright 2020. 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.org/licenses/LICENSE-2.0
Unless required... | 738 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-f933-7c3x-46v4",
"modified": "2022-04-14T00:00:42Z",
"published": "2022-04-05T00:00:22Z",
"aliases": [
"CVE-2021-32994"
],
"details": "Softing OPC UA C++ SDK (Software Development Kit) versions from 5.59 to 5.64 exported library functions don't properly validat... | 449 |
1,209 | <filename>u8g2/csrc/u8x8_d_ssd1306_128x64_noname.c
#include "u8x8.h"
static const uint8_t u8x8_d_ssd1306_128x64_noname_init_seq[] = {
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
U8X8_C(0x0ae), /* display off */
U8X8_CA(0x0d5, 0x080), ... | 3,093 |
794 | <filename>coap/src/main/java/org/apache/mina/coap/CoapCode.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 licenses this file
* ... | 1,738 |
10,876 | {
"name": "xtensor-io",
"version": "0.13.0",
"port-version": 1,
"description": "xtensor plugin to read and write images, audio files, numpy (compressed) npz and HDF5",
"homepage": "https://github.com/xtensor-stack/xtensor-io",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
... | 192 |
2,059 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <dlfcn.h>
#include "wrappedlibs.h"
#include "debug.h"
#include "wrapper.h"
#include "bridge.h"
#include "librarian/library_private.h"
#include "x86emu.h"
#include "emu/x86emu_private.h"
#in... | 4,098 |
302 | #include <strings.h>
int ffs(int i)
{
static const unsigned char table[] =
{
0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,... | 640 |
4,874 | <reponame>RapotOR/gocv
#include "../core.h"
#include "cuda.h"
#include "objdetect.h"
// CascadeClassifier_GPU
CascadeClassifier_GPU CascadeClassifier_GPU_Create(const char* cascade_name) {
return new cv::Ptr<cv::cuda::CascadeClassifier>(cv::cuda::CascadeClassifier::create(cascade_name));
}
struct Rects CascadeC... | 1,752 |
777 | <reponame>google-ar/chromium<filename>gpu/command_buffer/tests/gl_texture_mailbox_unittest.cc
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <G... | 7,558 |
3,151 | <filename>src/main/java/com/rarchives/ripme/ripper/rippers/FitnakedgirlsRipper.java
package com.rarchives.ripme.ripper.rippers;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.... | 903 |
2,338 | // RUN: %clang_cc1 -triple x86_64-linux-gnu -fsyntax-only -verify %s
// RUN: %clang_cc1 -triple x86_64-linux-gnu -ffp-exception-behavior=strict -DSTRICT -fsyntax-only -verify %s
// RUN: %clang_cc1 -triple x86_64-linux-gnu -x c++ -DCPP -DSTRICT -ffp-exception-behavior=strict -fsyntax-only -verify %s
#ifdef CPP
#define C... | 686 |
504 | <reponame>ekoATgithub/dddlib<filename>dddlib-spring-test/src/test/java/org/dayatang/springtest/test/CustomBean.java
package org.dayatang.springtest.test;
import org.springframework.beans.factory.InitializingBean;
//@Service("customBean")
public class CustomBean implements InitializingBean {
@Override
public void a... | 162 |
1,635 | """Support for Synology DSM buttons."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
import logging
from typing import Any, Final
from homeassistant.components.button import (
ButtonDeviceClass,
ButtonEntity,
ButtonEntityDescription,
)
from home... | 1,045 |
584 | <reponame>FelixPetriconi/libraries<gh_stars>100-1000
/*
Copyright 2017 Adobe
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)
*/
/*******************************************************************************... | 554 |
4,140 | <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,037 |
4,569 | package com.brianway.learning.java.multithread.lock.example1;
/**
* Created by brian on 2016/4/15.
*/
public class ThreadC extends Thread {
private ServiceC service;
public ThreadC(ServiceC service) {
this.service = service;
}
@Override
public void run() {
service.await();
}... | 123 |
348 | {"nom":"Pluzunet","circ":"4ème circonscription","dpt":"Côtes-d'Armor","inscrits":767,"abs":374,"votants":393,"blancs":31,"nuls":14,"exp":348,"res":[{"nuance":"SOC","nom":"<NAME>","voix":187},{"nuance":"REM","nom":"<NAME>","voix":161}]} | 96 |
892 | <filename>advisories/unreviewed/2022/04/GHSA-h9jq-pm5v-hr69/GHSA-h9jq-pm5v-hr69.json
{
"schema_version": "1.2.0",
"id": "GHSA-h9jq-pm5v-hr69",
"modified": "2022-04-29T02:59:47Z",
"published": "2022-04-29T02:59:47Z",
"aliases": [
"CVE-2004-1555"
],
"details": "Multiple SQL injection vulnerabilities in ... | 773 |
903 | <filename>vole-modules/vole-casclient/src/main/java/com/github/vole/casclient/filter/HttpParamsFilter.java<gh_stars>100-1000
package com.github.vole.casclient.filter;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSessi... | 385 |
1,909 | package org.knowm.xchange.lykke;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.io.InputStream;
import org.junit.Test;
import org.knowm.xchange.lykke.dto.account.LykkeWallet;
public class LykkeAccountT... | 402 |
190,993 | /* Copyright 2020 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 applicable law or a... | 2,580 |
7,892 | <reponame>CHRYSICS/audacity
/*!********************************************************************
Audacity: A Digital Audio Editor
@file DBConnection.cpp
@brief Implements DBConnection
<NAME> -- split from ProjectFileIO.cpp
**********************************************************************/
#include "DBConne... | 9,137 |
1,107 | /**
* @file pause/pause.c
*
* Yori shell wait for the user to press a key
*
* Copyright (c) 2017-2018 <NAME>
*
* 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 restri... | 1,681 |
4,845 | <gh_stars>1000+
package cn.dev33.satoken.reactor.context;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;
/**
* Reactor上下文操作 [异步]
* @author kong
*
*/
public class SaReactorHolder {
/**
* key
*/
public static final Class<ServerWebExchange> CONTEXT_KEY = Serve... | 488 |
348 | {"nom":"Ablon","circ":"4ème circonscription","dpt":"Calvados","inscrits":927,"abs":408,"votants":519,"blancs":5,"nuls":1,"exp":513,"res":[{"nuance":"REM","nom":"<NAME>","voix":196},{"nuance":"LR","nom":"Mme <NAME>","voix":137},{"nuance":"FN","nom":"M. <NAME>","voix":77},{"nuance":"FI","nom":"M. <NAME>","voix":34},{"nua... | 315 |
482 | /*
* Copyright 2012, The Android Open Source Project
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and ... | 1,088 |
6,717 | <filename>include/GameKit/GKPlayer.h<gh_stars>1000+
//******************************************************************************
//
// Copyright (c) 2016 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF A... | 576 |
2,645 | <reponame>Stexxen/spring-data-elasticsearch
/**
* Classes and interfaces used by the code that uses Elasticsearch 7 client libraries
*/
@org.springframework.lang.NonNullApi
@org.springframework.lang.NonNullFields
package org.springframework.data.elasticsearch.core.clients.elasticsearch7;
| 86 |
625 | /*
* 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 ... | 7,454 |
436 | import sys
class App:
def __init__(self, scope):
assert scope["type"] == "http"
self.scope = scope
async def __call__(self, receive, send):
await send(
{
"type": "http.response.start",
"status": 200,
"headers": [[b"content-ty... | 314 |
5,766 | <gh_stars>1000+
//
// ODBCException.cpp
//
// Library: Data/ODBC
// Package: ODBC
// Module: ODBCException
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Data/ODBC/ODBCException.h"
#include <typeinfo>
namespace ... | 268 |
543 | /* NiuTrans.Tensor - an open-source tensor library
* Copyright (C) 2020, Natural Language Processing Lab, Northeastern University.
* 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 o... | 445 |
879 | <reponame>qianfei11/zstack
package org.zstack.sdk;
public class DeleteMulticastRouterResult {
}
| 40 |
683 | package cn.byhieg.annotationstutorial;
import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.Messager;
import javax.annotation.processing.ProcessingEnvironment;
import javax.annotation.processing.RoundEnvironment;
import javax.lang.model.SourceVersion;
import javax.lang.model.element... | 2,457 |
666 | <gh_stars>100-1000
package com.didispace.scca.plugin.git;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Created by 程序猿DD/翟永超 on 2018/4/24.
* <p>
* Blog: http://blog.didispace.com/
* Github: https://g... | 514 |
6,969 | #include<iostream>
using namespace std;
int remDups(int arr[], int n)
{
int temp[n];
temp[0] = arr[0];
int res = 1;
for(int i=0; i<n; i++)
{
if(temp[res-1] != arr[i])
{
temp[res] = arr[i];
res++;
}
}
for(int i=0; i<n; i++)
{
arr[i]... | 423 |
407 | package com.alibaba.tesla.appmanager.domain.req;
import com.alibaba.fastjson.JSONObject;
import lombok.Data;
/**
* 应用元信息更新请求
*
* @author <EMAIL>
*/
@Data
public class AppMetaUpdateReq {
/**
* 应用唯一标识
*/
private String appId;
/**
* 应用 Options
*/
private JSONObject options;
... | 223 |
575 | <reponame>sarang-apps/darshan_browser
// 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 CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_HANDLER_DELEGATE_H_
#define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_HANDLE... | 851 |
834 | <gh_stars>100-1000
// System::Windows::Forms::TreeNode.ImageIndex
// System::Windows::Forms::TreeNode.SelectedImageIndex
// System::Windows::Forms::TreeView.ImageIndex
// System::Windows::Forms::TreeView::SelectedImageIndex
// System::Windows::Forms::TreeView::ImageList
// System::Windows::Forms::TreeNode::TreeNode(S... | 2,304 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.