max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
450
/*------------------------------------------------------------------------- * * pg_tablespace.h * definition of the system "tablespace" relation (pg_tablespace) * along with the relation's initial contents. * * * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) ...
1,333
1,414
<reponame>redscientistlabs/Bizhawk50X-Vanguard #ifdef CPU_CPP void CPU::queue_event(unsigned id) { switch(id) { case QueueEvent::DramRefresh: return add_clocks(40); case QueueEvent::HdmaRun: return hdma_run(); } } void CPU::last_cycle() { if(status.irq_lock) { status.irq_lock = false; return; ...
1,480
3,459
<filename>Real-Time Corruptor/BizHawk_RTC/libmupen64plus/mupen64plus-video-glide64mk2/src/Glide64/rdp.h /* * Glide64 - Glide video plugin for Nintendo 64 emulators. * Copyright (c) 2002 Dave2001 * Copyright (c) 2003-2009 Sergey 'Gonetz' Lipski * * This program is free software; you can redistribute it and/or modify *...
10,630
399
import torch import os from tqdm import tqdm from PIL import Image import torch.utils.data as data from pycocotools.coco import COCO from gluoncv.utils.bbox import bbox_xywh_to_xyxy, bbox_clip_xyxy from maskrcnn_benchmark.structures.bounding_box import BoxList class ImageDataset(data.Dataset): def __init__(self...
4,207
467
package com.yoyiyi.soleil.di.module; import com.jakewharton.retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory; import com.yoyiyi.soleil.di.qualifier.ApiUrl; import com.yoyiyi.soleil.di.qualifier.AppUrl; import com.yoyiyi.soleil.di.qualifier.BangumiUrl; import com.yoyiyi.soleil.di.qualifier.Im9Url; import com.yoyiyi....
1,748
1,590
<reponame>clayne/Simd-1<gh_stars>1000+ /* * Tests for Simd Library (http://ermig1979.github.io/Simd). * * Copyright (c) 2011-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 Software wit...
6,844
1,116
# coding: utf-8 import warnings from traitlets.config.application import catch_config_error from .fetchassignmentapp import FetchAssignmentApp class FetchApp(FetchAssignmentApp): @catch_config_error def initialize(self, argv=None): super(FetchApp, self).initialize(argv=argv) msg = ( ...
229
1,751
/*- * #%L * rapidoid-networking * %% * Copyright (C) 2014 - 2020 <NAME> and contributors * %% * 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/L...
1,379
697
<reponame>clinuxrulz/sodium<filename>book/continuous-time/java/Signal.java import nz.sodium.*; import java.util.Optional; public class Signal { public Signal(double t0, double a, double b, double c) { this.t0 = t0; this.a = a; this.b = b; this.c = c; } public final double t0...
878
310
<reponame>dreeves/usesthis { "name": "e-l-s-a (iOS)", "description": "A sampling keyboard app.", "url": "https://itunes.apple.com/us/app/e-l-s-a/id833671355" }
76
689
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2018. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #include <ucp/api/ucp.h> #include <dlfcn.h> #include <stdio.h> int main(int argc, char **argv) { ucp_params_t params; ucs_status_t status; ucp_context_h context; params.field_mask =...
268
607
package com.sandwich.koan.util; import java.io.File; import com.sandwich.koan.ui.ConsolePresenter; import com.sandwich.koan.ui.SuitePresenter; import com.sandwich.util.io.directories.DirectoryManager; public class ApplicationUtils { private static SuitePresenterFactory suitePresenterFactory = new SuitePresenterFac...
247
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.indexinglanguage.expressions; import com.yahoo.document.DataType; import com.yahoo.document.DocumentType; import com.yahoo.document.Field; import com.yahoo.vespa.indexinglanguage.ExpressionV...
992
732
<gh_stars>100-1000 package io.eventuate.tram.commands.common.paths; import java.util.Map; import java.util.Optional; public class PlaceholderValueMapProvider implements PlaceholderValueProvider { private final Map<String, String> params; public PlaceholderValueMapProvider(Map<String, String> params) { if (pa...
203
4,036
<reponame>madhurimamandal/codeql<filename>java/ql/test/stubs/apache-commons-collections4-4.4/org/apache/commons/collections4/iterators/EnumerationIterator.java // Generated automatically from org.apache.commons.collections4.iterators.EnumerationIterator for testing purposes package org.apache.commons.collections4.iter...
289
3,425
import errno import os import signal import socket from os.path import abspath, dirname, join from textwrap import dedent import eventlet import pytest from mock import patch from nameko.cli.main import setup_parser from nameko.cli.run import import_service, main, run, setup_backdoor from nameko.constants import ( ...
3,282
335
{ "word": "Cantankerous", "definitions": [ "Bad-tempered, argumentative, and uncooperative." ], "parts-of-speech": "Adjective" }
68
450
//============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 <NAME> and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source code distribution. // // The AGS sourc...
7,396
739
<filename>pyjswidgets/pyjamas/ui/CSS.mshtml.py def setStyleElementText(el, text): el.styleSheet.cssText = text
47
315
/*************************************************************************** Copyright (c) 2019, Xilinx, 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: 1. Redistributions of source code must ...
2,637
461
#ifndef TLTIPWIDGET_H #define TLTIPWIDGET_H #include <QWidget> #include <QLabel> #include <QPaintEvent> #include <QTimer> class TLTipsWidget : public QWidget { Q_OBJECT public: explicit TLTipsWidget(QWidget *parent = 0); ~TLTipsWidget(); void setText(const QString & text); protected: void paintEve...
258
784
<reponame>eadf/opencv-rust<gh_stars>100-1000 #include "core.hpp" template struct Result<void*>; template struct Result<cv::Size>; template struct Result<const unsigned char*>; template<typename T> inline Result<void*> ocvrs_input_array(const T* instance) { try { return Ok<void*>(new cv::_InputArray(*instance)); }...
1,556
1,960
# nasty hack to deal with issue #46 import os import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) import pytest import numpy as np import time from rl_coach.memories.non_episodic.differentiable_neural_dictionary import QDND import tensorflow as tf NUM_ACTIONS = 3 NUM_DND_ENTRIES_...
1,439
5,364
{ "date": "2007-06-17", "free": false, "name": "Windows Internals: Including Windows Server 2008 and Windows Vista, Fifth Edition ", "url": "http://www.amazon.com/Windows%C2%AE-Internals-Including-Developer-Reference/dp/0735625301" }
89
6,156
<gh_stars>1000+ /* * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same direct...
314
335
<gh_stars>100-1000 { "word": "Volunteer", "definitions": [ "A person who freely offers to take part in an enterprise or undertake a task.", "A person who freely enrols for military service rather than being conscripted, especially a member of a force formed by voluntary enrolment and distinct fr...
181
587
<reponame>rocky341/Gaffer<gh_stars>100-1000 /* * Copyright 2017-2020 Crown Copyright * * 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,511
743
<gh_stars>100-1000 { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.1", "height": "stretch", "verticalContentAlignment": "center", "body": [ { "type": "ColumnSet", "height": "stretch", "columns": [ { "type": "Column", "width": 1, ...
1,022
5,937
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //+---------------------------------------------------------------------------- // // // Abstract: // Jolt J...
2,087
627
<filename>core/cortex-m/include/mpu_private.h /* Copyright 2020 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /** * @file * * @brief Private header file. Not meant to be used outside of mpu.c and tests. */ ...
323
1,604
<filename>core/src/main/java/org/bouncycastle/asn1/BERSetParser.java package org.bouncycastle.asn1; import java.io.IOException; /** * Parser for indefinite-length SETs. */ public class BERSetParser implements ASN1SetParser { private ASN1StreamParser _parser; BERSetParser(ASN1StreamParser parser) { ...
615
5,169
{ "name": "Rtc555Sdk", "version": "1.1.10-beta2", "summary": "RTC 555 SDK allows app developers to integrate different features like Voice, Video, Chat, etc leveraging the 555 platform.", "homepage": "https://www.555.comcast.com", "authors": { "Name": "<EMAIL>" }, "license": { "type": "MIT", "...
1,793
921
// Copyright (c) 2015-2020 <NAME> <<EMAIL>> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.vladsch.md.nav.psi.util; import com.intellij.psi.TokenType; import com.intellij.psi.tree.TokenSet; public interface MdTokenSets extends MdTypes { TokenSet WH...
11,137
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-j8xj-6778-59hw", "modified": "2022-05-13T01:27:34Z", "published": "2022-05-13T01:27:34Z", "aliases": [ "CVE-2012-2280" ], "details": "EMC RSA Authentication Manager 7.1 before SP4 P14 and RSA SecurID Appliance 3.0 before SP4 P14 do not proper...
370
5,169
<filename>Specs/SimpleTabsViewController/0.2.5/SimpleTabsViewController.podspec.json<gh_stars>1000+ { "name": "SimpleTabsViewController", "version": "0.2.5", "summary": "iOS view controller for custom and dynamic horizontal tabs.", "description": "Simple horizontal tab menu.\n* Easy to customize\n* Easy to use\...
305
348
<filename>docs/data/leg-t2/046/04602076.json {"nom":"Cornac","circ":"2ème circonscription","dpt":"Lot","inscrits":288,"abs":134,"votants":154,"blancs":3,"nuls":6,"exp":145,"res":[{"nuance":"REM","nom":"<NAME>","voix":78},{"nuance":"SOC","nom":"<NAME>","voix":67}]}
108
3,200
<gh_stars>1000+ # Copyright 2021 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 ...
724
399
<gh_stars>100-1000 /*- * #%L * athena-aws-cmdb * %% * Copyright (C) 2019 Amazon Web Services * %% * 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/licens...
9,497
1,857
<filename>scripts/utils/gltf.py import functools import math import struct # # accessor parsing # class ElementType: SCALAR = "SCALAR" VEC2 = "VEC2" VEC3 = "VEC3" VEC4 = "VEC4" MAT2 = "MAT2" MAT3 = "MAT3" MAT4 = "MAT4" NUM_COMPONENTS = { ElementType.SCALAR: 1, ElementType.VEC2...
9,621
10,074
import glob import os import shutil def install(): src_dir = os.path.dirname(__file__) dst_dir = os.path.join(os.getcwd(), "pyxel_examples") print("Install Pyxel examples to {} ...".format(dst_dir)) shutil.rmtree(dst_dir, ignore_errors=True) os.makedirs(os.path.join(dst_dir, "assets")) patt...
336
335
<gh_stars>100-1000 { "word": "Sedimentation", "definitions": [ "The process of settling or being deposited as a sediment." ], "parts-of-speech": "Noun" }
74
1,134
""" Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0 """ from cfnlint.rules import RuleMatch def check_condition_list(cfn, function): matches = [] # Build the list of functions trees = cfn.search_deep_keys(function) for tree in trees: # Test whe...
1,416
703
<reponame>kristianpd/Shopify-api-node<gh_stars>100-1000 { "smart_collection": { "title": "Macbooks", "image": { "attachment": "R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==\n" } } }
110
682
// // BugsnagDevice+Private.h // Bugsnag // // Created by <NAME> on 04/12/2020. // Copyright © 2020 Bugsnag Inc. All rights reserved. // #import "BugsnagDevice.h" NS_ASSUME_NONNULL_BEGIN @interface BugsnagDevice () + (instancetype)deviceWithKSCrashReport:(NSDictionary *)event; + (instancetype)deserializeFromJs...
203
1,144
package de.metas.printing.esb.base.inout.bean; /* * #%L * de.metas.printing.esb.base * %% * Copyright (C) 2015 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either ver...
1,092
1,118
<reponame>wulikanhua66/iOS_Tips // // NSDictionary+SLCrash.h // DarkMode // // Created by wsl on 2020/4/13. // Copyright © 2020 https://github.com/wsl2ls ----- . All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN // 不可变字典 越界、nil值 Crash防护 @interface NSDictionary (SLCrashProtector)...
163
466
package com.gykj.zhumulangma.common.bean; import com.google.gson.annotations.SerializedName; public class OperationCategoryBean { @SerializedName("id") private int id; @SerializedName("name") private String name; @SerializedName("source") private int source; @S...
484
4,262
<reponame>erard22/camel<filename>components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRequestReplyReplyToOverrideTest.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 informa...
1,509
12,278
<reponame>rajeev02101987/arangodb<gh_stars>1000+ // Copyright <NAME> 2014. // 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) #ifndef BOOST_CONTEXT_POOLED_pooled_fixedsize_H #define BOOST_CONT...
1,700
509
/* * Copyright (C)2016 - SMBJ Contributors * * 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...
759
3,428
{"id":"01499","group":"easy-ham-1","checksum":{"type":"MD5","value":"a60b4403c9b03c1812b8aaa7d3e666df"},"text":"From <EMAIL> Sun Sep 22 00:47:02 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy@localhost.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 27...
1,308
1,282
<reponame>hw20101101/LEEAlert /*! * @header ShareButton.h * MierMilitaryNews * * @brief 分享按钮 * * @author 李响 * @copyright Copyright © 2016年 miercn. All rights reserved. * @version 16/4/19. */ #import <UIKit/UIKit.h> typedef enum { ShareTypeToQQFriend = 0,//QQ好友 ShareTyp...
379
2,151
<reponame>zipated/src /* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
543
14,668
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/enterprise/connectors/connectors_service.h" #include <memory> #include "base/memory/singleton.h" #include "base/no_destructor.h...
8,213
332
/* This module shows how to load 2+ Payloads on a single Prim. * * The short answer is - add a Payload to 2+ Prims and then Reference * those Prims onto a single Prim. Then that container Prim with all the * references will get each Payload. * * Also note: This module isn't going to run directly in usdview becaus...
1,017
7,737
<gh_stars>1000+ extern zend_class_entry *phalcon_mvc_view_engine_abstractengine_ce; ZEPHIR_INIT_CLASS(Phalcon_Mvc_View_Engine_AbstractEngine); PHP_METHOD(Phalcon_Mvc_View_Engine_AbstractEngine, __construct); PHP_METHOD(Phalcon_Mvc_View_Engine_AbstractEngine, getContent); PHP_METHOD(Phalcon_Mvc_View_Engine_AbstractEn...
760
598
""" Tests for L{eliot.tai64n}. """ from __future__ import unicode_literals import errno import time import subprocess from unittest import TestCase, SkipTest from ..tai64n import encode, decode class CodecTests(TestCase): """ Tests for L{encode} and L{decode}. """ def test_encode(self): ""...
907
563
<reponame>kdima001/mesh package com.gentics.mesh.search.index.tagfamily; import com.gentics.mesh.core.data.search.IndexHandler; import com.gentics.mesh.core.data.tagfamily.HibTagFamily; /** * Index handler for tag family entities. */ public interface TagFamilyIndexHandler extends IndexHandler<HibTagFamily> { }
106
2,728
<reponame>rsdoherty/azure-sdk-for-python<gh_stars>1000+ # coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ------------...
660
335
<filename>K/Kazoo_noun.json { "word": "Kazoo", "definitions": [ "A small, simple musical instrument consisting of a hollow pipe with a hole in it, over which is a thin covering that vibrates and adds a buzzing sound when the player sings or hums into the pipe." ], "parts-of-speech": "Noun" }
109
9,701
import pytest import rasa.shared.nlu.training_data.lookup_tables_parser as lookup_tables_parser def test_add_item_to_lookup_tables(): lookup_item_title = "additional_currencies" lookup_examples = ["Peso", "Euro", "Dollar"] lookup_tables = [] for example in lookup_examples: lookup_tables_par...
345
1,273
package org.broadinstitute.hellbender.engine.filters; import htsjdk.samtools.SAMFileHeader; import org.broadinstitute.barclay.help.DocumentedFeature; import org.broadinstitute.hellbender.utils.help.HelpConstants; import org.broadinstitute.hellbender.utils.read.GATKRead; import org.broadinstitute.hellbender.utils.read....
428
381
<filename>dotviewer/test/test_unicode_util.py #!/usr/bin/env python # -*- coding: utf-8 -*- # import py import codecs from dotviewer.strunicode import RAW_ENCODING, forcestr, forceunicode, tryencode SOURCE1 = u"""digraph G{ λ -> b b -> μ } """ FILENAME = 'test.dot' class TestUnicodeUtil(object): def test_idempo...
1,039
2,455
/* * Copyright 2008-2013 NVIDIA Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
686
379
package aboutjava.asm; public interface Substitution { public void print(); }
24
1,738
/* * eos - A 3D Morphable Model fitting library written in modern C++11/14. * * File: include/eos/fitting/linear_shape_fitting.hpp * * Copyright 2014, 2015 <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 obt...
7,230
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. #include "base/auto_reset.h" #include <utility> #include "testing/gtest/include/gtest/gtest.h" namespace base { TEST(AutoReset, Move) ...
337
57,637
<reponame>waltercruz/gatsby [{"updates":0,"uuid":1,"title":"Hello World (1)","message":"This is PINC data to test Gatsby Preview.\nWhat are you doing here, anyways? Be gone!\n\n(also pretend this is randomized, it is not)\n\n...\n\nOK cool, I appreciate you. Thanks for checking deep into the underlying stuff, you pro.\...
303
667
/** * Tencent is pleased to support the open source community by making Tseer available. * * Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except * in compliance with the License. You may obtain a...
4,838
1,391
#include "common.h" #include <ctype.h> #include <plumb.h> #include <libsec.h> #include <auth.h> #include <thread.h> #include "dat.h" #pragma varargck type "M" uchar* #pragma varargck argpos pop3cmd 2 typedef struct Pop Pop; struct Pop { char *freep; /* free this to free the strings below */ char *host; char *user...
6,438
3,434
<reponame>chenxiaolei/jetcache<filename>jetcache-test/src/test/java/com/alicp/jetcache/anno/support/DefaultSpringEncoderParserTest.java /** * Created on 2018/3/28. */ package com.alicp.jetcache.anno.support; import com.alicp.jetcache.anno.SerialPolicy; import com.alicp.jetcache.support.JavaValueEncoder; import com.a...
1,209
2,583
<filename>samples/libs/android-beacon-library-master/src/main/java/org/altbeacon/beacon/service/scanner/CycledLeScannerForAndroidO.java package org.altbeacon.beacon.service.scanner; import android.annotation.TargetApi; import android.content.Context; import org.altbeacon.bluetooth.BluetoothCrashResolver; import java.u...
418
892
<filename>advisories/unreviewed/2022/05/GHSA-9rvj-pj6p-4pj6/GHSA-9rvj-pj6p-4pj6.json { "schema_version": "1.2.0", "id": "GHSA-9rvj-pj6p-4pj6", "modified": "2022-05-01T02:27:15Z", "published": "2022-05-01T02:27:15Z", "aliases": [ "CVE-2005-4440" ], "details": "The 802.1q VLAN protocol allows remote att...
547
448
<filename>terracotta/image.py """image.py Utilities to create and manipulate images. """ from typing import Sequence, Tuple, TypeVar, Union from typing.io import BinaryIO from io import BytesIO import numpy as np from PIL import Image from terracotta.profile import trace from terracotta import exceptions, get_sett...
2,601
1,821
<reponame>vishalbelsare/perspective /****************************************************************************** * * Copyright (c) 2017, the Perspective Authors. * * This file is part of the Perspective library, distributed under the terms of * the Apache License 2.0. The full license can be found in the LICEN...
1,219
1,510
/* * 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 ...
849
2,636
package com.hitomi.transferimage.activity; import android.view.Gravity; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import androidx.recyclerview.widget.GridLayoutManager; import and...
2,070
32,544
package com.baeldung.getdburl; import java.sql.Connection; import java.sql.DriverManager; public class DBConfiguration { public static Connection getConnection() throws Exception { Class.forName("org.h2.Driver"); String url = "jdbc:h2:mem:testdb"; return DriverManager.getConnection(url, "...
129
14,668
<reponame>zealoussnow/chromium // Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/style/style_initial_data.h" #include "third_party/blink/renderer/core/css/proper...
298
864
<filename>ingestion/src/metadata/profiler/databases/redshift.py # Copyright 2021 Collate # 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 # Unl...
429
14,668
<filename>chrome/chrome_cleaner/mojom/typemaps/footprints_mojom_traits.cc // 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 "chrome/chrome_cleaner/mojom/typemaps/footprints_mojom_traits.h" #inclu...
1,417
473
#include "libpov.h" int main(int cgc_argc, char *cgc_argv[]) { cgc_negotiate_type1(0x0, 0x0, 0); do { unsigned char *read_00000; unsigned int read_00000_len; unsigned int read_00000_ptr = 0; //**** length read read_00000_len = 110; read_00000 = (unsigned char*)cgc_malloc(read_0...
50,647
602
<reponame>CorfuDB/CORFU<filename>test/src/test/java/org/corfudb/integration/AckDataSender.java package org.corfudb.integration; import lombok.Data; import org.corfudb.infrastructure.logreplication.DataSender; import org.corfudb.infrastructure.logreplication.replication.LogReplicationSourceManager; import org.corfudb.i...
650
933
<reponame>swaromik/SideMenu // // FAPanel.h // FAPanel // // Created by <NAME> on 04/08/2017. // Copyright © 2017 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for FAPanel. FOUNDATION_EXPORT double FAPanelVersionNumber; //! Project version string for FAPanel. FOUNDATION_EXPOR...
169
856
<filename>src/dynamic/sample/SampleDynamicLayerSupport.cpp // // Copyright © 2020 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #include "SampleDynamicLayerSupport.hpp" #include <InternalTypes.hpp> #include <LayerSupportCommon.hpp> #include <armnn/Types.hpp> namespace sdb // sample dynamic backend...
662
354
<filename>src/model/SizingPeriod.cpp /*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in sourc...
1,438
392
<reponame>logzio/apollo package io.logz.apollo.helpers; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.testcontainers.containers.MySQLContainer; import javax.script.ScriptException; import java.io.IOException; import java.sql.SQLException; /** * Created by roiravhon on 11/23/16. */ public clas...
559
335
<gh_stars>100-1000 { "word": "Oligotrophic", "definitions": [ "(especially of a lake) relatively poor in plant nutrients and containing abundant oxygen in the deeper parts." ], "parts-of-speech": "Adjective" }
83
480
<gh_stars>100-1000 /* * Copyright [2013-2021], 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 * * Unl...
758
852
<reponame>ckamtsikis/cmssw<gh_stars>100-1000 // -*- C++ -*- // // Package: PluginManager // Class : pluginmanager_t // // Implementation: // <Notes on implementation> // // Original Author: <NAME> // Created: Wed Apr 4 13:38:29 EDT 2007 // // system include files #include <Utilities/Testing/int...
1,368
6,181
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2020-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...
893
335
<gh_stars>100-1000 { "word": "Quadruped", "definitions": [ "An animal which has four feet, especially an ungulate mammal." ], "parts-of-speech": "Noun" }
77
1,645
<reponame>smsahu/seldon-server /* * Seldon -- open source prediction engine * ======================================= * Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/) * ********************************************************************************************** * * Licensed...
616
1,444
<gh_stars>1000+ package mage.cards.s; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.common.RemoveCountersSourceCost; import mage.abilities.costs.common.SacrificeTargetCost; import mage.abilities.costs.mana.GenericManaCost; import...
581
1,666
<gh_stars>1000+ #ifndef SRC_JSON_UTILS_H_ #define SRC_JSON_UTILS_H_ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #include <iomanip> #include <ostream> #include <limits> #include <string> namespace node { std::string EscapeJsonChars(const std::string& str); std::string Reindent(const std::string& str, int...
1,513
543
package com.riiablo.engine.client; import com.google.flatbuffers.FlatBufferBuilder; import java.io.OutputStream; import java.nio.channels.Channels; import java.nio.channels.WritableByteChannel; import com.artemis.annotations.Wire; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.net.Socket; import com.badlogic.g...
822
953
<filename>sakura_core/plugin/CPluginManager.h /*! @file @brief プラグイン管理クラス */ /* Copyright (C) 2009, syat Copyright (C) 2018-2021, Sakura Editor Organization This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the u...
1,260
679
<filename>main/chart2/source/controller/dialogs/DataBrowser.hxx<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional...
2,187
677
<reponame>InfiniteSynthesis/lynx-native #ifndef LYNX_BASE_TRACE_EVENT_TRACE_LOGGER_H_ #define LYNX_BASE_TRACE_EVENT_TRACE_LOGGER_H_ #include "base/ref_counted_ptr.h" #include "base/scoped_ptr.h" #include "base/threading/thread.h" #include <string> namespace base { class TraceEvent; class TraceWriter; class TraceLogg...
264
1,336
/* * 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,400