max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
14,668 | <filename>components/flags_ui/feature_entry_macros.h
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_FLAGS_UI_FEATURE_ENTRY_MACROS_H_
#define COMPONENTS_FLAGS_UI_FEATURE_ENTRY_MACROS_... | 1,075 |
643 | <filename>ReactSkia/components/RSkComponentImage.cpp
#include "include/core/SkPaint.h"
#include "include/core/SkClipOp.h"
#include "include/core/SkImageFilter.h"
#include "include/effects/SkImageFilters.h"
#include "react/renderer/components/image/ImageEventEmitter.h"
#include "ReactSkia/components/RSkComponentImage.... | 1,525 |
2,151 | <filename>components/ukm/content/debug_page/debug_page.h
// 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 COMPONENTS_UKM_DEBUG_PAGE_REQUEST_JOB_H_
#define COMPONENTS_UKM_DEBUG_PAGE_REQUEST_JOB_H_... | 441 |
8,772 | <gh_stars>1000+
package org.apereo.cas.shell.commands;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import static org.junit.jupiter.api.Assertions.*;
/**
* This is {@link ExitCommandTes... | 268 |
3,631 | <filename>drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/DMNFeelExpressionEvaluatorTest.java
/*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use th... | 7,211 |
348 | {"nom":"Saint-Langis-lès-Mortagne","circ":"2ème circonscription","dpt":"Orne","inscrits":706,"abs":352,"votants":354,"blancs":16,"nuls":9,"exp":329,"res":[{"nuance":"REM","nom":"<NAME>","voix":180},{"nuance":"LR","nom":"<NAME>","voix":149}]} | 98 |
1,041 | package io.ebeaninternal.api;
import io.ebean.Transaction;
import io.ebeaninternal.server.core.OrmQueryRequest;
/**
* Request for loading Associated One Beans.
*/
public abstract class LoadRequest {
protected final OrmQueryRequest<?> parentRequest;
protected final Transaction transaction;
protected final boo... | 391 |
3,459 | <filename>Cores/FCEU/FCEU/drivers/win/directories.h
#ifndef WIN_DIRECTORIES_H
#define WIN_DIRECTORIES_H
void ConfigDirectories();
#endif
| 62 |
338 | <filename>mcpipy/snake.py<gh_stars>100-1000
from mine import *
from board2d import Board2D
from time import sleep
from random import randint
import input
width = 30
height = 20
mc = Minecraft()
board = Board2D(mc, width, height)
board.fill(block.AIR)
vx = 1
vy = 0
x = width // 2
y = height // 2
length... | 742 |
1,144 | package org.compiere.model;
/*
* #%L
* de.metas.adempiere.adempiere.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* 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 2 of th... | 1,018 |
14,668 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_COMMON_CREDENTIAL_PROVIDER_ARCHIVABLE_CREDENTIAL_UTIL_H_
#define IOS_CHROME_COMMON_CREDENTIAL_PROVIDER_ARCHIVABLE_CREDENTIAL_UTIL_H_
#... | 234 |
1,103 | <gh_stars>1000+
/*
* Copyright 2016-2019 Netflix, 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... | 1,380 |
351 | package com.promegu.xloggerexample;
import com.promegu.xlog.base.XLog;
/**
* Created by guyacong on 2015/7/12.
*/
@XLog
public class BaseCalculator {
public String getName() {
return "BaseCalculator";
}
public int calculate(int i, int j) {
return i + j;
}
}
| 125 |
986 | <gh_stars>100-1000
import sys
import pyarrow as pa
import pyarrow.parquet as pq
import pytest
from pandas.util import testing as tm
import ibis
from ibis.backends.base.file import FileDatabase
from ibis.backends.parquet import ParquetTable
pytestmark = pytest.mark.skipif(
sys.platform == 'win32', reason='See ibi... | 1,131 |
971 | <filename>dl-biz/src/main/java/com/ucar/datalink/biz/service/impl/TaskStatusServiceImpl.java
package com.ucar.datalink.biz.service.impl;
import com.alibaba.fastjson.JSON;
import com.google.common.collect.Sets;
import com.ucar.datalink.common.errors.TaskConflictException;
import com.ucar.datalink.domain.task.TaskStatus... | 1,732 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-w8vh-crmm-4pp5/GHSA-w8vh-crmm-4pp5.json
{
"schema_version": "1.2.0",
"id": "GHSA-w8vh-crmm-4pp5",
"modified": "2022-05-01T18:12:48Z",
"published": "2022-05-01T18:12:48Z",
"aliases": [
"CVE-2007-3347"
],
"details": "The D-Link DPH-540/DPH-541 phone accepts S... | 609 |
1,517 | import subprocess
import sys
import re
# Note: no output will be printed until the entire test suite has finished
p = subprocess.Popen(sys.argv[1], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
stdoutResult, stderrResult = p.communicate()
successRegex = re.compile('OK \(\d+ test... | 165 |
337 | /*
* filesystem.c -- filesystem functions
*
* Copyright (c) 2013, 2014 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* T... | 605 |
2,231 | <filename>engine/gamesys/src/gamesys/gamesys_private.h<gh_stars>1000+
// Copyright 2020 The Defold Foundation
// Licensed under the Defold License version 1.0 (the "License"); you may not use
// this file except in compliance with the License.
//
// You may obtain a copy of the License, together with FAQs at
// https:/... | 1,131 |
32,544 | package com.baeldung.java9.methodhandles;
public class Book {
String id;
String title;
public Book(String id, String title) {
this.id = id;
this.title = title;
}
@SuppressWarnings("unused")
private String formatBook() {
return id + " > " + title;
}
}
| 131 |
1,338 | /*
* Copyright 2005, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef KERNEL_ARCH_THREAD_TYPES_H
#define KERNEL_ARCH_THREAD_TYPES_H
#include <arch_thread_types.h>
#endif /* KERNEL_ARCH_THREAD_TYPES_H */
| 100 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Mésigny","circ":"1ère circonscription","dpt":"Haute-Savoie","inscrits":617,"abs":384,"votants":233,"blancs":15,"nuls":3,"exp":215,"res":[{"nuance":"REM","nom":"<NAME>","voix":119},{"nuance":"LR","nom":"<NAME>","voix":96}]} | 111 |
5,168 | /**
* \file dnn/atlas-stub/src/libatlas-wrap.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
... | 1,681 |
1,412 | #include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#pragma once
struct Blob;
// Can pass as the maxFrames argument to lovrSoundCreateFromCallback
#define LOVR_SOUND_ENDLESS 0xFFFFFFFF
typedef enum {
SAMPLE_F32,
SAMPLE_I16
} SampleFormat;
typedef enum {
CHANNEL_MONO,
CHANNEL_STEREO,
CHANNEL_AMBI... | 589 |
1,647 | #ifndef PYTHONIC_NUMPY_RANDOM_NEGATIVE_BINOMIAL_HPP
#define PYTHONIC_NUMPY_RANDOM_NEGATIVE_BINOMIAL_HPP
#include "pythonic/include/numpy/random/negative_binomial.hpp"
#include "pythonic/include/numpy/random/generator.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/types/NoneType.hpp"
#include "pythonic/... | 672 |
419 | package com.swagger.entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel
public class DefaultPojo {
@ApiModelProperty(value = "ID",example = "1000")
private int id;
@ApiModelProperty(value = "地址",example = "上海")
private String address;
public ... | 232 |
901 | <reponame>dandycheung/Serial<filename>serialization/src/test/java/com/twitter/serial/serializer/CoreSerializersTests.java
/*
* Copyright 2017 Twitter
*
* 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... | 3,091 |
861 | <filename>src/test/java/com/univocity/parsers/examples/samples/CsvSearchExample.java
/*******************************************************************************
* Copyright 2016 Univocity Software Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in ... | 997 |
879 | package org.zstack.header.configuration;
import org.zstack.header.message.APIEvent;
/**
*/
public class APIGenerateSqlIndexEvent extends APIEvent {
public APIGenerateSqlIndexEvent(String apiId) {
super(apiId);
}
public APIGenerateSqlIndexEvent() {
super(null);
}
public static A... | 185 |
1,470 | <reponame>ngoducthinh97/flutter_inappwebview<filename>android/src/main/java/com/pichillilorenzo/flutter_inappwebview/types/URLCredential.java<gh_stars>1000+
package com.pichillilorenzo.flutter_inappwebview.types;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.util.HashMap;
import... | 881 |
2,144 | <gh_stars>1000+
from pgmpy.models import BayesianNetwork, DynamicBayesianNetwork
from pgmpy.factors.discrete import DiscreteFactor
class ApproxInference(object):
def __init__(self, model):
"""
Initializes the Approximate Inference class.
Parameters
----------
model: Instan... | 2,020 |
504 | <filename>src/main/java/com/structurizr/dsl/DeploymentGroupParser.java
package com.structurizr.dsl;
final class DeploymentGroupParser extends AbstractParser {
private static final String GRAMMAR = "deploymentGroup <name>";
private static final int DEPLOYMENT_GROUP_NAME_INDEX = 1;
String parse(Tokens tok... | 295 |
7,956 | <filename>spyder/api/shellconnect/main_widget.py
# -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""
Main widget to use in plugins that show content that comes from the IPython
console, such as the Variable Explore... | 1,824 |
783 | void stage_cu()
{
// Writing instruction memory
Xil_Out32(0x50001004, 0);
Xil_Out32(0x50001000, 0x36100003);
Xil_Out32(0x50001004, 4);
Xil_Out32(0x50001000, 0xBF810000);
// Writing SGPRs for wavefront 1
Xil_Out32(0x50002004, 0);
Xil_Out32(0x50002008, 0x2);
Xil_Out32(0x5000200C, 0x21);
Xil... | 424 |
1,259 | <filename>sample-code/examples/java/junit/src/test/java/com/saucelabs/appium/page_object/widgets/html/simple/HtmlMovie.java
package com.saucelabs.appium.page_object.widgets.html.simple;
import com.saucelabs.appium.page_object.widgets.Movie;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.Find... | 421 |
5,169 | {
"name": "MethodLoader.swift",
"module_name": "MethodLoader",
"version": "0.0.1",
"summary": "swift initialize method substitute plan.",
"swift_versions": "5.0",
"description": "Apply `MethodLoaderProtocol` for a object to instead of initalize method in swift.",
"homepage": "https://github.com/zevwings/M... | 267 |
3,562 | // 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... | 3,362 |
5,169 | {
"name": "YHBSDK",
"version": "3.0.1",
"summary": "YHBSDK SDK",
"description": "YHBSDK 用于提行方APP直接引用",
"homepage": "https://github.com/chenzikui/YHBSDK",
"license": "MIT",
"authors": {
"chenzikui": "<EMAIL>"
},
"platforms": {
"ios": "9.0"
},
"source": {
"git": "https://github.com/chenz... | 262 |
1,350 | <filename>sdk/apimanagement/azure-resourcemanager-apimanagement/src/main/java/com/azure/resourcemanager/apimanagement/models/GatewayHostnameConfigurations.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
pac... | 3,448 |
12,278 | {
"name": "interface",
"version": "0.0.1",
"author": "arangodb",
"description": "revalidating all possible ways to foxx from outside in.",
"main": "index.js"
}
| 64 |
507 | //
// Copyright 2018 Pixar
//
// 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 wri... | 586 |
575 | // 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.
#include "chrome/browser/ui/app_list/search/arc/arc_app_shortcuts_search_provider.h"
#include <memory>
#include <string>
#include <utility>
#include "as... | 1,644 |
396 | package me.everything.providers.android.media;
import android.net.Uri;
import android.provider.BaseColumns;
import android.provider.MediaStore;
import me.everything.providers.core.Entity;
import me.everything.providers.core.FieldMapping;
import me.everything.providers.core.IgnoreMapping;
/**
* Created by sromku
*/... | 1,393 |
5,156 | /* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
#include "util.h"
void callback(uint64_t env, char *name, __attribute__((unused)) map_properties_t* props) {
const char search[] = "librrpreload.so";
if (strlen(name) > strlen(search)) {
if (sizeof(void*) == 4 &&
strcmp(nam... | 627 |
387 | <reponame>jtragtenberg/M5StickC
#ifndef __AXP192_H__
#define __AXP192_H__
#include <Arduino.h>
#include <Wire.h>
#define SLEEP_MSEC(us) (((uint64_t)us) * 1000L)
#define SLEEP_SEC(us) (((uint64_t)us) * 1000000L)
#define SLEEP_MIN(us) (((uint64_t)us) * 60L * 1000000L)
#define SLEEP_HR(us) (((uint64_t)us) * 60L * 60... | 1,917 |
8,054 | #include "floatingwidget.h"
#include <QMenu>
using namespace vnotex;
FloatingWidget::FloatingWidget(QWidget *p_parent)
: QWidget(p_parent)
{
}
void FloatingWidget::showEvent(QShowEvent *p_event)
{
QWidget::showEvent(p_event);
// May fix potential input method issue.
activateWindow();
setFocus(... | 195 |
2,151 | // Copyright 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 CHROME_BROWSER_ANDROID_PREFERENCES_PREFERENCES_LAUNCHER_H_
#define CHROME_BROWSER_ANDROID_PREFERENCES_PREFERENCES_LAUNCHER_H_
#include "base/macr... | 287 |
734 | package com.cheikh.lazywaimai.module.library;
import android.content.Context;
import java.io.File;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import com.cheikh.lazywaimai.context.AppCookie;
import com.cheikh.lazywaimai.module.qualifiers.ApplicationContext;
import com.cheikh.lazywai... | 471 |
4,756 | // Copyright 2019 The MACE 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
//
// Unless required by appl... | 2,339 |
375 | <reponame>wulinyun/lumify
package io.lumify.palantir.service;
import io.lumify.palantir.DataToSequenceFile;
import io.lumify.palantir.model.PtOntologyType;
import org.apache.hadoop.io.SequenceFile;
import java.io.IOException;
public abstract class OntologyTypeExporterBase<T extends PtOntologyType> extends ExporterBa... | 256 |
2,671 | def f():
for i in 1,2,3,4,5:
if i == 3: break
yield i
print list(f())
| 52 |
432 | #ifndef _E5_IMC_REG_H_
#define _E5_IMC_REG_H_
#ifndef _SYS_BITOPS_H_
#include <sys/bitops.h>
#endif
/*
* E5 v2/v3 supports 4 channels, each channels could have 3 DIMMs.
* However each channel could only support 8 ranks, e.g. 3 quad-
* rank DIMMs can _not_ be installed.
*
* E5 v2 only has IMC0, which has 4 channe... | 4,617 |
1,738 | <reponame>brianherrera/lumberyard
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or... | 562 |
488 | // Copyright 2005,2006,2007 <NAME>, <NAME>
// $Id: spec.h,v 1.4 2008-08-23 13:47:04 gergo Exp $
#ifndef H_SPEC
#define H_SPEC
#include <string>
#include "GrammarIr.h"
enum types { T_ID, T_STR, T_NUM };
struct isn
{
enum types type;
unsigned long line, col;
const char *id;
char *str;
unsigned lo... | 190 |
1,299 | /*
* Copyright 2015 Netflix, 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 applicable law or agreed t... | 816 |
17,703 | #include <memory>
#include "envoy/network/filter.h"
#include "envoy/network/listener.h"
#include "source/common/network/listen_socket_impl.h"
#include "source/common/network/socket_option_factory.h"
#include "source/common/network/udp_packet_writer_handler_impl.h"
#include "source/server/active_udp_listener.h"
#incl... | 2,825 |
462 | ##
# Copyright (c) 2005-2017 Apple 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 applicable l... | 1,979 |
1,779 | //
// 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 ... | 1,304 |
1,171 | /**
* Copyright 2014 Facebook
* @author <NAME> (<EMAIL>)
*/
#include "src/util/AsyncCopier.h"
#include "src/util/Misc.h"
#include <folly/Format.h>
#include <glog/logging.h>
namespace facebook { namespace cuda {
uint8_t* allocPageLocked(size_t size) {
void* ptr;
checkCudaError(cudaHostAlloc(&ptr, size, cudaHo... | 2,341 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-2fch-jvg5-crf6",
"modified": "2021-08-30T14:56:20Z",
"published": "2019-03-25T16:17:53Z",
"aliases": [
"CVE-2019-6690"
],
"summary": "Moderate severity vulnerability that affects python-gnupg",
"details": "python-gnupg 0.4.3 allows context-dependent attackers... | 1,548 |
462 | from mamba import description, before, context, it
from expects import expect, be_false, raise_error, contain
from doublex_expects import have_been_called_with
from doublex import Spy
from spec.object_mother import *
from mamba import reporter, runnable
from mamba.example_group import PendingExampleGroup
with descr... | 811 |
2,242 | <gh_stars>1000+
{
"please_wait": "Lütfen bekleyin...",
"validation_messages": {
"accept": "Resim dosyası GIF, JPG veya PNG formatında olmalıdır.",
"creditcard": "Lütfen geçerli bir kredi kartı numarası giriniz.",
"date": "Lütfen geçerli bir tarih giriniz.",
"dateISO": "Lütfen geçerli bir tarih girin... | 798 |
355 | #!/usr/bin/env python3
"""
This housekeeping script reads a GFF3 file and writes a new one, excluding any features
which aren't related to another feature.
The initial use-case here was a GFF file with gene features that had no mRNA children.
Warning: Because feature parentage can be anywhere in the file, it can be ... | 1,250 |
461 | <gh_stars>100-1000
#include "cpu/exec.h"
make_EHelper(ld) {
rtl_lm(&s0, &id_src->addr, decinfo.width);
rtl_sr(id_dest->reg, &s0, 4);
switch (decinfo.width) {
case 4: print_asm_template2(lw); break;
case 2: print_asm_template2(lhu); break;
case 1: print_asm_template2(lbu); break;
default: assert(... | 267 |
3,156 | from test.integration.base import DBTIntegrationTest, use_profile
import os
import re
import yaml
import pytest
class TestDebug(DBTIntegrationTest):
@property
def schema(self):
return 'dbt_debug_049'
@staticmethod
def dir(value):
return os.path.normpath(value)
@property
def... | 2,588 |
1,564 | <filename>core/src/test/java/org/modelmapper/bugs/GH550.java
package org.modelmapper.bugs;
import static org.testng.Assert.assertEquals;
import java.util.HashMap;
import org.modelmapper.AbstractTest;
import org.testng.annotations.Test;
@Test
public class GH550 extends AbstractTest {
public void shouldSupportHash... | 362 |
1,179 | <gh_stars>1000+
// SPDX-License-Identifier: BSD-2-Clause
/* LibTomCrypt, modular cryptographic library -- <NAME>
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all purposes without any express
* guarantee it works.... | 220 |
4,036 | package remove_type_mismatch;
import java.util.Collection;
public class A {
void test1(Collection<StringBuffer> c, String s, StringBuffer b) {
c.remove(s);
c.remove(b);
}
void test2(Collection<? extends CharSequence> c, A a, String b) {
c.remove(a);
c.remove(b);
}
}
interface RunnableList extends Runna... | 338 |
14,668 | // Copyright 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 IOS_CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_WEB_STATE_OBSERVER_H_
#define IOS_CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_WEB_STATE_OBSERVER_H_
#incl... | 690 |
314 | <filename>Multiplex/IDEHeaders/IDEHeaders/DVTKit/DVTWebViewTextAttachmentCell.h
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "CDStructures.h"
@class WebView;
@interface DVTWebViewTextAttachmentCell : NSViewTextAttachmentCe... | 216 |
9,516 | <gh_stars>1000+
/*!
* Copyright (c) 2018 by Contributors
* \file scheduler/scheduler.cc
* \brief DGL Scheduler implementation
*/
#include <dgl/scheduler.h>
#include <unordered_map>
#include <vector>
namespace dgl {
namespace sched {
template <class IdType>
std::vector<IdArray> DegreeBucketing(const IdArray& msg_... | 2,885 |
2,151 | // Copyright 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.
#include "chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h"
#include <memory>
#include <string>
#include <utility>... | 5,750 |
4,256 | <filename>tests/sidetrail/working/stubs/s2n_hash.h
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.a... | 971 |
9,472 | <reponame>kzh3ka/japronto<gh_stars>1000+
import asyncio
from japronto import Application
# This is a synchronous handler.
def synchronous(request):
return request.Response(text='I am synchronous!')
# This is an asynchronous handler. It spends most of the time in the event loop.
# It wakes up every second 1 to p... | 248 |
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.hybridcompute.fluent;
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
/** The interface for HybridComputeMa... | 755 |
1,738 | <filename>dev/Code/Tools/CryCommonTools/ZipDir/ZipDirFindRW.h
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governe... | 1,434 |
839 | /**
* 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 m... | 2,052 |
502 | <filename>wlplayer/app/src/main/java/com/ywl5320/player/base/BaseBean.java<gh_stars>100-1000
package com.ywl5320.player.base;
import com.ywl5320.player.util.BeanUtil;
import java.io.Serializable;
/**
* Created by ywl5320 on 2017/9/4.
*/
public class BaseBean implements Serializable{
public static final lon... | 178 |
460 | /*
* Copyright 2018 Red Hat, Inc, and individual 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 1,316 |
577 | <filename>fluentlenium-core/src/main/java/org/fluentlenium/core/inject/Parent.java
package org.fluentlenium.core.inject;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* ... | 695 |
14,668 | /* Copyright (c) 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. */
/* XRay -- a simple profiler for Native Client */
#include <assert.h>
#include <errno.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.... | 9,061 |
34,359 | // PCG Random Number Generation for C++
//
// Copyright 2014-2019 <NAME> <<EMAIL>>,
// and the PCG Project contributors.
//
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//
// Licensed under the Apache License, Version 2.0 (provided in
// LICENSE-APACHE.txt and at http://www.apache.org/lic... | 1,277 |
500 | <reponame>spmallette/blueprints<filename>blueprints-core/src/main/java/com/tinkerpop/blueprints/util/wrappers/batch/cache/StringIDVertexCache.java
package com.tinkerpop.blueprints.util.wrappers.batch.cache;
import com.tinkerpop.blueprints.Graph;
import com.tinkerpop.blueprints.Vertex;
import java.util.HashMap;
import... | 839 |
594 | <reponame>Chengyu-Cui/USTC_CG
#pragma once
#include <Engine/Scene/Component.h>
namespace Ubpa {
class Material;
class CmptMaterial final : public Component {
public:
CmptMaterial(Ptr<SObj> sobj, Ptr<Material> material)
: Component(sobj), material(material) { }
public:
static const Ptr<CmptMaterial> New(P... | 197 |
1,247 | package org.andengine.util.adt;
/**
* (c) 2010 <NAME>
* (c) 2011 Zynga Inc.
*
* @author <NAME>
* @since 17:59:55 - 14.07.2011
*/
public interface DataConstants {
// ===========================================================
// Constants
// ===========================================================
public... | 676 |
1,350 | <gh_stars>1000+
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.cognitiveservices.language.luis.authoring.mo... | 589 |
1,042 | /*
* Copyright (c) scott.cgi All Rights Reserved.
*
* This source code belongs to project Mojoc, which is a pure C Game Engine hosted on GitHub.
* The Mojoc Game Engine is licensed under the MIT License, and will continue to be iterated with coding passion.
*
* License : https://github.com/scottcgi/Mojoc/blob/ma... | 302 |
303 | <reponame>davidmoten/rxjava-extras
package com.github.davidmoten.rx.testing;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import rx.Observable;
import rx.functions.Func1;
public class TestingHelperConcatTest extends TestCase {
public static TestSuite suite() {
return TestingHelper.f... | 648 |
763 | <reponame>zabrewer/batfish
package org.batfish.datamodel.matchers;
import org.batfish.datamodel.Flow;
import org.batfish.datamodel.Ip;
import org.batfish.datamodel.IpProtocol;
import org.hamcrest.FeatureMatcher;
import org.hamcrest.Matcher;
public final class FlowMatchersImpl {
private FlowMatchersImpl() {}
publ... | 2,125 |
841 | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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... | 742 |
4,054 | <gh_stars>1000+
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengl;
import org.lwjgl.system.*;
/**
* Native bindings to the <a target="_blank" href="https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_... | 3,231 |
872 | <reponame>phoemark2o20/Malware-Analysis-Training
# IDA Sync Server Constants
# Copyright (C) 2005 <NAME> <<EMAIL>>
#
# 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 2 of the... | 409 |
851 | /*
* Copyright 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 contributing ... | 872 |
5,316 | <reponame>pgliaskovitis/aerosolve
package com.airbnb.aerosolve.core.transforms;
import com.airbnb.aerosolve.core.FeatureVector;
import com.typesafe.config.Config;
import java.io.Serializable;
import java.util.stream.Stream;
/**
* Created by hector_yee on 8/25/14.
* Base class for feature transforms.
*/
public in... | 398 |
562 | <reponame>mostafaelhoushi/CompilerGym
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""Unit tests for //compiler_gym/util:capture_output."""
import sys
from compiler_gym.util.capture_outpu... | 317 |
5,754 | <gh_stars>1000+
import sys
import pytest
import shutil
from pathlib import Path
from cookiecutter import main
CCDS_ROOT = Path(__file__).parents[1].resolve()
args = {
'project_name': 'DrivenData',
'author_name': 'DrivenData',
'open_source_license': 'BSD-3-Clause',
'python_interpreter':... | 468 |
10,433 | #ifndef skynet_hashid_h
#define skynet_hashid_h
#include <assert.h>
#include <stdlib.h>
#include <string.h>
struct hashid_node {
int id;
struct hashid_node *next;
};
struct hashid {
int hashmod;
int cap;
int count;
struct hashid_node *id;
struct hashid_node **hash;
};
static void
hashid_init(struct hashid *h... | 977 |
530 | package org.carlspring.strongbox.yaml.configuration.repository;
import org.carlspring.strongbox.yaml.repository.RepositoryConfiguration;
public interface NugetRepositoryConfiguration extends RepositoryConfiguration
{
String getFeedVersion();
Integer getRemoteFeedPageSize();
} | 81 |
513 | <reponame>HarrisJT/plibsys
/*
* The MIT License
*
* Copyright (C) 2017 <NAME> <<EMAIL>>
*
* 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 limi... | 1,396 |
5,169 | <reponame>Gantios/Specs
{
"name": "WrappedValue",
"version": "0.1.0",
"summary": "Forget the struggle of decoding Strings!",
"swift_version": "4.2",
"description": "Is your RESTful API returning Strings instead of Doubles? Are you tired of writing all that custom decoding? Let WrappedValue do it for you!",
... | 267 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.