max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
321
<filename>apis/api-web/api-web-bo-business/src/main/java/org/hoteia/qalingo/web/mvc/controller/ajax/CatalogAjaxController.java /** * Most of the code in the Qalingo project is copyrighted Hoteia and licensed * under the Apache License Version 2.0 (release version 0.8.0) * http://www.apache.org/licenses/LI...
8,657
488
<filename>tests/nonsmoke/functional/CompileTests/C_tests/test2020_08.c<gh_stars>100-1000 void foo(double); void foobar() { #if 0 foo(0x0'0.0p0); foo(0x0'0.0p0F); foo(0x0'0.0P+0l); #endif }
118
348
{"nom":"Wormhout","circ":"14ème circonscription","dpt":"Nord","inscrits":4558,"abs":2275,"votants":2283,"blancs":117,"nuls":65,"exp":2101,"res":[{"nuance":"LR","nom":"<NAME>","voix":1524},{"nuance":"REM","nom":"<NAME>","voix":577}]}
94
3,755
# -*- coding: utf-8 -*- # Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors # License: MIT. See LICENSE from collections import Counter import datetime import inspect import json import re import time import frappe import sqlparse from frappe import _ RECORDER_INTERCEPT_FLAG = "recorder-intercept" RE...
1,931
1,727
class Point: def __init__(self, x, y): self.x = x self.y = y def __lt__(self, other): return self.x < other.x def __str__(self): return "(" + str(self.x) + "," + str(self.y) + ")" def test(): points = [Point(2, 1), Point(1, 1)] points.sort() for p in points: ...
173
1,800
package com.example.pluginsharelib; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.widget.LinearLayout; import java.io.Serializable; /** * 仅仅用来测试插件程序中Intent是否可以使用宿主程序中的VO * @author cailiming * */ public class SharePOJO implements Serializable ...
165
852
#include <functional> #include <cmath> #include <map> #include "DataFormats/Common/interface/RefToBase.h" #include "DataFormats/TrackReco/interface/Track.h" #include "DataFormats/VertexReco/interface/Vertex.h" #include "DataFormats/VertexReco/interface/VertexFwd.h" #include "TrackingTools/GeomPropagators/interface/An...
1,389
766
<filename>src/libfsm/print/irdot.c /* * Copyright 2018 <NAME> * * See LICENCE for the full copyright terms. */ #include <assert.h> #include <stdlib.h> #include <limits.h> #include <errno.h> #include <stdio.h> #include <ctype.h> #include <print/esc.h> #include <adt/set.h> #include <fsm/fsm.h> #include <fsm/pred....
3,476
4,901
<filename>examples/Contacts/src/java/org/contacts/Store.java /* * 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...
705
942
<reponame>KatsutoshiOtogawa/treefrog-framework #include "tqueue.h" #include <QThreadStorage> namespace { QThreadStorage<THazardPtr> hzptrTls; } THazardPtr &Tf::hazardPtrForQueue() { return hzptrTls.localData(); }
90
469
package com.google.androidbrowserhelper.trusted; import android.content.Context; import android.content.SharedPreferences; import androidx.annotation.Nullable; /** * Manages shared preferences for {@link LauncherActivity} and related infrastructure. */ public class TwaSharedPreferencesManager { private static ...
388
3,799
<filename>lifecycle/lifecycle-compiler/src/test/test-data/TooManyArgs1.java package foo; import static androidx.lifecycle.Lifecycle.Event.ON_ANY; import androidx.lifecycle.Lifecycle.Event; import androidx.lifecycle.LifecycleObserver; import androidx.lifecycle.LifecycleOwner; import androidx.lifecycle.OnLifecycleEvent...
165
322
#if !defined(ARDUINO) void setup(); void loop(); int main() { setup(); for (;;) loop(); return 0; } #define F(X) X struct FakeSerial { void begin(long baud) { (void) baud; } bool operator!() const { return false; } } Serial; #endif #include "verbosity.ino"
105
8,865
package com.taobao.atlas.dexmerge; /** * Created by xieguo on 15-9-16. */ public class MergeException extends Exception{ /** * Nested exception. */ private transient Throwable throwable; /** * Creates a <tt>LowDiskException</tt> that wraps another exception. * * @param msg The ...
403
2,177
import asyncore import asynchat import socket import re #from cStringIO import StringIO from time import time, sleep import sys import os #asynchat.async_chat.ac_out_buffer_size = 1024*1024 class http_client(asynchat.async_chat): def __init__(self, url, headers=None, start_from=0): asynchat.async_chat.__init__(s...
4,128
954
/** * Copyright 2003-2006 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 event copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by app...
4,364
2,443
/* * 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 ...
918
1,590
{ "$id": "InstallInstructionScriptInput", "type": "object", "properties": { "packageName": { // The package name. May be skipped if sdk automation don't know the info yet. "type": "string" }, "artifacts": { // List of artifact's path. May be skipped if sdk automation don't know the i...
403
1,068
package forezp.com.douyalibrary.utils; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; /** * sd卡 * Created by b508a on 2015/12/28. */ p...
2,261
2,757
/*++ Copyright (c) 2004, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at ...
698
474
package org.javacord.core.entity.webhook; import com.fasterxml.jackson.databind.JsonNode; import org.javacord.api.DiscordApi; import org.javacord.api.entity.webhook.IncomingWebhook; import org.javacord.api.entity.webhook.WebhookType; import org.javacord.core.util.rest.RestEndpoint; import org.javacord.core.util.rest.R...
998
1,831
/** * Copyright (c) 2017-present, 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. */ #include "logdevice/common/configuration/Node.h" #include <folly/dynamic.h> #include ...
1,675
984
<reponame>jpisaac/phoenix /* * 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, Ve...
801
320
<gh_stars>100-1000 #ifndef LOCALFILEREFERENCE_HH #define LOCALFILEREFERENCE_HH #include <string> namespace openmsx { class File; class Filename; /** Helper class to use files in APIs other than openmsx::File. * The openMSX File class has support for (g)zipped files (or maybe in the * future files over http, ftp, ...
686
668
<gh_stars>100-1000 import json import os import time from traceback import print_exc from subprocess import check_output, STDOUT from vscode_notebook import SETTINGS_PATH, VERSION from .message import print_err, print_info class Settings: """ Settings module """ default_json = { 'public_folders': ['*'], 'priv...
1,515
325
<filename>PyFin/POpt/Optimizer.py # -*- coding: utf-8 -*- u""" Created on 2016-4-1 @author: cheng.li """ from enum import Enum from enum import unique import numpy as np import pandas as pd import scipy.optimize as opt from PyFin.POpt.Calculators import calculate_annualized_return from PyFin.POpt.Calculators import c...
1,439
763
<filename>projects/batfish/src/test/java/org/batfish/dataplane/rib/IsisRibTest.java package org.batfish.dataplane.rib; import static org.hamcrest.Matchers.equalTo; import static org.junit.Assert.assertThat; import com.google.common.collect.ImmutableList; import java.util.List; import org.batfish.datamodel.Ip; import ...
768
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/048/04801100.json<gh_stars>100-1000 {"nom":"Montbel","circ":"1ère circonscription","dpt":"Lozère","inscrits":134,"abs":67,"votants":67,"blancs":3,"nuls":3,"exp":61,"res":[{"nuance":"LR","nom":"<NAME>","voix":41},{"nuance":"REM","nom":"<NAME>","voix":20}...
133
719
<gh_stars>100-1000 package com.googlecode.objectify.impl.translate; import com.google.cloud.datastore.Value; import com.google.cloud.datastore.ValueType; import com.googlecode.objectify.impl.Path; /** * Simplest base class for most value translations. Easy to subclass. * * @author <NAME> <<EMAIL>> */ abstract pu...
416
3,859
// // XHAlbumRichTextView.h // MessageDisplayExample // // Created by HUAJIE-1 on 14-5-19. // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved. // #import <UIKit/UIKit.h> #import <MessageDisplayKit/SETextView.h> #im...
429
910
package com.github.megatronking.svg.sample.extend; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import com.github.megatronking.svg.sample.R; import com.github.megatronking.svg.support.extend.SVGView; public class SVGViewAlphaSampleA...
382
1,694
<filename>header6.6.1/WCPayQryBankList4BindCgiDelegate-Protocol.h<gh_stars>1000+ // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "WCPayBaseCgiDelegate-Protocol.h" @class QryBankLis...
274
4,081
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
382
484
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Licensed under the Zeebe Community License 1.1. You may not use this file * ...
396
317
<gh_stars>100-1000 /** * Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved. * * You may not modify, use, reproduce, or distribute this software except in * compliance with the terms of the License at: * https://github.com/javaee/tutorial-examples/LICENSE.txt */ package javaeetutorial.ba...
357
324
<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 "...
1,567
392
<gh_stars>100-1000 /******************************************************************************* * Copyright (c) 2015 * * 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 restrictio...
594
1,796
package github.nisrulz.sample.junittests; public class CoffeeOrder { private float coffeePrice; private int coffeeCount; private float totalPrice; public CoffeeOrder(float coffeePrice) { coffeeCount = 0; totalPrice = 0; this.coffeePrice = coffeePrice; } public void set...
399
8,865
/* * Copyright (C) 2008 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...
826
471
/* Permission to use this file under wxWindows licence granted by the copyright holder, see eggtrayicon.c for details. */ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* eggtrayicon.h * Copyright (C) 2002 <NAME> <<EMAIL>> * * This library is free software; you can redistribut...
1,246
368
// // push_server_handler.h // my_push_server // // Created by luoning on 14-11-11. // Copyright (c) 2014年 luoning. All rights reserved. // #ifndef __my_push_server__push_server_handler__ #define __my_push_server__push_server_handler__ #include <stdio.h> #include "socket/base_handler.hpp" class CPushServerHandler...
238
644
<gh_stars>100-1000 // // Copyright 2021 New Vector Ltd // // 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 applicabl...
424
575
<reponame>Ron423c/chromium<filename>components/paint_preview/player/android/java/src/org/chromium/components/paintpreview/player/frame/PlayerFrameBitmapState.java // 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 LICENS...
6,512
1,002
// Copyright (c) Microsoft Corporation. All rights reserved. // // Licensed under the MIT License. See LICENSE.txt in the project root for license information. // This file was automatically generated. Please do not edit it manually. #include "pch.h" #include "TintEffect.h" #if (defined _WIN32_WINNT_WIN10) && (WINVE...
1,166
854
/* * This file is part of Kintinuous. * * Copyright (C) 2015 The National University of Ireland Maynooth and * Massachusetts Institute of Technology * * The use of the code within this file and all code within files that * make up the software that is Kintinuous is permitted for * non-commercial purposes onl...
1,254
909
<filename>scala/scala-impl/src/org/jetbrains/plugins/scala/testingSupport/test/TestKind.java package org.jetbrains.plugins.scala.testingSupport.test; import org.jetbrains.annotations.NonNls; public enum TestKind { ALL_IN_PACKAGE("All in package"), CLAZZ("Class"), TEST_NAME("Test name"), REGEXP("Regula...
370
2,661
/* * Copyright 2017 Google Inc. * Copyright 2020 The Open GEE Contributors * * 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...
484
3,227
// Copyright (c) 2005 INRIA Sophia-Antipolis (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org). //
46
1,014
<filename>Database/Cryptocurrencies/SALT.json<gh_stars>1000+ { "SALT-USD": { "short_name": "SALT USD", "cryptocurrency": "SALT", "currency": "USD", "summary": "SALT (SALT) is a cryptocurrency and operates on the Ethereum platform. SALT has a current supply of 120,000,000 with 80...
255
348
{"nom":"Ladapeyre","circ":"1ère circonscription","dpt":"Creuse","inscrits":265,"abs":145,"votants":120,"blancs":15,"nuls":4,"exp":101,"res":[{"nuance":"REM","nom":"<NAME>","voix":53},{"nuance":"LR","nom":"<NAME>","voix":48}]}
88
374
<filename>Foundation/NSZone/NSZone.h /* Copyright (c) 2006-2008 <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 without limitation the rights to use, copy, mo...
891
819
#define DR_WAV_IMPLEMENTATION #include "../../dr_wav.h" #include "../common/dr_common.c" int main(int argc, char** argv) { (void)argc; (void)argv; return 0; }
83
1,337
<reponame>zhoupan/cuba /* * Copyright (c) 2008-2016 Haulmont. * * 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 b...
3,806
14,668
<reponame>chromium/chromium // 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 CHROMECAST_CAST_CORE_RUNTIME_BROWSER_URL_REWRITE_URL_REQUEST_REWRITE_TYPE_CONVERTERS_H_ #define CHROMECAST_CAST_CORE_R...
559
1,059
/* * Copyright 2021 <NAME> <<EMAIL>> * Copyright 2021 <NAME> */ #include <array> #include <numeric> #include "SQLiteParser.h" #include "sqlcommon.h" #include "utilities/CommonOperations.h" #include "ExceptionHandling/BlazingThread.h" #include <arrow/io/file.h> #include <sqlite3.h> #include <parquet/column_write...
3,960
729
<reponame>probonopd/imagewriter<filename>dependencies/libarchive-3.4.2/libarchive/test/test_read_format_lha_filename_utf16.c /*- * Copyright (c) 2019 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
2,302
2,206
/* * * Copyright (c) 2006-2020, Speedment, 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 requi...
1,286
649
<filename>serenity-model/src/main/java/net/thucydides/core/reports/adaptors/common/FilebasedOutcomeAdaptor.java<gh_stars>100-1000 package net.thucydides.core.reports.adaptors.common; import net.thucydides.core.model.TestOutcome; import net.thucydides.core.reports.adaptors.TestOutcomeAdaptor; import java.io.IOExceptio...
204
1,338
/* * Copyright 2013-2014, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #ifndef HEAP_CACHE_H #define HEAP_CACHE_H #include <package/hpkg/DataReader.h> #include <condition_variable.h> #include <util/DoublyLinkedList.h> #include <util/OpenHashTable.h> #include <vm/vm_types.h> using BPackag...
1,519
352
<reponame>swaroop0707/TinyWeb /* *Author:GeneralSandman *Code:https://github.com/GeneralSandman/TinyWeb *E-mail:<EMAIL> *Web:www.dissigil.cn */ /*---Configer Class--- * **************************************** * */ #ifndef CONFIGER_H #define CONFIGER_H #include <algorithm> #include <iostream> #include <list...
1,520
777
<filename>net/base/network_interfaces_posix.h<gh_stars>100-1000 // Copyright (c) 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 NET_BASE_NETWORK_INTERFACES_POSIX_H_ #define NET_BASE_NETWORK_INTERFACES_POSIX...
277
3,301
package com.alibaba.alink.operator.common.distance; import com.alibaba.alink.common.linalg.*; public class InnerProduct extends FastDistance { @Override public double calc(double[] array1, double[] array2) { return BLAS.dot(array1, array2); } @Override public double calc(Vector vec1, Vec...
488
3,631
<filename>drools/drools-core/src/main/java/org/drools/core/impl/StatefulSessionPool.java /* * Copyright 2018 JBoss 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://w...
496
3,755
<filename>frappe/patches/v13_0/remove_web_view.py import frappe def execute(): frappe.delete_doc_if_exists("DocType", "Web View") frappe.delete_doc_if_exists("DocType", "Web View Component") frappe.delete_doc_if_exists("DocType", "CSS Class")
98
463
<reponame>zanachka/parsedatetime # -*- coding: utf-8 -*- """ Test parsing of units """ import sys import time import datetime import unittest import parsedatetime as pdt from parsedatetime.context import pdtContext from . import utils class test(unittest.TestCase): @utils.assertEqualWithComparator def assert...
4,220
517
<reponame>supakiad/wro4j package ro.isdc.wro.cache.factory; import javax.servlet.http.HttpServletRequest; import ro.isdc.wro.cache.CacheKey; import ro.isdc.wro.util.AbstractDecorator; /** * Decorator for {@link CacheKeyFactory} object. * * @author <NAME> * @since 1.6.0 * @created 19 Oct 2012 */ public class C...
240
2,199
<gh_stars>1000+ /******************************************************************************* * 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.org/MPL/2.0/. ********************...
345
3,040
<filename>novel-front/src/main/java/xyz/zinglizingli/common/utils/ExcutorUtils.java package xyz.zinglizingli.common.utils; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * @author XXY */ public class ExcutorUtils { private static ExecutorService fixedThreadPool; pri...
256
1,021
<reponame>tolgaeren/FrameCapturer #pragma once struct fcVPXEncoderConfig { int width; int height; int target_framerate; fcBitrateMode bitrate_mode; int target_bitrate; }; fcIWebMVideoEncoder* fcCreateVPXVP8Encoder(const fcVPXEncoderConfig& conf); fcIWebMVideoEncoder* fcCreateVPXVP9En...
192
471
import re from abc import abstractmethod, ABCMeta import sys from django.utils.html import format_html, escape from django.utils.safestring import mark_safe from memoized import memoized url_re = re.compile( r"""(?i)\b((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\((...
1,615
1,270
/* * Copyright 2013 <NAME> * Copyright 2014 <NAME> (@f2prateek) * * 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 requ...
270
543
<reponame>CoenRijsdijk/Bytecoder /* * Copyright (c) 2000, 2001, 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 o...
1,099
416
package org.springframework.roo.addon.layers.repository.jpa.addon; import org.springframework.roo.addon.layers.repository.jpa.annotations.RooJpaRepositoryCustomImpl; import org.springframework.roo.classpath.PhysicalTypeMetadata; import org.springframework.roo.classpath.details.annotations.populator.AbstractAnnotationV...
440
530
/* * Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2020, 2021 Red Hat Inc. All rights reserved. * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The contents of this file are subject to the terms of either the Universal Permissive License * v 1.0...
4,872
1,825
<gh_stars>1000+ package com.github.unidbg.ios.file; import com.github.unidbg.Emulator; import com.github.unidbg.arm.backend.Backend; import com.github.unidbg.file.FileIO; import com.github.unidbg.file.ios.BaseDarwinFileIO; import com.github.unidbg.file.ios.DarwinFileIO; import com.github.unidbg.file.ios.StatStructure;...
850
903
<reponame>javanna/lucene /* * 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 * ...
4,702
880
class Foo: ... class Bar : ... class Old ( ) : gold : int class OO ( Foo ) : ... class OOP ( Foo , Bar, ) : pass class OOPS ( Foo , ) : pass class OOPSI ( Foo, * Bar , metaclass = foo , ): pass class OOPSIE ( list , *args, kw = arg , ** kwargs ) : what : does_this_even = mean de...
167
372
/* * 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, software distributed under t...
4,947
1,104
<filename>trunk/adhoc-core/src/main/java/com/alipay/bluewhale/core/task/acker/AckObject.java package com.alipay.bluewhale.core.task.acker; public class AckObject { public Long val=null; public Object spout_task=null; public Boolean failed=false; }
104
358
<reponame>prisae/simpeg from __future__ import print_function # Functions to import and export MT EDI files. from SimPEG import mkvc from scipy.constants import mu_0 from numpy.lib import recfunctions as recFunc from .data_utils import rec_to_ndarr # Import modules import numpy as np import os, sys, re class EDIimp...
3,646
2,023
<filename>recipes/Python/580702_Image_to_ASCII_Art_Converter/recipe-580702.py # ASCII Art Generator (Image to ASCII Art Converter) # FB - 20160925 import sys if len(sys.argv) != 3: print "USAGE:" print "[python] img2asciiart.py InputImageFileName OutputTextFileName" print "Use quotes if file paths/names con...
653
1,192
<filename>tools/clang/test/CoverageMapping/control-flow-macro.c // RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only %s | FileCheck %s #define ifc if // CHECK: main // CHECK-NEXT: File 0, {{[0-9]+}}:40 -> [[END:[0-9]+]]:2 = #0 int main(int argc, const char *argv[]) { ...
254
407
package com.alibaba.smart.framework.engine.behavior; import com.alibaba.smart.framework.engine.context.ExecutionContext; import com.alibaba.smart.framework.engine.pvm.PvmActivity; /** * @author 高海军 帝奇 2016.11.11 * @author ettear 2016.04.13 */ public interface ActivityBehavior { boolean enter(ExecutionContex...
161
428
/** * Copyright 2018 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
768
6,457
#pragma once #include "Core.h" #include "Engine.h" DECLARE_LOG_CATEGORY_EXTERN(LogRealSenseDemo, Log, All);
55
389
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Copyright 2017 Adobe ~ ~ 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/li...
683
1,056
<filename>ide/git/src/org/netbeans/modules/git/ui/menu/BranchMenu.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. The ASF licenses this file ...
3,810
548
<reponame>neechadi/django-basic-apps from django.db.models import Q from django.utils import simplejson as json from django.http import HttpResponse def auto_complete(request, queryset, fields=None): """ Returns a JSON list to be used with the AutoCompleteWidget javascript. Example: url(r'^autoc...
437
335
{ "word": "Grave", "definitions": [ "Engrave (an inscription or image) on a surface.", "Fix (something) indelibly in the mind." ], "parts-of-speech": "Verb" }
84
3,358
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2008 <NAME> This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/or modif...
350
307
<reponame>ConnectionMaster/qgis-earthengine-plugin import ee from ee_plugin import Map from ee_plugin.contrib import utils, palettes Map.setCenter(4.408241, 52.177595, 18) dem = ee.Image("AHN/AHN2_05M_RUW") \ .resample('bicubic') \ .convolve(ee.Kernel.gaussian(0.5, 0.25, 'meters')) # palette = palettes.crameri...
460
484
package com.kbeanie.multipicker.api.entity; import android.media.ExifInterface; import android.os.Parcel; /** * Contains details about the image that was chosen */ public class ChosenImage extends ChosenFile { private int orientation; private String thumbnailPath; private String thumbnailSmallPath; ...
1,789
587
package org.lightadmin.test.model; import org.lightadmin.demo.model.AbstractEntity; import javax.persistence.Entity; import javax.persistence.ManyToMany; import javax.validation.constraints.NotNull; import java.util.Set; @Entity public class TestDiscountProgram extends AbstractEntity { @NotNull private String na...
229
372
<reponame>yoshi-code-bot/google-api-java-client-services<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 requi...
3,533
4,901
<gh_stars>1000+ /* * Copyright (c) 2000, 2004, 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 * publis...
2,376
3,012
<gh_stars>1000+ /** @file Capsule Architectural Protocol as defined in PI1.0a Specification VOLUME 2 DXE The DXE Driver that produces this protocol must be a runtime driver. The driver is responsible for initializing the CapsuleUpdate() and QueryCapsuleCapabilities() fields of the UEFI Runtime Services Ta...
408
1,107
<gh_stars>1000+ /* * File : semaphore.h * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team * * 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 Foundat...
626
923
package core.cli.server.handlers; import java.io.IOException; import java.util.logging.Logger; import org.apache.http.HttpException; import org.apache.http.HttpRequest; import org.apache.http.nio.protocol.HttpAsyncExchange; import org.apache.http.protocol.HttpContext; import argo.jdom.JsonNode; import core.cli.messa...
855
471
package org.plantuml.idea.grammar.psi; import com.intellij.openapi.project.Project; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiFileFactory; import org.plantuml.idea.lang.PlantUmlFileImpl; import org.plantuml.idea.lang.PlantUmlFileType; public class PumlElementFactory { public static PumlItem ...
338
335
{ "word": "Lap", "definitions": [ "The flat area between the waist and knees of a seated person.", "The part of an item of clothing, especially a skirt or dress, covering the lap.", "A hanging flap on a garment or a saddle." ], "parts-of-speech": "Noun" }
111