max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
4,339 | <filename>modules/core/src/test/java/org/apache/ignite/cache/RebalanceAfterResettingLostPartitionTest.java<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 co... | 2,562 |
1,323 | <gh_stars>1000+
//
// GJGCGroupShowItem.h
// ZYChat
//
// Created by ZYVincent QQ:1003081775 on 14-11-6.
// Copyright (c) 2014年 ZYV. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "GJGCCommonHeadView.h"
@interface GJGCInformationGroupShowItemModel : NSObject
@property (nonatomic,strong)NSAttributedString... | 288 |
6,497 | <reponame>JokerQueue/cachecloud
package com.sohu.cache.entity;
import lombok.Data;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* 客户端耗时统计
* @author leifu
*/
@Data
public class AppClientCostTimeStat {
private long id;
/**
* 应用id... | 1,607 |
494 | <filename>astyanax-thrift/src/main/java/com/netflix/astyanax/thrift/AbstractRowSliceQueryImpl.java
/*******************************************************************************
* Copyright 2011 Netflix
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... | 1,200 |
841 | <reponame>ProgrammingLanguageLeader/django-user-accounts<gh_stars>100-1000
# -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-13 08:55
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.time... | 666 |
324 | <gh_stars>100-1000
/**
* Copyright (C) 2012 10gen Inc.
* Copyright (C) 2013 Tokutek Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This ... | 15,294 |
1,171 | import pytest
import numpy as np
from anndata import AnnData
from scipy.sparse import csr_matrix
import scanpy as sc
# test "data" for 3 cells * 4 genes
X = [
[-1, 2, 0, 0],
[1, 2, 4, 0],
[0, 2, 2, 0],
] # with gene std 1,0,2,0 and center 0,2,2,0
X_scaled = [
[-1, 2, 0, 0],
[1, 2, 2, 0],
[0, ... | 847 |
427 | //===-- FileSpecTest.cpp ----------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 4,871 |
906 | // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... | 1,641 |
311 | package datadog.trace.instrumentation.playws21;
import static datadog.trace.bootstrap.instrumentation.api.AgentTracer.propagate;
import static datadog.trace.bootstrap.instrumentation.api.AgentTracer.startSpan;
import static datadog.trace.instrumentation.playws.HeadersInjectAdapter.SETTER;
import static datadog.trace.i... | 815 |
3,428 | <reponame>ghalimi/stdlib
{"id":"00255","group":"easy-ham-1","checksum":{"type":"MD5","value":"11be25bd4a3d55702ed4a1f13e7d2a3d"},"text":"From <EMAIL> Fri Sep 6 11:40:54 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: z<EMAIL>.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby spamassassin.taint... | 1,337 |
422 | """
COLOR·SKY
03/20/2020
"""
import cv2
import numpy as np
import pyautogui
from PIL import ImageGrab
from pywinauto.findwindows import find_window,WindowNotFoundError
from win32gui import SetForegroundWindow
winsize = list(pyautogui.size()) # The resolution of the monitor
def get_mouse_position():
# Get current... | 4,738 |
319 | <filename>streams/storm/tools/NaiveBayesStorm/src/main/java/org/openimaj/storm/topology/orchestrator/TwitterNaiveBayesTopologyOrchestrator.java
package org.openimaj.storm.topology.orchestrator;
import java.util.List;
import org.openimaj.kestrel.KestrelServerSpec;
import backtype.storm.generated.StormTopology;
import... | 287 |
575 | /* <NAME> `gentilkiwi`
http://blog.gentilkiwi.com
<EMAIL>
Licence : https://creativecommons.org/licenses/by/4.0/
*/
#pragma once
#include "globals.h"
#include "kull_m_process.h"
typedef enum _OBJECT_INFORMATION_CLASS
{
ObjectBasicInformation,
ObjectNameInformation,
ObjectTypeInformation,
ObjectAllInformation,
... | 1,299 |
1,717 | <filename>src/test/java/perf/ConcurrencyReadTest.java
package perf;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicInteger;
import com.fasterxml.jackson.core.*;
/**
* Manual performance test to try out various synchronization
* methods for symbol tables.
*/
public class ConcurrencyReadTest
{... | 1,141 |
507 | <gh_stars>100-1000
# tests/test_provider_camptocamp_geoserver.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:16:50 UTC)
def test_provider_import():
import terrascript.provider.camptocamp.geoserver
def test_resource_import():
from terrascript.resource.camptocamp.geoserver import geoserver_... | 324 |
32,544 | <gh_stars>1000+
package com.baeldung.storm.bolt;
import org.apache.storm.topology.BasicOutputCollector;
import org.apache.storm.topology.OutputFieldsDeclarer;
import org.apache.storm.topology.base.BaseBasicBolt;
import org.apache.storm.tuple.Tuple;
public class PrintingBolt extends BaseBasicBolt {
@Override
p... | 186 |
9,228 | <reponame>twstewart42/ParlAI
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
import torch.nn as nn
from typing import Optional, Tuple
from parlai.agents.tr... | 2,823 |
333 | #include <caml/alloc.h>
#include <caml/memory.h>
#include <caml/mlvalues.h>
#include <unistd.h>
// Detect platform
#if defined(_WIN32)
#define OCAML_ALCOTEST_WINDOWS
#elif defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))
#if defined(_POSIX_VERSION)
#define OCAML_ALCOTEST_POSIX
#endif
#... | 1,421 |
337 | <gh_stars>100-1000
import java.util.*;
class A {
private Collection<String> collection;
A() {
collection = createCollection();
}
Collection<String> createCollection() {
return new ArrayList<>();
}
public void foo() {
collection.add("1")
}
public Collection<St... | 147 |
23,439 | <reponame>joyeekk/nacos
/*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | 1,413 |
5,169 | <filename>Specs/c/3/a/PointFree-Validated/0.2.0/PointFree-Validated.podspec.json
{
"name": "PointFree-Validated",
"module_name": "Validated",
"version": "0.2.0",
"summary": "A result type that accumulates multiple errors.",
"description": "Swift error handling short-circuits on the first failure. Because of t... | 416 |
14,668 | <reponame>zealoussnow/chromium
// 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 "components/autofill_assistant/browser/actions/select_option_action.h"
#include "base/guid.h"
#include "base/stri... | 4,132 |
897 | /* This algorithm will print the next greater element for all the indices in an array using stacks.
The procedure is to store the index of the next greater element in an answer array. Incase, there is no next greater element,
-1 will be stored.*/
#include <bits/stdc++.h>
using namespace std;
//Function to print the n... | 710 |
17,809 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "winget/Manifest.h"
#include "winget/Locale.h"
#include "winget/UserSettings.h"
namespace AppInstaller::Manifest
{
void Manifest::ApplyLocale(const std::string& locale)
{
Curr... | 1,406 |
358 | {
"require": {
"fzaninotto/Faker": "1.2.*",
"laravel/framework": "4.1.*",
"league/fractal": "0.7.*",
"guzzlehttp/guzzle": "4.*",
"itsgoingd/clockwork": "~1.3"
},
"require-dev": {
"phpunit/phpunit": "3.7.*"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"ap... | 272 |
1,558 | {
"author": "Microsoft",
"name": "Map",
"description": "La page Plans s'appuie sur la commande Plan de Windows. Le code inclut l'ajout d'une icône Plan et une fonction de géolocalisation.",
"identity": "ts.Page.Map"
} | 84 |
2,338 | <gh_stars>1000+
// RUN: %libomptarget-compilexx-run-and-check-generic
// amdgcn does not have printf definition
// XFAIL: amdgcn-amd-amdhsa
#include <cstdio>
#include <cstdlib>
typedef struct {
int a;
double *b;
} C;
#pragma omp declare mapper(id1 : C s) map(to : s.a) map(from : s.b [0:2])
typedef struct {
in... | 1,181 |
1,428 | <filename>worldedit-core/src/main/java/com/sk89q/worldedit/world/snapshot/experimental/package-info.java
/*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit team and contributors
*
* This program is free software: you can redistribute it and... | 367 |
7,482 | <filename>bsp/hc32f4a0/board/board.h
/*
* Copyright (C) 2020, Huada Semiconductor Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-10-30 CDT first version
* 2021-01-18 CDT MOdify SRAM_SIZE
*/
#ifndef __BOARD_H__
#define __B... | 583 |
1,475 | <reponame>mhansonp/geode
/*
* 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
*... | 1,021 |
1,178 | #ifndef __ASM_X86_BITSPERLONG_H
#define __ASM_X86_BITSPERLONG_H
#ifdef __x86_64__
# define __BITS_PER_LONG 64
#else
# define __BITS_PER_LONG 32
#endif
#include <asm-generic/bitsperlong.h>
#endif /* __ASM_X86_BITSPERLONG_H */
| 112 |
611 | //
// TestMakeDestinationViewController.h
// ZIKRouterDemo
//
// Created by zuik on 2017/7/5.
// Copyright © 2017 zuik. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TestMakeDestinationViewController : UIViewController
@end
| 87 |
348 | <gh_stars>100-1000
{"nom":"Goulien","circ":"7ème circonscription","dpt":"Finistère","inscrits":348,"abs":146,"votants":202,"blancs":8,"nuls":3,"exp":191,"res":[{"nuance":"REM","nom":"<NAME>","voix":110},{"nuance":"LR","nom":"<NAME>","voix":81}]} | 98 |
626 | <gh_stars>100-1000
/* inflate_p.h -- Private inline functions and macros shared with more than one deflate method
*
*/
#ifndef INFLATE_P_H
#define INFLATE_P_H
#include "zbuild.h"
#include "functable.h"
/* Architecture-specific hooks. */
#ifdef S390_DFLTCC_INFLATE
# include "arch/s390/dfltcc_inflate.h"
#else
/* Me... | 2,927 |
772 | <reponame>code-dot-org/code-dot-org
{
"category": "Poetry - Text",
"config": {
"func": "showText",
"blockText": "show text"
}
} | 63 |
1,517 | /*
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the Apache 2.0 License.
* See the accompanying LICENSE file for terms.
*/
package com.yahoo.squidb.processor.plugins.defaults.properties.generators;
import com.yahoo.aptutils.model.CoreTypes;
import com.yahoo.aptutils.model.DeclaredTypeName;
import com.ya... | 877 |
930 | <reponame>akshaykumarpatil-tudip/deploymentmanager-samples
# Copyright 2016 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/lice... | 1,472 |
313 | //
// YBLStoreViewModel.h
// YBL365
//
// Created by 乔同新 on 2017/3/7.
// Copyright © 2017年 乔同新. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "YBLShopFixtrueModel.h"
#import "YBLShopModel.h"
#import "YBLPerPageBaseViewModel.h"
typedef NS_ENUM(NSInteger,StoreType) {
StoreTypeOpen = 0,//
... | 535 |
302 | <filename>Engine/scriptworkerfactory.h<gh_stars>100-1000
#ifndef SCRIPTWORKERFACTORY_H
#define SCRIPTWORKERFACTORY_H
#include "engine_global.h"
#include "iworkerfactory.h"
namespace BrowserAutomationStudioFramework
{
class ENGINESHARED_EXPORT ScriptWorkerFactory : public IWorkerFactory
{
Q_OBJECT
p... | 197 |
3,053 | from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("sites", "0001_initial"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name="SiteP... | 901 |
1,724 | /*
* Copyright 2008-present MongoDB, 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 ag... | 451 |
1,131 | //
// 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 ... | 598 |
1,863 | //
// 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
// notice, this list of conditions and the following disclaimer.
// * Redistributions in bin... | 2,027 |
421 | <filename>samples/snippets/cpp/VS_Snippets_CLR_System/system.version.revision/cpp/rev.cpp
//<snippet1>
// This example demonstrates the Version.Revision,
// MajorRevision, and MinorRevision properties.
using namespace System;
int main()
{
String^ formatStandard = "Standard version:\n" +
" major.min... | 459 |
3,084 | /*++
Copyright (c) 2005 Microsoft Corporation
All rights reserved.
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
File Name:
xdsm... | 1,817 |
537 | <reponame>amanya/suro<filename>suro-elasticsearch/src/main/java/com/netflix/suro/sink/elasticsearch/TimestampField.java
package com.netflix.suro.sink.elasticsearch;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Strings;
import o... | 5,349 |
775 | from __future__ import annotations
import typing
from abc import abstractmethod
if typing.TYPE_CHECKING:
from pandasgui.gui import PandasGui
from pandasgui.widgets.filter_viewer import FilterViewer
from pandasgui.widgets.dataframe_viewer import DataFrameViewer
from pandasgui.widgets.dataframe_explorer ... | 15,377 |
26,879 | <reponame>ZacSweers/butterknife<filename>butterknife-lint/src/main/java/butterknife/lint/InvalidR2UsageDetector.java<gh_stars>1000+
package butterknife.lint;
import com.android.tools.lint.client.api.UElementHandler;
import com.android.tools.lint.detector.api.Category;
import com.android.tools.lint.detector.api.Detecto... | 1,594 |
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 ... | 2,361 |
3,579 | <filename>querydsl-core/src/main/java/com/querydsl/core/group/AbstractGroupByTransformer.java<gh_stars>1000+
/*
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | 1,555 |
382 | <gh_stars>100-1000
package com.netflix.spinnaker.clouddriver.orchestration;
/** Marker interface for inputs to an {@link AtomicOperation}. */
public interface OperationDescription {}
| 51 |
2,382 | <filename>tests/test_minimum_clearance.py
"""
Tests for the minimum clearance property.
"""
import math
import pytest
from shapely.wkt import loads as load_wkt
from shapely.geos import geos_version
requires_geos_36 = pytest.mark.skipif(geos_version < (3, 6, 0), reason="GEOS > 3.6.0 is required.")
@requires_geos_3... | 369 |
1,125 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 1,632 |
1,056 | <reponame>arusinha/incubator-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... | 2,113 |
5,594 | package com.tale.test.service;
import com.blade.ioc.annotation.Inject;
import com.tale.service.OptionsService;
import com.tale.test.BaseTest;
import org.junit.Assert;
import org.junit.Test;
/**
* @author biezhi
* @date 2018/6/3
*/
public class OptionsServiceTest extends BaseTest {
@Inject
private OptionsS... | 298 |
353 | #include <stdio.h>
struct IntValue {
int i;
const char *s;
};
static const struct IntValue IntValues[] = {{123, "123"},{456, "456"}};
static void compare_structure(const struct IntValue *v1, const struct IntValue *v2)
{
if (v1->i >= v2->i) {
printf("%s >= %s\n", v1->s, v2->s);
} else {
... | 270 |
1,103 | <filename>hollow-jsonadapter/src/main/java/com/netflix/hollow/jsonadapter/HollowJsonToFlatRecordTask.java
/*
* Copyright 2016-2019 Netflix, 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 cop... | 965 |
921 | #!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.join(__file__, '..', '..'))
sys.path.insert(0, os.path.dirname(__file__))
from django.core.management import execute_from_command_line
from reviewboard import finalize_setup
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')
... | 326 |
32,544 | <gh_stars>1000+
package com.baeldung.exceptions.nosuchmethoderror;
public class SpecialToday {
private static String desert = "Chocolate Cake";
public static String getDesert() {
return desert;
}
}
| 84 |
3,102 | <gh_stars>1000+
// RUN: %clang_cc1 -x c -debug-info-kind=line-tables-only -emit-llvm -fsanitize=returns-nonnull-attribute -o - %s | FileCheck %s
// The UBSAN function call in the epilogue needs to have a debug location.
__attribute__((returns_nonnull)) void *allocate() {}
// CHECK: define {{.*}}nonnull i8* @allocate(... | 196 |
384 | <reponame>hejamu/gromacs
#include "../gmx_lapack.h"
#define DORGLQ_BLOCKSIZE 32
#define DORGLQ_MINBLOCKSIZE 2
#define DORGLQ_CROSSOVER 128
void
F77_FUNC(dorglq,DORGLQ)(int *m,
int *n,
int *k,
double *a,
int *lda,
double *tau,
double *work,
int *lwork,
int *info)
{
int a_dim1, a_offset, i__... | 1,625 |
1,016 | /**
*
*/
package com.thinkbiganalytics.spark.mergetable;
import java.io.Serializable;
/*-
* #%L
* thinkbig-nifi-core-processors
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... | 849 |
442 | #include <vili/node.hpp>
namespace vili::writer
{
enum class delimiter_newline_policy
{
never,
only_if_multiline,
always
};
enum class comma_spacing_policy
{
left_side,
right_side,
both
};
enum class object_style
{
braces,
... | 1,085 |
392 | <filename>setup.py
#!/usr/bin/env python
import os
from setuptools import setup
def read(*parts):
"""Reads the content of the file located at path created from *parts*."""
try:
return open(os.path.join(*parts), "r", encoding="utf-8").read()
except OSError:
return ""
tests_require = []
r... | 260 |
2,138 | /*
* Copyright (C) 2017 Original 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 ... | 624 |
320 | from sample_factory.runner.run_description import RunDescription, Experiment, ParamGrid
_params = ParamGrid([
('gamma', [0.995]),
('gae_lambda', [1.0]),
('ppo_clip_value', [10]),
('with_vtrace', ['False']),
('learning_rate', [0.0001]),
('max_grad_norm', [100.0]),
('use_rnn', ['False']),
... | 522 |
2,453 | <reponame>haozhiyu1990/XVim2<gh_stars>1000+
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <Foundation/NSURLSession.h>
@interface NSURLSession (DVTMainThreadLatencyCheckerAdditions)
+ (id)__DVTMainThreadLatencyChecker__se... | 270 |
14,668 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <algorithm>
#include <cstdint>
#include <memory>
#include <vector>
#include "base/check.h"
#include "chromecast/public/cast_media_shlib.h"
#incl... | 1,369 |
5,547 | /*!
\file gd32f1x0_usart.h
\brief definitions for the USART
*/
/*
Copyright (C) 2017 GigaDevice
2014-12-26, V1.0.0, platform GD32F1x0(x=3,5)
2016-01-15, V2.0.0, platform GD32F1x0(x=3,5,7,9)
2016-04-30, V3.0.0, firmware update for GD32F1x0(x=3,5,7,9)
2017-06-19, V3.1.0, firmware update for... | 16,367 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Unconformable",
"definitions": [
"(of rock strata in contact) marking a discontinuity in the geological record, and typically not having the same direction of stratification."
],
"parts-of-speech": "Adjective"
} | 99 |
667 | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open("README") as file:
long_description = file.read()
setup(
name="flask-restful-swagger",
version="0.20.2",
url="https://github.com/rantav/flask-restful-swagger",
zip_safe=False,
packages=["fl... | 385 |
369 | <reponame>hubert-thieriot/gee_tools
# coding=utf-8
""" ee.Array helpers """
import ee
def constant2DArray(width, height, value):
""" Create an array of width x height with a fixed value """
cols = ee.List.repeat(value, height)
rows = ee.List.repeat(value, width)
return ee.Array(cols.map(lambda n: rows... | 292 |
852 | <reponame>ckamtsikis/cmssw<gh_stars>100-1000
//
//
#include "PhysicsTools/PatUtils/interface/TriggerHelper.h"
#include "DataFormats/Common/interface/AssociativeIterator.h"
using namespace pat;
using namespace pat::helper;
// Methods
// Get a reference to the trigger objects matched to a certain physics object give... | 2,266 |
1,609 | package com.mossle.humantask.listener;
import javax.annotation.Resource;
import com.mossle.api.delegate.DelegateConnector;
import com.mossle.humantask.persistence.domain.TaskInfo;
public class DelegateHumanTaskListener implements HumanTaskListener {
private DelegateConnector delegateConnector;
@Override
... | 517 |
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.
//-----------------------------------------------------------------------------
//
//
// Description:
//
// ... | 19,753 |
450 | <gh_stars>100-1000
//===- MsgHandler.h -------------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef ONNC_DIAGNOSTIC_MSGHANDLER_H
#define ONNC_... | 1,099 |
1,214 | package com.youth.xframe.utils;
import com.youth.xframe.XFrame;
/**
* 此内用于框架系统打印输出控制,使用者用XLog格式化体验更好。
*
*/
public class XPrintUtils {
private XPrintUtils() {
throw new UnsupportedOperationException("u can't instantiate me...");
}
private static String tag = XFrame.tag;
private static bool... | 736 |
5,169 | <gh_stars>1000+
{
"name": "ChocolatePlatform-Mediation-AdColony",
"version": "2.6.2",
"authors": "<NAME>.",
"license": {
"type": "Commercial",
"text": "You must accept the terms and conditions on the AdColony website by registering in order to legally use the AdColony SDK. U.S. based companies will need... | 304 |
4,812 | <filename>llvm/lib/MC/MCSectionMachO.cpp
//===- lib/MC/MCSectionMachO.cpp - MachO Code Section Representation ------===//
//
// 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-exce... | 4,627 |
698 | #!/usr/bin/env python2.7
import numpy as np
import time
grid_size = (512, )
def laplacian(grid):
return np.roll(grid, +1) + np.roll(grid, -1) - 2 * grid
def evolve(grid, dt, D=1):
return grid + dt * D * laplacian(grid)
def run_experiment(num_iterations):
grid = np.zeros(grid_size)
block_low = i... | 265 |
529 | from typing import Type
from psqlextra.models import PostgresMaterializedViewModel
from .view import PostgresViewModelState
class PostgresMaterializedViewModelState(PostgresViewModelState):
"""Represents the state of a :see:PostgresMaterializedViewModel in the
migrations."""
@classmethod
def _get_b... | 152 |
1,069 | from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from th_slack.api import views
urlpatterns = [
url(r'', views.slack,)
]
urlpatterns = format_suffix_patterns(urlpatterns)
| 79 |
1,044 | /* HFGlyphTrie is used to represent a trie of glyphs that allows multiple concurrent readers, along with one writer. */
#import <ApplicationServices/ApplicationServices.h>
/* BranchFactor is in bits */
#define kHFGlyphTrieBranchFactor 4
#define kHFGlyphTrieBranchCount (1 << kHFGlyphTrieBranchFactor)
typedef uint16_t... | 638 |
601 | <gh_stars>100-1000
{
"@microsoft/generator-sharepoint": {
"libraryName": "bootstrap-slider",
"framework": "none",
"version": "1.0.0",
"libraryId": "aea96b80-92f9-49e4-9f29-34acc9990af5"
}
} | 99 |
2,453 | <filename>XVim2/XcodeHeader/IDEKit/IDELayoutControlView.h
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <AppKit/NSView.h>
@interface IDELayoutControlView : NSView
{
double _maxContentWidth;
long long _alignment;
... | 225 |
980 | {"recorded_with": "betamax/0.8.0", "http_interactions": [{"request": {"method": "GET", "headers": {"Accept-Encoding": "gzip, deflate", "Accept": "application/vnd.github.v3.full+json", "Content-Type": "application/json", "User-Agent": "github3.py/1.0.0a4", "Connection": "keep-alive", "Accept-Charset": "utf-8"}, "uri": "... | 697 |
435 | <reponame>Accumulo-S3/datawave
package datawave.query.jexl.functions;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import datawave.data.normalizer.AbstractGeometryNormalizer;
import datawave.data.normalizer.GeoNormalizer;
import datawave.data.normalizer.GeometryNormalizer;
import... | 8,943 |
1,073 | <gh_stars>1000+
// RUN: %clang_cc1 -analyze -analyzer-checker=core,cplusplus.NewDeleteLeaks -verify %s
class A0 {};
class A1 {
public:
A1(int);
};
struct S{
int i;
};
class A2 {
public:
A2();
A2(S);
A2(int*);
A2(S*);
A2(S&, int);
A2(int, S**);
};
void test() {
new int; // expected-warning@+1 {{Po... | 471 |
420 | #pragma once
namespace rawaccel {
constexpr double minsd(double a, double b)
{
return (a < b) ? a : b;
}
constexpr double maxsd(double a, double b)
{
return (b < a) ? a : b;
}
constexpr double clampsd(double v, double lo, double hi)
{
return minsd(maxsd(v, ... | 961 |
498 | <reponame>hwlhwl2006/CoinExchange_CryptoExchange_Java<gh_stars>100-1000
package com.bizzan.bitrade.dao;
import java.util.List;
import com.bizzan.bitrade.constant.BooleanEnum;
import com.bizzan.bitrade.constant.CertifiedBusinessStatus;
import com.bizzan.bitrade.dao.base.BaseDao;
import com.bizzan.bitrade.entity.Busine... | 258 |
511 | /*****************************************************************************
*
* Copyright 2017 Samsung Electronics 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 a... | 1,924 |
2,293 | /*
* Copyright (C) 2010-2021 Arm Limited or its affiliates.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* www.apache.org/licenses/LICENSE-... | 437 |
478 | /*
Copyright (c) 2014 Aerys
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, modify, merge, publish, distribute,
sublicens... | 1,391 |
5,362 | <gh_stars>1000+
from pokemongo_bot import inventory
from pokemongo_bot.inventory import Pokemon
from pokemongo_bot.inventory import Pokemons
from pokemongo_bot.human_behaviour import sleep, action_delay
from pokemongo_bot.base_task import BaseTask
from pokemongo_bot.worker_result import WorkerResult
from datetime impor... | 3,275 |
1,467 | <reponame>akshatkarani/iroha
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_SHARED_MODEL_PROTO_ROLES_RESPONSE_HPP
#define IROHA_SHARED_MODEL_PROTO_ROLES_RESPONSE_HPP
#include "interfaces/query_responses/roles_response.hpp"
#include "qry_responses.pb... | 317 |
923 | <filename>engine/utils/Utils.hpp
// Ouzel by <NAME>
#ifndef OUZEL_UTILS_UTILS_HPP
#define OUZEL_UTILS_UTILS_HPP
#include <cstdint>
#include <string>
#include <string_view>
#include <type_traits>
#include <vector>
namespace ouzel
{
template <class T>
auto getVectorSize(const T& vec) noexcept
{
ret... | 1,024 |
462 | def hola():
import builtins
print(builtins.__aiotasks__) | 31 |
10,340 | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... | 849 |
777 | // 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 CHROME_BROWSER_WIN_JUMPLIST_FACTORY_H_
#define CHROME_BROWSER_WIN_JUMPLIST_FACTORY_H_
#include "base/memory/singleton.h"
#include "chrome/browser... | 313 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.