max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
409
<filename>src/SSVOpenHexagon/Utils/LuaMetadataProxy.cpp // Copyright (c) 2013-2020 <NAME> // License: Academic Free License ("AFL") v. 3.0 // AFL License page: https://opensource.org/licenses/AFL-3.0 #include "SSVOpenHexagon/Utils/LuaMetadataProxy.hpp" #include "SSVOpenHexagon/Utils/LuaMetadata.hpp" #include <SSVUti...
1,963
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Mauzens-et-Miremont","circ":"4ème circonscription","dpt":"Dordogne","inscrits":280,"abs":144,"votants":136,"blancs":12,"nuls":9,"exp":115,"res":[{"nuance":"REM","nom":"<NAME>","voix":66},{"nuance":"FI","nom":"<NAME>","voix":49}]}
115
2,112
/* * 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...
3,880
460
#include "../../../tools/designer/src/lib/shared/qdesigner_utils_p.h"
29
14,966
{ "typescript.tsdk": "node_modules/typescript/lib", "deno.enablePaths": ["./packages/remix-deno/"], "deno.importMap": "./.vscode/deno_resolve_npm_imports.json" }
76
2,121
<reponame>unicell/glb-director /* * BSD 3-Clause License * * Copyright (c) 2018 GitHub. * 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 must retain...
2,719
532
"""Example of streaming a file and printing status updates. python stream.py 10.0.0.4 file.mp3 """ import asyncio import sys import pyatv from pyatv.interface import Playing, PushListener LOOP = asyncio.get_event_loop() class PushUpdatePrinter(PushListener): """Print push updates to console.""" def plays...
560
3,084
<filename>biometrics/driver/Driver.h /*++ THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. Copyright (c) Microsoft Corporat...
869
3,212
<reponame>westdart/nifi<filename>nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/java/org/apache/nifi/snmp/operations/SNMPTrapReceiver.java<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * ...
1,208
1,249
#include <wayfire/plugin.hpp> #include <wayfire/output.hpp> #include <wayfire/core.hpp> #include <wayfire/matcher.hpp> #include <wayfire/workspace-manager.hpp> #include <wayfire/signal-definitions.hpp> #include "tree-controller.hpp" namespace wf { class tile_workspace_implementation_t : public wf::workspace_implement...
9,209
3,252
<filename>tests/data/user_dir/__init__.py<gh_stars>1000+ # Copyright (c) Facebook, Inc. and its affiliates. # flake8: noqa: F401 from . import datasets, models
57
927
<gh_stars>100-1000 """ Overview ======== Extra mode for cplusplus programming language. Key-Commands ============ Namespace: cplusplus-mode Mode: NORMAL Event: <Key-exclam> Description: Switch to C++ mode. """ def cplusplus_mode(area): area.chmode('C++') def install(area): area.add_mode('C++') area.in...
158
1,493
<reponame>Jin0331/RoseTTAFold import torch import torch.nn as nn import torch.nn.functional as F import math from Transformer import EncoderLayer, Encoder # Initial embeddings for target sequence, msa, template info # positional encoding # option 1: using sin/cos --> using this for now # option 2: learn positiona...
2,675
602
package io.stargate.it.driver; import com.datastax.oss.driver.api.core.CqlIdentifier; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Annotates a method parameter in a Junit 5 test, to indicate that...
223
3,385
__version__ = '4.0.0' def get_version(): return __version__
27
446
<filename>Assets/StreamingAssets/config.json<gh_stars>100-1000 { "CenterOfMassJointId": 0, "LoggingToZion": false, "DrawOnlyMainSkeleton": true, "IsFpsDisplayActive": false, "DemoSceneConfig": { "DistanceFromCamera": 2.5, "CameraHeight": 1.15, "MonitoringSquareWidth": 1, ...
960
310
#ifndef SRC_CONFIG_TRACING_H_ #define SRC_CONFIG_TRACING_H_ #include "parson.h" #include "src/config.h" #include "src/common.h" bud_error_t bud_config_load_tracing(bud_config_trace_t* trace, JSON_Object* obj); bud_error_t bud_config_init_tracing(bud_config_trace_t* trace); void bu...
200
1,273
package org.broadinstitute.hellbender.tools.funcotator.filtrationRules; import htsjdk.variant.variantcontext.VariantContext; import org.broadinstitute.hellbender.tools.funcotator.FilterFuncotations.Reference; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Set; public clas...
596
2,177
<gh_stars>1000+ /** * 线程辅助 */ package org.nutz.runner;
34
2,151
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.ntp.cards; import android.text.TextUtils; import org.chromium.base.Log; import org.chromium.base.VisibleForTesting; ...
1,505
715
<gh_stars>100-1000 #ifndef HEAP_H #define HEAP_H #define MAX_NODES 100 /* An implementation of a MinHeap, a tree based data structure in which which each node's value is lesser than its children.*/ typedef struct { int N; int heap[MAX_NODES]; } MinHeap; void add(MinHeap* h, int value); void rmv(MinHeap* h,...
208
3,197
<filename>app/src/main/java/com/gigamole/sample/screens/HorizontalPagerFragment.java<gh_stars>1000+ package com.gigamole.sample.screens; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import and...
810
645
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2013 Intel Corporation. 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 must retain the above copyright noti...
1,439
1,006
<reponame>alvin1991/incubator-nuttx<gh_stars>1000+ /**************************************************************************** * arch/arm/include/cxd56xx/audio.h * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this w...
10,175
918
/* * 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 ...
721
3,657
<gh_stars>1000+ package com.bluelinelabs.logansquare.processor; import com.bluelinelabs.logansquare.annotation.JsonField; import com.bluelinelabs.logansquare.annotation.JsonIgnore; import com.bluelinelabs.logansquare.annotation.JsonIgnore.IgnorePolicy; import com.bluelinelabs.logansquare.annotation.JsonObject; import...
729
3,240
<gh_stars>1000+ /* * Copyright 2016, 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 ...
1,193
427
// Tests for instrumentation of C++ constructors and destructors. // // RUN: %clang_cc1 -triple x86_64-apple-macosx10.11.0 -x c++ %s -o %t -emit-llvm -fprofile-instrument=clang // RUN: FileCheck %s -input-file=%t -check-prefix=INSTR // RUN: FileCheck %s -input-file=%t -check-prefix=NOINSTR struct Foo { Foo() {} Fo...
584
318
/* SCCS Id: @(#)dungeon.h 3.4 1999/07/02 */ /* Copyright (c) <NAME>, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ #ifndef DUNGEON_H #define DUNGEON_H typedef struct d_flags { /* dungeon/level type flags */ Bitfield(town, 1); /* is this a town? (levels only) */ Bitfield(he...
2,504
321
<reponame>AppSecAI-TEST/qalingo-engine /** * Most of the code in the Qalingo project is copyrighted Hoteia and licensed * under the Apache License Version 2.0 (release version 0.8.0) * http://www.apache.org/licenses/LICENSE-2.0 * * Copyright (c) Hoteia, 2012-2014 * http://www.hoteia.com ...
1,966
1,755
/*========================================================================= Program: Visualization Toolkit Module: vtkImageToPolyDataFilter.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distrib...
17,908
350
<reponame>auz-jsm/MiMangaNu package ar.rulosoft.mimanganu.servers; import android.content.Context; import android.content.SharedPreferences; import android.text.TextUtils; import androidx.preference.PreferenceManager; import java.io.IOException; import java.net.URLEncoder; import java.util.ArrayList; import java.uti...
8,184
11,433
<reponame>MSLars/allennlp<filename>tests/data/instance_test.py import numpy from allennlp.common.testing import AllenNlpTestCase from allennlp.data import Instance from allennlp.data.fields import TextField, LabelField, TensorField from allennlp.data.token_indexers import PretrainedTransformerIndexer from allennlp.data...
1,071
907
package org.jbox2d.collision.broadphase; import org.jbox2d.callbacks.DebugDraw; import org.jbox2d.callbacks.PairCallback; import org.jbox2d.callbacks.TreeCallback; import org.jbox2d.callbacks.TreeRayCastCallback; import org.jbox2d.collision.AABB; import org.jbox2d.collision.RayCastInput; import org.jbox2d.common.Vec2;...
1,010
1,083
<gh_stars>1000+ #ifndef DALE_LINKAGE #define DALE_LINKAGE namespace dale { /*! Linkage Contains the variable and function linkage definitions. */ namespace Linkage { enum { Null, Auto, Intern, Extern, Extern_C, Extern_Weak }; /*! Check whether the linkage is an extern linkage. * @param linkage The linkage. */...
308
1,511
/* * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2010 Instituto Nokia de Tecnologia - INdT * Copyright (C) 2010 ST-Ericsson SA * * Author: <NAME> <<EMAIL>> for ST-Ericsson.
67
852
<reponame>ckamtsikis/cmssw import FWCore.ParameterSet.Config as cms # Disclaimer : # # This set of Pythia configuration cards has been copied # and pasted from # RecoTracker/RoadSearchCloudMaker/test/sim_pythia.cfg # prepared by <NAME> (FNAL) # # the only change is MSTP(128)=2 - this option takes decay # products...
2,584
562
""" The approach consists of building regex patterns using the python classes then serializing to a raw regex string. The resulting regex string is parsed by Eacc and a similar structure is built using the same previous classes it is serialized to a raw regex then checked against the initial regex string. There are...
27,284
1,146
<gh_stars>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 * ...
1,764
911
/* This library 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 later version. */ package org.gjt.jclasslib.io; /** Utility class to l...
457
4,357
<gh_stars>1000+ import unittest import torch from pytorch_metric_learning.losses import ( ContrastiveLoss, CrossBatchMemory, MultiSimilarityLoss, NTXentLoss, ) from pytorch_metric_learning.miners import ( DistanceWeightedMiner, MultiSimilarityMiner, PairMarginMiner, TripletMarginMiner,...
15,110
7,737
extern zend_class_entry *phalcon_assets_filterinterface_ce; ZEPHIR_INIT_CLASS(Phalcon_Assets_FilterInterface); ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_assets_filterinterface_filter, 0, 1, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, content, IS_STRING, 0) ZEND_END_ARG_INFO() ZEPHIR_INIT_FUNCS(phalcon_assets...
197
376
// Copyright (C) 2020 <NAME> // This file is part of the "Nazara Engine - Platform module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Platform/Icon.hpp> #include <Nazara/Platform/SDL2/IconImpl.hpp> #include <Nazara/Platform/Debug.hpp> namespace Nz { Icon::Icon() = ...
311
312
/* Copyright (C) 2010, Parrot Foundation. =head1 NAME src/embed/strings.c - The Parrot String embedding interface =head1 DESCRIPTION This file implements string functions of the Parrot embedding interface. =head2 Functions =over 4 =cut */ #include "parrot/parrot.h" #include "embed_private.h" #include "parrot/a...
2,937
3,055
<gh_stars>1000+ package io.github.florent37.shapeofview.sample; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import android.view.View; public class MaterialDesignShrineActivity extends AppCompatActivity { View menu; View bottomSheet; View middleSheet; View topSheet; ...
549
417
import random import re import time from datetime import datetime import pandas as pd from requests import Session from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry from requests_futures.sessions import FuturesSession DEFAULT_TIMEOUT = 5 USER_AGENT_LIST = [ "Mozill...
2,869
507
<gh_stars>100-1000 // Copyright 2020 <NAME> // Distributed under Boost license #include <catch/catch.hpp> #include <jsoncons/json.hpp> #include <jsoncons_ext/msgpack/msgpack.hpp> #include <random> #include <common/test_utilities.hpp> using namespace jsoncons; TEST_CASE("MessagePack std::bitset tests") { SECTION(...
2,053
884
<reponame>slyoldfox/blaze-persistence<filename>integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate43Integrator.java /* * Copyright 2014 - 2021 Blazebit. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance w...
3,627
16,989
<reponame>jobechoi/bazel // Copyright 2017 The Bazel 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 // /...
810
488
<filename>tests/roseTests/abstractMemoryObjectTests/expression.c void foo(int i, int j) { int k ; k = i+j - i*j; }
51
488
/* * << Haru Free PDF Library >> -- hpdf_ext_gstate.c * * URL: http://libharu.org * * Copyright (c) 1999-2006 <NAME> <<EMAIL>> * Copyright (c) 2007-2008 <NAME> <<EMAIL>> * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee,...
2,306
313
<reponame>740326093/-<gh_stars>100-1000 // // YBLYunLongImageView.h // YC168 // // Created by 乔同新 on 2017/4/4. // Copyright © 2017年 乔同新. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger,YunLongImageViewType) { YunLongImageViewTypeGood = 0, YunLongImageViewTypeStore }; @interface ...
211
4,772
package example.repo; import example.model.Customer1614; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer1614Repository extends CrudRepository<Customer1614, Long> { List<Customer1614> findByLastName(String lastName); }
87
589
package rocks.inspectit.ui.rcp.model; /** * The Modifier class provides static methods and constants to decode class and member access * modifiers. The constant values are equivalent to the corresponding values in {@link AccessFlag}. * <p> * All the methods/constants in this class are compatible with ones in * <c...
2,192
1,006
<filename>boards/arm/stm32/olimex-stm32-p107/src/olimex-stm32-p107.h /**************************************************************************** * boards/arm/stm32/olimex-stm32-p107/src/olimex-stm32-p107.h * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. Se...
994
6,595
<reponame>yarodevuci/SlackTextViewController // // SlackTextViewController // https://github.com/slackhq/SlackTextViewController // // Copyright 2014-2016 Slack Technologies, Inc. // Licence: MIT-Licence // #import <UIKit/UIKit.h> FOUNDATION_EXPORT double SlackTextViewControllerVersionNumber; FOUNDATION_EXPORT co...
341
313
<filename>ios/Pods/Headers/Private/React/JSCHelpers.h ../../../../../node_modules/react-native/ReactCommon/jschelpers/JSCHelpers.h
51
3,793
<gh_stars>1000+ #ifdef _WIN32 #include <windows.h> #else #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #endif #if defined(__cplusplus) extern "C" { #endif #ifdef _WIN32 int entropy_fun(unsigned char buf[], unsigned int len) { HCRYPTPROV provider; unsigned __int64 pentium_tsc[1]; unsigned in...
482
2,392
// Copyright (c) 2016 CNRS and LIRIS' Establishments (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org) // // $URL: https://github.com/CGAL/cgal/blob/v5.1/Generalized_map/include/CGAL/Generalized_map_operations.h $ // $Id: Generalized_map_operations.h 52164b1 2019-10-19T15:34:59+02:00 Séba...
6,240
1,350
<reponame>billwert/azure-sdk-for-java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.network.generated; import com.azure.core.util.Context; import com.azure.resourcemanager.ne...
1,208
5,169
<reponame>Gantios/Specs { "name": "VelocidiSDK", "version": "0.2.0", "summary": "Velocidi's Objective-C SDK to integrate with iOS apps", "description": "Velocidi's Objective-C SDK to integrate with iOS apps.\nThis is still a very rough draft of the SDK not to ready to be used", "homepage": "https://developers...
384
397
// // AddOccupantsController.h // sample-conference-videochat // // Created by Injoit on 2/25/19. // Copyright © 2019 Quickblox. All rights reserved. // #import "BaseUsersViewController.h" NS_ASSUME_NONNULL_BEGIN @interface AddOccupantsController : BaseUsersViewController @property (strong, nonatomic) NSString *...
122
1,975
<filename>omaha/goopdate/com_wrapper_creator.h // Copyright 2009 Google 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 // // Un...
1,111
332
// Autogenerated from vk-api-schema. Please don't edit it manually. package com.vk.api.sdk.objects.market; import com.google.gson.Gson; import com.google.gson.annotations.SerializedName; import com.vk.api.sdk.objects.Validable; import com.vk.api.sdk.objects.annotations.Required; import com.vk.api.sdk.objects.base.Link...
2,898
2,928
#include "RNGestureHandlerComponentsRegistry.h" #include <CoreComponentsRegistry.h> #include <fbjni/fbjni.h> #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h> #include <react/renderer/components/rncore/ComponentDescriptors.h> #include <react/renderer/components/rngesturehandler/Componen...
852
5,727
package org.mengyun.tcctransaction.support; import org.mengyun.tcctransaction.TransactionManager; import org.mengyun.tcctransaction.recovery.RecoverFrequency; import org.mengyun.tcctransaction.repository.TransactionRepository; import java.util.concurrent.locks.Lock; /** * Created by changming.xie on 2/24/17. */ p...
165
742
<filename>src/main/java/org/support/project/common/bat/BatListener.java package org.support.project.common.bat; /** * Listener for batch event * @author Koda */ public interface BatListener { /** * バッチを非同期(別Thread)で実行した際の処理終了後に呼ばれるリスナー * @param result result */ void finish(JobResult result); ...
158
711
package com.java110.goods.bmo.storeOrderCartEvent; import com.java110.po.storeOrderCartEvent.StoreOrderCartEventPo; import org.springframework.http.ResponseEntity; public interface IDeleteStoreOrderCartEventBMO { /** * 修改购物车事件 * add by wuxw * * @param storeOrderCartEventPo * @return ...
164
867
from gaphor.core import transactional from gaphor.diagram.propertypages import ( ComboModel, PropertyPageBase, PropertyPages, new_resource_builder, ) from gaphor.UML.interactions.interactionsconnect import get_lifeline from gaphor.UML.interactions.message import MessageItem new_builder = new_resource_b...
1,096
1,650
<gh_stars>1000+ ################################################################### # Numexpr - Fast numerical array expression evaluator for NumPy. # # License: MIT # Author: See AUTHORS.txt # # See LICENSE.txt and LICENSES/*.txt for details about copyright and # rights to use. ##########################...
125
22,779
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2021 DBeaver Corp and others * * 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/LICE...
2,144
23,901
<filename>neural_guided_symbolic_regression/models/partial_sequence_model_generator_test.py # coding=utf-8 # Copyright 2021 The Google Research 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 L...
8,101
12,718
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Landlock - User space API * * Copyright © 2017-2020 <NAME> <<EMAIL>> * Copyright © 2018-2020 ANSSI */ #ifndef _LINUX_LANDLOCK_H #define _LINUX_LANDLOCK_H #include <linux/types.h> /** * struct landlock_ruleset_attr - Ruleset definition * * Ar...
1,686
778
<gh_stars>100-1000 package org.aion.precompiled.contracts.ATB; import static org.aion.precompiled.contracts.ATB.BridgeUtilities.toSignature; import com.google.common.annotations.VisibleForTesting; import java.util.HashMap; import java.util.Map; import javax.annotation.Nonnull; import org.aion.precompiled.util.ByteArr...
883
1,273
<filename>src/main/java/org/broadinstitute/hellbender/utils/dragstr/DoubleSequence.java package org.broadinstitute.hellbender.utils.dragstr; import it.unimi.dsi.fastutil.doubles.AbstractDoubleList; import it.unimi.dsi.fastutil.doubles.DoubleList; import org.broadinstitute.barclay.argparser.CommandLineException; import...
2,006
4,994
from django.db import migrations, models import django.db.models.deletion import taggit.managers class Migration(migrations.Migration): dependencies = [ ('dcim', '0002_auto_20160622_1821'), ('virtualization', '0001_virtualization'), ('contenttypes', '0002_remove_content_type_name'), ...
10,574
1,831
<reponame>YangKian/LogDevice /** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "logdevice/test/utils/IntegrationTestBase.h" #in...
582
1,144
<reponame>rlourette/TI_SDK_u-boot-2019.01<gh_stars>1000+ /* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2014 * NVIDIA Corporation <www.nvidia.com> */ #ifndef _TEGRA20_MC_H_ #define _TEGRA20_MC_H_ /** * Defines the memory controller registers we need/care about */ struct mc_ctlr { u32 reserved0[3];...
553
688
<filename>Java/libraries/recognizers-text/src/main/java/com/microsoft/recognizers/text/utilities/DefinitionLoader.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.microsoft.recognizers.text.utilities; import java.util.HashMap; import java.util.Map; impor...
358
631
<reponame>QianJianhua1/QPanda-2 from pyqpanda.Hamiltonian.PauliOperator.pyQPandaPauliOperator import PauliOperator from pyqpanda.Algorithm.QuantumGradient.quantum_gradient import * from pyqpanda import * import copy import numpy as np from math import pi def generate_edge_library(dimension): edge_lib=[] for i ...
6,251
370
package com.fastasyncworldedit.core.util.task; import java.util.function.BiConsumer; public abstract class RunnableVal2<T, U> implements Runnable, BiConsumer<T, U> { public T value1; public U value2; public RunnableVal2() { } public RunnableVal2(T value1, U value2) { this.value1 = value...
308
9,724
//===-- sanitizer_platform_limits_linux.cpp -------------------------------===// // // 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,385
762
<reponame>jarreguit/pymoo import autograd.numpy as anp import numpy as np from pymoo.core.problem import Problem class Truss2D(Problem): def __init__(self): super().__init__(n_var=3, n_obj=2, n_constr=1, type_var=anp.double) self.Amax = 0.01 self.Smax = 1e5 self.xl = anp.array(...
1,143
16,407
package org.spring.springboot.handler; import org.spring.springboot.error.GlobalException; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Component; import org.springframework.web.reactive.function.server.ServerRequest; import org.springframework.web.reactive.function.server.ServerRe...
321
2,151
// Copyright 2014 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_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_H_ #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_H_ #include ...
619
2,453
<gh_stars>1000+ // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12). // // Copyright (C) 1997-2019 <NAME>. // #import <IDEKit/NSObject-Protocol.h> @class DVTFilePath, IDENavigableItem, IDEStructureEditingAssistantContext; @protocol IDEStructureEditingItem; @protocol IDEStruc...
276
2,603
/* * Copyright (C) 2017 C-SKY Microsystems Co., Ltd. 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 ...
2,682
446
<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 ...
1,229
353
#if WITH_EDITOR #include "SharpTemplateProjectDefs.h" #include "EditorStyleSet.h" #include "Misc/Paths.h" #include "Misc/FileHelper.h" #include "GameProjectGenerationModule.h" #include "GameProjectUtils.h" #define LOCTEXT_NAMESPACE "USharpEditor" void USharpTemplateProjectDefs::RegisterTemplate() { FGameProjectGene...
1,597
572
<gh_stars>100-1000 /* * Copyright (c) 2017 Red Hat, Inc. and/or its affiliates. * Copyright (c) 2017 INSA Lyon, CITI Laboratory. * * 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 * ...
2,058
816
package com.jxtech.tag.bztag.wfstatus; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.jsp.tagext.Tag; import org.apache.struts2.components.Component; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.jxtech.jbo.JboIFace; import com....
1,362
3,603
/* * 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...
326
435
<reponame>Montana/datawave package datawave.query.language.parser.jexl; import java.util.Map; import java.util.Set; /** * */ public interface ControlledQueryParser { void setAllowedFields(Set<String> allowedSpcmaFields); Set<String> getAllowedFields(); void setExcludedValues(Map<String,S...
209
4,473
/* * Copyright (C) 2011 <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 agreed to in wr...
509
2,116
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
3,504
12,824
<gh_stars>1000+ package base; public abstract class AbstractBase { public abstract void doStuff(String... params); // !!! was Object.. }
42
318
<filename>client/c/client/src/client/DataReceiver.cpp /* * Copyright Beijing 58 Information Technology Co.,Ltd. * * 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 * regardi...
2,163
697
<filename>src/VAC/VectorAnimationComplex/EdgeGeometry.h // Copyright (C) 2012-2019 The VPaint Developers. // See the COPYRIGHT file at the top-level directory of this distribution // and at https://github.com/dalboris/vpaint/blob/master/COPYRIGHT // // Licensed under the Apache License, Version 2.0 (the "License"); // ...
3,050
568
from docassemble.base.util import variables_snapshot_connection, user_info __all__ = ['analyze'] def analyze(): conn = variables_snapshot_connection() cur = conn.cursor() cur.execute("select data->>'favorite_fruit' from jsonstorage where filename='" + user_info().filename + "'") counts = dict() for record i...
157
362
package edu.uci.ics.jung.layout.util; import com.google.common.graph.Network; import edu.uci.ics.jung.layout.model.Point; /** * An LayoutEvent that also includes a reference to the Network * * @author <NAME> * @param <N> */ public class LayoutNetworkEvent<N> extends LayoutEvent<N> { final Network<N, ?> networ...
234