max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,567 | <filename>sdk/projects/tests/driver/src/w25q64fv.h
#ifndef __W25Q64FV_H_
#define __W25Q64FV_H_
#ifdef __cplusplus
extern "C" {
#endif
#define W25Q64FV_PAGE_SIZE 0x80
#define W25Q64FV_ADDR_START 0x0
#define W25Q64FV_ADDR_END 0x10000
#define W25Q64FV_CLK_RATE 1000000 /* 1MHZ */
#define IS_FLASH_ADDR(... | 243 |
879 | <reponame>LEONAD486/zstack
package org.zstack.header.storage.primary;
import org.zstack.header.image.ImageInventory;
import org.zstack.header.message.NeedReplyMessage;
import org.zstack.header.storage.snapshot.VolumeSnapshotInventory;
/**
* Created by MaJin on 2021/3/18.
*/
public class CreateImageCacheFromVolumeSn... | 343 |
1,813 | package com.example.features.dashboard.view;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.service.quicksettings.TileService;
import android.support.annotation.RequiresApi;
import android.support.v7.widget.GridLayoutManager;
impor... | 2,126 |
7,158 | <reponame>Nondzu/opencv_contrib<filename>modules/sfm/src/libmv_light/libmv/multiview/fundamental_kernel.h<gh_stars>1000+
// Copyright (c) 2009 libmv authors.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// ... | 2,159 |
1,145 | <filename>src/providers/twitch/api/Kraken.hpp
#pragma once
#include "common/NetworkRequest.hpp"
#include "providers/twitch/TwitchAccount.hpp"
#include <QString>
#include <QStringList>
#include <QUrlQuery>
#include <functional>
namespace chatterino {
using KrakenFailureCallback = std::function<void()>;
template <ty... | 526 |
1,253 | /* <NAME>
IIIT Hyderabad */
#include<iostream>
#include<cstdio>
#include<string>
#include<algorithm>
#include <vector>
int arr[1111111];
int temp[1111111];
int n;
using namespace std;
void merge(int l,int m,int r)
{
int mid = m+1;
int k=1;
int safe = l;
while(l<=m && mid<=r)
{
if(arr[l] <= arr[mid])
tem... | 460 |
4,756 | // Copyright 2018 The MACE 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 appl... | 9,811 |
587 | <gh_stars>100-1000
/*
* Copyright 2017-2021 Crown Copyright
*
* 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 ... | 3,605 |
1,118 | /**
* The MIT License
*
* Copyright for portions of unirest-java are held by Kong Inc (c) 2013.
*
* 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
* with... | 850 |
816 | <gh_stars>100-1000
package com.jxtech.sso;
import com.jxtech.jbo.auth.JxSession;
import com.jxtech.jbo.auth.JxSessionID;
import com.jxtech.jbo.auth.PermissionFactory;
import com.jxtech.jbo.auth.PermissionIFace;
import com.jxtech.jbo.base.JxUserInfo;
import com.jxtech.util.StrUtil;
import org.jasig.cas.client.authenti... | 2,718 |
1,686 | <filename>pkg/remote/test/aws_ec2_route_multiple/aws_route-r-rtb-0169b0937fd963ddc2750132062-___0-rtb-0169b0937fd963ddc.res.golden.json
{
"Typ": "<KEY>",
"Val": "<KEY>
"Err": null
} | 90 |
852 | #include <memory>
#include <ostream>
#include "CalibTracker/SiStripAPVAnalysis/interface/ApvAnalysisFactory.h"
#include "CalibTracker/SiStripAPVAnalysis/interface/ApvFactoryService.h"
#include "CondFormats/DataRecord/interface/SiStripNoisesRcd.h"
#include "CondFormats/DataRecord/interface/SiStripPedestalsRcd.h"
#inclu... | 4,835 |
2,151 | <gh_stars>1000+
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 731 |
485 | class Task:
def __init__(self, event=(lambda: print('task running'))):
self.event = event
self.cb = self.pre()
next(self.cb)
print('task init')
def pre(self):
print('task start')
flag = True
while flag is True:
flag = yield flag
s... | 675 |
1,779 | //
// Copyright 2020 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 ... | 4,982 |
563 | <filename>core/src/main/java/com/gentics/mesh/core/endpoint/schema/SchemaCrudHandler.java
package com.gentics.mesh.core.endpoint.schema;
import static com.gentics.mesh.core.data.perm.InternalPermission.READ_PERM;
import static com.gentics.mesh.core.data.perm.InternalPermission.UPDATE_PERM;
import static com.gentics.me... | 4,764 |
6,497 | package redis.clients.jedis.params;
import redis.clients.jedis.Protocol;
import redis.clients.jedis.util.SafeEncoder;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
/**
* @author wenruiwu
* @create 2020/6/15 14:26
* @description
*/
public class ClientTrackingParams extends Params {
... | 993 |
1,086 | /*
* gdith.c --
*
* Procedures dealing with grey-scale and mono dithering,
* as well as X Windows set up procedures.
*
*/
/*
* Copyright (c) 1995 The Regents of the University of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* docum... | 4,099 |
776 | <reponame>Matt-Hayes24/hivemq-community-edition
/*
* Copyright 2019-present HiveMQ GmbH
*
* 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... | 716 |
499 | package net.ttddyy.dsproxy;
import java.lang.reflect.Method;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.HashMap;
import java.util.Map;
/**
* Contains query execution information.
*
* @author <NAME>
*/
public class ExecutionInfo {
private String dataSourceName;
private String co... | 2,110 |
390 | import numpy as np
import math
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.patches import ConnectionPatch
def toHomogeneous(coords):
tmp = np.expand_dims(np.ones(len(coords)), axis=0)
return np.concatenate((coords, tmp.T), axis=1)
d... | 3,752 |
666 | package com.example.clevo.dagger2demo;
import android.support.v7.app.AppCompatActivity;
/**
* Created by Clevo on 2016/7/9.
*/
public class OtherActivity extends AppCompatActivity {
}
| 62 |
3,861 | <filename>Include/Library/HdaModels.h
/*
* File: HdaModels.h
*
* Copyright (c) 2018 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limi... | 1,626 |
418 | <reponame>Ishticode/kornia<gh_stars>100-1000
from typing import Dict, Optional, Tuple, Union
import torch
from torch.distributions import Uniform
from kornia.augmentation.random_generator.base import RandomGeneratorBase
from kornia.augmentation.utils import _adapted_rsampling, _adapted_uniform, _common_param_check
fr... | 7,567 |
746 | #!/usr/bin/python3
from finviz.screener import Screener
# Get dict of available filters
# filters dict contains the corresponding filter tags
filters = Screener.load_filter_dict()
some_filters = [filters["PEG"]["Under 1"], filters["Exchange"]["AMEX"]]
stock_list = Screener(filters=some_filters, order="ticker")
print(... | 272 |
12,718 | /* Assembler macros for Nios II.
Copyright (C) 2000-2021 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundati... | 3,650 |
502 | <filename>sofa-tracer-plugins/sofa-tracer-rocketmq-plugin/src/main/java/com/alipay/sofa/tracer/plugins/rocketmq/interceptor/SofaTracerConsumeMessageHook.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for... | 1,604 |
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.automation.models;
import com.azure.core.management.exception.ManagementError;
import com.azure.core.util.Context;
import com.az... | 2,811 |
833 | <gh_stars>100-1000
package simple4;
import java.io.IOException;
public class Class1 {
public static void main(String[] args) {
int c;
try {
c = System.in.read();
if(c=='F'){
System.out.write('W');
}else{
System.out.write('L');
... | 251 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 3,029 |
1,260 | /*
Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 497 |
309 | <reponame>felix-johnny/ML-examples
#!/usr/bin/python
# 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... | 566 |
6,304 | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkAAClip_DEFINED
#define SkAAClip_DEFINED
#include "include/core/SkClipOp.h"
#include "include/core/SkRect.h"
#include "src/core/SkAutoMalloc.h"
#include "src/core/Sk... | 1,346 |
839 | <filename>rt/rs/description-swagger-ui/src/main/java/org/apache/cxf/jaxrs/swagger/ui/SwaggerUiResolver.java
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright own... | 1,297 |
320 | <reponame>kant/zooshi
// Copyright 2015 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... | 8,704 |
1,475 | <filename>geode-dunit/src/main/java/org/apache/geode/security/templates/SimpleAccessController.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ... | 988 |
2,943 | /*
* Copyright 2015 LinkedIn Corp. 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, sof... | 1,939 |
499 | <gh_stars>100-1000
package net.ttddyy.dsproxy.transform;
import net.ttddyy.dsproxy.ConnectionInfo;
import net.ttddyy.dsproxy.TestUtils;
import net.ttddyy.dsproxy.listener.QueryExecutionListener;
import net.ttddyy.dsproxy.proxy.ProxyConfig;
import net.ttddyy.dsproxy.proxy.jdk.JdkJdbcProxyFactory;
import org.hsqldb.jdbc... | 2,680 |
301 | package qouteall.imm_ptl.peripheral.mixin.common.alternate_dimension;
import qouteall.imm_ptl.core.ducks.IESimpleRegistry;
import net.minecraft.util.registry.SimpleRegistry;
import org.spongepowered.asm.mixin.Mixin;
@Mixin(SimpleRegistry.class)
public class MixinSimpleRegistry implements IESimpleRegistry {
}
| 114 |
30,023 | <gh_stars>1000+
"""Support for controlling juicenet/juicepoint/juicebox based EVSE numbers."""
from __future__ import annotations
from dataclasses import dataclass
from pyjuicenet import Api, Charger
from homeassistant.components.number import NumberEntity, NumberEntityDescription
from homeassistant.components.numbe... | 1,147 |
3,404 | {
"name": "l10n",
"version": "0.1.0",
"private": true,
"license": "MIT",
"description": "Localization libs for Grid.js",
"source": "index.ts",
"main": "dist/l10n.js",
"module": "dist/l10n.module.js",
"umd:main": "dist/l10n.umd.js",
"types": "dist/index.d.ts",
"amdName": "gridjs.l10n"
}
| 144 |
6,098 | df10 = h2o.H2OFrame.from_python( {
'A': ['Hello', 'World', 'Welcome', 'To', 'H2O', 'World'],
'n': [0,1,2,3,4,5]} )
# Create a single-column, 100-row frame
# Include random integers from 0-5
df11 = h2o.H2OFrame.from_python(np.random.randint(0,6,(100,1)), column_names=list('n'))
# Combine column "n" f... | 270 |
7,482 | /*
* Copyright (c) 2010-2012, Freescale Semiconductor, 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:
*
* o Redistributions of source code must retain the above copyright notice, this... | 3,794 |
325 | <filename>webapp/src/test/java/com/box/l10n/mojito/test/category/IntegrationTest.java
package com.box.l10n.mojito.test.category;
/**
* @author jaurambault
*/
public class IntegrationTest {
}
| 74 |
852 | // #define DEBUG
// System include files
// --------------------
// User include files
// ------------------
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDFilter.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#inclu... | 3,423 |
780 | <reponame>EMinsight/ospray
// Copyright 2009-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "ManagedObject.h"
namespace ospray {
namespace cpp {
class Group : public ManagedObject<OSPGroup, OSP_GROUP>
{
public:
Group();
Group(OSPGroup existing);
};
static_assert(
sizeo... | 243 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.messagebus.shared;
import com.yahoo.config.subscription.ConfigGetter;
import com.yahoo.jdisc.AbstractResource;
import java.util.Objects;
import java.util.logging.Level;
import com.yahoo.messageb... | 804 |
743 | <reponame>althink/hermes
package pl.allegro.tech.hermes.common.di.factories;
import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
import com.google.common.base.Optional;
import org.glassfish.hk2.api.Factory;
import pl.allegro.tech.hermes.common.config.ConfigFactory;
import pl.allegro.tech.hermes.common.config.... | 546 |
310 | <reponame>shinoyuki222/torch-light
import numpy as np
import torch
from torch.autograd import Variable
import const
class DataLoader(object):
def __init__(self, src_sents, label, max_len, cuda=True,
batch_size=64, shuffle=True, evaluation=False):
self.cuda = cuda
self.sents_size = l... | 851 |
1,018 | package org.reactnative.camera.tasks;
import com.facebook.react.bridge.WritableMap;
public interface PictureSavedDelegate {
void onPictureSaved(WritableMap response);
}
| 54 |
1,039 | /*
Source File : IFreeTypeFaceExtender.h
Copyright 2011 <NAME> PDFWriter
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... | 928 |
2,577 | # Copyright (C) Mesosphere, Inc. See LICENSE file for details.
"""MesosDNS mock endpoint"""
import copy
import logging
import re
from exceptions import EndpointException
from mocker.endpoints.recording import (
RecordingHTTPRequestHandler,
RecordingTcpIpEndpoint,
)
# pylint: disable=C0103
log = logging.getL... | 2,332 |
1,283 | /*
* TC_TestStub.h
*
* Created on: 2013-5-9
* Author: fasiondog
*/
#pragma once
#ifndef TESTSTUB_TC_H_
#define TESTSTUB_TC_H_
#include "../TradeCostBase.h"
namespace hku {
/* 仅用于测试 */
HKU_API TradeCostPtr TC_TestStub();
} // namespace hku
#endif /* TESTSTUB_TC_H_ */
| 139 |
5,279 | <reponame>eyal0/beam<filename>sdks/python/apache_beam/runners/worker/crossplatform_unistd.h
/*
* 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... | 484 |
395 | <reponame>jabader97/backpack
"""Derivatives of ScaleModule (implies Identity)."""
from typing import List, Tuple, Union
from torch import Tensor
from torch.nn import Identity
from backpack.core.derivatives.basederivatives import BaseDerivatives
from backpack.custom_module.scale_module import ScaleModule
class Scale... | 293 |
349 | package com.brunobonacci.mulog.core;
/**
*
* NanoClock uses the wall clock and a high-precision monotonic timer to
* **estimate** a high granularity wall clock with monotonic properties.
*
* The idea is that we use the wall clock (System.currentTimeMillis()) to
* mark a point in time called `tw0`, at the same ti... | 689 |
3,170 | <filename>contrib/libpoco/Foundation/include/Poco/Mutex_VX.h
//
// Mutex_VX.h
//
// $Id: //poco/1.4/Foundation/include/Poco/Mutex_VX.h#1 $
//
// Library: Foundation
// Package: Threading
// Module: Mutex
//
// Definition of the MutexImpl and FastMutexImpl classes for VxWorks.
//
// Copyright (c) 2004-2011, Applied Inf... | 508 |
348 | {"nom":"Montville","circ":"10ème circonscription","dpt":"Seine-Maritime","inscrits":3788,"abs":2143,"votants":1645,"blancs":114,"nuls":32,"exp":1499,"res":[{"nuance":"REM","nom":"<NAME>","voix":908},{"nuance":"FN","nom":"<NAME>","voix":591}]} | 95 |
3,813 | {"annotations":{"authorization.k8s.io/decision":"allow","authorization.k8s.io/reason":""},"auditID":"693f4726-2430-450a-83e1-123c050fde98","kind":"Event","level":"Request","metadata":{"creationTimestamp":"2018-10-26T13:00:25Z"},"objectRef":{"apiVersion":"v1","name":"foo","namespace":"foo","resource":"namespaces"},"requ... | 255 |
327 | <filename>hipster-core/src/main/java/es/usc/citius/hipster/model/function/impl/Product.java
/*
* Copyright 2013 Centro de Investigación en Tecnoloxías da Información (CITIUS), University of Santiago de Compostela (USC).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this... | 489 |
8,027 | /*
* 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 the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 1,056 |
310 | {
"name": "fatrace",
"description": "A file access event debugger.",
"url": "https://launchpad.net/fatrace"
} | 40 |
536 | <reponame>akarnokd/RxJava2Extensions
/*
* Copyright 2016-present <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 ... | 5,900 |
652 | <filename>Python/fileutils.c
#include "Python.h"
#include "osdefs.h"
#include <locale.h>
#ifdef MS_WINDOWS
# include <windows.h>
#endif
#ifdef HAVE_LANGINFO_H
#include <langinfo.h>
#endif
#ifdef __APPLE__
extern wchar_t* _Py_DecodeUTF8_surrogateescape(const char *s, Py_ssize_t size);
#endif
PyObject *
_Py_device_e... | 9,281 |
10,225 | package io.quarkus.opentelemetry.exporter.jaeger.deployment;
import javax.inject.Inject;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
... | 371 |
307 | /*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
#ifdef _WIN32
#include <winsock2.h>
#endif
#include "globalincs/pstypes.... | 1,889 |
336 | /*
* This file is part of the Black Magic Debug project.
*
* Copyright (C) 2011 Black Sphere Technologies Ltd.
* Written by <NAME> <<EMAIL>>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Founda... | 6,542 |
28,056 | package com.alibaba.fastjson.serializer.issues3601;
import lombok.Data;
@Data
public class TestEntity {
private TestEnum testEnum;
private String testName;
}
| 59 |
956 | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2014 Intel Corporation.
* Copyright (c) 2009, <NAME> <<EMAIL>>
* All rights reserved.
*/
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
#include "cmdline_vt100.h"
const char *cmdlin... | 1,016 |
604 | <reponame>xxoolm/IbEverythingExt
#include "pch.h"
#include "quick_select.hpp"
#include <CommCtrl.h>
#include "config.hpp"
#include "helper.hpp"
#include "ipc.hpp"
constexpr wchar_t everything_prop_quick_list[] = L"IbEverythingExt.QuickList";
constexpr wchar_t edit_prop_list[] = L"IbEverythingExt.Edit_List"; // need ... | 12,555 |
493 | /* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* 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
*
* ... | 5,153 |
1,043 | package com.oath.micro.server.servers.model;
import javax.servlet.Servlet;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public class ServletData {
private final String servletName;
private final Class<? extends Servlet> servlet;
private final String mapping;
} | 107 |
1,498 | <filename>interface/khronos/common/khrn_int_generic_map.h<gh_stars>1000+
/*
Copyright (c) 2012, Broadcom Europe Ltd
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 mu... | 2,414 |
7,320 | <filename>ClassySharkWS/src/com/google/classyshark/gui/panel/displayarea/BatchDocument.java
/*
* Copyright 2015 Google, 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:... | 746 |
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_RENDERER_EXTENSIONS_ACCESSIBILITY_PRIVATE_HOOKS_DELEGATE_H_
#define CHROME_RENDERER_EXTENSIONS_ACCESSIBILITY_PRIVATE_HOOKS_DELEGATE_H_
#in... | 551 |
1,162 | <gh_stars>1000+
package io.digdag.core.repository;
import com.google.common.base.*;
import com.google.common.collect.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.immutables.value.Value;
import java.util.regex.Pattern;
@JsonDeserialize(as = ImmutableProject.class)
public abstract cla... | 279 |
2,996 | <reponame>Elyahu41/Terasology<gh_stars>1000+
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.rendering.gltf;
import com.google.common.collect.ImmutableSet;
import org.terasology.engine.rendering.gltf.model.GLTFAttributeType;
import org.terasology.engine.... | 952 |
14,668 | <gh_stars>1000+
// 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 "services/metrics/public/cpp/ukm_entry_builder_base.h"
#include <memory>
#include "services/metrics/public/cpp/ukm_source_id.h"... | 597 |
1,662 | from fairscale.utils import torch_version
def test_torch_version():
assert torch_version("") == tuple()
assert torch_version("bad format") == tuple()
assert torch_version("1.9.0") == (1, 9, 0)
assert torch_version("1.10.0a0+gitbc6fc3e") == (1, 10, 0)
assert torch_version("1.7.0+cu102") == (1, 7, 0... | 156 |
7,886 | <filename>litho-core/src/main/java/com/facebook/litho/EquivalenceUtils.java
/*
* Copyright (c) Meta Platforms, Inc. and 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
*
* ... | 1,629 |
471 | <reponame>THEGUY3ds/pirater12-luma-updater
#include "config.h"
#include "utils.h"
LoadConfigError Config::LoadFile(const std::string& path) {
std::ifstream cfgfile(path);
if (!cfgfile.is_open()) {
return LoadConfigError::NotExists;
}
if (!cfgfile.good()) {
return LoadConfigError::Unreadable;
}
std::strin... | 395 |
352 | # Copyright 2021 The NetKet 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 ... | 3,984 |
734 | /*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
`---' `--' `... | 687 |
1,131 | <filename>test/src-not-used/main/java/com/cloud/test/longrun/VirtualMachine.java<gh_stars>1000+
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The AS... | 1,501 |
2,305 | <filename>examples/model_compress/pruning/movement_pruning_glue.py
import functools
import time
from tqdm import tqdm
import torch
from torch.optim import Adam
from torch.utils.data import DataLoader
from datasets import load_metric, load_dataset
from transformers import (
BertForSequenceClassification,
BertT... | 1,947 |
313 | /*
* Copyright 2018 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 3,982 |
318 | /* ANSI-C code produced by gperf version 3.0.3 */
/* Command-line: /Library/Developer/CommandLineTools/usr/bin/gperf -L ANSI-C -I -t -N find_entity -H hash_entity -K entity -C -l -F ',{0}' --null-strings -m5 -P -Q entity_pool src/html_unescape.gperf */
/* Computed positions: -k'1-7,10,12,$' */
#if !((' ' == 32) && ('... | 360,580 |
1,062 | //
// Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <objc/NSObject.h>
@class NSCondition, NSString;
@interface MFDatabaseRecoverer : NSObject
{
NSCondition *_analysisCondition; // 8 = 0x8
NSString *_path; // 16 = 0x... | 571 |
1,060 | # /* **************************************************************************
# * *
# * (C) Copyright <NAME> 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt or copy ... | 6,164 |
1,006 | /****************************************************************************
* arch/arm/src/nrf52/nrf52832_errdata.c
*
* 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 copyr... | 1,588 |
416 | // This file is distributed under the MIT license.
// See the LICENSE file for details.
#pragma once
#ifndef VSNRAY_MATH_PLANE_H
#define VSNRAY_MATH_PLANE_H 1
#include <cstddef>
#include "config.h"
#include "primitive.h"
#include "vector.h"
namespace MATH_NAMESPACE
{
template <size_t Dim, typename T, typename P>
... | 304 |
341 | /*
File: CFLiteRunLoopSelect.c
Package: Apple CarPlay Communication Plug-in.
Abstract: n/a
Version: 410.12
Disclaimer: IMPORTANT: This Apple software is supplied to you, by Apple Inc. ("Apple"), in your
capacity as a current, and in good standing, Licensee in the MFi Licensing Program. Use of this
Appl... | 20,388 |
589 | <filename>fluent-job/fluent-job-api/src/test/java/org/apache/oozie/fluentjob/api/dag/TestDecisionJoin.java
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright own... | 426 |
841 | /*
* Copyright 2017 Red Hat, Inc. and/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.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 2,427 |
1,498 | from django.test import TestCase
from suggestion.algorithm.abstract_algorithm import AbstractSuggestionAlgorithm
from suggestion.algorithm.base_hyperopt_algorithm import BaseHyperoptAlgorithm
class BaseHyperoptAlgorithmTest(TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self)... | 150 |
984 | /**
* @file
* This file defines the alljoyn_securityapplicationproxy and related functions.
*/
/******************************************************************************
* Copyright AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* pu... | 9,878 |
462 | ##
# Copyright (c) 2012-2017 Apple 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 by applicable l... | 676 |
1,968 | //////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: <EMAIL>
//
///////////////////////////////////////... | 2,306 |
1,676 | [["The U.S. Centers for Disease Control and Prevention initially advised school systems to close if outbreaks occurred , then reversed itself , saying the apparent mildness of the virus meant most schools and day care centers should stay open , even if they had confirmed cases of swine flu .", "When <NAME> invited <NAM... | 896 |
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... | 2,833 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.