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
using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Data.Xml.Dom; using Windows.Security.Cryptography; using Windows.Storage; using Windows.Storage.Streams; namespace BabylonJs.Framework.Convert...
craigomatic/BabylonJS-Framework
src/BabylonJs.Framework/Converters/AmfConverter.cs
C#
apache-2.0
3,054
#!/usr/bin/env python # # 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 # "L...
radical-cybertools/aimes.swiftrp
thrift_tests/server.py
Python
apache-2.0
9,371
/* * Copyright 2011 William Bernardet * * 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 agre...
seeburger-ag/japi-checker
japi-checker/src/main/java/com/googlecode/japi/checker/model/AttributeData.java
Java
apache-2.0
970
'use strict'; module.exports = function(sequelize, DataTypes) { var GuardianMetaUpdateCheckIn = sequelize.define('GuardianMetaUpdateCheckIn', { }, { classMethods: { associate: function(models) { GuardianMetaUpdateCheckIn.belongsTo(models.Guardian, {as: 'Guardian'}); GuardianMetaUpdateChec...
tanapop/rfcx-api
models/guardian-meta/guardian-meta-updatecheckin.js
JavaScript
apache-2.0
487
<?php App::uses('AppModel', 'Model'); APP::uses('ModelBehavior', 'Model'); class DateFormatBehavior extends ModelBehavior { public function afterFind(Model $model, $results, $primary = false) { $res = array(); foreach ($results as $key => $value) { if (is_array($value)) { ...
robertinosantiago/flisol-sistema-eventos
app/Model/Behavior/DateFormatBehavior.php
PHP
apache-2.0
1,864
// 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 the ...
Duikmeester/google-api-dotnet-client
Src/Generated/Google.Apis.Speech.v1p1beta1/Google.Apis.Speech.v1p1beta1.cs
C#
apache-2.0
77,359
/** * Created by mdylag on 17/03/15. */ function callCallback(callback) { console.log("Function callCallback"); if (callback && typeof callback === "function") { callback(); } } function myCallBack() { console.log("Function myCallBack"); } writeCode(myCallBack);
ms-courses/JavaScriptAdvance
functions/callback.js
JavaScript
apache-2.0
292
package com.lenovo.leoss.utils; /** * Created by zhangyl27 on 2014/10/16. */ public class HSqls { public static final String USER_BASE_INFO_UPDATE = "update User set " + "contact_name=?," + "phone=?," + "company_type=?," + ...
ZhaoX/Spring-Hibernate-Example
src/main/java/com/lenovo/leoss/utils/HSqls.java
Java
apache-2.0
420
#!/usr/bin/env python2.7 from __future__ import absolute_import from __future__ import division from __future__ import print_function from argparse import ArgumentParser from collections import OrderedDict from contextlib import contextmanager import json import logging import multiprocessing import os import shutil ...
mariosgohan/infinite-trailer
infinite_trailer.py
Python
apache-2.0
12,916
# # Author:: Seth Falcon (<seth@opscode.com>) # Copyright:: Copyright 2010-2011 Opscode, Inc. # License:: Apache License, Version 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 # # h...
danielsdeleo/seth
lib/seth/encrypted_data_bag_item/decryptor.rb
Ruby
apache-2.0
6,776
/** * Copyright 2012 The Bitcoin Developers * Copyright 2012 Matt Corallo * * 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 * * Unles...
bitbandi/spreadcoinj
core/src/main/java/org/spreadcoinj/core/PartialMerkleTree.java
Java
apache-2.0
12,811
# Copyright (C) 2016 Ross Wightman. 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 # =================================...
rwightman/udacity-driving-reader
script/bagutils.py
Python
apache-2.0
12,425
# Copyright (c) 2012 Rackspace Hosting # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
sridevikoushik31/openstack
nova/cells/scheduler.py
Python
apache-2.0
5,442
/******************************************************************************* * Copyright 2018 * Language Technology Lab * University of Duisburg-Essen * * 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...
Horsmann/ltlab-evaluation
ltlab-evaluation-measures/src/main/java/de/unidue/ltl/evaluation/measures/categorial/CategoricalMeasure.java
Java
apache-2.0
2,523
package org.cucina.engine.repository.jpa; import org.apache.commons.lang3.ArrayUtils; import org.cucina.core.InstanceFactory; import org.cucina.core.model.PersistableEntity; import org.cucina.engine.model.HistoryRecord; import org.cucina.engine.model.ProcessToken; import org.cucina.engine.repository.TokenRepository; i...
cucina/opencucina
engine/src/main/java/org/cucina/engine/repository/jpa/TokenRepositoryImpl.java
Java
apache-2.0
7,978
const root = '../../'; jest.useFakeTimers(); describe('call-function plugin', function(){ beforeEach(function(){ require(root + 'jspsych.js'); require(root + 'plugins/jspsych-call-function.js'); }); test('loads correctly', function(){ expect(typeof window.jsPsych.plugins['call-function']).not.toBe('undefin...
JATOS/JATOS_examples
study_assets_root/clock_drawing/jsPsych/tests/plugins/plugin-call-function.test.js
JavaScript
apache-2.0
612
/* * Copyright (c) 2008-2016, Hazelcast, 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 ...
Donnerbart/hazelcast-simulator
simulator/src/main/java/com/hazelcast/simulator/protocol/connector/AbstractServerConnector.java
Java
apache-2.0
15,847
/** * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
googlecreativelab/inside-music
src/interface/ExitButton.js
JavaScript
apache-2.0
1,360
/* * Copyright 2009 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...
FinishX/coolweather
gradle/gradle-2.8/src/internal-integ-testing/org/gradle/integtests/fixtures/executer/ExecutionResult.java
Java
apache-2.0
2,176
/* * Copyright 2012 gitblit.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 * * Unless required by applicable law or ...
culmat/gitblit
src/main/java/com/gitblit/service/LuceneService.java
Java
apache-2.0
42,731
/* Copyright 2019 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, ...
mboersma/kubernetes
test/e2e/framework/node/resource.go
GO
apache-2.0
17,669
#set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) 'use strict'; angular.module('${artifactId}App').factory('Applications', function (Restangular) { return Restangular.service('applications'); });
meruvian/yama-archetypes
starter/src/main/resources/archetype-resources/webapp/app/backend/admin/application/application.service.js
JavaScript
apache-2.0
234
/* 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 not use this fil...
robdouglas/incubator_streams_apache
streams-util/src/main/java/org/apache/streams/util/api/requests/backoff/AbstractBackOffStrategy.java
Java
apache-2.0
3,424
/* * $Header: /var/chroot/cvs/cvs/factsheetDesigner/extern/jakarta-slide-server-src-2.1-iPlus Edit/src/stores/org/apache/slide/store/impl/rdbms/expression/RDBMSNotIsCollectionExpression.java,v 1.2 2006-01-22 22:49:06 peter-cvs Exp $ * $Revision: 1.2 $ * $Date: 2006-01-22 22:49:06 $ * * ============================...
integrated/jakarta-slide-server
src/stores/org/apache/slide/store/impl/rdbms/expression/RDBMSNotIsCollectionExpression.java
Java
apache-2.0
1,709
<?php /** * Give up write lock on relation * * @phpstub * * @param resource $relation * * @return int */ function dbplus_unlockrel($relation) { }
schmittjoh/php-stubs
res/php/dbplus/functions/dbplus-unlockrel.php
PHP
apache-2.0
155
/** * Copyright 2021 The AMP HTML 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 require...
nexxtv/amphtml
extensions/amp-selector/1.0/base-element.js
JavaScript
apache-2.0
7,802
package com.zmq.shopmall.fragmen; import android.annotation.SuppressLint; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.webkit.WebSettings; import android.webkit.WebView; import android.w...
dsh923713/Stock
library/src/main/java/com/zmq/shopmall/fragmen/GoodsDetailWebFragment.java
Java
apache-2.0
3,107
# Copyright 2015 Vinicius Chiele. 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...
viniciuschiele/simplebus
simplebus/handlers.py
Python
apache-2.0
1,217
package com.structurizr.analysis; import com.structurizr.model.CodeElement; import com.structurizr.model.Component; import com.structurizr.model.Container; import com.structurizr.util.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import java.lang.annotation.Annotati...
klu2/structurizr-java
structurizr-analysis/src/com/structurizr/analysis/AbstractComponentFinderStrategy.java
Java
apache-2.0
8,296
#!/usr/bin/python2.7 import nltk f = open("../corpus/data.en","r") f2 = open("../corpus/tagged_data","w") lines = f.readlines() for line in lines: tokens = nltk.word_tokenize(line) tag_list = nltk.pos_tag(tokens) print>> f2, tag_list # f2.write(tag_list)
shyamjvs/cs626_project
python_code/pos_tag_corpus.py
Python
apache-2.0
274
#include "extensions/filters/network/dubbo_proxy/dubbo_protocol_impl.h" #include "envoy/registry/registry.h" #include "common/common/assert.h" namespace Envoy { namespace Extensions { namespace NetworkFilters { namespace DubboProxy { namespace { constexpr uint16_t MagicNumber = 0xdabb; constexpr uint8_t MessageType...
dnoe/envoy
source/extensions/filters/network/dubbo_proxy/dubbo_protocol_impl.cc
C++
apache-2.0
5,310
/* * Copyright 2000-2012 JetBrains s.r.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 agre...
consulo/consulo
modules/base/indexing-impl/src/main/java/com/intellij/openapi/roots/impl/LibraryScopeCache.java
Java
apache-2.0
4,427
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package clientes; import conexao.ConexaoBanco; import java.sql.PreparedStatement; import java.sql.SQLException; import javax.swing.JO...
Rafiski/Shalon
src/src/clientes/NCliente.java
Java
apache-2.0
13,884
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.appcostal.struts; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionErrors; ...
MAMISHO/AppCostal-Beta
appCostal-beta/src/java/com/appcostal/struts/EliminarIgualaActionForm.java
Java
apache-2.0
1,283
/** * Copyright 2011-2021 Asakusa Framework Team. * * 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...
asakusafw/asakusafw
sandbox-project/asakusa-directio-runtime-ext/src/test/java/com/asakusafw/runtime/directio/api/DirectIoTest.java
Java
apache-2.0
6,165
/* * Copyright 2012-2014 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...
10045125/spring-boot
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.java
Java
apache-2.0
13,159
/* * Copyright (C) 2016 the original author or authors. * * This file is part of jGrades 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.jgrades.logging.model;...
jgrades/jgrades
jg-logging/src/main/java/org/jgrades/logging/model/LoggingStrategy.java
Java
apache-2.0
936
/* * This code is subject to the HIEOS License, Version 1.0 * * Copyright(c) 2011 Vangent, Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ...
kef/hieos
src/xutil/src/com/vangent/hieos/xutil/atna/ATNAAuditEventStop.java
Java
apache-2.0
610
package me.bianbian.worldclock.webapp.filter; import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import javax.servlet.FilterChain; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.ServletRe...
bianbian/worldclock
web/src/test/java/me/bianbian/worldclock/webapp/filter/MockFilterChain.java
Java
apache-2.0
1,590
package org.itevents.model.builder; import org.itevents.model.*; import java.util.Date; import java.util.List; /** * Created by vaa25 on 30.09.2015. */ public class EventBuilder { private int id; private String title; private Date eventDate; private Date createDate; private String regLink; ...
vladislove80/itevents
website/restservice/src/main/java/org/itevents/model/builder/EventBuilder.java
Java
apache-2.0
2,798
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
GoogleCloudPlatform/buildpacks
pkg/buildererror/error.go
GO
apache-2.0
2,345
/* * Copyright 2013 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 applicable l...
novabyte/grizzly-protobuf
src/main/java/me/cmoz/grizzly/protobuf/Varint32ProtobufDecoder.java
Java
apache-2.0
2,258
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017.05....
kohsah/akomantoso-lib
src/main/java/org/akomantoso/schema/v3/release/Formula.java
Java
apache-2.0
1,760
/* * Copyright (c) 2001-2007 Sun Microsystems, Inc. All rights reserved. * * The Sun Project JXTA(TM) Software 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 ...
johnjianfang/jxse
src/main/java/net/jxta/socket/JxtaServerSocket.java
Java
apache-2.0
31,538
package cn.edu.sjtu.se.dclab.server.service.impl; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UsernameNotFoundException; import cn.edu.sjtu.se.dclab.server.service.UserService; /** *2015年1月19日 下午9:44:00 *@author changyi yuan */ public clas...
wbear2/archetype-server
src/main/java/cn/edu/sjtu/se/dclab/server/service/impl/UserServiceImpl.java
Java
apache-2.0
500
import Container from "@extension-kid/core/dist/src/Container"; const mockRequest = jest.fn(); jest.mock("@dcos/http-service", () => ({ request: mockRequest, })); import { marbles, observe } from "rxjs-marbles/jest"; import { of } from "rxjs"; import { catchError, take, tap } from "rxjs/operators"; import gql from ...
dcos/dcos-ui
src/js/data/ui-update/__tests__/index-test.ts
TypeScript
apache-2.0
11,178
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * Project Info: http://plantuml.com * * This file is part of Smetana. * Smetana is a partial translation of Graphviz...
Banno/sbt-plantuml-plugin
src/main/java/gen/lib/common/intset__c.java
Java
apache-2.0
6,223
import Tkinter as tk import Tkinter as tk2 import code as c def g1(): g1 = tk.Tk() A = tk.Button(g1, text ="About", command = c.b1) B = tk.Button(g1, text ="Date", command = c.b2) C = tk.Button(g1, text ="Time", command = c.b3) D = tk.Button(g1, text ="CountSeconds", command = c.b4) A.pack() B.pack() C.pack() ...
Prouser123/python-tk
py/gui.py
Python
apache-2.0
514
/** Copyright 2008 University of Rochester 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...
nate-rcl/irplus
ir_web/src/edu/ur/ir/web/action/institution/DeleteInstitutionalCollectionPicture.java
Java
apache-2.0
5,025
package com.kryptnostic.rhizome.pods.hazelcast; import com.geekbeast.configuration.hazelcast.DurableExecutorConfiguration; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.hazelcast.client.config.ClientConfig; import ...
kryptnostic/rhizome
src/main/java/com/kryptnostic/rhizome/pods/hazelcast/BaseHazelcastInstanceConfigurationPod.java
Java
apache-2.0
9,126
# Copyright 2015 Google, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
GoogleCloudPlatform/ruby-docs-samples
appengine/storage/app.rb
Ruby
apache-2.0
1,327
package com.graduation.yinhua.maleambry.presenter; import com.graduation.yinhua.maleambry.contract.SingleContract; /** * Created by Administrator on 2016/11/13 */ public class SinglePresenter extends BasePresenter<SingleContract.View> implements SingleContract.Presenter{ }
yinhuagithub/MaleAmbry
app/src/main/java/com/graduation/yinhua/maleambry/presenter/SinglePresenter.java
Java
apache-2.0
276
// Copyright 2014 mint.zhao.chiu@gmail.com. All rights reserved. // Use of this source code is governed by a Apache License 2.0 // that can be found in the LICENSE file. package controllers import "github.com/astaxie/beego" type PublicController struct { BaseController } // @router /message [get] func (c *PublicCon...
ogstations/globalWays
src/gwsAdmin/controllers/public.go
GO
apache-2.0
417
package com.github.kubatatami.judonetworking.fragments; import com.github.kubatatami.judonetworking.observers.ObservableController; import com.github.kubatatami.judonetworking.observers.ObservableWrapper; import com.github.kubatatami.judonetworking.observers.ObserverHelper; import com.github.kubatatami.judonetworking....
kubatatami/JudoNetworking
observers/src/main/java/com/github/kubatatami/judonetworking/fragments/ObserverSupportFragment.java
Java
apache-2.0
931
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
2013Commons/HUE-SHARK
desktop/libs/liboozie/src/liboozie/oozie_api_test.py
Python
apache-2.0
5,769
using UnityEngine; using System.Collections; public class ShieldItem : ItemBase { public override void BeginUseItem() { base.BeginUseItem(); owner.GetComponent<AnimatorHandler>().RaiseShield(); } public override void EndUseItem() { base.EndUseItem(); owner.GetComponent...
carlsc2/SuperstitionJam
Superstition Game/Assets/Scripts/Items/ShieldItem.cs
C#
apache-2.0
365
package ch.sourcepond.integrationtest.utils; import static ch.sourcepond.integrationtest.utils.Photocopier.copyTestProjectToTemporaryLocation; import java.io.File; import java.io.FileFilter; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.List; import java.util...
SourcePond/multi-module-release-maven-plugin
release-maven-plugin/src/test/java/ch/sourcepond/integrationtest/utils/TestProject.java
Java
apache-2.0
7,054
/* * Copyright 2005 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
droolsjbpm/drools
drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieModuleProvider.java
Java
apache-2.0
2,841
/** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2021 Mozilla Foundation * * 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...
mozilla/pdfjs-dist
lib/core/xfa/factory.js
JavaScript
apache-2.0
4,930
package br.com.caelum.vraptor.html.tags; import br.com.caelum.vraptor.html.attributes.Attribute; import br.com.caelum.vraptor.html.tags.interfaces.NestedElement; import br.com.caelum.vraptor.html.tags.interfaces.Tag; import br.com.caelum.vraptor.html.transformers.DefaultTagTransformer; import br.com.caelum.vraptor.htm...
luiz/vraptor-html-dsl
src/main/java/br/com/caelum/vraptor/html/tags/Table.java
Java
apache-2.0
1,122
//// [functionOverloads2.js] function foo(bar) { return bar; } ; var x = foo(true);
fdecampredon/jsx-typescript-old-version
tests/baselines/reference/functionOverloads2.js
JavaScript
apache-2.0
94
package com.joshhendo.numbersearch.base; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.params.HttpConnectionParams; import java.io.*; import java.util.ArrayList;...
joshhendo/NumberSearchAndroid
src/com/joshhendo/numbersearch/base/Fetcher.java
Java
apache-2.0
2,750
package apple.foundation; import java.io.*; import java.nio.*; import java.util.*; import com.google.j2objc.annotations.*; import com.google.j2objc.runtime.*; import com.google.j2objc.runtime.block.*; import apple.audiotoolbox.*; import apple.corefoundation.*; import apple.coregraphics.*; import apple.coreservices.*;...
Sellegit/j2objc
runtime/src/main/java/apple/foundation/NSPredicateOperatorType.java
Java
apache-2.0
2,176
/* * Copyright (C) 2019 Square, 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 agre...
square/duktape-android
quickjs/src/main/jni/JsMethodProxy.cpp
C++
apache-2.0
3,750
package rabbitmq_server /* * File Generated by enaml generator * !!! Please do not edit this file !!! */ type Broker struct { /*Username - Descr: RabbitMQ admin username for broker Default: <nil> */ Username interface{} `yaml:"username,omitempty"` /*Password - Descr: RabbitMQ admin password for broker Default: <n...
enaml-ops/omg-product-bundle
products/p-rabbitmq/enaml-gen/rabbitmq-server/broker.go
GO
apache-2.0
379
class ClientsController < ApplicationController before_filter :find_client, :except => [:index, :create, :new] def index @clients = Client.all end def create client = Client.create(params[:client]) if client.save redirect_to client else render "new" end end def...
angeleah/sam
app/controllers/clients_controller.rb
Ruby
apache-2.0
755
/******************************************************************************* * Copyright 2011-2014 Sergey Tarasevich * * 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....
droidranger/xygapp
xyg-library/src/main/java/com/nostra13/universalimageloader/cache/memory/impl/FIFOLimitedMemoryCache.java
Java
apache-2.0
2,778
#!/usr/bin/env python # # Copyright 2016 timercrack # # 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...
timercrack/pydatacoll
pydatacoll/utils/func_container.py
Python
apache-2.0
1,572
/* * Copyright 2012-2014 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...
joansmith/spring-boot
spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/EndpointsPropertiesSampleActuatorApplicationTests.java
Java
apache-2.0
2,902
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace App\DTO\UploadDTO; /** * Description of BillEntryDto * used for bill entry in mysql table * @author niteen */ c...
Vibeosys/RorderWeb
src/DTO/UploadDTO/BillEntryDto.php
PHP
apache-2.0
1,205
import { toLength, toBoolean } from "../utils/native"; import { UNDEFINED } from "../types/primitive-type"; import { executeCallback } from "./array-helpers"; import { assertIsNotNullOrUndefined, assertIsFunction } from "../utils/contracts"; export default function ($target, env, factory) { $target.define("findIndex...
jrsearles/SandBoxr
src/es6/array.find-index.js
JavaScript
apache-2.0
986
package ru.stqa.pft.mantis.model;/* Created by Vrstiv on 23.04.2016 */ import com.google.common.collect.ForwardingSet; import java.util.Collection; import java.util.HashSet; import java.util.Set; public class Users extends ForwardingSet<UserData> { private Set<UserData> delegate; public Users(Collection<Use...
VrStiv/javaForQA_1
mantis-tests/src/test/java/ru/stqa/pft/mantis/model/Users.java
Java
apache-2.0
470
function getTableRpj(){ return 'tb_rpj'; } function dbLoad(){ var db = Ti.Database.open(Ti.App.Properties.getString(DATABASE_FILE)); return db; } function createRpj() { db = dbLoad(); db.execute('CREATE TABLE IF NOT EXISTS ' + getTableRpj() + '( id INTEGER PRIMARY KEY, rpj_id INTEGER, rpj_razao TEX...
lukas-conka/mobile-app
app/assets/database/rpj.js
JavaScript
apache-2.0
1,662
package com.google.api.ads.adwords.jaxws.v201601.express; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for getResponse element declaration. * * <p>T...
gawkermedia/googleads-java-lib
modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201601/express/ExpressBusinessServiceInterfacegetResponse.java
Java
apache-2.0
1,603
/* * Copyright to 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 app...
dreedyman/Rio
rio-lib/src/main/java/org/rioproject/impl/costmodel/GenericCostModel.java
Java
apache-2.0
4,322
/* * 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-waf/src/main/java/com/amazonaws/services/waf/model/PutPermissionPolicyResult.java
Java
apache-2.0
2,365
var ANIMATION_SPEED = 1000, snap = Snap(), els = {}, container, els_map = {}; Snap.load('face.svg', add); function add(fragment) { snap.append(fragment); container = snap.select('g'); container.drag(); setElements(); animateAll(); } function setElements() { els = { lefteye: snap.select('#moon #left-eye'), ...
christabor/etude
11-07-2013/animatey.js
JavaScript
apache-2.0
1,447
import logging from coursedashboards.util.retry import retry from uw_sws.registration import get_active_registrations_by_section from restclients_core.exceptions import DataFailureException from urllib3.exceptions import MaxRetryError logger = logging.getLogger(__name__) @retry(MaxRetryError, tries=5, delay=3, logg...
uw-it-aca/course-dashboards
coursedashboards/dao/registration.py
Python
apache-2.0
633
/* * Copyright 2000-2009 JetBrains s.r.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 agre...
joewalnes/idea-community
java/java-impl/src/com/intellij/psi/impl/source/JavaFileElementType.java
Java
apache-2.0
4,357
# # Copyright 2018 Analytics Zoo 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...
intel-analytics/analytics-zoo
pyzoo/zoo/orca/learn/horovod/__init__.py
Python
apache-2.0
640
package com.xtrordinary.phantomspace; import com.badlogic.gdx.graphics.Texture; public class Player { int X; int Y; int Speed,SpeedMultiplier; Texture texture; Texture animatedTextures[] = new Texture[5]; int numberOfTextures; int CurrentWalk = 1; int DrawableTexture; public int WALK_1 = 1,WALK_2=2,WALK_3=3,...
Junkmen/PhantomSpace
core/src/com/xtrordinary/phantomspace/Player.java
Java
apache-2.0
1,169
import pika auth = 'bunny:bunny' mq_credentials = pika.credentials.PlainCredentials(*auth.split(':')) params = pika.ConnectionParameters( host='bunny-vayu.sbgenomics.com', credentials=mq_credentials, virtual_host='bunny') fp = open('sample/app.json', 'r') sample_json = fp.read() connection =...
rabix/bunny
rabix-integration-testing/backends/mock_backend/mq_send.py
Python
apache-2.0
700
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.config.provision; import com.yahoo.cloud.config.ApplicationIdConfig; /** * A complete, immutable identification of an application instance. * * @author Ulf Lilleengen * @author vegard * @aut...
vespa-engine/vespa
config-provisioning/src/main/java/com/yahoo/config/provision/ApplicationId.java
Java
apache-2.0
6,033
package mb.nabl2.relations.terms; import static mb.nabl2.terms.matching.TermMatch.M; import java.io.Serializable; import java.util.List; import java.util.Map; import java.util.Optional; import org.metaborg.util.functions.PartialFunction1; import org.metaborg.util.tuple.Tuple2; import com.google.common.collect.Immut...
metaborg/nabl
nabl2.solver/src/main/java/mb/nabl2/relations/terms/FunctionTerms.java
Java
apache-2.0
3,247
package org.commcare.graph.view; import androidx.appcompat.app.AppCompatActivity; import android.view.View; import android.webkit.JavascriptInterface; import java.util.TimerTask; /** * Created by jenniferschweers on 5/20/16. * * Interface between Android's GraphView and the JavaScript graphing code. * Its respon...
dimagi/commcare-android
app/src/org/commcare/graph/view/GraphLoader.java
Java
apache-2.0
762
package pl.jalokim.propertiestojson.resolvers.primitives.delegator; import static pl.jalokim.utils.reflection.InvokableReflectionUtils.setValueForField; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import java.util.List; import java.util.Optional; import pl.jalokim.propertiestojson.object.AbstractJsonTy...
mikolajmitura/java-properties-to-json
src/main/java/pl/jalokim/propertiestojson/resolvers/primitives/delegator/PrimitiveJsonTypeDelegatorResolver.java
Java
apache-2.0
2,516
//This module creates a window to show all the pictures in a gallery Ti.include('helper.js'); var Gallery = (function(){ function Gallery(a_navigation_group){ this.gallery_path = Ti.Filesystem.applicationDataDirectory + "/Gallery/"; this.nav_group = a_navigation_group; this.colons_num = 0; this.rows_...
AlessandroSangiuliano/myDiary
Resources/gallery.js
JavaScript
apache-2.0
3,581
/* * Copyright 2018-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...
spring-projects/spring-data-examples
cassandra/example/src/main/java/example/springdata/cassandra/events/User.java
Java
apache-2.0
958
/** * */ package org.vocefiscal.models; import java.io.Serializable; import java.util.ArrayList; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.databind.annotation.JsonSerialize; /** * @author andre * */ @JsonIgnore...
vocefiscal/vocefiscal-android
Code/src/org/vocefiscal/models/Fiscalizacao.java
Java
apache-2.0
7,850
# # 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 not us...
RyanSkraba/beam
sdks/python/apache_beam/metrics/metric_test.py
Python
apache-2.0
5,846
package earthcube.eager.read; import earthcube.eager.util.Format; import earthcube.eager.data.AguData; import java.util.ArrayList; import java.util.HashMap; import com.hp.hpl.jena.ontology.OntModel; import com.hp.hpl.jena.ontology.OntModelSpec; import com.hp.hpl.jena.query.QueryExecution; import com.hp.hp...
narock/earthcube-EAGER
src/main/java/earthcube/eager/read/QueryAguTurtle.java
Java
apache-2.0
9,722
/* * Copyright 2012-2013 Andrea De Cesare * * 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...
andreadec/MusicPlayer-OLD
src/com/andreadec/musicplayer/Playlist.java
Java
apache-2.0
3,896
L.Draw.Marker = L.Draw.Feature.extend({ statics: { TYPE: 'marker' }, options: { icon: new L.Icon.Default(), repeatMode: false, zIndexOffset: 2000, // This should be > than the highest z-index any markers buttonIconClass: 'leaflet-mouse-marker', type: 'marker'...
IITDU-Spartans/IITDU.SIUSC
FarmerBazaarClient/bower_components/Leaflet.draw-master/src/draw/handler/Draw.Marker.js
JavaScript
apache-2.0
3,241
package org.ovirt.optimizer.service.problemspace; import org.optaplanner.core.impl.domain.variable.listener.VariableListener; import org.optaplanner.core.impl.score.director.ScoreDirector; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class MigrationStepChangeListener implements VariableListener<Mig...
eayun/EayunOS-optimizer
ovirt-optimizer-core/src/main/java/org/ovirt/optimizer/service/problemspace/MigrationStepChangeListener.java
Java
apache-2.0
2,662
using Shared.Dtos.Paintings; using Shared.Dtos.Users; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Shared.Services.Galleries { public class PhotoThumbnailInfoProvider { private static Dictionary<Type, PhotoThumbnailInfo> ...
MurielSoftware/MyArt
Shared/Services/Galleries/PhotoThumbnailInfoProvider.cs
C#
apache-2.0
1,110
package com.linchaolong.apktoolplus.utils; import java.io.BufferedReader; import java.io.File; import java.io.InputStreamReader; /** * 命令行工具 * 注意:在Windows下执行批处理不能省略后缀,但exe可以 示例: if(OSUtils.isWindows()){ CmdUtils.exec("ant.bat compile -f "+buildFile.getAbsolutePath()); }else{ CmdUtils.exe...
linchaolong/ApkToolPlus
lib.Utils/src/com/linchaolong/apktoolplus/utils/CmdUtils.java
Java
apache-2.0
4,157
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
googleapis/nodejs-service-management
samples/generated/v1/service_manager.create_service.js
JavaScript
apache-2.0
1,829
package de.hpi.bp2013n1.anonymizer; /* * #%L * Anonymizer * %% * Copyright (C) 2013 - 2014 HPI-BP2013N1 * %% * 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.apac...
HPI-BP2013N1/anonymizer
Anonymizer/src/test/java/de/hpi/bp2013n1/anonymizer/ForeignKeyDeletionsByConfigRuleTest.java
Java
apache-2.0
2,087
package in import ( "errors" "io/ioutil" "os" "path" "path/filepath" "github.com/cloudfoundry/gunk/urljoiner" "github.com/concourse/s3-resource" "github.com/concourse/s3-resource/versions" ) type RequestURLProvider struct { s3Client s3resource.S3Client } func (up *RequestURLProvider) GetURL(request InReque...
pivotal-cf-experimental/s3-resource
in/in_command.go
GO
apache-2.0
4,980
package com.mod_snmp.SmiTools.Generators.Tree; /* Copyright 2000-2013 Harrie Hazewinkel. All rights reserved.*/ import com.mod_snmp.SmiParser.SyntaxTree.NodeList; import com.mod_snmp.SmiTools.Generators.Common.GeneratorInterface; import com.mod_snmp.SmiTools.Generators.Generator; import net.lisanza.CliArgs.ArgsExcepti...
hhazewinkel/smi4j
smitranslator/src/main/java/com/mod_snmp/SmiTools/Generators/Tree/TreeGenerator.java
Java
apache-2.0
1,108