max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,338 | <filename>src/tools/translation/stxtinfo/stxtinfo.cpp<gh_stars>1000+
/*****************************************************************************/
// stxtinfo
// Written by <NAME>, OBOS Translation Kit Team
//
// Version:
//
// stxtinfo is a command line program for displaying text information about
// Be styled text... | 4,784 |
1,002 | // Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
#include "pch.h"
#include "CanvasControl.h"
#include "RecreatableDeviceManager.impl.h"
#include "BaseControlAdapter.h"
using namespace ABI::Microsoft::Graphi... | 5,318 |
1,005 | #ifndef TACO_UTIL_BENCHMARK_H
#define TACO_UTIL_BENCHMARK_H
#include <chrono>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <vector>
#include <cmath>
#include "taco/error.h"
using namespace std;
namespace taco {
namespace util {
struct TimeResults {
double mean;
double stdev;
double med... | 2,088 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
package com.azure.search.documents.indexes.implementation.models;
impor... | 744 |
373 | /*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2017 Adobe
* %%
* 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... | 2,279 |
4,409 | /*
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 2,113 |
3,986 | /*
* Copyright (C) 2018 xuexiangjys(<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 1,540 |
3,012 | <gh_stars>1000+
/** @file
Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __LINUX_BZIMAGE_H__
#define __LINUX_BZIMAGE_H__
#define BOOTSIG 0x1FE
#define SETUP_HDR 0x53726448 /* 0x53726448 == "HdrS" */... | 3,038 |
1,133 | {
"Hello": "Hola",
"File": "Dossier",
"Exit": "Surt",
"Edit": "Edita",
"Undo": "Desfés",
"Redo": "Refés",
"Cut": "Tallar",
"Copy": "Copia",
"Paste": "Enganxa",
"Delete": "Suprimeix",
"Select All": "Seleccionar tot",
"View": "Veure",
"Reload": "Recarregar",
"Force Reload": "Força la recàrrega... | 310 |
5,964 | <gh_stars>1000+
// 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 WTF_AddressSanitizer_h
#define WTF_AddressSanitizer_h
// TODO(sof): Add SyZyASan support?
#if defined(ADDRESS_SANITIZER)
#include... | 549 |
1,217 | namespace My {
template <class T>
inline void SafeRelease(T **ppInterfaceToRelease) {
if (*ppInterfaceToRelease != nullptr) {
(*ppInterfaceToRelease)->Release();
(*ppInterfaceToRelease) = nullptr;
}
}
} // namespace My
| 88 |
796 | package tech.salroid.filmy.fragment;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;
import andr... | 2,086 |
2,151 | <gh_stars>1000+
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkCoreBlitters.h"
#include "SkColorData.h"
#include "SkShader.h"
#include "SkXfermodePriv.h"
SkA8_Coverage_Blitter::SkA8_Coverag... | 1,195 |
903 | <filename>trunk/win/Source/Includes/QtIncludes/include/QtGui/qabstracttextdocumentlayout.h
#include "../../src/gui/text/qabstracttextdocumentlayout.h"
| 54 |
777 | <gh_stars>100-1000
// 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.
#include "chrome/browser/media/router/issue_manager.h"
#include <algorithm>
#include "base/memory/ptr_util.h"
#include "content/publi... | 1,112 |
2,232 | <reponame>JLimperg/lean
/*
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: <NAME>
*/
#include "kernel/instantiate.h"
#include "library/vm/vm_name.h"
#include "library/vm/vm_level.h"
#include "library/vm/vm_expr.h"
#include "libr... | 2,354 |
471 | <filename>corehq/form_processor/submission_post.py
import logging
from collections import namedtuple
from ddtrace import tracer
from django.db import IntegrityError
from django.http import (
HttpRequest,
HttpResponse,
HttpResponseForbidden,
)
from django.conf import settings
from django.urls import reverse... | 12,275 |
1,350 | [{"id":"PNA1","type":"alpha","calc":false,"value":""},{"id":"L1B","type":"number","calc":false,"value":""},{"id":"ADD1","type":"alpha","calc":false,"value":""},{"id":"QDIV","type":"number","calc":false,"value":""},{"id":"CITY","type":"alpha","calc":false,"value":""},{"id":"STP2","type":"alpha","calc":false,"value":""},... | 578 |
666 | <reponame>tgolsson/appJar
import sys
sys.path.append("../../")
from appJar import gui
def validate(action, index, value_if_allowed, prior_value, text, validation_type, trigger_type, widget_name):
if action == "1":
if text in '0123456789.-+':
try:
if len(str(value_if_allowed))... | 510 |
568 | <reponame>JanStoltman/CompositeAndroid
package com.pascalwelsch.compositeandroid.core;
import java.util.Stack;
public class AbstractPlugin<T, D> {
final public Stack<NamedSuperCall> mSuperListeners = new Stack<>();
private D mDelegate;
private T mOriginal;
public final void addToDelegate(final D d... | 804 |
998 | <reponame>ADMTec/VoxelPlugin<gh_stars>100-1000
// Copyright 2021 Phyronnaz
#pragma once
#include "CoreMinimal.h"
#include "VoxelAssets/VoxelDataAsset.h"
#include "VoxelAssets/VoxelDataAssetData.inl"
#include "VoxelGenerators/VoxelGeneratorHelpers.h"
class FVoxelDataAssetInstance : public TVoxelGeneratorInst... | 1,279 |
432 | /*
* Copyright (c) 2019 <NAME> <<EMAIL>>. 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
* notice, this list of cond... | 1,315 |
503 | /**
* Yona, 21c Project Hosting SW
* <p>
* Copyright Yona & Yobi Authors & NAVER Corp.
* https://yona.io
**/
package models.support;
import com.avaje.ebean.annotation.Sql;
import play.db.ebean.Model;
import javax.persistence.Entity;
@Entity
@Sql
public class IssueLabelAggregate extends Model {
private stati... | 152 |
448 | //
// AVDConfig.h
// AliPlayerSDK
//
// Created by shiping.csp on 2018/11/16.
// Copyright © 2018 com.alibaba.AliyunPlayer. All rights reserved.
//
#ifndef AVDConfig_h
#define AVDConfig_h
#import <Foundation/Foundation.h>
OBJC_EXPORT
@interface AVDConfig : NSObject
/**
@brief 最大超时时间 默认15000毫秒
*/
/****
@brief... | 384 |
364 | <reponame>matus-chochlik/oglplus
// File implement/oglplus/enums/context_profile_bit_def.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/context_profile_bit.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2019 <NAME>.
// Dist... | 637 |
2,996 | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.core.modes.loadProcesses;
import org.terasology.engine.context.Context;
import org.terasology.engine.core.modes.SingleStepLoadProcess;
import org.terasology.engine.logic.console.Console;
import org.terasol... | 295 |
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/ui/webui/history_clusters/history_clusters_handler.h"
#include "base/memory/raw_ptr.h"
#include "base/test/scoped_feature_list.h... | 1,097 |
1,705 | {
"active": true,
"synopsis": "This release introduces support for Amazon EventBridge schema registry, making it easy to discover and write code for events in EventBridge.",
"generate-client-constructors": true
} | 54 |
1,475 | <reponame>mhansonp/geode
/*
* 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
*... | 665 |
373 | <filename>src/light.hpp<gh_stars>100-1000
/*-------------------------------------------------------------------------------
BARONY
File: light.hpp
Desc: prototypes for light.cpp, light-related types and prototypes
Copyright 2013-2016 (c) Turning Wheel LLC, all rights reserved.
See LICENSE for details.
---------... | 242 |
403 | <gh_stars>100-1000
/*
* Camunda Platform REST API
* OpenApi Spec for Camunda Platform REST API.
*
* The version of the OpenAPI document: 7.16.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/... | 623 |
530 | <reponame>meghasfdc/jmc<gh_stars>100-1000
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The contents of this file are subject to the terms of either the Universal Permissive License
* v 1.0 as shown at http://oss.... | 3,186 |
21,684 | // Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef CONTAINERS_ARCHIVE_BUFFER_STREAM_HPP_
#define CONTAINERS_ARCHIVE_BUFFER_STREAM_HPP_
#include <string.h>
#include "containers/archive/archive.hpp"
// Reads from a buffer without taking ownership over it
class buffer_read_stream_t : public read_stream_t {
... | 582 |
5,937 | <reponame>txlos/wpf
// 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.
//-----------------------------------------------------------------------------
//
//
// Desc... | 1,780 |
32,544 | <gh_stars>1000+
package com.baeldung.xmlhtml.pojo.jaxb.html.elements;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlValue;
public class Meta {
private String title;
public String getTitle() {
return title;
}
@XmlAttribute(name = "title")
public void ... | 229 |
592 | /******************************************************************************
Copyright (c) 2018, <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:
* Redistributions of source code must retain t... | 1,626 |
4,036 | /**
*
* Copyright 2003-2004 The Apache Software 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... | 656 |
2,743 | <filename>cpp/include/cuml/explainer/tree_shap.hpp
/*
* Copyright (c) 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/L... | 498 |
383 | <reponame>BrettRD/fuse
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2021, Locus Robotics
* 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... | 2,473 |
435 | <reponame>luigidcsoares/psychec
T f()
{
const int* x;
int* y;
x = y;
return 0;
}
| 56 |
797 | <gh_stars>100-1000
/*
The MIT License (MIT)
Copyright (c) 2015 <NAME> and Contributors
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 limit... | 1,317 |
827 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | 3,581 |
4,081 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 1,096 |
12,718 | <filename>compiler-rt/lib/sanitizer_common/sanitizer_freebsd.h
//===-- sanitizer_freebsd.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: Apa... | 1,489 |
1,338 | <reponame>Kirishikesan/haiku<gh_stars>1000+
/*
* Copyright 2008-2011, <NAME>, <EMAIL>.
* Copyright 2008-2017, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include "IORequest.h"
#include <string.h>
#include <arch/debug.h>
#include <debug.h>
#include <heap.h>
#include <kernel.h>
#include... | 13,791 |
1,338 |
#include "exceptions.h"
ExceptionBase::ExceptionBase() {}
ExceptionBase::~ExceptionBase() {}
ExceptionA::ExceptionA() {}
ExceptionA::~ExceptionA() {}
ExceptionB::ExceptionB() {}
ExceptionB::~ExceptionB() {}
VirtualExceptionBase::VirtualExceptionBase() {}
VirtualExceptionBase::~VirtualExceptionBase() {}
Virtual... | 256 |
368 | /*
Plugin-SDK (Grand Theft Auto San Andreas) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#include "PluginBase.h"
#include "CTaskSimple.h"
class PLUGIN_API CTaskSimpleHoldEntity : public ... | 171 |
322 | <reponame>WanpengQian/ConcurrencyFreaks
/******************************************************************************
* Copyright (c) 2015, <NAME>, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... | 1,146 |
577 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
# Author: <NAME>
# License: MIT
import warnings
warnings.filterwarnings("ignore")
import sys
from ..utils import print_sys
from . import bi_pred_dataset, multi_pred_dataset
from ..metadata import dataset_names
class TestMultiPred(bi_pred_dataset.DataLoader):
"""Summar... | 522 |
2,206 | /* ******************************************************************************
*
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* See the NOTICE file distributed wit... | 1,262 |
1,090 | package com.uber.okbuck.extension;
import java.util.Set;
import javax.annotation.Nullable;
public class TestExtension {
/** Enable generation of robolectric test rules. */
public boolean robolectric = false;
/**
* Choose only a specific subset of robolectric API levels to download. Default is all api level... | 193 |
910 | /*
* Copyright (C) 2017, <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 549 |
444 | <reponame>BartoszMilewski/Okasaki<filename>Queue/Qtest.cpp
#include "Queue.h"
void test()
{
Queue<int> q;
auto q1 = q.pushed_back(1);
q1.printq();
auto q2 = q1.pushed_back(2);
q1.printq();
q2.printq();
auto q3 = q2.pushed_back(3);
q1.printq();
q2.printq();
q3.printq();
std::... | 349 |
348 | {"nom":"Chennevières-sur-Marne","circ":"4ème circonscription","dpt":"Val-de-Marne","inscrits":10309,"abs":5807,"votants":4502,"blancs":49,"nuls":24,"exp":4429,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":1833},{"nuance":"LR","nom":"Mme <NAME>","voix":887},{"nuance":"FI","nom":"Mme <NAME>","voix":527},{"nuance":"FN"... | 332 |
1,304 | <filename>tests/base/test_multitenancy.py
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os
import tempfile
import pytest
from treq.testing import StubTreq
from rasa_nlu import config
... | 2,434 |
454 | <filename>vertx-gaia/vertx-tp/src/main/java/io/vertx/tp/error/WallItemSizeException.java
package io.vertx.tp.error;
import io.vertx.up.eon.em.AuthWall;
import io.vertx.up.exception.UpException;
public class WallItemSizeException extends UpException {
public WallItemSizeException(final Class<?> clazz,
... | 244 |
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.
package org.chromium.chrome.browser.toolbar.top;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnLongClick... | 4,794 |
348 | {"nom":"Villedieu","circ":"4ème circonscription","dpt":"Vaucluse","inscrits":412,"abs":178,"votants":234,"blancs":20,"nuls":11,"exp":203,"res":[{"nuance":"REM","nom":"<NAME>","voix":136},{"nuance":"EXD","nom":"<NAME>","voix":67}]} | 91 |
32,544 | <reponame>zeesh49/tutorials<gh_stars>1000+
package com.baeldung.jackson.bidirection;
import java.util.ArrayList;
import java.util.List;
public class User {
public int id;
public String name;
public List<Item> userItems;
public User() {
super();
}
public User(final int id, final Strin... | 213 |
2,881 | package com.salesmanager.core.model.content;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Tabl... | 888 |
854 | <filename>solutions/LeetCode/C++/458.cpp
__________________________________________________________________________________________________
sample 4 ms submission
class Solution {
public:
int poorPigs(int buckets, int minutesToDie, int minutesToTest) {
int t = (minutesToTest - 1) / minutesToDie + 1;
... | 269 |
794 |
#include "game/actions/CGActionProgressTimer.h"
#include "game/CGProgressTimer.h"
NS_CC_BEGIN
#define kProgressTimerCast CGProgressTimer*
// implementation of ProgressTo
ProgressTo* ProgressTo::create(float duration, float percent)
{
ProgressTo *progressTo = new (std::nothrow) ProgressTo();
progressTo->ini... | 839 |
2,542 | /*++
(c) 2010 by Microsoft Corp. All Rights Reserved.
ktlbase.cpp
Description:
Kernel Tempate Library (KTL)
Implements global allocators and other system-wide entry points.
History:
raymcc 20-Aug-2010 Initial version.
--*/
#include <ktl.h>
//
// Global data str... | 1,920 |
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 "components/sync_device_info/device_count_metrics_provider.h"
#include <algorithm>
#include <map>
#include <vector>
#include "base/metrics/hist... | 1,136 |
421 | // System::Net::WebClient::OpenRead
/*
This program demonstrates the 'OpenRead' method of 'WebClient' class.
It creates a URI to access a web resource. It then invokes 'OpenRead' tp obtain a 'Stream'
instance which is used to retrieve the web page data. The data read from the stream is then
displayed on the cons... | 572 |
423 | """
==============================================================================
Code for builder of a dynamic linear model
==============================================================================
This piece of code provides the basic functionality for constructing the model
of a dlm. It allows flexible mode... | 6,598 |
5,166 | <filename>javav2/example_code/personalize/src/main/java/com/example/personalize/FilterRecommendations.java<gh_stars>1000+
//snippet-sourcedescription:[FilterRecommendations.java demonstrates how use a filter when requesting recommendations]
//snippet-keyword:[AWS SDK for Java v2]
//snippet-keyword:[Code Sample]
//snipp... | 2,475 |
333 | <filename>src/main/java/com/alipay/api/response/AlipayCommerceOperationPointHistoryQueryResponse.java
package com.alipay.api.response;
import java.util.List;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
import com.alipay.api.domain.PointLogInfo;
import c... | 899 |
471 | package com.dtflys.test.mock;
import org.mockserver.client.server.MockServerClient;
import org.mockserver.junit.MockServerRule;
import static org.mockserver.model.HttpRequest.request;
import static org.mockserver.model.HttpResponse.response;
/**
* @author gongjun[<EMAIL>]
* @since 2017-05-17 16:08
*/
public class... | 2,181 |
628 | <gh_stars>100-1000
/*
$info$
tags: ir|opts
$end_info$
*/
#include <FEXCore/Utils/BucketList.h>
#include "Common/MathUtils.h"
#include "Interface/IR/Passes/RegisterAllocationPass.h"
#include "Interface/IR/Passes.h"
#include <FEXCore/Core/CoreState.h>
#include <FEXCore/Core/SignalDelegator.h>
#include <FEXCore/IR/IR.h>
... | 25,088 |
327 | package de.fhpotsdam.unfolding.examples.interaction.multitouch;
import org.apache.log4j.Logger;
import processing.core.PApplet;
import TUIO.TuioClient;
import TUIO.TuioCursor;
import TUIO.TuioListener;
import TUIO.TuioObject;
import TUIO.TuioTime;
import de.fhpotsdam.unfolding.UnfoldingMap;
import de.fhpotsdam.unfol... | 1,391 |
12,278 | <gh_stars>1000+
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
//
// demo_xml_load.cpp
//
// (C) Copyright 2002-4 <NAME> - http://www.rrsd.com .
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or cop... | 432 |
377 | /*
* Licensed to the Technische Universität Darmstadt under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Technische Universität Darmstadt
* licenses this file to you under the Apache License, Versio... | 2,439 |
1,103 | <gh_stars>1000+
/*
* Copyright 2016-2019 Netflix, 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
*
* Unl... | 3,554 |
926 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 2,781 |
15,179 | <filename>tests/unit/clients/test_helper.py
import aiohttp
import pytest
from jina import Flow
from jina.logging.logger import JinaLogger
from jina.types.request import Request
from jina.clients.request.helper import _new_data_request
from jina.clients.base.helper import HTTPClientlet, WebsocketClientlet
logger = Jina... | 477 |
393 | <filename>OtrosLogViewer-app/src/main/java/pl/otros/logview/gui/actions/search/SearchAction.java
/*
* ******************************************************************************
* Copyright 2011 <NAME>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in c... | 2,324 |
421 | <reponame>hamarb123/dotnet-api-docs
//<snippet4>
using namespace System;
using namespace System::IO;
public ref class ProcessFile
{
public:
static void Main()
{
try
{
StreamReader^ sr = File::OpenText("data.txt");
Console::WriteLine("The first line of this fi... | 366 |
390 | <filename>blueflood-core/src/main/java/com/rackspacecloud/blueflood/io/datastax/DLocatorIO.java
/*
* Copyright (c) 2016 Rackspace.
*
* 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
*
* ... | 2,340 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 3,588 |
2,621 | <reponame>SuperPokeS/Osiris<filename>Osiris/freetype/src/autofit/afblue.c
/* This file has been generated by the Perl script `afblue.pl', */
/* using data from file `afblue.dat'. */
/****************************************************************************
*
* afblue.c
*
* Auto-fitte... | 52,745 |
1,609 | package com.mossle.api.user;
public interface ApplicationAliasConverter {
String convertAlias(String type, String ip);
}
| 38 |
2,542 | <filename>src/prod/src/data/interop/ReliableCollectionRuntimeImpl/RCREventSource.cpp
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// -------... | 128 |
393 |
#ifndef __FILTERREGISTER__
#define __FILTERREGISTER__
class FilterRegister
{
protected:
int _refCount;
bool _registered;
static FilterRegister* _instance;
void _Register();
void _UnRegister();
public:
FilterRegister();
virtual ~FilterRegister();
void AddRef();
void SubRef();
static FilterRegister* I... | 111 |
774 | <reponame>qzlvyh/Androidcookbook<filename>SimpleJumper.android/src/com/androidcookbook/simplejumper/MainActivity.java<gh_stars>100-1000
package com.androidcookbook.simplejumper;
import org.flixel.FlxAndroidApplication;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.WindowManager... | 314 |
2,816 | #ifndef R_APPEND_H
#define R_APPEND_H
#include <stdbool.h>
#include <stdlib.h>
#include "decimal.h"
typedef void *append_info;
append_info *append_info_get(void *info_list, int table_id);
void append_row_start(append_info info);
void append_row_end(append_info info);
void append_varchar(append_info info, const ch... | 221 |
507 | <reponame>saki-osive/spring-native<filename>spring-native-configuration/src/test/java/org/springframework/validated/ValidatedComponentProcessorTest.java
package org.springframework.validated;
import org.junit.Before;
import org.junit.Test;
import org.springframework.ValidatedComponentProcessor;
import org.springframew... | 2,536 |
2,816 | //===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/common/compressed_file_system.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/common/common.hpp"
#include "duckdb/com... | 864 |
305 | <reponame>medismailben/llvm-project
// RUN: %clang -target x86_64-apple-darwin -arch arm64_32 -miphoneos-version-min=8.0 %s -### 2>&1 | FileCheck %s
// CHECK: "-cc1"{{.*}} "-triple" "aarch64_32-apple-ios8.0.0"
// CHECK: ld{{.*}} "-arch" "arm64_32"
| 117 |
794 | <gh_stars>100-1000
//
// CACustomAnimation.h
// CrossApp
//
// Created by 栗元峰 on 15/4/29.
// Copyright (c) 2015年 http://www.9miao.com All rights reserved.
//
#ifndef __CrossApp__CACustomAnimation__
#define __CrossApp__CACustomAnimation__
#include "basics/CAScheduler.h"
NS_CC_BEGIN
class CC_DLL CACustomAnimation... | 472 |
2,268 | /* 7zMethodID.h */
#ifndef __7Z_METHOD_ID_H
#define __7Z_METHOD_ID_H
#include "7zTypes.h"
#define kMethodIDSize 15
typedef struct _CMethodID
{
Byte ID[kMethodIDSize];
Byte IDSize;
} CMethodID;
int AreMethodsEqual(CMethodID *a1, CMethodID *a2);
#endif
| 118 |
841 | package org.jboss.resteasy.test.client.proxy.resource.GenericEntities;
import java.util.HashMap;
import static org.jboss.resteasy.test.client.proxy.resource.GenericEntities.GenericEntityExtendingBaseEntityResource.FIRST_NAME;
import static org.jboss.resteasy.test.client.proxy.resource.GenericEntities.GenericEntityExt... | 235 |
61,676 | from django.conf.urls.i18n import i18n_patterns
from django.urls import include, path, re_path
from django.utils.translation import gettext_lazy as _
from django.views.generic import TemplateView
view = TemplateView.as_view(template_name='dummy.html')
urlpatterns = [
path('not-prefixed/', view, name='not-prefixed... | 402 |
2,460 | <gh_stars>1000+
/*
* Copyright (c) 2016-2021 <NAME> <<EMAIL>>
*
* 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 to use, copy,... | 1,243 |
5,169 | {
"name": "MultiSelectSegmentedControl",
"platforms": {
"ios": "7.0"
},
"version": "1.0",
"authors": {
"<NAME>": "<EMAIL>"
},
"license": "MIT",
"homepage": "https://github.com/yonat/MultiSelectSegmentedControl.git",
"summary": "Subclass of UISegmentedControl that supports multiple segment sele... | 193 |
4,772 | <reponame>fjacobs/spring-data-examples
package example.repo;
import example.model.Customer1522;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1522Repository extends CrudRepository<Customer1522, Long> {
List<Customer1522> findByLastName(String lastName);... | 103 |
571 | # Copyright 2015 Ufora Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 3,661 |
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... | 6,424 |
9,717 | <gh_stars>1000+
{
"url": "https://github.com/joakker/tree-sitter-json5",
"rev": "5dd5cdc418d9659682556b6adca2dd9ace0ac6d2",
"date": "2021-08-24T18:08:31-04:00",
"path": "/nix/store/0qhffwc84sp97d8im4lfrd06jsyvmzc4-tree-sitter-json5",
"sha256": "1la7bq5vi21gy0kf4zpwh0c0jfyv1bb62a3v7158hnxdyd5ijz07",
"fetchLF... | 217 |
325 | package com.box.l10n.mojito.service.branch.notification.phabricator;
import com.box.l10n.mojito.service.branch.BranchUrlBuilder;
import com.google.common.collect.ImmutableMap;
import com.ibm.icu.text.MessageFormat;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.sprin... | 1,442 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.