max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,894
#! /usr/bin/env python # Copyright 2009 Google Inc. All Rights Reserved. # Copyright 2014 Altera Corporation. All Rights Reserved. # Copyright 2014-2015 <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...
937
1,970
<filename>hudi-common/src/main/java/org/apache/hudi/common/model/HoodieRecordGlobalLocation.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. Th...
951
956
/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0) * Copyright(c) 2015-2018 Intel Corporation */ #ifndef _ICP_QAT_HW_H_ #define _ICP_QAT_HW_H_ enum icp_qat_hw_ae_id { ICP_QAT_HW_AE_0 = 0, ICP_QAT_HW_AE_1 = 1, ICP_QAT_HW_AE_2 = 2, ICP_QAT_HW_AE_3 = 3, ICP_QAT_HW_AE_4 = 4, ICP_QAT_HW_AE_5 = 5, ICP_QAT_HW_AE_...
8,567
2,151
// 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 "media/capabilities/video_decode_stats_db_impl.h" #include <memory> #include <tuple> #include "base/files/file_path.h" #include "base/format_ma...
4,186
5,169
{ "name": "BetaDataSDK", "version": "1.2.22", "summary": "The official iOS SDK for Analytics.", "description": "The official iOS SDK for Analytics. Supports iOS 8+.", "homepage": "http://code.mocaapp.cn/betadata/sdk-ios.git", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "<NA...
243
3,580
<gh_stars>1000+ # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from unittest import TestCase import numpy as np import pandas as pd from kats.models.nowcasting.feature_extrac...
3,817
357
<reponame>wfu8/lightwave /* * Copyright © 2012-2015 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 * * U...
2,466
1,338
/* * M_APM - mapmfact.c * * Copyright (C) 1999 - 2007 <NAME> * * Permission to use, copy, and distribute this software and its * documentation for any purpose with or without fee is hereby granted, * provided that the above copyright notice appear in all copies and * that both that copyright notice ...
2,939
5,079
<gh_stars>1000+ """ Example setup file for a project using Celery. This can be used to distribute your tasks and worker as a Python package, on PyPI or on your own private package index. """ from __future__ import absolute_import, unicode_literals from setuptools import setup, find_packages setup( name='example-...
466
460
#include "../../../src/xmlpatterns/schema/qxsdwildcard_p.h"
27
14,668
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_POLICY_MESSAGING_LAYER_UTIL_GET_CLOUD_POLICY_CLIENT_H_ #define CHROME_BROWSER_POLICY_MESSAGING_LAYER_UTIL_GET_CLOUD_POLICY_CLIENT_H...
312
558
<gh_stars>100-1000 package io.github.microcks.domain; import org.bson.Document; import org.springframework.data.annotation.Id; /** * Domain class representing a GenericResource created for simple CRUD mocking. * @author laurent */ public class GenericResource { @Id private String id; private String servi...
264
2,372
// // 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 must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in bin...
616
3,897
<reponame>heuisam/mbed-os<gh_stars>1000+ /**************************************************************************** * * Copyright 2020 Samsung Electronics All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file e...
3,376
369
/***************************************************************************** * Copyright 2014 Microchip Technology Inc. and its subsidiaries. * You may use this software and any derivatives exclusively with * Microchip products. * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". * NO WARRANTIES, WHETHER EXPRESS, IMPLI...
1,488
1,148
<reponame>MjCode01/DS-Algo-Point def bucketSort(array): bucket = [] for i in range(len(array)): bucket.append([]) for j in array: index_b = int(10 * j) bucket[index_b].append(j) for i in range(len(array)): bucket[i] = sorted(bucket[i]) k = 0 for i in range(le...
371
2,610
<reponame>Rosell777/dnscat2 /* driver_dns.c * Created July/2013 * By <NAME> * * See LICENSE.md */ #include <assert.h> #include <ctype.h> #include <stdio.h> #include <string.h> #include "controller/controller.h" #include "libs/buffer.h" #include "libs/dns.h" #include "libs/log.h" #include "libs/memory.h" #include...
5,506
453
/* * Copyright 1996 Massachusetts Institute of Technology * * Permission to use, copy, modify, and distribute this software and * its documentation for any purpose and without fee is hereby * granted, provided that both the above copyright notice and this * permission notice appear in all copies, that both the ab...
752
7,353
<gh_stars>1000+ /** * @file PacketBuffer.c * @author <NAME> <<EMAIL>> * * @section LICENSE * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright *...
1,669
398
<gh_stars>100-1000 """NSynth: WaveNet Autoencoder. """ """ NSynth model code and utilities are licensed under APL from the Google Magenta project ---------------------- https://github.com/tensorflow/magenta/blob/master/magenta/models/nsynth Copyright 2017 <NAME>. See also NOTICE.md. Licensed under the Apache Licens...
10,410
325
<filename>PyFin/tests/Math/Accumulators/testAccumulatorsArithmetic.py # -*- coding: utf-8 -*- u""" Created on 2015-7-27 @author: cheng.li """ import unittest import copy import tempfile import pickle import os import math import numpy as np import pandas as pd from scipy.stats import norm from PyFin.Math.Accumulators...
16,718
373
<reponame>heatd/edk2-platforms<gh_stars>100-1000 /** @file Copyright (c) 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef _PCH_LP_HSIO_CX_H_ #define _PCH_LP_HSIO_CX_H_ #define PCH_LP_HSIO_VER_CX 0x34 extern UINT8 PchLpChipsetInitTable...
215
848
/* * Copyright 2019 Xilinx Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
661
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.devtestlabs.implementation; import com.azure.core.annotation.ServiceClient; import com.azure.core.http.HttpHeade...
7,767
848
/* Copyright 2019 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...
1,284
458
package com.example.gitnb.module.user; import java.util.ArrayList; import android.content.Context; import android.graphics.drawable.Animatable; import android.net.Uri; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.RecyclerView.ViewHolder; import android.text.Editable; import android....
3,494
2,023
<reponame>tdiprima/code import threading __author__ = "<NAME>" class RWLock: """Synchronization object used in a solution of so-called second readers-writers problem. In this problem, many readers can simultaneously access a share, and a writer has an exclusive access to this share. Additionally, the following ...
3,220
1,489
<reponame>kimbugp/django-activity-stream ''' Decide on a JSONField implementation based on available packages. There are two possible options, preferred in the following order: - JSONField from django-jsonfield with django-jsonfield-compat - JSONField from django-mysql (needs MySQL 5.7+) Raises an ImportError if...
448
14,793
<filename>weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/RedpackServiceImpl.java package com.github.binarywang.wxpay.service.impl; import com.github.binarywang.wxpay.bean.request.WxPayRedpackQueryRequest; import com.github.binarywang.wxpay.bean.request.WxPaySendMiniProgramRedpackRequest; import...
1,124
1,502
<reponame>yhager/cpp-netlib // Copyright <NAME> 2007. // 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) #ifndef __NETWORK_PROTOCOL_HTTP_REQUEST_20070908_1_HPP__ #define __NETWORK_PROTOCOL_HTT...
316
695
def f(): '''f''' pass def f1(): pass f2 = f if True: def g(): pass else: def h(): pass class C: def i(self): pass def j(self): def j2(self): pass class C2: def k(self): pass
135
369
#include "pose_regression.h" #include "pose_regression_parameter_search.h" extern "C" { void set_pose(HybridPredictionContainer* container, float** pose) { AffineXform3d* p = container->GetRigidPose(); for (int i = 0; i < 4; i++) { for (int j = 0; j < 3; j++) { (*p)[i][j] = pose[i][j]; } ...
5,747
3,777
from socketio.handler import SocketIOHandler import aj import gevent.ssl from aj.security.verifier import ClientCertificateVerificator from OpenSSL import crypto class RequestHandler(SocketIOHandler): def __init__(self, *args, **kwargs): SocketIOHandler.__init__(self, *args, **kwargs) self.server.r...
769
1,144
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
961
11,216
<gh_stars>1000+ { "extends": ["next"], "rules": { "import/no-anonymous-default-export": "off", "react/display-name": "off", "@next/next/no-img-element": "off", "jsx-a11y/alt-text": "off", "@next/next/no-css-tags": "off", "@next/next/no-page-custom-font": "off", "@next/next/no-sync-script...
231
412
/* Copyright 2015 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 required by applicable law or agreed to in wri...
565
14,425
/** * 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...
7,685
418
<gh_stars>100-1000 """Run mirge tool""" import os import sys import shutil import glob from bcbio.distributed.transaction import tx_tmpdir from bcbio.provenance import do from bcbio.pipeline import datadict as dd from bcbio.pipeline import config_utils from bcbio.log import logger from bcbio import utils SPS = {'hsa':...
1,259
488
/* * * Copyright (c) International Business Machines Corp., 2001 * * 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 l...
6,724
310
<reponame>dreeves/usesthis<filename>gear/hardware/p/potenza.json { "name": "Potenza", "description": "A gamer's desktop PC.", "url": "https://www.maingear.com/custom/desktops/potenza/" }
76
396
<gh_stars>100-1000 /* Copyright 2018 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 required by applicable l...
4,531
3,730
<reponame>jackywyz/jvm.go<filename>test/testclasses/src/main/java/stdlib/net/UrlTest.java package stdlib.net; import java.io.InputStream; import java.net.URL; public class UrlTest { public static void main(String[] args) throws Exception { URL url = new URL("http://cn.bing.com"); try (InputStream...
231
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Erquinvillers","circ":"1ère circonscription","dpt":"Oise","inscrits":144,"abs":79,"votants":65,"blancs":5,"nuls":2,"exp":58,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":37},{"nuance":"REM","nom":"M. <NAME>","voix":21}]}
112
335
<reponame>Safal08/Hacktoberfest-1<filename>N/News_noun.json { "word": "News", "definitions": [ "Newly received or noteworthy information, especially about recent events.", "A broadcast or published report of news.", "Information not previously known to (someone)", "A person or th...
148
2,151
<filename>services/core/java/com/android/server/NativeDaemonEvent.java /* * Copyright (C) 2011 The Android Open Source Project * * 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 * * ...
3,687
10,225
<gh_stars>1000+ package io.quarkus.funqy.runtime.bindings.knative.events; import io.quarkus.funqy.runtime.FunqyServerResponse; import io.smallrye.mutiny.Uni; public class FunqyResponseImpl implements FunqyServerResponse { protected Uni<?> output; @Override public Uni<?> getOutput() { return outpu...
168
357
/** * This file is part of Eclipse Steady. * * 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...
12,443
17,275
<gh_stars>1000+ /* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including with...
4,407
1,253
// // FILE: DAC8554.cpp // AUTHOR: <NAME> // PURPOSE: Arduino library for DAC8554 SPI Digital Analog Convertor // VERSION: 0.2.4 // URL: https://github.com/RobTillaart/DAC8554 // // HISTORY: // 0.1.0: 2017-12-19 initial version // 0.1.2 2020-04-06 minor refactor, readme.md // 0.1.3 2020-06-07 fix li...
2,694
14,325
<gh_stars>1000+ package org.apache.hadoop.seaweed.ftp.service; import org.apache.ftpserver.DataConnectionConfiguration; import org.apache.ftpserver.DataConnectionConfigurationFactory; import org.apache.ftpserver.FtpServer; import org.apache.ftpserver.FtpServerFactory; import org.apache.ftpserver.command.CommandFactory...
1,124
406
<filename>tests/widgets/tooltip.py import ttkbootstrap as ttk from ttkbootstrap.constants import * from ttkbootstrap.tooltip import ToolTip app = ttk.Window(size=(400, 100)) b1 = ttk.Button(app, text="default tooltip") b1.pack(side=LEFT, padx=10, pady=10, fill=X, expand=YES) ToolTip( b1, text="This is the def...
252
443
"""Tests for utils.""" import unittest import torch from chemicalx.utils import segment_softmax class TestPipeline(unittest.TestCase): """Test the utils.""" def test_segment_softmax(self): """Set up the test case with some data.""" logit = torch.FloatTensor([-0.5, -2.5, 0.5, 1.5]) ...
335
1,199
<filename>2009/eblib/tracer.py #------------------------------------------------------------------------------- # tracer.py # # A decorator for tracing function calls. # Runs with both Python 2 and 3. # # Loosely based on: # - http://paulbutler.org/archives/python-debugging-with-decorators/ # # <NAME> (<EMAIL>) # This...
951
513
void paranthesis(vector<string> &s,string temp,int a,int n){ if(a>n) return; if(a==0){ while(n--) temp+=")"; s.push_back(temp); return; } temp+='('; paranthesis(s,temp,a-1,n); temp[temp.length()-1]=')'; paranthesis(s,temp,a,n-1); } vector<string> Solution::generateParenthesis(int A)...
199
2,260
// Autogenerated by gameplay-luagen #ifndef LUA_SCRIPT_H_ #define LUA_SCRIPT_H_ namespace gameplay { void luaRegister_Script(); } #endif
58
4,537
<reponame>zagrev/mesos // 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...
701
14,668
<filename>ash/quick_pair/message_stream/message_stream_lookup_impl.h<gh_stars>1000+ // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_QUICK_PAIR_MESSAGE_STREAM_MESSAGE_STREAM_LOOKUP_IMPL_H_ #d...
1,048
777
// 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 "core/input/MouseEventManager.h" #include "core/clipboard/DataObject.h" #include "core/clipboard/DataTransfer.h" #include "core/dom/Element.h" #...
12,817
504
package org.dayatang.security.domain; /** * Created by yyang on 15/7/27. */ public class SecurityException extends RuntimeException { public SecurityException() { } public SecurityException(String message) { super(message); } public SecurityException(String message, Throwable cause) { ...
206
335
{ "word": "Trisaccharide", "definitions": [ "Any of the class of sugars whose molecules contain three monosaccharide molecules." ], "parts-of-speech": "Noun" }
72
454
<gh_stars>100-1000 """ Models for the django-analytical Django application. This application currently does not use models. """
36
479
<reponame>jeremyvdw/aurora<gh_stars>100-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 ...
1,822
2,659
<filename>src/storage/binlog.h /* * Copyright 2021 4Paradigm * * 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 a...
434
435
# # This file is part of pySMT. # # Copyright 2014 <NAME> and <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 ...
663
679
<filename>main/sfx2/source/doc/graphhelp.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 copyright o...
838
1,299
<filename>tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/onenote/fsshttpb/streamobj/DataElementPackage.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the N...
1,088
406
/* ************************************************************************ * Copyright 2013 Advanced Micro Devices, 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...
11,352
577
<reponame>santiagojenny6675/PlainReader // // PRArticle.h // PlainReader // // Created by guo on 10/24/14. // Copyright (c) 2014 guojiubo. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSUInteger, PRArticleCacheStatus) { PRArticleCacheStatusNone, PRArticleCacheStatusCached, ...
363
403
<reponame>igormskru/code<gh_stars>100-1000 package com.camunda.demo.oop; import java.io.StringReader; import java.util.logging.Logger; import javax.inject.Inject; import javax.inject.Named; import javax.xml.bind.JAXB; import net.webservicex.GlobalWeather; @Named("weatherAdapter") public class WeatherAdapter { ...
289
1,032
<gh_stars>1000+ [{"fonts":[{"asset":"fonts/MaterialIcons-Regular.ttf"}],"family":"MaterialIcons"},{"family":"Roboto","fonts":[{"weight":100,"asset":"fonts/Roboto/Roboto-Thin.ttf"},{"weight":300,"asset":"fonts/Roboto/Roboto-Light.ttf"},{"weight":400,"asset":"fonts/Roboto/Roboto-Regular.ttf"},{"weight":500,"asset":"fonts...
215
2,502
<gh_stars>1000+ package com.shuzijun.leetcode.plugin.utils; import com.github.promeg.pinyinhelper.Pinyin; import com.shuzijun.leetcode.plugin.model.CodeTypeEnum; import com.shuzijun.leetcode.plugin.model.Config; import com.shuzijun.leetcode.plugin.model.Constant; import com.shuzijun.leetcode.plugin.setting.PersistentC...
3,633
5,169
{ "name": "KNMExternalViewController", "version": "1.0.0", "summary": "A view controller that loads its contents from another storyboard.", "description": "Use this view controller when you would like to split your project into multiple storyboards.\nPut the view controller into your main storyboard and specify...
360
4,812
<filename>lib/CodeGen/MachineRegionInfo.cpp //===- lib/Codegen/MachineRegionInfo.cpp ----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-e...
1,554
9,959
<gh_stars>1000+ @lombok.EqualsAndHashCode(onlyExplicitlyIncluded = true) class EqualsAndHashCodeExplicitInclude { int x; }
48
902
<reponame>lxmwq/apidoc # SPDX-License-Identifier: MIT const x = "//\"" ### line1 const y = "/**\"" const c = 'c' """ line1 line2 line3 """
77
390
{ "header": [ { "title": "Getting started", "url": "/#getting-started", "blank": false }, { "title": "Documentation", "url": "/documentation.html", "blank": false }, { "title": "Examples", "url": "/examples.html", "blank": false } ], "footer": [ { "title": "Documentation", "u...
226
14,668
// Copyright 2013 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 MEDIA_AUDIO_ALSA_ALSA_UTIL_H_ #define MEDIA_AUDIO_ALSA_ALSA_UTIL_H_ #include <alsa/asoundlib.h> #include <string> #include "media/base/media_exp...
1,005
2,842
/* Copyright (c) 2018-2020, Arm Limited and Contributors * * SPDX-License-Identifier: Apache-2.0 * * 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/L...
352
305
<gh_stars>100-1000 from __future__ import division from builtins import range from past.utils import old_div def bokeh_plot(u, t, legends, u_e, t_e, I, w, t_range, filename): """ Make plots for u vs t using the Bokeh library. u and t are lists (several experiments can be compared). legends contain lege...
1,543
2,605
import contextlib import json import os from colorama import Fore import fasttext from plugin import plugin FILE_PATH = os.path.abspath(os.path.dirname(__file__)) @plugin("detect lang") def detect_language(jarvis, s): """ Detects the language of an input string """ while s == "": s = jarvi...
615
539
<filename>booknlp/common/sequence_layered_reader.py import os def read_tagset(filename): tags={} with open(filename) as file: for line in file: cols=line.rstrip().split("\t") tags[cols[0]]=int(cols[1]) return tags def read_filenames(filename): inpaths=[] outpaths=[] with open(filename) as file: for l...
1,589
310
<filename>gear/software/b/beepbox.json<gh_stars>100-1000 { "name": "BeepBox", "description": "A web-based musical creation toy.", "url": "https://beepbox.co/" }
65
713
<reponame>pferraro/infinispan package org.infinispan.persistence.jdbc.configuration; import static org.infinispan.persistence.jdbc.configuration.TimestampColumnConfiguration.TIMESTAMP_COLUMN_NAME; import static org.infinispan.persistence.jdbc.configuration.TimestampColumnConfiguration.TIMESTAMP_COLUMN_TYPE; import or...
464
335
<gh_stars>100-1000 { "word": "Fling", "definitions": [ "Throw or hurl forcefully.", "Move or push (something) suddenly or violently.", "Start or engage in (an activity or enterprise) with great energy and enthusiasm.", "Go quickly and angrily." ], "parts-of-speech": "Verb...
125
3,531
<filename>src/extra/libs/png/lv_png.h /** * @file lv_png.h * */ #ifndef LV_PNG_H #define LV_PNG_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../../../lv_conf_internal.h" #if LV_USE_PNG /********************* * DEFINES ******************...
276
765
<reponame>dan-zheng/llvm-project //===-- RNBServices.cpp -----------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception //...
3,886
625
#include "const_fold.h" #include <cmath> #include "sir/util/cloning.h" #include "sir/util/irtools.h" #define BINOP(o) \ [](auto x, auto y) -> auto { return x o y; } #define UNOP(o) ...
6,718
450
/* * 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,122
477
<reponame>flying-sheep/goatools<gh_stars>100-1000 """Test the loading of the optional GO term fields.""" # https://owlcollab.github.io/oboformat/doc/GO.format.obo-1_4.html __copyright__ = "Copyright (C) 2010-2018, <NAME>, <NAME>, All rights reserved." __author__ = "<NAME>" import os import sys import re import timei...
11,107
451
#include <cmath> #include "ENUCoords.h" double ENUCoords::distanceTo(ENUCoords enu){ double de = (this->E - enu.E); double dn = (this->N - enu.N); double du = (this->U - enu.U); return sqrt(de*de + dn*dn + du*du); } // --------------------------------------------------------------- // ENU C...
808
444
{ "name": "iex", "version": "1.0.0", "dependencies": { "socket.io": "1.7.3" }, "description": "Data Downloader using the public IEX data feed as a data source", "devDependencies": { "babel-cli": "*", "babel-core": "*", "babel-eslint": "*", "babel-plugin-transform-flow-strip-types": "*", ...
440
365
<reponame>rbabari/blender<filename>extern/audaspace/src/fx/ConvolverSound.cpp /******************************************************************************* * Copyright 2015-2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licens...
572
2,206
<reponame>steljord2/deeplearning4j /* * ****************************************************************************** * * * * * * 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/L...
5,570
9,095
from os.path import join from scipy._build_utils import numpy_nodepr_api def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration from scipy._build_utils.system_info import get_info from scipy._build_utils import (uses_blas64, blas_ilp64_pre_build_hook, ...
724
852
import FWCore.ParameterSet.Config as cms ecalMipGraphs = cms.EDAnalyzer("EcalMipGraphs", # parameter for the amplitude threshold amplitudeThreshold = cms.untracked.double(0.5), EBDigiCollection = cms.InputTag("ecalEBunpacker","ebDigis"), EEDigiCollection = cms.InputTag("ecalEBunpacker","eeDigis"), ...
483
432
/* * This file is part of Cubic Chunks Mod, licensed under the MIT License (MIT). * * Copyright (c) 2015-2019 OpenCubicChunks * Copyright (c) 2015-2019 contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "So...
3,494
5,279
<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 ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * ...
744
4,538
/* * Copyright (C) 2015-2018 Alibaba Group Holding Limited */ #include <stdlib.h> const char *iotx_ca_crt = { "-----BEGIN CERTIFICATE-----\r\n" "MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkG\r\n" "A1UEBhMCQkUxGTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jv\r\n" "b3QgQ0ExGzAZ...
950
341
{ "name": "vue-qart", "description": "the Vue 2.x component of QArt.js", "version": "2.2.0", "author": "<EMAIL>", "repository": "https://github.com/superman66/vue-qart", "main": "dist/vue-qart.js", "scripts": { "dev": "cross-env NODE_ENV=development webpack-dev-server --open --inline --hot", "prep...
644
412
/*******************************************************************\ Module: A special command line object for Bruce's C Compiler Author: <NAME> Date: July 2016 \*******************************************************************/ /// \file /// A special command line object for Bruce's C Compiler Author: Mic...
215