max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
728 | <filename>bundles/sirix-core/src/test/java/org/sirix/access/PathBasedPoolTest.java
package org.sirix.access;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.nio.file.Path;
import java.util.Map;
import java.util.Set;
import static org.junit.jupiter.api.Assertions.*;
import stat... | 1,151 |
302 | <reponame>vadkasevas/BAS<filename>Modules/FileSystem/dll/moduledll.h<gh_stars>100-1000
#ifndef MODULEDLL_H
#define MODULEDLL_H
extern "C" {
typedef char* (*ResizeFunction)(int,void*);
__declspec(dllexport) void* StartDll();
__declspec(dllexport) void EndDll(void * DllData);
__declspec(dllexport) void* StartThread();
... | 652 |
486 | /*
* ARX: Powerful Data Anonymization
* Copyright 2012 - 2021 <NAME> and 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/LICE... | 3,839 |
2,151 | // 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.compositor.layouts;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content... | 641 |
2,054 | <reponame>GarrickLin/ZQCNN<gh_stars>1000+
#ifndef _ZQ_LSQR_SOLVER_H_
#define _ZQ_LSQR_SOLVER_H_
#pragma once
#include "ZQ_taucs.h"
#include "ZQ_TaucsBase.h"
#include "ZQ_LSQRUtils.h"
namespace ZQ
{
class ZQ_LSQRSolver
{
public:
template<class T>
static bool LSQRSolve(taucs_ccs_matrix* A, T* b, T* x0, int max_i... | 1,115 |
416 | //
// EKEventStore.h
// EventKit
//
// Copyright 2009-2010 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <EventKit/EventKitDefines.h>
#import <EventKit/EKTypes.h>
NS_ASSUME_NONNULL_BEGIN
@class EKCalendar, EKEvent, EKSource, EKReminder, EKCalendarItem;
/*!
@enum EKSpa... | 9,078 |
909 | public class ByNameJava extends ByName {
@Override
public void foo(int x, Object s) {
super.foo(x, s);
}
} | 53 |
841 | package org.jboss.resteasy.client.jaxrs.internal.proxy;
import java.lang.reflect.Method;
import org.jboss.resteasy.client.jaxrs.ProxyConfig;
public interface ClientInvokerFactory
{
ClientInvoker createClientInvoker(Class<?> clazz, Method method, ProxyConfig config);
}
| 87 |
515 | <gh_stars>100-1000
/*=========================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in com... | 3,828 |
977 | /*
* Copyright 2015 Realm 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 i... | 2,769 |
575 | <reponame>iridium-browser/iridium-browser
// Copyright 2021 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_AUTOFILL_ANDROID_SAVE_ADDRESS_PROFILE_PROMPT_CONTROLLER_H_
#define CHROME_BROWSER_AUTOFIL... | 1,019 |
802 | <filename>Sparkle/SPUCoreBasedUpdateDriver.h
//
// SPUCoreBasedUpdateDriver.h
// Sparkle
//
// Created by <NAME> on 3/18/16.
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Sparkle/SPUStatusCompletionResults.h>
#import "SPUUpdateDriver.h"
NS_ASSUME_NONNULL_B... | 913 |
587 | /*
* Copyright 2017-2020 Crown Copyright
*
* 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... | 614 |
2,113 | <reponame>vbillet/Torque3D
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the ... | 1,713 |
1,936 | #ifndef LOCALIZATION_EVALUATOR_LOCALIZATION_EVALUATOR_H_
#define LOCALIZATION_EVALUATOR_LOCALIZATION_EVALUATOR_H_
#include <limits>
#include <vector>
#include <Eigen/Core>
#include <aslam/common/memory.h>
#include <loop-closure-handler/loop-detector-node.h>
#include <vi-map/vi-map.h>
namespace localization_evaluator... | 620 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-jrc6-w967-jvc8",
"modified": "2022-01-29T00:00:56Z",
"published": "2022-01-25T00:00:43Z",
"aliases": [
"CVE-2021-46451"
],
"details": "An SQL Injection vulnerabilty exists in Sourcecodester Online Project Time Management System 1.0 via the pi... | 375 |
307 | # Copyright 2016 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 ... | 400 |
4,071 | <filename>blaze/blaze/test/utest_data/model_importer/ulf/gauss_cnxh_din_v2/run_model.py
from pyblaze.predictor import PredictorManger
from pyblaze.predictor import Predictor
import numpy as np
batch_size = 1
comm_shape = [1, 306]
ncomm_shape = [batch_size, 732]
att_comm_shape = [1, 1800 * 18]
np.random.seed(0)
comm =... | 771 |
782 | /*
* Copyright (c) 2021, <NAME>. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* 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... | 805 |
2,392 | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2013 <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at http://mozilla.org/MPL/2.... | 300 |
1,338 | /*
* Copyright 2010-2011, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include <TestSuite.h>
#include <TestSuiteAddon.h>
#include "NetworkAddressTest.h"
#include "NetworkInterfaceTest.h"
#include "NetworkUrlTest.h"
BTestSuite*
getTestSuite()
{
BTestSuite* suite = new BTestSuite("NetAP... | 163 |
10,225 | <gh_stars>1000+
package io.quarkus.vault.runtime.client.dto.totp;
import io.quarkus.vault.runtime.client.dto.VaultModel;
public class VaultTOTPCreateKeyResult implements VaultModel {
public VaultTOTPCreateKeyData data;
}
| 87 |
432 | <filename>src/us/parr/bookish/model/UnOrderedList.java
package us.parr.bookish.model;
import java.util.List;
public class UnOrderedList extends OrderedList {
public UnOrderedList(List<ListItem> items) {
super(items);
}
}
| 84 |
3,200 | /**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 9,689 |
3,010 | <reponame>learnforpractice/micropython-cpp<filename>tests/basics/module2.py
# uPy behaviour only: builtin modules are read-only
import sys
try:
sys.x = 1
except AttributeError:
print("AttributeError")
| 71 |
10,225 | <reponame>PieterjanDeconinck/quarkus
package io.quarkus.resteasy.test;
import static io.restassured.RestAssured.when;
import javax.ws.rs.core.HttpHeaders;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.exte... | 383 |
9,700 | #ifndef AUTHFILE_H
#define AUTHFILE_H
enum authfile_ret {
AUTHFILE_OK = 0,
AUTHFILE_OOM,
AUTHFILE_STATFAIL, // not likely, but just to be sure
AUTHFILE_OPENFAIL,
AUTHFILE_MALFORMED,
};
// FIXME: mc_authfile or something?
enum authfile_ret authfile_load(const char *file);
int authfile_check(const c... | 146 |
683 | <reponame>YgorCastor/opentelemetry-java-instrumentation
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.netty.v4_1.client;
import static io.opentelemetry.javaagent.instrumentation.netty.v4_1.client.NettyClientSingletons.HTTP_REQUE... | 1,011 |
1,144 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: v2ray.com/core/app/policy/config.proto
package com.v2ray.core.app.policy;
public interface ConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:v2ray.core.app.policy.Config)
com.google.protobuf.MessageOrBuilder {
... | 696 |
334 | <reponame>HRI-EU/HRI-nanomsg-python<gh_stars>100-1000
from __future__ import division, absolute_import, print_function,\
unicode_literals
import os
from nanomsg_wrappers import set_wrapper_choice, get_default_for_platform
WRAPPER = os.environ.get('NANOMSG_PY_TEST_WRAPPER', get_default_for_platform())
set_wrapper_choic... | 874 |
679 | /**************************************************************
*
* 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 y... | 764 |
606 | <filename>frida_mode/test/unstable/unstable.c
/*
american fuzzy lop++ - a trivial program to test the build
--------------------------------------------------------
Originally written by <NAME>
Copyright 2014 Google Inc. All rights reserved.
Copyright 2019-2022 AFLplusplus Project. All rights reserved.
... | 698 |
1,437 | <filename>caffe-vsproj/libClassification/classifierCaffe.cpp<gh_stars>1000+
#include "classifierCaffe.h"
///////////////////////////////
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <time.h> /*用到了time函数,所以要有这个头文件*/
#include <fstream>
#include <sstream>
#include <exception>
#include <vector>
#i... | 7,492 |
521 | #ifndef BOOST_TYPE_TRAITS_TYPE_IDENTITY_HPP_INCLUDED
#define BOOST_TYPE_TRAITS_TYPE_IDENTITY_HPP_INCLUDED
//
// Copyright 2015 <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
//
namespace network_bo... | 190 |
3,428 | {"id":"01156","group":"spam-2","checksum":{"type":"MD5","value":"5a3a6bdccf5df42348f22cada73a1b12"},"text":"From <EMAIL> Mon Jul 29 11:40:41 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: <EMAIL>.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMTP id 65E4B44116\n\tf... | 1,772 |
994 | <gh_stars>100-1000
# Enter your code here. Read input from STDIN. Print output to STDOUT
from collections import*
d={}
for i in range(int(input())):
word=input()
if word in d:
d[word]+=1
else:
d[word]=1
print(len(d))
print(*d.values())
| 124 |
930 | package com.foxinmy.weixin4j.base.test;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Calendar;
import java.util.Date;
import org.junit.Assert;
import org.junit.Test;
import com.foxinmy.weixin4j.exception.WeixinException;
import com.foxinmy.weixin4j.http.w... | 2,444 |
377 | <gh_stars>100-1000
//
// TTMapManager.h
// SatelliteEyes
//
// Created by <NAME> on 19/02/2012.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import "TTMapImage.h"
@class Reachability;
static NSString *const TTMapManagerS... | 398 |
346 | <reponame>stanislaw/textX
from __future__ import unicode_literals
from os.path import dirname, abspath, join
import textx.scoping.providers as scoping_providers
from textx import get_children_of_type
from textx import metamodel_from_file
from textx.scoping.tools import get_unique_named_object
def test_model_with_lo... | 1,048 |
369 | /* ---------------------------------------------------------------------------- */
/* Atmel Microcontroller Software Support */
/* SAM Software Package License */
/* --------------------------------------------------------------------... | 2,310 |
933 | /*
* Copyright (C) 2020 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 app... | 1,419 |
668 | <gh_stars>100-1000
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates.
*
* 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 abov... | 1,004 |
473 | /*
Copyright (c) 2009-2016, <NAME>
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
namespace El {
namespace msquasitrsm {
template<typename F>... | 5,152 |
1,796 | <gh_stars>1000+
package github.nisrulz.sample.usingbottomnavigationbar;
import android.os.Bundle;
import androidx.annotation.IdRes;
import androidx.appcompat.app.AppCompatActivity;
import android.util.Log;
import android.widget.TextView;
import com.roughike.bottombar.BottomBar;
import com.roughike.bottombar.BottomBarT... | 1,006 |
19,920 | /*
* 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 app... | 1,256 |
463 | <reponame>elgalu/labml
from pathlib import PurePath
from typing import Dict, Optional
def new_run(python_file: PurePath, *,
configs: Optional[Dict[str, any]] = None,
comment: Optional[str] = None):
r"""
This starts a new experiment by running ``main`` function defined in ``python_file`... | 501 |
1,475 | <reponame>mhansonp/geode
/*
* 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 (... | 908 |
456 | <gh_stars>100-1000
#!/usr/bin/env python2
from pwn import *
binary = './ropasaurusrex-85a84f36f81e11f720b1cf5ea0d1fb0d5a603c0d'
# Demo should work even without a HOST
if 'HOST' in args:
r = remote(args['HOST'], int(args['PORT']))
else:
r = process(binary)
# If we run with a cyclic pattern, we end up with the... | 863 |
4,140 | /*
* 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 ... | 998 |
879 | <reponame>qianfei11/zstack
package org.zstack.header.vm;
import org.zstack.header.core.Completion;
public interface ReleaseNetworkServiceOnDeletingNicExtensionPoint {
void releaseNetworkServiceOnDeletingNic(VmNicInventory nic, Completion completion);
}
| 90 |
816 | <gh_stars>100-1000
package com.binance.api.client.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* Order execution type.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public enum ExecutionType {
NEW,
CANCELED,
REPLACED,
REJECTED,
TRADE,
EXPIRED
} | 123 |
440 | /**
* Description: Bitmask (Support set, unset and get bit operation)
* Usage: set O(1), unset O(1), get O(1)
* Source: https://github.com/dragonslayerx
*/
class Bitmask {
int mask;
public:
Bitmask() {
mask = 0;
}
void set(int i) {
mask |= (1 << i);
}
void unset(int i) {
mask &= ~(1 << i);
}
int get... | 184 |
1,319 | <gh_stars>1000+
# -*- coding: utf-8 -*-
import urwid
import math
from .picmagic import read as picRead
from .testers.testers import Tester
from .tools import validate_uri, send_result, load_test, validate_email
from .widgets import TestRunner, Card, TextButton, ImageButton, \
DIV, FormCard, LineButton, DisplayTest... | 4,359 |
5,169 | {
"name": "TencentOpenSDK",
"version": "3.3.3",
"summary": "Tencent QQ Open SDK 3.3.3 version",
"homepage": "https://open.tencent.com",
"license": "MIT",
"authors": {
"Tencent": "https://open.tencent.com"
},
"platforms": {
"ios": null
},
"source": {
"git": "https://github.com/XFNicar/Ten... | 290 |
2,023 | <reponame>tdiprima/code
# This code was taken and modified from <NAME>'s
# "determine the name of the calling function" recipe (Thanks, Alex!)
#
# This code also benefits from a useful enhancement from <NAME>, allowing
# only the arguments to __init__ to be copied, if that is desired.
#
# use sys._getframe() -- it ret... | 516 |
12,718 | <reponame>aruniiird/zig
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
* User API definitions for paravirtual devices on s390
*
* Copyright IBM Corp. 2008
*
* Author(s): <NAME> <<EMAIL>>
*/ | 78 |
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 ... | 1,953 |
1,588 | package xyz.erupt.annotation.config;
/**
* @author YuePeng
* date 2019-05-24.
*/
public enum JavaTypeEnum {
any,
String,
number,
date,
object,
bool,
not_know,
}
| 88 |
2,707 | <reponame>ronaldocan/jetlinks-community
package org.jetlinks.community.dashboard.supports;
import org.jetlinks.community.dashboard.Measurement;
import org.jetlinks.community.dashboard.MeasurementDefinition;
import org.jetlinks.community.dashboard.MeasurementDimension;
import org.springframework.util.Assert;
import rea... | 444 |
307 | /*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
#include "stdafx.h"
#include "FRED.h"
#include "ShipClassEditorDlg.h"
#... | 1,580 |
606 | <reponame>vmarkushin/Arend
package org.arend.typechecking;
import org.arend.core.definition.Definition;
public interface TypecheckedReporter {
void typecheckingFinished(Definition definition);
TypecheckedReporter DUMMY = definition -> {};
}
| 73 |
3,655 | <reponame>yaoshanliang/PaddleX
import paddlex as pdx
clip_min_value = [7172, 6561, 5777, 5103, 4291, 4000, 4000, 4232, 6934, 7199]
clip_max_value = [
50000, 50000, 50000, 50000, 50000, 40000, 30000, 18000, 40000, 36000
]
data_info_file = 'dataset/remote_sensing_seg/train_infomation.pkl'
train_analysis = pdx.datas... | 286 |
575 | <reponame>iridium-browser/iridium-browser
// 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_CHROMEOS_PLATFORM_KEYS_KEY_PERMISSIONS_MOCK_KEY_PERMISSIONS_MANAGER_H_
#define CHROME_BRO... | 734 |
3,301 | <reponame>okjay/Alink
package com.alibaba.alink.operator.batch.dataproc.vector;
import org.apache.flink.ml.api.misc.param.Params;
import com.alibaba.alink.operator.batch.utils.MapBatchOp;
import com.alibaba.alink.operator.common.dataproc.vector.VectorSizeHintMapper;
import com.alibaba.alink.params.dataproc.vector.Vec... | 338 |
303 | /* Copyright (C) 2005-2011 <NAME> */
package com.lightcrafts.image.export;
import com.lightcrafts.utils.xml.XMLException;
import com.lightcrafts.utils.xml.XmlNode;
import java.io.IOException;
/**
* An <code>IntegerExportOption</code> is-an {@link ImageExportOption} for
* storing an option that has an integer valu... | 1,252 |
6,931 | <reponame>EkremBayar/bayar
import numpy as np
from statsmodels.duration.hazard_regression import PHReg
def _kernel_cumincidence(time, status, exog, kfunc, freq_weights,
dimred=True):
"""
Calculates cumulative incidence functions using kernels.
Parameters
----------
time :... | 2,948 |
301 | <filename>src/Extension/StrToBase64.c<gh_stars>100-1000
#include <Windows.h>
#include <assert.h>
#include "Externals.h"
#include "StrToBase64.h"
#include "StringRecoding.h"
extern StringSource ss = { 0 };
extern RecodingAlgorithm ra = { 0 };
static const unsigned char base64_table[65] =
"ABCDEFGHIJKLMNOPQRSTU... | 2,554 |
740 | #ifndef VG_HAPLOTYPE_INDEXER_HPP_INCLUDED
#define VG_HAPLOTYPE_INDEXER_HPP_INCLUDED
/**
* \file haplotype_indexer.hpp: defines how to construct GBWT indexes and VCF parses.
*/
#include <string>
#include <utility>
#include <map>
#include <memory>
#include <unordered_set>
#include <vector>
#include <gbwt/gbwt.h>
#in... | 2,183 |
310 | <gh_stars>100-1000
{
"name": "Foursquare",
"description": "A location service.",
"url": "https://foursquare.com/"
} | 48 |
1,144 | <reponame>dram/metasfresh
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
/** Generated Model for R_RequestType
* @author Adempiere (generated)
*/
@SuppressWarnings("javadoc")
public class X_R_RequestType extends org.compiere.model.PO impl... | 4,367 |
355 | <filename>tests/test_utils/test_misc.py<gh_stars>100-1000
# Copyright (c) OpenMMLab. All rights reserved.
import os.path as osp
import tempfile
import pytest
import torch
from mmselfsup.utils.misc import find_latest_checkpoint, tensor2imgs
def test_tensor2imgs():
with pytest.raises(AssertionError):
tens... | 845 |
679 | <reponame>Grosskopf/openoffice<gh_stars>100-1000
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyrig... | 2,682 |
2,151 | // Copyright 2015 The Crashpad 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
//
// Unless required by ... | 781 |
2,098 | <filename>src/dep/libnu/utf8.c
#include "utf8.h"
#ifdef NU_WITH_UTF8_READER
#ifdef NU_WITH_VALIDATION
int nu_utf8_validread(const char *encoded, size_t max_len) {
int len = utf8_validread_basic(encoded, max_len);
if (len <= 0) {
return 0;
}
/* Unicode core spec, D92, Table 3-7
*/
switch (len) {
/* case 1... | 905 |
701 | /*
-----------------------------------------------------------------------------
This source file is part of OGRE-Next
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Tor<NAME> Ltd
Permission is hereby granted, free of charge, to any person obtai... | 1,577 |
5,766 | /* automatically generated by configure */
/* edit configure.in to change version number */
#define HPDF_MAJOR_VERSION 2
#define HPDF_MINOR_VERSION 3
#define HPDF_BUGFIX_VERSION 0
#define HPDF_EXTRA_VERSION "RC2"
#define HPDF_VERSION_TEXT "2.3.0RC2"
#define HPDF_VERSION_ID 20300
| 95 |
463 | <reponame>ciskoinch8/vimrc
# pylint: disable=missing-docstring,too-few-public-methods,import-error
from UNINFERABLE import ImportedMetaclass, ImportedMetaclass2
class Meta(type):
pass
class Class(metaclass=Meta):
pass
def func_scope():
class Meta2(type):
pass
class Class2(metaclass=Meta2)... | 370 |
962 | <gh_stars>100-1000
/* this file is requred to build application library, armar.exe can't build
* libraries without at least one object input file.
*/
| 41 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using na... | 504 |
672 | /*
* Copyright 1996 Massachusetts Institute of Technology
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
* granted, provided that both the above copyright notice and this
* permission notice appear in all copies, that both the ab... | 1,123 |
679 | /**************************************************************
*
* 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 y... | 4,539 |
23,220 | <reponame>yuanweikang2020/canal
package com.alibaba.otter.canal.admin.service;
import java.util.List;
import com.alibaba.otter.canal.admin.model.NodeServer;
import com.alibaba.otter.canal.admin.model.Pager;
public interface NodeServerService {
void save(NodeServer nodeServer);
NodeServer detail(Long id);
... | 223 |
3,788 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#pragma once
#include "NavigationViewTemplateSettings.g.h"
#include "NavigationViewTemplateSettings.properties.h"
class NavigationViewTempl... | 139 |
2,151 | <reponame>zipated/src
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/platform/bindings/script_wrappable_visitor.h"
#include "third_party/blink/renderer/platform/bi... | 324 |
4,653 | #include "opencv_modules.h"
#ifdef HAVE_OPENCV_FEATURES2D
#include "KAZEDetector.h"
Nan::Persistent<v8::FunctionTemplate> KAZEDetector::constructor;
NAN_MODULE_INIT(KAZEDetector::Init) {
v8::Local<v8::FunctionTemplate> ctor = Nan::New<v8::FunctionTemplate>(KAZEDetector::New);
v8::Local<v8::ObjectTemplate> instanc... | 479 |
3,269 | <reponame>Sourav692/FAANG-Interview-Preparation
# Time: O(n + l)
# Space: O(h + l)
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
sel... | 1,280 |
5,250 | /* 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
* distributed... | 795 |
713 | <reponame>pferraro/infinispan<filename>server/runtime/src/main/java/org/infinispan/server/configuration/security/LdapAttributeConfigurationBuilder.java
package org.infinispan.server.configuration.security;
import static org.infinispan.server.configuration.security.LdapAttributeConfiguration.EXTRACT_RDN;
import static ... | 996 |
2,151 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/dbus/services/virtual_file_request_service_provider.h"
#include <utility>
#include "base/bind.h"
#include "dbus/message.h"
#include "... | 1,230 |
690 | package com.artemis.link;
import com.artemis.utils.reflect.ClassReflection;
import com.artemis.utils.reflect.ReflectionException;
final class MutatorUtil {
private MutatorUtil() {}
static <T> T getGeneratedMutator(LinkSite linkSite) {
Class[] possibleMutators = linkSite.field.getDeclaringClass().getDeclaredClass... | 261 |
533 | <reponame>baajur/Anakin
/* Copyright (c) 2018 Anakin Authors, 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
... | 1,703 |
713 | package org.infinispan.remoting.transport.jgroups;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import org.jgroups.Address;
import org.jgroups.util.ExtendedUUID;
import org.jgroups.util.NameCache;
/**
* Cache JGroupsAddress instances
*
* @author <NAME>
* @since 7.0
*... | 527 |
7,113 | <reponame>qixiaobo/otter
/*
* Copyright (C) 2010-2101 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
... | 425 |
1,118 | /**
* The MIT License
*
* Copyright for portions of unirest-java are held by Kong Inc (c) 2013.
*
* 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
* with... | 1,017 |
743 | {"actions":[],"body":[{"items":[{"choices":[{"title":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. End.","value":"0"},{"title":"Lo... | 229 |
617 | <filename>test/comprehensive/host/testbasic.cpp
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#include "../edltestutils.h"
#include <openenclave/host.h>
#include <openenclave/internal/tests.h>
#include "all_u.h"
void test_basic_edl_ecalls(oe_enclave_t* enclave)
{
OE_TEST(
... | 5,313 |
837 | package me.saket.dank.ui.preferences.events;
import me.saket.dank.ui.preferences.PreferenceButtonClickHandler;
public interface UserPreferenceClickListener {
void onClick(PreferenceButtonClickHandler clickHandler, UserPreferenceButtonClickEvent event);
}
| 77 |
1,357 | //
// Copyright (c) 2008-present, Meitu, 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.
//
// Created on: 20/08/2018
// Created by: Huni
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
extern NSString *cons... | 167 |
3,976 | from PIL import Image, ImageDraw, ImageFont
def add_num_to_img(image_path, sign="42"):
im = Image.open(image_path)
width, height = im.size
draw = ImageDraw.Draw(im)
font = ImageFont.truetype("arial.ttf", min(width//6, height//6))
draw.text((width*0.75, height*0.075), sign, font=font, fill=(255,33,... | 235 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"<NAME>","circ":"2ème circonscription","dpt":"Ille-et-Vilaine","inscrits":2932,"abs":1321,"votants":1611,"blancs":17,"nuls":10,"exp":1584,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":696},{"nuance":"FI","nom":"<NAME>","voix":223},{"nuance":"LR","nom":"<NAME>","voix":1... | 391 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.