max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
354 | <reponame>iabernikhin/VK-GL-CTS
#ifndef _VKTMULTIVIEWRENDERPASSUTIL_HPP
#define _VKTMULTIVIEWRENDERPASSUTIL_HPP
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2018 The Khronos Group Inc.
*
* Licensed under the Apac... | 3,508 |
720 | <filename>src/integrationTest/java/com/pubnub/api/integration/objects/uuid/UUIDMetadataIT.java
package com.pubnub.api.integration.objects.uuid;
import com.pubnub.api.PubNubException;
import com.pubnub.api.integration.objects.ObjectsApiBaseIT;
import com.pubnub.api.models.consumer.objects_api.uuid.PNGetAllUUIDMetadataR... | 3,795 |
14,668 | <gh_stars>1000+
// 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.
#include "chrome/browser/ui/global_media_controls/media_toolbar_button_controller.h"
#include "chrome/browser/ui/global_media_controls/me... | 628 |
1,064 | typedef struct {
SPFLOAT value;
SPFLOAT target;
SPFLOAT rate;
int state;
SPFLOAT attackRate;
SPFLOAT decayRate;
SPFLOAT sustainLevel;
SPFLOAT releaseRate;
SPFLOAT atk;
SPFLOAT rel;
SPFLOAT sus;
SPFLOAT dec;
int mode;
} sp_tadsr;
int sp_tadsr_create(sp_tadsr **p);
int... | 244 |
677 | <reponame>InfiniteSynthesis/lynx-native
#ifndef LYNX_GL_CANVAS_LYNX_TEXTURE_H_
#define LYNX_GL_CANVAS_LYNX_TEXTURE_H_
#include <EGL/egl.h>
#include <GLES2/gl2.h>
namespace canvas {
class LxTexture {
public:
void Bind() { glBindTexture(GL_TEXTURE_2D, id_); }
void UnBind() { glBindTexture(GL_TEXTURE_2D, 0); }
G... | 856 |
1,194 | <gh_stars>1000+
package ca.uhn.fhir.tinder.model;
public class AnyChild extends Child {
@Override
public String getReferenceType() {
return "IDatatype";
}
@Override
public String getAnnotationType() {
return getReferenceType();
}
@Override
public boolean isSingleChildInstantiable() {
return false;
}
... | 112 |
3,363 | from torch2trt.torch2trt import *
def is_private(method):
method = method.split('.')[-1] # remove prefix
return method[0] == '_' and method[1] != '_'
def is_function_type(method):
fntype = eval(method + '.__class__.__name__')
return fntype == 'function' or fntype == 'builtin_function_or_method' or ... | 451 |
1,694 | <filename>stagemonitor-web-servlet/src/test/java/org/stagemonitor/web/servlet/jaxrs/JaxRsRequestNameDeterminerTransformerTest.java
package org.stagemonitor.web.servlet.jaxrs;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.st... | 1,768 |
880 | /**
* Copyright 2019 <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 wr... | 1,646 |
9,402 | #ifdef ENABLE_EXPERIMENT_TIERED
#ifndef __MONO_MINI_TIERED_H__
#define __MONO_MINI_TIERED_H__
#define TIERED_PATCH_KIND_INTERP 0
#define TIERED_PATCH_KIND_JIT 1
#define TIERED_PATCH_KIND_NUM 2
typedef struct {
int hotness;
gboolean promoted;
} MiniTieredCounter;
typedef struct {
gint64 methods_promoted;
} MiniTi... | 352 |
315 | <reponame>BenjaFriend/EngineBay<filename>FlingEngine/Gameplay/inc/World.inl
#pragma once
#include "World.h"
#include "Components/Transform.h"
#include "MeshRenderer.h"
#include "Lighting/DirectionalLight.hpp"
#include "Lighting/PointLight.hpp"
// Definition of what world components we want to serialize to the disk wh... | 673 |
526 | <reponame>rychagova/egeria<filename>open-metadata-implementation/admin-services/admin-services-api/src/main/java/org/odpi/openmetadata/adminservices/configuration/registration/package-info.java
/* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
/**
* The registration pa... | 156 |
348 | <filename>docs/data/leg-t2/053/05301016.json
{"nom":"Bais","circ":"1ère circonscription","dpt":"Mayenne","inscrits":883,"abs":460,"votants":423,"blancs":30,"nuls":10,"exp":383,"res":[{"nuance":"SOC","nom":"<NAME>","voix":240},{"nuance":"REM","nom":"Mme <NAME>","voix":143}]} | 110 |
580 | <reponame>b2220333/convnet-drawer<gh_stars>100-1000
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from convnet_drawer import Model, Conv2D, MaxPooling2D, Flatten, Dense, config
from matplotlib_util import save_model_to_file
from matplotlib import pyplot as plt
plt.xkc... | 461 |
900 | <filename>java/foam/android/view/EditIntBridge.java<gh_stars>100-1000
package foam.android.view;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.EditText;
import foam.core.Value;
/**
* View bridge that binds an {@link EditText} to a FOAM {@link Value<Integer>}.
*/
public cla... | 276 |
646 | <reponame>monocilindro/qgis-earthengine-examples<gh_stars>100-1000
# GitHub URL: https://github.com/giswqs/qgis-earthengine-examples/tree/master/ImageCollection/select_image_by_index.py
import ee
from ee_plugin import Map
collection = ee.ImageCollection('LANDSAT/LC08/C01/T1_TOA')\
.filter(ee.Filter.eq('WRS_PATH',... | 281 |
1,431 | from .base import login_manager, handle_bad_request, handle_unauthorized_access, handle_access_forbidden, handle_page_not_found, handle_internal_server_error
from .index import index_bp
from .user import user_bp
from .dashboard import dashboard_bp
from .domain import domain_bp
from .admin import admin_bp
from .api imp... | 316 |
1,755 | /* Copyright 2018 University Corporation for Atmospheric
Research/Unidata. See COPYRIGHT file for more info. */
/**
@file
The functions in this file define, inquire about, and rename
dimensions.
*/
#include "ncdispatch.h"
/**
@defgroup dimensions Dimensions
Dimensions are used to define the shape ... | 5,876 |
1,403 | #!/usr/bin/env python
#
# __COPYRIGHT__
#
# 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, modify, merge, publish,
... | 2,748 |
647 | <reponame>shixiongjing/DeepRobust
import numpy as np
# ---------------------attack config------------------------#
attack_params = {
"FGSM_MNIST": {
'epsilon': 0.2,
'order': np.inf,
'clip_max': None,
'clip_min': None
},
"PGD_CIFAR10": {
'epsilon': 0.1,
'clip_max': 1.0,
'clip_min... | 771 |
392 | <reponame>Da-Krause/settlers-remake
/*******************************************************************************
* Copyright (c) 2016 - 2018
*
* 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 Sof... | 1,384 |
22,688 | /******************************************************************************
* Copyright 2019 The Apollo 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
... | 677 |
3,372 | <reponame>rbalamohan/aws-sdk-java
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com... | 4,476 |
338 | package com.tvd12.ezyfoxserver.testing.service;
import org.testng.annotations.Test;
public class EzyResponseSerializerTest {
@Test
public void test() {
}
}
| 68 |
14,668 | // 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.
#include "ash/public/cpp/shelf_config.h"
#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_view.h"
#include "ash/shelf/shelf_view_test_api.h"
#includ... | 1,794 |
1,091 | #!/usr/bin/python
from onosnet import run
from regionabc import RegionABC
run( RegionABC() )
| 31 |
5,957 | <filename>sample/src/main/java/com/yarolegovich/discretescrollview/sample/shop/Shop.java
package com.yarolegovich.discretescrollview.sample.shop;
import android.content.Context;
import android.content.SharedPreferences;
import com.yarolegovich.discretescrollview.sample.App;
import com.yarolegovich.discretescrollview.... | 631 |
587 | /*
* Copyright (C) 2013 salesforce.com, 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 ... | 2,515 |
473 | <reponame>pingjuiliao/cb-multios
/*
Author: <NAME> <<EMAIL>>
Copyright (c) 2015 Cromulence LLC
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 t... | 1,838 |
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.
#include "chrome/browser/ui/extensions/extension_message_bubble_bridge.h"
#include <utility>
#include "chrome/browser/extensions/extension_message_bubbl... | 1,622 |
778 | <gh_stars>100-1000
// | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Author <NAME> and <NAME>
//... | 8,693 |
4,054 | <filename>ann_benchmark/src/tests/ann_benchmark/test_angular.py
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
import pytest
import sys
import os
import math
sys.path.insert(0, os.path.abspath("../../vespa/ann_benchmark"))
from vespa_ann_benchmark import Distanc... | 679 |
1,143 | <reponame>DotModus/pinball
# Copyright 2015, Pinterest, 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 applicab... | 4,253 |
1,125 | // Copyright (c) Facebook, Inc. and its affiliates.
// All rights reserved.
//
// Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <gtest/gtest.h>
#include <xnnpack/common.h>
#include <xnnpack/isa-... | 1,427 |
1,794 | <reponame>chauvu/AmpliGraph
# Copyright 2019-2021 The AmpliGraph Authors. All Rights Reserved.
#
# This file is Licensed under the Apache License, Version 2.0.
# A copy of the Licence is available in LICENCE, or at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
from .EmbeddingModel import EmbeddingModel
from .Tr... | 209 |
1,144 | /*
* Copyright (C) 2010 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#... | 3,580 |
320 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
from hachoir.wx.dialogs import file_save_dialog
import wx
class field_menu_t:
def __init__(self, parent, menu):
self.parent = parent
self.menu = menu
# forward this call because xrc doesn't allow menu
# subclassing (as of 2.6.3)
... | 268 |
998 | <reponame>ADMTec/VoxelPlugin<gh_stars>100-1000
// Copyright 2021 Phyronnaz
#pragma once
#include "CoreMinimal.h"
#include "VoxelTools/Tools/VoxelToolBase.h"
#include "VoxelTrimTool.generated.h"
UCLASS()
class VOXEL_API UVoxelTrimTool : public UVoxelToolBase
{
GENERATED_BODY()
public:
UPROPERTY(Categ... | 429 |
724 | <filename>services/metric-service/src/test/java/com/amazon/aws/partners/saasfactory/saasboost/ExampleConstants.java
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the L... | 1,439 |
303 | <reponame>ofZach/landlinesApp
{"id":6022,"line-1":"Province de Diego-Suarez","line-2":"Madagascar","attribution":"©2015 DigitalGlobe","url":"https://www.google.com/maps/@-12.832598,49.854798,17z/data=!3m1!1e3"} | 87 |
407 | package com.alibaba.tesla.appmanager.server.addon;
import com.alibaba.tesla.appmanager.common.enums.ComponentTypeEnum;
import com.alibaba.tesla.appmanager.domain.schema.ComponentSchema;
import com.alibaba.tesla.appmanager.server.addon.req.ApplyAddonInstanceReq;
import com.alibaba.tesla.appmanager.server.addon.req.Rele... | 749 |
354 | /*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2016 Google Inc.
* Copyright (c) 2016 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | 1,518 |
411 | <reponame>elihschiff/Submitty
/* OUTPUT: ERROR: ABORT SIGNAL
* Program Terminated
* (RED) WARNING: This file should be empty (Refering to STDERR)
* Student Standard ERROR (STDERR)
* *** Error in `./a.out': free(): invalid next size (fast): 0x0000000000efa
* Child exited with status ... | 232 |
14,668 | // Copyright 2021 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.content.browser.accessibility;
import static org.chromium.content.browser.accessibility.AccessibilityContentShellTestUtils.ANP_ERROR... | 5,123 |
312 | /*
* Copyright 2014-2015 <NAME>. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#ifndef OCORNUT_IMGUI_H_HEADER_GUARD
#define OCORNUT_IMGUI_H_HEADER_GUARD
#include <ocornut-imgui/imgui.h>
namespace bx { struct AllocatorI; }
void IMGUI_create(const void* _data, uint32_t _... | 242 |
988 | /*
* PROGRAM: Security data base manager
* MODULE: call_service.h
* DESCRIPTION: Invokes remote service manager to work with security DB.
*
* The contents of this file are subject to the Initial
* Developer's Public License Version 1.0 (the "License");
* you may not use this file except in compliance with th... | 462 |
334 | // The MIT License(MIT)
//
// Copyright(c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// 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 witho... | 16,993 |
9,156 | <filename>pulsar-broker/src/test/java/org/apache/pulsar/client/impl/PartialPartitionedProducerTest.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 c... | 4,442 |
5,459 | <reponame>minjaes01/react-native-interactable
package com.wix.interactable.physics;
import android.graphics.Point;
import android.graphics.PointF;
/**
* Created by rotemm on 09/02/2017.
*/
public class PhysicsObject {
PointF velocity;
float mass;
public PhysicsObject() {
this.velocity = new P... | 197 |
303 | <filename>tests/35_sizeof.c
#include <stdio.h>
char a;
short b;
printf("%d %d\n", sizeof(char), sizeof(a));
printf("%d %d\n", sizeof(short), sizeof(b));
void main() {}
| 73 |
342 | #include "mainwindow.h"
#include <QApplication>
#include <QDebug>
#include <QStringList>
#include <QTranslator>
#include <QLocale>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QString systemLang = QLocale::languageToString(QLocale::system().language());
QTranslator t;
if(systemLang... | 354 |
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.loadtestservice.implementation;
import com.azure.core.annotation.BodyParam;
import com.azure.core.annotation.Delete;
import com.... | 25,077 |
353 | #pragma once
#include <c10/core/Allocator.h>
#include <c10/core/DeviceType.h>
// Use of c10::hip namespace here makes hipification easier, because
// I don't have to also fix namespaces. Sorry!
namespace c10 { namespace hip {
// Takes a valid HIPAllocator (of any sort) and turns it into
// an allocator pr... | 330 |
387 | <filename>SystemExplorer/ProcessPropertiesDlg.h
#pragma once
#include "resource.h"
#include "ProcessInfoEx.h"
#include "ProcessManager.h"
class CProcessPropertiesDlg :
public CDialogImpl<CProcessPropertiesDlg>,
public CDynamicDialogLayout<CProcessPropertiesDlg> {
public:
enum { IDD = IDD_PROCESS_PROPERTIES };
CP... | 1,045 |
1,991 | //
// DGActivityIndicatorRotatingTrigonsAnimation.h
// DGActivityIndicatorExample
//
// Created by tripleCC on 15/6/26.
// Copyright (c) 2015年 <NAME>. All rights reserved.
//
#import "DGActivityIndicatorAnimation.h"
@interface DGActivityIndicatorRotatingTrigonAnimation: DGActivityIndicatorAnimation
@end
| 97 |
867 | """
Copyright 2016 Deepgram
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
distri... | 410 |
32,544 | <reponame>DBatOWL/tutorials<filename>core-java-modules/core-java-string-algorithms-3/src/test/java/com/baeldung/isuppercase/StringFirstCharacterUppercaseUnitTest.java
package com.baeldung.isuppercase;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;... | 421 |
2,151 | <reponame>rio-31/android_frameworks_base-1
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licens... | 741 |
662 | <gh_stars>100-1000
///////////////////////////////////////////////////////////////////////////////
//
// AutobahnJava - http://crossbar.io/autobahn
//
// Copyright (c) Crossbar.io Technologies GmbH and contributors
//
// Licensed under the MIT License.
// http://www.opensource.org/licenses/mit-license.php
//
//... | 273 |
1,056 | <reponame>timfel/netbeans
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.... | 3,980 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 7,277 |
456 | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2004-2020 <NAME>
// All rights reserved.
#include <djvUIComponents/IOSettingsWidget.h>
#include <djvUIComponents/IOSettings.h>
#include <djvUI/FormLayout.h>
#include <djvUI/IntSlider.h>
#include <djvUI/SettingsSystem.h>
#include <djvSystem/Context.h>
#inclu... | 2,228 |
2,536 | package cn.pedant.SafeWebViewBridge;
import android.text.TextUtils;
import android.webkit.WebView;
import android.util.Log;
import com.google.gson.Gson;
import org.json.JSONArray;
import org.json.JSONObject;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.HashMap;
public class ... | 4,587 |
2,542 | <reponame>gridgentoo/ServiceFabricAzure
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------------------------------------------------... | 5,214 |
324 | /*
* 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,099 |
2,978 | /*
* Copyright Strimzi authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.strimzi.systemtest.annotations;
import io.strimzi.test.k8s.KubeClusterResource;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
impor... | 639 |
555 | [
{
"outputFile": "plugins/Chart/css/chart.css",
"inputFile": "plugins/Chart/css/chart.less"
},
{
"outputFile": "plugins/Chart/css/chartform.css",
"inputFile": "plugins/Chart/css/chartform.less"
},
{
"outputFile": "plugins/Chart/css/mindatarep.css",
"inputFile": "plugins/Chart/css/min... | 242 |
852 | <reponame>ckamtsikis/cmssw
#ifndef _ConfigurableAdaptiveReconstructor_H_
#define _ConfigurableAdaptiveReconstructor_H_
#include "RecoVertex/ConfigurableVertexReco/interface/AbstractConfReconstructor.h"
/**
* Wrap any VertexFitter into the VertexReconstructor interface
*/
class ConfigurableAdaptiveReconstructor : ... | 487 |
369 | // Copyright (c) 2017-2021, Mudit<NAME>. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#ifndef PUREPHONE_RT1051CELLULARAUDIO_HPP
#define PUREPHONE_RT1051CELLULARAUDIO_HPP
#include "SAIAudioDevice.hpp"
#include "fsl_sai_edma.h"
#include "FreeRTOS.h"
#include "task.h"
#includ... | 1,111 |
407 | <reponame>sld-columbia/nvdla-sw<gh_stars>100-1000
# Copyright (c) 2017, 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 met:
# * Redistributions of source code must retain the abov... | 1,954 |
2,338 | // RUN: %clang_cc1 -fblocks -fsyntax-only -Wunused-but-set-parameter -verify %s
int f0(int x,
int y, // expected-warning{{parameter 'y' set but not used}}
int z __attribute__((unused))) {
y = 0;
return x;
}
void f1(void) {
(void)^(int x,
int y, // expected-warning{{parameter 'y' set but ... | 303 |
811 | <reponame>mitsuhiko/lol-html<filename>c-api/tests/src/test_comment_api.c
#include "../../include/lol_html.h"
#include "deps/picotest/picotest.h"
#include "tests.h"
#include "test_util.h"
static int EXPECTED_USER_DATA = 42;
//-------------------------------------------------------------------------
EXPECT_OUTPUT(
... | 3,549 |
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.
#include "chrome/browser/browsing_data/counters/browsing_data_counter_utils.h"
#include <string>
#include <vector>
#include "base/strings/stringprintf.h... | 1,835 |
852 | #include "DataFormats/CastorReco/interface/CastorCluster.h"
reco::CastorCluster::CastorCluster(const double energy,
const ROOT::Math::XYZPoint& position,
const double emEnergy,
const double hadEnergy,
... | 575 |
2,342 | <reponame>cameled/GacUI
/***********************************************************************
!!!!!! DO NOT MODIFY !!!!!!
Source: Host.sln
This file is generated by Workflow compiler
https://github.com/vczh-libraries
***********************************************************************/
#ifndef VCZH_WORKFLOW_C... | 140 |
2,151 | <reponame>zack-braun/4607_NS
#! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
| 65 |
2,231 | <filename>engine/sound/src/devices/device_openal.cpp
// Copyright 2020 The Defold Foundation
// Licensed under the Defold License version 1.0 (the "License"); you may not use
// this file except in compliance with the License.
//
// You may obtain a copy of the License, together with FAQs at
// https://www.defold.com/... | 3,265 |
3,172 | import logging
from authlib.jose import jwt
from authlib.jose.errors import JoseError
from ..rfc6749 import InvalidClientError
ASSERTION_TYPE = 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer'
log = logging.getLogger(__name__)
class JWTBearerClientAssertion(object):
"""Implementation of Using JWTs for Cl... | 1,855 |
967 | //
// ECOGeneralLogPlugin.h
// EchoSDK
//
// Created by yxj on 2019/8/6.
//
#import "ECOBasePlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface ECOGeneralLogPlugin : ECOBasePlugin
@end
NS_ASSUME_NONNULL_END
| 93 |
1,920 | <reponame>tirkarthi/mathics-core
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pytest
from .helper import evaluate
try:
import scipy.integrate
usescipy = True
except:
usescipy = False
if usescipy:
methods = ["Automatic", "Romberg", "Internal", "NQuadrature"]
generic_tests_for_nintegr... | 637 |
5,169 | <reponame>Gantios/Specs
{
"name": "StompX",
"version": "1.0.1",
"summary": "Robust Websocket STOMP client for real-time messaging and events",
"swift_versions": [
"4.0",
"4.2",
"5.0"
],
"description": "Robust Websocket STOMP client for real-time messaging and events. STOMP allows for subscribing... | 368 |
617 | // Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#ifndef _OE_BITS_STDFILE_H
#define _OE_BITS_STDFILE_H
#define OE_BUFSIZ 8192
#define OE_EOF (-1)
typedef struct _OE_IO_FILE OE_FILE;
extern OE_FILE* const oe_stdin;
extern OE_FILE* const oe_stdout;
extern OE_FILE* const oe_stderr;
#i... | 216 |
316 | <gh_stars>100-1000
#include <type_traits>
#include <cstdio>
#include <cmath>
#include <vector>
#include <string>
#include "../usdi/usdi.h"
using usdi::float2;
using usdi::float3;
using usdi::float4;
using usdi::quatf;
template<class T> void* ToPtr(const T& v) { return (void*)&v; }
template<class T> void*... | 5,083 |
640 | <filename>src/appmake/adam.c<gh_stars>100-1000
/*
* Adam DDP generator
*/
#include "appmake.h"
static char *binname = NULL;
static char *crtfile = NULL;
static char *outfile = NULL;
static char help = 0;
/* Options that are available for thi... | 1,318 |
3,562 | <filename>fe/spark-dpp/src/main/java/org/apache/doris/load/loadv2/dpp/DppColumns.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... | 1,891 |
554 | package github.tornaco.xposedmoduletest.xposed.service;
/**
* Created by guohao4 on 2017/11/1.
* Email: <EMAIL>
*/
// Both ash and ag need to be called at same time.
@interface SinceSDK {
int value();
}
| 88 |
665 | <gh_stars>100-1000
/* legacy_event_loop.h -*-C++-*-
This file is part of MLDB.
<NAME>, July 2016
Copyright (c) 2016 mldb.ai inc. All rights reserved.
*/
#pragma once
#include <memory>
namespace MLDB {
/* Forward declarations */
struct MessageLoop;
/*******... | 353 |
2,151 | <reponame>google-ar/chromium<filename>components/drive/chromeos/remove_stale_cache_files.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/drive/chromeos/remove_stale_cache_fil... | 485 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-4f3p-g373-w46g",
"modified": "2022-05-01T07:31:20Z",
"published": "2022-05-01T07:31:20Z",
"aliases": [
"CVE-2006-5744"
],
"details": "Multiple SQL injection vulnerabilities in Highwall Enterprise and Highwall Endpoint 4.0.2.11045 management i... | 509 |
1,652 | package com.ctrip.xpipe.api.migration;
import com.ctrip.xpipe.api.lifecycle.Ordered;
import com.ctrip.xpipe.utils.ServicesUtil;
/**
* @author wenchao.meng
* <p>
* Apr 07, 2017
*/
public interface DcMapper extends Ordered{
DcMapper INSTANCE = ServicesUtil.getDcMapperService();
String getD... | 153 |
343 | <reponame>nzeh/syzygy
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... | 1,441 |
1,550 | <filename>leo/test/unittest/at-clean-line-number-test.c
// before @others // line 1
def spam(): // line 2
pass
def eggs(): // line 4
pass
// last line: line 6
| 64 |
14,668 | // 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 UI_OZONE_PLATFORM_WAYLAND_GPU_GL_SURFACE_EGL_READBACK_WAYLAND_H_
#define UI_OZONE_PLATFORM_WAYLAND_GPU_GL_SURFACE_EGL_READBACK_WAYLAND_H_
#includ... | 1,465 |
7,353 | <reponame>sh0tCa11er/lanternEnhancement
/**
* @file NCDUdevMonitorParser.c
* @author <NAME> <<EMAIL>>
*
* @section LICENSE
*
* 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 mu... | 4,682 |
1,825 | <gh_stars>1000+
package com.github.unidbg.ios.struct.sysctl;
import com.github.unidbg.pointer.UnidbgStructure;
import com.github.unidbg.unix.struct.TimeVal32;
import com.sun.jna.Pointer;
import java.util.Arrays;
import java.util.List;
public final class IfData extends UnidbgStructure {
public IfData(Pointer p) ... | 1,203 |
715 | class Node:
def __init__(self,vertex):
self.vertex = vertex
self.next = None
userinput = str(input("Number of nodes and edges : ")).split() #First line as a string and split (from spaces) it to an array.
N = int(userinput[0]) #Extract Number of vertexes
M = int(userinput[1]) #Extract Number of edges
gr... | 792 |
4,283 | {
"instance": {
"hazelcast": {
"security": {
"enabled": "on",
"realms": [
2,
{
"unknown": {}
},
{
"tls": {
"roleAttribute": null
}
}
]
}
}
},
"error": {
"schemaLocati... | 949 |
410 | <filename>external/glm/gtc/vec1.hpp
/// @ref gtc_vec1
/// @file glm/gtc/vec1.hpp
///
/// @see core (dependence)
///
/// @defgroup gtc_vec1 GLM_GTC_vec1
/// @ingroup gtc
///
/// Include <glm/gtc/vec1.hpp> to use the features of this extension.
///
/// Add vec1, ivec1, uvec1 and bvec1 types.
#pragma once
// Dependency... | 1,111 |
615 | /**
* @file likely.h
* @author <NAME>
*
* All files in META are dual-licensed under the MIT and NCSA licenses. For more
* details, consult the file LICENSE.mit and LICENSE.ncsa in the root of the
* project.
*/
#ifndef META_UTIL_LIKELY_H_
#define META_UTIL_LIKELY_H_
#include "meta/config.h"
#if META_HAS_BUILTI... | 217 |
474 | // Copyright 2019 ETH Zürich, <NAME>
//
// 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 notice,
// this list of conditions and the following dis... | 1,960 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.