code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System.ComponentModel;
namespace Lokad.Cloud.Storage.Shared.Policies
{
/// <summary>
/// Helper class for creating fluent APIs, that hides u... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Policies/Syntax.cs | C# | bsd | 3,288 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
namespace Lokad.Cloud.Storage.Shared.Policies
{
/// <summary> This delegate represents <em>catch</em> block.</summary>
/// <param na... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Policies/ExceptionHandler.cs | C# | bsd | 491 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
namespace Lokad.Cloud.Storage.Shared.Policies
{
sealed class RetryStateWithCount : IRetryState
{
int _errorCount;
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Policies/RetryStateWithCount.cs | C# | bsd | 900 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
namespace Lokad.Cloud.Storage.Shared.Policies
{
sealed class RetryState : IRetryState
{
readonly Action<Exception> _onRetry... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Policies/RetryState.cs | C# | bsd | 572 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
using System.IO;
namespace Lokad.Cloud.Storage.Shared
{
/// <summary>
/// Generic data serializer interface.
/// </summary>
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/IDataSerializer.cs | C# | bsd | 1,011 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System.Diagnostics;
using System.Linq;
using System.Threading;
namespace Lokad.Cloud.Storage.Shared.Diagnostics
{
/// <summary> <para>
/// C... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Diagnostics/ExecutionCounter.cs | C# | bsd | 5,095 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Xml.Serialization;
// CAUTION: do n... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Diagnostics/Persistence/ExecutionData.cs | C# | bsd | 2,016 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System.Linq;
using Lokad.Cloud.Storage.Shared.Diagnostics;
namespace Lokad.Diagnostics.Persist
{
/// <summary>
/// Helper extensions for co... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Diagnostics/Persistence/ConvertionExtensions.cs | C# | bsd | 1,807 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lokad.Cloud.Storage.Shared.Diagnostics
{
/// <summary>... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Diagnostics/ExceptionCounters.cs | C# | bsd | 1,929 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
namespace Lokad.Cloud.Storage.Shared.Diagnostics
{
/// <summary>
/// Statistics about some execution counter
/// </summary>
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Diagnostics/ExecutionStatistics.cs | C# | bsd | 2,622 |
#region Copyright (c) Lokad 2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
namespace Lokad.Cloud.Storage
{
/// <summary>Abstraction for the Table Storage.</summary>
/// <remarks>This pro... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Tables/ITableStorageProvider.cs | C# | bsd | 8,612 |
#region Copyright (c) Lokad 2009-2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
// ReSharper disable UnusedMember.Global
// ReSharper disable UnusedMethodReturnValue.Global
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Tables/TableStorageExtensions.cs | C# | bsd | 3,493 |
#region Copyright (c) Lokad 2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
namespace Lokad.Cloud.Storage
{
/// <summary>Entity to be stored by the <see cref="ITableStorageProvider"/>.</summary>
/// <typeparam name="T">Typ... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Tables/CloudEntity.cs | C# | bsd | 1,182 |
#region Copyright (c) Lokad 2010-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Lokad.Cloud.Storage
{
/// <summary>Strong-... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Tables/CloudTable.cs | C# | bsd | 4,844 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.IO.Compression;
using System.Reflection;
using System.Runtime.Serialization;
using System.IO;
using System.Linq;
using System.Xml;
usin... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/CloudFormatter.cs | C# | bsd | 3,994 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
namespace Lokad.Cloud.Storage
{
public class CloudStorageProviders
{
/// <summary>Abstracts the Blob Storage.</summary>
public IBlobStorageP... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/CloudStorageProviders.cs | C# | bsd | 1,863 |
#region Copyright (c) Lokad 2009-2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Properties/AssemblyInfo.cs | C# | bsd | 839 |
#region Copyright (c) Lokad 2010-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.ComponentModel;
using System.Net;
using Lokad.Cloud.Storage.Shared;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.StorageCli... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/CloudStorage.cs | C# | bsd | 7,094 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Reflection;
using System.Security.Cryptography;
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Azure/BlobStorageProvider.cs | C# | bsd | 36,425 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Runtime.Serialization;
namespace Lokad.Cloud.Storage.Azure
{
/// <summary>
/// Exception indicating that received data has been dete... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Azure/DataCorruptionException.cs | C# | bsd | 812 |
#region Copyright (c) Lokad 2010-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Data.Services.Client;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Web... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Azure/TableStorageProvider.cs | C# | bsd | 30,326 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Xml.Linq;
using Lokad.Cloud.St... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Azure/QueueStorageProvider.cs | C# | bsd | 40,416 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Linq;
using System.Data.Services.Client;
using System.Net;
using System.Text.RegularExpressions;
using System.Threading;
using Lokad.Clo... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Azure/AzurePolicies.cs | C# | bsd | 13,683 |
#region Copyright (c) Lokad 2010-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Lokad.Cloud.Storage.Shared;
using Microsoft.WindowsAzure.StorageClient;
n... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Azure/FatEntity.cs | C# | bsd | 6,799 |
// compile me with
// csc /out:sample.dll /t:library sample.cs
namespace Lokad.Example
{
public class MyClass
{
public string MyMethod()
{
return "foo";
}
}
} | zyyin2005-lokadclone | Test/Lokad.Cloud.Framework.Test/Sample/sample.cs | C# | bsd | 181 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Lokad.Cloud.Shared.Test
{
/// <summary>
/// Helper class with shortcut methods for managing enumerations.
/// Useful for inlining object generation in tests
/// </summary>
public static class Range
{
... | zyyin2005-lokadclone | Test/Lokad.Cloud.Framework.Test/Shared/Range.cs | C# | bsd | 4,978 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zyyin2005-lokadclone | Test/Lokad.Cloud.Framework.Test/Properties/AssemblyInfo.cs | C# | bsd | 1,478 |
#region Copyright (c) Lokad 2009-2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Autofac;
using Autofac.Configuration;
namespace Lokad.Cloud.Test
{
public sealed class GlobalSetup
{
static IContainer _container;
... | zyyin2005-lokadclone | Test/Lokad.Cloud.Framework.Test/GlobalSetup.cs | C# | bsd | 829 |
#region Copyright (c) Lokad 2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Runtime.Serialization;
using Lokad.Cloud.Storage;
namespace SimpleBlob
{
[DataContract]
class Book
{
[DataMember]
... | zyyin2005-lokadclone | Samples/Source/SimpleBlob/Program.cs | C# | bsd | 2,263 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zyyin2005-lokadclone | Samples/Source/SimpleBlob/Properties/AssemblyInfo.cs | C# | bsd | 1,450 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using Lokad.Cloud.ServiceFabric;
namespace IoCforService
{
/// <summary>Sample service is IoC populated property.</summary>
public class MyService : Sc... | zyyin2005-lokadclone | Samples/Source/IoCforService/MyService.cs | C# | bsd | 621 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Lokad;
namespace IoCforService
{
/// <summary>Sample provider, registered though Autofac module.</summary>
public class MyProvider
{
public MyProv... | zyyin2005-lokadclone | Samples/Source/IoCforService/MyProvider.cs | C# | bsd | 497 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Autofac;
using Autofac.Builder;
namespace IoCforService
{
public class MyModule : Module
{
protected override void Load(ContainerBuilder builder)
{
... | zyyin2005-lokadclone | Samples/Source/IoCforService/MyModule.cs | C# | bsd | 441 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zyyin2005-lokadclone | Samples/Source/IoCforService/Properties/AssemblyInfo.cs | C# | bsd | 1,438 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using Lokad.Cloud.ServiceFabric;
namespace Lokad.Cloud.Samples.MapReduce
{
/// <summary>Implements a map/reduce service.</summary>
/// <seealso cref="M... | zyyin2005-lokadclone | Samples/Source/MapReduce/MapReduceService/MapReduceService.cs | C# | bsd | 1,327 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using Lokad.Cloud.Storage;
namespace Lokad.Cloud.Samples.MapReduce
{
/// <summary>Entry point... | zyyin2005-lokadclone | Samples/Source/MapReduce/MapReduceService/MapReduceJob.cs | C# | bsd | 5,000 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lokad.Cloud.Samples.MapReduce
{
/// <summary>Contains information a... | zyyin2005-lokadclone | Samples/Source/MapReduce/MapReduceService/JobMessage.cs | C# | bsd | 1,044 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lokad.Cloud.Samples.MapReduce
{
/// <summary>
/// Defines the interface for a class that implements map/reduce functions.
/// </summary>
/// <remarks>Classes implementing this interface must have a paramete... | zyyin2005-lokadclone | Samples/Source/MapReduce/MapReduceService/IMapReduceFunctions.cs | C# | bsd | 791 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zyyin2005-lokadclone | Samples/Source/MapReduce/MapReduceService/Properties/AssemblyInfo.cs | C# | bsd | 1,489 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using Lokad.Cloud.Storage;
namespace Lokad.Cloud.Samples.MapReduce
{
/// <summary>Manages sets of blobs for map/r... | zyyin2005-lokadclone | Samples/Source/MapReduce/MapReduceService/MapReduceBlobSet.cs | C# | bsd | 17,772 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using Lokad.Cloud.Samples.MapReduce;
using System.IO;
using System.Drawing.Imaging;
namespace Lokad.Cloud.Samples.MapReduce
{
/// <summary>Implements helper methods.</summary>
public static clas... | zyyin2005-lokadclone | Samples/Source/MapReduce/MapReduceClientLib/Helpers.cs | C# | bsd | 3,828 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lokad.Cloud.Samples.MapReduce
{
/// <summary>
/// Implements map/reduce functions for the Histogram sample.
/// </summary>
public class HistogramMapReduceFunctions : IMapReduceFunctions
{
public object... | zyyin2005-lokadclone | Samples/Source/MapReduce/MapReduceClientLib/HistogramMapReduceFunctions.cs | C# | bsd | 532 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
namespace Lokad.Cloud.Samples.MapReduce
{
... | zyyin2005-lokadclone | Samples/Source/MapReduce/MapReduceClientLib/Histogram.cs | C# | bsd | 1,404 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zyyin2005-lokadclone | Samples/Source/MapReduce/MapReduceClientLib/Properties/AssemblyInfo.cs | C# | bsd | 1,475 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Windows.Forms;
namespace Lokad.Cloud.Samples.MapReduce
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Applic... | zyyin2005-lokadclone | Samples/Source/MapReduce/MapReduceClient/Program.cs | C# | bsd | 458 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using Lokad.Cloud.Storage;
namespace Lokad.Cloud.Samples.MapReduce
{
public ... | zyyin2005-lokadclone | Samples/Source/MapReduce/MapReduceClient/MainForm.cs | C# | bsd | 3,262 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zyyin2005-lokadclone | Samples/Source/MapReduce/MapReduceClient/Properties/AssemblyInfo.cs | C# | bsd | 1,467 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using Lokad.Cloud.Storage;
using PingPongClient.Properties;
namespace PingPongClient
{
class Program
{
static void Main(string[] args)
{
var... | zyyin2005-lokadclone | Samples/Source/PingPong/PingPongClient/Program.cs | C# | bsd | 1,102 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zyyin2005-lokadclone | Samples/Source/PingPong/PingPongClient/Properties/AssemblyInfo.cs | C# | bsd | 1,474 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Lokad.Cloud.ServiceFabric;
namespace PingPong
{
/// <summary>Retrieving messages from 'ping' and put them in 'pong'.</summary>
[QueueServiceSettings(AutoStart =... | zyyin2005-lokadclone | Samples/Source/PingPong/PingPongService/PingPong.cs | C# | bsd | 666 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zyyin2005-lokadclone | Samples/Source/PingPong/PingPongService/Properties/AssemblyInfo.cs | C# | bsd | 1,476 |
#region Copyright (c) Lokad 2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Runtime.Serialization;
using Lokad.Cloud.Storage;
namespace SimpleTable
{
[DataContract]
class Book
{
[DataMember]
... | zyyin2005-lokadclone | Samples/Source/SimpleTable/Program.cs | C# | bsd | 1,875 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zyyin2005-lokadclone | Samples/Source/SimpleTable/Properties/AssemblyInfo.cs | C# | bsd | 1,448 |
<html>
<head></head>
<body>
Dear ${firstName} ${lastName},
<br/>You new password is : ${newPassword}
<br/>Please reset it when you login!
<br/>
<br/>
<br/> Thank you.
<br/> Best Regards.
<br/><a href="###" >${appName}</a>
<br/><a href="${appUrl}" >${appUrl}</a>
<br/> ${todayDate}
</body>
<... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/resource/emailTemplate/forgotPassword.ftl | Fluent | gpl3 | 332 |
package com.infindo.appcreate.zzyj.controller.scheduler;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/controller/scheduler/SchedulerManager.java | Java | gpl3 | 46,138 |
package com.infindo.appcreate.zzyj.controller.mobi;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import net.sf.json.JSONObject;
import org.apache.cxf.... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/controller/mobi/ZzyjSpiderController.java | Java | gpl3 | 16,281 |
package com.infindo.appcreate.zzyj.controller.mobi;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.apache.log4j.Logger;
import org.hibernat... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/controller/mobi/UserController.java | Java | gpl3 | 5,262 |
package com.infindo.appcreate.zzyj.httpclient;
import org.apache.commons.httpclient.HttpException;
import java.io.IOException;
import java.net.UnknownHostException;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpConnectionManager;
import org.apache.commons.httpclient... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/httpclient/HttpProtocolHandler.java | Java | gpl3 | 7,999 |
package com.infindo.appcreate.zzyj.httpclient;
import java.io.UnsupportedEncodingException;
import org.apache.commons.httpclient.Header;
public class HttpResponse {
/**
* 返回中的Header信息
*/
private Header[] responseHeaders;
/**
* String类型的result
*/
private String st... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/httpclient/HttpResponse.java | Java | gpl3 | 1,380 |
package com.infindo.appcreate.zzyj.httpclient;
import org.apache.commons.httpclient.NameValuePair;
public class HttpRequest {
/** HTTP GET method */
public static final String METHOD_GET = "GET";
/** HTTP POST method */
public static final String METHOD_POST = "POST";
... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/httpclient/HttpRequest.java | Java | gpl3 | 3,116 |
package com.infindo.appcreate.zzyj.httpclient;
public enum HttpResultType {
STRING,BYTES
}
| zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/httpclient/HttpResultType.java | Java | gpl3 | 101 |
package com.infindo.appcreate.zzyj.service;
import java.io.File;
public class EmailSenderImpl extends EmailServiceImpl implements EmailSender {
private String supportEmail;
@Override
public void updateMailSender() {
}
public String getSupportEmail() {
return supportEmail;
}
public void se... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/service/EmailSenderImpl.java | Java | gpl3 | 625 |
package com.infindo.appcreate.zzyj.service;
import com.infindo.appcreate.zzyj.entity.SysUser;
public interface UserService {
SysUser update(String email);
}
| zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/service/UserService.java | Java | gpl3 | 173 |
package com.infindo.appcreate.zzyj.service;
import java.io.File;
import java.io.UnsupportedEncodingException;
import java.util.Properties;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import javax.mail.MessagingException;
import javax.mail.internet.MimeMessage;
import org.s... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/service/EmailServiceImpl.java | Java | gpl3 | 3,501 |
package com.infindo.appcreate.zzyj.service;
import java.io.File;
public interface EmailSender extends EmailService {
public void sendSupportMail(String replyTo, String subject, String content,
File[] attachments);
}
| zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/service/EmailSender.java | Java | gpl3 | 234 |
package com.infindo.appcreate.zzyj.service;
import java.io.File;
public interface EmailService {
public abstract void sendTextMail(String as[], String s, String s1,
String s2);
public abstract void sendMimeMail(String as[], String s, String s1,
String s2, File afile[]);
}
| zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/service/EmailService.java | Java | gpl3 | 297 |
package com.infindo.appcreate.zzyj.service;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.infindo.appcreate.zzyj.dao.UserDao;
import com.infindo.appcreate.zzyj.entity.SysUser;
@Service
public class UserServiceImpl implements UserService {
@Resource
UserD... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/service/UserServiceImpl.java | Java | gpl3 | 491 |
package com.infindo.appcreate.zzyj.service;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Locale;
import javax.servlet.http.HttpServletRequest;
import org.hibernate.LockMode;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criter... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/service/ZzyjSpiderServiceImpl.java | Java | gpl3 | 9,771 |
package com.infindo.appcreate.zzyj.service;
import java.util.List;
import com.infindo.appcreate.zzyj.entity.Activity;
import com.infindo.appcreate.zzyj.entity.ActivityTalk;
import com.infindo.appcreate.zzyj.entity.Expert;
import com.infindo.appcreate.zzyj.entity.ExpertProject;
import com.infindo.appcreate.zzy... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/service/ZzyjSpiderService.java | Java | gpl3 | 2,027 |
package com.infindo.appcreate.zzyj.service;
import java.util.HashSet;
import java.util.Set;
import org.springframework.dao.DataAccessException;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/service/UserDetailsServiceImpl.java | Java | gpl3 | 1,436 |
package com.infindo.appcreate.zzyj.util;
import java.util.Random;
public class RandomUtil {
private static final String[] l = {
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
"k", "l", "m", "n", "o", "p", "q", "r", "s", "t",
"u", "v", "w", "x", ... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/util/RandomUtil.java | Java | gpl3 | 1,840 |
package com.infindo.appcreate.zzyj.util;
public class TimerUtil {
long start;
long end;
public void start() {
start = System.nanoTime();
}
public void stop() {
end = System.nanoTime();
}
public double getTime() {
long time = this.end - this.start;
double t = ((double) time) / 1000000000;
return t;
... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/util/TimerUtil.java | Java | gpl3 | 325 |
package com.infindo.appcreate.zzyj.util;
public class Constant {
public static String IOS_APP_BUILD_DIR = null;
public static final String PATH_UPLOAD = "uploads";
public static String SYSTEM_ROOT_PATH;
public static String CONTENT_PATH;
//android apk
public static final String PUSH_SERVER... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/util/Constant.java | Java | gpl3 | 1,468 |
package com.infindo.appcreate.zzyj.util;
public enum ThreadGroupEnum {
zip,build
}
| zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/util/ThreadGroupEnum.java | Java | gpl3 | 90 |
package com.infindo.appcreate.zzyj.util;
public class UserInfoUtil {
public static Object getCurrentUser() {
return null;
}
// public static UserInfoService userInfoService;
// public static UserInfo getCurrentUser()
// {
// if (SecurityContextHolder.getContext().getAuthentication() == null)
/... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/util/UserInfoUtil.java | Java | gpl3 | 711 |
package com.infindo.appcreate.zzyj.util;
public class PaginationSupport {
}
| zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/util/PaginationSupport.java | Java | gpl3 | 83 |
package com.infindo.appcreate.zzyj.util;
import java.util.Random;
import org.apache.commons.lang3.StringUtils;
public class StringUtil extends StringUtils {
private static Random randGen = null;
private static char[] numbersAndLetters = null;
private static Object initLock = new Object();
public s... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/util/StringUtil.java | Java | gpl3 | 1,365 |
package com.infindo.appcreate.zzyj.util;
import java.util.Enumeration;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
public class RequestObserver {
public static void observe(HttpServletRequest request) {
String name, pvalue;
Object avalue;
Enumeration enum1... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/util/RequestObserver.java | Java | gpl3 | 1,933 |
package com.infindo.appcreate.zzyj.util;
import org.apache.log4j.Logger;
import org.apache.tools.ant.BuildEvent;
import org.apache.tools.ant.BuildListener;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;
public class Log4jListener implements BuildListener {
Logger log = null;
... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/util/Log4jListener.java | Java | gpl3 | 3,333 |
package com.infindo.appcreate.zzyj.util;
import java.util.List;
import java.util.Map;
public class ACConstant {
public static final String PLATFORM_NAME_IOS = "iOS";
public static final String PLATFORM_NAME_ANDROID = "Android";
public static final String PLATFORM_DEFAULT = PLATFORM_NAME_IO... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/util/ACConstant.java | Java | gpl3 | 9,577 |
package com.infindo.appcreate.zzyj.util;
import org.apache.commons.lang3.StringUtils;
import org.im4java.core.ConvertCmd;
import org.im4java.core.IMOperation;
import org.im4java.process.StandardStream;
public class ImageUtil extends StringUtils {
public static String ScaleImage(String folder, String srcFil... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/util/ImageUtil.java | Java | gpl3 | 897 |
package com.infindo.appcreate.zzyj.util;
import java.io.File;
import java.io.InputStream;
import java.util.Properties;
import org.apache.commons.lang3.StringUtils;
public class FileUtil {
public static boolean removeFile(String path) {
File file = new File(path);
boolean result = false;
if (fi... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/util/FileUtil.java | Java | gpl3 | 1,339 |
package com.infindo.appcreate.zzyj.util;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
public class OneUrlConnction {
public static OneUrlConnction oneUrlConnction = null;
private HttpURLConnection urlConnection= null;
private OneUrlConnction() {}
... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/util/OneUrlConnction.java | Java | gpl3 | 1,779 |
package com.infindo.appcreate.zzyj.util;
import java.text.DateFormatSymbols;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class DateTimeUtil {
private static final String[] MONTHS = { "Jan", "Feb", "Mar", "Apr", "May",
"Jun", "Jul", "Aug", "Sep", "Oct", "N... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/util/DateTimeUtil.java | Java | gpl3 | 2,655 |
package com.infindo.appcreate.zzyj.util;
import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.List;
import org.im4java.core.ConvertCmd;
public class ForWinConvertCmd extends ConvertCmd {
public ForWinConvertCmd() {
initForWin();
}
public ForWinConvertCmd(boolean useGM) {
... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/util/ForWinConvertCmd.java | Java | gpl3 | 779 |
package com.infindo.appcreate.zzyj.vo;
public class BuildCallBackVo implements java.io.Serializable {
private static final long serialVersionUID = 5933924538834844385L;
private Long appId;
private String pcode;
private String result;
private String msg;
private String zipUrl;
private String binaUrl;... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/vo/BuildCallBackVo.java | Java | gpl3 | 1,038 |
package com.infindo.appcreate.zzyj.vo;
import java.util.List;
public class CarVo implements java.io.Serializable {
private static final long serialVersionUID = -7410472659802063569L;
private Long id;
private Long pid;
private String name;
private Integer imageWidth;
private Integer imageNum;
private... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/vo/CarVo.java | Java | gpl3 | 1,094 |
package com.infindo.appcreate.zzyj.vo;
import java.util.Date;
public class BuildRequestVo implements java.io.Serializable {
private static final long serialVersionUID = 4629413423561483666L;
private Long id;
private Long appId;
private String appName;
private String appNamespace;
private String appVer... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/vo/BuildRequestVo.java | Java | gpl3 | 2,007 |
package com.infindo.appcreate.zzyj.servlet;
import java.util.Locale;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
public class SpringUtil implements ApplicationContextAware {
public static... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/servlet/SpringUtil.java | Java | gpl3 | 1,028 |
package com.infindo.appcreate.zzyj.servlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
impor... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/servlet/AccessControlInterceptor.java | Java | gpl3 | 3,608 |
package com.infindo.appcreate.zzyj.servlet;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.view.json.MappingJacksonJsonView;
public class MappingJacksonJsonpView extends MappingJacksonJsonView {
p... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/servlet/MappingJacksonJsonpView.java | Java | gpl3 | 1,223 |
package com.infindo.appcreate.zzyj.servlet;
public class AppConfig {
private static AppConfig appConfig = null;
private String resDownload;
private String callBack;
private String workDirName;
private String iosSrcDir;
private String iosDownload;
private String io... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/servlet/AppConfig.java | Java | gpl3 | 2,395 |
package com.infindo.appcreate.zzyj.servlet;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServ... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/servlet/SingleFileUploader.java | Java | gpl3 | 3,533 |
package com.infindo.appcreate.zzyj.servlet;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import java.util.Properties;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletC... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/servlet/SysListener.java | Java | gpl3 | 2,275 |
package com.infindo.appcreate.zzyj.servlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframew... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/servlet/ExceptionHandler.java | Java | gpl3 | 1,263 |
package com.infindo.appcreate.zzyj.hibernet;
import java.sql.Types;
import java.util.Properties;
import org.hibernate.cfg.reveng.DelegatingReverseEngineeringStrategy;
import org.hibernate.cfg.reveng.ReverseEngineeringStrategy;
import org.hibernate.cfg.reveng.TableIdentifier;
/**
* This class customizes th... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/hibernet/CustomReverseEngineeringStrategy.java | Java | gpl3 | 2,938 |
package com.infindo.appcreate.zzyj.hibernet;
import java.util.Properties;
import org.hibernate.mapping.KeyValue;
import org.hibernate.mapping.PersistentClass;
import org.hibernate.mapping.SimpleValue;
import org.hibernate.tool.hbm2x.Cfg2JavaTool;
import org.hibernate.tool.hbm2x.pojo.EntityPOJOClass;
/**
... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/hibernet/CustomEntityPojoClass.java | Java | gpl3 | 2,548 |
package com.infindo.appcreate.zzyj.dao;
import org.springframework.stereotype.Repository;
import com.infindo.appcreate.zzyj.entity.SysUser;
@Repository
public class UserDaoImpl extends GenericHibernateDao<SysUser, Long> implements
UserDao {
}
| zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/dao/UserDaoImpl.java | Java | gpl3 | 260 |
package com.infindo.appcreate.zzyj.dao;
import java.io.Serializable;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.LockMode;
import org.hibernate.criterion.DetachedCriteria;
public interface GenericDao<T extends Serializa... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/dao/GenericDao.java | Java | gpl3 | 4,574 |
package com.infindo.appcreate.zzyj.dao;
import java.io.Serializable;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.beanutils.PropertyUtils;
import org.hibernate.Criteria;
im... | zzyj-mobi | trunk/ zzyj-mobi --username aaronchen2k@gmail.com/zzyj-mobi/src/com/infindo/appcreate/zzyj/dao/GenericHibernateDao.java | Java | gpl3 | 9,824 |