max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
32,544
package com.baeldung.autovalue; import java.util.ArrayList; import java.util.Collections; import java.util.List; import com.google.auto.value.AutoValue; @AutoValue public abstract class Person { public abstract String name(); public abstract List<String> favoriteMovies(); public static Builder builder...
327
632
<gh_stars>100-1000 package com.qiniu.android.http.metrics; import com.qiniu.android.common.ZoneInfo; import com.qiniu.android.http.request.IUploadRegion; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.conc...
1,281
462
<filename>src/main/java/org/intellij/sequencer/ui/Welcome.java package org.intellij.sequencer.ui; import com.intellij.lang.java.JavaLanguage; import com.intellij.openapi.actionSystem.*; import com.intellij.openapi.project.Project; import com.intellij.openapi.wm.ToolWindow; import com.intellij.openapi.wm.ToolWindowMana...
2,676
2,329
<gh_stars>1000+ package reflection.bridgemethods; public class ClassWithBridgeMethod002 implements Cloneable { @Override protected ClassWithBridgeMethod002 clone() throws CloneNotSupportedException { return this; } }
65
460
/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file is part of the Qt3Support module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ...
3,712
521
<filename>tests/elle/Duration.cc #include <iostream> #include <sstream> #include <boost/date_time/posix_time/posix_time.hpp> #include <elle/Duration.hh> #include <elle/compiler.hh> #include <elle/date/date.h> #include <elle/test.hh> using namespace std::literals; namespace { elle::Duration id(elle::Duration d = 3...
889
1,148
//AnkitCode99 here.... /* Given a directed acyclic graph with N nodes and M edges. Starting from node number 1 find the number of ways to reach node T(i.e., the target node). */ #include<bits/stdc++.h> #define endl "\n" #define Ryuga ios_base::sync_with_stdio(0);cin.tie(nullptr);cout.tie(nullptr) typedef long lon...
654
852
<gh_stars>100-1000 /* * http://github.com/dusty-nv/jetson-reinforcement */ #include "rlAgent.h" #include "pyTorch.h" #include "pyTensor.h" #ifdef USE_PYTHON //------------------------------------------------------------------------------- bool rlAgent::scriptingLoaded = false; //----------------------------------...
4,186
900
#!/bin/env python # -*- coding: utf-8 -* """ @author <NAME> @brief @note """ import os import sys _NOW_PATH = os.path.dirname(os.path.abspath(__file__)) + '/' sys.path.insert(0, _NOW_PATH + '../') import cup from cup import unittest #from cup.unittest import CCaseExecutor from cup.net import asyn # from ...
1,074
938
<filename>utils/lit/tests/Inputs/shtest-env/print_environment.py #!/usr/bin/env python from __future__ import print_statement import os sorted_environment = sorted(os.environ.items()) for name,value in sorted_environment: print(name,'=',value)
84
5,290
import re from ..converter import KnowledgePostConverter class ProxyConverter(KnowledgePostConverter): _registry_keys = ['proxy'] def from_file(self, url, **opts): # Deal with special cases, whereby url should be mutated before being # added to post headers. # Google presentations...
249
387
<gh_stars>100-1000 from prompt_toolkit import print_formatted_text from prompt_toolkit.formatted_text import FormattedText from prompt_toolkit.styles import Style from neo.UserPreferences import preferences import os import sys token_style = Style.from_dict({ "command": preferences.token_style['Command'], "neo...
609
938
<filename>src/main/resources/assets/tconstruct/book/mighty_smelting/en_us/abilities/interact/firestarter.json<gh_stars>100-1000 { "modifier_id": "tconstruct:firestarter", "text": [ { "text": "Everything changed when the firestarter modifier attacked." } ], "effects": [ "Interact to start fires...
159
471
<filename>examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/src/osx/spinbutt_osx.cpp ///////////////////////////////////////////////////////////////////////////// // Name: src/osx/spinbutt_osx.cpp // Purpose: wxSpinButton // Author: <NAME> // Modified by: // Created: 1998-01-01 // Copyright:...
1,454
4,081
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
502
390
/* * Copyright (c) 2016 Rackspace. * * 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 ...
5,260
2,137
#include "init_periph.h" #include "stm32f0xx.h" #include "main.h" void init_all_periph(void) { RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE); init_clk(); init_gpio(); } //Init Clock System //Sys clock frequency - 48 MHz void init_clk(void) { ErrorStatus HSEStartUpStatus; RCC_DeInit(); /* RCC s...
1,300
1,177
<filename>scripts/version-group-pokemon-move-methods.py # Encoding: UTF-8 """Fill the version_group_pokemon_move_methods table This is an unmaintained one-shot script, only included in the repo for reference. """ from sqlalchemy.sql import exists, func from sqlalchemy.orm import lazyload from sqlalchemy import and...
377
751
package okreplay; class OkHttpRequestAdapter { /** Construct a OkReplay Request based on the provided OkHttp Request */ static Request adapt(okhttp3.Request request) { return new RecordedRequest.Builder() .url(request.url()) .method(request.method(), request.body()) .headers(request.hea...
121
1,555
int printf(const char *, ...); struct id { unsigned char hash[10]; }; struct obj { unsigned int a : 4; unsigned int b : 4; struct id oid; }; static int foo(struct obj *o) { char *arr = (char *) o; int i; for (i = 0; i < sizeof(*o); ++i) { printf("%d ", arr[i]); } printf(" (%lu)\n", sizeof(*o)); return 0...
195
2,293
<reponame>DavidLesnjak/CMSIS_5<filename>CMSIS/DSP/SDFTools/examples/example4/debug.py import sys # To find SDF module sys.path.append("../..") import numpy as np from sdf.schedule.simu import * a=np.zeros(10) f=FIFO(10,a) f.dump() nb = 1 for i in range(4): w=f.getWriteBuffer(2) w[0:2]=nb*np.ones(2) nb...
210
362
/** * Kuaidadi.com Inc. * Copyright (c) 2012-2015 All Rights Reserved. */ package com.didiglobal.sds.client.util; import com.didiglobal.sds.client.log.SdsLoggerFactory; import org.slf4j.Logger; import java.net.Inet4Address; import java.net.InetAddress; import java.net.NetworkInterface; import java.util.Enumeration...
783
1,338
/* * Copyright 2010, <NAME>, <EMAIL>. * Copyright 2005, <NAME>, <EMAIL>. * Copyright 2004-2010, <NAME>, <EMAIL>. * Copyright 2002, <NAME>. * * Distributed under the terms of the MIT license. */ #include <ctype.h> #include <errno.h> #include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <string.h> ...
3,353
907
{ "name": "partial.lenses", "description": "Partial lenses is a comprehensive, high-performance optics library for JavaScript", "main": "dist/partial.lenses.js", "license": "MIT", "keywords": [ "partial", "lens", "isomorphism", "traversal", "fold", "json", "immutable" ], "homep...
192
3,066
<reponame>gkumar111/elasticsearch /* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "Lic...
766
3,765
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd.cache; import net.sourceforge.pmd.annotation.InternalApi; /** * Interface defining an object that has a checksum The checksum is a * fingerprint of the object's configuration, and *MUST* change if an...
239
990
''' Given a binary tree, return the postorder traversal of its nodes' values. Example: Input: [1,null,2,3] 1 \ 2 / 3 Output: [3,2,1] Follow up: Recursive solution is trivial, could you do it iteratively? ''' # Definition for a binary tree node. # class TreeNode(object): # def __init...
846
521
#ifndef _IPXE_SYSLOG_H #define _IPXE_SYSLOG_H /** @file * * Syslog protocol * */ FILE_LICENCE ( GPL2_OR_LATER ); #include <syslog.h> /** Syslog server port */ #define SYSLOG_PORT 514 /** Syslog line buffer size * * This is a policy decision */ #define SYSLOG_BUFSIZE 128 /** Syslog default facility * * Th...
245
589
package rocks.inspectit.ui.rcp.handlers; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; import org.eclipse.core.commands.IHandler; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.handlers.HandlerUtil; imp...
1,138
799
from MapValuesTransformer import mapvalues def test_mapvalues_dict(): value = { "testkey1": "testvalue1", "testkey2": "testvalue2" } input_v = "testkey2: testvalue2" mapped_v = "testvalue2changed" assert mapvalues(value, input_v, mapped_v) == '{"testkey1": "testvalue1", "testkey2":...
422
7,482
<filename>bsp/ck802/libraries/common/gpio/dw_gpio.h /* * Copyright (C) 2017 C-SKY Microsystems 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...
1,158
2,151
// // Copyright (c) 2016 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. // // Color.h : Defines the Color type used throughout the ANGLE libraries #ifndef COMMON_COLOR_H_ #define COMMON_COLOR_H_ namespace angle {...
400
672
/* * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in...
803
785
/* * Copyright 2016-2021 Pnoker. 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 applicable law ...
760
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 "chromecast/media/cma/backend/mixer/post_processors/governor.h" #include <cmath> #include <cstdint> #include <limits> #include <memory> #include...
1,516
2,441
package tech.tablesaw.columns.strings; import com.google.common.base.Objects; import com.google.common.base.Preconditions; import it.unimi.dsi.fastutil.ints.Int2IntMap; import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpe...
4,898
780
<filename>ospray/api/ospray_util_impl.cpp // Copyright 2009-2019 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #include "ospray/ospray_cpp.h" #include "ospray/ospray_util.h" extern "C" { // OSPData helpers //////////////////////////////////////////////////////////// OSPData ospNewSharedData1D( const ...
1,697
8,629
<gh_stars>1000+ #include "CapnProtoRowInputFormat.h" #if USE_CAPNP #include <IO/ReadBuffer.h> #include <Interpreters/Context.h> #include <Formats/FormatFactory.h> #include <Formats/FormatSchemaInfo.h> #include <capnp/serialize.h> #include <capnp/dynamic.h> #include <capnp/common.h> #include <Columns/ColumnsNumber.h> ...
5,432
1,368
<reponame>epoiate/django-autocomplete-light<gh_stars>1000+ """ WSGI config for project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os import sys from django.core...
200
338
{ "Prestigio PAP3350DUO": { "type": "mobile-phone", "properties": { "Device_Name": "MultiPhone 3350 Duo", "Device_Code_Name": "PAP3350DUO", "Device_Maker": "Prestigio", "Device_Pointing_Method": "touchscreen", "Device_Brand_Name": "Prestigio" }, "standard": false }, "...
1,750
776
#ifndef STREAMWRITER_H #define STREAMWRITER_H #include <memory> #include <string> namespace jsonrpc { class StreamWriter { public: bool Write(const std::string &source, int fd); }; } // namespace jsonrpc #endif // STREAMWRITER_H
94
4,262
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
613
834
<gh_stars>100-1000 #using <System.Xml.dll> #using <System.Drawing.dll> #using <System.dll> #using <System.Windows.Forms.dll> #using <System.Data.dll> using namespace System; using namespace System::Data; using namespace System::Windows::Forms; public ref class Form1: public Form { protected: TextBox^ text1; /...
207
878
<filename>SourceX/miniwin/rand.cpp #include <cstdint> #include "devilution.h" namespace dvl { static uint32_t rand_state = 0; int rand(void) { rand_state = rand_state * 214013 + 2531011; return (rand_state >> 16) & 0x7FFF; } void srand(uint32_t seed) { rand_state = seed; } } // namespace dvl
129
30,023
"""Diagnostics support for TPLink.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from .const import DOMAIN from .coordinator import TPLin...
367
1,085
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 l...
891
1,574
//======================================================================= // Copyright <NAME> 2013-2018. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://www.opensource.org/licenses/MIT) //======================================================================= ...
613
310
package org.seasar.doma.internal.apt.processor.domain; import org.seasar.doma.Domain; @Domain(valueType = int.class, factoryMethod = "of") public class OfPrimitiveValueDomain { private final int value; private OfPrimitiveValueDomain(int value) { this.value = value; } public int getValue() { return ...
143
2,184
import copy import math def check_predict_proba_one(classifier, dataset): """predict_proba_one should return a valid probability distribution and be pure.""" if not hasattr(classifier, "predict_proba_one"): return for x, y in dataset: xx, yy = copy.deepcopy(x), copy.deepcopy(y) ...
473
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Châtillon-en-Diois","circ":"3ème circonscription","dpt":"Drôme","inscrits":518,"abs":288,"votants":230,"blancs":26,"nuls":8,"exp":196,"res":[{"nuance":"REM","nom":"<NAME>","voix":114},{"nuance":"LR","nom":"<NAME>","voix":82}]}
115
504
"""Internal utilities for the Bolt framework."""
10
1,450
<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 * ...
2,245
335
<reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000 { "word": "Instance", "definitions": [ "An example or single occurrence of something.", "A particular case." ], "parts-of-speech": "Noun" }
97
353
// // Touch-Bridging-Header.h // LinearMouse // // Created by lujjjh on 2021/8/5. // #include <IOKit/hidsystem/IOHIDEventSystemClient.h> #include "../Touch/TouchSimulate.h" typedef void (^IOHIDServiceClientBlock)(void *, void *, IOHIDServiceClientRef); IOHIDEventSystemClientRef IOHIDEventSystemClientCreate(CFAllo...
266
5,169
{ "name": "HermesLogger", "version": "0.1.0", "summary": "An extensible logging framework built in Swift.", "description": "HermesLogger is a small, extensible, logging framework built in Swift using generics and protocols.\n\nCurrently supports XcodeColors.", "homepage": "https://github.com/MichaelSelsky/Her...
326
634
<reponame>biaye2001/james-project<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 * * r...
794
406
<filename>src/examples/trading/common/udp_socket.hpp // // udp_socket.hpp // ~~~~~~~~~~~~~~ // Simple UDP socket wrapper. // // Copyright (c) 2014 <NAME> (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org...
376
311
<reponame>bingrao/Bug-Transformer /* Copyright (C) 1997,1998,1999,2000,2001 <NAME> mkcls - a program for making word classes . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of t...
968
1,830
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Licensed under the Zeebe Community License 1.1. You may not use this file * ...
784
2,151
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkCodec.h" #include "SkCodecPriv.h" #include "SkWebpAdapterCodec.h" SkWebpAdapterCodec::SkWebpAdapterCodec(SkWebpCodec* codec, ExifOrientationBehavior behavior) ...
391
959
<gh_stars>100-1000 package com.andreabaccega.formedittextvalidator; import android.widget.EditText; /** * The or validator checks if one of passed validators is returning true.<br/> * Note: the message that will be shown is the one passed to the Constructor * * @author <NAME>. */ public class OrValidator extends...
282
2,019
/* * Copyright (c) 2021, The PurpleI2P Project * * This file is part of Purple i2pd project and licensed under BSD3 * * See full license text in LICENSE file at top of project tree */ #include <map> #include <vector> #include <string> #include <memory> #include "I18N.h" // Russian localization file namespace i2p { n...
6,020
3,034
<reponame>NgSekLong/logging-log4j2 /* * 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, Versio...
472
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" #include "...
3,052
381
<reponame>nathanderijk/FarmBotQuest /* * GCodeHandler.h * * Created on: 15 maj 2014 * Author: MattLech */ #ifndef GCODEHANDLER_H_ #define GCODEHANDLER_H_ #include "Command.h" class GCodeHandler { public: GCodeHandler(); virtual ~GCodeHandler(); virtual int execute(Command *); }; #endif /* GCODEHANDL...
131
3,362
package com.zendesk.maxwell.schema.columndef; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonDeserializer; import com.fasterxml.jackson.databind.JsonNode; i...
485
1,338
<gh_stars>1000+ /* ** PCL6Writer.h ** Copyright 2005, <NAME>, <EMAIL>. ** All rights reserved. ** Distributed under the terms of the MIT License. */ #ifndef _PCL6_WRITER_H #define _PCL6_WRITER_H #include <SupportDefs.h> class PCL6Driver; class PCL6WriterStream { public: virtual ~PCL6WriterStream() {} virtual...
3,465
402
/* * Copyright 2000-2021 <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 ...
546
1,104
<gh_stars>1000+ package org.apache.lucene.index; import java.io.IOException; import org.apache.lucene.store.IndexOutput; public class DocValuesWriteEmpty implements DocValuesWriter{ public void collectDoc(int docid, int termNum) {} public void collectTmIndex(String termValue) throws IOException {} pu...
234
11,356
<filename>mc-sema/protobuf-2.5.0/python/google/protobuf/internal/message_test.py<gh_stars>1000+ #! /usr/bin/python # # Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # http://code.google.com/p/protobuf/ # # Redistribution and use in source and binary forms, with o...
8,595
1,484
<gh_stars>1000+ {"data": [{"Vulnerability": {"CVSS": [], "Description": "", "FixedIn": [{"Name": "avahi", "NamespaceName": "alpine:3.7", "Version": "0.6.32-r5", "VersionFormat": "apk"}], "Link": "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-1000845", "Metadata": {}, "Name": "CVE-2018-1000845", "NamespaceName"...
1,517
862
/* * (c) Copyright 2020 Palantir Technologies Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
3,364
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once #if defined(UDRIV...
3,188
743
/* * 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 ...
3,805
3,886
<filename>src/OpenCvSharpExtern/objdetect.cpp // ReSharper disable CppUnusedIncludeDirective #include "objdetect.h" #include "objdetect_HOGDescriptor.h" #include "objdetect_QRCodeDetector.h"
73
642
package com.jeesuite.common.async; import java.util.concurrent.atomic.AtomicInteger; /** * 异步初始化接口 * <br> * Class Name : AsyncInitializer * * @author jiangwei * @version 1.0.0 * @date 2020年8月27日 */ public interface AsyncInitializer { static AtomicInteger count = new AtomicInteger(1); default void proce...
205
387
//@zgui_packer:ignore #include "../zgui.hh" using namespace zgui::globals; //@zgui_packer:resume // ======================================================================== void zgui::checkbox(const char *id, bool &value) { std::vector<std::string> id_split = utils::hash::split_str(id, '#'); const int contro...
792
777
// Copyright (c) 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. #ifndef STORAGE_BROWSER_FILEAPI_EXTERNAL_MOUNT_POINTS_H_ #define STORAGE_BROWSER_FILEAPI_EXTERNAL_MOUNT_POINTS_H_ #include <map> #include <memory> #i...
2,052
335
{ "word": "Impotent", "definitions": [ "Unable to take effective action; helpless or powerless.", "(of a man) abnormally unable to achieve an erection or orgasm.", "(of a male animal) unable to copulate." ], "parts-of-speech": "Adjective" }
106
1,405
package org.apache.commons.httpclient.auth; import org.apache.commons.httpclient.Credentials; import org.apache.commons.httpclient.HttpMethod; public interface AuthScheme { String authenticate(Credentials credentials, String str, String str2) throws AuthenticationException; String authenticate(Credentials cr...
177
14,668
<gh_stars>1000+ // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/ash/shelf/shelf_extension_app_updater.h" #include "chrome/browser/chromeos/extensions/gfx_utils.h" #include "...
1,544
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.SubResource; import com.azure.c...
2,205
852
import FWCore.ParameterSet.Config as cms import sys process = cms.Process("FlatCalib") process.load("FWCore.MessageService.MessageLogger_cfi") process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') process.load("RecoHI.HiEvtPlaneAlgos.HiEvtPlane_cfi") process.load("RecoHI.HiEvtPlaneAlgos.hiE...
1,893
1,127
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "openvino/op/i420_to_rgb.hpp" #include "itt.hpp" BWDCMP_RTTI_DEFINITION(ov::op::v8::I420toRGB); ov::op::v8::I420toRGB::I420toRGB(const Output<Node>& arg) : util::ConvertColorI420Base(arg, util::ConvertColorI420Base::...
499
4,071
#pragma once #include "onnx/defs/schema.h" #include "onnx/proto_utils.h" #include "onnx/string_utils.h" namespace ONNX_NAMESPACE { namespace shape_inference { struct InferenceContextImpl : public InferenceContext { InferenceContextImpl( const NodeProto& n, const std::unordered_map<std::string, TypeProt...
2,750
775
<reponame>bes-dev/training_extensions """Exportable code for Anomaly tasks.""" # Copyright (C) 2021-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # from .anomaly_classification import AnomalyClassification from .anomaly_detection import AnomalyDetection from .anomaly_segmentation import AnomalySegmenta...
133
399
<reponame>TheTripleV/GRIP package edu.wpi.grip.core.util.service; import com.google.common.collect.ImmutableSet; import com.google.common.util.concurrent.Service; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; /** * This interface defines a {@link Service} that breaks the guaran...
436
399
<filename>library/cc/request_method.cc #include "request_method.h" #include <stdexcept> #include <vector> namespace Envoy { namespace Platform { static const std::pair<RequestMethod, std::string> REQUEST_METHOD_LOOKUP[]{ {RequestMethod::DELETE, "DELETE"}, {RequestMethod::GET, "GET"}, {RequestMethod::HEAD, "H...
370
5,102
<reponame>yangxinbo/Discovery package com.nepxion.discovery.plugin.strategy.monitor; /** * <p>Title: Nepxion Discovery</p> * <p>Description: Nepxion Discovery</p> * <p>Copyright: Copyright (c) 2017-2050</p> * <p>Company: Nepxion</p> * @author <NAME> * @version 1.0 */ import java.io.Serializable; import org.ap...
518
868
<reponame>dheera/rosstorm import numpy as np import time import PIL.Image import rosshow.termgraphics as termgraphics from rosshow.viewers.generic.GenericImageViewer import GenericImageViewer class OccupancyGridViewer(GenericImageViewer): def __init__(self, canvas, title = ""): def msg_decoder(msg): ...
605
4,625
<filename>janusgraph-core/src/main/java/org/janusgraph/diskstorage/locking/TemporaryLockingException.java // Copyright 2017 JanusGraph 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...
570
392
// Copyright (C) 2002 <NAME> <<EMAIL>> // Copyright (C) 2002 <NAME> <<EMAIL>> // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as // published by the Free Software Foundation; either version 2 of the // License, or (at your option) any la...
1,680
12,377
# 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 ...
2,569
653
<filename>clang/test/SemaSYCL/sycl-2017-future-compat.cpp // RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -sycl-std=2017 -verify %s // RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -sycl-std=2017 -Wno-sycl-2017-compat -verify=sycl-2017 %s // We do not expect any diagnostics from this file when disabling future comp...
360
799
import demistomock as demisto # noqa from typing import Tuple, List from math import floor from functools import reduce import ExpanseGenerateIssueMapWidgetScript # taken from demistomock with only the relevant # fields changed EXAMPLE_INCIDENT = [ { "Brand": "Builtin", "Category": "Builtin", ...
4,496
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-w84p-rw5x-5fr9", "modified": "2022-05-01T23:49:35Z", "published": "2022-05-01T23:49:35Z", "aliases": [ "CVE-2008-2381" ], "details": "SQL injection vulnerability in the create function in common/include/GroupJoin...
832
2,529
<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 "Licens...
1,363
1,899
<reponame>saulocbarreto/bgslibrary #include "PerformanceUtils.h" using namespace bgslibrary::tools; PerformanceUtils::PerformanceUtils() { //debug_construction(PerformanceUtils); } PerformanceUtils::~PerformanceUtils() { //debug_destruction(PerformanceUtils); } float PerformanceUtils::NrPixels(IplImage *image) ...
5,712
3,495
<reponame>summercms/connectedhomeip /* * * Copyright (c) 2021 Project CHIP Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/license...
620
348
<filename>docs/data/leg-t2/008/00802175.json {"nom":"Foisches","circ":"2ème circonscription","dpt":"Ardennes","inscrits":177,"abs":122,"votants":55,"blancs":10,"nuls":5,"exp":40,"res":[{"nuance":"LR","nom":"<NAME>","voix":23},{"nuance":"REM","nom":"<NAME>","voix":17}]}
109