max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,907 | <gh_stars>1000+
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2017-2018 <NAME>, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any p... | 824 |
2,321 | package com.provectus.kafka.ui.util;
import com.provectus.kafka.ui.model.BrokerDTO;
import com.provectus.kafka.ui.model.ConsumerGroupDTO;
import com.provectus.kafka.ui.model.ConsumerGroupDetailsDTO;
import com.provectus.kafka.ui.model.ConsumerGroupStateDTO;
import com.provectus.kafka.ui.model.ConsumerGroupTopicPartiti... | 3,827 |
737 | /** watchdog.h -*- C++ -*-
<NAME>, 16 May 2011
Copyright (c) 2011 Datacratic. All rights reserved.
Watchdog timer class.
*/
#ifndef __jml_testing__watchdog_h__
#define __jml_testing__watchdog_h__
#include <boost/thread/thread.hpp>
#include <boost/bind.... | 768 |
14,668 | // 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.
#ifndef GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_CACHE_H_
#define GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_CACHE_H_
#include <string.h>
#inc... | 1,219 |
5,903 | /*
* Pentaho Data Integration
*
* Copyright (C) 2002-2018 by <NAME> : http://www.pentaho.com
*
* **************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with
* the License. Yo... | 1,597 |
12,278 | /* Copyright 2003-2013 <NAME>.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* See http://www.boost.org/libs/multi_index for library home page.
*/
#ifndef BOOST_MULTI_INDEX_DETAIL_MODIFY_KEY_ADAPTOR_HPP
#... | 394 |
579 | <gh_stars>100-1000
#pragma once
#include <random>
namespace erpc {
class SlowRand {
std::random_device rand_dev_; // Non-pseudorandom seed for twister
std::mt19937_64 mt_;
std::uniform_int_distribution<uint64_t> dist_;
public:
SlowRand() : mt_(rand_dev_()), dist_(0, UINT64_MAX) {}
inline uint64_t next_... | 270 |
644 | # Copyright <NAME> 2016, 2017
"""
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
... | 835 |
846 | package com.dslplatform.json.models;
import com.dslplatform.json.CompiledJson;
import com.dslplatform.json.JsonAttribute;
import com.dslplatform.json.runtime.MapAnalyzer;
import java.util.Map;
@CompiledJson
public class MapRuntimeCtor {
private final Map<String, Object> map;
public final Map<String, O... | 190 |
328 | package com.stx.core.utils;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* @author: xiaohaibin.
* @time: 2018/9/6
* @mail:<EMAIL>
* @github:https://github.com/xiaohaibin
* @describe: 字符串工具类
*/
public class StringUtils {
public static String getMD5(String content) {... | 441 |
335 | {
"word": "Covenant",
"definitions": [
"Agree by lease, deed, or other legal contract.",
"Undertake to give (a sum of money) regularly to charity by means of a covenant."
],
"parts-of-speech": "Verb"
} | 92 |
1,093 | /*
* Copyright 2020 Playtika.
*
* 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 w... | 2,252 |
672 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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... | 910 |
3,055 | <filename>tools/font/build/single_font_files/u8x8_font_pxplustandynewtv_u.c
/*
Fontname: -FreeType-PxPlus TandyNew TV-Medium-R-Normal--8-80-72-72-P-70-ISO10646-1
Copyright: Outline (vector) version (c) 2015 VileR
Glyphs: 64/781
BBX Build Mode: 3
*/
const uint8_t u8x8_font_pxplustandynewtv_u[517] U8X8_FONT_SECTI... | 1,041 |
721 | <gh_stars>100-1000
#!/usr/bin/env python
import random
print("x,y,z")
for i in range(0, 1000):
x = random.gauss(200.0, 50.0)
y = random.gauss(100.0, 20.0)
z = min(1.0, max(0, (y - 60) / 60.0))
print("%f,%f,%f" % (x, y,z ))
| 120 |
631 | <gh_stars>100-1000
/*****************************************************************************
* *
* OpenNI 1.x Alpha *
* Copyright (C) 2012 PrimeSense Ltd. ... | 3,082 |
752 | <reponame>ernestchu/tsm-net
import scipy.io.wavfile
def save_sample(file_path, sampling_rate, audio):
"""Helper function to save sample
Args:
file_path (str or pathlib.Path): save file path
sampling_rate (int): sampling rate of audio (usually 22050)
audio (torch.FloatTensor): torch ar... | 182 |
5,847 | <reponame>jhrmnn/hydra
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import math
import re
from builtins import isinstance
from dataclasses import dataclass
from typing import Any, Callable, Dict, List, Union
from _pytest.python_api import RaisesContext
from pytest import mark, param, raises, ... | 39,676 |
2,836 | <reponame>user01/alpha-zero-general
import os
import sys
import numpy as np
from flask import Flask, request, Response
sys.path.append("..")
from MCTS import MCTS
from dotsandboxes.DotsAndBoxesGame import DotsAndBoxesGame
from dotsandboxes.keras.NNet import NNetWrapper
from dotsandboxes.DotsAndBoxesPlayers import Gr... | 621 |
321 | <reponame>AppSecAI-TEST/qalingo-engine
/**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENSE-2.0
*
* Copyright (c) Hoteia, 2012-2014
* http://www.hoteia.com ... | 2,339 |
1,746 | <gh_stars>1000+
package org.sikuli.support.ide.autocomplete;
import org.sikuli.ide.EditorPane;
import org.sikuli.support.runner.IRunner;
import javax.swing.text.Caret;
public interface IAutoCompleter {
String getName();
void setPane(EditorPane pane);
IRunner getRunner();
void handle(Caret caret, int line... | 127 |
412 | package datart.core.entity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
@Data
@EqualsAndHashCode(callSuper = true)
public class Share extends BaseEntity {
private String orgId;
private String vizType;
private String vizId;
private String authenticationMode;
pr... | 140 |
2,338 | <reponame>mkinsner/llvm
//===----------------------------------------------------------------------===//
//
// 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
//
//===---... | 173 |
2,151 | //===- DisassemblerEmitter.h - Disassembler Generator -----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 242 |
373 | <reponame>linkingtd/UniAuth<gh_stars>100-1000
package com.dianrong.common.techops.action;
import com.dianrong.common.uniauth.common.bean.Response;
import com.dianrong.common.uniauth.common.bean.dto.PageDto;
import com.dianrong.common.uniauth.common.bean.dto.PermissionDto;
import com.dianrong.common.uniauth.common.bean... | 1,955 |
578 | /*
* Copyright (C) 2016 Red Hat, 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 agre... | 789 |
348 | {"nom":"Saint-Pierre-des-Jonquières","dpt":"Seine-Maritime","inscrits":69,"abs":4,"votants":65,"blancs":3,"nuls":1,"exp":61,"res":[{"panneau":"1","voix":33},{"panneau":"2","voix":28}]} | 78 |
384 | #!/usr/bin/env python
# Make all randomness deterministic
import random
import argparse
import torch
import os
import numpy as np
random.seed(1337)
torch.manual_seed(1337)
np.random.seed(1337)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False
from ...util.model import BenchmarkModel
fro... | 899 |
5,169 | {
"name": "KLProjectRoot",
"version": "0.0.3",
"summary": "一个通用的项目组件,包含NavigationController和TabBarController",
"homepage": "https://github.com/KingLight/KLProjectRoot.git",
"license": "MIT",
"authors": {
"King": "<EMAIL>"
},
"platforms": {
"ios": "9.0"
},
"source": {
"git": "https://gith... | 838 |
425 | // Include MicroPython API.
#include "py/runtime.h"
#include "drivers/bme68x/src/bme68x_defs.h"
/***** Constants *****/
/***** Extern of Class Definition *****/
extern const mp_obj_type_t breakout_bme68x_BreakoutBME68X_type;
/***** Extern of Class Methods *****/
extern void BreakoutBME68X_print(const mp_print_t *pri... | 282 |
4,140 | <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
* ... | 4,614 |
852 | <reponame>ckamtsikis/cmssw<filename>CondFormats/Common/src/T_EventSetup_ConfObject.cc<gh_stars>100-1000
#include "FWCore/Utilities/interface/typelookup.h"
#include "CondFormats/Common/interface/ConfObject.h"
TYPELOOKUP_DATA_REG(ConfObject);
| 94 |
3,353 | //
// ========================================================================
// Copyright (c) 1995-2021 Mort Bay Consulting Pty Ltd and others.
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License v. 2.0 which is available at
// https://www.eclipse.org/... | 2,380 |
426 | <reponame>nex3z/ToggleButtonGroup
package com.nex3z.togglebuttongroup.sample.button;
import android.content.Context;
import androidx.appcompat.widget.AppCompatButton;
import android.util.AttributeSet;
import com.nex3z.togglebuttongroup.button.OnCheckedChangeListener;
import com.nex3z.togglebuttongroup.button.ToggleBu... | 795 |
416 | //
// GKLeaderboardViewController.h
// Game Center
//
// Copyright 2010-2017 Apple Inc. All rights reserved.
//
#import <GameKit/GKLeaderboard.h>
#import <GameKit/GKGameCenterViewController.h>
@protocol GKLeaderboardViewControllerDelegate;
// View controller that provides the standard user interface for leaderboa... | 418 |
1,104 | <reponame>yblucky/mdrill<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,... | 7,341 |
5,169 | <reponame>Gantios/Specs
{
"name": "ZGYWebDemoTest",
"version": "0.0.6",
"summary": "智慧城市web容器",
"description": "web容器,提供了原生与H5交互的js接口",
"homepage": "http://10.0.53.138/iOS/ZGYWeb",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"heng": "<EMAIL>"
},
"platforms": {
"ios"... | 332 |
856 | //
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <cstddef>
#include <memory>
namespace common
{
/**
* @brief Frame source reader interface
*
* @tparam FrameDataT frame container data type
*/
template<typename FrameDataT> class IFrameRe... | 362 |
722 | <reponame>ishine/bolt<filename>compute/tensor/src/cpu/x86/depthwise_pointwise_convolution.cpp
// Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved.
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
/... | 1,484 |
2,032 | # the __all__ is generated
__all__ = []
# __init__.py structure:
# common code of the package
# export interface in __all__ which contains __all__ of its sub modules
# import all from submodule quotes
from .quotes import *
from .quotes import __all__ as _quotes_all
__all__ += _quotes_all
# import all from submodule... | 176 |
504 | #ifndef __GLOBAL_H
#define __GLOBAL_H
#include <geos.h>
#include <graphics.h>
#include <Objects/Text/tCommon.h>
#include <xlatLib.h>
extern TransError RTFError;
#define SetError(x) RTFError = (x)
#define GetError() RTFError
#define TEXT_BUFFER_LEN 128
typedef struct
{
PageSetupInfo RTFDA_pageInfo;
}
RTF... | 1,072 |
1,269 | <reponame>zhouhp007/AndroidAll
package com.chiclaim.rxjava.operator.create;
import android.os.Bundle;
import androidx.annotation.Nullable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.chiclaim.rxjava.BaseFragment;
import com.chiclaim.... | 553 |
563 | package com.gentics.mesh.core.rest.event.migration;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.gentics.mesh.core.rest.schema.MicroschemaReference;
import com.gentics.... | 399 |
1,498 | <reponame>kimixuchen/sluaunreal
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/GameModeBase.h"
#include "LuaActor.h"
#include "democppGameModeBase.generated.h"
/**
*
*/
UCLASS()
class DEMOCPP_API AdemocppGameModeBase : p... | 133 |
4,234 | <reponame>mueschm/mapbox-gl-native
#pragma once
#include <mbgl/map/mode.hpp>
namespace mbgl {
class Settings_JSON {
public:
Settings_JSON();
void load();
void save();
void clear();
public:
double longitude = 0;
double latitude = 0;
double zoom = 0;
double bearing = 0;
double pitc... | 204 |
450 | package com.pivotal.hawq.mapreduce.datatype;
/*
* 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... | 1,250 |
572 | import pytest
from django.conf import settings
from django.test.utils import override_settings
from machina.core.db.models import get_model
from machina.core.loading import AppNotFoundError, ClassNotFoundError, get_class, get_classes
class TestClassLoadingFunctions(object):
def test_can_load_a_single_class(self)... | 1,493 |
1,842 | @import UIKit;
@interface UIColor (Hex)
- (instancetype)initWithHex:(NSString *)hexString;
@end
| 41 |
1,561 | <reponame>victorhu3/webots
/***************************************************************/
/* This file is common to all physics plugin projects. */
/* It is included automatically by the Makefile.include and */
/* should be included in other non make-based projects */
/****************************... | 756 |
2,996 | <gh_stars>1000+
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.network.events;
import org.terasology.engine.entitySystem.event.Event;
import org.terasology.engine.network.ServerEvent;
/**
* This event handles the ping from one client to the server.
*... | 114 |
2,460 | /**
* Copyright (C) 2015 Red Hat, 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... | 1,131 |
1,442 | #include <stdint.h>
#include <stdlib.h>
// __stack_chk_guard value initialization is done at platform initialization
__attribute__((used,section(".canary"))) uintptr_t __stack_chk_guard;
__attribute__((noreturn,used)) void __stack_chk_fail() {
abort();
}
| 89 |
2,107 | <gh_stars>1000+
/* NetHack 3.6 mhmsgwnd.h $NHDT-Date: 1432512798 2015/05/25 00:13:18 $ $NHDT-Branch: master $:$NHDT-Revision: 1.9 $ */
/* Copyright (C) 2001 by <NAME> */
/* NetHack may be freely redistributed. See license for details. */
#ifndef MSWINMessageWindow_h
#define MSWINMessageWindow_h
#include "winMS.h"... | 200 |
1,562 | //===================== Copyright (c) Valve Corporation. All Rights Reserved. ======================
//
// Helper class for working with D3D.
//
//==================================================================================================
#pragma once
#include <d3d11.h>
#include <stdint.h>
#include <vector>
#in... | 721 |
1,023 | <reponame>febrihendra88/whatsapp-viewer
#include "Log.h"
#include "Libraries/AES/MyAES.h"
#include "Exceptions/Exception.h"
Log::Log()
{
output.open("WhatsApp Viewer.log");
if (!output)
{
throw Exception("Could not open log file");
}
}
Log::~Log()
{
output.close();
}
Log& Log::operator <<(std::ios_base& (*va... | 583 |
4,879 | <filename>routing/road_access.cpp
#include "routing/road_access.hpp"
#include "base/assert.hpp"
#include <algorithm>
#include <chrono>
#include <sstream>
using namespace std;
namespace
{
string const kNames[] = {"No", "Private", "Destination", "Yes", "Count"};
template <typename KV>
void PrintKV(ostringstream & os... | 2,443 |
832 | <filename>Pods/Headers/Public/IQKeyboardManager/IQKeyboardReturnKeyHandler.h
../../../IQKeyboardManager/IQKeyboardManager/IQKeyboardReturnKeyHandler.h | 46 |
330 | import torch
class BaseModule(torch.nn.Module):
def __init__(self):
super(BaseModule, self).__init__()
@property
def nparams(self):
return sum(p.numel() for p in self.parameters() if p.requires_grad)
| 98 |
320 | <gh_stars>100-1000
// Copyright 2020 <NAME>
//
// The contents of this file may be used under the terms of
// the Apache License v2.0 with LLVM Exceptions.
//
// (See accompanying file LICENSE-Apache or copy at
// https://llvm.org/foundation/relicensing/LICENSE.txt)
//
// Alternatively, the contents of this file... | 897 |
549 | """
examples.dynamic_text
~~~~~~~~~~~~~~~~~~~~~
Evaluates text on every spinner frame.
"""
import time
from datetime import datetime
from yaspin import yaspin
class TimedText:
def __init__(self, text):
self.text = text
self._start = datetime.now()
def __str__(self):
now = datetime.... | 227 |
382 | package rpc.turbo.protocol;
/**
* 压缩类型
*
* @author Hank
*
*/
public interface CompressType {
public static final byte NO = 0;
public static final byte LZ4 = 1;
public static final byte SNAPPY = 2;
public static final byte GZIP = 3;
}
| 94 |
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.
#include "chrome/browser/ash/login/screens/app_downloading_screen.h"
#include "chrome/browser/ui/webui/chromeos/login/app_downloading_screen_handler.h"
... | 498 |
4,665 | /*
* Copyright (c) 2018 LingoChamp 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 ag... | 343 |
348 | {"nom":"Canet-en-Roussillon","circ":"2ème circonscription","dpt":"Pyrénées-Orientales","inscrits":11303,"abs":5555,"votants":5748,"blancs":75,"nuls":28,"exp":5645,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":1907},{"nuance":"FN","nom":"<NAME>","voix":1618},{"nuance":"LR","nom":"M. <NAME>","voix":994},{"nuance":"FI"... | 329 |
348 | {"nom":"Ancienville","circ":"5ème circonscription","dpt":"Aisne","inscrits":66,"abs":25,"votants":41,"blancs":0,"nuls":4,"exp":37,"res":[{"nuance":"FN","nom":"<NAME>","voix":24},{"nuance":"REM","nom":"<NAME>","voix":13}]} | 90 |
1,043 | package com.oath.micro.server.events;
import com.oath.micro.server.events.RequestTypes.AddLabelledQuery;
import com.oath.micro.server.events.RequestTypes.RemoveLabelledQuery;
import com.oath.micro.server.events.RequestTypes.RequestData;
import com.google.common.eventbus.EventBus;
/**
* Factory class for creating St... | 1,804 |
969 | // Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... | 549 |
9,734 | <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
// "Li... | 1,165 |
387 | <reponame>Jaikishan-Saroj-786/jpf-core
/*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Version 2.0 (the "Li... | 1,072 |
460 | <filename>trunk/win/BumpTop Settings/include/wxWidgets/wx/palmos/toolbar.h
/////////////////////////////////////////////////////////////////////////////
// Name: wx/palmos/toolbar.h
// Purpose: wxToolBar class
// Author: <NAME> - minimal working wxPalmOS port
// Modified by:
// Created: 10/13/04
// ... | 1,563 |
762 | <gh_stars>100-1000
/*!
* Copyright (c) 2019 by Contributors if not otherwise specified
* \file threaded_decoder.h
* \brief FFmpeg threaded decoder definition
*/
#ifndef DECORD_VIDEO_FFMPEG_THREADED_DECODER_H_
#define DECORD_VIDEO_FFMPEG_THREADED_DECODER_H_
#include "filter_graph.h"
#include "../threaded_decoder_... | 1,093 |
6,304 | // Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "tools/fiddle/examples.h"
// HASH=165418b5718d79d8f1682a8a0ee32ba0
REG_FIDDLE(IPoint_set, 256, 256, true, 0) {
void draw(SkCanvas* canvas) {
SkIPoint pt1, pt2 = { SK_MinS32, SK... | 194 |
852 | <filename>RecoEgamma/EgammaPhotonAlgos/src/TangentApproachInRPhi.cc
#include "RecoEgamma/EgammaPhotonAlgos/interface/TangentApproachInRPhi.h"
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"
#include "MagneticField/Engine/interface/MagneticField.h"
using namespace std;
bool TangentApproac... | 4,746 |
854 | __________________________________________________________________________________________________
sample 108 ms submission
class Solution:
def nextGreatestLetter(self, letters: List[str], target: str) -> str:
if target >= letters[-1]:
return letters[0]
left = 0
right = ... | 448 |
1,681 | <filename>tensornetwork/linalg/tests/test_krylov.py<gh_stars>1000+
import numpy as np
from jax import config
import pytest
import tensornetwork
import tensornetwork.linalg.krylov
import tensornetwork.linalg.initialization
from tensornetwork.tests import testing_utils
# pylint: disable=no-member
config.update("jax_enab... | 6,799 |
585 | /*
* 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,185 |
946 | /*******************************************************************************
*
* (C) COPYRIGHT AUTHORS, 2016 - 2017
*
* TITLE: SHELLCODE.H
*
* VERSION: 1.11
*
* DATE: 20 Apr 2017
*
* Loader bootstrap shellcode.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
* ANY KIND, E... | 7,148 |
7,482 | <gh_stars>1000+
/*
* @ : Copyright (c) 2021 Phytium Information Technology, Inc.
*
* SPDX-License-Identifier: Apache-2.0.
*
* @Date: 2021-04-07 09:53:07
* @LastEditTime: 2021-05-26 15:39:16
* @Description: This files is for pin mux
*
* @Modify History:
* Ver Who Date Changes
* ----- ------... | 1,191 |
14,668 | /*
* Copyright 2021 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 ... | 14,016 |
6,270 | <reponame>jaller94/aws-sdk-js<filename>.changes/2.854.0.json
[
{
"type": "feature",
"category": "AlexaForBusiness",
"description": "Added support for optional tags in CreateAddressBook, CreateConferenceProvider, CreateContact, CreateGatewayGroup, CreateNetworkProfile and RegisterAVSDevice AP... | 321 |
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_DOWNLOAD_PUBLIC_BACKGROUND_SERVICE_NAVIGATION_MONITOR_H_
#define COMPONENTS_DOWNLOAD_PUBLIC_BACKGROUND_SERVICE_NAVIGATION_MONITOR_H_
#... | 629 |
651 | <filename>build-monitor-plugin/src/main/java/com/smartcodeltd/jenkinsci/plugins/buildmonitor/viewmodel/features/SerialisableAsJsonObjectCalled.java
package com.smartcodeltd.jenkinsci.plugins.buildmonitor.viewmodel.features;
/**
* @author <NAME>
*/
public interface SerialisableAsJsonObjectCalled<JSON extends Object> ... | 110 |
1,178 | <reponame>dada1437903138/imagepy<filename>imagepy/menus/Help/Language/language_plgs.py
from sciapp.action import Free
from imagepy.app import ConfigManager, DictManager
class Language(Free):
def __init__(self, key):
self.title = key
asyn = False
def run(self, para = None):
ConfigManager.add('language', self.t... | 160 |
1,188 | package us.costan.chrome.impl;
import org.chromium.android_webview.AwContentsClient;
import org.chromium.android_webview.AwHttpAuthHandler;
import org.chromium.android_webview.InterceptedRequestData;
import org.chromium.android_webview.JsPromptResultReceiver;
import org.chromium.android_webview.JsResultReceiver;
impo... | 3,961 |
903 | <reponame>hesslink111/node-qt<filename>package.json
{
"name": "node-qt",
"version": "0.0.2",
"author": "<NAME> <<EMAIL>>",
"description": "Qt bindings for Node.js",
"repository": {
"type": "git",
"url": "git://github.com/arturadib/node-qt.git"
},
"homepage": "http://github.com/arturadib/node-qt",
... | 301 |
377 | <filename>src/kundera-cassandra/cassandra-core/src/main/java/com/impetus/client/cassandra/service/CassandraHostConfiguration.java
/*******************************************************************************
* * Copyright 2012 Impetus Infotech.
* *
* * Licensed under the Apache License, Version 2.0 (the "Licens... | 5,132 |
412 | <reponame>Symbo1/wsltools
# -*- coding: UTF-8 -*-
from ..en_PH import Provider as EnPhAddressProvider
class Provider(EnPhAddressProvider):
"""No difference from Address Provider for en_PH locale"""
pass
| 71 |
892 | <filename>advisories/unreviewed/2022/04/GHSA-3853-86vx-xxvj/GHSA-3853-86vx-xxvj.json
{
"schema_version": "1.2.0",
"id": "GHSA-3853-86vx-xxvj",
"modified": "2022-04-30T18:21:44Z",
"published": "2022-04-30T18:21:44Z",
"aliases": [
"CVE-2002-1723"
],
"details": "Powerboards 2.2b allows remote attackers t... | 489 |
2,603 | /* ----------------------------------------------------------------------------
* SAM Software Package License
* ----------------------------------------------------------------------------
* Copyright (c) 2013, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in source and b... | 1,577 |
3,212 | /*
* 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,113 |
2,237 | package com.mindorks.placeholderview;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
/**
* Created by janisharali on 18/08/16.
*/
public class ViewHolder<T, B extends ViewBinder<T, View>> extends RecyclerView.ViewHolder {
private B mBinder;
... | 279 |
634 | <reponame>ksavery/re4_tweaks
#pragma once
#define VISIT_PROCS_WINMM(visit) \
visit(CloseDriver, jmpaddr) \
visit(DefDriverProc, jmpaddr) \
visit(DriverCallback, jmpaddr) \
visit(DrvGetModuleHandle, jmpaddr) \
visit(GetDriverModuleHandle, jmpaddr) \
visit(NotifyCallbackData, jmpaddr) \
visit(OpenDriver, jmpaddr)... | 3,232 |
393 | import sys
import tomotopy as tp
def hdp_example(input_file, save_path):
mdl = tp.HDPModel(tw=tp.TermWeight.ONE, min_cf=3, rm_top=5)
for n, line in enumerate(open(input_file, encoding='utf-8')):
ch = line.strip().split()
mdl.add_doc(ch)
mdl.burn_in = 100
mdl.train(0)
print('Num docs... | 605 |
342 | <reponame>ramesh-kr/sentinel
package sentinelgroup.io.sentinel.db.dao;
import android.arch.lifecycle.LiveData;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Query;
import sentinelgrou... | 214 |
3,486 | <filename>titan-test/src/main/java/com/thinkaurelius/titan/graphdb/TitanIoTest.java
package com.thinkaurelius.titan.graphdb;
import com.thinkaurelius.titan.example.GraphOfTheGodsFactory;
import org.apache.tinkerpop.gremlin.structure.io.GraphReader;
import org.apache.tinkerpop.gremlin.structure.io.GraphWriter;
import o... | 720 |
1,943 | <reponame>TheBrewery/cordova-ios
./org.test.plugins.dummyplugin/src/ios/DummyPluginCommand.h
| 37 |
2,701 | /* Console example — various system commands
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/... | 3,143 |
471 | <filename>custom/m4change/user_calcs/all_hmis_report_calcs.py
import fluff
from custom.m4change.constants import PMTCT_CLIENTS_FORM
from custom.m4change.user_calcs import get_date_delivery, form_passes_filter_date_delivery, get_received_on
def _get_comparison_results(field_value, comparison_operator, expected_value):... | 3,076 |
405 | package org.jeecgframework.web.cgform.service.cgformftl;
import java.util.Map;
import org.jeecgframework.core.common.service.CommonService;
public interface CgformFtlServiceI extends CommonService{
/**
* 根据tableName获取form模板信息
*/
public Map<String,Object> getCgformFtlByTableName(String tableName);
/**
* ... | 251 |
405 | #!/usr/bin/env python3
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--parser-argument", help="some help")
subparsers = parser.add_subparsers()
subcommand1_parser = subparsers.add_parser("sub-command1", help="some help")
subcommand1_parser.add_a... | 186 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.