max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
3,102 | <filename>clang/test/Modules/Inputs/submodule-visibility/other.h
#include "c.h"
#ifndef OTHER_H
#define OTHER_H
namespace N {
struct C {
template<typename U> static void f(U) {}
};
}
#endif
| 83 |
1,313 | <gh_stars>1000+
#pragma once
#include <sys/types.h>
pid_t popen2(char *const *command, int *stdin, int *stdout);
| 49 |
4,640 | # 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 not u... | 3,215 |
537 | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | 4,593 |
1,334 | package org.mockserver.serialization.java;
import org.junit.Test;
import org.mockserver.model.HttpClassCallback;
import java.util.concurrent.TimeUnit;
import static org.junit.Assert.assertEquals;
import static org.mockserver.character.Character.NEW_LINE;
/**
* @author jamesdbloom
*/
public class HttpClassCallback... | 428 |
441 | // Copyright 2009-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "rtcore_config.h"
#include "rtcore_common.h"
#include "rtcore_device.h"
#include "rtcore_buffer.h"
#include "rtcore_ray.h"
#include "rtcore_geometry.h"
#include "rtcore_scene.h"
#include "rtcore_builder.h"
#include "... | 133 |
335 | {
"word": "Nappy",
"definitions": [
"(of hair) frizzy (typically used with reference to black people)"
],
"parts-of-speech": "Adjective"
} | 67 |
3,627 | <reponame>KIRITOLTR/adversarial<gh_stars>1000+
import sys
from pylearn2.gui.patch_viewer import make_viewer
from pylearn2.utils import serial
model = serial.load(sys.argv[1])
generator = model.generator
final = generator.mlp.layers[-1]
success = False
i = -1
success = False
to_search = generator.mlp
while not success... | 645 |
1,056 | <reponame>Antholoj/netbeans
/*
* 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,967 |
868 | <reponame>AriCheng/flare
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of the
// License at
//
// https://opensource.org/licenses/BSD-... | 1,810 |
778 | <gh_stars>100-1000
package org.knowm.xchart.internal.chartpart;
import static org.fest.assertions.api.Assertions.assertThat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.TimeZone;
import org.junit.Test;
import org.knowm.xchart.BitmapEnco... | 1,289 |
692 | /* block/test.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 <NAME>, <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your opti... | 2,181 |
5,169 | {
"name": "PGDNetworking",
"version": "0.1.2",
"summary": "Networking library based on AFNetworking using Mantle.",
"description": "Network library based on AFNetworking and Mantle Object Mapper.",
"homepage": "https://github.com/pluggd/networking-ios",
"license": {
"type": "MIT",
"file": "LICENSE"
... | 266 |
583 | #pragma once
#include <cstdint>
#include <string_view>
// via.murmur_hash internally
namespace sdk {
struct RETypeDefinition;
namespace murmur_hash {
sdk::RETypeDefinition* type();
uint32_t calc32(std::wstring_view str);
uint32_t calc32(std::string_view str);
}
} | 98 |
1,178 | /*
* Copyright 2020 Makani Technologies LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 1,091 |
372 | <reponame>arithmetic1728/google-api-java-client-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 of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 1,230 |
855 | // Copyright 2019 Google LLC
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
// Verifies to what extent concurrent PIK decoders interfere with each other
// performance-wise.
//
// Usage:
// ./multi_threading_ben... | 621 |
491 | /* Automatically generated by create_config - do not modify */
#define TARGET_X86_64 1
#define TARGET_NAME "x86_64"
#define TARGET_I386 1
#define CONFIG_SOFTMMU 1
| 57 |
4,047 | {
"plugins": [
"build-plugin-component",
"build-plugin-fusion",
"./build.plugin.js"
]
}
| 48 |
3,495 | /*
*
* Copyright (c) 2020 Project CHIP Authors
* Copyright (c) 2019 <NAME>, 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/licen... | 1,403 |
307 |
#include "UniformBufferManager.h"
#include "uniform_structs.h"
#include "tracing/tracing.h"
namespace {
size_t getElementSize(uniform_block_type type)
{
switch (type) {
case uniform_block_type::Lights:
return sizeof(graphics::deferred_light_data);
case uniform_block_type::ModelData:
return sizeof(graphics::... | 2,629 |
419 | <filename>Code/System/Core/Math/MathStringHelpers.h<gh_stars>100-1000
#pragma once
#include "Math.h"
#include "Vector.h"
#include "System/Core/Types/String.h"
#include "Quaternion.h"
//-------------------------------------------------------------------------
namespace KRG::Math
{
KRG_SYSTEM_CORE_API cha... | 378 |
1,755 | /****************************************************************************
*
* ftccmap.c
*
* FreeType CharMap cache (body)
*
* Copyright (C) 2000-2021 by
* <NAME>, <NAME>, and <NAME>.
*
* This file is part of the FreeType project, and may only be used,
* modified, and distributed under the terms of the F... | 4,680 |
811 | <reponame>michaelpetrov/dataclasses-json
import abc
import dataclasses
import functools
import inspect
from dataclasses import Field, fields
from typing import Any, Callable, Dict, Optional, Tuple
from enum import Enum
from marshmallow import ValidationError
from dataclasses_json.utils import CatchAllVar
KnownParame... | 4,591 |
4,816 | /**
* @file include/retdec/capstone2llvmir/exceptions.h
* @brief Definitions of exceptions used in capstone2llmvir library.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#ifndef RETDEC_CAPSTONE2LLVMIR_EXCEPTIONS_H
#define RETDEC_CAPSTONE2LLVMIR_EXCEPTIONS_H
#include <cassert>
#include <s... | 1,071 |
453 | <filename>examples/spmv_restructured.cpp
#include "spmv.h"
const static int S = 8;
void spmv(int rowPtr[NUM_ROWS+1], int columnIndex[NNZ],
DTYPE values[NNZ], DTYPE y[SIZE], DTYPE x[SIZE])
{
#pragma HLS ARRAY_PARTITION variable=row_ptr cyclic factor=16 dim=1
int i;
int cnt[4];
int LB[4];
int UB[4];
int element... | 898 |
897 | /* Shaker Sort In C
The algorithm extends the bubble sort by operating in two directions
*/
#include <stdio.h>
void shakersort(int[], int);
void swap(int *, int *);
int main()
{
int num, i, arr[10000];
printf("Enter the number of elements:");
scanf("%d", &num);
for (i = 0; i < num; i++)
{
scanf("%d", &arr[i]);
... | 607 |
1,338 | /*
* Copyright (c) 1999-2000, <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:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of con... | 2,028 |
2,996 | <gh_stars>1000+
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.logic.players;
import org.terasology.gestalt.entitysystem.component.EmptyComponent;
/**
* This is only attached to the player entities. <br/>
* Used to differentiate between player charac... | 116 |
778 | <gh_stars>100-1000
// KRATOS___
// // ) )
// // ___ ___
// // ____ //___) ) // ) )
// // / / // // / /
// ((____/ / ((____ ((___/ / MECHANICS
//
// License: geo_mechanics_application/license.txt
//
//
// Main authors: <NAME>
//
// System includes
#include <iostre... | 1,755 |
3,453 | <gh_stars>1000+
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from .stream import Stream
from typing import Iterator
class StreamUnion(Stream):
def __init__(self, child_streams:Iterator[Stream], for_write:bool, stream_name:str=None, console_debug:bool=False) -> None:
super(Strea... | 322 |
852 | from ROOT import TFile, TCanvas, TPad, TH1F, TProfile, TProfile2D, TLine, gStyle, kOrange, kOpenCircle, kFullCircle
from math import sqrt
def isTrackerMuon(chain, index):
if chain.muon_type[index] & 4 == 4:
return True
def inBarrel(chain, index):
"""
Establish if the outer hit of a muon is in the barrel reg... | 2,889 |
1,240 | package com.eventyay.organizer.data.copyright;
import androidx.annotation.NonNull;
import io.reactivex.Completable;
import io.reactivex.Observable;
public interface CopyrightRepository {
@NonNull
Observable<Copyright> createCopyright(Copyright copyright);
@NonNull
Observable<Copyright> getCopyright... | 152 |
332 | <gh_stars>100-1000
/*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 613 |
3,721 | <reponame>orzuk-lmj/xmake
#include "demo.h"
QtDemo::QtDemo()
{
}
| 41 |
475 | """
w1thermsensor
~~~~~~~~~~~~~
A Python package and CLI tool to work with w1 temperature sensors.
:copyright: (c) 2020 by <NAME> <<EMAIL>>
:license: MIT, see LICENSE for more details.
"""
# NOTE(TF):
# This examples uses async producers which read
# temperature from sensors and an async consumer
# which consumes al... | 627 |
590 | #ifndef __EXYNOS4412_REG_PMU_H__
#define __EXYNOS4412_REG_PMU_H__
#define EXYNOS4412_PMU_BASE (0x10020000)
#define PMU_OM_STAT (0x0000)
#define PMU_SWRESET (0x0400)
#define PMU_RST_STAT (0x0404)
#define PMU_INFORM0 (0x0800)
#define PMU_INFORM1 (0x0804)
#define PMU_INFORM2 (0x0808)
#define PMU_INFORM3 (0x... | 205 |
7,706 | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 636 |
2,752 | <reponame>Spacha/MineCraft-One-Week-Challenge
#ifndef ITEMTYPE_H_INCLUDED
#define ITEMTYPE_H_INCLUDED
#endif // ITEMTYPE_H_INCLUDED
| 58 |
2,010 | # Copyright (C) 2017-2020 <NAME> <<EMAIL>>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
# Exhibit B is not attached; this software is compatible with the
# licenses... | 649 |
348 | {"nom":"Saint-Michel-Tuboeuf","circ":"2ème circonscription","dpt":"Orne","inscrits":473,"abs":202,"votants":271,"blancs":4,"nuls":1,"exp":266,"res":[{"nuance":"LR","nom":"<NAME>","voix":104},{"nuance":"REM","nom":"Mme <NAME>","voix":64},{"nuance":"FN","nom":"Mme <NAME>","voix":39},{"nuance":"SOC","nom":"M. <NAME>","voi... | 260 |
5,964 | <reponame>wenfeifei/miniblink49<gh_stars>1000+
// Copyright 2012 the V8 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.
#include "src/allocation.h"
#include <stdlib.h> // For free, malloc.
#include "src/base/bits.h"
#includ... | 3,247 |
14,668 | <gh_stars>1000+
def main(request, response):
policy = request.GET.first(b"policy")
return [(b"Content-Type", b"text/html"), (b"Content-Security-Policy", policy)], b"""
<!DOCTYPE html>
<html>
<script>
var id = 0;
try {
id = eval("id + 1");
} catch (e) {}
window.parent.postMessage(id === 1 ? "eval allowed" : "e... | 138 |
682 | <reponame>muxiaobai/elasticsearch-analysis-hanlp
package com.hankcs.model;
import com.hankcs.hanlp.HanLP;
import com.hankcs.hanlp.model.perceptron.model.LinearModel;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.message.ParameterizedMessage;
import ... | 921 |
648 | <reponame>swrobel/fhir<filename>spec/hl7.fhir.core/4.0.1/package/CodeSystem-smart-capabilities.json<gh_stars>100-1000
{"resourceType":"CodeSystem","id":"smart-capabilities","meta":{"lastUpdated":"2019-11-01T09:29:23.356+11:00"},"url":"http://terminology.hl7.org/CodeSystem/smart-capabilities","identifier":[{"system":"ur... | 860 |
387 | <reponame>flygod1159/Arcane-Engine
#pragma once
#include <Arcane/Graphics/Renderer/Renderpass/RenderPass.h>
namespace Arcane
{
class Shader;
class Scene3D;
class ICamera;
class PostGBufferForward : public RenderPass {
public:
PostGBufferForward(Scene3D *scene);
virtual ~PostGBufferForward() override;
Lig... | 203 |
1,418 | <filename>3rdparty/ps-lite/include/ps/internal/env.h
/**
* Copyright (c) 2016 by Contributors
*/
#ifndef PS_INTERNAL_ENV_H_
#define PS_INTERNAL_ENV_H_
#include <cstdlib>
#include <unordered_map>
#include <memory>
#include <string>
namespace ps {
/**
* \brief Environment configurations
*/
class Environment {
publi... | 634 |
1,283 | /*
* TransRecord.cpp
*
* Created on: 2019年2月10日
* Author: fasiondog
*/
#include "TransRecord.h"
namespace hku {
HKU_API std::ostream& operator<<(std::ostream& os, const TransRecord& record) {
string strip(", ");
os << std::fixed;
os.precision(4);
os << "TransRecord(Datetime(" << record.dat... | 599 |
852 | <filename>DetectorDescription/RegressionTest/src/DDExpandedViewDump.cc<gh_stars>100-1000
#include <cstdlib>
#include <iostream>
#include <memory>
#include <set>
#include <string>
#include <utility>
#include "DetectorDescription/Core/interface/DDRotationMatrix.h"
#include "DetectorDescription/Core/interface/DDTranslati... | 1,113 |
886 | <reponame>FIRHQ/flow-platform
package com.flowci.core.trigger.dao;
import com.flowci.core.trigger.domain.TriggerDelivery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
public interface CustomizedTriggerDeliveryDao {
void addDelivery(String triggerId, TriggerDeli... | 129 |
1,144 | package de.metas.ui.web.pickingV2.packageable;
import de.metas.bpartner.BPartnerId;
import de.metas.edi.model.I_C_Order;
import de.metas.i18n.IMsgBL;
import de.metas.order.OrderId;
import de.metas.shipping.ShipperId;
import de.metas.ui.web.document.filter.DocumentFilter;
import de.metas.ui.web.document.filter.Document... | 2,031 |
4,054 | <filename>readthedocs/projects/migrations/0071_add_env_var_privacy.py
# -*- coding: utf-8 -*-
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0070_make_md5_field_nullable'),
]
operations = [
migrations.AddField(
m... | 299 |
528 | package com.sromku.simple.fb.listeners;
/**
* On publishing action listener
*
* @author sromku
*/
public abstract class OnPublishListener extends OnActionListener<String> {
}
| 53 |
682 | /* Copyright 2016 Esri
*
* 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,... | 3,304 |
352 | <reponame>swaroop0707/TinyWeb
/*
*Author:GeneralSandman
*Code:https://github.com/GeneralSandman/TinyWeb
*E-mail:<EMAIL>
*Web:www.generalsandman.cn
*/
/*---XXX---
*
****************************************
*
*/
#include <tiny_core/thread.h>
#include <tiny_core/currentthread.h>
#include <iostream>
#include <stdio.h>
#... | 696 |
5,203 | #include <stdio.h>
#include <string.h>
#define STDIN 0
//gcc -fstack-protector-all -mpreferred-stack-boundary=2 -o canary canary.c
void contrivedLeak() {
char buf[512];
scanf("%s", buf);
printf(buf);
return;
}
void contrivedOverflow() {
printf("\n..I like to read ^_^ <== ");
char buf[24];
... | 313 |
348 | <filename>docs/data/t2/024/24048.json
{"nom":"Bonneville-et-Saint-Avit-de-Fumadières","dpt":"Dordogne","inscrits":243,"abs":49,"votants":194,"blancs":10,"nuls":20,"exp":164,"res":[{"panneau":"2","voix":84},{"panneau":"1","voix":80}]} | 101 |
854 | __________________________________________________________________________________________________
class Solution {
public:
string boldWords(vector<string>& words, string S) {
int n = S.size();
string res = "";
vector<bool> bold(n, false);
for (string word : words) {
... | 1,402 |
790 | from django.middleware.csrf import CsrfMiddleware, CsrfViewMiddleware, CsrfResponseMiddleware
from django.views.decorators.csrf import csrf_exempt, csrf_view_exempt, csrf_response_exempt
import warnings
warnings.warn("This import for CSRF functionality is deprecated. Please use django.middleware.csrf for the middlewa... | 150 |
1,127 | <filename>src/tests/functional/inference_engine/transformations/legacy/convert_gather_to_gather_ie.cpp
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include <string>
#include <memory>
#include <queue>
#include <ngraph/function.hpp>
#include <ngraph/o... | 1,998 |
492 | import json
class User:
def __init__(self, guid, isActive, name, email, phone, address):
self.guid = guid
self.isActive = isActive
self.first_name = name['first']
self.last_name = name['last']
self.email = email
self.phone = phone
self.address = ... | 553 |
764 | {
"symbol": "GT",
"account_name": "eosgetgtoken",
"overview": {
"en": "GT is a token issued by EOSGET platform, which is obtained through game mining."
},
"website": "https://dice.eosget.io"
} | 94 |
627 | <filename>indy_node/test/upgrade/test_node_handles_forced_upgrade_on_propagate.py
from indy_node.test import waits
from indy_node.test.upgrade.helper import checkUpgradeScheduled, \
sdk_send_upgrade
from plenum.common.constants import VERSION
from plenum.test.delayers import req_delay, ppDelay, pDelay, cDelay, ppgD... | 649 |
324 | <filename>providers/google-compute-engine/src/main/java/org/jclouds/googlecomputeengine/features/ForwardingRuleApi.java
/*
* 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 copy... | 2,051 |
381 | <reponame>cmeier76/JGiven
package com.tngtech.jgiven.junit;
import com.tngtech.jgiven.impl.ScenarioBase;
public class StandaloneScenarioRule extends JGivenMethodRule {
public StandaloneScenarioRule() {
super( new ScenarioBase() );
}
public <T> T addStage( Class<T> stepsClass ) {
return s... | 137 |
5,964 | """Code unit (module) handling for Coverage."""
import glob, os
from coverage.backward import open_source, string_class, StringIO
from coverage.misc import CoverageException
def code_unit_factory(morfs, file_locator):
"""Construct a list of CodeUnits from polymorphic inputs.
`morfs` is a module or a filena... | 1,579 |
4,781 | <filename>data/2020/2020-05-05/villagerdb-master/data/items/fruit-panel-umbrella.json<gh_stars>1000+
{
"id": "fruit-panel-umbrella",
"name": "Fruit-panel Umbrella",
"category": "Umbrellas",
"games": {
"nl": {
"orderable": false,
"set": "Welcome amiibo Update",
"sources": [
"Complet... | 168 |
5,102 | <reponame>Diffblue-benchmarks/Discovery
package com.nepxion.discovery.plugin.example.service.feign;
/**
* <p>Title: Nepxion Discovery</p>
* <p>Description: Nepxion Discovery</p>
* <p>Copyright: Copyright (c) 2017-2050</p>
* <p>Company: Nepxion</p>
* @author <NAME>
* @version 1.0
*/
import org.springframework.c... | 415 |
1,148 | #include <bits/stdc++.h>
using namespace std;
int search(int arr[], int target, int size)
{
for (int i = 0; i < size; i++)
{
// if the target value is found the algorithm returns the index
if (arr[i] == target)
{
return i;
}
}
// if the target value is not fo... | 494 |
14,668 | <gh_stars>1000+
// Copyright (c) 2017 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 NET_CERT_CERT_VERIFY_PROC_BUILTIN_H_
#define NET_CERT_CERT_VERIFY_PROC_BUILTIN_H_
#include <memory>
#include "base/memory/re... | 719 |
641 | /*********************************************************************
* SEGGER Microcontroller GmbH & Co. KG *
* Solutions for real time microcontroller applications *
**********************************************************************
* ... | 1,903 |
1,125 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 2,364 |
852 | import FWCore.ParameterSet.Config as cms
# Produce GenParticles of the two HepMCProducts
from Configuration.StandardSequences.Generator_cff import *
from GeneratorInterface.Core.generatorSmeared_cfi import *
genParticles.doSubEvent = cms.untracked.bool(True)
GenSmeared = cms.Sequence(generatorSmeared)
hiGenJets = cm... | 170 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-6753-x4g3-wmj6",
"modified": "2022-05-02T03:25:35Z",
"published": "2022-05-02T03:25:35Z",
"aliases": [
"CVE-2009-1473"
],
"details": "The (1) Windows and (2) Java client programs for the ATEN KH1516i IP KVM switch with firmware 1.0.063 and the KN9116 IP KVM swi... | 550 |
576 | #include "visual_servers_databags.h"
RenderingServerDatabag::RenderingServerDatabag() {
rs = RenderingServer::get_singleton();
}
const RenderingServer *RenderingServerDatabag::get_rs() const {
return rs;
}
RenderingServer *RenderingServerDatabag::get_rs() {
return rs;
}
void RenderingScenarioDatabag::_bind_method... | 159 |
565 |
#include "astronomy/date_time.hpp"
#include <string>
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace principia {
namespace astronomy {
namespace date_time {
namespace internal_date_time {
using ::testing::AllOf;
using ::testing::Eq;
using ::testing::Property;
class CalendarTest : public testing::Test... | 1,964 |
778 | package org.aion.api.server.http.nano;
import fi.iki.elonen.NanoHTTPD;
import java.util.HashMap;
import java.util.Map;
import org.aion.api.server.rpc.RpcProcessor;
import org.aion.log.AionLoggerFactory;
import org.aion.log.LogEnum;
import org.slf4j.Logger;
public class AionHttpd extends NanoHTTPD {
private static... | 910 |
381 | package com.tngtech.jgiven.examples.userguide;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import com.tngtech.jgiven.annotation.AfterScenario;
import com.tngtech.jgiven.annotation.BeforeScenario;
import com.tngtech.jgiven.annotation.ProvidedScenarioState;
import com.tngte... | 392 |
5,169 | {
"name": "WistiaKit",
"version": "0.6.0",
"summary": "Access and playback all of your Wistia media",
"description": "Wistia is a great web video host. But why shackle ourselves to the world wide web?\n\nWith WistiaKit you can easily access and play back all of your Wistia hosted content natively on iOS and tv... | 639 |
831 | <gh_stars>100-1000
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | 622 |
2,053 | <gh_stars>1000+
#ifndef _rtp_header_h_
#define _rtp_header_h_
#include <stdint.h>
#define RTP_VERSION 2 // RTP version field must equal 2 (p66)
typedef struct _rtp_header_t
{
uint32_t v:2; /* protocol version */
uint32_t p:1; /* padding flag */
uint32_t x:1; /* header extension flag */
uint32_t cc:4; /* CSRC... | 422 |
1,444 | <reponame>nnadams/mage
package mage.cards.action;
import mage.cards.MageCard;
import mage.cards.TextPopup;
import mage.view.CardView;
import java.awt.*;
import java.util.UUID;
/**
* Data for main card panel events like mouse moves or clicks
*
*/
public class TransferData {
private MageCard component; // real... | 835 |
1,503 | <reponame>loudongfeng/parquet-mr<filename>parquet-avro/src/test/java/org/apache/parquet/avro/TestAvroWriteSupport.java
/**
* 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 c... | 890 |
595 | <filename>XilinxProcessorIPLib/drivers/deinterlacer/examples/deint_selftest_example.c
/******************************************************************************
*
* Copyright (c) 2014 - 2020 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
**********************************************************... | 1,046 |
2,039 | package org.nd4j.linalg.api.ops.grid;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.ArrayList;
import java.util.List;
/**
* @author <EMAIL>
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GridDescriptor {
/**
* Number of ops in grid
... | 185 |
575 | <gh_stars>100-1000
// 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 CHROMEOS_DBUS_CUPS_PROXY_CUPS_PROXY_CLIENT_H_
#define CHROMEOS_DBUS_CUPS_PROXY_CUPS_PROXY_CLIENT_H_
#include <memory>
#includ... | 747 |
736 | package cn.jingzhuan.lib.chart.event;
import cn.jingzhuan.lib.chart.base.Chart;
/**
* Created by donglua on 11/20/17.
*/
@FunctionalInterface
public interface OnEntryClickListener {
void onEntryClick(Chart chart, int position);
}
| 81 |
1,405 | package org.apache.commons.httpclient;
import org.apache.commons.httpclient.protocol.Protocol;
public class ProxyHost extends HttpHost {
public ProxyHost(ProxyHost httpproxy) {
super(httpproxy);
}
public ProxyHost(String hostname, int port) {
super(hostname, port, Protocol.getProtocol("ht... | 218 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azur... | 1,800 |
583 | {"url": "https://github.com/SublimeText/PowerShell", "version": "2012.04.25.18.18.36", "description": "Support for the MS PowerShell 2 programming language."} | 47 |
1,266 | //
// passKit.h
// passKit
//
// Created by <NAME> on 11/6/17.
// Copyright © 2017年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for passKit.
FOUNDATION_EXPORT double passKitVersionNumber;
//! Project version string for passKit.
FOUNDATION_EXPORT const unsigned char passKitV... | 112 |
375 | # Import modules
import ctypes
# Variables
SendMessageA = ctypes.windll.user32.SendMessageA
HWND = 0xFFFF
WM_SYSCOMMAND = 0x112
SC_MONITORPOWER = 0xF170
# Monitor power management
def Off():
SendMessageA(HWND, WM_SYSCOMMAND, SC_MONITORPOWER, 2)
def On():
SendMessageA(HWND, WM_SYSCOMMAND, SC... | 158 |
421 | <filename>samples/snippets/cpp/VS_Snippets_Remoting/PortCollection_Add/CPP/portcollection_add.cpp
// System.Web.Services.Description.PortCollection.Contains
// System.Web.Services.Description.PortCollection.Add
/*
The following sample reads the contents of a file 'MathServiceAdd_cs.wsdl'
into a 'ServiceDes... | 1,022 |
625 | <filename>jtransc-rt/src/java/time/chrono/ChronoPeriod.java
/*
* 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 un... | 556 |
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... | 676 |
1,435 | <filename>libcloud/test/compute/fixtures/gce/global_firewalls_lcfirewall.json
{
"allowed": [
{
"IPProtocol": "tcp",
"ports": [
"4567"
]
}
],
"creationTimestamp": "2013-06-26T10:04:43.773-07:00",
"description": "Libcloud Test Firewall",
"direction": "INGRESS",
"id": "0565629... | 299 |
1,193 | <gh_stars>1000+
from .base import *
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'REPLACE-ME'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# SECURITY WARNING: use your actual domain name in production!
ALLOWED_HOSTS = ['*']
# Database
# https://d... | 250 |
2,441 | <reponame>emacslisp/python<gh_stars>1000+
/*
* Copyright (c) 2008-2016 <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:
*
* 1. Redistributions of source code must retain the above co... | 2,371 |
742 | /*------------------------------------
///\ Plywood C++ Framework
\\\/ https://plywood.arc80.com/
------------------------------------*/
#include <ply-build-common/Core.h>
#include <ply-build-provider/ExternFolderRegistry.h>
#include <pylon/Parse.h>
#include <pylon/Write.h>
#include <pylon-reflect/Import.h>
#incl... | 977 |
5,169 | <filename>Specs/b/6/3/BoostSwift/0.1.0/BoostSwift.podspec.json
{
"name": "BoostSwift",
"version": "0.1.0",
"summary": "Useful Swift Classes and Extensions to Boost Your Productivity.",
"description": "BoostSwift is a handy collection of Swift classes and extensions to boost your productivity.",
"homepage": "h... | 446 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.