max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,029 | <gh_stars>1000+
package net.anumbrella.lkshop.ui.viewholder;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;
import net.anumbrella.lkshop.R;
import net.anumbrella.lkshop.config.Config;
impo... | 581 |
3,782 | <gh_stars>1000+
"""
Featurizers for complex.
"""
# flake8: noqa
from deepchem.feat.complex_featurizers.rdkit_grid_featurizer import RdkitGridFeaturizer
from deepchem.feat.complex_featurizers.complex_atomic_coordinates import NeighborListAtomicCoordinates
from deepchem.feat.complex_featurizers.complex_atomic_coordinates... | 417 |
701 | package top.easelink.framework.customview.htmltextview;
import android.content.Context;
public interface OnLinkTagClickListener {
void onLinkClick(Context context, String url);
}
| 51 |
14,668 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "fuchsia/base/legacymetrics_user_event_recorder.h"
#include "base/test/task_environment.h"
#include "base/threading/thread_task_runner_handle.h"... | 973 |
454 | package io.smallrye.mutiny.converters.uni;
import java.util.function.Function;
import io.reactivex.rxjava3.core.Observable;
import io.smallrye.mutiny.Uni;
public class ToObservable<T> implements Function<Uni<T>, Observable<T>> {
public static final ToObservable INSTANCE = new ToObservable();
private ToObser... | 192 |
704 | <reponame>Titaniumtown/mkp224o
// converts src[0:slen] to base16 string
char *base16_to(char *dst,const u8 *src,size_t slen);
// calculates length needed to store data converted to base16
#define BASE16_TO_LEN(l) (((l) * 8 + 3) / 4)
// converts src string from base16
size_t base16_from(u8 *dst,u8 *dmask,const char *src... | 211 |
388 | // -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.util.Objects;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
public final class MainPanel extends JPanel {
private MainPanel() {
... | 1,365 |
1,093 | <filename>spring-integration-core/src/test/java/org/springframework/integration/channel/DirectChannelTests.java<gh_stars>1000+
/*
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... | 3,104 |
543 | /*
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 492 |
3,553 | <reponame>eugenebnd/fluent-bit
{
"log": "2020-08-21T15:49:48.154291375ZstderrFhdfsExists:invokeMethod((Lorg/apache/hadoop/fs/Path;)Z)error:2020-08-21T15:49:48.154296328ZstderrForg.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security..SecretManager$Invalid):(HDFS_DELEGATION_273964959forweeb)can'tbefoundincac... | 1,659 |
578 | <filename>ice/__init__.py
#!/usr/bin/env python
# encoding: utf-8
"""
__init__.py
Created by Scott on 2012-12-26.
Copyright (c) 2012 <NAME>. All rights reserved.
"""
| 63 |
777 | <filename>chrome/browser/apps/drive/drive_app_converter.h
// Copyright 2014 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_APPS_DRIVE_DRIVE_APP_CONVERTER_H_
#define CHROME_BROWSER_APPS_DRIVE_DRIVE... | 774 |
852 | import FWCore.ParameterSet.Config as cms
print("Starting CSCTF Mode Filter")
process = cms.Process("SKIM")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.cerr.threshold = ""
process.MessageLogger.cerr.FwkReport.reportEvery = 1000
process.load("Configuration.StandardSequences.Services_cf... | 7,251 |
852 | #include "CondFormats/DataRecord/interface/EcalSampleMaskRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"
EVENTSETUP_RECORD_REG(EcalSampleMaskRcd);
| 66 |
411 | <gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
... | 5,261 |
876 | """
Display X selection.
Configuration parameters:
cache_timeout: refresh interval for this module (default 0.5)
command: the clipboard command to run (default 'xsel --output')
format: display format for this module (default '{selection}')
log_file: specify the clipboard log to use (default None)
m... | 930 |
360 | /*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... | 920 |
534 | {
"parent": "mekanism:block/enrichment_chamber",
"textures": {
"front": "mekanism:block/enrichment_chamber/front_active"
}
} | 57 |
604 | <filename>ssod/utils/__init__.py
from .exts import NamedOptimizerConstructor
from .hooks import Weighter, MeanTeacher, WeightSummary, SubModulesDistEvalHook
from .logger import get_root_logger, log_every_n, log_image_with_boxes
from .patch import patch_config, patch_runner, find_latest_checkpoint
__all__ = [
"get... | 223 |
457 | """
Silly little module which removes cell content except for first lne.
This is just so we can check what happens when running nbqa on a tool which causes a failure.
"""
import argparse
from pathlib import Path
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("path")
ar... | 190 |
746 | <reponame>Keendata/impala<gh_stars>100-1000
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache Lice... | 1,971 |
776 | package act.event;
/*-
* #%L
* ACT Framework
* %%
* Copyright (C) 2014 - 2017 ActFramework
* %%
* 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/licens... | 1,462 |
377 | # Copyright (C) 2016 <NAME> <<EMAIL>>
# All rights reserved.
# This file is part of the Python Automatic Forecasting (PyAF) library and is made available under
# the terms of the 3 Clause BSD license
import pandas as pd
import numpy as np
import itertools
from . import SignalHierarchy as sighier
class cSignalGroup... | 1,529 |
1,085 | <reponame>luxms/dremio-oss
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | 338 |
369 | <gh_stars>100-1000
/*
* Copyright © 2016-2019 <NAME>, 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 appli... | 3,713 |
5,169 | <reponame>Gantios/Specs
{
"name": "LogiticksFileManagerService",
"version": "0.0.2",
"summary": "Library for File Manager Services.",
"description": "Used to write FileManger functionalities like Read,Write,Remove/Delete of files.",
"homepage": "https://github.com/KiranLogiticiks/LogiticksFileManager",
"lic... | 278 |
575 | // 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.
package org.chromium.chrome.browser.notifications.settings;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.Nullable;
impo... | 1,347 |
3,710 | <gh_stars>1000+
#pragma once
#ifndef TLIN_MATRIX_H
#define TLIN_MATRIX_H
#include "assert.h"
#include "tlin_basicops.h"
namespace tlin {
//----------------------------------------------------------------------------
/*!
The tlin::matrix class represents matrices in tlin-compatible algorithms.
This implementat... | 963 |
12,252 | <filename>services/src/main/java/org/keycloak/authentication/actiontoken/ActionTokenHandler.java
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except... | 1,255 |
368 | /*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#include "PluginBase.h"
#include "RenderWare.h"
#include "CVector.h"
#include "CVector2D.h"
#include "CPtrLi... | 2,620 |
14,668 | // Copyright (c) 2012 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 PPAPI_THUNK_PPB_NETWORK_LIST_API_H_
#define PPAPI_THUNK_PPB_NETWORK_LIST_API_H_
#include <stdint.h>
#include "ppapi/c/ppb_network_list.h"
#i... | 411 |
2,706 | // TODO/WIP
/* Mednafen - Multi-system Emulator
*
* 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 later version.
*
* This progr... | 856 |
72,551 | <reponame>gandhi56/swift
typedef struct S {
unsigned char uc;
} S;
typedef struct T {
S;
} T;
| 48 |
466 | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CPartIndexMap.h
//
// @doc:
// Mapping of partition index to a manipulator type
//---------------------------------------------------------------------------
#ifndef ... | 3,316 |
765 | <filename>src/python/gem5/components/memory/memory.py
# Copyright (c) 2021 The Regents of the University of California
# 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 c... | 3,024 |
386 | /*********************************************************************************
* *
* The MIT License (MIT) *
* ... | 2,829 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-3v8w-473v-6365",
"modified": "2022-05-01T17:45:06Z",
"published": "2022-05-01T17:45:06Z",
"aliases": [
"CVE-2007-0543"
],
"details": "ZixForum 1.14 and earlier stores sensitive information under the web root with insufficient access control, which allows remote... | 466 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/CoreTime.framework/CoreTime
*/
@class NSString;
@interface _TMBlockDebugger : NSObject {
@private
NSString *_name; // 4 = 0x4
}
- (id)init; // 0x29f9
- (id)initWithName:(id)name; // 0x2aed
- (void)use; // 0x29f5
... | 180 |
6,868 | <reponame>Tusker13-04/esp8266_deauther<filename>esp8266_deauther/src/SimpleButton/Events/PushEvent.cpp
#include "PushEvent.h"
namespace simplebutton {
PushEvent::PushEvent(ButtonEventFunction) {
this->fnct = fnct;
}
PushEvent::~PushEvent() {
if (next) {
delete next;
... | 201 |
1,835 | <filename>examples/functions/Python/func.py
def fx(request):
return "hello world"
| 31 |
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 ... | 2,628 |
679 | <filename>main/xmerge/java/xmerge/src/main/java/org/openoffice/xmerge/merger/merge/SheetUtil.java
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this wor... | 1,527 |
381 | package org.apache.helix.mock;
/*
* 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, Vers... | 4,828 |
1,909 | <filename>xchange-idex/src/main/java/org/knowm/xchange/idex/annotations/ApiOperation.java
package org.knowm.xchange.idex.annotations;
public @interface ApiOperation {
String value();
String notes();
String[] tags();
}
| 78 |
1,850 | <reponame>AlbusRoy/jvm-sandbox-repeater
package com.alibaba.jvm.sandbox.repeater.plugin.spi;
import com.alibaba.jvm.sandbox.repeater.plugin.domain.RecordModel;
/**
* {@link RepeatInterceptor} 回放器执行中的拦截器;给用户自定义回放过程干预的机会
* <p>
*
* @author zhaoyb1990
*/
public interface RepeatInterceptor {
/**
* 开启回放之前
... | 546 |
1,478 | <filename>tiledb/sm/subarray/subarray_tile_overlap.h
/**
* @file subarray_tile_overlap.h
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2021 TileDB, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation fi... | 2,331 |
348 | {"nom":"Saint-Constant-Fournoulès","circ":"1ère circonscription","dpt":"Cantal","inscrits":524,"abs":211,"votants":313,"blancs":5,"nuls":5,"exp":303,"res":[{"nuance":"REM","nom":"<NAME>","voix":183},{"nuance":"LR","nom":"<NAME>","voix":120}]} | 95 |
501 | /*
* 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 ma... | 1,062 |
3,422 | <reponame>danylovolokh/VideoList
package com.volokh.danylo.video_player_manager.player_messages;
import com.volokh.danylo.video_player_manager.PlayerMessageState;
import com.volokh.danylo.video_player_manager.manager.VideoPlayerManagerCallback;
import com.volokh.danylo.video_player_manager.ui.VideoPlayerView;
/**
* ... | 270 |
496 | from .yaml_config_hook import yaml_config_hook
| 16 |
2,294 | <gh_stars>1000+
"""
Discussion:
1. Yes. Because
a. area under the STDP curve is negative
b. synapses are set to their maximum possible weight.
c. presynaptic neurons have a variance in their firing rates because of Poisson nature
2. g_E will fluctuate even when synapses do not show any STDP because of the Poisson
na... | 141 |
690 | <filename>artemis-fluid/artemis-fluid-core/src/test/java/com/artemis/generator/test/FlagWithPrivateField.java
package com.artemis.generator.test;
import com.artemis.Component;
/**
* @author <NAME>
*/
public class FlagWithPrivateField extends Component {
private int field;
}
| 94 |
1,403 | <reponame>moroten/scons
#include "stuff.h"
int main() {
X *x = SomeX();
}
| 39 |
3,212 | /*
* 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 ... | 5,624 |
2,118 | <filename>test/unit/stack/fcstack.cpp<gh_stars>1000+
// Copyright (c) 2006-2018 <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <cds_test/ext_gtest.h>
#include <cds/container/fcstack.h>
#include <vector... | 4,935 |
369 | <reponame>bitigchi/MuditaOS
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <service-appmgr/Actions.hpp>
namespace app::manager::actions
{
class LowBatteryNotificationParams : public ActionParams
{
... | 332 |
2,405 | <gh_stars>1000+
#ifndef _ADAFRUIT_GFX_AS_H
#define _ADAFRUIT_GFX_AS_H
#include "Load_fonts.h"
#include <Adafruit_GFX.h>
#define swap(a, b) { int16_t t = a; a = b; b = t; }
/** This class provides a few extensions to Adafruit_GFX, mostly for compatibility with
* existing code. Note that the fonts ("size" parameter... | 532 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The... | 17,368 |
435 | {
"description": "Filmed at PyData London 2017\n\nDescription\nThe Data Science and Analytics group at Pirelli has to deal with factories' day to day that can't be further from the aseptic crunching of data from a keyboard in an office. Our group took the lift, went down at shop floor and started asking questions to ... | 552 |
763 | <reponame>zabrewer/batfish
package org.batfish.datamodel.ospf;
/** Enum for possible status values for OSPF sessions */
public enum OspfSessionStatus {
/** Specified area is invalid/does not exist */
AREA_INVALID,
/** Local and remote area numbers do not match */
AREA_MISMATCH,
/** Area types (stub type) mis... | 422 |
4,054 | <filename>modules/lwjgl/opengl/src/generated/java/org/lwjgl/opengl/EXTVertexAttrib64bit.java
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengl;
import java.nio.*;
import org.lwjgl.system.*;
import static org... | 4,211 |
335 | {
"word": "Unsusceptible",
"definitions": [
"Not likely or liable to be influenced or harmed by a particular thing.",
"Not capable or admitting of."
],
"parts-of-speech": "Adjective"
} | 85 |
2,753 | <gh_stars>1000+
/*
* Copyright (c) The Shogun Machine Learning Toolbox
* Written (w) 2012 - 2013 <NAME>
* Written (w) 2014 - 2017 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
... | 3,454 |
310 | {
"name": "Perfection V600",
"description": "A photo scanner.",
"url": "https://www.amazon.com/Epson-B11B198011-Perfection-Photo-Scanner/dp/B002OEBMRU"
} | 64 |
8,680 | import datetime
import os
import shutil
import time
from .crypto.key import KeyfileKey, KeyfileNotFoundError
from .constants import REPOSITORY_README
from .helpers import ProgressIndicatorPercent
from .helpers import get_base_dir, get_keys_dir, get_cache_dir
from .locking import Lock
from .logger import create_logger
... | 6,181 |
965 | #pragma once
namespace cx_templates
{
public ref class Class1 sealed
{
public:
Class1(){}
};
//<snippet01>
namespace TemplateDemo
{
// A private ref class template
template <typename T>
ref class MyRefTemplate
{
internal:
... | 940 |
14,668 | // Copyright 2021 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 in ... | 16,297 |
1,538 | <reponame>arganoid/allegro5
package org.liballeg.android;
import android.media.AudioManager;
import android.content.Context;
import android.view.KeyEvent;
import android.view.View;
class KeyListener implements View.OnKeyListener
{
private Context context;
private boolean captureVolume = false;
private Allegr... | 2,613 |
790 | <filename>google/appengine/api/remote_socket/_remote_socket_error.py<gh_stars>100-1000
#!/usr/bin/env python
#
# Copyright 2007 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
#
#... | 277 |
851 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: xviz/v2/envelope.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _mess... | 1,262 |
1,228 | package com.fly.news;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hyst... | 259 |
839 | /**
* 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 m... | 548 |
1,198 | <reponame>kelsos/toothpick
/*
* Copyright 2019 <NAME>
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 1,348 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.orchestrator.policy;
import com.yahoo.config.provision.ApplicationId;
import com.yahoo.config.provision.SystemName;
import com.yahoo.config.provision.Zone;
import com.yahoo.vespa.application... | 3,179 |
1,318 | <filename>app/com/linkedin/drelephant/spark/legacydata/SparkApplicationData.java
/*
* Copyright 2016 LinkedIn Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apach... | 314 |
2,151 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/bluetooth/bluetooth_attribute_instance_map.h"
#include <memory>
#include <utility>
#include "third_party/bli... | 1,130 |
660 | <reponame>xingmeichen/spring-cloud-shop
package quick.pager.shop.goods.client;
import java.util.List;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.an... | 673 |
1,607 | package fastdex.build.lib.snapshoot.string;
import fastdex.build.lib.snapshoot.api.DiffInfo;
import fastdex.build.lib.snapshoot.api.Status;
/**
* Created by tong on 17/3/31.
*/
public class StringDiffInfo extends DiffInfo<StringNode> {
public StringDiffInfo() {
}
public StringDiffInfo(Status status, St... | 160 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/WebKit.framework/WebKit
*/
#import <WebKit/XXUnknownSuperclass.h>
@class WebInspectorRemoteChannel;
__attribute__((visibility("hidden")))
@interface WebInspectorServerConnection : XXUnknownSuperclass {
@private
We... | 210 |
644 | <filename>test/test_dotdotdot.py
# Copyright <NAME> 2016
"""
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 agre... | 592 |
868 | package com.sedmelluq.discord.lavaplayer.tools;
import java.util.function.Function;
/**
* Utility class for calculating averages on the last N values, with input and output transformers.
*/
public class RingBufferMath {
private final double[] values;
private final Function<Double, Double> inputProcessor;
priv... | 446 |
2,502 | package com.shuzijun.leetcode.plugin.timer;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.wm.CustomStatusBarWidget;
import com.intellij.openapi.wm.StatusBar;
import com.shuzijun.leetcode.plugin.model.Config;
import com.shuzijun.leetcode.plugin.model.PluginConstant;
import com.shuzijun.leetco... | 2,041 |
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.
#include "components/gcm_driver/instance_id/instance_id_android.h"
#include <stdint.h>
#include <memory>
#include "base/android/jni_android.h"
#include ... | 2,858 |
72,551 | <reponame>gandhi56/swift
#import <objc/NSObject.h>
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME)
# pr... | 273 |
954 | #!/usr/bin/env python3
'''
Code is mainly adopted from :
https://github.com/mseitzer/pytorch-fid/blob/master/src/pytorch_fid/fid_score.py
'''
"""Calculates the Frechet Inception Distance (FID) to evalulate GANs
The FID metric calculates the distance between two distributions of images.
Typically, we have summary stat... | 5,139 |
382 | <reponame>cuongnguyen2190/pure-python-adb
class Application:
def __init__(self, device, package):
self._device = device
self._package = package
def pid(self):
pass
def uid(self):
pass
@property
def tcp_recv(self):
return 0
@property
def tcp_send(se... | 157 |
892 | <reponame>github/advisory-database
{
"schema_version": "1.2.0",
"id": "GHSA-cp6g-c34h-69q7",
"modified": "2022-05-13T01:03:07Z",
"published": "2022-05-13T01:03:06Z",
"aliases": [
"CVE-2017-4966"
],
"details": "An issue was discovered in these Pivotal RabbitMQ versions: all 3.4.x versions, all 3.5.x ve... | 572 |
1,150 | <reponame>jwfbean/demo-scene
package io.confluent.developer.ccloud.demo.kstream;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.kafka.clients.admin.NewTopic;
import org.apache.kafka.common.serialization.Serdes;
import org.apache.kafka.streams.StreamsBuilder;
import org.apache.kafka.streams.Topo... | 1,017 |
30,023 | """Base class for Tado entity."""
from homeassistant.helpers.entity import DeviceInfo, Entity
from .const import DEFAULT_NAME, DOMAIN, TADO_HOME, TADO_ZONE
class TadoDeviceEntity(Entity):
"""Base implementation for Tado device."""
def __init__(self, device_info):
"""Initialize a Tado device."""
... | 1,147 |
7,883 | // Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#pragma once
#include "GameFramework/Actor.h"
#include "WalkerAIController.generated.h"
/// ... | 258 |
1,056 | <reponame>arusinha/incubator-netbeans
/*
* 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... | 3,057 |
1,444 | package mage.cards.f;
import mage.MageInt;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.common.DeliriumCondition;
import mage.abilities.decorator.ConditionalContinuousEffect;
import mage.abilities.effects.common.contin... | 712 |
491 | <reponame>diorcety/hdf5
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. ... | 3,256 |
582 | <reponame>Shylexx/FXGLGames
package com.almasb.fxglgames.geowars.component.enemy;
import com.almasb.fxgl.core.math.FXGLMath;
import com.almasb.fxgl.core.math.Vec2;
import com.almasb.fxgl.dsl.components.ProjectileComponent;
import com.almasb.fxgl.entity.EntityGroup;
import com.almasb.fxgl.entity.component.Component;
im... | 1,828 |
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 ... | 1,208 |
975 | <reponame>HelloVass/Shield<filename>shieldCore/src/main/java/com/dianping/agentsdk/framework/AgentManagerInterface.java
package com.dianping.agentsdk.framework;
import android.content.Intent;
import android.os.Bundle;
import java.util.ArrayList;
/**
* Created by hezhi on 16/3/3.
*/
public interface AgentManagerInt... | 690 |
626 | import argparse
import json
import logging
import os
import pickle
import time
import numpy as np
import scipy.sparse
import sklearn.preprocessing
import utils
def dump_docvectors(config):
for source in config['sources']:
qrels = source['qrels']
source_name = source['name']
index = sourc... | 2,797 |
678 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "MMUIViewController.h"
#import "ForwardMessageLogicDelegate.h"
#import "IRecordDownloadExt.h"
#import "ImageScrollViewDelegate.h"
#import "SessionSelectControllerDelegate.h"
#imp... | 1,010 |
487 | /*
* Copyright 2012-2014 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 777 |
652 | <filename>lib/IPython/core/magics/script.py
"""Magic functions for running cells in various scripts."""
from __future__ import print_function
#-----------------------------------------------------------------------------
# Copyright (c) 2012 The IPython Development Team.
#
# Distributed under the terms of the Modifie... | 4,354 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.