max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
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.
#ifndef CONTENT_BROWSER_WEB_PACKAGE_WEB_PACKAGE_CONTEXT_IMPL_H_
#define CONTENT_BROWSER_WEB_PACKAGE_WEB_PACKAGE_CONTEXT_IMPL_H_
#include "content/public/... | 257 |
374 | <reponame>taylortaurus/seldom
import seldom
from seldom import data, file_data
class BaiduTest(seldom.TestCase):
"""Baidu search test case"""
@data([
(1, 'seldom'),
(2, 'selenium'),
(3, 'unittest'),
])
def test_baidu(self, name, search_key):
"""
used parameter... | 1,080 |
852 | import FWCore.ParameterSet.Config as cms
pythiaUESettingsBlock = cms.PSet(
pythiaUESettings = cms.vstring(
'MSTU(21)=1 ! Check on possible errors during program execution',
'MSTJ(22)=2 ! Decay those unstable particles',
'PARJ(71)=10 . ! for which ctau 10 mm',
'MSTP... | 1,958 |
443 | <reponame>vault-the/changes
from __future__ import absolute_import, division, unicode_literals
from collections import defaultdict
from flask.ext.restful import reqparse
from sqlalchemy import or_
from sqlalchemy.orm import joinedload
from sqlalchemy.sql import func
from changes.api.base import APIView, error
from c... | 4,102 |
348 | {"nom":"<NAME>","circ":"3ème circonscription","dpt":"Haute-Vienne","inscrits":133,"abs":43,"votants":90,"blancs":7,"nuls":4,"exp":79,"res":[{"nuance":"LR","nom":"<NAME>","voix":46},{"nuance":"REM","nom":"<NAME>","voix":33}]} | 91 |
3,799 | <reponame>semoro/androidx<filename>camera/camera-camera2/src/test/java/androidx/camera/camera2/internal/SynchronizedCaptureSessionBaseTest.java
/*
* Copyright 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 wit... | 6,699 |
526 | <reponame>rychagova/egeria
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright Contributors to the ODPi Egeria project.
*/
package org.odpi.openmetadata.accessservices.securityofficer.api.events;
import java.io.Serializable;
public enum SecurityOfficerEventType implements Serializable {
NEW_SECURITY_ASSIG... | 895 |
6,958 | <reponame>xhuan28/MNN<filename>pymnn/pip_package/MNN/data/__init__.py<gh_stars>1000+
from _mnncengine._data import *
| 52 |
318 | package com.greetings;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class Main {
public static void main(String[] args) {
Map<Integer, String> myMap = new ConcurrentHashMap<>();
myMap.put(1, "one");
myMap.put(2, "two");
myMap.put(3, "three");
... | 156 |
2,151 | <reponame>zipated/src<filename>third_party/angle/src/libANGLE/ContextState.h
//
// Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// ContextState: Container class for all GL context state, cap... | 984 |
320 | <gh_stars>100-1000
// Copyright (c) 2015, <NAME>.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
//
// Key Storage Format (24 bits):
//
// 0111 1111 0000 0001 1111 1111
// ---- ---- --------- ---------
// | | | |
// | | | \--- MS Virtual Keys (VK_... | 1,044 |
14,668 | <filename>chrome/browser/web_applications/web_app_icon_downloader.cc
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/web_applications/web_app_icon_downloader.h"
#include "base/... | 2,197 |
511 | <reponame>timgates42/untangle<gh_stars>100-1000
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
import untangle
import xml
class FromStringTestCase(unittest.TestCase):
""" Basic parsing tests with input as string """
def test_basic(self):
o = untangle.parse("<a><b/><c/></a>")
s... | 6,229 |
334 | // Auto generated code, do not modify
package nxt.http.callers;
public class CastVoteCall extends CreateTransactionCallBuilder<CastVoteCall> {
private CastVoteCall() {
super(ApiSpec.castVote);
}
public static CastVoteCall create() {
return new CastVoteCall();
}
public CastVoteCall... | 286 |
1,805 | <filename>core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/glib-adv/tnt.cpp
/////////////////////////////////////////////////
// Includes
#include "tnt.h"
/////////////////////////////////////////////////
// Tnt-Document
void TTntBinDoc::SaveBinDocV(
const TStr& InXmlFPath, const TStr& OutBinFNm, const int& ... | 14,232 |
3,702 | /*
* 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
* distribu... | 701 |
3,083 | <reponame>utumen/binnavi
// Copyright 2011-2016 Google LLC
//
// 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 applic... | 352 |
420 | # Copyright (c) 2012-2016 Seafile Ltd.
import json
import logging
from django.conf import settings
from django.urls import reverse
from django.contrib import messages
from django.http import HttpResponseRedirect, Http404, HttpResponse
from django.shortcuts import render
from django.template.loader import render_to_str... | 1,363 |
1,144 | package org.adempiere.plaf;
import java.awt.Color;
import javax.swing.plaf.ColorUIResource;
/*
* #%L
* de.metas.adempiere.adempiere.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
*... | 976 |
790 | <filename>lib/django-1.5/django/contrib/localflavor/ar/ar_provinces.py
# -*- coding: utf-8 -*-
"""
A list of Argentinean provinces and autonomous cities as `choices` in a
formfield. From
http://www.argentina.gov.ar/argentina/portal/paginas.dhtml?pagina=425
This exists in this standalone file so that it's only imported... | 465 |
372 | <gh_stars>100-1000
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software ... | 10,219 |
14,668 | <reponame>zealoussnow/chromium<filename>build/fuchsia/update_images.py
#!/usr/bin/env python
# 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.
"""Updates the Fuchsia SDK to the given revision. Should be used ... | 1,941 |
544 | <reponame>RamakrishnaChilaka/submarine<filename>submarine-test/test-e2e/src/test/java/org/apache/submarine/integration/pages/LoginPage.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 inform... | 730 |
344 | <filename>api/video/video_frame_metadata_unittest.cc<gh_stars>100-1000
/*
* Copyright (c) 2020 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual pro... | 1,335 |
14,668 | <filename>third_party/blink/renderer/bindings/core/v8/v8_context_snapshot.cc
// 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/bindings/core/v8/v8_context_snapshot.h"
... | 959 |
357 | /*
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merg... | 802 |
1,144 | #include "pulseaudio.hh"
#include <cmath>
#include <list>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sstream>
#include <string>
#include <fstream>
using namespace std;
#ifdef __cplusplus
extern "C"
{
#endif
typedef enum
{
STREAM_AUDIO = 0,
STREAM_T... | 6,064 |
703 | <reponame>wangyuxin11/NewsRecommendSystem
package top.qianxinyao.main;
import java.util.Date;
import java.util.List;
import org.apache.log4j.Logger;
import org.quartz.SchedulerException;
import top.qianxinyao.UserBasedCollaborativeRecommender.MahoutUserBasedCollaborativeRecommender;
import top.qianxinyao.UserBasedCo... | 1,921 |
14,425 | <filename>hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/AWSStatus500Exception.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. ... | 413 |
5,169 | <filename>Specs/d/6/f/FlatNetworkClient/0.1.1/FlatNetworkClient.podspec.json
{
"name": "FlatNetworkClient",
"version": "0.1.1",
"summary": "Simple wrapper around URLSession",
"description": "A simple wrapper around URLSession. Built to provide easy implementation and provide testable features.",
"homepage": "... | 249 |
765 | /*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses... | 810 |
2,757 | /*++
Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at ... | 542 |
416 | <filename>iPhoneOS14.2.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKError.h
//
// SKError.h
// StoreKit
//
// Copyright 2009 Apple, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <StoreKit/StoreKitDefines.h>
NS_ASSUME_NONNULL_BEGIN
SK_EXTERN NSString * const SKErrorDomain API... | 1,661 |
386 | <reponame>cSingleboy/TarsCpp
#ifndef _TRAN_IMP_H_
#define _TRAN_IMP_H_
#include <map>
#include <string>
#include <vector>
#include "servant/Application.h"
using namespace std;
using namespace tars;
/////////////////////////////////////////////////////////////////////////
class TranImp : public Servant {... | 463 |
19,046 | /*
* Copyright (c) Facebook, Inc. and 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
*
* Unless required by applic... | 1,251 |
335 | {
"word": "Histogenesis",
"definitions": [
"The differentiation of cells into specialized tissues and organs during growth."
],
"parts-of-speech": "Noun"
} | 64 |
354 | <reponame>iabernikhin/VK-GL-CTS
#ifndef _GL3CTEXTURESIZEPROMOTION_HPP
#define _GL3CTEXTURESIZEPROMOTION_HPP
/*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2015-2016 The Khronos Group Inc.
*
* Licensed un... | 4,964 |
8,747 | <gh_stars>1000+
/**
* Copyright 2020 Espressif Systems (Shanghai) PTE 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 ... | 315 |
1,444 |
package mage.cards.k;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.AllyEntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.abilities.keyword.FirstStrikeAbility;
import mage.abilities.keyword.VigilanceAbility;
import mage.card... | 501 |
4,772 | <reponame>Balkerm/spring-data-examples
package example.service;
import example.repo.Customer1383Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer1383Service {
public Customer1383Service(Customer1383Repository repo) {}
}
| 80 |
1,644 | <filename>core/src/test/java/google/registry/tools/CreatePremiumListCommandTest.java
// Copyright 2017 The Nomulus 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 Licen... | 1,701 |
8,027 | #include <lib4/lib4.h>
int main() {
return code();
}
| 27 |
935 | #include "extern_socket.hpp"
#include "fs.bragi.hpp"
#include "protocols/fs/client.hpp"
namespace {
struct Socket : File {
Socket(helix::UniqueLane sockLane)
: File{StructName::get("extern-socket")},
_file{std::move(sockLane)} { }
async::result<frg::expected<Error, PollWaitResult>>
pollWait(Process *, uint64_t... | 759 |
2,338 | #define T long long
#define T_CSTR "long long"
#ifdef __LP64__
#define T_VALUE_1 110011101111
#define T_VALUE_2 220022202222
#define T_VALUE_3 330033303333
#define T_VALUE_4 440044404444
#else
#define T_VALUE_1 110011101
#define T_VALUE_2 220022202
#define T_VALUE_3 330033303
#define T_VALUE_4 440044404
#endif
#defin... | 159 |
3,651 | /*
* Copyright 2010-2016 OrientDB LTD (http://orientdb.com)
*
* 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 ... | 688 |
368 | //
// DDRuntimeSwizzle.h
// TeamTalk
//
// Created by zuoye on 15/7/16.
// Copyright (c) 2015年 mogujie. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDictionary (DDNilInsertableDictionary)
@end
@interface NSArray (DDNilInsertableArray)
@end
void ClassMethodSwizzle(Class aClass, SEL or... | 151 |
1,847 | // Copyright (c) 2020 The Orbit Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "QtUtils/MainThreadExecutorImpl.h"
#include <QCoreApplication>
#include <QMetaObject>
#include <chrono>
#include <optional>
#include <utility>
... | 1,049 |
2,293 | /* Beginning of modification history */
/* Written 02-08-13 by PG */
/* End of modification history */
/* This header conforms to IEEE Std 1003.1-2001 */
#ifndef _INCLUDED_SYSLOG_H
#define _INCLUDED_SYSLOG_H
/* values of the "logopt" option of openlog */
#define LOG_PID 1
#define LOG_CONS 2
#... | 832 |
3,301 | <filename>core/src/main/java/com/alibaba/alink/common/lazy/PipelineLazyCallbackUtils.java
package com.alibaba.alink.common.lazy;
import com.alibaba.alink.common.MLEnvironment;
import com.alibaba.alink.common.MLEnvironmentFactory;
import com.alibaba.alink.operator.batch.BatchOperator;
import com.alibaba.alink.pipeline.... | 1,115 |
377 | #define FLOAT float
#define ORDER 50
#include "../redist/dclapack.h"
#include <stdio.h>
#include <stdlib.h>
int main()
{
float A[ORDER][ORDER];
float Ainv[ORDER][ORDER];
float Prod[ORDER][ORDER];
int i, j, n = 3;
srand(7779);
for(i=0; i<n; i++) {
for(j=0; j<n; j++) {
A[i]... | 308 |
5,169 | <reponame>Gantios/Specs
{
"name": "DXDownload",
"version": "1.0.1",
"summary": "A short description of DXDownload.",
"description": "TODO: Add long description of the pod here.",
"homepage": "https://github.com/Jackdx/DXDownload",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
... | 292 |
678 | <gh_stars>100-1000
#!/usr/bin/env python3
import codecs
import os
import subprocess
import sys
def fixup(source_path):
with codecs.open(source_path, 'rb', 'utf-8') as f:
code = f.read().replace('yytranslate_ (yylex (', '(yylex_ (')
with codecs.open(source_path, 'wb', 'utf-8') as f:
f.write(cod... | 358 |
474 | package org.javacord.core.event.channel.user;
import org.javacord.api.DiscordApi;
import org.javacord.api.entity.channel.PrivateChannel;
import org.javacord.api.event.channel.user.PrivateChannelEvent;
/**
* The implementation of {@link PrivateChannelEvent}.
*/
public abstract class PrivateChannelEventImpl implement... | 292 |
934 | <gh_stars>100-1000
package config;
import java.awt.Color;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.PrintWriter;
import java.util.Arrays;
import javax.swing.DefaultCellEditor;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JTable;
import javax... | 1,814 |
17,703 | // NOLINT(namespace-envoy)
constexpr char TEST_CLIENT_CERT_HASH[] = "fc00:e968:6179::de52:7100:9B:CB:5A:70:2D:04:C5:00:D6:81:68:"
"fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b:91:61:A5:FB:01";
| 155 |
809 | <gh_stars>100-1000
/**
* @file
* @brief
*
* @author <NAME>
* @date 29.04.2013
*/
#include <stddef.h>
#include <profiler/tracing/trace.h>
time64_t trace_block_diff(struct __trace_block *tb) {
return -1;
}
time64_t trace_block_get_time(struct __trace_block *tb) {
return -1;
}
int trace_point_get_value(st... | 192 |
332 | <reponame>quickmsg/smqtt
import ch.qos.logback.classic.Level;
import io.github.quickmsg.common.config.BootstrapConfig;
import io.github.quickmsg.core.Bootstrap;
/**
* @author luxurong
* @date 2021/5/6 19:25
* @description
*/
public class ClusterNode2 {
@org.junit.Test
public void startServer() throws Inte... | 901 |
808 | <filename>opentasks/src/main/java/org/dmfs/tasks/share/TaskBindings.java<gh_stars>100-1000
/*
* Copyright 2017 dmfs GmbH
*
* 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://... | 1,241 |
7,482 | <reponame>BreederBai/rt-thread
/*
* Copyright (c) 2006-2018, Synwit Technology Co.,Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-05-31 ZYH first version
* 2018-12-10 Zohar_Lee format file
* 2020-07-10 lik rewrite
*/
#... | 2,468 |
1,968 | //////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: <EMAIL>
//
///////////////////////////////////////... | 154 |
1,214 | package com.mapbox.rctmgl.modules;
import android.content.Context;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Handler;
import android.os.Looper;
import android.util.Base64;
import android.util.Log;
import com.faceboo... | 2,315 |
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
* ... | 12,444 |
2,327 | # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | 2,178 |
1,408 | <gh_stars>1000+
/*
* Copyright (c) 2015-2020, Renesas Electronics Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <common/debug.h>
#include <lib/mmio.h>
#include <lib/utils_def.h>
#include "avs_driver.h"
#include "cpg_registers.h"
#include "rcar_def.h"
#include "rcar_privat... | 8,863 |
30,023 | <reponame>domwillcode/home-assistant<gh_stars>1000+
"""The blockchain component."""
| 28 |
3,294 | <reponame>BaruaSourav/docs
// <Snippet5>
#using <system.dll>
#using <system.runtime.remoting.dll>
#using "server.dll"
using namespace System;
using namespace System::Runtime::Remoting;
using namespace System::Runtime::Remoting::Channels::Tcp;
using namespace System::Runtime::Remoting::Channels;
int main()
{
// ope... | 329 |
2,645 | <reponame>orustammanapov/spring-data-elasticsearch
/*
* Copyright 2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/l... | 739 |
3,262 | package com.tencent.angel.ps.server.data.exception;
public class ObjectNotFoundException extends RuntimeException {
public ObjectNotFoundException(String log) {
super(log);
}
}
| 55 |
679 | /**************************************************************
*
* 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 y... | 1,871 |
854 | /*
* This file is part of Kintinuous.
*
* Copyright (C) 2015 The National University of Ireland Maynooth and
* Massachusetts Institute of Technology
*
* The use of the code within this file and all code within files that
* make up the software that is Kintinuous is permitted for
* non-commercial purposes onl... | 787 |
334 | <reponame>bincrack666/BlackObfuscator<filename>dexlib2/src/main/java/org/jf/dexlib2/analysis/ClassPathResolver.java
///*
// * Copyright 2016, Google Inc.
// * All rights reserved.
// *
// * Redistribution and use in source and binary forms, with or without
// * modification, are permitted provided that the following co... | 10,123 |
1,139 | <reponame>ghiloufibelgacem/jornaldev<gh_stars>1000+
package com.journaldev.rxjavaretrofit;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.widget.Toast... | 1,671 |
1,345 | <reponame>Mu-L/termpair<filename>noxfile.py
from pathlib import Path
import nox # type: ignore
python = ["3.8", "3.9"]
nox.options.sessions = ["lint"]
nox.options.reuse_existing_virtualenvs = True
doc_deps = [".", "jinja2", "mkdocs", "mkdocs-material"]
dev_deps = ["mypy", "black"]
lint_deps = ["black", "flake8", "... | 1,261 |
852 | <filename>CalibCalorimetry/EcalTPGTools/plugins/EcalTPGDBCopy.cc
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CondCore/DBOutputService/interface/PoolDBOutputService.h"
#include <FWCore/MessageLogger/interface/MessageLogger.h>
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/... | 4,720 |
435 | {
"abstract": "The Jupyter notebook has been the reference tool for interactive\ncomputing. Looking at the `Python Visualization\nLandscape <https://www.youtube.com/watch?v=FytuB8nFHPQ>`__, we can\nnotice a huge list of libraries, each serving a specific purpose and\ntype of data.\n\nBut what if we want to visualize ... | 708 |
460 | <filename>trunk/win/Source/Includes/QtIncludes/include/QtXmlPatterns/private/qsystempropertyfn_p.h
#include "../../../src/xmlpatterns/functions/qsystempropertyfn_p.h"
| 62 |
19,783 | <reponame>t-triobox/examples
"""
This file demonstrates using a custom FX Tracer to override
the behavior of `torch.autograd.profiler.record_function` and
make profiler ranges appear in FX-traced code. This is done
with Python dynamic patching magic, allowing us to explicitly
emit calls to
`torch.ops.profiler._record_f... | 2,862 |
453 | #include <_ansi.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "trap.h"
int
_execve (const char *path, char *const argv[], char *const envp[])
{
return TRAP0 (SYS_execve, path, argv, envp);
}
| 90 |
984 | <reponame>om-sharma/java-driver
/*
* 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 required by ap... | 2,311 |
492 | <filename>2020/02/28/How to Export CSV Files From Django/csv_export/example/models.py
from django.db import models
class Member(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
email = models.EmailField()
ip_address = models.GenericIPAddressField(p... | 115 |
984 | <filename>core/src/main/java/com/datastax/dse/driver/api/core/cql/continuous/ContinuousSession.java<gh_stars>100-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 L... | 1,699 |
3,482 | #include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <iostream>
#include <math.h>
// Dedcrease color
cv::Mat decrease_color(cv::Mat img){
int height = img.cols;
int width = img.rows;
int channel = img.channels();
cv::Mat out = cv::Mat::zeros(height, width, CV_8UC3);
for(int y = 0; y < heigh... | 376 |
852 | //
// test_catch2_WaitingTaskChain.cpp
// CMSSW
//
// Created by <NAME> on 7/8/21.
//
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "tbb/global_control.h"
#include "FWCore/Concurrency/interface/chain_first.h"
TEST_CASE("Test chain::first", "[chain::first]") {
tbb::global_control control(tbb::global_c... | 8,754 |
2,151 | // 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 CHROME_BROWSER_EXTENSIONS_API_AUTOTEST_PRIVATE_AUTOTEST_PRIVATE_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_AUTOTEST_PRIVATE_AUTOTEST_PRIVATE... | 3,367 |
522 | package algs.model.tests.interval;
import org.junit.Test;
import algs.model.IInterval;
import algs.model.interval.DiscreteInterval;
import algs.model.interval.IConstructor;
import algs.model.interval.SegmentTree;
import algs.model.interval.SegmentTreeNode;
import junit.framework.TestCase;
public class SegmentTreeN... | 1,930 |
623 | // Copyright (C) 2014 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
//
// Unless required by applicable ... | 407 |
1,602 | <gh_stars>1000+
"""Custom authentication for DRF."""
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
from django_otp.models import Device
from drf_spectacular.contrib.rest_framework_simplejwt import SimpleJWTScheme
from rest_framework import status
from rest_framework.exception... | 706 |
3,428 | <reponame>ghalimi/stdlib<filename>lib/node_modules/@stdlib/datasets/spam-assassin/data/easy-ham-1/00292.d70b6d753352d01060579b1c34df4e4d.json
{"id":"00292","group":"easy-ham-1","checksum":{"type":"MD5","value":"d70b6d753352d01060579b1c34df4e4d"},"text":"From <EMAIL> Wed Oct 9 10:53:22 2002\nReturn-Path: <<EMAIL>>\nDe... | 1,782 |
763 | <reponame>zabrewer/batfish<filename>projects/batfish/src/main/java/org/batfish/representation/cisco_nxos/IpCommunityListStandard.java<gh_stars>100-1000
package org.batfish.representation.cisco_nxos;
import java.util.SortedMap;
import java.util.TreeMap;
import javax.annotation.Nonnull;
/**
* An access-list that match... | 292 |
14,668 | // Copyright (c) 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/download/android/mock_download_controller.h"
#include <utility>
#include "base/bind.h"
#include "base/location.h"
#include ... | 464 |
348 | {"nom":"Orcier","circ":"5ème circonscription","dpt":"Haute-Savoie","inscrits":823,"abs":453,"votants":370,"blancs":23,"nuls":6,"exp":341,"res":[{"nuance":"DVD","nom":"<NAME>","voix":178},{"nuance":"REM","nom":"<NAME>","voix":163}]} | 93 |
679 | /**************************************************************
*
* 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 y... | 3,096 |
971 | package com.ucar.datalink.worker.core.runtime;
import com.ucar.datalink.common.errors.DatalinkException;
import org.apache.kafka.clients.CommonClientConfigs;
import org.apache.kafka.common.config.AbstractConfig;
import org.apache.kafka.common.config.ConfigDef;
import org.apache.kafka.common.config.ConfigDef.Importance... | 10,829 |
1,473 | /*
* Autopsy Forensic Browser
*
* Copyright 2021 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://ww... | 1,090 |
323 | <gh_stars>100-1000
from .ctp_gateway import CtpGateway | 21 |
504 | <reponame>steakknife/pcgeos
/***********************************************************************
*
* Copyright (c) Geoworks 1996. All rights reserved.
* GEOWORKS CONFIDENTIAL
*
* PROJECT:
* MODULE:
* FILE: npipe.c
*
* AUTHOR: <NAME>: Sep 10, 1996
*
* REVISION HISTORY:
* Name Date Descripti... | 6,452 |
3,294 | <reponame>BaruaSourav/docs<gh_stars>1000+
// System.Web.Services.Description.PortCollection.Insert
// System.Web.Services.Description.PortCollection.IndexOf
// System.Web.Services.Description.PortCollection.CopyTo
/*
The following sample reads the contents of a file 'MathService.wsdl'
into a 'ServiceDescription' ... | 1,091 |
66,985 | /*
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1,720 |
5,422 | #pragma once
#include <pqrs/hid.hpp>
namespace krbn {
namespace hid {
namespace product_id {
constexpr pqrs::hid::product_id::value_t karabiner_virtual_hid_keyboard(0x27db);
constexpr pqrs::hid::product_id::value_t karabiner_virtual_hid_pointing(0x27da);
} // namespace product_id
} // namespace hid
} // namespace krb... | 125 |
3,039 | <filename>MiaowShow/MiaowShow/Classes/ShowTime/H264Encoder/ALinH264Encoder.h
//
// ALinH264Encoder.h
// MiaowShow
//
// Created by ALin on 16/7/4.
// Copyright © 2016年 ALin. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <VideoToolbox/VideoToolbox.h>
//@protocol ALinH264EncoderDelegate <NSObjec... | 291 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.