max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
56,632 | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2021 Intel Corporation
#ifndef OPENCV_GAPI_PYTHON_API_HPP
#define OPENCV_GAPI_PYTHON_API_HPP
#include <... | 576 |
4,047 | #!/usr/bin/env python3
from storer import Storer
s = Storer()
if s.get_value() != 0:
raise SystemExit('Initial value incorrect.')
s.set_value(42)
if s.get_value() != 42:
raise SystemExit('Setting value failed.')
try:
s.set_value('not a number')
raise SystemExit('Using wrong argument type did not f... | 130 |
1,424 | import datetime
import nose.tools
import rdflib
from rdflib.plugins.sparql import operators
from rdflib.plugins.sparql import sparql
def test_date_cast():
now = datetime.datetime.now()
today = now.date()
literal = rdflib.Literal(now)
result = operators.date(literal)
assert isinstance(result, da... | 331 |
372 | #define LSH_TIME_HOST 1970
#define LSH_DEFAULT_TICKET_LIFE 1971
| 27 |
2,151 | <reponame>fugu-helper/android_external_swiftshader
//===-- PTXBaseInfo.h - Top level definitions for PTX -------- --*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----... | 754 |
1,207 | package android.marshon.likequanmintv.librarys.mvpbase;
import android.marshon.likequanmintv.base.APP;
import android.marshon.likequanmintv.librarys.utils.LogUtil;
import android.marshon.likequanmintv.librarys.utils.NetUtil;
import android.widget.Toast;
import com.google.gson.Gson;
import com.google.gson.reflect.Type... | 455 |
956 | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2020 Inspur Corporation
*/
#include "gso_common.h"
#include "gso_tunnel_udp4.h"
#define IPV4_HDR_MF_BIT (1U << 13)
static void
update_tunnel_ipv4_udp_headers(struct rte_mbuf *pkt, struct rte_mbuf **segs,
uint16_t nb_segs)
{
struct rte_ipv4_hdr *ipv... | 1,380 |
329 | import pytest
from rest_framework.authtoken.models import Token
from rest_registration.auth_token_managers import RestFrameworkAuthTokenManager
from rest_registration.exceptions import AuthTokenError
@pytest.fixture()
def auth_token_manager():
return RestFrameworkAuthTokenManager()
def test_when_token_created_... | 454 |
2,338 | <filename>compiler-rt/lib/dfsan/dfsan_flags.h
//===-- dfsan_flags.h -------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM... | 281 |
404 | # Python Tools for Visual Studio
# Copyright(c) Microsoft Corporation
# 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
#
# THI... | 593 |
409 | <filename>KITE-Example-Test/src/main/java/org/webrtc/kite/example/pages/GmailSignInPage.java
package org.webrtc.kite.example.pages;
import io.cosmosoftware.kite.exception.KiteInteractionException;
import io.cosmosoftware.kite.interfaces.Runner;
import io.cosmosoftware.kite.pages.BasePage;
import org.openqa.selenium.We... | 643 |
645 | /**
* Copyright 2019 LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
package com.linkedin.tony;
import com.google.common.annotations.VisibleForTesting;
import com.linkedin.tony.models.JobContainerRequest;
import com.li... | 2,256 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Bischheim","circ":"3ème circonscription","dpt":"Bas-Rhin","inscrits":9659,"abs":5647,"votants":4012,"blancs":35,"nuls":21,"exp":3956,"res":[{"nuance":"REM","nom":"<NAME>","voix":1343},{"nuance":"LR","nom":"<NAME>","voix":575},{"nuance":"FI","nom":"Mme <NAME>","voix":538}... | 351 |
649 | package net.serenitybdd.screenplay.waits;
import net.serenitybdd.screenplay.Question;
import org.hamcrest.Matcher;
import java.util.concurrent.Callable;
public class Wait {
public static WaitWithTimeout until(Question question, Matcher matcher) {
return new WaitOnQuestion(question, matcher);
}
... | 153 |
13,006 | <reponame>mjlorenzo305/deeplearning4j
/*******************************************************************************
* Copyright (c) 2015-2019 Skymind, Inc.
* Copyright (c) 2020 <NAME>.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which i... | 467 |
986 | <reponame>exNTLDR/audacity
/*
** Copyright (C) 1999-2019 <NAME> <<EMAIL>>
**
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
**
** * Redistributions of source code must retain the above... | 5,455 |
1,007 | ##
# Exploit Title: Doubble OpenNamespace Denial of Service
# Date: 12/28/2020
# Exploit Author: <NAME>
# CVE : CVE-2020-5801
# Advisory: https://www.tenable.com/security/research/tra-2020-71
##
import sys, socket, argparse, struct
import re, random, hexdump
def block(data, pad=False):
dlen = len(data)
if (pad an... | 1,000 |
1,931 | <filename>tests/test_visitors/test_ast/test_statements/test_parameters_indentation/test_call_indentation.py
import pytest
from wemake_python_styleguide.visitors.ast.statements import (
ParametersIndentationViolation,
WrongParametersIndentationVisitor,
)
# Correct:
correct_single_line_call = 'print(1, 2, 3)'
... | 1,214 |
2,151 | <reponame>prometheansacrifice/esy-vpx
/*
* Copyright (c) 2017 The WebM 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
* ... | 30,400 |
485 | <filename>indexr-segment/src/benchmark/java/io/indexr/compress/bh/BHCompressBenchmark.java
package io.indexr.compress.bh;
import com.google.common.base.Preconditions;
import com.sun.jna.NativeLibrary;
import org.apache.commons.lang.RandomStringUtils;
import org.apache.spark.unsafe.types.UTF8String;
import org.openjd... | 2,830 |
1,144 | /*****************************************************************************
**
** Name: app_manager.h
**
** Description: Bluetooth Manager application
**
** Copyright (c) 2010-2014, Broadcom Corp., All Rights Reserved.
** Broadcom Bluetooth Core. Proprietary and confidential.
**
********************... | 1,367 |
751 | /*
* Copyright (c) 2012 Cisco and/or its affiliates.
* 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 applicabl... | 754 |
825 | //===--- Mutex.h - Lockables ------------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... | 3,040 |
578 | // Copyright (c) 2019 <NAME> <EMAIL>
// This software is provided 'as-is' under the zlib License, see the LICENSE.txt file.
// This notice and the license may not be removed or altered from any source distribution.
#ifdef TWO_MODULES
module;
#include <gfx/Cpp20.h>
module TWO2(gfx, pbr);
#else
#include <stl/algorith... | 8,982 |
3,508 | <gh_stars>1000+
package com.fishercoder;
import com.fishercoder.solutions._1243;
import org.junit.BeforeClass;
import org.junit.Test;
import java.util.Arrays;
import static junit.framework.TestCase.assertTrue;
public class _1243Test {
private static _1243.Solution1 solution1;
private static int[] arr;
... | 324 |
684 | <filename>examples/TestInRange.cpp
#include <deepstate/DeepState.hpp>
#include <cmath>
using namespace deepstate;
using namespace std;
TEST(DeepState, RangeAPIs) {
int v, low, high, mv;
char cv, clow, chigh;
double dv, dlow, dhigh;
low = DeepState_Int();
high = DeepState_Int();
if (low > high) {
int ... | 889 |
375 | package io.lumify.web.routes.vertex;
import com.google.inject.Inject;
import io.lumify.core.config.Configuration;
import io.lumify.core.ingest.ArtifactDetectedObject;
import io.lumify.core.model.SourceInfo;
import io.lumify.core.model.audit.AuditAction;
import io.lumify.core.model.audit.AuditRepository;
import io.lumi... | 3,239 |
480 |
import unittest
from nlu import *
class TestSentiment(unittest.TestCase):
def test_sentiment_model(self):
pipe = nlu.load('sentiment',verbose=True)
df = pipe.predict(['I love pancaces. I hate Mondays', 'I love Fridays'], output_level='document',drop_irrelevant_cols=False, metadata=True, )
... | 501 |
386 | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2013, Image Engine Design 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,404 |
317 | <gh_stars>100-1000
#ifndef EDYN_COMP_GRAVITY_HPP
#define EDYN_COMP_GRAVITY_HPP
#include "edyn/math/vector3.hpp"
namespace edyn {
struct gravity : public vector3 {
gravity & operator=(const vector3 &v) {
vector3::operator=(v);
return *this;
}
};
}
#endif // EDYN_COMP_GRAVITY_HPP | 144 |
5,279 | <reponame>charithe/beam
/*
* 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 ... | 437 |
742 | /*
* Copyright (C) 2008, <NAME> and <NAME>, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... | 1,188 |
2,577 | <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 additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
... | 808 |
2,637 | /*
* Copyright 2017 NXP
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following disclaimer.
*
*... | 6,932 |
348 | {"nom":"Abos","circ":"3ème circonscription","dpt":"Pyrénées-Atlantiques","inscrits":462,"abs":166,"votants":296,"blancs":5,"nuls":0,"exp":291,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":107},{"nuance":"SOC","nom":"<NAME>","voix":93},{"nuance":"FI","nom":"<NAME>","voix":22},{"nuance":"LR","nom":"M. <NAME>","voix":20... | 317 |
5,937 | <reponame>txlos/wpf
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File creat... | 4,316 |
310 | import torch.nn as nn
from torch.autograd import Variable
import torch
import time
from torch.nn.functional import cosine_similarity
from module_utils import *
class FullMatchLay(nn.Module):
def __init__(self, mp_dim, cont_dim):
super().__init__()
self.cont_dim = cont_dim
self.mp_dim = mp_... | 2,131 |
1,618 | package com.xiaojuchefu.prism.behavior.model;
import com.google.gson.annotations.SerializedName;
public class Rule {
@SerializedName("ruleId")
public long ruleId;
@SerializedName("cityId")
public int cityId;
@SerializedName("period")
public int period;
@SerializedName("effectiveTime")
... | 266 |
1,104 | <reponame>Zorghts/roll20-character-sheets<gh_stars>1000+
{
"list-skills": "manipulation,tromperie,combat,rafistolage,investigation,poursuite,endurance,larcin",
"list-domains": "académie,crime,commerce,haute-société,prolétariat,occultisme,ordre,religion,technologie",
"spire-the-city-must-fall": "Spire - Le soulèvemen... | 597 |
2,151 | <filename>chrome/browser/sessions/tab_loader.cc<gh_stars>1000+
// 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 "chrome/browser/sessions/tab_loader.h"
#include <algorithm>
#include <string>
#i... | 4,469 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/eval/eval/gbdt.h>
#include <vespa/eval/eval/vm_forest.h>
#include <vespa/eval/eval/llvm/deinline_forest.h>
#include <vespa/eval/eval/llvm/compiled_functio... | 4,355 |
1,103 | <reponame>Branlala/docker-sickbeardfr
PACKAGE = "hachoir-metadata"
VERSION = "1.3.3"
WEBSITE = "http://bitbucket.org/haypo/hachoir/wiki/hachoir-metadata"
LICENSE = "GNU GPL v2"
| 81 |
529 | from dataclasses import dataclass, field
from typing import List, Optional
from ansimarkup import ansiprint
from django.db import connections, transaction
from .config import PostgresPartitioningConfig
from .constants import AUTO_PARTITIONED_COMMENT
from .partition import PostgresPartition
@dataclass
class Postgres... | 1,563 |
400 | package org.ofdrw.core.basicStructure.res.resources;
import org.junit.jupiter.api.Test;
import org.ofdrw.TestTool;
import org.ofdrw.core.basicStructure.res.CT_MultiMediaTest;
import static org.junit.jupiter.api.Assertions.*;
public class MultiMediasTest {
public static MultiMedias multiMediasCase(){
ret... | 210 |
190,993 | <gh_stars>1000+
/* Copyright 2019 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 app... | 1,560 |
714 | package com.mcxiaoke.minicat.api.rest;
import com.mcxiaoke.minicat.api.ApiException;
import org.oauthsimple.model.OAuthToken;
import java.io.IOException;
/**
* @author mcxiaoke
* @version 1.1 2012.02.27
*/
public interface OAuthMethods {
public String getAccount();
public void setAccount(String account)... | 188 |
677 | from __future__ import division
try:
import cPickle as pickle
except ImportError:
import pickle
import io
import os
import random
from collections import Counter, defaultdict
from magpie.base.document import Document
def save_to_disk(path_to_disk, obj, overwrite=False):
""" Pickle an object to disk """... | 2,088 |
5,169 | <gh_stars>1000+
{
"name": "MUKContentFetch",
"version": "1.2.0",
"summary": "Retrieve data and transform it to content objects",
"description": "A simple infrastracture to retrieve requested data and transform it to content object",
"homepage": "https://github.com/muccy/MUKContentFetch",
"license": "MIT",
... | 225 |
1,877 | package com.stepstone.stepper.sample.test.spoon;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.os.Looper;
import android.util.Log;
import android.view.View;
import java.io.BufferedInp... | 3,584 |
1,091 | /*
* Copyright 2016-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 2,177 |
5,169 | <filename>Specs/b/0/f/gitExample/0.0.1/gitExample.podspec.json<gh_stars>1000+
{
"name": "gitExample",
"version": "0.0.1",
"summary": "gitExample.",
"description": "gitExample描述文件描述文件描述文件",
"homepage": "https://github.com/wangyucuia/gitExample",
"license": "MIT",
"authors": {
"ayilimi": "<EMAIL>"
},
... | 300 |
18,336 | <filename>locust/util/rounding.py
def proper_round(val, digits=0):
return round(val + 10 ** (-len(str(val)) - 1), digits)
| 48 |
432 | <reponame>TGTang/ballcat<filename>ballcat-starters/ballcat-spring-boot-starter-log/src/main/java/com/hccake/ballcat/autoconfigure/log/annotation/EnableOperationLog.java
package com.hccake.ballcat.autoconfigure.log.annotation;
import com.hccake.ballcat.autoconfigure.log.OperationLogAutoConfiguration;
import org.springf... | 208 |
729 | package com.chinalwb.are.demo;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewTreeObserver;
import android.widget.ImageView;
impo... | 6,234 |
478 | <reponame>sbt-tbs/owr_with_oculus
/*
* Copyright 2007 Red Hat, Inc.
*
* 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
* on the rights t... | 7,163 |
313 | <reponame>timgates42/mps<gh_stars>100-1000
/* shield.c: SHIELD IMPLEMENTATION
*
* $Id$
* Copyright (c) 2001-2020 Ravenbrook Limited. See end of file for license.
*
* See: idea.shield, <design/shield>.
*
* IMPORTANT: HERE BE DRAGONS! This code is subtle and
* critical. Ensure you have read and understood <desig... | 7,524 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iPodUI.framework/iPodUI
*/
#import <iPodUI/IUMediaQueriesDataSource.h>
@interface IUAudioBookTracksDataSource : IUMediaQueriesDataSource {
}
+ (int)mediaEntityType; // 0x3ab49
- (id)viewControllerContextForIndex:(u... | 165 |
1,144 | <filename>backend/vertical-healthcare_ch/forum_datenaustausch_ch.invoice_base/src/main/java/de/metas/vertical/healthcare_ch/forum_datenaustausch_ch/base/imp/InvoiceRejectionDetailRepo.java
package de.metas.vertical.healthcare_ch.forum_datenaustausch_ch.base.imp;
import org.adempiere.exceptions.AdempiereException;
impo... | 1,338 |
946 | <filename>core/src/builders/terrain/ExteriorGenerator.hpp
#ifndef BUILDERS_TERRAIN_EXTERIORGENERATOR_HPP_DEFINED
#define BUILDERS_TERRAIN_EXTERIORGENERATOR_HPP_DEFINED
#include "builders/terrain/TerraGenerator.hpp"
#include <memory>
namespace utymap {
namespace builders {
/// Generates meshes outside terrain surfac... | 457 |
1,144 | package de.metas.ui.web.material.cockpit.rowfactory;
import java.math.BigDecimal;
import java.time.LocalDate;
import org.compiere.util.TimeUtil;
import de.metas.material.cockpit.model.I_MD_Cockpit;
import de.metas.material.cockpit.model.I_MD_Stock;
import de.metas.product.ProductId;
import lombok.NonNull;
import lom... | 799 |
1,073 | <filename>mobius-core/src/main/java/com/spotify/mobius/runners/ImmediateWorkRunner.java<gh_stars>1000+
/*
* -\-\-
* Mobius
* --
* Copyright (c) 2017-2020 Spotify AB
* --
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 348 |
312 | #include "clar_libgit2.h"
#include "posix.h"
static void
cleanup__remove_file(void *_file)
{
cl_must_pass(p_unlink((char *)_file));
}
/* test retrieving OID from a file apart from the ODB */
void test_status_single__hash_single_file(void)
{
static const char file_name[] = "new_file";
static const char file_content... | 531 |
17,810 | <filename>code/9/9.1.noexcept.cpp
//
// 9.1.noexcept.cpp
// chapter 09 others
// modern c++ tutorial
//
// created by changkun at changkun.de
// https://github.com/changkun/modern-cpp-tutorial
//
#include <iostream>
void may_throw() {
throw true;
}
auto non_block_throw = []{
may_throw();
};
void no_throw() no... | 494 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-cjg2-2fjg-fph4",
"modified": "2022-01-14T19:58:51Z",
"published": "2022-01-14T21:03:36Z",
"aliases": [
"CVE-2022-21685"
],
"summary": "Integer underflow in Frontier",
"details": "### Impact\n\nA bug in Frontier's MODEXP precompile implementation can cause an ... | 986 |
6,304 | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkPaint.h"
// https://crbug.com/772953
DEF_SIMPLE_GM(circle_sizes, canvas, 128, 128) {
SkPain... | 242 |
373 | /** @file
Aspire VN7-572G HSIO PTSS H File
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef ASPIRE_VN7_572G_HSIO_PTSS_H_
#define ASPIRE_VN7_572G_HSIO_PTSS_H_
#include <PchHsioPtssTables.h>
#ifndef HSIO_PTSS_TABLE_SIZE
#define... | 425 |
751 | // Copyright 2016, 2018 by <NAME>, All Rights Reserved
#ifndef AGOO_TEXT_H
#define AGOO_TEXT_H
#include <stdbool.h>
#include "atomic.h"
#define AGOO_TEXT_MIN_SIZE 8
typedef struct _agooText {
struct _agooText *next;
long len; // length of valid text
long alen; // size of allocated text
atomic_in... | 403 |
323 | #!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
import copy
import sys
sys.path.append('../../')
from spotmicro.GymEnvs.spot_bezier_env import spotBezierEnv
from spotmicro.util.gui import GUI
from spotmicro.Kinematics.SpotKinematics import SpotModel
from spotmicro.Kinematics.LieAlgebra impo... | 3,210 |
317 | <reponame>heralex/OTB
/*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... | 1,980 |
904 | #include "backend.h"
#include "bitmap.h"
#include "image.h"
#include "source.h"
#include "source_private.h"
#include <stdlib.h>
#include <string.h>
#include <tiffio.h>
struct private {
TIFF *tiff;
void *data;
size_t pos, len;
int width;
int height;
};
static tsize_t mem_read(thandle_t data, tdata_t buffer,... | 1,518 |
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,279 |
357 | /**
*
* Copyright 2013 VMware, Inc. All rights reserved.
*/
package com.vmware.vmevent.interop;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.WString;
import com.sun.jna.ptr.IntByReference;
import com.sun.jna.ptr.PointerByReference;
import com.vmware.vmevent... | 1,027 |
1,767 | package com.annimon.stream.iterator;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.NoSuchElementException;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.juni... | 747 |
1,127 | <reponame>artkuli/openvino<gh_stars>1000+
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
"""ngraph module namespace, exposing factory functions for all ops and other classes."""
# noqa: F401
try:
from ngraph.impl import util
__version__ = util.get_ngraph_version_string()
exc... | 2,469 |
314 | <gh_stars>100-1000
// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#ifndef CAN_CONTROLLER_H
#define CAN_CONTROLLER_H
#include <Arduino.h>
class CANControllerClass : public Stream {
public:
virtual int begin(long ba... | 539 |
3,494 | <filename>samples/_opengl/ObjLoader/androidstudio/ObjLoader/app/src/main/java/org/libcinder/samples/objloader/ObjLoaderActivity.java<gh_stars>1000+
package org.libcinder.samples.objloader;
import org.libcinder.app.CinderNativeActivity;
public class ObjLoaderActivity extends CinderNativeActivity {
static final Str... | 112 |
306 | <reponame>thesilvanator/SnowflakeOS
#include <math.h>
double fmax(double a, double b) {
return a > b ? a : b;
}
float fmaxf(float a, float b) {
return a > b ? a : b;
}
double fmin(double a, double b) {
return a < b ? a : b;
}
float fminf(float a, float b) {
return a < b ? a : b;
}
int min(int a, in... | 824 |
1,428 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package sliderapp;
/**
*
* @author badhr
*/
public class SliderControl {
private SliderObserver[] observer = new SliderObserver... | 287 |
318 | <reponame>Sunlitspace542/SNESticle<gh_stars>100-1000
#ifndef _NETSYS_H
#define _NETSYS_H
typedef int NetSysSemaT;
typedef int NetSysThreadT;
#define NETSYS_THREAD_INVALID (-1)
NetSysSemaT NetSysSemaNew(int initcount);
void NetSysSemaDelete(NetSysSemaT sema);
int NetSysSemaWait(NetSysSemaT sema);
int N... | 209 |
724 | <filename>vega/modules/operators/functions/pytorch_to_tf.py
# -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it ... | 1,694 |
1,847 | // Copyright (c) 2021 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.
// This file will NOT be compiled as part of Orbit 's build system. It' s meant to generate the
// testdata. Check out `testdata/Makefile` on how to comp... | 135 |
1,602 | #!/usr/bin/env python3
# encoding: utf-8
"""
This script is used for manual validation.
"""
from __future__ import print_function
import numpy as np
from scipy import sparse
import os
import time
def read_csr_matrix_file(f):
data = []
row_ind = []
col_ind = []
with open(f, 'r') as handle:
m... | 888 |
542 | package com.intsmaze.flink.validate;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.groups.Default;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* github地址: https://github.com/intsmaze
* 博客地址:ht... | 861 |
940 | <gh_stars>100-1000
def foo():
ur"""unicode-raw"""
def bar():
u"""unicode"""
def baz():
r'raw'
def zap():
"""docstring"""
| 66 |
1,433 | <reponame>gerald-yang/ubuntu-iotivity-demo
/* *****************************************************************
*
* Copyright 2015 Samsung Electronics 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.
*... | 1,248 |
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 ... | 2,077 |
362 | /*
* Copyright (c) 2005, The JUNG Authors
*
* All rights reserved.
*
* This software is open-source under the BSD license; see either
* "license.txt" or
* https://github.com/jrtom/jung/blob/master/LICENSE for a description.
* Created on Mar 8, 2005
*
*/
package edu.uci.ics.jung.visualization.control;
import ... | 400 |
308 | package com.hexagonaldemo.ticketapi.common.event.consumer;
import com.hexagonaldemo.ticketapi.common.model.Event;
import lombok.Synchronized;
import lombok.extern.slf4j.Slf4j;
import org.springframework.messaging.handler.annotation.Payload;
import org.springframework.stereotype.Service;
import java.time.Duration;
imp... | 1,147 |
2,446 | {
"data" : {
"content" : "“没啥大问题了,医疗费20。”见到浓妆女醒过来,毕云涛伸出手掌来。\n众人齐翻白眼,林雪眼中全是震惊之色,忙上前抓住浓妆女,只是探查她的病情。\n“你……你怎么做到的?”林雪忙问道。\n毕云涛双手一摊,说道:“就是这样啊!你不全都看见了吗?”\n年轻的警察有些疑惑的问道方静若:“张叔,这人还抓吗?”\n张叔低头沉吟,现在的情况他也搞不清楚了,这两名女子是林氏医馆的人,林氏医馆跟江南市的很多权贵都有结交,很明显,不是好惹的,至于小郎中跟浓妆女,也没发生什么事儿。\n“算了,收队吧!”张叔说道。\n“张叔,我不服!他……他还打了我屁股的!”方静若气呼呼的指着毕云涛,那眼神仿... | 4,734 |
1,467 | <reponame>ascheja/aws-sdk-java-v2
/*
* 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 located at
*
* http://aws.amazon.com/apache2... | 676 |
509 | package com.dyman.easyshow3d.thread;
/**
* Created by dyman on 18/5/17.
*/
public interface IAnalysisFinishCallback {
void verticeProgressUpdate(int threadID, int nums);
void faceProgressUpdate(int threadID, int nums);
void alvFinish();
void alvFaceFinish();
} | 97 |
1,144 | <filename>qemu-4.2.0/roms/u-boot/cmd/fs.c<gh_stars>1000+
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
*
* Inspired by cmd_ext_common.c, cmd_fat.c.
*/
#include <common.h>
#include <command.h>
#include <fs.h>
#include <efi_loader.h>
static int do_size_wrappe... | 1,206 |
1,188 | <reponame>nagineni/chromium-crosswalk
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.android_webview;
import org.chromium.base.CalledByNative;
import org.chromium.base.JNIName... | 375 |
977 | <reponame>pedropbazzo/graphql-spqr
package io.leangen.graphql.module.common.gson;
import io.leangen.graphql.generator.mapping.OutputConverter;
import io.leangen.graphql.generator.mapping.TypeMapper;
import io.leangen.graphql.module.SimpleModule;
import java.util.Arrays;
import java.util.Collections;
import java.util.... | 434 |
1,705 | {
"pagination": {
"ListComponents": {
"input_token": "nextToken",
"output_token": "nextToken",
"limit_key": "maxResults",
"result_key": "entities"
},
"ListThemes": {
"input_token": "nextToken",
"output_token": "nextToken",
"limit_key": "maxResults",
"result_... | 165 |
1,444 | <filename>Mage.Sets/src/mage/cards/w/WeatheredWayfarer.java<gh_stars>1000+
package mage.cards.w;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.ActivateIfConditionActivatedAbility;
import mage.abilities.condition.common.OpponentControlsMoreCondition;
import mag... | 731 |
2,406 | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <algorithm>
#include <vector>
#include "openvino/core/core_visibility.hpp"
#include "openvino/core/rtti.hpp"
#include "openvino/core/shape.hpp"
namespace ov {
/// \brief Coordinates for a tensor element
clas... | 509 |
14,668 | // 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.
#include "third_party/blink/renderer/core/frame/window_controls_overlay.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "... | 995 |
45,293 | public final class C /* p.C*/ extends p.A {
public C();// .ctor()
public int af();// af$light_idea_test_case()
public int getAp();// getAp$light_idea_test_case()
} | 68 |
348 | <filename>docs/data/leg-t2/061/06101365.json
{"nom":"Saint-Aubin-d'Appenai","circ":"1ère circonscription","dpt":"Orne","inscrits":335,"abs":165,"votants":170,"blancs":10,"nuls":4,"exp":156,"res":[{"nuance":"DVD","nom":"<NAME>","voix":85},{"nuance":"SOC","nom":"M. <NAME>","voix":71}]} | 119 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.