max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
339
<reponame>glipR/pygame_gui<gh_stars>100-1000 import pygame from tests.shared_fixtures import _init_pygame, default_ui_manager, default_display_surface, \ _display_surface_return_none from pygame_gui.core.drawable_shapes.rect_drawable_shape import RectDrawableShape from pygame_gui.ui_manager import UIManager cla...
4,568
698
"""Graph execution time for serial, threaded and processes forms of Pi estimation with lists""" import numpy as np import matplotlib.pyplot as plt # timings generated using # pi_lists_parallel speeds = np.array([[110.0], [118.0, 144.0, 149.0, 150.0], [110.0, 55.0, 28.0, 27.0]]) ...
530
363
<reponame>ajisaka/ai-research-keyphrase-extraction # Copyright (c) 2017-present, Swisscom (Schweiz) AG. # All rights reserved. # #Authors: <NAME>, <NAME> """Module containing helper function to process results of a solr query""" def process_tagged_text(s): """ Return a tagged_text as a list of sentence where...
397
794
# coding=utf-8 # Copyright 2021 The Uncertainty Baselines 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 by ap...
3,060
831
<gh_stars>100-1000 /* * Copyright (C) 2015 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 * * Unl...
885
645
<reponame>AlexShypula/stoke // Copyright 2013-2016 Stanford University // // 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 requ...
843
841
/* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
1,666
2,360
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyHaphpipe(PythonPackage): """HAplotype and PHylodynamics pipeline for viral assembly, ...
901
1,097
<reponame>EnisBerk/jupyterlab-git import pytest from unittest.mock import patch from jupyterlab_git.git import execute, execution_lock @pytest.mark.asyncio async def test_execute_waits_on_index_lock(tmp_path): lock_file = tmp_path / ".git/index.lock" lock_file.parent.mkdir(parents=True, exist_ok=True) lo...
385
892
{ "schema_version": "1.2.0", "id": "GHSA-p98c-wc65-vxfg", "modified": "2022-05-13T01:18:36Z", "published": "2022-05-13T01:18:36Z", "aliases": [ "CVE-2018-0919" ], "details": "Microsoft Office 2010 SP2, 2013 SP1, and 2016, Microsoft Office 2016 Click-to-Run Microsoft Office 2016 for Mac, Microsoft Offi...
595
590
<reponame>lmj0591/mygui<filename>Platforms/Ogre/OgrePlatform/src/MyGUI_OgreVertexBuffer.cpp<gh_stars>100-1000 /*! @file @author <NAME> @date 04/2009 */ #include "MyGUI_OgreVertexBuffer.h" #include <OgreHardwareBufferManager.h> namespace MyGUI { const size_t VERTEX_BUFFER_REALLOCK_STEP = 5 * VertexQuad::Vertex...
968
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.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.j...
1,892
369
<reponame>bitigchi/MuditaOS // Copyright (c) 2017-2021, Mudita <NAME>.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include <hal/cellular/SIM.hpp> #include <vector> namespace cellular { namespace service { constexpr const char *name = "Se...
400
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 ...
1,748
1,338
#ifndef DRAWING_ENGINE_H #define DRAWING_ENGINE_H #include <GraphicsDefs.h> #include <Region.h> class AccelerantHWInterface; class DirectWindowBuffer; class DrawingEngine { public: DrawingEngine(AccelerantHWInterface* interface, DirectWindowBuffer* buffer); virtual ~DrawingEngine(); ...
402
1,338
<gh_stars>1000+ /* * Copyright 2009, <NAME>. * Copyright 2008, <NAME> <<EMAIL>>. * Copyright 2005-2014, <NAME> <<EMAIL>>. * Copyright 2015, <NAME> <<EMAIL>> * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef DRAW_BITMAP_NEAREST_NEIGHBOR_H #define DRAW_BITMAP_NEAREST_NEIGHBOR_H #inc...
1,845
4,569
package com.brianway.learning.java.multithread.supplement.example2; /** * Created by Brian on 2016/4/17. */ /** * 取消System.out.println的注释能看到更多细节 */ public class MyThread extends Thread { private Object lock; private String showChar; private int showNumPosition; private int printCount = 0;//统计打印了几个...
881
347
<reponame>jihwahn1018/ovirt-engine<filename>frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/popup/vm/HostDeviceColumnHelper.java package org.ovirt.engine.ui.webadmin.section.main.view.popup.vm; import java.util.List; import org.ovirt.engine.core.compat.StringHelper; imp...
472
488
<reponame>ouankou/rose #ifndef OCTAVE_ANALYSIS_BOTTOMUPTYPEANALYSIS_H #define OCTAVE_ANALYSIS_BOTTOMUPTYPEANALYSIS_H #include <string> #include <map> #include <utility> #include "rose.h" #include "FastNumericsRoseSupport.h" namespace MatlabAnalysis { typedef FastNumericsRoseSupport::MatlabFunctionRec MatlabFun...
403
7,158
<reponame>ptelang/opencv_contrib // This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. #include "opencv2/datasets/sr_general100.hpp" #include <opencv2/core.hpp> #include <cstdio...
575
578
/* * Copyright (C) 2016 Red Hat, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
1,829
1,056
#include "../../includes.hpp" #include "hooks.hpp" Hooks::Events::EventListener::EventListener() { Interfaces::eventManager->AddListener(this, "player_hurt", false); Interfaces::eventManager->AddListener(this, "player_death", false); Interfaces::eventManager->AddListener(this, "bullet_impact", false); } H...
1,621
2,338
#include <chrono> #include <thread> void f3() { int m; m = 2; // thread 3 } void f2() { int n; n = 1; // thread 2 std::thread t3(f3); t3.join(); } int main() { // main std::thread t2(f2); t2.join(); return 0; }
110
5,169
{ "name": "HashBuilder", "version": "1.0", "summary": "A utility to generate a hash for NSObject subclasses.", "description": "\t\tUsed to build a hash result from contributed objects or hashes (presumably\n\t\tproperties on your object which should be considered in the isEqual: override).\n\t\tThe intention is...
294
3,372
<gh_stars>1000+ /* * 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 * * ...
2,705
369
<reponame>bitigchi/MuditaOS // Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include "Alignment.hpp" // for Alignment #include "Axes.hpp" // for Axis #include <module-gui/gui/Common.hpp> #include "Layout.hpp" ...
7,244
1,144
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2015 <NAME> <<EMAIL>> * * Copyright (c) 2011 The Chromium OS Authors. * (C) Copyright 2002-2006 * <NAME>, DENX Software Engineering, <EMAIL>. * * (C) Copyright 2002 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> * <NAME> <<EMAIL>> */ #include <common...
240
348
<gh_stars>100-1000 {"nom":"Saint-Célerin","circ":"2ème circonscription","dpt":"Sarthe","inscrits":543,"abs":340,"votants":203,"blancs":13,"nuls":5,"exp":185,"res":[{"nuance":"SOC","nom":"<NAME>","voix":98},{"nuance":"REM","nom":"<NAME>","voix":87}]}
103
5,169
<reponame>Gantios/Specs { "name": "ARPopMenu", "platforms": { "ios": "9.0" }, "summary": "ARPopMenu lets a user to create Menu popup.", "version": "1.1", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "Anshu": "<EMAIL>" }, "homepage": "https://github.com/RoyAnshu/ARPop...
224
575
<gh_stars>100-1000 #!/usr/bin/env python # 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. import js_checker import json import os import sys import unittest import tempfile _HERE_PATH = os.path.dirname(__...
704
3,013
# Graphics / Clock # Use the #graphics API to make a clock. # Source: https://codepen.io/dudleystorey/pen/HLBki # --- import time import datetime from h2o_wave import site, ui, graphics as g page = site['/demo'] page['example'] = ui.graphics_card( box='1 1 2 3', view_box='0 0 100 100', width='100%', height='100%',...
498
506
<gh_stars>100-1000 // https://open.kattis.com/problems/periodicstrings #include <bits/stdc++.h> using namespace std; int main() { cin.tie(0), ios::sync_with_stdio(0); string s; cin >> s; for (int i = 1; i <= s.size(); i++) if (s.size() % i == 0) { bool ok = 1; string t = s.substr(0, i); ...
366
4,893
<reponame>duchce/TensorFlow import tensorflow as tf import numpy as np class SOM: def __init__(self, width, height, dim): self.num_iters = 100 self.width = width self.height = height self.dim = dim self.node_locs = self.get_locs() # Each node is a vector of dimensio...
1,387
335
{ "word": "Mother", "definitions": [ "A woman in relation to her child or children.", "A female animal in relation to its offspring.", "(especially as a form of address) an elderly woman.", "Denoting an institution or organization from which others of the same type derive.", ...
149
631
#/bin/python import sys print("Fixing wasm client, file: ", sys.argv[1], " output: ") t_poll = "function ___syscall_poll" t_proxy = "if (ENVIRONMENT_IS_PTHREAD)" t_ret = "return" t_end = ");" # read all input with open(sys.argv[1], 'r') as original: text = original.read() # find function sys_poll ipoll = t...
463
344
/* * 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 applic...
1,406
330
<gh_stars>100-1000 /* atom-ui.c UI implementation for atom.c */ #include "chips/m6502.h" #include "chips/mc6847.h" #include "chips/i8255.h" #include "chips/m6522.h" #include "chips/beeper.h" #include "chips/clk.h" #include "chips/kbd.h" #include "chips/mem.h" #include "systems/atom.h" #define UI_DASM_USE_M6502 ...
383
746
package org.protege.editor.owl.model.util; import org.semanticweb.owlapi.model.*; import javax.annotation.Nonnull; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import static com.google.common.base.Preconditions.checkNotNull; /** * <NAME> * Stanford Center for ...
1,282
701
<gh_stars>100-1000 func = None def check(_object, name, types): for _type in types: if _type is None: _type = type(None) if _type is func and callable(_object): return try: if _type.__name__ == "View" and _type.__module__ == "pyto_ui": ...
328
2,151
<reponame>zipated/src<gh_stars>1000+ // 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 CONTENT_BROWSER_WEBUI_NETWORK_ERROR_URL_LOADER_H_ #define CONTENT_BROWSER_WEBUI_NETWORK_ERROR_URL_LOADER_H_ ...
260
2,725
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.java.decompiler.struct.consts; import org.jetbrains.java.decompiler.code.CodeConstants; public class PooledConstant implements CodeConstants { public fin...
140
348
/* * Copyright (C) 2015 <NAME>, <EMAIL> * * 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/LICENSE2.0 * * Unless required by applicable law or ag...
720
3,553
<reponame>areese/fluent-bit #include <stdlib.h> #include <fluent-bit/flb_time.h> #include <fluent-bit/flb_parser.h> #include <fluent-bit/flb_info.h> #include <fluent-bit/flb_mem.h> #include <fluent-bit/flb_error.h> #include <fluent-bit/flb_socket.h> #include <fluent-bit/flb_http_client.h> #include "flb_fuzz_header.h" ...
1,446
12,278
<filename>ReactNativeFrontend/ios/Pods/boost/boost/flyweight/tracking_tag.hpp /* Copyright 2006-2008 <NAME>. * 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://www.boost.org/libs/flyweight for libra...
421
6,036
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "core/providers/cpu/math/hardmax.h" #include "core/providers/common.h" #include "core/util/math_cpuonly.h" #include "core/util/math.h" #include "core/providers/cpu/tensor/transpose.h" namespace onnxruntime { temp...
1,987
2,333
// // Licensed under the terms in License.txt // // Copyright 2010 <NAME>. All rights reserved. // #import "KiwiConfiguration.h" #import "KWMatcher.h" @interface KWBeEmptyMatcher : KWMatcher #pragma mark - Configuring Matchers - (void)beEmpty; @end
90
1,118
import logging import os import platform import sys import warnings from time import time import psutil from pathlib2 import Path from typing import Text from .process.mp import BackgroundMonitor from ..backend_api import Session from ..binding.frameworks.tensorflow_bind import IsTensorboardInit try: from .gpu i...
7,894
339
package com.github.vbauer.jackdaw.annotation; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * * <p>Java annotation processors and other systems use ServiceLo...
356
849
<gh_stars>100-1000 """ Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, W...
2,532
14,668
<filename>testing/libfuzzer/fuzzers/mach/mach_message_converter.h<gh_stars>1000+ // Copyright 2019 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 TESTING_LIBFUZZER_FUZZERS_MACH_MACH_MESSAGE_CONVERTER_H_ #define ...
713
352
package helloworld.behavioral.template_method; /** * @author <EMAIL> */ public class TemplateMethodHelloWorld extends AbstractHelloWorld{ @Override public String getInterjection() { return "Hello"; } @Override public String getSeparator() { return " "; } @Override pu...
177
2,360
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyOsloUtils(PythonPackage): """ The oslo.utils library provides support for common uti...
563
404
import os import ycm_core import ntpath flags = [ '-DNANOPRINTF_IMPLEMENTATION', '-DNANOPRINTF_USE_FIELD_WIDTH_FORMAT_SPECIFIERS=1', '-DNANOPRINTF_USE_PRECISION_FORMAT_SPECIFIERS=1', '-DNANOPRINTF_USE_FLOAT_FORMAT_SPECIFIERS=1', '-DNANOPRINTF_USE_LARGE_FORMAT_SPECIFIERS=1', '-DNANOPRINTF_USE_WR...
913
72,551
<filename>include/swift/Remote/TypeInfoProvider.h<gh_stars>1000+ //===--- TypeInfoProvider.h - Abstract access to type info ------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2020 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 wi...
353
1,466
<gh_stars>1000+ /** * Copyright 2004-present, Facebook, Inc. * * <p>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 * * <p>http://www.apache.org/licenses/LICENSE-2.0 * * <p>Unless required ...
533
3,834
<filename>engine/runtime/src/main/java/org/enso/interpreter/node/expression/builtin/warning/GetReassignmentsNode.java package org.enso.interpreter.node.expression.builtin.warning; import com.oracle.truffle.api.TruffleLanguage; import com.oracle.truffle.api.nodes.Node; import org.enso.interpreter.dsl.BuiltinMethod; imp...
337
1,236
// The MIT License (MIT) // Copyright (c) 2016, Microsoft // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, mo...
2,223
2,577
/* * 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. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
3,320
476
<filename>tools/jsoncons/tests/src/cbor/cbor_parser_tests.cpp // Copyright 2016 <NAME> // Distributed under Boost license #ifdef __linux__ #define BOOST_TEST_DYN_LINK #endif #include <boost/test/unit_test.hpp> #include <jsoncons/json.hpp> #include <jsoncons_ext/cbor/cbor.hpp> #include <jsoncons_ext/cbor/cbor_parser.h...
3,194
496
/* * Copyright (C) <NAME> * * Based on nxt_diyfp.c from NGINX NJS project * * Copyright (C) <NAME> * Copyright (C) NGINX, Inc. * * An internal diy_fp implementation. * For details, see <NAME>. "Printing floating-point numbers quickly * and accurately with integers." ACM Sigplan Notices 45.6 (2010): 233-243. ...
3,606
312
#include "wfrest/BluePrint.h" using namespace wfrest; inline void set_admin_bp(BluePrint &bp) { bp.GET("/page/new/", [](const HttpReq *req, HttpResp *resp) { fprintf(stderr, "New page\n"); }); bp.GET("/page/edit/", [](const HttpReq *req, HttpResp *resp) { fprintf(stderr, "Edit pag...
163
670
#Import required libraries : import random import math import matplotlib.pyplot as plt #Main function to estimate PI value : def monte_carlo(runs,needles,n_length,b_width): #Empty list to store pi values : pi_values = [] #Horizontal line for actual value of PI : plt.axhline(y=math.pi, color='r', l...
745
769
/* * Copyright (c) Baidu Inc. All rights reserved. * * 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 t...
977
2,069
[{"Id":null,"OrganizationId":null,"ProjectId":null,"StackId":null,"IsFirstOccurrence":false,"IsFixed":false,"IsHidden":false,"CreatedUtc":"0001-01-01T00:00:00","Idx":{},"Type":"log","Source":"V2_EventUpgrade","Date":"2020-01-01T00:00:00-06:00","Tags":[],"Message":"Accusam commodo laoreet ut hendrerit veniam accusam vol...
390
646
<reponame>Amine-El-Ghaoual/griddb /* Copyright (c) 2017 TOSHIBA Digital Solutions Corporation This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your...
19,091
15,337
import re from collections import defaultdict from django.db import migrations def add_users_to_groups_based_on_users_permissions(apps, schema_editor): """Add every user to group with "user_permissions" if exists, else create new one. For each user, if the group with the exact scope of permissions exists, ...
957
313
<reponame>gridgentoo/titus-control-plane /* * Copyright 2018 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 * * Unle...
1,829
335
{ "word": "Misimpression", "definitions": [ "A wrong or faulty impression." ], "parts-of-speech": "Noun" }
59
12,718
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * Upcall description for nfsdcld communication * * Copyright (c) 2012 Red Hat, Inc. * Author(s): <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...
1,139
4,538
<gh_stars>1000+ /* * Copyright (C) 2015-2018 Alibaba Group Holding Limited */ #ifndef __WIFI_PROVISION_INTERNAL_H__ #define __WIFI_PROVISION_INTERNAL_H__ #include "linkkit/infra/infra_config.h" #include <string.h> #include <stdio.h> #include "aws_lib.h" #include "zconfig_lib.h" #include "zconfig_utils.h" #include "...
736
11,356
<filename>deps/aws-sdk-cpp-1.3.50/aws-cpp-sdk-core/source/utils/crypto/EncryptionMaterials.cpp /* * Copyright 2010-2017 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...
353
1,100
<reponame>WelsonAA/Intro-to-Java-Programming /********************************************************************************* * (Combine two lists) Write a method that returns the union of two array lists * * of integers using the following header: * * ...
958
3,600
package com.github.dreamhead.moco.verification; import static java.lang.String.format; public final class BetweenVerification extends AbstractTimesVerification { private final int min; private final int max; public BetweenVerification(final int min, final int max) { this.min = min; this.m...
197
1,144
package de.metas.ui.web.pickingV2.productsToPick.rows.factory; import java.util.Collection; import java.util.HashMap; import java.util.Map; import org.compiere.model.I_C_UOM; import com.google.common.collect.Maps; import de.metas.handlingunits.HuId; import de.metas.handlingunits.IHandlingUnitsBL; import de.metas.ha...
1,112
666
<reponame>Sairam954/bdl-benchmarks<gh_stars>100-1000 # Copyright 2019 BDL Benchmarks 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.or...
727
345
""" Copyright (c) 2016-2020 <NAME> http://www.keithsterling.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
1,487
6,989
// Copyright (c) Facebook Inc. and Microsoft Corporation. // Licensed under the MIT license. #pragma once #include "onnx/onnx_pb.h" #ifdef ONNX_ML #include <contrib/libs/onnx/proto/onnx_operators_ml.pb.h> #else //#include <contrib/libs/onnx/proto/onnx_operators.pb.h> #error "Arcadia supports only ONNX_ML-enabled buil...
136
957
<reponame>emadurandal/Effekseer<gh_stars>100-1000 static const char metal_model_distortion_vs[] = R"(mtlcode #pragma clang diagnostic ignored "-Wmissing-prototypes" #include <metal_stdlib> #include <simd/simd.h> using namespace metal; struct VS_Input { float3 Pos; float3 Normal; float3 Binormal; floa...
1,553
679
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
12,951
844
{ "github-username": "somadattareddy", "favourite-emoji": "😃", "favourite-music": "https://soundcloud.com/user-218216676/dont-look-back-feat-kotomi-ryan-elderslowed-down", "favourite-color": "#808080" }
100
344
// Copyright 2012 Google Inc. All Rights Reserved. // Author: <EMAIL> (<NAME>) // Class to build AutoFDO profile. #ifndef AUTOFDO_PROFILE_WRITER_H_ #define AUTOFDO_PROFILE_WRITER_H_ #include <cstdint> #include "symbol_map.h" namespace devtools_crosstool_autofdo { class SymbolMap; class ProfileWriter { public: ...
1,910
1,442
<reponame>VersiraSec/epsilon-cfw #ifndef PROBABILITY_CALCULATION_CONTROLLER_H #define PROBABILITY_CALCULATION_CONTROLLER_H #include "distribution/distribution.h" #include "distribution_curve_view.h" #include "calculation_cell.h" #include "responder_image_cell.h" #include "calculation/calculation.h" #include "../shared...
955
11,010
package com.google.inject.servlet; import static org.easymock.EasyMock.createMock; import static org.easymock.EasyMock.expect; import static org.easymock.EasyMock.replay; import static org.easymock.EasyMock.verify; import com.google.inject.Guice; import com.google.inject.Injector; import com.google.inject.Key; import...
1,310
407
<filename>saas/dataops/api/metric-flink/metric-alarm/src/main/java/com/elasticsearch/cloud/monitor/metric/alarm/blink/utils/cache/RuleConditionTsdbCache.java package com.elasticsearch.cloud.monitor.metric.alarm.blink.utils.cache; import com.elasticsearch.cloud.monitor.commons.core.PlottQueryClient; import com.elastics...
2,112
1,178
<gh_stars>1000+ # Copyright 2020 Makani Technologies LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
1,026
1,577
<reponame>hoaihuongbk/jvm-profiler<filename>src/main/java/com/uber/profiling/reporters/GraphiteOutputReporter.java package com.uber.profiling.reporters; import com.uber.profiling.Reporter; import com.uber.profiling.util.AgentLogger; import org.apache.commons.lang3.StringUtils; import java.io.IOException; import java....
3,154
1,253
<reponame>CarbonDDR/al-go-rithms<filename>operating_system/File-Organization/C/file.c /* * This is are the implementation of 3 File organization stratagies such as * Single level organization, two level organization, and Hierarichal file organization * This File is for the menu for the 3 types of stratagies/ */ ...
335
852
<filename>PhysicsTools/PatAlgos/plugins/PATPackedGenParticleProducer.cc #include <string> #include "DataFormats/Candidate/interface/Candidate.h" #include "DataFormats/HepMCCandidate/interface/GenParticle.h" #include "DataFormats/HepMCCandidate/interface/GenParticleFwd.h" #include "DataFormats/VertexReco/interface/Vert...
2,410
6,098
<filename>h2o-core/src/test/java/water/rapids/ast/prims/advmath/AstKFoldTest.java package water.rapids.ast.prims.advmath; import org.junit.After; import org.junit.BeforeClass; import org.junit.Test; import water.TestUtil; import water.fvec.Frame; import water.fvec.TestFrameBuilder; import water.fvec.Vec; import water....
667
585
/* * 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 ...
3,398
664
/* * Copyright 2013-2020 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...
493
695
<gh_stars>100-1000 package model.builders.entity.actors; import model.battlefield.actors.Actor; import model.battlefield.actors.SoundActor; import model.builders.entity.definitions.DefElement; import model.builders.entity.definitions.Definition; /** * @author Benoît */ public class SoundActorBuilder exten...
568
803
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // ================================================================ class DataBinding // ================================================================ // // A data binding specifies how a variable can be serialized. It // provides a colu...
3,643
3,428
<reponame>ghalimi/stdlib {"id":"01638","group":"easy-ham-1","checksum":{"type":"MD5","value":"1025c8d81a3ce398f65fb401537214fb"},"text":"Return-Path: barry@python.org\nDelivery-Date: Fri Sep 6 15:23:19 2002\nFrom: <EMAIL> (<NAME>)\nDate: Fri, 6 Sep 2002 10:23:19 -0400\nSubject: [Spambayes] test sets?\nReferences: <157...
401
480
<filename>polardbx-optimizer/src/main/java/com/alibaba/polardbx/optimizer/core/datatype/IntervalType.java<gh_stars>100-1000 /* * Copyright [2013-2021], Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
2,598
3,508
package com.fishercoder.solutions; public class _1134 { public static class Solution1 { public boolean isArmstrong(int N) { int numOfDigits = 0; int copyN = N; while (copyN > 0) { copyN /= 10; numOfDigits++; } int s...
336
2,151
<gh_stars>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. #include "third_party/blink/renderer/core/paint/paint_timing.h" #include <memory> #include <utility> #include "third_party/blink/public/...
3,924
335
{ "word": "Testament", "definitions": [ "A person's will, especially the part relating to personal property.", "Something that serves as a sign or evidence of a specified fact, event, or quality.", "(in biblical use) a covenant or dispensation.", "A division of the Bible.", ...
142
365
/******************************************************************************* * Copyright 2009-2016 <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.or...
994
852
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDHarvester import DQMEDHarvester rpcDCSSummary = DQMEDHarvester("RPCDCSSummary", NumberOfEndcapDisks = cms.untracked.int32(4), )
142