max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
428 | <reponame>pabru/libgdx
/*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* 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 a... | 338 |
2,406 | <reponame>monroid/openvino<filename>inference-engine/thirdparty/clDNN/src/gemm.cpp
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
///////////////////////////////////////////////////////////////////////////////////////////////////
#include "gemm_inst.h"
#include "primitive_type_b... | 1,986 |
454 | <gh_stars>100-1000
package io.vertx.up.uca.cosmic;
import io.vertx.core.json.JsonObject;
import io.vertx.up.commune.config.IntegrationRequest;
import org.apache.http.impl.client.CloseableHttpClient;
/*
* Rotator for http request of major for methods:
*
* - POST
* - GET
* - PUT
* - DELETE
*/
public interface Ro... | 209 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-xjrw-4vxx-f2vq",
"modified": "2022-05-13T01:10:53Z",
"published": "2022-05-13T01:10:53Z",
"aliases": [
"CVE-2018-9024"
],
"details": "An improper authentication vulnerability in CA Privileged Access Manager 2.x allows attackers to spoof IP addresses in a log fi... | 484 |
2,151 | <filename>third_party/blink/renderer/core/animation/interpolation_effect_test.cc
// Copyright 2014 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 <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include... | 2,486 |
5,169 | <filename>Specs/7/6/1/MaioSDK/1.5.8/MaioSDK.podspec.json
{
"name": "MaioSDK",
"version": "1.5.8",
"summary": "MaioSDK for iOS",
"description": "MaioSDK is Ad SDK of fullscreen movie",
"homepage": "https://maio.jp",
"license": {
"type": "Copyright",
"text": "Copyright 2015 i-mobile"
},
"authors":... | 375 |
875 | package com.jeecg.p3.system.service;
import java.util.List;
import org.jeecgframework.p3.core.utils.common.PageList;
import org.jeecgframework.p3.core.utils.common.PageQuery;
import com.jeecg.p3.system.entity.JwSystemProject;
/**
* 描述:</b>JwSystemProjectService<br>
* @author:pituo
* @since:2015年12月21日 17时49分18秒 星... | 718 |
1,014 | package nl.anchormen.sql4es.model;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
public class Utils {
// statics
public static final int ES_MAJOR_VERSION = 2;
public static final int ES_MINOR_VERSION = 1;
public static final String ELASTICSEARCH_NAME = "Elasticsearch";
public ... | 1,316 |
335 | {
"word": "Hallucinogenic",
"definitions": [
"A drug that causes hallucinations, such as LSD."
],
"parts-of-speech": "Noun"
} | 64 |
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... | 15,839 |
5,379 | // 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,240 |
1,338 | <reponame>Kirishikesan/haiku
/*
* Copyright (c) 1999-2000, <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
... | 758 |
348 | <filename>docs/data/t2/047/47289.json
{"nom":"<NAME>","dpt":"Lot-et-Garonne","inscrits":365,"abs":64,"votants":301,"blancs":38,"nuls":8,"exp":255,"res":[{"panneau":"2","voix":135},{"panneau":"1","voix":120}]} | 89 |
852 | import FWCore.ParameterSet.Config as cms
from DQMOffline.EGamma.photonOfflineClient_cfi import *
from DQMOffline.EGamma.electronOfflineClientSequence_cff import *
from DQMOffline.EGamma.photonOfflineDQMClient_cff import *
egammaPostProcessing = cms.Sequence(photonOfflineDQMClient*electronOfflineClientSequence)
| 109 |
1,233 | <gh_stars>1000+
import json
import unittest
from uuid import uuid4
import requests_mock
from alerta.app import create_app, db, plugins
from alerta.models.enums import Scope
from alerta.models.key import ApiKey
from alerta.utils.response import base_url
class ForwarderTestCase(unittest.TestCase):
def setUp(self... | 5,040 |
712 | #include "Colfer.h"
#include "gen_test.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
const unsigned char hex_table[] = "0123456789abcdef";
// hexstr maps data into buf as a null terminated hex string.
void hexstr(char* buf, const void* data, size_t datalen) {
const uint8_t* p = ... | 3,287 |
343 | <reponame>nzeh/syzygy<gh_stars>100-1000
// Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE... | 3,198 |
2,118 | <reponame>gidabite/libcds
// Copyright (c) 2006-2018 <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef CDSLIB_USER_SETUP_THREADING_MODEL_H
#define CDSLIB_USER_SETUP_THREADING_MODEL_H
/**
CDS threading ... | 358 |
16,461 | package abi41_0_0.expo.modules.structuredheaders;
import android.util.Base64;
import java.nio.CharBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Objects;
/**
* Implementation of the "Structured Field ... | 13,357 |
1,652 | package com.ctrip.xpipe.redis.core;
public class PerfTest {
}
| 25 |
488 | <filename>tests/RunTests/FortranTests/LANL_POP/netcdf-4.1.1/libncdap3/ncdap.h<gh_stars>100-1000
/*********************************************************************
* Copyright 1993, UCAR/Unidata
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
* $Header: /upc/share/CVS/netcdf-3/libncda... | 5,079 |
416 | <filename>extension-admob/1,6,4/project/include/UIKit.framework/UIKeyConstants.h<gh_stars>100-1000
#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include(<UIKitCore/UIKeyConstants.h>)
//
// UIKeyConstants.h
// UIKit
//
// Copyright © 2020 Apple Inc. All rights reserved.
//
#import <UI... | 7,861 |
365 | # -*- coding: utf-8 -*-
from benedict.core import clean as _clean
from benedict.core import clone as _clone
from benedict.core import dump as _dump
from benedict.core import filter as _filter
from benedict.core import find as _find
from benedict.core import flatten as _flatten
from benedict.core import groupby as _gro... | 3,882 |
2,073 | /**
* 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,894 |
76,518 | {"name":"Shortcut Guide","properties":{"overlay_opacity":{"value":32},"press_time":{"value":1150},"theme":{"value":"system"}},"version":"1.0"} | 41 |
468 | <gh_stars>100-1000
{
"name": "freemanlab",
"author": "freemanlab",
"license": "CC0",
"vector": "http://hexb.in/vector/freemanlab.svg",
"raster": "http://hexb.in/hexagons/freemanlab.png",
"filename": "meta/freemanlab.json"
} | 100 |
311 | package test.published.dependencies;
public class App {
public static void main(String[] args) {
System.out.println("Test published dependencies!");
}
}
| 47 |
1,127 | <reponame>wood-ghost/openvino<gh_stars>1000+
// Copyright (C) 2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vector>
#include "single_layer_tests/einsum.hpp"
using namespace ngraph::helpers;
using namespace LayerTestsDefinitions;
namespace {
const std::vector<InferenceEngine::Precision> ... | 662 |
672 | /*
* Copyright (c) 2010 Apple Inc. All rights reserved.
*
* @APPLE_LLVM_LICENSE_HEADER@
*/
/*
* orbars.c
* testObjects
*
* Created by <NAME> on 9/17/08.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*/
// rdar://6276695 error: before ‘|’ token
// TEST_CONFIG RUN=0
/*
TEST_BUILD_OUTPUT
.*orba... | 229 |
399 | /*
* Copyright(c) 2019 Netflix, Inc.
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at https://www.aomedia.org/license/software... | 12,320 |
348 | <filename>docs/data/leg-t2/015/01502198.json
{"nom":"Sainte-Marie","circ":"2ème circonscription","dpt":"Cantal","inscrits":103,"abs":40,"votants":63,"blancs":6,"nuls":2,"exp":55,"res":[{"nuance":"LR","nom":"<NAME>","voix":43},{"nuance":"REM","nom":"Mme <NAME>","voix":12}]} | 113 |
392 | <reponame>Da-Krause/settlers-remake
/*******************************************************************************
* Copyright (c) 2015 - 2017
*
* 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 Sof... | 514 |
775 | {
"#acknowledgments": {
"current": {
"number": "",
"spec": "CSS Scrollbars",
"text": "Acknowledgments",
"url": "https://drafts.csswg.org/css-scrollbars-1/#acknowledgments"
},
"snapshot": {
"number": "",
"spec": "CSS Scrollbars",
"text": "Acknowledgments",
"u... | 1,584 |
2,212 | import os
import pytest
from detect_secrets.core import plugins
from detect_secrets.core.upgrades import v1_0
def test_custom_plugins_does_not_pollute_settings():
old_baseline = {
'version': '0.14.3',
'custom_plugin_paths': [
'testing/plugins.py',
],
'plugins_used': [... | 388 |
3,269 | # Time: O(n)
# Space: O(n)
class Solution(object):
def findTilt(self, root):
"""
:type root: TreeNode
:rtype: int
"""
def postOrderTraverse(root, tilt):
if not root:
return 0, tilt
left, tilt = postOrderTraverse(root.left, tilt)
... | 252 |
524 | <gh_stars>100-1000
#pragma once
#include "controls/ClickWidget.h"
#include "controls/SimpleListWidget.h"
#include "controls/TextUnit.h"
#include "animation/animation.h"
namespace Utils
{
class OpacityEffect;
}
namespace Ui
{
class InputWidget;
class AttachFileMenuItem : public SimpleListItem
{
... | 1,507 |
10,125 | <filename>OpenCorePkg/Library/OcAppleImg4Lib/libDER/DER_Digest.h
/* Copyright (c) 2005-2008,2010 Apple Inc. All Rights Reserved. */
/*
* DER_Digest.h - DER encode a DigestInfo
*
* Created Nov. 9 2005 by dmitch
*/
#ifndef _DER_DIGEST_H_
#define _DER_DIGEST_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "libD... | 765 |
575 | <filename>chrome/browser/dom_distiller/tab_utils_browsertest.cc<gh_stars>100-1000
// Copyright 2014 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 <string.h>
#include <memory>
#include "base/command_line.h"
#... | 9,074 |
348 | {"nom":"Villotran","circ":"2ème circonscription","dpt":"Oise","inscrits":246,"abs":122,"votants":124,"blancs":6,"nuls":2,"exp":116,"res":[{"nuance":"FN","nom":"<NAME>","voix":65},{"nuance":"REM","nom":"<NAME>","voix":51}]} | 88 |
1,958 | <filename>src/test/java/com/shzlw/poli/rest/JdbcDataSourceWsTest.java
package com.shzlw.poli.rest;
import com.fasterxml.jackson.core.type.TypeReference;
import com.shzlw.poli.dao.JdbcDataSourceDao;
import com.shzlw.poli.model.JdbcDataSource;
import com.shzlw.poli.util.Constants;
import org.junit.Assert;
import org.jun... | 2,642 |
23,901 | # coding=utf-8
# Copyright 2021 The Google Research 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 applicab... | 12,127 |
375 | {
"id": 345,
"logo_path": null,
"description": null,
"name": "<NAME>",
"parent_company": null,
"homepage": null,
"headquarters": null
} | 60 |
5,411 | <filename>code/client/launcher/UserLibrary.h<gh_stars>1000+
/*
* This file is part of the CitizenFX project - http://citizen.re/
*
* See LICENSE and MENTIONS in the root of the source tree for information
* regarding licensing.
*/
#pragma once
class UserLibrary
{
private:
std::vector<uint8_t> m_libr... | 184 |
3,513 | <reponame>puzzle/nochmal
#include <nokogiri.h>
VALUE cNokogiriXmlEntityReference;
/*
* call-seq:
* new(document, content)
*
* Create a new EntityReference element on the +document+ with +name+
*/
static VALUE
new (int argc, VALUE *argv, VALUE klass)
{
xmlDocPtr xml_doc;
xmlNodePtr node;
VALUE document;
... | 461 |
399 | <reponame>adoug/3D-Graphics-Rendering-Cookbook
#include "shared/scene/Scene.h"
#include "shared/Utils.h"
#include <algorithm>
#include <numeric>
void saveStringList(FILE* f, const std::vector<std::string>& lines);
void loadStringList(FILE* f, std::vector<std::string>& lines);
int addNode(Scene& scene, int parent, i... | 6,124 |
473 | import re
import bisect
import ctypes
def get_hex(byte_str):
return re.sub('([0-9A-Fa-f]{2})', '0x\g<0>,', byte_str)
def pretty_bytes(byte_str):
byte_lines = re.sub('(0x[0-9A-Fa-f]{2}, ?){16}', '\g<0>\n', byte_str);
return re.sub('(0x[0-9A-Fa-f]{2}.*?\n)', ' \g<0>', byte_lines);
def xor_bytes(byte_str... | 1,173 |
470 | {
"author": {
"name": "<NAME>",
"email": "<EMAIL>",
"url": "https://www.stratha.us"
},
"contributors": [
"<NAME> <<EMAIL>>",
"<NAME> <<EMAIL>>",
"<NAME> (https://twitter.com/#!/lunafiko)"
],
"name": "graphdracula",
"description": "JavaScript Graph Layouting and Drawing",
"version":... | 1,239 |
7,113 | /*
* 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
*
* Unless required by ... | 1,529 |
2,023 | <reponame>tdiprima/code
#!/usr/bin/env python
import os
import urllib2
import urllib
import zipfile
import sys
import subprocess
import shutil
import pipes
## browser friendly pages
## http://commondatastorage.googleapis.com/chromium-browser-continuous/index.html
## http://commondatastorage.googleapis.com/chromium-br... | 2,597 |
1,874 | <reponame>zjzh/nova
# Copyright 2012, Piston Cloud Computing, Inc.
# Copyright 2012, OpenStack Foundation
# 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... | 2,511 |
769 | <filename>cube-usb-cdc/main.c
#include "main.h"
USBD_HandleTypeDef USBD_Device;
uint8_t CDC_BUF[128];
int main(void) {
// Initialize the UART
UARTx_Init(USART2,USART_TX,1382400);
printf("--- STM32L151RDT6 ---\r\n");
// Initialize the CDC Application
USBD_Init(&USBD_Device,&USBD_CDC_Descriptor,0);
// Add S... | 427 |
852 | import FWCore.ParameterSet.Config as cms
# DQM file saver module
dqmSaver = cms.EDAnalyzer("DQMFileSaverPB",
# Name of the producer.
producer = cms.untracked.string('DQM'),
# Directory in which to save the files.
path = cms.untracked.string('./'),
# Tag, used in the filename as the third term.
... | 307 |
2,151 | <filename>content/public/test/scoped_overscroll_modes.h
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_TEST_SCOPED_OVERSCROLL_MODES_H_
#define CONTENT_PUBLIC_TEST_SCOPED_OVERSCRO... | 385 |
4,111 | <gh_stars>1000+
{
"lang": "español",
"dateFormat": "DD/MM/YYYY HH:mm",
"details": "Detalles",
"download": "Descargar",
"empty": "vacío",
"files": "Archivos",
"filter": "Filtrar",
"folders": "Directorios",
"grid": "Cuadrícula",
"icons": "Íconos",
"language": "Idioma",
"la... | 259 |
349 | <filename>sublimenavigationviewlibrary/src/main/java/com/appeaser/sublimenavigationviewlibrary/SublimeSwitchItemView.java
/*
* Copyright 2015 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the ... | 1,570 |
2,151 | /*
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 1,469 |
2,023 | <filename>recipes/Python/576757_Shelllike_datprocessing_using_Popen_pipes/recipe-576757.py
from io import BytesIO
from subprocess import Popen, PIPE
from os import pipe, fdopen
from threading import Thread
class Pipeable( object ):
def __init__( self ):
self.output = None
def _output( self, input = None ):
retur... | 692 |
598 | <reponame>cmendes0101/contrib-drivers
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | 1,070 |
8,747 | <filename>components/esp_wifi/include/esp_wifi_default.h
// Copyright 2019 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.o... | 1,367 |
3,269 | <filename>C++/unique-number-of-occurrences.cpp
// Time: O(n)
// Space: O(n)
class Solution {
public:
bool uniqueOccurrences(vector<int>& arr) {
unordered_map<int, int> count;
for (const auto& a : arr) {
++count[a];
}
unordered_set<int> lookup;
for (const auto& [... | 263 |
953 | int main() {
// error: unary minus requires arithmetic type operand
-"";
// error: unary plus requires arithmetic type operand
+"";
// error: bit-complement requires integral type operand
~"";
}
| 62 |
1,561 | import com.cossacklabs.themis.*;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Base64;
public class main {
static Charset charset = StandardCharsets.UTF_8;
public stat... | 929 |
348 | {"nom":"<NAME>","dpt":"Haute-Savoie","inscrits":165,"abs":21,"votants":144,"blancs":20,"nuls":7,"exp":117,"res":[{"panneau":"1","voix":66},{"panneau":"2","voix":51}]} | 71 |
10,351 | """allow nulls for metric values
Revision ID: 181f10493468
Revises: 90e64c465722
Create Date: 2019-07-10 22:40:18.787993
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "181f10493468"
down_revision = "90e64c465722"
branch_labels = None
depends_on = None
def up... | 413 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-fq4g-p58q-8f6g",
"modified": "2022-05-01T06:43:25Z",
"published": "2022-05-01T06:43:25Z",
"aliases": [
"CVE-2006-0887"
],
"details": "Eval injection vulnerability in sessions.inc in PHP Base Library (PHPLib) before 7.4a, when index.php3 from the PHPLib distribu... | 756 |
374 | <reponame>bamwu/cocotron
#import <Foundation/Foundation.h>
@interface DemoContext : NSObject
@end
@interface DemoContext (subclass)
- (size_t)pixelsWide;
- (size_t)pixelsHigh;
- (size_t)bitsPerComponent;
- (size_t)bitsPerPixel;
- (size_t)bytesPerRow;
- (CGBitmapInfo)bitmapInfo;
- (void *)bytes;
- (void)setStrokeCo... | 468 |
507 | <filename>test/lib/testMayaUsdInteractiveLayerEditorCommands.py
#!/usr/bin/env mayapy
#
# Copyright 2021 Autodesk
#
# 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... | 1,024 |
455 | <reponame>madhubandubey9/StarEngine<filename>StarEngine/jni/Actions/TimedScaleAction.h<gh_stars>100-1000
#pragma once
#include "TimedAction.h"
namespace star
{
class TimedScaleAction : public TimedAction
{
public:
TimedScaleAction(
float32 seconds,
float32 begin,
float32 end,
const std::function<... | 363 |
1,333 | <filename>whale/src/android/art/art_jni_trampoline.h
#ifndef WHALE_ANDROID_ART_JNI_TRAMPOLINE_H_
#define WHALE_ANDROID_ART_JNI_TRAMPOLINE_H_
#include "android/art/art_hook_param.h"
namespace whale {
namespace art {
void BuildJniClosure(ArtHookParam *param);
} // namespace art
} // namespace whale
#endif // WH... | 150 |
320 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.jme3.gde.materialdefinition.navigator;
import com.jme3.gde.materialdefinition.MatDefDataObject;
import java.util.Collection;
import javax.swing.JComponent;
import javax.swing.JPanel;
import org.netbeans.spi.... | 2,132 |
17,702 | <gh_stars>1000+
# ==============================================================================
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root
# for full license information.
# ===================================================================... | 2,795 |
796 | <reponame>liudonghua123/9-Patch-Resizer<gh_stars>100-1000
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5,238 |
314 | <filename>Multiplex/IDEHeaders/IDEHeaders/IDEKit/IDERefactoringSession.h<gh_stars>100-1000
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "CDStructures.h"
#import "DVTInvalidation-Protocol.h"
@class DVTSourceExpression, DVTS... | 565 |
310 | import itertools
from absl.testing import absltest
from absl.testing import parameterized
from datathon_etl_pipelines.generic_imaging.images_to_tfrecord import ConvertToTFExample
# [(test_case_name, image_format, input_join, expected_list)]
tf_example_conversion_cases = [('one_to_one_jpg', 'jpg', (u'path_value', {
... | 2,359 |
14,668 | // 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.
package org.chromium.android_webview;
import androidx.annotation.NonNull;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.... | 616 |
480 | /*
* Copyright [2013-2021], 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
*
* Unless required by app... | 2,051 |
640 | #include "includes.h"
#define BOTH_EMPTY (UART_LS_TEMT | UART_LS_THRE)
#define WAIT_FOR_XMITR \
do { \
lsr = REG8(UART_BASE + UART_LS_REG); \
} while ((lsr & BOTH_EMPTY) != BOTH_EMPTY)
#define WAIT_FOR_THRE \
do { \
lsr = REG8(UART_BASE + UART_LS_REG); \
... | 2,302 |
378 | /*
* 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 ... | 1,111 |
348 | {"nom":"Rombach-le-Franc","circ":"2ème circonscription","dpt":"Haut-Rhin","inscrits":652,"abs":415,"votants":237,"blancs":16,"nuls":1,"exp":220,"res":[{"nuance":"REM","nom":"<NAME>","voix":114},{"nuance":"LR","nom":"<NAME>","voix":106}]} | 95 |
595 | #ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double Pods_Colorful_ExampleVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_Colorful_ExampleVers... | 121 |
343 | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 5,532 |
852 | <reponame>ckamtsikis/cmssw
#include "RecoEcal/EgammaClusterAlgos/interface/Multi5x5BremRecoveryClusterAlgo.h"
#include "RecoEcal/EgammaCoreTools/interface/BremRecoveryPhiRoadAlgo.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
reco::SuperClusterCollection Multi5x5BremRecoveryClusterAlgo::makeSuperClusters... | 2,165 |
540 | <reponame>dlee992/sdc<gh_stars>100-1000
//*****************************************************************************
// Copyright (c) 2019-2021, Intel Corporation All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... | 1,994 |
3,102 | <gh_stars>1000+
#import "someheader.h"
typedef myint aint;
| 28 |
473 | <filename>challenges/DFARS_Sample_Service/src/service.c
#include "cgc_cgc_libc.h"
#include "cgc_cgc_malloc.h"
#include "cgc_cgc_types.h"
typedef struct _program_state program_state;
typedef int (*process_t)(program_state *, char *);
#define BOOK_SECTION_SIZE 4*25
// #define BOOK_NAME_SIZE 4*148
// #define BOOK_DATA_S... | 11,399 |
9,657 | # coding=utf-8
import numpy as np
import torch.nn.functional as F
from datautil.util import random_pairs_of_minibatches
from alg.algs.ERM import ERM
class Mixup(ERM):
def __init__(self, args):
super(Mixup, self).__init__(args)
self.args = args
def update(self, minibatches, opt, sch):
... | 464 |
2,151 | <gh_stars>1000+
// 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 "chrome/browser/ui/app_list/chrome_app_list_model_updater.h"
#include <unordered_map>
#include <utility>
#include "base/strings... | 6,844 |
476 | <reponame>tejasvinu/hetu-core
/*
* 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 ... | 2,015 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-942j-wgv7-6vhf",
"modified": "2022-05-14T00:01:37Z",
"published": "2022-05-05T00:00:18Z",
"aliases": [
"CVE-2022-28556"
],
"details": "Tenda AC15 US_AC15V1.0BR_V15.03.05.20_multi_TDE01.bin is vulnerable to Buffer Overflow. The stack overflow vulnerability lies ... | 501 |
365 | # -*- coding: utf-8 -*-
from benedict import benedict
import unittest
class github_issue_0038_test_case(unittest.TestCase):
"""
https://github.com/fabiocaccamo/python-benedict/issues/38
To run this specific test:
- Run python -m unittest tests.github.test_issue_0038
"""
@staticmethod
... | 455 |
3,934 | # This sample tests that type errors within a finally clause are
# property detected.
def func1() -> None:
file = None
try:
raise ValueError()
except Exception:
return None
finally:
# This should generate an error.
file.name
| 101 |
316 | {
"name": "@chart-parts/examples-web",
"private": true,
"version": "0.1.3",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/chart-parts.git"
},
"scripts": {
"//serve": "webpack-dev-server --mode development --open --host 0.0.0.0",
"storybook": "start-storybook -p 6006",
"start": "npm... | 863 |
746 | package org.protege.editor.owl.model.selection.axioms;
import org.semanticweb.owlapi.model.OWLAxiom;
import org.semanticweb.owlapi.model.OWLOntology;
import java.util.HashSet;
import java.util.Set;
/**
* User: nickdrummond
* Date: May 21, 2008
*/
public class AllAxiomsStrategy extends AbstractAxiomSelectionStrate... | 276 |
1,847 | // Copyright (c) 2020 The Orbit 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 ORBIT_GL_STATUS_LISTENER_H_
#define ORBIT_GL_STATUS_LISTENER_H_
/**
* This interface is used to communicate status of a background
* task to t... | 296 |
1,016 | <gh_stars>1000+
package com.thinkbiganalytics.kylo.catalog.spark;
/*-
* #%L
* Kylo Catalog Core
* %%
* Copyright (C) 2017 - 2018 ThinkBig Analytics, a Teradata Company
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... | 1,617 |
855 | // Copyright 2017 Google Inc. All Rights Reserved.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
#ifndef PIK_OPSIN_IMAGE_H_
#define PIK_OPSIN_IMAGE_H_
// Converts to XYB color space.
#include <stdint.h>
#includ... | 577 |
369 | // Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "AlarmOptionsItem.hpp"
#include <application-alarm-clock/data/AlarmsData.hpp>
#include <apps-common/ApplicationCommon.hpp>
#include <apps-common/AudioOperations... | 643 |
607 | /*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#pragma once
namespace stm32plus {
/**
* Subclass of the I2CMasterPollingFeature that specialises it for the case
* where both the ... | 1,315 |
559 | <filename>05-AmbientOcclusion/Passes/AmbientOcclusionPass.cpp
/**********************************************************************************************************************
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modi... | 1,643 |
4,081 | <filename>core/common/src/test/java/alluxio/conf/AlluxioPropertiesTest.java
/*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* T... | 2,485 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.