max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,379 | # 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,812 |
3,102 | <filename>tools/clang/test/SemaTemplate/instantiate-declref.cpp
// RUN: %clang_cc1 -fsyntax-only -verify %s
namespace N {
struct Outer {
struct Inner {
template<typename T>
struct InnerTemplate {
struct VeryInner {
typedef T type;
static enum K1 { K1Val = sizeof(T) } Kind1... | 1,336 |
3,358 | <reponame>urgu00/QuantLib
/* This file is automatically generated; do not edit. */
/* Add the files to be included into Makefile.am instead. */
#include <ql/math/statistics/convergencestatistics.hpp>
#include <ql/math/statistics/discrepancystatistics.hpp>
#include <ql/math/statistics/gaussianstatistics.hpp>
#inclu... | 215 |
6,717 | <gh_stars>1000+
//******************************************************************************
//
// Copyright (c) 2016 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCL... | 509 |
1,073 | <gh_stars>1000+
package org.saiku.plugin.resources;
import javax.ws.rs.Path;
import org.saiku.web.rest.resources.SessionResource;
@Path("/saiku/api/session")
public class PentahoSessionResource extends SessionResource {
}
| 76 |
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 "base/command_line.h"
#include "base/strings/stringprintf.h"
#include "components/exo/wayland/clients/blur.h"
#include "components/exo/wayland/cl... | 1,678 |
518 | // #Update Payment
package com.paypal.api.payments.servlet;
import com.paypal.api.payments.Amount;
import com.paypal.api.payments.Details;
import com.paypal.api.payments.Patch;
import com.paypal.api.payments.Payment;
import com.paypal.api.payments.util.ResultPrinter;
import com.paypal.base.rest.APIContext;
import com.... | 1,016 |
313 | /*
* Copyright 2020 Netflix, 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 t... | 1,047 |
382 |
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// class java.awt.Window ///
package org.swiftjava.java_awt;
@SuppressWarnings("JniMissingFunction")
public class WindowProxy extends java.awt.Window {
// address of proxy object
long __swiftObject;
/// public jav... | 674 |
824 | <reponame>ummavi/pfrl-1
import torch
from torch import nn
from pfrl.nn.lmbda import Lambda
from pfrl.testing import torch_assert_allclose
def test_lambda():
model = nn.Sequential(
nn.ReLU(),
Lambda(lambda x: x + 1),
nn.ReLU(),
)
x = torch.rand(3, 2)
# Since x is all positive, ... | 181 |
2,829 | <gh_stars>1000+
/* Copyright 2020 Alibaba Group Holding Limited. 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 ... | 1,426 |
4,140 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 1,513 |
2,996 | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.logic.behavior.core;
/**
* Succeed always.
*/
public class SuccessNode extends LeafNode {
@Override
public String getName() {
return "success";
}
@Override
public BehaviorNode... | 218 |
598 | <reponame>stjordanis/imodels
import unittest
from sklearn.utils.estimator_checks import check_estimator
from imodels import *
class TestCheckEstimators(unittest.TestCase):
'''Checks that estimators conform to sklearn checks
'''
def test_check_classifier_compatibility(self):
'''Test classifiers ... | 336 |
1,473 | <filename>web/src/main/java/com/navercorp/pinpoint/web/filter/responsetime/DefaultResponseTimeFilter.java
package com.navercorp.pinpoint.web.filter.responsetime;
/**
* @author emeroad
*/
public class DefaultResponseTimeFilter implements ResponseTimeFilter {
private final long fromResponseTime;
private fina... | 377 |
1,244 | <filename>deps/v8/src/gen/d8-js.cc
// Copyright 2011 Google Inc. All Rights Reserved.
// This file was generated from .js source files by GYP. If you
// want to make changes to this file you should either change the
// javascript source files or the GYP script.
#include "src/v8.h"
#include "src/snapshot/natives.h"
#... | 3,944 |
335 | {
"word": "Somatostatin",
"definitions": [
"A hormone secreted in the pancreas and pituitary gland which inhibits gastric secretion and somatotrophin release."
],
"parts-of-speech": "Noun"
} | 82 |
5,169 | {
"name": "Expecta+ContainerClasses",
"version": "1.0.1",
"summary": "Adds containInstancesOfClass to expecta's matchers.",
"description": " Extends expecta to include matchers for testing that sets or arrays contain\n objects of an expected class.\n",
"homepage": "... | 354 |
3,680 | #!/pxrpythonsubst
#
# Copyright 2018 Pixar
#
# Licensed under the Apache License, Version 2.0 (the "Apache License")
# with the following modification; you may not use this file except in
# compliance with the Apache License and the following modification to it:
# Section 6. Trademarks. is deleted and replaced with:
#
... | 7,329 |
317 | import hashlib
import logging
import os
import shutil
import traceback
from contextlib import closing
from pywb.utils.loaders import BlockLoader
from webrecorder.rec.storage.base import BaseStorage
from webrecorder.rec.storage.storagepaths import add_local_store_prefix, strip_prefix
logger = logging.getLogger('wr.io... | 2,453 |
577 | <filename>tests/java/javatests/Inheritance.java<gh_stars>100-1000
// Inheritance*.java are used to test for http://bugs.jython.org/issue2104
//
// However this inheritance hierarchy as constructed is still not
// sufficient to reproduce the issue raised by <NAME> and Jaime
// Saiz, so need to figure out a patch that do... | 177 |
337 | public class OverrideMe {
/**
* Some comment
*/
void overrideMe();
} | 35 |
421 |
//<Snippet1>
// Example of the Decimal::Multiply, Decimal::Divide, and
// Decimal::Remainder methods.
using namespace System;
// Display Decimal parameters and their product, quotient, and
// remainder.
void ShowDecimalProQuoRem( Decimal Left, Decimal Right )
{
String^ dataFmt = "{0,-35}{1,31}";
C... | 1,820 |
307 | <reponame>Inch-Z/Cream
import os
import random
import argparse
random.seed(0)
parser = argparse.ArgumentParser('Generate SubImageNet', add_help=False)
parser.add_argument('--data-path', default='../data/imagenet', type=str,
help='dataset path')
args = parser.parse_args()
data_path = args.data_path
... | 841 |
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 "base/strings/string_util.h"
#include "base/test/task_environment.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/c... | 1,538 |
578 | /*
* Copyright (C) 2016 Red Hat, 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 agre... | 1,652 |
317 | <reponame>liuxuvip/OTB
/*
* Copyright (C) 2005-2021 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 2,180 |
5,169 | <reponame>Gantios/Specs
{
"name": "LSCountdownView",
"version": "1.0.4",
"summary": "This is the summary of LSCountdownView and what it can do. This should be meaningful.",
"description": "This is a iOS library that can be used to create a view that manages the counting down from a date to another date. This co... | 298 |
4,816 | <reponame>mehrdad-shokri/retdec
/**
* @file src/utils/conversion.cpp
* @brief Implementation of the conversion utilities.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include <bitset>
#include <cstring>
#include "retdec/utils/conversion.h"
#include "retdec/utils/string.h"
namespace retdec... | 2,427 |
640 | <gh_stars>100-1000
// Keyboard
unsigned int keystatus; // Estado del teclado
// Frames in stage
unsigned int stageframe; // Guarda las frames en una stage
// Speeding thins up
unsigned char stageframe2mod;
unsigned char stageframe4mod;
unsigned char sprite82anim;
unsigned char sprite164anim;
// Game vars
unsign... | 1,663 |
496 | // This file is generated by TypeBuilder_cpp.template.
// Copyright (c) 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/inspector/protocol/Runtime.h"
#include "src/inspector/protocol/Protocol.h"
#in... | 42,204 |
312 | <gh_stars>100-1000
/*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* w... | 589 |
3,850 | /**
* Copyright (C) 2010-2016 eBusiness Information, Excilys Group
* Copyright (C) 2016-2020 the AndroidAnnotations 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://... | 517 |
3,100 | <filename>src/xenia/gpu/xenos.cc<gh_stars>1000+
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2020 <NAME>. Al... | 1,866 |
372 | <gh_stars>100-1000
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import os
import sys
import collections
import logging
from stacker.util import load_object_from_string
logger = logging.getLogger(__name__)
def full_path(path):
return os.path.abspath... | 1,349 |
337 | <gh_stars>100-1000
package test2;
import test.A;
class Test {
A.B foo() {
return new A.B();
}
} | 56 |
21,382 | <gh_stars>1000+
"""
Parameter Server
================
The parameter server is a framework for distributed machine learning training.
In the parameter server framework, a centralized server (or group of server
nodes) maintains global shared parameters of a machine-learning model
(e.g., a neural network) while the data... | 3,252 |
1,639 | #include<bits/stdc++.h>
using namespace std;
const int N = 3e6 + 9;
vector<pair<int, int>> g[N];
vector<long long> dijkstra(int s, int t, vector<pair<int, int>> g[]) {
int n = t;
const long long inf = 1e18;
priority_queue<pair<long long, int>, vector<pair<long long, int>>, greater<pair<long long, int>>> q;
vec... | 761 |
372 | <reponame>kbore/pbis-open
/* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
* -*- mode: c, c-basic-offset: 4 -*- */
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0... | 7,888 |
1,546 | <gh_stars>1000+
package org.libpag;
public class PAGMarker {
public long mStartTime;
public long mDuration;
public String mComment;
public PAGMarker(long startTime, long duration, String comment) {
mStartTime = startTime;
mDuration = duration;
mComment = comment;
}
}
| 122 |
1,540 | package test.failedreporter.issue2517;
import java.io.File;
import java.util.List;
import org.testng.Assert;
import org.testng.TestNG;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import org.testng.collections.Lists;
import test.SimpleBaseTe... | 566 |
4,538 | <filename>components/drivers/external_device/ili9341/example/ili9341_example.c<gh_stars>1000+
#if AOS_COMP_CLI
#include "aos/cli.h"
#endif
// example based on haaseduk1
#include "hal_iomux_haas1000.h"
#include "ili9341.h"
ili9341_dev_t my_ili9341 = {0};
static void example_ili9341_hw_init(int argc, char **argv)
{
... | 588 |
2,151 | /*
** 2008 August 18
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
**********************... | 23,828 |
1,163 | <reponame>lauranovich/python-driver<gh_stars>1000+
# Copyright DataStax, 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 require... | 4,397 |
10,876 | {
"name": "libmspack",
"version-string": "0.10.1",
"port-version": 4,
"description": "libmspack is a portable library for some loosely related Microsoft compression formats.",
"homepage": "https://www.cabextract.org.uk/libmspack"
}
| 82 |
348 | # Copyright 2018 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 in writing,... | 8,213 |
985 | <gh_stars>100-1000
package com.github.zxh.classpy.bitcoin;
import com.github.zxh.classpy.common.FileParser;
public class TxParser implements FileParser {
@Override
public Transaction parse(byte[] data) {
Transaction tx = new Transaction();
try {
tx.read(new BlockReader(data));
... | 183 |
575 | <gh_stars>100-1000
// 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.
#include "ui/base/cursor/win/win_cursor_factory.h"
#include <windows.h>
#include <string>
#include "base/memory/scoped_refptr.h"
#in... | 2,717 |
411 | package com.documents4j.ws;
import com.documents4j.api.DocumentType;
import javax.xml.bind.annotation.XmlElement;
public class AdaptedDocumentType {
private String type;
private String subtype;
public AdaptedDocumentType() {
}
public AdaptedDocumentType(DocumentType original) {
type = ... | 300 |
443 | #import <XCTest/XCTest.h>
#import <OCHamcrestIOS/OCHamcrestIOS.h>
#import <OCMockitoIOS/OCMockitoIOS.h>
@interface BITTestsDependencyInjection : XCTestCase
- (void)setMockNotificationCenter:(id)mockNotificationCenter;
- (id)mockNotificationCenter;
@end
| 110 |
575 | // 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.
//
// Some socket related helper methods for quic.
#ifndef NET_QUIC_PLATFORM_IMPL_QUIC_SOCKET_UTILS_H_
#define NET_QUIC_PLATFORM_IMPL_QUIC_SOCKET_UTIL... | 3,207 |
2,847 | from tortoise import Model, fields
class Users(Model):
id = fields.IntField(pk=True)
status = fields.CharField(20)
def __str__(self):
return f"User {self.id}: {self.status}"
class Workers(Model):
id = fields.IntField(pk=True)
status = fields.CharField(20)
def __str__(self):
... | 147 |
368 | package io.charlescd.villager.test;
import io.charlescd.villager.api.misc.ExceptionHandler;
import io.charlescd.villager.exceptions.ThirdPartyIntegrationException;
import org.junit.jupiter.api.Test;
import javax.ws.rs.core.Response;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matc... | 492 |
17,703 | <gh_stars>1000+
#pragma once
#include <chrono>
#include <memory>
#include <string>
#include "envoy/extensions/filters/http/jwt_authn/v3/config.pb.h"
#include "source/common/common/utility.h"
#include "jwt_verify_lib/jwt.h"
#include "jwt_verify_lib/verify.h"
using envoy::extensions::filters::http::jwt_authn::v3::Jwt... | 486 |
5,169 | {
"name": "EasySpotlight",
"version": "1.0.0",
"summary": "Easy way to add content to core spotlight",
"description": "Easily index your classes and structs to CoreSpotlight by adopting to this simple protocol.",
"homepage": "https://github.com/felix-dumit/EasySpotlight",
"license": "MIT",
"authors": {
... | 236 |
1,144 | package de.metas.contracts.refund.allqties;
import static de.metas.util.collections.CollectionUtils.singleElement;
import java.util.List;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableList;
import de.metas.contracts.refund.AssignCandidatesRequest;
import de.metas.... | 2,480 |
373 | /*
* Created on 09.08.2005
*
* (c) Copyright <NAME>, Germany. Contact: <EMAIL>.
*/
package net.finmath.swing;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DecimalFormat;
import java.text.ParseException;
import javax.swing.JTextField;
import net.finmath.time.TimeDiscre... | 1,654 |
417 | <gh_stars>100-1000
#!/usr/bin/python
# Downloads all localized message files from the Blockly web repo and
# updates the corresponding JSON message files in Blockly iOS.
#
# NOTE: `git` needs to be installed for this script to run.
#
# Usage:
# python update_i18n_messages.py
#
# Copyright 2017 Google Inc.
# https://de... | 1,854 |
795 | <reponame>sarahlc888/ai-economist
# Copyright (c) 2020, salesforce.com, inc.
# All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
# For full license text, see the LICENSE file in the repo root
# or https://opensource.org/licenses/BSD-3-Clause
import numpy as np
from ai_economist.foundation.base.registrar im... | 597 |
335 | {
"word": "Ameliorate",
"definitions": [
"To make something better; improvement.",
"To bring closer to a standard."
],
"parts-of-speech": "Verb"
}
| 78 |
665 | // This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
/* connectfd.h -*- C++ -*-
<NAME>, 5 August 2015
Copyright (c) 2015 mldb.ai inc. All rights reserved.
*/
#pragma once
#include <string>
namespace MLDB {
/** Utility function to... | 271 |
501 | #!/usr/bin/env python
'''
This example collects tricks that can be used in the pyscf input script.
'''
import pyscf
#
# 1. Import all pyscf modules
#
# This statement will import all methods into Mole class. These methods can be
# accessed as the attributes/methods of Mole object.
from pyscf import __all__
mol = p... | 1,101 |
416 | <reponame>Brick-OS-PokeyManatee4/BashDashBang
/* array.h -- definitions for the interface exported by array.c that allows
the rest of the shell to manipulate array variables. */
/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
Bash is free soft... | 1,684 |
1,540 | <gh_stars>1000+
package test.dataprovider;
import org.testng.annotations.Test;
public class InheritedDataProviderSample extends InheritedDataProvider {
@Test(dataProvider = "dp")
public void f(String s) {}
}
| 68 |
12,820 | /*
* SPDX-License-Identifier: Apache-2.0
*/
// Adapter for Pad in default domain from version 10 to 11
#pragma once
namespace ONNX_NAMESPACE { namespace version_conversion {
class Pad_10_11 final : public Adapter {
public:
explicit Pad_10_11()
: Adapter("Pad", OpSetID(10), OpSetID(11)) {}
void ad... | 685 |
11,010 | /*
* Copyright (C) 2009 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 ... | 710 |
852 | <gh_stars>100-1000
#ifndef ExtendedPerigeeTrajectoryError_H
#define ExtendedPerigeeTrajectoryError_H
#include "DataFormats/CLHEP/interface/AlgebraicObjects.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
class ExtendedPerigeeTrajectoryError {
public:
ExtendedPerigeeTrajectoryError() : weightAvailable(f... | 397 |
2,728 | <gh_stars>1000+
{
"resolution": "main",
"tree": {
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/d09fbd46a893294f5fe7d53dc206dd41661e7ee2/fast-json-patch/fast-json-patch.d.ts",
"raw": "registry:dt/fast-json-patch#1.0.0+20160803194703",
"typings": "https://raw.githubusercontent... | 195 |
2,151 | // Copyright (c) 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_THIRD_PARTY_QUIC_PLATFORM_IMPL_QUIC_TEST_LOOPBACK_IMPL_H_
#define NET_THIRD_PARTY_QUIC_PLATFORM_IMPL_QUIC_TEST_LOOPBACK_IMPL_H_
#include ... | 319 |
1,664 | <reponame>likenamehaojie/Apache-Ambari-ZH<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... | 624 |
302 | #ifndef MYCOMBOBOX_H
#define MYCOMBOBOX_H
#include <QComboBox>
class MyComboBox : public QComboBox {
Q_OBJECT
public:
MyComboBox(QWidget *parent = nullptr) : QComboBox(parent) {
addItem("My ComboBox");
}
virtual ~MyComboBox() {}
};
#endif // MYCOMBOBOX_H
| 112 |
348 | {"nom":"Breuil-Magné","circ":"2ème circonscription","dpt":"Charente-Maritime","inscrits":1313,"abs":603,"votants":710,"blancs":8,"nuls":11,"exp":691,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":265},{"nuance":"LR","nom":"Mme <NAME>","voix":158},{"nuance":"FI","nom":"Mme <NAME>","voix":97},{"nuance":"FN","nom":"<NAM... | 296 |
852 | <filename>CalibTracker/SiPixelGainCalibration/python/SiPixelCalibDigiProducer_cfi.py
import FWCore.ParameterSet.Config as cms
siPixelCalibDigis = cms.EDProducer("SiPixelCalibDigiProducer",
src = cms.InputTag("siPixelDigis"),
# force the producer to use the event numbers as in the data. If false the producer wi... | 401 |
387 | from neo.Utils.NeoTestCase import NeoTestCase
from neo.logging import log_manager
import logging
class LogManagerTestCase(NeoTestCase):
def test_default_level_info(self):
"""
Make sure the the logger instance
"""
with self.assertLogHandler('generic', level=logging.INFO) as context:... | 3,461 |
10,225 | <filename>independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/StatusTypeImpl.java
package org.jboss.resteasy.reactive.common.jaxrs;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status.Family;
import javax.ws.rs.core.Response.StatusType;
pu... | 452 |
1,847 | <reponame>tufeigunchu/orbit
#pragma once
#include "../../relacy/pch.hpp"
#include "../../relacy/relacy_std.hpp"
| 53 |
575 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/device_event_log/device_event_log_impl.h"
#include <cmath>
#include <list>
#include <set>
#include "base/bind.h"
#include "base/con... | 7,771 |
383 | <gh_stars>100-1000
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2018, Locus Robotics
* 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 ... | 2,535 |
626 | // Copyright (c) Facebook, Inc. and its affiliates.
#include <sys/socket.h>
#include <iostream>
#include <vector>
#include "packet_writer.h"
using namespace std;
void PacketWriter::safeWrite(vector<uint8_t> bs) {
lock_.lock();
socketSend(bs);
lock_.unlock();
}
void PacketWriter::socketSend(vector<uint8_t> b... | 139 |
1,936 | <reponame>AdronTech/maplab
#ifndef VI_MAP_DEPRECATED_GPS_DATA_STORAGE_INL_H_
#define VI_MAP_DEPRECATED_GPS_DATA_STORAGE_INL_H_
namespace vi_map {
template <>
inline void GPSDataStorage::addMeasurement(
const GPSMeasurementWGS& measurement, const MissionId& mission_id) {
CHECK_GT(measurement.timestamp, 0);
CHE... | 1,587 |
347 | <reponame>hbraha/ovirt-engine
package org.ovirt.engine.core.common.utils.ansible;
import javax.inject.Inject;
import javax.inject.Singleton;
@Singleton
public class AnsibleClientFactory {
@Inject
private AnsibleCommandLogFileFactory ansibleCommandLogFileFactory;
public AnsibleRunnerHttpClient create(Ans... | 202 |
1,382 | /*
* Copyright (c) 2007 - 2015 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... | 889 |
990 | <reponame>rampup01/Leetcode
'''
Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.
Example 1:
Input: [3,0,1]
Output: 2
Example 2:
Input: [9,6,4,2,3,5,7,0,1]
Output: 8
'''
class Solution(object):
def missingNumber(self, nums):
"""
... | 255 |
310 | PAD = 0
UNK = 1
SEP = 2
CLS = 3
MASK = 4
WORD = {
UNK: '<unk>',
PAD: '<pad>',
SEP: '<sep>',
CLS: '<cls>',
MASK: '<mask>',
}
RANDOM_MARK = 0.8
RANDOM_WORD = 0.5
RANDOM_WORD_SAMPLE = 0.15
RANDOM_SENT = 0.5
NEXT = 1
NOT_NEXT = 0
SEGMENTA = 1
SEGMENTB = 2
INIT_RANGE = 0.02
NOT_USE_WEIGHT_DECAY =... | 219 |
342 | <gh_stars>100-1000
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include "vtest/Engine.h"
#include "vtest/Spaceship.h"
#include "vtest/Seaship.h"
#include "vtest/IShip.h"
#include "vtest/cGetShipFuel.h"
#include "vtest/valeGetShipFuel.h"
extern ValeInt vtest_cGetShipFuel(vtest_IShip s) {
return vtest_... | 151 |
335 | {
"word": "Hyper",
"definitions": [
"Hyperactive or unusually energetic."
],
"parts-of-speech": "Adjective"
} | 58 |
3,282 | <gh_stars>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.chrome.browser.ntp;
import android.app.Activity;
import android.graphics.Canvas;
import android.support.v4.view.View... | 1,634 |
4,391 | # This sample tests that the TypeVar matching logic for
# functions is working correctly.
from typing import List
a: List[str] = ["a", "bc"]
# This should work because the "sorted" is defined
# with the first parameter of Iterable[_T] and the
# 'key' parameter Callable[[_T], Any]. Since "len"
# is a function that ta... | 136 |
2,697 | <filename>_data/chains/eip155-245022940.json
{
"name": "Neon EVM TestNet",
"chain": "Solana",
"network": "testnet",
"rpc": [
"https://proxy.testnet.neonlabs.org/solana"
],
"faucets": [],
"nativeCurrency": {
"name": "Neon",
"symbol": "NEON",
"decimals": 18
},
"infoURL": "https://neon-la... | 192 |
404 | <filename>kernel/src/main/java/org/kframework/compile/AddTopCellToRules.java
// Copyright (c) 2015-2019 K Team. All Rights Reserved.
package org.kframework.compile;
import org.kframework.attributes.Att;
import org.kframework.builtin.KLabels;
import org.kframework.backend.kore.ConstructorChecks;
import org.kframework.d... | 2,660 |
787 | <reponame>zhuohuwu0603/leetcode_cpp_lzl124631x
class Solution {
public:
bool isValidSerialization(string preorder) {
stack<int> s;
stringstream ss(preorder);
string node;
bool ended = false;
while (getline(ss, node, ',')) {
if (ended) return false;
if ... | 337 |
1,681 | package com.easytoolsoft.easyreport.support.mapping;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.web.bind.annotation.Mapping;
/**
* ... | 189 |
336 | <gh_stars>100-1000
// Copyright satoren
// 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)
#pragma once
#include "kaguya/kaguya.hpp"
/// @addtogroup another_binding_api
/// @brief Boost.python like binding API.(ex... | 3,348 |
2,206 | <reponame>Celebrate-future/deeplearning4j<gh_stars>1000+
/*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www... | 521 |
696 | <filename>modules/basics/src/main/java/com/opengamma/strata/basics/index/FloatingRateIndex.java
/*
* Copyright (C) 2017 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.basics.index;
import java.util.Optional;
import org.joda... | 2,388 |
575 | <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.
#ifndef HEADLESS_LIB_BROWSER_HEADLESS_PRINT_MANAGER_H_
#define HEADLESS_LIB_BROWSER_HEADLESS_PRINT_MANAGER_H_
#include <memory>
#inclu... | 1,454 |
1,016 | <filename>services/feed-manager-service/feed-manager-api/src/main/java/com/thinkbiganalytics/feedmgr/security/EncryptionAccessControl.java
package com.thinkbiganalytics.feedmgr.security;
/*-
* #%L
* kylo-feed-manager-api
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* Licensed under the Apache License, Versi... | 412 |
1,939 | <filename>src/backend/codecc/core/apiquery/api-apiquery/src/main/java/com/tencent/bk/codecc/apiquery/defect/model/StatStatisticModel.java
package com.tencent.bk.codecc.apiquery.defect.model;
public class StatStatisticModel extends StatisticModel {
}
| 93 |
1,380 |
/*
* sophia database
* sphia.org
*
* Copyright (c) <NAME>
* BSD License
*/
#include <sophia.h>
#include <libss.h>
#include <libsf.h>
#include <libsr.h>
#include <libsv.h>
#include <libso.h>
#include <libst.h>
void st_generator_init(stgenerator *g, sr *r,
int key_start, int key_end,
... | 1,865 |
336 | <filename>system/apps_experiments/89_fancyepd/source/fancyepd/compression_test.h
#ifndef COMPRESSION_TEST_H
#define COMPRESSION_TEST_H
static const uint8_t angel[] = {
1, 1, 4, 2, 1, 3,112,129, 80, 4,150, 97, 0,103, 48,222,
255, 4,135,255,255,255,255,255,255,255,255, 18, 25,199,123, 3,
123,255,255,255,25... | 22,369 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.