max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
4,071 | <reponame>Ru-Xiang/x-deeplearning
/*
* Copyright 1999-2017 Alibaba Group.
*
* 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
*
* Unle... | 2,245 |
688 | {
"name": "autumnswinds",
"version": "1.0.2",
"description": "A use of angular framework to write the news system",
"main": "gulpfile.js",
"scripts": {
"test": "gulp"
},
"repository": {
"type": "git",
"url": "https://github.com/Wscats"
},
"dependencies": {
"gulp": "*"
},
"keywords": [
"angular",
... | 211 |
547 | <reponame>machenmusik/exokit<filename>deps/exokit-bindings/util/include/defines.h<gh_stars>100-1000
#ifndef _DEFINES_H_
#define _DEFINES_H_
#include <v8.h>
#include <nan.h>
using namespace v8;
#define JS_STR(...) Nan::New<v8::String>(__VA_ARGS__).ToLocalChecked()
#define JS_INT(val) Nan::New<v8::Integer>(val)
#defin... | 763 |
435 | package org.uma.jmetal.problem.multiobjective;
import org.uma.jmetal.problem.doubleproblem.impl.AbstractDoubleProblem;
import org.uma.jmetal.solution.doublesolution.DoubleSolution;
import java.util.ArrayList;
import java.util.List;
/**
* Class representing problem Tanaka
*/
@SuppressWarnings("serial")
public class... | 631 |
9,075 | //
// Dock.h
// MG
//
// Created by <NAME> on 5/22/14.
//
//
#import <Foundation/Foundation.h>
#import "Command.h"
@protocol DockExports <JSExport>
@property (readonly) NSString* badge;
- (void) addBadge: (NSString*) badge;
- (void) removeBadge;
@end
@interface Dock : Command <DockExports>
@end
| 122 |
582 | /*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | 373 |
348 | <filename>docs/data/leg-t2/077/07707364.json
{"nom":"<NAME>","circ":"7ème circonscription","dpt":"Seine-et-Marne","inscrits":150,"abs":103,"votants":47,"blancs":5,"nuls":1,"exp":41,"res":[{"nuance":"FN","nom":"<NAME>","voix":28},{"nuance":"REM","nom":"<NAME>","voix":13}]} | 115 |
3,308 | <reponame>spnraju/Detox
{
"extends": "..",
"include": ["*.ts"],
"exclude": [],
"compilerOptions": {
"types": ["node", "detox"],
"skipLibCheck": false,
"strict": true,
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true
}
}
| 137 |
724 | from .mutate import DAGMutateSearchSpace
__all__ = ["DAGMutateSearchSpace"]
| 26 |
308 | <reponame>nawshad/multi-task-NLP
'''
Script to manage datasets for multiple tasks
'''
from torch.utils.data import Dataset, DataLoader, BatchSampler
from utils.data_utils import TaskType, ModelType
import torch
import random
import logging
import json
logger = logging.getLogger("multi_task")
class allTasksDataset(Data... | 4,491 |
12,820 | <reponame>pchandrasekaran1595/onnx
#!/usr/bin/env python
# SPDX-License-Identifier: Apache-2.0
import subprocess
import os
def main(): # type: () -> None
try:
root_folder = os.path.realpath(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
os.chdir(root_folder)
# Use --no-si... | 280 |
1,702 | <reponame>mhalbritter/spring-native<gh_stars>1000+
package com.example.kafka;
import org.apache.kafka.clients.admin.NewTopic;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.a... | 1,091 |
5,169 | {
"name": "NSLib",
"version": "1.0.0",
"license": "Proprietary",
"summary": "Network layer & model classes",
"homepage": "http://sibisoft.com",
"authors": "<NAME>",
"source": {
"git": "muhammadrizwan@192.168.7.162:/opt/git/NetworkLib.git",
"tag": "1.0.0"
},
"source_files": [
"NSLib/**/*.sw... | 279 |
2,151 | // 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.
// This file defines helper functions for accessing the clipboard.
#ifndef CHROME_BROWSER_UI_OMNIBOX_CLIPBOARD_UTILS_H_
#define CHROME_BROWSER_UI_OMNIBOX... | 211 |
416 | <gh_stars>100-1000
//
// CPInformationItem.h
// CarPlay
//
// Copyright © 2020 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macos, watchos, tvos)
@interface CPInformationItem : NSObject <NSSecureCoding>
/**
Initializes a ne... | 310 |
468 | {
"name": "matrix",
"author": "<NAME>",
"license": "CC BY-NC-ND 4.0",
"raster": "http://hexb.in/hexagons/matrix.png",
"vector": "http://hexb.in/vector/matrix.svg",
"description": "An open network for secure, decentralized communication. (https://matrix.org)"
}
| 104 |
728 | package org.sirix.gui.view;
import org.sirix.api.NodeReadTrx;
import org.sirix.diff.DiffFactory.DiffType;
public class TransactionTuple {
private long mKey;
private NodeReadTrx mRtx;
private DiffType mDiff;
private int mDepth;
public TransactionTuple(final long pKey, final NodeReadTrx pRtx,
final... | 285 |
657 | <filename>lib/slack/web/docs/users.list.json
{
"desc": "Lists all users in a Slack team.",
"args": {
"presence": {
"required" : false,
"example" : 1,
"desc" : "Whether to include presence data in the output"
}
}
}
| 105 |
531 | <gh_stars>100-1000
/**
* Copyright © 2019 同程艺龙 (<EMAIL>)
*
* 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... | 801 |
302 | <reponame>susannahsoon/oldperth
#!/usr/bin/python
coders = []
def registerCoderClass(klass):
global coders
coders.append(klass)
def coderClasses():
global coders
return coders
| 71 |
809 | /**
* @file
*
* @date Jan 12, 2021
* @author <NAME>
*/
#include <stdint.h>
const uint8_t demo_image_mono_128x128[128*16] = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, ... | 7,555 |
841 | <filename>account/tests/test_decorators.py
from unittest import mock
from django.http import HttpResponse
from django.test import TestCase
from account.decorators import login_required
@login_required
def mock_view(request, *args, **kwargs):
return HttpResponse('OK', status=200)
class LoginRequiredDecoratorTe... | 287 |
601 | <filename>openrndr-jvm/openrndr-adopted-artifex/src/main/java/io/lacuna/artifex/Curve2.java
package io.lacuna.artifex;
import io.lacuna.artifex.utils.Intersections;
import java.util.Arrays;
import static io.lacuna.artifex.Box.box;
import static java.lang.Math.abs;
/**
* @author ztellman
*/
public interface Curve2... | 1,617 |
1,475 | /*
* 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 not ... | 1,815 |
854 | <filename>Java/866.java
__________________________________________________________________________________________________
sample 0 ms submission
class Solution {
int[] x = { 2, 3, 5, 7, 11, 101, 131, 151, 181, 191, 313, 353, 373, 383, 727, 757, 787, 797, 919, 929, 10301, 10501,
10601, 11311, 11411, 124... | 5,670 |
481 | <filename>env/lib/python2.7/site-packages/wtforms/ext/csrf/__init__.py
from wtforms.ext.csrf.form import SecureForm
| 45 |
669 | # Copyright 2020 The TensorFlow Runtime 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... | 1,779 |
334 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 2,033 |
2,151 | /*
* Copyright (C) 2004, 2005 <NAME> <<EMAIL>>
* Copyright (C) 2004, 2005, 2006 <NAME> <<EMAIL>>
* Copyright (C) 2009 Google, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation... | 1,539 |
656 | /* The MIT License
Copyright (C) 2011 by <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy,... | 3,068 |
3,369 | #include <AppCore/AppCore.h>
#include "UI.h"
using namespace ultralight;
class Browser {
public:
Browser();
virtual ~Browser();
virtual void Run();
protected:
RefPtr<App> app_;
RefPtr<Window> window_;
std::unique_ptr<UI> ui_;
};
| 114 |
1,293 | /*
* Copyright (c) 2021 - Manifold Systems 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 ... | 876 |
3,102 | <filename>clang/test/CodeGenCXX/trivial-constructor-init.cpp
// RUN: %clang_cc1 -emit-llvm %s -o - -std=c++11 -triple %itanium_abi_triple | FileCheck %s
extern "C" int printf(...);
struct S {
S() { printf("S::S\n"); }
};
struct A {
double x;
A() : x(), y(), s() { printf("x = %f y = %x \n", x, y); }
int *y;
... | 319 |
357 | /*
* Copyright (c) 2012-2015 VMware, 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 ... | 429 |
4,716 | <filename>xonsh/parsers/v39.py
"""Handles changes since PY39
handle
- removal of ast.Index and ast.ExtSlice -- https://bugs.python.org/issue34822 -- more info
`at<https://docs.python.org/3/whatsnew/3.9.html?highlight=simplified%20ast%20subscription#changes-in-the-python-api>`_.
"""
import ast
from xonsh.parsers.... | 1,000 |
318 | // __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this f... | 4,132 |
14,668 | // Copyright 2017 The Crashpad 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 ... | 824 |
5,208 | <filename>src/main/java/io/vertx/core/http/impl/HttpRequestHead.java
/*
* Copyright (c) 2011-2019 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.... | 543 |
307 | <gh_stars>100-1000
/*
* 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.
*
*/
#include "globalincs/alphacolors.h"
#include "graphi... | 3,130 |
3,476 | <filename>LBXScanDemo/Pods/Headers/Public/LBXScan/ZXMathUtils.h
/*
* Copyright 2012 ZXing 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/license... | 278 |
378 | /**
* 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"); yo... | 4,183 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.messaging.eventhubs.perf;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Keeps track of events received.
*
* @see EventProcessorTest
*/
... | 740 |
580 | <filename>icevision/models/fastai/unet/lightning/__init__.py
from icevision.models.fastai.unet.lightning.model_adapter import *
| 45 |
837 | """
Generate the BASE64_DECODE_TABLE constant. See its doc-comment.
"""
import string
# https://tools.ietf.org/html/rfc4648#section-4
alphabet = string.ascii_uppercase + string.ascii_lowercase + string.digits + "+/"
assert len(alphabet) == 64
reverse_table = [-1] * 256
for i, symbol in enumerate(alphabet):
rever... | 193 |
3,787 | #
# Copyright 2019 The FATE 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 appli... | 1,406 |
36,552 | /*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 908 |
578 | <reponame>raptoravis/two
#include <xx_three/xx_three.h>
#include <gfx-pbr/Api.h>
#include <stl/vector.hpp>
using namespace two;
EX(xx_interact_geom)
{
#if UI
UNUSED(dockbar);
SceneViewer& viewer = ui::scene_viewer(parent);
Scene& scene = viewer.m_scene;
#else
static Scene scene = Scene(app.m_gfx);
static GfxVie... | 1,794 |
810 | package com.example.nanchen.aiyaschoolpush.ui.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;... | 2,134 |
551 | <reponame>SharpnelXu/etterna
#include "Etterna/Globals/global.h"
#include "Etterna/Singletons/GameState.h"
#include "Etterna/Singletons/ScreenManager.h"
#include "Etterna/Singletons/ProfileManager.h"
#include "ScreenProfileLoad.h"
REGISTER_SCREEN_CLASS(ScreenProfileLoad);
void
ScreenProfileLoad::Init()
{
LOAD_EDITS.... | 823 |
874 | <filename>src/main/java/com/jnape/palatable/lambda/internal/iteration/CyclicIterable.java
package com.jnape.palatable.lambda.internal.iteration;
import java.util.Iterator;
public final class CyclicIterable<A> implements Iterable<A> {
private final Iterable<A> as;
public CyclicIterable(Iterable<A> as) {
... | 229 |
7,312 | <reponame>yuyedaidao/CYLTabBarController<filename>CYLTabBarController/UIViewController+CYLNavigationControllerExtention.h
/*
// CYLTabBarController
// CYLTabBarController
//
// Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 03/06/19.
// Copyright © 2019 https://github.com/ChenYilong . All righ... | 778 |
9,782 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 3,226 |
917 | /*******************************************************************************
*
* (C) COPYRIGHT AUTHORS, 2016 - 2021
*
* TITLE: MAIN.C
*
* VERSION: 1.03
*
* DATE: 02 Apr 2021
*
* Example driver for driver loaders usage (KDU/ALICE)
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRAN... | 1,214 |
4,036 | <gh_stars>1000+
__metaclass__ = type
class NewStyleEvenForPython2:
__slots__ = [ "ok" ]
class OkToUseSuper(NewStyleEvenForPython2):
def __init__(self):
super(OkToUseSuper, self).__init__()
| 88 |
345 | <reponame>cdoebler1/AIML2
import xml.etree.ElementTree as ET
from programy.parser.exceptions import ParserException
from programy.parser.template.nodes.base import TemplateNode
from programy.parser.template.nodes.richmedia.card import TemplateCardNode
from programytest.parser.template.graph_tests.graph_test_client imp... | 2,559 |
649 | package net.serenitybdd.core.history;
import com.google.inject.Inject;
import net.serenitybdd.core.collect.NewSet;
import net.thucydides.core.model.TestOutcome;
import net.thucydides.core.model.TestResult;
import net.thucydides.core.model.flags.Flag;
import net.thucydides.core.model.flags.FlagProvider;
import net.thuc... | 1,198 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Plunge",
"definitions": [
"An act of jumping or diving into water.",
"A swift and drastic fall in value or amount."
],
"parts-of-speech": "Noun"
} | 98 |
721 | <gh_stars>100-1000
/*
* Copyright 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 848 |
1,118 | #!/usr/bin/env python
# RS485 support
#
# This file is part of pySerial. https://github.com/pyserial/pyserial
# (C) 2015 <NAME> <<EMAIL>>
#
# SPDX-License-Identifier: BSD-3-Clause
"""\
The settings for RS485 are stored in a dedicated object that can be applied to
serial ports (where supported).
NOTE: Some implemen... | 1,296 |
859 | """
Cookiecutter-based generation logic for project templates.
"""
from samcli.commands.exceptions import UserException
from samcli.lib.init import generate_project
from samcli.lib.init.exceptions import InitErrorException
def do_generate(location, package_type, runtime, dependency_manager, output_dir, name, no_inpu... | 284 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Bronchoscope",
"definitions": [
"A fibre-optic cable that is passed into the windpipe in order to view the bronchi."
],
"parts-of-speech": "Noun"
} | 91 |
1,251 | <reponame>almiao/dbblog
package cn.dblearn.blog.entity.sys.form;
import lombok.Data;
/**
* SysLoginForm
*
* @author bobbi
* @date 2018/10/20 14:51
* @email <EMAIL>
* @description 登录表单对象
*/
@Data
public class SysLoginForm {
private String username;
private String password;
private String captcha;
... | 140 |
14,668 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_SYSTEM_PCIE_PERIPHERAL_PCIE_PERIPHERAL_NOTIFICATION_CONTROLLER_H_
#define ASH_SYSTEM_PCIE_PERIPHERAL_PCIE_PERIPHERAL_NOTIFICATION_CONTROLLER_H... | 836 |
391 | /*
* Copyright 2018 <NAME>
*
* The MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merg... | 1,561 |
11,775 | /*
* Copyright 2018 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... | 6,620 |
17,323 | [[
"start",
["constant.language.instrument.alda","vibraphone"],
["meta.part.call.alda",":"]
],[
"start",
["text"," "],
["meta.inline.clojure.alda","(quant 200)"]
],[
"start",
["text"," "],
["meta.inline.clojure.alda","(key-signature \"f+ c+ g+\")"]
],[
"start",
["text"," a"],
["string.quo... | 589 |
793 | <filename>llvm/tools/clang/test/OpenMP/parallel_copyin_messages.cpp
// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 -o - %s
// RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 -o - %s
void foo() {
}
bool foobool(int argc) {
return argc;
}
struct S1; // expected-note {{declared here}}
class S2 {
mut... | 877 |
1,013 | """!
@brief Examples of usage and demonstration of abilities of BANG algorithm in cluster analysis.
@authors <NAME> (<EMAIL>)
@date 2014-2020
@copyright BSD-3-Clause
"""
import os
from pyclustering.cluster.bang import bang, bang_visualizer, bang_animator
from pyclustering.utils import draw_image_mask_segments, r... | 1,226 |
313 | <gh_stars>100-1000
package com.netflix.titus.ext.jobactivityhistory;
import com.netflix.titus.common.runtime.TitusRuntime;
import com.netflix.titus.common.runtime.TitusRuntimes;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
impo... | 462 |
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... | 4,172 |
747 | <filename>include/encrypt.h
//
// encrypt.h
// Algorithms - Encrypt
//
// Created by YourtionGuo on 22/05/2017.
// Copyright © 2017 Yourtion. All rights reserved.
//
#ifndef ENCRYPT_H
#define ENCRYPT_H
/**
采用 DES 算法将明文 plaintext 的一个 64 位的明文组加密 - O(1)
@param plaintext 明文组
@param ciphertext 返回的 64 位密文组
@param... | 890 |
2,151 | <reponame>zipated/src<filename>extensions/browser/api/web_request/web_request_info.h
// 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 EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_INFO_H_
#defin... | 2,048 |
3,580 | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-unsafe
from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import Dict, Type, Union, Optional, Sequence, C... | 1,670 |
1,668 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import ralph.lib.mixins.fields
class Migration(migrations.Migration):
dependencies = [
('back_office', '0010_backofficeasset_imei2'),
]
operations = [
migrations.AlterField(
... | 342 |
369 | <gh_stars>100-1000
// Copyright (c) 2017-2021, Mudit<NAME>. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include <at/cmd/QSIMSTAT.hpp>
#include <log/log.hpp>
#include <memory>
#include <string>
namespace at
{
namespace cmd
{
QSIMSTAT::QSIMSTAT(at::cmd::Mod... | 1,502 |
1,382 | /*
* Copyright (c) 2007 - 2015 <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 limitation the rights
* to use, copy, modify, merge, publi... | 959 |
348 | /*
* Copyright 2010-2021 Australian Signals Directorate
*
* 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 a... | 2,245 |
528 | <gh_stars>100-1000
/******************************************************************************
Copyright 2020-2021 <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.... | 2,218 |
4,772 | package example.repo;
import example.model.Customer623;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer623Repository extends CrudRepository<Customer623, Long> {
List<Customer623> findByLastName(String lastName);
}
| 83 |
646 | /*
Copyright (c) 2017 TOSHIBA Digital Solutions Corporation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This... | 13,006 |
777 | <filename>chrome/browser/media_galleries/fileapi/file_path_watcher_util.h
// Copyright 2013 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_GALLERIES_FILEAPI_FILE_PATH_WATCHER_UTIL_H_
#define... | 438 |
544 | <gh_stars>100-1000
from office365.entity import Entity
from office365.runtime.client_result import ClientResult
from office365.runtime.http.http_method import HttpMethod
from office365.runtime.queries.service_operation_query import ServiceOperationQuery
class Attachment(Entity):
"""A file or item (contact, event ... | 1,023 |
1,389 | # Copyright (c) 2021 PaddlePaddle 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 appli... | 920 |
2,151 | import imp
import os
import py_compile
import shutil
import tempfile
import unittest
from test import test_support
class PyCompileTests(unittest.TestCase):
def setUp(self):
self.directory = tempfile.mkdtemp()
self.source_path = os.path.join(self.directory, '_test.py')
self.pyc_path = self... | 802 |
431 | <reponame>ripdajacker/enunciate
/**
* Copyright © 2006-2016 Web Cohesion (<EMAIL>)
*
* 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
*
* ... | 2,581 |
454 | package com.scwang.smart.refresh.horizontal;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import com.scwang.smart.refresh.layout.api.RefreshComponent;
import com.scwang.smart.refresh.layout.simple.SimpleComponent;
import java.util.ArrayList;
import java.util.List;
/**
... | 1,768 |
520 | <gh_stars>100-1000
/*
* Copyright (C) 2019 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 9,935 |
533 | #include "framework/operators/affine_channel.h"
namespace anakin {
namespace ops {
#define INSTANCE_ACTIVATION(Ttype, Ptype) \
template<> \
void AffineChannel<Ttype, Ptype>::operator()(OpContext<Ttype>& ctx, \
const std::vector<Tensor4dPtr<Ttype> >& ins, \
std::vector<Tensor4dPtr<Ttype> >& outs) { \
auto... | 1,557 |
348 | {"nom":"Saint-Etienne-du-Valdonnez","circ":"1ère circonscription","dpt":"Lozère","inscrits":488,"abs":206,"votants":282,"blancs":35,"nuls":13,"exp":234,"res":[{"nuance":"LR","nom":"<NAME>","voix":119},{"nuance":"REM","nom":"<NAME>","voix":115}]} | 97 |
2,322 | <reponame>xilwen/wine<gh_stars>1000+
/*
* PostScript driver initialization functions
*
* Copyright 1998 <NAME>
* Copyright 2001 <NAME>
*
* This 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 Founda... | 14,641 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-95cg-xx3r-rr3x/GHSA-95cg-xx3r-rr3x.json<gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-95cg-xx3r-rr3x",
"modified": "2022-05-02T06:21:57Z",
"published": "2022-05-02T06:21:57Z",
"aliases": [
"CVE-2010-1364"
],
"details": "SQL injection vulnerabil... | 573 |
331 | # flake8: noqa E501
from typing import Any, Dict, List, Union, Text
from flask import (
json,
request,
Blueprint,
redirect,
url_for,
current_app,
jsonify,
abort,
)
import uuid
from flask.templating import render_template
from flask_discord import requires_authorization, Unauthorized
fro... | 2,928 |
1,350 | <reponame>billwert/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.recoveryservices.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.ut... | 1,288 |
410 | <filename>Source/Runtime/Public/Math/Hammersley.h
// Copyright(c) 2017 POLYGONTEK
//
// 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
//
/... | 868 |
1,073 | /*
* Copyright 2014 OSBI Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... | 1,019 |
12,651 | import torch
from torch_geometric.transforms import GridSampling
from torch_geometric.data import Data
def test_grid_sampling():
assert GridSampling(5).__repr__() == 'GridSampling(size=5)'
pos = torch.Tensor([[0, 2], [3, 2], [3, 2], [2, 8], [2, 6]])
y = torch.tensor([0, 1, 1, 2, 2])
batch = torch.ten... | 254 |
5,169 | {
"authors": "Google, Inc.",
"dependencies": {
"GoogleToolboxForMac/NSDictionary+URLArguments": "~> 2.1",
"GoogleToolboxForMac/NSString+URLArguments": "~> 2.1"
},
"description": "This POD contains the exact original GoogleSignIn framework, repacked as dynamic. See the README for more information.",
"f... | 398 |
575 | # /xhr/resources/conditional.py -- to fake a 304 response
def main(request, response):
tag = request.GET.first(b"tag", None)
redirect = request.GET.first(b"redirect", None)
match = request.headers.get(b"If-None-Match", None)
date = request.GET.first(b"date", b"")
modified = request.headers.get(b"If... | 414 |
533 | <gh_stars>100-1000
#include "framework/operators/conv_unpadding_padding.h"
namespace anakin {
namespace ops {
template<typename Ttype, Precision Ptype>
Status ConvUnpaddingPaddingHelper<Ttype, Ptype>::InitParam() {
DLOG(WARNING) << "Parsing ConvUnpaddingPadding op parameter.";
_param_conv_upadding_padding = ... | 1,280 |
445 | /*
% g++ -I.. -I../cpu -I../instrument/stubs -Wno-invalid-offsetof @ -o #
*/
#include <stddef.h>
#define COG 1
#include <bochs.h>
#define NEED_CPU_REG_SHORTCUTS
#include <cpu.h>
static char buf[10];
char *
lower(char *s)
{
int i;
for (i = 0; i < strlen(s); i++)
buf[i] = tolower(s[i]);
buf[i] = 0;
return b... | 1,134 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.