max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
2,542 | <filename>src/prod/src/Hosting2/OverlayNetworkResourceProvider.h
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ---------------------------... | 3,053 |
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 ... | 1,292 |
763 | package org.batfish.datamodel.flow;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
import com.google.common.testing.EqualsTester;
import org.batfish.common.util.BatfishObjectMapper;
import org.batfish.datamodel.Ip;
import org.batfish.datamodel.collections.NodeInterfacePair;
im... | 1,620 |
2,338 | // RUN: %clang_cc1 -fno-builtin-memccpy -emit-llvm < %s| FileCheck %s
typedef __SIZE_TYPE__ size_t;
void *memccpy(void *, void const *, int, size_t);
void test13(char *d, char *s, int c, size_t n) {
// CHECK: call i8* @memccpy{{.*}} #2
memccpy(d, s, c, n);
}
// CHECK: attributes #2 = { nobuiltin "no-builtin-mem... | 152 |
317 | <gh_stars>100-1000
//
// Serialize.cc
// drafter
//
// Created by <NAME> on 5/3/13.
// Copyright (c) 2013 Apiary Inc. All rights reserved.
//
#include "Serialize.h"
#include "StringUtility.h"
#include <cstdlib>
using namespace drafter;
using namespace refract;
template <>
std::pair<bool, dsd::Boolean> drafter::... | 2,098 |
2,816 | /*
* Legal Notice
*
* This document and associated source code (the "Work") is a part of a
* benchmark specification maintained by the TPC.
*
* The TPC reserves all right, title, and interest to the Work as provided
* under U.S. and international laws, including without limitation all patent
* and trademark rig... | 14,900 |
1,102 | <filename>src/vizdoom/src/g_shared/a_mapmarker.cpp
/*
** a_mapmarker.cpp
** An actor that appears on the automap instead of in the 3D view.
**
**---------------------------------------------------------------------------
** Copyright 2006 <NAME>
** All rights reserved.
**
** Redistribution and use in source and... | 820 |
4,320 | <filename>http-service/src/main/java/net/runelite/http/service/xp/XpMapper.java
/*
* Copyright (c) 2018, Adam <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribution... | 1,666 |
332 | <filename>tricks/stl_iteration/cpp/main.cpp<gh_stars>100-1000
// IMPORT STANDARD LIBRARIES
#include <iostream>
#include <iterator>
#include <numeric>
#include <string>
// IMPORT THIRD-PARTY LIBRARIES
#include <pxr/usd/kind/registry.h>
#include <pxr/usd/sdf/path.h>
#include <pxr/usd/usd/modelAPI.h>
#include <pxr/usd/us... | 620 |
465 | # -*- coding:utf-8 -*-
import sys
import time
import json
import random
import string
import cls_kv_pb2
##pb协议客户自定义
def pb_gen(start_index, size):
logGroupList = cls_kv_pb2.LogGroupList()
LogGroup = logGroupList.logGroupList.add()
log = LogGroup.logs.add()
log.time = int(time.time())
for index in r... | 334 |
834 | <filename>fboss/agent/platforms/tests/utils/BcmTestGalaxyPort.cpp
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights c... | 366 |
560 | /*
* Copyright (c) 2018 <NAME> <<EMAIL>>
* All Rights Reserved.
*/
package me.zhanghai.android.douya.functional;
import java.util.Objects;
import me.zhanghai.android.douya.functional.compat.Consumer;
public class IterableCompat {
private IterableCompat() {}
public static <T> void forEach(Iterable<T> it... | 187 |
32,544 | package com.baeldung.quarkus.liquibase;
import io.agroal.api.AgroalDataSource;
import liquibase.Liquibase;
import liquibase.database.jvm.JdbcConnection;
import liquibase.resource.ClassLoaderResourceAccessor;
import liquibase.resource.ResourceAccessor;
import javax.enterprise.context.ApplicationScoped;
import javax.en... | 370 |
2,113 | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | 2,025 |
2,201 | """
Copyright (c) 2021 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/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 1,501 |
416 | <reponame>sharplook/tencentcloud-sdk-java-test<gh_stars>100-1000
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 th... | 3,204 |
777 | <reponame>google-ar/chromium
// 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 "ui/aura/mus/in_flight_change.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/mus/capture_synchroni... | 2,903 |
606 | #if defined(__linux__) && !defined(__ANDROID__)
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include "seccomp.h"
#include "util.h"
union cmsg {
char buf[CMSG_SPACE(sizeof(int))];
struct cmsghdr hdr;
};
void seccomp_socket_create(int *sock) {
int ... | 1,542 |
687 | // Copyright 2021 The XLS 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/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 1,735 |
1,968 | <gh_stars>1000+
//////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: <EMAIL>
//
///////////////////////... | 6,856 |
3,655 | import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddle import ParamAttr
from paddle.regularizer import L2Decay
from paddlex.ppdet.core.workspace import register
def _de_sigmoid(x, eps=1e-7):
x = paddle.clip(x, eps, 1. / eps)
x = paddle.clip(1. / x - 1., eps, 1. / eps)
x = -paddl... | 2,570 |
545 | <reponame>mmoegele/xmastree2020<filename>examples/xmaslights-tetrahedron.py
def xmaslight():
# This is the code from my
#NOTE THE LEDS ARE GRB COLOUR (NOT RGB)
# Here are the libraries I am currently using:
import time
import board
import neopixel
import re
import math
... | 2,814 |
815 | #include "vtkContext2DScalarBarActor.h"
#include "vtkAxis.h"
#include "vtkBoundingRectContextDevice2D.h"
#include "vtkBrush.h"
#include "vtkColorTransferFunction.h"
#include "vtkContext2D.h"
#include "vtkContextActor.h"
#include "vtkContextDevice2D.h"
#include "vtkContextItem.h"
#include "vtkContextScene.h"
#include "... | 15,940 |
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.
// ------------------------------------------------------------
#include "stdafx.h"
#include ... | 4,268 |
582 | <reponame>PinoEire/archi
/**
* This program and the accompanying materials
* are made available under the terms of the License
* which accompanies this distribution in the file LICENSE.txt
*/
package com.archimatetool.editor.ui.textrender;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
impor... | 4,378 |
769 | #ifndef __GPIO_H
#define __GPIO_H
#include <stm32l4xx.h>
// GPIO pin definitions
#define GPIO_PIN_0 GPIO_BSRR_BS0
#define GPIO_PIN_1 GPIO_BSRR_BS1
#define GPIO_PIN_2 GPIO_BSRR_BS2
#define GPIO_PIN_3 GPIO_BSRR_BS3
#define GPIO_PIN_4 GPIO... | 3,137 |
651 | <reponame>dandycheung/subzero<filename>java/gui/src/main/java/com/squareup/subzero/wallet/TestWallets.java<gh_stars>100-1000
package com.squareup.subzero.wallet;
/**
* Hardcoded wallets for blackbox regression testing of subzero transaction signing
* <p>
* Instead of loading a test wallet from a file, we have it lo... | 1,120 |
1,224 | <gh_stars>1000+
package plugin.google.maps;
public interface AsyncLoadImageInterface {
public void onPostExecute(AsyncLoadImage.AsyncLoadImageResult result) ;
}
| 48 |
301 | <reponame>Anton-V-K/Notepad2e
// Scintilla source code edit control
/** @file LexerBase.h
** A simple lexer with no state.
**/
// Copyright 1998-2010 by <NAME> <<EMAIL>>
// The License.txt file describes the conditions under which this software may be distributed.
#ifndef LEXERBASE_H
#define LEXERBASE_H
n... | 782 |
732 | import argparse
import os
import pytest
from shutil import rmtree, copytree
from afdko.makeinstancesufo import (
main as mkinstufo,
get_options,
_split_comma_sequence,
updateInstance,
)
from runner import main as runner
from differ import main as differ
from test_utils import get_input_path
TOOL = 'ma... | 3,281 |
1,127 | <gh_stars>1000+
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include <string>
#include <memory>
#include <ngraph/function.hpp>
#include <ngraph/opsets/opset7.hpp>
#include <ngraph/pass/manager.hpp>
#include "transformations/common_optimizations/hsig... | 8,652 |
3,334 | <filename>themes/uno/theme.json
{
"files": {
"default": "default.hbs",
"error": "error.hbs",
"index": "index.hbs",
"page": "page.hbs",
"post": "post.hbs",
"tag": "tag.hbs",
"comments": "partials/comments.hbs",
"footer": "partials/footer.hbs",
"list-posts": "partials/list-posts.hbs"... | 224 |
874 | package com.jnape.palatable.lambda.functions.builtin.fn2;
import com.jnape.palatable.lambda.functions.Fn1;
import com.jnape.palatable.lambda.functions.Fn2;
import static com.jnape.palatable.lambda.functions.builtin.fn1.Tail.tail;
import static com.jnape.palatable.lambda.functions.builtin.fn2.PrependAll.prependAll;
/... | 481 |
435 | {
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "<NAME> - Dynamic Class Generation in Python\n[EuroPython 2016]\n[18 July 2016]\n[Bilbao, Euskadi, Spain]\n(https://ep2016.europython.eu//conference/talks/dynamic-class-generation-in-python)\n\nThis talk is about dynamic clas... | 747 |
1,093 | /*
* Copyright 2015-2020 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 required by a... | 617 |
5,169 | {
"name": "FXFormController",
"version": "0.2.0",
"summary": "A short description of FXFormController.",
"description": "TODO: Add long description of the pod here.",
"homepage": "https://github.com/<EMAIL>/FXFormController",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<EM... | 371 |
1,225 | package com.flask.colorpicker;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.ColorDrawable;
import com.flask.colorpicker.builder.PaintBuilder;
public class ColorCircleDrawable extends ColorDrawable {
private float strokeWidth;
private Paint strokePaint = PaintBuild... | 419 |
8,966 | __version__ = '4.8.0dev'
| 13 |
328 | package com.dragon.flow.config;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Config... | 1,426 |
1,605 | /*****************************************************************************
* 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 f... | 1,987 |
6,989 | <gh_stars>1000+
#include "hyperparameter_tuning.h"
#include <catboost/private/libs/algo/data.h>
#include <catboost/private/libs/algo/approx_dimension.h>
#include <catboost/libs/data/feature_names_converter.h>
#include <catboost/libs/data/objects_grouping.h>
#include <catboost/libs/helpers/cpu_random.h>
#include <catbo... | 28,888 |
839 | /**
* 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 m... | 1,137 |
5,921 | <reponame>Zilv1128/test1
import os
import sys
import numpy
numpy.random.seed(42)
with open(os.path.join(sys.argv[1], "dev-other.lst"), "r") as f:
data = [line.strip() for line in f]
for n, seed_val in enumerate([0, 2, 3, 4, 5]):
numpy.random.seed(42 + seed_val)
data = numpy.random.permutation(data)
... | 286 |
346 | <gh_stars>100-1000
/**
* This defines the loading screen to use for specific sectors. If the sector loading screen is not defined here, the game falls back to rules to determine loading screen.
*
* Fields:
* - sector: The short name of the sector, e.g. A9, B10
* - sectorLevel: The Z-level if sector is und... | 1,060 |
1,863 | //
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in bin... | 1,362 |
488 | <reponame>maurizioabba/rose<gh_stars>100-1000
#include <mpi.h>
#include <stdlib.h>
int SOURCE_DETERMINISM = 1;
int TAG_DETERMINISM = 1;
int FUNCTION_DETERMINISM = 1;
int foo(void *, int, MPI_Datatype, int, int, MPI_Comm, MPI_Status *);
int main(int argc, char **argv) {
int a;
// Test calling functions that are n... | 229 |
369 | <reponame>Shiva-D/rtos-course<gh_stars>100-1000
/**
* \file
*
* \brief Component description for WDT
*
* Copyright (c) 2013 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pr... | 6,391 |
3,084 | /*++
Copyright (c) 2005 Microsoft Corporation
All rights reserved.
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
File Name:
cmin... | 320 |
839 | <reponame>kimjand/cxf
/**
* 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 (th... | 13,986 |
10,608 | <filename>datasets/hate_speech_pl/dataset_infos.json
{"default": {"description": "HateSpeech corpus in the current version contains over 2000 posts crawled from public Polish web. They represent various types and degrees of offensive language, expressed toward minorities (eg. ethnical, racial). The data were annotated ... | 1,030 |
3,239 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "llhttp.h"
#define CALLBACK_MAYBE(PARSER, NAME) \
do { \
const llhttp_settings_t* settings; \... | 4,436 |
14,668 | <gh_stars>1000+
{"rss_subscription_name":{"message":"Rozszerzenie Subskrypcje RSS (od Google)"},"rss_subscription_description":{"message":"Dodaje do paska narz\u0119dzi mo\u017cliwo\u015b\u0107 subskrybowania jednym klikni\u0119ciem."},"rss_subscription_default_title":{"message":"Subskrybuj ten kana\u0142"},"rss_subscr... | 1,158 |
5,169 | <gh_stars>1000+
{
"name": "LDOptionButton",
"version": "0.1.0",
"summary": "Clean and beautiful menu option button.",
"description": "Clean and beautiful menu option button written in Swift.",
"homepage": "https://github.com/lajosdeme/LDOptionButton",
"screenshots": [
"https://user-images.githubusercont... | 343 |
988 | {
".nuclide-refactorizer-rename-container": {
"enter": "core:confirm"
},
"atom-text-editor:not(.mini).enable-nuclide-refactorizer": {
"cmd-alt-r": "nuclide-refactorizer:rename"
},
".platform-darwin atom-text-editor:not(.mini).enable-nuclide-refactorizer": {
"cmd-ctrl-r": "nuclide-refactorizer:refa... | 271 |
438 | <filename>tests/url_fixtures.py<gh_stars>100-1000
# -*- coding: utf-8 -*-
INVALID_URLS = [
'http://',
'http://.',
'http://..',
'http://../',
'http://?',
'http://??',
'http://??/',
'http://#',
'http://##',
'http://##/',
'http://foo.bar?q=Spaces should be encoded',
'//',
... | 733 |
9,267 | <filename>tests/functional/scripts/pkgutil_get_data.py
#-----------------------------------------------------------------------------
# Copyright (c) 2013-2021, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License (version 2
# or later) with exception for distributing the boot... | 264 |
1,535 | <reponame>react-native-community/react-native-share<gh_stars>1000+
package cl.json.social;
import android.content.ActivityNotFoundException;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReadableMap;
/**
* Created by Jacob on 06-06-2022.
*/
public class ViberShare exten... | 372 |
1,179 | <reponame>fengjixuchui/hypervisor-2
/// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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 r... | 4,016 |
764 | <gh_stars>100-1000
{
"symbol": "FK",
"address": "0xF6Fe745e5647298639072D942E0eb4f2E3930ECB",
"overview":{
"en": "FK is the Taiwan dollar of the FKEx exchange, with a total issue of 900 million pieces, and is guaranteed never to issue more.",
"zh": "FK是FKEx交易所的平台币,发行总量为9亿枚,且保证永不增发。"
... | 335 |
841 | <reponame>brunolmfg/resteasy
package org.jboss.resteasy.test.form.resource;
import org.jboss.resteasy.annotations.Form;
import org.junit.Assert;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.core.MediaType;
@Path("/")
public class CollectionsFormResource {
... | 404 |
817 | #####################################################
# Copyright (c) <NAME> [GitHub D-X-Y], 2021.03 #
#####################################################
# pytest ./tests/test_super_rearrange.py -s #
#####################################################
import unittest
import torch
from xautodl import xlaye... | 337 |
1,244 | <filename>src/ic/arm/access-compiler-arm.cc
// Copyright 2014 the V8 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.
#if V8_TARGET_ARCH_ARM
#include "src/ic/access-compiler.h"
namespace v8 {
namespace internal {
#define __... | 417 |
4,200 | package com.dtolabs.rundeck.core.storage;
/**
* Listener for changes to StorageManager resources
*/
public interface StorageManagerListener {
void resourceCreated(String path);
void resourceDeleted(String path);
void resourceModified(String path);
}
| 76 |
1,016 | package com.thinkbiganalytics.nifi.v2.core.feedinit;
/*-
* #%L
* thinkbig-nifi-core-service
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* 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 Licen... | 915 |
358 | /*
* ColorBlendingFilter.cpp
*
* Created on: Sep 14, 2017
* Author: <NAME>
* Institute: ETH Zurich, ANYbotics
*/
#include "grid_map_filters/ColorBlendingFilter.hpp"
#include <math.h>
#include <Eigen/Dense>
#include <grid_map_core/grid_map_core.hpp>
using namespace filters;
namespace grid_map {
Colo... | 1,828 |
460 | <filename>trunk/win/Source/BT_ThemeManager.h
// Copyright 2012 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/licen... | 920 |
1,444 |
package mage.game.permanent.token;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
* @author Styxo
*/
public final class GremlinToken extends TokenImpl {
public GremlinToken() {
super("Gremlin", "2/2 red Gremlin creature token");
cardType.add(CardType... | 277 |
436 | """Module containing cache implementations."""
from collections import OrderedDict
from threading import RLock
from typing import Any
class LRUCache:
"""A simple LRU cache implementation
:param capacity: Maximum number of entries to keep.
"""
_cache: OrderedDict
def __init__(self, capacity: in... | 622 |
676 | package com.alorma.github.ui.actions;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.util.Pair;
import com.afollestad.materialdialogs.MaterialDialog;
import com.afollestad.materialdialogs.Theme;
import com.alorma.github.R... | 1,651 |
460 | <filename>trunk/win/Source/Includes/QtIncludes/src/3rdparty/webkit/JavaScriptCore/parser/Lexer.h<gh_stars>100-1000
/*
* Copyright (C) 1999-2000 <NAME> (<EMAIL>)
* Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribu... | 2,027 |
969 | // Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... | 1,146 |
2,338 | //===- TypeToLLVM.cpp - type translation from MLIR to LLVM IR -===//
//
// 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
//
//===---------------------------------------... | 2,948 |
432 | /*
* Copyright 2020 <NAME>, <EMAIL>
*
* 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 ... | 1,701 |
496 | <gh_stars>100-1000
/*
* Copyright (C) 2018 <NAME>
*
* Author: <NAME> <<EMAIL>>
*/
#ifndef LEXBOR_HTML_FIELD_SET_ELEMENT_H
#define LEXBOR_HTML_FIELD_SET_ELEMENT_H
#ifdef __cplusplus
extern "C" {
#endif
#include "lexbor/html/interface.h"
#include "lexbor/html/interfaces/element.h"
struct lxb_html_field_set_eleme... | 301 |
1,461 | <filename>source/UnitTests.cpp
#define CATCH_CONFIG_RUNNER // This tells Catch to provide a main() - only do this in one cpp file
#define CATCH_CONFIG_NO_POSIX_SIGNALS
#include "../external/Catch2/single_include/catch2/catch.hpp"
#include "UnitTests.h"
#include "imgui_support.h"
static Catch::Session s_session; //... | 500 |
7,089 | from setuptools import setup
setup(
name="pep518_twin_forkbombs_second",
version="238",
py_modules=["pep518_twin_forkbombs_second"],
)
| 62 |
1,041 | package org.tests.model.basic.cache;
import io.ebean.annotation.Cache;
import org.tests.model.basic.BasicDomain;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
@Cache(enableQueryCache = true)
@Entity
@Inheritance
@DiscriminatorColumn(length = 3)
p... | 196 |
1,755 | /*
* Copyright(C) 1999-2020 National Technology & Engineering Solutions
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
* NTESS, the U.S. Government retains certain rights in this software.
*
* See packages/seacas/LICENSE for details
*/
#include "exodusII.h" // for ex_get_partial_var, et... | 429 |
501 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... | 4,904 |
585 | <reponame>madrob/solr<gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, ... | 44,075 |
521 | <filename>third_party/virtualbox/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/iplpack.h
/* $XFree86$ */
/* Modified nov 94 by <NAME> (<EMAIL>) for use with
interleaved planes */
#define NUM_LONGS(planes, xs, xe) \
(((((xe) * (planes) + 31) & ~31) - \
(((xs) * (planes)) & ~31))/32)
#define NUM_TEMP_BYTES(... | 181 |
318 | <reponame>rafaresearch/webbit
package org.webbitserver.netty;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.channel.ChannelStateEvent;
import org.jboss.netty.channel.ExceptionEvent;
import org.jboss.netty.channel.SimpleChannelUpstreamHandler;
import org.webbitserver.EventSourceHandler;
... | 485 |
679 | <reponame>Grosskopf/openoffice<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 copyrig... | 8,455 |
4,391 | <filename>packages/pyright-internal/src/tests/samples/typeAlias15.py
# This sample tests the handling of recursive type aliases that are generic.
from __future__ import annotations
from typing import Mapping, Sequence, TypeVar, Union
S = TypeVar("S")
RecList = Union[Mapping[str, "RecList[S]"], Sequence["RecList[S]"],... | 213 |
360 | <reponame>Yanci0/openGauss-server<filename>src/include/utils/evp_cipher.h
/*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* ... | 615 |
1,261 | <filename>tests/01-internal/01-hash.c
/**
Onion HTTP server library
Copyright (C) 2010-2018 <NAME> and others
This library is free software; you can redistribute it and/or
modify it under the terms of, at your choice:
a. the Apache License Version 2.0.
b. the GNU General Public License as published by th... | 9,660 |
1,118 | {"deu":{"common":"Ungarn","official":"Ungarn"},"fin":{"common":"Unkari","official":"Unkari"},"fra":{"common":"Hongrie","official":"Hongrie"},"hrv":{"common":"Mađarska","official":"Madžarska"},"ita":{"common":"Ungheria","official":"Ungheria"},"jpn":{"common":"ハンガリー","official":"ハンガリー"},"nld":{"common":"Hongarije","offic... | 167 |
544 | <gh_stars>100-1000
package com.hubspot.jinjava.el.ext.eager;
import com.hubspot.jinjava.el.ExtendedSyntaxBuilder;
import de.odysseus.el.tree.impl.Parser;
public class EagerExtendedSyntaxBuilder extends ExtendedSyntaxBuilder {
public EagerExtendedSyntaxBuilder() {
super();
}
public EagerExtendedSyntaxBuild... | 164 |
25,151 | <reponame>TamsilAmani/selenium<filename>java/src/org/openqa/selenium/support/locators/RelativeLocatorServerSide.java<gh_stars>1000+
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// ... | 840 |
3,897 | <reponame>mcheah-bose/mbed-os
/*
* Copyright 2019 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _FSL_ANATOP_AI_H_
#define _FSL_ANATOP_AI_H_
#include "fsl_common.h"
/*! @addtogroup anatop_ai */
/*! @{ */
/*! @file */
/*! @name Driver version */
/*@{*/
/*! @brief Anatop AI drive... | 10,556 |
535 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 2,559 |
353 | <filename>ceph_deploy/util/net.py
try:
from urllib.request import urlopen
from urllib.error import HTTPError
except ImportError:
from urllib2 import urlopen, HTTPError
from ceph_deploy import exc
import logging
import re
import socket
from ceph_deploy.lib import remoto
LOG = logging.getLogger(__name__)
... | 7,495 |
2,151 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/os_crypt/keyring_util_linux.h"
#include <dlfcn.h>
#include "base/logging.h"
decltype(&::gnome_keyring_is_available)
GnomeKeyri... | 1,530 |
369 | <filename>FreeRTOSv10.4.1/FreeRTOS/Demo/CORTEX_LM3S811_IAR/LuminaryCode/flash.c
//*****************************************************************************
//
// flash.c - Driver for programming the on-chip flash.
//
// Copyright (c) 2005,2006 Luminary Micro, Inc. All rights reserved.
//
// Software License Agreem... | 6,756 |
803 | <reponame>ScriptBox99/Extensible-Storage-Engine
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "std.hxx"
// default values are set based on small pages (2/4/8kiB)
WORD TAGFLD::fExtendedInfo = 0x4000 ;
//WORD TAGFLD::fNull = 0x2000;
WORD TAGFLD::maskIb = 0x1fff;
INLINE VOID Delet... | 84,605 |
713 | package org.infinispan.rest.framework.impl;
/**
* Path item defined by an expression. The expression supports constant chars plus variable names enclosed by
* '{' and '}'.
*
* A path containing {@link VariablePathItem} can match multiple paths at runtime. Examples:
*
* /rest/{variable} can match /rest/a, /rest/b... | 606 |
13,663 | /*
* dummy.c, a fake hash algorithm, just to test integration capabilities.
* Part of the xxHash project
* Copyright (C) 2020 <NAME>
*
* GPL v2 License
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Soft... | 374 |
655 | <reponame>linuzri/samourai-wallet-android<filename>app/src/main/java/com/samourai/codescanner/CodeScannerView.java
/*
* MIT License
*
* Copyright (c) 2017 <NAME> [<EMAIL>]
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "S... | 9,216 |
1,144 | package de.metas.handlingunits.picking;
import javax.annotation.Nullable;
import de.metas.handlingunits.HuId;
import org.eevolution.api.PPOrderId;
import lombok.Builder;
import lombok.NonNull;
import lombok.Value;
/*
* #%L
* de.metas.handlingunits.base
* %%
* Copyright (C) 2019 metas GmbH
* %%
* This program i... | 549 |
620 | /*
* Copyright (C) 2009-2011 <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 law or agreed to ... | 310 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.