max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
364 | package com.linkedin.dagli.transformer;
import com.linkedin.dagli.distribution.SampledWithReplacement;
import com.linkedin.dagli.math.distribution.ArrayDiscreteDistribution;
import com.linkedin.dagli.math.hashing.DoubleXorShift;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class... | 396 |
483 | <reponame>pombredanne/osv<filename>gcp/appengine/rate_limiter.py
# Copyright 2021 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.... | 415 |
1,285 | <gh_stars>1000+
package net.minestom.server.instance.block.rule;
import net.minestom.server.entity.Player;
import net.minestom.server.instance.Instance;
import net.minestom.server.instance.block.Block;
import net.minestom.server.instance.block.BlockFace;
import net.minestom.server.coordinate.Point;
import org.jetbrain... | 633 |
1,615 | '''
Module for testing support.
'''
from .environment import Environment
| 19 |
420 | #b站爬番剧列表
import json
import requests
import re
from bs4 import BeautifulSoup
url = 'https://m.bilibili.com/bangumi/play/ss29366'
headers = {'user-agent' : 'Mozilla/5.0 (Linux; Android 10; Z832 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Mobile Safari/537.36'}
rec = requests.get(url,h... | 424 |
370 | <reponame>gerritg/voxelshop
package com.vitco.app.util.components.dialog;
/**
* Called when the state of a module changes
*/
public interface DialogModuleChangeListener {
// called when the ready state of a component has changed
// Note: this does propagate upwards
void onReadyStateChanged();
// call... | 136 |
4,339 | /*
* 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 may ... | 936 |
1,752 | <filename>MyPerf4J-Base/src/test/java/cn/myperf4j/base/influxdb/InfluxDbClientTest.java
package cn.myperf4j.base.influxdb;
import org.junit.Test;
import java.util.concurrent.TimeUnit;
/**
* Created by LinShunkang on 2020/05/19
*/
public class InfluxDbClientTest {
private final InfluxDbClient influxDbClient = ... | 519 |
808 | // @HEADER
// ***********************************************************************
//
// Teuchos: Common Tools Package
// Copyright (2004) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of this work by or on behalf of... | 4,952 |
4,124 | <reponame>chenqixu/jstorm
/**
* 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... | 1,217 |
14,668 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_DISPOSITION_HANDLER_H_
#define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_DISPOSITION_HANDLER_H_
#includ... | 530 |
1,210 | <filename>src/AgentAI/aimodel/dqn/ReplayMemory.py
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making GameAISDK available.
This source code file is licensed under the GNU General Public License Version 3.
For full details, please refer to the file "LICENSE.txt" which is provid... | 2,694 |
2,175 | package wang.imallen.blog.servicemanager.lifecycle.frag;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Image... | 935 |
1,139 | <reponame>ghiloufibelgacem/jornaldev<filename>Android/SharedElementTransition/app/src/main/java/com/journaldev/sharedelementtransition/MainActivity.java
package com.journaldev.sharedelementtransition;
import android.content.Intent;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.ActivityOpt... | 998 |
3,055 | <reponame>Linghhh/u8g2
/*
item.h
*/
#ifndef _ITEM_H
#define _ITEM_H
#include <stdint.h>
struct _pos_struct
{
uint8_t x;
uint8_t y;
};
typedef struct _pos_struct pos_t;
struct _item_struct
{
pos_t pos;
uint8_t dir; /* movement has two parts: 1. dir is set, then 2. dir is executed */
uint8_t tile;... | 341 |
546 | import os
import unittest
import numpy as np
import ConfigSpace as CS
from hpbandster.optimizers.config_generators.bohb import BOHB
from hpbandster.core.dispatcher import Job
class TestBinaryRssRegressionForest(unittest.TestCase):
def setUp(self):
self.configspace = CS.ConfigurationSpace()
self.HPs = []
... | 698 |
460 | <reponame>LMsgSendNilSelf/AlgebraicEngine-Fraction-
//
// ExtendMethod.h
// FractionCalculateEngine
//
// Created by lmsgsendnilself on 16/4/27.
// Copyright © 2016年 p. All rights reserved.
//
#import <Foundation/Foundation.h>
extern long long gcd(long long p, long long q);
extern long long lcm(long long x, long ... | 174 |
5,169 | {
"name": "cordova-plugin-ionic-webview",
"version": "2.1.4",
"summary": "The Web View plugin for Cordova that is specialized for Ionic apps",
"description": "The Web View plugin for Cordova that is specialized for Ionic apps.\n\nThis project use WKWebView (IOS) and some improvements for Webview (Android)",
"... | 340 |
488 | /*
* AOSModuleCheck.hpp
*
* Created on: Sep 3, 2013
* Author: <NAME>
*/
#ifndef AOSCHECK_HPP_
#define AOSCHECK_HPP_
#include <map>
#include <vector>
#include "ModuleBase.hpp"
#include "StructUtil.hpp"
using namespace std;
using namespace SageBuilder;
using namespace SageInterface;
class AOSModuleCheck :... | 339 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-w8c5-6q8q-cxfx",
"modified": "2022-05-01T07:09:20Z",
"published": "2022-05-01T07:09:20Z",
"aliases": [
"CVE-2006-3474"
],
"details": "Multiple SQL injection vulnerabilities in Belchior Foundry vCard PRO allow remote attackers to execute arbitrary SQL commands v... | 526 |
14,425 | <filename>hadoop-cloud-storage-project/hadoop-huaweicloud/src/main/java/org/apache/hadoop/fs/obs/FileConflictException.java<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 informa... | 446 |
714 | package com.mcxiaoke.minicat.dao.model;
import android.content.ContentValues;
import android.net.Uri;
import android.os.Parcelable;
/**
* @author mcxiaoke
* @version 1.0 2011.12.21
*/
public interface Model extends Parcelable {
public abstract ContentValues values();
public abstract Uri getContentUri();
... | 113 |
310 | <gh_stars>100-1000
//
// MTICVPixelBufferRendering.h
// MetalPetal
//
// Created by <NAME> on 08/04/2018.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, MTICVPixelBufferRenderingAPI) {
MTICVPixelBufferRenderingAPIDefault = 1,
MTICVPixelBufferRenderingAPIMetalPetal ... | 383 |
2,690 | # Copyright 2015 ClusterHQ Inc. See LICENSE file for details.
from ipaddr import IPAddress
from uuid import uuid4
from jsonschema.exceptions import ValidationError
from twisted.internet.task import Clock
from flocker.apiclient import FakeFlockerClient, Node
from flocker.testtools import TestCase
from benchmark.cl... | 1,967 |
348 | {"nom":"Saint-Michel-sous-Bois","dpt":"Pas-de-Calais","inscrits":106,"abs":12,"votants":94,"blancs":8,"nuls":7,"exp":79,"res":[{"panneau":"1","voix":47},{"panneau":"2","voix":32}]} | 80 |
743 | <gh_stars>100-1000
/* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
// Created by <NAME> on 20.07.12.
#import <Foundation/Foundation.h>
@interface TreeOutlin... | 171 |
1,444 | <reponame>FateRevoked/mage
package org.mage.test.cards.single.soi;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* Defender
*
* Thing in the Ice enters the battlefield with four ice counters on it.
*
* Whenever you... | 1,027 |
16,461 | // Copyright © 2021 650 Industries. All rights reserved.
// do not modify this file - generated by scripts/generate-tests.js
// GENERATED CONSTANTS BEGIN
FOUNDATION_EXPORT NSString * const EXStructuredHeadersBinaryTests;
FOUNDATION_EXPORT NSString * const EXStructuredHeadersBooleanTests;
FOUNDATION_EXPORT NSString ... | 435 |
5,169 | <gh_stars>1000+
{
"name": "ABLoader",
"version": "0.0.2",
"summary": "ABLoader is a custom loader indicator that you can use in combination with MBProgressHUD.",
"description": "ABLoader is a view for your projects that you can use in place of your standard indicator when your app is processing a background thr... | 305 |
859 | <gh_stars>100-1000
#include "pch.h"
#include <pplawait.h>
using namespace concurrency;
using namespace winrt;
using namespace Windows::Foundation;
task<void> ppl(bool& done)
{
co_await resume_background();
done = true;
}
IAsyncAction async(bool& done)
{
co_await resume_background();
done = true;
}
I... | 770 |
955 | <reponame>aicentral/pytorch_cluster<gh_stars>100-1000
#pragma once
#include <torch/extension.h>
#define CHECK_CPU(x) AT_ASSERTM(x.device().is_cpu(), #x " must be CPU tensor")
#define CHECK_INPUT(x) AT_ASSERTM(x, "Input mismatch")
| 100 |
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.
#ifndef CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
#define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
#include <stddef.h>
#include <stdint.h>
#include "base/compile... | 1,737 |
952 | {
"version": "2015-03-22",
"description": "Provision SSH access without requiring a password for each login.",
"homepage": "https://github.com/VijayS1/Scripts/blob/master/ssh-copy-id/README.md",
"license": "GPL-2.0-only",
"depends": [
"gow",
"openssh"
],
"url": "http... | 278 |
357 | /*
* Copyright © 2012-2016 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the “License”); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 1,473 |
7,737 | <gh_stars>1000+
extern zend_class_entry *phalcon_html_helper_input_abstractinput_ce;
ZEPHIR_INIT_CLASS(Phalcon_Html_Helper_Input_AbstractInput);
PHP_METHOD(Phalcon_Html_Helper_Input_AbstractInput, __invoke);
PHP_METHOD(Phalcon_Html_Helper_Input_AbstractInput, __toString);
PHP_METHOD(Phalcon_Html_Helper_Input_Abstrac... | 908 |
357 | /*
PsychToolbox3/Source/Common/PsychHID/PsychHIDGetDevices.c
PROJECTS: PsychHID
PLATFORMS: All
AUTHORS:
<EMAIL> awi
<EMAIL> mk
HISTORY:
4/29/03 awi Created.
*/
#include "PsychHID.h"
static char useString[] = "devices=PsychHID('Devices' [, deviceClass])";
static char syno... | 22,055 |
32,544 | <gh_stars>1000+
package com.baeldung.reflection.voidtype;
public class Calculator {
private int result = 0;
public int add(int number) {
return result += number;
}
public int sub(int number) {
return result -= number;
}
public void clear() {
result = 0;
}
pub... | 157 |
724 | # -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | 305 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 1,651 |
5,964 | <reponame>wenfeifei/miniblink49
// 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 "config.h"
#include "bindings/core/v8/ScriptWrappable.h"
#include "bindings/core/v8/DOMDataStore.h"
#include "bi... | 1,150 |
397 | //
// SettingsSectionModel.h
// sample-videochat-webrtc
//
// Created by Injoit on 2/25/19.
// Copyright © 2019 Quickblox. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface SettingsSectionModel : NSObject
@property (copy, nonatomic, readonly) NSString *title;
@property (strong, nonatomic) NSAr... | 179 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Webbing",
"definitions": [
"Strong, closely woven fabric used for making items such as straps and belts, and for supporting the seats of upholstered chairs.",
"The system of belts, pouches, and straps worn by a soldier as part of his combat uniform.",... | 149 |
8,456 | package redis.clients.jedis.commands;
import java.util.List;
public interface ScriptingKeyCommands {
/**
* <b><a href="http://redis.io/commands/eval">Eval Command</a></b>
* Use to evaluate scripts using the Lua interpreter built into Redis starting from version 2.6.0.
* @param script Lua 5.1 script. The s... | 1,335 |
461 | <filename>09-Priority-Queue(Heap)/2-Importance/0215-kth-largest-element-in-an-array/src/Solution3.java<gh_stars>100-1000
import java.util.Random;
public class Solution3 {
private static Random random = new Random(System.currentTimeMillis());
public int findKthLargest(int[] nums, int k) {
int len = n... | 1,108 |
2,151 | <reponame>b-pos465/Getaviz4HoloLens
package org.junit.internal.runners;
import java.util.Arrays;
import java.util.List;
/**
* Use the published version:
* {@link org.junit.runners.model.InitializationError}
* This may disappear as soon as 1 April 2009
*/
@Deprecated
public class InitializationError extends Except... | 342 |
515 | /*
* ctkNetworkConnectorZeroMQ.cpp
* ctkEventBus
*
* Created by <NAME> on 11/04/10.
* Copyright 2009 B3C. All rights reserved.
*
* See Licence at: http://tiny.cc/QXJ4D
*
*/
#include "ctkNetworkConnectorZeroMQ.h"
#include "ctkEventBusManager.h"
#include <service/event/ctkEvent.h>
using namespace ctkEven... | 616 |
350 | {
"name": "goodshare.js",
"version": "6.2.1",
"description": "Useful modern JavaScript solution for share a link from your website to social networks or mobile messengers.",
"main": "goodshare.min.js",
"scripts": {
"update": "npm outdated && npx npm-check-updates -u && npm install",
"build": "rollup -... | 519 |
3,200 | /**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... | 748 |
562 | <gh_stars>100-1000
#include <ares.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#if !defined(WIN32) || defined(WATT32)
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/socket.h>
#include <unistd.h>
#else
#inc... | 1,323 |
6,989 | <reponame>cwensley/ironpython2
"""Fixer that addes parentheses where they are required
This converts ``[x for x in 1, 2]`` to ``[x for x in (1, 2)]``."""
# By <NAME> and <NAME>
# Local imports
from .. import fixer_base
from ..fixer_util import LParen, RParen
# XXX This doesn't support nested for loops like [x for x... | 664 |
448 | /** A strongly connected component of a graph is a subgraph
* such that all vertices of the subgraph are connected to each other,
* means we can reach every other vertices in the subgraph from any vertices **/
/** Tarjan's SCC algorithm uses stack to keep track of the nodes while we are visiting
* such that all t... | 1,167 |
1,353 | /*
* Copyright (c) 2012, <NAME>
* 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 retain the above copyright
* notice, this list of condition... | 7,530 |
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
* ... | 1,592 |
764 | <filename>erc20/0xe394E83F5738CCFc78B6A0DCf46cE58A05523F65.json
{
"symbol": "SUC",
"address": "0xe394E83F5738CCFc78B6A0DCf46cE58A05523F65",
"overview":{
"en": "Suc is based on the ERC-20 standard certificate developed by Ethereum, with \na total amount of 1 billion, and will never be issued.",
... | 601 |
357 | <reponame>dcnieho/Psychtoolbox-3
/*
PsychtoolboxGL/Source/Common/PsychHID/PsychHIDKbQueueFlush.c
PROJECTS:
PsychHID only.
PLATFORMS:
All.
AUTHORS:
<EMAIL> rpw
<EMAIL> mk
HISTORY:
8/23/07 rpw Created.
NOTES:
*/
#include "PsychHID.h"
static char use... | 904 |
1,194 | {
"resourceType": "OperationDefinition",
"id": "Claim-submit",
"text": {
"status": "generated",
"div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\u003ch2\u003eSubmit a Claim resource for adjudication\u003c/h2\u003e\u003cp\u003eOPERATION: Submit a Claim resource for adjudication\u003c/p\u... | 1,882 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-frjw-hc7c-8r47",
"modified": "2022-05-01T06:43:50Z",
"published": "2022-05-01T06:43:50Z",
"aliases": [
"CVE-2006-0922"
],
"details": "CubeCart 3.0 through 3.6 does not properly check authorization for an administration session because of a missing auth.inc.php ... | 867 |
14,425 | /*
* 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 ... | 3,782 |
412 | {
"screenshotsFolder": "cypress/screenshots",
"videosFolder": "cypress/videos",
"fixturesFolder": false,
"supportFile": false,
"video": false
}
| 53 |
335 | <reponame>virenb/Hacktoberfest-1
{
"word": "Elephant",
"definitions": [
"a very large plant-eating mammal with a prehensile trunk, long curved ivory tusks, and large ears",
"a size of paper, typically 28 × 23 inches"
],
"parts-of-speech": "noun"
}
| 102 |
3,269 | <reponame>Sourav692/FAANG-Interview-Preparation
# Time: O(n)
# Space: O(1)
class Solution(object):
def findMaxConsecutiveOnes(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
result, prev, curr = 0, 0, 0
for n in nums:
if n == 0:
re... | 275 |
338 | package fr.lteconsulting.pomexplorer.graph;
import fr.lteconsulting.pomexplorer.Project;
import fr.lteconsulting.pomexplorer.ProjectContainer;
import fr.lteconsulting.pomexplorer.Session;
import fr.lteconsulting.pomexplorer.model.Gav;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Str... | 680 |
473 | <reponame>pingjuiliao/cb-multios
#include "libpov.h"
int main(int cgc_argc, char *cgc_argv[]) {
cgc_negotiate_type1(0x0, 0x0, 0);
do {
//*** writing data
static unsigned char write_00000_00000[] =
"\x04\x04\x00\x00";
static unsigned int write_00000_00000_len = 4;
unsigned char *w... | 7,678 |
1,668 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
import django.db.models.deletion
import taggit.managers
import django.core.validators
import mptt.fields
import ralph.lib.mixins.models
import ralph.lib.mixins.fields
class Migrat... | 7,733 |
335 | <reponame>mrslezak/Engine<filename>OREData/ored/model/modeldata.hpp
/*
Copyright (C) 2020 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistrib... | 642 |
1,745 | //********************************* bs::framework - Copyright 2018-2019 <NAME> ************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#pragma once
#include "BsScriptEnginePrerequisites.h"
#include "BsScriptObje... | 504 |
1,152 | # -*- coding: utf-8 -*-
import rtmidi
import random
# ------------------------------------------------------------------------------
class Midi:
InvalidType = 0x00 # For notifying errors
NoteOff = 0x80 # Note Off
NoteOn = 0x90 # Note On
AfterTouchPoly ... | 1,809 |
575 | <filename>weblayer/browser/android/javatests/src/org/chromium/weblayer/test/TabCallbackTest.java
// 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.
package org.chromium.weblayer.test;
import android.net.U... | 7,118 |
343 | #include "xdot/xdot.c"
| 12 |
2,338 | <reponame>mkinsner/llvm
#include <isl/ctx.h>
#include <isl/id_to_id.h>
#include <isl/id.h>
#define isl_id_is_equal(id1,id2) isl_bool_ok(id1 == id2)
#define ISL_KEY isl_id
#define ISL_VAL isl_id
#define ISL_HMAP_SUFFIX id_to_id
#define ISL_HMAP isl_id_to_id
#define ISL_KEY_IS_EQUAL isl_id_is_equal
#define ISL_VAL_IS... | 234 |
491 | /*
* Encog(tm) Core v3.4 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2017 Heaton Research, 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... | 2,365 |
648 | {"resourceType":"DataElement","id":"Encounter.statusHistory","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/Encounter.statusHistory","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"Encounter.statusHistory","short":"List of past encou... | 168 |
4,140 | /*
* 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 ... | 8,832 |
399 | package com.amazonaws.athena.connector.lambda.security;
/*-
* #%L
* Amazon Athena Query Federation SDK
* %%
* Copyright (C) 2019 Amazon Web Services
* %%
* 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 ... | 704 |
769 | <reponame>lilirui520/java-client-api
package com.offbytwo.jenkins.integration;
import java.io.IOException;
import java.net.URI;
import org.junit.Test;
import com.offbytwo.jenkins.JenkinsServer;
import com.offbytwo.jenkins.model.Plugin;
import com.offbytwo.jenkins.model.PluginDependency;
import com.offbytwo.jenkins.m... | 1,052 |
1,105 | /*******************************************************************************
*
* (C) COPYRIGHT AUTHORS, 2018 - 2019
*
* TITLE: WINE.H
*
* VERSION: 1.73
*
* DATE: 09 Mar 2019
*
* Agent Donald code.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
* ANY KIND, EITHER EXPRESSE... | 279 |
1,947 | <filename>valhalla/baldr/transittransfer.h
#ifndef VALHALLA_BALDR_TRANSITTRANSFER_H_
#define VALHALLA_BALDR_TRANSITTRANSFER_H_
#include <cstdint>
#include <valhalla/baldr/graphconstants.h>
namespace valhalla {
namespace baldr {
/**
* Transit transfer information between stops.
*/
class TransitTransfer {
public:
... | 624 |
938 | {
"modifier_id": "tconstruct:knockback_armor",
"text": [
{
"text": "Stop wasting energy running and make your foes waste energy returning to you."
}
],
"effects": [
"Knocks back enemies on hit with any weapon",
"Multiple levels, increases force of knockback per level",
"Requires 1 Upgr... | 117 |
555 | <reponame>Eroschang/ranger<gh_stars>100-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 Lice... | 1,270 |
23,901 | // Copyright 2021 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 applicable law... | 5,847 |
1,720 | #pragma once
#include <memory>
#include "BlockProvider.h"
#include "VolumeDescriptor.h"
#include "PathTable.h"
#include "DirectoryRecord.h"
class CISO9660
{
public:
typedef std::shared_ptr<ISO9660::CBlockProvider> BlockProviderPtr;
CISO9660(const BlockProviderPtr&);
~CISO9660();
void ReadBlock(u... | 282 |
605 | <reponame>yuriykoch/llvm
//===---------- Linux implementation of a quick exit function ---*- 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
//
//===--... | 342 |
5,169 | {
"name": "LocalSearchKit",
"version": "0.1.0",
"summary": "Addition to MKLocalSearch to handle multiple search queries",
"description": " MKLocalSearch is a local POI search feature released by Apple.\n\n * It doesn't easily handle multiple queries\n ... | 380 |
625 | package jtransc.jtransc.nativ;
public class JTranscReinterpretArrays {
static public void main(String[] args) {
System.out.println("JTranscReinterpretArrays:");
/*
byte[] bytes = new byte[8];
float[] floats = JTranscArrays.nativeReinterpretAsFloat(bytes);
System.out.println("bytes:" + bytes.length + " : " +... | 242 |
13,648 | <filename>tests/basics/deque1.py<gh_stars>1000+
try:
try:
from ucollections import deque
except ImportError:
from collections import deque
except ImportError:
print("SKIP")
raise SystemExit
d = deque((), 2)
print(len(d))
print(bool(d))
try:
d.popleft()
except IndexError:
print... | 481 |
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
#define INT_COMP... | 341 |
575 | <reponame>mghgroup/Glide-Browser
// 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_CHROMEOS_POLICY_SINGLE_INSTALL_EVENT_LOG_H_
#define CHROME_BROWSER_CHROMEOS_POLICY_SINGLE_INSTALL_... | 2,677 |
653 | <filename>itstack-naive-chat-ui/src/test/java/org/itstack/navice/test/ApiTest.java
package org.itstack.navice.test;
/**
* 博 客:http://bugstack.cn
* 公众号:bugstack虫洞栈 | 沉淀、分享、成长,让自己和他人都能有所收获!
* create by 小傅哥 on @2020
*/
public class ApiTest {
public static void main(String[] args) {
System.out.println("h... | 205 |
558 | // 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
// distributed ... | 8,132 |
10,225 | <reponame>PieterjanDeconinck/quarkus
package io.quarkus.vault.runtime;
import static io.quarkus.vault.runtime.LogConfidentialityLevel.MEDIUM;
public class LeaseBase extends TimeLimitedBase {
public String leaseId;
public LeaseBase(String leaseId, boolean renewable, long leaseDurationSecs) {
super(re... | 252 |
442 | <reponame>lyubimovm/AZTransitions
//
// AZTransitions.h
// AZTransitions
//
// Created by <NAME> on 02/11/2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for AZTransitions.
FOUNDATION_EXPORT double AZTransitionsVersionNumber;
//! Project version string... | 163 |
441 | /*
* Copyright (c) 2020 Network New Technologies 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 appli... | 835 |
1,283 | package com.pengrad.telegrambot.request;
import com.pengrad.telegrambot.response.ChatInviteLinkResponse;
/**
* <NAME>
* 10 March 2021
*/
public class EditChatInviteLink extends BaseRequest<EditChatInviteLink, ChatInviteLinkResponse> {
public EditChatInviteLink(Object chatId, String inviteLink) {
super... | 431 |
488 | int main()
{
double c, b;
float a, d;
#pragma scop
a = 0.6f;
b = 120.7234234f;
c = 4.0;
d = 5;
#pragma endscop
}
| 71 |
854 | /*[clinic input]
preserve
[clinic start generated code]*/
PyDoc_STRVAR(_ssl__SSLSocket_do_handshake__doc__,
"do_handshake($self, /)\n"
"--\n"
"\n");
#define _SSL__SSLSOCKET_DO_HANDSHAKE_METHODDEF \
{"do_handshake", (PyCFunction)_ssl__SSLSocket_do_handshake, METH_NOARGS, _ssl__SSLSocket_do_handshake__doc__},
s... | 19,702 |
412 | <reponame>mauguignard/cbmc<gh_stars>100-1000
public class ArithmeticExceptionTest {
public static void main(String args[]) {
try {
int i=0;
int j=10%i;
}
catch(ArithmeticException exc) {
assert false;
}
}
}
| 148 |
371 | <gh_stars>100-1000
from __future__ import division
import numpy as np
import scipy.sparse as ssp
def top_k(values, k, exclude=[]):
''' Return the indices of the k items with the highest value in the list of values.
Exclude the ids from the list "exclude".
'''
# Put low similarity to viewed items to exclude them f... | 298 |
778 | <gh_stars>100-1000
/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/helpers/file_io.h"
#include "shared/test/common/helpers/test_files.h"
#include "opencl/source/program/program.h"
#include "opencl/test/unit_test/mocks/mock_program.h"
#inc... | 697 |
1,461 | <filename>external/hlsl2glslfork/hlslang/GLSLCodeGen/glslCommon.cpp
// Copyright (c) The HLSL2GLSLFork Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE.txt file.
#include "glslStruct.h"
#include <string.h>
#include <stdlib.h>
name... | 2,914 |
1,508 | package org.knowm.xchange.ftx.service;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.dto.Order;
import org.knowm.xchange.dto.account.OpenPositions;
import org.knowm.xchange.dto.trade.LimitOrder;
import org.knowm.xchange.dto.trade.MarketOrder;
import org.knowm.xchange.dto.trade.OpenOrders;
import org.know... | 1,080 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.