max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
634 | <filename>modules/desktop-swt/desktop-swt-ui-impl/src/main/java/org/eclipse/nebula/cwt/svg/SvgGraphic.java
/****************************************************************************
* Copyright (c) 2008, 2009 <NAME>
*
* This program and the accompanying materials
* are made available under the terms of the Eclip... | 2,131 |
587 | <gh_stars>100-1000
/*
* Copyright (C) 2013 salesforce.com, 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 requ... | 2,299 |
351 | #!/usr/bin/env python3
from tryalgo.dijkstra import dijkstra
from tryalgo.graph import listlist_and_matrix_to_listdict
graph = [[1, 3],
[0, 2, 3],
[1, 4, 5],
[0, 1, 5, 6],
[2, 7],
[2, 3, 7, 8],
[3, 8, 9],
[4, 5, 10],
[5, 6, 10],
[6, 11],... | 959 |
852 | #ifndef DataFormats_ParticleFlowReco_PFCluster_h
#define DataFormats_ParticleFlowReco_PFCluster_h
#include <iostream>
#include <vector>
#include <algorithm>
#include <Rtypes.h>
#include "DataFormats/CaloRecHit/interface/CaloCluster.h"
#include "DataFormats/CaloRecHit/interface/CaloClusterFwd.h"
#include "DataFormats... | 2,051 |
453 | #include "util.h"
#include <std/std.h>
#include <std/memory.h>
#include <kernel/util/paging/paging.h>
#include <kernel/vmm/vmm.h>
#include <kernel/boot_info.h>
void move_stack(void* new_stack_start, uint32_t size) {
Deprecated();
/*
//allocate space for new stack
printf("move_stack() mapping region 0x%08x to 0x... | 845 |
440 | /*========================== begin_copyright_notice ============================
Copyright (C) 2020-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#include "wa_def.h"
#include "iadls_rev_id.h"
#define ADLS_PCH_A0_REV_ID 0
//****... | 487 |
32,544 | package com.baeldung.spring.patterns.proxy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
public class BookManager {
@Autowired
private BookRepository repository;
... | 165 |
1,738 | <gh_stars>1000+
#! /usr/bin/env python
# encoding: utf-8
# harald at klimachs.de
import re
from waflib import Utils,Errors
from waflib.Tools import fc,fc_config,fc_scan
from waflib.Configure import conf
from waflib.Tools.compiler_fc import fc_compiler
fc_compiler['aix'].insert(0, 'fc_xlf')
@conf
def find_xlf(conf):
... | 738 |
4,303 | <reponame>OAID/Halide<gh_stars>1000+
#include "runtime_internal.h"
extern "C" int sched_yield();
extern "C" WEAK void halide_thread_yield() {
sched_yield();
}
| 71 |
936 | /*
* Copyright 2020, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package com.yahoo.elide.datastores.aggregation.annotation.metricformula;
import static com.yahoo.elide.datastores.aggregation.annotation.dimensionformula.DimensionFormulaTest.DUMMY_CONN... | 455 |
1,333 | <gh_stars>1000+
/*
* Copyright 2014-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 865 |
438 | import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import seaborn as sns
np.random.seed(sum(map(ord, "aesthetics")))
# sns.set_style("white")
x = [650, 1625, 3250, 4875, 6500]
y = [38.04, 50.28, 54.76, 56.72, 61.20]
y2 = [20.92, 31.08, 35.70, 40.16, 41.76]
plt.plot(x, y, marker='o', markersiz... | 339 |
1,041 | package org.tests.model.history;
import org.tests.model.draftable.BaseDomain;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import java.util.List;
@Entity
public class HeDoc extends BaseDomain {
String name;
@ManyToMany(mappedBy = "docs")
List<HeLink> links;
public HeDoc(String na... | 216 |
1,248 | <gh_stars>1000+
# -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-04-23 09:44
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pretixbase', '0020_auto_20160421_1943'),
('pretixbase', '0021_auto_20160418_2... | 151 |
1,738 | <filename>dev/Gems/Multiplayer/Code/Source/MultiplayerCVars.h
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governe... | 991 |
2,625 | /*-------------------------------------------------------------------------
*
* cmsketch.h
* Interface for Count-Min Sketch support
*
* Copyright (c) 2018, PipelineDB, Inc.
*
*-------------------------------------------------------------------------
*/
#ifndef PIPELINE_CMSKETCH_H
#define PIPELINE_CMSKETCH_H
... | 526 |
997 | <gh_stars>100-1000
#include <stdint.h>
#include <string.h>
#include "address.h"
#include "hash.h"
#include "params.h"
#include "utils.h"
#include "fips202.h"
/* For SHAKE256, there is no immediate reason to initialize at the start,
so this function is an empty operation. */
void PQCLEAN_SPHINCSSHAKE256256SSIMPLE_... | 2,282 |
1,582 | # -*- coding: utf-8 -*-
import json
from vilya.libs import api_errors
from vilya.models.project import CodeDoubanProject
from vilya.views.api.utils import RestAPIUI, api_require_login, jsonize
from vilya.views.api.repos.product import ProductUI
from vilya.views.api.repos.summary import SummaryUI
from vilya.views.api.... | 1,899 |
471 | <reponame>madanagopaltcomcast/pxCore
/////////////////////////////////////////////////////////////////////////////
// Name: wx/gtk1/checkbox.h
// Purpose:
// Author: <NAME>
// Copyright: (c) 1998 <NAME>
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////... | 777 |
4,036 | <reponame>vadi2/codeql<filename>cpp/ql/test/library-tests/proxy_class/proxy_class.cpp
struct Base {};
template <typename T>
struct Derived {friend class T;};
int main() { return sizeof(Derived<Base>); }
// semmle-extractor-options: --microsoft
| 87 |
5,964 | #ifndef V8_TORQUE_TYPED_ARRAY_SUBARRAY_FROM_DSL_BASE_H__
#define V8_TORQUE_TYPED_ARRAY_SUBARRAY_FROM_DSL_BASE_H__
#include "src/compiler/code-assembler.h"
#include "src/code-stub-assembler.h"
#include "src/utils.h"
#include "torque-generated/class-definitions-from-dsl.h"
namespace v8 {
namespace internal {
class Typ... | 291 |
2,293 | _G='r'
_F='w'
_E=False
_D=True
_C='strict'
_B='utf-8'
_A=None
import csv,json,sys,warnings
from pathlib import Path
import dynaconf.vendor.ruamel.yaml as yaml
from dynaconf.vendor.box.exceptions import BoxError,BoxWarning
from dynaconf.vendor import toml
BOX_PARAMETERS='default_box','default_box_attr','conversion_box',... | 1,410 |
471 | <reponame>dimagilg/commcare-hq
class NoAccountException(Exception):
"""
Raised when trying to access the account of someone without one
"""
pass
class InvalidMobileWorkerRequest(Exception):
pass
class IllegalAccountConfirmation(Exception):
pass
| 87 |
2,231 | #!/usr/bin/env python
# Copyright 2020 The Defold Foundation
# Licensed under the Defold License version 1.0 (the "License"); you may not use
# this file except in compliance with the License.
#
# You may obtain a copy of the License, together with FAQs at
# https://www.defold.com/license
#
# Unless required by appli... | 818 |
603 | """CFFI backend (for PyPy)"""
# Copyright (C) PyZMQ Developers
# Distributed under the terms of the Modified BSD License.
from zmq.backend.cffi import (
constants,
error,
message,
context,
socket,
_poll,
devices,
utils,
)
from ._cffi import ffi, lib as C
def zmq_version_info():
"... | 339 |
2,114 | package io.searchbox.client.http;
import com.google.gson.Gson;
import io.searchbox.action.Action;
import io.searchbox.client.AbstractJestClient;
import io.searchbox.client.JestResult;
import io.searchbox.client.JestResultHandler;
import io.searchbox.client.config.ElasticsearchVersion;
import io.searchbox.client.config... | 4,401 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 1,778 |
17,481 | /*
* Copyright (C) 2021 The Dagger 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 ag... | 406 |
10,225 | package org.jboss.resteasy.reactive.common.providers.serialisers;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import javax.ws.rs.core.MediaType;
public class MessageReaderUtil {
public static final String UTF8_CHARSET = S... | 492 |
310 | <gh_stars>100-1000
{
"name": "import.io",
"description": "A service for scraping data from websites.",
"url": "https://www.import.io/"
} | 50 |
2,462 | package com.sanshengshui.persistence;
import com.sanshengshui.persistence.entity.ToData;
import java.util.*;
public abstract class DaoUtil {
private DaoUtil() {
}
public static <T> List<T> convertDataList(Collection<? extends ToData<T>> toDataList) {
List<T> list = Collections.emptyList();
... | 591 |
679 | <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 license... | 3,019 |
435 | <reponame>amaajemyfren/data<gh_stars>100-1000
{
"alias": "video/1480/python-web-sprints",
"category": "PyCon DE 2012",
"copyright_text": "",
"description": "",
"duration": null,
"id": 1480,
"language": "deu",
"quality_notes": "",
"recorded": "2012-11-01",
"slug": "python-web-sprints",
"speakers": ... | 742 |
2,329 | package fields;
public class Ja extends Ia {
public int getField() {
return field;
}
public void setField(int newvalue) {
field = newvalue;
}
}
| 56 |
337 | <gh_stars>100-1000
//statement
Character i = 10; | 17 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.noderepository;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jack... | 381 |
852 | import FWCore.ParameterSet.Config as cms
#
# Strip calib
#
from CalibTracker.Configuration.SiStripCabling.SiStripCabling_Frontier_cff import *
from CalibTracker.Configuration.SiStripGain.SiStripGain_Frontier_cff import *
from CalibTracker.Configuration.SiStripLorentzAngle.SiStripLorentzAngle_Frontier_cff import *
from... | 189 |
421 |
// <Snippet3>
#using <system.dll>
using namespace System;
public ref class HelloServiceClass: public MarshalByRefObject
{
private:
static int n_instance;
public:
HelloServiceClass()
{
n_instance++;
Console::WriteLine( "{0} has been created. Instance # = {1}", this->GetType()-... | 342 |
1,455 | <filename>src/main/java/org/springframework/data/redis/support/atomic/RedisAtomicDouble.java
/*
* Copyright 2013-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the... | 4,310 |
930 | package com.foxinmy.weixin4j.mp.component;
import java.io.Serializable;
import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotatio... | 943 |
7,137 | package io.onedev.server.util.concurrent;
import java.util.concurrent.FutureTask;
public class PrioritizedFutureTask<T> extends FutureTask<T>
implements PriorityAware, Comparable<PriorityAware> {
private final int priority;
public PrioritizedFutureTask(PrioritizedCallable<T> callable) {
super(callable);
t... | 229 |
1,626 | <filename>test/sample.cpp
//
// Copyright (c) 2016, Scientific Toolworks, Inc.
//
// This software is licensed under the MIT License. The LICENSE.md file
// describes the conditions under which this software may be distributed.
//
// Author: <NAME>
//
#include "Test.h"
#include <QMainWindow>
using namespace ... | 381 |
14,668 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_CHANGE_SERVICE_OBSERVER_H_
#define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_CHANGE_SERVICE_OBSERVER_H_
#include ... | 433 |
2,342 | /***********************************************************************
Vczh Library++ 3.0
Developer: <NAME>(vczh)
GacUI::Control Styles::Windows7 Styles
Clases:
***********************************************************************/
#ifndef VCZH_PRESENTATION_CONTROLS_WIN7STYLES_GUIWIN7STYLESCOMMON
#define VCZH_PRE... | 2,994 |
409 | <reponame>jtavara23/cassandra-workshop-series<filename>week4-AppDev-api/samples-codes/sample-kafka/kafka-dse-webui/src/main/java/com/datastax/demo/springdata/TickSpringDataRepository.java
package com.datastax.demo.springdata;
import com.datastax.demo.conf.DseConstants;
import com.datastax.demo.springdata.dto.TickData;... | 392 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-3j75-qm7x-j2gc/GHSA-3j75-qm7x-j2gc.json
{
"schema_version": "1.2.0",
"id": "GHSA-3j75-qm7x-j2gc",
"modified": "2022-05-01T23:47:37Z",
"published": "2022-05-01T23:47:37Z",
"aliases": [
"CVE-2008-2200"
],
"details": "Multiple cross-site scripting (XSS) vulner... | 644 |
334 | from calvin.utilities.utils import enum
# Only TEMPORARY, TERMINATE and EXHAUST are used on highest level in actor and port manager
# TEMPORARY is used during migration
# TERMINATE is used for dereplication without preserving tokens
# EXHAUST is used for dereplication while preserving tokens
# The different exhaust dis... | 239 |
416 | /*
File: AVAudioChannelLayout.h
Framework: AVFoundation
Copyright (c) 2014-2015 Apple Inc. All Rights Reserved.
*/
#import <AVFAudio/AVAudioTypes.h>
#import <CoreAudio/CoreAudioTypes.h>
NS_ASSUME_NONNULL_BEGIN
/*!
@class AVAudioChannelLayout
@abstract A description of the roles of a set of audio channels.
@... | 791 |
496 | # Generated by Django 3.2 on 2021-08-17 23:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('posts', '0019_auto_20210528_1122'),
]
operations = [
migrations.RemoveField(
model_name='historicalpost',
name='label',
... | 204 |
634 | /****************************************************************
* 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... | 1,017 |
5,535 | /*
* 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 ... | 794 |
922 | # Copyright (c) 2021 - present / Neuralmagic, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 1,399 |
335 | <reponame>ford442/openmpt<filename>common/mptString.h
/*
* mptString.h
* ----------
* Purpose: Small string-related utilities, number and message formatting.
* Notes : Currently none.
* Authors: OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#pragma... | 5,344 |
389 | <reponame>tcmoore32/sheer-madness<filename>gosu-test-api/src/main/java/gw/test/BaseRemoteTestClass.java<gh_stars>100-1000
package gw.test;
/*
* Copyright 2014 Guidewire Software, Inc.
*/
public class BaseRemoteTestClass extends TestClass {
protected BaseRemoteTestClass(String s, boolean shouldInit) {
super(s,... | 119 |
570 | <reponame>AmbientAI/amazon-kinesis-client<gh_stars>100-1000
/*
* Copyright 2019 Amazon.com, Inc. or 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 the License at
*
* http://www.apa... | 2,145 |
315 | <reponame>FredrikBlomgren/aff3ct<filename>include/Tools/Algo/Draw_generator/Event_generator/MKL/Event_generator_MKL.hpp
/*!
* \file
* \brief Class tools::Event_generator_MKL.
*/
#ifdef AFF3CT_CHANNEL_MKL
#ifndef EVENT_GENERATOR_MKL_HPP
#define EVENT_GENERATOR_MKL_HPP
#include "Tools/types.h"
#include "Tools/Algo/D... | 370 |
575 | // Copyright (c) 2011 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 "printing/printed_document.h"
#include "base/check_op.h"
#include "base/strings/utf_string_conversions.h"
#include "printing/metafile_skia.h... | 1,185 |
2,083 | /*
* Copyright (C) 2015 Karumi.
*
* 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... | 438 |
386 | <reponame>beru/libonnx<filename>src/default/Mean.c<gh_stars>100-1000
#include <onnx.h>
static int Mean_init(struct onnx_node_t * n)
{
if((n->ninput >= 1) && (n->noutput == 1))
return 1;
return 0;
}
static int Mean_exit(struct onnx_node_t * n)
{
return 1;
}
static int Mean_reshape(struct onnx_node_t * n)
{
stru... | 2,428 |
1,405 | package a.a.a.a.a.a;
import java.io.InputStream;
import java.io.OutputStream;
public final class j implements o {
/* renamed from: a reason: collision with root package name */
private Class f20a;
private String b;
private Object c;
public j(String str) {
this.b = str;
}
@Overr... | 793 |
764 | <reponame>641589523/token-profile<filename>erc20/0x15F0EEDF9Ce24fc4b6826E590A8292CE5524a1DA.json
{"symbol": "DENA","address": "0x15F0EEDF9Ce24fc4b6826E590A8292CE5524a1DA","overview":{"en": ""},"email": "","website": "https://denations.com/","state": "NORMAL","links": {"blog": "https://smatoos.medium.com/","twitter": "h... | 184 |
2,045 | '''
This is the benchmark of 4 different implementations
of rectified linear activation in Theano.
Two types of computations are tested w.r.t.
each implementation: fprop and grad.
Results: in seconds, float32 (details in the code)
Implementation, CPU (fprop, bprop), GPU (fprop, bprop), (final score)
a) ScalarRectifie... | 1,780 |
649 | package net.thucydides.core.reports.integration;
import net.thucydides.core.annotations.Feature;
import net.thucydides.core.annotations.Story;
import net.thucydides.core.issues.IssueTracking;
import net.thucydides.core.issues.SystemPropertiesIssueTracking;
import net.thucydides.core.model.TestOutcome;
import net.thucy... | 1,129 |
357 | <reponame>nicesu/wiki<filename>Programming/Java/Collection/StackDemo.java<gh_stars>100-1000
import java.util.*;
public class StackDemo {
public static void main(String args[])
{
Stack s = new Stack();
s.push(new Integer(0));
s.push(new Student(202));
s.push(new Integer(1)); //push in
... | 275 |
666 | from lib import BaseTest
class PublishShow1Test(BaseTest):
"""
publish show: existing snapshot
"""
fixtureDB = True
fixturePool = True
fixtureCmds = [
"aptly snapshot create snap1 from mirror gnuplot-maverick",
"aptly publish snapshot -keyring=${files}/aptly.pub -secret-keyring... | 608 |
331 | <filename>Easy Challenges/Challenge 0020 Easy/solutions/solution.java
package dailyprogrammerchallenges;
import static java.lang.Math.sqrt;
import java.util.Scanner;
/**
*
* @author coderMato
*/
public class PrimeNumbers {
public static void main(String[] args){
int prime,i,j;
System.out.printl... | 344 |
13,057 | <filename>src/main/java/org/mockito/plugins/InlineMockMaker.java
/*
* Copyright (c) 2019 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.plugins;
import org.mockito.MockitoFramework;
/**
* Extension to {@link MockMaker} for mock makers that changes ... | 582 |
1,958 | package com.freetymekiyan.algorithms.level.hard;
/**
* The demons had captured the princess (P) and imprisoned her in the
* bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid
* out in a 2D grid. Our valiant knight (K) was initially positioned in the
* top-left room and must fight his way th... | 1,107 |
2,338 | // RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
#include "omp_my_sleep.h"
int test_omp_task_final()
{
int tids[NUM_TASKS];
int includedtids[NUM_TASKS];
int i;
int error = 0;
#pragma omp parallel
{
#pragma omp single
{
for (i = 0; i < NUM_TASKS; ... | 775 |
777 | <gh_stars>100-1000
// 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.
#include "core/animation/CSSImageSliceInterpolationType.h"
#include "core/animation/CSSLengthInterpolationType.h"
#include "core/anima... | 3,745 |
2,350 | #pragma once
#include "UnrealEnginePython.h"
#include "Runtime/Online/Voice/Public/VoiceModule.h"
#include "Runtime/Online/Voice/Public/Interfaces/VoiceCapture.h"
typedef struct {
PyObject_HEAD
/* Type-specific fields go here. */
TSharedRef<IVoiceCapture> voice_capture;
} ue_PyIVoiceCapture;
void ue_python_init... | 126 |
2,937 | <reponame>fegorsch/ogre
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus <NAME> Ltd
Permission is hereby granted, free of... | 2,274 |
1,515 | <filename>qigsaw-android/splitinstaller/src/main/java/com/iqiyi/android/qigsaw/core/splitinstall/SplitSessionInstallerImpl.java
/*
* MIT License
*
* Copyright (c) 2019-present, iQIYI, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and ... | 617 |
3,680 | //
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 1,252 |
314 | package com.lynnchurch.pulltorefresh;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.jingchen.pulltorefresh.WrapRecyclerView;
import com.lsjwzh.widget... | 3,030 |
1,241 | import math
import os
from time import time
from typing import List, Dict, Union, Tuple
from tensorflow.python.keras.models import load_model
from donkeycar.config import Config
from donkeycar.parts.keras import KerasPilot
from donkeycar.parts.interpreter import keras_model_to_tflite, \
saved_model_to_tensor_rt
f... | 3,030 |
435 | <filename>pycon-tw-2021/videos/supercharging-your-jupyter-and-ml-workflow-with-primehub-chia-liang-kao-pycon-taiwan-2021.json<gh_stars>100-1000
{
"description": "Title: Supercharging your Jupyter and Machine Learning Workflow with PrimeHub \u2013 <NAME> \n\nDay 2, 10:35-11:20\n\nAbstract\n\nJupyter has become a cr... | 869 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-3vv6-22qm-hgwq",
"modified": "2022-05-13T01:36:56Z",
"published": "2022-05-13T01:36:56Z",
"aliases": [
"CVE-2017-2348"
],
"details": "The Juniper Enhanced jdhcpd daemon may experience high CPU utilization, or crash and restart upon receipt of an invalid IPv6 UD... | 627 |
325 | from .process import Processing, Mask, F
from .partition import Partition, TimePartition | 21 |
672 | <filename>xnu-4903.241.1/bsd/arm/disklabel.h
/*
* Copyright (c) 2000-2007 Apple Inc. All rights reserved.
*/
#ifndef _MACHINE_DISKLABEL_H_
#define _MACHINE_DISKLABEL_H_
#include <sys/appleapiopts.h>
#ifdef __APPLE_API_OBSOLETE
#define LABELSECTOR (1024 / DEV_BSIZE) /* sector containing label */
#define LABELOFFSET ... | 256 |
398 | <gh_stars>100-1000
#!/usr/bin/env python3
import argparse, csv, sys, pickle, collections, time
from common import *
if len(sys.argv) == 1:
sys.argv.append('-h')
parser = argparse.ArgumentParser()
parser.add_argument('tr_src_path', type=str)
parser.add_argument('va_src_path', type=str)
parser.add_argument('tr_ap... | 1,643 |
2,389 | /*
Copyright 2020 The Kubernetes 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 in writing, softwar... | 603 |
711 | <reponame>jingetiema2100/MicroCommunity<filename>service-store/src/main/java/com/java110/store/bmo/contractType/IDeleteContractTypeBMO.java<gh_stars>100-1000
package com.java110.store.bmo.contractType;
import com.java110.po.contractType.ContractTypePo;
import org.springframework.http.ResponseEntity;
public interface I... | 198 |
575 | <reponame>zealoussnow/chromium<gh_stars>100-1000
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/elevation_service/elevated_recovery_impl.h"
#include <objbase.h>
#include <string>
#inc... | 5,586 |
357 | # Copyright 2019 The Blueqat Developers
#
# 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... | 336 |
1,179 | // SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
*/
#include <compiler.h>
#include <link.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <sys/queue.h>
#include <tee_api.h>
#include <tee_ta_api.h>
#include <tee_internal_api_extensions.h>
#... | 4,063 |
381 | <reponame>joyrun/ActivityRouter
package com.grouter;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 默认使用空构造方法实现,如果带有参数的构造方法需要实现就要使用ComponentConstructor注解
* Created by Wiki on 19/8/14.
*/
@Target(... | 341 |
190,993 | /* Copyright 2017 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,692 |
1,679 | <filename>src/boards/mcu/saml21/hal/include/hpl_gpio.h
/**
* \file
*
* \brief Port related functionality declaration.
*
* Copyright (C) 2014-2016 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modifica... | 2,449 |
487 | print( f"{dumps(data)}\n" ) | 14 |
1,355 | <gh_stars>1000+
// Copyright (c) 2018 <NAME>
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "points_to_implicit.h"
#include "pybind11_utils.h"
#include <jet/points_to_implic... | 1,400 |
1,279 | /*
* Copyright (c) 2012-2021 <NAME> et al.
* License: https://github.com/dbartolini/crown/blob/master/LICENSE
*/
#pragma once
#include "core/filesystem/types.h"
#include "core/memory/types.h"
#include "core/types.h"
#include "resource/types.h"
namespace crown
{
namespace config_resource_internal
{
s32 compile(Co... | 177 |
558 | # 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 required by applic... | 1,292 |
310 | <filename>gear/hardware/0/600p-crl.json
{
"name": "600P CRL",
"description": "A glass cutter.",
"url": "https://www.amazon.com/LAURENCE-Heavy-Duty-Oil-Type-Pattern-Cutting/dp/B006JFN2OG"
} | 83 |
309 | // Copyright 2019 the deepx authors.
// Author: <NAME> (<EMAIL>)
//
#include <deepx_core/graph/op_impl.h>
namespace deepx_core {
namespace {
bool SequenceMaskInferShape(const Shape& X, int max_size, Shape* Z) noexcept {
if (!X.is_rank(1)) {
DXERROR("Invalid X: rank of X %d must be 1.", X.rank());
return fa... | 697 |
665 | <filename>3D_Printed_LED_Microphone_Flag/code.py<gh_stars>100-1000
# SPDX-FileCopyrightText: 2013 <NAME> for Adafruit Industries
# SPDX-FileCopyrightText: 2017 Mi<NAME> for Adafruit Industries
#
# SPDX-License-Identifier: BSD
# LED VU meter for Arduino and Adafruit NeoPixel LEDs.
# Hardware requirements:
# - M0 board... | 2,039 |
348 | <filename>docs/data/t2/011/11335.json<gh_stars>100-1000
{"nom":"Sainte-Colombe-sur-Guette","dpt":"Aude","inscrits":50,"abs":6,"votants":44,"blancs":10,"nuls":1,"exp":33,"res":[{"panneau":"1","voix":25},{"panneau":"2","voix":8}]} | 101 |
891 | from typing import ClassVar
from datamodel_code_generator.model.pydantic.base_model import BaseModel
class CustomRootType(BaseModel):
TEMPLATE_FILE_PATH: ClassVar[str] = 'pydantic/BaseModel_root.jinja2'
BASE_CLASS: ClassVar[str] = 'pydantic.BaseModel'
| 96 |
2,293 | <gh_stars>1000+
/*****************************************************************************
* *
* This file is part of the BeanShell Java Scripting distribution. *
* Documentation and updates may be found at http://www.beanshell.... | 3,130 |
653 |
//==---------------- opencl.hpp - SYCL OpenCL backend ----------------------==//
//
// 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
//
//===--------------------------... | 2,040 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.