max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
372
<filename>clients/google-api-services-cloudsearch/v1/1.30.1/com/google/api/services/cloudsearch/v1/model/SearchQualityMetadata.java /* * 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...
797
307
package com.tairanchina.csp.avm.controller; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class CustomApiControllerTest extends BaseControllerTest { private static Logger logger = LoggerFactory.getLogger(CustomApiControllerTest.class); private static String uri = "/c...
641
648
{"resourceType":"DataElement","id":"ValueSet.url","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/ValueSet.url","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"ValueSet.url","short":"Globally unique logical identifier for value set",...
198
511
/* * Random number generator * Copyright (c) 2010-2011, <NAME> <<EMAIL>> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef RANDOM_H #define RANDOM_H #ifdef CONFIG_NO_RANDOM_POOL #define random_init(e) do { } while (0) #define random_deinit() do { ...
331
1,474
<filename>dalib/adaptation/regda.py<gh_stars>1000+ """ @author: <NAME> @contact: <EMAIL> """ from typing import Optional import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from dalib.modules.gl import WarmStartGradientLayer from common.utils.metric.keypoint_detection import get_max_p...
4,694
1,338
#include "pch.h" #include "D2DShapeContainer.h" #include "D2DCanvas.h" namespace Telerik { namespace UI { namespace Drawing { D2DShapeContainer::D2DShapeContainer(void) { } Rect D2DShapeContainer::GetBoundsCore() { if(this->cachedBounds.Width > 0 && this->cachedBounds.Height > 0) { r...
1,841
852
#include "FWCore/Framework/interface/one/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Utilities/interface/Exception.h" #include "CondFormats/DQMObjects/interface/DQMSummary.h" #incl...
1,105
713
<reponame>pferraro/infinispan package org.infinispan.client.hotrod.configuration; import static org.infinispan.client.hotrod.configuration.StatisticsConfiguration.ENABLED; import static org.infinispan.client.hotrod.configuration.StatisticsConfiguration.JMX_DOMAIN; import static org.infinispan.client.hotrod.configurati...
1,450
1,089
# pylint: disable=C0111,R0903 """Displays the system hostname. contributed by `varkokonyi <https://github.com/varkokonyi>`_ - many thanks! """ import platform import core.module import core.widget import core.decorators class Module(core.module.Module): @core.decorators.every(minutes=60) def __init__(self...
246
15,588
<reponame>yepengRoc/rockemq /* * 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 ...
342
377
from setuptools import setup package_name = 'ros2_gym_pybullet_drones' setup( name=package_name, version='0.0.1', packages=[package_name], data_files=[ ('share/ament_index/resource_index/packages', ['resource/' + package_name]), ('share/' + package_name, ['package.xml']), ...
347
648
{"resourceType":"DataElement","id":"TestReport.setup","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/TestReport.setup","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"id":"TestReport.setup","path":"TestReport.setup","short":"The results of ...
207
336
<filename>system/apps_shell/test29_fileman/source/Manager.h #pragma once #include <framework/Wnd.h> #include <gui/MessageBox.h> class CFolder { uint32_t* mpFlashReadRange{nullptr}; uint32_t* mpFlashWriteRange{nullptr}; uint32_t* mpFlashAlertRange{nullptr}; uint32_t mCurrentFolder...
596
14,668
<reponame>zealoussnow/chromium // 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 "nacl_io/pipe/pipe_node.h" #include <errno.h> #include <fcntl.h> #include <pthread.h> #include <string.h> #inclu...
774
14,668
<gh_stars>1000+ // 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 CHROMEOS_DBUS_LORGNETTE_MANAGER_LORGNETTE_MANAGER_CLIENT_H_ #define CHROMEOS_DBUS_LORGNETTE_MANAGER_LORGNETTE_MANAGER_CLIENT_H_ #...
1,055
1,647
<filename>pythran/pythonic/include/string/ascii_letters.hpp #ifndef PYTHONIC_INCLUDE_STRING_ASCII_LETTERS_HPP #define PYTHONIC_INCLUDE_STRING_ASCII_LETTERS_HPP #include "pythonic/types/str.hpp" PYTHONIC_NS_BEGIN namespace string { types::str constexpr ascii_letters( "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN...
177
5,169
<filename>Specs/5/c/b/AFCurvedArrowView/1.0.1/AFCurvedArrowView.podspec.json { "name": "AFCurvedArrowView", "version": "1.0.1", "summary": "A view to show a configurable arrow wherever you need", "description": "A view to show a configurable arrow wherever you need. (Mostly useful for user guides) With its' hel...
405
1,844
/* * Copyright 2020-2021 Equinix, Inc * Copyright 2014-2021 The Billing Project, LLC * * The Billing 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...
373
311
/** * Copyright 2019 The JoyQueue Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
1,121
562
#include <map> #include <string> #include <vector> #ifdef _WIN32 #include <cwchar> #endif #include "client/crashpad_client.h" #include "client/settings.h" #include "client/crash_report_database.h" bool startCrashpad(const base::FilePath &db, const base::FilePath &handler) { std::string ...
525
5,903
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2017 by <NAME> : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (the...
5,827
6,034
<reponame>ssSlowDown/onemall<gh_stars>1000+ package cn.iocoder.mall.systemservice.service.errorcode.bo; import lombok.Data; import lombok.experimental.Accessors; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; import java.io.Serializable; /** * 错误码自动生成 BO */ @Data @Access...
384
945
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
1,295
372
<reponame>arithmetic1728/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 ...
975
322
#!/ usr/bin/env # coding=utf-8 # # Copyright 2019 ztosec & https://www.zto.com/ # # 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 r...
1,037
323
<reponame>Yaytay/vertx-sql-client /* * Copyright (c) 2011-2022 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2...
328
829
# Copyright FuseSoC contributors # Licensed under the 2-Clause BSD License, see LICENSE for details. # SPDX-License-Identifier: BSD-2-Clause import os import shutil import tempfile import pytest from test_common import tests_dir from fusesoc.core import Core cores_root = os.path.join(tests_dir, "cores") def test_...
1,657
307
/* * Copyright 2017 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 * * Unless required by applicable law or agreed to in...
853
412
/*******************************************************************\ Module: Coverage Instrumentation Author: <NAME> Date: May 2016 \*******************************************************************/ /// \file /// Coverage Instrumentation #include "cover.h" #include <util/message.h> #include <util/make_unique...
4,985
777
// 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. #include "chrome/browser/ui/startup/default_browser_infobar_delegate.h" #include <memory> #include <string> #include "base/macros.h" #include "base/memo...
1,586
597
package com.xiaojukeji.kafka.manager.service.service; import com.xiaojukeji.kafka.manager.common.bizenum.TaskStatusEnum; import com.xiaojukeji.kafka.manager.common.entity.ResultStatus; import com.xiaojukeji.kafka.manager.common.entity.pojo.ClusterDO; import com.xiaojukeji.kafka.manager.common.entity.pojo.TopicDO; impo...
7,790
1,909
package org.knowm.xchange.derivative; import static org.assertj.core.api.Assertions.assertThat; import java.io.IOException; import org.junit.Test; import org.knowm.xchange.utils.ObjectMapperHelper; public class OptionsContractTest { @Test public void testSerializeDeserialize() throws IOException { OptionsCo...
232
327
<filename>dp/third-party/urcu/doc/examples/wfcqueue/cds_wfcq_splice.c /* * Copyright (C) 2013 <NAME> <<EMAIL>> * * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. * * Permission is hereby granted to use or copy this program for any * purpose, p...
1,149
961
<filename>tests/cpp_example1.cpp #include <iostream> #include "roaring.hh" #include "roaring64map.hh" using namespace roaring; int main() { Roaring r1; for (uint32_t i = 100; i < 1000; i++) { r1.add(i); } std::cout << "cardinality = " << r1.cardinality() << std::endl; Roaring64Map r2; ...
244
485
package io.indexr.data; import org.apache.spark.unsafe.array.ByteArrayMethods; import org.apache.spark.unsafe.types.UTF8String; import io.indexr.util.BytesUtil; import io.indexr.util.Hasher32; public class OffheapBytes implements Comparable<OffheapBytes> { private static final Hasher32 HASHER = new Hasher32(0); ...
569
2,917
package me.liangfei.databinding.sample.viewid; import androidx.databinding.DataBindingUtil; import me.liangfei.databinding.R; import me.liangfei.databinding.sample.BaseActivity; import me.liangfei.databinding.databinding.ActivityViewWithIdsBinding; import android.os.Bundle; import android.view.View; public class Vie...
273
310
<filename>third_party/libgit2/src/oidmap.h /* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #ifndef INCLUDE_oidmap_h__ #define INCLUDE_oidmap_h__ #includ...
709
1,689
<reponame>rjmunro/JavaHamcrest<gh_stars>1000+ package org.hamcrest.collection; import org.hamcrest.AbstractMatcherTest; import org.hamcrest.Matcher; import java.util.HashMap; import java.util.Map; import java.util.TreeMap; import static org.hamcrest.collection.IsMapContaining.hasEntry; import static org.hamcrest.cor...
676
590
/* * libc/environ/putenv.c */ #include <string.h> #include <malloc.h> #include <environ.h> #include <xboot/module.h> int __put_env(char * str, size_t len, int overwrite) { struct environ_t * xenv = &__xenviron; struct environ_t * env; struct environ_t * p; if(!xenv) return -1; for(p = xenv->next; p != xenv...
497
1,543
package com.vladmihalcea.hibernate.type.array; import com.vladmihalcea.hibernate.type.array.internal.AbstractArrayType; import com.vladmihalcea.hibernate.type.array.internal.IntArrayTypeDescriptor; import com.vladmihalcea.hibernate.type.util.Configuration; /** * Maps an {@code int[]} array on a PostgreSQL ARRAY type...
455
3,434
package com.alicp.jetcache.redis.lettuce; import org.junit.Assert; import org.junit.Test; /** * Created on 2017/5/9. * * @author <a href="mailto:<EMAIL>">huangli</a> */ public class JetCacheCodecTest { @Test public void testEncodeKey() { JetCacheCodec codec = new JetCacheCodec(); byte[] bs...
296
416
// // ARParticipantAnchor.h // ARKit // // Copyright © 2019 Apple Inc. All rights reserved. // #import <ARKit/ARAnchor.h> NS_ASSUME_NONNULL_BEGIN /** This anchor represents the physical position and orientation of another participant in the collaborative session. @discussion The participant anchors are automa...
249
2,690
<reponame>stackriot/flocker from textwrap import dedent from flocker import __version__ as version from flocker.common.version import get_installable_version from flocker.testtools import TestCase, run_process class VersionExtensionsTest(TestCase): """ Tests for Sphinx version extensions. """ def te...
593
470
#include "ofApp.h" /* Simple example to demonstrate the framerate monitor component https://github.com/braitsch/ofxDatGui @braitsch */ void ofApp::setup() { ofSetWindowShape(1920, 1080); ofSetWindowPosition(ofGetScreenWidth()/2 - ofGetWidth()/2, 0); // instantiate a framerate monitor and tell it ...
232
311
# Copyright 2021 The ML Collections Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
390
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 ...
7,699
49,076
<filename>spring-test/src/test/java/org/springframework/test/context/jdbc/InfrastructureProxyTransactionalSqlScriptsTests.java<gh_stars>1000+ /* * Copyright 2002-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 ...
1,282
1,590
<gh_stars>1000+ { "parameters": { "subscriptionId": "12345", "resourceGroupName": "MyResourceGroup", "communicationServiceName": "MyCommunicationResource", "api-version": "2020-08-20" }, "responses": { "200": { "body": { "primaryKey": "<primaryKey>", "secondaryKey": "<sec...
153
3,493
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from attacks.abstract_attack import AbstractAttack from lib.rsalibnum import gcd, common_modulus from Crypto.Util.number import long_to_bytes, bytes_to_long import itertools class Attack(AbstractAttack): def __init__(self, timeout=60): super().__init__(timeo...
962
4,538
/* * Copyright (C) 2015-2019 Alibaba Group Holding Limited */ #include <stdint.h> #include "amp_config.h" #include "amp_defines.h" #include "board_mgr.h" #include "be_inl.h" #include "fontlib.h" #define MOD_STR "LCD" typedef struct lcd_handle { uint32_t width; uint32_t height; } lcd_handle_t; static lcd_...
4,009
437
from .metal_model import MetalModel from .payload import Payload __all__ = ["Payload", "MetalModel"]
31
348
{"nom":"Pietricaggio","circ":"2ème circonscription","dpt":"Haute-Corse","inscrits":58,"abs":26,"votants":32,"blancs":2,"nuls":0,"exp":30,"res":[{"nuance":"REM","nom":"<NAME>","voix":19},{"nuance":"REG","nom":"<NAME>","voix":11}]}
93
2,338
<gh_stars>1000+ //===-- VectorType.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 // //===-----------...
3,626
6,852
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # #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...
1,630
360
/* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
5,133
14,425
<filename>hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/output/MapFileOutputFormat.java<gh_stars>1000+ /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distri...
1,670
773
{ "name": "example-1", "version": "1.0.0", "description": "example broccoli-eyeglass project 1", "main": "Brocfile.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "<NAME>", "license": "Apache-2.0", "private": true, "devDependencies": { "broccoli": "^0.16....
159
335
<filename>D/Double_verb.json { "word": "Double", "definitions": [ "Become twice as much or as many.", "Make twice as much or as many of (something)", "Amount to twice as much as.", "Move at twice the usual speed; run.", "Make a call increasing the value of the penalty poi...
325
3,066
<filename>server/src/test/java/io/crate/types/IntervalTypeTest.java /* * Licensed to Crate.io GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Ap...
645
790
# Create two variables to use as inputs to the function fruit = 'Apple' pieces = 'twelve' # Create a function called describe_fruit that has two parameters, # fruit_type that should be a string and fruit_number which should be an integer. # The output of the function should be a string. def describe_fruit(fruit_type: ...
170
458
// Copyright 2015-2021 Swim 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 law or agreed to ...
17,159
435
/* * Copyright (C) 2014 <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 ...
825
377
#pragma once //------------------------------------------------------------------------------ /** @class Posix::PosixEnvironment Provides read-access to environment variables. Useful for tools. (C) 2013-2018 Individual contributors, see AUTHORS file */ #include "core/types.h" #include "uti...
200
647
<reponame>gilbertguoze/trick /************************TRICK HEADER************************* PURPOSE: (This Trick header comment lists out simulation model file dependencies that are not c++. The model files are complete relative path to the "C" file and not the object file as in the source code comments....
565
605
//===- Transforms/Utils/SampleProfileInference.h ----------*- 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 // //===---------------------------------...
3,145
17,481
<gh_stars>1000+ /* * Copyright (C) 2015 The Dagger 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...
695
532
package ai.yue.library.base.ipo; import com.alibaba.fastjson.JSONObject; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; /** * @author ylyue * @since 2018年7月31日 */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class Loca...
395
539
#pragma once #include "geometrycentral/surface/surface_mesh.h" namespace geometrycentral { namespace surface { class ManifoldSurfaceMesh : public SurfaceMesh { public: ManifoldSurfaceMesh(); // Build a halfedge mesh from polygons, with a list of 0-indexed vertices incident on each face, in CCW order. // Assu...
1,589
827
<reponame>y-prudent/rex-gym # Copyright 2017 The TensorFlow Agents 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 requ...
523
18,965
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.samples.zoomable; import android.graphics.Matrix; import android.graphics.PointF; import com.facebook.common....
1,765
1,337
<reponame>zhoupan/cuba /* * Copyright (c) 2008-2018 Haulmont. * * 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 b...
2,481
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...
721
1,131
// 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,362
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Rest", "definitions": [ "Cease work or movement in order to relax, sleep, or recover strength.", "Allow to be inactive in order to regain strength or health.", "(of a body) lie buried.", "Used euphemistically by actors to indicate that...
351
304
<gh_stars>100-1000 // OCHamcrest by <NAME>, http://qualitycoding.org/about/ // Copyright 2015 hamcrest.org. See LICENSE.txt #import <OCHamcrest/HCDiagnosingMatcher.h> @interface HCIsCollectionContaining : HCDiagnosingMatcher + (instancetype)isCollectionContaining:(id <HCMatcher>)elementMatcher; - (instancetype)in...
601
2,842
<gh_stars>1000+ /* Copyright (c) 2019-2020, Arm Limited and Contributors * * SPDX-License-Identifier: Apache-2.0 * * 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.apach...
545
3,967
<filename>dali/test/python/test_pool_utils.py # Copyright (c) 2021, NVIDIA CORPORATION & 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. # You may obtain a copy of the License at # # http://www.ap...
896
369
// Copyright (c) 2017-2021, <NAME>. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "BarGraph.hpp" namespace gui { static inline auto rectAxisLengthFrom(uint32_t numberOfRectangles) -> uint32_t { return numberOfRectangles * (style::bargraph::spacing + ...
2,707
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Mirande","circ":"1ère circonscription","dpt":"Gers","inscrits":2342,"abs":1145,"votants":1197,"blancs":70,"nuls":39,"exp":1088,"res":[{"nuance":"REM","nom":"<NAME>","voix":625},{"nuance":"SOC","nom":"<NAME>","voix":463}]}
110
2,813
package org.jabref.logic.importer.fetcher.transformers; import java.util.List; import java.util.Objects; import java.util.Optional; import org.jabref.model.strings.StringUtil; /** * Needs to be instantiated for each new query */ public class IEEEQueryTransformer extends YearRangeByFilteringQueryTransformer { /...
926
892
<filename>advisories/unreviewed/2022/02/GHSA-rggm-wjvh-78r5/GHSA-rggm-wjvh-78r5.json { "schema_version": "1.2.0", "id": "GHSA-rggm-wjvh-78r5", "modified": "2022-02-12T00:01:07Z", "published": "2022-02-08T00:00:28Z", "aliases": [ "CVE-2021-25084" ], "details": "The Advanced Cron Manager WordPress plugi...
453
497
/************************************************************************** * * Copyright 2013-2014 RAD Game Tools and Valve Software * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to d...
665
658
<reponame>ValtoLibraries/JOML package java.io; public interface ObjectInput extends DataOutput { double readDouble() throws IOException; float readFloat() throws IOException; int readInt() throws IOException; }
63
3,212
/* * 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,065
2,151
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_VIZ_SERVICE_DISPLAY_DISPLAY_SCHEDULER_H_ #define COMPONENTS_VIZ_SERVICE_DISPLAY_DISPLAY_SCHEDULER_H_ #include <memory> #include "base...
1,891
803
# Copyright 2019 DeepMind Technologies Limited. 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 ...
1,504
1,073
<reponame>kpdev/llvm-tnt<filename>include/llvm/DebugInfo/PDB/Raw/PDBFileBuilder.h //===- PDBFileBuilder.h - PDB File Creation ---------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENS...
563
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/02A/02A01258.json<gh_stars>100-1000 {"nom":"Renno","circ":"1ère circonscription","dpt":"Corse-du-Sud","inscrits":178,"abs":94,"votants":84,"blancs":0,"nuls":0,"exp":84,"res":[{"nuance":"LR","nom":"<NAME>","voix":68},{"nuance":"REM","nom":"<NAME>","voix"...
140
2,236
<reponame>cailufei123/CLFAnimatedDemo // // JXCategoryIndicatorRainbowLineView.h // JXCategoryView // // Created by jiaxin on 2018/12/13. // Copyright © 2018 jiaxin. All rights reserved. // #import "JXCategoryIndicatorLineView.h" NS_ASSUME_NONNULL_BEGIN /** 会无视JXCategoryIndicatorLineView的indicatorLineViewColor属...
336
1,444
package mage.abilities.effects.common.combat; import mage.constants.Duration; import mage.constants.Layer; import mage.constants.Outcome; import mage.constants.SubLayer; import mage.abilities.Ability; import mage.abilities.effects.ContinuousEffectImpl; import mage.filter.common.FilterCreaturePermanent; import mage.ga...
839
2,054
#ifndef _ZQ_BLEND_TWO_IMAGES_H_ #define _ZQ_BLEND_TWO_IMAGES_H_ #pragma once #include "ZQ_ScatteredInterpolationRBF.h" #include "ZQ_ImageProcessing.h" #include "ZQ_WeightedMedian.h" namespace ZQ { class ZQ_BlendTwoImages { private: template<class T> static void _warpAndBlend(const int width, const int height, ...
6,319
745
def test_job_queue(worker): from mrq.context import connections worker.start() worker.send_task("tests.tasks.general.Wait", {}, block=False) assert int(connections.redis.get("queuesize:%s" % "default")) == 1 worker.wait_for_idle() assert int(connections.redis.get("queuesize:%s" % "default")) == 0 def test...
343
9,272
<reponame>phvalguima/kubeflow<gh_stars>1000+ from flask import Blueprint, jsonify from . import authn bp = Blueprint("probes", __name__) @bp.route("/healthz/liveness") @authn.no_authentication def liveness(): return jsonify("alive"), 200 @bp.route("/healthz/readiness") @authn.no_authentication def readiness()...
128
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.extendedlocation.implementation; import com.azure.core.management.Region; import com.azure.core.management.SystemData; import co...
3,717
1,062
<filename>java/src/java/com/google/mr4c/config/algorithm/DimensionConfig.java /** * Copyright 2014 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 ...
823
1,826
<filename>flexmark-core-test/src/test/java/com/vladsch/flexmark/core/test/util/parser/ast/AbstractVisitorTest.java package com.vladsch.flexmark.core.test.util.parser.ast; import com.vladsch.flexmark.ast.Code; import com.vladsch.flexmark.ast.Paragraph; import com.vladsch.flexmark.ast.Text; import com.vladsch.flexmark.u...
629
1,389
<reponame>TopoX84/newlux // serpent.h - written and placed in the public domain by <NAME> //! \file serpent.h //! \brief Classes for the Serpent block cipher #ifndef CRYPTOPP_SERPENT_H #define CRYPTOPP_SERPENT_H #include "seckey.h" #include "secblock.h" NAMESPACE_BEGIN(CryptoPP) //! \class Serpent_Inf...
613
679
<filename>main/framework/inc/threadhelp/transactionmanager.hxx /************************************************************** * * 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 * reg...
1,851
1,075
public class X { void f(boolean isMale) { String title = isMale <caret>? "Mr." : "Ms."; System.out.println("title = " + title); } }
70
554
<gh_stars>100-1000 package github.tornaco.xposedmoduletest.xposed.service.policy.wm; /** * Created by guohao4 on 2018/1/17. * Email: <EMAIL> */ public enum SwipeAreaY { TOP, CENTER, BOTTOM }
92