code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
/* * Copyright 2017-2021 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...
lettuce-io/lettuce-core
src/main/java/io/lettuce/core/cluster/api/async/NodeSelectionGeoAsyncCommands.java
Java
apache-2.0
11,078
export const removeWeight = (element) => { try { element.removeAttribute('data-weight'); } catch (e) { // We are now in IE11 territory if (!!element) { element.setAttribute('data-weight', null); } } };
OpenConext/OpenConext-engineblock
theme/base/javascripts/wayf/search/removeWeight.js
JavaScript
apache-2.0
230
using MO.Core.Forms.Common; using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; namespace MO.Core.Forms.Controls { //============================================================ // <T>颜色选取控件<T> //============================================================ public p...
favedit/MoCross
Tools/1 - Common/MoCore/Forms/Controls/QColorPicker.cs
C#
apache-2.0
5,282
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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...
gravitee-io/gateway
gravitee-gateway-services/gravitee-gateway-services-sync/src/main/java/io/gravitee/gateway/services/sync/cache/CacheManager.java
Java
apache-2.0
1,110
/* * Copyright 2017 Facebook, 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...
charsyam/folly
folly/test/CacheLocalityTest.cpp
C++
apache-2.0
25,381
/* * Copyright 2017-2022 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 * * http://aws.amazon.com/apache2.0 * * or in the "licen...
aws/aws-sdk-java
aws-java-sdk-codecommit/src/main/java/com/amazonaws/services/codecommit/model/MaximumNumberOfApprovalsExceededException.java
Java
apache-2.0
1,318
#define NETCORE using System; using System.Linq; using System.Reflection; namespace Foundatio.Force.DeepCloner.Helpers { internal static class ReflectionHelper { public static bool IsEnum(this Type t) { #if NETCORE return t.GetTypeInfo().IsEnum; #else return t.IsEnum; #endif } public static bool IsVa...
FoundatioFx/Foundatio
src/Foundatio/DeepCloner/Helpers/ReflectionHelper.cs
C#
apache-2.0
3,817
"""Translation helper functions.""" import locale import os import re import sys import gettext as gettext_module from cStringIO import StringIO from django.utils.importlib import import_module from django.utils.safestring import mark_safe, SafeData from django.utils.thread_support import currentThread ...
greggian/TapdIn
django/utils/translation/trans_real.py
Python
apache-2.0
20,192
package org.myrobotlab.framework; import static org.myrobotlab.framework.StatusLevel.DEBUG; import static org.myrobotlab.framework.StatusLevel.ERROR; import static org.myrobotlab.framework.StatusLevel.INFO; import static org.myrobotlab.framework.StatusLevel.SUCCESS; import static org.myrobotlab.framework.StatusL...
MyRobotLab/myrobotlab
src/main/java/org/myrobotlab/framework/Status.java
Java
apache-2.0
7,254
// 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. using System.Threading; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax;...
eriawan/roslyn
src/Features/CSharp/Portable/Structure/Providers/RegionDirectiveStructureProvider.cs
C#
apache-2.0
2,849
""" Support for EBox. Get data from 'My Usage Page' page: https://client.ebox.ca/myusage For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.ebox/ """ import logging from datetime import timedelta import voluptuous as vol import homeassistant.helper...
Cinntax/home-assistant
homeassistant/components/ebox/sensor.py
Python
apache-2.0
4,756
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may...
UniTime/unitime
JavaSource/org/unitime/timetable/solver/exam/ui/ExamConflictStatisticsInfo.java
Java
apache-2.0
36,624
package no.nb.nna.veidemann.chrome.client.ws; import no.nb.nna.veidemann.chrome.client.ws.GetBrowserVersionCmd.Response; public class GetBrowserVersionCmd extends Command<Response> { public GetBrowserVersionCmd(Cdp client) { super(client, "Browser", "getVersion", Response.class); } public static ...
nlnwa/broprox
veidemann-chrome-client/src/main/java/no/nb/nna/veidemann/chrome/client/ws/GetBrowserVersionCmd.java
Java
apache-2.0
1,385
package fr.javatronic.blog.massive.annotation1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_914 { }
lesaint/experimenting-annotation-processing
experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/Class_914.java
Java
apache-2.0
145
OC.L10N.register( "settings", { "Security & Setup Warnings" : "Säkerhets & Inställningsvarningar", "Cron" : "Cron", "Sharing" : "Dela", "Security" : "Säkerhet", "Email Server" : "E-postserver", "Log" : "Logg", "Authentication error" : "Fel vid autentisering", "Your full name has ...
kebenxiaoming/owncloudRedis
settings/l10n/sv.js
JavaScript
apache-2.0
21,151
package org.wikipedia.concurrency; // Copied from Android 4.4.2_r2 source // so we can use executeOnExecutor :P // // https://android.googlesource.com/platform/frameworks/base/+/android-4.4.2_r2/core/java/android/os/AsyncTask.java /* * Copyright (C) 2008 The Android Open Source Project * * Licensed...
reproio/apps-android-wikipedia
wikipedia/src/main/java/org/wikipedia/concurrency/AsyncTask.java
Java
apache-2.0
26,978
package cn.edu.hhu.reg.vo; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="doctor_login") public class DoctorLogin { @Id @GeneratedVa...
pqpo/registration_api
src/cn/edu/hhu/reg/vo/DoctorLogin.java
Java
apache-2.0
1,216
/* * Copyright 2018 Aleksander Jagiełło * * 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 ag...
ShootGame/Arcade2
src/main/java/pl/themolka/arcade/team/TeamCommands.java
Java
apache-2.0
9,514
package problems; import java.util.Arrays; import java.util.PriorityQueue; /** * Leetcode: Super Ugly Number * Created by alan on 2/24/2016. */ public class SuperUglyNumber { class Node implements Comparable<Node> { int val; final int prime_index; public Node(int value, int prime_idx) ...
alyiwang/LeetCode
src/problems/SuperUglyNumber.java
Java
apache-2.0
1,548
package yuku.alkitab.base.util; import android.app.Activity; import android.app.Dialog; import android.content.Intent; import android.database.Cursor; import android.database.DatabaseUtils; import android.database.sqlite.SQLiteDatabase; import android.os.AsyncTask; import android.support.annotation.NonNull; import and...
infojulio/androidbible
Alkitab/src/main/java/yuku/alkitab/base/util/BookmarkImporter.java
Java
apache-2.0
11,461
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.core.region; import java.util.Set; import org.joda.beans.impl.flexi.FlexiBean; import org.threeten.bp.ZoneId; import com.opengamma.id.ExternalBundleIdentifia...
McLeodMoores/starling
projects/core/src/main/java/com/opengamma/core/region/Region.java
Java
apache-2.0
3,168
/* $Id$ * $URL: https://dev.almende.com/svn/abms/coala-common/src/main/java/com/almende/coala/time/NanoInstant.java $ * * Part of the EU project Adapt4EE, see http://www.adapt4ee.eu/ * * @license * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance ...
krevelen/coala
coala-core/src/main/java/io/coala/time/NanoInstant.java
Java
apache-2.0
2,299
package cat.ereza.customactivityoncrash.activity; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import cat.ereza.customactivityoncrash.CustomActivityOnCrash; /** * Created by zhy on 15/8/4. */ public class ClearStack extends Activity { @Override protected void onCr...
hongyangAndroid/CustomActivityOnCrash
library/src/main/java/cat/ereza/customactivityoncrash/activity/ClearStack.java
Java
apache-2.0
596
using System; using System.Collections.Generic; using System.Data.Services.Common; using System.IO; using System.Linq; using NuGet.Resources; namespace NuGet { [DataServiceKey("Id", "Version")] [EntityPropertyMapping("LastUpdated", SyndicationItemProperty.Updated, SyndicationTextContentKind.Plaintext,...
grendello/nuget
src/Core/Packages/DataServicePackage.cs
C#
apache-2.0
9,582
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you m...
zzsoszz/webservice_gzdx
opensource_cxf/org/apache/cxf/tools/common/ToolConstants.java
Java
apache-2.0
12,534
/** * Copyright Pravega 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...
pravega/pravega
client/src/test/java/io/pravega/client/connection/impl/ConnectionPoolingTest.java
Java
apache-2.0
21,376
#define DEBUG_TYPE "sil-simplify-cfg" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallVector.h" #include "swift/SIL/SILInstruction.h" #include "swift/SILOptimizer/Analysis/DominanceAnalysis.h" #include "swift/SILOptimizer/Utils/CFG.h" #include "swift/SILOptimizer/Utils/Local.h" #include "swift/SILOptimizer/Ut...
adrfer/swift
lib/SILOptimizer/Utils/CheckedCastBrJumpThreading.cpp
C++
apache-2.0
26,094
package jp.co.omana.action; import org.seasar.struts.annotation.Execute; public class ServiceAction { @Execute(validator = false) public String index() { return "board.jsp"; } @Execute(validator = false) public String confirm() { return "index.jsp"; } @Execute(validator = fals...
ikraikra/bunsekiya
src/main/java/jp/co/omana/action/ServiceAction.java
Java
apache-2.0
387
from turbo.flux import Mutation, register, dispatch, register_dispatch import mutation_types @register_dispatch('user', mutation_types.INCREASE) def increase(rank): pass def decrease(rank): return dispatch('user', mutation_types.DECREASE, rank) @register_dispatch('metric', 'inc_qps') def inc_qps(): pa...
tao12345666333/app-turbo
demos/helloworld/store/actions.py
Python
apache-2.0
322
/** * */ package com.sivalabs.demo.orders.repositories; import org.springframework.data.jpa.repository.JpaRepository; import com.sivalabs.demo.orders.entities.Order; /** * @author Siva * */ public interface OrderRepository extends JpaRepository<Order, Integer>{ }
sivaprasadreddy/springboot-learn-by-example
chapter-09/springboot-multiple-datasources-demo/src/main/java/com/sivalabs/demo/orders/repositories/OrderRepository.java
Java
apache-2.0
274
var structCO__config__t = [ [ "CNT_NMT", "structCO__config__t.html#aeef814580eb5ece5156e63bfc1b490c9", null ], [ "ENTRY_H1017", "structCO__config__t.html#ad17f77b55de3d90ec983fcac49eeab6d", null ], [ "CNT_HB_CONS", "structCO__config__t.html#a0031fc8f80e95f8480c918dbf8289671", null ], [ "ENTRY_H1016", "s...
CANopenNode/CANopenSocket
docs/structCO__config__t.js
JavaScript
apache-2.0
3,451
/* Copyright 2017 Processwall Limited 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 ...
ArasExtensions/Aras.ViewModel
Aras.ViewModel.Design/Applications/Parts.cs
C#
apache-2.0
3,016
#include <tuple> #include "Vector2.h" Vector2::Vector2(void) { } Vector2::Vector2(float X, float Y) { this->X = X; this->Y = Y; } // Returns the length of the vector float Vector2::Magnitude() { return sqrt(X * X + Y * Y); } // Returns the length of the vector squared // Used for length comparisons without need...
Henrywald/crispy-waffle
Crispy-Waffle/Vector2.cpp
C++
apache-2.0
1,685
/************************************************************ * * EaseMob CONFIDENTIAL * __________________ * Copyright (C) 2013-2014 EaseMob Technologies. All rights reserved. * * NOTICE: All information contained herein is, and remains * the property of EaseMob Technologies. * Dissemination of this info...
liyuzhao/enterpriseChat-android
src/com/easemob/chatuidemo/activity/RecorderVideoActivity.java
Java
apache-2.0
16,993
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { Location } from '@angular/common'; import { Merch } from '../data/merch'; import { MerchService } from '../data/merch.service'; @Component({ selector: 'app-merch-display', templateUrl: './merch-display.co...
tensorflow/tfjs-examples
angular-predictive-prefetching/client/src/app/merch-display/merch-display.component.ts
TypeScript
apache-2.0
1,198
package com.github.sergejsamsonow.codegenerator.producer.pojo.renderer; import com.github.sergejsamsonow.codegenerator.api.producer.sc.SCMethodCodeConcatenator; import com.github.sergejsamsonow.codegenerator.api.producer.sc.SCNewLineAndIndentationFormat; import com.github.sergejsamsonow.codegenerator.producer.pojo.mod...
sergej-samsonow/code-generator
producer/pojo/src/main/java/com/github/sergejsamsonow/codegenerator/producer/pojo/renderer/JavaLangToString.java
Java
apache-2.0
1,597
/* * Copyright 2010-2011 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 * * http://aws.amazon.com/apache2.0 * * or in the "l...
apetresc/aws-sdk-for-java-on-gae
src/main/java/com/amazonaws/services/autoscaling/model/TerminateInstanceInAutoScalingGroupResult.java
Java
apache-2.0
2,135
/** * Copyright 2013-present NightWorld. * * 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 ag...
zoltangbereczky/node-oauth2-server
lib/authorise.js
JavaScript
apache-2.0
6,699
from functools import wraps import json import os import traceback import validators from jinja2 import Environment, PackageLoader from notebook.utils import url_path_join from notebook.base.handlers import IPythonHandler import requests from requests.auth import HTTPBasicAuth env = Environment( loader=PackageLo...
saagie/jupyter-saagie-plugin
saagie/server_extension.py
Python
apache-2.0
16,090
//// [contextualTypeWithUnionTypeMembers.ts] //When used as a contextual type, a union type U has those members that are present in any of // its constituent types, with types that are unions of the respective members in the constituent types. interface I1<T> { commonMethodType(a: string): string; commonPrope...
freedot/tstolua
tests/baselines/reference/contextualTypeWithUnionTypeMembers.js
JavaScript
apache-2.0
6,404
using System; using System.Collections.Generic; using System.Linq; using System.Text; using SuperMap.WinRT.Core; using SuperMap.WinRT.Utilities; using Windows.Data.Json; using Windows.UI; namespace SuperMap.WinRT.REST { /// <summary> /// <para>${REST_ServerLayer_Title}</para> /// <para>${REST_ServerLaye...
SuperMap/iClient-for-Win8
iClient60ForWinRT/SuperMap.WinRT.REST/Map/GetMapStatusAndLayerInfo/ServerLayer.cs
C#
apache-2.0
12,064
// /* // Copyright The Kubernetes 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 ...
kubernetes/autoscaler
cluster-autoscaler/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azureclients/diskclient/mockdiskclient/interface.go
GO
apache-2.0
5,056
/* * Copyright 2014 Alexey Andreev. * * 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...
mpoindexter/teavm
teavm-classlib/src/main/java/org/teavm/classlib/java/util/TRandom.java
Java
apache-2.0
1,877
#include <iostream> #include "SParser.hpp" #pragma once namespace Silent { /*static class SymTablePrinter { public: static void Out(std::string str, uint64_t currentTab) { std::string tabs = ""; for (uint64_t i = 0; i < currentTab; i++) tabs += "\t"; ...
EdwinRybarczyk/SilentProgrammingLanguage
SilentCompiler/include/SHelper.hpp
C++
apache-2.0
2,595
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package net.sf.mmm.util.io.base; import net.sf.mmm.util.exception.api.NlsNullPointerException; /** * This class is similar to {@link java.nio.ByteBuffer} but a lot simpler. * * ...
m-m-m/util
io/src/main/java/net/sf/mmm/util/io/base/ByteArrayImpl.java
Java
apache-2.0
2,897
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespaclient; public class ClusterDef { private final String name; public ClusterDef(String name) { this.name = name; } public String getName() { return name; } public String getRou...
vespa-engine/vespa
vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterDef.java
Java
apache-2.0
372
/* * Copyright (C) 2018 the original author or authors. * * This file is part of jBB Application Project. * * Licensed under the Apache License, Version 2.0 (the "License"); * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 */ package org.jbb.security.rest.oauth.cl...
jbb-project/jbb
domain-rest/jbb-security-rest/src/main/java/org/jbb/security/rest/oauth/client/ClientSecretDto.java
Java
apache-2.0
751
import numpy as np class WordClusters(object): def __init__(self, vocab, clusters): self.vocab = vocab self.clusters = clusters def ix(self, word): """ Returns the index on self.vocab and self.clusters for 'word' """ temp = np.where(self.vocab == word)[0] ...
danielfrg/word2vec
word2vec/wordclusters.py
Python
apache-2.0
1,041
package weixin.popular.bean.scan.crud; import weixin.popular.bean.scan.base.ProductGet; import weixin.popular.bean.scan.info.BrandInfo; public class ProductCreate extends ProductGet { private BrandInfo brand_info; public BrandInfo getBrand_info() { return brand_info; } public void setBrand_...
liyiorg/weixin-popular
src/main/java/weixin/popular/bean/scan/crud/ProductCreate.java
Java
apache-2.0
395
package com.mattinsler.guiceymongo.data.query; import org.bson.BSON; /** * Created by IntelliJ IDEA. * User: mattinsler * Date: 12/29/10 * Time: 3:28 AM * To change this template use File | Settings | File Templates. */ public enum BSONType { Double(BSON.NUMBER), String(BSON.STRING), Object(BSON.OBJ...
mattinsler/guiceymongo
src/main/java/com/mattinsler/guiceymongo/data/query/BSONType.java
Java
apache-2.0
891
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org) * Copyright (C) 2011-2012 Eugene Fradkin (eugene.fradkin@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You...
ruspl-afed/dbeaver
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/views/PrefPageOracle.java
Java
apache-2.0
4,753
package com.winsun.fruitmix.model; /** * Created by Administrator on 2016/7/6. */ public class Equipment { private String serviceName; private String host; private int port; public Equipment(String serviceName, String host, int port) { this.serviceName = serviceName; this.host = hos...
andywu91/fruitMix-android
app/src/main/java/com/winsun/fruitmix/model/Equipment.java
Java
apache-2.0
815
// Copyright 2015 PingCAP, 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...
Cofyc/tidb
types/compare.go
GO
apache-2.0
2,788
package com.wangshan.service.impl; import com.wangshan.dao.UserDao; import com.wangshan.models.User; import com.wangshan.service.ValidateService; import com.wangshan.utils.gabriel.EncryptUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** ...
sanyiwangshan/my_space
backend/src/main/java/com/wangshan/service/impl/ValidateServiceImpl.java
Java
apache-2.0
1,047
<?php /** * Created by PhpStorm. * User: Mohammad Eslahi Sani * Date: 04/10/1394 * Time: 9:06 PM */ //dl('php_pdo_sqlsrv_55_ts.dll'); // phpinfo(); if(isset($_SESSION['login'])){ } elseif(isset($_POST['username']) && isset($_POST['password'])){ $u = $_POST['username']; $p = $_POST['password']; // ex...
mrhsce/officeAutomation
login.php
PHP
apache-2.0
3,700
/* ### * IP: GHIDRA * REVIEWED: YES * * 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 ag...
NationalSecurityAgency/ghidra
Ghidra/Framework/Generic/src/main/java/ghidra/util/prop/SaveableObjectPropertySet.java
Java
apache-2.0
3,858
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text.RegularExpressions; using HtmlAgilityPack; namespace Html2Markdown.Replacement { internal static class HtmlParser { private static readonly Regex NoChildren = new Regex(@"<(ul|ol)\b[^>]*>(?:(?!<ul|<ol)[\s\S])*?<\...
baynezy/Html2Markdown
src/Html2Markdown/Replacement/HtmlParser.cs
C#
apache-2.0
7,024
"""api_server URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
AutohomeOps/Assets_Report
api_server/api_server/urls.py
Python
apache-2.0
846
// Copyright 2017 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...
Martin2112/trillian
merkle/coniks/coniks.go
GO
apache-2.0
5,031
/* * Copyright 2010-2014 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 * * http://aws.amazon.com/apache2.0 * * or in the "l...
rafd123/aws-sdk-net
sdk/src/Services/WAF/Generated/Model/Internal/MarshallTransformations/RuleSummaryUnmarshaller.cs
C#
apache-2.0
3,306
/* Copyright 2015 The Kubernetes 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 in writing, ...
NickrenREN/kubernetes
staging/src/k8s.io/apiserver/pkg/endpoints/installer.go
GO
apache-2.0
44,987
// -*- coding: us-ascii-unix -*- // Copyright 2012 Lukas Kemmer // // 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...
lukas-ke/faint-graphics-editor
text/utf8-string.cpp
C++
apache-2.0
6,218
package com.asura.monitor.platform.dao; import com.asura.framework.base.paging.PagingResult; import com.asura.framework.base.paging.SearchMap; import com.asura.framework.dao.mybatis.base.MybatisDaoContext; import com.asura.framework.dao.mybatis.paginator.domain.PageBounds; import com.asura.common.dao.BaseDao; import c...
AsuraTeam/monitor
server/src/main/java/com/asura/monitor/platform/dao/MonitorPlatformServerDao.java
Java
apache-2.0
1,279
/** * Jakarta Bean Validation TCK * * License: Apache License, Version 2.0 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. */ package org.hibernate.beanvalidation.tck.tests.constraints.constraintdefinition; import static org.hibernate.beanvalidation.tck.util.Const...
beanvalidation/beanvalidation-tck
tests/src/main/java/org/hibernate/beanvalidation/tck/tests/constraints/constraintdefinition/ConstraintDefinitionsTest.java
Java
apache-2.0
4,672
<?php defined('ABSPATH') or die('No script kiddies please!'); /** * Undocumented function * * @return void */ function Yonk_numeric_posts_nav() { if(is_singular()) return; global $wp_query; /** Stop execution if there's only 1 page */ if($wp_query->max_num_pages <= 1) return; ...
Patreo/yonk
wp-content/themes/YonkTheme/yonk-core/plugins/pagenavi.php
PHP
apache-2.0
2,213
package org.targettest.org.apache.lucene.index; /** * 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...
chrishumphreys/provocateur
provocateur-thirdparty/src/main/java/org/targettest/org/apache/lucene/index/MultiReader.java
Java
apache-2.0
14,073
import os,json from cgi import escape def unescape(s): s = s.replace("&lt;", "<") s = s.replace("&gt;", ">") # this has to be last: s = s.replace("&amp;", "&") return s class FilesystemMixin: def h_fs_get(_,path,eltName=''): from stat import S_ISDIR data = (escape(open(path).re...
val314159/framist
fssvr/fs.py
Python
apache-2.0
1,267
// Copyright 2016 PingCAP, 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...
cwen0/cdb-syncer
db.go
GO
apache-2.0
9,435
package com.basicalgorithms.coding_games; import java.util.HashSet; import java.util.Objects; import java.util.Scanner; import java.util.Set; /** * Original question: https://www.codingame.com/multiplayer/bot-programming/coders-strike-back */ public class CodersStrikeBack { static double longestDist = Integer....
Ericliu001/basic-algorithms
src/test/java/com/basicalgorithms/coding_games/CodersStrikeBack.java
Java
apache-2.0
6,186
'use strict'; var path = require('path'); var util = require('util'); module.exports = function(grunt) { grunt.registerMultiTask('vjslanguages', 'A Grunt plugin for compiling VideoJS language assets.', function() { var createLanguageFile = function(languageName, languageData, jsFilePath) { var jsTemplate...
videojs/grunt-videojs-languages
tasks/videojs_languages.js
JavaScript
apache-2.0
1,338
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of th...
ankuradhey/dealtrip
library/Zend/Filter/BaseName.php
PHP
apache-2.0
1,408
# -*- coding: utf-8 -*- # # 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 ...
prestodb/presto-admin
tests/unit/test_catalog.py
Python
apache-2.0
9,157
$(document).ready(function(){ $("#inc_tab #tb1").removeClass(); $("#inc_tab #tb4").addClass("active"); $("#user_name").blur(function(){ var user_name = $.trim($(this).val()); $(this).val(user_name); if (user_name.length==0){ $(this).parent().find("#user_name_null_warn").show(); $(this).parent().fin...
wxiwei/manage
src/main/webapp/WEB-INF/js/user/userEditor.js
JavaScript
apache-2.0
1,536
package sample.multiversion; public interface Core { String getVersion(); String getDependencyVersion(); }
omacarena/only-short-poc
java.multiversion/v1/src/main/sample/multiversion/Core.java
Java
apache-2.0
117
package org.example; import org.camunda.bpm.spring.boot.starter.annotation.EnableProcessApplication; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication @EnableProcessApplication("dynamic-tenant-designation") public class Camun...
camunda/camunda-consulting
snippets/dynamic-tenant-designation/src/main/java/org/example/CamundaApplication.java
Java
apache-2.0
445
/* Copyright 2016 The Kubernetes 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 in writing, ...
krousey/test-infra
testgrid/cmd/config/main.go
GO
apache-2.0
2,010
package org.galaxy.myhttp; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
galaxy-captain/MyHttp
app/src/test/java/org/galaxy/myhttp/ExampleUnitTest.java
Java
apache-2.0
310
require_relative '../netapp_cmode' Puppet::Type.type(:netapp_lun).provide(:cmode, :parent => Puppet::Provider::NetappCmode) do @doc = "Manage Netapp Lun creation, modification and deletion. [Family: vserver]" confine :feature => :posix defaultfor :feature => :posix netapp_commands :lunlist => {:api => 'lu...
puppetlabs/puppetlabs-netapp
lib/puppet/provider/netapp_lun/cmode.rb
Ruby
apache-2.0
5,287
// Code generated by go-swagger; DO NOT EDIT. package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( strfmt "github.com/go-openapi/strfmt" "github.com/go-openapi/errors" "github.com/go-openapi/swag" "github.com...
olebedev/go-tgbot
models/send_photo_link_body.go
GO
apache-2.0
1,957
/** * Copyright (C) 2014-2015 LinkedIn Corp. (pinot-core@linkedin.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
tkao1000/pinot
pinot-core/src/main/java/com/linkedin/pinot/core/startree/OffHeapStarTreeBuilder.java
Java
apache-2.0
28,902
/* * Copyright 2011 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
robinverduijn/gradle
subprojects/signing/src/main/java/org/gradle/plugins/signing/SignOperation.java
Java
apache-2.0
7,371
/* * Copyright 2013-2021 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
cloudfoundry/cf-java-client
cloudfoundry-client/src/main/java/org/cloudfoundry/client/v2/spaces/_UpdateSpaceRequest.java
Java
apache-2.0
2,193
/* ### * IP: GHIDRA * * 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 writin...
NationalSecurityAgency/ghidra
Ghidra/Debug/Debugger-agent-lldb/src/main/java/agent/lldb/manager/evt/LldbThreadResumedEvent.java
Java
apache-2.0
893
/** * Copyright (C) 2013 * by 52 North Initiative for Geospatial Open Source Software GmbH * * Contact: Andreas Wytzisk * 52 North Initiative for Geospatial Open Source Software GmbH * Martin-Luther-King-Weg 24 * 48155 Muenster, Germany * info@52north.org * * This program is free software; you can redistribut...
sauloperez/sos
src/bindings/rest/code/src/main/java/org/n52/sos/binding/rest/resources/OptionsRestRequest.java
Java
apache-2.0
1,863
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Watcher.Model { public class GreatThan : IPredicate { public string Quantifier { get { return "great than"; } ...
hotjk/ace
Watcher.Model/Predicate/GreatThan.cs
C#
apache-2.0
429
/* Copyright 2018 The OpenEBS 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 in writing, soft...
prateekpandey14/maya
pkg/algorithm/nodeselect/v1alpha2/select_node.go
GO
apache-2.0
7,242
define( ['app/models/proto_model'], function(ProtoModel) { var Model = ProtoModel.extend({ // matches first part of method name in @remote.method urlRoot: '/cru_api.order_', must_be_floats: ['sub_total', 'actual_total'], }); return Model; } );
babybunny/rebuildingtogethercaptain
gae/js/app/models/order.js
JavaScript
apache-2.0
317
package com.sequenceiq.freeipa.entity.util; import com.sequenceiq.cloudbreak.converter.DefaultEnumConverter; import com.sequenceiq.freeipa.api.v1.kerberos.model.KerberosType; public class KerberosTypeConverter extends DefaultEnumConverter<KerberosType> { @Override public KerberosType getDefault() { r...
hortonworks/cloudbreak
freeipa/src/main/java/com/sequenceiq/freeipa/entity/util/KerberosTypeConverter.java
Java
apache-2.0
356
namespace TrelloToExcel.Trello { public class TextData { public Emoji3 emoji { get; set; } } }
ymotton/TrelloToExcel
TrelloToExcel/Trello/TextData.cs
C#
apache-2.0
117
def power_digit_sum(exponent): power_of_2 = str(2 ** exponent) return sum([int(x) for x in power_of_2])
plilja/project-euler
problem_16/power_digit_sum.py
Python
apache-2.0
111
# Copyright 2022 The Magenta 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 in ...
magenta/note-seq
note_seq/constants.py
Python
apache-2.0
2,620
# Copyright 2018 PerfKitBenchmarker 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 appli...
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/providers/aws/aws_logs.py
Python
apache-2.0
3,293
package com.lyubenblagoev.postfixrest.security; import com.lyubenblagoev.postfixrest.entity.User; import com.lyubenblagoev.postfixrest.repository.UserRepository; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springf...
lyubenblagoev/postfix-rest-server
src/main/java/com/lyubenblagoev/postfixrest/security/CustomUserDetailsService.java
Java
apache-2.0
1,026
/* * Copyright (c) 2021 Citrix Systems, 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 ...
citrix/terraform-provider-netscaler
vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_binding.go
GO
apache-2.0
881
/* Copyright 2016 The Kubernetes 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 in writing, ...
gambol99/kops
cmd/kops/rollingupdatecluster.go
GO
apache-2.0
13,554
/******************************************************************************* * Copyright (c) 2012, 2015 Pivotal Software, Inc. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, * Version 2.0 (the "License"); you may not use this ...
osswangxining/dockerfoundry
cn.dockerfoundry.ide.eclipse.server.core/src/cn/dockerfoundry/ide/eclipse/server/core/internal/ServerEventHandler.java
Java
apache-2.0
3,808
<?php /** * MyBB 1.6 Spanish Language Pack * Copyright 2010 MyBB Group, All Rights Reserved * * $Id: report.lang.php 5016 2010-08-10 12:32:33Z Anio_pke $ */ $l['report_post'] = "Reportar mensaje"; $l['report_to_mod'] = "Reporta este mensaje a un moderador"; $l['only_report'] = "Solo debes reportar mens...
Flauschbaellchen/florensia-base
forum/inc/languages/espanol/report.lang.php
PHP
apache-2.0
755
/** * @license * Copyright 2020 Google LLC. 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 a...
tensorflow/tfjs-examples
interactive-visualizers/projects/playground/src/environments/environment.ts
TypeScript
apache-2.0
2,403
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; using System.Diagnostics; namespace MT5LiquidityIndicator.Net.Settings { [DisplayName("Line Settings")] public class LineSettings { #region contruction public LineSettings() ...
marmysh/MT5-Liquidity-Indicator
Source/MT5LiquidityIndicator/MT5LiquidityIndicator.Net/Settings/LineSettings.cs
C#
apache-2.0
2,168
/* * Copyright 2016 Bjoern Bilger * * 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 t...
bbilger/jrestless
core/jrestless-core-container/src/test/java/com/jrestless/core/container/JRestlessContainerResponseWriterTest.java
Java
apache-2.0
5,472