max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,151
<reponame>zipated/src<filename>chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadActivityTest.java // 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. package org.chromium.chrome.bro...
14,768
879
package org.zstack.sdk; public class DetachAppBuildSystemToZoneResult { }
27
412
<reponame>dave1667/graphd /* 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 applicab...
2,153
12,278
<gh_stars>1000+ /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // test_const.cpp // (C) Copyright 2002 <NAME> - http://www.rrsd.com . // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // h...
239
650
<reponame>phoffmeister/serenity /* * Copyright (c) 2021, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <LibGUI/CheckBox.h> #include <LibGUI/Window.h> #include "DoubleClickArrowWidget.h" class MouseWidget final : public GUI::Widget { C_OBJECT(MouseWidget) publi...
323
575
<gh_stars>100-1000 // 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. #include "ash/wm/desks/desk_animation_impl.h" #include "ash/public/cpp/ash_features.h" #include "ash/public/cpp/presentation_time_reco...
4,844
518
{ "name": "Artmoi", "category": "Design & Creativity", "start_url": "https://studio.artmoi.me/login", "icons": [ { "src": "https://cdn.filestackcontent.com/Yc8lFsJRjWlneI6xLTzF" }, { "src": "https://cdn.filestackcontent.com/8P7sUb4dSQ6kVSTHZfO8", "platform": "browserx" } ], ...
214
2,151
<gh_stars>1000+ // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_FETCHER_WIN_H_ #define CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHRO...
494
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...
472
428
/** * Copyright 2008 - 2015 The Loon Game Engine 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 appl...
3,506
1,144
<gh_stars>1000+ package org.eevolution.model; import javax.annotation.Nullable; import org.adempiere.model.ModelColumn; /** Generated Interface for PP_Order_BOM * @author metasfresh (generated) */ @SuppressWarnings("unused") public interface I_PP_Order_BOM { String Table_Name = "PP_Order_BOM"; // /** AD_Table...
4,976
5,169
{ "name": "CBJsonModel", "version": "1.0.6", "summary": "Simple, Faster build some form submit App with catgory, Wrapper UITableView delegate and dataSource with block.", "description": "对 JSONModel 的对象进行类别扩展, 方便'语法糖'式的调用 :)\n添加UITableView的相关刷新及事件在Model的配置回调\n已经添加 JSONModel 的依赖,不需要再用 pod 导入JSONModel 库", "home...
401
423
<filename>services-api/src/main/java/io/scalecube/services/exceptions/UnauthorizedException.java package io.scalecube.services.exceptions; public class UnauthorizedException extends ServiceException { public static final int ERROR_TYPE = 401; public UnauthorizedException(int errorCode, String message) { supe...
154
563
package com.gentics.mesh.graphdb.orientdb; import static org.junit.Assert.assertEquals; import java.util.concurrent.CountDownLatch; import org.junit.Test; import com.tinkerpop.blueprints.impls.orient.OrientGraph; import com.tinkerpop.blueprints.impls.orient.OrientGraphFactory; public class NestedOrientDBTransactio...
923
434
<gh_stars>100-1000 /* * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in...
501
578
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
1,155
1,382
<filename>src/fft/tests/data/fft_data_30.c /* * Copyright (c) 2007 - 2015 <NAME> * * 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 r...
2,067
14,668
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_TEST_MOCK_COMMIT_DEFERRING_CONDITION_H_ #define CONTENT_TEST_MOCK_COMMIT_DEFERRING_CONDITION_H_ #include "base/callback.h" #include "cont...
1,067
2,496
<reponame>tenaciousRas/Openfire<gh_stars>1000+ package org.jivesoftware.openfire.ldap; import org.junit.Test; import javax.naming.ldap.LdapName; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import static org.junit.Assert.*; /** * Unit tests that verify the fun...
2,024
6,526
#include <seastar/util/std-compat.hh> #include <seastar/core/sstring.hh> #include <boost/lexical_cast.hpp> namespace seastar { sstring read_first_line(std::filesystem::path sys_file); template <typename Type> Type read_first_line_as(std::filesystem::path sys_file) { return boost::lexical_cast<Type>(read_first_li...
133
432
<filename>contrib/bmake/lst.c /* $NetBSD: lst.c,v 1.104 2021/02/01 19:39:31 rillig Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME>. * * Redistribution and use in sou...
2,387
821
<filename>Test/FunctionalTests/CommonTestScripts/TimelineEditorUtil.py #Copyright (c) 2014 Sony Computer Entertainment America LLC. See License.txt. import System import Test def VerifyGroup(expected, actual): print "Expected: " + expected.Name print "Actual: " + actual.Name Test.Equal(expect...
1,394
5,169
<filename>Specs/CrayWebViewController/0.7.6/CrayWebViewController.podspec.json { "name": "CrayWebViewController", "version": "0.7.6", "summary": "Easy to use commonplace UIWebViewController.", "homepage": "https://github.com/plusr/CrayWebViewController", "screenshots": "http://gyazo.com/88c8b0a4d606815f813d77...
1,042
598
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from flask import Blueprint from ..jwt_wrapper import check_jwt_validity from ..objects import redis_controller # Flask related. blueprint = Blueprint(name="containers", import_name=__name__) URL_PREFIX = "/v1/containers" # Api functions. ...
212
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...
31,999
1,741
<filename>plugin/lighthouse/ui/coverage_combobox.py import logging import weakref from lighthouse.util import * from lighthouse.util.qt import * from lighthouse.util.disassembler import disassembler logger = logging.getLogger("Lighthouse.UI.ComboBox") #----------------------------------------------------------------...
12,336
1,125
<filename>server/src/test/java/org/elasticsearch/discovery/zen/MinimumMasterNodesInClusterStateIT.java<gh_stars>1000+ /* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasti...
1,121
19,438
<reponame>r00ster91/serenity<filename>Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.h /* * Copyright (c) 2021, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <LibSyntax/Highlighter.h> namespace Web::HTML { class SyntaxHighlighter : public Syntax::Highlig...
314
2,151
// 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 NET_INTERFACES_ADDRESS_LIST_MOJOM_TRAITS_H_ #define NET_INTERFACES_ADDRESS_LIST_MOJOM_TRAITS_H_ #include <vector> #include "mojo/public/cpp/bind...
305
978
/* * Copyright 2014 mango.jfaster.org * * The Mango Project 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 ...
338
1,886
// Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) #pragma once #include "StrictModules/Objects/object_type.h" namespace strictmod::objects { class StrictUnion : public StrictInstance { public: StrictUnion( std::weak_ptr<StrictModuleObject> creator, std::vector<std::shared_ptr...
895
573
#!/usr/bin/env python3 from taiseilib.common import ( run_main, ) import subprocess import pathlib import sys import re import os submodule_regex = re.compile('^.[0-9a-f]*? ([^ ]*)(?: .*?)?') def handle_no_git(): # TODO pass def main(args): try: p = subprocess.run(['git', 'submodule', 's...
827
385
<reponame>qasim683/Machine-Learning2<filename>PCA/pca.py<gh_stars>100-1000 from sklearn.decomposition import PCA import pandas as pd from sklearn.preprocessing import StandardScaler import matplotlib.pyplot as plt
75
1,144
<filename>backend/de.metas.adempiere.adempiere/base/src/main/java-gen/org/compiere/model/X_AD_AlertProcessor.java /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All ...
2,854
372
<reponame>mjhopkins/google-api-java-client-services /* * 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 o...
951
2,406
<filename>model-optimizer/extensions/front/onnx/one_hot_normalize.py # Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np from extensions.front.split_normalizer import SqueezeAxis from extensions.ops.split import Split from mo.front.common.replacement import FrontReplac...
600
455
<gh_stars>100-1000 // // SYMetadataMakerNikon.h // SYPictureMetadataExample // // Created by <NAME> on 12/16/12. // Copyright (c) 2012 Syan. All rights reserved. // #import "SYMetadataBase.h" typedef enum : NSUInteger { SYMetadataMakerNikonShootingMode_Continuous = 1 << 0L, SYMetadataMakerNiko...
1,142
322
<gh_stars>100-1000 import bap from common.utils import adapt_int_width def build_exp(**kwargs): t = kwargs['t'] if t == 'Load': return LoadExp(**kwargs) elif t == 'Store': return StoreExp(**kwargs) elif t == 'BinOp': return BinOpExp(**kwargs) elif t == 'UnOp': retur...
3,007
928
<reponame>gargakshit/core #!/usr/bin/env python3 def hello_world(text): return 'Python hello_world: ' + text
47
7,482
#ifndef __RT_HW_SERIAL_H__ #define __RT_HW_SERIAL_H__ #include <rthw.h> #include <rtthread.h> #define USTAT_RCV_READY 0x01 /* receive data ready */ #define USTAT_TXB_EMPTY 0x02 /* tx buffer empty */ #define BPS 115200 /* serial baudrate */ #define UART_RX_BUFFER_SIZE 64 #define UAR...
628
369
<filename>cdap-docs/tools/sitemap-xml.py<gh_stars>100-1000 #!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright © 2017 Cask Data, 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 a...
2,663
634
// // Thunderbolt3Unblocker.c // Thunderbolt3Unblocker // // Created by <NAME> on 2/1/18. // Copyright © 2018 <NAME>. All rights reserved. // #include <mach/mach_vm.h> #include <os/log.h> #include <libkern/version.h> #include "NVRAM.h" #include "xnu_override.h" #include "xnu_override_test.h" int _ZN24IOThunder...
1,017
2,816
//===----------------------------------------------------------------------===// // DuckDB // // duckdb/common/enums/operator_result_type.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/common/constants.hpp" namespace du...
505
1,408
<gh_stars>1000+ /* * Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved. * * Copyright 2020 NXP * * SPDX-License-Identifier: BSD-3-Clause */ #include <stddef.h> #include <drivers/auth/auth_mod.h> #if USE_TBBR_DEFS #include <tools_share/tbbr_oid.h> #else #include <platform_oid.h> #endif ...
3,646
535
/* * 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,694
1,384
#include "num_cvt.h" #include "utf8_strings.h" #include <vector> static std::vector<litehtml::tchar_t> latin_lower = { _t('a'), _t('b'), _t('c'), _t('d'), _t('e'), _t('f'), _t('g'), _t('h'), _t('i'), _t('j'), _t('k'), _t('l'), _t('m'), _t('n'), _t('o'), _t('p'), _t('q'), _t('r'), _t('s'), _t('t'), _t('u'), _t('v'), _...
1,505
367
import argparse import logging import sys from typing import Callable, Tuple from asn1crypto import cms as asn1cms from asn1crypto import core as asn1core from asn1crypto import x509 as asn1x509 from cryptography import x509 from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.prim...
4,899
771
<filename>helpers/css-triangle-generator.json { "name": "CSS Triangle Generator", "url": "http://apps.eky.hk/css-triangle-generator/", "desc": "Create CSS-only triangles", "tags": [ "CSS" ], "maintainers": [], "addedAt": "2019-12-29" }
105
1,338
/* * Copyright 2003-2009 Haiku Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> */ #ifndef PRINT_OPTIONS_WINDOW_H #define PRINT_OPTIONS_WINDOW_H #include <Messenger.h> #include <RadioButton.h> #include <Rect.h> #include <TextControl.h> #include <Window....
985
331
<filename>datmo/core/storage/local/dal.py import os from kids.cache import cache from datetime import datetime from datmo.core.util.i18n import get as __ from datmo.core.entity.model import Model from datmo.core.entity.code import Code from datmo.core.entity.environment import Environment from datmo.core.entity.file_c...
3,964
2,517
<reponame>seewpx/actor-framework<filename>libcaf_io/caf/io/basp/fwd.hpp // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #pragma once name...
156
4,036
unsigned int new_mask = old_mask || 0x0100; //wrong, || logical operator just returns 1 or 0 unsigned int new_mask = old_mask | 0x0100; //right, | is a bit-mask operator
53
677
// Copyright 2017 The Lynx Authors. All rights reserved. #ifndef UI_BASE_RENDER_OBJECT_ATTR_H_ #define UI_BASE_RENDER_OBJECT_ATTR_H_ typedef enum { SCROLL_TOP = 0, SCROLL_LEFT = 1 } LynxRenderObjectAttr; #endif // UI_BASE_RENDER_OBJECT_ATTR_H_
119
1,299
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
1,327
315
<gh_stars>100-1000 /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "L...
630
448
/* * Copyright 2015-2017 Spotify AB * Copyright 2016-2019 The Last Pickle Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
14,664
400
/* * * Copyright (c) 2013 - 2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
541
637
<filename>core/src/main/java/hudson/search/UserSearchProperty.java package hudson.search; import hudson.Extension; import hudson.model.User; import hudson.model.UserProperty; import hudson.model.UserPropertyDescriptor; import net.sf.json.JSONObject; import org.jenkinsci.Symbol; import org.kohsuke.stapler.StaplerReque...
603
658
<reponame>bertid/clean-pvnet #include <iostream> #include <ceres/rotation.h> #include <ceres/ceres.h> #include <random> using namespace std; struct ReprojectionErrorArray { ReprojectionErrorArray( double x2d,double y2d, double x3d,double y3d, double z3d, double wxx, double wxy, ...
2,483
4,126
// NoiseSpeedTest.cpp // Implements the main app entrypoint /* This program compares the performance of the highly-optimized noise implementation in Cuberite, and the Simplex noise. Since the Simplex noise is not yet implemented in Cuberite, an own implementation is provided. Also, the performance difference between ...
1,418
4,756
<gh_stars>1000+ /* * Copyright (C) 2017 The Libphonenumber 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...
1,383
1,109
<gh_stars>1000+ /******************************************************************************* * Copyright 2016 Intuit * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * <p> * htt...
666
640
#include "test.h" #include <stdio.h> #include <stdlib.h> void myfunc() { } int callee1(double x, double y) __z88dk_callee { double a,b,c; myfunc(); return -23; } long callee2(double x, double y) __z88dk_callee { double a,b,c; myfunc(); return -27L; } double callee3(double x, double y)...
412
14,668
// 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. // This file is only used for OS_FUCHSIA, since there is no crash reporter // for that platform. #include "build/build_config.h" #include "components/cra...
282
3,075
/** * Regression: MethodNotFoundException * https://github.com/powermock/powermock/issues/717 * * org.powermock.reflect.exceptions.MethodNotFoundException: No methods matching the name(s) accept were found in the class hierarchy of class java.lang.Object. at org.powermock.reflect.internal.WhiteboxImpl.getMethods(W...
358
358
#pragma once #include <QCheckBox> #include <QSpinBox> #include <agz/editor/renderer/export/export_renderer.h> #include <agz/editor/ui/utility/color_holder.h> #include <agz/editor/ui/utility/real_slider.h> #include <agz/editor/ui/utility/vec_input.h> AGZ_EDITOR_BEGIN class ExportRendererPT : public ExportRendererWid...
371
531
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Misc/AutomationTest.h" //For IAutomationLatentCommand /** * A command that gets completed after a random delay */ class FRandomDelayCommand : public IAutomationLatentCommand { private: ...
257
407
package com.alibaba.tesla.appmanager.domain.core; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 用于实例侧的 Condition 描述 (for ComponentInstance / TraitInstance) * * @author <EMAIL> */ @Data @Builder @NoArgsConstructor @...
279
4,310
<reponame>lion2486/twitter-connect-plugin<filename>src/ios/TwitterKit.framework/Headers/TWTROAuthSigning.h // // TWTROAuthSigning.h // // Copyright (c) 2015 Twitter. All rights reserved. // #import <TwitterCore/TWTRCoreOAuthSigning.h> @class TWTRAuthConfig; @class TWTRSession; /** * This class provides tools to ...
424
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Notch", "definitions": [ "An indentation or incision on an edge or surface.", "Each of a series of holes for the tongue of a buckle.", "A nick made on something in order to keep a score or record.", "A point or degree in a scale.", ...
159
468
<filename>Losses/SaturationLoss.py import torch from Losses.LossInterface import LossInterface class SaturationLoss(LossInterface): def __init__(self,**kwargs): super().__init__(**kwargs) @staticmethod def add_settings(parser): parser.add_argument("--saturation_weight", type=float, h...
608
314
class WordHelper(object): def __init__(self, format_helper): self.format_helper = format_helper self.word_category_words = {} def add_word(self, word_category, word): self.word_category_words.setdefault(word_category, set([])) self.word_category_words[word_category].add(word) def get_template...
273
335
<gh_stars>100-1000 { "word": "Diminutive", "definitions": [ "Extremely or unusually small.", "(of a word, name, or suffix) implying smallness, either actual or imputed to convey affection, scorn, etc. (e.g. teeny, -let, -kins)." ], "parts-of-speech": "Adjective" }
118
1,338
<reponame>Kirishikesan/haiku<gh_stars>1000+ #include <stdio.h> #include <string.h> #include <sys/ioctl.h> #include <math.h> #include <OS.h> /* DDC/EDID library */ //#include <create_display_modes.h> #include <ddc.h> //#include <edid.h> /* Nvidia driver */ #include "DriverInterface.h" #include "nv_globals.h" #include ...
167
1,444
package mage.cards.d; import java.util.UUID; import mage.abilities.DelayedTriggeredAbility; import mage.abilities.effects.common.CreateDelayedTriggeredAbilityEffect; import mage.abilities.effects.common.GainLifeEffect; import mage.abilities.effects.common.continuous.BoostAllEffect; import mage.cards.CardImpl; import ...
874
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...
10,203
515
/*========================================================================= Library: CTK Copyright (c) Kitware 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.ap...
1,022
5,133
<gh_stars>1000+ /* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.test.updatemethods.manysourcearguments; import org.mapstruct.Mapper; import org.mapstruct.MappingTarget; import org.mapstruct.fact...
172
2,360
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Hypre(Package): """Hypre is included here as an example of a package that depends on ...
219
5,169
{ "name": "InterruptibleAction", "version": "1.0.0", "summary": "A wrapper that creates an `Action` that can be interrupted.", "description": "A wrapper that creates an `Action` that can be interrupted.\nIt should be used in cases where observing the state of the unit of should be\nobserved.\nAn `InterruptibleA...
297
806
<reponame>Fvtvbt/dont-kill-my-app package com.evenwell.powersaving.g3.exception; import android.content.Context; import android.util.ArraySet; import com.evenwell.powersaving.g3.PowerSavingUtils; import com.evenwell.powersaving.g3.provider.BackDataDb; import java.util.Set; public class BackgroundCleanWhitelist { ...
930
21,684
// Copyright 2010-2014 RethinkDB, all rights reserved. #include "arch/runtime/runtime.hpp" #include <inttypes.h> #include <functional> #include "arch/runtime/starter.hpp" #include "arch/runtime/thread_pool.hpp" #include "do_on_thread.hpp" bool in_thread_pool() { return linux_thread_pool_t::get_thread_pool() != ...
1,005
4,339
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
652
529
import argparse from unittest.mock import MagicMock, create_autospec, patch import pytest from django.db import models from django.test import override_settings from psqlextra.backend.introspection import ( PostgresIntrospectedPartitionTable, PostgresIntrospectedPartitonedTable, ) from psqlextra.management....
2,104
803
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import os import shutil from xml.dom import minidom from . import ( process_atlas, process_font, process_starling_atlas, oxygine_helper ) def as_bool(attr): if not attr: return False lw = attr.lower() return l...
4,680
460
<reponame>dyzmapl/BumpTop /* * Copyright (C) 2007 Apple 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: * * 1. Redistributions of source code must retain the above copyright ...
892
334
<gh_stars>100-1000 // Auto generated code, do not modify package nxt.http.callers; import nxt.http.APICall; public class GetAliasCall extends APICall.Builder<GetAliasCall> { private GetAliasCall() { super(ApiSpec.getAlias); } public static GetAliasCall create() { return new GetAliasCall()...
276
16,461
<filename>ios/versioned-react-native/ABI42_0_0/Expo/EXUpdates/ABI42_0_0EXUpdates/ABI42_0_0EXUpdatesModule.h // Copyright © 2019 650 Industries. All rights reserved. #import <ABI42_0_0UMCore/ABI42_0_0UMExportedModule.h> #import <ABI42_0_0UMCore/ABI42_0_0UMModuleRegistryConsumer.h> @interface ABI42_0_0EXUpdatesModule ...
167
369
/** @file @brief Header @date 2015 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2015 Sensics, 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 a...
1,782
735
/** * Tencent is pleased to support the open source community by making DCache available. * 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 t...
2,930
656
# Generated by Django 3.0.7 on 2020-08-08 07:15 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('part', '0046_auto_20200804_0107'), ] operations = [ migrations.AlterModelOptions( name='part', options={'ordering': ['name']...
174
775
<filename>external/mmsegmentation/tests/ote_params_validation/test_ote_pipelines_params_validation.py # Copyright (C) 2021-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # import pytest from ote_sdk.test_suite.e2e_test_system import e2e_pytest_unit from segmentation_tasks.extension.utils.pipelines impor...
1,265
2,338
<gh_stars>1000+ //===--- RedundantMemberInitCheck.cpp - clang-tidy-------------------------===// // // 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 // //===-----------...
1,101
3,494
<reponame>mingw4/Cinder // // detail/impl/strand_executor_service.ipp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2021 <NAME> (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LIC...
1,365
1,391
<filename>src/cmd/vbackup/disknfs.c<gh_stars>1000+ #include <u.h> #include <libc.h> #include <ip.h> #include <thread.h> #include <sunrpc.h> #include <nfs3.h> #include <diskfs.h> #include "nfs3srv.h" Disk *disk; Fsys *fsys; void usage(void) { fprint(2, "usage: disknfs [-RTr] disk\n"); threadexitsall("usage"); } ext...
1,248
381
/* Bool object interface */ #ifndef Py_BOOLOBJECT_H #define Py_BOOLOBJECT_H #ifdef __cplusplus extern "C" { #endif #define PyBoolObject PyIntObject #define Py_False ((PyObject *) &_Py_ZeroStruct) #define Py_True ((PyObject *) &_Py_TrueStruct) /* Macros for returning Py_True or Py_False, respectively */ #define Py_...
215
590
/******************************************************************************* * Copyright 2017 Bstek * * 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/l...
7,406
332
<gh_stars>100-1000 package org.python.modules; import org.python.core.Py; import org.python.core.PyObject; import org.python.expose.ExposedFunction; import org.python.expose.ExposedModule; /** * Created by isaiah on 7/15/16. */ @ExposedModule(name = "faulthandler") public class FaultHandler { @ExposedFunction ...
368
1,338
/* * Copyright 2008, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include "compatibility.h" #include <ByteOrder.h> #include "fssh_byte_order.h" uint16_t __fssh_swap_int16(uint16_t value) { return __swap_int16(value); } uint32_t __fssh_swap_int32(uint32_t value) { return __swap_int32...
179
311
<gh_stars>100-1000 package datadog.smoketest.springboot; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.testcontainers.containers.MongoDBContainer; import org.testcontainers.utility.DockerImageName; @SpringBootApplication public class...
290