max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
4,283
/* * Copyright (c) 2008-2021, Hazelcast, 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 ...
5,182
313
<filename>deps/GraphBLAS/rmm_wrap/pmr_malloc.h #ifndef PMR_MALLOC_H #define PMR_MALLOC_H #include <stdlib.h> #include <stdint.h> #ifdef __cplusplus extern "C" { #endif void *rmm_wrap_malloc (size_t size) ; void rmm_wrap_free (void *) ; void *rmm_wrap_calloc (size_t, size_t) ; void *rmm_wrap_realloc (...
184
728
<filename>bundles/sirix-core/src/main/java/org/sirix/page/delegates/ReferencesPage4.java /* * Copyright (c) 2011, University of Konstanz, Distributed Systems Group All rights reserved. * <p> * Redistribution and use in source and binary forms, with or without modification, are permitted * provided that the followin...
2,001
642
<filename>jeesuite-zuul-support/src/main/java/com/jeesuite/zuul/filter/post/ResponseRewriteHandler.java<gh_stars>100-1000 package com.jeesuite.zuul.filter.post; import java.io.InputStream; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; import java.util.List; import javax.servlet.http.Http...
1,773
1,093
<reponame>comister/kayenta /* * Copyright 2018 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
303
1,526
<filename>tests/data/fd_check.py<gh_stars>1000+ #!/usr/bin/env python import fcntl import os import sys def ttyname(fd): try: t = os.ttyname(fd) if hasattr(t, 'decode'): t = t.decode() return t except OSError: return None def controlling_tty(): try: f...
471
362
<gh_stars>100-1000 package net.ripe.db.whois.changedphase3; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import static net.ripe.db.whois.changedphase3.util.Scenario.Builder.given; import static net.ripe.db.whois.changedphase3.util.Scenario.Method.CR...
4,053
521
<reponame>Fimbure/icebox-1 /** @file SMM Periodic SMI Library. Copyright (c) 2011, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of t...
16,538
2,010
import tensorflow as tf FLAGS = tf.app.flags.FLAGS def define_flags(): ############ # Run mode ############ tf.app.flags.DEFINE_string('run', None, "Which operation to run. [train|inference]") ########################## # Training parameters ########################### tf.app.flags...
774
14,668
// Copyright 2014 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_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ #include <memory> #include <set> #i...
3,561
1,040
// Copyright (c) <NAME> // Licensed under the MIT License // ====================================================================== // ORBITER SOFTWARE DEVELOPMENT KIT // ScnEditorAPI.h // Scenario editor plugin interface // ====================================================================== #i...
278
337
package amazmod.com.transport.data; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; import com.huami.watch.transport.DataBundle; import amazmod.com.transport.Transportable; public class BatteryData extends Transportable implements Parcelable { public static final String EXTRA ...
1,518
2,023
#### The recipe from __future__ import generators from inspect import getargspec, formatargspec _redefinition = """ _redef_tmp = %(name)s def %(name)s%(oldargs)s: wrapped = type('_GeneratorWrapper', (object,), %(name)s._realgen.__dict__)() wrapped.__iter__ = lambda self: self wrapped.next = %(name)s._real...
714
716
package com.netflix.exhibitor.core.automanage; import com.google.common.collect.Lists; import com.netflix.exhibitor.core.Exhibitor; import com.netflix.exhibitor.core.activity.ActivityLog; import com.netflix.exhibitor.core.config.IntConfigs; import com.netflix.exhibitor.core.state.InstanceStateTypes; import com.netflix...
1,304
2,206
<filename>rl4j/rl4j-core/src/main/java/org/deeplearning4j/rl4j/agent/learning/algorithm/nstepqlearning/NStepQLearning.java /* * ****************************************************************************** * * * * * * This program and the accompanying materials are made available under the * * terms of the A...
1,649
1,170
// // VHLanguagesButton.h // VHGithubNotifier // // Created by Nightonke on 2017/9/23. // Copyright © 2017年 黄伟平. All rights reserved. // #import "VHCursorButton.h" @interface VHLanguagesButton : VHCursorButton - (void)setSelectedLanguageIDs:(NSSet<NSNumber *> *)languageIDs; @end
112
1,345
<gh_stars>1000+ from typing import Any, Dict, Union import numpy as np from pydantic import validator from ...utils.events import EventedModel from ...utils.events.custom_types import Array from ..translations import trans from .categorical_colormap_utils import ColorCycle, compare_colormap_dicts from .standardize_co...
2,021
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 <MMCommon/WXPBGeneratedMessage.h> @class AdExposureInfo, AdExposureSocialInfo, BaseRequest, NSString; @interface AdExposureRequest ...
511
336
<gh_stars>100-1000 package com.shazam.fork.model; import com.google.common.base.Objects; import java.util.concurrent.atomic.AtomicInteger; public class TestCaseEventCounter { public static final TestCaseEventCounter EMPTY = new TestCaseEventCounter(null, 0); private TestCaseEvent testCaseEvent; private...
450
1,062
<reponame>larkov/MailTrackerBlocker<gh_stars>1000+ // // Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> @class MCMessage, MFMessageThread; @interface MessageListItem : NSObject { MCMessage *_message; //...
606
2,137
package com.publiccms.views.method.tools; import java.util.List; import org.springframework.stereotype.Component; import com.publiccms.common.base.BaseMethod; import com.publiccms.common.tools.CommonUtils; import com.publiccms.common.tools.VerificationUtils; import freemarker.template.TemplateModelExcepti...
372
1,062
<reponame>larkov/MailTrackerBlocker<gh_stars>1000+ // // Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57). // // Copyright (C) 1997-2019 <NAME>. // #import "NSObject-Protocol.h" @class NSCoder, NSString; @protocol NSWindowRestoration <NSObject> + (void)restoreWindowWithIdenti...
160
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.storage.blob.implementation.util; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; public enum BlobRequestConditionProperty { LEASE_ID("LeaseId"...
520
506
<gh_stars>100-1000 // https://www.codechef.com/SEPT17/problems/CHEFSUM/ #include <iostream> #include <vector> using namespace std; typedef long long ll; typedef vector<ll> vll; typedef vector<int> vi; int main() { int t; cin >> t; for (int i = 0; i < t; i++) { int n; cin >> n; vi v = vi(n); vll...
451
416
package org.simpleflatmapper.reflect.getter; import org.simpleflatmapper.reflect.IndexedGetter; import java.lang.reflect.Array; public class ArrayIndexedGetter<P> implements IndexedGetter<Object,P> { @SuppressWarnings("unchecked") @Override public P get(Object target, int index) { return (P) Arra...
127
4,238
#!/usr/bin/env python from unittest import mock from absl.testing import absltest from grr_response_client.client_actions.windows import windows from grr_response_core.lib.rdfvalues import protodict as rdf_protodict from grr.test_lib import client_test_lib class WindowsActionTests(absltest.TestCase): def testEn...
1,345
2,828
<filename>curator-examples/src/main/java/pubsub/messages/LocationAvailable.java /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses t...
601
458
<reponame>niranjanchintu/hyscale /** * Copyright 2019 <NAME>, 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 requi...
1,389
30,023
<gh_stars>1000+ """Tests for the Coolmaster component."""
19
14,668
// Copyright 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. #ifndef COMPONENTS_VIZ_SERVICE_DISPLAY_OUTPUT_SURFACE_H_ #define COMPONENTS_VIZ_SERVICE_DISPLAY_OUTPUT_SURFACE_H_ #include <memory> #include <vector> #i...
4,072
303
#include "modules/timer/timer.h" using namespace love; static TickCounter counter; Timer::Timer() { osTickCounterStart(&counter); this->prevFPSUpdate = currentTime = this->GetTime(); } double common::Timer::GetTime() { counter.elapsed = svcGetSystemTick() - counter.reference; return osTickCounterRea...
118
2,341
# # Copyright 2016 Cluster Labs, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
316
312
<filename>deployment/src/test/java/io/quarkiverse/githubapp/deployment/ConfigFileOrderTest.java package io.quarkiverse.githubapp.deployment; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterEx...
412
370
<reponame>stdbio/smf // Copyright (c) 2016 <NAME>. All rights reserved. // #pragma once // std #include <memory> #include <utility> #include <vector> #include <optional> #include <map> #include <seastar/core/gate.hh> #include <seastar/net/tls.hh> #include <seastar/core/shared_ptr.hh> #include "smf/histogram.h" #includ...
2,297
329
#pragma once // Copyright (c) 2018-present The Alive2 Authors. // Distributed under the MIT license that can be found in the LICENSE file. #include "ir/constant.h" #include "ir/value.h" #include <string> #include <string_view> #include <vector> namespace smt { class Model; } namespace IR { class Predicate { public...
713
1,668
package org.elixir_lang.jps; import com.intellij.util.xmlb.annotations.Tag; import org.jetbrains.annotations.NotNull; public class CompilerOptions { @Tag("useMixCompiler") public boolean useMixCompiler = true; @Tag("useDocs") public boolean attachDocsEnabled = true; @Tag("useDebugInfo") public boolean a...
279
868
/* * * 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"); y...
1,000
687
<filename>supersqlite/third_party/sqlite3/icu/norm2_nfc_data.h // © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html // // Copyright (C) 1999-2016, International Business Machines // Corporation and others. All Rights Reserved. // // file name: norm2_nfc_data.h...
69,907
636
<gh_stars>100-1000 package org.hyperledger.indy.sdk.payment; import org.hyperledger.indy.sdk.InvalidStructureException; import org.hyperledger.indy.sdk.payments.IncompatiblePaymentException; import org.hyperledger.indy.sdk.payments.Payments; import org.hyperledger.indy.sdk.payments.UnknownPaymentMethodException; impor...
431
390
<filename>tests/test_bandit/test_cb_agents.py<gh_stars>100-1000 import shutil from genrl.agents import ( BernoulliMAB, BootstrapNeuralAgent, FixedAgent, LinearPosteriorAgent, NeuralGreedyAgent, NeuralLinearPosteriorAgent, NeuralNoiseSamplingAgent, VariationalAgent, ) from genrl.trainers...
1,263
32,544
<filename>spring-boot-modules/spring-boot-annotations-2/src/test/java/com/baeldung/annotations/conditional/DevEnvLoggingConfigurationUnitTest.java package com.baeldung.annotations.conditional; import org.junit.Test; import org.junit.jupiter.api.Assertions; import org.springframework.beans.factory.NoSuchBeanDefinitionE...
774
1,584
#ifndef INCLUDED_PORTAUDIO_CFUNCALLBACKSTREAM_HXX #define INCLUDED_PORTAUDIO_CFUNCALLBACKSTREAM_HXX // --------------------------------------------------------------------------------------- #include "portaudio.h" #include "portaudiocpp/CallbackStream.hxx" // -----------------------------------------------...
415
332
// Autogenerated from vk-api-schema. Please don't edit it manually. package com.vk.api.sdk.exceptions; public class ApiAuthException extends ApiException { public ApiAuthException(String message) { super(5, "User authorization failed", message); } }
90
14,668
<reponame>zealoussnow/chromium<filename>mojo/public/cpp/bindings/lib/message_dumper.cc // 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 "mojo/public/cpp/bindings/message_dumper.h" #include "bas...
1,275
8,969
#!/usr/bin/env python3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. """This is the entry point to create Dart APIs from the IDL database.""" import css...
5,869
14,668
/* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 8.xx.xxxx */ /* at a redacted point in time */ /* Compiler settings for ../../chrome/elevation_service/elevation_service_idl.idl: Oicf, W1, Zp8, env=Win64 (32b run), target_arch=AMD64...
8,974
5,070
<reponame>joao-r-santos/DataSciencePython #https://www.kaggle.com/c/amazon-employee-access-challenge/forums/t/4797/starter-code-in-python-with-scikit-learn-auc-885 """ Amazon Access Challenge Starter Code These files provide some starter code using the scikit-learn library. It provides some examples on how to design...
1,407
466
/* Copyright (c) 2010, NullNoname 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 notice, this ...
7,698
2,649
<reponame>wangjiulonghenqiang/Dome package json.chao.com.wanandroid.core.event; /** * @author quchao * @date 2018/2/28 */ public class LoginEvent { private boolean isLogin; public boolean isLogin() { return isLogin; } public void setLogin(boolean login) { isLogin = login; } ...
165
5,079
<reponame>kokosing/hue #include <yaml.h> #if PY_MAJOR_VERSION < 3 #define PyUnicode_FromString(s) PyUnicode_DecodeUTF8((s), strlen(s), "strict") #else #define PyString_CheckExact PyBytes_CheckExact #define PyString_AS_STRING PyBytes_AS_STRING #define PyString_GET_SIZE PyBytes_GET_SIZE #define PyString_FromStrin...
208
1,609
package com.mossle.api.user; import java.util.Map; import com.mossle.core.page.Page; public class MockUserConnector implements UserConnector { /** * 根据唯一标识获取用户信息. * * @param id * 用户的唯一标识,即便是不同用户库的用户id也是唯一的 */ public UserDTO findById(String id) { return null; }...
706
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...
669
309
<reponame>cvandijck/VTKExamples #include <vtkSmartPointer.h> #include <vtkPointSource.h> #include <vtkBYUReader.h> #include <vtkOBJReader.h> #include <vtkPLYReader.h> #include <vtkPolyDataReader.h> #include <vtkSTLReader.h> #include <vtkXMLPolyDataReader.h> #include <vtkPointOccupancyFilter.h> #include <vtkThreshold....
1,805
1,272
/* * Copyright 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 "license" f...
548
6,240
<reponame>kzantow-web/closure-compiler /* * Copyright 2014 The Closure Compiler 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-...
19,436
5,169
<filename>Specs/b/2/5/XPAlertView/0.0.1/XPAlertView.podspec.json { "name": "XPAlertView", "version": "0.0.1", "summary": "自用的swift版的AlertView不适配swift3.0", "description": "自用的swift版的AlertView不适配swift3.0", "homepage": "https://coding.net/u/JINY/p/XPAlertView/git/tree/master/XPAlertView", "license": "MIT", "...
296
320
#include <metal.hpp> #include "test.hpp" #define SEQ1(M) metal::list<VALUE(M)> #define COMBINE1(M) metal::list<ENUM(M, SEQ1)> #define SEQ2(N, M) metal::list<VALUE(M), VALUE(N)> #define COMBINE2_IMPL(M, N) ENUM(N, SEQ2, M) #define COMBINE2(M) metal::list<ENUM(M, COMBINE2_IMPL, M)> #define COMBINE(M, N) CAT(COMBINE, ...
2,025
4,640
/* * 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 ...
2,030
1,137
<gh_stars>1000+ # Copyright (c) Facebook, Inc., its affiliates and Kakao Brain. All Rights Reserved import torch from fairseq.models.roberta import RobertaHubInterface, RobertaModel from pororo.tasks.tokenization import PororoTokenizationFactory from pororo.tasks.utils.download_utils import download_or_load class P...
1,941
746
// 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...
2,695
62,208
package com.macro.mall.model; import java.util.ArrayList; import java.util.Date; import java.util.List; public class CmsSubjectExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public CmsSubjectExample() { oredCriteria = new ArrayLi...
16,931
1,088
# Copyright 2021 Alibaba Group Holding Limited. 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,572
1,319
import numpy as np import os import cv2 import time import utils_func # defined functions # Input directory img_dir = '../../intermediate_result/data/data_ori/test_data/' # frames dir extracted from videos bbox_path = '../../intermediate_result/det_result/result_10frame_detmodel2_5w/' # detection result dir mask_dir ...
6,528
15,193
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2021, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
2,992
1,292
/** * */ package org.sikuli.guide; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import javax.swing.JLabel; public class SikuliGuideText extends SikuliGuideComponent { static final int SHADOW_SIZE = 10; static final int DEFAULT_MAXIMUM_WIDTH = 300; ...
1,087
1,014
package com.github.neuralnetworks.samples.server; import java.util.List; import com.github.neuralnetworks.util.Environment; import com.github.neuralnetworks.util.RuntimeConfiguration; /** * This class allow to run a test (that you copy into the function JUnitOnServerStarter#jUnitTest() ) via command line with diffe...
934
14,668
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROMEOS_UI_FRAME_DESKS_MOVE_TO_DESKS_MENU_MODEL_H_ #define CHROMEOS_UI_FRAME_DESKS_MOVE_TO_DESKS_MENU_MODEL_H_ #include "ui/base/models/simple_m...
762
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,860
324
/* * 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 ...
498
2,338
// RUN: %check_clang_tidy %s readability-identifier-naming %t -- \ // RUN: -config='{CheckOptions: [ \ // RUN: {key: readability-identifier-naming.ParameterCase, value: CamelCase}, \ // RUN: {key: readability-identifier-naming.IgnoreMainLikeFunctions, value: true} \ // RUN: ]}' int mainLike(int argc, char *...
1,785
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 ...
5,376
3,172
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
1,291
590
from functools import partial from graphql.utilities import build_schema from graphql.validation.rules.possible_type_extensions import PossibleTypeExtensionsRule from .harness import assert_sdl_validation_errors assert_errors = partial(assert_sdl_validation_errors, PossibleTypeExtensionsRule) assert_valid = partial...
4,637
661
from pseudo.middlewares.middleware import Middleware from pseudo.pseudo_tree import Node, method_call BUILTIN_SIMPLE = {'Int', 'String', 'Void', 'Exception', 'Float', 'Boolean', 'CppIterator', 'ifstream', 'istreambuf_iterator<char>', 'Library'} class CppPointerMiddleware(Middleware): ''' converts variables al...
635
11,351
<reponame>LearnJavaByus/eureka<filename>eureka-client/src/main/java/com/netflix/discovery/shared/transport/jersey/SSLSocketFactoryAdapter.java package com.netflix.discovery.shared.transport.jersey; import java.io.IOException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.Socket; impor...
1,963
3,209
<reponame>unFYDP/CIHP_PGN from .transformer import TensorFlowTransformer from .network import Network
32
738
from django.core.management.base import BaseCommand from crits.core.sector import Sector from crits.core.class_mapper import class_from_type class Command(BaseCommand): """ Script Class. """ def handle(self, *args, **options): """ Script Execution. """ sectors = {} ...
622
2,981
<reponame>kjthegod/chromium<gh_stars>1000+ { "name": { "message": "<NAME>", "description": "Назив екстензије у манифесту." }, "description": { "message": "Приказује првих 5 вести са '$Google$ Вести - главне вести' у прозорчићу.", "description": "Опис екстензије у манифесту.", "placeholders": {...
965
2,603
<reponame>NoMaY-jp/FreeRTOS /* * FreeRTOS V202107.00 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * 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 wit...
1,705
2,571
// *************************************************************** // Copyright (c) 2021 Jittor. All Rights Reserved. // Maintainers: // <NAME> <<EMAIL>> // <NAME> <<EMAIL>>. // // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. /...
1,130
348
<filename>docs/data/leg-t1/003/00301019.json {"nom":"Beaulon","circ":"1ère circonscription","dpt":"Allier","inscrits":1305,"abs":665,"votants":640,"blancs":23,"nuls":7,"exp":610,"res":[{"nuance":"COM","nom":"<NAME>","voix":170},{"nuance":"REM","nom":"M<NAME>","voix":169},{"nuance":"LR","nom":"<NAME>-<NAME>","voix":127}...
287
746
package jp.mixi.practice.serializable; import java.util.Calendar; import java.util.Random; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.text.format.DateFormat; public class NetworkClient { private Random rand = new Random(); public String getUser(int...
741
2,542
<filename>src/test/current/source/NativeReplicatorStack/TpccService/OrderKey.h // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // -------------...
401
674
<reponame>slaveuser/honest-profiler20190422 /** * Copyright (c) 2014 <NAME> (<EMAIL>) * <p> * 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 limitat...
703
1,695
/* * 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 * distribut...
695
335
{ "word": "Make", "definitions": [ "The manufacturer or trade name of a product.", "The structure or composition of something.", "The making of electrical contact." ], "parts-of-speech": "Noun" }
91
653
<reponame>who7708/NaiveChat<gh_stars>100-1000 package org.itstack.naive.chat.client.socket; import io.netty.channel.ChannelInitializer; import io.netty.channel.socket.SocketChannel; import org.itstack.naive.chat.codec.ObjDecoder; import org.itstack.naive.chat.codec.ObjEncoder; /** * 微信公众号:bugstack虫洞栈 | 欢迎关注学习专题案例 *...
407
3,459
<reponame>ianclawson/Provenance /******************************************************************************/ /* Mednafen - Multi-system Emulator */ /******************************************************************************/ /* CDAFReader_FLAC.cpp: ** Copyright (C) 202...
3,761
503
// // PieCharts.h // PieCharts // // Created by <NAME> on 03/01/2017. // Copyright © 2017 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for PieCharts. FOUNDATION_EXPORT double PieChartsVersionNumber; //! Project version string for PieCharts. FOUNDATION_EXPORT const unsigned c...
149
1,157
<gh_stars>1000+ #pragma once #include <maxtest/ccdefs.hh> namespace maxtest { int create_tcp_socket(); char* get_ip(const char* host); char* read_sc(int sock); int send_so(int sock, char* data); char* cdc_auth_srt(char* user, char* password); int setnonblocking(int sock); int get_x_fl_from_json(const char* li...
150
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Obersoultzbach","circ":"7ème circonscription","dpt":"Bas-Rhin","inscrits":343,"abs":186,"votants":157,"blancs":2,"nuls":3,"exp":152,"res":[{"nuance":"LR","nom":"<NAME>","voix":101},{"nuance":"REM","nom":"<NAME>","voix":51}]}
111
1,655
#include "LinearTransmittance.hpp" #include "sampling/UniformPathSampler.hpp" #include "math/MathUtil.hpp" #include "io/JsonObject.hpp" #include "Memory.hpp" namespace Tungsten { LinearTransmittance::LinearTransmittance() : _maxT(1.0f) { } void LinearTransmittance::fromJson(JsonPtr value, const Scene &scene) { ...
759
746
<reponame>VishalS711/protege package org.protege.editor.owl.ui.renderer.conf; import org.protege.editor.core.Fonts; import org.protege.editor.core.ui.preferences.PreferencesLayoutPanel; import org.protege.editor.owl.ui.preferences.OWLPreferencesPanel; import org.protege.editor.owl.ui.renderer.OWLModelManagerEntityRend...
2,643
1,144
package de.metas.contracts.inoutcandidate; /* * #%L * de.metas.contracts * %% * Copyright (C) 2015 metas GmbH * %% * 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 th...
1,644
971
<reponame>weijietong/noisepage<gh_stars>100-1000 #include "messenger/connection_destination.h" #include "spdlog/fmt/fmt.h" namespace noisepage::messenger { ConnectionDestination ConnectionDestination::MakeTCP(std::string target_name, std::string_view hostname, int port) { return ConnectionDestination(std::move(tar...
262
348
{"nom":"Saint-Félix","circ":"1ère circonscription","dpt":"Allier","inscrits":266,"abs":142,"votants":124,"blancs":11,"nuls":3,"exp":110,"res":[{"nuance":"REM","nom":"<NAME>","voix":64},{"nuance":"COM","nom":"<NAME>","voix":46}]}
90
1,085
from .framework import ( selenium_test, SeleniumTestCase ) class LoginTestCase(SeleniumTestCase): @selenium_test def test_logging_in(self): email = self._get_random_email() self.register(email) self.logout_if_needed() self.home() self.submit_login(email, assert...
604
880
/** * Copyright 2019 <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 wr...
820
392
<filename>apollo-backend/src/main/java/io/logz/apollo/controllers/DeployableVersionController.java package io.logz.apollo.controllers; import com.google.common.base.Joiner; import com.google.common.base.Splitter; import com.google.common.collect.Iterables; import io.logz.apollo.common.HttpStatus; import io.logz.apollo...
3,445
322
<gh_stars>100-1000 # # Copyright 2019 <NAME>, <NAME>, <NAME>, # <NAME>, <NAME>, <NAME>, <NAME>, # <NAME>, <NAME>, <NAME>, <NAME>, # <NAME>, <NAME>, <NAME>, <NAME>, <NAME> # # This file is part of acados. # # The 2-Clause BSD License # # Redistribution and use in source and binary forms, with or without # modification, ...
2,094