max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,473 | package com.navercorp.pinpoint.common.util;
import org.apache.commons.lang3.RandomUtils;
import org.junit.Test;
import java.io.ByteArrayInputStream;
import java.io.IOException;
public class IOUtilsTest {
@Test
public void toByteArray_small() throws IOException {
assertToByteArray(0);
assert... | 1,485 |
348 | {"nom":"Croixdalle","circ":"6ème circonscription","dpt":"Seine-Maritime","inscrits":241,"abs":128,"votants":113,"blancs":1,"nuls":4,"exp":108,"res":[{"nuance":"FN","nom":"M. <NAME>","voix":39},{"nuance":"REM","nom":"M. <NAME>","voix":27},{"nuance":"COM","nom":"<NAME>","voix":16},{"nuance":"UDI","nom":"Mme <NAME>","voix... | 206 |
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,659 |
337 | import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
class A {
@Nullable
public Integer foo(int i, @NotNull String s) {
return null;
}
} | 75 |
5,937 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//+-----------------------------------------------------------------------------
//
//
// $TAG ENGR
// $Mod... | 21,376 |
764 | {"symbol": "VRS","address": "0xAbC430136A4dE71c9998242de8c1b4B97D2b9045","overview":{"en": ""},"email": "<EMAIL>","website": "http://vedh.io/","state": "NORMAL","links": {"blog": "","twitter": "https://twitter.com/VEROSFP","telegram": "https://t.me/veros_coin","github": "https://github.com/VerosDH"}} | 122 |
370 | package com.fasterxml.jackson.datatype.jsr310.deser.key;
import java.time.DateTimeException;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import com.fasterxml.jackson.core.JacksonException;
import com.fasterxml.jackson.databind.DeserializationContext;
public class LocalTimeKeyDeserializer e... | 316 |
485 | <filename>network/demo_socket_udp_server.py
import socket
BUFSIZE = 1024
ip_port = ('0.0.0.0', 60000)
server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # udp
server.bind(ip_port)
while True:
data,client_addr = server.recvfrom(BUFSIZE)
print('server recv', data)
server.sendto(data.upper(),client_ad... | 211 |
511 | <reponame>JojOatXGME/Grammar-Kit
/*
* Copyright 2011-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package org.intellij.grammar;
import com.intellij.lang.ASTNode;
import com.intellij.lang.folding.CustomFoldingBuilder;
import com.intelli... | 1,185 |
5,169 | <reponame>morizotter/Specs
{
"name": "Reveal-iOS-SDK",
"version": "0.9.1",
"summary": "The Reveal SDK for iOS.",
"homepage": "http://revealapp.com/",
"authors": "It<EMAIL>",
"source": {
"http": "http://download.revealapp.com/Reveal-Framework-0.9.1.zip"
},
"platforms": {
"ios": null
},
"sourc... | 384 |
1,144 | <reponame>dram/metasfresh<filename>backend/de.metas.adempiere.adempiere/base/src/main/java-gen/org/compiere/model/X_C_CashLine.java
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 C... | 5,405 |
421 | <gh_stars>100-1000
#pragma once
class CTriangleRenderer : public CRenderer
{
public:
static HRESULT Create(IDirect3D9 *pD3D, IDirect3D9Ex *pD3DEx, HWND hwnd, UINT uAdapter, CRenderer **ppRenderer);
~CTriangleRenderer();
HRESULT Render();
protected:
HRESULT Init(IDirect3D9 *pD3D, IDirect3... | 216 |
3,651 | package com.orientechnologies.orient.object.enhancement;
import com.orientechnologies.orient.core.annotation.OBeforeSerialization;
/**
* @author LomakiA <a href="mailto:<EMAIL>"><NAME></a>
* @since 18.05.12
*/
public class AbstractEntity {
private boolean before1Called = false;
private boolean before2Called = ... | 224 |
831 | package org.jetbrains.android.refactoring;
import com.intellij.psi.PsiElement;
import com.intellij.util.containers.MultiMap;
import org.jetbrains.annotations.TestOnly;
class AndroidInlineTestConfig {
private final boolean myInlineThisOnly;
private MultiMap<PsiElement, String> myConflicts = null;
@TestOnly
An... | 229 |
2,151 | <reponame>zipated/src
// Copyright 2018 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 "ash/components/shortcut_viewer/views/keyboard_shortcut_view.h"
#include <set>
#include "ash/components/shortcut_viewer/k... | 2,678 |
884 | <reponame>slyoldfox/blaze-persistence
/*
* Copyright 2014 - 2021 Blazebit.
*
* 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... | 3,115 |
1,056 | <filename>enterprise/websvc.manager/src/org/netbeans/modules/websvc/manager/ui/ResultRowModel.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ... | 815 |
304 | <reponame>RUI-07/yapi-to-typescript
{
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.options": {
"resolvePluginsRelativeTo": "."
}
}
| 72 |
1,662 | """
Simple example:
.. UIExample:: 70
with flx.VBox():
flx.Slider(min=10, max=20, value=12)
flx.RangeSlider(min=10, max=90, value=(20, 60))
Also see examples: :ref:`sine.py`, :ref:`twente.py`,
:ref:`deep_event_connections.py`.
"""
from ... import event
from .._widget import Widget, create_elem... | 5,561 |
788 | <filename>stack/corepersistence/common/src/main/java/org/apache/usergrid/persistence/core/astyanax/CompositeFieldSerializer.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* re... | 431 |
819 | <reponame>virdesai/stock-analysis-engine
#!/usr/bin/env python
"""
A tool for showing how to build an algorithm and
run a backtest with an algorithm config dictionary
.. code-block:: python
import analysis_engine.consts as ae_consts
import analysis_engine.algo as base_algo
import analysis_engine.run_algo... | 14,808 |
1,909 | <reponame>state303/spring-batch
package org.springframework.batch.integration.chunk;
import static org.junit.Assert.assertEquals;
import java.util.Collections;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.batch.core.BatchStatus;
import org.springframework.batch.core.Job... | 656 |
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... | 4,204 |
1,338 | #ifndef _DEVICE_NRS_H_
#define _DEVICE_NRS_H_
// ToDo: do something nice here, perhaps reusing the new stat->st_type field
#define DEV_TTY_P(stat) (0)
#endif /* _DEVICE_NRS_H_ */
| 77 |
343 | <gh_stars>100-1000
// Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless req... | 3,273 |
401 | package com.almasb.tutorial10;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import javafx.animation.TranslateTransition;
import javafx.application.Application;
import javafx.geometry.*;
import javafx.scene.*;
import javafx.scene.image.*;
import javafx... | 2,709 |
9,425 | """
:codeauthor: <NAME> <<EMAIL>>
"""
import pytest
import salt.modules.win_timezone as win_timezone
from salt.exceptions import CommandExecutionError
from tests.support.mock import MagicMock, patch
pytestmark = [
pytest.mark.skipif(not win_timezone.HAS_PYTZ, reason="This test requires pytz"),
]
@pytest.fixt... | 2,563 |
734 | /*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
`---' `--' `... | 779 |
347 | package org.ovirt.engine.core.common.validation.group;
public interface ImportClonedEntity {
}
| 30 |
1,364 | <gh_stars>1000+
#ifndef SSF_SERVICES_COPY_STATE_SENDER_WAIT_EOF_STATE_H_
#define SSF_SERVICES_COPY_STATE_SENDER_WAIT_EOF_STATE_H_
#include <iostream>
#include <msgpack.hpp>
#include <ssf/log/log.h>
#include "common/error/error.h"
#include "services/copy/i_copy_state.h"
#include "services/copy/packet/init.h"
#inclu... | 888 |
2,868 | <reponame>jtravee/neuvector<filename>dp/third-party/hyperscan/src/parser/Component.h
/*
* Copyright (c) 2015, Intel Corporation
*
* 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... | 1,678 |
365 | <filename>source/blender/blenlib/BLI_vector_adaptor.hh
/*
* 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... | 867 |
1,246 | # Generated by Django 2.2.12 on 2020-05-27 07:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('instances', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='PermissionSet',
fields=[
... | 306 |
973 | <gh_stars>100-1000
#ifndef OPENGL_GEN_CORE_1_0_HPP
#define OPENGL_GEN_CORE_1_0_HPP
#include "_int_load_test.hpp"
namespace gl
{
namespace _detail
{
typedef void (CODEGEN_FUNCPTR * Proc_glBlendFunc)(GLenum sfactor, GLenum dfactor);
typedef void (CODEGEN_FUNCPTR * Proc_glClear)(GLbitfield mask);
typedef void (CO... | 2,624 |
32,544 | <gh_stars>1000+
package com.baeldung.serenity.spring.steps;
import io.restassured.module.mockmvc.response.MockMvcResponse;
import net.thucydides.core.annotations.Step;
import java.io.UnsupportedEncodingException;
import static io.restassured.module.mockmvc.RestAssuredMockMvc.given;
import static org.hamcrest.core.Is... | 375 |
429 | from django.conf import settings
from django.contrib.staticfiles.finders import get_finders
from django.core.files.storage import FileSystemStorage, get_storage_class
from django.utils.functional import LazyObject
class SassFileStorage(LazyObject):
def _setup(self):
storage_path = getattr(settings, 'SASS_... | 371 |
416 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "mp3_buf.h"
#define SOUND_DEVICE "/dev/sb16"
static int sound_fd = 0;
static unsigned short MP3_Data[OUTPUT_BUFFER_SIZE... | 280 |
3,783 | package problems.medium;
import problems.utils.TreeNode;
import java.util.Stack;
/**
* Created by sherxon on 1/4/17.
*/
public class BinarySearchTreeIterator {
Stack<TreeNode> stack;
public BinarySearchTreeIterator(TreeNode root) {
stack = new Stack<>();
add(root);
}
/**
* @... | 326 |
9,717 | # -*- coding: utf-8 -*-
import setuptools
import tokenize
__file__='setup.py';
exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
| 77 |
418 | <filename>tests/test_files/returncode.py
_, _, return_code = ~"false"
assert return_code == 1
exit_code = 123
*_, return_code = ~f"exit {exit_code}"
assert return_code == exit_code
[_, _, return_code] = ~'echo hi'
assert return_code == 0
| 90 |
964 | [
{
"queryName": "Global Schemes Uses HTTP",
"severity": "MEDIUM",
"line": 8,
"filename": "positive1.json"
},
{
"queryName": "Global Schemes Uses HTTP",
"severity": "MEDIUM",
"line": 6,
"filename": "positive2.yaml"
}
]
| 117 |
942 | <filename>src/tcriteriamongoconverter.h
#pragma once
#include "tsystemglobal.h"
#include <QMap>
#include <QMetaObject>
#include <QMetaProperty>
#include <QVariant>
#include <TCriteria>
#include <TCriteriaConverter>
#include <TGlobal>
template <class T>
class TCriteriaMongoConverter {
public:
TCriteriaMongoConvert... | 2,561 |
808 | <gh_stars>100-1000
/*
* Adapated from https://gist.github.com/cmaglie/5883185
*/
#ifndef _STRING_STREAM_H_INCLUDED_
#define _STRING_STREAM_H_INCLUDED_
#include <Stream.h>
class StringStream : public Stream
{
public:
StringStream(String &s) : string(s), position(0) { }
// Stream methods
virtual int ava... | 284 |
2,453 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <IDEKit/NSObject-Protocol.h>
@class NSArray, NSAttributedString;
@protocol IDEArchiveStatusLogItemChild <NSObject>
@property(readonly) NSArray *children;
@property(readonly)... | 162 |
16,989 | // Copyright 2018 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 394 |
856 | //
// Copyright © 2021 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include <reference/workloads/Decoders.hpp>
#include <fmt/format.h>
#include <doctest/doctest.h>
#include <chrono>
template<typename T>
void CompareVector(std::vector<T> vec1, std::vector<T> vec2)
{
CHECK(v... | 2,964 |
1,044 | import logging
import os
import sys
import time
from typing import Any
import multiprocessing
import functools
nesting_level = 0
is_start = None
NCPU = multiprocessing.cpu_count()
def log(entry: Any):
global nesting_level
space = "-" * (4 * nesting_level)
logger.info("{}{}".format(space, entry))
def g... | 985 |
3,083 | // Copyright 2011-2016 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 ... | 1,191 |
381 | <reponame>nanjekyejoannah/pypy<filename>rpython/rlib/test/test_rposix_environ.py
from rpython.translator.c.test.test_genc import compile
import os
def test_environ_items():
def foo(x):
if x:
return len(os.environ.items())
else:
return 0
f = compile(foo, [int], backendop... | 612 |
603 | #pragma once
#include "owl/owl.h"
#include "owl/common/math/vec.h"
#include <vector>
#include <map>
#include <stdexcept>
#include <string>
#include <iostream>
#include <memory>
#include "hdri.h"
#include "mesh.h"
namespace cdf {
using namespace owl;
using namespace owl::common;
enum PixelFormat { PF_RGB32F, PF... | 3,470 |
997 | // ================================================================
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
// ================================================================
#ifndef PDQIO_H
#define PDQIO_H
// ================================================================
// CImg-de... | 699 |
687 | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
MODEL_ZOO_STORAGE_PREFIX = "https://mobile-cv.s3-us-west-2.amazonaws.com/d2go/models/"
def get_launch_environment():
return "local"
| 87 |
454 | {
"latent_dim":56,
"max_decode_steps":278,
"eps_std":0.01,
"encoder_type":"cnn",
"rnn_type": "gru"
} | 53 |
488 | <reponame>ouankou/rose
#include <stdio.h>
#if defined(_OPENMP)
#include <omp.h>
#endif /* _OPENMP */
static double a[1000];
static void init(void)
{
int i=0;
i=i+5;
#pragma omp for
for (i=0;i<1000;i++)
{
a[i]=(double)i/2.0;
}
}
int main(void){
#pragma omp parallel
{
init();
}
return 0;
}
| 158 |
533 | <filename>saber/funcs/impl/amd/saber_slice.cpp<gh_stars>100-1000
/* Copyright (c) 2019 Anakin Authors, 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... | 2,197 |
9,953 | from scrapy.downloadermiddlewares.httpproxy import HttpProxyMiddleware
class HttpProxy(HttpProxyMiddleware):
@staticmethod
def proxy_shadowsocks():
proxy = "http://127.0.0.1:1080"
return proxy
| 83 |
679 | <filename>main/dtrans/source/win32/dnd/source.hxx
/**************************************************************
*
* 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 copyrig... | 1,453 |
479 | <reponame>jeremyvdw/aurora
/**
* 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 wr... | 1,723 |
1,056 | <filename>java/spring.beans/src/org/netbeans/modules/spring/beans/completion/completors/PNamespaceBeanRefCompletor.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding c... | 1,093 |
409 | <filename>giraffeplayer2/src/main/java/tcking/github/com/giraffeplayer2/UIHelper.java
package tcking.github.com.giraffeplayer2;
import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.util.DisplayMetri... | 2,412 |
5,169 | <reponame>Gantios/Specs
{
"name": "NKVPhonePicker",
"version": "2.1.1",
"summary": "A UITextField subclass to simplify the selection of country codes.",
"description": "With this pod you can easily select country codes with just making your textFields class - the NKVPhonePickerTextField. \nSupport formatting ph... | 348 |
1,473 | /*
* Autopsy Forensic Browser
*
* Copyright 2013-18 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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:/... | 2,979 |
2,338 | // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -verify %s
namespace {
// TODO this must be fixed. This warning shouldn't be generated.
// expected-warning@+1{{function '(anonymous namespace)::bar' has internal linkage but is not defined}}
void bar();
} // namespace
#pragma omp begin declare variant match(... | 280 |
777 | // 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 COMPONENTS_OMNIBOX_BROWSER_HISTORY_QUICK_PROVIDER_H_
#define COMPONENTS_OMNIBOX_BROWSER_HISTORY_QUICK_PROVIDER_H_
#include <string>
#include... | 769 |
372 | <reponame>VisualMine/PlaneNet
import numpy as np
import glob
import cv2
import os
from utils import *
## This class handle one scene of the scannet dataset and provide interface for dataloaders
class ScanNetScene():
def __init__(self, options, scenePath, scene_id):
self.options = options
self.loa... | 5,554 |
3,787 | {
"module_path": "federatedml/util",
"param_class" : "federatedml/param/sample_weight_param.py/SampleWeightParam",
"role":
{
"guest|host":
{
"program": "sample_weight.py/SampleWeight"
}
}
}
| 126 |
1,738 | <reponame>chriscoombs/aws-comparing-algorithms-performance-mlops-cdk
# Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# ... | 1,213 |
502 | <reponame>jackx22/fixflow
package com.founder.fix.fixflow.util;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.json.JSONArray;
... | 2,989 |
3,269 | # Time: O(nlogn)
# Space: O(1)
class Solution(object):
def countPairs(self, nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
:rtype: int
"""
for i in xrange(len(nums1)):
nums1[i] -= nums2[i]
nums1.sort()
result = 0
... | 335 |
665 | /*
* 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")... | 617 |
945 | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 1,648 |
678 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@class NSString;
@interface WCRedEnvelopesOperationInfo : NSObject
{
_Bool m_bOpEnable;
NSString *m_nsOpName;
NSString *m_nsOpType;
NSString *m_nsOp... | 405 |
3,645 | <reponame>huyu0415/FFmpeg<gh_stars>1000+
/*
* Copyright (c) 2015 <NAME> (<EMAIL>)
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1... | 12,410 |
938 | {
"title": "Armor Upgrades",
"text": [
{ "text": "Armor upgrades provide ways to modify your jump, speed, and other such factors." }
]
}
| 49 |
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.
#include "components/payments/content/android/currency_formatter_android.h"
#include <memory>
#include <string>
#include "base/android/jni_string.h"
#in... | 845 |
341 | <gh_stars>100-1000
package admintravel.entity;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author fdse
*/
@Data
@NoArgsConstructor
public class AdminTrip {
private Trip trip;
private TrainType trainType;
private Route route;
}
| 93 |
679 | <filename>main/svx/source/sdr/contact/viewcontactofgraphic.cxx
/**************************************************************
*
* 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
* reg... | 8,321 |
764 | <gh_stars>100-1000
/* Copyright 2019 DeepMind Technologies Limited. 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 requi... | 9,790 |
1,443 | <reponame>cssence/mit-license
{
"copyright": "<NAME>",
"url": "http://rezhajulio.web.id",
"email": "<EMAIL>",
"format": "html",
"theme": "afterdark"
}
| 71 |
622 | <filename>api/src/main/java/ai/djl/training/loss/SigmoidBinaryCrossEntropyLoss.java
/*
* Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the Licens... | 1,324 |
6,989 | #pragma once
#include <util/system/types.h>
#include <util/generic/map.h>
#include <util/generic/hash.h>
#include <util/generic/ptr.h>
#include <util/generic/guid.h>
#include <util/system/spinlock.h>
#include <util/system/mutex.h>
//cacheable type should has GetGuid() method. this stub is default implementation for t... | 1,404 |
575 | <reponame>Ron423c/chromium<filename>chrome/browser/touch_to_fill/android/java/src/org/chromium/chrome/browser/touch_to_fill/data/Credential.java
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package o... | 939 |
344 | #include <stdint.h>
#ifndef FRANKENSTEIN_EMULATION
/*
Patchram implementation running on the device
*/
#define PATCHRAM_SLOTS 255
extern int patchram_enable[]; // 0x310404 on CYW20735
extern int patchram_address_table[]; // 0x310000 on CYW20735
extern int patchram_data_table[]; // 0x270000 on CYW20... | 545 |
526 | <reponame>rychagova/egeria
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.testng.annotation... | 2,788 |
647 |
// Local includes
#include "trick/IntegLoopScheduler.hh"
#include "trick/IntegLoopManager.hh"
#include "trick/IntegJobClassId.hh"
// Trick includes
#include "trick/exec_proto.h"
#include "trick/message_proto.h"
#include "trick/message_type.h"
#include "trick/JobData.hh"
// System includes
#include <iostream>
#incl... | 8,920 |
357 | /*
* Copyright © 2012-2016 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the “License”); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 2,911 |
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 CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_
#define CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_
#include "build/build_config.h"
#include "components/sync/dri... | 1,886 |
2,939 | <reponame>mlwilkerson/lumen
#include "lumen/EIR/Conversion/BuiltinOpConversions.h"
namespace lumen {
namespace eir {
struct IncrementReductionsOpConversion
: public EIROpConversion<IncrementReductionsOp> {
using EIROpConversion::EIROpConversion;
LogicalResult matchAndRewrite(
IncrementReductionsO... | 6,218 |
374 | #import <objc/runtime.h>
struct objc_super {
id receiver;
Class super_class;
};
OBJC_EXPORT id objc_msgSend(id self, SEL selector, ...);
OBJC_EXPORT id objc_msgSendSuper(struct objc_super *super, SEL op, ...);
OBJC_EXPORT void objc_msgSend_stret(id self, SEL selector, ...);
OBJC_EXPORT void objc_msgSendSuper... | 236 |
670 | <gh_stars>100-1000
# import numpy
import numpy as np
# define our sigmoid function
def sigmoid(x):
return 1/ (1 + np.exp(-x))
# craete the AN
class Neuron:
def __init__(self, weights, bias):
self.weights = weights
self.bias = bias
def feedforwards(self, inputs):
total = np.dot(self.weights, inputs... | 198 |
496 | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... | 1,911 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/RemoteUI.framework/RemoteUI
*/
/* iOSOpenDev: commented-out (since already defined in SDK)
typedef struct _opaque_pthread_mutex_t {
long __sig;
BOOL __opaque[40];
} opaque_pthread_mutex_t;
*/
// iOSOpenDev: wrapped... | 416 |
517 | <reponame>mlapierre/Selenium-Grid-Extras<filename>SeleniumGridExtras/src/test/java/com/groupon/seleniumgridextras/utilities/TempUtilityTest.java
package com.groupon.seleniumgridextras.utilities;
import org.junit.Test;
import java.io.File;
import static org.junit.Assert.assertEquals;
public class TempUtilityTest {
... | 249 |
1,350 | <filename>sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/ThroughputSettingsResource.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.... | 1,308 |
373 | # BASE = "https://lingon.ladok.umu.se"
BASE = "https://localhost"
# If BASE is https these has to be specified
SERVER_CERT = "certs/server.crt"
SERVER_KEY = "certs/server.key"
CA_BUNDLE = None
CERT_CHAIN = None
VERIFY_SSL = False
# information used when registering the client, this may be the same for all OPs
ME = ... | 580 |
1,781 | <reponame>yulin2/UltimateAndroid<gh_stars>1000+
package com.marshalchen.common.demoofui.flipviewpager.activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import a... | 1,997 |
440 | /*========================== begin_copyright_notice ============================
Copyright (C) 2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#include "wa_def.h"
#define XE_HP_SDV_GT_REV_ID_A0 SI_REV_ID(0,0)
//****************... | 382 |
364 | // File
// doc/quickbook/oglplus/quickref/enums/transform_feedback_primitive_type_class.hpp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/transform_feedback_primitive_type.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2019 <N... | 384 |
777 | {
"name": "lifecycle_unittest_app",
"display_name": "Lifecycle Unittest App",
"interface_provider_specs": {
"service_manager:connector": {
"provides": {
"lifecycle_unittest:lifecycle_control": [
"service_manager::test::mojom::LifecycleControl"
]
}
}
}
}
| 143 |
22,481 | <gh_stars>1000+
"""SmartTub integration."""
from homeassistant.const import Platform
from .const import DOMAIN, SMARTTUB_CONTROLLER
from .controller import SmartTubController
PLATFORMS = [
Platform.BINARY_SENSOR,
Platform.CLIMATE,
Platform.LIGHT,
Platform.SENSOR,
Platform.SWITCH,
]
async def asy... | 390 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.