max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,360
# 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) from spack import * class Garfieldpp(CMakePackage): """Garfield++ is a toolkit for the detailed simulation of partic...
489
681
<gh_stars>100-1000 # _____ ______ _____ # / ____/ /\ | ____ | __ \ # | | / \ | |__ | |__) | Caer - Modern Computer Vision # | | / /\ \ | __| | _ / Languages: Python, C, C++, Cuda # | |___ / ____ \ | |____ | | \ \ http://github.com/jasmcaus/caer # \_____\/_/ \_ \___...
3,140
808
<reponame>stjordanis/symengine #include "catch.hpp" #include <symengine/add.h> #include <symengine/pow.h> #include <symengine/eval_mpc.h> #include <symengine/eval_mpfr.h> #include <symengine/symengine_exception.h> #include <symengine/real_double.h> #include <symengine/constants.h> using SymEngine::abs; using SymEngine...
2,924
703
{ "article": { "title": "My new Article title", "author": "<NAME>", "tags": "This Post, Has Been Tagged", "body_html": "<h1>I like articles</h1>\n<p><strong>Yea</strong>, I like posting them through <span class=\"caps\">REST</span>.</p>", "published_at": "Thu Mar 24 15:45:47 UTC 2011", "image"...
163
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,480
1,179
<reponame>RavenSpear/optee_os<filename>core/lib/libtomcrypt/src/encauth/eax/eax_init.c // SPDX-License-Identifier: BSD-2-Clause /* LibTomCrypt, modular cryptographic library -- <NAME> * * LibTomCrypt is a library that provides various cryptographic * algorithms in a highly modular and flexible manner. * * The libr...
1,680
692
package com.hubspot.mesos.protos; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Objects; import java.util.Optional; public class MesosParameter { private final Optional<String> key; pr...
487
419
""" A simple plotting example ========================== A plotting example with a few simple tweaks """ import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt fig = plt.figure(figsize=(5, 4), dpi=72) axes = fig.add_axes([0.01, 0.01, .98, 0.98]) x = np.linspace(0, 2, 200, endpoint...
215
14,499
<gh_stars>1000+ /* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <iostream> #include <fstream> #include <unistd.h> extern void __infer_url_sink(char*); namespace files { ...
668
506
<reponame>Ashindustry007/competitive-programming<gh_stars>100-1000 #!/usr/bin/env python3 # https://abc079.contest.atcoder.jp/tasks/abc079_c a, b, c, d = map(int, input()) if a + b + c + d == 7: print('{}+{}+{}+{}=7'.format(a, b, c, d)) elif a + b + c - d== 7: print('{}+{}+{}-{}=7'.format(a, b, c, d)) elif a + b - c + ...
384
11,356
<reponame>shreyasvj25/turicreate<filename>deps/src/boost_1_65_1/boost/units/detail/heterogeneous_conversion.hpp // Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 <NAME> // Copyright (C) 2008 <NAME> // // Distributed under...
3,423
333
// // YSCGifLoadImageView.h // MISVoiceSearchLib // // Created by yushichao on 16/10/18. // Copyright © 2016年 yushichao. All rights reserved. // #import <UIKit/UIKit.h> #import "YSCGifLoadImage.h" typedef void(^GifAnimatingCompleteCallBack)(void); @interface YSCGifLoadImageView : UIImageView /** * 开始播放 * * ...
323
340
<reponame>rasky/cen64 // // arch/arm/rsp/vnxor.h // // This file is subject to the terms and conditions defined in // 'LICENSE', which is part of this source code package. // #include "common.h" #include <arm_neon.h> static inline uint16x8_t rsp_vnxor( uint16x8_t vs, uint16x8_t vt, uint16x8_t zero) { return vmvnq...
154
1,185
<reponame>goolulu/dubbo-samples<filename>test/dubbo-scenario-builder/src/test/java/org/apache/dubbo/scenario/builder/VersionMatcherTest.java<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for a...
6,377
1,337
/* * Copyright (c) 2008-2017 Haulmont. * * 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...
345
1,380
/* * Image.h * * The MIT License (MIT) * * Copyright (c) 2013 ZhangYuanwei <<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 restriction, including * without limit...
2,674
334
{ "name": "liveblocks-examples-javascript-live-cursors", "version": "1.0.0", "description": "Liveblocks live cursors example with javascript", "scripts": { "build": "esbuild app.js --bundle --outfile=static/app.js" }, "author": "", "license": "Apache-2.0", "dependencies": { "@liveblocks/client":...
178
482
<gh_stars>100-1000 #ifndef FONT4X6_h #define FONT4X6_h #include <avr/pgmspace.h> extern const unsigned char font4x6[]; #endif
66
1,091
/* * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
1,287
12,278
<filename>libs/outcome/meta/libraries.json { "key": "outcome", "name": "Outcome", "authors": [ "<NAME>" ], "maintainers": [ "<NAME>" ], "description": "A deterministic failure handling library partially simulating lightweight exceptions.", "std": [ "proposal" ], "category": [ "Patterns", "Emulatio...
122
1,266
<gh_stars>1000+ // Copyright (c) 2019-2020 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_CHAINPARAMSCONSTANTS_H #define BITCOIN_CHAINPARAMSCONSTANTS_H /** * Chain params constants for ea...
334
373
/* Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. 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 Unl...
6,900
892
{ "schema_version": "1.2.0", "id": "GHSA-h243-jxv9-h6mp", "modified": "2022-04-30T18:16:44Z", "published": "2022-04-30T18:16:44Z", "aliases": [ "CVE-2001-0789" ], "details": "Format string vulnerability in avpkeeper in Kaspersky KAV 3.5.135.2 for Sendmail allows remote attackers to cause a denial of s...
345
854
__________________________________________________________________________________________________ sample 796 ms submission class Solution: def subarrayBitwiseORs(self, A: List[int]) -> int: Set = set() tmp = {0} for cur in A: tmp = {cur | ele for ele in tmp} tmp.add...
310
304
<reponame>fduguet-nv/cunumeric # Copyright 2021 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 ap...
796
14,668
<reponame>zealoussnow/chromium // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_ENTERPRISE_SIGNALS_SIGNALS_COMMON_H_ #define CHROME_BROWSER_ENTERPRISE_SIGNALS_SIGNALS_COMMON_H_ #i...
286
335
<gh_stars>100-1000 { "word": "Kaftan", "definitions": [ "A man's long belted tunic, worn in countries of the Near East.", "A woman's long loose dress.", "A loose shirt or top." ], "parts-of-speech": "Noun" }
110
736
#include "StdAfx.h" #include "Sodium.h" //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// FSecure::Crypto::Sodium::AsymmetricKeys FSecure::Crypto::Sodium::GenerateAsymm...
3,276
929
<filename>automation/services/watchdog/util.py import json import os from kubernetes import client, config, stream import sys import traceback import asyncio import uuid import time import math def get_kubernetes(): if os.environ.get('LOCAL_KUBERNETES') is not None: config.load_kube_config() namespace = os.e...
983
3,974
#include "utf8_source.h" unsigned char Utf8Source_read(Utf8Source* utf8_source) { return utf8_source->read(utf8_source); } void Utf8Source_delete(Utf8Source* utf8_source) { utf8_source->del(utf8_source); }
95
995
//---------------------------------------------------------------------------// // Copyright (c) 2014 Roshan <<EMAIL>> // // 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 // // See http://boostorg.github.com/c...
676
575
// 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 CHROME_BROWSER_DATA_REDUCTION_PROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ #define CHROME_BROWSER_DATA_REDUCTION_PROXY_DATA_REDUCTION_PROXY_CHROM...
1,456
3,269
<reponame>Priyansh2/LeetCode-Solutions // Time: O(n) // Space: O(1) class Solution { public: vector<double> sampleStats(vector<int>& count) { const double mi = distance(count.cbegin(), find_if(count.cbegin(), count.cend(), [](int x) { return x != 0; })); ...
644
1,115
# -*- coding: future_annotations -*- import pytest from ffsubsync.aligners import FFTAligner, MaxScoreAligner @pytest.mark.parametrize('s1, s2, true_offset', [ ('111001', '11001', -1), ('1001', '1001', 0), ('10010', '01001', 1) ]) def test_fft_alignment(s1, s2, true_offset): assert FFTAligner().fit_t...
222
6,989
#pragma once #include "base.h" /** * Returns system uptime */ TDuration Uptime();
33
634
package com.intellij.diagnostic; import com.intellij.openapi.editor.Document; import com.intellij.openapi.fileEditor.FileDocumentManager; import com.intellij.openapi.fileEditor.impl.LoadTextUtil; import com.intellij.openapi.vfs.VirtualFile; import consulo.logging.attachment.Attachment; import javax.annotation.Nonnull;...
593
190,993
<reponame>EricRemmerswaal/tensorflow<gh_stars>1000+ /* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses...
965
373
<gh_stars>100-1000 package com.dianrong.common.uniauth.common.bean.request; import com.dianrong.common.uniauth.common.bean.ThirdAccountType; import lombok.ToString; import java.util.Date; @ToString public class UserThirdAccountParam extends Operator { private static final long serialVersionUID = -3830893913661713...
648
5,169
<reponame>Gantios/Specs { "name": "CSCoreUtils", "version": "0.1.5", "summary": "A short description of CSCoreUtils.", "description": "常用工具整合框架", "homepage": "https://github.com/wleics/CSCoreUtils", "license": "MIT", "authors": { "wleics": "<EMAIL>" }, "source": { "git": "https://github.com/wl...
432
3,459
// // PVDolphin.h // PVDolphin // // Created by <NAME> on 9/5/21. // Copyright © 2021 Provenance. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for PVDolphin. FOUNDATION_EXPORT double PVDolphinVersionNumber; //! Project version string for PVDolphin. FOUNDATION_EXPORT const unsigned c...
164
626
package org.jsmart.zerocode.parallel.restful; import org.jsmart.zerocode.core.domain.LoadWith; import org.jsmart.zerocode.core.domain.TestMapping; import org.jsmart.zerocode.core.domain.TestMappings; import org.jsmart.zerocode.core.runner.parallel.ZeroCodeMultiLoadRunner; import org.junit.runner.RunWith; @LoadWith("...
268
435
<reponame>amaajemyfren/data<filename>pycon-uk-2018/videos/pycon-uk-2018-monday-keynote-loek-van-gent.json { "copyright_text": null, "description": "Loek is Head of Engineering at `GoodUp <https://goodup.com>`__ in\nAmsterdam. He is also a long-time supporter of the Python in Africa\nmovement, and has taken part in ...
380
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...
538
392
<reponame>mouthwater/rgb /* * Hashable interface. */ #ifndef INTERFACES__HASHABLE_HH #define INTERFACES__HASHABLE_HH namespace interfaces { /* * Template interface for hashable objects. * * If a class X extends hashable<T,H> then: * (1) X must be a T, and * (2) X must hash to an object of type H via its hash(...
411
438
/* Char.java * ========================================================================= * This file is originally part of the JMathTeX Library - http://jmathtex.sourceforge.net * * Copyright (C) 2004-2007 Universiteit Gent * Copyright (C) 2009 <NAME> * * This program is free software; you can redistribute it ...
661
953
// Defines ArgTypeDef specialization for all fundamental types. #ifndef TRACING_FRAMEWORK_BINDINGS_CPP_INCLUDE_ARGTYPES_H_ #define TRACING_FRAMEWORK_BINDINGS_CPP_INCLUDE_ARGTYPES_H_ #include <string> #include "wtf/buffer.h" namespace wtf { namespace types { // ArgTypeDef for each supported type provides the WTF typ...
1,614
2,542
<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once ...
688
593
// class GxEPD : Base Class for Display Classes for e-Paper Displays from Dalian Good Display Co., Ltd.: www.good-display.com // // based on Demo Examples from Good Display, available here: http://www.good-display.com/download_list/downloadcategoryid=34&isMode=false.html // // Author : <NAME> // // Version : see ...
1,960
506
<reponame>ghosty-be/Homepoint<filename>main/ui/ScreenNavigator.hpp<gh_stars>100-1000 #pragma once #include <ui/UIButton.h> #include <ui/UIWidget.hpp> #include <config/Icon.hpp> #include <ui/UIMosaicMenuWidget.hpp> #include <ui/UIPageButton.h> #include <util/stdextend.hpp> #include <algorithm> #include <functional> ...
3,526
653
//===-- sanitizer_allocator_primary32.h -------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
5,257
625
#include "libtrading/proto/xdp_message.h" #include "libtrading/buffer.h" #include <stdlib.h> #include <string.h> int xdp_message_decode(struct buffer *buf, struct xdp_message *msg, size_t size) { size_t available; u16 msg_size; available = buffer_size(buf); if (!available) return -1; msg_size = buffer_peek_...
189
335
{ "word": "Irregular", "definitions": [ "Not even or balanced in shape or arrangement.", "Occurring at uneven or varying rates or intervals.", "(of a flower) having the petals differing in size and shape; zygomorphic.", "Contrary to the rules or to that which is normal or establi...
182
1,682
<gh_stars>1000+ /* Copyright (c) 2017 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable ...
2,614
4,036
class A { class C { public: virtual void insert(void *) {} }; class C1 : public C { public: A *a; }; class C2 : public C { }; class B { public: C *c; B() {} B(C *c) { this->c = c; } void set(C *c) { this->c = c; } C *get() { return this->c; } s...
1,632
7,158
<filename>modules/rgbd/include/opencv2/rgbd/kinfu.hpp // 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 // This code is also subject to the license terms in the LICENSE_KinectF...
2,995
1,168
<filename>tools/build_rules/verifier_test/jvm_verifier_test.bzl # Copyright 2019 The Kythe Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apach...
1,509
1,109
# -*- coding: utf-8 -*- from collections import defaultdict from datetime import datetime, date, timedelta import json import os import requests import uuid from decimal import * from delorean import Delorean from sqlalchemy import ForeignKey, Column, Integer, Unicode, DateTime, UnicodeText, Numeric from sqlalchemy.or...
3,860
461
<gh_stars>100-1000 class MapSum(object): # 设计成内部类,外部没有必要知道 class TrieNode: def __init__(self): self.val = 0 self.next = {} def __init__(self): """ Initialize your data structure here. """ self.root = MapSum.TrieNode() def insert(self, key...
627
1,723
/************************************************************************** * * Copyright 2016 VMware, Inc. * All Rights Reserved. * * 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...
1,156
4,461
<reponame>p-christ/Deep-Reinforcement-Learning-PyTorch-Algorithms import random import torch import sys from contextlib import closing # # from pathos.multiprocessing import ProcessingPool as Pool from torch.multiprocessing import Pool from random import randint from utilities.OU_Noise import OU_Noise from utilities....
1,586
1,127
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <openvino/op/select.hpp> namespace ov { namespace op { namespace v1 { template <class T> void shape_infer(const Select* op, const std::vector<T>& input_shapes, std::vector<T>& output_shapes) { NODE_VALID...
997
790
import warnings from django.test import TestCase class DummyTest(TestCase): def test_warn(self): warnings.warn("warning from test", DeprecationWarning)
56
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,573
17,242
// Copyright 2021 The MediaPipe Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or a...
874
751
/* * Copyright (c) 2016 Cisco 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 required by applicabl...
1,051
13,162
<filename>unittests/test-contracts/kv_bios/kv_bios.cpp #include <eosio/contract.hpp> #include <eosio/name.hpp> #include <eosio/privileged.hpp> extern "C" __attribute__((eosio_wasm_import)) void set_resource_limit(int64_t, int64_t, int64_t); extern "C" __attribute__((eosio_wasm_import)) uint32_t get_kv_parameters_packe...
821
1,273
package org.broadinstitute.hellbender.utils.runtime; import org.apache.commons.lang3.StringUtils; import org.broadinstitute.hellbender.utils.Utils; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.jar.Manifest; public final class RuntimeUtils { pu...
1,343
643
import java.util.Map; public abstract class C<K, V> implements Map.Entry<K, V> { }
30
1,140
# -*- coding: utf-8 -*- """ flaskbb.auth.forms ~~~~~~~~~~~~~~~~~~ It provides the forms that are needed for the auth views. :copyright: (c) 2014 by the FlaskBB Team. :license: BSD, see LICENSE for more details. """ import logging from flask_babelplus import lazy_gettext as _ from wtforms import (...
1,717
446
<reponame>quink-black/MediaInfoLib /* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a BSD-style license that can * be found in the License.html file in the root of the source tree. */ //--------------------------------------------------------------------...
12,169
640
<reponame>jpoikela/z88dk<gh_stars>100-1000 #include "paranoia.h" void part7(VOID){ Milestone = 130; /*=============================================*/ Y = - FLOOR(Half - TwoForty * LOG(UfThold) / LOG(HInvrse)) / TwoForty; Y2 = Y + Y; printf("Since underflow occurs below the threshold\n"); printf("UfThold = (%.17e)...
2,740
1,602
/* gmp-mparam.h -- Compiler/machine parameter header file. Copyright 1991, 1993, 1994, 1999-2003, 2009, 2010 Free Software Foundation, Inc. This file is part of the GNU MP Library. The GNU MP Library is free software; you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Pub...
2,811
1,553
# coding=utf-8 import traceback def dispatch_migrate(): try: migrate() except: Log.Error("Migration failed: %s" % traceback.format_exc()) del Dict["subs"] Dict.Save() def migrate(): """ some Dict/Data migrations here, no need for a more in-depth migration path for now...
1,640
1,391
<gh_stars>1000+ #include "mplot.h" void rvec(double xx, double yy){ e1->copyx += xx; e1->copyy += yy; vec(e1->copyx, e1->copyy); }
68
10,225
<reponame>CraigMcDonaldCodes/quarkus<gh_stars>1000+ package io.quarkus.it.virtual; import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.equalTo; import java.net.URI; import java.nio.charset.StandardCharsets; import java.util.logging.Logger; import javax.ws.rs.core.MediaType; impor...
1,778
347
package org.ovirt.engine.core.bll.snapshots; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.Spy; impo...
1,056
575
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_CHROME_BROWSER_UI_HISTORY_IOS_BROWSING_HISTORY_DRIVER_H_ #define IOS_CHROME_BROWSER_UI_HISTORY_IOS_BROWSING_HISTORY_DRIVER_H_ #include <vecto...
802
1,006
<reponame>eenurkka/incubator-nuttx<filename>boards/arm/tms570/launchxl-tms57004/src/launchxl-tms57004.h /**************************************************************************** * boards/arm/tms570/launchxl-tms57004/src/launchxl-tms57004.h * * Licensed to the Apache Software Foundation (ASF) under one or more *...
1,031
545
int main() { double dval; int ival; int *pi; //dval = ival = pi = 0; // the type of `pi` is `int *` which cannot be converted to `int` dval = ival = 0; pi = 0; return 0; }
82
550
<reponame>cclauss/traceback_with_variables >>> from traceback_with_variables import print_exc >>> def f(n): .... return 1 / n .... >>> f(0) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 2, in f ZeroDivisionError: division by zero >>> print_exc() >>> # you might wan...
132
372
<reponame>mdbloice/systemds # ------------------------------------------------------------- # # 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 lice...
3,417
831
<reponame>qq1056779951/android<filename>android/src/com/android/tools/idea/startup/AndroidSdkInitializer.java /* * Copyright (C) 2015 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 obta...
3,826
8,805
/*============================================================================= Copyright (c) 2001-2011 <NAME> Copyright (c) 2001-2011 <NAME> http://spirit.sourceforge.net/ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www....
376
1,350
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.cognitiveservices.vision.customvision.training.models; impo...
1,359
437
<gh_stars>100-1000 // -*- mode: c++; c-file-style: "k&r"; c-basic-offset: 4 -*- /*********************************************************************** * * common/kvstore.cc: * Simple versioned key-value store * * Copyright 2015 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person ...
662
1,279
<gh_stars>1000+ /* * Copyright (c) 2012-2021 <NAME> et al. * License: https://github.com/dbartolini/crown/blob/master/LICENSE */ #include "core/guid.h" #include "core/strings/string_stream.h" #include "core/types.h" #include "world/types.h" #if CROWN_PLATFORM_WINDOWS #undef RELATIVE #undef ABSOLUTE #endif // CRO...
1,522
385
<filename>src/websrv.c /* * WebSrv - Simple, buggy web server * * (c) 2015 <NAME> */ #define _GNU_SOURCE #include <stdio.h> #include <ctype.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include <unistd.h> #include <sys/wait.h> #include <arpa/inet.h> #include <sys/socket.h> #in...
3,690
2,094
<filename>libraries/utilities/include/IntegerList.h<gh_stars>1000+ //////////////////////////////////////////////////////////////////////////////////////////////////// // // Project: Embedded Learning Library (ELL) // File: IntegerList.h (utilities) // Authors: <NAME> // ///////////////////////////////////////...
1,249
377
//===-- ARMEliminatePrologEpilog.cpp ----------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
1,336
557
from nose.tools import istest, assert_equal from mammoth.docx.xmlparser import element as xml_element from mammoth.docx.relationships_xml import read_relationships_xml_element @istest def relationship_targets_can_be_found_by_id(): element = xml_element("relationships:Relationships", {}, [ xml_element("re...
1,009
764
<reponame>dchain01/token-profile { "symbol": "SCDS", "address": "0xb72c794effb775197287d767cA80C22ae9094cB5", "overview": { "en": "SCDS is a distributed private cloud storage ecological application encryption digital asset of shine cloud blockchain. Users share cloud storage space. It aims to build a new ...
476
2,023
<filename>recipes/Python/442459_Email_pretty_tracebacks_yourself_or_someone_you_/recipe-442459.py # --------------------------------------------------------------- def createMail(sender, recipient, subject, html, text): ''' A slightly modified version of Recipe #67083, included here for completeness ''...
871
622
""" Example code to sort sequences. """ import random # Easily create a list of numbers data = list(range(10)) print("range data:", data) # Randomly shuffle those numbers random.shuffle(data) print("shuffled data:", data) # Sort the list of numbers data.sort() print("sorted data:", data) # Shuffle it again random....
322
402
<filename>allennlp_models/modelcards/generation-bart.json { "id": "generation-bart", "registered_model_name": "bart", "registered_predictor_name": null, "display_name": "BART", "model_details": { "description": "The BART model here uses a language modeling head, and therefore can be used for...
1,278
1,233
/* * Copyright 2017 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
666
2,151
<reponame>zipated/src // Copyright (c) 2011 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/printing/printer_manager_dialog.h" #include <windows.h> #include <shellapi.h> #include "base/bind.h" ...
453
403
package com.camunda.consulting.bpmn_db_exporter; import java.io.File; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardOpenOption; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException;...
1,126
405
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tflib.ops.layers import *
38
4,002
package me.zeroX150.cornos.features.command.impl; import me.zeroX150.cornos.Cornos; import me.zeroX150.cornos.etc.helper.STL; import me.zeroX150.cornos.features.command.Command; import me.zeroX150.cornos.gui.screen.DocsScreen; public class Help extends Command { public Help() { super("Help", "Shows all co...
265
777
// 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 "components/data_reduction_proxy/core/common/data_reduction_proxy_server.h" namespace data_reduction_proxy { DataReductionProxyServer::DataRedu...
391