max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
396
<reponame>seba10000/resonance-audio /* Copyright 2018 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 require...
2,050
839
/** * 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 m...
1,366
3,579
/* * Copyright 2015, The Querydsl Team (http://www.querydsl.com/team) * * 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 ...
1,026
2,151
<filename>components/safe_browsing/db/v4_feature_list.h // 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 COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_ #define COMPONENTS_SAFE_BROWSING_DB_V4_FEAT...
368
676
// Use of this source code is governed by a BSD 3-Clause License // that can be found in the LICENSE file. // Author: caozhiyi (<EMAIL>) #ifndef CPPNET_EVENT_TIMER_EVENT #define CPPNET_EVENT_TIMER_EVENT #include <memory> #include <atomic> #include "event_interface.h" #include "include/cppnet_type.h" #include "common...
271
16,483
<gh_stars>1000+ /* * Copyright 1999-2019 Seata.io Group. * * 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...
578
390
<reponame>pombredanne/flare-wmi #include "Helper.h" #include "EventConsumer.h" class LogFileEventConsumerClass : public EventConsumer { public: LogFileEventConsumerClass() : EventConsumer(), FileName(), Name(), Text(), MaximumFileSize(ALL_BITS_16), // default is 65535 IsUnicode(0) {} Log...
562
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 ...
975
1,144
/* * #%L * metasfresh-webui-api * %% * Copyright (C) 2020 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of the * License, or (at your option) any late...
2,737
522
package algs.model.tree; import algs.model.IBinaryTreeNode; /** * Perform a pre traversal of the tree. * * Self - Left - Right * * @param <T> Type of value associated with each {@link IBinaryTreeNode} * @author <NAME> * @version 1.0, 6/15/08 * @since 1.0 */ public class PreorderTraversal<T extends IBina...
486
6,717
//****************************************************************************** // // Copyright (c) 2016 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LI...
514
739
{ "name": "<NAME>", "img": "https://images.pexels.com/photos/577585/pexels-photo-577585.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500", "email": "<EMAIL>", "links": { "website": "", "linkedin": "https://www.linkedin.com/in/dev-agarwal-5a0696170", "github": "https://github.com/dev499" ...
227
6,904
<filename>FreeRTOS/Demo/CORTEX_M4F_STM32F407ZG-SK/Libraries/STM32F4xx_StdPeriph_Driver/inc/stm32f4xx_dbgmcu.h /** ****************************************************************************** * @file stm32f4xx_dbgmcu.h * @author MCD Application Team * @version V1.0.0 * @date 30-September-2011 ...
1,928
403
<gh_stars>100-1000 package com.xcompany.xproject.auth.server.model; import java.io.Serializable; import java.util.Collection; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import java...
1,060
335
{ "word": "Zaffre", "definitions": [ "Impure cobalt oxide, formerly used to make smalt and blue enamels." ], "parts-of-speech": "Noun" }
71
587
<gh_stars>100-1000 // // SPDX-License-Identifier: BSD-3-Clause // Copyright (c) Contributors to the OpenEXR Project. // #ifndef INCLUDED_IMF_IMAGE_LEVEL_H #define INCLUDED_IMF_IMAGE_LEVEL_H //---------------------------------------------------------------------------- // // class ImageLevel // // For an exp...
1,001
1,306
/* * Copyright (C) 2011 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...
11,538
594
<reponame>Polaris-Dust/cfg4j<gh_stars>100-1000 /* * Copyright 2015-2018 <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/LICENSE-2.0 ...
428
1,305
<filename>WDL/win32_curses/test.cpp #include "curses.h" #ifdef _WIN32 win32CursesCtx g_curses_context; // we only need the one instance #endif #ifdef _WIN32 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { g_curses_context.want_getch_runmsgpump = 1; // non-block ...
762
852
#include "JetMETCorrections/FFTJetObjects/interface/FFTJetCorrectorSequenceTypes.h" #include "FWCore/Utilities/interface/typelookup.h" TYPELOOKUP_DATA_REG(FFTBasicJetCorrectorSequence); TYPELOOKUP_DATA_REG(FFTCaloJetCorrectorSequence); TYPELOOKUP_DATA_REG(FFTGenJetCorrectorSequence); TYPELOOKUP_DATA_REG(FFTPFJetCorrec...
169
3,765
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd; import static org.junit.Assert.assertEquals; import java.io.File; import org.junit.Test; import net.sourceforge.pmd.lang.LanguageRegistry; import net.sourceforge.pmd.lang.LanguageVersion; import net...
510
446
<reponame>prakharShuklaOfficial/Mastering-Python-for-Finance-source-codes """ Trinomial Lattice COM server """ from TrinomialLattice import TrinomialLattice import pythoncom class TrinomialLatticeCOMServer: _public_methods_ = ['pricer'] _reg_progid_ = "TrinomialLatticeCOMServer.Pricer" _reg_clsid_ = python...
443
920
// // StackViewController.h // StackViewController // // Created by <NAME> on 2016-04-16. // Copyright © 2016 Seed Platform, Inc. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for StackViewController. FOUNDATION_EXPORT double StackViewControllerVersionNumber; //! Project version stri...
151
325
{ "issue": { "id": "53650436-8e35-49a3-a610-56b442ae7620", "type": "issue", "state": "OPEN", "start": 1460537793322, "severity": 5, "text": "Garbage Collection Activity High (11%)", "suggestion": "Tune your Garbage Collector, reduce allocation rate through code changes", "link": "https...
247
28,056
<gh_stars>1000+ package com.alibaba.json.bvt.mixins; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.annotation.JSONField; import junit.framework.TestCase; import org.junit.Assert; public class MixinAPITest extends TestCase { static class BaseClass { public int a; public int b; ...
492
373
<filename>src/oic/utils/session_backend.py import json import time from abc import ABCMeta from abc import abstractmethod from typing import Any from typing import Dict from typing import List from typing import Optional from typing import Union from typing import cast from oic.utils.time_util import time_sans_frac ...
2,548
5,169
{ "name": "GCanvas", "version": "0.1.0", "summary": "GCanvas Source.", "description": "A cross-platform fast Canvas render engine.", "homepage": "https://github.com/alibaba/GPlatform", "license": { "type": "Copyright", "text": " Alibaba-INC copyright\n" }, "authors": { "jwxbond": "...
962
1,020
<gh_stars>1000+ /* * Copyright 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 of the * License is located at * * http://aws.amazon.com/apache2.0/ * * ...
988
1,705
<reponame>tomhaigh/aws-sdk-net<gh_stars>1000+ { "noArgOverloads": [ "DescribeLogGroups" ], "useNullableType" : { "LogGroup" : [ "retentionInDays" ] }, "dataTypeSwap" : { "InputLogEvent" : { "timestamp" : { "Type" : "DateTime", "Marshaller" : "Amazon.Runtime.Internal.Transform.CustomMars...
1,150
360
<reponame>wotchin/openGauss-server /*------------------------------------------------------------------------- * pg_regress.h --- regression test driver * * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * src/test/reg...
2,439
435
package datawave.query.index.lookup; import com.google.common.base.Preconditions; import com.google.common.collect.Iterators; import datawave.query.jexl.visitors.JexlStringBuildingVisitor; import datawave.query.tables.RangeStreamScanner; import datawave.query.util.Tuple2; import org.apache.commons.jexl2.parser.JexlNod...
1,550
651
<gh_stars>100-1000 package Library; import java.math.BigInteger; public class Class extends _ExternBase_Class { private final BigInteger n; public Class(BigInteger n) { this.n = n; } public static void SayHi() { System.out.println("Hello!"); } public BigInteger Get() { ...
137
977
<filename>src/external/IntelRDFPMathLib20U2/LIBRARY/float128/dpml_acosh_t.h /****************************************************************************** Copyright (c) 2007-2018, Intel Corp. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitt...
1,000
522
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
980
1,825
<filename>unidbg-ios/src/main/java/com/github/unidbg/ios/struct/kernel/NotifyServerRegisterMachPortRequest.java package com.github.unidbg.ios.struct.kernel; import com.github.unidbg.pointer.UnidbgStructure; import com.sun.jna.Pointer; import java.util.Arrays; import java.util.List; public class NotifyServerRegisterM...
286
1,666
package org.grobid.core.engines.tagging; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.*; public class GenericTaggerUtilsTest { @Test public void testGetPlainLabel_normalValue() throws Exception { assertThat(GenericTaggerUtils.getPlainLabel("<statu...
605
384
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 2009-2018, The GROMACS development team. * Copyright (c) 2019, by the GROMACS development team, led by * <NAME>, <NAME>, <NAME>, and <NAME>, * and including many others, as listed in the AUTHORS file in the * top-level source d...
5,105
25,151
<reponame>TamsilAmani/selenium // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Versio...
4,251
6,663
<gh_stars>1000+ # cython: auto_cpdef=True # mode:run # tag: directive,auto_cpdef,closures def closure_func(x): """ >>> c = closure_func(2) >>> c() 2 """ def c(): return x return c def generator_func(): """ >>> for i in generator_func(): print(i) 1 2 """ yiel...
160
985
package com.taobao.metamorphosis.client.extension.spring; import com.taobao.metamorphosis.exception.MetaClientException; /** * Messge body object converter. * * @author dennis<<EMAIL>> * @since 1.4.5 * @param <T> */ public interface MessageBodyConverter<T> { /** * Convert a message object to byte arr...
258
6,541
<reponame>albertobarri/idk #include <string.h> #include "pthread_impl.h" #include "libc.h" void __reset_tls() { pthread_t self = __pthread_self(); struct tls_module *p; size_t i, n = (size_t)self->dtv[0]; if (n) for (p=libc.tls_head, i=1; i<=n; i++, p=p->next) { if (!self->dtv[i]) continue; memcpy(self->dtv[i]...
208
378
<filename>aio-pro/src/main/java/org/smartboot/socket/extension/plugins/Plugin.java /******************************************************************************* * Copyright (c) 2017-2019, org.smartboot. All rights reserved. * project name: smart-socket * file name: Plugin.java * Date: 2019-12-31 * Author: sanda...
531
1,656
<reponame>HashZhang/spring-cloud-sleuth /* * Copyright 2013-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/license...
1,129
527
<reponame>gkgoat1/lexy // INPUT:type Id = <error>;\nfunction foo(...) {\n ...\n}\n constexpr auto id = dsl::identifier(dsl::ascii::alpha); constexpr auto kw_function = LEXY_KEYWORD("function", id); constexpr auto kw_type = LEXY_KEYWORD("type", id); struct function_decl { static constexpr auto rule = ...
459
1,544
# -*- coding: utf-8 -*- from django.db import models, migrations class Migration(migrations.Migration): dependencies = [("scripts", "0006_auto_20150310_2249")] operations = [ migrations.DeleteModel(name="DefaultScript"), migrations.DeleteModel(name="DoNothing"), migrations.DeleteMo...
149
849
""" 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, WITHOUT WARRANTIES O...
2,730
403
#include <vkpp/query.hh> #include <vkpp/device.hh> #include <vkpp/exception.hh> #include <utility> namespace vkpp { QueryPool::QueryPool(Device& device, VkQueryType query_type, std::uint32_t query_count, VkQueryPipelineStatisti...
2,820
1,104
{ "html": "W20.html", "css": "W20.css", "authors": "<NAME>.", "roll20userid": "492849", "preview": "W20.png", "instructions": "# Werewolf: The Apocalyspe Character Sheet \r \r **For use in the classic World of Darkness, 20th Anniversary edition.** \r \r Inspired and modified from by <NAME>'s classic World ...
297
421
<gh_stars>100-1000 // <Snippet1> using namespace System; using namespace System::IO; using namespace System::Reflection; using namespace System::Text; public ref class Sample { protected: bool ShowMethods; StreamWriter^ myWriter; private: void DumpMethods( Type^ aType ) { if ( !ShowM...
1,080
748
// 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. package dev.fluttercommunity.plus.packageinfo; import android.annotation.SuppressLint; import android.content.Context; import android.content.pm.PackageI...
1,790
4,973
<filename>tests/roots/test-ext-autodoc/target/canonical/__init__.py from target.canonical.original import Bar, Foo
38
783
#ifndef MIAOW_HELPER_H #define MIAOW_HELPER_H #include <stdio.h> #include <stdlib.h> #ifndef WIN32 #include <unistd.h> #endif #include <string.h> #define MAX_IMM_VAL 50 // populate according to commandline values // only one variable of this type struct _configValues { int scalar_alu; int vector_alu; int scalar...
320
2,690
<gh_stars>1000+ # Copyright ClusterHQ Inc. See LICENSE file for details. """ Test helpers for ``flocker.node.agents``. """ from ._cinder import ( make_icindervolumemanager_tests, make_inovavolumemanager_tests, mimic_for_test, ) from ._blockdevice import ( FakeCloudAPI, InvalidConfig, detach_d...
650
379
<filename>datavec/datavec-api/src/test/java/org/datavec/api/split/parittion/PartitionerTests.java<gh_stars>100-1000 package org.datavec.api.split.parittion; import com.google.common.io.Files; import org.datavec.api.conf.Configuration; import org.datavec.api.split.FileSplit; import org.datavec.api.split.partition.Numbe...
803
591
import numpy as np import pytest import torch from docarray.math.distance.torch import cosine, euclidean, sqeuclidean @pytest.mark.parametrize( 'x_mat, y_mat, result', ( ( torch.tensor([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]), torch.tensor([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]), ...
1,672
348
<filename>docs/data/leg-t2/048/04801173.json {"nom":"Saint-Michel-de-Dèze","circ":"1ère circonscription","dpt":"Lozère","inscrits":213,"abs":98,"votants":115,"blancs":11,"nuls":5,"exp":99,"res":[{"nuance":"LR","nom":"<NAME>","voix":58},{"nuance":"REM","nom":"<NAME>","voix":41}]}
115
2,381
/* * Created on 21.07.2015 */ package com.github.dockerjava.core.command; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.github.dockerjava.api.model.Frame; import com.github.dockerjava.core.async.ResultCallbackTemplate; /** * * @author <NAME> * * @deprecated use {@link com.github.dockerjav...
224
478
<reponame>Illbatting/AdaptiveCards<filename>source/uwp/Renderer/lib/WholeItemsPanel.h<gh_stars>100-1000 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "WholeItemsPanel.g.h" namespace winrt::AdaptiveCards::Rendering::Uwp::implementation { struc...
1,192
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Surmont","circ":"3ème circonscription","dpt":"Doubs","inscrits":128,"abs":46,"votants":82,"blancs":1,"nuls":1,"exp":80,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":45},{"nuance":"LR","nom":"M. <NAME>","voix":35}]}
118
1,024
package com.commafeed.frontend.session; import java.io.File; import javax.servlet.SessionTrackingMode; import org.eclipse.jetty.server.session.DefaultSessionCache; import org.eclipse.jetty.server.session.FileSessionDataStore; import org.eclipse.jetty.server.session.SessionCache; import org.eclipse.jetty.ser...
553
2,151
<filename>chrome/browser/metrics/desktop_session_duration/desktop_profile_session_durations_service.cc<gh_stars>1000+ // 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/metrics/des...
3,843
626
/* * Copyright 2018, OpenCensus 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 ag...
1,021
5,607
<gh_stars>1000+ package io.micronaut.docs.http.client.bind.type; public class Metadata { private final Double version; private final Long deploymentId; public Metadata(Double version, Long deploymentId) { this.version = version; this.deploymentId = deploymentId; } public Double g...
162
389
<reponame>dmcreyno/gosu-lang package editor; import javax.swing.*; import javax.swing.tree.TreeCellRenderer; import java.awt.*; /** */ public abstract class AbstractTreeCellRenderer<T> extends JLabel implements TreeCellRenderer { private boolean _bSelected; private T _node; private JTree _tree; public Abstr...
1,087
435
{ "copyright_text": null, "description": "According to the always trustworthy Wikipedia, there are approximately\n360 million native English speakers in the world. We, as developers, are\nso used to write code and documentation in English that we may not\nrealize that this number only represents 4.67% of the world ...
756
919
<filename>src/memorymodel.cpp #include "memorymodel.h" #include <QBrush> #include <QFont> #include "fonts.h" #include "processorhandler.h" namespace Ripes { MemoryModel::MemoryModel(QObject* parent) : QAbstractTableModel(parent) {} int MemoryModel::columnCount(const QModelIndex&) const { return FIXED_COLUMNS_C...
2,666
12,278
//---------------------------------------------------------------------------// // Copyright (c) 2013 <NAME> <<EMAIL>> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boostorg.github.com/compute ...
529
1,217
#include <stdlib.h> #include <stdio.h> #include <vector> #include <string> #include <sstream> #include <iostream> #include <stdexcept> #include <functional> #include <mutex> #include <Eigen/Geometry> #ifdef ENABLE_PARALLEL_HAUSDORFF_DISTANCE #include <omp.h> #endif #ifndef SIMPLE_HAUSDORFF_DISTANCE_HPP #define SI...
1,635
1,738
<gh_stars>1000+ /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by ...
1,355
446
/* ======================================== * StudioTan - StudioTan.h * Copyright (c) 2016 airwindows, All rights reserved * ======================================== */ #ifndef __StudioTan_H #include "StudioTan.h" #endif void StudioTan::processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames) { ...
8,248
357
/** * This file is part of Eclipse Steady. * * 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...
1,586
479
<gh_stars>100-1000 #pragma once /* * Error Handling * * All our API calls return integers to signal errors or success. Negative * error-codes are fatal errors that the caller should forward unchanged. * Positive error-codes are API errors that have documented behavior and must * be caught and handled by the call...
610
3,897
<gh_stars>1000+ /*************************************************************************************************/ /*! * \file * * \brief Link layer controller ACAD definitions. * * Copyright (c) 2019 Packetcraft, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not us...
1,521
348
{"nom":"Beaumont","circ":"2ème circonscription","dpt":"Gers","inscrits":113,"abs":51,"votants":62,"blancs":12,"nuls":5,"exp":45,"res":[{"nuance":"SOC","nom":"<NAME>","voix":26},{"nuance":"REM","nom":"<NAME>","voix":19}]}
89
333
<reponame>pjfanning/jackson-dataformats-text<filename>csv/src/test/java/com/fasterxml/jackson/dataformat/csv/deser/TestParserStrictQuoting.java package com.fasterxml.jackson.dataformat.csv.deser; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.dataformat.csv.*; // Tests for [da...
699
988
/* * 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,386
1,338
/* * Copyright 2006, Haiku. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> */ #include "RDefExporter.h" #include <stdio.h> #include <string.h> #include <DataIO.h> // constructor RDefExporter::RDefExporter() : FlatIconExporter() { } // destructor RDefE...
1,370
491
// Copyright (C) 2021 THL A29 Limited, a Tencent company. 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 ...
1,954
2,728
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
2,352
1,177
import unittest from pascals_triangle import rows # Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0 TRIANGLE = [ [1], [1, 1], [1, 2, 1], [1, 3, 3, 1], [1, 4, 6, 4, 1], [1, 5, 10, 10, 5, 1], [1, 6, 15, 20, 15, 6, 1], [1, 7, 21, 35, 35, 21, 7, 1], [1, 8, 2...
583
1,822
""" Test color support """ _stash = globals()["_stash"] def get_all_bg_colors(): """ Return a list of all known bg colors """ return _stash.renderer.BG_COLORS.keys() def get_all_fg_colors(): """ Return a list of all known fg colors """ return _stash.renderer.FG_COLORS.keys() def ma...
1,276
1,988
<reponame>clayne/botan /* * KDF2 * (C) 1999-2007 <NAME> * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/internal/kdf2.h> #include <botan/exceptn.h> namespace Botan { std::string KDF2::name() const { return "KDF2(" + m_hash->name() + ")"; } std::unique_ptr<KDF> KD...
617
524
# -*- coding:utf-8 -*- __author__ = 'Randolph' import os import sys import time import logging import numpy as np sys.path.append('../') logging.getLogger('tensorflow').disabled = True import tensorflow as tf from utils import checkmate as cm from utils import data_helpers as dh from utils import param_parser as par...
4,567
2,151
<filename>src/compiler/glsl/glcpp/tests/086-reserved-macro-names.c #define __BAD reserved #define GL_ALSO_BAD() also reserved #define THIS__TOO__IS__BAD reserved
62
357
<filename>vmidentity/rest/idm/server/src/test/java/com/vmware/identity/rest/idm/server/test/resources/SolutionUserResourceTest.java<gh_stars>100-1000 /* * Copyright (c) 2012-2015 VMware, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file exc...
2,321
5,964
<reponame>wenfeifei/miniblink49 {% macro v8_value_to_local_cpp_value(thing) %} {# This indirection is just to avoid spurious white-space lines. #} {{generate_v8_value_to_local_cpp_value(thing) | trim}} {%- endmacro %} {% macro generate_v8_value_to_local_cpp_value(thing) %} {% set item = thing.v8_value_to_local_cpp_va...
485
1,444
package mage.cards.c; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.AttacksTriggeredAbility; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.Cost; import mage.abilities.costs.common.RemoveAllCountersSourceCost; import mage.abil...
1,394
421
// System::Windows::Forms::DataGridColumnStyle.MappingNameChanged /* * The following example demonstrates the 'MappingNameChanged' event of 'DataGridColumnStyle' class. It adds a DataGrid and a button to a Form. When the user clicks on the 'Change Mapping Name' button, it changes mapping name and generates 'Mapp...
1,740
628
<gh_stars>100-1000 # -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-24 21:09 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('osf', '0015_auto_20170421_1244'), ] operations = [ migrations.Remo...
432
435
<gh_stars>100-1000 { "copyright_text": null, "description": "When I discovered at a young age that I had a life threatening heart condition, the last thing I expected was to have to worry about software. Now, with a heart device implanted in my body, I have come to understand not only how vulnerable medical devices...
409
653
<gh_stars>100-1000 //===-- LowerWGLocalMemory.h - SYCL kernel local memory allocation pass ---===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===--------...
654
956
/* Cisco Systems, Inc. */ /* Copyright (c) 2016-2016 Cisco Systems, 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 applica...
1,935
1,104
<filename>Barbaric/translation.json { "name":"name", "heritage":"heritage", "endurance":"endurance", "lifeblood":"lifeblood", "fatigued-":"Fatigued?", "hero-points":"hero points", "skills":"skills", "combat":"combat", "craft":"craft", "lore":"lore", "physical":"physical", ...
472
1,223
<gh_stars>1000+ # Copyright 2020 Google LLC # # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd import json from functools import partial import time import jax.numpy as np import jax.random as random fro...
480
841
package org.jboss.resteasy.test.validation.resource; import jakarta.validation.executable.ExecutableType; import jakarta.validation.executable.ValidateOnExecution; import jakarta.ws.rs.POST; import jakarta.ws.rs.Path; public interface TestValidateOnExecutionInterface { @POST @Path("overrideInterface1") @Vali...
137
772
<gh_stars>100-1000 { "addCSSButton": "Add CSS", "addImageButton": "Add Image", "addHTMLButton": "Add HTML", "confirmExitWithUnsavedChanges": "Do you want to exit with unsaved changes?", "refreshPreview": "Refresh and Save", "toggleInspectorOn": "Inspector: Off", "toggleInspectorOff": "Inspector: On" }
114
363
<filename>frostmourne-spi/src/main/java/com/autohome/frostmourne/spi/dao/IWeChatSender.java package com.autohome.frostmourne.spi.dao; import java.util.List; public interface IWeChatSender { boolean send(List<String> users, String title, String content, String wechatRobotHook); }
112
852
#ifndef RecoParticleFlow_Benchmark_MatchCandidateBenchmark_h #define RecoParticleFlow_Benchmark_MatchCandidateBenchmark_h #include "DQMOffline/PFTau/interface/Benchmark.h" #include "DataFormats/Candidate/interface/Candidate.h" #include "DataFormats/Candidate/interface/CandidateFwd.h" #include "FWCore/ParameterSet/int...
651
348
{"nom":"Mesnil-Follemprise","dpt":"Seine-Maritime","inscrits":102,"abs":21,"votants":81,"blancs":11,"nuls":2,"exp":68,"res":[{"panneau":"2","voix":39},{"panneau":"1","voix":29}]}
75
884
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. name = "commondatamodel_objectmodel" __version__ = '1.0.0'
63