max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
4,772 | <filename>jpa/deferred/src/main/java/example/repo/Customer573Repository.java
package example.repo;
import example.model.Customer573;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer573Repository extends CrudRepository<Customer573, Long> {
List<Customer573... | 110 |
480 | <gh_stars>100-1000
/*
* Copyright [2013-2021], 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
*
* Unl... | 42,889 |
3,428 | <reponame>ghalimi/stdlib
{"chapter":"43","title":"Hark!","text":"\"HIST! Did you hear that noise, Cabaco?\"\n\nIt was the middle-watch; a fair moonlight; the seamen were standing in a cordon, extending from one of the fresh-water butts in the waist, to the scuttle-butt near the taffrail. In this manner, they passed the... | 537 |
612 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
from __future__ import division
import time, math
import torch
import torch.nn as nn
import torch.nn.functional as F
impor... | 2,739 |
631 | <gh_stars>100-1000
package com.neu.his.dms.service;
import com.neu.his.common.dto.dms.DmsNonDrugModelParam;
import com.neu.his.common.dto.dms.DmsNonDrugModelResult;
import java.util.List;
/**
* 非药品模板
*/
public interface DmsNonDrugModelService {
/**
* 描述:创建模版
*/
public int createModel(DmsNonDrugM... | 439 |
707 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.wpilibj.simulation;
import edu.wpi.first.hal.SimDouble;
import edu.wpi.first.wpilibj.DutyCycleEnc... | 438 |
2,564 | <filename>gdxlibrary/src/main/java/com/badlogic/gdx/math/InputAdapter.java
package com.badlogic.gdx.math;
/**
* @author ferrisXu
* 创建日期:2019/2/26
* 描述:
*/
/** An adapter class for {@link InputProcessor}. You can derive from this and only override what you are interested in.
*
* @author mzechner */
public class I... | 418 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Pont-les-Moulins","circ":"3ème circonscription","dpt":"Doubs","inscrits":134,"abs":63,"votants":71,"blancs":9,"nuls":3,"exp":59,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":32},{"nuance":"LR","nom":"<NAME>","voix":27}]} | 113 |
328 | package com.stx.xhb.dmgameapp.mvp.ui.adapter;
import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.stx.xhb.dmgameapp.R;
import c... | 645 |
311 | <gh_stars>100-1000
#!/usr/bin/env python
"""
Module for basic plotting inside the TableCanvas. Uses matplotlib.
Created August 2008
Copyright (C) <NAME>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the ... | 10,362 |
575 | <gh_stars>100-1000
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.components.paintpreview.player.frame;
import android.graphics.Rect;
import org.junit.Assert;
import org.junit.Te... | 1,651 |
5,964 | /*
* Copyright 2015 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkCodecPriv_DEFINED
#define SkCodecPriv_DEFINED
#include "SkColorTable.h"
#include "SkImageInfo.h"
#include "SkSwizzler.h"
#include "SkTypes.h"
#i... | 1,254 |
1,822 | <filename>src/runtime/set_parcel_write_handler.cpp<gh_stars>1000+
// Copyright (c) 2015 <NAME>
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#include <hpx/config.hpp>
#... | 435 |
576 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
import os
from .Dataset import Dataset
class Glove(Dataset):
def __init__(self,corpus,dim,opt=None,**kwargs):
super(Glove,self).__init__(opt,**kwargs)
self.root = ".vector_cache"
# if not os.path.exists(self.root):
# os.makedirs(... | 616 |
647 | <reponame>iamthad/trick<filename>trick_source/codegen/Interface_Code_Gen/FindTrickICG.hh
#include <vector>
#include <string>
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Lex/PPCallbacks.h"
#include "HeaderSearchDirs.hh"
/*
FindTrickICG searches preprocessor directives #if/#elif/#ifdef/#ifndef to se... | 1,167 |
335 | {
"word": "Commanding",
"definitions": [
"(in military contexts) having a position of authority.",
"Indicating or expressing authority; imposing.",
"Possessing or giving superior strength.",
"(of a place or position) dominating from above; giving a wide view of an area."
],
... | 124 |
628 | <filename>Source/Common/EnvironmentLoader.cpp<gh_stars>100-1000
#include <string>
#include <string_view>
namespace FEX::EnvLoader {
using string = std::string;
using string_view = std::string_view;
void Load(char *const envp[])
{
}
}
| 88 |
26,932 | #define _GNU_SOURCE
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <stdio.h>
#include <dlfcn.h>
void __cxa_finalize (void *d) {
return;
}
void __attribute__((constructor)) init() {
setresuid(geteuid(), geteuid(), geteuid());
execl("#{payload_path}", (char *)NULL, (char *)NULL);
... | 43,954 |
1,975 | // Copyright 2021 Google 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 in... | 553 |
2,504 | <gh_stars>1000+
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTI... | 990 |
582 | <filename>org.eclipse.gef/src/org/eclipse/gef/ui/console/DebugGEFAction.java
/*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms ... | 1,300 |
1,069 | /* ==========================================================
File: Heartbeat.java
Description: Stores coding activity waiting to be sent to the api.
Maintainer: WakaTime <<EMAIL>>
License: BSD, see LICENSE for more details.
Website: https://wakatime.com/
================================================... | 165 |
6,285 | <filename>test/config/tslint-default-severity-error.json
{
"defaultSeverity": "error",
"rules": {
"default-severity-error": { "severity": "default" }
}
}
| 65 |
578 | <reponame>ronys/pwsafe
/*
* Copyright (c) 2003-2021 <NAME> <<EMAIL>>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
#ifndef __SHA1... | 246 |
16,461 | <filename>ios/vendored/sdk42/react-native-reanimated/ABI42_0_0RNReanimated.podspec.json
{
"name": "ABI42_0_0RNReanimated",
"version": "2.2.0",
"summary": "More powerful alternative to Animated library for ABI42_0_0React Native.",
"description": "ABI42_0_0RNReanimated",
"homepage": "https://github.com/software... | 1,290 |
352 | /**
* Waiter utils.
*/
package com.crawljax.condition.browserwaiter; | 25 |
346 | <filename>src/game/Tactical/End_Game.cc
#include "Soldier_Control.h"
#include "Overhead.h"
#include "Boxing.h"
#include "Render_Fun.h"
#include "Random.h"
#include "TileDef.h"
#include "Timer_Control.h"
#include "WorldMan.h"
#include "Soldier_Profile.h"
#include "NPC.h"
#include "OppList.h"
#include "AI.h"
#include "Di... | 4,778 |
521 | <filename>third_party/virtualbox/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp
/* $Id: UIMediumEnumerator.cpp $ */
/** @file
* VBox Qt GUI - UIMediumEnumerator class implementation.
*/
/*
* Copyright (C) 2013-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), ... | 9,293 |
1,006 | /****************************************************************************
* libs/libc/string/lib_strerrorr.c
*
* 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 ... | 502 |
356 | <reponame>RobertLara/jInstagram<filename>src/main/java/org/jinstagram/auth/model/Constants.java
package org.jinstagram.auth.model;
public final class Constants {
public static final String INSTAGRAM_OAUTH_URL_BASE = "https://api.instagram.com/oauth";
public static final String ACCESS_TOKEN_ENDPOINT = INSTAGR... | 220 |
481 | <reponame>210-211/Instacapture
package com.tarek360.sample;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import butterknife.ButterKnife;
import butterknife.OnClick;
public class DialogAndMenuSampleActivity extends BaseSampleActivity {
@Override
protected void onCreate(Bu... | 360 |
3,326 | <filename>research/compression/entropy_coder/model/model_factory.py
# Copyright 2017 The TensorFlow Authors All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:/... | 519 |
561 | <gh_stars>100-1000
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// ... | 1,398 |
599 | <reponame>laodiu/bk-bcs
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 TH<NAME>, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this ... | 2,279 |
4,772 | package example.repo;
import example.model.Customer148;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer148Repository extends CrudRepository<Customer148, Long> {
List<Customer148> findByLastName(String lastName);
}
| 83 |
375 | <filename>datasets/the-movie-db/sample-data/productionCompanies/97.json
{
"id": 97,
"logo_path": "/7znWcbDd4PcJzJUlJxYqAlPPykp.png",
"description": null,
"name": "Castle Rock Entertainment",
"parent_company": {
"id": 17,
"logo_path": "/rU25OVCsksXegdnb6GUFvLYY9Gd.png",
"name": "<NAME>. Entertainme... | 165 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Hostin... | 210 |
1,780 | package io.nutz.demo.dubbo.rpc.service;
import io.nutz.demo.bean.Order;
public interface OrderService {
/**
* create order
*/
Order create(String userId, String commodityCode, int orderCount);
} | 80 |
4,013 | <reponame>kylelaker/checkov
import os
import uuid
from abc import abstractmethod
class BaseGetter(object):
def __init__(self, url):
self.url = url
self.temp_dir = None
def get(self):
current_directory = os.getcwd()
final_directory = os.path.join(current_directory, str((uuid.u... | 253 |
3,200 | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 2,666 |
362 | package net.ripe.db.whois.common.dao.jdbc.domain;
import net.ripe.db.whois.common.dao.VersionInfo;
import net.ripe.db.whois.common.domain.serials.Operation;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
public class VersionInfoRowMapper implements RowMapper<... | 310 |
562 | from conans import ConanFile, AutoToolsBuildEnvironment, MSBuild, tools
from conans.errors import ConanInvalidConfiguration
import os
import shutil
required_conan_version = ">=1.33.0"
class LibStudXmlConan(ConanFile):
name = "libstudxml"
description = "A streaming XML pull parser and streaming XML serializer... | 3,041 |
480 | /*
* Copyright [2013-2021], 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 app... | 2,225 |
444 | package tickrecorder;
import redis.clients.jedis.*;
import org.json.simple.*;
import org.json.simple.parser.*;
import com.fxcore2.*;
import java.util.Calendar;
public class redisPubsubListener extends JedisPubSub {
O2GSession session;
public redisPubsubListener(O2GSession session){
this.session =... | 797 |
3,027 | <reponame>BGTCapital/hummingbot<filename>test/hummingbot/connector/exchange/bitmart/test_bitmart_auth.py
import json
import hmac
import hashlib
from unittest import TestCase
from hummingbot.connector.exchange.bitmart.bitmart_auth import BitmartAuth
class BitmartAuthTests(TestCase):
@property
def memo(self):... | 1,297 |
2,231 | <gh_stars>1000+
// Copyright 2020 The Defold Foundation
// Licensed under the Defold License version 1.0 (the "License"); you may not use
// this file except in compliance with the License.
//
// You may obtain a copy of the License, together with FAQs at
// https://www.defold.com/license
//
// Unless required by appli... | 431 |
1,078 | <reponame>cwensley/ironpython2
# Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.
##
## Test the cStringIO module
##
import cStringIO
import unittest
from iptes... | 5,645 |
597 | <reponame>peddamat/home-assistant-supervisor-test
"""Test docker login."""
# pylint: disable=protected-access
from supervisor.coresys import CoreSys
from supervisor.docker.interface import DOCKER_HUB, DockerInterface
def test_no_credentials(coresys: CoreSys):
"""Test no credentials."""
docker = DockerInterfac... | 598 |
1,091 | <filename>core/store/primitives/src/main/java/org/onosproject/store/atomix/primitives/impl/AtomixFutures.java
/*
* Copyright 2018-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtai... | 2,655 |
2,338 | #define CLASS(NAME) \
class NAME { \
public: \
struct Inner; \
Inner *i = nullptr; \
}; \
NAME::Inner &getInne... | 416 |
8,805 | <reponame>rudylee/expo
// (C) Copyright <NAME>
//
// Use modification and distribution are subject to the boost Software License,
// Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
//------------------------------------------------------------------------------
#ifndef BOOST_FT_CONFIG_CC_NAMES_HPP_I... | 637 |
852 | <gh_stars>100-1000
// -*- C++ -*-
//
// Package: HcalQLPlotAnal
// Class: HcalQLPlotAnal
//
/**\class HcalQLPlotAnal HcalQLPlotAnal.cc RecoTBCalo/HcalQLPlotAnal/src/HcalQLPlotAnal.cc
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: <NAME>
// ... | 2,418 |
794 | <reponame>skn123/opengv<gh_stars>100-1000
/******************************************************************************
* Author: <NAME> *
* Contact: <EMAIL> *
* License: Copyright (c) 2013 <NAME>, ANU. All rights reser... | 54,330 |
605 | <reponame>kasohong/mqcloud
package com.sohu.tv.mq.cloud.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
/**
* @author yongweizhao
* @create 20... | 209 |
328 | /**
* @file h3_uart.c
*
*/
/* Copyright (C) 2021 by <NAME> mailto:<EMAIL>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights... | 2,601 |
640 | {
"name": "blinksocks",
"version": "3.3.8",
"description": "A framework for building composable proxy protocol stack",
"main": "lib/index.js",
"files": [
"bin",
"lib"
],
"bin": {
"blinksocks": "bin/start.js"
},
"scripts": {
"test": "npm run lint && npm run test:coverage",
"test:cov... | 1,445 |
1,615 | /**
* Created by MomoLuaNative.
* Copyright (c) 2019, Momo Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
package com.immomo.mls.fun.constants;
import and... | 247 |
379 | <reponame>Ahzed11/mozart2
// Copyright © 2011, Université catholique de Louvain
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above co... | 2,823 |
427 | package modern.challenge;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.Parameter;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
public class Main {
public static void main(String... | 2,761 |
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.
#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_POLICY_BUILDER_H_
#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_POLICY_BUILDER_H_
#include <stdint.h>
#inc... | 2,406 |
496 | <filename>src/backend/gpu/kernel_rw_analysis.h
#ifndef SIMIT_KERNEL_RW_ANALYSIS_H
#define SIMIT_KERNEL_RW_ANALYSIS_H
#include "ir.h"
namespace simit {
namespace ir {
std::set<Var> findRootVars(Func func);
Func kernelRWAnalysis(Func func);
}} // namespace simit::ir
#endif
| 119 |
14,668 | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "storage/browser/blob/blob_storage_context.h"
#include <inttypes.h>
#include <algorithm>
#include <limits>
#include <memory>
#include <set>
... | 11,835 |
788 | /*
*
* *
* * 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 ... | 464 |
2,453 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <AppKit/NSUndoReplaceCharacters.h>
@class DVTTextStorageCommonUndoHelper;
@interface DVTUndoReplaceCharacters : NSUndoReplaceCharacters
{
DVTTextStorageCommonUndoHelper ... | 200 |
16,500 |
#ifndef _TIME_H_
#define _TIME_H_
#include <sys/types.h>
#define time_t uint64_t
#define suseconds_t int
typedef unsigned int clock_t;
typedef struct timeval {
time_t tv_sec; /* Seconds */
suseconds_t tv_usec; /* Microseconds */
} timeval_t;
typedef struct timezone {
int tz_minuteswest;
int... | 726 |
334 | <filename>src/main/java/com/greate/community/util/CommunityUtil.java
package com.greate.community.util;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.RandomUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
import org.springframework.util.DigestUtils... | 1,463 |
2,151 | <filename>chrome/browser/printing/print_test_utils.h
// 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 CHROME_BROWSER_PRINTING_PRINT_TEST_UTILS_H_
#define CHROME_BROWSER_PRINTING_PRINT_TEST_UTILS_... | 273 |
565 |
#include "mathematica/integrator_plots.hpp"
#include <algorithm>
#include <fstream> // NOLINT(readability/streams)
#include <iostream> // NOLINT(readability/streams)
#include <string>
#include <utility>
#include <vector>
#include "absl/status/status.h"
#include "base/bundle.hpp"
#include "base/file.hpp"
#include ... | 7,337 |
455 | #pragma once
#include "TimedAction.h"
namespace star
{
class TimedMoveAction : public TimedAction
{
public:
TimedMoveAction(
float32 seconds,
const vec2 & target,
const std::function<void()> & callback = nullptr
);
TimedMoveAction(
const tstring & name,
float32 seconds,
... | 511 |
666 | from __future__ import print_function
import os
import sys
from argparse import ArgumentParser, RawDescriptionHelpFormatter
from argparse import ArgumentTypeError
from .core import process_file
def run(filename, output=None, model_capacity='full', viterbi=False,
save_activation=False, save_plot=False, plot_... | 3,411 |
753 | {
"$schema": "https://on.cypress.io/cypress.schema.json",
"baseUrl": "http://localhost:1234",
"projectId": "fwfrp4"
}
| 54 |
493 | <reponame>V-labs/CoreValue<gh_stars>100-1000
//
// CoreValueMac.h
// CoreValueMac
//
// Created by <NAME> on 05/07/15.
// Copyright © 2015 <NAME>. All rights reserved.
//
//! Project version number for CoreValueMac.
FOUNDATION_EXPORT double CoreValueMacVersionNumber;
//! Project version string for CoreValueMac.
F... | 157 |
1,338 | /*
* Copyright 2009, <NAME>. All rights reserved.
* Copyright 2006, <NAME>. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _ACPI_PRIVATE_H
#define _ACPI_PRIVATE_H
#include <sys/cdefs.h>
#include <device_manager.h>
#include <KernelExport.h>
#include <ACPI.h>
#include <PCI.h>
//... | 3,220 |
4,879 | #include "map/ads_engine_delegate.hpp"
#include "geometry/mercator.hpp"
namespace ads
{
AdsEngineDelegate::AdsEngineDelegate(storage::CountryInfoGetter const & infoGetter,
storage::Storage const & storage, promo::Api const & promoApi,
Purchase ... | 580 |
474 | /* Copyright 2015 Samsung Electronics Co., LTD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 758 |
575 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_TASK_SEQUENCE_MANAGER_TEST_MOCK_TIME_MESSAGE_PUMP_H_
#define BASE_TASK_SEQUENCE_MANAGER_TEST_MOCK_TIME_MESSAGE_PUMP_H_
#include "base/callba... | 1,042 |
575 | // 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 "ash/fast_ink/fast_ink_host.h"
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES2/gl2extchromium.h>
#include <memory>
#include "... | 7,214 |
14,668 | <filename>net/ssl/ssl_client_session_cache.cc<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 "net/ssl/ssl_client_session_cache.h"
#include <tuple>
#include <utility>
#include ... | 2,199 |
1,173 | <filename>bit/constants.py
# Transactions:
VERSION_1 = 0x01 .to_bytes(4, byteorder='little')
VERSION_2 = 0x02 .to_bytes(4, byteorder='little')
MARKER = b'\x00'
FLAG = b'\x01'
SEQUENCE = 0xFFFFFFFF .to_bytes(4, byteorder='little')
LOCK_TIME = 0x00 .to_bytes(4, byteorder='little')
HASH_TYPE = 0x01 .to_bytes(4, byteorder=... | 672 |
476 | package me.xiaobailong24.mvvmarms.repository;
import android.content.Context;
import me.xiaobailong24.mvvmarms.repository.di.module.RepositoryConfigModule;
/**
* @author xiaobailong24
* @date 2017/9/28
* Repository 配置接口
*/
public interface ConfigRepository {
/**
* 使用 {@link RepositoryConfigModule.Builde... | 214 |
622 | /**
* @author: salimt
*/
package model;
public class StandardSizedBook extends Book {
private static final double FLAT_RATE_SHIPPING = 2.00;
private static final String MIN_BOX_SIZE = "medium";
public StandardSizedBook(String title, double price) {
super(title, price);
}
... | 539 |
791 | <reponame>manuel-trejo-rico/goformation<gh_stars>100-1000
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Template has a Serverless resource, but wrong transform",
"Transform" : "HelloWorld",
"Resources" : {
"MyServerlessFunctionLogicalID": {
"Type": "AWS::Serverless::Function",
"P... | 200 |
1,374 | <filename>core-lib/es6/src/main/java/def/js/TemplateStringsArray.java
package def.js;
@jsweet.lang.Interface
public abstract class TemplateStringsArray extends Array<java.lang.String> {
public java.lang.String[] raw;
}
| 74 |
348 | {"nom":"Feyzin","circ":"14ème circonscription","dpt":"Rhône","inscrits":6225,"abs":3941,"votants":2284,"blancs":169,"nuls":77,"exp":2038,"res":[{"nuance":"REM","nom":"<NAME>","voix":1260},{"nuance":"FN","nom":"<NAME>","voix":778}]} | 94 |
353 | <reponame>AdarshSai/Final_project
from io import BytesIO
import pytest
import logging
from matplotlib import afm
from matplotlib import font_manager as fm
# See note in afm.py re: use of comma as decimal separator in the
# UnderlineThickness field and re: use of non-ASCII characters in the Notice
# field.
... | 1,751 |
2,517 | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#pragma once
#include <cstdint>
#include "caf/actor_system.hpp"
#include "caf/io/middle... | 177 |
1,350 | <reponame>billwert/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.mediaservices.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxm... | 390 |
1,144 | <filename>u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/include/power/as3722.h
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (C) 2014 NVIDIA Corporation
*/
#ifndef __POWER_AS3722_H__
#define __POWER_AS3722_H__
#define AS3722_GPIO_OUTPUT_VDDH (1 << 0)
#define AS3722_GPIO_INVERT (1 << 1)
#define AS3722_D... | 476 |
634 | package com.intellij.openapi.vcs.actions;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.ToggleAction;
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.vcs.CommitMessageI;
import com.intellij.openapi.vcs.VcsDataKeys;
import com.intellij.openap... | 555 |
5,169 | <reponame>Gantios/Specs<gh_stars>1000+
{
"name": "SwiftyGiphyKit",
"version": "0.1.2",
"summary": "Lightweight Swift kit used to present Giphy search/picker view and display/edit GIFs in a user-interactable image view powered by SwiftyGif.",
"description": "Lightweight Swift kit used to present Giphy search/pic... | 368 |
452 | package pl.altkom.asc.lab.micronaut.poc.auth;
import io.micronaut.runtime.Micronaut;
public class AuthApplication {
public static void main(String[] args) {
Micronaut.run(AuthApplication.class);
}
} | 82 |
3,444 | package com.hellokaton.blade.security.xss;
import com.hellokaton.blade.kit.StringKit;
import com.hellokaton.blade.mvc.RouteContext;
import com.hellokaton.blade.mvc.hook.WebHook;
import com.hellokaton.blade.mvc.http.StringBody;
import com.hellokaton.blade.security.filter.HTMLFilter;
import lombok.NoArgsConstructor;
im... | 961 |
473 | #include "libpov.h"
int main(int cgc_argc, char *cgc_argv[]) {
cgc_negotiate_type1(0x0, 0x0, 0);
do {
//*** writing data
static unsigned char write_00000_00000[] =
"\x04\x04\x00\x00";
static unsigned int write_00000_00000_len = 4;
unsigned char *write_00000 = NULL;
unsigned... | 7,686 |
5,964 | /*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrInvariantOutput.h"
#ifdef SK_DEBUG
void GrInvariantOutput::validate() const {
if (fIsSingleComponent) {
SkASSERT(0 == fValidFlags || kRGBA_GrColorCom... | 703 |
5,133 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.inheritfromconfig;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.ma... | 310 |
852 | <reponame>Purva-Chaudhari/cmssw
#ifndef SIMCALORIMETRY_ECALTRIGPRIMALGOS_ECALFENIXAMPLITUDEFILTER_H
#define SIMCALORIMETRY_ECALTRIGPRIMALGOS_ECALFENIXAMPLITUDEFILTER_H
#include <cstdint>
#include <vector>
class EcalTPGWeightIdMap;
class EcalTPGWeightGroup;
/**
\ class EcalFenixAmplitudeFilter
\brief calculates ...... | 547 |
1,681 | /*
* Copyright 2016-2020 The OpenTracing 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 applicable law or ... | 1,374 |
521 | #ifndef CURSOR_H
#define CURSOR_H
/** @file
*
* MuCurses cursor implementation specific header file
*
*/
FILE_LICENCE ( GPL2_OR_LATER );
struct cursor_pos {
unsigned int y, x;
};
/**
* Restore cursor position from encoded backup variable
*
* @v *win window on which to operate
* @v *pos pointer to struct in... | 272 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 951 |
3,008 | <filename>tests/testReturnStop.cpp<gh_stars>1000+
/*
* Copyright 2021 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/lic... | 1,847 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.