max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
2,100 | <filename>gapis/shadertools/cc/common.cpp
/*
* Copyright (C) 2017 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
*
* ... | 817 |
3,651 | <reponame>aberdev/orientdb
package com.orientechnologies.orient.server.distributed;
import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
import com.orientechnologies.orient.core.id.ORID;
import com.orientechnologies.orient.core.id.ORecordId;
import com.orientechnologies.orient.core.metadata.schema.O... | 1,700 |
543 | /*
* Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 10,748 |
1,041 | package org.example.records;
import javax.persistence.Embeddable;
@Embeddable
public record Address (String line1, String line2, String city) {
}
| 48 |
496 | <reponame>caijianfang/j360-dubbo-app-all<gh_stars>100-1000
package me.j360.dubbo.common.api.message;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.MessageSource;
import org.springframework.context.MessageSourceAware;
import org.springfra... | 910 |
313 | <reponame>leibale/RedisGraph
/*
* Copyright 2018-2022 Redis Labs Ltd. and Contributors
*
* This file is available under the Redis Labs Source Available License Agreement
*/
#include "ast_mock.h"
#include "../query_ctx.h"
#include "../util/rmalloc.h"
AST *AST_MockMatchClause(AST *master_ast, cypher_astnode_t *node... | 961 |
17,085 | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 1,039 |
1,020 | <reponame>icse18-refactorings/RoboBinding
package org.robobinding.internal.java_beans;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Before;
import org.junit.Test;
/**
* @since 1.0
* @version
* @author <NAME>
*
*/
public class WeakCacheTest {
... | 471 |
453 | <reponame>iwikmai/upvote<filename>upvote/gae/utils/env_utils.py
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org... | 1,019 |
593 | package org.ananas.runner.kernel.common;
import freemarker.template.Template;
import freemarker.template.TemplateException;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import java.io.Writer;
import java.util.HashMap;
import java.util.Map;
import org.ananas.runner.kernel.model.... | 585 |
45,293 | <reponame>qussarah/declare
package test;
public interface RawUpperBound<T extends RawUpperBound> {
}
| 35 |
552 | <reponame>mewbak/kiui
#include <UiExampleConfig.h>
#include <UiExample.h>
#include <toyui/Bundle.h>
#if TOY_PLATFORM_EMSCRIPTEN
#include <toyui/Context/EmscriptenContext.h>
#define TOYUI_RESOURCE_PATH "/data/"
#include <emscripten/emscripten.h>
toy::UiWindow* gWindow;
void iterate()
{
gWindow->nextFrame();
... | 697 |
362 | <reponame>hsiangawang/whois
package net.ripe.db.whois.common.dao.jdbc.index;
import net.ripe.db.whois.common.dao.RpslObjectInfo;
import net.ripe.db.whois.common.rpsl.AttributeType;
import org.apache.commons.lang.Validate;
import org.springframework.jdbc.core.JdbcTemplate;
abstract class IndexStrategyWithSingleLookupT... | 457 |
2,610 | {
"verification-link": {
"name": "Send Account Confirmation Link w/ Redirect",
"description": "This template sends a confirmation link to a user which provides a url utilizing an S3 static site. The static site will confirm the user's account and redirect the user back to a specified url.",
"env": [
... | 538 |
432 | <filename>contrib/binutils-2.34/libctf/ctf-hash.c
/* Interface to hashtable implementations.
Copyright (C) 2006-2020 Free Software Foundation, Inc.
This file is part of libctf.
libctf is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published ... | 3,967 |
435 | {
"copyright_text": null,
"description": "Tools to make your data analysis and machine learning both easier and more reliable\n\n| The wrong way to start your machine learning project is to \u201cchuck\n everything into a model to see what happens\u201d. The better way is to\n visualise your data to expose the re... | 433 |
429 | /*
* Copyright (c) 2021, <NAME>. All Rights Reserved.
*
* This file is part of Efficient Java Matrix Library (EJML).
*
* 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.... | 3,269 |
381 | void cxx_throw();
__attribute((visibility("hidden")))
int eh_trampoline()
{
struct X { ~X() {} } x;
cxx_throw();
return 0;
}
| 54 |
8,840 | <filename>externals/figlet/crc.h
/*
* crc.h - CRC calculation routine
*
* Version 1.0.1
*/
/*
* Copyright (C) 1995, <NAME>
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby granted,
* provided that the above copyright notice app... | 692 |
600 | <filename>engine/xbox/generic/2xsaiwin.h
// snes9x/gfx.h
/*
* Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
*
* (c) Copyright 1996 - 2001 <NAME> (<EMAIL>) and
* <NAME> (<EMAIL>)
*
* Super FX C emulator code
* (c) Copyright 1997 - 1999 Ivar (<EMAIL>) and
* ... | 2,734 |
2,709 | <reponame>solosuper/matplotplusplus
#include <iostream>
#include <matplot/matplot.h>
#include <set>
#include <thread>
#include <vector>
int main() {
using namespace matplot;
for (size_t k = 0; k < 4; ++k) {
auto data = rand(10, 0, 1);
subplot(2, 2, k);
stem(data);
}
subplot(2,... | 170 |
421 |
// System::Reflection::AssemblyName::KeyPair
// System::Reflection::AssemblyName::GetPublicKey()
// System::Reflection::AssemblyName::GetPublicKeyToken()
// System::Reflection::AssemblyName::Flags
// System::Reflection::AssemblyName::VersionCompatibility
/*
The following example demonstrates the 'GetPublicK... | 1,802 |
344 | <gh_stars>100-1000
#ifndef GUARD_SCRIPTPOKE81B9_H
#define GUARD_SCRIPTPOKE81B9_H
#include "global.h"
void sub_81B9404(void);
#endif
| 68 |
389 | <reponame>kschoos/vivado-library
/*******************************************************************************
MRF24WG External Interrupt Stub Functions
Summary: Functions to control MRF24WG External Interrupt.
*******************************************************************************/
/* MRF24WG0M Unive... | 3,614 |
14,668 | <filename>services/network/origin_policy/origin_policy_parsed_header.h
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_NETWORK_ORIGIN_POLICY_ORIGIN_POLICY_PARSED_HEADER_H_
#define SERVI... | 527 |
997 | <filename>crypto_kem/mceliece460896/vec/sk_gen.h
#ifndef PQCLEAN_MCELIECE460896_VEC_SK_GEN_H
#define PQCLEAN_MCELIECE460896_VEC_SK_GEN_H
/*
This file is for secret-key generation
*/
#include "gf.h"
#include <stdint.h>
int PQCLEAN_MCELIECE460896_VEC_genpoly_gen(gf * /*out*/, gf * /*f*/);
int PQCLEAN_MCELIECE460896... | 181 |
903 | package php.runtime.ext.net;
import php.runtime.annotation.Reflection.*;
import php.runtime.env.Environment;
import php.runtime.ext.NetExtension;
import php.runtime.lang.BaseWrapper;
import php.runtime.reflection.ClassEntity;
import javax.net.ssl.*;
import java.io.IOException;
import java.io.InputStream;
import java.... | 2,230 |
649 | package net.serenitybdd.core.webdriver.servicepools;
import java.io.File;
import java.io.IOException;
import java.net.URL;
public class DisabledGeckoDriverService extends org.openqa.selenium.firefox.GeckoDriverService {
public DisabledGeckoDriverService() throws IOException {
super(new File(""), 0, null,... | 304 |
1,040 | //-----------------------------------------------------------------------------
// File: Mirror.cpp
//
// Desc: Example code showing how to use stencil buffers to implement planar
// mirrors.
//
// Note: This code uses the D3D Framework helper library.
//
// Copyright (c) 1998-1999 Microsoft Corporation. Al... | 7,635 |
765 | <reponame>hyu-iot/gem5<gh_stars>100-1000
/*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding ... | 1,816 |
398 | """Tools for parsing TIMIT.
TIMIT is described here: https://catalog.ldc.upenn.edu/docs/LDC93S1/
Copyright <NAME>, September 2016.
"""
import os
import numpy as np
from scipy.io import wavfile
from collections import OrderedDict
import tensorflow as tf
def parse_timit_entry(dirpath, file):
"""Summary.
Para... | 6,336 |
401 | <reponame>nils-ohlmeier/ice4j
/*
* ice4j, the OpenSource Java Solution for NAT and Firewall Traversal.
*
* Copyright @ 2015 Atlassian Pty 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 Licen... | 4,976 |
371 | <reponame>Biangkerok32/OpenGraphView<gh_stars>100-1000
package me.kaelaela.opengraphview;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import android.graphics.Shader;
i... | 1,508 |
1,208 | <filename>aws_lambda_powertools/utilities/data_classes/cloud_watch_logs_event.py
import base64
import json
import zlib
from typing import Dict, List, Optional
from aws_lambda_powertools.utilities.data_classes.common import DictWrapper
class CloudWatchLogsLogEvent(DictWrapper):
@property
def get_id(self) -> s... | 1,277 |
3,495 | <filename>src/pybindings/pycontroller/ControllerBindings/PyChip_ChipError.cpp
/*
* Copyright (c) 2021 Project CHIP 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... | 1,774 |
2,151 | <reponame>zipated/src
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/sync_sessions/tab_node_pool.h"
#include <vector>
#include "testing/gmock/include/gmock/gmock.h"
#include "tes... | 3,295 |
722 | import pickle
import struct
import carbon_pb2
data = [
[('param1', (1423931224, 60.2))],
[('param1', (1423931224, 60.2), (1423931225, 50.2), (1423931226, 40.2))],
[('param1', (1423931224, 60.2)), ('param2', (1423931224, -15))],
[('param1', (1423931224, 60.2), (1423931284, 42)), ('param2', (1423931224, -15))],
]
d... | 897 |
922 | <filename>engine/src/test/java/org/hibernate/validator/test/internal/metadata/aggregated/ExecutableMetaDataTest.java
/*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LIC... | 4,633 |
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 ... | 434 |
1,889 | <gh_stars>1000+
//
// Keyboard.h
// TouchBar
//
// Created by <NAME> on 10/11/2016.
// Copyright © 2016 Bikkelbroeders. All rights reserved.
//
#ifndef Keyboard_h
#define Keyboard_h
typedef NS_ENUM(uint64_t, KeyEventType) {
KeyEventTypeKeyDown = 10,
KeyEventTypeKeyUp = 11,
KeyEventTypeFlag... | 349 |
670 | <reponame>smit-hinsu/tensorboard
# Copyright 2018 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://www.apache.org/licenses/LICENSE-2... | 581 |
705 | <reponame>dixonzhao/Java_Study_Zhao
package week02_part01.solution;
public class BlueWhale extends Whale
{
int [] rgb;
String name;
public BlueWhale()
{
this(162, "<NAME>");
System.out.println ("BlueWhale() constructor called");
}
public BlueWhale(int old, String name)
{
super(old, 8.0 * 12.0)... | 508 |
562 | #pragma once
#ifdef _WIN32
# ifdef TEST_SHARED_BUILD
# define TEST_SHARED_API __declspec(dllexport)
# else
# define TEST_SHARED_API __declspec(dllimport)
# endif
#else
# define TEST_SHARED_API
#endif
TEST_SHARED_API
const char *get_test_shared_text();
| 107 |
609 | <reponame>RC0D3/gramado
/*BSD style*/
#define __const const /* define reserved names to standard */
#define __signed signed
#define __volatile volatile | 54 |
427 | //
// MUOverlayView.h
// MUKit_Example
//
// Created by Jekity on 2017/11/8.
// Copyright © 2017年 Jeykit. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MUCircleView.h"
#import "MUCheckmarkView.h"
@interface MUOverlayView : UIView
@property(nonatomic, strong)MUCircleView *circleView;
@property(nonatomic... | 158 |
402 | <filename>Chapter06/descriptors_pythonic_2.py
"""Clean Code in Python - Chapter 6: Descriptors
> A Pythonic Implementation
"""
class HistoryTracedAttribute:
"""Trace the values of this attribute into another one given by the name at
``trace_attribute_name``.
"""
def __init__(self, trace_attribute_n... | 983 |
1,411 | <reponame>Laighno/evt
#pragma once
#include <boost/container/flat_map.hpp>
#include <boost/container/flat_set.hpp>
#include <boost/container/vector.hpp>
namespace fc {
using boost::container::flat_map;
using boost::container::flat_set;
namespace raw {
template<typename Stream, typename T, typename... U>
void pack( ... | 356 |
1,375 | // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_LOG_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_LOG_H_
#include "sw/device/silicon_creator/lib/error.h"
#ifdef _... | 457 |
2,659 | /*
* Copyright 2021 4Paradigm
*
* 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,672 |
571 | <gh_stars>100-1000
//
// Object plotter
//
//! \file obj_drawg.c
//! \author <NAME>
//! \date 20070715 - 20070822
//
/* === NOTES ===
* 20070715: The object system works a little differently than the
others. Objects are used as a descending stack with dstPitch as the
backwards obj index. Also, INK, SHADO... | 670 |
681 | /* Bartabgroups properties, you can override these in your config.h if you want. */
#ifndef BARTAB_BORDERS
#define BARTAB_BORDERS 1 // 0 = off, 1 = on
#endif
#ifndef BARTAB_SHOWFLOATING
#define BARTAB_SHOWFLOATING 0 // whether to show titles for floating windows, hidden clients are always shown
#endif
#ifndef BA... | 3,005 |
995 | #ifndef BOOST_STATECHART_FIFO_SCHEDULER_HPP_INCLUDED
#define BOOST_STATECHART_FIFO_SCHEDULER_HPP_INCLUDED
//////////////////////////////////////////////////////////////////////////////
// Copyright 2002-2006 <NAME>
// Distributed under the Boost Software License, Version 1.0. (See accompany-
// ing file LICENSE_1_... | 2,394 |
2,151 | <gh_stars>1000+
/*
* Copyright 2015 The Native Client 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 <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/wait.h>
... | 1,849 |
3,001 | <filename>rosie/rosie/federal_senate/adapter.py
import os
import numpy as np
import pandas as pd
from serenata_toolbox.federal_senate.dataset import Dataset
COLUMNS = {
'net_value': 'reimbursement_value',
'recipient_id': 'cnpj_cpf',
'recipient': 'supplier',
}
class Adapter:
def __init__(self, path... | 659 |
559 | <filename>seyren-acceptance-tests/src/test/java/com/seyren/acceptancetests/util/SeyrenDriver.java
/**
* 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/license... | 859 |
4,111 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 669 |
595 | /******************************************************************************
* Copyright (c) 2017 - 2020 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
#ifndef XPFW_MOD_WDT_H_
#define XPFW_MOD_WDT_H_
#ifdef __cplusp... | 159 |
454 | <filename>vertx-gaia/vertx-co/src/main/java/io/vertx/up/eon/em/AuthWord.java
package io.vertx.up.eon.em;
/**
* @author <a href="http://www.origin-x.cn">Lang</a>
*/
public enum AuthWord {
AND, // Perm1 + Perm2 + Perm3
OR, // Perm1, Perm2, Perm3
}
| 124 |
504 | #include <vector>
#include <iostream>
#include <amgcl/backend/vexcl.hpp>
#include <amgcl/backend/vexcl_static_matrix.hpp>
#include <amgcl/adapter/crs_tuple.hpp>
#include <amgcl/make_solver.hpp>
#include <amgcl/amg.hpp>
#include <amgcl/coarsening/smoothed_aggregation.hpp>
#include <amgcl/relaxation/spai0.hpp>
#include ... | 2,103 |
777 | /*
* Copyright © 2016 Google, Inc.
*
* This is part of HarfBuzz, a text shaping library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above copy... | 1,423 |
453 | /* Copyright (c) 2009, 2010, 2011, 2012 ARM Ltd. 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 conditions... | 835 |
1,600 | ../../../recipe-07/cxx-example/external/conversion.hpp | 20 |
4,036 | <reponame>vadi2/codeql<filename>cpp/ql/src/Security/CWE/CWE-120/UnboundedWrite.c
void congratulateUser(const char *userName)
{
char buffer[80];
// BAD: this could overflow the buffer if the UserName is long
sprintf(buffer, "Congratulations, %s!", userName);
MessageBox(hWnd, buffer, "New Message", MB_OK);
} | 109 |
12,718 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
** asm/bootinfo-atari.h -- Atari-specific boot information definitions
*/
#ifndef _ASM_M68K_BOOTINFO_ATARI_H
#define _ASM_M68K_BOOTINFO_ATARI_H
/*
* Atari-specific tags
*/
#define BI_ATARI_MCH_COOKIE 0x8000 /* _MCH cookie from TOS (__b... | 453 |
595 | /******************************************************************************
* Copyright (C) 2010 - 2020 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
/****************************************************************... | 2,133 |
1,016 | <gh_stars>1000+
package com.thinkbiganalytics.nifi.rest.visitor;
/*-
* #%L
* thinkbig-nifi-rest-client-api
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a co... | 936 |
330 | <gh_stars>100-1000
package chapter_11;
import java.util.Base64;
import java.util.HashMap;
import java.util.Map;
/**
* 按需重构接口
*
* @author biezhi
* @date 2018/8/13
*/
public class Example6 {
class Cipher {
String method;
String key;
public Cipher(String method, String key) {
... | 526 |
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 WARRANTIES OF ... | 1,768 |
1,144 | package de.metas.ui.web.window.descriptor;
import com.google.common.base.MoreObjects;
import com.google.common.base.Preconditions;
import com.google.common.base.Stopwatch;
import com.google.common.collect.ImmutableMap;
import de.metas.i18n.ITranslatableString;
import de.metas.i18n.TranslatableStrings;
import de.metas.... | 3,145 |
369 | <reponame>corner4world/cdap
/*
* Copyright © 2015-2018 <NAME>, 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... | 11,003 |
348 | # Generated by Django 2.1.7 on 2019-03-26 11:54
import accounts.managers
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AlterModelManagers(
name='user',
managers=[... | 243 |
348 | {"nom":"Riventosa","circ":"2ème circonscription","dpt":"Haute-Corse","inscrits":170,"abs":32,"votants":138,"blancs":6,"nuls":1,"exp":131,"res":[{"nuance":"REG","nom":"<NAME>","voix":90},{"nuance":"REM","nom":"<NAME>","voix":41}]} | 92 |
349 | <reponame>kooiot/siridb-server
/*
* bserver.h - Listen to back-end SiriDB Server.
*/
#ifndef SIRINET_BSERVER_H_
#define SIRINET_BSERVER_H_
#include <siri/siri.h>
int sirinet_bserver_init(siri_t * siri);
#endif /* SIRINET_BSERVER_H_ */
| 116 |
579 | package com.wirelesspienetwork.overview.model;
import android.view.View;
import com.wirelesspienetwork.overview.views.OverviewCard;
public class ViewHolder<V extends View, Model extends Object>
{
public final V itemView;
public Model model;
private OverviewCard mContainer;
private int mCurrentPosit... | 421 |
1,836 | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "testutil.h"
#include "skip/Exception.h"
#include "skip/external.h"
#include "skip/map.h"
#include "skip/System.h"
#inc... | 3,804 |
1,086 | <gh_stars>1000+
/* libFLAC - Free Lossless Audio Codec library
* Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 <NAME>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source cod... | 1,605 |
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 ... | 1,046 |
4,879 | <filename>qt/mwms_borders_selection.hpp
#pragma once
#include <string>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QRadioButton>
class Framework;
namespace qt
{
class MwmsBordersSelection : public QDialog
{
public... | 371 |
347 | package org.ovirt.engine.ui.common.widget.table.header;
import org.gwtbootstrap3.client.ui.constants.IconType;
import com.google.gwt.core.shared.GWT;
import com.google.gwt.dom.client.Style.TextAlign;
import com.google.gwt.dom.client.Style.VerticalAlign;
import com.google.gwt.safecss.shared.SafeStyles;
import com.goog... | 563 |
322 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 1,957 |
331 | <gh_stars>100-1000
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2017 <NAME>
import argparse
import json
import matplotlib # isort:skip
matplotlib.use('Agg') # isort:skip
import chainer
from chainer import iterators
from chainer import optimizers
from chainer import training
from chainer.training... | 2,997 |
369 | /*
* Copyright © 2017 Cask Data, 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 t... | 2,292 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-x582-23f7-w3cc",
"modified": "2022-05-13T01:04:11Z",
"published": "2022-05-13T01:04:11Z",
"aliases": [
"CVE-2017-13715"
],
"details": "The __skb_flow_dissect function in net/core/flow_dissector.c in the Linux kernel before 4.3 does not ensure that n_proto, ip_p... | 675 |
399 | #pragma once
#if BUILD_WITH_EASY_PROFILER && BUILD_WITH_OPTICK
# error Cannot enable both profilers at once. Just pick one.
#endif // BUILD_WITH_EASY_PROFILER && BUILD_WITH_OPTICK
#if !BUILD_WITH_EASY_PROFILER && !BUILD_WITH_OPTICK
# define EASY_FUNCTION(...)
# define EASY_BLOCK(...)
# define EASY_END_BLOCK
# define ... | 701 |
884 | <reponame>clayne/blink<filename>source/msf_reader.hpp
/**
* Copyright (C) 2016 <NAME>. All rights reserved.
* License: https://github.com/crosire/blink#license
*/
#pragma once
#include <string>
#include <vector>
#include <fstream>
namespace blink
{
/// <summary>
/// Class which splits a multi-stream file into i... | 466 |
1,830 | /**
* Copyright (C) 2021 FISCO BCOS.
* SPDX-License-Identifier: Apache-2.0
* 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... | 852 |
571 | <reponame>ufora/ufora<filename>ufora/FORA/python/PurePython/WithBlockExecutor_test.py
# Copyright 2015 Ufora 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.... | 9,164 |
387 | /* Copyright (C) 2013 Interactive Brokers LLC. All rights reserved. This code is subject to the terms
* and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable. */
package com.ib.client;
public enum OrderType implements IApiEnum {
None( ""),
MKT( "MKT"),
LMT( "LMT"),
... | 777 |
1,125 | <filename>third_party/libigl/include/igl/qslim_optimal_collapse_edge_callbacks.cpp
// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2016 <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was ... | 2,069 |
665 | /*
* 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")... | 657 |
2,177 | /*
* Copyright 2019 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License"). See License in the project root for license information.
*/
package com.linkedin.kafka.cruisecontrol.config;
/**
* A wrapper class for pluggable config names to handle a request.
*/
public class RequestParameterWrapper {
... | 289 |
1,761 | # Image Scaling Down Drawing Test
#
# This script tests the performance and quality of the draw_image()
# method which can perform nearest neighbor, bilinear, bicubic, and
# area scaling along with color channel extraction, alpha blending,
# color palette application, and alpha palette application.
# DISABLE THE FRAME... | 1,003 |
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... | 857 |
2,151 | <filename>components/drive/drive_api_util_unittest.cc
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/drive/drive_api_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base... | 1,743 |
2,542 | <filename>src/prod/src/Reliability/Failover/ra/Hosting.ServiceTypeMapEntity.cpp<gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
... | 799 |
521 | /* functions to decode a serial date number */
#include "fb.h"
#include <math.h>
/*:::::*/
FBCALL void fb_hDateDecodeSerial ( double serial,
int *pYear, int *pMonth, int *pDay )
{
int tmp_days;
int cur_year = 1900;
int cur_month = 1;
int cur_day = 1;
serial = fl... | 1,022 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import jav... | 496 |
497 | /**************************************************************************
*
* Copyright 2013-2014 RAD Game Tools and Valve Software
* 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"), to d... | 10,203 |
3,702 | // Copyright (c) YugaByte, 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 writ... | 1,200 |
1,208 | //
// ZZFlexibleLayoutEmptyHeaderFooterView.h
// zhuanzhuan
//
// Created by lbk on 2017/7/25.
// Copyright © 2017年 zz. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ZZFlexibleLayoutEmptyHeaderFooterView : UICollectionReusableView
@end
| 99 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.