max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
3,755 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: MIT. See LICENSE
import frappe
import json
from email.utils import formataddr
from frappe.core.utils import get_parent_doc
from frappe.utils import (get_url, get_formatted_email, cint, list_to_str,
validate_email_address, split_emails, pa... | 2,473 |
775 | // This file is part of MicropolisJ.
// Copyright (C) 2013 <NAME>
// Portions Copyright (C) 1989-2007 Electronic Arts Inc.
//
// MicropolisJ is free software; you can redistribute it and/or modify
// it under the terms of the GNU GPLv3, with additional terms.
// See the README file, included in this distribution, for d... | 1,992 |
1,031 | /* Copyright (c) <2003-2016> <Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* includi... | 1,594 |
337 | import org.jetbrains.annotations.NotNull;
class J {
public static class Foo extends A {
public Foo(int i, @NotNull String s) {
}
}
} | 66 |
9,614 | <reponame>keshavashiya/react-native-ui-kitten<filename>src/showcases/app.json
{
"expo": {
"name": "UI Kitten Showcases",
"slug": "ui-kitten-showcases",
"description": "UI Kitten Documentation Showcases",
"privacy": "public",
"platforms": [
"web"
],
"version": "1.0.0",
"orientatio... | 214 |
599 | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 TH<NAME>, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in complianc... | 704 |
488 | <reponame>ouankou/rose
#if 1
void foobar1 ( int size, int array[*] );
void foobar1 ( int size, int array[size] )
{
}
#endif
#if 0
void foobar1 ( int size1, int array1[size1] );
void foobar2 ( int size, int array[size] );
#endif
#if 0
void foobar2 ( int size, int array[size] );
#endif
#if 1
// void foobar2 ( ... | 211 |
339 | <filename>convlab2/util/camrest/lexicalize.py
from copy import deepcopy
def delexicalize_da(da, requestable):
delexicalized_da = []
counter = {}
for intent, slot, value in da:
if intent in requestable:
v = '?'
else:
if slot == 'none':
v = 'none'
... | 1,104 |
1,235 | <reponame>cjdans5545/khaiii<gh_stars>1000+
/**
* @author Jamie (<EMAIL>)
* @copyright Copyright (C) 2018-, Kakao Corp. All rights reserved.
*/
#include "khaiii/Resource.hpp"
//////////////
// includes //
//////////////
#include <exception>
#include <memory>
#include "khaiii/Config.hpp"
#include "khaiii/Khaiii... | 638 |
9,402 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*++
Module Name:
miscpalapi.c
Abstract:
Implementation misc PAL APIs
Revision History:
--*/
#include "pal/palinternal.h"
#include "pal/dbgmsg.h"
#include "pal/fil... | 1,409 |
4,119 | from ignite.metrics.nlp.bleu import Bleu
from ignite.metrics.nlp.rouge import Rouge, RougeL, RougeN
__all__ = [
"Bleu",
"Rouge",
"RougeN",
"RougeL",
]
| 81 |
1,346 | <gh_stars>1000+
from plugin.models.core import db
from plugin.models.m_plex import *
from plugin.models.m_sync import *
from plugin.models.m_trakt import *
from plugin.models.account import Account
from plugin.models.action_history import ActionHistory
from plugin.models.action_queue import ActionQueue
from plugin.mo... | 199 |
1,403 | <reponame>beldenfox/LLGL
/*
* DisplayFlags.cpp
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2019 by <NAME>)
* See "LICENSE.txt" for license information.
*/
#include <LLGL/DisplayFlags.h>
#include "../Core/HelperMacros.h"
namespace LLGL
{
/* ----- Operators ----- */
LLGL_EXPORT bool operat... | 669 |
9,953 | #
# This file is part of pyasn1-modules software.
#
# Copyright (c) 2005-2019, <NAME> <<EMAIL>>
# License: http://snmplabs.com/pyasn1/license.html
#
# OCSP request/response syntax
#
# Derived from a minimal OCSP library (RFC2560) code written by
# <NAME> <<EMAIL>>
# Copyright: Ancitel, S.p.a, Rome, Italy
# License: BS... | 3,334 |
460 | <gh_stars>100-1000
// Copyright 2012 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
//
// Un... | 729 |
1,909 | package org.knowm.xchange.coinbasepro.dto.account;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
public class CoinbaseProWithdrawFundsRequest {
public final @JsonProperty("amount") BigDecimal amount;
public final @JsonProperty("currency") String currency;
public final @JsonP... | 317 |
3,655 | <filename>packages/now-python/test/fixtures/14-unicode-handler/index.py<gh_stars>1000+
from http.server import BaseHTTPRequestHandler
import json
class handler(BaseHTTPRequestHandler):
def do_POST(self):
post_body = json.loads(self.rfile.read(int(self.headers['content-length'])).decode('utf-8'))
n... | 326 |
2,504 | #pragma once
namespace RandomNumberService
{
[Windows::Foundation::Metadata::WebHostHidden]
public ref class RandomNumberGeneratorTask sealed : Windows::ApplicationModel::Background::IBackgroundTask
{
public:
virtual void Run(Windows::ApplicationModel::Background::IBackgroundTaskInstan... | 159 |
2,151 | // Copyright 2016 The SwiftShader 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 b... | 7,622 |
557 | #include "DataStructures.h"
// helper function to scaffold empty tensor
tensor makeTensor(int state_count, int action_count) {
tensor t;
t.resize(state_count);
for (int i = 0; i < state_count; ++i) {
t[i].resize(action_count);
for (int j = 0; j < action_count; ++j) {
t[i][j].resize(state_count);
... | 144 |
1,550 | <reponame>ATikhonov2/leo-editor
#@+leo-ver=5-thin
#@+node:ekr.20170428084207.285: * @file ../external/npyscreen/fmFormWithMenus.py
#!/usr/bin/env python
# encoding: utf-8
#@+others
#@+node:ekr.20170428084207.286: ** Declarations
import curses
from . import fmForm
from . import fmActionForm
from . import fmActionFormV2
... | 2,018 |
2,201 | <gh_stars>1000+
"""
Copyright (c) 2018-2022 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/licenses/LICENSE-2.0
Unless required by applicable law or ... | 7,266 |
14,668 | <gh_stars>1000+
# 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.
from page_sets.login_helpers import login_utils
def LoginDesktopAccount(action_runner, credential,
credentials_path=login_... | 408 |
765 | //===-- ThreadSafeSTLVector.h ------------------------------------*- 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-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------------------... | 686 |
1,755 | """
A vtkTkImageViewerWidget for python, which is based on the
vtkTkImageWindowWidget.
Specify double=1 to get a double-buffered window.
Created by <NAME>, Nov 1999
"""
from __future__ import absolute_import
import math, os, sys
from vtkmodules.vtkCommonExecutionModel import vtkStreamingDemandDrivenPipeline
from vtk... | 5,251 |
2,637 | <filename>vendors/nordic/nRF5_SDK_15.2.0/external/freertos/portable/GCC/nrf52/port.c
/*
* FreeRTOS Kernel V10.0.0
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documen... | 3,881 |
1,742 | <reponame>yzpopulation/sage
"""
Quantum Groups Using GAP's QuaGroup Package
AUTHORS:
- <NAME> (03-2017): initial version
The documentation for GAP's QuaGroup package, originally authored by
<NAME>, can be found at
https://www.gap-system.org/Packages/quagroup.html.
"""
# *********************************************... | 55,181 |
343 | <reponame>nzeh/syzygy
// Copyright 2012 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 ... | 743 |
450 | /******************************************************************
*
* fthash.h - fast dynamic hash tables
*
* Copyright 2002 by
* <NAME>, <NAME>, and <NAME>
*
* This file is part of the FreeType project, and may only be used,
* modified, and distributed under the terms of the FreeType project
* licens... | 6,036 |
11,024 | #
# plot.py
#
# This source file is part of the FoundationDB open source project
#
# Copyright 2013-2020 Apple Inc. and the FoundationDB project 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 L... | 1,941 |
32,544 | package com.baeldung.batch;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.item.ItemProcessor;
public class CoffeeItemProcessor implements ItemProcessor<Coffee, Coffee> {
private static final Logger LOGGER = LoggerFactory.getLogger(CoffeeItemProcessor.class);
@Ove... | 268 |
12,278 | <gh_stars>1000+
// Copyright (C) 2005 <NAME>, <NAME>.
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_TYPEOF_STD_map_hpp_INCLUDED
#define BOOST_TYPEOF_STD_map_hpp_INCLUDED
#include <map>
#include <boost/typeof/typeof.... | 379 |
841 | package cgeo.geocaching.maps.mapsforge.v6;
import cgeo.geocaching.location.Geopoint;
import org.mapsforge.core.model.LatLong;
public final class MapsforgeUtils {
private MapsforgeUtils() {
// Do not instantiate, utility class
}
public static LatLong toLatLong(final Geopoint geopoint) {
... | 201 |
1,056 | <filename>javafx/javafx2.editor/src/org/netbeans/modules/javafx2/editor/completion/impl/SimpleClassItem.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 ow... | 2,833 |
2,594 | <reponame>deenu713/bundletool
/*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.... | 565 |
377 | /*******************************************************************************
* * Copyright 2012 Impetus Infotech.
* *
* * 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
* *
*... | 660 |
518 | <filename>Source/Kernel/iSCSIPDUShared.h
/*
* Copyright (c) 2016, <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 the above copyr... | 3,293 |
605 | // SubModule2.h - Main header with same name as directory.
#include "SubModule2/Header3.h"
#include "SubModule2/Header4.h"
| 42 |
2,151 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_RENDERER_RENDER_FRAME_METADATA_OBSERVER_IMPL_H_
#define CONTENT_RENDERER_RENDER_FRAME_METADATA_OBSERVER_IMPL_H_
#include "cc/trees/render... | 827 |
351 | <gh_stars>100-1000
# Copyright: (c) 2018, <NAME> (@jborean93) <<EMAIL>>
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)
import base64
import struct
from thirdparty.ntlm_auth.constants import NegotiateFlags
from thirdparty.ntlm_auth.exceptions import NoAuthContextError
from thirdparty.ntlm_auth.mess... | 4,177 |
303 | <reponame>ofZach/landlinesApp<filename>www/draw/metadata/6/6176.json
{"id":6176,"line-1":"<NAME>","line-2":"Marshall Islands","attribution":"©2015 CNES / Astrium, DigitalGlobe","url":"https://www.google.com/maps/@9.397633,167.474357,17z/data=!3m1!1e3"} | 103 |
975 | <reponame>zzqcn/joy
/*
*
* Copyright (c) 2016 Cisco Systems, Inc.
* All rights reserved.
*
* 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... | 1,083 |
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 ... | 3,206 |
903 | package json;
import org.develnext.jphp.core.compiler.jvm.JvmCompilerCase;
import org.develnext.jphp.ext.jsoup.JsoupExtension;
import php.runtime.env.CompileScope;
public class JsoupJvmTestCase extends JvmCompilerCase {
@Override
protected CompileScope newScope() {
CompileScope scope = super.newScope... | 156 |
2,372 | <filename>physx/samples/sampleframework/renderer/src/d3d11/D3D11RendererTexture2D.h<gh_stars>1000+
//
// 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 copyrig... | 1,352 |
348 | <gh_stars>100-1000
{"nom":"Noyarey","circ":"3ème circonscription","dpt":"Isère","inscrits":1736,"abs":1070,"votants":666,"blancs":32,"nuls":14,"exp":620,"res":[{"nuance":"REM","nom":"<NAME>","voix":407},{"nuance":"FI","nom":"<NAME>","voix":213}]} | 100 |
763 | package org.batfish.vendor.check_point_management.parsing;
import static org.batfish.common.BfConsts.RELPATH_CHECKPOINT_MANAGEMENT_DIR;
import static org.batfish.common.matchers.WarningMatchers.hasText;
import static org.batfish.vendor.check_point_management.parsing.CheckpointManagementParser.RELPATH_CHECKPOINT_SHOW_G... | 16,722 |
335 | <filename>S/Slap_adjective.json
{
"word": "Slap",
"definitions": [
"Lacking strength, energy, or discipline; ineffectual.",
"(of food) soft or runny."
],
"parts-of-speech": "Adjective"
} | 97 |
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... | 5,867 |
890 | // Copyright (C) <2019> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
#ifndef MsdkVideoCompositor_h
#define MsdkVideoCompositor_h
#ifdef ENABLE_MSDK
#include <vector>
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/thread/shared_mutex.hpp>
#include <logger.h>
#include ... | 3,040 |
32,544 | <filename>core-java-modules/core-java-string-operations-3/src/test/java/com/baeldung/accentsanddiacriticsremoval/StringNormalizerUnitTest.java
package com.baeldung.accentsanddiacriticsremoval;
import static org.junit.Assert.assertFalse;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.text.Nor... | 943 |
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.costmanagement.models;
import com.azure.core.util.Context;
import com.azure.resourcemanager.costmanagement.fluent.models.ViewInn... | 11,253 |
897 | import java.util.Scanner;
public class RemoveDuplicateElement {
/**
*
* Method 1 Using extra space
*
*/
// The function remove the duplicate element
// Function take two argument array 'a' of size 'n'.
static int DuplicateElement(int[] a, int n){
// check if array is emp... | 901 |
11,356 | <filename>coremltools/converters/mil/frontend/tensorflow/tf_op_registry.py
# Copyright (c) 2020, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
_TF_OPS_REGISTRY = {}
de... | 708 |
5,169 | <filename>Specs/0/3/5/SwiftyRestKit/1.0.4/SwiftyRestKit.podspec.json<gh_stars>1000+
{
"name": "SwiftyRestKit",
"platforms": {
"ios": "12.0"
},
"summary": "An easy, organized, protocol-oriented way to do REST requests on iOS.",
"requires_arc": true,
"version": "1.0.4",
"description": "SwiftyRestKit is ... | 316 |
518 | <reponame>rajkumarpalani/PayPal-Java-SDK<gh_stars>100-1000
package com.paypal.api.payments;
import org.testng.Assert;
import org.testng.annotations.Test;
public class RelatedResourcesTestCase {
public static final Sale SALE = SaleTestCase.createSale();
public static final Authorization AUTHORIZATION = Authorizati... | 508 |
471 | from datetime import datetime
from django.http import HttpRequest, HttpResponseBadRequest
from dimagi.utils.dates import DateSpan
from dimagi.utils.django.request import request_from_args_or_kwargs
from dimagi.utils.parsing import ISO_DATE_FORMAT
import six
def datespan_in_request(from_param="from", to_param="to",
... | 1,170 |
4,126 |
#pragma once
// Declared only so it can be partially specialized
template <class Signature>
class cFunctionRef;
/** A light-weight, type-erased reference to a function object.
### Usage
`cFunctionRef` is used whenever you call a normal function with a lambda. e.g.
one of the `cWorld::DoWith` functions,
m_World->... | 766 |
948 | /*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
* All rights reserved.
*
* Copyright (c) 2013, ADVANSEE - http://www.advansee.com/
* <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided ... | 1,624 |
419 | <filename>Code/Engine/Animation/Graph/Animation_RuntimeGraph_Controller.cpp
#include "Animation_RuntimeGraph_Controller.h"
#include "Engine/Animation/Components/Component_AnimationGraph.h"
//-------------------------------------------------------------------------
namespace KRG::Animation
{
namespace Internal
... | 497 |
615 | <filename>src/FieldIndexer.h
#pragma once
#include "LineIndexer.h"
#include <string>
// A LineIndexer that indexes based on a separator and field number.
class FieldIndexer : public LineIndexer {
std::string separator_;
int field_;
public:
FieldIndexer(std::string separator, int field)
: sepa... | 166 |
463 | """A test script the confuses pylint."""
# https://github.com/PyCQA/pylint/issues/2605
from dataclasses import dataclass, field
@dataclass
class Test:
"""A test dataclass with a field, that has a default_factory."""
test: list = field(default_factory=list)
TEST = Test()
TEST.test.append(1)
print(TEST.test[... | 122 |
3,702 | /*
* 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
* distribu... | 1,421 |
410 | """
Unit tests for the relation module.
This module wasn't matching TensorFlow performance so it's tested pretty heavily.
"""
import torch
from allennlp.common.testing import ModelTestCase
# Needed to get the test framework to see the dataset readers and models.
from dygie import models
from dygie import data
cla... | 3,484 |
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... | 425 |
5,279 | /*
* 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,115 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary
*/
#import <PhotoLibrary/PhotoLibrary-Structs.h>
#import <PhotoLibrary/XXUnknownSuperclass.h>
#import <PhotoLibrary/PLStackViewDataSource.h>
@class PLWStackedImageCache;
@interfa... | 449 |
777 | <reponame>google-ar/chromium
// 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 "services/video_capture/service_impl.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.... | 935 |
1,144 | <gh_stars>1000+
package de.metas.document.archive.interceptor;
import org.adempiere.service.IClientDAO;
import org.compiere.model.I_AD_Client;
import org.compiere.model.MClient;
import org.compiere.model.ModelValidationEngine;
import org.compiere.model.ModelValidator;
import org.compiere.model.PO;
import de.metas.doc... | 1,793 |
568 | import unittest
from vdebug.opts import Options,OptionsError
class OptionsTest(unittest.TestCase):
def tearDown(self):
Options.instance = None
def test_has_instance(self):
Options.set({1:"hello", 2:"world"})
self.assertIsInstance(Options.inst(), Options)
def test_get_option(self)... | 724 |
348 | {"nom":"Esparros","circ":"1ère circonscription","dpt":"Hautes-Pyrénées","inscrits":167,"abs":81,"votants":86,"blancs":5,"nuls":3,"exp":78,"res":[{"nuance":"FI","nom":"<NAME>","voix":45},{"nuance":"REM","nom":"<NAME>","voix":33}]} | 93 |
441 | import unittest
import grpc
from _service import Service, ErroringHandler, ExceptionErroringHandler
from _tracer import Tracer, SpanRelationship
from grpc_opentracing import open_tracing_client_interceptor, open_tracing_server_interceptor
import opentracing
class OpenTracingTest(unittest.TestCase):
"""Test that... | 10,533 |
1,711 |
// ===============================================================================
// May be included multiple times - resets structure packing to the defaults
// for all supported compilers. Reverts the changes made by #include <pushpack1.h>
//
// Currently this works on the following compilers:
// MSVC 7,8,9... | 236 |
318 | // __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this f... | 638 |
1,403 | /*
* CsVertexFormat.cpp
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2019 by <NAME>)
* See "LICENSE.txt" for license information.
*/
#include "CsVertexFormat.h"
#include "CsHelper.h"
#include <LLGL/VertexAttribute.h>
#include <algorithm>
namespace SharpLLGL
{
/*
* VertexAttribute class
*... | 1,400 |
568 | <reponame>Qihoo360/logkafka<filename>src/logkafka/task_conf.h
///////////////////////////////////////////////////////////////////////////
//
// logkafka - Collect logs and send lines to Apache Kafka v0.8+
//
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015 Qihoo 360 T... | 3,086 |
14,668 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/lens/region_search/lens_region_search_controller.h"
#include "base/feature_list.h"
#include "base/test/metrics/histogram_tester.h... | 2,467 |
2,221 | <reponame>avinashk07/flume
/*
* 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... | 1,528 |
372 | <reponame>mjhopkins/google-api-java-client-services<filename>clients/google-api-services-file/v1beta1/1.27.0/com/google/api/services/file/v1beta1/model/GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata.java
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file exce... | 1,361 |
1,844 | <gh_stars>1000+
/*
* Copyright 2010-2013 Ning, Inc.
* Copyright 2014-2018 Groupon, Inc
* Copyright 2014-2018 The Billing Project, LLC
*
* The Billing Project licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You ... | 31,078 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespamalloc/malloc/globalpool.hpp>
#include <vespamalloc/malloc/memblockboundscheck_d.h>
namespace vespamalloc {
template class AllocPoolT<MemBlockBoundsCheck>;
}
| 93 |
5,267 | package com.my.sorted.resources;
import io.swagger.v3.jaxrs2.resources.model.Pet;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import java.util.ArrayList;
@Path("/sorted")
public class SortedThing {
@Operation(op... | 231 |
556 | /*
* 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,511 |
331 | <filename>src/main/java/org/yx/http/start/JettyHandlerSupplier.java
/**
* Copyright (C) 2016 - 2030 youtongluan.
*
* 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... | 739 |
1,609 | package com.mossle.cms.web.sys;
import java.util.List;
import javax.annotation.Resource;
import com.mossle.api.auth.CurrentUserHolder;
import com.mossle.client.open.OpenAppDTO;
import com.mossle.client.open.OpenClient;
import com.mossle.client.open.SysDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... | 872 |
10,351 | # pylint: disable=redefined-outer-name
from unittest.mock import MagicMock
import pytest
import posixpath
import ftplib
from ftplib import FTP
from mlflow.store.artifact.artifact_repository_registry import get_artifact_repository
from mlflow.store.artifact.ftp_artifact_repo import FTPArtifactRepository
@pytest.fixtu... | 5,923 |
682 | /**CFile****************************************************************
FileName [fraHot.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [New FRAIG package.]
Synopsis [Computing and using one-hotness conditions.]
Author [<NAME>]
Affiliation [UC Berkeley]
Dat... | 7,289 |
409 | // ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2018, <NAME>, FU Berlin
// All rights reserved.
//
// Redistribution and use in s... | 15,228 |
999 | //
// Copyright (C) 2004-2008 <NAME>, <NAME>
// Copyright (C) 2017 <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)
//
#define SOCI_SOURCE
#include "soci/error.h"
#include "soci-mktime.h"
#include <climit... | 1,047 |
1,091 | /*
* Copyright 2017-present Open Networking Foundation
*
* 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... | 520 |
466 | <gh_stars>100-1000
package com.gykj.zhumulangma.home.fragment;
import android.Manifest;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModelProvider;
import com.alibaba.android.arouter.facade.Postcard;
import c... | 3,096 |
3,442 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty 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.or... | 2,272 |
844 | <gh_stars>100-1000
{
"github-username": "tanujajoshi1",
"favourite-emoji": "💚",
"favourite-music": "https://soundcloud.com/luiz-alves-625547605/sparkle-kimi-no-na-wa-your-name-ost" ,
"favourite-color": "#000000"
} | 109 |
1,673 | <filename>include/cbm_petscii_charmap.h
/*****************************************************************************/
/* */
/* cbm_petscii_charmap.h */
/* ... | 5,638 |
5,964 | <reponame>domenic/mojo<gh_stars>1000+
/*
* Copyright (C) 2012 Apple Inc. 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 the above copyright
... | 1,135 |
1,568 | <reponame>KirilBangachev/Python
"""
this algorithm tries to find the pattern from every position of
the mainString if pattern is found from position i it add it to
the answer and does the same for position i+1
Complexity : O(n*m)
n=length of main string
m=length of pattern string
"""
def naivePatternSearch(mai... | 332 |
528 | <reponame>jiosec/tdameritrade
from tdameritrade.orders.models import base
def test_base_order_json():
base_order = base.BaseOrder()
base_order.some_field = 123
assert base_order.json() == "{}"
| 77 |
776 | <reponame>Diffblue-benchmarks/actframework<filename>legacy-testapp/src/main/java/testapp/endpoint/ghissues/GH352.java<gh_stars>100-1000
package testapp.endpoint.ghissues;
import act.controller.annotation.TemplateContext;
import act.controller.annotation.UrlContext;
import act.view.ViewManager;
import org.osgl.mvc.anno... | 368 |
1,204 | <filename>hunter-transform/src/main/java/com/quinn/hunter/transform/RunVariant.java<gh_stars>1000+
package com.quinn.hunter.transform;
/**
* Created by Quinn on 10/05/2018
*/
public enum RunVariant {
DEBUG, RELEASE, ALWAYS, NEVER
}
| 83 |
898 | /*
* Copyright (C) 2014 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 app... | 3,433 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.