max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
32,544 | package com.baeldung.methodorders;
import static org.junit.Assert.assertEquals;
import org.junit.AfterClass;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class NameAscendingOrderOfExecutionUnitTest {
private s... | 268 |
1,444 |
package mage.game.turn;
import mage.constants.PhaseStep;
import mage.constants.TurnPhase;
import mage.game.Game;
import mage.game.events.GameEvent.EventType;
/**
*
* @author <EMAIL>
*/
public class EndPhase extends Phase {
public EndPhase() {
this.type = TurnPhase.END;
this.event = EventType... | 725 |
345 |
import unittest
from programy.storage.stores.sql.dao.trigger import Trigger
class TriggerTests(unittest.TestCase):
def test_init(self):
trigger1 = Trigger(name='name', trigger_class='class')
self.assertIsNotNone(trigger1)
self.assertEqual("<Trigger(id='n/a', name='name', trigger_cla... | 227 |
1,006 | <reponame>eenurkka/incubator-nuttx
/****************************************************************************
* boards/arm/tiva/dk-tm4c129x/src/tm4c_userleds.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this wo... | 990 |
422 | <filename>AutotestWebD/apps/dubbo_task/views/dubbo_task.py
from django.shortcuts import HttpResponse,render
from apps.common.func.LanguageFunc import *
from apps.common.func.CommonFunc import *
from apps.common.config import commonWebConfig
from apps.config.services.http_confService import HttpConfService
# from apps.t... | 22,062 |
335 | {
"word": "Geode",
"definitions": [
"A small cavity in rock lined with crystals or other mineral matter.",
"A rock containing a geode."
],
"parts-of-speech": "Noun"
} | 81 |
12,278 | <filename>external/include/boost/fusion/container/list/detail/deref_impl.hpp
/*=============================================================================
Copyright (c) 2001-2011 <NAME>
Copyright (c) 2005 <NAME>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENS... | 771 |
8,805 | //
// KBNotifications.h
// Keybase
//
// Created by Gabriel on 6/10/15.
// Copyright (c) 2015 Keybase. All rights reserved.
//
#import <Foundation/Foundation.h>
extern NSString *const KBTrackingListDidChangeNotification;
extern NSString *const KBUserDidChangeNotification;
extern NSString *const KBStatusDidChangeN... | 105 |
454 | <reponame>Oaklight/parallelformers<gh_stars>100-1000
# Copyright 2021 TUNiB 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 requ... | 1,202 |
3,227 |
namespace CGAL {
/*!
\ingroup nt_cgal
An object of the class `Lazy_exact_nt<NT>` is able to represent any
real embeddable number which `NT` is able to represent.
The idea is that `Lazy_exact_nt<NT>` works exactly like `NT`, except
that it is expected to be faster because it tries to only compute an
approximation of ... | 1,066 |
618 | /* Copyright 2016 <NAME>, NVIDIA Corporation
*
* 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... | 437 |
1,557 | #include "bootstrap.h"
#include <stdint.h>
void early_init() {}
extern uint64_t heap_head;
extern void* initial_stack_start();
void kernel_environ_init() {
heap_head = (uint64_t) initial_stack_start();
}
extern int main(uint64_t argc, const char** argv);
int start_init_process (uint64_t argc, const char** argv) {
... | 134 |
2,728 | <filename>sdk/recoveryservices/azure-mgmt-recoveryservicessiterecovery/azure/mgmt/recoveryservicessiterecovery/operations/_replication_fabrics_operations.py<gh_stars>1000+
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserv... | 20,719 |
315 | <reponame>FredrikBlomgren/aff3ct
#include "Tools/Exception/exception.hpp"
#include "Tools/Documentation/documentation.h"
#include "Module/Encoder/Polar/Encoder_polar.hpp"
#include "Module/Encoder/Polar/Encoder_polar_sys.hpp"
#include "Factory/Module/Encoder/Polar/Encoder_polar.hpp"
using namespace aff3ct;
using namesp... | 942 |
2,216 | <filename>mmdet3d/models/decode_heads/__init__.py
# Copyright (c) OpenMMLab. All rights reserved.
from .paconv_head import PAConvHead
from .pointnet2_head import PointNet2Head
__all__ = ['PointNet2Head', 'PAConvHead']
| 80 |
593 | /**
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2022 Ruhr University Bochum, Paderborn University, Hackmanit GmbH
*
* Licensed under Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
package de.rub.nds.tlsattacker.core.constants;
public enum... | 401 |
4,986 | package im.zhaojun.zfile.context;
import com.alibaba.fastjson.JSON;
import im.zhaojun.zfile.exception.InvalidDriveException;
import im.zhaojun.zfile.model.entity.DriveConfig;
import im.zhaojun.zfile.model.enums.StorageTypeEnum;
import im.zhaojun.zfile.service.DriveConfigService;
import im.zhaojun.zfile.service.base.Ab... | 2,332 |
1,444 | <gh_stars>1000+
package mage.cards.t;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.game.Game;
import mage.game.turn.TurnMod;
impo... | 532 |
1,059 | import os
import sys
from moviepy.editor import VideoFileClip
def convert_video_to_audio_moviepy(video_file, output_ext="mp3"):
"""Converts video to audio using MoviePy library
that uses `ffmpeg` under the hood"""
filename, ext = os.path.splitext(video_file)
clip = VideoFileClip(video_file)
clip.a... | 173 |
327 | /* <NAME> `gentilkiwi`
https://blog.gentilkiwi.com
<EMAIL>
Licence : https://creativecommons.org/licenses/by/4.0/
*/
#pragma once
#include "globals.h"
typedef NTSTATUS (* PKKLL_M_MODULE_CALLBACK) (SIZE_T szBufferIn, PVOID bufferIn, PKIWI_BUFFER outBuffer, PAUX_MODULE_EXTENDED_INFO pModule, PVOID pvArg, BOOLEAN * mu... | 582 |
452 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
#
# Tencent is pleased to support the open source community by making QTA available.
# Copyright (C) 2016THL 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 th... | 1,902 |
980 | <filename>src/main/proj/src/org/jcodec/containers/mkv/muxer/MKVMuxerTrack.java<gh_stars>100-1000
package org.jcodec.containers.mkv.muxer;
import static org.jcodec.containers.mkv.MKVType.createByType;
import static org.jcodec.containers.mkv.boxes.MkvBlock.anyFrame;
import java.io.IOException;
import org.jcodec.common... | 1,595 |
471 | package io.tweag.sparkle.function;
import org.apache.spark.api.java.function.*;
import io.tweag.sparkle.Sparkle;
public class HaskellVoidFunction<T> implements VoidFunction<T> {
private final byte[] clos;
public HaskellVoidFunction(final byte[] clos) {
this.clos = clos;
}
public void call(T v1) thr... | 141 |
2,160 | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import
import functools
import os
import re
import shutil
import subprocess
from argparse import ArgumentParser, _SubParsersAction
from contextlib import c... | 8,094 |
488 | /* Liao, 5/13/2009
C allows implicit declaration of functions
*/
int foo()
{
/* MSVC does not allow implicit functions: GNU specific */
/* bar(); */
return 0;
}
| 51 |
831 | <reponame>phpc0de/idea-android
/*
* 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... | 349 |
5,169 | <filename>Specs/KMMSmileyStrength/1.0/KMMSmileyStrength.podspec.json
{
"name": "KMMSmileyStrength",
"version": "1.0",
"summary": "A password strength display using smiley faces.",
"description": "A password strength display that uses zxcvbn and custom fonts to display smiley faces that represent the strength of... | 362 |
619 | <gh_stars>100-1000
/*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2017 Intel Corporation.
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
#include <stdio... | 347 |
1,338 | /*
* Copyright 1999, Be Incorporated. All Rights Reserved.
* This file may be used under the terms of the Be Sample Code License.
*
*/
#ifndef _CLOCK_WINDOW_H
#define _CLOCK_WINDOW_H
#include <Window.h>
class TOnscreenView;
class TClockWindow : public BWindow {
public:
TClockWindow(BRect rect, const ch... | 185 |
502 | <reponame>vscoder-mas/wlplayer
//
// Created by ywl on 2017-12-17.
//
#ifndef WLPLAYER_WLSTATAUS_H
#define WLPLAYER_WLSTATAUS_H
#endif //WLPLAYER_WLSTATAUS_H
#define WL_THREAD_MAIN 1
#define WL_THREAD_CHILD 2
#define WL_FFMPEG_CAN_NOT_OPEN_URL 3
#define WL_FFMPEG_CAN_NOT_FIND_STREAMS 4
#define WL_FFMPEG_CAN_NOT_OPE... | 166 |
403 | package com.camunda.demo.webinar.cmmn.listener;
import java.util.List;
import org.camunda.bpm.engine.delegate.CaseExecutionListener;
import org.camunda.bpm.engine.delegate.DelegateCaseExecution;
import org.camunda.bpm.engine.impl.cmmn.entity.runtime.CaseExecutionEntity;
import org.camunda.bpm.engine.impl.cmmn.executi... | 390 |
706 | <reponame>wujuguang/shellpy
import sys
from shellpython.importer import PreprocessorImporter
_importer = PreprocessorImporter()
def init():
"""Initialize shellpython by installing the import hook
"""
if _importer not in sys.meta_path:
sys.meta_path.insert(0, _importer)
def uninit():
"""Unin... | 142 |
8,194 | package com.hippo.ehviewer.ui.fragment;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceFragment;
import android.text.TextUtils;
import com.hippo.ehviewer.Analytics;
import com.hippo.ehviewer.R;
import com.hippo.ehviewer.Settings;
/**
* Created by Mo10 on 2018/2/1... | 628 |
1,060 | /* code for the "obj4" pd class. This adds a creation argument, of
type "float". */
#include "m_pd.h"
typedef struct obj4
{
t_object x_ob;
t_outlet *x_outlet;
float x_value;
} t_obj4;
void obj4_float(t_obj4 *x, t_floatarg f)
{
outlet_float(x->x_outlet, x->x_value + f);
}
void obj4_ft1(t_obj4 *x, t_floa... | 562 |
601 | {
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json",
"version": "2.0",
"bundles": {
"search-documents-web-part": {
"components": [
{
"entrypoint": "./lib/webparts/searchDocuments/SearchDocumentsWebPart.js",
"manifest": "./src/webparts... | 383 |
1,056 | <reponame>timfel/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.... | 3,813 |
1,545 | import doctest
import math
import pickle
import re
import warnings
from distutils.version import LooseVersion
from numbers import Number
import pytest
from pint import Quantity
from pint.compat import ndarray, np
from ..compat import (
HAS_BABEL,
HAS_NUMPY,
HAS_NUMPY_ARRAY_FUNCTION,
HAS_UNCERTAINTIES... | 3,100 |
335 | {
"word": "Hub",
"definitions": [
"The central part of a wheel, rotating on or with the axle, and from which the spokes radiate.",
"The effective centre of an activity, region, or network.",
"A central airport or other transport facility from which many services operate."
],
"par... | 116 |
2,151 | // Copyright 2018 The Feed Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... | 1,337 |
5,169 | <filename>Specs/7/7/9/ProximiioMap/0.2.6/ProximiioMap.podspec.json
{
"name": "ProximiioMap",
"version": "0.2.6",
"summary": "Proximi.io Integrated Map",
"description": "Proximi.io Integrated Map Solution for IOS Platform",
"homepage": "https://github.com/proximiio/proximiio-map-pod",
"license": "Commercial"... | 314 |
1,781 | <gh_stars>1000+
/*
* HaoRan ImageFilter Classes v0.3
* Copyright (C) 2012 <NAME>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation; either version 2.1 of the License, or (at your
*... | 417 |
528 | #ifndef CPARAMS_H
#define CPARAMS_H
#ifdef __cplusplus
extern "C"
{
#endif
#include "lib_export.h"
#include <stdbool.h>
#include <stddef.h>
typedef struct _Device Device;
typedef enum _FirmwareMode
{
FirmwareModeApplication,
FirmwareModeBootloader
} FirmwareMode;
typedef enum _D... | 1,190 |
1,338 | <filename>src/apps/mediaplayer/support/Command.cpp
/*
* Copyright 2006, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
*/
#include "Command.h"
#include <stdio.h>
#include <OS.h>
// constructor
Command::Command()
: fTimeStamp(system_time())
{
}
// destructor
Command... | 425 |
14,668 | <filename>components/network_session_configurator/common/network_switches.h
// 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 COMPONENTS_NETWORK_SESSION_CONFIGURATOR_COMMON_NETWORK_SWITCHES_H_
#de... | 377 |
589 | /**
* 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... | 2,899 |
537 | <filename>test/json_test/flatcc_golden.c
/*
* Flatcc generated monster test binary based on parsing Google flatc's
* golden json file.
*/
static const unsigned char flatcc_golden_le[] = {
0x0c, 0x00, 0x00, 0x00, 0x4d, 0x4f, 0x4e, 0x53, 0x00, 0x00, 0x00, 0x00, 0x20, 0xff, 0xff, 0xff,
0x00, 0x00, 0x80, 0x3f... | 2,675 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Cramaille","circ":"5ème circonscription","dpt":"Aisne","inscrits":109,"abs":58,"votants":51,"blancs":5,"nuls":0,"exp":46,"res":[{"nuance":"FN","nom":"<NAME>","voix":27},{"nuance":"REM","nom":"M. <NAME>","voix":19}]} | 111 |
7,737 |
extern zend_class_entry *phalcon_forms_element_numeric_ce;
ZEPHIR_INIT_CLASS(Phalcon_Forms_Element_Numeric);
PHP_METHOD(Phalcon_Forms_Element_Numeric, render);
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_forms_element_numeric_render, 0, 0, IS_STRING, 0)
#if PHP_VERSION_ID >= 80000
ZEND_ARG_TYPE_INFO_WI... | 281 |
2,338 | <reponame>medismailben/llvm-project<filename>compiler-rt/test/fuzzer/UseAfterDtor.cpp<gh_stars>1000+
#include <cstdint>
#include <cstdio>
struct Simple {
int x_;
Simple() {
x_ = 5;
}
~Simple() {
x_ += 1;
}
};
Simple *volatile SimpleSink;
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, si... | 274 |
66,985 | <filename>spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/neo4j/Neo4jHealthContributorConfigurations.java
/*
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use... | 795 |
348 | <filename>docs/data/leg-t2/057/05701751.json
{"nom":"Woippy","circ":"1ère circonscription","dpt":"Moselle","inscrits":8303,"abs":5512,"votants":2791,"blancs":185,"nuls":57,"exp":2549,"res":[{"nuance":"REM","nom":"<NAME>","voix":1485},{"nuance":"FN","nom":"<NAME>","voix":1064}]} | 114 |
839 | <reponame>kimjand/cxf<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 Licens... | 1,114 |
348 | {"nom":"Sablonnières","circ":"4ème circonscription","dpt":"Seine-et-Marne","inscrits":517,"abs":335,"votants":182,"blancs":12,"nuls":5,"exp":165,"res":[{"nuance":"LR","nom":"<NAME>","voix":95},{"nuance":"REM","nom":"M. <NAME>","voix":70}]} | 97 |
3,274 | package com.ql.util.express.parse;
public class Word {
public String word;
public int line;
public int col;
public int index;
public Word(String aWord,int aLine,int aCol){
this.word = aWord;
this.line = aLine;
this.col = aCol;
}
public String toString(){
return this.word;// + "[" + ... | 140 |
396 | <filename>samples/src/main/java/com/kunminx/samples/ui/operators/TakeUntilExampleFragment.java
package com.kunminx.samples.ui.operators;
import android.util.Log;
import com.kunminx.samples.utils.AppConstant;
import com.kunminx.samples.utils.ObserverAdapter;
import java.util.concurrent.TimeUnit;
import io.reactivex.... | 672 |
347 | /***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | 19,932 |
10,320 | <filename>aws-python-rest-api-with-pymongo/item/get.py<gh_stars>1000+
import json
import os
import pymongo
# Fetch mongo env vars
usr = os.environ['MONGO_DB_USER']
pwd = <PASSWORD>['<PASSWORD>']
mongo_db_name = os.environ['MONGO_DB_NAME']
mongo_collection_name = os.environ['MONGO_COLLECTION_NAME']
url = os.environ['MO... | 351 |
1,041 | package io.ebeaninternal.server.type;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import io.ebean.core.type.DataBinder;
import io.ebean.core.type.DataReader;
import io.ebean.core.type.DocPropertyType;
import io.ebeaninternal.server.core.BasicTypeConverter;
import jav... | 855 |
460 | package org.wildfly.swarm.howto.hollowjar;
import javax.naming.NamingException;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@Path("/")
public class MyResource {
@GET
public String get() throws NamingException {
return "Hello, Uberjar!";
}
}
| 110 |
10,340 | {
"comment": "as observed",
"time": "2017-12-21T10:55:48.6238832Z",
"resourceId": "/SUBSCRIPTIONS/F628BA4C-F07B-4AEB-86CB-C89784BBD9B3",
"correlationId": "54ade416-3c64-42ba-994f-1f6309efc989",
"operationName": "Microsoft.Security/tasks/write",
"level": "Information",
"resultType": "Succeeded",
"categor... | 201 |
5,169 | {
"name": "YCTutorialBox",
"version": "1.0.5",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"homepage": "https://github.com/yuppiu/YCTutorialBox",
"authors": {
"<NAME>": "<EMAIL>"
},
"summary": "A UIView subclass for Tutorial/Welcome/New Feature/Explanation flow. You can focus one elemen... | 299 |
310 | <gh_stars>100-1000
import torch
import torch.nn as nn
import torch.optim as optim
import torch.autograd as autograd
import torch.nn.functional as F
EPOCHS = 100
test_sentence = """n-gram models are widely used in statistical natural
language processing . In speech recognition , phonemes and sequences of
phonemes are ... | 1,304 |
589 | <reponame>ClaudioWaldvogel/inspectIT
package rocks.inspectit.agent.java.tracing.core.adapter.http;
import java.util.Collections;
import java.util.Map;
import io.opentracing.tag.Tags;
import rocks.inspectit.agent.java.tracing.core.adapter.ResponseAdapter;
import rocks.inspectit.agent.java.tracing.core.adapter.http.dat... | 373 |
777 | #!/usr/bin/env python
# Copyright (c) 2012 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.
"""Without any args, this simply loads the IDs out of a bunch of the Chrome GRD
files, and then checks the subset of the code that ... | 2,711 |
3,586 | <reponame>pramodbiligiri/datahub
from datahub.ingestion.source.file import GenericFileSource
def check_mce_file(filepath: str) -> str:
mce_source = GenericFileSource.create({"filename": filepath}, None)
for _ in mce_source.get_workunits():
pass
return f"{mce_source.get_report().workunits_produced}... | 130 |
775 | """ This module contains the implementations of performance providers for multi-score anomaly metrics. """
# Copyright (C) 2021-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
from abc import ABC
from typing import List, Optional
from ote_sdk.entities.metrics import (
MetricsGroup,
MultiScoreP... | 1,508 |
550 | <reponame>changusmc/dropbox-sdk-java
package com.dropbox.core.v1;
import com.dropbox.core.json.JsonArrayReader;
import com.dropbox.core.json.JsonReadException;
import com.dropbox.core.json.JsonReader;
import com.dropbox.core.util.Collector;
import com.dropbox.core.util.DumpWriter;
import com.dropbox.core.util.Dumpable... | 4,946 |
529 | <gh_stars>100-1000
#include <openssl/opensslconf.h>
#ifdef OPENSSL_NO_JPAKE
#ifdef OPENSSL_SYS_WINDOWS
#include <stdio.h>
#endif
int main(int argc, char *argv[])
{
TINYCLR_SSL_PRINTF("No J-PAKE support\n");
return(0);
}
#else
#include <openssl/jpake.h>
#include <openssl/err.h>
static vo... | 2,816 |
372 | /* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
* -*- mode: c, c-basic-offset: 4 -*- */
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... | 2,826 |
2,659 | /*
* Copyright 2021 4Paradigm
*
* 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 w... | 1,266 |
5,169 | {
"name": "KSYMediaPlayer_iOS",
"version": "2.0.3",
"license": {
"type": "Proprietary",
"text": " Copyright 2015 kingsoft Ltd. All rights reserved.\n"
},
"homepage": "http://v.ksyun.com/doc.html",
"authors": {
"FanpingZeng": "<EMAIL>"
},
"summary": "KSYMediaPlayer_iOS sdk manages the pl... | 364 |
550 | /*
* Copyright 2016 Google 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 a... | 2,274 |
963 | package com.vladmihalcea.book.hpjp.hibernate.logging.inspector;
import org.hibernate.resource.jdbc.spi.StatementInspector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author <NAME>
*/
public class SqlCommentStatementInspector imple... | 303 |
369 | <reponame>bitigchi/MuditaOS
// Copyright (c) 2017-2021, Mudit<NAME>. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "SettingsSerializer.hpp"
#include "btstack_util.h"
#include <log/log.hpp>
namespace strings
{
constexpr inline auto addr = "addr";
constexpr... | 697 |
5,791 | /* Copyright 2016 Google 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 law or agreed to in ... | 671 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
static void
bomb(void)
{
char *p;
p = nullptr;
*p = 4;
}
class FastS_Bomber : public FastOS_Runnable
{
void Run(FastOS_ThreadInterface *thread, void *arg)
{
(void) thread;
(v... | 447 |
1,001 | <filename>aliyun-python-sdk-imageprocess/aliyunsdkimageprocess/request/v20200320/RunCTRegistrationRequest.py
# 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... | 951 |
11,356 | // Copyright <NAME> 2004. Distributed under the Boost
// Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>
#include <boost/python/extract.hpp>
#include <boost/python/to_python_conv... | 755 |
338 | package com.tvd12.ezyfoxserver.testing.api;
import static org.mockito.Mockito.*;
import org.testng.annotations.Test;
import com.tvd12.ezyfox.codec.EzyObjectToByteEncoder;
import com.tvd12.ezyfox.codec.EzyObjectToStringEncoder;
import com.tvd12.ezyfox.collect.Lists;
import com.tvd12.ezyfox.constant.EzyConstant;
impor... | 746 |
575 | // 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.
#include "ash/constants/ash_features.h"
#include "ash/public/cpp/ash_pref_names.h"
#include "ash/public/cpp/shelf_prefs.h"
#include "chrome/browser/sync/t... | 829 |
2,757 | /** @file
Provides the Simple Network functions.
Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of th... | 23,166 |
771 | <reponame>Thomas4465/X-tra-Telegram<filename>userbot/plugins/autopic.py
# Copyright 2019 - 2020 DarkPrinc3
# 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.or... | 967 |
488 | <filename>projects/simulator/pthread_tests/pthread_spin_lock.1-1.c
/*
* Copyright (c) 2002, Intel Corporation. All rights reserved.
* This file is licensed under the GPL license. For the full content
* of this license, see the COPYING file at the top level of this
* source tree.
* Test pthread_spin_lock(pthr... | 1,653 |
60,910 | // We define the operation of splitting
// a binary number n into two numbers
// a(n), b(n) as follows. Let 0 ≤ i1 < i2 <
// . . . < ik be the indices of the bits (with
// the least significant bit having index 0) in
// n that are 1. Then the indices of the bits
// of a(n) that are 1 are i1, i3, i5, . . . and the
// in... | 1,005 |
12,278 | // optional_last_value function object (documented as part of Boost.Signals2)
// Copyright <NAME> 2007-2008.
// Copyright <NAME> 2001-2003.
// Distributed under the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boos... | 782 |
707 | <gh_stars>100-1000
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "wpigui.h"
int main() {
wpi::gui::CreateContext();
wpi::gui::Initialize("Hello World", ... | 114 |
2,151 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "device/fido/get_assertion_request_handler.h"
#include <utility>
#include "base/bind.h"
#include "device/fido/authenticator_get_assertion_respo... | 548 |
14,564 | <gh_stars>1000+
package com.alibaba.datax.core;
import com.alibaba.datax.common.element.ColumnCast;
import com.alibaba.datax.common.exception.DataXException;
import com.alibaba.datax.common.spi.ErrorCode;
import com.alibaba.datax.common.statistics.PerfTrace;
import com.alibaba.datax.common.statistics.VMInfo;
im... | 4,035 |
726 | """Test Command."""
import pytest
from pytradfri.command import Command
def test_property_access():
"""Test property access in Command."""
def ec():
pass
command = Command(
method="method",
path="path",
data="data",
parse_json=True,
observe=False,
... | 551 |
841 | <filename>jbpm/jbpm-bpmn2/src/main/java/org/jbpm/bpmn2/core/SequenceFlow.java
/*
* 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
*
... | 851 |
575 | <reponame>Ron423c/chromium
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_COMPONENTS_PHONEHUB_UTIL_HISTOGRAM_UTIL_H_
#define CHROMEOS_COMPONENTS_PHONEHUB_UTIL_HISTOGRAM_UTIL_H_
#inclu... | 563 |
306 | /*
* Copyright (c) 2016 IBM Corporation and others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 1,594 |
30,785 | package jadx.core.dex.visitors.typeinference;
import jadx.core.dex.instructions.BaseInvokeNode;
import jadx.core.dex.instructions.args.ArgType;
import jadx.core.dex.instructions.args.RegisterArg;
import jadx.core.dex.nodes.RootNode;
/**
* Special dynamic bound for invoke with generics.
* Arguments bound type calcul... | 694 |
799 | {
"id": "Policy Optimizer",
"version": -1,
"vcShouldIgnore": false,
"locked": false,
"name": "Policy Optimizer",
"prevName": "Policy Optimizer",
"color": "#7D28A7",
"playbookId": "Policy Optimizer - Generic",
"hours": 0,
"days": 0,
"weeks": 0,
"hoursR": 0,
"daysR": 0,
"weeksR": 0,
"system": false,
"read... | 233 |
3,348 | <gh_stars>1000+
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
*... | 926 |
8,028 | <reponame>dctelus/transformers
# coding=utf-8
# Copyright 2022 The REALM authors and The HuggingFace Inc. team.
#
# 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/l... | 5,978 |
866 | <reponame>Miouge1/cli<filename>tests/functional/test_issue-126/plan.out.json
{"format_version":"0.1","terraform_version":"0.12.3","planned_values":{"root_module":{"resources":[{"address":"aws_elb.bar","mode":"managed","type":"aws_elb","name":"bar","provider_name":"aws","schema_version":0,"values":{"access_logs":[{"buck... | 1,179 |
699 | <reponame>Oussama-Goumghar/e-banking-registery
package tech.jhipster.registry.service;
import static com.sun.nio.file.SensitivityWatchEventModifier.HIGH;
import static java.nio.file.FileVisitOption.FOLLOW_LINKS;
import static java.nio.file.FileVisitResult.CONTINUE;
import static java.nio.file.StandardWatchEventKinds.E... | 3,220 |
6,969 | <gh_stars>1000+
public class Solution {
public int findheight(TreeNode root){
if(root==null){return 0;}
return 1+Math.max(findheight(root.left),findheight(root.right));
}
public int maxDepth(TreeNode A) {
int t=findheight(A);
return t;
}
} | 124 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 1,918 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.