max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
794 | <gh_stars>100-1000
#ifndef __CCGL_H__
#define __CCGL_H__
#define glClearDepth glClearDepthf
#define glDeleteVertexArrays glDeleteVertexArraysOES
#define glGenVertexArrays glGenVertexArraysOES
#define glBindVertexArray glBindVertexArrayOES
#define glMapBuffer glMapBufferOES
#define glUnmapBuffer glUnma... | 532 |
812 | /*
* Password Management Servlets (PWM)
* http://www.pwm-project.org
*
* Copyright (c) 2006-2009 Novell, Inc.
* Copyright (c) 2009-2021 The PWM Project
*
* 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 ... | 1,307 |
306 | <filename>src/test/resources/import-files/scope-mappings/09_update-realm__update-role-for-client.json
{
"id": "realmWithScopeMappings",
"realm": "realmWithScopeMappings",
"displayName": "Realm with scope-mappings",
"enabled": true,
"scopeMappings": [
{
"clientScope": "offline_access",
"roles":... | 231 |
879 | <filename>header/src/main/java/org/zstack/header/storage/primary/APISyncPrimaryStorageCapacityMsg.java
package org.zstack.header.storage.primary;
import org.springframework.http.HttpMethod;
import org.zstack.header.message.APIMessage;
import org.zstack.header.message.APIParam;
import org.zstack.header.rest.RestRequest... | 419 |
640 | <reponame>qjiang310/PRNN-GRU
#pragma once
// Persistent RNN Includes
#include <prnn/detail/util/argument_parser.h>
#include <prnn/detail/util/string.h>
// Standard Library Includes
#include <iostream>
#include <cassert>
namespace prnn
{
namespace util
{
inline ArgumentParser::ArgumentParser(int argc, char** argv) ... | 3,345 |
8,805 | // Copyright <NAME> 2010.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifdef _MSC_VER
# pragma once
#endif
#ifndef BOOST_MATH_CONSTANTS_INFO_INCLUDED
#define B... | 2,499 |
439 | package org.allenai.scienceparse;
import com.gs.collections.impl.set.mutable.primitive.LongHashSet;
import org.allenai.scienceparse.ParserGroundTruth.Paper;
import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
... | 556 |
1,391 | #include <u.h>
#include <libc.h>
#include <thread.h>
#include "ioproc.h"
enum
{
STACK = 32768
};
void
iointerrupt(Ioproc *io)
{
if(!io->inuse)
return;
fprint(2, "bug: cannot iointerrupt %p yet\n", io);
}
static void
xioproc(void *a)
{
Ioproc *io, *x;
threadsetname("ioproc");
io = a;
/*
* first recvp acqu... | 1,064 |
303 | from __future__ import absolute_import
from mock import patch, MagicMock
from django.core import mail
from util.tests.test_email_notification.base import EmailBaseTest
SUBJECT_TASK_SCHEDULE_CREATED = (
'[DBaaS] Automatic Task created for Database {}'
)
SUBJECT_TASK_SCHEDULE_UPDATED = (
'[DBaaS] Automatic Ta... | 3,089 |
2,838 | # Copyright (c) Glow Contributors. See CONTRIBUTORS file.
#
# 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 ... | 1,772 |
5,169 | {
"name": "NKQueue",
"version": "0.1.2",
"summary": "Implementation of Queue structure on Swift language based on LinkedList",
"description": "This is one of the most common data structures. You can find more information in the 'Algorithms (4th Edition)' book by Robert Sedgewick.",
"homepage": "https://github... | 284 |
372 | <reponame>laichunjing/design
//
// HWComputer.h
// AFPDemo
//
// Created by <NAME> on 2018/10/3.
// Copyright © 2018年 Sunshijie. All rights reserved.
//
#import "Computer.h"
@interface MateBookComputer : Computer
@end
| 85 |
1,738 | <gh_stars>1000+
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by ... | 1,592 |
5,169 | <filename>Specs/XMNThirdFunction/1.0.2/XMNThirdFunction.podspec.json<gh_stars>1000+
{
"name": "XMNThirdFunction",
"version": "1.0.2",
"summary": "封装第三方SDK 集成分享功能",
"description": "移动分享集成,\n目前支持微信,微博,QQ",
"homepage": "https://github.com/ws00801526",
"license": "MIT",
"authors": {
"XMFraker": "<EMAIL>"
... | 1,726 |
335 | {
"word": "Particularity",
"definitions": [
"The quality of being individual.",
"Fullness or minuteness of detail in the treatment of something.",
"Small details.",
"The doctrine of God's incarnation as Jesus as a particular person at a particular time and place."
],
"par... | 122 |
2,392 | // Copyright (c) 2019 GeometryFactory(France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL: https://github.com/CGAL/cgal/blob/v5.1/Intersections_3/include/CGAL/Intersections_3/internal/Tetrahedron_3_Triangle_3_intersection.h $
// $Id: Tetrahedron_3_Triangle_3_intersection.h 8b41189... | 4,209 |
428 | <gh_stars>100-1000
/**
* Copyright 2008 - 2019 The Loon Game Engine 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
*
* Unle... | 7,243 |
809 | <reponame>mfkiwl/embox<filename>src/tests/string/strncat_test.c
/**
* @file strncat_test.c
* @brief Test for the 'strncat' function.
*
* @date February, 2021
* @author <NAME>
*/
#include <string.h>
#include <embox/test.h>
EMBOX_TEST_SUITE("string/strncat test");
TEST_CASE("strncat") {
/* Destination string *... | 256 |
1,255 | """The NGBoost Exponential distribution and scores"""
import numpy as np
import scipy as sp
from scipy.stats import expon as dist
from ngboost.distns.distn import RegressionDistn
from ngboost.scores import CRPScore, LogScore
eps = 1e-10
class ExponentialLogScore(LogScore):
def score(self, Y):
E, T = Y["... | 1,091 |
317 | /*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... | 2,565 |
3,102 | // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s -triple=x86_64-linux-gnu
using size_t = decltype(sizeof(int));
namespace std {
struct string {};
}
template<typename T, typename U> struct same_type;
template<typename T> struct same_type<T, T> {};
namespace std_example {
long double operator "" _w(long doubl... | 346 |
634 | <reponame>halotroop2288/consulo
/*
* Copyright 2013-2016 consulo.io
*
* 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... | 675 |
5,547 | /*!
\file gd32e50x_bkp.c
\brief BKP driver
\version 2020-03-10, V1.0.0, firmware for GD32E50x
\version 2020-08-26, V1.1.0, firmware for GD32E50x
*/
/*
Copyright (c) 2020, GigaDevice Semiconductor Inc.
Redistribution and use in source and binary forms, with or without modification,
are p... | 4,209 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 3,471 |
2,133 | <gh_stars>1000+
#include "../../../../../src/location/maps/qcache3q_p.h"
| 32 |
665 | <gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 ... | 4,020 |
3,710 | #include "commandbarpopup.h"
// Tnz includes
#include "tapp.h"
#include "menubar.h"
#include "shortcutpopup.h"
// TnzQt includes
#include "toonzqt/gutil.h"
// TnzLib includes
#include "toonz/toonzfolders.h"
// TnzCore includes
#include "tsystem.h"
// Qt includes
#include <QMainWindow>
#include <QPushButton>
#inclu... | 5,614 |
22,688 | <reponame>jzjonah/apollo
/******************************************************************************
* Copyright 2017 The Apollo 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 ... | 445 |
788 | <reponame>snoopdave/incubator-usergrid<gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under... | 1,620 |
465 | <reponame>ChenglongChen/Kaggle_Homedepot<filename>Code/Chenglong/feature_doc2vec.py
# -*- coding: utf-8 -*-
"""
@author: <NAME> <<EMAIL>>
@brief: doc2vec based features
"""
import gensim
import numpy as np
import pandas as pd
from sklearn.metrics.pairwise import cosine_similarity
import config
from utils import dist... | 2,609 |
468 | <reponame>aaryantyagi182/cpp<filename>dynamic-programming/ways_to_cover.cpp<gh_stars>100-1000
//
// A Dynamic Programming based C++ program to count number of ways
// to cover a distance with 1, 2 and 3 steps
//
// The All ▲lgorithms library for python
//
// https://allalgorithms.com/dynamic-programming/
// https://git... | 340 |
506 | // https://uva.onlinejudge.org/external/7/782.pdf
#include<bits/stdc++.h>
using namespace std;
using vb=vector<bool>;
using vvb=vector<vb>;
using vs=vector<string>;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
int t;
string s;
cin>>t;
getline(cin,s);
while(t--){
vs a;
vvb b;
for(;;){
... | 723 |
812 | package com.vpaliy.melophile.ui.playlists;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.vpaliy.melophile.R;
import com.vpaliy.melophile.ui.base.BaseAdapter;
import com.vpaliy.melophile... | 729 |
311 | <reponame>zcf7822/joyqueue
/**
* Copyright 2019 The JoyQueue 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 re... | 8,063 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "unaryfunctionnode.h"
#include "stringresultnode.h"
#include "resultvector.h"
#include <vespa/searchlib/common/sortspec.h>
namespace search::expression {
class DebugWaitFunctionNode : public... | 248 |
392 | <filename>Client/TimedMessageQueue.cpp
#include "TimedMessageQueue.h"
TimedMessageQueue::TimedMessageQueue(unsigned int maxMessages, unsigned long long durationMs)
{
this->_maxMessages = maxMessages;
this->_durationMs = durationMs;
}
void TimedMessageQueue::addMessage(std::string message)
{
if (this->_messages.siz... | 347 |
400 | /*
*
* Copyright (c) 2013 - 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 agree... | 11,324 |
373 | <filename>Silicon/Socionext/SynQuacer/Drivers/Net/NetsecDxe/netsec_for_uefi/netsec_sdk/include/ogma_basic_type.h
/** @file
Copyright (c) 2016 - 2017, Socionext Inc. All rights reserved.<BR>
Copyright (c) 2017, Linaro, Ltd. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifn... | 482 |
9,734 | // 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... | 437 |
471 | from django.core.management import BaseCommand
from corehq.apps.sms.tests.data_generator import create_fake_sms
class Command(BaseCommand):
help = """
Generates a few fake SMS message models for a domain, for testing.
"""
def add_arguments(self, parser):
parser.add_argument('domain')
... | 234 |
357 | /**
* This file is part of Eclipse Steady.
*
* 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... | 644 |
321 | <reponame>RijuDasgupta9116/LintCode
"""
Easy Number of Islands
19% Accepted
Given a boolean 2D matrix, find the number of islands.
Have you met this question in a real interview? Yes
Example
Given graph:
[
[1, 1, 0, 0, 0],
[0, 1, 0, 0, 1],
[0, 0, 0, 1, 1],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 1]
]
return 3.
Note... | 759 |
1,131 | <filename>framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaUsageVO.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 licenses ... | 1,934 |
925 | <gh_stars>100-1000
/*****************************************************************************
* *
* PrimeSense PSCommon Library *
* Copyright (C) 2012 PrimeSense Ltd. ... | 1,811 |
328 | import os
import flex
template = '''
################################################################################
#
# This is a generated file, all edits will be lost!
#
################################################################################
namespace Skew {
enum TokenKind {
%(actions)s
}
%(yy_acc... | 848 |
362 | <gh_stars>100-1000
/*
* Copyright (c) 2003, The JUNG Authors
*
* All rights reserved.
*
* This software is open-source under the BSD license; see either
* "license.txt" or
* https://github.com/jrtom/jung/blob/master/LICENSE for a description.
*/
package edu.uci.ics.jung.algorithms.shortestpath;
import com.goog... | 2,168 |
338 | <reponame>CaMnter/AndroidLife
package com.camnter.newlife.widget.data;
import android.content.ContentResolver;
import android.database.CharArrayBuffer;
import android.database.ContentObserver;
import android.database.Cursor;
import android.database.DataSetObserver;
import android.net.Uri;
import android.os.Bundle;
/*... | 1,927 |
726 | """Test smart_task."""
import datetime
from pytradfri.gateway import Gateway
from pytradfri.smart_task import BitChoices, SmartTask
TASK = {
"5850": 1,
"9002": 1492349682,
"9003": 317094,
"9040": 4,
"9041": 48,
"9042": {
"15013": [
{"5712": 18000, "5851": 254, "9003": 65537... | 1,166 |
682 | /**CFile****************************************************************
FileName [abcOrder.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Network and node package.]
Synopsis [Exploring static BDD variable orders.]
Author [<NAME>]
Affiliation [UC Berkeley]
... | 1,661 |
769 | <gh_stars>100-1000
// Copyright 2017 ETH Zurich and University of Bologna.
// Copyright and related rights are licensed under the Solderpad Hardware
// License, Version 0.51 (the “License”); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
// http://solderpad.... | 1,686 |
589 | package rocks.inspectit.ui.rcp.details.generator.impl;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.forms.widgets.FormToolkit;
import rocks.inspectit.shared.all.communication.DefaultData;
import rocks.inspectit.shared.all.communication.data.SqlStatementData;
import rocks.inspectit.ui.rcp.details.De... | 571 |
1,291 | """Data generator for center cropped and transformed MNIST images
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.keras.utils import Sequence
from tensorflow.keras.utils import to_categorical
from tensorflow.keras.datasets import mnist
... | 3,486 |
3,102 | <filename>clang/test/Sema/implicit-builtin-freestanding.c
// RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s
// RUN: %clang_cc1 -fsyntax-only -verify -fno-builtin %s
// RUN: %clang_cc1 -fsyntax-only -verify -fno-builtin-malloc %s
// expected-no-diagnostics
int malloc(int a) { return a; }
| 128 |
3,861 | /** @file
Provides the parent dispatch service for the periodical timer SMI source generator.
Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies thi... | 3,004 |
2,759 | <gh_stars>1000+
// Copyright (c) YugaByte, 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 a... | 1,042 |
1,531 | <reponame>yanolja/ngrinder
// Copyright (C) 2002 - 2009 <NAME>
// All rights reserved.
//
// This file is part of The Grinder software distribution. Refer to
// the file LICENSE which is part of The Grinder distribution for
// licensing details. The Grinder distribution is available on the
// Internet at http://grinder... | 1,515 |
16,989 | /*
* untgz.c -- Display contents and extract files from a gzip'd TAR file
*
* written by <NAME> <<EMAIL>>
* adaptation to Unix by <NAME> <<EMAIL>>
* various fixes by <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include "zlib.h"
#ifdef unix... | 8,845 |
937 | <filename>16Redis/day01/basic01.py
"""
Redis是一种非关系型数据库
Nosql作为非关系型数据库,都是采用K-V的方式储存数据的,所以不支持sql语法
相对于关系型数据库:nosql不适合关系复杂的数据库查询场景,只适合简单的关系,其次nosql不支持事务
nosql类数据库中有:redis,mangodb等,
Redis支持数据持久化,可以把内存中的数据保存在磁盘上,也支持备份
同时还支持多种类型的存储,比如list, set, zset,hash等数据结构的存储
Redis应用场景: 1- 缓存, redis所有... | 2,831 |
409 | <filename>clang-tools-extra/clangd/Format.cpp
//===--- Format.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... | 5,478 |
13,006 | /*******************************************************************************
* Copyright (c) 2019-2020 <NAME>.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unles... | 4,544 |
13,566 | package com.appsmith.server.helpers;
import com.appsmith.server.constants.CommentConstants;
import com.appsmith.server.domains.Comment;
import org.springframework.util.StringUtils;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class CommentUtils {
/**
... | 2,170 |
359 | package com.github.thomasdarimont.keycloak.server;
import com.github.thomasdarimont.keycloak.server.smallrye.MetricsServlet;
import io.undertow.servlet.Servlets;
import io.undertow.servlet.api.DeploymentInfo;
import org.keycloak.common.Version;
import org.keycloak.testsuite.KeycloakServer;
import java.text.SimpleDate... | 494 |
381 | #! /usr/bin/env python
"""Python interface for the 'lsprof' profiler.
Compatible with the 'profile' module.
"""
__all__ = ["run", "runctx", "help", "Profile"]
import _lsprof
# ____________________________________________________________
# Simple interface
def run(statement, filename=None, sort=-1):
"""Run s... | 2,739 |
340 | <reponame>leha-bot/eve
//==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//===============================================================================... | 2,955 |
9,267 | <gh_stars>1000+
#
print('This is module ' + __name__)
# Tick: import a package in a way, PyInstaller is not able to track it. But we want to import it anyway to make the
# submodule `sub11` print it's name.
sub11 = ''.join('sub11')
__import__(__name__ + '.' + sub11, globals=globals(), level=0)
| 105 |
5,169 | <gh_stars>1000+
{
"name": "Bluetooth.Swift",
"version": "0.0.2",
"summary": "Bluetooth.Swift for iOS in Swift",
"swift_versions": "5.0",
"description": "TODO: Add long description of the pod here.",
"homepage": "https://zerofenglee.github.io",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"... | 251 |
438 | <reponame>renandecarlo/ExplainToMe
from flask import jsonify, request
from flask import Blueprint
from . utils import get_summary
api = Blueprint('api', __name__)
@api.route('/summary', methods=['POST'])
def summary():
if request.is_json:
data = request.get_json()
url = data.get('url', 'https://w... | 296 |
6,465 | package io.dropwizard.util;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.jupiter.api.Test;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import static org.assertj.core... | 16,440 |
348 | {"nom":"Gaillan-en-Médoc","circ":"5ème circonscription","dpt":"Gironde","inscrits":1725,"abs":1033,"votants":692,"blancs":66,"nuls":46,"exp":580,"res":[{"nuance":"REM","nom":"<NAME>","voix":293},{"nuance":"SOC","nom":"<NAME>","voix":287}]} | 98 |
425 | <reponame>jjzhang166/doubanfm-qt<filename>libs/lyricgetter.h<gh_stars>100-1000
#ifndef LYRICGETTER_H
#define LYRICGETTER_H
#include <QObject>
#include <QNetworkAccessManager>
#include "qlyricparser.h"
#include "douban_types.h"
class LyricGetter : public QObject {
Q_OBJECT
public:
explicit LyricGetter(QObject*... | 237 |
316 | #pragma once
#include <mbgl/map/map_snapshotter.hpp>
#include <jni/jni.hpp>
#include "../geometry/lat_lng.hpp"
#include "../graphics/pointf.hpp"
#include <vector>
#include <string>
namespace mbgl {
namespace android {
class MapSnapshot {
public:
using PointForFn = mbgl::MapSnapshotter::PointForFn;
using ... | 741 |
1,359 | <gh_stars>1000+
package com.kalessil.phpStorm.phpInspectionsEA;
import com.jetbrains.php.config.PhpLanguageLevel;
import com.jetbrains.php.config.PhpProjectConfigurationFacade;
import com.kalessil.phpStorm.phpInspectionsEA.inspectors.apiUsage.UnqualifiedReferenceInspector;
final public class UnqualifiedReferenceInspe... | 685 |
364 | <reponame>xiaobing007/dagli
// AUTOGENERATED CODE. DO NOT MODIFY DIRECTLY! Instead, please modify the transformer/internal/TransformerXInternalAPI.ftl file.
// See the README in the module's src/template directory for details.
package com.linkedin.dagli.transformer.internal;
import com.linkedin.dagli.transformer.Tra... | 462 |
507 | <reponame>wujiezero/SpringBoot
package top.rstyro.shiro;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springf... | 310 |
1,281 | <gh_stars>1000+
import multiprocessing
from multiprocessing.queues import Empty, Queue
import sys
import traceback
import typing as tp
from pypeln import utils as pypeln_utils
from . import utils
T = tp.TypeVar("T")
class PipelineException(tp.NamedTuple, BaseException):
exception: tp.Optional[tp.Type[BaseExc... | 1,612 |
379 | <gh_stars>100-1000
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.oim.fx.common.util;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.GraphicsConfigurat... | 11,870 |
3,358 | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2008, 2009 <NAME>
Copyright (C) 2008 <NAME>
Copyright (C) 2008 StatPro Italia srl
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantli... | 7,908 |
1,338 | /*
* Copyright 2001-2005, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> (<EMAIL>)
*/
#include <Invoker.h>
BInvoker::BInvoker(BMessage* message, BMessenger messenger)
:
fMessage(message),
fMessenger(messenger),
fReplyTo(NULL),
fTimeout(B_INFINITE_TIMEOUT),
fNotifyKind(0)... | 1,107 |
1,602 | /*
* Copyright (c) 2015-2016 Cray Inc. All rights reserved.
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2... | 1,979 |
700 | # Generated by Django 3.0.8 on 2020-08-30 05:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0060_populate_filterlists_fix'),
('api', '0052_offtopicchannelname_used'),
]
operations = [
]
| 111 |
1,178 | <filename>avionics/firmware/network/net_mon.c<gh_stars>1000+
/*
* Copyright 2020 Makani Technologies 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/... | 4,070 |
865 | {
"name": "gotron-ui",
"description": "Golang & Electron Boilerplate for Platform Independent Desktop Apps ",
"version": "0.0.1",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/equanox/gotron.git"
},
"author": "equanox",
"scripts": {
"install": "npm run ins... | 714 |
345 | <filename>test/programytest/parser/template/graph_tests/rdf_tests/test_uniq.py<gh_stars>100-1000
import xml.etree.ElementTree as ET
from programy.parser.template.nodes.base import TemplateNode
from programy.parser.template.nodes.uniq import TemplateUniqNode
from programytest.parser.template.graph_tests.graph_test_clie... | 1,838 |
1,668 | from django.apps import AppConfig
class PolymorphicTestsConfig(AppConfig):
name = 'ralph.lib.polymorphic.tests'
label = 'polymorphic_tests'
| 53 |
489 | <filename>habitat/utils/pickle5_multiprocessing.py
#!/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 io
import sys
from multiprocessing.connection import Connectio... | 989 |
11,699 | <gh_stars>1000+
#ifndef BROTLI_RESEARCH_SIEVE_H_
#define BROTLI_RESEARCH_SIEVE_H_
#include <cstddef>
#include <cstdint>
#include <string>
#include <vector>
/**
* Generate a dictionary for given samples.
*
* @param dictionary_size_limit maximal dictionary size
* @param slice_len text slice size
* @param sample_si... | 217 |
2,192 | <reponame>rupesh2192/djoser
from django.conf import settings
from django.contrib.auth import user_logged_out
from django.test.utils import override_settings
from djet import assertions
from rest_framework import status
from rest_framework.reverse import reverse
from rest_framework.test import APITestCase
from testapp.t... | 765 |
2,048 | <reponame>conr2d/CLI11<gh_stars>1000+
// Copyright (c) 2017-2021, University of Cincinnati, developed by <NAME>
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
| 103 |
537 | <reponame>arikfr/turbodbc
#pragma once
#include <turbodbc/result_sets/row_based_result_set.h>
#include <turbodbc/field.h>
#include <turbodbc/field_translator.h>
#include <pybind11/pybind11.h>
namespace arrow {
class Schema;
class Status;
class Table;
class ArrayBuilder;
}
namespace turbodbc_arrow {
/**
* @brief ... | 640 |
324 | <filename>apis/route53/src/main/java/org/jclouds/route53/domain/Change.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 licenses this fi... | 1,060 |
1,182 | <gh_stars>1000+
from datetime import datetime as dt, timedelta as td
from models.channel import Channels
from config import CACHE_INTERVAL
class ChannelsCache():
def __init__(self, cache_interval: td) -> None:
# self.channels = None
self.simplifyChannels = None
self.rooms = None
se... | 1,155 |
571 | from pygmy.database.base import BaseDatabase
class MySQLDatabase(BaseDatabase):
pass
| 26 |
888 | <reponame>davidkartchner/rubrix<filename>scripts/migrations/es_migration_25042021.py
from itertools import zip_longest
from typing import Any, Dict, List, Optional
from elasticsearch import Elasticsearch
from elasticsearch.helpers import scan, bulk
from pydantic import BaseSettings
from rubrix.server.tasks.commons imp... | 1,765 |
411 | <filename>giraph-block-app/src/main/java/org/apache/giraph/block_app/framework/piece/PieceWithWorkerContext.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 copyrigh... | 661 |
767 | <reponame>prabhushrikant/springfox-demos<gh_stars>100-1000
package com.escalon.springfox.springintegration;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import io.swagger.annotations.Example;
import io.swagger.annotations.ExampleProperty;
import org.springframework.boot.Spring... | 2,013 |
14,668 | <filename>components/ntp_snippets/switches.h
// 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 COMPONENTS_NTP_SNIPPETS_SWITCHES_H_
#define COMPONENTS_NTP_SNIPPETS_SWITCHES_H_
namespace ntp_snippe... | 174 |
355 | /*
The MIT License (MIT)
Copyright (c) 2021 <NAME>
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, publis... | 3,093 |
852 | #ifndef CSCTFConfigProducer_h
#define CSCTFConfigProducer_h
#include <FWCore/Framework/interface/ESProducer.h>
#include <FWCore/ParameterSet/interface/ParameterSet.h>
#include "CondFormats/DataRecord/interface/L1MuCSCTFConfigurationRcd.h"
#include "CondFormats/L1TObjects/interface/L1MuCSCTFConfiguration.h"
#include ... | 478 |
809 | <gh_stars>100-1000
/**
* @file
* @brief The definitions for the x86 IO instructions.
*
* @date 12.12.10
* @author <NAME>
* @author <NAME>
*/
#ifndef X86_IO_H_
#define X86_IO_H_
#include <stdint.h>
static inline void farpokeb( unsigned sel, void *off, char v ) {
__asm__ __volatile__ (
"push %%fs\n\t"
"mov... | 1,498 |
5,193 | <reponame>ls1110924/Aria<filename>Aria/src/main/java/com/arialyy/aria/core/queue/pool/DLoadSharePool.java
/*
* Copyright (C) 2016 AriaLyy(https://github.com/AriaLyy/Aria)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 466 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.