max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
333 | package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 二级健身项目
*
* @author auto create
* @since 1.0, 2019-01-03 10:33:00
*/
public class ExerciseItemOpenMod... | 1,020 |
403 | <filename>snippets/camunda-openapi-client/camunda-openapi-client-spring/src/main/java/com/camunda/consulting/openapi/client/model/ParseExceptionDtoAllOf.java
/*
* Camunda Platform REST API
* OpenApi Spec for Camunda Platform REST API.
*
* The version of the OpenAPI document: 7.16.0
*
*
* NOTE: This class is aut... | 1,200 |
9,483 | <filename>Examples/Chameleon Demo/Chameleon/UIKit/Classes/UIGeometry.h
/*
* Copyright (c) 2011, The Iconfactory. 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 sourc... | 1,370 |
521 | /** @file
Implement the close API.
Copyright (c) 2011, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http... | 970 |
530 | /*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The contents of this file are subject to the terms of either the Universal Permissive License
* v 1.0 as shown at http://oss.oracle.com/licenses/upl
*
* or the follo... | 1,742 |
335 | {
"word": "Raft",
"definitions": [
"A flat buoyant structure of timber or other materials fastened together, used as a boat or floating platform.",
"A small inflatable rubber or plastic boat, especially one for use in emergencies.",
"A floating mass of fallen trees, vegetation, ice, or o... | 162 |
1,379 | <filename>paddlespeech/t2s/modules/tacotron2/attentions.py
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.a... | 8,461 |
348 | {"nom":"Puisieux-et-Clanlieu","circ":"3ème circonscription","dpt":"Aisne","inscrits":228,"abs":119,"votants":109,"blancs":9,"nuls":1,"exp":99,"res":[{"nuance":"FN","nom":"<NAME>","voix":62},{"nuance":"SOC","nom":"<NAME>","voix":37}]} | 99 |
389 | /*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.internal.gosu.parser;
import gw.test.TestClass;
import gw.lang.parser.GosuParserFactory;
import gw.lang.parser.IGosuParser;
import gw.lang.parser.expressions.IProgram;
import gw.lang.parser.exceptions.ParseResultsException;
import gw.lang.reflect.TypeSystem... | 1,005 |
848 | #include <algorithm>
#include <vector>
#include "caffe/layers/reshape_label_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void ReshapeLabelLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
const... | 1,275 |
335 | <filename>U/Uneducated_adjective.json
{
"word": "Uneducated",
"definitions": [
"Having or showing a poor level of education."
],
"parts-of-speech": "Adjective"
} | 80 |
437 | <reponame>kuangzihui/stoprocent-VGParallaxHeader-2111689
//
// HeaderView.h
// Example
//
// Created by <NAME> on 26/09/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HeaderView : UIView
+ (instancetype)instantiateFromNib;
@end
| 115 |
519 | <reponame>vincent-antaki/Neuraxle<filename>testing/api/test_flask.py
"""
Tests for Flask.
============================================
..
Copyright 2019, Neuraxio Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You m... | 954 |
679 | <filename>main/sc/workben/addin.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 ownership.... | 7,123 |
2,338 | //===-- SymbolIndexManager.h - Managing multiple SymbolIndices --*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 733 |
1,747 | from .trial_scheduler import TrialScheduler
from .online_scheduler import OnlineScheduler, OnlineSuccessiveDoublingScheduler, ChaChaScheduler
| 42 |
461 | #ifndef __X86_DECODE_H__
#define __X86_DECODE_H__
#include "common.h"
#include "cpu/decode.h"
struct ISADecodeInfo {
bool is_operand_size_16;
uint8_t ext_opcode;
};
#define suffix_char(width) ((width) == 4 ? 'l' : ((width) == 1 ? 'b' : ((width) == 2 ? 'w' : '?')))
typedef union {
struct {
uint8_t R_M :3;... | 738 |
17,702 | <filename>bindings/java/Swig/CNTKNativeUtils.java
package com.microsoft.CNTK;
import java.io.*;
import java.nio.file.Files;
import java.util.ArrayList;
/**
* A helper class for loading native CNTK libraries from Java
*
* <p>The Java interface to CNTK depends on CNTK native libraries that need to be loaded at runti... | 3,300 |
10,225 | <reponame>vonatzigenc/quarkus<gh_stars>1000+
package io.quarkus.reactivemessaging.http.runtime;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Supplier;
import org.eclipse.mic... | 595 |
350 | /*
* Copyright (C) 2016 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 applicab... | 15,630 |
4,537 | import pytest
from lucid.misc.io.scoping import io_scope, scope_url
def test_empty_io_scope():
path = "./some/file.ext"
scoped = scope_url(path)
assert scoped == path
| 69 |
386 | <reponame>bradleyhenke/cortex
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2018, <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,303 |
1,010 | /*
* The Shadow Simulator
* See LICENSE for licensing information
*/
#include "main/host/syscall/process.h"
#include <errno.h>
#include <sys/sysinfo.h>
#include "lib/logger/logger.h"
#include "main/core/worker.h"
#include "main/host/process.h"
#include "main/host/syscall/protected.h"
#include "main/host/thread.h"... | 588 |
2,151 | <gh_stars>1000+
// 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 "ash/system/unified/notification_counter_view.h"
#include "ash/resources/vector_icons/vector_icons.h"
#include "ash/system/tray/... | 509 |
5,185 | {
"main": "dist/reach-utils-use-focus-change.cjs.js",
"module": "dist/reach-utils-use-focus-change.esm.js"
}
| 49 |
1,109 | <gh_stars>1000+
/*******************************************************************************
* Copyright 2016 Intuit
* <p>
* 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
* <p>
* htt... | 4,982 |
897 | /* This program prints lucky numbers till a given number n. Lucky
number - It is a set of numbers which is formed by eliminating
numbers based on their position based on the remaining set.*/
import java.util.*;
import java.lang.*;
public class LuckyNumber {
// Function to print lucky numbers
static void luckynumbe... | 1,164 |
758 | <filename>test/type_mappings.h
#pragma once
#include <stdint.h>
#define LIB_DIVIDE_GENERATOR(GENERATOR, ...) \
GENERATOR(uint16_t, u16, __VA_ARGS__) \
GENERATOR(int16_t, s16, __VA_ARGS__) \
GENERATOR(uint32_t, u32, __VA_ARGS__) \
GENERATOR(int32_t, s32, __VA_ARGS__) \
GENERATOR(uint64_t, u64, __VA... | 673 |
382 | /*
* Copyright 2019 Google, LLC
*
* 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... | 780 |
1,546 | <gh_stars>1000+
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache... | 531 |
765 | <filename>src/systemc/tests/systemc/compliance_1666/test207/test207.cpp<gh_stars>100-1000
#include <systemc>
using namespace sc_core;
using namespace sc_dt;
using std::cout;
using std::endl;
// 7) "event_queue"
void check_form_of_suffix(std::string s)
{
std::string charset = "0123456789";
while (!s.empty())
{
... | 580 |
680 | <reponame>rcelebi/android-elfali
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2... | 8,289 |
4,569 | package com.brianway.learning.java.base.datatype;
/**
* Created by brian on 16/11/10.
*
* 包装类的“==”运算在不遇到算术运算的情况下不会自动拆箱;
* 包装类的equals()方法不处理数据转型.
*/
public class NumberEquation {
public static void main(String[] args) {
Integer i = 42;
Long l = 42l;
Double d = 42.0;
System.out.... | 327 |
1,855 | /*
* Copyright (c) <NAME>, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tree).
* You may select, at y... | 528 |
337 | <filename>j2k/new/testData/newJ2k/issues/kt-24677.java
import java.util.ArrayList;
interface FooInterface {
ArrayList<? extends Foo.SomeClass> foo();
}
public class Foo implements FooInterface {
@Override
public ArrayList<SomeClass> foo() {
return null;
}
public static class SomeClass {
... | 119 |
527 | /* Alloy Analyzer 4 -- Copyright (c) 2006-2009, <NAME>
*
* 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,
*... | 3,128 |
565 |
#pragma once
#include <vector>
#include "base/not_null.hpp"
#include "geometry/frame.hpp"
#include "geometry/identity.hpp"
#include "physics/degrees_of_freedom.hpp"
#include "physics/kepler_orbit.hpp"
#include "physics/massive_body.hpp"
namespace principia {
namespace physics {
namespace internal_jacobi_coordinate... | 811 |
427 | // This is a source file for WDK build of StormLib
// It is copied to the root folder during the build process
#pragma warning(disable:4334) // warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
#include "src\libtommath\bn_fast_mp_invmod.c"
#include "... | 2,647 |
375 | /*
* Copyright 2019 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.ide.eclipse.main.plugin.tableeditor.source.assist;
import java.util.Collection;
import org.eclipse.jface.text.contentassist.ICompletionPropo... | 246 |
337 | <gh_stars>100-1000
/*
* Copyright 2018 The Polycube 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 appl... | 1,645 |
348 | <gh_stars>100-1000
{"nom":"Annonville","circ":"2ème circonscription","dpt":"Haute-Marne","inscrits":21,"abs":8,"votants":13,"blancs":2,"nuls":0,"exp":11,"res":[{"nuance":"LR","nom":"<NAME>","voix":8},{"nuance":"FN","nom":"<NAME>","voix":3}]} | 100 |
562 | <reponame>rockandsalt/conan-center-index
from conans import AutoToolsBuildEnvironment, ConanFile, tools
import os
import shutil
class TestPackageConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
exports_sources = "configure.ac",
test_type = "requires", "build_requires"
@property
... | 557 |
898 | <filename>cocos2d/external/android-specific/pvmp3dec/src/pv_mp3dec_fxd_op_msc_evc.h
/* ------------------------------------------------------------------
* Copyright (C) 1998-2009 PacketVideo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... | 1,214 |
348 | {"nom":"Mayot","circ":"1ère circonscription","dpt":"Aisne","inscrits":146,"abs":91,"votants":55,"blancs":8,"nuls":0,"exp":47,"res":[{"nuance":"REM","nom":"<NAME>","voix":27},{"nuance":"FN","nom":"<NAME>","voix":20}]} | 87 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.spring.data.cosmos.config;
/**
* Throughput config for database creation
*/
public class DatabaseThroughputConfig {
private final boolean autoScale;
private final int requestUnit... | 451 |
658 | <filename>lib/utils/extend_utils/src/farthest_point_sampling.cpp<gh_stars>100-1000
#include<vector>
#include<float.h>
#include<time.h>
#include<stdlib.h>
#include<iostream>
#include<cmath>
#include<cstring>
#include <assert.h>
#include <functional>
#include <random>
using namespace std;
struct Vec3 {
Vec3() { x =... | 2,976 |
648 | #
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 1,889 |
777 | <filename>components/invalidation/public/invalidation_util.cc<gh_stars>100-1000
// 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.
#include "components/invalidation/public/invalidation_util.h"
#include <m... | 847 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-47mp-v7q4-xpjw",
"modified": "2022-01-23T00:00:33Z",
"published": "2022-01-15T00:01:53Z",
"aliases": [
"CVE-2022-20660"
],
"details": "A vulnerability in the information storage architecture of several Cisco IP Phone models could allow an unauthenticated, physi... | 537 |
4,879 | package com.mapswithme.maps.dialog;
import com.mapswithme.maps.R;
public class DefaultConfirmationAlertDialog extends AlertDialog
{
@Override
protected int getLayoutId()
{
return R.layout.fragment_confirmation;
}
}
| 76 |
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 ... | 475 |
4,538 | <reponame>wstong999/AliOS-Things
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef DEBUG_BACKTRACE_H
#define DEBUG_BACKTRACE_H
#ifdef __cplusplus
extern "C"
{
#endif
void debug_backtrace_now(int32_t (*print_func)(const char *fmt, ...));
void debug_backtrace_task(char *taskname, int32_t (*print... | 162 |
1,016 | package com.thinkbiganalytics.spark.dataprofiler.testcases;
/*-
* #%L
* thinkbig-spark-job-profiler-app
* %%
* 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 ... | 2,146 |
337 | <reponame>francescomessina/polycube
/**
* bridge API generated from bridge.yang
*
* NOTE: This file is auto generated by polycube-codegen
* https://github.com/polycube-network/polycube-codegen
*/
/* Do not edit this file manually */
#include "StpJsonObject.h"
#include <regex>
namespace polycube {
namespace servic... | 1,326 |
348 | {"nom":"<NAME>","circ":"3ème circonscription","dpt":"Maine-et-Loire","inscrits":1880,"abs":917,"votants":963,"blancs":18,"nuls":11,"exp":934,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":311},{"nuance":"LR","nom":"<NAME>","voix":266},{"nuance":"FN","nom":"M. <NAME>","voix":103},{"nuance":"FI","nom":"M. <NAME>","voix... | 264 |
376 | #include <Nazara/Core/AbstractHash.hpp>
#include <catch2/catch.hpp>
#include <Nazara/Core/ByteArray.hpp>
#include <array>
SCENARIO("AbstractHash", "[CORE][ABSTRACTHASH]")
{
GIVEN("The hash SHA512")
{
std::unique_ptr<Nz::AbstractHash> SHA512 = Nz::AbstractHash::Get(Nz::HashType::SHA512);
SHA512->Begin();
WHE... | 266 |
474 | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package io.valuesfeng.picker.utils;
import android.media.ExifInterface;
import android.text.TextUtils;
import android.util.Log;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleD... | 1,169 |
2,253 | <reponame>y11en/rttr
/************************************************************************************
* *
* Copyright (c) 2014 - 2018 <NAME> <<EMAIL>> *
* ... | 5,739 |
747 | <reponame>zhang1990215/LearningMasteringAlgorithms-C
//
// stack.h
// Algorithms - stack
//
// Created by YourtionGuo on 25/04/2017.
// Copyright © 2017 Yourtion. All rights reserved.
//
#ifndef STACK_H
#define STACK_H
#include <stdlib.h>
#include "list.h"
/**
栈
*/
typedef List Stack;
/**
初始化 stack 指定的栈 - ... | 604 |
340 | <reponame>cloudnoize/concord-bft<gh_stars>100-1000
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Concord
#
# Copyright (c) 2018-2021 VMware, Inc. All Rights Reserved.
#
# This product is licensed to you under the Apache 2.0 license (the "License").
# You may not use this product except in compliance with the Apache 2.0 ... | 2,567 |
4,036 | <reponame>vadi2/codeql
class Bad{
public void runInThread(){
Thread thread = new Thread();
thread.start();
}
} | 47 |
2,816 | import urllib.request
import tarfile
import tempfile
import os
dirname = os.path.dirname(os.path.realpath(__file__))
tf = tempfile.NamedTemporaryFile()
urllib.request.urlretrieve('https://github.com/cwida/duckdb-data/releases/download/v1.0/ldbc-snb-sf0.1.tar.gz', tf.name)
tarfile.open(tf.name).extractall(dirname)
| 127 |
12,252 | <gh_stars>1000+
package org.keycloak.testsuite.utils.arquillian.fuse;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java... | 4,425 |
1,695 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 1,928 |
335 | {
"word": "Inert",
"definitions": [
"Lacking the ability or strength to move.",
"Lacking vigour.",
"Chemically inactive."
],
"parts-of-speech": "Adjective"
} | 89 |
435 | package datawave.configuration;
import javax.annotation.security.DeclareRoles;
import javax.annotation.security.PermitAll;
import javax.annotation.security.RolesAllowed;
import javax.annotation.security.RunAs;
import javax.ejb.Singleton;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;... | 923 |
1,253 | <gh_stars>1000+
#include <iostream>
// C++ implementation of interpolation search
// Pass a sorted integer array, length of the array, and value of the target
// Returns index of the target if it is found, otherwise returns -1
int interpolationSearch(int* arr, int length, int target)
{
// Find indices of first and la... | 394 |
352 | // =========================================================================
// Copyright 2020 T-Mobile, US
//
// 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/... | 776 |
1,823 | <reponame>shettyprithvi/scattertext<gh_stars>1000+
import numpy as np
from scattertext.domain.CombineDocsIntoDomains import CombineDocsIntoDomains
class NeedsMaxOrMinDomainCountException(Exception):
pass
class DomainCompactor(object):
def __init__(self, doc_domains, min_domain_count=None, max_domain_count=None):... | 756 |
385 | #pragma once
namespace Lp {
namespace Sys {
namespace DbgTextWriter
{
struct Info;
};
};
}; | 59 |
649 | package net.poc.tasks;
import net.poc.ui.AddNotePage;
import net.poc.ui.NotesWelcomePage;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Task;
import net.serenitybdd.screenplay.actions.Click;
import net.thucydides.core.annotations.Step;
import static net.serenitybdd.screenplay.Tasks.instru... | 307 |
2,111 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2016
// <NAME> Codeplay Software Ltd.
// <NAME> Codeplay Software Ltd.
// <NAME> Codeplay Software Ltd.
// Contact: <<EMAIL>>
// <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the M... | 7,447 |
372 | <filename>src/main/java/org/apache/sysds/api/mlcontext/MLContextException.java<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. Th... | 612 |
973 | <filename>pcap4j-core/src/test/java/org/pcap4j/core/BpfProgramTest.java<gh_stars>100-1000
package org.pcap4j.core;
import static org.junit.Assert.*;
import org.junit.Test;
import org.pcap4j.core.BpfProgram.BpfCompileMode;
import org.pcap4j.packet.Packet;
@SuppressWarnings("javadoc")
public class BpfProgramTest {
... | 414 |
459 | // File implement/eglplus/enums/surface_attrib_range.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/eglplus/surface_attrib.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2015 <NAME>.
// Distributed under the Boost Software License,... | 804 |
1,085 | <reponame>rhpvorderman/galaxy
"""
DataProvider related exceptions.
"""
class InvalidDataProviderSource(TypeError):
"""
Raised when a unusable source is passed to a provider.
"""
def __init__(self, source=None, msg=''):
msg = msg or f'Invalid source for provider: {source}'
super().__in... | 435 |
488 | <filename>src/roseExtensions/qtWidgets/util/SageMimeData.cpp
#include "sage3basic.h"
#include "SageMimeData.h"
#include "AsmToSourceMapper.h"
#include <QDataStream>
#include <QMimeData>
#include <QStringList>
#include <QDebug>
template< typename LinkType >
static void writeLinks( QDataStream &s, AstAttributeMechanis... | 1,608 |
809 | #define PJ_LOG_USE_STACK_BUFFER 0
#define PJ_LOG_MAX_LEVEL 6
#define PJ_POOL_DEBUG 0
#define PJ_HAS_POOL_ALT_API 0
/* make PJSUA slim */
#define PJSUA_MAX_ACC 3
#define PJSUA_MAX_CALLS 1
#define PJSUA_MAX_VID_WINS 0
#define PJSUA_MAX_BUDDIES 1
#define PJSUA_MAX_CONF_PORTS 4
#define PJSUA_MAX_PLAYERS 1... | 437 |
777 | <gh_stars>100-1000
// 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.
package org.chromium.chrome.browser.preferences;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
impo... | 4,123 |
373 | <gh_stars>100-1000
/*-------------------------------------------------------------------------------
BARONY
File: spell.cpp
Desc: contains spell definitions
Copyright 2013-2016 (c) Turning Wheel LLC, all rights reserved.
See LICENSE for details.
------------------------------------------------------------------... | 12,527 |
432 | /*
* Copyright (c) 1983, 1989, 1993, 1994
* The Regents of the University of California. 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... | 9,400 |
14,668 | // 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 "components/offline_pages/core/model/offline_page_upgrade_types.h"
namespace offline_pages {
StartUpgradeResult::StartUpgradeResult()
: sta... | 271 |
473 | /*
* Copyright (C) <NAME> <<EMAIL>>
*
* 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, publish... | 1,473 |
312 | <filename>TestProjects/AutoImporterTestProject1/AutoImporterTestProject1/LAFMyClass1.h
//
// LAFMyClass1.h
// AutoImporterTestProject1
//
// Created by <NAME> on 9/11/14.
// Copyright (c) 2014 <EMAIL>. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol LAFMyProtocol1
@end
@interface LAFMyClass1... | 145 |
2,996 | <reponame>Elyahu41/Terasology<filename>engine-tests/src/test/java/org/terasology/engine/persistence/TemplateEngineTest.java
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.persistence;
import com.google.common.collect.ImmutableMap;
import org.junit.jupi... | 423 |
771 | //
// HUTransitionVerticalLinesAnimator.h
// EasyBeats
//
// Created by <NAME> on 16/09/13.
//
//
#import <Foundation/Foundation.h>
#import "HUTransitionAnimator.h"
@interface HUTransitionVerticalLinesAnimator : HUTransitionAnimator
@end
| 95 |
1,038 | <reponame>vickyi/data-algorithms-book
package org.dataalgorithms.chap24.mapreduce;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
import org.apache.hadoop.conf.Configu... | 1,357 |
10,225 | package io.quarkus.gradle;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import java.io.File;
import org.junit.jupiter.api.Test;
public class AnnotationProcessorMultiModuleTest extends QuarkusGradleWrapperTestBase {
@Test
public void shouldRunTestCorrectly() throws Exception {
... | 204 |
913 | #include <cstdlib>
#include "api/tweaks.hpp"
int main(int argc, char *argv[])
{
if (argc != 2)
return EXIT_FAILURE;
bool enabled = atoi(argv[1]);
try {
Tweak &tweak = tweak_protection_advanced();
if (tweak.is_available())
tweak.set_enabled(enabled);
} catch (...) {... | 189 |
1,936 | #include <ceres/ceres.h>
#include <ceres/rotation.h>
#include <Eigen/Core>
#include <Eigen/Dense>
#include <glog/logging.h>
#include <gtest/gtest.h>
#include <ceres-error-terms/parameterization/quaternion-param-jpl.h>
#include <maplab-common/pose_types.h>
#include <maplab-common/quaternion-math.h>
#include <maplab-c... | 2,141 |
879 | package org.zstack.zql.ast.visitors;
import org.apache.commons.lang.StringUtils;
import org.zstack.header.exception.CloudRuntimeException;
import org.zstack.header.zql.ASTNode;
import org.zstack.header.zql.ASTVisitor;
import java.util.List;
import java.util.stream.Collectors;
public class ValueVisitor implements AST... | 490 |
399 | <filename>athena-cloudwatch-metrics/src/test/java/com/amazonaws/athena/connectors/cloudwatch/metrics/TestUtils.java<gh_stars>100-1000
/*-
* #%L
* athena-cloudwatch-metrics
* %%
* Copyright (C) 2019 Amazon Web Services
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this f... | 457 |
1,177 | <reponame>gsilvapt/python
[
{
"url": "https://docs.python.org/3/library/enum.html",
"description": "enum documentation"
},
{
"url": "https://www.w3schools.com/python/ref_keyword_is.asp",
"description": "identity keyword"
},
{
"url": "https://docs.python.org/3/library/enum.html#using-auto",... | 246 |
5,169 | {
"name": "TestHSPod",
"version": "0.1.2",
"summary": "테스트용 입니다.",
"description": "테스트 파일 입니다.",
"homepage": "https://skypeople.me",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<EMAIL>": "<EMAIL>"
},
"source": {
"git": "https://yoseop2da@bitbucket.org/yoseop2da/spt... | 260 |
4,772 | <filename>jpa/deferred/src/main/java/example/service/Customer587Service.java
package example.service;
import example.repo.Customer587Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer587Service {
public Customer587Service(Customer587Repository repo) {}
}
| 85 |
372 | <filename>clients/google-api-services-dataflow/v1b3/1.31.0/com/google/api/services/dataflow/model/InstructionInput.java
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apach... | 1,025 |
682 | <gh_stars>100-1000
/**CFile****************************************************************
FileName [dchAig.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Choice computation for tech-mapping.]
Synopsis [AIG manipulation.]
Author [<NAME>]
Affiliation [UC Berke... | 1,559 |
401 | <filename>app/src/test/java/com/zwh/mvparms/eyepetizer/ExampleUnitTest.java
package com.zwh.mvparms.eyepetizer;
import com.zwh.mvparms.eyepetizer.mvp.presenter.VideoPresenter;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org... | 319 |
5,133 | <reponame>Saljack/mapstruct
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.nestedmethodcall;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.datatype.XMLGregori... | 299 |
861 | package cn.springcloud.gray.server.dao.repository;
import cn.springcloud.gray.server.dao.model.HandleActionDO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSp... | 247 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.