max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
572
<reponame>BrunoPontesLira/live-de-python from asyncio import gather, run from httpx import AsyncClient base_url = 'https://pokeapi.co/api/v2/pokemon/{number}' async def downlaod(number): async with AsyncClient() as client: response = await client.get( base_url.format(number=number), ...
252
387
/** * Copyright 2019-2021 LinkedIn Corporation. All rights reserved. * Licensed under the BSD-2 Clause license. * See LICENSE in the project root for license information. */ package com.linkedin.coral.spark.utils; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.google.common.co...
3,500
5,169
{ "name": "PowerUpSwift", "version": "0.1.0", "summary": "Make iOS development faster and be more productive.", "description": "Apple doesn't provide useful utilities to make our lives easier. This might be for a good reason. Use this library to save time and be more productive!", "homepage": "https://github....
280
667
/* * Copyright © 2013-2017 <NAME> * * This file is part of FreshPlayerPlugin. * * 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 r...
5,385
5,447
"""Prepare PASCAL VOC tiny motorbike datasets""" import os import autogluon as ag if __name__ == '__main__': root = os.path.expanduser('~/.mxnet/datasets/') if not os.path.exists(root): os.makedirs(root) filename_zip = ag.download('https://autogluon.s3.amazonaws.com/datasets/tiny_motorbike.zip', ...
201
337
<reponame>francescomessina/polycube /** * bridge API generated from bridge.yang * * NOTE: This file is auto generated by polycube-codegen * https://github.com/polycube-network/polycube-codegen */ /* Do not edit this file manually */ /* * FdbEntryJsonObject.h * * */ #pragma once #include "JsonObjectBase.h" names...
679
5,169
{ "name": "DDKeyPathChannel", "version": "0.0.1", "summary": "Synchronize data between different object of different class by keyPath.", "description": "Synchronize data between different object of different class by keyPath.", "homepage": "https://github.com/djs66256/DDKeyPathChannel", "license": "MIT", ...
256
5,169
{ "name": "CMTextView", "version": "1.0.0", "summary": "UITextView subclass with placeholder text.", "description": "CMTextView is an UITextView subclass which provides the placeholder text functionality.", "homepage": "https://github.com/Code-Mafia/CMTextView.git", "license": "MIT", "authors": { "<NA...
200
705
class WorkflowRegistry(object): def __init__(self): self.workflows = {} self.class_index = {} def add(self, name, cls): self.workflows[id(cls)] = self.workflows.get(id(cls), set()) self.workflows[id(cls)].add(name) self.class_index[id(cls)] = cls def get_class_field...
186
921
//-***************************************************************************** // // Copyright (c) 2009-2011, // Sony Pictures Imageworks Inc. and // Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. // // All rights reserved. // // Redistribution and use in source and binary forms, with ...
1,150
1,028
/** * Copyright 2019-present, GraphQL Foundation * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #ifdef __cplusplus extern "C" { #endif struct GraphQLAstNode; /** * Serialize the given AST to JSON. The returned C str...
141
532
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup file for nlpia. This file was generated with PyScaffold 3.0. PyScaffold helps you to put up the scaffold of your new Python project. Learn more under: http://pyscaffold.readthedocs.org/ """ import sys from setuptools import setup # Add here cons...
403
11,868
<filename>samples/client/petstore/tiny/cpp/lib/Models/Order.cpp<gh_stars>1000+ #include "Order.h" using namespace Tiny; Order::Order() { id = long(0); petId = long(0); quantity = int(0); shipDate = std::string(); status = std::string(); complete = bool(false); } Order::Order(std::string jsonString) { this->...
1,207
351
<gh_stars>100-1000 package org.antlr.intellij.plugin.profiler; import javax.swing.table.AbstractTableModel; public abstract class ProfilerTableDataModel extends AbstractTableModel { public abstract String[] getColumnNames(); public abstract String[] getColumnToolTips(); @Override public String getColumnName(...
193
401
/* * Hedgewars, a free turn based strategy game * Copyright (c) 2004-2015 <NAME> <<EMAIL>> * * 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; version 2 of the License * * This program is ...
6,042
504
package org.dayatang.rule.examples; public class Helper { public static void sayStatic() { System.out.println("hello sayStatic"); } public void sayNoStatic() { System.out.println("hello sayNoStatic"); } }
76
700
<gh_stars>100-1000 /*- * Copyright (c) 2003-2007 <NAME> * All rights reserved. * * Based on libarchive/test/test_read_format_isorr_bz2.c with * bugs introduced by <NAME> <<EMAIL>> for * testing ISO9660 image with Joliet extension. * * Redistribution and use in source and binary forms, with or without * modific...
2,455
598
<filename>eliot/tests/test_journald.py<gh_stars>100-1000 """ Tests for L{eliot.journald}. """ from os import getpid, strerror from unittest import skipUnless, TestCase from subprocess import check_output, CalledProcessError, STDOUT from errno import EINVAL from sys import argv from uuid import uuid4 from time import sl...
3,566
428
<filename>Java/Loon-Neo/srpg/loon/srpg/field/SRPGFieldElement.java package loon.srpg.field; /** * Copyright 2008 - 2011 * * 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://ww...
408
5,169
<gh_stars>1000+ { "name": "CDZUIKitAutoLayoutDebugging", "version": "0.0.7", "summary": "Tools for easier Auto Layout debugging", "description": " Tools for easier Auto Layout debugging on iOS 7+.\n", "homepage": "https://github.com/cdzombak/CDZUIKitAutoLayoutDebugging", "license": { "t...
319
608
/* * Copyright (c) 2021 The ZLToolKit project authors. All Rights Reserved. * * This file is part of ZLToolKit(https://github.com/ZLMediaKit/ZLToolKit). * * Use of this source code is governed by MIT license that can be found in the * LICENSE file in the root of the source tree. All contributing project authors ...
895
435
package datawave.query.postprocessing.tf; import java.util.Collections; import java.util.Map; import datawave.query.attributes.Document; import datawave.query.util.Tuple2; import datawave.query.util.Tuple3; import datawave.query.util.Tuples; import org.apache.accumulo.core.data.Key; import com.google.common.base.Fu...
258
1,444
package mage.cards.f; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.effects.RequirementEffect; import mage.abilities.effects.common.counter.AddCountersTargetEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Duration; ...
1,057
3,294
// <snippet1> // wrl-consume-events.cpp // compile with: runtimeobject.lib // <snippet2> #include <Windows.Devices.Enumeration.h> #include <wrl/event.h> #include <stdio.h> using namespace ABI::Windows::Devices::Enumeration; using namespace ABI::Windows::Foundation; using namespace Microsoft::WRL; using namespace Micro...
2,129
4,036
// Generated automatically from org.apache.commons.collections4.collection.TransformedCollection for testing purposes package org.apache.commons.collections4.collection; import java.util.Collection; import org.apache.commons.collections4.Transformer; import org.apache.commons.collections4.collection.AbstractCollectio...
330
1,383
<reponame>Benatti1991/chrono<filename>src/chrono_thirdparty/yafel/DualNumber.hpp<gh_stars>1000+ #ifndef YAFEL_DUALNUMBER_HPP #define YAFEL_DUALNUMBER_HPP #include <cmath> namespace yafel { template<typename T> class DualNumber { public: T first; T second; DualNumber() : DualNumber(0, 0) {} Dual...
1,432
435
<gh_stars>100-1000 { "copyright_text": "Standard YouTube License", "description": "PyData SF 2016\n\nUsing Jupyter Notebooks and Python code, we will present several data-driven examples of some simple, powerful, yet relatively uncommon, ways of thinking as a good Data Scientist. We will also warn about a few dange...
287
3,799
<gh_stars>1000+ /* * Copyright 2020 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 req...
798
419
<filename>app/src/main/java/com/maning/mnprogressdialog/OtherActivity.java package com.maning.mnprogressdialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.maning.mndialoglibrary.MProgressDialog; import com.maning.mndialoglibrary.MStatusDialog; public class OtherActivity ext...
282
879
package org.zstack.header.identity; import org.zstack.header.message.APIReply; import org.zstack.header.rest.RestResponse; import java.util.HashMap; import java.util.Map; /** * Created by xing5 on 2016/4/8. */ @RestResponse(allTo = "inventories") public class APIGetResourceAccountReply extends APIReply { priva...
430
2,366
/* * ============================================================================= * * Copyright (c) 2011-2018, The THYMELEAF team (http://www.thymeleaf.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 ob...
1,713
547
<gh_stars>100-1000 #import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_MYTableViewIndex_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_MYTableViewIndex_TestsVersionString[];
67
1,107
<filename>NN/Errors.py class LayerError(Exception): pass class BuildLayerError(Exception): pass class BuildNetworkError(Exception): pass
50
735
// NOTE: This file was generated by the ServiceGenerator. // ---------------------------------------------------------------------------- // API: // Access Context Manager API (accesscontextmanager/v1) // Description: // An API for setting attribute based access control to requests to GCP // services. // Documen...
15,156
359
<gh_stars>100-1000 /** * Copyright (C) 2016-2020 Xilinx, Inc * * 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
688
1,016
/** * */ package com.thinkbiganalytics.server.upgrade; /*- * #%L * kylo-operational-metadata-upgrade-service * %% * Copyright (C) 2017 <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 t...
750
2,921
{ "name": "Content and Ad Network", "symbol": "CAN", "type": "ERC20", "decimals": 18, "description": "CAN is the token designed for advertising services basing on a constantly growing AD system being developed by MobiPromo.", "website": "http://mobipromo.io/", "explorer": "https://etherscan....
171
1,444
package mage.cards.w; import java.util.UUID; import mage.MageInt; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.effects.common.combat.CantAttackUnlessDefenderControllsPermanent; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.S...
437
372
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
2,852
2,151
<reponame>saden1/mockito<gh_stars>1000+ package org.mockito.release.notes.util; /** * Human readable text representation */ public interface HumanReadable { /** * the text representation */ String toText(); }
82
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,093
348
<gh_stars>100-1000 {"nom":"Beutin","circ":"4ème circonscription","dpt":"Pas-de-Calais","inscrits":326,"abs":156,"votants":170,"blancs":2,"nuls":0,"exp":168,"res":[{"nuance":"REM","nom":"<NAME>","voix":65},{"nuance":"LR","nom":"<NAME>","voix":59},{"nuance":"SOC","nom":"Mme <NAME>","voix":20},{"nuance":"FN","nom":"M. <NA...
251
312
package com.dfire.platform.alchemy.descriptor; import com.dfire.platform.alchemy.common.Constants; import com.dfire.platform.alchemy.util.BindPropertiesUtil; import org.springframework.util.Assert; import org.springframework.util.CollectionUtils; import java.util.ArrayList; import java.util.List; import java.util.Map...
1,640
471
<gh_stars>100-1000 import sys from django.conf import settings from django.core.management import color_style def abort(): print("Aborting") sys.exit(1) def confirm_destructive_operation(): style = color_style() print(style.ERROR("\nHEY! This is wicked dangerous, pay attention.")) print(style.W...
268
5,169
<reponame>Gantios/Specs<filename>Specs/3/d/6/ShopJoySDK-v2/2.0.3/ShopJoySDK-v2.podspec.json<gh_stars>1000+ { "name": "ShopJoySDK-v2", "version": "2.0.3", "summary": "ShopJoySDK-v2", "description": "iOS SDK for ShopJoy", "license": "(c) ShopJoy 2016. All rights reserved.", "authors": { "ShopJoy": "<EMAIL...
402
25,151
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
2,113
672
<filename>objc4/openSources/dyld-551.4/testing/nocr/nocr.c<gh_stars>100-1000 #include "execserverServer.h" #include <mach/mach.h> #include <mach/vm_map.h> #include <stdio.h> #include <stdlib.h> #include <err.h> #include <pthread.h> #include <unistd.h> #include <dispatch/dispatch.h> #include <errno.h> #include <signal....
3,174
531
<filename>Functional_Tests/PlayerMovementFunctionalTest.cpp // Fill out your copyright notice in the Description page of Project Settings. #include "Tests/PlayerMovementFunctionalTest.h" #include "GameFramework/Character.h" #include "Kismet/GameplayStatics.h" #include "Kismet/KismetSystemLibrary.h" void APlayerMovem...
416
416
#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include(<UIKitCore/UISceneActivationConditions.h>) // // UISceneActivationConditions.h // UIKit // // Copyright © 2019 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKitDefines.h> NS_ASSUME_NONNULL_...
598
3,765
/* * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd.lang.plsql.ast; import net.sourceforge.pmd.annotation.InternalApi; public class ASTQueryBlock extends AbstractSelectStatement { @Deprecated @InternalApi public ASTQueryBlock(int id) { ...
227
475
// Copyright (c) 2015-2016 <NAME> // License: Academic Free License ("AFL") v. 3.0 // AFL License page: http://opensource.org/licenses/AFL-3.0 // http://vittorioromeo.info | <EMAIL> #pragma once #include <ecst/config.hpp> #include <ecst/aliases.hpp> #include <ecst/thread_pool.hpp> #include <ecst/mp.hpp> #include <ecs...
1,674
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...
2,111
1,093
<gh_stars>1000+ /* * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unle...
2,590
348
{"nom":"Simacourbe","circ":"3ème circonscription","dpt":"Pyrénées-Atlantiques","inscrits":307,"abs":154,"votants":153,"blancs":6,"nuls":17,"exp":130,"res":[{"nuance":"SOC","nom":"<NAME>","voix":74},{"nuance":"REM","nom":"<NAME>","voix":56}]}
97
890
from __future__ import absolute_import, unicode_literals from django.conf import settings try: from django.test.runner import DiscoverRunner except ImportError: from django.test.simple import DjangoTestSuiteRunner as DiscoverRunner from celery import current_app from celery.task import Task from djcelery.back...
786
348
{"nom":"Saivres","circ":"2ème circonscription","dpt":"Deux-Sèvres","inscrits":1055,"abs":506,"votants":549,"blancs":28,"nuls":19,"exp":502,"res":[{"nuance":"SOC","nom":"<NAME>","voix":303},{"nuance":"REM","nom":"<NAME>","voix":199}]}
95
392
/******************************************************************************* * Copyright (c) 2015 * * 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 withou...
666
1,531
/** * Copyright 2012-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 ...
251
797
/* The MIT License (MIT) Copyright (c) 2015 <NAME> and Contributors 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...
2,471
7,272
package com.kunal; import java.util.*; public class InBuiltExamples { public static void main(String[] args) { Stack<Integer> stack = new Stack<>(); stack.push(34); stack.push(45); stack.push(2); stack.push(9); stack.push(18); System.out.println(stack.pop(...
448
3,861
/* grub.c - The elastic binding between grub and standalone EFI */ /* * Copyright © 2014 <NAME> <<EMAIL>> * Based on GRUB, glibc and additional software: * Copyright © 2001-2014 Free Software Foundation, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the...
2,888
785
/* * Copyright © 2021 Apple Inc. and the ServiceTalk project 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 requi...
446
2,298
# -*- coding: utf-8 -*- from pandas_ta.overlap import sma from pandas_ta.utils import get_offset, verify_series # - Standard definition of your custom indicator function (including docs)- def ni(close, length=None, centered=False, offset=None, **kwargs): """ Example indicator ni """ # Validate Argumen...
794
930
package com.foxinmy.weixin4j.http; /** * 请求方法 * * @className HttpMethod * @author jinyu(<EMAIL>) * @date 2015年5月29日 * @since JDK 1.6 * @see */ public enum HttpMethod { GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS, TRACE, CONNECT }
116
310
<gh_stars>100-1000 { "name": "Beta 52A", "description": "A kick drum microphone.", "url": "http://www.shure.com/americas/products/microphones/beta/beta-52a-kick-drum-microphone" }
71
608
/* * Copyright (c) 2016 The ZLToolKit project authors. All Rights Reserved. * * This file is part of ZLToolKit(https://github.com/ZLMediaKit/ZLToolKit). * * Use of this source code is governed by MIT license that can be found in the * LICENSE file in the root of the source tree. All contributing project authors ...
488
358
<reponame>deankeinan/mahi-gui // MIT License // // Copyright (c) 2020 Mechatronics and Haptic Interfaces Lab - Rice University // // 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 re...
20,522
2,226
/* gui_event.cpp - implementation of the GuiEvent class. Revision 0 Notes: - 2021/10/15, <NAME> */ #include "gui_event.h" #include "gui/core/InputManager.h" #include "gui/app/views/ViewController.h" // --- SET ITEM --- void GuiEvent::setItem(FileData* item, Window* window) { this->item = item; t...
200
473
<reponame>pingjuiliao/cb-multios /* * Copyright (C) <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 without limitation * the rights to ...
584
678
<gh_stars>100-1000 // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "MMService.h" #import "IMsgExt.h" #import "MMService.h" @class NSString, NewArrivalCountData; @interface NewArrivalCountMgr : MMService <MMService, IMsgExt> ...
603
646
# ---------------------------------------- # Written by <NAME> # ---------------------------------------- import torch import torch.nn as nn import torchvision import torchvision.transforms as transforms import os import sys import numpy as np from config import cfg from datasets.generateData import generate_dataset ...
2,197
526
<filename>open-metadata-implementation/view-services/tex-view/tex-view-api/src/main/java/org/odpi/openmetadata/viewservices/tex/api/ffdc/TexViewServiceException.java<gh_stars>100-1000 /* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.viewser...
1,201
530
package org.carlspring.strongbox.service; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.pool.PoolStats; import javax.ws.rs.client.Client; /** * @author korest */ public interface ProxyRepositoryConnectionPoolConfigurationService { Client getRestClient(); CloseableHttpClie...
192
328
<filename>springboot-invoke/api-common/src/main/java/com/ctg/test/api/service/TestService.java<gh_stars>100-1000 package com.ctg.test.api.service; import com.ctg.test.api.model.ResponseDo; import java.rmi.RemoteException; /** * @Description: TODO * @Author: yanhonghai * @Date: 2018/11/3 11:53 */ public interface...
144
375
/* * Copyright 2016 Nokia Solutions and Networks * Licensed under the Apache License, Version 2.0, * see license.txt file for details. */ package org.rf.ide.core.testdata.text.write.tables.variables; import java.util.ArrayList; import java.util.List; import org.rf.ide.core.testdata.model.AModelElement; import org...
1,071
3,442
<filename>src/net/java/sip/communicator/impl/gui/main/call/UIVideoHandler2.java /* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Li...
9,410
777
<reponame>google-ar/chromium<gh_stars>100-1000 // 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 ASH_MUS_NON_CLIENT_FRAME_CONTROLLER_H_ #define ASH_MUS_NON_CLIENT_FRAME_CONTROLLER_H_ #include <st...
1,337
343
from torch import optim from contextlib import contextmanager class Trainer: r"""Abstract base class for training models. The Trainer class makes it incredibly simple and convinient to train, monitor, debug and checkpoint entire Deep Learning projects. Simply define your training loop by implemen...
4,960
4,054
<gh_stars>1000+ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.clustercontroller.core.status; import com.yahoo.vdslib.state.ClusterState; import com.yahoo.vespa.clustercontroller.core.StateVersionTracker; import com.yahoo.vespa.clusterco...
334
3,094
import torch import numpy as np import cv2 from PIL import Image import torch.nn as nn import albumentations as A from albumentations.pytorch import ToTensorV2 from torch.utils.data import Dataset import os class ImageFolder(Dataset): def __init__(self, root_dir, transform=None): super(ImageFolder, self)._...
867
378
<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 * (th...
4,130
6,989
#pragma once #include "concepts/size_fitter.h" #include <util/system/yassert.h> #include <util/generic/bitops.h> namespace NFlatHash { class TAndSizeFitter { public: size_t EvalIndex(size_t hs, size_t sz) const noexcept { Y_ASSERT(Mask_ == sz - 1); return (hs & Mask_); } size_t EvalSize...
430
348
{"nom":"Gomont","circ":"1ère circonscription","dpt":"Ardennes","inscrits":257,"abs":153,"votants":104,"blancs":1,"nuls":0,"exp":103,"res":[{"nuance":"LR","nom":"<NAME>","voix":83},{"nuance":"REM","nom":"<NAME>","voix":20}]}
88
460
<gh_stars>100-1000 /* * Copyright 2017 Red Hat, Inc, and individual contributors. * * 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 * * U...
957
2,086
#include "colormanager.h" #include <string> #include <unordered_set> #include <vector> #include "3rd-party/catch.hpp" #include "confighandlerexception.h" #include "configparser.h" using namespace newsboat; class StylesCollector { std::map<std::string, std::string> styles; public: StylesCollector() = default; ...
3,628
1,346
package com.ctrip.platform.dal.dao.task; import com.ctrip.platform.dal.common.enums.ShardingCategory; import com.ctrip.platform.dal.dao.*; import java.sql.SQLException; import static com.ctrip.platform.dal.dao.helper.DalShardingHelper.*; /** * Created by lilj on 2018/9/12. */ public class BaseTaskAdapter { pro...
417
2,863
<gh_stars>1000+ package org.spockframework.util; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * Indicates that the annotated element, a member of Spock's public API, is in a * trial phase. Until the element is promoted by removing th...
180
599
<filename>preprocess/crop_video_sequences_batch.py import os from tqdm import tqdm from multiprocessing import Pool from functools import partial from itertools import groupby import numpy as np from fsgan.preprocess.crop_video_sequences import main as crop_video_sequences def parse_videos(root): vid_rel_paths = ...
1,964
3,200
/** * Copyright 2020 Huawei Technologies 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...
899
522
/** * Copyright (C) 2004-2011 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 requir...
1,658
1,085
<reponame>luxms/dremio-oss /* * Copyright (C) 2017-2019 Dremio Corporation * * 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...
586
568
<reponame>sadpe/docassemble<gh_stars>100-1000 # Copyright 2014 SolidBuilds.com. All rights reserved # # Authors: <NAME> <<EMAIL>> from docassemble.webapp.app_and_db import app from flask import render_template, current_app from docassemble_flask_user import login_required, roles_required # The Member page is accessib...
237
554
<reponame>fxxf1111/X-APM package github.tornaco.xposedmoduletest.xposed.submodules; import android.util.Log; import java.util.Set; import de.robv.android.xposed.IXposedHookZygoteInit; import de.robv.android.xposed.XC_MethodHook; import de.robv.android.xposed.XposedBridge; import de.robv.android.xposed.Xpose...
892
555
package com.github.steveice10.mc.protocol.packet.login.client; import com.github.steveice10.mc.protocol.packet.PacketTest; import org.junit.Before; public class LoginStartPacketTest extends PacketTest { @Before public void setup() { this.setPackets(new LoginStartPacket("Username")); } }
116
1,125
// Copyright 2021 Google LLC // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #pragma once #include <gtest/gtest.h> #include <algorithm> #include <cassert> #include <cstddef> #include <cstdlib> #include <functional> #include <rando...
821
1,694
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "NSObject-Protocol.h" @class CBaseContact, CContact, CMessageWrap, LinkWeAppJumpWrap, MMUIViewController, NSArray, NSMutableArray, N...
1,319
4,262
/* * 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 ...
1,159
2,541
<filename>ios/WeApp/Core/WAAppTaskMgr/WAWebViewPageMgr/View/WeAppCustomTabbar/WeAppCustomTabbar.h // // WeAppCustomTabbar.h // WeAppExample // // Created by lionvoom on 2020/12/3. // Copyright © 2020 wept. All rights reserved. // #import <UIKit/UIKit.h> #import "WATabbarStyle.h" #import "WeAppCustomTabbarDelegate-...
243
5,279
<filename>runners/spark/src/main/java/org/apache/beam/runners/spark/translation/EvaluationContext.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 ownershi...
3,569
1,478
/** * @file unit-Subarray.cc * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017-2021 TileDB, Inc. * * 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 ...
13,236