max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
478 | /*
Q Light Controller
alsamidiutil.cpp
Copyright (c) <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.txt
Unless required by a... | 660 |
348 | <filename>docs/data/leg-t2/079/07902009.json
{"nom":"Amuré","circ":"2ème circonscription","dpt":"Deux-Sèvres","inscrits":324,"abs":167,"votants":157,"blancs":6,"nuls":4,"exp":147,"res":[{"nuance":"SOC","nom":"<NAME>","voix":76},{"nuance":"REM","nom":"Mme <NAME>","voix":71}]} | 117 |
190,993 | <filename>tensorflow/compiler/xla/client/xla_computation.cc<gh_stars>1000+
/* Copyright 2018 The TensorFlow 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://... | 448 |
61,676 | <gh_stars>1000+
from django.template.defaultfilters import divisibleby
from django.test import SimpleTestCase
class FunctionTests(SimpleTestCase):
def test_true(self):
self.assertIs(divisibleby(4, 2), True)
def test_false(self):
self.assertIs(divisibleby(4, 3), False)
| 111 |
308 | from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import exception_handler
def custom_exception_handler(exc, context):
response = exception_handler(exc, context)
# We overwrite the response status code to 500
if response is not None:
return R... | 120 |
373 | <filename>uniauth-server/src/main/java/com/dianrong/common/uniauth/server/support/apicontrl/pejudger/AbstractHttpRequestPermissionJudger.java
package com.dianrong.common.uniauth.server.support.apicontrl.pejudger;
import com.dianrong.common.uniauth.common.apicontrol.server.CallerCredential;
import com.dianrong.common.u... | 896 |
580 | /**
* Copyright 2011, Big Switch Networks, Inc.
* Originally created by <NAME>, Stanford University
*
* 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.apach... | 439 |
325 | {
"data":[
{
"author": "<NAME>",
"quote": "Life isn't about finding yourself. Life is about creating yourself."
},
{
"author": "<NAME>",
"quote": "The most important thing is to enjoy your life - to be happy - it's all that matters."
},
{
"author": "<NAME>",
"quote": "I have found that if y... | 868 |
777 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_FACTORY_H_
#define IOS_CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_FACTORY_H_
#includ... | 341 |
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 <stddef.h>
#include <stdint.h>
#include "testing/libfuzzer/fuzzers/skia_path_common.h"
#include "third_party/skia/include/core/SkCanvas.h"
#incl... | 738 |
1,444 | package mage.cards.b;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.DestroyAllEffect;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.keyword.OverloadAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType... | 749 |
5,252 | /***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| |_|
*
*
* Copyright 2018-present, <NAME... | 873 |
1,131 | <reponame>ycyun/ablestack-cloud
// 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... | 1,683 |
14,668 | <reponame>chromium/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 "components/viz/service/performance_hint/utils.h"
#include "base/containers/contains.h"
#include "build/build_config... | 430 |
545 | {
"AuthBase.accessAsGuest": "Raarugo bannda sigorɗum",
"AuthBase.oidcGenericExplanation": "Kolibri ɗum laawol janngugo nder kompiita. Bee sigorɗum Kolibri maaɗa a waaway nastugo app-ji goɗɗi feere.",
"AuthBase.oidcSpecificExplanation": "A yerɓoyaama daga app bi'eteeɗum '{app_name}'.Kolibri ɗum laawol janngugo nde... | 1,535 |
660 | <filename>media_driver/agnostic/common/codec/shared/codec_def_vp9_probs.h
/*
* Copyright (c) 2017, Intel Corporation
*
* 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, inc... | 14,249 |
2,113 | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | 1,844 |
544 | import json
from office365.sharepoint.client_context import ClientContext
from tests import test_user_credentials, test_site_url
if __name__ == '__main__':
"""Demonstrates how to construct and submit requests without model involved"""
client = ClientContext(test_site_url).with_credentials(test_user_credenti... | 171 |
1,338 | /* Standard queue */
/*
** Copyright 2001, <NAME>. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#include <kernel.h>
#include <queue.h>
#include <malloc.h>
#include <errno.h>
typedef struct queue_element {
void *next;
} queue_element;
typedef struct queue_typed {
queue_element *head... | 1,067 |
305 | /*
* Copyright (c) 2012 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... | 9,205 |
302 | <filename>package.json
{
"name": "vue-google-signin-button",
"version": "1.0.4",
"description": "A simple plugin to include a Google sign-in button into your web app",
"main": "dist/vue-google-signin-button.min.js",
"scripts": {
"lint": "./node_modules/.bin/eslint index.js",
"build": "./node_modules/.... | 510 |
482 | #include "test.h"
#include "sidx_api_test.h"
int main(int argc, char** argv) {
printf("Running main() from gtest_main.cc\n");
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
| 81 |
1,444 | <reponame>amc8391/mage<filename>Mage.Sets/src/mage/sets/KaladeshPromos.java<gh_stars>1000+
package mage.sets;
import mage.cards.ExpansionSet;
import mage.constants.Rarity;
import mage.constants.SetType;
/**
* https://scryfall.com/sets/pkld
*/
public class KaladeshPromos extends ExpansionSet {
private static fi... | 3,864 |
5,169 | <gh_stars>1000+
{
"name": "iosVoiceBPMLib",
"version": "0.0.1",
"summary": "Library for Cooey voice based BPMeter",
"description": "This is a library for using Cooey voice based BPMeter in any app.",
"homepage": "https://cooeydevelopers.visualstudio.com/IOS/_git/iOSVoiceBPMLib",
"license": {
"type": "MI... | 276 |
1,130 | <gh_stars>1000+
from bokeh.models import Div
from panel.layout import Card
from panel.models import Card as CardModel
from panel.pane import HTML
def test_card_model_cache_cleanup(document, comm):
html = HTML()
l = Card(header=html)
model = l.get_root(document, comm)
ref = model.ref['id']
a... | 691 |
555 | /* Copyright 2021 Stanford University
*
* 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... | 8,007 |
5,169 | {
"name": "PushApps",
"version": "1.0.0",
"summary": "PushApps - the first Push Notification Enrichment Platform",
"description": "PushApps SDK enables you to send enriched push notifications via the PushApps platform.",
"homepage": "https://www.pushapps.mobi",
"license": "MIT",
"authors": {
"PushApps... | 211 |
7,113 | /*
* Copyright (C) 2010-2101 Alibaba Group Holding Limited.
*
* 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 ... | 1,675 |
872 | <filename>src/layer/insanity_pooling_layer-inl.hpp
#ifndef INSANITY_POOLING_LAYER_INL_HPP
#define INSANITY_POOLING_LAYER_INL_HPP
#pragma once
#include <mshadow/tensor.h>
#include "./layer.h"
#include "./param.h"
namespace mshadow {
namespace expr {
template<typename Reducer, typename SrcExp, typename MaskExp, typena... | 6,287 |
348 | <filename>docs/data/leg-t2/003/00301090.json
{"nom":"Couzon","circ":"1ère circonscription","dpt":"Allier","inscrits":232,"abs":124,"votants":108,"blancs":6,"nuls":12,"exp":90,"res":[{"nuance":"COM","nom":"<NAME>","voix":46},{"nuance":"REM","nom":"<NAME>","voix":44}]} | 107 |
8,805 | // boost/detail/lightweight_test_reporter.hpp ----------------------------------------//
// Copyright <NAME> 2014
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
//-----------------------------------------------------------------------------------... | 1,230 |
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... | 1,462 |
5,169 | {
"name": "ExtResponderEvent",
"version": "0.0.1",
"summary": "Deliver event via responder chain",
"homepage": "https://github.com/Pn-X/ExtResponderEvent",
"license": "MIT",
"authors": {
"pn-x": "<EMAIL>"
},
"source": {
"git": "https://github.com/Pn-X/ExtResponderEvent.git",
"tag": "0.0.1"
... | 222 |
807 | <filename>djangoql/compat.py
import sys
PY2 = sys.version_info.major == 2
if PY2:
binary_type = str
text_type = unicode # noqa: F821
else:
binary_type = bytes
text_type = str
| 85 |
310 | {
"name": "ReadyNAS Pro",
"description": "A network backup/storage solution.",
"url": "https://www.readynas.com/?p=1498"
} | 46 |
956 | /*
<NAME>
Cisco Systems, Inc.
*/
/*
Copyright (c) 2016-2016 Cisco Systems, 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 r... | 902 |
680 | <gh_stars>100-1000
/* Copyright 2016 The TensorFlow 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 ... | 2,472 |
5,594 | <reponame>kit-lee/tale<gh_stars>1000+
package com.tale.controller.admin;
import com.blade.ioc.annotation.Inject;
import com.blade.kit.EncryptKit;
import com.blade.kit.StringKit;
import com.blade.mvc.annotation.Param;
import com.blade.mvc.annotation.Path;
import com.blade.mvc.annotation.PostRoute;
import com.blade.mvc.... | 956 |
335 | {
"word": "Less",
"definitions": [
"To a smaller extent; not so much.",
"Far from; certainly not."
],
"parts-of-speech": "Adverb"
} | 75 |
683 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.smoketest.matrix;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest... | 223 |
824 | import torch
import typing as _typ
import torch.nn as nn
import torch.nn.functional as F
from . import register_nas_space
from .base import BaseSpace, map_nn
from ...model import BaseModel
from .operation import act_map
from torch.nn import Parameter
from torch_geometric.nn.inits import glorot, zeros
from torch_geome... | 13,796 |
26,932 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# standard modules
from metasploit import module
import logging
import string
import random
# extra modules
dependency1_missing = False
dependency2_missing = False
try:
import socket
except ImportError:
dependency1_missing = True
try:
import paramiko
except I... | 1,318 |
575 | <reponame>jason-fox/Fast-RTPS
// Copyright 2016 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 obtain a copy of the License at
//
// http://www.apache.org/licens... | 4,884 |
2,338 | <filename>compiler-rt/lib/gwp_asan/tests/compression.cpp<gh_stars>1000+
//===-- compression.cpp -----------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identi... | 4,157 |
861 | package cn.springcloud.gray.mock;
import cn.springcloud.gray.choose.ChooseGroup;
import cn.springcloud.gray.model.HandleActionDefinition;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
/**
* @author sal... | 544 |
352 | <filename>src/main/java/helloworld/behavioral/strategy/HelloWorldStrategy.java<gh_stars>100-1000
package helloworld.behavioral.strategy;
import helloworld.HelloWorld;
/**
* @author <EMAIL>
*/
public interface HelloWorldStrategy extends HelloWorld {
}
| 82 |
3,799 | /*
* Copyright 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/licenses/LICENSE-2.0
*
* Unless required by applica... | 713 |
764 | {"symbol": "YUP","address": "0xD9A12Cde03a86E800496469858De8581D3A5353d","overview":{"en": ""},"email": "<EMAIL>","website": "crowdholding.com","state": "NORMAL","links": {"blog": "","twitter": "https://twitter.com/crowdholding","telegram": "https://t.me/Crowdholding","github": ""}} | 106 |
412 | <gh_stars>100-1000
int main() {
int x = 0;
x = ++x + x;
// depending on the order of evaluation, the following may fail
assert(x == 2);
return 0;
}
| 59 |
372 | /*
*
* (c) Copyright 1989 OPEN SOFTWARE FOUNDATION, INC.
* (c) Copyright 1989 HEWLETT-PACKARD COMPANY
* (c) Copyright 1989 DIGITAL EQUIPMENT CORPORATION
* To anyone who acknowledges that this file is provided "AS IS"
* without any express or implied warranty:
* permission to use, copy, modify, a... | 7,165 |
5,964 | // Copyright 2014 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 GIN_MODULES_MODULE_REGISTRY_OBSERVER_H_
#define GIN_MODULES_MODULE_REGISTRY_OBSERVER_H_
#include <string>
#include <vector>
#include "gin/gin_ex... | 287 |
465 | /*
* Tencent is pleased to support the open source community by making wwsearch
* available.
*
* Copyright (C) 2018-present Tencent. 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... | 608 |
2,699 | {
"title": "Lists",
"summary": "All of these list patterns require no extra classes and style the correct semantic element.",
"context": {
"items": [
"A standard ordered list",
"Praesent commodo cursus magna, vel scelerisque nisl consectetur et.",
"Pellentesque Condimentum Dapibus Cursus Sit... | 122 |
384 | <reponame>fengjixuchui/exploits-15
#include <stdio.h>
#include <stdlib.h>
#include <winsock.h>
#define READ_PIPE_BUFFER_SIZE 32
#define READ_PIPE_LOOP_SLEEP_TIME 5
#ifdef __cplusplus
#define EXTERN extern "C"
#else
#define EXTERN
#endif
#ifdef _MSC_VER
#define EXPORT __declspec(dllexport)
#endi... | 443 |
335 | {
"word": "Cell",
"definitions": [
"A small room in which a prisoner is locked up or in which a monk or nun sleeps.",
"A small monastery or nunnery dependent on a larger one.",
"The smallest structural and functional unit of an organism, which is typically microscopic and consists of cyt... | 285 |
388 | // -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.util.stream.Stream;
import javax.swing.*;
public final class MainPanel extends JPanel {
private MainPanel() {
super(new BorderLayout());
JTextArea log = new JTextArea();
JFi... | 1,331 |
1,369 | <gh_stars>1000+
{
"name": "DreamFactory API Management Platform",
"description": "DreamFactory is a popular iPaaS solution used by thousands of companies around the globe.",
"repository": "https://github.com/dreamfactorysoftware/dreamfactory",
"logo": "https://github.com/dreamfactorysoftware/dreamfactory/raw/ma... | 469 |
945 | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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... | 1,871 |
337 | <reponame>KamilKurde/AmazMod
package com.amazmod.service.springboard.settings;
import android.graphics.drawable.Drawable;
import android.widget.CompoundButton;
import com.amazmod.service.springboard.SpringboardItem;
/**
* Created by Kieron on 12/02/2018.
*/
public class SpringboardSetting extends SwitchSetting {
... | 287 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-7ggp-fc92-x5m6",
"modified": "2022-01-12T00:02:08Z",
"published": "2021-12-31T00:00:22Z",
"aliases": [
"CVE-2021-20171"
],
"details": "Netgear RAX43 version 172.16.58.3 stores sensitive information in plaintext. ... | 389 |
696 | <reponame>hwang-pku/Strata
/*
* Copyright (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.pricer.capfloor;
import static com.opengamma.strata.basics.currency.Currency.EUR;
import static com.opengamma.strata.basics.da... | 3,611 |
575 | <filename>third_party/blink/renderer/core/workers/worker_backing_thread.h
// 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.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_WORKERS_WORKER_BACKING_THREAD_H_
#define... | 744 |
303 | <gh_stars>100-1000
#pragma once
#include "common/luax.h"
#include "objects/random/randomgenerator.h"
namespace Wrap_RandomGenerator
{
int GetSeed(lua_State* L);
int GetState(lua_State* L);
int _Random(lua_State* L);
int RandomNormal(lua_State* L);
int SetSeed(lua_State* L);
int SetState(l... | 210 |
879 | <reponame>LEONAD486/zstack
package org.zstack.sdk;
public enum MdevDeviceStatus {
Active,
Attached,
Reserved,
}
| 48 |
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.
#ifndef COMPONENTS_SEND_TAB_TO_SELF_SEND_TAB_TO_SELF_MODEL_OBSERVER_H_
#define COMPONENTS_SEND_TAB_TO_SELF_SEND_TAB_TO_SELF_MODEL_OBSERVER_H_
#include <s... | 612 |
372 | /*
* 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 distributed under t... | 1,410 |
5,821 | <gh_stars>1000+
package io.javalin.examples;
import io.javalin.Javalin;
import io.javalin.plugin.graphql.GraphQLOptions;
import io.javalin.plugin.graphql.GraphQLPlugin;
public class HelloWorldGraphQL {
public static void main(String[] args) {
GraphQLOptions graphQLOptions = new GraphQLOptions("/graphql",... | 228 |
911 | default_app_config = 'jobs.apps.JobsAppConfig'
| 17 |
965 | <filename>docs/parallel/concrt/codesnippet/CPP/walkthrough-removing-work-from-a-user-interface-thread_13.cpp
void CChildView::OnPaint()
{
CPaintDC dc(this); // device context for painting
// If the unbounded_buffer object contains a Bitmap object,
// draw the image to the client area.
BitmapPtr pBitmap;
... | 338 |
678 | <gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices
*/
#import <PhotoLibraryServices/PhotoLibraryServices-Structs.h>
#import <PhotoLibraryServices/PLFilteredShuffledAlbum.h>
#import <PhotoLibrarySe... | 467 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-x97c-px3m-v4g2",
"modified": "2022-05-13T01:49:11Z",
"published": "2022-05-13T01:49:11Z",
"aliases": [
"CVE-2018-11319"
],
"details": "Syntastic (aka vim-syntastic) through 3.9.0 does not properly handle searches for configuration files (it searches the current... | 710 |
1,197 | <gh_stars>1000+
from setuptools import setup
from setuptools.command.develop import develop as BaseDevelop
from setuptools.command.sdist import sdist as BaseSDist
try:
from wheel.bdist_wheel import bdist_wheel as BaseBDistWheel
except ImportError:
BaseBDistWheel = None
class CompileCatalogMixin:
"""Compi... | 472 |
5,843 | import unittest
from flask import Flask, Blueprint, request
try:
from mock import Mock
except:
# python3
from unittest.mock import Mock
import flask
import flask_restful
import flask_restful.fields
#noinspection PyUnresolvedReferences
from nose.tools import assert_true, assert_false # you need it for tests... | 3,455 |
344 | #ifndef QPBO_LazyElim_h_
#define QPBO_LazyElim_h_
// Solves a Quadratic Pseudo Boolean Optimization problem defined over a
// four-connect lattice using the LazyElimination algorithm.
#include "QPBO_Generic.h"
class LazyElimQPBO : public GenericQPBO
{
public:
// See QPBO_Generic.h for details about thes... | 259 |
8,772 | <filename>api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/mfa/gauth/DynamoDbGoogleAuthenticatorMultifactorProperties.java
package org.apereo.cas.configuration.model.support.mfa.gauth;
import org.apereo.cas.configuration.model.support.dynamodb.AbstractDynamoDbPropert... | 432 |
1,338 | <reponame>Kirishikesan/haiku
// ****************************************************************************
//
// CEchoGalsVmixer.cpp
//
// CEchoGalsVmixer is used to add virtual output mixing to the base
// CEchoGals class.
//
// Set editor tabs to 3 for your viewing pleasure.
//
// ----------------------------... | 1,358 |
1,305 | /*
* Copyright (c) 1996, 2003, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.lang;
/**
* Signals that a method has been invoked at an illegal or
* inappropriate tim... | 950 |
12,278 | <gh_stars>1000+
// Copyright (C) 2016-2018 <NAME>
//
// 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)
//[ tarray
#include <boost/yap/algorithm.hpp>
#include <boost/yap/print.hpp>
#include <array>
#include <iostre... | 2,246 |
348 | {"nom":"Chézery-Forens","circ":"3ème circonscription","dpt":"Ain","inscrits":331,"abs":201,"votants":130,"blancs":15,"nuls":5,"exp":110,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":55},{"nuance":"LR","nom":"Mme <NAME>","voix":55}]} | 96 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.security.models;
import com.azure.resourcemanager.security.fluent.models.RulesResultsInner;
import java.util.List;
/** An immut... | 229 |
1,132 | #include "gb-include.h"
#include "Url.h"
#include "Domains.h"
#include "Errno.h"
#include "HashTable.h"
#include "Speller.h"
#include "Punycode.h"
#include "Unicode.h"
static void print_string ( char *s , int32_t len );
void Url::reset() {
m_scheme = NULL;
m_host = NULL;
m_path = NULL;
m_filename... | 36,515 |
2,753 | <gh_stars>1000+
#!/usr/bin/env python
import shogun as sg
from tools.load import LoadMatrix
lm=LoadMatrix()
traindat = lm.load_dna('../data/fm_train_dna.dat')
testdat = lm.load_dna('../data/fm_test_dna.dat')
parameter_list = [[traindat,testdat,5,5,1],[traindat,testdat,5,3,2]]
def kernel_simple_locality_improved_strin... | 379 |
1,275 | <gh_stars>1000+
# Copyright (c) ZenML GmbH 2020. 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 req... | 1,170 |
14,668 | <reponame>zealoussnow/chromium<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.
#ifndef CHROME_BROWSER_SHARING_CLICK_TO_CALL_PHONE_NUMBER_REGEX_H_
#define CHROME_BROWSER_SHARING_CLICK_TO_C... | 242 |
3,212 | <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... | 1,224 |
1,657 | <filename>autoPyTorch/utils/benchmarking/benchmark_pipeline/set_ensemble_config.py
from hpbandster.core.result import logged_results_to_HBS_result
from autoPyTorch.pipeline.base.pipeline_node import PipelineNode
from autoPyTorch.utils.config.config_option import ConfigOption, to_bool
from autoPyTorch.utils.benchmarking... | 699 |
302 | <gh_stars>100-1000
/*
* Copyright (C) 2015 RECRUIT LIFESTYLE CO., LTD.
*
* 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 ... | 823 |
1,144 | <filename>backend/de.metas.swat/de.metas.swat.base/src/main/java/de/metas/inoutcandidate/api/impl/InOutCandidateBL.java
package de.metas.inoutcandidate.api.impl;
/*
* #%L
* de.metas.swat.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it un... | 1,179 |
5,169 | {
"name": "SwiftElegantDropdownMenu",
"version": "0.1.4",
"summary": "An elegant dropdown menu for Swift, that's easy to use.",
"description": "This component provides an easy, configurable dropdown menu with the ability to place it anywhere. It comes with a simple item selected callback and a variety of config... | 366 |
432 | <gh_stars>100-1000
[
{
"slug": "grafana",
"name": "Grafana",
"description": "Graphite and InfluxDB dashboard and graph composer",
"url": "http://grafana.org/",
"tags": [
"linux",
"open-source",
"monitoring",
"visualization"
]
}
]
| 133 |
332 | <reponame>Geertiebear/java-cef
// Copyright (c) 2014 The Chromium Embedded Framework 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.cef.handler;
import org.cef.browser.CefBrowser;
import org.cef.browser.CefFrame;
/**
... | 848 |
1,162 | <filename>digdag-cli/src/main/java/io/digdag/cli/Command.java
package io.digdag.cli;
import com.beust.jcommander.DynamicParameter;
import com.beust.jcommander.Parameter;
import com.google.common.collect.ImmutableList;
import com.google.inject.Inject;
import io.digdag.core.Environment;
import io.digdag.client.Version;
... | 1,637 |
4,538 | src = Split('''
i2c_test.c
''')
component = aos_component('i2c_test', src)
component.add_cflags('-Wall')
component.add_cflags('-Werror')
| 62 |
1,755 | #!/usr/bin/env python
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# This test reproduces an issue with vtkBandedPolyDataContourFilter
# showing anomalous spikes from edges at which the difference between
# end point scalar values is in the order of the internal tolerance
# valu... | 1,570 |
2,030 | import unittest
from unittest.mock import Mock
from kaggle_gcp import KaggleKernelCredentials, init_ucaip
from test.support import EnvironmentVarGuard
def _make_credentials():
import google.auth.credentials
return Mock(spec=google.auth.credentials.Credentials)
class TestUcaip(unittest.TestCase):
def te... | 364 |
1,178 | package kg.ash.javavi.readers.source;
import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.ImportDeclaration;
import com.github.javaparser.ast.Node;
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.body.ConstructorDeclaration;
import com.... | 4,599 |
605 | <reponame>LaudateCorpus1/llvm-project<gh_stars>100-1000
// RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +sve -fopenmp -x c -emit-llvm %s -o - -femit-all-decls | FileCheck %s
// RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +sve -fopenmp-simd -x c -emit-llvm %s -o - -femit-all-decls | Fil... | 1,473 |
10,225 | <filename>independent-projects/bootstrap/maven-resolver/src/main/java/io/quarkus/bootstrap/resolver/maven/BootstrapWagonConfigurator.java
package io.quarkus.bootstrap.resolver.maven;
import org.apache.maven.wagon.Wagon;
import org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter;
i... | 677 |
1,171 | #
# Copyright (c) 2020 Idiap Research Institute, http://www.idiap.ch/
# Written by <NAME> <<EMAIL>>
#
"""Implement local context attention."""
from math import sqrt
import torch
from torch.nn import Module, Dropout
from torch.nn import functional as F
from ..attention_registry import AttentionRegistry, Optional, In... | 1,561 |
5,937 | <reponame>jonfortescue/wpf<gh_stars>1000+
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "Win32Inc.hpp"
#include "src\PrintQueue.cpp"
#include "s... | 729 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.