max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,546 | <reponame>npv12/lawnchair
/*
* Copyright (C) 2017 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
*
*... | 336 |
575 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_VIZ_SERVICE_DISPLAY_EMBEDDER_SKIA_OUTPUT_DEVICE_VULKAN_SECONDARY_CB_OFFSCREEN_H_
#define COMPONENTS_VIZ_SERVICE_DISPLAY_EMBEDDER_SKIA_O... | 507 |
400 | <gh_stars>100-1000
package org.ofdrw.core.text.text;
import org.junit.jupiter.api.Test;
import org.ofdrw.TestTool;
import org.ofdrw.core.basicType.ST_Array;
import org.ofdrw.core.basicType.ST_Box;
import org.ofdrw.core.basicType.ST_ID;
import org.ofdrw.core.basicType.ST_RefID;
import org.ofdrw.core.text.TextCode;
imp... | 607 |
321 | {
"extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"],
"rulesDirectory": ["tslint-plugin-prettier"],
"rules": {
"prettier": true,
"interface-over-type-literal": false,
"interface-name": [true, "never-prefix"],
"object-literal-sort-keys": false,
"ordered-imports": false,... | 356 |
676 | <reponame>gitskarios/Gitskarios
package com.alorma.github.presenter;
import com.alorma.github.injector.named.ComputationScheduler;
import com.alorma.github.injector.named.MainScheduler;
import com.alorma.gitskarios.core.Pair;
import core.datasource.SdkItem;
import core.repositories.Branch;
import core.repositories.Rep... | 530 |
348 | <filename>docs/data/leg-t2/021/02105558.json
{"nom":"Sainte-Marie-la-Blanche","circ":"5ème circonscription","dpt":"Côte-d'Or","inscrits":719,"abs":399,"votants":320,"blancs":15,"nuls":2,"exp":303,"res":[{"nuance":"REM","nom":"<NAME>","voix":176},{"nuance":"LR","nom":"<NAME>","voix":127}]} | 122 |
2,338 | // RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_divmodti4
// REQUIRES: int128
//===-- divmodti4_test.c - Test __divmodti4 -------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license inf... | 2,451 |
3,337 | <reponame>timgates42/SoundJS
{
"name": "SoundJS-UnitTests",
"version": "0.0.1",
"description": "SoundJS unit testing.",
"url": "http://www.createjs.com/#!/SoundJS",
"logo": "assets/docs-icon-SoundJS.png",
"devDependencies": {
"body-parser": "^1.9.2",
"grunt": "~0.4.5",
"grunt-contrib-connect": "... | 192 |
1,587 | package com.example.demo.connectionchecking.junit5;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import org.junit.jupiter.api.extension.ExtendWith;
@Retention(RetentionPolicy.RUNTIME)
@ExtendWith(AssumeConnectionCondition.class)
public @interface AssumeConnection {
String ur... | 106 |
9,225 | import os.path
import shutil
failure_demo = os.path.join(os.path.dirname(__file__), "failure_demo.py")
pytest_plugins = ("pytester",)
def test_failure_demo_fails_properly(pytester):
target = pytester.path.joinpath(os.path.basename(failure_demo))
shutil.copy(failure_demo, target)
result = pytester.runpyte... | 176 |
1,475 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | 779 |
1,875 | /*
* 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.
*/
package io.flutter.perf;
/**
* Base class for all view models displaying performance stats
*/
public interface PerfModel {
void markAppIdle();
... | 106 |
1,062 | <reponame>icarazob/mr4c
/**
* Copyright 2014 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.... | 990 |
670 | package com.uddernetworks.mspaint.code.languages.java.buildsystem;
public interface BuildSystem {
String getName();
BuildSystemSettings getSettings();
}
| 50 |
868 | /*
* 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 n... | 1,744 |
14,668 | // 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 "ppapi/cpp/vpn_provider.h"
#include "ppapi/c/ppb_vpn_provider.h"
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/instance_handle.h"
#include... | 829 |
525 | # -*- coding: utf-8 -*-
import itertools
import io
from .compat import fix_pep_479
from .errors import NgxParserSyntaxError
EXTERNAL_LEXERS = {}
@fix_pep_479
def _iterescape(iterable):
chars = iter(iterable)
for char in chars:
if char == '\\':
char = char + next(chars)
yield char... | 2,249 |
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 ... | 2,631 |
1,336 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 3,385 |
486 | <filename>apps/infer.py
# -*- coding: utf-8 -*-
# Max-Planck-Gesellschaft zur Förderung der Wissenschaften e.V. (MPG) is
# holder of all proprietary rights on this computer program.
# You can only use this computer program if you have closed
# a license agreement with MPG or you get the right to use the computer
# pro... | 11,948 |
1,104 | <reponame>yblucky/mdrill<gh_stars>1000+
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This... | 600 |
1,539 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
""" Global monitor for the fuzzing run """
import time
from engine.core.status_codes_monitor import StatusCodesMonitor
from engine.core.renderings_monitor import RenderingsMonitor
def Monitor():
""" Accessor for the FuzzingMonitor singleton... | 3,541 |
7,892 | /* SoX Resampler Library Copyright (c) 2007-18 <EMAIL>
* Licence for this file: LGPL v2.1 See LICENCE for details. */
/* Common includes etc. for the examples. */
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <math.h>
#include <stddef.h>
#include <stdio.h>
#include <stdli... | 495 |
653 | <filename>iexfinance/apidata/__init__.py
from iexfinance.apidata.base import APIReader
def get_api_status(**kwargs):
"""
IEX Cloud API status
Reference: https://iexcloud.io/docs/api/#status
Data Weighting: ``Free``
"""
return APIReader(**kwargs).fetch()
| 112 |
678 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@class NSError, NSThread;
@interface WCDBHandleWrap : NSObject
{
NSThread *m_usedThread;
struct sqlite3 *m_handle;
id <WCDBHandleWrapProtocol> m_delegat... | 343 |
1,652 | package com.ctrip.xpipe.redis.keeper.impl;
import com.ctrip.xpipe.concurrent.AbstractExceptionLogTask;
import com.ctrip.xpipe.netty.filechannel.ReferenceFileRegion;
import com.ctrip.xpipe.redis.core.protocal.protocal.EofType;
import com.ctrip.xpipe.redis.core.protocal.protocal.LenEofType;
import com.ctrip.xpipe.redis... | 3,340 |
1,909 | <reponame>danilopiazza/spring-batch
/*
* Copyright 2006-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/LI... | 1,431 |
341 | /*
** Bundled memory allocator.
** Donated to the public domain.
*/
#ifndef _LJ_ALLOC_H
#define _LJ_ALLOC_H
#include "lj_def.h"
#ifndef LUAJIT_USE_SYSMALLOC
LJ_FUNC void *lj_alloc_create(void);
LJ_FUNC void lj_alloc_destroy(void *msp);
LJ_FUNC void *lj_alloc_f(void *msp, void *ptr, size_t osize, size_t ... | 171 |
1,006 | <filename>arch/arm/src/sam34/sam_gpio.h<gh_stars>1000+
/****************************************************************************
* arch/arm/src/sam34/sam_gpio.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this ... | 1,552 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-mfrc-8wqr-f298",
"modified": "2022-05-01T02:28:05Z",
"published": "2022-05-01T02:28:05Z",
"aliases": [
"CVE-2005-4515"
],
"details": "** DISPUTED ** SQL injection vulnerability in WebDB 1.1 and earlier allows re... | 855 |
388 | <gh_stars>100-1000
#ifndef _FILTER_NORMAL_H_
#define _FILTER_NORMAL_H_
#include "util_render_target.h"
int init_normal_filter ();
int apply_normal_filter (render_target_t *dst_fbo, render_target_t *src_fbo);
#endif /* _FILTER_NORMAL_H_ */
| 103 |
434 | #ifndef KVM__VIRTIO_9P_H
#define KVM__VIRTIO_9P_H
#include "kvm/virtio.h"
#include "kvm/pci.h"
#include "kvm/threadpool.h"
#include "kvm/parse-options.h"
#include <dirent.h>
#include <linux/list.h>
#include <linux/rbtree.h>
#define NUM_VIRT_QUEUES 1
#define VIRTQUEUE_NUM 128
#define VIRTIO_9P_DEFAULT_TAG "kvm_9p"
#... | 835 |
2,753 | /*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: <NAME>, <NAME>, <NAME>, <NAME>,
* <NAME>, <NAME>, <NAME>, <NAME>,
* <NAME>, <NAME>, <NAME>
*/
#ifndef GAUSSIANKERNEL_H
#define GAUSSIANKERNEL_H
#include <shogun/lib/config.h>
#include <shogun/kernel/S... | 1,585 |
601 | <gh_stars>100-1000
/*
* Copyright 2020-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
*
* U... | 2,854 |
436 | <gh_stars>100-1000
/*
* Copyright 2003-2005 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 req... | 785 |
6,270 | [
{
"type": "bugfix",
"category": "S3",
"description": "fix issues when SDK populates wrong path if access point arn contains forward slash"
},
{
"type": "feature",
"category": "ApplicationAutoScaling",
"description": "This release supports auto scaling of pro... | 937 |
369 | /*
* File: stdlib.h
* Purpose: Function prototypes for standard library functions
*
* Notes:
*/
#ifndef _STDLIB_H
#define _STDLIB_H
/********************************************************************
* Standard library functions
********************************************************************/
int
iss... | 359 |
831 | <reponame>qq1056779951/android<gh_stars>100-1000
/*
* Copyright (C) 2018 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/... | 2,952 |
1,755 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkPMergeArrays.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOU... | 465 |
2,420 | from igramscraper.two_step_verification.two_step_verification_abstract_class import TwoStepVerificationAbstractClass
from igramscraper.two_step_verification.console_verification import ConsoleVerification
__all__ = ["TwoStepVerificationAbstractClass", "ConsoleVerification"]
| 73 |
2,023 | # <NAME>, Agricultural University, Plovdiv, Bulgaria
# <EMAIL>
choice=None
def qcr():
gap=input('Enter general amount of pesticide: ')
qr=raw_input('Enter quantitative ratios with colon between them: ')
sqr=qr.split(':')
fqr=[float(i) for i in sqr]
sqr=sum(fqr)
el_part=gap/sq... | 359 |
312 | #include <occa/internal/lang/token/charToken.hpp>
#include <occa/internal/utils/string.hpp>
namespace occa {
namespace lang {
charToken::charToken(const fileOrigin &origin_,
int encoding_,
const std::string &value_,
const std::string &udf... | 450 |
8,194 | /*
* Copyright 2016 <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 or agreed to in wr... | 4,129 |
400 | /*
* xcam_smart_result.h - smart result(meta data)
*
* Copyright (c) 2016-2017 Intel 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/licen... | 763 |
1,755 | <gh_stars>1000+
/*=========================================================================
Program: Visualization Toolkit
Module: TestGPURayCastNearestDataTypesMIP.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... | 3,510 |
521 | #include <elle/test.hh>
#include <elle/Printable.hh>
#include <iostream>
#include <sstream>
namespace elle
{
class ComplexNumber : public Printable
{
public:
ComplexNumber(int real, int imag);
~ComplexNumber();
void
set(int real, int imag);
void
print(std::ostream& stream) const;
... | 574 |
778 | //--------------------------------------------------------------------------------------------------------------------//
// //
// Tuplex: Blazing Fast Python Data Scien... | 17,485 |
622 | /*
* Copyright 2021 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 "license" fil... | 4,298 |
575 | <gh_stars>100-1000
// Copyright (c) 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/apps/app_service/dip_px_util.h"
#include "base/check_op.h"
#include "ui/base/layout.h"
#include "ui/displ... | 650 |
5,649 | #include "dvlnet/zerotier_lwip.h"
#include <lwip/igmp.h>
#include <lwip/mld6.h>
#include <lwip/sockets.h>
#include <lwip/tcpip.h>
#include <SDL.h>
#ifdef USE_SDL1
#include "utils/sdl2_to_1_2_backports.h"
#else
#include "utils/sdl2_backports.h"
#endif
#include "utils/log.hpp"
#include "dvlnet/zerot... | 453 |
523 | <filename>app/src/main/java/io/github/droidkaigi/confsched2017/model/Topic.java
package io.github.droidkaigi.confsched2017.model;
import android.support.annotation.Nullable;
import com.github.gfx.android.orma.annotation.Column;
import com.github.gfx.android.orma.annotation.PrimaryKey;
import com.github.gfx.android.or... | 254 |
631 | /*****************************************************************************
* *
* OpenNI 1.x Alpha *
* Copyright (C) 2012 PrimeSense Ltd. *
... | 2,831 |
3,031 | # encoding: utf-8
"""Unit test suite for docx.image.jpeg module"""
from __future__ import absolute_import, print_function
import pytest
from docx.compat import BytesIO
from docx.image.constants import JPEG_MARKER_CODE, MIME_TYPE
from docx.image.helpers import BIG_ENDIAN, StreamReader
from docx.image.jpeg import (
... | 10,155 |
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,363 |
32,544 | <reponame>DBatOWL/tutorials
package com.baeldung.web.util;
public class SpecSearchCriteria {
private String key;
private SearchOperation operation;
private Object value;
private boolean orPredicate;
public SpecSearchCriteria() {
}
public SpecSearchCriteria(final String key, final Search... | 1,000 |
361 | <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,176 |
432 | /* Profile counter container type.
Copyright (C) 2017-2018 Free Software Foundation, Inc.
Contributed by <NAME>
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version ... | 3,945 |
1,379 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 3,186 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-2cph-fjvp-h5ww",
"modified": "2022-05-01T07:07:56Z",
"published": "2022-05-01T07:07:56Z",
"aliases": [
"CVE-2006-3315"
],
"details": "PHP remote file inclusion vulnerability in page.php in an unspecified RahnemaCo.com product, possibly eShop, allows remote atta... | 491 |
14,668 | <gh_stars>1000+
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "device/fido/cros/discovery.h"
#include "base/bind.h"
#include "base/logging.h"
#include "chromeos/dbus/u2f/u2f_client.h"
#inclu... | 1,252 |
364 | package com.linkedin.dagli.xgboost;
import com.linkedin.dagli.dag.DAG;
import com.linkedin.dagli.dag.DAG1x1;
import com.linkedin.dagli.dag.DAG2x1;
import com.linkedin.dagli.generator.Constant;
import com.linkedin.dagli.math.distribution.DiscreteDistribution;
import com.linkedin.dagli.math.vector.DenseFloatArrayVector;... | 1,353 |
518 | <reponame>e-ntro-py/desktop-app
{
"name": "KanbanFlow",
"category": "Task & Project Management",
"start_url": "https://kanbanflow.com/login",
"icons": [
{
"src": "https://cdn.filestackcontent.com/Nycf9amQw6cwBfl3eT3M"
},
{
"src": "https://cdn.filestackcontent.com/2YYMJoHeTQGFW4M7QJZj",
... | 206 |
1,014 | <reponame>MobileAir/FinanceDatabase
[
"Basic Materials",
"Communication Services",
"Consumer Cyclical",
"Energy",
"Financial",
"Financial Services",
"Healthcare",
"Industrials",
"Real Estate",
"Technology",
"Utilities"
] | 115 |
931 | <reponame>siddhi-244/CompetitiveProgrammingQuestionBank
// C++ program to demonstrate Hierarchical Inheritance
// Hierarchical Inheritance - It is defined as the inheritance in which more that one derived classes
// are inherited from a single base class.
#include<bits/stdc++.h>
using namespace std;
// base class
c... | 465 |
2,039 | /*-
*
* * Copyright 2015 Skymind,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... | 620 |
458 | <reponame>niranjanchintu/hyscale
/**
* Copyright 2019 <NAME>, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 908 |
307 | <reponame>davoustp/classloader-leak-prevention<gh_stars>100-1000
package se.jiderhamn.classloader.leak.prevention.cleanup;
import java.lang.management.ManagementFactory;
import javax.management.Notification;
import javax.management.NotificationEmitter;
import javax.management.NotificationListener;
/**
* Test case fo... | 276 |
700 | /* $OpenBSD: msg.c,v 1.20 2020/10/18 11:32:01 djm Exp $ */
/*
* Copyright (c) 2002 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain th... | 1,063 |
363 | /* Copyright 2013 predic8 GmbH, www.predic8.com
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 agree... | 12,769 |
10,225 | package org.acme;
import io.quarkus.test.junit.QuarkusTest;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.is;
@Tag("foo")
@QuarkusTest
public class HelloResourceFooTest {
@Test
void testHelloEndpoin... | 334 |
1,069 | <reponame>Leopere/django-th
from .feedsservice import Feeds
| 24 |
14,668 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/shape_detection/text_detection_impl_win.h"
#include <windows.foundation.collections.h>
#include <windows.globalization.h>
#include <me... | 3,383 |
575 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_MIXER_H_
#define CHROME_BROWSER_UI_APP_LIST_SEARCH_MIXER_H_
#include <stddef.h>
#include <memory>
#include <st... | 996 |
3,603 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 653 |
348 | {"nom":"Tellières-le-Plessis","dpt":"Orne","inscrits":64,"abs":14,"votants":50,"blancs":5,"nuls":2,"exp":43,"res":[{"panneau":"1","voix":23},{"panneau":"2","voix":20}]} | 74 |
422 | //
// Getdown - application installer, patcher and launcher
// Copyright (C) 2004-2018 Getdown authors
// https://github.com/threerings/getdown/blob/master/LICENSE
package com.threerings.getdown.launcher;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.... | 1,197 |
1,145 | // Copyright 2014 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... | 556 |
1,751 | <reponame>rapidoid/rapidoid<filename>rapidoid-commons/src/main/java/org/rapidoid/var/impl/AbstractVar.java<gh_stars>1000+
/*-
* #%L
* rapidoid-commons
* %%
* Copyright (C) 2014 - 2020 <NAME> and contributors
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except... | 847 |
344 | /*
* Copyright (c) 2020 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 363 |
1,515 | package com.google.android.play.core.splitinstall;
import android.os.RemoteException;
import com.google.android.play.core.remote.RemoteTask;
import com.google.android.play.core.tasks.TaskWrapper;
import java.util.List;
final class DeferredInstallTask extends RemoteTask {
private final SplitInstallService mSpl... | 517 |
1,057 | package slowy;
class App {
private static boolean isDivisible(int n, int d) {
return n % d == 0;
}
private static boolean isSimplePrime(int n) {
return n <= 2;
}
private static boolean isPrime(int n) {
if (isSimplePrime(n)) return true;
for (int d = 3; d < ... | 387 |
1,382 | <reponame>cropinghigh/pipewire<gh_stars>1000+
/* PipeWire
*
* Copyright © 2021 Red Hat, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without lim... | 1,146 |
1,056 | <reponame>timfel/netbeans<filename>java/form/src/org/netbeans/modules/form/PropertyPicker.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ... | 4,899 |
2,151 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/api/identity/identity_get_auth_token_function.h"
#include <memory>
#include <set>
#include <string>
#include <vector>... | 10,822 |
421 |
// System.Web.Services.Description.MimeXmlBinding
// System.Web.Services.Description.MimeXmlBinding.MimeXmlBinding()
// System.Web.Services.Description.MimeXmlBinding.Part
/* The following program demonstrates constructor and 'Part'property
of 'MimeXmlBinding' class. This program takes 'MimeXmlBinding_Part_3_In... | 1,430 |
17,703 | <reponame>dcillera/envoy
#pragma once
#include "envoy/compression/compressor/factory.h"
#include "envoy/extensions/compression/brotli/compressor/v3/brotli.pb.h"
#include "envoy/extensions/compression/brotli/compressor/v3/brotli.pb.validate.h"
#include "source/common/http/headers.h"
#include "source/extensions/compres... | 808 |
1,204 | /*
* Copyright 2014 <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 or agree... | 2,238 |
1,041 | package io.ebeaninternal.server.core.timezone;
import java.util.Calendar;
/**
* Implementation of DataTimeZone that clones the Calendar instance.
* <p>
* Used with Oracle JDBC driver as that wants to mutate the Calender.
* </p>
*/
public class OracleDataTimeZone extends SimpleDataTimeZone {
public OracleDataT... | 156 |
348 | <filename>docs/data/leg-t1/035/03502177.json<gh_stars>100-1000
{"nom":"<NAME>","circ":"2ème circonscription","dpt":"Ille-et-Vilaine","inscrits":3574,"abs":1571,"votants":2003,"blancs":29,"nuls":6,"exp":1968,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":1056},{"nuance":"FI","nom":"<NAME>","voix":243},{"nuance":"SOC",... | 399 |
1,120 | <filename>tools/k4aviewer/k4adepthimageconverterbase.h
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef K4ADEPTHIMAGECONVERTERBASE_H
#define K4ADEPTHIMAGECONVERTERBASE_H
// System headers
//
#include <memory>
#include <vector>
// Library headers
//
// Project h... | 1,396 |
1,444 | <reponame>GabrielSturtevant/mage
package mage.cards.s;
import mage.abilities.Ability;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
import mage.abilities.effects.OneShotEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.*;
import mage.game.Game;
import mage.playe... | 706 |
580 | <filename>include/mpark/patterns/optional.hpp
// MPark.Patterns
//
// Copyright <NAME>, 2017
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#ifndef MPARK_PATTERNS_OPTIONAL_HPP
#define MPARK_PATTERNS_OPTIONAL_HPP
#inclu... | 437 |
3,049 | <filename>engine/src/test/java/io/seldon/engine/service/UriCacheTest.java
package io.seldon.engine.service;
import io.seldon.protos.DeploymentProtos.Endpoint;
import org.junit.Assert;
import org.junit.Test;
public class UriCacheTest {
@Test
public void testUri() {
Endpoint endpointA = Endpoint.newBuilder().s... | 443 |
4,262 | <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 "Lic... | 7,496 |
587 | /* ISC license. */
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <skalibs/posixplz.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/djbunix.h>
#include <s6/supervise.h>
void s6_supervise_unlink (char const *scdir, char const *name, uint32_t options)
{
int e = errn... | 702 |
561 | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2011, <NAME>. All rights reserved.
// Copyright (c) 2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that... | 1,094 |
948 | <filename>arch/cpu/cc26x0-cc13x0/dev/cc26xx-aes.c
/*
* Copyright (c) 2016, University of Bristol - http://www.bristol.ac.uk
* 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. Redistribu... | 1,579 |
10,882 | from .forest import RandomForestClassifier, RandomForestRegressor
| 14 |
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... | 816 |
7,407 | /*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
publish... | 15,902 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.