max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
778 | <reponame>lkusch/Kratos
// $Author: <NAME> $
// System includes
#include <string>
#include <iostream>
#include <stdlib.h>
// External includes
// Project includes
#include "analytic_rigid_body_element.h"
namespace Kratos {
} // namespace Kratos.
| 94 |
5,169 | {
"name": "IQEnginesSDK",
"version": "1.4.1",
"summary": "iOS IQ Engines SDK.",
"homepage": "http://www.iqengines.com",
"license": {
"type": "MIT",
"file": "license_local.txt"
},
"authors": {
"IQ Engines": "<EMAIL>"
},
"source": {
"git": "https://github.com/iqengines/ios-sdk.git",
... | 400 |
319 | <reponame>Celebrate-future/openimaj
/**
*
*/
package org.openimaj.hardware.serial;
import java.util.EventListener;
/**
* An event listener for objects that wish to be informed
* of data arriving on a serial port.
*
* @author <NAME> (<EMAIL>)
*
* @created 12 Jul 2011
*/
public interface SerialDataListe... | 164 |
393 | package pl.otros.logview.store.async;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.ListeningExecutorService;
import pl.otros.logview.api.model.LogData;
import pl.otros.logview.api.model.LogDataStore;
import pl.otros.logview.api.model.MarkerColors;
import pl.otros.... | 1,653 |
4,538 | <reponame>wanguojian/AliOS-Things
#ifndef __NET_MUTEX_H__
#define __NET_MUTEX_H__
#include "net_defs.h"
#include "cmsis_os.h"
#include "net_debug.h"
struct net_mutex{
osMutexId mutex_id;
#if (osCMSIS >= 0x20000U)
osMutexAttr_t mutex_attr;
#else
uint32_t os_mutex_cb[3];
#endif
};
typedef struct net_mutex ... | 1,661 |
1,374 | <reponame>norzak/jsweet
package def.dom;
public class MSHTMLWebViewElement extends HTMLElement {
public java.lang.Boolean canGoBack;
public java.lang.Boolean canGoForward;
public java.lang.Boolean containsFullScreenElement;
public java.lang.String documentTitle;
public double height;
public MSW... | 455 |
1,474 | """
@author: <NAME>
@contact: <EMAIL>
"""
from .mixstyle import MixStyle
from common.vision.models.reid.resnet import ReidResNet
from common.vision.models.resnet import ResNet, load_state_dict_from_url, model_urls, BasicBlock, Bottleneck
__all__ = ['resnet18', 'resnet34', 'resnet50', 'resnet101']
def _resnet_with_mi... | 2,170 |
1,355 | <filename>include/jet/detail/cg-inl.h
// Copyright (c) 2018 <NAME>
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#ifndef INCLUDE_JET_DETAIL_CG_INL_H_
#define INCLUDE_JET_DETAIL_CG_IN... | 1,500 |
488 | #ifndef CODETHORN_LANGUAGE_RESTRICTOR_H
#define CODETHORN_LANGUAGE_RESTRICTOR_H
#include "LanguageRestrictor.h"
#include "LanguageRestrictorCollection.h"
namespace CodeThorn {
class CodeThornLanguageRestrictor : public LanguageRestrictorCppSubset1 {
public:
void initialize();
};
}
#endif
| 114 |
607 | package com.sandwich.koan.result;
import java.util.Collections;
import java.util.List;
import com.sandwich.koan.KoanMethod;
import com.sandwich.util.Builder;
public class KoanSuiteResult {
private final KoanResultModel state;
static class KoanResultModel {
String level;
int numberPassing = -1;
int totalNum... | 1,102 |
777 | // 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 "core/animation/SampledEffect.h"
namespace blink {
SampledEffect::SampledEffect(KeyframeEffectReadOnly* effect)
: m_effect(effect),
m... | 432 |
1,056 | <gh_stars>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. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 972 |
324 | <reponame>tormath1/jclouds
/*
* 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
... | 779 |
852 | import FWCore.ParameterSet.Config as cms
from DQM.SiPixelMonitorClient.SiPixelMuonHLT_cfi import *
hltHighLevelSiPixel = cms.EDFilter("HLTHighLevel",
TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
HLTPaths = cms.vstring('HLT_L1Mu[^_]*$',
'HLT_L2Mu[^_]*$',
'HLT_Mu... | 338 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-9798-53mw-wrx7/GHSA-9798-53mw-wrx7.json
{
"schema_version": "1.2.0",
"id": "GHSA-9798-53mw-wrx7",
"modified": "2022-05-13T01:31:23Z",
"published": "2022-05-13T01:31:23Z",
"aliases": [
"CVE-2019-1716"
],
"details": "A vulnerability in the web-based managemen... | 656 |
412 | int main()
{
__builtin_va_end(5);
return 0;
}
| 25 |
2,177 | #ifdef HAVE_SQLITE3_BACKUP_INIT
#include <sqlite3_ruby.h>
#define REQUIRE_OPEN_BACKUP(_ctxt) \
if(!_ctxt->p) \
rb_raise(rb_path2class("SQLite3::Exception"), "cannot use a closed backup");
VALUE cSqlite3Backup;
static void deallocate(void * ctx)
{
sqlite3BackupRubyPtr c = (sqlite3BackupRubyPtr)ctx;
xfree(c... | 1,767 |
1,200 | package com.didi.carrera.console.service;
import com.didi.carrera.console.dao.model.TopicConf;
import com.didi.carrera.console.dao.model.custom.CustomTopicConf;
import java.util.List;
public interface TopicConfService {
List<CustomTopicConf> findByTopicId(List<Long> topicIds);
List<TopicConf> findByTopicI... | 293 |
14,668 | <gh_stars>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.
#include "components/flags_ui/flags_ui_pref_names.h"
namespace flags_ui {
namespace prefs {
// List of names of the enabled labs experim... | 253 |
2,111 | <filename>algorithms/src/LocalizationAndMapping/registration_localization/fast_gicp/thirdparty/nvbio/nvBowtie/bowtie2/cuda/input_thread.h<gh_stars>1000+
/*
* nvbio
* Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificat... | 2,165 |
731 | package com.webank.weevent.broker.protocol.mqtt.command;
import java.util.Optional;
import com.webank.weevent.broker.protocol.mqtt.ProtocolProcess;
import com.webank.weevent.broker.protocol.mqtt.store.SessionStore;
import com.webank.weevent.client.BrokerException;
import com.webank.weevent.client.ErrorCode;
import i... | 973 |
709 | package com.olacabs.jackhammer.handler;
import com.olacabs.jackhammer.enums.Handler;
import com.olacabs.jackhammer.exceptions.AbstractException;
import com.olacabs.jackhammer.exceptions.HandlerNotFoundException;
import com.olacabs.jackhammer.models.DefaultRole;
import lombok.extern.slf4j.Slf4j;
import javax.ws.rs.cor... | 888 |
14,668 | <filename>components/autofill/core/browser/address_rewriter.h
// 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_AUTOFILL_CORE_BROWSER_ADDRESS_REWRITER_H_
#define COMPONENTS_AUTOFILL_COR... | 411 |
1,227 | <gh_stars>1000+
/*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclip... | 2,674 |
718 | <reponame>SoccerField24x7/tomighty
package org.tomighty.ui.menu;
import com.google.inject.Injector;
import org.tomighty.ui.options.OptionsDialog;
import javax.inject.Inject;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class ShowOptions implements ActionListener {
@Inject
... | 185 |
432 | <filename>extra/cloud-lsmt-aggregation/src/test/java/io/activej/aggregation/ConsolidationChunkSelectionTest.java
package io.activej.aggregation;
import io.activej.aggregation.ot.AggregationDiff;
import io.activej.aggregation.ot.AggregationStructure;
import org.junit.Test;
import java.util.*;
import static io.activej... | 2,254 |
1,531 | /**
* Copyright 2012-2015 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 945 |
876 | #ifndef _MANIF_MANIF_IMPL_ASSIGNMENT_ASSERT_H_
#define _MANIF_MANIF_IMPL_ASSIGNMENT_ASSERT_H_
namespace manif {
namespace internal {
template <typename Derived>
struct AssignmentEvaluatorImpl
{
template <typename T> static void run_impl(const T&) { }
};
template <typename Derived>
struct AssignmentEvaluator : Assi... | 215 |
1,131 | # -*- coding: utf-8 -*-
# This file is part of Viper - https://github.com/viper-framework/viper
# See the file 'LICENSE' for copying permission.
import os
import fnmatch
try:
from scandir import walk
except ImportError:
from os import walk
from viper.core.ui.cmd.open import Open
from viper.common.abstracts im... | 3,291 |
481 | <filename>tools/zunitc/src/zuc_types.h
/*
* Copyright © 2015 Samsung Electronics Co., Ltd
*
* 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 limi... | 682 |
1,338 | <gh_stars>1000+
#include "RPCPendingCalls.h"
#include <string.h>
extern bool conf_no_check_ip_xid;
extern void
PendingCallInit(struct PendingCall *call)
{
call->buffer=NULL;
}
extern void
PendingCallDestroy(struct PendingCall *call)
{
free (call->buffer);
}
extern void
RPCPendingCallsInit(struct RPCPendingCall... | 1,531 |
432 | /* symbols.h -
Copyright (C) 1987-2016 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
GAS is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your... | 2,974 |
1,056 | <reponame>timfel/netbeans<gh_stars>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. The ASF licenses this file
* to you under the Apache Lice... | 2,669 |
2,171 | <gh_stars>1000+
#ifndef STAN_MODEL_MODEL_FUNCTIONAL_HPP
#define STAN_MODEL_MODEL_FUNCTIONAL_HPP
#include <stan/math/prim/fun/Eigen.hpp>
#include <iostream>
namespace stan {
namespace model {
// Interface for automatic differentiation of models
template <class M>
struct model_functional {
const M& model;
std::ost... | 278 |
1,368 | from django.contrib import admin
from .forms import TForm
from .models import TModel
class SecureFormMixin(object):
def get_form(self, request, obj=None, **kwargs):
form = super(SecureFormMixin, self).get_form(
request, obj=obj, **kwargs)
# Create a copy of the class so that we can h... | 333 |
518 | <reponame>rajkumarpalani/PayPal-Java-SDK
package com.paypal.api.payments;
import com.paypal.base.rest.PayPalModel;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
@Getter @Setter
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public cla... | 1,071 |
968 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package com.mycompany.mapper;
import java.util.Arrays;
public class Main {
private Main() {
}
public static void main( String[] args ) {
Source s =... | 245 |
372 | <filename>clients/google-api-services-content/v2.1/1.31.0/com/google/api/services/content/model/OrderreturnsProcessRequest.java<gh_stars>100-1000
/*
* 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... | 1,394 |
351 | <reponame>TheSenPie/talos
package com.talosvfx.talos.editor.widgets.ui.common;
import com.badlogic.gdx.scenes.scene2d.ui.Button;
import com.badlogic.gdx.scenes.scene2d.ui.Cell;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.scenes.scene2d.utils.... | 542 |
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... | 1,525 |
310 | package org.seasar.doma.it.domain;
import org.seasar.doma.Domain;
@Domain(valueType = int.class)
public class PrimitiveHeight {
private final int value;
public PrimitiveHeight(int value) {
this.value = value;
}
public int getValue() {
return value;
}
}
| 97 |
1,895 | <reponame>NeetMitotsu/mybatis-plus-samples
package com.baomidou.mybatisplus.samples.reduce.springmvc;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.samples.reduce.springmvc.entity.City;
import com.baomidou.myba... | 1,302 |
1,654 | # -*- coding: utf-8 -*-
import os
import pytest
import matplotlib.pyplot as plt
from lifelines import NelsonAalenFitter, KaplanMeierFitter
from lifelines.generate_datasets import exponential_survival_data
def test_exponential_data_sets_correct_censor():
N = 20000
censorship = 0.2
T, C = exponential_surv... | 410 |
831 | <filename>spring-cloud-stream-test-support/src/main/java/org/springframework/cloud/stream/test/matcher/MessageQueueMatcher.java
/*
* Copyright 2015-2017 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 Licen... | 1,633 |
786 | <gh_stars>100-1000
package org.cellocad.adaptors.ucfwriters.ucf_writers_Eco3C3G3T3;
import org.cellocad.MIT.dnacompiler.Util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
public class collection_writer_gate_parts extends collection_writer {
@Overri... | 3,396 |
732 | <reponame>gitter-badger/afdko
"[-t1 options: defaults -0, -l, -E, -S, +T, -V, +q, -w, -e 4, -lf]\n"
"-0 host font type\n"
"-1 base incremental download font\n"
"-2 addition incremental download font\n"
"-b binary encoding\n"
"-l ASCII encoding\n"
"-c ASCII85 encoding for increm... | 1,191 |
1,305 | <gh_stars>1000+
/*
* Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package javax.print.attribute;
import java.io.Serializable;
import java.util.Locale;
... | 1,413 |
2,542 | <reponame>vishnuk007/service-fabric
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// --------------------------------------------------------... | 4,520 |
515 | <filename>src/main/java/com/hivemq/client/internal/mqtt/message/disconnect/MqttDisconnect.java
/*
* Copyright 2018-present HiveMQ and the HiveMQ Community
*
* 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 o... | 1,717 |
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 (the
*... | 1,131 |
368 | <reponame>gta-chaos-mod/plugin-sdk
/*
Plugin-SDK (Grand Theft Auto Vice City) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#include "PluginBase.h"
class PLUGIN_API CAnimBlock {
public:
... | 177 |
553 | <reponame>endaye/c2d-NoOneDies<gh_stars>100-1000
package org.cocos2dx.plugin;
import org.json.JSONObject;
/**
* 对签名进行验签
*
*/
public class ResultChecker {
public static final int RESULT_INVALID_PARAM = 0;
public static final int RESULT_CHECK_SIGN_FAILED = 1;
public static final int RESULT_CHECK_SIG... | 1,232 |
5,823 | // 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 UI_ACCESSIBILITY_AX_RELATIVE_BOUNDS_H_
#define UI_ACCESSIBILITY_AX_RELATIVE_BOUNDS_H_
#include <cstdint>
#include <memory>
#include <ostream>
#i... | 711 |
606 | <filename>src/net/java/otr4j/session/SessionStatus.java
/*
* otr4j, the open source java otr library.
*
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.otr4j.session;
/** @author <NAME> */
public enum SessionStatus {
PLAINTEXT, ENCRYPTED, FINISHED
}
| 108 |
815 | /*=========================================================================
Program: ParaView
Module: vtkPVDataRepresentation.h
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY W... | 2,819 |
37,508 | <gh_stars>1000+
/*
* 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... | 1,999 |
911 | from rest_framework import serializers
from .models import Page
class PageSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Page
fields = (
'title',
'path',
'keywords',
'description',
'content',
'is_pub... | 196 |
1,144 | <gh_stars>1000+
package de.metas.ui.web.document.filter.sql;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import javax.annotation.Nullable;
import org.adempiere.ad.dao.ISqlQueryFilter;
import org.compiere.util.DB;
import org.compiere.util.Env;
import ... | 1,431 |
448 | <filename>DSA/STL/max&min.cpp
#include <bits/stdc++.h>
using namespace std;
int main() {
int a=10,b=4;
cout<<"maximum="<<max(a,b)<<endl;
cout<<"minimum="<<min(a,b)<<endl;
}
| 89 |
1,958 | <reponame>stephenkid/LeetCode-Sol<filename>C++/019_Remove_Nth_Node_From_End_of_List.cpp
/**
* Given a linked list, remove the nth node from the end of list and return its head.
* For example,
* Given linked list: 1->2->3->4->5, and n = 2.
* After removing the second node from the end, the linked list becomes 1-... | 530 |
386 | /*********************************************************************************
* *
* The MIT License (MIT) *
* ... | 1,845 |
13,566 | <gh_stars>1000+
package com.external.helpers;
import com.appsmith.external.models.ActionConfiguration;
import com.appsmith.external.models.ApiKeyAuth;
import com.appsmith.external.models.DatasourceConfiguration;
import com.appsmith.external.models.OAuth2;
import com.appsmith.external.models.Property;
import org.apache... | 7,484 |
700 | <reponame>Transfusion/site
# Generated by Django 2.1 on 2018-09-01 19:54
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0003_offtopicchannelname'),
]
operations = [
migrations.CreateModel(
... | 485 |
2,350 | <reponame>SIRHAMY/UnrealEnginePython
#pragma once
#include "UnrealEnginePython.h"
#include "UEPySCompoundWidget.h"
extern PyTypeObject ue_PySPythonShelfType;
typedef struct {
ue_PySCompoundWidget s_compound_widget;
/* Type-specific fields go here. */
} ue_PySPythonShelf;
void ue_python_init_spython_shelf(PyObjec... | 130 |
316 | <reponame>odidev/python-zstandard
import io
import struct
import unittest
import zstandard as zstd
from .common import (
CustomBytesIO,
)
class TestDecompressor_copy_stream(unittest.TestCase):
def test_no_read(self):
source = object()
dest = io.BytesIO()
dctx = zstd.ZstdDecompressor... | 1,208 |
839 | <reponame>AnEmortalKid/cxf
/**
* 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.... | 1,697 |
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... | 3,456 |
521 | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | 6,891 |
13,648 | #include "libm.h"
/* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */
double atanh(double x)
{
union {double f; uint64_t i;} u = {.f = x};
unsigned e = u.i >> 52 & 0x7ff;
unsigned s = u.i >> 63;
double_t y;
/* |x| */
u.i &= (uint64_t)-1/2;
y = u.f;
if (e < 0x3ff - 1) {
if (e < 0x3... | 333 |
16,989 | <reponame>AyuMol758/bazel
/*
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
* Copyright (c) 2002-2019 Guardsquare NV
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publis... | 3,801 |
1,233 | /*
* Copyright 2019 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 2,062 |
593 | package org.ananas.runner.kernel.model;
import java.util.Arrays;
import java.util.HashMap;
import java.util.UUID;
import org.junit.Assert;
import org.junit.Test;
public class StepTest {
@Test
public void deepEquals() {
String id = UUID.randomUUID().toString();
Step one = getStep(id, "B");
Step two ... | 632 |
432 | /*
* Copyright (C) 2020 ActiveJ 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... | 566 |
2,151 | <filename>tests/ChecksumTest.cpp
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkChecksum.h"
#include "SkOpts.h"
#include "SkRandom.h"
#include "SkTypes.h"
#include "Test.h"
DEF_TEST(Checksum, r) {
// Put 1... | 629 |
4,538 | <reponame>ekmixon/AliOS-Things
# * coding: UTF8 *
"""
该模块实现相应CPython模块的子集,如下所示。
该模块实现正则表达式操作。支持的正则表达式语法是CPython re 模块的一个子集
``.``
匹配任何字符
``[]``
匹配字符集。支持单个字符和范围
``^``
匹配开头
``$``
匹配结尾
函数
------------------------------
"""
def compile(regex_str):
"""
编译正则表达式,返回 正则表达式对象 对象
使用示例::
... | 642 |
651 | <reponame>Erhannis/spongycastle<filename>core/src/main/java/org/spongycastle/asn1/cryptopro/GostR3410TransportParameters.java
package org.spongycastle.asn1.cryptopro;
import org.spongycastle.asn1.ASN1EncodableVector;
import org.spongycastle.asn1.ASN1Object;
import org.spongycastle.asn1.ASN1ObjectIdentifier;
import org... | 1,564 |
319 | package eu.f3rog.blade.sample.parcel;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.List;
import java.util.Map;
/**
* Class {@link Data3}
*
* @author FrantisekGazo
* @version 2016-04-07
*/
@blade.Parcel
public class Data3 implements Parcelable {
GenericData<String> g;
List<St... | 580 |
335 | {
"word": "Kiln",
"definitions": [
"A furnace or oven for burning, baking, or drying, especially one for calcining lime or firing pottery."
],
"parts-of-speech": "Noun"
} | 76 |
448 | <reponame>miniksa/BuildXL
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma once
#include "buildXL_mem.h"
#include "DebuggingHelpers.h"
// -------------------------------------------------------------... | 901 |
701 | package top.easelink.lcg;
import java.util.ArrayList;
import java.util.List;
public class Test {
public class A {
}
public class B extends A{
}
public static void fill(List<? super A> dest, List<? extends A> test) {
}
public void test() {
List<Object> a = new ArrayList<Obje... | 195 |
2,542 | <filename>src/prod/src/Reliability/Replication/Constants.h
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ---------------------------------... | 731 |
945 | <gh_stars>100-1000
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 <NAME>
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed W... | 787 |
316 | #ifndef HAVE_LLVM
#error "This code needs LLVM enabled"
#endif
#include <algorithm>
#include <cassert>
#include <cinttypes>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <llvm/IR/Instructions.h>
#include <llvm... | 15,268 |
308 | <reponame>wvrfish/appcenter-sdk-apple<gh_stars>100-1000
{
"bundle_identifier": "com.microsoft.appcenter.xamarin.forms.puppet",
"distribution_group_id": "1379041b-0de4-471b-a46b-04b4f754684f",
"device_family": "iPhone/iPod/iPad",
"status": "available",
"is_latest": true,
"app_name": "Unit test",
"install_u... | 511 |
5,937 | <reponame>txlos/wpf
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//+-----------------------------------------------------------------------------
//
//
// Des... | 649 |
572 | <filename>codigo/Live115/exemplo_2.py
from functools import singledispatch
class Amarelo:
...
class Verde:
...
class Roxo:
...
@singledispatch
def paul(evento):
print(f'Paul se perdeu com {evento}')
@paul.register
def mandar_para_centauro(evento: Roxo):
print('Centauro recebeu a cor roxa')
@p... | 226 |
429 | /*
* vargfp.h
*
*/
#ifndef MATH_GFPVAR_H_
#define MATH_GFPVAR_H_
#include "modp.h"
#include "Zp_Data.h"
#include "Setup.h"
#include "Square.h"
class FFT_Data;
template<class T> class BitVec_;
template<int X, int L>
class gfpvar_
{
typedef modp_<L> modp_type;
static Zp_Data ZpD;
modp_type a;
public... | 1,878 |
831 | /*
* Copyright 2015-2019 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
*
* Unless required by a... | 360 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 910 |
305 | <gh_stars>100-1000
// RUN: %clang_cc1 -x c -ffreestanding %s -triple=x86_64-apple-darwin -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECKC
// RUN: %clang_cc1 -x c++ -std=c++11 -ffreestanding %s -triple=x86_64-apple-darwin -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECKCPP
#include <x86intrin.h>
... | 685 |
3,967 | // Copyright (c) 2020, NVIDIA CORPORATION. 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 ... | 3,148 |
606 | from unittest import TestCase
from contextlib2 import ExitStack
from logbook import NullHandler
from nose_parameterized import parameterized
import numpy as np
import pandas as pd
from pandas.util.testing import assert_series_equal
from six import with_metaclass
from .core import tmp_asset_finder, make_simple_equity_... | 5,723 |
530 | <gh_stars>100-1000
package org.carlspring.strongbox.domain;
import org.carlspring.strongbox.data.domain.GenericEntity;
import java.io.Serializable;
/**
* @author carlspring
*/
public class ArtifactMetadata extends GenericEntity
implements Serializable
{
}
| 88 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 1,522 |
14,668 | <filename>chrome/browser/ash/lock_screen_apps/fake_lock_screen_profile_creator.h
// 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 CHROME_BROWSER_ASH_LOCK_SCREEN_APPS_FAKE_LOCK_SCREEN_PROFILE_CREA... | 511 |
1,909 | <reponame>state303/spring-batch
/*
* Copyright 2006-2018 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/LICENS... | 688 |
852 | <reponame>Purva-Chaudhari/cmssw
#!/usr/bin/env python3
"""
_HeavyIonsEra_Run2_HI_
Scenario supporting heavy ions collisions
"""
import os
import sys
from Configuration.DataProcessing.Reco import Reco
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Era_Run2_HI_cff import Run2_HI
from Configuration.... | 239 |
1,160 | <reponame>AnantTiwari-Naman/pyglet
import unittest
from ...base.data import PygletTestCase
try:
from pyglet.image.codecs import gdkpixbuf2
except ImportError:
gdkpixbuf2 = None
@unittest.skipIf(gdkpixbuf2 is None, 'GdkPixBuf not available')
class GdkPixBufTest(PygletTestCase):
def test_load_image(self):... | 1,222 |
1,373 | package com.o19s.es.ltr.stats.suppliers;
import com.o19s.es.ltr.feature.store.index.IndexFeatureStore;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.elasticsearch.action.admin.cluster.state.ClusterStateRequest;
import org.elasticsearch.action.search.MultiSearchRequestBu... | 2,703 |
2,215 | <gh_stars>1000+
#
# Copyright (c) 2022 salesforce.com, inc.
# All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
# For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
#
"""
Aggregation for hierarchical time series.
"""
from collections import OrderedDic... | 1,541 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.