max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
310 | <reponame>dreeves/usesthis
{
"name": "UltraFine 5K",
"description": "A 27 inch monitor.",
"url": "https://www.apple.com/shop/product/HKN62LL/A/lg-ultrafine-5k-display"
}
| 76 |
1,056 | <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
* ... | 1,237 |
1,056 | <filename>platform/core.windows/test/unit/src/org/netbeans/core/windows/view/ui/toolbars/ConfigureToolbarPanelTest.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
* regarding c... | 1,528 |
640 | extern void set1(void);
extern void set2(void);
__addressmod set1 nspace1;
__addressmod set2 nspace2;
extern nspace1 int *nspace2 x;
nspace1 int *y;
void function() {
*x = 2;
}
void function2() {
*y = 2;
}
nspace2 int z = 2;
void func3() {
z = 2;
}
| 123 |
335 | <gh_stars>100-1000
{
"word": "Trick",
"definitions": [
"Intended or used to deceive or mystify, or to create an illusion.",
"Liable to fail; defective."
],
"parts-of-speech": "Adjective"
} | 94 |
1,168 | /**
* The MIT License
* Copyright © 2010 JmxTrans team
*
* 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, mo... | 733 |
637 | <filename>core/src/main/java/jenkins/util/AntWithFindResourceClassLoader.java
package jenkins.util;
import org.apache.tools.ant.Project;
import java.io.Closeable;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.net.URL;
import java.util.Collection;
import java.util.Enumera... | 727 |
6,036 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
using ApiAttributeVariant = std::variant<
const DML_TENSOR_DESC*,
const DML_OPERATOR_DESC*,
UINT,
UINT64,
INT,
FLOAT,
const UINT*,
const INT*,
const FLOAT*,
co... | 2,168 |
689 | """Loss function for the DRAEM model implementation."""
# Copyright (C) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from kornia.losses import FocalLoss, SSIMLoss
from torch import nn
class DraemLoss(nn.Module):
"""Overall loss function of the DRAEM model.
The total loss consists of the sum... | 419 |
1,338 | // NetAddress.h
#ifndef NET_FS_NET_ADDRESS_H
#define NET_FS_NET_ADDRESS_H
#ifdef HAIKU_TARGET_PLATFORM_BEOS
# include <socket.h>
#else
# include <netinet/in.h>
# include <sys/socket.h>
#endif
namespace BPrivate {
class HashString;
};
using BPrivate::HashString;
// NetAddress
class NetAddress {
public:
NetAd... | 614 |
369 | <gh_stars>100-1000
// Copyright (c) 2017-2021, Mudit<NAME>.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "QueryMultimediaFilesCount.hpp"
#include <string>
namespace db::multimedia_files::query
{
GetCount::GetCount() : Query(Query::Type::Read)
{}
... | 619 |
1,192 | // RUN: %clang_cc1 -std=c++11 -fsyntax-only -Wno-nullability-declspec %s -verify
#if __has_feature(nullability)
#else
# error nullability feature should be defined
#endif
typedef decltype(nullptr) nullptr_t;
class X {
};
// Nullability applies to all pointer types.
typedef int (X::* _Nonnull member_function_type_1... | 1,171 |
2,151 | <filename>contracts/libc++/upstream/test/std/experimental/string.view/string.view.io/stream_insert.pass.cpp
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Ill... | 673 |
334 | <gh_stars>100-1000
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation ... | 1,671 |
2,151 | <reponame>zipated/src
/**
* Copyright (C) 2014 The Android Open Source Project
*
* 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
*
*... | 6,353 |
5,169 | <gh_stars>1000+
{
"name": "YouboraConfigUtils",
"version": "1.0.0",
"summary": "Set and get all available options to be sent to the back-end",
"description": "The framework contains a ViewController to be inserted in a container. With this view controller, you can set all the properties available\nto be sent to... | 386 |
1,068 | package com.forezp.banya.base;
import android.content.Context;
/**
* 公共View接口
*
* @author Ht
*/
public interface IBaseView {
/**
* 显示可取消的进度条
*
* @param message 要显示的信息
*/
void showProgress(String message);
/**
* 显示可取消的无文字进度条
*/
void showProgres... | 506 |
2,134 | <reponame>henricbjork2liu/binderhub
"""Exercise the binderhub entrypoint"""
from subprocess import check_output
import sys
import pytest
from traitlets import TraitError
from binderhub.app import BinderHub
from binderhub.repoproviders import (RepoProvider, GitLabRepoProvider, GitHubRepoProvider)
def test_help():
... | 424 |
568 | """
My module
=========
Provides
1. An array object of arbitrary homogeneous items
2. Fast mathematical operations over arrays
3. Linear Algebra, Fourier Transforms, Random Number Generation
How to use the documentation
----------------------------
Documentation is available in two forms: docstrings provided
... | 341 |
12,278 | <gh_stars>1000+
// (C) Copyright <NAME> 2001.
// Use, modification and distribution are subject to 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)
// See http://www.boost.org/libs/config for most recent version.
// MACRO: ... | 473 |
4,036 | <reponame>vadi2/codeql
class Super {
synchronized void quack() {
System.out.println("Quack.");
}
synchronized Super self() {
return this;
}
synchronized void foo() {}
void bar() {}
}
class Sub extends Super {
// NOT OK
void quack() {
super.quack();
super.quack();
}
// OK
Sub self() {
return ... | 234 |
1,104 | //
// Created by 庾金科 on 16/10/2017.
//
#ifndef SWIFTPR_PLATESEGMENTATION_H
#define SWIFTPR_PLATESEGMENTATION_H
#include "opencv2/opencv.hpp"
#include "opencv2/dnn.hpp"
#include "PlateInfo.h"
namespace pr{
class PlateSegmentation{
public:
const int PLATE_NORMAL = 6;
const int PLATE_NORMAL_GR... | 504 |
552 | <reponame>asheraryam/ETEngine<filename>Projects/Demo/source/Common/SpawnComponent.cpp<gh_stars>100-1000
#include "stdafx.h"
#include "SpawnComponent.h"
#include <EtCore/Reflection/Registration.h>
#include <EtCore/Content/ResourceManager.h>
#include <EtRendering/GraphicsTypes/Mesh.h>
#include <EtRendering/MaterialSyst... | 872 |
852 | <filename>RecoMET/METProducers/python/HcalHaloData_cfi.py
import FWCore.ParameterSet.Config as cms
# File: HcalHaloData_cfi.py
# Original Author: <NAME>, The University of Florida
# Description: Module to build HcalHaloData Object and put into the event
# Date: Oct. 15, 2009
HcalHaloData = cms.EDProducer("HcalHaloData... | 809 |
488 | #ifndef BASTMODEL_H
#define BASTMODEL_H
#include "ItemTreeModel.h"
class SgNode;
class AstFilterInterface;
/**
* \brief The Qt-Model representing a beautified AST
*/
class BAstModel : public ItemTreeModel
{
Q_OBJECT
public:
BAstModel(QObject * parent);
virtual ~BAstModel();
void s... | 262 |
412 | /*******************************************************************\
Module:
Author: <NAME>, <EMAIL>
\*******************************************************************/
#include "java_class_loader.h"
#include <stack>
#include <util/message.h>
#include <util/suffix.h>
#include "java_class_loader_limit.h"
java... | 3,093 |
1,664 | <reponame>likenamehaojie/Apache-Ambari-ZH<filename>ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractJDBCResourceProvider.java<gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
... | 1,806 |
980 | <filename>src/main/java/org/jcodec/codecs/png/PNGConsts.java<gh_stars>100-1000
package org.jcodec.codecs.png;
public class PNGConsts {
static final long PNGSIG = 0x89504e470d0a1a0aL;
static final int PNGSIGhi = 0x89504e47;
static final int MNGSIGhi = 0x8a4d4e47;
static final int PNGSIGlo = 0x0d0a1a0a;
... | 270 |
852 | <filename>SimDataFormats/GeneratorProducts/src/GenFilterInfo.cc
#include <iostream>
#include <algorithm>
#include <utility>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "SimDataFormats/GeneratorProducts/interface/GenFilterInfo.h"
using namespace edm;
using namespace std;
GenFilterInfo::GenFilt... | 2,062 |
441 | //
// Copyright (c) 2017-2020 the rbfx project.
//
// 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, mer... | 865 |
1,397 | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import SimpleITK as sitk
import tensorflow as tf
import os
import numpy as np
from dltk.io.augmentation import add_gaussian_noise, extract_random_example_array
from dltk... | 1,246 |
2,996 | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.core.modes.loadProcesses;
import org.terasology.engine.context.Context;
import org.terasology.engine.core.ComponentSystemManager;
import org.terasology.engine.core.modes.SingleStepLoadProcess;
import org.t... | 493 |
3,579 | package com.querydsl.apt.domain;
import static org.junit.Assert.assertNotNull;
import java.math.BigDecimal;
import org.joda.money.QMoney;
import org.junit.Test;
import com.querydsl.core.types.dsl.NumberExpression;
public class JodaMoneyTest {
@Test
public void test() {
NumberExpression<BigDecimal>... | 151 |
521 | <filename>src/elle/python/containers.hh<gh_stars>100-1000
#ifndef ELLE_PYTHON_CONTAINERS_HH
# define ELLE_PYTHON_CONTAINERS_HH
namespace elle
{
namespace python
{
/** Register conversion from python list to a container C that supports
* push_back.
*/
template<typename C>
void
container_from... | 231 |
452 | <gh_stars>100-1000
"""Run "python setup.py install" to install scandir."""
try:
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext as base_build_ext
except ImportError:
import warnings
import sys
val = sys.exc_info()[1]
warnings.warn("import of setuptool... | 1,011 |
2,151 | <reponame>MauroArgentino/RSXGL
/**************************************************************************
*
* Copyright 2009, VMware, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Softwar... | 3,175 |
5,169 | {
"name": "TESTSDK0818",
"version": "0.0.1",
"summary": "这是一个测试库",
"description": "此版本SDK说明文字,自己根据实际书写",
"homepage": "https://github.com/goattester/TESTSDK",
"authors": {
"linsheng": "<EMAIL>"
},
"source": {
"git": "https://github.com/goattester/TESTSDK.git",
"tag": "0.0.1"
},
"source_fi... | 248 |
1,374 | package def.dom;
public class SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {
public double x;
public double x1;
public double y;
public double y1;
public static SVGPathSegCurvetoQuadraticRel prototype;
public SVGPathSegCurvetoQuadraticRel(){}
}
| 95 |
2,260 | // Autogenerated by gameplay-luagen
#include "Base.h"
#include "ScriptController.h"
#include "lua_PhysicsCollisionObject.h"
#include "Base.h"
#include "Game.h"
#include "Node.h"
#include "PhysicsCharacter.h"
#include "PhysicsCollisionObject.h"
#include "PhysicsController.h"
#include "PhysicsGhostObject.h"
#include "Phy... | 12,923 |
897 | <reponame>zhcet19/NeoAlgo-1
def kadane(arr, start, finish, n):
Sum = 0
maxSum = -999999999999
i = None
finish[0] = -1
local_start = 0
for i in range(n):
Sum += arr[i]
if Sum < 0:
Sum = 0
local_start = i + 1
elif Sum > ... | 1,531 |
2,743 | <reponame>eshbeata/open-paperless
from __future__ import absolute_import, unicode_literals
from django.conf import settings
from django.core import mail
from django.test import override_settings
from django.urls import reverse
from common.tests import BaseTestCase
from smart_settings.classes import Namespace
from use... | 3,559 |
424 | <gh_stars>100-1000
package com.twitter.elephantbird.mapreduce.input;
import com.twitter.elephantbird.mapreduce.io.ThriftBlockReader;
import com.twitter.elephantbird.mapreduce.io.ThriftWritable;
import com.twitter.elephantbird.util.TypeRef;
import org.apache.thrift.TBase;
import org.slf4j.Logger;
import org.slf4j.Logg... | 339 |
4,071 | # Copyright 2018 Alibaba Group. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 1,752 |
803 | import cmd
import sys
from websploit.modules import all_modules, module_list
from websploit.core.utils import CPrint
completions = [
'target',
'ip',
'gateway',
'mac',
'iface',
'gateway_mac',
'target_mac'
]
class Module(cmd.Cmd):
parameters = {}
cp = CPrint()
def do_execute(se... | 803 |
4,253 | package com.mashibing.arica.controller;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import c... | 547 |
852 | #include "CondFormats/SiPixelObjects/interface/SiPixelFedCablingTree.h"
#include <algorithm>
#include <sstream>
#include <iostream>
using namespace std;
using namespace sipixelobjects;
typedef std::unordered_map<int, SiPixelFedCablingTree::PixelFEDCabling>::const_iterator IMAP;
std::vector<sipixelobjects::CablingPat... | 2,379 |
1,346 | <reponame>duruyi/dal
package com.ctrip.framework.dal.cluster.client;
import com.ctrip.framework.dal.cluster.client.cluster.DefaultClusterTest;
import com.ctrip.framework.dal.cluster.client.cluster.DefaultLocalConfigProviderTest;
import com.ctrip.framework.dal.cluster.client.util.CaseInsensitivePropertiesTest;
import c... | 280 |
1,471 | <reponame>ethereum/vyper
from math import ceil
from vyper.codegen.core import bytes_data_ptr, ensure_in_memory, get_bytearray_length
from vyper.codegen.ir_node import IRnode
from vyper.codegen.types import BaseType, ByteArrayLike, is_base_type
from vyper.exceptions import CompilerPanic
from vyper.utils import SHA3_BAS... | 848 |
3,631 | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1,781 |
2,321 | package com.provectus.kafka.ui.service;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import reactor.core.publisher.Flux;
import reactor.core.scheduler.Schedulers;
@Component
@Requir... | 389 |
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... | 1,150 |
468 | #define GLI_INCLUDE_ATI_FRAGMENT_SHADER
enum Main {
GL_FRAGMENT_SHADER_ATI = 0x8920,
GL_REG_0_ATI = 0x8921,
GL_REG_1_ATI = 0x8922,
GL_REG_2_ATI = 0x8923,
GL_REG_3_ATI = 0x8924,
GL_... | 5,777 |
692 | /*
Copyright (C) 2002-2006 Quantum ESPRESSO group
This file is distributed under the terms of the
GNU General Public License. See the file `License'
in the root directory of the present distribution,
or http://www.gnu.org/copyleft/gpl.txt .
*/
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.... | 351 |
4,812 | #undef DEF
#include "header.h"
static int foo() {
return 0;
}
int main() {
f1();
long *x;
f2(&x);
double *y;
f2(&y);
f3();
return foo();
}
| 76 |
764 | {"symbol": "MIB","address": "0x146D8D942048ad517479C9bab1788712Af180Fde","overview":{"en": ""},"email": "<EMAIL>","website": "https://www.mibcoin.io/","state": "NORMAL","links": {"blog": "","twitter": "https://twitter.com/mibcoin","telegram": "https://t.me/joinchat/DNeZgA-RivbU3EOQfl-wIQ","github": ""}} | 126 |
669 | import onnx
from onnx import OperatorSetIdProto, TensorProto, helper
onnxdomain = OperatorSetIdProto()
onnxdomain.version = 12
# The empty string ("") or absence of this field implies the operator set that is defined as part of the ONNX specification.
onnxdomain.domain = ""
msdomain = OperatorSetIdProto()
msdomain.ver... | 5,248 |
401 | <filename>anchore/anchore_auth.py
import os
import json
import requests
import base64
import urllib
import logging
_logger = logging.getLogger(__name__)
def anchore_auth_init(username, password, auth_file, client_info_url, token_url, conn_timeout, max_retries):
if not username or not password or not auth_file or... | 4,688 |
335 | {
"word": "Insight",
"definitions": [
"The capacity to gain an accurate and deep understanding of someone or something.",
"An accurate and deep understanding.",
"Awareness by a mentally ill person that their mental experiences are not based in external reality."
],
"parts-of-spee... | 109 |
621 | <reponame>Ashraf-Ali-aa/carina<filename>carina-utils/src/main/java/com/qaprosoft/carina/core/foundation/utils/StringGenerator.java
/*******************************************************************************
* Copyright 2013-2020 QaProSoft (http://www.qaprosoft.com).
*
* Licensed under the Apache License, Versio... | 1,165 |
608 | package com.google.android.stardroid;
import android.accounts.AccountManager;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.AssetManager;
import android.content.res.Resources;
import android.hardware.SensorManager;
import android.location.LocationManager;
import a... | 1,552 |
686 | <reponame>mirkobrombin/wine<filename>libs/port/poll.c
/*
* poll function
*
* Copyright 2008 <NAME>
*
* This library 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 Free Software Foundation; either
* version 2.1 of the Li... | 1,299 |
1,444 | <filename>Mage/src/main/java/mage/abilities/condition/common/TransformedCondition.java
package mage.abilities.condition.common;
import mage.abilities.Ability;
import mage.abilities.condition.Condition;
import mage.game.Game;
import mage.game.permanent.Permanent;
/**
*
* @author noxx
*/
public class TransformedCo... | 430 |
9,182 | /*
* ActiveLoggerImplTester.cpp
*
* Created on: Mar 18, 2015
* Author: tcanham
*/
#include <Svc/ActiveLogger/test/ut/ActiveLoggerImplTester.hpp>
#include <Fw/Com/ComBuffer.hpp>
#include <Fw/Com/ComPacket.hpp>
#include <Os/IntervalTimer.hpp>
#include <gtest/gtest.h>
#include <Fw/Test/UnitTest.hpp>
#include <... | 11,640 |
2,151 | # Copyright (c) 2014 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style licence that can be
# found in the LICENSE file.
{
'variables': {
'custom_ar_target%': '',
'custom_ar_host%': '',
},
'conditions': [
['"<(custom_ar_target)"!=""', {
'make_global_settings':... | 303 |
412 | <gh_stars>100-1000
/*
* Datart
* <p>
* Copyright 2021
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required... | 946 |
19,127 | <filename>providers/implementations/ciphers/cipher_aes_ccm_hw.c
/*
* Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in t... | 1,077 |
2,360 | <filename>var/spack/repos/builtin/packages/py-pymsgbox/package.py
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyPymsgbox(PythonPackage):
... | 254 |
1,473 | ///////////////////////////////////////////////////////////////////////////////
// Name: wx/msw/stdpaths.h
// Purpose: wxStandardPaths for Win32
// Author: <NAME>
// Modified by:
// Created: 2004-10-19
// Copyright: (c) 2004 <NAME> <<EMAIL>>
// Licence: wxWindows licence
//////////////////////... | 1,137 |
1,077 | <gh_stars>1000+
/**
* @file XPT2046.h
*
*/
#ifndef XPT2046_H
#define XPT2046_H
#define USE_XPT2046 1
#define XPT2046_HOR_RES 320
#define XPT2046_VER_RES 240
#define XPT2046_X_MIN 200
#define XPT2046_Y_MIN 200
#define XPT2046_X_MAX 3800
#define XPT2046_Y_MAX 3800
#define XPT2046_AVG 4
#define XPT2046_INV 0
#defin... | 839 |
504 | /* operator.h handle all numeric Javascript operators such as +, *, etc.
*/
/* (c) COPYRIGHT 1993-98 NOMBAS, INC.
* 64 SALEM ST.
* MEDFORD, MA 02155 USA
*
* ALL RIGHTS RESERVED
*
* This software is the property of Nombas, Inc. ... | 1,317 |
963 |
package cn.enilu.flash.dao.system;
import cn.enilu.flash.bean.entity.system.TaskLog;
import cn.enilu.flash.dao.BaseRepository;
public interface TaskLogRepository extends BaseRepository<TaskLog,Long> {
}
| 79 |
348 | <filename>docs/data/leg-t2/029/02904239.json
{"nom":"Roscoff","circ":"4ème circonscription","dpt":"Finistère","inscrits":2878,"abs":1187,"votants":1691,"blancs":75,"nuls":32,"exp":1584,"res":[{"nuance":"LR","nom":"<NAME>","voix":959},{"nuance":"REM","nom":"<NAME>","voix":625}]} | 114 |
1,909 | package org.knowm.xchange.deribit.v2.dto.trade;
public enum OrderState {
open,
filled,
rejected,
cancelled,
untriggered,
archive;
}
| 57 |
2,389 | <gh_stars>1000+
/*
Copyright 2020 The Kubernetes 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 agreed to in ... | 411 |
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 TOOLS_CLANG_PLUGINS_TESTS_BASE_MEMORY_RAW_PTR_H_
#define TOOLS_CLANG_PLUGINS_TESTS_BASE_MEMORY_RAW_PTR_H_
namespace base {
template <typename T>... | 181 |
1,068 | #include "falconn/core/heap.h"
#include <vector>
#include "gtest/gtest.h"
namespace fc = falconn::core;
using fc::AugmentedHeap;
using fc::SimpleHeap;
using std::vector;
TEST(HeapTest, SimpleHeapTest1) {
SimpleHeap<float, int> h;
h.resize(10);
h.insert_unsorted(2.0, 2);
h.insert_unsorted(1.0, 1);
h.inser... | 1,805 |
847 | <reponame>lumetdev/iOS-native-Meteor
// Copyright (c) 2014-2015 <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 rights
// to... | 948 |
335 | /*
* ColourEdit.h
* ------------
* Purpose: Implementation of a coloured edit UI item.
* Notes : (currently none)
* Authors: OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#pragma once
#include "openmpt/all/BuildSettings.hpp"
OPENMPT_NAMESPACE_BEG... | 254 |
717 | {
"name": "vuex-i18n-build",
"version": "1.1.0",
"license": "MIT",
"description": "Build directory for vuex-i18n",
"scripts": {
"build": "node ./build.js",
"rollup": "rollup -c rollup.config.js",
"minify": "uglifyjs ../dist/vuex-i18n.umd.js --output ../dist/vuex-i18n.min.js --compress"
},
"author": {
"na... | 340 |
826 | /***************************************************************************
* Copyright 1998-2020 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
* ... | 1,692 |
692 | <gh_stars>100-1000
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* All rights reserved. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | 456 |
6,210 | /*
* 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,322 |
343 | {
"homepage": "https://github.com/AutoDarkMode/Windows-Auto-Night-Mode",
"description": "Automatically switches between the dark and light theme of Windows 10 and Windows 11",
"version": "10.1.0.10",
"license": "GPL-3.0-only",
"url": "https://github.com/AutoDarkMode/Windows-Auto-Night-Mode/rele... | 448 |
410 | <reponame>bkrrr/Giveme5W
{
"dId": "3a01b8dc9bf6e345bf2ddfc0fb88a4660542d7e107f4ab4f138fd0b1",
"title": "US to probe airline travel chaos",
"text": "The US government is to investigate two airlines- US Airways and Delta Air Lines' Comair subsidiary - after travel chaos over the Christmas weekend.\n\nStaff calling ... | 747 |
365 | #!/usr/bin/env python
# A process which emits a process communications event on its stdout,
# and subsequently waits for a line to be sent back to its stdin by
# loop_listener.py.
import sys
import time
from supervisor import childutils
def main(max):
start = time.time()
report = open('/tmp/report', 'w')
... | 360 |
852 | <reponame>ckamtsikis/cmssw<filename>SimG4Core/Geometry/interface/DDG4DispContainer.h<gh_stars>100-1000
#ifndef SimG4Core_DDG4DispContainer_H
#define SimG4Core_DDG4DispContainer_H
#include "SimG4Core/Geometry/interface/DDG4Dispatchable.h"
#include <vector>
using DDG4DispContainer = std::vector<DDG4Dispatchable *>;
#... | 134 |
471 | <reponame>Zhongren233/forest
package com.dtflys.test.http.retry;
import com.dtflys.forest.backend.HttpBackend;
import com.dtflys.forest.config.ForestConfiguration;
import com.dtflys.forest.exceptions.ForestRuntimeException;
import com.dtflys.forest.http.ForestRequest;
import com.dtflys.test.http.BaseClientTest;
import... | 1,979 |
1,771 | <gh_stars>1000+
'''
This module implements the b-bit MinHash.
http://research.microsoft.com/pubs/120078/wfc0398-liPS.pdf
b-bit MinHash reduces storage space by storing only the b lowest bits
of each minimum hashed value, without significant loss of accuracy.
'''
import struct
import numpy as np
class bBitMinHash(obj... | 3,205 |
7,399 | <reponame>zqdely/redis
/*
* Copyright (c), Microsoft Open Technologies, 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 ... | 1,018 |
554 | <filename>tests/api/test___init__.py
import json
import os
import pytest
from atm.api import create_app
from atm.core import ATM
from atm.database import Database
DB_PATH = '/tmp/atm.db'
DB_CACHE_PATH = os.path.join(os.path.join(os.path.dirname(__file__), os.pardir), 'modelhub')
@pytest.fixture
def db():
if os... | 989 |
6,992 | /*
* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 688 |
2,571 | // ***************************************************************
// Copyright (c) 2021 Jittor.
// All Rights Reserved.
// Maintainers: <NAME> <<EMAIL>>.
//
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
// **************************... | 2,061 |
2,693 | <reponame>Chillee/benchmark<gh_stars>1000+
from fastNLP.io.dataset_loader import ZhConllPOSReader
def cut_long_sentence(sent, max_sample_length=200):
sent_no_space = sent.replace(' ', '')
cutted_sentence = []
if len(sent_no_space) > max_sample_length:
parts = sent.strip().split()
new_line ... | 442 |
314 | """
Unit testing for particular segmentation module
Copyright (C) 2014-2018 <NAME> <<EMAIL>>
"""
import logging
import os
import sys
import unittest
import numpy as np
import pandas as pd
sys.path.append(os.path.abspath(os.path.join('..', '..'))) # Add path to root
from imsegm.graph_cuts import (
compute_pairw... | 767 |
573 | // Copyright 2015, VIXL authors
// 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 conditions ... | 116,487 |
369 | /*
* Copyright © 2019 <NAME>, 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 i... | 2,221 |
2,338 | //===----- RISCVMergeBaseOffset.cpp - Optimise address calculations ------===//
//
// 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
//
//===---------------------------... | 4,963 |
5,169 | <reponame>Gantios/Specs
{
"name": "scrypt-cryptoswift",
"version": "1.2",
"summary": "Scrypt implementation in vanilla Swift for iOS ans macOS",
"description": "Scrypt implementation in vanilla Swift, intended for use together with a Cryptoswift pod",
"homepage": "https://github.com/shamatar/scrypt-cryptoswif... | 426 |
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.
import json
from telemetry.page import legacy_page_test
from telemetry.value import histogram_util
from telemetry.value import scalar
fro... | 692 |
1,100 | /*********************************************************************************
* (Generic Heap using Comparator) Revise Heap in Listing 23.9, using a generic *
* parameter and a Comparator for comparing objects. Define a new constructor *
* with a Comparator as its argument as follows: ... | 530 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.