max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
373 | <reponame>ADLINK/edk2-platforms<gh_stars>100-1000
/** @file
File to contain all the hardware specific stuff for the Smm QNCn dispatch protocol.
Copyright (c) 2013-2015 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
//
// Include common header file for this module.
//
#include "Com... | 2,591 |
1,197 | <reponame>Plutonian/controlsfx<filename>controlsfx/src/main/java/org/controlsfx/control/cell/MediaImageCell.java
/**
* Copyright (c) 2013, ControlsFX
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ar... | 1,145 |
2,568 | {
"Miss Hosting": {
"domain": "misshosting.com",
"additional-domains": [
"misshosting.bg",
"misshosting.dk",
"misshosting.fi",
"misshosting.no",
"misshosting.se"
],
"tfa": [
"totp"
],
"documentation": "https://github.com/2factorauth/twofactorauth/issues/3634... | 199 |
870 | /*
* 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 ... | 653 |
1,848 | from imp import reload
from django.test import TestCase
from webpack_loader import utils, config, loader
DEFAULT_CONFIG = 'DEFAULT'
LOADER_PAYLOAD = {'status': 'done', 'chunks': []}
class ValidCustomLoader(loader.WebpackLoader):
def load_assets(self):
return LOADER_PAYLOAD
class CustomLoadersTestCase... | 976 |
770 | <reponame>maxchernet/TheiaSfM
// Copyright (C) 2015 The Regents of the University of California (Regents).
// 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 sou... | 1,106 |
5,766 | <reponame>YKYou/poco
//
// CryptoException.h
//
//
// Library: Crypto
// Package: Crypto
// Module: CryptoException
//
// Definition of the CryptoException class.
//
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Crypto_Cry... | 429 |
2,967 | /*
Simple DirectMedia Layer
Copyright (C) 1997-2021 <NAME> <<EMAIL>>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any ... | 2,285 |
2,206 | /*
*
* Copyright (c) 2006-2020, Speedment, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 927 |
3,589 | <gh_stars>1000+
#pragma once
#include "WickedEngine.h"
class EditorComponent;
class LightWindow : public wiWindow
{
public:
void Create(EditorComponent* editor);
wiECS::Entity entity;
void SetEntity(wiECS::Entity entity);
void SetLightType(wiScene::LightComponent::LightType type);
wiSlider energySlider;
wiSl... | 247 |
578 | // Copyright (c) 2019 <NAME> <EMAIL>
// This software is provided 'as-is' under the zlib License, see the LICENSE.txt file.
// This notice and the license may not be removed or altered from any source distribution.
#pragma once
#include <type/Ref.h>
#include <type/Type.h>
namespace two
{
export_ template <class ... | 448 |
552 | #pragma once
#include <EtCore/UpdateCycle/RealTimeTickTriggerer.h>
#include "ViewportEvents.h"
namespace et {
namespace render {
class I_GraphicsContextApi;
class I_ViewportRenderer;
class I_RenderArea;
//---------------------------------
// I_ViewportListener
//
// Interface that can react to viewport events
//... | 810 |
3,285 | """
Copyright 2020 The OneFlow 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 applicable law or agr... | 3,787 |
5,903 | <reponame>java-app-scans/pentaho-kettle
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2021 by <NAME> : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed un... | 9,634 |
348 | <filename>docs/data/leg-t2/062/06204134.json
{"nom":"Bimont","circ":"4ème circonscription","dpt":"Pas-de-Calais","inscrits":111,"abs":54,"votants":57,"blancs":2,"nuls":1,"exp":54,"res":[{"nuance":"LR","nom":"<NAME>","voix":40},{"nuance":"REM","nom":"<NAME>","voix":14}]} | 115 |
6,210 | <filename>src/java/org/apache/cassandra/audit/AuditLogFilter.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. The ASF licenses this file
* to ... | 2,416 |
468 | /*
* Copyright 2017-2021 Adobe.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 739 |
4,812 | //===- PassInstrumentation.cpp - Pass Instrumentation interface -*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 185 |
3,459 | <filename>requery/src/main/java/io/requery/query/MutableResult.java<gh_stars>1000+
/*
* Copyright 2016 requery.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... | 437 |
17,703 | #include "contrib/kafka/filters/network/source/kafka_response_parser.h"
#include "absl/strings/str_cat.h"
namespace Envoy {
namespace Extensions {
namespace NetworkFilters {
namespace Kafka {
const ResponseParserResolver& ResponseParserResolver::getDefaultInstance() {
CONSTRUCT_ON_FIRST_USE(ResponseParserResolver)... | 855 |
1,144 | <filename>src/dictionary/user_dictionary_util.cc
// Copyright 2010-2021, Google 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:
//
// * Redistributions of source code must retain t... | 5,612 |
2,659 | package com._4paradigm.openmldb.java_sdk_test.checker;
import com._4paradigm.openmldb.java_sdk_test.command.CommandUtil;
import com._4paradigm.openmldb.java_sdk_test.entity.FesqlResult;
import com._4paradigm.openmldb.java_sdk_test.util.FesqlUtil;
import com._4paradigm.openmldb.test_common.model.CatFile;
import com._4p... | 496 |
536 | /*
* Copyright 2016-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 agreed ... | 790 |
461 | <gh_stars>100-1000
/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
#ifndef _NO_WORDEXP
#include <sys/param.h>
#include <sys/stat.h>
#include <ctype.h>
#include <... | 407 |
1,609 | package com.mossle.bpm.data;
import java.util.List;
import java.util.Map;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import com.mossle.bpm.persistence.manager.BpmConfBaseManager;
import com.mossle.bpm.persistence.manager.BpmConfListenerManager;
import com.mossle.bpm.persistence.manager.... | 705 |
2,268 | <gh_stars>1000+
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "hud.h"
#include "hudelement.h"
#include "hud_macros.h"
#include "hud_numericdisplay.h"
#include ... | 2,766 |
694 | <gh_stars>100-1000
# Copyright (c) LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license.
# See LICENSE in the project root for license information.
import hmac
import hashlib
import urllib.parse
import base64
oneclick_email_markup = '''
<script type="application/ld+json">
{
"@context":... | 421 |
627 | from indy_common.constants import SCHEMA_NAME, SCHEMA_VERSION, GET_SCHEMA
from indy_common.req_utils import get_read_schema_from, get_read_schema_name, get_read_schema_version
from indy_node.server.request_handlers.domain_req_handlers.schema_handler import SchemaHandler
from plenum.common.constants import DOMAIN_LEDGER... | 1,107 |
2,146 | #include <aes.h>
int main() {
uint8_t* input = 0;
uint8_t* key = 0;
uint8_t *output = 0;
uint32_t length = 0;
AES_ECB_encrypt(input, key, output, length);
}
| 78 |
15,666 | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 7,495 |
1,738 | <reponame>brianherrera/lumberyard
/*
* 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 p... | 1,680 |
451 | // File Automatically generated by eLiSe
#include "StdAfx.h"
#include "cREgDistDxx_Ebner.h"
cREgDistDxx_Ebner::cREgDistDxx_Ebner():
cElCompiledFonc(2)
{
AddIntRef (cIncIntervale("Intr",0,15));
Close(false);
}
void cREgDistDxx_Ebner::ComputeVal()
{
double tmp0_ = mLocEbner_State_0_0 * mLocEbner_State_0... | 4,478 |
854 | __________________________________________________________________________________________________
sample 96 ms submission
class Solution {
public:
vector<vector<int>> allCellsDistOrder(int R, int C, int r0, int c0) {
vector<vector<int>> result;
int maxDist = max(r0, R - r0 - 1) + max(c0, C - c0 - 1... | 1,693 |
3,212 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 902 |
915 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
author: bookerbai
create:2017/11/22
"""
import os
import typing
import numpy as np
from chi_annotator.algo_factory.components import Component
if typing.TYPE_CHECKING:
from gensim.models.keyedvectors import KeyedVectors
class SentenceEmbeddingExtractor(Component):... | 1,153 |
1,069 | <gh_stars>1000+
package com.codemybrainsout.onboarding;
import android.graphics.Color;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.annotation.IntegerRes;
import android.widget.Toast;
import com.codemybrainsout.onboarder.AhoyOnboarderActivity;
import com.codemybrainsout.onboarder... | 850 |
571 | <gh_stars>100-1000
package camelinaction.client2;
import javax.management.JMX;
import javax.management.MBeanServerConnection;
import javax.management.ObjectName;
import javax.management.remote.JMXConnector;
import javax.management.remote.JMXConnectorFactory;
import javax.management.remote.JMXServiceURL;
import org.ap... | 456 |
1,602 | <reponame>jhh67/chapel
//===-- XCOFFDump.h ---------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----... | 489 |
5,169 | {
"name": "PleaseHold",
"version": "0.1.0",
"summary": "Quick and easy progress UIView to place in your app.",
"description": "In the moments when you need to show a blocking progress UIView in your app, PleaseHold is a quick way to put one in your app. Configured with default settings that will work for most u... | 312 |
324 | /* Copyright 2012 10gen 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 ... | 1,859 |
2,151 | # 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.
"""Dumps a Windows shortcut's property bag to stdout.
This is required to confirm correctness of properties that aren't readily
available in Windows UI.
"""... | 738 |
1,850 | <filename>repeater-plugin-api/src/main/java/com/alibaba/jvm/sandbox/repeater/plugin/api/Broadcaster.java<gh_stars>1000+
package com.alibaba.jvm.sandbox.repeater.plugin.api;
import com.alibaba.jvm.sandbox.repeater.plugin.domain.RecordModel;
import com.alibaba.jvm.sandbox.repeater.plugin.domain.RepeatMeta;
import com.al... | 504 |
5,547 | <reponame>McKillroy/yojimbo
/**
* \file des.h
*
* \brief DES block cipher
*
* \warning DES is considered a weak cipher and its use constitutes a
* security risk. We recommend considering stronger ciphers
* instead.
*/
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier... | 4,736 |
499 | # Copyright (c) 2018, salesforce.com, inc.
# All rights reserved.
# Licensed under the BSD 3-Clause license.
# For full license text, see the LICENSE file in the repo root
# or https://opensource.org/licenses/BSD-3-Clause
import torch
from matchbox import MaskedBatch
from matchbox.compat import MAYBE_VARIABLE, TENSOR... | 1,210 |
530 | {
"manufacturer": "Wintop",
"manufacturerId": "0x0097",
"label": "MINI KEYPAD RFID",
"description": "Keypad with alarm activation rfid tag",
"devices": [
{
"productType": "0x6131",
"productId": "0x4101"
},
{
"productType": "0x6131",
"productId": "0x4501"
},
{
"productType": "0x6131",
"p... | 1,093 |
721 | package net.jodah.expiringmap.functional;
import static net.jodah.expiringmap.Testing.threadedRun;
import static org.testng.Assert.assertTrue;
import java.util.Random;
import java.util.concurrent.TimeUnit;
import org.testng.annotations.Test;
import net.jodah.concurrentunit.ConcurrentTestCase;
import net.jodah.expir... | 989 |
695 | <reponame>xenron/sandbox-dev-lintcode<filename>C++/parking-lot.cpp
// Time: O(n * m * k)
// Space: O(n * m * k)
#include <memory>
// enum type for Vehicle
enum class VehicleSize {
Motorcycle,
Compact,
Large
};
// Foward declaration to make circular reference work.
class ParkingSpot;
class Level;
// Use... | 4,023 |
3,603 | package com.github.lzyzsd.circleprogressexample;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.FrameLayout;
/**
* A placeholder fragment containing a s... | 1,188 |
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.
// ------------------------------------------------------------
#include "stdafx.h"
#include "... | 674 |
984 | <reponame>kunal30xi/Motif<filename>Motif/Core/NSObject+ThemeClassAppliers.h
//
// NSObject+ThemeAppliers.h
// Motif
//
// Created by <NAME> on 12/25/14.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
@import Foundation;
@class MTFThemeClass;
@protocol MTFThemeClassApplicable;
NS_ASSUME_NONNULL_BEGIN
/**
... | 2,875 |
22,688 | /******************************************************************************
* Copyright 2019 The Apollo 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
... | 834 |
4,538 | <reponame>wstong999/AliOS-Things
/*
* Copyright 1999-2019 Alibaba Cloud 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/LIC... | 524 |
1,444 | <filename>Mage.Server.Plugins/Mage.Player.AI.MA/src/mage/player/ai/ma/optimizers/impl/DiscardCardOptimizer.java
package mage.player.ai.ma.optimizers.impl;
import java.util.List;
import mage.abilities.Ability;
import mage.game.Game;
/**
* Removes abilities that require only discard a card for activation.
*
* @autho... | 247 |
4,857 | /**
* 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,416 |
1,056 | <filename>ide/xml.schema.model/src/org/netbeans/modules/xml/schema/model/impl/CommonAttributeImpl.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 ownershi... | 1,218 |
305 | <filename>Pods/Target Support Files/Pods-GooglePlacesAutocompleteExampleTests/Pods-GooglePlacesAutocompleteExampleTests-umbrella.h
#import <UIKit/UIKit.h>
FOUNDATION_EXPORT double Pods_GooglePlacesAutocompleteExampleTestsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_GooglePlacesAutocompleteExampleTestsVer... | 103 |
471 | from django.contrib.postgres.fields import JSONField
from django.db import models
from django.dispatch import receiver
from couchdbkit.exceptions import ResourceNotFound
from casexml.apps.case.cleanup import close_case
from casexml.apps.stock.consumption import ConsumptionConfiguration
from couchforms.signals import ... | 4,671 |
310 | <filename>gear/hardware/s/sl6.json
{
"name": "SL6",
"description": "Wooden speakers.",
"url": "http://www.worldsbestloudspeakers.com/About_Us/Classic_Gear/Loudspeakers/Celestion_SL6/celestion_sl6.html"
} | 87 |
14,668 | <filename>components/lookalikes/core/features.h
// 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.
#ifndef COMPONENTS_LOOKALIKES_CORE_FEATURES_H_
#define COMPONENTS_LOOKALIKES_CORE_FEATURES_H_
#include "b... | 420 |
656 | <reponame>librg/librg<gh_stars>100-1000
// file: source/types.c
#ifdef LIBRG_EDITOR
#include <librg.h>
#include <zpl.h>
#endif
LIBRG_BEGIN_C_DECLS
// =======================================================================//
// !
// ! Macro based helpers, and functions available for redefintion
// !
// ==============... | 1,451 |
1,666 | /*
* Copyright (c) 2012 <NAME> <<EMAIL>>
* 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
* notice, this list of con... | 731 |
2,701 | <filename>components/newlib/newlib/port/esp_malloc.c
// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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.apach... | 572 |
323 | from parsl.app.app import join_app, python_app
@python_app
def add(*args):
"""Add all of the arguments together. If no arguments, then
zero is returned (the neutral element of +)
"""
accumulator = 0
for v in args:
accumulator += v
return accumulator
@join_app
def fibonacci(n):
if... | 246 |
485 | package io.indexr.vlt.segment.index;
import com.google.common.base.Preconditions;
import io.indexr.vlt.codec.dict.DictCompressCodec;
import org.apache.spark.unsafe.types.UTF8String;
import java.io.IOException;
import io.indexr.data.DictStruct;
import io.indexr.data.StringsStruct;
import io.indexr.segment.Column;
i... | 3,360 |
381 | <gh_stars>100-1000
{
"Meta":
{
"BinaryName": "ConsolePrint32.exe",
"Bits": 32,
"OS": "Win",
"Comment": "The hello world of rgat tests, without API thunk hiding",
"Category": "Basic"
},
"Configuration":{
"HideAPIThunks": false,
"DiscardTraceData": true
},
"FinalRequirements":{
"Test":{
"Tota... | 595 |
678 | <gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/WebCore.framework/WebCore
*/
#import <WebCore/DOMCSSRule.h>
@class DOMCSSRuleList, DOMMediaList;
__attribute__((visibility("hidden")))
@interface DOMCSSMediaRule : DOMCSSRule {
}
@property(readon... | 277 |
676 | package com.alorma.github.ui.utils;
import android.graphics.Color;
import android.support.v7.graphics.Palette;
public class PaletteUtils {
public static Palette.Swatch getProfileSwatch(Palette palette) {
if (palette != null) {
Palette.Swatch vibrantSwatch = palette.getVibrantSwatch();
Palette.Swatc... | 1,612 |
510 | #define GUILITE_ON //Do not define this macro once more!!!
#include "../manager/wave_manager.h"
#include "../modules/module_group.h"
#include "../data/database.h"
#include "../include/GuiLite.h"
#include <string.h>
#include <stdlib.h>
extern void load_theme(int index);
extern void load_ui_single(void* phy_fb, int wid... | 336 |
8,456 | <reponame>xetorthio/jedis
package redis.clients.jedis;
import org.apache.commons.pool2.PooledObject;
import org.apache.commons.pool2.PooledObjectFactory;
import org.apache.commons.pool2.impl.DefaultPooledObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import redis.clients.jedis.exceptions.JedisExcep... | 1,162 |
11,356 | <reponame>shreyasvj25/turicreate
/*==============================================================================
Copyright (c) 2013 Jamboree
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)
==================... | 891 |
1,143 | <filename>src/python/twitter/common/app/modules/http.py
# ==================================================================================================
# Copyright 2011 Twitter, Inc.
# --------------------------------------------------------------------------------------------------
# Licensed under the Apache Lic... | 1,337 |
2,591 | package com.example.liquibase.change;
import liquibase.serializer.AbstractLiquibaseSerializable;
public class ComputedConfig extends AbstractLiquibaseSerializable {
private String expression;
private Boolean persisted;
@Override
public String getSerializedObjectNamespace() {
return GENERIC_CH... | 399 |
473 | /*
* Cortex-A9MPCore Snoop Control Unit (SCU) emulation.
*
* Copyright (c) 2009 CodeSourcery.
* Copyright (c) 2011 Linaro Limited.
* Written by <NAME>, <NAME>.
*
* This code is licensed under the GPL.
*/
#ifndef HW_MISC_A9SCU_H
#define HW_MISC_A9SCU_H
#include "hw/sysbus.h"
/* A9MP private memory region. */
... | 271 |
2,151 | <gh_stars>1000+
// 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_VIZ_COMMON_SURFACES_CHILD_LOCAL_SURFACE_ID_ALLOCATOR_H_
#define COMPONENTS_VIZ_COMMON_SURFACES_CHILD_LOCAL_SURFACE_ID_A... | 629 |
4,879 | #pragma once
#include "geometry/point2d.hpp"
#include "base/visitor.hpp"
#include <vector>
namespace m2
{
// When the size of the convex hull over a set of |points| is less
// than 3, stores convex hull explicitly, otherwise stores smallest
// rectangle containing the hull. Note that at least one side of the
// rec... | 469 |
4,339 | <filename>modules/core/src/test/java/org/apache/ignite/internal/processors/cache/transactions/TxMultiCacheAsyncOpsTest.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 ... | 1,856 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.language.detect;
/**
* A hint that can be given to a {@link Detector}.
*
* @author <NAME>
*/
public class Hint {
private final String market;
private final String country;
privat... | 311 |
848 | <reponame>bluetiger9/Vitis-AI<filename>tools/Vitis-AI-Library/usefultools/python/xdputil_component/benchmark.py
#!/usr/bin/env python
# coding=utf-8
"""
Copyright 2019 Xilinx 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 ob... | 1,419 |
2,023 | def recursiveupdate(dst, src):
"""Recursively update dst from src.
Recursion depth is bounded by the heap rather than the python
interpretor recursion limit.
>>> dst = dict(a=1,b=2,c=dict(ca=31, cc=33, cd=dict(cca=1)), d=4, f=6)
>>> src = dict(b='u2',c=dict(cb='u32', cd=dict(cda=dict(cdaa='u3411'... | 1,181 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/MIME.framework/MIME
*/
#import <MIME/MessageFileWrapper.h>
@interface MFPlaceholderFileWrapper : MessageFileWrapper {
}
- (BOOL)isPlaceholder; // 0xbce1
@end
| 94 |
849 | /*
* Copyright 2016 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 ... | 789 |
678 | <reponame>bzxy/cydia
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport
*/
#import <OfficeImport/EDColorReference.h>
#import <OfficeImport/OfficeImport-Structs.h>
#import <OfficeImport/NSCopying.h>
#import <OfficeImport/XXUnknownSu... | 607 |
1,233 | <gh_stars>1000+
/*
* Copyright 2019 Netflix, 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... | 5,637 |
1,040 | <reponame>Ybalrid/orbiter<gh_stars>1000+
#include <stdio.h>
const double c0 = 299792458;
const double tauA = 499.004783806;
int posired (double, int, double*, double*);
void ReadData (int res);
int main (void)
{
double AU = c0*tauA;
double r[6], rorb[6];
double mjd = 53371; // Jan 1, 2005
double jd =... | 435 |
4,054 | <gh_stars>1000+
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/util/alloc.h>
#include <vector>
#include <cassert>
#include <cstring>
#include <cstdlib>
#include <sys/resource.h>
using namespace vespalib::alloc;
int main(int argc, char ... | 378 |
2,874 | <reponame>aachenmax/vmaf
__copyright__ = "Copyright 2016-2020, Netflix, Inc."
__license__ = "BSD+Patent"
import os
import numpy as np
from vmaf.config import VmafConfig
from vmaf.core.executor import run_executors_in_parallel
from vmaf.core.raw_extractor import DisYUVRawVideoExtractor
from vmaf.core.nn_train_test_mo... | 1,160 |
1,233 | <filename>alerta/plugins/remote_ip.py
import logging
from flask import request
from alerta.plugins import PluginBase
LOG = logging.getLogger('alerta.plugins')
class RemoteIpAddr(PluginBase):
"""
Add originating IP address of HTTP client as an alert attribute. This information
can be used for debugging,... | 309 |
2,989 | package com.linkedin.databus.bootstrap.producer;
/*
*
* Copyright 2013 LinkedIn Corp. 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/... | 9,717 |
335 | {
"word": "Dispensation",
"definitions": [
"Exemption from a rule or usual requirement.",
"Permission to be exempted from the laws or observances of the Church.",
"A political, religious, or social system prevailing at a particular time.",
"(in Christian theology) a divinely orda... | 168 |
50,404 | <reponame>liminghao1630/transformers<gh_stars>1000+
{
"modelname": "{{cookiecutter.modelname}}",
"uppercase_modelname": "{{cookiecutter.uppercase_modelname}}",
"lowercase_modelname": "{{cookiecutter.lowercase_modelname}}",
"camelcase_modelname": "{{cookiecutter.camelcase_modelname}}",
"authors": "{{cookiecutt... | 239 |
2,494 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
... | 506 |
907 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
void violet(char * up) {
char ginger[128];
strcpy(ginger, up);
puts(ginger);
}
int main() {
setvbuf(stdin, NULL, _IONBF, 0);
setvbuf(stdout, NULL, _IONBF, 0);
char * pearl = malloc(512);
memset(pearl, 0, 512);
... | 342 |
2,328 | // Copyright 2004-present Facebook. All Rights Reserved.
#include "CipherHybrid.h"
#include "DecryptHybrid.h"
#include "EncryptHybrid.h"
#include "MacDecoderHybrid.h"
#include "MacEncoderHybrid.h"
#include "PBKDF2Hybrid.h"
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved) {
return facebook::jni::initial... | 267 |
1,503 | <gh_stars>1000+
# BSD 2-CLAUSE LICENSE
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
# Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
# R... | 12,541 |
1,652 | <gh_stars>1000+
package com.ctrip.xpipe.redis.proxy.session.state;
import com.ctrip.xpipe.redis.proxy.Session;
import com.ctrip.xpipe.redis.proxy.session.SessionState;
import com.ctrip.xpipe.utils.ObjectUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author chen.zhu
* <p>
* May 13, 2018
*/
... | 694 |
346 | // generated by Fast Light User Interface Designer (fluid) version 1.0307
#include "StracciatellaLauncher.h"
StracciatellaLauncher::StracciatellaLauncher() {
{ stracciatellaLauncher = new Fl_Double_Window(520, 380, "JA2 Stracciatella Launcher");
stracciatellaLauncher->user_data((void*)(this));
{ Fl_Tabs* o ... | 4,249 |
835 | <filename>backend/src/main/java/ai/verta/modeldb/versioning/autogenerated/_public/modeldb/versioning/model/AutogenQueryDatasetComponentDiffGen.java<gh_stars>100-1000
// THIS FILE IS AUTO-GENERATED. DO NOT EDIT
package ai.verta.modeldb.versioning.autogenerated._public.modeldb.versioning.model;
import ai.verta.modeldb.v... | 678 |
432 | /* $FreeBSD: head/tools/tools/bus_autoconf/bus_sections.c 223534 2011-06-25 13:44:05Z hselasky $ */
/*-
* Copyright (c) 2011 <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:
* 1. Red... | 2,278 |
581 | <filename>test/llvm_test_code/uninitialized_variables/return_uninit.cpp
int foo() {
int i;
return i;
}
int main() {
int a = foo();
return 0;
}
| 62 |
3,372 | <filename>aws-java-sdk-transcribe/src/main/java/com/amazonaws/services/transcribe/model/TranscriptFilter.java
/*
* 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
* t... | 7,215 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.