max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,442 | <reponame>VersiraSec/epsilon-cfw<filename>ion/src/device/shared/regs/cortex.h
#ifndef REGS_CORTEX_H
#define REGS_CORTEX_H
#include "register.h"
#include <regs/config/cortex.h>
namespace Ion {
namespace Device {
namespace Regs {
class CORTEX {
public:
class SYST_CSR : public Register32 {
public:
enum class CL... | 1,984 |
3,200 | # Copyright 2020-2021 Huawei Technologies Co., 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.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | 13,662 |
575 | // 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.
#include "third_party/blink/renderer/modules/indexeddb/web_idb_cursor_impl.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <utilit... | 5,429 |
713 | EmbeddedCacheManager cacheManager = ...;
Configuration cacheConfig = new ConfigurationBuilder().persistence()
.addStore(JpaStoreConfigurationBuilder.class)
.persistenceUnitName("org.infinispan.loaders.jpa.configurationTest")
.entityClass(User.class)
.build();
cacheManage... | 164 |
451 | <filename>CodeGenere/photogram/cEqAppui_NoDist__PProjInc_M2CPolyn0.cpp
// File Automatically generated by eLiSe
#include "StdAfx.h"
#include "cEqAppui_NoDist__PProjInc_M2CPolyn0.h"
cEqAppui_NoDist__PProjInc_M2CPolyn0::cEqAppui_NoDist__PProjInc_M2CPolyn0():
cElCompiledFonc(2)
{
AddIntRef (cIncIntervale("Intr",0... | 8,992 |
964 | [
{
"queryName": "Configuration Aggregator to All Regions Disabled",
"severity": "HIGH",
"line": 4,
"fileName": "positive.tf"
},
{
"queryName": "Configuration Aggregator to All Regions Disabled",
"severity": "HIGH",
"line": 16,
"fileName": "positive.tf"
}
]
| 120 |
14,425 | <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,389 |
367 | <reponame>AppSecAI-TEST/Bigbang<gh_stars>100-1000
package com.forfan.bigbang.entity;
import java.util.List;
/**
* Created by wangyan-pd on 2016/10/26.
*/
public class WordSegs {
private List<String> tag;
private List<String> word;
public List<String> getTag() {
return tag;
}
public v... | 225 |
4,868 | package com.cf.sms;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.config.annotation.CorsReg... | 527 |
887 | <reponame>traversaro/gazebo
/*
* Copyright (C) 2016 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
... | 8,236 |
672 | /*
* Copyright (c) 2000-2011 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file ex... | 2,181 |
10,110 | # Copyright 2021 DeepMind Technologies Limited.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 3,609 |
2,313 | <gh_stars>1000+
/*
* Copyright (c) 2019-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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 limi... | 1,229 |
528 | <filename>tests/array/array/testArray1fViews.cpp
#include "array/zfparray1.h"
using namespace zfp;
extern "C" {
#include "utils/rand32.h"
}
#define ARRAY_DIMS_SCALAR_TEST Array1fTest
#define ARRAY_DIMS_SCALAR_TEST_VIEWS Array1fTestViews
#include "utils/gtest1fTest.h"
#define ZFP_ARRAY_TYPE array1f
#define SCALAR ... | 175 |
1,104 | <filename>trunk/adhoc-wrapper/src/main/java/backtype/storm/utils/NimbusClient.java
package backtype.storm.utils;
import backtype.storm.Config;
import backtype.storm.generated.Nimbus;
import java.util.Map;
import org.apache.thrift7.TException;
import org.apache.thrift7.protocol.TBinaryProtocol;
import org.apache.thrift... | 597 |
637 | <filename>test/src/test/java/lib/form/FormTest.java
package lib.form;
import com.gargoylesoftware.htmlunit.html.HtmlForm;
import com.gargoylesoftware.htmlunit.html.HtmlInput;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import hudson.model.RootAction;
import org.junit.Rule;
import org.junit.Test;
import org.jvn... | 1,360 |
558 | <reponame>pratikadarsh/Algorithms
'''
* @file MergeSort.py
* @author (original JAVA) <NAME>, <EMAIL>
* (conversion to Python) <NAME>, <EMAIL>
* @date 27 Jun 2020
* @version 0.1
* @brief Merge sort implementation
'''
import sys
class MergeSort():
"""
Mergesort implements InplaceSort for ease of... | 749 |
2,151 | <reponame>cohortfsllc/cohort-cocl2-sandbox
/*
* Copyright (c) 2013 The Native Client 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 <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <pthread.h>
#include <stdio.... | 4,013 |
19,438 | <filename>Userland/Libraries/LibCrypto/BigInt/Algorithms/ModularPower.cpp
/*
* Copyright (c) 2020, <NAME> <<EMAIL>>
* Copyright (c) 2020-2021, Dex♪ <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "UnsignedBigIntegerAlgorithms.h"
namespace Crypto {
void UnsignedBigIntegerAlgorithms::destructive_m... | 4,892 |
530 | from functools import partial
from typing import Any, Dict, Optional
from tartiflette.types.argument import GraphQLArgument
from tartiflette.types.exceptions.tartiflette import TartifletteError
from tartiflette.types.field import GraphQLField
from tartiflette.types.non_null import GraphQLNonNull
__all__ = (
"SCHE... | 1,481 |
550 | from play.utils import *
COMMANDS = ['secret']
HELP = {
'secret': 'Generate a new secret key'
}
def execute(**kargs):
app = kargs.get("app")
app.check()
print "~ Generating the secret key..."
sk = secretKey()
replaceAll(os.path.join(app.path, 'conf', 'application.conf'), r'application.secret... | 162 |
3,614 | <filename>api/chalicelib/core/issues.py
from chalicelib.utils import pg_client, helper
ISSUE_TYPES = ['click_rage', 'dead_click', 'excessive_scrolling', 'bad_request', 'missing_resource', 'memory', 'cpu',
'slow_resource', 'slow_page_load', 'crash', 'ml_cpu', 'ml_memory', 'ml_dead_click', 'ml_click_rage'... | 2,260 |
356 |
from e2cnn.kernels import Basis, EmptyBasisException
from .basisexpansion import BasisExpansion
from typing import Callable, Dict, List, Iterable, Union
import torch
import numpy as np
__all__ = ["SingleBlockBasisExpansion", "block_basisexpansion"]
class SingleBlockBasisExpansion(BasisExpansion):
def __i... | 4,006 |
1,264 | /*
* Copyright 2018-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 4,945 |
3,102 | <filename>clang/test/CodeGen/2008-03-26-PackedBitFields.c
// RUN: %clang_cc1 %s -emit-llvm -o -
struct S1757 {
long double c;
long int __attribute__((packed)) e:28;
} x;
| 78 |
12,278 | /*
Copyright <NAME> 2013
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)
*/
/*
* OSX can masquerade as BSD when sys/param.h is previously included.
* So we test that we only detect OSX in this combination.
*/
#if defi... | 222 |
758 | //
// TKBitmapRendition+Pasteboard.h
// ThemeEngine
//
// Created by <NAME> on 6/21/15.
// Copyright © 2015 <NAME>. All rights reserved.
//
#import <ThemeKit/ThemeKit.h>
#import "TERenditionPasteboardItem.h"
extern NSString *const TEBitmapPasteboardType;
@interface TKBitmapRendition (Pasteboard) <TERenditionPast... | 127 |
1,016 | package com.thinkbiganalytics.metadata.sla;
/*-
* #%L
* thinkbig-operational-metadata-integration-service
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* 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 cop... | 1,275 |
18,965 | <filename>samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/fragments/SettingsFragment.java
/*
* 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.
*/
package com.facebook.sam... | 5,685 |
1,016 | @ModuleGen(name = "vertx-web-api-service", groupPackage = "io.vertx")
package io.vertx.ext.web.api.service;
import io.vertx.codegen.annotations.ModuleGen;
| 58 |
798 | <reponame>thomas-watchmaker/picard
package picard.annotation;
import htsjdk.samtools.util.IOUtil;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import picard.cmdline.CommandLineProgramTest;
import java.io.File;
import java.io.IOException;
public class SortGffTest extends CommandLin... | 2,108 |
957 | <reponame>emadurandal/Effekseer<gh_stars>100-1000
//----------------------------------------------------------------------------------
// Include
//----------------------------------------------------------------------------------
#include "EffekseerTool.Sound.h"
#ifdef _WIN32
#endif
//-----------------------------... | 638 |
60,067 | #pragma once
#include <torch/optim/schedulers/lr_scheduler.h>
namespace torch {
namespace optim {
class TORCH_API StepLR : public LRScheduler {
public:
StepLR(torch::optim::Optimizer& optimizer,
const unsigned step_size,
const double gamma = 0.1);
private:
std::vector<double> get_lrs() overri... | 156 |
1,091 | <gh_stars>1000+
/*
* Copyright 2015-present Open Networking 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
*
* Unless r... | 1,902 |
3,810 | package com.birbit.android.jobqueue;
public class ConsumerControllerTest {
}
| 24 |
30,023 | <filename>homeassistant/components/vulcan/manifest.json
{
"domain": "vulcan",
"name": "Uonet+ Vulcan",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/vulcan",
"requirements": ["vulcan-api==2.1.1"],
"codeowners": ["@Antoni-Czaplicki"],
"iot_class": "cloud_polling",
"qua... | 137 |
592 | {
"name": "@styled-icons/crypto",
"version": "10.38.0",
"license": "MIT",
"description": "Crypto icons available as Styled Components",
"author": "<NAME> <<EMAIL>>",
"homepage": "https://github.com/styled-icons/styled-icons",
"repository": "git://github.com/styled-icons/styled-icons.git",
"keywords": [
... | 500 |
550 | <filename>playframework-dist/play-1.1/framework/src/play/data/validation/Email.java
package play.data.validation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import net.sf.oval.configuration.annotation.... | 201 |
3,281 | package carbon.widget;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.A... | 4,080 |
1,338 | // ResourceItem.h
#ifndef RESOURCE_ITEM_H
#define RESOURCE_ITEM_H
#include <String.h>
#include <SupportDefs.h>
class BPositionIO;
class ResourceItem {
public:
typedef int32 roff_t;
public:
ResourceItem();
virtual ~ResourceItem();
void SetLocation(roff_t offset, roff_t size);
void SetIde... | 604 |
617 | /**
* Copyright 2011-2013 FoundationDB, 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
*
* Unless required by applicable la... | 1,446 |
671 | package com.asha.nightowllib.handler.impls;
import android.widget.ImageView;
import com.asha.nightowllib.NightOwlTable;
import com.asha.nightowllib.handler.annotations.OwlHandle;
/**
* Created by hzqiujiadi on 15/11/5.
* hzqiujiadi <EMAIL>
*/
@OwlHandle({ImageView.class})
public class ImageViewHandler extends Abs... | 131 |
348 | {"nom":"Cuzieu","circ":"5ème circonscription","dpt":"Ain","inscrits":365,"abs":172,"votants":193,"blancs":12,"nuls":1,"exp":180,"res":[{"nuance":"LR","nom":"<NAME>","voix":120},{"nuance":"REM","nom":"<NAME>","voix":60}]} | 88 |
503 | /**
* Yobi, Project Hosting SW
*
* Copyright 2012 NAVER Corp.
* http://yobi.io
*
* @author <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/licen... | 1,951 |
471 | import datetime
import decimal
from jsonobject.base_properties import AbstractDateProperty
from jsonobject import *
import re
from jsonobject.api import re_date, re_time, re_decimal
from dimagi.utils.dates import safe_strftime
from dimagi.utils.parsing import ISO_DATETIME_FORMAT
from django.conf import settings
OldJs... | 1,310 |
661 | <gh_stars>100-1000
import copy
import torch
import torch.nn as nn
import torch.nn.functional as F
from .ssdsbase import SSDSBase
from ssds.modeling.layers.basic_layers import ConvBNReLU
class SharedHead(nn.Sequential):
def __init__(self, out_planes):
layers = []
for _ in range(4):
lay... | 2,515 |
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 ... | 3,325 |
995 | <filename>deps/boost/include/boost/intrusive/set.hpp
/////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright <NAME> 2004-2006.
// (C) Copyright <NAME> 2006-2014
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt ... | 18,105 |
8,197 | <reponame>infernix/ConEmu<filename>src/ConEmuHk/DbgHooks.h
#pragma once
/* Hook GetLastError/SetLastError procedures */
//#define HOOK_ERROR_PROC
#undef HOOK_ERROR_PROC
/* Define macros HLOGx and DLOGx */
/* SKIPHOOKLOG is not defined or undefined here, by it */
/* may be used to disable logging in the exact *.... | 421 |
1,988 | <filename>src/cli/cipher.cpp
/*
* (C) 2015,2017 <NAME> (Kullo GmbH)
* (C) 2020 <NAME>
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "cli.h"
#if defined(BOTAN_HAS_CIPHER_MODES)
#include <botan/cipher_mode.h>
#include <botan/hex.h>
#include <sstream>
#if defined(BOTAN_HAS_AEAD_M... | 1,183 |
892 | <reponame>github/advisory-database
{
"schema_version": "1.2.0",
"id": "GHSA-jhjp-3hp8-fjch",
"modified": "2022-05-13T01:31:50Z",
"published": "2022-05-13T01:31:50Z",
"aliases": [
"CVE-2018-7603"
],
"details": "In Drupal's 3rd party module search auto complete prior to versions 7.x-4.8 there is a Cross... | 507 |
508 | <gh_stars>100-1000
package com.github.instagram4j.instagram4j.models.direct.item;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.github.instagram4j.instagram4j.models.media.Link;
import lombok.Data;
@Data
@JsonTypeName("link")
public class ThreadLinkItem extends ThreadItem {
private Link link;
... | 115 |
723 | package com.github.zxh0.luago.state;
import com.github.zxh0.luago.api.*;
import com.github.zxh0.luago.binchunk.Prototype;
import static com.github.zxh0.luago.api.ArithOp.*;
import static com.github.zxh0.luago.api.LuaType.*;
public class LuaStateImpl implements LuaState, LuaVM {
private LuaStack stack = new LuaS... | 4,785 |
3,428 | {"id":"02451","group":"easy-ham-1","checksum":{"type":"MD5","value":"2d85b62408d45e219d34e55a1439f795"},"text":"From sentto-2242572-60173-1038799103-jm=<EMAIL> Mon Dec 2 11:25:56 2002\nReturn-Path: <<EMAIL>-2242572-60173-1038799103-yyyy=<EMAIL>>\nDelivered-To: yyyy@localhost.spamassassin.taint.org\nReceived: from loc... | 1,345 |
3,999 | <reponame>discohead/jesse<gh_stars>1000+
from .candle_factory import fake_candle
from .candle_factory import fake_range_candle
from .candle_factory import fake_range_candle_from_range_prices
from .order_factory import fake_order
| 80 |
1,444 | package mage.sets;
import mage.cards.ExpansionSet;
import mage.constants.Rarity;
import mage.constants.SetType;
/**
* https://scryfall.com/sets/f07
*/
public class FridayNightMagic2007 extends ExpansionSet {
private static final FridayNightMagic2007 instance = new FridayNightMagic2007();
public static Fri... | 709 |
7,482 | <reponame>rockonedege/rt-thread
/* $NetBSD: uaudioreg.h,v 1.15.38.1 2012/06/02 11:09:29 mrg Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME> (<EMAIL>) at
* Carlstedt Research & Technology.... | 6,278 |
1,132 | <gh_stars>1000+
#include "gb-include.h"
#include <errno.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <ctype.h>
// . we should not read in more than 1M from input file
// . if g_conf.m_httpMaxReadSize is ever bigger than 1M, this should be inc'd
#define MAX_READ_SI... | 3,714 |
2,793 | #include "ruby/ruby.h"
#include "ruby/encoding.h"
static VALUE
enc_str_buf_cat(VALUE str, VALUE str2)
{
return rb_enc_str_buf_cat(str, RSTRING_PTR(str2), RSTRING_LEN(str2), rb_enc_get(str2));
}
void
Init_string_enc_str_buf_cat(VALUE klass)
{
rb_define_method(klass, "enc_str_buf_cat", enc_str_buf_cat, 1);
}
| 152 |
577 | <gh_stars>100-1000
package org.fluentlenium.example.spring.page;
import org.fluentlenium.core.FluentPage;
import org.fluentlenium.core.annotation.PageUrl;
import org.fluentlenium.core.domain.FluentWebElement;
import org.openqa.selenium.support.FindBy;
import static org.fluentlenium.assertj.FluentLeniumAssertions.asse... | 274 |
834 | from setuptools import setup
setup(
name='swapy',
version='0.2.2',
description='Easy and modular web development',
author='<NAME>',
author_email='<EMAIL>',
url='https://github.com/danieldaeschle/swapy',
packages=['swapy'],
install_requires=['werkzeug', 'jinja2'],
license='MIT'
)
| 130 |
3,200 | <gh_stars>1000+
# Copyright 2020 Huawei Technologies Co., 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.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 800 |
3,102 | int *A1;
| 6 |
14,668 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/crostini/crostini_expired_container_warning_view.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#includ... | 1,684 |
2,759 | // 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
//
// Unless required by applicable law or agreed to in writ... | 766 |
389 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright 2020 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/li... | 1,177 |
348 | {"nom":"Saint-Julien-du-Sault","circ":"3ème circonscription","dpt":"Yonne","inscrits":1601,"abs":879,"votants":722,"blancs":9,"nuls":70,"exp":643,"res":[{"nuance":"REM","nom":"<NAME>","voix":384},{"nuance":"FN","nom":"<NAME>","voix":259}]} | 97 |
1,139 | package com.journaldev.servlet.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.journaldev.servlet.dao.UserDAO;
import com.journaldev.... | 593 |
26,932 | import java.security.AccessController;
import java.security.PrivilegedExceptionAction;
public class B
implements PrivilegedExceptionAction
{
public B()
{
try
{
AccessController.doPrivileged(this); } catch (Exception e) {
}
}
public Object run() {
System.setSecurityManage... | 134 |
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 "ash/wallpaper/wallpaper_controller.h"
#include <cmath>
#include <cstdlib>
#include "ash/public/cpp/ash_switches.h"
#... | 37,117 |
404 | //
// MidiSourceFile.c - MrsWatson
// Copyright (c) 2016 <NAME>. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// ... | 4,391 |
319 | {
"contentVersion": "1.0.0.0",
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"parameters": {
"adminUsername": {
"type": "string",
"metadata": {
"description": "Username for the Virtual Machine."
}
},
"adminPassword": {
"typ... | 652 |
1,320 | //
// Loggeer.hpp
// Pods
//
// Created by <NAME> on 15/10/8.
//
//
#ifndef Loggeer_hpp
#define Loggeer_hpp
#include <videocore/system/util.h>
#include <string>
namespace videocore {
class Logger {
public:
static void log(bool synchronous,
int level,
... | 1,724 |
372 | /*
* 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 under t... | 2,116 |
530 | <reponame>ajaybhat/strongbox
package org.carlspring.strongbox.providers.layout;
import java.io.IOException;
import java.util.Map;
import java.util.Set;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import javax.annotation.PostConstruct;
import javax.inject.Inject;... | 1,876 |
713 | package org.infinispan.search.mapper.mapping.impl;
import org.hibernate.search.engine.mapper.mapping.building.spi.MappingKey;
import org.infinispan.search.mapper.log.impl.InfinispanEventContextMessages;
import org.infinispan.search.mapper.mapping.SearchMapping;
import org.jboss.logging.Messages;
public final class In... | 216 |
1,511 | <reponame>s4-2/scancode-toolkit<filename>tests/cluecode/data/ics/freetype-src-base/ftlcdfil.c
/* */
/* FreeType API for color filtering of subpixel bitmap glyphs (body). */
/* ... | 375 |
2,151 | // 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.
#ifndef CHROME_BROWSER_UI_VIEWS_FRAME_GLOBAL_MENU_BAR_REGISTRAR_X11_H_
#define CHROME_BROWSER_UI_VIEWS_FRAME_GLOBAL_MENU_BAR_REGISTRAR_X11_H_
#include <g... | 661 |
590 | package hype.interfaces;
public interface HDirectable extends HLocatable, HRotatable {}
| 23 |
327 | <filename>analysis/correspondence/visualize_correspondence.py
# Copyright (c) ByteDance, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import os
import argparse
import torch
import torchvision
im... | 8,116 |
356 | #include "ply.h"
#include <candle.h>
#include <limits.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define MAX_WORD 4095
enum value_type {
PLY_NONE,
PLY_FLOAT, PLY_DOUBLE,
PLY_UCHAR, PLY_CHAR,
PLY_INT8, PLY_INT, PLY_UINT8, PLY_UINT, PLY_LONG, PLY_ULONG,
PLY_LIST
};
struct type_info
{
char name... | 3,111 |
5,169 | {
"name": "SwiftFunnyAnimations",
"version": "0.1.0",
"summary": "For now only 2 simple animations set.",
"description": "Its simple set of particle animations for iOS in swift 4.0",
"homepage": "https://github.com/mmachado53/SwiftFunnyAnimations",
"screenshots": "https://raw.githubusercontent.com/mmachado5... | 300 |
2,291 | <reponame>M-i-k-e-l/osmdroid<filename>issues/osmdroid_issue187.json
{
"id" : 187,
"status" : "Invalid",
"summary" : "DefaultResourceProxyImpl is broken?",
"labels" : [ "Type-Defect", "Priority-Medium" ],
"stars" : 0,
"commentCount" : 3,
"comments" : [ {
"id" : 0,
"commenterId" : 764609206524917313... | 562 |
407 | <gh_stars>100-1000
import sys
si = sys.stdin.readline
n = int(si())
a= [0] * n
for i in range(n):
a[i] = int(si())
dy = [[0, 0] for _ in range(n + 2)]
# 초기값 채우기
dy[0][0], dy[0][1] = 0, a[0]
if n >= 2:
dy[1][0], dy[1][1] = a[1], a[0] + a[1]
# 점화식을 토대로 dy 배열 채우기
for i in range(2, n):
dy[i][0] = max(dy[i ... | 291 |
312 | //-----------------------------------------------------------------------------
// Copyright (c) 2015 <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, includi... | 1,849 |
1,738 | <reponame>jeikabu/lumberyard<filename>dev/Code/Sandbox/Plugins/MaglevControlPanel/QBackgroundLambda.h
/*
* 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 "Licens... | 1,467 |
875 | <reponame>christeoh/sqoop<filename>src/java/org/apache/sqoop/manager/SqlServerManagerContextConfigurator.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 ... | 1,626 |
372 | /*
* 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 under t... | 947 |
1,870 | # model settings
model = dict(
type='Recognizer2D',
backbone=dict(
type='MobileNetV2TSM',
shift_div=8,
num_segments=8,
is_shift=True,
pretrained='mmcls://mobilenet_v2'),
cls_head=dict(
type='TSMHead',
num_segments=8,
num_classes=400,
in... | 305 |
2,291 | <reponame>elkuku/osmdroid<gh_stars>1000+
package org.osmdroid.views.overlay.milestones;
import org.osmdroid.util.Distance;
import org.osmdroid.views.util.constants.MathConstants;
/**
* Listing every given meters of the `Path`
* Created by Fabrice on 28/12/2017.
*
* @since 6.0.0
*/
public class MilestoneMeterDis... | 2,002 |
1,553 | from __future__ import unicode_literals, print_function
import argparse
import codecs
import os
import re
import os.path as op
import io
from io import open
import sys
from textwrap import dedent
from .formats import get_file_extension
from .time import make_time
from .ssafile import SSAFile
from .common import PY3, VE... | 4,306 |
4,879 | #include "drape/texture.hpp"
#include "drape/gl_functions.hpp"
#include "drape/glsl_func.hpp"
#include "drape/utils/gpu_mem_tracker.hpp"
#include "base/math.hpp"
#include "3party/glm/glm/gtx/bit.hpp"
namespace dp
{
Texture::ResourceInfo::ResourceInfo(m2::RectF const & texRect) : m_texRect(texRect) {}
m2::RectF con... | 1,018 |
2,027 | <filename>util/registry/replication.py
import features
import json
from contextlib import contextmanager
from data import model
from app import image_replication_queue
DEFAULT_BATCH_SIZE = 1000
@contextmanager
def queue_replication_batch(namespace, batch_size=DEFAULT_BATCH_SIZE):
"""
Context manager implem... | 580 |
3,227 | <filename>Segment_Delaunay_graph_2/test/Segment_Delaunay_graph_2/include/sdg_hierarchy_main.h
#ifndef SDG_MAIN_HIERARCHY_H
#define SDG_MAIN_HIERARCHY_H
#include <CGAL/basic.h>
#include <iostream>
#include <cassert>
#include "test.h"
int main(int, char**)
{
CGAL::test_hierarchy_x(std::cin, "bizarre");
CGAL::test_... | 339 |
14,668 | // 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.
#ifndef UI_GFX_IMAGE_IMAGE_UTIL_H_
#define UI_GFX_IMAGE_IMAGE_UTIL_H_
#include <stddef.h>
#include <vector>
#include "ui/gfx/gfx_export.h"
namespa... | 1,505 |
322 | {
"cancelBtn": "Отмена",
"saveBtn": "Сохранить",
"settings": "Настройки",
"language": "Язык"
}
| 71 |
1,405 | <filename>sample4/recompiled_java/sources/QQPIM/TopList.java<gh_stars>1000+
package QQPIM;
import com.qq.taf.jce.JceDisplayer;
import com.qq.taf.jce.JceInputStream;
import com.qq.taf.jce.JceOutputStream;
import com.qq.taf.jce.JceStruct;
import com.qq.taf.jce.JceUtil;
import java.util.ArrayList;
import java.util.Collec... | 1,397 |
1,799 | <reponame>714627034/Paddle-Lite
// Copyright (c) 2019 PaddlePaddle 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/L... | 2,238 |
11,356 | /*=============================================================================
Copyright (c) 2006-2007 <NAME>
Use modification and distribution are subject to 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).
=============... | 2,906 |
4,879 | package com.mapswithme.maps.dialog;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx.fragment.app.FragmentManager;
public interface ResolveFragmentManagerStrategy
{
@NonNull
FragmentManager resolve(@NonNull Fragment baseFragm... | 125 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.