max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
552 | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved
// Copied from IdealPr... | 822 |
931 | <filename>Numbers/Basic_Programs/palindrome_num.c
/* Palindrome or not using iterative approach */
#include <stdio.h>
int main()
{
int n, reverse = 0, remainder, number;
printf("Enter an integer: ");
scanf("%d", &n);
number = n;
while( n!=0 )
{
remainder = n%10;
reverse = reverse*10 + remainder;
n /= 10;
}
if (num... | 198 |
11,356 | <reponame>Bpowers4/turicreate
// Copyright 2002 The Trustees of Indiana University.
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Boost.MultiArray Library
// Authors: <NAME... | 475 |
631 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 1,100 |
6,224 | /*
* Copyright (c) 2019 Foundries.io
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Source material for IPSO Accelerometer object (3313):
* http://www.openmobilealliance.org/tech/profiles/lwm2m/3313.xml
*/
#define LOG_MODULE_NAME net_ipso_accel
#define LOG_LEVEL CONFIG_LWM2M_LOG_LEVEL
#include <logging/log.h... | 2,255 |
626 | <filename>maildown/commands.py
from cleo.commands import Command
from maildown import backends
available_backends = dict(aws=backends.AwsBackend)
class InitCommand(Command):
"""
Configures Maildown for use
init
{--backend=aws : The email backend to use. Defaults to AWS SES }
{options?* ... | 1,698 |
852 | #
# WARNING: This file is in the L1T configuration critical path.
#
# All changes must be explicitly discussed with the L1T offline coordinator.
#
import FWCore.ParameterSet.Config as cms
GlobalParametersRcdSource = cms.ESSource("EmptyESSource",
recordName = cms.string('L1TGlobalParametersRcd'),
iovIsRunNotTim... | 490 |
309 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Script to load the config, run the simulations, and plot them, for the multi-players case.
"""
from __future__ import division, print_function # Python 2 compatibility
__author__ = "<NAME>"
__version__ = "0.9"
from Environment import EvaluatorMultiPlayers, notify
fr... | 1,155 |
5,169 | <filename>Specs/c/a/e/UIVVMaterialComponent/0.5.1/UIVVMaterialComponent.podspec.json
{
"name": "UIVVMaterialComponent",
"version": "0.5.1",
"summary": "Beautiful Material Component for iOS.",
"description": "The SDK is a completely customizable widget that can be used in any iOS app.",
"homepage": "https://gi... | 315 |
8,772 | <reponame>hsartoris-bard/cas
package org.apereo.cas.config;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.cloud.bootstrap.config.PropertySourceLocator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Config... | 237 |
532 | """Static skip connection layout of ``@skippable`` modules."""
from typing import Dict, Iterable, List, Tuple
from torch import nn
from torchgpipe.skip.namespace import Namespace
__all__: List[str] = []
class SkipLayout:
"""Represents a skip connection layout across partitions."""
# Skip routes indexed by... | 1,264 |
1,745 | /* Copyright (C) 2012-2014 <NAME> <<EMAIL>>
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef LIBSIMDPP_SIMDPP_TYPES_INT8X32_H
#define LIBSIMDPP_SIMDPP_TYPES_INT8X32_H
#ifndef LIBSIMD... | 2,718 |
435 | <filename>pycon-us-2016/videos/sebastian-vetter-click-a-pleasure-to-write-a-pleasure-to-use-pycon-2016.json<gh_stars>100-1000
{
"copyright_text": "Standard YouTube License",
"description": "Speaker: <NAME>\n\nWe have a wide variety of packages and modules in Python that help build commandline tools in different way... | 457 |
412 | <filename>regression/ansi-c/float_constant2/main.c
#include <assert.h>
int main()
{
#if defined(__GNUC__) && !defined(__clang__)
// accepted by GCC, but not Clang
assert(0 < 50.0d);
assert(0 < 1.0w);
assert(0 < 1.0q);
assert(0 < 1.0W);
assert(0 < 1.0Q);
assert(0 < 1.0df);
assert(0 < 1.0dd);
assert(... | 165 |
364 | // The MIT License (MIT)
// Copyright (c) 2016, Microsoft
// 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, mo... | 1,927 |
1,255 | <gh_stars>1000+
'''
Language parser for JavaScript
'''
import re
from .code_reader import CodeReader
from .clike import CCppCommentsMixin
from .js_style_language_states import JavaScriptStyleLanguageStates
from .js_style_regex_expression import js_style_regex_expression
class TypeScriptReader(CodeReader, CCppComment... | 637 |
995 | <filename>scripts/external_libs/scapy-2.3.1/python3/scapy/layers/hsrp.py
## This file is part of Scapy
## See http://www.secdev.org/projects/scapy for more informations
## Copyright (C) <NAME> <<EMAIL>>
## This program is published under a GPLv2 license
#################################################################... | 1,565 |
8,747 | // Copyright 2015-2021 Espressif Systems (Shanghai) PTE 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 a... | 4,396 |
1,350 | <reponame>Manny27nyc/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.mixedreality.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.... | 3,747 |
569 | <gh_stars>100-1000
/*
Copyright 1995-2015 Esri
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 a... | 20,239 |
347 | <gh_stars>100-1000
package org.ovirt.engine.core.utils.network.predicate;
import java.util.function.Predicate;
import org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface;
public final class InterfaceByNetworkNamePredicate implements Predicate<VdsNetworkInterface> {
final String hostManageme... | 203 |
4,857 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 1,017 |
425 | <gh_stars>100-1000
{
"name" : "the rice grain mayhem",
"author" : {
"name" : "<NAME>",
"github" : "nicoptere",
"website" : "http://www.barradeau.com",
"twitter" : "nicoptere"
},
"description" : "the casual rice grain badassery.",
"tags" : [ "rice", "grains" ],
"in... | 270 |
734 | <gh_stars>100-1000
package com.cheikh.lazywaimai.ui.adapter.holder;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import butterknife.BindView;
import com.cheikh.lazywaimai.R;
import com.cheikh.lazywaimai.base.BaseViewHolder;
import com.cheikh.lazywaimai.model.bean.CartInfo;
... | 506 |
1,376 | <reponame>maestro-1/gino
import asyncio
import pytest
from .models import db, User, UserType
pytestmark = pytest.mark.asyncio
async def test(bind):
await User.create(nickname="test")
assert isinstance(await User.query.gino.first(), User)
bind.update_execution_options(return_model=False)
assert not ... | 1,013 |
468 | <filename>Examples/libffmpeghelper/audiodecoding.cpp<gh_stars>100-1000
#include "stdafx.h"
struct AudioDecoderContext
{
AVCodec *codec;
AVCodecContext *av_codec_context;
AVPacket av_raw_packet;
AVFrame *frame;
};
struct AudioResamplerContext
{
SwrContext *swr_context;
uint8_t **out_data;
int out_linesize;
... | 3,227 |
793 | # coding: utf-8
import os
from os import path
import copy
import shutil
import unittest
from unittest import mock
import rarfile
from tests import create_test_directory
from tests.unit import assets_path
from tests.unit.getsubtitles import get_function as get_f
from getsub.models import Video
def get_function(**kw... | 2,442 |
2,206 | /*
*
* Copyright (c) 2006-2020, Speedment, 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 requi... | 2,048 |
501 | #!/usr/bin/env python
#
# Author: <NAME> <<EMAIL>>
#
from pyscf import gto, scf, mcscf
'''
Symmetry is not immutable
In PySCF, symmetry is not built-in data structure. Orbitals are stored in C1
symmetry. The irreps and symmetry information are generated on the fly.
We can switch on symmetry for CASSCF solver even ... | 299 |
349 | try:
from public_config import *
except ImportError:
pass
PORT = 9032
SERVICE_NAME = 'project'
MT_PROJECT_ID = 15
JIRA_USER_ID = 127
| 58 |
2,338 | <filename>compiler-rt/lib/gwp_asan/optional/printf.h
//===-- printf.h ------------------------------------------------*- 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 WI... | 441 |
897 | <gh_stars>100-1000
'''
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.
If such an arrangement is not possible, it must rearrange it as the lowest possible order (i.e., sorted in ascending order).
The replacement must be in place and use only constant ... | 537 |
451 | // File Automatically generated by eLiSe
#include "general/all.h"
#include "private/all.h"
#include "cEqAppui_X_C2MEbner.h"
cEqAppui_X_C2MEbner::cEqAppui_X_C2MEbner():
cElCompiledFonc(1)
{
AddIntRef (cIncIntervale("Intr",0,15));
AddIntRef (cIncIntervale("Orient",15,21));
Close(false);
}
void cEqAppui_... | 3,097 |
852 | <reponame>ckamtsikis/cmssw<filename>RecoEcal/EgammaClusterProducers/test/testRecoEcal_cfgV2.py
import FWCore.ParameterSet.Config as cms
process = cms.Process('testRecoEcal')
process.load('RecoEcal.Configuration.RecoEcal_cff')
process.load("Configuration.StandardSequences.Geometry_cff")
process.maxEvents = cms.untrack... | 744 |
5,169 | <reponame>Gantios/Specs<filename>Specs/3/0/f/SdkDemo/3.1.3/SdkDemo.podspec.json
{
"name": "SdkDemo",
"version": "3.1.3",
"license": {
"type": "BSD",
"text": "Copyright (C) 2010 Apple Inc. All Rights Reserved."
},
"homepage": "https://github.com/BizzonInfo/SDKDemo",
"authors": {
"Abiram": "<EMAIL... | 292 |
432 | /*
* modified for Lites 1.1
*
* Aug 1995, <NAME> (<EMAIL>)
* University of Utah, Department of Computer Science
*
* $FreeBSD: src/sys/gnu/ext2fs/ext2_linux_ialloc.c,v 1.13.2.2 2001/08/14 18:03:19 gallatin Exp $
*/
/*
* linux/fs/ext2/ialloc.c
*
* Copyright (C) 1992, 1993, 1994, 1995
* <NAME> (<EMAIL>)
* ... | 6,341 |
375 | <reponame>wulinyun/lumify
package io.lumify.sphinx;
import java.io.*;
public class WavFileUtil {
// see https://ccrma.stanford.edu/courses/422/projects/WaveFormat/
public static void fixWavHeaders(File wavFile, File wavFileNoHeaders) throws IOException {
byte[] buffer = new byte[1024];
InputSt... | 926 |
1,473 | /*
* Copyright 2021 NAVER Corp.
*
* 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 ... | 6,032 |
787 | /*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ <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/LICEN... | 2,088 |
438 | <filename>forge/tests/test_github.py<gh_stars>100-1000
# Copyright 2017 datawire. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/L... | 960 |
854 | __________________________________________________________________________________________________
class Solution {
public:
int findCelebrity(int n) {
vector<bool> candidate(n, true);
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) {
if (candidate[i] && i != j) ... | 737 |
631 | <reponame>kst9395/javalite<gh_stars>100-1000
package org.javalite.activeweb.mojo;
import freemarker.template.TemplateException;
import org.javalite.activeweb.EndpointFinder;
import org.javalite.activeweb.Format;
import org.javalite.activeweb.OpenAPITemplateManager;
import org.javalite.common.Util;
import java.io.IOEx... | 250 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Ménil","circ":"2ème circonscription","dpt":"Mayenne","inscrits":683,"abs":345,"votants":338,"blancs":29,"nuls":6,"exp":303,"res":[{"nuance":"MDM","nom":"<NAME>","voix":175},{"nuance":"LR","nom":"<NAME>","voix":128}]} | 116 |
456 | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2020 <NAME>
// All rights reserved.
#include <djvCore/OS.h>
#include <djvCore/Memory.h>
#include <djvCore/String.h>
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif // WIN32_LEAN_AND_MEAN
#ifndef NOMINMAX
#define NOMINMAX
#endif // NOMINMAX
#inc... | 3,028 |
6,197 | package com.kickstarter.ui;
public final class ArgumentsKey {
private ArgumentsKey() {}
public static final String CANCEL_PLEDGE_PROJECT = "com.kickstarter.ui.fragments.CancelPledgeFragment.project";
public static final String DISCOVERY_SORT_POSITION = "argument_discovery_position";
public static final String ... | 264 |
562 | import pkgutil
def import_submodules(context, root_module, path):
"""
Import all submodules and register them in the ``context`` namespace.
>>> import_submodules(locals(), __name__, __path__)
"""
for loader, name, _ in pkgutil.walk_packages(path, root_module + "."):
module = loader.find_m... | 243 |
350 | <reponame>nathantspencer/SimpleElastix<gh_stars>100-1000
{
"name" : "ApproximateSignedDistanceMapImageFilter",
"template_code_filename" : "ImageFilter",
"template_test_filename" : "ImageFilter",
"doc" : "Docs",
"number_of_inputs" : 1,
"pixel_types" : "IntegerPixelIDTypeList",
"output_pixel_type" : "float"... | 1,281 |
1,039 | package com.android.gpstest.io;
import android.content.Context;
import android.os.Environment;
import android.util.Log;
import android.widget.Toast;
import com.android.gpstest.Application;
import com.android.gpstest.R;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOEx... | 2,604 |
417 | #include <sys/mman.h>
#include <stdlib.h>
#include <cstdint>
#include <cstring>
#include <future>
#include <iostream>
#include <thread>
#include <vector>
#include <gflags/gflags.h>
#include "util.h"
DEFINE_int32(num_runs, 100,
"Number of times to zero the pages (per page count)");
DEFINE_int32(num_pages_min, 1... | 1,818 |
648 | <reponame>jcgeer/synthea
{"resourceType":"ValueSet","id":"us-core-condition-code","text":{"status":"generated","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><h2>US Core Condition Code</h2><div><p>This describes the problem. Diagnosis/Problem List is broadly defined as a series of brief statements that catalog a pa... | 1,190 |
60,067 | <gh_stars>1000+
#ifndef THC_GENERIC_FILE
#error "You must define THC_GENERIC_FILE before including THCGenerateBoolType.h"
#endif
#define scalar_t bool
#define ureal bool
#define accreal int64_t
#define Real Bool
#define CReal CudaBool
#define THC_REAL_IS_BOOL
#line 1 THC_GENERIC_FILE
#include THC_GENERIC_FILE
#undef s... | 190 |
357 | import smtplib, traceback
from email.mime.text import MIMEText
from email.header import Header
from config.mail_config import mail_config
from log.logger import logger as log
def send_mail(subject, content, receiver):
message = MIMEText(content, 'plain', 'utf-8')
message['From'] = Header(mail_config["user"], ... | 349 |
679 | <gh_stars>100-1000
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF license... | 1,125 |
468 | <filename>Bin/GLFunctions/Misc/OES_geometry_shader_Include.h
#define GLI_INCLUDE_GL_OES_GEOMETRY_SHADER
enum Main {
//GL_GEOMETRY_SHADER_OES = 0x8DD9,
//GL_GEOMETRY_SHADER_BIT_OES = 0x00000004,
//GL_GEOMETRY_LINKED_VERTICES_OUT_OES ... | 1,646 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <cstdint>
namespace document { class Bucket; }
namespace vespa::config::content::internal {
class InternalStorDistributionType;
}
namespace storage::lib { class ClusterStateBundle; }
... | 331 |
1,555 |
struct Foo {
int a;
int b;
int c;
int d;
};
int f(struct Foo s)
{
if(s.a != 1)
return 1;
if(s.b != 2)
return 2;
if(s.c != 3)
return 3;
if(s.d != 4)
return 4;
return 0;
}
int
main()
{
struct Foo s;
s.a = 1;
s.b = 2;
s.c = 3;
s.d = 4;
return f(s);
}
| 166 |
496 | #define BOOST_TEST_MAIN
#include <boost/test/included/unit_test.hpp>
// std
#include <array>
#include <string>
#include <tuple>
#include <vector>
// internal
#include <poac/util/meta.hpp>
// 1. std::optional<std::size_t> index_of(const SinglePassRange& rng, const T& t)
// 2. inline auto index_of(InputIterator first,... | 1,758 |
353 | /*
* junixsocket
*
* Copyright 2009-2021 <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 required by applicable... | 3,386 |
2,219 | <filename>src/base/test/test_file_util_win.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/test/test_file_util.h"
#include <aclapi.h>
#include <stddef.h>
#include <wchar.h>
#inclu... | 2,487 |
1,682 | <reponame>haroldl/rest.li
/*
Copyright (c) 2016 LinkedIn Corp.
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 a... | 4,201 |
1,275 | /**
* 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... | 3,679 |
679 | /**************************************************************
*
* 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... | 3,548 |
775 | package com.lauzy.freedom.lbehavior.activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.BottomNavigationView;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.Fragmen... | 2,875 |
683 | <reponame>evoToBetter/opentelemetry-java-instrumentation<gh_stars>100-1000
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.vaadin;
import static io.opentelemetry.javaagent.instrumentation.vaadin.VaadinTracer.tracer;
import static ... | 899 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 7,733 |
17,037 | <filename>diagrams/elastic/observability.py
# This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Elastic
class _Observability(_Elastic):
_type = "observability"
_icon_dir = "resources/elastic/observability"
class APM(_Observability):
_icon = "apm.png"
class Logs(_Observ... | 205 |
5,964 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#ifndef ServicePortMatchOptions_h
#define ServicePortMatchOptions_h
... | 407 |
1,269 | <filename>styled-xml-parser/src/main/java/com/itextpdf/styledxmlparser/jsoup/parser/TokeniserState.java
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2021 iText Group NV
Authors: iText Software.
This program is offered under a commercial and under the AGPL license.
For commercia... | 42,315 |
1,837 | <reponame>neoremind/protostuff
package io.protostuff;
import static org.junit.Assert.assertEquals;
import java.nio.ByteBuffer;
import java.util.List;
import org.junit.Test;
public class LinkBufferTest
{
@Test
public void testWriteLargeVar32() throws Exception
{
LinkBuffer b = new LinkBuffer(8);... | 1,124 |
5,659 | from django.urls import re_path
from cms.test_utils.project.sampleapp import views
urlpatterns = [
re_path(r'^(?P<path>.+)$', views.parentapp_view, name='parentapp_view'),
]
| 70 |
335 | {
"word": "Warbird",
"definitions": [
"A vintage military aircraft."
],
"parts-of-speech": "Noun"
} | 57 |
2,996 | <filename>engine/src/main/java/org/terasology/engine/physics/bullet/shapes/BulletCollisionShape.java
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.physics.bullet.shapes;
import com.badlogic.gdx.physics.bullet.collision.btCollisionShape;
import org.ter... | 361 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Normal",
"definitions": [
"Conforming to a standard; usual, typical, or expected.",
"(of a person) free from physical or mental disorders.",
"(of a line, ray, or other linear feature) intersecting a given line or surface at right angles.",
... | 219 |
31,928 | import os
import boto3
EDGE_PORT = 4566
def handler(event, context):
protocol = "https" if os.environ.get("USE_SSL") else "http"
endpoint_url = "{}://{}:{}".format(protocol, os.environ["LOCALSTACK_HOSTNAME"], EDGE_PORT)
sqs = boto3.client(
"sqs", endpoint_url=endpoint_url, region_name=event["reg... | 213 |
3,486 | package com.thinkaurelius.titan.graphdb.database.idassigner;
import java.time.Duration;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import java.util.concurrent.Callable;
import java.util.concurrent.CancellationException;
import ja... | 4,704 |
721 | package crazypants.enderio.conduits.network;
import java.util.UUID;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import com.enderio.core.common.util.BlockCoord;
import crazypants.enderio.base.EnderIO;
import crazypants.enderio.base.Log;
import crazypants.enderio.base.conduit.IConduit;
import c... | 1,230 |
681 | {
"description":"The second explicit group",
"displayName":"Explicit Group number two",
"aliasInOwner":"EG:II"
}
| 40 |
453 | /*
FUNCTION
<<strspn>>---find initial match
INDEX
strspn
SYNOPSIS
#include <string.h>
size_t strspn(const char *<[s1]>, const char *<[s2]>);
DESCRIPTION
This function computes the length of the initial segment of
the string pointed to by <[s1]> which consists entirely of
characters from the string pointed to ... | 364 |
732 | //
// DSCommonItem.h
// DSLolita
//
// Created by <NAME> on 15/5/25.
// Copyright (c) 2015年 samDing. All rights reserved.
//
@interface DSCommonItem : NSObject
//图标
@property (nonatomic , copy) NSString *icon;
//标题
@property (nonatomic , copy) NSString *title;
//子标题
@property (nonatomic , copy) NSString *subt... | 291 |
14,668 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stddef.h>
#include <memory>
#include <utility>
#include <vector>
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/cont... | 10,753 |
3,296 | <filename>bin/bbfcreate.c
#include "ccv.h"
#include <ctype.h>
#include <getopt.h>
static void exit_with_help(void)
{
printf(
"\n \033[1mUSAGE\033[0m\n\n bbfcreate [OPTION...]\n\n"
" \033[1mREQUIRED OPTIONS\033[0m\n\n"
" --positive-list : text file contains a list of positive files (cropped and scaled to th... | 2,289 |
771 | {
"name": "localGfonts",
"desc": "Download and self-host Google fonts and CSS snippets",
"url": "https://labs.binaryunit.com/localgfonts/",
"tags": [
"CSS",
"Fonts"
],
"maintainers": [],
"addedAt": "2021-10-21"
}
| 101 |
13,585 | <gh_stars>1000+
package com.baomidou.mybatisplus.test.version;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.OptimisticLockerInnerInterceptor;
import com.baomidou.mybatisplus.test.... | 1,431 |
1,288 | // Copyright 2014 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "packager/media/base/media_sample.h"
#include <inttypes.h>
#include "packager/base/logg... | 2,078 |
3,227 | <reponame>ffteja/cgal
// Copyright (c) 2020 GeometryFactory Sarl (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s): <NAME> <<EMAIL>>
#include "EnvelopeFunctions.h"
#include "Arrange... | 515 |
1,442 | #include <poincare/norm_cdf.h>
#include <poincare/layout_helper.h>
#include <poincare/normal_distribution.h>
#include <poincare/serialization_helper.h>
#include <assert.h>
namespace Poincare {
constexpr Expression::FunctionHelper NormCDF::s_functionHelper;
int NormCDFNode::numberOfChildren() const { return NormCDF::... | 498 |
8,027 | <filename>src/com/facebook/buck/parser/detector/TargetConfigurationDetector.java
/*
* 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
*
... | 699 |
475 | public class TVChangeCommand implements AbstractCommand
{
private Television tv;
public TVChangeCommand()
{
tv = new Television();
}
public void execute()
{
tv.changeChannel();
}
} | 59 |
348 | <gh_stars>100-1000
{"nom":"Maulan","circ":"1ère circonscription","dpt":"Meuse","inscrits":94,"abs":42,"votants":52,"blancs":2,"nuls":0,"exp":50,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":27},{"nuance":"REM","nom":"<NAME>","voix":23}]} | 99 |
485 | <reponame>leileixiao/Macropodus
# !/usr/bin/python
# -*- coding: utf-8 -*-
# @time : 2020/1/16 22:34
# @author : Mo
# @function: dump of keras, error, no use.
from tensorflow.python.keras.models import save_model, load_model, Model
import tempfile
import types
def make_keras_picklable():
def __getstate__(se... | 424 |
1,355 | // Copyright (c) 2018 <NAME>
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#ifndef INCLUDE_JET_POINT_SIMPLE_LIST_SEARCHER3_H_
#define INCLUDE_JET_POINT_SIMPLE_LIST_SEARCHER3_H_
#inc... | 1,257 |
410 | <filename>Giveme5W1H/examples/datasets/news_cluster/data_raw/0cd6c1c92cf1a610cf97c97ddf9bf97fd44b9c6c177dbf6014c3bca2.json
{
"authors": [
"<NAME>"
],
"date_download": "2018-01-08T00:17:24",
"date_modify": null,
"date_publish": "2017-12-27T00:00:00",
"description": "American Airlines apologizes after G L... | 992 |
1,093 | /*
* Copyright 2002-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 a... | 1,248 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Rivière-Saas-et-Gourby","circ":"2ème circonscription","dpt":"Landes","inscrits":913,"abs":444,"votants":469,"blancs":33,"nuls":16,"exp":420,"res":[{"nuance":"REM","nom":"<NAME>","voix":255},{"nuance":"FI","nom":"<NAME>","voix":165}]} | 118 |
473 | import numpy as np
from allrank.click_models.cascade_models import BaseCascadeModel, DiverseClicksModel
from tests.click_models import click
base_click_model = BaseCascadeModel(0.0, 1)
click_model = DiverseClicksModel(base_click_model)
def test_diverse_clicks_model_simple():
assert click(click_model, np.array([... | 257 |
454 | <gh_stars>100-1000
package io.vertx.tp.plugin.excel.tpl;
import io.vertx.codegen.annotations.Fluent;
import io.vertx.tp.plugin.excel.ExTpl;
import io.vertx.up.commune.element.TypeAtom;
import io.vertx.up.eon.Values;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.... | 1,875 |
607 | package com.sandwich.koan.path.xmltransformation;
import com.sandwich.koan.constant.KoanConstants;
public class XmlVariableDictionary {
public static final String METHOD_NAME = wrapParam("method_name");
public static final String FILE_NAME = wrapParam("file_name");
public static final String FILE_PATH = wrapPa... | 175 |
621 | #!/usr/bin/env python3
import argparse
import gym
import universe
import numpy as np
import torch
import torch.nn.functional as F
from lib import wob_vnc, model_vnc
ENV_NAME = "wob.mini.ClickDialog-v0"
REMOTE_ADDR = 'vnc://localhost:5900+15900'
def step_env(env, action):
idle_count = 0
while True:
... | 1,110 |
1,144 | <reponame>dram/metasfresh<filename>backend/de.metas.manufacturing/src/main/java/de/metas/manufacturing/generatedcomponents/PP_ComponentGenerator.java
/*
* #%L
* de.metas.manufacturing
* %%
* Copyright (C) 2020 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the t... | 612 |
654 | /*
* Copyright (C) 2014 <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 required by applicable law or agreed to i... | 4,017 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.