max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,293
<gh_stars>1000+ """macresource - Locate and open the resources needed for a script.""" from warnings import warnpy3k warnpy3k("In 3.x, the macresource module is removed.", stacklevel=2) from Carbon import Res import os import sys import MacOS import macostools class ArgumentError(TypeError): pass class ResourceFileN...
2,212
3,631
<gh_stars>1000+ /* * 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 * * Unless...
1,682
1,338
/* ** Copyright 2003, <NAME>, <EMAIL>. All rights reserved. ** Distributed under the terms of the MIT License. */ #ifndef FILE_H #define FILE_H #include <boot/vfs.h> #include "Volume.h" namespace FFS { class File : public Node { public: File(Volume &volume, int32 block); virtual ~File(); status_t InitChec...
306
789
package io.advantageous.qbit.util; import java.io.IOException; import java.net.ServerSocket; /** * created by rhightower on 3/4/15. */ public class PortUtils { public static int useOneOfThesePorts(int... ports) { for (int port : ports) { ServerSocket serverSocket = null; try { ...
1,155
325
<reponame>mewbak/wasmdec<gh_stars>100-1000 #include <stdio.h> int main() { int i = 1; ++i; printf("i is %d\n", i); return 0; }
68
14,668
<gh_stars>1000+ // 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_PUBLIC_DOWNLOAD_DELEGATE_H_ #define WEBLAYER_PUBLIC_DOWNLOAD_DELEGATE_H_ #include <string> #include "base/callback_forw...
911
716
// Copyright (c) 2022 The Orbit 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 ORBIT_API_UTILS_API_ENABLE_INFO_H_ #define ORBIT_API_UTILS_API_ENABLE_INFO_H_ #include <stdint.h> #include <type_traits> namespace orbit_api {...
313
13,885
<filename>third_party/benchmark/test/user_counters_thousands_test.cc #undef NDEBUG #include "benchmark/benchmark.h" #include "output_test.h" // ========================================================================= // // ------------------------ Thousands Customisation ------------------------ // // =============...
4,181
56,632
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Copyright (C) 2018, Intel Corporation, all rights reserved. // Third party copyrights are property of their respective o...
566
425
<reponame>yeze322/botbuilder-dotnet {"Sections":[{"Errors":[],"SectionType":"newEntitySection","Id":"newEntitySection_1","Body":"","Name":"1","Type":"ml","ListBody":[" - @ ml s1 usesFeature x1"],"Range":{"Start":{"Line":2,"Character":0},"End":{"Line":3,"Character":29}}},{"Errors":[],"SectionType":"newEntitySection",...
192
678
<reponame>bzxy/cydia /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI */ @class SUTableDataSource, NSArray; @protocol SUDownloadsChildViewController <NSObject> @property(retain, nonatomic) NSArray *scriptButtons; @property(r...
238
348
<gh_stars>100-1000 {"nom":"Butot-Vénesville","circ":"10ème circonscription","dpt":"Seine-Maritime","inscrits":212,"abs":127,"votants":85,"blancs":7,"nuls":0,"exp":78,"res":[{"nuance":"REM","nom":"<NAME>","voix":40},{"nuance":"FN","nom":"Mme <NAME>","voix":38}]}
106
353
<gh_stars>100-1000 #ifndef THP_AUTOGRAD_H #define THP_AUTOGRAD_H PyObject * THPAutograd_initExtension(PyObject *_unused, PyObject *unused); void THPAutograd_initFunctions(); namespace torch { namespace autograd { PyMethodDef* python_functions(); }} #include <torch/csrc/autograd/python_function.h> #inc...
180
2,151
<reponame>zipated/src<filename>third_party/blink/renderer/core/animation/svg_transform_list_interpolation_type.cc // 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 "third_party/blink/renderer/cor...
4,100
18,396
/* * SRT - Secure, Reliable, Transport * Copyright (c) 2018 Haivision Systems Inc. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ /*******************...
4,596
312
package org.reveno.atp.utils; import com.google.common.io.Files; import org.junit.Assert; import org.junit.Test; import java.io.File; import java.io.IOException; import java.util.Date; public class VersionedFileUtilsTest { @Test public void test() throws IOException { File temp = Files.createTempDir(); Str...
276
512
{ "name": "etcd", "description": "Distributed reliable key-value store for the most critical data of a distributed system", "version": "3.5.0", "pre-version": "3.5.0", "homepage": "https://etcd.io/", "bug": "https://github.com/etcd-io/etcd/issues", "github": "etcd-io/etcd", "releases": "https://github.c...
652
21,382
from abc import ABCMeta, abstractmethod from gym.spaces import Discrete import numpy as np from pathlib import Path import unittest from ray.rllib.utils.exploration.exploration import Exploration from ray.rllib.utils.framework import try_import_tf, try_import_torch from ray.rllib.utils.from_config import from_config f...
3,164
739
#!/usr/bin/env python # -*- coding: iso-8859-1 -*- import pygtk pygtk.require('2.0') import sys, os, errno import gtk import pango RESPONSE_FORWARD = 0 RESPONSE_BACKWARD = 1 book_closed_xpm = [ "16 16 6 1", " c None s None", ". c black", "X c red", "o c yellow", "O c #808080", "# c wh...
22,379
2,151
// 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 "chrome/renderer/extensions/platform_keys_natives.h" #include <memory> #include <string> #include <utility> #include "base/values.h" #include "...
1,651
2,338
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -fsyntax-only \ // RUN: -fcxx-exceptions -target-cpu pwr10 %s -verify // RUN: %clang_cc1 -triple powerpc64-unknown-unknown -fsyntax-only \ // RUN: -fcxx-exceptions -target-cpu pwr10 %s -verify // vector quad // alias using vq_t = __vector_quad; void testVQAli...
4,905
6,557
<gh_stars>1000+ { "dragDescriptionKeyboard": "Paspauskite „Enter“, kad pradėtumėte vilkti.", "dragDescriptionTouch": "Palieskite dukart, kad pradėtumėte vilkti.", "dragDescriptionVirtual": "Spustelėkite, kad pradėtumėte vilkti.", "dragItem": "Vilkti {itemText}", "dragSelectedItems": "Vilkti {count, plural, on...
756
529
/* Copyright 2019 Stanford * * 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...
1,509
450
<gh_stars>100-1000 package com.dlazaro66.sampleapp; import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import com.dlazaro66.wheelindicatorview.WheelIndicatorItem; import com.dlazaro66.wheelindicatorview.WheelIndicatorView; public class MainActivity extends Activity { @Overrid...
639
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Congratulation", "definitions": [ "Words expressing one's praise for an achievement or good wishes on a special occasion.", "The action of expressing congratulations." ], "parts-of-speech": "Noun" }
101
1,738
/* * 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, * or, if provided, by the license below or t...
1,644
3,857
package dev.skidfuscator.obf.number.encrypt.impl; import dev.skidfuscator.obf.maple.FakeArithmeticExpr; import dev.skidfuscator.obf.number.encrypt.NumberTransformer; import org.mapleir.ir.code.Expr; import org.mapleir.ir.code.expr.ArithmeticExpr; import org.mapleir.ir.code.expr.ConstantExpr; import org.mapleir.ir.code...
257
17,318
<reponame>woozhijun/cat /* * Copyright (c) 2011-2018, <NAME>. All Rights Reserved. * * 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 ...
977
4,186
#define CONFIG_PAGE "HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n\ <html>\ <head></head>\ <meta name='viewport' content='width=device-width, initial-scale=1'>\ <body>\ <h1>ESP WiFi NAT Router Config</h1>\ <div id='config'>\ <script>\ if (window.location.search.substr(1) != '')\ {\ document.getElementById('config'...
1,304
2,338
<filename>clang/test/SemaCXX/attr-section.cpp // RUN: %clang_cc1 -verify -fsyntax-only -triple x86_64-linux-gnu %s int x __attribute__((section( 42))); // expected-error {{'section' attribute requires a string}} // PR6007 void test() { __attribute__((section("NEAR,x"))) int n1; // expected-error {{'section' at...
714
4,822
/* * 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 file distribute...
5,864
892
<reponame>westonsteimel/advisory-database-github<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-6w2f-q3rq-jh8v", "modified": "2022-01-08T00:00:35Z", "published": "2021-12-31T00:00:33Z", "aliases": [ "CVE-2021-20156" ], "details": "Trendnet AC2600 TEW-827DRU version 2.08B01 contains an impr...
454
2,112
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
1,216
474
<reponame>HeraShowFeng/PLShortVideoKit // // TuSDKMediaAssetExtractorPitch.h // TuSDKVideo // // Created by sprint on 2019/8/7. // Copyright © 2019 TuSDK. All rights reserved. // #import <AVFoundation/AVFoundation.h> NS_ASSUME_NONNULL_BEGIN /** 低帧率视频补帧补丁 @since v3.4.2 */ @interface TuSDKMediaAssetExtractorPit...
536
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 ...
3,662
325
<filename>webapp/src/main/java/com/box/l10n/mojito/service/branch/notification/job/BranchNotificationJobInput.java<gh_stars>100-1000 package com.box.l10n.mojito.service.branch.notification.job; public class BranchNotificationJobInput { Long branchId; public Long getBranchId() { return branchId; } ...
162
867
<gh_stars>100-1000 /* * $Id: LuaException.java,v 1.6 2006/12/22 14:06:40 thiago Exp $ * Copyright (C) 2003-2007 Kepler Project. * * 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 w...
565
30,023
<reponame>domwillcode/home-assistant """Tests for the Nest component."""
24
1,627
<reponame>Floboy/PyWebIO<gh_stars>1000+ import subprocess import time from selenium.webdriver import Chrome import pywebio import template import util from pywebio.input import * from pywebio.utils import to_coroutine, run_as_function def target(): template.basic_output() template.background_output() r...
593
1,091
/* * Copyright 2016-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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
542
380
<reponame>geralltf/mini-tor #pragma once #include <mini/string.h> #include <mini/ctl.h> #include <winsock2.h> namespace mini::net { class ip_address { public: constexpr ip_address( void ) = default; constexpr ip_address( const ip_address& other ) = default; constexpr ip_addres...
977
324
/** * Copyright (C) 2008 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * ...
1,685
1,053
<filename>tos/lib/tosthreads/chips/m16c60/chip_thread.h /* * Copyright (c) 2009 Communication Group and Eislab at * Lulea University of Technology * * Contact: <NAME>, LTU * Mail: <EMAIL> * All rights reserved. * * * Redistribution and use in source and binary forms, with or without * modification, are permit...
3,053
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 ...
761
2,360
<reponame>kkauder/spack # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import llnl.util.tty as tty from llnl.util.filesystem import mkdirp, working_dir impor...
1,255
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,706
597
"""Validate services schema.""" import voluptuous as vol from .const import ATTR_IGNORE_CONDITIONS, JobCondition SCHEMA_JOBS_CONFIG = vol.Schema( { vol.Optional(ATTR_IGNORE_CONDITIONS, default=list): [vol.Coerce(JobCondition)], }, extra=vol.REMOVE_EXTRA, )
115
479
# Copyright 2018 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 in writing, s...
2,776
14,668
<filename>ios/chrome/browser/ui/omnibox/popup/omnibox_popup_row_cell.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 IOS_CHROME_BROWSER_UI_OMNIBOX_POPUP_OMNIBOX_POPUP_ROW_CELL_H_ #define IOS_C...
798
2,757
<reponame>CEOALT1/RefindPlusUDK<filename>EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGluePeimEntryPoint.c /*++ Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under ...
6,105
892
<filename>advisories/unreviewed/2022/05/GHSA-rrfm-4fhv-2623/GHSA-rrfm-4fhv-2623.json { "schema_version": "1.2.0", "id": "GHSA-rrfm-4fhv-2623", "modified": "2022-05-02T06:13:56Z", "published": "2022-05-02T06:13:56Z", "aliases": [ "CVE-2010-0589" ], "details": "The Web Install ActiveX control (CSDWebIns...
637
507
<reponame>mjuenema/python-terrascript<filename>terrascript/data/vultr/vultr.py # terrascript/data/vultr/vultr.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:31:06 UTC) import terrascript class vultr_account(terrascript.Data): pass class vultr_application(terrascript.Data): pass class vu...
962
3,034
<reponame>NgSekLong/logging-log4j2<filename>log4j-api/src/main/java/org/apache/logging/log4j/message/Message.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 o...
1,307
8,054
#include "labelwithbuttonswidget.h" #include <QLabel> #include <QHBoxLayout> #include <QStyleOption> #include <QPainter> #include <QDebug> #include <QStyle> #include <QToolButton> #include <QAction> #include <core/vnotex.h> #include <utils/iconutils.h> using namespace vnotex; LabelWithButtonsWidget::LabelWithButton...
844
4,829
// // Copyright <NAME> (<EMAIL>), <NAME> (<EMAIL>) 2014-2021 // // 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) // #pragma once #include "td/telegram/td_api.h" #include "td/telegram/telegram_api.h" #include "td/ut...
356
14,668
// Copyright (c) 2010 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 "net/http/http_auth_handler_factory.h" #include <set> #include "base/containers/contains.h" #include "base/memory/ptr_util.h" #include "bas...
3,744
30,023
"""Shared constants.""" from homeassistant.components import vacuum MQTT_VACUUM_ATTRIBUTES_BLOCKED = frozenset( { vacuum.ATTR_BATTERY_ICON, vacuum.ATTR_BATTERY_LEVEL, vacuum.ATTR_FAN_SPEED, } )
112
922
<gh_stars>100-1000 // // SynchroScrollView.h // edenx // // Created by <NAME> on 2/21/09. // Copied from http://developer.apple.com/documentation/Cocoa/Conceptual/NSScrollViewGuide/Articles/SynchroScroll.html // #import <Cocoa/Cocoa.h> @interface SynchroScrollView : NSScrollView { NSScrollView* synchronizedS...
200
786
<reponame>edustaff/spyne # coding: utf-8 # # spyne - Copyright (C) Spyne contributors. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your o...
2,604
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 ...
6,119
12,252
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apach...
1,649
571
/*************************************************************************** Copyright 2015 Ufora 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/licen...
839
364
// AUTOGENERATED CODE. DO NOT MODIFY DIRECTLY! Instead, please modify the tuple/TupleGenerators.ftl file. // See the README in the module's src/template directory for details. package com.linkedin.dagli.tuple; import java.util.Iterator; /** * Tuple generators create tuples of a fixed dimension from a variety of i...
4,383
1,391
<reponame>newluhux/plan9port /*% cc -gpc % * These transformation routines maintain stacks of transformations * and their inverses. * t=pushmat(t) push matrix stack * t=popmat(t) pop matrix stack * rot(t, a, axis) multiply stack top by rotation * qrot(t, q) multiply stack top by rotation, q is unit quaternion ...
2,211
575
<filename>ash/display/display_util.h // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_DISPLAY_DISPLAY_UTIL_H_ #define ASH_DISPLAY_DISPLAY_UTIL_H_ #include <memory> #include <string> #includ...
749
491
// 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 obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless ...
1,178
772
package com.sksamuel.scrimage.filter; import thirdparty.marvin.image.MarvinAbstractImagePlugin; import thirdparty.marvin.image.edge.Sobel; public class SobelsFilter extends MarvinFilter { @Override public MarvinAbstractImagePlugin plugin() { return new Sobel(); } }
97
1,717
/** * Package that contains abstractions needed to support optional * non-blocking decoding (parsing) functionality. * Although parsers are constructed normally via * {@link com.fasterxml.jackson.core.JsonFactory} * (and are, in fact, sub-types of {@link com.fasterxml.jackson.core.JsonParser}), * the way input is...
124
1,894
<gh_stars>1000+ # 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. from __future__ import print_function from __future__ import division from __future__ import absolute_import import functools import mock f...
13,674
1,127
<reponame>ryanloney/openvino-1 // Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <tuple> #include <vector> #include <string> #include <memory> #include "shared_test_classes/base/layer_test_utils.hpp" #include "ngraph_functions/utils/ngraph_helpers.hpp" #incl...
617
3,539
/* * libwebsockets - small server side websockets and web server implementation * * Copyright (C) 2010 - 2021 <NAME> <<EMAIL>> * * 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...
640
3,483
<reponame>extremenelson/sirius package info.ephyra.trec; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; /** * A parser for the TREC 8-12 QA tracks. * * @author <NAME> * @version 2007-05-25 */ public class TREC8...
2,101
310
//============================================================== // Copyright © 2020 Intel Corporation // // SPDX-License-Identifier: MIT // ============================================================= #include <oneapi/dpl/algorithm> #include <oneapi/dpl/execution> #include <oneapi/dpl/iterator> #include <iostream> #...
929
340
<reponame>georgio/kremlin<filename>kremlib/c/fstar_int16.c /* Copyright (c) INRIA and Microsoft Corporation. All rights reserved. Licensed under the Apache 2.0 License. */ #include "FStar_Int16.h" Prims_string FStar_Int16_to_string(int16_t i) { char *buf = KRML_HOST_MALLOC(24); KRML_HOST_SNPRINTF(buf, 24, "%"P...
144
1,159
<filename>src/base/gui/shadow.h #ifndef GUI_SHADOW #define GUI_SHADOW #include "widget.h" namespace GUI { class Shadow { public: enum class Side : uint32_t { Left, Right }; Shadow(Widget *parent, Side side); void draw(Gfx::ICanvas &canvas); private: Widget *parent; Side side; }; } #endif
121
4,241
#include "test.h" #include <float.h> #include <stdalign.h> #include <stdarg.h> #include <stdbool.h> #include <stddef.h> #include <stdnoreturn.h> int main() { printf("OK\n"); return 0; }
86
496
''' Import the necessary libraries ''' # !pip install selenium from selenium import webdriver import time import pandas as pd from bs4 import BeautifulSoup as soup ''' Define the browser/driver and open the desired webpage ''' driver = webdriver.Chrome( 'D:\\Softwares\\chromedriver_win32\\chromedriver.exe' ) drive...
745
3,083
// Copyright 2011-2016 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 in ...
801
359
/** * Touhou Community Reliant Automatic Patcher * BGM modding library for games using uncompressed PCM music * * ---- * * Header file, covering all source files. */ #pragma once #include <memory> /// String constants /// ---------------- extern const stringref_t LOOP_INFIX; /// ---------------- /// S...
1,895
5,133
<gh_stars>1000+ /* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.test.nullcheck.strategy; public class HouseDto { private String owner; private Integer number; public String getOwne...
212
488
class Foo { Class bar() { return gnu.classpath.VMStackWalker.getCallingClass(); } } public class WalkerTest { public static void main(String[] argv) { System.out.println(new Foo().bar()); } }
80
4,071
/* Copyright (C) 2016-2018 Alibaba Group Holding Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed ...
1,094
335
<reponame>Safal08/Hacktoberfest-1<filename>L/Larynx_noun.json { "word": "Larynx", "definitions": [ "The hollow muscular organ forming an air passage to the lungs and holding the vocal cords in humans and other mammals; the voice box." ], "parts-of-speech": "Noun" }
109
828
/* * Copyright 2008-2009 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 required by ap...
514
387
/** * Copyright 2017-2021 LinkedIn Corporation. All rights reserved. * Licensed under the BSD-2 Clause license. * See LICENSE in the project root for license information. */ package com.linkedin.coral.common.functions; /** * Exception indicating failure to resolve user-defined or builtin * function name in SQL ...
207
662
"""Writer utils.""" import io import struct import typing import numpy as np try: import crc32c except ImportError: crc32c = None from tfrecord import example_pb2 class TFRecordWriter: """Opens a TFRecord file for writing. Params: ------- data_path: str Path to the tfrecord file. ...
2,514
2,094
//////////////////////////////////////////////////////////////////////////////////////////////////// // // Project: Embedded Learning Library (ELL) // File: Dataset.h (data) // Authors: <NAME> // //////////////////////////////////////////////////////////////////////////////////////////////////// #pragma once ...
8,115
2,085
<reponame>Jette16/spacy-course from spacy.lang.de import German from spacy.tokens import Doc nlp = German() # Definiere die Getter-Funktion def get_has_number(doc): # Gebe zurück, ob einer der Tokens im Doc True für token.like_num zurückgibt return any(token.like_num for token in doc) # Registriere die Doc-...
228
1,140
# -*- coding: utf-8 -*- """ flaskbb.utils.views ~~~~~~~~~~~~~~~~~~~ This module contains some helpers for creating views. :copyright: (c) 2016 by the FlaskBB Team. :license: BSD, see LICENSE for more details. """ from flaskbb.utils.helpers import render_template from flask.views import View clas...
216
1,144
/* * Copyright (C) 2007 Freescale Semiconductor, Inc. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; */ extern int pib_init(void);
75
1,178
/* * Copyright 2020 Makani Technologies 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 ...
2,631
372
/* * * (c) Copyright 1993 OPEN SOFTWARE FOUNDATION, INC. * (c) Copyright 1993 HEWLETT-PACKARD COMPANY * (c) Copyright 1993 DIGITAL EQUIPMENT CORPORATION * To anyone who acknowledges that this file is provided "AS IS" * without any express or implied warranty: * permission to use, copy, modify, a...
5,923
4,081
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
328
778
// // Project Name: KratosContactMechanicsApplication $ // Created by: $Author: JMCarbonell $ // Last modified by: $Co-Author: $ // Date: $Date: July 2016 $ // Revision: $Revision: 0.0 $ // // ...
3,960
4,329
<filename>packages/flab/package.json { "name": "flab", "version": "1.0.0-alpha.2", "description": "Future Loading and Blocking JS", "main": "index.js", "files": [ "index.js", "string" ], "scripts": { "prepublish": "npm run build", "build": "mkdir -p string && npm run build-src && npm run b...
409
32,544
package com.baeldung.conditionalonproperty; import static org.assertj.core.api.Assertions.assertThat; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.runner.ApplicationContextRunner; import com.baeldung.conditionalonproperty.config.NotificationConfig; import com.baeldung.condi...
440
1,091
/* * Copyright 2014-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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
977
716
<reponame>thanhndv212/pinocchio // // Copyright (c) 2019-2020 INRIA // #ifndef __pinocchio_autodiff_casadi_math_matrix_hpp__ #define __pinocchio_autodiff_casadi_math_matrix_hpp__ #include "pinocchio/math/matrix.hpp" namespace pinocchio { namespace internal { template<typename Scalar> struct CallCorrectMa...
450
892
{ "schema_version": "1.2.0", "id": "GHSA-54vf-jrm9-p98w", "modified": "2021-12-02T00:01:08Z", "published": "2021-12-01T00:00:39Z", "aliases": [ "CVE-2020-7879" ], "details": "This issue was discovered when the ipTIME C200 IP Camera was synchronized with the ipTIME NAS. It is necessary to extract value...
400
1,511
/* * Copyright (C) 2010 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program is distributed ...
754