max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,127 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <fstream>
#include <iterator>
#include <limits>
#include <numeric>
#include <sstream>
#include <stdexcept>
#include <vector>
#include "engines_util/test_case.hpp"
#i... | 1,517 |
335 | {
"word": "Blur",
"definitions": [
"A thing that cannot be seen or heard clearly.",
"Something remembered or perceived indistinctly, typically because it happened very fast."
],
"parts-of-speech": "Noun"
} | 86 |
3,296 | <filename>lib/nnc/cmd/tanh/ccv_nnc_tanh.c
#include "ccv.h"
#include "nnc/ccv_nnc.h"
#include "nnc/ccv_nnc_easy.h"
#include "nnc/ccv_nnc_internal.h"
static int _ccv_nnc_tanh_allow_first_replace(const int input_idx, const int input_size, const int output_idx, const int output_size)
{
return input_idx == 0 && output_idx... | 1,171 |
664 | <filename>src/3rdparty/torrent-rasterbar/test/bittorrent_peer.hpp
/*
Copyright (c) 2016, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the abov... | 1,292 |
463 | <reponame>jasnzhuang/Personal-Homework
#include "generator.h"
#include "delaunay.h"
#include "minimum_spanning_tree.h"
#include "validate.h"
#include "visualization.h"
#include <boost/program_options.hpp>
using namespace boost::program_options;
int main(int argc, char *argv[])
{
//set generate option
int GENE... | 2,666 |
1,957 | {"username": "<@U407ABLLW|alice>", "subtype": "file_share", "text": "<@U407ABLLW|alice> shared a file: <https://weeslacktest.slack.com/files/alice/F3YTCL8TA/some_post_here|some post here>", "upload": false, "ts": "1485975978.000012", "display_as_bot": false, "user": "U407ABLLW", "file": {"filetype": "space", "channels"... | 568 |
1,256 | <gh_stars>1000+
import unittest
from . utils import TranspileTestCase
class TestJs2Py(TranspileTestCase):
def js2py_test(self, decl, check, result):
self.assertJavaScriptExecution(
"""
from harness import testfunc
val = testfunc()
%s
print("Don... | 1,874 |
412 | <filename>gld/gld.h
/*
Copyright 2018 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law... | 1,286 |
369 | // Copyright (c) 2017-2022, Mudit<NAME>. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "bsp.hpp"
#include "board.h"
#include "drivers/gpio/DriverGPIO.hpp"
#include <board/BoardDefinitions.hpp>
namespace
{
void board_power_off()
{
/// No memory alloca... | 548 |
14,668 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#if defined(WEBLAYER_MANUAL_JNI_REGISTRATION)
#include "base/android/library_loader/library_loader_hooks.h" // nogncheck
#include "weblayer/browser/java/... | 375 |
2,691 | <gh_stars>1000+
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from client_interface.djinni
#pragma once
#include "../../handwritten-src/cpp/optional.hpp"
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
namespace testsuite {
struct ClientReturnedRecord;
/** Client ... | 319 |
552 | #include <catch2/catch.hpp>
#include <EtFramework/stdafx.h>
#include <mainTesting.h>
#include <EtCore/FileSystem/FileUtil.h>
#include <EtCore/FileSystem/Entry.h>
#include <EtCore/IO/JsonParser.h>
#include <EtEditor/Import/GLTF.h>
using namespace et;
std::string const fileName = "Box.gltf";
std::string const glbF... | 550 |
2,151 | <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 "third_party/blink/renderer/core/frame/hosts_using_features.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {... | 634 |
311 | <reponame>jayvdb/django-oscar-api
from django.conf import settings
from rest_framework.permissions import (
BasePermission,
IsAuthenticated,
DjangoModelPermissions,
)
from oscarapi.basket.operations import request_allows_access_to
class IsOwner(IsAuthenticated):
"""
Permission that checks if thi... | 744 |
577 | <reponame>rickynilsson/astroquery
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import os.path
import os
import sys
import pytest
import requests
from requests import ReadTimeout
from astropy.table import Table
from astropy.units import arcsec, arcmin
from astropy.io import ascii
from astropy.coordi... | 2,053 |
373 | <filename>Platform/Intel/Vlv2TbltDevicePkg/PlatformDxe/AzaliaVerbTable.h
/*++
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
... | 4,121 |
568 | package com.jim.framework.rpc.registry;
import com.jim.framework.rpc.common.RpcURL;
import java.util.List;
/**
* Created by jiang on 2017/5/19.
*/
public interface DiscoveryService {
List<RpcURL> getUrls(String registryHost, int registryPort);
}
| 105 |
649 | package net.serenitybdd.screenplay.webtests;
import net.serenitybdd.junit.runners.SerenityRunner;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.abilities.BrowseTheWeb;
import net.serenitybdd.screenplay.actions.Open;
import net.serenitybdd.screenplay.annotations.CastMember;
import net.thucy... | 404 |
6,541 | <filename>tests/core/test_dynamic_cast.cpp
/*
* Copyright 2016 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*/
#include <stdio... | 155 |
2,724 | <reponame>piejanssens/openui5<filename>src/sap.ui.fl/test/sap/ui/fl/qunit/testResources/condenser/renameMoveChanges.json
[
{
"id": "id_1580042266646_40_renameField",
"changeType": "renameField",
"reference": "sap.ui.rta.test.Component",
"content": {
"originalControlType": "sap.ui.comp.smartform.GroupElement... | 2,151 |
2,281 | /*
* Copyright 2013-2021 Real Logic 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 10,472 |
458 | <reponame>yxqsnz/cproc
int main(void) {
return ((unsigned char)1 - (unsigned char)2) > 0;
}
| 40 |
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 ... | 533 |
411 | '''define the config file for ade20k and ViT-Large'''
import os
from .base_cfg import *
# modify dataset config
DATASET_CFG = DATASET_CFG.copy()
DATASET_CFG.update({
'type': 'ade20k',
'rootdir': os.path.join(os.getcwd(), 'ADE20k'),
})
# modify dataloader config
DATALOADER_CFG = DATALOADER_CFG.copy()
# modify ... | 954 |
2,661 | <gh_stars>1000+
#!/usr/bin/env python2.7
#
# Copyright 2017 Google 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... | 2,097 |
6,036 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import argparse
import collections
import csv
import re
import sys
Comparison = collections.namedtuple("Comparison", ["name", "fn"])
class Comparisons:
@staticmethod
def eq():
return Comparison(
name="equal ... | 867 |
909 | <reponame>khamutov/intellij-scala
public class R {
private final static long serialVersionUID = 42L;
}
/*
@SerialVersionUID(42L)
class R {
}
*/ | 55 |
3,508 | <gh_stars>1000+
package com.fishercoder.solutions;
import java.util.TreeSet;
public class _849 {
public static class Solution1 {
int maxDist = 0;
public int maxDistToClosest(int[] seats) {
for (int i = 0; i < seats.length; i++) {
if (seats[i] == 0) {
... | 1,508 |
383 | <reponame>avidit/home-assistant-config
"""Parser for Acconeer BLE advertisements"""
import logging
from struct import unpack
from .helpers import (
to_mac,
to_unformatted_mac,
)
_LOGGER = logging.getLogger(__name__)
ACCONEER_SENSOR_IDS = {
0x80: "Acconeer XM122"
}
MEASUREMENTS = {
0x80: ["presence",... | 1,177 |
2,542 | <filename>src/prod/src/ServiceModel/naming/GetPropertyBatchOperationDescription.h
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------... | 847 |
1,261 | /**
Onion HTTP server library
Copyright (C) 2010-2018 <NAME> and others
This library is free software; you can redistribute it and/or
modify it under the terms of, at your choice:
a. the Apache License Version 2.0.
b. the GNU General Public License as published by the
Free Software Foundation; either v... | 3,341 |
14,668 | // Copyright (c) 2013 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 "storage/browser/file_system/remove_operation_delegate.h"
#include "base/bind.h"
#include "storage/browser/file_system/file_system_context.h... | 1,263 |
468 | """Matching Tensor module."""
import typing
import torch
import torch.nn as nn
import torch.nn.functional as F
class MatchingTensor(nn.Module):
"""
Module that captures the basic interactions between two tensors.
:param matching_dims: Word dimension of two interaction texts.
:param channels: Number ... | 1,024 |
349 | package com.ray3k.skincomposer.dialog.scenecomposer.undoables;
public class TreeDeleteUndoable extends ActorDeleteUndoable {
@Override
public String getRedoString() {
return "Redo \"Delete Tree\"";
}
@Override
public String getUndoString() {
return "Undo \"Delete Tree\"";
}... | 129 |
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 ... | 1,734 |
1,185 | /*
* 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 ... | 600 |
348 | <gh_stars>100-1000
{"nom":"Théziers","circ":"3ème circonscription","dpt":"Gard","inscrits":861,"abs":529,"votants":332,"blancs":22,"nuls":11,"exp":299,"res":[{"nuance":"FN","nom":"<NAME>","voix":166},{"nuance":"REM","nom":"<NAME>","voix":133}]} | 99 |
440 | <reponame>grey-btw/DeepADoTS
import numpy as np
from .synthetic_multivariate_dataset import SyntheticMultivariateDataset
class MultivariateAnomalyFunction:
# ----- Functions generating the anomalous dimension --------- #
# A MultivariateAnomalyFunction should return a tuple containing the following three val... | 1,915 |
713 | <filename>persistence/jpa/src/test/java/org/infinispan/persistence/jpa/entity/Vehicle.java
package org.infinispan.persistence.jpa.entity;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import org.infinispan.protostream.annotations.ProtoField;
/**
*
* @author <a href="mailto:<EMAIL>"><NAME></... | 695 |
3,897 | /*******************************************************************************
* Copyright (c) 2010-2017 Analog Devices, 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:
* - Redis... | 3,558 |
2,293 | <gh_stars>1000+
#include <signal.h>
#include <io.h>
/* #include <sys/select.h> */
/* HAS_IOCTL:
* This symbol, if defined, indicates that the ioctl() routine is
* available to set I/O characteristics
*/
#define HAS_IOCTL /**/
/* HAS_UTIME:
* This symbol, if defined, indicates that the routine utime() is
* avai... | 16,139 |
5,169 | <reponame>Gantios/Specs<gh_stars>1000+
{
"name": "MiniLayout",
"version": "1.2.1",
"summary": "Minimal AutoLayout convenience layer. Program constraints succinctly.",
"description": "Usage:\n\n```swift\nview.addConstrainedSubview(label, constrain: .Leading, .Top)\nview.constrain(textField, at: .Leading, to: lab... | 333 |
2,643 | #ifndef OD_DEBUGPRINTF_H
#define OD_DEBUGPRINTF_H
/*
* Odyssey.
*
* Scalable PostgreSQL connection pooler.
*/
void od_dbg_printf(char *fmt, ...);
#define OD_RELEASE_MODE -1
#ifndef OD_DEVEL_LVL
/* set "release" mode by default */
#define OD_DEVEL_LVL OD_RELEASE_MODE
#endif
#if OD_DEVEL_LVL == OD_RELEASE_MODE
#... | 330 |
316 | <gh_stars>100-1000
#include <lfortran/asr.h>
#include <lfortran/containers.h>
#include <lfortran/exception.h>
#include <lfortran/asr_utils.h>
#include <lfortran/asr_verify.h>
#include <lfortran/pass/array_op.h>
#include <lfortran/pass/pass_utils.h>
#include <vector>
#include <utility>
namespace LFortran {
using ASR... | 18,806 |
517 | <gh_stars>100-1000
package ro.isdc.wro.model.spi;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
/**
* @author <NAME>
*/
public class TestDefaultWroModelFactoryProvider {
private DefaultModelFactoryProvider victim;
@Before
public void setUp() {
victim = new D... | 159 |
14,425 | <filename>hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/ByteBufferPool.java
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership... | 576 |
682 | /**CFile****************************************************************
FileName [fxuPair.c]
PackageName [MVSIS 2.0: Multi-valued logic synthesis system.]
Synopsis [Operations on cube pairs.]
Author [MVSIS Group]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - February 1, 2003... | 9,611 |
1,144 | <reponame>dram/metasfresh
package org.compiere.apps.search;
import java.awt.Component;
import javax.swing.JTable;
import org.compiere.model.MQuery;
import org.compiere.model.MQuery.Operator;
import org.compiere.swing.CComboBox;
import org.compiere.swing.ListComboBoxModel;
import org.compiere.util.DisplayType;
/**
... | 997 |
416 | package org.simpleflatmapper.tuple;
public class Tuple2<T1, T2> {
private final T1 element0;
private final T2 element1;
public Tuple2(T1 element0, T2 element1) {
this.element0 = element0;
this.element1 = element1;
}
public final T1 getElement0() {
return element0;
}
... | 669 |
14,425 | <filename>hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/TrileanTests.java
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ... | 1,267 |
5,169 | {
"name": "TheramaF3",
"version": "2.80.0",
"summary": "TheramaF3 is a framework that has been created for the purpose of trying out cocoapods public spec distribution.",
"description": "A long description: TheramaF3 is a framework that has been created for the purpose of trying out cocoapods public spec distri... | 282 |
852 | <filename>Alignment/APEEstimation/python/SectorBuilder_Tid_cff.py
import FWCore.ParameterSet.Config as cms
from Alignment.APEEstimation.SectorBuilder_cfi import *
##
## Whole Subdetector (means only one for both endcaps)
##
Tid = EmptySector.clone(
name = 'Tid',
subdetId = [4],
)
TID = cms.VPSet(
Tid,... | 2,353 |
930 | package com.foxinmy.weixin4j.example.server.handler;
import org.springframework.stereotype.Component;
import com.foxinmy.weixin4j.handler.MessageHandlerAdapter;
import com.foxinmy.weixin4j.message.TextMessage;
import com.foxinmy.weixin4j.request.WeixinRequest;
import com.foxinmy.weixin4j.response.TextResponse;
import... | 281 |
1,801 | <reponame>xzou999/Multitarget-tracker
#pragma once
#include <opencv2/opencv.hpp>
#include <iostream>
cv::Mat gaussianCorrelation(cv::Mat& x1, cv::Mat& x2, int h, int w, int channel, float sigma);
cv::Mat linearCorrelation(cv::Mat& x1, cv::Mat& x2, int h, int w, int channel);
cv::Mat polynomialCorrelation(cv::Mat& x1... | 184 |
310 | <filename>native/android/PropertyCross/src/com/propertycross/android/presenter/RecentSearch.java
package com.propertycross.android.presenter;
import com.propertycross.android.presenter.searchitems.SearchItem;
public class RecentSearch {
private SearchItem search;
private int resultsCount;
public RecentSearch() {
... | 215 |
1,199 | <filename>2018/futex-basics/mutex-using-futex.cpp
// Following the "mutex2" implementation in Drepper's "Futexes Are Tricky"
// Note: this version works for threads, not between processes.
//
// <NAME> [http://eli.thegreenplace.net]
// This code is in the public domain.
#include <atomic>
#include <cstdint>
#include <io... | 1,378 |
17,481 | <reponame>marcin-kozinski/dagger
/*
* Copyright (C) 2021 The Dagger 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... | 1,000 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Rapa","circ":"2ème circonscription","dpt":"Polynésie française","inscrits":414,"abs":45,"votants":369,"blancs":0,"nuls":0,"exp":369,"res":[{"nuance":"DVD","nom":"Mme <NAME>","voix":292},{"nuance":"DVD","nom":"Mme <NAME>","voix":77}]} | 116 |
1,020 | package org.robobinding.util;
import java.util.Collection;
/**
* Migrated from {@link com.google.common.base.Preconditions}
* @since 1.0
* @version $Revision: 1.0 $
* @author <NAME>
*/
public class Preconditions {
/**
* Ensures that an object reference passed as a parameter to the calling method... | 859 |
377 | <reponame>gburd/Kundera
/*******************************************************************************
* * Copyright 2012 Impetus Infotech.
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a co... | 2,187 |
3,294 | <reponame>BaruaSourav/docs
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the l... | 636 |
513 | """ Wrapper around expRNN's Orthogonal class for convenience """
from .exprnn.orthogonal import Orthogonal
from .exprnn.trivializations import expm, cayley_map
from .exprnn.initialization import henaff_init_, cayley_init_
param_name_to_param = {'cayley': cayley_map, 'expm': expm}
init_name_to_init = {'henaff': henaff... | 583 |
6,132 | from . import MemoryMixin
class UnwrapperMixin(MemoryMixin):
"""
This mixin processes SimActionObjects by passing on their .ast field.
"""
def store(self, addr, data, size=None, condition=None, **kwargs):
return super().store(_raw_ast(addr), _raw_ast(data),
size=_raw_ast(size),
... | 470 |
22,779 | <filename>plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/controls/ScriptSelectorPanel.java
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... | 7,095 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.sql.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.h... | 10,472 |
852 | <gh_stars>100-1000
/*
* JsonSerializable.h
*
* Created on: Aug 2, 2012
* Author: aspataru
*/
#ifndef JSONSERIALIZABLE_H_
#define JSONSERIALIZABLE_H_
#include "json.h"
namespace jsoncollector {
class JsonSerializable {
public:
virtual ~JsonSerializable(){};
virtual void serialize(Json::Value& r... | 176 |
434 | /***** BEGIN LICENSE BLOCK *****
BSD License
Copyright (c) 2005-2015, NIF File Format Library and Tools
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... | 2,246 |
7,137 | package io.onedev.server.imports;
import java.io.Serializable;
import java.util.List;
import io.onedev.commons.utils.TaskLogger;
import io.onedev.server.util.ReflectionUtils;
public abstract class Importer<Where extends Serializable, What extends Serializable, How extends Serializable> implements Serializable {
p... | 375 |
2,139 | <gh_stars>1000+
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.jruby.runtime.builtin;
import java.util.List;
/**
* Interface that represents the instance variable aspect of Ruby
* objects.
*
* @author headius
*/
public interface InstanceVariables ... | 666 |
3,459 | #include <stdio.h>
//#include <stdlib.h>
#include <string.h>
#include <unistd.h>
static int search_gcda(const char *str, int len)
{
int i;
for (i = 0; i < len - 6; i++)
if (str[i] == '.' && str[i+1] == 'g' && str[i+2] == 'c' &&
str[i+3] == 'd' && str[i+4] == 'a' && str[i+5] == 0)
return i;
return -1;
... | 978 |
5,964 | <filename>third_party/WebKit/Source/core/html/parser/HTMLParserThreadTest.cpp
// 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 "config.h"
#include "core/html/parser/HTMLParserThread.h"
#include... | 240 |
1,909 | /*
* Copyright 2006-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 574 |
819 | /*
Copyright 2017 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 820 |
882 | package cookbook;
import org.junit.*;
import water.*;
import water.fvec.*;
import water.util.Log;
import water.util.RemoveAllKeysTask;
public class Cookbook extends TestUtil {
@Before
public void removeAllKeys() {
Log.info("Removing all keys...");
RemoveAllKeysTask collector = new RemoveAllKeysTask();
... | 359 |
1,467 | <reponame>awishn02/aws-sdk-java-v2
/*
* 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/apache... | 4,300 |
2,542 | <filename>src/prod/src/data/utilities/Encoding.h<gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------------------------... | 167 |
301 | {
"virtualMachinesTier": {
"type": "String",
"metadata": {
"displayName": "virtualMachinesTier",
"description": "Specifiy whether you want to enable Standard tier for Virtual Machine resource type"
},
"allowedValues": [
"Standard",
"Fre... | 1,385 |
695 | <gh_stars>100-1000
import debuggee
debuggee.setup()
| 20 |
417 | <reponame>Pecon/Torque3D-1<gh_stars>100-1000
//-----------------------------------------------------------------------------
// Verve
// Copyright (C) 2014 - <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"),... | 1,039 |
2,151 | <filename>net/third_party/quiche/src/quic/core/uber_received_packet_manager.cc
// 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 "net/third_party/quiche/src/quic/core/uber_received_packet_manager... | 3,028 |
860 | <reponame>xiefan46/samza<filename>samza-hdfs/src/test/java/org/apache/samza/system/hdfs/partitioner/TestDirectoryPartitioner.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regar... | 4,857 |
356 | <reponame>airen3339/Android-Application-ZJB
package com.idrv.coach.ui;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.animation.Animation;
import android.view.animation.Ani... | 3,649 |
5,169 | {
"name": "BRLocaleMap",
"version": "1.0.0",
"summary": "iOS/Mac library for mapping between Cocoa langauge codes (ISO639-1) to Google/Bing translate service",
"homepage": "https://github.com/b123400/BRLocaleMap",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<NAME>": "<EMAIL>... | 284 |
575 | // 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 THIRD_PARTY_BLINK_RENDERER_CORE_FULLSCREEN_SCOPED_ALLOW_FULLSCREEN_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_FULLSCREEN_SCOPED_ALLOW_FULLSCREEN_H... | 383 |
1,511 |
/* SPDX-License-Identifier: EUDatagrid */
/*
EU DataGrid Software License Copyright (c) 2001 EU DataGrid. All
rights reserved.
This software includes voluntary contributions made
to the EU DataGrid. For more information on the EU DataGrid, please
see http://www.eu-datagrid.org/.
Installation, use, reproduction,
dis... | 1,103 |
4,901 | <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... | 5,973 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Nuisance",
"definitions": [
"A person or thing causing inconvenience or annoyance.",
"An act which is harmful or offensive to the public or a member of it and for which there is a legal remedy."
],
"parts-of-speech": "Noun"
} | 112 |
521 | <reponame>wk8/elle<filename>src/elle/bench.hh
#pragma once
#include <elle/Duration.hh>
#include <elle/attribute.hh>
#include <elle/compiler.hh>
namespace elle
{
/// Bench a block of code or display statistics about some data.
///
/// N.B. The Bench is active if the LOG_LEVEL related is activated.
///
/// @c... | 1,103 |
1,180 | <reponame>cntrump/libtomcrypt<gh_stars>1000+
/* LibTomCrypt, modular cryptographic library -- <NAME> */
/* SPDX-License-Identifier: Unlicense */
/**
@file gcm_reset.c
GCM implementation, reset a used state so it can accept IV data, by <NAME>
*/
#include "tomcrypt_private.h"
#ifdef LTC_GCM_MODE
/**
Reset a GC... | 331 |
719 | /*
* Copyright 2020 momosecurity.
*
* 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,497 |
595 | <gh_stars>100-1000
/******************************************************************************
* Copyright (c) 2015 - 2021 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
*******************************************************************************/
/********************************************... | 777 |
742 | package org.support.project.common.util;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.List;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
public class ListUtilsTest {
@BeforeClass
public s... | 1,207 |
803 | #include <ir/ir.h>
#include <target/util.h>
//=============================================================
// Configurations
//=============================================================
#define QFTASM_RAM_AS_STDIN_BUFFER
#define QFTASM_RAM_AS_STDOUT_BUFFER
#define QFTASM_JMPTABLE_IN_ROM
#ifdef QFTASM_RAM_AS_STD... | 7,770 |
3,008 | /// @ref gtx_associated_min_max
/// @file glm/gtx/associated_min_max.hpp
///
/// @see core (dependence)
/// @see gtx_extented_min_max (dependence)
///
/// @defgroup gtx_associated_min_max GLM_GTX_associated_min_max
/// @ingroup gtx
///
/// @brief Min and max functions that return associated values not the compared onc... | 2,923 |
373 | <gh_stars>100-1000
/*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2018 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://www.apache.org/licenses/LICEN... | 1,238 |
1,747 | <gh_stars>1000+
/*
* Copyright (c) 2017 <NAME>
*
* THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
* OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
*
* Permission is hereby granted to use or copy this program
* for any purpose, provided the above notices are retained on all copies.
* Permissi... | 1,870 |
348 | <filename>docs/data/leg-t2/054/05404269.json
{"nom":"Hudiviller","circ":"4ème circonscription","dpt":"Meurthe-et-Moselle","inscrits":299,"abs":156,"votants":143,"blancs":5,"nuls":3,"exp":135,"res":[{"nuance":"LR","nom":"<NAME>","voix":72},{"nuance":"REM","nom":"<NAME>","voix":63}]} | 118 |
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 CHROME_CHROME_CLEANER_ENGINES_CONTROLLERS_SCANNER_CONTROLLER_IMPL_H_
#define CHROME_CHROME_CLEANER_ENGINES_CONTROLLERS_SCANNER_CONTROLLER_IMPL_H_
... | 802 |
2,690 | """
Tests for the Flocker volume manager.
"""
| 14 |
1,444 | <reponame>J-VOL/mage
package org.mage.test.cards.single.ogw;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
public class ThoughtKnotSeerTest extends CardTestPlayerBase {
/**
* Reported bug I bounced a Thought-Knot ... | 1,938 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.