max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
697 |
# Copyright 2018 <NAME> LLC, <<EMAIL>>
#
# 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 ... | 571 |
1,700 | // Copyright 2009-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "mutex.h"
#include "regression.h"
#if defined(__WIN32__) && !defined(PTHREADS_WIN32)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
namespace embree
{
MutexSys::MutexSys() { mutex = new CRITICAL_SECTION; InitializeCriticalS... | 684 |
1,008 | <reponame>CrazyForks/turms
/*
* Copyright (C) 2019 The Turms Project
* https://github.com/turms-im/turms
*
* 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... | 526 |
335 | {
"word": "Print",
"definitions": [
"Produce (books, newspapers, etc.), especially in large quantities, by a mechanical process involving the transfer of text or designs to paper.",
"Produce (text or a picture) by a printing process.",
"(of a newspaper or magazine) publish (a piece of wr... | 338 |
2,338 | //===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... | 456 |
7,302 | #
# This source file is part of the EdgeDB open source project.
#
# Copyright 2012-present MagicStack Inc. and the EdgeDB 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... | 1,409 |
799 | import json
import demistomock as demisto # noqa: F401
import yaml
from CommonServerPython import * # noqa: F401
def main():
try:
incident = demisto.incident()
assets = incident.get('CustomFields', {}).get('assettable', {})
if not assets:
return ''
if not isinstanc... | 474 |
2,151 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include <utility>
#include "base/threading/thread_task_runner_handle.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "servic... | 3,113 |
357 | <gh_stars>100-1000
#pragma once
#include <vector>
#include <memory>
#include "Vulkan.h"
namespace Vulkan
{
struct SwapChainSupportDetails
{
VkSurfaceCapabilitiesKHR Capabilities;
std::vector<VkSurfaceFormatKHR> Formats;
std::vector<VkPresentModeKHR> PresentModes;
};
/*
* The swap chain is essentially a... | 641 |
1,338 | /*
* Copyright 2007, <NAME>, <EMAIL>.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef NAME_INDEX_H
#define NAME_INDEX_H
#include "EntryListener.h"
#include "Index.h"
#include "TwoKeyAVLTree.h"
class NameIndexEntryIterator;
// NameIndex
class NameIndex : public Index, private Entr... | 308 |
959 | /*
* Fadecandy driver for the APA102/APA102C/SK9822 via SPI.
*
* Copyright (c) 2013 <NAME>
* Copyright (c) 2017 <NAME> <<EMAIL>>
*
* 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 with... | 3,516 |
1,633 | <filename>arbitrage/public_markets/_gdax.py
import urllib.request
import urllib.error
import urllib.parse
import json
from arbitrage.public_markets.market import Market
class GDAX(Market):
def __init__(self, currency, code):
super().__init__(currency)
self.code = code
self.update_rate = 30... | 597 |
419 | #!/usr/bin/env python
import argparse
import os
import sys
import h5py
import scipy.io as sio
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('matfile')
parser.add_argument('save_file')
parser.add_argument('--varname', default='boxes')
args = parser.parse_args()
... | 366 |
454 | <gh_stars>100-1000
# Copyright 2021 TUNiB inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | 1,586 |
306 | /*-
* ---license-start
* keycloak-config-cli
* ---
* Copyright (C) 2017 - 2021 adorsys GmbH & Co. KG @ https://adorsys.com
* ---
* 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
*
* ... | 537 |
1,273 | {
"Name": "Turbidity",
"BaseUnit": "NTU",
"XmlDoc": "Turbidity is the cloudiness or haziness of a fluid caused by large numbers of individual particles that are generally invisible to the naked eye, similar to smoke in air. The measurement of turbidity is a key test of water quality.",
"XmlDocRemarks": "https:/... | 263 |
675 | #include "audio_listener_editor.h"
#include "engine/core/editor/editor.h"
#include "engine/core/main/Engine.h"
namespace Echo
{
#ifdef ECHO_EDITOR_MODE
AudioListenerEditor::AudioListenerEditor(Object* object)
: ObjectEditor(object)
{
}
AudioListenerEditor::~AudioListenerEditor()
{
}
ImagePtr AudioListenerEd... | 166 |
2,453 | <reponame>haozhiyu1990/XVim2
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <objc/NSObject.h>
@class DVTFuzzyMatchCandidateBlock, DVTFuzzyMatchPattern, NSArray;
@interface DVTTextCompletionSessionScoringStateChunk : NSOb... | 365 |
2,874 | <filename>libvmaf/tools/vidinput.c
/*Daala video codec
Copyright (c) 2002-2013 Daala project contributors. 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 t... | 986 |
375 | package io.lumify.test;
import com.altamiracorp.bigtable.model.ModelSession;
import com.altamiracorp.bigtable.model.accumulo.AccumuloSession;
import com.altamiracorp.bigtable.model.user.ModelUserContext;
import io.lumify.core.bootstrap.InjectHelper;
import io.lumify.core.bootstrap.LumifyBootstrap;
import io.lumify.cor... | 4,035 |
14,668 | // 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.
#ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_CONTROLLER_EMITTER_H_
#define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_CONTROLLER_EMITTER_H_
#include "build/build_c... | 649 |
852 | <reponame>ckamtsikis/cmssw<gh_stars>100-1000
#include "HLTriggerOffline/Tau/interface/HLTTauRefCombiner.h"
#include "Math/GenVector/VectorUtil.h"
using namespace edm;
using namespace std;
HLTTauRefCombiner::HLTTauRefCombiner(const edm::ParameterSet &iConfig)
: matchDeltaR_{iConfig.getParameter<double>("MatchDelta... | 917 |
831 | <reponame>phpc0de/idea-android
// generatedFilesHeader.txt
package com.android.tools.idea.lang.multiDexKeep.psi.impl;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.util.... | 405 |
323 | /*
* Copyright (c) 2011-2022 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
* which is available at https:... | 2,315 |
391 | <reponame>DeNA/SRCNNKit
from keras.models import Sequential
from keras.layers import Conv2D, Input, BatchNormalization
from keras.callbacks import ModelCheckpoint, Callback, TensorBoard
from keras.optimizers import SGD, Adam
import numpy as np
import math
import pred
import os
import random
from os import listdir, make... | 1,783 |
792 | <gh_stars>100-1000
{
"name": "<NAME>",
"location": "Ilorin, Nigeria",
"country": "Nigeria",
"region": "Africa",
"organizers": ["jalasem", "kenkarmah", "jattoabdul"],
"website": "http://nodeschool.io/ilorin",
"twitter": "ilorinnodeschool",
"repo": "http://github.com/nodeschool/ilorin"
}
| 130 |
369 | /** @file
@brief Header providing a templated functor wrapping the holding and calling
of function pointer and userdata callbacks.
@date 2014
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2014 Sensics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");... | 851 |
2,143 | package com.tngtech.archunit.core.importer.testexamples.classhierarchyimport;
public interface YetAnotherInterface {
}
| 36 |
387 | <gh_stars>100-1000
#include "vector_streambuf.h"
vector_streambuf::vector_streambuf(std::vector<char> &vec)
{
setg(vec.data(), vec.data(), vec.data() + vec.size());
}
vector_streambuf::~vector_streambuf()
{
} | 102 |
334 | <reponame>bincrack666/BlackObfuscator
package com.googlecode.dex2jar.test;
import static com.googlecode.d2j.reader.Op.*;
import com.googlecode.d2j.visitors.DexDebugVisitor;
import org.junit.Test;
import org.junit.runner.RunWith;
import com.googlecode.d2j.DexLabel;
import com.googlecode.d2j.Field;
import com.googleco... | 3,631 |
5,169 | <reponame>Gantios/Specs
{
"name": "Clare",
"version": "3.2.4",
"summary": "Clare iOS SDK V3.",
"description": "TODO: Add long description of the pod here.",
"homepage": "https://www.clare.ai",
"license": {
"type": "Commercial",
"file": "LICENSE"
},
"authors": {
"Clare": "<EMAIL>"
},
"sou... | 714 |
728 | <reponame>JohannesLichtenberger/sirix
/**
* Copyright (c) 2011, University of Konstanz, Distributed Systems Group 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... | 1,624 |
402 | #
# Generate read-only SAS URLs for all LILA containers, to facilitate partial downloads.
#
# The results of this script end up here:
#
# http://lila.science/wp-content/uploads/2020/03/lila_sas_urls.txt
#
# Update: that file is manually maintained now, it can't be programmatically generated
#
#%% Imports
from azure.s... | 796 |
6,036 | <reponame>dennyac/onnxruntime
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "core/common/common.h"
#include "core/framework/op_kernel.h"
#include "core/providers/cpu//tensor/concat.h"
namespace onnxruntime {
class ConcatFromSequence final : pub... | 185 |
1,083 | #include "PtrLessThan.h"
#include <vector>
#include "../../../Function/Function.h"
#include "../../../Node/Node.h"
#include "../../../Operation/Destruct/Destruct.h"
#include "../../../ParseResult/ParseResult.h"
#include "../../../Units/Units.h"
#include "../../../llvmUtils/llvmUtils.h"
#include "../../../llvm_Functio... | 1,094 |
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 "chrome/browser/lacros/net/network_settings_translation.h"
#include "components/proxy_config/proxy_config_pref_names.h"
#include "components/pro... | 1,847 |
861 | package cn.springcloud.gray.event.listener;
import cn.springcloud.gray.DataSet;
import cn.springcloud.gray.GrayManager;
import cn.springcloud.gray.event.RoutePolicyEvent;
import cn.springcloud.gray.local.InstanceLocalInfo;
import cn.springcloud.gray.local.InstanceLocalInfoObtainer;
import cn.springcloud.gray.model.Gra... | 3,290 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 3,235 |
348 | {"nom":"<NAME>","circ":"3ème circonscription","dpt":"Charente-Maritime","inscrits":1254,"abs":664,"votants":590,"blancs":65,"nuls":30,"exp":495,"res":[{"nuance":"REM","nom":"<NAME>","voix":288},{"nuance":"LR","nom":"M. <NAME>","voix":207}]} | 96 |
9,680 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
'''
NNI example for supported TaylorFOWeight pruning algorithms.
In this example, we show the end-to-end pruning process: pre-training -> pruning -> fine-tuning.
Note that pruners use masks to simulate the real pruning. In order to obtain a real ... | 2,433 |
339 | #pragma once
#include <WrpConsole.h>
#include <shared/AfxMath.h>
#include <string>
#include <map>
#include <vector>
#include <list>
class CommandSystem
{
public:
bool Enabled;
CommandSystem();
~CommandSystem() {
Clear();
}
void Add(char const * command);
void AddTick(char const * c... | 3,266 |
397 | <reponame>SafetyCulture/quickblox-ios-sdk
//
// CallParticipants.h
// sample-conference-videochat
//
// Created by Injoit on 21.09.2020.
// Copyright © 2020 QuickBlox Team. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "CallParticipant.h"
NS_ASSUME_NONNULL_BEGIN
@interface CallParticipants : NSObject
@... | 429 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.security.keyvault.keys.cryptography;
import com.azure.core.annotation.ServiceClientBuilder;
import com.azure.core.credential.TokenCredential;
import com.azure.core.cryptography.AsyncKeyEnc... | 4,716 |
605 | package com.sohu.tv.mq.cloud.service;
import static org.junit.Assert.fail;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRu... | 499 |
7,567 | #ifndef _SDK_OVERRIDE_EAGLE_SOC_H_
#define _SDK_OVERRIDE_EAGLE_SOC_H_
#include_next "eagle_soc.h"
#define GPIO_SIGMA_DELTA 0x00000068 //defined in gpio register.xls
#define GPIO_SIGMA_DELTA_SETTING_MASK (0x00000001ff)
#define GPIO_SIGMA_DELTA_ENABLE 1
#define GPIO_SIGMA_DELTA_DISABLE (~GPIO_SIGMA_DELTA_ENA... | 763 |
314 | //
// NSArray+ZJHelperKit.h
// ZJUIKit
//
// Created by dzj on 2018/1/19.
// Copyright © 2018年 kapokcloud. All rights reserved.
//
@interface NSArray (ZJHelperKit)
/**
* 返回安全的索引
@param index 索引
*/
-(id)zj_objectAtIndex:(NSInteger)index;
/**
* 该数组是否包含这个字符串
@param string 字符串
@return Bool
*/
-(BOOL)zj... | 220 |
306 | <filename>Sketchbots/sw/labqueue/config.py<gh_stars>100-1000
# Copyright 2013 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/LI... | 1,960 |
310 | {
"name": "V-4000",
"description": "A tractor winch.",
"url": "https://www.fransgard.dk/all-products/forest/v-winch<Paste>"
}
| 55 |
317 | <reponame>realcredit1/drafter
//
// refract/ExpandVisitor.cc
// librefract
//
// Created by <NAME> on 21/05/15.
// Copyright (c) 2015 Apiary Inc. All rights reserved.
//
#include "Element.h"
#include "Registry.h"
#include <stack>
#include <functional>
#include <sstream>
#include "SourceAnnotation.h"
#include "... | 6,825 |
435 | {
"abstract": "Selinon is a task flow manager that enhances Celery and gives you an\nability to create advanced task flows serving large workflows in your\ncluster.\n\n*Tags:* Big Data, Infrastructure, Parallel Programming, Programming,\nPython\n\nScheduled on `wednesday 14:50 </schedule/#wed-14:50-lecture>`__ in roo... | 676 |
338 | package com.nurkiewicz.asyncretry.backoff;
import com.nurkiewicz.asyncretry.RetryContext;
/**
* @author <NAME>
* @since 7/16/13, 6:14 PM
*/
public class FixedIntervalBackoff implements Backoff {
public static final long DEFAULT_PERIOD_MILLIS = 1000;
private final long intervalMillis;
public FixedIntervalBack... | 195 |
647 | <gh_stars>100-1000
/*
PURPOSE: (The Trick simulation executive MAIN program.)
REFERENCE: ((Bailey, R.W, and Paddock, E.J.)
(Trick Simulation Environment)
(JSC / Automation and Robotics Division)
(J... | 640 |
764 | {"symbol": "PGT","address": "0x9b3E946E1a8ea0112b147aF4E6e020752F2446BC","overview":{"en": ""},"email": "<EMAIL>","website": "https://puregold.io","state": "NORMAL","links": {"blog": "","twitter": "https://twitter.com/Puregold_SG","telegram": "https://t.me/joinchat/G0WpKFEKijI_lSVpn1Mb0Q","github": ""}} | 131 |
601 | /*
* Copyright 2021 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 applic... | 1,420 |
574 | /*
* Copyright 2019 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://www.apache.org/licenses/LICENSE-2.0
*... | 860 |
1,686 | // Copyright (c) 2015 The Chromium Embedded Framework 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 CEF_TESTS_CEFCLIENT_BROWSER_ROOT_WINDOW_MANAGER_H_
#define CEF_TESTS_CEFCLIENT_BROWSER_ROOT_WINDOW_MANAGER_H_
#pragma once
... | 1,804 |
785 | /*
* Copyright © 2020 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... | 6,924 |
1,697 | package iot.technology.custom.client.console;
import io.netty.channel.Channel;
import iot.technology.custom.util.SessionUtil;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
/**
* @author <NAME>
* @date 2020/8/10 18:12
*/
public class ConsoleCommandManager implements ConsoleCommand {
... | 468 |
530 | <gh_stars>100-1000
package org.carlspring.strongbox.services;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Map;
import org.carlspring.strongbox.domain.DirectoryListing;
import org.carlspring.strongbox.providers.io.RepositoryPath;
import org.carlspring.strongbox.storage.Storage;
import org.c... | 257 |
985 | /*
* (C) 2007-2012 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 applic... | 893 |
775 | {
"#env-function": {
"current": {
"number": "3",
"spec": "CSS Environment Variables 1",
"text": "Using Environment Variables: the env() notation",
"url": "https://drafts.csswg.org/css-env-1/#env-function"
}
},
"#env-in-shorthands": {
"current": {
"number": "3.1",
"s... | 511 |
1,738 | <filename>dev/Code/Sandbox/Editor/AzAssetBrowser/Preview/LegacyPreviewerFactory.cpp
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of th... | 932 |
1,338 | <reponame>Yn0ga/haiku
/*
* Copyright © 2007-2009 <NAME> <<EMAIL>>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "RemovePLItemsCommand.h"
#include <new>
#include <stdio.h>
#include <Alert.h>
#include <Autolock.h>
#include <Catalog.h>
#include <Locale.h>
#include "Playlist.h"
... | 1,631 |
852 | #ifndef Alignment_CommonAlignment_AlignableDetUnit_H
#define Alignment_CommonAlignment_AlignableDetUnit_H
#include "Alignment/CommonAlignment/interface/Alignable.h"
#include "Geometry/CommonDetUnit/interface/GeomDet.h"
/// A concrete class that allows to (mis)align a DetUnit.
///
/// Typically all AlignableComposites... | 1,057 |
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 "chrome/browser/ui/views/autofill/payments/offer_notification_bubble_views_test_base.h"
#include "build/build_config.h"
#include "chrome/browser... | 2,810 |
746 | <reponame>fari-99/apicurio-studio<filename>tools/release/src/main/java/io/apicurio/studio/tools/release/ReleaseTool.java
/*
* Copyright 2017 JBoss 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 th... | 6,973 |
2,077 | /**
Copyright (c) 2015-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.
*/
#ifndef __plist_Null_h
#define __plist_Null_h
#include <plist/Base.h>
#include <plist/Object.h>
namespace plist {
... | 476 |
589 | <filename>inspectit.ui.rcp/src/main/java/rocks/inspectit/ui/rcp/handlers/CopyLogMessageHandler.java<gh_stars>100-1000
package rocks.inspectit.ui.rcp.handlers;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import o... | 488 |
682 | // Not PJs code, but very useful and used everywhere */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "vtr_util.h"
#include "vtr_memory.h"
#include "string_cache.h"
unsigned long
string_hash(STRING_CACHE* sc,
const char* string);
void generate_sc_hash(STRING_CACHE* sc);
unsigned long... | 2,926 |
918 | /*
* Copyright 2017 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 applicable law or agreed to in writ... | 6,754 |
563 | <reponame>philippguertler/mesh
{
"type" : "object",
"id" : "urn:jsonschema:com:gentics:mesh:core:rest:project:ProjectCreateRequest",
"properties" : {
"name" : {
"type" : "string",
"required" : true,
"description" : "Name of the project"
},
"schema" : {
"type" : "object",
... | 652 |
399 | from openrec.tf1.modules.interactions.pairwise_log import PairwiseLog
from openrec.tf1.modules.interactions.pairwise_eu_dist import PairwiseEuDist
from openrec.tf1.modules.interactions.pointwise_mse import PointwiseMSE
from openrec.tf1.modules.interactions.mlp_softmax import MLPSoftmax
from openrec.tf1.modules.interact... | 141 |
65,371 | <reponame>apokalyzr/bitcoin
/***********************************************************************
* Copyright (c) 2013, 2014, 2015 <NAME>, <NAME> *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or https://www.opensource.org/licenses/mit-license.php.*
**********... | 1,716 |
1,738 | // Modifications copyright Amazon.com, Inc. or its affiliates
// Modifications copyright Crytek GmbH
#ifndef TIMER_H
#define TIMER_H
#ifdef _WIN32
#include <Windows.h>
#else
#include <sys/time.h>
#endif
typedef struct
{
#ifdef _WIN32
LARGE_INTEGER frequency;
LARGE_INTEGER startCount;
LARGE_INTEGER endCou... | 200 |
414 | <gh_stars>100-1000
from enum import Enum
from peewee import *
from ..models import *
from ..redis import rd, with_lock
class Status(Enum):
FREE = 0
IN_QUEUE = 1
MATCHED = 2
class RedisQueue:
def __init__(self, name):
self.name = name
@with_lock("matching")
def __len__(self):
... | 581 |
603 | <gh_stars>100-1000
package net.maxbraun.mirror;
import android.content.Context;
import android.location.Location;
import android.util.Log;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import net.maxbraun.mirror.Air.AirData;
import org.json.JSONArray;... | 1,582 |
407 | <filename>paas/appmanager/tesla-appmanager-domain/src/main/java/com/alibaba/tesla/appmanager/domain/dto/AppMetaDTO.java
package com.alibaba.tesla.appmanager.domain.dto;
import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* 应用元信息 D... | 363 |
646 | package com.dimple.project.log.service;
import com.dimple.project.log.domain.LoginLog;
import java.util.List;
/**
* @className: LoginLogService
* @description: 系统访问日志情况信息 服务层
* @author: Dimple
* @date: 10/22/19
*/
public interface LoginLogService {
/**
* 新增系统登录日志
*
* @param loginLog 访问日志对象
... | 453 |
457 | <gh_stars>100-1000
//
// bridge.h
// Safe
//
// Created by <NAME> on 7/1/15.
// Copyright © 2015 ONcast. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef void (^ AnyBlock)();
NSException *_try(AnyBlock block);
bool __builtin_uadd_overflow (unsigned x, unsigned y, unsigned *sum);
bool __builtin_... | 543 |
575 | // 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.
package org.chromium.components.payments.test_support;
import androidx.annotation.Nullable;
import org.mockito.Mockito;
import org.chromium.components.... | 3,443 |
5,535 | /*-------------------------------------------------------------------------
*
* isolationtester.h
* include file for isolation tests
*
* Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* src/test/... | 442 |
831 | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 603 |
12,278 | // Copyright 2014 the V8 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.
#include "src/codegen/code-factory.h"
#include "src/builtins/builtins-descriptors.h"
#include "src/ic/ic.h"
#include "src/init/bootstrapper.h"
#include... | 7,627 |
2,567 | package ru.lanwen.verbalregex.matchers;
import org.hamcrest.Description;
import org.hamcrest.Factory;
import org.hamcrest.TypeSafeMatcher;
import ru.lanwen.verbalregex.VerbalExpression;
/**
* User: lanwen
* Date: 29.05.14
* Time: 20:06
*/
public class TestMatchMatcher extends TypeSafeMatcher<VerbalExpression> {
... | 364 |
368 | package ezvcard.io.scribe;
import java.util.Date;
import ezvcard.VCardDataType;
import ezvcard.VCardVersion;
import ezvcard.io.CannotParseException;
import ezvcard.io.ParseContext;
import ezvcard.io.html.HCardElement;
import ezvcard.io.json.JCardValue;
import ezvcard.io.text.WriteContext;
import ezvcard.io.xml.XCardE... | 1,269 |
1,056 | <filename>php/php.editor/src/org/netbeans/modules/php/editor/verification/PHP71UnhandledError.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. ... | 2,989 |
1,986 | /**
* Create a sample BLE client that connects to a BLE server and then retrieves the current
* characteristic value. It will then periodically update the value of the characteristic on the
* remote server with the current time since boot.
*/
#include <esp_log.h>
#include <string>
#include <sstream>
#include <sys/... | 2,229 |
17,275 | <filename>core/src/test/java/hudson/scheduler/CronTabEventualityTest.java
package hudson.scheduler;
import static org.junit.Assert.fail;
import antlr.ANTLRException;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;
import java.util.GregorianCalendar;
imp... | 1,926 |
310 | #include "clar_libgit2.h"
#include "patch/patch_common.h"
static void verify_patch_id(const char *diff_content, const char *expected_id)
{
git_oid expected_oid, actual_oid;
git_diff *diff;
cl_git_pass(git_oid_fromstr(&expected_oid, expected_id));
cl_git_pass(git_diff_from_buffer(&diff, diff_content, strlen(diff_c... | 778 |
348 | {"nom":"Issy-les-Moulineaux","circ":"10ème circonscription","dpt":"Hauts-de-Seine","inscrits":45375,"abs":19009,"votants":26366,"blancs":517,"nuls":0,"exp":25849,"res":[{"nuance":"REM","nom":"<NAME>","voix":10951},{"nuance":"UDI","nom":"<NAME>","voix":5968},{"nuance":"DIV","nom":"M. <NAME>","voix":2024},{"nuance":"FI",... | 379 |
12,278 | // Copyright 2015-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)
#include <benchmark/benchmark.h>
#include <boost/histogram/axis.hpp>
#include <boost/histogram/axis/traits.hpp>
#include <boost/hi... | 2,340 |
4,901 | <reponame>VSaliy/j2objc
/*
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
... | 2,341 |
435 | /*
* Copyright (C) 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
*
* Unless required by applicable ... | 2,719 |
335 | <filename>C/Craft_noun.json
{
"word": "Craft",
"definitions": [
"An activity involving skill in making things by hand.",
"Work or objects made by hand.",
"Skills involved in carrying out one's work.",
"Denoting or relating to food or drink made in a traditional or non-mechanized ... | 220 |
874 | package com.jnape.palatable.lambda.optics.prisms;
import com.jnape.palatable.lambda.adt.Either;
import com.jnape.palatable.lambda.adt.coproduct.CoProduct2;
import com.jnape.palatable.lambda.optics.Prism;
import static com.jnape.palatable.lambda.optics.Prism.simplePrism;
/**
* {@link Prism Prisms} for {@link Either}... | 451 |
313 | // Copyright 2021 The AIBENCH Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... | 412 |
575 | // Copyright (c) 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 "chrome/browser/safe_browsing/safe_browsing_subresource_tab_helper.h"
#include "base/memory/ptr_util.h"
#include "chrome/browser/browser_pro... | 888 |
734 | /*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
`---' `--' `... | 966 |
1,134 | """
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0
"""
from test.unit.rules import BaseRuleTestCase
from cfnlint.rules.resources.UniqueNames import UniqueNames # pylint: disable=E0401
class TestUniqueNames(BaseRuleTestCase):
def setUp(self):
super(TestUn... | 208 |
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.
#ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_SCHEDULER_H_
#define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_SCHEDULER_H_
#include <map>
... | 1,228 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.