max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
388
/////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2008-2012 <NAME> (Tonkikh) <<EMAIL>> // // See accompanyin...
2,031
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 * ...
3,944
323
<gh_stars>100-1000 import argparse import parsl from parsl.app.app import python_app from parsl.tests.configs.local_threads import config @python_app def get_num(first, second): return first + second def test_fibonacci(num=3): x1 = 0 x2 = 1 counter = 0 results = [] results.append(0) res...
432
2,504
<gh_stars>1000+ //********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF...
785
674
<filename>libs/rison/__init__.py from decoder import loads from encoder import dumps
26
973
#ifndef OPENGL_GEN_CORE_REM1_3_HPP #define OPENGL_GEN_CORE_REM1_3_HPP #include "_int_load_test.hpp" namespace gl { enum { ADD_SIGNED = 0x8574, CLIENT_ACTIVE_TEXTURE = 0x84E1, COMBINE = 0x8570, COMBINE_ALPHA = 0x8572, COMBINE_RGB ...
3,606
8,851
from django.core.exceptions import ValidationError from django.utils.functional import cached_property from django.utils.translation import gettext_lazy as _ from wagtail.core import blocks from wagtail.embeds.format import embed_to_frontend_html class EmbedValue: """ Native value of an EmbedBlock. Should, a...
1,093
4,391
<reponame>sasano8/pyright # This sample tests that the type checker flags certain values # that cannot be deleted or assigned to. # This should generate an error True = 3 # This should generate an error False = 4 # This should generate an error None = True # This should generate an error __debug__ = 4 # This shoul...
292
1,093
import argparse import os import time import math import collections from tqdm import tqdm import torch import torch.nn as nn from torch.autograd import Variable import torch.nn.functional as F import numpy as np import pandas as pd from reparameterization import apply_weight_norm, remove_weight_norm ...
4,223
980
<gh_stars>100-1000 package org.jcodec.codecs.vpx.vp8.data; import org.jcodec.codecs.vpx.vp8.CommonUtils; import org.jcodec.codecs.vpx.vp8.enums.MVReferenceFrame; import org.jcodec.codecs.vpx.vp8.pointerhelper.FullAccessIntArrPointer; /** * This class is part of JCodec ( www.jcodec.org ) This software is distributed ...
1,644
1,909
<reponame>grmkris/XChange package org.knowm.xchange.kucoin.dto.response; import java.math.BigDecimal; import lombok.Data; @Data public class AllTickersTickerResponse { private String symbol; private BigDecimal high; private BigDecimal vol; private BigDecimal last; private BigDecimal low; private BigDecima...
146
1,094
/*********************************************************************************************************************************** Azure Storage Read ***********************************************************************************************************************************/ #include "build.auto.h" #include "...
1,927
432
<reponame>LiamChis/OpenmHealthClone /* * Copyright 2017 Open mHealth * * 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 req...
967
5,169
{ "name": "ZappingKit", "version": "0.1.3", "summary": "Provide zapping UI.", "description": "Provide zapping UI. Support navigation controllre life cycle.", "homepage": "https://github.com/noppefoxwolf/ZappingKit", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "<NAME>": "<EM...
243
916
''' ModernGL: High performance rendering for Python 3 ''' from .error import * from .buffer import * from .compute_shader import * from .conditional_render import * from .context import * from .framebuffer import * from .program import * from .program_members import * from .query import * from .renderbuffer import...
157
663
/* * Copyright 2016-2017 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
2,140
5,133
/* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.test.injectionstrategy.jsr330.field; import org.mapstruct.InjectionStrategy; import org.mapstruct.MapperConfig; import org.mapstruct.MappingConsta...
158
1,428
<gh_stars>1000+ package com.digitalocean.hacktoberfest; import org.antlr.v4.runtime.*; import org.antlr.v4.runtime.tree.*; public class HelloWorld { public static void main(String[] args) throws Exception { // Input stream + lexing ANTLRInputStream antlrInputStream = new ANTLRInputStream("hello hacktoberfest");...
222
892
<filename>advisories/unreviewed/2022/05/GHSA-h2w7-383r-23p4/GHSA-h2w7-383r-23p4.json { "schema_version": "1.2.0", "id": "GHSA-h2w7-383r-23p4", "modified": "2022-05-13T01:50:37Z", "published": "2022-05-13T01:50:37Z", "aliases": [ "CVE-2018-18202" ], "details": "The QLogic 4Gb Fibre Channel 5.5.2.6.0 an...
505
1,060
/* Copyright <NAME> 2011-2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef MSGPACK_PREDEF_ARCHITECTURE_CONVEX_H #define MSGPACK_PREDEF_ARCHITECTURE_CONVEX_H #include <msgpack/predef/version_number.h> #incl...
918
355
r''' Euler angle rotations and their conversions for Tait-Bryan zyx convention See :mod:`euler` for general discussion of Euler angles and conventions. This module has specialized implementations of the extrinsic Z axis, Y axis, X axis rotation convention. The conventions in this module are therefore: * axes $i, j,...
4,558
4,283
/* * Copyright (c) 2008-2021, Hazelcast, 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 required ...
2,134
669
""" Copyright (c) Facebook, Inc. and its affiliates. """ from droidlet.shared_data_structs import ErrorWithResponse from droidlet.interpreter import interpret_relative_direction from word2number.w2n import word_to_num def number_from_span(span): # this will fail in many cases.... words = span.split() deg...
1,702
6,989
<gh_stars>1000+ #include <google/protobuf/compiler/code_generator.h> #include <google/protobuf/compiler/plugin.h> #include <google/protobuf/stubs/common.h> namespace NProtobuf::NCompiler::NPlugins { class TCppStyleGuideExtensionGenerator : public google::protobuf::compiler::CodeGenerator { public: bool Generate(c...
253
12,278
// Copyright <NAME> 2013-2017 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #ifndef BOOST_HANA_TEST_AUTO_AP_HPP #define BOOST_HANA_TEST_AUTO_AP_HPP #include <boost/hana/assert.hpp> #include <boost/hana/ap.hpp> #include <...
1,471
476
### # Copyright (c) 2015-2021, The Limnoria Contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this l...
2,913
679
<reponame>Grosskopf/openoffice /************************************************************** * * 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...
2,601
1,403
<reponame>codingric/dynmap<gh_stars>1000+ package org.dynmap.web; import org.dynmap.DynmapCore; import org.dynmap.Log; import javax.servlet.*; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.HashSet; import java.util.Set; public class BanIPFilter implements Filter { p...
792
1,056
<filename>java/maven/src/org/netbeans/modules/maven/output/SiteOutputProcessor.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 license...
1,621
1,306
/* * Copyright (C) 2008 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 app...
1,346
395
package timely.auth; import java.io.InputStream; import java.nio.charset.Charset; import java.security.Key; import java.security.KeyStore; import java.security.cert.Certificate; import java.security.cert.CertificateFactory; import java.security.cert.X509Certificate; import java.util.*; import java.util.stream.Collecto...
2,172
1,738
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license belo...
1,928
1,072
#ifndef _HEADERS_STABS_H #define _HEADERS_STABS_H /* These are some macros for handling of symboltable information */ /* linker can use symbol b for symbol a if a is not defined */ #define ALIAS(a,b) asm(".stabs \"_" #a "\",11,0,0,0;.stabs \"_" #b "\",1,0,0,0") /* add symbol a to list b (type c (22=text 24=data 26=...
1,426
2,702
<filename>api/src/test/java/keywhiz/api/automation/v2/SecretContentsResponseV2Test.java<gh_stars>1000+ /* * Copyright (C) 2015 Square, 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 a...
575
8,315
<reponame>linhvnguyen9/epoxy-exoplayer package com.airbnb.epoxy.integrationtest; import com.airbnb.epoxy.AutoModel; import com.airbnb.epoxy.EpoxyController; public class BasicAutoModelsAdapter extends EpoxyController { @AutoModel Model_ model1; @AutoModel Model_ model2; @Override protected void buildModels(...
140
711
<filename>java110-bean/src/main/java/com/java110/entity/center/DataFlowLinksCost.java package com.java110.entity.center; import java.util.Date; /** * Created by wuxw on 2018/4/13. */ public class DataFlowLinksCost { //环节编码 private String LinksCode; private String LinksName; private Date startDate...
493
811
{ "description": "Selectors - NEGATED :nth-last-child() pseudo-class (css3-modsel-74b)", "selectors": { ".green": "css3-modsel-74b.expected0.html", "ul > li:not(:nth-last-child(odd))": "css3-modsel-74b.expected1.html", "ol > li:not(:nth-last-child(even))": "css3-modsel-74b.expected2.html", "table.t1...
276
545
#include <iostream> #include "String.h" void print(const String &s) { std::cout << "<" << &s << ">:<" << s.str() << "> size: " << s.size() << " capacity: " << s.capacity() << std::endl; } int main() { String s1; print(s1); s1.pop_back(); print(s1); s1.push_back('a'); print(s1); s1.push_back('b')...
479
511
//****************************************************************** // // Copyright 2016 Samsung Electronics All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance...
1,466
1,044
<gh_stars>1000+ { "Prelude": { "abs": ["positive", "magnitude", "absoluteValue"], "acos": ["arccos"], "activityOf": ["interactionOf"], "arc": [ { "value": "semicircle", "explanation": "Hint: A semicircle is an arc with the start and end angles 180 degrees apart." } ], ...
1,462
375
<gh_stars>100-1000 /* * Copyright 2015 Nokia Solutions and Networks * Licensed under the Apache License, Version 2.0, * see license.txt file for details. */ package org.rf.ide.core.testdata.text.read; import org.rf.ide.core.environment.RobotVersion; public class VersionAvailabilityInfo { private final String...
1,081
890
<filename>asylo/identity/attestation/sgx/internal/fake_pce.cc<gh_stars>100-1000 /* * * Copyright 2020 Asylo 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....
2,047
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Plovan","circ":"7ème circonscription","dpt":"Finistère","inscrits":632,"abs":240,"votants":392,"blancs":4,"nuls":2,"exp":386,"res":[{"nuance":"REM","nom":"<NAME>","voix":138},{"nuance":"FI","nom":"M. <NAME>","voix":61},{"nuance":"LR","nom":"<NAME>","voix":50},{"nuance":"...
291
17,481
<filename>java/dagger/internal/codegen/base/Util.java<gh_stars>1000+ /* * Copyright (C) 2013 The Dagger 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.o...
425
379
<gh_stars>100-1000 # Copyright (c) 2020 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 # # Unles...
1,604
1,056
/* * 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 ...
578
1,144
<gh_stars>1000+ package de.metas.pricing.exceptions; import java.time.LocalDate; import javax.annotation.Nullable; import org.adempiere.exceptions.AdempiereException; import de.metas.bpartner.BPartnerId; import de.metas.bpartner.service.IBPartnerBL; import de.metas.i18n.AdMessageKey; import de.metas.i18n.ITranslata...
1,626
340
//================================================================================================== /** EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT **/ //================================================================================================== ...
911
532
import threading import time import pytest import torch from torchgpipe.microbatch import Batch from torchgpipe.stream import CPUStream from torchgpipe.worker import Task, spawn_workers class fake_device: """A test double for :class:`torch.device`. Every fake device is different with each other. """ ...
1,895
1,936
<reponame>AdronTech/maplab #include <random> #include <gtest/gtest.h> #include <maplab-common/test/testing-entrypoint.h> #include <maplab-common/test/testing-predicates.h> #include <vi-map/test/vi-map-generator.h> namespace map_optimization_legacy { class RemoveVertexEdgeTest : public testing::Test { protected: R...
2,628
930
# Import Module from tkinter import * from tkhtmlview import HTMLLabel from tkinter import ttk from tkinter import font as tkFont import requests from bs4 import BeautifulSoup import urllib3 import shutil # Function to save image to the users file system def saveImage(): file_name = search_box.get().replace(" ",""...
771
5,133
<reponame>Saljack/mapstruct /* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.test.bugs._955.dto; import java.util.HashMap; import java.util.Map; /** * * @author <NAME> */ public class SuperCa...
209
23,901
<filename>saccader/visual_attention/dram_test.py # coding=utf-8 # Copyright 2021 The Google Research 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/lic...
674
575
<gh_stars>100-1000 // Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_FACTORY_H_ #define IOS_CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_FACTORY_H_ #inclu...
503
892
{ "schema_version": "1.2.0", "id": "GHSA-93c3-hgqg-2fpr", "modified": "2021-12-09T00:01:36Z", "published": "2021-12-08T00:01:17Z", "aliases": [ "CVE-2021-37065" ], "details": "There is a Integer Overflow or Wraparound vulnerability in Huawei Smartphone.Successful exploitation of this vulnerability may...
357
563
# Automatically generated by the Fast Binary Encoding compiler, do not modify! # https://github.com/chronoxor/FastBinaryEncoding # Source: FBE # Version: 1.8.0.0
51
1,305
<filename>src/org/example/source/javax/swing/PopupFactory.java /* * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.swing; import sun.awt.Emb...
17,181
8,805
<reponame>rudylee/expo //---------------------------------------------------------------------------// // Copyright (c) 2013 <NAME> <<EMAIL>> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http:...
795
5,169
<gh_stars>1000+ { "name": "CLHelper", "version": "1.0.2", "summary": "A Classic way to manage Core Location Jobs", "description": "'CLHelper is a helper file which will help in managing all your Core Location related task in a neat way with closures.'", "homepage": "https://github.com/greenSyntax/CLHelper", ...
255
2,151
<filename>chrome/browser/installable/installable_data.h // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_INSTALLABLE_INSTALLABLE_DATA_H_ #define CHROME_BROWSER_INSTALLABLE_INSTALLA...
971
9,959
package com.sun.tools.javac.parser; import java.nio.CharBuffer; import com.sun.tools.javac.parser.Tokens.Comment; import com.sun.tools.javac.parser.Tokens.Comment.CommentStyle; public class JavaTokenizer { // used before java 16 protected UnicodeReader reader; // used before java 16 protected JavaTokenizer(Sca...
265
628
def copy_files(src, target_node, parent=None, name=None): """Copy the files from src to the target node :param Folder src: The source to copy children from :param Node target_node: The node to copy files to :param Folder parent: The parent of to attach the clone of src to, if applicable """ ass...
977
14,668
<reponame>chromium/chromium // 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 "components/open_from_clipboard/clipboard_recent_content_generic.h" #include <string> #include "base/bind.h" #inclu...
3,507
5,939
<reponame>xuwei-k/finagle package com.twitter.finagle.example.java.http; import com.twitter.finagle.Service; import com.twitter.finagle.SimpleFilter; import com.twitter.finagle.http.Request; import com.twitter.finagle.http.Response; import com.twitter.finagle.http.Status; import com.twitter.util.ExceptionalFunction; i...
502
5,169
<gh_stars>1000+ { "name": "Visibility", "version": "1.0.0", "summary": "Handle a view visibility in the window", "description": "`Visibility` makes it easy to determine if the view in the window is visible.", "homepage": "https://github.com/darquro/Visibility", "license": { "type": "MIT", "file": "L...
247
724
import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt # noqa import numpy as np # noqa from pandas_ml import ConfusionMatrix # noqa import itertools # noqa def plot_confusion_matrix(cm, classes, title, normalize=False,...
1,509
2,027
<filename>test/analytics.py class FakeMixpanel(object): def track(*args, **kwargs): pass def init_app(app): return FakeMixpanel()
58
921
<gh_stars>100-1000 // Copyright (c) 2017-2020 <NAME> <<EMAIL>> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.vladsch.md.nav.flex.psi.index; import com.intellij.psi.stubs.StubIndexKey; import com.vladsch.md.nav.flex.psi.FlexmarkExampleOption; import co...
314
302
#ifndef GRIDTABLEHEADERMODEL_H #define GRIDTABLEHEADERMODEL_H #include "tableheaderitem.h" #include <QAbstractTableModel> class GridTableHeaderModel : public QAbstractTableModel { Q_OBJECT public: enum HeaderRole { ColumnSpanRole = Qt::UserRole + 1, RowSpanRole, }; GridTableHeaderModel(int row, int ...
336
370
<filename>ndbench-web/src/test/java/com/test/Log4jConfigurationTest.java package com.test; import org.apache.commons.io.FileUtils; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.io.IOException; public class Log4jConfigurationTest { static { ...
468
367
/******************************************************************************* * Copyright 2014 <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/l...
582
346
<reponame>rhyep/Python_tutorials public class EqualityOperators { public static void main(String[] args) { System.out.println( 2 == 2 ); } }
52
933
<filename>3rdparty/openssl-win32/openssl/txt_db.h #include "../../openssl/crypto/txt_db/txt_db.h"
44
622
/* * Copyright (c) LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license. * See LICENSE in the project root for license information. */ package com.linkedin.flashback.matchrules; import java.util.Collections; import java.util.LinkedHashMap; import java.util.Map; import java.util.Set; i...
359
526
/* SPDX-License-Identifier: Apache 2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.viewservices.serverauthor.initialization; import org.odpi.openmetadata.adminservices.configuration.registration.ViewServiceDescription; import org.odpi.openmetadata.commonservices.multitena...
1,008
582
// Copyright (C) 2010-2016 <NAME> // Distributed under the MIT license, see the LICENSE file for details. #ifndef CHROMAPRINT_AUDIO_PROCESSOR_H_ #define CHROMAPRINT_AUDIO_PROCESSOR_H_ #include "utils.h" #include "audio_consumer.h" #include <vector> struct AVResampleContext; namespace chromaprint { class AudioPro...
582
435
<gh_stars>100-1000 { "description": "DjangoCon Europe 2020 (Virtual)\nSeptember 19, 2020 - 09h15 (GMT+1)\n\n\"Ceci n'est pas un job\" by <NAME>\n\nMore than once I have had the pleasure of being informed that my job (which by the way, is also the job of quite a few members of the DjangoCon audience) is not a \u201c...
587
675
/* * Copyright (c) 2020 Bitdefender * SPDX-License-Identifier: Apache-2.0 */ #include "include/nd_crt.h" // // nd_strcat_s // char * nd_strcat_s( char *dst, size_t dst_size, const char *src ) { char *p; size_t available; p = dst; available = dst_size; while (available > 0 && *p ...
584
617
from numpy.testing import assert_array_equal import numpy as np from scipy.sparse import csr_matrix from seqlearn._utils import safe_add def test_safe_add(): X1 = np.zeros((4, 13), dtype=np.float64) X2 = X1.copy() Y = csr_matrix(np.arange(4 * 13, dtype=np.float64).reshape(4, 13) % 4) X1 += Y sa...
228
6,726
<filename>android/src/main/java/com/facebook/flipper/plugins/inspector/descriptors/utils/stethocopies/FragmentManagerAccessor.java /* * 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. */ ...
194
1,609
// Copyright 2018 The Gemmlowp 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 ...
14,504
582
/** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.editor.diagram.policies; import org.eclipse.gef.commands.Command; import org.eclipse.gef.editpolicies.ComponentEdi...
348
412
// -*- Mode: objc; Coding: utf-8; indent-tabs-mode: nil; -*- @import Cocoa; #import "ServerClientProtocol.h" @interface ServerForUserspace : NSObject <ServerClientProtocol> - (BOOL)registerService; - (void)setup; @end
86
348
{"nom":"Tallone","circ":"2ème circonscription","dpt":"Haute-Corse","inscrits":253,"abs":155,"votants":98,"blancs":7,"nuls":1,"exp":90,"res":[{"nuance":"REG","nom":"<NAME>","voix":51},{"nuance":"REM","nom":"<NAME>","voix":39}]}
91
4,538
/* * Copyright 2009-2017 Alibaba Cloud 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...
745
310
{ "name": "AEB10E", "description": "An acoustic bass guitar.", "url": "https://www.ibanez.com/usa/products/detail/aeb10e_2y_08.html" }
60
2,151
// 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 "mojo/edk/system/channel.h" #include "base/bind.h" #include "base/memory/ptr_util.h" #include "base/message_loop/message_loop.h" #include "base/...
3,786
448
<filename>FileDownloader/src/main/java/org/wlf/filedownloader/db/BaseContentDbDao.java package org.wlf.filedownloader.db; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; /** * base dao impl * <br/> ...
1,533
892
{ "schema_version": "1.2.0", "id": "GHSA-4wvx-qq9g-8hh9", "modified": "2022-05-13T01:49:56Z", "published": "2022-05-13T01:49:56Z", "aliases": [ "CVE-2018-14345" ], "details": "An issue was discovered in SDDM through 0.17.0. If configured with ReuseSession=true, the password is not checked for users wi...
535
1,014
package com.github.neuralnetworks.input; import java.util.Arrays; import com.github.neuralnetworks.calculation.OutputError; import com.github.neuralnetworks.tensor.Matrix; import com.github.neuralnetworks.tensor.Tensor; public class MultipleNeuronsSimpleOutputError implements OutputError { private static final long...
819
1,778
<reponame>cicidi/spring-security-oauth package com.baeldung.opaque; import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic; import static org.apache.commons.lang3.RandomStringUtils.randomNumeric; import static org.assertj.core.api.Assertions.assertThat; import java.util.HashMap; import java.util.Li...
1,722
1,444
<gh_stars>1000+ package org.mage.test.cards.single.tsp; import mage.constants.PhaseStep; import mage.constants.Zone; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBase; /** * @author TheElk801 */ public class GauntletOfPowerTest extends CardTestPlayerBase { private static final Stri...
976
799
GET_ALERTS_CONTEXT = [ {'ack': 'no', 'action': 'notified', 'alertUrl': 'https://FireEyeEX/emps/eanalysis?e_id=9&type=url', 'applianceId': 'appid', 'attackTime': '2021-02-14 09:42:43 +0000', 'dst': {'smtpTo': '<EMAIL>'}, 'explanation': {'malwareDetected': {'malware': [{'md5Sum': '271c1b...
2,371
2,542
<gh_stars>1000+ // ------------------------------------------------------------ // 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 ...
1,210
6,036
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "gtest/gtest.h" #include "test/providers/provider_test_utils.h" namespace onnxruntime { namespace test { template <typename T> void RunTypedTest() { // Skip tensorrt for INT8 tests bool exclude_tensorrt = std...
6,734
6,320
/* * * Copyright 2012 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
1,051
1,248
#!/usr/bin/env/python # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # ...
1,500
1,436
<gh_stars>1000+ // // NTESSessionListViewController.h // DemoApplication // // Created by chris on 2017/10/16. // Copyright © 2017年 chrisRay. All rights reserved. // #import <NIMKit/NIMKit.h> @interface NTESSessionListViewController : NIMSessionListViewController @end
96
429
#include <wchar.h> #include <stdio.h> wchar_t * wcscat(wchar_t *dest, const wchar_t *src) { wchar_t * end = dest; while (*end != 0) { ++end; } while (*src) { *end = *src; end++; src++; } *end = 0; return dest; } wchar_t * wcsncat(wchar_t *dest, const wchar_t * src, size_t n) { wchar_t * end = dest; s...
241
468
<gh_stars>100-1000 #define GLI_INCLUDE_WGL_NV_VIDEO_OUTPUT enum Main { WGL_BIND_TO_VIDEO_RGB_NV = 0x20C0, WGL_BIND_TO_VIDEO_RGBA_NV = 0x20C1, WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV = 0x20C2, WGL_VIDEO_OUT_COLOR_NV = 0x20C3, WGL_VIDEO_OUT_ALPHA_NV ...
680