max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
933 | <reponame>ztlevi/perfetto
/*
* Copyright (C) 2020 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
*... | 512 |
3,428 | {"id":"01020","group":"spam-2","checksum":{"type":"MD5","value":"291c3b0685eedf6178cc323bb8e2ce55"},"text":"Received: from hq.pro-ns.net (localhost [127.0.0.1])\n\tby hq.pro-ns.net (8.12.5/8.12.5) with ESMTP id g6O2a1hY010356\n\t(version=TLSv1/SSLv3 cipher=EDH-DSS-DES-CBC3-SHA bits=168 verify=NO)\n\tfor <<EMAIL>>; Tue,... | 1,679 |
1,853 | unsigned __attribute__((const))
ctz(unsigned x)
{
return 0;
}
| 24 |
451 | /*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAM... | 5,019 |
544 | package com.hubspot.jinjava.el.ext.eager;
import com.hubspot.jinjava.el.ext.DeferredParsingException;
import com.hubspot.jinjava.interpret.DeferredValueException;
import com.hubspot.jinjava.util.EagerExpressionResolver;
import de.odysseus.el.tree.Bindings;
import de.odysseus.el.tree.impl.ast.AstMethod;
import de.odyss... | 1,559 |
1,079 | package com.dds.skywebrtc;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import com.dds.skywebrtc.engine.EngineCallback;
import com.dds.skywebrtc.engine.webrtc.WebRTCEngine;
import com.dds.skywebrt... | 7,151 |
1,212 | <reponame>btrask/stronglink<filename>res/experiments/2015-06-07-file-cache.c<gh_stars>1000+
// Caching is done with mmap, so this defines address space, not actual RAM use.
// The kernel is free to page out cached files depending on memory pressure.
#if defined(__LP64__) || defined(__ILP64__)
#define SLN_CACHE_SIZE (1... | 800 |
348 | <filename>docs/data/leg-t2/002/00205163.json
{"nom":"Charly-sur-Marne","circ":"5ème circonscription","dpt":"Aisne","inscrits":1650,"abs":891,"votants":759,"blancs":39,"nuls":9,"exp":711,"res":[{"nuance":"REM","nom":"<NAME>","voix":437},{"nuance":"FN","nom":"<NAME>","voix":274}]} | 116 |
435 | <reponame>Montana/datawave<gh_stars>100-1000
package datawave.util;
import org.apache.accumulo.core.iterators.LongCombiner;
import org.apache.hadoop.io.Text;
import java.nio.ByteBuffer;
import java.nio.charset.CharacterCodingException;
public class TextUtil {
/**
* Appends a null byte followed by the UTF-8 ... | 1,343 |
476 | /*
* Copyright (C) 2018-2020. Huawei Technologies Co., Ltd. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... | 1,752 |
419 | /***************************************************************************/
/* */
/* fttrigon.h */
/* */
/* Fr... | 1,731 |
2,338 | // Example source from breakpad's linux tutorial
// https://chromium.googlesource.com/breakpad/breakpad/+/master/docs/linux_starter_guide.md
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include "client/linux/handler/exception_handler.h"
static bool dumpCallback(const google_breakpad::MinidumpDescri... | 324 |
1,031 | /* Copyright (c) <2003-2019> <<NAME>, Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
*... | 1,134 |
631 | <reponame>peteraramaldes/javalite
/*
Copyright 2009-(CURRENT YEAR) <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 applicab... | 1,597 |
3,101 | <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
* ... | 838 |
4,879 | <filename>src/third_party/icu4c-57.1/source/i18n/simpletz.cpp
/*
*******************************************************************************
* Copyright (C) 1997-2013, International Business Machines Corporation and
* others. All Rights Reserved.
*****************************************************************... | 19,259 |
1,273 | package org.broadinstitute.hellbender.tools.copynumber;
import org.broadinstitute.hellbender.CommandLineProgramTest;
import org.broadinstitute.hellbender.testutils.ArgumentsBuilder;
import org.broadinstitute.hellbender.tools.copynumber.arguments.CopyNumberArgumentValidationUtils;
import org.broadinstitute.hellbender.t... | 12,810 |
9,680 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import os
import sys
import numpy
import sklearn.gaussian_process as gp
sys.path.insert(1, os.path.join(sys.path[0], '..'))
def create_model(samples_x, samples_y_aggregation,
n_restarts_optimizer=250, is_white_kernel=False):
... | 644 |
431 | /*
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDD... | 2,206 |
807 | #!/usr/bin/env trial
from absl import flags as gflags
import json
import mock
import sys
import urlparse
from ct.client import log_client
from ct.client import async_log_client
from ct.client import log_client_test_util as test_util
from ct.client.db import database
from twisted.internet import defer
from twisted.inte... | 7,380 |
2,643 | <reponame>Firm/odyssey
#ifndef OD_OPTION_H
#define OD_OPTION_H
#include <kiwi.h>
#include <argp.h>
extern void od_usage(od_instance_t *instance, char *path);
typedef struct {
od_instance_t *instance;
int silent;
int verbose;
int console;
int log_stdout;
} od_arguments_t;
typedef enum {
OD_OPT_CONSOLE = 10001,... | 1,054 |
530 | package org.carlspring.strongbox.security;
import org.carlspring.strongbox.security.exceptions.NotSupportedException;
/**
* @author mtodorov
*/
public interface Group
{
String getName();
String getDescription();
Group getParent() throws NotSupportedException;
}
| 84 |
1,146 | /*
* 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 ... | 4,385 |
348 | {"nom":"Montaigu","circ":"1ère circonscription","dpt":"Aisne","inscrits":502,"abs":282,"votants":220,"blancs":14,"nuls":5,"exp":201,"res":[{"nuance":"REM","nom":"<NAME>","voix":120},{"nuance":"FN","nom":"<NAME>","voix":81}]} | 89 |
3,645 | /*
* Copyright (c) 2012 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg 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) any later vers... | 2,425 |
515 | package br.com.caelum.stella.format;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class LeftSideZerosFormatterTest {
private Formatter formatter;
@Before
public void setU... | 495 |
2,151 | // 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 "third_party/blink/renderer/core/frame/device_single_window_event_controller.h"
#include "third_party/blink/renderer/core/dom/document.h"
#inclu... | 1,212 |
596 | <reponame>zsb534923374/VulkanDemos<gh_stars>100-1000
#pragma once
#include "Common/Common.h"
#include "Common/Log.h"
#include "Application/GenericWindow.h"
#include "Application/GenericApplicationMessageHandler.h"
#include <Cocoa/Cocoa.h>
// ------------------------------ VulkanView ------------------------------
@... | 222 |
458 | // Copyright 2015-2021 Swim 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 ... | 1,286 |
1,264 | <filename>examples/basic/window.cpp
#include "window.h"
Window::Window(int x, int y, const char* title)
{
GLFWwindow* window = glfwCreateWindow(x, y, title, NULL, NULL);
this->window = window;
}
Window::~Window()
{
glfwDestroyWindow(this->window);
}
void Window::Resize()
{
GLint w, h;
glfwGetWindowSize(this... | 174 |
973 | <reponame>bcaglayan/pcap4j<filename>pcap4j-core/src/test/java/org/pcap4j/core/PcapHandleTest.java
package org.pcap4j.core;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import stati... | 6,819 |
28,056 | // Copyright 2018 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... | 13,508 |
884 | /*
* Copyright 2014 - 2021 Blazebit.
*
* 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... | 769 |
2,180 | package com.xiaojukeji.kafka.manager.monitor.component.n9e.entry;
import java.util.List;
/**
* @author zengqiao
* @date 20/10/18
*/
public class N9eStrategyExpression {
private String metric;
private String func;
private String eopt;
private Integer threshold;
private List<Integer> params;
... | 611 |
1,132 | #include "gb-include.h"
#include "DataFeed.h"
DataFeed::DataFeed() : MetaContainer() {
m_customerId = -1;
m_id = -1;
m_passcodeLen = 0;
m_passcode[0] = '\0';
m_isLocked = false;
}
DataFeed::~DataFeed() {
}
void DataFeed::setUrl ( char *name,
int32_t nameLen ) {
if (!name || nameLen == 0)
return;
if (na... | 3,072 |
559 | /**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distrib... | 388 |
3,055 | <reponame>Linghhh/u8g2
/*
Fontname: -FreeType-HabsburgChancery-Medium-R-Normal--16-160-72-72-P-89-ISO10646-1
Copyright: Extant
Glyphs: 388/388
BBX Build Mode: 0
*/
const uint8_t u8g2_font_habsburgchancery_t_all[8821] U8G2_FONT_SECTION("u8g2_font_habsburgchancery_t_all") =
"\204\0\3\2\5\5\3\5\6\20\20\376\374\... | 15,411 |
8,148 | #pragma once
#ifdef __GNUC__
#define likely(x) __builtin_expect((x),1)
#define unlikely(x) __builtin_expect((x),0)
#else
#define likely(x) (x)
#define unlikely(x) (x)
#endif
| 81 |
4,324 | <reponame>ideas-detoxes/jerryscript<filename>jerry-ext/handler/handler-print.c
/* Copyright JS Foundation and other contributors, http://js.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... | 916 |
348 | <filename>docs/data/leg-t2/021/02101485.json
{"nom":"Plombières-lès-Dijon","circ":"1ère circonscription","dpt":"Côte-d'Or","inscrits":1924,"abs":1149,"votants":775,"blancs":84,"nuls":33,"exp":658,"res":[{"nuance":"REM","nom":"<NAME>","voix":348},{"nuance":"DVD","nom":"<NAME>","voix":310}]} | 124 |
841 | <reponame>burgessjp/GanHuoIO<gh_stars>100-1000
package ren.solid.ganhuoio.module.about;
import android.support.v7.widget.Toolbar;
import android.text.SpannableStringBuilder;
import android.view.View;
import android.widget.TextView;
import ren.solid.ganhuoio.R;
import ren.solid.library.activity.base.BaseActivity;
impo... | 1,053 |
456 | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2019-2020 <NAME>
// All rights reserved.
namespace djv
{
namespace Scene3D
{
inline std::string PolyLinePrimitive::getClassName() const
{
return "PolyLinePrimitive";
}
inline bool PolyLinePrimitive::isShaded(... | 316 |
1,745 | //************************************ bs::framework - Copyright 2018 <NAME> **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "Components/BsCSkybox.h"
#include "Private/RTTI/BsCSkyboxRTTI.h"
#in... | 438 |
3,372 | <reponame>rbalamohan/aws-sdk-java<filename>aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/CreateDataRepositoryTaskRequest.java
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this f... | 7,075 |
372 | package helpers;
import java.io.File;
import java.util.Random;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
public class Config
{
public static Random rand = new Random();
public static Random getRandom() {
return rand;
}
private volatile static Config instance;
public static C... | 1,363 |
563 | /*
* Copyright 2019 Oath Holdings 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 agr... | 794 |
1,006 | /****************************************************************************
* arch/arm/src/stm32f0l0g0/stm32g0_pwr.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copy... | 1,028 |
854 | <gh_stars>100-1000
@NonNullApi
package dev.morphia.aggregation.expressions;
import com.mongodb.lang.NonNullApi;
| 44 |
14,668 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromecast/browser/webview/cast_window_embedder.h"
namespace chromecast {
CastWindowEmbedder::EmbedderWindowEvent::EmbedderWindowEvent() = def... | 197 |
380 | # -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2020 <NAME> <<EMAIL>>
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 ... | 6,282 |
679 | <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 license... | 8,053 |
1,338 | <reponame>Kirishikesan/haiku<filename>src/apps/debugger/user_interface/cli/commands/CliVariablesCommand.cpp
/*
* Copyright 2012, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include "CliVariablesCommand.h"
#include <stdio.h>
#include <AutoLocker.h>
#include "CliContext.h"
#include "Tea... | 417 |
495 | <filename>include/tao/json/events/prefer_unsigned.hpp
// Copyright (c) 2017-2021 Dr. <NAME> and <NAME>
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#ifndef TAO_JSON_EVENTS_PREFER_UNSIGNED_HPP
#define TAO_JSON_EVENTS_PREFER_UNSIGNED_HPP
#include <cstdint>
namespace tao::json::events
{
... | 318 |
1,073 | <reponame>oubotong/Armariris
//===--- AttributeList.cpp --------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------... | 2,541 |
1,169 | <filename>appinventor/appengine/src/com/google/appinventor/server/OdeServlet.java
// -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2012 MIT, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
... | 323 |
364 | <filename>bither-android/src/net/bither/ui/base/SyncProgressView.java
/*
* Copyright 2014 http://Bither.net
*
* 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... | 1,081 |
372 | /*
* Copyright (c) BeyondTrust Software. All rights reserved.
*/
/*
* Copyright (c) 2007, Novell, 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. Redistributions of source co... | 2,159 |
1,117 | package com.pgmmers.radar.dal.bean;
import com.pgmmers.radar.dal.bean.PageQuery;
public class RuleQuery extends PageQuery {
private Long activationId;
private String name;
private Integer status;
public Long getActivationId() {
return activationId;
}
public void setActivationId(Long... | 254 |
435 | <filename>pydata-la-2019/videos/ivona-tautkute-ai-and-fashion-product-retrieval-with-multi-modally-generated-data-pydata-la-2019.json
{
"description": "The talk will cover generative modeling for multimodal input (image and\ntext) in the context of product retrieval in fashion/e-commerce.\n\nThe presentation will inc... | 559 |
461 | <filename>framework/base/src/main/java/org/apache/ofbiz/base/crypto/DesCrypt.java
/*******************************************************************************
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work f... | 2,044 |
14,668 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/base/fake_oauth_token_getter.h"
#include "base/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#in... | 441 |
460 | <reponame>dyzmapl/BumpTop
#include "../../../src/3rdparty/webkit/WebCore/../WebKit/qt/Api/qwebplugindatabase_p.h"
| 53 |
2,880 | <reponame>fakeNetflix/square-repo-PonyDebugger<filename>ObjC/DerivedSources/PDDOMDebuggerDomain.h
//
// PDDOMDebuggerDomain.h
// PonyDebuggerDerivedSources
//
// Generated on 8/23/12
//
// Licensed to Square, Inc. under one or more contributor license agreements.
// See the LICENSE file distributed with this work ... | 898 |
1,473 | /*
* Copyright 2014 NAVER 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
*
* Unless required by applicable law or agreed to in ... | 7,910 |
488 | #include <string>
#include <iostream>
#include "rose.h"
#include "annotatePragmas.h"
using namespace std;
using namespace SageBuilder;
using namespace SageInterface;
static bool debug = false;
static const string pragmaAttrib = "PragmaAttribute";
string ppPresRemUnd (PresRemUnd x) {
switch (x) {
case pragma... | 1,254 |
689 | <gh_stars>100-1000
/**
* 输入数字n,按顺序打印出从1最大的n位十进制数。
* 比如输入3,则打印出1、2、3一直到最大的3位数即999
*/
public class No12 {
public static void main(String[] args) {
printNum(3);
}
private static void printNum(int n) {
if (n < 0)
return;
int[] array = new int[n];
printArray(arra... | 645 |
1,444 |
package mage.cards.g;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.DestroyAllEffect;
import mage.abilities.effects.common.continuous.BoostControlledEffec... | 619 |
852 | <gh_stars>100-1000
#ifndef DataFormats_Math_Angle_Units_h
#define DataFormats_Math_Angle_Units_h
#include <cmath>
namespace angle_units {
constexpr double piRadians(M_PI);
constexpr double degPerRad = 180. / piRadians; // Degrees per radian
namespace operators {
// Angle
constexpr double operator"" ... | 715 |
362 | /*
* Copyright (c) 2003, The JUNG Authors
*
* All rights reserved.
*
* This software is open-source under the BSD license; see either
* "license.txt" or
* https://github.com/jrtom/jung/blob/master/LICENSE for a description.
*/
/*
* Created on Dec 26, 2001
*
*/
package edu.uci.ics.jung.algorithms.filters;
im... | 940 |
379 | <filename>client/oim-client-core/src/main/java/com/oim/core/business/view/NetSettingView.java<gh_stars>100-1000
package com.oim.core.business.view;
import com.onlyxiahui.app.base.view.View;
/**
* @author XiaHui
* @date 2015年3月16日 上午11:48:23
*/
public interface NetSettingView extends View{
public void setAddress(... | 138 |
6,181 | <filename>qrenderdoc/3rdparty/qt/include/QtCore/qversionnumber.h
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Copyright (C) 2016 Intel Corporation.
** Copyright (C) 2014 <NAME> <<EMAIL>>
** Contact: https://www.qt.io/licensing/
**
** This ... | 4,974 |
333 | package org.reactfx.inhibeans.property;
import org.reactfx.inhibeans.value.ObservableValue;
import org.reactfx.value.SuspendableVar;
/**
* @deprecated Superseded by {@link SuspendableVar}.
*/
@Deprecated
public interface Property<T>
extends javafx.beans.property.Property<T>, ObservableValue<T> {}
| 105 |
2,824 | # coding=utf8
import time
import threading
import pprint
import sys
import traceback
import random
import telepot
from telepot.namedtuple import (
InlineQuery, ChosenInlineResult, InputTextMessageContent,
InlineQueryResultArticle, InlineQueryResultPhoto, InlineQueryResultGame)
def equivalent(data, nt):
if... | 1,490 |
372 | /*
* 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 ... | 21,467 |
2,338 | // RUN: %clang_cc1 -std=gnu++2a -emit-pch %s -o %t.pch
// RUN: %clang_cc1 -std=gnu++2a %s -DEMIT -ast-merge %t.pch -ast-dump-all | FileCheck %s
// XFAIL: *
#ifndef EMIT
#define EMIT
namespace Integer {
consteval int fint() {
return 6789;
}
int Unique_Int = fint();
//CHECK: VarDecl {{.*}} Unique_Int
//CHECK-... | 4,240 |
820 | {
"ConnectionStrings": {
"Default": "Server=localhost; Database=IdentityServervNextDemoDb; Trusted_Connection=True;"
}
}
| 48 |
799 | # import demistomock as demisto
from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import
from CommonServerUserPython import * # noqa
from GSuiteApiModule import * # noqa: E402
''' IMPORTS '''
import urllib3
from typing import List, Dict, Any
# Disable insecure warnings
urllib3.disable_war... | 2,945 |
14,668 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/drive/drive_pref_names.h"
namespace drive {
namespace prefs {
// A boolean pref to disable Google Drive integration.
// The pref pr... | 352 |
327 | // Copyright 1996-2021 Cyberbotics 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 agr... | 4,147 |
4,262 | <filename>core/camel-core-model/src/generated/resources/org/apache/camel/model/to.json
{
"model": {
"kind": "model",
"name": "to",
"title": "To",
"description": "Sends the message to a static endpoint",
"deprecated": false,
"label": "eip,routing",
"javaType": "org.apache.camel.model.ToDefi... | 496 |
836 | /* Copyright (C) 2011 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 1,649 |
1,144 | package de.metas.material.dispo.commons.candidate;
import static de.metas.material.dispo.commons.candidate.IdConstants.UNSPECIFIED_REPO_ID;
import static de.metas.material.event.EventTestHelper.CLIENT_AND_ORG_ID;
import static de.metas.material.event.EventTestHelper.createMaterialDescriptor;
import static java.math.Bi... | 1,863 |
524 | <filename>core/profiling/profiler.h
#pragma once
namespace core
{
namespace profiler
{
class auto_stop_watch : boost::noncopyable
{
public:
auto_stop_watch(const char *_process_name);
virtual ~auto_stop_watch();
private:
int64_t id_;
... | 313 |
1,825 | <filename>unidbg-api/src/main/java/com/github/unidbg/file/FileResult.java
package com.github.unidbg.file;
public class FileResult<T extends NewFileIO> {
private static final int FALLBACK_ERRNO = -1;
public static <T extends NewFileIO> FileResult<T> success(T io) {
if (io == null) {
throw ... | 516 |
841 | <reponame>brunolmfg/resteasy
package org.jboss.resteasy.test.request.resource;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.PUT;
import jakarta.ws.rs.Path;
@Path("/xml")
public class AcceptXmlResource {
@Consumes("application/xml;schema=foo")
@PUT
public void putFoo(String foo) {
}
@Consumes("a... | 193 |
357 | /**
* This file is part of Eclipse Steady.
*
* 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... | 580 |
663 | <reponame>andriyor/agate<filename>agate/aggregations/stdev.py<gh_stars>100-1000
#!/usr/bin/env python
from agate.aggregations import Aggregation
from agate.aggregations.has_nulls import HasNulls
from agate.aggregations.variance import PopulationVariance, Variance
from agate.data_types import Number
from agate.exceptio... | 880 |
3,102 | // NameInDir2.h
| 8 |
4,140 | <reponame>FANsZL/hive<filename>ql/src/java/org/apache/hadoop/hive/ql/hooks/HookContext.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... | 2,876 |
947 | import re
import warnings
import pkg_resources
from sqlalchemy.exc import ArgumentError
from sqlalchemy.orm import class_mapper, object_mapper
from sqlalchemy.orm.exc import UnmappedClassError, UnmappedInstanceError
def get_session(context):
return context.get("session")
def get_query(model, context):
quer... | 1,667 |
922 | /*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.internal.constraintvalidators.hv.pl;
import java.util.List;
import o... | 475 |
384 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 725 |
9,308 | <gh_stars>1000+
# vim:ts=4:sw=4:et:
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# no unicode literals
from __future__ import absolute_import, division, print_function
import os
import ... | 3,216 |
376 | <gh_stars>100-1000
import torch.nn as nn
# Here we use DistributedDataParallel(DDP) rather than DataParallel(DP) for multiple GPUs training
def is_multi_gpu(net):
return isinstance(net, (MultiGPU, nn.parallel.distributed.DistributedDataParallel))
class MultiGPU(nn.parallel.distributed.DistributedDataParallel):
... | 190 |
7,482 | /*
* Copyright (c) 2010-2012, Freescale Semiconductor, 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:
*
* o Redistributions of source code must retain the above copyright notice, this... | 4,573 |
1,279 | {"uuid":"ea0194cb-f599-402f-8876-84fb8251e8db","parent":"37d58de4-deea-4808-bb77-d27685bd1501","pid":93239,"argv":["/usr/local/bin/node","/Users/isaacs/dev/js/tar/test/00-setup-fixtures.js"],"execArgv":["-r","/usr/local/lib/node_modules/tap/node_modules/esm/esm.js"],"cwd":"/Users/isaacs/dev/js/tar","time":1557878801284... | 237 |
17,006 | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// -*- c++ -*-
#include <faiss/IVFlib.h>
#include <memory>
#include <faiss/IndexPreTransform.h>
#include <faiss/MetaIndexes.h>
... | 6,117 |
309 | /* ***** BEGIN LICENSE BLOCK *****
* JTransforms
* Copyright (c) 2007 onward, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must re... | 17,670 |
2,151 | <reponame>zipated/src
// 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 "third_party/blink/renderer/platform/instrumentation/tracing/trace_event.h"
#include "base/trace_event/trace_event.h"
nam... | 353 |
7,482 | <filename>bsp/stm32/stm32f767-fire-challenger-v1/board/ports/sdram_port.h<gh_stars>1000+
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-12-04 zylx The first version for STM32F4xx
*/
#ifndef... | 1,332 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.