max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
940
<gh_stars>100-1000 /* * extfs_unix.cpp - MacOS file system for access native file system access, Unix specific stuff * * Basilisk II (C) 1997-2008 <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...
4,966
453
/* Copyright (c) 2014 Authors * * Contributor <NAME> <<EMAIL>> * Contributor <NAME> <<EMAIL>> * * The authors hereby grant permission to use, copy, modify, distribute, * and license this software and its documentation for any purpose, provided * that existing copyright notices are retained in all copies and that...
5,321
719
<reponame>Jamling/SmartQQ4IntelliJ package cn.ieclipse.smartim.settings; import com.intellij.openapi.components.PersistentStateComponent; import com.intellij.openapi.components.ServiceManager; import com.intellij.openapi.components.State; import com.intellij.openapi.components.Storage; import org.jetbrains.annotations...
1,578
322
<reponame>mindThomas/acados #include "acados_cpp/ocp.hpp" #include <algorithm> #include "acados/utils/types.h" #include "acados_cpp/ocp_bounds.hpp" namespace acados { using std::map; using std::string; using std::vector; void ocp::squeeze_dimensions(map<string, vector<vector<double>>> bounds) { // Get bound in...
1,009
2,151
<filename>extensions/browser/extension_prefs_observer.h // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef EXTENSIONS_BROWSER_EXTENSION_PREFS_OBSERVER_H_ #define EXTENSIONS_BROWSER_EXTENSION_PREFS_...
669
348
/* * Copyright 2010-2021 Australian Signals Directorate * * 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 appl...
2,167
372
<reponame>arithmetic1728/google-api-java-client-services<gh_stars>100-1000 /* * 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,211
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-wc8x-f5rv-3653", "modified": "2022-04-01T00:00:49Z", "published": "2022-03-27T00:00:38Z", "aliases": [ "CVE-2022-22995" ], "details": "The combination of primitives offered by SMB and AFP in their default configu...
455
373
<filename>src/main/java8/net/finmath/functions/JarqueBeraTest.java /* * (c) Copyright <NAME>, Germany. Contact: <EMAIL>. * * Created on 14.02.2015 */ package net.finmath.functions; import net.finmath.stochastic.RandomVariable; /** * Class providing the test statistic of the Jarque-Bera test. * * The test stat...
495
2,180
package com.xiaojukeji.kafka.manager.common.entity.pojo; import java.util.Date; /** * @author zengqiao * @date 20/4/21 */ public class ClusterTaskDO { private Long id; private String uuid; private Long clusterId; private String taskType; private String kafkaPackage; private String kafk...
2,106
432
/* * Copyright (c) 1983, 1993, 1998 * The Regents of the University of California. 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 ...
2,235
390
<reponame>JLLeitschuh/blueflood /* * Copyright 2014 Rackspace * * 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 * * Un...
1,370
622
<gh_stars>100-1000 package util; import java.io.*; public class ObjectSink { private File file; private ObjectOutputStream outstream; public ObjectSink(String filename) { try { file = new File(filename); outstream = new ObjectOutputStream(new FileOutputStream(file)); ...
382
325
try: import unittest2 as unittest except: import unittest import numpy as np from pyrr import euler class test_euler(unittest.TestCase): def test_import(self): import pyrr pyrr.euler from pyrr import euler def test_create(self): self.assertTrue(np.array_equal(euler.cre...
301
543
<filename>core/src/main/java/com/riiablo/table/table/ItemStatCostTable.java<gh_stars>100-1000 // automatically generated by TableCodeGenerator, do not modify package com.riiablo.table.table; import javax.annotation.Generated; import com.riiablo.logger.LogManager; import com.riiablo.logger.Logger; import com.riiablo.t...
1,067
348
{"nom":"Banvillars","circ":"2ème circonscription","dpt":"Territoire de Belfort","inscrits":220,"abs":83,"votants":137,"blancs":16,"nuls":6,"exp":115,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":59},{"nuance":"REM","nom":"<NAME>","voix":56}]}
95
348
<gh_stars>100-1000 {"nom":"Romagne-sous-Montfaucon","circ":"2ème circonscription","dpt":"Meuse","inscrits":128,"abs":84,"votants":44,"blancs":4,"nuls":0,"exp":40,"res":[{"nuance":"FN","nom":"<NAME>","voix":26},{"nuance":"REM","nom":"<NAME>","voix":14}]}
104
775
<gh_stars>100-1000 { "#acks": { "current": { "number": "5", "spec": "CSS Rhythmic Sizing 1", "text": "Acknowledgments", "url": "https://drafts.csswg.org/css-rhythm-1/#acks" }, "snapshot": { "number": "5", "spec": "CSS Rhythmic Sizing 1", "text": "Acknowledgments",...
2,276
355
<filename>component/python/analysis/line_profiler/bootstrap.py #!/usr/bin/env python3 import subprocess import os import sys import glob import json import line_profiler as profiler import linecache import inspect import yaml REPO_PATH = 'git-repo' def git_clone(url): r = subprocess.run(['git', 'clone', url, RE...
2,826
617
<gh_stars>100-1000 # -*- coding: utf-8 -*- from .generic import Manager class BackupsManager(Manager): def get(self): """ Get backups. """ params = {"token": self.token} return self.api._get("backups/get", params=params)
117
1,647
<gh_stars>1000+ #ifndef PYTHONIC_INCLUDE_NUMPY_RANDOM_PARETO_HPP #define PYTHONIC_INCLUDE_NUMPY_RANDOM_PARETO_HPP #include "pythonic/include/types/NoneType.hpp" #include "pythonic/include/types/ndarray.hpp" #include "pythonic/include/types/tuple.hpp" #include "pythonic/include/utils/functor.hpp" #include <math.h> PYT...
314
6,717
// $Id: ClSymbolicWeight.cc,v 1.19 1999/09/06 19:27:43 gjb Exp $ // // Cassowary Incremental Constraint Solver // Original Smalltalk Implementation by <NAME> // This C++ Implementation by <NAME>, <<EMAIL>> // http://www.cs.washington.edu/homes/gjb // (C) 1998, 1999 <NAME> and <NAME> // See ../LICENSE for legal details ...
1,219
1,178
/* * Copyright 2020 Makani Technologies LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
1,094
14,668
// 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 "ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.h" namespace ui { NeuralStylusPalmDetectionFilterModelConfig:: ...
213
32,544
<filename>spring-boot-modules/spring-boot-libraries/src/main/java/com/baeldung/ratelimiting/controller/AreaCalculationController.java package com.baeldung.ratelimiting.controller; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.P...
452
1,886
def f(): try: a finally: return 42 # EXPECTED: [ ..., CODE_START("f"), LOAD_CONST(None), SETUP_FINALLY(Block(1)), ..., POP_BLOCK(0), BEGIN_FINALLY(0), POP_FINALLY(0), POP_TOP(0), LOAD_CONST(42), RETURN_VALUE(0), END_FINALLY(0), POP_TOP(0), ]
183
372
<reponame>mdbloice/systemds<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 information # regarding copyright owners...
460
1,359
// // FontsViewController.h // iOS7Sampler // // Created by shuichi on 10/17/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface FontsViewController : UIViewController @end
82
1,189
<filename>opentracing-shim/src/test/java/io/opentelemetry/opentracingshim/testbed/listenerperrequest/ResponseListener.java /* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.opentracingshim.testbed.listenerperrequest; import io.opentracing.Span; /** Response...
204
1,347
from decimal import Decimal import pytest from vyper.compiler import compile_code from vyper.exceptions import ArgumentException, CallViolation pytestmark = pytest.mark.usefixtures("memory_mocker") def test_selfcall_code(get_contract_with_gas_estimation): selfcall_code = """ @internal def _foo() -> int128: ...
4,978
471
<reponame>endison1986/forest /* * The MIT License (MIT) * * Copyright (c) 2016 <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 restriction, including without limitatio...
4,730
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 ...
10,766
4,054
<reponame>Thendont/lwjgl /* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.egl; /** * Native bindings to the <a target="_blank" href="https://www.khronos.org/registry/EGL/extensions/NV/EGL_NV_stream_dma.txt">NV_stre...
503
836
/* * 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 * * Unless required by applic...
1,011
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-93cc-m3wp-rrvv", "modified": "2022-05-02T00:02:08Z", "published": "2022-05-02T00:02:08Z", "aliases": [ "CVE-2008-3630" ], "details": "mDNSResponder in Apple Bonjour for Windows before 1.0.5, when an application uses the Bonjour API for unicas...
623
4,262
/* * 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,080
320
<reponame>0x20Man/Watcher3 """HTTP workers pool."""
21
14,668
<reponame>dark-richie/crashpad<gh_stars>1000+ #!/usr/bin/env python # Copyright 2017 The Crashpad 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:/...
518
310
#ifndef __C_DIRECTX11_TEXTURECUBE_H_INCLUDED__ #define __C_DIRECTX11_TEXTURECUBE_H_INCLUDED__ #include "IrrCompileConfig.h" #ifdef _IRR_WINDOWS_ #ifdef _IRR_COMPILE_WITH_DIRECT3D_11_ #include "ITexture.h" #include "IImage.h" namespace irr { namespace video { class CD3D11Driver; class CD3D11TextureCube : public ...
993
2,293
from android2 import API import socket from json import loads API(debug=True) ACTION="android.bluetooth.adapter.action.SCAN_MODE_CHANGED" EXTRA="android.bluetooth.adapter.extra.SCAN_MODE" print API().eventRegisterForBroadcast(ACTION, False) print API().eventGetBrodcastCategories() def parseEvent(line): out = load...
256
1,018
# SPDX-License-Identifier: MIT # Copyright (C) 2018-present iced project and contributors # ⚠️This file was generated by GENERATOR!🦹‍♂️ # pylint: disable=invalid-name # pylint: disable=line-too-long # pylint: disable=too-many-lines """ Mnemonic condition code selector (eg. ``JNE`` / ``JNZ``) """ import typing if t...
238
6,433
<gh_stars>1000+ #include <stdlib.h> #include <types.h> int abs(int num) { if(num < 0) return -num; else return num; }
63
879
<reponame>qianfei11/zstack package org.zstack.storage.primary; import org.zstack.header.message.MessageReply; /** * Created by xing5 on 2016/6/26. */ public class ChangePrimaryStorageStatusReply extends MessageReply { }
73
448
// // AbrBufferRefererData.cpp // apsara_player // // Created by shiping.csp on 2018/11/1. // #include "AbrBufferRefererData.h" #include "media_player_api.h" #include "native_cicada_player_def.h" #include <cstdlib> AbrBufferRefererData::AbrBufferRefererData(void *handle) { mHandle = handle; } AbrBufferReferer...
547
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/eval/eval/fast_value.h> #include <vespa/eval/eval/simple_value.h> #include <vespa/eval/instruction/sparse_merge_function.h> #include <vespa/eval/eval/test/eval_fixture.h> #include <vespa/eval/eval/t...
1,492
321
<filename>apis/api-core/api-core-common/src/main/java/org/hoteia/qalingo/core/domain/AbstractPaymentGateway.java /** * Most of the code in the Qalingo project is copyrighted Hoteia and licensed * under the Apache License Version 2.0 (release version 0.8.0) * http://www.apache.org/licenses/LICENSE-2.0 * * ...
3,585
2,482
package com.argusapm.android.core.job.webview; import android.database.Cursor; import com.argusapm.android.api.ApmTask; import com.argusapm.android.core.IInfo; import com.argusapm.android.core.Manager; import com.argusapm.android.core.storage.TableStorage; import com.argusapm.android.utils.IOStreamUtils; import com.a...
1,196
435
<reponame>Accumulo-S3/datawave package datawave.query.jexl.visitors; import datawave.data.type.Type; import datawave.query.config.ShardQueryConfiguration; import datawave.query.exceptions.DatawaveFatalQueryException; import datawave.query.exceptions.EmptyUnfieldedTermExpansionException; import datawave.query.jexl.Jexl...
3,596
4,283
/* * Copyright (c) 2008-2021, Hazelcast, 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 ...
1,862
342
/* * Copyright 2013 Cloudera 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 agreed to ...
5,223
1,444
<gh_stars>1000+ package mage.cards.n; import java.util.UUID; import mage.abilities.effects.common.CounterTargetEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.filter.StaticFilters; import mage.target.TargetSpell; /** * @author <EMAIL> */ public final...
300
782
/* * Copyright (c) 2020, <NAME>. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.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 obtain a copy of the License at * * http://www.apache.org...
645
317
<reponame>realcredit1/drafter // // BlueprintSourcemap.h // snowcrash // // Created by <NAME> on 26/8/14. // Copyright (c) 2014 Apiary Inc. All rights reserved. // #ifndef SNOWCRASH_BLUEPRINT_SOURCEMAP_H #define SNOWCRASH_BLUEPRINT_SOURCEMAP_H #include "Blueprint.h" #include "MSONSourcemap.h" /** * API Blueprin...
3,281
5,926
<filename>www/tests/test_descriptors.py # -*- coding: utf-8 -*- class Descriptor (object): def __init__ (self): self.value = None def __get__ (self, obj, cls = None): return (obj, cls, self.value) def __set__ (self, obj, value): self.value = value class Obj ...
264
892
<filename>advisories/unreviewed/2022/05/GHSA-9c86-vmgf-xhff/GHSA-9c86-vmgf-xhff.json { "schema_version": "1.2.0", "id": "GHSA-9c86-vmgf-xhff", "modified": "2022-05-02T03:16:43Z", "published": "2022-05-02T03:16:43Z", "aliases": [ "CVE-2009-0592" ], "details": "Multiple directory traversal vulnerabiliti...
550
4,224
#pragma once #include "math.hpp" namespace matrix { template<typename Type, size_t M, size_t N> int integrate_rk4( Vector<Type, M> (*f)(Type, const Matrix<Type, M, 1> &x, const Matrix<Type, N, 1> &u), const Matrix<Type, M, 1> &y0, const Matrix<Type, N, 1> &u, Type t0, Type tf, Type h0, Matrix<Type, M, 1> &y1 ...
446
678
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "WCPayBaseViewController.h" @class UIButton, UIImageView, UILabel, UIView; @interface WCPaySelectReceiveOrPayViewController : WCPayBaseViewController { id <WCPaySelectReceiv...
759
6,989
#pragma once #include <util/generic/vector.h> #include <catboost/private/libs/options/enums.h> namespace NCatboostCuda { class IStepEstimator { public: virtual ~IStepEstimator() { } virtual bool IsSatisfied(double step, double nextFuncValue, ...
404
422
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import unittest import epitran def assemble_ipa(xs): return ''.join([x[3] for x in xs]) class TestSpanish(unittest.TestCase): def setUp(self): self.epi = epitran.Epitran(u'spa-Latn') def _derivation(self, orth, co...
329
3,645
/* * VC-1 and WMV3 decoder * Copyright (c) 2011 <NAME> * Copyright (c) 2006-2007 <NAME> * Partly based on vc9.c (c) 2005 Anonymous, <NAME>, <NAME> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License...
9,625
895
// slang-ast-val.h #pragma once #include "slang-ast-base.h" namespace Slang { // Syntax class definitions for compile-time values. // A compile-time integer (may not have a specific concrete value) class IntVal : public Val { SLANG_ABSTRACT_AST_CLASS(IntVal) }; // Trivial case of a value that is just a const...
2,450
608
#import <Foundation/Foundation.h> #import "NMBExceptionCapture.h" #import "NMBStringify.h" #import "DSL.h" #if TARGET_OS_OSX || TARGET_OS_IOS #import "CwlMachBadInstructionHandler.h" #import "CwlCatchException.h" #endif FOUNDATION_EXPORT double NimbleVersionNumber; FOUNDATION_EXPORT const unsigned char Nimble...
127
12,278
// Copyright <NAME> 2018 - 2019. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // https://www.boost.org/LICENSE_1_0.txt) #include <boost/math/differentiation/autodiff.hpp> #include <iostream> #include <stdexcept> using names...
1,346
3,670
<filename>spinoffs/oryx/oryx/experimental/nn/function.py # Copyright 2020 The TensorFlow Probability 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/lic...
581
822
<reponame>demokillers/HappyPlayer5 package com.zlm.hp.libs.download.thread; import android.content.Context; import com.zlm.hp.application.HPApplication; import com.zlm.hp.libs.download.DownloadTask; import com.zlm.hp.libs.download.interfaces.IDownloadTaskThreadEven; import com.zlm.hp.libs.utils.LoggerUtil; import com...
4,643
596
<filename>src/test/java/com/ryantenney/metrics/spring/RegistryTest.java /** * Copyright (C) 2012 <NAME> (<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...
875
903
#include "../../src/corelib/kernel/qabstractitemmodel.h"
22
2,236
//Authored by : suin8 //Co-authored by : - //Link : http://boj.kr/d42746a577ac40cf8921ca94bbed14d6 import java.util.*; import java.io.*; public class Main { static int[] num = new int[100010]; static int[] sum = new int[100010]; public static void main(String[] args) { FastReader rd = new FastRea...
1,008
892
{ "schema_version": "1.2.0", "id": "GHSA-g8gg-vr6j-4v4c", "modified": "2022-05-01T18:02:44Z", "published": "2022-05-01T18:02:44Z", "aliases": [ "CVE-2007-2352" ], "details": "Multiple format string vulnerabilities in AFFLIB 2.2.6 allow remote attackers to execute arbitrary code via certain command lin...
546
305
<filename>pc/sctp_utils.h /* * Copyright 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file P...
585
1,144
<reponame>rlourette/TI_SDK_u-boot-2019.01<filename>u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/arch/arm/mach-at91/include/mach/atmel_usba_udc.h /* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2005-2013 Atmel Corporation * <NAME> <<EMAIL>> */ #ifndef __ATMEL_USBA_UDC_H__ #define __ATMEL_USBA_UDC...
926
1,178
<reponame>leozz37/makani<filename>avionics/network/network_routes_test.py # Copyright 2020 Makani Technologies LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
901
7,892
<reponame>joshrose/audacity<filename>lib-src/libnyquist/nyquist/tran/abs.h sound_type snd_make_abs(sound_type input); sound_type snd_abs(sound_type input); /* LISP: (snd-abs SOUND) */
80
1,144
<gh_stars>1000+ /* * #%L * de.metas.manufacturing * %% * 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 you...
2,566
868
/* * 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 n...
1,360
1,080
<reponame>congnt95/neutron # Copyright 2016 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
966
3,670
<reponame>jakee417/probability-1 # Copyright 2018 The TensorFlow Probability 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 # # Un...
1,112
1,517
/* * Copyright 2015, Yahoo Inc. * Copyrights licensed under the Apache 2.0 License. * See the accompanying LICENSE file for terms. */ package com.yahoo.squidb.sql; import com.yahoo.squidb.data.ViewModel; /** * A SQLite View. Views are read-only tables composed from a pre-defined SELECT statement. */ public clas...
1,226
8,498
<gh_stars>1000+ package com.crossoverjie.cim.server.api; import com.crossoverjie.cim.server.api.vo.req.SendMsgReqVO; /** * Function: * * @author crossoverJie * Date: 2020-04-25 14:23 * @since JDK 1.8 */ public interface ServerApi { /** * Push msg to client * @param sendMsgReqVO * @return ...
173
356
#!/usr/bin/env python3 # # BEGIN LICENSE # # # Copyright 2022 CERT/CC # # 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 conditio...
2,168
2,151
// 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 "chrome/browser/media/router/providers/cast/cast_media_route_provider_metrics.h" #include "base/metrics/histogram_macros.h" #include "base/time/...
254
9,228
#!/usr/bin/env python3 # 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. """ Utilities for registering and loading model wrappers for safety unit and integration tests. """ import projects.safe...
516
3,212
/* * 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 ...
471
3,428
{"id":"00974","group":"easy-ham-1","checksum":{"type":"MD5","value":"e075ae7ee23cfacb24d0d1b59ae5af83"},"text":"From <EMAIL> Fri Sep 6 11:36:04 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 65...
1,647
2,098
#include "gtest/gtest.h" #include "value.h" class ValueTest : public ::testing::Test {}; TEST_F(ValueTest, testBasic) { RSValue *v = RS_NumVal(3); ASSERT_EQ(3, v->numval); ASSERT_EQ(RSValue_Number, v->t); ASSERT_EQ(1, v->refcount); RSValue_Decref(v); v = RS_NullVal(); ASSERT_EQ(RSValue_Null, v->t); ...
1,169
38,047
<reponame>hpdic/redis<filename>tests/modules/stream.c<gh_stars>1000+ #include "redismodule.h" #include <string.h> #include <strings.h> #include <assert.h> #include <unistd.h> #include <errno.h> /* Command which adds a stream entry with automatic ID, like XADD *. * * Syntax: STREAM.ADD key field1 value1 [ field2 val...
4,305
884
<reponame>slyoldfox/blaze-persistence /* * Copyright 2014 - 2021 Blazebit. * * 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...
567
353
CSEXPORT EFunctionFlags CSCONV Export_UFunction_Get_FunctionFlags(UFunction* instance) { return instance->FunctionFlags; } CSEXPORT void CSCONV Export_UFunction_Set_FunctionFlags(UFunction* instance, EFunctionFlags value) { instance->FunctionFlags = value; } CSEXPORT uint8 CSCONV Export_UFunction_Get_NumParms(UFunc...
1,656
370
<filename>apps/dml/src/dml/aux_data.hpp #ifndef AUX_DATA_H_ #define AUX_DATA_H_ struct pair { int x; int y; }; #endif
62
5,169
<filename>Specs/SOAPEngine/1.27/SOAPEngine.podspec.json<gh_stars>1000+ { "name": "SOAPEngine", "version": "1.27", "summary": "This generic SOAP client allows you to access web services using a your iOS and Mac OS X app.", "license": { "type": "Shareware", "file": "LICENSE.txt" }, "authors": { "<...
668
2,071
<reponame>Kabimon/DataSphereStudio /* * Copyright 2019 WeBank * 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...
808
1,936
<filename>map-structure/vi-map/include/vi-map/loop-constraint.h<gh_stars>1000+ #ifndef VI_MAP_LOOP_CONSTRAINT_H_ #define VI_MAP_LOOP_CONSTRAINT_H_ #include <vector> #include <aslam/frames/visual-nframe.h> #include "vi-map/landmark.h" #include "vi-map/unique-id.h" #include "vi-map/vertex.h" namespace vi_map { struct ...
1,781
1,013
"""! @brief Examples of usage and demonstration of abilities of Hierarchical Sync (HSyncNet) algorithm in cluster analysis. @authors <NAME> (<EMAIL>) @date 2014-2020 @copyright BSD-3-Clause """ from pyclustering.utils import read_sample, draw_clusters, timedcall; from pyclustering.samples.definitions i...
1,858
513
<reponame>ssokjin/Interview-Bit vector<int> x({0, 1, -1, 0}); vector<int> y({1, 0, 0, -1}); // Check if the coordinates are safe to visit bool isSafe(int a, int b, int c, int d){ if(a >= 0 && a < c && b >= 0 && b < d)return true; return false; } void explore(bool& pivot, int val, int a, int b, vector<string...
654
945
<reponame>holtenko/iotdb /* * 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...
735
4,901
<reponame>aiw-google/openweave-core<filename>third_party/android/platform-libcore/android-platform-libcore/luni/src/main/java/org/apache/xpath/axes/PredicatedNodeTest.java<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * di...
7,020
892
{ "schema_version": "1.2.0", "id": "GHSA-jr8m-x5pc-vrvr", "modified": "2022-05-13T01:35:10Z", "published": "2022-05-13T01:35:10Z", "aliases": [ "CVE-2018-0436" ], "details": "A vulnerability in Cisco Webex Teams, formerly Cisco Spark, could allow an authenticated, remote attacker to view and modify da...
539
709
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2021 <NAME> // Copyright (c) 2016-2021 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # pragma once # include "Common.hpp" # include "Fo...
512
5,279
/* * 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 ...
902
771
#ifndef SEGMATCH_SEGMATCH_HPP_ #define SEGMATCH_SEGMATCH_HPP_ #include <cmath> #include <queue> #include <string> #include <laser_slam/common.hpp> #include <pcl/point_types.h> #include <pcl/point_cloud.h> #include "segmatch/common.hpp" #include "segmatch/descriptors/descriptors.hpp" #include "segmatch/database.hpp" ...
3,423