max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,841
/** * Copyright (c) 2017-present, Facebook, 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 ...
3,118
5,169
<filename>Specs/3/c/9/AsyncCoordinator/1.0/AsyncCoordinator.podspec.json { "name": "AsyncCoordinator", "version": "1.0", "license": "BSD", "homepage": "https://github.com/nickenchev/async-coordinator", "authors": { "<NAME>": "<EMAIL>" }, "summary": "Manage multiple async requests in a parallel or seri...
232
6,958
/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: NeuralNetwork.proto */ #ifndef PROTOBUF_C_NeuralNetwork_2eproto__INCLUDED #define PROTOBUF_C_NeuralNetwork_2eproto__INCLUDED #include <protobuf-c/protobuf-c.h> PROTOBUF_C__BEGIN_DECLS #if PROTOBUF_C_VERSION_NUMBER < 1003000 # error Th...
240,369
473
/* Author: <NAME> <<EMAIL>> Copyright (c) 2014 Cromulence LLC 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...
1,752
14,668
// Copyright (c) 2012 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/public/app/content_main_delegate.h" #include "base/check.h" #include "build/build_config.h" #include "content/public/browser/conten...
653
4,012
package com.github.piasy.biv.example.glide; import android.net.Uri; public class SampleCustomImageSizeModel implements CustomImageSizeModel { private Uri baseImageUrl; public void setBaseImageUrl(Uri baseImageUrl) { this.baseImageUrl = baseImageUrl; } @Override public String requestCustomSizeUrl(Inte...
240
1,338
<filename>src/system/kernel/arch/riscv64/arch_timer.cpp /* * Copyright 2019-2021, Haiku Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> */ #include <arch_cpu_defs.h> #include <arch_int.h> #include <arch/timer.h> #include <boot/kernel_args.h> #include ...
468
2,828
package com.lzx.demo.adapter; import android.content.Context; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.widget.TextView; import com.lzx.demo.R; import com.lzx.demo.base.BaseMultiAdapter; import com.lzx.demo.base.SuperViewHolder; import com.lzx....
873
3,363
from torch2trt.torch2trt import * from torch2trt.module_test import add_module_test @tensorrt_converter('torch.nn.functional.linear') def convert_Linear(ctx): input = ctx.method_args[0] weight = get_arg(ctx, 'weight', 1, None) bias = get_arg(ctx, 'bias', 2, None) input_trt = add_missing_trt_tensors(ct...
702
396
package com.ibm.authors; import java.util.Optional; import org.springframework.stereotype.Service; @Service public class AuthorService { private AuthorRepo repo; public AuthorService(AuthorRepo repo) { this.repo = repo; } public Author getAuthorByName(String name) { Optional<Author> author = repo.findByNa...
153
1,382
<filename>sandbox/gmskmodem_psd_filter_compare_test.c<gh_stars>1000+ // compare GMSK psd with tx filter #include <stdio.h> #include <stdlib.h> #include <math.h> #include "liquid.h" #define OUTPUT_FILENAME "gmskmodem_psd_filter_compare_test.m" int main(int argc, char*argv[]) { // options unsigned int k = ...
1,480
940
<reponame>jvernet/macemu /* * macos_util.cpp - MacOS definitions/utility functions * * SheepShaver (C) <NAME> and <NAME> * * 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 vers...
4,251
17,703
<gh_stars>1000+ #pragma once #include <vector> #include "contrib/kafka/filters/network/source/serialization.h" /** * This header file provides serialization support for tagged fields structure added in 2.4. * https://github.com/apache/kafka/blob/2.8.1/clients/src/main/java/org/apache/kafka/common/protocol/types/Ta...
1,873
555
<gh_stars>100-1000 // mapper for SPMD CG solver #include "cgmapper.h" Logger log_cgmap("cgmapper"); // thanks to the wonders of ADL, this template has to be in either the Realm or std // namespace to be found... namespace std { template <typename T> std::ostream& operator<<(std::ostream& os, const std::vector<T...
3,504
354
/*------------------------------------------------------------------------- * drawElements Quality Program OpenGL ES 3.0 Module * ------------------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not ...
417
2,174
package ceui.lisa.view; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.RelativeLayout; import androidx.databinding.DataBindingUtil; import ceui.lisa.R; import ceui.lisa.databinding.GlareLayoutBinding; import ceui.l...
2,294
852
#include "DataFormats/L1TParticleFlow/interface/PFCandidate.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "CommonTools/UtilAlgos/interface/Merger.h" typedef Merger<std::vector<l1t::PFCandidate>> L1TPFCandMerger; DEFINE_FWK_MODULE(L1TPFCandMerger);
109
819
<gh_stars>100-1000 /* Copyright 2017 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable l...
1,843
301
<filename>src/Extension/ProcessElevationUtils.c<gh_stars>100-1000 #include "stdafx.h" #include "ProcessElevationUtils.h" #include "CommonUtils.h" #include "Externals.h" #include "IPC/FileMapping.h" #include "SciCall.h" #include "VersionHelper.h" #define COUNTOF(ar) (sizeof(ar)/sizeof(ar[0])) #define CSTRLEN(s) (COUNT...
4,935
2,486
<gh_stars>1000+ import logging import os import unittest from integration_tests.env_variable_names import ( SLACK_SDK_TEST_GRID_ORG_ADMIN_USER_TOKEN, SLACK_SDK_TEST_GRID_USER_ID_ADMIN_AUTH, ) from integration_tests.helpers import async_test from slack_sdk.web import WebClient from slack_sdk.web.async_client im...
1,177
623
<reponame>Cyberim/InjectableGenericCameraSystem<gh_stars>100-1000 //////////////////////////////////////////////////////////////////////////////////////////////////////// // Part of Injectable Generic Camera System // Copyright(c) 2017, <NAME> // All rights reserved. // https://github.com/FransBouma/InjectableGenericCa...
824
390
<filename>tests/test_fields.cpp /* Copyright 2013-present Barefoot Networks, 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 * * ...
3,144
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.nestedbeans.unmappable; public class RoofDto { private ColorDto color; private ExternalRoofType type; public Col...
230
468
// maintained by <NAME> - <EMAIL> // bug me if something is screwy or just fix it yerself #using <mscorlib.dll> using namespace System; using namespace System::Text; [assembly: System::Reflection::AssemblyVersion("1.0.2.0")]; [assembly: System::Reflection::AssemblyKeyFileAttribute("Corona.snk")]; #include "../src...
4,212
2,151
// Copyright (c) 2006-2008 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/message_loop/message_pump_default.h" #include "base/auto_reset.h" #include "base/logging.h" #include "base/threading/thread_restr...
1,279
5,422
<filename>core/controllers/suggestion.py<gh_stars>1000+ # coding: utf-8 # # Copyright 2018 The Oppia 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 # # htt...
10,367
460
<gh_stars>100-1000 /* Copyright (C) 2006 Apple Computer, Inc. 2006, 2008 <NAME> <<EMAIL>> This file is part of the WebKit project 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...
917
335
{ "word": "Off", "definitions": [ "Away from the place in question; to or at a distance.", "Away from the main route.", "So as to be removed or separated.", "Absent; away from work.", "Starting a journey or race; leaving.", "So as to bring to an end or be disconti...
257
302
<gh_stars>100-1000 //////////////////////////////////////////////////////////////////////////////////////////////////// // This file is part of CosmoScout VR // // and may be used under the terms of the MIT license. See the LICENSE file for details. /...
492
1,668
<gh_stars>1000+ # -*- coding: utf-8 -*- import uuid class ReportNode(object): """The basic report node. It is simple object which store name, count, parent and children.""" def __init__(self, name, count=0, parent=None, children=[], link=None, **kwargs): self.name = name s...
1,178
2,541
<reponame>chenxiangfang/Empire from __future__ import print_function from builtins import object from empire.server.common import helpers class Stager(object): def __init__(self, mainMenu, params=[]): self.info = { 'Name': 'AppleScript', 'Author': ['@harmj0y'], 'Des...
1,441
337
//statement Object o = (Object) null
10
5,169
{ "name": "ty_lou_1", "version": "0.1.0-rc.7", "summary": "A short description of ty_lou_1.", "homepage": "https://github.com/", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "jungong": "<EMAIL>" }, "source": { "http": "https://airtake-public-data-1254153901.cos.ap-shan...
371
1,037
/* * Copyright (c) 2013. wyouflf (<EMAIL>) * * 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...
987
348
{"nom":"Biederthal","circ":"3ème circonscription","dpt":"Haut-Rhin","inscrits":204,"abs":97,"votants":107,"blancs":10,"nuls":1,"exp":96,"res":[{"nuance":"LR","nom":"<NAME>","voix":48},{"nuance":"REM","nom":"M. <NAME>","voix":48}]}
94
809
<filename>src/drivers/flash/stm32/stm32_flash.c<gh_stars>100-1000 /** * @file * * @brief Flash driver for stm32 F3/F4/F7 * * @details F4 and F7 have sectors of different sizes. * For example, STM32F4-Discovery: * - 4 16Kb sectors * - 1 64Kb sector * - 7 128Kb sector * So we use only first 4...
2,397
647
#!/usr/bin/python2.4 # # Copyright 2007 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
8,003
668
/* * Copyright (c) 2017, 2018, Oracle and/or its affiliates. * * 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,...
5,111
678
<filename>iOSOpenDev/frameworks/iPodUI.framework/Headers/IUBookTransitionAlbumArtFace.h<gh_stars>100-1000 /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/iPodUI.framework/iPodUI */ #import <iPodUI/iPodUI-Structs.h> #import <iPodUI/IUFoldingTransitionFace.h> @clas...
379
343
// // ControlFloor.cpp // TonicDemo // // Created by <NAME> on 3/4/13. // #include "ControlFloor.h" namespace Tonic{ namespace Tonic_{ } }
71
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 ...
4,757
14,668
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROMECAST_CAST_CORE_RUNTIME_BROWSER_GRPC_WEBUI_CONTROLLER_FACTORY_H_ #define CHROMECAST_CAST_CORE_RUNTIME_BROWSER_GRPC_WEBUI_CONTROLLER_FACTORY_H...
743
366
<gh_stars>100-1000 /** * Copyright 2019 Airbnb. Licensed under Apache-2.0. See License in the project root for license * information. */ package com.airbnb.spinaltap.mysql.binlog_connector; import com.airbnb.spinaltap.common.config.TlsConfiguration; import com.airbnb.spinaltap.common.source.MysqlSourceState; import...
3,552
558
package skadistats.clarity.model; import com.google.protobuf.GeneratedMessage; import skadistats.clarity.io.FieldReader; import skadistats.clarity.io.bitstream.BitStream; import skadistats.clarity.processor.reader.PacketInstance; import skadistats.clarity.source.Source; import java.io.IOException; public interface E...
423
4,054
/* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.system.libffi; import javax.annotation.*; import java.nio.*; import org.lwjgl.*; import org.lwjgl.system.*; import static org.lwjgl.system.MemoryUtil.*; import sta...
4,730
834
<reponame>nathanawmk/fboss<filename>fboss/lib/firmware_storage/FbossFirmware.h<gh_stars>100-1000 // Copyright 2004-present Facebook. All Rights Reserved. #pragma once #include <folly/io/Cursor.h> namespace facebook::fboss { /* * FwStorageError * Error class for Firmware storage library */ class FbossFirmwareErro...
638
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. package org.chromium.chrome.browser.reengagement; import android.app.Activity; import android.app.PendingIntent; import android.content.Context; import a...
2,412
9,657
#!/usr/bin/env python3.6 import warnings import sys sys.path.append("..") from utils.utils_main import main_stem, get_parser, is_ood, process_continue_run, get_models, da_methods, ResultsContainer, ood_methods from utils.preprocess import data_loader from utils.utils import boolstr from distr import edic from arch imp...
8,179
504
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1996 -- All Rights Reserved PROJECT: Tools MODULE: Unix compatibility library FILE: ffs.c AUTHOR: <NAME>, May 24, 1996 REVISION HISTORY: Name Date Description ---- ---- ----------- JAG 5/24/96 Initial version. ...
1,677
417
//----------------------------------------------------------------------------- // Verve // Copyright (C) 2014 - <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 without restricti...
804
510
""" .. codeauthor:: <NAME> <<EMAIL>> """ import pytest import pytablewriter as ptw from ...._common import print_test_result from ....data import ( Data, headers, mix_header_list, mix_value_matrix, null_test_data_list, value_matrix, value_matrix_iter, value_matrix_with_none, ) try: ...
3,159
1,144
/* * #%L * de.metas.adempiere.adempiere.base * %% * Copyright (C) 2020 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 version 2 of the * License, or (at your opt...
1,078
2,125
from torchnlp.nn.attention import Attention from torchnlp.nn.lock_dropout import LockedDropout from torchnlp.nn.weight_drop import WeightDropGRU from torchnlp.nn.weight_drop import WeightDropLSTM from torchnlp.nn.weight_drop import WeightDropLinear from torchnlp.nn.weight_drop import WeightDrop from torchnlp.nn.cnn_enc...
183
368
<gh_stars>100-1000 /* Plugin-SDK (Grand Theft Auto Vice City) header file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #pragma once #include "PluginBase.h" class PLUGIN_API CTimer { public: SUPPORTED_10EN_11E...
688
1,557
struct empty_struct { }; struct empty_struct* my_struct; int main(int argc, char** argv) { my_struct = malloc(8); }
46
2,151
#!/usr/bin/env python # 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. import os import sys import unittest import PRESUBMIT sys.path.append(os.path.abspath(os.path.dirname(os.path.abspath(__file__)) ...
842
539
<reponame>glenfe/microsoft.bond package tests; @javax.annotation.Generated("gbc") public final class Enum implements org.bondlib.BondEnum<Enum> { public static final class Values { private Values() {} public static final int Value1 = 0; } private static final class EnumBondTypeImpl ext...
3,747
2,921
{ "name": "Ethenity", "website": "http://ethenity.airsite.co", "description": "Ethereum-based alternative asset for trading,developing innovative and alternative cryptocurrency solutions.", "explorer": "https://etherscan.io/token/0xf0bCc10ABA434B054CC6ec3C87A57491e9473BaC", "type": "ERC20", "sym...
186
2,073
<filename>Hadoop/apache-mahout-0.10.2-compile/math/src/test/java/org/apache/mahout/math/DiagonalMatrixTest.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 additional information regardi...
1,344
4,492
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import abc import typing from math import gcd from cryptography.hazmat.primitives import _serialization, hashes from cryptography.hazmat....
5,181
332
<filename>spring-xd-analytics-ml/src/test/java/org/springframework/xd/analytics/ml/DummyAnalytic.java /* * Copyright 2014 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...
398
521
/* Created by build_access.py */ /* returns string of length 0 if invalid arg */ const char * dwarf_get_elf_relocname_x86_64(unsigned long); #ifndef R_X86_64_NONE #define R_X86_64_NONE 0 #endif /* R_X86_64_NONE */ #ifndef R_X86_64_64 #define R_X86_64_64 1 #endif /* R_X86_64_64 */ #ifndef R_X86_64_PC32 #...
2,087
3,673
#pragma once #include <net/ip6/stateful_addr.hpp> #include <vector> namespace net::ip6 { class Addr_list { public: using List = std::vector<Stateful_addr>; ip6::Addr get_src(const ip6::Addr& dest) const noexcept { return (not dest.is_linklocal()) ? get_first_unicast() : get_first_linklo...
686
369
<filename>module-cellular/modem/mux/CellularMuxFrame.h // Copyright (c) 2017-2021, Mudita <NAME>. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include "CellularMuxTypes.h" #include <inttypes.h> #include <vector> #include <iostream> #include <log/log.hpp> #def...
5,823
1,587
<gh_stars>1000+ /** * */ package io.pratik.models; import java.util.ArrayList; import java.util.List; import io.pratik.AbstractProduct; import io.pratik.JavaAgent; /** * @author <NAME> * */ public class BrandedProduct extends AbstractProduct{ private String brandName; private Price mrp; public BrandedP...
273
1,444
package mage.cards.j; import java.util.UUID; import mage.abilities.effects.common.CreateTokenEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.game.permanent.token.JoinTheRanksSoldierToken; /** * * @author Loki */ public final class JoinTheRanks extends...
313
411
#ifndef LIB_INCLUDE_TICK_HAWKES_MODEL_MODEL_HAWKES_EXPKERN_LEASTSQ_SINGLE_H_ #define LIB_INCLUDE_TICK_HAWKES_MODEL_MODEL_HAWKES_EXPKERN_LEASTSQ_SINGLE_H_ // License: BSD 3 clause #include "tick/base/base.h" #include "tick/hawkes/model/base/model_hawkes_single.h" class ModelHawkesExpKernLeastSq; /** \class ModelHaw...
2,057
419
<gh_stars>100-1000 /* Scott's AKE Client/Server testbed See http://eprint.iacr.org/2002/164 On 64-bit processors compile as cl /O2 /GX /DZZNS=4 ake12bnx.cpp zzn12a.cpp zzn4.cpp ecn2.cpp zzn2.cpp big.cpp zzn.cpp ecn.cpp miracl.lib using COMBA build Using g++, compile as g++ -O2 -DZZNS=4 ake12...
8,656
768
/* This file is part of Quick Qanava library. Copyright (C) 2008-2015 <NAME> 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 version 3 of the License, or (at your opti...
695
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...
907
852
<reponame>malbouis/cmssw #ifndef SimDataFormatsValidationFormatsMaterialAccountingCalo_h #define SimDataFormatsValidationFormatsMaterialAccountingCalo_h #include <string> #include <vector> // struct to keep material accounting information along a track class MaterialAccountingCalo { public: MaterialAccountingCalo(v...
255
718
package com.dpizarro.libraries.autolabelui; import android.os.Bundle; import android.support.design.widget.TabLayout; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import android.support.v4.view.ViewPager; import android.suppo...
936
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...
739
4,140
/* * 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 ...
1,745
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. #include "fake_volume_reader.h" FakeVolumeReader::FakeVolumeReader() {} FakeVolumeReader::~FakeVolumeReader() {} int64_t FakeVolumeReader::Read(int64_t ...
256
4,391
<filename>packages/pyright-internal/src/tests/samples/dataclass5.py # This sample tests the handling of the @dataclass decorator # with a custom __init__. from dataclasses import dataclass from typing import Literal @dataclass(init=False) class A: x: int x_squared: int def __init__(self, x: int): ...
581
2,405
<gh_stars>1000+ /****************************************************************************** * The MIT License * * Copyright (c) 2011, 2012 LeafLabs, LLC. * Copyright (c) 2010 <NAME>. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentati...
1,947
794
package github.tornaco.android.thanos.dashboard; public interface OnHeaderClickListener { void onClick(); }
34
412
<gh_stars>100-1000 struct S { int x; }; int main(int argc, char *argv[]) { struct S s; if(argc > 3) s.x = 42; __CPROVER_assert(s.x == 42, "should fail"); }
84
348
<filename>docs/data/leg-t2/091/09103457.json {"nom":"<NAME>","circ":"3ème circonscription","dpt":"Essonne","inscrits":3255,"abs":1790,"votants":1465,"blancs":102,"nuls":36,"exp":1327,"res":[{"nuance":"REM","nom":"<NAME>","voix":805},{"nuance":"FI","nom":"Mme <NAME>","voix":522}]}
116
892
{ "schema_version": "1.2.0", "id": "GHSA-v7wq-m94m-fg3p", "modified": "2022-05-13T01:40:15Z", "published": "2022-05-13T01:40:15Z", "aliases": [ "CVE-2017-0565" ], "details": "An elevation of privilege vulnerability in the MediaTek thermal driver could enable a local malicious application to execute ar...
543
1,025
<gh_stars>1000+ package org.menacheri.jetclient.event; import org.menacheri.jetclient.app.Session; /** * In addition to handling events this handler will also have a reference to the * session. * * @author <NAME>. * */ public interface SessionEventHandler extends EventHandler { Session getSession(); void se...
103
1,760
<reponame>nocrizwang/USACO #include <bits/stdc++.h> // see C++ Tips & Tricks using namespace std; using ll = long long; using vi = vector<int>; #define pb push_back #define rsz resize #define all(x) begin(x), end(x) #define sz(x) (int)(x).size() using pi = pair<int,int>; #define f first #define s second #define mp m...
255
32,544
package com.baeldung.springbean.naming.component; public interface Animal { String name(); }
32
604
#include "pch.h" #include "PinyinSearch.hpp" #include "PinyinSearchPcre.hpp" #include "PinyinSearchEdit.hpp" #include <cassert> std::unique_ptr<PinyinSearch> make_pinyin_search(PinyinSearchMode mode, std::wstring& instance_name, HWND ipc_window) { if (mode == PinyinSearchMode::Auto) { try { re...
327
1,069
import functools import torch def assert_tensor_type(func): @functools.wraps(func) def wrapper(*args, **kwargs): if not isinstance(args[0].data, torch.Tensor): raise AttributeError('{} has no attribute {} for type {}'.format( args[0].__class__.__name__, func.__name__, arg...
797
852
<reponame>ckamtsikis/cmssw #include "DataFormats/HeavyIonEvent/interface/EvtPlane.h" using namespace reco; using namespace std; EvtPlane::EvtPlane(int epindx, int level, double planeA, double sumSin, double sumCos, double su...
505
713
from io import StringIO from typing import Dict import unittest import pandas as pd from data_manager.base_manager import DataParam from data_manager.time_series_manager import TimeSeriesDataManager from proto.aiengine.v1 import aiengine_pb2 def get_test_fields(fill_method) -> Dict[str, aiengine_pb2.FieldData]: ...
5,889
2,151
<reponame>zipated/src // Copyright (c) 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 NET_THIRD_PARTY_QUIC_PLATFORM_IMPL_QUIC_TEST_OUTPUT_IMPL_H_ #define NET_THIRD_PARTY_QUIC_PLATFORM_IMPL_QUIC_TEST_OUTPUT_...
232
450
<filename>tools/bin/pythonSrc/pychecker-0.8.18/pychecker2/ReachableChecks.py from pychecker2.Check import Check from pychecker2.util import BaseVisitor from pychecker2.Warning import Warning from compiler import ast, walk class ReachableCheck(Check): unreachable = Warning('Report unreachable code', 'Line is unre...
1,950
1,738
<reponame>jeikabu/lumberyard /* * 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 provid...
1,605
456
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2004-2020 <NAME> // All rights reserved. #include <djvUI/Enum.h> #include <algorithm> #include <array> using namespace djv::Core; namespace djv { namespace UI { float getImageRotate(ImageRotate value) { const float values[...
6,450
735
<reponame>simpleapps-eu/google-api-objectivec-client-for-rest<filename>Source/GeneratedServices/MyBusinessPlaceActions/GTLRMyBusinessPlaceActionsObjects.h // NOTE: This file was generated by the ServiceGenerator. // ---------------------------------------------------------------------------- // API: // My Business P...
4,165
2,366
/* * ============================================================================= * * Copyright (c) 2011-2018, The THYMELEAF team (http://www.thymeleaf.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
706
1,047
<gh_stars>1000+ #pragma once #include <string> namespace ms { class NetworkUtils { public: static bool IsInLocalNetwork(const std::string& hostAndPort); }; } // namespace ms
65
477
from .health import Health from .predict import MultipleHouseDataInputs, PredictionResults
20
4,412
<reponame>zhanggc0729/sourceofcglib<filename>cglib-sample/src/main/java/net/sf/cglib/samples/KeySample.java<gh_stars>1000+ package net.sf.cglib.samples; import net.sf.cglib.core.KeyFactory; public class KeySample { private interface MyFactory { public Object newInstance(int a, char[] b, String d); } ...
317
389
<filename>gosu-lab/src/main/java/editor/tabpane/TabContainer.java package editor.tabpane; import editor.IContextMenuHandler; import editor.Scheme; import editor.util.EditorUtilities; import editor.util.IDisposable; import editor.util.ILabel; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swi...
4,471
892
{ "schema_version": "1.2.0", "id": "GHSA-4pgp-x4g6-96cg", "modified": "2022-05-13T01:01:12Z", "published": "2022-05-13T01:01:12Z", "aliases": [ "CVE-2017-2916" ], "details": "An exploitable vulnerability exists in the /api/CONFIG/restore functionality of Circle with Disney running firmware 2.0.1. Spec...
442
531
/** * Copyright © 2019 同程艺龙 (<EMAIL>) * * 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 agre...
729