max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
32,544
<reponame>DBatOWL/tutorials<filename>spring-boot-modules/spring-boot-config-jpa-error/data-jpa-application/src/main/java/com/baeldung/data/jpa/ApplicationFound.java package com.baeldung.data.jpa; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class ApplicationFound ...
109
2,706
import pytest def test_core_import(): try: import mgba.core except: raise AssertionError
51
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Quisquilious", "definitions": [ "= quisquilian." ], "parts-of-speech": "Adjective" }
79
7,158
<reponame>ptelang/opencv_contrib package org.opencv.test.barcode; import java.util.List; import org.opencv.core.Mat; import org.opencv.barcode.BarcodeDetector; import org.opencv.imgcodecs.Imgcodecs; import org.opencv.test.OpenCVTestCase; import java.util.ArrayList; import static org.opencv.barcode.Barcode.EAN_13; pub...
811
2,206
/* * * Copyright (c) 2006-2020, Speedment, 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 requi...
2,848
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 ...
368
13,937
<reponame>ChiQuang98/NodeRedTest { "info": { "tip0": "Sie können die ausgewählten Nodes oder Verbindungen mit {{ core:delete-selection }} entfernen", "tip1": "Sie können nach Nodes mit {{ core:search }} suchen", "tip2": "{{ core:toggle-sidebar }} blendet die Seitenleiste ein/aus", "...
1,075
301
//****************************************************************** // // Copyright 2017 Samsung Mobile Communications GmbH All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file excep...
2,809
1,240
package com.eventyay.organizer.data.repository; import com.eventyay.organizer.common.Constants; import com.eventyay.organizer.data.AbstractObservable; import com.eventyay.organizer.data.Repository; import com.eventyay.organizer.data.session.Session; import com.eventyay.organizer.data.session.SessionApi; import com.eve...
2,074
937
{ "mpConfigIssuer": "farmshop", "mpConfigurationFolder": ".", "privateKey": "<KEY>", "publicKey": "<KEY>" }
53
1,825
<filename>unidbg-android/src/main/java/com/github/unidbg/linux/file/NetworkIF.java package com.github.unidbg.linux.file; import java.net.Inet4Address; public class NetworkIF { public final int index; public final String ifName; public final Inet4Address ipv4; public final Inet4Address broadcast; ...
455
12,940
<reponame>dciborow/azure-quickstart-templates { "$schema": "https://aka.ms/azure-quickstart-templates-metadata-schema#", "type": "QuickStart", "itemDisplayName": "JBoss EAP on RHEL (clustered, multi-VM)", "description": "This template allows you to create multiple RHEL 8.4 VM running JBoss EAP 7.3/ EAP 7.4 clus...
242
638
// Copyright 2017, Additive Regularization of Topic Models. #include <memory> #include <vector> #include "gtest/gtest.h" #include "artm/cpp_interface.h" #include "artm/core/common.h" #include "artm/core/instance.h" #include "artm_tests/test_mother.h" #include "artm_tests/api.h" // artm_tests.exe --gtest_filter=Reg...
5,038
347
package org.ovirt.engine.ui.webadmin.section.main.presenter.popup; import org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget; import org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel; import com.google.gwt.event.shared.EventBus; import com.google.inject.Inject; /** * The Presenter Wi...
333
2,219
<reponame>lazymartin/naiveproxy // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/cert/internal/trust_store_in_memory.h" namespace net { TrustStoreInMemory::TrustStoreInMemory() = default;...
1,083
776
<reponame>Diffblue-benchmarks/actframework package testapp.endpoint; import act.controller.Controller; import act.controller.annotation.UrlContext; import org.osgl.mvc.annotation.GetAction; import testapp.model.VersionedModel; @UrlContext("/etag") public class ETagTestBed extends Controller.Util { @GetAction("{i...
145
2,603
<filename>FreeRTOS/Demo/ColdFire_MCF52259_CodeWarrior/Freescale_Headers/MCF52259_PMM.h /* Coldfire C Header File * Copyright Freescale Semiconductor Inc * All rights reserved. * * 2008/04/17 Revision: 0.2 * * (c) Copyright UNIS, spol. s r.o. 1997-2008 * UNIS, spol. s r.o. * Jundrovska 33 * 624 00 Brno...
925
575
// 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 FUCHSIA_ENGINE_FAKE_CONTEXT_H_ #define FUCHSIA_ENGINE_FAKE_CONTEXT_H_ #include <fuchsia/web/cpp/fidl.h> #include <fuchsia/web/cpp/fidl_test_base....
910
454
package io.vertx.up.util; import org.junit.Test; import java.time.Instant; public class PeriodT { @Test public void testD() { final Instant instant = Period.parseAt("W,17:00,2"); System.out.println(Ut.toDateTime(instant)); } }
108
1,545
/** * 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...
524
677
<reponame>hugmyndakassi/hvmi<gh_stars>100-1000 /* * Copyright (c) 2020 Bitdefender * SPDX-License-Identifier: Apache-2.0 */ #include "hnd_loggather.h" #include "alerts.h" #include "guests.h" INTSTATUS IntAgentHandleLogGatherVmcall( _In_opt_ void *Reserved, _In_ PIG_ARCH_REGS Registers ) /// /// @brief ...
1,784
5,355
/** * WARNING: All code in this package is a work in progress for a new execution engine. * It is not really "wired up" and can't be really used and should not be used yet! */ package graphql.execution.nextgen;
57
12,252
<reponame>rmartinc/keycloak /* * Copyright 2019 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 Licen...
603
642
<reponame>YugN17/People-MVVM package io.github.erikjhordanrey.people_mvvm.viewmodel; import android.widget.ImageView; import androidx.databinding.BindingAdapter; import com.bumptech.glide.Glide; public class Binders { @BindingAdapter("imageUrl") public static void setImageUrl(ImageView imageView, String url)...
150
310
<filename>gear/software/p/psychonauts.json { "name": "Psychonauts", "description": "A psychic platformer game.", "url": "https://en.wikipedia.org/wiki/Psychonauts" }
60
1,552
# -*- coding: utf-8 -* """ ERNIE 使用的学习率设置 """ import logging from paddle.optimizer.lr import LRScheduler import numpy as np class LinearWarmupDecay(LRScheduler): """LinearWarmupDecay """ def __init__(self, base_lr, end_lr, warmup_steps, decay_steps, num_train_steps, power=1.0, verbose=False, ...
2,412
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 "modules/serviceworkers/WaitUntilObserver.h" #include "bindings/core/v8/ScriptFunction.h" #include "bindings/core/v8/ScriptPromise.h" #include "...
2,829
22,688
<filename>modules/canbus/vehicle/ge3/protocol/pc_epb_203.cc /****************************************************************************** * Copyright 2019 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 w...
1,175
1,078
/** * OpenAL cross platform audio library * Copyright (C) 2013 by <NAME> * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) a...
6,281
372
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
728
2,610
from __future__ import print_function, unicode_literals import csv import os import shutil import sys import time import boto3 import pyspark from awsglue.utils import getResolvedOptions from mleap.pyspark.spark_support import SimpleSparkSerializer from pyspark.ml import Pipeline from pyspark.ml.feature import OneHot...
2,050
12,278
<reponame>rajeev02101987/arangodb<filename>3rdParty/boost/1.71.0/libs/geometry/test/algorithms/overlay/get_turns_linear_linear_geo.cpp // Boost.Geometry // Unit Test // Copyright (c) 2017, Oracle and/or its affiliates. // Contributed and/or modified by <NAME>, on behalf of Oracle // Use, modification and distribution...
1,085
1,102
<filename>src/lib/boost/process/terminate.hpp // Copyright (c) 2006, 2007 <NAME> // Copyright (c) 2008 <NAME>, <NAME> // Copyright (c) 2009 <NAME> // Copyright (c) 2010 <NAME>, <NAME> // Copyright (c) 2011, 2012 <NAME>, <NAME> // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LI...
495
51,887
{"name":"node-html-parser","main":"index.js","author":"<NAME> <<EMAIL>>","license":"MIT"}
30
544
from pprint import pprint from office365.sharepoint.client_context import ClientContext from office365.sharepoint.listitems.listitem import ListItem from tests import test_team_site_url, test_client_credentials ctx = ClientContext(test_team_site_url).with_credentials(test_client_credentials) file_url = '/sites/team/S...
188
652
"""Tests for distutils.command.bdist_dumb.""" import os import imp import sys import zipfile import unittest from test.support import run_unittest from distutils.core import Distribution from distutils.command.bdist_dumb import bdist_dumb from distutils.tests import support SETUP_PY = """\ from distutils.core import...
1,425
548
<reponame>timgates42/kivy-ios """ Icon and LaunchImage generator for iOS ====================================== .. author:: <NAME> <<EMAIL>> """ # flake8: noqa (E121 mainly) __all__ = ["launchimage"] import sh import json from PIL import Image from os.path import join, exists from os import makedirs appicon_json = ...
8,461
6,181
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2019-2021 <NAME> * * 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 Soft...
2,879
5,821
from metaflow_test import MetaflowTest, ExpectationFailed, steps, tag class BasicUnboundedForeachTest(MetaflowTest): PRIORITY = 1 @steps(0, ['foreach-split-small'], required=True) def split(self): self.my_index = None from metaflow.plugins import InternalTestUnboundedForeachInput s...
657
468
<filename>ssd/demo_tensorflow.py<gh_stars>100-1000 import tensorflow as tf import cv2 import numpy as np def graph_create(graphpath): with tf.gfile.FastGFile(graphpath, 'r') as graphfile: graphdef = tf.GraphDef() graphdef.ParseFromString(graphfile.read()) return tf.import_graph_def(graphde...
669
17,703
namespace Envoy { void use_serialize_as_string() { google::protobuf::FieldMask mask; const std::string key = mask.SerializeAsString(); } } // namespace Envoy
55
5,169
<filename>Specs/1/9/b/JPButtonCategory/1.0.1/JPButtonCategory.podspec.json<gh_stars>1000+ { "name": "JPButtonCategory", "version": "1.0.1", "summary": "button category.", "homepage": "https://github.com/baiyidjp/JPButtonCategory", "license": "MIT", "authors": "baiyi", "platforms": { "ios": "8.0" }, ...
212
1,299
/* * 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,787
376
#pragma once #include <Chip/CM4/Freescale/MK70F15/FTFE_FlashConfig.hpp> #include <Chip/CM4/Freescale/MK70F15/AIPS0.hpp> #include <Chip/CM4/Freescale/MK70F15/AIPS1.hpp> #include <Chip/CM4/Freescale/MK70F15/AXBS.hpp> #include <Chip/CM4/Freescale/MK70F15/DMA.hpp> #include <Chip/CM4/Freescale/MK70F15/FB.hpp> #include <Chi...
2,144
476
void *best_selling_book; int64_t book_list; int initialize(int64_t a1) { setvbuf(stdout, 0LL, 2, 0LL); setvbuf(stderr, 0LL, 2, 0LL); alarm(0x1F4u); printf("%s", a1); return puts("Designed by <NAME>(quangnh89), a member of PiggyBird.\nMy blog: https://develbranch.com"); } int64_t get_number(int64_t...
5,049
679
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
44,443
311
package datadog.trace.bootstrap.instrumentation.ci.git; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Represents a .git/config file. It uses a simple algorithm...
1,090
465
# -*- coding: utf8 -*- # Copyright (c) 2017-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...
646
16,110
#!/usr/bin/env python3.7 def f(): return (i * 2 async for i in arange(42)) def g(): return ( something_long * something_long async for something_long in async_generator(with_an_argument) ) async def func(): if test: out_batched = [ i async for i in a...
557
575
<reponame>iridium-browser/iridium-browser<gh_stars>100-1000 // 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. #ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_SAVE_ADDRESS_PROFILE_PROMPT_VIEW_ANDROID_H_ #define...
517
4,339
<reponame>geertjanw/ignite /* * 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 ...
1,545
513
<gh_stars>100-1000 /* * The MIT License * * Copyright (C) 2015-2016 <NAME> <<EMAIL>> * Illustrations have been taken from the Linux kernel rbtree.c * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * 'Software'), to deal i...
5,705
371
/* * Copyright (c) 2013-2021 Cinchapi 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 agr...
628
2,189
#pragma once #include <steem/chain/steem_fwd.hpp> #include <steem/chain/util/manabar.hpp> #include <steem/plugins/rc/rc_config.hpp> #include <steem/plugins/rc/rc_utility.hpp> #include <steem/plugins/rc/resource_count.hpp> #include <steem/chain/steem_object_types.hpp> #include <steem/protocol/asset.hpp> #include <fc...
5,981
1,441
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> ii; typedef vector<int> vi; class SuffixArray { private: vi RA; // rank array void countingSort(int k) { // O(n) int maxi = max(300, n); // up to 255 ASCII cha...
4,069
12,278
/*! @file Defines `boost::hana::Functor`. @copyright <NAME> 2013-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_CONCEPT_FUNCTOR_HPP #define BOOST_HANA_CONCEPT_FUNCTOR_HPP #include <boost/hana/fwd/co...
412
607
#include "config/stm32plus.h" #include "config/display/font.h" #if defined STM32PLUS_F0 #define FONTCONST const #else #define FONTCONST #endif namespace stm32plus { namespace display { // byte definitions for FDEF_PROGGYCLEAN FONTCONST uint8_t FDEF_PROGGYCLEAN32_BYTES[]={ 0,0,0,0,0,0,0,0,0,0,0,0,0,}; FONTCONS...
7,434
421
// FormatOverload1.cpp : Defines the entry point for the console application. // //#include "stdafx.h" // <Snippet8> using namespace System; void main() { DateTime^ dat = gcnew DateTime(2012, 1, 17, 9, 30, 0); String^ city = "Chicago"; int temp = -16; String^ output = String::Format("At {0}...
248
696
<reponame>hwang-pku/Strata /* * Copyright (C) 2017 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.product.etd; import org.joda.convert.FromString; import com.opengamma.strata.collect.TypedString; /** * The contract code f...
394
2,633
import os from pathlib import Path import pytest from unit.applications.proto import TestApplicationProto class TestStaticShare(TestApplicationProto): prerequisites = {} @pytest.fixture(autouse=True) def setup_method_fixture(self, temp_dir): os.makedirs(temp_dir + '/assets/dir') os.maked...
1,095
8,027
<filename>src/com/facebook/buck/rules/keys/SingleBuildActionRuleKeyCache.java /* * 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 * * ...
711
303
/* Copyright (C) 2005-2011 <NAME> */ package com.lightcrafts.ui.templates; import com.lightcrafts.templates.TemplateKey; import com.lightcrafts.templates.TemplateDatabase; import com.lightcrafts.utils.xml.XmlNode; import com.lightcrafts.utils.xml.XMLException; import com.lightcrafts.utils.xml.XmlDocument; import com....
824
441
// // Copyright (c) 2008-2020 the Urho3D 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 without restriction, including without limitation the rights // to use, copy, modify, m...
2,337
441
package org.basex.api.dom; import org.basex.query.value.node.*; import org.basex.util.*; import org.w3c.dom.*; /** * DOM - Element implementation. * * @author BaseX Team 2005-21, BSD License * @author <NAME> */ public final class BXElem extends BXNode implements Element { /** * Constructor. * @param node...
1,121
403
<reponame>vishalbelsare/OpenMatch<gh_stars>100-1000 from os.path import join import sys sys.path += ['../'] import argparse import glob import json import logging import os import random import numpy as np import torch torch.multiprocessing.set_sharing_strategy('file_system') from torch.utils.data import DataLoader fro...
14,557
335
{ "word": "Undersigned", "definitions": [ "The signatory or co-signatories to the document in question." ], "parts-of-speech": "Noun" }
67
2,151
<gh_stars>1000+ // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ #define UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ #include <memory> #include "base/macros.h" #include ...
1,896
461
<filename>smsBomb/plugins/aliyun.py # coding=utf-8 import base64 import datetime import hmac import json import urllib.parse from smsBomb import SmsPlugin def quote(s, safe='~'): """URL编码""" return urllib.parse.quote(s, safe=safe) def stringify(**kwargs): """参见阿里云签名需要""" pairs = [] for k, v in...
1,436
679
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
1,418
1,010
<reponame>steffakasid/RPi-Jukebox-RFID #!/usr/bin/env python3 """ Provides bt_switch (see below) as function and callable script If called as script, the configuration of led_pin reflecting audio sink status is read from ../../settings/gpio_settings.ini' See function get_led_pin_configuration for details. If no config...
4,364
2,151
// 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. #include "content/browser/dom_storage/session_storage_context_mojo.h" #include <inttypes.h> #include <cctype> // for std::isalnum #include <cstring> #in...
13,081
513
# Copyright (c) 2020 Yubico AB # All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the following # conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditi...
2,772
2,381
package io.jenkins.plugins.casc; public class ConfiguratorConflictException extends ConfiguratorException { public ConfiguratorConflictException(String message) { super(message); } }
63
5,535
// Greenplum Database // Copyright (C) 2016 VMware, Inc. or its affiliates. #ifndef GPOPT_CColConstraintsHashMapper_H #define GPOPT_CColConstraintsHashMapper_H #include "gpos/memory/CMemoryPool.h" #include "gpopt/base/CConstraint.h" #include "gpopt/base/IColConstraintsMapper.h" namespace gpopt { class CColConstrain...
266
5,865
<gh_stars>1000+ /* * Copyright 2021 ThoughtWorks, 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 appli...
753
14,668
#!/usr/bin/env vpython3 # 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. import os import unittest import six if six.PY3: import unittest.mock as mock from blinkpy.web_tests.stale_expectation_removal ...
4,741
841
package org.jboss.resteasy.test.asynch; import java.util.HashMap; import java.util.Map; import jakarta.servlet.http.HttpServletResponse; import jakarta.ws.rs.client.Client; import jakarta.ws.rs.client.ClientBuilder; import jakarta.ws.rs.core.HttpHeaders; import jakarta.ws.rs.core.Response; import org.jbos...
1,106
1,031
package at.wirecube.additiveanimations.additive_animator.animation_set.view; import android.view.View; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import at.wirecube.additiveanimations.additive_animator.animatio...
1,022
513
{ "family": "Sedgwick Ave Display", "variants": ["regular"], "subsets": ["latin", "latin-ext", "vietnamese"], "version": "v8", "lastModified": "2021-03-19", "files": { "regular": "http://fonts.gstatic.com/s/sedgwickavedisplay/v8/xfuu0XPgU3jZPUoUo3ScvmPi-NapQ8OxM2czd-YnOzUD.ttf" }, "category": "handw...
168
4,761
<gh_stars>1000+ #!/usr/bin/env python3 import sys import os import json import re def change_file_ext(filename, extension): return os.path.splitext(filename)[0] + '.' + extension def strip_adoc(heading): return re.sub(r'\b(_|\*)(.+?)\1\b', r'\2', heading.replace('`', '')) file_headings = dict() def heading...
2,303
6,073
<reponame>nwind/exceljs { "differentFirst": true, "differentOddEven": true, "firstHeader": "Hello Exceljs", "firstFooter": "Hello World", "oddHeader": "&C&KCCCCCC&\"Aril\"52 exceljs oddHeader", "oddFooter": "&C&KCCCCCC&\"Aril\"52 exceljs oddFooter", "evenHeader": "&C&KCCCCCC&\"Aril\"52 exceljs evenHeader"...
161
435
{ "alias": "video/2570/the-young-coder-lets-learn-python", "category": "PyCon US 2014", "copyright_text": "https://www.youtube.com/t/terms", "description": "", "duration": null, "id": 2570, "language": "eng", "quality_notes": "", "recorded": "2014-04-12", "slug": "the-young-coder-lets-learn-python",...
393
8,629
#include <Backups/BackupEntryFromSmallFile.h> #include <Disks/IDisk.h> #include <Disks/IO/createReadBufferFromFileBase.h> #include <IO/ReadHelpers.h> namespace DB { namespace { String readFile(const String & file_path) { auto buf = createReadBufferFromFileBase(file_path, /* settings= */ {}); S...
425
481
import os import cv2 import numpy as np import pickle from tqdm import trange, tqdm data_root = '/pathe/to/LV-MHP-v1/' img_root = data_root + 'images/' ann_root = data_root + 'annotations/' global_seg_root = data_root + 'global_seg/' def obtain_ann_dict(img_root, ann_root): ann_dict={} assert(os.path.isdir(i...
1,420
607
/* * This file is a part of the open source stm32plus library. * Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk> * Please see website for licensing terms. */ #pragma once /* * Application class */ class CHidReaderApp : public CWinApp { public: virtual BOOL InitInstance(); DECLARE_MESSAGE_MAP...
112
484
<filename>broker/src/test/java/io/camunda/zeebe/broker/system/configuration/CompressionCfgTest.java /* * 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 c...
423
348
<filename>docs/data/leg-t2/042/04203271.json {"nom":"Saint-Paul-en-Jarez","circ":"3ème circonscription","dpt":"Loire","inscrits":3003,"abs":1719,"votants":1284,"blancs":97,"nuls":35,"exp":1152,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":607},{"nuance":"UDI","nom":"M. <NAME>","voix":545}]}
123
511
<reponame>SenthilKumarGS/TizenRT /**************************************************************************** * * Copyright 2018 Samsung Electronics 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 ma...
371
1,909
package org.knowm.xchange.itbit.service.marketdata; import static org.assertj.core.api.Assertions.assertThat; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.util.ISO8601DateFormat; import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; import or...
632
435
/* * Copyright (C) 2014 <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 ...
4,979
799
<reponame>diCagri/content import pytest from ServiceNow_CMDB import Client, records_list_command, get_record_command, create_record_command, \ update_record_command, add_relation_command, delete_relation_command from test_data.result_constants import EXPECTED_RECORDS_LIST_NO_RECORDS, \ EXPECTED_RECORDS_LIST_WIT...
1,951
1,515
<filename>qigsaw-android/splitcore/src/main/java/com/iqiyi/android/qigsaw/core/DefaultObtainUserConfirmationDialog.java<gh_stars>1000+ /* * MIT License * * Copyright (c) 2019-present, iQIYI, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softwa...
1,215
1,837
package com.dianping.zebra.log; import org.apache.log4j.LogManager; import org.apache.log4j.xml.DOMConfigurator; public class Log4jLogger implements Logger { private org.apache.log4j.Logger logger; static { init(); } private static synchronized void init() { new DOMConfigurator().doConfigure(Log4jLogger.cla...
413
5,535
/*------------------------------------------------------------------------- * * cdbdisp_dtx.h * routines for dispatching DTX commands to the qExec processes. * * Portions Copyright (c) 2005-2008, Greenplum inc * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * * * IDENTIFICATION * src...
540
852
#ifndef DataFormatsL1TCorrelator_TkPrimaryVertex_h #define DataFormatsL1TCorrelator_TkPrimaryVertex_h // Package: L1TCorrelator // Class : TkPrimaryVertex // First version of a class for L1-zvertex #include <vector> #include "DataFormats/Common/interface/Ref.h" #include "DataFormats/Common/interface/RefVecto...
371
1,705
{ "active": true, "synopsis": "AWS IoT for LoRaWAN enables customers to setup a private LoRaWAN network by connecting their LoRaWAN devices and gateways to the AWS cloud without managing a LoRaWAN Network Server.", "generate-client-constructors": true }
73
488
<gh_stars>100-1000 // auto x = 42; int cnt = 0; // auto f = [&]{cnt++;}; auto f = [&]{cnt;};
47
3,586
<filename>metadata-io/src/main/java/com/linkedin/metadata/search/utils/GraphUtil.java package com.linkedin.metadata.search.utils; import com.linkedin.data.DataMap; import com.linkedin.data.template.RecordTemplate; import com.linkedin.metadata.dao.utils.RecordUtils; import java.util.Arrays; import java.util.HashMap; im...
1,955
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-hwgx-6pfh-c8pv", "modified": "2022-05-01T07:43:38Z", "published": "2022-05-01T07:43:38Z", "aliases": [ "CVE-2006-6993" ], "details": "Multiple SQL injection vulnerabilities in pages/addcomment2.php in Neuron Blog...
440
466
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2013 Pivotal, Inc. // // @filename: // CLogicalExternalGet.cpp // // @doc: // Implementation of external get //--------------------------------------------------------------------------- #include "gpo...
1,172