max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
825 | <reponame>didi/Hummer<gh_stars>100-1000
package com.didi.hummer.component.text;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Paint;
import android.graphics.Typeface;
import android.os.Build;
... | 5,474 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-58pg-75f2-3jxj",
"modified": "2021-12-04T00:01:15Z",
"published": "2021-12-03T00:00:28Z",
"aliases": [
"CVE-2021-23258"
],
"details": "Authenticated users with Administrator or Developer roles may execute OS comm... | 383 |
1,100 | import java.io.*;
import java.net.*;
import java.util.Date;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.scene.Scene;
import javafx.scene.control.TextArea;
import javafx.scene.control.ScrollPane;
import javafx.stage.Stage;
public class Exercise31_04Server extends Application... | 780 |
5,547 | /*----------------------------------------------------------------------------
* Tencent is pleased to support the open source community by making TencentOS
* available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* If you have downloaded a copy of the TencentOS binary from Tenc... | 944 |
454 | <reponame>zwkjhx/vertx-zero<filename>vertx-pin/zero-rbac/src/main/java/io/vertx/tp/error/_401CodeExpiredException.java
package io.vertx.tp.error;
import io.vertx.core.http.HttpStatusCode;
import io.vertx.up.exception.WebException;
public class _401CodeExpiredException extends WebException {
public _401CodeExpire... | 312 |
688 | <filename>hyperparameter_hunter/data/datasets.py<gh_stars>100-1000
##################################################
# Import Own Assets
##################################################
from hyperparameter_hunter.data.data_core import BaseDataset, NullDataChunk
from hyperparameter_hunter.data.data_chunks.input_chunk... | 625 |
1,456 | <reponame>t-imamichi/qiskit-core
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# A... | 7,287 |
4,857 | <reponame>gvprathyusha6/hbase
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Versi... | 2,911 |
453 | <reponame>The0x539/wasp<gh_stars>100-1000
#include <math.h>
#include "headers/fmax.h"
double fmax(double x, double y)
{
return _fmax(x, y);
}
| 70 |
359 | #include "thcrap.h"
#include "server.h"
#include "download_url.h"
DownloadUrl::DownloadUrl(Server& server, std::string url)
: server(server), url(server.getUrl() + url)
{}
DownloadUrl::DownloadUrl(const DownloadUrl& src)
: server(src.server), url(src.url)
{}
Server& DownloadUrl::getServer() const
{
retur... | 152 |
789 | <filename>qbit/core/src/main/java/io/advantageous/qbit/http/client/HttpClientTimeoutException.java
package io.advantageous.qbit.http.client;
/**
* If an HTTP Client has a time out, it can throw this exception.
* created by rhightower on 4/30/15.
*/
public class HttpClientTimeoutException extends HttpClientException... | 281 |
1,652 | package com.ctrip.xpipe.redis.core.protocal.protocal;
import com.ctrip.xpipe.redis.core.protocal.RedisClientProtocol;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author wenchao.meng
*
* 2016年3月24日 下午6:31:56
*/
public class LongP... | 567 |
670 | <gh_stars>100-1000
package com.uddernetworks.mspaint.gui;
import javafx.scene.layout.Pane;
import java.io.IOException;
public interface SettingItem {
Pane getPane() throws IOException;
String getFile();
@Override
String toString();
}
| 93 |
636 | package org.hyperledger.indy.sdk.ledger;
import org.hyperledger.indy.sdk.did.Did;
import org.hyperledger.indy.sdk.did.DidResults;
import org.json.JSONObject;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Timeout;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.TimeUn... | 1,041 |
312 | <reponame>cnmade/wfrest<filename>test/multi_part_test.cc
#include <string>
#include <cstring>
#include <iostream>
std::string trim_pairs(const std::string& str, const char* pairs) {
const char* s = str.c_str();
const char* e = str.c_str() + str.size() - 1;
const char* p = pairs;
bool is_pair = false;
... | 495 |
2,308 | /**
* Copyright 2016 vip.com.
* <p>
* 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 w... | 1,846 |
643 | # These are defined so that we can evaluate the test code.
NONSOURCE = "not a source"
SOURCE = "source"
def is_source(x):
return x == "source" or x == b"source" or x == 42 or x == 42.0 or x == 42j
def SINK(x):
if is_source(x):
print("OK")
else:
print("Unexpected flow", x)
def SINK_F(x)... | 331 |
312 | <reponame>wfrest/wfrest
#include "workflow/WFFacilities.h"
#include <csignal>
#include "wfrest/HttpServer.h"
using namespace wfrest;
static WFFacilities::WaitGroup wait_group(1);
void sig_handler(int signo)
{
wait_group.done();
}
void Factorial(int n, HttpResp *resp)
{
unsigned long long factorial = 1;
... | 434 |
2,138 | <gh_stars>1000+
package org.jeecgframework.jwt.util;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.ExpiredJwtException;
import io.jsonwebtoken.Jws;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import io.jsonwebtoken.SignatureException;
import org.jeecgframework.jwt.def.JwtConstants;... | 794 |
485 | package io.indexr.vlt.segment.index;
import com.google.common.base.Preconditions;
import org.apache.spark.unsafe.types.UTF8String;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import io.indexr.data.C... | 8,219 |
393 | <filename>OtrosLogViewer-app/src/main/java/pl/otros/logview/logging/GuiAppender.java
/*
* Copyright 2012 <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... | 1,172 |
3,269 | <gh_stars>1000+
// Time: O(m + n)
// Space: O(1)
class Solution {
public:
int countNegatives(vector<vector<int>>& grid) {
int result = 0, c = grid[0].size() - 1;
for (const auto& row : grid) {
while (c >= 0 && row[c] < 0) {
--c;
}
result += grid[... | 206 |
883 | <gh_stars>100-1000
{
"plugin-data":
{
"name": "Contatore visite",
"description": "Mostra il numero di visite o di visitatori unici nella barra laterale del tuo sito."
}
} | 72 |
602 | <reponame>CorfuDB/CORFU<filename>test/src/test/java/org/corfudb/runtime/view/stream/OpaqueStreamTest.java
package org.corfudb.runtime.view.stream;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.corfudb.protocols.service.CorfuProtocolLogReplication.extractOpaqueEntries;
import stati... | 2,521 |
5,813 | /*
* 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,603 |
348 | <gh_stars>100-1000
{"nom":"Louresse-Rochemenier","circ":"4ème circonscription","dpt":"Maine-et-Loire","inscrits":584,"abs":285,"votants":299,"blancs":10,"nuls":3,"exp":286,"res":[{"nuance":"REM","nom":"M<NAME>","voix":101},{"nuance":"UDI","nom":"M. <NAME>","voix":64},{"nuance":"FN","nom":"<NAME>","voix":38},{"nuance":"... | 311 |
1,590 | <reponame>libc16/azure-rest-api-specs<filename>specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-02-01/examples/GenerateCertificate.json
{
"parameters": {
"api-version": "2021-02-01",
"subscriptionId": "<KEY>",
"resourceGroupName": "GroupForEdgeAutomation",
"deviceName": "te... | 259 |
310 | <filename>gear/software/g/galliumos.json
{
"name": "GalliumOS",
"description": "A lightweight Linux distro for ChromeOS devices.",
"url": "https://galliumos.org/"
}
| 59 |
11,024 | <reponame>PierreZ/foundationdb
/*
* BackupToDBCorrectness.actor.cpp
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except ... | 13,444 |
995 | package zemberek.core.embeddings;
public class SupervisedModel extends Model {
SupervisedModel(Model model, int seed) {
super(model, seed);
}
}
| 50 |
337 | package foo; // we use package 'foo'
// imports:
import java.util.ArrayList; // we need ArrayList
// let's declare a class:
class A /* just a sample name*/ implements Runnable /* let's implement Runnable */ {
void foo /* again a sample name */(int p /* parameter p */, char c /* parameter c */) {
// let's ... | 285 |
1,338 | <filename>src/apps/webpositive/DownloadProgressView.h
/*
* Copyright (C) 2010 <NAME> <<EMAIL>>
*
* All rights reserved. Distributed under the terms of the MIT License.
*/
#ifndef DOWNLOAD_PROGRESS_VIEW_H
#define DOWNLOAD_PROGRESS_VIEW_H
#include <GroupView.h>
#include <Path.h>
#include <String.h>
class BEntry;
c... | 919 |
1,894 | <filename>experimental/benchmark_health_report/sheet_writer.py
# 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.
from __future__ import absolute_import
from benchmark_health_report import drive_api
import si... | 2,500 |
348 | <filename>docs/data/leg-t1/090/09001053.json
{"nom":"Grandvillars","circ":"1ère circonscription","dpt":"Territoire de Belfort","inscrits":1955,"abs":928,"votants":1027,"blancs":9,"nuls":9,"exp":1009,"res":[{"nuance":"SOC","nom":"<NAME>","voix":401},{"nuance":"FN","nom":"<NAME>","voix":191},{"nuance":"MDM","nom":"<NAME>... | 273 |
427 | // Test __sanitizer_reset_coverage().
// RUN: %clangxx_asan -fsanitize-coverage=func %s -o %t
// RUN: %env_asan_opts=coverage=1 %run %t
// https://github.com/google/sanitizers/issues/618
// UNSUPPORTED: android
#include <sanitizer/coverage_interface.h>
#include <stdio.h>
#include <assert.h>
static volatile int sink;... | 823 |
3,083 | <filename>debug/client/conns/WindowsSocket.cpp
// Copyright 2011-2016 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/lice... | 1,789 |
327 | <filename>extlibs/examples/de/fhpotsdam/unfolding/examples/marker/advanced/centroid/CentroidLabelMarker.java
package de.fhpotsdam.unfolding.examples.marker.advanced.centroid;
import java.util.HashMap;
import java.util.List;
import processing.core.PGraphics;
import de.fhpotsdam.unfolding.UnfoldingMap;
import de.fhpots... | 571 |
343 | [
{
"url": "https://hexdocs.pm/elixir/Enumerable.html",
"description": "The Enumerable protocol"
},
{
"url": "https://hexdocs.pm/elixir/Stream.html",
"description": "The Stream module"
}
]
| 86 |
348 | {"nom":"Jassans-Riottier","circ":"2ème circonscription","dpt":"Ain","inscrits":4223,"abs":2188,"votants":2035,"blancs":37,"nuls":10,"exp":1988,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":712},{"nuance":"FN","nom":"Mme <NAME>","voix":400},{"nuance":"LR","nom":"M. <NAME>","voix":360},{"nuance":"FI","nom":"Mme <NAME>... | 247 |
1,724 | <filename>bson/src/main/org/bson/BSONCallback.java
/*
* Copyright 2008-present MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENS... | 3,022 |
562 | <reponame>armandomeeuwenoord/freight
from .manager import ProviderManager
from .pipeline import PipelineProvider
from .shell import ShellProvider
manager = ProviderManager()
manager.add("pipeline", PipelineProvider)
manager.add("shell", ShellProvider)
get = manager.get
| 75 |
1,603 | <filename>datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/analytics/resolver/GetHighlightsResolver.java
package com.linkedin.datahub.graphql.analytics.resolver;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.linkedin.datahub.graphql.analytics.s... | 2,037 |
372 | <gh_stars>100-1000
/*
*
* (c) Copyright 1989 OPEN SOFTWARE FOUNDATION, INC.
* (c) Copyright 1989 HEWLETT-PACKARD COMPANY
* (c) Copyright 1989 DIGITAL EQUIPMENT CORPORATION
* To anyone who acknowledges that this file is provided "AS IS"
* without any express or implied warranty:
* permission to us... | 1,071 |
486 | <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 "... | 835 |
12,278 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#pragma once
namespace folly {
template <typename T>
con... | 430 |
1,237 | from io import StringIO
import sys
import threading
from http.server import BaseHTTPRequestHandler, HTTPServer
###From https://github.com/bmc/grizzled-python/blob/bf9998bd0f6497d1e368610f439f9085d019bf76/grizzled/io/__init__.py
# ---------------------------------------------------------------------------
# Imports
# -... | 1,224 |
491 | <gh_stars>100-1000
from .Site import Site
from .Paste import Paste
from bs4 import BeautifulSoup
from . import helper
from time import sleep
from settings import SLEEP_PASTIE
from twitter import TwitterError
import logging
class PastiePaste(Paste):
def __init__(self, id):
self.id = id
self.headers... | 720 |
1,894 | <gh_stars>1000+
# -*- coding: utf-8 -*-
# Copyright 2019 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
... | 1,098 |
14,668 | <reponame>zealoussnow/chromium
// 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.
#ifndef COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_STORE_PREFETCH_STORE_SCHEMA_H_
#define COMPONENTS_OFFLINE_PAGES_CORE_PREFETC... | 441 |
473 | /*
*
Copyright 2015, Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | 1,955 |
2,111 | <filename>cv/src/LKFlow.cpp<gh_stars>1000+
#include "ygz/LKFlow.h"
#include "ygz/Align.h"
#include "ygz/Feature.h"
#include "ygz/MapPoint.h"
#include <opencv2/video/video.hpp>
#include <opencv2/calib3d/calib3d.hpp>
namespace ygz {
int LKFlow(
const shared_ptr<Frame> ref,
const shared_ptr<... | 8,135 |
14,668 | // 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 "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h"
#include "content/common/pepper_renderer_instance_data.h"
#include "content... | 2,716 |
7,137 | package io.onedev.server.maintenance;
import java.util.List;
import javax.annotation.Nullable;
import io.onedev.server.model.support.administration.BackupSetting;
import io.onedev.server.util.init.ManualConfig;
public interface DataManager {
List<ManualConfig> init();
void scheduleBackup(@Nullable BackupSettin... | 110 |
1,031 | /* -----------------------------------------------------------------------------
* This file is part of SWIG, which is licensed as a whole under version 3
* (or any later version) of the GNU General Public License. Some additional
* terms also apply to certain portions of SWIG. The full details of the SWIG
* lice... | 492 |
3,358 | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2010 StatPro Italia srl
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it ... | 1,366 |
310 | package org.seasar.doma.internal.apt.processor.domain;
import org.seasar.doma.Domain;
@Domain(valueType = OfEnumDomain.JobType.class, factoryMethod = "of", acceptNull = true)
public class OfEnumDomain {
private final JobType jobType;
private OfEnumDomain(JobType jobType) {
this.jobType = jobType;
}
pub... | 176 |
348 | <gh_stars>100-1000
{"nom":"Saint-Laurent-Chabreuges","dpt":"Haute-Loire","inscrits":213,"abs":33,"votants":180,"blancs":17,"nuls":8,"exp":155,"res":[{"panneau":"1","voix":116},{"panneau":"2","voix":39}]} | 86 |
2,023 | <filename>recipes/Python/413086_Gibbs_Sampler/recipe-413086.py
#Author: <NAME>
from math import *
from RandomArray import *
from matplotlib.pylab import *
n=10000
rho=.99 #correlation
#Means
m1 = 10
m2 = 20
#Standard deviations
s1 = 1
s2 = 1
#Initialize vectors
x=zeros(n, Float)
y=zeros(n, Float)
sd=sqrt(1-rho**2)
... | 293 |
1,466 | <filename>java/main/com/facebook/profilo/logger/LoggerWorkerThread.java
/**
* Copyright 2004-present, Facebook, Inc.
*
* <p>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
*
* <p>http://www.a... | 945 |
573 | // Copyright 2015, VIXL authors
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions ... | 162,691 |
313 | /*
* Copyright 2018 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 863 |
438 | # 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 torch
from bitsandbytes.optim.optimizer import Optimizer1State
torch.optim.Adagrad
class Adagrad(Optimizer1State):
def __init... | 1,383 |
15,179 | from jina import Executor, requests
from jina.optimizers.parameters import IntegerParameter
class DummyCrafter(Executor):
DEFAULT_OPTIMIZATION_PARAMETER = [
IntegerParameter(
executor_name='DummyCrafter',
parameter_name='param1',
low=0,
high=1,
... | 729 |
4,515 | <reponame>xielutian/listen
# coding=utf8
import logging
from handlers.base import BaseHandler
from replay import get_provider_list
logger = logging.getLogger('listenone.' + __name__)
class SearchHandler(BaseHandler):
def get(self):
source = self.get_argument('source', '0')
keywords = self.get_a... | 327 |
467 | package com.yoyiyi.soleil.mvp.presenter.search;
import com.yoyiyi.soleil.base.BaseSubscriber;
import com.yoyiyi.soleil.base.RxPresenter;
import com.yoyiyi.soleil.bean.search.Up;
import com.yoyiyi.soleil.mvp.contract.search.UpContract;
import com.yoyiyi.soleil.network.helper.RetrofitHelper;
import com.yoyiyi.soleil.rx... | 632 |
370 | <gh_stars>100-1000
"""
P300 Decoding
===============================
This example runs a set of machine learning algorithms on the P300 cats/dogs
dataset, and compares them in terms of classification performance.
The data used is exactly the same as in the P300 `load_and_visualize` example.
"""
##################... | 1,586 |
405 | <filename>convlab/modules/word_policy/multiwoz/larl/latent_dialog/corpora.py<gh_stars>100-1000
from __future__ import unicode_literals
import numpy as np
from collections import Counter
from convlab.modules.word_policy.multiwoz.larl.latent_dialog.utils import Pack
import json
from nltk.tokenize import WordPunctTokenize... | 8,740 |
403 | import sys
sys.path += ['../']
import os
import torch
from data.msmarco_data import GetTrainingDataProcessingFn, GetTripletTrainingDataProcessingFn, \
GetQuadrapuletTrainingDataProcessingFn, GetGroupedTrainingDataProcessingFn_polling,GetGroupedTrainingDataProcessingFn_origin
from utils.util import (
getattr_rec... | 15,679 |
7,892 | <gh_stars>1000+
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
/*
Vamp
An API for audio analysis and feature extraction plugins.
Centre for Digital Music, Queen Mary, University of London.
Copyright 2006 <NAME>.
Permission is hereby granted, free of charge, to a... | 2,905 |
1,047 | <reponame>davidjsherman/repo2docker
"""
Test if the subdirectory is correctly navigated to
"""
import os
import escapism
import pytest
from repo2docker.app import Repo2Docker
TEST_REPO = "https://github.com/binderhub-ci-repos/repo2docker-subdir-support"
def test_subdir(run_repo2docker):
# Build from a subdirec... | 445 |
1,144 | /** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.util.Properties;
/** Generated Model for C_PaySelectionLine
* @author Adempiere (generated)
*/
@SuppressWarnings("javadoc")
public class X_C_PaySelectionLine extends org.compiere.... | 6,299 |
424 | package com.j256.ormlite.field.types;
import static org.junit.Assert.assertEquals;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.GregorianCalendar;
import org.junit.Test;
import com.j256.ormlite.dao.Dao;
import com.j256.orml... | 1,021 |
458 | // Copyright 2015-2021 Swim Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 567 |
357 | <gh_stars>100-1000
/*
* Copyright © 2012-2015 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the “License”); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 541 |
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.
#include "chrome/browser/ash/printing/automatic_usb_printer_configurer.h"
#include <string>
#include <utility>
#include "base/bind.h"
#include "base/log... | 1,760 |
1,585 | package com.example.wechat01.widght.swipe.interfaces;
public interface SwipeAdapterInterface {
public int getSwipeLayoutResourceId(int position);
}
| 45 |
6,181 | import renderdoc as rd
import rdtest
class D3D12_List_Types(rdtest.TestCase):
demos_test_name = 'D3D12_List_Types'
def check_capture(self):
action = self.find_action("Draw")
self.controller.SetFrameEvent(action.eventId, False)
self.check_triangle(out=action.outputs[0], fore=[0.0, 1.... | 780 |
372 | /*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | 5,105 |
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.
package org.chromium.chrome.browser.childaccounts;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyLong;
im... | 1,702 |
811 | {
"description": "Selectors - Syntax and parsing (css3-modsel-154)",
"selectors": {
"p": "css3-modsel-154.expected0.html"
},
"src": "css3-modsel-154.src.html"
} | 74 |
852 | import FWCore.ParameterSet.Config as cms
from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
process = cms.Process("SIPIXELDQM")
process.load("Geometry.TrackerSimData.trackerSimGeometryXML_cfi")
process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
process.load("Geometry.TrackerNumberingBuilder.... | 1,858 |
301 | <reponame>PavelMovchan/SwipeTransition<filename>Sources/Automation/AutoSwipeToDismiss/UINavigationController+AutoSwipeToDismiss.h
//
// UINavigationController+AutoSwipeToDismiss.h
// AutoSwipeToDismiss
//
// Created by <NAME> on 20171224.
// Copyright © 2017年 tattn. All rights reserved.
//
#import <UIKit/UIKit.h>
... | 178 |
312 | //-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... | 1,772 |
11,356 |
// (C) Copyright <NAME> 2011-2015
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#if !defined(BOOST_VMD_DETAIL_SEQUENCE_COMMON_HPP)
#define BOOST_VMD_DETAIL_SEQUENCE_COMMON... | 14,396 |
1,140 | from uuid import uuid4
import pytest
from pluggy import HookimplMarker
from flaskbb.core.changesets import ChangeSetPostProcessor, ChangeSetValidator
from flaskbb.core.exceptions import (PersistenceError, StopValidation,
ValidationError)
from flaskbb.core.user.update import Passwo... | 1,243 |
1,144 | /*
* #%L
* de.metas.business.rest-api-impl
* %%
* Copyright (C) 2021 metas GmbH
* %%
* 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 optio... | 2,531 |
14,668 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGL_WEBGL_UNOWNED_TEXTURE_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGL_WEBGL_UNOWNED_TEXTURE_H_
#incl... | 548 |
1,425 | /*
* 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 ... | 4,908 |
1,441 | <filename>ch3/cs/UVa00441.py<gh_stars>1000+
def main():
first = True
while True:
x = list(map(int, input().split()))
k = x[0]
if k is 0:
break
if first:
first = False
else:
print('')
for a in range(1, k-4):
for b in... | 410 |
1,144 | <gh_stars>1000+
#ifndef _XT_IPCOMP_H
#define _XT_IPCOMP_H
#include <linux/types.h>
struct xt_ipcomp {
__u32 spis[2]; /* Security Parameter Index */
__u8 invflags; /* Inverse flags */
__u8 hdrres; /* Test of the Reserved Filed */
};
/* Values for "invflags" field in struct xt_ipcomp. */
#define XT_IPCOMP_INV_SPI 0... | 190 |
487 | from suzieq.sqobjects.basicobj import SqObject
from suzieq.utils import convert_macaddr_format_to_colon
class ArpndObj(SqObject):
def __init__(self, **kwargs):
super().__init__(table='arpnd', **kwargs)
self._valid_get_args = ['namespace', 'hostname', 'ipAddress',
'... | 213 |
711 | package com.java110.community.api;
import com.alibaba.fastjson.JSONObject;
import com.java110.community.bmo.car.IQueryCar;
import com.java110.utils.util.Assert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.... | 309 |
9,782 | <filename>presto-hive/src/main/java/com/facebook/presto/hive/HadoopDirectoryLister.java
/*
* 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.... | 999 |
348 | {"nom":"Lantan","circ":"3ème circonscription","dpt":"Cher","inscrits":92,"abs":39,"votants":53,"blancs":7,"nuls":2,"exp":44,"res":[{"nuance":"REM","nom":"<NAME>","voix":32},{"nuance":"SOC","nom":"M. <NAME>","voix":12}]} | 91 |
390 | # -*- coding: utf-8 -*-
#
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import os
import pandas as pd
import torch
from dgllife.data import UnlabeledSMILES
from dgllife.utils import mol_to_bigraph
from functools import partial
from torch.utils.d... | 2,275 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
import co... | 781 |
575 | <filename>components/viz/service/display/display_resource_provider_software.h
// 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.
#ifndef COMPONENTS_VIZ_SERVICE_DISPLAY_DISPLAY_RESOURCE_PROVIDER_SOFTWARE_H_... | 910 |
14,668 | <reponame>zealoussnow/chromium<filename>sandbox/linux/syscall_broker/broker_command.h<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 SANDBOX_LINUX_SYSCALL_BROKER_BROKER_COMMAND_H... | 1,934 |
340 | <reponame>definitelyNotFBI/utt
// Copyright 2020 VMware, all rights reserved
#pragma once
#include "client.h"
#include "sliver.hpp"
#include "storage/db_interface.h"
#include <cstdlib>
#include <exception>
#include <iterator>
#include <string>
#include <unordered_map>
namespace concord {
namespace storage {
namespa... | 799 |
956 | <reponame>ajitkhaparde/trex-core
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2018-2019 NXP
*/
#ifndef _GPI_H_
#define _GPI_H_
/* Generic Packet Interface:The generic packet interface block interfaces
* to block like ethernet, Host interfac and covert data into WSP internal
* structures
*/
#define GPI_V... | 997 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.