max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,350
<reponame>Shashi-rk/azure-sdk-for-java<filename>sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkResourcesOperations.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Co...
1,082
760
/** * Licensed to DigitalPebble Ltd under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * DigitalPebble licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this...
669
1,375
<reponame>parzival3/Surelog #!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 r"""Mako template to Hjson register description """ import sys import argparse from io import StringIO from mako.template...
483
380
/** * Author: <NAME> * Date: 19 July 2021 (Monday) */ import java.util.*; public class WaveArray{ public static void main(String args[]){ Solution s = new Solution(); int arr[] = {2,4,7,8,9,10}; s.convertToWave(arr,arr.length); s.printArray(arr); } } class Solution{ // arr: input array //...
402
8,629
#pragma once #include "config_core.h" #if USE_MYSQL #include <mysqlxx/Pool.h> #include <Core/MySQL/MySQLClient.h> #include <base/UUID.h> #include <Databases/IDatabase.h> #include <Databases/DatabaseAtomic.h> #include <Databases/MySQL/MaterializedMySQLSettings.h> #include <Databases/MySQL/MaterializedMySQLSyncThread....
817
3,428
{"id":"01350","group":"easy-ham-2","checksum":{"type":"MD5","value":"089851ea485ec58d231d53908231de85"},"text":"From <EMAIL> Tue Aug 6 22:50:20 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy@<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMT...
996
2,576
<filename>modelling/src/main/java/org/axonframework/modelling/command/GenericJpaRepository.java /* * Copyright (c) 2010-2018. Axon Framework * * 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 ...
5,336
571
<reponame>teverett/univocity-trader package com.univocity.trader.chart.dynamic.code; import javax.tools.*; import java.io.*; import java.util.*; public class MemoryJavaCompiler { private final JavaCompiler compiler; private final StandardJavaFileManager fileManager; public MemoryJavaCompiler() { compiler = Tool...
655
1,365
<filename>deeposm.org/website/settings.py """ Django settings for deeposm.org project. Generated by 'django-admin startproject' using Django 1.9.6. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproj...
2,060
5,937
<filename>src/Microsoft.DotNet.Wpf/src/WpfGfx/core/av/milav.h // 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. //+--------------------------------------------------...
1,637
1,256
#include <all_far.h> #pragma hdrstop #include "fstdlib.h" static int nSaveCount = 0; static HANDLE hScreen = NULL; static char SaveTitle[FAR_MAX_TITLE]; int WINAPI FP_Screen::isSaved(void) { return nSaveCount; } void WINAPI FP_Screen::Save(void) { CHK_INITED Log(("SCREEN: SAVE[%d]",nSaveCount)); if(IS_...
447
743
package com.anly.githubapp.presenter.account; import android.app.Application; import com.anly.githubapp.common.wrapper.AppLog; import com.anly.githubapp.data.api.AccountApi; import com.anly.githubapp.data.model.User; import com.anly.githubapp.data.pref.AccountPref; import com.anly.githubapp.data.rx.ResponseObserver; ...
1,110
1,947
#include <iostream> #include <vector> #include "thor/alternates.h" using namespace valhalla::thor; using namespace valhalla::baldr; using namespace valhalla::midgard; /* * Viability tests for alternate paths based on <NAME>'s Alternative Route * Techniques (2015). Tests verify limited sharing between segments, bou...
2,957
6,036
<reponame>dennyac/onnxruntime // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "core/common/common.h" #include "core/framework/op_kernel.h" #include "core/providers/cpu/tensor/slice.h" namespace onnxruntime { namespace contrib { class SliceGrad fi...
394
3,799
/* * Copyright 2019 The Android Open Source 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 of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
9,358
1,014
package com.github.neuralnetworks.input.image; import java.awt.image.BufferedImage; import java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Random; import java.util.stream.IntStream; ...
1,168
7,076
<gh_stars>1000+ /* * Copyright (C) 2017. Uber Technologies * * 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,113
1,631
#include "WAVM/IR/Module.h" #include "WAVM/IR/IR.h" using namespace WAVM; using namespace WAVM::IR; const char* IR::asString(OrderedSectionID id) { switch(id) { case OrderedSectionID::moduleBeginning: return "module beginning"; case OrderedSectionID::type: return "type"; case OrderedSectionID::import: return "im...
1,107
5,597
<gh_stars>1000+ package com.intuit.karate.driver; import com.intuit.karate.core.Variable; import java.util.Collections; import java.util.List; import org.junit.jupiter.api.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * * @author pthomas3 */ class DriverElementTest { static final Logg...
256
1,133
/* Copyright 2015 <NAME>. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
968
432
package io.activej.service; import io.activej.inject.Injector; import io.activej.inject.annotation.Provides; import io.activej.inject.module.AbstractModule; import org.junit.Before; import org.junit.Test; import java.util.concurrent.CompletableFuture; import java.util.concurrent.atomic.AtomicInteger; import static o...
557
4,205
/* * Copyright (c) 2021 VMware Inc. or its affiliates, All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unle...
681
6,036
<filename>js/react_native/example/ios/MNISTDataHandler.h // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef MNISTDataHandler_h #define MNISTDataHandler_h #import <react/RCTBridgeModule.h> @interface MNISTDataHandler : NSObject<RCTBridgeModule> @end #endif /* MNIS...
108
946
<reponame>ctittel/worldengine<filename>tests/serialization_test.py import unittest import tempfile import os from worldengine.plates import Step, world_gen from worldengine.model.world import World from worldengine.common import _equal from worldengine.hdf5_serialization import save_world_to_hdf5, load_world_to_hdf5 ...
1,258
1,192
// RUN: %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck %s -strict-whitespace #define M1(x) x #define M2 1; void foo() { M1( M2); // CHECK: {{.*}}:7:{{[0-9]+}}: warning: expression result unused // CHECK: {{.*}}:4:{{[0-9]+}}: note: expanded from macro 'M2' // CHECK: {{.*}}:3:{{[0-9]+}}: note: expanded from ma...
4,799
4,738
import sys from doctest import testmod import numpy import einops import einops.layers import einops.parsing from einops._backends import AbstractBackend from einops.einops import rearrange, parse_shape, _optimize_transformation from . import collect_test_backends __author__ = '<NAME>' def test_doctests_examples()...
2,661
1,444
package mage.cards.p; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.common.TapSourceCost; import mage.abilities.costs.mana.ColoredManaCost; import mage.abilities.effects.common.TapTargetEffect; import mage.ab...
617
2,151
<filename>ui/views/controls/button/button_unittest.cc // Copyright (c) 2012 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 "ui/views/controls/button/button.h" #include "base/macros.h" #include "base/memory/ptr...
10,480
1,213
from sentry_sdk.envelope import Envelope from sentry_sdk.session import Session from sentry_sdk import capture_event from sentry_sdk.tracing_utils import compute_tracestate_value import sentry_sdk.client import pytest try: from unittest import mock # python 3.3 and above except ImportError: import mock # py...
2,064
357
{ "name": "scally", "version": "2.10.1", "homepage": "https://github.com/chris-pearce/scally", "authors": [ "<NAME> <<EMAIL>>", "<NAME> <<EMAIL>>", "<NAME> <<EMAIL>>", "<NAME> <<EMAIL>>" ], "description": "Scally is a Sass, BEM, OOCSS, responsive ready, CSS framework that provides you with a...
285
8,027
/* * Copyright (c) Facebook, Inc. and 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 applic...
479
1,443
{ "copyright": "<NAME>, http://eblackwelder.com", "url": "http://eblackwelder.com" }
39
8,747
<reponame>DCNick3/esp-idf<gh_stars>1000+ // Copyright 2020 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/LI...
1,941
376
<gh_stars>100-1000 package ru.atom.lecture11.queue; public class Message { }
29
1,233
<reponame>calvin681/mantis<filename>mantis-server/mantis-server-worker-client/src/main/java/io/mantisrx/server/worker/client/WorkerMetricsClient.java /* * Copyright 2019 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licens...
2,170
4,036
<gh_stars>1000+ package com.semmle.js.ast.regexp; import com.semmle.js.ast.SourceElement; import com.semmle.js.ast.SourceLocation; /** An error encountered while parsing a regular expression. */ public class Error extends SourceElement { public static final int UNEXPECTED_EOS = 0; public static final int UNEXPECT...
370
3,428
{"id":"01612","group":"easy-ham-1","checksum":{"type":"MD5","value":"cdcef456e3de75e0c6478cee11565c41"},"text":"From <EMAIL> Mon Sep 2 12:22:44 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: <EMAIL>.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMTP id 3643543F99\...
1,439
1,509
/* inotify_syscalls.c - native binding to inotify's syscalls Copyright (c) 2005-2011 <NAME> <<EMAIL>> 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 witho...
2,606
1,571
#include <iostream> int odd_occuring_element(int *a,int n){ int x = 0; for(int i=0;i<n;i++){ x = x^a[i]; } return x; } int main() { int array_1[]={1,1,2,2,3,4,4}; int array_2[]={1,1,4,4,10,10,24,2,2,3,3}; int n1 = sizeof(array_1)/sizeof(array_1[0]); int n2 = sizeof(array_2)/siz...
249
3,432
<filename>telegrambots-meta/src/test/java/org/telegram/telegrambots/meta/test/fakes/FakeWebhook.java package org.telegram.telegrambots.meta.test.fakes; import org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException; import org.telegram.telegrambots.meta.generics.Webhook; import org.telegram.telegrambots....
431
397
<gh_stars>100-1000 # -*- coding:utf-8 -*- # &Author AnFany # '''CART回归树:可处理连续、离散的变量,不支持输出数据是多维的。 可以利用多个决策树解决多维输出的问题 # 测试数据和训练数据的字段顺序必须一样,因为本程序在设定规则按的是字段的编号,而不是名字 # 回归树,因为精确度问题。不运行剪枝这一环节,当训练数据,预测数据和验证数据的MSE不再降低时,确定最佳的树的深度 # 回归树首先要降低偏差问题,偏差只有小到一定程度,再降低方差。训练数据的精确度可看作降低偏差,而预测数据和验证数据的精确度可看作降低方差 # ''' # print(__...
12,879
1,086
/* iffscan - Simple AIFF/RIFF chunk scanner * Copyright (C) 2007 <NAME> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later ...
1,430
500
package com.tinkerpop.blueprints.oupls.sail; import com.tinkerpop.blueprints.CloseableIterable; import java.util.Iterator; /** * A CloseableIterable which wraps a simple iterator. * * @author <NAME> (http://fortytwo.net) */ public class IteratorCloseableIterable<T> implements CloseableIterable<T> { private f...
221
984
<gh_stars>100-1000 /* * Copyright DataStax, 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 ...
576
1,957
{"event_ts": "1485975890.885679", "type": "bot_added", "cache_ts": 1485975890, "bot": {"deleted": false, "id": "B3YTBU6L8", "app_id": "A0F7XDUAZ", "name": "incoming-webhook", "icons": {"image_36": "https://a.slack-edge.com/12b5a/plugins/tester/assets/service_36.png", "image_48": "https://a.slack-edge.com/12b5a/plugins/...
227
478
<reponame>iamckn-sdr/frequensea /************************************************************************************ Filename : Util_SystemInfo.cpp Content : Various operations to get information about the system Created : September 26, 2014 Author : <NAME> Copyright : Copyright 2014 Ocul...
3,213
399
<gh_stars>100-1000 #pragma once #include "shared/scene/vec4.h" // Common definitions for Lights and Cameras struct PACKED_STRUCT CameraProperties { gpumat4 projection_ = gpumat4(glm::mat4(1.f)); gpumat4 view_ = gpumat4(glm::mat4(1.f)); gpumat4 model_ = gpumat4(glm::mat4(1.f)); gpuvec4 position_ = gpu...
562
1,930
#!/usr/bin python3 """ Facial landmarks extractor for faceswap.py Code adapted and modified from: https://github.com/1adrianb/face-alignment """ import cv2 import numpy as np from .detectors import DLibDetector, MTCNNDetector from .vram_allocation import GPUMem from .model import KerasModel DLIB_DETECTORS = ...
6,778
372
/* * Benchmarking for feature detection tasks * detector_benchmark.h * * Copyright (c) 2019-2020 <NAME>, * Robotics and Perception Group, University of Zurich * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
825
445
<reponame>bavison/opensmalltalk-vm /* GDB CLI command scripting. Copyright (C) 1986-2019 Free Software Foundation, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software ...
16,504
4,772
package example.repo; import example.model.Customer300; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer300Repository extends CrudRepository<Customer300, Long> { List<Customer300> findByLastName(String lastName); }
83
2,151
<gh_stars>1000+ // 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 IOS_CHROME_BROWSER_UI_BROWSER_LIST_BROWSER_LIST_FACTORY_H_ #define IOS_CHROME_BROWSER_UI_BROWSER_LIST_BROWSER_LIST_FACTORY_H_ #in...
466
1,461
#if !defined(WIN32) #if __APPLE__ #include <TargetConditionals.h> #define GL_SILENCE_DEPRECATION 1 #define GLES_SILENCE_DEPRECATION 1 #if TARGET_OS_IPHONE #include <OpenGLES/ES3/gl.h> #include <OpenGLES/ES3/glext.h> #else #include <OpenGL/gl.h> #include <OpenGL/glext.h> #include <OpenGL/glu.h> #define glGenVertexA...
17,791
834
// This example demonstrates creating an owner-drawn ComboBox control. // The DrawMode property is set to OwnerDrawnVariable. It also demonstrates // using the ComboBox.DropDownWidth and ComboBox.DropDownStyle properties // and handling the ComboBox.MeasureItem and ComboBox.DrawItem events for // an owner-drawn ComboB...
1,928
491
/* * Copyright (c) 2013 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 file PATENTS. All contribut...
866
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,786
1,991
<reponame>yoavst/hostapd-atrik<filename>wpa_supplicant/binder/binder_constants.cpp /* * binder interface for wpa_supplicant daemon * Copyright (c) 2004-2016, <NAME> <<EMAIL>> * Copyright (c) 2004-2016, <NAME> <<EMAIL>> * * This software may be distributed under the terms of the BSD license. * See README for more ...
192
808
<gh_stars>100-1000 package io.github.dddplus.runtime.registry.mock.ability; import io.github.dddplus.annotation.DomainAbility; import io.github.dddplus.runtime.BaseDecideStepsAbility; import io.github.dddplus.runtime.registry.mock.domain.FooDomain; import io.github.dddplus.runtime.registry.mock.model.FooModel; @Domai...
171
7,409
# Generated by Django 3.0.6 on 2020-11-09 12:22 import django.contrib.postgres.fields.jsonb from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("posthog", "0097_invite_emails"), ] operations = [ migrations.AddField( model_name="team", ...
299
648
{"resourceType":"SearchParameter","id":"Observation-related","url":"http://hl7.org/fhir/SearchParameter/Observation-related","name":"related","status":"draft","experimental":false,"date":"2017-04-19T07:44:43+10:00","publisher":"Health Level Seven International (Orders and Observations)","contact":[{"telecom":[{"system"...
243
1,617
<reponame>wsdhrtjl/BoAT-X-Framework<gh_stars>1000+ /****************************************************************************** * Copyright (C) 2018-2021 aitos.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 obta...
9,355
357
/* * Copyright (c) 2012-2015 VMware, 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 ...
1,951
9,724
// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------...
1,341
743
package pl.allegro.tech.hermes.tracker.management; import pl.allegro.tech.hermes.api.MessageTrace; import pl.allegro.tech.hermes.api.SentMessageTrace; import java.util.List; public interface LogRepository { List<SentMessageTrace> getLastUndeliveredMessages(String topicName, String subscriptionName, int limit); ...
134
474
/* Copyright 2015 Samsung Electronics Co., 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 applicable law...
1,819
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 ...
6,146
1,351
<gh_stars>1000+ /** @file an example cert update plugin @section license License 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 t...
1,041
14,668
<filename>chrome/browser/lacros/task_manager_lacros.cc<gh_stars>1000+ // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/lacros/task_manager_lacros.h" #include "base/notreached.h"...
585
605
<reponame>yuriykoch/llvm //===- AttributeParser.cpp - MLIR Attribute Parser Implementation ---------===// // // 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 // //===--...
12,637
1,746
package com.shekhargulati.java8_tutorial.ch09; import java.util.UUID; import java.util.concurrent.CompletableFuture; import java.util.concurrent.Executors; public class CompletableFutureExample { public static void main(String[] args) { CompletableFuture.completedFuture("hello"); CompletableFutur...
237
2,151
<reponame>zipated/src // Copyright 2013 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 "content/renderer/appcache/appcache_frontend_impl.h" #include "base/logging.h" #include "content/renderer/appcache/web_app...
2,840
3,489
#include "logistic.h" #include "vector_math.h" inline double sigmoid(double x) { return 1.0/(1.0 + exp(-x)); } inline void sigmoid_vector(double *x, size_t n) { for (int i = 0; i < n; i++) { x[i] = sigmoid(x[i]); } } inline void softmax_vector(double *x, size_t n) { int i; double sum = 0....
350
3,372
/* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
5,418
713
package org.infinispan.commons.test.categories; /** * JUnit category for Java11 tests */ public interface Java11 { }
38
450
/* * 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 ...
15,253
4,111
<filename>samples/spring-hibernate/src/main/java/org/apache/shiro/samples/sprhib/dao/HibernateUserDAO.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 owne...
679
471
///////////////////////////////////////////////////////////////////////////// // Name: richtextctrl.h // Purpose: topic overview // Author: wxWidgets team // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @page overview_richtextctrl wxR...
5,750
768
package tellh.com.gitclub.model.entity; import tellh.com.gitclub.R; import tellh.com.recyclertreeview_lib.LayoutItemType; /** * Created by tlh on 2016/10/1 :) */ public class File implements LayoutItemType { public String fileName; public String html_url; public File(String fileName, String html_url)...
304
543
<gh_stars>100-1000 package com.riiablo.table; import java.io.IOException; import java.io.Writer; import org.apache.commons.lang3.CharUtils; import org.apache.commons.lang3.StringUtils; import org.apache.commons.text.translate.CharSequenceTranslator; public final class TsvTranslators { private TsvTranslators() {} ...
751
312
<reponame>patrickwyler/rdf4j /******************************************************************************* * Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Distribution License...
3,148
777
<filename>components/mime_util/mime_util.h // Copyright 2015 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_MIME_UTIL_MIME_UTIL_H__ #define COMPONENTS_MIME_UTIL_MIME_UTIL_H__ #include <string> names...
286
944
<gh_stars>100-1000 ''' # Reference - [Very Deep Convolutional Networks for Large-Scale Image Recognition]( https://arxiv.org/abs/1409.1556) (ICLR 2015) ''' import torch import torch.nn as nn import torch.nn.functional as F from functools import reduce class VGG(nn.Module): def __init__(self, layer_spec, num_...
1,056
30,023
<reponame>mib1185/core<filename>homeassistant/components/rest/entity.py<gh_stars>1000+ """The base entity for the rest component.""" from abc import abstractmethod from typing import Any from homeassistant.core import callback from homeassistant.helpers.entity import Entity from homeassistant.helpers.update_coordinat...
1,172
505
package com.mixiaoxiao.weather; import android.app.Application; public class WeatherApplication extends Application { public static final boolean DEBUG = true; public static final boolean USE_SAMPLE_DATA = true; @Override public void onCreate() { super.onCreate(); } }
85
490
from typing import Iterable, List import resolvelib from mach_nix.data.nixpkgs import NixpkgsIndex from mach_nix.data.providers import DependencyProviderBase, Candidate from mach_nix.deptree import remove_circles_and_print from mach_nix.requirements import Requirement, filter_versions from mach_nix.resolver import Re...
1,323
5,169
<reponame>Gantios/Specs { "name": "SDSegmentController", "version": "0.1.2", "summary": "SDSegmentController is a wrapper for segment control which gives features like segment control used in google products", "description": "SDSegmentController uses Page Controller and Custom SegmentControl. It will help you i...
311
1,433
<reponame>halitcan/samples //----------------------------------------------------------------------------- // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // Tool: AllJoynCodeGenerator.exe /...
4,718
372
<reponame>dsmogor/boon package org.boon.slumberdb.stores; import org.boon.slumberdb.service.config.DataStoreConfig; import org.boon.slumberdb.service.protocol.Action; import org.boon.slumberdb.service.protocol.requests.*; import org.boon.slumberdb.service.results.BatchResult; import org.boon.slumberdb.service.results....
2,613
732
<gh_stars>100-1000 /* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved. This software is licensed as OpenSource, under the Apache License, Version 2.0. This license is available at: http://opensource.org/licenses/Apache-2.0. */ /* * bsln table format definition. */ #ifnde...
341
3,799
/* * Copyright (C) 2012 The Android Open Source 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 of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
4,480
1,016
<gh_stars>1000+ package com.thinkbiganalytics.kylo.catalog.spark; /*- * #%L * Kylo Catalog Core * %% * Copyright (C) 2017 - 2018 ThinkBig Analytics, a Teradata Company * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You...
1,406
17,242
<gh_stars>1000+ // Copyright 2019 The MediaPipe 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 app...
727
6,989
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from collections import namedtuple from typing import Text, Sequence, Any, Type, Tuple, NewType, Optional, Dict import six import numpy # type: ignore import onnx.chec...
1,902
895
// See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format { "version": "2.0.0", "tasks": [ { "type": "npm", "script": "watch", "problemMatcher": { "base": "$tsc-watch", "background": { "beginsPattern": { "regexp": "Starting compilation in...
339
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.timeseriesinsights.models; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten...
2,202
381
<reponame>joyrun/ActivityRouter package com.grouter.example.travel; import androidx.appcompat.app.AppCompatActivity; import com.grouter.RouterActivity; @RouterActivity("travel/home") public class TravelHomeActivity extends AppCompatActivity { }
77
2,568
from django.db import ProgrammingError, models from django.db.models.constants import LOOKUP_SEP from django.db.models.query import normalize_prefetch_lookups from rest_framework import serializers from rest_framework.utils import model_meta class OptimizeRelatedModelViewSetMetaclass(type): """ This metaclass...
2,210
5,169
<reponame>Gantios/Specs<filename>Specs/9/b/6/FrankBaseViewControllerKit/0.1.0/FrankBaseViewControllerKit.podspec.json<gh_stars>1000+ { "name": "FrankBaseViewControllerKit", "version": "0.1.0", "summary": "Protocols for UIViewController", "description": "VCPresentType, NavButtonConfigurable, VCEasyNavigatable, K...
325
457
import numpy as np from tqdm import tqdm import logging from multiprocessing import Pool import functools import pickle from ..settings import DATA_PATH from ..utils.colmap import read_model logger = logging.getLogger(__name__) def assemble_intrinsics(fx, fy, cx, cy): K = np.eye(3) K[0, 0] = fx K[1, 1] ...
3,123
474
// // TuSDKNKDownloadManger.h // TuSDK // // Created by <NAME> on 15/3/23. // Copyright (c) 2015年 tusdk.com. All rights reserved. // #import <Foundation/Foundation.h> #import "TuSDKNKDownloadItem.h" @class TuSDKNKDownloadManger; /** * 下载管理器委托 */ @protocol TuSDKNKDownloadMangerDelegate <NSObject> /** * 下载状态...
1,014