max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
14,668 | // Copyright 2016 The Crashpad 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 ... | 1,944 |
852 | from CalibTracker.SiStripCommon.shallowTree_test_template import *
process.TFileService.fileName = 'test_shallowTracksProducer.root'
process.load('CalibTracker.SiStripCommon.ShallowTracksProducer_cfi')
process.testTree = cms.EDAnalyzer(
"ShallowTree",
outputCommands = cms.untracked.vstring(
'drop *',
... | 167 |
3,269 | // Time: O(n * m), m is max x
// Space: O(m)
class Solution {
public:
int minimumOperations(vector<int>& nums, int start, int goal) {
static const int MAX_X = 1000;
vector<int> new_nums;
for (const auto& y : nums) {
if (y && ((0 <= y && y <= MAX_X) || (0 <= (goal - y) && (goal... | 806 |
507 | //
// Copyright 2018 Pixar
//
// 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 wri... | 2,103 |
307 | <reponame>KilianB/JImageHash<gh_stars>100-1000
package dev.brachtendorf.jimagehash.matcher.categorize.supervised.randomForest;
import java.awt.image.BufferedImage;
class TestData {
protected BufferedImage b0;
protected boolean match;
/**
* @param b0
* @param b1
* @param match
*/
public TestData(Buffered... | 197 |
442 | #pragma once
#include <functional>
#include <string>
namespace obe::Animation::Easing
{
enum class EasingType
{
Linear,
InSine,
OutSine,
InOutSine,
InQuad,
OutQuad,
InOutQuad,
InCubic,
OutCubic,
InOutCubic,
... | 930 |
748 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright (c) 2013,掌阅科技
All rights reserved.
File Name: logger.py
Author: WangLichao
Created on: 2014-03-28
'''
import os
import os.path
import logging
import logging.handlers
LOGGER_LEVEL = {
'DEBUG': logging.DEBUG,
'INFO': logging.INFO,
'WARNING': loggin... | 952 |
2,151 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_WM_TABLET_MODE_TABLET_MODE_BACKDROP_DELEGATE_IMPL_H_
#define ASH_WM_TABLET_MODE_TABLET_MODE_BACKDROP_DELEGATE_IMPL_H_
#include "ash/wm/worksp... | 334 |
453 | #ifndef ASSERT_H
#define ASSERT_H
#include <stdbool.h>
void assert(bool cond, const char* msg);
#endif | 43 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 2,225 |
367 | <reponame>carolchenyx/mmpose<filename>mmpose/models/keypoint_heads/multilabel_classification_head.py
import torch
import torch.nn as nn
from mmcv.cnn import normal_init
from mmpose.models.builder import build_loss
from ..registry import HEADS
@HEADS.register_module()
class MultilabelClassificationHead(nn.Module):
... | 2,366 |
317 | <filename>Modules/ThirdParty/6S/src/libf2c/z_log.c
/* OTB patches: replace "f2c.h" by "otb_6S_f2c.h" */
/*#include "f2c.h"*/
#include "otb_6S_f2c.h"
#ifdef KR_headers
double log(), f__cabs(), atan2();
#define ANSI(x) ()
#else
#define ANSI(x) x
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
extern... | 1,347 |
332 | <reponame>kuangye098/Exchangis
/*
*
* Copyright 2020 WeBank
*
* 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 b... | 1,058 |
971 | <reponame>ScottLiao920/noisepage<filename>src/network/connection_handle.cpp
#include "network/connection_handle.h"
#include "loggers/network_logger.h"
#include "network/connection_dispatcher_task.h"
#include "network/connection_handle_factory.h"
#include "network/connection_handler_task.h"
#include "network/network_io... | 4,380 |
16,461 | // Copyright 2018-present 650 Industries. All rights reserved.
#import <Foundation/Foundation.h>
#import <ABI42_0_0UMTaskManagerInterface/ABI42_0_0UMTaskConsumerInterface.h>
NS_ASSUME_NONNULL_BEGIN
@interface ABI42_0_0EXBackgroundFetchTaskConsumer : NSObject <ABI42_0_0UMTaskConsumerInterface>
@property (nonatomic, ... | 143 |
2,970 | <filename>pyzoo/test/zoo/models/anomalydetection/test_anomalydetector.py<gh_stars>1000+
#
# Copyright 2018 Analytics Zoo Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:... | 946 |
1,647 | """
YieldPoints gathers all yield points from a node
"""
from pythran.passmanager import FunctionAnalysis
class YieldPoints(FunctionAnalysis):
'''Gathers all yield points of a generator, if any.'''
def __init__(self):
self.result = list()
super(YieldPoints, self).__init__()
def visit_Yie... | 132 |
348 | {"nom":"Krautergersheim","circ":"6ème circonscription","dpt":"Bas-Rhin","inscrits":1384,"abs":788,"votants":596,"blancs":19,"nuls":1,"exp":576,"res":[{"nuance":"LR","nom":"<NAME>","voix":376},{"nuance":"MDM","nom":"<NAME>","voix":200}]} | 95 |
816 | # coding=utf-8
# Copyright 2019 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 1,306 |
6,557 | <gh_stars>1000+
{
"actions": "Acțiuni",
"actionsAvailable": "Acțiuni disponibile.",
"clearSelection": "Goliți selecția",
"selected": "{count, plural, =0 {Niciunul selectat} other {# selectate}}",
"selectedAll": "Toate selectate"
}
| 100 |
10,225 | package io.quarkus.it.jpa.postgresql;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringReader;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.SQLXML;
import java.sql.Statement;
import java.util.List;
im... | 3,289 |
592 | <filename>backend/posts/views.py
from rest_framework.generics import ListCreateAPIView, RetrieveUpdateDestroyAPIView
from rest_framework.generics import ListAPIView, CreateAPIView
from rest_framework.decorators import permission_classes
from rest_framework.permissions import IsAuthenticated, AllowAny
from django.views.... | 1,370 |
1,352 | <filename>ruoyi-system/src/main/java/com/ruoyi/system/domain/SysDictData.java
package com.ruoyi.system.domain;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Equ... | 835 |
790 | """
The GeoDjango GEOS module. Please consult the GeoDjango documentation
for more details:
http://geodjango.org/docs/geos.html
"""
from django.contrib.gis.geos.geometry import GEOSGeometry, wkt_regex, hex_regex
from django.contrib.gis.geos.point import Point
from django.contrib.gis.geos.linestring import LineStrin... | 283 |
1,338 | <filename>headers/build/os/package/hpkg/PackageWriter.h
#include <../os/package/hpkg/PackageWriter.h>
| 36 |
2,268 | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Functionality to render a glowing outline around client renderable objects.
//
//===============================================================================
#include "cbase.h"
#include "glow_outline_effect.h"
#include "model_types.h... | 4,423 |
3,469 | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | 1,586 |
384 | /*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2013,2014,2016,2017,2018 by the GROMACS development team.
* Copyright (c) 2019,2020, by the GROMACS development team, led by
* <NAME>, <NAME>, <NAME>, and <NAME>,
* and including many others, as listed in the AUTHORS file in the... | 1,304 |
642 | <gh_stars>100-1000
package com.jeesuite.mybatis.plugin.rewrite;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.cache.CacheKey;
import org.apache.... | 4,382 |
1,157 | /*
* Copyright (c) 2018 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2025-10-11
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... | 865 |
511 | <filename>external/iotivity/iotivity_1.2-rel/service/scene-manager/include/RemoteSceneList.h
//******************************************************************
//
// Copyright 2016 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the A... | 3,665 |
5,169 | <reponame>Gantios/Specs<filename>Specs/1/1/2/BJTDemoView/0.0.1/BJTDemoView.podspec.json
{
"name": "BJTDemoView",
"version": "0.0.1",
"summary": "A BJTDemoView",
"homepage": "https://github.com/TechAlleyBoy",
"license": "MIT",
"authors": {
"TechAlleyBoy": "<EMAIL>"
},
"platforms": {
"ios": "7.0"
... | 227 |
312 | <filename>test/system/ordered_caller.hpp
// Copyright <NAME> 2021
//
// 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)
#ifndef MQTT_ORDERED_CALLER_HPP
#define MQTT_ORDERED_CALLER_HPP
#include <vector>
#include <s... | 611 |
952 | package com.guoxiaoxing.phoenix.core.common;
public final class PhoenixConstant {
public static final String PHOENIX_RESULT = "PHOENIX_RESULT";
public static final String PHOENIX_OPTION = "PHOENIX_OPTION";
public static final int IMAGE_PROCESS_TYPE_DEFAULT = 0x000000;
public static final int REQUEST... | 1,311 |
575 | <filename>third_party/blink/renderer/modules/webdatabase/sql_transaction_backend.cc
/*
* Copyright (C) 2007, 2008, 2013 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Re... | 13,204 |
482 | package io.nutz.demo.simple.module;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;
import com.bstek.ureport.export.ExportManager;
@At("/report")
@IocBean
public class ReportModule {
@Inject
protected ExportManager exportManager... | 144 |
626 | /*
* Anserini: A Lucene toolkit for reproducible information retrieval research
*
* 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... | 596 |
1,338 | /*
* Copyright 2010, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include "TerminalRoster.h"
#include <stdio.h>
#include <new>
#include <Looper.h>
#include <Roster.h>
#include <String.h>
#include <AutoLocker.h>
#include "TermConst.h"
static const bigtime_t kAppsRunningCheckInterval... | 4,212 |
368 | <reponame>lanza/coroutine
/**
* @author github.com/luncliff (<EMAIL>)
*/
#undef NDEBUG
#include <cassert>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <initializer_list>
using namespace std;
//
// interface which doesn't require coroutine
//
using message_t = uint64_t;
using callback_t = void*... | 1,106 |
678 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "MMUIView.h"
#import "ILinkEventExt.h"
#import "MMWebViewDelegate.h"
@class MMWebViewController, NSString, UIButton, UIImageView;
@interface WCPayOverseasCardTipView : MMUIView... | 456 |
420 | <filename>app/src/main/java/com/ubergeek42/WeechatAndroid/utils/Constants.java
package com.ubergeek42.WeechatAndroid.utils;
import android.os.Build;
import com.ubergeek42.WeechatAndroid.R;
import com.ubergeek42.WeechatAndroid.Weechat;
import java.util.Set;
public class Constants {
// connection type
final ... | 5,998 |
494 | /*
* 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 ... | 5,959 |
10,192 | <reponame>mahak/akka
/*
* Copyright (C) 2020-2021 Lightbend Inc. <https://www.lightbend.com>
*/
package jdocs.akka.persistence.typed;
import akka.actor.typed.ActorRef;
import akka.actor.typed.Behavior;
import akka.persistence.testkit.query.javadsl.PersistenceTestKitReadJournal;
import akka.persistence.typed.Replica... | 1,246 |
651 | <gh_stars>100-1000
/*
* Copyright 2017 <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 la... | 2,473 |
5,193 | <reponame>ls1110924/Aria<gh_stars>1000+
/*
* Copyright (C) 2016 AriaLyy(https://github.com/AriaLyy/Aria)
*
* 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/... | 836 |
895 | #include "../../slang.h"
#include "slang-ref-object-reflect.h"
#include "slang-generated-obj.h"
#include "slang-generated-obj-macro.h"
#include "slang-ast-support-types.h"
//#include "slang-serialize.h"
#include "slang-serialize-ast-type-info.h"
namespace Slang
{
static const SerialClass* _addClass(SerialClasses... | 1,219 |
1,510 | <filename>exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/writer/TestParquetWriterEmptyFiles.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 copyri... | 2,486 |
4,551 | <reponame>quipper/robolectric<gh_stars>1000+
package org.robolectric.annotation.processing;
import java.util.Collection;
import java.util.Map;
import java.util.TreeMap;
public class DocumentedPackage extends DocumentedElement {
private final Map<String, DocumentedType> documentedTypes = new TreeMap<>();
Document... | 236 |
2,757 | <filename>2021/quals/hw-parking/src/game.py
# Copyright 2021 Google 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | 2,941 |
388 | // -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.URL;
import java.nio.charset.Standa... | 1,621 |
831 | <filename>adt-ui-model/testSrc/com/android/tools/adtui/model/updater/UpdaterTest.java
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License... | 1,863 |
777 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/client/ios/bridge/frame_consumer_bridge.h"
#include <gtest/gtest.h>
#include <memory>
#include <queue>
#include "base/bind.h"
#includ... | 1,748 |
1,403 | <gh_stars>1000+
/*
* DbgBuffer.h
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2019 by <NAME>)
* See "LICENSE.txt" for license information.
*/
#ifndef LLGL_DBG_BUFFER_H
#define LLGL_DBG_BUFFER_H
#include <LLGL/Buffer.h>
#include <string>
namespace LLGL
{
class DbgBuffer final : public Buf... | 399 |
491 | /*
* Encog(tm) Core v3.4 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2017 Heaton Research, 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... | 569 |
458 | <reponame>VelocityRa/Ghidra-Cpp-Class-Analyzer
package cppclassanalyzer.analysis.cmd;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import cppclassanalyzer.utils.ConstantPropagationUtils;
import cppclassanalyzer.utils.CppClassAnalyzerUtils;
import ghidra.app.cmd.data.rtti.ClassTy... | 2,483 |
42,609 | {
"plugins": [
"transform-destructuring",
"transform-modules-commonjs",
"transform-member-expression-literals",
"transform-property-literals"
]
}
| 61 |
4,013 | from checkov.common.models.enums import CheckCategories
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
class EC2DetailedMonitoringEnabled(BaseResourceValueCheck):
def __init__(self):
name = "Ensure that detailed monitoring is enabled for EC2 instances"
... | 241 |
1,184 | <reponame>EdwardCoventry/plyer
'''
Module of Windows API helper for plyer.battery.
'''
__all__ = ('battery_status')
import ctypes
from plyer.platforms.win.libs import win_api_defs
def battery_status():
'''
Implementation of Windows system power status API for plyer.battery.
'''
status = win_api_de... | 219 |
659 | <gh_stars>100-1000
"""Tests for parsing of parameters related to forms."""
import pytest
from schemathesis.parameters import PayloadAlternatives
from schemathesis.specs.openapi.parameters import OpenAPI20CompositeBody, OpenAPI20Parameter, OpenAPI30Body
@pytest.mark.parametrize(
"consumes",
(
["applic... | 2,197 |
1,338 | <reponame>Kirishikesan/haiku<gh_stars>1000+
/*
* Copyright (c) 2002, 2003 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files or portions
* thereof (the "Software"), to deal in the Software without restriction,
* i... | 3,005 |
649 | <filename>serenity-model/src/main/java/net/thucydides/core/matchers/dates/DateTimeIsSameTimeAsMatcher.java
package net.thucydides.core.matchers.dates;
import org.hamcrest.Description;
import org.hamcrest.TypeSafeMatcher;
import org.joda.time.DateTime;
import static net.thucydides.core.matchers.dates.DateMatcherFormat... | 296 |
3,783 | <filename>src/problems/easy/ImageSmoother.java<gh_stars>1000+
package problems.easy;
/**
* @author <NAME>.
*/
public class ImageSmoother {
public int[][] imageSmoother(int[][] a) {
if(a==null || a.length==0)return a;
int[][] b=new int[a.length][a[0].length];
for(int i=0; i<a.length; i++)... | 883 |
5,813 | <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
* ... | 3,540 |
1,602 | #include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
typedef union {
int64_t a;
int64_t b;
int64_t c;
} intUnion;
void intUnion_print(intUnion x);
typedef struct {
const char* a;
const char* b;
} stringUnion;
void stringUnion_print(stringUnion y);
typedef struct {
void (*fn)(int64_t);
} fnUnion... | 148 |
686 | <gh_stars>100-1000
from crud.schemas.board import Board
from crud.roles.r30_normal_user import normal_user
from crud.schemas.topic import Topic
from crud.schemas.user import User
from crud.schemas.wiki_article import WikiArticle
from pycurd.permission import RoleDefine, TablePerm, A
super_user = RoleDefine({
Topi... | 1,429 |
340 | //==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pr... | 608 |
861 | <gh_stars>100-1000
/*
* Copyright (c) 2018. Univocity Software Pty Ltd
* <p/>
* 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
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
... | 518 |
1,194 | <reponame>R-fred/awesome-streamlit<gh_stars>1000+
"""Page for viewing the awesome Streamlit vision"""
import pathlib
import streamlit as st
import awesome_streamlit as ast
@st.cache
def get_vision_markdown() -> str:
"""Returns the Vision
Returns:
str -- The vision as a string of MarkDown
"""
... | 292 |
848 | <reponame>hito0512/Vitis-AI
/*
* 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 obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 2,009 |
584 | package com.mercury.platform.ui.adr.components;
import com.mercury.platform.shared.config.descriptor.adr.AdrTrackerGroupDescriptor;
import com.mercury.platform.ui.adr.components.panel.AdrComponentPanel;
import com.mercury.platform.ui.adr.components.panel.AdrTrackerGroupPanel;
import com.mercury.platform.ui.misc.Mercur... | 1,010 |
1,068 | /*
* smallprimes.c: implementation of the array of small primes defined
* in sshkeygen.h.
*/
#include <assert.h>
#include "ssh.h"
#include "sshkeygen.h"
/* The real array that stores the primes. It has to be writable in
* this module, but outside this module, we only expose the
* const-qualified point... | 539 |
892 | <filename>advisories/unreviewed/2022/04/GHSA-wx92-67c9-p24w/GHSA-wx92-67c9-p24w.json<gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-wx92-67c9-p24w",
"modified": "2022-04-30T18:11:53Z",
"published": "2022-04-30T18:11:53Z",
"aliases": [
"CVE-1999-1142"
],
"details": "SunOS 4.1.2 and earlier ... | 533 |
2,151 | <reponame>zipated/src
// 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.
#include "components/exo/wayland/server.h"
#include <alpha-compositing-unstable-v1-server-protocol.h>
#include <aura-shell-server-p... | 86,313 |
45,293 | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* 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... | 2,282 |
5,169 | <filename>Specs/3/1/a/StakkKit/1.7.0/StakkKit.podspec.json
{
"name": "StakkKit",
"version": "1.7.0",
"summary": "This a helper kit for ex-Stakk developers to develop iOS applications.",
"description": "This a helper kit for Stakk developers to develop iOS applications.\nTODO: Add long description of the pod her... | 548 |
1,826 | package com.vladsch.flexmark.formatter;
import com.vladsch.flexmark.util.sequence.SequenceUtils;
import org.jetbrains.annotations.Nullable;
import java.util.Set;
/**
* A renderer for a set of node types.
*/
public interface NodeFormatter {
/**
* @return the mapping of nodes this renderer handles to render... | 305 |
903 | package php.runtime.ext.core;
import php.runtime.Information;
import php.runtime.Memory;
import php.runtime.annotation.Runtime;
import php.runtime.env.Environment;
import php.runtime.env.TraceInfo;
import php.runtime.ext.support.Extension;
import php.runtime.ext.support.compile.CompileConstant;
import php.runtime.ext.... | 6,629 |
490 | import math
import torch
from fairseq import metrics, utils
from fairseq.criterions import FairseqCriterion, register_criterion
# Grid cross-entropy of pervasive attention models for simultaneous translation
# pa_grid_cross_entropy_v2
@register_criterion('grid_cross_entropy')
class GridCrossEntropyCriterion(Fairseq... | 2,113 |
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... | 126,973 |
702 | <reponame>gluckzhang/besu
/*
* Copyright Hyperledger Besu Contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 573 |
3,586 | package com.linkedin.metadata.graph;
import com.linkedin.common.urn.Urn;
import com.linkedin.metadata.query.filter.Filter;
import com.linkedin.metadata.query.filter.RelationshipDirection;
import com.linkedin.metadata.query.filter.RelationshipFilter;
import org.testng.Assert;
import org.testng.annotations.DataProvider;... | 26,831 |
3,056 | <gh_stars>1000+
// Copyright 2021 Google 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 ... | 1,262 |
407 | package com.alibaba.tesla.appmanager.server.controller;
import com.alibaba.tesla.appmanager.api.provider.RtAppInstanceProvider;
import com.alibaba.tesla.appmanager.auth.controller.AppManagerBaseController;
import com.alibaba.tesla.appmanager.common.constants.DefaultConstant;
import com.alibaba.tesla.appmanager.common.... | 2,104 |
575 | // 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_PASSWORD_MANAGER_CORE_BROWSER_CHANGE_PASSWORD_URL_SERVICE_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_CHANGE_PASSWORD_URL_SERVI... | 318 |
1,131 | <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
// "Li... | 583 |
1,272 | <filename>ApplicationUtilities/Resources/Audio/src/CommunicationsAudioFactory.cpp
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is... | 1,482 |
324 | <gh_stars>100-1000
/*
* Copyright (c) 2011-2018, <NAME>. All Rights Reserved.
*
* 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 ... | 11,317 |
3,227 | // Copyright (c) 1998-2021
// Utrecht University (The Netherlands),
// ETH Zurich (Switzerland),
// INRIA Sophia-Antipolis (France),
// Max-Planck-Institute Saarbruecken (Germany),
// and Tel-Aviv University (Israel). All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL$
// $Id$
// SPDX-Licen... | 461 |
5,941 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* RDP protocol "scancodes"
*
* Copyright 2009-2012 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... | 7,607 |
882 | {
"keys": [
{
"kty": "RSA",
"alg": "RS256",
"use": "sig",
"kid": "ab844f3d4c69feee0de2501b04e1a4c8d78eead1",
"n": "<KEY>",
"e": "AQAB"
},
{
"kty": "RSA",
"alg": "RS256",
"use": "sig",
"kid": "550326e0aacb4674d22905a1a51a808cfa7463b0",
"n": "<KEY>",
"e": "AQAB"
}
]
}
| 195 |
412 | #include <assert.h>
#include <inttypes.h>
#include <math.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>
int main()
{
int8_t i1 = 2;
int16_t i2 = 3;
int32_t i3 = 4;
int64_t i4 = 5;
int8_t in1 = -2;
int16_t in2 = -3;
int32_t in3 = -4;
int64_t in4 = -5;
uint8_t u8 = 'a';
uint16_t u1... | 222 |
324 | <reponame>cclauss/vergeml<gh_stars>100-1000
PARAM_DESCR = {
'epochs': 'How many epochs to train.',
'learning rate': 'Optimizer learning rate.',
'batch size': 'The number of samples to use in one training batch.',
'decay': 'Learning rate decay.',
'early stopping': 'Early stopping delta and patience.'... | 1,454 |
348 | {"nom":"<NAME>","circ":"5ème circonscription","dpt":"Seine-Maritime","inscrits":518,"abs":252,"votants":266,"blancs":0,"nuls":1,"exp":265,"res":[{"nuance":"SOC","nom":"<NAME>","voix":150},{"nuance":"LR","nom":"<NAME>","voix":43},{"nuance":"FN","nom":"<NAME>","voix":34},{"nuance":"FI","nom":"Mme <NAME>","voix":29},{"nua... | 197 |
3,442 | from mmdnn.conversion.rewriter.rewriter import UnitRewriterBase
import numpy as np
import re
class LSTMRewriter(UnitRewriterBase):
def __init__(self, graph, weights_dict):
return super(LSTMRewriter, self).__init__(graph, weights_dict)
def process_lstm_cell(self, match_result):
if 'lstm_cell... | 1,302 |
1,655 | <filename>Example_oc/Pods/Headers/Public/FlexLib/FlexBaseVC.h
/**
* Copyright (c) 2017-present, zhenglibao, Inc.
* email: <EMAIL>
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <UIKit/UIKit.h... | 744 |
675 | <reponame>Canva/intellij
/*
* Copyright 2016 The Bazel 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
... | 4,036 |
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 ... | 8,642 |
319 | <reponame>NathanWalker/ios-runtime
//
// JSWarnings.h
// NativeScript
//
// Created by <NAME> on 9/16/14.
// Copyright (c) 2014 Telerik. All rights reserved.
//
#ifndef __NativeScript__JSWarnings__
#define __NativeScript__JSWarnings__
namespace NativeScript {
void warn(JSC::ExecState*, const WTF::String&);
}
#en... | 135 |
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,277 |
590 | <gh_stars>100-1000
# coding: utf-8
"""
https://leetcode.com/problems/product-of-array-except-self/
"""
from typing import List
class Solution:
def productExceptSelf(self, nums: List[int]) -> List[int]:
output = []
for i in range(len(nums)):
product = 1
for num in nums[0:i] ... | 478 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.