max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
4,629 | <gh_stars>1000+
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <memory>
#include "directed_graph.h"
#include "dijkstra.h"
using namespace alg;
int main(void)
{
using namespace alg;
srand(time(NULL));
int NVERTEX = 10;
std::auto_ptr<DirectedGraph> g(DirectedGraph::randgraph(... | 449 |
317 | #ifndef MEDIA_RECORDER_H_
#define MEDIA_RECORDER_H_
#ifdef __cplusplus
extern "C"
{
#endif
#include <libavformat/avformat.h>
#include <libavutil/opt.h>
#include <libavutil/mathematics.h>
#include <libswscale/swscale.h>
#include <libswresample/swresample.h>
#ifdef __cplusplus
};
#endif
class Recorder {
public:
vo... | 290 |
12,718 | <gh_stars>1000+
#include "time32.h"
#include <time.h>
int __clock_getres_time32(clockid_t clk, struct timespec32 *ts32)
{
struct timespec ts;
int r = clock_getres(clk, &ts);
if (!r && ts32) {
ts32->tv_sec = ts.tv_sec;
ts32->tv_nsec = ts.tv_nsec;
}
return r;
}
| 131 |
4,318 | from .ar_benchmark import AccuracyRobustnessBenchmark
from .eao_benchmark import EAOBenchmark
from .ope_benchmark import OPEBenchmark
from .f1_benchmark import F1Benchmark
| 52 |
3,836 |
#pragma once
template <typename T> T CLAMP(const T& value, const T& low, const T& high)
{
return value < low ? low : (value > high ? high : value);
}
| 59 |
348 | {"nom":"Saint-Martin-d'Heuille","circ":"2ème circonscription","dpt":"Nièvre","inscrits":479,"abs":234,"votants":245,"blancs":25,"nuls":10,"exp":210,"res":[{"nuance":"REM","nom":"<NAME>","voix":138},{"nuance":"SOC","nom":"<NAME>","voix":72}]} | 96 |
310 | {
"name": "PandaBar",
"description": "A Mac app for controlling Pandora.",
"url": "http://www.pandabarapp.com/"
} | 44 |
2,206 | <filename>nd4j/nd4j-backends/nd4j-backend-impls/nd4j-presets-common/src/main/java/org/nd4j/presets/OpExclusionUtils.java
/*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apa... | 3,224 |
88,283 | <reponame>TarunavBA/electron<gh_stars>1000+
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Copyright (c) 2013 <NAME> <<EMAIL>>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-CHROMIUM file.
#ifndef SHELL_BROWSER_UI_INSPECTABLE... | 774 |
945 | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 1,446 |
302 | <reponame>vadkasevas/BAS<gh_stars>100-1000
#ifndef IWEBELEMENT_H
#define IWEBELEMENT_H
#include "engine_global.h"
#include <QObject>
#include <QRect>
#include "iworker.h"
namespace BrowserAutomationStudioFramework
{
class IWorker;
class ENGINESHARED_EXPORT IWebElement : public QObject
{
Q_OBJECT
p... | 1,287 |
5,079 | import datetime
from django.db import models
from django.test import (
SimpleTestCase, TestCase, override_settings, skipUnlessDBFeature,
)
from django.test.utils import requires_tz_support
from django.utils import timezone
from .models import DateTimeModel
class DateTimeFieldTests(TestCase):
def test_datet... | 1,507 |
526 | <reponame>pppls/coderedcms
"""
Creatable pages used in CodeRed CMS.
"""
from modelcluster.fields import ParentalKey
from coderedcms.forms import CoderedFormField
from coderedcms.models import (
CoderedArticlePage,
CoderedArticleIndexPage,
CoderedEmail,
CoderedFormPage,
CoderedWebPage
)
from django.d... | 1,464 |
475 | <gh_stars>100-1000
package org.micro.neural.config;
import org.micro.neural.OriginalCall;
import org.micro.neural.common.URL;
import org.micro.neural.config.store.StorePool;
import org.micro.neural.limiter.Limiter;
import org.micro.neural.limiter.LimiterConfig;
public class RedisStoreTest {
public static void ma... | 492 |
12,718 | <gh_stars>1000+
#include <sec_api/stdio_s.h>
int __cdecl _vscprintf_p(const char *format, va_list arglist)
{
return _vscprintf_p_l(format, NULL, arglist);
}
int __cdecl (*__MINGW_IMP_SYMBOL(_vscprintf_p))(const char *, va_list) = _vscprintf_p;
| 114 |
585 | <filename>src/OpenLoco/Ui/TextInput.h
#include "../Graphics/Gfx.h"
#include <cstdint>
#include <string>
namespace OpenLoco::Ui::TextInput
{
constexpr int16_t textboxPadding = 4;
struct InputSession
{
std::string buffer; // 0x011369A0
size_t cursorPosition; // 0x01136FA2
int16_t... | 394 |
32,544 | package com.baeldung.system;
import java.awt.event.WindowEvent;
/**
* Note: This class is not meant for unit-testing since it uses system
* features at low level and that it uses 'System' gc() which suggests
* JVM for garbage collection. But the usage below demonstrates how the
* method can be used.
*/
public cl... | 177 |
334 | <reponame>NuAngel/PoS-DogeCoin_PUPS<filename>nxt/src/java/nxt/http/MockedRequest.java
/*
* Copyright © 2016-2020 Jelurida IP B.V.
*
* See the LICENSE.txt file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with Jelurida B.V.... | 4,258 |
5,379 | <filename>tools/rpc_press/json_loader.h
// 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,... | 781 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-qmp2-8m8m-8v95",
"modified": "2022-05-01T18:30:17Z",
"published": "2022-05-01T18:30:17Z",
"aliases": [
"CVE-2007-5113"
],
"details": "report.cgi in Google Urchin allows remote attackers to bypass authentication a... | 604 |
778 | // KRATOS___
// // ) )
// // ___ ___
// // ____ //___) ) // ) )
// // / / // // / /
// ((____/ / ((____ ((___/ / MECHANICS
//
// License: geo_mechanics_application/license.txt
//
// Main authors: <NAME>,
// <NAME>
//
#if !defined(KRATOS_NEWMARK_... | 8,326 |
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 ... | 17,561 |
2,577 | <filename>engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultPermissionProvider.java
/*
* 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... | 569 |
491 | <reponame>mavic3cine/a2573252785.rth.app
package top.naccl.controller.admin;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.a... | 1,521 |
2,496 | <filename>src/Widgets/FFTPlot.cpp
/*
* Copyright (c) 2020-2021 <NAME> <https://github.com/alex-spataru>
*
* 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 w... | 2,178 |
388 | # -*- coding: utf-8 -*-
from .file import File
from .redis import Redis
| 29 |
1,040 | // Copyright (c) <NAME>
// Licensed under the MIT License
// ==============================================================
// ORBITER MODULE: ShuttleA
// Part of the ORBITER SDK
//
// navbutton.cpp
// User interface for navigation buttons
// ===========================================... | 2,617 |
2,151 | <reponame>sunnycase/swiftshader
// Copyright 2016 The SwiftShader 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/LIC... | 2,483 |
14,668 | // 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 "mojo/public/cpp/system/trap.h"
#include "mojo/public/c/system/functions.h"
namespace mojo {
MojoResult CreateTrap(MojoTrapEventHandler handle... | 211 |
314 | <gh_stars>100-1000
[{"id":"9e2a08f5.4634b8","type":"server-state-changed","z":"ffbd7f06.4a014","name":"","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.motion","entityidfiltertype":"exact","outputinitially":false,"state_type"... | 545 |
348 | <gh_stars>100-1000
{"nom":"Saint-Brice-sous-Forêt","circ":"7ème circonscription","dpt":"Val-d'Oise","inscrits":8843,"abs":5806,"votants":3037,"blancs":234,"nuls":71,"exp":2732,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":1517},{"nuance":"LR","nom":"M. <NAME>","voix":1215}]} | 119 |
5,964 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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.mozilla.org... | 1,249 |
1,338 | /*
* Copyright 2001-2010, Haiku, Inc.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> (<EMAIL>)
* <NAME>, <EMAIL>
* <NAME>
* <NAME>
* <NAME>, <EMAIL>
*/
/*! BShelf stores replicant views that are dropped onto it */
#include <Shelf.h>
#include <pthread.h>
#include <AutoDeleter.... | 13,368 |
9,267 | """ pkg.sub1.init """
| 10 |
450 | //===- PassManager.h -----------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef ONNC_CORE_PASS_MANAGER_H
#define ONNC_CORE_PASS_MANAGER_H
#in... | 1,865 |
1,480 | import os
TEST_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'tests')
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'unique-snowflake'
}
}
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
... | 673 |
2,084 | <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
* ... | 4,462 |
12,824 | /*
* Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com>
*/
package bug;
import bug.Named_1;
import java.io.Serializable;
import java.lang.annotation.Annotation;
public class NamedImpl_1 implements Named_1 {
public Class<? extends Annotation> annotationType() {
return null;
}
}
| 108 |
348 | {"nom":"Serbonnes","circ":"3ème circonscription","dpt":"Yonne","inscrits":396,"abs":207,"votants":189,"blancs":12,"nuls":3,"exp":174,"res":[{"nuance":"FN","nom":"<NAME>","voix":94},{"nuance":"REM","nom":"<NAME>","voix":80}]} | 88 |
28,056 | <gh_stars>1000+
package com.alibaba.json.bvt.parser.array;
import org.junit.Assert;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONException;
import com.alibaba.fastjson.parser.Feature;
import junit.framework.TestCase;
public class BeanToArrayTest2 extends TestCase {
public void test_bool() ... | 574 |
852 | import FWCore.ParameterSet.Config as cms
#
#
# Conversion Track candidate producer
from RecoEgamma.EgammaPhotonProducers.conversionTracks_cff import *
# converted photon producer
#from RecoEgamma.EgammaTools.PhotonConversionMVAComputer_cfi import *
from RecoEgamma.EgammaPhotonProducers.conversions_cfi import *
#conve... | 358 |
338 | package io.grpc.grpcswagger.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author zhangjikai
* Created on 2018-12-07
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ServiceConfig {
private String service;
private String endPoint;
}
| 108 |
302 | <filename>Engine/stringbox.h
#ifndef STRINGBOX_H
#define STRINGBOX_H
#include "engine_global.h"
#include "istringbox.h"
#include <QDateTime>
#include <QHash>
#include <QSet>
#include <QStringList>
namespace BrowserAutomationStudioFramework
{
class ENGINESHARED_EXPORT StringBox : public IStringBox
{
Q_O... | 952 |
774 | package com.example;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.graphics.Typeface;
import android.os.Bundle;
import android.widget.TextView;
public class DatabaseFromFile extends Activity {
private static final int D... | 539 |
12,824 | <reponame>jamesanto/scala
public interface VarargGeneric<T> {
String genericOne(T x, String args);
// we cannot annotate this with @SafeVarargs, because
// it's in an interface. so that's why a warning from
// javac appears in the checkfile.
String genericVar(T x, String... args);
}
| 92 |
12,252 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... | 5,716 |
5,053 | <filename>test/test_positional_encoding.py
import pytest
import torch
from espnet.nets.pytorch_backend.transformer.embedding import PositionalEncoding
from espnet.nets.pytorch_backend.transformer.embedding import ScaledPositionalEncoding
@pytest.mark.parametrize(
"dtype, device",
[(dt, dv) for dt in ("float3... | 1,925 |
308 | // Copyright (c) 2016-2020 <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
#pragma once
#include <vpp/fwd.hpp>
#include <vpp/queue.hpp>
#include <vpp/handles.hpp>
#include <vpp/util/span.hpp>
#include <deque>
#inclu... | 1,025 |
646 | import ee
from ee_plugin import Map
from ee_plugin.contrib import palettes
dem = ee.Image("AHN/AHN2_05M_RUW").convolve(ee.Kernel.gaussian(0.5, 0.3, 'meters'))
extrusion = 3
weight = 0.7
palette = palettes.crameri['oleron'][50]
rgb = dem.visualize(**{'min': 0, 'max': 3, 'palette': palette })
hsv = rgb.unitScale(0, 25... | 346 |
879 | <gh_stars>100-1000
package org.zstack.header.message;
/**
* Created by MaJin on 2019/7/17.
*/
public abstract class CancelMessage extends NeedReplyMessage {
private String cancellationApiId;
public String getCancellationApiId() {
return cancellationApiId;
}
public void setCancellationApiId(... | 148 |
1,315 | #include "Transcriptome.h"
#include "ReadAlign.h"
#include "serviceFuns.cpp"
int alignToTranscript(Transcript &aG, uint trS1, uint8 trStr1, uint32 *exSE1, uint32 *exLenCum1, uint16 exN1, Transcript &aT) {
//find exon that overlaps beginning of the read
uint32 g1=aG.exons[0][EX_G]-trS1;//start of the align
... | 3,024 |
5,169 | <reponame>ftapp/cocoapods
{
"name": "Tapstream-Segment",
"version": "1.0.0",
"summary": "Tapstream Integration for Segment's analytics-ios library.",
"description": "This is the Tapstream integration for the iOS library for Segment.",
"homepage": "https://tapstream.com/",
"license": "MIT",
"authors": {
... | 350 |
681 | #include "driver2.h"
#include "event.h"
#include "cars.h"
#include "players.h"
#include "mc_snd.h"
#include "camera.h"
#include "convert.h"
#include "draw.h"
#include "models.h"
#include "mission.h"
#include "job_fx.h"
#include "bomberman.h"
#include "debris.h"
#include "main.h"
#include "system.h"
#include "spool.h"
#... | 36,202 |
504 | <gh_stars>100-1000
/***********************************************************************
*
* Copyright (c) Geoworks 1993 -- All Rights Reserved
*
* PROJECT: GEOS Bitstream Font Driver
* MODULE: C
* FILE: FrontEnd/ufe.c
* AUTHOR: <NAME>
*
* DESCRIPTION:
* This file contains C code for the GEOS Bit... | 6,060 |
369 | // Copyright (c) 2017-2021, Mudita <NAME>.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "BGSoundsTimerSelectPresenter.hpp"
#include "data/BGSoundsCommon.hpp"
#include <ApplicationBellBackgroundSounds.hpp>
#include <apps-common/ApplicationCommon.hpp>
#include <s... | 538 |
32,544 | <reponame>DBatOWL/tutorials<filename>persistence-modules/hibernate-mapping/src/main/java/com/baeldung/hibernate/Strategy.java
package com.baeldung.hibernate;
import java.util.Arrays;
import java.util.List;
public enum Strategy {
//See that the classes belongs to different packages
MAP_KEY_COLUMN_BASED(Arrays... | 664 |
767 | <filename>packages/node_modules/couchdb-objects/package.json
{
"name": "couchdb-objects",
"description": "Aids in the construction of JSON objects as used by CouchDB.",
"repository": {
"type": "git",
"url": "https://github.com/pouchdb/pouchdb-server.git"
},
"keywords": [
"pouch",
"pouchdb",
... | 187 |
988 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
package com.mojang.serialization;
import com.google.common.collect.ImmutableList;
import java.util.function.UnaryOperator;
public interface ListBuilder<T> {
DynamicOps<T> ops();
DataResult<T> build(T prefix);
... | 1,001 |
362 | <reponame>hsiangawang/whois<filename>whois-endtoend/src/test/java/net/ripe/db/whois/compare/common/ComparisonRunnerFactory.java
package net.ripe.db.whois.compare.common;
import net.ripe.db.whois.compare.rest.RestComparisonRunner;
import net.ripe.db.whois.compare.rest.RestExecutor;
import net.ripe.db.whois.compare.teln... | 1,089 |
353 | package org.nutz.plugins.webqq.model;
import org.nutz.json.Json;
/**
*
*
* @author Kerbores(<EMAIL>)
*
* @project nutz-plugins-webqq
*
* @file Recent.java
*
* @description 最近会话
*
*
* @DateTime 2016年6月28日 下午1:30:20
*
*/
public class Recent {
private long uin;
// 0:好友、1:群、2:讨论组
private int type;
... | 401 |
8,027 | /*
* Copyright (c) Facebook, Inc. and 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 applic... | 426 |
575 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_EVENTS_TEST_TEST_EVENT_PROCESSOR_H_
#define UI_EVENTS_TEST_TEST_EVENT_PROCESSOR_H_
#include <memory>
#include "base/macros.h"
#include "ui/ev... | 580 |
617 | <filename>oceanus-all/oceanus-core/src/main/java/com/bj58/oceanus/core/jdbc/result/RowSetComparator.java
/*
* Copyright Beijing 58 Information Technology Co.,Ltd.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with thi... | 908 |
965 | CObArray myArray1, myArray2;
// Add elements to the second array.
myArray2.Add(new CAge(21));
myArray2.Add(new CAge(42));
// Copy the elements from the second array to the first.
myArray1.Copy(myArray2);
#ifdef _DEBUG
afxDump.SetDepth(1);
afxDump << "myArray1: " << &myArray1 << "\n";
afxDump << "myArray2: " << &myAr... | 141 |
3,362 | package com.zendesk.maxwell.filtering;
public class InvalidFilterException extends Exception {
public InvalidFilterException(String message) {
super(message);
}
}
| 48 |
4,054 | <reponame>amahussein/vespa<gh_stars>1000+
// Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.concurrent;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Deque;
import java.util.List;
import java.util.concurrent.Concurr... | 625 |
2,151 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/signin/login_ui_service.h"
#include "build/build_config.h"
#include "chrome/browser/profiles/profile.h"
#include "c... | 2,916 |
412 | #include <assert.h>
main() {
__CPROVER_fixedbv[32][16] a;
__CPROVER_fixedbv[64][32] b;
a=1.25L;
assert(a==(__CPROVER_fixedbv[32][16])1.25);
b=1.250;
assert(b==(__CPROVER_fixedbv[64][32])1.25);
}
| 114 |
1,056 | <reponame>Antholoj/netbeans
/*
* 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 ... | 1,016 |
301 | import ast
from python_minifier.rename.binding import NameBinding
from python_minifier.rename.util import arg_rename_in_place, get_global_namespace, get_nonlocal_namespace, builtins
from python_minifier.transforms.suite_transformer import NodeVisitor
class NameBinder(NodeVisitor):
"""
Create a NameBinding fo... | 2,433 |
1,016 | package com.thinkbiganalytics;
/*-
* #%L
* kylo-ui-app
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... | 481 |
3,269 | <gh_stars>1000+
// Time: O(n)
// Space: O(n)
class Solution {
public:
string solveEquation(string equation) {
auto a = 0, b = 0;
auto side = 1;
int submatches[] = { 1, 2, 3, 4 };
auto e = regex("(=)|([-+]?)(\\d*)(x?)");
for (regex_token_iterator<string::iterator> it(equatio... | 897 |
1,555 | <gh_stars>1000+
int printf(const char *, ...);
struct {
unsigned f1 : 2;
} b;
int foo(void) {
int a, d = -10;
a = (d < (b.f1 = 2));
return printf("foo: %u, %d\n", b.f1, a);
}
int h, i;
unsigned j;
struct {
signed f0 : 20;
unsigned f1 : 20;
} f;
int bar(void) {
i = (f.f0 = (h = 0x20CF9BFEL));
j = (f.f1 = (h... | 231 |
1,160 | /*
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _USB_COMMON_H
#define _USB_COMMON_H
#include "pico/types.h"
#include "hardware/structs/usb.h"
// bmRequestType bit definitions
#define USB_REQ_TYPE_STANDARD 0x00u
#define USB_REQ_TYPE_TYPE_MASK 0x60u
#define ... | 1,505 |
348 | <gh_stars>100-1000
{"nom":"Guignes","circ":"3ème circonscription","dpt":"Seine-et-Marne","inscrits":2305,"abs":1501,"votants":804,"blancs":47,"nuls":16,"exp":741,"res":[{"nuance":"UDI","nom":"<NAME>","voix":464},{"nuance":"FN","nom":"<NAME>","voix":277}]} | 106 |
587 | <gh_stars>100-1000
/*
* Copyright 2020 LINE Corporation
*
* LINE Corporation licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-... | 1,081 |
14,668 | <reponame>zealoussnow/chromium
// 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_QUERY_TILES_INTERNAL_BLACK_HOLE_LOG_SINK_H_
#define COMPONENTS_QUERY_TILES_INTERNAL_BLACK_HOLE_LOG_SINK_... | 341 |
1,408 | <reponame>sohumango/arm-trusted-firmware<filename>include/lib/cpus/aarch64/cortex_a55.h
/*
* Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef CORTEX_A55_H
#define CORTEX_A55_H
#include <lib/utils_def.h>
/* Cortex-A55 MIDR for revisio... | 683 |
537 |
/**
* onnx导出项目在这里:
* https://github.com/shouxieai/tensorrt-pro-sample-python-classifier
*/
#include <infer/trt_infer.hpp>
#include <builder/trt_builder.hpp>
#include <common/ilogger.hpp>
int direct_classifier(){
if(!iLogger::exists("classifier.onnx")){
INFOE("classifier.onnx not found, reference: htt... | 691 |
478 | #ifndef SERIALCONFIGURATION_HPP
#define SERIALCONFIGURATION_HPP
class SerialConfiguration
{
public:
SerialConfiguration(const char *device);
const char *GetDevice();
private:
const char *m_device;
};
#endif
| 73 |
1,755 | <filename>Interaction/Widgets/Testing/Cxx/TestTextRepresentationWithBorders.cxx
/*=========================================================================
Program: Visualization Toolkit
Module: TestTextRepresentationWithBorders.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyrigh... | 1,006 |
372 | <reponame>mjhopkins/google-api-java-client-services
/*
* 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 o... | 1,087 |
432 | package com.revengemission.sso.oauth2.server.domain;
public class GlobalConstant {
/**
* 返回成功
*/
public final static int SUCCESS = 1;
/**
* 返回失败
*/
public final static int ERROR = -1;
/**
* 参数类型错误
*/
public final static int ERROR_PARAMETER_TYPE = 400;
/**
... | 377 |
627 | from indy_common.constants import POOL_CONFIG, WRITES
from plenum.common.txn_util import get_type, get_payload_data
from stp_core.common.log import getlogger
logger = getlogger()
class PoolConfig:
def __init__(self, ledger):
self.writes = True
self.ledger = ledger
def isWritable(self):
... | 489 |
5,169 | <filename>Specs/1/8/1/Explore/0.1.0/Explore.podspec.json
{
"name": "Explore",
"version": "0.1.0",
"summary": "Explore downloaded apps",
"description": "Explore easily lets you check to see which apps a user has downloaded. This can be used to help better understand your user to improve the user experience.",
... | 293 |
22,028 | <gh_stars>1000+
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <time.h>
/* Implement binary tree in array */
#define MAX_TREE_NODES (1 << 8)
struct node {
int data;
};
struct binary_tree {
union {
unsigned long nodes;
struct node *n[MAX_TREE_NODES];
};
};
void init_... | 556 |
1,873 | <reponame>smtcrms/SlidingTutorial-Android
package com.cleveroad.slidingtutorial.sample.supportsample;
import android.support.annotation.NonNull;
import com.cleveroad.slidingtutorial.Direction;
import com.cleveroad.slidingtutorial.PageSupportFragment;
import com.cleveroad.slidingtutorial.TransformItem;
import com.clev... | 589 |
6,097 | <filename>RuneFramework/vendor/glm/test/ext/ext_vector_uint2_sized.cpp
#include <glm/ext/vector_uint2_sized.hpp>
#if GLM_HAS_STATIC_ASSERT
static_assert(sizeof(glm::u8vec2) == 2, "int8 size isn't 1 byte on this platform");
static_assert(sizeof(glm::u16vec2) == 4, "int16 size isn't 2 bytes on this platform");
static_as... | 449 |
593 | <reponame>Diffblue-benchmarks/Ananas-analytics-ananas-desktop
package org.ananas.runner.kernel.model;
public interface DeepComparable {
boolean deepEquals(Object o);
}
| 55 |
3,931 | /*
* This file is part of dependency-check-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 ... | 2,419 |
854 | __________________________________________________________________________________________________
sample 56 ms submission
class Solution:
def permuteUnique(self, nums: List[int]) -> List[List[int]]:
def permute(nums, i):
if i == 0:
return [[nums[i]]]
... | 683 |
331 | <filename>03-machine-learning-tabular-crossection/06 - Clustering/01/solutions/solution_01.py<gh_stars>100-1000
from sklearn.cluster import KMeans
# Initializing KMeans
kmeans = KMeans(n_clusters=4)
# Fitting with inputs
kmeans = kmeans.fit(X)
# Predicting the clusters
labels = kmeans.predict(X)
# Getting the cluster ... | 133 |
626 | /*
* Copyright 2019, OpenCensus 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 applicable law or ag... | 588 |
1,473 | /*
* Copyright 2018 NAVER Corp.
* 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 ... | 670 |
988 | <gh_stars>100-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
... | 2,912 |
850 | <gh_stars>100-1000
// GENERATED FILE - DO NOT MODIFY
#ifndef tensorflow_core_framework_types_proto_H_
#define tensorflow_core_framework_types_proto_H_
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/platform/macros.h"
#include "tensorflow/core/platform/protobuf.h"
#include "tensorflow/core/pl... | 205 |
1,918 | <gh_stars>1000+
# Copyright 2021, The TensorFlow Federated 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,632 |
1,704 | <reponame>fire-suppression-abm/mesa<gh_stars>1000+
from charts.server import server
server.launch()
| 36 |
14,668 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_SETTINGS_AUTOFILL_AUTOFILL_CREDIT_CARD_UTIL_H_
#define IOS_CHROME_BROWSER_UI_SETTINGS_AUTOFILL_AUTOFILL_CREDIT_CARD_UTIL_H_
... | 1,015 |
2,529 | #!/usr/bin/env python3
import os
def get_var(name: str, def_val: str = ""):
if name in os.environ:
return os.environ[name]
return def_val
print("Content-Type: application/json")
print()
print("""{{ "https" : "{https}",
"host" : "{server_name}",
"protocol" : "{protocol}",
"ssl_protocol" : "{ssl_p... | 258 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.