max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
335 | {
"word": "Westward",
"definitions": [
"Towards the west."
],
"parts-of-speech": "Adjective"
} | 59 |
1,056 | <reponame>timfel/netbeans
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.... | 12,628 |
335 | <filename>H/Hail_noun.json<gh_stars>100-1000
{
"word": "Hail",
"definitions": [
"Pellets of frozen rain which fall in showers from cumulonimbus clouds.",
"A large number of things hurled forcefully through the air."
],
"parts-of-speech": "Noun"
} | 111 |
1,391 | #include <u.h>
#include <libc.h>
#include <bin.h>
#include <httpd.h>
typedef struct Error Error;
struct Error
{
char *num;
char *concise;
char *verbose;
};
Error errormsg[] =
{
/* HInternal */ {"500 Internal Error", "Internal Error",
"This server could not process your request due to an internal error."},
/* ... | 1,053 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 457 |
634 | <filename>platform/lang-impl/src/com/intellij/openapi/roots/ui/componentsList/layout/OrientedDimensionSum.java
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... | 422 |
3,834 | <reponame>cmarincia/enso
package org.enso.interpreter.epb.runtime;
import com.oracle.truffle.api.exception.AbstractTruffleException;
import com.oracle.truffle.api.interop.InteropLibrary;
import com.oracle.truffle.api.library.ExportLibrary;
import com.oracle.truffle.api.library.ExportMessage;
/**
* A wrapper for exce... | 578 |
5,937 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//+-----------------------------------------------------------------------------
//
//
// $TAG ENGR
// $Mod... | 47,773 |
2,744 | import logging
from aiogram import Bot, Dispatcher, executor, types
from aiogram.bot.api import TelegramAPIServer
from aiogram.types import ContentType
API_TOKEN = 'BOT TOKEN HERE'
# Configure logging
logging.basicConfig(level=logging.INFO)
# Create private Bot API server endpoints wrapper
local_server = TelegramAP... | 229 |
460 | /*
* Copyright (C) 2002 <NAME> (<EMAIL>)
* (C) 2002 <NAME> (<EMAIL>)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License.
*
* ... | 916 |
505 | <filename>src/sort.py<gh_stars>100-1000
"""
As implemented in https://github.com/abewley/sort but with some modifications
"""
from __future__ import print_function
import lib.utils as utils
import numpy as np
from src.data_association import associate_detections_to_trackers
from src.kalman_tracker import KalmanBoxTra... | 1,639 |
351 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""\
Anagrams
<NAME> - <NAME> - 2013-2019
"""
# snip{
# pylint: disable=anomalous-backslash-in-string
def anagrams(S): # S is a set of strings
"""group a set of words into anagrams
:param S: set of strings
:returns: list of lists of strings... | 458 |
32,544 | package com.baeldung.netty.http2.server;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelDuplexHandler;
import io.netty.channel.ChannelHandler.Sharable;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.HttpResponseStatus;
import io.netty.... | 785 |
3,714 | <filename>labml_nn/transformers/hour_glass/__init__.py
"""
---
title: Hierarchical Transformers Are More Efficient Language Models
summary: >
This is an annotated implementation/tutorial of hourglass model in PyTorch.
---
# Hierarchical Transformers Are More Efficient Language Models
This is a [PyTorch](https://pyt... | 4,323 |
8,629 | #include "WatermarkTransform.h"
#include <Columns/ColumnTuple.h>
#include <Columns/ColumnsNumber.h>
#include <Storages/WindowView/StorageWindowView.h>
namespace DB
{
WatermarkTransform::WatermarkTransform(
const Block & header_,
StorageWindowView & storage_,
const String & window_column_name_,
UInt32... | 547 |
15,193 | from bokeh.io import export_png
from bokeh.plotting import figure
# prepare some data
x = [1, 2, 3, 4, 5]
y = [4, 5, 5, 7, 2]
# create a new plot with fixed dimensions
p = figure(width=350, height=250)
# add a circle renderer
circle = p.circle(x, y, fill_color="red", size=15)
# save the results to a file
export_png... | 129 |
945 | <gh_stars>100-1000
# Copyright 2022 MosaicML Composer authors
# SPDX-License-Identifier: Apache-2.0
"""Progressively freeze the layers of the network during training, starting with the earlier layers.
See the :doc:`Method Card </method_cards/layer_freezing>` for more details.
"""
from composer.algorithms.layer_freez... | 152 |
396 | package com.yeungeek.mvp.common;
/**
* Created by yeungeek on 2016/1/8.
*/
public interface MvpView {
}
| 43 |
953 | <reponame>HoppingTappy/sakura
/*! @file */
/*
Copyright (C) 2018-2021, Sakura Editor Organization
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use ... | 1,540 |
595 | <filename>lib/sw_apps/zynqmp_pmufw/src/xpfw_mod_extwdt.c
/******************************************************************************
* Copyright (c) 2021 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
#include "xpfw_m... | 723 |
1,194 | <reponame>MFAshby/hapi-fhir<filename>hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/search/builder/SearchQueryExecutorsTest.java
package ca.uhn.fhir.jpa.search.builder;
import com.google.common.collect.Streams;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import ja... | 650 |
764 | {
"symbol":"TC",
"address":"0x2f7315dc40A7f1201b903d65dBD0eEC93cD14f37",
"overview":{
"en":"TasteChain is a public chain that focuses on natural ecology,quality of life and future technology.It is committed to creating a distributed and credible top-level ecosystem.Through the public chain aggregation cluster,the ... | 527 |
3,442 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 2,159 |
1,666 | <reponame>Dexus/node-compiler<gh_stars>1000+
#define NODE_EXPERIMENTAL_HTTP 1
#include "node_http_parser_impl.h"
#include "memory_tracker-inl.h"
#include "node_metadata.h"
#include "util-inl.h"
namespace node {
namespace per_process {
const char* const llhttp_version =
NODE_STRINGIFY(LLHTTP_VERSION_MAJOR)
".... | 262 |
552 | #include "stdafx.h"
#include "Archetype.h"
#include "ComponentView.h"
#include "EcsController.h"
namespace et {
namespace fw {
//====================
// Component Accessor
//====================
//-------------------------
// ComponentView::Accessor
//
// Iteratable view of a selection of components
//
ComponentV... | 1,094 |
312 | # Copyright (c) 2019 <NAME>
# Licensed under MIT License
import json
import logging
import re
from colorama import init as colorama_init
from colorama import Fore, Back, Style
class Log:
"""Class responsible for logging information."""
# Define header styles
HEADER_W = [Fore.BLACK, Back.WHITE, Style.BR... | 1,478 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RU... | 1,544 |
3,494 | #pragma once
#include "cinder/CinderResources.h"
#define RES_FONT CINDER_RESOURCE( ../resources/, YanoneKaffeesatz-Regular.ttf, 128, TTF_FONT )
#define RES_BACKGROUND_IMAGE CINDER_RESOURCE( ../resources/, background.png, 128, IMAGE )
#define RES_CIRCLE_IMAGE CINDER_RESOURCE( ../resources/, circle.png, 129, IMAGE )... | 197 |
335 | <reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000
{
"word": "Like",
"definitions": [
"(of a person or thing) having similar qualities or characteristics to another person or thing.",
"(of a portrait or other image) having a faithful resemblance to the original."
],
"parts-of-speech": "... | 118 |
6,036 | #pragma once
#include "core/framework/op_kernel.h"
#include "core/framework/func_api.h"
#include "core/framework/op_kernel_context_internal.h"
#include "core/graph/function.h"
namespace onnxruntime {
void* allocate_helper_func(void* allocator, size_t alignment, size_t size);
void release_helper_func(void* allocator,... | 780 |
11,356 | <filename>test/project_dependencies.py
#!/usr/bin/python
# Copyright 2003 <NAME>
# Copyright 2002, 2003, 2004 <NAME>
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
# Test that we can specify a dependency property in projec... | 437 |
2,061 | class ClickWebException(Exception):
pass
class CommandNotFound(ClickWebException):
pass
| 36 |
534 | <filename>src/main/resources/assets/mekanism/models/block/purification_chamber.json<gh_stars>100-1000
{
"parent": "mekanism:block/machine",
"textures": {
"sides": "mekanism:block/purification_chamber/right",
"front": "mekanism:block/purification_chamber/front",
"west": "mekanism:block/purification_chamb... | 217 |
365 | // Copyright 2013 Blender Foundation. All rights reserved.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// ... | 414 |
682 | <filename>vpr/src/base/atom_netlist.h
#ifndef ATOM_NETLIST_H
#define ATOM_NETLIST_H
/**
* @file
* @brief This file defines the AtomNetlist class used to store and manipulate
* the primitive (or atom) netlist.
*
* Overview
* ========
* The AtomNetlist is derived from the Netlist class, and contains inform... | 3,875 |
2,915 | /*!The Treasure Box Library
*
* 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 wr... | 1,767 |
13,709 | #import "RNNOptions.h"
@interface RNNSearchBarOptions : RNNOptions
@property(nonatomic, strong) Bool *visible;
@property(nonatomic, strong) Bool *focus;
@property(nonatomic, strong) Bool *hideOnScroll;
@property(nonatomic, strong) Bool *hideTopBarOnFocus;
@property(nonatomic, strong) Bool *obscuresBackgroundDuringPre... | 168 |
2,508 | <gh_stars>1000+
#ifdef HAVE_CONFIG_H
#include "../../ext_config.h"
#endif
#include <php.h>
#include "../../php_ext.h"
#include "../../ext.h"
#include <Zend/zend_operators.h>
#include <Zend/zend_exceptions.h>
#include <Zend/zend_interfaces.h>
#include "kernel/main.h"
ZEPHIR_INIT_CLASS(Stub_TypeHinting_TestAbstract... | 477 |
755 | /**
* @project: Overload
* @author: <NAME>.
* @licence: MIT
*/
#pragma once
namespace OvRendering::Geometry
{
/**
* Data structure that defines the geometry of a vertex
*/
struct Vertex
{
float position[3];
float texCoords[2];
float normals[3];
float tangent[3];
float bitangent[3];
};
} | 122 |
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 ... | 1,764 |
2,151 | // Copyright 2018 The Feed 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... | 626 |
1,350 | <filename>sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineMatchCondition.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.r... | 2,403 |
1,781 | <gh_stars>1000+
package chapter4.section4;
/**
* Created by <NAME> on 27/11/17.
*/
public class Topological {
private Iterable<Integer> topologicalOrder;
public Topological(EdgeWeightedDigraph edgeWeightedDigraph) {
EdgeWeightedDirectedCycle cycleFinder = new EdgeWeightedDirectedCycle(edgeWeightedD... | 261 |
742 | <gh_stars>100-1000
package org.support.project.di;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* DIで制御する事を表すアノテーション
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE... | 401 |
1,653 | <reponame>KayaDevSolutions/deepgaze<filename>examples/ex_motion_detectors_comparison_video/ex_motion_detectors_comparison_video.py
#!/usr/bin/env python
#The MIT License (MIT)
#Copyright (c) 2016 <NAME>
#
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ... | 1,136 |
447 | """
Vulnerability service interfaces and implementations for `pip-audit`.
"""
from .interface import (
Dependency,
ResolvedDependency,
ServiceError,
SkippedDependency,
VulnerabilityResult,
VulnerabilityService,
)
from .osv import OsvService
from .pypi import PyPIService
__all__ = [
"Depend... | 185 |
5,169 | <reponame>Gantios/Specs
{
"name": "FingerSDKXIF",
"version": "1.0.1",
"summary": "A short description of FingerSDKXIF.",
"description": "this is my first FrameWork",
"homepage": "http://EXAMPLE/FingerSDKXIF",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"": ""
},
"platfo... | 242 |
1,980 | """
LanguageTool Grammar Checker
------------------------------
"""
import language_tool_python
from textattack.constraints import Constraint
class LanguageTool(Constraint):
"""Uses languagetool to determine if two sentences have the same number of
grammatical erors. (https://languagetool.org/)
Args:
... | 680 |
2,151 | // 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 SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_
#define SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_
#include <memory>
#include "base/macros.h"
#includ... | 1,149 |
468 | """Base task."""
import typing
import abc
import torch
from torch import nn
from matchzoo.engine import base_metric
from matchzoo.utils import parse_metric, parse_loss
class BaseTask(abc.ABC):
"""Base Task, shouldn't be used directly."""
TYPE = 'base'
def __init__(self, losses=None, metrics=None):
... | 1,188 |
2,338 | /*
* Copyright 2010 INRIA Saclay
* Copyright 2013 Ecole Normale Superieure
*
* Use of this software is governed by the MIT license
*
* Written by <NAME>, INRIA Saclay - Ile-de-France,
* Parc Club Orsay Universite, ZAC des vignes, 4 rue <NAME>,
* 91893 Orsay, France
* and Ecole Normale Superieure, 45 ... | 930 |
331 | package com.lauzy.freedom.data.database;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.freedom.lauzy.model.RecentSongBean;
import java.util.ArrayList;
import java.util.List;
/**
* Desc : 最近播放数据库
* Aut... | 4,014 |
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... | 2,725 |
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,607 |
776 | <reponame>Diffblue-benchmarks/actframework
package act.data;
/*-
* #%L
* ACT Framework
* %%
* Copyright (C) 2014 - 2017 ActFramework
* %%
* 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 a... | 690 |
348 | {"nom":"Rillans","circ":"3ème circonscription","dpt":"Doubs","inscrits":63,"abs":20,"votants":43,"blancs":2,"nuls":0,"exp":41,"res":[{"nuance":"LR","nom":"<NAME>","voix":24},{"nuance":"REM","nom":"M. <NAME>","voix":17}]} | 90 |
1,338 | <reponame>Kirishikesan/haiku
/* File System indices
**
** Distributed under the terms of the MIT License.
*/
#ifndef _FSSH_FS_INDEX_H
#define _FSSH_FS_INDEX_H
#include "fssh_defs.h"
#include "fssh_dirent.h"
typedef struct fssh_index_info {
uint32_t type;
fssh_off_t size;
fssh_time_t modification_time;
fssh_time... | 470 |
341 | <filename>column-samples/person-localization/person-localization.json
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"defaultHoverField": "@currentField",
"txtContent": "=if(@lcid==1031,'Erstellt von',if(@lcid==1053,'Skapad av',if(@lcid==1043,'... | 149 |
628 | from django.db import models
from .base import BaseModel
class TagManager(models.Manager):
"""Manager that filters out system tags by default.
"""
def get_queryset(self):
return super(TagManager, self).get_queryset().filter(system=False)
class Tag(BaseModel):
name = models.CharField(db_inde... | 484 |
703 | <gh_stars>100-1000
#pragma once
// This just implements a very simple multi-threaded job system.
// It doesn't use lock free queues or anything fancy like that.
// It doesn't support cancellation or priorities or anything like that either.
// It's just a very simple way to distribute a meaningful amount of
// 'work' a... | 430 |
3,651 | package com.orientechnologies.orient.core.tx;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInput;
import java.io.DataInputStream;
import java.io.DataOutput;
import java.io.DataOutputStream;
import java.io.IOException;
import java.util.concurrent.CountDownLatch;
public ... | 660 |
14,668 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
struct A {
A&& Pass();
};
struct B {
B& Pass();
};
struct C {
A a;
};
struct D {
D&& NotPass();
};
struct E {
E() : a(new A) {}
~E() { del... | 400 |
2,990 | /*
* GDevelop Core
* Copyright 2008-2016 <NAME> (<EMAIL>). All rights
* reserved. This project is released under the MIT License.
*/
#include "GDCore/IDE/Events/EventsTypesLister.h"
#include <map>
#include <memory>
#include <vector>
#include "GDCore/Events/Event.h"
#include "GDCore/Events/EventsList.h"
#include "GD... | 338 |
2,322 | /*
* RichEdit - ITextHost implementation for windowed richedit controls
*
* Copyright 2009 by <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the ... | 27,361 |
1,155 | package ma.glasnost.orika.test.community;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import org.junit.Test;
import ma.glasnost.orika.OrikaSystemProperties;
import ma.glasnost.orika.impl.DefaultMapperFactory;
pub... | 1,587 |
380 | <filename>mini/threading/locked_value.h
#pragma once
#include "mutex.h"
#include "event.h"
namespace mini::threading {
template <
typename T
>
class locked_value
{
MINI_MAKE_NONCOPYABLE(locked_value);
public:
locked_value(
locked_value<T>&& other
) = default;
locked_value(
const T& i... | 415 |
3,269 | <gh_stars>1000+
// Time: O(n + m)
// Space: O(n + m)
class Solution {
public:
int largestPathValue(string colors, vector<vector<int>>& edges) {
vector<vector<int>> adj(size(colors));
vector<int> in_degree(size(colors));
for (const auto& edge : edges) {
adj[edge[0]].emplace_back... | 753 |
389 | /*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.internal.gosu.parser;
import gw.lang.reflect.gs.IGosuProgram;
import gw.lang.reflect.IType;
import gw.lang.parser.ISymbolTable;
import gw.lang.parser.ITokenizerInstructor;
/**
*/
public interface IGosuProgramInternal extends IGosuProgram, IGosuClassIntern... | 444 |
678 | /*
* SectionContents.h
* MachOView
*
* Created by psaghelyi on 15/09/2010.
*
*/
#import "MachOLayout.h"
@interface MachOLayout (SectionContents)
- (MVNode *)createPointersNode:(MVNode *)parent
caption:(NSString *)caption
location:(uint32_t)location
... | 1,486 |
469 | <filename>androidbrowserhelper/src/androidTest/java/com/google/androidbrowserhelper/trusted/testutils/TestUtil.java
// Copyright 2019 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 obta... | 1,066 |
406 | <reponame>ernstki/kASA<gh_stars>100-1000
/***************************************************************************
* include/stxxl/bits/parallel/tags.h
*
* Tags for compile-time options.
* Extracted from MCSTL http://algo2.iti.uni-karlsruhe.de/singler/mcstl/
*
* Part of the STXXL. See http://stxxl.sourcefo... | 379 |
713 | <reponame>franz1981/infinispan
package org.infinispan.server.functional;
import static org.junit.Assert.assertEquals;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.InetAddress;
import java.net.URI;
import java.util.Iterator;
import java.util.Properties;
import java... | 1,140 |
978 | """
Reference: <NAME> et al., "Learning Hierarchical Representation Model for NextBasket Recommendation." in SIGIR 2015.
@author: wubin
"""
import tensorflow as tf
import numpy as np
from time import time
from util import timer
from util import learner, tool
from util.tool import csr_to_user_dict_bytime
from model.Abst... | 3,897 |
1,486 | #ifndef RAW_H
#define RAW_H
#include <hiredis/hiredis.h>
#include <hiredis/async.h>
struct cmd;
struct http_client;
void
raw_reply(redisAsyncContext *c, void *r, void *privdata);
struct cmd *
raw_ws_extract(struct http_client *c, const char *p, size_t sz);
#endif
| 112 |
355 | <gh_stars>100-1000
package com.github.lindenb.jvarkit.util.vcf;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
public class ContigPosTest{
@DataProvider(name = "src1")
public Object[][] createData1() {
return new Object[][]{
{"chr1:123","chr1",123}
... | 297 |
427 | <filename>src/lib_java/java_classes/enums/AutomapMode.java
package vizdoom;
public enum AutomapMode{
NORMAL,
WHOLE,
OBJECTS,
OBJECTS_WITH_SIZE;
} | 73 |
1,047 | package com.hss01248.dialogutildemo;
import android.app.AlertDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import android.widget.TextView;
import com.orhanobut.logger.Logger;
impo... | 1,630 |
391 | /*
*
* Copyright (C) 2020 iQIYI (www.iqiyi.com)
*
* 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 ... | 6,438 |
852 | import FWCore.ParameterSet.Config as cms
# File: RecHits.cfi
# Author: <NAME>
# Date: 03.04.2008
#
# Fill validation histograms for ECAL and HCAL RecHits.
# Assumes ecalRecHit:EcalRecHitsEE, ecalRecHit:EcalRecHitsEB, hbhereco, horeco, and hfreco
# are in the event.
from DQMOffline.JetMET.RecHits_cfi import *
analyzeRe... | 146 |
321 | <reponame>AppSecAI-TEST/qalingo-engine<gh_stars>100-1000
/**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENSE-2.0
*
* Copyright (c) Hoteia, 2012-2014
... | 5,508 |
879 | package org.zstack.header.rest;
import org.springframework.http.HttpEntity;
import org.zstack.header.core.AsyncBackup;
import org.zstack.header.errorcode.ErrorCode;
import org.zstack.header.exception.CloudRuntimeException;
public abstract class JsonAsyncRESTCallback<T> extends AsyncRESTCallback {
public JsonAsync... | 228 |
9,778 | <filename>src/bin/pg_basebackup/bbstreamer_inject.c<gh_stars>1000+
/*-------------------------------------------------------------------------
*
* bbstreamer_inject.c
*
* Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
*
* IDENTIFICATION
* src/bin/pg_basebackup/bbstreamer_inject.c
*----... | 3,000 |
3,921 | /*
* Created by LuaView.
* Copyright (c) 2017, Alibaba Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
package com.taobao.luaview.userdata.ui;
import android.gr... | 728 |
2,073 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not... | 1,359 |
1,645 | /*
* Seldon -- open source prediction engine
* =======================================
*
* Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/)
*
* ********************************************************************************************
*
* Licensed under the Apache License, V... | 896 |
501 | <reponame>shujaatak/finplot
#!/usr/bin/env python3
from collections import defaultdict
import dateutil.parser
import finplot as fplt
import numpy as np
import pandas as pd
import requests
baseurl = 'https://www.bitmex.com/api'
def local2timestamp(s):
return int(dateutil.parser.parse(s).timestamp())
def downl... | 1,859 |
6,989 | <filename>chatbot_env/Lib/site-packages/sklearn/inspection/partial_dependence.py
# THIS FILE WAS AUTOMATICALLY GENERATED BY deprecated_modules.py
import sys
from . import _partial_dependence
from ..externals._pep562 import Pep562
from ..utils.deprecation import _raise_dep_warning_if_not_pytest
deprecated_path = 'skle... | 205 |
1,128 | <filename>configs/fdf/retinanet/128.py
import os
_base_config_ = "base.py"
model_url = "http://folk.ntnu.no/haakohu/checkpoints/fdf/retinanet128.ckpt"
models = dict(
generator=dict(
type="MSGGenerator",
scalar_pose_input=True
),
discriminator=dict(
residual=True
)
)
trainer = ... | 179 |
348 | {"nom":"Beaulieu","circ":"4ème circonscription","dpt":"Puy-de-Dôme","inscrits":346,"abs":221,"votants":125,"blancs":16,"nuls":3,"exp":106,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":63},{"nuance":"MDM","nom":"<NAME>","voix":43}]} | 97 |
1,293 | /*
* Copyright (c) 2020 - Manifold Systems LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,686 |
488 | // test lots of combinations of forwarding
template<class T, int I> T f(T x, T i[I]);
template<class T, int I> T f(T x, T i[I]);
template<class T, int I> T f(T x, T i[I]) {
return x;
}
template<class T, int I> T f(T x, T i[I]);
template<class T, int I> T f(T x, T i[I]);
template<class T, int I> struct A;
template<cl... | 435 |
603 | <gh_stars>100-1000
import json
import os
from whylogs.proto import DoublesMessage
from whylogs.util import protobuf
_MY_DIR = os.path.realpath(os.path.dirname(__file__))
def test_message_to_dict_returns_default_values():
msg1 = DoublesMessage(min=0, max=0, sum=0, count=10)
d1 = protobuf.message_to_dict(msg1... | 415 |
3,181 | /*
* SPDX-FileCopyrightText: 2020, microG Project Team
* SPDX-License-Identifier: Apache-2.0
*/
package org.microg.gms.nearby.exposurenotification;
import static org.microg.gms.common.Constants.GMS_VERSION_CODE;
public class Constants {
public static final String ACTION_EXPOSURE_NOTIFICATION_SETTINGS = "com.g... | 600 |
348 | <filename>docs/data/leg-t2/021/02104685.json<gh_stars>100-1000
{"nom":"Villaines-en-Duesmois","circ":"4ème circonscription","dpt":"Côte-d'Or","inscrits":215,"abs":119,"votants":96,"blancs":7,"nuls":1,"exp":88,"res":[{"nuance":"REM","nom":"<NAME>","voix":51},{"nuance":"LR","nom":"M. <NAME>","voix":37}]} | 130 |
461 | <reponame>The0x539/wasp<gh_stars>100-1000
/* category data */
enum category {
#include "categories.cat"
};
extern enum category category(wint_t ucs);
| 58 |
3,051 | package org.gridkit.sjk.test.console.junit4;
import java.util.ArrayList;
import java.util.List;
import org.apache.logging.log4j.util.Supplier;
import org.gridkit.sjk.test.console.ConsoleTracker;
import org.junit.rules.TestWatcher;
import org.junit.runner.Description;
public class ConsoleRule extends TestWatcher {
... | 1,035 |
310 | <gh_stars>100-1000
package org.seasar.doma.jdbc;
/** A provider for a {@link Config} object. */
public interface ConfigProvider {
/**
* Returns the configuration.
*
* @return the configuration
*/
Config getConfig();
}
| 79 |
809 | <reponame>MrSquanchee/dev-embox
#include <stdio.h>
#include <embox/unit.h>
EMBOX_UNIT_INIT(reent_init);
struct _reent {
int _errno; /* local copy of errno */
/* FILE is a big struct and may change over time. To try to achieve binary
compatibility with future versions, put stdin,stdout,stderr here.... | 264 |
351 | <filename>zulip_bots/zulip_bots/bots/chessbot/test_chessbot.py
from zulip_bots.test_lib import BotTestCase, DefaultTests
class TestChessBot(BotTestCase, DefaultTests):
bot_name = "chessbot"
START_RESPONSE = """New game! The board looks like this:
```
a b c d e f g h
8 ♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜ 8
7 ♟ ♟ ♟ ♟ ♟ ♟ ♟ ♟ 7... | 1,427 |
2,770 | <reponame>abadurehman/FlowingDrawer
package com.mxn.soul.flowingdrawer;
import com.squareup.picasso.Picasso;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.NavigationView;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import an... | 829 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.