max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,118 | <filename>src/traildb.h
#ifndef __TRAILDB_H__
#define __TRAILDB_H__
#include <stdlib.h>
#include <stdint.h>
#include "tdb_limits.h"
#include "tdb_types.h"
#include "tdb_error.h"
#define TDB_VERSION_V0 0LLU
#define TDB_VERSION_V0_1 1LLU
#define TDB_VERSION_LATEST TDB_VERSION_V0_1
/*
-----------------------
Construc... | 4,726 |
2,498 | /*
* phase3.h
*
* Created on: May 30, 2021
* Author: mad
*/
#ifndef INCLUDE_CHIA_PHASE3_H_
#define INCLUDE_CHIA_PHASE3_H_
#include <chia/phase2.h>
namespace phase3 {
struct entry_kpp {
uintkx_t pos[2]; // 2x 32-bit position / 2x 35-bit
uintkx_t key; // 32-bit (sort_key) / 35 bit
};
struct entry_lp ... | 1,333 |
926 | import unittest
import paddle
class StaticCase(unittest.TestCase):
def setUp(self):
# switch mode
paddle.enable_static()
| 56 |
1,781 | package com.marshalchen.common.demoofui.sampleModules;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.widget.ImageView;
import butterknife.ButterKnife;
import butterknife.InjectView;
import com.marshalchen.common.commonUtils.bas... | 665 |
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.
#include "chrome/browser/memory/memory_kills_monitor.h"
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <stdio.h>
#include <string>... | 2,630 |
372 | <filename>clients/google-api-services-cloudbilling/v1/1.30.1/com/google/api/services/cloudbilling/model/Category.java
/*
* 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.... | 1,505 |
1,045 | /***************************************************************************************************
Tencent is pleased to support the open source community by making RapidView available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MITLicense (the "License"); you ma... | 1,448 |
802 | package io.github.biezhi.wechat.api.model;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* KeyItem
*
* @author biezhi
* @date 2018/1/19
*/
@Data
public class KeyItem implements Serializable {
@SerializedName("Key")
private Integer key;
@Ser... | 132 |
317 | <filename>include/edyn/serialization/shape/cylinder_shape_s11n.hpp
#ifndef EDYN_SERIALIZATION_SHAE_CYLINDER_SHAPE_S11N_HPP
#define EDYN_SERIALIZATION_SHAE_CYLINDER_SHAPE_S11N_HPP
#include "edyn/shapes/cylinder_shape.hpp"
namespace edyn {
template<typename Archive>
void serialize(Archive &archive, cylinder_shape &s) ... | 191 |
831 | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1,202 |
332 | from django.db import models
class Play(models.Model):
genre = models.CharField(max_length=100)
title = models.CharField(max_length=200)
year = models.IntegerField()
author = models.ForeignKey('tests.Author', related_name='plays', on_delete=models.CASCADE)
class Poem(models.Model):
title = model... | 195 |
678 | <filename>WeChat-Headers/WCPayOrderProductInfo.h<gh_stars>100-1000
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@class NSArray, NSString;
@interface WCPayOrderProductInfo : NSObject
{
NSString *m_nsProduct... | 485 |
2,448 | <gh_stars>1000+
package com.yiqiniu.easytrans.log.vo.tcc;
import com.yiqiniu.easytrans.log.vo.AfterCommit;
import com.yiqiniu.easytrans.log.vo.DemiRightContent;
@AfterCommit
public class TccCallConfirmedContent extends DemiRightContent {
private static final long serialVersionUID = 1L;
@Override
publi... | 156 |
665 | <filename>Deco_Keypad/code.py<gh_stars>100-1000
# SPDX-FileCopyrightText: Copyright (c) 2021 <NAME> for Adafruit
#
# SPDX-License-Identifier: MIT
# Deco Keypad
import time
import board
from digitalio import DigitalInOut, Pull
from adafruit_debouncer import Debouncer
import usb_hid
from adafruit_hid.keyboard import Ke... | 732 |
403 | package io.craft.atom.rpc;
/**
* @author mindwind
* @version 1.0, Sep 5, 2014
*/
public interface DemoService {
String echo(String in);
String attachment();
String oneway();
void noreturn(String in);
void timeout(String in) throws InterruptedException;
void overload() throws InterruptedException;
void biz... | 128 |
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... | 1,133 |
1,470 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-01-22 01:16
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("challenges", "0012_added_code_name_field")]
operations = [
migrations.AlterUniqueTogether(
... | 174 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-mp3w-62hp-vh8j/GHSA-mp3w-62hp-vh8j.json
{
"schema_version": "1.2.0",
"id": "GHSA-mp3w-62hp-vh8j",
"modified": "2022-05-13T01:45:52Z",
"published": "2022-05-13T01:45:52Z",
"aliases": [
"CVE-2017-3756"
],
"details": "A privilege escalation vulnerability was i... | 512 |
343 | <filename>rootfs/usr/lib/python3/dist-packages/numpy/distutils/compat.py
"""Small modules to cope with python 2 vs 3 incompatibilities inside
numpy.distutils
"""
import sys
def get_exception():
return sys.exc_info()[1]
| 76 |
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.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_PEERCONNECTION_ADAPTERS_ICE_TRANSPORT_ADAPTER_CROSS_THREAD_FACTORY_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULE... | 453 |
1,346 | package com.ctrip.platform.dal.exceptions;
/**
* Created by taochen on 2019/9/17.
*/
public class TransactionSystemException extends RuntimeException {
public TransactionSystemException(String msg) {
super(msg);
}
public TransactionSystemException(String msg, Throwable cause) {
super(msg... | 111 |
3,428 | {"id":"01356","group":"spam-2","checksum":{"type":"MD5","value":"8d996c0bc08a47a90611de2e8a829048"},"text":"From <EMAIL> Thu Aug 8 14:37:17 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy@<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMTP id... | 1,500 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-47xc-8r2q-5m83",
"modified": "2022-04-26T00:00:54Z",
"published": "2022-04-16T00:00:25Z",
"aliases": [
"CVE-2022-29281"
],
"details": "Notable before 1.9.0-beta.8 doesn't effectively prevent the opening of executable files when clicking on a link. There is impr... | 531 |
879 | <filename>header/src/main/java/org/zstack/header/storage/snapshot/ShrinkVolumeSnapshotOnPrimaryStorageReply.java
package org.zstack.header.storage.snapshot;
import org.zstack.header.message.APIEvent;
import org.zstack.header.message.MessageReply;
import org.zstack.header.rest.RestResponse;
import org.zstack.utils.data... | 244 |
2,441 | <filename>core/src/main/java/tech/tablesaw/aggregate/DateTimeAggregateFunction.java
package tech.tablesaw.aggregate;
import java.time.LocalDateTime;
import tech.tablesaw.api.ColumnType;
import tech.tablesaw.api.DateTimeColumn;
/** A partial implementation of aggregate functions to summarize over a dateTime column */
... | 317 |
312 | /*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "git2/credential.h"
#include "git2/sys/credential.h"
#include "git2/creden... | 4,173 |
1,652 | package com.ctrip.xpipe.monitor;
import com.ctrip.xpipe.api.monitor.DelayMonitor;
import com.ctrip.xpipe.lifecycle.AbstractStartStoppable;
import com.ctrip.xpipe.utils.DateTimeUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledEx... | 1,269 |
805 | <reponame>SHITIANYU-hue/flow<gh_stars>100-1000
"""Empty init file to handle deprecations."""
import warnings
from flow.core.kernel.network import * # noqa: F401,F403
warnings.simplefilter('always', PendingDeprecationWarning)
warnings.warn(
"flow.core.kernel.scenario will be deprecated in a future release. Please... | 134 |
646 | /*
Copyright (c) 2017 TOSHIBA Digital Solutions Corporation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This... | 15,331 |
852 | import FWCore.ParameterSet.Config as cms
TrackerMapTest = cms.EDFilter("TrackerGeometryTest",
TkmapParameters = cms.PSet(
loadFedCabling = cms.untracked.bool(False),
trackerdatPath = cms.untracked.string('CommonTools/TrackerMap/data/'),
trackermaptxtPath = cms.untracked.string('CommonTools/... | 138 |
372 | /*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2021 <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.
*
* THE SOFTWAR... | 3,165 |
583 | from typing import List, Tuple
import random
from interfaces.TaggingOperation import TaggingOperation
from tasks.TaskTypes import TaskType
"""
A tagging implementation of NER systems.
I am travelling to London. --> I am travelling to South/Central London.
"""
def pick_random_word(seed):
"""
pick random "pre"... | 3,279 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-wxqx-h8v6-v72p/GHSA-wxqx-h8v6-v72p.json
{
"schema_version": "1.2.0",
"id": "GHSA-wxqx-h8v6-v72p",
"modified": "2022-05-01T07:42:37Z",
"published": "2022-05-01T07:42:37Z",
"aliases": [
"CVE-2006-6887"
],
"details": "Unrestricted file upload vulnerability in ... | 430 |
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,954 |
946 | <gh_stars>100-1000
#include "utils/NoiseUtils.hpp"
#include <boost/test/unit_test.hpp>
using namespace utymap::utils;
namespace {
const double Tolerance = 1e-3;
}
BOOST_AUTO_TEST_SUITE(Utils_NoiseUtils)
BOOST_AUTO_TEST_CASE(GivenTestValues_WhenPerlin3d_ThenReturnExpectedValues) {
// Compare with original C# impl... | 268 |
542 | <gh_stars>100-1000
package com.intsmaze.flink.base.bean;
/**
* github地址: https://github.com/intsmaze
* 博客地址:https://www.cnblogs.com/intsmaze/
* 出版书籍《深入理解Flink核心设计与实践原理》
*
* @auther: intsmaze(刘洋)
* @date: 2020/10/15 18:33
*/
public class ResultBean {
private String flowId;
private int cycleNumber;
... | 706 |
539 | /*************************************************************************/
/* */
/* Language Technologies Institute */
/* Carnegie Mellon University */
/* ... | 6,932 |
2,074 | <reponame>WxByte/core-plot<gh_stars>1000+
/// @file
typedef UIColor CPTNativeColor; ///< Platform-native color.
typedef UIImage CPTNativeImage; ///< Platform-native image format.
typedef UIEvent CPTNativeEvent; ///< Platform-native OS event.
typedef UIFont CPTNativeFont; ///< Platform-native font.
| 103 |
335 | {
"word": "Ped",
"definitions": [
"A performance-enhancing drug."
],
"parts-of-speech": "Noun"
} | 58 |
32,544 | package com.baeldung.attribute.override.entity;
import javax.persistence.Embeddable;
@Embeddable
public class Address {
private String name;
private String city;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String... | 175 |
513 | <reponame>kevinw/amulet
void am_open_glob_module(lua_State *L);
| 29 |
2,144 | <reponame>aashitk/pinot
/**
* 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... | 3,195 |
605 | <reponame>AochongZhang/mqcloud
package com.sohu.tv.mq.cloud.task.monitor;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import ja... | 11,126 |
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 Naming... | 640 |
2,996 | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.core.module;
import org.terasology.gestalt.module.sandbox.API;
import java.io.IOException;
import java.io.OutputStream;
/**
* This class is a wrapper for {@link OutputStream} which should be used by modu... | 465 |
314 | package com.google.mu.util.concurrent;
import static com.google.common.truth.Truth.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;
import java.util.concurrent.CancellationException;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import java.util.co... | 801 |
2,937 | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Tor<NAME>
Permission is hereby granted, free of charge, to any person obtaining a co... | 1,869 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-w7pw-g7cc-7j3p",
"modified": "2022-05-01T17:54:38Z",
"published": "2022-05-01T17:54:38Z",
"aliases": [
"CVE-2007-1535"
],
"details": "Microsoft Windows Vista establishes a Teredo address without user action upon connection to the Internet, contrary to documenta... | 630 |
28,056 | package com.alibaba.json.bvt.bug;
import org.junit.Assert;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.annotation.JSONType;
import com.alibaba.fastjson.parser.Feature;
import junit.framework.TestCase;
public class Bug_for_issue_465 extends TestCase... | 1,402 |
1,539 | {"desktop":{"Blog.url":null,"DOS.url":null,"Doom.url":null,"Explorer.url":null},"docs":{"welcome.odt":null},"favicon.ico":null,"fonts":{"SF-Regular.woff2":null,"segmdl2.woff2":null,"segoeui.woff2":null},"games":{"doom.jsdos":null,"jazz.jsdos":null,"keen4.jsdos":null},"icons":{"files":{"js.svg":null,"unknown.svg":null},... | 304 |
4,071 | package com.github.ompc.greys.core.util;
import org.apache.commons.io.IOUtils;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.InetSocketAddress;
import java.net.Socket;
/**
* GaNetCat封装<br/>
* 这个代码不要看,不要看,不要看...不是我写的...
* Created by vlinux on 16/2/4.
*/
publi... | 977 |
1,428 | #include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <algorithm>
std::vector<std::string> readFile(std::string bookdir){
std::ifstream file;
file.open(bookdir);
if(!file){
std::cerr << "file does not exist" << std::endl;
exit(1);
}
std::string word;
... | 460 |
2,360 | <reponame>kkauder/spack<gh_stars>1000+
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.util.string import plural
def test_plural():
assert plural(0, 'thi... | 190 |
355 | // -*- tab-width: 4; -*-
// vi: set sw=2 ts=4 sts=4 expandtab:
// Copyright 2019-2020 The Khronos Group Inc.
// SPDX-License-Identifier: Apache-2.0
#include <zstd.h>
#include "ktxapp.h"
#include <unordered_map>
#include <algorithm>
template<typename T>
struct clampedOption
{
clampedOption(T& option, T min_v, T max... | 23,826 |
27,066 | <filename>demo-oauth/oauth-authorization-server/src/test/java/com/xkcoding/oauth/oauth/ResourceOwnerPasswordGrantTests.java
package com.xkcoding.oauth.oauth;
import org.junit.jupiter.api.Test;
import org.springframework.security.oauth2.client.OAuth2RestTemplate;
import org.springframework.security.oauth2.client.token.... | 536 |
453 | <gh_stars>100-1000
/*
* C library support files for the Blackfin processor
*
* Copyright (C) 2006 Analog Devices, Inc.
*
* The authors hereby grant permission to use, copy, modify, distribute,
* and license this software and its documentation for any purpose, provided
* that existing copyright notices are retain... | 1,856 |
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... | 3,904 |
513 | <gh_stars>100-1000
/*
* Copyright 2016-2020 <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 la... | 1,311 |
436 | package com.qiyi.tm.demo.test;
import android.util.Log;
import com.qiyi.tm.demo.SumChecker;
import org.qiyi.basecore.taskmanager.ParallelTask;
import org.qiyi.basecore.taskmanager.TM;
import org.qiyi.basecore.taskmanager.Task;
import org.qiyi.basecore.taskmanager.other.TMLog;
/**
* 用于验证并发任务是否会多次执行,绘制没有执行的问题。
*/
p... | 5,812 |
1,163 | <filename>iree/compiler/Dialect/Modules/VMVX/IR/VMVXTypes.h<gh_stars>1000+
// Copyright 2021 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef IREE_COMPILER_... | 566 |
1,144 | // Generated Model - DO NOT CHANGE
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
import javax.annotation.Nullable;
/** Generated Model for C_BPartner_Attribute
* @author metasfresh (generated)
*/
@SuppressWarnings("unused")
public class X_C_BPartner_Attribute extends org.comp... | 1,300 |
308 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#import <CommonCrypto/CommonCryptor.h>
#import <Foundation/Foundation.h>
#import "MSACEncrypter.h"
NS_ASSUME_NONNULL_BEGIN
static int const kMSACEncryptionAlgorithm = kCCAlgorithmAES;
static NSString *const kMSACEncrypti... | 458 |
651 | package org.spongycastle.jsse.provider;
import javax.net.ssl.HandshakeCompletedEvent;
import javax.net.ssl.HandshakeCompletedListener;
class HandshakeCompletedListenerAdapter
implements HandshakeCompletedListener
{
protected final HandshakeCompletedListener listener;
HandshakeCompletedListenerAdapter(Han... | 359 |
319 | #!/usr/bin/env python
# we're using python 3.x style print but want it to work in python 2.x,
from __future__ import print_function
import os
import argparse
import shlex
import sys
import warnings
import copy
import imp
import ast
nodes = imp.load_source('', 'steps/ctc/nnet2/components.py')
nnet3_train_lib = imp.loa... | 10,083 |
10,225 | package io.quarkus.panache.common.exception;
public class PanacheQueryException extends RuntimeException {
public PanacheQueryException(String s) {
super(s);
}
}
| 61 |
1,040 | <filename>drivers/radio_labjack_ch2/src/lcm_i.c
// file: lmc_i.c
//
// lcm interface program.
//
#include <stdio.h>
#include <stdlib.h>
#include "globalvar.h"
#include "lcm_i.h"
#include "main.h"
lcm_t * pLCM;
lcm_t * lcm;
void lcm_hotrod_u_handler(const lcm_recv_buf_t *rbuf, const char* channel, const lcmt_hotro... | 945 |
2,151 | <reponame>zipated/src
package org.mockito.release.notes.util;
import java.io.*;
import java.util.Scanner;
/**
* IO utils. A bit of reinventing the wheel but we don't want extra dependencies at this stage and we want to be java.
*/
public class IOUtil {
/**
* Reads string from the file
*/
public s... | 823 |
14,668 | // 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/modules/peerconnection/testing/internals_rtc_peer_connection.h"
#include "third_party/blink/renderer/bindings/core/v... | 396 |
12,278 | <gh_stars>1000+
/*=============================================================================
Copyright (c) 2017 <NAME>
rotate.cpp
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)
========================... | 1,010 |
1,755 | <reponame>txwhhny/vtk<gh_stars>1000+
/*=========================================================================
Program: Visualization Toolkit
Module: vtkTreeWriter.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... | 1,237 |
650 | <gh_stars>100-1000
/*
* Copyright (c) 2021, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/TypeCasts.h>
#include <LibJS/Runtime/Array.h>
#include <LibJS/Runtime/GlobalObject.h>
#include <LibJS/Runtime/Temporal/AbstractOperations.h>
#include <LibJS/Runtime/Temporal/Calendar.h>
#include <... | 4,494 |
977 | <filename>src/main/java/io/leangen/graphql/execution/complexity/ComplexityFunction.java
package io.leangen.graphql.execution.complexity;
@FunctionalInterface
public interface ComplexityFunction {
int getComplexity(ResolvedField node, int childScore);
}
| 87 |
1,104 | {
"html": "Champions Now.html",
"css": "Champions Now.css",
"authors": "<NAME>",
"roll20userid": "118980",
"preview": "preview.png",
"instructions": "Create a new character and go! STUN, KO, and END totals are automatically computed from REC.",
"legacy": true
} | 97 |
338 | <filename>resources/devices/mobile-phone/beidou.json
{
"Beidou LA-M1": {
"type": "mobile-phone",
"properties": {
"Device_Name": "<NAME> LA-M1",
"Device_Code_Name": "LA-M1",
"Device_Maker": "Beidou",
"Device_Pointing_Method": "unknown",
"Device_Brand_Name": "Beidou"
},
"st... | 158 |
323 | #ifndef _ROS_SERVICE_SolvePositionIK_h
#define _ROS_SERVICE_SolvePositionIK_h
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
#include "geometry_msgs/PoseStamped.h"
#include "sensor_msgs/JointState.h"
namespace baxter_core_msgs
{
static const char SOLVEPOSITIONIK[] = "baxter_core_msgs... | 4,305 |
554 | import argparse
import json
import os
from datetime import datetime
from pathlib import Path
from matplotlib import pyplot as plt
from zoo.evaluation.metrics.utils import map_agent_to_json_file
def evaluation_data_visualize(scenario_path, result_path, agent_list, agent_groups):
# todo: get json file in scenario... | 6,972 |
1,144 | <filename>backend/de.metas.adempiere.adempiere/base/src/main/java/org/adempiere/util/trxConstraints/api/ITrxConstraints.java<gh_stars>1000+
package org.adempiere.util.trxConstraints.api;
/*
* #%L
* de.metas.adempiere.adempiere.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you ca... | 1,860 |
3,073 | <gh_stars>1000+
#include "all.h"
#include "vere/vere.h"
#include "ur/ur.h"
/* _setup(): prepare for tests.
*/
static void
_setup(void)
{
u3m_init();
u3m_pave(c3y);
}
/* _ames_writ_ex(): |hi packet from fake ~zod to fake ~nec
*/
static u3_noun
_ames_writ_ex(void)
{
c3_y bod_y[63] = {
0x30, 0x90, 0x2d, 0x0,... | 5,269 |
647 | <gh_stars>100-1000
#ifndef LOG_FORMATTER
#define LOG_FORMATTER
#include <stdio.h>
#include <stdint.h>
class LogFormatter {
public:
virtual void writeHeader(FILE* out_fp,
int version,
int endianness) = 0;
virtual void writeColumnLabel(FILE* out_fp,
... | 567 |
543 | <gh_stars>100-1000
package com.adobe.epubcheck.opf;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import com.google.common.base.Optional;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableListMultimap;
import com.google.common.collect.ImmutableMap... | 1,311 |
5,937 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//------------------------------------------------------------------------------
//
//
// Description:
// Co... | 1,593 |
14,668 | <gh_stars>1000+
// 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 "ash/assistant/model/assistant_screen_context_model.h"
namespace ash {
AssistantStructureFuture::AssistantStructureFuture() = d... | 410 |
1,016 | <reponame>peter-ls/kylo
/**
*
*/
package com.thinkbiganalytics.auth.jaas.http;
/*-
* #%L
* kylo-security-auth
* %%
* Copyright (C) 2017 - 2018 ThinkBig Analytics, a Teradata Company
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... | 1,365 |
741 | <filename>mobicomkitui/src/main/java/com/applozic/mobicomkit/uiwidgets/conversation/activity/EditChannelDescriptionActivity.java
package com.applozic.mobicomkit.uiwidgets.conversation.activity;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Color;
import android.graphics.dr... | 2,487 |
2,059 | <filename>include/HubFramework/HUBComponentCollectionViewCell.h
/*
* Copyright (c) 2016 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 owner... | 586 |
5,823 | // Copyright (c) 2010 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 "base/win/scoped_variant.h"
#include <propvarutil.h>
#include <wrl/client.h>
#include <algorithm>
#include <functional>
#include "base/log... | 3,964 |
17,037 | # This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _OpenStack
class _Orchestration(_OpenStack):
_type = "orchestration"
_icon_dir = "resources/openstack/orchestration"
class Blazar(_Orchestration):
_icon = "blazar.png"
class Heat(_Orchestration):
_icon = "heat.png"... | 187 |
1,857 | import os
import pexpect
from pathlib import Path
from textwrap import dedent
def test_history_not_log_auth(cli):
cli.sendline("AUTH 123")
cli.expect(["Client sent AUTH, but no password is set", "127.0.0.1"])
cli.sendline("set foo bar")
cli.expect("OK")
with open(os.path.expanduser("~/.iredis_his... | 458 |
4,587 | <reponame>steamboatid/keydb<gh_stars>1000+
#
# Copyright (C) 2016 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:
# 1. Redistributions of source code must retain the above ... | 2,054 |
11,010 | <gh_stars>1000+
package com.google.inject.internal;
import static com.google.common.base.Preconditions.checkArgument;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import com.google.inject.Key;
import com.google.inject.TypeLiteral;
import com.google.inject.internal.util.Classes;
impor... | 2,075 |
678 | <reponame>bzxy/cydia
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iAdCore.framework/iAdCore
*/
#import <iAdCore/XXUnknownSuperclass.h>
@class NSString, NSURL, NSData, NSDate;
@interface _ADWebArchiveCacheNode : XXUnknownSuperclass {
@private
unsigned _number... | 993 |
2,567 | class SdA {
public:
int N;
int n_ins;
int *hidden_layer_sizes;
int n_outs;
int n_layers;
HiddenLayer **sigmoid_layers;
dA **dA_layers;
LogisticRegression *log_layer;
SdA(int, int, int*, int, int);
~SdA();
void pretrain(int*, double, double, int);
void finetune(int*, int*, double, int);
void p... | 146 |
3,748 | <filename>mmcv/ops/csrc/tensorrt/trt_scatternd.hpp<gh_stars>1000+
#ifndef TRT_SCATTERND_HPP
#define TRT_SCATTERND_HPP
#include <cublas_v2.h>
#include <memory>
#include <string>
#include <vector>
#include "trt_plugin_helper.hpp"
class ONNXScatterNDDynamic : public nvinfer1::IPluginV2DynamicExt {
public:
ONNXScatte... | 1,501 |
903 | <gh_stars>100-1000
/*
* Copyright 2021 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
*
* o... | 778 |
608 | // -------------------------------
// Copyright (c) Corman Technologies Inc.
// See LICENSE.txt for license information.
// -------------------------------
//
// File: stdafx.cpp
// Contents: Source file that includes just the standard
// includes stdafx.pch will be the pre-compiled
// header, ... | 144 |
309 | package com.github.codesniper.poplayer.pop;
import android.content.Context;
import io.reactivex.Observable;
import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;
public class PopSubscriber<T> implements Observer<T> {
private Popi popi;
private Context mContext;
private boolean isReq... | 409 |
1,555 | <reponame>LightSun/mir<filename>c-tests/lacc/deref-deep.c
struct typetree {
int type;
struct typetree *next;
};
struct var {
struct typetree *type;
};
int main() {
struct typetree p = {1};
struct typetree q = {3};
struct var root;
p.next = &q;
root.type = &p;
return root.type->next->type;
}
| 130 |
400 | <gh_stars>100-1000
/*
* fisheye_image_file.h - Fisheye image file class
*
* Copyright (c) 2020 Intel Corporation
*
* 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.... | 806 |
13,653 | <reponame>cihan-demir/NineMensMorris
import pytest
from unittest import mock
import torch # noqa I201
from mlagents.torch_utils import set_torch_config, default_device
from mlagents.trainers.settings import TorchSettings
@pytest.mark.parametrize(
"device_str, expected_type, expected_index, expected_tensor_type... | 548 |
1,062 | // -*- mode: ObjC -*-
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 <NAME>.
#import <Foundation/Foundation.h>
@class CDType;
@interface CDOCProperty : NSObject
- (id)initWithName:(NSString *)name attributes:(N... | 326 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.