max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
353 | package org.nutz.shiro.biz.acl;
import org.nutz.shiro.bean.UserRole;
import org.nutz.shiro.biz.BaseService;
/**
*
* @author kerbores
*
* @email <EMAIL>
*
*/
public class UserRoleService extends BaseService<UserRole> {
}
| 89 |
388 | //
// CardboardDeviceParams.h
// CardboardSDK-iOS
//
#ifndef __CardboardSDK_iOS__CardboardDeviceParams__
#define __CardboardSDK_iOS__CardboardDeviceParams__
#import <Foundation/Foundation.h>
namespace CardboardSDK
{
class Distortion;
class FieldOfView;
class CardboardDeviceParams
{
public:
CardboardDevi... | 372 |
459 | #include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "program_shader.h"
void ProgramShader::Use() const
{
program.Use();
}
void ProgramShader::Link()
{
program.Link();
}
inline std::string SourceFromFile(const std::string &filepath)
{
std::ifstream file(filepath);
std::string result((std::istreambu... | 354 |
439 | <reponame>huayl/heisenberg
/**
* Baidu.com,Inc.
* Copyright (c) 2000-2013 All Rights Reserved.
*/
package com.baidu.hsb.parser.ast.expression.primary.function.encryption;
import java.util.List;
import com.baidu.hsb.parser.ast.expression.Expression;
import com.baidu.hsb.parser.ast.expression.primary.function.Functi... | 233 |
485 | <filename>PKShortVideoDemo/PKShortVideoItem2.h
//
// PKShortVideoItem2.h
// PKShortVideo
//
// Created by TYM01 on 16/9/26.
// Copyright © 2016年 pepsikirk. All rights reserved.
//
#import "JSQMediaItem.h"
@interface PKShortVideoItem2 : JSQMediaItem
@property (nonatomic, strong) NSString *videoPath;
@property (st... | 173 |
1,755 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkGraphItem.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT A... | 720 |
317 | #ifndef __AIForeignObject__
#define __AIForeignObject__
/*
* Name: AIForeignObject.h
* Purpose:
*
* ADOBE SYSTEMS INCORPORATED
* Copyright 2002-2007 Adobe Systems Incorporated.
* All rights reserved.
*
* NOTICE: Adobe permits you to use, modify, and distribute this file
* in accordance with the ... | 1,937 |
640 | <reponame>jpoikela/z88dk
int func()
{
far char *ptr;
return *ptr;
}
int func2()
{
far char *ptr;
return *ptr++;
}
int func3()
{
far char *ptr;
return *++ptr;
}
int func4()
{
far char *ptr;
return ptr[3];
}
int func5(far char *ptr, char val)
{
*ptr = val;
func5(ptr,1);
}
int func6()
{
char *ptr;... | 225 |
348 | {"nom":"Nauroy","circ":"2ème circonscription","dpt":"Aisne","inscrits":523,"abs":352,"votants":171,"blancs":2,"nuls":8,"exp":161,"res":[{"nuance":"LR","nom":"<NAME>","voix":110},{"nuance":"FN","nom":"Mme <NAME>","voix":51}]} | 91 |
559 | <filename>examples/kancolle/src/main/java/kancolle/entityauth/KanmusuAuthenticationData.java<gh_stars>100-1000
/**
* Copyright (c) 2014-2017 Netflix, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | 2,086 |
320 | <filename>tantum/libs/fmix/datasets/google_commands/google_commands.py
"""Google speech commands dataset."""
__author__ = '<NAME>'
import os
import numpy as np
from torch.utils.data import Dataset
__all__ = [ 'CLASSES', 'SpeechCommandsDataset', 'BackgroundNoiseDataset' ]
CLASSES = 'unknown, silence, yes, no, up, do... | 1,709 |
1,091 | {
"comments": [
"Demo of adding badges to devices and hosts"
],
"title": "Demo adding badges",
"params": {
"lastAuto": 12
},
"description": [
"Demonstrate the device/host badging feature."
]
}
| 81 |
673 | """
block_replacements
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
from PySide import QtCore, QtGui
from mcedit2.ui.block_replacements import Ui_BlockReplacements
from mcedit2.util.resources import resourcePath
from mcedit2.widgets.blockpicker import Block... | 3,451 |
2,023 | <filename>recipes/Python/286209_set_class_mutable_objects_unique_hashable_id/recipe-286209.py
class KeyedSet(dict):
"""
A set class for handling collections of arbitrary
objects that have unique, and hashable 'id' attributes.
Set items are stored as values in a dictionary, with ids
as keys. There ... | 2,692 |
600 | //-----------------------------------------------------------------------------
// File: XBResource.cpp
//
// Desc: Loads resources from an XPR (Xbox Packed Resource) file.
//
// Hist: 03.12.01 - New for April XDK release
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------... | 2,184 |
537 | from __future__ import print_function
import argparse
import os
import h5py
import numpy as np
import sys
from molecules.model import MoleculeVAE
from molecules.utils import one_hot_array, one_hot_index, from_one_hot_array, \
decode_smiles_from_indexes, load_dataset
from pylab import figure, axes, scatter, title... | 1,353 |
3,422 | package com.volokh.danylo.visibility_utils.calculator;
import android.widget.AbsListView;
import com.volokh.danylo.visibility_utils.scroll_utils.ItemsPositionGetter;
import com.volokh.danylo.visibility_utils.scroll_utils.ScrollDirectionDetector;
import com.volokh.danylo.visibility_utils.utils.Config;
import com.volok... | 1,070 |
3,301 | <filename>shaded_libraries/shaded_flink_ai_extended_tf2/src/main/java/com/alibaba/alink/operator/batch/dl/ctr/protos/TowerOuterClass.java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: easy_rec/python/protos/tower.proto
package com.alibaba.alink.operator.batch.dl.ctr.protos;
public final class... | 97,684 |
14,668 | // 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.
#ifndef COMPONENTS_SAFE_BROWSING_CONTENT_BROWSER_PASSWORD_PROTECTION_PASSWORD_PROTECTION_NAVIGATION_THROTTLE_H_
#define COMPONENTS_SAFE_BROWSING_CONTENT_B... | 785 |
7,158 | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
// This functions have been contributed by <NAME> <<EMAIL>>
#include "../precomp.hpp"
#include "geo_interpolation.hpp"
#incl... | 7,941 |
2,939 | #ifndef LUMEN_EIR_CONVERSION_CONSTANT_OP_CONVERSION
#define LUMEN_EIR_CONVERSION_CONSTANT_OP_CONVERSION
#include "lumen/EIR/Conversion/ConversionSupport.h"
namespace lumen {
namespace eir {
class NullOpConversion;
class ConstantAtomOpConversion;
class ConstantBoolOpConversion;
class ConstantBigIntOpConversion;
class ... | 398 |
348 | {"nom":"Huriel","circ":"2ème circonscription","dpt":"Allier","inscrits":2067,"abs":1043,"votants":1024,"blancs":20,"nuls":13,"exp":991,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":264},{"nuance":"FI","nom":"M. <NAME>","voix":196},{"nuance":"LR","nom":"<NAME>","voix":182},{"nuance":"SOC","nom":"<NAME>","voix":140},{... | 322 |
4,403 | <gh_stars>1000+
package cn.hutool.core.lang.mutable;
import cn.hutool.core.lang.Pair;
/**
* 可变{@link Pair}实现,可以修改键和值
*
* @param <K> 键类型
* @param <V> 值类型
* @since 5.7.16
*/
public class MutablePair<K, V> extends Pair<K, V> implements Mutable<Pair<K, V>>{
private static final long serialVersionUID = 1L;
/**
... | 461 |
790 | package com.google.appengine.api.xmpp;
import com.google.appengine.api.utils.HttpRequestParser;
import java.io.IOException;
import javax.mail.BodyPart;
import javax.mail.MessagingException;
import javax.mail.internet.MimeMultipart;
import javax.servlet.http.HttpServletRequest;
class InboundMessageParser extends HttpR... | 396 |
384 | <reponame>hejamu/gromacs
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2021, by the GROMACS development team, led by
* <NAME>, <NAME>, <NAME>, and <NAME>,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromac... | 915 |
348 | <filename>docs/data/leg-t2/067/06705277.json
{"nom":"Mackenheim","circ":"5ème circonscription","dpt":"Bas-Rhin","inscrits":579,"abs":315,"votants":264,"blancs":13,"nuls":4,"exp":247,"res":[{"nuance":"REG","nom":"<NAME>","voix":163},{"nuance":"LR","nom":"<NAME>","voix":84}]} | 112 |
2,174 | <gh_stars>1000+
package ceui.lisa.adapters;
import com.facebook.rebound.SimpleSpringListener;
import com.facebook.rebound.Spring;
import com.facebook.rebound.SpringConfig;
import com.facebook.rebound.SpringSystem;
import ceui.lisa.databinding.RecyDownloadedBinding;
class DownloadedHolder extends ViewHolder<RecyDownl... | 326 |
787 | <reponame>mlouward/rust
{
"blurb": "Given a person's allergy score, determine whether or not they're allergic to a given item, and their full list of allergies.",
"authors": [
"EduardoBautista"
],
"contributors": [
"ashleygwilliams",
"coriolinus",
"cwhakes",
"EduardoBautista",
"efx",
... | 372 |
7,739 | <gh_stars>1000+
import pytest
from ludwig.modules.mlp_mixer_modules import MixerBlock, MLP, MLPMixer
from .test_utils import assert_output_shapes
@pytest.mark.parametrize("in_features,hidden_size,out_features", [(3, 8, 8), (8, 64, 32)])
def test_mlp(in_features: int, hidden_size: int, out_features: int):
assert... | 416 |
759 | <filename>rome-modules/src/main/java/com/rometools/modules/mediarss/io/MediaModuleGenerator.java<gh_stars>100-1000
/*
* Copyright 2006 <NAME>, openvision.tv
*
* This code is currently released under the Mozilla Public License.
* http://www.mozilla.org/MPL/
*
* Alternately you may apply the terms of the Apache Sof... | 8,725 |
611 | # SPDX-License-Identifier: BSD-3-Clause
# Copyright Contributors to the OpenColorIO Project.
import copy, unittest, os, sys
import PyOpenColorIO as OCIO
import inspect
class TransformsTest(unittest.TestCase):
def all_transforms_as_group(self):
# Default arguments for Transforms that can't be instantiated... | 1,465 |
8,027 | <gh_stars>1000+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | 371 |
328 | # Copyright 2022 The BladeDISC 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 required by applicable law or ... | 1,423 |
316 | package pv.com.pvcloudgo.model.msg;
import java.util.List;
import pv.com.pvcloudgo.model.base.BaseRespMsg;
import pv.com.pvcloudgo.model.bean.Pager;
import pv.com.pvcloudgo.model.bean.ProductPackage;
import pv.com.pvcloudgo.model.bean.ProductPackageType;
/**
* Created by Administrator on 2017/1/12.
*/
public class... | 410 |
545 | /**
* 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... | 4,498 |
1,006 | <filename>libs/libc/grp/lib_getgrnamr.c
/****************************************************************************
* libs/libc/grp/lib_getgrnamr.c
*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for add... | 874 |
335 | {
"word": "Baffle",
"definitions": [
"A device used to restrain the flow of a fluid, gas, etc. or to prevent the spreading of sound or light in a particular direction."
],
"parts-of-speech": "Noun"
} | 81 |
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,821 |
4,879 | typedef NS_ENUM(NSInteger, MWMCircularProgressState) {
MWMCircularProgressStateNormal,
MWMCircularProgressStateSelected,
MWMCircularProgressStateProgress,
MWMCircularProgressStateSpinner,
MWMCircularProgressStateFailed,
MWMCircularProgressStateCompleted
};
| 84 |
1,101 | """
Quick script to output JS code for including the listed icons in base64
Usage: python base64_conv.py <filenames>
"""
import os
import argparse
import json
def compute_base64_encoding(filename):
base, suffix = os.path.splitext(filename)
suffix = suffix.lstrip('.')
with open(filename, 'rb') as f:
... | 310 |
1,068 | <gh_stars>1000+
package org.assertj.android.api.app;
import android.annotation.TargetApi;
import android.app.ListFragment;
import static android.os.Build.VERSION_CODES.HONEYCOMB;
import static org.assertj.core.api.Assertions.assertThat;
/** Assertions for {@link ListFragment} instances. */
@TargetApi(HONEYCOMB)
publ... | 415 |
1,144 | <reponame>dram/metasfresh
package de.metas.marketing.gateway.cleverreach.restapi.models;
import static org.assertj.core.api.Assertions.assertThat;
import java.io.IOException;
import org.junit.jupiter.api.Test;
import com.fasterxml.jackson.databind.ObjectMapper;
/*
* #%L
* marketing-cleverreach
* %%
* Copyright ... | 632 |
333 | package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 跨境营销线上电商商品扩展参数
*
* @author auto create
* @since 1.0, 2021-08-27 11:06:43
*/
public class GolGoodsExt... | 969 |
473 | <gh_stars>100-1000
#ifndef Py_ABSTRACTOBJECT_H
#define Py_ABSTRACTOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif
#ifdef PY_SSIZE_T_CLEAN
#define PyObject_CallFunction _PyObject_CallFunction_SizeT
#define PyObject_CallMethod _PyObject_CallMethod_SizeT
#endif
/* Abstract Object Interface (many thanks to <NAME>) */
/*... | 17,300 |
2,542 | <reponame>AnthonyM/service-fabric<filename>src/prod/src/ServiceModel/management/FaultAnalysisService/TestCommandProgressState.h
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the re... | 690 |
1,007 | {
"name": "Second",
"workflow": "second.py",
"configuration": "config.py",
"short_description": "Second test model",
"long_description": "Second test model LOOONG textz",
"author": "Dreadful VELES Team",
"requires": ["veles>=0.5.0", "glymur"]
}
| 111 |
530 | /*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The contents of this file are subject to the terms of either the Universal Permissive License
* v 1.0 as shown at http://oss.oracle.com/licenses/upl
*
* or the follo... | 1,392 |
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.
#include "third_party/blink/renderer/core/messaging/blink_transferable_message_struct_traits.h"
#include "mojo/public/cpp/base/big_buffer_mojom_traits.h"... | 1,754 |
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.
#include "chrome/browser/ash/policy/reporting/metrics_reporting/network/network_info_sampler.h"
#include <string>
#include <utility>
#include "ash/const... | 3,721 |
14,668 | <reponame>chromium/chromium
// 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 "chrome/browser/ash/input_method/multi_word_suggester.h"
#include <cmath>
#include "ash/services/ime/public/cpp/sug... | 4,479 |
2,479 | # -*- coding: utf-8 -*-
"""
Client Plaintext Upgrade
~~~~~~~~~~~~~~~~~~~~~~~~
This example code fragment demonstrates how to set up a HTTP/2 client that uses
the plaintext HTTP Upgrade mechanism to negotiate HTTP/2 connectivity. For
maximum explanatory value it uses the synchronous socket API that comes with
the Pytho... | 1,200 |
668 | package com.tal.wangxiao.conan.common.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tal.wangxiao.conan.common.mapper.DiffDetailMapper;
import com.tal.wangxiao.conan.common.domain.DiffDetail;
import com.tal.... | 1,120 |
1,025 | <gh_stars>1000+
//==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file gdSaveProjectCommand.h
///
//=================================================================... | 849 |
304 | <reponame>NoahFetz/CloudNet-v3
/*
* Copyright 2019-2021 CloudNetService team & contributors
*
* 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/LICEN... | 351 |
944 | import unittest
import trtorch
import torch
import torchvision.models as models
from model_test_case import ModelTestCase
class TestMultiGpuSwitching(ModelTestCase):
def setUp(self):
if torch.cuda.device_count() < 2:
self.fail("Test is not relevant for this platform since number of available... | 2,213 |
577 | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""Test for frame stacking."""
import importlib
import math
import numpy as np
import pytest
from neural_sp.models.torch_utils import np2tensor
from neural_sp.models.torch_utils import pad_list
def make_args(**kwargs):
args = dict(
n_stacks=1,
n_s... | 637 |
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 ... | 2,107 |
324 | #include <collision_avoidance_pick_and_place/pick_and_place.h>
using moveit::planning_interface::MoveItErrorCode;
/* MOVING ARM TO WAIT POSITION
Goal:
- Use the "move_group" interface to move the robot to the "wait" target.
- Observe how we verify that the move was completed
Hints:
- "cfg.WAIT_POSE_N... | 534 |
3,348 | /**
* 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,223 |
449 | #ifdef USE_CUDNN
#include <algorithm>
#include <vector>
#include "caffe/filler.hpp"
#include "caffe/layer.hpp"
#include "caffe/util/im2col.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.hpp"
#include <boost/unordered_map.hpp>
#include <cudnn.h>
using boost::unordered_map;
namespace caff... | 7,188 |
22,688 | <filename>cyber/parameter/parameter_client.cc
/******************************************************************************
* Copyright 2018 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 Licens... | 981 |
4,816 | /**
* @file include/retdec/fileformat/utils/file_io.h
* @brief Functions for file I/O.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#ifndef RETDEC_FILEFORMAT_UTILS_FILE_IO_H
#define RETDEC_FILEFORMAT_UTILS_FILE_IO_H
#include <sstream>
#include <string>
#include <vector>
namespace retde... | 224 |
354 | class WhoisException(Exception):
pass
| 11 |
3,095 | <reponame>liyuzhao/QWidgetDemo
/*****************************************************************************
* vlc_atomic.h:
*****************************************************************************
* Copyright (C) 2010 <NAME>
*
* This program is free software; you can redistribute it and/or modify it
* unde... | 2,861 |
36,552 | <gh_stars>1000+
/*
*
* Copyright 2019 gRPC 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 applica... | 2,197 |
407 | <reponame>iuskye/SREWorks<filename>saas/aiops/api/aisp/tdata-aisp-server/src/main/java/com/alibaba/tdata/aisp/server/common/schedule/TaskResultCleanSchedule.java
package com.alibaba.tdata.aisp.server.common.schedule;
import java.util.Date;
import com.alibaba.tdata.aisp.server.common.properties.TaskRemainProperties;
i... | 439 |
18,396 | <filename>trunk/3rdparty/ffmpeg-4-fit/libavutil/lfg.c
/*
* Lagged Fibonacci PRNG
* Copyright (c) 2008 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg 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 Found... | 1,124 |
622 | <reponame>Sam-Gao-Xin/Courses-
package model.members;
public class Visit {
private int year;
private int month;
private int day;
public Visit(int day, int month, int year){
this.day = day;
this.month = month;
this.year = year;
}
public String getDate()... | 314 |
1,585 | /*
* Copyright (c) 2018 DataDirect Networks. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "ompi_config.h"
#include "fbtl_ime.h"
#include "mpi.h"
#include "ompi/constants.h"
#include "ompi/mca/fbtl/fbtl.h"
static ssize_t mca_fbtl_ime_nonblocking_op (omp... | 3,351 |
335 | <filename>S/Similarity_noun.json
{
"word": "Similarity",
"definitions": [
"The state or fact of being similar.",
"A similar feature or aspect."
],
"parts-of-speech": "Noun"
} | 88 |
2,288 | <gh_stars>1000+
/* MIT (BSD) license - see LICENSE file for details */
#ifndef CCAN_UTF8_H
#define CCAN_UTF8_H
#include <inttypes.h>
#include <stdbool.h>
#include <string.h>
/* Unicode is limited to 21 bits. */
#define UTF8_MAX_LEN 4
struct utf8_state {
/* How many characters we are expecting as part of this Unicode... | 535 |
352 | #include <stdint.h>
#include "config.h"
#define BM25_DEFAULT_B 0.75
#define BM25_DEFAULT_K1 1.5
struct BM25_term_i_args {
uint32_t n_postings; /* only for printing */
float idf[MAX_MERGE_POSTINGS];
/* frac_b_avgDocLen is used for actual scoring for efficiency reason,
* avgDocLen is just for complete arguments ... | 218 |
9,778 | <filename>src/backend/access/hash/hashovfl.c<gh_stars>1000+
/*-------------------------------------------------------------------------
*
* hashovfl.c
* Overflow page management code for the Postgres hash access method
*
* Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
* Portions Copyrigh... | 12,396 |
755 | /*
* Copyright (C) 2016 Airbnb, 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... | 779 |
739 | /**
* Defines the support classes and operations related to {@link org.fxmisc.richtext.model.EditableStyledDocument},
* the immutable model of rich-text content that can be rendered and edited.
*
* <p>
* An {@link org.fxmisc.richtext.model.EditableStyledDocument} acts as an immutable model for rich-text conten... | 1,160 |
731 | package com.webank.weevent.client;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import lombok.NonNull;
/**
* Java Client for WeEvent
*
* @author matthewliu
* @since 2019/07/18
*/
public interface IWeEventClient {
String defaultBrokerUrl = "http://localhost:8080/weevent-broker";
... | 2,079 |
324 | <reponame>tormath1/jclouds
/*
* 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
... | 1,028 |
1,511 | <gh_stars>1000+
* libxt_conntrack
* Shared library add-on to iptables for conntrack matching support.
*
* GPL (C) 2001 <NAME> (<EMAIL>).
* Copyright © CC Computer Consultants GmbH, 2007 - 2008
* <NAME> <<EMAIL>>
*/ | 84 |
1,761 | <reponame>kryptine/dmd
// check semantic analysis of C files
/* TEST_OUTPUT:
---
fail_compilation/failcstuff2.c(54): Error: `& var` has no effect
fail_compilation/failcstuff2.c(55): Error: `*ptr` has no effect
fail_compilation/failcstuff2.c(56): Error: `var` has no effect
fail_compilation/failcstuff2.c(57): Error: `-va... | 1,831 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-4h44-w6fm-548g",
"modified": "2021-11-19T15:44:20Z",
"published": "2020-07-29T16:15:12Z",
"aliases": [
"CVE-2020-15086"
],
"summary": "Potential Remote Code Execution in TYPO3 with mediace extension",
"details"... | 1,642 |
973 | <gh_stars>100-1000
package com.xw.project.gracefulmovies.data.ao;
/**
* <p>
* Created by woxingxiao on 2019-01-10.
*/
public class ReGeoResult {
private String status;
private String info;
private String infocode;
private ReGeo regeocode;
public String getStatus() {
return status;
... | 464 |
338 | /**
* @file testmain.cpp
* @brief main file for Catch2 tests
* @author <NAME>
* @date Sep 7, 2018
*/
#define CATCH_CONFIG_MAIN
#include <minisam/3rdparty/Catch2/catch.hpp>
| 80 |
799 |
import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *
from multiprocessing import Process
from gevent.pywsgi import WSGIServer
import subprocess
import gevent
from signal import SIGUSR1
import requests
from flask.logging import default_handler
from typing import Any, Dict... | 5,167 |
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 ... | 14,319 |
4,054 | # Generated by Django 2.2.24 on 2021-07-08 18:40
from django.db import migrations, models
import django.db.models.deletion
import readthedocs.projects.validators
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('organizations', '0001_squashed'),
]
operati... | 643 |
476 | <gh_stars>100-1000
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, so... | 2,781 |
5,169 | {
"name": "Gridy",
"version": "0.1.0",
"summary": "Gridy performs all the calculations related to grid layout.",
"description": "There are many situations when you need to manually calculate 2d grid layout (\nsuppose you're writing game like chess or 2048). Gridy performs all necessary\n calculations so you d... | 378 |
849 | #!/usr/bin/env python3
"""
Copyright 2020 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BAS... | 2,111 |
544 | from d3m import container, utils as d3m_utils
from d3m.base import utils as base_utils
from d3m.metadata import base as metadata_base, hyperparams
from d3m.primitive_interfaces import base, transformer
from d3m.primitive_interfaces.base import CallResult, DockerContainer
from typing import cast, Dict, List, Union, Seq... | 6,802 |
30,023 | <gh_stars>1000+
"""Tests for the sleepiq component."""
| 19 |
1,270 | <filename>apps/remix-ide/manifest.json<gh_stars>1000+
{
"name": "Solidity",
"description": "Realtime compiler and runtime",
"update_url": "https://remix.ethereum.org",
"version": "1.1",
"manifest_version": 2,
"background": {
"scripts": ["background.js"],
"persistent": true
},
"icons": {
"32... | 274 |
12,718 | /*===---- clflushoptintrin.h - CLFLUSHOPT intrinsic ------------------------===
*
* 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
*
*===----------------------------... | 290 |
852 | #include "CondFormats/DataRecord/interface/SiPixelVCalRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"
EVENTSETUP_RECORD_REG(SiPixelVCalRcd);
| 66 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.search.documents.test.environment.models;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Bucket {
@JsonProperty(value = "BucketName")
public String bucketName;
@JsonPrope... | 202 |
2,843 | <reponame>GggggitHub/LifeHelper
package com.yc.configlayer.arounter;
public interface RouterConfig {
String SCHEME = "yc";
String ROUTER_SCHEME = "yc://";
String ROUTER_HOST = "cc、om.ns.yc.lifehelper";
String ROUTER_PRE = ROUTER_SCHEME + ROUTER_HOST;
String PATH_TOP_LEVEL_VIEW = "/view";
Stri... | 2,473 |
686 | <gh_stars>100-1000
/*
Copyright (C) 1996-1997 Id Software, Inc.
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 Foundation; either version 2
of the License, or (at your option) any later version.
This program i... | 12,876 |
528 | <reponame>JieyangChen7/zfp
static const checksum_tuples _3dInt32Checksums[19] = {
{UINT64C(0x0), UINT64C(0x300030003), UINT64C(0xab8e83e9)},
{UINT64C(0xa0), UINT64C(0x300030003), UINT64C(0xda55ac5950c74c2)},
{UINT64C(0x2a0), UINT64C(0x300030003), UINT64C(0xb85a3bd936a5c392)},
{UINT64C(0x120), UINT64C(0x300030003), UINT... | 801 |
1,444 |
package mage.cards.b;
import java.util.UUID;
import mage.abilities.effects.common.DestroyAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.FilterPermanent;
/**
*
* @author emerald000
*/
public final class Boiling... | 342 |
539 | <filename>dp/cloud/python/magma/db_service/session_manager.py
"""
Copyright 2021 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the Li... | 467 |
346 | import pathlib
import os
import logging
logging = logging.getLogger(__name__)
def write_bytes_to_file(path, bytes):
logging.info("Writing %d bytes to file %s", len(bytes), path)
dir = os.path.dirname(path)
pathlib.Path(dir).mkdir(parents=True, exist_ok=True)
with open(path, "wb") as f:
f.write(... | 236 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.