max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
16,989 | // Copyright 2021 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 1,540 |
1,052 | <reponame>mdimjasevic/sms-backup-plus<gh_stars>1000+
package com.zegoggles.smssync.auth;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONTokener;
import java.io.IOException;
import static com.zegoggles.smssync.App.TAG;
public class OAuth2Token {
public fin... | 1,052 |
1,391 | #include <u.h>
#include <libc.h>
#include <plumb.h>
#include <thread.h>
#include <9pclient.h>
char *plumbfile = nil;
Plumbmsg m;
void
usage(void)
{
fprint(2, "usage: plumb [-p plumbfile] [-a 'attr=value ...'] [-s src] [-d dst] [-t type] [-w wdir] -i | data1\n");
threadexitsall("usage");
}
void
gather(void)
{
char... | 1,129 |
2,137 | <gh_stars>1000+
package org.hibernate.tool.internal.util;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.sql.Types;
import java.util.HashMap;
import java.util.Map;
import org.hibernate.MappingException;
/**
* Utility class for mapping between sqltypes and hibernate type names.
*
... | 3,141 |
317 | <filename>services/docker/webrecorder/recorder_main.py
from gevent import monkey; monkey.patch_all()
import os
from webrecorder.utils import load_wr_config, init_logging, spawn_once, get_bool
from webrecorder.rec.webrecrecorder import WebRecRecorder
# ========================================================... | 223 |
3,139 | <reponame>supertick/jmonkeyengine
/*
* Copyright (c) 2009-2021 jMonkeyEngine
* 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 co... | 1,825 |
841 | <filename>security/resteasy-crypto/src/test/resources/decrypt_smime.py
from M2Crypto import BIO, SMIME, X509
s = SMIME.SMIME()
s.load_key('mycert-private.pem', 'mycert.pem')
p7, data = SMIME.smime_load_pkcs7('smime.txt')
out = s.decrypt(p7)
print out | 113 |
453 | <filename>kernel/kernel/syscall/sysfuncs.h<gh_stars>100-1000
#ifndef SYSFUNCS_H
#define SYSFUNCS_H
#include "syscall.h"
#include <kernel/multitasking/tasks/task.h>
#include <kernel/util/vfs/fs.h>
#include <kernel/util/amc/amc.h>
#include <kernel/util/adi/adi.h>
//installs common syscalls into syscall table
void creat... | 938 |
1,031 | <reponame>execomrt/newton-dynamics
/////////////////////////////////////////////////////////////////////////////
// Name: pyTextures.h
// Purpose:
// Author: <NAME>
// Modified by:
// Created: 22/05/2010 08:02:08
// RCS-ID:
// Copyright: Copyright (c) <2010> <Newton Game Dynamics>
// Licen... | 361 |
764 | {"symbol": "ECO","address": "0x081271acDa8Ef14047a35cD5f2A66544E51d431b","overview":{"en": ""},"email": "","website": "https://www.ecocoin.com/","state": "NORMAL","links": {"blog": "https://www.ecocoin.com/news","twitter": "https://twitter.com/TheECOcoin","telegram": "","github": ""}} | 112 |
1,438 | <filename>src/FluentMigrator.DotNet.Cli/Properties/launchSettings.json<gh_stars>1000+
{
"profiles": {
"FluentMigrator.DotNet.Cli": {
"commandName": "Project",
"commandLineArgs": "migrate -p sql -c conn -a asd -a qwe"
}
}
} | 112 |
12,278 | #ifndef LZ4_HELPERS
#define LZ4_HELPERS
#include "lz4frame.h"
LZ4F_frameInfo_t FUZZ_randomFrameInfo(uint32_t* seed);
LZ4F_preferences_t FUZZ_randomPreferences(uint32_t* seed);
size_t FUZZ_decompressFrame(void* dst, const size_t dstCapacity,
const void* src, const size_t srcSize);
#endif... | 169 |
669 | import numpy as np
import onnx
from onnx import AttributeProto, GraphProto, OperatorSetIdProto, TensorProto, helper, numpy_helper
X = helper.make_tensor_value_info("input", TensorProto.FLOAT, ["batch", "seqlen", 128])
unsqueezed_masked_lm_positions = helper.make_tensor_value_info(
"unsqueezed_masked_lm_positions",... | 909 |
477 | <filename>goatools/cli/gosubdag_plot.py
"""Command-line script to create GO term diagrams
Usage:
go_plot.py [GO ...] [options]
go_plot.py [GO ...] [--obo=<file.obo>] [--outfile=<file.png>] [--title=<title>]
[--go_file=<file.txt>]
[--relationship]
[--relationships=<part_of>]
... | 7,897 |
372 | <gh_stars>100-1000
#include <stdio.h>
#include <syslog.h>
int main()
{
openlog("stress-test", 0, LOG_DAEMON);
int i = 0;
for(i = 0; i<10000; i++)
{
syslog(LOG_WARNING, "stress message %d", i);
}
return 0;
}
| 103 |
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 Data
{... | 478 |
482 | // License: BSD 3 Clause
// Copyright (C) 2010, Google Inc. All rights reserved.
// Copyright (C) 2015+, The LabSound Authors. All rights reserved.
#ifndef AudioParam_h
#define AudioParam_h
#include "LabSound/core/AudioContext.h"
#include "LabSound/core/AudioParamTimeline.h"
#include "LabSound/core/AudioSummingJuncti... | 1,358 |
5,937 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//------------------------------------------------------------------
//
//
// Abstract:
//
// The classes is ... | 1,532 |
311 | package datadog.trace.bootstrap.instrumentation.ci;
import datadog.trace.bootstrap.instrumentation.ci.git.CommitInfo;
import datadog.trace.bootstrap.instrumentation.ci.git.GitInfo;
import datadog.trace.bootstrap.instrumentation.ci.git.PersonInfo;
class BitriseInfo extends CIProviderInfo {
public static final Strin... | 1,061 |
671 | <reponame>ztang4/tzqhexapod<filename>texts.py
APP_TITLE = "Mithi's Hexapod Robot Simulator"
URL_KOFI = "https://ko-fi.com/minimithi"
URL_REPO = "https://github.com/mithi/hexapod-robot-simulator"
URL_IMG_LANDING = "https://mithi.github.io/robotics-blog/v2-hexapod-1.gif"
KINEMATICS_PAGE_PATH = "/kinematics"
IK_PAGE_PAT... | 266 |
511 | ////////////////////////////////////////////////////////////////////
//
// Copyright 2019 Samsung Electronics 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
//
// ht... | 274 |
1,523 | // 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... | 663 |
1,846 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import numpy as np
import unittest
from numpy.random import normal, multivariate_normal, binomial
from sklearn.exceptions import DataConversionWarning
from sklearn.linear_model import LinearRegression
from sklearn.pipeline im... | 4,048 |
1,603 | <gh_stars>1000+
package com.linkedin.gms.factory.search;
import com.linkedin.gms.factory.common.IndexConventionFactory;
import com.linkedin.gms.factory.common.RestHighLevelClientFactory;
import com.linkedin.gms.factory.spring.YamlPropertySourceFactory;
import com.linkedin.metadata.search.elasticsearch.indexbuilder.ESI... | 625 |
1,998 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from botbuilder.core import MessageFactory
from botbuilder.dialogs import (
WaterfallDialog,
DialogTurnResult,
WaterfallStepContext,
ComponentDialog,
)
from botbuilder.dialogs.prompts import PromptOptions, Tex... | 1,431 |
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.
#include "chrome/browser/ui/webui/settings/chromeos/device_name_handler.h"
#include <memory>
#include <string>
#include "ash/constants/ash_features.h"
#... | 2,835 |
9,953 | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.internet._pollingfile}.
"""
from twisted.python.runtime import platform
from twisted.trial.unittest import TestCase
if platform.isWindows():
from twisted.internet import _pollingfile
else:
_pollingfile = None
c... | 495 |
399 | <gh_stars>100-1000
/*
* Copyright (C) 2006-2013 Bitronix Software (http://www.bitronix.be)
*
* 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.... | 893 |
1,194 | package ca.uhn.fhir.rest.server.interceptor;
/*
* #%L
* HAPI FHIR - Server Framework
* %%
* Copyright (C) 2014 - 2022 Smile CDR, 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 ... | 5,151 |
311 | package io.quarkiverse.rabbitmqclient;
import java.util.Properties;
import org.junit.jupiter.api.Assertions;
import com.rabbitmq.client.ConnectionFactoryConfigurator;
import io.quarkus.runtime.TlsConfig;
public abstract class RabbitMQConfigTest {
protected void assertRabbitMQConfig(RabbitMQClientConfig config... | 2,823 |
348 | <gh_stars>100-1000
{"nom":"Marcillac-Vallon","circ":"1ère circonscription","dpt":"Aveyron","inscrits":1295,"abs":615,"votants":680,"blancs":51,"nuls":19,"exp":610,"res":[{"nuance":"REM","nom":"<NAME>","voix":418},{"nuance":"LR","nom":"<NAME>","voix":192}]} | 101 |
1,144 | package de.metas.handlingunits.inventory;
import de.metas.document.DocBaseAndSubType;
import de.metas.document.DocTypeId;
import de.metas.document.DocTypeQuery;
import de.metas.document.IDocTypeDAO;
import de.metas.document.engine.IDocument;
import de.metas.document.engine.IDocumentBL;
import de.metas.handlingunits.Hu... | 3,678 |
402 | <filename>research/active_learning/archive/plot_active.py
import numpy as np
import matplotlib.pyplot as plt
names = ['Confidence','Entropy','Informative Diverse','K-center','Margin','Margin Cluster Mean','Random']
colors= ['blue','red','green','yellow','red','purple','black']
data = np.loadtxt("all_processed.data",de... | 414 |
730 | //
// REAppStoreController+Private.h
// Retriever
//
// Created by cyan on 1/29/17.
// Copyright © 2017 cyan. All rights reserved.
//
#import "REAppStoreController.h"
@class HOCodeView;
@class SFSafariViewController;
typedef NS_ENUM(NSInteger, AESegmentType) {
AESegmentTypeAffiliate = 0,
AESegmentTy... | 305 |
416 | package org.simpleflatmapper.map.property;
import org.simpleflatmapper.reflect.Setter;
import org.simpleflatmapper.util.TypeHelper;
import java.lang.reflect.Type;
public class SetterProperty {
private final Setter<?, ?> setter;
private final Type targetType;
private final Type propertyType;
public... | 515 |
679 | <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 license... | 1,508 |
1,760 | <gh_stars>1000+
//if you have any questions, you can pm me on codeforces (username: golions)
#include <bits/stdc++.h>
using namespace std;
#define MAXN 10005
struct State{
int v; //vertex
long long w; //current distance
};
//custom comparator for State
... | 1,515 |
679 | <filename>main/cui/source/inc/hlmarkwn.hxx
/**************************************************************
*
* 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 own... | 1,270 |
2,406 | <reponame>pazamelin/openvino<gh_stars>1000+
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <ie_blob.h>
#include <inference_engine.hpp>
#define COUNT_OF(A) (sizeof(A) / sizeof(A[0]))
const char kSplitSequence[] = {'F', 'U', 'Z', 'Z', '_', 'N', 'E', 'X', 'T', '_', 'F', ... | 694 |
746 | <gh_stars>100-1000
package org.protege.editor.owl.ui.frame.objectproperty;
import org.protege.editor.owl.OWLEditorKit;
import org.protege.editor.owl.ui.editor.OWLObjectEditor;
import org.protege.editor.owl.ui.frame.AbstractOWLFrameSectionRow;
import org.protege.editor.owl.ui.frame.OWLFrameSection;
import org.semanticw... | 672 |
765 | #include <vector>
int main(int argc, char **argv) {
std::vector<int> a = {3, 1, 2};
return 0; // Set break point at this line.
}
| 53 |
769 | <reponame>Thales-RISC-V/pulpino-compliant-debug<gh_stars>100-1000
/* NIST Secure Hash Algorithm */
/* heavily modified by <NAME> <EMAIL> */
/* from <NAME>'s implementation as found in */
/* Applied Cryptography by <NAME> */
/* NIST's proposed modification to SHA of 7/11/94 may be */
/* activated by defining USE_MODIFI... | 2,052 |
985 | package com.taobao.metamorphosis.example.spring;
import com.taobao.metamorphosis.client.extension.spring.DefaultMessageListener;
import com.taobao.metamorphosis.client.extension.spring.MetaqMessage;
import com.taobao.metamorphosis.example.spring.messages.Trade;
/**
* Process trade messages listener.
*
* @author ... | 195 |
3,301 | package com.alibaba.alink.operator.common.tree.parallelcart.booster;
import com.alibaba.alink.operator.common.linear.unarylossfunc.UnaryLossFunc;
import com.alibaba.alink.operator.common.tree.parallelcart.BoostingObjs;
import com.alibaba.alink.operator.common.tree.parallelcart.data.Slice;
public class HessionBaseBoos... | 484 |
8,120 | <gh_stars>1000+
import gym
import string
from gym.spaces import prng
from universe.vncdriver import constants
from universe.spaces import vnc_event
class VNCActionSpace(gym.Space):
"""The space of VNC actions.
You can submit a list of KeyEvents or PointerEvents. KeyEvents
correspond to pressing or relea... | 1,391 |
634 | <filename>modules/base/vcs-impl/src/main/java/com/intellij/openapi/vcs/impl/VcsDirectoryMappingStorage.java
/*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the... | 538 |
2,080 | <filename>src/postgres/src/bin/scripts/common.h<gh_stars>1000+
/*
* common.h
* Common support routines for bin/scripts/
*
* Copyright (c) 2003-2018, PostgreSQL Global Development Group
*
* src/bin/scripts/common.h
*/
#ifndef COMMON_H
#define COMMON_H
#include "common/username.h"
#include "libpq-fe.h"
#include ... | 646 |
356 | package com.elbbbird.android.socialsdk.model;
import java.io.Serializable;
/**
* 社交平台信息
* Created by zhanghailong-ms on 2015/11/13.
*/
public class SocialInfo implements Serializable {
private boolean debugMode = false;
private String wechatAppId = "";
private String weChatAppSecret = "";
private ... | 1,287 |
2,494 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0... | 1,247 |
23,439 | <gh_stars>1000+
/*
* Copyright 1999-2020 Alibaba Group Holding 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 req... | 867 |
349 | <filename>ask-sdk-local-debug/src/com/amazon/ask/localdebug/constants/Constants.java
package com.amazon.ask.localdebug.constants;
/**
* Class for constants.
*/
public final class Constants {
/**
* Private constructor.
*/
private Constants() {
}
// Constants for user provided arguments.
... | 691 |
940 | <reponame>rkazak/formulae.brew.sh
{
"token": "<PASSWORD>",
"full_token": "<PASSWORD>",
"tap": "homebrew/cask",
"name": [
"Stems"
],
"desc": "Split an audio file into individual tracks",
"homepage": "https://stems.app/",
"url": "https://stems-electron-releases.s3.us-east-1.amazonaws.com/Stems-0.0.1.d... | 435 |
1,056 | <filename>ide/dlight.nativeexecution/test/unit/src/org/netbeans/modules/nativeexecution/test/DummyKeyringProvider.java<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
... | 669 |
416 | <gh_stars>100-1000
//
// AUViewController.h
// Framework: CoreAudioKit
//
// Copyright © 2015 Apple Inc. All rights reserved.
//
#import <AudioUnit/AudioUnit.h>
#import <Foundation/NSExtensionRequestHandling.h>
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
typedef UIViewController AUViewControllerBase;
#else
#import... | 365 |
2,542 | <reponame>gridgentoo/ServiceFabricAzure
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------------------------------------------------... | 184 |
323 | <gh_stars>100-1000
/*
* Copyright (c) 2011 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify,... | 3,179 |
407 | package com.alibaba.tesla.authproxy.service.ao;
import com.alibaba.tesla.authproxy.model.RolePermissionRelDO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserPermissionGetResultAO {
... | 392 |
364 | <filename>hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/BaseComboParamsR4Test.java
package ca.uhn.fhir.jpa.dao.r4;
import ca.uhn.fhir.interceptor.api.HookParams;
import ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster;
import ca.uhn.fhir.interceptor.api.Pointcut;
import ca.uhn.fhir.jpa.api.config.Da... | 1,347 |
1,481 | <gh_stars>1000+
package apoc.periodic;
import org.neo4j.common.DependencyResolver;
import org.neo4j.internal.helpers.collection.Iterators;
import org.neo4j.kernel.api.exceptions.Status;
import org.neo4j.kernel.impl.api.KernelTransactions;
import org.neo4j.kernel.internal.GraphDatabaseAPI;
import org.neo4j.test.rule.Db... | 962 |
854 | __________________________________________________________________________________________________
sample 16 ms submission
class Solution:
def isSameTree(self, p: TreeNode, q: TreeNode) -> bool:
if not p and not q: return True
if not (p and q): return False
if p.val == q.val and self.isSameT... | 525 |
358 | <filename>ds_utils/colaboratory_utils.py
# Utils for Google Colaboratory (https://colab.research.google.com)
# Install the PyDrive wrapper & import libraries.
# This only needs to be done once per notebook.
#!pip install -U -q PyDrive
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
from googl... | 959 |
663 | <filename>solr/tests/test_check.py
# (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
import pytest
from datadog_checks.base.stubs.aggregator import AggregatorStub
from datadog_checks.dev.jmx import JVM_E2E_METRICS_NEW
from datadog_checks.dev.utils import get_... | 290 |
475 | [
{
"outputFile": "handlebars/error.js",
"inputFile": "handlebars/error.hbs",
"includeInProject": true,
"minify": { }
}
] | 62 |
1,958 | <gh_stars>1000+
package com.freetymekiyan.algorithms.level.medium;
import org.testng.Assert;
import org.testng.annotations.Test;
public class ImplementTrieTest {
@Test
public void testInsert() {
ImplementTrie.Trie trie = new ImplementTrie.Trie();
trie.insert(null);
trie.insert("key");... | 824 |
376 | #pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Programmable Peripheral Interconnect
namespace PpiChen{ ///<Channel enable register
using Addr = Register::Address<0x4001f500,0x00000000,0x00000000,unsigned>;
///Enable or disable channel 0
enum class Ch0Val {
... | 72,471 |
3,182 | <filename>test-manual/src/main/java/de/plushnikov/builder/BuilderRename.java<gh_stars>1000+
package de.plushnikov.builder;
import lombok.Builder;
@Builder
public class BuilderRename {
private String name;
public static void main(String[] args) {
BuilderRename test = BuilderRename.builder().name("Test").build... | 124 |
665 | <reponame>dsp-testing/isis<filename>core/metamodel/src/test/java/org/apache/isis/core/metamodel/facets/object/mixin/MixinFacetAbstract_Test.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additiona... | 787 |
2,835 | """Docstring in public module."""
# import unittest
import os
import sys
import mock
from mock import Mock, patch
from tornado.httpclient import AsyncHTTPClient
# from tornado.options import options
from tornado.testing import AsyncHTTPTestCase
APP_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."... | 705 |
2,863 | <gh_stars>1000+
# Copyright 2019 The dm_control 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 la... | 3,549 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"<NAME>","circ":"2ème circonscription","dpt":"Charente","inscrits":282,"abs":143,"votants":139,"blancs":16,"nuls":0,"exp":123,"res":[{"nuance":"REM","nom":"<NAME>","voix":67},{"nuance":"LR","nom":"<NAME>","voix":56}]} | 108 |
455 | <reponame>amit-git/karyon
package netflix.karyon.transport.http.health;
import io.netty.buffer.ByteBuf;
import io.netty.handler.codec.http.HttpResponseStatus;
import io.reactivex.netty.protocol.http.server.HttpServerRequest;
import io.reactivex.netty.protocol.http.server.HttpServerResponse;
import io.reactivex.netty.p... | 435 |
2,757 | /******************************************************************************
* Copyright 2018 Google
* 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/licens... | 1,058 |
416 | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... | 12,405 |
1,085 | package org.conscrypt.testing;
import javax.net.ssl.SNIMatcher;
import javax.net.ssl.SNIServerName;
public class FailingSniMatcher extends SNIMatcher {
private FailingSniMatcher() {
super(0);
}
@Override
public boolean matches(SNIServerName sniServerName) {
return false;
}
pu... | 160 |
416 | /*
File: AVAudioFormat.h
Framework: AVFoundation
Copyright (c) 2014-2015 Apple Inc. All Rights Reserved.
*/
#import <AVFAudio/AVAudioTypes.h>
#import <AVFAudio/AVAudioChannelLayout.h>
#if __has_include(<CoreMedia/CMFormatDescription.h>)
#define AVAUDIOFORMAT_HAVE_CMFORMATDESCRIPTION 1
#import <CoreMedia/CMForma... | 2,592 |
1,262 | /*
*
* Copyright 2017 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 ap... | 3,028 |
777 | <reponame>google-ar/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.
#ifndef CC_BLIMP_SYNCED_PROPERTY_REMOTE_H_
#define CC_BLIMP_SYNCED_PROPERTY_REMOTE_H_
#include "cc/base/synced_property.h"
... | 1,610 |
956 | # This file is part of Scapy
# Copyright (C) 2007, 2008, 2009 <NAME>
# 2015, 2016, 2017 <NAME>
# This program is published under a GPLv2 license
"""
The _TLSAutomaton class provides methods common to both TLS client and server.
"""
import struct
from scapy.automaton import Automaton
from scapy.config i... | 4,226 |
6,034 | package cn.iocoder.mall.order.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
*
* 订单评论 query
*
*/
@Data
@Accessors(chain = true)
public class OrderCommentPageDTO implements Serializable {
/**
* 商品 sku id
*/
private Integer productSkuId;
... | 204 |
2,068 | package com.base.entity;
/**
* Created by baixiaokang on 16/5/5.
*/
public class CreatedResult {
public String createdAt;
public String objectId;
public String url;
}
| 63 |
3,609 | <reponame>peppingdore/tracy<gh_stars>1000+
#ifndef __TRACY__THREADCOMPRESS_HPP__
#define __TRACY__THREADCOMPRESS_HPP__
#include <assert.h>
#include <stdint.h>
#include "../common/TracyForceInline.hpp"
#include "tracy_robin_hood.h"
#include "TracyVector.hpp"
namespace tracy
{
class FileRead;
class FileWrite;
class ... | 603 |
376 | // Copyright (C) 2020 <NAME>
// This file is part of the "Nazara Engine - Core module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Core/ModuleBase.hpp>
#include <Nazara/Core/Log.hpp>
#include <Nazara/Core/Debug.hpp>
namespace Nz
{
template<typename T>
ModuleBase<T>... | 477 |
4,756 | <gh_stars>1000+
// Copyright 2020 The MACE Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... | 5,196 |
1,795 | #!/usr/bin/python
# coding=utf-8
##########################################################################
from test import CollectorTestCase
from test import get_collector_config
from test import unittest
from mock import Mock
from mock import patch
from diamond.collector import Collector
from nfacct import Netfilt... | 779 |
703 | <reponame>fengjixuchui/libpeconv<gh_stars>100-1000
#include "peconv/imports_loader.h"
#include <iostream>
using namespace peconv;
class FillImportThunks : public ImportThunksCallback
{
public:
FillImportThunks(BYTE* _modulePtr, size_t _moduleSize, t_function_resolver* func_resolver)
: ImportThunksCallbac... | 4,532 |
834 | // This MFC Samples source code demonstrates using MFC Microsoft Office Fluent User Interface
// (the "Fluent UI") and is provided only as referential material to supplement the
// Microsoft Foundation Classes Reference and related electronic documentation
// included with the MFC C++ library software.
// License ... | 415 |
1,314 | package cn.dreampie.common.http;
/**
* Created by wangrenhui on 15/1/10.
*/
public class HttpMethod {
public static final String GET = "GET";
public static final String POST = "POST";
public static final String PUT = "PUT";
public static final String DELETE = "DELETE";
//jdk7- not support
public static f... | 227 |
445 | <reponame>simnalamburt/ruby-packer
/**********************************************************************
regexec.c - Onigmo (Oniguruma-mod) (regular expression library)
**********************************************************************/
/*-
* Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
... | 60,132 |
571 | package me.devsaki.hentoid.widget;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.PagerSnapHelper;
import androidx.recyclerview.widget.RecyclerView;
import static java.lang.Math.abs;
/**
* Manages page snapping for a RecyclerView
*/
public final class PageSnapWidget {
private final Sn... | 727 |
854 | <gh_stars>100-1000
__________________________________________________________________________________________________
sample 4 ms submission
class Solution {
public:
string shortestPalindrome(string s)
{
int n = s.size();
int i = 0;
for (int j = n - 1; j >= 0; j--) {
if (s[i] == s[j])
... | 892 |
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 "chrome/browser/extensions/chrome_kiosk_delegate.h"
namespace extensions {
ChromeKioskDelegate::ChromeKioskDelegate() {}
ChromeKioskDelegate::... | 150 |
972 | <reponame>brianpetro/ai<gh_stars>100-1000
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/util/internal/testdata/anys.proto
#ifndef PROTOBUF_google_2fprotobuf_2futil_2finternal_2ftestdata_2fanys_2eproto__INCLUDED
#define PROTOBUF_google_2fprotobuf_2futil_2finternal_2ftestdata_2fa... | 36,851 |
634 | /*
* Copyright 2000-2013 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1,005 |
2,512 | <filename>tests/test_meter_build.py
# 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.
import logging
import unittest
from parameterized import parameterized
from utils import ROOT_LOSS_CONFIGS... | 327 |
348 | <filename>docs/data/leg-t2/061/06101463.json
{"nom":"<NAME>","circ":"1ère circonscription","dpt":"Orne","inscrits":1262,"abs":714,"votants":548,"blancs":30,"nuls":11,"exp":507,"res":[{"nuance":"SOC","nom":"<NAME>","voix":286},{"nuance":"DVD","nom":"<NAME>","voix":221}]} | 110 |
852 | <reponame>ckamtsikis/cmssw<filename>Alignment/CocoaFit/interface/MatrixMeschach.h
// COCOA class header file
//Id: MatrixMeschach.h
//CAT: Model
//
// Class for matrices
//
// History: v1.0
// <NAME>
#ifndef _ALIMATRIX_HH
#define _ALIMATRIX_HH
#include "Alignment/CocoaUtilities/interface/CocoaGlo... | 1,011 |
2,270 | <reponame>kzantow-audio/JUCE
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2020 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
By using JU... | 2,035 |
5,169 | {
"name": "TaurusXAd_Mobrain_AdMob",
"version": "7.67.0.0",
"summary": "Mobrain-AdMob Adapters for mediating through TaurusX Ads.",
"homepage": "https://github.com/webeyemob/TaurusXAds_iOS_Pub",
"license": {
"type": "MIT",
"file": "TaurusXAd_Mobrain_AdMob_7.67.0.0/LICENSE"
},
"authors": "TaurusXAd... | 285 |
491 | <filename>modules/rtp_rtcp/source/fec_private_tables_bursty.h
/*
* Copyright (c) 2012 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 rig... | 6,957 |
680 | <reponame>AlexChrisF/udacity
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless re... | 524 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.