max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
3,066 | /*
* Copyright (C) 2006 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 by applicable law or agreed to ... | 731 |
716 | /*
* 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
*
*/
#include <stddef.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#ifndef _WIN64
#include <pth... | 5,079 |
1,056 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 1,215 |
1,253 | <reponame>CarbonDDR/al-go-rithms
#include <stdio.h>
#include <math.h>
#define MAX 1000
int tree[MAX] = {0}; // To store segment tree
int lazy[MAX] = {0}; // To store pending updates
void updateRangeUtil(int si, int ss, int se, int us, int ue, int diff)
{
if (lazy[si] != 0)
{
tree[si] += (se-ss+1)*lazy[si];
i... | 1,091 |
1,968 | //////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: <EMAIL>
//
///////////////////////////////////////... | 945 |
590 | // AMD Cauldron code
//
// Copyright(c) 2020 Advanced Micro Devices, Inc.All rights reserved.
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitat... | 4,922 |
1,894 | # Copyright 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.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import re
import six
def ToUnderscore(obj):
... | 328 |
316 | <reponame>roblabs/maplibre-gl-native
#pragma once
#include <mbgl/storage/file_source.hpp>
namespace mbgl {
class ResourceOptions;
class ProxyFileSource : public FileSource {
public:
ProxyFileSource(std::shared_ptr<FileSource>, const ResourceOptions&);
~ProxyFileSource();
std::unique_ptr<AsyncRequest> ... | 443 |
45,293 | <gh_stars>1000+
module main {
requires autoB;
}
| 22 |
3,282 | <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.
package org.chromium.chrome.browser.compositor.overlays.strip;
import org.chromium.chrome.browser.compositor.layouts.Layout;
import org.c... | 1,440 |
1,855 | <reponame>SammyEnigma/NanaZip
/* 7zAlloc.h -- Allocation functions
2017-04-03 : <NAME> : Public domain */
#ifndef __7Z_ALLOC_H
#define __7Z_ALLOC_H
#include "7zTypes.h"
EXTERN_C_BEGIN
void *SzAlloc(ISzAllocPtr p, size_t size);
void SzFree(ISzAllocPtr p, void *address);
void *SzAllocTemp(ISzAllocPtr p, size_t size... | 176 |
16,461 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <CoreGraphics/CoreGraphics.h>
#import <Foundation/Foundation.h>
#import <ABI42_0_0React/ABI42_0_0RCTDefines.h>
static NSS... | 916 |
776 | /*
* Copyright 2019-present HiveMQ GmbH
*
* 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 ag... | 1,176 |
460 | /*
* Copyright (C) 1999-2001 <NAME> (<EMAIL>)
* Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserved.
* Copyright (C) 2007 <NAME> <<EMAIL>>
* Copyright (C) 2009 Google, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modi... | 516 |
563 | package com.gentics.mesh.core.rest.event.group;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.gentics.mesh.core.rest.event.AbstractMeshEventModel;
import com.gentics.mesh.core.rest.group.GroupReference;
import com.gentics.mesh.core.res... | 321 |
450 | /*
* 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 ... | 469 |
488 | // t0487b.cc
// more complex version of t0487.cc, exposing need to
// translate the DQT at the level of CVAtomicType, not
// just AtomicType
template <class T>
void f(T*, typename T::INTC *, int);
struct C {
typedef int const INTC;
};
void g(C *c, int const *i)
{
f(c, i, 1);
}
| 112 |
5,169 | <gh_stars>1000+
{
"name": "RkyRemoteUpdateAppIOS",
"summary": "RemoteUpdate Tools fo iOS.",
"description": "It's a RemoteUpdate Tools for iOS",
"version": "0.1.2",
"license": "MIT",
"platforms": {
"ios": "7.0"
},
"requires_arc": true,
"source": {
"git": "https://github.com/CleverMeow/RkyRemote... | 537 |
325 | <reponame>sjkim04/AlphaGOZero-python-tensorflow
#!/usr/bin/python
import numpy as np
import sys
import os
import os.path
import time
import random
from SGFReader import SGFReader
from Board import *
import Features
import NPZ
def make_move_arr(x, y):
return np.array([x,y], dtype=np.int8)
def show_plane(array):
... | 2,742 |
1,473 | /*
* Copyright 2021 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 in w... | 948 |
319 | <reponame>nairobi222/Alligator
package me.aartikov.alligatorcompiler;
public enum ScreenType {
ACTIVITY("android.app.Activity"),
DIALOG_FRAGMENT("androidx.fragment.app.DialogFragment"),
FRAGMENT("androidx.fragment.app.Fragment");
private final String className;
ScreenType(String className) {
this.className = ... | 139 |
367 | #define LOOP_TO_0(ID, N, BODY) {int ID; switch(N){\
case 7: ID=7;{BODY};\
case 6: ID=6;{BODY};\
case 5: ID=5;{BODY};\
case 4: ID=4;{BODY};\
case 3: ID=3;{BODY};\
case 2: ID=2;{BODY};\
case 1: ID=1;{BODY};\
case 0: ID=0;{BODY};\
}}
#define LOOP_TO(ID, START, END, BODY) \
LOOP_TO_0(ID, (END)-(START), ID=(END)-ID; BODY... | 338 |
5,169 | <gh_stars>1000+
{
"name": "SBNag.swift",
"version": "0.0.1",
"summary": "A Swift library for nagging users to take an action.",
"description": "This is a simple swift pod to manage the logic behind nagging users to take actions like rating your app or upgrading to a paid version. To do so, simply create a new S... | 344 |
401 | package com.zwh.mvparms.eyepetizer.mvp.ui.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import andro... | 5,818 |
1,144 | <filename>openwrt/package/utils/swupdate/src/include/pctl.h
/*
* (C) Copyright 2016
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either v... | 564 |
504 | <reponame>smmccabe/dsl<gh_stars>100-1000
package com.structurizr.dsl;
import com.structurizr.model.Location;
import com.structurizr.model.Person;
import com.structurizr.model.SoftwareSystem;
import org.junit.jupiter.api.Test;
import java.util.List;
import static org.junit.jupiter.api.Assertions.assertEquals;
class ... | 1,004 |
831 | # Problem: https://www.hackerrank.com/challenges/diagonal-difference/problem
# Score: 10
a = []
result = 0
for i in range(int(input())):
a = list(map(int, input().split()))
result += a[i] - a[- 1 - i]
print(abs(result))
| 91 |
1,025 | <reponame>jeongjoonyoo/CodeXL
//==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file pdLoadedModule.h
///
//=========================================================... | 458 |
695 | // Time: O(k * C(n, k)), k is max length of combination
// Space: O(k)
class Solution {
public:
/**
* @param num: Given the candidate numbers
* @param target: Given the target number
* @return: All the combinations that sum to target
*/
vector<vector<int>> combinationSum2(vector<int> &num,... | 573 |
3,673 | <reponame>jaeh/IncludeOS<gh_stars>1000+
#include <common.cxx>
#include <net/http/status_codes.hpp>
#include <net/http/status_code_constants.hpp>
CASE("code_description() returns textual description of status code")
{
auto desc = http::code_description(http::Not_Found);
EXPECT(desc == "Not Found");
}
| 111 |
4,962 | /*
* Copyright 2014 - Present <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 1,358 |
328 | /**
* @file sscan.h
*
*/
/* Copyright (C) 2016-2020 by <NAME> mailto:<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 without restriction, including without limitation the rig... | 791 |
5,169 | <gh_stars>1000+
{
"name": "AlertServices",
"version": "0.1.0",
"summary": "A description of AlertServices. AlertServices is a custom alert file",
"description": "this is description.A description of AlertServices. AlertServices is a custom alert file.A description of AlertServices. AlertServices is a custom ale... | 279 |
677 | <reponame>willgos/kraken
/*
* Copyright (C) 2013-2016 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* not... | 964 |
387 | <gh_stars>100-1000
#ifndef _CPP_INTERPOLATION_H_
#define _CPP_INTERPOLATION_H_
#include "../export.h"
#include <dlib/array.h>
#include <dlib/pixel.h>
#include <dlib/image_processing.h>
#include <dlib/image_processing/full_object_detection.h>
#include <dlib/image_processing/generic_image.h>
#include <dlib/image_transfo... | 21,749 |
879 | package org.zstack.test.compute.vm;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.componentloader.ComponentLoader;
import org.zstack.core.db.DatabaseFacade;
import org.zstack.header.allocator.HostCapacityVO;
import org.zs... | 834 |
864 | # Copyright 2021 Collate
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software... | 2,436 |
1,178 | <filename>linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/bits/stringfwd.h
// <string> Forward declarations -*- C++ -*-
// Copyright (C) 2001-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and... | 882 |
6,224 | /*
* Copyright (c) 2017 <NAME>
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _NATIVE_POSIX_HW_MODELS_H
#define _NATIVE_POSIX_HW_MODELS_H
#include "zephyr/types.h"
#include <inttypes.h>
#ifdef __cplusplus
extern "C" {
#endif
#define NEVER UINT64_MAX
void hwm_main_loop(void);
void hwm_init(void);
void hwm_c... | 236 |
2,759 | <reponame>asad-awadia/yugabyte-db<gh_stars>1000+
// Copyright (c) Yugabyte, 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
//
// Unles... | 944 |
348 | {"nom":"Chaussin","circ":"3ème circonscription","dpt":"Jura","inscrits":1072,"abs":477,"votants":595,"blancs":42,"nuls":23,"exp":530,"res":[{"nuance":"LR","nom":"<NAME>","voix":306},{"nuance":"MDM","nom":"<NAME>","voix":224}]} | 91 |
2,548 | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Author: kerlomz <<EMAIL>> | 34 |
2,074 | //
// OHLCPlot.h
// CorePlotGallery
//
#import "PlotItem.h"
@interface OHLCPlot : PlotItem<CPTPlotDataSource,
CPTTradingRangePlotDelegate>
@end
| 87 |
1,469 | <filename>easymvp-test/src/androidTest/java/com/sixthsolution/easymvp/test/conductor/ConductorTest.java
package com.sixthsolution.easymvp.test.conductor;
import android.support.test.filters.MediumTest;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import com.sixt... | 391 |
543 | /*
* Copyright 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 2,690 |
755 | <reponame>washboard/asn1c
/*
* A generic value of different syntaxes.
*/
#ifndef ASN1_PARSER_VALUE_H
#define ASN1_PARSER_VALUE_H
struct asn1p_constraint_s; /* Forward declaration */
struct asn1p_module_s;
struct asn1p_expr_s;
/*
* A wrapper around various kinds of values.
*/
typedef struct asn1p_value_s {
/*
*... | 1,151 |
432 | /* $OpenBSD: rsa_locl.h,v 1.11 2019/11/02 13:47:41 jsing Exp $ */
__BEGIN_HIDDEN_DECLS
#define RSA_MIN_MODULUS_BITS 512
/* Macros to test if a pkey or ctx is for a PSS key */
#define pkey_is_pss(pkey) (pkey->ameth->pkey_id == EVP_PKEY_RSA_PSS)
#define pkey_ctx_is_pss(ctx) (ctx->pmeth->pkey_id == EVP_PKEY_RSA_PSS)
R... | 344 |
447 | <filename>Plugin/Plugin.cpp
#include "Common.h"
#include "Event.h"
#include "Receiver.h"
#include "Sender.h"
#include "System.h"
#include "Util.h"
#include <mutex>
using namespace KlakSpout;
namespace {
// Local mutex object used to prevent race conditions between the main thread
// and the render thread. This shoul... | 871 |
1,993 | /*
* Copyright 2013-2020 The OpenZipkin Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 786 |
2,081 | <reponame>acrop/iotjs
/* Copyright 2019-present Samsung Electronics Co., Ltd. and other contributors
*
* 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,201 |
348 | {"nom":"Morbecque","circ":"15ème circonscription","dpt":"Nord","inscrits":2088,"abs":1079,"votants":1009,"blancs":80,"nuls":38,"exp":891,"res":[{"nuance":"REM","nom":"<NAME>","voix":570},{"nuance":"FN","nom":"<NAME>","voix":321}]} | 92 |
660 | package quick.pager.shop.service;
import com.alibaba.fastjson.JSON;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.stream.Collectors;
import org.springframework.beans.facto... | 2,024 |
323 | <filename>src/main/java/com/mcg/plugin/execute/strategy/FlowWontonStrategy.java<gh_stars>100-1000
/*
* @Copyright (c) 2018 缪聪(<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 a... | 4,238 |
904 | <filename>galaxy/importer/tests/test_finders.py
# (c) 2012-2018, Ansible by Red Hat
#
# This file is part of Ansible Galaxy
#
# Ansible Galaxy is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by
# the Apache Software Foundation, either version 2 of the Lice... | 1,431 |
1,362 | <reponame>FriedDede/rpi4-osdev
#include "include/wgt.h"
#include "include/mem.h"
#include "include/multicore.h"
// ######## REQUIRED FUNCTIONS ########
unsigned long state0 = 1000;
unsigned long state1 = 2000;
unsigned long rand(void)
{
unsigned long s1 = state0;
unsigned long s0 = state1;
state0 = s0;
... | 919 |
1,444 |
package mage.cards.b;
import java.util.UUID;
import mage.MageInt;
import mage.ObjectColor;
import mage.abilities.keyword.FirstStrikeAbility;
import mage.abilities.keyword.ProtectionAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
/**
... | 364 |
546 | <gh_stars>100-1000
/// \file
/// \author
///
/// \brief Implementation of a delegate for the picker items.
///
/// Copyright (c) . All rights reserved.
/// Licensed under the MIT License. See LICENSE file in the project root for full license information.
#include "stdafx.h"
#include "PickerItemDelegate.h"
#inc... | 1,618 |
446 | /**
Source: https://bugs.chromium.org/p/project-zero/issues/detail?id=935
As a part of the KNOX extensions available on Samsung devices, Samsung provides a new service which allows the generation of OTP tokens.
The tokens themselves are generated in a TrustZone application within the TEE (UID: fffffffff000000000... | 890 |
2,350 | <reponame>NucciTheBoss/pytorch_geometric<filename>torch_geometric/nn/conv/ppf_conv.py
from typing import Callable, Optional, Union
import torch
from torch import Tensor
from torch_sparse import SparseTensor, set_diag
from torch_geometric.nn.conv import MessagePassing
from torch_geometric.typing import Adj, OptTensor,... | 2,695 |
387 | /*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Version 2.0 (the "License"); you may not use this file exce... | 912 |
841 | package org.jboss.resteasy.test.interceptor.gzip;
import org.jboss.arquillian.container.test.api.OperateOnDeployment;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import java.net.URL;
/**
* @tpSubChapter Gzip
* @tpChapter Integration tests
* @tpTestCaseDetails Regression test ... | 377 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-g2mq-x5px-cf79",
"modified": "2022-05-13T01:04:24Z",
"published": "2022-05-13T01:04:24Z",
"aliases": [
"CVE-2014-2815"
],
"details": "Microsoft OneNote 2007 SP3 allows remote attackers to execute arbitrary code via a crafted OneNote file that triggers creation ... | 708 |
354 | /*-------------------------------------------------------------------------
* drawElements Quality Program Random Shader Generator
* ----------------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you ma... | 4,771 |
826 | /***************************************************************************
* Copyright 1998-2020 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
* ... | 1,346 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/DataAccess.framework/Frameworks/DACardDAV.framework/DACardDAV
*/
#import <DACardDAV/DACardDAV-Structs.h>
#import <DACardDAV/XXUnknownSuperclass.h>
#import <DACardDAV/CoreDAVDiscoveryTaskGroupDelegate.h>
#import <DACa... | 248 |
14,668 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/renderer_host/ancestor_throttle.h"
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/memory/ref_counted.... | 2,903 |
1,617 | <reponame>xymoc/BoAT-X-Framework
/*
* Implementation of the hazardous parts of the SSS library
*
* Copyright (c) 2017 <NAME> <<EMAIL>>
* Copyright (c) 2019 SatoshiLabs
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Soft... | 4,795 |
1,058 | // Copyright (c) 2020-2021 ByteDance, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, p... | 1,168 |
623 | // Copyright (C) 2021 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 applicable ... | 494 |
4,200 | <gh_stars>1000+
/*
* Copyright 2021 Rundeck, Inc. (http://rundeck.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 1,537 |
530 | package org.carlspring.strongbox.cron.config;
import java.util.concurrent.Executor;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import javax.inject.Inject;
import org.carlspring.strongbox.config.DataServiceConfig;
import org.carlspring.strongbox.config.StorageCoreConfig;
im... | 682 |
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 ... | 615 |
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.mariadb.models;
import com.azure.core.util.Context;
import com.azure.resourcemanager.mariadb.fluent.models.ConfigurationInner;
... | 2,419 |
1,425 | /*
* 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 ... | 2,285 |
407 | <filename>core/src/main/java/com/alibaba/smart/framework/engine/model/instance/ActivityInstance.java
package com.alibaba.smart.framework.engine.model.instance;
import java.util.Date;
import java.util.List;
/**
* @author 高海军 帝奇 2016.11.11
* @author ettear 2016.04.13
*/
public interface ActivityInstance extends Ins... | 671 |
785 | /*
* Copyright © 2018 Apple Inc. and the ServiceTalk project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 1,752 |
336 | import sys
if sys.version_info < (3, 6, 1):
print('Sorry, requires Python >=3.6.1, not Python 2.x')
sys.exit(1)
import os
try:
import click
import docker
import rich
except ModuleNotFoundError:
os.system('pip3 install --user click pyyaml docker rich docker-compose')
import site
from ... | 1,042 |
5,169 | <gh_stars>1000+
{
"name": "OnfidoAuth",
"version": "0.1.0",
"summary": "A framework for authentication with Onfido.",
"homepage": "https://github.com/onfido/onfido-auth-sdk-ios",
"license": {
"type": "Copyright",
"text": "Copyright 2021 Onfido Ltd. All rights reserved."
},
"authors": {
"Onfido... | 368 |
316 | #import <UIKit/UIKit.h>
@class MGLMapView;
@interface MBXOfflinePacksTableViewController : UITableViewController
@property (nonatomic, weak) MGLMapView *mapView;
@end
| 61 |
17,703 | #include "source/common/http/http1/header_formatter.h"
#include "gtest/gtest.h"
namespace Envoy {
namespace Http {
namespace Http1 {
TEST(ProperCaseHeaderKeyFormatterTest, Formatting) {
ProperCaseHeaderKeyFormatter formatter;
const std::string downcased = "content-type";
EXPECT_EQ(formatter.format(downcased), ... | 244 |
1,178 | <filename>analysis/aero/apparent_wind_util.py
# Copyright 2020 Makani Technologies LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | 822 |
777 | <reponame>google-ar/chromium
# 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.
from gpu_tests.gpu_test_expectations import GpuTestExpectations
# See the GpuTestExpectations class for documentation.
class C... | 893 |
1,431 | package com.asura.monitor.monitor.entity;
/**
* <p></p>
*
* <PRE>
* <BR> 修改记录
* <BR>-----------------------------------------------
* <BR> 修改日期 修改人 修改内容
* </PRE>
*
* @author zhaozq
* @version 1.0
* @since 1.0
*/
public class AgentStatusEntity {
// 组ID
private String groupsId;... | 637 |
3,215 | import json
import os
import sys
import time
import unittest
import jc.parsers.systeminfo
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
# Set the timezone on POSIX systems. Need to manually set for Windows tests
if not sys.platform.startswith('win32'):
os.environ['TZ'] = 'America/Los_Angeles'
time.tzs... | 797 |
575 | <reponame>Ron423c/chromium
// 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.
#include "components/sync_user_events/user_event_model_type_controller.h"
#include <utility>
#include "base/bind.h"
#include ... | 685 |
1,511 | /* Copyright (C) 1999,2001
*
* Author: J.E.J.Bottom<EMAIL> | 25 |
12,278 | <reponame>rajeev02101987/arangodb<filename>3rdParty/boost/1.71.0/libs/smart_ptr/test/sp_interlocked_test.cpp
//
// sp_interlocked_test.cpp
//
// Copyright 2014 <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... | 647 |
4,879 | <filename>iphone/Maps/Classes/CustomAlert/RoutingDisclaimerAlert/MWMRoutingDisclaimerAlert.h
#import "MWMAlert.h"
@interface MWMRoutingDisclaimerAlert : MWMAlert
+ (instancetype)alertWithOkBlock:(MWMVoidBlock)block;
@end
| 76 |
457 | <reponame>lnexenl/XTDrone
/*
* Copyright (C) 2019 Open Source Robotics Foundation
*
* 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
*
... | 3,161 |
406 | package org.broad.igv.feature.dsi;
import htsjdk.tribble.Feature;
/**
* Created by jrobinson on 7/19/16.
* <p>
* Chr - Number of chromosome
* Position - Start position
* Base - Nucleobase cytosine or guanine
* Total - Total number of reads
* Meth. - Number of methylated reads
* Unmeth. - Number of unmet... | 831 |
521 | <reponame>manesioz/graphql-compiler
# Copyright 2019-present Kensho Technologies, LLC.
from typing import Callable
from neo4j import GraphDatabase
NEO4J_SERVER = "localhost"
NEO4J_PORT = 7688
NEO4J_USER = "neo4j"
NEO4J_PASSWORD = "<PASSWORD>" # nosec
class Neo4jClient(object):
def __init__(self, graph_name: s... | 400 |
2,952 | <reponame>PetersResearchGroup/PCND<filename>hoomd/extern/cereal/unittests/unordered_set.hpp
/*
Copyright (c) 2014, <NAME>, <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:
* Redistrib... | 1,735 |
1,017 | <filename>baselines/keyword_based_test.py
"""Tests for keyword_based.py."""
import unittest
from baselines import keyword_based
class TfIdfMethodTest(unittest.TestCase):
def test_train_test(self):
"""Check that it can correctly rank a simple example."""
method = keyword_based.TfIdfMethod()
... | 845 |
1,467 | <reponame>awishn02/aws-sdk-java-v2
{
"version": "2.10.5",
"date": "2019-10-30",
"entries": [
{
"type": "feature",
"category": "Amazon ElastiCache",
"description": "Amazon ElastiCache for Redis 5.0.5 now allows you to modify authentication tokens by setting and rot... | 222 |
533 | <gh_stars>100-1000
#include "saber/funcs/impl/arm/neon/impl/conv_arm_impl.h"
#include "saber/funcs/impl/arm/neon/impl/conv_block_utils.h"
#ifdef USE_ARM_PLACE
namespace anakin{
namespace saber{
#ifdef __aarch64__
void conv_3x3s1_direct_int8(const int8_t* din, int32_t* dout, \
int num, int c... | 19,731 |
1,053 | <gh_stars>1000+
/* ----------------------------------------------------------------------------
* ATMEL Microcontroller Software Support
* ----------------------------------------------------------------------------
* Copyright (c) 2008, Atmel Corporation
* All rights reserved.
*
* Redistribution a... | 5,494 |
371 | <reponame>Evan-li173/Swordsman-Evan<gh_stars>100-1000
{
"list": [
{
"name":"Hugo",
"url":"https://gohugo.io/",
"desc":"The world’s fastest framework for building websites."
},
{
"name":"Hugo Themes",
"url":"https://github.com/gohugoio/hugoThemes",
"desc":"A curated dire... | 166 |
484 | package com.theromus.sha;
import static com.theromus.utils.HexUtils.leftRotate64;
import static com.theromus.utils.HexUtils.convertToUint;
import static com.theromus.utils.HexUtils.convertFromLittleEndianTo64;
import static com.theromus.utils.HexUtils.convertFrom64ToLittleEndian;
import static java.lang.Math.min;
impo... | 2,835 |
1,723 | # Rearrange an array such that numbers at even indexes are greater than numbers
# at odd indexes
def rearrange(arr):
for i in range(1, len(arr)):
if i % 2 == 0:
if arr[i] > arr[i-1]:
arr[i-1], arr[i] = arr[i], arr[i-1]
else:
if arr[i] < arr[i-1]:
... | 238 |
372 | <filename>dcerpc/ncklib/comtwr.c
/*
*
* (c) Copyright 1990 OPEN SOFTWARE FOUNDATION, INC.
* (c) Copyright 1990 HEWLETT-PACKARD COMPANY
* (c) Copyright 1990 DIGITAL EQUIPMENT CORPORATION
* To anyone who acknowledges that this file is provided "AS IS"
* without any express or implied warranty:
* p... | 7,472 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.