max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
335 | <filename>C/Cinematograph_noun.json
{
"word": "Cinematograph",
"definitions": [
"An apparatus for showing motion-picture films."
],
"parts-of-speech": "Noun"
} | 78 |
4,339 | <filename>modules/core/src/main/java/org/apache/ignite/client/ClientCluster.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 copyright ownership.
* The ASF licenses th... | 1,130 |
642 | <reponame>remaininlight/axiom
#pragma once
#include <QtWidgets/QDialog>
namespace AxiomGui {
class AboutWindow : public QDialog {
Q_OBJECT
public:
AboutWindow();
};
}
| 87 |
1,767 | package com.annimon.stream.streamtests;
import com.annimon.stream.Functions;
import com.annimon.stream.Stream;
import com.annimon.stream.function.Predicate;
import com.annimon.stream.test.hamcrest.StreamMatcher;
import org.junit.Test;
import static com.annimon.stream.test.hamcrest.StreamMatcher.assertElements;
import ... | 391 |
2,757 | /** @file
Definitions for memory allocation routines: calloc, malloc, realloc, free.
The order and contiguity of storage allocated by successive calls to the
calloc, malloc, and realloc functions is unspecified. The pointer returned
if the allocation succeeds is suitably aligned so that it may be assigne... | 4,047 |
2,453 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <swiftCore/_TtCs12_SwiftObject.h>
@class MISSING_TYPE;
@interface _TtC12SourceEditor22SourceEditorDataSource : _TtCs12_SwiftObject
{
MISSING_TYPE *lineData;
MISSING_... | 389 |
3,651 | /**
* Copyright 2010-2016 OrientDB LTD (http://orientdb.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 a copy of the License at
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
*
* <p>Unless required ... | 530 |
72,551 | <reponame>gandhi56/swift
void fromClangLibrarySubmodule();
| 22 |
994 | /*++
Copyright (c) Microsoft Corporation
Module Name:
FxWmiIrpHandlerUm.cpp
Abstract:
This module implements the wmi irp handler for the driver frameworks.
Author:
Environment:
User mode only
Revision History:
--*/
#include "fxmin.hpp"
#include "FxWmiIrpHandler.hpp"
class FxWmiIrpHandler;
_... | 568 |
358 | <gh_stars>100-1000
#!/usr/bin/env python
from datetime import datetime
import sys
print("Hello from cx_Freeze")
print(
"The current date is %s\n"
% datetime.today().strftime("%B %d, %Y %H:%M:%S")
)
print(f"Executable: {sys.executable!r}\n")
import BUILD_CONSTANTS
excludedVars = [
"__builtins__",
"_... | 275 |
363 | <gh_stars>100-1000
/* Copyright 2013 predic8 GmbH, www.predic8.com
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 appl... | 1,039 |
454 | <reponame>zwkjhx/vertx-zero
/*
* This file is generated by jOOQ.
*/
package cn.vertxup.ambient.domain.tables;
import cn.vertxup.ambient.domain.Db;
import cn.vertxup.ambient.domain.Indexes;
import cn.vertxup.ambient.domain.Keys;
import cn.vertxup.ambient.domain.tables.records.XMenuRecord;
import org.jooq.*;
import o... | 3,334 |
337 | package com.edotassi.amazmod.event;
import com.huami.watch.transport.DataBundle;
public class NextMusic {
public NextMusic(DataBundle dataBundle) {}
}
| 55 |
5,169 | {
"name": "InAppPurchaseButton",
"version": "1.0.5",
"license": "MIT",
"summary": "In-App Purchase Button written in Swift",
"homepage": "https://github.com/PGSSoft/InAppPurchaseButton",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "https://github.com/PGSSoft/InAppPurchaseButton.git",
... | 178 |
2,151 | #!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Make sure pdb is named as expected (shared between .cc files).
"""
import TestGyp
import sys
if sys.platform == 'win32':
test = Tes... | 257 |
443 | <reponame>simoll/sleef<gh_stars>100-1000
#include <stdio.h>
#if defined(_MSC_VER)
#include <intrin.h>
#else
#include <x86intrin.h>
#endif
#include <sleef.h>
int main(int argc, char **argv) {
double a[] = {2, 10};
double b[] = {3, 20};
__m128d va, vb, vc;
va = _mm_loadu_pd(a);
vb = _mm_loadu_pd(b);
vc ... | 263 |
1,483 | <reponame>lealone/Lealone
/*
* Copyright Lealone Database Group.
* Licensed under the Server Side Public License, v 1.
* Initial Developer: zhh
*/
package org.lealone.sql.query;
import org.lealone.db.result.LocalResult;
import org.lealone.db.result.ResultTarget;
import org.lealone.db.session.ServerSession;
import ... | 1,995 |
16,989 | <gh_stars>1000+
// Copyright 2021 The Bazel 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 ... | 569 |
4,283 | <gh_stars>1000+
/*
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... | 1,060 |
14,668 | <reponame>zealoussnow/chromium<filename>components/crash/core/browser/crashes_ui_util.cc
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/crash/core/browser/crashes_ui_util.h"
#incl... | 1,464 |
507 | # tests/test_provider_hetznercloud_hcloud.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:18:06 UTC)
def test_provider_import():
import terrascript.provider.hetznercloud.hcloud
def test_resource_import():
from terrascript.resource.hetznercloud.hcloud import hcloud_certificate
from ter... | 1,379 |
2,577 | <reponame>mlehotsky13/camunda-bpm-platform
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you ... | 1,352 |
16,761 | <filename>spring-cloud-alibaba-starters/spring-cloud-alibaba-sentinel-datasource/src/main/java/com/alibaba/cloud/sentinel/datasource/factorybean/ApolloDataSourceFactoryBean.java<gh_stars>1000+
/*
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");... | 707 |
2,847 | <gh_stars>1000+
from tests import testmodels
from tortoise.contrib import test
from tortoise.exceptions import ConfigurationError, IntegrityError
from tortoise.fields import TextField
class TestTextFields(test.TestCase):
async def test_empty(self):
with self.assertRaises(IntegrityError):
await... | 718 |
1,082 | <reponame>dingxing123/game-server<gh_stars>1000+
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.jjy.game.dbtool.util;
import java.io.File;
import java.util.Array... | 300 |
1,371 | {
"dependencies": {
"github.com/aws/aws-sdk-go-v2": "v1.4.0",
"github.com/aws/smithy-go": "v1.4.0"
},
"files": [
"api_client.go",
"api_op_AddApplicationCloudWatchLoggingOption.go",
"api_op_AddApplicationInput.go",
"api_op_AddApplicationInputProcessingConfigura... | 963 |
348 | <filename>docs/data/leg-t2/017/01703344.json
{"nom":"Saint-Hilaire-de-Villefranche","circ":"3ème circonscription","dpt":"Charente-Maritime","inscrits":910,"abs":522,"votants":388,"blancs":41,"nuls":31,"exp":316,"res":[{"nuance":"REM","nom":"<NAME>","voix":193},{"nuance":"LR","nom":"M. <NAME>","voix":123}]} | 124 |
1,155 | //
// Copyright 2005-2007 Adobe Systems Incorporated
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#include <boost/gil.hpp>
#include <boost/gil/extension/io/jpeg.hpp>
#include <algorithm>
#include <fstream>... | 479 |
1,194 | package ca.uhn.fhir.model.dstu2;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.model.dstu2.resource.Observation;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.util.TestUtil;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Asserti... | 563 |
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 ... | 887 |
911 | <filename>app/src/com/linchaolong/apktoolplus/core/Jad.java<gh_stars>100-1000
package com.linchaolong.apktoolplus.core;
import com.linchaolong.apktoolplus.utils.*;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
/**
* Jad,java反编译工具
*
* Created by linchaolong on 2015/11/15.... | 2,895 |
903 | package org.develnext.jphp.ext.mail.classes;
import org.apache.commons.mail.EmailAttachment;
import org.apache.commons.mail.EmailException;
import org.apache.commons.mail.HtmlEmail;
import org.develnext.jphp.ext.mail.MailExtension;
import php.runtime.Memory;
import php.runtime.annotation.Reflection;
import php.runtime... | 1,543 |
4,224 | /****************************************************************************
*
* Copyright (c) 2018-2021 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... | 1,714 |
12,651 | import argparse
import torch
import torch.nn.functional as F
from torch.nn import Linear as Lin
from torch_geometric.nn import SplineConv, radius_graph, fps, global_mean_pool
from points.datasets import get_dataset
from points.train_eval import run
parser = argparse.ArgumentParser()
parser.add_argument('--epochs', ty... | 1,187 |
1,176 | // Copyright (c) 2014 <NAME>. All rights reserved.
// Copyright (c) 2012 The Chromium Authors.
// See the LICENSE file.
#ifndef THRUST_SHELL_NET_NET_LOG_H_
#define THRUST_SHELL_NET_NET_LOG_H_
#include <string>
#include "base/memory/scoped_ptr.h"
#include "net/base/net_log_logger.h"
namespace thrust_shell {
class T... | 228 |
479 | <gh_stars>100-1000
package com.crashinvaders.texturepackergui.lml.tags;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.crashinvaders.common.scene2d.ShrinkContainer;
import com.github.czyzby.lml.parser.LmlParser;
import com.github.czyzby.lml.parser.impl.tag.actor.ContainerLmlTag;
import com.github.czyzby.lml.... | 420 |
8,232 | <reponame>isra-fel/STL
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include <assert.h>
#include <exception>
#include <stddef.h>
using namespace std;
struct BasicLifetimeTracker {
static size_t allAlive;
};
size_t BasicLifetimeTracker::allAlive ... | 1,681 |
360 | <reponame>PiaCuk/KD_Lib
from .dynamic import Dynamic_Quantizer
from .static import Static_Quantizer
from .qat import QAT_Quantizer
| 45 |
831 | /*
* Copyright (C) 2013 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
*
* Unless required by app... | 19,182 |
666 | <reponame>elina8013/android_demo
package com.renyu.showcaselibrary;
/**
* Created by Administrator on 2017/7/3.
*/
public class CalculatorBean {
FocusShape mFocusShape;
int mCircleCenterX;
int mCircleCenterY;
int mCircleRadius;
// 圆角矩形专用
int mFocusWidth;
int mFocusHeight;
public Foc... | 593 |
377 | <reponame>gburd/Kundera
/*******************************************************************************
* * Copyright 2015 Impetus Infotech.
* *
* * 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 o... | 1,161 |
1,909 | <reponame>grmkris/XChange
package info.bitrich.xchangestream.btcmarkets;
import info.bitrich.xchangestream.core.StreamingExchange;
import info.bitrich.xchangestream.core.StreamingExchangeFactory;
import io.reactivex.disposables.Disposable;
import org.knowm.xchange.ExchangeSpecification;
import org.knowm.xchange.curren... | 1,102 |
5,964 | <gh_stars>1000+
{% extends 'interface_base.cpp' %}
{##############################################################################}
{% block prepare_prototype_object %}
{% from 'interface.cpp' import install_unscopeables with context %}
{% from 'interface.cpp' import install_conditionally_enabled_attributes_on_protot... | 557 |
480 | /*
* 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
*
* Unless requir... | 3,179 |
721 | <filename>nucleus/io/tfrecord_reader.h
/*
* Copyright 2019 Google LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 738 |
14,668 | // Copyright 2018 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 CHROME_BROWSER_ANDROID_VR_TEST_AR_TEST_SUITE_H_
#define CHROME_BROWSER_ANDROID_VR_TEST_AR_TEST_SUITE_H_
#include "base/test/test_suite.h"
namesp... | 316 |
1,433 | <reponame>gerald-yang/ubuntu-iotivity-demo<filename>iotivity-1.0.1/service/simulator/java/eclipse-plugin/ServiceProviderPlugin/src/oic/simulator/serviceprovider/utils/Utility.java<gh_stars>1000+
/*
* Copyright 2015 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "Lice... | 1,640 |
423 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
from torch.utils._pytree import tree_flatten, tree_unflatten
def tree_map_(fn_, pytree):
flat_args, _ = tre... | 219 |
315 | <reponame>FredrikBlomgren/aff3ct
#include "Factory/Module/Encoder/RSC/Encoder_RSC.hpp"
#include "Factory/Module/Decoder/RSC/Decoder_RSC.hpp"
#include "Factory/Tools/Codec/RSC/Codec_RSC.hpp"
using namespace aff3ct;
using namespace aff3ct::factory;
const std::string aff3ct::factory::Codec_RSC_name = "Codec RSC";
cons... | 1,296 |
357 | /*
* Copyright (c) 2012-2015 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 2,003 |
2,123 | <gh_stars>1000+
require_extension('M');
require_rv64;
WRITE_RD(sext32(RS1 * RS2));
| 39 |
14,668 | // Copyright 2020 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 CHROME_BROWSER_ASH_LOGIN_SCREENS_TPM_ERROR_SCREEN_H_
#define CHROME_BROWSER_ASH_LOGIN_SCREENS_TPM_ERROR_SCREEN_H_
#include <string>
#include "ch... | 471 |
624 | <filename>examples/plot_compute_emd.py<gh_stars>100-1000
# -*- coding: utf-8 -*-
"""
==================
OT distances in 1D
==================
Shows how to compute multiple Wassersein and Sinkhorn with two different
ground metrics and plot their values for different distributions.
"""
# Author: <NAME> <<EMAIL>>
#
# ... | 1,308 |
837 | <filename>app/src/main/java/me/saket/dank/utils/itemanimators/SubmissionCommentsItemAnimator.java
package me.saket.dank.utils.itemanimators;
import android.view.View;
public class SubmissionCommentsItemAnimator extends SlideAlphaAnimator<SubmissionCommentsItemAnimator> {
public SubmissionCommentsItemAnimator(int i... | 184 |
360 | #ifndef TZW_GLFW_BACKEND_H
#define TZW_GLFW_BACKEND_H
#include "../WindowBackEnd.h"
#define NOMINMAX
class GLFWwindow;
namespace tzw {
class GLFW_BackEnd : public WindowBackEnd
{
public:
void prepare(int width, int height, bool isFullScreen) override;
void run() override;
GLFW_BackEnd();
void setUnlimit... | 283 |
897 | #include <iostream>
using namespace std;
//Recursion+Memoization
int fib(int n,int dp[]){
//base case
if(n == 0 || n == 1) return n;
//Recursive
//Look Up
if(dp[n] != 0) return dp[n];
int ans;
ans = fib(n-1,dp)+fib(n-2,dp);
return dp[n] = ans;
}
int main() {
int n;
cin>>n;
int dp[n+1]={0};
cout<<"output... | 209 |
311 | <reponame>witquicked/fetlife-android
package com.bitlove.fetlife.event;
import com.bitlove.fetlife.model.service.FetLifeApiIntentService;
public class VideoChunkUploadFinishedEvent extends ServiceCallFinishedEvent {
private final int chunk;
private final int chunkCount;
private String videoId;
publi... | 298 |
688 | <reponame>NielsRogge/scenic
"""Tests for model.py."""
import functools
from absl.testing import absltest
from absl.testing import parameterized
from jax import random
import jax.numpy as jnp
from scenic.projects.token_learner import model
class TokenLearnerTest(parameterized.TestCase):
"""Tests for modules in toke... | 1,298 |
389 | #pragma once
#include "ligra.h"
#include "histogram.h"
// edgeMapInduced
// Version of edgeMapSparse that maps over the one-hop frontier and returns it as
// a sparse array, without filtering.
template <class E, class vertex, class VS, class F>
inline vertexSubsetData<E> edgeMapInduced(graph<vertex>& GA, VS& V, F& f)... | 1,323 |
619 | /*
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 1,833 |
567 | import sys
import os
def get_env(name):
if name not in os.environ:
sys.exit(name + " env var not set")
return os.environ[name]
def batch(iterable, n=1):
current_batch = []
for item in iterable:
if item is not None : current_batch.append(item)
if len(current_batch) >= n:
... | 185 |
344 | <gh_stars>100-1000
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------... | 1,047 |
1,020 | <reponame>icse18-refactorings/RoboBinding
package org.robobinding.codegen.viewbinding;
import org.apache.commons.lang3.StringUtils;
import org.robobinding.codegen.apt.element.SetterElement;
import org.robobinding.codegen.apt.type.WrappedPrimitiveType;
import org.robobinding.codegen.apt.type.WrappedTypeMirror;
im... | 685 |
1,467 | <reponame>Deluxe123123/aws-sdk-java-v2<gh_stars>1000+
package software.amazon.awssdk.services.json.model.eventstream;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkInternalApi;
import software.amazon.awssdk.services.json.model.EventOne;
import software.amazon.awssdk.... | 737 |
675 | /*
* Copyright 2018 The Bazel 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 a... | 2,361 |
488 | <gh_stars>100-1000
[
"../../protos/google/cloud/vision/v1p3beta1/geometry.proto",
"../../protos/google/cloud/vision/v1p3beta1/image_annotator.proto",
"../../protos/google/cloud/vision/v1p3beta1/product_search.proto",
"../../protos/google/cloud/vision/v1p3beta1/product_search_service.proto",
"../../protos/goog... | 185 |
5,355 | package graphql.schema;
import graphql.PublicApi;
import java.util.concurrent.CompletionStage;
import java.util.function.BiFunction;
/**
* A helper for {@link graphql.schema.DataFetcherFactory}
*/
@PublicApi
public class DataFetcherFactories {
/**
* Creates a {@link graphql.schema.DataFetcherFactory} tha... | 680 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"<NAME>","circ":"2ème circonscription","dpt":"Haute-Loire","inscrits":490,"abs":229,"votants":261,"blancs":12,"nuls":4,"exp":245,"res":[{"nuance":"REM","nom":"<NAME>","voix":132},{"nuance":"LR","nom":"<NAME>","voix":113}]} | 110 |
625 | <reponame>renesugar/jtransc
/*
* 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 ... | 1,521 |
395 | <gh_stars>100-1000
package timely.netty.websocket.subscription;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import timel... | 749 |
716 | <filename>src/OrbitGl/AccessibleTrack.h
// Copyright (c) 2020 The Orbit 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 ORBIT_GL_ACCESSIBLE_TRACK_H_
#define ORBIT_GL_ACCESSIBLE_TRACK_H_
#include <string>
#include "Accessibl... | 360 |
1,893 | """
Similarity module
"""
import numpy as np
from .labels import Labels
class Similarity(Labels):
"""
Computes similarity between query and list of text using a text classifier.
"""
# pylint: disable=W0222
def __call__(self, query, texts, multilabel=True):
"""
Computes the simil... | 547 |
973 | /*_##########################################################################
_##
_## Copyright (C) 2016 Pcap4J.org
_##
_##########################################################################
*/
package org.pcap4j.packet;
import org.pcap4j.packet.LlcPacket.LlcControl;
import org.pcap4j.packet.namednumbe... | 1,811 |
353 | <reponame>lihongwu19921215/nutzmore
package org.nutz.integration.spring;
import org.nutz.dao.DaoException;
import org.nutz.dao.DaoInterceptor;
import org.nutz.dao.DaoInterceptorChain;
import org.nutz.log.Log;
import org.nutz.log.Logs;
public class SimpleDaoInterceptor implements DaoInterceptor {
private static f... | 232 |
3,203 | package github.javaguide.springbootfilter.filter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;... | 740 |
407 | <reponame>emsec/HAL
#include "gui/user_action/action_create_object.h"
#include "gui/user_action/action_delete_object.h"
#include "gui/gui_globals.h"
#include "hal_core/netlist/grouping.h"
#include "gui/grouping/grouping_manager_widget.h"
#include "gui/graph_widget/contexts/graph_context.h"
namespace hal
{
ActionCr... | 1,948 |
517 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/framework/types.proto
package org.tensorflow.proto.framework;
/**
* <pre>
* (== suppress_warning documentation-presence ==)
* LINT.IfChange
* </pre>
*
* Protobuf enum {@code tensorflow.DataType}
*/
public enum DataType
i... | 6,170 |
1,315 | #include "SoloFeature.h"
#include "streamFuns.h"
#include "TimeFunctions.h"
#include "serviceFuns.cpp"
#include <unordered_map>
#include "SoloCommon.h"
inline int funCompareSolo1 (const void *a, const void *b); //defined below
inline int funCompare_uint32_1_2_0 (const void *a, const void *b);
void SoloFeatur... | 16,238 |
648 | {"resourceType":"DataElement","id":"DiagnosticReport.performer.role","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/DiagnosticReport.performer.role","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"id":"DiagnosticReport.performer.role","path... | 296 |
373 | /** @file
Device IDs for PCH Serial IO Controllers for PCH
Conventions:
- Register definition format:
Prefix_[GenerationName]_[ComponentName]_SubsystemName_RegisterSpace_RegisterName
- Prefix:
Definitions beginning with "R_" are registers
Definitions beginning with "B_" are bits within re... | 2,356 |
5,607 | <filename>inject-java/src/main/java/io/micronaut/annotation/processing/visitor/JavaWildcardElement.java
/*
* Copyright 2017-2021 original 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 Lic... | 1,386 |
777 | <filename>chrome/browser/ui/cocoa/autofill/autofill_layout.h
// Copyright 2013 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 CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_LAYOUT_H_
#define CHROME_BROWSER_UI_COCOA_A... | 414 |
3,212 | <reponame>YolandaMDavis/nifi
/*
* 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,723 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-9cp3-fh5x-xfcj",
"modified": "2020-08-31T18:26:23Z",
"published": "2018-08-09T20:55:46Z",
"aliases": [
"CVE-2017-16098"
],
"summary": "Regular Expression Denial of Service in charset",
"details": "Affected vers... | 867 |
2,550 | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (C) 2010-2012 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* a... | 4,715 |
583 | package lumenghz.com.pulllaunchrocket.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import ... | 1,359 |
599 | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | 988 |
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 "services/network/public/cpp/self_deleting_url_loader_factory.h"
#include <utility>
namespace network {
SelfDeletingURLLoaderFactory::SelfDele... | 615 |
1,418 | <reponame>amenic-hub/aima-java<gh_stars>1000+
package aima.core.search.framework.problem;
import aima.core.search.framework.Node;
import java.util.List;
/**
* Artificial Intelligence A Modern Approach (3rd Edition): page 66.<br>
* <br>
* A problem can be defined formally by five components: <br>
* <ul>... | 1,034 |
313 | /*
* Copyright 2018 Netflix, 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 t... | 1,692 |
1,604 | package org.bouncycastle.jcajce.provider.asymmetric.util;
import java.security.InvalidKeyException;
import java.security.PrivateKey;
import java.security.PublicKey;
import org.bouncycastle.crypto.params.AsymmetricKeyParameter;
import org.bouncycastle.crypto.params.GOST3410Parameters;
import org.bouncycastle.crypto.pa... | 798 |
1,420 | <gh_stars>1000+
/*
*
* Copyright 2020 Netflix, 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
*
* Unles... | 912 |
3,071 | <filename>.devcontainer/devcontainer.json
{
"name": "Bats core development environment",
"dockerFile": "Dockerfile",
"build": {"args": {"bashver": "4.3"}}
} | 61 |
1,334 | package org.mockserver.memory;
import org.mockserver.model.ObjectWithJsonToString;
public class Detail extends ObjectWithJsonToString {
private long init;
private long used;
private long committed;
private long max;
public Detail plus(Detail detail) {
return new Detail()
.setI... | 474 |
2,415 | {
"headers": {
"expires": "Sun, 04 Nov 2018 13:10:05 GMT",
"date": "Sun, 04 Nov 2018 13:10:05 GMT",
"cache-control": "private, max-age=0, must-revalidate, no-transform",
"etag": "\"MVck1nZK1y2Nk_4y5UoypDlO31c=/6UeW4kpHSUM2gc7z0bIbcg4Ych0=\"",
"vary": "Origin, X-Origin",
"content-type": "applic... | 711 |
305 | /*
* Copyright (c) 2012 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 8,490 |
1,602 | <filename>modoboa/limits/urls_api.py
"""Limits API urls."""
from rest_framework import routers
from . import viewsets
router = routers.SimpleRouter()
router.register(
r"resources", viewsets.ResourcesViewSet, basename="resources")
urlpatterns = router.urls
| 87 |
410 | #ifndef CARYLL_FONTOPS_OTL_GSUB_MULTI_H
#define CARYLL_FONTOPS_OTL_GSUB_MULTI_H
#include "common.h"
bool consolidate_gsub_multi(otfcc_Font *font, table_OTL *table, otl_Subtable *_subtable,
const otfcc_Options *options);
bool consolidate_gsub_alternative(otfcc_Font *font, table_OTL *table, o... | 208 |
777 | <gh_stars>100-1000
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/css/resolver/SharedStyleFinder.h"
#include "core/css/RuleFeature.h"
#include "core/css/RuleSet.h"
#include "core/css/pa... | 2,372 |
3,459 | /* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
* Copyright (C) 2006 CaH4e3
*
* 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 Licen... | 993 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.