max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,135 | /**
* example code for trends resources
*/
package twitter4j.examples.trends; | 23 |
880 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from collections import Counter
from textwrap import dedent
import libcst as cst
from libcst.testing.utils import data_provider, UnitTest
... | 713 |
1,695 | <gh_stars>1000+
///////////////////////////////////////////////////////////////////////////////////
/// OpenGL Mathematics (glm.g-truc.net)
///
/// Copyright (c) 2005 - 2015 G-Truc Creation (www.g-truc.net)
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associa... | 4,763 |
335 | {
"word": "Reek",
"definitions": [
"Smell strongly and unpleasantly; stink.",
"Be suggestive of something unpleasant or undesirable.",
"Give off smoke, steam, or fumes."
],
"parts-of-speech": "Verb"
} | 98 |
629 | /* Copyright (c) 2017, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
*
* All rights reserved.
*
* The Astrobee platform is licensed under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with... | 1,979 |
513 | package com.zmops.zeus.iot.server.core.analysis.manual.trends;
/**
* @author nantian created at 2021/9/6 17:32
*/
public class UIntTrends {
}
| 58 |
4,772 | package example.service;
import example.repo.Customer468Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer468Service {
public Customer468Service(Customer468Repository repo) {}
}
| 60 |
785 | /*
* Copyright © 2018 Apple Inc. and the ServiceTalk 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 1,030 |
488 | <filename>src/midend/programAnalysis/annotationLanguageParser/report.h
#include <featureTests.h>
#ifdef ROSE_ENABLE_SOURCE_ANALYSIS
#ifndef BDWY_REPORT_H
#define BDWY_REPORT_H
typedef std::list< reportAnn * > report_list;
typedef report_list::iterator report_list_p;
typedef report_list::const_iterator report_list_cp;... | 2,115 |
4,054 | <reponame>Anlon-Burke/vespa<gh_stars>1000+
/*
* Line based variant of Apache commons-text StringComparator
* https://github.com/apache/commons-text/blob/3b1a0a5a47ee9fa2b36f99ca28e2e1d367a10a11/src/main/java/org/apache/commons/text/diff/StringsComparator.java
*/
/*
* Licensed to the Apache Software Foundation (ASF... | 4,562 |
1,291 | # 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
# distribu... | 3,773 |
579 | #include "rpc.h"
namespace erpc {
template <class TTr>
void Rpc<TTr>::kick_req_st(SSlot *sslot) {
assert(in_dispatch());
auto &credits = sslot->session_->client_info_.credits_;
assert(credits > 0); // Precondition
auto &ci = sslot->client_info_;
size_t sending =
(std::min)(credits, sslot->tx_msgbuf_... | 713 |
424 | <reponame>fasiha/halflife-regression
"""
Copyright (c) 2016 Duolingo Inc. MIT Licence.
Python script that implements spaced repetition models from Settles & Meeder (2016).
Recommended to run with pypy for efficiency. See README.
"""
import argparse
import csv
import gzip
import math
import os
import random
import sys... | 5,819 |
2,843 | package com.yc.businessinterface;
/**
* <pre>
* @author yangchong
* email : <EMAIL>
* time : 2020/6/20
* desc : 用户相关操作接口
* revise:
* </pre>
*/
public interface IUserManager{
/**
* 获取用户token
* @return 返回token
*/
String getToken();
/**
* ... | 207 |
639 | <filename>Example/Pods/HZExtend/HZExtend/Classes/Foundation/NSString+HZExtend.h
//
// NSString+HZExtend.h
// ZHFramework
//
// Created by xzh. on 15/7/20.
// Copyright (c) 2015年 xzh. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "NSObject+HZExtend.h"
NS_ASSUME_NONNULL_BEGIN
@interface NSStrin... | 371 |
575 | <filename>chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/DetachedResourceRequestTest.java
// 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.
package org.chromium.chrome.browser.customt... | 13,773 |
3,212 | <filename>nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/protocol/FlowFileTransaction.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for addi... | 768 |
6,270 | [
{
"type": "feature",
"category": "APIGateway",
"description": "1. Extended GetDocumentationParts operation to support retrieving documentation parts resources without contents. 2. Added hosted zone ID in the custom domain response."
},
{
"type": "feature",
"categor... | 399 |
560 | /*
* Copyright (c) 2018 <NAME> <<EMAIL>>
* All Rights Reserved.
*/
package me.zhanghai.android.douya.functional.throwing;
import java.util.Objects;
import me.zhanghai.android.douya.functional.FunctionalException;
import me.zhanghai.android.douya.functional.extension.TriFunction;
@FunctionalInterface
public inter... | 349 |
763 | <filename>projects/batfish-common-protocol/src/test/java/org/batfish/common/matchers/Layer2TopologyMatchersImpl.java<gh_stars>100-1000
package org.batfish.common.matchers;
import javax.annotation.Nonnull;
import org.batfish.common.topology.Layer2Node;
import org.batfish.common.topology.Layer2Topology;
import org.hamcr... | 616 |
5,169 | {
"name": "RESTMagic",
"version": "0.0.3",
"summary": "RESTMagic is a simple framework for building RESTFul client applications.",
"description": " RESTmagic is a framework for that framework you already deployed, your RESTFUL api. Light or no configuration will tell the framework how your resources are organi... | 362 |
639 | <filename>src/nnfusion/core/kernels/cuda_gpu/kernels/reverse.cpp
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "reverse.hpp"
#include "nnfusion/core/operators/generic_op/generic_op.hpp"
using namespace nnfusion;
using namespace nnfusion::kernels;
cuda::Reverse::Reverse(shared_pt... | 1,692 |
1,405 | <filename>sample4/recompiled_java/sources/com/lenovo/performancecenter/coreui/util/RootPassage.java
package com.lenovo.performancecenter.coreui.util;
import android.app.ActivityManager;
import android.content.Context;
import android.os.Build;
import android.os.Handler;
import android.util.Log;
import com.lenovo.perfor... | 4,887 |
6,526 | /*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... | 841 |
3,428 | {"id":"00295","group":"easy-ham-2","checksum":{"type":"MD5","value":"37087d1f5c2678b8152b397111456d3f"},"text":"From <EMAIL> Fri Aug 9 14:54:34 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy@<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMT... | 1,334 |
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 may ... | 1,255 |
803 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#ifndef _TCCONST_H
#define _TCCONST_H
enum IOTYPE
{
iotypeRead = 0,
iotypeWrite,
iotypeMax
};
// PLEASE DO NOT SHIFT IOFILE TYPES AROUND ... we're building tools to depend upon these
// reasons, so they need to be static.
enum ... | 4,324 |
2,553 | <filename>scripts/run_deeptrio_test.py<gh_stars>1000+
# Copyright 2019 Google LLC.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# thi... | 12,235 |
521 | /* $Id: tstSupVerify.cpp $ */
/** @file
* SUP Testcase - Test SUPR3HardenedVerifyPlugIn.
*/
/*
* Copyright (C) 2006-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 redistribute it and/or m... | 1,450 |
1,668 | package org.elixir_lang.psi;
import org.elixir_lang.psi.call.Call;
import org.elixir_lang.psi.call.MaybeExported;
import org.elixir_lang.psi.call.StubBased;
import org.elixir_lang.psi.call.arguments.star.NoParenthesesOneArgument;
import org.elixir_lang.psi.qualification.Unqualified;
import org.jetbrains.annotations.Co... | 253 |
8,890 | /*!
* Copyright (c) 2021 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifdef USE_CUDA_EXP
#ifndef LIGHTGBM_CUDA_COLUMN_DATA_HPP_
#define LIGHTGBM_CUDA_COLUMN_DATA_HPP_
#include <LightGBM/config.h>
#include <LightGBM/... | 2,140 |
399 | package org.cryptocoinpartners.bin;
import java.util.concurrent.Semaphore;
import org.cryptocoinpartners.report.Report;
import org.cryptocoinpartners.report.TableOutput;
import org.cryptocoinpartners.util.IoUtil;
import com.beust.jcommander.Parameter;
public abstract class ReportRunMode extends RunMode {
@Overr... | 368 |
506 | <reponame>Ashindustry007/competitive-programming
// https://www.hackerrank.com/challenges/merge-two-sorted-linked-lists
Node* MergeLists(Node *headA, Node* headB) {
if (headA == NULL && headB == NULL) return NULL;
if (headA == NULL) return headB;
if (headB == NULL) return headA;
if (headA->data < headB->data) {
h... | 174 |
522 | package algs.blog.multithread;
import java.util.Random;
import junit.framework.TestCase;
import algs.model.IMultiPoint;
import algs.blog.multithread.nearestNeighbor.bruteforce.MultiThreadedBruteForceNearestNeighbor;
import algs.model.nd.Hyperpoint;
import algs.model.problems.nearestNeighbor.BruteForceNeares... | 922 |
945 | <reponame>holtenko/iotdb<gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache Li... | 776 |
514 | <gh_stars>100-1000
/* Copyright (c) 2018-2019, Arm Limited and Contributors
*
* SPDX-License-Identifier: MIT
*
* 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, inclu... | 1,003 |
3,702 | <filename>src/yb/tools/fs_list-tool.cc
// 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, ... | 1,656 |
1,986 | #include <freertos/FreeRTOS.h>
#include <freertos/task.h>
extern void bt_task(void *ignore);
void app_main(void)
{
xTaskCreatePinnedToCore(&bt_task, "btTask", 2048, NULL, 5, NULL, 0);
}
| 81 |
678 | <reponame>bzxy/cydia
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/SportsWorkout.framework/SportsWorkout
*/
#import <SportsWorkout/SWRunWorkoutPreset.h>
@interface SWRunWorkoutPresetNoGoal : SWRunWorkoutPreset {
}
+ (id)newPresetGoalNone; // 0x87e1
- (void)_fi... | 187 |
872 | package com.github.glomadrian.mvpcleanarchitecture.ui.presenter;
import com.github.glomadrian.mvpcleanarchitecture.domain.model.MarvelCharacter;
import com.github.glomadrian.mvpcleanarchitecture.ui.view.ModelInfoView;
import com.github.glomadrian.mvpcleanarchitecture.ui.viewmodel.CharacterInfoViewModel;
/**
* @autho... | 415 |
678 | <filename>WeChat-Headers/NSMutableData-AppendUTF8.h
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSMutableData.h"
@interface NSMutableData (AppendUTF8)
- (void)appendUTF8Format:(id)arg1;
- (void)appendUTF8String:(id)arg1;
... | 134 |
22,481 | <reponame>andersop91/core
"""Basic checks for HomeKit button."""
from aiohomekit.model.characteristics import CharacteristicsTypes
from aiohomekit.model.services import ServicesTypes
from tests.components.homekit_controller.common import Helper, setup_test_component
def create_switch_with_setup_button(accessory):
... | 509 |
2,151 | <filename>third_party/blink/renderer/core/html/custom/v0_custom_element_registry.h
/*
* Copyright (C) 2012 Google Inc. 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... | 1,247 |
1,835 | <filename>specification-impl/src/main/java/cc/cc1234/client/curator/CuratorZookeeperConnection.java
package cc.cc1234.client.curator;
import cc.cc1234.specification.connection.ZookeeperConnection;
import cc.cc1234.specification.listener.ZookeeperNodeListener;
import cc.cc1234.specification.node.NodeMode;
import org.ap... | 1,438 |
599 | <gh_stars>100-1000
package com.jlmd.android.newfilmsmvp.api.moviedetails.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class BelongsToCollection {
@Expose private Integer id;
@Expose private String name;
@SerializedName("poster_path") @Expose privat... | 453 |
469 | <gh_stars>100-1000
/* Poping */
/* 1 bit */
#define Pop0 1
/* 2 bits */
#define Pop1 2
/* 3 bits */
#define PopI 8
/* 1 bit */
#define PopI8 64
/* 1 bit */
#define Pop8 128
/* 1 bit */
#define PopR4 256
/* 1 bit */
#define PopR8 512
/* 1 bit */
#define PopRef 1024
/* 1 bit */
#define VarPop 2048
/*... | 2,032 |
8,273 | <gh_stars>1000+
// Copyright 2010-2021 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | 3,634 |
574 | //-----------------------------------------------------------------------------
// NVIDIA(R) GVDB VOXELS
// Copyright 2016 NVIDIA Corporation
// SPDX-License-Identifier: Apache-2.0
//
// Version 1.0: <NAME>, 5/1/2017
// Version 1.1: <NAME>, 3/25/2018
//------------------------------------------------------------------... | 853 |
4,071 | <gh_stars>1000+
/* Copyright (C) 2016-2018 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 applicabl... | 685 |
1,073 | <gh_stars>1000+
RUN: llvm-dsymutil -y %p/dummy-debug-map.map -oso-prepend-path %p/../Inputs/scattered-reloc/ -f -o - | llvm-dwarfdump -debug-dump=info - | FileCheck %s
// See Inputs/scattered-reloc/scattered.s to see how this test
// actually works.
int bar = 42;
CHECK: DW_TAG_variable
CHECK-NOT: DW_TAG
CHECK: DW_AT... | 172 |
984 | <filename>generation/WinSDK/RecompiledIdlHeaders/shared/netcx/shared/1.0/net/mdltypes.h<gh_stars>100-1000
// Copyright (C) Microsoft Corporation. All rights reserved.
#pragma once
#pragma region Desktop Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
EXTERN_C_... | 329 |
5,355 | <filename>src/main/java/graphql/relay/PageInfo.java
package graphql.relay;
import graphql.PublicApi;
/**
* Represents pagination information in Relay about {@link graphql.relay.Edge edges} when used
* inside a {@link graphql.relay.Connection connection}
*
* See <a href="https://facebook.github.io/relay/graphql/co... | 362 |
1,558 | [
{
"name": "Blank",
"displayName": "Blank",
"summary": "Включена навигационная рамка и основные услуги и стили."
},
{
"name": "NavView",
"displayName": "Navigation Pane",
"summary": "Включает \"меню-гамбургер\" для перехода между страницами."
},
{
... | 356 |
14,668 | // 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 BASE_TRACE_EVENT_TRACE_EVENT_FILTER_TEST_UTILS_H_
#define BASE_TRACE_EVENT_TRACE_EVENT_FILTER_TEST_UTILS_H_
#include <memory>
#include <string>
... | 468 |
389 | <gh_stars>100-1000
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright 2020 Adobe
~
~ 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:... | 831 |
585 | /*
* 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 ... | 987 |
347 | """
Implementation of the line segment detection module.
"""
import math
import numpy as np
import torch
class LineSegmentDetectionModule(object):
""" Module extracting line segments from junctions and line heatmaps. """
def __init__(
self, detect_thresh, num_samples=64, sampling_method="local_max",
... | 11,949 |
14,668 | /*
* Copyright (C) 2013 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 846 |
648 | #ifndef _SCNUMS_X86_H
#define _SCNUMS_X86_H
/*
Derived from kernel syscall_32.tbl
cat linux/arch/x86/syscalls/syscall_32.tbl| \
egrep -v "^#"| \
sed 's|^\([0-9]\+\)\s\+\w\+\s\+\(\w\+\).*$|#define __NR_\2\t\t\t\1|g' \
> scnums-x86.h
cat linux/arch/x86/syscalls/syscall_32.tbl| \
egrep -v "^#"| \
sed 's|^\([0... | 10,526 |
316 | /**
* Copyright (c) 2010-2010 <NAME>
* email:<EMAIL>
*
* Report bugs and download new versions at http://code.google.com/p/fontbuilder
*
* This software is distributed under the MIT License.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated docum... | 593 |
2,151 | <filename>media/gpu/android/avda_shared_state.cc<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 "media/gpu/android/avda_shared_state.h"
#include "base/metrics/histogram_macros.... | 988 |
4,538 | /*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include "aos/hal/rtc.h"
#include "rx8130ce.h"
/**
* This function will initialize the on board CPU real time clock
*
*
* @param[in] rtc rtc device
*
* @return 0 : on success, EIO : if an error occurred with any step
*/
int32_t hal_rtc_init(rt... | 718 |
790 | #!/usr/bin/env python
import hashlib
import os
import pickle
import time
from functools import wraps
import flask.ext.login as flask_login
from flask import (
Flask, render_template, request, Response, flash, redirect, url_for)
from forms import (
loginForm, initialSetupForm, userForm, wifiForm, vpnPskForm,
... | 6,998 |
1,545 | <reponame>imilas/tsai<gh_stars>1000+
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/122_models.TabFusionTransformer.ipynb (unless otherwise specified).
__all__ = ['ifnone', 'Sequential', 'TabFusionBackbone', 'TabFusionTransformer', 'TSTabFusionTransformer']
# Cell
# This is a modified Pytorch implementation based on... | 7,074 |
4,772 | <reponame>fjacobs/spring-data-examples
package example.repo;
import example.model.Customer80;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer80Repository extends CrudRepository<Customer80, Long> {
List<Customer80> findByLastName(String lastName);
}
| 99 |
309 | # -*- coding: utf-8 -*-
"""
A short Python script
=====================
This demonstrates an example ``.py`` file that is not executed when gallery is
generated (see :ref:`build_pattern`) but nevertheless gets included as an
example. Note that no output is capture as this file is not executed.
"""
# Code source: <NAM... | 118 |
335 | <gh_stars>100-1000
{
"word": "Ecumenical",
"definitions": [
"Representing a number of different Christian Churches.",
"Promoting or relating to unity among the world's Christian Churches."
],
"parts-of-speech": "Adjective"
} | 94 |
324 | <filename>tests/utils/test_logger.py
import logging
import os
import pytest
from kale.utils import logger
@pytest.fixture(scope="module")
def testing_logger():
save_dir = os.getcwd()
testing_logger = logger.construct_logger("test", save_dir)
yield testing_logger
# Gather info
filehandler = test... | 559 |
1,403 | <filename>test/Java/Java-1.6.py
#!/usr/bin/env python
#
# __COPYRIGHT__
#
# 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... | 1,856 |
354 | #include <gvc.h>
#include <string.h>
#include <stdlib.h>
#include <gvc.h>
extern "C"
{
extern void gv_string_writer_init(GVC_t *gvc);
extern void gv_channel_writer_init(GVC_t *gvc);
extern void gv_writer_reset(GVC_t *gvc);
}
#define agfindattr(x, s) agattrsym(x, s)
#define agraphattr(g, n, s) agattr(g, A... | 9,595 |
14,668 | // Copyright 2019 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 <stddef.h>
#include <stdint.h>
#include "net/cert/internal/ocsp.h"
#include "net/der/input.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8... | 180 |
778 | #ifndef KRATOS_SWIMMING_DEM_IN_PFEM_UTILS_H
#define KRATOS_SWIMMING_DEM_IN_PFEM_UTILS_H
// /* External includes */
// System includes
// Project includes
#include "includes/variables.h"
/* System includes */
#include <limits>
#include <iostream>
#include <iomanip>
/* External includes */
#ifdef _OPENMP
#include <om... | 1,348 |
791 | <gh_stars>100-1000
package org.xerial.snappy;
import org.junit.AfterClass;
import org.junit.BeforeClass;
/**
*
*/
public class PureJavaSnappyTest
extends SnappyTest
{
@BeforeClass
public static void setUp()
throws Exception
{
PureJavaSnappyTestUtil.setUp();
}
@AfterC... | 192 |
1,276 | <gh_stars>1000+
#include <iostream>
#include <cstdlib>
#include <vector>
#include <cmath>
#include <algorithm>
#include <tbb/parallel_sort.h>
#include "ticktock.h"
int main() {
size_t n = 1<<24;
std::vector<int> arr(n);
std::generate(arr.begin(), arr.end(), std::rand);
TICK(tbb_parallel_sort);
tbb:... | 189 |
6,205 | import os
import unittest
from conans.paths import CONANFILE, CONANFILE_TXT
from conans.test.utils.tools import TestClient
class InstallCWDTest(unittest.TestCase):
def setUp(self):
self.client = TestClient(users={"myremote": [("lasote", "mypass")]})
conanfile = """
import os
from conans import C... | 486 |
1,380 |
/*
* sophia database
* sphia.org
*
* Copyright (c) <NAME>
* BSD License
*/
#include <sophia.h>
#include <libss.h>
#include <libsf.h>
#include <libsr.h>
#include <libsv.h>
#include <libsd.h>
#include <libst.h>
static void
github_97(void)
{
void *env = sp_env();
t( env != NULL );
t( sp_setstring(env, "sophia.p... | 5,221 |
1,224 | <gh_stars>1000+
assert hex(unhex(hex(0xcafebabe))) == 'CAFEBABE'
assert unhex(hex(unhex('cafebabe'))) == 0xCAFEBABE
assert hex(unhex(hex(0xdecaf))) == '000DECAF'
assert unhex(hex(unhex('DECAF'))) == 0xDECAF
print 'OK'
exit() | 99 |
412 | #include <assert.h>
#include "../cprover-string-hack.h"
int main()
{
__CPROVER_string s;
s = __CPROVER_string_literal("pippo");
assert(__CPROVER_string_equal(s, __CPROVER_string_literal("pippo")));
assert(__CPROVER_string_equal(s, __CPROVER_string_literal("mippo")));
return 0;
}
| 125 |
3,288 | /*
* Copyright 2018 ObjectBox Ltd. 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 appl... | 522 |
14,668 | <reponame>zealoussnow/chromium<gh_stars>1000+
// 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.
#include "chromeos/network/fake_stub_cellular_networks_provider.h"
#include <algorithm>
#include "base/gui... | 2,018 |
713 | from collections import deque
class Solution(object):
def sequenceReconstruction(self, org, seqs):
"""
:type org: List[int]
:type seqs: List[List[int]]
:rtype: bool
"""
sortedOrder = []
if len(org) <= 0:
return False
# a. Initialize the g... | 1,117 |
416 | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... | 4,976 |
1,840 | /**
* Copyright Pravega Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 1,463 |
354 | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... | 3,005 |
3,083 | <filename>index_tests/templates/member_ref_in_template.cc
template <class T>
struct C {
T x;
void bar();
};
template <class T>
void foo() {
C<T> d;
d.x; // spelling range is empty, use cursor extent for range
d.bar(); // spelling range is empty, use cursor extent for range
auto e = new C<T>;
e->x; //... | 1,342 |
432 | <gh_stars>100-1000
/* Gimple Represented as Polyhedra.
Copyright (C) 2009, 2010 Free Software Foundation, Inc.
Contributed by <NAME> <<EMAIL>>
and <NAME> <<EMAIL>>.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as pu... | 5,299 |
451 | <filename>BenchElise/bench/api_vecto.cpp
/*eLiSe06/05/99
Copyright (C) 1999 <NAME>
eLiSe : Elements of a Linux Image Software Environment
This program 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; e... | 2,539 |
3,001 | import os
import shutil
from datetime import date
from pathlib import Path
from zipfile import ZipFile
import pandas as pd
import requests
from tqdm import tqdm
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DATA_PATH = os.path.join(BASE_DIR, 'data')
KEYS = ('candidates', 'parties', 'committe... | 4,168 |
10,225 | <reponame>sixdouglas/quarkus
package io.quarkus.neo4j.deployment;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.time.Duration;
/**
* This implements the protocol version negotiation of bolt. Testing ... | 1,106 |
16,461 | /**
* Copyright (c) 2015-present, Horcrux.
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <Foundation/Foundation.h>
#import "ABI43_0_0RNSVGUIKit.h"
#import "ABI43_0_0RNSVGContainer.h"
#import ... | 340 |
619 | <reponame>moredu/upm
/*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2014-2017 Intel Corporation.
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
#include ... | 554 |
752 | <gh_stars>100-1000
# Copyright 2018-present, Facebook, 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 applicabl... | 9,332 |
1,350 | <filename>sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaults.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure... | 2,744 |
412 | <gh_stars>100-1000
public class Test
{
public void testSuccess()
{
StringBuilder sb = new StringBuilder("abc");
Integer i = new Integer(3);
sb.append(i);
assert sb.toString().equals("abc3");
sb.append((Object)"xyz");
assert sb.toString().equals("abc3xyz");
sb.append((Object)null);
... | 197 |
14,668 | <reponame>zealoussnow/chromium
// Copyright (c) 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 "chrome/browser/ui/extensions/settings_api_bubble_helpers.h"
#include <utility>
#include "build/build_config... | 2,683 |
364 | /*
* Copyright 2014-2019 <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)
*/
//[oglplus_bitfield
template <typename Bits>
class Bitfield {
public:
Bitfield(); /*< Constructs an empty (zero) bitfiel... | 459 |
6,557 | <filename>packages/@react-aria/combobox/intl/lt-LT.json
{
"buttonLabel": "Rodyti pasiūlymus",
"countAnnouncement": "Yra {optionCount, plural, one {# parinktis} other {# parinktys (-ių)}}.",
"focusAnnouncement": "{isGroupChange, select, true {Įvesta grupė {groupTitle}, su {groupCount, plural, one {# parinktimi} ot... | 197 |
711 | package com.java110.core.context;
import java.io.Serializable;
import java.net.UnknownHostException;
import java.util.Map;
/**
* 交互日志
*
* id 业务ID,每次接口交互时的唯一编码 如订单ID 业务ID等
* logContextId 上下文ID ,每次调用 每个系统只有一个contextId 每次不一样 生成规则为uuId
* ip 当前主机IP
* port 当前应用监听端口
* url 交互地址 调用端和服务提供端 必须一致
* serviceCode 服务编码
* se... | 1,318 |
521 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** 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 Lic... | 1,635 |
14,668 | <reponame>zealoussnow/chromium<filename>sql/statement.cc<gh_stars>1000+
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sql/statement.h"
#include <stddef.h>
#include <stdint.h>
#include ... | 7,676 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.