max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
348 | {"nom":"Cristot","circ":"1ère circonscription","dpt":"Calvados","inscrits":162,"abs":99,"votants":63,"blancs":1,"nuls":10,"exp":52,"res":[{"nuance":"REM","nom":"<NAME>","voix":26},{"nuance":"UDI","nom":"<NAME>","voix":26}]} | 89 |
355 | /*
* This file is part of helper, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <<EMAIL>>
* Copyright (c) contributors
*
* 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 S... | 933 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-4qv2-grq4-x33q",
"modified": "2022-04-30T18:17:22Z",
"published": "2022-04-30T18:17:22Z",
"aliases": [
"CVE-2001-1116"
],
"details": "Identix BioLogon 2.03 and earlier does not lock secondary displays on a multi-monitor system running Windows 98 or ME, which al... | 603 |
3,358 | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2005 <NAME>
Copyright (C) 2007 StatPro Italia srl
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free softwar... | 2,309 |
1,551 | <reponame>skirdey/FARM
import pytest
import math
import numpy as np
from farm.evaluation.metrics import compute_metrics
from farm.evaluation.semantic_answer_similarity_evaluation import semantic_answer_similarity
def test_compute_metrics_basic():
# check we get some exception, may not always be the AssertionError... | 1,054 |
8,629 | #pragma once
#include <Core/NamesAndTypes.h>
namespace DB
{
NamesAndTypesList getVirtualsForStorage(const NamesAndTypesList & storage_columns_, const NamesAndTypesList & default_virtuals_);
}
| 64 |
631 | <reponame>tradingsecret/beam_wallet
#include "../common.h"
#include "../app_common_impl.h"
#include "contract.h"
#define Voting_manager_create(macro)
#define Voting_manager_view(macro)
#define Voting_manager_destroy(macro) macro(ContractID, cid)
#define Voting_manager_proposals_view_all(macro) macro(ContractID, cid)
... | 5,475 |
344 | <reponame>chengxingyao/webrtc
/*
* Copyright (c) 2020 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 th... | 499 |
326 | {
"Download": "Download",
"Path": "Pad",
"Created at": "Gemaakt op",
"Size": "Grootte",
"No backups present": "Geen back-ups beschikbaar",
"Delete backup": "Back-up verwijderen",
"Are you sure you want to delete the backup created at :date ?": "Weet u zeker dat u de back-up gemaakt op :date ... | 316 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-fp4q-4rpr-rprc/GHSA-fp4q-4rpr-rprc.json
{
"schema_version": "1.2.0",
"id": "GHSA-fp4q-4rpr-rprc",
"modified": "2022-05-13T01:01:12Z",
"published": "2022-05-13T01:01:12Z",
"aliases": [
"CVE-2017-2917"
],
"details": "An exploitable vulnerability exists in the... | 478 |
335 | <reponame>Safal08/Hacktoberfest-1<filename>F/Fiasco_noun.json
{
"word": "Fiasco",
"definitions": [
"A complete failure, especially a ludicrous or humiliating one."
],
"parts-of-speech": "Noun"
} | 92 |
648 | package com.ywl5320.wlmedia.enums;
/**
* Created by ywl5320 on 2018-3-16.
*/
public enum WlPlayModel {
PLAYMODEL_AUDIO_VIDEO("PLAYMODEL_AUDIO_VIDEO", 0),
PLAYMODEL_ONLY_AUDIO("PLAYMODEL_ONLY_AUDIO", 1),
PLAYMODEL_ONLY_VIDEO("PLAYMODEL_ONLY_VIDEO", 2);
private String playModel;
private int value... | 315 |
398 | package com.ruiyun.jvppeteer.transport;
import com.ruiyun.jvppeteer.transport.factory.WebSocketTransportFactory;
import com.ruiyun.jvppeteer.util.ValidateUtil;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.drafts.Draft;
import org.java_websocket.handshake.ServerHandshake;
import org.slf4j... | 704 |
335 | <filename>I/Implement_verb.json
{
"word": "Implement",
"definitions": [
"Put (a decision, plan, agreement, etc.) into effect."
],
"parts-of-speech": "Verb"
} | 78 |
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 ... | 4,453 |
898 | package com.spotify.heroic.aggregation;
import static org.junit.Assert.assertEquals;
import com.spotify.heroic.common.DateRange;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
public class BucketStrategyTest {
@Test
public void testStart() {
final BucketStrategy.Mapping mappin... | 1,035 |
2,636 | <reponame>ezhes/honggfuzz<gh_stars>1000+
#ifdef __cplusplus
extern "C" {
#endif
#include <fcntl.h>
#include <libhfuzz/libhfuzz.h>
#include <setjmp.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "magic.h"
/*
* Compile as:
* hon... | 643 |
5,659 | <gh_stars>1000+
from cms.menu_bases import CMSAttachMenu
from menus.base import NavigationNode
from menus.menu_pool import menu_pool
class TestMenu(CMSAttachMenu):
name = "test menu"
def get_nodes(self, request):
nodes = []
n = NavigationNode('sample root page', "/", 1)
n2 = Navigati... | 270 |
3,428 | {"id":"00935","group":"spam-2","checksum":{"type":"MD5","value":"64a85d481bc17b3b61da7861f9a4d0a3"},"text":"Received: from [192.168.127.12] ([67.32.39.130])\n\tby linux.midrange.com (8.11.6/8.11.6) with SMTP id g6N0Yee05828;\n\tMon, 22 Jul 2002 19:34:46 -0500\nReceived: from mail.midtennmortgage.com by [67.32.39.130]\n... | 1,267 |
666 | <filename>ExampleListActivity/src/com/jeremyfeinstein/slidingmenu/example/anim/CustomScaleAnimation.java<gh_stars>100-1000
package com.jeremyfeinstein.slidingmenu.example.anim;
import android.graphics.Canvas;
import com.jeremyfeinstein.slidingmenu.example.R;
import com.jeremyfeinstein.slidingmenu.example.R.strin... | 254 |
5,169 | <filename>Specs/6/7/1/TGShakeToFeedback/0.1.3/TGShakeToFeedback.podspec.json
{
"name": "TGShakeToFeedback",
"version": "0.1.3",
"summary": "Library to have shake to feedback feature.",
"description": "It lets user shake the phone and mail composer will be prompted with users current screen.",
"homepage": "htt... | 298 |
530 | {
"manufacturer": "Shenzhen Heiman Technology Co., Ltd.",
"manufacturerId": "0x0260",
"label": "HM-723ESY-Z",
"description": "Smart CO Alarm",
"devices": [
{
"productType": "0x8012",
"productId": "0x1000",
"zwaveAllianceId": 3165
}
],
"firmwareVersion": {
"min": "0.0",
"max": "255.255"
},
"met... | 402 |
586 | # -*- coding: utf-8 -*-
from .test_settings import *
BACKGROUND_TASK_RUN_ASYNC = True
| 38 |
6,270 | [
{
"type": "feature",
"category": "StorageGateway",
"description": "The CloudWatchLogGroupARN parameter of the UpdateGatewayInformation API allows for configuring the gateway to use a CloudWatch log-group where Storage Gateway health events will be logged. "
}
] | 94 |
495 | <reponame>ScriptBox99/azure-counterfit
from PIL import Image
import tqdm
import numpy as np
from counterfit.core.config import Config
# Used for typing function arguments
from counterfit.core.frameworks import Framework
from counterfit.core.attacks import CFAttack
from counterfit.core.targets import Target
from count... | 1,807 |
305 | <filename>llvm-project/clang/test/Frontend/fixed_point_crash.c<gh_stars>100-1000
// RUN: %clang_cc1 -verify -ffixed-point %s
union a {
_Accum x;
int i;
};
int fn1() {
union a m;
m.x = 5.6k;
return m.i;
}
int fn2() {
union a m;
m.x = 7, 5.6k; // expected-warning {{expression result unused}}
return m.x... | 189 |
732 | /* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved.
This software is licensed as OpenSource, under the Apache License, Version 2.0.
This license is available at: http://opensource.org/licenses/Apache-2.0. */
/* Mac OS Arabic aggregate Unicode initializer.
Element values... | 5,771 |
2,002 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#pragma once
#include <unknwn.h>
#include <string>
#include <thread>
#include <mutex>
#include <stdexcept>
| 89 |
650 | package cn.netdiscovery.example;
import cn.netdiscovery.core.domain.ResultItems;
import cn.netdiscovery.pipeline.elasticsearch.ElasticSearchPipline;
import org.elasticsearch.client.transport.TransportClient;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.transport.TransportAddress;
... | 363 |
1,018 | #import <React/RCTBridgeModule.h>
#import "FaceDetectorManagerMlkit.h"
@interface RNFaceDetectorModuleMLKit : NSObject <RCTBridgeModule>
@end
| 52 |
335 | {
"word": "Assimilation",
"definitions": [
"The process of taking in and fully understanding information or ideas.",
"The absorption and integration of people, ideas, or culture into a wider society or culture.",
"The absorption and digestion of food or nutrients by the body or any biolo... | 159 |
3,084 | <filename>network/trans/WFPSampler/lib/HelperFunctions_GUID.h
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012 Microsoft Corporation. All Rights Reserved.
//
// Module Name:
// HelperFunctions_GUID.h
//
// Abstract:
// ... | 696 |
338 | # -*- coding: utf-8 -*-
from __future__ import division
import pandas as pd
import numpy as np
import biosppy
import cvxopt as cv
import cvxopt.solvers
from ..statistics import z_score
from ..statistics import find_closest_in_list
# ==============================================================================
#... | 8,834 |
1,694 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <MMCommon/MMObject.h>
@class NSString, UIColor;
@interface MMWebViewPresetUI : MMObject
{
_Bool _bUseBlurBackground;
UIColo... | 564 |
777 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef AnimationEffectTimingReadOnly_h
#define AnimationEffectTimingReadOnly_h
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/CoreExport.h... | 350 |
1,319 | from __future__ import absolute_import
from .triplet_loss import *
| 19 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-7hf8-pr4q-94mp",
"modified": "2022-05-02T03:40:58Z",
"published": "2022-05-02T03:40:58Z",
"aliases": [
"CVE-2009-3029"
],
"details": "Cross-site scripting (XSS) vulnerability in the console in Symantec SecurityExpressions Audit and Compliance Server 4.1.1, 4.1,... | 638 |
659 | <gh_stars>100-1000
package co.infinum.goldfinger;
import android.content.Context;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import java.util.List;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import androidx.annotation.NonNull;
import androidx.annot... | 3,482 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.communication.callingserver.implementation.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty... | 848 |
571 | <gh_stars>100-1000
"""
Copyright 2021 Nirlep_5252_
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 ... | 3,593 |
2,611 | # Lint as: python3
# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | 6,149 |
354 | #ifndef _EGLUSTRUTIL_HPP
#define _EGLUSTRUTIL_HPP
/*-------------------------------------------------------------------------
* drawElements Quality Program EGL Utilities
* ------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version ... | 1,112 |
343 | #include "stdafx.h"
RH_C_FUNCTION ON_PointGrid* ON_PointGrid_New(int rows, int columns)
{
return new ON_PointGrid(rows, columns);
}
| 54 |
2,453 | <filename>XVim2/XcodeHeader/IDESourceEditor/_TtC15IDESourceEditor39StructuredSelectionActionMenuController.h
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import "_$s12SourceEditor20ActionMenuControllerCN.h"
@class MISSING_TYPE... | 223 |
411 | // License: BSD 3 clause
#include "tick/hawkes/model/base/model_hawkes_list.h"
#include "tick/hawkes/model/model_hawkes_utils.h"
ModelHawkesList::ModelHawkesList(const int max_n_threads,
const unsigned int optimization_level)
: ModelHawkes(max_n_threads, optimization_level),
... | 531 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 10,556 |
1,056 | <filename>java/java.hints/test/unit/data/org/netbeans/test/java/hints/IncorrectType57991.java
/*
* AbstractClass.java
*
* Created on March 12, 2005, 7:22 PM
*/
package org.netbeans.test.java.hints;
import java.io.IOException;
import javax.swing.text.BadLocationException;
/**
*
* @author lahvac
*/
public abstr... | 205 |
783 | void stage_cu()
{
// Writing instruction memory
Xil_Out32(0x50001004, 0);
Xil_Out32(0x50001000, 0xD2D60008);
Xil_Out32(0x50001004, 4);
Xil_Out32(0x50001000, 0x04121204);
Xil_Out32(0x50001004, 8);
Xil_Out32(0x50001000, 0xBF810000);
// Writing SGPRs for wavefront 1
Xil_Out32(0x50002004, 0);
... | 465 |
5,893 | from typing import List
from deeppavlov.core.common.registry import register
@register("sentseg_restore_sent")
def SentSegRestoreSent(batch_words: List[List[str]], batch_tags: List[List[str]]) -> List[str]:
ret = []
for words, tags in zip(batch_words, batch_tags):
if len(tags) == 0:
ret.a... | 319 |
488 | <gh_stars>100-1000
namespace N {
template <typename Ta0>
struct A {};
}
namespace M {
template <typename Tb0>
struct B {};
}
using namespace M;
struct C {
template<typename Tf0>
void f() {
using B = B<Tf0>;
using X = typename B::X;
N::A<X> a;
}
};
| 130 |
450 | <filename>lib/Runtime/operator/pad.c
#include <onnc/Runtime/operator/pad.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#define CONSTANT_MODE 0
#define EDGE_MODE 1
#define REFLECT_MODE 2
static inline void calculate_axis_dis(int32_t ndim, const int32_t * restrict dims, int32_t * restrict axis_dis){
... | 4,313 |
1,123 | import tensorflow as tf
import mlsql_model
import mlsql
import sys
import mlsql_tf
rd = mlsql.read_data()
p = mlsql.params()
fitParams = p["fitParam"]
tf.reset_default_graph
config = tf.ConfigProto()
gpuPercent = float(mlsql.get_param(fitParams, "gpuPercent", -1))
featureSize = int(mlsql.get_param(fitParams, "featu... | 2,166 |
831 | package p1.p2;
import android.app.Activity;
import android.os.Bundle;
/**
* Tests that navigation to the SDK base class will work.
*/
public class MyActivity extends Act<caret>ivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.... | 108 |
1,204 | <gh_stars>1000+
/*
* Copyright 2015 <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 o... | 7,418 |
2,032 | <reponame>huayl/phxqueue<gh_stars>1000+
/*
Tencent is pleased to support the open source community by making PhxQueue available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the Li... | 1,823 |
5,169 | {
"name": "libmsgs",
"version": "0.3.1",
"summary": "Msgs.io library for iOS",
"description": "## What is Msgs.io?\n\nMsgs.io provides an elegant, high volume push notification service for iOS and Android (and with a limited set of functionality also BlackBerry).\n\nAre your users getting tired of push notifica... | 326 |
16,461 | <reponame>zakharchenkoAndrii/expo<gh_stars>1000+
//
// ABI42_0_0AIRGoogleMapOverlayManager.h
// Created by <NAME> on 3/5/17.
//
#import <Foundation/Foundation.h>
#import <ABI42_0_0React/ABI42_0_0RCTViewManager.h>
@interface ABI42_0_0AIRGoogleMapOverlayManager : ABI42_0_0RCTViewManager
@end
| 133 |
404 | <filename>k-distribution/include/kframework/ocaml/fake_load_terms.c<gh_stars>100-1000
#include <caml/mlvalues.h>
#include <caml/alloc.h>
#include <caml/memory.h>
value load_native_binary(value unit) {
CAMLparam1(unit);
CAMLlocal1(s);
s = caml_alloc_string(0);
CAMLreturn(s);
}
| 120 |
692 | # test _thread.get_ident() function
#
# MIT license; Copyright (c) 2016 <NAME> on behalf of Pycom Ltd
import _thread
def thread_entry():
tid = _thread.get_ident()
print('thread', type(tid) == int, tid != 0, tid != tid_main)
global finished
finished = True
tid_main = _thread.get_ident()
print('main', ... | 167 |
1,723 | /******************************************************************************
* Copyright 2020 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/li... | 3,923 |
1,402 | <gh_stars>1000+
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: <NAME>, et al. (see THANKS for the full author list)
* See LICENSE for the license information
... | 1,710 |
493 | <gh_stars>100-1000
/**
* Copyright (C) 2016 Turi
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#ifndef GRAPHLAB_UNITY_TOOLKIT_INVOCATION_HPP
#define GRAPHLAB_UNITY_TOOLKIT_INVOCATION_HPP
#include <string>
#inclu... | 425 |
340 | <reponame>definitelyNotFBI/utt
// Copyright 2018 VMware, all rights reserved
//
// Storage key comparators implementation.
#ifdef USE_ROCKSDB
#include "rocksdb/key_comparator.h"
#include "Logger.hpp"
#include "hex_tools.h"
#include "sliver.hpp"
#include "rocksdb/client.h"
#include <chrono>
using logging::Logger;
... | 282 |
2,219 | // 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 "quic/masque/masque_utils.h"
namespace quic {
ParsedQuicVersionVector MasqueSupportedVersions() {
QuicVersionInitializeSupportForIetfDraft();... | 444 |
1,435 | <gh_stars>1000+
#!/usr/bin/env python
import matplotlib.pyplot as plt
import pywt
import pywt.data
camera = pywt.data.camera()
wavelet = pywt.Wavelet('sym2')
level = 5
# Note: Running with transform="dwtn" is faster, but the resulting images will
# look substantially worse.
coeffs = pywt.mran(camera, wavelet=... | 631 |
711 | /*
* Copyright 2015 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 844 |
19,438 | <reponame>r00ster91/serenity<filename>Userland/Libraries/LibWeb/Painting/StackingContext.h<gh_stars>1000+
/*
* Copyright (c) 2020, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Vector.h>
#include <LibWeb/Layout/Node.h>
namespace Web::Layout {
class StackingContext {
pub... | 387 |
498 | package com.bizzan.bitrade.job;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.uti... | 9,142 |
631 | package org.javalite.activejdbc.test_models;
import org.javalite.activejdbc.Model;
public class PhoneNumber extends Model {
}
| 44 |
2,607 | <reponame>gitter-badger/P-2
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. */
package p.runtime.values;
import java.util.Arrays;
public class NamedTuple implements IValue<NamedTuple> {
private String[] fieldNames;
private IValue<?>[] fieldValues;
public NamedTuple(String[] fieldNa... | 1,442 |
310 | <filename>embedded-google-storage/src/main/java/com/playtika/test/storage/EmbeddedStorageDependenciesAutoConfiguration.java
package com.playtika.test.storage;
import com.google.cloud.storage.Storage;
import com.playtika.test.common.spring.DependsOnPostProcessor;
import org.springframework.beans.factory.config.BeanFact... | 411 |
994 | <filename>Algorithms/Bit Manipulation/Clear i'th bit from right in a number.py
def answer(n, i):
return n & ~(1 << i) | 44 |
2,206 | /*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
* * See the NO... | 517 |
2,813 | package org.jabref.gui.util;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javafx.scene.text.Text;
/**
* Utility class with static methods for javafx {@link Text} objects
*/
public class TooltipTextUtil {
//... | 2,931 |
347 | <reponame>hbraha/ovirt-engine
package org.ovirt.engine.api.restapi.resource;
import org.ovirt.engine.api.model.Disk;
import org.ovirt.engine.api.model.Disks;
import org.ovirt.engine.api.resource.VmBackupDiskResource;
import org.ovirt.engine.api.resource.VmBackupDisksResource;
import org.ovirt.engine.api.restapi.types.... | 546 |
358 | <reponame>liaoziyang/ContentAssist
/*
* Copyright 2014
* Software Science and Technology Lab.
* Department of Computer Science, Ritsumeikan University
*/
package org.jtool.macrorecorder.internal.recorder;
import org.jtool.macrorecorder.recorder.MacroCompressor;
import org.jtool.macrorecorder.recorder.Recorder;... | 2,676 |
496 | <reponame>ujlbu4/vas3k.club
from django.shortcuts import redirect, render
from django_q.tasks import async_task
from auth.helpers import auth_required
from notifications.telegram.users import notify_profile_needs_review
from posts.models.post import Post
from users.forms.intro import UserIntroForm
from users.models.ge... | 618 |
773 | <gh_stars>100-1000
import logging
import numpy as np
import numpy.random as rnd
import matplotlib.pyplot as plt
from sklearn.ensemble import IsolationForest
from sklearn.neighbors import LocalOutlierFactor
from sklearn.svm import OneClassSVM
from ..common.utils import get_command_args, configure_logger
from ..common.g... | 1,814 |
4,216 | <gh_stars>1000+
/**
* @file core/tree/binary_space_tree/rp_tree_max_split_impl.hpp
* @author <NAME>
*
* Implementation of class (RPTreeMaxSplit) to split a binary space partition
* tree.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You sho... | 1,207 |
342 | <reponame>blackpixel/overshare-kit<gh_stars>100-1000
//
// OSKShareableContentItem.h
// Overshare
//
//
// Copyright (c) 2013 Overshare Kit. All rights reserved.
//
@import UIKit;
extern NSString * const OSKShareableContentItemType_MicroblogPost;
extern NSString * const OSKShareableContentItemType_Facebook;
extern... | 3,585 |
898 | //
// ProtonCore.h
// ProtonCore
//
// Created by <NAME> on 21/3/21.
// Copyright © 2021 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for ProtonCore.
FOUNDATION_EXPORT double ProtonCoreVersionNumber;
//! Project version string for ProtonCore.
FOUNDATION_EXPORT cons... | 147 |
387 | <gh_stars>100-1000
"""
##################################################################################################
# Copyright Info : Copyright (c) Davar Lab @ Hikvision Research Institute. All rights reserved.
# Filename : track_test.py
# Abstract : generate track result from detection resu... | 7,088 |
348 | <reponame>cygnus-x-1/constellation
/*
* Copyright 2010-2021 Australian Signals Directorate
*
* 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/LICENS... | 4,137 |
513 | <reponame>weslambert/strelka
import re
import os
import json
import subprocess
import tempfile
from strelka import strelka
class ScanCapa(strelka.Scanner):
"""Executes FireEye CAPA with versioned rules and provides known capabilities and MITRE ATT&CK matches.
Options:
tmp_directory: Location where t... | 1,912 |
355 | # coding=utf-8
# Copyright 2020 The Google Research 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 applicab... | 1,818 |
1,601 | #include "test3.hh"
int main(int argc, const char** /*argv*/) {
int* x = 0;
if (foo(argc > 3)) {
bar(x);
}
return 0;
}
| 71 |
342 | package org.anddev.andengine.entity.particle.modifier;
import org.anddev.andengine.entity.particle.Particle;
/**
* (c) 2010 <NAME>
* (c) 2011 Zynga Inc.
*
* @author <NAME>
* @since 21:21:10 - 14.03.2010
*/
public class AlphaModifier extends BaseSingleValueSpanModifier {
// ===================================... | 387 |
331 | <filename>Hard/Challenge 0001 Hard/solutions/solution.c
/*
* @Author: <NAME>
* @Email: <EMAIL>
* @Created Date: Sat Mar 19, 2016 05:18:39 PM
* @Last Modified time: Sat Mar 19, 2016 05:50:29 PM
*
* @Description: Higher-lower game with computer trying to guess the number.
* Will use a... | 763 |
446 | #!/usr/bin/env python3
"""Extract variables of one model part into a single checkpoint file.
Can be used to load the model part in a different setup."""
import argparse
import os
import tensorflow as tf
from neuralmonkey.logging import log as _log
def log(message: str, color: str = "blue") -> None:
_log(messa... | 1,092 |
3,428 | <filename>lib/node_modules/@stdlib/datasets/spam-assassin/data/easy-ham-1/02342.fb90b37c6a682e01e61c9da213e727b7.json<gh_stars>1000+
{"id":"02342","group":"easy-ham-1","checksum":{"type":"MD5","value":"fb90b37c6a682e01e61c9da213e727b7"},"text":"From <EMAIL> Mon Oct 7 12:05:41 2002\nReturn-Path: <<EMAIL>>\nDelivered-T... | 517 |
2,706 | <filename>retro/cores/gba/src/platform/python/_builder.py
import cffi
import os, os.path
import shlex
import subprocess
import sys
ffi = cffi.FFI()
pydir = os.path.dirname(os.path.abspath(__file__))
srcdir = os.path.join(pydir, "..", "..")
incdir = os.path.join(pydir, "..", "..", "..", "include")
bindir = os.environ.g... | 2,218 |
809 | /**
* @file
*
* @date Nov 16, 2018
* @author <NAME>
*/
#include <util/log.h>
#include <errno.h>
#include <stddef.h>
#include <stdint.h>
#include <hal/reg.h>
#include <drivers/common/memory.h>
#include <drivers/clk/ccm_imx6.h>
#include <drivers/i2c/i2c.h>
#include <drivers/iomuxc.h>
#include <embox/unit.h>
#inc... | 954 |
1,011 | #ifndef __TimeStepPF_h__
#define __TimeStepPF_h__
#include "SimulationDataPF.h"
#include "SPlisHSPlasH/Common.h"
#include "SPlisHSPlasH/TimeStep.h"
#include "SPlisHSPlasH/SPHKernels.h"
#include "SPlisHSPlasH/Utilities/MatrixFreeSolver.h"
// since all diagonal blocks are 3x3 diagonal matrices, a diagonal preconditione... | 775 |
1,475 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License... | 1,055 |
3,986 | <reponame>liuxiaoqiang1018/XUI
package com.xuexiang.xuidemo.fragment.components.popupwindow;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.xuexiang.xpage.annotation.Page;
import com.xuexiang.xui.widget.popupwindow.easypopup.EasyPopup;
import com.xuexiang.xui.widget... | 1,163 |
2,231 | <filename>com.dynamo.cr/com.dynamo.cr.bob/src/com/dynamo/bob/IResourceScanner.java
// Copyright 2020 The Defold Foundation
// Licensed under the Defold License version 1.0 (the "License"); you may not use
// this file except in compliance with the License.
//
// You may obtain a copy of the License, together with FAQs... | 519 |
348 | {"nom":"Bissy-sur-Fley","circ":"5ème circonscription","dpt":"Saône-et-Loire","inscrits":89,"abs":39,"votants":50,"blancs":13,"nuls":0,"exp":37,"res":[{"nuance":"REM","nom":"<NAME>","voix":24},{"nuance":"LR","nom":"<NAME>","voix":13}]} | 98 |
60,067 | <filename>benchmarks/distributed/rpc/parameter_server/trainer/trainer.py<gh_stars>1000+
import functools
import time
from abc import ABC, abstractmethod
from metrics.MetricsLogger import MetricsLogger
import torch
class TrainerBase(ABC):
BATCH_LEVEL_METRIC = "batch_level_metric"
BATCH_ALL = "batch_all"
... | 3,957 |
683 | <reponame>laurit/opentelemetry-java-instrumentation
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.cassandra.v3_0;
import static io.opentelemetry.javaagent.instrumentation.cassandra.v3_0.CassandraSingletons.instrumenter;
import ... | 2,305 |
3,586 | <gh_stars>1000+
package com.linkedin.common.urn;
import com.linkedin.data.message.Message;
import com.linkedin.data.schema.DataSchema;
import com.linkedin.data.schema.NamedDataSchema;
import com.linkedin.data.schema.validator.Validator;
import com.linkedin.data.schema.validator.ValidatorContext;
import java.net.URISyn... | 399 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.