max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
559 | /**
* Copyright (c) 2016-2017 Netflix, 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 require... | 1,670 |
579 | /**
* @file rpc_connect_handlers.cc
* @brief Handlers for session management connect requests and responses.
*/
#include "rpc.h"
namespace erpc {
// We need to handle all types of errors in remote arguments that the client can
// make when calling create_session(), which cannot check for such errors.
template <cla... | 3,200 |
562 | from datetime import datetime
from sqlalchemy import Column, DateTime, ForeignKey, Integer, String
from sqlalchemy.schema import Index
from freight.config import db
from freight.db.types.json import JSONEncodedDict
DEFAULT_REF = "master"
class App(db.Model):
"""
Example App configuration:
{
"en... | 1,195 |
556 | <gh_stars>100-1000
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
package me.yohom.amap_map_fluttify.sub_handler;
import android.os.Bundle;
import android.util.Log;
import java.util.ArrayList;
import java... | 149,497 |
348 | {"nom":"Merry-Sec","circ":"1ère circonscription","dpt":"Yonne","inscrits":149,"abs":73,"votants":76,"blancs":3,"nuls":2,"exp":71,"res":[{"nuance":"LR","nom":"<NAME>","voix":39},{"nuance":"REM","nom":"<NAME>","voix":32}]} | 88 |
407 | <reponame>choleece/nacos<filename>api/src/main/java/com/alibaba/nacos/api/config/convert/NacosConfigConverter.java
/*
* Copyright 1999-2018 Alibaba Group Holding 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 obt... | 495 |
522 | /**
* Copyright (C) 2004-2011 Jive Software. 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 requir... | 1,288 |
6,989 | <reponame>HeyLey/catboost<filename>contrib/libs/lz4/generated/lz4_12.cpp
#define LZ4_MEMORY_USAGE 12
#define LZ4_NAMESPACE lz4_12
#include "lz4_ns.h"
| 76 |
394 | package net.earthcomputer.multiconnect.protocols.v1_8.mixin;
import net.earthcomputer.multiconnect.impl.MixinHelper;
import net.minecraft.entity.data.TrackedData;
import net.minecraft.entity.passive.BatEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
@Mixin(BatEntity.... | 174 |
313 | from sql_metadata import Parser
def test_fully_qualified_select_and_condition():
query = """
select dbo.a.col, b.col from dbo.a, db_two.dbo.b
where dbo.a.col = b.col
"""
parser = Parser(query)
assert parser.columns == ["dbo.a.col", "b.col"]
assert parser.tables == ["dbo.a", "db_two.dbo.b"... | 325 |
335 | {
"word": "Sentimentality",
"definitions": [
"Exaggerated and self-indulgent tenderness, sadness, or nostalgia."
],
"parts-of-speech": "Noun"
} | 70 |
682 | <reponame>HackerFoo/vtr-verilog-to-routing<filename>libs/EXTERNAL/libtatum/libtatumparse/tatumparse/tatumparse_common.hpp<gh_stars>100-1000
#ifndef TATUMPARSE_COMMON_HPP
#define TATUMPARSE_COMMON_HPP
#include "tatumparse.hpp"
namespace tatumparse {
struct NodeTag {
NodeTag(int domain, float arr_val, floa... | 268 |
305 | <gh_stars>100-1000
#ifndef BOXES_H_
#define BOXES_H_
#include "game/camera.h"
#include "game/level/platforms.h"
#include "lava.h"
typedef struct Boxes Boxes;
typedef struct Player Player;
typedef struct Player Player;
typedef struct RectLayer RectLayer;
Boxes *create_boxes_from_rect_layer(const RectLayer *layer, Rig... | 245 |
398 | package io.joyrpc.exception;
/*-
* #%L
* joyrpc
* %%
* Copyright (C) 2019 joyrpc.io
* %%
* 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/LICENS... | 688 |
348 | {"nom":"Rousset","circ":"14ème circonscription","dpt":"Bouches-du-Rhône","inscrits":3664,"abs":1964,"votants":1700,"blancs":210,"nuls":85,"exp":1405,"res":[{"nuance":"REM","nom":"<NAME>-<NAME>","voix":928},{"nuance":"LR","nom":"<NAME>","voix":477}]} | 103 |
379 | package org.datavec.api.records.reader.impl.transform;
import lombok.AllArgsConstructor;
import org.datavec.api.conf.Configuration;
import org.datavec.api.records.Record;
import org.datavec.api.records.SequenceRecord;
import org.datavec.api.records.listener.RecordListener;
import org.datavec.api.records.metadata.Recor... | 3,231 |
584 | package com.mercury.platform.ui.adr.components.panel.ui.impl;
import com.mercury.platform.shared.config.descriptor.adr.AdrProgressBarDescriptor;
public interface ProgressBarUIFactory {
boolean isSuitable(AdrProgressBarDescriptor descriptor);
MercuryProgressBarTrackerUI getUI();
}
| 94 |
1,609 | <filename>rdkit/ML/KNN/UnitTestKNN.py
#
# Copyright (C) 2003 Rational Discovery LLC
# All Rights Reserved
""" unit testing code for knn models """
import doctest
import os.path
import unittest
from rdkit import RDConfig
from rdkit import RDRandom
from rdkit.ML.Data import DataUtils
from rdkit.ML.KNN import CrossVa... | 1,858 |
1,520 | package org.cnodejs.android.md.model.entity;
import android.support.annotation.NonNull;
import com.google.gson.annotations.SerializedName;
import org.cnodejs.android.md.model.api.ApiDefine;
import org.cnodejs.android.md.util.FormatUtils;
import org.joda.time.DateTime;
import org.jsoup.nodes.Document;
public class T... | 1,314 |
1,510 | /*
* 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 ... | 10,245 |
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 ... | 3,891 |
9,321 | <reponame>cfeibiao/chinese-xinhua
# -*- coding: utf-8 -*-
"""
author: pwxcoo
date: 2018-02-04
description: 抓取下载歇后语并保存
"""
import requests, json
from bs4 import BeautifulSoup
destination_site = ['http://xhy.5156edu.com/html2/xhy.html', 'http://xhy.5156edu.com/html2/xhy_2.html']
def downloader(url):
"""
下... | 504 |
2,830 | // Copyright 2018 Twitter, Inc.
// Licensed under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
package com.twitter.twittertext;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.twitt... | 6,635 |
5,447 | <reponame>RafLit/gluon-cv<filename>gluoncv/auto/estimators/torch_image_classification/utils/metrics.py
import torch
from torch.nn.functional import softmax
def rmse(outputs, target):
return torch.sqrt(torch.mean((softmax(outputs, dim=0)-target)**2))
| 98 |
14,668 | // 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 THIRD_PARTY_BLINK_RENDERER_CORE_HTML_FORMS_MOCK_FILE_CHOOSER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_HTML_FORMS_MOCK_FILE_CHOOSER_H_
#include ... | 1,116 |
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... | 2,641 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Mittainvilliers-Vérigny","dpt":"Eure-et-Loir","inscrits":571,"abs":119,"votants":452,"blancs":45,"nuls":6,"exp":401,"res":[{"panneau":"1","voix":229},{"panneau":"2","voix":172}]} | 98 |
571 | from pyfora.algorithms.LinearRegression import linearRegression
from pyfora.algorithms.logistic.BinaryLogisticRegressionFitter import BinaryLogisticRegressionFitter
from pyfora.algorithms.regressionTrees.RegressionTree import RegressionTreeBuilder
from pyfora.algorithms.regressionTrees.GradientBoostedClassifierBuilder ... | 130 |
312 | <reponame>BulkSecurityGeneratorProject/alchemy
package com.dfire.platform.alchemy.descriptor;
import com.dfire.platform.alchemy.common.Constants;
import java.util.Optional;
import java.util.Properties;
import org.apache.flink.api.common.serialization.SerializationSchema;
import org.apache.flink.streaming.connectors.ka... | 443 |
329 | from collections import OrderedDict
import unittest
from unittest.mock import patch, call
from homu import action
from homu.action import LabelEvent
TRY_CHOOSER_CONFIG = {
"buildbot": {
"builders": ["mac-rel", "mac-wpt", "linux-wpt-1", "linux-wpt-2"],
# keeps the order for testing output
"... | 6,645 |
1,837 | package com.dianping.zebra.shard.util;
import org.junit.Assert;
import org.junit.Test;
import java.text.ParseException;
import java.text.SimpleDateFormat;
/**
* Created by wxl on 17/4/13.
*/
public class ShardDateParseUtilTest {
@Test
public void testParseDate() throws ParseException {
SimpleDate... | 2,555 |
1,072 | import torch
from .. import ModelWrapper, register_model_wrapper
@register_model_wrapper("sagn_mw")
class SagnModelWrapper(ModelWrapper):
def __init__(self, model, optimizer_config):
super(SagnModelWrapper, self).__init__()
self.model = model
self.optimizer_config = optimizer_config
... | 925 |
950 | #include <iostream>
#include <vector>
#include <algorithm>
#include <unordered_map>
using namespace std;
struct stu{
string id;
int sco;
};
struct site{
string siteId;
int cnt;
};
bool cmp1(stu a, stu b) {
return a.sco == b.sco ? a.id < b.id : a.sco > b.sco;
}
bool cmp2(site a, site b) {
return a.cnt == b.... | 965 |
335 | <gh_stars>100-1000
{
"word": "Hummingbird",
"definitions": [
"A small nectar-feeding tropical American bird that is able to hover and fly backwards, and typically has colourful iridescent plumage."
],
"parts-of-speech": "Noun"
} | 90 |
578 | // Copyright (c) 2019 <NAME> <EMAIL>
// This software is provided 'as-is' under the zlib License, see the LICENSE.txt file.
// This notice and the license may not be removed or altered from any source distribution.
#ifdef TWO_MODULES
module;
#include <infra/Cpp20.h>
module TWO(ui);
#else
#include <infra/ToString.h>... | 1,432 |
4,054 | <reponame>Anlon-Burke/vespa
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "attribute_resource_usage.h"
#include <iostream>
namespace storage::spi {
std::ostream& operator<<(std::ostream& out, const AttributeResourceUsage& attribute_resource_usage)
{... | 159 |
5,169 | {
"name": "AFOFoundation",
"version": "1.0.7",
"summary": "This library is for extending Foundation libraries.",
"description": "Inherit and system classes, compile extensions, and reuse.",
"homepage": "https://github.com/PangDuTechnology/AFOFoundation.git",
"license": "MIT",
"authors": {
"PangDu": "<... | 753 |
375 | <reponame>spirentitestdevter/RED<filename>src/Eclipse-IDE/org.robotframework.ide.eclipse.main.plugin/src/org/robotframework/ide/eclipse/main/plugin/views/debugshell/ShellTokensScanner.java
/*
* Copyright 2019 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for... | 4,118 |
848 | /*
* Copyright 2019 Xilinx 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 ... | 1,376 |
1,138 | import ssg.utils
def preprocess(data, lang):
data["sysctlid"] = ssg.utils.escape_id(data["sysctlvar"])
if not data.get("sysctlval"):
data["sysctlval"] = ""
ipv6_flag = "P"
if data["sysctlid"].find("ipv6") >= 0:
ipv6_flag = "I"
data["flags"] = "SR" + ipv6_flag
if "operation" not... | 179 |
1,125 | <filename>third_party/libigl/include/igl/unproject_in_mesh.cpp<gh_stars>1000+
// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2015 <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not dist... | 2,426 |
346 | <gh_stars>100-1000
from django.conf import settings
from django.db import models
from field_history.tracker import FieldHistoryTracker
class Pet(models.Model):
name = models.CharField(max_length=255)
class Person(models.Model):
name = models.CharField(max_length=255)
created_by = models.ForeignKey(sett... | 583 |
3,269 | # Time: O(n)
# Space: O(h)
# Definition for a Node.
class Node(object):
def __init__(self, val=None, children=None):
self.val = val
self.children = children if children is not None else []
# one pass solution without recursion
class Solution(object):
def moveSubTree(self, root, p, q):
... | 3,598 |
312 |
#include <occa/internal/modes/dpcpp/utils.hpp>
#include <occa/internal/modes/dpcpp/device.hpp>
#include <occa/internal/modes/dpcpp/buffer.hpp>
#include <occa/internal/modes/dpcpp/memory.hpp>
#include <occa/internal/utils/sys.hpp>
namespace occa {
namespace dpcpp {
buffer::buffer(modeDevice_t *modeDevice_,
... | 1,212 |
537 | <filename>external/flatcc/flatcc_epilogue.h
/* Include guard intentionally left out. */
#ifdef __cplusplus
}
#endif
#include "flatcc/portable/pdiagnostic_pop.h"
| 59 |
567 | <filename>client/java/src/test/java/org/jolokia/client/request/JsonSerializationTest.java
package org.jolokia.client.request;
/*
* Copyright 2009-2013 <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 co... | 1,590 |
319 | <gh_stars>100-1000
// sgmmbin/sgmm-rescore-lattice.cc
// Copyright 2009-2011 Saarland University (Author: <NAME>)
// Cisco Systems (Author: <NAME>)
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may... | 2,891 |
2,151 | <reponame>zipated/src<gh_stars>1000+
// 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.
package org.chromium.chrome.browser.widget.selection;
import android.content.Context;
import android.content.res.Col... | 3,512 |
2,053 | /*
* Copyright 2015 the original author or authors.
* @https://github.com/scouter-project/scouter
*
* 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... | 4,439 |
836 | """A rule wrapper for an instrumentation test for an android library."""
load(
"//build_extensions:generate_instrumentation_tests.bzl",
"generate_instrumentation_tests",
)
load(
"//build_extensions:infer_java_package_name.bzl",
"infer_java_package_name",
)
load("@io_bazel_rules_kotlin//kotlin:android.b... | 1,125 |
3,857 | <gh_stars>1000+
package dev.skidfuscator.obf.utils;
import lombok.experimental.UtilityClass;
import java.util.Random;
@UtilityClass
public class RandomUtil {
private final Random random = new Random();
public int nextInt() {
return nextInt(Integer.MAX_VALUE);
}
public int nextInt(int bound)... | 177 |
32,544 | <reponame>DBatOWL/tutorials
package com.baeldung.password;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
/**
* Examples of passwords conforming to various specifications, using different libraries.
*
*/
public class StringPasswordUnitTest {
RandomPasswordGenerator passGen = new RandomPas... | 825 |
1,253 | <filename>src/nu/validator/xml/SystemErrErrorHandler.java
/*
* Copyright (c) 2005 <NAME>
* Copyright (c) 2013 Mozilla Foundation
*
* 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 with... | 1,357 |
2,059 | <filename>src/wrapped/wrappedgtk3.c
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dlfcn.h>
#include "wrappedlibs.h"
#include "debug.h"
#include "wrapper.h"
#include "bridge.h"
#include "librarian/library_private.h"
#include "x86emu.h"
#include "emu/x86emu_private.h"
#include... | 13,428 |
498 | <filename>OCRunner/RunEnv/MFPropertyMapTable.h
//
// MFPropertyMapTable.h
// MangoFix
//
// Created by yongpengliang on 2019/4/26.
// Copyright © 2019 yongpengliang. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RunnerClasses+Execute.h"
NS_ASSUME_NONNULL_BEGIN
@interface MFPropertyMapTableIt... | 321 |
1,541 | <filename>src/main/java/com/bwssystems/HABridge/api/SuccessUserResponse.java<gh_stars>1000+
package com.bwssystems.HABridge.api;
public class SuccessUserResponse {
private UserCreateResponse success;
public UserCreateResponse getSuccess() {
return success;
}
public void setSuccess(UserCreateResponse s... | 129 |
543 | <reponame>sanmusane/AIGames
'''
Function:
show the effect of trained model used in game
Author:
Charles
微信公众号:
Charles的皮卡丘
'''
import torch
import config
from nets.nets import DQNet, DQNAgent
from gameAPI.game import GamePacmanAgent
'''run demo'''
def runDemo():
if config.operator == 'ai':
game_pacman_agent = G... | 281 |
660 | <reponame>ashakhno/media-driver
/*
* Copyright (c) 2011-2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the right... | 712 |
1,444 | <filename>Mage.Sets/src/mage/cards/i/IndrikStomphowler.java
package mage.cards.i;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
imp... | 465 |
950 | #include <iostream>
using namespace std;
int main() {
string s;
getline(cin, s);
int maxvalue = 0, temp;
int len = s.length();
for(int i = 0; i < len; i++) {
temp = 1;
for(int j = 1; j < len; j++) {
if(i - j < 0 || i + j >= len || s[i - j] != s[i + j])
bre... | 378 |
979 | #pragma once
const char* hello_message();
| 15 |
542 | <filename>porter/porter-cluster/src/main/java/cn/vbill/middleware/porter/cluster/standalone/StandaloneClusterNodeListener.java<gh_stars>100-1000
/*
* Copyright ©2018 vbill.cn.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... | 3,907 |
4,036 | #include "a.h"
#include <a.h>
#include "b.h"
static int has_angle_b = __has_include(<b.h>);
// semmle-extractor-options: -I${testdir}/dir2 -iquote ${testdir}/dir1 --edg --clang
| 81 |
13,111 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 1,489 |
1,403 | /*
* IA32Opcode.h
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2019 by <NAME>)
* See "LICENSE.txt" for license information.
*/
#ifndef LLGL_IA32_OPCODE_H
#define LLGL_IA32_OPCODE_H
#include <LLGL/Export.h>
#include <vector>
#include <cstdint>
namespace LLGL
{
namespace JIT
{
enum Opcode... | 383 |
778 | <filename>applications/HDF5Application/custom_io/hdf5_container_gauss_point_output.cpp<gh_stars>100-1000
// | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// ... | 5,181 |
2,177 | <reponame>denghuafeng/nutz<filename>test/org/nutz/ioc/json/pojo/JavaValueTest.java
package org.nutz.ioc.json.pojo;
public class JavaValueTest {
public static String abc(String path, int k) {
return path + "," + k;
}
}
| 101 |
2,151 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_GOOGLE_ASSISTANT_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_GOOGLE_ASSISTANT_HANDLER_H... | 456 |
345 | <reponame>cdoebler1/AIML2<gh_stars>100-1000
import os
import os.path
import re
import unittest
from programy.mappings.person import PersonCollection
from programy.storage.entities.store import Store
class PersonsStoreAsserts(unittest.TestCase):
def assert_lookup_storage(self, store):
store.empty()
... | 1,395 |
435 | package datawave.query.jexl.visitors.validate;
import datawave.query.jexl.visitors.BaseVisitor;
import org.apache.commons.jexl2.parser.ASTAdditiveNode;
import org.apache.commons.jexl2.parser.ASTAdditiveOperator;
import org.apache.commons.jexl2.parser.ASTAmbiguous;
import org.apache.commons.jexl2.parser.ASTAndNode;
imp... | 4,279 |
2,151 | <filename>ios/chrome/browser/ui/omnibox/popup/omnibox_popup_mediator.h
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_POPUP_MEDIATOR_H_
#define IOS_CHROME_... | 849 |
881 | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | 1,611 |
2,360 | # 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 PyTuiview(PythonPackage):
"""TuiView is a lightweight raster GIS with powerful raster attr... | 398 |
856 | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <string>
#include <utility>
namespace
{
struct LstmInput
{
LstmInput(const std::vector<float>& inputSeq,
const std::vector<float>& stateH,
const std::vector<float>& stateC)
... | 304 |
8,238 | /*
* %CopyrightBegin%
*
* Copyright Ericsson AB 2002-2016. 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
... | 982 |
852 | #ifndef CommonTools_Utils_MethodStack_h
#define CommonTools_Utils_MethodStack_h
/* \class reco::parser::MethodStack
*
* Stack of methods
*
* \author <NAME>, INFN
*
*/
#include "CommonTools/Utils/interface/MethodInvoker.h"
#include <vector>
namespace reco {
namespace parser {
typedef std::vector<MethodIn... | 167 |
369 | // Copyright (c) 2017-2021, Mudita <NAME>.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include <catch2/catch.hpp>
#include "Device.hpp"
#include <btstack_util.h>
Devicei genDev()
{
Devicei from("from");
bd_addr_t addr{0, 1, 2, 3, 4, 5};
from.setAddress(&ad... | 766 |
624 | MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.message... | 418 |
2,945 | <reponame>jie9808/IDDD_Samples<filename>iddd_agilepm/src/main/java/com/saasovation/agilepm/domain/model/product/backlogitem/StoryPoints.java
// Copyright 2012,2013 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... | 774 |
490 | <filename>package.json
{
"name": "p5ycho",
"version": "1.0.0",
"description": "Learning to master p5.js",
"repository": "https://github.com/kgolid/p5ycho.git",
"author": "<NAME>",
"license": "MIT",
"scripts": {
"watch": "webpack-dev-server --config webpack.config.js --hot",
"build": "webpack -d --... | 311 |
460 | #include "../../src/qt3support/painting/q3paintdevicemetrics.h"
| 27 |
25,073 | package cc.mrbird.batch.entity.job;
import cc.mrbird.batch.entity.TestData;
import cc.mrbird.batch.processor.TestDataFilterItemProcessor;
import cc.mrbird.batch.processor.TestDataTransformItemPorcessor;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.ba... | 576 |
503 | /**
* Yobi, Project Hosting SW
*
* Copyright 2014 NAVER Corp.
* http://yobi.io
*
* @Author <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/licen... | 631 |
794 | <filename>android/app/src/main/java/github/tornaco/android/thanos/settings/SettingsViewModel.java
package github.tornaco.android.thanos.settings;
import android.app.Application;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import android.os.RemoteException;
import android.util.Log;
import androidx.... | 5,194 |
713 | package org.infinispan.server.core.dataconversion.xml;
import java.io.IOException;
import java.io.Reader;
import org.infinispan.commons.configuration.io.xml.MXParser;
import com.thoughtworks.xstream.converters.ErrorWriter;
import com.thoughtworks.xstream.io.StreamException;
import com.thoughtworks.xstream.io.naming.... | 963 |
404 | <reponame>nrdxp/k<gh_stars>100-1000
// Copyright (c) 2015-2019 K Team. All Rights Reserved.
package org.kframework.compile;
import org.kframework.compile.ConfigurationInfo;
import org.kframework.compile.ConfigurationInfoFromModule;
import org.kframework.compile.LabelInfo;
import org.kframework.compile.LabelInfoFromMod... | 1,140 |
440 | <filename>src/main/java/com/yb/socket/listener/DefaultExceptionListener.java<gh_stars>100-1000
package com.yb.socket.listener;
import com.yb.socket.service.WrappedChannel;
import io.netty.channel.ChannelHandlerContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author <EMAIL>
* @date 2018/12/30... | 290 |
341 | <filename>src/main/java/com/aventstack/extentreports/model/NamedAttribute.java
package com.aventstack.extentreports.model;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.SuperBuilder;
@Getter
@Sett... | 177 |
335 | <reponame>Safal08/Hacktoberfest-1<filename>G/G_noun.json
{
"word": "G",
"definitions": [
"The seventh letter of the alphabet.",
"Denoting the next after F in a set of items, categories, etc.",
"Denoting the seventh file from the left, as viewed from White's side of the board.",
"... | 182 |
2,151 | <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.
#include <algorithm>
#include "base/macros.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "build... | 1,670 |
403 | <reponame>guanzhongxing/craft-atom-rpc
package io.craft.atom.nio;
import io.craft.atom.io.AbstractIoHandler;
import io.craft.atom.io.Channel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author mindwind
* @version 1.0, 2011-12-19
*/
public class NioAcceptorNapHandler extends Abstrac... | 540 |
3,494 | <gh_stars>1000+
package org.libcinder.samples.getspecialdirs;
import org.libcinder.app.CinderNativeActivity;
public class GetSpecialDirsActivity extends CinderNativeActivity {
static final String TAG = "GetSpecialDirsActivity";
}
| 74 |
569 | <gh_stars>100-1000
package com.anarchy.classifyview.core;
/**
* <p/>
* Date: 16/6/7 16:41
* Author: <EMAIL>
* <p/>
*/
public class Bean {
}
| 64 |
1,953 | # Authors: <NAME> <<EMAIL>>
# License: BSD Style.
from .commands.utils import main
if __name__ == '__main__':
main()
| 47 |
2,151 | <reponame>zipated/src<filename>third_party/blink/renderer/core/editing/markers/grammar_marker_test.cc
// Copyright 2017 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 "third_party/blink/renderer/core/editing/ma... | 358 |
1,089 | package org.zalando.logbook.json;
import java.util.function.Predicate;
final class JsonMediaType {
private JsonMediaType() {
}
static final Predicate<String> JSON = contentType -> {
if (contentType == null) {
return false;
}
// implementation note: manually coded for ... | 562 |
1,444 | <reponame>amc8391/mage
package mage.cards.f;
import mage.MageInt;
import mage.abilities.common.SpellCastControllerTriggeredAbility;
import mage.abilities.effects.common.counter.ProliferateEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
i... | 480 |
879 | package org.zstack.compute.vm;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.cloudbus.CloudBusCallBack;
impor... | 966 |
2,151 | // Copyright (c) 2012 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 "printing/metafile_skia_wrapper.h"
#include "third_party/skia/include/core/SkMetaData.h"
#include "third_party/skia/include/core/SkRefCnt.h"
... | 517 |
3,366 | <gh_stars>1000+
/*
=================================================================================
C++ Primer 5th Exercise Answer Source Code
Copyright (C) 2014-2015 github.com/pezy/Cpp-Primer
Disc_quote
If you have questions, try to connect with me: pezy<<EMAIL>>
=================================================... | 293 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.