max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
397 | <filename>robosuite/models/objects/composite_body/__init__.py
from .hinged_box import HingedBoxObject
| 36 |
684 | <filename>app/src/main/java/com/emmaguy/cleanstatusbar/ToggleReceiver.java<gh_stars>100-1000
package com.emmaguy.cleanstatusbar;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class ToggleReceiver extends BroadcastReceiver {
private static final Str... | 245 |
12,366 | // 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 or agreed to in w... | 738 |
2,542 | <reponame>gridgentoo/ServiceFabricAzure
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------------------------------------------------... | 988 |
190,993 | /* Copyright 2019 The TensorFlow 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 applicable law or a... | 1,982 |
1,414 | /**
* Glide64 Video Plugin - winlnxdefs.h
* Copyright (C) 2002 Dave2001
*
* Mupen64Plus homepage: http://code.google.com/p/mupen64plus/
*
* This program is free software; you can redistribute it and/
* or modify it under the terms of the GNU General Public Li-
* cence as published by the Free Software Foundati... | 587 |
1,963 | /*
*******************************************************************************
* Copyright (c) 2021, STMicroelectronics
* All rights reserved.
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may ... | 2,809 |
327 | <reponame>TaffyBlog/jQWidgets
{
"main": "react_jqxtree.umd.js",
"module": "react_jqxtree.esm.js",
"typings": "react_jqxtree.d.ts",
"name": "jqwidgets-react/jqxtree",
"sideEffects": false
} | 108 |
389 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright 2020 Adobe
~
~ 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... | 2,573 |
764 | <gh_stars>100-1000
{"symbol": "JWL","address": "0x8275eBF521Dc217aa79C88132017A5BCEf001dd9","overview":{"en": ""},"email": "","website": "https://jewelpay.org/","state": "NORMAL","links": {"blog": "https://medium.com/@jewelpay","twitter": "https://twitter.com/jewelpay_org","telegram": "https://t.me/jewelpay","github": ... | 138 |
410 | <gh_stars>100-1000
{
"makeDropdownMenuItems": {
"close": "Close Pane",
"untitledTab": "untitled",
"noTabs": "<No Tabs>"
},
"contextMenu": {
"close": "Close",
"closeOthers": "Close Others",
"closeAll": "Close All",
"verticalSplit": "Vertical Split",
"horizontalSpl... | 156 |
396 | package com.mapbox.turf;
import com.mapbox.geojson.Feature;
import com.mapbox.geojson.FeatureCollection;
import com.mapbox.geojson.GeometryCollection;
import com.mapbox.geojson.LineString;
import com.mapbox.geojson.MultiLineString;
import com.mapbox.geojson.MultiPoint;
import com.mapbox.geojson.MultiPolygon;
import co... | 13,084 |
1,825 | package com.github.unidbg.debugger.gdb;
import com.github.unidbg.Emulator;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
class SetThreadCommand implements GdbStubCommand {
private static final Log log = LogFactory.getLog(SetThreadCommand.class);
@Override
public bo... | 399 |
388 | #pragma once
enum
{
avCapturePermissionUnknown = 0,
avCapturePermissionGranted = 1,
avCapturePermissionDenied = 2,
};
enum
{
avVideoCapture = 1,
avAudioCapture = 2,
};
extern "C" int UnityGetAVCapturePermission(int captureType);
extern "C" void UnityRequestAVCapturePermission(int captureType);
| 109 |
319 | <reponame>ajmadsen/magnum
# 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, soft... | 7,965 |
2,109 | <reponame>zaza568/yo
#!/usr/bin/python
# AxCrypt 1.x encrypted file parser for JtR
# 2016 by Fist0urs <eddy.maaalou at gmail.com>.
# This software is Copyright (c) 2016, Fist0urs <eddy.maaalou at gmail.com>,
# and it is hereby released to the general public under the following terms:
# Redistribution and use in sourc... | 1,405 |
1,844 | """Log facilitator
"""
import os
import sys
class Log:
"""Create a log instance on a log file
"""
def __init__(self, path, out=sys.stdout):
self.out = out
self.fp = open(path, "a")
assert self.fp, "Unable to open log file"
"""Log a new message to the opened log file, and op... | 245 |
543 | <gh_stars>100-1000
package com.riiablo.table.schema;
import com.riiablo.table.Injector;
public class MonStatsInjectorImpl implements Injector<MonStats, Object> {
@Override
public MonStats inject(Object manifest, MonStats record) {
throw new UnsupportedOperationException();
}
}
| 93 |
679 | <filename>main/odk/examples/java/Inspector/Introspector.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
* regar... | 11,849 |
368 | <filename>mac/TeamTalk/interface/UserData/DDGroupInfoManager.h
//
// DDGroupInfoManager.h
// Duoduo
//
// Created by 独嘉 on 14-3-4.
// Copyright (c) 2014年 zuoye. All rights reserved.
//
#import <Foundation/Foundation.h>
@class MTGroupEntity,DDGroupDataWindow,DDGroupDataModule;
@interface DDGroupInfoManager : NSObje... | 245 |
432 | /*-
* Written by: <NAME>
* Copyright (c) 2002 Adaptec Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notic... | 2,448 |
3,084 | <reponame>ixjf/Windows-driver-samples<filename>wpd/WpdMultiTransportDriver/Device.cpp<gh_stars>1000+
#include "stdafx.h"
#include "Device.h"
#include "WpdMultiTransportDriver_i.c"
#include "Device.tmh"
STDMETHODIMP_(HRESULT)
CDevice::OnD0Entry(_In_ IWDFDevice* /*pDevice*/,
WDF_POWER_DE... | 10,571 |
3,651 | /*
*
* * Copyright 2010-2016 OrientDB LTD (info(-at-)orientdb.com)
* *
* * 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... | 762 |
634 | # %% [markdown]
# # Decision tree for regression
#
# In this notebook, we present how decision trees are working in regression
# problems. We show differences with the decision trees previously presented in
# a classification setting.
#
# First, we load the penguins dataset specifically for solving a regression
# probl... | 1,622 |
8,027 | <filename>src/com/facebook/buck/android/toolchain/ndk/NdkCxxPlatformCompiler.java<gh_stars>1000+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of th... | 518 |
479 | <filename>lib/antlr-2.7.5/examples/python/xml/xml.py
import sys
import antlr
import codecs
import xml_l
def warn(msg):
print >>sys.stderr,"warning:",msg
sys.stderr.flush()
def error(msg):
print >>sys.stderr,"got error:",msg
sys.stderr.flush()
### Xml handling depends very much on whether
### your te... | 397 |
333 | <gh_stars>100-1000
/* For copyright information please refer to files in the COPYRIGHT directory
*/
#define MK_TRANSIENT_PTR(type, f)
#define MK_TRANSIENT_VAL(type, f, val)
#define PARAMETER(T)
#define MK_VAL(type, f)
#define MK_PTR(type, f)
#define MK_PTR_TVAR(f, T)
#define MK_PTR_TAPP(type, f, cpr)
#define M... | 533 |
1,592 | <gh_stars>1000+
#globalVars.py
#A part of NonVisual Desktop Access (NVDA)
#Copyright (C) 2006-2007 NVDA Contributors <http://www.nvda-project.org/>
#This file is covered by the GNU General Public License.
#See the file COPYING for more details.
"""global variables module
@var foregroundObject: holds the current f... | 451 |
809 | <reponame>nikitavlaev/embox
/**
* @file lthread_test.c
* @brief simple test for lthreads
*
* @author <NAME>
* @date 16.02.2014
*/
#include <util/err.h>
#include <embox/test.h>
#include <kernel/sched.h>
#include <kernel/sched/schedee_priority.h>
#include <kernel/lthread/lthread.h>
#include <kernel/time/ktime.h>... | 1,063 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Fienvillers","circ":"4ème circonscription","dpt":"Somme","inscrits":453,"abs":188,"votants":265,"blancs":20,"nuls":7,"exp":238,"res":[{"nuance":"FN","nom":"<NAME>","voix":121},{"nuance":"REM","nom":"<NAME>","voix":117}]} | 109 |
378 | <reponame>puneethps/tomee<gh_stars>100-1000
/**
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache L... | 1,938 |
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 ... | 699 |
448 | <filename>Test/qbss_benchmark/liblfds711_modulo/inc/liblfds711.h
#ifndef LIBLFDS711_H
/***** defines *****/
#define LIBLFDS711_H
/***** pragmas on *****/
#pragma warning( push )
#pragma warning( disable : 4324 ) // TRD : 4324 disables MSVC warnings for structure alig... | 729 |
4,772 | <reponame>fjacobs/spring-data-examples
package example.repo;
import example.model.Customer834;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer834Repository extends CrudRepository<Customer834, Long> {
List<Customer834> findByLastName(String lastName);
}
| 103 |
364 | package com.jslsolucoes.nginx.admin.agent.client.api.impl.ping;
import java.util.concurrent.ScheduledExecutorService;
import com.jslsolucoes.nginx.admin.agent.client.api.NginxAgentClientApiBuilder;
public class NginxPingBuilder implements NginxAgentClientApiBuilder {
private ScheduledExecutorService scheduledExecu... | 319 |
14,668 | <filename>ios/net/url_test_util.cc
// Copyright 2019 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 "ios/net/url_test_util.h"
#include "url/gurl.h"
namespace net {
std::string GetContentAndFragmentForUrl(con... | 147 |
347 | package org.ovirt.engine.core.bll;
import java.util.List;
import javax.enterprise.inject.Typed;
import org.ovirt.engine.core.compat.Guid;
import org.ovirt.engine.core.compat.backendcompat.CommandExecutionStatus;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* A callback for commands that are executi... | 1,047 |
1,342 | <filename>app/src/main/java/com/google/audio/StreamingAudioEncoder.java
/*
* Copyright 2019 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
*
* https://www.apache.org/li... | 7,378 |
429 | <reponame>Dennisbonke/toaruos<filename>base/usr/include/strings.h<gh_stars>100-1000
#pragma once
#include <_cheader.h>
#include <stdlib.h>
_Begin_C_Header
extern int strcasecmp(const char *s1, const char *s2);
extern int strncasecmp(const char *s1, const char *s2, size_t n);
_End_C_Header
| 121 |
453 | package com.waylau.spring.boot.elasticsearch.domain;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlRootElement;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
/**
* Blog.
*
* @since 1.0.0 2017年3月5日
* @author <a href="https:/... | 604 |
30,023 | """Tests for button platform."""
from homeassistant.components import flux_led
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN
from homeassistant.components.flux_led.const import DOMAIN
from homeassistant.const import ATTR_ENTITY_ID, CONF_HOST, CONF_NAME
from homeassistant.core import HomeAssistant
... | 876 |
2,151 | // 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 IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_TOUCH_TO_SEARCH_PERMISSIONS_MEDIATOR_H_
#define IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_TOUCH_TO_SEARCH_PE... | 817 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.communication.phonenumbers.models;
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonPrope... | 1,463 |
337 | <reponame>acheong08/dsniff<filename>tcp_raw.c
/*
* tcp_raw.c
*
* Copyright (c) 2000 <NAME> <<EMAIL>>
*
* $Id: tcp_raw.c,v 1.10 2001/03/15 08:33:04 dugsong Exp $
*/
#include "config.h"
#include <sys/types.h>
#include <sys/uio.h>
#include <netinet/in.h>
#include <time.h>
#include <err.h>
#include <libnet.h>
#inc... | 2,401 |
403 | <reponame>sdroege/node-gtk
#pragma once
#include <nan.h>
#include <node.h>
#include <girepository.h>
#include <glib.h>
#include <cairo.h>
namespace GNodeJS {
namespace Cairo {
class Glyph: public Nan::ObjectWrap {
public:
static Nan::Persistent<v8::FunctionTemplate> constructorTemplate;
static Nan::Pers... | 286 |
4,879 | <reponame>vicpopov/omim
package com.mapswithme.maps.purchase;
public interface BillingRequest
{
void execute();
}
| 41 |
10,225 | package io.quarkus.undertow.test;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
@WebListener
public class AnnotatedListener implements ServletContextListener {
@Override
public void contextInitialized(ServletContextEvent sce... | 130 |
1,269 | package com.chiclaim.dagger.sample;
public interface Callback<T> {
void onSuccess(T data);
void onFailed(String errorMsg);
}
| 50 |
5,279 | <filename>runners/google-cloud-dataflow-java/worker/src/test/java/org/apache/beam/runners/dataflow/worker/counters/CounterTest.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... | 6,420 |
318 | package org.apache.maven.surefire.junit;
/*
* 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 Lic... | 633 |
524 | <filename>core/tools/win32/system.win32.cpp
#include "stdafx.h"
#include <lm.h>
#include "../system.h"
#include "dll.h"
#include "../../profiling/profiler.h"
#pragma comment(lib, "Rpcrt4.lib")
#pragma comment(lib, "netapi32.lib")
namespace fs = boost::filesystem;
CORE_TOOLS_SYSTEM_NS_BEGIN
namespace
... | 4,103 |
852 | <reponame>ckamtsikis/cmssw<gh_stars>100-1000
import FWCore.ParameterSet.Config as cms
from DQMOffline.Trigger.dijetMonitoring_cfi import dijetMonitoring
DiPFjetAve40_Prommonitoring = dijetMonitoring.clone()
DiPFjetAve40_Prommonitoring.FolderName = cms.string('HLT/JME/Jets/AK4/PF/HLT_DiPFJetAve40/')
DiPFjetAve40_Prommo... | 1,096 |
615 | #include "Sqlite.h"
#include "catch.hpp"
#include <string>
#include <vector>
#include "SqliteError.h"
#include "TempDir.h"
#include "CaptureLog.h"
TEST_CASE("opens databases", "[Sqlite]") {
TempDir tempDir;
CaptureLog log;
Sqlite sqlite(log);
auto dbPath = tempDir.path + "/db.sqlite";
SECTION("c... | 1,646 |
578 | <filename>src/backend/job-execute/service-job-execute/src/main/java/com/tencent/bk/job/execute/engine/gse/model/GSEFileTaskResult.java<gh_stars>100-1000
/*
* Tencent is pleased to support the open source community by making BK-JOB蓝鲸智云作业平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rig... | 3,892 |
14,668 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_IOS_APP_HOST_SETUP_FOOTER_VIEW_H_
#define REMOTING_IOS_APP_HOST_SETUP_FOOTER_VIEW_H_
#import <UIKit/UIKit.h>
// The view with the "Emai... | 172 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 2,533 |
1,947 | #include "test.h"
#include <iostream>
#include <stdexcept>
#include "midgard/distanceapproximator.h"
#include "midgard/encoded.h"
#include "midgard/logging.h"
#include "midgard/util.h"
#include "tyr/actor.h"
#if !defined(VALHALLA_SOURCE_DIR)
#define VALHALLA_SOURCE_DIR
#endif
using namespace valhalla;
using namespa... | 2,990 |
353 | <gh_stars>100-1000
package org.nutz.plugins.nop.core.sign;
import javax.servlet.http.HttpServletRequest;
import org.nutz.log.Log;
import org.nutz.log.Logs;
/**
* 签名器
*
* @author kerbores
*
*/
public interface Signer {
public Log log = Logs.get();
/**
* 名称
*
* @return
*/
public String name();
/*... | 444 |
1,338 | <reponame>Kirishikesan/haiku
/*
* Copyright 2006, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
*/
#include "ShapeContainer.h"
#include <stdio.h>
#include <string.h>
#include <OS.h>
#include "Shape.h"
#ifdef ICON_O_MATIC
// constructor
ShapeContainerListener::Shape... | 1,386 |
1,444 | <reponame>FateRevoked/mage
package org.mage.test.cards.abilities.enters;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import mage.counters.CounterType;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* @author JRHerlehy
*/
public class GreenbeltRampagerTest exten... | 1,371 |
346 | <reponame>ZJCRT/drishti
/*!
@file EyeModelEstimator.cpp
@author <NAME>
@brief Internal eye model estimator implementation.
\copyright Copyright 2014-2016 Elucideye, Inc. All rights reserved.
\license{This project is released under the 3 Clause BSD License.}
This file contains the implementation of the... | 3,861 |
1,350 | <reponame>Manny27nyc/azure-sdk-for-java<filename>sdk/commerce/azure-resourcemanager-commerce/src/main/java/com/azure/resourcemanager/commerce/models/InfoField.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
... | 544 |
311 | <gh_stars>100-1000
/**
* Copyright 2019 The JoyQueue 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 b... | 1,001 |
1,279 | <reponame>hawflau/serverless-application-model
from integration.helpers.base_test import BaseTest
from parameterized import parameterized
class TestFunctionWithSelfManagedKafka(BaseTest):
@parameterized.expand(
[
"combination/function_with_self_managed_kafka",
"combination/function... | 456 |
428 | <reponame>radoslawcybulski/CastXML
template <typename T>
class A;
typedef A<int> start;
| 39 |
1,162 | <filename>KafkaCenter-Core/src/main/java/org/nesc/ec/bigdata/job/InitRunJob.java
package org.nesc.ec.bigdata.job;
import org.apache.commons.lang3.concurrent.BasicThreadFactory;
import org.nesc.ec.bigdata.cache.HomeCache;
import org.nesc.ec.bigdata.config.InitConfig;
import org.nesc.ec.bigdata.model.ClusterInfo;
import... | 1,803 |
637 | /*
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE-examples file in the root directory of this source tree.
*/
package com.instagram.lazyload.demoapp;
import android.app.Service;
import android.content.Intent;
import a... | 756 |
1,414 | <filename>waterbox/bsnescore/bsnes/sfc/coprocessor/dip/serialization.cpp
auto DIP::serialize(serializer& s) -> void {
s.integer(value);
}
| 55 |
971 | <filename>dl-biz/src/main/java/com/ucar/datalink/biz/utils/flinker/job/SddlJobConfigServiceImpl.java
package com.ucar.datalink.biz.utils.flinker.job;
import com.alibaba.fastjson.JSONObject;
import com.ucar.datalink.biz.meta.MetaMapping;
import com.ucar.datalink.biz.utils.flinker.FlinkerJobConfigConstant;
import com.uc... | 7,955 |
5,169 | <filename>Specs/2/3/3/MRestClient/0.1.0/MRestClient.podspec.json
{
"name": "MRestClient",
"version": "0.1.0",
"summary": "MRestClient is the HTTP client implementation library written in swift",
"description": "\"MRestClient is the HTTP client implementation library written in swift, It is small , light weight ... | 379 |
3,787 | <gh_stars>1000+
#
# Copyright 2019 The Eggroll 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
#
# Unles... | 2,358 |
854 | <gh_stars>100-1000
__________________________________________________________________________________________________
sample 100 ms submission
class Solution:
def minDeletionSize(self, A: List[str]) -> int:
remained = [1] * len(A[0])
for i in range(len(A[0]) - 2, -1, -1):
for j in range(... | 718 |
339 | <reponame>Razakhel/RaZ
#include "RaZ/Render/Renderer.hpp"
#include "RaZ/Render/Shader.hpp"
#include "RaZ/Utils/FilePath.hpp"
#include "RaZ/Utils/Logger.hpp"
#include <fstream>
#include <limits>
#include <sstream>
#include <vector>
namespace Raz {
Shader::Shader(Shader&& shader) noexcept
: m_index{ std::exchange(sh... | 1,282 |
583 | # Author: <NAME>
# Last update: 7/07/2017
from __future__ import division, print_function
from PyEMD import EEMD
import numpy as np
import pylab as plt
# Define signal
t = np.linspace(0, 1, 200)
sin = lambda x,p: np.sin(2*np.pi*x*t+p)
S = 3*sin(18,0.2)*(t-0.2)**2
S += 5*sin(11,2.7)
S += 3*sin(14,1.6)
S += 1*np.sin(4... | 470 |
331 | /**
* UITableViewCell父类
* @author 郑业强 2017-06-12 创建文件
*/
#import <UIKit/UIKit.h>
@interface BaseTableCell : UITableViewCell
@end
| 74 |
344 | /***************************************************************************
*
* Copyright (c) 2019 Chatopera.Inc, Inc. All Rights Reserved
*
**************************************************************************/
/**
* @file /Users/hain/chatopera/chatopera.io/clause/src/intent/src/publisher.cpp
* @author <N... | 698 |
899 | """
Copyright (c) 2019-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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | 1,411 |
332 | /*
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: <NAME>
*/
#include <string>
#include <algorithm>
#include "kernel/expr_maps.h"
#include "library/trace.h"
#include "library/util.h"
#include "library/reducible.h"
#include "libr... | 12,649 |
1,396 | <filename>stringtemplate4/src/main/java/org/jdbi/v3/stringtemplate4/UseStringTemplateSqlLocator.java
/*
* 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/L... | 660 |
1,338 | /*
* PCL5Cap.h
* Copyright 1999-2000 Y.Takagi. All Rights Reserved.
*/
#ifndef __PCL5CAP_H
#define __PCL5CAP_H
#include "PrinterCap.h"
class PCL5Cap : public PrinterCap {
public:
PCL5Cap(const PrinterData* printer_data);
virtual int CountCap(CapID) const;
virtual bool Supports(CapID) const;
virtual cons... | 158 |
190,993 | <reponame>yage99/tensorflow
/* Copyright 2018 The TensorFlow 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 req... | 2,061 |
2,219 | // 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 BASE_ALLOCATOR_PARTITION_ALLOCATOR_ADDRESS_POOL_MANAGER_H_
#define BASE_ALLOCATOR_PARTITION_ALLOCATOR_ADDRESS_POOL_MANAGER_H_
#include <bitset>
#... | 1,786 |
507 | <reponame>playday3008/VAC<gh_stars>100-1000
#pragma once
#include <Windows.h>
// E8 ? ? ? ? 59 8B F8 (relative jump)
PVOID ProcessMonitor_readFileMapping(PBOOLEAN md5Computed, PBYTE md5, DWORD out[2]);
| 87 |
14,668 | // Copyright 2019 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 CHROME_BROWSER_MEDIA_ROUTER_PROVIDERS_OPENSCREEN_NETWORK_SERVICE_ASYNC_PACKET_SENDER_H_
#define CHROME_BROWSER_MEDIA_ROUTER_PROVIDERS_OPENSCREEN_N... | 726 |
2,325 | <filename>tests/losses/adv_losses_test.py<gh_stars>1000+
#
"""
Tests adversarial loss related functions.
"""
import tensorflow as tf
from texar.tf.losses.adv_losses import binary_adversarial_losses
class AdvLossesTest(tf.test.TestCase):
"""Tests adversarial losses.
"""
def test_binary_adversarial_losses... | 610 |
913 | /*
* CANopen data storage object for storing data into block device (eeprom)
*
* @file CO_storageEeprom.c
* @author <NAME>
* @copyright 2021 <NAME>
*
* This file is part of CANopenNode, an opensource CANopen Stack.
* Project home page is <https://github.com/CANopenNode/CANopenNode>.
* Fo... | 5,110 |
341 | package com.aventstack.extentreports.reporter.klov.entity;
public class KlovURI {
public static final String PROJECT = "/api/projects";
public static final String REPORT = "/api/reports";
}
| 61 |
843 | package io.fullstack.firestack;
import android.content.Context;
import android.util.Log;
import android.os.Bundle;
import java.util.Iterator;
import java.util.Map;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.facebook.react.bridge.Arguments;
import com.facebook.rea... | 3,813 |
543 | <gh_stars>100-1000
package com.riiablo;
import com.badlogic.gdx.assets.AssetDescriptor;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.riiablo.graphics.BlendMode;
import com.riiablo.codec.FontTBL;
import com.riiablo.loader.BitmapFontLoader;
public class Fonts... | 1,431 |
1,144 | /** Generated Model - DO NOT CHANGE */
package de.metas.printing.model;
import java.sql.ResultSet;
import java.util.Properties;
/** Generated Model for AD_PrinterHW_MediaSize
* @author metasfresh (generated)
*/
@SuppressWarnings("javadoc")
public class X_AD_PrinterHW_MediaSize extends org.compiere.model.PO implem... | 991 |
690 | <filename>livelessons-rest/livelessons-rest-errors/src/main/java/demo/PersonResourceProcessor.java<gh_stars>100-1000
package demo;
import org.springframework.hateoas.Link;
import org.springframework.hateoas.Resource;
import org.springframework.hateoas.ResourceProcessor;
import org.springframework.stereotype.Component;... | 292 |
584 | /*******************************************************************************
* Copyright (c) 2016 <NAME> - github.com/shpralex
* This program and the accompanying materials
* are made available under the terms of the The MIT License (MIT)
* The above copyright notice and this permission notice shall be included... | 415 |
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,773 |
772 | <reponame>ryansloan/code-dot-or<gh_stars>100-1000
{
"co-CO": {
"data": {
"short_instructions": {
"2-3 Artist 12": "Difinisce u bloccu \"ripete parechje volte\" ch'ellu fia une \"ronda\" da compie l'ochju. Sè ognu muvimentu gira à a diritta d'un gradu, quantu volta devi ripete lu per compie u rebbiu ... | 237 |
777 | <gh_stars>100-1000
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES2/gl2extchromium.h>
#include <GLES3/gl3.h>
#include "base/command_line.... | 1,495 |
5,169 | {
"name": "CSSParser",
"version": "1.0.1",
"summary": "Swift CSS parser based on katana-parser.",
"description": "CSSParser is a tiny Swift wrapper around the pure C katana-parser framework.",
"homepage": "https://github.com/mcudich/CSSParser",
"license": "MIT",
"authors": {
"<NAME>": "<EMAIL>"
},
... | 291 |
528 | from unittest.mock import MagicMock
import pytest
class TestAnnotate:
@pytest.fixture
def annotate(self):
from palladium.interfaces import annotate
return annotate
def test_with_existing_data(self, annotate):
model = MagicMock(__metadata__={'one': 1, 'two': 2})
annotate(m... | 705 |
32,467 | #ifndef PHP_DB1_H
#define PHP_DB1_H
#if DBA_DB1
#include "php_dba.h"
DBA_FUNCS(db1);
#endif
#endif
| 60 |
410 | #pragma once
namespace LuaCpp {
class TypeError : public std::exception {
public:
explicit TypeError(std::string expected) : _message(std::move(expected) + " expected, got no object.") {}
explicit TypeError(std::string expected, const std::string &actual) : _message(std::move(expected) + " expected, got " + a... | 322 |
9,734 | <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
// "Li... | 2,756 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.