max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
764 | {"symbol": "AWX","address": "0x1EFdfC6146cAd8909817284AE99325EF1cAF623e","overview":{"en": ""},"email": "<EMAIL>","website": "https://aurus.io/","state": "NORMAL","links": {"blog": "https://medium.com/aurus-blog","twitter": "https://twitter.com/AurusOfficial","telegram": "https://t.me/AurusOfficial","github": ""}} | 114 |
1,056 | <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 Apache License, Version 2.0 (the
* ... | 3,064 |
593 | <filename>exploitable/tests/testBranchAv.c
int main(int argc, char *argv[]) {
#if defined(__arm__)
void (*p)() = (void*)0xFFFFFFFF;
p();
return 0;
#else
asm ("call *0xFFFFFFF");
#endif
return 0;
}
| 102 |
2,151 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/feature_engagement/internal/test/event_util.h"
#include "components/feature_engagement/internal/proto/event.pb.h"
#include "testing/... | 501 |
763 | <filename>projects/batfish/src/test/java/org/batfish/representation/juniper/FwFromFragmentOffsetTest.java
package org.batfish.representation.juniper;
import static org.junit.Assert.assertEquals;
import com.google.common.collect.ImmutableSet;
import org.batfish.datamodel.HeaderSpace;
import org.batfish.datamodel.SubRa... | 367 |
479 | <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,624 |
4,452 | <gh_stars>1000+
{
"scripts": {
"start:dev": "run-p build:*:watch start:docusaurus",
"start:docusaurus": "docusaurus-start",
"build:styles": "sass sass/main.scss static/css/custom.css",
"build:styles:watch": "sass sass/main.scss static/css/custom.css --watch",
"build": "run-s build:styles build:doc... | 300 |
667 | /**
* Tencent is pleased to support the open source community by making Tseer available.
*
* Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
* in compliance with the License. You may obtain a... | 558 |
332 | #ifndef SLACK_H
#define SLACK_H
#include <stdbool.h>
#include "json-actor-boxed.h"
#include "common.h"
#include "logconf.h"
/* see specs/slack/ for specs */
#include "specs-code/slack/one-specs.h"
#define SLACK_BASE_API_URL "https://slack.com/api"
struct slack; /* forward declaration */
/** @todo generate as specs... | 1,122 |
861 | <gh_stars>100-1000
/*
* Copyright 2016-2020 <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 applicabl... | 2,155 |
354 | <filename>libs/libpeconv/libpeconv/include/peconv/buffer_util.h
#pragma once
#include <Windows.h>
namespace peconv {
//validates pointers, checks if the particular field is inside the given buffer
bool validate_ptr(const LPVOID buffer_bgn, SIZE_T buffer_size, const LPVOID field_bgn, SIZE_T field_size);
//-... | 526 |
903 | package org.develnext.jphp.core.tokenizer.token.expr.value.macro;
import org.develnext.jphp.core.tokenizer.TokenType;
import org.develnext.jphp.core.tokenizer.TokenMeta;
public class FileMacroToken extends MacroToken {
public FileMacroToken(TokenMeta meta) {
super(meta, TokenType.T_FILE);
}
}
| 117 |
1,444 | <reponame>nnadams/mage
package mage.cards.p;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.effects.Effect;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.SacrificeEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.cards.CardsI... | 1,221 |
940 | <reponame>sicara/mentat
import numpy as np
from tf_explain.callbacks.vanilla_gradients import VanillaGradientsCallback
def test_should_call_vanilla_gradients_callback(
random_data, convolutional_model, output_dir, mocker
):
images, labels = random_data
score_model = convolutional_model
vanilla_gradi... | 755 |
1,066 | /*
* Copyright 2017 GcsSloop
*
* 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 w... | 1,979 |
5,169 | {
"name": "OGSwitch",
"version": "1.0",
"summary": "Switch Control for macOS",
"homepage": "https://github.com/OskarGroth/OGSwitch",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "https://github.com/OskarGroth/OGSwitch.git",
... | 276 |
14,090 | <reponame>Zander-Davidson/Neural-Network-Exercise
"""
relu
~~~~
Plots a graph of the squashing function used by a rectified linear
unit."""
import numpy as np
import matplotlib.pyplot as plt
z = np.arange(-2, 2, .1)
zero = np.zeros(len(z))
y = np.max([zero, z], axis=0)
fig = plt.figure()
ax = fig.add... | 232 |
994 | <reponame>IT-Enthusiast-Nepal/Windows-Driver-Frameworks
//
// Copyright (C) Microsoft. All rights reserved.
//
#ifndef _PNPPRIVKM_H_
#define _PNPPRIVKM_H_
// public headers
#include "WdfDmaEnabler.h"
// private headers
#include "FxIrpQueue.hpp"
#include "FxCallback.hpp"
// <FxSystemWorkItem.hpp>
__drv_functionCl... | 799 |
1,091 | import tkinter as tk
border_effects = {
"flat": tk.FLAT,
"sunken": tk.SUNKEN,
"raised": tk.RAISED,
"groove": tk.GROOVE,
"ridge": tk.RIDGE,
}
window = tk.Tk()
for relief_name, relief in border_effects.items():
frame = tk.Frame(master=window, relief=relief, borderwidth=5)
frame.pack(si... | 191 |
2,706 | //============================================================================
//
// SSSS tt lll lll
// SS SS tt ll ll
// SS tttttt eeee ll ll aaaa
// SSSS tt ee ee ll ll aa
// SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emula... | 641 |
1,768 | <filename>tlatools/org.lamport.tlatools/test/tlc2/tool/distributed/fp/FPSetManagerTest.java
/*******************************************************************************
* Copyright (c) 2016 Microsoft Research. All rights reserved.
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to... | 2,155 |
371 | /***************************************************************
//工程名称 : MVCDemo
//文件名称 : MainViewController.h
//创建时间 : 2017/3/1
//创建作者 : JXT
//版权归属 : 霖溦
//文件描述 :
***************************************************************/
#import "BaseViewController.h"
@interface MainViewController : BaseViewController... | 128 |
897 | # Python program to check collinearity of three given points
# We can calculate the area formed by the three points, and if the area is zero then they lie on a same line.
def check_collinear(ax, ay, bx, by, cx, cy):
""" The Area of a Triangle formed by three points (x1, y1), (x2, y2), (x3, y3)
is determined by... | 506 |
2,151 | /**************************************************************************
*
* Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Softwa... | 1,149 |
12,366 | <reponame>Matir/tink
/**
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 1,728 |
525 | package com.zzzmode.appopsx.common;
import android.os.ParcelFileDescriptor;
import java.io.FileDescriptor;
import java.io.IOException;
/**
* Created by zl on 2018/1/9.
*/
public class ParamsFixer {
public static CallerMethod wrap(CallerMethod caller) {
Object[] params = caller.getParams();
if... | 744 |
4,879 | /*
Copyright (c) 2015, Project OSRM contributors
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 list
of conditions and the f... | 500 |
323 | # encoding: UTF-8
'''
本文件中包含的是CTA模块的组合回测引擎,回测引擎的API和CTA引擎一致,
可以使用和实盘相同的代码进行回测。
华富资产 李来佳
'''
from __future__ import division
import sys
import os
import importlib
import csv
import copy
import pandas as pd
import traceback
import numpy as np
import logging
import socket
import zlib
import pickle
from bson import binar... | 65,329 |
598 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#ifndef _MARO_BACKENDS_RAW_SNAPSHOTLIST_
#define _MARO_BACKENDS_RAW_SNAPSHOTLIST_
#include <map>
#include <vector>
#include <string>
#include <iostream>
#include "common.h"
#include "attribute.h"
#include "node.h"
#include "frame.h"
using n... | 3,446 |
1,577 | <filename>src/main/java_jdbc/com/uber/profiling/reporters/util/JdbcUtils.java
/*
* Copyright (c) 2020 Uber Technologies, 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
*
* ht... | 3,930 |
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... | 1,358 |
474 | package org.javacord.api.listener.channel.server.voice;
import org.javacord.api.event.channel.server.voice.ServerStageVoiceChannelChangeTopicEvent;
import org.javacord.api.listener.GloballyAttachableListener;
import org.javacord.api.listener.ObjectAttachableListener;
import org.javacord.api.listener.server.ServerAttac... | 236 |
10,125 | /** @file
Copyright (C) 2012, tiamo. All rights reserved.<BR>
Copyright (C) 2014, dmazar. All rights reserved.<BR>
Copyright (C) 2018, savvas. All rights reserved.<BR>
Copyright (C) 2018, Download-Fritz. All rights reserved.<BR>
Copyright (C) 2019-2020, vit9696. All rights reserved.<BR>
This program and the accomp... | 3,200 |
388 | <gh_stars>100-1000
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import aiounittest
from botframework.connector.models import (
MessageActionsPayloadFrom,
MessageActionsPayloadBody,
MessageActionsPayloadAttachment,
MessageActionsPayloadMention,
Messag... | 2,060 |
1,467 | <filename>shared_model/interfaces/query_responses/transactions_page_response.hpp
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_SHARED_MODEL_TRANSACTIONS_PAGE_RESPONSE_HPP
#define IROHA_SHARED_MODEL_TRANSACTIONS_PAGE_RESPONSE_HPP
#include "interfaces... | 508 |
346 | <reponame>nsbrajapaksha/android-graphics-demo
package com.sqisland.android.graphics_demo.util;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
public abstract class ImageUtil {
public static Bitmap createCircle(int width, int height) {
... | 246 |
1,408 | <gh_stars>1000+
/*
* Copyright (c) 2020, MediaTek Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <assert.h>
#include <common/debug.h>
#include <drivers/delay_timer.h>
#include <lib/mmio.h>
#include <mcucfg.h>
#include <mtspmc.h>
#include <mtspmc_private.h>
void mcucfg_disable_g... | 1,790 |
743 | {
"$schema": "https://raw.githubusercontent.com/microsoft/AdaptiveCards/6f39aedce45864ae1067ed44a5551dc973790bb5/source/nodejs/typed-schema/schema/lib/Type.json",
"isAbstract": true,
"description": "Marker interface for inlines"
}
| 91 |
647 |
trick.real_time_enable()
trick.exec_set_terminate_time(5.0)
| 28 |
471 | <filename>test-old/test_mujoco_pusher.py
from surreal.env.mujocomanip.default_env_configs import *
from surreal.env.mujocomanip.default_object_configs import *
from surreal.env.mujocomanip.mujocomanip_envs import *
import copy
import numpy as np
env_config = DEFAULT_PUSHER_CONFIG
env_config.display = True
object_confi... | 428 |
11,356 | <filename>deps/src/boost_1_65_1/boost/spirit/home/support.hpp
/*=============================================================================
Copyright (c) 2001-2011 <NAME>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICE... | 518 |
8,865 | <gh_stars>1000+
/* ===-- floatundixf.c - Implement __floatundixf ---------------------------===
*
* The LLVM Compiler Infrastructure
*
* This file is dual licensed under the MIT and the University of Illinois Open
* Source Licenses. See LICENSE.TXT for details.
*
* ===------------------------... | 521 |
392 | /*******************************************************************************
* Copyright (c) 2015 - 2017
*
* 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... | 665 |
8,772 | package org.apereo.cas.authentication.mfa.trigger;
import org.apereo.cas.authentication.principal.Service;
import org.apereo.cas.configuration.CasConfigurationProperties;
import lombok.val;
import org.apache.commons.io.FileUtils;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
import o... | 998 |
571 | <filename>chapter15/wildfly-camel-war/src/main/java/camelinaction/InventoryConverter.java
package camelinaction;
import camelinaction.inventory.UpdateInventoryInput;
import org.apache.camel.Converter;
/**
* A Camel converter which can convert from CSV (String) to model objects.
* <p/>
* By annotation this class wi... | 478 |
1,056 | <reponame>Antholoj/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 ... | 1,837 |
4,047 | #include <glib-object.h>
#pragma once
#define BAR_TYPE_BAR (bar_bar_get_type())
G_DECLARE_FINAL_TYPE (BarBar, bar_bar, BAR, BAR, GObject)
int bar_bar_return_success(void);
| 77 |
1,056 | <reponame>timfel/netbeans<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 Apache Lice... | 3,471 |
742 | /*------------------------------------
///\ Plywood C++ Framework
\\\/ https://plywood.arc80.com/
------------------------------------*/
#pragma once
#include <ply-reflect/Core.h>
namespace ply {
// The lowest range is reserved for built-in FormatDescriptors
static const u32 FormatID_StartUserRange = 1000;
enu... | 1,870 |
2,151 | <reponame>Scopetta197/chromium<filename>third_party/mesa/MesaLib/src/gallium/state_trackers/vega/asm_filters.h
/**************************************************************************
*
* Copyright 2009 VMware, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a... | 1,962 |
949 | /*
* 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,033 |
1,673 |
/* bug #1094 - Nested struct/union initializers don't compile */
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdint.h>
typedef uint16_t u16;
typedef uint8_t u8;
struct WW {
int a : 4;
struct {
unsigned int b : 4;
unsigned int c : 8;
} x[2];
} wwqq = { 0, {2, 5, {... | 1,100 |
823 | <filename>problem-violations/src/test/java/org/zalando/problem/violations/ConstraintViolationProblemModuleTest.java
package org.zalando.problem.violations;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.MapperFeature;
import com.fasterxml.jackson.databind.ObjectMapper;... | 1,013 |
3,066 | <gh_stars>1000+
/*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you ma... | 4,816 |
463 | <filename>scripts/prepare_testing_files.py
import sys
import os
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
import argparse
import glob
import csv
import numpy as np
from config.AudioConfig import AudioConfig
def mkdir(path):
if not os.path.exists(path):
os.makedirs(path)
def proc_frames... | 2,428 |
435 | <reponame>amaajemyfren/data
{
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "Have you ever struggled with finding ways to present data visualizations\nand/or results to non-technical audiences in a coherent and engaging\nmanner? In this talk, I'll detail how I overcame suc... | 679 |
2,860 | {"QGgk6etEB5eSvqY2ZuDMmg==":"demo.gif","+xEDS5NSUg9SHc2Mg8OnuA==":"mbr-1620x1080.jpg","f0xtCOtiw5RjCzDyQVo+/w==":"mbr-719x1080.jpg","FOQetHuWr16GxoiOogp+Tg==":"mbr-1-1620x1080.jpg"} | 115 |
432 | from .. import rman_config
from .. import rman_bl_nodes
import bpy
import json
import pprint
def GetConfigurablePanels():
'''Return the names of RenderForBlender panels that are configurable.
Example:
import RenderManForBlender.rfb_api as rfb_api
rfb_api.GetConfigurablePanels()
Returns:
... | 1,239 |
17,703 | <reponame>giantcroc/envoy<filename>test/common/config/sotw_subscription_state_test.cc
#include "envoy/config/endpoint/v3/endpoint.pb.h"
#include "envoy/config/endpoint/v3/endpoint.pb.validate.h"
#include "source/common/config/resource_name.h"
#include "source/common/config/utility.h"
#include "source/common/config/xds... | 4,911 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.postgresql.models;
import com.azure.core.util.Context;
import com.azure.resourcemanager.postgresql.fluent.models.ServerKeyInner;... | 2,438 |
5,908 | package com.example;
import java.util.stream.Collectors;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.client.solrj.ut... | 464 |
2,134 | <filename>proto-vjoystick/vjoystick.h
/* Copyright (c) 2016, <NAME> <<EMAIL>>
* Permission to use, copy, modify, and/or distribute this
* software for any purpose with or without fee is hereby granted,
* provided that the above copyright notice and this permission
* notice appear in all copies.
*/
#pragma once
#i... | 503 |
831 | <reponame>phpc0de/idea-android<gh_stars>100-1000
/*
* Copyright (C) 2017 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/... | 867 |
323 | <reponame>humstarman/linkerd-examples<gh_stars>100-1000
package io.buoyant.http.classifiers;
import io.buoyant.linkerd.ResponseClassifierInitializer;
/**
* This config initializer is loaded by linkerd at startup and registers the
* `HeaderClassifierConfig` class under the id "io.buoyant.headerClassifier".
* This t... | 287 |
360 | /*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... | 29,238 |
341 | <gh_stars>100-1000
from decimal import Decimal
from typing import Optional, Union
from .. import xdr as stellar_xdr
from ..asset import Asset
from ..muxed_account import MuxedAccount
from .operation import Operation
from .utils import check_amount
__all__ = ["Payment"]
class Payment(Operation):
"""The :class:`P... | 1,059 |
1,686 | // Copyright (c) 2020 The Chromium Embedded Framework 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 "libcef/browser/media_router/media_source_impl.h"
CefMediaSourceImpl::CefMediaSourceImpl(
const media_router::MediaSo... | 224 |
10,225 | package io.quarkus.extest.runtime.config;
import org.eclipse.microprofile.config.spi.Converter;
public class YesNoConverter implements Converter<Boolean> {
public YesNoConverter() {
}
@Override
public Boolean convert(String s) {
if (s == null || s.isEmpty()) {
return false;
... | 255 |
1,056 | <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 Apache License, Version 2.0 (the
* ... | 3,481 |
3,287 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 197 |
2,637 | <filename>vendors/nordic/nRF5_SDK_15.2.0/components/nfc/ndef/connection_handover/ble_pair_lib/nfc_ble_pair_lib.c
/**
* Copyright (c) 2016 - 2018, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the... | 12,252 |
368 | <reponame>irlanrobson/bounce<filename>include/bounce/common/graphics/color.h
/*
* Copyright (c) 2016-2019 <NAME>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is grante... | 559 |
14,668 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.android_webview;
import org.chromium.android_webview.common.SafeModeAction;
import org.chromium.android_webview.variations.Variation... | 273 |
2,208 | <filename>pybrain/optimization/populationbased/coevolution/__init__.py
from .coevolution import Coevolution
from .competitivecoevolution import CompetitiveCoevolution
from .multipopulationcoevolution import MultiPopulationCoevolution | 58 |
2,727 | <reponame>jiangkang/ndk-samples<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/licen... | 704 |
516 | <reponame>XinXianChen/xpocket
package com.perfma.xlab.xpocket.plugin.loader;
import com.perfma.xlab.xpocket.plugin.base.NamedObject;
import com.perfma.xlab.xpocket.plugin.context.FrameworkPluginContext;
import java.lang.instrument.Instrumentation;
import java.util.Set;
/**
* @author gongyu <<EMAIL>>
*/
public int... | 768 |
381 | {
"name": "livewire-alert",
"version": "2.1.9",
"description": "This package provides a simple alert utilities for your livewire components",
"main": "resources/js/index.js",
"repository": "<EMAIL>:jantinnerezo/livewire-alert.git",
"author": "<NAME> <<EMAIL>>",
"license": "MIT",
"scripts": {
"dev": ... | 238 |
634 | <reponame>halotroop2288/consulo
/*
* Copyright 2000-2017 JetBrains s.r.o.
*
* 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 re... | 1,588 |
1,062 | <reponame>larkov/MailTrackerBlocker
//
// Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import "_MTMStoredMetaMailbox.h"
@interface _MTMDraftsMailbox : _MTMStoredMetaMailbox
{
}
- (id)severalMessagesFormatString; // IMP=0x00000001... | 262 |
2,707 | <reponame>ronaldocan/jetlinks-community
package org.jetlinks.community.device.enums;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.hswebframework.web.dict.EnumDict;
import org.jetlinks.core.message.DeviceMessage;
import org.jetlinks.core.message.Me... | 1,062 |
1,444 | <filename>Mage.Sets/src/mage/cards/p/PredatorDragon.java<gh_stars>1000+
package mage.cards.p;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.effects.common.DevourEffect.DevourFactor;
import mage.abilities.keyword.DevourAbility;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyw... | 488 |
2,151 | /*
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 749 |
1,192 | //===-- RegisterPressure.cpp - Dynamic Register Pressure ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 13,962 |
362 | // Copyright (c) 2016, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "tmpfs_volum.h"
#include "protocol/galaxy.pb.h"
#include "mounter.h"
#include "util/error_code.h"
#include "collector/collector_engine.h"
#include... | 1,071 |
1,080 | #pragma once
/* name type description */
#define PROCESS_SMAP_METRIC(ACTION) \
ACTION( smap_create, METRIC_COUNTER, "# smap create requests" )\
ACTION( smap_create_exist, METRIC_COUNTER, "# smap already... | 1,968 |
36,552 | // Copyright 2021 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 469 |
864 | /**********************************************************************************************************************
This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich.
Licensed under the BSD-2 license (see LICENSE file in main directory)
****************... | 1,578 |
1,191 | <filename>android/modules/android/src/java/ti/modules/titanium/android/EnvironmentModule.java<gh_stars>1000+
package ti.modules.titanium.android;
import org.appcelerator.kroll.KrollModule;
import org.appcelerator.kroll.annotations.Kroll;
import android.os.Environment;
@Kroll.module(parentModule = AndroidModule.class... | 590 |
310 | {
"name": "Metal",
"description": "An API for working with 3D graphics.",
"url": "https://en.wikipedia.org/wiki/Metal_%28API%29"
}
| 51 |
1,444 | package mage.abilities.effects.common.continuous;
import mage.abilities.Ability;
import mage.abilities.effects.ContinuousEffectImpl;
import mage.abilities.effects.common.ChooseCreatureTypeEffect;
import mage.constants.*;
import mage.game.Game;
import mage.game.permanent.Permanent;
public class AddChosenSubtypeEffect ... | 441 |
399 | <reponame>Mu-L/Addax
{
"name": "rediswriter",
"class": "com.wgzhao.addax.plugin.writer.rediswriter.RedisWriter",
"description": "Use jedis connect to redis, execute restore command",
"developer": "alibaba"
} | 81 |
22,481 | """Support for XBee Zigbee lights."""
import voluptuous as vol
from homeassistant.components.light import LightEntity
from . import PLATFORM_SCHEMA, XBeeDigitalOut, XBeeDigitalOutConfig
from .const import CONF_ON_STATE, DEFAULT_ON_STATE, DOMAIN, STATES
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
{vol.Optional(CONF... | 247 |
327 | package com.honvay.cloud.framework.criteria.parser;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.honvay.cloud.framework.criteria.CriteriaContext;
import com.honvay.cloud.framework.criteria.annotation.In;
import com.honvay.cola.cloud.framework.util.ConvertUtils;
import com.honvay.cola.cloud.framewor... | 1,594 |
665 | <reponame>kstepanmpmg/mldb
// This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
//
// centroid_feature_generator_test.cc
// <NAME> - 19 Jun 2013
// Copyright (c) 2013 mldb.ai inc. All rights reserved.
//
#define BOOST_TEST_MAIN
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hp... | 1,360 |
815 | // -*- c++ -*-
/*=========================================================================
Program: Visualization Toolkit
Module: vtkMomentGlyphs.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is dis... | 1,039 |
399 | <reponame>adoug/3D-Graphics-Rendering-Cookbook
#pragma once
#include "shared/vkFramework/CompositeRenderer.h"
#include "shared/vkFramework/VulkanShaderProcessor.h"
#include "shared/vkFramework/Barriers.h"
const int SSAOWidth = 0; // smaller SSAO buffer can be used 512
const int SSAOHeight = 0; // 512;
struct SSAOPro... | 1,493 |
497 | <reponame>LiuStart/SwipeMenu
package com.tubb.smrv.demo;
import android.app.Activity;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
* Created by tubingbing on 16/4/11.
*/
public class BaseActivity extends Activity{
Random random = new Random();
protected List<User> getUser... | 496 |
602 | <reponame>kaxap/PySyncObj
import socket
from .poller import POLL_EVENT_TYPE
from .tcp_connection import TcpConnection, _getAddrType
class SERVER_STATE:
UNBINDED = 0,
BINDED = 1
class TcpServer(object):
def __init__(self, poller, host, port, onNewConnection,
sendBufferSize = 2 ** 13,
... | 1,571 |
1,600 | <filename>tests/transforms_tests/image_tests/test_pca_lighting.py<gh_stars>1000+
import unittest
import numpy as np
from chainer import testing
from chainercv.transforms import pca_lighting
class TestPCALighting(unittest.TestCase):
def test_pca_lighting(self):
img = np.random.uniform(size=(3, 48, 32))
... | 284 |
438 | <filename>models/ensemble.py
import torch
import torch.nn as nn
class Ensemble(nn.Module):
def __init__(self, models, name=None):
super(Ensemble, self).__init__()
if name is not None:
self.name = name
else:
self.name = "%s_ensemble" % models[0].name
self.... | 256 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.