max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,144 | <gh_stars>1000+
package de.metas.handlingunits.materialtracking;
import java.util.Optional;
import org.adempiere.mm.attributes.AttributeCode;
import org.adempiere.util.lang.IContextAware;
import de.metas.handlingunits.attribute.storage.IAttributeStorage;
import de.metas.handlingunits.model.I_M_HU;
import de.metas.ma... | 757 |
965 | AFX_MANAGE_STATE(AfxGetStaticModuleState()) | 15 |
880 | /**
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 1,710 |
407 | /**
* 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... | 658 |
1,510 | <filename>android/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/ReadableByteChannel.h<gh_stars>1000+
/*
* 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
#inc... | 214 |
348 | <filename>docs/data/leg-t2/080/08001021.json<gh_stars>100-1000
{"nom":"Amiens","circ":"1ère circonscription","dpt":"Somme","inscrits":21434,"abs":13818,"votants":7616,"blancs":299,"nuls":134,"exp":7183,"res":[{"nuance":"FI","nom":"M. <NAME>","voix":3973},{"nuance":"REM","nom":"M. <NAME>","voix":3210}]} | 125 |
771 | <reponame>wjtlt3/cloud-template<gh_stars>100-1000
package cn.tycoding.api.common.exception;
import cn.tycoding.api.common.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.http.HttpStatus;
import org.spr... | 327 |
1,844 | /*
* 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,927 |
631 | /*
* Copyright 2013-2022 MultiMC Contributors
* Copyright 2022 kb1000
*
* This source is subject to the Microsoft Permissive License (MS-PL).
* Please see the COPYING.md file for more information.
*/
#include "ModrinthModel.h"
#include "Application.h"
#include "Json.h"
#include <QIcon>
Modrinth::ListModel::Lis... | 7,603 |
2,338 | <gh_stars>1000+
// RUN: %clang_cc1 -fexperimental-strict-floating-point -S -emit-llvm -triple i386-linux -Wno-unknown-pragmas %s -o - | FileCheck %s
// nextUp(1.F) == 0x1.000002p0F
const double _Complex C0 = 0x1.000001p0 + 0x1.000001p0I;
#pragma STDC FENV_ROUND FE_UPWARD
float F1u = 1.0F + 0x0.000002p0F;
float F2u ... | 488 |
505 | <reponame>Manny27nyc/BitcoinArmory
////////////////////////////////////////////////////////////////////////////////
// //
// Copyright (C) 2011-2015, Armory Technologies, Inc. //
// Distributed under the GNU Affero Gener... | 31,543 |
6,717 | //******************************************************************************
//
// Copyright (c) 2016 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | 559 |
1,179 | <gh_stars>1000+
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
* Copyright 2020 NXP
* Copyright 2021, SumUp Service GmbH
*/
#include <assert.h>
#include <compiler.h>
#include <crypto/crypto.h>
#include <crypto/crypto_impl.h>
#include <kernel/panic.h>
#include <stdlib.h>
#include <... | 8,883 |
14,668 | <reponame>zealoussnow/chromium<filename>chrome/browser/ash/file_system_provider/scoped_file_opener.h
// Copyright 2015 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_ASH_FILE_SYSTEM_PROVIDER_SCOPE... | 477 |
316 | <reponame>nasso/fx-gltf
// ------------------------------------------------------------
// Copyright(c) 2018-2021 <NAME>
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
// See the LICENSE file in the repo root for full license information.
// -------------------------------------------------... | 1,068 |
318 | #ifndef IO_MATLAB_HXX_
#define IO_MATLAB_HXX_
#include <../src/interfaces/common/io/io_base.hxx>
// set argument delimiter for commandline interface
// this has to be done befor "../common/argument/argument.hxx" is included
#include <../src/interfaces/common/argument/argument_delimiter.hxx>
const std::string opengm::... | 4,045 |
1,001 | <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
# "License"... | 688 |
9,724 | <reponame>albertobarri/idk
/*
* Copyright 2016 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*/
#include <stdio.h>
#include <ma... | 1,472 |
335 | <filename>grow/sdk/installers/gerrit_installer.py
"""Gerrit installer class."""
import subprocess
import urllib.parse
from grow.common import utils
from grow.sdk.installers import base_installer
KNOWN_GERRIT_HOSTS = (
'googlesource.com',
)
class GerritInstaller(base_installer.BaseInstaller):
"""Gerrit insta... | 833 |
23,220 | <filename>meta/src/test/java/com/alibaba/otter/canal/meta/AbstractZkTest.java
package com.alibaba.otter.canal.meta;
import org.junit.Assert;
public class AbstractZkTest {
protected String destination = "ljhtest1";
protected String cluster1 = "127.0.0.1:2188";
protected String cluster2 = "127.0.0.1:... | 235 |
1,144 | /** Generated Model - DO NOT CHANGE */
package de.metas.async.model;
import java.sql.ResultSet;
import java.util.Properties;
/** Generated Model for C_Queue_Processor_Assign
* @author Adempiere (generated)
*/
@SuppressWarnings("javadoc")
public class X_C_Queue_Processor_Assign extends org.compiere.model.PO implem... | 1,664 |
363 | <reponame>LittleShrimp1987/frostmourne
package com.autohome.frostmourne.spi.controller;
import java.util.List;
import javax.annotation.Resource;
import com.autohome.frostmourne.core.contract.Protocol;
import com.autohome.frostmourne.spi.service.IMessageService;
import com.autohome.frostmourne.spi.starter.model.AlarmM... | 511 |
9,367 | <gh_stars>1000+
#import "SentryCrash.h"
#import "SentryDefines.h"
#import <Foundation/Foundation.h>
@class SentryFrameInAppLogic;
NS_ASSUME_NONNULL_BEGIN
@interface SentryCrashReportSink : NSObject <SentryCrashReportFilter>
SENTRY_NO_INIT
- (instancetype)initWithFrameInAppLogic:(SentryFrameInAppLogic *)frameInAppLo... | 142 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-jxqp-p5q4-rm6m",
"modified": "2022-05-13T01:29:21Z",
"published": "2022-05-13T01:29:21Z",
"aliases": [
"CVE-2016-2179"
],
"details": "The DTLS implementation in OpenSSL before 1.1.0 does not properly restrict the lifetime of queue entries ass... | 1,770 |
911 | # Generated by Django 2.0.13 on 2020-10-28 18:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("sponsors", "0007_auto_2... | 5,052 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Autochthonous",
"definitions": [
"(of an inhabitant of a place) indigenous rather than descended from migrants or colonists.",
"(of a deposit or formation) formed in its present position."
],
"parts-of-speech": "Adjective"
} | 111 |
2,151 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/browser/preload_check.h"
#include "extensions/common/extension.h"
namespace extensions {
PreloadCheck::PreloadCheck(scoped_refptr<... | 156 |
1,338 | <filename>src/tests/servers/app/newerClipping/ViewLayer.cpp
#include <stdio.h>
#include <List.h>
#include <View.h> // for resize modes
#include "Desktop.h"
#include "DrawingEngine.h"
#include "WindowLayer.h"
#include "ViewLayer.h"
extern BWindow* wind;
// constructor
ViewLayer::ViewLayer(BRect frame, const char* ... | 6,358 |
547 | from typing import Any
from hamcrest.core.base_matcher import BaseMatcher
from hamcrest.core.description import Description
from hamcrest.core.matcher import Matcher
__author__ = "<NAME>"
__copyright__ = "Copyright 2011 hamcrest.org"
__license__ = "BSD, see License.txt"
class IsEqual(BaseMatcher[Any]):
def __in... | 370 |
4,002 | <filename>src/main/java/me/zeroX150/cornos/mixin/packet/EntitySpawnS2CPacketMixin.java<gh_stars>1000+
package me.zeroX150.cornos.mixin.packet;
import me.zeroX150.cornos.features.module.ModuleRegistry;
import me.zeroX150.cornos.features.module.impl.external.AntiBlockban;
import net.minecraft.entity.EntityType;
import n... | 436 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 831 |
308 | <filename>benchmarks/django_simple/gunicorn.conf.py<gh_stars>100-1000
import os
def post_fork(server, worker):
# Set lower defaults for ensuring profiler collect is run
if os.environ.get("PERF_PROFILER_ENABLED") == "1":
os.environ.update(
{"DD_PROFILING_ENABLED": "1", "DD_PROFILING_API_TIM... | 435 |
435 | <filename>pycon-ukraine-2018/videos/paul-colomiets-peer-to-peer-file-synchronization-for-your-apps.json
{
"copyright_text": null,
"description": "Everybody knows there are three data tiers: source code, database, and\ncache. In this talk, I\u2019m going to introduce a fourth data tier in\nbetween a database and sou... | 361 |
323 | <reponame>myryq/flutter_flipperkit
#import <Foundation/Foundation.h>
#import <FlipperKit/FlipperPlugin.h>
#import <FlipperKitNetworkPlugin/SKBufferingPlugin.h>
NS_ASSUME_NONNULL_BEGIN
@interface FlipperReduxInspectorPlugin : SKBufferingPlugin
- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)res... | 130 |
3,128 | <reponame>BGU-AiDnD/oclint
#include <clang/AST/Attr.h>
#include "oclint/AbstractASTVisitorRule.h"
#include "oclint/RuleSet.h"
#include "oclint/helper/EnforceHelper.h"
#include "oclint/util/ASTUtil.h"
using namespace std;
using namespace clang;
using namespace oclint;
namespace {
class CheckMethodsInsideClass : ... | 1,602 |
14,668 | // Copyright 2015 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 COMPONENTS_KEYED_SERVICE_CORE_SERVICE_ACCESS_TYPE_H_
#define COMPONENTS_KEYED_SERVICE_CORE_SERVICE_ACCESS_TYPE_H_
// Some KeyedServices are acces... | 394 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Levaré","circ":"3ème circonscription","dpt":"Mayenne","inscrits":249,"abs":126,"votants":123,"blancs":2,"nuls":3,"exp":118,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":74},{"nuance":"REM","nom":"M. <NAME>","voix":44}]} | 112 |
6,663 | <gh_stars>1000+
// -*- c++ -*-
#include <stdio.h>
template<unsigned int N>
class Integral {
unsigned char bytes[N];
public:
Integral() {
for (unsigned int i=0; i<N; i++)
bytes[i] = 0;
}
Integral(const Integral &I) {
for (unsigned int i=0; i<N; i++)
bytes[i] = I.bytes[i];
}
Integral(lo... | 1,618 |
422 | from dancywindow import *
image = ImageMask(filename="./assets/img1.jpg")
window = AnimatedSketchWindow("textured_static", winsize[0] / 2, winsize[1] / 2, 300, 300)
window.mask_img(image)
while True:
mousex, mousey = get_mouse_position()
window.set_position(mousex, mousey)
window.mask_img(image) # Comment... | 135 |
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,349 |
14,668 | <gh_stars>1000+
# Copyright 2013 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.
"""Signs and aligns an APK."""
import argparse
import logging
import shutil
import subprocess
import sys
import tempfile
from util import bu... | 1,183 |
5,411 | /*
* This file is part of the CitizenFX project - http://citizen.re/
*
* See LICENSE and MENTIONS in the root of the source tree for information
* regarding licensing.
*/
#include "StdInc.h"
#include "NUIApp.h"
#include "memdbgon.h"
class PollCallbacks
{
private:
typedef std::map<int, std::pair<Ce... | 696 |
452 | // <NAME>, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2021
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
// https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// Version: 4.0.2019.08.15
#include "ProjectTemplate.v16.h"
TemplateV16::Templa... | 6,364 |
686 | import datetime as dt
import pytest
from peewee import *
db = SqliteDatabase(':memory:')
class Person(Model):
name = CharField()
status = CharField(choices=(('user', 'user'), ('moderator', 'moderator'), ('admin', 'admin')))
created = DateTimeField(default=dt.datetime.now)
birthday = DateField()
... | 619 |
648 | <filename>javatests/com/google/fhir/common/ResourceValidatorR4Test.java
// 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/licen... | 1,443 |
15,577 | <filename>src/Interpreters/SelectIntersectExceptQueryVisitor.h
#pragma once
#include <unordered_set>
#include <Parsers/IAST.h>
#include <Interpreters/InDepthNodeVisitor.h>
#include <Parsers/ASTSelectIntersectExceptQuery.h>
#include <Parsers/ASTSelectWithUnionQuery.h>
namespace DB
{
class ASTFunction;
class Selec... | 237 |
1,106 | #ifndef MEMORY_H
#define MEMORY_H
#include <cstdlib>
#include "types.h"
inline void*
allocate(size_t size, size_t alignment = 0)
{
#if defined(__USE_XOPEN2K) && defined(ALIGNED_ALLOC)
void* ptr;
if (alignment > 1)
posix_memalign(&ptr, alignment, size);
else
ptr = malloc(size);
return ptr;
#else
retu... | 290 |
14,668 | // Copyright 2021 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 "tools/mac/power/power_sampler/sampling_controller.h"
#include <map>
#include <memory>
#include <set>
#include <string>
#include <vector>
#incl... | 928 |
2,557 | <gh_stars>1000+
#
# KDF.py : a collection of Key Derivation Functions
#
# Part of the Python Cryptography Toolkit
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedication to the public domain is not availabl... | 5,931 |
305 | package org.mamute.dao;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import net.vidageek.mirror.dsl.Mirror;
import org.junit.Before;
import or... | 1,372 |
2,338 | <gh_stars>1000+
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm < %s | FileCheck %s
int isalnum(int);
int isalpha(int);
int isblank(int);
int iscntrl(int);
int isdigit(int);
int isgraph(int);
int islower(int);
int isprint(int);
int ispunct(int);
int isspace(int);
int isupper(int);
int isxdigit(int);
int... | 1,317 |
592 | <gh_stars>100-1000
//
// MMButtonAwareTapGestureRecognizer.h
// LooseLeaf
//
// Created by <NAME> on 6/10/14.
// Copyright (c) 2014 Milestone Made, LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MMImmovableTapGestureRecognizer.h"
@interface MMButtonAwareTapGestureRecognizer : MMImmovableTapGesture... | 144 |
2,151 | <filename>third_party/pdfium/core/fpdfdoc/cpdf_aaction.cpp
// Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fpdf... | 682 |
893 | import pytest
from sheetfu import SpreadsheetApp, Table
from sheetfu.model import Range
from sheetfu.modules.table import Item
from tests.utils import mock_google_sheets_responses
class TestTableRanges:
def test_full_range_data(self, full_table):
for item in full_table.items:
assert item.bac... | 5,147 |
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
* ... | 9,288 |
575 | <reponame>sarang-apps/darshan_browser<filename>third_party/blink/renderer/core/geometry/dom_rect_read_only.cc
// 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 "third_party/blink/renderer/core/ge... | 981 |
416 | <gh_stars>100-1000
package org.simpleflatmapper.test.beans;
public class DbPrimitiveObject implements PrimitiveObject {
protected boolean pBoolean;
protected byte pByte;
protected char pCharacter;
protected short pShort;
protected int pInt;
protected long pLong;
protected float pFloat;
protected d... | 501 |
2,151 | <reponame>google-ar/chromium<gh_stars>1000+
// 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 GIN_RUN_MICROTASKS_OBSERVER_H_
#define GIN_RUN_MICROTASKS_OBSERVER_H_
#include "base/message_loop/mes... | 329 |
11,334 | <reponame>kerwin612/spring-boot-admin
/*
* Copyright 2014-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | 655 |
1,071 | <reponame>granadomoreno/oracle-db-examples
#------------------------------------------------------------------------------
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
#------------------------------------------------------------------------------
#------------------------------------... | 540 |
354 | /*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL ES 3.0 Module
* -------------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... | 4,538 |
369 | <gh_stars>100-1000
{
"name": "DenyWebCategories",
"priority": 100,
"ruleCollectionType": "FirewallPolicyFilterRuleCollection",
"action": {
"type": "Deny"
},
"rules": [
{
"ruleType": "ApplicationRule",
"name": "DenyCategories",
"protocols": [
{
"protocolType": "Https",
"port": 443
},... | 516 |
839 | /**
* 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 m... | 1,499 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Federa... | 455 |
464 | <reponame>dandycheung/AndLinker
package com.codezjx.andlinker;
/**
* Created by codezjx on 2017/11/5.<br/>
*/
final class RequestBuilder {
private String mTargetClass;
private String mMethodName;
private BaseTypeWrapper[] mParameterWrappers;
private boolean mOneWay;
RequestBuilder(String target... | 338 |
1,561 | <reponame>victorhu3/webots
#include <webots/gps.h>
#include <webots/robot.h>
#include <webots/utils/motion.h>
#include "../../../lib/ts_assertion.h"
#include "../../../lib/ts_utils.h"
#include <math.h>
#define TIME_STEP 40
static void wait_s(double time) {
double starts = wb_robot_get_time();
while (wb_robot_ge... | 1,111 |
483 | <reponame>kaaass/BGmi
import os
import traceback
from typing import List, cast
import stevedore
from stevedore.exception import NoMatches
from bgmi import namespace
from bgmi.config import DOWNLOAD_DELEGATE, SAVE_PATH
from bgmi.lib.models import STATUS_DOWNLOADING, STATUS_NOT_DOWNLOAD, Download
from bgmi.plugin.downl... | 1,095 |
6,465 | <filename>dropwizard-testing/src/test/java/io/dropwizard/testing/junit/DAOTestRuleWithoutLoggingBootstrapTest.java
package io.dropwizard.testing.junit;
import io.dropwizard.testing.app.TestEntity;
import org.hibernate.SessionFactory;
import org.junit.Rule;
import org.junit.Test;
import static org.assertj.core.api.Ass... | 300 |
2,073 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 4,897 |
1,350 | <reponame>ppartarr/azure-sdk-for-java<filename>sdk/core/azure-core/src/main/java/com/azure/core/exception/ClientAuthenticationException.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.exception;
import com.azure.core.http.HttpResponse;
/**
... | 665 |
591 | <filename>CarLife-Android-Vehicle/src/com/baidu/carlifevehicle/logic/FeatureConfigManager.java
/******************************************************************************
* Copyright 2017 The Baidu Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may no... | 3,122 |
14,668 | <filename>chrome/browser/nearby_sharing/power_client.cc
// 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 "chrome/browser/nearby_sharing/power_client.h"
PowerClient::PowerClient() = default;
Po... | 280 |
9,308 | /*
* 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.
*/
#include "watchman/Shutdown.h"
#include <atomic>
#include <vector>
#include "watchman/watchman_stream.h"
namespace {
static std::... | 282 |
2,757 | #!/usr/bin/env python3
#
# Copyright (C) 2020 Google LLC
#
# 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; either version 2 of the License, or
# (at your option) any later version.
#
# This prog... | 5,986 |
368 | <reponame>MayconFelipeA/sampvoiceatt<filename>client/include/game/CTxdStore.h<gh_stars>100-1000
/*
Plugin-SDK (Grand Theft Auto San Andreas) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#i... | 628 |
622 | <reponame>Sam-Gao-Xin/Courses-
/**
* @author: salimt
*/
package model.words;
public class WordEntry {
private String word;
private String description;
private WordEntryType type;
public WordEntry(WordEntryType type, int index) {
this.word = "";
this.description = "";
... | 433 |
841 | <gh_stars>100-1000
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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
*
* Unl... | 939 |
2,141 | <filename>src/ploomber/static_analysis/parser/tokens.py<gh_stars>1000+
"""
Tokens, given the limited scope our parser, we can reuse them for several
languages
"""
class Token:
def __init__(self, value):
self.value = value
def __eq__(self, other):
return isinstance(other, type(self)) and self.... | 302 |
4,262 | /* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.dataformat.tagsoup;
import java.util.HashMap;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.support.component.PropertyConfigurerSupport;... | 383 |
495 | <filename>domain/src/main/java/org/m4m/domain/VideoEncoder.java
/*
* Copyright 2014-2016 Media for Mobile
*
* 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/li... | 1,332 |
404 | //
// NSDateTFTool.h
// TFEasyCoderDemo
//
// Created by mx on 2020/8/24.
// Copyright © 2020 融数. All rights reserved.
//
#ifndef NSDateTFTool_h
#define NSDateTFTool_h
#import "TFEasyCoderConst.h"
#import "NSDate+TFTool.h"
//日期类型转换
static inline NSString *dateFormatterChange(NSString *date0,NSString *formatter0,N... | 3,252 |
435 | <gh_stars>100-1000
{
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "Interactive command-line (CLI) applications are extremely popular in the\nDevOps and Security communities as well as for internal tooling and\nautomation. Have you ever wanted to build an awesome CLI appli... | 814 |
432 | <filename>data/tools/aap.json<gh_stars>100-1000
[
{
"slug": "aap",
"name": "aap",
"description": "language-agnostic buildpacks using aap.json: an npmlike, highlevel dependecy manager/buildtool using bash+git",
"url": "https://github.com/coderofsalvation/aap",
"tags": [
"linux",
"window... | 253 |
347 | package com.baidu.brcc.domain.meta;
/*
@Results({
@Result(property = "id", column = "id", javaType = java.lang.Long.class, jdbcType = JdbcType.BIGINT, id = true),
@Result(property = "productId", column = "product_id", javaType = java.lang.Long.class, jdbcType = JdbcType.BIGINT),
@Result(property =... | 3,887 |
1,007 | #!/usr/bin/env python3
# -*-coding: utf-8 -*-
"""
.. invisible:
_ _ _____ _ _____ _____
| | | | ___| | | ___/ ___|
| | | | |__ | | | |__ \ `--.
| | | | __|| | | __| `--. \
\ \_/ / |___| |___| |___/\__/ /
\___/\____/\_____|____/\____/
Created on April 24, 2015
███████████████... | 2,803 |
886 | /*!
@file
Defines `boost::hana::experimental::types`.
@copyright <NAME> 2013-2016
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_EXPERIMENTAL_TYPES_HPP
#define BOOST_HANA_EXPERIMENTAL_TYPES_HPP
#include ... | 2,732 |
839 | <gh_stars>100-1000
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
... | 2,503 |
6,034 | <reponame>ssSlowDown/onemall
package cn.iocoder.mall.productservice.manager.spu;
import cn.iocoder.mall.productservice.enums.sku.ProductSkuDetailFieldEnum;
import cn.iocoder.mall.productservice.manager.sku.ProductSkuManager;
import cn.iocoder.mall.productservice.rpc.sku.dto.ProductSkuListQueryReqDTO;
import cn.iocoder... | 568 |
3,428 | {"id":"00720","group":"easy-ham-1","checksum":{"type":"MD5","value":"60fb431980df487172ca5ba412bbedc4"},"text":"From <EMAIL> Mon Sep 23 18:48:42 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>assassin.taint.org\nReceived: from localhost (jalapeno [1192.168.127.12])\n\tby jmason.org (Postfix) with ESMTP id 792B... | 1,488 |
14,668 | // 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.
#ifndef ASH_WEBUI_MEDIA_APP_UI_URL_CONSTANTS_H_
#define ASH_WEBUI_MEDIA_APP_UI_URL_CONSTANTS_H_
namespace ash {
extern const char kChromeUIMediaAppHost[... | 185 |
354 | #include<bits/stdc++.h>
using namespace std;
struct Item{
int val;
int w;
};
bool cmp(Item i1,Item i2){
double r1= (double)i1.val/i1.w;
double r2=(double)i2.val/i2.w;
return r1>r2;
}
int fractionalKnapsack(Item items[],int n,int W){
sort(items,items+n,cmp);
int rem=W;
double ans=0;
... | 546 |
4,551 | <gh_stars>1000+
package org.robolectric.res.android;
import static org.robolectric.res.android.Asset.toIntExact;
import static org.robolectric.res.android.Errors.NAME_NOT_FOUND;
import static org.robolectric.res.android.Errors.NO_ERROR;
import static org.robolectric.res.android.Util.ALOGW;
import static org.robolectri... | 3,760 |
4,071 | <gh_stars>1000+
#include "fmt/format.h"
int main(int argc, char** argv) {
for(int i = 0; i < argc; ++i)
fmt::print("{}: {}\n", i, argv[i]);
}
| 74 |
539 | <filename>cpp/test/core/multi_index.h<gh_stars>100-1000
#include <boost/type_traits.hpp>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/sequenced_index.hpp>
#include <boost/multi_index/identity.hpp>
#include <boost/multi_index/member.hpp>
#include ... | 1,216 |
346 | package com.sqisland.android.graphics_demo;
import android.app.Activity;
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;
public class AboutActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... | 206 |
1,147 | <reponame>xcnick/TurboTransformers
// Copyright (C) 2020 THL A29 Limited, a Tencent company.
// All rights reserved.
// Licensed under the BSD 3-Clause License (the "License"); you may
// not use this file except in compliance with the License. You may
// obtain a copy of the License at
// https://opensource.org/licens... | 1,513 |
4,283 | <gh_stars>1000+
/*
* Copyright (c) 2008-2021, Hazelcast, 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
*
* ... | 3,750 |
6,270 | [
{
"type": "feature",
"category": "DLM",
"description": "Allowing cron expression in the DLM policy creation schedule. "
},
{
"type": "feature",
"category": "EC2",
"description": "ebsOptimizedInfo, efaSupported and supportedVirtualizationTypes added to Descri... | 488 |
7,158 | /*
By downloading, copying, installing or using the software you agree to this license.
If you do not agree to this license, do not download, install,
copy or use the software.
License Agreement
For Open Source Computer Vision Library
(3-clause BSD Licen... | 1,250 |
386 | <filename>test/IECore/LookupTest.cpp
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... | 1,118 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.