max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
6,566 | /*
* Tencent is pleased to support the open source community by making Tencent Shadow available.
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use
* this file except in compliance with the License. You may obt... | 1,348 |
1,144 | <filename>backend/de.metas.payment.revolut/src/main/java/de/metas/payment/revolut/PaySelectionService.java
/*
* #%L
* de.metas.payment.revolut
* %%
* Copyright (C) 2021 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as... | 2,341 |
5,169 | {
"name": "MSForm",
"version": "0.1.0",
"summary": "MSForm is a library for those who need to build a form into their application in a simple way.",
"description": "Based on the necessity to have a form in basically all applications, this library was built for those who need a form. It's easy to setup and you c... | 275 |
348 | {"nom":"Amigny-Rouy","circ":"4ème circonscription","dpt":"Aisne","inscrits":550,"abs":314,"votants":236,"blancs":17,"nuls":3,"exp":216,"res":[{"nuance":"FN","nom":"<NAME>","voix":114},{"nuance":"REM","nom":"<NAME>","voix":102}]} | 93 |
1,333 | <reponame>Diffblue-benchmarks/spring-boot-admin<filename>spring-boot-admin-server/src/test/java/de/codecentric/boot/admin/server/services/InfoUpdateTriggerTest.java
/*
* Copyright 2014-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fil... | 1,399 |
11,616 | /**
* Copyright © 2016-2021 The Thingsboard 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 applicab... | 2,907 |
454 | package io.vertx.tp.jet.uca.micro;
import io.vertx.ext.web.RoutingContext;
import io.vertx.tp.jet.atom.JtUri;
import io.vertx.tp.optic.jet.JtIngest;
import io.vertx.up.commune.Envelop;
/**
* 「Ingest」
* Parameter extraction when paramMode = DEFINE, it's valid
*/
public class JtRadamanteis implements JtIngest {
... | 190 |
13,846 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
#pragma once
#include "SRWExclusiveLock.h"
#include "NonCopyable.h"
#include "HandleWrapper.h"
#include <fstream>
class RedirectionOutput
{
public:
virtual ~Redir... | 805 |
1,149 | #!/usr/bin/env python3
import apache_beam as beam
from apache_beam.runners.interactive import interactive_runner
import apache_beam.runners.interactive.interactive_beam as ib
import datetime
import numpy as np
import pandas as pd
def parse_line(line):
import datetime
timestamp, delay = line.split(",")
tim... | 1,083 |
1,139 | package com.journaldev.jdbc.storedproc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class DBConnection {
private static final String DB_DRIVER_CLASS = "oracle.jdbc.driver.OracleDriver";
private static final String DB_URL = "jdbc:oracle:thin:@localhost:1521:orcl";... | 293 |
348 | {"nom":"Ippécourt","circ":"1ère circonscription","dpt":"Meuse","inscrits":82,"abs":31,"votants":51,"blancs":3,"nuls":2,"exp":46,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":36},{"nuance":"REM","nom":"<NAME>","voix":10}]} | 91 |
4,302 | <reponame>tomoya5296/pbrt-cv
/*
pbrt source code is Copyright(c) 1998-2016
<NAME>, <NAME>, and <NAME>.
This file is part of pbrt.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
... | 1,893 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-jc3x-9xhx-xvw8",
"modified": "2022-05-13T01:18:52Z",
"published": "2022-05-13T01:18:52Z",
"aliases": [
"CVE-2018-11072"
],
"details": "Dell Digital Delivery versions prior to 3.5.1 contain a DLL Injection Vulnerability. A local authenticated malicious user with... | 454 |
2,780 | <gh_stars>1000+
/**
* Copyright (c) 2016-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 can be found in the PATENTS file in the same directory.... | 1,007 |
2,151 | <filename>test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.ctor/copy.pass.cpp
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the Uni... | 543 |
553 | <reponame>davidyuan/WagonWar
/******************************************************************************
* Spine Runtime Software License - Version 1.1
*
* Copyright (c) 2013, Esoteric Software
* All rights reserved.
*
* Redistribution and use in source and binary forms in whole or in part, with
* or witho... | 3,837 |
879 | package org.zstack.core.debug;
/**
* Created by xing5 on 2016/7/25.
*/
public interface DebugSignalHandler {
void handleDebugSignal();
}
| 50 |
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 "chrome/browser/reputation/reputation_service.h"
#include <cstddef>
#include <string>
#include <utility>
#include "base/memory/scoped_refptr.h"... | 4,034 |
525 | from ETLAlchemySource import ETLAlchemySource
from ETLAlchemyTarget import ETLAlchemyTarget
| 26 |
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 not u... | 43,093 |
2,542 | <gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
... | 331 |
401 | package com.almasb.basics;
import javafx.application.Application;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.scene.layout.VBox;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
import javafx.stage.Stage;
... | 518 |
309 | {"provider_arguments":[],"resources":{"object":{"arguments":[{"word":"data","kind":"String(R)","info":"Valid JSON data that this provider will manage with the API server."},{"word":"debug","kind":"Bool(O)","info":"Whether to emit verbose debug output while working with the API object on the server."},{"word":"path","ki... | 300 |
852 | import FWCore.ParameterSet.Config as cms
# Center-of-mass energy 5.02 TeV
herwigppEnergySettingsBlock = cms.PSet(
hwpp_cm_5_02TeV = cms.vstring(
'set /Herwig/Generators/LHCGenerator:EventHandler:LuminosityFunction:Energy 5020.0',
'set /Herwig/Shower/Evolver:IntrinsicPtGaussian 2.0*GeV',
),
)
| 127 |
407 | package com.alibaba.tesla.appmanager.server.service.componentpackage;
import com.alibaba.tesla.appmanager.autoconfig.SystemProperties;
import com.alibaba.tesla.appmanager.common.exception.AppErrorCode;
import com.alibaba.tesla.appmanager.common.exception.AppException;
import com.alibaba.tesla.appmanager.server.event.c... | 3,899 |
697 | <gh_stars>100-1000
package com.leyou.parameter.pojo;
/**
* @Author: 98050
* Time: 2018-08-08 11:38
* Feature:
*/
public class BrandQueryByPageParameter {
/*
* - page:当前页,int
- rows:每页大小,int
- sortBy:排序字段,String
- desc:是否为降序,boolean
- key:搜索关键词,String
* */
private... | 857 |
325 | package com.box.l10n.mojito.service.assetintegritychecker.integritychecker;
import com.box.l10n.mojito.entity.TMTextUnitVariantComment;
import net.sf.okapi.common.annotation.GenericAnnotation;
/**
* Annotation that contains information
*
* @author jaurambault
*/
public class TMTextUnitVariantCommentAnnotation e... | 416 |
11,396 | <reponame>DamoR25/awxnew<filename>awx/main/tests/unit/analytics/test_collection_interval.py
import logging
import pytest
from django.utils.timezone import now, timedelta
from awx.main.analytics.core import calculate_collection_interval
# This is some bullshit.
logger = logging.getLogger('awx.main.analytics')
logger.... | 3,275 |
767 | <gh_stars>100-1000
from __future__ import print_function
import argparse
import os
import pickle
import sys
from datetime import datetime
import matplotlib
import numpy as np
import torch
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import code.archs as archs
from code.utils.cluster.general import config_t... | 5,240 |
4,036 | #Not calling an __del__ method:
class X1(object):
def __del__(self):
pass
class X2(X1):
def __del__(self):
X1.__del__(self)
class X3(X2):
def __del__(self):
X1.__del__(self)
| 111 |
348 | {"nom":"Saint-Martin-aux-Champs","circ":"5ème circonscription","dpt":"Marne","inscrits":78,"abs":39,"votants":39,"blancs":0,"nuls":0,"exp":39,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":36},{"nuance":"FN","nom":"<NAME>","voix":3}]} | 96 |
416 | /*
* 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 the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 2,407 |
1,103 | <filename>hollow/src/test/java/com/netflix/hollow/core/write/restore/RestoreWriteStateEngineChangingSchemaTest.java<gh_stars>1000+
/*
* Copyright 2016-2019 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | 3,299 |
335 | <gh_stars>100-1000
{
"word": "Homey",
"definitions": [
"(of a place or surroundings) comfortable and cosy.",
"Unsophisticated; unpretentious."
],
"parts-of-speech": "Adjective"
} | 92 |
416 | //
// AVFAudio.h
// Copyright © 2015 Apple. All rights reserved.
//
#import <AVFoundation/AVAudioBuffer.h>
#import <AVFoundation/AVAudioChannelLayout.h>
#import <AVFoundation/AVAudioConnectionPoint.h>
#import <AVFoundation/AVAudioConverter.h>
#import <AVFoundation/AVAudioEngine.h>
#import <AVFoundation/AVAudioEnviro... | 576 |
2,015 | <filename>src/picotorrent/version.h
#pragma once
#include <winver.h>
#define STRINGIZE2(s) #s
#define STRINGIZE(s) STRINGIZE2(s)
#define VER_FILE_DESCRIPTION_STR "PicoTorrent"
#define VER_FILE_VERSION PICO_VERSION_MAJOR, PICO_VERSION_MINOR, PICO_VERSION_PATCH
#define VER_FILE_VERSION_STR STRINGI... | 619 |
2,151 | <filename>third_party/mesa/src/src/mesa/main/dlist.h
/**
* \file dlist.h
* Display lists management.
*/
/*
* Mesa 3-D graphics library
* Version: 6.5.1
*
* Copyright (C) 1999-2006 <NAME> All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this softwa... | 1,299 |
673 | """
${NAME}
"""
from __future__ import absolute_import, division, print_function
import logging
import os
from PySide import QtGui, QtCore
from mcedit2.editortools.tool_settings import BrushShapeSetting
from mcedit2.util.resources import resourcePath
from mcedit2.widgets import flowlayout
from mcedit2.widgets.la... | 1,537 |
317 | /*
$Id$
*/
#include "mpi.h"
mysyncc()
{
int istatus;
MPI_Comm handle;
handle = MPI_COMM_WORLD;
istatus = mpi_barrier(handle);
}
| 65 |
3,976 | <reponame>saurabh896/python-1
# -*- coding:utf-8 -*-
file = open('./English.txt','r')
s = set()
map = {}
allLines = file.readlines()
def pre(i):
if not i in s:
map[i] = 1
s.add(i)
else:
map[i] += 1
for eachLine in allLines:
alist = eachLine.split()
if a... | 540 |
682 | /**CFile****************************************************************
FileName [bmcChain.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [SAT-based bounded model checking.]
Synopsis [Implementation of chain BMC.]
Author [<NAME>]
Affiliation [UC Berkeley]
D... | 6,566 |
647 | <filename>GBDT/tree_plot.py<gh_stars>100-1000
"""
Created on :2019/04/7
@author: Freeman, feverfc1994
"""
from PIL import Image
import pydotplus as pdp
from GBDT.decision_tree import Node, Tree
import os
import matplotlib.pyplot as plt
def plot_multi(trees: dict, max_depth: int, iter: int):
trees_traversal = {}
... | 5,923 |
460 | /*
* 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/licenses/LICENSE-2.0
*
* Unless require... | 531 |
379 | <reponame>bkrahmer/ja-micro
/**
* Copyright 2016-2017 Sixt GmbH & Co. Autovermietung KG
* 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 ... | 4,133 |
3,673 | # ----------------------------------------------------------------------------
# - Open3D: www.open3d.org -
# ----------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2018-2021 www.open3d.org
#
# Permission i... | 1,554 |
1,433 | /******************************************************************
*
* Copyright 2015 Samsung Electronics 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
*
... | 4,398 |
704 | import k3d
import numpy as np
import pytest
from .plot_compare import *
T = 1.618033988749895
r = 4.77
zmin, zmax = -r, r
xmin, xmax = -r, r
ymin, ymax = -r, r
Nx, Ny, Nz = 77, 77, 77
x = np.linspace(xmin, xmax, Nx)
y = np.linspace(ymin, ymax, Ny)
z = np.linspace(zmin, zmax, Nz)
x, y, z = np.meshgrid(x, y, z, indexin... | 1,098 |
1,500 | <gh_stars>1000+
from tests.fixtures.experiment.fixture_experiment import fixture_exp
__all__ = ['fixture_exp']
| 39 |
617 | /*
* Copyright (c) 2021 Works Applications 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/licenses/LICENSE-2.0
*
* Unless required by applica... | 1,797 |
310 | <reponame>ilscipio/erp
package com.ilscipio.scipio.ce.util.servlet;
import org.ofbiz.base.util.UtilHttp;
import javax.servlet.ServletContext;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpSession;
import java.util.AbstractMap;
import java.util.AbstractSet;
import java.util.ArrayList;
import java.... | 10,173 |
366 | /*
* Copyright 2016 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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 388 |
5,169 | {
"name": "ArrayWithForEach",
"version": "1.0.0",
"summary": "Array with ForEach",
"description": "Java 8 like ForEach implementation to Array.",
"homepage": "https://github.com/okosheep/ArrayWithForEach",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"okosheep": "<EMAIL>"
... | 234 |
494 | /*
* Copyright 2016 <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 in wr... | 516 |
45,293 | <filename>compiler/tests-spec/testData/diagnostics/linked/declarations/type-alias/testsMap.json
{
"1": {
"pos": {
"1": [
{
"specVersion": "0.1-464",
"casesNumber": 3,
"description": "Top-level non-extension functions named f: callables explicitly imported into the curre... | 468 |
14,668 | <gh_stars>1000+
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/layout/style_retain_scope.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_par... | 452 |
834 | <reponame>nathanawmk/fboss<gh_stars>100-1000
/*
* 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 can be found in the PA... | 706 |
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,042 |
892 | <filename>advisories/unreviewed/2022/04/GHSA-hf68-wq7f-gmhq/GHSA-hf68-wq7f-gmhq.json
{
"schema_version": "1.2.0",
"id": "GHSA-hf68-wq7f-gmhq",
"modified": "2022-04-30T18:21:47Z",
"published": "2022-04-30T18:21:47Z",
"aliases": [
"CVE-2002-1747"
],
"details": "Vtun 2.5b1 does not authenticate forwarded... | 444 |
303 | #include "modules/sound/sound.h"
#include <vector>
using namespace love;
love::Type Sound::type("Sound", &Module::type);
struct DecoderImpl
{
Decoder* (*Create)(FileData* data, int bufferSize);
bool (*Accepts)(const std::string& ext);
};
template<typename DecoderType>
DecoderImpl DecoderImplFor()
{
Dec... | 970 |
826 | // SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
#ifndef INCLUDED_OCIO_BUILTINTRANSFORM_H
#define INCLUDED_OCIO_BUILTINTRANSFORM_H
#include <OpenColorIO/OpenColorIO.h>
namespace OCIO_NAMESPACE
{
class BuiltinTransformImpl : public BuiltinTransform
{
public:
Built... | 385 |
3,102 | <gh_stars>1000+
// RUN: %clang_cc1 -emit-llvm -o - %s
union sigval { };
union sigval Test1;
union NonPODUnion { ~NonPODUnion(); };
union NonPODUnion Test2;
| 67 |
679 | <filename>main/cui/source/options/optasian.cxx
/**************************************************************
*
* 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... | 5,998 |
1,363 | <gh_stars>1000+
/*
* Copyright (C) 2011 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
*
* Un... | 3,430 |
778 | <gh_stars>100-1000
// | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: <NAME>
// <N... | 3,663 |
1,455 | <filename>manifest.json
{
"name": "Turnip Prophet - ACNH Turnip Tracker",
"short_name": "Turnip Prophet",
"description": "An app to track your Animal Crossing: New Horizons turnip prices daily!",
"start_url": "index.html",
"display": "standalone",
"background_color": "#def2d9",
"theme_color": "#def2d9",
"icons"... | 195 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iAdCore.framework/iAdCore
*/
#import <iAdCore/iAdCore-Structs.h>
#import <iAdCore/XXUnknownSuperclass.h>
@class NSTimer;
@interface ADNetworkController : XXUnknownSuperclass {
SCDynamicStoreRef _store; // 4 = 0x4
... | 1,086 |
453 | <filename>tce/newlib-1.17.0/newlib/libc/syscalls/sysfcntl.c<gh_stars>100-1000
/* connector for fcntl */
/* only called from stdio/fdopen.c, so arg can be int. */
#include <reent.h>
#include <errno.h>
int
_DEFUN (fcntl, (fd, flag, arg),
int fd _AND
int flag _AND
int arg)
{
#ifdef HAVE_FCNTL
return _fc... | 206 |
335 | {
"word": "Powder",
"definitions": [
"Apply cosmetic powder to (the face or body)",
"Sprinkle or cover (a surface) with powder or a powdery substance.",
"Reduce (a substance) to a powder by drying or crushing it."
],
"parts-of-speech": "Verb"
} | 111 |
768 | <filename>python-package/lets_plot/plot/label.py<gh_stars>100-1000
#
# Copyright (c) 2019. JetBrains s.r.o.
# Use of this source code is governed by the MIT license that can be found in the LICENSE file.
#
from .core import FeatureSpec, FeatureSpecArray
from .scale import _scale
#
# Plot title
# Scale names: axis labe... | 1,482 |
1,230 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import os
sys.path.insert(0, os.path.abspath('..'))
from clint.arguments import Args
from clint.textui import puts, colored, indent
args = Args()
with indent(4, quote='>>>'):
puts(colored.red('Aruments passed in: '... | 229 |
14,668 | #!/usr/bin/env python
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from os import path as os_path
import platform
import subprocess
import sys
import os
def GetBinaryPath():
darwin_name = ('node-dar... | 463 |
1,314 | package cn.dreampie.route;
import cn.dreampie.common.Plugin;
import cn.dreampie.route.config.*;
import cn.dreampie.route.exception.PluginException;
import java.util.List;
public class ConfigIniter {
private static final ConstantLoader constantLoader = new ConstantLoader();
private static final ResourceLoader r... | 685 |
1,062 | <reponame>icarazob/mr4c
/**
* Copyright 2014 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.... | 997 |
563 | <gh_stars>100-1000
package com.gentics.mesh.search;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;
import java.util.function.Function;
import com.gentics.mesh.context.InternalActionContext;
import com.gentics.mesh.core.data.HibCoreElement;
import com.gentics.mesh.core.da... | 857 |
606 | <reponame>AKuHAK/ps2sdk
/*
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright (c) 2003 <NAME> <<EMAIL>>
# Licenced under Academic Free Li... | 676 |
12,718 | /**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef _INC_MSDRMDEFS
#define _INC_MSDRMDEFS
typedef ULONG DRMHANDLE;
typedef ULONG DRMPUBHANDLE;
type... | 1,270 |
673 | <reponame>visatanic/testfunction
/**
* Copyright (c) 2017 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... | 1,111 |
5,964 | // Copyright 2012 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.
#ifndef V8_HEAP_INCREMENTAL_MARKING_JOB_H_
#define V8_HEAP_INCREMENTAL_MARKING_JOB_H_
#include "src/cancelable-task.h"
namespace v8 {
namespace intern... | 808 |
1,209 | /*
splash.c
Universal 8bit Graphics Library
Copyright (c) 2015, <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:
* Redistributions of source code must retain the above copy... | 1,418 |
726 | package org.landy.utils;
import org.apache.commons.io.IOUtils;
import org.landy.constants.Constants;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
impor... | 833 |
9,724 | <reponame>albertobarri/idk
/*
* Copyright 2016 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*/
#include <stdio.h>
int main() ... | 168 |
2,151 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "tools/traffic_annotation/auditor/traffic_annotation_file_filter.h"
#include <fstream>
#include "base/command_line.h"
#include "base/files/file... | 1,932 |
465 | package com.ansel.service.impl;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;
import java.util.TimeZone;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.d... | 3,884 |
5,169 | {
"name": "RxUIApplicationDelegate",
"version": "0.1.3",
"summary": "UIApplicationDelegate with a declarative input/output interface.",
"description": "RxUIApplicationDelegate serves as an application delegate while providing declarative input/output.",
"homepage": "https://github.com/briansemiglia/RxUIApplic... | 357 |
3,495 | <filename>src/controller/python/ChipDeviceController-StorageDelegate.h
/*
*
* Copyright (c) 2021 Project CHIP 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 cop... | 511 |
454 | # Copyright 2021 Huggingface & TUNiB inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 2,957 |
6,059 | <filename>test/unit/example_fbjni.json
[
{
"class_path": "com.facebook.common.dextricks.DalvikInternals$CrashLogParameters",
"fields": [],
"methods": [
"public int getInstacrashInterval()"
],
"exceptions": []
},
{
"class_path": "com.facebook.livemaps.lens.data.parsing.m... | 224 |
575 | // Copyright 2020 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 CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_TIMING_H_
#define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_TIMING_H_
#include "base/time/time.h"
#includ... | 1,357 |
1,144 | <gh_stars>1000+
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it *
* under the terms versi... | 4,995 |
648 | {"resourceType":"DataElement","id":"ParameterDefinition.use","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/ParameterDefinition.use","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"id":"ParameterDefinition.use","path":"ParameterDefinition.u... | 205 |
10,225 | package io.quarkus.deployment.steps;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.ApplicationInfoBuildItem;
import io.quarkus.runtime.ApplicationConfig;
public class ApplicationInfoBuildStep {
@BuildStep
public ApplicationInfoBuildItem create(ApplicationConfig ap... | 131 |
1,615 | <reponame>NSOiO/MLN
/**
* Created by MomoLuaNative.
* Copyright (c) 2020, Momo Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
//
// Created by XiongFangyu ... | 1,985 |
590 | from pytest import raises
from graphql.error import GraphQLError
from graphql.execution import ExecutionResult
def describe_execution_result():
data = {"foo": "Some data"}
error = GraphQLError("Some error")
errors = [error]
extensions = {"bar": "Some extension"}
def initializes_properly():
... | 1,913 |
449 | /* Copyright (c) 2013 The F9 Microkernel Project. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <platform/debug_device.h>
#include <platform/debug_uart.h>
#include <platform/irq.h>
#include <lib/queue.h>
#ifdef CONFIG_KDB
#inc... | 1,503 |
611 | package de.espend.idea.laravel.tests.blade;
import com.intellij.patterns.PlatformPatterns;
import com.jetbrains.php.blade.BladeFileType;
import de.espend.idea.laravel.tests.LaravelLightCodeInsightFixtureTestCase;
/**
* @author <NAME> <<EMAIL>>
*
* @see de.espend.idea.laravel.blade.BladeInjectTypeProvider
*/
publi... | 378 |
436 | /*
* Copyright 2003-2009 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/licenses/LICENSE-2.0
*
* Unless required by applicable... | 586 |
11,792 | <gh_stars>1000+
package com.server;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
import java.text.SimpleDateFormat;
import java.util.Date;
public class ClientThread extends Thread {
public Socket clientSocket;
public ServerThread serverThread... | 1,814 |
743 | <filename>source/android/adaptivecards/src/main/java/io/adaptivecards/renderer/readonly/RichTextBlockRenderer.java<gh_stars>100-1000
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package io.adaptivecards.renderer.readonly;
import android.content.Context;
import android... | 4,321 |
32,544 | <filename>jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPairDeserializer.java
package com.baeldung.jackson.map;
import java.io.IOException;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jacks... | 202 |
30,023 | <reponame>domwillcode/home-assistant
"""The fail2ban component."""
| 23 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.