max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
787 | <filename>leetcode/270. Closest Binary Search Tree Value/s2.cpp
// OJ: https://leetcode.com/problems/closest-binary-search-tree-value/
// Author: github.com/lzl124631x
// Time: O(N)
// Space: O(logN)
// Ref: https://leetcode.com/problems/closest-binary-search-tree-value/discuss/70331/Clean-and-concise-java-solution
cla... | 266 |
1,866 | import functools
import threading
class PromiseError(Exception):
"""A failed Promise is to be resolved with this PromiseError.
Normal errors and exceptions can't be catched by the applicaiton due to
multithreading. Therefore a function should return PromiseError to indicate
a failure to be handled by... | 2,155 |
318 | {
"name": "presentator-client",
"version": "2.7.1",
"description": "Presentator v2 API JavaScript Client",
"main": "dist/client.min.js",
"keywords": [
"presentator",
"api",
"api-client",
"presentatorapi",
"presentator-api",
"presentatorclient",
"presentator-client"
],
"author":... | 512 |
575 | <filename>src/base/trace_event/category_registry.cc
// Copyright 2016 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 "base/trace_event/category_registry.h"
#include <string.h>
#include <ostream>
#include <typ... | 1,709 |
774 | <reponame>moonantonio/lunar-unity-console<filename>Native/Android/LunarConsole/lunarConsole/src/main/java/spacemadness/com/lunarconsole/settings/PluginSettings.java<gh_stars>100-1000
//
// PluginSettings.java
//
// Lunar Unity Mobile Console
// https://github.com/SpaceMadness/lunar-unity-console
//
// Copyright 201... | 1,344 |
1,176 | <filename>src/include/execution/plans/index_scan_plan.h<gh_stars>1000+
//===----------------------------------------------------------------------===//
//
// BusTub
//
// index_scan_plan.h
//
// Identification: src/include/execution/plans/index_scan_plan.h
//
// Copyright (c) 2015-19, Carnegie M... | 528 |
1,792 | package org.hongxi.summer.codec;
import org.apache.commons.lang3.StringUtils;
import org.hongxi.summer.common.extension.ExtensionLoader;
import org.hongxi.summer.exception.SummerErrorMsgConstants;
import org.hongxi.summer.exception.SummerFrameworkException;
import org.hongxi.summer.exception.SummerServiceException;
im... | 1,428 |
709 | <gh_stars>100-1000
#include "msdf-edge-artifact-patcher.h"
#include <cstring>
#include <vector>
#include <utility>
#include "arithmetics.hpp"
#include "equation-solver.h"
#include "bitmap-interpolation.hpp"
#include "edge-selectors.h"
#include "contour-combiners.h"
#include "ShapeDistanceFinder.h"
namespace msdfgen ... | 3,468 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "feature_name_extractor.h"
namespace vespalib::eval {
namespace {
struct LegalChar {
bool legal[256];
LegalChar(std::initializer_list<uint8_t> extra_chars) {
for (int c = 0; c < 256; ++c... | 1,156 |
611 | ///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2017, Carnegie Mellon University and University of Cambridge,
// all rights reserved.
//
// ACADEMIC OR NON-PROFIT ORGANIZATION NONCOMMERCIAL RESEARCH USE ONLY
//
// BY USING OR DOWNLOADING THE SOFTWARE, YOU ARE AGREEING TO... | 3,803 |
6,009 | <reponame>zhouhp007/AndroidPicker<gh_stars>1000+
/*
* Copyright (c) 2016-present 贵州纳雍穿青人李裕江<<EMAIL>>
*
* The software is licensed under the Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.or... | 1,043 |
26,901 | <reponame>lff0305/apollo<filename>apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/SystemInfoController.java
/*
* Copyright 2021 Apollo 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 ob... | 1,807 |
1,350 | <filename>sdk/cognitiveservices/ms-azure-cs-computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ModelDescription.java
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license informa... | 624 |
1,144 | <filename>core/libmemunreachable/include/memunreachable/memunreachable.h<gh_stars>1000+
/*
* Copyright (C) 2016 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 Licen... | 749 |
3,102 | <gh_stars>1000+
int *x0;
float **x1;
#include "var1.h"
int xarray0[17];
int xarray1[];
int xarray2[18];
int xarray3[18];
| 60 |
323 | <reponame>markyong97/retinafacetest
from typing import Any, Dict, List
import cv2
import numpy as np
import torch
def vis_annotations(image: np.ndarray, annotations: List[Dict[str, Any]]) -> np.ndarray:
vis_image = image.copy()
for annotation in annotations:
landmarks = annotation["landmarks"]
... | 455 |
8,027 | <gh_stars>1000+
/*
* Copyright (c) Facebook, Inc. and 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 re... | 1,052 |
3,252 | <filename>mmf/utils/download.py
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# Original taken from ParlAI https://git.io/JvjfS, this file has been
# adapted for MMF use cases.
"""
Utilities for downloading and building data.
These can be replaced if your particular file system does not s... | 7,270 |
468 | <filename>algorithms/greedy/minimumProductSubset.cpp
//Find minimum product subset in an array using Greedy method
#include <bits/stdc++.h>
using namespace std;
int calculate(int a[], int n)
{
if (n == 1)
return a[0];
int max_neg = INT_MIN;
int min_pos = INT_MAX;
int count_neg = 0, count_zero = 0;
int prod = ... | 453 |
649 | <filename>demos/imagetagger/imagetagger/views.py<gh_stars>100-1000
import asyncio
from typing import Dict
from concurrent.futures import ProcessPoolExecutor
import aiohttp_jinja2
from aiohttp import web
from .worker import predict
from .utils import Config
class SiteHandler:
def __init__(self, conf: Config, exe... | 395 |
1,085 | <filename>dac/backend/src/main/java/com/dremio/dac/explore/ExtractListRecommender.java<gh_stars>1000+
/*
* Copyright (C) 2017-2019 Dremio 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... | 2,930 |
828 | /*
* Copyright 2008-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 2,262 |
5,169 | {
"name": "ForismaticKit",
"version": "1.0.0",
"summary": "📚 Access numerous of quotations available in Forismatic service with this small client. 🔆",
"description": "📚 Love quotes? Write quotations app? Than this framework is for you! Access numerous of quotations available in Forismatic service with this s... | 282 |
14,668 | // 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 "third_party/blink/renderer/core/layout/ng/inline/ng_text_offset.h"
#include <ostream>
namespace blink {
std::ostream& operator<<(std::ostream... | 144 |
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.
package org.chromium.chrome.browser;
import android.app.Activity;
import android.view.ActionMode;
import android.view.Menu;
import android.view.MenuItem;... | 1,634 |
623 | <gh_stars>100-1000
// Copyright (C) 2021 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 requ... | 4,154 |
348 | {"nom":"Villécloye","circ":"2ème circonscription","dpt":"Meuse","inscrits":133,"abs":70,"votants":63,"blancs":10,"nuls":1,"exp":52,"res":[{"nuance":"REM","nom":"<NAME>","voix":34},{"nuance":"FN","nom":"<NAME>","voix":18}]} | 90 |
3,986 | <reponame>liuxiaoqiang1018/XUI
/*
* Copyright (C) 2020 xuexiangjys(<EMAIL>)
*
* 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
*
* U... | 1,602 |
14,668 | <reponame>zealoussnow/chromium
// 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.
#include "chrome/browser/ui/views/frame/immersive_mode_tester.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/b... | 839 |
882 | package water.api;
/**
* Basic page introducing tutorial for Random Forest on Iris
*
* @author michal
*/
public class TutorialRFIris extends TutorialWorkflow {
private final transient TutorWorkflow _wf;
private final static String[][] TUTORIAL_STEPS = new String[][]{
/* Title Short Summa... | 500 |
3,138 | # Lint as: python3
# Copyright 2020 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 2,623 |
369 | <filename>FreeRTOSv10.4.1/FreeRTOS/Demo/CORTEX_AT91SAM3U256_IAR/AT91Lib/peripherals/systick/systick.c
/* ----------------------------------------------------------------------------
* ATMEL Microcontroller Software Support
* ----------------------------------------------------------------------------
* Copy... | 908 |
777 | /*
* Artificial Intelligence for Humans
* Volume 3: Deep Learning and Neural Networks
* Java Version
* http://www.aifh.org
* http://www.jeffheaton.com
*
* Code repository:
* https://github.com/jeffheaton/aifh
*
* Copyright 2014-2015 by <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License"... | 2,352 |
925 | <gh_stars>100-1000
# Copyright 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.
from telemetry.internal.browser import web_contents
from telemetry.internal.image_processing import video
DEFAULT_TAB_TIMEOUT = 60
clas... | 3,067 |
1,159 | #ifndef STYLESHEET_H
#define STYLESHEET_H
#include "base/style/sheet.h"
#include "chart/options/options.h"
#include "style.h"
namespace Vizzu
{
namespace Styles
{
class Sheet : public Style::Sheet<Chart>
{
public:
typedef Style::Sheet<Chart> Base;
using Base::Sheet;
Chart getFullParams(
const Diag::DiagramOpti... | 293 |
684 | <filename>console/extract_targets.py
"""Extract FQDNs, IPv4, and IPv6 networks/addresses from a string or file."""
# Standard Python libraries.
import argparse
import ipaddress
import json
import os
import sys
# Third party Python libraries.
import fqdn
import requests
import tld
# Custom Python libraries.
__versio... | 10,917 |
443 | #SPDX-License-Identifier: MIT
import pytest
def test_annual_commit_count_ranked_by_repo_in_repo_group(metrics):
assert metrics.annual_commit_count_ranked_by_repo_in_repo_group(10).iloc[0].net > 0
assert metrics.annual_commit_count_ranked_by_repo_in_repo_group(10, 25430).iloc[0].net > 0
def test_annual_commit... | 504 |
3,102 | <gh_stars>1000+
// RUN: %clang_cc1 %s -fsyntax-only -verify
const char* test1 = 1 ? "i" : 1 == 1 ? "v" : "r";
void _efree(void *ptr);
void free(void *ptr);
int _php_stream_free1() {
return (1 ? free(0) : _efree(0)); // expected-error {{returning 'void' from a function with incompatible result type 'int'}}
}
int _... | 298 |
445 | <reponame>minxuanjun/basalt-mirror
/**
BSD 3-Clause License
This file is part of the Basalt project.
https://gitlab.com/VladyslavUsenko/basalt.git
Copyright (c) 2019, <NAME> and <NAME>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that t... | 1,077 |
1,088 | <filename>Objective-C/Tests/Util/CBLMockConnection.h
//
// CBLMockConnection.h
// CouchbaseLite
//
// Copyright (c) 2018 Couchbase, Inc. All rights reserved.
//
// Licensed under the Couchbase License Agreement (the "License");
// you may not use this file except in compliance with the License.
// You may obtain ... | 647 |
738 | /*
* 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 ... | 6,056 |
4,933 | <reponame>rbrtmrtn/PostgresApp
/*
* PostgresApplication.h
*/
#import <AppKit/AppKit.h>
#import <ScriptingBridge/ScriptingBridge.h>
/*
* Standard Suite
*/
@interface SBApplication(PostgresApplication)
- (BOOL) openPreferences; // Opens the Preferences.
- (BOOL) checkForUpdates; // Checks for updates.
@end
| 115 |
367 | # coding: utf-8
from __future__ import unicode_literals, absolute_import
def is_json_response(network_response):
"""Return whether or not the network response content is json.
:param network_response:
The response from the Box API.
:type network_response:
:class:`NetworkResponse`
"""... | 156 |
310 | <filename>AI-and-Analytics/Features-and-Functionality/IntelTensorFlow_InferenceOptimization/scripts/tf_pb_utils.py
#! /usr/bin/env python
import os, sys
import argparse
class TF_PB_Utils:
def __init__(self):
self.graph_def = None
self.graph = None
self.fnames = ['op_type', 'op_name', 'op1... | 3,818 |
335 | {
"word": "Wearisome",
"definitions": [
"Causing one to feel tired or bored."
],
"parts-of-speech": "Adjective"
} | 64 |
8,805 | <filename>shared/ios/Pods/Headers/Private/libwebp/mips_macro.h
../../../libwebp/src/dsp/mips_macro.h | 46 |
809 | <filename>src/compat/libc/include/netinet/ip.h
/*
* Stub for netinet/ip.h
*
* @author <NAME>
* @date 3 Oct 2014
*/
#ifndef _NETINET_IP_H_
#define _NETINET_IP_H_
#define IPTOS_LOWDELAY 0x10
#define IPTOS_THROUGHPUT 0x20
#define IPTOS_RELIABILITY 0x40
#define IP_TOS 0x01
/* Socket option.
* The ob... | 235 |
668 | <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
... | 1,910 |
8,323 | """Implementation of :class:`Domain` class. """
from typing import Any, Optional, Type
from sympy.core import Basic, sympify
from sympy.core.compatibility import is_sequence, ordered
from sympy.core.decorators import deprecated
from sympy.external.gmpy import HAS_GMPY
from sympy.polys.domains.domainelement import Do... | 16,605 |
3,246 | package org.datatransferproject.transfer.koofr.common;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.api.client.auth.oauth2.BearerToken;
import com.google.api.client.... | 10,349 |
841 | # Copyright (c) 2012 iQIYI Inc.
# Copyright (c) 2013 Tencent Inc.
# All rights reserved.
#
# Author: <NAME> <<EMAIL>>
# <NAME> <<EMAIL>>
# Date: October 13, 2012
"""
A helper class to get the files generated from thrift IDL files.
"""
import os
import blade
import configparse
import console
import bui... | 4,533 |
852 | <gh_stars>100-1000
#ifndef ElectronMomentumCorrector_H
#define ElectronMomentumCorrector_H
//===================================================================
// Author: <NAME> - INFN Milano, Bicocca university
// <NAME> - FESB, Split
// 12/2005
//adapted to CMSSW by U.Berthon, dec 2006
//===================... | 272 |
2,151 | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrVkVaryingHandler.h"
/** Returns the number of locations take up by a given GrSLType. We assume that all
scalar values are 32 bits. */
static inline int grslty... | 1,596 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.customerinsights.implementation;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.Simpl... | 1,334 |
471 | ///////////////////////////////////////////////////////////////////////////////
// Name: tests/intl/intltest.cpp
// Purpose: wxLocale unit test
// Author: <NAME>
// Created: 2007-03-26
// Copyright: (c) 2007 <NAME>
///////////////////////////////////////////////////////////////////////////////
//... | 3,355 |
550 | package play.data.validation;
import java.lang.reflect.Constructor;
import java.util.Map;
import java.util.TreeMap;
import net.sf.oval.Validator;
import net.sf.oval.configuration.annotation.AbstractAnnotationCheck;
import net.sf.oval.context.OValContext;
import play.exceptions.UnexpectedException;
@SuppressWarnings(... | 481 |
357 | <reponame>wfu8/lightwave
/*
* Copyright (c) 2012-2015 VMware, 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
... | 2,721 |
1,553 | # -*- coding: utf-8 -*-
"""
SubRip's time format parser: HH:MM:SS,mmm
"""
import re
from datetime import time
from pysrt.srtexc import InvalidTimeString
from pysrt.comparablemixin import ComparableMixin
from pysrt.compat import str, basestring
class TimeItemDescriptor(object):
# pylint: disable-msg=R0903
def... | 2,477 |
373 | /** @file
Header file for PCH PCI Express helpers library
Copyright (c) 2019 Intel Corporation. All rights reserved. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _PCH_PCI_EXPRESS_HELPERS_LIB_H_
#define _PCH_PCI_EXPRESS_HELPERS_LIB_H_
#include <PchPolicyCommon.h>
typedef enum {
... | 4,202 |
390 | import numpy as np
from genrl.agents.bandits.multiarmed.base import MABAgent
from genrl.core.bandit import MultiArmedBandit
class UCBMABAgent(MABAgent):
"""
Multi-Armed Bandit Solver with Upper Confidence Bound based
Action Selection Strategy.
Refer to Section 2.7 of Reinforcement Learning: An Intro... | 1,066 |
1,020 | /*
* Copyright 2017 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.amazon.com/apache2.0/
*
* or in the "LICEN... | 869 |
1,093 | /*
* Copyright 2017 Google, 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 to in... | 1,201 |
607 | <filename>theming/src/main/java/org/pushingpixels/radiance/theming/internal/contrib/randelshofer/quaqua/Quaqua14ColorChooserUI.java
/*
* @(#)QuaquaColorChooserUI.java 1.1 2005-12-18
*
* Copyright (c) 2004 <NAME>
* Staldenmattweg 2, Immensee, CH-6405, Switzerland.
* All rights reserved.
*
* This software is the... | 2,589 |
6,034 | <filename>user-service-project/user-service-api/src/main/java/cn/iocoder/mall/userservice/rpc/address/dto/UserAddressCreateReqDTO.java
package cn.iocoder.mall.userservice.rpc.address.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.co... | 599 |
2,937 | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Tor<NAME>
Permission is hereby granted, free of charge, to any person obtaining a co... | 14,759 |
778 | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: <NAME>
//
// System includes
... | 3,365 |
663 | <gh_stars>100-1000
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... | 2,639 |
973 | /*_##########################################################################
_##
_## Copyright (C) 2016 Pcap4J.org
_##
_##########################################################################
*/
package org.pcap4j.packet;
import org.pcap4j.packet.LlcPacket.LlcControl;
import org.pcap4j.util.ByteArrays;
... | 2,218 |
763 | package org.batfish.vendor.check_point_management.parsing.parboiled;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
import com.google.common.testing.EqualsTester;
import org.apache.commons.lang3.SerializationUtils;
import org.junit.Test;
/** Test of {@link DisjunctionAstNode}... | 429 |
1,144 | <gh_stars>1000+
package de.metas.rest_api.v1.ordercandidates.impl;
import de.metas.bpartner.BPartnerId;
import de.metas.bpartner.BPartnerLocationId;
import de.metas.bpartner.GLN;
import de.metas.document.DocBaseAndSubType;
import de.metas.impex.model.I_AD_InputDataSource;
import de.metas.location.CountryId;
import de.... | 4,223 |
348 | <filename>docs/data/t2/0ZZ/ZZ061.json
{"nom":"Damas","dpt":"Français établis hors de France","inscrits":807,"abs":792,"votants":15,"blancs":1,"nuls":0,"exp":14,"res":[{"panneau":"2","voix":9},{"panneau":"1","voix":5}]} | 92 |
348 | <filename>docs/data/leg-t2/054/05405140.json<gh_stars>100-1000
{"nom":"Courcelles","circ":"5ème circonscription","dpt":"Meurthe-et-Moselle","inscrits":85,"abs":34,"votants":51,"blancs":4,"nuls":0,"exp":47,"res":[{"nuance":"SOC","nom":"<NAME>","voix":30},{"nuance":"REM","nom":"<NAME>","voix":17}]} | 127 |
1,350 | <filename>sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CustomEventsTrigger.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.analy... | 1,550 |
1,041 | <gh_stars>1000+
package io.ebeaninternal.server.core;
import java.sql.SQLException;
/**
* Read a row building a result for that row.
*/
public interface RowReader<T> {
/**
* Build and return a result for a row.
*/
T read() throws SQLException;
}
| 92 |
818 | /*
* Copyright 2021 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 a... | 1,245 |
352 | <filename>PepperPlugin/src/PepperPlugin/pepper_entrypoints.cpp
/* Copyright (c) 2016 Xamarin. */
/* NOTE: this is auto-generated from IDL */
#include "pepper_entrypoints.h"
#include "ppapi/c/ppb.h"
#include "ppapi/c/ppb_audio.h"
#include "ppapi/c/ppb_audio_buffer.h"
#include "ppapi/c/ppb_audio_config.h"
#include "ppa... | 48,821 |
360 | <reponame>tigertv/Cube-Engine
#ifndef TZW_FONTENGINE_H
#define TZW_FONTENGINE_H
#include <ft2build.h>
#include FT_FREETYPE_H
#include <string>
namespace tzw {
class Font;
class FontEngine
{
public:
static FontEngine *shared();
void initFont(Font* font, std::string fontFilePath, unsigned int fontSize);
private:... | 184 |
2,228 | /*
* Copyright 2013-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 961 |
2,180 | package com.xiaojukeji.kafka.manager.common.entity.dto.normal;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.xiaojukeji.kafka.manager.common.constant.TopicSampleConstant;
import com.xiaojukeji.kafka.manager.common.utils.ValidateUtils;
import io.swagger.annotations.ApiModelProperty;
/**
* T... | 1,125 |
3,777 | from supervisor.options import ClientOptions
from jadi import component
from aj.plugins.services.api import ServiceManager, Service, ServiceOperationError
@component(ServiceManager)
class SupervisorServiceManager(ServiceManager):
id = 'supervisor'
name = 'Supervisor'
def __init__(self, context):
... | 488 |
1,958 | <reponame>stephenkid/LeetCode-Sol
package com.freetymekiyan.algorithms.level.easy;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array
* such that nums[... | 640 |
343 | class EnclosingMethodTest
{
public String text;
public static void main(String[] args)
{
new EnclosingMethodTest() {{
this.text = "Hello World!";
callHelloWorld();
}};
}
public void callHelloWorld()
{
System.out.println(this.text);
}
}
| 143 |
611 | <reponame>packagesdev/dejalu
// DejaLu
// Copyright (c) 2015 <NAME>. All rights reserved.
#import <Cocoa/Cocoa.h>
@interface NSImage (DJLColored)
- (NSImage *) djl_imageWithColor:(NSColor *)color;
@end
| 82 |
310 | {
"name": "Diva Lite 200",
"description": "A lighting fixture for video recording.",
"url": "https://www.amazon.com/Diva-Lite-200-120-volt/dp/B0089X7NEG"
} | 63 |
442 | #This file is part of ElectricEye.
#SPDX-License-Identifier: Apache-2.0
#Licensed to the Apache Software Foundation (ASF) under one
#or more contributor license agreements. See the NOTICE file
#distributed with this work for additional information
#regarding copyright ownership. The ASF licenses this file
#to you un... | 23,687 |
575 | <reponame>timmylinux/Fast-DDS<filename>include/fastdds/dds/domain/qos/DomainParticipantQos.hpp
// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtai... | 3,412 |
303 | /**
* 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... | 867 |
570 | package com.luck.picture.lib.instagram.adapter;
import android.graphics.Bitmap;
import android.view.View;
import android.view.ViewGroup;
import com.luck.picture.lib.R;
import java.util.ArrayList;
import java.util.List;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
/**
* ===... | 645 |
2,602 | <gh_stars>1000+
{
"compilerOptions": {
"noEmit": true,
"module": "None",
"experimentalDecorators": false,
"noImplicitReturns": true,
"noImplicitOverride": true,
"noUnusedLocals": true,
"allowUnreachableCode": false,
"strict": true,
"exactOptionalPropertyTypes": false,
"useUnknownInCatchVariables": ... | 205 |
598 | '''Generic class for models that take the form of a set of (potentially overlapping) rules.
''' | 24 |
713 | package org.infinispan.distribution;
import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.fail;
import java.util.ArrayList;
import java.util.concurrent.TimeUnit;
import org.infinispan.Cache;
import org.infinispan.commons.marshall.MarshallingException;
import org.infinispan.manager.E... | 1,261 |
318 | package org.webbitserver.stub;
import static org.junit.Assert.assertEquals;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import ja... | 1,407 |
4,098 | <filename>Siv3D/src/ThirdParty/angelscript/as_atomic.cpp
/*
AngelCode Scripting Library
Copyright (c) 2003-2014 <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any
damages arising from the use of this software.
Permis... | 1,409 |
1,338 | <reponame>Kirishikesan/haiku<gh_stars>1000+
// BApplicationTestApp1b.cpp
#include <stdio.h>
#include <Application.h>
int
main()
{
status_t error = B_OK;
BApplication app((const char*)NULL, &error);
printf("error: %lx\n", error);
printf("InitCheck(): %lx\n", app.InitCheck());
return 0;
}
| 123 |
825 | <gh_stars>100-1000
package com.didi.hummer.adapter.tracker;
import java.io.Serializable;
/**
* 页面性能相关自定义信息
*
* Created by XiaoFeng on 2021/8/27.
*/
public class PerfCustomInfo implements Serializable {
/**
* 分类
*/
public String category;
/**
* 名称
*/
public String name;
/**... | 418 |
3,921 | package com.alibaba.luaview.debugger.ui;
import java.util.Hashtable;
import javax.swing.JTabbedPane;
import com.alibaba.luaview.debugger.Center;
public class SrcCodeCenter {
public final Center center;
public SrcCodeCenter(Center center) {
this.center = center;
}
final Hashtable<String, SrcCodeViewer> table... | 1,330 |
2,414 | /*
* Copyright 2019 WeBank
*
* 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 writin... | 3,588 |
1,652 | package com.ctrip.xpipe.redis.checker;
import com.ctrip.xpipe.api.email.EmailResponse;
import com.ctrip.xpipe.api.server.Server;
import com.ctrip.xpipe.redis.checker.alert.AlertMessageEntity;
import com.ctrip.xpipe.redis.checker.healthcheck.RedisHealthCheckInstance;
import java.util.Date;
import java.util.HashSet;
im... | 658 |
333 | import copy
import os
import re
import sys
import ustrings
if sys.version_info < (2, 7):
import unittest2 as unittest
else:
import unittest
import shutil
from .resource_suite import ResourceBase
from .. import lib
class Test_iRsync(ResourceBase, unittest.TestCase):
def setUp(self):
super(Test_iR... | 6,944 |
2,900 | <reponame>implydata/jackson-databind<gh_stars>1000+
package perf;
import java.io.IOException;
import java.io.OutputStream;
public class NopOutputStream extends OutputStream
{
protected int size = 0;
public NopOutputStream() { }
@Override
public void write(int b) throws IOException { ++size; }
... | 188 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.