max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
305 | //===- TargetTransformInfoImpl.h --------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 17,050 |
634 | <reponame>consulo/consulo<gh_stars>100-1000
/*
* Copyright 2013-2016 consulo.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | 3,864 |
2,133 | /****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
*************************************... | 370 |
637 | <filename>src/main/java/mssql/googlecode/concurrentlinkedhashmap/package-info.java
/*
* Copyright 2011 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
*
*... | 475 |
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,107 |
348 | {"nom":"Châtel-Gérard","circ":"2ème circonscription","dpt":"Yonne","inscrits":172,"abs":78,"votants":94,"blancs":5,"nuls":1,"exp":88,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":46},{"nuance":"REM","nom":"<NAME>","voix":42}]} | 95 |
665 | <gh_stars>100-1000
// This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
/* stats_events.h -*- C++ -*-
<NAME>, 1 March 2012
Copyright (c) 2012 mldb.ai inc. All rights reserved.
Different types of stats events.
*/
#pragma once
#inclu... | 329 |
3,651 | <reponame>aberdev/orientdb
package com.orientechnologies.orient.core.db.tool.importer;
import java.util.HashSet;
import java.util.Set;
/** Created by tglman on 28/07/17. */
public final class OSetConverter extends OAbstractCollectionConverter<Set> {
public OSetConverter(OConverterData converterData) {
super(con... | 294 |
2,151 | <gh_stars>1000+
// 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 ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_
#define ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_
#include <memory>
#include <vec... | 1,452 |
485 | <reponame>shunfei/indexr
package io.indexr.query.expr;
import java.util.List;
import java.util.function.Predicate;
import io.indexr.query.expr.attr.Attribute;
import io.indexr.query.expr.attr.BoundReference;
import io.indexr.query.row.InternalRow;
public class InterpretedPredicate {
public static Predicate<Inter... | 160 |
4,816 | <reponame>mehrdad-shokri/retdec<filename>src/llvmir2hll/optimizer/optimizers/var_def_for_loop_optimizer.cpp<gh_stars>1000+
/**
* @file src/llvmir2hll/optimizer/optimizers/var_def_for_loop_optimizer.cpp
* @brief Implementation of VarDefForLoopOptimizer.
* @copyright (c) 2017 Avast Software, licensed under the MIT licens... | 858 |
23,901 | # coding=utf-8
# Copyright 2021 The Google Research 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 applicab... | 5,527 |
348 | <gh_stars>100-1000
{"nom":"Coublanc","circ":"2ème circonscription","dpt":"Saône-et-Loire","inscrits":639,"abs":363,"votants":276,"blancs":14,"nuls":3,"exp":259,"res":[{"nuance":"LR","nom":"<NAME>","voix":135},{"nuance":"REM","nom":"<NAME>","voix":124}]} | 105 |
4,606 | <reponame>rpatil524/dagster
import pytest
from dagster.utils import file_relative_path
from ge_example.ge_demo import payroll_data
def test_pipeline_success():
res = payroll_data.execute_in_process()
assert res.success
def test_pipeline_failure():
with pytest.raises(ValueError):
payroll_data.exe... | 680 |
348 | {"nom":"Pouillé","circ":"5ème circonscription","dpt":"Vendée","inscrits":472,"abs":262,"votants":210,"blancs":15,"nuls":6,"exp":189,"res":[{"nuance":"SOC","nom":"<NAME>","voix":104},{"nuance":"REM","nom":"<NAME>","voix":85}]} | 91 |
3,262 | <reponame>JLouhela/halley
#include "task_details.h"
using namespace Halley;
TaskDetails::TaskDetails(UIFactory& factory, std::shared_ptr<IClipboard> clipboard)
: UIWidget("taskDetails", {}, UISizer())
, factory(factory)
, clipboard(std::move(clipboard))
{
factory.loadUI(*this, "ui/halley/task_details");
setMouseB... | 1,529 |
5,169 | <reponame>Gantios/Specs<filename>Specs/d/2/1/StatusBarOverlay/1.9/StatusBarOverlay.podspec.json
{
"name": "StatusBarOverlay",
"version": "1.9",
"summary": "A Status Bar Overlay which will automatically display a No Connection message and can display custom messages too",
"description": "StatusBarOverlay will au... | 411 |
344 | /*
* Copyright (c) 2021 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 1,365 |
348 | <gh_stars>100-1000
{"nom":"Puynormand","circ":"10ème circonscription","dpt":"Gironde","inscrits":248,"abs":142,"votants":106,"blancs":13,"nuls":5,"exp":88,"res":[{"nuance":"REM","nom":"<NAME>","voix":44},{"nuance":"FN","nom":"<NAME>","voix":44}]} | 100 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Plurien","circ":"2ème circonscription","dpt":"Côtes-d'Armor","inscrits":1248,"abs":630,"votants":618,"blancs":38,"nuls":20,"exp":560,"res":[{"nuance":"REM","nom":"<NAME>","voix":383},{"nuance":"LR","nom":"<NAME>","voix":177}]} | 113 |
693 | <reponame>trautmane/de.flapdoodle.embed.mongo
/**
* Copyright (C) 2011
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* with contributions from
* konstantin-ba@github,<NAME> (<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lic... | 353 |
607 | <gh_stars>100-1000
package org.pushingpixels.radiance.demo.component.svg.tango.transcoded;
import java.awt.*;
import java.awt.geom.*;
import java.awt.image.BufferedImage;
import java.io.*;
import java.lang.ref.WeakReference;
import java.util.Base64;
import java.util.Stack;
import javax.imageio.ImageIO;
import javax.sw... | 12,767 |
342 | #include "string/str.cfg"
#ifdef BK_STR_STRSEP
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* %sccs.include.redist.c%
*/
#include "local_string.h"
/*
* Get next token from string *stringp, where tokens are possibly-empty
* strings separated by characters ... | 422 |
634 | #pragma once
#include <ostream>
#include <d3d.h>
#include <d3dumddi.h>
std::ostream& operator<<(std::ostream& os, const D3DDDI_RATIONAL& val);
std::ostream& operator<<(std::ostream& os, D3DDDIFORMAT val);
| 91 |
1,829 | <reponame>useaname/thinking-in-spring-boot-samples
package thinking.in.spring.boot.samples.production.ready.jmx;
import javax.management.MBeanServer;
import javax.management.ObjectName;
import java.lang.management.ManagementFactory;
/**
* 标准 MBean 注册引导类
*
* @author <a href="mailto:<EMAIL>">Mercy</a>
* @see Manage... | 421 |
423 | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import argparse
import cv2
import torch
import numpy as np
np.random.seed(2)
torch.manual_seed(3)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False
from maskrcnn_benchmark.config import cfg
from maskrcnn_benchmark.d... | 1,254 |
560 | <filename>app/src/main/java/me/zhanghai/android/douya/network/api/info/frodo/UserItems.java
/*
* Copyright (c) 2016 <NAME> <<EMAIL>>
* All Rights Reserved.
*/
package me.zhanghai.android.douya.network.api.info.frodo;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
// Not parcelable... | 411 |
675 | <reponame>bigplayszn/nCine
#include "gtest_statichashset.h"
#include "test_functions.h"
namespace {
class StaticHashSetAlgorithmsTest : public ::testing::Test
{
protected:
void SetUp() override { initHashSet(hashset_); }
HashSetTestType hashset_;
};
TEST_F(StaticHashSetAlgorithmsTest, Minimum)
{
const int mini... | 1,099 |
602 | <reponame>CorfuDB/CORFU
package org.corfudb.infrastructure.logreplication;
import org.corfudb.infrastructure.logreplication.replication.send.LogReplicationError;
import org.corfudb.runtime.LogReplication.LogReplicationEntryMsg;
import org.corfudb.runtime.LogReplication.LogReplicationMetadataResponseMsg;
import java.u... | 500 |
521 | <filename>third_party/virtualbox/src/VBox/ValidationKit/testmanager/batch/filearchiver.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# $Id: filearchiver.py $
# pylint: disable=C0301
"""
A cronjob that compresses logs and other files, moving them to the
g_ksZipFileAreaRootDir storage area.
"""
__copyright__ = \
"""... | 5,163 |
321 | <reponame>AppSecAI-TEST/qalingo-engine
/**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENSE-2.0
*
* Copyright (c) Hoteia, 2012-2014
* http://www.hoteia.com ... | 1,005 |
995 | /*
* Copyright (c) 2018-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <fizz/protocol/Certificate.h>
#include <fizz/record/Extensions.h>
namespace fiz... | 333 |
2,536 | from ..ui import UIComponent
import pandas as pd
from flask import request, jsonify, make_response
class Chart(UIComponent):
"""Base chart component."""
name = "Chart"
@staticmethod
def apply_filters(df, filters):
"""Basic filtering for a dataframe."""
idx = pd.Series([True]*df.shape[0... | 338 |
29,258 | package com.taobao.arthas.core.util;
import java.io.File;
import org.assertj.core.api.Assertions;
import org.junit.Test;
/**
*
* @author hengyunabc 2021-02-09
*
*/
public class DecompilerTest {
@Test
public void test() {
String dir = this.getClass().getProtectionDomain().getCodeSource().getLoca... | 358 |
2,122 | import multiprocessing as mp
import torch
from torch.nn.parallel import DistributedDataParallel as DDP
# from torch.nn.parallel import DistributedDataParallelCPU as DDPC # Deprecated
from rlpyt.utils.quick_args import save__init__args
from rlpyt.utils.collections import namedarraytuple
from rlpyt.utils.synchronize im... | 5,892 |
622 | ################################################################################
# Copyright (C) 2011-2012 <NAME>
#
# This file is licensed under the MIT License.
################################################################################
import itertools
import numpy as np
#import scipy as sp
import scipy.spars... | 16,108 |
405 | <gh_stars>100-1000
package weixin.guanjia.core.service.impl;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.URL;
import weixin.guanjia.core.entity.common.TranslateResult;
impo... | 1,251 |
8,027 | <reponame>Unknoob/buck<filename>test/com/facebook/buck/apple/AppleInfoPlistParsingTest.java
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 Lic... | 1,561 |
1,056 | <reponame>timfel/netbeans
/*
* 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.... | 6,614 |
310 | //
// MTIMask.h
// MetalPetal
//
// Created by <NAME> on 14/11/2017.
//
#import <Foundation/Foundation.h>
#import "MTIColor.h"
NS_ASSUME_NONNULL_BEGIN
@class MTIImage;
typedef NS_ENUM(NSInteger, MTIMaskMode) {
MTIMaskModeNormal = 0,
MTIMaskModeOneMinusMaskValue
};
@interface MTIMask : NSObject <NSCopyin... | 311 |
1,483 | /*
* Copyright Lealone Database Group.
* Licensed under the Server Side Public License, v 1.
* Initial Developer: zhh
*/
package org.lealone.common.exceptions;
public class ConfigException extends RuntimeException {
public ConfigException(String msg) {
super(msg);
}
public ConfigException(Str... | 120 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.predicate.annotator;
import com.yahoo.document.predicate.Predicate;
import java.util.Map;
/**
* Holds the results from {@link com.yahoo.search.predicate.annotator.PredicateTreeAnalyzer#a... | 257 |
1,050 | #include <range.hpp>
#include <iostream>
int main() {
// print [0, 10)
std::cout << "range(10): { ";
for (auto i : iter::range(10)) {
std::cout << i << ' ';
}
std::cout << "}\n";
// print [20, 30)
std::cout << "range(20, 30): { ";
for (auto i : iter::range(20, 30)) {
s... | 766 |
578 | /*
* Copyright (c) 2003-2021 <NAME> <<EMAIL>>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
#ifndef _OSCLEANUP_H
#define _OSCLEA... | 178 |
918 | <reponame>pombredanne/veles
/*
* Copyright 2016 CodiLime
*
* 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 applica... | 4,058 |
6,557 | {
"alpha": "Alfa",
"blue": "Modra",
"brightness": "Svetlost",
"green": "Zelena",
"hue": "Barva",
"lightness": "Lahkost",
"red": "Rdeča",
"saturation": "Nasičenost"
}
| 90 |
631 | <reponame>Atten007/Mikaminecraft-Launcher<gh_stars>100-1000
#include "ProfileUtils.h"
#include "minecraft/VersionFilterData.h"
#include "minecraft/OneSixVersionFormat.h"
#include "Json.h"
#include <QDebug>
#include <QJsonDocument>
#include <QJsonArray>
#include <QRegularExpression>
#include <QSaveFile>
namespace Prof... | 2,380 |
5,200 | <gh_stars>1000+
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from edward.models import Normal
from edward.util import check_latent_vars
class test_check_latent_vars_class(tf.test.TestCase):
def test(self):
with self.test_... | 334 |
1,729 | <reponame>rock3r/folding-plugin<gh_stars>1000+
package com.dd;
import com.intellij.ide.projectView.ProjectView;
import com.intellij.ide.util.PropertiesComponent;
import com.intellij.openapi.options.Configurable;
import com.intellij.openapi.options.ConfigurationException;
import com.intellij.openapi.project.Project;
im... | 1,622 |
14,668 | // 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.
package org.chromium.chrome.browser.feed.webfeed;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.times;
import static ... | 1,130 |
348 | <filename>docs/data/leg-t2/060/06007120.json<gh_stars>100-1000
{"nom":"Cambronne-lès-Clermont","circ":"7ème circonscription","dpt":"Oise","inscrits":849,"abs":429,"votants":420,"blancs":29,"nuls":6,"exp":385,"res":[{"nuance":"LR","nom":"<NAME>","voix":281},{"nuance":"REM","nom":"<NAME>","voix":104}]} | 126 |
1,615 | /**
* Created by MomoLuaNative.
* Copyright (c) 2019, Momo Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
package com.immomo.mls.fun.weight.newui;
import androi... | 466 |
3,027 | from unittest import TestCase
from hummingbot.connector.exchange.bitmart.bitmart_order_book_message import BitmartOrderBookMessage
from hummingbot.core.data_type.order_book_message import OrderBookMessageType
class BitmartOrderBookMessageTests(TestCase):
def _snapshot_rest_example(self):
return {
... | 3,044 |
5,102 | <reponame>Tank-zhu/Discovery
package com.nepxion.discovery.console.resource;
/**
* <p>Title: Nepxion Discovery</p>
* <p>Description: Nepxion Discovery</p>
* <p>Copyright: Copyright (c) 2017-2050</p>
* <p>Company: Nepxion</p>
* @author <NAME>
* @version 1.0
*/
import java.util.List;
import com.nepxion.discover... | 289 |
1,248 | <gh_stars>1000+
#
# This file is part of pretix (Community Edition).
#
# Copyright (C) 2014-2020 <NAME> and contributors
# Copyright (C) 2020-2021 rami.io GmbH and contributors
#
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General
# Public License as publi... | 1,380 |
1,125 | package org.elasticsearch.painless;
import java.util.List;
import java.util.function.Function;
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this... | 925 |
575 | <gh_stars>100-1000
// 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 "base/location.h"
#include "base/compiler_specific.h"
#include "base/debug/debugging_buildflags.h"
#include "testing/gmock/in... | 460 |
685 | #include <Objects/Message.h>
#include <Errno.h>
#include <Logging.h>
MessageEndpoint::MessageEndpoint(uint16_t maxSize){
maxMessageSize = maxSize;
if(maxMessageSize > maxMessageSizeLimit){
maxMessageSize = maxMessageSizeLimit;
}
messageQueueLimit = 0x300000 / maxMessageSize; // No more than ... | 1,920 |
306 | <gh_stars>100-1000
#include <ui.h>
#include <snow.h>
#include <stdlib.h>
#include <math.h>
void color_button_on_click(color_button_t* button, point_t pos) {
(void) pos; // TODO
*button->to_set = button->color;
}
void color_button_on_draw(color_button_t* button, fb_t fb) {
rect_t r = ui_get_absolute_bound... | 487 |
471 | <reponame>akashkj/commcare-hq<gh_stars>100-1000
from corehq.apps.users.models import UserRole, UserRolePresets
def get_custom_roles_for_domain(domain):
"""Returns a list of roles for the domain excluding archived roles
and 'default' roles."""
return [
role for role in UserRole.objects.get_by_domai... | 524 |
4,262 | <reponame>erard22/camel
/*
* 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
* (... | 793 |
14,668 | {
"AAAAA1 AUTOGENERATED FILE DO NOT EDIT": {},
"AAAAA2 See generate_buildbot_json.py to make changes": {}
}
| 42 |
713 | <reponame>franz1981/infinispan
package org.infinispan.client.hotrod.impl.operations;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.Configuration;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.transport.netty.Byte... | 399 |
9,711 | <reponame>sea2/Android-ObservableScrollView-demo
/*
* Copyright 2014 <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
*
* Unl... | 8,598 |
963 | package com.vladmihalcea.book.hpjp.util;
import com.vladmihalcea.book.hpjp.util.providers.DataSourceProvider;
import com.vladmihalcea.book.hpjp.util.providers.Database;
import com.vladmihalcea.book.hpjp.util.providers.OracleDataSourceProvider;
/**
* AbstractOracleXEIntegrationTest - Abstract Orcale XE IntegrationTes... | 178 |
325 | // SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2020 Maxim Integrated All rights reserved.
//
// Author: <NAME> <<EMAIL>>
#include <stdint.h>
#include <sof/audio/component.h>
#include <sof/audio/format.h>
#include <sof/audio/smart_amp/smart_amp.h>
#ifdef CONFIG_GENERIC
static int32_t smart_amp_ff_generic... | 2,246 |
3,494 | #pragma once
#include "cinder/CinderResources.h"
#define RES_DRAIN_OGG CINDER_RESOURCE( ../../../../samples/data/sound/, DrainMagic.ogg, 128, SOUND )
#define RES_TONE_440L220R CINDER_RESOURCE( ../../data/, tone440L220R.wav, 129, SOUND )
| 125 |
14,668 | // 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 "third_party/blink/public/common/client_hints/enabled_client_hints.h"
#include "base/feature_list.h"
#include "base/time/time.h"
#include "net/h... | 2,227 |
1,473 | /*
* Copyright 2018 NAVER Corp.
*
* 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,158 |
3,734 | package com.shekhargulati.ninetynine_problems._02_arithmetic;
/**
* (*) Determine whether two positive integer numbers are coprime.
*/
public class P38 {
public static boolean coprime(int first, int second) {
return P37.gcd(first, second) == 1;
}
}
| 97 |
3,579 | <reponame>ddcruver/querydsl
/*
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
*
* 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/LICENS... | 631 |
421 | import os
import tempfile
import shutil
import git
from mock import Mock, patch
from ..testcases import DustyTestCase
from dusty.commands.repos import override_repo
from dusty.source import Repo, git_error_handling
from dusty.compiler.spec_assembler import get_all_repos
class TestSource(DustyTestCase):
def setUp... | 4,812 |
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.
#ifndef SERVICES_AUDIO_TESTING_API_BINDER_H_
#define SERVICES_AUDIO_TESTING_API_BINDER_H_
#include "base/callback.h"
#include "base/component_export.h"
#... | 390 |
575 | // 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 CONTENT_BROWSER_RENDERER_HOST_MODAL_CLOSE_LISTENER_HOST_H_
#define CONTENT_BROWSER_RENDERER_HOST_MODAL_CLOSE_LISTENER_HOST_H_
#include "content/c... | 489 |
575 | // 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 "third_party/blink/renderer/core/paint/box_painter.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/blink/renderer/core/p... | 5,262 |
669 | <gh_stars>100-1000
/*
* MinIO Java SDK for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, 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/licens... | 1,308 |
32,544 | package com.baeldung.patterns.front.controller.data;
import java.util.ArrayList;
public class BookshelfImpl extends ArrayList<Book> implements Bookshelf {
private static Bookshelf INSTANCE;
@Override
public Bookshelf getInstance() {
if (INSTANCE == null) {
INSTANCE = new BookshelfImpl... | 261 |
456 | <reponame>767214481/Summer
package com.swingfrog.summer.util;
public class RemoteUtil {
public static String mergeRemoteMethod(String remote, String method) {
if (method == null || method.isEmpty())
return remote;
if (remote == null || remote.isEmpty())
return method;
... | 156 |
368 | /*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "PluginBase.h"
namespace plugin {
CTOR_META_BEGIN_OVERLOADED(CEmergencyPed, void(unsigned int))
static int addr... | 2,280 |
778 | <filename>tests/test_profile.py
import os
import re
import fiona
from .conftest import WGS84PATTERN
def test_profile(path_coutwildrnp_shp):
with fiona.open(path_coutwildrnp_shp) as src:
assert re.match(WGS84PATTERN, src.crs_wkt)
def test_profile_creation_wkt(tmpdir, path_coutwildrnp_shp):
outfilena... | 295 |
432 | <filename>lib/libc/x86_64/gen/fpgetround.c
/* $FreeBSD: head/lib/libc/amd64/gen/fpgetround.c 117864 2003-07-22 06:46:17Z peter $ */
#define __IEEEFP_NOINLINES__ 1
#include <ieeefp.h>
fp_rnd_t fpgetround(void)
{
return __fpgetround();
}
| 114 |
6,958 | //
// TRTGatherV2.cpp
// MNN
//
// Created by MNN on 2019/09/11.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "TRTGatherV2.hpp"
#include <core/TensorUtils.hpp>
#include "TRTBackend.hpp"
using namespace std;
namespace MNN {
TRTGatherV2::TRTGatherV2(Backend *b, const Op *op, const std::vector<Te... | 606 |
1,039 | #define SIMDE_TEST_ARM_NEON_INSN mlsl_n
#include "test-neon.h"
#include "../../../simde/arm/neon/mlsl_n.h"
static int
test_simde_vmlsl_n_s16 (SIMDE_MUNIT_TEST_ARGS) {
#if 1
static const struct {
int32_t a[8];
int16_t b[8];
int16_t c;
int32_t r[8];
} test_vec[] = {
{ { INT32_C( 97116604), ... | 7,425 |
329 | // Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... | 1,238 |
1,334 | <reponame>sullis/mockserver<filename>mockserver-core/src/main/java/org/mockserver/model/BinaryBody.java
package org.mockserver.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.mockserver.serialization.Base64Converter;
import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.Obje... | 860 |
3,651 | <filename>core/src/main/java/com/orientechnologies/orient/core/sql/executor/ORidSet.java
package com.orientechnologies.orient.core.sql.executor;
import com.orientechnologies.orient.core.id.ORID;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
/**
* Special impl... | 2,808 |
404 | // Copyright (c) 2015-2019 K Team. All Rights Reserved.
package org.kframework.compile.checks;
import org.kframework.attributes.Att;
import org.kframework.kil.Module;
import org.kframework.kil.ModuleItem;
import org.kframework.kil.NonTerminal;
import org.kframework.kil.PriorityBlock;
import org.kframework.kil.Producti... | 615 |
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 t... | 2,517 |
561 | <reponame>ghanpipi/rocksplicator<filename>tgrep/tcp_flow.h
/// Copyright 2017 Pinterest 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/LIC... | 1,125 |
1,144 | <reponame>askmohanty/metasfresh<gh_stars>1000+
package de.metas.ui.web.handlingunits.process;
import java.math.BigDecimal;
import lombok.NonNull;
import org.adempiere.model.InterfaceWrapperHelper;
import de.metas.handlingunits.allocation.ILUTUConfigurationFactory;
import de.metas.handlingunits.model.I_M_HU_LUTU_Conf... | 1,695 |
707 | import os
import sys
def main():
app = Application(sys.argv[1], sys.argv[2])
if app.run():
sys.exit(0)
else:
sys.exit(1)
class Application(object):
def __init__(self, srcdir, path):
self.srcdir = srcdir
self.path = path
self.sources = set()
self.dum... | 1,033 |
2,597 | import pickle
import argparse
import os
import random
import numpy as np
from tqdm import tqdm
import itertools
import functools
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument('--input_folder', default="/data/billionwords/1-billion-word-language-modeling-benchmark/training-m... | 495 |
11,356 | <filename>src/python/turicreate/test/test_cloudpickle.py
# -*- coding: utf-8 -*-
# Copyright © 2017 Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can
# be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
from __future__ import prin... | 687 |
1,093 | /**
* Provides classes for RSocket XML namespace parsing and configuration support.
*/
@org.springframework.lang.NonNullApi
package org.springframework.integration.rsocket.config;
| 46 |
859 | <reponame>sylveon/cppwinrt<filename>test/old_tests/Component/Parameters.h<gh_stars>100-1000
#pragma once
#include "Parameters.g.h"
namespace winrt::Component::implementation
{
struct Parameters : ParametersT<Parameters>
{
Parameters() = default;
void SetInt32(int32_t value);
int32_t ... | 786 |
1,467 | <gh_stars>1000+
/*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the... | 3,530 |
7,883 | // Copyright (c) 2020 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#pragma once
#include <mutex>
#include <unordered_map>
namespace carla {
namespace traffic_ma... | 502 |
2,860 | <gh_stars>1000+
#!/usr/bin/env/python3
#
# Copyright (c) Facebook, Inc. and its affiliates.
# 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
#
#... | 2,700 |
4,772 | <filename>jpa/deferred/src/main/java/example/repo/Customer1895Repository.java
package example.repo;
import example.model.Customer1895;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1895Repository extends CrudRepository<Customer1895, Long> {
List<Custome... | 115 |
840 | <gh_stars>100-1000
#include "primitives/timestamp.h"
uint32_t Timestamp::get_value(TimeUnit tu) const {
// To "extend" the period we assume that the timestamp is for close enough point in time to now.
// Then, use millis and estimate the number of overflows happened.
uint32_t cur_millis = Timestamp::cur_ti... | 378 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.