max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
713
<reponame>franz1981/infinispan package org.infinispan.cache.impl; import java.util.function.UnaryOperator; import org.infinispan.commons.util.InjectiveFunction; /** * This is a marker interface to signal that this function may perform an encoding of the provided value. The returned * value therefore will always be...
185
921
<filename>test/test_fcl_math.cpp /* * Software License Agreement (BSD License) * * Copyright (c) 2011-2014, <NAME>, Inc. * Copyright (c) 2014-2016, Open Source Robotics Foundation * Copyright (c) 2016, Toyota Research Institute * All rights reserved. * * Redistribution and use in source and binary forms, w...
4,869
1,383
<filename>src/chrono_vehicle/output/ChVehicleOutputHDF5.h // ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that...
1,042
694
msg = "hello" print(msg)
12
575
<filename>third_party/blink/tools/blinkpy/tool/commands/help_command.py # Copyright (c) 2016 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code mu...
1,648
320
<reponame>strangestroad/interview-techdev-guide #include <iostream> using namespace std; struct Node { int data; Node *next; }; void insertHead(Node **head, int item); void deleteNodeatPosition(Node **head, int position); void insertAfter(Node **prev_node, int item); void insertEnd(Node **head, int item); void ...
1,309
411
<filename>documents4j-transformer-msoffice/documents4j-transformer-msoffice-powerpoint/src/test/java/com/documents4j/conversion/msoffice/MicrosoftPowerpointInaccessibilityTest.java package com.documents4j.conversion.msoffice; import com.documents4j.api.DocumentType; import org.junit.BeforeClass; public class Microsof...
377
852
#ifndef DQM_SiStripCommissioningSummary_OptoScanSummaryFactory_H #define DQM_SiStripCommissioningSummary_OptoScanSummaryFactory_H #include "DQM/SiStripCommissioningSummary/interface/CommissioningSummaryFactory.h" class OptoScanSummaryFactory : public SummaryPlotFactory<CommissioningAnalysis*> { protected: void extr...
134
492
<filename>losses/blend_loss.py import torch import PIL import os from losses import masked_lpips class BlendLossBuilder(torch.nn.Module): def __init__(self, opt): super(BlendLossBuilder, self).__init__() self.opt = opt self.parsed_loss = [[1.0, 'face'], [1.0, 'hair']] if opt.device...
1,013
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. #ifndef CHROME_CHROME_CLEANER_TEST_TEST_SCOPED_SERVICE_HANDLE_H_ #define CHROME_CHROME_CLEANER_TEST_TEST_SCOPED_SERVICE_HANDLE_H_ #include <string> #inc...
458
1,351
/** @file A brief file description @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file 1 test_Cache.cc + X distributed with this work for additional information regarding copyright ownership. The ASF licenses this ...
702
3,371
package com.beloo.chipslayoutmanager.sample.ui; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.BottomSheetBehavior; import android.support.v4.app.Fragment; import android.support.v4.widget.NestedScrollView; import android.support.v7.widget.LinearLayoutManage...
668
655
/* Copyright 2015 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 applicable law or agreed to in ...
5,554
333
/** * Copyright 2016 Red Hat, Inc. * * Red Hat licenses this file to you 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...
3,039
1,435
from libcloud.container.types import Provider from libcloud.container.providers import get_driver driver = get_driver(Provider.RANCHER) connection = driver("MYRANCHERACCESSKEY", "MYRANCHERSECRETKEY", host="172.30.0.100", port=8080, secure=False) new_stack = connection.ex_deploy_stack(name="GhostB...
240
1,602
//===-- Passes.h - Target independent code generation passes ----*- C++ -*-===// // // 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 // //===---------------------------...
5,149
1,338
/* * Copyright 2007-2010 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT license. * * Authors: * <NAME> */ #include "accelerant.h" #include <errno.h> #include <string.h> #include <unistd.h> AccelerantInfo gInfo; // global data used by various source files of // accelerant...
1,711
335
{ "word": "Tell", "definitions": [ "Communicate information to someone in spoken or written words.", "Order or advise someone to do something.", "Relate (a story)", "Reveal (information) to someone in a non-verbal way.", "Divulge confidential or private information.", ...
266
1,695
/* * 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 in writing, software * distribut...
4,226
1,575
<reponame>senliontec/mujoco // Copyright 2021 DeepMind Technologies 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 // // Unle...
403
354
from typing import Literal class Foo: @property def foo() -> Literal["hi"]: "hi" return "hi"
54
667
#import <UIKit/UIKit.h> #import "LoginViewController.h" #import "HomeViewController.h" #import "ErrorViewController.h" #import "AFHTTPRequestOperation.h" #import "JASidePanelController.h" #import "NarrowOperators.h" @interface ZulipAppDelegate : NSObject <UIApplicationDelegate, UITabBarControllerDelegate> @property (...
506
640
<filename>client/tp_assist_win/msocketx.cpp #include "stdafx.h" #include "msocketx.h" #ifdef _WIN32 #pragma warning(disable:4244) #endif msocketx::msocketx() { m_sock = INVALID_SOCKET; } msocketx::~msocketx() { close(); } int msocketx::getsockname(unsigned int& uiip, unsigned short& usport) { sockaddr_in addr; s...
3,469
9,136
"""Base class for simulation client.""" import enum from typing import Text GRAY = (0.3, 0.3, 0.3, 1) class ClientType(enum.Enum): """Type of client.""" BULLET = "pybullet" class ClientMode(enum.Enum): """Client running mode.""" # Client is being initialized, object is being loaded, teleported, etc. ...
539
1,202
<filename>test/pkgs_signed/Signed Package/pkg.json {"license":"","file_hash":null,"name":"Package","version":"1.0.0","description":"original package","group":"","keywords":null,"dependencies":[],"contents":"","engine_version":"2.1.0.7840","engine":"dynamo","engine_metadata":"","site_url":"","repository_url":"","contain...
129
777
<gh_stars>100-1000 // Copyright 2013 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 "ui/events/latency_info.h" #include <stddef.h> #include <algorithm> #include <string> #include <utility> #include "base/jso...
6,346
583
<reponame>mrcl-tst/hyrise #include "dp_ccp.hpp" #include <unordered_map> #include "cost_estimation/abstract_cost_estimator.hpp" #include "enumerate_ccp.hpp" #include "join_graph.hpp" #include "logical_query_plan/lqp_utils.hpp" #include "operators/operator_join_predicate.hpp" #include "statistics/abstract_cardinality_...
2,413
412
<reponame>tobireinhard/cbmc<gh_stars>100-1000 public class ContainerForLong { public Long longField; public ContainerForLong(Long l) { longField = l; } }
56
72,551
// Swift 3 sees the ObjC class NSRuncibleSpoon as the class, and uses methods // with type signatures involving NSRuncibleSpoon to conform to protocols // across the language boundary. Swift 4 sees the type as bridged to // a RuncibleSpoon value type, but still needs to be able to use conformances // declared by Swift ...
278
577
<filename>Lib/test/test_decimal_jy.py import unittest from test import test_support from decimal import Decimal from java.lang import Float, Double, Object from java.math import BigDecimal class TestJavaDecimal(unittest.TestCase): def test_decimal(self): x = Decimal("1.1") y = x.__tojava__(BigD...
382
1,099
package com.example.chat.mvp.group.groupInfo; import android.app.Activity; import android.content.Intent; import android.view.View; import android.widget.Button; import android.widget.CheckBox; import android.widget.RelativeLayout; import android.widget.TextView; import com.example.chat.R; import com.example.chat.bas...
6,634
366
<reponame>zhengjb/OpenExplorer<gh_stars>100-1000 package com.jdkcn.openexplorer; import openexplorer.util.IOUtils; /** * @author <a href="mailto:<EMAIL>">Rory</a> * @version $Id$ */ public class BrowserDetachTest { public static void main(String[] args) throws Exception { Process process = Runtime.get...
351
818
<filename>addons/common/monitoring/core/src/main/java/org/kie/kogito/monitoring/core/common/rule/RuleMetricsListener.java /* * Copyright 2020 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. *...
1,330
679
<filename>main/sc/source/ui/dbgui/tpsubt.cxx /************************************************************** * * 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 o...
8,210
403
package io.craft.atom.io; /** * The x-ray of {@link IoReactor} * * @author mindwind * @version 1.0, Oct 15, 2014 */ public interface IoReactorX { /** * @return current alive channel count. */ int aliveChannelCount(); /** * @return current new channel to be processed count. */ int newChannelCount...
167
852
<gh_stars>100-1000 import FWCore.ParameterSet.Config as cms hltTauDQMProcess = "HLT" hltTauMonitor = cms.EDAnalyzer("HLTTauDQMSource", HLTProcessName = cms.untracked.string(hltTauDQMProcess), ModuleName = cms.untracked.string("hltTauMonitor"), DQMBaseFolder = cms.untracked.string("HLT/TauOnline/Inclusive/...
3,263
505
package de.rieckpil.blog; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.data.mongodb.repository.Query; import java.util.List; public interface CustomerRepository extends MongoRepository<Customer, String> { @Query(sort = "{ rating : 1 }") List<Customer> findByRati...
111
548
package com.yarolegovich.materialprefsample; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.Toolbar; /** * Created by yarolegovich on 16.05.2016. */ public class ToolbarActivity extends AppCompatActivity { @SuppressWarnings("ConstantConditions") protected void setupToolba...
174
1,085
/* * Copyright (C) 2017-2019 Dremio Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
334
310
<reponame>dreeves/usesthis<filename>gear/hardware/m/marathon-supreme-700x28.json { "name": "Marathon Supreme 700x28", "description": "Tires for a bike with integrated light reflection.", "url": "https://www.amazon.com/Schwalbe-Marathon-Supreme-Speed-Folding/dp/B004JKJMB0" }
105
3,459
# -*- coding: utf-8 -*- class Rectangle(Blob): def __init__(self, width, height, color='black', emphasis=None, highlight=0): if width == 0 and height == 0 and \ color == 'red' and emphasis == 'strong' or \ highlight > 100: ...
1,454
439
<reponame>kant/beacon-platform // Copyright 2015 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 // //...
1,215
716
<reponame>switchII/exhibitor /* * Copyright 2012 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * U...
495
534
<filename>src/main/java/mekanism/common/network/to_client/container/PacketUpdateContainer.java package mekanism.common.network.to_client.container; import java.util.ArrayList; import java.util.List; import mekanism.common.inventory.container.MekanismContainer; import mekanism.common.network.IMekanismPacket; import mek...
780
526
/* SPDX-License-Identifier: Apache 2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ /** * Remediation Governance Action Services that correct errors and enhance metadata elements, relationships and classifications. */ package org.odpi.openmetadata.adapters.connectors.governanceactions.remediation;
80
868
<filename>flare/fiber/fiber_local.h // Copyright (C) 2019 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 obtain a copy of the // License at // // https://opensource.org/li...
915
313
<gh_stars>100-1000 package com.netflix.titus.federation.service; import com.google.inject.Provides; import com.netflix.titus.common.runtime.TitusRuntime; import com.netflix.titus.grpc.protogen.JobActivityHistoryServiceGrpc; import com.netflix.titus.grpc.protogen.JobActivityHistoryServiceGrpc.JobActivityHistoryService...
435
634
<filename>DDrawCompat/v0.2.1/CompatGdiPaintHandlers.cpp<gh_stars>100-1000 #include "CompatGdi.h" #include "CompatGdiDc.h" #include "CompatGdiPaintHandlers.h" #include "CompatGdiScrollBar.h" #include "CompatGdiScrollFunctions.h" #include "CompatGdiTitleBar.h" #include "CompatPrimarySurface.h" #include "CompatRegistry.h"...
4,562
1,130
<gh_stars>1000+ import os import pandas as pd import panel as pn from .pn_model import StockScreener def app(doc): data_path = os.path.join(os.path.dirname(__file__), 'datasets/market_data.csv') df = pd.read_csv(data_path, index_col=0, parse_dates=True) ss = StockScreener(df) ss.panel().server_doc(d...
136
819
from .resnet import ResNet50, ResNet101, ResNet152 from .alexnet import AlexNet
26
1,666
<gh_stars>1000+ package org.grobid.core.document; /** * General debugging counters */ public enum TEICounters { CITATION_FIGURE_REF_MARKER_MISSED_SUBSTITUTION, TEI_POSITION_REF_MARKERS_OFFSET_TOO_LARGE, TEI_POSITION_REF_MARKERS_TOK_NOT_FOUND, CITATION_FIGURE_REF_MARKER_SUBSTITUTED }
126
764
{ "website": "http://aelf.io/", "published_on": "2017-11-28", "links": { "telegram": "https://t.me/aelfblockchain", "reddit": "https://www.reddit.com/user/aelf_blockchain/", "github": "https://github.com/aelfProject", "facebook": "https://www.facebook.com/grid.blockchain.1", ...
401
435
<reponame>allen91wu/data<gh_stars>100-1000 { "description": "Cleaning messy data is a necessary component of data science projects.\nThe vtreat package automates common data preparation steps for\nsupervised machine learning. In this talk, we will introduce vtreat and\ndemonstrate its effective use with Pandas and xg...
476
527
import logging from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError from django.dispatch import receiver from django.db.models import signals from drfpasswordless.models import CallbackToken from drfpasswordless.models import generate_numeric_token from drfpasswordless.setti...
3,444
777
#!/usr/bin/env python # 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. """Logging handler used to log into a JSON file.""" import json import logging class JSONLoggingHandler(logging.Handler): """A log...
321
562
#include <g3log/g3log.hpp> #include <g3log/logworker.hpp> #include <iostream> int main() { auto worker = g3::LogWorker::createLogWorker(); auto defaultHandler = worker->addDefaultLogger("my_log", "."); g3::initializeLogging(worker.get()); LOG(INFO) << "Make a log call"; return 0; }
125
1,264
<reponame>danielhanchen/hiperlearn from numba import njit, prange from numpy import zeros """ TCSR Matrix functions. 1. _XXT """ def _XXT_triangular(val, colPointer, rowIndices, n, p): """ [Added 21/10/2018] Computes XXT and stores it as a triangular sparse matrix. A triangular sparse matrix removes the colPoin...
757
7,302
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-present MagicStack Inc. and the EdgeDB 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...
950
691
# Copyright 2016 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 applicable law or a...
1,638
1,296
<reponame>sishui/nova-ejoy2d #include "ppm.h" #include "texture.h" #include "array.h" #include "render.h" #include <lua.h> #include <lauxlib.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define PPM_RGBA8 0 #define PPM_RGB8 1 #define PPM_RGBA4 2 #define PPM_RGB4 3 #define PPM_ALPH...
5,224
478
{ "name": "tstl", "description": "TypeScript-STL (Standard Template Library, migrated from C++)", "author": { "name": "<NAME>", "email": "<EMAIL>", "url": "http://samchon.org" }, "version": "2.5.0", "main": "./index.js", "typings": "./index.d.ts", "scripts": { "api": "typedoc src --exclu...
1,159
302
/* * Copyright 2012 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
415
848
<gh_stars>100-1000 #include <fstream> #include <iostream> #include <string> #include "clstm.h" using namespace std; int main(int argc, char **argv) { ifstream file1(argv[1]); ifstream file2(argv[2]); for (;;) { std::string line1, line2; if (file1.eof() || file2.eof()) break; getline(file1, line1); ...
210
3,673
<gh_stars>1000+ #pragma once #include <sys/epoll.h> namespace linux { void epoll_add_fd(int fd, epoll_event& event); void epoll_del_fd(int fd); void epoll_wait_events(); }
79
460
<filename>trunk/win/Source/Includes/QtIncludes/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSString.h<gh_stars>100-1000 /* * Copyright (C) 1999-2001 <NAME> (<EMAIL>) * Copyright (C) 2001 <NAME> (<EMAIL>) * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. * * This lib...
11,046
8,027
package com.facebook.buck.demo; import com.facebook.buck.android.support.exopackage.ExopackageApplication; public class WithExo extends ExopackageApplication { public WithExo() { super(com.facebook.buck.demo.BuildConfig.EXOPACKAGE_FLAGS); } }
88
2,908
package com.xuhao.didi.core.utils; /** * Created by xuhao on 2017/6/9. */ public class SLog { private static boolean isDebug; public static void setIsDebug(boolean isDebug) { SLog.isDebug = isDebug; } public static boolean isDebug() { return isDebug; } public static void ...
282
8,747
#!/usr/bin/env python from __future__ import division, print_function import io import sys import unittest from test_utils import Py23TestCase try: from typing import IO except ImportError: pass # only needed for type annotations try: import check_sizes except ImportError: sys.path.append('..') ...
1,467
5,169
<reponame>Gantios/Specs { "name": "SwitchLanguage", "version": "1.0.7", "license": "MIT", "summary": "Manage translation easily in your app", "homepage": "https://github.com/NicolasPoincet/SwitchLanguage", "authors": { "<NAME>": "", "<NAME>": "", "<NAME>": "" }, "source": { "git": "https...
245
362
package subreddit.android.appstore.screens.details; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.support.v4.view.ViewPager; import android.support.v7.widget.Toolbar; import android.view.View; import android.widget.TextView; import java.util.List; import butterkn...
861
9,156
/** * 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...
765
5,250
<reponame>jiandiao/flowable-engine /* 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 ...
8,146
10,192
<reponame>mahak/akka /* * Copyright (C) 2009-2021 Lightbend Inc. <https://www.lightbend.com> */ package akka.japi; import akka.japi.pf.FI; import akka.japi.pf.Match; import org.junit.Assert; import org.junit.Test; import org.scalatestplus.junit.JUnitSuite; import scala.MatchError; import static org.junit.Assert.*;...
1,543
4,224
<reponame>uavosky/uavosky-px4<filename>src/lib/matrix/test/MatrixSliceTest.cpp<gh_stars>1000+ /**************************************************************************** * * Copyright (C) 2022 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * mo...
3,626
2,542
<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once ...
470
493
package cn.workcenter.common.response; public interface ResponseBody { }
22
347
//////////////////////////////////////////////////////////////////////////////// // Copyright 2017 Intel Corporation // // 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://w...
555
9,402
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include <limits.h> #include <stdio.h> #include <stdint.h> #include <math.h> #ifdef _MSC_VER #define DLLEXPORT __declspec(dllexport) #else #define DLLEXPORT __attribute__((visibilit...
2,897
348
{"nom":"Avesnelles","circ":"12ème circonscription","dpt":"Nord","inscrits":1963,"abs":1222,"votants":741,"blancs":43,"nuls":27,"exp":671,"res":[{"nuance":"REM","nom":"<NAME>","voix":379},{"nuance":"FN","nom":"<NAME>","voix":292}]}
91
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration */ #import <ManagedConfiguration/MCPayload.h> @interface MCUnknownPayload : MCPayload { } - (id)description; // 0x1d61d - (id)subtitle1Description; // 0x1d689 @en...
111
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"<NAME>","dpt":"Yvelines","inscrits":43,"abs":13,"votants":30,"blancs":4,"nuls":1,"exp":25,"res":[{"panneau":"1","voix":13},{"panneau":"2","voix":12}]}
87
808
/* * Copyright 2017 dmfs GmbH * * 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 in...
719
515
#ifndef BITCOIN_SIGHASHTYPE_H #define BITCOIN_SIGHASHTYPE_H #include <string> #include <cstdint> /** Signature hash types/flags */ enum class SigHashType : uint32_t { UNDEFINED = 0, ALL = 1, NONE = 2, SINGLE = 3, FORKID = 0x40, ANYONECANPAY = 0x80, }; inline SigHashType operator|(SigHashType ...
654
478
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "pch.h" #include "Util.h" #include "AdaptiveColorConfig.h" #include "AdaptiveHighlightColorConfig.h" #include "AdaptiveColorConfig.g.cpp" namespace winrt::AdaptiveCards::Rendering::Uwp::implementation { Adaptiv...
215
852
import FWCore.ParameterSet.Config as cms process = cms.Process("TestCocoa") process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.debugModules = cms.untracked.vstring('cocoa') process.MessageLogger.cout = cms.untracked.PSet( threshold = cms.untracked.string('DEBUG') ) process.maxEvents = ...
1,476
584
<filename>src/test/java/org/springframework/data/mapping/model/PersistentPropertyAccessorTests.java /* * Copyright 2018-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...
2,637
1,068
<filename>handlebars/src/test/java/com/github/jknack/handlebars/issues/Issue611.java package com.github.jknack.handlebars.issues; import com.github.jknack.handlebars.v4Test; import org.junit.Test; public class Issue611 extends v4Test { @Test public void shouldScapeRightBracket() throws Exception { shouldComp...
237
14,668
<filename>chrome/browser/ui/hid/hid_chooser_controller_unittest.cc // 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. #include <memory> #include <set> #include <string> #include <utility> #include "base/c...
13,414
940
/* * test-powerpc.cpp - PowerPC regression testing * * Kheperix (C) 2003-2005 <NAME> * * 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 you...
37,753
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,985
2,542
<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "Ra.S...
441
818
/* GRT MIT License Copyright (c) <2012> <<NAME>, Media Lab, MIT> 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, ...
1,763
9,959
class LoggerCustomLog { @java.lang.SuppressWarnings("all") private static final MyLogger log = MyLoggerFactory.create(LoggerCustomLog.class); } class MyLoggerFactory { static MyLogger create(Class<?> clazz) { return null; } } class MyLogger { }
90
517
<filename>tensorflow-framework/src/main/java/org/tensorflow/framework/data/DatasetIterator.java /* * Copyright 2020 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 ...
3,261
373
<reponame>noittom/finmath-lib /** * Provides various day count conventions, e.g., as used in the definition of coupon payments of interest rate products. * * @author <NAME> */ package net.finmath.time.daycount;
64
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...
2,389
2,338
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve2 -fallow-half-arguments-and-returns -fsyntax-only -verify %s // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve2 -fallow-half-arguments-and-returns -fsyntax-only -verify %s #ifdef SVE_OVERLOADED_FORMS // A...
918
765
<reponame>hyu-iot/gem5 #include <systemc.h> sc_trace_file* sc_tf; class Mod : public sc_module { public: sc_in_clk clk; sc_in<sc_uint<37> > a; sc_inout<bool > b; SC_HAS_PROCESS(Mod); void foo() { cout << sc_time_stamp() << "\n"; cout << " a = " << a << " b = " << b << "\n"; cout <<...
503
559
/** * Copyright (c) 2014 Netflix, 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...
537
16,989
<gh_stars>1000+ /* * ProGuard -- shrinking, optimization, obfuscation, and preverification * of Java bytecode. * * Copyright (c) 2002-2019 Guardsquare NV * * 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...
3,484