max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
892 | {
"schema_version": "1.2.0",
"id": "GHSA-x8qg-82x8-gf44",
"modified": "2022-05-01T07:33:04Z",
"published": "2022-05-01T07:33:04Z",
"aliases": [
"CVE-2006-5920"
],
"details": "** DISPUTED ** PHP remote file inclusion vulnerability in common.php in Yuuki Yoshizawa Exporia 0.3.0 allows remote attackers ... | 528 |
405 | <filename>jeecg-p3-biz-qywx/src/main/java/com/jeecg/qywx/core/service/impl/SignForWeixinServiceImpl.java
package com.jeecg.qywx.core.service.impl;
import org.jeecgframework.p3.core.logger.Logger;
import org.jeecgframework.p3.core.logger.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
impo... | 1,409 |
454 | from gazette.spiders.base.fecam import FecamGazetteSpider
class ScPresidenteGetulioSpider(FecamGazetteSpider):
name = "sc_presidente_getulio"
FECAM_QUERY = "cod_entidade:211"
TERRITORY_ID = "4214003"
| 92 |
3,788 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
// DO NOT EDIT! This file was generated by CustomTasks.DependencyPropertyCodeGen
#pragma once
class AcrylicBrushProperties
{
public:
AcrylicBrushPropert... | 1,000 |
1,442 | <reponame>VersiraSec/epsilon-cfw
#ifndef CODE_SCRIPT_NODE_H
#define CODE_SCRIPT_NODE_H
#include <stddef.h>
#include <stdint.h>
namespace Code {
class ScriptNode {
public:
enum class Type : bool {
WithoutParentheses,
WithParentheses
};
ScriptNode(Type type = Type::WithoutParentheses, const char * name =... | 351 |
1,144 | #pragma once
#include <string>
#include <vector>
#include "caps.h"
class RandomCapsFactory {
public:
RandomCapsFactory(bool capi);
~RandomCapsFactory();
void gen_integer();
void gen_float();
void gen_long();
void gen_double();
void gen_string();
void gen_binary();
void gen_object(uint32_t enable_sub_object... | 435 |
422 | from core.decorator.normal_functions import *
from core.tools.CommonFunc import *
from core.processor.BP import BP
from core.keywords import kwKeyList # 导入所有关键字,在 keywords.__init__.py中导入
import core.processor.KP
from core.processor.SelfKeywordProcesser import SelfKeywordProcesser
from core.tools.VerifyTool import Veri... | 15,439 |
1,947 | <reponame>Georepublic/valhalla
#ifndef VALHALLA_BALDR_TRANSITROUTE_H_
#define VALHALLA_BALDR_TRANSITROUTE_H_
#include <cstdint>
#include <valhalla/baldr/graphconstants.h>
namespace valhalla {
namespace baldr {
/**
* Information held for each transit route. This is information not required
* during path generation.... | 1,478 |
1,178 | // Copyright 2020 Makani Technologies LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | 1,011 |
1,337 | /*
* Copyright (c) 2008-2016 Haulmont.
*
* 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... | 10,024 |
3,486 | #!/usr/bin/python
import argparse
import copy
import re
import struct
from uuid import *
from zlib import *
# Configuration
LBA_SIZE = 512
# Constants
GPT_TYPE_GUID_SCE_PREINST = UUID("17800F17-B9E1-425D-B937-0119A0813172")
GPT_TYPE_GUID_SCE_PREINST2 = UUID("CCB52E94-EBEF-48C4-A195-9E2DA5B0292C")
GPT_TYPE_... | 4,675 |
3,442 | <reponame>wcicola/jitsi
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty 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
*
* ... | 1,544 |
2,288 | /* From RFC5869 Appendix A
*
* https://tools.ietf.org/html/rfc5869
*/
#include <ccan/crypto/hkdf_sha256/hkdf_sha256.h>
#include <ccan/tap/tap.h>
#include <ccan/str/hex/hex.h>
#include <string.h>
#include <assert.h>
struct test {
const char *ikm, *salt, *info, *okm;
};
static struct test tests[] = { {
/* Test Cas... | 1,480 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-848m-2rw5-f2f2/GHSA-848m-2rw5-f2f2.json
{
"schema_version": "1.2.0",
"id": "GHSA-848m-2rw5-f2f2",
"modified": "2022-05-13T01:28:52Z",
"published": "2022-05-13T01:28:52Z",
"aliases": [
"CVE-2011-1527"
],
"details": "The kdb_ldap plugin in the Key Distributio... | 711 |
20,206 | <reponame>libcat/libuv
/* Copyright libuv project contributors. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation th... | 1,638 |
21,684 | <reponame>zadcha/rethinkdb
// Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef RDB_PROTOCOL_GEO_EXCEPTIONS_HPP_
#define RDB_PROTOCOL_GEO_EXCEPTIONS_HPP_
#include <exception>
#include <string>
#include "utils.hpp"
class geo_exception_t : public std::exception {
public:
explicit geo_exception_t(std::str... | 285 |
443 | /**
* zling:
* light-weight lossless data compression utility.
*
* Copyright (C) 2012-2013 by <NAME> <zhangli10 at baidu.com>
* 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. Redi... | 2,860 |
759 | <reponame>tonytw1/rome<filename>rome-modules/src/main/java/com/rometools/modules/yahooweather/io/WeatherModuleParser.java
/*
* Copyright 2008 <NAME>, Temple of the Screaming Penguin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.... | 2,787 |
2,338 | <filename>third-party/llvm/llvm-src/tools/clang/lib/StaticAnalyzer/Checkers/WebKit/UncountedCallArgsChecker.cpp
//=======- UncountedCallArgsChecker.cpp --------------------------*- C++ -*-==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for lic... | 2,666 |
12,377 | <reponame>Intsigstephon/insightface
import oneflow as flow
# same as torch
def _get_initializer():
return flow.random_normal_initializer(mean=0.0, stddev=0.1)
def _get_initializer_FC():
return flow.random_normal_initializer(mean=0.0, stddev=0.01)
def _get_regularizer(name):
return flow.regularizers.l2... | 3,496 |
32,544 | <filename>json/src/test/java/com/baeldung/jsonjava/JSONObjectIntegrationTest.java
package com.baeldung.jsonjava;
import static org.junit.Assert.assertEquals;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONObject;
import org.junit.Test;
public class JSONObjectIntegrationTest {
@Test
publ... | 574 |
360 | <filename>src/bin/pg_probackup/file_gz.cpp
/*-------------------------------------------------------------------------
*
* file.c
*
* Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
*
*-----------------------------------------------... | 8,213 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_TOOLBAR_ACCESSORY_TOOLBAR_ACCESSORY_COORDINATOR_DELEGATE_H_
#define IOS_CHROME_BROWSER_UI_TOO... | 257 |
1,178 | <reponame>PGijsbers/categorical-encoding
from memory_profiler import profile
import gc
import category_encoders as ce
from examples.source_data.loaders import get_mushroom_data, get_cars_data, get_splice_data
__author__ = 'willmcginnis'
@profile(precision=4)
def hashing():
X, _, _ = get_mushroom_data()
print... | 1,083 |
1,652 | package com.ctrip.xpipe.redis.proxy.handler;
import com.ctrip.xpipe.AbstractTest;
import com.github.luben.zstd.Zstd;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.embedded.EmbeddedChannel;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import java.n... | 1,630 |
463 | static const unsigned char printer_lg_png[] =
{
0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,0x44,0x52,
0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x00,0x08,0x06,0x00,0x00,0x00,0xf4,0x78,0xd4,
0xfa,0x00,0x00,0x04,0x19,0x69,0x43,0x43,0x50,0x6b,0x43,0x47,0x43,0x6f,0x6c,0x6f,
0x72,0x53,0x70,0x61,0... | 128,297 |
369 | /**
******************************************************************************
* @file stm32f0xx_dbgmcu.h
* @author MCD Application Team
* @version V1.0.0RC1
* @date 27-January-2012
* @brief This file contains all the functions prototypes for the DBGMCU firmware
* library.
*******... | 1,575 |
848 | /* Copyright 2017 The TensorFlow 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 a... | 960 |
1,826 | package com.vladsch.flexmark.ext.gitlab;
import com.vladsch.flexmark.util.ast.VisitHandler;
public class GitLabVisitorExt {
public static <V extends GitLabVisitor> VisitHandler<?>[] VISIT_HANDLERS(V visitor) {
return new VisitHandler<?>[] {
new VisitHandler<>(GitLabIns.class, visitor::visi... | 243 |
1,838 | /*
* Copyright 2005-2019 Dozer Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 614 |
498 | from __future__ import print_function
import sys
import struct
try:
import gdb
except ImportError:
print("Not running inside of GDB, exiting...")
sys.exit()
from libheap.frontend.printutils import print_title
from libheap.frontend.printutils import print_error
from libheap.frontend.printutils import prin... | 1,974 |
2,743 | <filename>mayan/apps/document_signatures/migrations/0003_auto_20160325_0052.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import storage.backends.filebasedstorage
import document_signatures.models
class Migration(migrations.Migration):
dependencies =... | 2,661 |
1,144 | package de.metas.ui.web.handlingunits.process;
import de.metas.document.DocTypeId;
import de.metas.handlingunits.inventory.internaluse.HUInternalUseInventoryCreateRequest;
import de.metas.handlingunits.model.I_M_Inventory;
import de.metas.process.Param;
import org.compiere.util.Env;
import javax.annotation.Nullable;
... | 658 |
14,793 | <filename>weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeCommitRequestTest.java
package cn.binarywang.wx.miniapp.bean.code;
import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;
/**
* @author <a href="https://github.com/charmingoh">Charming</a>
* @since 201... | 374 |
1,587 | package io.reflectoring.componentscan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import io.reflectoring.vehicles.Car;
@Configuration
@ComponentScan(basePackages= "io.reflectoring.... | 185 |
879 | package org.zstack.storage.ceph;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Configurable;
import org.zstack.storage.ceph.primary.CephPrimaryStorageMonBase;
import org.zstack.storage.ceph.primary.CephPrimaryStorageMonVO;
import org.zstack.storage.vo... | 869 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 1,241 |
4,375 | package com.codingapi.txlcn.tm.id;
import static com.codingapi.txlcn.tm.node.TmNodeInitiator.getSnowflakeVo;
/**
* @author lorne
* @date 2020/8/8
* @description
*/
public class SnowflakeHandler {
private static final Snowflake SNOWFLAKE =
SnowflakeHandler.createSnowflake(getSnowflakeVo().getWorke... | 1,065 |
37,222 | # Copyright 2018 The TensorFlow 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 applica... | 6,434 |
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 ... | 1,067 |
2,133 | <filename>src/AirspaceManagement/AirspaceRestrictionProvider.cc<gh_stars>1000+
/****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the... | 141 |
575 | <filename>components/policy/core/browser/android/policy_cache_updater_android_unittest.cc<gh_stars>100-1000
// 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 "components/policy/core/browser/andro... | 2,636 |
777 | <reponame>google-ar/chromium<filename>third_party/WebKit/public/web/WebMediaDeviceChangeObserver.h
// 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 WebMediaDeviceChangeObserver_h
#define WebMedia... | 391 |
766 | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.o... | 3,263 |
997 | <filename>crypto_kem/sntrup761/clean/crypto_core_scale3sntrup761.c
#include "crypto_core_scale3sntrup761.h"
#include "crypto_decode_761xint16.h"
#include "crypto_encode_761xint16.h"
#define p 761
#define q 4591
#define crypto_decode_pxint16 PQCLEAN_SNTRUP761_CLEAN_crypto_decode_761xint16
#define crypto_encode_pxint1... | 500 |
819 | <reponame>virdesai/stock-analysis-engine
"""
Build a dictionary for running an algorithm
"""
import datetime
import analysis_engine.consts as ae_consts
import analysis_engine.utils as ae_utils
import spylunking.log.setup_logging as log_utils
log = log_utils.build_colorized_logger(name=__name__)
def build_algo_reque... | 2,832 |
9,729 | <reponame>tetianakravchenko/beats
import jinja2
import os
import sys
from beat import common_tests
from filebeat import BaseTest as FilebeatTest
class FilebeatXPackTest(FilebeatTest, common_tests.TestExportsMixin):
@classmethod
def setUpClass(self):
self.beat_name = "filebeat"
self.beat_path ... | 379 |
2,350 | <gh_stars>1000+
from typing import Tuple
import torch
from torch import Tensor
from torch_scatter import scatter_add
from torch_geometric.utils import add_self_loops, coalesce
def get_mesh_laplacian(pos: Tensor, face: Tensor) -> Tuple[Tensor, Tensor]:
r"""Computes the mesh Laplacian of a mesh given by... | 1,325 |
571 | <reponame>ufora/ufora
import argparse
import itertools
import os
import subprocess
import sys
import threading
import time
from pyfora.aws.Cluster import Cluster, EventTypes
def get_region(region):
region = region or os.getenv('PYFORA_AWS_EC2_REGION')
if region is None:
raise ValueError('EC2 region no... | 11,199 |
892 | <reponame>github/advisory-database<filename>advisories/unreviewed/2022/05/GHSA-5234-wvr8-wqqh/GHSA-5234-wvr8-wqqh.json
{
"schema_version": "1.2.0",
"id": "GHSA-5234-wvr8-wqqh",
"modified": "2022-05-13T01:12:21Z",
"published": "2022-05-13T01:12:21Z",
"aliases": [
"CVE-2018-0471"
],
"details": "A vulner... | 672 |
1,207 | <gh_stars>1000+
package android.marshon.likequanmintv.mvp.recommend;
import android.marshon.likequanmintv.bean.Banner;
import android.marshon.likequanmintv.bean.LiveCategory;
import android.marshon.likequanmintv.librarys.http.delagate.IGetDataDelegate;
import android.marshon.likequanmintv.librarys.http.rxjava.MSubscri... | 971 |
785 | <reponame>fornellas/dmbs
/*
DMBS Build System
Released into the public domain.
dean [at] fourwalledcubicle [dot] com
www.fourwalledcubicle.com
*/
// Include Guard
#pragma once
#include <stdint.h>
#include <stddef.h>
#include <avr/io.h>
| 124 |
4,772 | <gh_stars>1000+
package example.repo;
import example.model.Customer1269;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1269Repository extends CrudRepository<Customer1269, Long> {
List<Customer1269> findByLastName(String lastName);
}
| 95 |
755 | <reponame>kmqwerty/Overload<gh_stars>100-1000
/**
* @project: Overload
* @author: <NAME>.
* @licence: MIT
*/
#include <utility>
#include <stdexcept>
#include "OvMaths/FVector4.h"
const OvMaths::FVector4 OvMaths::FVector4::One(1.0f, 1.0f, 1.0f, 1.0f);
const OvMaths::FVector4 OvMaths::FVector4::Zero(0.0f, 0.0f, 0.0f, ... | 1,808 |
8,027 | #ifndef __i386__
#error "This library only builds for x86"
#endif
void x86_only_function() {}
| 34 |
301 | /*
*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*
* Copyright 2018 Intel Corporation All Rights Reserved.
*
*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance ... | 7,268 |
557 | //
// FastStubInspector.h
// FastStub
//
// Created by <NAME> on 16/5/16.
// Copyright © 2016年 music4kid. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface FastStubInspector : NSObject
+ (instancetype)sharedInstance;
- (void)updateHeader:(NSString *)headerPath;
- (void)updateProject:(NSString... | 147 |
421 | """empty message
Revision ID: 4b9fb4d<PASSWORD>9
Revises: 451f6bd05a19
Create Date: 2019-07-19 13:38:08.010157
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = "4<PASSWORD>"
down_revision = "451f6bd05a19"
branch_labels =... | 282 |
308 | <filename>tests/utests/data/test_merge.c
/**
* @file test_merge.c
* @author <NAME> <<EMAIL>>
* @brief tests for complex data merges.
*
* Copyright (c) 2020 CESNET, z.s.p.o.
*
* This source code is licensed under BSD 3-Clause License (the "License").
* You may not use this file except in compliance with the Lice... | 15,591 |
2,413 | <reponame>hxri/mars
# Copyright 1999-2021 Alibaba Group Holding 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... | 2,708 |
1,830 | <filename>engine/src/main/java/io/camunda/zeebe/engine/processing/streamprocessor/writers/TypedRejectionWriter.java<gh_stars>1000+
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for add... | 260 |
930 | <reponame>A-kriti/Amazing-Python-Scripts
#!/usr/bin/env python
# coding: utf-8
# Imports
from nltk.corpus import stopwords
from nltk.cluster.util import cosine_distance
import numpy as np
import networkx as nx
# Enter the File path
file_name = input("Enter the Source File: ")
print("This script requires 'stopwords' f... | 1,535 |
504 | <filename>src/main/java/com/structurizr/dsl/ViewContentParser.java
package com.structurizr.dsl;
import com.structurizr.model.Relationship;
import com.structurizr.view.View;
import static com.structurizr.dsl.StructurizrDslExpressions.*;
abstract class ViewContentParser extends AbstractParser {
protected static f... | 656 |
23,866 | /*!
* Copyright 2021 XGBoost contributors
*
* \brief A simple example of using prediction functions.
*/
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <xgboost/c_api.h>
#define safe_xgboost(err) \
if ((err) != 0) { ... | 3,113 |
2,504 | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 1,612 |
1,337 | /*
* Copyright (c) 2008-2016 Haulmont.
*
* 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... | 2,060 |
778 | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: <NAME>, <NAME>
//
// System i... | 3,302 |
539 | from src.platform.jboss.authenticate import checkAuth
from src.platform.jboss.interfaces import JINTERFACES
from src.module.deploy_utils import bsh_deploy
from log import LOG
from base64 import b64encode
from os import remove, path
import utility
versions = ["3.2", "4.0", "4.2"]
title = JINTERFACES.WC
def deploy(fing... | 1,823 |
1,085 | <filename>sabot/kernel/src/main/java/com/dremio/exec/planner/physical/visitor/ComplexToJsonPrelVisitor.java
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 ... | 475 |
1,845 | package org.rajawali3d.examples.recycler;
import androidx.annotation.MainThread;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.RecyclerView.ViewHolder;
import java.util.ArrayList;
import java.util.List;
abstract class ReferencedAdapter<T, V ... | 693 |
14,668 | <reponame>zealoussnow/chromium
// 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/ash/attestation/certificate_util.h"
#include "base/containers/span.h"
#include "base/logging.h"
#... | 1,007 |
325 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2018, <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,... | 926 |
1,603 | <gh_stars>1000+
package com.linkedin.datahub.graphql.types.notebook.mappers;
import com.linkedin.common.AuditStamp;
import com.linkedin.common.GlobalTags;
import com.linkedin.common.TagAssociationArray;
import com.linkedin.common.urn.Urn;
import com.linkedin.dashboard.EditableDashboardProperties;
import com.linkedin.d... | 1,009 |
3,603 | /*
* 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
* distribut... | 536 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.automation.models;
import com.azure.resourcemanager.automation.fluent.models.JobStreamListResultInner;
import java.util.List;
/... | 303 |
1,093 | <reponame>StandCN/spring-integration
/*
* Copyright 2002-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/L... | 1,863 |
1,711 | {"request":{"ablations":[],"ids":[100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119],"project":"churchoutdoor","wantz":0},"res":[{"d":"/data/churchoutdoor/cache/img/id/100.jpg","id":100},{"d":"/data/churchoutdoor/cache/img/id/101.jpg","id":101},{"d":"/data/churchoutdoor/cache/img/id/102.jp... | 503 |
984 | <reponame>om-sharma/java-driver
/*
* Copyright DataStax, 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 ap... | 294 |
7,113 | <gh_stars>1000+
/*
* Copyright (C) 2010-2101 Alibaba Group Holding Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | 1,023 |
521 |
#ifndef _XAA_WRAPPER_H
# define _XAA_WRAPPER_H
typedef void (*SyncFunc)(ScreenPtr);
Bool xaaSetupWrapper(ScreenPtr pScreen,
XAAInfoRecPtr infoPtr, int depth, SyncFunc *func);
#endif
| 84 |
1,144 | // SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2016-2018 Intel Corporation <www.intel.com>
*
*/
#include <common.h>
#include <asm/io.h>
#include <asm/arch/reset_manager.h>
#include <asm/arch/system_manager.h>
#include <dt-bindings/reset/altr,rst-mgr-s10.h>
DECLARE_GLOBAL_DATA_PTR;
static const struct socf... | 1,615 |
2,701 | <gh_stars>1000+
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// http://code.google.com/p/protobuf/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
/... | 2,452 |
317 | <reponame>Benefit-Zebra/ballistica
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001,2002 <NAME>. *
* All rights reserved. Email: <EMAIL> Web: www.q12.org *
... | 5,089 |
6,098 | package water.util.fp;
import java.io.Serializable;
/**
* Represents a three-argument function
*
* We could as well use Google guava library, but Guava's functions are not serializable.
* We need serializable functions, to be able to pass them over the cloud.
*
* A three-argument function, in abstract settings,... | 181 |
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 ... | 11,872 |
1,979 | /*
* 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 ... | 3,681 |
5,169 | {
"name": "PDGradientMeterView",
"version": "0.1.0",
"summary": "A simple iOS slider with a three colors gradient.",
"description": "A simple iOS slider with a three colour gradient.\nThe indicator is customizable with your custom view.",
"homepage": "https://github.com/PiDyGB/PDGradientMeterView",
"license... | 306 |
335 | <filename>axcell/models/linking/utils.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from unidecode import unidecode
import re
# cleaning & normalization
parens_re = re.compile(r"\([^)]*?\)|\[[^]]*?\]")
strip_nonalnum_re = re.compile(r"^\W*(\w.*\b)\W*$")
def strip_nonalnum(s):
m = str... | 650 |
452 | <reponame>wuchunfu/go-fastdfs-web
package com.perfree.service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.perfree.common.PageResult;
im... | 822 |
2,167 | import com.osohq.oso.*;
public class TestContext {
public static Oso setupOso() throws Exception {
Oso oso = new Oso();
oso.registerClass(Env.class);
return oso;
}
public static void testPolicy() throws Exception {
Oso oso = setupOso();
oso.loadFile("../01-context.polar");
if (!oso.isAl... | 198 |
1,227 | #!/usr/bin/env python3
import socket
import sys
HOST = sys.argv[1]
PORT = int(sys.argv[2])
MESSAGE = sys.argv[3]
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto(MESSAGE.encode(), (HOST, PORT))
| 101 |
4,234 | #pragma once
#include <mbgl/style/expression/expression.hpp>
#include <mbgl/util/color.hpp>
namespace mbgl {
namespace style {
namespace expression {
namespace dsl {
std::unique_ptr<Expression> compound(const char* op, std::vector<std::unique_ptr<Expression>> args);
template <class... Args>
std::unique_ptr<Expressi... | 173 |
1,577 | from rastervision.pipeline.pipeline import Pipeline
from rastervision.pytorch_learner import LearnerConfig
class LearnerPipeline(Pipeline):
"""Simple Pipeline that is a wrapper around Learner.main()
This supports the ability to use the pytorch_learner package to train models using
the RV pipeline package... | 202 |
1,016 | <gh_stars>1000+
package com.thinkbiganalytics.spark.rest.test;
/*-
* #%L
* kylo-spark-shell-controller
* %%
* 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 copy o... | 4,543 |
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.
#include "third_party/blink/renderer/modules/media_controls/elements/media_control_fullscreen_button_element.h"
#include "third_party/blink/public/platfo... | 1,358 |
656 | <gh_stars>100-1000
# Generated by Django 3.0.7 on 2021-02-05 01:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('report', '0009_testreport_revision'),
]
operations = [
migrations.AlterField(
model_name='testreport',
... | 210 |
3,269 | # Time: O(logn)
# Space: O(1)
import itertools
class Solution(object):
def numOfWays(self, n):
"""
:type n: int
:rtype: int
"""
def matrix_expo(A, K):
result = [[int(i==j) for j in xrange(len(A))]
for i in xrange(len(A))]
whi... | 740 |
379 | <reponame>jjzhang166/kingdb
// Copyright (c) 2014, <NAME>. All rights reserved.
// Use of this source code is governed by the BSD 3-Clause License,
// that can be found in the LICENSE file.
#ifndef KINGDB_DUMMY_INTERFACE_H_
#define KINGDB_DUMMY_INTERFACE_H_
#include <thread>
#include <string>
#include "interface/kin... | 581 |
1,360 | package ru.noties.scrollable.sample;
import android.view.View;
import ru.noties.ccf.CCFAnimator;
import ru.noties.scrollable.OnScrollChangedListener;
public class SampleHeaderViewOnScrollChangedListener implements OnScrollChangedListener {
private final SampleHeaderView mView;
private final CCFAnimator mCCF... | 565 |
2,996 | <reponame>Elyahu41/Terasology<gh_stars>1000+
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.rendering.nui.widgets.browser.data.html;
import org.terasology.engine.rendering.nui.widgets.browser.data.DocumentData;
import org.terasology.engine.rendering.nui... | 420 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.