max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
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.mls.weight;
import android.an... | 2,657 |
1,273 | package org.broadinstitute.hellbender.utils.text;
import org.broadinstitute.hellbender.exceptions.GATKException;
import java.util.ArrayList;
import java.util.List;
/**
* Common utilities for dealing with text formatting.
*/
public final class TextFormattingUtils {
private TextFormattingUtils(){}
/**
... | 960 |
4,339 | <filename>modules/core/src/test/java/org/apache/ignite/internal/GridComputationBinarylizableClosuresSelfTest.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 ... | 5,803 |
3,227 | #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Periodic_3_Delaunay_triangulation_traits_3.h>
#include <CGAL/Periodic_3_Delaunay_triangulation_3.h>
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Periodic_3_Delaunay_triangulation_traits_3<K> Gt;
typedef CG... | 644 |
5,272 | //
// LMJHDZSQViewController.h
// PLMMPRJK
//
// Created by HuXuPeng on 2017/10/24.
// Copyright © 2017年 GoMePrjk. All rights reserved.
//
#import "LMJCALayerViewController.h"
@interface LMJHDZSQViewController : LMJCALayerViewController
@end
| 100 |
575 | <filename>extensions/common/api/declarative_net_request/dnr_manifest_handler.cc
// 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 "extensions/common/api/declarative_net_request/dnr_manifest_handl... | 2,345 |
14,668 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/paint/document_marker_painter.h"
#include "base/cxx17_backports.h"
#include "build/build_config.h"
#include "th... | 4,798 |
490 | # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
# pylint: skip-file
from mock import patch
from cdk_constructs.adf_codepipeline import Action
from adf_codepipeline_test_constants import BASE_MAP_PARAMS
@patch('cdk_constructs.adf_codepipeline._codepipeline.Cf... | 662 |
449 | <filename>pycox/preprocessing/label_transforms.py
import warnings
import numpy as np
from sklearn.preprocessing import StandardScaler
from pycox.preprocessing.discretization import (make_cuts, IdxDiscUnknownC, _values_if_series,
DiscretizeUnknownC, Duration2Idx)
class LabTransCoxTime:
"""
Label transforms... | 4,037 |
824 | <filename>cudaconvnet/include/jpeg.h
/*
* Copyright 2014 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-... | 656 |
841 | package cgeo.geocaching.command;
import cgeo.geocaching.models.Geocache;
import android.app.Activity;
import androidx.annotation.NonNull;
import java.util.Collection;
public abstract class AbstractCachesCommand extends AbstractCommand {
@NonNull private final Collection<Geocache> caches;
public AbstractC... | 239 |
707 | <reponame>luciferldy/EverMemo<filename>libraries/EverNoteEx/src/com/evernote/client/android/AsyncReflector.java
package com.evernote.client.android;
import android.os.Handler;
import android.os.Looper;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.Executo... | 1,170 |
407 | package com.alibaba.tesla.appmanager.common.util;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import java.io.File;
/**
* @author QianMo
* @date 2020/07/10.
*/
@Slf4j
public class ResourcesUtil {
private static String url;
public static String getURL() {
if (Stri... | 290 |
667 | /*
* Copyright © 2013-2017 <NAME>
*
* This file is part of FreshPlayerPlugin.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the r... | 4,692 |
450 | <reponame>ericoporto/ags-old<gh_stars>100-1000
/***************************************************************************/
/* */
/* ftdbgmem.c */
/* ... | 8,122 |
915 | import logging
from casbin.rbac import RoleManager
class RoleManager(RoleManager):
"""provides a default implementation for the RoleManager interface"""
all_roles = dict()
max_hierarchy_level = 0
def __init__(self, max_hierarchy_level=10):
self.logger = logging.getLogger(__name__)
s... | 4,865 |
325 | <filename>PyFin/tests/testSuite.py
# -*- coding: utf-8 -*-
u"""
Created on 2015-7-13
@author: cheng.li
"""
from simpleutils import add_parent_path
add_parent_path(__file__, 3)
from simpleutils import TestRunner
from simpleutils import CustomLogger
import PyFin.tests.api as api
import PyFin.tests.Analysis as Analysi... | 1,475 |
681 | {
"dismissibleByUser": "false",
"messageTexts": [
{
"lang": "en",
"message": "Banner Message For Deletion"
},
{
"lang": "fr",
"message": "Banner Message For Deletion"
}
]
} | 91 |
335 | <filename>S/Sanctimonious_adjective.json
{
"word": "Sanctimonious",
"definitions": [
"Making a show of being morally superior to other people."
],
"parts-of-speech": "Adjective"
} | 82 |
421 |
//<Snippet1>
#using <System.dll>
using namespace System;
using namespace System::Diagnostics;
void CleanUp();
void CreateEventSourceSample1( String^ messageFile );
void WriteEventSample1();
void WriteEventSample2();
void EventInstanceSamples();
//<Snippet2>
// The following constants match the message... | 3,563 |
777 | // 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.
#ifndef CONTENT_COMMON_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_
#define CONTENT_COMMON_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_
#include <map>
#include <memo... | 686 |
2,146 | #include <spdlog/spdlog.h>
#include <spdlog/sinks/stdout_sinks.h>
int main(int argc, char* argv[]) {
auto console = spdlog::stdout_logger_mt("console");
console->info("Hello from INFO");
return 0;
}
| 85 |
868 | package com.sedmelluq.discord.lavaplayer.source.soundcloud;
public interface SoundCloudTrackFormat {
String getTrackId();
String getProtocol();
String getMimeType();
String getLookupUrl();
}
| 63 |
2,690 | #include <aslam/backend/DesignVariable.hpp>
namespace aslam {
namespace backend {
DesignVariable::DesignVariable() :
_blockIndex(-1), _columnBase(-1), _isMarginalized(false), _isActive(false), _scaling(1.0)
{
}
DesignVariable::~DesignVariable()
{
}
/// \brief update the design ... | 1,374 |
637 | /*
* Microsoft JDBC Driver for SQL Server Copyright(c) Microsoft Corporation All rights reserved. This program is made
* available under the terms of the MIT License. See the LICENSE file in the project root for more information.
*/
package com.microsoft.sqlserver.jdbc.fedauth;
import static org.junit.Assert.... | 4,495 |
647 | <filename>trick_source/er7_utils/integration/core/include/integrator_result_merger_container.hh
/**
* @if Er7UtilsUseGroups
* @addtogroup Er7Utils
* @{
* @addtogroup Integration
* @{
* @endif
*/
/**
* @file
* Defines the class IntegratorResultMergerContainer, which encapsulates an
* IntegratorResultMerger us... | 1,125 |
937 | <gh_stars>100-1000
def test1():
l = []
for i in range(1000):
l = l + [i]
def test2():
l = []
for i in range(1000):
l.append(i)
def test3():
l = [i for i in range(1000)]
def test4():
l = list(range(1000))
from timeit import Timer
# setup中是从从__main__也就是当前文件名02basic中找到test1... | 1,678 |
5,169 | {
"name": "S-Safty",
"version": "0.1.2",
"summary": "Made the component of common module thread-safty simply",
"swift_versions": "4.0",
"description": "S-Safty provides some module which includes array and dictionary made thread-safty",
"homepage": "https://github.com/FelixLinBH/S-Safty",
"license": {
... | 262 |
1,555 | <gh_stars>1000+
#include <stdlib.h>
#include <assert.h>
typedef struct Residue {
short (*residue_books)[8];
} Residue;
int main () {
Residue r;
Residue* pr = &r;
void* p = malloc (sizeof (pr->residue_books[0]) * 10);
pr->residue_books = (short (*)[8]) p;
for (int i = 0; i < 10; ++i)
for (int j = 0; j ... | 204 |
339 | #pragma once
#include <shared/AfxMath.h>
#include "MirvCalcs.h"
using namespace Afx::Math;
class Aiming
{
public:
Aiming();
bool Aim(double deltaT, Vector3 const camOrigin, double & yPitch, double & zYaw, double & xRoll);
void TargetPoint(Vector3 origin);
void TargetPointFromLast(Vector3 offse... | 589 |
1,302 | <reponame>elofun/node-webrtc
#include "src/enums/webrtc/sdp_semantics.h"
#include <webrtc/api/peer_connection_interface.h> // IWYU pragma: keep
#define ENUM(X) SDP_SEMANTICS ## X
#include "src/enums/macros/impls.h"
#undef ENUM
| 106 |
1,279 | //============================================================================
#include "MortonTable.h"
//============================================================================
const unsigned short Javelin::Data::MORTON_TABLE[256] =
{
0x0000, 0x0001, 0x0004, 0x0005, 0x0010, 0x0011, 0x0014, 0x0015,
0x00... | 1,446 |
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... | 886 |
328 | <reponame>vanvught/rpidmx512<filename>lib-dmxserial/src/dmxserial.cpp
/**
* @file dmxserial.cpp
*
*/
/* Copyright (C) 2020 by <NAME> mailto:<EMAIL>
*
* 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... | 2,886 |
749 | // =======================================================================
// GUIslice library (extensions)
// - <NAME>
// - https://www.impulseadventure.com/elec/guislice-gui.html
// - https://github.com/ImpulseAdventure/GUIslice
// =======================================================================
//
// The MIT ... | 6,184 |
831 | /*
* Copyright (C) 2019 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,875 |
1,192 | // RUN: %clang_cc1 -triple powerpc64-unknown-unknown -faltivec -ffreestanding -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -faltivec -ffreestanding -emit-llvm -fno-lax-vector-conversions -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -faltivec -ffre... | 239 |
5,865 | /*
* Copyright 2021 ThoughtWorks, 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,043 |
13,585 | <filename>mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/h2/idgenerator/IdentifierGeneratorTest.java
package com.baomidou.mybatisplus.test.h2.idgenerator;
import com.baomidou.mybatisplus.test.h2.idgenerator.mapper.*;
import com.baomidou.mybatisplus.test.h2.idgenerator.model.*;
import org.junit.jupiter.api.As... | 1,616 |
468 | <filename>Src/Plugins/GLDebugContext/GLDebugContext.cpp
// TestPlugin.cpp : Defines the entry point for the DLL application.
//
#include "../MainLib/InterceptPluginInterface.h"
#include "DebugContext.h"
#include <PluginCommon.cpp>
///////////////////////////////////////////////////////////////////////////////
//
In... | 244 |
2,262 | <filename>libmamba/data/conda_exe.hpp
/*
This is a conda-specific repackaged launcher.c from Python setuptools.
The original source code for launcher.c can be found here:
https://raw.githubusercontent.com/python/cpython/3.7/PC/launcher.c The source code for the conda.exe
launcher can be found here:
https://github.com/c... | 326,528 |
7,886 | /*
* Copyright (c) Meta Platforms, Inc. and 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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 736 |
348 | <filename>docs/data/leg-t2/016/01601154.json
{"nom":"Gond-Pontouvre","circ":"1ère circonscription","dpt":"Charente","inscrits":3909,"abs":2210,"votants":1699,"blancs":88,"nuls":49,"exp":1562,"res":[{"nuance":"REM","nom":"<NAME>","voix":891},{"nuance":"FI","nom":"<NAME>","voix":671}]} | 116 |
1,217 | <filename>Modules/ego_planner/ego-planner-swarm/src/uav_simulator/Utils/quadrotor_msgs/include/quadrotor_msgs/comm_types.h
#ifndef __QUADROTOR_MSGS_COMM_TYPES_H__
#define __QUADROTOR_MSGS_COMM_TYPES_H__
#define TYPE_SO3_CMD 's'
struct SO3_CMD_INPUT
{
// Scaling factors when decoding
int16_t force[3]; // /500
int... | 877 |
560 | // Copyright (c) 2019 by <NAME>. All rights reserved.
// Copyright (c) 2021 by Apex.AI 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.apach... | 3,407 |
1,664 | #!/usr/bin/env python
'''
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")... | 1,392 |
413 | <reponame>CatKang/zeppelin
// Copyright 2017 Qihoo
//
// 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 applicabl... | 1,952 |
1,056 | <filename>php/php.editor/src/org/netbeans/modules/php/editor/csl/OccurrencesFinderImpl.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... | 3,562 |
572 | from pydantic import BaseSettings, BaseModel
from typing import Literal, Union
class TestConfig(BaseSettings):
env: Literal['test']
xpto: str = 'MEU AMBIENTE DE TESTES'
class ProdConfig(BaseSettings):
env: Literal['prod']
gatinho: str = 'MEU AMBIENTE DE GATINHO'
class DevConfig(BaseSettings):
... | 176 |
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 ... | 5,402 |
542 | /*
* Copyright ©2018 vbill.cn.
* <p>
* 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... | 942 |
672 | /*
* Copyright (c) Facebook, Inc. and 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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 4,948 |
6,304 | <filename>src/core/SkTMultiMap.h
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkTMultiMap_DEFINED
#define SkTMultiMap_DEFINED
#include "src/core/SkTDynamicHash.h"
/** A set that contains pointers to instances o... | 2,503 |
1,062 | /**
* Copyright 2014 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 requir... | 1,526 |
315 | <reponame>shink/incubator-inlong<gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache... | 1,475 |
678 | <filename>iOSOpenDev/frameworks/iTunesStore.framework/Headers/ISDialog.h<gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iTunesStore.framework/iTunesStore
*/
#import <iTunesStore/XXUnknownSuperclass.h>
#import <iTunesStore/ISDialog.h>
@class NSL... | 2,772 |
6,181 | <filename>qrenderdoc/3rdparty/toolwindowmanager/ToolWindowManagerWrapper.h
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software wi... | 1,089 |
4,681 | # This isn't really a package, everything in here is a standalone script. This
# __init__.py is just to fool setup.py into actually installing the things.
| 38 |
505 | <filename>ext/htslib/cram/vlen.h
/*
Author: <NAME> (<EMAIL>)
Copyright (c) 1995-1996 MEDICAL RESEARCH COUNCIL
All rights reserved
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1 Redistributions of source code must re... | 580 |
337 | class Foo {
static void foo(int n) {
}
}
class Test {
static void test() {
Foo.foo();
Foo.foo(1);
Foo.foo(1);
Foo.foo(3);
}
} | 97 |
777 | <filename>services/ui/ws/server_window_compositor_frame_sink_manager_test_api.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 "services/ui/ws/server_window_compositor_frame_sink_manager_test... | 485 |
348 | {"nom":"<NAME>","dpt":"Côte-d'Or","inscrits":44,"abs":18,"votants":26,"blancs":3,"nuls":0,"exp":23,"res":[{"panneau":"1","voix":16},{"panneau":"2","voix":7}]} | 72 |
433 |
/*
* Copyright 2018, Oath Inc
* Licensed under the terms of the Apache License 2.0. Please refer to accompanying LICENSE file for terms.
*/
package com.oath.halodb;
import java.nio.ByteBuffer;
/**
* Metadata stored in the in-memory index for each key.
*/
class InMemoryIndexMetaData {
private final int fil... | 583 |
922 | <gh_stars>100-1000
/*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.test.spi.nodenameprovider;
import java.io.Serializ... | 945 |
34,359 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include <windows.h>
#include <wil/result.h>
#include <wil/tokenhelpers.h>
#include "util.h"
#include <cstdio>
#include <fstream>
#include <memory>
PCWSTR GetIntegrityLevel()
{
DWORD dwIntegrityLevel = 0;
... | 4,352 |
455 | <gh_stars>100-1000
#ifdef ANDROID
#include "EventLoop.h"
#include "Logger.h"
#include "Scenes/SceneManager.h"
#include "Graphics/GraphicsManager.h"
#include <unistd.h>
#include "Input/InputManager.h"
#include "StarEngine.h"
#include "Sound/AudioManager.h"
namespace star {
EventLoop * EventLoop::mEventLoo... | 2,449 |
393 | package pl.otros.swing.config.test;
import org.apache.commons.configuration.Configuration;
import pl.otros.swing.config.AbstractConfigView;
import pl.otros.swing.config.ValidationResult;
import javax.swing.*;
import java.awt.*;
public class View1 extends AbstractConfigView {
private final JCheckBox jCheckBox;
pr... | 485 |
1,159 | <gh_stars>1000+
"""Bokeh Density Comparison plot."""
def plot_dist_comparison(
ax,
nvars,
ngroups,
figsize,
dc_plotters,
legend,
groups,
textsize,
labeller,
prior_kwargs,
posterior_kwargs,
observed_kwargs,
backend_kwargs,
show,
):
"""Bokeh Density Comparison... | 192 |
878 | <reponame>fansaien/parallec<gh_stars>100-1000
/*
Copyright [2013-2015] eBay Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless... | 9,044 |
511 | #!/usr/bin/env python
###########################################################################
#
# Copyright 2016 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 License.
# You may obtain a copy of ... | 5,866 |
815 | <gh_stars>100-1000
/*=========================================================================
Program: ParaView
Module: vtkConvertPolyhedraFilter.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is di... | 659 |
778 | <filename>shared/source/sku_info/operations/windows/sku_info_receiver.h
/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/os_interface/windows/sharedata_wrapper.h"
#include "shared/source/os_interface/windows/windows_wrapper.h"
#include "sku... | 2,423 |
302 | <filename>ProcMonX/CallStackDlg.cpp
#include "pch.h"
#include "CallStackDlg.h"
#include "EventData.h"
#include "SymbolManager.h"
#include "ClipboardHelper.h"
#include "DialogHelper.h"
CCallStackDlg::CCallStackDlg(EventData* data) : m_pData(data) {
ATLASSERT(data);
}
DWORD CCallStackDlg::LoadSymbolsThread() {
auto s... | 1,670 |
3,586 | package com.linkedin.datahub.graphql.scalar;
public class LongScalarType {
}
| 30 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "rpcserviceaddress.h"
#include "rpctarget.h"
#include <vespa/messagebus/itimer.h>
#include <map>
class FRT_Supervisor;
namespace mbus {
/**
* Class used to reuse targets for the same addre... | 1,274 |
14,668 | <filename>services/network/trust_tokens/expiry_inspecting_record_expiry_delegate.cc
// 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 "services/network/trust_tokens/expiry_inspecting_record_expir... | 748 |
14,425 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may n... | 2,569 |
387 | <gh_stars>100-1000
/*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Version 2.0 (the "License"); you may not... | 1,803 |
1,816 | <filename>src/masonite/exceptions/__init__.py
from .ExceptionHandler import ExceptionHandler
from .DumpExceptionHandler import DumpExceptionHandler
from .JsonHandler import JsonHandler
from .DD import DD
from .exceptions import (
InvalidRouteCompileException,
RouteMiddlewareNotFound,
ContainerError,
Mis... | 296 |
521 | #include <elle/serialization/SerializerOut.hh>
namespace elle
{
namespace serialization
{
SerializerOut::SerializerOut(bool versioned)
: Super(versioned)
{}
SerializerOut::SerializerOut(Versions versions,
bool versioned)
: Super(std::move(versions), version... | 236 |
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... | 5,116 |
1,194 | <reponame>gematik-fue/hapi-fhir<gh_stars>1000+
package ca.uhn.fhir.tinder.model;
import java.util.ArrayList;
import java.util.List;
public class SimpleSetter {
private String myDatatype;
private List<Parameter> myParameters = new ArrayList<Parameter>();
private String mySuffix;
public String getDatatype() {
r... | 372 |
595 |
import torch.nn as nn
import torch.nn.functional as F
from im2mesh.layers import ResnetBlockFC
class Decoder(nn.Module):
''' Decoder class.
As discussed in the paper, we implement the OccupancyNetwork
f and TextureField t in a single network. It consists of 5
fully-connected ResNet blocks with ReLU ... | 1,247 |
511 | <reponame>ziyik/TizenRT-1<filename>framework/src/media/demux/mpeg2ts/Section.h<gh_stars>100-1000
/******************************************************************
*
* Copyright 2019 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this... | 765 |
342 | <gh_stars>100-1000
package sentinelgroup.io.sentinel.viewmodel;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.ViewModel;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.List;
import java.util.Locale;
import ... | 2,403 |
2,288 | #!/usr/bin/env python3
from pyln.client import Plugin
import json
import os.path
plugin = Plugin()
@plugin.subscribe("balance_snapshot")
def notify_balance_snapshot(plugin, balance_snapshot, **kwargs):
# we save to disk so that we don't get borked if the node restarts
# assumes notification calls are sync... | 284 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-v2m5-q8w7-pr85/GHSA-v2m5-q8w7-pr85.json
{
"schema_version": "1.2.0",
"id": "GHSA-v2m5-q8w7-pr85",
"modified": "2022-05-13T01:47:58Z",
"published": "2022-05-13T01:47:58Z",
"aliases": [
"CVE-2017-9479"
],
"details": "The Comcast firmware on Cisco DPC3939 (fir... | 529 |
415 | <filename>bt_editor/models/BehaviorTreeNodeModel.hpp
#pragma once
#include <QObject>
#include <QLabel>
#include <QFile>
#include <QLineEdit>
#include <QFormLayout>
#include <QEvent>
#include <nodes/NodeDataModel>
#include <iostream>
#include <memory>
#include <vector>
#include <map>
#include <functional>
#include <QSv... | 1,033 |
3,384 | <reponame>teemobean/XVim
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#pragma mark -
//
// File: /Applications/Xcode.app/Contents/PlugIns/DebuggerLLDBService.ideplugin/Contents/MacOS/DebuggerLLDBService
// UUID: 7D838EE7-C03B-3D44-... | 672 |
343 | <filename>spert/opt.py
# optional packages
try:
import tensorboardX
except ImportError:
tensorboardX = None
try:
import jinja2
except ImportError:
jinja2 = None
try:
import spacy
except ImportError:
spacy = None
| 94 |
1,718 | /*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* T... | 16,405 |
310 | {
"name": "Pawn",
"description": "A backpack.",
"url": "https://www.chromeindustries.com/pawn-backpack"
} | 43 |
1,858 | <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
* ... | 2,034 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/ImageCapture.framework/ImageCapture
*/
#import <ImageCapture/ImageCapture-Structs.h>
#import <ImageCapture/XXUnknownSuperclass.h>
@class NSString, DeviceManager;
@interface ICDeviceProperties : XXUnknownSuperclass ... | 1,597 |
2,151 | <reponame>AOSiP/platform_external_libcxx
//===----------------------------------------------------------------------===//
//
// 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.
//
//==... | 285 |
818 | <reponame>aloubyansky/kogito-runtimes
/*
* Copyright 2021 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 at
*
* http://www.apache.org/licenses/... | 1,281 |
682 | #ifndef CONSTRAINTS_LOAD_H_
#define CONSTRAINTS_LOAD_H_
#include "region.h"
#include "partition.h"
#include "partition_region.h"
#include "vpr_constraints.h"
#include "vtr_vector.h"
///@brief Used to print vpr's floorplanning constraints to an echo file "vpr_constraints.echo"
void echo_constraints(char* filename, Vpr... | 134 |
7,956 | <filename>external-deps/python-lsp-server/pylsp/hookspecs.py
# Copyright 2017-2020 Palantir Technologies, Inc.
# Copyright 2021- Python Language Server Contributors.
# pylint: disable=redefined-builtin, unused-argument
from pylsp import hookspec
@hookspec
def pylsp_code_actions(config, workspace, document, range, co... | 804 |
3,182 | package de.plushnikov.builder.builderdefault;
import lombok.Builder;
import lombok.NonNull;
import lombok.ToString;
import lombok.Value;
@Value
@Builder
@ToString
public class LombokTest {
@NonNull
String value;
@Builder.Default
String valueD = "foo";
public static void main(String[] args) {
LombokTes... | 195 |
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
#include "Federa... | 632 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.