max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
661 | #define OWL_PARSER_IMPLEMENTATION
#include "1-parse.h"
| 23 |
665 | <reponame>apache/isis
/*
* 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... | 5,289 |
617 | <gh_stars>100-1000
#!/usr/bin/env python
from __future__ import absolute_import
import base64
import json
import logging
import os
import requests
import thriftrw
from kazoo.client import KazooClient
api = thriftrw.install(
os.path.join(
os.path.dirname(os.path.realpath(__file__)),
"../../pkg/auro... | 3,054 |
4,332 | <reponame>HollowMan6/vowpal_wabbit
#include "vw/config/cli_help_formatter.h"
#include "vw/config/option_builder.h"
#include "vw/config/option_group_definition.h"
#include "vw/config/options_cli.h"
#include "vw/core/crossplat_compat.h"
#include "vw/core/vw.h"
#include <unistd.h>
#include <algorithm>
#include <cassert>... | 3,221 |
1,443 | <reponame>cssence/mit-license<filename>users/neutroncreations.json
{
"copyright": "Neutron Creations, http://neutroncreations.com",
"url": "http://neutroncreations.com"
}
| 67 |
316 | <reponame>burgerdev/vigra<filename>test/classifier/data/SPECTF_labels.hxx
#ifndef SPECTF_LABELS
#define SPECTF_LABELS
int SPECTF_labels[] = {
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 334 |
3,372 | <gh_stars>1000+
/*
* Copyright 2016-2021 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
*
* http://aws.amazon.com/apache2.0
*
* ... | 30,811 |
3,428 | <gh_stars>1000+
{"id":"00547","group":"easy-ham-1","checksum":{"type":"MD5","value":"59bf01e07cf08c7e3a778b747e020989"},"text":"From <EMAIL> Wed Sep 11 13:49:23 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>.<EMAIL>\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 13ECF16... | 1,189 |
445 | <filename>include/multiverso/worker.h<gh_stars>100-1000
#ifndef MULTIVERSO_WORKER_H_
#define MULTIVERSO_WORKER_H_
#include <vector>
#include "multiverso/actor.h"
namespace multiverso {
class WorkerTable;
class Worker : public Actor {
public:
Worker();
int RegisterTable(WorkerTable* worker_table);
private:
... | 203 |
6,663 | <reponame>johannes-mueller/cython
/////////////// CppExceptionConversion.proto ///////////////
#ifndef __Pyx_CppExn2PyErr
#include <new>
#include <typeinfo>
#include <stdexcept>
#include <ios>
static void __Pyx_CppExn2PyErr() {
// Catch a handful of different errors here and turn them into the
// equivalent Pytho... | 1,337 |
432 | [
{
"slug": "ReleaseIQ",
"name": "ReleaseIQ",
"description": "ReleaseIQ helps companies accelerate software product release cycles while improving quality and efficiency with an Enterprise DevOps Platform that leverages existing CI/CD tools",
"url": "https://www.releaseiq.io",
"tags": [
"lin... | 156 |
418 | <reponame>NewLeafG/esplay-retro-emulation
/*
** Nofrendo (c) 1998-2000 <NAME> (<EMAIL>)
**
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of version 2 of the GNU Library General
** Public License as published by the Free Software Foundation.
**
** This program is distr... | 559 |
411 | <reponame>tonyyang924/MyDiary
package com.kiminonawa.mydiary.shared;
import android.content.Context;
import org.apache.commons.io.FileUtils;
import java.io.File;
/**
* Created by daxia on 2016/12/12.
*/
public class OldVersionHelper {
public static boolean Version17MoveTheDiaryIntoNewDir(Context context) t... | 738 |
530 | package org.carlspring.strongbox.dependency.snippet;
import org.carlspring.strongbox.artifact.coordinates.ArtifactCoordinates;
import org.carlspring.strongbox.artifact.coordinates.NugetArtifactCoordinates;
import org.carlspring.strongbox.providers.layout.AbstractLayoutProvider;
import org.carlspring.strongbox.provider... | 601 |
11,024 | <gh_stars>1000+
#!/bin/env python2
import argparse
parser = argparse.ArgumentParser("Run multithreaded client tests")
parser.add_argument("cluster_file", nargs='+', help='List of fdb.cluster files to connect to')
parser.add_argument("--skip-so-files", default=False, action='store_true', help='Do not load .so files')... | 960 |
563 | package com.gentics.mesh.core.graphql;
import static com.gentics.mesh.assertj.MeshAssertions.assertThat;
import static com.gentics.mesh.core.rest.common.Permission.READ;
import static com.gentics.mesh.core.rest.role.RolePermissionRequest.withPermissions;
import static com.gentics.mesh.test.TestDataProvider.PROJECT_NAM... | 1,749 |
493 | package com.martinrgb.animer.core.interpolator.AndroidNative;
import com.martinrgb.animer.core.interpolator.AnInterpolator;
public class DecelerateInterpolator extends AnInterpolator {
private float mFactor = 1.0f;
public DecelerateInterpolator() {
initArgData(0,1,"factor",0,10);
}
public ... | 418 |
539 | <reponame>glenfe/microsoft.bond<filename>java/core/src/main/java/org/bondlib/UInt16BondType.java
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package org.bondlib;
import java.io.IOException;
/**
* Implements th... | 2,880 |
783 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Zillow
*
* 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,... | 5,562 |
1,858 | /*
* Tencent is pleased to support the open source community by making TENCENT SOTER available.
* Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a co... | 2,478 |
663 | <reponame>mchelen-gov/integrations-core
# (C) Datadog, Inc. 2010-present
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
| 49 |
1,608 | <filename>cakechat/dialog_model/inference/__init__.py
from cakechat.dialog_model.inference.utils import get_sequence_log_probs, get_sequence_score_by_thought_vector, \
get_sequence_score
from cakechat.dialog_model.inference.predict import get_nn_response_ids, get_nn_responses, warmup_predictor
from cakechat.dialog_... | 125 |
1,850 | <filename>repeater-plugin-api/src/main/java/com/alibaba/jvm/sandbox/repeater/plugin/domain/RepeatContext.java
package com.alibaba.jvm.sandbox.repeater.plugin.domain;
/**
* <p>
*
* @author zhaoyb1990
*/
public class RepeatContext {
private RepeatMeta meta;
private RecordModel recordModel;
private String... | 381 |
1,118 | {"deu":{"common":"Libyen","official":"Staat Libyen"},"fin":{"common":"Libya","official":"Libyan valtio"},"fra":{"common":"Libye","official":"Grande République arabe libyenne populaire et socialiste"},"hrv":{"common":"Libija","official":"Država Libiji"},"ita":{"common":"Libia","official":"Stato della Libia"},"jpn":{"com... | 200 |
11,356 | <filename>deps/src/boost_1_65_1/boost/graph/sequential_vertex_coloring.hpp
//=======================================================================
// Copyright 1997, 1998, 1999, 2000 University of Notre Dame.
// Copyright 2004 The Trustees of Indiana University
// Authors: <NAME>, <NAME>, <NAME>
//
// Distributed und... | 1,697 |
30,023 | <reponame>liangleslie/core
{
"options": {
"step": {
"init": {
"data": {
"timestep": "Minuteid NowCasti prognooside vahel"
},
"description": "Kui otsustad lubada \"nowcast\" prognoosi\u00fcksuse, saad seadistada minutite arvu iga... | 296 |
416 | package org.springframework.roo.addon.web.mvc.controller.addon.test;
import static org.springframework.roo.model.RooJavaType.ROO_JSON_CONTROLLER_INTEGRATION_TEST;
import org.apache.commons.lang3.Validate;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Service;
import org.os... | 1,797 |
1,056 | <filename>groovy/groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/api/GroovyLexerIncTest.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright own... | 5,321 |
12,706 | # -*- coding: utf-8 -*-
import time
import base
import v2_swagger_client
class Replication(base.Base, object):
def __init__(self):
super(Replication,self).__init__(api_type = "replication")
def wait_until_jobs_finish(self, rule_id, retry=10, interval=5, **kwargs):
Succeed = False
for ... | 1,758 |
383 | #!/usr/bin/python3
import argparse
from collections import defaultdict, OrderedDict
parser = argparse.ArgumentParser()
parser.add_argument('source_file')
parser.add_argument('target_file')
parser.add_argument('align_file')
args = parser.parse_args()
src_vocab = OrderedDict()
trg_vocab = OrderedDict()
counts = defa... | 657 |
650 | # Copyright 2017, OpenCensus Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 478 |
3,212 | <reponame>westdart/nifi
/*
* 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
* (... | 903 |
1,508 | <reponame>bpmbank/XChange
package org.knowm.xchange.ascendex;
import org.knowm.xchange.BaseExchange;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeSpecification;
import org.knowm.xchange.ascendex.service.AscendexAccountService;
import org.knowm.xchange.ascendex.service.AscendexMarketDataService;
... | 506 |
347 | <filename>backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/HostNetworkTopologyPersister.java
package org.ovirt.engine.core.vdsbroker.vdsbroker;
import org.ovirt.engine.core.common.businessentities.NonOperationalReason;
import org.ovirt.engine.core.common.businessentities.VDS;
i... | 503 |
3,336 | {
"Get-AzContainerInstanceUsage+[NoContext]+List+$GET+https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.ContainerInstance/locations/eastus/usages?api-version=2021-09-01+1": {
"Request": {
"Method": "GET",
"RequestUri": "https://management.azure.com/sub... | 1,629 |
1,141 | /*
* predixy - A high performance and full features proxy for redis.
* Copyright (C) 2017 Joyield, Inc. <<EMAIL>>
* All rights reserved.
*/
#ifndef _PREDIXY_EPOLL_MULTIPLEXOR_H_
#define _PREDIXY_EPOLL_MULTIPLEXOR_H_
#include <unistd.h>
#include <sys/epoll.h>
#include "Multiplexor.h"
#include "Exception.h"
#includ... | 767 |
14,668 | <reponame>zealoussnow/chromium<filename>chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabLaunchCauseMetrics.java<gh_stars>1000+
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
pac... | 374 |
1,136 | <reponame>bradebarrows/Github.swift
{
"login": "octokit-testing-user",
"id": 1,
"url": "https://api.github.com/users/octokit-testing-user",
"html_url": "https://github.com/octokit-testing-user",
"followers_url": "https://api.github.com/users/octokit-testing-user/followers",
"following_url": "https://api.git... | 409 |
12,278 | <filename>3rdParty/V8/v7.9.317/third_party/icu/fuzzers/icu_number_format_fuzzer.cc<gh_stars>1000+
// Copyright 2016 The Chromium Authors. All rights reserved.
// Fuzzer for NumberFormat::parse.
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include "third_party/icu/fuzzers/fuzzer_utils.h"
#include "third_... | 353 |
14,668 | <gh_stars>1000+
// 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 THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_FRAGMENT_DATA_ITERATOR_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_FRAGMENT_DATA_ITERAT... | 564 |
348 | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | 2,805 |
1,297 | /*
* Copyright 2016 - 2020 <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 wr... | 437 |
1,825 | package com.github.unidbg.linux.android.dvm;
import com.github.unidbg.Emulator;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
class ArmVarArg32 extends ArmVarArg {
ArmVarArg32(Emulator<?> emulator, BaseVM vm, DvmMethod method) {
super(emulator, vm, method);
int offset = 0;
for ... | 1,388 |
306 | #include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QFAppDispatcher>
#include <QuickFlux>
int main(int argc, char *argv[])
{
qputenv("QML_DISABLE_DISK_CACHE", "true");
QGuiApplication app(argc, argv);
registerQuickFluxQmlTypes(); // It is not necessary to call this function if the Quick... | 211 |
14,668 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/css/media_feature_overrides.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
TEST(MediaFea... | 760 |
14,668 | <reponame>zealoussnow/chromium<gh_stars>1000+
// 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.
#include "base/allocator/partition_allocator/starscan/stack/stack.h"
#include <memory>
#include <ostream>
... | 6,842 |
1,428 | <reponame>kennethsequeira/Hello-world<filename>Python/OptimalBST.py<gh_stars>1000+
###### O(N^3) ######
from itertools import accumulate
def dp(a,acc,n):
cost = [[float('inf')]*n for i in range(n)]
st = [[0]*n for i in range(n)]
for i in range(n):
cost[i][i] = a[i][1]
for l in range(2,n+... | 777 |
14,668 | <filename>third_party/blink/renderer/core/mathml/mathml_radical_element.h
// 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.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_MATHML_MATHML_RADICAL_ELEMENT_H_
#define... | 554 |
2,372 | <filename>physx/source/physx/src/device/windows/PhysXIndicatorWindows.cpp<gh_stars>1000+
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// n... | 1,521 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.iot.deviceupdate;
import com.azure.core.credential.TokenCredential;
import com.azure.core.exception.HttpResponseException;
import com.azure.core.http.*;
import com.azure.core.http.policy.AddHeadersPolicy;
... | 4,806 |
4,391 | # This sample tests the special-case handling of the __self__
# attribute for a function when it is bound to a class or object.
# pyright: reportFunctionMemberAccess=error
from typing import Literal
def func1(a: int) -> str:
...
# This should generate an error because func1 isn't
# bound to a "self".
s1 = fu... | 372 |
1,590 | <reponame>libc16/azure-rest-api-specs
{
"id":"451675de-a67d-4929-876c-5c2bf0b2c000",
"topic":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Maps/accounts/{accountName}",
"subject":"/spatial/geofence/udid/{udid}/id/{eventId}",
"data":{
"geometries":[
{
"deviceId":"device_... | 408 |
320 | #ifndef BREAKPOINT_HH
#define BREAKPOINT_HH
#include "BreakPointBase.hh"
#include "openmsx.hh"
namespace openmsx {
/** Base class for CPU breakpoints.
* For performance reasons every bp is associated with exactly one
* (immutable) address.
*/
class BreakPoint final : public BreakPointBase
{
public:
BreakPoint(... | 243 |
348 | <gh_stars>100-1000
{"nom":"Bosroger","circ":"1ère circonscription","dpt":"Creuse","inscrits":81,"abs":31,"votants":50,"blancs":8,"nuls":1,"exp":41,"res":[{"nuance":"LR","nom":"<NAME>","voix":21},{"nuance":"REM","nom":"<NAME>","voix":20}]} | 97 |
1,240 | <filename>app/src/main/java/com/eventyay/organizer/data/sponsor/SponsorRepositoryImpl.java
package com.eventyay.organizer.data.sponsor;
import androidx.annotation.NonNull;
import com.eventyay.organizer.common.Constants;
import com.eventyay.organizer.data.RateLimiter;
import com.eventyay.organizer.data.Repository;
im... | 1,911 |
574 | ////////////////////////////////////////////////////////////////////////////////
//
// Visual Leak Detector - Import Library Header
// Copyright (c) 2005-2014 VLD Team
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as pub... | 1,031 |
440 | <filename>src/main/java/yanagishima/model/dto/PublishDto.java
package yanagishima.model.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class PublishDto {
@JsonProperty("publish_id")
private String publishId;
private String error;
}... | 121 |
1,260 | <gh_stars>1000+
/*!
@file
Defines `boost::hana::detail::variadic::reverse_apply`.
@copyright <NAME> 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_DETAIL_VARIADIC_REVERSE_APPLY_HPP
#define BOOST... | 425 |
10,225 | package io.quarkus.restclient.configuration;
import java.util.Collections;
import java.util.HashMap;
import java.util.Set;
import org.eclipse.microprofile.config.ConfigProvider;
import org.eclipse.microprofile.config.spi.ConfigSource;
import io.quarkus.runtime.annotations.StaticInitSafe;
import io.smallrye.config.co... | 566 |
1,144 | <gh_stars>1000+
import sqlparse
skip_token_type = [
sqlparse.tokens.Comment.Single,
sqlparse.tokens.Comment.Multi,
sqlparse.tokens.Whitespace,
sqlparse.tokens.Newline,
]
def get_statement_ranges(query):
statements = sqlparse.parse(query)
statement_ranges = []
start_index = 0
for stat... | 853 |
586 | # -*- coding: utf-8 -*-
import pytest
from validators import slug, ValidationFailure
@pytest.mark.parametrize('value', [
'123-12312-asdasda',
'123____123',
'dsadasd-dsadas',
])
def test_returns_true_on_valid_slug(value):
assert slug(value)
@pytest.mark.parametrize('value', [
'some.slug',
'1... | 207 |
506 | <filename>atcoder/abc089/c.py
#!/usr/bin/env python3
# https://abc089.contest.atcoder.jp/tasks/abc089_c
import itertools
n = int(input())
a = [0] * 26
for _ in range(n):
a[ord(input()[0]) - ord('A')] += 1
c = []
for x in 'MARCH':
c.append(a[ord(x) - ord('A')])
s = 0
for x in itertools.combinations(c, 3):
k ... | 179 |
335 | {
"word": "Exception",
"definitions": [
"A person or thing that is excluded from a general statement or does not follow a rule."
],
"parts-of-speech": "Noun"
} | 69 |
363 | <filename>src/test/java/com/github/ferstl/depgraph/dependency/MavenGraphAdapterTest.java
/*
* Copyright (c) 2014 - 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 t... | 1,298 |
1,060 | {
"name": "react-selecto",
"version": "1.12.0",
"description": "A React Selecto Component that allows you to select elements in the drag area using the mouse or touch.",
"main": "./dist/selecto.cjs.js",
"module": "./dist/selecto.esm.js",
"sideEffects": false,
"types": "declaration/index.d.ts",
"scripts"... | 808 |
4,487 | <gh_stars>1000+
/*******************************************************************************
*
* (C) COPYRIGHT AUTHORS, 2017 - 2021
*
* TITLE: UTIL.H
*
* VERSION: 3.56
*
* DATE: 19 July 2021
*
* Global support routines header file shared between payload dlls.
*
* THIS CODE AND INFORMATION IS P... | 1,778 |
663 | <reponame>doctorpangloss/gogradle
/*
* Copyright 2016-2017 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
*
* http://www.apache.org/licenses/... | 1,194 |
371 | <gh_stars>100-1000
/*
* Copyright (C) 2018 xuexiangjys(<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 1,718 |
480 | //
// TagListContainerView.h
// ESTCollectionViewDropDownList
//
// Created by Aufree on 12/3/15.
// Copyright © 2015 The EST Group. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol TagListContainerViewDelegate <NSObject>
- (void)didSelectedTags:(NSMutableArray *)tags;
@end
@interface TagListContainerVi... | 152 |
1,602 | #include <string.h>
static
void get_string(const char** string_out)
{
*string_out = strdup("Hello");
printf("get_string returns %s\n", *string_out);
}
static
void modify_string(const char** string_out, const char* string_in)
{
char* tmp;
printf("modify_string got %s\n", string_in);
tmp = strdup(string_in)... | 162 |
1,319 | # -*- coding: utf-8 -*-
import urwid
DIV = urwid.Divider()
HR = urwid.AttrMap(urwid.Divider('_'), 'hr')
def pad(widget, left=2, right=2):
return urwid.Padding(widget, left=left, right=right)
class TextButton(urwid.Button):
"""
Args:
label (str): label for the text button
on_press (function... | 6,143 |
507 | # terrascript/data/mildred/systemd.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:28:13 UTC)
__all__ = []
| 48 |
2,494 | <reponame>ktrzeciaknubisa/jxcore-binary-packaging
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You ... | 51,913 |
17,703 | <filename>tools/testdata/check_format/clang_format_on.cc
namespace Envoy {
// clang-format off
// Some ignored content.
// clang-format on
// Over enthusiastic spaces should be fixed after clang-format is turned on
// Too many spaces. Here.
} // namespace Envoy
| 80 |
494 | <gh_stars>100-1000
# BSD 3-Clause License
#
# Copyright (C) 2021 THL A29 Limited, a Tencent company. 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 retai... | 2,250 |
4,403 | package cn.hutool.core.lang;
import cn.hutool.core.collection.ConcurrentHashSet;
import cn.hutool.core.exceptions.UtilException;
import cn.hutool.core.thread.ThreadUtil;
import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.StrUtil;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
impo... | 869 |
4,047 | #include <gpgme.h>
int
main()
{
printf("gpgme-v%s", gpgme_check_version(NULL));
return 0;
}
| 51 |
1,467 | <gh_stars>1000+
{
"version": "2.13.27",
"date": "2020-06-01",
"entries": [
{
"type": "feature",
"category": "AWS Key Management Service",
"description": "AWS Key Management Service (AWS KMS): If the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext APIs a... | 930 |
598 | <reponame>yangboz/maro<gh_stars>100-1000
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# native lib
import json
import os
import signal
import sys
import time
import uuid
from collections import defaultdict, deque, namedtuple
from enum import Enum
from typing import Dict, List, Tuple, Union
... | 14,003 |
570 | <gh_stars>100-1000
/*
* Souffle - A Datalog Compiler
* Copyright (c) 2020, The Souffle Developers. All rights reserved
* Licensed under the Universal Permissive License v 1.0 as shown at:
* - https://opensource.org/licenses/UPL
* - <souffle root>/licenses/SOUFFLE-UPL.txt
*/
/*************************************... | 11,654 |
32,544 | package com.baeldung.boot.configurationproperties;
import java.util.Map;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConfigurationProperties(prefix = "server")
public class ServerConfig {
private Address... | 343 |
2,360 | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyFuzzywuzzy(PythonPackage):
"""Fuzzy string matching in python."""
homepage = "https... | 318 |
1,056 | <filename>ide/editor.fold/src/org/netbeans/modules/editor/fold/ApiPackageAccessor.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF lice... | 1,610 |
664 | <filename>src/gui/LIIIstyle.h
#pragma once
#include <QProxyStyle>
class LIIIStyle
: public QProxyStyle
{
Q_OBJECT
public:
void drawControl(ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const override;
void drawPrimitive(PrimitiveElement elemen... | 219 |
460 | <gh_stars>100-1000
// Copyright 2012 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
//
// Un... | 439 |
457 | <gh_stars>100-1000
package denominator.model.rdata;
import java.util.LinkedHashMap;
import static denominator.common.Preconditions.checkArgument;
import static denominator.common.Preconditions.checkNotNull;
/**
* Corresponds to the binary representation of the {@code A} (Address) RData
*
* <br> <br> <b>Example</b... | 426 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Chépy","circ":"3ème circonscription","dpt":"Somme","inscrits":898,"abs":495,"votants":403,"blancs":31,"nuls":17,"exp":355,"res":[{"nuance":"LR","nom":"<NAME>","voix":225},{"nuance":"REM","nom":"M. <NAME>","voix":130}]} | 111 |
2,074 | <filename>examples/CorePlotGallery/src/plots/ControlChart.h
#import "PlotItem.h"
@interface ControlChart : PlotItem<CPTPlotDataSource>
@end
| 49 |
21,382 | import pytest
from ray.serve.utils import get_random_letters
from ray.serve.common import ReplicaName
def test_replica_tag_formatting():
deployment_tag = "DeploymentA"
replica_suffix = get_random_letters()
replica_name = ReplicaName(deployment_tag, replica_suffix)
assert replica_name.replica_tag == ... | 390 |
451 | #!/usr/bin/env python
#
# usage: extcode_mach.py input_filename output_filename
#
# Evaluates the output and residual for the implicit relationship
# between the area ratio and mach number.
#
# Read the value of `area_ratio` from input file
# and writes the values or residuals of `mach` to output file depending on ... | 871 |
774 | //
// NetPeer.h
//
// Lunar Unity Mobile Console
// https://github.com/SpaceMadness/lunar-unity-console
//
// Copyright 2015-2021 <NAME>, SpaceMadness.
//
// 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 cop... | 546 |
1,681 | # -*- coding: utf-8 -*-
"""
=============================
Labeling your datapoints
=============================
This is an example of how to use the `label(s)` kwarg, which must be a list the
length of the number of datapoints (rows) you have in the matrix. Here, we
are simply labeling the first datapoint for each m... | 299 |
1,253 | <filename>greedy/fractional_knapsack/c++/fractional_knapsack.cpp
#include <bits/stdc++.h>
using namespace std;
int main()
{
int num_items, capacity;
printf("Enter number of items and capacity of sack:");
scanf("%d%d", &num_items, &capacity);
vector <pair <float, pair<int, int> > > vec;
printf("Enter value and we... | 372 |
4,013 | import unittest
from checkov.terraform.checks.provider.aws.credentials import check
from checkov.common.models.enums import CheckResult
class TestCredentials(unittest.TestCase):
def test_success(self):
provider_conf = {'region': ['us-west-2']}
scan_result = check.scan_provider_conf(conf=provide... | 533 |
475 | /*
Vector-pool aggregation based local feature aggregation for point cloud.
PV-RCNN++: Point-Voxel Feature Set Abstraction With Local Vector Representation for 3D Object Detection
https://arxiv.org/abs/2102.00463
Written by <NAME>
All Rights Reserved 2020.
*/
#ifndef _STACK_VECTOR_POOL_GPU_H
#define _STACK_VECTOR_PO... | 1,332 |
12,278 | // Boost.Geometry
// Copyright (c) 2016, 2018 Oracle and/or its affiliates.
// Contributed and/or modified by <NAME>, on behalf of Oracle
// 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... | 755 |
335 | <gh_stars>100-1000
{
"word": "Carol",
"definitions": [
"Sing or say (something) happily.",
"The activity of singing Christmas carols."
],
"parts-of-speech": "Verb"
} | 86 |
852 | <filename>PhysicsTools/HeppyCore/python/statistics/counter.py<gh_stars>100-1000
# Copyright (C) 2014 <NAME>
# https://github.com/cbernet/heppy/blob/master/LICENSE
from builtins import range
import pickle
from PhysicsTools.HeppyCore.utils.diclist import diclist
class Counter(diclist):
def __init__(self, name... | 1,726 |
372 | /*
* 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 writing, software distributed under t... | 1,046 |
407 | // MIT License
//
// Copyright (c) 2019 <NAME>, Chair for Embedded Security. All Rights reserved.
// Copyright (c) 2021 Max Planck Institute for Security and Privacy. All Rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documenta... | 1,247 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.