max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
303 | #pragma once
#include "common/luax.h"
#include "contact/contact.h"
namespace Wrap_Contact
{
int GetPositions(lua_State* L);
int GetNormal(lua_State* L);
int GetFriction(lua_State* L);
int GetRestitution(lua_State* L);
int IsEnabled(lua_State* L);
int IsTouching(lua_State* L);
int Se... | 316 |
475 | // Copyright (c) 2015-2016 <NAME>
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
// http://vittorioromeo.info | <EMAIL>
#pragma once
#include <ecst/config.hpp>
#include <ecst/mp/edge.hpp>
#include <ecst/mp/adjacency_list/basic.hpp>
ECST_MP_ADJACENCY_LIST_... | 640 |
312 | <filename>core/sail/sail-spin/src/main/java/org/eclipse/rdf4j/sail/SailConnectionGraphQuery.java<gh_stars>100-1000
/*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanyi... | 1,724 |
746 | <gh_stars>100-1000
package org.protege.editor.owl.ui.explanation;
import org.protege.editor.core.prefs.Preferences;
import org.protege.editor.core.prefs.PreferencesManager;
import org.protege.editor.owl.model.inference.ReasonerPreferences;
import org.semanticweb.owlapi.model.OWLAxiom;
import javax.swing.*;
import jav... | 1,444 |
692 | package com.hubspot.singularity.executor.config;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.singularity.executor.SingularityExecutorLogrotateFrequency;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.Optional... | 758 |
528 | #include "src/traitsd.h"
#include "src/block4.h"
#include "constants/4dDouble.h"
#define CFP_ARRAY_TYPE cfp_array4d
#define CFP_REF_TYPE cfp_ref4d
#define CFP_PTR_TYPE cfp_ptr4d
#define CFP_ITER_TYPE cfp_iter4d
#define SUB_NAMESPACE array4d
#define SCALAR double
#define SCALAR_TYPE zfp_type_double
#define DIMENSIONAL... | 3,644 |
369 | {
"dockerFile": "Dockerfile",
"extensions": [
"dart-code.flutter",
"darkriszty.markdown-table-prettify",
"foxundermoon.shell-format"
]
} | 69 |
435 | <filename>pycon-us-2019/videos/deepak-k-gupta-hello-world-of-machine-learning-using-scikit-learn-pycon-2019.json
{
"copyright_text": null,
"description": "***Welcome to the Machine Learning tutorial for absolute beginners.***\n\n This tutorial will not make you an expert in Machine Learning but\n will cover e... | 771 |
375 | <filename>src/Eclipse-IDE/org.robotframework.ide.eclipse.main.plugin.tests/src/org/robotframework/red/junit/jupiter/ProjectExtension.java<gh_stars>100-1000
/*
* Copyright 2020 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robot... | 5,136 |
489 | import pytest
@pytest.mark.tft
@pytest.mark.integration
@pytest.mark.parametrize(
"region",
[
"br1",
"eun1",
"euw1",
"jp1",
"kr",
"la1",
"la2",
"na",
"na1",
"oc1",
"tr1",
"ru",
"pbe1",
],
)
class TestLe... | 1,380 |
852 | #include "FWCore/PluginManager/interface/PluginManager.h"
#include "FWCore/PluginManager/interface/standard.h"
#include "FWCore/PluginManager/interface/SharedLibrary.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ServiceRegistry/interface/ServiceRegistry.h"
//
#include "CondCore/CondDB/inte... | 2,445 |
1,133 | <filename>components/mroipac/filter/src/rescale_magnitude.c
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <complex.h>
/**
* Take the smoothed phase image from one file and the correctly scaled magnitude image from another and
* combine them in to one file
*/
int
rescale_magnitude(char *int_file... | 552 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iLifeSlideshow.framework/iLifeSlideshow
*/
#import <iLifeSlideshow/MCAnimationKeyframe.h>
#import <iLifeSlideshow/MCObject.h>
@class MCAnimationPath, NSString;
@interface MCAnimationKeyframe : MCObject {
double mT... | 867 |
618 | <reponame>xuejike/hprose-java_rl<filename>src/main/java/hprose/server/HproseServiceEvent.java
/**********************************************************\
| |
| hprose |
| ... | 893 |
14,668 | <reponame>dark-richie/crashpad
// Copyright 2019 The Crashpad 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/LICENS... | 396 |
371 | <filename>rls/common/yaml_ops.py
#!/usr/bin/env python3
# encoding: utf-8
import os
from typing import Dict, NoReturn
import yaml
from rls.utils.display import colorize
from rls.utils.logging_utils import get_logger
logger = get_logger(__name__)
def save_config(dicpath: str, config: Dict, filename: str) -> NoRetu... | 489 |
2,594 | /*
* Copyright (C) 2020 The Android Open Source Project
*
* 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... | 440 |
343 | // Copyright 2014 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... | 1,471 |
5,169 | {
"name": "SomePod",
"version": "0.1.1",
"summary": "Here is the description which describes this produrc as it is",
"description": "A short description of SomePod. So you can use it for some of your swift application to make it more usefull",
"homepage": "https://bitbucket.org/victorbarskov/somepod",
"lice... | 236 |
4,224 | /************************************************************************************
* board.h
*
* Copyright (C) 2016-2018 <NAME>. All rights reserved.
* Authors: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... | 5,577 |
461 | #include <_ansi.h>
#include <ctype.h>
#undef isgraph_l
int
isgraph_l (int c, struct __locale_t *locale)
{
return __locale_ctype_ptr_l (locale)[c+1] & (_P|_U|_L|_N);
}
#undef isprint_l
int
isprint_l (int c, struct __locale_t *locale)
{
return __locale_ctype_ptr_l (locale)[c+1] & (_P|_U|_L|_N|_B);
}
| 160 |
316 | package com.rubengees.introduction.interfaces;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.io.Serializable;
/**
* The interface to define a custom View.
* Note: You cannot use a anonymous class to implement this... | 260 |
456 | <reponame>StyXman/kgt<filename>src/svg/output.c
/*
* Copyright 2014-2019 <NAME>
*
* See LICENCE for the full copyright terms.
*/
/*
* Railroad Diagram SVG Output
*
* Output a SVG diagram of the abstract representation of railroads.
* The subset of SVG here is intended to suit RFC 7996.
*/
#define _BSD_SOURCE... | 8,712 |
901 | /*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 1,963 |
1,139 | <filename>JSF/JSF_DataBoundComponents/src/main/java/com/journaldev/jsf/beans/Mobile.java
package com.journaldev.jsf.beans;
import java.util.ArrayList;
import java.util.Arrays;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
@ManagedBean(name = "mobilerecords", eager = true)
@SessionScoped
... | 626 |
463 | <reponame>yanz08/rv8-wezh<filename>src/jit/jit-tracer.h
//
// jit-tracer.h
//
#ifndef rv_jit_tracer_h
#define rv_jit_tracer_h
namespace riscv {
template <typename P, typename I>
struct jit_tracer
{
typedef P processor_type;
typedef typename P::decode_type decode_type;
P &proc;
std::map<addr_t,size_t> la... | 1,709 |
639 | <filename>src/nnfusion/frontend/onnx_import/op/scatternd.cpp<gh_stars>100-1000
//*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance ... | 972 |
1,738 | <reponame>jeikabu/lumberyard
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provid... | 580 |
3,702 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// The following ... | 1,527 |
2,338 | #ifndef ISL_VERSION_H
#define ISL_VERSION_H
#if defined(__cplusplus)
extern "C" {
#endif
const char *isl_version(void);
#if defined(__cplusplus)
}
#endif
#endif
| 72 |
443 | """Fill TestGroup.result
Revision ID: 3edf6ec6abd5
Revises: <PASSWORD>
Create Date: 2013-11-05 14:08:23.068195
"""
from __future__ import absolute_import, print_function
# revision identifiers, used by Alembic.
revision = '3edf6ec6abd5'
down_revision = '<PASSWORD>'
from alembic import op
from sqlalchemy.sql import... | 791 |
2,023 | <gh_stars>1000+
from urllib import quote_plus, FancyURLopener, URLopener, unwrap,\
toBytes, splittype
def retrieve(self, url, filename=None, reporthook=None, data=None,
maxtries=5, r_range=None):
"""retrieve(url) returns (filename, headers) for a local object
or (tempfilename, ... | 1,944 |
2,288 | <filename>clightning/ccan/ccan/array_size/test/compile_fail-function-param.c
#include <ccan/array_size/array_size.h>
#include <stdlib.h>
struct foo {
unsigned int a, b;
};
int check_parameter(const struct foo *array);
int check_parameter(const struct foo *array)
{
#ifdef FAIL
return (ARRAY_SIZE(array) == 4);
#if !H... | 220 |
20,401 | <filename>deploy/android_demo/app/src/main/cpp/ocr_db_post_process.h
//
// Created by fujiayi on 2020/7/2.
//
#pragma once
#include <opencv2/opencv.hpp>
#include <vector>
std::vector<std::vector<std::vector<int>>>
boxes_from_bitmap(const cv::Mat &pred, const cv::Mat &bitmap);
std::vector<std::vector<std::vector<int>>... | 197 |
3,897 | <reponame>adelcrosge1/mbed-os
/**
* @file lp.c
* @brief Low power functions
*/
/* ****************************************************************************
* Copyright (C) Maxim Integrated Products, Inc., All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* ... | 5,353 |
348 | {"nom":"Lahitère","circ":"7ème circonscription","dpt":"Haute-Garonne","inscrits":51,"abs":19,"votants":32,"blancs":6,"nuls":2,"exp":24,"res":[{"nuance":"REM","nom":"<NAME>","voix":16},{"nuance":"FN","nom":"Mme <NAME>","voix":8}]} | 95 |
348 | {"nom":"Lahosse","circ":"3ème circonscription","dpt":"Landes","inscrits":248,"abs":105,"votants":143,"blancs":12,"nuls":2,"exp":129,"res":[{"nuance":"SOC","nom":"<NAME>","voix":84},{"nuance":"REM","nom":"<NAME>","voix":45}]} | 90 |
3,200 | /**
* Copyright 2020-2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 4,077 |
432 | <gh_stars>100-1000
/*-
* Copyright (c) 2005 <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
* notice, this l... | 2,810 |
1,091 | <reponame>meodaiduoi/onos<gh_stars>1000+
/*
* Copyright 2016-present Open Networking Foundation
*
* 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... | 1,316 |
5,079 | <gh_stars>1000+
# Revert field drop to keep the DB backward compatible with old Hue
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('axes', '0005_remove_accessattempt_trusted'),
]
operations = [
migrations.AddField(
model_na... | 196 |
335 | <gh_stars>100-1000
package com.pgexercises.monitor;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.net.URISyntaxException;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.regex.Pattern;
@SuppressWarn... | 988 |
10,225 | package io.quarkus.smallrye.reactivemessaging.signatures;
import static org.assertj.core.api.Assertions.assertThat;
import static org.awaitility.Awaitility.await;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
i... | 853 |
1,467 | {
"version": "2.16.45",
"date": "2021-04-21",
"entries": [
{
"type": "feature",
"category": "AWSKendraFrontendService",
"contributor": "",
"description": "Amazon Kendra now enables users to override index-level boosting configurations for each query."
... | 745 |
432 | /*-
* Copyright (c) 2008-2010 <NAME> <<EMAIL>>
* 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
* notice, this list ... | 2,270 |
488 | <reponame>maurizioabba/rose
void AEInterpC( double ( *userrng )( void * ), void *rngstate )
{
int nBins;
double EOutAlph;
EOutAlph = nBins*( *userrng )( rngstate );
return;
}
| 84 |
536 | <reponame>HelloCoCooo/hangout
package com.ctrip.ops.sysdev.filters;
import com.ctrip.ops.sysdev.baseplugin.BaseOutput;
import lombok.extern.log4j.Log4j2;
import org.joda.time.DateTime;
import java.util.*;
import com.ctrip.ops.sysdev.baseplugin.BaseFilter;
@Log4j2
public class LinkMetric extends BaseFilter {
in... | 2,968 |
587 | /*#######################################################################################
Copyright (c) 2017-2019 Kasugaccho
Copyright (c) 2018-2019 As Project
https://github.com/Kasugaccho/DungeonTemplateLibrary
<EMAIL>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1... | 2,778 |
1,068 | import numpy as np
import argparse
import os
import torch
from torch.utils.data import TensorDataset,DataLoader
from trainer import SvDklTrainer
from azureml.core import Run
parser = argparse.ArgumentParser()
parser.add_argument('--data-folder', type=str, dest='data_folder', help='data folder mounting point')
parser... | 1,161 |
832 | <gh_stars>100-1000
//
// DCFlashButton.h
// CDDScanningCode
//
// Created by 陈甸甸 on 2018/1/5.
//Copyright © 2018年 陈甸甸. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface DCFlashButton : UIButton
@end
| 96 |
10,225 | package io.quarkus.arc.deployment;
import java.util.Set;
import org.jboss.jandex.DotName;
import org.jboss.jandex.IndexView;
import io.quarkus.builder.item.SimpleBuildItem;
/**
* Represent a Jandex {@link IndexView} on the whole deployment that has a complete CDI-related information.
* As such, this index should ... | 401 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.customerinsights.fluent.models;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
imp... | 631 |
3,765 | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.ast;
import net.sourceforge.pmd.lang.java.ast.ASTAnyTypeDeclaration.TypeKind;
/**
* Marker interface for type body declarations, such as annotation members, field or method declarations.
*
... | 775 |
1,094 | <gh_stars>1000+
/**
* Copyright (c) 2015 <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 ap... | 696 |
16,461 | //
// ABI42_0_0AIRMapWMSTileManager.h
// AirMaps
//
// Created by nizam on 10/28/18.
// Copyright © 2018. All rights reserved.
//
#import <ABI42_0_0React/ABI42_0_0RCTViewManager.h>
@interface ABI42_0_0AIRMapWMSTileManager : ABI42_0_0RCTViewManager
@end
| 117 |
965 | //
// This file is part of Easylogging++ samples
//
// Sample to show how to implement log rotate using easylogging++
// Thanks to Darren for efforts (http://darrendev.blogspot.com.au/)
//
// Compile: g++ -std=c++11 -Wall -Werror logrotate.cpp -lpthread -o logrotate -DELPP_THREAD_SAFE
//
// Revision 1.0
// @author Darr... | 601 |
381 | from rpython.jit.backend.x86.test.test_basic import Jit386Mixin
from rpython.jit.metainterp.test import test_call
class TestCall(Jit386Mixin, test_call.CallTest):
# for the individual tests see
# ====> ../../../metainterp/test/test_call.py
pass
| 98 |
510 | /* Copyright 2019-2021 Canaan Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 1,437 |
5,269 | <reponame>srbhr/supertokens-core
/*
* Copyright (c) 2021, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
*
* You may not use this file except in compliance with ... | 2,356 |
2,038 | //
// WaxWatchLib.h
// WaxWatchLib
//
// Created by junzhan on 15/10/28.
// Copyright © 2015年 <EMAIL>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface WaxWatchLib : NSObject
@end
| 78 |
607 | <reponame>cdlaimin/Pixiv-Illustration-Collection-Backend<gh_stars>100-1000
package dev.cheerfun.pixivic.biz.sitemap.po;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import dev.cheer... | 346 |
546 | <reponame>siliconarts/vortex
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of... | 6,642 |
2,577 | /*
* 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. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | 601 |
815 | <gh_stars>100-1000
#ifndef FEDATASTRUCTURES_HEADER
#define FEDATASTRUCTURES_HEADER
#include <stdint.h> // for fixed-with types.
typedef struct Grid
{
uint64_t NumberOfPoints;
uint64_t NumberOfCells;
double* Points;
int64_t* Cells;
} Grid;
void InitializeGrid(Grid* grid, const unsigned int numPoints[3], cons... | 288 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.security;
import com.azure.core.util.Context;
/** Samples for SubAssessments Get. */
public final class SubAsse... | 434 |
3,269 | // Time: O(n)
// Space: O(1)
class Solution {
public:
int minimumMoves(string s) {
int result = 0;
for (int i = 0; i < size(s); i += (s[i] == 'X') ? 3 : 1) {
result += (s[i] == 'X');
}
return result;
}
};
| 139 |
769 | <reponame>wasmup/stm32
// Define to prevent recursive inclusion -------------------------------------
#ifndef __UART_H
#define __UART_H
// USART1 HAL
#define USART1_PORT USART1
#define USART1_GPIO_TX GPIOA
#define USART1_GPIO_RX GPIOA
#define USART1_GPIO_AHB_TX RCC_AHBENR_GPIOAEN
#define USART1_GPI... | 2,430 |
826 | <reponame>julescmay/LuxCore
/***************************************************************************
* Copyright 1998-2020 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. ... | 1,348 |
658 | <gh_stars>100-1000
#include <stddef.h>
#include <stdint.h>
#include <sys/idt.h>
#include <lib/blib.h>
#if bios == 1
static struct idt_entry idt_entries[32];
__attribute__((section(".realmode")))
struct idtr idt = {
sizeof(idt_entries) - 1,
(uintptr_t)idt_entries
};
static void register_interrupt_handler(siz... | 386 |
575 | {
"key": "<KEY>",
"description": "This extension helps in retrieving the CPU/memory usage stats for MR extension.",
"name": "MR Test Extension",
"version": "1.0",
"manifest_version": 2,
"externally_connectable": {
"matches": [
"http://127.0.0.1:*/*"
]
},
"background": {
"scripts": ["sc... | 159 |
674 | package com.codeforvictory.superimageview.samples.superimageview.rounded_corners;
import com.codeforvictory.android.superimageview.crop.CropType;
import com.codeforvictory.superimageview.samples.superimageview.R;
import java.util.Arrays;
import java.util.List;
public final class ImageFactory {
private ImageFactor... | 2,370 |
389 | <reponame>dmcreyno/gosu-lang
/*
* Copyright 2014 <NAME>, Inc.
*/
package gw.lang.parser.statements;
import gw.lang.parser.IStatement;
import gw.lang.reflect.IFeatureInfo;
public interface IUsesStatement extends IStatement
{
String getTypeName();
boolean isFeatureSpace();
IFeatureInfo getFeatureInfo();
}
| 107 |
575 | <filename>ash/public/cpp/holding_space/holding_space_model.cc<gh_stars>100-1000
// 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 "ash/public/cpp/holding_space/holding_space_model.h"
#include <a... | 2,144 |
14,668 | <filename>ash/constants/ash_features.cc
// 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 "ash/constants/ash_features.h"
#include "ash/constants/ash_switches.h"
#include "base/command_line.h"
#i... | 28,929 |
739 | import os
import signal
class Screen:
@staticmethod
def wr(s):
# TODO: When Python is 3.5, update this to use only bytes
if isinstance(s, str):
s = bytes(s, "utf-8")
os.write(1, s)
@staticmethod
def wr_fixedw(s, width):
# Write string in a fixed-width fiel... | 2,394 |
49,076 | <reponame>spreoW/spring-framework
/*
* Copyright 2002-2020 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/LICE... | 3,467 |
381 | <gh_stars>100-1000
#include <string.h>
#include <stdint.h>
/**
* Efficient string hash function.
*/
__attribute__((unused))
static uint32_t string_hash(const char *str)
{
uint32_t hash = 0;
int32_t c;
while ((c = *str++))
{
hash = c + (hash << 6) + (hash << 16) - hash;
}
return hash;
}
/**
* Test two strin... | 235 |
799 | import json
import io
BASE_URL = 'https://gateway.qg2.apps.qualys.eu/'
DATE_FORMAT = '%Y-%m-%dT%H:%M:%S.%fZ'
def load_mock_response(file_name: str) -> dict:
"""
Load one of the mock responses to be used for assertion.
Args:
file_name (str): Name of the mock response JSON file to return.
"""
... | 3,584 |
1,840 | /**
* Copyright Pravega Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 1,241 |
14,668 | <gh_stars>1000+
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
import make_runtime_features_utilities as util
from blinkbuild.name_style_converter import NameStyleConverter
def _feature... | 1,656 |
1,875 | <reponame>CarnegieLearningWeb/teavm
/*
* Copyright 2017 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 3,368 |
582 | <filename>org.eclipse.gef/src/org/eclipse/gef/tools/DeselectAllTracker.java
/*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms o... | 434 |
2,112 | <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/licenses/LICENSE-2.0
*
* Unless re... | 1,966 |
315 | <gh_stars>100-1000
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
unordered_map<ll,ll> arr;
ll Fibo(ll n)
{
if(n==0)
{
return 0;
}
if(arr[n]!=0)
{
return (arr[n]);
}
if(n&1)
{
ll x=(n+1)/2;
ll ans1=Fibo(x);
ans1=(ans1*ans1);
... | 549 |
3,102 | <filename>clang/include/clang/Frontend/MigratorOptions.h<gh_stars>1000+
//===--- MigratorOptions.h - MigratorOptions Options ------------*- 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-Identi... | 295 |
1,831 | /**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <map>
#include <vector>
#include "../Context.h"
#include "Admin... | 541 |
523 | <gh_stars>100-1000
/* Copyright © 2013, Intel Corporation
*
* 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, m... | 1,039 |
2,151 | <filename>services/video_capture/public/cpp/receiver_media_to_mojo_adapter.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 "services/video_capture/public/cpp/receiver_media_to... | 776 |
5,169 | <gh_stars>1000+
{
"name": "QSNetworkTools",
"authors": {
"qiansheng": "<EMAIL>"
},
"license": "MIT",
"requires_arc": true,
"version": "0.0.1",
"homepage": "https://github.com/qs991011/QSNetworkTools",
"swift_version": "5.0",
"source_files": "source/*.swift",
"source": {
"git": "https://githu... | 248 |
3,139 | <filename>jme3-examples/src/main/java/jme3test/texture/TestTextureArray.java<gh_stars>1000+
package jme3test.texture;
import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.math.Vector3f;
import com.jme3.renderer.Caps;
import com.jme3.scene.Geometry;
import com.jme3.scene.Mesh;
impo... | 1,300 |
9,472 | <reponame>kzh3ka/japronto<filename>src/japronto/protocol/tracing.py
from functools import partial
from parser.libpicohttpparser import ffi
from request import HttpRequest
class TracingProtocol:
def __init__(self, on_headers_adapter: callable,
on_body_adapter: callable):
self.requests = [... | 1,146 |
503 | <reponame>jerryleooo/rpc-benchmark-1
package benchmark.rpc.rapidoid.server;
import org.rapidoid.annotation.Controller;
import org.rapidoid.annotation.GET;
import benchmark.bean.User;
import benchmark.service.UserService;
import benchmark.service.UserServiceServerImpl;
@Controller
public class CreateUserController {
... | 150 |
1,260 | // Copyright <NAME> 2013-2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#include <boost/hana/assert.hpp>
#include <boost/hana/equal.hpp>
#include <boost/hana/functional/apply.hpp>
#include <laws/base.hpp>
#include <s... | 4,022 |
626 | <gh_stars>100-1000
import argparse
import gzip
import json
import os
import time
from os import listdir
from os.path import isfile, join
from whoosh.index import create_in
from whoosh.fields import *
def get_id_years(file_paths):
print('Collecting paper ids and their publication years...')
id_years = []
for fil... | 1,190 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Tongue",
"definitions": [
"The fleshy muscular organ in the mouth of a mammal, used for tasting, licking, swallowing, and (in humans) articulating speech.",
"The equivalent organ in other vertebrates, sometimes used (in snakes) as a scent organ or (in... | 373 |
687 | /************************************************************************************
Heavy-light decomposition with segment trees in paths.
Used for finding maximum on the path between two vertices.
O(N) on building, O(logN ^ 2) on query.
Based on problem 1553 from acm.timus.ru
http://ac... | 2,442 |
322 | <reponame>Daisy000888/Open-Vehicle-Monitoring-System-3<gh_stars>100-1000
/*
; Project: Open Vehicle Monitor System
; Date: 21th January 2019
;
; (C) 2019 <NAME> <<EMAIL>>
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associat... | 795 |
839 | <gh_stars>100-1000
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
... | 2,926 |
799 | import demistomock as demisto
from CommonServerPython import *
import requests
import json
import dateparser
import traceback
import urllib.parse
from typing import Any, Dict, Tuple, List, Optional, cast
''' CONSTANTS '''
DATE_FORMAT = '%Y-%m-%dT%H:%M:%SZ'
# Disable insecure warnings
requests.packages.urllib3.disable... | 12,157 |
309 | <filename>examples/django_nyc_demo/noodles/views.py
import time
from django.shortcuts import render
from hendrix.experience import crosstown_traffic, hey_joe
def my_noodles(request):
llama = "Another noodle"
@crosstown_traffic()
def my_long_thing():
for i in range(5):
print("another... | 389 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.