max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
790 | <reponame>adamjmcgrath/glancydesign
# Wrapper for loading templates from storage of some sort (e.g. filesystem, database).
#
# This uses the TEMPLATE_LOADERS setting, which is a list of loaders to use.
# Each loader is expected to have this interface:
#
# callable(name, dirs=[])
#
# name is the template name.
# dirs... | 2,926 |
446 | <filename>plugins/WinVST/CStrip/CStripProc.cpp
/* ========================================
* CStrip - CStrip.h
* Copyright (c) 2016 airwindows, All rights reserved
* ======================================== */
#ifndef __CStrip_H
#include "CStrip.h"
#endif
void CStrip::processReplacing(float **inputs, float **out... | 22,762 |
5,823 | // Copyright 2013 The Flutter 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 "flutter/shell/platform/linux/testing/mock_renderer.h"
struct _FlMockRenderer {
FlRenderer parent_instance;
};
G_DEFINE_TYPE(FlMockRenderer, f... | 981 |
767 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use thi... | 1,158 |
12,278 | <gh_stars>1000+
// Copyright <NAME> 2013-2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#include <boost/hana/assert.hpp>
#include <boost/hana/equal.hpp>
#include <boost/hana/experimental/types.hpp>
#include <boost/han... | 1,357 |
461 | <reponame>KalifiaBillal/HadesFCS<gh_stars>100-1000
#include "INA219.h"
void INA219_Init32V9A(INA219 *ina, I2C_HandleTypeDef *I2Chandle) {
ina->I2Chandle = I2Chandle;
ina->currentmA = 0.0f;
ina->voltageBusmV = 0.0f;
ina->voltageShuntmV = 0.0f;
ina->powermW = 0.0f;
/* Set calibration param... | 1,170 |
1,020 | <reponame>icse18-refactorings/RoboBinding<gh_stars>1000+
package org.robobinding.viewattribute.property;
import org.robobinding.attribute.ValueModelAttribute;
import org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinderFactory.Implementor;
import org.robobinding.widgetaddon.ViewAddOnInjector;... | 840 |
815 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkFastMarchingGeodesicPath.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distri... | 835 |
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... | 2,008 |
1,259 | <gh_stars>1000+
# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-25 16:51
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('environments', '0001_i... | 1,567 |
1,684 | <reponame>Jerry-Shaw/FBI<filename>source/fbi/task/listpendingtitles.h
#pragma once
typedef struct linked_list_s linked_list;
typedef struct list_item_s list_item;
typedef struct pending_title_info_s {
FS_MediaType mediaType;
u64 titleId;
u16 version;
} pending_title_info;
typedef struct populate_pending_... | 238 |
19,438 | /*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Format.h>
extern bool g_report_to_debug;
template<typename... Ts>
void reportln(StringView format, Ts... args)
{
if (g_report_to_debug) {
AK::VariadicFormatParams variadic_forma... | 188 |
4,901 | /*
* Copyright (C) 2011 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... | 2,300 |
567 | # Copyright 2019-2020 Netflix, 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 agr... | 1,146 |
474 | <reponame>chenqian-dev/QNShortVideo-TuTu<gh_stars>100-1000
//
// TuSDKMediaAssetExtractorVideoSync.h
// TuSDKVideo
//
// Created by sprint on 21/08/2018.
// Copyright © 2018 TuSDK. All rights reserved.
//
#import <AVFoundation/AVFoundation.h>
#import "TuSDKMediaExtractorSync.h"
#import "TuSDKMediaTimelineAssetExtr... | 398 |
1,847 | // Copyright (c) 2021 The Orbit 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 "QtUtils/FutureWatcher.h"
#include <absl/synchronization/mutex.h>
#include <QDebug>
#include <QEventLoop>
#include <QObject>
#include <QPointe... | 638 |
332 | <filename>spring-xd-dirt/src/main/java/org/springframework/xd/dirt/core/DeploymentStatusRepository.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 ... | 323 |
854 | <filename>Python3/879.py
__________________________________________________________________________________________________
sample 268 ms submission
import numpy as np
class Solution:
def profitableSchemes(self, G: int, P: int, group: List[int], profit: List[int]) -> int:
n = len(profit)
dp = np.zer... | 810 |
369 | <filename>module-apps/application-settings/windows/WindowNames.hpp
// Copyright (c) 2017-2022, Mudita <NAME>.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
namespace gui::window::name
{
inline constexpr auto advanced = "Advanced";
inline c... | 1,369 |
521 | <filename>third_party/virtualbox/src/VBox/Devices/Network/slirp/resolv_conf_parser.c
/* $Id: resolv_conf_parser.c $ */
/** @file
* resolv_conf_parser.c - parser of resolv.conf resolver(5)
*/
/*
* Copyright (C) 2016-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* availa... | 7,812 |
2,428 | <reponame>LarsNeR/stellargraph<gh_stars>1000+
# -*- coding: utf-8 -*-
#
# Copyright 2018-2020 Data61, CSIRO
#
# 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/license... | 1,102 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-84rg-x54x-9hr2",
"modified": "2022-05-02T03:34:35Z",
"published": "2022-05-02T03:34:35Z",
"aliases": [
"CVE-2009-2378"
],
"details": "PHP remote file inclusion vulnerability in formmailer.admin.inc.php in Jax For... | 429 |
1,350 | <filename>sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessControlChanges.java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.storage.file.datalake.models;
import java.util.List;
/**
*... | 1,121 |
26,932 | <reponame>OsmanDere/metasploit-framework
/*
* lin-power-fndsockcode.c
* Copyright 2008 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1... | 2,484 |
427 | //===--------------- extenddftf2_test.c - Test __extenddftf2 --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 1,332 |
5,133 | /*
* 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.imports.sourcewithextendsbound.dto;
import java.util.Collection;
public class SpaceshipDto {
private Collection<AstronautDto> astronaut... | 182 |
1,056 | <reponame>timfel/netbeans<filename>ide/xml.axi/src/org/netbeans/modules/xml/axi/impl/AbstractModelBuilder.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ... | 1,318 |
12,278 | // Copyright (C) 2006 <NAME>
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt)
#include "odr.hpp"
#include <iostream>
int main()
{
std::cout << "No ODR violation detected" << std::endl;
return 0;
}
| 109 |
634 | /****************************************************************
* 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... | 842 |
310 | <gh_stars>100-1000
{
"name": "ExpressionEngine",
"description": "A web publishing/CMS system.",
"url": "https://ellislab.com/expressionengine"
} | 53 |
335 | <filename>code/src/mupen64plus-rsp-paraLLEl/arch/simd/rsp/vmul.h
//
// arch/x86_64/rsp/vmul.h
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
//
// TODO: CHECK ME.
//
template <bool VMULU>
static inline __m128i rsp_vmulf_vmulu(__m128i vs, _... | 645 |
2,753 | /*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: <NAME>
*/
#ifndef __ENSEMBLEMACHINE_H
#define __ENSEMBLEMACHINE_H
#include <algorithm>
#include <memory>
#include <shogun/ensemble/CombinationRule.h>
#include <shogun/features/Features.h>
#include <shogun/labels/Labels.h>... | 1,668 |
831 | <gh_stars>100-1000
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | 4,600 |
479 | import ctypes
import windows
import windows.generated_def as gdef
import windows.remotectypes as rctypes
def test_remote_struct_same_bitness():
target = windows.current_process
struct = gdef.OSVERSIONINFOEXA()
struct.dwMajorVersion = 42 # DWORD
struct.dwMinorVersion = 43 # DWORD
struct.dwPlatformI... | 600 |
4,901 | <gh_stars>1000+
/*
* Copyright 2012 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... | 1,614 |
1,234 | <filename>src/org/benf/cfr/reader/util/output/IllegalIdentifierReplacement.java
package org.benf.cfr.reader.util.output;
import org.benf.cfr.reader.bytecode.analysis.variables.Keywords;
import org.benf.cfr.reader.util.collections.MapFactory;
import org.benf.cfr.reader.util.MiscConstants;
import java.util.Map;
public... | 1,500 |
478 | import argparse
import json
import numpy as np
import subprocess as sp
import copy
from librw.loader import Loader
from librw.rw import Rewriter
from librw.analysis.register import RegisterAnalysis
from rwtools.asan.instrument import Instrument
from librw.analysis.stackframe import StackFrameAnalysis
def do_symboli... | 2,647 |
3,411 | <reponame>stormer3428/JDA
/*
* Copyright 2015 <NAME>, <NAME>, <NAME>, and the JDA contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licen... | 10,774 |
30,785 | package jadx.plugins.input.dex.smali;
import java.util.HashMap;
import java.util.Map;
import org.jetbrains.annotations.NotNull;
import jadx.api.plugins.input.insns.InsnData;
import jadx.plugins.input.dex.insns.DexOpcodes;
public class SmaliInsnFormat {
private static SmaliInsnFormat instance;
public static sync... | 1,883 |
1,444 | package mage.sets;
import mage.cards.ExpansionSet;
import mage.constants.Rarity;
import mage.constants.SetType;
/**
* https://scryfall.com/sets/p10e
*/
public class TenthEditionPromos extends ExpansionSet {
private static final TenthEditionPromos instance = new TenthEditionPromos();
public static TenthEdi... | 261 |
1,179 | <reponame>jjcc/OpenData<gh_stars>1000+
from opendatatools import swindex
if __name__ == '__main__':
#df, msg = swindex.get_index_list()
#print(df)
#df, msg = swindex.get_index_cons('801030')
#print(df)
df, msg = swindex.get_index_daily('801003', '2000-01-01', '2018-11-02')
df, msg = swindex.... | 226 |
1,338 | <filename>src/add-ons/kernel/file_systems/ntfs/attributes.h
/*
Copyright 1999-2001, Be Incorporated. All Rights Reserved.
This file may be used under the terms of the Be Sample Code License.
*/
/* attributes.h
* handles mime type information for ntfs
* gets/sets mime information in vnode
*/
#ifndef NTFS_ATTRIBUT... | 666 |
4,879 | <filename>iphone/Maps/UI/Editor/Cells/MWMEditorSwitchTableViewCell.h<gh_stars>1000+
#import "MWMEditorCommon.h"
#import "MWMTableViewCell.h"
@interface MWMEditorSwitchTableViewCell : MWMTableViewCell
- (void)configWithDelegate:(id<MWMEditorCellProtocol>)delegate
icon:(UIImage *)icon
... | 185 |
1,826 | <reponame>niklasf/flexmark-java
package com.vladsch.flexmark.ast;
import com.vladsch.flexmark.util.sequence.BasedSequence;
import org.jetbrains.annotations.NotNull;
public class AutoLink extends DelimitedLinkNode {
public AutoLink() {
}
@NotNull
@Override
public BasedSequence[] getSegments() {
... | 610 |
390 | /*!
@file Common.h
@brief Common things across the project.
@author <NAME>
@copyright Copyright (c) 2020 - , <NAME>. All rights reserved.
*/
#pragma once
#if defined(NTDDI_VERSION)
#define MV_PLATFORM_WINDOWS
#else
#define MV_PLATFORM_EFI
#endif
#if defined(MV_PLATFORM_WINDOWS)
#include "Platform/W... | 883 |
1,822 | // Copyright (c) 2007-2016 <NAME>
// Copyright (c) 2011 <NAME>
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <hpx/config.hpp>
#include <hpx/actions_base/b... | 1,227 |
502 | package com.github.kubeflow.arena.model.serving;
import com.github.kubeflow.arena.enums.ServingJobType;
import com.github.kubeflow.arena.model.fields.StringField;
import java.util.ArrayList;
import java.util.Map;
public class KFServingJobBuilder extends JobBuilder {
public KFServingJobBuilder() {
supe... | 1,320 |
2,039 | package org.nd4j.jita.allocator.time.impl;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import java.util.concurrent.TimeUnit;
import static org.junit.Assert.*;
/**
* @author <EMAIL>
*/
@Ignore
public class BinaryTimerTest {
@Before
public void setUp() throws Exception {
}... | 297 |
340 | <reponame>leha-bot/eve
//==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//===============================================================================... | 900 |
795 | <filename>examples/by-features/path-matcher/namespaces-locale/.vscode/settings.json
{
"i18n-ally.localesPaths": "i18n",
"i18n-ally.pathMatcher": "{namespaces?}/?{locale}.(yml|json)",
"i18n-ally.namespace": true,
"i18n-ally.keystyle": "nested",
}
| 111 |
619 | <gh_stars>100-1000
/*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2017 Intel Corporation.
*
* The MIT License
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT... | 1,412 |
343 | import logging
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
from mayan.apps.storage.models import SharedUploadedFile
from ..classes import SourceBackend
from ..forms import WebFormUploadFormHTML5
from .mixins import (
SourceBackendCompressedMixin, SourceBackendInteract... | 890 |
679 | <filename>main/ooxml/source/framework/JavaOOXMLParser/src/org/apache/openoffice/ooxml/parser/SkipStateTable.java
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed wit... | 686 |
30,023 | """Tests for the Open-Meteo integration."""
from unittest.mock import AsyncMock, MagicMock, patch
from open_meteo import OpenMeteoConnectionError
from pytest import LogCaptureFixture
from homeassistant.components.open_meteo.const import DOMAIN
from homeassistant.config_entries import ConfigEntryState
from homeassista... | 857 |
1,444 | <filename>Mage.Sets/src/mage/cards/a/AegisOfHonor.java
package mage.cards.a;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.RedirectionEffect;
import mage.cards.CardImpl;
import... | 1,226 |
1,510 | <filename>common/src/main/java/org/apache/drill/common/PlanStringBuilder.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this... | 1,186 |
6,322 | import pandas as pd
def QA_data_futuremin_resample(min_data, type_='5min'):
"""期货分钟线采样成大周期
分钟线采样成子级别的分钟线
future:
vol ==> trade
amount X
"""
min_data.tradeime = pd.to_datetime(min_data.tradetime)
CONVERSION = {'code': 'first', 'open': 'first', 'high': 'max', 'low': 'min',
... | 312 |
1,338 | /*
* Copyright 2006, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
*/
#include "support_settings.h"
#include <stdio.h>
#include <Directory.h>
#include <File.h>
#include <FindDirectory.h>
#include <Message.h>
#include <Path.h>
// load_settings
status_t
load_settings(... | 636 |
403 | #ifndef VKHR_PIPELINE_HH
#define VKHR_PIPELINE_HH
#include <vkpp/pipeline.hh>
#include <vkpp/descriptor_set.hh>
#include <vkpp/debug_marker.hh>
#include <vkpp/shader_module.hh>
#include <vector>
namespace vk = vkpp;
namespace vkhr {
struct Pipeline {
vk::GraphicsPipeline::FixedFunction fix... | 416 |
340 | # encoding: utf-8
from tornado.testing import gen_test
from . import BaseTestCase
class TestBasic(BaseTestCase):
@gen_test
def test0(self):
sql = "select * from test limit 1"
connection = yield self.pool.Connection()
cursor = connection.cursor()
yield cursor.execute(sql)
... | 185 |
2,757 | /*++
Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be fou... | 2,764 |
4,459 | <filename>applications/luci-app-statistics/root/usr/share/luci/statistics/plugins/thermal.json
{
"title": "Thermal",
"category": "general",
"legend": [
[],
["IgnoreSelected"],
["Device"]
]
}
| 85 |
347 | package org.ovirt.engine.api.restapi.resource;
import javax.ws.rs.core.Response;
import org.ovirt.engine.api.model.Filter;
import org.ovirt.engine.api.model.Filters;
import org.ovirt.engine.api.resource.FilterResource;
import org.ovirt.engine.api.resource.FiltersResource;
import org.ovirt.engine.api.restapi.resource.... | 703 |
416 | from bt import backend_to_check
from pyscreenshot.util import platform_is_linux
if not platform_is_linux():
def test_pil():
backend_to_check("pil")
| 60 |
634 | /**
* Copyright (C) 2021 <NAME>
*
* This software is provided 'as-is', without any express or implied warranty. In no event will the
* authors be held liable for any damages arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose, including commercial
* ... | 1,801 |
385 | <filename>include/al/camera/CameraPoser.h
/**
* @file CameraPoser.h
* @brief Base poser class for cameras.
*/
#pragma once
#include "al/byaml/ByamlIter.h"
#include "al/keeper/AudioKeeper.h"
#include "al/keeper/NerveKeeper.h"
#include "al/PlacementInfo.h"
#include "CameraAngleCtrlInfo.h"
#include "CameraAngleSwingI... | 2,458 |
1,949 | #include <sample_identity_naming.h>
int main()
{
test::tab_foo tab_foo;
tab_foo.delta = "delta";
tab_foo._epsilon = 42;
tab_foo.omega = 3.14;
test::tab_bar tab_bar;
tab_bar.alpha = 42;
tab_bar.beta = "beta";
tab_bar.gamma = true;
tab_bar.delta = 42;
}
| 126 |
763 | package org.batfish.common.topology;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Iterables;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import javax.annot... | 2,076 |
775 | <reponame>ismailbozkurt/demos<gh_stars>100-1000
#include "pe_hdrs_helper.h"
IMAGE_NT_HEADERS* get_nt_hrds(BYTE *pe_buffer)
{
if (pe_buffer == NULL) return NULL;
IMAGE_DOS_HEADER *idh = NULL;
IMAGE_NT_HEADERS *inh = NULL;
idh = (IMAGE_DOS_HEADER*)pe_buffer;
if (idh->e_magic != IMAGE_DOS_SIGNATURE)... | 392 |
321 | <filename>apis/api-core/api-core-common/src/main/java/org/hoteia/qalingo/core/pojo/deliverymethod/DeliveryMethodCountryPojo.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/LIC... | 457 |
1,143 | <reponame>zhouyijiaren/commons
// =================================================================================================
// Copyright 2011 Twitter, Inc.
// -------------------------------------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the ... | 400 |
852 | <filename>Validation/RecoHI/python/HLT_HIPhoton15_DQM_cfi.py<gh_stars>100-1000
import FWCore.ParameterSet.Config as cms
##########################################################
# See HLT Config Browser, for up-to-date HLT paths
# http://cms-project-confdb-hltdev.web.cern.ch/cms-project-confdb-hltdev/browser/
#
# Th... | 1,177 |
3,012 | /** @file
*
* Copyright (c) 2017, Linaro Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*
**/
#ifndef __DT_PLATFORM_DEFAULT_DTB_FILE_H__
#define __DT_PLATFORM_DEFAULT_DTB_FILE_H__
#define DT_PLATFORM_DEFAULT_DTB_FILE_GUID \
{ 0x25462cda, 0x221f, 0x47df, { 0xac, 0x1d, 0... | 215 |
1,283 | <gh_stars>1000+
/*
* SlippageBase.cpp
*
* Created on: 2013-3-3
* Author: fasiondog
*/
#include "SlippageBase.h"
namespace hku {
HKU_API std::ostream& operator<<(std::ostream& os, const SlippageBase& sp) {
os << "Slippage(" << sp.name() << ", " << sp.getParameter() << ")";
return os;
}
HKU_API std... | 553 |
3,651 | package com.orientechnologies.orient.core.sql.executor;
import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx;
import com.orientechnologies.orient.core.exception.OCommandExecutionException;
import org.junit.AfterClass;
import or... | 600 |
469 | /*
* Copyright 2018 Google 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 4,804 |
446 | /*
* 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,298 |
1,150 | package io.confluent.developer.livestreams;
import org.apache.kafka.clients.admin.NewTopic;
import org.apache.kafka.common.serialization.Serde;
import org.apache.kafka.common.serialization.Serdes;
import org.apache.kafka.streams.StreamsBuilder;
import org.apache.kafka.streams.kstream.Consumed;
import org.apache.kafka.... | 643 |
476 | #!/usr/bin/env python
# _ _ _ _
# ______| (_)_ __ ___ ___ _ __ ___(_) ___ _ __( )__
# |_ / _` | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
# / / (_| | | | | | | | __/ | | \__ \ | (_) | | | \__ \ ... | 2,453 |
343 | <gh_stars>100-1000
from django.db import models
from django.contrib.auth.models import User
from account.models import Businesses,UserProfiles
class Highstate(models.Model):
name = models.CharField(max_length=50,unique=True)
business = models.ManyToManyField(Businesses)
content = ... | 196 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 3,249 |
389 | <gh_stars>100-1000
# Upper Confidence Bound (UCB)
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Ads_CTR_Optimisation.csv')
# Implementing UCB
import math
N = 10000
d = 10
ads_selected = []
numbers_of_selections = [0] * ... | 541 |
1,077 | import re
from urllib.parse import urlparse
from datetime import datetime
from requests import Request
from anime_downloader.sites.anime import Anime, AnimeEpisode, SearchResult
from anime_downloader.sites import helpers
from anime_downloader.const import get_random_header
_headers = get_random_header() | { 'X-Reques... | 1,264 |
1,508 | <reponame>grmkris/XChange
package org.knowm.xchange.globitex;
import java.io.IOException;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.globitex.dto.marketdata.*;
@Path("/api/1/")
@Produces(MediaType.APPLICATION_JSON)
public interface Globitex {
@GET
@Path("public/symbols")
... | 403 |
19,438 | /*
* Copyright (c) 2020, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/FlyString.h>
#include <LibJS/Runtime/PrimitiveString.h>
#include <LibJS/Runtime/Symbol.h>
#include <LibJS/Runtime/Value.h>
namespace JS {
class StringOrSymbol {
public:
StringOrSymbol() = default... | 1,731 |
1,558 | <reponame>N500/WindowsTemplateStudio<filename>code/test/UI.Test/TestData/Templates/test/Projects/TestSecondProjectType/.template.config/Layout.json
[
{
"name": "Main",
"templateGroupIdentity": "Microsoft.Templates.Test.TestSecondPageTemplate",
"readonly": "true",
"projecttype": "TestSecondProjectType"... | 113 |
7,470 | <reponame>asklar/hermes-windows
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "TestFunctions.h"
namespace facebook {
namespace hermes {
namespace synthtest {
const ch... | 804 |
334 | #pragma once
#include <mapnik/image.hpp>
#include <mapnik/image_view.hpp>
namespace detail {
namespace traits {
template <typename T>
struct null_image
{
};
template <>
struct null_image<mapnik::image_any>
{
using type = mapnik::image_null;
};
template <>
struct null_image<mapnik::image_view_any>
{
using t... | 708 |
726 | <reponame>xqgdmg/DavidNBA-master
package com.yuyh.library.utils.network;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
impo... | 967 |
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.messaging.eventgrid.systemevents;
import com.azure.core.annotation.Immutable;
import java.time.OffsetDateTime;
/** Schema of th... | 432 |
4,081 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 1,404 |
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.
package org.chromium.chrome.browser.ui.android.webid.data;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.url.GURL;
/**
* Thi... | 671 |
852 | <gh_stars>100-1000
import FWCore.ParameterSet.Config as cms
pixelMedianVertices = cms.EDProducer( "PixelVertexProducerMedian",
TrackCollection = cms.string( "pixelTracks" ),
PtMin = cms.double( 0.5 )
)
| 83 |
1,666 | <reponame>ithaka/grobid<gh_stars>1000+
package org.grobid.trainer.sax;
import org.grobid.core.utilities.TextUtilities;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import java.util.ArrayList;
import java.util.List;
import java.util.Arrays;
import java.util... | 6,579 |
2,597 | #include "wl_output.h"
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
| 35 |
339 | <gh_stars>100-1000
#include "RaZ/Animation/Skeleton.hpp"
namespace Raz {
Mat4f SkeletonJoint::computeTransformMatrix() const {
Mat4f transformMat = m_rotation.computeMatrix();
transformMat[12] = m_translation[0];
transformMat[13] = m_translation[1];
transformMat[14] = m_translation[2];
return transfo... | 185 |
2,212 | <filename>evidently/profile_sections/base_profile_section.py
import abc
from typing import List
from evidently.analyzers.base_analyzer import Analyzer
class ProfileSection:
@abc.abstractmethod
def analyzers(self) -> List[Analyzer]:
raise NotImplementedError()
@abc.abstractmethod
def part_id(... | 167 |
1,840 | <reponame>RaulGracia/pravega<gh_stars>1000+
/**
* Copyright Pravega 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... | 322 |
312 | <reponame>yanaspaula/rdf4j
/*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v... | 1,458 |
528 | from opytimizer.optimizers.social import ISA
# One should declare a hyperparameters object based
# on the desired algorithm that will be used
params = {
'w': 0.7,
'tau': 0.3
}
# Creates an ISA optimizer
o = ISA(params=params)
| 84 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.