max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
6,270 | [
{
"type": "feature",
"category": "DocDB",
"description": "This release provides support for cluster delete protection and the ability to stop and start clusters."
},
{
"type": "feature",
"category": "EC2",
"description": "This release adds support for specif... | 278 |
482 | package io.cattle.platform.util.exception;
import org.slf4j.Logger;
public class ServiceInstanceAllocateException extends InstanceException implements LoggableException {
private static final long serialVersionUID = -5376205462062705074L;
@Override
public void log(Logger log) {
log.info(this.get... | 155 |
711 | package com.java110.api.bmo.payFeeDetailDiscount.impl;
import com.alibaba.fastjson.JSONObject;
import com.java110.api.bmo.ApiBaseBMO;
import com.java110.api.bmo.payFeeDetailDiscount.IPayFeeDetailDiscountBMO;
import com.java110.core.context.DataFlowContext;
import com.java110.intf.fee.IPayFeeDetailDiscountInnerServiceS... | 1,448 |
775 | /* automatically generated by pepy 7.0 #14 (nanook.mcc.com), do not edit! */
#include "psap.h"
#define advise PY_advise
void advise ();
/* Generated from module IMISC */
#include <stdio.h>
#include "IMISC-types.h"
#ifndef PEPYPARM
#define PEPYPARM char *
#endif /* PEPYPARM */
extern PEPYPARM NullParm;
/* ARGSUSE... | 853 |
2,392 | // Copyright (c) 1997-2007 ETH Zurich (Switzerland).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL: https://github.com/CGAL/cgal/blob/v5.1/QP_solver/include/CGAL/QP_solver/QP_solver_bounds_impl.h $
// $Id: QP_solver_bounds_impl.h 0779373 2020-03-26T13:31:46+01:00 Sébastien Loriot
/... | 1,487 |
412 | /*
Copyright 2015 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 required by applicable law or agreed to in wri... | 11,976 |
5,169 | {
"name": "ZJSPhotoManager",
"version": "0.2.0",
"summary": "a convenient photo manager tool for ios project.",
"description": "a convenient photo manager tool for ios project, it is compatible with both ALAssetsLibrary and PHPhotoLibrary.",
"homepage": "https://github.com/allenzjs/ZJSPhotoManager",
"licens... | 236 |
14,668 | # 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.
import unittest
class AutofillTestResult(unittest.TextTestResult):
"""A test result class that can print formatted text results to a stream.
Used by A... | 438 |
1,734 | <gh_stars>1000+
#pragma once
#include "sc2api/sc2_game_settings.h"
namespace sc2 {
bool TestFeatureLayers(int argc, char** argv);
} | 58 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-m87h-fqqj-mh8j",
"modified": "2022-04-22T00:24:20Z",
"published": "2022-04-22T00:24:20Z",
"aliases": [
"CVE-2011-1474"
],
"details": "A locally locally exploitable DOS vulnerability was found in pax-linux version... | 472 |
5,079 | <filename>apps/oozie/src/oozie/migrations/0005_initial.py
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-06 18:55
from __future__ import unicode_literals
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migra... | 654 |
369 | // Copyright (c) 2017-2021, Mudita <NAME>. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "ALS31300.hpp"
namespace drivers::als31300
{
conf_reg::conf_reg(whole_reg_t whole_reg)
{
user_eeprom = whole_reg & 0b11111;
int_latch_enable = (w... | 2,761 |
2,151 | <reponame>zealoussnow/chromium
// 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.
#ifndef CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PROMPT_PREFS_MANAGER_H_
#define CHROME_BROWSER_SA... | 603 |
6,224 | /* ST Microelectronics LIS2DS12 3-axis accelerometer driver
*
* Copyright (c) 2019 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*
* Datasheet:
* https://www.st.com/resource/en/datasheet/lis2ds12.pdf
*/
#define DT_DRV_COMPAT st_lis2ds12
#include <drivers/sensor.h>
#include <kernel.h>
#include <de... | 5,174 |
911 | package org.apache.bcel.util;
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, a... | 4,051 |
6,224 | /*
* Copyright (c) 2018 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <ztest.h>
extern void test_isr_dynamic(void);
extern void test_nested_isr(void);
extern void test_prevent_interruption(void);
extern void test_isr_regular(void);
extern void test_isr_offload_job_multiple(void);
extern vo... | 373 |
3,402 | /*
* 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,478 |
1,233 | <filename>mantis-server/mantis-server-worker/src/test/java/io/mantisrx/server/worker/jobmaster/control/utils/IntegratorTest.java
/*
* Copyright 2019 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 ... | 896 |
360 | <reponame>Yanci0/openGauss-server<gh_stars>100-1000
/*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.cos... | 1,253 |
1,043 | <reponame>JeffMuchine/micro-server
package app.singleton.com.oath.micro.server.copy;
import org.springframework.stereotype.Component;
import com.oath.micro.server.dist.lock.DistributedLockService;
@Component
public class DummyLock implements DistributedLockService {
@Override
public boolean tryLock(String key) {
... | 134 |
348 | <filename>docs/data/leg-t2/077/07704032.json
{"nom":"Beton-Bazoches","circ":"4ème circonscription","dpt":"Seine-et-Marne","inscrits":519,"abs":307,"votants":212,"blancs":5,"nuls":1,"exp":206,"res":[{"nuance":"LR","nom":"<NAME>","voix":151},{"nuance":"REM","nom":"<NAME>","voix":55}]} | 119 |
1,217 | /*
[auto_generated]
boost/numeric/odeint/stepper/detail/rotating_buffer.hpp
[begin_description]
Implemetation of a rotating (cyclic) buffer for use in the Adam Bashforth stepper
[end_description]
Copyright 2009-2011 <NAME>
Copyright 2009-2011 <NAME>
Distributed under the Boost Software License, Version 1.0.
... | 650 |
3,301 | <filename>core/src/test/java/com/alibaba/alink/operator/common/linear/unarylossfunc/UnaryLossFuncTest.java
package com.alibaba.alink.operator.common.linear.unarylossfunc;
import com.alibaba.alink.testutil.AlinkTestBase;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
/**
* Test for the unary loss ... | 734 |
14,668 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/typed_arrays/array_buffer/array_buffer_contents.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace bl... | 562 |
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 OffscreenCanvasRenderingContext2D_h
#define OffscreenCanvasRenderingContext2D_h
#include "core/html/canvas/CanvasContextCreationAttributes.h"
#in... | 1,241 |
1,473 | /*
* Autopsy
*
* Copyright 2020 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lice... | 788 |
2,305 | <gh_stars>1000+
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# type: ignore
import logging
import random
import warnings
import torch
import torch.nn as nn
from ..interface import BaseOneShotTrainer
from .utils import AverageMeterGroup, replace_layer_choice, replace_input_choice, to_devi... | 3,422 |
2,270 | <filename>modules/juce_audio_basics/midi/juce_MidiMessageSequence.h
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2020 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-... | 4,829 |
979 |
import os
from torch.nn.parameter import Parameter
from openprompt.utils.logging import logger
from openprompt.data_utils import InputExample, InputFeatures
from typing import *
from transformers import PreTrainedModel
from transformers.tokenization_utils import PreTrainedTokenizer
from openprompt import Template... | 2,044 |
311 | /*
* Copyright 2017 LinkedIn Corp.
*
* 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 i... | 1,928 |
1,766 | #include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <rtp/RtpPaddingManagerHandler.h>
#include <rtp/RtpHeaders.h>
#include <MediaDefinitions.h>
#include <WebRtcConnection.h>
#include <stats/StatNode.h>
#include <Stats.h>
#include <queue>
#include <string>
#include <vector>
#include "../utils/Mocks.h"
#include ... | 4,227 |
450 | /*
* 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,725 |
1,125 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 1,120 |
614 | [
{ "home": "West Ham United", "away": "Newcastle United", "homescore": "2", "awayscore": "0" },
{ "home": "<NAME>", "away": "Deportivo La Coruña", "homescore": "1", "awayscore": "3" },
{ "home": "Sampdoria", "away": "Bologna", "homescore": "2", "awayscore": "0" },
{ "home": "Geylang International", "away": "Ho... | 1,265 |
2,136 | package com.ulisesbocchio.jasyptspringboot.encryptor;
import com.ulisesbocchio.jasyptspringboot.configuration.StringEncryptorBuilder;
import com.ulisesbocchio.jasyptspringboot.properties.JasyptEncryptorConfigurationProperties;
import com.ulisesbocchio.jasyptspringboot.util.Singleton;
import lombok.extern.slf4j.Slf4j;
... | 1,041 |
387 | <reponame>flygod1159/Arcane-Engine
#include "arcpch.h"
#include "TextureLoader.h"
#include <Arcane/Graphics/Texture/Cubemap.h>
#include <Arcane/Graphics/Texture/Texture.h>
namespace Arcane
{
// Static declarations
std::unordered_map<std::string, Texture*> TextureLoader::m_TextureCache;
Texture *TextureLoader::s_De... | 1,464 |
432 | <reponame>lambdaxymox/DragonFlyBSD
/*-
* Copyright (c) 1983-2003, Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of sourc... | 909 |
13,585 | <filename>mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/batch/Entity.java<gh_stars>1000+
package com.baomidou.mybatisplus.test.batch;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @author miemie
* @since 2020-06-23
*/
@Data
@NoArgsConstructor
public class Entit... | 199 |
348 | {"nom":"Salles-Mongiscard","circ":"3ème circonscription","dpt":"Pyrénées-Atlantiques","inscrits":245,"abs":122,"votants":123,"blancs":8,"nuls":8,"exp":107,"res":[{"nuance":"SOC","nom":"<NAME>","voix":61},{"nuance":"REM","nom":"<NAME>","voix":46}]} | 101 |
2,098 | <filename>src/aggregate/expr/parser.h
#define AND 1
#define OR 2
#define NOT 3
#define EQ 4
#define NE 5
#define LT 6
#define LE ... | 776 |
2,151 | <gh_stars>1000+
// Copyright 2013 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 "media/audio/sounds/sounds_manager.h"
#include <vector>
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include... | 1,195 |
3,702 | <reponame>mondeique/metatron-discovery<filename>discovery-server/src/main/java/app/metatron/discovery/domain/favorite/Favorite.java
package app.metatron.discovery.domain.favorite;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persiste... | 683 |
625 | <gh_stars>100-1000
/** @file util.h
* @brief header/implementation file for utility functions used by the node
* module
*
* @author <NAME>
* @author <NAME>
*
* The MIT License (MIT)
*
* Copyright (c) 2015, 2016, 2017 PayPal
*
* Permission is hereby granted, free of charge, to any person obtaining a c... | 842 |
2,494 | /*
* chacha20.h - header file for ChaCha20 implementation.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef FREEBL_CHACHA20_H_
#define FREEBL_CHACHA20_... | 263 |
6,342 | <reponame>vikram0207/django-rest
from allauth.socialaccount.providers.oauth.urls import default_urlpatterns
from .provider import TrelloProvider
urlpatterns = default_urlpatterns(TrelloProvider)
| 64 |
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.
#ifndef CHROME_BROWSER_CHROMEOS_POLICY_ACTIVE_DIRECTORY_POLICY_MANAGER_H_
#define CHROME_BROWSER_CHROMEOS_POLICY_ACTIVE_DIRECTORY_POLICY_MANAGER_H_
#incl... | 2,446 |
315 | package no.nordicsemi.android.mesh;
import java.util.List;
import androidx.annotation.NonNull;
public class ScenesConfig extends ExportConfig {
/**
* Use this class to configure all Scenes. Exported scenes will not contain addresses of excluded nodes.
*/
public static class ExportAll implements Bu... | 594 |
544 | <reponame>reimerp/hvac<gh_stars>100-1000
from hvac.v1 import Client
__all__ = ("Client",)
| 41 |
1,212 | /** @file vl_version.c
** @brief vl_version MEX definition
** @author <NAME>
**/
/*
Copyright (C) 2007-12 <NAME> and <NAME>.
All rights reserved.
This file is part of the VLFeat library and is made available under
the terms of the BSD license (see the COPYING file).
*/
#include "mexutils.h"
#include <vl/string... | 739 |
945 | <filename>Modules/Core/SpatialObjects/include/itkSpatialObjectFactory.h
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 659 |
973 | /*_##########################################################################
_##
_## Copyright (C) 2016 Pcap4J.org
_##
_##########################################################################
*/
package org.pcap4j.packet;
import java.nio.ByteOrder;
import org.pcap4j.packet.RadiotapPacket.RadiotapData;
i... | 1,523 |
377 | /*******************************************************************************
* * Copyright 2016 Impetus Infotech.
* *
* * 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
* *
... | 1,456 |
1,030 | // Copyright (c) 2012 Youdao. All rights reserved. Use of this source code is
// governed by a BSD-style license that can be found in the LICENSE file.
#ifndef HEX_INCLUDE_HEX_CAPI_H_
#define HEX_INCLUDE_HEX_CAPI_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "include/capi/cef_base_capi.h"
///
// This function ... | 213 |
2,434 | <reponame>SergKhram/swagger2markup<gh_stars>1000+
/*
* 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
*
*... | 1,597 |
860 | /*
* 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 ... | 2,152 |
333 | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 消费者通知信息
*
* @author auto create
* @since 1.0, 2020-12-14 14:56:35
*/
public class ConsumerNotifyIstd extends AlipayObject {
private static final long serialVersionUID = 4837759... | 996 |
326 | /*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2017 Intel Corporation. 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 noti... | 7,342 |
853 | <reponame>blin00/tinyssh
/*
- based on tweetnacl 20140427 (http://tweetnacl.cr.yp.to/software.html)
*/
#include "crypto_int64.h"
#include "crypto_uint32.h"
#include "crypto_uint64.h"
#include "cleanup.h"
#include "sc25519.h"
#define FOR(i,n) for (i = 0;i < n;++i)
static const crypto_uint64 L[32] = {0xed, 0xd3, 0xf5,... | 845 |
2,151 | {
"name": "permissions/optional",
"description": "permissions/optional",
"key": "<KEY>",
"version": "0.1",
"manifest_version": 2,
"background": {
"scripts": ["background.js"]
},
"permissions": [
"management",
"http://a.com/*"
],
"optional_permissions": [
"bookmarks",
... | 193 |
5,823 | // Copyright (c) 2012 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 "range.h"
#include <algorithm>
#include <cinttypes>
#include "base/string_utils.h"
namespace gfx {
std::string Range::ToString() const {
... | 174 |
6,098 | <reponame>kernelrich/h2o-3
package water.api;
import com.google.gson.Gson;
import water.*;
import water.api.schemas3.FrameV3;
import water.api.schemas3.JobV3;
import water.api.schemas3.KeyV3;
import water.api.schemas3.ModelSchemaV3;
import water.exceptions.H2OIllegalArgumentException;
import water.exceptions.H2OKeyNot... | 12,680 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 10,110 |
348 | {"nom":"Rospigliani","dpt":"Haute-Corse","inscrits":124,"abs":43,"votants":81,"blancs":8,"nuls":4,"exp":69,"res":[{"panneau":"1","voix":61},{"panneau":"2","voix":8}]} | 71 |
942 | <filename>include/tsqlqueryormapper.h
#include "../src/tsqlqueryormapper.h"
| 28 |
676 | package com.alorma.github.ui.activity.base;
import android.view.MenuItem;
public class BackActivity extends BaseActivity {
@Override
public void onStart() {
super.onStart();
if (getSupportActionBar() != null) {
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
}
}
@Override
public b... | 223 |
335 | {
"word": "Soz",
"definitions": [
"Sorry (used to express apology)"
],
"parts-of-speech": "Adjective"
} | 60 |
384 | <reponame>Wentaobi/tensorflow
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | 5,006 |
349 | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2013-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | 1,810 |
769 | <reponame>Thales-RISC-V/pulpino-compliant-debug
// Copyright 2017 ETH Zurich and University of Bologna.
// Copyright and related rights are licensed under the Solderpad Hardware
// License, Version 0.51 (the “License”); you may not use this file except in
// compliance with the License. You may obtain a copy of the Li... | 490 |
2,125 | from functools import partial
from torchnlp.encoders.text.static_tokenizer_encoder import StaticTokenizerEncoder
class MosesEncoder(StaticTokenizerEncoder):
""" Encodes the text using the Moses tokenizer.
**Tokenizer Reference:**
http://www.nltk.org/_modules/nltk/tokenize/moses.html
Args:
*... | 785 |
348 | {"nom":"Couvertpuis","circ":"1ère circonscription","dpt":"Meuse","inscrits":87,"abs":36,"votants":51,"blancs":7,"nuls":5,"exp":39,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":21},{"nuance":"REM","nom":"<NAME>","voix":18}]} | 92 |
476 | /*
* 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 writing, software
* distribut... | 5,540 |
572 | // (C) Copyright <NAME> and <NAME> 2013.
// 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)
// Repository at: https://github.com/djeedjay/DebugViewPP/
#pragma once
#include "PropertyItem.h"
#include "PropertyItem... | 2,383 |
533 | <filename>framework/operators/ctc_align.cpp<gh_stars>100-1000
#include "framework/operators/ctc_align.h"
namespace anakin {
namespace ops {
#define INSTANCE_CTC_ALIGN(Ttype, Ptype) \
template<> \
void CtcAlign<Ttype, Ptype>::operator()(OpContext<Ttype>& ctx, \
const std::vector<Tensor4dPtr<Ttype> >& ins, \
... | 1,411 |
388 | #!/usr/bin/env python
# Copyright (c) 2016 <NAME> <<EMAIL>>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, th... | 1,302 |
2,292 | import hashlib
import os
def sha256_hash(git_uri: str) -> str:
m = hashlib.sha256()
m.update(git_uri.encode())
return m.hexdigest()
def home_directory_path(folder: str, hash_digest: str) -> str:
# does this work on all operating systems?
home = os.path.expanduser("~")
return os.path.join(hom... | 135 |
778 | <filename>applications/PfemSolidMechanicsApplication/custom_problemtype/Kratos_Pfem_Solid_Mechanics_Application.gid/MainKratos.py
import KratosMultiphysics
import KratosMultiphysics.ExternalSolversApplication
import KratosMultiphysics.SolidMechanicsApplication
import KratosMultiphysics.ConstitutiveModelsApplication
imp... | 196 |
726 | <filename>app/src/main/java/com/yuyh/sprintnba/ui/view/ForumListView.java
package com.yuyh.sprintnba.ui.view;
import com.yuyh.sprintnba.http.bean.forum.ForumsData;
import com.yuyh.sprintnba.ui.view.base.BaseView;
import java.util.List;
/**
* @author yuyh.
* @date 16/6/25.
*/
public interface ForumListView extends... | 162 |
485 | <reponame>5A59/Zvm
# coding=utf-8
from base.utils import common_utils, print_utils
from java_class.class_file import *
from java_class.class_parser import ClassParser
from runtime.thread import Slot
from runtime.heap import Heap
from base.jvm_config import jdk_path
import os
# 对应 java 中的 Class
class JClass(object):... | 9,149 |
435 | {
"copyright_text": "Standard YouTube License",
"description": "",
"duration": 2093,
"language": "ita",
"recorded": "2016-06-22",
"related_urls": [],
"speakers": [
"<NAME>"
],
"tags": [],
"thumbnail_url": "https://i.ytimg.com/vi/KTk1lpNksUg/maxresdefault.jpg",
"title": "From Java to Python",
... | 194 |
2,577 | <filename>engine/src/main/java/org/camunda/bpm/engine/impl/dmn/result/SingleResultDecisionResultMapper.java
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information reg... | 628 |
488 | struct A
{
typedef int I;
typedef I (*X) (I);
virtual X start();
};
struct B : A
{
typedef int J;
typedef J (*Z) (J);
Z start() override;
};
struct C : A
{
X start() override;
};
int foo(A& a)
{
a.start();
}
| 103 |
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... | 1,090 |
416 | <reponame>tjachmann/visionaray
// This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <visionaray/math/vector.h>
#include <visionaray/get_area.h>
#include <visionaray/get_surface.h>
#include <visionaray/result_record.h>
#include <visionaray/sampling.h>
#include <visionaray/spe... | 3,763 |
5,169 | <gh_stars>1000+
{
"name": "BYConnect",
"version": "0.21.1",
"summary": "BYConnect is an iOS framework that helps you integrate with Banyan quickly and securely.",
"description": "BYConnect is a universal iOS framework that was built using Swift and supports devices and simulators.\nThe BYConnect framework manag... | 682 |
696 | /*
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.math.impl.random;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentExcept... | 577 |
893 | package io.lacuna.bifurcan.utils;
import static io.lacuna.bifurcan.utils.Bits.branchingBit;
import static io.lacuna.bifurcan.utils.Bits.maskAbove;
import static io.lacuna.bifurcan.utils.Bits.maskBelow;
/**
* Static methods which implement bit-range operations over a bit-vector stored within a long[].
*
* @author z... | 2,588 |
471 | <filename>examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/include/wx/xrc/xh_html.h<gh_stars>100-1000
/////////////////////////////////////////////////////////////////////////////
// Name: wx/xrc/xh_html.h
// Purpose: XML resource handler for wxHtmlWindow
// Author: <NAME>
// Created: 2000/... | 353 |
335 | <reponame>Safal08/Hacktoberfest-1<filename>M/Mentor_verb.json<gh_stars>100-1000
{
"word": "Mentor",
"definitions": [
"Advise or train (someone, especially a younger colleague)"
],
"parts-of-speech": "Verb"
} | 102 |
5,169 | <filename>Specs/e/6/8/DHYunRuiSDK/0.1.3/DHYunRuiSDK.podspec.json
{
"name": "DHYunRuiSDK",
"version": "0.1.3",
"summary": "A short description of DHYunRuiSDK.",
"description": "TODO: Add long description of the pod here.",
"homepage": "https://github.com/goodxianping/DHYunRuiSDK.git",
"license": {
"type"... | 570 |
501 | /*
* 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 ma... | 1,828 |
1,826 | package com.vladsch.flexmark.ext.admonition;
import com.vladsch.flexmark.ext.admonition.internal.AdmonitionBlockParser;
import com.vladsch.flexmark.ext.admonition.internal.AdmonitionNodeFormatter;
import com.vladsch.flexmark.ext.admonition.internal.AdmonitionNodeRenderer;
import com.vladsch.flexmark.formatter.Formatte... | 3,585 |
635 | <gh_stars>100-1000
from __future__ import absolute_import
import unittest
import numpy as np
from tests.sample_data import SampleData
from pyti import commodity_channel_index
class TestCommodityChannelIndex(unittest.TestCase):
def setUp(self):
"""Create data to use for testing."""
self.close_data... | 5,591 |
1,233 | /*
* Copyright 2019 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 agreed t... | 1,808 |
898 | <reponame>AdamBSteele/heroic
/*
* Copyright (c) 2015 Spotify AB.
*
* 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 ... | 5,928 |
480 | <filename>polardbx-server/src/main/java/com/alibaba/polardbx/server/response/ShowProfileSyncAction.java<gh_stars>100-1000
/*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... | 21,762 |
789 | package io.advantageous.qbit.vertx.bugs;
import io.advantageous.boon.core.Sys;
import io.advantageous.qbit.http.client.HttpClient;
import io.advantageous.qbit.http.client.HttpClientBuilder;
import io.advantageous.qbit.http.request.HttpRequestBuilder;
import org.junit.Test;
import java.util.concurrent.atomic.AtomicInt... | 748 |
3,428 | {"id":"02302","group":"easy-ham-1","checksum":{"type":"MD5","value":"6b0e60535c666317d676c81aeea21f4f"},"text":"From <EMAIL> Sun Oct 6 22:54:44 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>assassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 1164C16F20... | 656 |
984 | <filename>core/src/main/java/com/datastax/oss/driver/internal/core/type/codec/extras/enums/EnumOrdinalCodec.java
/*
* Copyright DataStax, 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 Licens... | 711 |
4,639 | from django import template
register = template.Library()
@register.simple_tag
def wishlists_containing_product(wishlists, product):
return wishlists.filter(lines__product=product)
| 53 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.