max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
879 | <gh_stars>100-1000
package org.zstack.network.service.flat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.zstack.core.db.Q;
import org.zstack.core.db.SQL;
import org.zstack.header.apimediator.ApiMessageInterceptionException;
... | 2,761 |
3,369 | //
// LoaderVC.h
// Advanced-Example
//
#import <UIKit/UIKit.h>
@interface LoaderVC : UIViewController
@end
| 47 |
2,042 | /*
Copyright 2017 yangchong211(github.com/yangchong211)
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... | 1,690 |
2,577 | <gh_stars>1000+
/*
* 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,
... | 851 |
312 | <gh_stars>100-1000
/*
*
* Copyright 2015 Rockchip Electronics Co. LTD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 21,088 |
945 | /*
* 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 ... | 13,716 |
1,285 | <reponame>PartyPackage/Minestom
package net.minestom.server.adventure;
import java.io.StringReader;
import net.kyori.adventure.util.Codec;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Locale;
import java.util.Objects;
import org.jglrxavpok.hephaistos.nbt.NBT;... | 612 |
319 | /**
* Copyright (c) 2011, The University of Southampton and the individual contributors.
* 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 ... | 1,296 |
352 | <filename>tvaultapi/src/main/java/com/tmobile/cso/vault/api/process/Response.java
// =========================================================================
// Copyright 2019 T-Mobile, US
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the ... | 645 |
14,668 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_
#define CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_
#include <string>
#include "build/build_config.h"
#include "... | 1,107 |
575 | // Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless re... | 722 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace TraceP... | 432 |
1,538 | /* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
*... | 904 |
5,169 | {
"name": "YLPNeon",
"version": "1.0.0",
"summary": "Harness the power of Frame with a simplified, chainable and expressive syntax. Supporting iOS Layout!",
"homepage": "https://github.com/Jofranks/YLPNeon",
"license": "MIT",
"authors": {
"Peter": "<EMAIL>"
},
"platforms": {
"ios": "5.0"
},
... | 216 |
23,220 | package com.alibaba.otter.canal.client.adapter.support;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Date;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Time;
import java.sql.Timestamp;
import java.sql.Types;
import org.slf4j.Logger;
import org.slf4j.LoggerFacto... | 3,465 |
1,252 | /*
Copyright (C) 2010 <NAME> <<EMAIL>>
Permission to use, copy, modify, and distribute this software
and its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that the copyright notice and this
permission... | 717 |
2,360 | <filename>var/spack/repos/builtin/packages/r-stringfish/package.py
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RStringfish(RPackage):
... | 397 |
694 | <reponame>akluth/io<gh_stars>100-1000
// metadoc Collector copyright <NAME>, 2006
// metadoc Collector license BSD revised
// metadoc Collector description A tricolor collector using a Baker treadmill.
#ifndef Collector_DEFINED
#define Collector_DEFINED 1
#include "CollectorMarker.h"
#ifdef __cplusplus
extern "C" {
... | 1,886 |
1,682 | /*
Copyright (c) 2012 LinkedIn Corp.
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... | 895 |
831 | /*
* 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 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... | 827 |
1,198 | /*
Copyright 2017-2019 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 375 |
2,977 | class SocketIOError(Exception):
pass
class ConnectionError(SocketIOError):
pass
class ConnectionRefusedError(ConnectionError):
"""Connection refused exception.
This exception can be raised from a connect handler when the connection
is not accepted. The positional arguments provided with the exc... | 367 |
1,690 | <gh_stars>1000+
# Copyright 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 "licens... | 4,227 |
14,668 | <gh_stars>1000+
// 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_LACROS_CERT_DB_INITIALIZER_FACTORY_H_
#define CHROME_BROWSER_LACROS_CERT_DB_INITIALIZER_FACTORY_H_
#include "base/... | 720 |
402 | {
"id": "dependency-parsing",
"name": "Dependency Parsing",
"description": "Dependency parsing is the task of analyzing the grammatical structure of a sentence and establishing the relationships between \"head\" words and the words which modify those heads.",
"expected_inputs": "The task expects an inpu... | 308 |
383 | #include "stable.h"
#include "d3dutil.h" | 19 |
1,682 | <filename>d2/src/main/java/com/linkedin/d2/balancer/clients/RequestTimeoutClient.java
/*
Copyright (c) 2018 LinkedIn Corp.
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://... | 2,628 |
369 | // Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
//
// Created by mati on 08.05.19.
//
#include <stddef.h>
#include <string.h>
#include <stdint.h>
#include <time.h>
#include "memory/usermem.h"
void free(void *pv)
{
#if PROJECT_CO... | 986 |
331 | #include <catch.hpp>
#include <algorithm>
#include <vector>
#include <cliopts.hpp>
#include "test_utils.hpp"
TEST_CASE("1: Parse command line arguments", "cli-parse") {
const int argc = 20;
const char* argv[] = {
"prog-name",
"-f", "/path/to/a/file",
"--file", "/path/to/another/file... | 4,607 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-8cq5-h2jx-4m9x",
"modified": "2022-05-01T02:27:42Z",
"published": "2022-05-01T02:27:42Z",
"aliases": [
"CVE-2005-4499"
],
"details": "The Downloadable RADIUS ACLs feature in Cisco PIX and VPN 3000 concentrators, when creating an ACL on the Cisco Secure Access C... | 669 |
585 | <reponame>KevinKecc/caffe2<filename>caffe2/mobile/contrib/opengl/core/GLImageAllocator.cc
/**
* Copyright (c) 2016-present, Facebook, 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... | 1,373 |
14,668 | <filename>chrome/browser/android/omnibox/autocomplete_controller_android.cc
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/android/omnibox/autocomplete_controller_android.h"
#... | 8,282 |
5,169 | <reponame>Gantios/Specs
{
"name": "MTNetworkService",
"version": "1.0.1",
"swift_versions": "5.0",
"summary": "MTNetworkService is a framework that allow consume web service.",
"description": "I created this library to other developers, who wants implement web service in his/her proyects",
"homepage": "http... | 268 |
799 | {
"defaultIncidentType": "TheHive",
"feed": false,
"id": "TheHive - Classifier",
"keyTypeMap": {
"case": "TheHive"
},
"name": "TheHive - Classifier",
"propagationLabels": [
"all"
],
"transformer": {
"complex": null,
"simple": "_type"
},
"type": "classification",
"version": -1,
... | 168 |
1,097 | // Commander X16 Emulator
// Copyright (c) 2019, 2020 <NAME>
// All rights reserved. License: 2-clause BSD
#define VER "38"
#define VER_NAME "Kyoto"
#define VER_INFO "### Release 38 (\"Kyoto\")\n"
| 70 |
1,041 | <reponame>GiannisMP/ebean
package io.ebeaninternal.server.querydefn;
import io.ebeaninternal.api.BindValuesKey;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class BindValuesKeyTest {
@Test
public void update_with_null() {
BindValuesKey hash = new BindV... | 351 |
937 | <gh_stars>100-1000
package com.oath.cyclops.internal.stream.spliterators.push;
import cyclops.reactive.ReactiveSeq;
import cyclops.reactive.Spouts;
import java.util.function.BiPredicate;
import java.util.function.BinaryOperator;
import java.util.function.Consumer;
/**
* Created by johnmcclean on 12/01/2017.
*/
pub... | 2,350 |
2,293 | <filename>dynaconf/vendor/click/globals.py
_A=None
from threading import local
_local=local()
def get_current_context(silent=False):
try:return _local.stack[-1]
except (AttributeError,IndexError):
if not silent:raise RuntimeError('There is no active click context.')
def push_context(ctx):_local.__dict__.setdefault(... | 186 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Saint-Porchaire","circ":"5ème circonscription","dpt":"Charente-Maritime","inscrits":1276,"abs":715,"votants":561,"blancs":39,"nuls":8,"exp":514,"res":[{"nuance":"DIV","nom":"<NAME>","voix":277},{"nuance":"LR","nom":"<NAME>","voix":237}]} | 116 |
2,151 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/appcache/appcache_interceptor.h"
#include <utility>
#include "content/browser/appcache/appcache_backend_impl.h"
#include "cont... | 1,659 |
305 | // Test without serialization:
// RUN: %clang_cc1 -triple x86_64-pc-linux -fdouble-square-bracket-attributes \
// RUN: -Wno-deprecated-declarations -ast-dump -ast-dump-filter Test %s \
// RUN: | FileCheck --strict-whitespace %s
//
// Test with serialization:
// RUN: %clang_cc1 -triple x86_64-pc-linux -fdouble-squ... | 1,106 |
626 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <memory>
#include "QirRuntimeApi_I.hpp"
#include "QSharpSimApi_I.hpp"
namespace Microsoft
{
namespace Quantum
{
class CustomSimulator : public IRuntimeDriver, public IQuantumGateSet, public IDiagnostics
{... | 1,845 |
843 | # Generated by Django 2.2.6 on 2019-11-07 13:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blocklist', '0002_auto_20191107_1302'),
]
operations = [
migrations.RemoveField(
model_name='block',
name='addon',
... | 237 |
3,710 | #include <memory>
// TnzCore includes
#include "tgl.h"
// TnzExt includes
#include "ext/meshtexturizer.h"
// tcg includes
#include "tcg/tcg_list.h"
// Qt includes
#include <QString>
#include <QCache>
#include <QMutex>
#include <QMutexLocker>
#include "ext/ttexturesstorage.h"
//************************************... | 2,780 |
348 | {"nom":"Clermont-Ferrand","circ":"1ère circonscription","dpt":"Puy-de-Dôme","inscrits":48124,"abs":29417,"votants":18707,"blancs":992,"nuls":451,"exp":17264,"res":[{"nuance":"REM","nom":"<NAME>","voix":9589},{"nuance":"FI","nom":"M. <NAME>","voix":7675}]} | 105 |
333 | 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.AlipayResponse;
/**
* ALIPAY API: alipay.data.zbdm.lineage.query response.
*
* @author <NAME>
* @since 1.0, 2021-02-02 1... | 615 |
2,517 | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#define CAF_SUITE intrusive_ptr
#include "caf/intrusive_ptr.hpp"
#include "core-test.hpp... | 1,269 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Helsinki","circ":"3ème circonscription","dpt":"Français établis hors de France","inscrits":1760,"abs":1370,"votants":390,"blancs":6,"nuls":3,"exp":381,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":210},{"nuance":"SOC","nom":"Mme <NAME>","voix":171}]} | 121 |
1,379 | <filename>clients/cpp/src/SocketStoreClientFactory.cpp
/* -*- C++ -*-; c-basic-offset: 4; indent-tabs-mode: nil */
/*
* Implementation for SocketStoreClientFactory class.
*
* Copyright (c) 2009 <NAME>, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in ... | 4,545 |
1,821 | <reponame>hangqiu/pixie
/*
* Copyright 2018- The Pixie Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 377 |
1,682 | <reponame>haroldl/rest.li<filename>restli-int-test-server/src/main/java/com/linkedin/restli/examples/greetings/server/NullGreetingsResourceImpl.java
/*
Copyright (c) 2014 LinkedIn Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Lice... | 5,483 |
370 | <filename>ehreader/src/tw/skyarrow/ehreader/app/download/DownloadDeleteConfirmDialog.java
package tw.skyarrow.ehreader.app.download;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import tw.skya... | 599 |
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.
package org.chromium.chrome.browser.gesturenav;
import static org.chromium.chrome.browser.gesturenav.NavigationSheetCoordinator.NAVIGATION_LIST_ITEM_TYPE... | 3,277 |
1,760 | #include "bits/stdc++.h"
using namespace std;
void setIO(string s) {
ios_base::sync_with_stdio(0); cin.tie(0);
freopen((s+".in").c_str(),"r",stdin);
freopen((s+".out").c_str(),"w",stdout);
}
int N;
bool G[300][300],GG[300][300];
long long ans;
void rot() {
for (int i = 0; i < N; ++i)
for (int j = 0; j < N;... | 733 |
8,865 | <reponame>hnakamur/golang-1.13-race-detector-runtime-deb
//===-- dd_rtl.h ----------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//=... | 581 |
356 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
def execute_rule(**kwargs):
sql = kwargs.get("sql")
m = 0
n = 0
sql_content = []
sqlbegin = 0
sqlend = 0
str_len = len(sql)
for k in range(str_len):
if sql[k] == "(":
m = m + 1
if sql[k] == ")":
m = m - ... | 356 |
368 | /*
Plugin-SDK (Grand Theft Auto 3) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CWanted.h"
PLUGIN_SOURCE_FILE
PLUGIN_VARIABLE int &CWanted::MaximumWantedLevel = *reinterpret_cast<int *>(GLOB... | 3,407 |
456 | <filename>disabled/atom_flight_manual.json
{
"index_name": "atom_flight_manual",
"start_urls": [
"https://docsearch-atom-flight-manual.netlify.com/"
],
"stop_urls": [],
"selectors": {
"lvl0": {
"selector": "//div[contains(@class, 'toc')]//li[contains(concat(' ', @class, ' '), ' selected ')][1]/p... | 288 |
5,098 | /* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2020 Google LLC.
*/
#ifndef PLATFORMS_ASIC_SW_KERNEL_COMMON_GASKET_GASKET_TYPES_H_
#define PLATFORMS_ASIC_SW_KERNEL_COMMON_GASKET_GASKET_TYPES_H_
#ifdef __KERNEL__
#include <linux/types.h>
typedef uint8_t uint8;
typedef uint16_t uint16;
typedef uint32_t uint3... | 241 |
2,113 | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... | 901 |
2,338 | // RUN: %clang_cc1 -x c++ %s -fblocks -fsyntax-only -Wcast-function-type -triple x86_64-- -verify
int x(long);
typedef int (f1)(long);
typedef int (f2)(void*);
typedef int (f3)(...);
typedef void (f4)(...);
typedef void (f5)(void);
typedef int (f6)(long, int);
typedef int (f7)(long,...);
typedef int (&f8)(long, int);... | 630 |
351 | <reponame>joshtburdick/deepTools
import sys
import os
from deeptoolsintervals import GTF
from deeptools.bamHandler import openBam
import matplotlib as mpl
mpl.use('Agg')
from deeptools import cm # noqa: F401
import numpy as np
debug = 0
def smartLabel(label):
"""
Given a file name, likely with a path, retu... | 6,456 |
14,425 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 2,675 |
453 | #include "headers/atan2d2.h"
static __inline double _atan2(double y, double x)
{
return spu_extract(_atan2d2(spu_promote(y, 0), spu_promote(x, 0)), 0);
}
| 69 |
636 | <reponame>hadoop835/fluent-mybatis
package cn.org.atool.fluent.mybatis.segment.model;
/**
* 在sql语句特定位置中插入特定语句或注释
*
* @author darui.wu
*/
public enum HintType {
/**
* hint select ...
* hint update ...
* hint delete ...
*/
Before_All,
/**
* select hint ... from table ...
* u... | 311 |
545 | #include <vector>
#include <iostream>
int main() {
std::vector<int> vi;
std::cout << "Size: " << vi.size()
<< "\tCapacity : " << vi.capacity() << std::endl;
vi.push_back(1);
std::cout << "Size: " << vi.size()
<< "\tCapacity : " << vi.capacity() << std::endl;
for (std::vector<int>::s... | 281 |
4,879 | #include "drape/gl_gpu_program.hpp"
#include "drape/gl_functions.hpp"
#include "drape/render_state.hpp"
#include "drape/support_manager.hpp"
#include "base/logging.hpp"
#include <set>
namespace dp
{
GLGpuProgram::GLGpuProgram(std::string const & programName,
ref_ptr<Shader> vertexShader, r... | 1,548 |
424 | <filename>vertx-pg-client/src/main/java/io/vertx/pgclient/SslMode.java
/*
* Copyright (C) 2018 <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... | 705 |
7,676 | """Ray-Horovod Elastic training unit tests.
This is currently not run on the Ray CI.
"""
from contextlib import contextmanager
import psutil
import os
import socket
import time
import mock
import pytest
import ray
from horovod.common.util import gloo_built
from horovod.runner.elastic.discovery import HostDiscovery
fro... | 6,651 |
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 ... | 642 |
711 | /*
* Copyright 2014 JBoss 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... | 798 |
5,079 | <gh_stars>1000+
# -*- coding: utf-8 -*-
# Copyright (C) 2000-2004 <NAME> <<EMAIL>>
# 2003 <NAME>, <NAME>
# 2004 <NAME>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Founda... | 2,355 |
1,841 | <filename>test/cuda/test_autotuner_utility.cc
/**
* Copyright (c) 2017-present, Facebook, 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/LI... | 2,049 |
852 | <gh_stars>100-1000
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "DQMOffline/Trigger/plugins/TriggerDQMBase.h"
#include "CommonTools/TriggerUtil... | 8,310 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/033/03312304.json
{"nom":"Neuffons","circ":"12ème circonscription","dpt":"Gironde","inscrits":135,"abs":66,"votants":69,"blancs":8,"nuls":3,"exp":58,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":29},{"nuance":"FI","nom":"M. <NAME>","voix":29}]} | 131 |
375 | import numpy as np
import sys
from random import randint
import torch
import torch.nn as nn
from torch.autograd import Variable
from scipy.io import loadmat
from scipy.io import savemat
mat = loadmat('./cache/script2.mat')
codeJ = mat['codeJ']
dim_voc = 539
bsz = 1
dim_h = 100
dim_cate_new = 19
dim_color = 17
dim_gend... | 822 |
439 | /**
* Baidu.com,Inc.
* Copyright (c) 2000-2013 All Rights Reserved.
*/
package com.baidu.hsb.parser.ast.fragment.tableref;
import java.sql.SQLSyntaxErrorException;
import java.util.ArrayList;
import java.util.List;
import com.baidu.hsb.parser.ast.expression.primary.Identifier;
import com.baidu.hsb.parser.visitor.S... | 950 |
335 | <reponame>Safal08/Hacktoberfest-1<filename>M/Mute_verb.json
{
"word": "Mute",
"definitions": [
"Deaden, muffle, or soften the sound of.",
"Muffle the sound of (a musical instrument), especially by the use of a mute.",
"Reduce the strength or intensity of."
],
"parts-of-speech": "... | 136 |
5,015 | package com.flipboard.bottomsheet.sample;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.flipboard.bottomsheet.BottomSheetLayout;
import com.flipboard.bottomsheet.R;
import com.flipboard.bottomsheet.commons.ImagePickerSheetView;
/**
* Activity demonst... | 389 |
1,020 | <filename>codegen/src/test/java/org/robobinding/codegen/presentationmodel/processor/PresentationModelInfoProcessor.java<gh_stars>1000+
package org.robobinding.codegen.presentationmodel.processor;
import org.robobinding.codegen.apt.Logger;
import org.robobinding.codegen.apt.ProcessingContext;
import org.robobinding.cod... | 208 |
2,338 | <gh_stars>1000+
//===-- ObjCLocalizeStringLiteralTests.cpp ----------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===-----------... | 462 |
724 | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the ... | 983 |
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 ... | 4,429 |
8,092 | <reponame>npodewitz/airflow<gh_stars>1000+
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, V... | 709 |
6,270 | <reponame>gabegorelick/aws-sdk-js<filename>.changes/2.1000.0.json
[
{
"type": "feature",
"category": "CodeBuild",
"description": "CodeBuild now allows you to select how batch build statuses are sent to the source provider for a project."
},
{
"type": "feature",
"categ... | 178 |
3,477 | // Copyright Microsoft and Project Verona Contributors.
// SPDX-License-Identifier: MIT
#pragma once
#include "compiler/visitor.h"
namespace verona::compiler
{
template<typename... Args>
class RecursiveExprVisitor : public ExprVisitor<void, Args...>
{
protected:
void visit_field(FieldExpr& expr, Args... a... | 1,364 |
337 | class B extends A {
}
interface Y extends X {
}
interface U extends Z {
} | 28 |
715 | <reponame>iabhimanyu/Algorithms
import java.util.*;
import java.io.*;
class Factorial {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println("the factorial of this number is: " + factorial(n));
}
//a recursive function to calculate n!
... | 159 |
2,151 | <filename>jre_emul/android/platform/libcore/ojluni/src/main/java/java/nio/ByteBuffer.java
/*
* Copyright (C) 2014 The Android Open Source Project
* Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free soft... | 22,317 |
1,071 | package com.oracle.springapp.dao.impl;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.support.JdbcDaoSupport;
import org.springframework.stereotype.Repository;
import com.o... | 410 |
1,219 | <gh_stars>1000+
/*
* Copyright 2013 Bazaarvoice, 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 applic... | 4,801 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Coudeville-sur-Mer","circ":"3ème circonscription","dpt":"Manche","inscrits":691,"abs":381,"votants":310,"blancs":31,"nuls":7,"exp":272,"res":[{"nuance":"REM","nom":"<NAME>","voix":186},{"nuance":"LR","nom":"<NAME>","voix":86}]} | 112 |
6,717 | //******************************************************************************
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | 2,272 |
370 | # -*- coding: utf-8 -*-
"""
Highmaps Demos
Detailed map, US counties: http://www.highcharts.com/maps/demo/us-counties
"""
from highcharts import Highmap
from highcharts.highmaps.common import RawJavaScriptText
H = Highmap()
"""
This example shows how to make the map of US unemployment rates at county level in April 2... | 2,027 |
789 | package io.advantageous.qbit.jsend;
/**
* https://labs.omniti.com/labs/jsend
*/
public enum JSendStatus {
SUCCESS("success"), FAIL("fail"), ERROR("error");
private final String status;
JSendStatus(final String status) {
this.status = status;
}
@Override
public String toString() {... | 139 |
751 | <reponame>xerothermic/vpp<filename>test/vpp_vxlan_gpe_tunnel.py
from vpp_interface import VppInterface
from vpp_papi import VppEnum
INDEX_INVALID = 0xffffffff
DEFAULT_PORT = 4790
UNDEFINED_PORT = 0
def find_vxlan_gpe_tunnel(test, src, dst, s_port, d_port, vni):
ts = test.vapi.vxlan_gpe_tunnel_v2_dump(INDEX_INVA... | 1,747 |
831 | /*
* 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 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... | 1,528 |
366 | <filename>videos/manimTutorial/part5_Coordinates.py
from manimlib.imports import *
from manim_sandbox.utils.imports import *
from manim_sandbox.videos.manimTutorial.utils import *
from manim_projects.tony_useful.imports import *
numberline_t2c = {
"NumberLine": BLUE_D,
"x_min": ORANGE,
"x_max": ORANGE,
... | 18,475 |
4,812 | //===- NewGVN.h - Global Value Numbering Pass -------------------*- 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
//
//===---------------------------... | 287 |
16,989 | /*
* Copyright 2020 The Bazel 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 a... | 1,583 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.