max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
375 | <filename>src/Eclipse-IDE/org.robotframework.ide.eclipse.main.plugin/src/org/robotframework/ide/eclipse/main/plugin/launch/tabs/RemoteRobotLaunchConfigurationTabGroup.java
/*
* Copyright 2017 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
p... | 330 |
389 | __all__ = ["Pregel"]
from typing import Optional
from arango.api import ApiGroup
from arango.exceptions import (
PregelJobCreateError,
PregelJobDeleteError,
PregelJobGetError,
)
from arango.formatter import format_pregel_job_data
from arango.request import Request
from arango.response import Response
from... | 1,863 |
573 | <reponame>capablevms/VIXL
// Copyright 2015, VIXL authors
// 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 copyright notice,
// ... | 96,374 |
1,966 | <filename>tests/code_quality/if.c
void if_1()
{
int a = 5;
int b = 2;
int c = 4;
if ( a > b )
{
return;
}
else if ( c <= a)
{
a = 0;
}
(void)(a);
(void)(b);
(void)(c);
}
| 107 |
413 | <filename>reproc++/examples/run.cpp
#include <iostream>
#include <reproc++/run.hpp>
// Equivalent to reproc's run example but implemented using reproc++.
int main(int argc, const char **argv)
{
(void) argc;
int status = -1;
std::error_code ec;
reproc::options options;
options.redirect.parent = true;
opt... | 196 |
826 | <reponame>CYXiang/TenMinDemo<gh_stars>100-1000
//
// CYXNewfeatureCell.h
// CYCollectionViewTest
//
// Created by apple开发 on 16/3/4.
// Copyright © 2016年 cyx. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CYXNewfeatureCell : UICollectionViewCell
@property (strong, nonatomic) UIImage *image;
- (void... | 149 |
2,331 | <filename>tests/__init__.py
def setup_module(module):
print('setup_module')
def teardown_module(module):
print('teardown_module')
| 52 |
746 | /*
* Copyright 2017 JBoss 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 i... | 595 |
458 | <reponame>swimos/swim
// Copyright 2015-2021 Swim 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 applic... | 515 |
798 | // decoder/decodable-matrix.h
// Copyright 2009-2011 Microsoft Corporation
// 2013 Johns Hopkins University (author: <NAME>)
// Copyright 2015 <NAME>
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you ma... | 833 |
732 | <gh_stars>100-1000
package io.eventuate.tram.common.spring.inmemory;
import io.eventuate.tram.inmemory.EventuateTransactionSynchronizationManager;
import org.springframework.transaction.support.TransactionSynchronizationAdapter;
import org.springframework.transaction.support.TransactionSynchronizationManager;
public ... | 237 |
643 | <reponame>abhijitsri007/LoginRegister
package com.hellokoding.validation;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
public class ProductCodeExistingValidator implements ConstraintValidator<ProductCodeExisting, String> {
@Override
public boolean isValid(St... | 146 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-7rpj-hpvp-vvv6",
"modified": "2022-05-13T01:06:02Z",
"published": "2022-05-13T01:06:02Z",
"aliases": [
"CVE-2017-9521"
],
"details": "The Comcast firmware on Cisco DPC3939 (firmware version dpc3939-P20-18-v303r20421733-160420a-CMCST); Cisco DPC3939 (firmware ve... | 646 |
704 | package com.java2nb.novel.common.base;
import com.java2nb.novel.common.bean.UserDetails;
import com.java2nb.novel.common.utils.CookieUtil;
import com.java2nb.novel.common.utils.JwtTokenUtil;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servle... | 541 |
322 | <reponame>qtwre/Open-Vehicle-Monitoring-System-3
/* dcp_port.h
*
* Copyright (C) 2006-2020 wolfSSL Inc.
*
* This file is part of wolfSSL.
*
* wolfSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; eit... | 873 |
1,319 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.
#
#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... | 474 |
413 | <reponame>DaanDeMeyer/cpp-process-library
#include <reproc/run.h>
#include "assert.h"
int main(void)
{
const char *argv[] = { RESOURCE_DIRECTORY "/argv", "\"argument 1\"",
"\"argument 2\"", NULL };
char *output = NULL;
reproc_sink sink = reproc_sink_string(&output);
int r = -1;
r =... | 339 |
3,055 | /*
Fontname: -Adobe-New Century Schoolbook-Medium-R-Normal--34-240-100-100-P-181-ISO10646-1
Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved.
Glyphs: 18/756
BBX Build Mode: 0
*/
const uint8_t u8g2_fon... | 1,095 |
560 | #include <string>
namespace chapter_01 {
bool palindromePermutation(const std::string& input);
}
| 33 |
478 | <reponame>shubho/gtn
/*
* 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.
*/
#define CATCH_CONFIG_MAIN
#include <functional>
#include "catch.hpp"
#include "gtn/autograd.h"
#include "gt... | 8,330 |
819 | <reponame>Asteur/vrhelper
/*
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 appli... | 2,486 |
326 | from typing import TYPE_CHECKING
import numba
import numpy as np
import pandas as pd
from etna.clustering.distances.base import Distance
if TYPE_CHECKING:
from etna.datasets import TSDataset
@numba.cfunc(numba.float64(numba.float64[:], numba.float64[:]))
def euclidean_distance(x1: np.ndarray, x2: np.ndarray) -... | 716 |
368 | <reponame>cuiguanghui/Team-Talk
//
// DDUserModule.h
// IOSDuoduo
//
// Created by 独嘉 on 14-5-26.
// Copyright (c) 2014年 dujia. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MTTUserEntity.h"
typedef void(^DDLoadRecentUsersCompletion)();
@interface DDUserModule : NSObject
@property (nonatom... | 305 |
1,091 | <filename>utils/misc/src/main/java/org/onlab/metrics/MetricsComponent.java
/*
* Copyright 2014-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 obtain a copy of the License at
*
* ... | 645 |
9,782 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 516 |
340 | <reponame>cloudnoize/concord-bft<gh_stars>100-1000
// Concord
//
// Copyright (c) 2021 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the
// "License"). You may not use this product except in compliance with the
// Apache 2.0 License.
//
// This product may includ... | 2,952 |
777 | // Copyright (c) 2011 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 <math.h>
#include <stddef.h>
#include <stdint.h>
#include "base/macros.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/co... | 4,781 |
344 | <gh_stars>100-1000
/*
* Copyright 2020 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... | 497 |
381 | package org.apache.helix.controller.changedetector.trimmer;
/*
* 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 u... | 1,366 |
1,655 | // ======================================================================== //
// Copyright 2009-2016 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | 1,585 |
815 | [
{"type":"directory","name":"Testing/Temporary/WaveletTimeTrigger/","contents":[
{"type":"directory","name":"BatchExtracts","contents":[
{"type":"file","name":"RenderView1_000000.png", "compare":true},
{"type":"file","name":"RenderView1_000005.png"}
]},
{"type":"directory","name":"ImmediateEx... | 296 |
12,718 | unsigned short __cdecl _byteswap_ushort(unsigned short _Short);
unsigned short __cdecl _byteswap_ushort(unsigned short _Short)
{
#if defined(_AMD64_) || defined(__x86_64__) || defined(_X86_) || defined(__i386__)
unsigned short retval;
__asm__ __volatile__ ("rorw $8, %w[retval]" : [retval] "=rm" (retval) : "[retval... | 225 |
1,511 | <filename>tests/cluecode/data/ics/bison-src/muscle_tab.c
/* Muscle table manager for Bison.
Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software
Foundation, Inc.
| 59 |
1,105 | <filename>testsuite/wavelength_color-reg/run.py
#!/usr/bin/env python
# Copyright Contributors to the Open Shading Language project.
# SPDX-License-Identifier: BSD-3-Clause
# https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
command += testshade("-g 200 200 wavelength_v_lambda -od uint8 -o Cout v_lamb... | 285 |
470 | <reponame>wangdongyang/QMXMFunModule<filename>Example/Pods/LFMediaEditingController/LFMediaEditingController/LFMediaEditingController/class/common/category/UIView+LFMEFrame.h<gh_stars>100-1000
//
// UIView+LFFrame.h
// LFImagePickerController
//
// Created by LamTsanFeng on 2017/2/13.
// Copyright © 2017年 LamTsanFe... | 310 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.mediaservices.models;
import com.azure.core.annotation.Immutable;
import com.azure.core.a... | 581 |
716 | <gh_stars>100-1000
# Typical header of a Python script using Pinocchio
from pinocchio.utils import *
from pinocchio.explog import exp,log
from numpy.linalg import pinv,norm
import pinocchio as pin
import gepetto.corbaserver
# Example of a class Display that connect to Gepetto-viewer and implement a
# 'place' method to... | 973 |
10,320 | {"IsEncrypted":false,"Values":{"AzureWebJobsStorage":"UseDevelopmentStorage=true","FUNCTIONS_WORKER_RUNTIME":"node"}} | 36 |
1,523 | <filename>library/src/main/java/com/mypopsy/widget/internal/SuggestionItemDecorator.java
package com.mypopsy.widget.internal;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.support.annotation.ColorInt;
import android.support.v4.view.ViewCompat;
import android.support.v7.widget.RecyclerVie... | 1,082 |
22,481 | """Constants for the devolo_home_control integration."""
import re
from homeassistant.const import Platform
DOMAIN = "devolo_home_control"
DEFAULT_MYDEVOLO = "https://www.mydevolo.com"
PLATFORMS = [
Platform.BINARY_SENSOR,
Platform.CLIMATE,
Platform.COVER,
Platform.LIGHT,
Platform.SENSOR,
Plat... | 192 |
30,023 | <reponame>tbarbette/core
"""Tests for the Litter-Robot Component."""
| 26 |
878 | <gh_stars>100-1000
// Copyright <NAME> 2017
#include "../include/Radon.hpp"
namespace radon
{
Key::Key()
: Named()
{
}
Key::Key(const std::string & name, const std::string & value)
: Named(name), value(value)
{
}
Key::Key(const std::string & name, const float & value)
: Named(name), value(std::to_str... | 259 |
372 | /* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
* -*- mode: c, c-basic-offset: 4 -*- */
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | 16,596 |
6,224 | <reponame>maxvankessel/zephyr
/*
* Copyright (c) 2019 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_TEST_LIB_GUI_LVGL_IMG_H_
#define ZEPHYR_TEST_LIB_GUI_LVGL_IMG_H_
#include <lvgl.h>
const lv_img_dsc_t *get_lvgl_img(void);
#endif /* ZEPHYR_TEST_LIB_GUI_LVGL_IMG_H_ */
| 156 |
1,473 | /*
* Autopsy Forensic Browser
*
* Copyright 2020 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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://ww... | 13,334 |
2,085 | <gh_stars>1000+
import spacy
# Carga el modelo es_core_news_sm
nlp = spacy.load("es_core_news_sm")
# Imprime en pantalla los nombres de los componentes del pipeline
print(nlp.pipe_names)
# Imprime en pantalla el pipeline entero de tuples (name, component)
print(nlp.pipeline)
| 103 |
2,073 | /**
* 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,554 |
3,640 | <filename>filesystem/src/test/java/com/nytimes/android/external/fs3/impl/SimpleTest.java
package com.nytimes.android.external.fs3.impl;
import com.nytimes.android.external.fs3.filesystem.FileSystem;
import com.nytimes.android.external.fs3.filesystem.FileSystemFactory;
import com.nytimes.android.external.store3.base.R... | 2,005 |
418 | <filename>src/tests/schedule/test_schedule_forms.py<gh_stars>100-1000
import datetime as dt
import json
import pytest
import pytz
from django.forms import ModelForm, ValidationError
from django.utils import timezone
from django_scopes import scope
from pretalx.person.models import SpeakerProfile
from pretalx.schedule... | 7,442 |
313 | <reponame>leibale/RedisGraph
//------------------------------------------------------------------------------
// GB_convert_sparse_to_bitmap_template: convert A from sparse to bitmap
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2022, All Ri... | 1,443 |
903 | package org.develnext.jphp.ext.mongo.classes;
import com.mongodb.MongoClient;
import com.mongodb.MongoClientURI;
import com.mongodb.client.MongoDatabase;
import com.mongodb.client.MongoIterable;
import org.develnext.jphp.ext.mongo.MongoExtension;
import php.runtime.annotation.Reflection.Name;
import php.runtime.annota... | 628 |
426 |
package com.superrecycleview.library.adapter.sidebar;
import android.content.Context;
import com.superrecycleview.library.R;
import com.superrecycleview.library.bean.sidebar.WeChatBean;
import com.superrecycleview.superlibrary.adapter.SuperBaseAdapter;
import java.util.List;
/**
* Created by super南仔 on 2017-05-04... | 338 |
414 | <gh_stars>100-1000
{
"name": "example",
"version": "1.0.0",
"scripts": {
"start": "node scripts.build",
"build": "node scripts.build --mode=production"
}
}
| 72 |
2,858 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <stdexcept>
#include <tuple>
#include <unordered_map>
#include <vector>
#include <dnnl.hpp>
#include "flashlight/f... | 7,979 |
364 | <reponame>xiaobing007/dagli
package com.linkedin.dagli.embedding.classification;
import com.linkedin.dagli.math.vector.DenseFloatArrayVector;
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
import it.unimi.dsi.fastutil.longs.LongArrayList;
import java.io.Serializable;
import java.util.Arrays;
import java.ut... | 3,484 |
12,302 | <reponame>codetriage-readme-bot/pop
/**
Copyright (c) 2014-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same di... | 645 |
1,056 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 5,040 |
350 | <gh_stars>100-1000
#include <fstream>
#include <iostream>
#include <unordered_map>
// #include <boost/bimap.hpp>
#include <boost/graph/adjacency_list.hpp>
#include <boost/functional/hash.hpp>
#include <boost/program_options.hpp>
#include <yaml-cpp/yaml.h>
#include <libMultiRobotPlanning/cbs.hpp>
#include "timer.hpp"... | 6,676 |
1,323 | <reponame>jingxiufenghua/rec-model
"""
Created on May 19, 2021
modules of Wide&Deep: Linear, DNN
@author: <NAME>(<EMAIL>)
"""
import tensorflow as tf
from tensorflow.keras.layers import Dense, Layer, Dropout
from tensorflow.keras.regularizers import l2
class Linear(Layer):
def __init__(self, feature_length, w_... | 746 |
852 | <gh_stars>100-1000
#include "DetectorDescription/Core/interface/DDDivision.h"
#include <ostream>
#include "DetectorDescription/Core/src/Division.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
using DDI::Division;
std::ostream& operator<<(std::ostream& os, const DDDivision& div) {
DDBase<DDName, Divi... | 771 |
660 | /*
* Copyright (c) 2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publis... | 133,281 |
5,300 | <filename>frameworks/Java/restexpress/src/main/java/hello/controller/MysqlController.java
package hello.controller;
import hello.domain.World;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.concurrent.ThreadLocalRandom;
import ... | 474 |
428 | <filename>Java/Loon-Lite(PureJava)/Loon-Lite-Core/src/loon/action/collision/CollisionClassQuery.java
/**
*
* Copyright 2008 - 2011
*
* 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
*
... | 456 |
431 | <filename>modules/core/admin/package.json
{
"name":"admin",
"label":"Administration",
"description":"Forms and functions to provide administration of configuration, installation and reloading of Calipso.",
"version":"0.2.0",
"homepage":"http://calip.so",
"repository":{
"type":"git",
... | 165 |
9,724 | // -*- C++ -*-
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... | 714 |
6,224 | <filename>samples/shields/x_nucleo_iks02a1/standard/src/main.c
/*
* Copyright (c) 2019 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <device.h>
#include <drivers/sensor.h>
#include <stdio.h>
#include <sys/util.h>
#ifdef CONFIG_IIS2DLPC_TRIGGER
static int iis2dlpc_trig_... | 3,434 |
1,019 | package com.roncoo.education.course.service.api.pc;
import com.roncoo.education.course.service.api.pc.biz.PcApiZoneBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.sp... | 1,311 |
348 | {"nom":"Moustey","circ":"1ère circonscription","dpt":"Landes","inscrits":468,"abs":256,"votants":212,"blancs":17,"nuls":19,"exp":176,"res":[{"nuance":"MDM","nom":"<NAME>","voix":118},{"nuance":"SOC","nom":"<NAME>","voix":58}]} | 89 |
2,151 | <reponame>coreydowning/robolectric<gh_stars>1000+
package org.robolectric.lib2;
public final class R {
public static final class id {
public static int lib_button = 0x7f010001;
public static int lib2_button = 0x7f010002;
}
public static final class string {
public static int only_in_lib2 = 0x7f02000... | 290 |
930 | /*
* ******************************************************************************
* * Copyright 2015 See AUTHORS file.
* *
* * 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
* ... | 817 |
1,346 | package com.ctrip.platform.dal.dao.datasource.cluster.strategy;
import com.ctrip.platform.dal.dao.datasource.cluster.ConnectionFactory;
/**
* @Author limingdong
* @create 2021/8/25
*/
public interface ConnectionFactoryAware {
void setConnectionFactory(ConnectionFactory connectionFactory);
}
| 95 |
517 | package ro.isdc.wro.model;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
i... | 1,017 |
2,406 | <filename>model-optimizer/extensions/front/onnx/hard_sigmoid_ext.py
# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
from extensions.ops.hard_sigmoid import HardSigmoid
from mo.front.common.replacement import FrontReplacementOp
from mo.front.onnx.extractors.utils im... | 433 |
2,151 | // 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 CHROME_BROWSER_UI_VIEWS_OVERLAY_OVERLAY_WINDOW_VIEWS_H_
#define CHROME_BROWSER_UI_VIEWS_OVERLAY_OVERLAY_WINDOW_VIEWS_H_
#include "content/public/... | 1,080 |
836 | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 403 |
541 | /**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.bulkedit;
import java.sql.SQLException;
import org.apache.commons.cli.ParseExc... | 1,311 |
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... | 263 |
8,772 | package org.apereo.cas.authentication;
import org.apereo.cas.config.CasCoreAuthenticationConfiguration;
import org.apereo.cas.config.CasCoreAuthenticationPrincipalConfiguration;
import org.apereo.cas.config.CasCoreAuthenticationServiceSelectionStrategyConfiguration;
import org.apereo.cas.config.CasCoreAuthenticationSu... | 1,355 |
45,293 | package custom;
public enum AEnum {
AX;
} | 19 |
5,169 | <filename>Specs/0/f/a/MERPageViewController/1.2.1/MERPageViewController.podspec.json
{
"name": "MERPageViewController",
"version": "1.2.1",
"summary": "Custom horizontal scroll PageViewController. Support paging scroll and transition with animation.",
"description": "'the UIPageViewController has some bugs in U... | 324 |
4,342 | <filename>rx/internal/concurrency.py
from threading import Thread
from rx.core.typing import StartableTarget
def default_thread_factory(target: StartableTarget) -> Thread:
return Thread(target=target, daemon=True)
def synchronized(lock):
"""A decorator for synchronizing access to a given function."""
... | 171 |
432 | <filename>data/tools/monocular.json
[
{
"slug": "monocular",
"name": "Monocular",
"description": "Monocular is a web-based application that enables the search and discovery of charts from multiple Helm Chart repositories. It is the codebase that powers the Helm Hub project.",
"url": "https://github.co... | 151 |
1,697 | <filename>IOT-Guide-DB-PostgreSQL/src/main/java/iot/technology/postgresql/dao/entity/DeviceEntity.java
package iot.technology.postgresql.dao.entity;
import javax.persistence.*;
import static iot.technology.postgresql.constants.ModelConstants.*;
/**
* @author jamesmsw
* @description 设备表
* @date 2020/11/15 3:58 下午... | 425 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 2,893 |
442 | <reponame>violet-Bin/read-spring-code
/*
* Copyright 2002-2018 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/... | 2,058 |
5,169 | {
"name": "MBAudienceSwift",
"version": "0.1.2",
"summary": "MBurger audience plugin.",
"swift_versions": "4.2",
"description": "MBurger audience plugin used to target messages only to certain audience.",
"homepage": "https://github.com/Mumble-SRL/MBAudienceSwift",
"license": {
"type": "Apache",
"... | 342 |
461 | <gh_stars>100-1000
#include <am.h>
#include <amdev.h>
#include <nemu.h>
void draw_sync();
int screen_width();
int screen_height();
size_t __am_video_read(uintptr_t reg, void *buf, size_t size) {
switch (reg) {
case _DEVREG_VIDEO_INFO: {
_DEV_VIDEO_INFO_t *info = (_DEV_VIDEO_INFO_t *)buf;
info->width... | 617 |
551 | <reponame>apohl79/audiogridder
/*
* Copyright (c) 2021 <NAME>
* Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING)
*
* Author: <NAME>
*/
#include "Sentry.hpp"
#include "Sentry.hpp"
#include "Defaults.hpp"
#include "Utils.hpp"
#include "Version.hpp"
#ifndef AG_SENTRY_ENABLED
#define... | 1,238 |
4,140 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 2,451 |
353 | /**
* Provides code that allows interaction with MySQL databases over AF_UNIX sockets.
*/
package org.newsclub.net.mysql; | 32 |
3,553 | <gh_stars>1000+
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Fluent Bit
* ==========
* Copyright (C) 2019-2021 The Fluent Bit Authors
* Copyright (C) 2015-2018 Treasure Data Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this f... | 3,422 |
2,860 | <reponame>nostro-im/pipelines
# Copyright 2019 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 1,168 |
19,920 | <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/licenses/LICENSE-2.0
*
* Unless req... | 566 |
582 | <gh_stars>100-1000
/**
* This program and the accompanying materials
* are made available under the terms of the License
* which accompanies this distribution in the file LICENSE.txt
*/
package com.archimatetool.editor.diagram.policies;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.gef.commands.C... | 1,523 |
450 | <gh_stars>100-1000
package org.apache.hawq.pxf.service.utilities;
/*
* 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... | 1,987 |
2,227 | <filename>Solutions/FlareSystemsFirework/Data/Solution_FlareSystemsFirework.json
{
"Name": "FlareSystemsFirework",
"Author": "<NAME> - <EMAIL>",
"Logo": "<img src=\"https://raw.githubusercontent.com/Azure/Azure-Sentinel/master/Solutions/FlareSystemsFirework/Data%20Connectors/Logo/FlareSystems.svg\"width=\"75px\"h... | 318 |
1,006 | /****************************************************************************
* arch/arm/src/sama5/hardware/sam_udphs.h
*
* 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 cop... | 14,046 |
317 | /*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... | 1,695 |
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.consumption.models;
import com.azure.resourcemanager.consumption.fluent.models.ChargesListResultInner;
import java.util.List;
/... | 238 |
968 | <filename>taokeeper-monitor/src/main/java/com/taobao/taokeeper/monitor/web/AlarmSettingsController.java
package com.taobao.taokeeper.monitor.web;
import static common.toolkit.java.constant.EmptyObjectConstant.EMPTY_STRING;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequ... | 1,933 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.