max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
839 | <reponame>sudeshnas93/quickstart
package org.wildfly.quickstarts.microprofile.metrics;
import org.eclipse.microprofile.metrics.Counter;
import org.eclipse.microprofile.metrics.Metadata;
import org.eclipse.microprofile.metrics.MetricRegistry;
import org.eclipse.microprofile.metrics.MetricUnits;
import org.eclipse.micro... | 1,677 |
369 | /**
* \file
*
* \brief Component description for AC
*
* Copyright (c) 2013 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
... | 18,918 |
4,262 | /*
* 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 ... | 2,117 |
506 | #pragma once
#include <config/Fonts.hpp>
#include <config/PlatformInject.hpp>
#include <touch/TouchTypes.hpp>
#include <ui/Color.hpp>
#include <ui/UIPosition.hpp>
#include <array>
#include <memory>
#include <optional>
#include <vector>
namespace gfx
{
class UIWidget;
using WidgetPtr = std::shared_ptr<UIWidget>;
cla... | 697 |
435 | package datawave.ingest.input.reader;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.compress.CompressionCodec;
import org.apache.hadoop.io.compress.CompressionCodecFactory;
import org.apache.hadoop.mapreduce.InputSplit;
import ... | 440 |
8,772 | package org.apereo.cas.ticket;
import org.apereo.cas.authentication.principal.Service;
import lombok.Getter;
import java.util.List;
/**
* Exception to alert that there was an error validating the ticket.
*
* @author <NAME>
* @since 4.2.0
*/
@Getter
public abstract class AbstractTicketValidationException extend... | 559 |
336 | <gh_stars>100-1000
package com.shazam.fork.system.io;
class CouldNotCreateDirectoryException extends RuntimeException {
CouldNotCreateDirectoryException(Throwable t) {
super(t);
}
}
| 69 |
348 | /*
* Copyright 2010-2021 Australian Signals Directorate
*
* 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 appl... | 2,028 |
2,594 | <reponame>deenu713/bundletool<filename>src/main/java/com/android/tools/build/bundletool/splitters/PinSpecInjector.java
/*
* Copyright (C) 2017 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... | 682 |
5,169 | {
"name": "AppDeveloperKit-Utils",
"version": "1.0.7",
"summary": "A collection of utilities for AppDeveloperKit.",
"homepage": "https://github.com/AppDeveloperKit/AppDeveloperKit-Utils",
"description": "A collection of utilities for AppDeveloperKit. Detail is TBD.",
"authors": {
"Name": "<NAME>"
},
... | 241 |
312 | namespace occa {
namespace lang {
template <class funcType>
void variableLoader_t::setArgumentsFor(funcType &func) {
tokenRangeVector argRanges;
getArgumentRanges(tokenContext, argRanges);
const int argCount = (int) argRanges.size();
if (!argCount) {
return;
}
for... | 331 |
844 | <reponame>uQr/essentials
/*
* Copyright (C) 2014 <NAME>, greenrobot (http://greenrobot.de)
*
* 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... | 2,667 |
459 | // File implement/eglplus/enums/transparent_type_class.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/eglplus/transparent_type.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2015 <NAME>.
// Distributed under the Boost Software Lice... | 584 |
743 | /* Copyright (c) 2006-2012, DNSPod Inc.
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditi... | 13,378 |
5,169 | {
"name": "DANPromise",
"version": "1.0.0",
"summary": "A threadsafe, lightweight implementation of Promises in Objective-C",
"description": " DANPromise is a lightweight implementation of Promises in Objective-C to make it\n\t\t\t\t\t\t\t\t\t easy to cleanup asyncronous code.\... | 375 |
1,175 | <filename>SpaceCadetPinball/score.h<gh_stars>1000+
#pragma once
#include "gdrv.h"
struct scoreStruct
{
int Score;
bool DirtyFlag;
gdrv_bitmap8* BackgroundBmp;
int OffsetX;
int OffsetY;
int Width;
int Height;
gdrv_bitmap8* CharBmp[10];
};
struct score_msg_font_type
{
int GapWidth;
int Height;
gdrv_bitmap8* ... | 315 |
903 | <reponame>infinite8co/tacticalrmm
# Generated by Django 3.0.7 on 2020-06-14 08:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("agents", "0005_agent_policy"),
]
operations = [
migrations.RemoveField(
model_name="agent",
... | 223 |
790 | # Performance note: I benchmarked this code using a set instead of
# a list for the stopwords and was surprised to find that the list
# performed /better/ than the set - maybe because it's only a small
# list.
stopwords = '''
i
a
an
are
as
at
be
by
for
from
how
in
is
it
of
on
or
that
the
this
to
was
what
when
where
''... | 216 |
628 | <filename>tests/tensorflow/test_datasets_loader_tf.py
from typing import List, Tuple
import tensorflow as tf
from doctr.datasets import DataLoader
class MockDataset:
def __init__(self, input_size):
self.data: List[Tuple[float, bool]] = [
(1, True),
(0, False),
(0.5, ... | 873 |
14,668 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_PASSWORDS_WELL_KNOWN_CHANGE_PASSWORD_NAVIGATION_THROTTLE_H_
#define CHROME_BROWSER_UI_PASSWORDS_WELL_KNOWN_CHANGE_PASSWORD_NAVIG... | 883 |
2,219 | /*
* Copyright 2017-2018 Baidu 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... | 1,088 |
1,380 | <filename>sophia/format/sf_upsert.h
#ifndef SF_UPSERT_H_
#define SF_UPSERT_H_
/*
* sophia database
* sphia.org
*
* Copyright (c) <NAME>
* BSD License
*/
typedef int (*sfupsertf)(int count,
char **src, uint32_t *src_size,
char **upsert, uint32_t *upsert_size,
... | 407 |
732 | /* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved.
This software is licensed as OpenSource, under the Apache License, Version 2.0.
This license is available at: http://opensource.org/licenses/Apache-2.0. */
/*
* Name table format definition.
*/
#ifndef FORMAT_NAME_H
#de... | 696 |
6,036 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
extern "C" int gemv_update(float* cc, float* aa, float* bb, int m, int l, int stride) {
for (int i = 0; i < m; ++i) {
for (int j = 0; j < l; ++j) {
cc[i] += aa[j] * bb[i * stride + j];
}
}
return 0;
}
e... | 196 |
672 | /*
* Copyright 2014-2020 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 agr... | 679 |
12,278 |
// Copyright (C) 2009-2012 <NAME>
// Distributed under the Boost Software License, Version 1.0
// (see accompanying file LICENSE_1_0.txt or a copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error... | 694 |
1,531 | package com.sleekbyte.tailor.integration;
import com.sleekbyte.tailor.common.ExitCode;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.util.Scanner... | 1,055 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-pj5v-hc9m-mp8j",
"modified": "2022-05-13T01:13:46Z",
"published": "2022-05-13T01:13:46Z",
"aliases": [
"CVE-2016-8661"
],
"details": "Little Snitch version 3.0 through 3.6.1 suffer from a buffer overflow vulnerability that could be locally exploited which could... | 523 |
14,668 | <filename>third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSchema.java
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with o... | 1,664 |
348 | {"nom":"Froberville","circ":"9ème circonscription","dpt":"Seine-Maritime","inscrits":920,"abs":545,"votants":375,"blancs":32,"nuls":12,"exp":331,"res":[{"nuance":"REM","nom":"<NAME>","voix":177},{"nuance":"FN","nom":"<NAME>","voix":154}]} | 92 |
1,874 | # 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
# distributed under t... | 3,006 |
918 | /*
Copyright 2005-2007 Adobe Systems Incorporated
Use, modification and distribution are subject to the Boost Software License,
Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt).
See http://opensource.adobe.com/gil for most recent version inclu... | 973 |
372 | /*
* 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 distributed under t... | 2,216 |
1,125 | <gh_stars>1000+
#include <stdio.h>
#include "add.h"
int main(int argv, char **argc)
{
printf("%i\n", sub(add(5, 6), 6));
return 0;
}
| 72 |
839 | <reponame>kimjand/cxf
/**
* 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 (th... | 909 |
1,566 | <reponame>zhouhp007/AndroidAnimationExercise
package com.engineer.imitate.util;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
imp... | 865 |
1,273 | package org.broadinstitute.hellbender.engine.spark;
import org.broadinstitute.hellbender.engine.AlignmentContext;
import org.broadinstitute.hellbender.engine.FeatureContext;
import org.broadinstitute.hellbender.engine.ReferenceContext;
/**
* Encapsulates an {@link AlignmentContext} with its {@link ReferenceContext} ... | 313 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Hauteville-sur-Mer","circ":"3ème circonscription","dpt":"Manche","inscrits":674,"abs":341,"votants":333,"blancs":23,"nuls":8,"exp":302,"res":[{"nuance":"REM","nom":"<NAME>","voix":188},{"nuance":"LR","nom":"<NAME>","voix":114}]} | 111 |
521 | /** @file
* tstVBoxMultipleVM - load test for ClientWatcher.
*/
/*
* Copyright (C) 2006-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of ... | 10,484 |
2,996 | <reponame>Elyahu41/Terasology
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.config;
import org.terasology.engine.context.internal.MockContext;
public class InputConfig {
private ControllerConfig controllers = new ControllerConfig();
private f... | 418 |
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
* ... | 8,633 |
2,151 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_SYSTEM_TRAY_DETAILED_VIEW_DELEGATE_H_
#define ASH_SYSTEM_TRAY_DETAILED_VIEW_DELEGATE_H_
namespace ash {
// A delegate of TrayDetailedView th... | 288 |
348 | <filename>docs/data/leg-t1/085/08501262.json<gh_stars>100-1000
{"nom":"Saint-Philbert-de-Bouaine","circ":"1ère circonscription","dpt":"Vendée","inscrits":2269,"abs":1029,"votants":1240,"blancs":9,"nuls":5,"exp":1226,"res":[{"nuance":"MDM","nom":"<NAME>","voix":409},{"nuance":"LR","nom":"<NAME>","voix":392},{"nuance":"F... | 344 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-rjhx-jgh9-pm4q",
"modified": "2022-05-03T03:15:40Z",
"published": "2022-05-03T03:15:40Z",
"aliases": [
"CVE-2006-1646"
],
"details": "The Internet Key Exchange version 1 (IKEv1) implementation (isakmp_agg.c) in t... | 604 |
903 | <gh_stars>100-1000
#!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
import blocksparse as bs
from tensorflow.python.ops import gradient_checker
config = tf.ConfigProto(
intra_op_paralleli... | 2,409 |
432 | <reponame>xinligg/jwm<filename>src/error.h
/**
* @file error.h
* @author <NAME>
* @date 2004-2006
*
* @brief Header for the error functions.
*
*/
#ifndef ERROR_H
#define ERROR_H
/** Display and error message and terminate the program.
* @param str The format of the message to display.
*/
void FatalError(cons... | 271 |
1,253 | <filename>math/sum_of_digits/cpp/sod.cpp
#include iostream
using namespace std;
int main ()
{
int j;
float g,sum;
sum=0;
j=0;
cout<<"Give number of numbers you want to add"<<endl;
for (int i=0;i<j;i++)
{
cout<<"Give number "<<i<<endl;
cin>>g;
sum=sum+g;
}
cout<<"The sum of these digits are: "<<sum<<endl;
| 137 |
5,169 | {
"name": "wjyTestCocoaPod",
"version": "0.0.1",
"summary": "A short description of wjyTestCocoaPod.",
"description": "TODO: Add long description of the pod here.",
"homepage": "https://github.com/wujunyang/testCocoaPod",
"license": {
"type": "MIT",
"file": "FILE_LICENSE"
},
"authors": {
"ta... | 258 |
304 | /*
* Copyright 2019-2021 CloudNetService team & 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... | 996 |
3,602 | <reponame>DefenceLogic/Osmedeus
import os
import sys
from tabulate import tabulate
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
from lib.sender import send
from lib.sender import report
from lib.core import utils
def show(options):
raw_contents = report.list_workspaces(options)
... | 196 |
3,410 | /*
* Blocklist Copyright 2013 Regents of the University of Michigan
*
* 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
*/
#include "blocklist.h"... | 3,146 |
88,283 | // Copyright (c) 2020 Slack Technologies, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/common/gin_helper/cleaned_up_at_exit.h"
#include <algorithm>
#include <vector>
#include "base/no_destructor.h"
namespace gin_helper {
std::vector<Cleane... | 314 |
1,909 | package org.knowm.xchange.deribit.v2;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.List;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.... | 5,801 |
435 | <gh_stars>100-1000
{
"copyright_text": null,
"description": "What are regular expressions, what are they useful for, and why are they so hard to read?\n\nIn this tutorial we will break down the regular expression syntax to better understand how they work. We will learn how to dissect regular expressions, how to use... | 374 |
2,661 | <filename>earth_enterprise/src/fusion/fusionui/AssetDrag.h
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICEN... | 404 |
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,003 |
2,233 | <gh_stars>1000+
from abc import abstractmethod
from typing import ClassVar, NoReturn, Sequence, TypeVar
from typing_extensions import final
from returns.interfaces import bimappable
from returns.primitives.asserts import assert_equal
from returns.primitives.hkt import KindN
from returns.primitives.laws import (
L... | 666 |
1,724 | # Copyright 2016-2020 the GPflow authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 1,479 |
713 | <reponame>franz1981/infinispan<gh_stars>100-1000
package org.infinispan.commands.write;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.Collection;
import java.util.Collections;
import org.infinispan.commands.AbstractTopologyAffectedCommand;
import org.infinispan.... | 1,109 |
313 | import json
def main():
with open("./src/models/QualityResult.ts", 'r') as f:
res = f.read()
res = res[res.find("interface"):]
json_str = json.dumps(res, indent=1)
print("export default {};".format(json_str))
if __name__ == "__main__":
main()
| 120 |
453 | <reponame>kanishkan/tce
/*
* <NAME> - 02/13/2002
*/
#ifdef __SPE__
#include <stdlib.h>
#include <_ansi.h>
__int32_t
_DEFUN (_atosfix32_r, (reent, s),
struct _reent *reent _AND
_CONST char *s)
{
return _strtosfix32_r (reent, s, NULL);
}
#ifndef _REENT_ONLY
__int32_t
_DEFUN (atosfix32, (s),
_CONST char *s)
{
... | 202 |
1,144 | /**
*
*/
package de.metas.pricing.conditions.service;
import java.math.BigDecimal;
import javax.annotation.Nullable;
import de.metas.money.CurrencyId;
import de.metas.payment.paymentterm.PaymentTermId;
import de.metas.pricing.PricingSystemId;
import de.metas.pricing.conditions.PricingConditionsBreak;
import de.met... | 1,017 |
369 | //------------------------------------------------------------------------------
// icon-sapp.c
//
// Test/demo for setting the window icon.
//------------------------------------------------------------------------------
#include "sokol_app.h"
#include "sokol_gfx.h"
#include "sokol_glue.h"
#define SOKOL_IMPL
#includ... | 2,126 |
322 | ///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (C) 2019-2020, LAAS-CNRS, University of Edinburgh
// Copyright note valid unless otherwise stated in individual files.
// All rights reserved.
/////////////////////////////////////////////////////////... | 1,091 |
308 | <reponame>timgates42/fabtools
import unittest
class RedisTestCase(unittest.TestCase):
def test_parse_version(self):
from fabtools.require.redis import _parse_version
self.assertEqual(
_parse_version('2.6.14'),
(2, 6, 14)
)
def test_old_download_url(self):
... | 348 |
765 |
# Try to import all dependencies, catch and handle the error gracefully if
# it fails.
import import_lldb
try:
import lldb
import vim
except ImportError:
sys.stderr.write(
"Unable to load vim/lldb module. Check lldb is on the path is available (or LLDB is set) and that script is invoked inside Vi... | 147 |
3,170 | <filename>contrib/libpoco/Foundation/include/Poco/Semaphore_WIN32.h
//
// Semaphore_WIN32.h
//
// $Id: //poco/1.4/Foundation/include/Poco/Semaphore_WIN32.h#1 $
//
// Library: Foundation
// Package: Threading
// Module: Semaphore
//
// Definition of the SemaphoreImpl class for WIN32.
//
// Copyright (c) 2004-2006, Appl... | 394 |
370 | <gh_stars>100-1000
/** @file andmaybepostlist.cc
* @brief PostList class implementing Query::OP_AND_MAYBE
*/
/* Copyright 2017 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; eith... | 2,098 |
1,078 | <filename>test-api/src/main/java/com/turn/ttorrent/WaitFor.java
package com.turn.ttorrent;
public abstract class WaitFor {
public static final long POLL_INTERVAL = 500;
private boolean myResult = false;
protected WaitFor() {
this(60 * 1000);
}
protected WaitFor(long timeout) {
long maxTime = Syste... | 250 |
743 | package pl.allegro.tech.hermes.management.infrastructure.query.parser;
import pl.allegro.tech.hermes.api.Query;
import java.io.InputStream;
public interface QueryParser {
<T> Query<T> parse(InputStream input, Class<T> type);
<T> Query<T> parse(String query, Class<T> type);
}
| 104 |
2,692 | <gh_stars>1000+
#!/usr/bin/env python
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import logging
from typing import Callable, Optional
from uuid import UUID
import azure.functions as func
from memoization import cached
from onefuzztypes.enums import ErrorCode
from onefuzztypes.models im... | 1,542 |
416 | package com.ecwid.consul.v1.session.model;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* @author <NAME> (<EMAIL>)
*/
public class Session {
public static enum Behavior {
@SerializedName("release")
RELEASE,
@SerializedName("delete")
DELETE
}
@SerializedName("LockDelay... | 823 |
790 | # $Id: 2f91144fd898abfc5994a3a7de580cde341c5c07 $
"""
Provides some base exception classes.
"""
__docformat__ = "restructuredtext en"
# ---------------------------------------------------------------------------
# Exports
# ---------------------------------------------------------------------------
__all__ = ['Exce... | 452 |
1,837 | package com.dianping.zebra.group.performance;
public class C3p0Case extends ZebraBaseCase {
public C3p0Case() throws Exception {
super("performance/appcontext-aop-core-c3p0.xml");
}
public static void main(String args[]) throws Exception {
C3p0Case zebraCase = new C3p0Case();
Thread.sleep(10000);// 构建链... | 1,450 |
488 | <reponame>maurizioabba/rose<gh_stars>100-1000
// cc.in59
// ambiguous expression from mozilla
//template <class CharT>
struct nsReadableFragment
{
const void* mFragmentIdentifier;
unsigned long
GetIDAsInt() const
{
typedef char* char_ptr;
typedef unsigned long ulong;
... | 292 |
2,106 | <reponame>quantopian-enterprise/blaze<gh_stars>1000+
from abc import ABCMeta
from datashape.py2help import with_metaclass
from toolz import unique, memoize
from .core import compute_up
def flatten(ts):
"""Flatten a (potentially nested) sequence of tuples into just scalars.
"""
for t in ts:
if is... | 1,826 |
3,897 | <filename>targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/drivers/fsl_llwu.c
/*
* Copyright (c) 2015, Freescale Semiconductor, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are ... | 6,989 |
462 | package com.ppdai.infrastructure.mq.biz.polling;
import java.util.List;
import java.util.Map;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import com.ppdai.infrastructure.mq.biz.dto.Constants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.fact... | 2,964 |
1,775 | package com.threedr3am.bug.jackson.rce;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.threedr3am.bug.common.server.LdapServer;
import java.io.IOException;
/**
* jackson-databind <= 2.7.9.6、<= 172.16.58.3、<= 172.16.31.10 RCE,需要开启DefaultType
*
* <dependency>
* <groupId>com.zaxxer</groupId>
*... | 495 |
491 | package net.andreinc.mockneat.unit.objects;
import net.andreinc.mockneat.MockNeat;
import net.andreinc.mockneat.abstraction.MockUnit;
import net.andreinc.mockneat.abstraction.MockUnitBase;
import net.andreinc.mockneat.abstraction.MockUnitDouble;
import net.andreinc.mockneat.abstraction.MockValue;
import net.andreinc.m... | 1,321 |
324 | /*
* 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 ... | 346 |
854 | __________________________________________________________________________________________________
sample 0 ms submission
class Solution {
public int minAddToMakeValid(String S) {
int ans = 0,bal = 0;
for(int i=0;i<S.length();++i){
bal+=S.charAt(i) == '('? 1:-1;
//It is guara... | 487 |
1,428 | <gh_stars>1000+
#include <iostream>
#include<limits.h>
using namespace std;
int mcm(int input[],int start,int last){
if(start==last){
return 0;
}
int min = INT_MAX;
for(int i=start;i<last;i++){
int value = mcm(input,start,i)+mcm(input,i+1,last)+input[start-1]*input[i]*input[last];
if(value<min){
... | 222 |
1,477 | package com.beust.jcommander.internal;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.PARAMETER;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@Target({FIELD, PARAMETER})
public... | 112 |
1,175 | {
"deployments": [
{
"cluster_definition": "dcos-releases/dcos1.9.json",
"category": "version"
},
{
"cluster_definition": "disks-managed/dcos-preAttachedDisks-vmas.json",
"category": "managed-disk"
},
{
"cluster_definition": "disks-managed/dcos-vmss.json",
"cate... | 718 |
480 | package com.example.test;
import static org.springframework.util.ReflectionUtils.invokeMethod;
import javax.validation.constraints.NotNull;
import org.springframework.shell.CommandRegistry;
import org.springframework.shell.MethodTarget;
/**
*
* Utility methods for tests.
*
* @author <NAME>
*/
public class BaseCa... | 198 |
2,205 | /*
* 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.
*/
#pragma once
#include "mcrouter/lib/test/AllSyncCollectionRoute.h"
#include "mcrouter/routes/CollectionRouteFactory.h"
namespace f... | 220 |
473 | /*
Author: <NAME> <<EMAIL>>
Copyright (c) 2015 Cromulence LLC
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, m... | 1,247 |
340 | <reponame>jarvanh/HyperFT
package com.hyq.hm.landmarksticker;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class StartActivity extends AppCompatActivity implements View.OnClickListener{
@... | 367 |
971 | package com.ucar.datalink.manager.core.web.controller.mediaSource;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ucar.datalink.biz.service.MediaSourceService;
import com.ucar.datalink.biz.utils.AuditLogOperType;
import com.ucar.datalink.biz.utils.AuditLogUtils;
import com.u... | 4,417 |
375 | <reponame>spirentitestdevter/RED
/*
* Copyright 2019 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.rf.ide.core.testdata.formatter;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Argument... | 561 |
2,151 | // 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 "chrome/browser/loader/chrome_resource_dispatcher_host_delegate.h"
#include <memory>
#include "chrome/browser/loader/chrome_navigation_data.h"
... | 2,830 |
629 | <reponame>unghee/TorchCraftAI<gh_stars>100-1000
/*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <common/flags.h>
#include <zmq.hpp>
#include <future>
#include <... | 965 |
5,156 | <filename>src/test/x86/ptrace.c
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
#include "util.h"
#define NEW_VALUE 0xabcdef
static size_t static_data = 0x12345678;
enum cpuid_requests {
CPUID_GETFEATURES = 0x01,
CPUID_GETXSAVE = 0x0D,
};
static void cpuid(int code, int subreques... | 4,692 |
569 | /*
* Copyright 2020 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 3,785 |
716 | /* ============================================================
Copyright (c) 2002-2015 Advanced Micro Devices, Inc.
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 sourc... | 5,670 |
12,895 | /*
* This file and its contents are licensed under the Timescale License.
* Please see the included NOTICE for copyright information and
* LICENSE-TIMESCALE for a copy of the license.
*/
#ifndef TIMESCALEDB_TSL_COMPRESSION_UTILS_H
#define TIMESCALEDB_TSL_COMPRESSION_UTILS_H
#include <postgres.h>
static inline uin... | 490 |
348 | {"nom":"Orthoux-Sérignac-Quilhan","circ":"5ème circonscription","dpt":"Gard","inscrits":339,"abs":168,"votants":171,"blancs":0,"nuls":21,"exp":150,"res":[{"nuance":"REM","nom":"<NAME>","voix":109},{"nuance":"FN","nom":"<NAME>","voix":41}]} | 97 |
1,083 | <reponame>agxmaster/polarphp
//===--- PILCombiner.h ------------------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
... | 5,232 |
2,564 | <gh_stars>1000+
package com.cgfay.filter.glfilter.adjust.bean;
/**
* 调节参数
*/
public class AdjustParam {
// 亮度值 -1.0f ~ 1.0f
public float brightness;
// 对比度 0.0 ~ 4.0f
public float contrast;
// 曝光 -10.0f ~ 10.0f
public float exposure;
// 色调 0 ~ 360
public float hue;
// 饱和度 0 ~ 2.0f... | 323 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.