max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
698 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package nginx.clojure;
/**
*
* @author <NAME>
*/
public class Merge3Test implements Runnable {
public boolean a;
public boolean b;
public void run() throws SuspendExecution {
... | 371 |
10,225 | <filename>extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/MetricsResource.java
package io.quarkus.smallrye.metrics.jaxrs;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import javax.ws.rs.GET;
import javax.ws.rs... | 613 |
590 | <gh_stars>100-1000
# coding: utf-8
"""
Heap Sort
https://en.wikipedia.org/wiki/Heapsort
Worst-case performance: O(n * log n)
Best-case performance: O(n * log n)
Average performance: O(n * log n)
"""
import heapq
# Also see: https://github.com/vinta/fuck-coding-interviews/blob/master/data_structures/heaps/array_based... | 1,198 |
1,473 | /*
* Autopsy
*
* Copyright 2020 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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/lice... | 2,624 |
2,322 | <gh_stars>1000+
/*
* Setupapi cabinet routines
*
* Copyright 2003 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option... | 6,371 |
10,225 | <gh_stars>1000+
package io.quarkus.resteasy.reactive.server.test.resource.basic.resource;
import java.net.URI;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;
@Path("/")
public class UriInfo... | 230 |
3,428 | <reponame>ghalimi/stdlib
{"id":"02419","group":"easy-ham-1","checksum":{"type":"MD5","value":"ade095af23802012668f4ec856bf7e63"},"text":"From <EMAIL> Thu Oct 10 12:32:20 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>int.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id... | 704 |
1,682 | <reponame>haroldl/rest.li<gh_stars>1000+
/*
Copyright (c) 2019 LinkedIn Corp.
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
Unles... | 7,401 |
348 | {"nom":"Vinzieux","circ":"2ème circonscription","dpt":"Ardèche","inscrits":308,"abs":152,"votants":156,"blancs":9,"nuls":1,"exp":146,"res":[{"nuance":"SOC","nom":"<NAME>","voix":86},{"nuance":"REM","nom":"<NAME>","voix":60}]} | 92 |
416 | <gh_stars>100-1000
/*
* 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 may obtain a copy of the License at
*
* http://www.apache.org/li... | 2,946 |
311 | package org.javacs.lsp;
public class DidCloseTextDocumentParams {
public TextDocumentIdentifier textDocument = new TextDocumentIdentifier();
}
| 42 |
19,824 | {
"main": "dist/keystone-next-keystone-testing.cjs.js",
"module": "dist/keystone-next-keystone-testing.esm.js"
}
| 49 |
2,151 | package junit.tests.framework;
/**
* Test class used in SuiteTest
*/
public class InheritedTestCase extends OneTestCase {
public void test2() {
}
} | 50 |
411 | <filename>documents4j-util-ws/src/main/java/com/documents4j/ws/ConverterNetworkProtocol.java
package com.documents4j.ws;
import com.documents4j.throwables.ConversionFormatException;
import com.documents4j.throwables.ConversionInputException;
import com.documents4j.util.Reaction;
import com.google.common.base.MoreObjec... | 1,586 |
575 | <reponame>Ron423c/chromium<filename>third_party/blink/renderer/modules/media_controls/elements/media_control_cast_button_element.cc<gh_stars>100-1000
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#inc... | 1,578 |
367 | @import UIKit;
@import Metal;
@interface MBETextureLoader : NSObject
+ (id<MTLTexture>)texture2DWithImageNamed:(NSString *)imageName device:(id<MTLDevice>)device;
+ (id<MTLTexture>)textureCubeWithImagesNamed:(NSArray *)imageNameArray
device:(id<MTLDevice>)device
... | 177 |
2,542 | <gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
... | 1,004 |
6,989 | #ifdef USE_PYTHON3
#include <contrib/python/numpy/py3/numpy/core/src/umath/ufunc_type_resolution.h>
#else
#include <contrib/python/numpy/py2/numpy/core/src/umath/ufunc_type_resolution.h>
#endif
| 85 |
1,338 | /*
* Copyright 2009, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#ifndef SUB_WINDOW_H
#define SUB_WINDOW_H
#include <Window.h>
#include <util/OpenHashTable.h>
class SubWindowManager;
class SubWindowKey {
public:
virtual ~SubWindowKey();
virtual bool Equals(const SubWindowKe... | 484 |
5,964 | <gh_stars>1000+
/*
* Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistrib... | 7,258 |
568 | package com.jim.framework.activemq.config;
import com.google.common.base.Joiner;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.jim.framework.activemq.producer.ConsumerConnctionFactory;
import com.jim.framework.activemq.producer.ProducerConnctionFactory;
import org.apache.act... | 3,687 |
488 | void foobar ( int size, int array[*] );
void foobar ( int sizeXX, int array[sizeXX] )
{
}
void foo ( int sizeYY, int array[sizeYY] )
{
}
| 63 |
1,056 | <filename>nbi/engine/tests/org/registry/TestCircles.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
* to you under... | 2,208 |
1,210 | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making GameAISDK available.
This source code file is licensed under the GNU General Public License Version 3.
For full details, please refer to the file "LICENSE.txt" which is provided as part of this source code package.
Copyright... | 3,689 |
456 | /*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 2,773 |
11,750 | <filename>env/lib/python3.8/site-packages/plotly/figure_factory/_quiver.py
from __future__ import absolute_import
import math
from plotly import exceptions
from plotly.graph_objs import graph_objs
from plotly.figure_factory import utils
def create_quiver(
x, y, u, v, scale=0.1, arrow_scale=0.3, angle=math.pi / ... | 4,160 |
669 | // Copyright 2020 The TensorFlow Runtime Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | 3,147 |
357 | #ifndef TC_EVENT_H
#define TC_EVENT_H
#include <xcopy.h>
#define TC_EVENT_SELECT_OLD 0
#define TC_EVENT_SELECT 1
#define TC_EVENT_EPOLL 2
#define TC_EVENT_OK 0
#define TC_EVENT_ERROR -1
#define TC_EVENT_AGAIN 1
#define TC_EVENT_NONE 0
#define TC_EVENT_READ 1
#define TC_EVENT_WRITE 2
#define t... | 1,314 |
713 | <reponame>vansh-tiwari/coding-interview-gym
from collections import deque
class Solution(object):
def openLock(self, deadends, target):
"""
:type deadends: List[str]
:type target: str
:rtype: int
"""
level, queue, visited = -1, deque(['0000']), set(deadends)
w... | 567 |
14,668 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DEVICE_BLUETOOTH_BLUETOOTH_L2CAP_CHANNEL_MAC_H_
#define DEVICE_BLUETOOTH_BLUETOOTH_L2CAP_CHANNEL_MAC_H_
#import <IOBluetooth/IOBluetooth.h>
#impo... | 975 |
435 | {
"copyright_text": "Standard YouTube License",
"description": "",
"duration": 1028,
"language": "spa",
"recorded": "2017-09-24T10:00:00+02:00",
"related_urls": [
{
"label": "schedule",
"url": "https://2017.es.pycon.org/es/schedule/"
}
],
"speakers": [
"<NAME>"
],
"tags": [],... | 259 |
610 | <gh_stars>100-1000
/*
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* U... | 454 |
605 | <filename>libcxx/test/std/algorithms/robust_re_difference_type.compile.pass.cpp
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-Licens... | 5,087 |
1,130 | <reponame>domesticmouse/SmallerC<filename>v0100/srclib/brktime.c
/*
Copyright (c) 2014, <NAME>
2-clause BSD license.
*/
#include "itime.h"
#ifdef __SMALLER_C_32__
static unsigned short DaysSinceEpoch[]=
{
/*1970*/ 0u, 365u, 730u, 1096u, 1461u, 1826u, 2191u,
/*1977*/ 2557u, 2922u, 3287u, 3652u, ... | 1,618 |
392 | package jetbrick.template.exec.directive;
import jetbrick.template.exec.AbstractJetxTest;
import org.junit.Assert;
import org.junit.Test;
public class DirectiveForTest extends AbstractJetxTest {
@Test
public void testForList() {
Assert.assertEquals("", eval("#for(i:[])${i}#end"));
Assert.asse... | 754 |
1,412 | #ifdef _WIN32
#include "fs.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#define FS_PATH_MAX 1024
bool fs_open(const char* path, OpenMode mode, fs_handle* file) {
WCHAR wpath[FS_PATH_MAX];
if (!MultiByteToWideChar(CP_UTF8, 0, path, -1, wpath, FS_PATH_MAX)) {
return false;
}
DWORD access;
DWORD c... | 2,766 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-4v94-xg8j-pp22",
"modified": "2022-05-13T01:11:48Z",
"published": "2022-05-13T01:11:48Z",
"aliases": [
"CVE-2017-12982"
],
"details": "The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject headers with a ... | 700 |
777 | <filename>device/usb/android/java/src/org/chromium/device/usb/ChromeUsbService.java<gh_stars>100-1000
// 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.
package org.chromium.device.usb;
import android.app... | 1,705 |
716 | <filename>src/WindowsUtils/SafeHandleTest.cpp<gh_stars>100-1000
// Copyright (c) 2022 The Orbit 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 <absl/base/casts.h>
#include <gtest/gtest.h>
#include "OrbitBase/ThreadUtils.h"... | 363 |
1,679 | <reponame>morganelectronics/raceway_STM32<gh_stars>1000+
/**
******************************************************************************
* @file stm32l0xx_hal_lptim_ex.h
* @author MCD Application Team
* @brief Header file of LPTIM Extended HAL module.
********************************************... | 2,865 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"<NAME>","dpt":"Alpes-de-Haute-Provence","inscrits":63,"abs":26,"votants":37,"blancs":2,"nuls":2,"exp":33,"res":[{"panneau":"2","voix":17},{"panneau":"1","voix":16}]} | 95 |
957 | <filename>Dev/Cpp/EffekseerRendererDX9/EffekseerRenderer/EffekseerRendererDX9.RenderState.cpp
//----------------------------------------------------------------------------------
// Include
//----------------------------------------------------------------------------------
#include "EffekseerRendererDX9.RenderState.... | 3,181 |
854 | <gh_stars>100-1000
__________________________________________________________________________________________________
sample 0 ms submission
class Solution {
public void moveZeroes(int[] nums) {
if(nums == null)
return;
int pos1 = 0;
int pos2 = 0;
while(pos2 < nums.l... | 609 |
1,013 | /*!
@authors <NAME> (<EMAIL>)
@date 2014-2020
@copyright BSD-3-Clause
*/
#pragma once
#include <pyclustering/cluster/clique_block.hpp>
#include <pyclustering/cluster/cluster_data.hpp>
namespace pyclustering {
namespace clst {
/*!
@brief Sequence container where CLIQUE blocks are stored... | 571 |
930 | <reponame>leven-space/matecloud
package vip.mate.core.auth.util;
import lombok.experimental.UtilityClass;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import vip.mate.core.common.entity.LoginUser;
/**
* 安全服务工具类
*
* @author pangu
*... | 437 |
582 | <gh_stars>100-1000
/**
* This program and the accompanying materials
* are made available under the terms of the License
* which accompanies this distribution in the file LICENSE.txt
*/
package com.archimatetool.editor.diagram.actions;
import java.util.ArrayList;
import java.util.List;
import org.eclips... | 1,233 |
2,990 | /**
GDevelop - Tiled Sprite Extension
Copyright (c) 2012-2016 <NAME> (<EMAIL>)
Copyright (c) 2014-2016 <NAME> (<EMAIL>)
This project is released under the MIT License.
*/
#include "GDCore/Tools/Localization.h"
#include "GDCore/CommonTools.h"
#include "GDCore/Project/InitialInstance.h"
#include "GDCore/Project/Object.... | 432 |
6,119 | from functools import reduce
from autograd.core import vspace
from autograd.numpy.numpy_vspaces import ArrayVSpace
from autograd.test_util import check_grads, scalar_close
import numpy as np
import itertools as it
def check_vspace(value):
vs = vspace(value)
# --- required attributes ---
size = vs.siz... | 2,408 |
5,169 | {
"name": "ViewStates",
"version": "1.0.0",
"summary": "ViewStates makes it easier to create a view with loading, success, no data and error states",
"swift_version": "4.0",
"description": "ViewStates makes it easier to create a view with loading, success, no data and error states. It also has an action butto... | 317 |
14,668 | // 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.
package org.chromium.android_webview.test.util;
import org.chromium.base.annotations.JNINamespace;
import org.chromium.base.annotations.NativeMethods;
/... | 250 |
2,757 | /*++
Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be fou... | 4,875 |
2,100 | <reponame>isabella232/gapid<gh_stars>1000+
/*
* Copyright (C) 2017 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
*
*... | 1,019 |
615 | package org.byron4j.cookbook.rocketmq.transaction;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.client.consumer.DefaultMQPushConsumer;
import org.apache.rocketmq.client.consumer.MQConsumer;
import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyContext;
import org.apache.rocketmq.... | 1,337 |
1,695 | <reponame>happybin92/trino<gh_stars>1000+
/*
* 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... | 1,058 |
348 | {"nom":"Pont-Aven","circ":"8ème circonscription","dpt":"Finistère","inscrits":2238,"abs":1142,"votants":1096,"blancs":66,"nuls":46,"exp":984,"res":[{"nuance":"REM","nom":"<NAME>","voix":577},{"nuance":"SOC","nom":"<NAME>","voix":407}]} | 95 |
852 |
#include <iostream>
#include "Pythia6ParticleGun.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
//#include "SimDataFormats/GeneratorProducts/interface... | 261 |
8,514 | /*
* 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 ma... | 487 |
488 | <reponame>maurizioabba/rose
#include "TypeInfoDisplay.h"
#include "TypeSystem.h"
#include <QIcon>
#include <QDebug>
RsTypeDisplay::RsTypeDisplay(const RsType* t, const QString & n, int off)
: type(t), name(n),offset(off)
{
}
QStringList RsTypeDisplay::sectionHeader() const
{
return QStringList() << "Name" <<... | 1,007 |
3,301 | <reponame>okjay/Alink
package com.alibaba.alink.operator.common.feature;
import org.apache.flink.types.Row;
import org.apache.flink.util.Preconditions;
import com.alibaba.alink.operator.common.utils.PrettyDisplayUtils;
import com.alibaba.alink.params.shared.colname.HasSelectedCols;
import java.io.Serializable;
impor... | 847 |
517 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
class Closing(object):
"""This mixin implements team closing.
"""
#: Whether the team is closed or not.
is_closed = False
def close(self):
"""Close the team account.
"""
... | 382 |
593 | <reponame>RUB-NDS/TLS-Attacker
/**
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2022 Ruhr University Bochum, Paderborn University, Hackmanit GmbH
*
* Licensed under Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
package de.rub.nds.tlsattack... | 1,270 |
357 | /*
* Copyright © 2018 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 appl... | 1,547 |
3,799 | <reponame>digitalbuddha/androidx
/**
* 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/licenses/LICENSE-2.0
*... | 930 |
678 | <filename>iOSOpenDev/frameworks/HomeSharing.framework/Headers/HomeSharing.h
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/HomeSharing.framework/HomeSharing
*/
#import <HomeSharing/HomeSharing-Structs.h>
#import <HomeSharing/HSServerInfoRequest.h>
#import <HomeSh... | 1,030 |
320 | //
// MPInlineAdAdapterDelegate.h
//
// Copyright 2018-2021 Twitter, Inc.
// Licensed under the MoPub SDK License Agreement
// http://www.mopub.com/legal/sdk-license-agreement/
//
#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
@class MPInlineAdAdapter;
/**
Instances of your custom subclass of @c ... | 1,446 |
1,309 | //-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, 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 rest... | 3,986 |
1,443 | <reponame>cssence/mit-license
{
"copyright": "<NAME>, http://danielknell.co.uk",
"url": "http://danielknell.co.uk",
"email": "<EMAIL>",
"theme": "material-pink",
"gravatar": true
}
| 82 |
312 | <reponame>apnadkarni/libgit2
#include "clar_libgit2.h"
#include "git2/sys/stream.h"
#include "streams/tls.h"
#include "streams/socket.h"
#include "stream.h"
static git_stream test_stream;
static int ctor_called;
void test_stream_registration__cleanup(void)
{
cl_git_pass(git_stream_register(GIT_STREAM_TLS | GIT_STREA... | 1,168 |
742 | <reponame>TotalCaesar659/OpenTESArena<filename>OpenTESArena/src/GameLogic/MapLogicController.h
#ifndef MAP_LOGIC_CONTROLLER_H
#define MAP_LOGIC_CONTROLLER_H
#include "../Game/Physics.h"
#include "../World/Coord.h"
class Game;
class TextBox;
class TransitionDefinition;
namespace MapLogicController
{
// Handles chang... | 353 |
1,444 | <filename>restclient-ui/src/main/java/org/wiztools/restclient/ui/resheader/ResHeaderPanel.java
package org.wiztools.restclient.ui.resheader;
import com.google.inject.ImplementedBy;
import org.wiztools.commons.MultiValueMap;
import org.wiztools.restclient.ui.ViewPanel;
/**
*
* @author subwiz
*/
@ImplementedBy(ResHe... | 171 |
2,208 | <filename>examples/supervised/neuralnets+svm/example_rnn.py
from __future__ import print_function
#!/usr/bin/env python
# Example script for recurrent network usage in PyBrain.
__author__ = "<NAME>"
__version__ = '$Id$'
from pylab import plot, hold, show
from scipy import sin, rand, arange
from pybrain.datasets ... | 607 |
2,261 | # Copyright (c) OpenMMLab. All rights reserved.
import copy
import unittest.mock as mock
import numpy as np
import pytest
import torchvision.transforms as TF
from mmdet.core import BitmapMasks, PolygonMasks
from PIL import Image
import mmocr.datasets.pipelines.transforms as transforms
@mock.patch('%s.transforms.np.... | 5,551 |
737 | /* tree.cc
<NAME>, 24 April 2006
Copyright (c) 2006 <NAME>. All rights reserved.
$Source$
Tree class.
*/
#include "tree.h"
#include "jml/db/persistent.h"
#include "feature_space.h"
#include "config_impl.h"
using namespace std;
using namespace DB;
namespace ML {
/************************************... | 3,086 |
1,210 | // Style Guide => https://github.com/Bhupesh-V/30-Seconds-Of-STL/blob/master/CONTRIBUTING.md/#Style Guide
/*
Author : <NAME>
Date : 30/05/2019
Time : 01:00 PM
Description : emplace() function is used to add a new element at the end of the queue, after its current last element. The element is added to the queue cont... | 274 |
1,126 | <filename>trie/trie.cpp
#include <iostream>
#include <cstring>
using namespace std;
// Determine size of array
#define ARRAY_SIZE(a) sizeof(a) / sizeof(a[0])
// Alphabet size (# of symbols)
#define ALPHABET_SIZE 26
// Convert char to int value
// only 'a' to 'z' are allowed chars
#define CHAR_TO_INT(c) ((int)c - (int)... | 1,281 |
403 | package com.camunda.example.message.neworder;
import org.springframework.cloud.stream.annotation.Input;
import org.springframework.messaging.SubscribableChannel;
public interface NewOrderSink {
String channel = "newOrderInputChannel";
@Input(NewOrderSink.channel)
SubscribableChannel submitOrder();
}
| 96 |
4,538 | <filename>solutions/eduk1_demo/k1_apps/aircraftBattle/aircraftBattle.c
#include "aircraftBattle.h"
#include <stdio.h>
#include <stdlib.h>
MENU_COVER_TYP aircraftBattle_cover = {MENU_COVER_FUNC, NULL, NULL,
aircraftBattle_cover_draw};
MENU_TASK_TYP aircraftBattle_tasks = {aircraf... | 11,956 |
17,085 | <gh_stars>1000+
/* Copyright (c) 2021 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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by a... | 919 |
6,181 | /******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2019-2021 <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 Soft... | 986 |
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.applicationinsights.generated;
import com.azure.core.util.Context;
import com.azure.resourcemanager.applicationinsights.models.S... | 353 |
334 | //
// EChartViewController.h
// EChart
//
// Created by <NAME> on 11/12/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface EChartViewController : UIViewController
@end
| 80 |
3,861 | {
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "AutoRest Swagger BAT Header Service",
"description": "Test Infrastructure for AutoRest"
},
"host": "localhost:3000",
"schemes": [
"http"
],
"paths": {},
"responses": {
"200": {
"description": "The request was successfu... | 699 |
716 | /* ============================================================
Copyright (c) 2002-2015 Advanced Micro Devices, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the
following conditions are met:
+ Redistributions of sourc... | 2,422 |
973 | <filename>pcap4j-core/src/main/java/org/pcap4j/packet/RadiotapDataFhss.java
/*_##########################################################################
_##
_## Copyright (C) 2016 Pcap4J.org
_##
_##########################################################################
*/
package org.pcap4j.packet;
import... | 1,871 |
1,091 | <reponame>meodaiduoi/onos
/*
* Copyright 2015-present Open Networking Foundation
*
* 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
*
... | 1,337 |
344 | /* Copyright (c) 2014, ENEA Software AB
* Copyright (c) 2014, Nokia
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef __SOCKET_SEND_RECV_TCP_H__
#define __SOCKET_SEND_RECV_TCP_H__
int send_tcp4_local_ip(int fd);
int send_tcp4_any(int fd);
int send_multi_tcp4_any(int fd);
int send_tcp4_m... | 264 |
417 | /*
** Copyright 2018 Bloomberg Finance L.P.
**
** 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... | 1,444 |
400 | <filename>tremor-cli/tests/integration/rest-linked-correlation/in.json
{"foo":"bar", "correlation": ["1", "2", "3"]}
{"foo":"baz", "correlation": "snot"}
{"foo":"booze", "correlation": ["badger"]}
{"foo": "snooze"}
{"exit": true} | 91 |
2,151 | <filename>chrome/browser/autocomplete/contextual_suggestions_service_factory.h
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_AUTOCOMPLETE_CONTEXTUAL_SUGGESTIONS_SERVICE_FACTORY_... | 472 |
313 | <gh_stars>100-1000
#ifndef RELAPACK_H
#define RELAPACK_H
void RELAPACK_slauum(const char *, const int *, float *, const int *, int *);
void RELAPACK_dlauum(const char *, const int *, double *, const int *, int *);
void RELAPACK_clauum(const char *, const int *, float *, const int *, int *);
void RELAPACK_zlauum(const ... | 2,312 |
9,491 |
#define TSRMLS_D
#define TSRMLS_DC
#define TSRMLS_CC
#include <string.h>
| 37 |
9,724 | /*
* Copyright 2014 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*/
#include <assert.h>
#include <stdio.h>
int main (int argc... | 257 |
532 | /*******************************************************************************
MACROS.H
Author: <NAME>
Date: 13-APR-89
Copyright (c) 1992-5 MusculoGraphics, Inc.
All rights reserved.
Portions of this source code are copyrighted by MusculoGraphics, Inc.
******************************************... | 2,735 |
2,151 | <reponame>DmPo/Schemaorg_CivicOS<filename>lib/html5lib/filters/inject_meta_charset.py
import _base
class Filter(_base.Filter):
def __init__(self, source, encoding):
_base.Filter.__init__(self, source)
self.encoding = encoding
def __iter__(self):
state = "pre_head"
meta_found = ... | 1,553 |
399 | # -----------------------------------------------------------------------
# This script computes a weight value for each basis block of each functions. the algorithm is:
# 1. for each outgoing edge (i->j) of a BB i, assign a equal probability Eij, i.e. Eij= 1/n for a "n edges" BB.
# 2. assign root BB a weight of 1 (thi... | 5,306 |
2,937 | <reponame>dawlane/ogre
#ifndef __Character_H__
#define __Character_H__
#include "SdkSample.h"
#include "SinbadCharacterController.h"
using namespace Ogre;
using namespace OgreBites;
class _OgreSampleClassExport Sample_Character : public SdkSample
{
public:
Sample_Character()
{
mInfo["Title"] = "Char... | 2,045 |
357 | /**
*
*/
package com.vmware.identity;
import static com.vmware.identity.SharedUtils.bootstrap;
import static com.vmware.identity.SharedUtils.buildMockRequestObject;
import static com.vmware.identity.SharedUtils.buildMockResponseSuccessObject;
import static com.vmware.identity.SharedUtils.createSamlAuthnRequest;
impo... | 2,603 |
404 | <filename>Python/Tests/TestData/TestDiscoverer/ConfigPythonFunctions/test_misc_prefixes.py
def test_func():
pass
def check_func():
pass
def example_func():
pass
def verify_func():
pass
| 77 |
1,615 | <reponame>jackwiy/MLN<gh_stars>1000+
//
// UIView+MLNCore.h
// MLNCore
//
// Created by MoMo on 2019/7/23.
//
#import <UIKit/UIKit.h>
#import "NSObject+MLNCore.h"
NS_ASSUME_NONNULL_BEGIN
@interface UIView (MLNCore)
/**
Lua创建的对象会默认调用该初始化方法
@note 如果需要自定义初始化方法,第一个参数必须是luaCore。
@param luaCore 对应的lua状态机
@return... | 287 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-p2c5-vvpj-4jv2",
"modified": "2022-05-01T06:48:28Z",
"published": "2022-05-01T06:48:28Z",
"aliases": [
"CVE-2006-1346"
],
"details": "Directory traversal vulnerability in inc/setLang.php in <NAME> gCards 1.45 and earlier allows remote attackers to include and e... | 617 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.