max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Both", "definitions": [ "Used before the first of two alternatives to emphasize that the statement being made applies to each (the other alternative being introduced by \u2018and\u2019)" ], "parts-of-speech": "Adverb" }
100
561
########################################################################## # # Copyright (c) 2018, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
1,382
14,668
// 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 BASE_METRICS_HISTOGRAM_FUNCTIONS_H_ #define BASE_METRICS_HISTOGRAM_FUNCTIONS_H_ #include <string> #include <type_traits> #include "base/metrics/...
5,520
365
// // SegmentTabController.h // YPTabBarController // // Created by 喻平 on 16/5/23. // Copyright © 2016年 YPTabBarController. All rights reserved. // #import "YPTabBarController.h" @interface SegmentTabController : YPTabBarController @end
89
22,688
/****************************************************************************** * Copyright 2017 The Apollo 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 ...
1,254
331
<filename>packages/api-explorer-style/package.json { "name": "@colmena/api-explorer-style", "version": "0.1.0", "description": "Colmena style for the Loopback API Explorer", "publishConfig": { "access": "public" }, "license": "MIT", "author": "<NAME> <<EMAIL>> (https://github.com/beeman) (https://twit...
149
997
#ifndef CRYPTO_SIGN_H #define CRYPTO_SIGN_H #include "api.h" #endif
35
14,668
// Copyright 2020 The Crashpad 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 ...
702
14,668
<gh_stars>1000+ // Copyright (c) 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 "scoped_refptr.h" struct Foo { int dummy; }; struct Bar : public Foo { int another_dummy; }; void ExpectsRawPtr(Foo* f...
231
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 ...
2,049
700
# -*- coding: utf-8 -*- # The MIT License (MIT) - Copyright (c) 2016-2021 <NAME>. """ Package a subcircuit so it can be used like a Part. """ from __future__ import ( # isort:skip absolute_import, division, print_function, unicode_literals, ) from builtins import super, zip from copy import copy f...
1,619
5,169
<reponame>Gantios/Specs { "name": "ContainerManager", "version": "2.0.0", "summary": "Helper classes to ContainerView usage with IE in Swift.", "description": "ContainerManager helps you with linking more than one ViewController to the same ContainerView with segues in the Interface Builder in Swift.", "homep...
226
726
package org.andresoviedo.android_3d_model_engine.drawer; import android.content.Context; import androidx.annotation.NonNull; import android.util.Log; import org.andresoviedo.android_3d_model_engine.R; import org.andresoviedo.android_3d_model_engine.model.AnimatedModel; import org.andresoviedo.android_3d_model_engine....
3,525
578
/* * Tencent is pleased to support the open source community by making BK-JOB蓝鲸智云作业平台 available. * * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * * BK-JOB蓝鲸智云作业平台 is licensed under the MIT License. * * License for BK-JOB蓝鲸智云作业平台: * ----------------------------------------------...
4,479
3,102
int h_chain(int x) { return x * 2; } namespace chns { int chf3(int x); int chf2(int x) { return chf3(x); } class chcls { public: int chf4(int x); }; int chcls::chf4(int x) { return x * 3; } }
105
10,225
<gh_stars>1000+ package io.quarkus.vertx.web.runtime; import java.util.function.Consumer; import io.vertx.ext.web.RoutingContext; public final class UniFailureCallback implements Consumer<Throwable> { private final RoutingContext context; public UniFailureCallback(RoutingContext context) { this.con...
151
32,544
<gh_stars>1000+ package com.baeldung.undeclared; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class UndeclaredApplication { public static void main(String[] args) { SpringApplication.run(UndeclaredApp...
111
1,312
from django.conf import settings from django.core import validators class BookmarkURLValidator(validators.URLValidator): """ Extends default Django URLValidator and cancels validation if it is disabled in settings. This allows to switch URL validation on/off dynamically which helps with testing """ ...
146
545
<reponame>FWangTrading/Cpp-Primer-5th-Exercises #include <iostream> class SmallInt { friend SmallInt operator+(const SmallInt&, const SmallInt&); public: SmallInt(int = 0) { } // conversion from int operator int() const { return val; } // conversion to int private: std::size_t val; }; SmallInt operator+(const...
316
1,444
<reponame>amc8391/mage package mage.sets; import mage.cards.ExpansionSet; import mage.constants.Rarity; import mage.constants.SetType; /** * https://scryfall.com/sets/md1 */ public class ModernEventDeck2014 extends ExpansionSet { private static final ModernEventDeck2014 instance = new ModernEventDeck2014(); ...
1,362
568
// // Copyright (c) 2009, <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, // this list of conditions and...
1,116
2,151
<reponame>aiw-google/openweave-core /* * Copyright (c) 2004 World Wide Web Consortium, (Massachusetts Institute of * Technology, Institut National de Recherche en Informatique et en * Automatique, Keio University). All Rights Reserved. This program is * distributed under the W3C's Software Intellectual Property Lic...
647
496
<filename>src/mydis/Operator.cpp /******************************************************************************* * Project: Nebula * @file Operator.cpp * @brief * @author Bwar * @date: 2016年8月17日 * @note * Modify history: ******************************************************************************...
132
575
<reponame>iridium-browser/iridium-browser<gh_stars>100-1000 // 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. #ifndef CHROME_BROWSER_ASH_LOGIN_UI_OOBE_UI_DIALOG_DELEGATE_H_ #define CHROME_BROWSER_ASH_LOGI...
2,293
1,738
<reponame>jeikabu/lumberyard<gh_stars>1000+ /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, ...
2,301
453
<filename>programs/awm/composite.c #include <unistd.h> #include <stdint.h> #include <stdlibadd/assert.h> #include <stdlibadd/array.h> #include <agx/lib/shapes.h> #include "window.h" #include "awm_internal.h" #include "composite.h" array_t* _g_screen_rects_to_update_this_cycle = NULL; /* Queue a composite for the p...
2,140
335
{ "word": "Dreadnought", "definitions": [ "A type of battleship introduced in the early 20th century, larger and faster than its predecessors and equipped entirely with large-calibre guns.", "A fearless person.", "A heavy overcoat for stormy weather." ], "parts-of-speech": "Noun"...
115
1,968
<reponame>agramonte/corona // Copyright (c) 2008 Groundspeak, Inc. // 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 the rights to use, ...
31,271
817
<gh_stars>100-1000 package com.hjq.http.callback; import com.hjq.http.EasyLog; import com.hjq.http.EasyUtils; import com.hjq.http.lifecycle.HttpLifecycleManager; import com.hjq.http.listener.OnHttpListener; import com.hjq.http.model.CacheMode; import com.hjq.http.request.BaseRequest; import java.io.IOException; impo...
3,068
1,350
<reponame>billwert/azure-sdk-for-java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.cosmos.generated; import com.azure.core.util.Context; import com.azure.resourcemanager.cos...
712
5,169
{ "name": "RoundCornerView", "version": "0.1.0", "summary": "Round the view that is being passed", "description": "\"TODO: Add long description of the pod here.\"", "homepage": "https://github.com/waqar1992/RoundedCornerView", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "wa...
253
7,482
/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-08-14 Jonas first version */ #include <hk32f0xx.h> #include <rtthread.h> #include "hk32_msp.h" #ifdef BSP_USING_UART void hk32_msp_usart_init(...
3,365
332
<gh_stars>100-1000 /* * Copyright 2002-2013 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
292
1,062
<gh_stars>1000+ /** * Copyright 2014 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
1,055
1,275
<gh_stars>1000+ package io.github.jhipster.sample.web.rest; import static io.github.jhipster.sample.web.rest.AccountResourceIT.TEST_USER_LOGIN; import static org.assertj.core.api.Assertions.assertThat; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*; import static org.springframewor...
13,094
421
import requests # Vuln Base Info def info(): return { "author": "cckuailong", "name": '''WordPress 'Drag & Drop Multiple File Upload - Contact Form 7' Plugin - Pre-auth RCE''', "description": '''The drag-and-drop-multiple-file-upload-contact-form-7 plugin before 1.3.3.3 for WordPress allow...
1,275
301
<reponame>jmilkiewicz/iot-starterkit<filename>neo/apps/python/consumption/pyhdb/iotpyhdb.py<gh_stars>100-1000 import pyhdb connection = pyhdb.connect( host="localhost", port=30015, user="<user>", password="<password>" ) cursor = connection.cursor() cursor.execute("SELECT * FROM NEO_<schema_id>.T_IOT_<message_typ...
158
713
package org.infinispan.xsite.statetransfer; import java.util.concurrent.CompletionStage; import io.reactivex.rxjava3.core.Flowable; /** * Sends local cluster state to remote site. * * @author <NAME> * @since 12.0 */ public interface XSiteStatePushTask { /** * Perform the state transfer with the state fr...
238
421
#include "daScript/daScript.h" #include "tutorial02aot.h" using namespace das; // making custom builtin module class Module_Tutorial02 : public Module { public: Module_Tutorial02() : Module("tutorial_02") { // module name, when used from das file ModuleLibrary lib; lib.addModule(this); ...
402
324
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
1,783
531
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. #include "ProfilingBlocks.h" #include "Modules/ModuleManager.h" IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, ProfilingBlocks, "ProfilingBlocks" );
70
994
class Solution(object): def isValid(self, s): """ :type s: str :rtype: bool """ t = [] for x in s: if x == '(' or x == '{' or x == '[': t.append(x) elif x == ')' and len(t) > 0 and t[-1] == '(': c = t.pop() ...
378
310
<reponame>dreeves/usesthis<filename>gear/software/k/kaleidoscope.json { "name": "Kaleidoscope", "description": "A file and image diff app for the Mac.", "url": "https://www.kaleidoscopeapp.com/" }
76
448
<reponame>sintaxi/phonegap<gh_stars>100-1000 /** * The MIT License * ------------------------------------------------------------- * Copyright (c) 2008, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, Nitobi * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated do...
1,218
3,200
/** * Copyright 2019 Huawei Technologies Co., Ltd * * 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...
2,465
2,293
from __future__ import print_function,absolute_import,division,unicode_literals _B=False _A=None from .anchor import Anchor if _B:from typing import Text,Any,Dict,List __all__=['ScalarBoolean'] class ScalarBoolean(int): def __new__(D,*E,**A): B=A.pop('anchor',_A);C=int.__new__(D,*E,**A) if B is not _A:C.yaml_set_a...
325
869
<filename>doc/source/cookbook/py2exe_howto/pytables_test.py import tables as tb class Particle(tb.IsDescription): name = tb.StringCol(16) # 16-character String idnumber = tb.Int64Col() # Signed 64-bit integer ADCcount = tb.UInt16Col() # Unsigned short integer TDCcount = tb.UInt8Col() # Unsigned by...
636
584
package com.mercury.platform.ui.adr.components.panel.tree.dialog; import com.mercury.platform.shared.config.descriptor.adr.AdrComponentDescriptor; import com.mercury.platform.shared.config.descriptor.adr.AdrProgressBarDescriptor; import com.mercury.platform.ui.adr.components.panel.tree.AdrNodePanel; import com.mercur...
508
1,473
/* * Autopsy Forensic Browser * * Copyright 2020 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 in compliance with the License. You may obtain a copy of * the License at * * http://www.ap...
14,255
311
/** * Copyright 2019 The JoyQueue Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
924
3,066
<reponame>skofra0/crate<gh_stars>1000+ /* * Licensed to Crate.io GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (th...
1,511
777
<gh_stars>100-1000 // Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef FontFallbackPriority_h #define FontFallbackPriority_h namespace blink { // http://unicode.org/reports/tr51/#Presentation_Styl...
261
648
<filename>spec/hl7.fhir.core/1.0.2/package/DataElement-Immunization.explanation.json<gh_stars>100-1000 {"resourceType":"DataElement","id":"Immunization.explanation","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/Immunization.explanation","status":"draft","experimental":tru...
191
543
<gh_stars>100-1000 /* * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * pub...
2,067
1,338
// Clipboard.h #ifndef CLIPBOARD_H #define CLIPBOARD_H #include <String.h> #include <Message.h> #include <Messenger.h> #include "WatchingService.h" class Clipboard { public: Clipboard(const char *name); ~Clipboard(); void SetData(const BMessage *data, BMessenger dataSource); const BMessage *Data() const; BMes...
240
733
import numpy as np try: import mc except Exception: pass import cv2 import os from PIL import Image import torch from torch.utils.data import Dataset import torchvision.transforms as transforms import utils from . import reader import inference as infer class SupCompDataset(Dataset): def __init__(self, ...
4,991
1,020
package org.robobinding.viewattribute.property; import org.robobinding.attribute.PropertyAttributeParser; import org.robobinding.attribute.ValueModelAttribute; /** * @since 1.0 * @author <NAME> * */ public class PropertyViewAttributeBinderFactory { private final Implementor implementor; private fina...
310
700
<gh_stars>100-1000 #include <loadcore.h> #include <bdm.h> #include <sifcmd.h> #include <irx.h> IRX_ID("bdmevent", 1, 1); static void bdm_callback(int cause) { static SifCmdHeader_t EventCmdData; EventCmdData.opt = cause; sceSifSendCmd(0, &EventCmdData, sizeof(EventCmdData), NULL, NULL, 0); } int _start(...
181
4,822
<gh_stars>1000+ /* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ /* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE...
1,883
759
/* * Copyright 2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
398
47,880
<filename>guava/src/com/google/common/collect/AllEqualOrdering.java /* * Copyright (C) 2012 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/...
612
435
<filename>writethedocs-na-2016/videos/oops-i-became-an-engineer.json { "description": "<NAME>\nhttp://lanyrd.com/2016/writethedocs/sfbzty/\nFrom English professor and assistant dean to software engineer. How the heck did that happen? How hard was the transition? That seems\u2026different. And what the heck are develo...
426
454
<reponame>zwkjhx/vertx-zero package io.vertx.up.annotations; import io.vertx.up.eon.em.IpcType; import java.lang.annotation.*; /** * Internal Rpc Channel */ @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @Documented @Inherited public @interface Ipc { /** * Communication type ( 4 categor...
458
328
package com.ctg.test.controller; import com.ctg.test.model.User; import com.ctg.test.service.UserService; import org.apache.commons.lang.exception.ExceptionUtils; import org.apache.shiro.SecurityUtils; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresRoles;...
1,570
856
// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include <backendsCommon/Workload.hpp> #include <arm_compute/runtime/IFunction.h> #include <arm_compute/core/Error.h> #include <arm_compute/runtime/CL/CLTensor.h> namespace armnn { arm_compute::Status ClDepthwiseCo...
779
325
<filename>cli/src/main/java/com/box/l10n/mojito/cli/command/checks/GlossaryCaseCheckerSearchResult.java package com.box.l10n.mojito.cli.command.checks; import java.util.List; class GlossaryCaseCheckerSearchResult { List<String> failures; boolean isSuccess; boolean isMajorFailure; final String source; ...
280
5,250
<gh_stars>1000+ /* 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, softwar...
368
2,542
<filename>src/prod/src/client/StartNodeResult.h // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // --------------------------------------------...
254
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-qx34-mm7f-757c", "modified": "2022-05-01T18:32:26Z", "published": "2022-05-01T18:32:26Z", "aliases": [ "CVE-2007-5358" ], "details": "Multiple buffer overflows in the voicemail functionality in Asterisk 1.4.x bef...
876
1,811
<reponame>fc1943s/Paket { "FSharp.excludeProjectDirectories": [ ".git", "paket-files", "integrationtests/scenarios", "packages" ] }
90
407
import sys si = sys.stdin.readline n, c = list(map(int, si().split())) a = [] for i in range(n): a.append(int(si())) def determination(D): cnt, last = 1, a[0] for i in range(1, n): if a[i] - last < D: continue last = a[i] cnt += 1 return cnt >= c a.sort() l, r, ans = 1, 1000000...
238
14,668
// Copyright 2021 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 <stddef.h> #include <stdint.h> #include <fuzzer/FuzzedDataProvider.h> #include "base/at_exit.h" #include "base/check.h" #include "base/i18n/icu...
416
3,200
<filename>mindspore/python/mindspore/ops/operations/_embedding_cache_ops.py # Copyright 2020 Huawei Technologies Co., Ltd # # 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...
5,243
319
<reponame>Hengle/face-nn<gh_stars>100-1000 #!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: penghuailiang # @Date : 2019-09-27 import cv2 import os import shutil import numpy as np import util.logit as log from util.exception import NeuralException def rm_dir(path): """ 清空文件夹 包含子文件夹 :param path:...
3,243
1,296
/** * (c) 2019 by Mega Limited, Wellsford, 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 forth in the Terms of Service. * * The MEGA SDK is distributed in the hope that it wil...
1,021
841
<reponame>omolinab/jbpm /* * Copyright 2018 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 * ...
5,825
672
<filename>velox/common/tests/AsyncSourceTest.cpp /* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lic...
1,409
2,989
package com.linkedin.databus.client.consumer; /* * * Copyright 2013 LinkedIn Corp. 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/lice...
10,841
441
package org.beetl.ext.fn; import org.beetl.core.Context; import org.beetl.core.Function; /** 动态引用全局变量,dynamic(a+"_index"); * @author xiandafu * */ public class DynamicGlobalValueFunction implements Function { @Override public Object call(Object[] paras, Context ctx) { String key = (String)paras[0]; return...
149
506
<reponame>kamal1316/competitive-programming // https://codeforces.com/contest/1536/problem/B #include <bits/stdc++.h> using namespace std; using ll = long long; string s; string ans; void search() { if (s.find(ans) == string::npos) return; int n = ans.size(); if (ans.back() == 'z') { int i = 0; while (...
418
417
/******************************************************************************* * Copyright 2019 Intel Corporation * * 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, ...
5,800
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,298
855
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_GAMMA_CORRECT_H_ #define PIK_GAMMA_CORRECT_H_ // Deprecated: sRGB transfer function. Use color_managem...
451
562
#include <librttopo.h> #include <stdio.h> int main(void) { printf("%s\n", rtgeom_version()); return 0; }
57
14,668
// 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 "sql/sql_memory_dump_provider.h" #include "base/trace_event/memory_dump_manager.h" #include "base/trace_event/process_memory_dump.h" #include "t...
910
1,026
<filename>Random_Password_Generator/PasswordGenerator.py import random chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()-=_+`~[]{]\|;:,<.>/?' welcomeMessage = "Welcome to the Password Generator!" detailsMessage = "This program will generate a secure password using a random arrange...
895
1,461
// Copyright (c) The HLSL2GLSLFork Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE.txt file. #pragma once #include <string> #include "hlsl2glsl.h" namespace hlslang { namespace MetalCodeGen { /// Generic opaque handle. This ty...
1,234
347
#pragma once #include <vector> #include <map> #include "srwlock.h" class CSmartRenameManager : public ISmartRenameManager, public ISmartRenameRegExEvents { public: // IUnknown IFACEMETHODIMP QueryInterface(_In_ REFIID iid, _Outptr_ void** resultInterface); IFACEMETHODIMP_(ULONG) AddRef(); IFAC...
1,637
634
<gh_stars>100-1000 /* * Copyright 2000-2015 JetBrains s.r.o. * * 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...
325
892
<filename>advisories/unreviewed/2022/05/GHSA-x5hg-q2vc-mxfh/GHSA-x5hg-q2vc-mxfh.json { "schema_version": "1.2.0", "id": "GHSA-x5hg-q2vc-mxfh", "modified": "2022-05-12T00:01:28Z", "published": "2022-05-12T00:01:28Z", "aliases": [ "CVE-2021-26372" ], "details": "Insufficient bound checks related to PCIE...
447
460
<gh_stars>100-1000 #include "../../tools/qmeegographicssystemhelper/qmeegoswitchevent.h"
37
645
// Copyright 2013-2015 Stanford University // // 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 ag...
4,756
14,668
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.history; import android.app.Activity; import android.content.Context; import android.content.Intent; import org.chro...
648
852
<reponame>ckamtsikis/cmssw<gh_stars>100-1000 // #ifndef METCorrectorParameters_h #define METCorrectorParameters_h #include "CondFormats/Serialization/interface/Serializable.h" #include <string> #include <vector> #include <algorithm> #include <iostream> #include "FWCore/Utilities/interface/Exception.h" #include "FWCor...
1,902
2,486
<filename>slack/__init__.py import logging from logging import NullHandler from slack import deprecation deprecation.show_message(__name__, "slack_sdk.web/webhook/rtm") from slack_sdk.rtm import RTMClient # noqa from slack_sdk.web.async_client import AsyncWebClient # noqa from slack_sdk.web.legacy_client import Leg...
198
735
<reponame>1443213244/small-package /* * Copyright (C) AlexWoo(<NAME>) <EMAIL> */ #ifndef _NGX_LIVE_RECORD_H_INCLUDED_ #define _NGX_LIVE_RECORD_H_INCLUDED_ #include <ngx_config.h> #include <ngx_core.h> #include "ngx_rtmp.h" #include "hls/ngx_rtmp_mpegts.h" typedef struct { unsigned open; /...
882
634
<gh_stars>100-1000 // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.codeInsight.intention.choice; import com.intellij.codeInsight.daemon.impl.HighlightInfoType; import com.intellij.codeInsight.intention.Cus...
615
303
<gh_stars>100-1000 package com.github.davidmoten.rx.testing; import java.util.concurrent.TimeUnit; import junit.framework.TestCase; import junit.framework.TestSuite; import rx.Observable; import rx.functions.Func1; import rx.schedulers.Schedulers; public class OperatorCacheHelperTest extends TestCase { private ...
591
984
/* * Copyright DataStax, 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 wri...
4,563
343
<reponame>nzeh/syzygy // Copyright 2014 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless ...
3,133