max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
549
<reponame>aleanza/notejam<filename>spring/src/test/java/net/notejam/spring/note/CreateNoteControllerTest.java package net.notejam.spring.note; import static net.notejam.spring.test.UriUtil.getPathVariable; import static net.notejam.spring.test.UriUtil.redirectToAuthentication; import static org.hamcrest.Matchers.empty...
2,139
2,261
{ "preserveFontFaces": true, "preserveMediaQueries": true, "insertPreservedExtraCss": "div", "extraCss": "@font-face { font-family: 'Extra'; }" }
68
465
package com.ansel.service.impl; import java.util.Date; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagati...
1,257
852
import FWCore.ParameterSet.Config as cms import RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilder_cfi myTTRHBuilderWithoutAngle4PixelPairs = RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilder_cfi.ttrhbwr.clone( StripCPE = 'Fake', ComponentName = 'TTRHBuilderWithoutAngle4P...
118
1,682
/* Copyright (c) 2019 LinkedIn Corp. 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...
2,119
1,745
<reponame>bsf2dev/bsf //************************************ bs::framework - Copyright 2018 <NAME> **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #include "BsD3D11TextureView.h" #include "BsD3D11Render...
6,117
1,469
/*- * ========================LICENSE_START================================= * Bucket4j * %% * Copyright (C) 2015 - 2020 <NAME> * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
1,492
963
<filename>core/src/test/java/com/vladmihalcea/book/hpjp/hibernate/transaction/identifier/TransactionIdTest.java package com.vladmihalcea.book.hpjp.hibernate.transaction.identifier; import com.vladmihalcea.book.hpjp.util.AbstractTest; import com.vladmihalcea.book.hpjp.util.providers.Database; import org.junit.Test; imp...
984
751
<reponame>FDio/vpp<filename>src/vnet/devices/tap/tap.c /* *------------------------------------------------------------------ * Copyright (c) 2017 Cisco 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 ...
15,127
324
<filename>tests/com/google/common/css/compiler/passes/CssClassRenamingTest.java<gh_stars>100-1000 /* * 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 * * ...
1,908
435
{ "alias": "video/695/8-boolpy-using-python-for-symbolic-boolean-alge", "category": "PyCon US 2012", "copyright_text": "", "description": "", "duration": null, "id": 695, "language": "eng", "quality_notes": "", "recorded": "2012-03-11", "slug": "8-boolpy-using-python-for-symbolic-boolean-alge", "s...
397
376
extern zend_class_entry *ice_crypt_ce; ZEPHIR_INIT_CLASS(Ice_Crypt); PHP_METHOD(Ice_Crypt, setKey); PHP_METHOD(Ice_Crypt, setCipher); PHP_METHOD(Ice_Crypt, setMode); PHP_METHOD(Ice_Crypt, setBlock); PHP_METHOD(Ice_Crypt, __construct); PHP_METHOD(Ice_Crypt, encrypt); PHP_METHOD(Ice_Crypt, generateInputVector); PHP_ME...
1,779
2,268
<filename>sp/src/game/client/fx_fleck.cpp //========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $Workfile: $ // $NoKeywords: $ //=============================================================================// #include "cbase.h" #include "fx_fleck.h" // memdbgon must be ...
2,638
350
# 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 # distributed under t...
525
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once namespace Reliab...
1,084
679
<reponame>Grosskopf/openoffice<filename>main/sc/source/filter/lotus/op.cxx /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional inform...
9,678
1,444
<reponame>amc8391/mage package mage.cards.l; import mage.MageInt; import mage.Mana; import mage.abilities.condition.Condition; import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition; import mage.abilities.costs.common.TapSourceCost; import mage.abilities.decorator.ConditionalManaEffect; import mage...
796
487
/* Copyright 2013-present Barefoot Networks, 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 ...
4,712
903
/* * 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 ...
930
5,169
<gh_stars>1000+ { "name": "RRTagController", "version": "0.1.4", "summary": "RRTagController allows user to select tag and create new one.", "homepage": "https://github.com/alexruperez/RRTagController", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "<NAME>": "<EMAIL>", "<NA...
295
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. #include "content/browser/media/audible_metrics.h" #include <utility> #include "base/metrics/histogram_macros.h" #include "base/time/default_tick_clock....
890
839
/** * 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 m...
1,777
5,156
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */ #include "util.h" static const char file_name[] = "rr-test-blacklist-file_name"; int main(void) { int fd; int dirfd; char buf[PATH_MAX]; open(file_name, O_CREAT | O_WRONLY, 0700); #ifdef SYS_open fd = syscall(SYS_open, file_na...
367
2,996
// Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.engine.rendering.nui.animation; import org.terasology.joml.geom.Rectanglei; /** * Does not do anything. The {@link #onEnd(Runnable)} method is triggered instantly. */ public class MenuAnimationSystemStub imple...
429
1,457
{ "extends": [ "eslint:recommended", "plugin:prettier/recommended", "prettier/@typescript-eslint" ], "plugins": [ "html" ], "env": { "browser": true, "commonjs": true, "node": true, "es6": true, "jest": true }, "parserOptions": { "ecmaVersion": 2018, "sourceType...
1,261
12,278
# Copyright <NAME> 2007. 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) value = 42
63
969
<gh_stars>100-1000 package app.musicplayer.view; import java.net.URL; import java.util.Optional; import java.util.ResourceBundle; import java.util.concurrent.CountDownLatch; import app.musicplayer.model.*; import app.musicplayer.util.Search; import com.melloware.jintellitype.IntellitypeListener; import com.melloware....
19,313
353
<filename>src/com/mtbs3d/minecrift/gui/framework/GuiSelectOption.java package com.mtbs3d.minecrift.gui.framework; import com.mtbs3d.minecrift.settings.VRSettings; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.GuiYesNoCallback; /** * Created by S...
1,442
356
package com.idrv.coach.ui; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.RecyclerView; import android.widget.Button; import com.idrv.coach.R; import com.idrv.coach.bean.TeamMember; import co...
2,052
899
""" Copyright (c) 2019-2020 Uber Technologies, 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...
10,475
432
<gh_stars>100-1000 package com.revengemission.sso.oauth2.server.token; import com.revengemission.sso.oauth2.server.config.CachesEnum; import com.revengemission.sso.oauth2.server.domain.OAuth2Exception; import com.revengemission.sso.oauth2.server.domain.OauthClient; import com.revengemission.sso.oauth2.server.domain.Us...
2,048
872
<filename>270 Closest Binary Search Tree Value.py """ Premium Question """ import sys __author__ = 'Daniel' class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def closestValue(self, root, target): """ ...
642
1,444
<reponame>amc8391/mage package mage.cards.f; import mage.MageInt; import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.effects.common.CreateTokenEffect; import mage.abilities.keyword.TrampleAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardTy...
461
330
<reponame>LONG-9621/flowNet ''' Provider for duck dataset from <NAME> ''' import os import os.path import json import numpy as np import sys import pickle import glob class SceneflowDataset(): def __init__(self, root='kitti_rm_ground', npoints=16384, train=True): self.npoints = npoints self.r...
1,513
574
from inspect import signature from typing import Type, List from beanie.odm.documents import Document from beanie.migrations.controllers.base import BaseMigrationController def free_fall_migration(document_models: List[Type[Document]]): class FreeFallMigrationController(BaseMigrationController): def __in...
365
435
<gh_stars>100-1000 { "copyright_text": "Standard YouTube License", "description": "In this talk, you\u2019ll learn about a category of security issue known as side channel attacks. You\u2019ll be amused to see how features like automatic data compression, short-circuit execution, and deterministic hashing can be ab...
583
4,054
<reponame>Thendont/lwjgl /* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.egl; import javax.annotation.*; import java.nio.*; import org.lwjgl.system.*; import static org.lwjgl.system.Checks.*; import static org.l...
2,013
454
/* * This file is generated by jOOQ. */ package cn.vertxup.atom.domain.tables.interfaces; import io.github.jklingsporn.vertx.jooq.shared.internal.VertxPojo; import java.io.Serializable; import java.time.LocalDateTime; import static io.github.jklingsporn.vertx.jooq.shared.internal.VertxPojo.*; /** * This class i...
5,207
708
<reponame>AdvancedElectricLongboard/LongboardSTM32FW /*************************************************************************** * Copyright (C) 2008 by <NAME> * * <EMAIL> * * Copyright (C) 2008 by <NAME> ...
1,207
988
/* * 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 ...
5,439
4,095
<reponame>sullis/lettuce-core /* * Copyright 2011-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-...
1,581
370
// ============================================================================= // === spqr.hpp ================================================================ // ============================================================================= // Internal definitions and non-user-callable routines. This should not be ...
14,519
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.eventgrid.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonC...
373
838
<filename>MicroPython_BUILD/components/micropython/esp32/modules_examples/lora/config_lora.py import sys import os import time def mac2eui(mac): mac = mac[0:6] + 'fffe' + mac[6:] return hex(int(mac[0:2], 16) ^ 2)[2:] + mac[2:] # Node Name from machine import unique_id import ubinascii unique_id = ubinascii....
244
322
<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 "...
722
14,425
/** * 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...
3,598
318
/** * @class vtkF3DInteractorEventRecorder * @brief A F3D dedicated version of the vtkInteractorEventRecorder * @sa vtkInteractorEventRecorder */ #ifndef vtkF3DInteractorEventRecorder_h #define vtkF3DInteractorEventRecorder_h #include <vtkInteractorEventRecorder.h> class vtkF3DInteractorEventRecorder : publi...
353
1,929
<gh_stars>1000+ import argparse import time import os.path as osp import tempfile import torch import torch.distributed as dist import mmcv from mmcv.runner import load_checkpoint, obj_from_dict from mmcv.runner import get_dist_info from mmcv.parallel.distributed import MMDistributedDataParallel from mmaction import ...
2,944
828
/* * Copyright (C) 2021 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...
2,037
2,092
<reponame>lwhsu/ck #include <assert.h> #include "../../../src/ck_ec_timeutil.h" #include "fuzz_harness.h" #if ULONG_MAX > 4294967295 typedef __int128 dsword_t; #else typedef int64_t dsword_t; #endif struct example { struct timespec x; struct timespec y; }; static const struct example examples[] = { { { 42, ...
726
707
<reponame>shueja-personal/allwpilib // Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package edu.wpi.first.wpilibj; import static org.junit.jupiter.api.Assertions.asser...
1,264
854
<filename>Python3/301.py __________________________________________________________________________________________________ sample 24 ms submission class Solution: def removeInvalidParentheses(self, s: str) -> List[str]: ret = [] remove(s, ret, 0, 0, '()') return ret def remove(s, ret, las...
1,297
373
<filename>Silicon/Intel/CoffeelakeSiliconPkg/Pch/Include/GpioPinsCnlH.h /** @file GPIO pins, Copyright (c) 2019 Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef _GPIO_PINS_CNL_H_H_ #define _GPIO_PINS_CNL_H_H_ /// /// This header file should be use...
11,622
2,223
<gh_stars>1000+ # Copyright (c) 2020-2021 impersonator.org authors (<NAME> and <NAME>). All rights reserved. import time import torch import cv2 import numpy as np import os from easydict import EasyDict from tqdm import tqdm from mmdet.apis import init_detector, inference_detector from mmedit.apis import init_model,...
4,311
1,588
<filename>erupt-annotation/src/main/java/xyz/erupt/annotation/fun/EruptProxy.java package xyz.erupt.annotation.fun; import xyz.erupt.annotation.config.Comment; /** * @author YuePeng * date 2018-10-09. */ public interface EruptProxy<MODEL> { @Comment("Don't call") default EruptProxy<? extends MODEL> dual()...
139
2,073
""" discord.types ~~~~~~~~~~~~~~ Typings for the Discord API :copyright: (c) 2015-2021 Rapptz & (c) 2021-present Pycord Development :license: MIT, see LICENSE for more details. """
61
429
<filename>main/ejml-dsparse/test/org/ejml/sparse/csc/decomposition/lu/GenericLuTests_DSCC.java /* * Copyright (c) 2020, <NAME>. All Rights Reserved. * * This file is part of Efficient Java Matrix Library (EJML). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except...
4,002
2,084
<reponame>petrdousa/archaius /** * Copyright 2014 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
5,793
310
# -*- coding: utf-8 -*- """Top-level package for Bitcoin exchange feedhandler.""" __author__ = """<NAME>""" __email__ = '<EMAIL>' from pkg_resources import get_distribution, DistributionNotFound try: __version__ = get_distribution(__name__).version except DistributionNotFound: # package is not installed ...
124
404
// // PluginGain.c - MrsWatson // Copyright (c) 2016 <NAME>. 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 notice, // th...
1,388
1,085
<gh_stars>1000+ /* * Copyright (C) 2017-2019 Dremio Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
808
329
<gh_stars>100-1000 /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2018-2020 Couchbase, 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 L...
8,318
318
package com.cxytiandi.kittycloud.mqconsume.es.enums; /** * @作者 尹吉欢 * @个人微信 jihuan900 * @微信公众号 猿天地 * @GitHub https://github.com/yinjihuan * @作者介绍 http://cxytiandi.com/about * @时间 2020-03-29 23:09 */ public enum ChangeTypeEnum { /** * 新增 */ INSERT(1, "新增"), /** * 修改 */ UPDATE(...
544
713
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right from collections import deque from collections import defaultdict class Solution(object): def verticalOrder(self, ...
858
348
{"nom":"Veynes","circ":"1ère circonscription","dpt":"Hautes-Alpes","inscrits":2449,"abs":1172,"votants":1277,"blancs":35,"nuls":8,"exp":1234,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":347},{"nuance":"FI","nom":"Mme <NAME>","voix":216},{"nuance":"SOC","nom":"Mme <NAME>","voix":167},{"nuance":"FN","nom":"M. <NAME>"...
277
1,233
/* * Copyright 2019 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
1,291
2,027
<filename>utils/src/main/java/io/atomix/utils/misc/StringUtils.java /* * Copyright 2019-present Open Networking Foundation * * 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://ww...
447
5,169
{ "name": "FlawlessTransactionGeneration", "version": "0.0.2", "summary": "This pod generate list of random transaction", "description": "This CocoaPods library helps you to random generate list of bank's transaction.", "homepage": "https://github.com/swiftoverflow/FlawlessTransactionGeneration", "license":...
314
6,541
<filename>system/lib/libc/musl/src/locale/catclose.c<gh_stars>1000+ #include <nl_types.h> int catclose (nl_catd catd) { return 0; }
62
375
package jenkins.plugins.git.traits; import hudson.Util; import hudson.model.Descriptor; import hudson.plugins.git.extensions.GitSCMExtension; import java.util.ArrayList; import java.util.List; import jenkins.scm.api.trait.SCMSourceTrait; import org.junit.ClassRule; import org.junit.Test; import org.jvnet.hudson.test.J...
881
413
<reponame>Ryujin-Jakka/spfx-40-fantastics { "$schema": "../../../node_modules/@microsoft/sp-module-interfaces/lib/manifestSchemas/jsonSchemas/clientSideComponentManifestSchema.json", "id": "944744d9-a870-4bb7-a732-f63da7558609", "alias": "StockInfo", "componentType": "WebPart", "version": "1.0.0", "manifes...
397
471
from django.urls import reverse from django.utils.translation import ugettext_lazy from memoized import memoized from corehq.apps.locations.models import SQLLocation from corehq.apps.reports.filters.controllers import ( LocationGroupOptionsController, ) from .api import EmwfOptionsView from .users import Expande...
689
628
from rest_framework import serializers as ser from distutils.version import StrictVersion from api.base.serializers import JSONAPISerializer, LinksField, ShowIfVersion, RelationshipField from api.subjects.serializers import UpdateSubjectsMixin from osf.models import Subject subjects_as_relationships_version = '2.16'...
2,308
585
# Copyright (c) 2016-present, Facebook, 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...
3,645
2,151
/* Currently, can only use arrays, verts are not implemented, though * verts are suspected to be faster. * To get an idea how the verts path works, look at the radeon implementation. */ #include <string.h> #include "r200_context.h" #define R200_MAOS_VERTS 0 #if (R200_MAOS_VERTS) #include "r200_maos_verts.c" #els...
131
569
from tltk.nlp import spell_candidates from typing import List def spell(text: str) -> List[str]: return spell_candidates(text)
44
679
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
6,362
612
<filename>SRT/exps/PRO-vis.py # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # from __future__ import division import os, sys, time, torch, random, argparse, PIL from os ...
757
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. #include "base/memory/memory_pressure_monitor_win.h" #include "base/macros.h" #include "base/memory/memory_pressure_listener.h" #include "base/message_lo...
3,891
14,668
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromeos/services/secure_channel/fake_timer_factory.h" #include "base/bind.h" #include "base/callback.h" #include "chromeos/services/secure_cha...
449
3,799
/* * Copyright 2020 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 applica...
3,290
488
<filename>src/frontend/SageIII/astFromString/ParserBuilder.tpp namespace ParserBuilder { template <class Recipient> Parser<Recipient>::Parser() : p_grammar_root(NULL) {} template <class Recipient> Parser<Recipient>::~Parser() { std::set<GrammarNode *> childs; p_grammar_root->collectChilds(childs); ...
463
10,225
package io.quarkus.security.test.cdi.app.denied.unnanotated; import javax.inject.Singleton; /** * @author <NAME>, <EMAIL> */ @Singleton public class BeanWithNoSecurityAnnotations { public String unannotated() { return "unannotatedOnBeanWithNoAnno"; } }
105
334
#include <array> #include <chrono> #include <filesystem> #include <fstream> #include <iomanip> #include <iostream> #include <memory> #include <vector> #include <algorithm> int main() { using namespace std; vector<int> numbers; numbers.resize(15); for (size_t i = 0; i < 15; ++i) { numbers.empla...
932
558
<filename>syncer-common/src/main/java/syncer/common/properties/DbProperties.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://www.apache.org/licenses/LICENSE-2.0 // // Un...
534
1,056
<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 * ...
2,320
2,900
<reponame>jiweigang1/jackson-databind package com.fasterxml.jackson.failing; import com.fasterxml.jackson.annotation.JsonIdentityInfo; import com.fasterxml.jackson.annotation.ObjectIdGenerators; import com.fasterxml.jackson.databind.BaseMapTest; import com.fasterxml.jackson.databind.ObjectMapper; import java.util.Arr...
2,201
852
#ifndef FWCore_Utilities_Algorithms_h #define FWCore_Utilities_Algorithms_h #include <algorithm> namespace edm { /// Function templates that provide wrappers for standard algorithms, /// avoiding some duplication /// and assuring that incommensurate iterators are not used. /// wrapper for std::for_each te...
1,497
3,459
<reponame>werminghoff/Provenance #ifndef __COMPRESSION_BITCODER_H #define __COMPRESSION_BITCODER_H #include "rngcoder.h" namespace NCompression { namespace NArithmetic { const int kNumBitModelTotalBits = 11; const UINT32 kBitModelTotal = (1 << kNumBitModelTotalBits); const int kNumMoveReducingBits = 2; //////////...
896
399
package edu.wpi.grip.core.sockets; import edu.wpi.grip.core.Connection; import com.thoughtworks.xstream.annotations.XStreamAlias; import java.util.HashSet; import java.util.Optional; import java.util.Set; import static com.google.common.base.Preconditions.checkNotNull; /** * A {@link SocketHint} that's type is li...
1,565
5,169
{ "name": "XCUIElement+Visible", "version": "0.0.1", "summary": "It adds visible property to XCUIElement", "description": "This extension adds computed property visible to XCUIElement. It is useful in UI Testing for checking if an element is visible on the screen.", "homepage": "https://github.com/albinekcom/...
277
17,085
<gh_stars>1000+ # Copyright (c) 2021 PaddlePaddle 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 # # Unles...
7,426
372
/* Editor Settings: expandtabs and use 4 spaces for indentation * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * * -*- mode: c, c-basic-offset: 4 -*- */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
4,996
703
<reponame>Tekh-ops/ezEngine #include <ToolsFoundationTest/ToolsFoundationTestPCH.h> #include <TestFramework/Framework/TestFramework.h> #include <TestFramework/Utilities/TestSetup.h> ezInt32 ezConstructionCounter::s_iConstructions = 0; ezInt32 ezConstructionCounter::s_iDestructions = 0; ezInt32 ezConstructionCo...
178
310
""" Copyright (c) 2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
2,664
416
<reponame>khauser/SimpleFlatMapper<gh_stars>100-1000 package org.simpleflatmapper.converter.impl.time; import org.simpleflatmapper.converter.Context; import org.simpleflatmapper.converter.ContextualConverter; import java.time.ZoneId; import java.time.ZonedDateTime; import java.util.Date; public class DateToJavaZoned...
257
2,472
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // Please refer to the license text that comes with this tendis open source // project for additional information. #include <iostream> #include <string> #include <cstring> #include "tendisplus/utils/base64.h" std::string Base64::Encode(co...
1,808
1,521
/** * Copyright 2020 Alibaba Group Holding Limited. * * <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of the License at * * <p>http://www.apache.org/licenses/LICENSE-2.0 * * <p>Unless required by applic...
4,605
4,879
<gh_stars>1000+ #pragma once #include <string> enum MapStyle { MapStyleClear = 0, MapStyleDark = 1, MapStyleMerged = 2, MapStyleVehicleClear = 3, MapStyleVehicleDark = 4, // Add new map style here // Specifies number of MapStyle enum values, must be last MapStyleCount }; extern MapStyle const kDefau...
163
862
#!/usr/bin/python # # Filename: # # Version: 1.0.0 # # Author: <NAME> (TryCatchHCF) # # Summary: # # Part of the DumpsterFire Toolset. See documentation at https://github.com/TryCatchHCF/DumpsterFire # # # Description: # # # Example: # # import os, sys, urllib, random, string from FireModules.fire_module_base_clas...
757