max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
732 | <reponame>liuxilu/afdko
// Generated from FeatParser.g4 by ANTLR 4.9.2
#pragma once
#include "antlr4-runtime.h"
#include "FeatParserVisitor.h"
/**
* This class provides an empty implementation of FeatParserVisitor, which can be
* extended to create a visitor which only needs to handle a subset of the available ... | 4,624 |
538 | package com.datatransfer;
import android.content.Intent;
import android.widget.Toast;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.Promise;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContext... | 1,805 |
360 | <filename>examples/plot_sine_wave.py
"""
=============================
Plotting simple sine function
=============================
A simple example plotting a fit of the sine function.
"""
import numpy
import matplotlib.pyplot as plt
from pyearth import Earth
# Create some fake data
numpy.random.seed(2)
m = 10000
n ... | 283 |
563 | #include "stdafx.h"
#include "util_dll.h"
#include "util_static_lib2.h"
#include "sub folder/useless_static_lib2.h"
#include <external.h>
int main(int, char**)
{
std::cout << "Hello XCode World, from " CREATION_DATE "!" << std::endl;
PrintBuildString("Exe");
std::vector<int> someArray(5, 6);
// fro... | 219 |
340 | package com.zblog.core.feed;
import java.io.OutputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;
import com.zblog.core.feed.Channel.Article;
impor... | 1,145 |
1,073 | <gh_stars>1000+
//===-- Redeclarable.h - Base for Decls that can be redeclared -*- C++ -*-====//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------------... | 3,551 |
18,012 | /*
* 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 ... | 2,936 |
483 | <reponame>cameronbronstein/notebooks<filename>dev/utils.py
from _ctypes import PyObj_FromPtr
from copy import deepcopy
import json
import re
import numbers
import geojson
from geojson import Polygon, Feature, FeatureCollection
# https://stackoverflow.com/questions/13249415/how-to-implement-custom-indentation-when-pr... | 1,604 |
852 | <reponame>ckamtsikis/cmssw
from PhysicsTools.HeppyCore.framework.analyzer import Analyzer
from PhysicsTools.HeppyCore.statistics.tree import Tree
from ROOT import TFile
class SimpleTreeProducer(Analyzer):
def beginLoop(self, setup):
super(SimpleTreeProducer, self).beginLoop(setup)
self.rootfile = ... | 385 |
1,538 | /*
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: <NAME>
*/
#include "runtime/flet.h"
#include "kernel/instantiate.h"
#include "kernel/abstract.h"
#include "kernel/for_each_fn.h"
#include "kernel/type_checker.h"
#include "kerne... | 8,576 |
704 | <gh_stars>100-1000
package com.netflix.governator.commons_cli.modules;
import java.lang.annotation.Annotation;
import java.util.List;
import javax.inject.Inject;
import org.apache.commons.cli.BasicParser;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.O... | 3,641 |
1,447 | <reponame>Kadantte/VideoSuperResolution
# Copyright (c): <NAME> 2017-2019.
# Author: <NAME>
# Email: <EMAIL>
# Update Date: 2019/5/21 下午4:56
import torch
import torch.nn as nn
import torch.nn.functional as F
from VSR.Backend.Torch.Models.Ops.Loss import total_variance
from .Model import SuperResolution
from .Ops.... | 3,460 |
3,755 | {
"action": "Watch Video",
"action_label": "Learn more about Report Builders",
"creation": "2021-11-24 17:04:18.762838",
"description": "In each module, you will find a host of single-click reports, ranging from financial statements to sales and purchase analytics and stock tracking reports. If a required new repor... | 287 |
2,690 | #include <aslam/splines/EuclideanBSplineDesignVariable.hpp>
namespace aslam {
namespace splines {
EuclideanBSplineDesignVariable::EuclideanBSplineDesignVariable(const bsplines::BSpline & bspline) :
BSplineDesignVariable<3>(bspline)
{
}
Eucli... | 625 |
839 | /**
* 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 m... | 3,324 |
1,455 | /*
* Copyright 2017-2021 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... | 4,546 |
49,076 | /*
* 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... | 965 |
647 | <reponame>whodarewin/copycat
/*
* Copyright 2015 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | 1,631 |
505 | package de.rieckpil.blog.then;
public class UserService {
private final UserRepository userRepository;
public UserService(UserRepository userRepository) {
this.userRepository = userRepository;
}
public Long storeNewUser(String username) {
if (username.length() <= 3) {
throw new IllegalArgumen... | 162 |
2,761 | #include "StyleLexers.h"
// ----------------------------------------------------------------------------
KEYWORDLIST KeyWords_PAS =
{
"absolute abstract alias and array as asm assembler begin break case cdecl class const constructor continue "
"cppdecl default destructor dispose div do downto else end end. ex... | 887 |
10,491 | <gh_stars>1000+
// Place your settings in this file to overwrite the default settings
{
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"go.goroot": "/usr/local/go",
"go.gopath": "/Users/bill/code/go",
"go.enableCodeLens": {"references": false, "runtest": false},
"go... | 888 |
2,474 | <reponame>joemclo/serverless-next.js
{
"/[blog]/[id]": "pages/[blog]/[id].js",
"/customers/[customer]": "pages/customers/[customer].js",
"/api/[blog]/[id]": "pages/api/[blog]/[id].js",
"/api/customers/[customer]": "pages/api/customers/[customer].js"
}
| 121 |
1,781 | <reponame>acety23/algorithms-sedgewick-wayne<gh_stars>1000+
package chapter1.section1;
import edu.princeton.cs.algs4.StdOut;
/**
* Created by <NAME>
*/
public class Exercise24 {
// Parameters example: 90 20
public static void main(String[] args) {
int gcd = gcd(105, 24);
StdOut.println("GDC 1: " + gcd);... | 357 |
390 | /* Copyright 2013-2019 Barefoot Networks, Inc.
* Copyright 2019 VMware, 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
*
* Unle... | 13,068 |
6,240 | /*
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* ... | 1,169 |
411 | <filename>code/ConvertLayer_ncnn.py
"""
Copyright (c) 2017-present, starime.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
""... | 5,767 |
728 | <reponame>santoshkumarkannur/sirix
package org.sirix.axis;
import org.sirix.api.NodeCursor;
import org.sirix.api.NodeReadOnlyTrx;
import org.sirix.api.NodeTrx;
import org.sirix.api.ResourceManager;
import com.google.common.collect.AbstractIterator;
/**
* TemporalAxis abstract class.
*
* @author <NAME>
*
*/
publi... | 184 |
3,037 | package com.jeremyliao.liveeventbus;
import android.arch.lifecycle.Lifecycle;
import android.arch.lifecycle.LifecycleOwner;
import android.arch.lifecycle.Observer;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.NonNull;
import com.jeremyliao.liveeventbus.liveevent.LiveEvent;
i... | 1,354 |
419 | <filename>Code/System/Core/Memory/Memory.h
#pragma once
#include "System/Core/_Module/API.h"
#include "System/Core/Types/IntegralTypes.h"
#include <algorithm>
#include <malloc.h>
//-------------------------------------------------------------------------
#define KRG_USE_CUSTOM_ALLOCATOR 1
#define KRG_DEFAU... | 2,704 |
663 | # (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from subprocess import PIPE, STDOUT, Popen
from datadog_checks.base.utils.common import ensure_bytes
from datadog_checks.base.utils.http import RequestsWrapper
from datadog_checks.dev.errors import Subpro... | 1,253 |
1,602 | //===--- MisExpect.cpp - Check the use of llvm.expect with PGO data -------===//
//
// 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
//
//===---------------------------... | 2,658 |
14,668 | // 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 COMPONENTS_CLIENT_HINTS_BROWSER_CLIENT_HINTS_H_
#define COMPONENTS_CLIENT_HINTS_BROWSER_CLIENT_HINTS_H_
#include <memory>
#include "base/memory/... | 887 |
809 | <reponame>nikitavlaev/embox<filename>third-party/bsp/multiclet/libs/source/wdt/wdt_set_cycle.c<gh_stars>100-1000
#include "wdt.h"
void wdt_set_cycle(int period)
{
WDT_OFF;
WDT_SET_CNT_EN;
WDT_SET_CNT(0x000FFFFF);
WDT_ON;
}
| 119 |
1,779 | //
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 1,526 |
361 | #include "Graph/FlowGraphUtils.h"
#include "Asset/FlowAssetEditor.h"
#include "Graph/FlowGraph.h"
#include "FlowAsset.h"
#include "Toolkits/ToolkitManager.h"
TSharedPtr<FFlowAssetEditor> FFlowGraphUtils::GetFlowAssetEditor(const UObject* ObjectToFocusOn)
{
check(ObjectToFocusOn);
TSharedPtr<FFlowAssetEditor> Flow... | 238 |
3,670 | <gh_stars>1000+
# Copyright 2020 The TensorFlow Probability 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 by ... | 1,510 |
2,039 | <gh_stars>1000+
package org.nd4j.linalg.api.ops.impl.transforms;
import org.nd4j.autodiff.samediff.SDVariable;
import org.nd4j.linalg.api.ops.DynamicCustomOp;
import java.util.Arrays;
import java.util.List;
public class MatrixDiagPart extends DynamicCustomOp {
public MatrixDiagPart() {
//
}
@O... | 258 |
425 | <gh_stars>100-1000
{"Sections":[{"Errors":[],"SectionType":"entitySection","Id":"entitySection_test","Body":"","Name":"test","Type":"/hrf-[0-9]{6}","SynonymsOrPhraseList":[],"Range":{"Start":{"Line":1,"Character":0},"End":{"Line":1,"Character":19}}},{"Errors":[],"SectionType":"simpleIntentSection","Id":"simpleIntentSec... | 277 |
3,372 | /*
* Copyright 2016-2021 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 "licen... | 2,784 |
2,561 |
# coding: utf-8
# In[1]:
import os
os.chdir('H:/')
import pandas as pd
# In[2]:
prod=pd.read_csv('Production_Crops_E_All_Data_(Normalized).csv',
encoding='latin-1')
prix=pd.read_csv('Prices_E_All_Data_(Normalized).csv',
encoding='latin-1')
land=pd.read_csv('Inputs_LandUse_E_A... | 1,120 |
603 | <filename>sympy/matrices/expressions/matmul.py
from sympy import Number
from sympy.core import Mul, Basic, sympify, S
from sympy.core.mul import mul
from sympy.functions import adjoint
from sympy.strategies import (rm_id, unpack, typed, flatten, exhaust,
do_one, new)
from sympy.matrices.common import ShapeError... | 6,575 |
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 "android_webview/browser/page_load_metrics/aw_page_load_metrics_memory_tracker_factory.h"
#include "base/memory/singleton.h"
#include "component... | 545 |
690 | package com.artemis;
import com.artemis.annotations.Fluid;
/**
* Needs to be in same folder as maven plugin.
*
* @author <NAME>
*/
public class MavenFluidGeneratorPreferences extends FluidGeneratorPreferences {
}
| 71 |
5,937 | <filename>src/Microsoft.DotNet.Wpf/src/WpfGfx/shared/debug/DebugLib/DebugLib.cxx
// 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.
//--------------------------------... | 10,581 |
5,447 | <gh_stars>1000+
"""GluonCV Model Zoo"""
# pylint: disable=wildcard-import
from ..resnetv1b import *
| 39 |
4,071 | # Copyright (C) 2016-2018 Alibaba Group Holding Limited
#
# 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... | 4,120 |
2,338 | <gh_stars>1000+
//===--- AttrDocTable.cpp - implements Attr::getDocumentation() -*- 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
//
//===-----------... | 290 |
335 | {
"word": "Inshore",
"definitions": [
"Towards or closer to the shore."
],
"parts-of-speech": "Adverb"
} | 61 |
473 | #include "cgc_stdlib.h"
#define ERR(x, ...) cgc_printf(x "\n", ##__VA_ARGS__)
| 40 |
1,844 | <reponame>jjmata/robosat<gh_stars>1000+
import os
import sys
import time
import argparse
import concurrent.futures as futures
import requests
from PIL import Image
from tqdm import tqdm
from robosat.tiles import tiles_from_csv, fetch_image
def add_parser(subparser):
parser = subparser.add_parser(
"downl... | 1,206 |
7,353 | <reponame>LK26/outline-client<filename>third_party/badvpn/udevmonitor/NCDUdevCache.h
/**
* @file NCDUdevCache.h
* @author <NAME> <<EMAIL>>
*
* @section LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*... | 943 |
3,457 | Matrix3d m = Matrix3d::Random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is the product of each row:" << endl << m.rowwise().prod() << endl;
| 61 |
12,278 | <reponame>Harshitha91/Tmdb-react-native-node
/*=============================================================================
Copyright (c) 2012 <NAME>
match.h
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt... | 1,318 |
677 | /*
* Copyright (C) 2013, 2015 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | 3,180 |
553 | //
// GreyShader.cpp
// cocos2d_libs
//
// Created by Kirito on 10/22/14.
//
//
#include "GreyShader.h"
void GreyShader::setGreyShader(Sprite * s)
{
auto fileUtiles = FileUtils::getInstance();
auto fragmentFullPath = fileUtiles->fullPathForFilename("res/shader3D/greyScale.fsh");
auto fragSource = ... | 230 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 24,741 |
443 | /*
* Copyright (C) 2017 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,355 |
805 | <reponame>gaoyouyadan/kaldi<filename>src/rnnlmbin/rnnlm-train.cc
// rnnlmbin/rnnlm-train.cc
// Copyright 2015-2017 Johns Hopkins University (author: <NAME>)
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this ... | 3,109 |
495 | <filename>tiny_benchmark/maskrcnn_benchmark/modeling/rpn/cascade_fcos/inference.py
import torch
from ..inference import RPNPostProcessor
from ..utils import permute_and_flatten
from maskrcnn_benchmark.modeling.box_coder import BoxCoder
from maskrcnn_benchmark.modeling.utils import cat
from maskrcnn_benchmark.structur... | 7,181 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 2,214 |
465 | <gh_stars>100-1000
/*
* Copyright (c) 2018 Uber Technologies, Inc.
* 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, cop... | 1,387 |
5,823 | // Copyright 2013 The Flutter 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 <gtest/gtest.h>
#include <string>
#include "flutter/fml/task_runner.h"
#include "flutter/shell/common/thread_host.h"
#include "fml/make_copyable... | 901 |
2,151 | //===- MSFStreamLayout.h - Describes the layout of a stream -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 369 |
879 | package org.zstack.test.compute.zone;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.zstack.core.componentloader.ComponentLoader;
import org.zstack.core.db.DatabaseFacade;
import org.zstack.core.db.SimpleQuery;
import org.zstack.header.message.APIDeleteMessage;
import org.zst... | 889 |
531 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 3,040 |
1,144 | <gh_stars>1000+
package de.metas.dunning.api.impl;
/*
* #%L
* de.metas.dunning
* %%
* Copyright (C) 2015 metas GmbH
* %%
* 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 Foundation, either version 2... | 1,105 |
2,023 | <reponame>tdiprima/code
#!/usr/bin/env python
"""Play sound files using the pygame mixer module."""
__program__ = "soundplay.py"
__author__ = "<NAME>"
__version__ = "1.1"
__revision__ = "$Rev: 136 $"
__date__ = "$Date: 2007-06-06 19:18:47 +0200 (Mi, 06 Jun 2007) $"
__copyright__ = "Public domain"
import... | 1,276 |
14,425 | <reponame>WarpspeedSCP/hadoop
/**
* 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, Versi... | 3,914 |
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,884 |
475 | <filename>include/ecst/make_inl.hpp
// Copyright (c) 2015-2016 <NAME>
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
// http://vittorioromeo.info | <EMAIL>
#pragma once
#include "./make_inl/settings_make.inl"
#include "./make_inl/signature_component_make.i... | 148 |
686 | <filename>src/nb/deser/support/ClassDetails.java
package nb.deser.support;
import java.util.ArrayList;
/***********************************************************
* Support class for serialization data parsing that holds
* details of a single class to enable class data for that
* class to be read (classDescFlags,... | 1,262 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.managedapplications.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure... | 5,640 |
3,603 | /*
* 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
* distribut... | 3,569 |
834 | // Copyright 2004-present Facebook. All Rights Reserved.
#include "fboss/agent/hw/bcm/BcmWarmBootHelper.h"
#include "fboss/agent/SysError.h"
#include "fboss/agent/Utils.h"
#include "fboss/agent/hw/bcm/BcmAPI.h"
#include "fboss/agent/hw/bcm/BcmError.h"
#include "fboss/agent/hw/bcm/BcmFacebookAPI.h"
#include "fboss/agen... | 1,812 |
1,939 | package com.tencent.bk.codecc.apiquery.defect.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.tencent.bk.codecc.apiquery.utils.EntityIdDeserializer;
import lombok.Data;
@Data
public class CheckerStatisticModel {
private Stri... | 190 |
2,881 | package com.example.zhpan.banner.net.interceptor;
import com.blankj.utilcode.util.LogUtils;
import com.blankj.utilcode.util.NetworkUtils;
import java.io.IOException;
import okhttp3.CacheControl;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
/**
* Created by zhpan on 2018/3/21.
*/
p... | 569 |
8,969 | <reponame>omerlevran46/sdk<filename>runtime/vm/json_stream.h<gh_stars>1000+
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef RUNTIME_VM_JSON_STR... | 5,525 |
1,225 | //
// YUCIReflectTile.h
// Pods
//
// Created by YuAo on 2/16/16.
//
//
#import <CoreImage/CoreImage.h>
typedef NS_ENUM(NSInteger, YUCIReflectedTileMode) {
YUCIReflectedTileModeReflectWithoutBorder = 0,
YUCIReflectedTileModeReflectWithBorder = 1,
};
@interface YUCIReflectedTile : CIFilter
@property (nona... | 186 |
695 | <gh_stars>100-1000
// Time: O(n)
// Space: O(n)
class Solution {
public:
/**
* @param expression: A string array
* @return: The Polish notation of this expression
*/
vector<string> convertToPN(vector<string> &expression) {
vector<string> output;
infixToPrefix(expression, output)... | 952 |
669 | /*
* MinIO Java SDK for Amazon S3 Compatible Cloud Storage,
* (C) 2017 MinIO, 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
*
* https://www.apache.org/licenses/LICENSE-2.0
... | 3,936 |
5,938 | <reponame>glasnt/python-docs-samples<filename>servicedirectory/snippets_test.py
#!/usr/bin/env python
# Copyright 2020 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 L... | 1,117 |
1,429 | /******************************************************************************
* Copyright (C) 2014-2020 <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 restr... | 1,642 |
1,099 | package com.example.video.dagger.news.othernews;
import com.example.commonlibrary.mvp.model.DefaultModel;
import com.example.video.mvp.news.othernew.OtherNewsListAdapter;
import com.example.video.mvp.news.othernew.OtherNewsListFragment;
import com.example.video.mvp.news.othernew.OtherNewsListPresenter;
import dagger.... | 399 |
337 | /*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.caches.resolve;
public class AssertionErrorWithCause extends AssertionError... | 149 |
739 | <reponame>tchudyk/RichTextFX
package org.fxmisc.richtext;
import javafx.beans.property.BooleanProperty;
import javafx.scene.control.IndexRange;
import org.fxmisc.richtext.model.StyleSpans;
/**
* Specifies actions related to getting and setting styles throughout a {@link TextEditingArea}.
*
* @param <PS> the paragr... | 2,388 |
312 | /*******************************************************************************
Copyright (c) 2005-2009 <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone... | 5,773 |
5,169 | {
"name": "BatFoundation",
"version": "0.0.3",
"summary": "Augmented Foundation and UIKit",
"homepage": "http://bitbucket.org/bsansierra/batfoundation",
"license": "MIT",
"authors": {
"<NAME>": "<EMAIL>"
},
"platforms": {
"ios": null
},
"source": {
"git": "http://bitbucket.org/bsansierra... | 199 |
798 | <gh_stars>100-1000
/*
* The MIT License
*
* Copyright (c) 2014-2016 The Broad Institute
*
* 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 limitat... | 7,060 |
369 | // Copyright (c) 2017-2021, Mudita <NAME>.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <module-audio/tags_fetcher/TagsFetcher.hpp>
#include <utf8/UTF8.hpp>
#include <filesystem>
#include <optional>
#include <vector>
class AbstractSoundsRepository
... | 473 |
3,282 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.compositor.layouts;
import org.chromium.chrome.browser.compositor.layouts.eventfilter.EdgeSwipeEventFilter.ScrollDire... | 691 |
3,274 | <filename>src/test/java/com/ql/util/express/test/rating/SubjectMananger.java
package com.ql.util.express.test.rating;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@SuppressWarnings({ "serial", "rawtypes" })
public class SubjectMananger extends HashMap {
@Suppres... | 604 |
421 | import sys
sys.path.append("..") # 先跳出当前目录
from bean.word_unit import WordUnit
from bean.sentence_unit import SentenceUnit
from bean.entity_pair import EntityPair
from core.extract_by_dsnf import ExtractByDSNF
class Extractor:
"""抽取生成知识三元组
Attributes:
entities: WordUnit list,句子的实体列表
entity_pai... | 2,174 |
5,169 | <filename>Specs/f/1/7/CBNativeSwift/0.1.4/CBNativeSwift.podspec.json
{
"name": "CBNativeSwift",
"version": "0.1.4",
"summary": "menu試做",
"description": "CB原生盤勢",
"homepage": "https://gitlab.incrte.com/incrte-pd1/CCAPP/CBNativeSwift",
"license": "MIT",
"authors": {
"NelsonShen": "<EMAIL>"
},
"platf... | 550 |
407 | package com.alibaba.tesla.appmanager.domain.req.unit;
import com.alibaba.tesla.appmanager.common.BaseRequest;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.io.Serializable;
/**
* 单元查询请求
*
* @author... | 268 |
1,720 | #ifndef _MIPSREFLECTION_H_
#define _MIPSREFLECTION_H_
#include "Types.h"
#include "MIPSArchitecture.h"
class CMIPS;
namespace MIPSReflection
{
struct INSTRUCTION;
struct SUBTABLE
{
uint32 nShift;
uint32 nMask;
INSTRUCTION* pTable;
};
struct INSTRUCTION
{
const char* sMnemonic;
... | 513 |
393 | <filename>rxjava2-pool/src/main/java/org/davidmoten/rx/pool/DecoratingMember.java
package org.davidmoten.rx.pool;
import java.util.concurrent.TimeUnit;
import java.util.function.BiFunction;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.reactivex.disposables.Disposable;
import io.reactivex.plugin... | 1,507 |
6,443 | <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, Version 2.0
* (the "Lic... | 1,454 |
778 | package org.aion.p2p.impl.comm;
import java.util.HashSet;
import java.util.Set;
/** @author chris */
public final class Act {
public static final byte DISCONNECT = 0;
public static final byte REQ_HANDSHAKE = 1;
public static final byte RES_HANDSHAKE = 2;
public static final byte PING = 3;
pub... | 471 |
484 | <reponame>Shubodh/Kimera-Semantics<filename>kimera_semantics/include/kimera_semantics/semantic_tsdf_integrator_fast.h
// NOTE: Most code is derived from voxblox: github.com/ethz-asl/voxblox
// Copyright (c) 2016, ETHZ ASL
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
/... | 2,094 |
2,542 | <filename>src/prod/src/Hosting2/NetworkInventoryAgent.cpp
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------------------------------... | 6,809 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.