content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Collections open source project
//
// Copyright (c) 2021 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swi... | __label__POS | 0.809646 |
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Collections open source project
//
// Copyright (c) 2021 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swi... | __label__POS | 0.742365 |
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Collections open source project
//
// Copyright (c) 2021 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swi... | __label__POS | 0.863737 |
# Examples
Examples for how to use ``HomomorphicEncryption``
### Basics
We start with the basics.
@Snippet(path: "swift-homomorphic-encryption/Snippets/HomomorphicEncryption/BasicsSnippet", slice:"encryption")
### HE Addition and Subtraction
Continuing from the previous example, we can also compute on the encrypted ... | __label__POS | 0.880529 |
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Collections open source project
//
// Copyright (c) 2021 - 2024 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swi... | __label__POS | 0.697989 |
// requires maya "2017ff05";
startAttrPreset( "asNoise3D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 4;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.881401 |
// requires maya "2017ff05";
startAttrPreset( "asNoise3D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 0;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.890687 |
// requires maya "2017ff05";
startAttrPreset( "asNoise3D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 0;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.880452 |
// requires maya "2017ff05";
startAttrPreset( "asNoise3D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 4;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.77962 |
// requires maya "2017ff05";
startAttrPreset( "asNoise3D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 0;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.893797 |
// requires maya "2017ff05";
startAttrPreset( "asNoise3D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 3;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.864562 |
// requires maya "2017ff05";
startAttrPreset( "asNoise3D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 0;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.880337 |
// requires maya "2017ff05";
startAttrPreset( "asNoise3D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 4;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.839774 |
// requires maya "2017ff05";
startAttrPreset( "asNoise3D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 0;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.865554 |
// requires maya "2017ff05";
startAttrPreset( "asNoise3D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 4;
blendAttr "intensity" 2;
blendAttr "frequencyX" ... | __label__POS | 0.702411 |
// requires maya "2017ff05";
startAttrPreset( "asNoise3D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 0.6000000238;
blendAttr "type" 0;
blendAttr "intensity" 1;
blendAttr "f... | __label__POS | 0.757302 |
// requires maya "2017ff05";
startAttrPreset( "asNoise3D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 0;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.902644 |
// requires maya "2017ff05";
startAttrPreset( "asNoise3D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 2;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.889919 |
// requires maya "2017ff05";
startAttrPreset( "asNoise2D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 4;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.781115 |
// requires maya "2017ff05";
startAttrPreset( "asNoise2D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 0;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.780152 |
// requires maya "2017ff05";
startAttrPreset( "asNoise2D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 0;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.761932 |
// requires maya "2017ff05";
startAttrPreset( "asNoise2D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 4;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.751507 |
// requires maya "2017ff05";
startAttrPreset( "asNoise2D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 0;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.785767 |
// requires maya "2017ff05";
startAttrPreset( "asNoise2D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 3;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.726716 |
// requires maya "2017ff05";
startAttrPreset( "asNoise2D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 0;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.76173 |
// requires maya "2017ff05";
startAttrPreset( "asNoise2D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 4;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.673475 |
// requires maya "2017ff05";
startAttrPreset( "asNoise2D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 0;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.736119 |
// requires maya "2017ff05";
startAttrPreset( "asNoise2D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 4;
blendAttr "intensity" 2;
blendAttr "frequencyX" ... | __label__POS | 0.749121 |
// requires maya "2017ff05";
startAttrPreset( "asNoise2D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 0.6000000238;
blendAttr "type" 0;
blendAttr "intensity" 1;
blendAttr "f... | __label__POS | 0.726923 |
// requires maya "2017ff05";
startAttrPreset( "asNoise2D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 0;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.801232 |
// requires maya "2017ff05";
startAttrPreset( "asNoise2D" );
blendAttr "frozen" 0;
blendAttr "colorR" 0;
blendAttr "colorG" 0;
blendAttr "colorB" 0;
blendAttr "color2R" 1;
blendAttr "color2G" 1;
blendAttr "color2B" 1;
blendAttr "contrast" 1;
blendAttr "type" 2;
blendAttr "intensity" 1;
blendAttr "frequencyX" ... | __label__POS | 0.771251 |
<?php
/**
* PHPUnit
*
* Copyright (c) 2002-2010, Sebastian Bergmann <sb@sebastian-bergmann.de>.
* 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 m... | __label__POS | 0.705206 |
package my
import java.util.Objects
import kotlin.Any
import kotlin.Boolean
import kotlin.Int
import kotlin.String
/**
* type alias comment.
* *emphasized* `code`.
*/
typealias Email = String
/**
* module comment.
* *emphasized* `code`.
*/
data class Mod(
/**
* module property comment.
* *emphasized* `... | __label__POS | 0.701374 |
# Installation
Integrate Swift MMIO into your project using Swift Package Manager.
### Adding Swift MMIO as a Dependency
1. Open your `Package.swift` file.
2. Add Swift MMIO to the `dependencies` array of your `Package`:
```swift
let package = Package(
name: "MyApplication",
dependencies: [
// Ad... | __label__POS | 0.854895 |
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Collections open source project
//
// Copyright (c) 2023 - 2024 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swi... | __label__POS | 0.807256 |
//===----------------------------------------------------------------------===//
//
// This source file is part of the SwiftNIO open source project
//
// Copyright (c) 2021 Apple Inc. and the SwiftNIO project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS... | __label__POS | 0.679345 |
//===----------------------------------------------------------------------===//
//
// This source file is part of the SwiftNIO open source project
//
// Copyright (c) 2021 Apple Inc. and the SwiftNIO project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS... | __label__POS | 0.67111 |
/*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | __label__POS | 0.726536 |
/*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | __label__POS | 0.830419 |
// Better Streaming Assets, Piotr Gwiazdowski <gwiazdorrr+github at gmail.com>, 2017
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace Better.StreamingAssets
{
public static partial class PathUtil
{
p... | __label__POS | 0.699693 |
using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
namespace Appletea.Dev.PointCloud
{
public class PlyLib
{
public static string ExportToPly(string directoryPath, List<Vector3> points)
{
if (!Directory.Exists(directoryPath))
{
... | __label__POS | 0.781913 |
#include "gtest/gtest.h"
#include "TestingSupport/MockTildeExpressionResolver.h"
#include "lldb/Utility/TildeExpressionResolver.h"
#include "llvm/ADT/SmallString.h"
using namespace llvm;
using namespace lldb_private;
TEST(TildeExpressionResolver, ResolveFullPath) {
MockTildeExpressionResolver Resolver("James", "/... | __label__POS | 0.702357 |
// Copyright Omar Abdelwahed 2025. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
// Define WITH_PYTHON if not already defined
#ifndef WITH_PYTHON
#define WITH_PYTHON 0
#endif
#include "JsonGlobals.h"
/**
* Bridge for executing Python commands within Unreal Engine
*/
class FPythonBridge
{
public:
... | __label__POS | 0.648973 |
Based on the multi-round Q&A regarding the image, please evaluate each question and answer from the multi-round Q&A based on the image for their authenticity (whether the information can be directly obtained from the image or reasonably inferred) and logical coherence. For each Q&A pair, provide a rating from 1 to 10, ... | __label__POS | 0.85566 |
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Temporal SDK open source project
//
// Copyright (c) 2025 Apple Inc. and the Swift Temporal SDK project authors
// Licensed under MIT License
//
// See LICENSE.txt for license information
// See ... | __label__POS | 0.975579 |
#!/usr/local/bin/luatrace -s
trace_codename = function(codename, callback)
local debugid = trace.debugid(codename)
if debugid ~= 0 then
trace.single(debugid,callback)
else
printf("WARNING: Cannot locate debugid for '%s'\n", codename)
end
end
initial_timestamp = 0
pid_map = {};
get_prefix = function(buf)
if i... | __label__POS | 0.696034 |
APRIORI DXE {
INF MdeModulePkg/Core/Dxe/DxeMain.inf
INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
!if $(AIC_BUILD) == FALSE
INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
!else
INF AppleSiliconPkg/Drivers/AppleAicDxe/AppleAicDxe.inf
!endif
INF EmbeddedPkg/MetronomeDxe/MetronomeDx... | __label__POS | 0.932998 |
/*
* Copyright © 2018-2019 Apple Inc. and the ServiceTalk project 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 ... | __label__POS | 0.667537 |
# -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
# @Author: appleyuchi
# @Date: 2018-11-28 18:34:04
# @Last Modified by: appleyuchi
# @Last Modified time: 2018-11-28 21:31:49
import pandas as pd
import copy
def get_class(path):
class_list=[]
result=""
for line in open(... | __label__POS | 0.735839 |
#-*- coding:utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import csv
from collections import Counter
import pandas as pd
path='./abalone.data'
def read_data(path):
source_data=pd.read_csv(path,header=None)#第一行不是标题
lists=source_data.values.tolist()
return lists
name_path='./abalone.na... | __label__POS | 0.66979 |
#-*- coding:utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import csv
from collections import Counter
import pandas as pd
path='./abalone.data'
def read_data(path):
source_data=pd.read_csv(path,header=None)#第一行不是标题
lists=source_data.values.tolist()
return lists
name_path='./abalone.na... | __label__POS | 0.66979 |
#-*- coding:utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import csv
from collections import Counter
import pandas as pd
path='./abalone.data'
def read_data(path):
source_data=pd.read_csv(path,header=None)#第一行不是标题
lists=source_data.values.tolist()
return lists
name_path='./abalone.na... | __label__POS | 0.660798 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Disks and Disk Images</title>
</head>
<body style="background-color: rgb(255, 255, 255); font-family: verdana;" alink="#008000" link="#008000" vlink="#... | __label__POS | 0.609084 |
dataset_name: main
dataset_path: gsm8k
doc_to_target: '{{answer.split(''####'')[-1].strip() if answer is defined else target}}'
doc_to_text: "Given the following problem, reason and give a final answer to the problem.\nProblem: {{question}}\nYour response should end with \"The final answer is [answer]\" where [answer] ... | __label__POS | 0.755755 |
#include "test_file_helper.h"
#include "fail.h"
#include <stdlib.h>
#include <fcntl.h>
#include <sys/param.h>
#include <assert.h>
#include <stdio.h>
#include <strings.h>
#include <unistd.h>
#include <pthread.h>
static char readbuff[4096];
static char writebuff[4096];
static int* fds = NULL;
char*
setup_tempdir(char* ... | __label__POS | 0.944 |
package util
import (
"crypto/sha256"
b64 "encoding/base64"
"fmt"
"net/http"
"github.com/labstack/echo/v4"
)
func isEntityOwner(uID, entityID uint, entity string) error {
if uID != entityID {
return HttpError{
Code: http.StatusForbidden,
Reason: ERR_NOT_AUTHORIZED,
Details: fmt.Sprintf("User (%d... | __label__POS | 0.601379 |
#-*- coding:utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import pandas as pd
def unKnown_average(column):
sums=0.0
for item in column:
try:
sums+=float(item)
except:
pass
print"? average=",sums/len(column)
if __name__ == '__main__':
data=p... | __label__POS | 0.773017 |
package node
import (
"context"
"sync"
blocks "github.com/ipfs/go-block-format"
"github.com/ipfs/go-cid"
blockstore "github.com/ipfs/go-ipfs-blockstore"
)
type NotifyBlockstore struct {
EstuaryBlockstore
subLk sync.Mutex
subs map[cid.Cid][]chan blocks.Block
}
var _ blockstore.Blockstore = (*NotifyBlocksto... | __label__POS | 0.874468 |
package config
import (
"github.com/libp2p/go-libp2p"
"os"
"path/filepath"
"testing"
"github.com/libp2p/go-libp2p/core/network"
rcmgr "github.com/libp2p/go-libp2p/p2p/host/resource-manager"
"github.com/stretchr/testify/assert"
)
func checkNodeConfig(t *testing.T, node *Node) {
assert := assert.New(t)
assert... | __label__POS | 0.911548 |
package pinner
import (
"context"
"encoding/json"
"fmt"
"os"
"sync"
"testing"
"time"
"github.com/application-research/estuary/pinner/operation"
"github.com/application-research/estuary/pinner/status"
logging "github.com/ipfs/go-log/v2"
"github.com/libp2p/go-libp2p/core/peer"
ma "github.com/multiformats/g... | __label__POS | 0.859874 |
#-*- coding:utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import pandas as pd
import datetime #用来计算日期差的包
def dataInterval(data1,data2):
data1=data1.split(" ")[0]
data2=data2.split(" ")[0]
print"data1=",data1
print"data2=",data2
d1 = datetime.datetime.strptime(data1, '%Y-%m-%d')... | __label__POS | 0.721202 |
package model
import (
"github.com/application-research/estuary/config"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/big"
"github.com/filecoin-project/lotus/chain/types"
"gorm.io/gorm"
)
func (msa *MinerStorageAsk) PriceIsTooHigh(cfg *config.Estuary) bool {
price ... | __label__POS | 0.991172 |
Reading training data
Constructing decision tree .................... (0 cases covered)
Constructing decision tree >................... (16 cases covered)
Constructing decision tree >>.................. (39 cases covered)
Constructing decision tree >>>................. (73 cases covered)
Constructing ... | __label__POS | 0.999998 |
#define BORINGSSL_PREFIX CNIOBoringSSL
#if defined(__arm__) && defined(__linux__)
/* Copyright 2015 The BoringSSL Authors
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notic... | __label__POS | 0.604259 |
//
// Tests for
// bounded_array();
//
#include <libkern/c++/bounded_array.h>
#include <darwintest.h>
#include <darwintest_utils.h>
#include "test_policy.h"
struct T {
T() : i(4)
{
}
int i;
friend bool
operator==(T const& a, T const& b)
{
return a.i == b.i;
}
};
template <typename T>
static void
tests()
{... | __label__POS | 0.633947 |
require "fileutils"
require "pathname"
require "tmpdir"
require "yaml"
require "support/fakefs"
require "librarian/config/database"
describe Librarian::Config::Database do
include ::Support::FakeFS
def write_yaml!(path, *yamlables)
path = Pathname(path)
path.dirname.mkpath unless path.dirname.directory?... | __label__POS | 0.607071 |
require 'rubygems/user_interaction'
module Librarian
class UI
def warn(message = nil)
end
def debug(message = nil)
end
def error(message = nil)
end
def info(message = nil)
end
def confirm(message = nil)
end
class Shell < UI
attr_writer :shell
attr_reader :... | __label__POS | 0.791262 |
require "pathname"
require 'net/http'
require "uri"
require "etc"
require "librarian/helpers"
require "librarian/support/abstract_method"
require "librarian/error"
require "librarian/config"
require "librarian/lockfile"
require "librarian/logger"
require "librarian/specfile"
require "librarian/resolver"
require "libr... | __label__POS | 0.874689 |
#define BORINGSSL_PREFIX CNIOBoringSSL
// This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <CNIOBoringSSL_asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__APPLE__)
#include <CNIOBoringSSL_arm_arch.h>
.section __T... | __label__POS | 0.898037 |
require "librarian/algorithms"
module Librarian
class ManifestSet
class << self
def shallow_strip(manifests, names)
new(manifests).shallow_strip!(names).send(method_for(manifests))
end
def deep_strip(manifests, names)
new(manifests).deep_strip!(names).send(method_for(manifests)... | __label__POS | 0.834507 |
require 'rubygems'
module Librarian
class Manifest
class Version
include Comparable
def initialize(*args)
args = initialize_normalize_args(args)
self.backing = Gem::Version.new(*args)
end
def to_gem_version
backing
end
def <=>(other)
to_gem... | __label__POS | 0.883138 |
module Librarian
class Logger
librarian_path = Pathname(__FILE__)
librarian_path = librarian_path.dirname until librarian_path.join("lib").directory?
LIBRARIAN_PATH = librarian_path
attr_accessor :environment
private :environment=
def initialize(environment)
self.environment = environ... | __label__POS | 0.654642 |
require 'librarian/support/abstract_method'
module Librarian
module Source
# Requires that the including source class have methods:
# #path
# #environment
module Local
include Support::AbstractMethod
abstract_method :path, :fetch_version, :fetch_dependencies
def manifests(nam... | __label__POS | 0.613276 |
require "pathname"
require "librarian/config/file_source"
require "librarian/config/hash_source"
module Librarian
module Config
class Database
class << self
def library
name.split("::").first.downcase
end
end
attr_accessor :adapter_name
private :adapter_name=
... | __label__POS | 0.708503 |
#define BORINGSSL_PREFIX CNIOBoringSSL
// This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <CNIOBoringSSL_asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__ELF__)
#include <CNIOBoringSSL_arm_arch.h>
.section .roda... | __label__POS | 0.897467 |
#define BORINGSSL_PREFIX CCryptoBoringSSL
// This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <CCryptoBoringSSL_asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__APPLE__)
.section __TEXT,__const
.align 5
Lsigma:
.... | __label__POS | 0.899267 |
require "librarian/manifest_set"
require "librarian/spec_change_set"
require "librarian/action/base"
module Librarian
module Action
class Install < Base
def run
check_preconditions
perform_installation
end
private
def check_preconditions
check_specfile
ch... | __label__POS | 0.84719 |
#define BORINGSSL_PREFIX CNIOBoringSSL
// This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <CNIOBoringSSL_asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(_WIN32)
#include <CNIOBoringSSL_arm_arch.h>
.section .rodat... | __label__POS | 0.895344 |
#define BORINGSSL_PREFIX CCryptoBoringSSL
// This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <CCryptoBoringSSL_asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__ELF__)
.section .rodata
.align 5
.Lsigma:
.quad 0x3... | __label__POS | 0.898652 |
require 'librarian/manifest'
require 'librarian/source/basic_api'
require 'librarian/mock/source/mock/registry'
module Librarian
module Mock
module Source
class Mock
include Librarian::Source::BasicApi
lock_name 'MOCK'
spec_options []
attr_accessor :environment
pri... | __label__POS | 0.657865 |
require "json"
require "pathname"
require "securerandom"
require "stringio"
require "thor"
require "librarian/helpers"
module Librarian
module RSpec
module Support
module CliMacro
class FakeShell < Thor::Shell::Basic
def stdout
@stdout ||= StringIO.new
end
... | __label__POS | 0.742741 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | __label__POS | 0.983272 |
#define BORINGSSL_PREFIX CCryptoBoringSSL
// This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <CCryptoBoringSSL_asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(_WIN32)
.section .rodata
.align 5
Lsigma:
.quad 0x332... | __label__POS | 0.896595 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | __label__POS | 0.757783 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | __label__POS | 0.992368 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | __label__POS | 0.824275 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | __label__POS | 0.90464 |
//===-- CompilerType.cpp ----------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | __label__POS | 0.603531 |
/*
* Copyright © 2018-2019 Apple Inc. and the ServiceTalk project 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 ... | __label__POS | 0.64554 |
/*
* Copyright © 2018, 2021 Apple Inc. and the ServiceTalk project 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... | __label__POS | 0.998767 |
/*
* Copyright © 2018, 2021 Apple Inc. and the ServiceTalk project 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... | __label__POS | 0.993579 |
#define BORINGSSL_PREFIX CNIOBoringSSL
// This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <CNIOBoringSSL_asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__ELF__)
// Copyright 2014-2020 The OpenSSL Project Authors.... | __label__POS | 0.675855 |
#define BORINGSSL_PREFIX CNIOBoringSSL
// This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <CNIOBoringSSL_asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__APPLE__)
#include <CNIOBoringSSL_arm_arch.h>
.text
.glob... | __label__POS | 0.790637 |
#define BORINGSSL_PREFIX CCryptoBoringSSL
// This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <CCryptoBoringSSL_asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__ELF__)
// Copyright 2014-2020 The OpenSSL Project Au... | __label__POS | 0.621374 |
// Sources/SwiftProtobuf/PathVisitor.swift - Path visitor
//
// Copyright (c) 2014 - 2023 Apple Inc. and the project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See LICENSE.txt for license information:
// https://github.com/apple/swift-protobuf/blob/main/LICENSE.txt
//
// --------... | __label__POS | 0.804719 |
#define BORINGSSL_PREFIX CCryptoBoringSSL
// This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <CCryptoBoringSSL_asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__APPLE__)
.text
.globl _sha1_block_data_order_nohw
.... | __label__POS | 0.793103 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | __label__POS | 0.658842 |
#define BORINGSSL_PREFIX CNIOBoringSSL
// This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <CNIOBoringSSL_asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__APPLE__)
// Copyright 2014-2020 The OpenSSL Project Author... | __label__POS | 0.688408 |
#define BORINGSSL_PREFIX CNIOBoringSSL
// This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <CNIOBoringSSL_asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(_WIN32)
// Copyright 2014-2020 The OpenSSL Project Authors. ... | __label__POS | 0.642965 |
#define BORINGSSL_PREFIX CNIOBoringSSL
// This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <CNIOBoringSSL_asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(_WIN32)
// Copyright 2014-2020 The OpenSSL Project Authors. ... | __label__POS | 0.683395 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.