max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,443 | <reponame>cssence/mit-license
{
"copyright": "<NAME>",
"url": "http://endel.me",
"email": "<EMAIL>",
"theme": "flesch",
"gravatar": true
}
| 67 |
480 | // Copyright 2019 Espressif Systems (Shanghai) PTE 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 applic... | 5,633 |
830 | <reponame>LaudateCorpus1/deepmath<filename>deepmath/zz/CodeBreeder/HeapSynth.cc
/* Copyright 2017 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.apa... | 2,377 |
648 | <reponame>swrobel/fhir
{"resourceType":"DataElement","id":"QuestionnaireResponse.status","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/QuestionnaireResponse.status","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"QuestionnaireRespon... | 288 |
862 | <filename>atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/coordination/CoordinationResource.java
/*
* (c) Copyright 2018 Palantir Technologies 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 ... | 973 |
2,177 | <reponame>yagosys/AlfredWorkflow.com<filename>Sources/Workflows/Todo/itemview.py
# -*- coding: utf-8 -*-
from uuid import uuid4
import alfred
import parser
import itemlist
import helpers
import config
def generate_add_feedbackitem(query, info):
q = info['task']
tag = info['tag']
title = "New item '" + ('...' if... | 1,258 |
429 | <filename>Boot/Windows/IntFilter.cpp
/*
Copyright (c) 2008 TrueCrypt Developers Association. All rights reserved.
Governed by the TrueCrypt License 3.0 the full text of which is contained in
the file License.txt included in TrueCrypt binary and source code distribution
packages.
*/
#include "Platform.h"
#include ... | 5,665 |
2,209 | from datetime import datetime, timedelta
from tabulate import tabulate
import click
from kungfu.command.journal import journal, pass_ctx_from_parent
import kungfu.yijinjing.time as kft
import kungfu.yijinjing.journal as kfj
SESSION_DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S'
DURATION_FORMAT = '%H:%M:%S.%N'
DURATION_TZ_ADJ... | 574 |
2,504 | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FO... | 1,896 |
764 | {"symbol": "YFMS","address": "0xfef3bEf71A5EB97E097039038776fD967ae5B106","overview":{"en": "YF Moonshot is a DeFi protocol which allows users to stake their cryptocurrency assets in various different pools (USDT, DAI, TUSD) and earn governance token YFMS as reward."},"email": "","website": "https://www.yfmoonshot.com"... | 207 |
692 | <reponame>learnforpractice/micropython-cpp
print('foo')
| 20 |
1,275 | <reponame>fredsterorg/incubator-pinot
/**
* 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 Licens... | 1,683 |
8,027 | <filename>test/com/facebook/buck/apple/testdata/swift_header_dep_caching/producer.h
static int kFoo = 42; | 39 |
940 | /*
* spcflags.hpp - CPU special flags
*
* Kheperix (C) 2003-2005 <NAME>
*
* 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 Foundation; either version 2 of the License, or
* (at your option) any... | 620 |
3,428 | {"id":"00290","group":"easy-ham-1","checksum":{"type":"MD5","value":"98400fc8bb102f11e201c037a613cf85"},"text":"From <EMAIL> Wed Oct 9 10:53:11 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: zzzz@localhost.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby spamassassin.taint.org (Postfix) with... | 1,278 |
1,228 | <gh_stars>1000+
package com.fly.blog.client.hystrix;
import com.fly.blog.client.UserServiceClient;
import com.fly.blog.entity.User;
import com.fly.common.dto.RespDTO;
import org.springframework.stereotype.Component;
/**
* Description: <UserServiceHystrix><br>
* Author: mxdl<br>
* Date: 2019/2/19<br>
* Ver... | 238 |
1,014 | <reponame>MobileAir/FinanceDatabase
[
"Agricultural Inputs",
"Airlines",
"Apparel Retail",
"Asset Management",
"Banks - Diversified",
"Banks - Regional",
"Beverages - Brewers",
"Beverages - Non-Alcoholic",
"Beverages - Wineries & Distilleries",
"Building Materials",
... | 572 |
2,151 | <reponame>AOSiP/platform_external_libcxx<gh_stars>1000+
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for d... | 168 |
669 | <gh_stars>100-1000
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# ----------------------------------------------------------------... | 2,488 |
1,738 | <reponame>jeikabu/lumberyard
/*
* 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 governed by the License,
* or, if provid... | 3,862 |
348 | {"nom":"Chalonnes-sur-Loire","circ":"2ème circonscription","dpt":"Maine-et-Loire","inscrits":4852,"abs":2021,"votants":2831,"blancs":68,"nuls":29,"exp":2734,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":1465},{"nuance":"LR","nom":"<NAME>","voix":378},{"nuance":"FI","nom":"Mme <NAME>","voix":259},{"nuance":"FN","nom"... | 320 |
347 |
#include "AnimGraphNode_MotionField.h"
#include "MotionMatchingEditor.h"
#define LOCTEXT_NAMESPACE "A3Nodes"
UAnimGraphNode_MotionField::UAnimGraphNode_MotionField(const FObjectInitializer& ObjectInitializer)
:Super(ObjectInitializer)
{
}
FLinearColor UAnimGraphNode_MotionField::GetNodeTitleColor() const
{
retu... | 280 |
373 | <reponame>ADLINK/edk2-platforms
/** @file
This protocol indicates that the platform SPI interface is ready for use.
Copyright (c) 2013-2015 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _PLATFORM_SPI_READY_H_
#define _PLATFORM_SPI_READY_H_
// {7A5DBC75-5B2B-4e67-BDE1-D48... | 303 |
1,633 | from arbitrage import arbitrage
arbitrage.main()
| 15 |
14,668 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_WIN_CONFLICTS_ENUMERATE_INPUT_METHOD_EDITORS_H_
#define CHROME_BROWSER_WIN_CONFLICTS_ENUMERATE_INPUT_METHOD_EDITORS_H_
#include <s... | 384 |
3,579 | package com.querydsl.spatial.hibernate;
import static org.junit.Assert.assertTrue;
import java.util.Map;
import org.junit.Test;
import com.querydsl.core.types.Operator;
import com.querydsl.spatial.SpatialOps;
public class HibernateSpatialSupportTest {
@Test
public void allMapped() {
Map<Operator, ... | 206 |
1,570 | from tastypie.api import Api
my_api = Api()
| 19 |
1,205 | <reponame>DT021/findatapy
__author__ = 'saeedamen' # <NAME>
#
# Copyright 2016-2021 Cuemacro
#
# 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
#
# Unl... | 2,287 |
631 | <reponame>767248371/octo-rpc
/**
* Autogenerated by Thrift Compiler (0.8.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#ifndef Echo_H
#define Echo_H
#include <transport/TBufferTransports.h>
#include <tr1/functional>
namespace apache { namespace thrift { namespace async {... | 4,195 |
1,147 | <reponame>akirallL/TurboTransformers
# Copyright (C) 2020 THL A29 Limited, a Tencent company.
# All rights reserved.
# Licensed under the BSD 3-Clause License (the "License"); you may
# not use this file except in compliance with the License. You may
# obtain a copy of the License at
# https://opensource.org/licenses/B... | 2,908 |
7,706 | <filename>plugin/src/main/java/com/google/tsunami/plugin/PluginManager.java
/*
* 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/lic... | 2,771 |
1,191 | /**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2016 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
package ti.modules.titanium.android;
import java.util.ArrayList;
import java.util... | 2,107 |
669 | <filename>fbrp/src/fbrp/life_cycle.py
import threading
from fbrp import util
import a0
import dataclasses
import enum
import json
import typing
import types
_TOPIC = "fbrp/state"
_CFG = a0.Cfg(_TOPIC)
class Ask(enum.Enum):
NONE = "NONE"
UP = "UP"
DOWN = "DOWN"
class State(enum.Enum):
UNKNOWN = "UNK... | 1,419 |
917 | /*******************************************************************************
*
* (C) COPYRIGHT AUTHORS, 2018 - 2021
*
* TITLE: VICTIM.H
*
* VERSION: 1.10
*
* DATE: 02 Apr 2021
*
* Victim support prototypes and definitions.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
*... | 254 |
2,268 | <reponame>TotallyMehis/source-sdk-2013<filename>sp/src/utils/lzma/C/Common/Alloc.h<gh_stars>1000+
// Common/Alloc.h
#ifndef __COMMON_ALLOC_H
#define __COMMON_ALLOC_H
#include <stddef.h>
void *MyAlloc(size_t size) throw();
void MyFree(void *address) throw();
#ifdef _WIN32
bool SetLargePageSize();
void *MidAlloc(si... | 251 |
848 | /*
* Copyright 2019 Xilinx Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 727 |
335 | <filename>I/Innocuous_adjective.json
{
"word": "Innocuous",
"definitions": [
"Not harmful or offensive."
],
"parts-of-speech": "Adjective"
} | 76 |
1,350 | <filename>sdk/cosmos/azure-cosmos/src/test/java/com/azure/cosmos/CosmosTriggerTest.java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos;
import com.azure.cosmos.models.CosmosTriggerResponse;
import com.azure.cosmos.models.CosmosTr... | 1,925 |
1,093 | from PyQt5.QtCore import Qt, pyqtSignal
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QDialog, QLabel, QGridLayout, QDialogButtonBox, QLineEdit
from lanzou.gui.qss import dialog_qss_style
from lanzou.gui.models import FileInfos
from lanzou.debug import SRC_DIR
class SetPwdDialog(QDialog):
new_infos =... | 2,337 |
2,151 | <reponame>zipated/src
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/arc/auth/arc_auth_service.h"
#include <utility>
#include "base/command_line.h"
#include "base/me... | 5,330 |
4,200 | /*
* Copyright 2018 Rundeck, Inc. (http://rundeck.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 307 |
2,164 | ../../../SDWebImage/SDWebImage/SDWebImageImageIOCoder.h | 20 |
23,901 | # coding=utf-8
# Copyright 2021 The Google Research 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 applicab... | 1,166 |
353 | <reponame>codeproject/DeepStack<filename>windows_packages_gpu/torch/include/torch/csrc/utils/throughput_benchmark.h
#pragma once
#include <ATen/core/ivalue.h>
#include <torch/csrc/jit/api/module.h>
#include <pybind11/pybind11.h>
#include <torch/csrc/jit/python/pybind_utils.h>
#include <iostream>
#include <m... | 2,188 |
777 | <reponame>google-ar/chromium
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MailboxTextureHolder_h
#define MailboxTextureHolder_h
#include "platform/PlatformExport.h"
#include "platform/graphi... | 682 |
3,269 | <filename>C++/pacific-atlantic-water-flow.cpp
// Time: O(m * n)
// Space: O(m * n)
class Solution {
public:
vector<pair<int, int>> pacificAtlantic(vector<vector<int>>& matrix) {
if (matrix.empty()) {
return {};
}
vector<pair<int, int>> res;
const auto m = matrix.s... | 877 |
389 | <gh_stars>100-1000
package editor.util;
public class Pair<A, B>
{
A _a;
B _b;
public Pair( A a, B b )
{
_a = a;
_b = b;
}
public A getFirst()
{
return _a;
}
public B getSecond()
{
return _b;
}
}
| 119 |
7,482 | <filename>bsp/rm48x50/HALCoGen/include/emac.h
/**
* \file emac.h
*
* \brief EMAC APIs and macros.
*
* This file contains the driver API prototypes and macro definitions.
*/
/* (c) Texas Instruments 2009-2013, All rights reserved. */
#ifndef __EMAC_H__
#define __EMAC_H__
#include "sys_common.h"
#include ... | 1,979 |
757 | import os
import tqdm
import torch
import torch.nn as nn
import torch.nn.functional as F
import argparse
import torchvision.transforms as transforms
from torchvision import datasets
from model.model import RandWire
from utils.hparams import HParam
from utils.graph_reader import read_graph
from utils.evaluation import ... | 682 |
1,695 | <reponame>SanjayTechGuru/TRINO
/*
* 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... | 3,108 |
575 | <reponame>sarang-apps/darshan_browser<gh_stars>100-1000
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_DOWNLOAD_NOTIFICATION_DOWNLOAD_NOTIFICATION_MANAGER_H_
#define CHROME_BROWS... | 496 |
854 | <gh_stars>100-1000
__________________________________________________________________________________________________
4ms
int optimization = []() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
return 0;
}();
class Solution {
public:
vector<int> twoSum(vector<int>& numbers, int target) {
vector... | 710 |
608 | <filename>package.json<gh_stars>100-1000
{
"name": "ts-optchain",
"version": "0.1.8",
"description": "Optional Chaining for TypeScript",
"repository": {
"type": "git",
"url": "git+https://github.com/rimeto/ts-optchain.git"
},
"main": "./dist/proxy/index.js",
"types": "./index.d.ts",
"files": [
... | 709 |
2,103 | #!/usr/bin/env python
# Copyright (c) 2019 The Khronos Group Inc.
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE.txt file.
"""
Generator for uniformbuffers* tests.
This file needs to be run in its folder.
"""
import sys
_DO_NOT_EDIT_WARNING = """<!--
This file ... | 889 |
648 | {"resourceType":"CodeSystem","id":"adjudication","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00","profile":["http://hl7.org/fhir/StructureDefinition/shareablecodesystem"]},"text":{"status":"generated","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <h2>Adjudication Value Codes</h2>\n <... | 2,167 |
1,002 | <filename>winrt/test.internal/xaml/GameLoopThreadTests.cpp<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
#include "pch.h"
#include <lib/xaml/GameLoopThread.h>
#include "MockCoreIndependent... | 5,200 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-7rvr-gh9x-q4mq/GHSA-7rvr-gh9x-q4mq.json
{
"schema_version": "1.2.0",
"id": "GHSA-7rvr-gh9x-q4mq",
"modified": "2022-05-01T07:38:08Z",
"published": "2022-05-01T07:38:08Z",
"aliases": [
"CVE-2006-6458"
],
"details": "The Trend Micro scan engine before 8.320 f... | 596 |
2,338 | <reponame>mkinsner/llvm
/*
* Copyright 2019 Cerebras Systems
*
* Use of this software is governed by the MIT license
*
* Written by <NAME>,
* Cerebras Systems, 175 S San Antonio Rd, Los Altos, CA, USA
*/
#define xFN(TYPE,NAME) TYPE ## _ ## NAME
#define FN(TYPE,NAME) xFN(TYPE,NAME)
/* Return a list of mini... | 738 |
343 | <gh_stars>100-1000
package org.cronhub.managesystem.commons.utils;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.commons.lang.StringUtils;
import org.apache.struts2.ServletActionContext;
import org.cronhub.... | 1,373 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 18,163 |
315 | <filename>include/Module/Channel/AWGN/Channel_AWGN_LLR.hpp
/*!
* \file
* \brief Class module::Channel_AWGN_LLR.
*/
#ifndef CHANNEL_AWGN_LLR_HPP_
#define CHANNEL_AWGN_LLR_HPP_
#include <memory>
#include "Tools/Algo/Draw_generator/Gaussian_noise_generator/Gaussian_noise_generator.hpp"
#include "Module/Channel/Channe... | 569 |
1,144 | // SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2002
* Sysgo Real-Time Solutions, GmbH <www.elinos.com>
* <NAME> <<EMAIL>>
*
* (C) Copyright 2002
* <NAME>, ELSOFT AG, <<EMAIL>>
*
* (C) Copyright 2003
* Texas Instruments, <www.ti.com>
* <NAME> <<EMAIL>>
*
* (C) Copyright 2004
* ARM Ltd.
* <NAME>, <... | 2,066 |
877 | <reponame>janrieke/checker-framework
@interface A1 {
String[] value() default {};
}
@interface A2 {
String[] value();
}
public class Annotation {
@A1({"a", "b"})
void m1() {}
@A1(value = {"a", "b"})
void m2() {}
@A2({"a", "b"})
void m3() {}
@A2(value = {"a", "b"})
void m4() {}
}
| 139 |
368 | package ezvcard.util;
import static ezvcard.util.TestUtils.assertEqualsAndHash;
import static ezvcard.util.TestUtils.assertEqualsMethodEssentials;
import static ezvcard.util.TestUtils.assertNothingIsEqual;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.... | 2,492 |
835 | import pytest
import six
import numbers
pytest.importorskip("numpy")
pytest.importorskip("pandas")
import hypothesis
from value_generator import api_and_values, series_api_and_values, dataframe_api_and_values
# Check if the given value fits the defined api
def fit_api(api, value):
if api['type'] == 'VertaNull... | 862 |
945 | /*
* 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 ... | 17,337 |
841 | /*
* Copyright 2021 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... | 860 |
355 | /*
Copyright 2017 yangchong211(github.com/yangchong211)
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... | 5,119 |
1,068 | package org.assertj.android.palette.v7.api.graphics;
import android.support.v7.graphics.Palette;
import org.assertj.core.api.AbstractAssert;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Assertions for {@link Palette} instances.
*/
public class PaletteAssert extends AbstractAssert<PaletteAssert,... | 899 |
348 | <gh_stars>100-1000
{"nom":"Betoncourt-sur-Mance","circ":"1ère circonscription","dpt":"Haute-Saône","inscrits":38,"abs":22,"votants":16,"blancs":5,"nuls":1,"exp":10,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":6},{"nuance":"FN","nom":"M<NAME>","voix":4}]} | 108 |
648 | #define TEST_LIBNAME "fluxcapacitor_test.so"
#define PRELOAD_LIBNAME "fluxcapacitor_preload.so"
extern struct timespec uevent_now;
#define ERRORF(x...) fprintf(stderr, x)
#define FATAL(x...) do { \
ERRORF("[-] PROGRAM ABORT : " x); \
ERRORF("\n Location : %s(), %s:%u\n\n", \
__FUNCTION__, _... | 1,630 |
467 | <gh_stars>100-1000
import random
import numpy as np
import torch
def set_seed(seed):
random.seed(seed)
np.random.seed(seed)
torch.manual_seed(seed)
torch.cuda.manual_seed_all(seed)
def is_whitespace(c):
if c == " " or c == "\t" or c == "\r" or c == "\n" or ord(c) == 0x202F:
return True
... | 149 |
1,146 | '''
Tokenization for the Vim command line.
'''
from Vintageous.ex.ex_error import ERR_UNKNOWN_COMMAND
from Vintageous.ex.ex_error import VimError
from . import subscanners
from .state import EOF
from .state import ScannerState
from .tokens import TokenComma
from .tokens import TokenDigits
from .tokens import TokenDol... | 1,949 |
438 | {
"DESCRIPTION": "˙ǝloɹ ɐ uo uoᴉʇɐɯɹoɟuᴉ ʇǝפ",
"USAGE": "role-info <ǝloɹ>",
"NAME": "{{NAME}} | ǝloɹ",
"MEMBERS": ":sɹǝqɯǝW",
"COLOR": ":ɹoloƆ",
"POSITION": ":uoᴉʇᴉsoԀ",
"MENTION": ":uoᴉʇuǝW",
"HOISTED": ":pǝʇsᴉoH",
"MENTIONABLE": ":ǝlqɐuoᴉʇuǝW",
"PERMISSION": ":suoᴉssᴉɯɹǝd ʎǝʞ",
"CREATED": ":ʇɐ p... | 310 |
328 | /**
* @file arp.c
*
*/
/* Copyright (C) 2018-2019 by <NAME> mailto:<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 right... | 2,359 |
378 | package com.quickblox.sample.videochat.conference.java.fcm;
import android.app.Activity;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.graph... | 1,324 |
606 | <filename>base/src/main/java/org/arend/typechecking/order/dependency/DummyDependencyListener.java
package org.arend.typechecking.order.dependency;
import org.arend.naming.reference.TCReferable;
import java.util.Collections;
import java.util.Set;
public class DummyDependencyListener implements DependencyListener {
... | 234 |
460 | <reponame>juandesant/astrometry.net
import os
import shutil
from astrometry.net.log import logmsg
class TempfileMiddleware:
def __init__(self, get_response):
self.get_response = get_response
# One-time configuration and initialization.
def __call__(self, request):
# Code to be execute... | 531 |
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,227 |
2,649 | <filename>app/src/main/java/json/chao/com/wanandroid/presenter/wx/WxDetailArticlePresenter.java
package json.chao.com.wanandroid.presenter.wx;
import javax.inject.Inject;
import json.chao.com.wanandroid.R;
import json.chao.com.wanandroid.app.WanAndroidApp;
import json.chao.com.wanandroid.base.presenter.BasePresenter;... | 2,268 |
1,144 | package de.metas.bpartner.service;
import org.adempiere.ad.persistence.ModelDynAttributeAccessor;
import org.compiere.model.I_C_AllocationHdr;
import org.compiere.model.I_C_BPartner_Stats;
import com.google.common.collect.ImmutableSet;
import de.metas.util.Check;
import de.metas.util.ISingletonService;
import lombok... | 654 |
667 | /*
* Copyright © 2013-2017 <NAME>
*
* This file is part of FreshPlayerPlugin.
*
* 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 r... | 6,429 |
471 | {
"extends": [
"config:base"
],
"rangeStrategy": "replace",
"node": {
"supportPolicy": "lts_latest"
},
"ignoreDeps": [
"@types/node"
]
}
| 76 |
421 |
#using <System.Xml.dll>
#using <System.dll>
#using <System.Windows.Forms.dll>
#using <System.Drawing.dll>
#using <System.Data.dll>
using namespace System;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::Windows::Forms;
public ref class Form1: public Form
{
protect... | 365 |
778 | //--------------------------------------------------------------------------------------------------------------------//
// //
// Tuplex: Blazing Fast Python Data Scien... | 1,874 |
407 | package com.alibaba.tesla.authproxy.util.audit;
public enum AuditReasonEnum {
UNAUTHORIZED,
AUTHORIZED,
NULL;
@Override
public String toString() {
return super.toString().toLowerCase();
}
}
| 94 |
372 | /*
*
* (c) Copyright 1989 OPEN SOFTWARE FOUNDATION, INC.
* (c) Copyright 1989 HEWLETT-PACKARD COMPANY
* (c) Copyright 1989 DIGITAL EQUIPMENT CORPORATION
* To anyone who acknowledges that this file is provided "AS IS"
* without any express or implied warranty:
* permission to use, copy, modify, an... | 2,137 |
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 COMPONENTS_METRICS_STRUCTURED_NEUTRINO_LOGGING_UTIL_H_
#define COMPONENTS_METRICS_STRUCTURED_NEUTRINO_LOGGING_UTIL_H_
#include "components/metric... | 432 |
2,027 | <reponame>sullis/atomix
/*
* Copyright 2015-present Open Networking Foundation
*
* 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,180 |
3,913 | package cn.iocoder.yudao.framework.sms.core.client.impl.aliyun;
import cn.hutool.core.util.ReflectUtil;
import cn.iocoder.yudao.framework.test.core.ut.BaseMockitoUnitTest;
import cn.iocoder.yudao.framework.common.core.KeyValue;
import cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeConstants;
import c... | 4,633 |
852 | #include "FastSimulation/Tracking/interface/TrackingLayer.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "DataFormats/SiStripDetId/interface/StripSubdetector.h"
const TrackingLayer::eqfct TrackingLayer::_eqfct;
TrackingLayer::TrackingLayer() : _subDet(Det::UNKNOWN), _side(Side::BARREL), _layerNumber(0)... | 3,606 |
19,628 | <filename>Android/doraemonkit/src/main/java/com/didichuxing/doraemonkit/kit/network/stream/HttpOutputStreamProxy.java
package com.didichuxing.doraemonkit.kit.network.stream;
import com.didichuxing.doraemonkit.kit.network.NetworkManager;
import com.didichuxing.doraemonkit.kit.network.bean.NetworkRecord;
import com.didi... | 594 |
1,493 | <reponame>Air-TR/urule-springboot
/*******************************************************************************
* Copyright 2017 Bstek
*
* 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 a... | 1,018 |
11,351 | package com.netflix.discovery.shared.transport.jersey;
import java.util.Collection;
import java.util.Optional;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLContext;
import com.netflix.appinfo.InstanceInfo;
import com.netflix.discovery.EurekaClientConfig;
import com.netflix.discovery.shared.transpor... | 527 |
5,169 | {
"name": "FancyAd",
"version": "1.0.0",
"summary": "A short description of FancyAd.",
"description": "PTGAdFramework provides Union ADs which include native、banner、feed、splash、RewardVideo etc.",
"homepage": "https://github.com/PTGAd/FancyAd",
"license": "MIT",
"authors": {
"fancy": "<EMAIL>"
},
"... | 426 |
315 | def prettier(name, args):
native.sh_binary(
name = name,
srcs = ["prettier.sh"],
args = [
"$(location @nodejs//:node)",
"$(location @npm//:node_modules/prettier/bin-prettier.js)",
] + args,
data = [
"@nodejs//:node",
"@npm//:nod... | 207 |
384 | <gh_stars>100-1000
# 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 ... | 477 |
1,178 | /*
* Copyright 2020 Makani Technologies LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 1,827 |
1,179 | <gh_stars>1000+
# encoding: utf-8
from opendatatools.common import RestAgent
from bs4 import BeautifulSoup
import pandas as pd
import json
anjuke_city_map = {
'北京' : 'bj',
'上海' : 'sh',
'杭州' : 'hz',
'广州' : 'gz',
'深圳' : 'sz',
'厦门' : 'xm',
'苏州' : 'su',
'重庆' : 'cq',
'长沙' : 'cs',
'海口... | 2,188 |
11,811 | <reponame>maximmenshikov/antlr4
#
# Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
# Use of this file is governed by the BSD 3-clause license that
# can be found in the LICENSE.txt file in the project root.
#
from __future__ import unicode_literals
import sys
def is_leading_surrogate(code_unit):
... | 1,116 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.