max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
509
#ifndef PROMETEO_H_ #define PROMETEO_H_ #ifdef __cplusplus extern "C" { #endif #include "pmat_blasfeo_wrapper.h" #include "pvec_blasfeo_wrapper.h" #include "pmt_heap.h" #ifdef __cplusplus } #endif #endif // PROMETEO_H_
112
363
package org.jeasy.batch.tutorials.advanced.jmx; import org.jeasy.batch.core.jmx.JobMonitoringListener; import org.jeasy.batch.core.job.JobReport; import org.jeasy.batch.core.job.JobStatus; import java.io.IOException; import java.nio.file.Path; import java.util.Scanner; public class ProgressListener extends JobMonito...
439
953
int main() { int a = 5; int b = 10; int c = 2; int d; int e; c = b + a * b + 10 * a / c + 10 * 3 / 3; d = c * b + a / 2; e = d * c; if(e != 90440) return 1; }
85
2,614
<reponame>haiziming/simpleui<filename>simpleui/widgets.py<gh_stars>1000+ # -*- encoding: utf-8 -*- """ @File : widgets.py @Time : 2020/1/3 11:22 @Author : chise @Email : <EMAIL> @Software: PyCharm @info :小部件 """ import typing import copy import datetime import re import warnings from collections import defa...
4,596
521
/* $Id: VBoxVideoVBE.h $ */ /** @file * VirtualBox graphics card port I/O definitions */ /* * Copyright (C) 2006-2017 Oracle Corporation * * 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 Softw...
1,571
2,151
<reponame>zipated/src // 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 "components/zucchini/imposed_ensemble_matcher.h" #include <algorithm> #include <sstream> #include <utility> #include "bas...
1,956
636
package cn.org.atool.fluent.mybatis.exception; import cn.org.atool.fluent.mybatis.utility.MybatisUtil; /** * FluentMybatisException 异常类 * * @author darui.wu */ public class FluentMybatisException extends RuntimeException { private static final long serialVersionUID = 1L; public FluentMybatisException(St...
452
2,661
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
799
826
/*************************************************************************** * Copyright 1998-2020 by authors (see AUTHORS.txt) * * * * This file is part of LuxCoreRender. * * ...
1,224
5,964
/* * Copyright 2011 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
1,015
5,355
<gh_stars>1000+ package graphql.validation.rules; import graphql.Internal; import graphql.language.TypeName; import graphql.language.VariableDefinition; import graphql.schema.GraphQLType; import graphql.validation.AbstractRule; import graphql.validation.ValidationContext; import graphql.validation.ValidationErrorColl...
388
2,521
// dear imgui: Renderer Backend for DirectX12 // This needs to be used along with a Platform Backend (e.g. Win32) // Implemented features: // [X] Renderer: User texture binding. Use 'D3D12_GPU_DESCRIPTOR_HANDLE' as ImTextureID. Read the FAQ about ImTextureID! // [X] Renderer: Support for large meshes (64k+ vertices)...
777
3,212
<reponame>Cerberuser/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 *...
1,948
650
<reponame>alienisty/spring-data-rest /* * Copyright 2012-2021 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 * * https://www.apache.org/licenses/L...
1,563
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 ...
638
344
<reponame>sfc-gh-zyang/autofdo #include "llvm_profile_reader.h" #include "symbol_map.h" #include "llvm/Config/llvm-config.h" #include "llvm/ProfileData/SampleProfReader.h" namespace devtools_crosstool_autofdo { const char *LLVMProfileReader::GetName(const llvm::StringRef &N) { return names_.insert(N.str()).first->...
2,170
1,094
<gh_stars>1000+ /** * Copyright (c) 2015 <NAME> <<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 required by ap...
10,337
1,521
<reponame>LI-Mingyu/GraphScope-MY /** * Copyright 2020 Alibaba Group Holding Limited. * * <p>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 * * <p>http://www.apache.org/licenses/LICENSE-2.0 ...
1,058
679
<reponame>Grosskopf/openoffice /************************************************************** * * 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...
2,259
738
<filename>hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/storage/HoodieAvroParquetWriter.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 ...
1,099
303
{"id":2030,"line-1":"Greater London","line-2":"United Kingdom","attribution":"©2014 Bluesky, DigitalGlobe, Getmapping plc, Infoterra Ltd & Bluesky, The GeoInformation Group","url":"https://www.google.com/maps/@51.512806,-0.141317,18z/data=!3m1!1e3"}
90
377
<filename>python_system.bzl # Copyright 2021 DeepMind Technologies Limited. # # 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...
712
852
#include "Alignment/TwoBodyDecay/interface/TwoBodyDecayLinearizationPointFinder.h" #include "Alignment/TwoBodyDecay/interface/TwoBodyDecayModel.h" #include "DataFormats/CLHEP/interface/AlgebraicObjects.h" const TwoBodyDecayParameters TwoBodyDecayLinearizationPointFinder::getLinearizationPoint( const std::vector<R...
1,608
426
/* -*-c++-*- IfcQuery www.ifcquery.com * MIT License Copyright (c) 2017 <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 ...
4,545
1,073
<gh_stars>1000+ package org.saiku.license; import java.io.Serializable; import java.util.HashMap; import java.util.Map; /** * Unnamed user counter. */ class SaikuCounter implements Serializable{ private final Map<String,Integer> counter = new HashMap<>(); public SaikuCounter() { } public void updateCount...
257
649
package net.thucydides.junit.hamcrest; import org.hamcrest.Description; import org.hamcrest.Matcher; import org.hamcrest.TypeSafeMatcher; import org.junit.runner.notification.Failure; public class FailureWithMessageMatcher extends TypeSafeMatcher<Failure> { private final Matcher<String> matcher; pub...
249
1,428
'''sleep sort Sorting algorithm based on sleeping Takes a list of integers and outputs them in ascending order in max(nums) seconds ''' import asyncio import sys async def say(n): await asyncio.sleep(n) print(n) async def main(nums): tasks = [asyncio.create_task(say(n)) for n in nums] await asyncio...
171
1,970
/* * 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 ...
602
9,959
public class I2335_BuilderMultipleObtainVia { private String theString; private Long theLong; public I2335_BuilderMultipleObtainVia(String theString, Long theLong) { setTheString(theString); setTheLong(theLong); } public String getTheString() { return theString; } public Long getTheLong() { return theLon...
800
3,631
/* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * 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 ap...
2,122
524
<filename>core/tools/win32/dll.cpp #include "stdafx.h" #include "dll.h" CORE_TOOLS_WIN32_NS_BEGIN CORE_TOOLS_WIN32_NS_END
63
1,584
<gh_stars>1000+ /** * @file extern.h * * <JA> * @brief 外部関数宣言 * </JA> * * <EN> * @brief External function declarations * </EN> * * @author <NAME> * @date Mon Mar 7 23:19:14 2005 * * $Revision: 1.24 $ * */ /* * Copyright (c) 1991-2013 Kawahara Lab., Kyoto University * Copyright (c) 2000-2005...
5,708
1,061
<filename>src/org/sword/wechat4j/pay/protocol/refundquery/RefundqueryResponse.java package org.sword.wechat4j.pay.protocol.refundquery; import javax.xml.bind.annotation.XmlRootElement; import java.util.Arrays; /** * 查询退款响应对象 * <p>参考<a href="https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_5">开发文档</p> * <...
3,601
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Villers-Outréaux","circ":"18ème circonscription","dpt":"Nord","inscrits":1456,"abs":795,"votants":661,"blancs":11,"nuls":2,"exp":648,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":258},{"nuance":"FN","nom":"Mme <NAME>","voix":165},{"nuance":"REM","nom":"Mme <NAME>","voi...
265
4,975
package com.firebase.ui.auth.viewmodel; import android.app.Application; import com.firebase.ui.auth.FirebaseAuthAnonymousUpgradeException; import com.firebase.ui.auth.IdpResponse; import com.firebase.ui.auth.data.model.FlowParameters; import com.firebase.ui.auth.data.model.Resource; import com.firebase.ui.auth.data.m...
4,163
811
{ "description": "Element content replacement - Attribute value selector with declared namespace (css3-modsel-98b)", "selectors": { "*|p, *|q, *|r, *|s": "css3-modsel-98b.expected0.html", "*|q": "css3-modsel-98b.expected1.html" }, "src": "css3-modsel-98b.src.html" }
119
766
/* * Copyright 2017 <NAME> * * See LICENCE for the full copyright terms. */ #ifndef BUF_H #define BUF_H #include <stdlib.h> #include <stdint.h> #include <stdbool.h> struct buf { uint8_t ceil2; size_t size; uint8_t *buf; struct buf *stack; }; struct buf *buf_new(void); void buf_free(struct buf *buf); /* Gr...
306
329
<reponame>takahirokashimoto/eagleye // Copyright (c) 2019, Map IV, Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright noti...
1,884
634
<filename>server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/draft/model/KeywordTest.java<gh_stars>100-1000 /**************************************************************** * Licensed to the Apache Software Foundation (ASF) under one * * or more contributor license agreements. See the NOTICE file * ...
2,695
1,830
/* * Copyright © 2017 camunda services GmbH (<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 required by applic...
2,069
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI */ #import <iTunesStoreUI/SUScriptViewController.h> @class SUScriptSegmentedControl, NSNumber; @interface SUScriptStorePageViewController : SUScriptViewController { } @property...
2,500
14,668
// Copyright 2017 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 CONTENT_RENDERER_CONTENT_SECURITY_POLICY_UTIL_H_ #define CONTENT_RENDERER_CONTENT_SECURITY_POLICY_UTIL_H_ #include "content/common/content_export...
477
402
<gh_stars>100-1000 /* * Copyright 2000-2021 Vaadin 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 applicab...
2,263
1,056
<reponame>timfel/netbeans /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2....
1,821
320
__version__ = '2020.7.18.12.19.44'
17
435
{ "abstract": "Folks who attend this session will gain a basic understanding of\ndifferent time series modeling and forecasting methods, both statistical\nand machine learning based.\n\nThis tutorial will include: - Why it is important to consider\ntime-series data differently than other data for modeling and\nforeca...
601
348
{"nom":"Gravon","circ":"4ème circonscription","dpt":"Seine-et-Marne","inscrits":151,"abs":68,"votants":83,"blancs":6,"nuls":1,"exp":76,"res":[{"nuance":"LR","nom":"<NAME>","voix":51},{"nuance":"REM","nom":"M. <NAME>","voix":25}]}
95
2,414
<reponame>HmhWz/incubator-linkis<gh_stars>1000+ /* * Copyright 2019 WeBank * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required ...
672
733
<filename>hookzz/tests/arm-android/test_hook_open_arm.c /** * Copyright 2017 jmpews * * 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/license...
617
380
<filename>C++/Algorithms/Sorting/QuickSort.cpp #include <stdio.h> #include <iostream> int partition(int *a,int start,int end) { //last element int pivot=a[end]; int PivIndex=start; int i,t; //t is temporary variable //if value is less or equal than pivot, swapping it at left side for(i=sta...
583
860
<reponame>xiefan46/samza /* * 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...
1,086
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 <stdint.h> #include <memory> #include <string> #include "base/command_line.h" #include "base/run_loop.h" #include "base/strings/stringprintf.h" ...
10,321
892
<filename>advisories/unreviewed/2022/05/GHSA-crf6-g3fx-2975/GHSA-crf6-g3fx-2975.json { "schema_version": "1.2.0", "id": "GHSA-crf6-g3fx-2975", "modified": "2022-05-13T01:26:57Z", "published": "2022-05-13T01:26:57Z", "aliases": [ "CVE-2011-3878" ], "details": "Race condition in Google Chrome before 15....
573
332
package io.github.quickmsg.core.spi; import io.github.quickmsg.common.message.MessageRegistry; import io.github.quickmsg.common.message.RetainMessage; import io.github.quickmsg.common.message.SessionMessage; import io.github.quickmsg.common.utils.TopicRegexUtils; import java.util.List; import java.util.Map; import ja...
567
1,594
r''' Copyright 2015 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
802
3,083
// Copyright 2011-2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
311
1,144
<gh_stars>1000+ package de.metas.vertical.pharma.msv3.server.order; import javax.xml.bind.JAXBElement; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import de.metas.vertical.pharma.msv3.protocol.order.OrderStatusResponse; import de.metas.vertical.pharma.msv3.protocol.order.OrderStatusServerJAXBConverters;...
969
1,538
<filename>src/x/xicon.h<gh_stars>1000+ #ifndef XICON_H #define XICON_H extern char **x11_xpm; #endif // XICON_H
59
735
/** * User: mcxiaoke * Date: 2016/10/25 * Time: 12:28 */ package com.mcxiaoke.next.http; public interface ProgressListener { void onProgress(long bytesWritten, long contentLength, boolean done); }
68
1,062
// // Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57). // // Copyright (C) 1997-2019 <NAME>. // #import <MailCore/MCMessageHeaders.h> #import <MailCore/ECMutableMessageHeaders-Protocol.h> @class NSMutableArray, NSMutableDictionary, NSString; @interface MCMutableMessageHeade...
836
563
package examples; import java.util.*; import com.chronoxor.proto.*; public class SerializationJson { public static void main(String[] args) { // Create a new account with some orders var account = new Account(1, "Test", State.good, new Balance("USD", 1000.0), new Balance("EUR", 100.0), new Ar...
424
571
package me.devsaki.hentoid.activities.sources; import android.webkit.WebResourceResponse; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import java.io.IOException; import java.util.Map; import io.reactivex.Single; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactiv...
1,268
399
<filename>ui/src/test/java/edu/wpi/grip/ui/pipeline/PipelineUITest.java package edu.wpi.grip.ui.pipeline; import edu.wpi.grip.core.AdditionOperation; import edu.wpi.grip.core.Connection; import edu.wpi.grip.core.MockStep; import edu.wpi.grip.core.OperationDescription; import edu.wpi.grip.core.OperationMetaData; import...
2,769
335
<filename>U/Universalism_noun.json<gh_stars>100-1000 { "word": "Universalism", "definitions": [ "The belief that all humankind will eventually be saved.", "Loyalty to and concern for others without regard to national or other allegiances." ], "parts-of-speech": "Noun" }
109
1,738
/* * 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 the license below or t...
1,104
1,546
///////////////////////////////////////////////////////////////////////////////////////////////// // // Tencent is pleased to support the open source community by making libpag available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the Apache License, Versio...
517
414
<reponame>huggingface/optimum<gh_stars>100-1000 # coding=utf-8 # Copyright 2022 The HuggingFace Team. 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.a...
1,171
442
{ "name": "rem", "description": "A polyfill to parse CSS links and rewrite pixel equivalents into head for non supporting browsers", "main": "js/rem.js", "version": "1.3.4", "authors": [ "<NAME> <<EMAIL>>", "<NAME> <<EMAIL>>" ], "devDependencies": { "grunt": "~0.4.1", "matchdep": "~0.1.1",...
377
2,496
/* * Copyright (C) 2005-2008 Jive Software. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
6,205
32,544
<reponame>DBatOWL/tutorials<filename>json-2/src/main/java/com/baeldung/jsonoptimization/CustomerDeserializer.java package com.baeldung.jsonoptimization; import java.io.IOException; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.ObjectCodec; import com.fasterxml.jackson.databind.Deseri...
709
307
<filename>Python/tdw/FBOutput/ContactPoint.py # automatically generated by the FlatBuffers compiler, do not modify # namespace: FBOutput import tdw.flatbuffers class ContactPoint(object): __slots__ = ['_tab'] # ContactPoint def Init(self, buf, pos): self._tab = tdw.flatbuffers.table.T...
429
656
# Generated by Django 3.2 on 2021-06-05 14:13 import InvenTree.fields import django.core.validators from django.db import migrations, models import django.db.models.deletion import djmoney.models.fields class Migration(migrations.Migration): dependencies = [ ('part', '0066_bomitem_allow_variants'), ...
628
605
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
132,395
490
package recursion; public class MainClass { static int stepCount = 0; public static void main(String[] args) { // System.out.println(sum(15)); // System.out.println(pow(3, 10000)); // System.out.println("steps " + stepCount); // // stepCount = 0; // System.out.println(fastPow(3, 10000)); // System.o...
466
335
{ "word": "Lymphocyte", "definitions": [ "A form of small leucocyte (white blood cell) with a single round nucleus, occurring especially in the lymphatic system." ], "parts-of-speech": "Noun" }
79
311
package datadog.cws.tls; import datadog.cws.erpc.Request; class DummyErpcTls extends ErpcTls { Request lastRequest; public DummyErpcTls(int maxThread) { super(maxThread, 5000); } @Override public void sendRequest(Request request) { lastRequest = request; } }
106
575
// 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 UI_VIEWS_CONTROLS_BUTTON_TOGGLE_BUTTON_H_ #define UI_VIEWS_CONTROLS_BUTTON_TOGGLE_BUTTON_H_ #include <memory> #include "base/optional.h" #includ...
1,049
771
{ "name": "Availability calculator", "desc": "Calculate allowed downtime for web services per Service Level Agreements (SLA)", "url": "https://tryhexadecimal.com/availability-calculator", "tags": [ "System Administration" ], "maintainers": [ "jmstfv" ], "addedAt": "2020-03-19" }
110
568
<filename>bizsocket-core/src/main/java/bizsocket/core/BizSocket.java<gh_stars>100-1000 package bizsocket.core; import bizsocket.tcp.Request; /** * Created by tong on 16/10/4. */ public interface BizSocket { /** * execute new request * @param request * @param responseHandler * @return */...
297
892
{ "schema_version": "1.2.0", "id": "GHSA-4r23-36c8-4wg2", "modified": "2022-01-28T00:03:22Z", "published": "2022-01-22T00:00:35Z", "aliases": [ "CVE-2021-23207" ], "details": "An attacker with physical access to the host can extract the secrets from the registry and create valid JWT tokens for the Fre...
379
512
<reponame>mtgjson/mtgjson """ MTGJSON TcgplayerSkus Object """ import logging import pathlib from collections import defaultdict from typing import DefaultDict, Dict, List, Union from ..providers import TCGPlayerProvider from ..providers.tcgplayer import convert_sku_data_enum, get_tcgplayer_sku_data from ..utils impo...
916
407
<reponame>gumeg1/eventuate-tram package io.eventuate.examples.tram.ordersandcustomers.orders.domain; import org.springframework.data.repository.PagingAndSortingRepository; public interface OrderRepository extends PagingAndSortingRepository<Order, Long> { }
83
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Fiddling", "definitions": [ "Annoyingly trivial or petty." ], "parts-of-speech": "Adjective" }
77
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 "chrome/browser/vr/elements/resizer.h" #include "base/cxx17_backports.h" #include "base/numerics/math_constants.h" #include "chrome/browser/vr/p...
888
1,273
package org.broadinstitute.hellbender.tools.spark.sv.evidence; import org.broadinstitute.hellbender.utils.SVInterval; /** It allows you to ask whether a given interval is near the beginning or end of the partition. * This is useful in handling breakpoints for which the evidence is split across two partitions. */ pu...
1,063
851
<reponame>athiffau/alcinoe /* * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the f...
321
5,169
<reponame>Gantios/Specs<gh_stars>1000+ { "name": "CombineCombineLatestArity", "version": "1.0.1", "license": "MIT", "summary": "Combine extension allowing to use `combineLatest` with up-to 26 other publishers", "homepage": "https://github.com/clementpadovani/Combine-CombineLatestArity", "authors": "<NAME>",...
301
352
<filename>app/plugin/sys_update.py<gh_stars>100-1000 # coding=utf-8 from altfe.interface.root import interRoot @interRoot.bind("sys/update/xxxiiixxx", "PLUGIN") class sys_update(interRoot): def run(self, cmd): apis = [] # 列出所有 api for name in dir(self.CORE): if "cloud_" in name...
285
535
import discord from utils.globals import gc from utils.settings import settings import ui.text_manipulation as tm # inherits from discord.py's Client class Client(discord.Client): # NOTE: These are strings! __current_server = "" __current_channel = "" __prompt = "" # discord.Status object __s...
2,113
1,093
""" Requires: Python 3 github3.py==1.0.0a4 semver==2.6.0 tabulate==0.7.5 """ import functools import json import sys import github3 import semver from tabulate import tabulate app_repos = set([ "atom-format", "django-bookmarks", "django-flag", "django-forms-bootstrap", "django-fr...
1,449
5,349
#ifndef FREQT_COMMON_H #define FREQT_COMMON_H #include <string> #include <vector> #include <cstring> #include <iostream> #include <iterator> #include <algorithm> #include <sstream> namespace constants { const int DEFAULT_MIN_WINDOW_SIZE = 16; const int DEFAULT_WORD_LENGTH = 16; const int DEFAULT_ALPHABET_SIZE = 4;...
917
4,772
<reponame>fjacobs/spring-data-examples package example.repo; import example.model.Customer824; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer824Repository extends CrudRepository<Customer824, Long> { List<Customer824> findByLastName(String lastName); }
103
413
<reponame>ktts16/mini-caffe<gh_stars>100-1000 #ifndef CAFFE_POWER_LAYER_HPP_ #define CAFFE_POWER_LAYER_HPP_ #include <vector> #include "./neuron_layer.hpp" namespace caffe { /** * @brief Computes @f$ y = (\alpha x + \beta) ^ \gamma @f$, * as specified by the scale @f$ \alpha @f$, shift @f$ \beta @f$, * ...
813
7,482
<reponame>Davidfind/rt-thread<gh_stars>1000+ /* * Copyright (c) 2011-2012, Freescale Semiconductor, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code...
1,569
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Broke", "definitions": [ "Having completely run out of money." ], "parts-of-speech": "Adjective" }
77
2,184
<filename>river/metrics/cluster/daviesbouldin.py import math from river import utils from . import base class DaviesBouldin(base.InternalMetric): """Davies-Bouldin index (DB). The Davies-Bouldin index (DB) [^1] is an old but still widely used inernal validaion measure. DB uses intra-cluster variance an...
1,571
584
<filename>test/channel_test_helper.cpp /* Copyright 2015 Adobe Distributed under 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) */ /*********************************************************************************************...
198
2,415
<reponame>al3pht/cloud-custodian<gh_stars>1000+ # Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 from azure.core.exceptions import ResourceNotFoundError from c7n_azure.provisioning.deployment_unit import DeploymentUnit from c7n_azure.provisioning.resource_group import ResourceGroupUnit ...
653
481
from wtforms.fields import HiddenField class CSRFTokenField(HiddenField): current_token = None def _value(self): """ We want to always return the current token on render, regardless of whether a good or bad token was passed. """ return self.current_token def popul...
169
1,013
<filename>integration/tests/error_assert_query_invalid_regex.py<gh_stars>1000+ from tests import app @app.route("/error-assert-query-invalid-regex") def error_assert_query_invalid_regex(): return ''
74