max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
14,425 | <reponame>bzhaoopenstack/hadoop
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Ver... | 3,085 |
852 | #include "RecoLuminosity/LumiProducer/interface/Exception.h"
lumi::Exception::Exception(const std::string& message, const std::string& methodName, const std::string& moduleName)
: m_message(message + " LUMI :\"" + methodName + "\" from \"" + moduleName + "\" )") {}
lumi::nonCollisionException::nonCollisionException... | 679 |
416 | # Python Security Project (PySec) and its related class files.
#
# PySec is a set of tools for secure application development under Linux
#
# Copyright 2014 PySec development team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You... | 482 |
467 | package org.maqetta.server;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URLConnection;
public interface IVResource {
// pub... | 527 |
3,755 | {
"actions": [],
"creation": "2019-09-24 11:41:25.291377",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"link_doctype",
"link_fieldname",
"parent_doctype",
"table_fieldname",
"group",
"hidden",
"is_child_table",
"custom"
],
"fields": [
{
"fieldname": "link_... | 731 |
6,139 | <gh_stars>1000+
/*
* Copyright 2016 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 725 |
524 | #pragma once
#include <string>
namespace core
{
struct icollection;
namespace wim
{
class voip_call_quality_popup_conf
{
public:
struct reason
{
std::string id_; // ["interrupt_resume", "unexpected_interrupt", ...]
std::string display_string_; // corresponding to id translated string
... | 442 |
16,831 | {
"requests": {
"base": "https://api.keen.io/3.0/projects/${projectId}/events",
"pageview": "${base}/pageviews?api_key=${writeKey}",
"click": "${base}/clicks?api_key=${writeKey}",
"custom": "${base}/${collection}?api_key=${writeKey}"
},
"triggers": {
"trackPageview": {
"on": "visible",
... | 784 |
634 | /*
* Copyright 2000-2012 JetBrains s.r.o.
*
* 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... | 4,626 |
369 | // Copyright (c) 2017-2021, Mudita <NAME>.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "Table.hpp"
#include "Record.hpp"
#include "utf8/UTF8.hpp"
struct ContactsAddressTableRow : public Record
{
uint32_t contactID = DB_ID_NONE;
UTF8 addre... | 613 |
6,989 | <gh_stars>1000+
/* this file was generated by Tools/unicode/makeunicodedata.py 2.6 */
/* a list of unique character type descriptors */
const _PyUnicode_TypeRecord _PyUnicode_TypeRecords[] = {
{0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 32},
{0, 0, 0, 0, 0, 48},
{0, 0, 0, 0, 0, 518},
... | 93,416 |
2,419 | <reponame>ChristianWilkie/Chronicle-Queue
/*
* Copyright (c) 2016-2020 chronicle.software
*/
package net.openhft.chronicle.queue.watcher;
import net.openhft.chronicle.core.watcher.JMXFileManager;
import net.openhft.chronicle.queue.impl.TableStore;
import net.openhft.chronicle.queue.impl.single.SingleChronicleQueue;... | 843 |
6,390 | # -*- encoding: utf-8 -*-
BINARY_CLASSIFICATION = 1
MULTICLASS_CLASSIFICATION = 2
MULTILABEL_CLASSIFICATION = 3
REGRESSION = 4
MULTIOUTPUT_REGRESSION = 5
REGRESSION_TASKS = [REGRESSION, MULTIOUTPUT_REGRESSION]
CLASSIFICATION_TASKS = [BINARY_CLASSIFICATION, MULTICLASS_CLASSIFICATION,
MULTILABEL... | 416 |
640 | <filename>4 专业科目/操作系统/实验/ucore/ucore_lab/labcodes_answer/lab7_result/user/libs/ulib.c
#include <defs.h>
#include <syscall.h>
#include <stdio.h>
#include <ulib.h>
void
exit(int error_code) {
sys_exit(error_code);
cprintf("BUG: exit failed.\n");
while (1);
}
int
fork(void) {
return sys_fork();
}
int
wa... | 410 |
32,544 | <filename>core-java-modules/core-java-concurrency-advanced/src/main/java/com/baeldung/concurrent/atomic/UnsafeCounter.java
package com.baeldung.concurrent.atomic;
public class UnsafeCounter {
private int counter;
int getValue() {
return counter;
}
void increment() {
counter++;... | 133 |
9,660 | // Software License Agreement (BSD License)
//
// Copyright (c) 2010-2021, Deusty, LLC
// All rights reserved.
//
// Redistribution and use of this software in source and binary forms,
// with or without modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code m... | 556 |
2,984 | <filename>core/src/test/java/org/apache/calcite/test/RuleMatchVisualizerTest.java
/*
* 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 t... | 1,717 |
346 | /*! -*-c++-*-
@file FaceDetectorAndTrackerNN.h
@author <NAME>
@brief Declaration of simple nearest neighbor (noop) FaceDetectorAndTracker.
\copyright Copyright 2014-2016 Elucideye, Inc. All rights reserved.
\license{This project is released under the 3 Clause BSD License.}
*/
#include "drishti/face/Face... | 429 |
2,113 | /*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source 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 at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless re... | 1,845 |
1,475 | <reponame>mhansonp/geode
/*
* 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
*... | 2,224 |
305 | from __future__ import print_function, absolute_import, division
import numpy as np
def load_ply_data(filename):
"""load model data from .obj file"""
v_list = [] # vertex coordinate
vt_list = [] # vertex texture coordinate
vc_list = [] # vertex color
vn_list = [] # vertex normal
f_list = [... | 5,465 |
509 | /*
* Copyright (C)2016 - SMBJ Contributors
*
* 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... | 2,454 |
421 | <filename>samples/snippets/cpp/VS_Snippets_CLR_System/system.String.IndexOf/CPP/indexofcii.cpp<gh_stars>100-1000
//<snippet1>
// Example for the String::IndexOf( Char, int, int ) method.
using namespace System;
void FindAllChar( Char target, String^ searched )
{
Console::Write( "The character '{0}' occurs at ... | 918 |
678 | <gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/Weather.framework/Weather
*/
#import <Weather/XXUnknownSuperclass.h>
@class NSCalendarDate, NSString, NSMutableArray;
@interface City : XXUnknownSuperclass {
id _delegate; // 4 = 0x4
int _updat... | 3,622 |
2,338 | <gh_stars>1000+
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve2 -fallow-half-arguments-and-returns -fsyntax-only -verify %s
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve2 -fallow-half-arguments-and-returns -fsyntax-only -verify %s
#ifdef SVE_OVERL... | 869 |
13,111 | <reponame>LiWenGu/skywalking<filename>oap-server/server-library/library-server/src/main/java/org/apache/skywalking/oap/server/library/server/ssl/PrivateKeyUtil.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this w... | 1,514 |
458 | <reponame>niranjanchintu/hyscale<gh_stars>100-1000
/**
* Copyright 2019 <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
... | 830 |
381 | package chen.testchat.util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import chen.testchat.bean.GroupTableMessage;
import chen.testchat.bean.User;
/**
* 项目名称: HappyChat
* 创建人: 陈锦军
* 创建时间: 2016/9/11 23:43
* QQ: 1981367757
*/
... | 1,130 |
316 | <reponame>roblabs/maplibre-gl-native<gh_stars>100-1000
package com.mapbox.mapboxsdk.testapp.camera;
import com.mapbox.mapboxsdk.camera.CameraUpdate;
import com.mapbox.mapboxsdk.maps.MapboxMap;
public class CameraMoveTest extends CameraTest {
@Override
void executeCameraMovement(CameraUpdate cameraUpdate, MapboxM... | 139 |
1,235 | #include <stdio.h>
int main()
{
int arr[3] = {0, 1, 2};
printf("Name of array: %p\n", arr);
printf("&arr[0]: %p\n", &arr[0]);
printf("&arr[1]: %p\n", &arr[1]);
printf("&arr[2]: %p\n", &arr[2]);
/*
Name of array: 0x7ffc539d5a60
&arr[0]: 0x7ffc539d5a60
&arr[1]: 0x7ffc539d5a64
&arr[2]: 0x7ffc539d5a68
*/
... | 329 |
1,093 | <reponame>StandCN/spring-integration
/*
* Copyright 2017-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/L... | 2,720 |
2,759 | # Copyright 2020 The TensorFlow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 1,076 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 13,230 |
1,968 | <filename>src/pl/charmas/parcelablegenerator/typeserializers/EnumerationSerializerFactory.java
package pl.charmas.parcelablegenerator.typeserializers;
import com.intellij.psi.PsiType;
import com.intellij.psi.impl.source.PsiClassReferenceType;
import pl.charmas.parcelablegenerator.typeserializers.serializers.Enumerati... | 272 |
5,279 | <reponame>angoenka/beam
#
# 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 "L... | 3,450 |
1,643 | <reponame>maomao1x/report
/*******************************************************************************
* Copyright 2017 Bstek
*
* 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
*
*... | 704 |
3,301 | <filename>core/src/main/java/com/alibaba/alink/operator/common/statistics/basicstatistic/DenseVectorSummary.java
package com.alibaba.alink.operator.common.statistics.basicstatistic;
import org.apache.flink.types.Row;
import com.alibaba.alink.common.linalg.DenseVector;
import com.alibaba.alink.common.linalg.MatVecOp;
... | 1,418 |
459 | /**
* @file oglplus/images/voronoi.ipp
* @brief Implementation of images::VoronoiDiagram and images::VoronoiCells
*
* @author <NAME>
*
* Copyright 2010-2015 <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... | 659 |
665 | <filename>types/meta_value_description.cc<gh_stars>100-1000
// This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
/** meta_value_description.cc
<NAME>, 4 January 2015
Copyright (c) 2015 mldb.ai inc. All rights reserved.
*/
#include "meta_value_description_impl.h"
#include "mldb/typ... | 3,866 |
856 | <reponame>Project-Xtended/external_armnn
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "RangeTracker.hpp"
#include "InternalTypes.hpp"
namespace armnn
{
void RangeTracker::SetRange(const armnn::IConnectableLayer* layer, unsigned int outputIdx, float min, float max)
... | 835 |
32,544 | package com.baeldung.doublecolon.function;
import com.baeldung.doublecolon.Computer;
@FunctionalInterface
public interface ComputerPredicate {
boolean filter(Computer c);
}
| 57 |
518 | {
"name": "Music for Programming",
"category": "Miscellaneous",
"start_url": "https://musicforprogramming.net/",
"icons": [
{
"src": "https://cdn.filestackcontent.com/mP8bAkb3TDuqSrtMTtV4"
},
{
"src": "https://cdn.filestackcontent.com/HbABEkekS22ZcXoQoKAx",
"platform": "browserx"
... | 208 |
458 | /*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2018 GwtMaterialDesign
* %%
* 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
* ... | 1,011 |
315 | package no.nordicsemi.android.mesh.provisionerstates;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import android.util.Log;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import no.nordicsemi.android.mesh.utils.AlgorithmType;
import no.... | 3,639 |
1,144 | <filename>backend/de.metas.adempiere.adempiere/base/src/main/java-gen/org/adempiere/ad/migration/model/X_AD_Migration.java
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, ... | 2,874 |
5,535 | from gpconfig_modules.compare_segment_guc import MultiValueGuc
from gpconfig_modules.database_segment_guc import DatabaseSegmentGuc
class GucCollection:
"""
provide an enhanced dict of gucs, with responsibilities to assemble sets of info per segment.
"""
COORDINATOR_KEY = '-1'
def __init__(self)... | 1,128 |
1,521 | <reponame>NullAerber/iChange
package com.dexafree.materialList.view;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.dexafree.ma... | 2,745 |
1,652 | <reponame>z131031231/x-pipe
package com.ctrip.xpipe.redis.core.proxy.endpoint;
import com.ctrip.xpipe.proxy.ProxyEndpoint;
public interface ProxyEndpointHealthChecker extends EndpointHealthChecker<ProxyEndpoint> {
}
| 76 |
390 | /*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, ... | 806 |
311 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2012-2021 Snowflake Computing Inc. All rights reserved.
#
import warnings
from traceback import format_exc
from uuid import uuid4
import pytest
from mock import patch
from pytest import fail
from snowflake.connector import ProgrammingError, converter
fr... | 2,014 |
1,276 | #include <cstdio>
#include <memory>
#include <vector>
struct C {
int m_number;
C() {
printf("分配内存!\n");
m_number = 42;
}
~C() {
printf("释放内存!\n");
m_number = -2333333;
}
void do_something() {
printf("我的数字是 %d!\n", m_number);
}
};
std::vector<std::... | 777 |
1,333 | <filename>moss-client/moss-client-common/src/main/java/org/xujin/moss/client/endpoint/dependency/MavenSearch.java
package org.xujin.moss.client.endpoint.dependency;
import java.io.InputStream;
public interface MavenSearch {
InputStream getPomInfoByFileName(String[] av, String fileName);
InputStream getSourc... | 122 |
921 | <reponame>vsch/idea-markdown
// Copyright (c) 2015-2020 <NAME> <<EMAIL>> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.vladsch.md.nav.language;
import com.vladsch.plugin.util.ui.ComboBoxAdaptable;
import com.vladsch.plugin.util.ui.ComboBoxAdapter;
imp... | 487 |
879 | <filename>HibernateSpringBootHHH000104/src/main/java/com/bookstore/repository/AuthorRepository.java
package com.bookstore.repository;
import com.bookstore.entity.Author;
import java.util.List;
import javax.persistence.QueryHint;
import javax.persistence.Tuple;
import static org.hibernate.jpa.QueryHints.HINT_PASS_DISTI... | 973 |
448 | package org.wlf.filedownloader.listener;
import android.os.Handler;
import android.os.Looper;
import org.wlf.filedownloader.DownloadFileInfo;
import java.util.List;
/**
* listener for deleting multi download files
* <br/>
* 批量删除下载文件监听器
*
* @author wlf(Andy)
* @email <EMAIL>
*/
public interface OnDeleteDownlo... | 1,979 |
335 | {
"word": "Overhead",
"definitions": [
"Above the level of the head; in the sky."
],
"parts-of-speech": "Adverb"
} | 63 |
322 | #!/ usr/bin/env
# coding=utf-8
#
# Copyright 2019 ztosec & https://www.zto.com/
#
# 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 r... | 1,724 |
434 | /* Copyright (c) 2021 Intel Corporation
* Copyright (c) 2020-2021 Alibaba Cloud
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _ENCLAVE_API_H_
#define _ENCLAVE_API_H_
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include <rats-tls/err.h>
#define TLS_TYPE_NAME_SIZE 32
#define ENCLAVE_ATTESTER... | 1,712 |
310 | <filename>Projects/Irrlicht/Source/CImageLoaderPVR.cpp
// Copyright (C) 2013 <NAME>
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "pch.h"
#include "CImageLoaderPVR.h"
#ifdef _IRR_COMPILE_WITH_PVR_LOADER_
#include "IReadFile.h"
#in... | 3,431 |
13,648 | print("mod2")
bar = "mod2.bar"
| 15 |
337 | from .rawdevart_com_old import RawDevArtComOld
class ManhwaClub(RawDevArtComOld):
_chapter_selector = r'/chapter-(\d+(?:\.\d+)?)'
def get_content(self):
return self._get_content('{}/manhwa/{}')
def get_manga_name(self) -> str:
return self._get_name('/manhwa/([^/]+)')
main = ManhwaClub
| 142 |
301 | <reponame>jmilkiewicz/iot-starterkit<filename>cf/samples/java-samples/commons/src/main/java/commons/model/Property.java
package commons.model;
public class Property {
private String name;
private PropertyType dataType;
private String unitOfMeasure;
public String getName() {
return name;
}
public void setN... | 444 |
2,137 | package org.hibernate.tool.internal.xml;
import org.hibernate.tool.api.xml.XMLPrettyPrinterStrategy;
public final class XMLPrettyPrinterStrategyFactory {
public static final String PROPERTY_STRATEGY_IMPL = "org.hibernate.tool.hbm2x.xml.XMLPrettyPrinterStrategy";
private static final XMLPrettyPrinterSt... | 504 |
789 | <filename>qbit/core/src/main/java/io/advantageous/qbit/boon/spi/RegisterBoonWithQBit.java<gh_stars>100-1000
/*
* Copyright (c) 2015. <NAME>, <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the L... | 491 |
325 | {
"llvm-target": "thumbv7em-none-eabi",
"linker": "arm-none-eabi-gcc",
"target-endian": "little",
"target-pointer-width": "32",
"arch": "arm",
"os": "none",
"cpu": "cortex-m4",
"features": "+thumb2",
"relocation-model": "static",
"linker-is-gnu": true,
"has-rpath": true,
... | 216 |
673 | /*
* Copyright 2018 Netflix, 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... | 1,644 |
575 | <reponame>sarang-apps/darshan_browser
// 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 CONTENT_BROWSER_ANDROID_LAUNCHER_THREAD_H
#define CONTENT_BROWSER_ANDROID_LAUNCHER_THREAD_H
#include "base/... | 295 |
721 | <reponame>gaybro8777/nucleus
# Copyright 2018 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 ... | 6,431 |
1,306 | <filename>vm/compiler/codegen/x86/LowerInvoke.cpp
/*
* Copyright (C) 2012 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... | 30,191 |
1,882 | <filename>tests/test_runlength.py<gh_stars>1000+
try:
from . import generic as g
except BaseException:
import generic as g
from trimesh.voxel import runlength as rl
np = g.np
def random_rle_encoding(n=20, max_value=255, dtype=np.uint8):
return (np.random.uniform(size=(n,),) *
(max_value - 1) +... | 4,719 |
4,036 | <gh_stars>1000+
def loads(*args, **kwargs):
return None
| 24 |
1,374 | <filename>core-lib/es5/src/main/java/def/dom/WebGLObject.java<gh_stars>1000+
package def.dom;
public class WebGLObject extends def.js.Object {
public static WebGLObject prototype;
public WebGLObject(){}
}
| 75 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/InternalPreferences.framework/InternalPreferences
*/
/* iOSOpenDev: wrapped with define check (since occurs in other dumped files)
typedef struct __sbuf {
char *_base;
int _size;
} sbuf;
*/
// iOSOpenDev: added (si... | 485 |
1,139 | <filename>CoreJavaProjects/CoreJavaExamples/src/com/journaldev/design/strategy/PaymentStrategy.java
package com.journaldev.design.strategy;
public interface PaymentStrategy {
public void pay(int amount);
}
| 66 |
302 | <reponame>BlueGhostGH/rayfork
//In this file we only initialise the window using sokol_app
#define SOKOL_IMPL
#define SOKOL_GLCORE33
#define SOKOL_WIN32_NO_GL_LOADER
#include "sokol_app.h"
#include "game.h"
input_data global_input_data;
void platform_on_frame()
{
on_frame(global_input_data);
// single frame... | 406 |
1,738 | <gh_stars>1000+
/*
* 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 li... | 524 |
521 | /**
* @file src/dwarfparser/dwarf_base.cpp
* @brief Implementation of base classes used in dwarfparser.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include <algorithm>
#include <cstdlib>
#include <sstream>
#include "retdec/dwarfparser/dwarf_base.h"
#include "retdec/dwarfparser/dwarf_f... | 499 |
692 | # test if eval raises SyntaxError
try:
print(eval("[1,,]"))
except SyntaxError:
print("SyntaxError")
| 42 |
777 | <reponame>google-ar/chromium
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/base/network_throttle_manager.h"
#include "base/logging.h"
#include "net/base/priority_queue.h"
namespace net... | 1,564 |
1,357 | //
// EnormousViewModel.h
// MTHawkeyeDemo
//
// Created by EuanC on 16/08/2017.
// Copyright © 2017 Meitu. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ANormalViewModel.h"
@interface EnormousViewModel : NSObject
@property (nonatomic, strong) NSMutableArray<EnormousViewModel *> *subModels;
... | 144 |
735 | <gh_stars>100-1000
/**
* Tencent is pleased to support the open source community by making DCache available.
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file
* except in compliance with the License. You may... | 12,092 |
743 | /*
* This file is part of Pebble.
* <p>
* Copyright (c) 2014 by <NAME>
* <p>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
package com.mitchellbosecke.pebble.template;
import com.mitchellbosecke.pebble.PebbleEngine;
import com.mit... | 6,111 |
846 | <reponame>Winner2015/compileflow
/*
* 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... | 721 |
10,225 |
package io.quarkus.kubernetes.client.runtime;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.io.File;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import io.fabric8.kubernetes.client.Config;
import io.fabric8.kubernetes.client.KubernetesClient;
class Kubernet... | 562 |
66,985 | /*
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 497 |
8,238 | <reponame>MicMor008/agera
/*
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... | 1,315 |
1,682 | {
"schema": "RecordC.pdl",
"context": "Test case where recursive filling is tested, in RecordC's field, there are RecordD and TypeRef",
"input": {
"name": "not-a-default",
"personalRecordD": {}
},
"expect": {
"name": "not-a-default",
"personalRecordD": {
"field3": 0,
"field4": "def... | 160 |
764 | {
"symbol": "BMPL",
"address": "0x5eBDd407FE6D47eC4af2DbBEf7d790100C567aB6",
"overview": {
"en": "Bmpl Payment System",
"zh": "Bmpl付款系統"
},
"email": "<EMAIL>",
"website": "https://bmpl.fun/",
"whitepaper": "https://bmpl.fun/WP_BMPL_CHI.pdf",
"state": "NORMAL",
"published_on": "20-07-20",
"li... | 203 |
372 | # Generated by Django 2.1.5 on 2019-01-12 18:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('subscribers', '0010_auto_20180825_0042'),
('campaigns', '0003_auto_20180815_2311'),
]
operations = [
... | 255 |
1,056 | <filename>nbi/engine/src/org/netbeans/installer/product/components/Product.java
/*
* 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 th... | 23,964 |
686 | <reponame>snytkine/fromswagger<filename>node_modules/esformatter/test/compare/custom/for_statement-config.json<gh_stars>100-1000
{
"whiteSpace" : {
"before" : {
"ForStatementExpressionClosing" : 1
},
"after" : {
"ForStatementExpressionOpening" : 1
}
}
}
| 121 |
405 | <gh_stars>100-1000
package weixin.guanjia.message.entity;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence... | 770 |
1,040 | <reponame>jboneClub/jbone
package cn.jbone.common.service;
import cn.jbone.common.api.dto.SearchListDTO;
import cn.jbone.common.utils.DateUtil;
import org.apache.commons.lang3.StringUtils;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.data.... | 2,965 |
3,083 | /*
Copyright 2014 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 1,897 |
1,262 | /*
* Copyright 2017 Netflix, 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 appli... | 1,297 |
819 | /*
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/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 1,182 |
1,047 | {{ op.type_signature }} {{ op.name }}{% if op.param_str %}({{ op.param_str }}){% endif %};
| 37 |
2,654 | <reponame>Mu-L/xLog
/*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 524 |
2,151 | <filename>third_party/android_tools/sdk/sources/android-25/com/android/server/accessibility/MagnificationGestureHandler.java<gh_stars>1000+
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... | 15,358 |
432 | /*
* Copyright (c) 2018. Aberic - 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 applicabl... | 445 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.