max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
348 | {"nom":"Clairefontaine-en-Yvelines","dpt":"Yvelines","inscrits":630,"abs":114,"votants":516,"blancs":43,"nuls":15,"exp":458,"res":[{"panneau":"1","voix":336},{"panneau":"2","voix":122}]} | 75 |
348 | {"nom":"Neuville-en-Verdunois","circ":"1ère circonscription","dpt":"Meuse","inscrits":57,"abs":34,"votants":23,"blancs":1,"nuls":0,"exp":22,"res":[{"nuance":"UDI","nom":"<NAME>","voix":12},{"nuance":"REM","nom":"<NAME>","voix":10}]} | 95 |
1,091 | <filename>core/api/src/main/java/org/onosproject/net/behaviour/DefaultBridgeDescription.java
/*
* Copyright 2015-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the L... | 3,050 |
457 | <filename>opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SwaggerConfig.java
/**
* Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
* <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... | 2,280 |
651 | /**
* This file is mostly a copy of nanopb/examples/network_server/common.h
*/
#include <pb_decode.h>
#include <pb_encode.h>
#include <sys/socket.h>
#include <sys/types.h>
#include "nanopb_stream.h"
static bool write_callback(pb_ostream_t *stream, const uint8_t *buf,
size_t count) {
in... | 447 |
2,338 | //===-- sanitizer_type_traits_test.cpp ------------------------------------===//
//
// 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
//
//===---------------------------... | 421 |
5,305 | import java.util.Arrays;
public class JavaExporter_1 {
public static String varargExample(String... args) {
return Arrays.toString(args);
}
}
| 51 |
1,800 | void LogSetOutputFunction(void *data);
| 11 |
361 | #include "file.h"
#ifdef BUILTIN_ELF
#include <sys/types.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <errno.h>
#include "readelf.h"
#ifndef lint
FILE_RCSID("@(#)$Id: readelf.c,v 1.1.1.1 2001/10/16 18:05:31 provos Exp $")
#e... | 5,823 |
1,577 | <reponame>Kua-Fu/rally
# Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); y... | 3,222 |
575 | // 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.
#include "chrome/browser/media/history/media_history_playback_table.h"
#include "base/strings/stringprintf.h"
#include "base/updateable_sequenced_task_ru... | 2,217 |
633 | <reponame>michael-geng/itranswarp<gh_stars>100-1000
package com.itranswarp.web.view;
import java.util.List;
import com.mitchellbosecke.pebble.extension.Filter;
public abstract class AbstractFilter implements Filter {
public abstract String getName();
@Override
public List<String> getArgumentNames() {
return n... | 114 |
314 | <filename>ch08-supervised/decision_tree/decision_tree_logit.py<gh_stars>100-1000
# -*- coding: UTF-8 -*-
"""
此脚本用于展示决策树联结逻辑回归模型
"""
import sys
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.datasets import make_classification
from sklearn.linear_model import LogisticRegression
fr... | 1,792 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-55g3-v56r-3g2g",
"modified": "2022-05-02T00:07:06Z",
"published": "2022-05-02T00:07:06Z",
"aliases": [
"CVE-2008-4114"
],
"details": "srv.sys in the Server service in Microsoft Windows 2000 SP4, XP SP2 and SP3, S... | 1,129 |
1,331 | <reponame>fergonaut/metasploit-payloads<filename>c/meterpreter/source/extensions/priv/precomp.h
#ifndef METERPRETER_SOURCE_EXTENSION_PRIV_SERVER_PRECOMP_H
#define METERPRETER_SOURCE_EXTENSION_PRIV_SERVER_PRECOMP_H
#define _WIN32_WINNT 0x0400
#include "priv.h"
#include "elevate.h"
#include "passwd.h"
#include "fs.h"
... | 239 |
769 | <gh_stars>100-1000
// Copyright by Contributors
#include <xgboost/metric.h>
#include "../helpers.h"
TEST(Metric, RMSE) {
xgboost::Metric * metric = xgboost::Metric::Create("rmse");
ASSERT_STREQ(metric->Name(), "rmse");
EXPECT_NEAR(GetMetricEval(metric, {0, 1}, {0, 1}), 0, 1e-10);
EXPECT_NEAR(GetMetricEval(met... | 1,483 |
480 | <reponame>weicao/galaxysql
/*
* Copyright [2013-2021], Alibaba Group Holding 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
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 40,738 |
14,668 | <gh_stars>1000+
// 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.
#include "ash/wm/desks/templates/desks_templates_icon_container.h"
#include "ash/public/cpp/desk_template.h"
#include "ash/public/cpp/des... | 4,027 |
849 | package milkman.plugin.grpc.processor;
import com.google.protobuf.DescriptorProtos.*;
import com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type;
import com.google.protobuf.Descriptors.FieldDescriptor;
import lombok.Value;
import java.util.LinkedList;
import java.util.List;
import java.util.Map.Entry;
pub... | 1,519 |
348 | <filename>docs/data/leg-t2/047/04702114.json<gh_stars>100-1000
{"nom":"Grézet-Cavagnan","circ":"2ème circonscription","dpt":"Lot-et-Garonne","inscrits":305,"abs":139,"votants":166,"blancs":18,"nuls":0,"exp":148,"res":[{"nuance":"REM","nom":"<NAME>","voix":90},{"nuance":"FN","nom":"<NAME>","voix":58}]} | 127 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 997 |
2,151 | <reponame>zipated/src<gh_stars>1000+
// 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.
#include "headless/public/util/virtual_time_controller.h"
#include "base/auto_reset.h"
#include "base/bind.h"
#inclu... | 2,985 |
32,544 | <filename>spring-boot-modules/spring-boot-libraries/src/main/java/com/baeldung/barcodes/SpringBootApp.java<gh_stars>1000+
package com.baeldung.barcodes;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.... | 271 |
41,267 | import sys
import scrapy
from scrapy.crawler import CrawlerProcess
class CachingHostnameResolverSpider(scrapy.Spider):
"""
Finishes in a finite amount of time (does not hang indefinitely in the DNS resolution)
"""
name = "caching_hostname_resolver_spider"
def start_requests(self):
yield ... | 328 |
889 | <reponame>limberc/HyperGAN
import argparse
import os
import uuid
import tensorflow as tf
import hypergan as hg
import hyperchamber as hc
import numpy as np
from hypergan.generators import *
from hypergan.viewer import GlobalViewer
from common import *
from hypergan.search.random_search import RandomSearch
from hyperga... | 1,531 |
3,428 | {"id":"00019","group":"spam-1","checksum":{"type":"MD5","value":"bbc97ad616ffd06e93ce0f821ca8c381"},"text":"From <EMAIL> Fri Aug 23 11:03:37 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: zzzz@localhost.spamassassin.taint.org\nReceived: from localhost (localhost [1192.168.3.11])\n\tby phobos.labs.spamassassin.taint.org (... | 611 |
521 | <reponame>braymar/afl<filename>qemu_mode/qemu-2.10.0/roms/ipxe/src/arch/x86/include/bits/linux_api_platform.h<gh_stars>100-1000
#ifndef _LINUX_API_PLATFORM_H
#define _LINUX_API_PLATFORM_H
extern int linux_errno;
#endif /* _LINUX_API_PLATFORM_H */
| 120 |
4,071 | /*
* \file matmul_op.h
* \brief The matmul operation
*/
#pragma once
#include <vector>
#include "blaze/operator/operator.h"
#include "blaze/common/exception.h"
#include "blaze/common/types.h"
#include "blaze/math/broadcast.h"
#include "blaze/math/gemm.h"
#include "blaze/math/vml.h"
namespace blaze {
template <... | 2,690 |
903 | /*
* 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 ... | 579 |
335 | {
"word": "Leprosarium",
"definitions": [
"A hospital for people with leprosy."
],
"parts-of-speech": "Noun"
} | 63 |
3,370 | (module.exports = {
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true,
"jsx": true
}
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "react", "react-hooks"],
"extends": [
"eslint:recommended",
... | 2,288 |
1,343 | #ifndef ANIME4KCPP_GUI_COMMUNICATOR_H
#define ANIME4KCPP_GUI_COMMUNICATOR_H
#include <QObject>
class Communicator : public QObject
{
Q_OBJECT
public:
explicit Communicator(QObject* parent = nullptr);
signals:
void setError(int row);
void showError(QString msg);
void done(int row, double pro, quin... | 200 |
10,225 | <reponame>PieterjanDeconinck/quarkus
package io.quarkus.it.jpa.h2;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public abstract class Customer {
@Id
@GeneratedValue
private Integer id;
String externalcode;
}
| 113 |
574 | <gh_stars>100-1000
import os
import unittest
import netCDF4
CURRENT_DIR = os.path.dirname(os.path.realpath(__file__))
class TestOpenMem(unittest.TestCase):
def test_mem_open(self):
fpath = os.path.join(CURRENT_DIR, "netcdf_dummy_file.nc")
with open(fpath, 'rb') as f:
nc_bytes = f.rea... | 532 |
17,702 | <gh_stars>1000+
import pytest
import numpy as np
from cntk.contrib import crosstalk as cstk
import tempfile
workdir = tempfile.gettempdir()
shape1 = (100, 200,)
shape2 = (10, 20,)
param1 = np.random.random(shape1).astype(np.float32)
param2 = np.random.random(shape2).astype(np.float32)
def cntk_baseline_basic():
i... | 1,135 |
852 | #include "L1Trigger/L1TCommon/src/Setting.cc"
#include "L1Trigger/L1TCommon/src/Mask.cc"
#include "L1Trigger/L1TCommon/src/XmlConfigReader.cc"
#include "L1Trigger/L1TCommon/src/TrigSystem.cc"
#include <iostream>
#include <fstream>
// To compile run these lines in your CMSSW_X_Y_Z/src/ :
/*
cmsenv
eval "setenv `scram ... | 1,105 |
3,055 | <reponame>sei-kiu/Grove-Beginner-Kit-for-Arduino-Grove-OLED-Display-0.96-SSD1315-
/*
u8x8_string.c
string line procedures
Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/)
Copyright (c) 2016, <EMAIL>
All rights reserved.
Redistribution and use in source and binary forms, with or w... | 1,705 |
1,037 | import json
from flask import Blueprint, jsonify, request, Response, current_app
from flask_login import login_required, current_user
from flask_babel import gettext as _
from configs.regions_list import REGION_HIERARCHY
import application.models as Models
from application.services.cache import cached
address = Bluep... | 1,318 |
335 | {
"word": "Gradation",
"definitions": [
"A scale or series of successive changes, stages, or degrees.",
"An individual stage within a succession of changes, stages, or degrees.",
"A minute variation in shade, tone, or colour."
],
"parts-of-speech": "Noun"
} | 108 |
1,314 | package cn.dreampie.captcha;
import cn.dreampie.captcha.background.BackgroundFactory;
import cn.dreampie.captcha.color.ColorFactory;
import cn.dreampie.captcha.filter.FilterFactory;
import cn.dreampie.captcha.filter.predefined.*;
import cn.dreampie.captcha.font.FontFactory;
import cn.dreampie.captcha.font.RandomFontFa... | 1,333 |
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 ... | 3,220 |
602 | <gh_stars>100-1000
/*!
* @file vm.cpp
* Base "PS2 virtual machine" code.
* Simulates the existence of select PS2 components, for inspection & debugging.
* Not an emulator!
*/
#include "vm.h"
#include "dmac.h"
#include "common/log/log.h"
#include "game/kernel/kscheme.h"
#include <condition_variable>
#include <mute... | 1,290 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/IMAVCore.framework/IMAVCore
*/
#import <IMAVCore/XXUnknownSuperclass.h>
@class NSString;
@interface IMAVCamera : XXUnknownSuperclass {
id _internalDevice; // 4 = 0x4
}
@property(readonly, assign, nonatomic) BOOL i... | 542 |
311 | package org.javacs.example;
class CompleteParens {
void test() {
ret
}
void returnsVoid() { }
String returnsString() { return ""; }
String returnsArg(String arg) { return arg; }
} | 81 |
9,136 | /*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2015 Google Inc. http://bulletphysics.org
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted ... | 4,527 |
412 | /*******************************************************************\
Module: Abstract Interpretation
Author: <NAME>, <EMAIL>
\*******************************************************************/
/// \file
/// Abstract Interpretation Storage
///
/// An interface for the storage of domains in the abstract interprete... | 3,010 |
7,312 | <filename>CYLTabBarController/CYLTabBar+CYLTabBarControllerExtention.h
/*
// CYLTabBarController
// CYLTabBarController
//
// Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 03/06/19.
// Copyright © 2019 https://github.com/ChenYilong . All rights reserved.
*/
#import <UIKit/UIKit.h>
#import "... | 507 |
335 | /* SPDX-License-Identifier: BSL-1.0 OR BSD-3-Clause */
#ifndef MPT_BASE_TESTS_UUID_HPP
#define MPT_BASE_TESTS_UUID_HPP
#include "mpt/base/detect.hpp"
#include "mpt/base/namespace.hpp"
#include "mpt/random/default_engines.hpp"
#include "mpt/random/device.hpp"
#include "mpt/string/types.hpp"
#include "mpt/test/test.h... | 2,137 |
14,564 | package com.alibaba.datax.plugin.writer.conn;
import com.alibaba.datax.common.plugin.RecordSender;
import com.alibaba.datax.plugin.writer.util.TSDBUtils;
import com.alibaba.fastjson.JSON;
import org.apache.commons.lang3.StringUtils;
import java.util.List;
/**
* Copyright @ 2019 alibaba.com
* All right reserved.
*... | 884 |
1,144 | <reponame>dram/metasfresh
package de.metas.contracts.interceptor;
import static org.adempiere.model.InterfaceWrapperHelper.newInstance;
import static org.adempiere.model.InterfaceWrapperHelper.save;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.fail;
import or... | 1,177 |
3,102 | // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -analyze -analyzer-checker=debug.DumpCFG -analyzer-config cfg-lifetime=true,cfg-temporary-dtors=false,cfg-rich-constructors=false -analyzer-config cfg-implicit-dtors=false %s > %t 2>&1
// RUN: FileCheck --input-file=%t %s
extern bool UV;
class A {
public:
// CHECK: ... | 13,549 |
2,494 | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* pkix_pl_infoaccess.h
*
* InfoAccess Object Definitions
*
*/
#ifndef _PKIX_PL_INFOACCESS_H
#define _PKIX_... | 475 |
1,433 | //******************************************************************
//
// Copyright 2015 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... | 5,703 |
3,102 | // RUN: %clang_analyze_cc1 -w -analyzer-checker=debug.DumpLiveStmts %s 2>&1\
// RUN: | FileCheck %s
int coin();
int testThatDumperWorks(int x, int y, int z) {
return x ? y : z;
}
// CHECK: [ B0 (live statements at block exit) ]
// CHECK-EMPTY:
// CHECK-EMPTY:
// CHECK: [ B1 (live statements at block exit) ]
// C... | 1,775 |
959 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Import standard libraries
import pytest
import random
random.seed(0)
# Import modules
import numpy as np
# Import from pyswarms
from pyswarms.backend.topology import Star
from pyswarms.single import GlobalBestPSO, LocalBestPSO, GeneralOptimizerPSO
# Knapsack paramete... | 1,416 |
3,262 | <gh_stars>1000+
/*
* Tencent is pleased to support the open source community by making Angel available.
*
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance w... | 867 |
841 | <reponame>pet0etie/cgeo<gh_stars>100-1000
package cgeo.geocaching.sorting;
import cgeo.geocaching.models.Geocache;
import androidx.annotation.NonNull;
import java.util.List;
/**
* comparator which inverses the sort order of the given other comparator
*
*/
public class InverseComparator implements CacheComparator... | 366 |
6,717 | <gh_stars>1000+
//******************************************************************************
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCL... | 361 |
1,097 | /*
* Copyright 2011-2020 <NAME>. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#ifndef BGFX_VERTEXDECL_H_HEADER_GUARD
#define BGFX_VERTEXDECL_H_HEADER_GUARD
#include <bgfx/bgfx.h>
#include <bx/readerwriter.h>
namespace bgfx
{
///
void initAttribTypeSizeTable(RendererT... | 427 |
879 | <reponame>LEONAD486/zstack<filename>image/src/main/java/org/zstack/image/ImageBase.java
package org.zstack.image;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.zst... | 20,293 |
450 | 'd'
from types import StringType, NoneType
from string import upper
def foo():
return map(lambda x: upper(x), 'testing')
def func(a, b, *args, **kw):
'verify no warnings for variables (arguments) used before set'
print a, b, args, kw
class E(Exception):
'doc'
def x():
'instantiate a new E with... | 302 |
474 | package org.javacord.api.entity.permission;
import org.javacord.api.entity.permission.internal.RoleBuilderDelegate;
import org.javacord.api.entity.server.Server;
import org.javacord.api.util.internal.DelegateFactory;
import java.awt.Color;
import java.util.concurrent.CompletableFuture;
/**
* This class is used to c... | 1,106 |
766 | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... | 1,373 |
2,881 | <reponame>bruce-stewart/shopizer<gh_stars>1000+
package com.salesmanager.shop.model.system;
import java.util.Date;
public class OptinEntity extends Optin {
/**
*
*/
private static final long serialVersionUID = 1L;
private Date startDate;
private Date endDate;
private String optinType;
private String sto... | 394 |
2,482 | <reponame>wwjiang007/nutch
/*
* 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
... | 2,024 |
305 | from __future__ import absolute_import
from .epytext import epytext_author
from .common import default_movie, plain_exercise, DEFAULT_ARGLIST
def define(FILENAME_EXTENSION,
BLANKLINE,
INLINE_TAGS_SUBST,
CODE,
LIST,
ARGLIST,
TABLE,
EXERCISE,
... | 1,470 |
2,151 | <gh_stars>1000+
/*
* The copyright in this software is being made available under the 2-clauses
* BSD License, included below. This software may be subject to other third
* party and contributor rights, including patent rights, and no such rights
* are granted under this license.
*
* Copyright (c) 2002-2014, Univ... | 6,157 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 5,066 |
30,023 | <gh_stars>1000+
{
"config": {
"abort": {
"already_configured": "Urz\u0105dzenie jest ju\u017c skonfigurowane",
"no_valid_uuid_set": "Nie ustawiono prawid\u0142owego UUID"
},
"error": {
"no_valid_uuid_set": "Nie ustawiono prawid\u0142owego UUID"
},
... | 722 |
335 | <gh_stars>100-1000
{
"word": "Resigned",
"definitions": [
"Having accepted something unpleasant that one cannot do anything about."
],
"parts-of-speech": "Adjective"
} | 73 |
870 | <reponame>jlpedrosa/accumulo
/*
* 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... | 715 |
12,278 | <gh_stars>1000+
// Copyright 2015 the V8 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.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "include/libplatform/libplatform.h"
#include "include/v8.h"
int ma... | 1,515 |
327 | import os
import platform
import torch
import argparse
import numpy as np
import torch.optim as optim
from model import Actor, Critic
from utils.utils import to_tensor, get_action, save_checkpoint
from collections import deque
from utils.running_state import ZFilter
from utils.memory import Memory
from agent.ppo import... | 3,194 |
416 | package org.simpleflatmapper.csv.getter;
import org.simpleflatmapper.converter.Context;
import org.simpleflatmapper.csv.CsvRow;
import org.simpleflatmapper.map.getter.ContextualGetter;
public class CsvBoxedShortGetter implements ContextualGetter<CsvRow, Short> {
public final int index;
public CsvBoxedShortGe... | 183 |
338 | package com.tvd12.ezyfoxserver.socket;
import static com.tvd12.ezyfox.util.EzyProcessor.processWithLogException;
import com.tvd12.ezyfox.entity.EzyArray;
import com.tvd12.ezyfoxserver.entity.EzySession;
import lombok.Setter;
public abstract class EzySocketRequestHandler extends EzySocketAbstractEventHandler {
... | 779 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-w343-x6rw-f2x7",
"modified": "2022-02-02T00:02:01Z",
"published": "2022-01-26T00:00:35Z",
"aliases": [
"CVE-2022-23021"
],
"details": "On BIG-IP version 16.1.x before 16.1.2, when any of the following configurati... | 418 |
5,079 | # -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
import asyncio
import datetime
import functools
import logging
import os
try:
import ssl
except ImportError:
ssl = None
import gunicorn.workers.base as base
from aiohttp.wsgi import... | 2,514 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.query;
import com.yahoo.compress.IntegerCompressor;
import com.yahoo.prelude.query.textualrepresentation.Discloser;
import java.nio.ByteBuffer;
/**
* A set of terms which must be near ... | 910 |
391 | #
# Copyright (C) 2020 IBM. All Rights Reserved.
#
# See LICENSE.txt file in the root directory
# of this source tree for licensing information.
#
from typing import Union, List
from clai.server.agent import Agent
from clai.server.command_message import State, Action
# pylint: disable=too-few-public-methods
from cla... | 1,039 |
3,102 | <reponame>medismailben/llvm-project
// RUN: mkdir -p %t/test1 %t/test2 %t/test3
// RUN: env "CPATH=%t/test1%{pathsep}%t/test2" %clang -x c -E -v %s 2>&1 | FileCheck %s -check-prefix=CPATH
// CPATH: -I{{.*}}/test1
// CPATH: -I{{.*}}/test2
// CPATH: search starts here
// CPATH: test1
// CPATH: test2
// RUN: env "OBJC_I... | 710 |
9,516 | <reponame>ketyi/dgl<gh_stars>1000+
/*!
* Copyright (c) 2021 by Contributors
* \file nccl_api.h
* \brief Wrapper around NCCL routines.
*/
#ifndef DGL_RUNTIME_CUDA_NCCL_API_H_
#define DGL_RUNTIME_CUDA_NCCL_API_H_
#include "nccl.h"
#include <dgl/runtime/object.h>
#include <string>
namespace dgl {
namespace runt... | 1,401 |
350 | /*
* Copyright (C) 2005-2017 <NAME> (<EMAIL>).
*
* 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 ... | 800 |
335 | {
"word": "Fraternity",
"definitions": [
"A group of people sharing a common profession or interests.",
"A male students' society in a university or college.",
"A religious or Masonic society or guild.",
"Friendship and mutual support within a group."
],
"parts-of-speech"... | 118 |
772 | <reponame>binbash5447/scrimage<filename>scrimage-filters/src/main/java/thirdparty/marvin/image/MarvinAbstractPlugin.java<gh_stars>100-1000
package thirdparty.marvin.image;
public abstract class MarvinAbstractPlugin implements MarvinPlugin {
private MarvinAttributes marvinAttributes;
private boolean valid;
... | 311 |
1,153 | <gh_stars>1000+
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from ykdl.util.html import get_content
from ykdl.util.match import match1
from ykdl.extractor import VideoExtractor
from ykdl.videoinfo import VideoInfo
from ykdl.compact import urlencode, compact_bytes
import hashlib
import json
import time
SECRETKEY = '... | 957 |
4,473 | <filename>src/test/java/com/github/tomakehurst/wiremock/testsupport/MockRequestBuilder.java
/*
* Copyright (C) 2011 <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://ww... | 1,596 |
341 | package jwtc.android.chess.ics;
import android.content.Intent;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceClickListener;
import jwtc.android.chess.MyPreferenceActivity;
import jwtc.android.chess.R;
public class ICSPrefs extends MyPreferenceActivit... | 342 |
945 | <reponame>arobert01/ITK
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 1,677 |
1,000 | /**
* Copyright (C) 2015 Topology LP
* Copyright (C) 2018 <NAME>
* All rights reserved.
*
* 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 l... | 1,532 |
585 | <reponame>madrob/solr
/*
* 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
* (th... | 569 |
555 | package com.foo;
class A {
} | 13 |
4,535 | // Copyright 2019, Intel Corporation
#pragma once
#include <boost/filesystem.hpp>
namespace vertexai {
namespace tile {
namespace codegen {
namespace test {
namespace passes {
bool VerifyPasses(const boost::filesystem::path& passes_dir);
} // namespace passes
} // namespace test
} // namespace codegen
} // name... | 106 |
1,109 | <reponame>qiquanzhijia/gryphon<gh_stars>1000+
from gryphon.data_service.pollers.orderbook.orderbook_poller import OrderbookPoller
class BitstampBCHEUROrderbook(OrderbookPoller):
def __init__(self):
self.exchange_name = u'BITSTAMP_BCH_EUR'
self.url = 'https://www.bitstamp.net/api/v2/order_book/bche... | 285 |
344 | <filename>openunreid/data/transformers/__init__.py<gh_stars>100-1000
# Modified from https://github.com/JDAI-CV/fast-reid/blob/master/fastreid/data/transforms/build.py # noqa
import torchvision.transforms as T
from .auto_augment import ImageNetPolicy
from .gaussian_blur import GaussianBlur
from .mutual_transformer i... | 968 |
307 | <gh_stars>100-1000
//
//
#include "GPUMemoryHeap.h"
namespace {
BufferType getBufferType(GpuHeap heap_type) {
switch(heap_type) {
case GpuHeap::ModelVertex:
return BufferType::Vertex;
case GpuHeap::ModelIndex:
return BufferType::Index;
case GpuHeap::NUM_VALUES:
default:
UNREACHABLE("Invalid heap type detec... | 635 |
2,338 | <gh_stars>1000+
//===-- Timer.h -------------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===-----------... | 266 |
517 | <reponame>finesoft/java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/framework/resource_handle.proto
package org.tensorflow.proto.framework;
/**
* <pre>
* Protocol buffer representing a handle to a tensorflow resource. Handles are
* not valid across executions, but can be ... | 31,924 |
1,568 | from __future__ import print_function
'''
Double-base palindromes
Problem 36
The decimal number, 585 = 10010010012 (binary), is palindromic in both bases.
Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.
(Please note that the palindromic number, in either base, may not ... | 231 |
721 | <gh_stars>100-1000
package crazypants.enderio.base.config.factory;
import javax.annotation.Nonnull;
import info.loenwind.autoconfig.factory.ValueFactory;
public class ValueFactoryEIO extends ValueFactory implements IFactoryEIO {
public ValueFactoryEIO(@Nonnull String modid) {
super(modid);
}
@Override
... | 157 |
1,133 | <reponame>mikesep/comdb2
/*
Copyright 2015 <NAME>.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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable ... | 390 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.