max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,025 | <reponame>lnc441401369/lnc.github.io
package com.myblog.websocket;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.socket.TextMessage;
import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.handler.TextWebSocketHandler;
import javax.websoc... | 403 |
14,668 | // 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.
#include "ash/login/ui/note_action_launch_button.h"
#include <memory>
#include <vector>
#include "ash/login/ui/login_test_base.h"
#include "ash/login/ui... | 6,100 |
2,453 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <objc/NSObject.h>
@class DVTDeviceType, NSSet;
@interface _DVTDeviceTypeTreeNode : NSObject
{
NSSet *_derivedDeviceTypes;
_DVTDeviceTypeTreeNode *_parentNode;
DV... | 281 |
9,724 | <reponame>yunku2002/emscripten
#pragma once
#include <GLES2/gl2.h>
#include "webgl_api.h"
WEBGL_APICALL void GL_APIENTRY emscripten_glActiveTexture (GLenum texture);
WEBGL_APICALL void GL_APIENTRY emscripten_glAttachShader (GLuint program, GLuint shader);
WEBGL_APICALL void GL_APIENTRY emscripten_glBindAttribLocatio... | 5,354 |
608 | package com.google.android.stardroid.activities;
import android.app.Activity;
import android.content.Context;
import android.os.Handler;
import com.google.android.stardroid.inject.PerActivity;
import dagger.Module;
import dagger.Provides;
/**
* Created by johntaylor on 4/15/16.
*/
@Module
public class DiagnosticA... | 225 |
407 | <filename>saas/sreworks/sreworks-common/src/main/java/com/alibaba/sreworks/common/util/TimeUtil.java
package com.alibaba.sreworks.common.util;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.time.OffsetDateTime;
import java.time.ZonedDateTime;
import java.util.Date;
import java.util.TimeZone;... | 505 |
1,007 | ##############################################################
# Copyright (c) 2018-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
##############################################################
fro... | 145 |
2,413 | # Copyright 1999-2021 Alibaba Group Holding Ltd.
#
# 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... | 788 |
367 | #ifndef CAMERA_H
#define CAMERA_H
#include "vector.h"
/*
Our 3rd person camera has three main functions which setup what's it is looking at. The
first rotateY(), rotates the look at vector (the camera's local +Z axis) around the world's
Y axis, which always points in "kWorldUp" (0,1,0) direction. The next functi... | 680 |
423 | <gh_stars>100-1000
// Copyright (c) Facebook, Inc. and its affiliates.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <functorch/csrc/BatchRulesHelper.h>
#include <functorch/csrc/PlumbingHelper.h>
#... | 3,850 |
427 | //
// MUAssetsViewController.h
// MUKit_Example
//
// Created by Jekity on 2017/11/7.
// Copyright © 2017年 Jeykit. All rights reserved.
//
#import <UIKit/UIKit.h>
@class PHAssetCollection;
@class MUImagePickerManager;
@interface MUAssetsViewController : UICollectionViewController
@property (nonatomic, copy) NSArr... | 372 |
3,102 | // RUN: %clang_cc1 %s -fblocks -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
typedef void (^dispatch_block_t)(void);
void dispatch_once(dispatch_block_t);
class Zone {
public:
Zone();
~Zone();
};
Zone::Zone() {
dispatch_once(^{});
dispatch_once(^{});
}
Zone::~Zone() {
dispatch_once(^{}... | 426 |
1,481 | package apoc.monitor;
import apoc.Extended;
import apoc.result.IdsResult;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.kernel.impl.store.stats.StoreEntityCounters;
import org.neo4j.kernel.internal.GraphDatabaseAPI;
import org.neo4j.procedure.Context;
import org.neo4j.procedure.Description;
import or... | 512 |
845 | <gh_stars>100-1000
#! /usr/bin/env python
# coding:utf-8
# Author: <NAME>
from icssploit.clients.base import Base
from icssploit.protocols.cotp import *
from icssploit.protocols.s7comm_plus import *
from scapy.supersocket import StreamSocket
from scapy.volatile import RandString
import socket
OBJECT_QUALIFIER_ITEMS =... | 9,668 |
1,388 | //
// Copyright 2011-2015 <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 ... | 812 |
339 | <filename>integration/mediation-tests/tests-mediator-1/src/test/java/org/wso2/carbon/esb/mediator/test/enrich/EnrichIntegrationAddSiblingInOutMessageTestCase.java
/*
*Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
*WSO2 Inc. licenses this file to you under the Apache License,
*Version 2... | 1,215 |
1,652 | <reponame>minluzhou/test1
package com.ctrip.xpipe.metric;
import com.ctrip.xpipe.exception.XpipeException;
/**
* @author wenchao.meng
* <p>
* Jul 27, 2017
*/
public class MetricProxyException extends XpipeException {
public MetricProxyException(String message) {
super(message);
}
... | 167 |
2,496 | <filename>libs/qwt/src/qwt_vectorfield_symbol.cpp
/******************************************************************************
* Qwt Widget Library
* Copyright (C) 1997 <NAME>
* Copyright (C) 2002 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qw... | 1,412 |
1,041 | package io.ebean.config;
/**
* Defines the AutoTune behaviour for a Database.
*/
public class AutoTuneConfig {
private AutoTuneMode mode = AutoTuneMode.DEFAULT_OFF;
private String queryTuningFile = "ebean-autotune.xml";
private boolean queryTuning;
private boolean queryTuningAddVersion;
private boolea... | 2,233 |
1,909 | <gh_stars>1000+
package org.knowm.xchange.coindirect.dto.marketdata;
import static org.assertj.core.api.Assertions.assertThat;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.io.InputStream;
import org.junit.Test;
public class CoindirectTradesTest {
@Test
public void t... | 324 |
60,067 | #include "caffe2/utils/math/broadcast.h"
#include "caffe2/core/context.h"
#include "caffe2/utils/eigen_utils.h"
namespace caffe2 {
namespace math {
bool can_use_broadcast_fastpath(int ndim, const int* dims) {
int index_of_last_singleton = -1;
int index_of_first_non_singleton = ndim;
for (int i = 0; i < ndim; i... | 2,525 |
1,043 | package org.simplejavamail.api.internal.outlooksupport.model;
import org.simplejavamail.api.email.EmailPopulatingBuilder;
/**
* Wrapper class that can hold both the resulting Email (builder) and the source OutlookMessage.
* <br>
* Useful when data is needed which didn't convert directly into the Email (builder) in... | 215 |
360 | <reponame>Yanci0/openGauss-server
/*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL... | 3,709 |
348 | <gh_stars>100-1000
{"nom":"Quincy","circ":"2ème circonscription","dpt":"Cher","inscrits":627,"abs":352,"votants":275,"blancs":28,"nuls":10,"exp":237,"res":[{"nuance":"MDM","nom":"<NAME>","voix":139},{"nuance":"COM","nom":"<NAME>","voix":98}]} | 98 |
777 | <gh_stars>100-1000
// 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 NET_QUIC_CORE_QUIC_SIMPLE_BUFFER_ALLOCATOR_H_
#define NET_QUIC_CORE_QUIC_SIMPLE_BUFFER_ALLOCATOR_H_
#include "net/quic/cor... | 265 |
408 | from setuptools import setup
# XXX: also update version in hamms/__init__.py
__version__ = '1.3'
setup(
name='hamms',
packages=['hamms'],
version=__version__,
description='Malformed servers to test your HTTP client',
author='<NAME>',
author_email='<EMAIL>',
url='https://github.com/kevinbur... | 175 |
670 | package com.uddernetworks.mspaint.gui.elements;
import com.jfoenix.controls.JFXTextField;
import com.uddernetworks.mspaint.settings.Setting;
import com.uddernetworks.mspaint.settings.SettingsManager;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.pro... | 1,122 |
2,959 | <filename>samcli/lib/config/exceptions.py
"""
Exceptions to be used by samconfig.py
"""
class SamConfigVersionException(Exception):
pass
| 45 |
432 | <gh_stars>100-1000
/*
* Copyright (c) 2008 The DragonFly Project. All rights reserved.
*
* This code is derived from software contributed to The DragonFly Project
* by <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followin... | 15,554 |
2,151 | #------------------------------------------------------------------------------
# elftools tests
#
# <NAME> (<EMAIL>)
# This code is in the public domain
#------------------------------------------------------------------------------
try:
import unittest2 as unittest
except ImportError:
import unittest
import o... | 3,452 |
818 | <gh_stars>100-1000
/*
* Copyright 2021 Red Hat, Inc. and/or its affiliates.
*
* 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
*
* U... | 704 |
957 |
#pragma once
#include "Culling3D.h"
#include <vector>
namespace Culling3D
{
class Grid
{
private:
std::vector<Object*> objects;
public:
Grid();
void AddObject(Object* o);
void RemoveObject(Object* o);
std::vector<Object*>& GetObjects()
{
return objects;
}
bool IsScanned;
};
} // namespace Culling3D | 129 |
2,048 | <reponame>maniacs-m/connfa-android<filename>libraries/drupalSDK/src/main/java/com/ls/drupal/login/ILoginManager.java
/*
* The MIT License (MIT)
* Copyright (c) 2014 Lemberg Solutions Limited
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documen... | 800 |
664 | package tellh.com.recyclertreeview.bean;
import tellh.com.recyclertreeview.R;
import tellh.com.recyclertreeview_lib.LayoutItemType;
/**
* Created by tlh on 2016/10/1 :)
*/
public class Dir implements LayoutItemType {
public String dirName;
public Dir(String dirName) {
this.dirName = dirName;
}... | 162 |
4,342 | import unittest
import rx
from rx import operators as ops
class TestGroupByReduce(unittest.TestCase):
def test_groupby_count(self):
res = []
counts = rx.from_(range(10)).pipe(
ops.group_by(lambda i: 'even' if i % 2 == 0 else 'odd'),
ops.flat_map(lambda i: i.pipe(
... | 430 |
778 | <gh_stars>100-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... | 12,608 |
739 | #include "Symbol.h"
#include <windows.h>
#include <dbghelp.h>
using namespace std;
Symbol::Symbol(const char* name, int value, unsigned int flags, Hunk* hunk, const char* miscString) :
name(name), value(value), flags(flags), hunk(hunk), fromLibrary(false), hunk_offset(0)
{
if(miscString)
this->miscStrin... | 215 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Excited",
"definitions": [
"Very enthusiastic and eager.",
"Sexually aroused.",
"Of or in an energy state higher than the normal or ground state."
],
"parts-of-speech": "Adjective"
} | 111 |
322 | /*
* Copyright (c) <NAME>, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tree).
* You may select, at yo... | 1,386 |
14,668 | <filename>ios/chrome/browser/passwords/ios_chrome_password_infobar_metrics_recorder.h
// 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 IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_INFOBAR_MET... | 1,004 |
2,268 | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef CHOREOSCENE_H
#define CHOREOSCENE_H
#ifdef _WIN32
#pragma once
#endif
class CChoreoEvent;
class CChoreoChannel;
cl... | 4,562 |
6,989 | <reponame>HeyLey/catboost
#pragma once
namespace NNeh {
class IProtocol;
IProtocol* TcpProtocol();
}
| 50 |
507 | <gh_stars>100-1000
# tests/test_provider_hashicorp_opc.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:23:41 UTC)
def test_provider_import():
import terrascript.provider.hashicorp.opc
def test_resource_import():
from terrascript.resource.hashicorp.opc import opc_compute_acl
from terra... | 1,408 |
763 | package org.batfish.representation.aws;
import static com.google.common.base.Preconditions.checkArgument;
import static org.batfish.representation.aws.AwsVpcEntity.JSON_KEY_FROM;
import static org.batfish.representation.aws.AwsVpcEntity.JSON_KEY_TO;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fast... | 550 |
2,023 | <filename>recipes/Python/303177_Sort_names_separate_last_name/recipe-303177.py
"""Provides functionality for taking in an iterable that returns names and then
separates them by last name initial and sorts them."""
import itertools
def groupnames(name_iterable):
"""Return a dict keyed by last name initial with a v... | 486 |
631 | <filename>activeweb-testing/src/test/java/app/controllers/AcceptsDeleteController.java
package app.controllers;
import org.javalite.activeweb.AppController;
import org.javalite.activeweb.annotations.DELETE;
import org.javalite.common.Convert;
/**
*
* Created by igor on 4/22/14.
*/
public class AcceptsDeleteContro... | 153 |
601 | {
"$schema": "../../../node_modules/@microsoft/sp-module-interfaces/lib/manifestSchemas/jsonSchemas/client-Side-Component-Manifest.Schema.json",
"id": "c2a397d3-8c8f-47ab-b731-897178313c15",
"alias": "ModernCalendarWebPart",
"componentType": "WebPart",
"version": "*",
"manifestVersion": 2,
"suppo... | 319 |
542 | package com.test.onesignal;
import androidx.annotation.Nullable;
import java.util.UUID;
class TypeAsserts {
static void assertIsUUID(@Nullable String value) {
UUID.fromString(value);
}
}
| 78 |
315 | /**
* even_odd.c
*
* Creation Date: 03/04/2019
*
* Authors:
* <NAME> (https://github.com/LeoVen)
*
*/
#include "cmc/deque.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
CMC_GENERATE_DEQUE(d, deque, size_t);
typedef struct deque deque;
typedef struct deque_iter deque_iter;
int main(int argc, cha... | 517 |
903 | /*
* 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,037 |
2,921 | <filename>blockchains/smartchain/assets/0x092BBec1342affFd16Cfb41B56343D5A299CDf0D/info.json
{
"name": "ShibaCorgi",
"website": "https://shibacorgi.dog",
"description": "ShiCo is a MEME token inspired by Shiba & DOGE. Best pals ever!",
"explorer": "https://bscscan.com/token/0x092BBec1342affFd16Cfb41B563... | 234 |
370 | """Helpers for complex types used throughout MWS package."""
from typing import List, Union
import mws
MarketplaceEnumOrStr = Union[mws.Marketplaces, str]
StrOrListStr = Union[List[str], str]
| 60 |
678 | <gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/AirTraffic.framework/AirTraffic
*/
/* iOSOpenDev: commented-out (since file not found)
#import <StoreServices/_SSDownloadPropertyStoreItemIdentifier.h>
*/
#import <AirTraffic/AirTraffic-Structs.h>
... | 373 |
560 | <gh_stars>100-1000
/*
* Copyright (c) 2018 <NAME> <<EMAIL>>
* All Rights Reserved.
*/
package me.zhanghai.android.douya.eventbus;
import me.zhanghai.android.douya.network.api.info.frodo.CollectableItem;
public class ItemCollectErrorEvent extends Event {
public CollectableItem.Type itemType;
public long ... | 190 |
501 | /*
* 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... | 2,247 |
17,703 | <reponame>dcillera/envoy<gh_stars>1000+
#pragma once
#include <chrono>
#include <cstdint>
#include <functional>
#include <memory>
#include <string>
#include "envoy/common/pure.h"
namespace Envoy {
namespace Extensions {
namespace Common {
namespace Redis {
using RefreshCB = std::function<void()>;
/**
* A manager ... | 965 |
3,897 | <gh_stars>1000+
/** \addtogroup hal */
/** @{*/
/* mbed Microcontroller Library
* Copyright (c) 2020 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*
* 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 ... | 1,861 |
412 | <gh_stars>100-1000
public class Test {
public String det()
{
StringBuilder builder = new StringBuilder();
builder.append("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".toLowerCase());
builder.append("abcdeghijklmnopfrstuqwxyzABCDvFGHIJKLMENOPQRSTUVWXYZ".toUpperCase());
bu... | 850 |
1,883 | from __future__ import annotations
from argparse import ArgumentParser, _ArgumentGroup
from typing import List, Optional, Type, Union
from sanic_routing import __version__ as __routing_version__ # type: ignore
from sanic import __version__
class Group:
name: Optional[str]
container: Union[ArgumentParser, ... | 3,382 |
777 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_UTIL_H_
#define IOS_CHROME_TEST_EARL_GREY_CHROME_UTIL_H_
namespace chrome_test_util {
// Asserts that the toolb... | 190 |
12,377 | import torch.nn as nn
from mmcv.cnn import ConvModule, build_upsample_layer, xavier_init
from mmcv.ops.carafe import CARAFEPack
from ..builder import NECKS
@NECKS.register_module()
class FPN_CARAFE(nn.Module):
"""FPN_CARAFE is a more flexible implementation of FPN. It allows more
choice for upsample methods ... | 5,908 |
3,215 | import os
import json
import unittest
import jc.parsers.ss
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
class MyTests(unittest.TestCase):
def setUp(self):
# input
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/ss-sudo-a.out'), 'r', encoding='utf-8') as f:
... | 797 |
1,478 | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include <... | 2,731 |
1,275 | /**
* 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... | 513 |
1,056 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 1,739 |
543 | /*
* Copyright (C) 2014 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... | 2,481 |
333 | <filename>BoxEngine/ROIPooling/ROIPoolingWrapper.py
# Copyright 2017 <NAME>. 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.... | 650 |
2,107 | <reponame>aoeixsz4/nh-setseed
// Copyright (c) <NAME>, 1999.
// Qt4 conversion copyright (c) <NAME>, 2012-2014.
// NetHack may be freely redistributed. See license for details.
// qt_inv.h -- inventory usage window
// This is at the top center of the main window
#ifndef QT4INV_H
#define QT4INV_H
namespace nethack_q... | 400 |
348 | {"nom":"Escandolières","circ":"2ème circonscription","dpt":"Aveyron","inscrits":184,"abs":93,"votants":91,"blancs":27,"nuls":15,"exp":49,"res":[{"nuance":"REM","nom":"<NAME>","voix":49}]} | 75 |
1,909 | <reponame>Danielbatista0590/earthengine-api<filename>python/ee/apifunction.py
#!/usr/bin/env python
"""A class for representing built-in EE API Function.
Earth Engine can dynamically produce a JSON array listing the
algorithms available to the user. Each item in the dictionary identifies
the name and return type of t... | 3,079 |
3,655 | # 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 appli... | 1,504 |
432 | <reponame>lambdaxymox/DragonFlyBSD<filename>games/hack/hack.main.c
/* $NetBSD: hack.main.c,v 1.17 2011/08/06 20:42:43 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
* Amsterdam
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without... | 6,014 |
1,133 | #ifndef CasterRound_h
#define CasterRound_h
#ifndef MESSAGE
#define MESSAGE cout << "file " << __FILE__ << " line " << __LINE__ << endl;
#endif
#ifndef ERR_MESSAGE
#define ERR_MESSAGE cout << "Error in file " << __FILE__ << " at line " << __LINE__ << " Exiting" << endl; exit(1);
#endif
#include <stdint.h>
#include "... | 426 |
971 | /*--------------------------------------------------------------------
* Symbols referenced in this file:
* - function_parse_error_transpose
*--------------------------------------------------------------------
*/
/*-------------------------------------------------------------------------
*
* pg_proc.c
* rout... | 1,180 |
3,055 | <reponame>Linghhh/u8g2<gh_stars>1000+
/*
Fontname: -FreeType-Bubble-Medium-R-Normal--24-240-72-72-P-183-ISO10646-1
Copyright: Copyright Omegaville 2018
Glyphs: 71/71
BBX Build Mode: 0
*/
const uint8_t u8g2_font_bubble_tr[3168] U8G2_FONT_SECTION("u8g2_font_bubble_tr") =
"G\0\3\2\5\5\1\4\6\34\30\0\372\22\372\2... | 5,563 |
1,152 | <reponame>jamill/VFSForGit
#pragma once
extern "C"
{
NATIVE_TESTS_EXPORT bool ProjFS_MoveFolder_NoneToNone(const char* virtualRootPath);
NATIVE_TESTS_EXPORT bool ProjFS_MoveFolder_VirtualToNone(const char* virtualRootPath);
NATIVE_TESTS_EXPORT bool ProjFS_MoveFolder_PartialToNone(const char* virtualR... | 408 |
5,169 | {
"name": "DYEntireRealTimeSDK",
"version": "0.0.1",
"summary": "本SDK封装了多厂商的音视频SDK和相应的即时通讯SDK",
"description": "1. 简化和统一了各厂商服务注册和接口调用方式 2. 支持在各厂商SDK之间安全、高效地调度(目前支持声网、腾讯) 3. 多条通道并行发送自定义消息和消息去重 4. 封装了日志模块(厂商log,自定义log,DDLog),用于数据跟踪和后续分析 5. 解决多SDK引入和编译问题",
"homepage": "https://github.com/jackleemeta/DYEntireReal... | 1,070 |
1,330 | /*
* 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 ... | 2,415 |
393 | package com.marverenic.music.ui.library.playlist.contents.edit;
import android.content.Context;
import androidx.databinding.Bindable;
import androidx.recyclerview.widget.RecyclerView;
import com.marverenic.adapter.HeterogeneousAdapter;
import com.marverenic.music.BR;
import com.marverenic.music.data.store.MusicStore;... | 993 |
8,232 | // Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include <algorithm>
#include <cassert>
#include <concepts>
#include <ranges>
#include <utility>
#include <range_algorithm_support.hpp>
using namespace std;
// Validate that copy_result aliases in_out_res... | 890 |
2,890 | package com.github.ltsopensource.json.bean;
import java.lang.reflect.Method;
/**
* @author <NAME> (<EMAIL>) on 12/31/15.
*/
public class MethodInfo {
private String fieldName;
private Method method;
public MethodInfo(String fieldName, Method method) {
this.fieldName = fieldName;
this.... | 247 |
326 | <reponame>LaudateCorpus1/math
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2014 <NAME>, Amsterdam, the Netherlands.
// Copyright (c) 2008-2014 <NAME>, Paris, France.
// Copyright (c) 2009-2014 <NAME>, London, UK.
// This file was modified by Oracle on 2014-2021.
// Modifications copyrig... | 842 |
677 | <gh_stars>100-1000
// Copyright 2017 The Lynx Authors. All rights reserved.
#include <base/log/logging.h>
#include "render/image_view.h"
#include "render/impl/render_object_impl.h"
#include "render/render_tree_host.h"
namespace lynx {
const static char* kImageSrcAttribute = "src";
#if OS_ANDROID
const std::string kA... | 717 |
348 | {"nom":"Manso","circ":"2ème circonscription","dpt":"Haute-Corse","inscrits":139,"abs":40,"votants":99,"blancs":1,"nuls":0,"exp":98,"res":[{"nuance":"REG","nom":"<NAME>","voix":87},{"nuance":"REM","nom":"<NAME>","voix":11}]} | 91 |
2,728 | /*
* Phusion Passenger - https://www.phusionpassenger.com/
* Copyright (c) 2013-2017 Phusion Holding B.V.
*
* "Passenger", "Phusion Passenger" and "Union Station" are registered
* trademarks of Phusion Holding B.V.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this ... | 752 |
743 | package pl.allegro.tech.hermes.tracker.elasticsearch;
import org.elasticsearch.client.AdminClient;
import org.elasticsearch.client.Client;
import org.elasticsearch.cluster.metadata.IndexMetaData;
import org.elasticsearch.common.collect.ImmutableOpenMap;
import org.elasticsearch.common.settings.Settings;
import org.ela... | 1,184 |
3,227 | <reponame>ffteja/cgal
// Copyright (c) 1997 INRIA Sophia-Antipolis (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
//
// Author(s) : <NAME>
#ifndef CGAL_TRIANGULATION_ON_SPHERE_VERTEX_BAS... | 1,198 |
1,085 | <filename>lib/galaxy/model/migrate/versions/0027_request_events.py
"""
This migration script adds the request_event table and
removes the state field in the request table
"""
import datetime
import logging
from sqlalchemy import (
Column,
DateTime,
ForeignKey,
Integer,
MetaData,
Table,
TEX... | 628 |
10,225 | <reponame>mweber03/quarkus
package io.quarkus.amazon.lambda.http;
import io.quarkus.amazon.lambda.http.model.AwsProxyRequest;
import io.quarkus.security.identity.request.BaseAuthenticationRequest;
/**
* This will execute if and only if there is no identity after invoking a LambdaAuthenticationRequest
*/
final publi... | 194 |
2,151 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/app_list/arc/arc_usb_host_permission_manager_factory.h"
#include "chrome/browser/profiles/incognito_helpers.h"
#include "chro... | 611 |
35,083 | //
// ========================================================================
// Copyright (c) 1995-2018 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | 898 |
3,062 | package com.mapswithme.maps.editor.data;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
public class FeatureCategory implements Parcelable
{
@NonNull
private final String mType;
@NonNull
private final String mLocalizedTypeName;
public FeatureCategory(@NonNull ... | 430 |
381 | <reponame>xiaotuoapi/yyblog
package net.laoyeye.yyblog.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import com.... | 666 |
691 | /*=============================================================================
Copyright (c) 2011-2019 <NAME>
https://github.com/bolero-MURAKAMI/Sprout
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)
=====... | 673 |
1,428 | <filename>C++/implement_kadane.cpp
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int n;
cin>>n;
int arr[n];
for(int i = 0; i < n; i++)
{
cin>>arr[i];
}
int max = INT_MIN;
int max2 = 0;
for(int i = 0; i < n; i++)
{
max2 = max2 + arr... | 323 |
2,757 | //
//
/*++
Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
http://openso... | 472 |
462 | <gh_stars>100-1000
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2011 <NAME> <<EMAIL>>
* Copyright (C) 2006 Refractions Research Inc.
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free softwa... | 895 |
384 | #ifndef OMPI_SKIP_MPICXX
#define OMPI_SKIP_MPICXX
#endif
#ifndef MPICH_SKIP_MPICXX
#define MPICH_SKIP_MPICXX
#endif
#include "FAST_Library.h"
#include <sstream>
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include "mpi.h"
#include "hdf5.h"
#include "dlfcn.h"
class scInitOutData {
public:
... | 1,914 |
486 | <reponame>laurentedel/sqlline
/*
// Licensed to <NAME> under one or more contributor license
// agreements. See the NOTICE file distributed with this work for
// additional information regarding copyright ownership.
//
// <NAME> licenses this file to you under the Modified BSD License
// (the "License"); you may not us... | 742 |
737 | /* hex_dump.h -*- C++ -*-
<NAME>, 6 October 2010
Copyright (c) 2010 <NAME>. All rights reserved.
Copyright (c) 2010 Datacratic. All rights reserved.
Routine to dump memory in hex format.
*/
#ifndef __utils__hex_dump_h__
#define __utils__hex_dump_h__
... | 259 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.