max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
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 COMPONENTS_MEMORY_PRESSURE_MEMORY_PRESSURE_STATS_COLLECTOR_H_
#define COMPONENTS_MEMORY_PRESSURE_MEMORY_PRESSURE_STATS_COLLECTOR_H_
#include "bas... | 1,276 |
515 | /*
* ctkEventDispatcherTest.cpp
* ctkEventBusTest
*
* Created by <NAME> on 22/09/09.
* Copyright 2009 B3C. All rights reserved.
*
* See Licence at: http://tiny.cc/QXJ4D
*
*/
#include "ctkTestSuite.h"
#include <ctkEventBusManager.h>
using namespace ctkEventBus;
//----------------------------------------... | 3,365 |
3,711 | /**
* xrdp: A Remote Desktop Protocol server.
*
* Copyright (C) <NAME> 2004-2014
*
* 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
*... | 15,026 |
2,792 | // Copyright 2021 Sony Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 1,303 |
304 | <reponame>fduguet-nv/cunumeric
# Copyright 2021 NVIDIA Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | 2,748 |
320 | # -*- coding: UTF-8 -*-
from lib.captcha.image import gen_randoms, gen_captcha
from basic import BasicCtrl
class CheckCtrl(BasicCtrl):
def get(self, _ext = '.jpeg'):
text = gen_randoms().strip()
time = self.stime()
self.set_secure_cookie('_code', self.get_escaper().json_encode(\
... | 310 |
4,639 | <reponame>QueoLda/django-oscar<gh_stars>1000+
from django.test import RequestFactory, TestCase
from oscar.templatetags.display_tags import get_parameters
class DisplayTagsTestCase(TestCase):
def test_get_parameters_strips_except_field(self):
ctx = {'request': RequestFactory().get('/?foo=bar&bar=baz')}
... | 296 |
746 |
package org.protege.osgi.framework;
import org.hamcrest.Matchers;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
@RunWith(org.mockito.runners.MockitoJUnitRunner.class)
public class Symbolic... | 658 |
8,969 | // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include <stdint.h>
uint8_t Function1Uint8(uint8_t x) { return x + 42; }
uint16_t Function1Uint16(uin... | 3,399 |
636 | <reponame>hadoop835/fluent-mybatis
package cn.org.atool.fluent.mybatis.base.crud;
import cn.org.atool.fluent.mybatis.base.IEntity;
import java.util.function.Supplier;
/**
* 设置Entity, Query, Updater默认值
*
* @author darui.wu
*/
@SuppressWarnings({"rawtypes", "unused"})
public interface IDefaultSetter {
/**
... | 618 |
14,668 | // 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.
package org.chromium.testing.local;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.runner.Descrip... | 1,360 |
4,901 | <reponame>VSaliy/j2objc
/*
* Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
... | 1,780 |
3,889 | package com.airbnb.mvrx.mocking;
import com.google.auto.value.AutoValue;
@AutoValue
abstract class AutoValueClass {
abstract String name();
abstract int numberOfLegs();
static Builder builder() {
return new AutoValue_AutoValueClass.Builder();
}
@AutoValue.Builder
abstract static cla... | 167 |
1,162 | <reponame>civitaspo/digdag
package io.digdag.spi;
import io.digdag.client.DigdagClient;
public interface DigdagClientConfigurator
{
/**
* Decorate and/or transform a {@link DigdagClient.Builder} with some configuration. May return the passed in builder instance or another instance entirely.
*/
Digda... | 128 |
516 | {
"sharpRepository": {
"repositories": {
"default": "azureBlob",
"azureBlob": {
"factory": "SharpRepository.AzureBlobRepository.AzureBlobConfigRepositoryFactory, SharpRepository.AzureBlobRepository",
"connectionString": "connectionStringOrName",
"container": "containerName",
... | 160 |
771 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma once
//-----------------------------------------------------------------------------
// IV8Entity
//-----------------------------------------------------------------------------
struct IV8Entity
{
virtual StdS... | 81 |
1,006 | /************************************************************************************
* arch/x86_64/src/intel64/intel64.h
*
* 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 c... | 1,250 |
310 | {
"name": "Paperless",
"description": "Software for organising digital receipts and documents.",
"url": "https://marinersoftware.com/product/paperless/"
}
| 47 |
2,494 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
... | 712 |
1,883 | <gh_stars>1000+
import asyncio
from sanic import Sanic, response
from sanic.config import Config
from sanic.exceptions import RequestTimeout
Config.REQUEST_TIMEOUT = 1
app = Sanic("Example")
@app.route("/")
async def test(request):
await asyncio.sleep(3)
return response.text("Hello, world!")
@app.excepti... | 159 |
395 | <gh_stars>100-1000
/*
* MessagePack for Ruby
*
* Copyright (C) 2008-2015 <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/LIC... | 351 |
1,007 | <reponame>AkshayJainG/veles
from .reload import xreload
| 24 |
3,269 | /**
* \file
* \author <NAME>
* \author <NAME>
* \author <NAME>
* \date 2010-2014
* \copyright BSD 3-Clause
*
* statusbar -- a C class (by convention) for displaying indefinite progress
* on the command line (to stderr).
*/
#ifndef STATUSBAR_H
#define STATUSBAR_H
#include <time.h>
#include <stdio.h>
#include <stdlib.h... | 453 |
1,175 | <reponame>amoniaka-knabino/Crypton<gh_stars>1000+
#!/usr/bin/env python2.7
from Crypto.Util.number import bytes_to_long, inverse, long_to_bytes
from Crypto.Random.random import randint
class PublicKey:
def __init__(self, h, p, g, q):
self.h = h
self.p = p
self.g = g
self.q = q
class PrivateKey:
def __init_... | 910 |
577 | /*
* 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 agreed to... | 2,392 |
1,988 | <reponame>clayne/botan<filename>src/lib/kdf/kdf1_iso18033/kdf1_iso18033.cpp
/*
* KDF1 from ISO 18033-2
* (C) 2016 <NAME>
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/internal/kdf1_iso18033.h>
#include <botan/exceptn.h>
namespace Botan {
void KDF1_18033::kdf(uint8_t key[... | 553 |
1,444 |
package mage.cards.c;
import java.util.UUID;
import mage.abilities.effects.common.ReturnToHandTargetEffect;
import mage.abilities.keyword.AwakenAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.target.common.TargetCreaturePermanent;
/**
*
* @author Leve... | 375 |
4,375 | <gh_stars>1000+
package com.codingapi.txlcn.tm.reporter;
import com.codingapi.txlcn.protocol.ProtocolServer;
import com.codingapi.txlcn.protocol.Protocoler;
import com.codingapi.txlcn.protocol.message.Connection;
import com.codingapi.txlcn.protocol.message.Message;
import com.codingapi.txlcn.protocol.message.separate.... | 1,867 |
6,526 | <reponame>liubangchen/seastar<filename>tests/unit/uname_test.cc
/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use... | 1,400 |
488 | #
# Author: <NAME>
#
# Copyright (c) 2018 Adobe Systems Incorporated. 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
#
# U... | 2,945 |
404 | {
"name": "mParticlePersonalizeLambda",
"version": "1.0.0",
"description": "",
"main": "mparticle-personalize.js",
"dependencies": {
"mparticle": "*",
"axios": "^0.21.1"
}
}
| 89 |
1,742 | <reponame>UCD4IDS/sage<gh_stars>1000+
/** @file expair.h
*
* Definition of expression pairs (building blocks of expairseq). */
/*
* GiNaC Copyright (C) 1999-2008 <NAME> University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General P... | 1,354 |
3,645 | <reponame>huyu0415/FFmpeg
/*
* RTSP definitions
* copyright (c) 2002 <NAME>
* copyright (c) 2014 Samsung Electronics. All rights reserved.
* @Author: <NAME> <<EMAIL>>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser G... | 2,958 |
3,673 | <reponame>dendisuhubdy/IncludeOS
#pragma once
#ifndef NET_BUFFER_STORE_HPP
#define NET_BUFFER_STORE_HPP
#include <common>
#include <stdexcept>
#include <vector>
#include <smp>
namespace net
{
/**
* Network buffer storage for uniformly sized buffers.
*
* @note : The buffer store is intended to be used by P... | 968 |
346 | <reponame>nsbrajapaksha/android-graphics-demo<gh_stars>100-1000
package com.sqisland.android.graphics_demo;
import android.app.Activity;
import android.graphics.Canvas;
import android.graphics.ComposePathEffect;
import android.graphics.CornerPathEffect;
import android.graphics.DashPathEffect;
import android.graphics.P... | 1,701 |
538 | // Copyright 2014 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
package com.google.u2f.server.messages;
import java.util.Objects;
public class SignResponse {
... | 518 |
631 | package org.javalite.logging;
import org.apache.logging.log4j.core.Filter;
import org.apache.logging.log4j.core.Layout;
import org.apache.logging.log4j.core.LogEvent;
import org.apache.logging.log4j.core.appender.AbstractAppender;
import org.apache.logging.log4j.core.config.plugins.Plugin;
import org.apache.logging.l... | 418 |
335 | {
"word": "Royal",
"definitions": [
"Having the status of a king or queen or a member of their family.",
"Belonging to, carried out, or exercised by a king or queen.",
"In the service or under the patronage of a king or queen.",
"Of a quality or size suitable for a king or queen;... | 154 |
324 | /*
* 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 ... | 1,441 |
5,250 | <reponame>jiandiao/flowable-engine
/* 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 t... | 850 |
488 | <reponame>rpatil524/Web-Karma
/*******************************************************************************
* Copyright 2012 University of Southern California
*
* 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 ... | 1,353 |
14,668 | // 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_UI_WEBUI_CHROMEOS_CELLULAR_SETUP_CELLULAR_SETUP_LOCALIZED_STRINGS_PROVIDER_H_
#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_CELLULAR_SET... | 421 |
924 | <reponame>ItsNickBarry/npm-stat.com<gh_stars>100-1000
/*
* This file is generated by jOOQ.
*/
package de.vorb.npmstat.persistence.jooq.tables.pojos;
import java.io.Serializable;
import javax.annotation.Generated;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
... | 1,749 |
507 | //
// Copyright 2016 Pixar
//
// 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 wri... | 832 |
434 | /*
* Copyright 2020 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" file... | 607 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-j9p8-vp8h-7qgg",
"modified": "2022-05-01T18:15:24Z",
"published": "2022-05-01T18:15:24Z",
"aliases": [
"CVE-2007-3603"
],
"details": "SQL injection vulnerability in the dashboard (include/utils/SearchUtils.php) i... | 587 |
937 | <reponame>shisheng-1/cyclops<gh_stars>100-1000
package com.oath.cyclops.closures.immutable;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import java.... | 2,100 |
462 | package com.ppdai.infrastructure.ui.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.we... | 322 |
782 | <reponame>VickyZengg/MediaSDK
// Copyright (c) 2017-2020 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, including without limitation the rights
/... | 981 |
2,269 | <reponame>Gizallina898/nar
/*
* Copyright 2019. 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 ... | 307 |
1,583 | from .telenium_process import TeleniumTestProcess
from .common import skip_screen_checks
from .common import ordered
class AllMailMessage(TeleniumTestProcess):
"""AllMail Screen Functionality Testing"""
@skip_screen_checks
@ordered
def test_show_allmail_list(self):
"""Show All Messages on Mai... | 746 |
1,541 | package com.bwssystems.HABridge.plugins.broadlink;
import java.io.IOException;
import java.net.DatagramPacket;
import com.bwssystems.HABridge.util.HexLibrary;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.github.mob41.blapi.SP2Device;
import com.github.mob41.blapi.mac.Mac;
import com.github.mo... | 311 |
32,467 | #ifndef JISX0208_H
#define JISX0208_H
/* This file was derived from "src/VF_Ftype.c" in VFlib2-2.24.2
by Dr. Kakugawa */
/* JIS -> Unicode mapping table */
static unsigned short UnicodeTbl[][94] = {
{ /* category 01 */
0x0000, 0x3001, 0x3002, 0xFF0C, 0xFF0E, 0x30FB, 0xFF1A, 0xFF1B,
0xFF1F, 0xFF01, 0x309B, 0x309C, 0... | 48,212 |
479 | <reponame>jeremyvdw/aurora<filename>commons/src/main/java/org/apache/aurora/common/stats/SlidingStats.java
/**
* 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... | 1,785 |
872 | <gh_stars>100-1000
"""
Given a non negative integer number num. For every numbers i in the range 0 <= i <= num calculate the number of 1's in
their binary representation and return them as an array.
Example:
For num = 5 you should return [0,1,1,2,1,2].
Follow up:
It is very easy to come up with a solution with run t... | 531 |
2,151 | # merged into mock.py in Mock 0.7
| 12 |
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.
#ifndef COMPONENTS_PERFORMANCE_MANAGER_PUBLIC_RENDER_PROCESS_HOST_ID_H_
#define COMPONENTS_PERFORMANCE_MANAGER_PUBLIC_RENDER_PROCESS_HOST_ID_H_
#include ... | 484 |
777 | <filename>chrome/browser/chromeos/system/timezone_resolver_manager.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 CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_RESOLVER_MANAGER_H_
#define CHROME_BR... | 557 |
1,418 | <reponame>ritwik12/aima-java
package aima.test.core.unit.logic.fol.inference;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import aima.core.logic.fol.domain.FOLDomain;
import aima.core.logic.fol.inference.Demodulation;
import a... | 2,297 |
815 | <filename>Qt/ApplicationComponents/pqUndoRedoBehavior.cxx
/*=========================================================================
Program: ParaView
Module: pqUndoRedoBehavior.cxx
Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can r... | 879 |
611 | package com.martin.ads.vrlib.filters.advanced.mx;
import android.content.Context;
import android.opengl.GLES20;
import com.martin.ads.vrlib.filters.base.SimpleFragmentShaderFilter;
import com.martin.ads.vrlib.utils.TextureUtils;
/**
* Created by Ads on 2017/2/1.
* MxFaceBeautyFilter (Mx美颜)
*/
public class MxFac... | 377 |
877 | from ward import test
@test("one is equal to itself")
def _():
assert 1 == 1
| 28 |
689 | <reponame>yichao0803/SparkCode
from multiprocessing import Pool
import os
def build_jar_files(dir):
'''
Function to build Scala and Java jars for the each relevant chapter
:param dir: top-level chapterX directory
:return:
'''
print(f"Building jars for {dir}")
if (dir == "chapter6"):
... | 296 |
1,252 | <gh_stars>1000+
/* This file is part of the Vc library. {{{
Copyright © 2010-2015 <NAME> <<EMAIL>>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
n... | 9,135 |
497 | <reponame>kingtaurus/vogl
/**************************************************************************
*
* Copyright 2013-2014 RAD Game Tools and Valve Software
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation fi... | 3,100 |
860 | <reponame>msgilligan/groovy-core
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache Licens... | 650 |
5,129 | <reponame>aimore-globality/unilm
import glob
import logging
import os
import random
import torch
from fairseq.data import FairseqDataset, data_utils
from natsort import natsorted
from PIL import Image
from tqdm import tqdm
logger = logging.getLogger(__name__)
def default_collater(target_dict, samples, dataset=None)... | 3,715 |
965 | <reponame>bobbrow/cpp-docs
#if _DEBUG
afxDump.DumpAsHex(115);
#endif | 34 |
2,151 | <reponame>zipated/src
// 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 COMPONENTS_ARC_CONNECTION_HOLDER_H_
#define COMPONENTS_ARC_CONNECTION_HOLDER_H_
#include <memory>
#include <string>
#includ... | 5,492 |
6,205 | import os
import pytest
from conans.model.manifest import FileTreeManifest
from conans.model.ref import ConanFileReference
from conans.test.assets.genconanfile import GenConanfile
from conans.test.utils.tools import TestClient
@pytest.mark.parametrize("relative_path", [False, True])
def test_basic(relative_path):
... | 1,072 |
2,322 | <gh_stars>1000+
GET_VENDORS_DATA = [
{
"id": "PZQ6AUS",
"type": "vendor",
"summary": "Amazon CloudWatch",
"self": "https://api.pagerduty.com/vendors/PZQ6AUS",
"name": "<NAME>",
"website_url": "https://aws.amazon.com/cloudwatch",
"logo_url": "https://s3.amazona... | 350 |
310 | {
"name": "Google Tag Manager",
"description": "A web tag management service.",
"url": "https://www.google.com/analytics/tag-manager/"
} | 46 |
372 | <reponame>kbore/pbis-open
/*
*
* (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:
* permissi... | 893 |
3,457 | <reponame>shareq2005/CarND-MPC-Project
#include <iostream>
#include <Eigen/Dense>
using namespace std;
using namespace Eigen;
int main()
{
MatrixXd A = MatrixXd::Random(100,100);
MatrixXd b = MatrixXd::Random(100,50);
MatrixXd x = A.fullPivLu().solve(b);
double relative_error = (A*x - b).norm() / b.norm()... | 162 |
1,251 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
#include "blingfire-compile_src_pch.h"
#include "FAConfig.h"
#include "FADfas2CommonNfa.h"
#include "FAFsmConst.h"
#include "FAUtils.h"
#include "FARSDfaA.h"
#include "FAException.h"
namespace BlingF... | 2,309 |
1,013 | """!
@brief CCORE Wrapper for TTSAS algorithm.
@authors <NAME> (<EMAIL>)
@date 2014-2020
@copyright BSD-3-Clause
"""
from ctypes import c_double, POINTER;
from pyclustering.core.wrapper import ccore_library;
from pyclustering.core.pyclustering_package import pyclustering_package, package_extractor, ... | 311 |
387 | /*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Version 2.0 (the "License"); you may not use this file exce... | 1,770 |
1,738 | <filename>dev/Gems/CloudGemLeaderboard/Code/AWS/ServiceAPI/CloudGemLeaderboardClientComponent.cpp
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License").... | 29,098 |
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.
#ifndef CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_LIFETIME_MANAGER_FACTORY_H_
#define CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_LIFETIME_M... | 562 |
773 | <filename>contrib/matrix_sso_helper.py
#!/usr/bin/env -S python3 -u
# Copyright 2019 The Matrix.org Foundation CIC
#
# 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,312 |
852 | <filename>Calibration/IsolatedParticles/test/python/proto_runStudyCaloResponseMC_cfg.py<gh_stars>100-1000
import FWCore.ParameterSet.Config as cms
process = cms.Process("StudyCaloResponse")
process.load("Calibration.IsolatedParticles.studyCaloResponse_cfi")
process.load('Configuration.StandardSequences.GeometryRecoDB... | 735 |
1,615 | /**
* Created by MomoLuaNative.
* Copyright (c) 2019, Momo Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
package com.immomo.luanative.codec.encode;
publi... | 111 |
927 | <reponame>himamis/constraintlayout<filename>desktop/ConstraintLayoutInspector/app/src/androidx/constraintLayout/desktop/ui/adapters/vg/VDGroup.java
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compli... | 353 |
1,531 | <filename>ngrinder-core/src/main/java/net/grinder/engine/controller/package-info.java<gh_stars>1000+
/**
* grinder controller engine extension.
*/
package net.grinder.engine.controller;
| 60 |
349 | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2017-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | 1,999 |
956 | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2019-2020 Intel Corporation
*/
#ifndef _IGC_LOGS_H_
#define _IGC_LOGS_H_
#include <rte_log.h>
#ifdef __cplusplus
extern "C" {
#endif
extern int igc_logtype_init;
extern int igc_logtype_driver;
#define PMD_INIT_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ##... | 519 |
537 | package com.netflix.suro;
import com.google.inject.AbstractModule;
import com.google.inject.multibindings.Multibinder;
import com.netflix.suro.input.RecordParser;
import com.netflix.suro.input.SuroInput;
import com.netflix.suro.routing.Filter;
import com.netflix.suro.sink.Sink;
import com.netflix.suro.sink.notice.Noti... | 1,238 |
1,229 | <filename>SampleApps/SenderDemo/ActionsList/DPLActionsViewController.h
#import <UIKit/UIKit.h>
@interface DPLActionsViewController : UITableViewController
@end
| 54 |
772 | <reponame>Hsy-Intel/fedlearner
# Copyright 2020 The FedLearner 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... | 1,315 |
988 | <reponame>AlexeyMochalov/firebird<gh_stars>100-1000
/*
* The contents of this file are subject to the Initial
* Developer's Public License Version 1.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.ibphoenix.com/main.n... | 992 |
400 | <reponame>tradeshift-zihe/ofdrw
package org.ofdrw.core.basicStructure.ofd.docInfo;
import org.dom4j.Element;
import org.ofdrw.core.Const;
import org.ofdrw.core.basicType.ST_Loc;
import org.ofdrw.core.OFDElement;
import java.time.LocalDate;
import java.util.UUID;
/**
* 文档元数据信息描述
*
* @author 权观宇
* @since 2019-09-2... | 4,680 |
435 | {
"description": "Not everybody has a chance to work on new project from scratch.\nEverybody has some ideas what to do for such a project so it'll be a\ngood one instead of legacy in a near future. During this talk I want to\nshare my experience and show what works for me. I'll start from project\nanalysis and end on... | 323 |
1,180 | /*
* Copyright(c) 2019 Intel Corporation
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at https://www.aomedia.org/license/soft... | 11,760 |
852 | <reponame>malbouis/cmssw
/*class HiggsValidation
*
* Class to fill dqm monitor elements from existing EDM file
*
*/
#include "Validation/EventGenerator/interface/HiggsValidation.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "CLHEP/Units/defs.h"
#include "CLHEP/Units/PhysicalConstants.h"
#in... | 3,413 |
1,253 | //Java implementation of SpecialStack
// Note : here we use Stack class for Stack implementation
import java.util.Stack;
/* A class that supports all the stack operations and one additional
operation getMin() that returns the minimum element from stack at
any time. This class inherits from the stack class and us... | 555 |
5,300 | <filename>frameworks/Java/ratpack/src/main/java/module/PgClientRepositoryModule.java
package module;
import com.google.inject.AbstractModule;
import com.google.inject.Provides;
import com.google.inject.Singleton;
import io.reactiverse.rxjava.pgclient.PgClient;
import models.JdbcRepository;
import models.PgClientReposi... | 213 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Moca-Croce","circ":"2ème circonscription","dpt":"Corse-du-Sud","inscrits":256,"abs":124,"votants":132,"blancs":1,"nuls":0,"exp":131,"res":[{"nuance":"REG","nom":"<NAME>","voix":53},{"nuance":"LR","nom":"<NAME>","voix":50},{"nuance":"REM","nom":"<NAME>","voix":23},{"nuanc... | 197 |
1,281 | import pexpect
import click
import shutil
import pathlib
import subprocess
import os
@click.group()
@click.argument('git_id')
@click.argument('output_dir')
@click.argument('username')
@click.argument('password')
@click.pass_context
def overleaf(ctx, git_id, output_dir, username, password):
ctx.ensure_object(dict)... | 1,651 |
704 | package com.netflix.governator.annotations;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Used to indicate that a constructor argument cannot be constructed concurrently.
* Use this in conjunction wit... | 188 |
480 | package org.apache.calcite.sql;
import java.util.List;
import org.apache.calcite.sql.parser.SqlParserPos;
import org.apache.calcite.util.Pair;
/**
* @author shicai.xsc 2021/3/5 13:08
* @desc
* @since 5.0.0.0
*/
public class SqlStartSlave extends SqlReplicationBase {
{
operator = new SqlStartSlaveOpe... | 366 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.