max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
348 | <filename>docs/data/leg-t2/071/07101226.json
{"nom":"Grevilly","circ":"1ère circonscription","dpt":"Saône-et-Loire","inscrits":35,"abs":10,"votants":25,"blancs":4,"nuls":2,"exp":19,"res":[{"nuance":"REM","nom":"<NAME>","voix":12},{"nuance":"LR","nom":"<NAME>","voix":7}]} | 114 |
13,006 | /* Copyright 2017 The TensorFlow 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/LICENSE-2.0
Unless required by applicable law or a... | 1,216 |
1,602 | <filename>third-party/qthread/qthread-src/include/qt_blocking_structs.h
#ifndef QT_BLOCKING_STRUCTS_H
#define QT_BLOCKING_STRUCTS_H
#include <stdlib.h> /* for malloc() and free() */
#include "qt_mpool.h"
#include "qt_shepherd_innards.h"
#include "qt_profiling.h"
#include "qt_debug.h"
typedef enum blocking... | 1,445 |
658 | {
"name": "svelte-devtools",
"version": "1.3.0",
"description": "Browser devtools extension for debugging Svelte applications.",
"repository": "github:RedHatter/svelte-devtools",
"license": "MIT",
"scripts": {
"build:firefox": "cross-env TARGET=firefox rollup -c",
"build:chrome": "cross-env TARGET=c... | 664 |
2,757 | <gh_stars>1000+
/** @file
The header file for Boot Script Executer module.
This driver is dispatched by Dxe core and the driver will reload itself to ACPI NVS memory
in the entry point. The functionality is to interpret and restore the S3 boot script
Copyright (c) 2013-2015 Intel Corporation.
This program an... | 865 |
475 | <filename>data_hacking/min_hash/__init__.py
'''Package for Banded Min Hash based Similarity Calculations'''
from min_hash import *
| 41 |
852 | #include "CondFormats/CSCObjects/interface/CSCcrosstalk.h"
#include "FWCore/Utilities/interface/typelookup.h"
TYPELOOKUP_DATA_REG(CSCcrosstalk);
| 62 |
620 | #include <type_traits>
/* Type list */
template <typename... Args>
struct type_list;
template <typename Type>
struct type_list<Type> {
using head = Type;
};
template <typename Head, typename... Tail>
struct type_list<Head, Tail...> : type_list<Head> {
using tail = type_list<Tail...>;
};
... | 1,558 |
483 | <filename>nitrite-rocksdb-adapter/src/test/java/org/dizitart/no2/rocksdb/RocksDBStoreUtilsTest.java
/*
* Copyright (c) 2017-2021 Nitrite 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 ... | 496 |
1,707 | #pragma once
//------------------------------------------------------------------------------
/**
@class Oryol::_priv::winInputMgr
@ingroup _priv
@brief provide input for the Windows D3D-based ports
Input handling for the D3D ports is similar to GLFW (on purpose), most
of the window and input handl... | 507 |
9,724 | <reponame>yunku2002/emscripten
/*
* Copyright 2018 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*/
#include <stdio.h>
#include... | 1,320 |
348 | {"nom":"<NAME>","circ":"5ème circonscription","dpt":"Maine-et-Loire","inscrits":2533,"abs":1449,"votants":1084,"blancs":38,"nuls":23,"exp":1023,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":740},{"nuance":"DVD","nom":"M. <NAME>","voix":283}]} | 101 |
341 | <reponame>realulim/extentreports-java<gh_stars>100-1000
package com.aventstack.extentreports.config.external;
@FunctionalInterface
public interface ConfigLoadable<T> {
void apply();
}
| 64 |
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 ... | 970 |
377 | /*******************************************************************************
* * Copyright 2012 Impetus Infotech.
* *
* * 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
* *
*... | 1,460 |
12,964 | /**
* An implementation of an indexed binary heap priority queue.
*
* <p>This implementation supports arbitrary keys with comparable values. To use arbitrary keys
* (such as strings or objects) first map all your keys to the integer domain [0, N) where N is the
* number of keys you have and then use the mapping wi... | 220 |
5,169 | {
"name": "ACMediaFrame",
"version": "2.0.3",
"summary": "An easy way to display image or video form album or camera, and get more info of image or video to upload and so on.",
"homepage": "https://github.com/honeycao/ACMediaFrame",
"license": "MIT",
"authors": {
"ArthurCao": "<EMAIL>"
},
"platforms... | 355 |
2,479 | <reponame>ziransun/wpt
""" brain-dead simple parser for ini-style files.
(C) <NAME>, <NAME> -- MIT licensed
"""
__all__ = ['IniConfig', 'ParseError']
COMMENTCHARS = "#;"
class ParseError(Exception):
def __init__(self, path, lineno, msg):
Exception.__init__(self, path, lineno, msg)
self.path = pat... | 2,595 |
1,523 | <gh_stars>1000+
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "Li... | 1,385 |
369 | /**
* \file
*
* Copyright (c) 2015 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* 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 ... | 3,659 |
848 |
#
# Copyright 2019 Xilinx 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 in writi... | 4,485 |
5,169 | {
"name": "FMBridgeJSOC",
"version": "0.0.1",
"summary": "FMBridgeJSOC is a Lib with support the js in web & objc in local communication in iOS dev.",
"description": "\"FMBridgeJSOC is a Lib with support the js in web & objc in local communication in iOS dev.\"",
"homepage": "https://github.com/acekiller",
... | 264 |
634 | /*
* Copyright 2000-2015 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 the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1,551 |
434 | {
"category" : "Seaside-GemStone-Continuation",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "JohanBrichau 06/27/2020 04:14",
"instvars" : [
"environment",
"value" ],
"name" : "WAGemStoneProcessEnvironmentWrapper",
"pools" : [
],
"super" : "Object",
"type" : "normal" }
| 139 |
1,217 | #include "OpenGLApplication.hpp"
#include <X11/Xlib-xcb.h>
#include <climits>
#include <cstdio>
#include <cstring>
#include "glad/glad_glx.h"
using namespace My;
using namespace std;
// Helper to check for extension string presence. Adapted from:
// http://www.opengl.org/resources/features/OGLextensions/
static... | 3,882 |
392 | <filename>mcg/src/external/BSR/include/collections/abstract/multimap.hh
/*
* Abstract multimap.
*
* Multimaps associate each element of their domain with one or more elements
* of their range. Both the domain and range may contain multiple copies of
* the same element.
*
* Multimaps are not derived from the a... | 1,592 |
430 | <reponame>chrismayemba/covid-19-open-data<gh_stars>100-1000
# Copyright 2020 Google 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
#
#... | 1,681 |
698 | /*
* Copyright (C) Zhang,Yuexiang (xfeep)
*/
#include <ngx_config.h>
#include "ngx_http_clojure_jvm.h"
#if defined(_WIN32) || defined(WIN32)
#else
#include <dlfcn.h>
#endif
static JNIEnv *jvm_env = NULL;
static JavaVM *jvm = NULL;
int ngx_http_clojure_is_embeded_by_jse = 0;
int ngx_http_clojure_check_jvm() {... | 1,400 |
305 | <filename>llvm-project/clang/test/OpenMP/target_map_codegen_31.cpp
// expected-no-diagnostics
#ifndef HEADER
#define HEADER
///==========================================================================///
// RUN: %clang_cc1 -DUSE -DCK31A -verify -fopenmp -fopenmp-version=51 -fopenmp-targets=powerpc64le-ibm-linux-gnu -... | 6,714 |
1,755 | /*=========================================================================
Program: Visualization Toolkit
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
... | 450 |
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.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
impor... | 1,110 |
11,356 | <reponame>hixio-mh/libsnowflakeclient<gh_stars>1000+
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
... | 376 |
4,812 | //===--------------------- PipelinePrinter.cpp ------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 217 |
322 | ///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (C) 2019-2020, University of Edinburgh
// Copyright note valid unless otherwise stated in individual files.
// All rights reserved.
////////////////////////////////////////////////////////////////////... | 444 |
1,475 | /*
* 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 ... | 588 |
8,428 | <gh_stars>1000+
"""Specific PyGrid exceptions."""
class PyGridError(Exception):
def __init__(self, message: str) -> None:
super().__init__(message)
class AuthorizationError(PyGridError):
def __init__(self, message: str = "") -> None:
if not message:
message = "User is not authori... | 1,712 |
6,304 | #!/usr/bin/env python
#
# Copyright 2019 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import subprocess
import sys
INFRA_GO = 'go.skia.org/infra'
WHICH = 'where' if sys.platform == 'win32' else 'which'
def check():
'''Verify that g... | 591 |
1,116 | <reponame>LegoYoda112/moveit<gh_stars>1000+
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, <NAME>, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are ... | 972 |
1,168 | // Tests that tag declaration embedded in a declarator
// are properly parented.
//- @outer defines/binding Outer
struct outer {
//- @inner ref Inner
//- Inner.node/kind tnominal
//- Inner childof Outer
struct inner* array[1];
};
| 72 |
7,482 | /***********************************************************************
* Filename : sha256.h
* Description : sha256 header file
* Author(s) : Eric
* version : V1.0
* Modify date : 2020-07-09
***********************************************************************/
#ifndef __SHA256_H__
#define __SHA25... | 990 |
332 | /*
*
* Copyright 2020 WeBank
*
* 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... | 3,541 |
429 | /* vim: tabstop=4 shiftwidth=4 noexpandtab
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2018 <NAME>
*
* tty - print terminal name
*/
#include <stdio.h>
#include <unistd.h>
int main(int argc, char * argv[]) {
if (!i... | 178 |
2,757 | <gh_stars>1000+
/*
* Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl... | 2,840 |
2,637 | <reponame>nateglims/amazon-freertos<gh_stars>1000+
/** @file crc_reg.h
*
* @brief This file contains automatically generated register structure
*
* (C) Copyright 2012-2019 Marvell International Ltd. All Rights Reserved
*
* MARVELL CONFIDENTIAL
* The source code contained or described herein and all documents relate... | 1,594 |
954 | package ch.swissonid.design_lib_sample.fragments;
import android.os.Bundle;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import butterknife.Bind;
import ch.swissonid.d... | 670 |
562 | import json
from textwrap import dedent
import pytest
import responses
from freight import checks
from freight.exceptions import CheckFailed, CheckPending
from freight.testutils import TestCase
class CloudbuilderCheckBase(TestCase):
def setUp(self):
self.check = checks.get("cloudbuilder")
self.u... | 5,057 |
310 | <filename>gear/hardware/n/nuvi-1300.json
{
"name": "<NAME>",
"description": "A pocket GPS device.",
"url": "https://www.amazon.com/Garmin-Widescreen-Navigator-Discontinued-Manufacturer/dp/B001U0O7T4"
} | 84 |
340 | #!/usr/bin/env python
# encoding: utf-8
"""
@version: 1.0
@author: lizheming
@contact: <EMAIL>
@site: lizheming.top
@file: Zhuanlan.py
"""
from zhihu import headers, clear, error, session
from bs4 import BeautifulSoup
import re
import webbrowser
import termcolor
import requests
import json
import sys
class Zhuanlan... | 2,778 |
611 | <reponame>codajs/edge-diagnostics-adaptor
//
// Copyright (C) Microsoft. All rights reserved.
//
// The default CComTypeInfoHolder (atlcom.h) doesn't support having RegFree Dispatch implementations that
// have the TYPELIB embedded in the dll as anything other than the first one
// To get around this we need to change... | 7,465 |
367 | # -*- coding: utf-8 -*-
from pip.req import InstallRequirement
from packaging.utils import canonicalize_name
from .dependency import Dependency
class PipDependency(Dependency):
def __init__(self, name, constraint, category='main', checksum=None):
# Normalizing name for easier dependencies resolving
... | 753 |
6,263 | import os
import re
from ._default import Process
STAT_PPID = 3
STAT_TTY = 6
def get_process_mapping():
"""Try to look up the process tree via the /proc interface.
"""
with open('/proc/{0}/stat'.format(os.getpid())) as f:
self_tty = f.read().split()[STAT_TTY]
processes = {}
for pid in o... | 528 |
1,276 | #include <iostream>
using namespace std;
/*
prime = sieve [2..] where
sieve (x:xs) = x : sieve (filter (\y ->y `rem` x /= 0) xs)
*/
template<int Number, typename T>
struct List
{
static const int Data = Number;
typedef T Next;
};
struct ListEnd
{
};
////////////////////////////////////
template<typename T, int ... | 934 |
319 | /**
* Copyright (c) 2012, The University of Southampton and the individual contributors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain ... | 2,067 |
562 | #include <symengine/constants.h>
#include <symengine/expression.h>
#include <symengine/integer.h>
#include <symengine/mul.h>
#include <iostream>
int main() {
SymEngine::Expression pi_by_12 =
SymEngine::div(SymEngine::pi, SymEngine::integer(12));
std::cout << pi_by_12 << std::endl;
return 0;
}
| 122 |
848 | <filename>tensorflow/contrib/boosted_trees/lib/learner/common/stats/gradient-stats.h
// Copyright 2017 The TensorFlow 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 Li... | 2,114 |
892 | package com.cronutils.model;
import com.cronutils.mapper.CronMapper;
import com.cronutils.model.definition.CronConstraint;
import com.cronutils.model.definition.CronDefinition;
import com.cronutils.model.field.CronField;
import com.cronutils.model.field.CronFieldName;
import com.cronutils.model.field.expression.visito... | 1,606 |
1,350 | <filename>sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/ByteBufferOutputStream.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos.implementation;
import java.io.ByteArrayOutputStream;
import java.nio.ByteBuffer;
/**
... | 345 |
575 | <filename>third_party/blink/renderer/bindings/tests/results/core/v8_test_interface_named_constructor_2.cc
// 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 from the Ji... | 3,899 |
326 | <gh_stars>100-1000
"""
Tests for grdfill.
"""
import os
import numpy as np
import pytest
import xarray as xr
from pygmt import grdfill, load_dataarray
from pygmt.datasets import load_earth_relief
from pygmt.exceptions import GMTInvalidInput
from pygmt.helpers import GMTTempFile
@pytest.fixture(scope="module", name="... | 1,027 |
3,269 | <filename>Algo and DSA/LeetCode-Solutions-master/Python/count-the-repetitions.py
# Time: O(s1 * min(s2, n1))
# Space: O(s2)
class Solution(object):
def getMaxRepetitions(self, s1, n1, s2, n2):
"""
:type s1: str
:type n1: int
:type s2: str
:type n2: int
:rtype: int
... | 618 |
335 | {
"word": "Campus",
"definitions": [
"The grounds and buildings of a university or college.",
"The grounds of a school, hospital, or other institution."
],
"parts-of-speech": "Noun"
} | 83 |
383 | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2018, Locus Robotics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must re... | 1,188 |
468 |
#ifndef __GLI_BITMAP_NOTEBOOK_H_
#define __GLI_BITMAP_NOTEBOOK_H_
#include <wx/wx.h>
#include <wx/notebook.h>
#include "GLIShaderDebug.h"
class GLIBitmapView;
//DT_TODO: Class/ comment checks
//@
// Summary:
// This class provides a notebook of bitmap images.
//
class GLIBitmapNotebook: public wxNotebook
{ ... | 2,118 |
1,091 | <filename>apps/openstackvtap/app/src/main/java/org/onosproject/openstackvtap/cli/OpenstackVtapListCommand.java<gh_stars>1000+
/*
* Copyright 2018-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.
... | 1,338 |
5,422 | <filename>core/controllers/blog_admin.py
# Copyright 2021 The Oppia 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/LICEN... | 3,172 |
4,350 | package cc.mrbird.febs.system.service.impl;
import cc.mrbird.febs.system.entity.RoleMenu;
import cc.mrbird.febs.system.mapper.RoleMenuMapper;
import cc.mrbird.febs.system.service.IRoleMenuService;
import cc.mrbird.febs.system.service.IUserRoleService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;... | 756 |
14,668 | <filename>ios/chrome/browser/ui/first_run/welcome/checkbox_button.h
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_FIRST_RUN_WELCOME_CHECKBOX_BUTTON_H_
#define IOS_CHROME_... | 357 |
852 | <reponame>Purva-Chaudhari/cmssw
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/global/EDAnalyzer.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "F... | 784 |
1,882 | /*-
* <<
* task
* ==
* Copyright (C) 2019 - 2020 sia
* ==
* 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 b... | 1,264 |
5,169 | <gh_stars>1000+
{
"name": "CommunicationLib",
"version": "0.3.0",
"summary": "Call native communication package.",
"description": "One line of code calls a native communication package.",
"homepage": "https://github.com/ReverseScale/CommunicationLib",
"license": "MIT",
"authors": {
"ReverseScale": "<E... | 201 |
665 | #
# generate_test.py
# Mich, 2016-06-16
# This file is part of MLDB. Copyright 2016 mldb.ai inc. All rights reserved.
#
import argparse
import subprocess
import datetime
import os
template = """#
# {filename}
# {author}, {date}
# This file is part of MLDB. Copyright {year} mldb.ai inc. All rights reserved.
#
from mld... | 1,169 |
839 | /**
* 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 m... | 597 |
2,184 | """Unsupervised clustering."""
from .clustream import CluStream
from .dbstream import DBSTREAM
from .denstream import DenStream
from .k_means import KMeans
from .streamkmeans import STREAMKMeans
__all__ = ["CluStream", "DBSTREAM", "DenStream", "KMeans", "STREAMKMeans"]
| 92 |
1,102 | <gh_stars>1000+
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id:$
//
// Copyright (C) 1993-1996 by id Software, Inc.
//
// This source is available for distribution and/or modification
// only under the terms of the DOOM Source C... | 74,712 |
1,467 | <gh_stars>1000+
{
"version": "2.7.14",
"date": "2019-07-29",
"entries": [
{
"type": "bugfix",
"category": "Netty NIO Http Client",
"description": "Update `HandlerRemovingChannelPool` to only remove per request handlers if the channel is open or registered to avoid... | 266 |
410 | <gh_stars>100-1000
// Copyright (c) 2014 <NAME><<EMAIL>>
package com.iwebpp.node;
import java.util.Hashtable;
import java.util.Map;
import android.net.Uri;
public final class Url
extends EventEmitter2 {
public static class UrlObj {
public String href = null;
public String protocol = null;
public ... | 1,412 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Violay","circ":"6ème circonscription","dpt":"Loire","inscrits":1013,"abs":541,"votants":472,"blancs":15,"nuls":3,"exp":454,"res":[{"nuance":"REM","nom":"<NAME>","voix":205},{"nuance":"LR","nom":"<NAME>","voix":95},{"nuance":"FN","nom":"Mme <NAME>","voix":77},{"nuance":"F... | 270 |
1,857 | """Preprocess the Kgirl model
The model is available for download from
https://sketchfab.com/models/d2f946f58a8040ae993cda70c97b302c
The Python Imaging Library is required
pip install pillow
"""
from __future__ import print_function
import json
import os
import zipfile
from PIL import Image
from utils.glt... | 846 |
2,607 | <filename>src/test/java/info/debatty/java/stringsimilarity/NormalizedLevenshteinTest.java
package info.debatty.java.stringsimilarity;
import info.debatty.java.stringsimilarity.testutil.NullEmptyTests;
import org.junit.Test;
import static org.junit.Assert.*;
public class NormalizedLevenshteinTest {
@Test
publ... | 277 |
1,919 | /**
* Copyright (C) 2006 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,254 |
575 | <reponame>iridium-browser/iridium-browser
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/media/audio_service_util.h"
#include <string>
#include "base/feature_list.h"
#include... | 826 |
518 | <filename>manifests/definitions/499.json
{
"name": "iZettle",
"category": "Admin & Back-office",
"start_url": "https://my.izettle.com/login",
"icons": [
{
"src": "https://cdn.filestackcontent.com/GspbYaH4SmGRnhKxhDHJ"
},
{
"src": "https://cdn.filestackcontent.com/o2J7mGSXiTSGzN8NXu2w",
... | 222 |
2,053 | <filename>scouter.agent.java/src/scouter/agent/plugin/AbstractCapture.java
/*
* Copyright 2015 the original author or authors.
* @https://github.com/scouter-project/scouter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... | 322 |
631 | <reponame>tradingsecret/beam_wallet<filename>3rdparty/ethash/test/unittests/progpow_test_vectors.hpp
// ethash: C/C++ implementation of Ethash, the Ethereum Proof of Work algorithm.
// Copyright 2018-2019 <NAME>.
// Licensed under the Apache License, Version 2.0.
/// @file
/// ProgPoW test vectors.
#pragma once
name... | 1,718 |
432 | from .rman_mesh_translator import RmanMeshTranslator
from ..rman_sg_nodes.rman_sg_curve import RmanSgCurve
from ..rfb_utils import object_utils
from ..rfb_utils import string_utils
from ..rfb_utils import property_utils
import bpy
import math
def get_bspline_curve(curve):
P = []
widths = []
nvertices = []... | 4,035 |
5,169 | {
"name": "TTProgressButton",
"version": "1.0.0",
"summary": "A custom UIButton which has a progress border indicator.",
"description": " A custom circular UIButton which has a progress border indicator. It is designed to animate an array of images while indicating the progress. You can set the speed of the ... | 339 |
3,442 | <gh_stars>1000+
/*
* 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... | 10,733 |
3,055 | <reponame>kaidegit/u8g2
/*
Fontname: streamline_coding_apps_websites
Copyright: <EMAIL>
Glyphs: 27/27
BBX Build Mode: 0
*/
const uint8_t u8g2_font_streamline_coding_apps_websites_t[1787] U8G2_FONT_SECTION("u8g2_font_streamline_coding_apps_websites_t") =
"\33\0\3\2\5\5\3\3\6\25\25\0\0\25\0\25\0\4X\0\0\6\336\6... | 3,201 |
318 | /*
* Copyright Beijing 58 Information Technology Co.,Ltd.
*
* 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
... | 2,215 |
1,198 | <gh_stars>1000+
/*
Copyright 2017-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 obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable... | 2,687 |
341 | package org.myproject.ms.monitoring.mtc;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties("spring.sleuth.metric")
public class SMProp {
private boolean enabled = true;
private Span span = new Span();
public boolean isEnabled() {
return this.enabled;
}
... | 321 |
340 | {
"name": "react-spa",
"version": "0.0.1",
"homepage": "https://github.com/WRidder/react-spa",
"authors": [
"<NAME> <<EMAIL>>"
],
"description": "Community site SPA Proof of Concept based on ReactJS",
"main": "client/src/app.js",
"moduleType": [
"amd"
],
"keywords": [
"reactjs",
"imm... | 315 |
363 | <reponame>ajisaka/ai-research-keyphrase-extraction
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from codecs import open
from setuptools import setup, find_packages
with open('requirements.txt') as f:
required = f.read(... | 598 |
5,169 | <reponame>Gantios/Specs<gh_stars>1000+
{
"name": "PaylevenFramework",
"version": "1.1.2",
"summary": "This project provides an SDK for iOS. It allows use case categorisation, prioritisation and tokenization of payment instruments, which are retrieved using the user token created | Payleven",
"homepage": "https:... | 365 |
945 | <reponame>arobert01/ITK
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 <NAME>
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distribu... | 234 |
2,603 | <filename>FreeRTOS/Demo/T-HEAD_CB2201_CDK/csi/csi_core/csi_core_dummy.c
/*
* Copyright (C) 2017 C-SKY Microsystems Co., Ltd. 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 Lic... | 1,276 |
401 | /*
* 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 required by applicable law or agreed to in wri... | 364 |
522 | <reponame>timgates42/mako<filename>src/map/hashtab.c
/*!
* hashtab.c - hash table for mako
* Copyright (c) 2021, <NAME> (MIT License).
* https://github.com/chjj/mako
*/
#include <mako/map.h>
#include "map.h"
/*
* Hash Table
*/
DEFINE_HASH_MAP(btc_hashtab, int64_t, -1, MAP_EXTERN)
| 127 |
954 | /**
* Copyright 2003-2006 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 event copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 991 |
2,151 | // Copyright 2016 The SwiftShader 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/LICENSE-2.0
//
// Unless required b... | 10,202 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.