max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
629 | <reponame>unghee/TorchCraftAI
/*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "sarsa.h"
#include "batcher.h"
#include "common/autograd.h"
#include "sampler.h"
namespace {
con... | 1,206 |
1,748 | package com.sparrowrecsys.online.util;
public class ABTest {
final static int trafficSplitNumber = 5;
final static String bucketAModel = "emb";
final static String bucketBModel = "nerualcf";
final static String defaultModel = "emb";
public static String getConfigByUserId(String userId){
... | 354 |
4,216 | /**
* @file core/data/load_vec_impl.hpp
* @author <NAME>
*
* Implementation of templatized load() function defined in load.hpp for
* vectors.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause B... | 1,705 |
716 | <filename>runtime/flang/gerror3f.c
/*
* 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
*
*/
/* clang-format off */
/* gerror3f.c - Implements LIB3F gerror subprogra... | 475 |
315 | /**
* 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"); yo... | 514 |
348 | {"nom":"Saint-Etienne-la-Geneste","dpt":"Corrèze","inscrits":84,"abs":9,"votants":75,"blancs":4,"nuls":7,"exp":64,"res":[{"panneau":"1","voix":49},{"panneau":"2","voix":15}]} | 76 |
1,825 | <reponame>thy486/unidbg<gh_stars>1000+
package com.github.unidbg.debugger.gdb;
import com.github.unidbg.Emulator;
class DetachCommand implements GdbStubCommand {
@Override
public boolean processCommand(Emulator<?> emulator, GdbStub stub, String command) {
stub.makePacketAndSend("OK");
stub.de... | 144 |
1,900 | <reponame>Goldwood1024/ehcache3<filename>transactions/src/main/java/org/ehcache/transactions/xa/internal/journal/Journal.java
/*
* Copyright Terracotta, 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 cop... | 1,052 |
10,225 | <filename>integration-tests/qute/src/main/java/io/quarkus/it/qute/Brewery.java<gh_stars>1000+
package io.quarkus.it.qute;
import javax.enterprise.event.Observes;
import javax.transaction.Transactional;
import io.quarkus.runtime.StartupEvent;
public class Brewery {
@Transactional
void onStart(@Observes Start... | 212 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.query.parser.test;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import com.yahoo.prelude.query.CompositeItem;
import com.yahoo.prelude.query.WordItem;
import com.ya... | 590 |
4,339 | /*
* 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 ... | 568 |
443 | <filename>changes/experimental/__init__.py
__author__ = 'ar'
| 22 |
4,959 | import os
from sanic import Sanic
from sanic.log import logger as log
from sanic import response
from sanic.exceptions import ServerError
app = Sanic(__name__)
@app.route("/")
async def test_async(request):
return response.json({"test": True})
@app.route("/sync", methods=['GET', 'POST'])
def test_sync(request... | 900 |
522 | <gh_stars>100-1000
package algs.model.performance.tree;
import java.util.Iterator;
import algs.model.tree.BinaryNode;
import algs.model.tree.BinaryTree;
/**
* Performance tests.
*
* @author <NAME>
*/
public class EvaluateBinaryTreeMain {
/**
* Build a left-linear tree with n nodes.
*
* This is a tot... | 1,088 |
302 | <filename>elasticsearch-sql-jdbc/src/main/java/io/github/iamazy/elasticsearch/dsl/jdbc/elastic/ElasticClientProvider.java
package io.github.iamazy.elasticsearch.dsl.jdbc.elastic;
import org.elasticsearch.client.RestHighLevelClient;
/**
* @author iamazy
* @date 2019/12/21
**/
public interface ElasticClientProvider ... | 193 |
354 | <filename>Kruskal's(MST).cpp
//weighted undirected graph
//greedy algorithm
//spanning tree which connects all vertices of graph i.e v-1 edges , no cycles , subsets of edges
//single connected edges
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
class DSU{
int *parent;
int *rank;
publi... | 900 |
1,346 | import logging
log = logging.getLogger(__name__)
def import_backend(module, name):
try:
m = __import__(module, fromlist=[name])
return getattr(m, name, None)
except ImportError, ex:
log.warn('Unable to import %r - %s', name, ex, exc_info=True)
return None
StashBackend = imp... | 177 |
1,338 | <gh_stars>1000+
/*
* Copyright 2009 Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef INFO_VIEW_H
#define INFO_VIEW_H
#include <GroupView.h>
class InfoView : public BGroupView {
public:
InfoView();
virtual ~InfoView();
};
#endif /* INFO_VIEW_H */
| 117 |
322 | /*
*
* * 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 "L... | 1,540 |
938 | <filename>src/main/resources/assets/tconstruct/book/puny_smelting/en_us/upgrades/armor/item_frame.json<gh_stars>100-1000
{
"modifier_id": "tconstruct:item_frame",
"text": [
{
"text": "Tired of holding you clock and compass? Why not wear it instead?"
}
],
"effects": [
"Adds slots to the helmet,... | 159 |
500 | /*
* Copyright 2017 The Native Object Protocols 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 app... | 4,171 |
14,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... | 500 |
1,253 | //This is for connect.java
import java.util.*;
import java.io.*;
import java.util.Map;
import java.lang.*;
class InvalidRowException extends Exception
{
public InvalidRowException()
{
}
}
class InvalidColumnException extends Exception
{
public InvalidColumnException()
{
}
}
class connectFour
{
int NONE = 0;
... | 2,656 |
382 | /*
* Copyright 2020 YANDEX LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 844 |
2,151 | /*
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 519 |
473 | <filename>src/core/imports/lapack.cpp
/*
Copyright (c) 2009-2016, <NAME>
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#include <El-lite.hpp>
... | 67,500 |
3,193 | #include <cstddef>
using f_ptr = unsigned int();
extern unsigned int regression_1000();
extern unsigned int regression_1008();
extern unsigned int regression_1067();
extern unsigned int regression_1072();
extern unsigned int regression_1087();
extern unsigned int regression_1095();
extern unsigned int regression_1096... | 376 |
5,133 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.internal.util;
import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.TypeElement;
import javax.lang.model.util... | 549 |
772 | <reponame>ryansloan/code-dot-or
{
"continue": "بەردەوام بە",
"doCode": "بكە",
"elseCode": "یان",
"endGame": "یارییەکە تەواو بکە",
"endGameTooltip": "یارییەکە تەواو دەکات.",
"flap": "بازدان",
"flapRandom": "بازدانی بڕێکی هەرەمەکی",
"flapVerySmall": "بازدانی بڕێکی زۆر کەم",
"flapSmall": "بازدانی بڕێکی ک... | 956 |
3,269 | // Time: O(max(r, c) * w)
// Space: O(w)
class Solution {
public:
bool hasPath(vector<vector<int>>& maze, vector<int>& start, vector<int>& destination) {
static const vector<vector<int>> dirs = {{-1, 0}, {0, 1}, {0, -1}, {1, 0}};
queue<node> q;
unordered_set<int> visited;
q.emplace... | 981 |
5,169 | {
"name": "DIYCamera",
"version": "1.0.0",
"summary": "custom camera",
"description": "A custom Camera Demo,",
"homepage": "https://github.com/onelibra/DIYCamera",
"license": "MIT",
"authors": {
"yangbo": "<EMAIL>"
},
"platforms": {
"ios": "5.0"
},
"source": {
"git": "https://github.co... | 307 |
5,169 | <gh_stars>1000+
{
"name": "DDCycleScrollView",
"version": "2.0.0",
"summary": "简单易用的图片无限轮播器.",
"homepage": "https://github.com/Faithlight/DDCycleScrollView.git",
"license": "MIT",
"authors": {
"Faithlight": "<EMAIL>"
},
"platforms": {
"ios": "9.0"
},
"source": {
"git": "https://github.co... | 230 |
903 | <reponame>dyzmapl/BumpTop<gh_stars>100-1000
#include "../../../src/gui/kernel/qshortcutmap_p.h"
| 45 |
410 | <filename>Source/ThirdParty/LuaCpp/ObjFunc.h
#pragma once
namespace LuaCpp {
template <int N, typename Ret, typename... Args>
class ObjFunc : public BaseFunc {
using _func_type = std::function<Ret(Args...)>;
public:
ObjFunc(lua_State *l, const std::string &name, Ret(*func)(Args...))
: ObjFunc(l, name... | 1,054 |
475 | <filename>net/src/main/java/com/zfoo/net/router/route/PacketBus.java
/*
* Copyright (C) 2020 The zfoo 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/lic... | 3,239 |
1,850 | <gh_stars>1000+
package com.alibaba.jvm.sandbox.repeater.plugin.domain;
import java.util.Map;
/**
* {@link HttpInvocation} http请求调用比较独立
* <p>
*
* @author zhaoyb1990
*/
public class HttpInvocation extends Invocation implements java.io.Serializable {
/**
* 请求的URL
*/
private String requestURL;
... | 1,180 |
1,006 | <filename>libs/libc/pthread/pthread_keydelete.c
/****************************************************************************
* libs/libc/pthread/pthread_keydelete.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this... | 483 |
1,459 | <reponame>gioannides/OpenSeq2Seq
import os
import sys
import argparse
import librosa
parser = argparse.ArgumentParser(description='Conversion parameters')
parser.add_argument("--source_dir", required=False, type=str, default="calibration/sound_files/",
help="Path to source of flac LibriSpeech files... | 757 |
583 | <reponame>dzliangjing/KSYMediaPlayer_iOS<gh_stars>100-1000
//
// VideoListShowController.h
// KSYPlayerDemo
//
// Created by devcdl on 2017/9/11.
// Copyright © 2017年 kingsoft. All rights reserved.
//
#import "BaseViewController.h"
#import "Constant.h"
@interface VideoListShowController : BaseViewController
@pro... | 150 |
575 | <gh_stars>100-1000
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/public/common/widget/visual_properties.h"
#include "base/ranges/algorithm.h"
namespace blink {
VisualPro... | 696 |
453 | /******************************************************************************
* Author: <NAME> <<EMAIL>>
*
* Copyright (C) 2014-2016 <NAME> <<EMAIL>>
*
* Licensed according to the included 'LICENSE' document
*
* This file is part of lua-lluv library.
*******************************************************************... | 1,964 |
384 | <reponame>baidu/Jprotobuf-rpc-socket
/*
* Copyright 2002-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | 4,237 |
348 | {"nom":"Preux-au-Sart","circ":"12ème circonscription","dpt":"Nord","inscrits":213,"abs":130,"votants":83,"blancs":4,"nuls":3,"exp":76,"res":[{"nuance":"REM","nom":"<NAME>","voix":53},{"nuance":"FN","nom":"<NAME>","voix":23}]} | 92 |
1,431 | /* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to Y... | 714 |
45,293 | public @interface Ann {
}
| 8 |
2,748 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "Lic... | 1,060 |
527 | // INPUT:abc
struct production
{
static constexpr auto rule = LEXY_LIT("a") / LEXY_LIT("abc") / LEXY_LIT("bc");
};
| 52 |
501 | import django.core.validators
from django.contrib.auth import get_user_model
from django.contrib.auth.backends import ModelBackend
class UserenaAuthenticationBackend(ModelBackend):
"""
Custom backend because the user must be able to supply a ``email`` or
``username`` to the login form.
"""
def au... | 708 |
4,124 | /**
* 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... | 801 |
3,372 | /*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 4,898 |
665 | //
// Copyright(c) 2015 <NAME>.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
#include "details/log_msg.h"
namespace spdlog
{
namespace details
{
class flag_formatter;
}
class formatter
{
public:
virtual ~formatter() {}
virtual void format(details::log_msg& msg) = ... | 297 |
3,227 | #ifdef BENCH
# define NDEBUG
#endif
#define CGAL_MESH_3_DEBUG_BEFORE_CONFLICTS 0
#define CGAL_MESH_3_DEBUG_AFTER_NO_INSERTION 0
#define CGAL_MESH_3_DEBUG_AFTER_INSERTION 0
#define CGAL_MESH_3_DEBUG_DOUBLE_MAP 0
// #define CGAL_MESHES_NO_OUTPUT
// #define CGAL_SURFACE_MESHER_EDGES_DEBUG_INTERSEC... | 336 |
809 | /**
* @file
* @brief Header file for AT91 LCD Controller.
*
* @date 11.10.10
* @author <NAME>
* @author <NAME>
*/
#ifndef NXT_LCD_H_
#define NXT_LCD_H_
#include <stdint.h>
#define NXT_LCD_DEPTH 8
#define NXT_LCD_WIDTH 100
#define N_CHARS 128
#define FONT_WIDTH 5
#define CELL_WIDTH ... | 395 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.azurestack.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.lo... | 734 |
1,647 | <reponame>davidbrochart/pythran
#ifndef PYTHONIC_NUMPY_BITWISE_XOR_HPP
#define PYTHONIC_NUMPY_BITWISE_XOR_HPP
#include "pythonic/include/numpy/bitwise_xor.hpp"
#include "pythonic/utils/functor.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/types/numpy_broadcast.hpp"
#include "pythonic/utils/numpy_trait... | 265 |
747 | <reponame>andreicovaliov/incubator-sedona
/*
* 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 Lic... | 1,038 |
325 | {
"data": [
{
"quote": "Music doesn’t lie. If there is something to be changed in this world, then it can only happen through music.",
"author": "<NAME>"
},
{
"quote": "When all the original blues guys are gone, you start to realize that someone has to te... | 1,503 |
472 | <gh_stars>100-1000
""" Implementation of Bubble Sort algorithm
"""
def bubble(array):
""" Bubble sort is a simple sorting algorithm that repeatedly steps
through the list to be sorted, compares each pair of adjacent items and
swaps them if they are in the wrong order. The pass through the list is
repe... | 353 |
5,169 | <filename>Specs/4/b/4/SmartPenSDK/1.0.0/SmartPenSDK.podspec.json
{
"name": "SmartPenSDK",
"version": "1.0.0",
"summary": "智能手写笔ios ipad Mac 通用SDK",
"description": "SmartPenSDK for gama games developer.SmartPenSDK for gama games developer.",
"homepage": "https://github.com/xiao0227/SmartPenSDK",
"license": {... | 348 |
409 | <gh_stars>100-1000
// Arduino.h includes our String overrides.
#include <Arduino.h>
| 29 |
326 | from .._pydp._partition_selection import (
create_truncated_geometric_partition_strategy, # type: ignore
create_laplace_partition_strategy, # type: ignore
create_gaussian_partition_strategy, # type: ignore
)
__all__ = [
"PartitionSelectionStrategy",
"create_partition_strategy",
"create_trunc... | 837 |
935 | /*
* Copyright 2019 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 applic... | 484 |
405 | <reponame>zishuimuyu/jeewx<filename>jeewx/src/main/java/weixin/guanjia/core/entity/common/ProgramButton.java
package weixin.guanjia.core.entity.common;
import weixin.guanjia.menu.entity.MenuEntity;
/**
* 小程序button
* @author taoYan
* @since 2018年3月12日
*/
public class ProgramButton extends Button{
private String t... | 448 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-jh9h-c6xc-wp2c",
"modified": "2022-05-01T23:40:04Z",
"published": "2022-05-01T23:40:04Z",
"aliases": [
"CVE-2008-1432"
],
"details": "Cross-site scripting (XSS) vulnerability in SolutionSearch.do in ManageEngine SupportCenter Plus 7.0.0 allows remote attackers ... | 378 |
777 | <gh_stars>100-1000
// 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 CONTENT_RENDERER_MOJO_THREAD_SAFE_ASSOCIATED_INTERFACE_PTR_PROVIDER_H_
#define CONTENT_RENDERER_MOJO_THREAD_SAFE_ASSOCIATED_INT... | 715 |
1,616 | import unittest
from pypika import Query, Table
from pypika.pseudocolumns import (
ColumnValue,
ObjectID,
ObjectValue,
RowID,
RowNum,
SysDate,
)
from pypika.terms import PseudoColumn
class PseudoColumnsTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
super(PseudoColu... | 686 |
3,301 | package com.alibaba.alink.operator.stream.feature.aggfunc;
import org.apache.flink.table.functions.AggregateFunction;
import com.alibaba.alink.common.sql.builtin.agg.BaseSummaryUdaf.SummaryData;
import com.alibaba.alink.common.sql.builtin.agg.CountUdaf;
import org.junit.Before;
import java.util.ArrayList;
import jav... | 441 |
575 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/webcodecs/gpu_factories_retriever.h"
#include "media/video/gpu_video_accelerator_factories.h"
#include "thir... | 757 |
316 | <gh_stars>100-1000
/************************************************************************/
/* */
/* Copyright 2007 by <NAME>, <NAME>, <NAME> */
/* */
/* This file i... | 18,330 |
890 | // Copyright (C) <2019> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
#include <string>
#include "InternalQuic.h"
using namespace v8;
// Class InternalQuicIn
Persistent<Function> InternalQuicIn::constructor;
InternalQuicIn::InternalQuicIn() {};
InternalQuicIn::~InternalQuicIn() {};
void InternalQuicIn... | 1,685 |
852 | import FWCore.ParameterSet.Config as cms
Cascade2Parameters = cms.PSet(
parameterSets = cms.vstring('CascadeSettings'),
CascadeSettings = cms.vstring('NCB = 50000 ! number of calls per iteration for bases',
'ACC1 = 1.0 ! relative precision for gr... | 1,756 |
3,603 | <reponame>WeDoSoftware/trino
/*
* 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... | 722 |
418 | <gh_stars>100-1000
/*
* Copyright (c) 2015 <NAME> (gfx).
*
* 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,259 |
1,615 | /**
* Created by MomoLuaNative.
* Copyright (c) 2020, Momo Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
//
// Created by Generator on 2020-10-16
//
#include <... | 7,515 |
777 | <reponame>google-ar/chromium<filename>content/browser/media/capture/window_activity_tracker_aura.h
// Copyright (c) 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_MEDIA_CAPTURE_WINDOW_ACTIVI... | 607 |
4,047 | #!/usr/bin/env python3
import shutil, sys
if __name__ == '__main__':
shutil.copyfile(sys.argv[1], sys.argv[2])
| 53 |
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
... | 4,362 |
857 | #ifndef __CONSOLE_DISPLAY_H__
#define __CONSOLE_DISPLAY_H__ 1
#define CONDIS_LINE_MAX_LEN (125)
#define CONDIS_MAX_HISTORY (256)
struct condis_line
{
const char *color_str;
char line[CONDIS_LINE_MAX_LEN];
};
typedef struct
{
int fd;
struct condis_line cdl[CONDIS_MAX_HISTORY]; // Ring Buffer
int entries; ... | 474 |
4,262 | <filename>components/camel-azure/camel-azure-storage-queue/src/main/java/org/apache/camel/component/azure/storage/queue/operations/QueueOperationResponse.java<gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
... | 1,147 |
656 | import multiprocessing
import os
import logging
logger = logging.getLogger('inventree')
workers = os.environ.get('INVENTREE_GUNICORN_WORKERS', None)
if workers is not None:
try:
workers = int(workers)
except ValueError:
workers = None
if workers is None:
workers = multiprocessing.cpu_co... | 164 |
1,767 | package com.annimon.stream;
import com.annimon.stream.function.*;
import com.annimon.stream.internal.Compose;
import com.annimon.stream.internal.Operators;
import com.annimon.stream.internal.Params;
import com.annimon.stream.internal.SpinedBuffer;
import com.annimon.stream.iterator.PrimitiveIndexedIterator;
import com... | 18,484 |
629 | # -*- coding: UTF-8 -*-
class Base(object):
def list(self):
raise NotImplementedError
def add(self, data):
raise NotImplementedError
def update(self, data):
raise NotImplementedError
def delete(self, data):
raise NotImplementedError
def handler(self):
rais... | 140 |
2,073 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 1,799 |
348 | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class ShinyServer(CMakePackage):
"""Shiny server lets you put shiny web applications and interac... | 834 |
719 | version https://git-lfs.github.com/spec/v1
oid sha256:a4a0a2711f5667c839fd78a78ab8a0cdb7f58c85b0cc035e3d29789edc95533e
size 34907
| 70 |
5,169 | {
"name": "CodeField",
"version": "0.1.0",
"summary": "Custom UITextField to input code.",
"description": "CodeField is custom view extends UIView. Using CodeField you can type the code like secret codes.",
"homepage": "https://github.com/brownsoo/CodeField",
"license": {
"type": "MIT",
"file": "LIC... | 256 |
571 | /*
* Copyright (c) 2021
* <NAME> <EMAIL>
* Licensed under the Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license
*/
#ifndef FR_MODEL_3D_ITEMS_TITLE_FLAG_H
#define FR_MODEL_3D_ITEMS_TITLE_FLAG_H
#include "fr_model_3d_item.h"
namespace fr::model_3d_items
{
constexpr i... | 3,538 |
651 | package com.squareup.subzero;
import org.junit.Test;
import static org.assertj.core.api.Java6Assertions.assertThat;
public class SystemShutdownTest {
@Test
public void testSystemShutdown(){
if (System.getProperty("os.name").contains("Linux")) {
try {
SystemShutdown.systemShu... | 415 |
7,158 | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | 7,574 |
314 | import fs
import logging
from django.conf import settings
from django.apps import AppConfig
logger = logging.getLogger(__name__)
class BakeryConfig(AppConfig):
name = 'bakery'
verbose_name = "Bakery"
filesystem_name = getattr(settings, 'BAKERY_FILESYSTEM', "osfs:///")
filesystem = fs.open_fs(filesyste... | 116 |
11,356 | <reponame>Bpowers4/turicreate
/* Copyright © 2017 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
#ifndef TURI_SERIALIZE_VECTOR_HPP
#define TURI_SERIALIZE_VECTOR_HPP
#i... | 1,587 |
14,668 | <filename>chrome/browser/ui/commander/fuzzy_finder.cc
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/commander/fuzzy_finder.h"
#include "base/i18n/case_conversion.h"
#inclu... | 6,590 |
422 | #pragma once
namespace vuda
{
namespace detail
{
class thrdcmdpool
{
//friend class logical_device;
public:
/*
For each thread that sets/uses the device a single command pool is created
- this pool ha... | 9,616 |
1,615 | <filename>Tests/image_tests/renderscripts/test_BSDFViewer.py
import sys
sys.path.append('..')
from falcor import *
from helpers import render_frames
exec(open('../../../Source/Mogwai/Data/BSDFViewer.py').read())
# arcade
m.loadScene('Arcade/Arcade.pyscene')
render_frames(m, 'arcade', frames=[16])
# materials
m.loadS... | 149 |
5,169 | {
"name": "EFInternetIndicator",
"version": "0.1.0",
"summary": "A little Internet status indicator.",
"description": "A little swift Internet error status indicator using ReachabilitySwift.",
"homepage": "https://github.com/ezefranca/EFInternetIndicator",
"screenshots": "https://media.giphy.com/media/3Pumv... | 454 |
930 | package com.zone.weixin4j.util;
import com.zone.weixin4j.exception.WeixinException;
import java.io.*;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.net.JarURLConnection;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Enume... | 2,217 |
401 | <gh_stars>100-1000
package com.almasb.algo.disintegration;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.geometry.Point2D;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
/**
* @author <NAME> (<EMAIL>)
*/
public class Parti... | 682 |
435 | {
"copyright_text": "Standard YouTube License",
"description": "PyData Berlin 2016\n\nPredicting what people like when they choose what to wear is a non-trivial task involving several ingredients. At Mallzee, the data is variegated, large and has to be processed quickly to produce recommendations on products, tailo... | 508 |
5,903 | /*!
* Copyright 2010 - 2018 <NAME>. 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 applic... | 5,208 |
2,508 | <gh_stars>1000+
extern zend_class_entry *stub_internalinterfaces_ce;
ZEPHIR_INIT_CLASS(Stub_InternalInterfaces);
PHP_METHOD(Stub_InternalInterfaces, count);
ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_internalinterfaces_count, 0, 0, 0)
ZEND_END_ARG_INFO()
ZEPHIR_INIT_FUNCS(stub_internalinterfaces_method_entry) {
#if PHP_V... | 222 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.