max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,831
<filename>logdevice/common/protocol/GET_EPOCH_RECOVERY_METADATA_Message.cpp /** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "l...
468
9,734
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
3,053
877
// This test covers Issue345 at: // https://github.com/typetools/checker-framework/issues/345 public class AssignmentDuringInitialization { String f1; String f2; String f3; String f4; String f5; String f6; { // :: error: (assignment) f1 = f2; f2 = f1; f2.toString(); // Null pointer exc...
331
1,720
#pragma once #include "Iop_SifMan.h" namespace Iop { class CSifManNull : public CSifMan { public: void RegisterModule(uint32, CSifModule*) override; bool IsModuleRegistered(uint32) override; void UnregisterModule(uint32) override; void SendPacket(void*, uint32) override; void SetDmaBuffer(ui...
234
1,445
from datetime import datetime from tapiriik.database import redis import pickle class SessionCache: def __init__(self, scope, lifetime, freshen_on_get=False): self._lifetime = lifetime self._autorefresh = freshen_on_get self._scope = scope self._cacheKey = "sessioncache:%s:%s" % (se...
475
777
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_TEST_RUNNER_PIXEL_DUMP_H_ #define COMPONENTS_TEST_RUNNER_PIXEL_DUMP_H_ #include "base/callback_forward.h" #include "components/test_ru...
445
879
<gh_stars>100-1000 package org.zstack.sdk; public class VpcFirewallVRouterRefInventory { public long id; public void setId(long id) { this.id = id; } public long getId() { return this.id; } public java.lang.String vpcFirewallUuid; public void setVpcFirewallUuid(java.lan...
514
581
<gh_stars>100-1000 int g1 = 10; int g2 = 1; double g3 = 3.1415; int main() { int i = 666; g1 = 42; g2 = g1; return 0; }
67
478
<reponame>aerys/minko /* Copyright (c) 2014 Aerys Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
6,951
7,883
// Copyright (c) 2020 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #pragma once #include <atomic> #include <chrono> #include <mutex> #include <thread> #include <...
2,642
346
"""add metadata in run table Revision ID: edcd10edf11d Revises: <PASSWORD> Create Date: 2021-09-16 11:37:16.502609 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "edcd10edf11d" down_revision = "<PASSWORD>" branch_labels = None depends_on = None def upgrade():...
607
372
<gh_stars>100-1000 /* * 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 ...
1,474
34,359
<filename>src/cascadia/Remoting/WindowActivatedArgs.cpp // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "pch.h" #include "WindowActivatedArgs.h" #include "WindowActivatedArgs.g.cpp"
74
2,338
<reponame>mkinsner/llvm #include <cstdio> #include <iostream> #include <string> #include <map> int main (int argc, char const *argv[]) { std::string hello_world ("Hello World!"); std::cout << hello_world << std::endl; std::cout << hello_world.length() << std::endl; std::cout << hello_world[11] << std::e...
312
1,526
<reponame>Hakunata/servicecomb-pack<gh_stars>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 Apach...
951
918
<filename>gobblin-data-management/src/test/java/org/apache/gobblin/data/management/source/LoopingDatasetFinderSourceTest.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 regardin...
12,006
763
<reponame>zabrewer/batfish<filename>projects/batfish/src/main/java/org/batfish/representation/cisco_xr/MatchSemantics.java package org.batfish.representation.cisco_xr; public enum MatchSemantics { MATCH_ALL, MATCH_ANY }
85
4,339
/* * 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 ...
775
713
<filename>core/src/test/java/org/infinispan/functional/distribution/rehash/FunctionalNonTxBackupOwnerBecomingPrimaryOwnerTest.java<gh_stars>100-1000 package org.infinispan.functional.distribution.rehash; import org.infinispan.distribution.rehash.NonTxBackupOwnerBecomingPrimaryOwnerTest; import org.infinispan.test.fwk....
636
3,212
<filename>nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/java/org/apache/nifi/processors/aws/kinesis/stream/record/KinesisRecordProcessorRecord.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this wo...
3,697
593
/** * TLS-Attacker - A Modular Penetration Testing Framework for TLS * * Copyright 2014-2022 Ruhr University Bochum, Paderborn University, Hackmanit GmbH * * Licensed under Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0.txt */ package de.rub.nds.tlsattacker.core.protocol.handler.extens...
1,306
323
<filename>examples/solv/mirror.h char *findmetalinkurl(FILE *fp, unsigned char *chksump, Id *chksumtypep); char *findmirrorlisturl(FILE *fp);
54
515
<gh_stars>100-1000 { "name": “easyMesh”, "keywords": “esp8266 mesh network networking”, "description": “A simple mesh networking library for esp8266. easyMesh is very simple to implement and establishes a simple and highly adaptable mesh network for any distributed application. Network synchronization, network ...
227
317
// Released under the MIT License. See LICENSE for details. #include "ballistica/networking/telnet_server.h" #include "ballistica/app/app_globals.h" #include "ballistica/core/context.h" #include "ballistica/game/game.h" #include "ballistica/networking/networking.h" #include "ballistica/networking/networking_sys.h" #i...
3,325
1,801
<gh_stars>1000+ #include "c4-pedestrian-detector.h" /*****************************************/ // Pedestrian_ICRA.cpp /*****************************************/ // --------------------------------------------------------------------- // Helper functions // compute the Sobel image "ct" from "original" void ComputeC...
4,531
1,126
/* * first --> First number * second --> Second number * There are two implementations: * Recursive(euclideanGCDRecursive) and Non-Recursive(euclideanGCD) */ public class EuclideanGCD { static int euclideanGCD(int first, int second) { while(second != 0) { // Iterate till second becomes zero ...
639
373
package com.dianrong.common.uniauth.server.service; import com.dianrong.common.uniauth.common.bean.dto.AttributeExtendDto; import com.dianrong.common.uniauth.common.bean.dto.PageDto; import com.dianrong.common.uniauth.server.data.entity.AttributeExtend; import com.dianrong.common.uniauth.server.data.entity.AttributeEx...
1,358
556
<reponame>mmaaz60/DCL<filename>models/Asoftmax_linear.py import torch import torch.nn as nn from torch.autograd import Variable import torch.nn.functional as F from torch.nn import Parameter import math def myphi(x,m): x = x * m return 1-x**2/math.factorial(2)+x**4/math.factorial(4)-x**6/math.factorial(6) + \ ...
1,140
2,663
{ "type": "Profit Loss", "definition": { "text": "Profit loss is the difference between the balance at the end and the balance at the beginning of a certain period, given by the context." }, "paragraphs": [ { "style": "Block", "text": "Content" }, ...
2,063
538
// Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. // Full license terms provided in LICENSE.md file. #ifndef CAFFE_ROS_CAFFE_ROS_H #define CAFFE_ROS_CAFFE_ROS_H #include <ros/ros.h> #include <sensor_msgs/Image.h> #include "caffe_ros/tensor_net.h" namespace caffe_ros { // Implements caffe_ros node. clas...
851
473
<reponame>zheli-1/crete-dev<gh_stars>100-1000 #include "io.h" int main(void) { long long rd, rs, rt, result, dsp, dspresult; rt = 0x80003698CE8F9201; rs = 0x800034634BCDE321; result = 0x7fff16587a530313; dspresult = 0x01; __asm ("mulq_rs.qh %0, %2, %3\n\t" "rddsp %1\n\t" ...
370
5,852
<filename>proxygen/lib/http/codec/HQStreamCodec.cpp /* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <proxygen/lib/http/codec/HQStreamCodec.h...
6,552
1,621
<reponame>sigmaister/snakeware_os import pygame import pygame_gui def load(manager, params): """ Launch a Colour Picker dialog to change the desktop background color. """ # default position pos = (100, 100) if params is not None and len(params) > 0: pos = params[0] pygame_gui.wi...
203
822
""" Follows the FIPS PUB 180-4 description for calculating SHA-256 hash function https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf Noone in their right mind should use this for any serious reason. This was written purely for educational purposes. """ import math from itertools import count, islice # -------...
2,466
653
<reponame>mkinsner/llvm // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py // REQUIRES: riscv-registered-target // RUN: %clang_cc1 -triple riscv64 -target-feature +experimental-v -disable-O0-optnone -emit-llvm %s -o - | opt -S -mem2reg | FileCheck --check-prefix=CHECK-RV64 %s #include <riscv...
31,949
1,338
<reponame>Kirishikesan/haiku<gh_stars>1000+ /* * Copyright (c) 2005-2010, Haiku, Inc. * Distributed under the terms of the MIT license. * * Author: * DarkWyrm <<EMAIL>> */ #include "ResourceData.h" #include "ResFields.h" #include <stdlib.h> ResourceData::ResourceData(void) : fType(0), fTypeString("Invalid"...
1,194
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Saint-Ferréol-des-Côtes","circ":"5ème circonscription","dpt":"Puy-de-Dôme","inscrits":460,"abs":183,"votants":277,"blancs":7,"nuls":5,"exp":265,"res":[{"nuance":"COM","nom":"M. <NAME>","voix":174},{"nuance":"REM","nom":"M. <NAME>","voix":91}]}
134
767
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
457
3,402
<filename>core-metadata/src/main/java/org/apache/kylin/metadata/expression/BinaryTupleExpression.java<gh_stars>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 copy...
1,974
303
<filename>dbaas/api/environment.py # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from rest_framework import viewsets, serializers from physical.models import Environment class EnvironmentSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Environment...
552
763
package org.batfish.representation.juniper; import static org.junit.Assert.assertEquals; import com.google.common.collect.ImmutableList; import java.util.List; import org.batfish.datamodel.HeaderSpace; import org.batfish.datamodel.acl.MatchHeaderSpace; import org.batfish.datamodel.acl.OrMatchExpr; import org.junit.Te...
946
6,989
<filename>library/digest/lower_case/hash_ops.h #pragma once #include <util/generic/strbuf.h> // can be used for caseless hashes like: THashMap<TStringBuf, T, TCIOps, TCIOps> struct TCIOps { size_t operator()(const char* s) const noexcept; size_t operator()(const TStringBuf& s) const noexcept; bool opera...
169
1,338
<gh_stars>1000+ #ifndef _GFX_CONV_MMX_H #define _GFX_CONV_MMX_H // BeOS and libavcodec bitmap formats #include <GraphicsDefs.h> #include "libavcodec/avcodec.h" void gfx_conv_null_mmx(AVFrame *in, AVFrame *out, int width, int height); // Planar void gfx_conv_yuv420p_rgba32_sse(AVFrame *in, AVFrame *out, int width, in...
437
682
<filename>abc/src/aig/saig/saigIso.c /**CFile**************************************************************** FileName [saigIso.c] SystemName [ABC: Logic synthesis and verification system.] PackageName [Sequential AIG package.] Synopsis [Sequential cleanup.] Author [<NAME>] Affiliation [...
9,136
2,308
<filename>saturn-core/src/main/java/com/vip/saturn/job/utils/LogEvents.java /** * Copyright 2016 vip.com. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/li...
441
2,288
#ifndef CCAN_CRYPTO_HKDF_SHA256_H #define CCAN_CRYPTO_HKDF_SHA256_H /* BSD-MIT - see LICENSE file for details */ #include "config.h" #include <stdlib.h> /** * hkdf_sha256 - generate a derived key * @okm: where to output the key * @okm_size: the number of bytes pointed to by @okm (must be less than 255*32) * @s: sa...
274
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-2mhq-qg26-p24h", "modified": "2022-04-29T02:57:09Z", "published": "2022-04-29T02:57:09Z", "aliases": [ "CVE-2004-0116" ], "details": "An Activation function in the RPCSS Service involved with DCOM activation for Microsoft Windows 2000, XP, an...
998
318
<reponame>Sunlitspace542/SNESticle #ifndef _NETSOCKET_H #define _NETSOCKET_H #include "llnetsocket.h" #include "netsys.h" struct NetSocket_t; typedef int (*NetSocketFuncT)(struct NetSocket_t *pSocket, void *pUserData); typedef enum { NETSOCKET_STATUS_INVALID, NETSOCKET_STATUS_LISTENING,...
1,036
787
// OJ: https://leetcode.com/problems/design-tic-tac-toe/ // Author: github.com/lzl124631x // Time: O(1) // Space: O(N) class TicTacToe { private: vector<int> rows, cols; int n, diag = 0, anti = 0; public: TicTacToe(int n) : n(n), rows(n, 0), cols(n, 0) {} int move(int row, int col, int player) { ...
343
402
import requests import configuration import performance from mamba import description, context, it from expects import expect, be_true, have_length, equal, be_a, have_property, be_none rule_name="route-rule-http-redirect.yaml" Rule=configuration.Rule() with description('Testing HTTP Redirect'): with before.all: ...
402
2,151
<filename>google_apis/gcm/engine/gcm_registration_request_handler.cc // 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. #include "google_apis/gcm/engine/gcm_registration_request_handler.h" #include "base/...
494
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....
4,392
1,180
<reponame>cntrump/libtomcrypt<filename>src/modes/ctr/ctr_decrypt.c<gh_stars>1000+ /* LibTomCrypt, modular cryptographic library -- <NAME> */ /* SPDX-License-Identifier: Unlicense */ #include "tomcrypt_private.h" /** @file ctr_decrypt.c CTR implementation, decrypt data, <NAME> */ #ifdef LTC_CTR_MODE /** CTR de...
300
2,338
<gh_stars>1000+ //===- unittests/AST/AttrTests.cpp --- Attribute tests --------------------===// // // 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 // //===-----------...
281
585
<filename>appindexing/app/src/main/java/com/google/firebase/example/appindexing/MainActivity.java package com.google.firebase.example.appindexing; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import com.google.android.gms.tasks.Task; import com.google.firebase.appindexing.Action; import ...
1,386
1,390
static int SIZE = 20;
11
1,405
<reponame>jarekankowski/pegasus_spyware package com.lenovo.lps.sus.control; import android.os.Message; import android.widget.CompoundButton; import com.lenovo.lps.sus.b.b; import com.lenovo.lps.sus.c.a; /* access modifiers changed from: package-private */ public final class w implements CompoundButton.OnCheckedChange...
440
1,157
<reponame>sdrik/MaxScale /** * MXS-1743: Maxscale unable to enforce round-robin between read service for Slave * * https://jira.mariadb.org/browse/MXS-1743 */ #include <maxtest/testconnections.hh> #include <vector> int main(int argc, char** argv) { TestConnections test(argc, argv); auto do_test = [&]() { ...
772
494
<gh_stars>100-1000 /** * Copyright 2013 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 applic...
795
1,444
package mage.cards.g; import java.util.UUID; import mage.MageInt; import mage.abilities.common.AttacksTriggeredAbility; import mage.abilities.effects.common.continuous.BoostControlledEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.SubType; impor...
439
14,668
def main(request, response): headers = [(b"Content-type", b"text/html;charset=utf-8")] content = u"<!doctype html><div id=test></div>" return headers, content
66
1,168
<reponame>wcalandro/kythe // Checks that we can properly handle a test that fails to verify. //- _NodeA does/not/relate/to _NodeB int x;
48
668
<reponame>jkreindl/sulong<filename>projects/com.oracle.truffle.llvm.parser/src/com/oracle/truffle/llvm/parser/metadata/MDImportedEntity.java /* * Copyright (c) 2017, Oracle and/or its affiliates. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * pe...
1,224
21,382
<gh_stars>1000+ // generated automatically, do not modify. package io.ray.api.function; /** Functional interface for a remote function that has 6 parameters. */ @FunctionalInterface public interface RayFuncVoid6<T0, T1, T2, T3, T4, T5> extends RayFuncVoid { void apply(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) thro...
123
1,652
package com.ctrip.xpipe.redis.console.migration.model.impl; import com.ctrip.xpipe.api.migration.OuterClientService; import com.ctrip.xpipe.api.observer.Observable; import com.ctrip.xpipe.api.retry.RetryTemplate; import com.ctrip.xpipe.command.AbstractCommand; import com.ctrip.xpipe.observer.AbstractObservable; import...
4,168
4,538
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #ifndef SENSOR_HAL_H #define SENSOR_HAL_H #include <aos/init.h> #include <aos/errno.h> #include <aos/compiler.h> #include "ulog/ulog.h" #include "sensor/sensor.h" #define SENSOR_DRV_ADD(func) \ int __sensor_##func##_func__(void){ \ return func(); \ }...
227
852
<filename>CondCore/CondDB/interface/CoralServiceMacros.h #ifndef CondCore_CondDB_CoralServiceMacros_h #define CondCore_CondDB_CoralServiceMacros_h #include "CondCore/CondDB/interface/CoralServiceFactory.h" #include "CoralKernel/Service.h" #define DEFINE_CORALSERVICE(type, name) \ DEFINE_EDM_PLUGIN(cond::CoralServic...
139
2,440
<gh_stars>1000+ from cyberbrain import Binding, InitialValue, Symbol def test_unary_operations(tracer, check_golden_file): a = 1 tracer.start() b = +a # UNARY_POSITIVE b = -a # UNARY_NEGATIVE b = not a # UNARY_NOT b = ~a # UNARY_INVERT tracer.stop()
126
2,219
/* * Copyright (c) 2014-2015 <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 3, or (at your option) any later version. * * This program is distributed in the hope ...
1,962
693
# Copyright 2021 solo-learn development team. # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to use, # copy, modify, merge, publ...
1,451
347
package com.cjj.http; import android.app.Activity; import android.content.Context; import android.graphics.drawable.Drawable; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v7.app.AppCompatActivity; import android.widget.ImageView; import com.bumptech.gl...
671
843
package org.zalando.nakadi.exceptions.runtime; public class NoSuchEventTypeException extends NakadiBaseException { public NoSuchEventTypeException(final String message) { super(message); } public NoSuchEventTypeException(final String msg, final Exception cause) { super(msg, cause); } }...
106
601
<reponame>timgates42/googleads-python-lib #!/usr/bin/env python # # Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache....
748
614
<reponame>Nagarjunanepl/Spring-3.0 package com.in28minutes.springmvc.web.controller; import java.text.SimpleDateFormat; import java.util.Date; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.propertyeditors.Custom...
1,602
1,107
<reponame>eino/pyvista """ .. _themes_example: Control Global and Local Plotting Themes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PyVista allows you to set global and local plotting themes to easily set default plotting parameters. """ import pyvista as pv from pyvista import examples ###############################...
1,420
360
from build import models, reader from build import labels as categories from sklearn.model_selection import train_test_split as tts from sklearn.metrics import classification_report docs = reader.fileids(categories=categories) labels = [reader.categories(fileids=[fid])[0] for fid in docs] train_docs, test_docs, train...
660
374
package net.dubboclub.netty4; import com.alibaba.dubbo.common.Constants; import com.alibaba.dubbo.common.URL; import com.alibaba.dubbo.common.Version; import com.alibaba.dubbo.common.logger.Logger; import com.alibaba.dubbo.common.logger.LoggerFactory; import com.alibaba.dubbo.common.utils.NamedThreadFactory; import co...
2,697
310
package org.seasar.doma.internal.jdbc.entity; import static org.seasar.doma.internal.util.AssertionUtil.*; import java.lang.reflect.Method; import org.seasar.doma.DomaNullPointerException; import org.seasar.doma.jdbc.Config; import org.seasar.doma.jdbc.entity.EntityType; public abstract class AbstractEntityListenerC...
435
1,831
/** * Copyright (c) 2019-present, Facebook, Inc. and its affiliates. * All rights reserved. * * 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 "logdevice/common/AdminCommandTable.h" #include "logdevice/commo...
1,991
303
r"""Downloads and converts Market1501 data to TFRecords of TF-Example protos. This module downloads the Market1501 data, uncompresses it, reads the files that make up the Market1501 data and creates two TFRecord datasets: one for train and one for test. Each TFRecord dataset is comprised of a set of TF-Example protoco...
27,323
474
package org.javacord.core.entity.message; import com.fasterxml.jackson.databind.JsonNode; import org.javacord.api.entity.DiscordEntity; import org.javacord.api.entity.channel.TextChannel; import org.javacord.api.entity.message.Message; import org.javacord.api.entity.message.MessageSet; import org.javacord.core.Discord...
16,558
2,890
<reponame>amorvos/light-task-scheduler package com.github.ltsopensource.zookeeper; import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.CuratorFrameworkFactory; import org.apache.curator.framework.recipes.cache.*; import org.apache.curator.retry.ExponentialBackoffRetry; import org....
2,303
2,662
#!/usr/bin/env python # settings # Complete these as you need ############################################# # ENABLE preprocessor enabled = True # If you want to keep the temp file for inspection - pre-patch state. # THE NAME is self.tmp_file keep_temp = False # Recheck the file before patching or the next preproc...
741
3,139
<reponame>supertick/jmonkeyengine<filename>jme3-core/src/main/java/com/jme3/opencl/MappingAccess.java /* * Copyright (c) 2009-2016 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * ...
793
372
// ************************************************************************************** // File: Krb4Properties.cpp // By: <NAME> // Created: 12/02/98 // Copyright @1998 Massachusetts Institute of Technology - All rights reserved. // Description: CPP file for KrbProperties.h. Contains variables and functions /...
4,579
1,609
package com.mossle.security.client; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.PostConstruct; import com.mossle.security.impl.SpringSecurityUserAuth; import org.slf4j.Logger; import org.slf4j.LoggerFactory; imp...
744
1,041
package org.tests.sp.model.car; import org.tests.sp.model.IdEntity; import javax.persistence.Entity; import javax.persistence.Table; @Entity @Table(name = "sp_car_door") public class Door extends IdEntity { private static final long serialVersionUID = 2399600193947163469L; private String name; public Door(S...
143
2,334
package com.gjiazhe.panoramaimageview.sample; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; imp...
1,053
2,962
<reponame>stari4ek/storio<filename>storio-content-resolver/src/test/java/com/pushtorefresh/storio3/contentresolver/operations/put/PutContentValuesStub.java package com.pushtorefresh.storio3.contentresolver.operations.put; import android.content.ContentValues; import android.net.Uri; import android.support.annotation.N...
2,820
339
#include "stdafx.h" #include "HookClient.h" #include "../HookHw.h" #include "cstrike/CrossHairFix.h" void HookClient() { static bool firstRun = true; if(!firstRun) return; firstRun = false; // // detect game: const char *gamedir = pEngfuncs->pfnGetGameDirectory(); if(!gamedir) return; ...
196
518
// // XHUIKitMacro.h // PinterestExample // // Created by dw_iOS on 14-7-14. // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved. // @import UIKit; @import Foundation; #define KXHGridItemWidth (145.0 * 1) #define ...
455
318
#ifndef ARGUMENT_BASE_HXX #define ARGUMENT_BASE_HXX #include <vector> #include "argument_holder.hxx" #include "argument_name.hxx" #include "parser_error.hxx" namespace parser{ class ArgumentBase{ public: // constructor ArgumentBase(const ArgName & ,ArgumentBase * =NULL,const std::vector<ArgumentBase *...
1,000
325
<filename>std/src/main/java/org/cybergarage/upnp/std/av/server/object/DIDLLiteNode.java /****************************************************************** * * MediaServer for CyberLink * * Copyright (C) <NAME> 2003 * * File : ContentNode * * Revision: * * 10/30/03 * - first revision. * 10/26/04 * - <NAME> <<EMAIL>>...
420
3,200
<gh_stars>1000+ /** * Copyright 2021 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 b...
459
602
<gh_stars>100-1000 // // WMZPageFixAllVC.h // WMZPageController // // Created by wmz on 2021/8/11. // Copyright © 2021 wmz. All rights reserved. // #import "WMZPageController.h" NS_ASSUME_NONNULL_BEGIN @interface WMZPageFixAllVC : WMZPageController @end NS_ASSUME_NONNULL_END
118
942
<filename>tests/bson-tests.h /* * Copyright 2013 MongoDB, 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...
4,709
570
#!/usr/bin/python # -*- encoding: utf-8 -*- import os.path as osp import numpy as np import cv2 from PIL import Image import torch import torchvision.transforms as transforms from .model import BiSeNet class FaceParser: def __init__(self, device="cpu"): mapper = [0, 1, 2, 3, 4, 5, 0, 11, 12, 0, 6, 8, 7,...
573
419
#include "AnimationTarget.h" #include "System/Animation/AnimationPose.h" //------------------------------------------------------------------------- namespace KRG::Animation { bool Target::TryGetTransform( Pose const* pPose, Transform& outTransform ) const { KRG_ASSERT( m_isSet ); ...
1,296
446
<filename>ratis-test/src/test/java/org/apache/ratis/util/TestTimeDuration.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 thi...
3,885
1,143
<reponame>zhouyijiaren/commons<filename>src/python/twitter/common/java/constant.py # ================================================================================================== # Copyright 2011 Twitter, Inc. # -------------------------------------------------------------------------------------------------- # Li...
2,269