max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
575 | // 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 IOS_CHROME_BROWSER_UI_WEBUI_GCM_GCM_INTERNALS_UI_H_
#define IOS_CHROME_BROWSER_UI_WEBUI_GCM_GCM_INTERNALS_UI_H_
#include <string>
#include "base... | 304 |
15,577 | <gh_stars>1000+
#pragma once
#include <string>
#include <functional>
#include <boost/noncopyable.hpp>
namespace DB
{
class WriteBuffer;
/** Provides that no more than one server works with one data directory.
*/
class StatusFile : private boost::noncopyable
{
public:
using FillFunction = std::function<void(... | 217 |
480 | <filename>core/migrations/0007_temperature.py
# Generated by Django 2.2 on 2019-05-17 03:54
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0006_auto_20190502_1701'),
]
operations = [
migrations.... | 502 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport
*/
#import <OfficeImport/OADEmbeddedMediaFile.h>
__attribute__((visibility("hidden")))
@interface OADWavAudioFile : OADEmbeddedMediaFile {
@private
float mDuration; // 20 = 0x14... | 307 |
953 | <filename>spring-graphql/src/test/java/org/springframework/graphql/web/webmvc/GraphiQlHandlerTests.java
/*
* Copyright 2020-2022 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 ... | 1,561 |
348 | {"nom":"Wimmenau","circ":"7ème circonscription","dpt":"Bas-Rhin","inscrits":892,"abs":547,"votants":345,"blancs":15,"nuls":6,"exp":324,"res":[{"nuance":"LR","nom":"<NAME>","voix":225},{"nuance":"REM","nom":"<NAME>","voix":99}]} | 93 |
348 | <gh_stars>100-1000
{"nom":"Saint-Geniès-des-Mourgues","circ":"3ème circonscription","dpt":"Hérault","inscrits":1615,"abs":854,"votants":761,"blancs":64,"nuls":24,"exp":673,"res":[{"nuance":"REM","nom":"<NAME>","voix":415},{"nuance":"FI","nom":"<NAME>","voix":258}]} | 112 |
6,036 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import os
import sys
# need to add the path to the ORT flatbuffers python module before we import anything else here.
# we also auto-magically adjust to whether we're running from the ORT repo, or from within the ORT python ... | 412 |
1,338 | <gh_stars>1000+
/*
* Copyright 2009, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include <package/hpkg/PackageEntry.h>
namespace BPackageKit {
namespace BHPKG {
BPackageEntry::BPackageEntry(BPackageEntry* parent, const char* name)
:
fParent(parent),
fName(name),
fUserToken(NULL)... | 253 |
4,389 | <reponame>informatique-cdc/kafka-python<filename>test/testutil.py
from __future__ import absolute_import
import os
import random
import re
import string
import time
def special_to_underscore(string, _matcher=re.compile(r'[^a-zA-Z0-9_]+')):
return _matcher.sub('_', string)
def random_string(length):
return ... | 523 |
9,255 | package android.content.res;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
/**
* Created by qiaopu on 2018/5/3.
*/
public final class ResourcesKey {
@Nullable
public final String mResDir;
@Nullable
public final String[] mSplitResDirs;
@Nullable
... | 459 |
743 | {
"DATA_SOURCE_QUICKCONNECT" : {
"NAME" : "QuickConnect"
},
"QUICKCONNECT" : {
"ACTION_CONNECT" : "Connect",
"ERROR_INVALID_URI" : "Invalid URI Specified",
"ERROR_NO_HOST" : "No host specified",
"ERROR_NO_PROTOCOL" : "No protocol s... | 243 |
335 | {
"word": "Single",
"definitions": [
"Choose someone or something from a group for special treatment.",
"Thin out (seedlings or saplings)",
"Reduce (a railway track) to a single line.",
"Hit a single.",
"Cause (a run) to be scored by hitting a single.",
"Advance (... | 157 |
5,267 | package io.swagger.v3.jaxrs2.resources.generics.ticket2144;
public class BaseDTO {
public String name;
}
| 42 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
/**
* Package containing the types for instantiating and using the Gson JSON serializer.
*/
package com.azure.core.serializer.json.gson;
| 61 |
3,227 | <reponame>ffteja/cgal
// Copyright (c) 1999 Max-Planck-Institute Saarbruecken (Germany).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
//
// Author(s) : <NAME>
#ifndef CGAL_CH_JARVIS_H
#define C... | 1,049 |
1,428 | #include <stdio.h>
int main() {
/*hello asia for hacktoberfest*/
printf("Hello Asia !!!!!!!!!! \n");
return 0;
}
| 53 |
778 | <reponame>troels/compute-runtime<gh_stars>100-1000
/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/hw_info.h"
#include "shared/test/common/helpers/debug_manager_state_restore.h"
#include "shared/test/common/helpers/default_hw_info.h"
#include "openc... | 1,309 |
513 | <gh_stars>100-1000
//
// Copyright (c) 2002-2012 The ANGLE 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.
//
// Surface.cpp: Implements the egl::Surface class, representing a drawing surface
// such as the client area of a w... | 4,279 |
462 | <reponame>swipswaps/node-spatialite
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2011 <NAME> <<EMAIL>>
* Copyright (C) 2005-2006 Refractions Research Inc.
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
... | 4,645 |
388 | <gh_stars>100-1000
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Objects;
import javax.swing.*;
import javax.swing.event.DocumentEvent;
import javax.swing.event.Document... | 1,615 |
1,303 | /*
* Tencent is pleased to support the open source community by making TBase available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* TBase is licensed under the BSD 3-Clause License, except for the third-party component listed below.
*
* A copy of the BSD 3-Clause Li... | 7,592 |
1,305 | /*
** JNetLib
** Copyright (C) 2000-2001 Nullsoft, Inc.
** Author: <NAME>
** File: testbnc.cpp - JNL network bounce test code
** License: see jnetlib.h
*/
#ifdef _WIN32
#include <windows.h>
#else
#define Sleep(x) usleep((x)*1000)
#endif
#include <stdio.h>
#include "jnetlib.h"
int main(int argc, char *argv[])
{
JNL... | 1,452 |
3,024 | """Tests for the standard set of rules."""
import pytest
import os
from sqlfluff.core.config import FluffConfig
from sqlfluff.testing.rules import assert_rule_raises_violations_in_file
from test.fixtures.dbt.templater import ( # noqa
DBT_FLUFF_CONFIG,
project_dir,
dbt_templater,
)
@pytest.mark.parametr... | 361 |
487 | <reponame>imphil/verible
// Copyright 2017-2020 The Verible 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 req... | 1,065 |
10,225 | <reponame>CraigMcDonaldCodes/quarkus<gh_stars>1000+
package io.quarkus.gradle.extension;
import org.gradle.api.tasks.SourceSet;
public class SourceSetExtension {
private SourceSet extraNativeTestSourceSet;
public SourceSet extraNativeTest() {
return extraNativeTestSourceSet;
}
public void s... | 155 |
511 | <reponame>fahamk/writersblock
/*
*
* Copyright 2015 gRPC 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... | 1,386 |
1,009 | /*
* Program type: API
*
* EVENTS.C -- Example events program
*
* Description: This program does an asynchronous event wait
* on a trigger set up in the sales table of
* employee.fdb.
* Somebody must add a new sales order to alert
* ... | 5,304 |
471 | <gh_stars>100-1000
/////////////////////////////////////////////////////////////////////////////
// Name: src/gtk/checklst.cpp
// Purpose:
// Author: <NAME>
// Modified by: <NAME> (Native GTK2.0+ checklist)
// Copyright: (c) 1998 <NAME>
// Licence: wxWindows licence
///////////////////////////////////... | 2,676 |
3,084 | /*++
Copyright (c) Microsoft Corporation. All rights reserved.
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
PURPOSE.
... | 446 |
12,278 | /*=============================================================================
Copyright (c) 2003 <NAME>
http://spirit.sourceforge.net/
Use, modification and distribution is subject to the Boost Software
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/L... | 1,552 |
10,002 | <filename>src/CalcViewModel/DataLoaders/DataLoaderMockConstants.h<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
namespace CalculatorApp
{
namespace DataLoaders
{
static constexpr auto sc_MetadataUriLocalizeFor = L"https://go... | 180 |
5,169 | {
"name": "RTDatabase",
"version": "0.1.0",
"summary": "A Library for iOS to use for sqlite",
"homepage": "https://github.com/FuihuiC",
"authors": {
"ENUUI": "<EMAIL>"
},
"source": {
"git": "https://github.com/FuihuiC/RTDB.git",
"tag": "0.1.0"
},
"requires_arc": true,
"platforms": {
... | 391 |
1,968 | <gh_stars>1000+
//////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: <EMAIL>
//
///////////////////////... | 1,517 |
1,483 | package org.lealone.test.service.generated;
import java.sql.*;
import java.sql.Date;
import org.lealone.client.ClientServiceProxy;
/**
* Service interface for 'hello_world_service'.
*
* THIS IS A GENERATED OBJECT, DO NOT MODIFY THIS CLASS.
*/
public interface HelloWorldService {
static HelloWorldService crea... | 1,757 |
14,425 | <reponame>bzhaoopenstack/hadoop
/**
* 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, Ver... | 1,179 |
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.
#ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_LIFECYCLE_NOTIFIER_H_
#define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_LIFECYCLE_NOTIFIER_H_
#include "base/androi... | 249 |
834 | <reponame>BohdanMosiyuk/samples
//<snippet100>
#using <System.Drawing.dll>
#using <System.dll>
#using <system.windows.forms.dll>
using namespace System;
using namespace System::Windows::Forms;
using namespace System::Drawing;
using namespace System::Collections;
public ref class DataGridViewColumnDemo: public Form
{
... | 5,641 |
574 | <reponame>PDDStudio/EncryptedPreferences<filename>encrypted-preferences/src/androidTest/java/com/pddstudio/preferences/encrypted/SingletonCreationTest.java
package com.pddstudio.preferences.encrypted;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runne... | 394 |
1,405 | <gh_stars>1000+
package com.network.a;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.util.Xml;
import com.network.android.SmsReceiver;
import com.network.android.c.a.a;
import com.network.android.j;
import java.io.StringWriter;
import org.xmlpull... | 2,916 |
319 | <filename>module/extra/src/main/java/blade/Extra.java
package blade;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.SOURCE;
@Target(FIELD)
@Retention(SOURCE)
public @interface Extra {
... | 119 |
310 | {
"name": "GarageBand (iOS)",
"description": "A music creation app.",
"url": "https://itunes.apple.com/us/app/garageband/id408709785"
} | 54 |
14,668 | <gh_stars>1000+
// 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 THIRD_PARTY_WEBRTC_OVERRIDES_RTC_BASE_EVENT_H_
#define THIRD_PARTY_WEBRTC_OVERRIDES_RTC_BASE_EVENT_H_
#include "base/synchronizat... | 523 |
1,752 | <reponame>ilaotan/MyPerf4J
package MyPerf4J.test1;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
/**
* Created by LinShunkang on 2018/4/23
*/
public class MyClassAdapter extends ClassVisitor implements Opcodes {
private Class<?> analysisClass;
... | 751 |
1,570 | /*
* Copyright 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
*
* Unless required by applica... | 1,428 |
4,538 |
/** @brief configuration */
unsigned char rtlbt_config[] =
{
0x55, 0xab, 0x23, 0x87,
0x19, 0x00,
0xD6, 0x00, 0x02, 0x8C, 0x8C, /*LE trx on delay*/
};
/** @brief The length of configuration */
unsigned int rtlbt_config_len = sizeof(rtlbt_config);
extern unsigned char rtlbt_fw[];
const unsig... | 237 |
1,765 | #ifndef DDF_EDITOR_H
#define DDF_EDITOR_H
#include <QWidget>
namespace Ui {
class DDF_Editor;
}
class DeviceDescriptions;
class DeviceDescription;
class DDF_EditorPrivate;
class DDF_Editor : public QWidget
{
Q_OBJECT
public:
explicit DDF_Editor(DeviceDescriptions *dd, QWidget *parent = nullptr);
~DDF_... | 438 |
5,514 | package com.u9porn.data.model;
import java.io.Serializable;
/**
* @author flymegoc
* @date 2018/2/1
*/
public class Mm99 implements Serializable{
private static final long serialVersionUID = 1L;
private int id;
private String title;
private String imgUrl;
private String contentUrl;
priva... | 502 |
348 | <filename>docs/data/leg-t2/033/03312482.json
{"nom":"Saint-Sulpice-de-Pommiers","circ":"12ème circonscription","dpt":"Gironde","inscrits":212,"abs":141,"votants":71,"blancs":12,"nuls":5,"exp":54,"res":[{"nuance":"FI","nom":"<NAME>","voix":28},{"nuance":"REM","nom":"<NAME>","voix":26}]} | 117 |
1,319 | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
try:
from collections.abc import Sequence
except Exception:
from collections import Sequence
from numbers import Number
import uuid
import logging
import random
import math
import numpy as np
import ... | 9,262 |
617 | /* libunwind - a platform-independent unwind library
Copyright (C) 2003-2004 Hewlett-Packard Co
Contributed by <NAME> <<EMAIL>>
This file is part of libunwind.
Copyright (c) 2003 Hewlett-Packard Co.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated docum... | 1,348 |
8,558 | <gh_stars>1000+
"""
Module meant to make it easy to load the features of MoviePy that you will use
for live editing by simply typing:
>>> from moviepy.editor import *
- Starts a pygame session to enable ``clip.show()`` and ``clip.preview()``
if pygame is installed
- Enables ``clip.ipython_display()`` if in an IPyth... | 668 |
852 | import FWCore.ParameterSet.Config as cms
phase1Pixel = cms.Modifier()
| 25 |
1,444 |
package mage.cards.m;
import java.util.UUID;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.keyword.RetraceAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.target.common.TargetCreat... | 368 |
590 | from flask import Blueprint
bp = Blueprint('experiments', __name__)
from app.experiments import routes # noqa E402, F401 | 34 |
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 ... | 443 |
4,480 | /*
* Copyright 2013-2016 <NAME>, <NAME>, <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 License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 272 |
332 | package org.python.antlr;
import org.antlr.runtime.CommonToken;
import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.Token;
import org.antlr.runtime.TokenStream;
import org.antlr.runtime.tree.CommonTreeAdaptor;
public class PythonTreeAdaptor extends CommonTreeAdaptor {
@Override
public voi... | 1,835 |
603 | /* Copyright (c) 2014-2018, 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 ... | 5,432 |
14,525 | <reponame>leonarduschen/zipline
import os
import subprocess
import networkx as nx
def debug_mro_failure(name, bases):
graph = build_linearization_graph(name, bases)
cycles = sorted(nx.cycles.simple_cycles(graph), key=len)
cycle = cycles[0]
if os.environ.get('DRAW_MRO_FAILURES'):
output_file ... | 1,165 |
2,151 | <reponame>zipated/src<gh_stars>1000+
// 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_CONFLICTS_THIRD_PARTY_METRICS_RECORDER_WIN_H_
#define CHROME_BROWSER_CONFLICTS_THIRD_PARTY_MET... | 488 |
389 | package gw.lang.reflect;
import gw.lang.IDimension;
import gw.lang.reflect.java.IJavaType;
import gw.util.Pair;
import java.lang.reflect.Field;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import ja... | 1,579 |
1,266 | // Copyright (c) 2017 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_TEST_SIGUTIL_H
#define BITCOIN_TEST_SIGUTIL_H
#include <cstdint>
#include <vector>
void NegateSignatureS(std::vector<... | 139 |
1,191 | /**
* Appcelerator Titanium Mobile
* Copyright (c) 2021-Present by Axway, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#if defined(USE_TI_UIOPTIONBAR)
#import <TitaniumKit/TiViewProxy.h>
@interface TiUIOp... | 110 |
3,227 | <filename>HalfedgeDS/doc/HalfedgeDS/CGAL/HalfedgeDS_default.h
namespace CGAL {
/*!
\ingroup PkgHalfedgeDS_HDS
The class `HalfedgeDS_default` is a model for the `HalfedgeDS` concept. The
second template parameter `HalfedgeDSItems` has a default argument
`CGAL::HalfedgeDS_items_2`. The third template parameter `Alloc`
... | 529 |
4,054 | <filename>searchcore/src/vespa/searchcore/proton/flushengine/prepare_restart_flush_strategy.cpp
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "prepare_restart_flush_strategy.h"
#include "flush_target_candidates.h"
#include "flush_target_candidate.h"
#... | 2,516 |
2,535 | #include <pybind11/eigen.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <dense/depthmap_bind.h>
#include <dense/openmvs_exporter.h>
#include <foundation/python_types.h>
PYBIND11_MODULE(pydense, m) {
py::class_<dense::OpenMVSExporter>(m, "OpenMVSExporter")
.def(py::init())
.def("add... | 913 |
528 | from opytimizer.optimizers.evolutionary import GHS
# One should declare a hyperparameters object based
# on the desired algorithm that will be used
params = {
'HMCR': 0.7,
'PAR_min': 0.0,
'PAR_max': 1.0,
'bw_min': 1.0,
'bw_max': 10.0
}
# Creates an GHS optimizer
o = GHS(params=params)
| 129 |
611 | """Tests for gt.GraphTensor extension type (go/tf-gnn-api)."""
import functools
from typing import Mapping, Union
from absl.testing import parameterized
import tensorflow as tf
from tensorflow_gnn.graph import adjacency as adj
from tensorflow_gnn.graph import graph_constants as const
from tensorflow_gnn.graph import ... | 20,802 |
555 | /*
* 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 ... | 7,006 |
2,360 | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
class Libksba(AutotoolsPackage):
"""Libksba is a library to make the tasks of working with X.509
certificates, CM... | 561 |
668 | <reponame>rschatz/sulong
/*
* Copyright (c) 2016, 2018, Oracle and/or its affiliates.
*
* 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 th... | 5,348 |
778 | <filename>modPrecompiled/test/org/aion/precompiled/contracts/ATB/BridgeControllerRingTest.java
package org.aion.precompiled.contracts.ATB;
import static com.google.common.truth.Truth.assertThat;
import static org.aion.precompiled.contracts.ATB.BridgeTestUtils.dummyContext;
import java.util.Random;
import org.aion.pre... | 1,682 |
575 | <filename>ui/aura/scoped_window_capture_request.cc
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/aura/scoped_window_capture_request.h"
#include "ui/aura/window.h"
namespace aura {
Scop... | 392 |
643 | <gh_stars>100-1000
package com.hellokoding.datastructure.graph;
import java.util.ArrayDeque;
import java.util.Deque;
public class BFSByIterative {
public static void bfsByIterative(GraphUndirectedByAdjacencyList g, int v) {
boolean[] visited = new boolean[g.getV()];
Deque<Integer> queue = new Arra... | 502 |
348 | {"nom":"Saint-Clément","circ":"1ère circonscription","dpt":"Ardèche","inscrits":102,"abs":48,"votants":54,"blancs":8,"nuls":0,"exp":46,"res":[{"nuance":"SOC","nom":"<NAME>","voix":25},{"nuance":"REM","nom":"M. <NAME>","voix":21}]} | 94 |
852 | <reponame>ckamtsikis/cmssw
from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrderDefault_cfi import trackAlgoPriorityOrderDefault as _trackAlgoPriorityOrderDefault
import RecoTracker.IterativeTracking.iterativeTkConfig as _cfg
trackAlgoPriorityOrder = _trackAlgoPriorityOrderDefault.clone(
algoOrder = _cfg.ite... | 168 |
9,541 | <gh_stars>1000+
#ifndef SIMDJSON_ARM64_H
#define SIMDJSON_ARM64_H
#include "simdjson/implementation-base.h"
#if SIMDJSON_IMPLEMENTATION_ARM64
namespace simdjson {
/**
* Implementation for NEON (ARMv8).
*/
namespace arm64 {
} // namespace arm64
} // namespace simdjson
#include "simdjson/arm64/implementation.h"
#i... | 343 |
350 | #include <iostream>
#include <stdlib.h>
#include "elxElastixFilter.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
int main( int argc, char* argv[] ) {
if ( argc < 4 ) {
std::cerr << "Usage: " << argv[0] << " <fixedImage> <movingImage> <parameterFile> <outputImage>\n";
return 1;
}
t... | 696 |
530 | <gh_stars>100-1000
/*
looiDefs.h: type declarations for Looi and Noodl run time
<NAME>, Lucasfilm Ltd., 3-January-1986
*/
typedef int bool;
#define TRUE 1
#define FALSE 0
typedef int noidType;
#define CLASS_MASK 0x3FF
#define CLASS_LIMIT CLASS_MASK+1
#define CLASS_SHIFT 10
#define OBJECT_LIMIT 200
#def... | 371 |
1,989 | <reponame>hhxx2015/hugegraph
/*
* Copyright 2017 HugeGraph Authors
*
* 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... | 2,174 |
589 | <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 License, Version 2.0 (the... | 4,142 |
1,444 | <gh_stars>1000+
package mage.cards.m;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.Cost;
import mage.abilities.costs.common.SacrificeTargetCost;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.... | 1,100 |
464 | package dev.fiki.forgehax.api.mod;
import com.google.gson.JsonElement;
import com.google.gson.JsonNull;
import dev.fiki.forgehax.api.cmd.ICommand;
import dev.fiki.forgehax.api.cmd.flag.EnumFlag;
import static dev.fiki.forgehax.main.Common.getRootCommand;
/**
* Created on 6/1/2017 by fr1kin
*/
public class CommandM... | 396 |
852 | <reponame>malbouis/cmssw
#include "CondFormats/CSCObjects/interface/CSCL1TPLookupTableME11ILT.h"
CSCL1TPLookupTableME11ILT::CSCL1TPLookupTableME11ILT()
: GEM_pad_CSC_hs_ME1b_even_(0),
GEM_pad_CSC_hs_ME1a_even_(0),
GEM_pad_CSC_hs_ME1b_odd_(0),
GEM_pad_CSC_hs_ME1a_odd_(0),
GEM_pad_CSC_es_ME1... | 6,123 |
10,225 | <reponame>CraigMcDonaldCodes/quarkus
package io.quarkus.it.cache;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import org.jboss.resteasy.annotations.jaxrs.PathParam;
import org.jboss.resteasy.annotations.jaxrs.QueryP... | 509 |
1,279 | #!/usr/bin/env python3
import os
import sys
import time
import select
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), ".."))
from panda import Panda # noqa: E402
setcolor = ["\033[1;32;40m", "\033[1;31;40m"]
unsetcolor = "\033[00m"
if __name__ == "__main__":
while True:
try:
p... | 695 |
662 | <gh_stars>100-1000
///////////////////////////////////////////////////////////////////////////////
//
// AutobahnJava - http://crossbar.io/autobahn
//
// Copyright (c) Crossbar.io Technologies GmbH and contributors
//
// Licensed under the MIT License.
// http://www.opensource.org/licenses/mit-license.php
//
//... | 220 |
1,338 | /*
* Copyright 2010, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
*/
#ifndef STACK_AND_TILE_PRIVATE_H
#define STACK_AND_TILE_PRIVATE_H
namespace BPrivate {
const int32 kMagicSATIdentifier = 'SATI';
enum sat_target {
kStacking,
kTiling
};
enum sat_messages {
... | 212 |
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... | 603 |
448 | <filename>Public/Src/Sandbox/MacOs/Sandbox/Src/CLI/SandboxMonitor/ps.cpp
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "ps.hpp"
#include <array>
#include <sstream>
#include <regex>
set<string> ps_keywords... | 630 |
469 | {
"message": "Situs ini sedang menjalani pemeliharaan dan akan kembali segera. Terima kasih atas kesabaran Anda.",
"title": "Kami akan segera kembali"
} | 69 |
1,590 | {
"parameters": {
"resourceUri": "resourceUri",
"recommendationId": "recommendationId",
"api-version": "2020-01-01"
},
"responses": {
"200": {
"body": {
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId",
"name": "recommendationId",
"pro... | 1,221 |
9,136 | /*
GWEN
Copyright (c) 2010 <NAME>
See license in Gwen.h
*/
#pragma once
#ifndef GWEN_CONTROLS_SCROLLCONTROL_H
#define GWEN_CONTROLS_SCROLLCONTROL_H
#include "Gwen/Controls/Base.h"
#include "Gwen/Controls/Button.h"
#include "Gwen/Gwen.h"
#include "Gwen/Skin.h"
#include "Gwen/Controls/ScrollBar.h"
#include "Gwen/Con... | 562 |
1,217 | #include "drl_actuator.h"
namespace drl_ns
{
void drl_actuator::init(ros::NodeHandle& nh, int id, Eigen::Vector3d _init_pos, double _init_yaw)
{
agent_id = id;
model_name = "fake_ugv_" + std::to_string(agent_id);
node_name = "fake_ugv" + std::to_string(agent_id);
get_move_cmd = false;
ugv_state_upda... | 5,459 |
1,919 | <reponame>liujingxing/okhttp-RxHttp
package rxhttp.wrapper.param;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.MultipartBody.Part;
import okhttp3.RequestBody;
impor... | 2,273 |
679 | package com.shuyu.app;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.view.Grav... | 5,754 |
6,457 | // License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2020 Intel Corporation. All Rights Reserved.
//#cmake: static!
//#cmake:add-file log-common.h
#include "log-common.h"
TEST_CASE( "Mixed file & callback logging", "[log]" ) {
char filename[L_tmpnam];
tmpnam( filename );
TRACE( ... | 380 |
319 | /**
* Copyright (c) 2011, The University of Southampton and the individual contributors.
* 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 ... | 3,334 |
575 | <filename>components/paint_preview/browser/paint_preview_client.h
// 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 COMPONENTS_PAINT_PREVIEW_BROWSER_PAINT_PREVIEW_CLIENT_H_
#define COMPONENTS_PAIN... | 3,028 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.