max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
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/app_list/search/ranking/burn_in_ranker.h"
namespace app_list {
void BurnInRanker::UpdateResultRanks(ResultsMap& results,
... | 165 |
764 | {"symbol": "ATT","address": "0x89Fb927240750c1B15d4743cd58440fc5f14A11C","overview":{"en": "ATT is a Decentralized Information Communication Protocol based on Blockchain Technology."},"email": "<EMAIL>","website": "https://www.attnetwork.org/","state": "NORMAL","links": {"blog": "","twitter": "https://twitter.com/AChai... | 141 |
462 | <gh_stars>100-1000
# -*- test-case-name: txdav.base.propertystore.test.test_xattr -*-
##
# Copyright (c) 2010-2017 Apple 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... | 4,821 |
2,743 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-08-03 07:28
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('document_states', '0006_au... | 519 |
12,718 | /*
* netevent.h
*
* Network events
*
* This file is part of the ReactOS PSDK package.
*
* Contributors:
* Created by <NAME> <<EMAIL>>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, modify or distribute it freely.
*
* This code is distri... | 34,717 |
540 | /* ----------------------------------------------------------------------------
** Copyright (c) 2016 <NAME>, All Rights Reserved.
**
** Object.h
** --------------------------------------------------------------------------*/
#pragma once
#include "JsonConfig.h"
// Constructs a variant that wraps an object
#define O... | 293 |
7,471 | <gh_stars>1000+
#include "mvContext.h"
#include "dearpygui.h"
#include "mvViewport.h"
#include "mvCallbackRegistry.h"
#include <thread>
#include <future>
#include <chrono>
#include "mvProfiler.h"
#include <implot.h>
#include "mvFontManager.h"
#include "mvCallbackRegistry.h"
#include "mvPythonTranslator.h"
#include "mvP... | 11,385 |
563 | <gh_stars>100-1000
package com.gentics.mesh.core.field.binary;
import static com.gentics.mesh.core.field.binary.BinaryFieldTestHelper.CREATE_EMPTY;
import static com.gentics.mesh.core.field.binary.BinaryFieldTestHelper.FETCH;
import static com.gentics.mesh.core.field.binary.BinaryFieldTestHelper.FILL_BASIC;
import sta... | 4,840 |
755 | /**
* @project: Overload
* @author: <NAME>.
* @licence: MIT
*/
#include <OvPhysics/Entities/PhysicalSphere.h>
#include <OvUI/Widgets/Drags/DragFloat.h>
#include "OvCore/ECS/Components/CPhysicalSphere.h"
#include "OvCore/ECS/Actor.h"
using namespace OvPhysics::Entities;
OvCore::ECS::Components::CPhysicalSphere::CPhy... | 652 |
831 | /*
* Copyright (C) 2015 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... | 1,854 |
746 | <reponame>zhiqwang/mmdeploy<gh_stars>100-1000
# Copyright (c) OpenMMLab. All rights reserved.
import torch
from mmdeploy.core import FUNCTION_REWRITER
@FUNCTION_REWRITER.register_rewriter(
func_name='mmdet.core.bbox.coder.tblr_bbox_coder.tblr2bboxes',
backend='default')
def tblr2bboxes(ctx,
p... | 1,400 |
14,668 | // Copyright 2017 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.offlinepages;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static ... | 748 |
12,718 | <reponame>Bhuvanesh1208/ruby2.6.1<filename>msys64/mingw64/x86_64-w64-mingw32/include/_bsd_types.h
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifnd... | 335 |
614 | [
{ "home": "Chelsea", "away": "Tottenham Hotspur", "homescore": "2", "awayscore": "2" },
{ "home": "Genoa", "away": "AS Roma", "homescore": "2", "awayscore": "3" },
{ "home": "Napoli", "away": "Atalanta", "homescore": "2", "awayscore": "1" },
{ "home": "Málaga", "away": "Levante", "homescore": "3", "awayscore"... | 1,547 |
7,731 | # This file is part of beets.
# Copyright 2016, <NAME>.
#
# 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, ... | 3,196 |
399 | #pragma once
#ifdef _WIN32
# define NOMINMAX
#endif
#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/color_space.hpp>
#include <glm/gtx/matrix_decompose.hpp>
#include <glm/gtx/io.hpp>
#include <glm/gtc/constants.hpp>
#inclu... | 342 |
307 | <gh_stars>100-1000
# automatically generated by the FlatBuffers compiler, do not modify
# namespace: FBOutput
class DriveAxis(object):
x = 1
y = 2
z = 4
| 60 |
7,409 | # Generated by Django 3.0.11 on 2021-01-12 13:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("posthog", "0112_sessions_filter"),
]
operations = [
migrations.AddField(model_name="cohort", name="is_static", field=models.BooleanField(de... | 130 |
348 | {"nom":"<NAME>","circ":"8ème circonscription","dpt":"Var","inscrits":2396,"abs":1395,"votants":1001,"blancs":69,"nuls":16,"exp":916,"res":[{"nuance":"REM","nom":"<NAME>","voix":527},{"nuance":"FN","nom":"<NAME>","voix":389}]} | 90 |
3,807 | /*
* Copyright 2019 Google
*
* 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... | 787 |
1,035 | # coding: utf-8
# flake8: noqa
"""
Penguin Statistics - REST APIs
Backend APIs for Arknights drop rate statistics website 'Penguin Statistics': https://penguin-stats.io/ # noqa: E501
OpenAPI spec version: 2.0.0
Contact: <EMAIL>
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""... | 595 |
11,356 | <filename>src/visualization/annotation/build/format/cpp/message.pb.h
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message.proto
#ifndef PROTOBUF_message_2eproto__INCLUDED
#define PROTOBUF_message_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTO... | 8,946 |
3,459 | <filename>Real-Time Corruptor/BizHawk_RTC/libmupen64plus/mupen64plus-video-glide64mk2/src/Glide64/3dmath.h
/*
* Glide64 - Glide video plugin for Nintendo 64 emulators.
* Copyright (c) 2002 Dave2001
* Copyright (c) 2003-2009 Sergey 'Gonetz' Lipski
*
* This program is free software; you can redistribute it and/or modif... | 714 |
2,177 | <filename>src/org/nutz/castor/castor/Map2Boolean.java<gh_stars>1000+
package org.nutz.castor.castor;
import java.util.Map;
import org.nutz.castor.Castor;
@SuppressWarnings("rawtypes")
public class Map2Boolean extends Castor<Map, Boolean> {
@Override
public Boolean cast(Map src, Class<?> toType, String... ar... | 172 |
488 | /*!
* \file PrePostTraversal.cc
*
* \brief Implements a top-down/bottom-up traversal without explicit
* attributes, i.e., implements a variation on the simple traversal
* that exposes the top-down and bottom-up visits.
*/
// tps (01/14/2010) : Switching from rose.h to sage3.
#include "sage3basic.h"
#include "... | 521 |
1,433 | <filename>fabric-game-rule-api-v1/src/main/java/net/fabricmc/fabric/api/gamerule/v1/rule/DoubleRule.java
/*
* Copyright (c) 2016, 2017, 2018, 2019 FabricMC
*
* 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 ... | 1,231 |
665 | #
# MLDB-2111-group-by-expression.py
# <NAME>, 2017-01-24
# This file is part of MLDB. Copyright 2017 mldb.ai inc. All rights reserved.
#
from mldb import mldb, MldbUnitTest, ResponseException
class Mldb2111GroupByTests(MldbUnitTest): # noqa
@classmethod
def setUpClass(cls):
ds = mldb.create_dataset... | 2,836 |
938 | <gh_stars>100-1000
{
"replace": false,
"values": [
"tconstruct:molten_signalum",
"tconstruct:flowing_molten_signalum"
]
} | 61 |
411 | <reponame>sumau/tick
// License: BSD 3 clause
//
// poisson.cpp
// Array
//
// Created by bacry on 13/04/2015.
// Copyright (c) 2015 bacry. All rights reserved.
//
#include "tick/hawkes/simulation/simu_poisson_process.h"
Poisson::Poisson(double intensity, int seed) : PP(1, seed) {
intensities = SArrayDouble::n... | 394 |
1,444 | <filename>Mage.Sets/src/mage/cards/d/DrippingTongueZubera.java<gh_stars>1000+
package mage.cards.d;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.DiesSourceTriggeredAbility;
import mage.abilities.dynamicvalue.common.ZuberasDiedDynamicValue;
import mage.abilities.effects.common.CreateTokenE... | 502 |
314 | <reponame>tclfs/rocketmq-client-cpp
/*
* 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, Vers... | 2,659 |
369 | /*
* Copyright © 2020 <NAME>, 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 in writing... | 4,580 |
997 | <gh_stars>100-1000
#ifndef PQCLEAN_FALCON512_CLEAN_FPR_H
#define PQCLEAN_FALCON512_CLEAN_FPR_H
/*
* Floating-point operations.
*
* ==========================(LICENSE BEGIN)============================
*
* Copyright (c) 2017-2019 Falcon Project
*
* Permission is hereby granted, free of charge, to any person obt... | 3,399 |
335 | <gh_stars>100-1000
{
"word": "Remunerative",
"definitions": [
"Financially rewarding; lucrative.",
"Earning a salary; paid."
],
"parts-of-speech": "Adjective"
} | 86 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Vallereuil","circ":"1ère circonscription","dpt":"Dordogne","inscrits":245,"abs":76,"votants":169,"blancs":5,"nuls":4,"exp":160,"res":[{"nuance":"REM","nom":"<NAME>","voix":57},{"nuance":"FN","nom":"Mme <NAME>","voix":31},{"nuance":"SOC","nom":"<NAME>","voix":26},{"nuance... | 253 |
661 | <reponame>hinca/update4j
/*
* 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 applica... | 1,222 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "monitorreply.h"
namespace search::engine {
MonitorReply::MonitorReply()
: activeDocs(0),
distribution_key(-1),
timestamp(),
is_blocking_writes(false)
{ }
}
| 103 |
576 | <filename>japicmp/src/main/java/japicmp/config/Options.java
package japicmp.config;
import com.google.common.base.Joiner;
import japicmp.util.Optional;
import com.google.common.base.Splitter;
import com.google.common.collect.ImmutableList;
import japicmp.cli.CliParser;
import japicmp.cli.JApiCli;
import japicmp.cmp.JA... | 5,041 |
592 | /*
* Copyright 2016 LinkedIn 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 ... | 544 |
2,329 | package system;
import java.lang.reflect.Method;
/**
* This test class represents a class in the system set for the VM. These classes cannot have their reflective calls directly
* intercepted because we cannot introduce dependencies on types in a lower classloader, so we have to call the reflective
* interceptor r... | 246 |
689 | /**
* Copyright (C) Mellanox Technologies Ltd. 2001-2021. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
#ifndef UCS_DEBUG_H_
#define UCS_DEBUG_H_
#include <ucs/sys/compiler_def.h>
BEGIN_C_DECLS
/**
* Disable signal handling in UCS for signal.
* Previous signal handler is set.
* @param signum Signal ... | 153 |
335 | <filename>P/Pons_noun.json
{
"word": "Pons",
"definitions": [
"The part of the brainstem that links the medulla oblongata and the thalamus."
],
"parts-of-speech": "Noun"
} | 85 |
1,467 | <gh_stars>1000+
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the... | 3,977 |
1,290 | <filename>Z - Tool Box/LaZagne/Linux/lazagne/config/lib/memorpy/WinProcess.py<gh_stars>1000+
# Author: <NAME>
# This file is part of memorpy.
#
# memorpy 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 ... | 5,498 |
356 | #include "test_functions.hpp"
BOOST_AFIO_AUTO_TEST_CASE(async_io_pagesize, "Tests that the utility functions work", 120)
{
using namespace BOOST_AFIO_V2_NAMESPACE;
namespace asio = BOOST_AFIO_V2_NAMESPACE::asio;
typedef chrono::duration<double, ratio<1, 1>> secs_type;
std::cout << "\n\nSystem page siz... | 4,406 |
2,151 | <reponame>zipated/src
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/installer/util/channel_info.h"
#include <utility>
#include "chrome/installer/util/util_constants.h"
#include ... | 2,578 |
606 | <filename>base/src/main/java/org/arend/term/abs/AbstractLevelExpressionVisitor.java
package org.arend.term.abs;
import org.arend.naming.reference.Referable;
import org.jetbrains.annotations.Nullable;
public interface AbstractLevelExpressionVisitor<P, R> {
R visitInf(@Nullable Object data, P param);
R visitLP(@Nul... | 262 |
2,151 | // Copyright 2017 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_FRAME_REPORTING_CONTEXT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_REPORTING_CONTEXT_H_
#include "third_par... | 548 |
14,668 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ASH_APP_MODE_ARC_ARC_KIOSK_APP_LAUNCHER_H_
#define CHROME_BROWSER_ASH_APP_MODE_ARC_ARC_KIOSK_APP_LAUNCHER_H_
#include "chrome/brow... | 945 |
393 | <filename>src/TopicModel/PA.h
#pragma once
#include "LDA.h"
namespace tomoto
{
template<TermWeight _tw>
struct DocumentPA : public DocumentLDA<_tw>
{
using BaseDocument = DocumentLDA<_tw>;
using DocumentLDA<_tw>::DocumentLDA;
using WeightType = typename DocumentLDA<_tw>::WeightType;
tvector<Tid> Z2s;
... | 648 |
375 | /*
* Copyright 2016 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.ide.eclipse.main.plugin.model.cmd.settings;
import java.util.List;
import java.util.Objects;
import org.rf.ide.core.testdata.model.IDocumen... | 582 |
3,372 | <gh_stars>1000+
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* ... | 12,864 |
479 | <gh_stars>100-1000
import windows.pipe
from .pfwtest import *
import time
PIPE_NAME = "PFW_Test_Pipe"
rcode_test_ipc_pipe = """
import windows; import windows.pipe
windows.pipe.send_object("{pipe}", {{'Hello': 2}})
"""
@python_injection
def test_ipc_pipe(proc32_64):
with windows.pipe.create(PIPE_NAME) as np:
... | 538 |
5,941 | <reponame>PoseidonKEN/FreeRDP
/**
* FreeRDP: A Remote Desktop Protocol Implementation
* Terminal Server Gateway (utils)
*
* Copyright 2021 <NAME> <<EMAIL>>
* Copyright 2021 Thincast Technologies GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compli... | 452 |
335 | {
"word": "Oxidase",
"definitions": [
"An enzyme which promotes the transfer of a hydrogen atom from a particular substrate to an oxygen molecule, forming water or hydrogen peroxide."
],
"parts-of-speech": "Noun"
} | 79 |
1,711 | /*
_____ _____ _____ __
| __| | | | | The SOUL language
|__ | | | | | |__ Copyright (c) 2019 - ROLI Ltd.
|_____|_____|_____|_____|
The code in this file is provided under the terms of the ISC license:
Permission to use, copy, modify, and/or distribute this software for any p... | 1,185 |
674 | #ifndef HONEST_PROFILER_COMMON_H
#define HONEST_PROFILER_COMMON_H
#include <jvmti.h>
#include "globals.h"
jthread newThread(JNIEnv *jniEnv, const char *threadName);
JNIEnv *getJNIEnv(JavaVM *jvm);
#endif
| 101 |
338 | <reponame>XmobiTea-Family/ezyfox-server<gh_stars>100-1000
package com.tvd12.ezyfoxserver.testing.event;
import org.testng.annotations.Test;
import com.tvd12.ezyfoxserver.constant.EzyDisconnectReason;
import com.tvd12.ezyfoxserver.entity.EzyUser;
import com.tvd12.ezyfoxserver.event.EzySimpleUserRemovedEvent;
import co... | 309 |
11,396 | # Copyright (c) 2016 Ansible, Inc.
# All Rights Reserved.
from django.db.migrations import Migration
class ActivityStreamDisabledMigration(Migration):
def apply(self, project_state, schema_editor, collect_sql=False):
from awx.main.signals import disable_activity_stream
with disable_activity_stre... | 135 |
2,002 | <filename>dev/MRTCore/mrt/mrm/mrmex/FileListBuilder.cpp
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#include "StdAfx.h"
namespace Microsoft::Resources::Build
{
/*!
* FileInfoPrivateData - abstra... | 19,897 |
879 | <gh_stars>100-1000
package org.zstack.core.gc;
/**
* Created by xing5 on 2017/3/5.
*/
public interface GarbageCollectorMessage {
String getGCJobUuid();
}
| 61 |
868 | <reponame>ekmixon/opentelemetry-python
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: opentelemetry/proto/resource/v1/resource.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
f... | 1,349 |
988 | /*
* 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 ... | 3,138 |
2,606 | /**
*
*/
package weixin.popular.bean.shakearound.device.group.deletedevice;
import weixin.popular.bean.shakearound.device.group.adddevice.DeviceGroupAddDevice;
/**
* 微信摇一摇周边-从分组中移除设备-请求参数
* @author Moyq5
* @date 2016年7月31日
*/
public class DeviceGroupDeleteDevice extends DeviceGroupAddDevice {
}
... | 166 |
864 | <reponame>swigger/mxe<filename>src/wxwidgets-test.cpp
/*
* This file is part of MXE. See LICENSE.md for licensing information.
*/
#include <wx/wx.h>
class TestApp: public wxApp
{
private:
bool OnInit()
{
wxFrame *frame = new wxFrame(0, -1, _("Hello, World!"));
frame->Show(true);
SetT... | 173 |
2,113 | /*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.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://research.scea.com/scea_shared_source_license.html
*
* Unless re... | 6,186 |
1,532 | <gh_stars>1000+
#!/usr/bin/env python
"""
Example script to train (unconditional) template creation.
If you use this code, please cite the following:
Learning Conditional Deformable Templates with Convolutional Networks
<NAME>, <NAME>, <NAME>, <NAME>
NeurIPS 2019. https://arxiv.org/abs/1908.02738
Copyri... | 2,687 |
630 | <filename>src/main/java/com/bmwcarit/barefoot/matcher/MatcherTransition.java
/*
* Copyright (C) 2015, BMW Car IT GmbH
*
* Author: <NAME> <<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 Lic... | 735 |
438 | //
// UIScrollView+FWPlayer.h
// FWPlayerCore
//
// Created by <NAME> on 2019-06-26.
// Copyright © 2019 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
/*
* The scroll direction of scrollView.
*/
typedef NS_ENUM(NSUInteger, FWPlayerScrollDirection) {
FWPlayerScrollDirection... | 1,998 |
2,151 | // Copyright (C) 2014 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 in ... | 1,956 |
356 | <gh_stars>100-1000
/*
* Copyright (C) 2019 University of South Florida
*
* 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 ... | 2,016 |
460 | <gh_stars>100-1000
// Copyright 2012 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
//
// Un... | 444 |
1,010 | <filename>src/test/preload/shd-test-preload-dl-main.c
/*
* The Shadow Simulator
* See LICENSE for licensing information
*/
#if !defined(_GNU_SOURCE)
#define _GNU_SOURCE
#endif
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
typedef int (*run_test_func)(void);
int main(int argc, char* argv[]) {
fprin... | 775 |
799 | import json
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
def calculate_overall(data: dict = None) -> str:
if not data:
return ""
results = [x["Result"] for x in data]
if "Not Achieved" in results:
return "Not Achieved"
elif "Partially Achi... | 1,001 |
1,738 | /*
* 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 this software is governed by the License,
* or, if provided, by the license below or t... | 2,593 |
945 | // This is core/vnl/io/vnl_io_real_polynomial.h
#ifndef vnl_io_real_polynomial_h
#define vnl_io_real_polynomial_h
//:
// \file
// \author iscott
// \date 21-Mar-2001
#include <vsl/vsl_binary_io.h>
#include <vnl/vnl_real_polynomial.h>
//: Binary save vnl_real_polynomial to stream.
// \relatesalso vnl_real_polynomial
... | 310 |
5,169 | <filename>Specs/a/a/5/WeexGrowingIO/0.1.0/WeexGrowingIO.podspec.json
{
"name": "WeexGrowingIO",
"version": "0.1.0",
"summary": "GrowingIO Weex Plugin",
"description": "This Pod contains GrowingIO SDK plugin for weex. For more informations, please read https://github.com/growingio/weex-growingio",
"homepage": ... | 629 |
473 | <filename>challenges/Terrible_Ticket_Tracker/src/service.cc
/*
* Copyright (c) 2016 Kaprica Security, 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, includin... | 4,170 |
575 | //
// WaypointV2ViewController.h
// DJISdkDemo
//
// Created by ethan.jiang on 2020/5/7.
// Copyright © 2020 DJI. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import <DJISDK/DJISDK.h>
NS_ASSUME_NONNULL_BEGIN
@interface WaypointV2ViewController : UIViewController
@property (weak, no... | 156 |
307 | <filename>modules/app-version-common/src/main/java/com/tairanchina/csp/avm/dto/AdminUpdateNickNameRequestDTO.java
package com.tairanchina.csp.avm.dto;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;
public class AdminUpdateNickNameRequestDTO {
@ApiModelPropert... | 353 |
388 | /*
* Copyright 2019 Amazon.com, Inc. or its affiliates.
* Licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 787 |
1,531 | /**
* Copyright 2012-2015 <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 ... | 1,756 |
1,816 | <reponame>cercos/masonite
from .NotificationProvider import NotificationProvider
| 21 |
810 | <filename>document/Android/app/src/main/java/com/example/nanchen/aiyaschoolpush/ui/view/ColorButton.java
package com.example.nanchen.aiyaschoolpush.ui.view;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.grap... | 2,318 |
303 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.test import TestCase
from django.contrib.auth.models import User
from ..admin.user import TeamListFilter, UserAdmin
from model_mommy import mommy
class UserTest(TestCase):
DEV_NAME = "Dev_User"
DBA_NAME = "DBA_User... | 1,469 |
411 | /*
* 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,135 |
2,637 | <filename>vendors/mediatek/sdk/driver/chip/mt7687/src/common/cos_api.c<gh_stars>1000+
/* Copyright Statement:
*
* (C) 2005-2016 MediaTek Inc. All rights reserved.
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained her... | 2,171 |
1,822 | // Copyright (c) 2015-2017 <NAME>
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#pragma once
#include <cstdint>
namespace hpx { namespace threads { namespace policies ... | 1,496 |
1,145 | import pytest
from omnizart.music.labels import LabelType
def test_invalid_label_conversion_mode():
with pytest.raises(ValueError):
LabelType("unknown-mode")
CUSTOM_LABEL_DATA = [
{60: {0: 1}}, {60: {0: 1}}, {60: {0: 1}}, {60: {0: 1}}, {60: {0: 1}}, {60: {0: 1}},
{99: {41: 1}}, {99: {41: 1}}, {... | 399 |
3,102 | <reponame>clayne/DirectXShaderCompiler<gh_stars>1000+
// Helper 1 for chain-external-defs.c test
// Tentative definitions
int x;
int x2;
// Should not show up
static int z;
int incomplete_array[];
int incomplete_array2[];
struct S s;
| 86 |
1,139 | <filename>scispacy/__init__.py
from scispacy.version import VERSION as __version__
| 27 |
1,133 | <gh_stars>1000+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <cdb2api.h>
int main(int argc, char **argv)
{
cdb2_hndl_tp *hndl = NULL;
char *conf = getenv("CDB2_CONFIG");
char *tier = "local";
void *blob;
int i, rc;
if (conf != NULL) {
cdb2_set_comdb2db_config(co... | 755 |
487 | {
"name": "gliojs",
"version": "0.0.7",
"description": "Detects if the mouse of a user leaves the viewport / document borders of your website — and when this happens, trigger your callback",
"main": "glio.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"gli... | 191 |
886 | /*!
@file
Forward declares `boost::hana::Struct`.
@copyright <NAME> 2013-2016
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_FWD_CONCEPT_STRUCT_HPP
#define BOOST_HANA_FWD_CONCEPT_STRUCT_HPP
#include <boo... | 2,484 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
#include "IConstr... | 2,459 |
1,309 | <filename>engine/source/bitmapFont/BitmapFontCharacter.h<gh_stars>1000+
//-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentati... | 658 |
1,792 | package org.hongxi.whatsmars.spring.dbrouter;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.lang.StringUtils;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.an... | 926 |
4,901 | /*
* 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
* distributed u... | 1,151 |
471 | <reponame>dimagilg/commcare-hq
from django.conf import settings
def get_custom_login_page(host):
"""
Returns the configured custom login template for the request, if matched, else None
:param request:
:return:
"""
custom_landing_page = settings.CUSTOM_LANDING_TEMPLATE
if custom_landing_pag... | 275 |
6,059 | /*
* 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.
*/
#include "RefChecker.h"
#include "EditableCfgAdapter.h"
#include "Resolver.h"
#include "TypeUtil.h"
CodeRefs::CodeRefs(const DexMe... | 2,868 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.