max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
3,976 | from PIL import Image
import os
from os.path import join
#iPhone 5 display resolution
i5size = (1136, 640)
def change_size(picdir):
for root, dirs, files in os.walk(picdir):
for name in files:
filename = join(root, name)
print filename
change_picsize(filename)
... | 373 |
634 | /*
* 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 License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 674 |
19,438 | /*
* Copyright (c) 2021, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/NonnullPtrVector.h>
#include <AK/RefPtr.h>
#include <AK/WeakPtr.h>
#include <DevTools/HackStudio/ProjectTemplate.h>
#include <LibCore/FileWatcher.h>
#include <LibGUI/Model.h>
namespace HackStudio {
c... | 462 |
1,603 | <filename>metadata-io/src/main/java/com/linkedin/metadata/timeline/data/PatchOperation.java
package com.linkedin.metadata.timeline.data;
import lombok.Builder;
import lombok.Value;
@Value
@Builder
public class PatchOperation {
String op;
String path;
String value;
}
| 91 |
320 | <filename>aliyun-spring-boot-starters/aliyun-rds-spring-boot-starter/src/main/java/com/alibaba/cloud/spring/boot/rds/actuate/endpoint/RdsPerformanceEndpoint.java
/*
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file e... | 2,179 |
1,334 | <gh_stars>1000+
# Generated by Django 2.1.7 on 2019-02-18 07:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("common", "0010_apisettings"),
]
operations = [
migrations.AlterField(
model_name="apisettings",
name... | 185 |
1,909 | /*
* Copyright 2008-2014 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1,488 |
337 | package com.brucetoo.listvideoplay.videomanage.playermessages;
import com.brucetoo.listvideoplay.videomanage.PlayerMessageState;
import com.brucetoo.listvideoplay.videomanage.manager.VideoPlayerManagerCallback;
import com.brucetoo.listvideoplay.videomanage.ui.VideoPlayerView;
/**
* This is generic PlayerMessage for... | 267 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Hum",
"definitions": [
"Make a low, steady continuous sound like that of a bee.",
"Sing with closed lips.",
"(of a place) be filled with a low, steady continuous sound.",
"Be in a state of great activity.",
"Smell unpleasant."
... | 148 |
1,733 | /* setenforce.c - Set the current SELinux mode
*
* Copyright 2014 The Android Open Source Project
USE_SETENFORCE(NEWTOY(setenforce, "<1>1", TOYFLAG_USR|TOYFLAG_SBIN))
config SETENFORCE
bool "setenforce"
default y
depends on TOYBOX_SELINUX
help
usage: setenforce [enforcing|permissive|1|0]
Sets wheth... | 329 |
1,124 | #include "sorting.h"
void interop_sort(int numbers[], size_t size)
{
int* start = &numbers[0];
int* end = &numbers[0] + size;
std::sort(start, end, [](int x, int y) { return x > y; });
} | 87 |
442 | <filename>extlibs/vili/src/node.cpp<gh_stars>100-1000
#include <iostream>
#include <iterator>
#include <vili/node.hpp>
#include <vili/utils.hpp>
std::string indent(const std::string& text)
{
return vili::utils::string::replace(text, "\n", "\n ");
}
namespace vili
{
node_iterator::node_iterator(array::itera... | 10,697 |
5,119 | #include "common.h"
namespace bpftrace {
namespace test {
namespace codegen {
TEST(codegen, call_uptr)
{
test("k:f { @=*uptr((int16*) arg0 ); }", std::string(NAME) + "_1");
test("k:f { @=*uptr((int32*) arg0 ); }", std::string(NAME) + "_2");
}
} // namespace codegen
} // namespace test
} // namespace bpftrace
| 129 |
780 | <filename>statics/src/main/java/com/codeborne/selenide/junit5/BrowserPerTestStrategyExtension.java<gh_stars>100-1000
package com.codeborne.selenide.junit5;
import org.junit.jupiter.api.extension.AfterEachCallback;
import org.junit.jupiter.api.extension.ExtensionContext;
import javax.annotation.ParametersAreNonnullByD... | 327 |
654 | <gh_stars>100-1000
package com.hannesdorfmann.swipeback.interpolator;
import android.view.animation.Interpolator;
/**
* Interpolator which, when drawn from 0 to 1, looks like half a sine-wave. Used for smoother opening/closing when
* peeking at the drawer.
*/
public class SinusoidalInterpolator implements Interpol... | 169 |
3,657 | <reponame>lipawisc/LoganSquare
package com.bluelinelabs.logansquare.processor.model;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;
@JsonObject
public class SimpleGenericStringModel extends SimpleGenericModel<String> {
@JsonField
public St... | 118 |
9,516 | import dgl
import unittest
import backend as F
from dgl.dataloading import AsyncTransferer
@unittest.skipIf(F._default_context_str == 'cpu',
reason="CPU transfer not allowed")
def test_async_transferer_to_other():
cpu_ones = F.ones([100,75,25], dtype=F.int32, ctx=F.cpu())
tran = AsyncTransfer... | 442 |
337 | <filename>manga_py/cli/_args_debug.py
import argparse
import platform
import pkg_resources
from ..meta import version
from ._requirements import requirements
requires = []
def package_version(name: str) -> str:
try:
pkg = __import__(name)
return pkg.__version__
except ImportError:
tr... | 1,944 |
4,645 | import unittest
from ..iorw import load_notebook_node
from ..exceptions import PapermillMissingParameterException
from ..parameterize import parameterize_notebook, parameterize_path, add_builtin_parameters
from . import get_notebook_path
from datetime import datetime
class TestNotebookParametrizing(unittest.TestCase... | 3,301 |
1,379 | # Copyright (c) 2021 PaddlePaddle 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 appli... | 2,956 |
656 | """
These are Pytest hooks that are necessary to ensure that no build artifacts are
leftover from previous runs.
"""
import pathlib, nimporter_cli
def pytest_sessionstart(session):
nimporter_cli.clean(pathlib.Path())
| 66 |
5,325 | <gh_stars>1000+
from .model import SegmentationModel
from .modules import (
Conv2dReLU,
Attention,
)
from .heads import (
SegmentationHead,
ClassificationHead,
) | 66 |
764 | <filename>erc20/0x49184E6dAe8C8ecD89d8Bdc1B950c597b8167c90.json
{"symbol": "LIBERTAS","address": "0x49184E6dAe8C8ecD89d8Bdc1B950c597b8167c90","overview":{"en": ""},"email": "<EMAIL>","website": "https://libertas.network/","state": "NORMAL","links": {"blog": "","twitter": "https://twitter.com/TheRealLibertas","telegram"... | 173 |
700 | <reponame>vkleen/skidl
# -*- coding: utf-8 -*-
# The MIT License (MIT) - Copyright (c) 2016-2021 <NAME>.
"""
Command-line program to convert a netlist into an equivalent SKiDL program.
"""
from __future__ import ( # isort:skip
absolute_import,
division,
print_function,
unicode_literals,
)
import ar... | 1,548 |
2,151 | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkImageGeneratorCG.h"
#include "SkPixmapPriv.h"
#ifdef SK_BUILD_FOR_MAC
#include <ApplicationServices/ApplicationServices.h>
#endif
#ifdef SK_BUILD_FOR_IOS
#includ... | 2,004 |
376 | <filename>build/php7/ice/image/gd.zep.h
extern zend_class_entry *ice_image_gd_ce;
ZEPHIR_INIT_CLASS(Ice_Image_Gd);
PHP_METHOD(Ice_Image_Gd, __construct);
PHP_METHOD(Ice_Image_Gd, check);
PHP_METHOD(Ice_Image_Gd, __destruct);
PHP_METHOD(Ice_Image_Gd, loadImage);
PHP_METHOD(Ice_Image_Gd, doResize);
PHP_METHOD(Ice_Imag... | 4,748 |
325 |
#include <catch.hpp>
#include <iostream>
#include <thread>
#include "utility/NewHeaderDependency.hpp"
#include "Globals.hpp"
#include "WaitForReload.hpp"
TEST_CASE("Adding new header dependency in runtime", "[common]")
{
int v1 = 52;
int v2 = 65;
int sum = v1 + v2;
int mul = v1 * v2;
REQUIRE(newH... | 303 |
2,739 | <filename>wal_e/worker/swift/swift_deleter.py<gh_stars>1000+
from swiftclient.exceptions import ClientException
from wal_e import retries
from wal_e.worker.base import _Deleter
class Deleter(_Deleter):
def __init__(self, swift_conn, container):
super(Deleter, self).__init__()
self.swift_conn = sw... | 408 |
2,212 | /*
* Copyright 2015 The AppAuth for Android 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 requi... | 1,506 |
9,782 | <gh_stars>1000+
/*
* 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, softw... | 2,051 |
349 | <reponame>zzh-python/music-wangyiyun<gh_stars>100-1000
# coding=utf-8
import base64
from cryptography.hazmat.primitives.ciphers import (
Cipher, algorithms, modes
)
from cryptography.hazmat.backends import default_backend
def aes(text, sec_key):
backend = default_backend()
pad = 16 - len(text) % 16
... | 272 |
648 | {"resourceType":"DataElement","id":"PlanDefinition.action.definition","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/PlanDefinition.action.definition","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"id":"PlanDefinition.action.definition","p... | 252 |
435 | {
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "Wouldn't it be cool if there was a way to play and interact with matrices in code like a mathematician can do on paper? What is so cool about that is, that instead of working with matrices as rectangles of numbers like a com... | 782 |
3,189 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
@import Foundation;
@class NSArray, NSBundle, NSDictionary, NSString, SimRuntimePairingReuirements;
@interface SimRuntime : NSObject
{
unsigned int _version;
unsigned int _equiv... | 1,432 |
2,406 | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "vpu/utils/error.hpp"
#include "ngraph/opsets/opset5.hpp"
#include "vpu/ngraph/transformations/extract_dynamic_batch/slice_mat_mul.hpp"
namespace vpu {
SliceConfiguration sliceMatMul(const ngraph::Node& node) {
VPU_TH... | 1,251 |
568 | <gh_stars>100-1000
package com.novoda.magicmirror.modules.twitter;
import android.os.Handler;
import android.os.Looper;
import com.novoda.magicmirror.modules.twitter.TwitterModule.TwitterListener;
import java.util.concurrent.TimeUnit;
import twitter4j.Status;
class TweetsFlowRegulator {
private static final l... | 815 |
4,879 | package com.mapswithme.maps.widget.placepage;
import android.content.Context;
import android.content.Intent;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import com.mapswithme.maps.base.BaseToolbarActivity;
import com.mapswithme.util.statistics.Statistics;
public class PlaceDescriptionA... | 373 |
2,645 | /*
* Copyright 2020-2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 2,178 |
476 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 1,592 |
403 | <reponame>jxd134/easeagent<filename>plugins/healthy/src/test/java/com/megaease/easeagent/plugin/healthy/OnApplicationEventInterceptorTest.java
/*
* Copyright (c) 2021, MegaEase
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complianc... | 716 |
825 | <filename>android/hummer-core/src/main/java/com/didi/hummer/core/engine/napi/jni/JSException.java<gh_stars>100-1000
package com.didi.hummer.core.engine.napi.jni;
import android.util.LongSparseArray;
import com.didi.hummer.core.engine.JSContext;
import com.didi.hummer.core.exception.ExceptionCallback;
import java.uti... | 1,194 |
1,056 | <reponame>timfel/netbeans
/*
* 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.... | 3,339 |
1,034 | /*
* Copyright 2013, <NAME>.
* Copyright 2013, <NAME>.
* Copyright 2016 <NAME>
* Copyright 2019-2020 <NAME>
* SPDX-License-Identifier: BSL-1.0
*
* OpenHMD - Free and Open Source API and drivers for immersive technology.
*/
/* Oculus Rift S Driver Internal Interface */
#ifndef RIFT_S_HMD_H
#define RIFT_S_HMD_H
... | 454 |
389 | <filename>src/CommunityToolkit.Maui.SourceGenerators/Properties/launchSettings.json
{
"profiles": {
"CommunityToolkit.Maui.SourceGenerators": {
"commandName": "DebugRoslynComponent",
"targetProject": "..\\CommunityToolkit.Maui.UnitTests\\CommunityToolkit.Maui.UnitTests.csproj"
}
}
} | 118 |
369 | // Copyright (c) 2017-2021, Mudit<NAME>. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "NullTransform.hpp"
using ::audio::transcode::NullTransform;
auto NullTransform::transform(const Span &span, const Span &transformSpace) const -> Span
{
return span;
}
auto ... | 259 |
640 |
void Yes() { }
void No() { }
void eq_int_c(_Float16 a) {
if ( a == 1 ) Yes();
else No();
}
void eq_long_c(_Float16 a) {
if ( a == 1L ) Yes();
else No();
}
void eq_double_c(_Float16 a) {
if ( a == 1.0 ) Yes();
else No();
}
void eq_float16_c(_Float16 a) {
if ( a == 1.0f16 ) Yes();
else No();
}
void eq_int_cr(_... | 1,073 |
422 | <reponame>asharma13524/sample-programs<filename>archive/p/python/baklava.py
for i in range(0, 10, 1):
print((" " * (10 - i)) + ("*" * (i * 2 + 1)))
for i in range(10, -1, -1):
print((" " * (10 - i)) + ("*" * (i * 2 + 1)))
| 109 |
685 | #pragma once
#include <Fs/Filesystem.h>
#include <List.h>
namespace fs {
class FsVolume;
namespace VolumeManager {
enum {
VolumeErrorNone,
VolumeErrorMisc,
VolumeErrorNotDevice, // File is not a device
VolumeErrorInvalidFilesystem, // No filesystem for device
VolumeErrorVolumeNotFound, ... | 277 |
2,989 | package com.linkedin.databus.client.pub;
/*
*
* Copyright 2013 LinkedIn Corp. 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/... | 425 |
2,132 | <gh_stars>1000+
// Targeted by JavaCPP version 1.5.7-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.depthai;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.openblas.global.openblas_nola... | 1,396 |
3,976 | # -*- coding: UTF-8 -*-
# !/usr/bin/python
from flask.ext.wtf import Form
from wtforms import StringField, TextAreaField, BooleanField, SelectField,SubmitField
from wtforms.validators import Required
class PostForm(Form):
body = TextAreaField("说点什么吧!",validators=[Required()])
submit = SubmitField('提交')
| 115 |
2,094 | ////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: Optimizer_test.h (optimization_test)
// Authors: <NAME>
//
///////////////////////////////////////////////////////////////////////////////////////////////... | 2,895 |
3,453 | <gh_stars>1000+
import ipywidgets as widgets
from IPython import get_ipython
class PrinterX:
def __init__(self):
self.w = w=widgets.HTML()
def show(self):
return self.w
def write(self,s):
self.w.value = s
print("Running from within ipython?", get_ipython() is not None)
p=PrinterX()... | 149 |
2,519 | // This file is made available under Elastic License 2.0.
// This file is based on code available under the Apache license here:
// https://github.com/apache/incubator-doris/blob/master/fe/fe-core/src/main/java/org/apache/doris/catalog/ArrayType.java
// Licensed to the Apache Software Foundation (ASF) under one
// o... | 1,484 |
780 | <gh_stars>100-1000
package com.codeborne.selenide.impl;
import javax.annotation.CheckReturnValue;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.Arrays;
import java.util.Optional;
public class Arguments {
private final Object[] args;
public Arguments(@Nullable Object[] args) ... | 402 |
3,442 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty 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.or... | 1,005 |
11,356 | // (C) Copyright <NAME> 2003.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/config for the most recent version.
#ifndef BOOST_ABI_TEST_HP... | 398 |
5,169 | {
"name": "TaskEnginer",
"version": "0.0.5",
"summary": "TaskEnginer is a split complex task into simple tasks",
"description": "TaskEnginer is a split complex task into simple tasks.",
"homepage": "http://www.scorplot.com",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"arui... | 243 |
3,710 | <gh_stars>1000+
#pragma once
#ifndef TIIO_SGI_INCLUDED
#define TIIO_SGI_INCLUDED
#include "tiio.h"
//#include "timage_io.h"
#include "tproperty.h"
#include <QCoreApplication>
namespace Tiio {
Tiio::ReaderMaker makeSgiReader;
Tiio::WriterMaker makeSgiWriter;
class SgiWriterProperties final : public TPropertyGroup {... | 211 |
13,162 | #pragma once
#include <b1/rodeos/wasm_ql.hpp>
namespace b1::rodeos::wasm_ql {
struct http_config {
uint32_t num_threads = {};
uint32_t max_request_size = {};
uint64_t idle_timeout_ms = {};
std::string allow_origin = {};
std::string static_dir = {};
std::string address ... | 326 |
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.
#ifndef SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_COORDINATION_UNIT_MOJOM_TRAITS_H_
#define SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_COORDINATION_UNIT_MOJO... | 640 |
716 | <filename>exhibitor-core/src/main/java/com/netflix/exhibitor/core/index/IndexList.java
/*
* Copyright 2012 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
*
* ... | 794 |
1,460 | <reponame>boomt1337/nitroshare-desktop<gh_stars>1000+
/*
* The MIT License (MIT)
*
* Copyright (c) 2018 <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, in... | 750 |
348 | <filename>bin/automated_detection_testing/ci/attack_range_for_testing/helpers/attack_range_controller.py
from shutil import which
import secrets
import string
import os
import logging
import sys
import time
from helpers import aws_service
# Logger
logging.basicConfig(level=os.environ.get("LOGLEVEL", "INFO"))
LOGGER ... | 1,160 |
3,100 | /******************************************************************************
*
* Project: Multi-resolution Seamless Image Database (MrSID)
* Purpose: Read/write LizardTech's MrSID file format - Version 4+ SDK.
* Author: <NAME>, <EMAIL>
*
*********************************************************************... | 65,480 |
1,145 | <reponame>boralv/chatterino2
#pragma once
#include <QDialog>
namespace chatterino {
class SelectChannelFiltersDialog : public QDialog
{
public:
SelectChannelFiltersDialog(const QList<QUuid> &previousSelection,
QWidget *parent = nullptr);
const QList<QUuid> &getSelection() cons... | 161 |
5,169 | {
"name": "Ololo",
"platforms": {
"ios": "9.0"
},
"summary": "Testing ololo",
"requires_arc": true,
"version": "11",
"license": "Apache 2.0",
"authors": {
"<NAME>": "<EMAIL>"
},
"frameworks": [
"UIKit",
"WebKit",
"SafariServices",
"CoreLocation",
"CoreMotion"
],
"home... | 281 |
505 | package de.rieckpil.blog;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
public class ApplicationUserInitializer implements CommandLineRunner {
private final ApplicationU... | 267 |
1,179 | <gh_stars>1000+
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2019, Theobroma Systems Design und Consulting GmbH
*/
#include <common.h>
#include <io.h>
#include <kernel/panic.h>
#include <mm/core_memprot.h>
#include <platform.h>
#include <platform_config.h>
#define FIREWALL_DDR_FW_DDR_RGN(i) ((i) * 0x... | 645 |
372 | <gh_stars>100-1000
/*
* Copyright © BeyondTrust Software 2004 - 2019
* 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/L... | 2,296 |
2,151 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "base/values.h"
#include "content/public/test/test_browser_thread_bundle.h"
#inc... | 2,843 |
4,822 | <gh_stars>1000+
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE... | 2,384 |
2,535 | import numpy as np
from opensfm import geometry
def test_rotaction_from_ptr_v2():
ptr = 0.1, 0.2, 0.3
rotation = geometry.rotation_from_ptr(*ptr)
assert np.allclose(ptr, geometry.ptr_from_rotation(rotation))
def test_rotaction_from_ptr_v2():
ptr = 0.1, 0.2, 0.3
rotation = geometry.rotation_from_... | 259 |
454 | {
"properties": {
"connectionParameters": {
"api_key": {
"type": "securestring",
"uiDefinition": {
"displayName": "API Key",
"description": "Get an API Key from HrFlow.ai",
"tooltip": "Provide your API Key - learn more https://developers.hrflow.ai/getting-starte... | 300 |
1,398 | #include "rpc_server.h"
#include "rpc_thread_factory.h"
#include "rpc_handler_registry.h"
using namespace ::apache::thrift;
using namespace ::apache::thrift::protocol;
using namespace ::apache::thrift::transport;
using namespace ::apache::thrift::server;
using namespace ::apache::thrift::concurrency;
using boost::sha... | 7,877 |
423 | // {{{ MIT License
// Copyright 2017 <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, merge, p... | 1,276 |
2,112 | <reponame>laohubuzaijia/fbthrift<gh_stars>1000+
/*
* Copyright (c) Facebook, Inc. and 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/lice... | 2,061 |
563 | package com.gentics.mesh.search.index.tagfamily;
import static com.gentics.mesh.search.index.MappingHelper.KEYWORD;
import static com.gentics.mesh.search.index.MappingHelper.NAME_KEY;
import static com.gentics.mesh.search.index.MappingHelper.OBJECT;
import static com.gentics.mesh.search.index.MappingHelper.notAnalyzed... | 468 |
6,215 | /*
* Copyright (c) 2021 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.integrations.source.postgres;
import com.fasterxml.jackson.databind.JsonNode;
import java.util.Properties;
public class PostgresCdcProperties {
static Properties getDebeziumProperties(final JsonNode config) {
final Properties ... | 286 |
1,702 | <reponame>mhalbritter/spring-native
/*
* Copyright 2019-2021 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
*
* https://www.apache.org/licenses/LI... | 662 |
410 | {
"index": "What is considered the theme?",
"breakpoints": "Breakpoints",
"colors": "Colors",
"space": "Space",
"generator": "Generator"
} | 53 |
5,169 | <filename>Specs/TomDoeTestLibrary/0.1.2/TomDoeTestLibrary.podspec.json
{
"name": "TomDoeTestLibrary",
"version": "0.1.2",
"summary": "A simple framework that does absolutly nothing.",
"description": "This is just an attempt of creating a cocoapod. It does nothing and never will. Don't waist your time here",
"... | 312 |
494 | /*******************************************************************************
* Copyright 2018 Netflix
*
* 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... | 4,833 |
743 | {
"DATA_SOURCE_QUICKCONNECT" : {
"NAME" : "QuickConnect"
},
"QUICKCONNECT" : {
"ACTION_CONNECT" : "Connecta’t",
"ERROR_INVALID_URI" : "Especificació URI no vàlida",
"ERROR_NO_HOST" : "No s'ha especificat l'amfitrió",
"ERROR_NO_PROTOCOL"... | 283 |
2,338 | <reponame>mkinsner/llvm
//===- ForceFunctionAttrs.cpp - Force function attrs for debugging --------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---... | 1,410 |
458 | <reponame>freebird-airlines/WhirlyGlobe
package com.mousebird.maply;
/**
* A wrapper around the Proj4 general scheme for coordinate systems.
* You set this up with a string that Proj4 recognizes and it will pass that directly through and
* use it.
*
*/
public class Proj4CoordSystem extends CoordSystem {
/**
... | 207 |
1,738 | """
Contains information about the dateutil version.
"""
VERSION_MAJOR = 2
VERSION_MINOR = 6
VERSION_PATCH = 1
VERSION_TUPLE = (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)
VERSION = '.'.join(map(str, VERSION_TUPLE))
| 83 |
26,127 | package com.chad.baserecyclerviewadapterhelper.entity;
/**
* Created by luoxiongwen on 16/10/24.
*/
public class Movie {
public String name;
public int length;
public int price;
public String content;
public Movie(String name, int length, int price, String content) {
this.length = leng... | 162 |
435 | <gh_stars>100-1000
/**
* @file sgd.h
* @brief The interface for a stochastic gradient descent solver
*
*/
#pragma once
#include "ps.h"
#include "util/producer_consumer.h"
#include "learner/proto/sgd.pb.h"
#include "system/monitor.h"
#include "system/assigner.h"
#include "data/stream_reader.h"
#include "util/loca... | 1,384 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 742 |
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... | 6,030 |
405 | {
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true,
"jquery": true
},
"globals": {
"sceditor": false
},
"rules": {
"no-bitwise": "error",
"camelcase": "error",
"curly": "error",
"eqeqeq": "error",
"guard-for-in": "error",
... | 1,090 |
359 | /*
* Copyright 2021. the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1,283 |
615 | /*
* Copyright (c) 2017-2019 superblaubeere27, <NAME>, MarcoMC
*
* 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, modi... | 814 |
348 | <filename>docs/data/leg-t2/077/07706343.json
{"nom":"Ocquerre","circ":"6ème circonscription","dpt":"Seine-et-Marne","inscrits":255,"abs":172,"votants":83,"blancs":5,"nuls":1,"exp":77,"res":[{"nuance":"LR","nom":"<NAME>","voix":51},{"nuance":"REM","nom":"<NAME>","voix":26}]} | 115 |
1,056 | <filename>ide/editor.actions/src/org/netbeans/modules/editor/actions/ShowLinesAction.java
/*
* 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 l... | 512 |
14,793 | package me.chanjar.weixin.common.service;
import me.chanjar.weixin.common.bean.WxOAuth2UserInfo;
import me.chanjar.weixin.common.bean.oauth2.WxOAuth2AccessToken;
import me.chanjar.weixin.common.error.WxErrorException;
/**
* oauth2 相关接口.
*
* @author <a href="https://github.com/binarywang"><NAME></a>
* @date 2020-0... | 1,100 |
417 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package de.janquadflieg.mrracer.opponents;
import champ2011client.Controller.Stage;
import java.awt.geom.Point2D;
import de.janquadflieg.mrracer.classification.Situation;
import de.janquadflieg.mrracer.telemetry.Sens... | 1,162 |
1,587 | package io.reflectoring.solid.isp;
class AdaptedBurgerOrder implements IAdapterOrderForBurger {
private final IOrder burgerOrder;
public AdaptedBurgerOrder(IOrder burgerOrder){
this.burgerOrder = burgerOrder;
}
@Override
public void orderBurger(int quantity) {
burgerOrder.orderBurge... | 121 |
965 | <gh_stars>100-1000
wprintf_s(L"Starting thread...\n");
// Create a thread that computes prime numbers.
ComPtr<IAsyncAction> asyncAction;
hr = threadPool->RunAsync(Callback<IWorkItemHandler>([&threadCompleted](IAsyncAction* asyncAction) -> HRESULT
{
// Print a message.
const unsigned... | 391 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.