max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
318 | <reponame>burcin/opengm
#ifndef DUAL_DECOMPOSITION_BUNDLE_PARAM
#define DUAL_DECOMPOSITION_BUNDLE_PARAM
#include "param_exporter_base.hxx"
//solver specific
#include <opengm/inference/graphcut.hxx>
#include <opengm/inference/dualdecomposition/dualdecomposition_bundle.hxx>
using namespace boost::python;
template<clas... | 496 |
22,028 | <filename>python/28_binary_heap/top_k.py<gh_stars>1000+
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import random
from heap import MinHeap
def top_k(nums, k):
"""
返回数组的前k大元素
:param nums:
:param k:
:return:
"""
if len(nums) <= k:
return nums
min_h = MinHeap(nums[:k], k)
for ... | 389 |
834 | /*
* Copyright (c) 2004-present, Facebook, Inc.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... | 555 |
933 | <reponame>android-risc-v/external_perfetto<filename>src/trace_processor/tables/macros.h
/*
* Copyright (C) 2019 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 Licen... | 1,435 |
419 | package com.swagger.entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* @author Levin
* @since 2018/8/6 0006
*/
@ApiModel
public class Page {
@ApiModelProperty(required = true)
private Integer page;
@ApiModelProperty(required = false)
private Integ... | 239 |
348 | {"nom":"Montastruc-Savès","circ":"8ème circonscription","dpt":"Haute-Garonne","inscrits":58,"abs":18,"votants":40,"blancs":4,"nuls":1,"exp":35,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":20},{"nuance":"SOC","nom":"M. <NAME>","voix":15}]} | 102 |
1,362 | package org.mitre.synthea.helpers;
/*
* Copyright (C) 2011 Google 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... | 2,176 |
978 | /*
Copyright <NAME> 2008-2014
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)
*/
#ifndef BOOST_PREDEF_COMPILER_WATCOM_H
#define BOOST_PREDEF_COMPILER_WATCOM_H
#include <boost/predef/version_number.h>
#include <boost/pre... | 706 |
1,073 | <gh_stars>1000+
// RUN: %clang_cc1 -triple armv7 -fsyntax-only -verify %s
// RUN: %clang_cc1 -triple armv7 -target-abi apcs-gnu \
// RUN: -fsyntax-only -verify %s
void f(void *a, void *b) {
__clear_cache(); // expected-error {{too few arguments to function call, expected 2, have 0}} // expected-note {{'__clear_cac... | 3,521 |
759 | from ..transformer_vanilla import MultiHeadSelfAttention, TransformerEncoder
import torch
import torch.nn as nn
from einops import rearrange
from self_attention_cv import TransformerEncoder
class Transformer3dSeg(nn.Module):
def __init__(self, *,
subvol_dim=24, # W in the paper
... | 1,810 |
1,997 | <filename>api/src/main/java/ai/djl/modality/rl/env/RlEnv.java
/*
* Copyright 2020 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* ... | 1,472 |
342 | #include <stdint.h>
typedef struct vtest_TwoInts {
ValeInt a;
ValeInt b;
} vtest_TwoInts;
int vtest_extGetFromTuple(vtest_TwoInts ints) {
return ints.b;
}
| 75 |
1,755 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... | 1,116 |
17,703 | #pragma once
#include <vector>
#include "envoy/http/header_map.h"
namespace Envoy {
namespace Http {
class HeaderListView {
public:
using HeaderStringRefs = std::vector<std::reference_wrapper<const HeaderString>>;
HeaderListView(const HeaderMap& header_map);
const HeaderStringRefs& keys() const { return keys... | 160 |
12,252 | package org.keycloak.client.registration.cli.config;
/**
* @author <a href="mailto:<EMAIL>"><NAME></a>
*/
public interface ConfigHandler {
void saveMergeConfig(ConfigUpdateOperation op);
ConfigData loadConfig();
}
| 75 |
678 | <filename>iOSOpenDev/frameworks/DataAccess.framework/Frameworks/DADaemonSupport.framework/Headers/DASearchQueryConsumer.h
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/DataAccess.framework/Frameworks/DADaemonSupport.framework/DADaemonSupport
*/
@protocol DASea... | 164 |
769 | // Copyright 2017 ETH Zurich and University of Bologna.
// Copyright and related rights are licensed under the Solderpad Hardware
// License, Version 0.51 (the “License”); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
// http://solderpad.org/licenses/SHL-0.... | 616 |
713 | package org.infinispan.marshall.core.impl;
import static org.infinispan.util.logging.Log.CONTAINER;
import java.io.IOException;
import org.infinispan.commons.configuration.ClassAllowList;
import org.infinispan.commons.dataconversion.MediaType;
import org.infinispan.commons.io.ByteBuffer;
import org.infinispan.common... | 908 |
1,455 | <gh_stars>1000+
/*
* Copyright 2011-2021 the original author or 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | 4,418 |
1,723 | /*
* Copyright (C) 2019 Intel Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*/
#include <stdbool.h>
#include <sys/stat.h>
#include <time.h>
#include <fcntl.h>
/** time clock **/
int
ocall_clock_gettime(unsigned clock_id, void *tp_buf, unsigned int tp_buf_size)
{
re... | 537 |
321 | /**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENSE-2.0
*
* Copyright (c) Hoteia, 2012-2014
* http://www.hoteia.com - http://twitter.com/hoteia - <EMAIL>
... | 1,073 |
3,897 | /* mbed Microcontroller Library
* Copyright (c) 2018 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*
* 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... | 892 |
60,067 | <filename>benchmarks/operator_benchmark/common/tests/c2_cpu_gpu_forward_backward_test.py
import operator_benchmark as op_bench
from caffe2.python import core
add_configs = op_bench.cross_product_configs(
M=[8],
N=[8],
K=[8],
tags=["short"],
device=["cuda", "cpu"]
)
class AddBenchmark(op_bench.Caf... | 584 |
551 | <filename>src/arch/Dialog/DialogDriver_Win32.h
#ifndef DIALOG_BOX_DRIVER_WIN32_H
#define DIALOG_BOX_DRIVER_WIN32_H
#include "DialogDriver.h"
class DialogDriver_Win32 : public DialogDriver
{
public:
void Error(const std::string& sMessage, const std::string& sID);
void OK(const std::string& sMessage, const std::str... | 259 |
2,338 | <reponame>mkinsner/llvm
#define Y MainDirectoryTwo
| 19 |
1,093 | /*
* Copyright 2002-2019 the original author or 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1,088 |
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_UI_VIEWS_FRAME_CUSTOM_TAB_BROWSER_FRAME_H_
#define CHROME_BROWSER_UI_VIEWS_FRAME_CUSTOM_TAB_BROWSER_FRAME_H_
#include "chrome/brow... | 256 |
348 | {"nom":"Schirrhein","circ":"9ème circonscription","dpt":"Bas-Rhin","inscrits":1839,"abs":1226,"votants":613,"blancs":32,"nuls":4,"exp":577,"res":[{"nuance":"REM","nom":"<NAME>","voix":323},{"nuance":"LR","nom":"<NAME>","voix":254}]} | 94 |
1,350 | {
"networkCallRecords" : [ {
"Method" : "POST",
"Uri" : "https://REDACTED.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations",
"Headers" : {
"User-Agent" : "azsdk-java-azure-ai-metricsadvisor/1.1.0-beta.1 (11.0.9; Windows 10; 10.0)",
"x-ms-client-request-id" : "11ecf0... | 2,160 |
678 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
#import "PBCoding.h"
@class NSString;
@interface DBContactLocal : NSObject <PBCoding>
{
unsigned int chatState;
unsigned int needUpdate;
unsigned int m... | 372 |
527 | //
// TMSideCell.h
// Timi
//
// Created by chairman on 16/6/26.
// Copyright © 2016年 LaiYoung. All rights reserved.
//
#import <UIKit/UIKit.h>
@class TMBooks;
@protocol TMSideCellDelegate <NSObject>
@required
@optional
- (void)TMSideCellWithIndexPath:(NSIndexPath *)indexPath withLongPress:(UILongPressGestureRecog... | 267 |
1,582 | <gh_stars>1000+
//
// kern_keyvalue.cpp
// VirtualSMC
//
// Copyright © 2017 vit9696. All rights reserved.
//
#include <Headers/kern_iokit.hpp>
#include <Headers/kern_util.hpp>
#include <VirtualSMCSDK/kern_value.hpp>
bool VirtualSMCValue::init(const SMC_DATA *d, SMC_DATA_SIZE sz, SMC_KEY_TYPE t, SMC_KEY_ATTRIBUTES... | 678 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Laye","circ":"2ème circonscription","dpt":"Hautes-Alpes","inscrits":224,"abs":85,"votants":139,"blancs":4,"nuls":2,"exp":133,"res":[{"nuance":"REM","nom":"<NAME>","voix":75},{"nuance":"DVD","nom":"M. <NAME>","voix":19},{"nuance":"FN","nom":"Mme <NAME>","voix":19},{"nuanc... | 240 |
407 | /**
* Copyright 2007 The Apache Software Foundation
*
* 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... | 1,773 |
435 | <gh_stars>100-1000
{
"blurb": "Recursive functions are functions that call themselves.",
"authors": ["SleeplessByte"],
"contributors": []
}
| 48 |
311 | <gh_stars>100-1000
import os
import re
import copy
import json
import logging
import configparser
from androguard.misc import *
from androguard.core import *
from analysis_utils import AnalysisUtils
from code_analyser_trace_adv import CodeTraceAdvanced
from common import Conversions
TRACE_FORWARD = 'FORWARD'
TRACE_REV... | 14,885 |
348 | {"nom":"Vougy","circ":"3ème circonscription","dpt":"Haute-Savoie","inscrits":1095,"abs":703,"votants":392,"blancs":17,"nuls":2,"exp":373,"res":[{"nuance":"LR","nom":"<NAME>","voix":240},{"nuance":"REM","nom":"<NAME>","voix":133}]} | 93 |
562 | from conans import ConanFile, tools
import os
import glob
class KainjowMustacheConan(ConanFile):
name = "kainjow-mustache"
description = "Mustache text templates for modern C++"
topics = ("conan", "mustache", "template")
url = "https://github.com/conan-io/conan-center-index"
homepage = "https://gi... | 470 |
347 | <reponame>hbraha/ovirt-engine
package org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model;
import org.ovirt.engine.core.common.action.ActionType;
import org.ovirt.engine.core.common.scheduling.AffinityGroup;
import org.ovirt.engine.core.compat.Guid;
import org.ovirt.engine.ui.uicommonweb.... | 373 |
9,182 | // ======================================================================
// \title GenericRepeaterComponentImpl.hpp
// \author joshuaa
// \brief hpp file for GenericRepeater component implementation class
//
// \copyright
// Copyright 2009-2015, by the California Institute of Technology.
// ALL RIGHTS RESERVED. Uni... | 449 |
3,075 | <reponame>pvdlageweg/powermock<gh_stars>1000+
package samples.annotationbased;
import samples.annotationbased.testannotations.RuntimeAnnotation;
@RuntimeAnnotation
public class AnnotatedClassDemo {
public static boolean staticMethod() {
return false;
}
}
| 92 |
1,593 | import os
from pyshark.capture.capture import Capture
class FileCapture(Capture):
"""A class representing a capture read from a file."""
def __init__(self, input_file=None, keep_packets=True, display_filter=None, only_summaries=False,
decryption_key=None, encryption_type="wpa-pwk", decode_a... | 2,075 |
1,216 | <gh_stars>1000+
import sublime
import sublime_plugin
import logging
import difflib
from random import random
from .clipboard import g_clipboard_history
from .recency import RecencyManager
from .terminal import Terminal
logger = logging.getLogger('Terminus')
class TerminusCoreEventListener(sublime_plugin.EventListe... | 1,957 |
330 | import datetime
import json
import helpers
import requests
from models import Setting
def farsightip(indicator):
settings = Setting.query.filter_by(_id=1).first()
apikey = settings.farsightkey
headers = {'X-API-Key': apikey, 'accept': 'application/json'}
ip = requests.get("https://api.dnsdb.info/looku... | 657 |
2,338 | //===-- APINotesTest.cpp - API Notes Testing Tool ------------------ C++ --===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 896 |
2,996 | <reponame>Elyahu41/Terasology
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.input;
import org.terasology.engine.entitySystem.entity.EntityRef;
@FunctionalInterface
public interface BindAxisSubscriber {
void update(float value, float delta, Entity... | 105 |
424 | /*
* Copyright (c) 2011-2021 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
* which is available at https:... | 502 |
60,067 | <filename>aten/src/ATen/core/UndefinedTensorImpl.h
#include <c10/core/UndefinedTensorImpl.h>
| 37 |
4,028 | """
Formatter classes for the progress bar.
Each progress bar consists of a list of these formatters.
"""
import datetime
import time
from abc import ABCMeta, abstractmethod
from typing import TYPE_CHECKING, List, Tuple
from prompt_toolkit.formatted_text import (
HTML,
AnyFormattedText,
StyleAndTextTuples,... | 5,254 |
525 | ///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2019, Nefelus Inc
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//... | 13,018 |
335 | <gh_stars>100-1000
#include <stdlib.h>
#include <JSON.h>
#include <string>
#include <string.h>
#include <sys/stat.h>
#include <errno.h>
#include <esp_log.h>
static char tag[] = "FILESYSTEM_JSON";
JsonObject FILESYSTEM_GET_JSON(std::string path) {
ESP_LOGD(tag, "FILESYSTEM_GET_JSON: path is %s", path.c_str());
ESP_L... | 371 |
32,467 | /*
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://... | 685 |
4,405 | /*
** 2018-01-08
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
**************************... | 12,228 |
326 | <reponame>AathmanT/cv-tricks.com
import cv2
import argparse
import numpy as np
import sys
parser = argparse.ArgumentParser()
parser.add_argument('--input', help='Path to input image.')
args = parser.parse_args()
# Minimum confidence threshold. Increasing this will improve false positives but will also reduce detectio... | 862 |
435 | <gh_stars>100-1000
{
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "<NAME>\u0140<NAME> - Pytest desde las trincheras\n[EuroPython 2016]\n[19 July 2016]\n[Bilbao, Euskadi, Spain]\n(https://ep2016.europython.eu//conference/talks/pytest-desde-las-trincheras)\n\nTodo programad... | 949 |
607 | template <typename T>
class Foo* fct(T t);
| 18 |
553 | package com.github.kagkarlsson.scheduler.task.schedule;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.time.LocalTime;
import java.time.ZoneId;
import java.util.Optional;
import static com.github.kagkarlsson.scheduler.task.schedule.ScheduleParsersHelper.assertScheduleNotPrese... | 1,293 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-cmp8-gm3r-973j",
"modified": "2022-02-25T00:01:22Z",
"published": "2022-02-17T00:00:29Z",
"aliases": [
"CVE-2022-23203"
],
"details": "Adobe Photoshop versions 22.5.4 (and earlier) and 23.1 (and earlier) are affe... | 399 |
917 | from unittest import mock
import pytest
from briefcase.exceptions import BriefcaseCommandError
def test_no_git(new_command):
"If Git is not installed, an error is raised"
# Mock a non-existent git
integrations = mock.MagicMock()
integrations.git.verify_git_is_installed.side_effect = BriefcaseCommand... | 378 |
1,602 | <reponame>jhh67/chapel<gh_stars>1000+
void vector_add(float *a, float *b, float *c, float alpha, int n);
| 44 |
647 | <filename>trick_sims/SIM_wheelbot/models/Control/include/vehicleController.hh<gh_stars>100-1000
/*
* PURPOSE: (VehicleController class)
*/
#ifndef VEHICLE_CONTROLLER_HH
#define VEHICLE_CONTROLLER_HH
#include <vector>
#include "Guidance/include/point.hh"
#include "Guidance/include/navigator.hh"
#include "Control/incl... | 518 |
6,958 | //
// testTrain.cpp
// MNN
//
// Created by MNN on 2021/06/22.
// Copyright © 2018, Alibaba Group Holding Limited
//
#define MNN_OPEN_TIME_TRACE
#include <MNN/MNNDefine.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <MNN/AutoTime.hpp>
#include <MNN/Interpreter.hpp>
#inclu... | 2,179 |
1,894 | <gh_stars>1000+
# 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.
"""Client for getting revision info."""
from __future__ import print_function
from __future__ import division
from __future__ import absolute_... | 596 |
1,771 | <reponame>sergiiz/datasketch
import sys
import os
import unittest
import asyncio
import pickle
import random
import string
import aiounittest
import numpy as np
from itertools import chain, islice
from motor.motor_asyncio import AsyncIOMotorClient
from pymongo import MongoClient
from datasketch.experimental.aio.lsh i... | 10,316 |
320 | <reponame>yvesjores/AndroidSensorsProgramming
/*
* Gray8HistEq.java
*
* Created on September 9, 2006, 2:05 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*
* Copyright 2007 by <NAME>
* This program is free software: you can redistribute it an... | 1,401 |
2,151 | // Copyright (c) 2011 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 "net/disk_cache/disk_cache_test_util.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/logging.h"
#include "b... | 1,543 |
1,127 | // Copyright (C) 2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <common_test_utils/ngraph_test_utils.hpp>
namespace ov {
namespace test {
namespace snippets {
class CollapseSubgraphTests : public TransformationTestsF {
public:
virtual void run();
};
} // namespace snipp... | 118 |
5,678 | """
The :mod:`imblearn.exceptions` module includes all custom warnings and error
classes and functions used across imbalanced-learn.
"""
# Authors: <NAME> <<EMAIL>>
# License: MIT
def raise_isinstance_error(variable_name, possible_type, variable):
raise ValueError(
f"{variable_name} has to be one of {pos... | 129 |
2,151 | <reponame>zipated/src<gh_stars>1000+
// 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 SERVICES_NETWORK_PUBLIC_CPP_SIGNED_TREE_HEAD_MOJOM_TRAITS_H_
#define SERVICES_NETWORK_PUBLIC_CPP_SIGNED_TREE_... | 1,048 |
1,273 | package org.broadinstitute.hellbender.tools.walkers.coverage;
import org.broadinstitute.hellbender.utils.BaseUtils;
import java.util.*;
/**
* A class for storing summarized coverage statistics for DepthOfCoverage.
*/
public class DepthOfCoverageStats {
/////////////////////////////////////////////////////////... | 4,119 |
375 | <reponame>obrienben/openwayback
/*
* This file is part of the Wayback archival access software
* (http://archive-access.sourceforge.net/projects/wayback/).
*
* Licensed to the Internet Archive (IA) by one or more individual
* contributors.
*
* The IA licenses this file to You under the Apache License, Ve... | 1,099 |
2,144 | /**
* 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,189 |
348 | {"nom":"Brion","circ":"7ème circonscription","dpt":"Isère","inscrits":109,"abs":38,"votants":71,"blancs":5,"nuls":1,"exp":65,"res":[{"nuance":"LR","nom":"<NAME>","voix":45},{"nuance":"REM","nom":"<NAME>","voix":20}]} | 87 |
370 | <gh_stars>100-1000
package com.jeremyliao.plugin.extension;
import java.util.List;
/**
* Created by liaohailiang on 2019/1/25.
*/
public class DemoExtension {
private boolean enable;
private String message;
private List<String> strings;
public boolean isEnable() {
return enable;
}
... | 397 |
852 | <reponame>Purva-Chaudhari/cmssw
#!/usr/bin/env python3
"""
_cosmicsHybrid_
Scenario supporting cosmics data taking in hybrid mode
"""
from Configuration.DataProcessing.Impl.cosmics import cosmics
class cosmicsHybrid(cosmics):
def __init__(self):
cosmics.__init__(self)
self.customs = [ "RecoLocalT... | 549 |
363 | <reponame>LaudateCorpus1/ik<filename>ik/include/python/ik/python/ik_type_Solver.h
#include "Python.h"
struct ik_solver_t;
typedef struct ik_Node ik_Node;
typedef struct ik_Solver
{
PyObject_HEAD
struct ik_solver_t* solver;
ik_Node* tree;
} ik_Solver;
extern PyTypeObject ik_SolverType;
int
init_ik_Solver... | 152 |
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... | 3,833 |
2,151 | /*!****************************************************************************
@file OGLES2/PVRTTextureAPI.h
@ingroup API_OGLES2
@copyright Copyright (c) Imagination Technologies Limited.
@brief OGLES2 texture loading.
***********************************************************************... | 1,371 |
1,899 | <filename>src/algorithms/lb/BGModelFuzzyGauss.h
#pragma once
#include "BGModel.h"
namespace bgslibrary
{
namespace algorithms
{
namespace lb
{
namespace BGModelFuzzyGaussParams {
const float ALPHAFUZZYGAUSS = 0.02f;
const float THRESHOLDFUZZYGAUSS = 3.5f;
const float THRESHOL... | 436 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Pleasure",
"definitions": [
"A feeling of happy satisfaction and enjoyment.",
"Enjoyment and entertainment, as opposed to necessity.",
"An event or activity from which one derives enjoyment.",
"Sensual gratification."
],
"parts... | 129 |
692 | <reponame>learnforpractice/micropython-cpp
#
# This is a Sphinx documentation tool extension which allows to
# automatically exclude from full-text search index document
# which are not referenced via toctree::. It's intended to be
# used with toctrees conditional on only:: directive, with the
# idea being that if you ... | 445 |
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... | 1,842 |
1,857 | <filename>app/analyzers/indicators/obv.py
""" OBV Indicator
"""
import math
import pandas
from talib import abstract
from analyzers.utils import IndicatorUtils
class OBV(IndicatorUtils):
def analyze(self, historical_data, signal=["obv"], hot_thresh=None, cold_thresh=None):
"""Performs OBV analysis on t... | 581 |
476 | <filename>release/src-rt-6.x.4708/router/iptables-1.4.x/extensions/libxt_cluster.c
/*
* (C) 2009 by <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include... | 2,067 |
583 | ///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2008-08-03
// Updated : 20... | 1,480 |
5,169 | {
"name": "HHShare",
"version": "0.0.1",
"summary": "A simple share tool for qq and wechat",
"description": "\"This is a simple share tool for qq and wechat without integration of SDKs.\"",
"homepage": "https://github.com/huangxinyu1213/HHShare",
"license": {
"type": "MIT",
"file": "LICENSE"
},
... | 252 |
772 | <reponame>binbash5447/scrimage
package com.sksamuel.scrimage.canvas.drawables;
import com.sksamuel.scrimage.canvas.Drawable;
import com.sksamuel.scrimage.canvas.GraphicsContext;
import com.sksamuel.scrimage.graphics.RichGraphics2D;
public class RoundedRect implements Drawable {
private final int x;
private fin... | 509 |
2,542 | <gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
... | 1,284 |
12,366 | <gh_stars>1000+
// Copyright 2017 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 required by applicable law ... | 1,839 |
301 | <gh_stars>100-1000
/******************************************************************
*
* Copyright 2015 Samsung Electronics All Rights Reserved.
*
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of... | 2,359 |
897 | import java.util.Scanner;
public class linkedListReverse {
static Node head;
class Node{
public int data;
public Node next;
Node(int data){
this.data=data;
}
}
void add(int data)
{ Node ctr=head;
Node ptr = new Node(data);
if(ctr==null)
{
head=ptr;
ptr.next=null;
}
else
{
... | 669 |
858 | <reponame>cashbitecrypto/cashbite
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
//
// Copyright (c) 2011... | 10,820 |
334 | <reponame>featuretower/GYMonitor
//
// GYRootViewController.h
// GYMonitorDemo
//
// Created by towerfeng on 16/9/9.
// Copyright © 2016年 featuretower. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface GYRootViewController : UITableViewController
@end
| 97 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.security.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annot... | 2,296 |
335 | {
"word": "Cholecalciferol",
"definitions": [
"One of the D vitamins, a sterol essential for the deposition of calcium in bones and formed by the action of sunlight on dehydrocholesterol in the skin."
],
"parts-of-speech": "Noun"
} | 89 |
3,570 | package com.microsoft.Malmo.MissionHandlers;
import static org.lwjgl.opengl.GL11.GL_DEPTH_COMPONENT;
import static org.lwjgl.opengl.GL11.GL_FLOAT;
import static org.lwjgl.opengl.GL11.glReadPixels;
import java.nio.ByteBuffer;
import java.nio.FloatBuffer;
import net.minecraft.client.Minecraft;
import net.minecraft.cli... | 1,800 |
3,428 | <filename>lib/node_modules/@stdlib/datasets/cmudict/data/vp.json
{"!exclamation-point":"EH2 K S K L AH0 M EY1 SH AH0 N P OY2 N T","\"close-quote":"K L OW1 Z K W OW1 T","\"double-quote":"D AH1 B AH0 L K W OW1 T","\"end-of-quote":"EH1 N D AH0 V K W OW1 T","\"end-quote":"EH1 N D K W OW1 T","\"in-quotes":"IH1 N K W OW1 T S... | 965 |
439 | <reponame>syanle/science-parse
[
["title", "Noisy Matrix Decomposition via Convex Relaxation: Optimal Rates in High Dimensions"],
["line", "Abstract"],
["line", "In this paper, we consider a family of regularizers"]
] | 68 |
341 | <filename>source/AccessorySDK/Support/SHAUtils.c
/*
File: SHAUtils.c
Package: Apple CarPlay Communication Plug-in.
Abstract: n/a
Version: 410.12
Disclaimer: IMPORTANT: This Apple software is supplied to you, by Apple Inc. ("Apple"), in your
capacity as a current, and in good standing, Licensee in the MF... | 22,126 |
1,338 | /*
* Copyright 2003-2004, <NAME> <<EMAIL>>
* Distributed under the terms of the MIT License.
*/
#ifndef IPCP__H
#define IPCP__H
#define IPCP_LOCAL_SIDE_KEY "Local"
#define IPCP_PEER_SIDE_KEY "Peer"
#define IPCP_IP_ADDRESS_KEY "Address"
#define IPCP_NETMASK_KEY "Netmask"
#define IPCP_PRIMARY_DNS_KEY "Prim... | 179 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.