max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
582 | <filename>bean/src/main/java/com/easy/bean/SpringLifeCycleAware.java
package com.easy.bean;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.st... | 213 |
348 | {"nom":"Montcenis","circ":"5ème circonscription","dpt":"Saône-et-Loire","inscrits":1765,"abs":1026,"votants":739,"blancs":52,"nuls":27,"exp":660,"res":[{"nuance":"LR","nom":"<NAME>","voix":337},{"nuance":"REM","nom":"<NAME>","voix":323}]} | 98 |
5,169 | {
"name": "BLAlert",
"version": "1.0",
"summary": "Show custom alerts with a neat animation as found in Tweetbot 4.",
"description": "Beautiful animated alerts inspired by Tweetbot 4",
"homepage": "https://github.com/B-Lach/Alert",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
... | 231 |
356 | <gh_stars>100-1000
#include "shader.h"
#include <candle.h>
#include "components/light.h"
#include "components/node.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <assert.h>
#include <utils/str.h>
#include <utils/shaders_default.h>
static char default_vs[1024] = "";
static ch... | 8,727 |
593 | package org.ananas.runner.kernel.paginate;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.Map;
import lombok.Data;
import org.ananas.runner.kernel.model.Dataframe;
import org.ananas.runner.kernel.model.Variable;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class PaginationB... | 154 |
9,516 | <reponame>ketyi/dgl
import dgl.multiprocessing as mp
import unittest, os
import pytest
import torch as th
import dgl
import backend as F
def start_unified_tensor_worker(dev_id, input, seq_idx, rand_idx, output_seq, output_rand):
device = th.device('cuda:'+str(dev_id))
th.cuda.set_device(device)
input_unif... | 1,314 |
575 | <filename>Sample Code/ObjcSampleCode/DJISdkDemo/Demo/Gimbal/GimbalActionsTableViewController.h
//
// GimbalActionsTableTableViewController.h
// DJISdkDemo
//
// Copyright © 2015 DJI. All rights reserved.
//
#import "DemoComponentActionTableViewController.h"
@interface GimbalActionsTableViewController : DemoCompone... | 112 |
1,031 | <gh_stars>1000+
"""
Copyright (c) 2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... | 9,801 |
488 | <filename>tests/CompileTests/ElsaTestCases/d0075.cc<gh_stars>100-1000
struct A;
template<class T> struct B {};
template<class T> void foo (B<T> &);
template<class T> void foo (A*);
int main() {
B<A> s;
// this doubling is necessary to reproduce the bug
foo(s);
foo(s);
}
| 110 |
435 | {
"copyright_text": null,
"description": "Looking to deploy Python code on AWS Lambda? Getting started with serverless can be a bit daunting at times with creating the functions, configuring them, configuring api gateways and what not. In this talk you will learn about the magic of rapid serverless api development ... | 308 |
925 | #include "object.h"
#include <algorithm>
#include <iostream>
#include <memory>
#include <type_traits>
#include "arglist.h"
#include "attribute.h"
#include "entity.h"
#include "hook.h"
#include "utils.h"
using std::endl;
using std::function;
using std::make_shared;
using std::pair;
using std::shared_ptr;
using std::s... | 3,332 |
1,035 | <gh_stars>1000+
# coding: utf-8
"""
Penguin Statistics - REST APIs
Backend APIs for Arknights drop rate statistics website 'Penguin Statistics': https://penguin-stats.io/ # noqa: E501
OpenAPI spec version: 2.0.0
Contact: <EMAIL>
Generated by: https://github.com/swagger-api/swagger-codegen.git
""... | 4,039 |
892 | <reponame>github/advisory-database
{
"schema_version": "1.2.0",
"id": "GHSA-jwp4-rhw6-7g6m",
"modified": "2022-05-13T01:52:43Z",
"published": "2022-05-13T01:52:43Z",
"aliases": [
"CVE-2018-5202"
],
"details": "SKCertService 2.5.5 and earlier contains a vulnerability that could allow remote attacker to... | 460 |
2,539 | // Rar1Decoder.h
// According to unRAR license, this code may not be used to develop
// a program that creates RAR archives
#ifndef __COMPRESS_RAR1_DECODER_H
#define __COMPRESS_RAR1_DECODER_H
#include "../../Common/MyCom.h"
#include "../ICoder.h"
#include "../Common/InBuffer.h"
#include "BitmDecoder.h"
#include "H... | 765 |
348 | {"nom":"Proissans","circ":"4ème circonscription","dpt":"Dordogne","inscrits":831,"abs":394,"votants":437,"blancs":31,"nuls":17,"exp":389,"res":[{"nuance":"REM","nom":"<NAME>","voix":215},{"nuance":"FI","nom":"<NAME>","voix":174}]} | 91 |
5,964 | /*
* Copyright (C) 2010 Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | 1,366 |
368 | package ezvcard.io;
import java.io.Closeable;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import ezvcard.VCard;
import ezvcard.io.scribe.ScribeIndex;
import ezvcard.io.scribe.VCardPropertyScribe;
import ezvcard.parameter.AddressType;
i... | 1,566 |
615 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 337 |
5,169 | <gh_stars>1000+
{
"name": "ModelSynchro",
"version": "0.2.3",
"summary": "An automated way to generate network models.",
"description": "An automated way to generate network models from JSON and keep them up to date.",
"homepage": "https://github.com/jgsamudio/ModelSynchro",
"license": {
"type": "MIT",
... | 264 |
2,757 | <gh_stars>1000+
/* LibTomCrypt, modular cryptographic library -- <NAME>
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all purposes without any express
* guarantee it works.
*/
#include "tomcrypt_private.h"
#ifd... | 1,293 |
669 | // Copyright(c) 2019 - 2020, #Momo
// 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 notice, this
// list of conditions... | 1,244 |
382 | <gh_stars>100-1000
/*
* Copyright (c) 2017. <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 5,783 |
1,097 | <reponame>Schol-R-LEA/x16-emulator<filename>cpu/mnemonics.h
/* Generated by buildtables.py */
static const char *mnemonics[256] = {
// $0X
/* $00 */ "brk ",
/* $01 */ "ora ($%02x,x)",
/* $02 */ "nop ",
/* $03 */ "nop ",
/* $04 */ "tsb $%02x",
/* $05 */ "ora $%02x",
/* $06 */ "asl $%02x",
/* $07 */ "rmb0 $%02x... | 3,690 |
1,104 | <reponame>Zorghts/roll20-character-sheets<gh_stars>1000+
{
"html": "palladium_megaverse.html",
"css": "palladium_megaverse.css",
"authors": "<NAME>.",
"roll20userid": "492849",
"preview": "palladium_megaverse.jpg",
"instructions": "This is a basic Palladium Megaverse character sheet and was created out of s... | 186 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.peering.implementation;
import com.azure.core.util.Context;
import com.azure.resourcemanager.peering.fluent.mode... | 2,427 |
367 | import torch
import torch.nn as nn
import torch.nn.functional as F
import math
class SoftTargetCrossEntropy(nn.Module):
def __init__(self):
super(SoftTargetCrossEntropy, self).__init__()
def forward(self, x, target):
N_rep = x.shape[0]
N = target.shape[0]
if not N==N_rep:
... | 1,335 |
2,831 | <gh_stars>1000+
#!/usr/bin/python
# Copyright 2008 <NAME>
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# Tests that properties conditioned on more than one other property work as
# expected.
import BoostBuild
... | 6,143 |
879 | <filename>header/src/main/java/org/zstack/header/volume/VolumeState.java
package org.zstack.header.volume;
public enum VolumeState {
Enabled,
Disabled
}
| 56 |
663 | <reponame>doctorpangloss/gogradle<gh_stars>100-1000
/*
* Copyright 2016-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.ap... | 1,748 |
337 | <gh_stars>100-1000
#pragma once
#include "../base/PathConfigBase.h"
#include "Dynmon_dp.h"
#include "MetricConfig.h"
class DataplaneConfig;
using namespace polycube::service::model;
static const std::string DEFAULT_PATH_NAME = "Default path config";
static const std::string DEFAULT_PATH_CODE = dynmon_code;
class P... | 465 |
680 | //
// XYBarChart.h
// XYChart
//
// Created by Daniel on 14-7-24.
// Copyright (c) 2014年 uyiuyao. All rights reserved.
//
#import "XYChartProtocol.h"
NS_ASSUME_NONNULL_BEGIN
@class XYChart;
@interface XYBarChart : UIView<XYChartContainer>
@property (nonatomic, weak, readonly) XYChart *chartView;
@end
NS_ASSUM... | 134 |
521 | #!/usr/bin/env python3
from lib.tcpmulticonnection import TCPMultiConnection
from lib.config import Config
from lib.args import Args
from gi.repository import Gst
import logging
import gi
gi.require_version('GstController', '1.0')
class AVPreviewOutput(TCPMultiConnection):
def __init__(self, source, port, use_au... | 4,083 |
1,694 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <objc/NSObject.h>
@class NSData, NSMutableDictionary, NSString;
@interface WWKBaseObject : NSObject
{
NSString *_bundleID;
... | 322 |
1,639 | <filename>Graph Theory/Gomory Hu Tree of Planar Graph.cpp
#include <bits/stdc++.h>
using namespace std;
const int N = 200005;
const int mod = 998244353;
struct EDGE {
int from, to, rev;
long long w;
} E[N * 4];
int n, m, bel[N * 4];
bool vis[N * 4];
vector<int> G[N];
vector<vector<int> > plr;
set<pair<l... | 1,554 |
521 | /** @file
String routines implementation
Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found a... | 1,217 |
4,985 | /*
* Copyright 2008 CoreMedia AG, Hamburg
*
* 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 l... | 659 |
2,209 | #ifndef __PYTHON_H__
#define __PYTHON_H__
/**
* Stub out the bits of python on which which parser.c depends.
*
*/
#include <assert.h>
#include <ctype.h>
#include <limits.h>
#include <stdbool.h>
//#include <stddef.h>
#include <unistd.h>
// XXX: Remove instances of these later
#define PyAPI_FUNC(x) extern x
#define ... | 536 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Little",
"definitions": [
"To a small extent.",
"Only to a small extent; not much or often (used for emphasis)",
"Hardly or not at all."
],
"parts-of-speech": "Adverb"
} | 113 |
559 | /**
* Copyright (c) 2016-2017 Netflix, 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 requir... | 511 |
1,538 | <reponame>gabriel-doriath-dohler/lean4<filename>stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c
// Lean compiler output
// Module: Lean.Elab.PreDefinition.WF.Main
// Imports: Init Lean.Elab.PreDefinition.Basic Lean.Elab.PreDefinition.WF.TerminationHint Lean.Elab.PreDefinition.WF.PackDomain Lean.Elab.PreDefinition.WF.Pa... | 41,125 |
366 | package com.hi.dhl.algorithms.leetcode._258.java;
/**
* <pre>
* author: dhl
* desc : add-digits
* site: https://leetcode.com/problems/add-digits/
*
* Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.
* Example:
* Input: 38
* ... | 660 |
3,102 | #include "macros_top.h"
#undef TOP_REDEF_IN_SUBMODULES
#define TOP_REDEF_IN_SUBMODULES 1
#undef TOP_REDEF_IN_SUBMODULES
#define TOP_REDEF_IN_SUBMODULES 2
| 75 |
1,292 | /*******************************************************************************
* Copyright (c) 2009, 2011 Mountainminds GmbH & Co. KG and Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this... | 756 |
5,169 | <filename>Specs/f/d/7/InstantSearchCore/7.0.0-beta.1/InstantSearchCore.podspec.json
{
"name": "InstantSearchCore",
"module_name": "InstantSearchCore",
"version": "7.0.0-beta.1",
"summary": "Instant Search library for Swift by Algolia",
"homepage": "https://github.com/algolia/instantsearch-core-swift",
"lice... | 430 |
558 | package skadistats.clarity.processor.reader;
import skadistats.clarity.event.UsagePointMarker;
import skadistats.clarity.event.UsagePointType;
import skadistats.clarity.wire.common.proto.Demo;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
... | 188 |
864 | #ifndef IIT_TESTIRB4600_JSIM_H_
#define IIT_TESTIRB4600_JSIM_H_
#include <iit/rbd/rbd.h>
#include <iit/rbd/StateDependentMatrix.h>
#include "declarations.h"
#include "transforms.h"
#include "inertia_properties.h"
#include <iit/rbd/robcogen_commons.h>
#include <iit/rbd/traits/DoubleTrait.h>
namespace iit {
namespace... | 1,303 |
1,330 | /*
* 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,488 |
2,151 | // Copyright (C) 2014 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 required by applicable law or agreed to in ... | 723 |
23,220 | <gh_stars>1000+
package com.alibaba.otter.canal.client.adapter.hbase.test;
import com.alibaba.otter.canal.client.adapter.hbase.support.HbaseTemplate;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.junit.Test;
public class HBaseConnectionTest {
@Test
... | 290 |
715 | <reponame>iabhimanyu/Algorithms<filename>Dynamic Programming/coin change/cpp/min_coin_change_value.cpp
// Minimum coins needed for a value
#include <bits/stdc++.h>
using namespace std;
int get_change(int m, vector <int> c) {
vector <int> s(m + 1, m);
int n = c.size();
s[0] = 0;
for (int i = 1; i < m + 1; ++i) {
... | 306 |
473 | <filename>src/lapack_like/condense/Hessenberg/ApplyQ.hpp
/*
Copyright (c) 2009-2016, <NAME>
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#ifnde... | 912 |
419 | #pragma once
#include "Engine/Animation/Graph/Animation_RuntimeGraph_Node.h"
//-------------------------------------------------------------------------
namespace KRG::Animation::GraphNodes
{
class KRG_ENGINE_ANIMATION_API ConstBoolNode final : public BoolValueNode
{
public:
struct KRG_ENGINE_ANI... | 1,556 |
1,025 | //==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file pdGDBOutputReader.cpp
///
//==================================================================================... | 117,370 |
472 | <reponame>WithToken/TTPatch
//
// TaoBaoHome.h
// Example
//
// Created by tianyubing on 2020/3/27.
// Copyright © 2020 TianyuBing. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface TaoBaoHome : UIViewController
@end
NS_ASSUME_NONNULL_END
| 118 |
530 | import pytest
from tests.functional.coercers.common import resolve_list_field
@pytest.mark.asyncio
@pytest.mark.ttftt_engine(
name="coercion", resolvers={"Query.listFloatField": resolve_list_field}
)
@pytest.mark.parametrize(
"query,variables,expected",
[
(
"""query { listFloatField }... | 9,991 |
2,134 | <filename>logic/export.hpp
// generates export.hpp for each module from compat/linkage.hpp
#pragma once
#include "compat/linkage-macros.hpp"
#ifdef BUILD_LOGIC
# define OTR_LOGIC_EXPORT OTR_GENERIC_EXPORT
#else
# define OTR_LOGIC_EXPORT OTR_GENERIC_IMPORT
#endif
| 113 |
567 |
{
"id": "2021_Vitis-Tutorials-AI_Engine_Development",
"name": "2021_Vitis In Depth Tutorials",
"description": "2021_AI_Engine_Development"
}
| 66 |
346 | <filename>Language Skills/Python/Unit 07 Lists and Functions/01 Lists and Functions/Using Lists of Lists in Functions/17-Using two lists as two arguments in a function.py
m = [1, 2, 3]
n = [4, 5, 6]
n = [3, 5, 7]
# Add your code here!
def join_lists(x, y):
return x + y
print join_lists(m, n)
# You want this to prin... | 125 |
322 | <filename>cppsrc/StarQuant/Services/starquant_.cpp
/*****************************************************************************
* Copyright [2019]
*
* 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... | 366 |
354 | <filename>trojan/src/main/java/me/ele/trojan/utils/DateUtils.java
package me.ele.trojan.utils;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Locale;
/**
* Created by michaelzhong on 2017/11/7.
*/
public class DateUtils {
private static final SimpleDateFormat dfYMD = new Simple... | 170 |
538 | import sys
sys.path.insert(0,'..')
from data.whale_data import find_exchange_txs
from plot.plotly_helper import plot_using_plotly
from .calculate_holding_amount import calculate_holding_amount
from .calculate_historical import *
from .coinmarketcap_draw import coinmarketcap_data
from data.whale_data import find_whale_a... | 3,089 |
3,102 | <filename>clang/test/Driver/nostdlibxx.cpp
// RUN: %clangxx -target i686-pc-linux-gnu -### -nostdlib++ %s 2> %t
// RUN: FileCheck < %t %s
// We should still have -lm and the C standard libraries, but not -lstdc++.
// CHECK-NOT: -lstdc++
// CHECK-NOT: -lc++
// CHECK: -lm
// Make sure -lstdc++ isn't rewritten to the d... | 271 |
348 | {"nom":"Goualade","circ":"9ème circonscription","dpt":"Gironde","inscrits":77,"abs":20,"votants":57,"blancs":9,"nuls":3,"exp":45,"res":[{"nuance":"SOC","nom":"<NAME>","voix":25},{"nuance":"MDM","nom":"<NAME>","voix":20}]} | 92 |
868 | <reponame>codrinbucur/activemq-artemis
/*
* 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, Ve... | 1,366 |
453 | <gh_stars>100-1000
/* $NetBSD: hcreate.c,v 1.2 2001/02/19 21:26:04 ross Exp $ */
/*
* Copyright (c) 2001 <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 s... | 861 |
953 | <reponame>chen-hwera/rDSN
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Microsoft Corporation
*
* -=- Robust Distributed System Nucleus (rDSN) -=-
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to dea... | 9,910 |
567 | package com.twitter;
import com.google.common.collect.ImmutableList;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Set;
/**
* This mojo executes the {@code thrift} compiler for generating java sources
* from thrift definitions. It also searches dependency artifacts for
*... | 713 |
2,127 | import time
import uuid
import server.test as base_test
import server.db.diary as db_diary
import server.logic.sync as logic_sync
from server.logic import user as logic_user
DIARY_DB_NAME = 'Diary'
def execute_all_test():
test_create()
test_update()
test_delete()
test_push()
test_pull()
test... | 3,451 |
310 | <filename>gear/hardware/c/c015.json<gh_stars>100-1000
{
"name": "C015",
"description": "A 5 megapixel webcam.",
"url": "https://www.amazon.com/TeckNet%C2%AE-Webcam-Camera-MegaPixel-Microphone/dp/B00K11RI6W"
} | 91 |
502 | /*
* 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,405 |
72,551 | <reponame>gandhi56/swift<filename>include/swift/SILOptimizer/Analysis/PassManagerVerifierAnalysis.h
//===--- PassManagerVerifierAnalysis.h ------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project author... | 707 |
348 | {"nom":"Dombasle-sur-Meurthe","circ":"4ème circonscription","dpt":"Meurthe-et-Moselle","inscrits":6781,"abs":3569,"votants":3212,"blancs":34,"nuls":16,"exp":3162,"res":[{"nuance":"REM","nom":"<NAME>","voix":983},{"nuance":"LR","nom":"<NAME>","voix":704},{"nuance":"FN","nom":"Mme <NAME>","voix":621},{"nuance":"FI","nom"... | 291 |
432 | <reponame>lambdaxymox/DragonFlyBSD<filename>games/primes/pattern.c
/*-
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistribution and use in source and binary forms, with or without... | 31,209 |
1,531 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distri... | 813 |
482 | <reponame>benmcclelland/GrovePi<filename>Software/Cpp/grove_button.cpp
//
// GrovePi Example for using the Grove Button (http://www.seeedstudio.com/wiki/Grove_-_Button)
//
// The GrovePi connects the Raspberry Pi and Grove sensors. You can learn more about GrovePi here: http://www.dexterindustries.com/GrovePi
//
// H... | 825 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-mm8r-8vpw-4648",
"modified": "2022-04-30T18:20:37Z",
"published": "2022-04-30T18:20:37Z",
"aliases": [
"CVE-2002-1141"
],
"details": "An input validation error in the Sun Microsystems RPC library Services for Unix 3.0 Interix SD, as implement... | 479 |
840 | #pragma once
// Circular buffer/queue of elements of type T, with capacity C.
// NOTE: Both read and write indexes will freely overflow uint32_t and that's fine.
template<typename T, unsigned int C>
class CircularBuffer {
static_assert(!(C & (C-1)), "Only power-of-two sizes of circular buffer are supported.");
... | 920 |
302 | <reponame>sesu089/stackoverflow
#include <QApplication>
#include <QGraphicsPixmapItem>
#include <QGraphicsView>
#include <QDebug>
int main(int argc, char *argv[]) {
QApplication a(argc, argv);
QGraphicsView w;
QGraphicsScene *scene = new QGraphicsScene;
w.setScene(scene);
QList<QGraphicsPixmapItem *> items... | 303 |
7,064 | <reponame>jaguerraEmergya/elasticsearch-sql
/**
*
*/
/**
* @author ansj
*
*/
package org.elasticsearch.plugin.nlpcn; | 51 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-5f3g-f3qg-cgq4",
"modified": "2022-05-13T01:53:07Z",
"published": "2022-05-13T01:53:07Z",
"aliases": [
"CVE-2018-6533"
],
"details": "An issue was discovered in Icinga 2.x through 2.8.1. By editing the init.conf file, Icinga 2 can be run as r... | 465 |
421 | //<Snippet4>
using namespace System;
void main()
{
// Define an array of 8-bit signed integer values.
array<SByte>^ values = { SByte::MinValue, SByte::MaxValue,
0x3F, 123, -100 };
// Convert each value to a Decimal.
for each (SByte value in values) {
... | 410 |
320 | #include "MSXPPI.hh"
#include "LedStatus.hh"
#include "MSXCPUInterface.hh"
#include "MSXMotherBoard.hh"
#include "Reactor.hh"
#include "CassettePort.hh"
#include "RenShaTurbo.hh"
#include "GlobalSettings.hh"
#include "serialize.hh"
namespace openmsx {
MSXPPI::MSXPPI(const DeviceConfig& config)
: MSXDevice(config)
,... | 1,545 |
14,668 | # 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.
from code import Code
from model import PropertyType
from datetime import datetime
LICENSE = """// Copyright %s The Chromium Authors. All rights reserved.
... | 3,833 |
3,102 | <filename>clang/test/OpenMP/nvptx_data_sharing.cpp
// Test device global memory data sharing codegen.
///==========================================================================///
// RUN: %clang_cc1 -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc %s -o ... | 2,797 |
3,428 | <gh_stars>1000+
{"id":"00739","group":"easy-ham-1","checksum":{"type":"MD5","value":"9034df113ffe0cff225c698efcea7426"},"text":"From <EMAIL> Mon Sep 23 23:45:34 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>int.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 7795716F... | 978 |
311 | {
"GunicornTokioWebWorker.init_process": {
"has": [
"global",
"import"
],
"raises": [
"AssertionError"
]
},
"GunicornUVLoopWebWorker.init_process": {
"has": [
"global",
"import"
],
"raises": [
"AssertionError"
]
},
"GunicornWebWorker._create_... | 429 |
320 | /*
* Copyright (c) 2009-2018 jMonkeyEngine
* 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 copyright
* notice, this... | 810 |
8,027 | <reponame>Unknoob/buck
package com.facebook.buck.infer.testdata.several_libraries;
public class JavaSmokeTest {
public String warnReturnNullableFromNonnullable() {
L1 o = new L2().getL1();
return o.getNullableString();
}
}
| 88 |
329 | <reponame>cloudsoft/cm_api<filename>java/src/main/java/com/cloudera/api/model/ApiTimeSeriesRow.java<gh_stars>100-1000
//Licensed to Cloudera, Inc. under one
//or more contributor license agreements. See the NOTICE file
//distributed with this work for additional information
//regarding copyright ownership. Cloudera, ... | 788 |
627 | <reponame>Rob-S/indy-node
from collections import OrderedDict
from indy_common.types import RevocDefValueField, ClientRevocDefSubmitField
from plenum.common.messages.fields import IntegerField, AnyMapField, NonEmptyStringField, ConstantField, ChooseField, \
LimitedLengthStringField
from indy_common.constants import... | 688 |
454 | <reponame>agave233/PaddleHelix
#!/usr/bin/python
#-*-coding:utf-8-*-
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except... | 3,516 |
5,964 | /* bio.h for openssl */
#include <wolfssl/openssl/bio.h>
| 25 |
5,169 | {
"name": "WalmartBuynowSDK",
"version": "1.0.3-beta",
"summary": "Walmart Buynow SDK Kit for iOS",
"description": "Walmart Buynow SDK is designed to let you drive sales right in your app or on your website. SDK components like BuyNow button can be placed next to a product offering on the website or in a mobile... | 488 |
3,262 | #pragma once
#include "../utils/utils.h"
#include "../time/halleytime.h"
namespace Halley {
enum class TweenCurve {
Linear,
Cosine
};
template <typename T>
class Tween {
public:
Tween() {}
Tween(T a, T b, Time length = 1.0, TweenCurve curve = TweenCurve::Linear)
: a(std::move(a))
, b(std::move(b)... | 668 |
1,078 | <gh_stars>1000+
// { Driver Code Starts
//Initial Template for C++
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
/*You are required to complete this function*/
class Solution{
public:
int maxLen(vector<int>&A, int n)
{
unordered_map<int, int> map;
... | 640 |
793 | // Test that the --print-supported-cpus flag works
// REQUIRES: x86-registered-target
// RUN: %clang --target=x86_64-unknown-linux-gnu \
// RUN: --print-supported-cpus 2>&1 \
// RUN: | FileCheck %s --check-prefix=CHECK-X86
// CHECK-X86: Target: x86_64-unknown-linux-gnu
// CHECK-X86: corei7
// CHECK-X86: Use -mcpu ... | 269 |
799 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
from datetime import datetime
from unittest.mock import patch
from pyowm.commons.image import Image, ImageTypeEnum
from pyowm.agroapi10.enums import PresetEnum, SatelliteEnum
from pyowm.agroapi10.imagery import MetaImage, SatelliteImage
class TestMetaIma... | 3,020 |
551 | #ifndef DARWIN_CRASH_H
#define DARWIN_CRASH_H
namespace CrashHandler {
std::string
GetLogsDirectory();
void
InformUserOfCrash(const std::string& sPath);
bool
IsDebuggerPresent();
void
DebugBreak();
}
#endif /* DARWIN_CRASH_H */
| 85 |
1,993 | <filename>instrumentation/jms/src/test/java/brave/jms/ITJms_1_1_TracingMessageConsumer.java
/*
* Copyright 2013-2020 The OpenZipkin 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
... | 4,613 |
1,724 | /*
* Copyright 2008-present MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 2,541 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.