max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
402
package com.vaadin.flow.contexttest.ui; import org.junit.Assert; import org.openqa.selenium.By; public class RoutedSubContextIT extends AbstractContextIT { @Override protected String getAppContext() { return "/routed/sub-context/"; } @Override protected void verifyCorrectUI() { A...
144
1,014
""" The ``radio`` taxon groups applets implementing radio interfaces, that is, interfaces for intentional transmitters and receivers in radio-frequency spectrum. Examples: DAC with a radio frontend, GFSK PHY. Counterexamples: VGA output (use taxon ``video``). """
70
460
<gh_stars>100-1000 package org.flhy.webapp.utils; import org.apache.batik.bridge.BridgeContext; import org.apache.batik.bridge.DocumentLoader; import org.apache.batik.bridge.GVTBuilder; import org.apache.batik.bridge.UserAgentAdapter; import org.apache.batik.dom.svg.SAXSVGDocumentFactory; import org.apache.batik.gvt.G...
3,379
1,723
<reponame>BernardXiong/wasm-micro-runtime /* * Copyright (C) 2019 Intel Corporation. All rights reserved. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ #ifndef CONN_LINUX_TCP_H_ #define CONN_LINUX_TCP_H_ #include "bh_platform.h" #ifdef __cplusplus extern "C" { #endif int tcp_open(char *address, u...
190
1,056
<filename>java/java.editor/test/qa-functional/data/CC15Tests/src/arraystest/Test.java<gh_stars>1000+ package arraystest; public class Test { String[] testArray; String oneString; public static void main(String[] args) { } private void doSomething(){ Runnable runner = new Run...
261
406
<reponame>cloudcomputingabc/volttron # -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2020, Battelle Memorial Institute. # # 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 ...
2,805
607
/* * This file is a part of the open source stm32plus library. * Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk> * Please see website for licensing terms. */ #pragma once namespace stm32plus { /** * Base feature class to enable polling communication in master mode. This class manages * th...
574
14,668
<reponame>zealoussnow/chromium // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/cast/message_port/cast_core/message_port_core_with_task_runner.h" #include "base/bind.h" #include "ba...
1,461
14,668
<reponame>zealoussnow/chromium<filename>chrome/test/data/extensions/api_test/extension_action/action_persistence/manifest.json { "name": "Action persistence check", "version": "0.1", "manifest_version": 3, "background": { "service_worker": "worker.js" }, "action": { "default_popup": "default_popup.html", ...
143
407
package com.alibaba.tesla.server.common.factory; import com.alibaba.tesla.server.common.constant.AispResult; /** * @ClassName: AispResponseUtil * @Author: dyj * @DATE: 2021-11-25 * @Description: **/ public class AispResponseFactory { public static AispResult buildSuccessResult(){ return new AispResul...
313
3,657
<filename>processor/src/test/java/com/bluelinelabs/logansquare/processor/model/SimpleExtendedModel.java package com.bluelinelabs.logansquare.processor.model; import com.bluelinelabs.logansquare.annotation.JsonField; import com.bluelinelabs.logansquare.annotation.JsonObject; @JsonObject public class SimpleExtendedMode...
136
1,835
# This configuration file allows to define the layers that constitute each # of the neural network models used by our MLP, RNN and LSTM models. # The first layer is the input layer, meaning that to it we add the input shape expected. # Note that we can still add the number of neurons on the first layer. # The last laye...
1,061
679
<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF license...
1,658
3,083
<reponame>myArea51/binnavi /* Copyright 2014 Google 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 by appl...
3,226
892
<filename>advisories/unreviewed/2022/01/GHSA-gfrv-96fc-6fhx/GHSA-gfrv-96fc-6fhx.json { "schema_version": "1.2.0", "id": "GHSA-gfrv-96fc-6fhx", "modified": "2022-01-22T00:02:20Z", "published": "2022-01-14T00:01:54Z", "aliases": [ "CVE-2022-22988" ], "details": "File and directory permissions have been ...
397
702
/** * Licensed to Apereo under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Apereo licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in ...
1,455
713
ConfigurationBuilder builder = new ConfigurationBuilder(); builder.persistence() .connectionPool() .connectionUrl("jdbc:h2:mem:infinispan_string_based;DB_CLOSE_DELAY=-1") .username("sa") .driverClass("org.h2.Driver");
100
1,822
<reponame>km2411/java-8-lambdas-exercises package com.insightfullogic.java8.examples.chapter8.template_method; import com.insightfullogic.java8.examples.chapter8.template_method.traditional.CompanyLoanApplication; import com.insightfullogic.java8.examples.chapter8.template_method.traditional.EmployeeLoanApplication; i...
236
2,143
<filename>archunit/src/test/java/com/tngtech/archunit/library/dependencies/testexamples/cyclewithunbalanceddependencies/thirtydependencies/ThirtyDependencies.java package com.tngtech.archunit.library.dependencies.testexamples.cyclewithunbalanceddependencies.thirtydependencies; import com.tngtech.archunit.library.depen...
460
411
import numpy as np from tick.linear_model import ModelLogReg ,SimuLogReg from tick.simulation import weights_sparse_gauss from tick.solver import GD, AGD, SGD, SVRG, SDCA from tick.prox import ProxElasticNet, ProxL1 from tick.plot import plot_history n_samples, n_features, = 5000, 50 weights0 = weights_sparse_gauss(n_...
513
1,587
package classes.test; class MissingInterface implements Nothing { public MissingInterface() {}; } // Delete my class file! interface Nothing { }
35
2,151
<reponame>chlorm-forks/gyp # Copyright (c) 2014 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'make_global_settings': [ ['CC', '/usr/bin/clang'], ['CXX', '/usr/bin/clang++'], ], 'targets': [ { 'target_nam...
1,409
311
/* * Copyright (c) 2009-2019, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this list of conditions an...
1,408
8,027
#include "bar.h" int main() { return bar(); }
21
15,577
#define _GNU_SOURCE #include <stdio.h> #include <stdarg.h> #include <stdlib.h> int vasprintf(char **s, const char *fmt, va_list ap) { va_list ap2; va_copy(ap2, ap); int l = vsnprintf(0, 0, fmt, ap2); va_end(ap2); if (l<0 || !(*s=malloc(l+1U))) return -1; return vsnprintf(*s, l+1U, fmt, ap); }
148
310
{ "name": "Sundered", "description": "A Metroidvania game.", "url": "https://thunderlotusgames.com/sundered/" }
45
2,133
#ifndef AIRMAP_QT_LOGGER_H_ #define AIRMAP_QT_LOGGER_H_ #include <airmap/logger.h> #include <airmap/visibility.h> #include <QLoggingCategory> #include <memory> namespace airmap { namespace services { /// Logger is an airmap::Logger implementation that uses to /// Qt's logging facilities. class AIRMAP_EXPORT Logger...
515
312
<filename>3rd_party/occa/src/occa/internal/lang/statement/elseStatement.cpp #include <occa/internal/lang/statement/elseStatement.hpp> namespace occa { namespace lang { elseStatement::elseStatement(blockStatement *up_, token_t *source_) : blockStatement(up_, source_) {} ...
404
1,609
package com.mossle.report.persistence.domain; // Generated by Hibernate Tools import java.util.HashSet; import java.util.Set; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence...
1,710
2,399
// // SJPageViewControllerItemCell.h // SJPageViewController_Example // // Created by BlueDancer on 2020/1/10. // Copyright © 2020 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface SJPageViewControllerItemCell : UICollectionViewCell @property (nonatomic, weak, nullable) _...
134
2,260
<reponame>tiancode/GamePlay #ifndef INPUTSAMPLE_H_ #define INPUTSAMPLE_H_ #include "gameplay.h" #include "Sample.h" using namespace gameplay; /** * Samples basic input for keyboard, mouse, touch and accelerometer. */ class InputSample : public Sample, Control::Listener { public: InputSample(); void touch...
577
346
<reponame>dbaaha/Kernels<gh_stars>100-1000 /// /// Copyright (c) 2013, Intel Corporation /// Copyright (c) 2021, NVIDIA /// /// 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 ...
3,057
6,156
/* * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #im...
191
650
/* * Copyright 2017-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...
584
335
<filename>S/Strict_adjective.json<gh_stars>100-1000 { "word": "Strict", "definitions": [ "Demanding that rules concerning behaviour are obeyed and observed.", "(of a rule or discipline) demanding total obedience or observance; rigidly enforced.", "(of a person) following rules or beliefs...
158
2,151
<filename>vpx_dsp/arm/vpx_convolve8_neon.c /* * Copyright (c) 2014 The WebM 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 property rights grant can be foun...
22,438
592
<filename>source/xcode/Frameworks/SDL_image.framework/Versions/A/Frameworks/webp.framework/Versions/A/Headers/webp/mux.h // Copyright 2011 Google Inc. // // This code is licensed under the same terms as WebM: // Software License Agreement: http://www.webmproject.org/license/software/ // Additional IP Rights Grant: ...
8,812
589
package rocks.inspectit.shared.cs.storage.recording; /** * Enum that describes three state recording can be in. * * @author <NAME> */ public enum RecordingState { /** * Recording is scheduled. */ SCHEDULED, /** * Recording is active. */ ON, /** * Recording is not active. */ OFF; }
107
568
<gh_stars>100-1000 // // HockeyDemoSettingsViewController.h // larsdemo // // Created by <NAME> on 8/22/10. // Copyright 2010 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface HockeyDemoSettingsViewController : UITableViewController { } @end
99
443
<reponame>vault-the/changes<gh_stars>100-1000 from __future__ import absolute_import, division import os from changes.constants import PROJECT_ROOT def enforce_is_subdir(path, root=PROJECT_ROOT): """ Ensure that a particular path is within a subdirectory of changes. Prevents directory traversal attacks ...
146
971
package com.ucar.datalink.common.utils; import org.junit.Test; import static org.junit.Assert.*; import static com.ucar.datalink.common.utils.StrUtil.*; public class StrUtilTest { @Test public void testStringify() { assertEquals("1B", stringify(1)); assertEquals("1.00KB", stringify(1024)); ...
338
849
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the terms found in...
2,879
505
/** ****************************************************************************** * File Name : main.c * Description : Main program body ****************************************************************************** * * Copyright (c) 2017 STMicroelectronics International N.V. * Al...
8,570
4,267
/* Copyright 2010 <NAME> This file is part of the SSH Library You are free to copy this file, modify it in any way, consider it being public domain. This does not apply to the rest of the library though, but it is allowed to cut-and-paste working code from this file to any license of program. */ /* This file demonst...
351
5,169
<reponame>Gantios/Specs { "name": "FrameWork1", "version": "1.0.0", "summary": "A three-ring control like the Activity status bars", "description": "The three-ring is a completely customizable widget that can be used in any iOS app. It also plays a little victory fanfare.", "homepage": "http://raywenderlich.c...
297
1,269
<filename>forms/src/main/java/com/itextpdf/forms/xfdf/XfdfObject.java /* This file is part of the iText (R) project. Copyright (c) 1998-2021 iText Group NV Authors: iText Software. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Publ...
2,595
513
""" Baseline simple RNN cells such as the vanilla RNN and GRU. """ import torch import torch.nn as nn import torch.nn.functional as F from src.models.nn import LinearActivation, Activation # , get_initializer from src.models.nn.gate import Gate from src.models.nn.orthogonal import OrthogonalLinear from src.models.seq...
2,754
1,738
from __future__ import print_function import copy import itertools import operator import sys import warnings import numpy as np import numba.unittest_support as unittest from numba.compiler import compile_isolated, Flags from numba import jit, types, typeinfer, utils, errors from numba.config import PYVERSION from ...
25,383
314
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "CDStructures.h" @interface NSThread (DVTObjectAllocationTracking) + (id)countedSetOfObjectAllocationDescriptionsOnCurrentThreadWhileInvokingBlock:(dispatch_block_t)arg1; + (void...
174
380
<reponame>tanisha-bhadani/hacktoberfest2021-1 /** * Author: <NAME> * Date: 25 July 2021 (Sunday) */ import java.util.*; public class MaxCircularSum{ public static void main(String args[]){ Solution s = new Solution(); int arr[] = {8,-4,3,-5,4}; System.out.println(s.circularSubarraySum(arr,arr.length));...
993
304
import pytest from panel.io import state @pytest.fixture(autouse=True) def server_cleanup(): """ Clean up after test fails """ try: yield finally: state.kill_all_servers() state._indicators.clear() state._locations.clear() state._curdoc = None state...
149
1,585
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee Resea...
1,756
688
<filename>Java/libraries/recognizers-text-datatypes-timex-expression/src/main/java/com/microsoft/recognizers/datatypes/timex/expression/TimexUnit.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.microsoft.recognizers.datatypes.timex.expression; public en...
268
1,280
<reponame>timgates42/pymux #!/usr/bin/env python """ pymux: Pure Python terminal multiplexer. Usage: pymux [(standalone|start-server|attach)] [-d] [--truecolor] [--ansicolor] [(-S <socket>)] [(-f <file>)] [(--log <logfile>)] [--] [<command>] pymux list-sessions pymux -h | --hel...
2,272
343
<gh_stars>100-1000 /* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse...
1,729
834
<filename>snippets/cpp/VS_Snippets_Winforms/TreeViewDragDrop/CPP/treeviewdragdrop.cpp //<Snippet1> #using <System.dll> #using <System.Windows.Forms.dll> #using <System.Drawing.dll> using namespace System; using namespace System::Drawing; using namespace System::Windows::Forms; public ref class Form1: public Form { p...
2,063
14,668
<reponame>zealoussnow/chromium // 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. #include "chrome/browser/ui/media_router/cast_dialog_model.h" namespace media_router { CastDialogModel::CastDialogModel()...
232
3,372
/* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
20,763
5,169
<gh_stars>1000+ { "name": "VRPlus", "version": "1.0.0", "summary": "A framework for easy VR integration in iOS applciations.", "homepage": "http://example.com/", "authors": { "Name": "<EMAIL>" }, "license": { "type": "MIT", "file": "LICENSE" }, "platforms": { "ios": "10.2" }, "sour...
207
407
package com.alibaba.tesla.appmanager.server.repository.mapper; import com.alibaba.tesla.appmanager.server.repository.domain.ComponentPackageTaskDO; import com.alibaba.tesla.appmanager.server.repository.domain.ComponentPackageTaskDOExample; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotatio...
258
3,308
# Copyright (C) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, check out LICENSE.md import warnings from types import SimpleNamespace import torch from torch import nn from torch.nn import Upsample a...
9,921
10,225
package io.quarkus.resteasy.test.files; import static org.hamcrest.CoreMatchers.containsString; import java.io.File; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Locale; import java.util.TimeZone; import java...
1,752
1,031
<filename>cacreader/swig-4.0.2/Examples/guile/port/example.c #include <stdio.h> #include <errno.h> void print_int(FILE *f, int i) { if (fprintf(f, "%d\n", i)<0) perror("print_int"); } int read_int(FILE *f) { int i; if (fscanf(f, "%d", &i)!=1) { fprintf(stderr, "read_int: error reading from file\n"); ...
175
429
/* * Copyright (c) 2009-2017, <NAME>. All Rights Reserved. * * This file is part of Efficient Java Matrix Library (EJML). * * 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:/...
971
2,690
<filename>flocker/common/test/test_filepath.py # Copyright ClusterHQ Inc. See LICENSE file for details. """ Tests for :py:class:`~twisted.python.FilePath` helpers. """ import errno import stat from hypothesis import given from hypothesis.strategies import binary from testtools.matchers import Equals from twisted.py...
1,915
454
<gh_stars>100-1000 package com.zfy.social.qq; import android.app.Activity; import android.content.Context; import android.content.Intent; import com.tencent.connect.UserInfo; import com.tencent.tauth.IUiListener; import com.tencent.tauth.Tencent; import com.tencent.tauth.UiError; import com.zfy.social.core.common.Tar...
2,587
374
<reponame>RonRahaman/nekRS /****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) ***********...
269
9,734
<filename>cpp/src/arrow/csv/invalid_row.h // 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 Licens...
522
347
<filename>backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetFenceAgentByIdQuery.java<gh_stars>100-1000 package org.ovirt.engine.core.bll; import javax.inject.Inject; import org.ovirt.engine.core.bll.context.EngineContext; import org.ovirt.engine.core.common.queries.IdQueryParameters; import org.o...
281
1,799
// 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...
908
1,006
/**************************************************************************** * arch/arm/src/samd2l2/hardware/samd_ac.h * * 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 cop...
4,326
373
/** @file @copyright Copyright 2016 - 2021 Intel Corporation. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ // // This defines the maximum number of threads supported by some modules. // It is generally better to use a dynamic solution. // This is also defined by build tools for some special...
170
1,629
{"username":"alice","webId":"https://server/profile/card#me","name":"Alice","email":"<EMAIL>","externalWebId":"","hashedPassword":"<PASSWORD>"}
45
392
{ "name": "iotedge/discovery", "buildAlways": true, "iotedge": true, "exposes": [ 9700 ] }
49
1,444
package org.mage.card.arcane; import java.util.List; /** * Created by <EMAIL> on 2016-09-14. */ public class TextboxBasicManaRule extends TextboxRule { private final String basicManaSymbol; public TextboxBasicManaRule(String rule, List<AttributeRegion> regions, String basicManaSymbol) { super(rule,...
186
60,067
import unittest from functools import reduce import hypothesis.strategies as st from hypothesis import given, settings import numpy as np from caffe2.proto import caffe2_pb2 from caffe2.python import core, workspace import caffe2.python.hypothesis_test_util as hu import caffe2.python.ideep_test_util as mu @unitt...
6,795
4,487
<reponame>mihaly044/KDU #include "rtltypes.h" char *_strcpy_a(char *dest, const char *src) { char *p; if ( (dest==0) || (src==0) ) return dest; if (dest == src) return dest; p = dest; while ( *src!=0 ) { *p = *src; p++; src++; } *p = 0; return dest; } wchar_t *_strcpy_w(wchar_t *dest, const wch...
270
1,011
<filename>GUI/OpenGL/MiniGL.cpp<gh_stars>1000+ #include "MiniGL.h" #ifdef WIN32 #include "windows.h" #else #include <cstdio> #endif #include <glad/gl.h> #define GLFW_INCLUDE_NONE #include <GLFW/glfw3.h> #ifdef __APPLE__ #include <OpenGL/GL.h> #include <OpenGL/GLU.h> #else #include "GL/gl.h" #include "GL/glu.h" #end...
11,876
1,345
<filename>custom-interfaces/video-segmentation-beaverdam/mturk/migrations/0002_auto_20160814_1053.py # -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-14 17:53 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Mig...
740
14,668
<reponame>chromium/chromium // 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. #ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_SWITCHES_H_ #define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_SWITCHES_H_ namespace...
316
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 ...
818
357
/* * Copyright © 2018 VMware, 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 by applicable l...
4,789
7,407
<gh_stars>1000+ /* =========================================================================== Copyright (C) 1999-2005 Id Software, Inc. This file is part of Quake III Arena source code. Quake III Arena source code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Li...
8,456
826
<filename>include/slg/cameras/stereo.h /*************************************************************************** * Copyright 1998-2020 by authors (see AUTHORS.txt) * * * * This file is part of LuxCoreRender. ...
1,287
14,425
<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 *...
6,328
507
#include <thread> #include <mutex> #include <chrono> #include <set> #include <map> #include <condition_variable> #include <catch.hpp> #include "cppkafka/utils/buffered_producer.h" #include "cppkafka/consumer.h" #include "cppkafka/utils/compacted_topic_processor.h" #include "test_utils.h" using std::string; using std::...
1,643
506
<filename>segmentation/evaluation/__init__.py from .semantic import SemanticEvaluator from .instance import CityscapesInstanceEvaluator from .panoptic import CityscapesPanopticEvaluator from .coco_instance import COCOInstanceEvaluator from .coco_panoptic import COCOPanopticEvaluator
94
391
package com.sparrowwallet.sparrow.transaction; import com.google.common.eventbus.Subscribe; import com.sparrowwallet.drongo.KeyDerivation; import com.sparrowwallet.drongo.address.Address; import com.sparrowwallet.drongo.crypto.ECKey; import com.sparrowwallet.drongo.protocol.*; import com.sparrowwallet.drongo.psbt.PSBT...
9,869
831
/* * Copyright (C) 2017 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...
812
4,816
<filename>include/retdec/llvmir2hll/obtainer/call_info_obtainers/optim_call_info_obtainer.h<gh_stars>1000+ /** * @file include/retdec/llvmir2hll/obtainer/call_info_obtainers/optim_call_info_obtainer.h * @brief Obtainer of information about functions and function calls that * assumes it has access to complete inf...
1,897
383
import numpy as np import gym from lagom.transform import RunningMeanVar class NormalizeObservation(gym.ObservationWrapper): def __init__(self, env, clip=5., constant_moments=None): super().__init__(env) self.clip = clip self.constant_moments = constant_moments self.eps = 1e-8 ...
439
916
#ifndef PYKALDI_NNET3_NNET_CHAIN_EXAMPLE_EXT_H_ #define PYKALDI_NNET3_NNET_CHAIN_EXAMPLE_EXT_H_ 1 #include "nnet3/nnet-chain-example.h" namespace kaldi { namespace nnet3 { void MergeChainExamplesExt(bool compress, std::vector<NnetChainExample> &&input, Nnet...
241
392
<gh_stars>100-1000 // // WYLineChartCoordinateView.h // WYChart // // Created by yingwang on 16/8/6. // Copyright © 2016年 yingwang. All rights reserved. // #import <UIKit/UIKit.h> @class WYLineChartView; @interface WYLineChartCoordinateView : UIView @property (nonatomic, weak) WYLineChartView *parentView; @end ...
175
788
/* * 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 ...
745
910
package com.github.megatronking.svg.sample; public class SampleData { public String title; public String page; public SampleData(String title, String page) { this.title = title; this.page = page; } @Override public String toString() { return title; ...
140
724
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
1,747
1,511
/* * WPA Supplicant - wired Ethernet driver interface * Copyright (c) 2005-2007, <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify
49
23,439
/* * Copyright 1999-2021 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
772
1,062
// // Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> #import "NSCopying-Protocol.h" @class Conversation, ECAngleBracketIDHash, MCMessage, MCMessageHeaders, MUIWebDocument, NSArray, NSDate, NSIndexSet, NSMut...
3,831
1,374
package source.doc; import static jsweet.util.Lang.$export; import static jsweet.util.Lang.array; import static jsweet.util.Lang.string; import java.util.function.BiFunction; enum MyEnum { A, B, C } class C1 { int n; { n = 4; } } class C2 { static int n; static { n = 4; } } public class LanguageSpeci...
896