max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,056 | <reponame>arusinha/incubator-netbeans
/*
* 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... | 1,175 |
809 | /**
* @file
* @brief
*
* @author <NAME>
* @date 26.02.14
*/
#ifndef KERNEL_TASK_RESOURCE_AFFINITY_H_
#define KERNEL_TASK_RESOURCE_AFFINITY_H_
#include <sys/cdefs.h>
struct task;
#define TASK_AFFINITY_DEFAULT ((unsigned int)-1)
__BEGIN_DECLS
extern unsigned int * task_resource_affinity(
const struct task *... | 258 |
348 | {"nom":"L'Isle-Adam","circ":"2ème circonscription","dpt":"Val-d'Oise","inscrits":7955,"abs":3597,"votants":4358,"blancs":159,"nuls":49,"exp":4150,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":2723},{"nuance":"REM","nom":"<NAME>","voix":1427}]} | 103 |
432 | from collections import deque
class Tree(object):
def __init__(self,
node_id,
children=None,
data=None,
props=None,
edge_data=None,
edge_props=None):
"""
A class to facilitate tree manipulation in... | 2,531 |
471 | <filename>corehq/ex-submodules/fluff/pillow.py
from couchdbkit import ResourceNotFound
from corehq.apps.change_feed.consumer.feed import KafkaChangeFeed, KafkaCheckpointEventHandler
from corehq.sql_db.connections import connection_manager, DEFAULT_ENGINE_ID
from dimagi.utils.read_only import ReadOnlyObject
from pillow... | 2,865 |
76,518 | <filename>src/modules/imageresizer/dll/HDropIterator.cpp
#include "pch.h"
#include "HDropIterator.h"
HDropIterator::HDropIterator(IDataObject* pdtobj)
{
_current = 0;
FORMATETC formatetc = {
CF_HDROP,
NULL,
DVASPECT_CONTENT,
-1,
TYMED_HGLOBAL
};
pdtobj->GetData... | 418 |
2,127 | /*
* Created by wingjay on 11/16/16 3:31 PM
* Copyright (c) 2016. All rights reserved.
*
* Last modified 11/10/16 11:05 AM
*
* Reach me: https://github.com/wingjay
* Email: <EMAIL>
*/
package com.wingjay.jianshi.ui;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
impo... | 1,357 |
369 | <filename>WHStoryMaker/StoryMakerHelper/StoryMakerFontManager.h<gh_stars>100-1000
//
// StoryMakerFontManager.h
// InstaGrab
//
// Created by yangl on 15/9/23.
// Copyright (c) 2015年 JellyKit Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface StoryMakerFontManager : NSObject
+ (UIFont *)ge... | 153 |
348 | <filename>docs/data/leg-t2/02B/02B02293.json
{"nom":"Sant'Andréa-di-Cotone","circ":"2ème circonscription","dpt":"Haute-Corse","inscrits":385,"abs":287,"votants":98,"blancs":32,"nuls":0,"exp":66,"res":[{"nuance":"REG","nom":"<NAME>","voix":45},{"nuance":"REM","nom":"<NAME>","voix":21}]} | 122 |
1,452 | <gh_stars>1000+
#include "FrontJumpCtrl.hpp"
template <typename T>
FrontJumpCtrl<T>::FrontJumpCtrl(DataReader* data_reader,float _dt) : DataReadCtrl<T>(data_reader, _dt) {}
template <typename T>
FrontJumpCtrl<T>::~FrontJumpCtrl() {}
template <typename T>
void FrontJumpCtrl<T>::OneStep(float _curr_time, bool b_prep... | 4,120 |
9,959 | <gh_stars>1000+
class Getter {
@lombok.Getter boolean foo;
@lombok.Getter boolean isBar;
@lombok.Getter boolean hasBaz;
Getter() {
super();
}
public @java.lang.SuppressWarnings("all") boolean isFoo() {
return this.foo;
}
public @java.lang.SuppressWarnings("all") boolean isBar() {
return this... | 318 |
799 | <reponame>diCagri/content
import pytest
import demistomock as demisto
from IncidentsCheck_NumberofIncidentsWithErrors import main, RED_HTML_STYLE, GREEN_HTML_STYLE
@pytest.mark.parametrize('incident_ids, expected', [
(5, f"<h1 style={RED_HTML_STYLE}5</h1>"),
(1, f"<h1 style={RED_HTML_STYLE}1</h1>"),
(0, ... | 330 |
14,668 | <reponame>zealoussnow/chromium
// 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 <stddef.h>
#include <stdint.h>
#include <vector>
#include "base/cxx17_backports.h"
#include "base/test/perf_test_... | 859 |
1,062 | //
// Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <MailCore/MCTaskHandlerOperation.h>
@class NSArray;
@protocol MFEWSRetrievePersistedFolderDataDelegate;
@interface MFEWSRetrievePersistedFolderDataOperation : MCTaskHandle... | 334 |
1,391 | #include "nosys.c"
| 9 |
879 | package com.bookstore.converter;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
@Converter(autoApply = true)
public class BooleanConverter implements AttributeConverter<Boolean, String> {
@Override
public String convertToDatabaseColumn(Boolean attr) {
System.out.prin... | 214 |
369 | <gh_stars>100-1000
// Copyright (c) 2017-2021, Mudit<NAME>.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "PixelRenderer.hpp"
#include "Context.hpp"
#include <cstring>
namespace gui::renderer
{
static ColorScheme colorScheme = ::gui::Color::defaultColorSche... | 347 |
11,351 | <reponame>LearnJavaByus/eureka
package com.netflix.discovery;
import javax.ws.rs.client.ClientRequestFilter;
/**
* Jersey2 implementation of DiscoveryClientOptionalArgs that supports supplying {@link ClientRequestFilter}
*/
public class Jersey2DiscoveryClientOptionalArgs extends AbstractDiscoveryClientOptionalArgs<... | 91 |
848 | /*
* Copyright 2020 TensorFlow 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 ag... | 1,364 |
5,169 | {
"name": "Loyalty",
"version": "0.1.0",
"summary": "Phunware Loyalty",
"homepage": "https://github.com/phunware/maas-loyalty-ios-sdk",
"authors": {
"Phunware": "<EMAIL>"
},
"license": {
"type": "Copyright",
"text": "Copyright 2019 by Phunware Inc. All rights reserved."
},
"source": {
... | 311 |
7,141 | <gh_stars>1000+
from imageai.Classification.Custom import ClassificationModelTrainer
import os
trainer = ClassificationModelTrainer()
trainer.setModelTypeAsDenseNet121()
trainer.setDataDirectory("idenprof")
trainer.trainModel(num_objects=10, num_experiments=50, enhance_data=True, batch_size=8, show_network_summary=Tru... | 153 |
4,901 | <gh_stars>1000+
/* GENERATED SOURCE. DO NOT MODIFY. */
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html#License
/*
*******************************************************************************
* Copyright (C) 2004-2014, International Business Machines C... | 3,383 |
407 | #include "gui/searchbar/searchbar.h"
#include "gui/gui_utils/graphics.h"
#include "gui/label_button/label_button.h"
#include <QHBoxLayout>
#include <QIcon>
#include <QLabel>
#include <QLineEdit>
#include <QPixmap>
#include <QPushButton>
#include <QStyle>
#include <QToolButton>
namespace hal
{
Searchbar::Searchba... | 2,847 |
1,056 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 1,985 |
831 | # Problem: https://www.hackerrank.com/challenges/big-sorting/problem
# Score: 20
n = int(input())
arr = []
for i in range(n):
arr.append(input())
arr.sort(key=int)
for _ in arr:
print(_)
| 80 |
56,632 | /**
* @file TEvolution.h
* @brief Header file with the declaration of the TEvolution struct
* @date Jun 02, 2014
* @author <NAME>
*/
#ifndef __OPENCV_FEATURES_2D_TEVOLUTION_H__
#define __OPENCV_FEATURES_2D_TEVOLUTION_H__
namespace cv
{
/* *************************************************************************... | 450 |
575 | <filename>ios/public/provider/chrome/browser/discover_feed/discover_feed_observer_bridge.h<gh_stars>100-1000
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_DI... | 610 |
347 | package org.ovirt.engine.api.restapi.resource;
import static org.ovirt.engine.api.restapi.util.ParametersHelper.getBooleanParameter;
import org.ovirt.engine.core.common.businessentities.HostedEngineDeployConfiguration;
public class HostResourceParametersUtil {
public static final String QUERY_PARAM_DEPLOY_HOSTED... | 544 |
1,036 | <reponame>mylhyl/Android-CircleDialog
package com.mylhyl.circledialog.sample;
import android.content.Context;
import android.graphics.Color;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.mylhyl.circl... | 829 |
1,405 | <filename>sample5/recompiled_java/sources/com/network/android/t.java
package com.network.android;
import android.content.Context;
final class t implements Runnable {
/* renamed from: a reason: collision with root package name */
final /* synthetic */ String f128a;
final /* synthetic */ int b = 1;
fi... | 957 |
348 | <filename>docs/data/leg-t2/057/05704525.json
{"nom":"Oriocourt","circ":"4ème circonscription","dpt":"Moselle","inscrits":51,"abs":25,"votants":26,"blancs":2,"nuls":0,"exp":24,"res":[{"nuance":"LR","nom":"<NAME>","voix":12},{"nuance":"REM","nom":"<NAME>","voix":12}]} | 112 |
4,256 | <reponame>hongxu-jia/s2n-tls
#
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0
#
# or in ... | 1,902 |
1,374 | <filename>transpiler/src/test/java/source/typing/MixinsWithDefsAndOtherName.java
package source.typing;
import static def.test2.Globals.$;
import def.test2.ExtendedJQuery;
import def.test2.Globals;
public class MixinsWithDefsAndOtherName {
public static void main(String[] args) {
$(".modal").modal();
$("select"... | 209 |
602 | <filename>infrastructure/src/main/java/org/corfudb/infrastructure/log/InMemoryStreamLog.java
package org.corfudb.infrastructure.log;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMa... | 2,677 |
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.... | 292 |
2,151 | <reponame>zipated/src
// Copyright 2017 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/layout/ng/ng_base_layout_algorithm_test.h"
#include "third_party/blink/renderer/core/dom/... | 6,532 |
61,676 | <reponame>ni-ning/django
from django.contrib.sessions.backends.base import SessionBase
class SessionStore(SessionBase):
"""Session store without support for clearing expired sessions."""
pass
| 59 |
1,671 | <filename>auto_ml/_version.py
__version__ = "2.9.10"
| 23 |
15,577 | <reponame>lizhichao/ClickHouse
#include <Parsers/ParserCreateRoleQuery.h>
#include <Parsers/ASTCreateRoleQuery.h>
#include <Parsers/CommonParsers.h>
#include <Parsers/ExpressionElementParsers.h>
#include <Parsers/ASTLiteral.h>
#include <Parsers/ASTSettingsProfileElement.h>
#include <Parsers/ParserSettingsProfileElement... | 1,695 |
1,144 | // SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2014 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
#if CONFIG_SYS_FSL_SEC_COMPAT == 2 || CONFIG_SYS_FSL_SEC_COMPAT >= 4
#include <fsl_sec.h>
#endif
/*
* update crypto node properties to a specified revisio... | 2,363 |
14,668 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/components/arc/sensor/arc_iio_sensor_bridge.h"
#include <utility>
#include "ash/components/arc/arc_browser_context_keyed_service_factory_b... | 1,181 |
854 | <gh_stars>100-1000
package dev.morphia.aggregation.codecs.stages;
import dev.morphia.Datastore;
import dev.morphia.aggregation.codecs.ExpressionHelper;
import dev.morphia.aggregation.stages.Lookup;
import dev.morphia.aggregation.stages.Stage;
import org.bson.BsonWriter;
import org.bson.codecs.Codec;
import org.bson.co... | 856 |
315 | #ifndef __Gua__canvas__
#define __Gua__canvas__
#include "vector.h"
#include "color.h"
#include "vertex.h"
#include "matrix.h"
#include "mesh.h"
class Canvas {
uint32_t *_pixels;
float *_depthBuffer;
int _bufferSize;
float _width;
float _height;
void putPixel(int x, int y, float z,... | 465 |
324 | <filename>src/mongo/db/queryoptimizercursorimpl.h
/**
* Copyright (C) 2011 10gen Inc.
* Copyright (C) 2013 Tokutek Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Soft... | 4,019 |
538 | <reponame>nyanpasu64/vgmcis
#include "pch.h"
#include "MyCoCreateInstance.h"
HRESULT __stdcall MyCoCreateInstance(
LPCTSTR szDllName,
IN REFCLSID rclsid,
IUnknown* pUnkOuter,
IN REFIID riid,
OUT LPVOID FAR* ppv)
{
HRESULT hr = REGDB_E_KEYMISSING;
HMODULE hDll = ::LoadLibrary(szDllName);
if (hDll == 0)... | 413 |
2,151 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/previews/content/previews_ui_service.h"
#include "base/bind.h"
#include "base/single_thread_task_runner.h"
#include "url/gurl.h"
na... | 1,791 |
835 | # -*- coding: utf-8 -*-
import abc
from ...external import six
from .rules import _UpdateRule
@six.add_metaclass(abc.ABCMeta)
class _UpdateStrategy(object):
_STRATEGY = ""
@abc.abstractmethod
def _as_build_update_req_body(self):
"""
Returns
-------
dict
JSON ... | 1,336 |
878 | /**
* File: ScoringObject.h
* Date: November 2011
* Author: <NAME>
* Description: functions to compute bow scores
* License: see the LICENSE.txt file
*
*/
#ifndef __D_T_SCORING_OBJECT__
#define __D_T_SCORING_OBJECT__
#include "BowVector.h"
namespace DBoW2 {
/// Base class of scoring functions
class GeneralS... | 834 |
357 | /*
*
* Copyright (c) 2012-2015 VMware, 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,096 |
369 | // Copyright (c) 2017-2021, Mudit<NAME>. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "../Common.hpp"
namespace gui
{
class Item;
// Class holds GUI Items for 4 possible directions for navigating using keyboard.
class Navigation
{
... | 336 |
399 | #include <core/RunEngine.hpp>
#include <iostream>
#include <string>
#include <BsPrerequisites.h>
#include <FileSystem/BsPath.h>
#include <core/Engine.hpp>
#include <log/logging.hpp>
using namespace REGoth;
int REGoth::runEngine(Engine& engine)
{
engine.initializeBsf();
REGOTH_LOG(Info, Uncategorized, "[Main] ... | 669 |
518 | {
"name": "Bottle",
"category": "Marketing & Analytics",
"start_url": "https://sendbottles.com/login",
"icons": [
{
"src": "https://cdn.filestackcontent.com/R8RsNAhbRLSvGuLUMs82"
},
{
"src": "https://cdn.filestackcontent.com/0HTkH7NST7myhEm3xUie",
"platform": "browserx"
}
],
... | 202 |
1,338 | /*
Copyright (c) 2003, Marcin 'Shard' Konicki
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions ... | 1,672 |
929 | //
// HWPanContainerView.h
// HWPanModal
//
// Created by <NAME> on 2019/4/26.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface HWPanContainerView : UIView
/// the presented view should add to the content view.
@property (nonatomic, strong, readonly) UIView *contentView;
- (instancetype)initWithPre... | 270 |
454 | <gh_stars>100-1000
/*
* This file is generated by jOOQ.
*/
package cn.vertxup.fm.domain.tables.pojos;
import cn.vertxup.fm.domain.tables.interfaces.IFSubject;
import io.github.jklingsporn.vertx.jooq.shared.internal.VertxPojo;
import java.time.LocalDateTime;
import static io.github.jklingsporn.vertx.jooq.shared.... | 6,204 |
1,822 | <reponame>Andrea-MariaDB-2/hpx
// Copyright (c) 2020 <NAME>
// Copyright (c) 2016 <NAME>
// Copyright (c) 2016 <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)
#in... | 379 |
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.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_NETWORK_WRAPPED_DATA_PIPE_GETTER_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_NETWORK_WRAPPED_DATA_PIPE_GETT... | 526 |
312 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef __LINUX_IF_ADDR_H
#define __LINUX_IF_ADDR_H
#include <linux/types.h>
#include <linux/netlink.h>
struct ifaddrmsg {
__u8 ifa_family;
__u8 ifa_prefixlen; /* The prefix length */
__u8 ifa_flags; /* Flags */
__u8 ifa_scope; /* Address scope... | 793 |
540 | /* ----------------------------------------------------------------------------
** Copyright (c) 2016 <NAME>, All Rights Reserved.
**
** FieldGetterBase.h
** --------------------------------------------------------------------------*/
#pragma once
namespace ursine
{
namespace meta
{
class Variant;
... | 192 |
726 | <filename>find_pythagoras_triplet.py
# Given an array of integers, write a function that
# returns true if there is a triplet (a, b, c) that
# satisfies a^2 + b^2 = c^2.
def findPythagorasTriplet(arr, n):
# convert the array to squares
for i in range(0, n):
arr[i] = arr[i] * arr[i]
# sort the array
ar... | 375 |
1,570 | // Copyright 2016 The SwiftShader 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 b... | 10,397 |
1,176 | <reponame>ValtoGameEngines/Intrinsic-Engine
// Copyright 2017 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requi... | 871 |
304 | <filename>cloudnet-common/src/main/java/de/dytanic/cloudnet/common/collection/NetorHashMap.java
/*
* Copyright 2019-2021 CloudNetService team & 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... | 656 |
577 | package org.python.compiler;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
import org.python.antlr.base.mod;
import org.python.core.BytecodeLoader;
import org.python.core.CompilerFlags;
import org.python.core.Py;
import org.python.core.PyCode;
import org.python.core.PythonCodeBundle;
import org.p... | 944 |
21,382 | <gh_stars>1000+
import asyncio
import logging
import multiprocessing as mp
import os
import threading
from typing import Any
from typing import Callable
from typing import Dict
from typing import Tuple
from typing import Optional
import kopf
import yaml
import ray.autoscaler._private.monitor as monitor
from ray._priv... | 4,988 |
3,227 | // Copyright (c) 2000 Max-Planck-Institute Saarbruecken (Germany).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
//
// Author(s) : <NAME> <<EMAIL>>
#ifndef CGAL_INDIRECT_LESS_XY_2_H
#define CGAL_... | 378 |
3,287 | <filename>scripts/dev_setup.py<gh_stars>1000+
#!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#... | 745 |
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 ... | 17,210 |
324 | <reponame>TwilioDevEd/django-el-pagination
"""Twitter-style pagination feeding an specific content wrapper integration tests."""
from __future__ import unicode_literals
import el_pagination.settings
from el_pagination.tests.integration import SeleniumTestCase
class FeedWrapperPaginationTest(SeleniumTestCase):
... | 996 |
759 | <filename>testsuite/portTypeException.cpp
#include <cassert>
#include <iostream>
#include <cstdint>
#include <cstdlib>
#include <raft>
#include <raftio>
#include <tuple>
#include "generate.tcc"
#include "defs.hpp"
template< typename A, typename B, typename C > class Sum : public raft::kernel
{
public:
Sum() : raft... | 905 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Common... | 173 |
4,054 | <filename>vespalib/src/tests/random/random_test.cpp
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/vespalib/util/random.h>
using namespace vespalib;
class Test : public vespalib::TestApp
{
public:
... | 2,305 |
335 | # See LICENSE for licensing information.
#
# Copyright (c) 2016-2021 Regents of the University of California and The Board
# of Regents for the Oklahoma Agricultural and Mechanical College
# (acting for and on behalf of Oklahoma State University)
# All rights reserved.
#
import design
from tech import cell_properties a... | 511 |
1,403 | /*
* GLTexSubImage.h
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2019 by <NAME>)
* See "LICENSE.txt" for license information.
*/
#ifndef LLGL_GL_TEX_SUB_IMAGE_H
#define LLGL_GL_TEX_SUB_IMAGE_H
#include <LLGL/ImageFlags.h>
#include <LLGL/TextureFlags.h>
#include "../OpenGL.h"
namespace LLG... | 270 |
1,041 | <filename>ebean-api/src/main/java/io/ebean/PersistenceContextScope.java<gh_stars>1000+
package io.ebean;
/**
* Defines the scope for PersistenceContext.
* <p/>
* Ebean has traditionally used Transaction scope for the PersistenceContext. This is used to change the scope to
* use (by default) and explicitly set the ... | 410 |
540 | <reponame>dlee992/sdc<filename>sdc/extensions/indexes/empty_index_ext.py
# -*- coding: utf-8 -*-
# *****************************************************************************
# Copyright (c) 2019-2020, Intel Corporation All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modi... | 1,884 |
571 | <gh_stars>100-1000
/***************************************************************************
Copyright 2015 Ufora 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://w... | 1,497 |
716 | //
// Copyright (c) 2015-2019 CNRS, INRIA
// Copyright (c) 2016 Wandercraft, 86 rue de Paris 91400 Orsay, France.
//
#ifndef __pinocchio_multibody_constraint_generic_hpp__
#define __pinocchio_multibody_constraint_generic_hpp__
namespace pinocchio
{
template<int _Dim, typename _Scalar, int _Options>
struct trai... | 2,224 |
383 | """Parser for Switchbot BLE advertisements"""
import logging
from struct import unpack
from .helpers import (
to_mac,
to_unformatted_mac,
)
_LOGGER = logging.getLogger(__name__)
def parse_switchbot(self, data, source_mac, rssi):
"""Switchbot parser"""
msg_length = len(data)
switchbot_mac = sourc... | 882 |
670 | <filename>library/src/main/java/com/hw/photomovie/segment/strategy/RetryStrategy.java
package com.hw.photomovie.segment.strategy;
import com.hw.photomovie.PhotoMovie;
import com.hw.photomovie.model.PhotoData;
import com.hw.photomovie.segment.MovieSegment;
import java.util.List;
/**
* Created by yellowcat on 2015/6/... | 156 |
2,439 | <reponame>developer191/UACME<gh_stars>1000+
/*
Module name:
minirtl.h
Description:
header for string handling and conversion routines
Date:
1 Mar 2015
*/
#ifndef _MINIRTL_
#define _MINIRTL_
// string copy/concat/length
char *_strend_a(const char *s);
wchar_t *_strend_w(const wchar_t *s);
char *_strcpy_a(char *... | 1,738 |
5,349 | <reponame>Rubiel1/sktime
# -*- coding: utf-8 -*-
"""
rescaling.py
=========================
Signature rescaling methods. This implements the pre- and post- signature
rescaling methods along with generic scaling methods along feature
dimensions of 3D tensors.
Code for `rescale_path` and `rescale_signature` written by <N... | 910 |
1,932 | package cn.springcloud.book.crm.sales.domain.customer.repository;
import cn.springcloud.book.crm.sales.domain.customer.convertor.CustomerConvertor;
import cn.springcloud.book.crm.sales.domain.customer.entity.CustomerE;
import cn.springcloud.book.crm.sales.tunnel.datatunnel.CustomerTunnelI;
import org.xujin.halo.reposi... | 471 |
397 | #-*- coding:utf-8 -*-
# &Author AnFany
# 适用于多维输出
import numpy as np
import tensorflow as tf
'''基于TensorFlow构建训练函数'''
# 创建激活函数
def activate(input_layer, weights, biases, actfunc):
layer = tf.add(tf.matmul(input_layer, weights), biases)
if actfunc == 'relu':
return tf.nn.relu(layer)
el... | 2,605 |
522 | import ast
import os
import re
import sys
from fnmatch import fnmatchcase
from distutils.util import convert_path
from setuptools import setup, find_packages
def read(*path):
return open(os.path.join(os.path.abspath(os.path.dirname(__file__)),
*path)).read()
# Provided as an attri... | 2,416 |
409 | #ifndef __APPS_BS_TOOLS_CASBAR_REALIGNMENT_H__
#define __APPS_BS_TOOLS_CASBAR_REALIGNMENT_H__
#include "bisar_score_data.h"
#include "casbar_score_data.h"
#include "casbar_score.h"
#include "casbar_consensus_realign.h"
using namespace std;
using namespace seqan;
// sort operators
template <typename TMatches, t... | 4,332 |
542 | <filename>scripts/codegen_enums.py
#!/usr/bin/env python3
import sys, re, datetime, argparse, os.path, shutil
from py_modules.vk_enums_generator import EnumVisitor, ast
from copy import copy # so that we can copy objects
def codegen_enums(inputFilePath, outputFilePath = ''):
if False == os.path.isfile(inputFilePat... | 2,020 |
920 | <filename>softlearning/utils/gym.py<gh_stars>100-1000
from gym import spaces
DISCRETE_SPACES = (
spaces.Discrete,
spaces.MultiBinary,
spaces.MultiDiscrete,
)
CONTINUOUS_SPACES = (spaces.Box, )
def is_continuous_space(space):
return isinstance(space, CONTINUOUS_SPACES)
def is_discrete_space(space):... | 145 |
2,366 | <filename>src/main/java/org/thymeleaf/engine/ProcessorTemplateHandler.java
/*
* =============================================================================
*
* Copyright (c) 2011-2018, The THYMELEAF team (http://www.thymeleaf.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | 35,382 |
333 | # -*- coding: utf-8 -*-
# @Author : ydf
# @Time : 2019/8/8 0008 13:17
"""
工厂模式,通过broker_kind来生成不同中间件类型的消费者和发布者。
""" | 100 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.loganalytics.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annot... | 1,145 |
608 | // This file is part of VSTGUI. It is subject to the license terms
// in the LICENSE file found in the top-level directory of this
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
#include "../../../lib/cinvalidrectlist.h"
#include "../unittests.h"
namespace VSTGUI {
TEST_CASE (CInvalidRectList... | 547 |
5,133 | <filename>processor/src/test/java/org/mapstruct/ap/test/nestedsourceproperties/_target/ChartEntry.java<gh_stars>1000+
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.nestedsourceproperties._... | 550 |
361 | /**
* @file TextPlot.cpp
*
* A simple console-based data plotter.
*
* This file is part of the Aquila DSP library.
* Aquila is free software, licensed under the MIT/X11 License. A copy of
* the license is provided with the library in the LICENSE file.
*
* @package Aquila
* @version 3.0.0-dev
* @author <NAME>... | 804 |
5,169 | {
"name": "BeaconService",
"version": "2.14.0",
"summary": "Integrate beacon and geofence services into your iOS application.",
"description": "The Proximity SDK simplifies integration of beacons, geofences and proximity services into any mobile app.\nSign up at https://www.proximitydmp.com/signup_request to ge... | 386 |
486 | from odmantic import Field, Model
class Player(Model):
name: str
level: int = Field(default=1, ge=1)
p = Player(name="Dash")
print(repr(p))
#> Player(id=ObjectId('5f7cdbfbb54a94e9e8717c77'), name='Dash', level=1)
| 95 |
2,617 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) Vispy Development Team. All Rights Reserved.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
# -----------------------------------------------------------------------------
... | 373 |
348 | {"nom":"Mazé-Milon","circ":"3ème circonscription","dpt":"Maine-et-Loire","inscrits":4055,"abs":2160,"votants":1895,"blancs":118,"nuls":47,"exp":1730,"res":[{"nuance":"REM","nom":"<NAME>","voix":1064},{"nuance":"LR","nom":"<NAME>","voix":666}]} | 101 |
880 | /**
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 3,468 |
543 | <reponame>CoenRijsdijk/Bytecoder
/*
* Copyright (c) 2002, 2005, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 o... | 1,669 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.