max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
787 | /*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... | 1,054 |
615 | <gh_stars>100-1000
package org.byron4j.cookbook.netty.login;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioSocketChannel;
public class Client {
... | 552 |
313 | //------------------------------------------------------------------------------
// GB_Pending_n: return the # of pending tuples in a matrix
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2022, All Rights Reserved.
// SPDX-License-Identifier:... | 226 |
558 | <reponame>kozakura51/MelonLoader<filename>Bootstrap/Managers/Hook.h
#pragma once
#include <vector>
class Hook
{
public:
static void Attach(void** target, void* detour);
static void Detach(void** target, void* detour);
}; | 81 |
313 | //
// ZJSelectedTextField.h
// ZJUsefulPickerView
//
// Created by ZeroJ on 16/9/10.
// Copyright © 2016年 ZeroJ. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ZJSinglePickerView.h"
#import "ZJMultiplePickerView.h"
#import "ZJMultipleAssociatedPickerView.h"
#import "ZJDatePickerView.h"
#import "ZJToolBar... | 1,518 |
334 | #! /usr/local/bin/python
# Copyright Contributors to the OpenCue 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 req... | 5,838 |
14,668 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/vr/text_edit_action.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
namespace vr {
... | 475 |
2,406 | <filename>src/plugins/intel_gpu/src/kernel_selector/core/actual_kernels/lrn/lrn_kernel_across_channel_multiple_features_fsv16.h
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "lrn_kernel_across_channel_multiple_features.h"
namespace kernel_selector {
clas... | 302 |
831 | /*
* Copyright (C) 2018 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... | 343 |
5,362 | # -*- coding: utf-8 -*-
from pokemongo_bot.event_manager import EventHandler
from pokemongo_bot.base_dir import _base_dir
import json
import os
import time
import discord_simple
import thread
import re
from pokemongo_bot.datastore import Datastore
from pokemongo_bot import inventory
from chat_handler import ChatHandler... | 1,617 |
945 | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 1,463 |
4,772 | <filename>jpa/deferred/src/main/java/example/service/Customer69Service.java
package example.service;
import example.repo.Customer69Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer69Service {
public Customer69Service(Customer69Repository repo) {}
}
| 85 |
575 | <reponame>sarang-apps/darshan_browser
// 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 CHROME_BROWSER_VR_KEYBOARD_DELEGATE_FOR_TESTING_H_
#define CHROME_BROWSER_VR_KEYBOARD_DELEGATE_FOR_TESTING_H... | 638 |
1,738 | <reponame>jeikabu/lumberyard<filename>dev/Code/Sandbox/Editor/AI/NavDataGeneration/AILog.cpp
/*
* 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 ... | 4,692 |
5,169 | <reponame>Gantios/Specs<filename>Specs/e/8/4/NEScreenShareBroadcaster/0.0.5/NEScreenShareBroadcaster.podspec.json
{
"name": "NEScreenShareBroadcaster",
"version": "0.0.5",
"summary": "NEScreenShareBroadcaster is the broadcaster part of NEScreenShareKit.",
"description": "NEScreenShareBroadcaster is the broadcas... | 390 |
303 | #include"dao_Greeting.h"
DaoMethod* Dao_Get_Object_Method( DaoCdata *cd, DaoObject **obj, const char *name )
{
DaoMethod *meth;
if( cd == NULL ) return NULL;
*obj = DaoCdata_GetObject( cd );
if( *obj == NULL ) return NULL;
meth = DaoObject_GetMethod( *obj, name );
if( meth == NULL ) return NULL;
if( DaoVa... | 4,187 |
335 | {
"word": "Timeline",
"definitions": [
"A graphical representation of a period of time, on which important events are marked."
],
"parts-of-speech": "Noun"
} | 68 |
407 | #include <iostream>
typedef long long int ll;
using namespace std;
int N, S, nums[25], ans;
void input() {
cin >> N >> S;
for (int i=1;i<=N;i++)
cin >> nums[i];
}
void rec_func(int k, int value) {
if (k == N + 1) {
if (value == S) ans++;
return;
}
rec_func(k + 1, value + nums[k]);
rec_func(k + 1, value);
... | 221 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-9vxc-g2jx-qj3p",
"modified": "2021-09-23T21:00:28Z",
"published": "2020-08-31T22:59:07Z",
"aliases": [
"CVE-2013-7379"
],
"summary": "API Admin Auth Weakness in tomato",
"details": "Versions of `tomato` prior t... | 1,336 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-j8rw-rf36-vrj8",
"modified": "2022-05-01T07:33:24Z",
"published": "2022-05-01T07:33:24Z",
"aliases": [
"CVE-2006-5950"
],
"details": "Unspecified vulnerability in ALTools ALFTP FTP Server 4.1 beta 1, and possibly earlier, allows remote authen... | 519 |
578 | package com.cyfonly.flogger.strategy;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import com.cyfonly.flogger.constants.Constant;... | 3,411 |
19,127 | /*
* Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... | 9,647 |
5,079 | def b():
pass
| 9 |
2,151 | <reponame>MauroArgentino/RSXGL
/**************************************************************************
*
* Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas.
* Copyright 2009-2010 <NAME> <<EMAIL>>
* Copyright 2010-2011 LunarG, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of char... | 6,770 |
665 | /*
* 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")... | 572 |
2,392 | /*
tests/test_stl_binders.cpp -- Usage of stl_binders functions
Copyright (c) 2016 <NAME>
All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
*/
#include "pybind11_tests.h"
#include <pybind11/stl_bind.h>
#include <map>
#include <unor... | 518 |
325 | <gh_stars>100-1000
package com.box.l10n.mojito.service.asset;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
/**
*
* @author jeanaurambault
*/
@ResponseStatus(HttpStatus.BAD_REQUEST)
public class VirtualAssetRequiredException extends VirtualAssetBadReques... | 135 |
1,444 |
package mage.cards.h;
import java.util.UUID;
import mage.abilities.effects.common.PutLibraryIntoGraveTargetEffect;
import mage.abilities.effects.common.discard.DiscardTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.target.TargetPlayer;
/**
*
* @a... | 343 |
4,681 | <reponame>gilbertekalea/booking.com_crawler
from collections import defaultdict
import attr
from async_generator import asynccontextmanager
from .. import _core
from .. import _util
from .. import Event
if False:
from typing import DefaultDict, Set
@attr.s(eq=False, hash=False)
class Sequencer(metaclass=_util.... | 1,197 |
1,078 | <filename>mcstatus/tests/test_server.py
import asyncio
from mock import patch, Mock
import pytest
from mcstatus.protocol.connection import Connection, TCPAsyncSocketConnection
from mcstatus.server import MinecraftServer
class MockProtocolFactory(asyncio.Protocol):
transport: asyncio.Transport
def __init__(... | 3,652 |
575 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ASH_LOGIN_TEST_WEBVIEW_CONTENT_EXTRACTOR_H_
#define CHROME_BROWSER_ASH_LOGIN_TEST_WEBVIEW_CONTENT_EXTRACTOR_H_
#include <string>
... | 263 |
645 | <reponame>AlexShypula/stoke<gh_stars>100-1000
// Copyright 2013-2016 Stanford University
//
// 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... | 325 |
5,908 | <filename>modules/trino/src/main/java/org/testcontainers/containers/TrinoContainerProvider.java
package org.testcontainers.containers;
import org.testcontainers.utility.DockerImageName;
/**
* Factory for Trino containers.
*/
public class TrinoContainerProvider extends JdbcDatabaseContainerProvider {
@Override
... | 240 |
590 | <filename>problems/kruskal_mst_really_special_subtree.py<gh_stars>100-1000
#!/bin/python3
"""
https://www.hackerrank.com/challenges/kruskalmstrsub/problem
"""
import heapq
import os
class Group:
def __init__(self, group_id, element):
self.group_id = group_id
self.elements = [element, ]
sel... | 1,391 |
340 | <filename>algorithms/missing-numbers.py
#!/bin/python3
import sys
from collections import Counter
def missingNumbers(arr, brr):
acnt = Counter(arr)
bcnt = Counter(brr)
for el in acnt.items():
#print("checking {}".format(el))
get = bcnt.get(el[0])
if get:
bcnt[el[0]... | 331 |
1,750 | <reponame>mineben256/hangups-copying
import subprocess
import unittest.mock
from hangups.ui import notifier
NOTIFICATION = notifier.Notification(
'<NAME>', 'Cheese Shop', 'How about a little red Leicester?'
)
MOCK_DBUS = unittest.mock.patch(
'subprocess.check_output', autospec=True, return_value=b'(uint32 7,... | 1,210 |
2,921 | /* This module handles generating & modifying messages randomly for the fuzz test. */
#ifndef RANDOM_DATA_H
#define RANDOM_DATA_H
#include <pb.h>
void random_set_seed(uint32_t seed);
uint32_t random_get_seed();
/* Random 32-bit integer */
uint32_t rand_word();
/* Get a random integer in range, with approximately f... | 400 |
779 | /*
* Copyright (c) 2019 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | 320 |
2,921 | <reponame>HasanAziz/assets<gh_stars>1000+
{
"name": "<NAME>",
"symbol": "BZN",
"type": "ERC20",
"decimals": 18,
"description": "War Riders is the MMO game of earning cryptocurrency and blowing up cars. Use your vehicles to mine and attack enemies for Benzene.",
"website": "https://warriders.com/... | 185 |
390 | <filename>applications/cli/platform_resources/experiment.py
#
# Copyright (c) 2019 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.apache.org/licenses/LI... | 4,670 |
538 | package com.github.luben.zstd;
abstract class SharedDictBase extends AutoCloseBase {
@Override
protected void finalize() {
close();
}
}
| 59 |
1,816 | """Sms Component"""
class Sms:
_from = ""
_to = ""
_text = ""
_client_ref = ""
_type = "text"
def __init__(self, text=""):
self._text = text
def from_(self, number):
"""Set the name or number the message should be sent from. Numbers should
be specified in E.164 f... | 623 |
341 | from stellar_sdk.call_builder import FeeStatsCallBuilder
from tests.call_builder import client, horizon_url
class TestFeeStatsCallBuilder:
def test_init(self):
builder = FeeStatsCallBuilder(horizon_url, client)
assert builder.endpoint == "fee_stats"
assert builder.params == {}
| 104 |
1,100 | /*********************************************************************************
* (The Person, Student, Employee, Faculty, and Staff classes) Design a *
* class named Person and its two subclasses named Student and Employee. *
* Make Faculty and Staff subclasses of Employee. A person has a name, ... | 671 |
8,890 | <reponame>TremaMiguel/LightGBM<gh_stars>1000+
/*!
* Copyright (c) 2021 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifdef USE_CUDA_EXP
#include <LightGBM/cuda/cuda_tree.hpp>
namespace LightGBM {
CUDATree::CUDATree(... | 8,463 |
1,383 | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | 2,301 |
778 | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main Authors: <NAME>
//
#ifndef KRATOS_MESH_MOV... | 2,405 |
6,270 | <reponame>gabegorelick/aws-sdk-js
[
{
"type": "feature",
"category": "EC2",
"description": "General Update to EC2 Docs and SDKs"
},
{
"type": "feature",
"category": "SecurityHub",
"description": "Add support for DescribeStandardsControls and UpdateStandardsCon... | 170 |
8,747 | <filename>components/soc/esp32h2/include/soc/usb_serial_jtag_struct.h
// Copyright 2021 Espressif Systems (Shanghai) 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
//
// htt... | 9,048 |
1,692 | <gh_stars>1000+
/*
* Copyright 2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | 687 |
605 | <filename>llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp<gh_stars>100-1000
//===- HexagonConstPropagation.cpp ----------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-Licens... | 41,963 |
5,269 | /*
* Copyright (c) 2020, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
*
* You may not use this file except in compliance with the License. You may
* obtain... | 2,062 |
482 | <filename>code/iaas/model/src/main/java/io/cattle/platform/core/util/HostnameGenerator.java
package io.cattle.platform.core.util;
import io.cattle.platform.archaius.util.ArchaiusUtil;
import io.cattle.platform.core.constants.NetworkConstants;
import io.cattle.platform.core.model.Instance;
import io.cattle.platform.cor... | 1,048 |
965 | newstate.Checkpoint();
if (diffstate.Difference(oldstate, newstate))
{
TRACE(_T("Memory leaked\n"));
diffstate.DumpStatistics();
} | 81 |
421 | <reponame>ox01024/reapoc<gh_stars>100-1000
from collections import OrderedDict
import urllib.parse
import re
from pocsuite3.api import POCBase, Output, register_poc, logger, requests, OptDict, OptString, VUL_TYPE
from pocsuite3.api import REVERSE_PAYLOAD, POC_CATEGORY
from requests.api import patch
from requests.packag... | 1,962 |
988 | /*
* 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 ... | 3,027 |
3,066 | <filename>src/plugins/gmedecoder/gme/gme_custom_dprintf.c
#include "gme_custom_dprintf.h"
#ifdef CUSTOM_DPRINTF_FUNCTION
gme_custom_dprintf_callback gme_custom_dprintf = 0;
#endif | 78 |
310 | <reponame>dreeves/usesthis
{
"name": "iPad mini 3",
"description": "A 7.9 inch tablet device with a Retina screen.",
"url": "https://en.wikipedia.org/wiki/IPad_Mini_3"
} | 69 |
4,812 | <reponame>david3424/springside4<gh_stars>1000+
package org.springside.examples.bootapi.dto;
import org.apache.commons.lang3.builder.ToStringBuilder;
public class AccountDto {
public Long id;
public String email;
public String name;
@Override
public String toString() {
return ToStringBuilder.reflect... | 131 |
1,339 | # -*- coding: UTF-8 -*-
# !/usr/bin/python
# @time :2019/6/3 10:51
# @author :Mo
# @function :()
from keras import regularizers
from keras.layers import Dense
from keras.layers import Dropout, Flatten
from keras.layers import SpatialDropout1D, GlobalMaxPooling1D, GlobalAveragePooling1D, Concatenate
f... | 801 |
3,307 | #pragma once
#include <stdio.h>
#include <stdlib.h>
#include "dynet/dict.h"
using namespace std;
using namespace dynet;
WordIdCorpus read_corpus(const string &filename
, dynet::Dict* sd, dynet::Dict* td
, bool cid=true/*corpus id, 1:train;0:otherwise*/
, unsigned slen=0, bool r2l_target=false
, bool swap=false)... | 986 |
879 | package org.zstack.header.network.service;
import org.zstack.header.core.Completion;
import org.zstack.header.core.NoErrorCompletion;
import org.zstack.header.host.Host;
import org.zstack.header.network.l3.L3NetworkInventory;
import org.zstack.header.vm.VmInstanceSpec;
import java.util.List;
public interface Networ... | 183 |
713 |
import heapq
# Using MAX Heap
class Solution(object):
def kClosest(self, points, K):
"""
:type points: List[List[int]]
:type K: int
:rtype: List[List[int]]
"""
if len(points) <= K:
return points
maxHeap = []
for i in range(K):
... | 491 |
647 | /* SCANNER TEST */
/*
* Copyright © 2016 Collabora, Ltd.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, ... | 608 |
530 | <gh_stars>100-1000
from functools import partial
from typing import Any, Callable
from tartiflette.coercers.inputs.compute import get_input_coercer
from tartiflette.coercers.literals.compute import get_literal_coercer
from tartiflette.coercers.variables import variable_coercer
from tartiflette.constants import UNDEFIN... | 1,075 |
8,865 | /* $OpenBSD: ieee.h,v 1.4 2011/11/08 17:06:51 deraadt Exp $ */
/* $NetBSD: ieee.h,v 1.2 2001/02/21 17:43:50 bjh21 Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This software was developed by the Computer Systems Engineering group
* at Lawrence Berk... | 1,260 |
1,244 | <reponame>caokun8008/ckeos
#include <unistd.h>
#include "syscall.h"
int fsync(int fd)
{
return syscall(SYS_fsync, fd);
}
| 64 |
407 | <filename>강의 자료/02-알고리즘/12-트리/문제별 코드/3584-가장 가까운 공통 조상/solution.cpp
#include <iostream>
#include <algorithm>
#pragma warning(disable:4996)
using namespace std;
#define NM 10005
int n, par[NM], check[NM], TT;
void input() {
cin >> n;
for (int i = 1; i <= n; i++) par[i] = 0;
for (int i = 1; i < n; i++) {
int u, v;... | 502 |
311 | <reponame>MatthewMartinFD/dd-trace-java
package datadog.trace.instrumentation.scala.concurrent;
import static java.util.Collections.singletonMap;
import static net.bytebuddy.matcher.ElementMatchers.isMethod;
import static net.bytebuddy.matcher.ElementMatchers.named;
import static scala.concurrent.impl.Promise.Transfor... | 1,202 |
367 | <filename>Direct3D/Normal Mapping/camera.h
#ifndef CAMERA_H
#define CAMERA_H
#include "vector.h"
const float kDefaultAmt = 1.0f; // Number of units to move by default
// Simple camera class, that moves forward, back, right and left
class CCamera
{
public:
CCamera();
void reset(); // Resets to a "starting"... | 584 |
532 | <reponame>vinaym815/opensim-core
/*******************************************************************************
SIMMTOOPENSIM.C
Author: <NAME>, <NAME>
Date: November 10, 2006
Description:
Reads in SIMM joint and muscle files and writes an OpenSim model file.
Routines:
********************... | 34,058 |
1,482 | # issue 150
cmd = "git-clang-format --style=\"{{BasedOnStyle: Google, ColumnLimit: 100, IndentWidth: 2, " \
"AlignConsecutiveAssignments: true}}\" {COMMIT_SHA} -- ./**/*.proto > {OUTPUT}".format(
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
issue 150 : c... | 947 |
343 | <reponame>EasyLian/rhino3dm
#include "bindings.h"
BND_Surface::BND_Surface()
{
}
BND_Surface::BND_Surface(ON_Surface* surface, const ON_ModelComponentReference* compref)
{
SetTrackedPointer(surface, compref);
}
void BND_Surface::SetTrackedPointer(ON_Surface* surface, const ON_ModelComponentReference* compref)
{
... | 2,852 |
420 | <reponame>miketrumpis/arrayfire-python
#!/usr/bin/python
#######################################################
# Copyright (c) 2015, ArrayFire
# All rights reserved.
#
# This file is distributed under 3-clause BSD license.
# The complete license agreement can be obtained at:
# http://arrayfire.com/licenses/BSD-3-Cla... | 410 |
2,757 | <reponame>CEOALT1/RefindPlusUDK
/** @file
Sample to provide SecTemporaryRamDone function.
Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanie... | 553 |
432 | <gh_stars>100-1000
#include "config.h"
#define NARROWCHAR
#include "history.c"
| 32 |
334 | <reponame>misialq/qiime2<gh_stars>100-1000
# ----------------------------------------------------------------------------
# Copyright (c) 2016-2021, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# -----... | 571 |
3,488 | from collections import OrderedDict
from htmlparsing import HTMLParsing, Selector
class ItemType(type):
def __new__(cls, what, bases=None, attrdict=None):
__fields__ = OrderedDict()
for name, selector in attrdict.items():
if isinstance(selector, Selector):
__fields__[... | 585 |
361 | /*
* 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 ... | 897 |
2,338 | #define COUNT 101
static volatile int aaa;
int main(int argc, char *argv[]) {
for (int i = 0; i < COUNT; i++)
aaa++;
return 0;
}
| 60 |
631 | /**
* 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,003 |
585 | <reponame>KevinKecc/caffe2<gh_stars>100-1000
/**
* Copyright (c) 2016-present, Facebook, 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/LIC... | 840 |
777 | // 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.
#ifndef NET_COOKIES_COOKIE_CONSTANTS_H_
#define NET_COOKIES_COOKIE_CONSTANTS_H_
#include <string>
#include "net/base/net_export.h"
namespace net {
enu... | 476 |
1,439 | <gh_stars>1000+
/**
* ___ _ _ ___ _ _ ___ ___ ___ ___
* / __| | | | \ /_\ | | ___| _ ) __/ __/ __|
* | (__| |_| | |) / _ \ | |_|___| _ \ _| (_ \__ \
* \___|\___/|___/_/ \_\ |____| |___/_| \___|___/
* 2012
* by <NAME> (<EMAIL>)
*... | 3,984 |
6,457 | <filename>src/proc/identity-processing-block.h
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2019 Intel Corporation. All Rights Reserved.
#pragma once
#include "synthetic-stream.h"
namespace librealsense
{
class LRS_EXTENSION_API identity_processing_block : public stream_filter_proc... | 196 |
855 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
from django.contrib import admin
class BaseOwnerInline(admin.StackedInline):
raw_id_fields = ("organization_user",)
class BaseOrganizationAdmin(admin.ModelAdmin):
list_display = ["name", "is_active"]
prepopulated_fields = {"slug": ("name",)}
search_fields ... | 222 |
473 | /** @file sw_aes.h
*
* The file contains declarations for using the software implementation of AES
*
*/
/*
Copyright 2015, Google 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 a... | 999 |
1,760 | <reponame>sambacha/nginx2
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME>ung (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
... | 1,846 |
479 | /**
* 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
* distribu... | 1,121 |
11,811 | #
# Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
# Use of this file is governed by the BSD 3-clause license that
# can be found in the LICENSE.txt file in the project root.
#
#
# This is an InputStream that is loaded from a file all at once
# when you construct the object.
#
import codecs
from an... | 308 |
372 | <filename>Demos/PetDoor/cpp/MotionSensor.h
#pragma once
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::Devices::Enumeration;
using namespace Windows::Devices::Gpio;
using namespace Windows::UI::Xaml;
using namespace Windows::Sys... | 268 |
1,114 | <reponame>averne/libnx<gh_stars>1000+
/**
* @file cmif.h
* @brief Common Message Interface Framework protocol
* @author fincs
* @author SciresM
* @copyright libnx Authors
*/
#pragma once
#include "hipc.h"
#define CMIF_IN_HEADER_MAGIC 0x49434653 // "SFCI"
#define CMIF_OUT_HEADER_MAGIC 0x4F434653 // "SFCO"
typed... | 5,290 |
2,542 | <reponame>AnthonyM/service-fabric
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------------------------------------------------------... | 1,376 |
3,508 | package com.fishercoder.solutions;
public class _370 {
public static class Solution1 {
public int[] getModifiedArray(int length, int[][] updates) {
int[] nums = new int[length];
int k = updates.length;
for (int i = 0; i < k; i++) {
int start = updates[i][... | 641 |
1,155 | /*
*
* (C) Copyright IBM Corp. 1998-2008 - All Rights Reserved
*
*/
#ifndef __SUBSTITUTIONLOOKUPS_H
#define __SUBSTITUTIONLOOKUPS_H
/**
* \file
* \internal
*/
#include "LETypes.h"
#include "LEFontInstance.h"
#include "OpenTypeTables.h"
#include "GlyphSubstitutionTables.h"
#include "GlyphIterator.h"
#include "... | 333 |
2,151 | # Copyright 2015 The Shaderc Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 2,464 |
2,728 | <filename>sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/__init__.py
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from .algorithm import (
Algorithm,
AsymmetricEncryptionAlgorithm,
... | 335 |
582 | package org.weiboad.ragnar.kafka;
import org.apache.kafka.clients.producer.Callback;
import org.apache.kafka.clients.producer.Producer;
import org.apache.kafka.clients.producer.ProducerRecord;
import org.apache.kafka.clients.producer.RecordMetadata;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java... | 1,776 |
324 | /*
* 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 ... | 4,370 |
1,145 | from .fixtures import * # noqa
| 11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.