max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
450 | <reponame>YangHao666666/hawq
/*-------------------------------------------------------------------------
*
* cdb_dump_util.h
*
*
*-------------------------------------------------------------------------
*/
#ifndef CDB_DUMP_UTIL_H
#define CDB_DUMP_UTIL_H
#include <regex.h>
#include "cdb_seginst.h"
#define CDB_B... | 1,481 |
1,253 | <filename>libraries/CRC/test/unit_test_crc16.cpp
//
// FILE: unit_test_crc16.cpp
// AUTHOR: <NAME>
// DATE: 2021-03-31
// PURPOSE: unit tests for the CRC library
// https://github.com/RobTillaart/CRC
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertion... | 4,038 |
625 | /*
* 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,269 |
4,756 | /*
* Copyright (C) 2011 The Libphonenumber 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 la... | 3,172 |
32,544 | package com.baeldung.jpa.entity;
import static org.junit.Assert.assertEquals;
import java.time.LocalDate;
import java.time.ZoneId;
import java.util.Date;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.pe... | 748 |
521 | /* $Id: UIApplianceEditorWidget.cpp $ */
/** @file
* VBox Qt GUI - UIApplianceEditorWidget class implementation.
*/
/*
* Copyright (C) 2009-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can ... | 27,211 |
995 | <reponame>YuukiTsuchida/v8_embeded<filename>externals/boost/boost/numeric/interval/hw_rounding.hpp
/* Boost interval/hw_rounding.hpp template implementation file
*
* Copyright 2002 <NAME>, <NAME>, <NAME>
* Copyright 2005 <NAME>
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanyi... | 1,000 |
316 | <gh_stars>100-1000
#pragma once
// generate an importance sampled brdf direction
CUDA_CALLABLE inline void BRDFSample(const Material& mat, const Vec3& P, const Mat33& frame, const Vec3& V, Vec3& outDir, float& outPdf, Random& rand)
{
outDir = frame*UniformSampleHemisphere(rand);
outPdf = kInv2Pi;
}
CUDA_CALLABLE... | 167 |
399 | package edu.wpi.grip.core.serialization;
import edu.wpi.grip.core.Pipeline;
import edu.wpi.grip.core.Source;
import edu.wpi.grip.core.Step;
import edu.wpi.grip.core.sockets.InputSocket;
import edu.wpi.grip.core.sockets.OutputSocket;
import edu.wpi.grip.core.sockets.Socket;
import edu.wpi.grip.core.sockets.SocketHint;
... | 2,610 |
766 | <reponame>hdhong/ukefu
/* Copyright 2013-2015 www.snakerflow.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 require... | 2,555 |
750 | <reponame>0scarB/piccolo<filename>piccolo/query/__init__.py
from .base import Query
from .methods import (
Alter,
Avg,
Count,
Create,
CreateIndex,
Delete,
DropIndex,
Exists,
Insert,
Max,
Min,
Objects,
Raw,
Select,
Sum,
TableExists,
Update,
)
| 147 |
852 | #include "RecoTracker/TkSeedGenerator/interface/MultiHitGenerator.h"
#include <iostream>
#include <typeinfo>
const OrderedMultiHits& MultiHitGenerator::run(const TrackingRegion& region,
const edm::Event& ev,
const edm::EventS... | 298 |
1,909 | package org.knowm.xchange.lykke.service;
import java.io.IOException;
import java.util.List;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.exceptions.ExchangeException;
import org.knowm.xchange.lykke.LykkeAdapter;
import org.knowm.xchange.lykke.LykkeExceptio... | 528 |
611 | package fr.adrienbrault.idea.symfony2plugin.tests.dic.linemarker;
import com.intellij.ide.highlighter.XmlFileType;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFileFactory;
import fr.adrienbrault.idea.symfony2plugin.tests.SymfonyLightCodeInsightFixtureTestCase;
import org.jetbrains.annotations.NotNul... | 1,433 |
1,139 | package com.journaldev.reactive_streams;
import java.util.List;
import java.util.concurrent.SubmissionPublisher;
import com.journaldev.reactive.beans.Employee;
import com.journaldev.reactive.beans.Freelancer;
public class MyReactiveAppWithProcessor {
public static void main(String[] args) throws InterruptedExcepti... | 406 |
766 | /*
* Copyright 2017 <NAME>
*
* See LICENCE for the full copyright terms.
*/
#ifndef TYPE_INFO_RE_H
#define TYPE_INFO_RE_H
#include "theft_libfsm.h"
#include "buf.h"
/* Property idea: (a|b) should be the same as union[a, b] */
struct test_re_info {
char tag; /* 'r' */
enum re_dialect dialect;
size_t size;
... | 1,330 |
12,278 | /*<-
Copyright (c) 2016 <NAME>
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
->*/
#include <boost/callable_traits/detail/config.hpp>
#ifndef BOOST_CLBL_TRTS_ENABLE_NOEXCEPT_TYPES
int main(){}
#else
//[ is_noexcept
#include <... | 365 |
777 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_CERTIFICATE_TRANSPARENCY_SINGLE_TREE_TRACKER_H_
#define COMPONENTS_CERTIFICATE_TRANSPARENCY_SINGLE_TREE_TRACKER_H_
#include <map>
#inc... | 1,560 |
357 | <gh_stars>100-1000
/*
* Copyright (c) 2012-2015 VMware, 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
*
* ... | 918 |
1,486 | <reponame>rsumnerz/ios_system
/* Placed in the public domain. */
/*
* _FORTIFY_SOURCE includes a misguided check for FD_SET(n)/FD_ISSET(b)
* where n > FD_SETSIZE. This breaks OpenSSH and other programs that
* explicitly allocate fd_sets. To avoid this, we wrap FD_SET in a
* function compiled without _FORTIFY_SOUR... | 385 |
2,151 | <filename>ui/file_manager/image_loader/manifest.json
{
// chrome-extension://pmfjbimdmchhbnneeidfognadeopoehp
"key": "<KEY>",
"name": "Image loader",
"version": "0.1",
"description": "Image loader",
"incognito" : "split",
"manifest_version": 2,
"permissions": [
"chrome://resources/",
{
"fi... | 465 |
2,023 | from functools import wraps
from inspect import getargspec, isfunction
from itertools import izip, ifilter, starmap
def autoassign(*names, **kwargs):
"""
autoassign(function) -> method
autoassign(*argnames) -> decorator
autoassign(exclude=argnames) -> decorator
allow a method to assign (some o... | 1,331 |
715 | <filename>JavaSource/src/main/java/cn/xiaowenjie/daos/ConfigDao.java
package cn.xiaowenjie.daos;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
im... | 269 |
707 | from . import analyzer_test
from . import dag_test
from . import generator_test
from . import info_test
from . import refiner_test
from . import utils_test | 44 |
2,151 | /*
* Copyright (C) 2015 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 applicable l... | 1,978 |
419 |
/***************************************************************************
*
Copyright 2013 CertiVox UK Ltd. *
*
This file is... | 4,531 |
9,402 | /**
* \file
*/
#include <windows.h>
#include "w32error.h"
guint32
mono_w32error_get_last (void)
{
return GetLastError ();
}
void
mono_w32error_set_last (guint32 error)
{
SetLastError (error);
}
guint32
mono_w32error_unix_to_win32 (guint32 error)
{
g_assert_not_reached ();
}
| 131 |
2,206 | <reponame>showkawa/deeplearning4j
/*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LI... | 1,192 |
1,104 | <gh_stars>1000+
{
"html": "mhrpg.html",
"css": "mhrpg.css",
"preview": "marvel-heroic-rpg-preview.png",
"authors": "<NAME>. (@flynnwastaken), <NAME> (@trueshinken)",
"patreon": "https://www.patreon.com/flynnwastaken",
"roll20userid": "1969239",
"instructions": "Most buttons add dice to the dice pool, whic... | 359 |
455 | <gh_stars>100-1000
// Copyright 2019 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unle... | 1,701 |
1,542 | """
Title: Image classification with Swin Transformers
Author: [<NAME>](https://twitter.com/rishit_dagli)
Date created: 2021/09/08
Last modified: 2021/09/08
Description: Image classification using Swin Transformers, a general-purpose backbone for computer vision.
"""
"""
This example implements [Swin Transformer: Hiera... | 8,489 |
1,007 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.... | 1,425 |
3,189 | #include <event2/listener.h>
#include <event2/bufferevent.h>
#include <event2/buffer.h>
#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <assert.h>
#include <signal.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#define MAX_LINE_LENGTH 10240
#define MAX_OUTPUT_BUFFER 102400
static void set_tc... | 1,659 |
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 CHROME_BROWSER_PASSWORD_MANAGER_CHANGE_PASSWORD_URL_SERVICE_FACTORY_H_
#define CHROME_BROWSER_PASSWORD_MANAGER_CHANGE_PASSWORD_URL_SERVICE_FACTORY... | 346 |
1,582 | from deepmatch.models import NCF
from ..utils import get_xy_fd_ncf
def test_NCF():
model_name = "NCF"
x, y, user_feature_columns, item_feature_columns = get_xy_fd_ncf(False)
model = NCF(user_feature_columns, item_feature_columns, )
model.compile('adam', "binary_crossentropy")
model.fit(x, y, ba... | 167 |
809 | <gh_stars>100-1000
#include "uart.h"
/*
Variable for DM2UART function:
DM_START - start block address for send by UART
BLOCK_SIZE - end block address for send by UART
iterator1 - number one byte for send by UART
iterator2 - counter fifo UART
byte_DM - contain byte for send by UART
*/
int read_DM(int *iterator1, int *... | 544 |
2,151 | <filename>test/std/containers/sequences/vector/vector.cons/construct_size.pass.cpp<gh_stars>1000+
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open... | 814 |
526 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.dataengine.rest;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.... | 799 |
601 | # Copyright 2013 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 ... | 16,370 |
8,586 | /* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#include <gtest/gtest.h>
#include "graph/visitor/DeduceTypeVisitor.h"
#include "graph/visitor/test/VisitorTestBase.h"
namespace nebula {
namespace graph {
class DeduceTypeVisitorTest : public Visit... | 2,874 |
1,848 | <gh_stars>1000+
// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq
class MyClass {
public:
static const int* example;
static const int* example_check_no_collision;
};
static const int* example_check_no_collision;
| 89 |
711 | import sys
import os
import logging
import unittest
import pickle
import shutil
import numpy as np
from ConfigSpace import Configuration
from ConfigSpace.hyperparameters import UniformIntegerHyperparameter
from smac.scenario.scenario import Scenario
from smac.configspace import ConfigurationSpace
from smac.utils.mer... | 6,787 |
1,102 | <gh_stars>1000+
// Copyright (c) 2006, 2007 <NAME>
// Copyright (c) 2008 <NAME>, <NAME>
// Copyright (c) 2009 <NAME>
// Copyright (c) 2010 <NAME>, <NAME>
// Copyright (c) 2011, 2012 <NAME>, <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http:... | 593 |
1,405 | <filename>sample4/recompiled_java/sources/com/lenovo/safecenter/systeminfo/service/CallerlocQueryService.java
package com.lenovo.safecenter.systeminfo.service;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.lenovo.safecenter.systeminfo.db.DBHelper;
p... | 822 |
2,151 | <reponame>zipated/src
// 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.
#ifndef EXTENSIONS_COMMON_API_DECLARATIVE_NET_REQUEST_CONSTANTS_H_
#define EXTENSIONS_COMMON_API_DECLARATIVE_NET_REQUEST_CONSTANTS_H... | 443 |
662 | /**
* @author <NAME>
* Copyright (C) 2010 <NAME>
* Imperial College London
**/
#include <pangolin/pangolin.h>
void SetGlFormat(GLint& glformat, GLenum& gltype, const pangolin::PixelFormat& fmt)
{
switch( fmt.channels) {
case 1: glformat = GL_LUMINANCE; break;
case 3: glformat = G... | 1,688 |
348 | {"nom":"Pannecières","circ":"5ème circonscription","dpt":"Loiret","inscrits":84,"abs":49,"votants":35,"blancs":2,"nuls":1,"exp":32,"res":[{"nuance":"LR","nom":"<NAME>","voix":27},{"nuance":"REM","nom":"<NAME>","voix":5}]} | 91 |
1,993 | /*
* Copyright 2013-2020 The OpenZipkin 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 a... | 668 |
403 | <filename>snippets/camunda-openapi-client/camunda-openapi-client-spring/src/main/java/com/camunda/consulting/openapi/client/model/ExternalTaskBpmnErrorAllOf.java<gh_stars>100-1000
/*
* Camunda Platform REST API
* OpenApi Spec for Camunda Platform REST API.
*
* The version of the OpenAPI document: 7.16.0
*
*
* N... | 1,102 |
793 | <filename>lib/APINotes/APINotesReader.cpp
//===--- APINotesReader.cpp - Side Car Reader --------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------... | 21,529 |
839 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... | 678 |
1,694 | <reponame>CrackerCat/iWeChat
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <MMCommon/WXPBGeneratedMessage.h>
@class AppStoreControl, BaseResponse, BestSellingGameListModule, Down... | 642 |
1,362 | from powerfulseal.k8s import Pod
EXAMPLE_POD_ARGS1 = dict(
uid="someid",
name="name of some kind",
namespace="default",
)
EXAMPLE_POD_ARGS2 = dict(
name="name of some kind",
namespace="default",
)
def test_pods_are_deduplicated_with_uids():
collection = set()
collection.add(Pod(**EXAMPLE_... | 258 |
679 | <filename>main/framework/inc/uielement/toolbarmerger.hxx
/**************************************************************
*
* 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... | 4,376 |
2,073 | /**
* 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... | 593 |
634 | /*
* Copyright 2013-2017 consulo.io
*
* 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 ... | 694 |
1,168 | /**
* The MIT License
* Copyright © 2010 JmxTrans team
*
* 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, mo... | 1,927 |
1,282 | /* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME>ung (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following condition... | 9,066 |
770 | // Copyright (C) 2013 The Regents of the University of California (Regents).
// 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... | 1,690 |
3,631 | <filename>drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/BackwardChainingTest.java
/*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the... | 55,947 |
668 | <filename>fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/config/CacheConfig.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 owner... | 1,090 |
2,164 | //
// KSDynamicLinker.h
//
// Created by <NAME> on 2013-10-02.
//
// Copyright (c) 2012 <NAME>. All rights reserved.
//
// 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 restricti... | 1,285 |
665 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 1,484 |
1,233 | package com.github.mustachejava;
import org.junit.Test;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Map;
/**
* Reproduction test case
*/
public class Issue75Test {
@Test
public void testDotNotationWithNull() throws IOException... | 203 |
1,804 | <filename>dateparser/data/date_translation_data/lu.py
info = {
"name": "lu",
"date_order": "DMY",
"january": [
"cio",
"ciongo"
],
"february": [
"lui",
"lùishi"
],
"march": [
"lus",
"lusòlo"
],
"april": [
"muu",
"mùuyà"
... | 1,813 |
593 | <reponame>Awais75/Linq
/*=============================================================================
Copyright (c) 2012 <NAME>
join.h
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=====================... | 1,515 |
1,072 | <reponame>li-ziang/cogdl<filename>cogdl/data/dataloader.py
from abc import ABCMeta
import torch.utils.data
from torch.utils.data.dataloader import default_collate
from cogdl.data import Batch, Graph
try:
from typing import GenericMeta # python 3.6
except ImportError:
# in 3.7, genericmeta doesn't exist but w... | 855 |
360 | /*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... | 3,711 |
352 | /**
* Testcase package.
*/
package com.crawljax.plugins.testcasegenerator; | 25 |
348 | <filename>docs/data/leg-t1/062/06208328.json<gh_stars>100-1000
{"nom":"Ferfay","circ":"8ème circonscription","dpt":"Pas-de-Calais","inscrits":675,"abs":282,"votants":393,"blancs":8,"nuls":2,"exp":383,"res":[{"nuance":"FN","nom":"Mme <NAME>","voix":133},{"nuance":"REM","nom":"<NAME>","voix":77},{"nuance":"COM","nom":"<N... | 289 |
678 | <reponame>bzxy/cydia<gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iLifeSlideshow.framework/iLifeSlideshow
*/
#import <iLifeSlideshow/MCSlide.h>
#import <iLifeSlideshow/MCAnimationPathSupport.h>
#import <iLifeSlideshow/iLifeSlideshow-Structs.h>... | 3,228 |
1,104 | /*
* Copyright (c) 2010 Pentaho Corporation. All rights reserved.
* This software was developed by Pentaho Corporation and is provided under the terms
* of the GNU Lesser General Public License, Version 2.1. You may not use
* this file except in compliance with the license. If you need a copy of the license,
... | 10,098 |
1,565 | <reponame>morph3ux/async-storage
package com.reactnativecommunity.asyncstorage;
import android.content.Context;
import android.os.Build;
import android.util.Log;
import androidx.annotation.RequiresApi;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
i... | 2,444 |
852 | <filename>Alignment/CommonAlignmentAlgorithm/src/AlignmentIORoot.cc
#include "Alignment/CommonAlignmentAlgorithm/interface/AlignmentParametersIORoot.h"
#include "Alignment/CommonAlignmentAlgorithm/interface/AlignmentCorrelationsIORoot.h"
#include "Alignment/CommonAlignmentAlgorithm/interface/AlignableDataIORoot.h"
// ... | 3,586 |
984 | <filename>mapper-processor/src/test/java/com/datastax/oss/driver/internal/mapper/processor/entity/EntityNamingStrategyTest.java
/*
* Copyright DataStax, 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 cop... | 2,313 |
1,338 | /*
* Copyright 2000, <NAME>. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _AUTO_ICON_H_
#define _AUTO_ICON_H_
#include <SupportDefs.h>
class BBitmap;
class AutoIcon {
public:
AutoIcon(const char* signature)
:
fSignature(signature),
fbits(0),
fBitmap(0)
{
}... | 296 |
9,959 | // version :9
// unchanged
import lombok.val;
public class ValErrors {
public void unresolvableExpression() {
val c = d;
}
public void arrayInitializer() {
val e = { "foo", "bar"};
}
} | 75 |
2,151 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_DEVTOOLS_PROTOCOL_TARGET_HANDLER_H_
#define CHROME_BROWSER_DEVTOOLS_PROTOCOL_TARGET_HANDLER_H_
#include <set>
#include "base/memo... | 662 |
459 | /**
* @file oglplus/object/auto_rebind.hpp
* @brief Object-target binding utilities
*
* @author <NAME>
*
* Copyright 2010-2014 <NAME>. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#pragma once
#i... | 415 |
647 | #include <gtest/gtest.h>
#define private public
#include "arena.hh"
#include <algorithm>
TEST( ArenaTest , one ) {
// Attempt to create an arena
Arena * arena;
arena = new Arena(5,5);
EXPECT_NE( (void*)0, arena);
}
TEST( ArenaTest , two ) {
// Make sure that arena size is what we specified.
Ar... | 4,311 |
480 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 537 |
2,690 | <reponame>NoahR02/Odin<filename>src/libtommath/mp_init_u64.c<gh_stars>1000+
#include "tommath_private.h"
#ifdef MP_INIT_U64_C
/* LibTomMath, multiple-precision integer library -- <NAME> */
/* SPDX-License-Identifier: Unlicense */
MP_INIT_INT(mp_init_u64, mp_set_u64, uint64_t)
#endif
| 124 |
380 | #include "igl/readOBJ.h"
#include "igl/writeOBJ.h"
// #include "igl/decimate.h"
#include <Eigen/Core>
#include "pythonlike.h"
#include <cstdlib> // exit()
#include <iostream>
#include <cassert>
#include <cstdio> // printf()
#include <igl/seam_edges.h>
#include "decimate.h"
#include "quadric_error_metric.h"
#include... | 4,042 |
804 | <reponame>jiinpeng/fw-cloud-framework
package com.github.liuweijw.business.pay.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.github.liuweijw.business.pay.domain.TransOrder;
public interface TransOrderRepository extends JpaRepository<TransOrder, Long> {
}
| 103 |
519 | /*
* Copyright 2018 The GraphicsFuzz Project Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 639 |
938 | //=====-- AArch64MCAsmInfo.h - AArch64 asm properties ---------*- 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
//
//===---------------------------... | 503 |
1,909 | <gh_stars>1000+
/*
* Copyright 2006-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | 459 |
335 | {
"word": "Truth",
"definitions": [
"The quality or state of being true.",
"That which is true or in accordance with fact or reality.",
"A fact or belief that is accepted as true."
],
"parts-of-speech": "Noun"
} | 99 |
370 | /**
* @file video_capture.cpp
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*
* @i... | 4,869 |
336 | #include "TMCStepper.h"
#include "SW_SPI.h"
TMC2660Stepper::TMC2660Stepper(uint16_t pinCS, float RS) :
_pinCS(pinCS),
Rsense(RS)
{}
TMC2660Stepper::TMC2660Stepper(uint16_t pinCS, uint16_t pinMOSI, uint16_t pinMISO, uint16_t pinSCK) :
_pinCS(pinCS),
Rsense(default_RS)
{
SW_SPIClass *SW_SPI_Obj = new SW... | 2,358 |
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.
#ifndef COMPONENTS_VARIATIONS_CLIENT_FILTERABLE_STATE_H_
#define COMPONENTS_VARIATIONS_CLIENT_FILTERABLE_STATE_H_
#include <string>
#include "base/callb... | 978 |
382 | /*
* Copyright 2020 Netflix, 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 ... | 445 |
450 | /*
* Copyright (c) 2004, 2005, 2006 TADA AB - Taby Sweden
* Distributed under the terms shown in the file COPYRIGHT
* found in the root folder of this project or at
* http://eng.tada.se/osprojects/COPYRIGHT.html
*
* @author <NAME>
*/
#ifndef __pljava_HashMap_h
#define __pljava_HashMap_h
#include "pljava/PgObjec... | 1,474 |
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 required by ap... | 3,326 |
377 | /*******************************************************************************
* * Copyright 2013 Impetus Infotech.
* *
* * 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
* *
*... | 1,166 |
2,338 | // BOLT test case
#include <stdio.h>
typedef unsigned long long (*FP)();
extern FP getCallback();
extern FP getCallback2();
extern FP getCallback3();
int main() {
printf("Case 1: Result is: %llX\n", (*getCallback())());
printf("Case 2: Result is: %llX\n", (*getCallback2())());
printf("Case 3: Result is: %llX\... | 131 |
711 | <gh_stars>100-1000
package com.java110.api.bmo.purchaseApply;
import com.alibaba.fastjson.JSONObject;
import com.java110.api.bmo.IApiBaseBMO;
import com.java110.core.context.DataFlowContext;
/**
* @ClassName IPurchaseApplyBMO
* @Description TODO
* @Author wuxw
* @Date 2020/3/9 23:33
* @Version 1.0
* add by wuxw... | 610 |
634 | <filename>zentral/contrib/monolith/migrations/0026_auto_20170919_1005.py
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-09-19 10:05
from __future__ import unicode_literals
from django.db import migrations, models
import zentral.contrib.monolith.models
class Migration(migrations.Migration):
depende... | 267 |
396 | <gh_stars>100-1000
package com.ibm.webapi.apis;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.json.JsonObject;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
import javax.json.Json;
import org... | 646 |
357 | <reponame>yijianduanlang/n95-py
# python3.6.5
# coding:utf-8
# 天猫淘宝自动下单 用于定时抢购
import os
import sys
from selenium import webdriver
import requests
import time
from selenium.webdriver.chrome.options import Options
# 创建浏览器对象
chrome_options = Options()
# 关闭使用 ChromeDriver 打开浏览器时上部提示语 "Chrome正在受到自动软件的控制"
chrome_options.ad... | 2,689 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.