max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
603
<reponame>shiyunon/openqasm<filename>source/openqasm/visitor.py from typing import Optional, TypeVar, Generic from openqasm.ast import QASMNode T = TypeVar("T") class QASMVisitor(Generic[T]): """ A node visitor base class that walks the abstract syntax tree and calls a visitor function for every node fo...
1,322
1,139
package com.journaldev.advanceddatabinding; import android.databinding.BindingAdapter; import android.databinding.DataBindingUtil; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.ImageView; import com.journaldev.advanceddatabinding.databinding.ActivityMainBinding; im...
895
4,140
/* * 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,111
303
<reponame>ofZach/landlinesApp<gh_stars>100-1000 {"id":2414,"line-1":"South Australia","line-2":"Australia","attribution":"©2014 Cnes/Spot Image, DigitalGlobe","url":"https://www.google.com/maps/@-27.661466,140.119237,16z/data=!3m1!1e3"}
94
7,899
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import pytest import numpy as np from utils_cv.classification.plot import ( plot_roc_curve, plot_precision_recall_curve, plot_pr_roc_curves, plot_thresholds, ) from utils_cv.classification.model import hamming...
1,353
6,989
<filename>library/cpp/token/char_normalization_ut.cpp #include <library/cpp/testing/unittest/registar.h> #include <util/charset/wide.h> #include "charfilter.h" class TCharNormalizationTest: public TTestBase { UNIT_TEST_SUITE(TCharNormalizationTest); UNIT_TEST(TestAll); UNIT_TEST_SUITE_END(); public: v...
1,637
3,603
<gh_stars>1000+ /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, softw...
4,366
369
/* * Copyright © 2014 <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 applicable law or agreed to i...
518
1,056
<filename>java/j2ee.metadata/src/org/netbeans/modules/j2ee/metadata/model/api/MetadataModel.java<gh_stars>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...
2,665
1,408
<filename>presidio-analyzer/tests/test_entity_recognizer.py from presidio_analyzer import EntityRecognizer, RecognizerResult, AnalysisExplanation def test_when_to_dict_then_return_correct_dictionary(): ent_recognizer = EntityRecognizer(["ENTITY"]) entity_rec_dict = ent_recognizer.to_dict() assert entity_...
2,113
377
/* * Licensed to the Technische Universität Darmstadt under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The Technische Universität Darmstadt * licenses this file to you under the Apache License, Versio...
1,112
575
<gh_stars>100-1000 // 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. #include "components/sync/engine/polling_constants.h" namespace syncer { // Server can overwrite these values via client commands...
471
2,209
<reponame>ChrisRBXiong/MatchZoo-py import nltk from .unit import Unit class Lemmatization(Unit): """Process unit for token lemmatization.""" def transform(self, input_: list) -> list: """ Lemmatization a sequence of tokens. :param input_: list of tokens to be lemmatized. :r...
204
2,059
{"name":"sbt","version":"1.4.4","bspVersion":"2.0.0-M5","languages":["scala"],"argv":["/Users/rnorris/Library/Caches/Coursier/jvm/adopt@1.11.0-9/Contents/Home/bin/java","-Xms100m","-Xmx100m","-classpath","/Users/rnorris/Library/Application Support/Coursier/bin/sbt:/Users/rnorris/Library/Caches/Coursier/v1/https/repo1.m...
254
12,278
<filename>external/rocksdb/java/src/main/java/org/rocksdb/AbstractWalFilter.java<gh_stars>1000+ // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE...
603
679
<filename>main/sc/source/filter/xml/xmlcelli.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 * regarding copyrig...
26,727
5,169
{ "name": "CustomScrollIndicator", "version": "0.1.1", "requires_arc": true, "authors": { "<NAME>": "<EMAIL>" }, "platforms": { "ios": "4.3" }, "summary": "Easy way to customize UIScrollView scroll indicator", "license": { "type": "MIT" }, "homepage": "https://github.com/leverdeterre/C...
237
665
/* data_partition.h -*- C++ -*- <NAME>, 26 August 2012 Copyright (c) 2012 mldb.ai inc. All rights reserved. This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. Abstract data partition used for training. */ #pragma once #include <tupl...
1,507
671
<reponame>patrickvonplaten/optax # 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/LI...
2,493
5,823
<gh_stars>1000+ // Copyright 2013 The Flutter 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 FLUTTER_SHELL_PLATFORM_LINUX_FL_TEXTURE_GL_PRIVATE_H_ #define FLUTTER_SHELL_PLATFORM_LINUX_FL_TEXTURE_GL_PRIVATE_H_ #include "flut...
555
657
# Generated by Django 3.0.7 on 2021-04-08 09:27 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blogs', '0031_emailer'), ] operations = [ migrations.RenameField( model_name='emailer', old_name='notify_users', ...
167
4,036
package incomparable_equals; public class D<T> { public void test(java.util.List<? extends T> l, String s) { l.get(0).equals(s); } public static void main(String[] args) { new D<String>().test(java.util.Collections.singletonList("Hi!"), "Hi!"); } }
103
2,838
<gh_stars>1000+ /** * Copyright 2018 Confluent Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
11,931
533
# _*_ coding: utf-8 _*_ """ Created by Allen7D on 2020/4/16. """ import unittest from app import db, create_app, connect_db from app.models.theme import Theme from app.models.product import Product as ProductModel from app.models.user import User as UserModel from tests.utils import format_print, get_authorization ...
941
1,016
/** * */ package com.thinkbiganalytics.metadata.sla.alerts; /*- * #%L * thinkbig-sla-core * %% * Copyright (C) 2017 ThinkBig Analytics * %% * 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 Licen...
615
310
package com.propertycross.mgwt.view; import com.google.gwt.core.client.GWT; import com.google.gwt.safehtml.client.SafeHtmlTemplates; import com.google.gwt.safehtml.shared.SafeHtml; import com.google.gwt.safehtml.shared.SafeHtmlBuilder; import com.googlecode.mgwt.ui.client.widget.celllist.Cell; import com.propertycross...
326
15,193
<reponame>goncaloperes/bokeh from bokeh.io import show from bokeh.models import Button, CustomJS button = Button(label="Foo", button_type="success") button.js_on_click(CustomJS(code="console.log('button: click!', this.toString())")) show(button)
88
777
// 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. #include "chrome/browser/safe_search_api/safe_search_url_checker.h" #include <stddef.h> #include <memory> #include <string> #include <utility> #include...
2,306
1,390
<filename>exponential.py """ Code by <NAME>(@graykode) https://en.wikipedia.org/wiki/Exponential_distribution """ import numpy as np from matplotlib import pyplot as plt def exponential(x, lamb): y = lamb * np.exp(-lamb * x) return x, y, np.mean(y), np.std(y) for lamb in [0.5, 1, 1.5]: x = np.ara...
276
4,036
package org.apache.shiro.crypto; import java.io.InputStream; import java.io.OutputStream; public interface CipherService { void decrypt(InputStream var1, OutputStream var2, byte[] var3) throws Exception; void encrypt(InputStream var1, OutputStream var2, byte[] var3) throws Exception; }
91
1,511
<filename>tests/cluecode/data/ics/iproute2-include-linux/netfilter_ipv4.h #define __LINUX_IP_NETFILTER_H /* IPv4-specific defines for netfilter. * (C)1998 <NAME> -- This code is GPL. */
74
1,853
/* * Copyright 2017-2021 Dromara.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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
859
380
#!/usr/bin/env python import glob import codecs files = glob.glob('/home/fl350/bachbot/scratch/BWV-*-nomask-fermatas.txt') train_lines = [] val_lines = [] for i,fp in enumerate(files): with codecs.open(fp, 'r', 'utf-8') as fd: lines = map( lambda x: filter(lambda c: c not in ' \n', x), ...
319
1,602
<reponame>jhh67/chapel import pandas as pd I = ["A", "B", "C", "D", "E"] A = ["a", "b", "c", "d", "e"] letters = pd.Series(A, pd.Index(I)) print letters print print "contains A: " + str(letters.index.contains("A")) print "contains F: " + str(letters.index.contains("F"))
120
14,668
// 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 "ui/ozone/platform/cast/overlay_manager_cast.h" #include <memory> #include "ui/ozone/public/overlay_candidates_ozone.h" namespace ui { namespa...
256
366
// Copyright (c) 2014-2021 The Gridcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or https://opensource.org/licenses/mit-license.php. #include "qt/forms/voting/ui_pollcard.h" #include "qt/guiutil.h" #include "qt/voting/pollcard.h" #include "qt/voting/votingmodel...
946
1,522
<gh_stars>1000+ from .base_section import BaseSection try: from mtools.util.profile_collection import ProfileCollection except ImportError: ProfileCollection = None class RestartSection(BaseSection): """ RestartSection class. This section determines if there were any restarts in the log file and...
713
852
#ifndef RECORDS_ECALPRESHOWERGEOMETRYRECORD_H #define RECORDS_ECALPRESHOWERGEOMETRYRECORD_H // -*- C++ -*- // // Package: Records // Class : EcalPreshowerGeometryRecord // // // Author: <NAME> // Created: Tue April 1, 2008 // #include "FWCore/Framework/interface/EventSetupRecordImplementation.h" #inc...
862
321
// This file is generated by Ubpa::USRefl::AutoRefl #pragma once #include <USRefl/USRefl.h> template<> struct Ubpa::USRefl::TypeInfo<Ubpa::Utopia::Camera> : TypeInfoBase<Ubpa::Utopia::Camera> { #ifdef UBPA_USREFL_NOT_USE_NAMEOF static constexpr char name[21] = "Ubpa::Utopia::Camera"; #endif static conste...
579
4,879
<filename>generator/postcode_points_builder.hpp #pragma once #include <string> namespace storage { class CountryInfoGetter; } namespace indexer { enum class PostcodePointsDatasetType { UK, US }; // Builds postcodes section with external postcodes data and writes it to the mwm file. bool BuildPostcodePoints(std:...
379
335
{ "word": "Atoll", "definitions": [ "A ring-shaped coral reef that partially or completely encircles a lagoon." ], "parts-of-speech": "Noun" }
77
990
''' In a string S of lowercase letters, these letters form consecutive groups of the same character. For example, a string like S = "abbxxxxzyy" has the groups "a", "bb", "xxxx", "z" and "yy". Call a group large if it has 3 or more characters. We would like the starting and ending positions of every large group. Th...
646
1,473
#!/usr/bin/env python2 # # Copyright (c) 2013,<NAME> <<EMAIL>> # # This program 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 of the License, or (at your option) any later version...
5,690
850
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
4,509
315
#pragma once #include "FlingTypes.h" #include "FlingVulkan.h" #include "Singleton.hpp" #include <entt/entity/registry.hpp> #include <vector> #include <atomic> namespace Fling { /** Configuration that can determine what render pipelines will be added to this application */ enum PipelineFlags { DEFERRED = (1u <...
1,728
2,215
<gh_stars>1000+ # # Copyright (c) 2022 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause # import logging from os.path import abspath, dirname, join import sys import unittest...
2,652
496
/******************************************************************************* * Project: Nebula * @file Context.cpp * @brief * @author Bwar * @date: 2019年2月16日 * @note * Modify history: ******************************************************************************/ #include "Context.hpp" namespa...
203
348
{"nom":"Orthez","circ":"3ème circonscription","dpt":"Pyrénées-Atlantiques","inscrits":8180,"abs":3879,"votants":4301,"blancs":67,"nuls":27,"exp":4207,"res":[{"nuance":"REM","nom":"<NAME>","voix":1382},{"nuance":"SOC","nom":"<NAME>","voix":1158},{"nuance":"FI","nom":"<NAME>","voix":473},{"nuance":"LR","nom":"<NAME>","vo...
316
1,336
<reponame>ltp217/servicecomb-java-chassis /* * 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...
415
348
{"nom":"<NAME>","dpt":"Eure-et-Loir","inscrits":117,"abs":15,"votants":102,"blancs":5,"nuls":4,"exp":93,"res":[{"panneau":"2","voix":50},{"panneau":"1","voix":43}]}
72
4,126
#pragma once #include "QtChunk.h" class Region { public: Region(); /** Retrieves the chunk with the specified relative coords. */ Chunk & getRelChunk(int a_RelChunkX, int a_RelChunkZ); /** Returns true iff the chunk data for all chunks has been loaded. This doesn't mean that all the chunks are valid, only ...
368
4,339
/* * 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 ...
1,029
333
/* * Copyright © 2018 <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 ...
1,487
3,012
<filename>ArmPkg/Library/SemihostLib/SemihostLib.c /** @file Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> Copyright (c) 2013 - 2021, Arm Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> #include <Library/BaseLib.h> #include <Libr...
2,945
715
<filename>JavaSource/chart/src/main/java/cn/xiaowenjie/ChartModule.java package cn.xiaowenjie; import org.springframework.stereotype.Component; import javax.annotation.PostConstruct; /** * 图标和上传模块 */ @Component public class ChartModule { @PostConstruct public void init(){ System.out.println("---...
375
412
// -*- Mode: objc; Coding: utf-8; indent-tabs-mode: nil; -*- @import Cocoa; @interface PreferencesModel : NSObject @property BOOL resumeAtLogin; @property BOOL checkForUpdates; @property(copy) NSDictionary* values; - (void)setValue:(int)newval forName:(NSString*)name; @end
103
1,363
/* * Copyright (C) 2016 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
644
410
/* * Copyright (c) 2014, 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 Softwa...
1,966
13,006
/******************************************************************************* * Copyright (c) 2015-2019 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
3,007
1,031
/* Copyright (c) <2003-2021> <<NAME>, Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, *...
3,031
2,188
{ "PowerShell": { "displayName": "PowerShell_6.1.2", "source": "https://github.com/PowerShell/PowerShell/releases/download/v6.1.2/PowerShell-6.1.2-win-x64.msi", "hash": { "algorithm": "sha512", "hashCode": "DD66C1E67BD5F3B74D97A5F9B0764B0D2DB840E9DE52FABD17D975C28CD38046957EB0C0DDDFB76C48E8AEAECDBB1A...
233
443
<reponame>Rahul18728/cerl<gh_stars>100-1000 /* ------------------------------------------------------------------------- // WINX: a C++ template GUI library - MOST SIMPLE BUT EFFECTIVE // // This file is a part of the WINX Library. // The use and distribution terms for this software are covered by the // Common P...
679
2,139
package java_integration.fixtures; public class ClassWithEnums { public enum Enums { A, B, C } }
36
3,562
// 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...
531
1,681
<gh_stars>1000+ package com.easytoolsoft.easyreport.meta.domain.example; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * @author <NAME> * @date 2017-03-25 */ public class ReportHistoryExample { protected String orderByClause; protected boolean distinct; protected List<...
14,244
399
<gh_stars>100-1000 package org.cryptocoinpartners.module; import java.math.BigDecimal; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Random; import javax.inject.Inject; import org.apache.commons.conf...
3,556
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,535
488
/******************************************************************************* * Copyright 2012 University of Southern California * * 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 * ...
2,250
2,294
<filename>tutorials/W3D1_RealNeurons/solutions/W3D1_Tutorial3_Solution_bedc4823.py """ Discussion: Increasing the input rate, we decrease the synaptic efficacy, i.e., the synaptic conductance decreases. This is the case for both Poisson or a regular spiking input. In case of regular spiking, the synaptic conductance ...
117
2,796
#!/usr/bin/env python3 import argparse import sys def main(): parser = argparse.ArgumentParser() parser.add_argument("prev_bench", help="Memory benchmark of base branch of PR") parser.add_argument("cur_bench", help="Memory benchmark of PR post-merge") parser.add_argument("outfile", help="Filename to ...
1,379
852
<reponame>Purva-Chaudhari/cmssw<gh_stars>100-1000 #include "catch.hpp" #include "FWCore/Framework/interface/ESRecordsToProxyIndices.h" #include "FWCore/Framework/interface/ComponentDescription.h" #include <memory> #include <string> #include <vector> namespace { struct Data1 {}; struct Data2 {}; struct Data3 {}...
1,973
412
<reponame>mauguignard/cbmc enum en { e1 }; struct aStruct { enum en field; }; void fun1(enum en *par) { (*par) = e1; } int main() { struct aStruct s; fun1(&s.field); __CPROVER_assert(0, ""); return 0; }
106
335
{ "word": "Tourist", "definitions": [ "A person who is travelling or visiting a place for pleasure.", "A member of a touring sports team." ], "parts-of-speech": "Noun" }
81
318
/* SCCS Id: @(#)tilemap.c 3.4 2000/06/04 */ /* NetHack may be freely redistributed. See license for details. */ /* * This source file is compiled twice: * once without TILETEXT defined to make tilemap.{o,obj}, * then again with it defined to produce tiletxt.{o,obj}. */ #include "hack.h" const char * FDECL(tilen...
6,162
432
<reponame>lambdaxymox/DragonFlyBSD /* getnline - Read a line from a stream, with bounded memory allocation. Copyright (C) 2003, 2004 Free Software Foundation, Inc. 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 ...
418
764
{"symbol": "OPCT","address": "0xDb05EA0877A2622883941b939f0bb11d1ac7c400","overview":{"en": "Opacity provides e2e encrypted file storage that maintains 100% privacy."},"email": "<EMAIL>","website": "http://www.opacity.io/","state": "NORMAL","links": {"blog": "https://medium.com/opacity-storage","twitter": "https://twit...
146
398
<filename>examples/generated-schemas/extensible.schema.json<gh_stars>100-1000 {"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may...
272
448
extern NSString * const CHANNEL_NAME_FLUTTER_BLE_LIB; extern NSString * const CHANNEL_NAME_ADAPTER_STATE_CHANGES; extern NSString * const CHANNEL_NAME_STATE_RESTORE_EVENTS; extern NSString * const CHANNEL_NAME_SCANNING_EVENTS; extern NSString * const CHANNEL_NAME_CONNECTION_STATE_CHANGE_EVENTS; extern NSString * const ...
133
418
<filename>src/test/java/com/slyak/spring/jpa/SampleQuery.java package com.slyak.spring.jpa; /** * . * <p/> * * @author <a href="mailto:<EMAIL>">stormning</a> * @version V1.0, 16/3/15. */ public class SampleQuery { private String content; public String getContent() { return content; } public void setCont...
161
658
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2014 <NAME> <<EMAIL>> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at http://mozilla...
3,827
1,144
/****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU ...
11,882
2,215
# # Copyright (c) 2021 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause # """ Post-rule to transform anomaly scores to follow a standard normal distribution. """ import loggi...
2,219
529
package com.alibaba.flink.ml.examples.tensorflow.mnist.ops.descriptor; import com.alibaba.flink.ml.tensorflow.io.TFRExtractRowHelper; import org.apache.flink.table.descriptors.ConnectorDescriptor; import org.apache.flink.table.descriptors.DescriptorProperties; import java.util.ArrayList; import java.util.Collections;...
653
334
// Auto generated code, do not modify package nxt.http.callers; import nxt.http.APICall; public class GetPeerCall extends APICall.Builder<GetPeerCall> { private GetPeerCall() { super(ApiSpec.getPeer); } public static GetPeerCall create() { return new GetPeerCall(); } public GetPe...
156
505
<reponame>dekuNukem/FAP_Z80 #ifndef __SOFTSERIAL_H #define __SOFTSERIAL_H #ifdef __cplusplus extern "C" { #endif #include "stm32f0xx_hal.h" #include "delay_us.h" void softserial_init(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin); void softserial_sendchar(uint8_t c); #ifdef __cplusplus } #endif #endif
146
317
<reponame>heralex/OTB /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You...
719
877
<gh_stars>100-1000 public class Class2 extends Class1 {}
18
6,992
/* * Copyright 2002-2016 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 License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
844
970
[{"id":1,"email":"<EMAIL>","name":"<NAME>","username":"john.smith1","bio":null,"skype":"","linkedin":"","twitter":"john1","dark_scheme":false,"theme_id":1,"blocked":false,"created_at":"2012-09-17T09:41:56Z"},{"id":2,"email":"<EMAIL>","name":"<NAME>","username":"john.smith2","bio":null,"skype":"","linkedin":"","twitter"...
153
2,151
<filename>chrome/browser/chromeos/login/bluetooth_host_pairing_browsertest.cc // 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 "base/memory/ref_counted.h" #include "base/run_loop.h" #include "ch...
3,589
572
<filename>include/IndexedStorageLib/IndexedStorage.h<gh_stars>100-1000 // (C) Copyright <NAME> and <NAME> 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // Repository at: https://github.com/djeedjay/Debug...
575
745
<gh_stars>100-1000 import logging import colorlog fmt = "{log_color}{levelname} {name}: {message}" colorlog.basicConfig(level=logging.DEBUG, style="{", format=fmt, stream=None) log = logging.getLogger() log.warning("hello")
80
318
<filename>android/src/main/java/org/saintandreas/vulkanexamples/examples/TextureCubemap.java<gh_stars>100-1000 package org.saintandreas.vulkanexamples.examples; import android.app.NativeActivity; public class TextureCubemap extends NativeActivity { }
82
1,144
package de.metas.printing.model.validator; /* * #%L * de.metas.printing.base * %% * Copyright (C) 2015 metas GmbH * %% * 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 o...
1,660
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-v9m6-5wqp-m9mc", "modified": "2022-05-05T02:48:37Z", "published": "2022-05-05T02:48:37Z", "aliases": [ "CVE-2013-0230" ], "details": "Stack-based buffer overflow in the ExecuteSoapAction function in the SOAPAction handler in the HTTP service ...
625
2,232
<gh_stars>1000+ /* Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: <NAME> */ #include <string> #include <algorithm> #include <functional> #include <cctype> #include "util/sstream.h" #include "library/module.h" #include "library/...
2,687
386
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2018, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Re...
2,396
6,041
<filename>tests/test_sample_farthest_points.py # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import unittest import numpy as np import torch from common_testi...
5,422
700
// // mLib includes // #include "mLibCore.h" #include "mLibLodePNG.h" #include "mLibFreeImage.h" //#include "mLibEigen.h" #include "flann/flann.hpp" using namespace ml; using namespace std;
81
473
#ifndef COMPARE_H_ #define COMPARE_H_ #include "cgc_hash.h" #include "cgc_sfile.h" typedef struct linecmp lc_t; struct linecmp { char *pline; char *no_ws_line; lhash_t lhash; lhash_t no_ws_lhash; }; // line comparator typedef struct linecmp_list lcll_t; struct linecmp_list { lc_t *lc; lcll_...
242