max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
2,151 | // 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 "third_party/blink/renderer/modules/cache_storage/cache_storage_error.h"
#include "third_party/blink/public/platform/modules/cache_storage/cache... | 622 |
764 | <filename>erc20/0xA6446D655a0c34bC4F05042EE88170D056CBAf45.json
{"symbol": "CSP","address": "0xA6446D655a0c34bC4F05042EE88170D056CBAf45","overview":{"en": ""},"email": "<EMAIL>","website": "https://caspian.tech/","state": "NORMAL","links": {"blog": "https://caspian.tech/blog/","twitter": "https://twitter.com/Caspian_Te... | 160 |
3,428 | {"id":"02181","group":"easy-ham-1","checksum":{"type":"MD5","value":"a7e15d16987b4db753c47d2ad7ebc84e"},"text":"From <EMAIL> Wed Oct 2 11:44:00 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>ass<EMAIL>int.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id ECDC816F03\n\t... | 460 |
310 | #ifndef COMMAND_SOCKET_H
#define COMMAND_SOCKET_H
// Set PASS_STDFILES_UNIX_SOCKET if passing file descriptors
// over socket from client command to server, using sendmsg/recvmsg.
// I can't get this to work on MacOS.
// Alternatively, multiplex stdout, stderr, and exit code on connection socket.
// (PASS_STDFILES_UNI... | 545 |
2,151 | <gh_stars>1000+
// 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 "ui/compositor/layer_animation_element.h"
#include <utility>
#include "base/compiler_specific.h"
#include "base/macros.h"
#... | 9,280 |
850 | <reponame>tianyapiaozi/tensorflow<filename>tensorflow/core/kernels/gemm_functors.h
/* Copyright 2016 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
... | 1,893 |
3,227 | <filename>Orthtree/doc/Orthtree/Concepts/OrthtreeTraits.h
/*!
\ingroup PkgOrthtreeConcepts
\cgalConcept
The concept `OrthtreeTraits` defines the requirements for the
template parameter of the `CGAL::Orthtree` class.
\cgalHasModel `CGAL::Orthtree_traits_2<GeomTraits>`
\cgalHasModel `CGAL::Orthtree_traits_3... | 612 |
1,829 | <reponame>useaname/thinking-in-spring-boot-samples
package thinking.in.spring.boot.samples.spring3.bootstrap;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
impor... | 711 |
521 | #ifndef CONFIG_TIME_H
#define CONFIG_TIME_H
/** @file
*
* Time API configuration
*
*/
FILE_LICENCE ( GPL2_OR_LATER );
#include <config/defaults.h>
#include <config/local/time.h>
#endif /* CONFIG_TIME_H */
| 86 |
632 | <reponame>alesapin/NuRaft<gh_stars>100-1000
/************************************************************************
Modifications Copyright 2017-2019 eBay Inc.
Author/Developer(s): <NAME>
Original Copyright:
See URL: https://github.com/datatechnology/cornerstone
Licensed under the Apache License, Version 2.0 (the "... | 449 |
323 | {
"Logging": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Debug",
"System": "Information",
"Microsoft": "Information"
}
},
"ApplicationDbContext": {
"ConnectionString":"User ID=Sock;Password=password;Host=localhost;Port=5432;Database=DbTenantswithSaaskit;Pooling=true;"
... | 131 |
18,325 | package com.zheng.pay.rpc.api;
import com.zheng.common.base.BaseService;
import com.zheng.pay.dao.model.PayOutOrderDetail;
import com.zheng.pay.dao.model.PayOutOrderDetailExample;
/**
* PayOutOrderDetailService接口
* Created by shuzheng on 2017/3/29.
*/
public interface PayOutOrderDetailService extends BaseService<PayO... | 131 |
348 | <filename>docs/data/leg-t2/064/06404436.json
{"nom":"Ossès","circ":"4ème circonscription","dpt":"Pyrénées-Atlantiques","inscrits":704,"abs":373,"votants":331,"blancs":34,"nuls":11,"exp":286,"res":[{"nuance":"DVD","nom":"<NAME>","voix":148},{"nuance":"REM","nom":"<NAME>","voix":138}]} | 118 |
314 | <filename>ZJKitTool/ZJCategory/UIKit/UIGestureRecognizer+ZJHelperBlockKit.h
//
// UIGestureRecognizer+ZJHelperBlockKit.h
// ZJUIKit
//
// Created by dzj on 2018/1/18.
// Copyright © 2018年 kapokcloud. All rights reserved.
//
#import <UIKit/UIKit.h>
/**
* gesture事件Block
*
*/
typedef void(^ZJGestureBlock)(UIGestu... | 406 |
346 | <reponame>ZJCRT/drishti
/*! -*-c++-*-
@file FaceModelEstimator.h
@author <NAME>
@brief Internal declaration of a class to estimate 3D models from 2D face landmarks.
\copyright Copyright 2014-2016 Elucideye, Inc. All rights reserved.
\license{This project is released under the 3 Clause BSD License.}
NOT... | 485 |
608 | <gh_stars>100-1000
// ------- Preamble -------- //
#include <avr/io.h> /* Defines pins, ports, etc */
#include <util/delay.h> /* Functions to waste time */
#include <avr/interrupt.h>
#include <avr/power.h>
#include "pinDefines.h"
#include "macros.h"
#include "fullSaw15.h"
#define BASEPITCH 220 /* in tuningWo... | 478 |
1,392 | package com.amazonaws.auth;
/*
* Copyright 2011-2020 Amazon Technologies, 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://aws.amazon.com/apache2.0
*
* This file ... | 463 |
14,668 | <filename>ash/public/cpp/holding_space/mock_holding_space_client.h
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_PUBLIC_CPP_HOLDING_SPACE_MOCK_HOLDING_SPACE_CLIENT_H_
#define ASH_PUBLIC_CP... | 1,374 |
2,338 | //===-- CommandObjectStats.h ------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, 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
//
//===---------------------------... | 239 |
3,372 | <filename>aws-java-sdk-outposts/src/main/java/com/amazonaws/services/outposts/model/transform/OrderJsonUnmarshaller.java
/*
* Copyright 2016-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 complianc... | 1,833 |
1,473 | <gh_stars>1000+
/*
* Copyright 2016 Naver 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 l... | 526 |
1,738 | <reponame>brianherrera/lumberyard<gh_stars>1000+
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by th... | 835 |
2,406 | #
# pool2d paddle model generator
#
import numpy as np
import sys
from save_model import saveModel
def pdpd_scale(name : str, x, scale, bias, attrs : dict, data_type):
import paddle as pdpd
pdpd.enable_static()
with pdpd.static.program_guard(pdpd.static.Program(), pdpd.static.Program()):
node... | 1,472 |
467 | package com.yoyiyi.soleil.adapter.home.section.chase;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.yoyiyi.soleil.R;
import com.yoyiyi.soleil.bean.chase.RecommendBangumi;
import com.yoyiyi.soleil.widget.section.StatelessSection;
i... | 615 |
482 | package io.cattle.platform.object.meta.impl;
public class FieldCacheKey {
Class<?> clz;
String fieldName;
public FieldCacheKey(Class<?> clz, String fieldName) {
super();
this.clz = clz;
this.fieldName = fieldName;
}
public Class<?> getClz() {
return clz;
}
... | 620 |
2,151 | /*
* Copyright 2011 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 applic... | 1,295 |
12,278 | <reponame>Mu-L/jemalloc
#include "test/jemalloc_test.h"
#include "jemalloc/internal/safety_check.h"
bool fake_abort_called;
void fake_abort(const char *message) {
(void)message;
fake_abort_called = true;
}
#define SMALL_SIZE1 SC_SMALL_MAXCLASS
#define SMALL_SIZE2 (SC_SMALL_MAXCLASS / 2)
#define LARGE_SIZE1 SC_LAR... | 824 |
545 | #include <iostream>
int main() {
int i;
int *ip = &i;
*ip = 10;
std::cout << i << " " << *ip << std::endl; // 10 10
i = 5;
std::cout << i << " " << *ip << std::endl; // 5 5
return 0;
}
| 96 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-w927-cwvw-mr5c",
"modified": "2022-05-13T01:17:01Z",
"published": "2022-05-13T01:17:01Z",
"aliases": [
"CVE-2017-10125"
],
"details": "Vulnerability in the Java SE component of Oracle Java SE (subcomponent: Deployment). Supported versions that are affected are ... | 738 |
13,648 | <filename>tests/micropython/viper_binop_arith.py
# test arithmetic operators
@micropython.viper
def add(x: int, y: int):
print(x + y)
print(y + x)
add(1, 2)
add(42, 3)
add(-1, 2)
add(-42, -3)
@micropython.viper
def sub(x: int, y: int):
print(x - y)
print(y - x)
sub(1, 2)
sub(42, 3)
sub(-1, 2)
su... | 582 |
12,711 | {"type":"newline","loc":{"start":{"line":2,"column":1},"filename":"/cases/includes.pug","end":{"line":2,"column":1}}}
{"type":"include","loc":{"start":{"line":2,"column":1},"filename":"/cases/includes.pug","end":{"line":2,"column":8}}}
{"type":"path","loc":{"start":{"line":2,"column":9},"filename":"/cases/includes.pug"... | 1,043 |
2,199 | /*******************************************************************************
* 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/.
************************************... | 1,266 |
752 | /*******************************************************************************
* 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... | 4,409 |
9,182 | #include <Autocoders/Python/test/serialize_stringbuffer/ExampleSerializableAc.hpp>
int main(int argc, char** argv) {
Example3::ExampleSerializable ex;
return 0;
}
| 63 |
951 | #include "byteArray.h"
byteArray::byteArray(size_t size)
{
if( size == 0 )
{
_length = 0;
_ptr = nullptr;
return;
}
_length = size;
_ptr = (uint8_t*)malloc(sizeof(uint8_t) * size);
}
byteArray::byteArray(const uint8_t *data,size_t size)
{
if( size == 0 )
{
_... | 1,745 |
758 | class Account(object):
def __init__(self, first, last, id, balance):
self.first = first
self.last = last
self.id = id
self.balance = balance
def info(self):
return (self.first, self.last, self.id, self.balance)
def __eq__(self, other):
return self.info() == ... | 227 |
593 | package org.ananas.runner.steprunner.gcs;
import static org.apache.beam.sdk.values.Row.toRow;
import com.google.api.services.bigquery.model.TableRow;
import org.ananas.runner.kernel.LoaderStepRunner;
import org.ananas.runner.kernel.StepRunner;
import org.ananas.runner.kernel.model.Step;
import org.ananas.runner.misc.... | 1,486 |
2,151 | <filename>sandbox/win/sandbox_poc/pocdll/fs.cc
// Copyright (c) 2006-2008 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 "sandbox/win/sandbox_poc/pocdll/exports.h"
#include "sandbox/win/sandbox_poc/pocdll/utils... | 851 |
2,508 |
extern zend_class_entry *stub_namespaces_classentry_ce;
ZEPHIR_INIT_CLASS(Stub_Namespaces_ClassEntry);
PHP_METHOD(Stub_Namespaces_ClassEntry, setParam);
PHP_METHOD(Stub_Namespaces_ClassEntry, setParamImported);
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_stub_namespaces_classentry_setparam, 0, 1, Stub\\Namespace... | 405 |
634 | /****************************************************************
* Licensed to the Apache Software Foundation (ASF) under one *
* or more contributor license agreements. See the NOTICE file *
* distributed with this work for additional information *
* regarding copyright ownership. The ASF licenses this... | 9,924 |
852 | <gh_stars>100-1000
#include "CondFormats/Luminosity/interface/LumiSectionData.h"
#include "CondFormats/Luminosity/interface/LumiCorrections.h"
| 51 |
7,137 | <gh_stars>1000+
package io.onedev.server.plugin.imports.gitea;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.ws.rs.client.Client;
import org.hibernate.validator.constraints.NotEmpty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... | 683 |
19,438 | <reponame>r00ster91/serenity<filename>Kernel/API/POSIX/sys/wait.h
/*
* Copyright (c) 2018-2021, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <Kernel/API/POSIX/sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
#define WEXITSTATUS(status) (((status)&0xff00) >> 8)
#define W... | 370 |
902 | package com.github.davidmoten.rtree.geometry.internal;
import com.github.davidmoten.guavamini.Objects;
import com.github.davidmoten.guavamini.Optional;
import com.github.davidmoten.rtree.geometry.Circle;
import com.github.davidmoten.rtree.geometry.Geometries;
import com.github.davidmoten.rtree.geometry.Line;
import co... | 1,914 |
14,668 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/system/network/network_feature_pod_button.h"
#include "base/check.h"
#include "ui/base/metadata/metadata_impl_macros.h"
namespace ash {
N... | 241 |
370 | /**
* @file hwaccel_libav_common.c
* @author <NAME> <<EMAIL>>
*
* @brief This file contains functions related to hw acceleration
*/
/*
* Copyright (c) 2018-2021 CESNET z.s.p.o.
*
* Redistribution and use in source and binary forms, with or without
* modification, is permitted provided that the following cond... | 1,886 |
851 | from xviz_avs.builder.declarative_ui.base_ui_builder import XVIZBaseUiBuilder
from xviz_avs.builder.declarative_ui.constants import UI_TYPES
class XVIZVideoBuilder(XVIZBaseUiBuilder):
def __init__(self, cameras, **kwargs):
super().__init__(UI_TYPES.VIDEO, **kwargs)
self._cameras = cameras
... | 252 |
740 | <gh_stars>100-1000
#ifndef VG_MEMOIZING_GRAPH_HPP_INCLUDED
#define VG_MEMOIZING_GRAPH_HPP_INCLUDED
/** \file
* memoizing_graph.hpp: defines a handle graph implementation memoizes the results
* of certain handle operations
*/
#include "handle.hpp"
#include <unordered_map>
namespace vg {
using namespace std;
... | 4,079 |
2,219 | #!/usr/bin/env python
#
# 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.
"""Creates an AndroidManifest.xml for an incremental APK.
Given the manifest file for the real APK, generates an AndroidManifest.xml ... | 2,204 |
4,009 | {
"CurrVersion": "1.4",
"MinCompatibleVersion": "1.0",
"Description": "schema update for cluster metadata cleanup",
"SchemaUpdateCqlFiles": [
"cluster_metadata.sql"
]
}
| 69 |
1,564 | package org.modelmapper.convention;
import org.testng.annotations.Test;
/**
* Tests the {@link StandardMatchingStrategy} against various source and destination hierarchy
* scenarios.
*
* @author <NAME>
*/
@Test
public class StandardMatchingStrategyTest extends InexactMatchingStrategyTest {
public ... | 496 |
5,169 | {
"name": "Astro",
"version": "2.0.0",
"summary": "A RoboPod containing a small collection of utilities for project reuse",
"homepage": "https://RobotsAndPencils.com",
"license": {
"type": "MIT",
"text": "Copyright (c) 2015 Robots and Pencils, Inc. All rights reserved.\nPermission is hereby granted, f... | 985 |
313 | <reponame>740326093/-<gh_stars>100-1000
//
// YBLMillionMessageTableView.h
// 手机云采
//
// Created by 乔同新 on 2017/7/27.
// Copyright © 2017年 乔同新. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger,MillionType) {
/**
* 公海客户
*/
MillionTypePublic,
/**
* 已关注客户
*/... | 347 |
1,025 | //==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file afAppStringConstants.h
///
//==========================================================================... | 25,933 |
347 | package org.ovirt.engine.core.bll.storage.disk.cinder;
import java.util.Collection;
import java.util.Collections;
import javax.enterprise.inject.Instance;
import javax.enterprise.inject.Typed;
import javax.inject.Inject;
import org.ovirt.engine.core.bll.InternalCommandAttribute;
import org.ovirt.engine.core.bll.cont... | 1,129 |
634 | <reponame>halotroop2288/consulo
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* 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 re... | 1,393 |
1,540 | <reponame>punamsapkale/testng
package test.uniquesuite;
import org.testng.Assert;
import org.testng.TestNG;
import org.testng.annotations.AfterTest;
import org.testng.annotations.Test;
import testhelper.OutputDirectoryPatch;
public class TestAfter {
@Test
public void testAfter() {
TestNG tng = new TestNG();
... | 255 |
812 | <reponame>narojkumar99/Melophile
package com.vpaliy.data.repository;
import com.vpaliy.data.mapper.Mapper;
import com.vpaliy.data.source.PersonalInfo;
import com.vpaliy.data.source.local.handler.PlaylistHandler;
import com.vpaliy.data.source.local.handler.TrackHandler;
import com.vpaliy.data.source.remote.Filter;
impo... | 1,341 |
1,131 | // 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... | 435 |
381 | /*
* F42Handler.h
*
* Created on: 15 maj 2014
* Author: MattLech
*/
#ifndef F42HANDLER_H_
#define F42HANDLER_H_
#include "GCodeHandler.h"
#include "Config.h"
#include "CurrentState.h"
#include "pins.h"
#include "Config.h"
#include "PinControl.h"
class F42Handler : public GCodeHandler
{
public:
static F42... | 194 |
5,300 | <filename>frameworks/Java/act/src/main/java/com/techempower/act/model/Fortune.java
package com.techempower.act.model;
/*-
* #%L
* TEB ActFramework Project
* %%
* Copyright (C) 2016 - 2017 ActFramework
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... | 524 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Groan",
"definitions": [
"A deep inarticulate sound conveying pain, despair, pleasure, etc.",
"A complaint.",
"A low creaking sound made by an object under pressure."
],
"parts-of-speech": "Noun"
} | 119 |
543 | <reponame>fredells/riiablo
package com.riiablo.engine.server;
import com.artemis.ComponentMapper;
import com.artemis.annotations.All;
import com.artemis.systems.IteratingSystem;
import com.badlogic.gdx.physics.box2d.Body;
import com.riiablo.engine.server.component.Box2DBody;
import com.riiablo.engine.server.component.... | 238 |
1,668 | package org.elixir_lang.eex.lexer;
import com.intellij.lexer.FlexAdapter;
import org.elixir_lang.eex.lexer.Flex;
import java.io.Reader;
public class Adapter extends FlexAdapter {
public Adapter() {
super(new Flex((Reader) null));
}
}
| 99 |
370 | <reponame>daiwei89/wdai_petuum_public<filename>src/petuum_ps/server/server_thread_group.cpp
#include <petuum_ps/server/server_thread_group.hpp>
#include <petuum_ps/server/server_thread.hpp>
#include <petuum_ps/server/ssp_push_server_thread.hpp>
#include <petuum_ps/server/ssp_aggr_server_thread.hpp>
#include <petuum_ps/... | 1,045 |
631 | <gh_stars>100-1000
from __future__ import absolute_import
import socket
try:
_GLOBAL_DEFAULT_TIMEOUT = socket._GLOBAL_DEFAULT_TIMEOUT
except AttributeError:
_GLOBAL_DEFAULT_TIMEOUT = object()
| 74 |
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... | 989 |
730 | <reponame>belzecue/mifthtools<filename>other/exchangers/houdini/exchanger.py
def get_exchange_path():
return '' | 47 |
743 | <reponame>althink/hermes<filename>hermes-client/src/main/java/pl/allegro/tech/hermes/client/HermesClientBuilder.java
package pl.allegro.tech.hermes.client;
import pl.allegro.tech.hermes.client.metrics.MetricsMessageDeliveryListener;
import pl.allegro.tech.hermes.client.metrics.MetricsProvider;
import java.net.URI;
im... | 1,197 |
412 | /*
* Jigasi, the JItsi GAteway to SIP.
*
* Copyright @ 2017 Atlassian Pty Ltd
*
* 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
*
*... | 935 |
6,132 | <reponame>mikenawrocki/angr<gh_stars>1000+
import os
import time
import angr
from angr import options as so
test_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../../binaries')
p = angr.Project(os.path.join(test_location, 'tests', 'x86_64', 'perf_unicorn_0'))
s_unicorn = p.factory.entry_stat... | 324 |
14,668 | <filename>ash/wm/desks/expanded_desks_bar_button.h
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_WM_DESKS_EXPANDED_DESKS_BAR_BUTTON_H_
#define ASH_WM_DESKS_EXPANDED_DESKS_BAR_BUTTON_H_
#i... | 844 |
831 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 807 |
1,953 | <reponame>yohannrub/grails-core<gh_stars>1000+
/*
* Copyright 2004-2005 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 26,641 |
1,822 | // Copyright (c) 2020 <NAME>
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// hpxinspect:nodeprecatedinclude:boost/system/error_code.hpp
// hpxinspect:nodeprecatedname:b... | 610 |
5,169 | {
"name": "MJGAvailability",
"version": "1.0.0",
"summary": "Help checking iOS API availability.",
"homepage": "https://github.com/JohnWong/MJGAvailability",
"description": "Help checking iOS API availability. 帮助检查iOS API的可用性",
"authors": {
"<NAME>": "<EMAIL>",
"<NAME>": "<EMAIL>"
},
"source": {... | 232 |
827 | """Helper function for _load_compcor."""
prefix_compcor = {"temporal_anat": ["t", "a"],
"temporal": ["t"],
"anat": ["a"]}
anat_masker = {"combined": ["combined"],
"separated": ["WM", "CSF"],
None: None}
def _find_compcor(confounds_json, compcor, n_co... | 1,389 |
530 | from typing import Optional, Union
from tartiflette.language.ast import (
ListTypeNode,
NamedTypeNode,
NonNullTypeNode,
)
from tartiflette.types.list import GraphQLList
from tartiflette.types.non_null import GraphQLNonNull
__all__ = ("schema_type_from_ast",)
def schema_type_from_ast(
schema: "GraphQ... | 575 |
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/modules/xr/xr_transient_input_hit_test_result.h"
#include "device/vr/public/mojom/vr_service.mojom-blink.h"
#include... | 427 |
575 | <reponame>mghgroup/Glide-Browser
// 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 <memory>
#include <vector>
#include "base/barrier_closure.h"
#include "base/bind.h"
#include "base/callback.h"
... | 6,352 |
796 | <reponame>ProtectorYT364/BlockLauncher
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class net_zhuoweizhang_mcpelauncher_ScriptManager */
#ifndef _Included_net_zhuoweizhang_mcpelauncher_ScriptManager
#define _Included_net_zhuoweizhang_mcpelauncher_ScriptManager
#ifdef __cplusplus... | 33,538 |
372 | <filename>clients/google-api-services-sheets/v4/1.30.1/com/google/api/services/sheets/v4/model/UpdateBordersRequest.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.apac... | 1,914 |
1,015 | <gh_stars>1000+
#include <numeric>
#include <algorithm>
#include <cstdint>
#include <string>
#include <charconv>
namespace dxvk {
/**
* \brief Simplest ratio helper
*/
template <typename T>
class Ratio {
public:
Ratio(T num, T denom) {
set(num, denom);
}
Ratio(std::string_view view)... | 740 |
12,718 | <reponame>Bhuvanesh1208/ruby2.6.1<gh_stars>1000+
/**
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER within this package.
*/
#ifndef _NLDEF_
#define _NLDEF_
#include <winapifamily.h>
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) || _WIN32_WINNT >=... | 2,111 |
413 | <gh_stars>100-1000
#ifndef CAFFE_CUDNN_SIGMOID_LAYER_HPP_
#define CAFFE_CUDNN_SIGMOID_LAYER_HPP_
#include "./cudnn.hpp"
#include "../sigmoid_layer.hpp"
namespace caffe {
#ifdef USE_CUDNN
/**
* @brief CuDNN acceleration of SigmoidLayer.
*/
class CuDNNSigmoidLayer : public SigmoidLayer {
public:
explicit CuDNNSig... | 466 |
1,587 | import pytest
# we want to have pytest assert introspection in the helpers
pytest.register_assert_rewrite('tests.helpers')
| 35 |
3,428 | <filename>lib/node_modules/@stdlib/datasets/spam-assassin/data/easy-ham-1/00645.2d95a6a89614625aafb7b333e799e111.json<gh_stars>1000+
{"id":"00645","group":"easy-ham-1","checksum":{"type":"MD5","value":"2d95a6a89614625aafb7b333e799e111"},"text":"From <EMAIL> Thu Sep 19 16:25:55 2002\nReturn-Path: <<EMAIL>>\nDelivered-T... | 1,150 |
964 | [
{
"queryName": "Field 'securityScheme' On Components Is Undefined",
"severity": "HIGH",
"line": 2,
"filename": "positive1.json"
},
{
"queryName": "Field 'securityScheme' On Components Is Undefined",
"severity": "HIGH",
"line": 43,
"filename": "positive2.json"
},
{
"queryN... | 373 |
852 | <filename>TrackingTools/PatternTools/interface/TransverseImpactPointExtrapolator.h<gh_stars>100-1000
#ifndef TransverseImpactPointExtrapolator_h_
#define TransverseImpactPointExtrapolator_h_
#include "TrackingTools/GeomPropagators/interface/Propagator.h"
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
#i... | 1,310 |
2,027 | <gh_stars>1000+
/*
* Copyright 2016-present Open Networking 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 r... | 3,892 |
965 | <gh_stars>100-1000
afxMemDF = allocMemDF | checkAlwaysMemDF; | 23 |
466 | package com.gykj.zhumulangma.listen.adapter;
import android.widget.CheckBox;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.gykj.zhumulangma.common.util.ZhumulangmaUtil;
import com... | 480 |
1,085 | <gh_stars>1000+
/*
* Copyright (C) 2017-2019 Dremio 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.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 1,880 |
1,346 | <reponame>duruyi/dal<filename>dal-client/src/main/java/com/ctrip/platform/dal/dao/task/DalSqlTaskRequest.java
package com.ctrip.platform.dal.dao.task;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Callable;
import... | 11,733 |
1,350 | <reponame>ppartarr/azure-sdk-for-java
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.batch.protocol.models;... | 2,140 |
3,200 | <reponame>PowerOlive/mindspore
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
copyright 2020 Huawei Technologies Co., Ltd
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/lic... | 3,783 |
743 | <filename>extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/JDBCAuthenticationProviderService.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for... | 2,413 |
385 | import tensorflow as tf
import numpy as np
from utils import data_handler as dh
import src.OPTICS as OPTICS
import scipy.misc
import matplotlib.pyplot as plt
from sklearn.metrics import average_precision_score as aps
FLAGS = tf.app.flags.FLAGS
from time import time
import config
import os
import pickle
import csv
cla... | 12,308 |
679 | <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 license... | 1,052 |
1,350 | <filename>sdk/core/azure-core/src/main/java/com/azure/core/util/paging/ContinuablePage.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.util.paging;
import com.azure.core.util.IterableStream;
/**
* Represents a page returned, this page may c... | 313 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.