max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
331 | <reponame>sathishmscict/realm-browser<filename>realm-browser/src/main/java/com/dd/realmbrowser/utils/MagicUtils.java
package com.dd.realmbrowser.utils;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetExcept... | 963 |
310 | <gh_stars>100-1000
{
"editor.rulers": [
100
],
"[powershell]": {
"files.trimTrailingWhitespace": true
},
"powershell.codeFormatting.openBraceOnSameLine": false,
"powershell.codeFormatting.alignPropertyValuePairs": false
} | 113 |
3,509 | <reponame>sanel/ledger
/*
* Copyright (c) 2003-2018, <NAME>. 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
* notic... | 3,533 |
601 | {
"solution": {
"name": "react-organisationchart-client-side-solution",
"id": "95c4b6f9-b123-4eca-a70a-c1165995faa2",
"version": "1.0.0.0"
},
"paths": {
"zippedPackage": "solution/react-organisationchart.sppkg"
}
}
| 118 |
601 | package com.java3y.austin.support.utils;
import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import java.util.Date;
/**
* 生成 消息推送的URL 工具类
*
* @author 3y
*/
public class TaskInfoUtils {
private static final int TYPE_FLAG = 1000000;
private static final char PARAM = '?';
/**
... | 704 |
593 | <reponame>RUB-NDS/TLS-Attacker
/**
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2022 Ruhr University Bochum, Paderborn University, Hackmanit GmbH
*
* Licensed under Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
package de.rub.nds.tlsattack... | 5,867 |
589 | <filename>inspectit.server/src/test/java/rocks/inspectit/server/influx/builder/HttpPointBuilderTest.java<gh_stars>100-1000
package rocks.inspectit.server.influx.builder;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.hasEntry;
import static org.hamcrest.Matchers.hasKey;
import... | 2,262 |
3,128 | <gh_stars>1000+
#include "oclint/RuleBase.h"
using namespace oclint;
void RuleBase::takeoff(RuleCarrier *carrier)
{
_carrier = carrier;
apply();
}
const std::string RuleBase::attributeName() const
{
return name();
}
const std::string RuleBase::identifier() const
{
std::string copy = name();
if (... | 469 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The... | 2,812 |
2,266 | <filename>packages/falso/src/lib/snake.json
{
"data": [
"Bluntnose viper",
"Yunnan keelback",
"Eastern hognose snake",
"Southwestern black spitting cobra",
"Machete savane",
"Angolan python",
"Huttons tree viper",
"Eastern tiger snake",
"Central ranges taipan",
"Schultzes pitvi... | 231 |
799 | <filename>Packs/Flashpoint/Integrations/Flashpoint/TestData/compromised_credentials_hr.json<gh_stars>100-1000
{
"Data": "#### Total number of records found: 1302\n\n### Compromised Credential(s)\n|FPID|Email|Breach Source|Breach Source Type|Password|Created Date (UTC)|First Observed Date (UTC)|\n|---|---|---|---|---|... | 172 |
14,668 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GPU_COMMAND_BUFFER_COMMON_MAILBOX_HOLDER_H_
#define GPU_COMMAND_BUFFER_COMMON_MAILBOX_HOLDER_H_
#include <stdint.h>
#include <string.h>
#include... | 433 |
478 | <reponame>aerys/minko
/*
Copyright (c) 2014 Aerys
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, publish,... | 885 |
3,765 | <filename>pmd-python/src/test/resources/net/sourceforge/pmd/lang/python/cpd/testdata/special_comments.py
import logging
# CPD-OFF
logger = logging.getLogger('django.request')
class BaseHandler(object):
def __init__(self):
self._request_middleware = None
# CPD-ON
| 109 |
616 | <gh_stars>100-1000
/*
* Copyright (C) 2015 <NAME> & <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 453 |
2,151 | <gh_stars>1000+
// Copyright 2019 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 "osp/public/endpoint_request_ids.h"
#include "third_party/googletest/src/googletest/include/gtest/gtest.h"
namespace openscreen... | 1,476 |
1,371 | <reponame>moogacs/aws-sdk-go-v2
/*
* Copyright 2021 Amazon.com, 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apac... | 2,042 |
3,428 | <filename>lib/node_modules/@stdlib/datasets/spam-assassin/data/spam-2/00618.3407355607b3c336ddee20b1435abf01.json
{"id":"00618","group":"spam-2","checksum":{"type":"MD5","value":"3407355607b3c336ddee20b1435abf01"},"text":"From <EMAIL> Mon Jun 24 17:49:23 2002\nReturn-Path: <EMAIL>.cn\nDelivery-Date: Mon Jun 10 04:13:1... | 928 |
575 | <reponame>Ron423c/chromium
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/zoom/zoom_controller.h"
#include "base/macros.h"
#include "base/process/kill.h"
#include "build/build_con... | 4,395 |
2,270 | <reponame>studiobee/JUCE6-Svalbard-Fork
/*
==============================================================================
This file is part of the JUCE examples.
Copyright (c) 2020 - Raw Material Software Limited
The code included in this file is provided under the terms of the ISC license
http:/... | 2,249 |
342 | package com.alibaba.chaosblade.exec.plugin.log.model;
import com.alibaba.chaosblade.exec.common.model.matcher.BasePredicateMatcherSpec;
import com.alibaba.chaosblade.exec.plugin.log.LogConstant;
/**
* @author <EMAIL>
*/
public class LogbackModelSpec extends BasePredicateMatcherSpec {
@Override
public String... | 239 |
488 | #include <stdio.h>
#include <assert.h>
#include <math.h>
#include <stdlib.h>
// inputs
int inputs[] = {1,2,5,3,6,4};
int a164 = 1;
int a148 = 32;
int a10 = 32;
int a35 = 0;
int a46 = 12;
int a189 = 34;
int a165 = 9;
int a185 = 34;
int a41 = 34;
int a69 = 32;
... | 25,452 |
310 | /*
* Copyright (C) 2014 Ribot Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 2,686 |
5,169 | <reponame>Gantios/Specs
{
"name": "StrobeLight",
"version": "1.1.0",
"summary": "Swift Version for iOS",
"description": "TODO: StrobeLight is a class used to produce the regular flashes of light. A Strobe light turns the camera flash light on and off at the proper period can appear to freeze or reverse cyclical... | 298 |
348 | {"nom":"Sainte-Marie-du-Mont","circ":"5ème circonscription","dpt":"Isère","inscrits":158,"abs":75,"votants":83,"blancs":7,"nuls":0,"exp":76,"res":[{"nuance":"REM","nom":"<NAME>","voix":53},{"nuance":"LR","nom":"<NAME>","voix":23}]} | 94 |
672 | #include <fcntl.h>
#include <stdlib.h>
#include <sys/mount.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <System/sys/content_protection.h>
#include <TargetConditionals.h>
#include <unistd.h>
#include <darwintest.h>
#define ALLOWED_MKOSTEMP_FLAGS (O_APPEND | O_SHLOCK | O_EXLOCK | O_CLOEXEC)
#define FCNTL_GE... | 2,939 |
2,151 | // 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/ui/webui/web_ui_test_handler.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/run_loop.h"
#include "b... | 1,751 |
2,690 | #pragma warning(push)
#pragma warning(disable: 4245)
extern "C" {
#include "utf8proc/utf8proc.c"
}
#pragma warning(pop)
bool rune_is_letter(Rune r) {
if (r < 0x80) {
if (r == '_') {
return true;
}
return ((cast(u32)r | 0x20) - 0x61) < 26;
}
switch (utf8proc_category(r)) {
case UTF8PROC_CATEGORY_LU:
cas... | 2,688 |
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... | 1,783 |
335 | {
"word": "White",
"definitions": [
"White colour or pigment.",
"White clothes or material.",
"White clothes, especially as worn for playing cricket or tennis, as naval uniform, or in the context of washing.",
"White wine.",
"The player of the white pieces in chess or dra... | 275 |
369 | <reponame>ethanpeng/OSVR-Core<filename>src/osvr/Connection/AsyncDeviceToken.h<gh_stars>100-1000
/** @file
@brief Header
@date 2014
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2014 Sensics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may no... | 971 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Arbonne","circ":"6ème circonscription","dpt":"Pyrénées-Atlantiques","inscrits":1623,"abs":839,"votants":784,"blancs":77,"nuls":27,"exp":680,"res":[{"nuance":"MDM","nom":"<NAME>","voix":406},{"nuance":"LR","nom":"<NAME>","voix":274}]} | 117 |
14,668 | <reponame>zealoussnow/chromium
// 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 IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_GRID_TAB_GRID_BOTTOM_TOOLBAR_H_
#define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_T... | 1,299 |
1,443 | {
"copyright": "<NAME>",
"url": "https://alexander.dk",
"email": "<EMAIL>",
"format": "txt"
} | 45 |
1,016 | <filename>security/security-auth-kylo-rest/src/main/java/com/thinkbiganalytics/auth/rest/LoginJerseyClientConfig.java<gh_stars>1000+
package com.thinkbiganalytics.auth.rest;
/*-
* #%L
* REST API Authentication
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* Licensed under the Apache License, Version 2.0 (the... | 1,003 |
2,151 | <reponame>clairechingching/ScaffCC
//===- llvm/unittest/Support/ConstantRangeTest.cpp - ConstantRange tests --===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------... | 8,382 |
2,209 | <reponame>Hadron/python<gh_stars>1000+
"""Constants and membership tests for ASCII characters"""
NUL = 0x00 # ^@
SOH = 0x01 # ^A
STX = 0x02 # ^B
ETX = 0x03 # ^C
EOT = 0x04 # ^D
ENQ = 0x05 # ^E
ACK = 0x06 # ^F
BEL = 0x07 # ^G
BS = 0x08 # ^H
TAB = 0x09 # ^I
HT = 0x... | 1,516 |
1,338 | <filename>src/tests/kits/media/BufferTest.h
/*
* Copyright 2014 Haiku, Inc.
* Distributed under the terms of the MIT License.
*/
#ifndef BUFFER_TEST_H
#define BUFFER_TEST_H
#include <TestCase.h>
#include <TestSuite.h>
class BufferTest: public BTestCase {
public:
BufferTest();
virtual ~BufferTest();
v... | 168 |
5,169 | <reponame>Gantios/Specs<gh_stars>1000+
{
"name": "IQAPIClient",
"version": "1.0.2",
"source": {
"git": "https://github.com/hackiftekhar/IQAPIClient.git",
"tag": "1.0.2"
},
"summary": "API Client to communicate with the REST API and auto conversion to model classes.",
"homepage": "https://github.com/... | 347 |
1,844 | <reponame>reshmabidikar/killbill
/*
* Copyright 2020-2020 Equinix, Inc
* Copyright 2014-2020 The Billing Project, LLC
*
* The Billing Project licenses this file to you 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... | 843 |
12,718 | <reponame>lukekras/zig<filename>lib/libc/include/any-macos-any/bsm/audit.h
/*-
* Copyright (c) 2005-2009 Apple 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. Redistribution... | 5,452 |
14,668 | <filename>chromeos/system/cpu_temperature_reader_unittest.cc
// 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.
#include "chromeos/system/cpu_temperature_reader.h"
#include <algorithm>
#include <string>
... | 2,162 |
4,054 | <gh_stars>1000+
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.filedistribution;
import com.yahoo.config.FileReference;
import java.io.File;
import java.nio.ByteBuffer;
/**
* @author hmusum
*/
public class MockFileManag... | 265 |
673 | """
rotation_widget
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
from PySide import QtGui, QtCore
from mcedit2.ui.scale_widget import Ui_scaleWidget
from mcedit2.util.resources import resourcePath
log = logging.getLogger(__name__)
class ScaleWidget(QtGui... | 1,188 |
533 | #include "saber/funcs/impl/x86/saber_layer_norm.h"
#include <math.h>
namespace anakin{
namespace saber{
template <DataType OpDtype>
SaberStatus SaberLayerNorm<X86, OpDtype>::dispatch(\
const std::vector<Tensor<X86> *>& inputs, \
std::vector<Tensor<X86> *>& outputs, \
LayerNormParam<X86> ¶m) {
co... | 767 |
1,799 | <reponame>sidharta/cucumber-jvm<filename>core/src/main/java/io/cucumber/core/stepexpression/ExpressionArgument.java
package io.cucumber.core.stepexpression;
import io.cucumber.cucumberexpressions.Group;
import java.lang.reflect.Type;
public final class ExpressionArgument implements Argument {
private final io.c... | 355 |
5,169 | <filename>Specs/9/5/0/JSModel/0.1.0/JSModel.podspec.json
{
"name": "JSModel",
"version": "0.1.0",
"summary": "JSModel is base model <json string <-> model>. Use key-value coding",
"description": "JSModel is base model <json string <-> model>. Use key-value coding\"",
"homepage": "https://github.com/jey-song/m... | 267 |
16,461 | <gh_stars>1000+
#import <Foundation/Foundation.h>
#import <ABI42_0_0React/ABI42_0_0RCTViewManager.h>
NS_ASSUME_NONNULL_BEGIN
@interface ABI42_0_0RCTOnPageSelected : NSObject <ABI42_0_0RCTEvent>
- (instancetype) initWithABI42_0_0ReactTag:(NSNumber *)ABI42_0_0ReactTag
position:(NSNumber *)posi... | 209 |
345 | import unittest
from programy.storage.stores.nosql.redis.config import RedisStorageConfiguration
from programy.storage.stores.nosql.redis.engine import RedisStorageEngine
from programy.storage.stores.nosql.redis.store.conversations import RedisConversationStore
class RedisStoreTests(unittest.TestCase):
def test... | 254 |
3,102 | // RUN: not %clang -fsyntax-only -fmacro-backtrace-limit=0 %s 2>&1 | FileCheck %s
#define FOO 1+"hi"
#define BAR FOO
#define BAZ BAR
#define QUZ BAZ
#define TAZ QUZ
#define ABA TAZ
#define BAB ABA
#define ZAZ BAB
#define WAZ ZAZ
#define DROOL WAZ
#define FOOL DROOL
FOOL;
// CHECK: :15:1: error: expected identifier ... | 853 |
765 | <reponame>hyu-iot/gem5
/*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownershi... | 1,017 |
799 | <filename>Packs/FireEyeETP/Integrations/FireEyeETP/FireEyeETP_test.py
import demistomock as demisto
def test_malware_readable_data():
"""
Given:
A dict with only "name" key
When:
calling malware_readable_data method on it
Then:
Ensure execution does not raise exception on it
... | 1,035 |
14,668 | // 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 "third_party/blink/renderer/platform/bindings/v8_private_property.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#inc... | 1,379 |
3,010 | # SPDX-FileCopyrightText: Copyright (c) 2017 <NAME> for Adafruit Industries
# SPDX-FileCopyrightText: 2014 MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors)
#
# SPDX-License-Identifier: MIT
# This must be on one line so its skipped when built into tests.
"""This f... | 868 |
1,118 | {"deu":{"common":"Wallis und Futuna","official":"Gebiet der Wallis und Futuna"},"fin":{"common":"Wallis ja Futuna","official":"Wallisin ja Futunan yhteisö"},"fra":{"common":"Wallis-et-Futuna","official":"Territoire des îles Wallis et Futuna"},"hrv":{"common":"Wallis i Fortuna","official":"Teritoriju Wallis i Futuna"},"... | 301 |
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 ... | 8,761 |
473 | /*
Copyright (c) 2009-2016, <NAME>
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#ifndef EL_BLAS_DOT_HPP
#define EL_BLAS_DOT_HPP
namespace El {... | 1,774 |
465 | <gh_stars>100-1000
import os
from tests.base import IntegrationTest
class TestCachePreserved(IntegrationTest):
def execute(self):
testfile2 = os.path.join(self.dir, "testwiki2.txt")
self.command("w", regex="written$", lines=1)
self.command("w {}".format(testfile2), regex="written$", line... | 242 |
902 | <reponame>cbk914/BlackMamba<filename>clientui/app_modules.py
####################################################################################
# BLACKMAMBA BY: LOSEYS (https://github.com/loseys)
#
# QT GUI INTERFACE BY: <NAME> (https://github.com/Wanderson-Magalhaes)
# ORIGINAL QT GUI: https://github.com/Wanderson-M... | 192 |
330 | # Copyright 2019, Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 5,946 |
1,144 | <filename>backend/de.metas.util/src/main/java/de/metas/util/time/generator/IDateSequenceExploder.java
package de.metas.util.time.generator;
import java.time.LocalDateTime;
import java.util.Set;
public interface IDateSequenceExploder
{
Set<LocalDateTime> explodeForward(LocalDateTime date);
Set<LocalDateTime> explod... | 120 |
454 | <gh_stars>100-1000
/*
* This file is generated by jOOQ.
*/
package cn.vertxup.erp.domain.tables.interfaces;
import io.github.jklingsporn.vertx.jooq.shared.internal.VertxPojo;
import java.io.Serializable;
import static io.github.jklingsporn.vertx.jooq.shared.internal.VertxPojo.*;
/**
* This class is generated by... | 1,159 |
1,279 | <gh_stars>1000+
from integration.helpers.base_test import BaseTest
class TestFunctionWithMsk(BaseTest):
def test_function_with_msk_trigger(self):
self._common_validations_for_MSK("combination/function_with_msk")
def test_function_with_msk_trigger_using_manage_policy(self):
self._common_valida... | 694 |
1,121 | <gh_stars>1000+
{
"name": "Wombat",
"description": "Cross platform gRPC client",
"author": {
"name": "<NAME>",
"email": "<EMAIL>"
},
"version": "0.0.0-dev",
"binaryname": "wombat",
"frontend": {
"dir": "frontend",
"install": "npm install",
"build": "npm run build",
"bridge": "src",
"serve": "npm ru... | 174 |
1,264 | <gh_stars>1000+
package org.yeauty.standard;
import org.springframework.util.StringUtils;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;
/**
* @author Yeauty
* @version 1.0
*/
public class ServerEndpointConfig {
private final String HOST;
private fin... | 3,462 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/paint/first_meaningful_paint_detector.h"
#include "testing/gtest/include/gtest/g... | 4,605 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-x6h5-845f-rv5f",
"modified": "2022-05-13T01:20:57Z",
"published": "2022-05-13T01:20:57Z",
"aliases": [
"CVE-2018-8531"
],
"details": "A remote code execution vulnerability exists in the way that Azure IoT Hub Device Client SDK using MQTT protocol accesses objec... | 495 |
1,541 | <filename>src/main/java/com/bwssystems/HABridge/plugins/moziot/Level.java
package com.bwssystems.HABridge.plugins.moziot;
import java.util.List;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Level {
@SerializedName("title")
@Expose
private Str... | 708 |
389 | import scipy
import numpy
try:
import cupy
except:
import numpy as cupy
from apricot import FacilityLocationSelection
from apricot.optimizers import *
from sklearn.datasets import load_digits
from sklearn.metrics import pairwise_distances
from numpy.testing import assert_almost_equal
from numpy.testing import ass... | 15,433 |
918 | /*
* 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 ... | 383 |
1,956 | <reponame>Lu-Jichen/jOOL
package org.jooq.lambda;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.Executor;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import java.util.function.Consumer;
import java.util.function.F... | 3,775 |
21,382 | from ray.rllib.agents.dreamer.dreamer import DREAMERTrainer, DEFAULT_CONFIG
__all__ = [
"DREAMERTrainer",
"DEFAULT_CONFIG",
]
| 58 |
375 | <reponame>wulinyun/lumify<gh_stars>100-1000
{
"id": 838,
"logo_path": null,
"description": null,
"name": "<NAME>",
"parent_company": {
"id": 4,
"logo_path": "/3S3SJqc58bdZEVeMcbdbsFNyPz5.png",
"name": "<NAME>"
},
"homepage": null,
"headquarters": null
} | 138 |
340 | package com.zblog.web.support;
public class WebContextFactory{
private static final ThreadLocal<WebContext> WEB_CONTEXT_HOLDER = new ThreadLocal<WebContext>();
private WebContextFactory(){
}
public static WebContext get(){
return WEB_CONTEXT_HOLDER.get();
}
public static void set(WebCo... | 174 |
2,151 | /*
* Copyright (c) 2017 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. All contribut... | 1,048 |
860 | <filename>benchmark/bench/process.java
/* The Great Computer Language Shootout
http://shootout.alioth.debian.org/
contributed by <NAME>
*/
public class process {
public static void main(String args[]) {
int n = Integer.parseInt(args[0]);
EndLink chainEnd = new EndLink(null, n);
chainEn... | 784 |
340 | # ex5.py
import thredo
import random
sticks = [thredo.Lock() for n in range(5)]
def philosopher(n):
thredo.sleep(random.random())
try:
with sticks[n]:
thredo.sleep(random.random())
with sticks[(n+1) % 5]:
print("eating", n)
thredo.sleep(random.r... | 382 |
331 | <filename>Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch2/helloworld_start.py
#
# Example file for HelloWorld
#
| 41 |
1,420 | <reponame>vickyuec/genie
/*
*
* Copyright 2019 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
*
* ... | 1,140 |
14,668 | // 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.
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <vector>
#include "base/ignore_result.h"
#include "chrome/utility/safe_browsing/mac/h... | 504 |
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 ... | 776 |
3,799 | /*
* Copyright 2019 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 applica... | 1,203 |
335 | {
"word": "Eyed",
"definitions": [
"Having eyes of the type or number specified."
],
"parts-of-speech": "Adjective"
} | 62 |
817 | <reponame>Joey61Liuyi/AutoDL-Projects
#######################################################
# Use module in xlayers to construct different models #
#######################################################
from typing import List, Text, Dict, Any
import torch
__all__ = ["get_model"]
from xautodl.xlayers.super_core i... | 1,370 |
631 | #ifndef __wglext_h_
#define __wglext_h_
#ifdef __cplusplus
extern "C" {
#endif
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
** Software License B, Version 1.1 (the "License"), the contents of this
** file ... | 13,932 |
454 | <gh_stars>100-1000
package io.vertx.tp.ui.uca;
import cn.vertxup.ui.service.ListStub;
import io.vertx.core.Future;
import io.vertx.core.json.JsonObject;
import io.vertx.tp.optic.UiFabric;
import io.vertx.tp.ui.refine.Ui;
import io.vertx.up.unity.Ux;
import io.vertx.up.util.Ut;
/*
* List configuration data processing... | 1,508 |
32,544 | package com.baeldung.constructorchaining;
import org.junit.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
public class CustomerUnitTest {
@Test
public void givenNameLastNameAndAge_whenUsingDedicatedConstructor_shouldInitializeFie... | 422 |
2,395 | <filename>userfiles/modules/rating/composer.json
{
"name": "microweber-modules/rating",
"description": "Rating",
"license": "MIT",
"homepage": "https://microweber.org/modules/microweber-modules/rating",
"authors": [
{
"name": "<NAME>",
"email": "<EMAIL>"
}
],
"keywords": [
"rating"... | 159 |
348 | <filename>docs/data/leg-t2/069/06913279.json
{"nom":"Jonage","circ":"13ème circonscription","dpt":"Rhône","inscrits":4567,"abs":2543,"votants":2024,"blancs":118,"nuls":32,"exp":1874,"res":[{"nuance":"LR","nom":"<NAME>","voix":978},{"nuance":"REM","nom":"<NAME>","voix":896}]} | 114 |
5,703 | /*
*
* Copyright 2015 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... | 1,294 |
1,473 | #include "build.h"
#include "xenonLib.h"
#include "xenonLibNatives.h"
#include "xenonPlatform.h"
#include "xenonGraphics.h"
#include "xenonUserManager.h"
#include "xenonBindings.h"
namespace xenon
{
namespace lib
{
//---------------------------------------------------------------------------
X_STATUS Xbox_Xa... | 2,048 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos.implementation.batch;
import com.azure.cosmos.BridgeInternal;
import com.azure.cosmos.CosmosAsyncContainer;
import com.azure.cosmos.CosmosBridgeInternal;
import com.azure.cosmos.CosmosException;
im... | 18,397 |
575 | // 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.
#include "remoting/base/scoped_protobuf_http_request.h"
#include "base/macros.h"
namespace remoting {
ScopedProtobufHttpRequest::ScopedProtobufHttpRequ... | 196 |
755 | <reponame>kmqwerty/Overload<gh_stars>100-1000
/**
* @project: Overload
* @author: <NAME>.
* @licence: MIT
*/
#include "OvUI/Widgets/Plots/APlot.h"
OvUI::Widgets::Plots::APlot::APlot
(
const std::vector<float>& p_data,
float p_minScale,
float p_maxScale,
const OvMaths::FVector2& p_size,
const std::string& p_overl... | 226 |
1,383 | <filename>src/chrono/fea/ChNodeFEAcurv.h
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// ... | 2,891 |
76,518 | #include "pch.h"
#include "preview_handler.h"
namespace PowerPreviewSettings
{
const LPCWSTR PreviewHandlerSettings::preview_handlers_subkey = L"Software\\Microsoft\\Windows\\CurrentVersion\\PreviewHandlers";
// Function to enable the preview handler in registry
LONG PreviewHandlerSettings::Enable()
{... | 770 |
316 | #include <vigra/blockwise_convolution.hxx>
#include <vigra/blockwise_convolution.hxx>
#include <vigra/multi_convolution.hxx>
#include <vigra/unittest.hxx>
#include <vigra/multi_blocking.hxx>
#include <vigra/multi_blockwise.hxx>
#include <iostream>
#include "utils.hxx"
using namespace std;
using namespace vigra;
str... | 1,588 |
809 | <reponame>mfkiwl/embox
/**
* @file
* @brief
*
* @date 19.11.10
* @author <NAME>
* @author <NAME>
*/
#include <assert.h>
#include <ctype.h>
#include <stddef.h>
#include <math.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <wctype.h>
#include <util/m... | 4,826 |
1,139 | <reponame>ghiloufibelgacem/jornaldev
package com.journaldev.androidroomtodolist;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;
import android.arch.persistence.room.Update;
import java.util... | 348 |
5,813 | #!/usr/bin/env python3
# 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 "Lic... | 351 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.