max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,753
<gh_stars>1000+ /* * This software is distributed under BSD 3-clause license (see LICENSE file). * * Authors: <NAME>, <NAME>, <NAME>, * <NAME> */ #include <gtest/gtest.h> #include <shogun/features/DenseFeatures.h> #include <shogun/features/CombinedFeatures.h> #include <shogun/mathematics/NormalDistributi...
1,390
739
<filename>test/poly.unsafe_get.cpp // Copyright <NAME> 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) #include "testing.hpp" #include <dyno/builtin.hpp> #include <dyno/poly.hpp> #include <string> using namespace dyn...
375
5,169
<reponame>Ray0218/Specs { "name": "Office365", "version": "0.10.0", "summary": "Client libraries for calling Office 365 service APIs from iOS apps.", "description": "\t\t Client libraries for calling Office 365 service APIs from iOS apps.\n\t\t These libraries are in preview.\n", "homepage": "http://githu...
968
2,350
<gh_stars>1000+ from .cheatsheet import paper_link, has_stats, get_stat, get_children __all__ = [ 'paper_link', 'has_stats', 'get_stat', 'get_children', ]
75
1,858
{ "Run": { "Path": "." }, "TestResult": { "Enabled": false, "OutputFormat": "NUnitXml", "OutputPath": "PesterTestResults.xml", "OutputEncoding": "UTF8" } }
84
348
{"nom":"Châtillon-sur-Chalaronne","circ":"4ème circonscription","dpt":"Ain","inscrits":3498,"abs":2056,"votants":1442,"blancs":108,"nuls":27,"exp":1307,"res":[{"nuance":"REM","nom":"<NAME>","voix":832},{"nuance":"FN","nom":"<NAME>","voix":475}]}
101
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 "components/offline_pages/core/downloads/offline_item_conversions.h" #include "base/strings/utf_string_conversions.h" #include "base/test/scoped...
1,838
1,227
<filename>app/src/main/java/javax/microedition/m3g/Interface.java /* * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" * which accompanies this distribution...
3,016
854
<reponame>rakhi2001/ecom7 __________________________________________________________________________________________________ sample 0 ms submission class Solution { public double soupServings(int N) { if (N > 4800) { return 1; } int servings = N % 25 == 0 ? N/25 : N/25+1...
779
14,668
<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. #include "components/language/core/language_model/baseline_language_model.h" #include <unordered_set> #include "base/feature_list.h" #in...
880
356
package com.cedarsoftware.util; import java.lang.reflect.Array; import java.util.Arrays; import java.util.Collection; import java.util.Iterator; /** * Handy utilities for working with Java arrays. * * @author <NAME> * @author <NAME> (<EMAIL>) * <br> * Copyright (c) Cedar Software LLC * ...
2,360
9,974
/* * Tencent is pleased to support the open source community by making * WCDB available. * * Copyright (C) 2017 THL A29 Limited, a Tencent company. * All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use * this file except in compliance with the License. You may obtai...
1,004
4,772
<gh_stars>1000+ package example.repo; import example.model.Customer1949; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer1949Repository extends CrudRepository<Customer1949, Long> { List<Customer1949> findByLastName(String lastName); }
95
990
<filename>04-text-byte/two_flags.py # REGIONAL INDICATOR SYMBOLS RIS_A = '\U0001F1E6' # LETTER A RIS_U = '\U0001F1FA' # LETTER U print(RIS_A + RIS_U) # AU: Australia print(RIS_U + RIS_A) # UA: Ukraine print(RIS_A + RIS_A) # AA: no such country
119
6,989
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef FADVISE_H_INCLUDED #define FADVISE_H_INCLUDED #define POSIX_FADV_NORMAL 0 /* No further special treatment. */ #define POSIX_FADV_RANDOM 1 /* Expect random page references. */ #define POSIX_FADV_SEQUENTIAL 2 /* Expect sequential page references. ...
327
5,168
/** * \file src/jit/impl/ast_c.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BAS...
4,344
988
<reponame>AlexeyMochalov/firebird /* * The contents of this file are subject to the Initial * Developer's Public License Version 1.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.ibphoenix.com/main.nfs?a=ibphoenix&pag...
1,130
335
<reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000 { "word": "Introduction", "definitions": [ "The action of introducing something.", "A thing newly brought into use or introduced to a place for the first time.", "A formal presentation of one person to another, in which each is told the...
238
13,653
from typing import List import struct class IncomingMessage: """ Utility class for reading the message written to a SideChannel. Values must be read in the order they were written. """ def __init__(self, buffer: bytes, offset: int = 0): """ Create a new IncomingMessage from the by...
1,327
3,428
<filename>lib/node_modules/@stdlib/datasets/spam-assassin/data/easy-ham-2/00451.4165f9a2baf204496f173bbd10ee49d3.json {"id":"00451","group":"easy-ham-2","checksum":{"type":"MD5","value":"4165f9a2baf204496f173bbd10ee49d3"},"text":"From <EMAIL> Mon Aug 19 11:51:55 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>.net...
1,043
302
#ifndef UTIL_H #define UTIL_H #endif // UTIL_H
25
717
<gh_stars>100-1000 #!/usr/bin/python2 # -*- coding: utf-8 -*- # $File: test-gmm.py # $Date: Fri Dec 27 01:42:37 2013 +0000 # $Author: <NAME> <zxytim[at]gmail[dot]com> import os import glob import config import datautil from gmm.python.pygmm import GMM #from gmmset import GMMSet from gmmset import GMMSetPyGMM as GMMS...
975
442
/* SoLoud audio engine Copyright (c) 2015 <NAME> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial app...
1,031
331
<reponame>Pranav174/DensePhrases import json import argparse import os import random import time import numpy as np from tqdm import tqdm def main(input_file, num_sample, balanced): print('reading', input_file) random.seed(999) np.random.seed(999) examples = json.load(open(input_file))['data'] p...
823
12,881
<reponame>Gopalbansal8106/python-machine-learning-book # <NAME>, 2015 # convenience function for myself to create nested TOC lists # use as `python md_toc.py /blank_tocs/ch01.toc` import sys ipynb = sys.argv[1] with open(ipynb, 'r') as f: for line in f: out_str = ' ' * (len(line) - len(line.lstrip())) ...
177
480
/* * 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. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
6,849
2,151
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MOJO_EDK_SYSTEM_PORTS_MESSAGE_FILTER_H_ #define MOJO_EDK_SYSTEM_PORTS_MESSAGE_FILTER_H_ namespace mojo { namespace edk { namespace ports { class...
256
427
package modern.challenge; import java.util.Arrays; public final class ResizableArray { private ResizableArray() { throw new AssertionError("Cannot be instantiated"); } public static int[] add(int[] arr, int item) { if (arr == null) { throw new IllegalArgumentException("The g...
1,249
852
<filename>CondFormats/DataRecord/src/HcalLUTCorrsRcd.cc // -*- C++ -*- // // Package: DataRecord // Class : HcalLUTCorrsRcd // // Implementation: // <Notes on implementation> // // Author: // Created: Sat Mar 1 15:49:28 CET 2008 // $Id: HcalLUTCorrsRcd.cc,v 1.1 2008/03/03 16:58:17 rofierzy Exp $ #inc...
211
457
<filename>c++/examples/ld/ld_more_config/src/main.cc /*! * \file main.cc * \brief Illustrates a variety of ways to configure the flash * parameters on the Sick LD device as well as how to set * the unit's clock. * * Code by <NAME> and <NAME>. * Contact derenick(at)lehigh(dot)edu * * The Sick LID...
1,153
4,050
<gh_stars>1000+ package azkaban.user; import static azkaban.user.Permission.Type.UPLOADPROJECTS; import static org.assertj.core.api.Assertions.assertThat; import azkaban.utils.TestUtils; import org.junit.Test; public class UserUtilsTest { @Test public void testAdminUserCanUploadProject() throws UserManagerExce...
383
311
<reponame>ProgPassion/the-c-programming-language-exercise-answers #include <stdio.h> int getline2(char s[]) { static int c; int i = 0; if (c == EOF) { return 0; } while((c = getchar()) != '\n' && c != EOF) { s[i++] = c; } if (c == '\n') { s[i++] = c; } s[i] = '\0'; return 1; }
160
590
<reponame>lmj0591/mygui<filename>Tools/EditorFramework/VerticalSelectorControl.cpp<gh_stars>100-1000 /*! @file @author <NAME> @date 08/2010 */ #include "Precompiled.h" #include "VerticalSelectorControl.h" namespace tools { void VerticalSelectorControl::OnInitialise(Control* _parent, MyGUI::Widget* _place, cons...
176
408
<filename>src/test/python/integration_test/training_test.py from pathlib import Path from typing import List, Optional import math import random import unittest from rlbot.matchconfig.conversions import read_match_config_from_file from rlbot.matchconfig.match_config import MatchConfig from rlbot.setup_manager import s...
3,698
11,548
package com.macro.mall.tiny.component; import cn.dev33.satoken.stp.StpInterface; import cn.hutool.core.convert.Convert; import com.macro.mall.tiny.domain.AdminUser; import com.macro.mall.tiny.service.UmsAdminService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.C...
376
6,098
<gh_stars>1000+ package water; import org.junit.BeforeClass; import org.junit.Test; import water.util.ArrayUtils; import water.util.Log; import java.lang.reflect.Array; import java.util.Arrays; import java.util.Random; import java.util.concurrent.atomic.AtomicInteger; import static org.junit.Assert.*; /** * Create...
2,154
629
<gh_stars>100-1000 // // File: ohdbiekfdjechlno_rows_differ.cpp // // Code generated for Simulink model 'sim_model_lib0'. // // Model version : 1.1142 // Simulink Coder version : 8.11 (R2016b) 25-Aug-2016 // C/C++ source code generated on : Tue Oct 16 10:08:00 2018 // #include "rtwtypes.h" #inc...
1,093
329
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2014-2020 Couchbase, 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 * * ...
1,074
6,238
<filename>vibora/cache/cache.py<gh_stars>1000+ from inspect import iscoroutinefunction from ..responses.responses import CachedResponse, Response from ..request.request import Request class CacheEngine: def __init__(self, skip_hooks: bool=True): self.is_async = iscoroutinefunction(self.get) or iscoroutin...
296
1,511
/* * This Mathomatic include file contains the current license notice. */ /* The following is the Mathomatic license notice, stored in a string. */ /* It is displayed by the "help copyright" command. */ char *license_string = " Mathomatic computer algebra system\n" " Copyright (C) 1987-2012 <NAME>\n\n" "This ...
608
1,075
package com.etiennelawlor.quickreturn.activities; import android.content.Intent; import android.os.Bundle; import com.etiennelawlor.quickreturn.R; import butterknife.ButterKnife; import butterknife.OnClick; public class QuickReturnActivity extends QuickReturnBaseActivity { // region Listeners @OnClick(R.i...
746
327
<gh_stars>100-1000 { "main": "react_jqxtabs.umd.js", "module": "react_jqxtabs.esm.js", "typings": "react_jqxtabs.d.ts", "name": "jqwidgets-react/jqxtabs", "sideEffects": false }
101
428
<filename>Java/old/OpenGL-1.0(old_ver)/Loon-backend-Android/src/loon/core/geom/ShapeUtils.java /** * Copyright 2008 - 2012 * * 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://...
2,284
14,668
// 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/chrome_cleaner/os/resource_util.h" #include <windows.h> #include <stdint.h> #include "base/check_op.h" namespace chrome_cleaner { bo...
400
348
<gh_stars>100-1000 {"nom":"Chambroncourt","dpt":"Haute-Marne","inscrits":38,"abs":6,"votants":32,"blancs":2,"nuls":0,"exp":30,"res":[{"panneau":"2","voix":20},{"panneau":"1","voix":10}]}
80
673
<filename>src/mcedit2/util/custom_traceback.py """ custom_traceback """ from __future__ import absolute_import, division, print_function import logging import sys from collections import namedtuple log = logging.getLogger(__name__) import traceback _MCETraceFrame = namedtuple('_MCETraceFrame', 'filename lineno ...
2,144
331
/** * This code is released under the * Apache License Version 2.0 http://www.apache.org/licenses/. * * (c) <NAME> */ #include "simdbitpacking.h" #include "simdbitpackinghelpers.h" namespace SIMDCompressionLib { using namespace std; void __SIMD_fastpackwithoutmask0(const uint32_t *__restrict__, ...
219,347
524
#include "stdafx.h" #include "normalize_phone.h" #include "../../../http_request.h" #include "../../../tools/system.h" #include "../../urls_cache.h" using namespace core; using namespace wim; normalize_phone::normalize_phone(wim_packet_params _params, const std::string& _country, const std::string& _...
814
950
<reponame>hao14293/2021-Postgraduate-408 #include <iostream> #include <cmath> using namespace std; int main(){ int n, a, b; float max = 0.0; cin >> n; for(int i = 0; i < n; i++){ cin >> a >> b; float temp = sqrt(a * a + b * b); if(temp > max) max = temp; } printf("%.2f", max); return 0; }
140
4,054
<filename>controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/responses/deploy-result.json { "revisionId":"(ignore)", "applicationZipSize":"(ignore)", "prepareMessages":[], "configChangeActions":{ "restart":[], "refeed":[] } }
103
601
<filename>samples/react-msal-msgraph/config/config.json<gh_stars>100-1000 { "entries": [{ "entry": "./lib/webparts/msalWp/MsalWpWebPart.js", "manifest": "./src/webparts/msalWp/MsalWpWebPart.manifest.json", "outputPath": "./dist/msal-wp.bundle.js" }], "externals": { "Msal": { ...
295
1,716
<gh_stars>1000+ # -*- coding: utf-8 -*- # vim: sw=4:ts=4:expandtab """ riko.modules.udf ~~~~~~~~~~~~~~~~ Provides functions for performing an arbitrary (user-defined) function on stream items. Examples: basic usage:: >>> from riko.modules.udf import pipe >>> >>> items = [{'x': x} for x in ...
1,394
1,840
/** * Copyright Pravega 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 applicable law or agreed to...
324
348
{"nom":"Germonville","dpt":"Meurthe-et-Moselle","inscrits":101,"abs":24,"votants":77,"blancs":6,"nuls":5,"exp":66,"res":[{"panneau":"1","voix":46},{"panneau":"2","voix":20}]}
75
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 ...
12,928
15,337
from unittest.mock import Mock, patch import pytest from .. import PostalCodeRuleInclusionType from ..postal_codes import ( check_postal_code_in_range, is_shipping_method_applicable_for_postal_code, ) @pytest.mark.parametrize( "code, start, end, in_range", [ ["BH3 2BC", "BH2 1AA", "BH4 9ZZ",...
2,156
1,511
<reponame>s4-2/scancode-toolkit /*Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, ex...
641
4,036
#Abstract base class, but don't declare it. class ImplicitAbstractClass(object): def __add__(self, other): raise NotImplementedError() #Make abstractness explicit. class ExplicitAbstractClass: __metaclass__ = ABCMeta @abstractmethod def __add__(self, other): raise NotImpl...
127
608
// This file is part of VSTGUI. It is subject to the license terms // in the LICENSE file found in the top-level directory of this // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE #pragma once #include "../iplatformtimer.h" #if MAC #include <CoreFoundation/CoreFoundation.h> //----------------...
229
3,139
<filename>jme3-core/src/main/java/com/jme3/util/mikktspace/MikkTSpaceContext.java /* * Copyright (c) 2009-2021 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistr...
1,771
718
package j2html.tags.specialized; import j2html.tags.ContainerTag; public final class PreTag extends ContainerTag<PreTag> { public PreTag() { super("pre"); } }
66
1,346
<reponame>wwjiang007/dal package com.ctrip.platform.dal.dao.unittests; import com.ctrip.platform.dal.dao.unitbase.MySqlDatabaseInitializer; import org.junit.AfterClass; import org.junit.BeforeClass; public class DalQueryDaoMySqlTest extends DalQueryDaoTestStub { private static MySqlDatabaseInitializer initial...
271
2,071
<reponame>Kabimon/DataSphereStudio<gh_stars>1000+ /* * Copyright 2019 WeBank * 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 re...
1,700
804
package com.github.liuweijw.business.pay.repository; import org.springframework.data.jpa.repository.JpaRepository; import com.github.liuweijw.business.pay.domain.PayMchInfo; public interface MchInfoRepository extends JpaRepository<PayMchInfo, Long> { PayMchInfo findPayMchInfoByMchId(String mchId); }
113
1,066
<reponame>carstenhag/gradle-profiler<filename>src/main/java/org/gradle/profiler/mutations/AbstractBuildMutator.java package org.gradle.profiler.mutations; import org.gradle.profiler.BuildMutator; public class AbstractBuildMutator implements BuildMutator { @Override public String toString() { return ge...
122
2,113
#include "Scene.h" Scene * Scene::smRootScene = nullptr; Vector<Scene*> Scene::smSceneList; IMPLEMENT_CO_NETOBJECT_V1(Scene); Scene::Scene() : mIsSubScene(false), mParentScene(nullptr), mSceneId(-1), mIsEditing(false), mIsDirty(false) { } Scene::~Scene() { } void Scene::initPersistFields() { P...
2,027
14,668
// 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 UI_ACCESSIBILITY_AX_PARAM_TRAITS_H_ #define UI_ACCESSIBILITY_AX_PARAM_TRAITS_H_ #include "ui/accessibility/ax_param_traits_macros.h" namespace I...
292
3,093
<reponame>SpotlightKid/pywebview<filename>tests/test_multi_window.py import pytest import webview from .util import run_test, assert_js @pytest.fixture def window(): return webview.create_window('Main window', html='<html><body><h1>Master window</h1></body></html>') def test_bg_color(): window = webview.crea...
1,000
2,133
import torch import torch.nn as nn import random from saicinpainting.training.modules.depthwise_sep_conv import DepthWiseSeperableConv class MultidilatedConv(nn.Module): def __init__(self, in_dim, out_dim, kernel_size, dilation_num=3, comb_mode='sum', equal_dim=True, shared_weights=False, padding=...
2,195
2,206
<gh_stars>1000+ /* * * Copyright (c) 2006-2020, Speedment, 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 *...
2,507
558
<filename>webapp/src/main/java/io/github/microcks/util/grpc/GrpcServerStarter.java /* * Licensed to <NAME> (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to ...
3,181
3,436
// Range v3 library // // Copyright <NAME> 2014-present // // Use, modification and distribution is subject to 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) // // Project home: https://github.com/ericniebler/range-v3 #incl...
1,897
368
<filename>src/main/java/ezvcard/property/Agent.java package ezvcard.property; import java.text.NumberFormat; import java.util.LinkedHashMap; import java.util.List; import java.util.Locale; import java.util.Map; import ezvcard.SupportedVersions; import ezvcard.VCard; import ezvcard.VCardVersion; import ezvcard.Validat...
2,205
852
<gh_stars>100-1000 import FWCore.ParameterSet.Config as cms CloseComponentsMerger5D = cms.ESProducer("CloseComponentsMergerESProducer5D", ComponentName = cms.string('CloseComponentsMerger5D'), MaxComponents = cms.int32(12), DistanceMeasure = cms.string('KullbackLeiblerDistance5D') )
110
313
<gh_stars>100-1000 from enum import IntEnum class ShaderCompilerPlatform(IntEnum): kShaderCompPlatformNone = -1 kShaderCompPlatformGL = 0 kShaderCompPlatformD3D9 = 1 kShaderCompPlatformXbox360 = 2 kShaderCompPlatformPS3 = 3 kShaderCompPlatformD3D11 = 4 kShaderCompPlatformGLES20 = 5 kSh...
332
697
package com.ms_square.etsyblur; import android.graphics.Color; import android.support.annotation.ColorInt; import android.support.annotation.NonNull; /** * BlurConfig.java * * @author Manabu-GT on 3/17/17. */ public class BlurConfig { public static final int DEFAULT_RADIUS = 10; public static final int D...
1,639
1,444
package mage.cards.n; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.dynamicvalue.DynamicValue; import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount; import mage.abilities.effects.common.continuous.BoostEquippedEffect; import mage.abilities.hint.Hint; import mage.abilities.hi...
695
852
#include "FWCore/Framework/interface/stream/EDProducer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "DataFormats/EgammaReco/interface/SuperCluster.h" #include "DataFormats/EgammaReco/interface/Super...
1,119
1,078
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information. import sys import unittest from iptest import IronPythonTestCase, run_test, skipUnlessIronPython @skipUnlessI...
3,812
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/001/00105330.json {"nom":"Ruffieu","circ":"5ème circonscription","dpt":"Ain","inscrits":157,"abs":64,"votants":93,"blancs":11,"nuls":4,"exp":78,"res":[{"nuance":"LR","nom":"<NAME>","voix":43},{"nuance":"REM","nom":"<NAME>","voix":35}]}
126
648
{"resourceType":"DataElement","id":"ClaimResponse.note.type","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/ClaimResponse.note.type","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"ClaimResponse.note.type","short":"display | print | ...
168
319
// ctcbin/nnet-ctc-subset-egs.cc // Copyright 2016 <NAME> // See ../../COPYING for clarification regarding multiple 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:...
1,358
517
""" This module contains exceptions shared across application code. """ from __future__ import print_function, unicode_literals from gratipay.utils.i18n import LocalizedErrorResponse class ProblemChangingUsername(Exception): def __str__(self): return self.msg.format(self.args[0]) class UsernameIsEmpty(...
815
4,303
#include "LowerParallelTasks.h" #include <string> #include "Argument.h" #include "Closure.h" #include "DebugArguments.h" #include "ExprUsesVar.h" #include "IRMutator.h" #include "IROperator.h" #include "Module.h" #include "Param.h" #include "Simplify.h" namespace Halide { namespace Internal { namespace { LoweredAr...
8,375
872
<gh_stars>100-1000 #!/usr/bin/python3 """ Given the root of a tree, you are asked to find the most frequent subtree sum. The subtree sum of a node is defined as the sum of all the node values formed by the subtree rooted at that node (including the node itself). So what is the most frequent subtree sum value? If there ...
673
30,785
package jadx.plugins.input.java.data.attributes.types; import jadx.api.plugins.input.data.annotations.EncodedValue; import jadx.api.plugins.input.data.attributes.types.AnnotationDefaultAttr; import jadx.plugins.input.java.data.attributes.EncodedValueReader; import jadx.plugins.input.java.data.attributes.IJavaAttribute...
312
3,651
package com.orientechnologies.orient.core.sql.executor; import com.orientechnologies.orient.core.command.OCommandContext; import java.text.DecimalFormat; import java.util.Optional; /** @author <NAME> (l.dellaquila-(at)-orientdb.com) */ public abstract class AbstractExecutionStep implements OExecutionStepInternal { ...
558
519
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE from __future__ import absolute_import try: from collections.abc import Iterable except ImportError: from collections import Iterable import awkward as ak from awkward._v2.index import Index from awkward._v2._slicing impo...
15,584
1,564
<filename>core/src/test/java/org/modelmapper/functional/deepmapping/NestedMappingTest7.java package org.modelmapper.functional.deepmapping; import static org.testng.Assert.assertEquals; import org.modelmapper.AbstractTest; import org.testng.annotations.Test; /** * @author <NAME> */ @Test(groups = "functi...
659
414
# Copyright 2022 The HuggingFace Team. 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 app...
6,871
4,303
<gh_stars>1000+ #include "Halide.h" using namespace Halide; int main(int argc, char **argv) { // Stress-test LICM by hoisting lots of loop invariants Var x, y, c; const int N = 100; Expr e = 0; for (int i = 0; i < N; i++) { Expr invariant = (c + i) * (c + i); e += invariant * (x ...
291
56,632
<filename>modules/core/test/ocl/test_gemm.cpp /*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not ...
2,397
1,927
<reponame>BryceStevenWilley/mealie from datetime import datetime from typing import Optional from fastapi_camelcase import CamelModel from pydantic.utils import GetterDict class UserBase(CamelModel): id: int username: Optional[str] admin: bool class Config: orm_mode = True class CommentIn(...
362
346
#include <stdlib.h> #include <string.h> #include "interface.h" #ifdef MINGW int get_min_mtu( void ) { DWORD ret, dwInterface, dwSize = 0; PMIB_IFTABLE ifTable; PMIB_IFROW ifRow; unsigned min_mtu = 0; dwSize = sizeof(MIB_IFTABLE); ifTable = (PMIB_IFTABLE)malloc(dwSize); while ((ret = GetIfTable(ifTable,...
699
13,889
<filename>kivy/tests/test_kivy_init.py<gh_stars>1000+ from kivy import ( kivy_configure, kivy_register_post_configuration, get_includes, kivy_usage) from unittest.mock import Mock, patch from os.path import exists, isdir def test_kivy_configure(): """Test the kivy_configure calls the post_configuration ca...
373
348
{"nom":"Créteil","circ":"2ème circonscription","dpt":"Val-de-Marne","inscrits":31606,"abs":19004,"votants":12602,"blancs":244,"nuls":93,"exp":12265,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":4248},{"nuance":"FI","nom":"<NAME>","voix":2086},{"nuance":"SOC","nom":"M. <NAME>","voix":1892},{"nuance":"LR","nom":"M. <NA...
306
496
#include "Thermal.h" Thermal::Thermal(std::string paramFile, std::string CGNSFileName, std::string zoneName, int index_zone) { //1- Construct the parameter manager PM.readParameters(paramFile); PM.set(TPM::CGNSFileName,CGNSFileName); std::cout << "---- " << zoneName << " PARAMETERS LIST : " <<...
4,696
1,375
<reponame>GregAC/opentitan #!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 r"""This script generates sparse FSM encodings that fulfill a minimum Hamming distance requirement. It uses a heuristic tha...
5,767
2,151
<filename>third_party/blink/renderer/core/loader/document_loader.cc /* * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follow...
15,812
3,508
package com.fishercoder; import com.fishercoder.solutions._1464; import org.junit.BeforeClass; import org.junit.Test; import static junit.framework.TestCase.assertEquals; public class _1464Test { private static _1464.Solution1 solution1; private static int[] nums; @BeforeClass public static void set...
205