max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
498 | <gh_stars>100-1000
//
// MFMethodMapTable.h
// MangoFix
//
// Created by jerry.yong on 2018/2/23.
// Copyright © 2018年 yongpengliang. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RunnerClasses+Execute.h"
NS_ASSUME_NONNULL_BEGIN
@interface MFMethodMapTableItem:NSObject
@property (strong, no... | 292 |
4,640 | <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
* ... | 21,281 |
4,901 | <filename>jre_emul/android/platform/libcore/luni/src/test/java/libcore/java/lang/ThrowableTest.java<gh_stars>1000+
/*
* Copyright (C) 2010 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... | 1,801 |
14,668 | <filename>chrome/browser/autofill/android/save_update_address_profile_prompt_controller.cc
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/autofill/android/save_update_address_p... | 2,853 |
887 | <reponame>traversaro/gazebo<filename>deps/opende/include/gazebo/ode/misc.h
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001,2002 <NAME>. *
* All rights reserved. Email... | 2,054 |
1,337 | <gh_stars>1000+
/*
* Copyright (c) 2008-2016 Haulmont.
*
* 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 appli... | 300 |
473 | #include "libpov.h"
int main(int cgc_argc, char *cgc_argv[]) {
cgc_negotiate_type1(0x0, 0x0, 0);
do {
unsigned char *read_00000;
unsigned int read_00000_len;
unsigned int read_00000_ptr = 0;
//**** delimited read
static unsigned char read_00000_delim[] =
"\x3a\x20";
r... | 196,543 |
570 | package cn.taroco.oauth2.authentication.mvc.filter;
import cn.taroco.oauth2.authentication.entity.AuthenticationBean;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.security.authentication.UsernamePasswordAuthe... | 855 |
351 | <reponame>BenjaminWegener/tensorflow-directml<filename>tensorflow/core/common_runtime/dml/dml_adapter.cc
/* Copyright (c) Microsoft Corporation.
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
... | 770 |
663 | <filename>mongo/datadog_checks/mongo/collectors/fsynclock.py<gh_stars>100-1000
from datadog_checks.mongo.collectors.base import MongoCollector
from datadog_checks.mongo.common import MongosDeployment, ReplicaSetDeployment
class FsyncLockCollector(MongoCollector):
"""Collects the mongodb.fsyncLock metric by checki... | 416 |
458 | from .base import BaseClass, base_function
__all__ = ["BaseClass", "base_function"]
| 26 |
22,481 | """Support for Neato botvac connected vacuum cleaners."""
from datetime import timedelta
import logging
from pybotvac import Account
from urllib3.response import HTTPResponse
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.util import Throttle
from... | 713 |
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... | 726 |
10,876 | <filename>ports/spaceland/vcpkg.json
{
"name": "spaceland",
"version-string": "7.8.2",
"port-version": 5,
"description": "Spaceland Lib (sl) is a suite for geometric computation, specifically adapted to OpenGL.",
"dependencies": [
"zlib"
]
}
| 95 |
6,224 | <reponame>lviala-zaack/zephyr
# Copyright (c) 2021 Zephyr Project members and individual contributors
# SPDX-License-Identifier: Apache-2.0
# File intentionally empty
| 52 |
5,169 | {
"name": "ElongationPreview",
"version": "1.0.0",
"summary": "ElongationPreview is an elegant push-pop style view controller.",
"license": "MIT",
"homepage": "https://github.com/Ramotion/elongation-preview",
"authors": {
"<NAME>": "<EMAIL>"
},
"platforms": {
"ios": "9.0"
},
"source": {
... | 206 |
2,753 | #!/usr/bin/env python
import shogun as sg
from tools.load import LoadMatrix
lm=LoadMatrix()
traindat = lm.load_dna('../data/fm_train_dna.dat')
testdat = lm.load_dna('../data/fm_test_dna.dat')
parameter_list=[[traindat,testdat],[traindat,testdat]]
def kernel_local_alignment_string (fm_train_dna=traindat,fm_test_dna=te... | 313 |
319 | <filename>neural/export.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: penghuailiang
# @Date : 2019-09-19
import os
import shutil
import struct
import cv2
import sys
import utils
import threading
import util.logit as log
"""
此工具
1. 用来生成一些规则的model(.bytes)
可以在引擎里加载 显示对应的脸型
Unity 菜单选择Tools->SelectM... | 2,299 |
1,267 | {
"extends": [
"tslint-config-standard",
"tslint-config-prettier"
],
"rules": {
"semicolon": [
true,
"never"
],
"quotemark": [
true, "single"
],
"no-var-requires": false,
"trailing-comma": [false],
"ordered-imports": [false],
"no-console": [
false
... | 198 |
5,478 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import codecs
from ..utils.trie import Trie
class PinYin(object):
def __init__(self, fname):
self.handle = Trie()
fr = codecs.open(fname, 'r', 'utf-8')
for line in fr:
words = line.split()
self.handl... | 312 |
1,695 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 1,626 |
2,542 | // ------------------------------------------------------------
// 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
namespace Reliab... | 1,005 |
649 | package net.poc.questions.factory;
import net.serenitybdd.screenplay.Question;
import net.poc.model.Note;
import net.poc.questions.NumberOfNotesInDashboard;
import net.poc.questions.PresentNotesInDashboard;
import java.util.List;
public class NoteDashboard {
public static Question<Integer> numberOfNotes() {
... | 165 |
998 | // Copyright 2021 Phyronnaz
#pragma once
#include "CoreMinimal.h"
#include "VoxelMultiplayer/VoxelMultiplayerInterfaceWithSocket.h"
#include "VoxelMultiplayerTcp.generated.h"
class FSocket;
class FTcpListener;
struct FIPv4Endpoint;
class FVoxelMultiplayerTcpServer;
class FVoxelMultiplayerTcpClient;
//... | 425 |
550 | /*
* Copyright 2016 Google 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 a... | 11,336 |
522 | <reponame>konny0311/algorithms-nutshell-2ed
package algs.model.performance.chapter7;
import algs.debug.DottyDebugger;
import algs.model.problems.fifteenpuzzle.GoodEvaluator;
import algs.model.problems.fifteenpuzzle.FifteenPuzzleNode;
import algs.model.searchtree.debug.AStarSearch;
import algs.model.searchtree.Solution... | 486 |
1,014 | <reponame>MobileAir/FinanceDatabase
[
"Biotechnology",
"Gold",
"Leisure",
"Marine Shipping",
"Shell Companies",
"Utilities - Renewable"
] | 73 |
575 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGPU_GPU_DEVICE_LOST_INFO_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGPU_GPU_DEVICE_LOST_INFO_H_
#incl... | 322 |
543 | <gh_stars>100-1000
/*
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* pub... | 1,018 |
454 | <filename>evalml/model_understanding/permutation_importance.py
"""Permutation importance methods."""
import numpy as np
import pandas as pd
from joblib import Parallel, delayed
from evalml.objectives.utils import get_objective
from evalml.problem_types import is_classification
from evalml.utils import infer_feature_ty... | 4,707 |
1,003 | <reponame>it00021hot/mogu_blog_v2<gh_stars>1000+
package com.moxi.mogublog.spider.mapper;
import com.moxi.mogublog.spider.entity.BlogSpider;
import com.moxi.mougblog.base.mapper.SuperMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author xuzhixiang
* @since 2018-09-17
*/
public interface BlogSpiderMapper extends Su... | 151 |
3,483 | /*
* Copyright (c) 2015, University of Michigan.
* 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.
*
*/
/*... | 1,169 |
2,151 | // Copyright 2014 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 <stdint.h>
#include "base/strings/string_number_conversions.h"
#include "chrome/test/remoting/remote_desktop_browsertest.h"
namespace remoting ... | 1,158 |
929 | <reponame>erdal-pb/kitsune
import jinja2
from django_jinja import library
from kitsune.access import utils as access
@jinja2.pass_context
@library.global_function
def has_perm(context, perm, obj):
"""
Check if the user has a permission on a specific object.
Returns boolean.
"""
return access.has... | 287 |
634 | /*
* Copyright 2000-2012 JetBrains s.r.o.
*
* 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 agre... | 336 |
6,097 | #include <glm/ext/vector_bool1.hpp>
#include <glm/ext/vector_bool1_precision.hpp>
template <typename genType>
static int test_operators()
{
int Error = 0;
genType const A(true);
genType const B(true);
{
bool const R = A != B;
bool const S = A == B;
Error += (S && !R) ? 0 : 1;
}
return Error;
}
template ... | 895 |
1,599 | package org.bsoftware.ward.controllers;
import org.bsoftware.ward.exceptions.ApplicationNotSetUpException;
import org.bsoftware.ward.services.UsageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import o... | 361 |
1,383 | #include "float_math.h"
#include "ConvexBuilder.h"
#include "meshvolume.h"
#include "bestfit.h"
#include <assert.h>
#include "cd_hull.h"
#include "fitsphere.h"
#include "bestfitobb.h"
unsigned int MAXDEPTH = 8 ;
float CONCAVE_PERCENT = 1.0f ;
float MERGE_PERCENT = 2.0f ;
ChUll::ChUll(const ConvexResult &result)
{
... | 3,526 |
1,545 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 633 |
1,909 | <gh_stars>1000+
package org.knowm.xchange.latoken.dto.marketdata;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.util.Date;
import org.knowm.xchange.latoken.dto.trade.LatokenOrderSide;
/**
* Response schema:
*
* <pre>
* {
* "side": "sell",
* "price": 136.2,
* ... | 644 |
3,100 | <gh_stars>1000+
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 <NAME>. All rights reserved. ... | 996 |
388 | #include "tensorflow/core/lib/core/error_codes.pb.h"
| 22 |
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... | 613 |
320 | from hachoir.metadata.metadata import extractMetadata # noqa
# Just import the module,
# each module use registerExtractor() method
import hachoir.metadata.archive # noqa
import hachoir.metadata.audio # noqa
import hachoir.metadata.file_system # noqa
import hachoir.metadata.image # noqa
import hachoir.metadata.jp... | 168 |
1,148 | class Node:
def __init__(self, data):
self.data = data
self.next = None
self.prev = None
class doublyLinkedList:
def __init__(self):
self.head = None
def insertFirst(self):
data = int(input("Enter the value of the node to be inserted : "))
newNode = Node(data)
newNode.next = self.head
newNode.prev ... | 3,292 |
3,212 | <reponame>westdart/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,500 |
482 | package org.nutz.boot.starter.uflo;
import org.hibernate.SessionFactory;
import org.nutz.boot.AppContext;
import org.nutz.ioc.Ioc;
import org.nutz.log.Log;
import org.nutz.log.Logs;
import org.springframework.transaction.PlatformTransactionManager;
import com.bstek.uflo.env.EnvironmentProvider;
public class UfloEnvi... | 683 |
1,599 | <reponame>Roshan-Thomas/qiskit-terra
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-... | 809 |
1,697 | package iot.technology.thingsboard.ruleengine.service;
/**
* @author mushuwei
*/
public interface ActorService {
}
| 35 |
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 required by app... | 428 |
368 | <reponame>gta-chaos-mod/plugin-sdk
/*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "PluginBase.h"
namespace plugin {
META_BEGIN(CPedStats::Initialise)
static i... | 1,094 |
831 | /*
* Copyright (C) 2014 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... | 1,461 |
445 | <filename>ipysheet/__init__.py
from ._version import version_info, __version__
from .sheet import Cell, Range, Sheet, Renderer
from .easy import *
from .pandas_loader import from_dataframe, to_dataframe
from .numpy_loader import from_array, to_array
def _jupyter_nbextension_paths(): # pragma: no cover
return [{
... | 178 |
2,466 | package org.jetbrains.skija.examples.scenes;
import org.jetbrains.skija.*;
public class MatrixScene extends Scene {
@Override
public void draw(Canvas canvas, int width, int height, float dpi, int xpos, int ypos) {
canvas.translate(20, 20);
try (var stroke = new Paint().setColor(0x40000000).se... | 1,789 |
763 | <filename>projects/batfish/src/test/java/org/batfish/bddreachability/transition/EraseAndSetTest.java
package org.batfish.bddreachability.transition;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
import java.util.Arrays;
import net.sf.javabdd.BDD;
import org.batfish.common.bdd... | 870 |
1,541 | <filename>src/main/java/com/bwssystems/HABridge/plugins/harmony/ButtonPress.java
package com.bwssystems.HABridge.plugins.harmony;
public class ButtonPress {
private String device;
private String button;
private Integer delay;
private Integer count;
private String hub;
private Integer pressTime;
public ... | 458 |
3,182 | package de.plushnikov.intellij.plugin.configsystem;
/**
* Unit tests for IntelliJPlugin for Lombok with activated config system
*/
public class FieldDefaultsTest extends AbstractLombokConfigSystemTestCase {
@Override
protected String getBasePath() {
return super.getBasePath() + "/configsystem/fieldDefaults"... | 333 |
1,645 | /*
* Seldon -- open source prediction engine
* =======================================
*
* Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/)
*
* ********************************************************************************************
*
* Licensed under the Apache License, V... | 1,863 |
841 | <filename>testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/response/resource/CookieResource.java
package org.jboss.resteasy.test.response.resource;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.Response;
@Path("cookie")
public class Cook... | 380 |
38,047 | <filename>src/geohash.c
/*
* Copyright (c) 2013-2014, yinqiwen <<EMAIL>>
* Copyright (c) 2014, <NAME> <<EMAIL>>.
* Copyright (c) 2015-2016, <NAME> <<EMAIL>>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... | 4,473 |
945 | /*
* 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,100 |
318 | package xyz.msws.nope.commands.sub;
import java.util.ArrayList;
import java.util.IllegalFormatException;
import java.util.List;
import javax.naming.OperationNotSupportedException;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import xyz.msws.nope.NOPE;
import xy... | 1,011 |
14,668 | // 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 CHROME_BROWSER_HISTORY_HISTORY_TEST_UTILS_H_
#define CHROME_BROWSER_HISTORY_HISTORY_TEST_UTILS_H_
class Profile;
// Spins the current message lo... | 160 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport
*/
#import <OfficeImport/OfficeImport-Structs.h>
#import <OfficeImport/XXUnknownSuperclass.h>
#import <OfficeImport/OABFillPropertiesManager.h>
#import <OfficeImport/OABColorProper... | 768 |
2,406 | // Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <ngraph/variant.hpp>
#include "ngraph/op/util/variable_context.hpp"
BWDCMP_RTTI_DEFINITION(ov::VariantWrapper<ov::op::util::VariableContext>);
| 89 |
6,557 | <filename>packages/@react-aria/table/intl/lv-LV.json
{
"ascending": "augošā secībā",
"ascendingSort": "kārtots pēc kolonnas {columnName} augošā secībā",
"descending": "dilstošā secībā",
"descendingSort": "kārtots pēc kolonnas {columnName} dilstošā secībā",
"select": "Atlasīt",
"selectAll": "Atlasīt visu",
... | 163 |
345 | import os
import unittest
from programytest.client import TestClient
class SurveyTestsClient(TestClient):
def __init__(self):
TestClient.__init__(self, debug=True)
def load_storage(self):
super(SurveyTestsClient, self).load_storage()
self.add_default_stores()
self.add_catego... | 477 |
369 | /** @file
@brief Header
Must be c-safe!
@date 2014
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
/*
// Copyright 2014 Sensics, 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... | 843 |
372 | /* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
* -*- mode: c, c-basic-offset: 4 -*- */
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | 3,467 |
348 | {"nom":"Etreillers","circ":"2ème circonscription","dpt":"Aisne","inscrits":933,"abs":534,"votants":399,"blancs":30,"nuls":4,"exp":365,"res":[{"nuance":"LR","nom":"<NAME>","voix":235},{"nuance":"FN","nom":"Mme <NAME>","voix":130}]} | 94 |
569 | package de.tu_darmstadt.seemoo.nfcgate.network.threading;
import android.util.Log;
import java.io.DataOutputStream;
import java.io.IOException;
import de.tu_darmstadt.seemoo.nfcgate.network.data.NetworkStatus;
import de.tu_darmstadt.seemoo.nfcgate.network.data.SendRecord;
import de.tu_darmstadt.seemoo.nfcgate.networ... | 573 |
809 | <gh_stars>100-1000
/*
* LensKit, an open-source toolkit for recommender systems.
* Copyright 2014-2017 LensKit contributors (see CONTRIBUTORS.md)
* Copyright 2010-2014 Regents of the University of Minnesota
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and ass... | 1,203 |
348 | <filename>docs/data/t2/079/79139.json
{"nom":"<NAME>","dpt":"Deux-Sèvres","inscrits":49,"abs":4,"votants":45,"blancs":7,"nuls":0,"exp":38,"res":[{"panneau":"1","voix":29},{"panneau":"2","voix":9}]} | 90 |
14,668 | // 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.
#ifndef CONTENT_RENDERER_PEPPER_PEPPER_CAMERA_DEVICE_HOST_H_
#define CONTENT_RENDERER_PEPPER_PEPPER_CAMERA_DEVICE_HOST_H_
#include <stdint.h>
#include <... | 778 |
377 | #pragma once
//------------------------------------------------------------------------------
/**
Job system allows for scheduling and execution of a parallel task.
The job system works as follows. First one creates a job port with a name
and some threads. The threads will be named as the port but with the... | 3,060 |
854 | __________________________________________________________________________________________________
sample 0 ms submission
class Solution {
public boolean isBoomerang(int[][] p) {
return (p[0][0] - p[1][0]) * (p[0][1] - p[2][1]) != (p[0][0] - p[2][0]) * (p[0][1] - p[1][1]);
}
}
__________________________... | 615 |
989 | <filename>ShineMp3/l3loop.h<gh_stars>100-1000
#ifndef L3LOOP_H
#define L3LOOP_H
void shine_loop_initialise(shine_global_config *config);
void shine_iteration_loop(shine_global_config *config);
#endif
| 82 |
392 | /*
* Abstract interface for pseudorandom number generators.
*/
#ifndef MATH__RANDOM__GENERATORS__RAND_GEN_HH
#define MATH__RANDOM__GENERATORS__RAND_GEN_HH
namespace math {
namespace random {
namespace generators {
/*
* Abstract interface for pseudorandom number generator.
*/
template <typename T = double>
class r... | 232 |
930 | package com.dianping.pigeon.remoting.common.util;
import java.nio.ByteBuffer;
import java.security.DigestException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmExcept... | 2,545 |
1,303 | <filename>src/include/catalog/genbki.h<gh_stars>1000+
/*-------------------------------------------------------------------------
*
* genbki.h
* Required include file for all POSTGRES catalog header files
*
* genbki.h defines CATALOG(), DATA(), BKI_BOOTSTRAP and related macros
* so that the catalog header fi... | 561 |
1,104 | package org.nativescript.plugins.firebase;
import android.app.Activity;
import android.app.Application;
import android.os.Bundle;
import android.util.Log;
/**
* Subscribe to the Pause and Resume activity events in order to toggle the PushPlugin's status.
* When the Plugin is not in active state - i.e. at foreground... | 636 |
517 | //
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) Contributors to the OpenEXR Project.
//
//-----------------------------------------------------------------------------
//
// class TimeCodeAttribute
//
//-----------------------------------------------------------------------------
#define COMPILING_IMF_TI... | 498 |
413 | <reponame>ktts16/mini-caffe
// TanH neuron activation function layer.
// Adapted from ReLU layer code written by <NAME>
#include <vector>
#include "./tanh_layer.hpp"
#ifdef USE_CUDNN
#include "./cudnn/cudnn_tanh_layer.hpp"
#endif // USE_CUDNN
namespace caffe {
void TanHLayer::Forward_cpu(const vector<Blob*>& bott... | 410 |
965 | <reponame>bobbrow/cpp-docs<filename>docs/mfc/reference/codesnippet/CPP/ctreectrl-class_2.cpp
HTREEITEM hItem = m_TreeCtrl.GetSelectedItem();
CImageList *pImageList = m_TreeCtrl.CreateDragImage(hItem);
// Do something with the image list.
delete pImageList; | 97 |
3,486 | package com.thinkaurelius.titan.graphdb.types;
import com.google.common.base.Preconditions;
import com.thinkaurelius.titan.core.*;
import com.thinkaurelius.titan.core.Cardinality;
import com.thinkaurelius.titan.core.Multiplicity;
import com.thinkaurelius.titan.core.schema.PropertyKeyMaker;
import com.thinkaurelius.tit... | 1,145 |
4,407 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import pytest
import time
from utils_nlp.common.timer import Timer
TOL = 0.01
@pytest.fixture(scope="function")
def t():
return Timer()
def test_no_time(t):
assert t.interval == 0
assert t.running == False
... | 391 |
1,602 | /* detect-sysv: Copyright 2008, <NAME>
This is a program that will tell you the maximum
supported Posix shared memory segment available on a machine. (or, of
course, if it doesn't compile/run, that they aren't supported).
On Linux, link with -lrt
*/
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#i... | 622 |
1,444 | <reponame>amc8391/mage
package mage.cards.p;
import mage.MageInt;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.keyword.ScryEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import java.util... | 395 |
575 | <filename>content/browser/payments/payment_manager.h<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.
#ifndef CONTENT_BROWSER_PAYMENTS_PAYMENT_MANAGER_H_
#define CONTENT_BROWSER_PAYMENT... | 1,033 |
3,680 | <filename>pxr/base/trace/testenv/testTraceRecursion.py
#!/pxrpythonsubst
#
# Copyright 2018 Pixar
#
# Licensed under the Apache License, Version 2.0 (the "Apache License")
# with the following modification; you may not use this file except in
# compliance with the Apache License and the following modification to it:
# ... | 3,854 |
1,408 | /*
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <platform_def.h>
#include <common/bl_common.h>
#include <common/interrupt_props.h>
#include <drivers/arm/gicv3.h>
#include <lib/utils.h>
#include <plat/common/platform.h>
/***********... | 1,026 |
2,646 | <reponame>stuarth/mruby
/**
** @file mruby/hash.h - Hash class
**
** See Copyright Notice in mruby.h
*/
#ifndef MRUBY_HASH_H
#define MRUBY_HASH_H
#include "common.h"
/**
* Hash class
*/
MRB_BEGIN_DECL
/* offset of `iv` must be 3 words */
struct RHash {
MRB_OBJECT_HEADER;
#ifdef MRB_64BIT
uint32_t size;
stru... | 2,480 |
1,144 | // Generated Model - DO NOT CHANGE
package de.metas.handlingunits.model;
import java.sql.ResultSet;
import java.util.Properties;
import javax.annotation.Nullable;
/** Generated Model for M_PickingSlot_Trx
* @author metasfresh (generated)
*/
@SuppressWarnings("unused")
public class X_M_PickingSlot_Trx extends org.... | 1,446 |
765 | <filename>src/dev/mc146818.hh
/*
* Copyright (c) 2004-2005 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must ret... | 2,262 |
756 | <filename>src/qt/drawables/drawable_polygon3d.cpp
// Copyright (C) 2020 <NAME>, <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation... | 691 |
606 | <reponame>AKuHAK/ps2sdk
/*
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
# Licenced under ... | 8,666 |
865 | <reponame>antmicro/nextpnr<gh_stars>100-1000
/*
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2019 gatecat <<EMAIL>>
* Copyright (C) 2021 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided... | 3,733 |
2,151 | /******************************************************************************
@File PVRTGeometry.cpp
@Title PVRTGeometry
@Version
@Copyright Copyright (c) Imagination Technologies Limited.
@Platform Independant
@Description Code to affect triangle mesh geometry.
*************... | 16,706 |
488 | /******************************************
* Category: DFA
* DefUse Analysis Declaration (per Function)
* created by tps in Feb 2007
*****************************************/
#ifndef __DefUseAnalysisPF_HXX_LOADED__
#define __DefUseAnalysisPF_HXX_LOADED__
#include <string>
#include "DefUseAnalysisAbstract.h"
cl... | 667 |
1,114 | <reponame>abod1944/cognitive-services-speech-sdk
package com.microsoft.cognitiveservices.speech.samples.console;
import com.microsoft.cognitiveservices.speech.audio.AudioStreamFormat;
import com.microsoft.cognitiveservices.speech.audio.PullAudioInputStreamCallback;
import java.io.IOException;
import java.io.InputStre... | 2,069 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.