max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
684 | //------------------------------------------------------------------------------
// Copyright (c) 2018-2020 <NAME>
// All rights reserved.
//
// https://michelemorrone.eu - https://BrutPitt.com
//
// twitter: https://twitter.com/BrutPitt - github: https://github.com/BrutPitt
//
// mailto:<EMAIL> - mailto:<EMAIL>
/... | 2,981 |
4,492 | <reponame>jonathanslenders/cryptography
# This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
INCLUDES = """
#include <openssl/rand.h>
"""
TYPES = """
typedef ... RAND_METHOD;
"""
FUNCTIONS ... | 167 |
1,204 | <gh_stars>1000+
/*
* Copyright 2015 <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 o... | 2,665 |
799 | import json
import io
MOCKED_BASE_URL = 'https://api.test.com/api/'
def util_load_json(path):
with io.open(path, mode='r', encoding='utf-8') as f:
return json.loads(f.read())
def test_get_domain_state(requests_mock):
from Cyberpion import Client
mock_response = util_load_json('test_data/domain_... | 1,398 |
5,079 | import cgi
import unittest
from openid.consumer import consumer
from openid import message
from openid.test import support
class DummyEndpoint(object):
preferred_namespace = None
local_id = None
server_url = None
is_op_identifier = False
def preferredNamespace(self):
return self.preferred... | 3,464 |
30,023 | """Support for Hue binary sensors."""
from __future__ import annotations
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from .bridge import HueBridge
from .const import DOMAIN
from .v1.binary_senso... | 287 |
1,615 | <reponame>NSOiO/MLN
/**
* Created by MomoLuaNative.
* Copyright (c) 2020, Momo Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
package com.immomo.mmui.anim;... | 2,680 |
852 | <gh_stars>100-1000
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
namespace edm {
c... | 633 |
2,296 | <filename>firmware/src/stm32f0xx_it.c
/*
Copyright 2016 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... | 400 |
2,144 | /**
* 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... | 1,367 |
330 | /* Made by https://github.com/Mangeshrex */
static const char black[] = "#181f21";
static const char gray2[] = "#22292b"; // unfocused window border
static const char gray3[] = "#3b4244";
static const char gray4[] = "#67b0e8";
static const char blue[] = "#6cb5ed"; // focused window bor... | 242 |
816 | <reponame>LouisRenWeiWei/JXADF
package com.jxtech.jbo.base;
import java.util.List;
import org.apache.commons.dbutils.handlers.BeanListHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.jxtech.db.DBFactory;
import com.jxtech.db.DataQuery;
import com.jxtech.jbo.App;
import com.jxtech.jbo.auth... | 1,432 |
335 | {
"word": "Expedition",
"definitions": [
"A journey undertaken by a group of people with a particular purpose, especially that of exploration, research, or war.",
"The people involved in an expedition.",
"A short trip made for a particular purpose.",
"Promptness or speed in doing... | 128 |
451 | from math import pi, sqrt
from ipywidgets import register
from .._base.Three import ThreeWidget
from .OrbitControls_autogen import OrbitControls as OrbitControlsBase
@register
class OrbitControls(OrbitControlsBase):
def reset(self):
"""Reset the controlled object to its initial state."""
self.e... | 112 |
330 | <reponame>manjunathnilugal/PyBaMM
#
# Tests for Ai (2020) Enertech parameter set loads
#
import pybamm
import unittest
import os
class TestAi2020(unittest.TestCase):
def test_load_params(self):
negative_electrode = pybamm.ParameterValues({}).read_parameters_csv(
pybamm.get_parameters_filepath(... | 2,006 |
12,278 | <gh_stars>1000+
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
*
* Copyright (C) 2003-2007, International Business Machines
* Corporation and others. All Rights Reserv... | 848 |
602 | /*
* Copyright (C) 2011 <NAME> (http://www.cyrilmottier.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 required b... | 2,929 |
836 | <reponame>danpbowen/Mallet<filename>src/cc/mallet/fst/HMM.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Pub... | 15,096 |
782 | /*
* Copyright (c) 2021, <NAME>. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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://www.apache.org... | 1,204 |
3,897 | /*
* Copyright (c) 2015-2017, Pelion and affiliates.
* 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/LICEN... | 1,426 |
1,382 | <filename>src/multichannel/tests/ofdmframesync_autotest.c
/*
* Copyright (c) 2007 - 2019 <NAME>
*
* 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 l... | 2,025 |
629 | //
// File: fkfkbiecjecjbaie_cat.h
//
// Code generated for Simulink model 'sim_model_lib0'.
//
// Model version : 1.1142
// Simulink Coder version : 8.11 (R2016b) 25-Aug-2016
// C/C++ source code generated on : Tue Oct 16 10:08:00 2018
//
#ifndef SHARE_fkfkbiecjecjbaie_cat
#define SHARE_fkfkbi... | 266 |
10,225 | package io.quarkus.it.main;
import io.quarkus.test.junit.NativeImageTest;
/**
* @author <NAME>, <EMAIL>
*/
@NativeImageTest
public class RBACAccessInGraalITCase extends RBACAccessTest {
}
| 70 |
1,179 | <gh_stars>1000+
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014-2019, Linaro Limited
*/
#include <assert.h>
#include <crypto/crypto.h>
#include <crypto/crypto_impl.h>
#include <stdlib.h>
#include <tee_api_types.h>
#include <tomcrypt_private.h>
#include <util.h>
struct ltc_ctr_ctx {
struct crypto_c... | 1,265 |
784 | package jforgame.merge.service;
import jforgame.merge.config.MergeServer;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;
public class BackUpService {
private static BackUpService self = new BackUpService();
public static BackUpService getInstance() {
return self;
... | 801 |
1,256 | #include <windows.h>
#include "strclass.hpp"
TStrList::TStrList()
{
List=NULL;
Count=0;
}
TStrList::~TStrList()
{
DeleteList();
}
void TStrList::DeleteList()
{
int i;
if (Count)
{
for (i=Count-1; i>=0; i--) delete[] List[i];
delete[] List;
List=NULL;
Count=0;
}
}
void __fastcall TStrList::Clear()
... | 1,360 |
410 | <gh_stars>100-1000
////////////////////////////////////////////////////////////////////////////////
//
// Vookoo compute example (C) 2018 <NAME>
//
// This is a simple introduction to the vulkan C++ interface by way of Vookoo
// which is a layer to make creating Vulkan resources easy.
//
#define VKU_NO_GLFW
#include <... | 1,201 |
1,444 |
package mage.game.command.emblems;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.constants.Duration;
import mage.constants.Zone;
import mage.game.command.Emblem;
/**
*
* @author spjspj
*/
public f... | 246 |
634 | <filename>modules/base/diff-impl/src/main/java/com/intellij/diff/actions/DocumentsSynchronizer.java
/*
* Copyright 2000-2015 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... | 1,331 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-wg8h-q3rc-9wvf",
"modified": "2022-05-04T00:28:36Z",
"published": "2022-05-04T00:28:36Z",
"aliases": [
"CVE-2012-0187"
],
"details": "Untrusted search path vulnerability in IBM Lotus Expeditor 6.1.x and 6.2.x before 6.2 FP5+Security Pack allows local users to g... | 405 |
361 | <gh_stars>100-1000
package li.cil.oc2.common.container;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tags.ITag;
public class TypedItemStackHandler extends FixedSizeItemStackHandler {
private final ITag<Item> deviceType;
////////////////////////////////////////////... | 230 |
2,177 | <gh_stars>1000+
from lixian_commands.util import *
from lixian_cli_parser import *
from lixian_encoding import default_encoding
import lixian_help
import lixian_query
@command_line_parser(help=lixian_help.pause)
@with_parser(parse_login)
@with_parser(parse_colors)
@with_parser(parse_logging)
@command_line_option('i')... | 220 |
310 | {
"name": "Seaboard Block",
"description": "A portable MIDI keyboard.",
"url": "https://roli.com/products/blocks/seaboard-block"
}
| 49 |
852 | #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHDecayGenericBuilder_h
#define HeavyFlavorAnalysis_SpecificDecay_BPHDecayGenericBuilder_h
/** \class BPHDecayGenericBuilder
*
* Description:
* Class to build a generic decay applying selections to the
* reconstructed particle
*
* \author <NAME> INFN Padova
*... | 741 |
1,337 | /*
* Copyright (c) 2008-2016 Haulmont.
*
* 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 agr... | 5,184 |
6,185 | <gh_stars>1000+
package skin.support.observe;
public interface SkinObserver {
void updateSkin(SkinObservable observable, Object o);
}
| 45 |
415 | /*--------------------------------------------------------------------------*\
Copyright (c) 2008-2009, <NAME>. All rights reserved.
http://www.dannyruijters.nl/cubicinterpolation/
This file is part of CUDA Cubic B-Spline Interpolation (CI).
Redistribution and use in source and binary forms, with or without
modificati... | 2,277 |
575 | <filename>chrome/browser/plugins/plugin_installer.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/plugins/plugin_installer.h"
#include <utility>
#include "base/bind.h"
... | 680 |
703 | <filename>Code/ThirdParty/Kraut/KrautFoundation/Containers/Inline/Map.inl
#ifndef AE_FOUNDATION_CONTAINERS_MAP_INL
#define AE_FOUNDATION_CONTAINERS_MAP_INL
#include "../../Math/Math.h"
#include "../../Basics/Checks.h"
#include "../../Memory/Memory.h"
namespace AE_NS_FOUNDATION
{
// ***** base iterator ****... | 11,062 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/CorePDF.framework/CorePDF
*/
@interface CPPreformatter : NSObject {
}
+ (void)preformatInPage:(id)page; // 0x43369
- (void)preformatInParagraph:(id)paragraph; // 0x433c5
- (void)preformatIn:(id)anIn; // 0x43281
@e... | 122 |
2,577 | <filename>engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/impl/history/HistoricTaskInstanceRestServiceImpl.java
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for addi... | 1,920 |
403 | package io.craft.atom.rpc.api;
/**
* MBean for {@link RpcClient }
*
* @author mindwind
* @version 1.0, Oct 13, 2014
*/
public interface RpcClientMBean {
/**
* @return x-ray of {@link RpcClient }
*/
RpcClientX x();
}
| 98 |
22,688 | <gh_stars>1000+
/******************************************************************************
* Copyright 2017 The Apollo 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... | 1,331 |
4,345 | //
// AMPopTip+Animation.h
// AMPopTip
//
// Created by <NAME> on 10/06/15.
// Copyright (c) 2015 Fancy Pixel. All rights reserved.
//
#import "AMPopTip.h"
@interface AMPopTip (Animation)
/** Start the popover action animation
*
* Starts the popover action animation. Does nothing if the popover wasn't animatin... | 174 |
348 | {"nom":"Compreignac","circ":"3ème circonscription","dpt":"Haute-Vienne","inscrits":1415,"abs":675,"votants":740,"blancs":9,"nuls":8,"exp":723,"res":[{"nuance":"REM","nom":"<NAME>","voix":245},{"nuance":"FI","nom":"<NAME>","voix":143},{"nuance":"LR","nom":"M. <NAME>","voix":87},{"nuance":"FN","nom":"M. <NAME>","voix":83... | 258 |
697 | <gh_stars>100-1000
# Copyright 2018 <NAME> LLC, <<EMAIL>>
#
# 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... | 263 |
970 | <gh_stars>100-1000
/*
* Copyright 2021-present MongoDB, 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 a... | 5,688 |
3,128 | <filename>oclint-rules/test/size/CyclomaticComplexityRuleTest.cpp
#include "TestRuleOnCode.h"
#include "rules/size/CyclomaticComplexityRule.cpp"
class CyclomaticComplexityRuleTest : public ::testing::Test {
protected:
virtual void SetUp() override
{
RuleConfiguration::addConfiguration("CYCLOMATIC_COMP... | 1,533 |
3,428 | <reponame>ghalimi/stdlib<gh_stars>1000+
{"id":"01645","group":"easy-ham-1","checksum":{"type":"MD5","value":"f61b77d47c074402d1ee5976e9a4fd7d"},"text":"Return-Path: <EMAIL>\nDelivery-Date: Fri Sep 6 15:43:33 2002\nFrom: <EMAIL> (<NAME>)\nDate: Fri, 06 Sep 2002 10:43:33 -0400\nSubject: [Spambayes] Deployment\nIn-Reply-... | 579 |
327 | {
"jupyter.lab.setting-icon-class": "jp-GitHub-icon",
"jupyter.lab.setting-icon-label": "GitHub",
"title": "GitHub",
"description": "Settings for the GitHub plugin.",
"properties": {
"baseUrl": {
"type": "string",
"title": "The GitHub Base URL",
"default": "https://github.com"
},
... | 274 |
377 | <reponame>gburd/Kundera<gh_stars>100-1000
/**
* Copyright 2013 Impetus Infotech.
*
* 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
*
... | 3,835 |
8,805 | <gh_stars>1000+
//
// KBPrefGPGView.h
// Keybase
//
// Created by Gabriel on 4/3/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "KBPreferences.h"
#import <YOLayout/YOBox.h>
@interface KBPrefGPGView : YOVBox
- (instancetype)initWithPreferences:(KBPreferences *... | 137 |
1,738 | <filename>dev/Code/Sandbox/Editor/TerrainMoveToolPanel.h
/*
* 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 ... | 677 |
4,772 | <reponame>Balkerm/spring-data-examples
/*
* 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... | 836 |
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 ... | 2,344 |
1,092 | <reponame>altus34/spring-restdocs<filename>spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/preprocess/PrettyPrintingContentModifier.java
/*
* Copyright 2014-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ... | 1,560 |
6,160 | /*
* 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,574 |
852 | import FWCore.ParameterSet.Config as cms
##### event content for heavy-ion analysis objects
from Configuration.EventContent.EventContentHeavyIons_cff import *
from RecoHI.HiMuonAlgos.RecoHiMuon_EventContent_cff import *
#jets
jetContent = cms.PSet(
outputCommands = cms.untracked.vstring(
'keep double*_*CaloJe... | 1,571 |
319 | //
// ReferenceTypeConstructor.h
// NativeScript
//
// Created by <NAME> on 11/3/14.
// Copyright (c) 2014 Telerik. All rights reserved.
//
#ifndef __NativeScript__ReferenceTypeConstructor__
#define __NativeScript__ReferenceTypeConstructor__
namespace NativeScript {
class ReferenceTypeConstructor : public JSC::I... | 482 |
2,291 | <gh_stars>1000+
{
"id" : 411,
"status" : "Invalid",
"summary" : "Junk data is displayed as a tile instead of the correct tile.",
"labels" : [ "Type-Defect", "Priority-Medium" ],
"stars" : 0,
"commentCount" : 4,
"comments" : [ {
"id" : 0,
"commenterId" : 6125753346405818702,
"content" : "<b>Wha... | 821 |
1,227 | import numpy as np
from typing import Callable, Dict, Optional, Union
from alibi_detect.utils.frameworks import has_pytorch, has_tensorflow
if has_pytorch:
from alibi_detect.cd.pytorch.spot_the_diff import SpotTheDiffDriftTorch
from alibi_detect.utils.pytorch.data import TorchDataset
from torch.utils.data ... | 3,454 |
621 | package me.wangyuwei.signuptransition;
import android.animation.AnimatorSet;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.AttributeSet;
import andro... | 2,555 |
648 | <filename>spring-rabbit-test/src/test/java/org/springframework/amqp/rabbit/test/context/SpringRabbitTestTests.java
/*
* Copyright 2020 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 obt... | 687 |
348 | {"nom":"Bouillon","circ":"3ème circonscription","dpt":"Pyrénées-Atlantiques","inscrits":112,"abs":34,"votants":78,"blancs":3,"nuls":1,"exp":74,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":46},{"nuance":"SOC","nom":"<NAME>","voix":28}]} | 98 |
3,269 | # Time: O(n) on average
# Space: O(1)
import random
# quick select solution
class Solution(object):
def largestEvenSum(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: int
"""
def nth_element(nums, n, compare=lambda a, b: a < b):
def tri_... | 1,030 |
550 | <gh_stars>100-1000
package play.db.helper;
import java.util.ArrayList;
import java.util.List;
public abstract class SqlQuery {
protected List<Object> params;
protected SqlQuery() {
params = new ArrayList<Object>();
}
public SqlQuery param(Object obj) { params.add(obj); return this; }
pu... | 1,900 |
327 | <reponame>akabomb-prog/AVAb
#include <engine.h>
EXPORT
int main()
{}
| 34 |
335 | {
"word": "Rebar",
"definitions": [
"Reinforcing steel used as rods in concrete."
],
"parts-of-speech": "Noun"
} | 62 |
3,212 | /*
* Copyright 2014 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 2,326 |
372 | <gh_stars>100-1000
/*
* 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 ... | 1,926 |
902 | <filename>tests/cli/16_test_stack_services_restart.py
from wo.utils import test
from wo.cli.main import WOTestApp
class CliTestCaseStackRestart(test.WOTestCase):
def test_wo_cli_stack_services_restart_nginx(self):
with WOTestApp(argv=['stack', 'restart', '--nginx']) as app:
app.run()
def... | 340 |
474 | /*
* Copyright (C) 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* 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 copy... | 1,254 |
7,409 | <filename>ee/api/test/test_team_memberships.py
from rest_framework import status
from ee.api.test.base import APILicensedTest
from ee.models.explicit_team_membership import ExplicitTeamMembership
from posthog.models import OrganizationMembership, Team, User
class TestTeamMembershipsAPI(APILicensedTest):
CLASS_DA... | 8,626 |
319 | <filename>src/main/java/org/clapper/util/classutil/ClassLoaderBuilder.java
package org.clapper.util.classutil;
import java.io.File;
import java.net.URL;
import java.net.URLClassLoader;
import java.net.MalformedURLException;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.StringTokenizer... | 2,735 |
1,165 | /*******************************************************************************
* Copyright 2018 T Mobile, Inc. or its affiliates. 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... | 1,925 |
386 | <filename>bus-health/src/main/java/org/aoju/bus/health/unix/aix/drivers/Lssrad.java
/*********************************************************************************
* *
* The MIT License (MIT) ... | 2,344 |
22,481 | <gh_stars>1000+
"""Support for OpenTherm Gateway binary sensors."""
import logging
from pprint import pformat
from homeassistant.components.binary_sensor import ENTITY_ID_FORMAT, BinarySensorEntity
from homeassistant.const import CONF_ID
from homeassistant.core import callback
from homeassistant.helpers.dispatcher imp... | 2,836 |
870 | <reponame>KikiManjaro/accumulo
/*
* 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, Versi... | 688 |
5,169 | <reponame>Gantios/Specs
{
"name": "YHWallet",
"version": "0.3.0",
"summary": "A short description of YHWallet.",
"description": "TODO: Add long description of the pod here.",
"homepage": "https://bitbucket.org/lyjflyingdog/yhwallet",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
... | 564 |
384 | <filename>jprotobuf-rpc-core-spring-base/src/main/java/com/baidu/jprotobuf/pbrpc/client/ha/lb/strategy/RoundRobinLoadBalanceStrategy.java
/*
* Copyright 2002-2007 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... | 4,450 |
1,755 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkRectilinearGridPartitioner.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed... | 2,161 |
1,602 | //===-- NVPTXMCAsmInfo.cpp - NVPTX asm properties -------------------------===//
//
// 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
//
//===---------------------------... | 594 |
14,668 | <gh_stars>1000+
// 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.
#ifndef NET_LOG_NET_LOG_EVENT_TYPE_H_
#define NET_LOG_NET_LOG_EVENT_TYPE_H_
namespace net {
enum class NetLogEventType {
#define EVENT_T... | 224 |
9,136 | <reponame>ptrbortolotti/WISDEM
/*
Copyright (c) 2011, Intel Corporation. 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, this... | 1,527 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-x63c-6qqq-h574",
"modified": "2022-05-01T07:36:24Z",
"published": "2022-05-01T07:36:24Z",
"aliases": [
"CVE-2006-6266"
],
"details": "Teredo clients, when following item 6 of RFC4380 section 5.2.3, start direct I... | 492 |
1,723 | #!/usr/bin/env python3
from faker import Faker
from flask import Flask
from google.cloud import pubsub_v1
import datetime
import logging
import os
import random
import uuid
PUBSUB_TOPIC_NAME = 'YOUR_TOPIC_NAME'
PROJECT_ID = 'YOUR_PROJECT_ID'
DEVICE_ID_VALUES = 50000000
TIMESTAMP_RANGE_DAYS = 30
# Number of fields ... | 1,935 |
311 | #
# Copyright [2020] JD.com, Inc. TIG. ChubaoStream team.
#
# 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... | 1,210 |
672 | <reponame>apple-open-source-mirror/libplatform
/*
* Copyright (c) 2008-2013 Apple Inc. All rights reserved.
*
* @APPLE_APACHE_LICENSE_HEADER_START@
*
* 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... | 1,063 |
16,461 | // Copyright 2017-present 650 Industries. All rights reserved.
#import <AVFoundation/AVFoundation.h>
#import <ABI42_0_0UMCore/ABI42_0_0UMModuleRegistryConsumer.h>
#import <ABI42_0_0UMCore/ABI42_0_0UMAppLifecycleListener.h>
#import <ABI42_0_0UMCore/ABI42_0_0UMExportedModule.h>
#import <ABI42_0_0UMCore/ABI42_0_0UMEvent... | 888 |
362 | <gh_stars>100-1000
// Copyright (c) 2018-2020, <NAME>. For more information see 'LICENSE'
#include "VBuffer.h"
#include "VEnumCast.h"
#include "FGEnumCast.h"
#include "VDevice.h"
#include "VMemoryObj.h"
#include "VResourceManager.h"
namespace FG
{
/*
=================================================
destructor
===... | 4,753 |
495 | from __future__ import absolute_import, print_function, division
from petl.test.helpers import ieq
from petl import join, leftjoin, rightjoin, outerjoin, crossjoin, antijoin, \
lookupjoin, hashjoin, hashleftjoin, hashrightjoin, hashantijoin, \
hashlookupjoin, unjoin, sort, cut
def _test_join_basic(join_impl... | 23,721 |
460 | <reponame>manovotn/thorntail
/**
* Copyright 2017 Red Hat, Inc, and individual 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-... | 549 |
737 | <filename>soa/service/zmq.hpp
/*
Copyright (c) 2007-2011 iMatix Corporation
Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
This file is part of 0MQ.
0MQ is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as p... | 5,723 |
342 | <reponame>None1637/osu-droid-1
package com.edlplan.framework.support.graphics.texture;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterD... | 4,216 |
6,215 | /*
* Copyright (c) 2021 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.integrations.debezium.internals;
public enum SnapshotMetadata {
TRUE,
FALSE,
LAST
}
| 61 |
826 | # -*- coding: utf-8 -*-
################################################################################
# Copyright 1998-2018 by authors (see AUTHORS.txt)
#
# This file is part of LuxCoreRender.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with ... | 762 |
334 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 1,366 |
2,151 | /*
** 2011 March 18
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
***********************... | 1,018 |
696 | <gh_stars>100-1000
/*
* Copyright (C) 2020 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.basics.date;
import java.io.Serializable;
import java.lang.invoke.MethodHandles;
import java.time.LocalDate;
import java.time.Period;
... | 3,514 |
1,396 | package com.necer.ncalendar.activity;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.view.View;
import com.necer.calendar.Miui10Calendar;
import com.necer.enumeration.CheckModel;
import com.necer.ncalendar.R;
import com.necer.ncalendar.pa... | 857 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.