max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,231
<filename>bullet/src/BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.cpp /* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 <NAME> http://continuousphysics.com/Bullet/ This software is provided 'as-is', without any express or implied warranty. In no event will the au...
2,729
4,873
<reponame>alexithor/react-native-windows<gh_stars>1000+ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #pragma once #include <Views/FrameworkElementViewManager.h> namespace Microsoft::ReactNative { class FlyoutViewManager : public FrameworkElementViewManager { using Super = F...
381
5,169
{ "name": "Moulinette", "version": "0.1.0", "summary": "An internal Xcode audit tool.", "description": "An internal audit tool used by Prolific Interactive to ensure code quality and standards.", "homepage": "https://github.com/prolificinteractive/Moulinette", "license": { "type": "MIT", "file": "LI...
235
21,382
import gym from gym.spaces import Discrete import random class RepeatInitialObsEnv(gym.Env): """Env in which the initial observation has to be repeated all the time. Runs for n steps. r=1 if action correct, -1 otherwise (max. R=100). """ def __init__(self, episode_len=100): self.observat...
362
880
<reponame>LinZong/logback-android /** * Copyright 2019 <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...
1,207
320
<reponame>milesmcc/a17 { "name": "doc", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "start": "TAILWIND_MODE=watch NODE_ENV=development npm-run-all dev:*", "build": "NODE_ENV=production npm-run-all prod:*", "dev:twcssw": "./node_modules/tailwindcss/...
431
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Bieuzy","circ":"3ème circonscription","dpt":"Morbihan","inscrits":562,"abs":252,"votants":310,"blancs":4,"nuls":3,"exp":303,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":92},{"nuance":"FI","nom":"Mme <NAME>","voix":66},{"nuance":"FN","nom":"Mme <NAME>","voix":37},{"nu...
317
506
// Copyright 2020 <NAME>. #include "Characters/Abilities/GSTargetType.h" #include "Characters/GSCharacterBase.h" void UGSTargetType::GetTargets_Implementation(AGSCharacterBase* TargetingCharacter, AActor* TargetingActor, FGameplayEventData EventData, TArray<FGameplayAbilityTargetDataHandle>& OutTargetData, TArray<FH...
397
309
<gh_stars>100-1000 { "created_at": "2014-09-19T19:20:56Z", "description": "You can configure the CPU limits with control parameters.", "name": "CPU Limits", "properties": { "quota:cpu_shares": { "description": "Specifies the proportional weighted share for the domain. If this element...
316
1,204
<reponame>DiegoEliasCosta/gs-collections /* * Copyright 2015 <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 req...
5,394
311
<reponame>80952556400/java-language-server<gh_stars>100-1000 package org.javacs.rewrite; import com.sun.source.tree.Tree; import com.sun.source.tree.VariableTree; import com.sun.source.util.Trees; import java.nio.file.Path; import java.util.Map; import org.javacs.CompilerProvider; import org.javacs.ParseTask; import o...
1,092
337
import configparser import warnings import os import pyarrow as pa class CaseConfigParser(configparser.ConfigParser): def optionxform(self, optionstr): return optionstr def patch_profile(fs_options): fs_options = fs_options.copy() if 'profile' in fs_options: profile = fs_options.pop('pro...
487
6,523
import unittest from apex import amp import random import torch from torch import nn from utils import common_init, HALF class TestRnnCells(unittest.TestCase): def setUp(self): self.handle = amp.init(enabled=True) common_init(self) def tearDown(self): self.handle._deactivate() d...
2,347
3,897
<filename>targets/TARGET_Maxim/TARGET_MAX32625/objects.h /******************************************************************************* * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and...
1,122
6,139
<reponame>uOOOO/mosby /* * Copyright 2015 <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...
984
518
package io.sdb.config; import lombok.Data; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import org.springframework.boot.context.properties.ConfigurationProperties; /** * @author <a href="https://github.com/binarywang"><NAME></a> */ @ConfigurationPro...
648
405
package org.jeecgframework.web.cgform.service.impl.button; import java.util.List; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.jeecgframework.web.cgform.entity.button.CgformButtonEntity; import org.jeecgframework.web.cgform.service.button....
581
463
<gh_stars>100-1000 package mockit.asm.methods; import javax.annotation.*; import mockit.asm.constantPool.*; import mockit.asm.util.*; /** * Stores the exceptions that can be thrown by a method/constructor, and writes it to the "Exceptions" attribute. * For each thrown exception, stores the index of the constant po...
409
56,632
<gh_stars>1000+ // This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // Copyright (C) 2014, Intel, Inc., all rights reserved. // Third party copyrights are property of their resp...
3,475
28,056
package com.alibaba.json.bvt.parser.deser.list; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; import org.junit.Assert; import junit.framework.TestCase; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONException; import com.al...
2,060
2,151
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gl/GrGLVaryingHandler.h" #include "gl/GrGLGpu.h" #include "gl/builders/GrGLProgramBuilder.h" GrGLSLVaryingHandler::VaryingHandle GrGLVaryingHandler::addPathProces...
644
347
<filename>frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/uicommon/disks/DisksViewColumns.java package org.ovirt.engine.ui.common.widget.uicommon.disks; import java.util.ArrayList; import java.util.Comparator; import java.util.Date; import java.util.List; import java.util.function....
9,115
3,631
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
1,201
575
// Copyright (c) 2012 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_SYNC_BASE_ENUM_SET_H_ #define COMPONENTS_SYNC_BASE_ENUM_SET_H_ #include <bitset> #include <cstddef> #include <string> #include <ty...
3,891
1,093
/* * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
3,588
3,411
/* * Copyright 2015 <NAME>, <NAME>, <NAME>, and the JDA contributors * * 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,820
379
<filename>springdemo/src/main/java/com/example/springdemo/springdemo/controller/PictureController.java package com.example.springdemo.springdemo.controller; import com.example.springdemo.springdemo.Exception.NullOrEmptyException; import com.example.springdemo.springdemo.common.ResponseEntity; import com.example.spring...
642
593
<filename>linq/extensions/contains.h /*============================================================================= Copyright (c) 2012 <NAME> contains.h Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ===...
304
18,012
<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 "Lic...
3,008
348
<gh_stars>100-1000 {"nom":"Cahan","circ":"3ème circonscription","dpt":"Orne","inscrits":135,"abs":71,"votants":64,"blancs":4,"nuls":2,"exp":58,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":32},{"nuance":"REM","nom":"Mme <NAME>","voix":26}]}
100
399
#pragma once #include "graphics/Program.hpp" #include "graphics/GPUTypes.hpp" class Framebuffer; class Texture; class Mesh; /** \brief Provide helper GUI to display the content of texture and framebuffer attachments. This can be useful to validate the content rendered to a specific texture zhen debugging. \ingroup...
1,748
1,472
package org.muses.jeeplatform.core.dto.admin; import lombok.AllArgsConstructor; import lombok.Data; import org.muses.jeeplatform.core.entity.admin.Role; import java.io.Serializable; import java.util.Date; import java.util.Set; /** * <pre> * * </pre> * * <pre> * @author mazq * 修改记录 * 修改后版本: 修改人: 修改日期:...
559
451
#include "Tree.h" #define HORSIMAGE "Outside image" #define VANISHED_TEXT "Vanished" #define COLOR_OVER "#c89354" #define NON_SAISIE "#ba5606" ModelPointGlobal::ModelPointGlobal(QObject *parent, cAppli_SaisiePts *appli): QAbstractTableModel(parent), mAppli(appli), _interface((cQT_Interface*)appli->Interface(...
7,271
310
<reponame>dreeves/usesthis<gh_stars>100-1000 { "name": "<NAME>", "description": "A game about matching yoga poses.", "url": "https://q_dork.itch.io/wobble-yoga" }
71
918
<reponame>gatarelib/LiquidCore<gh_stars>100-1000 /* * Copyright (c) 2014 - 2018 <NAME> * * Distributed under the MIT License. See LICENSE.md at * https://github.com/LiquidPlayer/LiquidCore for terms and conditions. */ package org.liquidplayer.jstest; import org.junit.Test; import org.liquidplayer.javascript.JSAr...
2,882
313
<reponame>leibale/RedisGraph<filename>src/execution_plan/ops/op_apply.h /* * Copyright 2018-2022 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #pragma once #include "op.h" #include "op_argument.h" #include "../execution_plan.h" /* The Apply...
349
305
//===-- runtime/buffer.cpp --------------------------------------*- 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 // //===---------------------------...
270
435
{ "copyright_text": "Creative Commons Attribution license (reuse allowed)", "description": "There's a widespread belief among machine learning practitioners that algorithms are objective and allow us to deal with the messy reality in a nice, objective way, without worrying about all the yucky human nature things. T...
620
395
<reponame>ritaswc/wechat_app_template<gh_stars>100-1000 package com.mindskip.xzs.viewmodel.student.exam; import com.mindskip.xzs.base.BasePage; import javax.validation.constraints.NotNull; public class ExamPaperPageVM extends BasePage { @NotNull private Integer paperType; private Integer subjectId; p...
318
13,027
<reponame>tornado12345/termux-app<filename>termux-shared/src/main/java/com/termux/shared/activities/TextIOActivity.java package com.termux.shared.activities; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Typef...
4,400
2,151
// 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 "components/viz/test/test_context_provider.h" #include <stddef.h> #include <stdint.h> #include <set> #include <string> #include <utility> #incl...
4,068
1,066
<gh_stars>1000+ /* * Copyright 2017 GcsSloop * * 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...
1,313
1,473
<filename>Core/src/org/sleuthkit/autopsy/modules/vmextractor/VMExtractorIngestModule.java /* * Autopsy Forensic Browser * * Copyright 2012-2018 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except...
8,408
6,989
<gh_stars>1000+ #include "fnv.h"
17
567
/********** © Copyright 2021 Xilinx, 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 writing, sof...
484
2,056
import net.qihoo.qconf.Qconf; import net.qihoo.qconf.QconfException; import java.util.ArrayList; import java.util.Map; public class TestQconfThread extends Thread { int pauseTime; public TestQconfThread(int pTime) { this.pauseTime = pTime; } public void run() { while(true) ...
1,412
643
package com.hellokoding.datastructure.graph; import java.util.ArrayList; import java.util.List; public class GraphWeightedByAdjacencyList { private int V; private List<List<WeightedVertex>> adjacencyList; public GraphWeightedByAdjacencyList(int V) { this.V = V; adjacencyList = new ArrayL...
754
2,494
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * token.c * * This file implements the NSSCKFWToken type and methods. */ #ifndef CK_T #include "ck.h" #end...
17,162
397
<reponame>PaulSandoz/capsule<gh_stars>100-1000 /** * Copyright (c) <NAME> <Centrum Wiskunde & Informatica> and Contributors. * All rights reserved. * * This file is licensed under the BSD 2-Clause License, which accompanies this project * and is available under https://opensource.org/licenses/BSD-2-Clause. */ pac...
1,192
27,173
import unittest class TestProdThree(unittest.TestCase): def test_prod_three(self): solution = Solution() self.assertRaises(TypeError, solution.max_prod_three, None) self.assertRaises(ValueError, solution.max_prod_three, [1, 2]) self.assertEqual(solution.max_prod_three([5, -2, 3]),...
245
1,931
import pytest from wemake_python_styleguide.logic.complexity import annotations @pytest.mark.parametrize(('annotation', 'complexity'), [ # simple annotations ('str', 1), ('int', 1), ('List', 1), ('List[str]', 2), ('List[int]', 2), ('Dict[str, int]', 2), # empty values ('Literal["...
334
450
#!/usr/bin/env python # 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 # "Li...
661
1,088
<gh_stars>1000+ // // CBLArray.h // CouchbaseLite // // Copyright (c) 2017 Couchbase, 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.apac...
1,613
416
/* * Copyright (c) 2010 Apple Inc. All Rights Reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * complia...
1,866
14,668
<filename>components/gcm_driver/gcm_desktop_utils.h // 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 COMPONENTS_GCM_DRIVER_GCM_DESKTOP_UTILS_H_ #define COMPONENTS_GCM_DRIVER_GCM_DESKTOP_UTILS_H_ ...
610
800
<filename>app/src/main/java/com/sdwfqin/quickseed/ui/example/sortlist/SortListActivity.java package com.sdwfqin.quickseed.ui.example.sortlist; import android.view.View; import androidx.fragment.app.Fragment; import androidx.recyclerview.widget.DividerItemDecoration; import androidx.recyclerview.widget.LinearLayoutMan...
2,527
375
<reponame>puraner/RED /* * Copyright 2015 Nokia Solutions and Networks * Licensed under the Apache License, Version 2.0, * see license.txt file for details. */ package org.rf.ide.core.testdata.text.read.separators; import java.util.regex.Pattern; import org.rf.ide.core.testdata.model.FileFormat; import com.googl...
494
1,016
<filename>core/schema-discovery/schema-discovery-rdbms/src/main/java/com/thinkbiganalytics/schema/DefaultJdbcSchema.java<gh_stars>1000+ package com.thinkbiganalytics.schema; /*- * #%L * kylo-schema-discovery-rdbms * %% * Copyright (C) 2017 - 2018 ThinkBig Analytics, a Teradata Company * %% * Licensed under the A...
1,032
1,692
/* * Copyright 2018-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
776
334
<reponame>Cleython-Enginner/Desafios-java // Uniformes de final de ano /* O professor Girafales organizou a confecção de um uniforme para as turmas da escola para comemorar o final do ano. Após algumas conversas, ficou decidido com os alunos que eles poderiam escolher a cor do uniforme entre branco ou vermelho. Assim ...
1,608
313
#!/usr/bin/python #-*- coding: utf-8 -*- #Developer by Bafomet import random import string import argparse import os import subprocess # set color WHSL = '\033[1;32m' ENDL = '\033[0m' REDL = '\033[0;31m' GNSL = '\033[1;34m' Filename="hook.js" os.system('clear') def ngrok(): return (""" {1}_________________________...
2,759
14,668
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MEDIA_BASE_MEDIA_LOG_TYPE_ENFORCEMENT_H_ #define MEDIA_BASE_MEDIA_LOG_TYPE_ENFORCEMENT_H_ #include "media/base/media_serializers.h" namespace me...
1,445
805
<gh_stars>100-1000 import unittest import os from tests.setup_scripts import ring_road_exp_setup, traffic_light_grid_mxn_exp_setup from flow.core.params import VehicleParams from flow.core.params import NetParams from flow.core.params import SumoCarFollowingParams from flow.core.params import TrafficLightParams from f...
5,520
1,351
<reponame>lailiaomm/SmoothRefreshLayout<gh_stars>1000+ package me.dkzwm.widget.srl.sample.ui; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.view.MenuItem; import android.view.View; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity;...
2,391
629
<filename>AA-Wide-ResNet/attention_augmented_wide_resnet.py import torch import torch.nn as nn import torch.nn.functional as F from attention_augmented_conv import AugmentedConv device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') def _weights_init(m): if isinstance(m, nn.Conv2d): torch...
1,951
892
{ "schema_version": "1.2.0", "id": "GHSA-5c86-xw43-gw75", "modified": "2022-05-03T03:13:10Z", "published": "2022-05-03T03:13:10Z", "aliases": [ "CVE-2004-0790" ], "details": "Multiple TCP/IP and ICMP implementations allow remote attackers to cause a denial of service (reset TCP connections) via spoofe...
1,993
502
package com.ywl5320.player.adapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.ywl5320.player.R; import com.ywl5320.player.bean.VideoListBean; i...
840
1,647
<reponame>davidbrochart/pythran #ifndef PYTHONIC_INCLUDE_NUMPY_SETDIFF1D_HPP #define PYTHONIC_INCLUDE_NUMPY_SETDIFF1D_HPP #include "pythonic/include/utils/functor.hpp" #include "pythonic/include/types/ndarray.hpp" PYTHONIC_NS_BEGIN namespace numpy { template <class T, class U> types::ndarray<typename __combined...
303
5,671
package com.reactnative.ivpusic.imagepicker; import android.media.ExifInterface; public class GeoDegree { Float latitude; Float longitude; public GeoDegree(ExifInterface exif) { String attrLATITUDE = exif.getAttribute(ExifInterface.TAG_GPS_LATITUDE); String attrLATITUDE_REF = exif.getAttr...
1,007
773
<reponame>SakuyaIzayoi/esp-rfid #ifndef OFFICIALBOARD /************************************************************************** @file PN532.cpp @author Adafruit Industries, Elmü @license BSD (see license.txt) Driver for NXP's PN532 NFC/13.56MHz RFID Transceiver This is a library for the Ada...
15,471
6,199
<filename>pytext/common/utils.py #!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from sys import stderr def eprint(*args, **kwargs): print(file=stderr, *args, **kwargs)
77
432
/* * Copyright (C) 2020 ActiveJ 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...
801
3,102
// RUN: %clang_cc1 -Wuninitialized -fsyntax-only %s 2>&1 | FileCheck %s void pr14901(int a) { int b, c; a = b; a = c; } // CHECK: 5:8: warning: variable 'b' is uninitialized when used here // CHECK: 4:9: note: initialize the variable 'b' to silence this warning // CHECK: 6:8: warning: variable 'c' is uniniti...
151
488
<reponame>maurizioabba/rose<filename>tests/CompileTests/Java_tests/cave3_for3.java public class cave3_for3 { public void loop() { for(int i = 1, j = 10; i < 10; // Need to create list of expression j--, i=2) { } } }
111
677
/* * Copyright (C) 2014 <NAME>, Koeln, Germany, robert-stupp.de * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * U...
3,519
14,668
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/sharing/sms/sms_remote_fetcher.h" #include "base/check.h" #include "base/metrics/histogram_functions.h" #include "build/build_co...
950
5,411
// vendor/chromium/mojo/public/mojom/base/file_error.mojom-shared-internal.h is auto generated by mojom_bindings_generator.py, do not edit // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef VENDOR...
845
854
<reponame>timxor/leetcode-journal __________________________________________________________________________________________________ 12ms static const int _ = []() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); std::cout.tie(nullptr); return 0; }(); class Solution { public: bool exist(std::vect...
1,572
4,036
<gh_stars>1000+ interface I { boolean equals(Object o); }
22
776
<gh_stars>100-1000 /* * Copyright 2019-present HiveMQ GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
744
1,768
// Copyright (c) 2003 Compaq Corporation. All rights reserved. // Portions Copyright (c) 2003 Microsoft Corporation. All rights reserved. package tlc2.tool; import util.UniqueString; public class BuiltInOPs implements ToolGlobals { private static int[] OpCodeTable; static { OpCodeTable = new int[200]; ...
1,654
1,444
package mage.cards.d; import mage.MageInt; import mage.abilities.common.BeginningOfEndStepTriggeredAbility; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.condition.common.MorbidCondition; import mage.abilities.costs.mana.GenericManaCost; import mage.abilities.effects.common.CreateTokenEffect;...
925
1,796
<reponame>sameemj14/android-examples package sample.github.nisrulz.usingretrofit2.model; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class People { @SerializedName("name") @Expose private String name; @SerializedName("height") @Expose private String height...
972
5,422
<gh_stars>1000+ // // detail/gcc_arm_fenced_block.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // 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/LICENSE_1_0.txt) // #ifnde...
918
1,025
<filename>src/main/java/com/myblog/lucene/ProductIterator.java package com.myblog.lucene; import org.apache.lucene.search.suggest.InputIterator; import org.apache.lucene.util.BytesRef; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; import java.io.UnsupportedEncodi...
1,629
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 UI_GL_GPU_SWITCHING_OBSERVER_H_ #define UI_GL_GPU_SWITCHING_OBSERVER_H_ #include "ui/gl/gl_export.h" #include "ui/gl/gpu_preferen...
290
631
<filename>ThirdParty/nlopt/plis.cpp #include <climits> #include <cstdlib> #include <cmath> #include <string> #include "luksan.h" #include <vector> #include "ThirdParty/rapidjson/document.h" #include "ThirdParty/rapidjson/writer.h" #include "ThirdParty/rapidjson/filereadstream.h" #include "ThirdParty/rapidjson/filewrite...
11,553
839
<reponame>kimjand/cxf /** * 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 (th...
766
1,025
<filename>Core Data Editor/Core Data Editor/CDEOrderedRelationshipRequestDataCoordinator.h #import "CDERequestDataCoordinator.h" @interface CDEOrderedRelationshipRequestDataCoordinator : CDERequestDataCoordinator @end
68
480
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
1,431
3,285
<filename>python/oneflow/nn/modules/moving_average_min_max_observer.py """ Copyright 2020 The OneFlow 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.ap...
2,441
640
/* * CP/M GSX based graphics libraries * * putc_gsx() * use with "-pragma-redirect=fputc_cons=_putc_gsx" * * <NAME> - 2021 * * $Id: putc_gsx.c $ */ #include <cpm.h> #include <string.h> //#include <graphics.h> extern void __LIB__ putc_gsx(int chr); extern void __LIB__ clg(); extern int gsx_maxx; extern int gs...
515
2,062
import strawberry class SampleClass: def __init__(self, schema): self.schema = schema @strawberry.type class User: name: str age: int @strawberry.type class Query: @strawberry.field def user(self) -> User: return User(name="Patrick", age=100) schema = strawberry.Schema(query=...
149
14,668
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/notifications/scheduler/test/fake_clock.h" namespace notifications { namespace test { // static base::Time FakeClock::GetTime(c...
310
651
#ifndef MLPCELL_F32 #define MLPCELL_F32 #include "mc_funcs.h" #define PCL_ASSERT(cond, x...) do { if(!(cond)) { printf(x); fflush(stdout); exit(1); } } while(0) #define DECL_VLA_PTR(type, name, dims, ptr) type (*name)dims = (type (*)dims)ptr #define DECL_VLA_PTR_CHECK_VAR(var, type, name, dims, ptr) type (*name)dims ...
19,738
314
<reponame>tclfs/rocketmq-client-cpp<filename>test/src/protocol/LockBatchBodyTest.cpp /* * 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 license...
1,338
5,169
<reponame>Gantios/Specs<gh_stars>1000+ { "name": "DJComponentHotfix", "version": "0.1.1", "summary": "A short description of DJHotfixManager.", "description": "only for private use", "homepage": "http://douzhongxu.com", "license": "MIT (Dokay)", "authors": { "Doaky": "<EMAIL>" }, "platforms": { ...
501
305
<gh_stars>100-1000 //***************************************************************************** // Copyright 2021 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // /...
3,862
5,169
<reponame>Ray0218/Specs { "name": "MWIDCardValidate", "version": "1.0.0", "summary": "居民身份证验证", "description": "This is ID card validate for chinese.\n中华人民共和国居民身份证验证", "homepage": "https://github.com/wuchuwuyou/MWVerifyID", "license": "MIT", "authors": { "Murphy": "<EMAIL>" }, "platforms": { "...
254
910
<reponame>ThePreviousOne/SVG-Android<gh_stars>100-1000 package com.github.megatronking.svg.sample.animation; import android.animation.ObjectAnimator; import android.animation.ValueAnimator; import android.graphics.Color; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.v...
1,182