max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
486 | <reponame>rsn8887/xerces-c-1
/*
* 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... | 7,270 |
640 | <reponame>ahjelm/z88dk
#ifndef __CONFIG_Z88DK_H_
#define __CONFIG_Z88DK_H_
// Automatically Generated at Library Build Time
#undef __Z88DK
#define __Z88DK 2100
#undef __Z80
#define __Z80 0x02
#define __Z80_NMOS 0x01
#define __Z80_CMOS 0x02
#define __CPU_INFO 0x00
#defi... | 1,470 |
2,151 | <filename>src/test/projects/support4demos/src/main/java/com/example/android/supportv4/app/FragmentRetainInstanceSupport.java
/*
* 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.
... | 3,700 |
793 | //===--- RefactoringOptionSet.h - A container for the refactoring options -===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 801 |
1,607 | import annotations.metric_annotations as metric_result
import annotations.parameter_annotations as params
import datetime
import os
import shutil
import time
from annotations.metric_annotations import metric
from annotations.parameter_annotations import parameter
from keras import optimizers
from keras.applications imp... | 3,156 |
316 | #pragma once
#include "global.h"
#include <algorithm>
#include <vector>
#include <utility>
class ADAM
{
public:
ADAM();
ADAM(std::vector<std::pair<int,int>> dims2d, std::vector<int> dims1d, double lr_=0);
void init(std::vector<std::pair<int,int>> dims2d, std::vector<int> dims1d);
void update(std::vecto... | 345 |
799 | <filename>Packs/GoogleChronicleBackstory/Scripts/ChronicleAssetEventsForMACWidgetScript/ChronicleAssetEventsForMACWidgetScript_test.py
from unittest.mock import patch
import ChronicleAssetEventsForMACWidgetScript
def test_main_success(mocker):
"""
When main function is called, set_arguments_for_widget_vi... | 855 |
1,338 | /*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2001 <NAME> (<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. Redistributions of source code must reta... | 1,388 |
1,056 | <filename>enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/EmptyServletContext.java
/*
* 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 o... | 2,630 |
17,004 | <reponame>TylerPham2000/zulip<filename>zerver/webhooks/buildbot/fixtures/finished_failure.json
{
"event": "finished",
"buildid": 34,
"buildername": "runtests",
"url": "http://exampleurl.com/#builders/1/builds/34",
"project": "",
"timestamp": 1553911142,
"results": 2
}
| 113 |
377 | <reponame>myhoa99/blurTestAndroid<filename>BlurBenchmark/src/main/java/at/favre/app/blurbenchmark/blur/algorithms/RenderScriptStackBlur.java
package at.favre.app.blurbenchmark.blur.algorithms;
import android.content.Context;
import android.graphics.Bitmap;
import androidx.renderscript.Allocation;
import androidx.rend... | 825 |
737 | <gh_stars>100-1000
/* decision_tree.h -*- C++ -*-
<NAME>, 22 March 2004
Copyright (c) 2004 <NAME>. All rights reserved.
$Source$
Decision tree classifier.
*/
#ifndef __boosting__decision_tree_h__
#define __boosting__decision_tree_h__
#include "classifier.h"... | 2,379 |
11,775 | package hello;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;
@RestController
public class HelloController {
@RequestMapping("/")
public String sayHello() {
String name = new... | 131 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 750 |
1,947 | #include "gurka.h"
#include "test.h"
using namespace valhalla;
class DeadendBarrier : public testing::TestWithParam<std::string> {
protected:
static gurka::nodelayout layout;
static gurka::ways ways;
static void SetUpTestSuite() {
constexpr double gridsize = 100;
const std::string ascii_map = R"(
... | 2,672 |
682 | <reponame>HackerFoo/vtr-verilog-to-routing<filename>abc/src/misc/mvc/mvcOpBool.c<gh_stars>100-1000
/**CFile****************************************************************
FileName [mvcProc.c]
PackageName [MVSIS 2.0: Multi-valued logic synthesis system.]
Synopsis [Various boolean procedures working with ... | 1,756 |
513 | <reponame>trajano/google-fonts<filename>font-packages/noto-sans-jp/metadata.json
{
"family": "Noto Sans JP",
"variants": ["100", "300", "regular", "500", "700", "900"],
"subsets": ["japanese", "latin"],
"version": "v28",
"lastModified": "2020-11-12",
"files": {
"100": "http://fonts.gstatic.com/s/notosan... | 510 |
5,169 | <reponame>Gantios/Specs<gh_stars>1000+
{
"name": "UIKit-macOS",
"version": "0.0.1",
"summary": "macOS use UIKit",
"description": "macOS use UIKit",
"homepage": "https://github.com/fangandyuan/UIKit-MacOS",
"license": "MIT",
"authors": {
"<EMAIL>": "<EMAIL>"
},
"platforms": {
"osx": "10.11"
}... | 229 |
670 | <gh_stars>100-1000
{
"definitions": {
"session_id": { "$ref": "Session.schema.json#/definitions/id" },
"expire": { "$ref": "Utils.schema.json#/definitions/numbers/unix_time" }
},
"type": "object",
"properties": {
"session_id": { "$ref": "#/definitions/session_id" },
"expire": { "$ref": "#/definitions/expir... | 165 |
1,837 | package com.dianping.zebra.administrator.dto;
/**
* @author Created by tong.xin on 18/1/19.
*/
public class ResultDto<T> {
String status;
String message;
T result;
public ResultDto() {
}
public ResultDto(String status, String message) {
this.status = status;
this.message ... | 310 |
1,338 | /*
* Copyright 2006, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
*/
#include "PathContainer.h"
#include <stdio.h>
#include <string.h>
#include <OS.h>
#include "VectorPath.h"
#ifdef ICON_O_MATIC
PathContainerListener::PathContainerListener() {}
PathContainerListen... | 1,400 |
337 | <gh_stars>100-1000
// Copyright 2018 <NAME>
// Distributed under the Boost license, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See https://github.com/danielaparker/jsoncons for latest version
#ifndef JSONCONS_RESULT_HPP
#define JSONCONS_RESULT_HPP
#incl... | 2,943 |
836 | /*
* Copyright (C) 2014 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 applic... | 1,584 |
412 | /*
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 8,399 |
505 | <filename>FAP_tools/zmac_example/ass.py
import os
import sys
os.system("clear")
if len(sys.argv) != 2:
print(__file__ + " z80_asm_file")
exit()
filename = sys.argv[1]
print("assembling " + filename + "...")
if(os.system("zmac " + filename) != 0):
exit()
print("generiting hex file...")
if(os.system("cp ./zout/*... | 182 |
1,567 | #pragma once
#include <vector>
#include "tiny_rpc/tiny_rpc.h"
#include "utils/co_lock.h"
#include "utils/routine_worker.h"
namespace certain {
class TinyServer : public RoutineWorker<TcpSocket> {
public:
TinyServer(std::string local_addr, google::protobuf::Service* service)
: RoutineWorker<TcpSocket>("tiny... | 269 |
471 | #include "plane.h"
#include "ray3.h"
kmRay3* kmRay3Fill(kmRay3* ray, kmScalar px, kmScalar py, kmScalar pz, kmScalar vx, kmScalar vy, kmScalar vz) {
ray->start.x = px;
ray->start.y = py;
ray->start.z = pz;
ray->dir.x = vx;
ray->dir.y = vy;
ray->dir.z = vz;
return ray;
}
kmRay3* kmRay3Fro... | 627 |
771 | from mock import patch
from scrapyrt.decorators import deprecated
from scrapyrt.exceptions import ScrapyrtDeprecationWarning
class TestDecorators(object):
def test_deprecated(self):
@deprecated
def test_func(*args, **kwargs):
return (args, kwargs)
with patch('warnings.warn') ... | 316 |
10,225 | <gh_stars>1000+
package io.quarkus.annotation.processor.generate_doc;
import java.util.Objects;
import javax.lang.model.element.TypeElement;
final public class ConfigRootInfo {
private final String name;
private final TypeElement clazz;
private final ConfigPhase configPhase;
private final String file... | 726 |
542 | /**
* Modified MIT License
* <p>
* Copyright 2020 OneSignal
* <p>
* 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... | 2,927 |
325 | package com.box.l10n.mojito.service.assetExtraction;
/**
*
* @author jyi
*/
public class AssetExtractionConflictException extends RuntimeException {
public AssetExtractionConflictException(String message) {
super(message);
}
public AssetExtractionConflictException(String message, Throwable cau... | 126 |
1,504 | /*
* 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 ... | 1,452 |
366 | import pyglet
import esper
FPS = 60
RESOLUTION = 720, 480
##################################
# Define some Components:
##################################
class Velocity:
def __init__(self, x=0.0, y=0.0):
self.x = x
self.y = y
class Renderable:
def __init__(self, sprite):
self.spri... | 1,893 |
2,389 | <gh_stars>1000+
/*
Copyright 2020 The Kubernetes 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 to in ... | 1,340 |
4,904 | /*
* Copyright (c) 2018 AsyncHttpClient Project. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at
* http://www.ap... | 799 |
863 | <gh_stars>100-1000
/*
* Copyright 2018 Confluent Inc.
*
* Licensed under the Confluent Community License (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.confluent.io/confluent-community-license
*
* Unless required by ... | 563 |
1,475 | /*
* 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 ... | 788 |
669 | # Copyright 2020 The TensorFlow Runtime 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 ag... | 274 |
10,225 | <reponame>mweber03/quarkus
package io.quarkus.rest.data.panache.runtime.sort;
import static javax.ws.rs.core.Response.Status.BAD_REQUEST;
import java.util.Collections;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.core.MultivaluedMap;
im... | 705 |
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 ... | 2,597 |
19,529 | <reponame>funrunskypalace/vnpy<gh_stars>1000+
TapAPITradeLoginAuth = {
"UserNo": "string",
"ISModifyPassword": "char",
"Password": "string",
"NewPassword": "string",
}
TapAPITradeLoginRspInfo = {
"UserNo": "string",
"UserType": "int",
"UserName": "string",
"ReservedInfo": "string",
... | 10,258 |
6,224 | /*
* Copyright (c) 2018 Synopsys, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _ARC_IOT_SOC_IRQ_H_
#define _ARC_IOT_SOC_IRQ_H_
#define IRQ_WATCHDOG 18
#define IRQ_GPIO_4B0 19
#define IRQ_DMA0_DONE 20
#define IRQ_DMA1_DONE 21
#define IRQ_DMA2_DONE 22
#define IRQ_DMA3... | 1,813 |
337 | import java.util.ArrayList;
import java.util.List;
public class Owner {
public List<String> list = new ArrayList<>();
}
public class Updater {
public void update(Owner owner) {
owner.list.add("");
}
} | 83 |
30,023 | <reponame>liangleslie/core
{
"config": {
"error": {
"need_lower_upper": "Os limites inferior e superior n\u00e3o podem estar vazios"
},
"step": {
"user": {
"data": {
"entity_id": "Sensor de entrada",
"hysteresis"... | 967 |
387 | /*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Version 2.0 (the "License"); you may not use this file exce... | 4,942 |
1,056 | <reponame>timfel/netbeans
/*
* 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.... | 715 |
986 | from public import public
from ...common import exceptions as com
from .. import datatypes as dt
from .. import rules as rlz
from ..signature import Argument as Arg
from .core import ValueOp
@public
class MapLength(ValueOp):
arg = Arg(rlz.mapping)
output_type = rlz.shape_like('arg', dt.int64)
@public
class... | 766 |
526 | <gh_stars>100-1000
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.userinterface.uichassis.springboot.auth.ldap;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.Condition... | 575 |
6,036 | <filename>nodejs/src/run_options_helper.h
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <napi.h>
namespace Ort {
struct RunOptions;
}
// parse a Javascript run options object and fill the native RunOptions object.
void ParseRunOptions(const Nap... | 107 |
2,919 | #!/usr/bin/env python3
# Copyright (c) 2020 VMware, 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 ... | 1,135 |
872 | """
Given an integer matrix, find the length of the longest increasing path.
From each cell, you can either move to four directions: left, right, up or down. You may NOT move diagonally or move
outside of the boundary (i.e. wrap-around is not allowed).
Example 1:
nums = [
[9,9,4],
[6,6,8],
[2,1,1]
]
Return 4
T... | 873 |
866 | from unittest import TestCase
from terraform_compliance.common.bdd_tags import look_for_bdd_tags
from terraform_compliance.common.exceptions import Failure
from tests.mocks import MockedStep, MockedTags
class TestBddTags(TestCase):
def test_unchanged_step_object(self):
step = MockedStep()
look_fo... | 282 |
918 | /*
* 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 ... | 1,064 |
13,057 | /*
* Copyright (c) 2016 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.stubbing;
/**
* Generic interface to be used for configuring mock's answer for a two argument invocation.
*
* Answer specifies an action that is executed and a return value tha... | 443 |
1,097 | //
// HCPDataDownloader.h
//
// Created by <NAME> on 04.11.16.
//
#import <Foundation/Foundation.h>
/**
* Complition block for data download.
*
* @param data downloaded data
* @param error error information; <code>nil</code> - if everything is fine
*/
typedef void (^HCPDataDownloadCompletionBlock)(NSData *... | 277 |
1,511 | <filename>tests/cluecode/data/ics/netperf/nettest_sctp.c
#ifndef lint
char nettest_sctp[]="\
@(#)nettest_sctp.c (c) Copyright 2005-2007 Hewlett-<NAME>. Version 2.4.3";
#else
#define DIRTY
/* first, use the form "first," (see the routine break_args.. */
while ((c= getopt(argc, argv, SOCKETS_ARGS)) != EOF) {
s... | 165 |
471 | from corehq.apps.linked_domain.keywords import create_linked_keyword, update_keyword
from corehq.apps.app_manager.models import Module
from corehq.apps.linked_domain.tests.test_linked_apps import BaseLinkedAppsTest
from corehq.apps.reminders.models import METHOD_SMS
from corehq.apps.sms.models import Keyword, KeywordAc... | 1,036 |
14,668 | <filename>remoting/tools/remote_test_helper/rth_server.py
# Copyright 2014 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.
import jsonrpclib
import SimpleJSONRPCServer as _server
class RequestHandler(_server.SimpleJSONRPC... | 727 |
1,821 | <reponame>hangqiu/pixie
/*
* Copyright 2018- The Pixie 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... | 389 |
575 | <filename>third_party/blink/renderer/core/layout/layout_shift_tracker.cc
// 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 "third_party/blink/renderer/core/layout/layout_shift_tracker.h"
#includ... | 12,025 |
356 | {
"cve": ["CVE-2021-22939"],
"vulnerable": "12.x || 14.x || 16.x",
"patched": "^12.22.5 || ^14.17.5 || ^16.6.2",
"ref": "https://https://nodejs.org/en/blog/vulnerability/aug-2021-security-releases/",
"overview": "If the Node.js https API was used incorrectly and \"undefined\" was in passed for the \"rejectUna... | 185 |
410 | /*
* Copyright (C) 2018 The Sylph 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 ... | 739 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-784j-h234-m56x",
"modified": "2022-05-13T01:15:19Z",
"published": "2022-05-13T01:15:19Z",
"aliases": [
"CVE-2019-1003000"
],
"details": "A sandbox bypass vulnerability exists in Script Security Plugin 1.49 and earlier in src/main/java/org/jenkinsci/plugins/scri... | 779 |
5,964 | <filename>third_party/sfntly/src/cpp/src/sfntly/font_factory.cc<gh_stars>1000+
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 2,440 |
10,225 | <reponame>mweber03/quarkus
package io.quarkus.hibernate.orm.runtime.service;
import java.util.Map;
import org.hibernate.boot.registry.StandardServiceInitiator;
import org.hibernate.dialect.Dialect;
import org.hibernate.engine.jdbc.dialect.spi.DialectFactory;
import org.hibernate.service.spi.ServiceRegistryImplementor... | 303 |
16,461 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <UIKit/UIKit.h>
#import <ABI43_0_0React/ABI43_0_0RCTBackedTextInputViewProtocol.h>
#import <better/optional.h>
#import <AB... | 729 |
506 | // https://www.hackerrank.com/challenges/print-the-elements-of-a-linked-list
void Print(Node *head) {
if (head) {
std::cout << head->data << std::endl;;
Print(head->next);
}
}
| 76 |
1,615 | <filename>MLN-Android/mlnservics/src/main/java/com/immomo/mls/fun/lt/LTPreferenceUtils.java
/**
* Created by MomoLuaNative.
* Copyright (c) 2019, 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 th... | 661 |
2,151 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "storage/common/database/database_connections.h"
#include <stdint.h>
#include "base/auto_reset.h"
#include "base/bind.h"
#include "base/log... | 1,905 |
460 | <gh_stars>100-1000
/*
* Copyright 2016 Red Hat, Inc, and individual contributors.
*
* 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
*... | 1,237 |
352 | from .aquatone import AquatoneScan
from .gobuster import GobusterScan
from .targets import GatherWebTargets
from .webanalyze import WebanalyzeScan
from .waybackurls import WaybackurlsScan
from .subdomain_takeover import SubjackScan, TKOSubsScan
| 77 |
362 | /*
* Copyright (c) 2005-2012 by KoanLogic s.r.l. - All rights reserved.
*/
#include <stdint.h>
#include <u/libu.h>
#include <toolbox/array.h>
/* for C89 implementations */
#ifndef SIZE_MAX
#define SIZE_MAX ((size_t) -1)
#endif
struct u_array_s
{
size_t nslots;
u_array_type_t type;
void *base;
};
#d... | 8,972 |
1,755 | #ifndef PyMPI_COMPAT_MPICH2_H
#define PyMPI_COMPAT_MPICH2_H
static int PyMPI_MPICH2_MPI_Add_error_class(int *errorclass)
{
int ierr; char errstr[1] = {0};
ierr = MPI_Add_error_class(errorclass); if (ierr) return ierr;
return MPI_Add_error_string(*errorclass,errstr);
}
#undef MPI_Add_error_class
#define MPI_Add_... | 395 |
1,738 | <reponame>brianherrera/lumberyard
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if p... | 344 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport
*/
#import <OfficeImport/OfficeImport-Structs.h>
#import <OfficeImport/ODICycle.h>
#import <OfficeImport/XXUnknownSuperclass.h>
__attribute__((visibility("hidden")))
@interface O... | 428 |
809 | <filename>lenskit-integration-tests/src/test/groovy/org/lenskit/predict/ordrec/OrdRecAccuracyTest.java
/*
* LensKit, an open-source toolkit for recommender systems.
* Copyright 2014-2017 LensKit contributors (see CONTRIBUTORS.md)
* Copyright 2010-2014 Regents of the University of Minnesota
*
* Permission is hereby... | 1,163 |
453 | /* Copyright (c) 2016 Phoenix Systems
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
notice, this list of condition... | 1,088 |
965 | <gh_stars>100-1000
#if _DEBUG
CStringList li;
li.AddHead(_T("item 0"));
li.AddHead(_T("item 1"));
CString s = _T("test");
int i = 7;
long lo = 1000000000L;
LONGLONG lolo = 12345678901234i64;
afxDump << _T("list=") << &li << _T("string=")
<< s << _T("int=") << i << _T("long=") << lo
<< _T("LONGLONG=") <<... | 165 |
516 | <reponame>zzwlstarby/parity<filename>libraries/util/src/main/java/com/paritytrading/parity/util/TableHeader.java
/*
* Copyright 2014 Parity 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 L... | 888 |
14,668 | <filename>services/device/serial/serial_device_enumerator_linux_unittest.cc<gh_stars>1000+
// 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.
#include "services/device/serial/serial_device_enumerator_linux... | 2,282 |
646 | <reponame>Amine-El-Ghaoual/griddb<gh_stars>100-1000
/*
Copyright (c) 2017 TOSHIBA Digital Solutions 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.... | 751 |
457 | package io.purplejs.http.internal.handler;
import java.util.Collection;
import java.util.Map;
import com.google.common.net.HttpHeaders;
import io.purplejs.core.json.JsonGenerator;
import io.purplejs.core.json.JsonSerializable;
import io.purplejs.http.Headers;
import io.purplejs.http.Parameters;
import io.purplejs.ht... | 1,169 |
468 |
#include "unsuck.hpp"
#ifdef _WIN32
#include "TCHAR.h"
#include "pdh.h"
#include "windows.h"
#include "psapi.h"
// see https://stackoverflow.com/questions/63166/how-to-determine-cpu-and-memory-consumption-from-inside-a-process
MemoryData getMemoryData() {
MemoryData data;
{
MEMORYSTATUSEX me... | 3,735 |
733 | <reponame>trisadmeslek/V-Sekai-Blender-tools
from rx.core import Observable, AnonymousObservable
from rx.concurrency import current_thread_scheduler
from rx.internal import extensionclassmethod
@extensionclassmethod(Observable, alias="just")
def return_value(cls, value, scheduler=None):
"""Returns an observable ... | 800 |
4,303 | #include "util/error_util.h"
#include <cstdlib>
namespace hannk {
std::ostream &operator<<(std::ostream &stream, const halide_type_t &type) {
if (type.code == halide_type_uint && type.bits == 1) {
stream << "bool";
} else {
static const char *const names[5] = {"int", "uint", "float", "handle"... | 838 |
2,195 | <reponame>ZheniaZuser/android-database-sqlcipher
package net.sqlcipher;
/**
* An exception that indicates there was an error accessing a specific row/column.
*/
public class InvalidRowColumnException extends RuntimeException
{
public InvalidRowColumnException() {}
public InvalidRowColumnException(String err... | 109 |
1,007 | ##############################################################
# Copyright (c) 2018-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
##############################################################
fro... | 572 |
690 | from django.urls import include, path
from dynamic_rest.routers import DynamicRouter
from tests import viewsets
router = DynamicRouter()
router.register_resource(viewsets.UserViewSet)
router.register_resource(viewsets.GroupViewSet)
router.register_resource(viewsets.ProfileViewSet)
router.register_resource(viewsets.Lo... | 335 |
357 | <filename>vmdns/test/win/dnstest.cpp
// dnstest.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "../CuTest.h"
| 60 |
435 | {
"description": "DjangoCon 2019 - Orientation and Welcome by <NAME>\n\nTBD\n\nThis talk was presented at: https://2019.djangocon.us/talk/orientation-and-welcome/\n\nLINKS:\nFollow <NAME> \ud83d\udc47\nOn Twitter: https://twitter.com/Transition\nOfficial homepage: http://kojoidrissa.com/\n\nFollow DjangCon US \ud83d\... | 367 |
851 | /*
* Copyright (c) 2020 NVIDIA CORPORATION.
*
* 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, modify, merge,... | 463 |
399 | <reponame>ytai/ioio<gh_stars>100-1000
/*
* Copyright (C) 2009-2012 by <NAME>
*
* 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
* notice, t... | 3,730 |
1,569 | {
"title": "Report",
"navLink": "Report",
"meta": "A page example with a report",
"loading": "Loading..."
}
| 42 |
348 | <gh_stars>100-1000
{"nom":"Lubilhac","circ":"2ème circonscription","dpt":"Haute-Loire","inscrits":131,"abs":51,"votants":80,"blancs":10,"nuls":5,"exp":65,"res":[{"nuance":"LR","nom":"<NAME>","voix":50},{"nuance":"REM","nom":"<NAME>","voix":15}]} | 102 |
826 | /***************************************************************************
* Copyright 1998-2018 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
* ... | 4,929 |
3,084 | /*++
Copyright (C) Microsoft Corporation, All Rights Reserved.
Module Name:
Driver.cpp
Abstract:
This module contains the implementation of the UMDF Socketecho Sample's
core driver callback object.
Environment:
Windows User-Mode Driver Framework (WUDF)
--*/
#include "interna... | 1,494 |
778 | /*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/built_ins/built_ins.h"
#include <string>
#include <unordered_map>
namespace NEO {
struct RegisterEmbeddedResource {
RegisterEmbeddedResource(const char *name, const char *resource, siz... | 228 |
363 | /* Copyright 2009, 2011 predic8 GmbH, www.predic8.com
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... | 779 |
335 | <filename>R/Rheumatology_noun.json
{
"word": "Rheumatology",
"definitions": [
"The study of rheumatism, arthritis, and other disorders of the joints, muscles, and ligaments."
],
"parts-of-speech": "Noun"
} | 92 |
1,444 | <reponame>GabrielSturtevant/mage<gh_stars>1000+
package mage.cards.h;
import java.util.UUID;
import mage.abilities.common.EntersBattlefieldTappedAbility;
import mage.abilities.mana.BlueManaAbility;
import mage.abilities.mana.RedManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.consta... | 354 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.