max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,345 | <reponame>MaksHess/napari
import pytest
from napari._qt.widgets.qt_size_preview import (
QtFontSizePreview,
QtSizeSliderPreviewWidget,
)
@pytest.fixture
def preview_widget(qtbot):
def _preview_widget(**kwargs):
widget = QtFontSizePreview(**kwargs)
widget.show()
qtbot.addWidget(wid... | 1,771 |
1,467 | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_AMETSUCHI_COMMIT_RESULT_HPP
#define IROHA_AMETSUCHI_COMMIT_RESULT_HPP
#include <memory>
#include <string>
#include "ametsuchi/ledger_state.hpp"
#include "common/result.hpp"
namespace iroha {
namespac... | 245 |
2,151 | /* Copyright (c) 2002-2008 Sun Microsystems, Inc. All rights reserved
*
* This program is distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
*/
package org.pantsbuild.jmake;
/**
* Basic operations for writing to a byte array representi... | 1,272 |
2,542 | <filename>src/prod/src/Store/ScopedActiveBackupState.cpp
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// -----------------------------------... | 1,005 |
777 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/login/auth/extended_authenticator.h"
#include "chromeos/login/auth/extended_authenticator_impl.h"
namespace chromeos {
// static
sco... | 240 |
1,144 | <filename>backend/de.metas.edi/src/main/java/de/metas/edi/api/impl/DesadvBL.java
package de.metas.edi.api.impl;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableListMultimap;
import com.google.common.collect.Multimaps;
imp... | 16,035 |
7,830 | <reponame>dmitrybaidaev/coturn
/*
* Copyright (C) 2011, 2012, 2013 Citrix Systems
* Copyright (C) 2014 <NAME>.
*
* 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 ... | 1,226 |
614 | <filename>sample/src/main/java/com/androidwind/androidquick/demo/base/BaseFragment.java
package com.androidwind.androidquick.demo.base;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import com.androidwind.androidquick.demo.base.mvp.BaseContract;
import com.androidwind.androi... | 807 |
637 | import unittest
class TestFoo(unittest.TestCase):
x = 1
def test_ohnoez(self):
x = self
# fmt: off
assert x.x != (self
).x
# fmt: on
| 114 |
441 | <filename>beetl-core/src/main/java/org/beetl/core/statement/IncDecExpression.java
/*
[The "BSD license"]
Copyright (c) 2011-2014 <NAME> (李家智)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
... | 948 |
365 | <filename>super-boot-user/src/main/java/org/superboot/dao/jpa/EmployeesDutiesDAO.java<gh_stars>100-1000
package org.superboot.dao.jpa;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.stereotype.Repository;
import org.superboot.base.BaseJpaDAO;
import org.superboot.entity.jpa.Superbo... | 360 |
2,591 | <filename>liquibase-core/src/main/java/liquibase/hub/model/Project.java
package liquibase.hub.model;
import java.util.Date;
import java.util.UUID;
public class Project implements HubModel {
private UUID id;
private String name;
private Date createDate;
@Override
public UUID getId() {
ret... | 363 |
14,668 | <filename>third_party/blink/renderer/core/dom/attr_test.cc
// Copyright 2015 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/dom/attr.h"
#include "testing/gmock/include/gmock/gm... | 710 |
471 | <gh_stars>100-1000
package com.liulishuo.engzo.share;
import android.support.test.uiautomator.By;
import android.support.test.uiautomator.SearchCondition;
import android.support.test.uiautomator.UiObject2;
import android.support.test.uiautomator.UiObjectNotFoundException;
import com.liulishuo.engzo.BaseTestCase;
imp... | 522 |
2,674 | // Copyright (c) 2018 Microsoft Corporation
// Licensed under the MIT license.
// Author: <NAME> <<EMAIL>>
#ifndef ZONED_BRIDGE_C_FUNCTIONS_HPP
#define ZONED_BRIDGE_C_FUNCTIONS_HPP
#include "ebm_native.h"
#include "bridge_c.h"
#include "zones.h"
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
INTERNAL_IMPORT_... | 294 |
675 | #ifndef CLASS_NCINE_TEXTURELOADERRAW
#define CLASS_NCINE_TEXTURELOADERRAW
#include "ITextureLoader.h"
namespace ncine {
/// A texture loader used to specify a raw format when loading texels
class TextureLoaderRaw : public ITextureLoader
{
public:
TextureLoaderRaw(int width, int height, int mipMapCount, GLenum int... | 111 |
1,615 | /**
* Created by MomoLuaNative.
* Copyright (c) 2019, Momo Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
package com.immomo.luanative.hotreload.client.imp... | 1,132 |
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 ... | 1,313 |
30,023 | {
"state": {
"wolflink__state": {
"1_x_warmwasser": "1 x DHW",
"abgasklappe": "Amortecedor de g\u00e1s de combust\u00e3o",
"absenkbetrieb": "Modo de recuo",
"absenkstop": "Parada de recuo",
"aktiviert": "Ativado",
"antilegionellenfunkti... | 2,435 |
360 | <filename>src/include/postgres.h
/* -------------------------------------------------------------------------
*
* postgres.h
* Primary include file for PostgreSQL server .c files
*
* This should be the first file included by PostgreSQL backend modules.
* Client-side code should include postgres_fe.h instead.
*... | 11,246 |
538 | package com.wangjie.androidbucket.services.network.interceptor;
import com.wangjie.androidbucket.services.network.HippoRequest;
import com.wangjie.androidbucket.services.network.exception.HippoException;
/**
* @author <NAME>
* @version V1.0
* @Description
* @Createdate 14-9-24 18:08
*/
public interface Intercept... | 145 |
852 | ## --
## Start with pre-defined skeleton process
## --
from PhysicsTools.PatAlgos.patTemplate_cfg import *
## ... and modify it according to the needs:
process.source.fileNames = [ '/store/data/Run2011A/SingleMu/AOD/PromptReco-v4/000/166/841/06ADBD4E-0E96-E011-A2FE-003048F1C836.root'
, '/stor... | 4,423 |
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 ... | 6,457 |
879 | package org.zstack.header.identity;
import org.zstack.header.search.APISearchReply;
public class APISearchUserReply extends APISearchReply {
public static APISearchUserReply __example__() {
APISearchUserReply reply = new APISearchUserReply();
return reply;
}
}
| 104 |
368 | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... | 984 |
2,406 | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <ngraph/opsets/opset6.hpp>
#include <node_context.hpp>
namespace ngraph {
namespace frontend {
namespace pdpd {
namespace op {
NamedOutputs softmax(const NodeContext& node) {
auto data = node.get_ng_input("X");
aut... | 308 |
3,151 | package com.rarchives.ripme.ripper.rippers;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.rarchives.ripme.ripper.AbstractHTMLRipper;
import org.jsoup.... | 3,381 |
3,631 | <filename>kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/SimpleType.java
/*
* Copyright 2019 Red Hat, Inc. 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 a... | 447 |
343 | /* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.... | 1,195 |
2,209 | #!/usr/bin/env python
# Copyright 2016 <NAME>. 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
from __future__ import print... | 7,457 |
1,212 |
// raw filename "\".txt:
// Content-Disposition: form-data; name="file"; filename="\"\\".txt"
static int parse_content_disposition(strarg_t const x, str_t **const name, str_t **const filename) {
sscanf(x, "");
}
static size_t scan_quoted(char const *const v) {
size_t i = 0;
if('"' != v[i++]) return 0;
f... | 954 |
1,025 | <gh_stars>1000+
package com.baidu.unbiz.fluentvalidator.demo.service.impl;
import java.util.List;
import javax.annotation.Resource;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.stereotype.Service;
import com.baidu.unbiz.fluentvalidator.annotation.... | 549 |
2,498 | # Copyright 2020 The ChubaoFS 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 agreed to in... | 2,451 |
3,008 | /// @ref core
/// @file glm/common.hpp
#pragma once
#include "detail/func_common.hpp"
| 37 |
2,989 | <reponame>tb-soft/databus
package com.linkedin.databus2.core.filter;
/*
*
* Copyright 2013 LinkedIn Corp. 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... | 1,065 |
652 | <reponame>yangguanghei/iOS-Component-Pro
//
// WLPickerView.h
// WLPickerView
//
// Created by 刘光强 on 2018/5/18.
// Copyright © 2018年 quangqiang. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "WLTooBarView.h"
@interface WLPickerView : UIPickerView
@property (nonatomic, assign) NSInteger showTag;
@prope... | 330 |
706 | <reponame>thesinepainter/similarity
# 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/LICENS... | 1,472 |
678 | <reponame>bzxy/cydia<gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/WebCore.framework/WebCore
*/
#import <WebCore/XXUnknownSuperclass.h>
#import <WebCore/WebCore-Structs.h>
@interface WebScriptObjectPrivate : XXUnknownSuperclass {
@private
JS... | 177 |
5,169 | <filename>Specs/7/e/1/DoricMedia/0.1.0/DoricMedia.podspec.json
{
"name": "DoricMedia",
"version": "0.1.0",
"summary": "doric official media library.",
"description": "A powerful media framework & library built for doric.",
"homepage": "https://github.com/doric-pub/doriclib-media",
"license": {
"type": "... | 362 |
324 | #include <collision_avoidance_pick_and_place/pick_and_place.h>
/* CREATE PLACE MOVES
Goal:
- Set the pose of the tcp at the box place pose
- Create tcp poses for the place motion (approach, release, retreat).
- Find transform of the wrist in tcp coordinates
- Convert tcp pick poses to wrist poses.... | 1,123 |
370 | #define DINT
#include <../Source/umfpack_col_to_triplet.c>
| 25 |
486 | <reponame>Mivik/jflex
package edu.tum.cup2.generator.exceptions;
import edu.tum.cup2.grammar.AuxiliaryLHS4SemanticShiftAction;
import edu.tum.cup2.grammar.SpecialTerminals;
import edu.tum.cup2.grammar.Terminal;
import edu.tum.cup2.parser.actions.Reduce;
import edu.tum.cup2.parser.actions.Shift;
/**
* Exce... | 779 |
6,304 | <reponame>stayf/skia
"""
This file assembles a toolchain for Linux using the Clang Compiler and musl.
It currently makes use of musl and not glibc because the pre-compiled libraries from the latter
have absolute paths baked in and this makes linking difficult. The pre-compiled musl library
does not have this restricti... | 1,370 |
1,311 | import picamera
with picamera.PiCamera() as camera:
camera.resolution = (1024, 768)
camera.framerate = 30
camera.start_recording('highres.h264')
camera.start_recording('lowres.h264', splitter_port=2, resize=(320, 240))
camera.wait_recording(30)
camera.stop_recording(splitter_port=2)
camera.... | 128 |
312 | <filename>solutions/LinksAndHandlebarsTemplate/src/webparts/featuredContentWebPart/FeaturedContentWebPart.manifest.json
{
"$schema": "https://dev.office.com/json-schemas/spfx/client-side-web-part-manifest.schema.json",
"id": "6e7296cf-4ba1-4c8e-8d21-41fe5f23900b",
"alias": "FeaturedContentWebPart",
"componentTy... | 471 |
1,006 | <gh_stars>1000+
/****************************************************************************
* arch/arm/src/kinetis/hardware/kinetis_sim.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional infor... | 51,511 |
809 | /**
* @file
* @brief
*
* @author <NAME>
* @date 25.02.14
*/
#ifndef KERNEL_TASK_RESOURCE_SIG_TABLE_H_
#define KERNEL_TASK_RESOURCE_SIG_TABLE_H_
#include <kernel/task.h>
#include <sys/cdefs.h>
struct task;
struct sigaction;
__BEGIN_DECLS
extern struct sigaction * task_resource_sig_table(
const struct task *... | 205 |
1,127 | <filename>src/tests_deprecated/unit/engines/vpu/myriad_tests/helpers/myriad_test_case.h
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <gtest/gtest.h>
#include <memory>
#include <tuple>
#include "myriad_plugin.h"
#include "myriad_mvnc_stub.h"
#define DEFA... | 1,247 |
22,779 | <filename>plugins/org.jkiss.dbeaver.ui/src/org/jkiss/dbeaver/ui/notifications/DatabaseNotificationSink.java
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complianc... | 2,234 |
410 | {
"authors": [],
"date_download": null,
"date_modify": null,
"date_publish": "2017-11-11T11:46:46",
"description": "Volkswagen may be the subject of a new allegation of insider information disclosure as the Dieselgate emissions scam remains in the headlines more than two years following its disclosure.",
"f... | 887 |
5,169 | <filename>Specs/d/d/9/Swace/0.0.13/Swace.podspec.json
{
"name": "Swace",
"version": "0.0.13",
"summary": "Common components used that can be re-used in multiple apps",
"description": "This pod exists to be able to re-use and add code that is commonly shared among multiple projects.",
"homepage": "https://gith... | 273 |
7,482 | /**
* \file
*
* \brief DFLL management
*
* Copyright (c) 2010-2015 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Re... | 4,040 |
737 | # ----- Copyright (c) 2014 Datacratic. All rights reserved.
"""
This module extends tornados handler classes implementing GET and POST
requests to respond to BID requests
A basic openRtb class helps to interpret requests and prepare responses
Tornado request handlers are extended to handle openRtb, and a
FixedPriceBi... | 5,963 |
938 | <filename>rabbit-base/src/main/java/com/susion/rabbit/base/greendao/RabbitAppStartSpeedInfoDao.java
package com.susion.rabbit.base.greendao;
import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
import org.g... | 2,127 |
17,242 | // Copyright 2019 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... | 1,622 |
655 | //
// CardIOConfigurableTextFieldDelegate.h
// See the file "LICENSE.md" for the full license governing this code.
//
#import <Foundation/Foundation.h>
@interface CardIOConfigurableTextFieldDelegate : NSObject<UITextFieldDelegate> {
@private
BOOL numbersOnly;
NSInteger maxLength; // set to zero for no max leng... | 374 |
4,845 | package cn.dev33.satoken.reactor.context;
import org.springframework.web.server.ServerWebExchange;
import cn.dev33.satoken.context.SaTokenContextForThreadLocalStorage;
import cn.dev33.satoken.context.SaTokenContextForThreadLocalStorage.Box;
import cn.dev33.satoken.context.model.SaRequest;
import cn.dev33.satoken.cont... | 663 |
1,408 | <reponame>Nuvoton-Israel/arm-trusted-firmware<filename>plat/nvidia/tegra/soc/t194/drivers/se/se_private.h<gh_stars>1000+
/*
* Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifn... | 2,536 |
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 ... | 1,205 |
782 | <filename>main/boofcv-feature/src/main/java/boofcv/alg/background/BackgroundAlgorithmBasic.java
/*
* Copyright (c) 2021, <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 compl... | 646 |
589 | <reponame>nurely/lxdui
from app.api.lib import cert, log as logger
import os
import pathlib
import unittest
import logging
log = logging.getLogger(__name__)
class TestConfig(unittest.TestCase):
@classmethod
def setUp(cls):
logger.Log('test')
pass
@classmethod
def tearDown(cls):
... | 721 |
2,399 | <reponame>nue8080/SJMediaCacheServer<filename>Example/Pods/SJBaseVideoPlayer/SJBaseVideoPlayer/Common/Interfaces/SJReachabilityDefines.h
//
// SJReachabilityDefines
// Project
//
// Created by 畅三江 on 2018/6/1.
// Copyright © 2018年 changsanjiang. All rights reserved.
//
#ifndef SJNetworkStatus_h
#define SJNetworkSt... | 574 |
16,500 |
#include <os.h>
ModLink::~ModLink(){
}
ModLink::ModLink(char* n) : File(n,TYPE_FILE)
{
fsm.addFile("/sys/mods/",this);
}
u32 ModLink::open(u32 flag){
return RETURN_OK;
}
u32 ModLink::close(){
return RETURN_OK;
}
u32 ModLink::read(u8* buffer,u32 size){
return NOT_DEFINED;
}
u32 ModLink::write(u8* buffer,u... | 227 |
771 | <reponame>JustWon/semantic_segmap<filename>segmappy/bin/analyse_database.py
from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
import os
import ensure_segmappy_is_installed
from segmappy import Config
from segmappy.tools.classifiertools import get_default_dataset, get_default_prep... | 568 |
831 | <gh_stars>100-1000
/*
* Copyright (C) 2017 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
*
* Unl... | 1,264 |
868 | /*
* Copyright 2020 OmniSci, 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 t... | 3,561 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.billing.implementation;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.SimpleResponse... | 1,149 |
1,179 | /// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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 limita... | 14,879 |
438 | {
"DESCRIPTION": "Rétablir le son pour un membre.",
"USAGE": "undeafen <membre>",
"NOT_VC": "Je ne peux pas rétablir le son de quelqu'un qui n'est pas dans un salon vocal.",
"SUCCESS": "*<@{{USER}}> n'est plus en sourdine*."
}
| 100 |
649 | from aiohttpdemo_blog.forms import validate_login_form
from aiohttpdemo_blog.security import (
generate_password_hash,
check_password_hash
)
def test_security():
user_password = '<PASSWORD>'
hashed = generate_password_hash(user_password)
assert check_password_hash(user_password, hashed)
async de... | 561 |
1,058 | <reponame>wiltonlazary/snappydata
package io.snappydata.util.com.clearspring.analytics.stream;
/*
* Copyright (C) 2011 Clearspring Technologies, 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 th... | 3,473 |
558 | <reponame>jonfairbanks/rtsp-nvr
from flask import current_app, render_template
from flask_mail import Message
from backend.tasks import send_mail_async_task
def send_mail(subject, recipients, template, sender=None, **ctx):
if not isinstance(recipients, (tuple, list)):
recipients = [recipients]
msg =... | 207 |
892 | <reponame>github/advisory-database
{
"schema_version": "1.2.0",
"id": "GHSA-xhfw-wjjc-4j5h",
"modified": "2022-05-13T01:49:13Z",
"published": "2022-05-13T01:49:13Z",
"aliases": [
"CVE-2018-1136"
],
"details": "An issue was discovered in Moodle 3.x. An authenticated user is allowed to add HTML blocks c... | 513 |
1,189 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.api.trace;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.jupiter.api.Test;
/** Unit tests for {@link TraceFlags}. */
class TraceFlagsTest {
@Test
void defaultInstances() {
... | 491 |
519 | <filename>src/cpu-kernels/awkward_NumpyArray_contiguous_copy_from_many.cpp<gh_stars>100-1000
// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
#define FILENAME(line) FILENAME_FOR_EXCEPTIONS_C("src/cpu-kernels/awkward_NumpyArray_contiguous_copy_from_many.cpp", line)
#include "awk... | 490 |
754 | /*-
* <<
* UAVStack
* ==
* Copyright (C) 2016 - 2017 UAVStack
* ==
* 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 r... | 3,710 |
1,751 | # SPDX-License-Identifier: MIT OR Apache-2.0
# This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the MIT License. See the LICENSE file in the root of this
# repository for complete details.
"""
Global state department. Don't reload this module or everything breaks.
"""
import sys... | 5,134 |
953 | {"SpecFlowFeature":{"ScenarioDefinitions":[{"Tags":[],"Examples":[],"Location":{"Line":10,"Column":1},"Keyword":"Scenario","Name":"a simple scenario","Description":null,"Steps":[{"ScenarioBlock":1,"StepKeyword":1,"Location":{"Line":11,"Column":1},"Keyword":"Given ","Text":"some precondition","Argument":null},{"Scenari... | 793 |
575 | import os
import sys
here = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, os.path.join(here))
sys.path.insert(0, os.path.join(here, "wptserve"))
sys.path.insert(0, os.path.join(here, "third_party", "pywebsocket3"))
sys.path.insert(0, os.path.join(here, "third_party", "atomicwrites"))
sys.path.insert(0... | 881 |
190,993 | # Copyright 2017 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/LICENSE-2.0
#
# Unless required by applica... | 1,280 |
2,466 | <reponame>Henny20/skija
package org.jetbrains.skija;
import org.jetbrains.annotations.*;
public enum FilterQuality {
/** fastest but lowest quality, typically nearest-neighbor */
NONE,
/** typically bilerp */
LOW,
/** typically bilerp + mipmaps for down-scaling */
MEDIUM,
/** slowest but h... | 158 |
625 | /*
* Copyright (C) 2017 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 app... | 5,413 |
488 | <filename>projects/QtDesignerPlugins/QCodeEditWidgetPlugin.cpp
#include "QCodeEditWidgetPlugin.h"
#include "QCodeEditWidget.h"
#include <QtPlugin>
#include <QDebug>
QCodeEditWidgetPlugin::QCodeEditWidgetPlugin(QObject *par)
: QObject(par)
{
initialized=false;
}
QCodeEditWidgetPlugin::~QCodeEditWidgetPlugi... | 458 |
4,253 | <filename>20 架构师三期 SpringCloud微服务架构/代码/csrf3 验证码 security注解等/src/main/java/com/mashibing/admin/MyConfig2.java<gh_stars>1000+
package com.mashibing.admin;
import java.io.IOException;
import java.util.Base64;
import java.util.Collections;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletReque... | 2,848 |
806 | <filename>src/main/java/com/github/davidmoten/rx/package-info.java<gh_stars>100-1000
/**
* Utilities for use with RxJava.
*/
package com.github.davidmoten.rx; | 59 |
5,035 | #include "epoll.h"
#include <sys/epoll.h>
#include <errno.h>
#include "threadpool.h"
struct epoll_event* events;
int epoll_init()
{
int epoll_fd = epoll_create(LISTENQ + 1);
if(epoll_fd == -1)
return -1;
//events = (struct epoll_event*)malloc(sizeof(struct epoll_event) * MAXEVENTS);
... | 879 |
3,807 | #!/usr/bin/env python
# Copyright 2019 Google
#
# 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... | 4,443 |
511 | <filename>framework/src/media/demux/mpeg2ts/PATParser.cpp
/******************************************************************
*
* Copyright 2019 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lic... | 1,316 |
1,796 | package nisrulz.github.sample.usingroomorm;
import androidx.room.Database;
import androidx.room.RoomDatabase;
@Database(entities = {
Person.class /*, AnotherEntityType.class, AThirdEntityType.class */
}, version = 1)
public abstract class AppDatabase extends RoomDatabase {
public abstract PersonDao getPersonDao... | 96 |
17,702 | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
#pragma once
#include "stdafx.h"
#include "CNTKLibrary.h"
#include <fstream>
namespace CNTK
{
struct VariableFields final : public std::enable_shared_fro... | 1,462 |
808 | <filename>benchmarks/symbench.cpp
#include <iostream>
#include <chrono>
#include <iomanip>
#include <symengine/basic.h>
#include <symengine/add.h>
#include <symengine/symbol.h>
#include <symengine/integer.h>
#include <symengine/mul.h>
#include <symengine/pow.h>
#include <symengine/constants.h>
#include <symengine/real... | 3,709 |
406 | <filename>src/data_layer/ft_layer_tid2013.py
import cv2
import caffe
import numpy as np
import multiprocessing as mtp
import pdb
import os.path as osp
class DataLayer(caffe.Layer):
def setup(self, bottom, top):
self._name_to_top_map = {}
self._name_to_top_map['data'] = 0
self._name_to_... | 2,118 |
7,158 | <reponame>Nondzu/opencv_contrib
// 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.
#include "precomp.hpp"
#include "hfs_core.hpp"
#include <vector>
using namespace std;
namesp... | 8,463 |
897 | <filename>C/cp/first_missing_positive_integer.c
#include <stdio.h>
#include <stdlib.h>
int main(){
int n;
printf("Enter the value of n: ");
scanf("%d\n",&n);
printf("Enter the array:\n");
int *arr = (int*)malloc(n * sizeof(int));
for (int i = 1; i <= n; ++i)
{
scanf("%d", &arr[i]);
... | 671 |
505 | <filename>lib/samtools/htslib-1.5/realn.c
/* realn.c -- BAQ calculation and realignment.
Copyright (C) 2009-2011, 2014-2015 Genome Research Ltd.
Portions copyright (C) 2009-2011 Broad Institute.
Author: <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this... | 4,805 |
324 | /*
* 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 ... | 2,118 |
20,995 | // Copyright 2020 the V8 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.
#include "include/cppgc/source-location.h"
#include "src/base/macros.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cppgc {
namespace int... | 682 |
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 or agreed to... | 2,224 |
348 | {"nom":"Ecutigny","circ":"5ème circonscription","dpt":"Côte-d'Or","inscrits":88,"abs":47,"votants":41,"blancs":3,"nuls":0,"exp":38,"res":[{"nuance":"REM","nom":"<NAME>","voix":23},{"nuance":"LR","nom":"<NAME>","voix":15}]} | 94 |
700 | from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib
SKIDL_lib_version = '0.0.1'
digital_audio = SchLib(tool=SKIDL).add_parts(*[
Part(name='AK5392VS',dest=TEMPLATE,tool=SKIDL,keywords='24bit Sigma Delta Audio ADC 2ch',description='AK5392-VS, Enhanced Audio ADC, 2 channels Sigma Delta, 24bit, SO28',ref_prefix=... | 15,581 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.