max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
679 | <reponame>Grosskopf/openoffice<gh_stars>100-1000
#!/usr/bin/env python
# *************************************************************
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional informatio... | 1,930 |
332 | //
// ISHPermissionRequestEventStore.h
// ISHPermissionKit
//
// Created by <NAME> on 02.07.14.
// Copyright (c) 2014 iosphere GmbH. All rights reserved.
//
#import "ISHPermissionRequest.h"
#if defined(ISHPermissionRequestCalendarEnabled) || defined(ISHPermissionRequestRemindersEnabled)
/**
* Permission reques... | 157 |
945 | <reponame>RYH61/iotdb<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 Licen... | 3,954 |
3,323 | <gh_stars>1000+
"""Test AdaNet estimator single graph implementation for TF 2.
Copyright 2019 The AdaNet Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://w... | 2,507 |
3,294 |
#pragma once
/////////////////////////////////////////////////////////////////////////////
// CCalendarBar window
class CCalendarBar : public CWnd
{
// Construction
public:
CCalendarBar();
// Attributes
protected:
CMonthCalCtrl m_wndCalendar;
int m_nMyCalendarsY;
CImageList m_Images;
// Overrides
public:
virt... | 236 |
415 |
/*
* Copyright 2009, 2010 Grove City College
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 511 |
848 | <filename>tools/Vitis-AI-Library/segmentation/src/segmentation_imp.cpp
/*
* Copyright 2019 Xilinx 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/lic... | 2,255 |
310 | {
"name": "101",
"description": "A digital multimeter.",
"url": "https://www.fluke.com/en-sg/product/electrical-testing/digital-multimeters/fluke-101"
}
| 59 |
879 | package org.zstack.compute.vm;
public interface VmNicQosConfigBackend {
String getVmInstanceType();
void addNicQos(String vmUuid, String vmNicUuid, Long outboundBandwidth, Long inboundBandwidth);
void deleteNicQos(String vmUuid, String vmNicUuid,String direction);
VmNicQosStruct getNicQos(String ... | 202 |
514 | #!/usr/bin/env python
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany t... | 746 |
6,989 | <reponame>shawwn/cpython
/* Do not renumber the file; these numbers are part of the stable ABI. */
#if defined(Py_LIMITED_API)
/* Disabled, see #10181 */
#undef Py_bf_getbuffer
#undef Py_bf_releasebuffer
#else
#define Py_bf_getbuffer 1
#define Py_bf_releasebuffer 2
#endif
#define Py_mp_ass_subscript 3
#define Py_mp_len... | 965 |
6,692 | <gh_stars>1000+
// Copyright (C) 2014 <NAME> (<EMAIL>)
// License: Boost Software License See LICENSE.txt for the full license.
#ifndef DLIB_TEST_FOR_ODR_VIOLATIONS_CPp_
#define DLIB_TEST_FOR_ODR_VIOLATIONS_CPp_
#include "test_for_odr_violations.h"
extern "C"
{
// The point of this block of code is to cau... | 703 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 1,331 |
351 | <reponame>TheSenPie/talos<filename>editor/src/com/talosvfx/talos/editor/addons/shader/nodes/SmoothStepNode.java
package com.talosvfx.talos.editor.addons.shader.nodes;
import com.talosvfx.talos.runtime.shaders.ShaderBuilder;
public class SmoothStepNode extends AbstractShaderNode {
public final String INPUT = "in... | 506 |
1,066 | /*
* Copyright (c) 2020 <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 the rights
* to use, copy, modify, merge, publish, dis... | 2,305 |
1,338 | #ifndef DEBUG_PARANOIA_CONFIG_H
#define DEBUG_PARANOIA_CONFIG_H
// enable paranoia checks (0/1)
#ifndef ENABLE_PARANOIA_CHECKS
# define ENABLE_PARANOIA_CHECKS 0
#endif
// number of check slots (should depend on the components for which checks
// are enabled)
#define PARANOIA_SLOT_COUNT (32 * 1024)
// macros that s... | 244 |
692 | <filename>tests/thread/mutate_set.py
# test concurrent mutating access to a shared set object
#
# MIT license; Copyright (c) 2016 <NAME> on behalf of Pycom Ltd
import _thread
# the shared set
se = set([-1, -2, -3, -4])
# main thread function
def th(n, lo, hi):
for repeat in range(n):
for i in range(lo, h... | 329 |
333 | {
"credentials": {
"url": "https://stream.watsonplatform.net/speech-to-text/api",
"username": "99999999-4aaa-b333-l335-999999999",
"password": "<PASSWORD>"
}
}
| 77 |
613 | <gh_stars>100-1000
{
"secret": "ngEurope rocks!",
"audience": "nodejs-jwt-auth",
"issuer": "https://gonto.com"
}
| 52 |
5,355 | package graphql.schema.visibility;
import graphql.PublicApi;
import graphql.schema.GraphQLFieldDefinition;
import graphql.schema.GraphQLFieldsContainer;
import java.util.List;
import static graphql.schema.visibility.BlockedFields.newBlock;
/**
* This field visibility will prevent Introspection queries from being p... | 385 |
759 | <reponame>pyecharts/pyecharts_gallery
from pyecharts import options as opts
from pyecharts.charts import Gauge
c = (
Gauge()
.add(
"",
[("完成率", 66.6)],
title_label_opts=opts.LabelOpts(
font_size=40, color="blue", font_family="Microsoft YaHei"
),
)
.set_global... | 224 |
1,144 | <reponame>rlourette/TI_SDK_u-boot-2019.01<gh_stars>1000+
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2014, <NAME> <<EMAIL>>
*/
#include <common.h>
#include <asm/io.h>
#include <asm/pnp_def.h>
static void pnp_enter_conf_state(u16 dev)
{
u16 port = dev >> 8;
outb(0x55, port);
}
static void pnp_exit_co... | 473 |
2,151 | <filename>extensions/browser/updater/update_data_provider.cc
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/browser/updater/update_data_provider.h"
#include <utility>
#include "b... | 2,572 |
790 | from django.conf import settings
from django.contrib.sites.models import Site
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase
from django.test.utils import override_settings
from django.utils import six
from .middleware import RedirectFallbackMiddleware
from .models import Redi... | 1,015 |
5,079 | from __future__ import absolute_import, unicode_literals
import celery
import pytest
from celery import uuid
from celery import states
from django_celery_results.backends.database import DatabaseBackend
class SomeClass(object):
def __init__(self, data):
self.data = data
@pytest.mark.django_db()
@pyt... | 1,105 |
879 | package org.zstack.network.service.virtualrouter;
import org.zstack.header.core.Completion;
public interface AfterAcquireVirtualRouterExtensionPoint {
void afterAcquireVirtualRouter(VirtualRouterVmInventory vr, Completion completion);
}
| 72 |
2,151 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/platform/scheduler/child/webthread_impl_for_worker_scheduler.h"
#include <memory>
#include "base/bind.h"
#include "b... | 1,669 |
335 | {
"word": "Rationalize",
"definitions": [
"Attempt to explain or justify (behaviour or an attitude) with logical reasons, even if these are not appropriate.",
"Make (a company, process, or industry) more efficient, especially by dispensing with superfluous personnel or equipment.",
"Reor... | 159 |
435 | <reponame>amaajemyfren/data<filename>pycon-us-2019/videos/steve-dower-python-on-windows-is-okay-actually-pycon-2019.json
{
"copyright_text": null,
"description": "Packages that won't install, encodings that don't work, installers that\nask too many questions, and having to own a PC are all great reasons to\njust ig... | 702 |
758 | //
// TEBackgroundColorView.h
// ThemeEngine
//
// Created by <NAME> on 6/20/15.
// Copyright © 2015 <NAME>. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface TEBackgroundColorView : NSView
@property (nonatomic, strong) IBInspectable NSColor *backgroundColor;
@end
| 96 |
336 | #ifndef __LISTTRIGGER_H__
#define __LISTTRIGGER_H__
class CWndListTrigger : public CListBox
{
public:
CProviderEnum m_proSync;
CProviderEnum m_proType;
CProviderEnum m_proSource;
CProviderNum m_proLevel;
CProviderNum m_proTime;
CProviderNum m_proHoldoff;
CProviderNum m_proTrigPosition;
CLPItem m_itmSync;
C... | 773 |
335 | {
"word": "Bombardier",
"definitions": [
"A rank of non-commissioned officer in certain artillery regiments, equivalent to corporal.",
"A member of a bomber crew in the US air force responsible for aiming and releasing bombs."
],
"parts-of-speech": "Noun"
} | 100 |
1,780 | <filename>api/src/main/java/io/seata/samples/api/service/StorageService.java
package io.seata.samples.api.service;
import java.sql.SQLException;
/**
* The interface Storage service.
*
* @author jimin.jm @<EMAIL>
* @date 2019 /08/21
*/
public interface StorageService extends DataResetService {
/**
* Dedu... | 200 |
1,431 | /* ====================================================================
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... | 6,215 |
4,505 | {
"methodConfig": [{
"name": [{ "service": "google.cloud.clouddms.v1.DataMigrationService" }],
"timeout": "60s",
"retryPolicy": {
"maxAttempts": 5,
"initialBackoff": "1s",
"maxBackoff": "10s",
"backoffMultiplier": 1.3,
"retryableStatusCodes": ["UNAVAILABLE"]
}
},
{
... | 832 |
435 | {
"copyright_text": "Standard YouTube License",
"description": "Most of us regularly work with Jupyter notebooks, but fail to see obvious productivity gains involving its usage. Did you know that the web interface works like a modal editor such as VIM? Do you know that you can actually profile AND debug code in not... | 432 |
354 | /*
Using ESP32 RMT to read servo pulses sent by radio remote control receiver.
Publishes result to a queue of joy_msg.
Reference: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/rmt.html
Reference: https://github.com/JustinOng/sumo/blob/master/software/sumo/src/configure_rmt.c
... | 1,129 |
2,095 | <filename>benchmarks/src/main/java/io/rsocket/metadata/WellKnownMimeTypePerf.java
package io.rsocket.metadata;
import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.infra.Blackhole;
@BenchmarkMode(Mode.Throughput)
@Fork(value = 1)
@Warmup(iterations = 10)
@Measurement(iterations = 10)
@State(Scope.Thread)
publ... | 1,239 |
399 | /*
* Copyright (c) 2017-2020, NVIDIA CORPORATION. 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... | 1,129 |
1,002 | // Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// This file was automatically generated. Please do not edit it manually.
#include "pch.h"
#include "EdgeDetectionEffect.h"
#if (defined _WIN32_WINNT_WIN10) ... | 1,446 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-p27x-w8mq-85x6",
"modified": "2022-05-01T23:42:11Z",
"published": "2022-05-01T23:42:11Z",
"aliases": [
"CVE-2008-1647"
],
"details": "The ChilkatHttp.ChilkatHttp.1 and ChilkatHttp.ChilkatHttpRequest.1 ActiveX controls in ChilkatHttp.dll 2.4.0... | 695 |
1,391 | <reponame>newluhux/plan9port
/*#pragma varargck argpos editerror 1*/
typedef struct Addr Addr;
typedef struct Address Address;
typedef struct Cmd Cmd;
typedef struct List List;
typedef struct String String;
struct String
{
int n; /* excludes NUL */
Rune *r; /* includes NUL */
int nalloc;
};
struct Addr
{
char ... | 1,086 |
311 | <reponame>zcf7822/joyqueue
/**
* Copyright 2019 The JoyQueue 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 re... | 1,718 |
491 | <gh_stars>100-1000
package net.andreinc.mockneat.unit.companies;
import net.andreinc.mockneat.MockNeat;
import net.andreinc.mockneat.abstraction.MockUnitBase;
import net.andreinc.mockneat.abstraction.MockUnitString;
import java.util.function.Supplier;
import static net.andreinc.mockneat.types.enums.DictType.DEPARTME... | 362 |
308 | <filename>AppCenterAnalytics/AppCenterAnalytics/include/AppCenterAnalytics.h<gh_stars>100-1000
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#import <Foundation/Foundation.h>
#if __has_include(<AppCenterAnalytics/MSACAnalytics.h>)
#import <AppCenterAnalytics/MSACAnaly... | 278 |
1,379 | <filename>src/java/voldemort/utils/ConsistencyCheck.java
/*
* Copyright 2013 LinkedIn, 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-... | 16,833 |
851 | /*
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 254 |
692 | #include <stdint.h>
#include <stdio.h>
#include <assert.h>
#include <limits.h>
#include <sys/time.h>
#include "core/adios_logger.h"
#include "core/transforms/adios_transforms_common.h"
#include "core/transforms/adios_transforms_write.h"
#include "core/transforms/adios_transforms_hooks_write.h"
#include "core/transform... | 2,525 |
6,526 | /*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... | 3,305 |
435 | {
"copyright_text": "This video is licensed under the CC BY-NC-SA 3.0 license: https://creativecommons.org/licenses/by-nc-sa/3.0/\nPlease see our speaker release agreement for details: https://ep2020.europython.eu/events/speaker-release-agreement/\n",
"description": "Imagine this school scenario: an entire year gro... | 1,053 |
3,263 | <filename>value-processor/src/org/immutables/value/processor/meta/SwitcherModel.java
/*
Copyright 2015 Immutables Authors and Contributors
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... | 855 |
1,162 | package io.digdag.guice.rs.server;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Retention(RUNTIME)
@Target({METHOD})
public @interface PreStop
{
}
| 98 |
1,338 | <gh_stars>1000+
/*
* Copyright 2007-2009, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include "HaikuKernelFileSystem.h"
#include <string.h>
#include <new>
#include <fs_interface.h>
#include <AutoLocker.h>
#include <block_cache.h>
#include <condition_variable.h>
#include <file_cache.h... | 4,316 |
11,868 | <gh_stars>1000+
package org.openapitools.api;
import java.math.BigDecimal;
import org.openapitools.model.TestResponse;
import org.openapitools.api.TestHeadersApiService;
import javax.ws.rs.*;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;
import javax.enter... | 728 |
420 | #!/usr/bin/env python
# encoding: utf-8
# Copyright (c) 2012-2016 Seafile Ltd.
import hashlib
import random
import sys
import time
# Use the system PRNG if possible
try:
random = random.SystemRandom()
using_sysrandom = True
except NotImplementedError:
import warnings
warnings.warn('A secure pseudo-ran... | 813 |
483 | /*
* Copyright (c) 2017-2020. Nitrite 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 3,602 |
535 | #!/usr/bin/env python3
# Copyright (c) 2020 The Bitcoin Unlimited developers
import asyncio
from test_framework.util import assert_equal
from test_framework.test_framework import BitcoinTestFramework
from test_framework.loginit import logging
from test_framework.electrumutil import bitcoind_electrum_args, \
Electru... | 618 |
460 | <filename>kettle-ext/src/main/java/org/flhy/ext/trans/steps/MultiwayMergeJoin.java
package org.flhy.ext.trans.steps;
import com.mxgraph.model.mxCell;
import com.mxgraph.util.mxUtils;
import org.flhy.ext.core.PropsUI;
import org.flhy.ext.trans.step.AbstractStep;
import org.flhy.ext.utils.JSONArray;
import org.pentaho.d... | 1,148 |
679 | <filename>main/dbaccess/source/ext/macromigration/macromigrationwizard.cxx
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional inform... | 3,479 |
2,139 | package org.jruby.ir.operands;
import org.jruby.ir.IRVisitor;
import org.jruby.ir.persistence.IRReaderDecoder;
import org.jruby.ir.persistence.IRWriterEncoder;
import org.jruby.ir.runtime.IRRuntimeHelpers;
import org.jruby.ir.transformations.inlining.CloneInfo;
import org.jruby.parser.StaticScope;
import org.jruby.run... | 618 |
1,921 | def end_reachable(arr):
if len(arr) < 2:
return True
for i in range(2, len(arr) + 1):
if arr[len(arr) - i] >= i - 1:
return end_reachable(arr[:len(arr) - i + 1])
# Tests
assert end_reachable([1, 3, 1, 2, 0, 1])
assert not end_reachable([1, 2, 1, 0, 0])
| 143 |
419 | {
"PlaceholderDesc_Tale_QuestText": "Text that is added to the quest.",
"PlaceholderDesc_Tale_QuestText_LangKey": "Language key for the text that is added to the quest.",
"PlaceholderDesc_Tale_QuestText_Preview": "Preview for the textline that is added. All line breaks will be removed and the text will b... | 131 |
666 | package com.renyu.kotlin.chapter3;
public class ClassStudyJava {
public static void main(String[] args) {
ClassParent parent=new ClassChild(12);
parent.funParent();
((ClassChild) parent).funChild();
C.getInstance();
C.getCompanionValue();
}
}
| 119 |
577 | //
// PRCommentActionView.h
// PlainReader
//
// Created by guojiubo on 12/11/14.
// Copyright (c) 2014 guojiubo. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PRCellButton.h"
#import "PRComment.h"
@interface PRCommentActionView : UIView
@property (nonatomic, strong) PRCellButton *supportButton;
@prop... | 165 |
1,473 | /*
* Copyright 2019 NAVER Corp.
*
* 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 ... | 4,630 |
2,151 | <reponame>zipated/src<filename>native_client/tests/signal_handler_single_step/regs_step_test_guest.c
/*
* Copyright (c) 2012 The Native Client 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 <assert.h>
#include <setjmp.... | 2,990 |
703 | #include <RendererVulkanPCH.h>
#include <RendererVulkan/Device/DeviceVulkan.h>
#include <RendererVulkan/RendererVulkanDLL.h>
#include <RendererVulkan/Resources/BufferVulkan.h>
#include <d3d11.h>
ezGALBufferVulkan::ezGALBufferVulkan(const ezGALBufferCreationDescription& Description)
: ezGALBuffer(Description)
, m... | 2,088 |
82,518 | <reponame>gujralsanyam22/models
# Copyright 2017 The TensorFlow Authors All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0... | 1,462 |
1,319 | <filename>PaddleNLP/Research/IJCAI2019-MMPMS/eval.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
################################################################################
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you ma... | 829 |
2,151 | // 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 IOS_CHROME_BROWSER_UI_POPUP_MENU_CELLS_POPUP_MENU_TOOLS_ITEM_H_
#define IOS_CHROME_BROWSER_UI_POPUP_MENU_CELLS_POPUP_MENU_TOOLS_ITEM_H_
#import "... | 651 |
429 | <gh_stars>100-1000
/*
* (C) Copyright 2019-2021 Intel Corporation.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
/**
* Mocks of dRPC framework functions
*/
#include "drpc_mocks.h"
struct drpc *drpc_connect_return; /* value to be returned */
char drpc_connect_sockaddr[PATH_MAX + 1]; /* saved copy of input... | 1,799 |
585 | <reponame>kickers18/caffe2
/**
* Copyright (c) 2016-present, Facebook, 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
*
* Unl... | 620 |
897 | <gh_stars>100-1000
//C++ Program to generate Pythagorean Triples within a user-given limit
#include <bits/stdc++.h>
using namespace std;
//Function for computing Pythagorean Triples
void GetTriples(int& l)
{
//Starting values of m=2, n=1 are mapped to a=3, b=4, c=5, which is the smallest Pythagorean triple
int a = 0... | 506 |
2,107 | <filename>include/spdk/pipe.h
/*-
* BSD LICENSE
*
* Copyright (c) Intel Corporation. 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 mus... | 1,680 |
14,668 | <reponame>zealoussnow/chromium<gh_stars>1000+
// 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 "third_party/blink/renderer/modules/websockets/inspector_websocket_events.h"
#include <memory>
#in... | 1,100 |
366 | <gh_stars>100-1000
package com.hi.dhl.algorithms.other.concurrency._1195;
import java.util.concurrent.Semaphore;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.function.IntConsumer;
/**
* <pre>
* author: dhl
... | 2,033 |
312 | // copyright <NAME> 2015
#ifndef PURINE_INNER
#define PURINE_INNER
#include "caffeine/caffeine.hpp"
#include "caffeine/math_functions.hpp"
#include "operations/operation.hpp"
namespace purine {
/**
* { bottom, weight } >> op >> { top }
*/
class Inner : public Operation {
public:
typedef tuple<> param_tuple;
... | 435 |
2,483 | package com.tekartik.sqflite;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
public class FileUtils {
public static String convertStreamToString(InputStream is) throws IOException {
... | 486 |
349 | <gh_stars>100-1000
/*******************************************************************************
* Copyright 2011, 2012, 2013 fanfou.com, <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the L... | 3,020 |
1,513 | <filename>src/db/wiredtiger/wiredtiger_engine.hpp
/*
*Copyright (c) 2013-2016, yinqiwen <<EMAIL>>
*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 r... | 2,453 |
3,102 | <filename>clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/util.h
#ifndef DARWIN_UTIL_H
#define DARWIN_UTIL_H
#include <stdio.h>
#endif
| 68 |
351 | package org.antlr.intellij.plugin.templates;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import org.antlr.intellij.plugin.parser.ANTLRv4Parser;
import org.antlr.intellij.plugin.parsing.ParsingUtils;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.Token;
import org.je... | 822 |
6,989 | #pragma once
#include <catboost/libs/data/data_provider.h>
#include <util/generic/fwd.h>
#include <util/generic/vector.h>
class TFullModel;
namespace NPar {
class ILocalExecutor;
}
struct TRocPoint {
double Boundary = 0.0;
double FalseNegativeRate = 0.0;
double FalsePositiveRate = 0.0;
public:
... | 711 |
778 | //
// Project Name: KratosPoromechanicsApplication $
// Created by: $Author: JMCarbonell $
// Last modified by: $Co-Author: $
// Date: $Date: July 2013 $
// Revision: $Revision: 0.0 $
//
//
// System i... | 408 |
701 | <gh_stars>100-1000
#include "InstantRadiosityGameState.h"
#include "CameraController.h"
#include "GraphicsSystem.h"
#include "OgreSceneManager.h"
#include "OgreItem.h"
#include "OgreMeshManager.h"
#include "OgreMeshManager2.h"
#include "OgreMesh2.h"
#include "OgreCamera.h"
#include "OgreHlmsPbsDatablock.h"
#inclu... | 9,854 |
1,144 | <reponame>dram/metasfresh<gh_stars>1000+
package de.metas.vertical.pharma.securpharm.client;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.security.KeyStore;
import javax.net.ssl.SSLContext;
import org.adempiere.exceptions.AdempiereException;
import org.apache.http.clie... | 1,888 |
370 | <reponame>Kronuz/Xapiand
/*
* Copyright (c) 2015-2019 Dubalu LLC
*
* 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 the rights
* to use,... | 760 |
810 | <reponame>FreeYeti/tilemill
{
"name": "carto",
"description": "Carto syntax reference for editing.",
"engines": {"tilemill":"*"},
"private": true
}
| 64 |
343 | /* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.... | 774 |
2,313 | /*
* Copyright (c) 2017-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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 the
* ri... | 19,547 |
335 | {
"word": "Sabotage",
"definitions": [
"to damage or destroy equipment, weapons, or buildings in order to prevent the success of an enemy or competitor",
"to intentionally prevent the success of a plan or action"
],
"parts-of-speech": "Verb"
}
| 96 |
6,717 | <filename>tools/AppInsights/src/core/contracts/Internal.cpp<gh_stars>1000+
#include "Internal.h"
using namespace ApplicationInsights::core;
Internal::Internal()
{
}
Internal::~Internal()
{
}
void Internal::Serialize(Serializer& serializer) const
{
if (m_sdkVersion.HasValue())
{
serializer.WritePrope... | 235 |
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... | 1,610 |
1,367 | <filename>app/controller/render.py<gh_stars>1000+
import json
from django.http import HttpResponse
def render_json(dictionary=None):
dictionary = {} if dictionary is None else dictionary
response = HttpResponse(json.dumps(dictionary), content_type="application/json")
response['Access-Control-Allow-Origin'... | 162 |
3,651 | package com.orientechnologies.orient.client.remote.message;
import com.orientechnologies.orient.client.binary.OBinaryRequestExecutor;
import com.orientechnologies.orient.client.remote.OBinaryRequest;
import com.orientechnologies.orient.client.remote.OBinaryResponse;
import com.orientechnologies.orient.client.remote.OS... | 557 |
2,322 | <gh_stars>1000+
/* Wine Vulkan ICD implementation
*
* Copyright 2017 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your optio... | 6,257 |
971 | <gh_stars>100-1000
#include "optimizer/statistics/value_condition.h"
#include <memory>
#include <string>
#include <utility>
#include "catalog/catalog_defs.h"
#include "execution/sql/value.h"
#include "gtest/gtest.h"
#include "parser/expression/constant_value_expression.h"
namespace noisepage::optimizer {
// NOLINTNE... | 671 |
309 | <gh_stars>100-1000
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
import vtk
def main():
nx, ny, nz = get_program_parameters()
colors = vtk.vtkNamedColors()
angle = 0
r1 = 50
r2 = 30
centerX = 10.0
centerY = 5.0
points = vtk.vtkPoints()
idx = 0
while angle <= 2.0... | 2,293 |
381 | <filename>rpython/jit/backend/arm/test/test_virtualizable.py
import py
from rpython.jit.metainterp.test.test_virtualizable import ImplicitVirtualizableTests
from rpython.jit.backend.arm.test.support import JitARMMixin
class TestVirtualizable(JitARMMixin, ImplicitVirtualizableTests):
def test_blackhole_should_not_... | 137 |
335 | {
"word": "Fix",
"definitions": [
"Fasten (something) securely in a particular place or position.",
"Direct one's eyes, mind, or attention steadily or unwaveringly towards.",
"(of a person's eyes, attention, or mind) be directed steadily or unwaveringly towards.",
"Look at someon... | 588 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.