max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
350 | from __future__ import print_function
import torch
import numpy as np
from PIL import Image
import random
import inspect, re
import numpy as np
import os
import collections
import math
import torch.nn as nn
import torch.nn.functional as F
from torchvision import models
from skimage.transform import resize
def create_m... | 8,732 |
1,694 | <reponame>CrackerCat/iWeChat<filename>header6.6.1/HelloMsgsPanelView.h
//
// 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 "MMUIView.h"
#import "LongPressMenuViewDelegate-Protocol.h"
... | 387 |
408 | <reponame>antlr/groom<filename>corpus/java/training/antlr4-tool/org/antlr/v4/codegen/CodeGeneratorExtension.java
/*
* [The "BSD license"]
* Copyright (c) 2012 <NAME>
* Copyright (c) 2012 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are ... | 1,197 |
16,870 | <reponame>chi-w-ng/flatbuffers<gh_stars>1000+
// automatically generated by the FlatBuffers compiler, do not modify
package MyGame.Example;
import java.nio.*;
import java.lang.*;
import java.util.*;
import com.google.flatbuffers.*;
@SuppressWarnings("unused")
public final class ArrayStruct extends Struct {
public ... | 1,988 |
1,652 | <gh_stars>1000+
package com.ctrip.xpipe.redis.console.exception;
import com.ctrip.xpipe.redis.core.exception.RedisException;
/**
* @author wenchao.meng
*
* Jun 27, 2016
*/
public class RedisConsoleException extends RedisException{
private static final long serialVersionUID = 1L;
public RedisConsoleException(St... | 151 |
675 | /*
* H.265 video codec.
* Copyright (c) 2013-2014 struktur AG, <NAME> <<EMAIL>>
*
* Authors: struktur AG, <NAME> <<EMAIL>>
*
* This file is part of libde265.
*
* libde265 is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the... | 8,523 |
938 | {
"parent": "item/generated",
"textures": {
"layer0": "tconstruct:block/foundry/glass"
}
} | 42 |
318 | <reponame>natpenguin/neo4j-ogm<filename>neo4j-ogm-tests/neo4j-ogm-integration-tests/src/test/java/org/neo4j/ogm/domain/gh809/package1/TestEntity.java<gh_stars>100-1000
package org.neo4j.ogm.domain.gh809.package1;
import org.neo4j.ogm.annotation.GeneratedValue;
import org.neo4j.ogm.annotation.Id;
/**
* @author <NAME>... | 187 |
3,853 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
def has_module(module):
try:
__import__(module)
return True
except ImportError:
pass
| 98 |
361 | <reponame>Wolf1098/oc2
package li.cil.oc2.common.serialization.serializers;
import com.google.gson.*;
import java.lang.reflect.Type;
public final class UnsignedByteArrayJsonSerializer implements JsonSerializer<byte[]> {
@Override
public JsonElement serialize(final byte[] src, final Type typeOfSrc, final Json... | 241 |
313 | <filename>YBL365/Class/Profile/Section3/StoreManage/StoreFollow/StoreFollower/ViewController/YBLStoreFollowViewController.h
//
// YBLStoreFollowViewController.h
// YC168
//
// Created by 乔同新 on 2017/6/20.
// Copyright © 2017年 乔同新. All rights reserved.
//
#import "YBLMainViewController.h"
#import "YBLStoreFollowVie... | 165 |
1,526 | <reponame>Hakunata/servicecomb-pack<filename>integration-tests/pack-tests/src/test/java/org/apache/servicecomb/pack/integration/tests/resttemplate/GreetingService.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* thi... | 843 |
363 | # -*- coding: utf-8 -*-
import hubblestack.utils.hashutils
# Import Salt Testing libs
from tests.support.unit import TestCase
class HashutilsTestCase(TestCase):
def test_get_hash_exception(self):
self.assertRaises(
ValueError, hubblestack.utils.hashutils.get_hash, "/tmp/foo/", form="INVALID"
... | 134 |
542 | <filename>tests/headers/allowlisted/file.hpp
void SomeFunction();
extern int someVar;
#define SOME_DEFUN 123
class someClass {
void somePrivateMethod();
public:
void somePublicMethod(int foo);
};
extern "C" void ExternFunction();
namespace foo {
void NamespacedFunction();
}
struct StructWithAllowlistedFwdDec... | 126 |
1,947 | #include <vector>
#include "baldr/accessrestriction.h"
#include "test.h"
using namespace std;
using namespace valhalla::baldr;
// Expected size is 16 bytes. We want to alert if somehow any change grows
// this structure size as that indicates incompatible tiles.
constexpr size_t kAccessRestrictionExpectedSize = 16;... | 185 |
853 | /*
20140303
<NAME>
Public domain.
*/
#include <unistd.h>
#include "run.h"
#include "fail.h"
#include "byte.h"
#include "packetparser.h"
/*
checks packetparser_uint8(), packetparser_uint32() function
and packetparser_end called more than once
*/
static void test1(void) {
unsigned char buf[4];
crypto_uint8 c... | 1,956 |
1,023 | #pragma once
#include <vector>
#include <windows.h>
class ChatControlMessageElement;
class ImageDecoder;
class Smileys;
class WhatsappMessage;
std::string formatAudio(WhatsappMessage& message);
class ChatControlMessage
{
private:
WhatsappMessage& message;
int width;
std::vector<ChatControlMessageElement *> eleme... | 243 |
605 | <gh_stars>100-1000
//===- StandardToLLVM.cpp - Standard to LLVM dialect conversion -----------===//
//
// 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-exception
//
//===--------... | 16,706 |
6,224 | <gh_stars>1000+
/*
* Copyright (c) 2019 <NAME>, LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* The time_civil_from_days function is derived directly from public
* domain content written by <NAME> and available at:
* http://howardhinnant.github.io/date_algorithms.html#civil_from_days
*/
#include <time.h>
... | 1,156 |
679 | <filename>main/wizards/com/sun/star/wizards/web/data/CGDocument.java
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
... | 6,445 |
2,316 | /*
* A Menubar implementation
* Nana C++ Library(http://www.nanapro.org)
* Copyright(C) 2009-2018 Jinhao(<EMAIL>)
*
* 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)
*
* @file: nana/gui/widgets/menubar.hpp
*... | 1,214 |
2,151 | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import logging
import re
import webapp2
from dashboard.api import api_auth
_ALLOWED_ORIGINS = [
'chromiumdash.appspot.com',
'chromiumd... | 878 |
852 | <reponame>ckamtsikis/cmssw
import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(100)
)
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring(
# TTbar RelVal 2.1.0
... | 1,119 |
381 | package com.tngtech.jgiven.android.example;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.action.ViewActions.click;
import static androidx.test.espresso.assertion.ViewAssertions.matches;
import static androidx.test.espresso.matcher.ViewMatchers.withId;
import static android... | 1,281 |
1,311 | <reponame>All8Up/JoltPhysics
// SPDX-FileCopyrightText: 2021 <NAME>
// SPDX-License-Identifier: MIT
#include <TestFramework.h>
#include <Tests/General/LoadSaveBinaryTest.h>
#include <Tests/General/LoadSaveSceneTest.h>
#include <Physics/PhysicsScene.h>
#include <Utils/Log.h>
#include <Core/StreamWrapper.h>
JPH_IMPLEM... | 531 |
1,117 | package com.pgmmers.radar.model;
import java.util.Date;
import javax.persistence.*;
@Table(name = "engine_data_lists")
public class DataListsPO {
/**
* 主键
*/
@Id
@Column(name = "ID")
@GeneratedValue(generator = "JDBC")
private Long id;
/**
* 列表名
*/
@Column(name = "NAME... | 1,839 |
327 | import threading, time
import numpy as np
import random
class a3c_learner(threading.Thread):
def __init__(self, parent, tid):
threading.Thread.__init__(self)
self.parent = parent
self.tid = tid
self.env = self.parent.env[tid]
self.config = {
"ep_max_t":1000,
... | 3,834 |
1,506 | #!/usr/bin/python
# coding: utf8
from __future__ import absolute_import
import logging
import json
from geocoder.osm import OsmResult, OsmQuery
from geocoder.keys import locationiq_key
class LocationIQResult(OsmResult):
pass
class LocationIQQuery(OsmQuery):
provider = 'locationiq'
method = 'geocode'
... | 444 |
777 | <gh_stars>100-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 "content/browser/background_sync/background_sync_context.h"
#include <utility>
#include "base/bind.h"
#include "base/memory/... | 1,007 |
525 | <reponame>erictaur/OpenROAD
// *****************************************************************************
// *****************************************************************************
// ATTENTION: THIS IS AN AUTO-GENERATED FILE. DO NOT CHANGE IT!
// ***************************************************************... | 1,033 |
2,151 | // 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.
#ifndef IOS_CHROME_BROWSER_UI_SETTINGS_REAUTHENTICATION_PROTOCOL_H_
#define IOS_CHROME_BROWSER_UI_SETTINGS_REAUTHENTICATION_PROTOCOL_H_
#import <Foundati... | 386 |
1,210 | /*
* Tencent is pleased to support the open source community by making GameAISDK available.
* This source code file is licensed under the GNU General Public License Version 3.
* For full details, please refer to the file "LICENSE.txt" which is provided as part of this source code package.
* Copyright (C) 2020... | 471 |
335 | {
"word": "Underemployed",
"definitions": [
"(of a person) not having enough paid work or not doing work that makes full use of their skills and abilities."
],
"parts-of-speech": "Adjective"
} | 79 |
321 | <filename>apis/api-core/api-core-common/src/main/java/org/hoteia/qalingo/core/web/mvc/viewbean/OrderPaymentViewBean.java
/**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENSE-2.0... | 1,414 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Haute-Vigneulles","circ":"7ème circonscription","dpt":"Moselle","inscrits":321,"abs":160,"votants":161,"blancs":7,"nuls":1,"exp":153,"res":[{"nuance":"REM","nom":"<NAME>","voix":90},{"nuance":"FN","nom":"<NAME>","voix":63}]} | 121 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-wgqf-h79v-9gc7",
"modified": "2022-01-11T00:02:13Z",
"published": "2021-12-25T00:00:29Z",
"aliases": [
"CVE-2021-20876"
],
"details": "Path traversal vulnerability in GroupSession Free edition ver5.1.1 and earlier, GroupSession byCloud ver5.1.1 and earlier, and... | 437 |
4,772 | <gh_stars>1000+
package example.repo;
import example.model.Customer507;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer507Repository extends CrudRepository<Customer507, Long> {
List<Customer507> findByLastName(String lastName);
}
| 91 |
12,252 | package org.keycloak.quarkus._private;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import io.quarkus.runtime.Quarkus;
/**
* <p>This main class should be used to start the server in dev mode for development purposes. By running this class,
* developers should be able to mimic any ser... | 424 |
3,083 | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 1,835 |
679 | /**************************************************************
*
* 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 y... | 4,389 |
635 | import unittest
import torch
import torch.nn as nn
import torch.nn.functional as F
from bagua.torch_api.algorithms.q_adam import QAdamOptimizer
from tests import skip_if_cuda_available
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.fc1 = nn.Linear(2, 10, bias=False)
... | 690 |
1,473 | <reponame>awesome-archive/recompiler<filename>dev/src/xenon_launcher/xenonGPUConstants.h
#pragma once
enum class XenonGPUEndianFormat : uint32
{
FormatUnspecified = 0,
Format8in16 = 1,
Format8in32 = 2,
Format16in32 = 3,
};
enum class XenonGPUEndianFormat128 : uint32
{
FormatUnspecified = 0,
Format8in16 = 1,
Fo... | 3,461 |
852 | #include <cppunit/extensions/HelperMacros.h>
#include <ext/alloc_traits.h>
#include <regex.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "DetectorDescription/Core/interface/Singleton.h"
#include "Detector... | 4,104 |
30,023 | {
"config": {
"error": {
"need_lower_upper": "Onder- en bovengrens kunnen niet beide leeg zijn"
},
"step": {
"user": {
"data": {
"entity_id": "Invoer sensor",
"hysteresis": "Hyseterise",
"lowe... | 1,011 |
2,023 | <reponame>tdiprima/code
import datetime
_FILETIME_null_date = datetime.datetime(1601, 1, 1, 0, 0, 0)
def FiletimeToDateTime(ft):
timestamp = ft.dwHighDateTime
timestamp <<= 32
timestamp |= ft.dwLowDateTime
return _FILETIME_null_date + datetime.timedelta(microseconds=timestamp/10)
| 118 |
435 | {
"description": "This talk introduces FreeDiscovery - an open-source Python software that\nprovides a REST API for information retrieval applications. Based on the\nscikit-learn machine learning library, its features include text\ncategorization, semantic search, hierarchical clustering and duplicates\ndetection.\n"... | 241 |
30,023 | <gh_stars>1000+
"""YoLink Lock."""
from __future__ import annotations
from typing import Any
from homeassistant.components.lock import LockEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.entity_platform import AddEntitiesCal... | 865 |
751 | <filename>src/vnet/dpo/drop_dpo.h
/*
* Copyright (c) 2016 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
... | 323 |
1,560 | #!/usr/bin/env python3
# encoding: utf-8
import os
import astunparse
import pprint
from exabgp.conf.yang import Parser
from exabgp.conf.yang import Code
class Generate(object):
intro = '# yang model structure and validation\n# autogenerate by exabgp\n\n'
variable = '{name} = {data}\n'
def __init__(sel... | 811 |
740 | #ifndef VG_IO_REGISTER_LOADER_SAVER_R_INDEX_HPP_INCLUDED
#define VG_IO_REGISTER_LOADER_SAVER_R_INDEX_HPP_INCLUDED
/**
* \file register_loader_saver_r_index.hpp
* Defines IO for an r-index from stream files.
*/
namespace vg {
namespace io {
using namespace std;
void register_loader_saver_r_index();
}
}
#endi... | 136 |
2,094 | <gh_stars>1000+
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: CachingStrategies.cpp (value)
// Authors: <NAME>, <NAME>
//
//////////////////////////////////////////////////////////////////////////////... | 81,410 |
310 | <filename>gear/software/d/deepbeliefsdk.json
{
"name": "DeepBeliefSDK",
"description": "An image recognition development framework.",
"url": "https://github.com/jetpacapp/DeepBeliefSDK"
} | 66 |
5,169 | <filename>Specs/c/3/8/WJWeakTimer/0.0.1/WJWeakTimer.podspec.json
{
"name": "WJWeakTimer",
"version": "0.0.1",
"license": "MIT",
"summary": "WJWeakTimer是一个避免循环引用的Timer组件.包含NSTimer、CGDTimer和CADisplayLink的封装",
"homepage": "https://github.com/ZengWeiJun/WJWeakTimer",
"source": {
"git": "https://github.com/Z... | 299 |
1,475 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | 1,948 |
571 | <reponame>ManiLikhdhari/camelinaction2<gh_stars>100-1000
package camelinaction;
/**
* A simple bean to print hello
*/
public class HelloBean {
public String hello(String name) {
System.out.println("Invoking HelloBean with " + name);
return "Hello " + name;
}
}
| 111 |
14,668 | <reponame>zealoussnow/chromium<gh_stars>1000+
// Copyright (c) 2011 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 MEDIA_FILTERS_IN_MEMORY_URL_PROTOCOL_H_
#define MEDIA_FILTERS_IN_MEMORY_URL_PROTOCOL_H_
#includ... | 502 |
806 | <gh_stars>100-1000
package org.apache.commons.io.filefilter;
import java.io.File;
import java.io.Serializable;
import java.util.List;
import org.apache.commons.io.IOCase;
public class PrefixFileFilter extends AbstractFileFilter implements Serializable {
private static final long serialVersionUID = 853389744080959... | 1,309 |
382 | <reponame>kevinvandenbreemen/SwiftJava
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// class javax.swing.JTable ///
package org.swiftjava.javax_swing;
@SuppressWarnings("JniMissingFunction")
public class JTableProxy extends javax.swing.JTable {
// address of proxy ob... | 1,486 |
615 | #include "LineFinder.h"
#include "LineSink.h"
#include "catch.hpp"
#include <string>
#include <vector>
namespace {
struct RecordingSink : LineSink {
std::vector<std::string> lines;
std::vector<size_t> fileOffsets;
bool onLine(size_t, size_t offset,
const char *line, size_t length) override ... | 2,040 |
6,278 | <filename>tests/test_distribution.py
import os
import json
import unittest
from unittest import mock
from pythonforandroid.bootstrap import Bootstrap
from pythonforandroid.distribution import Distribution
from pythonforandroid.recipe import Recipe
from pythonforandroid.util import BuildInterruptingException
from pytho... | 5,050 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Transp... | 2,604 |
2,219 | <filename>agent/php7/hook/data/mongo_connection_object.cc<gh_stars>1000+
/*
* Copyright 2017-2021 Baidu 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.o... | 3,114 |
625 | # --------------------------------------------------------------------------- #
# test_redis.py #
# #
# Copyright © 2015-2021, <NAME>, original author. #
# ... | 960 |
22,688 | <reponame>jzjonah/apollo
/******************************************************************************
* Copyright 2020 The Apollo 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 ... | 639 |
2,151 | <filename>third_party/angle/src/libANGLE/renderer/vulkan/vk_caps_utils.cpp<gh_stars>1000+
//
// Copyright 2018 The ANGLE 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.
//
// vk_utils:
// Helper functions for the Vulkan Cap... | 2,704 |
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.
#ifndef EXTENSIONS_BROWSER_API_FILE_HANDLERS_DIRECTORY_UTIL_H_
#define EXTENSIONS_BROWSER_API_FILE_HANDLERS_DIRECTORY_UTIL_H_
#include <memory>
#include ... | 574 |
751 | <gh_stars>100-1000
/*
* The MIT License (MIT)
*
* Copyright (c) 2017-2020 <NAME>
*
* 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 the... | 4,165 |
679 | /**************************************************************
*
* 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 y... | 1,049 |
584 | import unittest
import numpy as np
import torch
import torch_testing as tt
import gym
from all import nn
from all.core import StateArray
class TestNN(unittest.TestCase):
def setUp(self):
torch.manual_seed(2)
def test_dueling(self):
torch.random.manual_seed(0)
value_model = nn.Linear(2... | 1,835 |
393 | package scenario;
import org.awaitility.Awaitility;
import org.testng.annotations.Test;
import scenario.components.ConfirmClose;
import scenario.components.LogViewPanel;
import scenario.components.MainFrame;
import scenario.components.OpenPanel;
import scenario.testng.RetryAnalyzer;
import java.io.File;
import java.u... | 704 |
2,757 | /*++
Copyright (c) 2004, 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 at ... | 799 |
445 | /* Python interface to inferior breakpoint stop events.
Copyright (C) 2009-2019 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundatio... | 550 |
416 | #ifndef __SIMD_PACKED_HEADER__
#define __SIMD_PACKED_HEADER__
#include <simd/internal.h>
#if __has_attribute(__ext_vector_type__) && __has_attribute(__aligned__)
/* The function of this header fundamentally depends on the ext_vector_type
* and aligned attributes. There is no fallback if these attributes are not
*... | 1,670 |
348 | <gh_stars>100-1000
{"nom":"Senots","circ":"2ème circonscription","dpt":"Oise","inscrits":242,"abs":158,"votants":84,"blancs":3,"nuls":1,"exp":80,"res":[{"nuance":"REM","nom":"<NAME>","voix":49},{"nuance":"FN","nom":"<NAME>","voix":31}]} | 96 |
521 | /* $Id: symvers.h $ */
/** @file
* IPRT - Linux symver and compatibility definitions.
*/
/*
* Copyright (C) 2008-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modi... | 865 |
324 | <reponame>tormath1/jclouds<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 Lice... | 585 |
417 | /*******************************************************************************
* Copyright 2019 Intel Corporation
*
* 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, ... | 4,433 |
1,391 | <gh_stars>1000+
#include "lib9.h"
#include <bio.h>
#include <utf.h>
int
Bputrune(Biobuf *bp, long c)
{
Rune rune;
char str[UTFmax];
int n;
rune = c;
if(rune < Runeself) {
Bputc(bp, rune);
return 1;
}
n = runetochar(str, &rune);
if(n == 0)
return Bbad;
if(Bwrite(bp, str, n) != n)
return Beof;
return ... | 174 |
311 |
import numpy as np
from scipy.ndimage.morphology import distance_transform_edt
def mask_to_onehot(mask, num_classes):
"""
Converts a segmentation mask (H,W) to (K,H,W) where the last dim is a one
hot encoding vector
"""
_mask = [mask == (i + 1) for i in range(num_classes)]
return np.array(_m... | 849 |
1,443 | <filename>users/sonnywebdesign.json
{
"copyright": "SonnyWebDesign",
"url": "https://github.com/SonnyWebDesign",
"theme": "black-beauty"
}
| 56 |
4,303 | <reponame>OAID/Halide
#ifndef HALIDE_FUNCTION_PTR_H
#define HALIDE_FUNCTION_PTR_H
#include "IntrusivePtr.h"
namespace Halide {
namespace Internal {
/** Functions are allocated in groups for memory management. Each
* group has a ref count associated with it. All within-group
* references must be weak. If there are ... | 864 |
598 | //
// humblenet_socket.h
//
// Created by <NAME> on 3/9/16.
//
#ifndef HUMBLENET_SOCKET_H
#define HUMBLENET_SOCKET_H
#include "humblenet_p2p.h"
// TODO: Support transparent mode? -- use setsockopt to attach humblenet to a specific socket?
#if defined EMSCRIPTEN && !defined NO_NATIVE_SOCKETS
#define NO_NATIVE_SOC... | 2,875 |
1,131 | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 3,361 |
473 | /*
* Copyright (C) <NAME> <<EMAIL>>
*
* 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
* the rights to use, copy, modify, merge, publish... | 1,685 |
1,174 | <filename>pykafka/__init__.py
import logging
from .broker import Broker
from .simpleconsumer import SimpleConsumer
from .cluster import Cluster
from .partition import Partition
from .producer import Producer
from .topic import Topic
from .connection import SslConfig
from .client import KafkaClient
from .balancedconsum... | 267 |
2,564 | //
// Created by cain on 2018/9/8.
//
#ifndef CAINCAMERA_POINT_H
#define CAINCAMERA_POINT_H
class Point {
public:
Point();
Point(int x, int y);
virtual ~Point();
public:
int x;
int y;
};
#endif //CAINCAMERA_POINT_H
| 113 |
2,571 | <filename>python/jittor/dataset/voc.py
# ***************************************************************
# Copyright(c) 2019
# <NAME> <<EMAIL>>
# <NAME> <<EMAIL>>.
# All Rights Reserved.
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package... | 1,029 |
334 | # -*- coding: utf-8 -*-
# Copyright (c) 2017 Ericsson 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 obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 742 |
5,937 | <reponame>txlos/wpf<filename>src/Microsoft.DotNet.Wpf/src/WpfGfx/common/shared/pixelformatutils.cpp
// 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.
//+------------... | 13,023 |
14,668 | <filename>services/network/public/cpp/network_isolation_key_mojom_traits.h
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_NETWORK_PUBLIC_CPP_NETWORK_ISOLATION_KEY_MOJOM_TRAITS_H_
#defi... | 621 |
551 | /*
* Copyright (c) 2021 <NAME>
* Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING)
*
* Author: <NAME>
*/
#ifndef Images_hpp
#define Images_hpp
#include <JuceHeader.h>
class Images {
public:
static const char* server_png;
static const int server_pngSize;
static const ... | 226 |
2,611 | # Lint as: python3
# 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 ... | 2,167 |
1,336 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 406 |
9,156 | /**
* 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... | 512 |
5,460 | from .responses import OrganizationsResponse
url_bases = [r"https?://organizations\.(.+)\.amazonaws\.com"]
url_paths = {"{0}/$": OrganizationsResponse.dispatch}
| 52 |
590 | from app import create_app, db, cli
from app.models import (User, Article, Highlight, Topic, highlights_topics,
Tag, tags_articles, tags_highlights, Approved_Sender,
Task, Notification, Suggestion, Event, Comms, Message)
app = create_app()
cli.register(app)
@app.shell... | 327 |
679 | /**************************************************************
*
* 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 y... | 1,794 |
408 | import ctypes
import math
from rlbot.utils.structures import game_data_struct
from rlbot.utils.structures.game_data_struct import MAX_BOOSTS
from rlbot.utils.structures.start_match_structures import MAX_NAME_LENGTH, MAX_PLAYERS
UNREAL_ROT_PER_RADIAN = 32768 / math.pi
class Vector3(ctypes.Structure):
_fields_ = ... | 3,595 |
1,511 | <filename>tests/cluecode/data/ics/kernel-headers-original-linux/videodev2.h<gh_stars>1000+
/*
* Video for Linux Two header file
*
* Copyright (C) 1999-2007 the contributors
*
* This program is free software; you can redistribute it and/or modify
* Redistribution and use in source and binary forms, with or wit... | 441 |
388 | #include<stdio.h>
#include<obliv.h>
#include<bcrandom.h>
#include"../common/util.h"
#include"crossTabs.h"
double lap;
int main(int argc,char* argv[])
{
if(argc < 4){
fprintf(stderr, "Usage: %s <port> <--|localhost> <inputFile>\n", argv[0]);
return 2;
}
ProtocolDesc pd;
protocolIO io;
size_t N_C... | 745 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.