max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
556
<reponame>fengjixuchui/Ghost-In-The-Logs<gh_stars>100-1000 /* * Module Name: * stdafx.h * * Abstract: * Precompiled header. * * Authors: * <NAME> <<EMAIL>> | http://everdox.net/ * * Special thanks to Nemanja (Nemi) Mulasmajic <<EMAIL>> * for his help with the POC. * */ #pragma once /// /// Includes. /// #pragma ...
224
2,151
<filename>remoting/host/remote_input_filter.cc // 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. #include "remoting/host/remote_input_filter.h" #include <stdint.h> #include "base/logging.h" #include...
1,319
555
<filename>security-admin/src/main/java/org/apache/ranger/entity/XXPolicyRefDataMaskType.java /* * 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 AS...
1,743
1,350
<filename>sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestImpl.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generat...
3,370
14,668
<gh_stars>1000+ // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/base/clipboard/test/clipboard_test_util.h" #include <vector> #include "base/run_loop.h" #include "base/synchronization/wait...
474
2,531
<gh_stars>1000+ #include "../../private_api.h" #ifdef FLECS_EXPR char* ecs_chresc( char *out, char in, char delimiter) { char *bptr = out; switch(in) { case '\a': *bptr++ = '\\'; *bptr = 'a'; break; case '\b': *bptr++ = '\\'; *bptr = 'b'; ...
1,930
653
<gh_stars>100-1000 // Copyright (c) 2020 by Chrono // // https://github.com/whoshuu/cpr/ // cmake . -DUSE_SYSTEM_CURL=ON -DBUILD_CPR_TESTS=OFF // make && make install // // g++ cpr.cpp -std=c++14 -lcpr -lpthread -lcurl -o a.out;./a.out #include <cassert> #include <iostream> #include <cpr/cpr.h> using namespace std;...
878
418
/* * Copyright (c) 2015 <NAME> (gfx). * * 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,314
493
/** * Copyright (C) 2016 Turi * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ #ifndef CPPIPC_UTIL_GENERICS_MEMBER_FUNCTION_RETURN_TYPE_HPP #define CPPIPC_UTIL_GENERICS_MEMBER_FUNCTION_RETURN_TYPE_HPP namespace cp...
210
374
<gh_stars>100-1000 { "name": "openfb", "main": "openfb.js", "version": "0.5.0", "homepage": "https://github.com/ccoenraets/OpenFB", "authors": [ "<NAME> <<EMAIL>>" ], "description": "Micro-Library for Facebook integration in JavaScript apps running in the browser and in Cordova", "keywords": [ "...
228
661
<gh_stars>100-1000 /* Copyright (c) 2014 <NAME> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including...
766
2,637
/** @file swrtc.c * * @brief This file provides Software rtc implementation * * (C) Copyright 2008-2019 Marvell International Ltd. All Rights Reserved. * * MARVELL CONFIDENTIAL * The source code contained or described herein and all documents related to * the source code ("Material") are owned by Marvell ...
720
450
import UserDict class jj(UserDict.UserDict) : "jj" def __init__(self): UserDict.UserDict.__init__(self, None) class jj2(UserDict.UserDict) : "jj2" def __init__(self): "Warning don't call UserDict.UserDict.__init__()" print "don't call UserDict.UserDict.__init__()" class jj3(jj) : ...
288
459
from keras import backend as K from .word_alignment import WordAlignmentEntailment from ...tensors.backend import switch class MultipleChoiceTupleEntailment(WordAlignmentEntailment): '''A kind of decomposable attention where the premise (or background) is in the form of SVO triples, and entailment is compute...
3,267
14,668
<reponame>chromium/chromium // 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 "third_party/blink/renderer/modules/animationworklet/worklet_animation.h" #include <memory> #include <utility> #inc...
7,940
418
package tmplatform.authorisation; public class ApiClientLink { }
20
785
<reponame>292427558/iot-dc3<filename>dc3-driver/dc3-driver-mqtt/src/main/java/com/dc3/driver/mqtt/bean/MqttPayload.java /* * Copyright 2016-2021 Pnoker. 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...
477
3,897
<reponame>mattbrown015/mbed-os /**************************************************************************** * * Copyright 2020 Samsung Electronics All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in c...
429
383
<gh_stars>100-1000 #pragma once #include "targetver.h" #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <Mmsystem.h> #ifdef min #undef min #endif // min #ifdef max #undef max #endif // max #include "corelib.h" #include <dinput.h> #include <d3d9.h> #include "dxsdk/Include/d3dx9...
338
190,993
/* Copyright 2019 The TensorFlow 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 Unless required by applicable law or a...
1,210
8,805
../../../../../node_modules/expo-permissions/ios/EXPermissions/EXCalendarRequester.h
28
1,894
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Functions for getting commit information from Gitiles.""" from __future__ import print_function from __future__ import division from __future__ import abso...
273
879
package org.zstack.core.gc; import org.zstack.header.message.NeedReplyMessage; /** * Created by mingjian.deng on 2018/12/7. */ public class TriggerGcJobMsg extends NeedReplyMessage { private String uuid; public String getUuid() { return uuid; } public void setUuid(String uuid) { th...
137
14,668
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_WEBUI_WEBUI_JS_ERROR_WEBUI_JS_ERROR_UI_H_ #define CHROME_BROWSER_UI_WEBUI_WEBUI_JS_ERROR_WEBUI_JS_ERROR_UI_H_ #include "content...
302
623
package com.netease.nim.uikit.common.adapter; import android.view.View; import android.view.ViewGroup; /** */ public abstract class DataFreeViewHolder<T> extends BaseViewHolder<T> { public DataFreeViewHolder(ViewGroup parent, int layoutId) { super(parent, layoutId); } public DataFreeViewHolder(...
172
473
<reponame>pingjuiliao/cb-multios /* Author: <NAME> <<EMAIL>> Copyright (c) 2015 Cromulence LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation t...
684
3,372
<filename>aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/transform/FindingMarshaller.java<gh_stars>1000+ /* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in co...
2,512
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.dataprotection.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fast...
833
407
package com.alibaba.tesla.appmanager.trait.plugin; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.alibaba.tesla.appmanager.common.constants.DefaultConstant; import com.alibaba.tesla.appmanager.domain.core.WorkloadResource; import com.alibaba....
1,658
1,647
<reponame>davidbrochart/pythran<gh_stars>1000+ #ifndef PYTHONIC_NUMPY_INTP_HPP #define PYTHONIC_NUMPY_INTP_HPP #include "pythonic/include/numpy/intp.hpp" #include "pythonic/utils/functor.hpp" #include "pythonic/utils/meta.hpp" #include "pythonic/utils/numpy_traits.hpp" #include "pythonic/types/numpy_op_helper.hpp" P...
323
514
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
1,352
11,356
<filename>src/external/boost/boost_1_68_0/libs/contract/example/features/separate_body.cpp // Copyright (C) 2008-2018 <NAME> // Distributed under the Boost Software License, Version 1.0 (see accompanying // file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt). // See: http://www.boost.org/doc/libs/r...
375
416
// // HKObserverQuery.h // HealthKit // // Copyright (c) 2014 Apple Inc. All rights reserved. // #import <HealthKit/HKQuery.h> NS_ASSUME_NONNULL_BEGIN typedef void(^HKObserverQueryCompletionHandler)(void); HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0)) @interface HKObserverQuery : HKQuery /*! @method i...
379
10,225
package io.quarkus.grpc.health; import static io.restassured.RestAssured.when; import static java.util.Arrays.asList; import static java.util.function.Predicate.isEqual; import static org.awaitility.Awaitility.await; import java.util.Arrays; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; imp...
1,761
6,989
<filename>catboost/cuda/cuda_util/partitions.h #pragma once #include <catboost/cuda/cuda_lib/fwd.h> struct TDataPartition; template <class TMapping> void UpdatePartitionDimensions( const NCudaLib::TCudaBuffer<ui32, TMapping>& sortedBins, NCudaLib::TCudaBuffer<TDataPartition, TMapping>& parts, ui32 stream...
433
308
/* * Copyright(c) 2018 Intel Corporation * SPDX - License - Identifier: BSD - 2 - Clause - Patent */ #include <stdlib.h> #include <string.h> #include "EbPictureBufferDesc.h" #include "EbReferenceObject.h" void EbHevcInitializeSamplesNeighboringReferencePicture16Bit( EB_BYTE reconSamplesBufferPtr, EB_U16 s...
3,944
2,061
<filename>backend/x11/backend.c #define _POSIX_C_SOURCE 200809L #include <assert.h> #include <fcntl.h> #include <limits.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <xf86drm.h> #include <wlr/config.h> #include <drm_fourcc.h> #include <wayland-server-cor...
9,380
1,003
<filename>mogu_picture/src/main/java/com/moxi/mogublog/picture/service/MinioService.java package com.moxi.mogublog.picture.service; import org.springframework.web.multipart.MultipartFile; import java.io.IOException; import java.util.List; /** * 本地对象存储服务 Minio文件上传服务类 * * @author 陌溪 * @date 2020年10月19日11:12:14 */...
409
780
package com.codeborne.selenide.commands; import com.codeborne.selenide.Command; import com.codeborne.selenide.SelenideElement; import com.codeborne.selenide.impl.WebElementSource; import javax.annotation.CheckReturnValue; import javax.annotation.Nonnull; import javax.annotation.Nullable; import javax.annotation.Param...
196
1,363
/* * Copyright 2019 liaochong * * 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...
3,715
684
/* 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...
1,102
1,296
<filename>bindings/wp8/MUserList.h /** * @file MUserList.h * @brief List of MUser objects * * (c) 2013-2014 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules set fo...
366
2,101
<reponame>tirkarthi/raiden import atexit import signal from abc import ABC, abstractmethod from types import TracebackType from typing import Any, Callable, List, Optional, Set, Type import gevent import structlog from gevent import Greenlet, GreenletExit from gevent.event import AsyncResult from gevent.greenlet impor...
4,488
852
#include "CalibFormats/SiStripObjects/interface/SiStripHashedDetId.h" #include "CalibTracker/Records/interface/SiStripHashedDetIdRcd.h" #include "FWCore/Framework/interface/ESProducer.h" #include "FWCore/Framework/interface/ModuleFactory.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Messag...
1,136
323
#define ONDISCONNECTED 0 #define ONERROR 1 #define ONSUBMARKETDATA 2 #define ONUNSUBMARKETDATA 3 #define ONDEPTHMARKETDATA 4 #define ONSUBORDERBOOK 5 #define ONUNSUBORDERBOOK 6 #define ONORDERBOOK 7 #define ONSUBTICKBYTICK 8 #define ONUNSUBTICKBYTICK 9 #define ONTICKBYTICK 10 #define ONSUBSCRIBEALLMARKETDATA 11 #define...
336
3,294
//PlotPanel.cpp file using namespace System; using namespace System::Windows; using namespace System::Windows::Controls; using namespace System::Windows::Shapes; using namespace System::Windows::Media; using namespace System::Threading; namespace PlotPanel { public ref class app : System::Windows::Application { ...
1,134
1,163
<reponame>kintel/iree // Copyright 2019 The IREE Authors // // Licensed 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 #ifndef IREE_COMPILER_DIALECT_VM_TARGET_BYTECODE_CONSTANTENCODER_H_ #define...
559
2,757
<filename>Vlv2TbltDevicePkg/MonoStatusCode/PlatformStatusCode.h /*++ Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the ...
1,895
778
// // Created by <NAME> on 11/18/21. // #ifndef TUPLEX_FILEUTILS_H #define TUPLEX_FILEUTILS_H #include <string> namespace tuplex { /*! * when performing unix wildcard matching, this finds the longest prefix where no matching character is used * @param s path * @param escapechar characters escaped wit...
1,044
343
<reponame>nzeh/syzygy // Copyright 2013 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless ...
573
2,364
<gh_stars>1000+ /* * Copyright (c) 2011 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 ...
2,399
1,099
<filename>live/src/main/java/com/example/live/mvp/main/MainActivity.java package com.example.live.mvp.main; import android.os.Bundle; import android.support.design.widget.TabLayout; import android.support.v4.view.ViewPager; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; impor...
2,707
1,605
/* * 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 ...
4,144
389
/* * Copyright 2014 Guidewire Software, Inc. */ package gw.internal.gosu.annotations; import gw.lang.reflect.IType; import gw.lang.reflect.TypeSystem; import gw.lang.reflect.java.IJavaType; import gw.lang.reflect.java.JavaTypes; import gw.lang.annotation.Annotations; import java.util.HashMap; import java.util.List...
551
776
<filename>src/stubgenerator/server/cppserverstubgenerator.h /************************************************************************* * libjson-rpc-cpp ************************************************************************* * @file serverstubgenerator.h * @date 01.05.2013 * @author <NAME> <<EMAIL>> * @l...
375
6,098
package water.rapids.ast.prims.string; import water.Iced; import water.MRTask; import water.fvec.Chunk; import water.fvec.Frame; import water.fvec.NewChunk; import water.fvec.Vec; import water.parser.BufferedString; import water.rapids.Val; import water.rapids.ast.AstBuiltin; import water.rapids.vals.ValFrame; import...
2,311
1,500
<gh_stars>1000+ package xtdb.calcite; import org.apache.calcite.plan.RelOptCluster; import org.apache.calcite.plan.RelOptTable; import org.apache.calcite.plan.RelTraitSet; import org.apache.calcite.rel.RelNode; import org.apache.calcite.rel.core.Project; import org.apache.calcite.rel.type.RelDataType; import org.apach...
639
316
package pv.com.pvcloudgo.model.bean; import java.io.Serializable; /** * Created by stefan on 17/1/4. */ public class Account implements Serializable { String whoclassName; String id; String whoId; String whoName; String withdrawalsPwd; float totalPrice; float frozenPrice; float ava...
470
2,338
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s // RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 %s // RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 %s // RUN: %clang_cc1 -fsyntax-only -verify -std=c++2a %s // Verify that using an initializer list for a non-aggregate looks for // constructors.. struct Non...
2,416
3,084
/*++ Copyright (c) Microsoft Corporation. All rights reserved. Module Name: util.cpp Abstract: This module contains the internal helper function definitions for the SpbTestTool app. Environment: user-mode Revision History: --*/ #include "internal.h" _Success_(return) ...
2,919
20,995
// Copyright 2020 the V8 project 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 "src/heap/free-list.h" #include "src/base/macros.h" #include "src/common/globals.h" #include "src/heap/free-list-inl.h" #include "src/heap/hea...
6,375
679
<reponame>Grosskopf/openoffice /************************************************************** * * 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...
922
5,788
<filename>shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/embedded/type/MySQLEmbeddedDatabase.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements....
2,071
2,577
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
1,885
2,146
<gh_stars>1000+ #include <capnp/message.h> int main() { ::capnp::MallocMessageBuilder message; return 0; }
48
2,338
typedef struct { int anon_field_b; } StructB; namespace Namespace { template <typename T> struct AlsoInNamespace { T field; }; extern template struct AlsoInNamespace<int>; } // namespace Namespace
65
1,059
/* SPDX-License-Identifier: BSD-2-Clause */ #pragma once /* * Tilck text mode color constants */ enum vga_color { /* regular (darker) colors */ COLOR_BLACK = 0, COLOR_BLUE = 1, COLOR_GREEN = 2, COLOR_CYAN = 3, COLOR_RED = 4, COLOR_MAGENTA ...
732
1,338
<gh_stars>1000+ /* * Copyright 2006, Haiku. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> */ #ifndef OBSERVABLE_H #define OBSERVABLE_H #include <List.h> class Observer; class Observable { public: Observable(); virtual ~Observable(); bool AddObserver(O...
498
4,772
package example.service; import example.repo.Customer1107Repository; import org.springframework.stereotype.Service; @Service public class Customer1107Service { public Customer1107Service(Customer1107Repository repo) {} }
64
340
<gh_stars>100-1000 def print_formatted(number): align = len(bin(number)[2:]) for num in range(1, number + 1): n_dec = str(num) n_oct = oct(num)[2:] n_hex = hex(num)[2:].upper() n_bin = bin(num)[2:] print(n_dec.rjust(align), n_oct.rjust(align), n_hex.rjust(align), n_bin.rj...
166
713
package org.infinispan.configuration.parsing; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * Namespace. An annotation which allows specifying the namespace recognized by an implementation of * a {@link ConfigurationParser}. If you ne...
342
763
package org.batfish.representation.vyos; import org.batfish.common.Warnings; import org.batfish.datamodel.Configuration; import org.batfish.datamodel.routing_policy.expr.BooleanExpr; import org.batfish.datamodel.routing_policy.expr.BooleanExprs; import org.batfish.datamodel.routing_policy.expr.DestinationNetwork; impo...
534
364
<reponame>spring-operator/reactive-streams-commons package rsc.publisher; import org.junit.Test; import rsc.test.TestSubscriber; public class PublisherCountTest { @Test(expected = NullPointerException.class) public void sourceNull() { new PublisherCount<>(null); } public void normal() { ...
387
3,442
<filename>src/net/java/sip/communicator/impl/gui/main/chat/conference/ConferenceChatContact.java /* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compl...
872
1,251
package cn.dblearn.blog.portal.book.controller; import cn.dblearn.blog.common.Result; import cn.dblearn.blog.common.constants.RedisCacheNames; import cn.dblearn.blog.common.util.PageUtils; import cn.dblearn.blog.entity.book.BookNote; import cn.dblearn.blog.portal.common.annotation.LogLike; import cn.dblearn.blog.porta...
582
14,668
<filename>weblayer/shell/app/resource.h // 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 WEBLAYER_SHELL_APP_RESOURCE_H_ #define WEBLAYER_SHELL_APP_RESOURCE_H_ //{{NO_DEPENDENCIES}} // Microsoft ...
447
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,151
777
// 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. #include "core/paint/RootInlineBoxPainter.h" #include "core/layout/api/LineLayoutAPIShim.h" #include "core/layout/line/EllipsisBox.h" #include "core/layo...
698
8,451
/******************************************************************************* * ___ _ ____ ____ * / _ \ _ _ ___ ___| |_| _ \| __ ) * | | | | | | |/ _ \/ __| __| | | | _ \ * | |_| | |_| | __/\__ \ |_| |_| | |_) | * \__\_\\__,_|\___||___/\__|____/|____/ * * Copyright (c...
5,115
897
/* Program to calculate b^n%m . This program also known as Recursive Modular Exponentiation */ #include<iostream> #include <cmath> using namespace std; int power(int b,int n,int m) { if(n==0) return 1; else if(n%2==0) return power(b,n/2,m)*power(b,n/2,m)%m; else return power(b,n/2,m)*power(b,n/2,...
300
1,240
<gh_stars>1000+ package com.eventyay.organizer.robo.ui; import androidx.fragment.app.Fragment; import com.eventyay.organizer.common.ContextManager; import com.eventyay.organizer.core.attendee.list.AttendeesFragment; import com.eventyay.organizer.core.auth.login.LoginFragment; import com.eventyay.organizer.core.auth.r...
1,360
377
from wappalyzer import Wappalyzer from builtwith import builtwith from run_tools import run_tool import json import sys import subprocess import commands from mongo_connection import mongo_client import time import signal import logging def technologyScan(ip,domain,type): # config database client = mongo_client() ...
2,957
741
<reponame>sumity90/Applozic-Android-SDK<filename>mobicomkitui/src/main/java/com/applozic/mobicomkit/uiwidgets/ActivityLifecycleHandler.java package com.applozic.mobicomkit.uiwidgets; import android.annotation.TargetApi; import android.app.Activity; import android.app.Application; import android.os.Build; import androi...
519
663
<reponame>mchelen-gov/integrations-core { "name": "[Avi Vantage] Virtual service {{virtualservice_name.name}} has a high number of errors", "type": "query alert", "query": "avg(last_5m):avg:avi_vantage.l7_client.pct_response_errors{*} by {virtualservice_name,host} > 70", "message": "{{#is_alert}}\nVirtual service {...
408
348
{"nom":"Lanteuil","circ":"2ème circonscription","dpt":"Corrèze","inscrits":428,"abs":201,"votants":227,"blancs":28,"nuls":13,"exp":186,"res":[{"nuance":"LR","nom":"<NAME>","voix":112},{"nuance":"REM","nom":"<NAME>","voix":74}]}
91
9,541
namespace simdjson { namespace SIMDJSON_IMPLEMENTATION { /** * A fast, simple, DOM-like interface that parses JSON as you use it. * * Designed for maximum speed and a lower memory profile. */ namespace ondemand { /** Represents the depth of a JSON value (number of nested arrays/objects). */ using depth_t = int32_t...
449
1,367
<gh_stars>1000+ package android.view; import java.util.List; public class InputEventCompatProcessor { public List<InputEvent> processInputEventForCompatibility(InputEvent e) { return null; } }
65
427
// RUN: %clang_cc1 -triple i686-pc-win32 -disable-llvm-passes -emit-llvm -o - -O1 %s | FileCheck %s // // Test that TBAA works in the Microsoft C++ ABI. We used to error out while // attempting to mangle RTTI. struct StructA { int a; }; struct StructB : virtual StructA { StructB(); }; StructB::StructB() { a =...
278
1,031
package additive_animations.fragments; import android.os.Bundle; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.interpolator.view.animation.LinearOutSlowInInterpolator; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import andro...
995
1,799
<filename>lite/utils/env.h // Copyright (c) 2019 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/LICENS...
1,084
763
<reponame>zabrewer/batfish<filename>projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/collections/FileLines.java package org.batfish.datamodel.collections; import static com.google.common.base.MoreObjects.firstNonNull; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackso...
612
2,486
import unittest from slack_sdk.oauth.installation_store import InstallationStore from slack_sdk.oauth.installation_store.async_installation_store import ( AsyncInstallationStore, ) class TestInterface(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_sync(s...
194
12,824
<reponame>stefan-jurco/scala package test; import java.lang.invoke.*; public final class Bootstrap { private Bootstrap() { } public static CallSite bootstrap(MethodHandles.Lookup lookup, String invokedName, MethodType invokedType, ...
689
3,371
{ "name": "list-detection", "description": "Detects unordered and ordered lists in the text from paragraphs, using bullet points and numberings as indications. This module is a work in progress." }
51
3,181
// Copyright © 2013-2014 <NAME> <www.orfjackal.net> // This software is released under the Apache License 2.0. // The license text is at http://www.apache.org/licenses/LICENSE-2.0 package net.orfjackal.retrolambda.interfaces; import org.objectweb.asm.*; import static org.objectweb.asm.Opcodes.*; public class FixInv...
486
10,225
<reponame>mweber03/quarkus package io.quarkus.test.kubernetes.client; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import java.util.function.Consumer; import io.fabric8.openshift.client.server.mock.Open...
430
330
<filename>pybamm/input/parameters/lead_acid/positive_electrodes/lead_dioxide_Sulzer2019/lead_dioxide_ocp_Bode1977.py # # Open-circuit voltage in the positive (lead-dioxide) electrode # from pybamm import log10 def lead_dioxide_ocp_Bode1977(m): """ Dimensional open-circuit voltage in the positive (lead-dioxide...
302
316
<reponame>MrMarvin/cloudkeeper from resotolib.args import ArgumentParser from resotoworker.__main__ import add_args from resotoworker.collect import add_args as collect_add_args from resotoworker.cleanup import add_args as cleanup_add_args from resotoworker.resotocore import add_args as resotocore_add_args from resotol...
286
330
/* * Tencent is pleased to support the open source community by making ScriptX available. * Copyright (C) 2021 THL A29 Limited, a Tencent company. 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 ...
1,400
2,350
<reponame>lesterw1/RoaringBitmap<filename>RoaringBitmap/src/main/java/org/roaringbitmap/buffer/BufferFastAggregation.java /* * (c) the authors Licensed under the Apache License, Version 2.0. */ package org.roaringbitmap.buffer; import java.nio.CharBuffer; import java.nio.LongBuffer; import java.util.*; /** * Fas...
12,058