max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
687 | package io.kestra.core.models.triggers;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.kestra.core.models.conditions.Condition;
import io.micronaut.core.annotation.Introspected;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter... | 529 |
5,169 | <filename>Specs/VKVideoPlayer/0.1.4/VKVideoPlayer.podspec.json
{
"name": "VKVideoPlayer",
"version": "0.1.4",
"summary": "VKVideoPlayer is customizable video player component that is able to play mp4, hls videos and display subtitles.",
"description": " * Fully customizable UI\n ... | 909 |
389 | <filename>aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/appsettings.json
{
"AllowedHosts": "*",
"StringEncryption": {
"DefaultPassPhrase": "<PASSWORD>",
"InitVectorBytes": "s83ng0abvd02js84",
"DefaultSalt": "sf&5)s3#"
},
"Serilog": {
"MinimumLevel": {
"Default"... | 1,375 |
854 | <gh_stars>100-1000
__________________________________________________________________________________________________
sample 1 ms submission
class Solution {
public String[] reorderLogFiles(String[] logs) {
List<String> orderedLogs = new ArrayList<>();
List<String> noIdentifierLetterLogs = new Array... | 1,198 |
575 | <reponame>iridium-browser/iridium-browser
// 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_HISTORY_CORE_BROWSER_VISIT_ANNOTATIONS_DATABASE_H_
#define COMPONENTS_HISTORY_CORE_BROWSER_VI... | 844 |
424 | {
"name": "Fastor",
"version": "0.6.3",
"description": "A light-weight high performance tensor algebra framework for modern C++",
"keywords": "tensors, tensor-contraction, multidimensional-arrays, simd, hpc, small-blas",
"homepage": "https://github.com/romeric/Fastor/blob/master/README.md",
"repository":
... | 293 |
728 | """
Module with tests for templateexporter.py
"""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import os
from traitlets.config import Config
from jinja2 import DictLoader, TemplateNotFound
from nbformat import v4
from .base import ExportersTestsBase
from .chee... | 4,627 |
965 | TCHAR szModule[_MAX_PATH];
::GetModuleFileName(_AtlBaseModule.GetModuleInstance(), szModule, _MAX_PATH);
p->AddReplacement(OLESTR("Module"), T2OLE(szModule)); | 65 |
9,136 | #ifndef B3_PGS_JACOBI_SOLVER
#define B3_PGS_JACOBI_SOLVER
struct b3Contact4;
struct b3ContactPoint;
class b3Dispatcher;
#include "b3TypedConstraint.h"
#include "b3ContactSolverInfo.h"
#include "b3SolverBody.h"
#include "b3SolverConstraint.h"
struct b3RigidBodyData;
struct b3InertiaData;
class b3PgsJacobiSolver
{
p... | 2,490 |
2,503 | <filename>Samples/Desktop/D3D12MeshShaders/src/DynamicLOD/D3D12DynamicLOD.h
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER ... | 2,003 |
742 | package org.support.project.knowledge.tool;
import java.io.File;
import org.support.project.common.config.ConfigLoader;
import org.support.project.common.util.FileUtil;
import org.support.project.knowledge.config.AppConfig;
import org.support.project.knowledge.dao.gen.DatabaseControlDao;
import org.support.project.kn... | 412 |
2,313 | /*
* Copyright (c) 2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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 ... | 1,500 |
4,267 | <filename>src/libssh/examples/examples_common.h<gh_stars>1000+
/*
Copyright 2009 <NAME>
This file is part of the SSH Library
You are free to copy this file, modify it in any way, consider it being public
domain. This does not apply to the rest of the library though, but it is
allowed to cut-and-paste working code fro... | 291 |
1,273 | <filename>src/test/java/org/broadinstitute/hellbender/tools/spark/sv/integration/SvDiscoverFromLocalAssemblyContigAlignmentsSparkIntegrationTest.java
package org.broadinstitute.hellbender.tools.spark.sv.integration;
import org.broadinstitute.hellbender.CommandLineProgramTest;
import org.broadinstitute.hellbender.GATKB... | 3,799 |
878 | /*
*
* honggfuzz - run->dynfile->datafer mangling routines
* -----------------------------------------
*
* Author:
* <NAME> <<EMAIL>>
*
* Copyright 2010-2018 by Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in complianc... | 15,133 |
701 | <reponame>spocino/brutal
#pragma once
#define KERNEL_STACK_SIZE (16384)
#define USER_STACK_BASE (0xc0000000)
#define IPC_CHANNEL_SIZE (256)
void kernel_splash(void);
| 75 |
427 | //
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
// testfilerunner.h
// testObjects
//
// Created by <NAME> on 9/24/08.
//
#import <Cocoa/Cocoa.h>
/*
variations:
four sourc... | 1,267 |
1,808 | <filename>libsrc/api/JSONRPC_schema/schema-inputsource.json
{
"type":"object",
"required":true,
"properties": {
"command": {
"type": "string",
"required": true,
"enum": [ "inputsource" ]
},
"tan": {
"type": "integer"
},
"subcommand": {
"type": "string",
"required": true,
"enum": [ "dis... | 231 |
372 | /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright (c) 2006 <NAME>
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
*... | 6,832 |
428 | <gh_stars>100-1000
#include <sys/types.h>
#include <signal.h>
#include <pwd.h>
#include <sys/resource.h>
#include <sys/wait.h>
#include <fcntl.h>
#include "nine.h"
enum
{
Debug = 0
};
/*
* os-specific devcmd support.
* this version should be reasonably portable across Unix systems.
*/
typedef struct Targ Tar... | 2,078 |
5,169 | {
"name": "WalletConnectSwift",
"version": "1.6.0",
"summary": "A delightful way to integrate WalletConnect into your app.",
"description": "WalletConnect protocol implementation for enabling communication between dapps and\nwallets. This library provides both client and server parts so that you can integrate\n... | 387 |
437 | // -*- mode: c++; c-file-style: "k&r"; c-basic-offset: 4 -*-
/***********************************************************************
*
* bench/terminal.cc:
* A terminal client for a distributed transactional store.
*
**********************************************************************/
#include "store/common... | 2,657 |
474 | <reponame>chenqian-dev/QNShortVideo-TuTu
//
// TuSDKTSScreen+Extend.h
// TuSDK
//
// Created by <NAME> on 14/11/1.
// Copyright (c) 2014年 tusdk.com. All rights reserved.
//
#import <UIKit/UIKit.h>
#pragma mark - args
/**
* 状态栏高度
*/
extern CGFloat const lsq_STATES_BAR_HEIGHT;
/**
* 导航栏高度
*/
extern CGFloat c... | 2,500 |
578 | /*
* Tencent is pleased to support the open source community by making BK-JOB蓝鲸智云作业平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-JOB蓝鲸智云作业平台 is licensed under the MIT License.
*
* License for BK-JOB蓝鲸智云作业平台:
* ----------------------------------------------... | 2,869 |
315 | <reponame>cebe/yii2support
package com.nvlad.yii2support.migrations.ui.settings.entities;
import java.util.List;
import java.util.Vector;
public class TableModelStringEntity {
private String myString;
public TableModelStringEntity(String item) {
myString = item;
}
public void setValue(String... | 381 |
2,548 | import numpy as np
# We generate simple commands:
#
# Call home ---> ping 192.168.0.4
# Show me the money ---> nc -v 192.168.0.2 4444
# Let's go! ---> echo 1 > /proc/sys/net/ipv4/ip_forward
# Stop annoying me ---> kill 2222
#
# --------------------------------------------------------------
# Trai... | 562 |
915 | <gh_stars>100-1000
/*
* Definition of the geometry routines
* Copyright (C) 2019 <NAME>, <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 withou... | 1,247 |
453 | /*
* Copyright (c) 2003-2004, <NAME>
* Copyright (c) 1999,2000, <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
... | 5,106 |
1,078 | <reponame>gluckzhang/ttorrent<gh_stars>1000+
package com.turn.ttorrent.common;
import org.apache.commons.codec.digest.DigestUtils;
import java.util.ArrayList;
import java.util.List;
public final class TorrentUtils {
private final static char[] HEX_SYMBOLS = "0123456789ABCDEF".toCharArray();
/**
* @param dat... | 512 |
335 | <filename>O/Oncogenic_adjective.json
{
"word": "Oncogenic",
"definitions": [
"Causing development of a tumour or tumours."
],
"parts-of-speech": "Adjective"
} | 80 |
4,304 | <gh_stars>1000+
#ifndef CODEGEN_GENDESC_H
#define CODEGEN_GENDESC_H
#include <platform.h>
#include "codegen.h"
PONY_EXTERN_C_BEGIN
void gendesc_basetype(compile_t* c, LLVMTypeRef desc_type);
void gendesc_type(compile_t* c, reach_type_t* t);
void gendesc_init(compile_t* c, reach_type_t* t);
void gendesc_table(comp... | 623 |
854 | <reponame>timxor/leetcode-journal
__________________________________________________________________________________________________
1msclass Solution {
public int removeDuplicates(int[] nums) {
if(nums.length < 2) return nums.length;
int currentIdx = 0;
int nextIdx = 1;
while(nextId... | 1,192 |
575 | // Copyright (c) 2011 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 UI_VIEWS_EXAMPLES_WIDGET_EXAMPLE_H_
#define UI_VIEWS_EXAMPLES_WIDGET_EXAMPLE_H_
#include <string>
#include "base/macros.h"
#include "ui/view... | 389 |
643 | package com.hellokoding.jpa.model;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Getter
@Setter
@Entity
public class Person {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
private String name;
@OneToOne(cascade = CascadeType.ALL, optional = f... | 219 |
14,668 | <filename>extensions/browser/api/alarms/alarms_api_constants.cc<gh_stars>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.
#include "extensions/browser/api/alarms/alarms_api_constants.h"
namespace ... | 461 |
2,603 | <reponame>NoMaY-jp/FreeRTOS
/*
* FreeRTOS V202107.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* 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 wit... | 1,357 |
335 | import xlwings as xw
from xlwings import Workbook, Sheet, Range, Chart
import time
import datetime
from subprocess import call
import matplotlib.pyplot as plt
# connect to the active workbook
#wb = Workbook('run.xlsm')
wb = Workbook.active()
# log status
Range('B8').value = 'running upload ...'
file = 'Output/exposu... | 788 |
344 | import pickle
from archai.common import utils
def main():
in_dataset_file = utils.full_path('~/dataroot/nasbench_ds/nasbench_full.tfrecord.pkl')
out_dataset_file = utils.full_path('~/dataroot/nasbench_ds/nasbench101_sample.tfrecord.pkl')
with open(in_dataset_file, 'rb') as f:
records = pickle.load(... | 331 |
425 | <gh_stars>100-1000
{"Sections":[{"Errors":[],"SectionType":"entitySection","Id":"entitySection_location","Body":"","Name":"location","Type":"seattle= roles=[fromCity]","SynonymsOrPhraseList":["seattle"],"Range":{"Start":{"Line":2,"Character":0},"End":{"Line":3,"Character":14}}},{"Errors":[{"Message":"no synonyms list f... | 506 |
422 | /*
* Copyright (c) <NAME>, <EMAIL>
*
* 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,300 |
331 | <filename>cli/endpoints/online/triton/ensemble/models/triton/bidaf-postprocess/1/model.py
import json
import numpy as np
import triton_python_backend_utils as pb_utils
class TritonPythonModel:
"""Your Python model must use the same class name. Every Python model
that is created must have "TritonPythonModel" ... | 1,495 |
399 | <filename>ui/src/main/java/edu/wpi/grip/ui/util/GripPlatform.java
package edu.wpi.grip.ui.util;
import com.google.common.eventbus.AsyncEventBus;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import java.uti... | 1,099 |
423 | #!/usr/bin/python3
import logging
import pprint
import sys
import datetime
import praw
from pathlib import Path
def reddit_log(log_text, thread_id):
log_thread = reddit.submission(id=thread_id)
logging.info(f"log_output: {log_text}")
log_thread.reply(log_text)
return
version = '1.1'
testing = False
b... | 1,688 |
1,216 | <reponame>machshev/openaudible<gh_stars>1000+
package org.openaudible.desktop.swt.manager.views;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.wid... | 959 |
484 | <reponame>aivinog1/zeebe
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Zeebe Community License 1.1. You ... | 2,742 |
1,790 | /*
* Copyright (c) 2014, Cloudera and Intel, Inc. All Rights Reserved.
*
* Cloudera, Inc. licenses this file to you 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... | 1,573 |
1,233 | # Copyright 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/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 1,284 |
1,056 | <reponame>timfel/netbeans<filename>ide/lexer/demo/src/org/netbeans/modules/lexer/demo/handcoded/link/LinkLanguage.java<gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
... | 689 |
347 | /*
* Copyright oVirt Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.ovirt.engine.api.restapi.invocation;
import java.io.IOException;
import java.util.UUID;
import java.util.regex.Pattern;
import javax.ejb.EJB;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterC... | 2,372 |
349 | <filename>xcode-plugin/src/main/groovy/org/openbakery/carthage/CarthagePluginExtension.java
package org.openbakery.carthage;
import org.gradle.api.Project;
public class CarthagePluginExtension {
boolean cache = true;
boolean xcframework = false;
String command = null;
public CarthagePluginExtension(Project proj... | 189 |
5,169 | <gh_stars>1000+
{
"name": "HWSimpleToast",
"version": "1.0",
"summary": "Toast for SWIFT, Very Light, Very Simple",
"description": "Very Simple Toast.\nUses two views only (BackgroundView, TextLabel)",
"homepage": "https://github.com/vowed21/HWSimpleToast",
"license": {
"type": "MIT",
"file": "LICEN... | 239 |
2,195 | //--------------------------------------------------------------------------//
/// Copyright (c) 2019 by <NAME>. All Rights Reserved. ///
/// License: http://www.opensource.org/licenses/BSD-2-Clause ///
//--------------------------------------------------------------------------//
#ifndef ... | 501 |
17,702 | <reponame>burhandodhy/CNTK
#include "stdafx.h"
#include "Basics.h"
#include "GPUDataTransferer.h"
#include "GPUMatrix.h"
#pragma comment(lib, "cudart.lib")
#pragma warning(disable : 4267) // conversion from 'size_t' to 'unsigned int'; happens in CUDA <<<a,b>>> syntax if a and b are size_t
#pragma warning(disable : 41... | 2,746 |
531 | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#ifndef __INVENTORYSYSTEM_H__
#define __INVENTORYSYSTEM_H__
#include "EngineMinimal.h"
#include "Runtime/UMG/Public/UMG.h"
#include "Runtime/UMG/Public/UMGStyle.h"
#include "Runtime/UMG/Public/Blueprint/UserWidget.h"
#include "Runtime/UMG/Public/Slate/SObje... | 149 |
348 | {"nom":"Saint-Jean-de-Rebervilliers","circ":"2ème circonscription","dpt":"Eure-et-Loir","inscrits":198,"abs":122,"votants":76,"blancs":3,"nuls":1,"exp":72,"res":[{"nuance":"LR","nom":"<NAME>","voix":46},{"nuance":"REM","nom":"Mme <NAME>","voix":26}]} | 102 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Randy",
"definitions": [
"Sexually aroused or excited.",
"Having a rude, aggressive manner."
],
"parts-of-speech": "Adjective"
} | 92 |
1,521 | /** Copyright 2020 Alibaba Group Holding Limited.
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... | 2,265 |
375 | /*
Copyright (c) 2014, Intel Corporation
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 and the following disclaimer.
* Redis... | 2,271 |
2,021 | //
// GitHubRankingViewController.h
// Monkey
//
// Created by coderyi on 15/7/23.
// Copyright (c) 2015年 www.coderyi.com. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface GitHubRankingViewController : UIViewController
@end
| 88 |
539 | <gh_stars>100-1000
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "services_grpc.h"
#include <bond/ext/grpc/server.h>
#include <boost/optional.hpp>
#include <boost/static_assert.hpp>
#include <boost/test/... | 1,853 |
343 | /* vim:set shiftwidth=4 ts=4: */
#include <stdlib.h>
#include <assert.h>
#include "spinehdr.h"
#include "quad.h"
#include "subset.h"
static int cmpdeg(const void *v0, const void *v1)
{
Agnode_t *n0 = *(Agnode_t **) v0;
Agnode_t *n1 = *(Agnode_t **) v1;
if (ND_deg(n0) > ND_deg(n1))
return -1;
else if (ND_deg(n... | 1,361 |
506 | <filename>atcoder/abc093/a.py
#!/usr/bin/env python3
# https://abc093.contest.atcoder.jp/tasks/abc093_a
print('Yes' if sorted(input()) == ['a', 'b', 'c'] else 'No')
| 74 |
4,901 | <gh_stars>1000+
/*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* publis... | 4,211 |
8,451 | <filename>core/src/main/java/io/questdb/griffin/model/JoinContext.java
/*******************************************************************************
* ___ _ ____ ____
* / _ \ _ _ ___ ___| |_| _ \| __ )
* | | | | | | |/ _ \/ __| __| | | | _ \
* | |_| | |_| | __/\__ \ |_| |_| ... | 796 |
10,225 | <filename>extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/RestClientBuildTimeConfigSource.java
package io.quarkus.restclient.configuration;
import java.util.Collections;
import java.util.HashMap;
import java.util.Set;
import org.eclipse.microprofile.config.ConfigPr... | 592 |
672 | /*
* Copyright (c) 2000-2018 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file ex... | 13,729 |
4,234 | <filename>src/mbgl/gl/draw_scope_resource.hpp
#pragma once
#include <mbgl/gfx/draw_scope.hpp>
#include <mbgl/gl/vertex_array.hpp>
namespace mbgl {
namespace gl {
class DrawScopeResource : public gfx::DrawScopeResource {
public:
DrawScopeResource(VertexArray&& vertexArray_) : vertexArray(std::move(vertexArray_)) ... | 151 |
893 | <gh_stars>100-1000
package io.lacuna.bifurcan.nodes;
import io.lacuna.bifurcan.*;
import io.lacuna.bifurcan.utils.ArrayVector;
import io.lacuna.bifurcan.utils.Bits;
import io.lacuna.bifurcan.utils.Iterators;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.PrimitiveIterator;
import... | 16,285 |
418 | //
// BFDataRequestWishlistInfo.h
// OpenShop
//
// Created by <NAME>
// Copyright (c) 2015 Business Factory. All rights reserved.
//
#import <Mantle/MTLModel.h>
#import "BFDataRequestPagerInfo.h"
NS_ASSUME_NONNULL_BEGIN
/**
* `BFDataRequestWishlistInfo` encapsulates information used when accessing remote API a... | 230 |
772 | <filename>apps/i18n/craft/ta_in.json<gh_stars>100-1000
{
"absolute": "தனிமதிப்பை",
"at": "இல்",
"blockActionAdd": "சேர்",
"blockActionAttack": "தாக்குதல்",
"blockActionCollect": "சேகரி",
"blockActionExplodeEntity": "வெடிக்க",
"blockActionMoveForward": "முன்னோக்கி நகர்த்த",
"blockActionRepeat": "மறுபடி",... | 2,231 |
329 | // Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... | 550 |
640 | <reponame>jpoikela/z88dk<filename>libsrc/_DEVELOPMENT/math/float/math32/c/m32_coshf.c
#include "m32_math.h"
float m32_coshf (const float x) __z88dk_fastcall
{
float y;
y = m32_expf(x);
return m32_div2f( y + m32_invf(y) );
}
| 123 |
1,283 | <reponame>scanfyu/hikyuu
# coding:utf-8
#
# The MIT License (MIT)
#
# Copyright (c) 2010-2019 fasiondog/hikyuu
#
# 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... | 7,243 |
903 | /*
* 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 ... | 926 |
1,031 | <gh_stars>1000+
/* -----------------------------------------------------------------------------
* 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 t... | 25,947 |
2,057 | <reponame>hexingbo/RetrofitUrlManager
/*
* Copyright 2017 JessYan
*
* 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... | 8,894 |
777 | <reponame>google-ar/chromium<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 IOS_CHROME_BROWSER_PHYSICAL_WEB_IOS_CHROME_PHYSICAL_WEB_DATA_SOURCE_H_
#define IOS_CHROME_BROWSER_P... | 670 |
758 | #ifndef _ICONS_H
#define _ICONS_H
unsigned char icon[21126] = {
0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A,
0x00, 0x00, 0x00, 0x0D, 0x49, 0x48, 0x44, 0x52,
0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20,
0x08, 0x06, 0x00, 0x00, 0x00, 0x73, 0x7A, 0x7A,
0xF4, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59,
0x73, 0x0... | 637,206 |
462 | ##
# Copyright (c) 2015-2017 Apple 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 required by applicable l... | 3,830 |
1,056 | <filename>harness/jellytools.platform/test/qa-functional/src/org/netbeans/jellytools/widgets/Utils.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 ownersh... | 5,694 |
337 | class A {
public void foo(int n, String s) {
}
public void bar(boolean b, int n, String s) {
foo(n, s);
}
public void baz() {
foo(1, "abc");
bar(false, 1, "abc");
}
}
class B extends A {
public void foo(int n, String s) {
}
public void bar(boolean b, int... | 400 |
347 | package org.ovirt.engine.core.bll.provider.vms;
import org.ovirt.engine.core.common.businessentities.KVMVmProviderProperties;
import org.ovirt.engine.core.common.businessentities.OriginType;
import org.ovirt.engine.core.common.businessentities.Provider;
import org.ovirt.engine.core.common.queries.GetVmsFromExternalPro... | 394 |
317 | <reponame>philippQubit/hbase-indexer
/*
* Copyright 2013 NGDATA nv
*
* 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... | 332 |
3,673 | # ----------------------------------------------------------------------------
# - Open3D: www.open3d.org -
# ----------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2018-2021 www.open3d.org
#
# Permission i... | 11,153 |
505 | <reponame>joouha/euporie
# -*- coding: utf-8 -*-
"""Contains dpdated ANSI parsing and Formatted Text processing."""
from __future__ import annotations
import re
from typing import TYPE_CHECKING
from prompt_toolkit.formatted_text import ANSI as PTANSI
from prompt_toolkit.formatted_text import (
fragment_list_to_te... | 4,260 |
573 | #!/usr/bin/env python
import fnmatch
import os
import plistlib
import re
import shutil
import subprocess
import sys
import time
from distutils import dir_util
from nfbuild import NFBuild
class NFBuildWindows(NFBuild):
def __init__(self):
super(self.__class__, self).__init__()
self.project_file =... | 4,267 |
372 | <filename>thirdparty/cyrus-sasl-2.1.23/saslauthd/cache.h<gh_stars>100-1000
/*******************************************************************************
* *****************************************************************************
* *
* * cache.h
* *
* * Description: Header file for cache.c
* * ... | 1,788 |
562 | <gh_stars>100-1000
#include <libmorton/morton.h>
#include <iostream>
int main() {
std::cout << libmorton::morton3D_64_encode(1, 2, 3) << std::endl;
return 0;
}
| 77 |
4,036 | // Generated automatically from javax.json.JsonPatchBuilder for testing purposes
package javax.json;
import javax.json.JsonPatch;
import javax.json.JsonValue;
public interface JsonPatchBuilder
{
JsonPatch build();
JsonPatchBuilder add(String p0, JsonValue p1);
JsonPatchBuilder add(String p0, String p1);
... | 346 |
379 | import plotly.express as px
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from skimage import data
import json
img = data.chelsea()
fig = px.imshow(img)
fig.update_layout(dragmode="drawrect")
app = dash.Dash(__name__)
app.layout = html.... | 353 |
342 | <gh_stars>100-1000
/*
* Copyright 2013 Cloudera 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 ... | 658 |
3,121 | <filename>nlpaug/model/word_rule/shuffle.py
try:
from nltk.tokenize import sent_tokenize
except ImportError:
# No installation required if not using this function
pass
from nlpaug.model.word_rule.word_rule import WordRule
class Shuffle(WordRule):
TYPES = ['sentence']
def __init__(self, model_type, mode='neighb... | 758 |
783 | // Copyright 2011-2019 Google LLC. 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,264 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"<NAME>","circ":"4ème circonscription","dpt":"Loire","inscrits":7757,"abs":5102,"votants":2655,"blancs":215,"nuls":95,"exp":2345,"res":[{"nuance":"REM","nom":"<NAME>","voix":1203},{"nuance":"LR","nom":"M. <NAME>","voix":1142}]} | 115 |
1,327 | <filename>src/cpu/x64/jit_brgemm_conv_bwd.cpp
/*******************************************************************************
* Copyright 2022 Intel Corporation
*
* 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... | 3,103 |
14,668 | <reponame>zealoussnow/chromium
// Copyright (c) 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 "gpu/command_buffer/service/gles2_cmd_decoder.h"
#include "gpu/command_buffer/service/gles2_cmd_decoder_unitte... | 6,715 |
994 | <reponame>shulmang/extempore
/*
* Copyright (c) 2011, <NAME>
*
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright noti... | 1,222 |
1,603 | package com.linkedin.datahub.graphql.types.dataprocessinst.mappers;
import com.linkedin.datahub.graphql.types.mappers.TimeSeriesAspectMapper;
import com.linkedin.dataprocess.DataProcessInstanceRunEvent;
import com.linkedin.metadata.aspect.EnvelopedAspect;
import com.linkedin.metadata.utils.GenericRecordUtils;
import j... | 703 |
19,628 | package com.didichuxing.doraemonkit.aop.bigimg.glide;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import androidx.annotation.Nullable;
import com.didichuxing.doraemonkit.constant.MemoryConstants;
import com.didichuxing.doraemonkit.util.ConvertUtils;
import com.didichuxing.doraemo... | 952 |
741 | <gh_stars>100-1000
package com.applozic.mobicomkit.api.notification;
import android.content.Context;
import com.applozic.mobicomkit.api.account.user.UserService;
import com.applozic.mobicomkit.feed.ApiResponse;
import com.applozic.mobicomkit.feed.ErrorResponseFeed;
import com.applozic.mobicommons.json.GsonUtils;
impo... | 847 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.