text
stringlengths 2
1.04M
| meta
dict |
|---|---|
package com.scavi.brainsqueeze.career;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
public class Robot {
private final Map<Character, Integer> _alphabet;
public Robot(final Map<Character, Integer> alphabet) {
_alphabet = alphabet;
}
public List<String> moveRobot(final String message) {
List<String> actions = new ArrayList<>(message.length() * 2);
int currentPos = 0;
for (char currentChar : message.toCharArray()) {
if (!_alphabet.containsKey(currentChar)) {
throw new IllegalArgumentException(
"Unknown character: " + currentChar);
}
int targetPos = _alphabet.get(currentChar);
String move;
// move right
if (targetPos > currentPos) {
move = String.format("%s%d", Actions.R, (targetPos - currentPos));
}
// move left
else {
move = String.format("%s%d", Actions.L, (currentPos - targetPos));
}
currentPos = targetPos;
actions.add(move);
actions.add(Actions.T.toString());
}
return actions;
}
private enum Actions {
R, L, T
}
}
|
{
"content_hash": "1f244ab5bdc8667f02340a6a03868358",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 82,
"avg_line_length": 27.21276595744681,
"alnum_prop": 0.5480844409695075,
"repo_name": "Scavi/BrainSqueeze",
"id": "9ce95d2142f1992149a88f1b9a43551e6771eca2",
"size": "1279",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/com/scavi/brainsqueeze/career/Robot.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "1491081"
}
],
"symlink_target": ""
}
|
/*
* Copyleft 2015
* and other contributors as indicated by the @author tags.
*
* 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 License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jam.metrics;
import java.io.IOException;
import java.io.PrintWriter;
import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.jam.metrics.applicationmetricsapi.MetricsCacheApi;
import org.jam.metrics.applicationmetricsapi.MetricsPropertiesApi;
import org.jam.metrics.applicationmetricsproperties.MetricProperties;
/**
*
* @author Panagiotis Sotiropoulos
*/
public class PrintMetrics extends HttpServlet {
/**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@EJB
private MetricsApiSessionBean metricsApiSessionBean;
private String groupName = "myTestGroup";
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
initializeMetricProperties();
try (PrintWriter out = response.getWriter()) {
out.println("<!DOCTYPE html>");
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet PrintMetrics</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Servlet PrintMetrics : </h1>");
metricsApiSessionBean.countMethod();
out.println(MetricsCacheApi.printMetricsCache(groupName));
out.println("<br>Successful Run ...</br>");
out.println("</body>");
out.println("</html>");
}
}
private void initializeMetricProperties() {
MetricProperties metricProperties = new MetricProperties();
metricProperties.setHawkularMonitoring("true");
metricProperties.setCacheStore("true");
// metricProperties.setRhqServerUrl("lz-panos-jon33.bc.jonqe.lab.eng.bos.redhat.com");
metricProperties.setHawkularTenant("hawkular");
MetricsPropertiesApi.storeProperties(groupName, metricProperties);
}
// <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
/**
* Handles the HTTP <code>GET</code> method.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
}
/**
* Handles the HTTP <code>POST</code> method.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
}
/**
* Returns a short description of the servlet.
*
* @return a String containing servlet description
*/
@Override
public String getServletInfo() {
return "Short description";
}// </editor-fold>
}
|
{
"content_hash": "7b7db20a0d86a9b53472c472becb9f88",
"timestamp": "",
"source": "github",
"line_count": 118,
"max_line_length": 123,
"avg_line_length": 36.32203389830509,
"alnum_prop": 0.6817545496966869,
"repo_name": "panossot/jam-metrics",
"id": "8bddbdca86f26aeb27597b63f074371008426713",
"size": "4286",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "ApplicationMetricsStandalone/ApplicationMetricsApiTest13/ApplicationMetricsApiTest13-web/src/main/java/org/jam/metrics/PrintMetrics.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "8934"
},
{
"name": "Java",
"bytes": "996910"
}
],
"symlink_target": ""
}
|
tycho-p2-example
================
Example for a p2 repository built using [Tycho](http://www.eclipse.org/tycho/).
It has an empty feature and just the bare minimum of configuration to get a p2
repository.
|
{
"content_hash": "093507cdf42cca9a3a71bdeb18ba2164",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 79,
"avg_line_length": 34.333333333333336,
"alnum_prop": 0.7135922330097088,
"repo_name": "robinst/tycho-p2-example",
"id": "69a0aff558b807baff3bd3b232292896f5a9db91",
"size": "206",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
<?xml version= "1.0" encoding ="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/pay_logo_mes_hover" android:state_checked="true"></item>
<item android:drawable="@drawable/pay_logo_mes" android:state_checked="false"></item>
</selector>
|
{
"content_hash": "0835c10712a7fef6459d2594ddc3cfb3",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 94,
"avg_line_length": 45,
"alnum_prop": 0.6984126984126984,
"repo_name": "l1fan/GameAne",
"id": "d04df9b4f3dab42994821e698eb012c5c2cb33dd",
"size": "315",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "sdks/kaopu/res/drawable/pay_logoview_msg_selector.xml",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "ActionScript",
"bytes": "5322"
},
{
"name": "Batchfile",
"bytes": "216"
},
{
"name": "CSS",
"bytes": "17478"
},
{
"name": "HTML",
"bytes": "118872"
},
{
"name": "Java",
"bytes": "180464"
},
{
"name": "Objective-C",
"bytes": "152626"
},
{
"name": "Shell",
"bytes": "529"
}
],
"symlink_target": ""
}
|
<meta charset="utf-8" />
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta content='width=device-width, initial-scale=1.0' name='viewport'/>
<meta name="msvalidate.01" content="C41371E1ABEAE7BCC0EE15AF51B82D47" />
<link rel="canonical" href="{{ site.url }}{{ page.url }}" />
{% if page.amplink %}
<link rel="amphtml" href="{{ site.url }}{{ page.amplink }}" />
{% endif %}
{% if site.facebook_app %}
<meta property="fb:app_id" content="{{ site.facebook_app }}" />
{% endif %}
<meta property="fb:pages" content="490845634411991" />
<meta name="twitter:card" content="summary" />
{% if site.footer-links.twitter %}
<meta name="twitter:site" content="@{{ site.footer-links.twitter }}" />
{% endif %}
{% if page.description %}
<meta name="description" content="{{ page.description }}" />
<meta property="og:description" content="{{ page.description }}" />
<meta name="twitter:description" content="{{ page.description }}" />
{% elsif page.excerpt %}
<meta name="description" content="{{ page.excerpt| strip_html }}" />
<meta property="og:description" content="{{ page.excerpt| strip_html }}" />
<meta name="twitter:description" content="{{ page.excerpt| strip_html }}" />
{% else %}
<meta name="description" content="{{ site.description }}">
<meta property="og:description" content="{{ site.description }}" />
<meta name="twitter:description" content="{{ site.description }}" />
{% endif %}
{% if page.keywords %}
<meta name="keywords" content="{{ page.keywords }}" />
{% else %}
<meta name="keywords" content="{{ site.keywords }}" />
{% endif %}
{% if page.author %}
<meta name="author" content="{{ page.author.url }}" />
{% else %}
<meta name="author" content="{{ site.name }}" />
{% endif %}
{% if page.title %}
<meta property="og:title" content="{{ page.title }}" />
<meta name="twitter:title" content="{{ page.title }}" />
{% endif %}
{% if page.ogimg %}
<meta property="og:image" content="{{ site.url }}{{ page.ogimg }}" />
<meta name="twitter:image" content="{{ site.url }}{{ page.ogimg }}" />
{% endif %}
{% if site.name %}
<meta property="og:site_name" content="{{ site.name }}" />
{% endif %}
<meta property="og:url" content="{{ site.url }}{{ page.url }}" />
<meta property="og:type" content="article" />
|
{
"content_hash": "714992f6368b62215d6c4cb558cb15fb",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 80,
"avg_line_length": 38.5,
"alnum_prop": 0.5785123966942148,
"repo_name": "horoscopo/horoscopo.github.io",
"id": "6025568225457750c68bb4f4c682f04b9a8b970d",
"size": "2541",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "_includes/meta.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "84178"
},
{
"name": "JavaScript",
"bytes": "4833"
},
{
"name": "SCSS",
"bytes": "223117"
}
],
"symlink_target": ""
}
|
// 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.
#nullable enable
using System.Diagnostics.CodeAnalysis;
using Microsoft.VisualStudio.Editor;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.TextManager.Interop;
namespace Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem
{
/// <summary>
/// Helper extensions for calling into the RDT.
/// These must all be called from the UI thread.
/// </summary>
internal static class RunningDocumentTableExtensions
{
public static bool TryGetBufferFromMoniker(this IVsRunningDocumentTable4 runningDocumentTable,
IVsEditorAdaptersFactoryService editorAdaptersFactoryService,
string moniker, [NotNullWhen(true)] out ITextBuffer? textBuffer)
{
textBuffer = null;
if (!runningDocumentTable.IsFileOpen(moniker))
{
return false;
}
var cookie = runningDocumentTable.GetDocumentCookie(moniker);
if (!runningDocumentTable.IsDocumentInitialized(cookie))
{
return false;
}
return TryGetBuffer(runningDocumentTable, editorAdaptersFactoryService, cookie, out textBuffer);
}
public static bool IsFileOpen(this IVsRunningDocumentTable4 runningDocumentTable, string fileName)
=> runningDocumentTable.IsMonikerValid(fileName);
public static bool TryGetBuffer(this IVsRunningDocumentTable4 runningDocumentTable, IVsEditorAdaptersFactoryService editorAdaptersFactoryService,
uint docCookie, [NotNullWhen(true)] out ITextBuffer? textBuffer)
{
textBuffer = null;
// The cast from dynamic to object doesn't change semantics, but avoids loading the dynamic binder
// which saves us JIT time in this method and an assembly load.
if ((object)runningDocumentTable.GetDocumentData(docCookie) is IVsTextBuffer bufferAdapter)
{
textBuffer = editorAdaptersFactoryService.GetDocumentBuffer(bufferAdapter);
return textBuffer != null;
}
return false;
}
}
}
|
{
"content_hash": "d70261f5821086983a8a8916687e9d8f",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 153,
"avg_line_length": 40.54237288135593,
"alnum_prop": 0.6906354515050167,
"repo_name": "genlu/roslyn",
"id": "4f384590d576087a4852c7090c21e7a84b2afd1e",
"size": "2394",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/VisualStudio/Core/Def/Implementation/ProjectSystem/RunningDocumentTableExtensions.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "1C Enterprise",
"bytes": "257760"
},
{
"name": "Batchfile",
"bytes": "9059"
},
{
"name": "C#",
"bytes": "139228314"
},
{
"name": "C++",
"bytes": "5602"
},
{
"name": "CMake",
"bytes": "9153"
},
{
"name": "Dockerfile",
"bytes": "2450"
},
{
"name": "F#",
"bytes": "549"
},
{
"name": "PowerShell",
"bytes": "242675"
},
{
"name": "Shell",
"bytes": "92965"
},
{
"name": "Visual Basic .NET",
"bytes": "71735255"
}
],
"symlink_target": ""
}
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>VSTGUI: New Stuff in VSTGUI 3.6 and earlier</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxydocu.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<script type="text/javascript">
<!--
function changeDisplayState (e){
var num=this.id.replace(/[^[0-9]/g,'');
var button=this.firstChild;
var sectionDiv=document.getElementById('dynsection'+num);
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
sectionDiv.style.display='block';
button.src='open.gif';
}else{
sectionDiv.style.display='none';
button.src='closed.gif';
}
}
function initDynSections(){
var divs=document.getElementsByTagName('div');
var sectionCounter=1;
for(var i=0;i<divs.length-1;i++){
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
var header=divs[i];
var section=divs[i+1];
var button=header.firstChild;
if (button!='IMG'){
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
button=document.createElement('img');
divs[i].insertBefore(button,divs[i].firstChild);
}
header.style.cursor='pointer';
header.onclick=changeDisplayState;
header.id='dynheader'+sectionCounter;
button.src='closed.gif';
section.id='dynsection'+sectionCounter;
section.style.display='none';
section.style.marginLeft='14px';
sectionCounter++;
}
}
}
window.onload = initDynSections;
-->
</script>
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li class="current"><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="page_news_and_changes.html">New stuff in VSTGUI 4</a>
</div>
</div>
<div class="contents">
<h1><a class="anchor" id="page_previous_new_stuff">New Stuff in <a class="el" href="namespace_v_s_t_g_u_i.html">VSTGUI</a> 3.6 and earlier </a></h1><h2><a class="anchor" id="new_mouse_methods">
New mouse methods</a></h2>
<p>In earlier versions there were only one method in CView for handling mouse events (VSTGUI::CView::mouse). In this version there are five new methods :</p>
<ul>
<li><a class="el" href="class_v_s_t_g_u_i_1_1_c_view.html#af5e4151d575380ad56bf87893631f03d" title="called when a mouse down event occurs">VSTGUI::CView::onMouseDown</a> (new in 3.5)</li>
<li><a class="el" href="class_v_s_t_g_u_i_1_1_c_view.html#a25821e254b2ee5fabdda756c1c301fc0" title="called when a mouse up event occurs">VSTGUI::CView::onMouseUp</a> (new in 3.5)</li>
<li><a class="el" href="class_v_s_t_g_u_i_1_1_c_view.html#ac8855959285a9555faaa8b0313e07027" title="called when a mouse move event occurs">VSTGUI::CView::onMouseMoved</a> (new in 3.5)</li>
<li><a class="el" href="class_v_s_t_g_u_i_1_1_c_view.html#ad9beb560a4e98ce260cc9ec9d2c8063a" title="called when the mouse enters this view">VSTGUI::CView::onMouseEntered</a> (new in 3.5)</li>
<li><a class="el" href="class_v_s_t_g_u_i_1_1_c_view.html#aaf4840c33720f1498739f317d85a8cc4" title="called when the mouse leaves this view">VSTGUI::CView::onMouseExited</a> (new in 3.5)</li>
</ul>
<p>For convenience the old method is still working, but should be replaced with the ones above.</p>
<h2><a class="anchor" id="other_new_things">
Other new things</a></h2>
<ul>
<li><a class="el" href="class_v_s_t_g_u_i_1_1_c_data_browser.html" title="DataBrowser view.">VSTGUI::CDataBrowser</a> (new in 3.5)</li>
<li><a class="el" href="class_v_s_t_g_u_i_1_1_c_scroll_view.html" title="a scrollable container view with scrollbars">VSTGUI::CScrollView</a> (new in 3.0)</li>
<li><a class="el" href="class_v_s_t_g_u_i_1_1_c_tab_view.html" title="a tab view">VSTGUI::CTabView</a> (new in 3.0)</li>
</ul>
<ul>
<li>Mac OS X 64 bit support via Cocoa. (new in 3.6)</li>
<li>New Fileselector class : <a class="el" href="class_v_s_t_g_u_i_1_1_c_new_file_selector.html" title="New file selector class.">VSTGUI::CNewFileSelector</a> (new in 3.6)</li>
<li><a class="el" href="class_v_s_t_g_u_i_1_1_c_option_menu.html" title="a popup menu control">VSTGUI::COptionMenu</a> refactored. Supports icons for menu items. (new in 3.6)</li>
<li>View autoresizing support. (new in 3.6)</li>
<li>Bitmaps can be loaded either by number or by name (see <a class="el" href="class_v_s_t_g_u_i_1_1_c_bitmap.html" title="Encapsulates various platform depended kinds of bitmaps.">VSTGUI::CBitmap</a>) (new in 3.5)</li>
<li><a class="el" href="class_v_s_t_g_u_i_1_1_c_tooltip_support.html" title="Generic Tooltip Support class.">VSTGUI::CTooltipSupport</a> (new in 3.5)</li>
<li><a class="el" href="class_v_s_t_g_u_i_1_1_c_v_s_t_g_u_i_timer.html" title="A timer class, which posts timer messages to CBaseObjects.">VSTGUI::CVSTGUITimer</a> (new in 3.5)</li>
<li>System event driven drawing (new in 3.5)</li>
<li>Unicode support via UTF-8 (new in 3.5)</li>
<li>New font implementation (new in 3.5)</li>
<li>Windows GDI+ support (new in 3.5)</li>
<li>Mac OS X Composited Window support (new in 3.0)</li>
</ul>
<h2><a class="anchor" id="about_deprecation">
About deprecation in version 3.6</a></h2>
<p>With <a class="el" href="namespace_v_s_t_g_u_i.html">VSTGUI</a> 3.6 the VSTGUI_ENABLE_DEPRECATED_METHODS macro has changed to be zero per default. You should change your code so that it compiles without changing the macro. All methods marked this way will be unavailable in the next version.</p>
<h2><a class="anchor" id="code_changes_for_3_5">
Code changes for existing VSTGUI 3.5 code</a></h2>
<ul>
<li>COptionMenu was refactored and uses the CMenuItem class for menu items. Item flags are not encoded in the item title anymore.</li>
<li>CParamDisplay::setTxtFace () and CParamDisplay::getTxtFace () is gone. The text face is already in CFontRef.</li>
<li>You need to use the new CNewFileSelector class instead of CFileSelector if you want to use it on Mac 64 bit.</li>
</ul>
<h2><a class="anchor" id="code_changes_for_3_0">
Code changes for existing VSTGUI 3.0 code</a></h2>
<ul>
<li>Per default CBitmaps don't get a transparent color on creation. You must call bitmap->setTransparency (color) explicitly. And this may only works once depending on the internal implementation.</li>
<li>CViewContainer addView and removeView returns a bool value now.</li>
<li>Mouse methods moved from CDrawContext to CFrame.</li>
<li>Custom views which override attached and removed must propagate the call to the parent.</li>
<li>VST specific code is enclosed with the macro ENABLE_VST_EXTENSION_IN_VSTGUI, which per default is set to zero. If you need them you must enable it (best practice is to set it in the prefix header or the preprocessor panel in your compiler).</li>
<li>Removed all CDrawContext parameters from CView methods except for draw and drawRect. You need to change this in your custom views and controls.</li>
<li>Every usage of CFont must be changed to CFontRef.</li>
<li>When using GDI+ or libpng on Windows there is no need in using any offscreen context for flicker reduction as <a class="el" href="namespace_v_s_t_g_u_i.html">VSTGUI</a> uses a backbuffer for drawing.</li>
<li>Custom controls must implement the CLASS_METHODS macro if it directly inherits from CControl. Otherwise you will get a compile error.</li>
<li>Custom controls which don't implement the new mouse methods must override onMouseDown and return kMouseEventNotHandled so that the old mouse method is called.</li>
</ul>
<h3><a class="anchor" id="cviewchanges">
CView method changes</a></h3>
<p>For custom views you need to change the following methods because their parameters changed:</p>
<ul>
<li>onWheel</li>
<li>onDrop</li>
<li>onDragEnter</li>
<li>onDragLeave</li>
<li>onDragMove</li>
<li>takeFocus</li>
<li>looseFocus</li>
<li>setViewSize</li>
</ul>
<h3><a class="anchor" id="aeffguieditorchanges">
AEffGUIEditor method changes</a></h3>
<ul>
<li>valueChanged</li>
</ul>
<h2><a class="anchor" id="code_changes_for_2_3">
Code changes for existing VSTGUI 2.3 code</a></h2>
<p>please see the "Migrating from 2.3.rtf" file in the Documentation folder. </p>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Fri Nov 22 11:09:27 2013 for VSTGUI by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
|
{
"content_hash": "ec85bd60a185d5fceba21b4c7d68af84",
"timestamp": "",
"source": "github",
"line_count": 150,
"max_line_length": 298,
"avg_line_length": 58.96666666666667,
"alnum_prop": 0.705935556811758,
"repo_name": "rcgilbert/csc344-wi14",
"id": "463788cde805aff7e292faec8240af2718b431ff",
"size": "8845",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "SDKs/VST3 SDK/vstgui4/vstgui/Documentation/html/page_previous_new_stuff.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "11495015"
},
{
"name": "C++",
"bytes": "12400956"
},
{
"name": "CSS",
"bytes": "117677"
},
{
"name": "DOT",
"bytes": "15057"
},
{
"name": "Erlang",
"bytes": "1470"
},
{
"name": "Java",
"bytes": "24037"
},
{
"name": "JavaScript",
"bytes": "146242"
},
{
"name": "M",
"bytes": "2372"
},
{
"name": "Objective-C",
"bytes": "1152224"
},
{
"name": "PHP",
"bytes": "12544"
},
{
"name": "Perl",
"bytes": "391898"
},
{
"name": "Python",
"bytes": "1350"
},
{
"name": "R",
"bytes": "7719"
},
{
"name": "Shell",
"bytes": "9212"
}
],
"symlink_target": ""
}
|
package graphql;
import com.intellij.extapi.psi.PsiFileBase;
import com.intellij.lang.Language;
import com.intellij.openapi.fileTypes.FileType;
import com.intellij.psi.FileViewProvider;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
public class GraphQLFile extends PsiFileBase {
public GraphQLFile(@NotNull FileViewProvider fileViewProvider) {
super(fileViewProvider, GraphQLLanguage.INSTANCE);
}
@NotNull
@Override
public FileType getFileType() {
return GraphQLFileType.INSTANCE;
}
@Override
public String toString() {
return GraphQLFileType.INSTANCE.getName();
}
@Override
public Icon getIcon(int flags) {
return super.getIcon(flags);
}
}
|
{
"content_hash": "1926e8f47457a2cb337c9d4a3eefd3f9",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 68,
"avg_line_length": 23.235294117647058,
"alnum_prop": 0.7278481012658228,
"repo_name": "Gregoor/graphql-intellij-plugin",
"id": "4123bfb271369532ba2aa1696a872b774ab44965",
"size": "790",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/graphql/GraphQLFile.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "39206"
},
{
"name": "Lex",
"bytes": "1627"
}
],
"symlink_target": ""
}
|
'use strict';
const fs = require('fs');
const http = require('http');
const path = require('path');
const env = require('../../modules/environment');
describe('browser/index.html', function desc() {
this.timeout(10000);
const config = {
version: 1,
teams: [{
name: 'example_1',
url: env.mattermostURL + '1'
}, {
name: 'example_2',
url: env.mattermostURL + '2'
}]
};
const serverPort = 8181;
before(() => {
function serverCallback(req, res) {
res.writeHead(200, {
'Content-Type': 'text/html'
});
res.end(fs.readFileSync(path.resolve(env.sourceRootDir, 'test/modules/test.html'), 'utf-8'));
}
this.server = http.createServer(serverCallback).listen(serverPort, '127.0.0.1');
});
beforeEach(() => {
fs.writeFileSync(env.configFilePath, JSON.stringify(config));
this.app = env.getSpectronApp();
return this.app.start();
});
afterEach(() => {
if (this.app && this.app.isRunning()) {
return this.app.stop();
}
return true;
});
after((done) => {
this.server.close(done);
});
it('should NOT show tabs when there is one team', () => {
fs.writeFileSync(env.configFilePath, JSON.stringify({
url: env.mattermostURL
}));
return this.app.restart().then(() => {
return this.app.client.waitUntilWindowLoaded().
isExisting('#tabBar').then((existing) => existing.should.be.false);
});
});
it('should set src of webview from config file', () => {
return this.app.client.waitUntilWindowLoaded().
getAttribute('#mattermostView0', 'src').then((src) => src.should.equal(config.teams[0].url)).
getAttribute('#mattermostView1', 'src').then((src) => src.should.equal(config.teams[1].url)).
isExisting('#mattermostView2').then((existing) => existing.should.be.false);
});
it('should set name of tab from config file', () => {
return this.app.client.waitUntilWindowLoaded().
getText('#teamTabItem0').then((text) => text.should.equal(config.teams[0].name)).
getText('#teamTabItem1').then((text) => text.should.equal(config.teams[1].name));
});
it('should show only the selected team', () => {
return this.app.client.waitUntilWindowLoaded().
isVisible('#mattermostView0').then((visible) => visible.should.be.true).
isVisible('#mattermostView1').then((visible) => visible.should.be.false).
click('#teamTabItem1').
pause(1000).
isVisible('#mattermostView1').then((visible) => visible.should.be.true).
isVisible('#mattermostView0').then((visible) => visible.should.be.false);
});
it('should show error when using incorrect URL', () => {
this.timeout(30000);
fs.writeFileSync(env.configFilePath, JSON.stringify({
version: 1,
teams: [{
name: 'error_1',
url: 'http://false'
}]
}));
return this.app.restart().then(() => {
return this.app.client.waitUntilWindowLoaded().
waitForVisible('#mattermostView0-fail', 20000);
});
});
it('should set window title by using webview\'s one', () => {
fs.writeFileSync(env.configFilePath, JSON.stringify({
version: 1,
teams: [{
name: 'title_test',
url: `http://localhost:${serverPort}`
}]
}));
return this.app.restart().then(() => {
return this.app.client.waitUntilWindowLoaded().pause(2000);
}).then(() => {
return this.app.browserWindow.getTitle();
}).then((title) => title.should.equal('Mattermost Desktop testing html'));
});
// Skip because it's very unstable in CI
it.skip('should update window title when the activated tab\'s title is updated', () => {
fs.writeFileSync(env.configFilePath, JSON.stringify({
version: 1,
teams: [{
name: 'title_test_0',
url: `http://localhost:${serverPort}`
}, {
name: 'title_test_1',
url: `http://localhost:${serverPort}`
}]
}));
return this.app.restart().then(() => {
return this.app.client.waitUntilWindowLoaded().pause(500);
}).then(() => {
// Note: Indices of webview are correct.
// Somehow they are swapped.
return this.app.client.
windowByIndex(2).
execute(() => {
document.title = 'Title 0';
}).
windowByIndex(0).
pause(500).
browserWindow.getTitle().then((title) => title.should.equal('Title 0')).
windowByIndex(1).
execute(() => {
document.title = 'Title 1';
}).
windowByIndex(0).
pause(500).
browserWindow.getTitle().then((title) => title.should.equal('Title 0'));
});
});
// Skip because it's very unstable in CI
it.skip('should update window title when a tab is selected', () => {
fs.writeFileSync(env.configFilePath, JSON.stringify({
version: 1,
teams: [{
name: 'title_test_0',
url: `http://localhost:${serverPort}`
}, {
name: 'title_test_1',
url: `http://localhost:${serverPort}`
}]
}));
return this.app.restart().then(() => {
// Note: Indices of webview are correct.
// Somehow they are swapped.
return this.app.client.
waitUntilWindowLoaded().
pause(500).
windowByIndex(2).
execute(() => {
document.title = 'Title 0';
}).
windowByIndex(1).
execute(() => {
document.title = 'Title 1';
}).
windowByIndex(0).
pause(500).
browserWindow.getTitle().then((title) => title.should.equal('Title 0')).
click('#teamTabItem1').
pause(500).
browserWindow.getTitle().then((title) => title.should.equal('Title 1'));
});
});
it('should open the new server prompt after clicking the add button', () => {
// See settings_test for specs that cover the actual prompt
return this.app.client.waitUntilWindowLoaded().
click('#tabBarAddNewTeam').
pause(500).
isExisting('#newServerModal').then((existing) => existing.should.be.true);
});
});
|
{
"content_hash": "1218952a635362e9a55aaf3ffde3c10b",
"timestamp": "",
"source": "github",
"line_count": 192,
"max_line_length": 99,
"avg_line_length": 31.640625,
"alnum_prop": 0.5881481481481482,
"repo_name": "jnugh/desktop",
"id": "6d760d57811e5ead817e41a347f4e0d98978bfcc",
"size": "6075",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "test/specs/browser/index_test.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "1902"
},
{
"name": "HTML",
"bytes": "966"
},
{
"name": "JavaScript",
"bytes": "142524"
},
{
"name": "Shell",
"bytes": "3201"
}
],
"symlink_target": ""
}
|
var menudata={children:[
{text:"Main Page",url:"index.html"},
{text:"Namespaces",url:"namespaces.html",children:[
{text:"Namespace List",url:"namespaces.html"},
{text:"Namespace Members",url:"namespacemembers.html",children:[
{text:"All",url:"namespacemembers.html"},
{text:"Functions",url:"namespacemembers_func.html"}]}]},
{text:"Files",url:"files.html",children:[
{text:"File List",url:"files.html"}]}]}
|
{
"content_hash": "7ed8358fbf59b2d9fa2920cd907b304d",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 64,
"avg_line_length": 40.8,
"alnum_prop": 0.7107843137254902,
"repo_name": "kartikkumar/cppbase",
"id": "049388caa6f45563b1c9750250ffb80a50a8062e",
"size": "1701",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/html/menudata.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C++",
"bytes": "2701"
},
{
"name": "CMake",
"bytes": "7422"
}
],
"symlink_target": ""
}
|
package com.github.alexfalappa.nbspringboot.projects.initializr;
import java.util.Objects;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.collections4.ComparatorUtils;
import org.springframework.util.comparator.Comparators;
/**
* Represents an artifact version of the form {@code MAJOR.MINOR.PATCH[-MODIFIER]} or {@code MAJOR.MINOR.PATCH[.MODIFIER]}.
* <p>
* The modifier is optional.
* <p>
* Objects of this class are ordered according to the semantic versioning progression. Modifiers are ordered alphabetically.
*
* @author Alessandro Falappa
*/
public class ArtifactVersion implements Comparable<ArtifactVersion> {
private static final Pattern PATTERN = Pattern.compile("^(\\d+)\\.(\\d+)\\.(\\d+)(?:[-.](.+))?$");
private final int major;
private final int minor;
private final int patch;
private final String modifier;
public ArtifactVersion(int major, int minor, int patch) {
this(major, minor, patch, null);
}
public ArtifactVersion(int major, int minor, int patch, String modifier) {
if (major < 0) {
throw new IllegalArgumentException("Negative major version");
}
if (minor < 0) {
throw new IllegalArgumentException("Negative minor version");
}
if (patch < 0) {
throw new IllegalArgumentException("Negative patch version");
}
this.major = major;
this.minor = minor;
this.patch = patch;
this.modifier = modifier != null ? modifier.toUpperCase() : null;
}
public static ArtifactVersion of(String versionString) {
Matcher m = PATTERN.matcher(versionString);
if (!m.matches()) {
throw new IllegalArgumentException("Invalid version string: " + versionString);
} else {
final int mj = Integer.parseInt(m.group(1));
final int mn = Integer.parseInt(m.group(2));
final int pa = Integer.parseInt(m.group(3));
final String mod = m.group(4);
return new ArtifactVersion(mj, mn, pa, mod);
}
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(major);
sb.append('.').append(minor);
sb.append('.').append(patch);
if (modifier!=null) {
sb.append('-').append(modifier);
}
return sb.toString();
}
@Override
public int hashCode() {
int hash = 5;
hash = 29 * hash + this.major;
hash = 29 * hash + this.minor;
hash = 29 * hash + this.patch;
hash = 29 * hash + Objects.hashCode(this.modifier);
return hash;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final ArtifactVersion other = (ArtifactVersion) obj;
if (this.major != other.major) {
return false;
}
if (this.minor != other.minor) {
return false;
}
if (this.patch != other.patch) {
return false;
}
if (!Objects.equals(this.modifier, other.modifier)) {
return false;
}
return true;
}
@Override
public int compareTo(ArtifactVersion other) {
int result;
// compare version numbers
if ((result = Integer.compare(major, other.major)) != 0) {
return result;
}
if ((result = Integer.compare(minor, other.minor)) != 0) {
return result;
}
if ((result = Integer.compare(patch, other.patch)) != 0) {
return result;
}
// compare modifiers
if (modifier == null) {
if (other.modifier == null) {
return result;
} else {
return 1;
}
} else {
if (other.modifier == null) {
return -1;
} else {
return modifier.compareTo(other.modifier);
}
}
}
}
|
{
"content_hash": "2bae28dd62e4377c29949d2850dfc6b6",
"timestamp": "",
"source": "github",
"line_count": 137,
"max_line_length": 124,
"avg_line_length": 30.7007299270073,
"alnum_prop": 0.5582501188777936,
"repo_name": "AlexFalappa/nb-springboot",
"id": "e79058880d75f6e851bfddab7e7c25fdad5018d6",
"size": "4821",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/com/github/alexfalappa/nbspringboot/projects/initializr/ArtifactVersion.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "17042"
},
{
"name": "Java",
"bytes": "808103"
},
{
"name": "Lex",
"bytes": "9483"
}
],
"symlink_target": ""
}
|
module SpreeMadmimi
module Generators
class InstallGenerator < Rails::Generators::Base
class_option :auto_run_migrations, :type => :boolean, :default => false
def add_javascripts
append_file 'vendor/assets/javascripts/spree/frontend/all.js', "//= require spree/frontend/spree_madmimi\n"
append_file 'vendor/assets/javascripts/spree/backend/all.js', "//= require spree/backend/spree_madmimi\n"
end
def add_stylesheets
inject_into_file 'vendor/assets/stylesheets/spree/frontend/all.css', " *= require spree/frontend/spree_madmimi\n", :before => /\*\//, :verbose => true
inject_into_file 'vendor/assets/stylesheets/spree/backend/all.css', " *= require spree/backend/spree_madmimi\n", :before => /\*\//, :verbose => true
end
def add_migrations
run 'bundle exec rake railties:install:migrations FROM=spree_madmimi'
end
def run_migrations
run_migrations = options[:auto_run_migrations] || ['', 'y', 'Y'].include?(ask 'Would you like to run the migrations now? [Y/n]')
if run_migrations
run 'bundle exec rake db:migrate'
else
puts 'Skipping rake db:migrate, don\'t forget to run it!'
end
end
end
end
end
|
{
"content_hash": "226de7d42fdf5d7021acdd6d5759815c",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 158,
"avg_line_length": 40.645161290322584,
"alnum_prop": 0.6507936507936508,
"repo_name": "godaddy/spree_madmimi",
"id": "6a5655baacfde7fd94dc95b1de69670458a6172f",
"size": "1260",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/generators/spree_madmimi/install/install_generator.rb",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "401"
},
{
"name": "CoffeeScript",
"bytes": "1942"
},
{
"name": "JavaScript",
"bytes": "389"
},
{
"name": "Ruby",
"bytes": "34662"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="utf-8"?>
<MotionScene xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:motion="http://schemas.android.com/apk/res-auto">
<!--motion:interpolator="@interpolator/foo"-->
<!--motion:interpolator="@anim/bar"-->
<Transition
motion:constraintSetStart="@+id/center"
motion:constraintSetEnd="@+id/north"
motion:duration="1000">
<OnClick motion:targetId="@id/button_north"
motion:clickAction="jumpToEnd|transitionToStart"/>
<OnSwipe
motion:dragDirection="dragUp"
motion:touchAnchorId="@+id/button"
motion:touchAnchorSide="top" />
</Transition>
<Transition
motion:constraintSetStart="@+id/west"
motion:constraintSetEnd="@+id/north"
motion:duration="1000">
<OnSwipe
motion:dragDirection="dragUp"
motion:touchAnchorId="@+id/button"
motion:touchAnchorSide="top" />
</Transition>
<Transition
motion:constraintSetStart="@+id/center"
motion:constraintSetEnd="@+id/west"
motion:duration="1000">
<OnClick motion:targetId="@id/button_west"
motion:clickAction="transitionToEnd|transitionToStart"/>
<OnSwipe
motion:dragDirection="dragLeft"
motion:touchAnchorId="@+id/button"
motion:touchAnchorSide="right" />
</Transition>
<Transition
motion:constraintSetStart="@+id/center"
motion:constraintSetEnd="@+id/east"
motion:duration="1000">
<OnClick motion:targetId="@id/button_east"
motion:clickAction="jumpToEnd|jumpToStart"/>
<OnSwipe
motion:dragDirection="dragRight"
motion:touchAnchorId="@+id/button"
motion:touchAnchorSide="right" />
</Transition>
<Transition
motion:constraintSetStart="@+id/center"
motion:constraintSetEnd="@+id/south"
motion:duration="1000">
<OnClick motion:targetId="@id/button_south"
motion:clickAction="jumpToStart|transitionToEnd"/>
<OnSwipe
motion:dragDirection="dragDown"
motion:touchAnchorId="@+id/button"
motion:touchAnchorSide="top" />
</Transition>
<ConstraintSet android:id="@+id/center">
<Constraint
android:id="@+id/button"
android:layout_width="128dp"
android:layout_height="128dp"
android:layout_marginStart="32dp"
android:layout_marginEnd="32dp"
android:layout_marginTop="32dp"
android:layout_marginBottom="32dp"
motion:layout_constraintHorizontal_bias="0.50"
motion:layout_constraintVertical_bias="0.50"
motion:layout_constraintTop_toTopOf="parent"
motion:layout_constraintBottom_toBottomOf="parent"
motion:layout_constraintStart_toStartOf="parent"
motion:layout_constraintEnd_toEndOf="parent"
>
<CustomAttribute
motion:attributeName="imageRotate"
motion:customFloatValue="0" />
<CustomAttribute
motion:attributeName="imagePanX"
motion:customFloatValue="0" />
<CustomAttribute
motion:attributeName="imagePanY"
motion:customFloatValue="0" />
<CustomAttribute
motion:attributeName="roundPercent"
motion:customFloatValue="0" />
<CustomAttribute
motion:attributeName="imageZoom"
motion:customFloatValue="1.4" />
</Constraint>
</ConstraintSet>
<ConstraintSet android:id="@+id/north">
<Constraint
android:id="@+id/button"
android:layout_width="128dp"
android:layout_height="128dp"
android:layout_marginStart="32dp"
android:layout_marginEnd="32dp"
android:layout_marginTop="32dp"
android:layout_marginBottom="32dp"
motion:layout_constraintVertical_bias="0.1"
motion:layout_constraintHorizontal_bias="0.501"
motion:layout_constraintTop_toTopOf="parent"
motion:layout_constraintBottom_toBottomOf="parent"
motion:layout_constraintStart_toStartOf="parent"
motion:layout_constraintEnd_toEndOf="parent"
>
<CustomAttribute
motion:attributeName="imageRotate"
motion:customFloatValue="0" />
<CustomAttribute
motion:attributeName="imagePanX"
motion:customFloatValue="0" />
<CustomAttribute
motion:attributeName="imagePanY"
motion:customFloatValue="-1" />
</Constraint>
</ConstraintSet>
<ConstraintSet android:id="@+id/west">
<Constraint
android:id="@+id/button"
android:layout_width="128dp"
android:layout_height="128dp"
android:layout_marginStart="32dp"
android:layout_marginEnd="32dp"
android:layout_marginTop="32dp"
android:layout_marginBottom="32dp"
motion:layout_constraintHorizontal_bias="0.1"
motion:layout_constraintTop_toTopOf="parent"
motion:layout_constraintBottom_toBottomOf="parent"
motion:layout_constraintStart_toStartOf="parent"
motion:layout_constraintEnd_toEndOf="parent"
>
<CustomAttribute
motion:attributeName="imageRotate"
motion:customFloatValue="0" />
<CustomAttribute
motion:attributeName="imagePanX"
motion:customFloatValue="-1" />
</Constraint>
</ConstraintSet>
<ConstraintSet android:id="@+id/east">
<Constraint
android:id="@+id/button"
android:layout_width="128dp"
android:layout_height="128dp"
android:layout_marginStart="32dp"
android:layout_marginEnd="32dp"
android:layout_marginTop="32dp"
android:layout_marginBottom="32dp"
motion:layout_constraintHorizontal_bias="0.9"
motion:layout_constraintTop_toTopOf="parent"
motion:layout_constraintBottom_toBottomOf="parent"
motion:layout_constraintStart_toStartOf="parent"
motion:layout_constraintEnd_toEndOf="parent"
>
<CustomAttribute
motion:attributeName="imageRotate"
motion:customFloatValue="180" />
<CustomAttribute
motion:attributeName="imagePanX"
motion:customFloatValue="1" />
<CustomAttribute
motion:attributeName="roundPercent"
motion:customFloatValue="1" />
</Constraint>
</ConstraintSet>
<ConstraintSet android:id="@+id/south">
<Constraint
android:id="@+id/button"
android:layout_width="128dp"
android:layout_height="128dp"
android:layout_marginStart="32dp"
android:layout_marginEnd="32dp"
android:layout_marginTop="32dp"
android:layout_marginBottom="32dp"
motion:layout_constraintVertical_bias="0.9"
motion:layout_constraintTop_toTopOf="parent"
motion:layout_constraintBottom_toBottomOf="parent"
motion:layout_constraintStart_toStartOf="parent"
motion:layout_constraintEnd_toEndOf="parent"
>
<CustomAttribute
motion:attributeName="imageRotate"
motion:customFloatValue="180" />
<CustomAttribute
motion:attributeName="imagePanX"
motion:customFloatValue="0" />
<CustomAttribute
motion:attributeName="imageZoom"
motion:customFloatValue="4" />
</Constraint>
</ConstraintSet>
</MotionScene>
|
{
"content_hash": "70f37ae062346eb8bf11c076394902da",
"timestamp": "",
"source": "github",
"line_count": 214,
"max_line_length": 71,
"avg_line_length": 37.62149532710281,
"alnum_prop": 0.5887467395354614,
"repo_name": "androidx/constraintlayout",
"id": "227983f6a12f460308c6c9f418a26e8b3ec88f6c",
"size": "8051",
"binary": false,
"copies": "2",
"ref": "refs/heads/main",
"path": "projects/MotionLayoutVerification/app/src/main/res/xml/verification_scene_050.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "6077193"
},
{
"name": "Kotlin",
"bytes": "1347699"
},
{
"name": "Shell",
"bytes": "1512"
}
],
"symlink_target": ""
}
|
from django_schemata.management.commands.sync_schemata import BaseSchemataCommand
# Uses the twin command base code for the actual iteration.
class Command(BaseSchemataCommand):
COMMAND_NAME = 'migrate'
|
{
"content_hash": "18788c13c5f199ab65f2e4a939f563b4",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 81,
"avg_line_length": 34.833333333333336,
"alnum_prop": 0.8086124401913876,
"repo_name": "tuttle/django-schemata",
"id": "cc4b852dc3dfd09696445a339ce9bc347dd2d0e7",
"size": "209",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "django_schemata/management/commands/migrate_schemata.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "16996"
}
],
"symlink_target": ""
}
|
<h3>Contact Requests</h3>
<ul class="list-group">
@if($requests->isEmpty())
<li class="list-group-item">
<h4>There are no contact requests.</h4>
</li>
@else
@foreach($requests as $request)
<li class="list-group-item">
<h4>
<a href="{{ route('contact.detail', $request->id) }}">{{ $request->name }}
, {{ $request->email }}</a>
<div class="taskFinished">
<a href="{{ route('contact.processRequest', $request->id) }}"><span class="glyphicon glyphicon-repeat"></span></a>
<a href="{{ route('contact.finishedRequest', $request->id) }}"><span
class="glyphicon glyphicon-ok"></span></a>
</div>
</h4>
{{ $request->message }}
</li>
@endforeach
@endif
</ul>
|
{
"content_hash": "6c703423945848ec1f7d957175613945",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 138,
"avg_line_length": 39.333333333333336,
"alnum_prop": 0.4449152542372881,
"repo_name": "mlechler/Bewerbungscoaching",
"id": "c32e657d1cde845466d35a2cba6e086adf44d08f",
"size": "944",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "resources/views/backend/widgets/contact_requests.blade.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "553"
},
{
"name": "HTML",
"bytes": "307589"
},
{
"name": "JavaScript",
"bytes": "65745"
},
{
"name": "PHP",
"bytes": "486504"
},
{
"name": "Vue",
"bytes": "561"
}
],
"symlink_target": ""
}
|
rm PAPI_FAQ.html
rm release_procedure.txt
rm doc/DataRange.html
rm doc/PAPI-C.html
rm doc/README
rm src/buildbot_configure_with_components.sh
rm -rf .git
rm delete_before_release.sh
|
{
"content_hash": "5d77e1e302574319c69b6fbc565fded9",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 44,
"avg_line_length": 22.75,
"alnum_prop": 0.7967032967032966,
"repo_name": "pyrovski/papi-rapl",
"id": "ed2b0c5df58c4e532d3c49b61884669da41bd081",
"size": "192",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "delete_before_release.sh",
"mode": "33261",
"license": "bsd-3-clause",
"language": [
{
"name": "Assembly",
"bytes": "2175"
},
{
"name": "C",
"bytes": "10876830"
},
{
"name": "C++",
"bytes": "1330246"
},
{
"name": "Common Lisp",
"bytes": "6678"
},
{
"name": "FORTRAN",
"bytes": "122844"
},
{
"name": "Java",
"bytes": "42709"
},
{
"name": "JavaScript",
"bytes": "923"
},
{
"name": "Matlab",
"bytes": "16458"
},
{
"name": "Objective-C",
"bytes": "2236171"
},
{
"name": "Perl",
"bytes": "568474"
},
{
"name": "Prolog",
"bytes": "3949"
},
{
"name": "Python",
"bytes": "95251"
},
{
"name": "Racket",
"bytes": "1894"
},
{
"name": "Shell",
"bytes": "493896"
}
],
"symlink_target": ""
}
|
import {__PERFORMANCE_PROFILE__} from './constants';
const supportsUserTiming =
typeof performance !== 'undefined' &&
// $FlowFixMe[method-unbinding]
typeof performance.mark === 'function' &&
// $FlowFixMe[method-unbinding]
typeof performance.clearMarks === 'function';
const supportsPerformanceNow =
// $FlowFixMe[method-unbinding]
typeof performance !== 'undefined' && typeof performance.now === 'function';
function mark(markName: string): void {
if (supportsUserTiming) {
performance.mark(markName + '-start');
}
}
function measure(markName: string): void {
if (supportsUserTiming) {
performance.mark(markName + '-end');
performance.measure(markName, markName + '-start', markName + '-end');
performance.clearMarks(markName + '-start');
performance.clearMarks(markName + '-end');
}
}
function now(): number {
if (supportsPerformanceNow) {
return performance.now();
}
return Date.now();
}
export async function withAsyncPerfMeasurements<TReturn>(
markName: string,
callback: () => Promise<TReturn>,
onComplete?: number => void,
): Promise<TReturn> {
const start = now();
if (__PERFORMANCE_PROFILE__) {
mark(markName);
}
const result = await callback();
if (__PERFORMANCE_PROFILE__) {
measure(markName);
}
if (onComplete != null) {
const duration = now() - start;
onComplete(duration);
}
return result;
}
export function withSyncPerfMeasurements<TReturn>(
markName: string,
callback: () => TReturn,
onComplete?: number => void,
): TReturn {
const start = now();
if (__PERFORMANCE_PROFILE__) {
mark(markName);
}
const result = callback();
if (__PERFORMANCE_PROFILE__) {
measure(markName);
}
if (onComplete != null) {
const duration = now() - start;
onComplete(duration);
}
return result;
}
export function withCallbackPerfMeasurements<TReturn>(
markName: string,
callback: (done: () => void) => TReturn,
onComplete?: number => void,
): TReturn {
const start = now();
if (__PERFORMANCE_PROFILE__) {
mark(markName);
}
const done = () => {
if (__PERFORMANCE_PROFILE__) {
measure(markName);
}
if (onComplete != null) {
const duration = now() - start;
onComplete(duration);
}
};
return callback(done);
}
|
{
"content_hash": "62117bf2300d52bd5aaa8c2a778c086e",
"timestamp": "",
"source": "github",
"line_count": 105,
"max_line_length": 78,
"avg_line_length": 21.961904761904762,
"alnum_prop": 0.6435385949696444,
"repo_name": "facebook/react",
"id": "68741a899261fdd3e1f8dc213057780fa5c1bde1",
"size": "2521",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "packages/react-devtools-shared/src/PerformanceLoggingUtils.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "5227"
},
{
"name": "C++",
"bytes": "44290"
},
{
"name": "CSS",
"bytes": "64972"
},
{
"name": "CoffeeScript",
"bytes": "17390"
},
{
"name": "HTML",
"bytes": "120058"
},
{
"name": "JavaScript",
"bytes": "6256474"
},
{
"name": "Makefile",
"bytes": "189"
},
{
"name": "Python",
"bytes": "259"
},
{
"name": "Shell",
"bytes": "2306"
},
{
"name": "TypeScript",
"bytes": "21454"
}
],
"symlink_target": ""
}
|
/***********************************************************************
created: Sun Feb 1 2009
author: Paul D Turner
*************************************************************************/
/***************************************************************************
* Copyright (C) 2004 - 2009 Paul D Turner & The CEGUI Development Team
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
***************************************************************************/
#ifndef _CEGUIOpenGLWGLPBTextureTarget_h_
#define _CEGUIOpenGLWGLPBTextureTarget_h_
#include "CEGUI/RendererModules/OpenGL/TextureTarget.h"
#include "CEGUI/RendererModules/OpenGL/GL.h"
#include "../../Rectf.h"
#include <windows.h>
#include <GL/wglew.h>
#if defined(_MSC_VER)
# pragma warning(push)
# pragma warning(disable : 4250)
#endif
// Start of CEGUI namespace section
namespace CEGUI
{
class OpenGLTexture;
/*!
\brief
OpenGLWGLPBTextureTarget - allows rendering to an OpenGL texture via the
pbuffer WGL extension.
*/
class OPENGL_GUIRENDERER_API OpenGLWGLPBTextureTarget : public OpenGLTextureTarget
{
public:
OpenGLWGLPBTextureTarget(OpenGLRendererBase& owner, bool addStencilBuffer);
virtual ~OpenGLWGLPBTextureTarget();
// overrides from OpenGLRenderTarget
void activate() override;
void deactivate() override;
// implementation of TextureTarget interface
void clear() override;
void declareRenderSize(const Sizef& sz) override;
// specialise functions from OpenGLTextureTarget
void grabTexture() override;
void restoreTexture() override;
protected:
//! default size of created texture objects
static const float DEFAULT_SIZE;
//! Initialise the PBuffer with the needed size
void initialisePBuffer();
//! Cleans up the pbuffer resources.
void releasePBuffer();
//! Switch rendering so it targets the pbuffer
void enablePBuffer() const;
//! Switch rendering to target what was active before the pbuffer was used.
void disablePBuffer() const;
//! Perform basic initialisation of the texture we're going to use.
void initialiseTexture();
//! Holds the pixel format we use when creating the pbuffer.
int d_pixfmt;
//! Handle to the pbuffer itself.
HPBUFFERARB d_pbuffer;
//! Handle to the rendering context for the pbuffer.
HGLRC d_context;
//! Handle to the Windows device context for the pbuffer.
HDC d_hdc;
//! Handle to the rendering context in use when we switched to the pbuffer.
mutable HGLRC d_prevContext;
//! Handle to the device context in use when we switched to the pbuffer.
mutable HDC d_prevDC;
};
} // End of CEGUI namespace section
#if defined(_MSC_VER)
# pragma warning(pop)
#endif
#endif // end of guard _CEGUIOpenGLWGLPBTextureTarget_h_
|
{
"content_hash": "88868a853a4f7b23a762349cc679d0c4",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 82,
"avg_line_length": 36.08411214953271,
"alnum_prop": 0.6702926702926703,
"repo_name": "cbeck88/cegui-mirror-two",
"id": "a05d3aa56537b11ab701d75272bcb6ab51f9e826",
"size": "3861",
"binary": false,
"copies": "3",
"ref": "refs/heads/def",
"path": "cegui/include/CEGUI/RendererModules/OpenGL/WGLPBTextureTarget.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "141"
},
{
"name": "C",
"bytes": "422585"
},
{
"name": "C++",
"bytes": "20764850"
},
{
"name": "CMake",
"bytes": "332760"
},
{
"name": "Java",
"bytes": "6178"
},
{
"name": "Lua",
"bytes": "131055"
},
{
"name": "Makefile",
"bytes": "6808"
},
{
"name": "Objective-C",
"bytes": "15620"
},
{
"name": "Python",
"bytes": "92177"
},
{
"name": "Shell",
"bytes": "32217"
}
],
"symlink_target": ""
}
|
// ========================================================================
// Copyright (c) 2009-2009 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// and Apache License v2.0 which accompanies this distribution.
// The Eclipse Public License is available at
// http://www.eclipse.org/legal/epl-v10.html
// The Apache License v2.0 is available at
// http://www.opensource.org/licenses/apache2.0.php
// You may elect to redistribute this code under either of these licenses.
// ========================================================================
package org.eclipse.jetty.plugins;
import java.util.List;
import java.util.Map;
import org.eclipse.jetty.plugins.impl.HttpMavenServiceImpl;
import org.eclipse.jetty.plugins.impl.PluginManagerImpl;
/* ------------------------------------------------------------ */
/**
*/
public class Main {
private static final String JETTY_HOME = "JETTY_HOME";
private MavenService _mavenService = new HttpMavenServiceImpl();
private PluginManager _pluginManager;
private String _jettyHome;
private String _installPlugin;
private boolean _listPlugins;
private String _repositoryUrl;
private String _groupId;
private String _version;
/* ------------------------------------------------------------ */
/**
* @param args
*/
public static void main(String[] args) {
Main main = new Main();
main.execute(args);
}
private void execute(String[] args) {
parseEnvironmentVariables();
parseCommandline(args);
configureMavenService();
_pluginManager = new PluginManagerImpl(_mavenService, _jettyHome);
if (_listPlugins) {
listPlugins();
} else if (_installPlugin != null) {
installPlugin();
}
}
private void configureMavenService() {
if (_repositoryUrl != null) {
_mavenService.setRepositoryUrl(_repositoryUrl);
}
if (_groupId != null) {
_mavenService.setGroupId(_groupId);
}
if (_version != null) {
_mavenService.setVersion(_version);
}
}
private void listPlugins() {
List<String> availablePlugins = _pluginManager.listAvailablePlugins();
for (String pluginName : availablePlugins) {
System.out.println(pluginName);
}
}
private void installPlugin() {
_pluginManager.installPlugin(_installPlugin);
System.out.println("Successfully installed plugin: " + _installPlugin
+ " to " + _jettyHome);
}
private void parseEnvironmentVariables() {
Map<String, String> env = System.getenv();
if (env.containsKey(JETTY_HOME)) {
_jettyHome = env.get(JETTY_HOME);
}
}
private void parseCommandline(String[] args) {
int i = 0;
for (String arg : args) {
i++;
if (arg.startsWith("--jettyHome=")) {
_jettyHome = arg.substring(12);
}
if (arg.startsWith("--repositoryUrl=")) {
_repositoryUrl = arg.substring(16);
}
if (arg.startsWith("--groupId=")) {
_groupId = arg.substring(10);
}
if (arg.startsWith("--version=")) {
_version = arg.substring(10);
}
if (arg.startsWith("install")) {
_installPlugin = args[i];
}
if ("list".equals(arg)) {
_listPlugins = true;
}
}
// TODO: Usage instead of throwing exceptions
if (_jettyHome == null && _installPlugin != null)
throw new IllegalArgumentException(
"No --jettyHome commandline option specified and no \"JETTY_HOME\" environment variable found!");
if (_installPlugin == null && _listPlugins == false)
throw new IllegalArgumentException(
"Neither install <pluginname> nor list commandline option specified. Nothing to do for me!");
if (_installPlugin != null && _listPlugins)
throw new IllegalArgumentException(
"Please specify either install <pluginname> or list commandline options, but not both at the same time!");
}
}
|
{
"content_hash": "760509803d8113e3de2d72adb536e60a",
"timestamp": "",
"source": "github",
"line_count": 129,
"max_line_length": 111,
"avg_line_length": 30.17829457364341,
"alnum_prop": 0.6337015155407141,
"repo_name": "jetty-project/jetty-plugin-support",
"id": "a35f09f3e23d3675f68b7be8d49ed9d10a5b15be",
"size": "3893",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "jetty-plugins/src/main/java/org/eclipse/jetty/plugins/Main.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "9108444"
},
{
"name": "JavaScript",
"bytes": "77396"
},
{
"name": "Shell",
"bytes": "33107"
}
],
"symlink_target": ""
}
|
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end
|
{
"content_hash": "341a979f2f5900eaf24487f6a1370efd",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 281,
"avg_line_length": 45.853658536585364,
"alnum_prop": 0.7851063829787234,
"repo_name": "ZYJJerry/UIBezierStar",
"id": "79c9de775092cc771dc2c0aac8090a70cd05c279",
"size": "2043",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "UIBezierStar/UIBezierStar/AppDelegate.m",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Objective-C",
"bytes": "13106"
}
],
"symlink_target": ""
}
|
/*global html,isHostObjectProperty,isHostMethod */
/*
Description:
Cutting edge where possible, wide support
*/
/*
Author:
Adam Silver
*/
var hasClass;
if (html && isHostObjectProperty(html, "classList") && isHostMethod(html.classList, "contains") ) {
hasClass = function(el, className) {
return el.classList.contains(className);
};
} else if(html && 'string' == typeof html.className) {
hasClass = function(el, className) {
return (new RegExp('(^|\\s)' + className + '(\\s|$)')).test(el.className);
};
}
|
{
"content_hash": "da15939d9a0c79c4f5ff157597fc72e0",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 99,
"avg_line_length": 22.47826086956522,
"alnum_prop": 0.6789168278529981,
"repo_name": "david-mark/jessie",
"id": "a5935bfa1f04044376b9dd35ad123c1257972c5a",
"size": "517",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/functions/hasClass/rendition2.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "7558"
},
{
"name": "HTML",
"bytes": "12984"
},
{
"name": "JavaScript",
"bytes": "129001"
},
{
"name": "PHP",
"bytes": "905"
}
],
"symlink_target": ""
}
|
package rabbit.io;
import lombok.extern.slf4j.Slf4j;
import java.io.Closeable;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.nio.channels.SocketChannel;
import java.util.concurrent.atomic.AtomicInteger;
import rabbit.rnio.ConnectHandler;
import rabbit.rnio.NioHandler;
import rabbit.util.Counter;
/** A class to handle a connection to the Internet.
*
* @author <a href="mailto:robo@khelekore.org">Robert Olofsson</a>
*/
@Slf4j
public class WebConnection implements Closeable {
private final int id;
private final Address address;
private final SocketBinder binder;
private final Counter counter;
private SocketChannel channel;
private long releasedAt = -1;
private boolean keepalive = true;
private static final AtomicInteger idCounter = new AtomicInteger(0);
/** Create a new WebConnection to the given InetAddress and port.
* @param address the computer to connect to.
* @param binder the SocketBinder to use when creating the network socket
* @param counter the Counter to used to collect statistics
*/
public WebConnection(final Address address, final SocketBinder binder,
final Counter counter) {
this.id = idCounter.getAndIncrement();
this.address = address;
this.binder = binder;
this.counter = counter;
counter.inc("WebConnections created");
}
@Override public String toString() {
final int port = channel != null ? channel.socket().getLocalPort() : -1;
return "WebConnection(id: " + id +
", address: " + address +
", keepalive: " + keepalive +
", releasedAt: " + releasedAt +
", local port: " + port + ")";
}
/** Get the address that this connection is connected to
* @return the network address that the underlying socket is connected to
*/
public Address getAddress() {
return address;
}
/** Get the actual SocketChannel that is used
* @return the network channel
*/
public SocketChannel getChannel() {
return channel;
}
@Override
public void close() throws IOException {
counter.inc("WebConnections closed");
channel.close();
}
/** Try to establish the network connection.
* @param nioHandler the NioHandler to use for network tasks
* @param wcl the listener that will be notified when the connection
* has been extablished.
* @throws IOException if the network operations fail
*/
public void connect(final NioHandler nioHandler, final WebConnectionListener wcl)
throws IOException {
// if we are a keepalive connection then just say so..
if (channel != null && channel.isConnected()) {
wcl.connectionEstablished(this);
} else {
// ok, open the connection....
channel = SocketChannel.open();
channel.socket().bind(new InetSocketAddress(binder.getInetAddress(),
binder.getPort()));
channel.configureBlocking(false);
final SocketAddress addr =
new InetSocketAddress(address.getInetAddress(),
address.getPort());
final boolean connected = channel.connect(addr);
if (connected) {
wcl.connectionEstablished(this);
} else {
new ConnectListener(wcl).waitForConnection(nioHandler);
}
}
}
private class ConnectListener implements ConnectHandler {
private NioHandler nioHandler;
private final WebConnectionListener wcl;
private Long timeout;
public ConnectListener(final WebConnectionListener wcl) {
this.wcl = wcl;
}
public void waitForConnection(final NioHandler nioHandler) {
this.nioHandler = nioHandler;
timeout = nioHandler.getDefaultTimeout();
nioHandler.waitForConnect(channel, this);
}
@Override
public void closed() {
wcl.failed(new IOException("channel closed before connect"));
}
@Override
public void timeout() {
closeDown();
wcl.timeout();
}
@Override
public boolean useSeparateThread() {
return false;
}
@Override
public String getDescription() {
return "WebConnection$ConnectListener: address: " + address;
}
@Override
public Long getTimeout() {
return timeout;
}
@Override
public void connect() {
try {
channel.finishConnect();
wcl.connectionEstablished(WebConnection.this);
} catch (IOException e) {
closeDown();
wcl.failed(e);
}
}
private void closeDown() {
try {
close();
nioHandler.close(channel);
} catch (IOException e) {
log.warn("Failed to close down WebConnection", e);
}
}
@Override public String toString() {
return getClass().getSimpleName() + "{" + address + "}@" +
Integer.toString(hashCode(), 16);
}
}
/** Set the keepalive value for this WebConnection,
* Can only be turned off.
* @param b the new keepalive value.
*/
public void setKeepalive(final boolean b) {
keepalive &= b;
}
/** Get the keepalive value of this WebConnection.
* @return true if this WebConnection may be reused.
*/
public boolean getKeepalive() {
return keepalive;
}
/** Mark this WebConnection as released at current time.
*/
public void setReleased() {
releasedAt = System.currentTimeMillis();
}
/** Get the time that this WebConnection was released.
* @return the time this WebConnection was last released.
*/
public long getReleasedAt() {
return releasedAt;
}
}
|
{
"content_hash": "c0ac9335031292b9c10b8167885dd9af",
"timestamp": "",
"source": "github",
"line_count": 197,
"max_line_length": 85,
"avg_line_length": 31.553299492385786,
"alnum_prop": 0.5931467181467182,
"repo_name": "toonetown/rabbit-maven",
"id": "05729ec70165b9064e91594c339d2effcdd4cb0f",
"size": "6216",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/rabbit/io/WebConnection.java",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Java",
"bytes": "359480"
}
],
"symlink_target": ""
}
|
'use strict';
var gulp = require('gulp');
var sass = require('gulp-sass');
var postcss = require('gulp-postcss');
var autoprefixer = require('autoprefixer');
var cssnano = require('cssnano');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
gulp.task('compile-sass', function () {
var plugins = [
autoprefixer( { browsers: [ 'last 2 versions' ] } ),
cssnano()
];
return gulp.src(['node_modules/animate.css/animate.css', 'dev/scss/styles.scss'])
.pipe(sass())
.pipe(postcss(plugins))
.pipe(concat('app.css'))
.pipe(gulp.dest('dist/css'));
});
gulp.task('compile-js', function () {
return gulp.src(['node_modules/jquery/dist/jquery.js', 'node_modules/materialize-css/dist/js/materialize.js', 'dev/js/**/*.js'])
.pipe(concat('app.js'))
.pipe(uglify())
.pipe(gulp.dest('dist/js'));
});
gulp.task('watch', function () {
gulp.watch('dev/scss/**/*.scss', ['compile-sass']);
gulp.watch('dev/js/**/*.js', ['compile-js']);
});
gulp.task('default', ['compile-sass', 'compile-js']);
|
{
"content_hash": "f5563da77275ea000dec132eda2395ec",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 132,
"avg_line_length": 30.25,
"alnum_prop": 0.6051423324150597,
"repo_name": "3xMMM/my-sound-grid",
"id": "3bb9c21e3ae7b9824aa7cd05f68ac58cf97a4c0e",
"size": "1089",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "gulpfile.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "17014"
},
{
"name": "JavaScript",
"bytes": "7878"
}
],
"symlink_target": ""
}
|
FROM alpine:latest
MAINTAINER Philip O'Toole <philip.otoole@yahoo.com>
ENV RQLITE_VERSION=7.11.0
RUN apk update && \
apk --no-cache add curl tar && \
curl -L https://github.com/rqlite/rqlite/releases/download/v${RQLITE_VERSION}/rqlite-v${RQLITE_VERSION}-linux-amd64-musl.tar.gz -o rqlite-v${RQLITE_VERSION}-linux-amd64-musl.tar.gz && \
tar xvfz rqlite-v${RQLITE_VERSION}-linux-amd64-musl.tar.gz && \
cp rqlite-v${RQLITE_VERSION}-linux-amd64-musl/rqlited /bin && \
cp rqlite-v${RQLITE_VERSION}-linux-amd64-musl/rqlite /bin && \
rm -fr rqlite-v${RQLITE_VERSION}-linux-amd64-musl rqlite-v${RQLITE_VERSION}-linux-amd64-musl.tar.gz && \
apk del curl tar
RUN mkdir -p /rqlite/file
VOLUME /rqlite/file
EXPOSE 4001 4002
COPY docker-entrypoint.sh /bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["rqlite"]
|
{
"content_hash": "6ff1a288245f9dedcf40b5d9daf1f5db",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 189,
"avg_line_length": 35.416666666666664,
"alnum_prop": 0.7129411764705882,
"repo_name": "rqlite/rqlite-docker",
"id": "5c392fbaf2f45e1da1b44e9d711b6f9760689ede",
"size": "850",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "7.11.0/Dockerfile",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Dockerfile",
"bytes": "74444"
},
{
"name": "Shell",
"bytes": "45032"
}
],
"symlink_target": ""
}
|
package org.nem.ncc.controller.requests;
import net.minidev.json.JSONObject;
import org.hamcrest.core.*;
import org.junit.*;
import org.nem.core.model.Address;
import org.nem.core.serialization.JsonDeserializer;
import org.nem.core.time.*;
import org.nem.ncc.test.Utils;
public class AccountTimeStampRequestTest {
private static final long TWENTY_FIVE_SECONDS_AFTER_EPOCH = SystemTimeProvider.getEpochTimeMillis() + 25 * 1000;
//region constructor
@Test
public void requestCanBeCreated() {
// Act:
final Address address = Utils.generateRandomAddress();
final AccountTimeStampRequest request = new AccountTimeStampRequest(address, TWENTY_FIVE_SECONDS_AFTER_EPOCH);
// Assert:
Assert.assertThat(request.getAccountId(), IsEqual.equalTo(address));
Assert.assertThat(request.getTimeStamp(), IsEqual.equalTo(new TimeInstant(25)));
}
@Test
public void requestCanBeCreatedWithoutTimeStamp() {
// Act:
final Address address = Utils.generateRandomAddress();
final AccountTimeStampRequest request = new AccountTimeStampRequest(address, null);
// Assert:
Assert.assertThat(request.getAccountId(), IsEqual.equalTo(address));
Assert.assertThat(request.getTimeStamp(), IsNull.nullValue());
}
//endregion
//region serialization
@Test
public void requestCanBeRoundTripped() {
// Arrange:
final Address address = Utils.generateRandomAddress();
// Act:
final AccountTimeStampRequest request = this.createRequestFromJson(address.getEncoded(), TWENTY_FIVE_SECONDS_AFTER_EPOCH);
// Assert:
Assert.assertThat(request.getAccountId(), IsEqual.equalTo(address));
Assert.assertThat(request.getTimeStamp(), IsEqual.equalTo(new TimeInstant(25)));
}
@Test
public void requestCanBeRoundTrippedWithoutTimeStamp() {
// Arrange:
final Address address = Utils.generateRandomAddress();
// Act:
final AccountTimeStampRequest request = this.createRequestFromJson(address.getEncoded(), null);
// Assert:
Assert.assertThat(request.getAccountId(), IsEqual.equalTo(address));
Assert.assertThat(request.getTimeStamp(), IsNull.nullValue());
}
@Test(expected = IllegalArgumentException.class)
public void requestCannotBeCreatedAroundInvalidAccountId() {
// Act:
new AccountTimeStampRequest(Address.fromEncoded("FOO"), null);
}
//endregion
private AccountTimeStampRequest createRequestFromJson(
final String address,
final Long timeStamp) {
final JSONObject jsonObject = new JSONObject();
jsonObject.put("account", address);
jsonObject.put("timeStamp", timeStamp);
return new AccountTimeStampRequest(new JsonDeserializer(jsonObject, null));
}
}
|
{
"content_hash": "95ae3fe57fc6d646866b64a0c8226b9e",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 124,
"avg_line_length": 31.047619047619047,
"alnum_prop": 0.7691717791411042,
"repo_name": "filchef/NemCommunityClient",
"id": "506c918712aa123a03110095aa62f72828a7fafc",
"size": "2608",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "nem-client-api/src/test/java/org/nem/ncc/controller/requests/AccountTimeStampRequestTest.java",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
namespace PCAP {
ICMPPackage::ICMPPackage(const uchar *p, uint l, bool modify)
: IPPackage{p, l, modify} {
m_icmp = (struct snifficmp *)(m_package + sizeof(sniffethernet) +
sizeof(sniffip));
m_data = (m_package + sizeof(sniffethernet) + sizeof(sniffip) +
sizeof(snifficmp));
}
uchar ICMPPackage::get_type() const { return m_icmp->m_type; }
void ICMPPackage::set_type(uchar type) { m_icmp->m_type = type; }
uchar ICMPPackage::get_code() const { return m_icmp->m_code; }
void ICMPPackage::set_code(uchar code) { m_icmp->m_code = code; }
void ICMPPackage::recalculate_checksums() {
PCAPHelper::set_ip_checksum(m_ip);
PCAPHelper::set_icmp_checksum(m_ip, m_icmp);
}
const uchar *ICMPPackage::get_data() const { return m_data; }
uint ICMPPackage::get_data_length() const {
return ntohs(m_ip->m_ip_len) - sizeof(*m_icmp) - sizeof(*m_ip);
}
void ICMPPackage::append_data(uchar *data, int size) {
memcpy(&m_package[get_length()], (char *)data, size);
m_ip->m_ip_len = htons(ntohs(m_ip->m_ip_len) + size);
}
uint ICMPPackage::get_length() const {
return sizeof(*m_ethernet) + ntohs(m_ip->m_ip_len);
}
bool operator==(const ICMPPackage &lhs, const ICMPPackage &rhs) {
return static_cast<const IPPackage &>(lhs) ==
static_cast<const IPPackage &>(rhs) &&
memcmp(lhs.m_icmp, rhs.m_icmp, sizeof(snifficmp)) == 0;
}
bool operator!=(const ICMPPackage &lhs, const ICMPPackage &rhs) {
return !(lhs == rhs);
}
}
|
{
"content_hash": "8ce803e380e960cb637918343baa0905",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 69,
"avg_line_length": 31.708333333333332,
"alnum_prop": 0.6366622864651774,
"repo_name": "jef42/pcapwrapper",
"id": "1aef629056f3ad631847044f2dcc6f59e7be93e6",
"size": "1672",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/network/packages/icmppackage.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "205"
},
{
"name": "C++",
"bytes": "245964"
},
{
"name": "CMake",
"bytes": "2455"
}
],
"symlink_target": ""
}
|
document.getElementById("slidermain").innerHTML = for (i = 0; i < 5; i++) {i};
|
{
"content_hash": "7cc4bb49ec7e87828edf2cc355172803",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 82,
"avg_line_length": 83,
"alnum_prop": 0.6024096385542169,
"repo_name": "miguelesquirol/Miguel-Portfolio",
"id": "86069479b639979d8a802ea1ee3f8a3ce4ab80a9",
"size": "84",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "slider.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "18791"
},
{
"name": "HTML",
"bytes": "22226"
},
{
"name": "Hack",
"bytes": "39801"
},
{
"name": "JavaScript",
"bytes": "2632"
},
{
"name": "PHP",
"bytes": "1342"
}
],
"symlink_target": ""
}
|
'use strict';
jest.unmock('keyMirror');
var keyMirror = require('keyMirror');
describe('keyMirror', function() {
it('should create an object with values matching keys provided', function() {
var mirror = keyMirror({
foo: null,
bar: true,
"baz": {some: "object"},
qux: undefined
});
expect('foo' in mirror).toBe(true);
expect(mirror.foo).toBe('foo');
expect('bar' in mirror).toBe(true);
expect(mirror.bar).toBe('bar');
expect('baz' in mirror).toBe(true);
expect(mirror.baz).toBe('baz');
expect('qux' in mirror).toBe(true);
expect(mirror.qux).toBe('qux');
});
it('should not use properties from prototypes', function() {
function Klass() {
this.useMeToo = true;
}
Klass.prototype.doNotUse = true;
var instance = new Klass();
instance.useMe = true;
var mirror = keyMirror(instance);
expect('doNotUse' in mirror).toBe(false);
expect('useMe' in mirror).toBe(true);
expect('useMeToo' in mirror).toBe(true);
});
it('should throw when a non-object argument is used', function() {
[null, undefined, 0, 7, ['uno'], true, "string"].forEach(function(testVal) {
expect(keyMirror.bind(null, testVal)).toThrow();
});
});
it('should work when "constructor" is a key', function() {
var obj = {constructor: true};
expect(keyMirror.bind(null, obj)).not.toThrow();
var mirror = keyMirror(obj);
expect('constructor' in mirror).toBe(true);
});
});
|
{
"content_hash": "0126cdc978712aef23c8f369dc5e6eae",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 80,
"avg_line_length": 27.555555555555557,
"alnum_prop": 0.6216397849462365,
"repo_name": "chicoxyzzy/fbjs",
"id": "b65ce0aa41b2d1564170a4edbaa6d7b83f0d674f",
"size": "1821",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "packages/fbjs/src/key-mirror/__tests__/keyMirror-test.js",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "JavaScript",
"bytes": "446786"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
-->
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. -->
<resources xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string-array name="wfcOperatorErrorAlertMessages">
<item msgid="2780619740658228275">"Per poter effettuare chiamate e inviare messaggi tramite Wi-Fi, devi chiedere all\'operatore di attivare il servizio. Dopodiché, riattiva le chiamate Wi-Fi dalle Impostazioni."</item>
</string-array>
<string-array name="wfcOperatorErrorNotificationMessages">
<item msgid="4633656294483906293">"Registrati con il tuo operatore"</item>
</string-array>
<string name="wfcSpnFormat" msgid="1518868466785799436">"Chiamate Wi-Fi %s"</string>
</resources>
|
{
"content_hash": "9705c72e0aaf12a1209eec29c47af77c",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 222,
"avg_line_length": 48.05555555555556,
"alnum_prop": 0.7410404624277457,
"repo_name": "xorware/android_frameworks_base",
"id": "592190d25983bdd3ef2f92b00df5a824209be062",
"size": "1479",
"binary": false,
"copies": "7",
"ref": "refs/heads/n",
"path": "core/res/res/values-mcc310-mnc490-it/strings.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "167132"
},
{
"name": "C++",
"bytes": "7092455"
},
{
"name": "GLSL",
"bytes": "20654"
},
{
"name": "HTML",
"bytes": "224185"
},
{
"name": "Java",
"bytes": "78926513"
},
{
"name": "Makefile",
"bytes": "420231"
},
{
"name": "Python",
"bytes": "42309"
},
{
"name": "RenderScript",
"bytes": "153826"
},
{
"name": "Shell",
"bytes": "21079"
}
],
"symlink_target": ""
}
|
package com.orientechnologies.orient.core.sql.functions.graph;
/**
* Heuristic formula enum.
*
* @author Saeed Tabrizi (saeed a_t nowcando.com)
*/
public enum HeuristicFormula {
MANHATAN,
MAXAXIS,
DIAGONAL,
EUCLIDEAN,
EUCLIDEANNOSQR,
CUSTOM
}
|
{
"content_hash": "035322bac6509a38e7b7d8538365cc5f",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 62,
"avg_line_length": 16.3125,
"alnum_prop": 0.7203065134099617,
"repo_name": "orientechnologies/orientdb",
"id": "d1614dd3aff837be7c2838f328e3d29ed3af5b27",
"size": "993",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "core/src/main/java/com/orientechnologies/orient/core/sql/functions/graph/HeuristicFormula.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "19302"
},
{
"name": "Dockerfile",
"bytes": "705"
},
{
"name": "Gnuplot",
"bytes": "1245"
},
{
"name": "Groovy",
"bytes": "7913"
},
{
"name": "HTML",
"bytes": "5750"
},
{
"name": "Java",
"bytes": "26588383"
},
{
"name": "JavaScript",
"bytes": "259"
},
{
"name": "PLpgSQL",
"bytes": "54881"
},
{
"name": "Shell",
"bytes": "33650"
}
],
"symlink_target": ""
}
|
package game.geography.geography;
public class LandName {
private final String name;
public LandName(String name) {
this.name = name;
}
@Override
public boolean equals(Object other) {
if (other == null || getClass() != other.getClass()) {
return false;
}
LandName that = (LandName) other;
return this.name.equals(that.name);
}
@Override
public int hashCode() {
return name.hashCode();
}
@Override
public String toString() {
return name;
}
}
|
{
"content_hash": "514d1b23b1e8ba001105cf9d7e749a56",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 62,
"avg_line_length": 20.071428571428573,
"alnum_prop": 0.5711743772241993,
"repo_name": "Hans-and-Peter/game-geography",
"id": "15ece2fcf8563a20005b5a20542bb6cfdc2ab9f0",
"size": "562",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "geography/src/main/java/game/geography/geography/LandName.java",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Batchfile",
"bytes": "171"
},
{
"name": "Java",
"bytes": "21857"
},
{
"name": "Ruby",
"bytes": "7228"
},
{
"name": "Shell",
"bytes": "2975"
}
],
"symlink_target": ""
}
|
namespace net {
class URLRequest;
}
namespace webkit {
struct WebPluginInfo;
}
namespace content {
class ResourceDispatcherHostImpl;
// Used to buffer a request until enough data has been received.
class BufferedResourceHandler
: public LayeredResourceHandler,
public ResourceController {
public:
BufferedResourceHandler(scoped_ptr<ResourceHandler> next_handler,
ResourceDispatcherHostImpl* host,
net::URLRequest* request);
virtual ~BufferedResourceHandler();
private:
// ResourceHandler implementation:
virtual void SetController(ResourceController* controller) OVERRIDE;
virtual bool OnResponseStarted(int request_id,
ResourceResponse* response,
bool* defer) OVERRIDE;
virtual bool OnWillRead(int request_id,
net::IOBuffer** buf,
int* buf_size,
int min_size) OVERRIDE;
virtual bool OnReadCompleted(int request_id, int bytes_read,
bool* defer) OVERRIDE;
virtual bool OnResponseCompleted(int request_id,
const net::URLRequestStatus& status,
const std::string& security_info) OVERRIDE;
// ResourceController implementation:
virtual void Resume() OVERRIDE;
virtual void Cancel() OVERRIDE;
virtual void CancelAndIgnore() OVERRIDE;
virtual void CancelWithError(int error_code) OVERRIDE;
bool ProcessResponse(bool* defer);
bool ShouldSniffContent();
bool DetermineMimeType();
bool SelectNextHandler(bool* defer);
bool UseAlternateNextHandler(scoped_ptr<ResourceHandler> handler);
bool ReplayReadCompleted(bool* defer);
void CallReplayReadCompleted();
bool MustDownload();
bool HasSupportingPlugin(bool* is_stale);
// Copies data from |read_buffer_| to |next_handler_|.
bool CopyReadBufferToNextHandler(int request_id);
// Called on the IO thread once the list of plugins has been loaded.
void OnPluginsLoaded(const std::vector<webkit::WebPluginInfo>& plugins);
enum State {
STATE_STARTING,
// In this state, we are filling read_buffer_ with data for the purpose
// of sniffing the mime type of the response.
STATE_BUFFERING,
// In this state, we are select an appropriate downstream ResourceHandler
// based on the mime type of the response. We are also potentially waiting
// for plugins to load so that we can determine if a plugin is available to
// handle the mime type.
STATE_PROCESSING,
// In this state, we are replaying buffered events (OnResponseStarted and
// OnReadCompleted) to the downstream ResourceHandler.
STATE_REPLAYING,
// In this state, we are just a blind pass-through ResourceHandler.
STATE_STREAMING
};
State state_;
scoped_refptr<ResourceResponse> response_;
ResourceDispatcherHostImpl* host_;
net::URLRequest* request_;
scoped_refptr<net::IOBuffer> read_buffer_;
int read_buffer_size_;
int bytes_read_;
bool must_download_;
bool must_download_is_set_;
base::WeakPtrFactory<BufferedResourceHandler> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(BufferedResourceHandler);
};
} // namespace content
#endif // CONTENT_BROWSER_RENDERER_HOST_BUFFERED_RESOURCE_HANDLER_H_
|
{
"content_hash": "2d6dd1316db5b8e8f97fad37a9de88ce",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 79,
"avg_line_length": 32.85294117647059,
"alnum_prop": 0.6890480453595942,
"repo_name": "leighpauls/k2cro4",
"id": "0d85c6d586a7d2b42c12865e56857199b69f3f0f",
"size": "3852",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "content/browser/renderer_host/buffered_resource_handler.h",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ASP",
"bytes": "3062"
},
{
"name": "AppleScript",
"bytes": "25392"
},
{
"name": "Arduino",
"bytes": "464"
},
{
"name": "Assembly",
"bytes": "68131038"
},
{
"name": "C",
"bytes": "242794338"
},
{
"name": "C#",
"bytes": "11024"
},
{
"name": "C++",
"bytes": "353525184"
},
{
"name": "Common Lisp",
"bytes": "3721"
},
{
"name": "D",
"bytes": "1931"
},
{
"name": "Emacs Lisp",
"bytes": "1639"
},
{
"name": "F#",
"bytes": "4992"
},
{
"name": "FORTRAN",
"bytes": "10404"
},
{
"name": "Java",
"bytes": "3845159"
},
{
"name": "JavaScript",
"bytes": "39146656"
},
{
"name": "Lua",
"bytes": "13768"
},
{
"name": "Matlab",
"bytes": "22373"
},
{
"name": "Objective-C",
"bytes": "21887598"
},
{
"name": "PHP",
"bytes": "2344144"
},
{
"name": "Perl",
"bytes": "49033099"
},
{
"name": "Prolog",
"bytes": "2926122"
},
{
"name": "Python",
"bytes": "39863959"
},
{
"name": "R",
"bytes": "262"
},
{
"name": "Racket",
"bytes": "359"
},
{
"name": "Ruby",
"bytes": "304063"
},
{
"name": "Scheme",
"bytes": "14853"
},
{
"name": "Shell",
"bytes": "9195117"
},
{
"name": "Tcl",
"bytes": "1919771"
},
{
"name": "Verilog",
"bytes": "3092"
},
{
"name": "Visual Basic",
"bytes": "1430"
},
{
"name": "eC",
"bytes": "5079"
}
],
"symlink_target": ""
}
|
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Configuration;
using System.Linq;
using System.Web;
namespace afung.MangaWeb3.Server
{
public class Config
{
private static NameValueCollection __section = null;
private static NameValueCollection AppSettings
{
get
{
if (__section == null)
{
ConfigurationManager.RefreshSection("appSettings");
__section = (NameValueCollection)ConfigurationManager.GetSection("appSettings");
}
return __section;
}
}
public static bool IsInstalled
{
get
{
string installed = AppSettings["MangaWebInstalled"];
return String.IsNullOrWhiteSpace(installed) ? false : Boolean.Parse(installed);
}
}
public static string MySQLServer
{
get
{
return AppSettings["MangaWebMySQLServer"];
}
}
public static int MySQLPort
{
get
{
string port = AppSettings["MangaWebMySQLPort"];
return String.IsNullOrWhiteSpace(port) ? 0 : int.Parse(port);
}
}
public static string MySQLUser
{
get
{
return AppSettings["MangaWebMySQLUser"];
}
}
public static string MySQLPassword
{
get
{
return AppSettings["MangaWebMySQLPassword"];
}
}
public static string MySQLDatabase
{
get
{
return AppSettings["MangaWebMySQLDatabase"];
}
}
public static string SevenZipDllPath
{
get
{
return AppSettings["MangaWeb7zDll"];
}
}
public static void Refresh(NameValueCollection settings)
{
__section = settings;
}
}
}
|
{
"content_hash": "b1dc70ed3b544906c17f874dde615242",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 100,
"avg_line_length": 23.855555555555554,
"alnum_prop": 0.4918490917559385,
"repo_name": "a-fung/MangaWeb3",
"id": "15404fe06792bfd9f763b1a6a69ec8dcf0c38fc0",
"size": "2149",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "source/aspnetserver/Config.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ASP",
"bytes": "2543"
},
{
"name": "C#",
"bytes": "483550"
},
{
"name": "CSS",
"bytes": "7218"
},
{
"name": "Haxe",
"bytes": "182402"
},
{
"name": "JavaScript",
"bytes": "234"
},
{
"name": "PHP",
"bytes": "2778"
},
{
"name": "PowerShell",
"bytes": "8580"
}
],
"symlink_target": ""
}
|
struct Foo<const N: usize, 'a, T = u32>(&'a (), T);
//~^ Error lifetime parameters must be declared prior to const parameters
struct Bar<const N: usize, T = u32, 'a>(&'a (), T);
//~^ Error lifetime parameters must be declared prior to type parameters
fn main() {}
|
{
"content_hash": "d81f6747d53775102b4926ab3b2b21ac",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 73,
"avg_line_length": 38,
"alnum_prop": 0.6654135338345865,
"repo_name": "graydon/rust",
"id": "cc215ab0c2517e1269f570ce38b040536c56c159",
"size": "401",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "src/test/ui/const-generics/defaults/intermixed-lifetime.rs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ANTLR",
"bytes": "4990"
},
{
"name": "Assembly",
"bytes": "20064"
},
{
"name": "Awk",
"bytes": "159"
},
{
"name": "Bison",
"bytes": "78848"
},
{
"name": "C",
"bytes": "725899"
},
{
"name": "C++",
"bytes": "55803"
},
{
"name": "CSS",
"bytes": "22181"
},
{
"name": "JavaScript",
"bytes": "36295"
},
{
"name": "LLVM",
"bytes": "1587"
},
{
"name": "Makefile",
"bytes": "227056"
},
{
"name": "Puppet",
"bytes": "16300"
},
{
"name": "Python",
"bytes": "142548"
},
{
"name": "RenderScript",
"bytes": "99815"
},
{
"name": "Rust",
"bytes": "18342682"
},
{
"name": "Shell",
"bytes": "269546"
},
{
"name": "TeX",
"bytes": "57"
}
],
"symlink_target": ""
}
|
influxdb-ios
============
This is a placeholder. We encourage you to submit a pull request if you have a contribution. If you make a PR please explicitly call @beckettsean to get eyes on your PR.
|
{
"content_hash": "aff79ae2574356b40dbf56b38344ec9e",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 169,
"avg_line_length": 49.25,
"alnum_prop": 0.7360406091370558,
"repo_name": "influxdb/influxdb-ios",
"id": "bda572032062188a83c217511401d77755028daf",
"size": "197",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
export const isBrowserSupported = true;
export const isIOS = false;
export const isAndroidChrome = false;
|
{
"content_hash": "27cfaa3d6ea38100bd8248f8d613f3ab",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 39,
"avg_line_length": 35.333333333333336,
"alnum_prop": 0.8018867924528302,
"repo_name": "nusmodifications/nusmods",
"id": "ffc81602a2e3ad392236ae2f5906963e508ce49a",
"size": "106",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "website/src/bootstrapping/__mocks__/browser.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "14492"
},
{
"name": "EJS",
"bytes": "2514"
},
{
"name": "HTML",
"bytes": "3726"
},
{
"name": "JavaScript",
"bytes": "82040"
},
{
"name": "Pug",
"bytes": "946"
},
{
"name": "SCSS",
"bytes": "121325"
},
{
"name": "Shell",
"bytes": "5560"
},
{
"name": "TypeScript",
"bytes": "1318317"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by 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 express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item android:state_enabled="false" android:color="?attr/colorControlNormal" app:alpha="?android:disabledAlpha"/>
<item android:state_focused="true" android:color="?attr/colorControlActivated"/>
<item android:state_pressed="true" android:color="?attr/colorControlActivated"/>
<item android:state_activated="true" android:color="?attr/colorControlActivated"/>
<item android:state_selected="true" android:color="?attr/colorControlActivated"/>
<item android:state_checked="true" android:color="?attr/colorControlActivated"/>
<item android:color="?attr/colorControlNormal"/>
</selector><!-- From: file:/var/folders/3_/4jx_426x3zg68w642z0zd1yh0000gn/T/1629913635566_0.8713256614538494-0/youngandroidproject/../build/exploded-aars/androidx.appcompat/res/color/abc_tint_default.xml -->
|
{
"content_hash": "676f2c395556c118c781de1573c4c948",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 207,
"avg_line_length": 62.03846153846154,
"alnum_prop": 0.7383756974581525,
"repo_name": "josmas/app-inventor",
"id": "0fe006f45c4c760c79c98b40fdea801f7b914ee7",
"size": "1613",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "appinventor/components/tests/res/color/abc_tint_default.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "AMPL",
"bytes": "3281"
},
{
"name": "Batchfile",
"bytes": "4359"
},
{
"name": "CSS",
"bytes": "170379"
},
{
"name": "Dockerfile",
"bytes": "535"
},
{
"name": "HTML",
"bytes": "1332403"
},
{
"name": "Java",
"bytes": "8152959"
},
{
"name": "JavaScript",
"bytes": "606954"
},
{
"name": "Python",
"bytes": "205314"
},
{
"name": "Ruby",
"bytes": "1069"
},
{
"name": "SCSS",
"bytes": "12605"
},
{
"name": "Scheme",
"bytes": "159943"
},
{
"name": "Shell",
"bytes": "7949"
}
],
"symlink_target": ""
}
|
<?php namespace App\Http\Controllers;
use Illuminate\Routing\Controller;
class VRConnectionsRolesPermissionsController extends Controller {
/**
* Display a listing of the resource.
* GET /vrconnectionsrolespermissions
*
* @return Response
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
* GET /vrconnectionsrolespermissions/create
*
* @return Response
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
* POST /vrconnectionsrolespermissions
*
* @return Response
*/
public function store()
{
//
}
/**
* Display the specified resource.
* GET /vrconnectionsrolespermissions/{id}
*
* @param int $id
* @return Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
* GET /vrconnectionsrolespermissions/{id}/edit
*
* @param int $id
* @return Response
*/
public function edit($id)
{
//
}
/**
* Update the specified resource in storage.
* PUT /vrconnectionsrolespermissions/{id}
*
* @param int $id
* @return Response
*/
public function update($id)
{
//
}
/**
* Remove the specified resource from storage.
* DELETE /vrconnectionsrolespermissions/{id}
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
//
}
}
|
{
"content_hash": "d285bf7b64ae1f4de06c4b499a07d7f4",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 66,
"avg_line_length": 15.590909090909092,
"alnum_prop": 0.6450437317784257,
"repo_name": "RamintaRam/atrask_vr",
"id": "95b61bfab05b4fd4b4c3ccf204013499c1406d38",
"size": "1372",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/Http/Controllers/VRConnectionsRolesPermissionsController.php",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ApacheConf",
"bytes": "553"
},
{
"name": "HTML",
"bytes": "38819"
},
{
"name": "PHP",
"bytes": "169807"
},
{
"name": "Vue",
"bytes": "563"
}
],
"symlink_target": ""
}
|
/*
* TRYING TO OPTIMIZE LayoutCache
* SEE http://stackoverflow.com/questions/21112208/how-to-avoid-key-copying-when-using-boost-bimap
*/
#pragma once
#include <string>
#include <iostream>
#include <boost/bimap.hpp>
#include <boost/bimap/list_of.hpp>
#include <boost/bimap/set_of.hpp>
class Test
{
public:
struct ComplexKey
{
std::string text;
int dummy;
ComplexKey(const std::string &text, int dummy) : text(text), dummy(dummy) {}
~ComplexKey()
{
std::cout << "~ComplexKey " << (void*)this << " " << text << std::endl;
}
bool operator<(const ComplexKey &rhs) const
{
return tie(text, dummy) < tie(rhs.text, rhs.dummy);
}
};
typedef boost::bimaps::bimap<
boost::bimaps::set_of<ComplexKey>,
boost::bimaps::list_of<std::string>
> container_type;
container_type cache;
void run()
{
getValue("foo", 123); // 3 COPIES
getValue("bar", 456); // 3 COPIES
getValue("foo", 123); // 2 COPIES
}
std::string getValue(const std::string &text, int dummy)
{
const ComplexKey key(text, dummy); // COPY #1 OF text
auto it = cache.left.find(key); // COPY #2 OF text (BECAUSE key IS COPIED)
if (it != cache.left.end())
{
return it->second;
}
else
{
auto value = std::to_string(text.size()) + "." + std::to_string(dummy); // WHATEVER...
cache.insert(typename container_type::value_type(key, value)); // COPY #3 OF text
return value;
}
}
};
|
{
"content_hash": "dda216255c53f0bb8986f7989074880c",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 98,
"avg_line_length": 25.104477611940297,
"alnum_prop": 0.5368608799048752,
"repo_name": "SlateScience/Unicode",
"id": "312ea11f561e0b40273455d0280e309828f947cd",
"size": "1682",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "Projects/LayoutCaching/src/Test.h",
"mode": "33188",
"license": "bsd-2-clause",
"language": [],
"symlink_target": ""
}
|
package walkingdevs.bytes;
import java.util.Arrays;
class BytesImpl implements Bytes {
public byte[] get() {
return bytes;
}
public byte[] copy() {
return Arrays.copyOf(bytes, length());
}
public int length() {
return bytes.length;
}
public boolean isEmpty() {
return length() == 0;
}
@Override
public int hashCode() {
return Arrays.hashCode(bytes);
}
@Override
public boolean equals(Object object) {
if (object == null || !(object instanceof Bytes)) {
return false;
}
Bytes other = (Bytes) object;
if (other.length() != length()) {
return false;
}
byte[] otherBytes = other.get();
for (int i = 0; i < otherBytes.length; i++) {
if (otherBytes[i] != bytes[i]) {
return false;
}
}
return true;
}
@Override
public String toString() {
if (isEmpty()) {
return "";
}
int to = 10;
if (length() < 10) {
to = length();
}
String string = "";
for (int i = 0; i < to-1; i++) {
string += bytes[i] + ", ";
}
return string + bytes[to-1];
}
BytesImpl(byte[] bytes) {
this.bytes = bytes;
}
private final byte[] bytes;
}
|
{
"content_hash": "714273932d7c606faea88e68d3995ad3",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 59,
"avg_line_length": 20.96969696969697,
"alnum_prop": 0.4725433526011561,
"repo_name": "walkingdevs/sdk",
"id": "69395d7b87052ee6f38c1a4ddb48821c2b079f57",
"size": "1384",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/walkingdevs/bytes/BytesImpl.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "113074"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="UTF-8" ?>
<module>
<name>statsequipment</name>
<displayName><![CDATA[Browsers and operating systems]]></displayName>
<version><![CDATA[1.2.3]]></version>
<description><![CDATA[Adds a tab containing graphs about web browser and operating system usage to the Stats dashboard.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[analytics_stats]]></tab>
<is_configurable>0</is_configurable>
<need_instance>0</need_instance>
<limited_countries></limited_countries>
</module>
|
{
"content_hash": "94662515f0d4bbab27645d6abb301278",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 137,
"avg_line_length": 44,
"alnum_prop": 0.7196969696969697,
"repo_name": "lotosbin/prestashop-docker-compose",
"id": "57055c63d0c1d498f907ff5367a71bdb9eb699a1",
"size": "528",
"binary": false,
"copies": "7",
"ref": "refs/heads/master",
"path": "prestashop/modules/statsequipment/config.xml",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "2179"
},
{
"name": "C",
"bytes": "33908"
},
{
"name": "CSS",
"bytes": "1198887"
},
{
"name": "HTML",
"bytes": "279238"
},
{
"name": "JavaScript",
"bytes": "1742365"
},
{
"name": "PHP",
"bytes": "18298865"
},
{
"name": "Ruby",
"bytes": "1282"
},
{
"name": "Smarty",
"bytes": "2569653"
}
],
"symlink_target": ""
}
|
package org.trifort.rootbeer.testcases.rootbeertest.kerneltemplate;
import org.trifort.rootbeer.runtime.Kernel;
import org.trifort.rootbeer.runtime.RootbeerGpu;
public class MultiDimThreadIdxKernelTemplateRunOnGpu implements Kernel {
private int[] results;
public MultiDimThreadIdxKernelTemplateRunOnGpu(int[] results){
this.results = results;
}
@Override
public void gpuMethod() {
int index = RootbeerGpu.getThreadId();
results[index] = index;
}
public boolean compare() {
boolean pass = true;
for(int i = 0; i < results.length; ++i){
if(results[i] != i){
System.out.println("fail index: "+i);
pass = false;
}
}
return pass;
}
}
|
{
"content_hash": "e51c5384fef64e02e9558c0306ac66fb",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 72,
"avg_line_length": 23.733333333333334,
"alnum_prop": 0.6783707865168539,
"repo_name": "yarenty/rootbeer1",
"id": "0c2cca525ad9fc31de1171ab2eb4a76af85c47ca",
"size": "712",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/org/trifort/rootbeer/testcases/rootbeertest/kerneltemplate/MultiDimThreadIdxKernelTemplateRunOnGpu.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "1736"
},
{
"name": "C",
"bytes": "131518"
},
{
"name": "GAP",
"bytes": "1508"
},
{
"name": "Java",
"bytes": "1130591"
},
{
"name": "Matlab",
"bytes": "499"
},
{
"name": "PowerShell",
"bytes": "2351"
},
{
"name": "Ruby",
"bytes": "1192"
},
{
"name": "Shell",
"bytes": "8179"
}
],
"symlink_target": ""
}
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_file_w32_spawnlp_81_bad.cpp
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-81_bad.tmpl.cpp
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: file Read input from a file
* GoodSource: Fixed string
* Sinks: w32_spawnlp
* BadSink : execute command with spawnlp
* Flow Variant: 81 Data flow: data passed in a parameter to an virtual method called via a reference
*
* */
#ifndef OMITBAD
#include "std_testcase.h"
#include "CWE78_OS_Command_Injection__char_file_w32_spawnlp_81.h"
#include <process.h>
namespace CWE78_OS_Command_Injection__char_file_w32_spawnlp_81
{
void CWE78_OS_Command_Injection__char_file_w32_spawnlp_81_bad::action(char * data) const
{
/* spawnlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
_spawnlp(_P_WAIT, COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
}
}
#endif /* OMITBAD */
|
{
"content_hash": "61389f1cbda02ecee2f606535ec56d69",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 104,
"avg_line_length": 34.457142857142856,
"alnum_prop": 0.7205638474295191,
"repo_name": "maurer/tiamat",
"id": "48b0833983149d52a1e840cd7a0e17a74a5cb79f",
"size": "1206",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "samples/Juliet/testcases/CWE78_OS_Command_Injection/s04/CWE78_OS_Command_Injection__char_file_w32_spawnlp_81_bad.cpp",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<mx.citydevs.hackcdmx.views.CustomTextView
android:id="@+id/fragment_rank_question_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="20dp"
android:textSize="30sp"
android:textColor="@color/colorText"
android:text="@string/evalua_label"
app:typeface="Tw_Cen_MT_Bold"/>
<mx.citydevs.hackcdmx.views.CustomTextView
android:id="@+id/fragment_rank_question"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/fragment_rank_question_label"
android:layout_above="@+id/fragment_rank_question_container"
android:gravity="center"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:textSize="25sp"
android:textColor="@color/colorText"
android:text=""
app:typeface="Tw_Cen_MT"/>
<FrameLayout
android:id="@+id/fragment_rank_question_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_alignLeft="@+id/fragment_rank_question"
android:layout_alignRight="@+id/fragment_rank_question"
android:orientation="horizontal">
<ImageView
android:id="@+id/fragment_rank_btn_yes"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="left|center_vertical"
android:padding="30dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:layout_marginTop="10dp"
android:layout_marginLeft="20dp"
android:scaleType="centerInside"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@drawable/selector_text"
android:background="@drawable/selector_btn_circle"
android:src="@drawable/ic_btn_si"/>
<ImageView
android:id="@+id/fragment_rank_btn_no"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="right|center_vertical"
android:padding="30dp"
android:layout_marginRight="20dp"
android:layout_marginBottom="10dp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:scaleType="centerInside"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@drawable/selector_text"
android:background="@drawable/selector_btn_circle"
android:src="@drawable/ic_btn_no"/>
</FrameLayout>
</RelativeLayout>
|
{
"content_hash": "e2da9190f7a735eb138b0962dc6d7c17",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 74,
"avg_line_length": 42.33783783783784,
"alnum_prop": 0.6415576125119694,
"repo_name": "zace3d/HackCDMX",
"id": "3ba4d1bf17f4d6a35ebe0e14c0bfbb7ef26f4117",
"size": "3133",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/src/main/res/layout/fragment_rank.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "65433"
}
],
"symlink_target": ""
}
|
<!doctype html>
<html>
<head>
<meta http-equiv="X-WebKit-CSP" content="script-src 'self' chrome-extension: https://ssl.google-analytics.com; img-src 'self' chrome-extension: http://www.google-analytics.com"/>
<script type="text/javascript" src="https://ssl.google-analytics.com/ga.js"></script>
<script type="text/javascript" src="embedded_ga.js"></script>
</head>
<body>
</body>
</html>
|
{
"content_hash": "3206c6fef407146481765d4d223e0fe8",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 182,
"avg_line_length": 40.8,
"alnum_prop": 0.678921568627451,
"repo_name": "AlexTatiyants/platen",
"id": "98f2fb27d5e206a9101e24940203c32ce65d95ef",
"size": "408",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "analytics/embedded_ga_host.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "JavaScript",
"bytes": "57441"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="dd9ebb22-ab8f-4488-80bd-f13640cfe85c" name="Default" comment="">
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/core/server/wxauthorize.py" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/core/logger_helper.py" afterPath="$PROJECT_DIR$/core/logger_helper.py" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/core/url.py" afterPath="$PROJECT_DIR$/core/url.py" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/run.py" afterPath="$PROJECT_DIR$/run.py" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
<component name="FavoritesManager">
<favorites_list name="FilmHub-Tornado" />
</component>
<component name="FileEditorManager">
<leaf>
<file leaf-file-name="logger_helper.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/core/logger_helper.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="615">
<caret line="41" column="31" lean-forward="true" selection-start-line="41" selection-start-column="31" selection-end-line="41" selection-end-column="31" />
<folding>
<element signature="e#0#14#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="handlers.py" pinned="false" current-in-tab="false">
<entry file="file:///System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/handlers.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="385">
<caret line="169" column="4" lean-forward="false" selection-start-line="169" selection-start-column="4" selection-end-line="169" selection-end-column="4" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="url.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/core/url.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="90">
<caret line="6" column="0" lean-forward="false" selection-start-line="6" selection-start-column="0" selection-end-line="8" selection-end-column="4" />
<folding>
<element signature="e#0#54#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="run.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/run.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="285">
<caret line="19" column="46" lean-forward="false" selection-start-line="19" selection-start-column="46" selection-end-line="19" selection-end-column="46" />
<folding>
<element signature="e#0#9#0" expanded="true" />
<marker date="1500116733000" expanded="true" signature="702:887" ph="..." />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="wxauthorize.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/core/server/wxauthorize.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="420">
<caret line="28" column="50" lean-forward="true" selection-start-line="28" selection-start-column="50" selection-end-line="28" selection-end-column="50" />
<folding>
<element signature="e#64#78#0" expanded="true" />
<marker date="1500116991000" expanded="true" signature="153:1291" ph="..." />
<marker date="1500116991000" expanded="true" signature="297:932" ph="..." />
<marker date="1500116991000" expanded="true" signature="992:1291" ph="..." />
</folding>
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Python Script" />
</list>
</option>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/view/route.py" />
<option value="$PROJECT_DIR$/server/wxauthentication.py" />
<option value="$PROJECT_DIR$/test.py" />
<option value="$PROJECT_DIR$/core/url.py" />
<option value="$PROJECT_DIR$/run.py" />
<option value="$PROJECT_DIR$/core/logger_helper.py" />
<option value="$PROJECT_DIR$/core/server/wxauthorize.py" />
</list>
</option>
</component>
<component name="ProjectFrameBounds">
<option name="y" value="23" />
<option name="width" value="1920" />
<option name="height" value="1053" />
</component>
<component name="ProjectLevelVcsManager">
<ConfirmationsSetting value="2" id="Add" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
<flattenPackages />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages />
<abbreviatePackageNames />
<autoscrollToSource />
<autoscrollFromSource />
<sortByType />
<manualOrder />
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="Scratches" />
<pane id="ProjectPane">
<subPane>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="FilmHub-Tornado" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="External Libraries" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="< Python 2.7.10 (/usr/bin/python) >" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="FilmHub-Tornado" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="FilmHub-Tornado" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="FilmHub-Tornado" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="FilmHub-Tornado" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="core" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
</subPane>
</pane>
</panes>
</component>
<component name="PropertiesComponent">
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="settings.editor.selected.configurable" value="reference.settingsdialog.IDE.editor.colors.Python" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="RunManager" selected="Python.Pyhton2.7.10">
<configuration default="true" type="CompoundRunConfigurationType" factoryName="Compound Run Configuration">
<method />
</configuration>
<configuration default="true" type="PythonConfigurationType" factoryName="Python">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="FilmHub-Tornado" />
<option name="SCRIPT_NAME" value="" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<method />
</configuration>
<configuration default="true" type="Tox" factoryName="Tox">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs />
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="FilmHub-Tornado" />
<method />
</configuration>
<configuration default="true" type="tests" factoryName="Doctests">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs />
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="FilmHub-Tornado" />
<option name="SCRIPT_NAME" value="" />
<option name="CLASS_NAME" value="" />
<option name="METHOD_NAME" value="" />
<option name="FOLDER_NAME" value="" />
<option name="TEST_TYPE" value="TEST_SCRIPT" />
<option name="PATTERN" value="" />
<option name="USE_PATTERN" value="false" />
<method />
</configuration>
<configuration default="true" type="tests" factoryName="Unittests">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs />
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="FilmHub-Tornado" />
<option name="_new_additionalArguments" value="""" />
<option name="_new_target" value=""."" />
<option name="_new_targetType" value=""PATH"" />
<method />
</configuration>
<configuration default="false" name="Pyhton2.7.10" type="PythonConfigurationType" factoryName="Python">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="/usr/bin/python" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="FilmHub-Tornado" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/test.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<method />
</configuration>
<list size="1">
<item index="0" class="java.lang.String" itemvalue="Python.Pyhton2.7.10" />
</list>
</component>
<component name="ShelveChangesManager" show_recycled="false">
<option name="remove_strategy" value="false" />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="dd9ebb22-ab8f-4488-80bd-f13640cfe85c" name="Default" comment="" />
<created>1499966493381</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1499966493381</updated>
</task>
<servers />
</component>
<component name="TodoView">
<todo-panel id="selected-file">
<is-autoscroll-to-source value="true" />
</todo-panel>
<todo-panel id="all">
<are-packages-shown value="true" />
<is-autoscroll-to-source value="true" />
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="0" y="23" width="1920" height="1053" extended-state="6" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.49004975" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.329602" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Python Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.39921466" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5099502" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Data View" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager />
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/test.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/run.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="45">
<caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
<folding>
<element signature="e#0#9#0" expanded="true" />
<marker date="1500116733000" expanded="true" signature="702:887" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/.gitignore">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/server/wxauthentication.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="165">
<caret line="13" column="18" lean-forward="false" selection-start-line="13" selection-start-column="18" selection-end-line="13" selection-end-column="18" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/log/log.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="300">
<caret line="22" column="36" lean-forward="false" selection-start-line="22" selection-start-column="36" selection-end-line="22" selection-end-column="36" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/test.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="105">
<caret line="8" column="24" lean-forward="true" selection-start-line="8" selection-start-column="24" selection-end-line="8" selection-end-column="24" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/run.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="45">
<caret line="8" column="0" lean-forward="true" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
<folding>
<element signature="e#0#9#0" expanded="true" />
<marker date="1500116733000" expanded="true" signature="702:887" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/view/route.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="45">
<caret line="4" column="13" lean-forward="true" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/server/wxauthentication.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file:///System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="147">
<caret line="227" column="0" lean-forward="false" selection-start-line="227" selection-start-column="0" selection-end-line="227" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file:///System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/Cocoa/__init__.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/view/route.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
<caret line="8" column="4" lean-forward="true" selection-start-line="8" selection-start-column="4" selection-end-line="8" selection-end-column="4" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/test.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="210">
<caret line="14" column="39" lean-forward="true" selection-start-line="14" selection-start-column="39" selection-end-line="14" selection-end-column="39" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/.gitignore">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/server/wxauthentication.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="195">
<caret line="13" column="18" lean-forward="false" selection-start-line="13" selection-start-column="18" selection-end-line="13" selection-end-column="18" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/log/log.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="330">
<caret line="22" column="36" lean-forward="false" selection-start-line="22" selection-start-column="36" selection-end-line="22" selection-end-column="36" />
</state>
</provider>
</entry>
<entry file="file:///System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/handlers.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="385">
<caret line="169" column="4" lean-forward="false" selection-start-line="169" selection-start-column="4" selection-end-line="169" selection-end-column="4" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/core/logger_helper.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="615">
<caret line="41" column="31" lean-forward="true" selection-start-line="41" selection-start-column="31" selection-end-line="41" selection-end-column="31" />
<folding>
<element signature="e#0#14#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/core/url.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="90">
<caret line="6" column="0" lean-forward="false" selection-start-line="6" selection-start-column="0" selection-end-line="8" selection-end-column="4" />
<folding>
<element signature="e#0#54#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/run.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="285">
<caret line="19" column="46" lean-forward="false" selection-start-line="19" selection-start-column="46" selection-end-line="19" selection-end-column="46" />
<folding>
<element signature="e#0#9#0" expanded="true" />
<marker date="1500116733000" expanded="true" signature="702:887" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/core/server/wxauthorize.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="420">
<caret line="28" column="50" lean-forward="true" selection-start-line="28" selection-start-column="50" selection-end-line="28" selection-end-column="50" />
<folding>
<element signature="e#64#78#0" expanded="true" />
<marker date="1500116991000" expanded="true" signature="153:1291" ph="..." />
<marker date="1500116991000" expanded="true" signature="297:932" ph="..." />
<marker date="1500116991000" expanded="true" signature="992:1291" ph="..." />
</folding>
</state>
</provider>
</entry>
</component>
</project>
|
{
"content_hash": "4114dfd5db82c6aec244222c301168cf",
"timestamp": "",
"source": "github",
"line_count": 514,
"max_line_length": 247,
"avg_line_length": 54.5,
"alnum_prop": 0.6244957698211545,
"repo_name": "Maru-zhang/FilmHub-Tornado",
"id": "240a9526c13c5438b646f72f32dfa9b5519d96a9",
"size": "28013",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": ".idea/workspace.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "48"
},
{
"name": "Python",
"bytes": "28839"
}
],
"symlink_target": ""
}
|
//
// $Id$
package MyInterfaceTest;
import org.junit.Test;
import org.ductilej.tests.helper.one.*;
import org.ductilej.tests.helper.two.*;
/**
* Demonstrates similar compiler bug as StaticMethodResolutionTest.java: this
* time the ambiguity results from the two identically named interfaces (from
* different packages) being imported.
*/
public class StaticMethodAmbiguousInterfaceTest
implements org.ductilej.tests.helper.one.MyInterfaceTest
{
@Test public void testInvokeFoo () {
// The following line results in the following compiler error:
// "reference to MyInterfaceTest is ambiguous, both interface
// org.ductilej.tests.helper.two.MyInterfaceTest in
// org.ductilej.tests.helper.two and interface
// org.ductilej.tests.helper.one.MyInterfaceTest in
// org.ductilej.tests.helper.one match".
foo();
}
private static void foo () {
}
}
|
{
"content_hash": "417b139c72f21321057e9da097bfe5ba",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 77,
"avg_line_length": 29.870967741935484,
"alnum_prop": 0.7116630669546437,
"repo_name": "scaladyno/ductilej",
"id": "45272a0c8e32ee49810f5f7deee9aaac70a143f8",
"size": "926",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/test/java/org/ductilej/tests/StaticMethodAmbiguousInterfaceTest.java",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Java",
"bytes": "493899"
},
{
"name": "Perl",
"bytes": "1811"
}
],
"symlink_target": ""
}
|
Pop PHP Framework
=================
Documentation : File
--------------------
Home
La composante fichier fournit une API utile pour gérer et manipuler des
fichiers sur le disque. Il fournit également la fonctionnalité de gérer
facilement les téléchargements de fichiers.
use Pop\File\File;
// Create a new file and write to it.
$file = new File('new-file.txt');
$file->write('Some text to the file.')
->save();
// Upload a file from a multipart POST form.
$upload = File::upload($_FILES['upload_file']['tmp_name'], '../uploads/' . $_FILES['upload_file']['name']);
echo 'File uploaded.';
Il fournit également un moyen facile de parcourir les répertoires et
accéder et manipuler des fichiers en leur sein.
use Pop\File\Dir;
// Create the Dir object
$dir = new Dir('../mydir');
// Loop through the files in the directory
$files = $dir->getFiles();
foreach ($files as $file) {
echo $file;
}
\(c) 2009-2014 [Moc 10 Media, LLC.](http://www.moc10media.com) All
Rights Reserved.
|
{
"content_hash": "22e3204bc8286e778beaf6de3287405a",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 111,
"avg_line_length": 27.05128205128205,
"alnum_prop": 0.6388625592417062,
"repo_name": "nicksagona/PopPHP",
"id": "f96b01dff166c8630f7d3dc25f3482018804bc93",
"size": "1064",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "vendor/PopPHPFramework/docs/md/fr/File.md",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ApacheConf",
"bytes": "235"
},
{
"name": "Batchfile",
"bytes": "820"
},
{
"name": "HTML",
"bytes": "3861"
},
{
"name": "PHP",
"bytes": "105810"
},
{
"name": "Shell",
"bytes": "1044"
}
],
"symlink_target": ""
}
|
/**
*
*/
package cern.accsoft.steering.aloha.plugin.kickresp.meas;
import cern.accsoft.steering.aloha.meas.BuiltinMeasurementType;
import cern.accsoft.steering.aloha.meas.GenericMeasurementImpl;
import cern.accsoft.steering.aloha.meas.MeasurementType;
import cern.accsoft.steering.aloha.model.ModelDelegate;
import cern.accsoft.steering.aloha.plugin.kickresp.meas.data.CombinedKickResponseData;
import cern.accsoft.steering.aloha.plugin.kickresp.meas.data.KickResponseData;
import cern.accsoft.steering.aloha.plugin.kickresp.meas.data.ModelKickResponseData;
import cern.accsoft.steering.aloha.plugin.traj.meas.TrajectoryMeasurementImpl;
import java.lang.ref.WeakReference;
/**
* @author kfuchsbe
*
*/
public class KickResponseMeasurementImpl extends
GenericMeasurementImpl<KickResponseData> implements KickResponseMeasurement {
private CombinedKickResponseData combinedData;
private ModelKickResponseData modelData;
/**
* the trajectory data to use for stability calculations (error bars)
*/
private WeakReference<TrajectoryMeasurementImpl> stabilityMeasurement;
public KickResponseMeasurementImpl(String name, ModelDelegate modelDelegate,
KickResponseData data, CombinedKickResponseData combinedData,
ModelKickResponseData modelData) {
super(name, modelDelegate, data);
this.combinedData = combinedData;
this.modelData = modelData;
}
/* (non-Javadoc)
* @see cern.accsoft.steering.aloha.plugin.kickresp.meas.KickResponseMeasurement#setStabilityMeasurement(cern.accsoft.steering.aloha.plugin.traj.meas.TrajectoryMeasurement)
*/
public void setStabilityMeasurement(TrajectoryMeasurementImpl data) {
this.stabilityMeasurement = new WeakReference<TrajectoryMeasurementImpl>(
data);
}
/* (non-Javadoc)
* @see cern.accsoft.steering.aloha.plugin.kickresp.meas.KickResponseMeasurement#getStabilityMeasurement()
*/
public TrajectoryMeasurementImpl getStabilityMeasurement() {
if (this.stabilityMeasurement == null) {
return null;
}
return this.stabilityMeasurement.get();
}
/* (non-Javadoc)
* @see cern.accsoft.steering.aloha.plugin.kickresp.meas.KickResponseMeasurement#getType()
*/
@Override
public final MeasurementType getType() {
return BuiltinMeasurementType.KICK_RESPONSE;
}
/* (non-Javadoc)
* @see cern.accsoft.steering.aloha.plugin.kickresp.meas.KickResponseMeasurement#getCombinedData()
*/
public CombinedKickResponseData getCombinedData() {
return combinedData;
}
/* (non-Javadoc)
* @see cern.accsoft.steering.aloha.plugin.kickresp.meas.KickResponseMeasurement#getModelData()
*/
public ModelKickResponseData getModelData() {
return modelData;
}
}
|
{
"content_hash": "1b56e6358861551711e48118a328f213",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 173,
"avg_line_length": 33.1125,
"alnum_prop": 0.8003020007550019,
"repo_name": "jmad/aloha",
"id": "b3df471116f2ccf31a8b93325e3bd8f1b50705ae",
"size": "2649",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/java/cern/accsoft/steering/aloha/plugin/kickresp/meas/KickResponseMeasurementImpl.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "976663"
}
],
"symlink_target": ""
}
|
FROM balenalib/nitrogen8mm-ubuntu:xenial-run
# remove several traces of debian python
RUN apt-get purge -y python.*
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
# install python dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
netbase \
&& rm -rf /var/lib/apt/lists/*
# key 63C7CC90: public key "Simon McVittie <smcv@pseudorandom.co.uk>" imported
# key 3372DCFA: public key "Donald Stufft (dstufft) <donald@stufft.io>" imported
RUN gpg --keyserver keyring.debian.org --recv-keys 4DE8FF2A63C7CC90 \
&& gpg --keyserver keyserver.ubuntu.com --recv-key 6E3CBCE93372DCFA \
&& gpg --keyserver keyserver.ubuntu.com --recv-keys 0x52a43a1e4b77b059
ENV PYTHON_VERSION 3.8.12
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
ENV PYTHON_PIP_VERSION 21.3.1
ENV SETUPTOOLS_VERSION 60.5.4
RUN set -x \
&& buildDeps=' \
curl \
' \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& curl -SLO "http://resin-packages.s3.amazonaws.com/python/v$PYTHON_VERSION/Python-$PYTHON_VERSION.linux-aarch64-libffi3.2.tar.gz" \
&& echo "7431f1179737fed6518ccf8187ad738c2f2e16feb75b7528e4e0bb7934d192cf Python-$PYTHON_VERSION.linux-aarch64-libffi3.2.tar.gz" | sha256sum -c - \
&& tar -xzf "Python-$PYTHON_VERSION.linux-aarch64-libffi3.2.tar.gz" --strip-components=1 \
&& rm -rf "Python-$PYTHON_VERSION.linux-aarch64-libffi3.2.tar.gz" \
&& ldconfig \
&& if [ ! -e /usr/local/bin/pip3 ]; then : \
&& curl -SLO "https://raw.githubusercontent.com/pypa/get-pip/430ba37776ae2ad89f794c7a43b90dc23bac334c/get-pip.py" \
&& echo "19dae841a150c86e2a09d475b5eb0602861f2a5b7761ec268049a662dbd2bd0c get-pip.py" | sha256sum -c - \
&& python3 get-pip.py \
&& rm get-pip.py \
; fi \
&& pip3 install --no-cache-dir --upgrade --force-reinstall pip=="$PYTHON_PIP_VERSION" setuptools=="$SETUPTOOLS_VERSION" \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
-exec rm -rf '{}' + \
&& cd / \
&& rm -rf /usr/src/python ~/.cache
# make some useful symlinks that are expected to exist
RUN cd /usr/local/bin \
&& ln -sf pip3 pip \
&& { [ -e easy_install ] || ln -s easy_install-* easy_install; } \
&& ln -sf idle3 idle \
&& ln -sf pydoc3 pydoc \
&& ln -sf python3 python \
&& ln -sf python3-config python-config
# set PYTHONPATH to point to dist-packages
ENV PYTHONPATH /usr/lib/python3/dist-packages:$PYTHONPATH
CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"]
RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/8accad6af708fca7271c5c65f18a86782e19f877/scripts/assets/tests/test-stack@python.sh" \
&& echo "Running test-stack@python" \
&& chmod +x test-stack@python.sh \
&& bash test-stack@python.sh \
&& rm -rf test-stack@python.sh
RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo 'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: ARM v8 \nOS: Ubuntu xenial \nVariant: run variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nPython v3.8.12, Pip v21.3.1, Setuptools v60.5.4 \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info
RUN echo '#!/bin/sh.real\nbalena-info\nrm -f /bin/sh\ncp /bin/sh.real /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \
&& chmod +x /bin/sh-shim \
&& cp /bin/sh /bin/sh.real \
&& mv /bin/sh-shim /bin/sh
|
{
"content_hash": "52f21362726d77dc6577674a6595dd23",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 709,
"avg_line_length": 51.88461538461539,
"alnum_prop": 0.708178897949098,
"repo_name": "resin-io-library/base-images",
"id": "944654c69819398da5cdd5bf769d7634e85ab0e4",
"size": "4068",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "balena-base-images/python/nitrogen8mm/ubuntu/xenial/3.8.12/run/Dockerfile",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "71234697"
},
{
"name": "JavaScript",
"bytes": "13096"
},
{
"name": "Shell",
"bytes": "12051936"
},
{
"name": "Smarty",
"bytes": "59789"
}
],
"symlink_target": ""
}
|
module.exports = function(config) {
"use strict";
const gulp = require('gulp'),
browserSync = require('browser-sync').create('syncBrowser');
gulp.task('browser-sync', () => {
browserSync.init(config.browsersync);
});
gulp.task('watch', () => {
gulp.watch(config.watchpaths.styles, ['styles']);
gulp.watch(config.watchpaths.scripts, ['scripts']).on('change', browserSync.reload);
gulp.watch(config.watchpaths.markup).on('change', browserSync.reload);
});
}
|
{
"content_hash": "d104e9c641b996be39a66b6ba985aba4",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 88,
"avg_line_length": 28.555555555555557,
"alnum_prop": 0.6284046692607004,
"repo_name": "SleepingInsomniac/chug",
"id": "b0695124187a04d2e5ea16f50fb3d3a9269c2da2",
"size": "514",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "gulp-tasks/browsersync.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "4134"
}
],
"symlink_target": ""
}
|
char* gVideoFileName = 0;
char* gPngFileName = 0;
int main(int argc, char* argv[])
{
b3CommandLineArgs myArgs(argc,argv);
SimpleOpenGL3App* app = new SimpleOpenGL3App("SimpleOpenGL3App",1024,768,true);
app->m_instancingRenderer->getActiveCamera()->setCameraDistance(13);
app->m_instancingRenderer->getActiveCamera()->setCameraPitch(0);
app->m_instancingRenderer->getActiveCamera()->setCameraTargetPosition(0,0,0);
assert(glGetError()==GL_NO_ERROR);
myArgs.GetCmdLineArgument("mp4_file",gVideoFileName);
if (gVideoFileName)
app->dumpFramesToVideo(gVideoFileName);
myArgs.GetCmdLineArgument("png_file",gPngFileName);
char fileName[1024];
do
{
static int frameCount = 0;
frameCount++;
if (gPngFileName)
{
printf("gPngFileName=%s\n",gPngFileName);
sprintf(fileName,"%s%d.png",gPngFileName,frameCount++);
app->dumpNextFrameToPng(fileName);
}
assert(glGetError()==GL_NO_ERROR);
app->m_instancingRenderer->init();
app->m_instancingRenderer->updateCamera();
app->drawGrid();
char bla[1024];
sprintf(bla,"Simple test frame %d", frameCount);
app->drawText(bla,10,10);
app->swapBuffer();
} while (!app->m_window->requestedExit());
delete app;
return 0;
}
|
{
"content_hash": "3ed4d81b16e6171d81a38e7ebeffc277",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 80,
"avg_line_length": 25.5,
"alnum_prop": 0.6831372549019608,
"repo_name": "leyyin/university",
"id": "68dc00366d3bb150981f7730eac7003606cafc74",
"size": "1480",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "computer-graphics/labs/lab3-glitter/Glitter/Vendor/bullet/examples/SimpleOpenGL3/main.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "53578"
},
{
"name": "Awk",
"bytes": "10006"
},
{
"name": "C",
"bytes": "113260"
},
{
"name": "C++",
"bytes": "171138"
},
{
"name": "CMake",
"bytes": "1458"
},
{
"name": "Common Lisp",
"bytes": "18679"
},
{
"name": "D",
"bytes": "30122"
},
{
"name": "HTML",
"bytes": "244869"
},
{
"name": "Java",
"bytes": "113685"
},
{
"name": "Matlab",
"bytes": "16233"
},
{
"name": "Objective-C",
"bytes": "63"
},
{
"name": "PLSQL",
"bytes": "6236"
},
{
"name": "Prolog",
"bytes": "16706"
},
{
"name": "Python",
"bytes": "290447"
},
{
"name": "QMake",
"bytes": "327"
},
{
"name": "SQLPL",
"bytes": "2649"
},
{
"name": "Shell",
"bytes": "7981"
},
{
"name": "TeX",
"bytes": "11421"
}
],
"symlink_target": ""
}
|
package kubecli
import (
k8smetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/scheme"
"k8s.io/client-go/rest"
"k8s.io/apimachinery/pkg/types"
"kubevirt.io/kubevirt/pkg/api/v1"
)
func (k *kubevirt) VMPreset(namespace string) VMPresetInterface {
return &vmPresets{k.restClient, namespace, "virtualmachinepresets"}
}
type vmPresets struct {
restClient *rest.RESTClient
namespace string
resource string
}
func (v *vmPresets) Get(name string, options k8smetav1.GetOptions) (vm *v1.VirtualMachinePreset, err error) {
vm = &v1.VirtualMachinePreset{}
err = v.restClient.Get().
Resource(v.resource).
Namespace(v.namespace).
Name(name).
VersionedParams(&options, scheme.ParameterCodec).
Do().
Into(vm)
vm.SetGroupVersionKind(v1.VirtualMachinePresetGroupVersionKind)
return
}
func (v *vmPresets) List(options k8smetav1.ListOptions) (vmList *v1.VirtualMachinePresetList, err error) {
vmList = &v1.VirtualMachinePresetList{}
err = v.restClient.Get().
Resource(v.resource).
Namespace(v.namespace).
VersionedParams(&options, scheme.ParameterCodec).
Do().
Into(vmList)
for _, vm := range vmList.Items {
vm.SetGroupVersionKind(v1.VirtualMachinePresetGroupVersionKind)
}
return
}
func (v *vmPresets) Create(vm *v1.VirtualMachinePreset) (result *v1.VirtualMachinePreset, err error) {
result = &v1.VirtualMachinePreset{}
err = v.restClient.Post().
Namespace(v.namespace).
Resource(v.resource).
Body(vm).
Do().
Into(result)
result.SetGroupVersionKind(v1.VirtualMachinePresetGroupVersionKind)
return
}
func (v *vmPresets) Update(vm *v1.VirtualMachinePreset) (result *v1.VirtualMachinePreset, err error) {
result = &v1.VirtualMachinePreset{}
err = v.restClient.Put().
Name(vm.ObjectMeta.Name).
Namespace(v.namespace).
Resource(v.resource).
Body(vm).
Do().
Into(result)
result.SetGroupVersionKind(v1.VirtualMachinePresetGroupVersionKind)
return
}
func (v *vmPresets) Delete(name string, options *k8smetav1.DeleteOptions) error {
return v.restClient.Delete().
Namespace(v.namespace).
Resource(v.resource).
Name(name).
Body(options).
Do().
Error()
}
func (v *vmPresets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.VirtualMachinePreset, err error) {
result = &v1.VirtualMachinePreset{}
err = v.restClient.Patch(pt).
Namespace(v.namespace).
Resource(v.resource).
SubResource(subresources...).
Name(name).
Body(data).
Do().
Into(result)
return
}
|
{
"content_hash": "5d33f54dcc232b9900e8dc6686f2a4cc",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 142,
"avg_line_length": 25.303030303030305,
"alnum_prop": 0.7373253493013973,
"repo_name": "fabiand/kubevirt",
"id": "a253061330067bdbe9946f3f7881570ad25784eb",
"size": "3152",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "pkg/kubecli/vmpreset.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Go",
"bytes": "1329814"
},
{
"name": "Makefile",
"bytes": "2140"
},
{
"name": "Shell",
"bytes": "74887"
}
],
"symlink_target": ""
}
|
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "7a1dd44ee0c71962c35d16ca6dce50a0",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "64b02de8e30dced597d4836904e371946c5f1f09",
"size": "192",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Magnoliopsida/Fabales/Fabaceae/Acmispon/Acmispon americanus/ Syn. Acmispon helleri/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
<html>
<head>
<title>Anthony Horowitz's panel show appearances</title>
<script type="text/javascript" src="../common.js"></script>
<link rel="stylesheet" media="all" href="../style.css" type="text/css"/>
<script type="text/javascript" src="../people.js"></script>
<!--#include virtual="head.txt" -->
</head>
<body>
<!--#include virtual="nav.txt" -->
<div class="page">
<h1>Anthony Horowitz's panel show appearances</h1>
<p>Anthony Horowitz (born 1955-04-05<sup><a href="https://en.wikipedia.org/wiki/Anthony_Horowitz">[ref]</a></sup>) has appeared in <span class="total">2</span> episodes between 2013-2014. <a href="http://www.imdb.com/name/nm0395275">Anthony Horowitz on IMDB</a>. <a href="https://en.wikipedia.org/wiki/Anthony_Horowitz">Anthony Horowitz on Wikipedia</a>.</p>
<div class="performerholder">
<table class="performer">
<tr style="vertical-align:bottom;">
<td><div style="height:100px;" class="performances male" title="1"></div><span class="year">2013</span></td>
<td><div style="height:100px;" class="performances male" title="1"></div><span class="year">2014</span></td>
</tr>
</table>
</div>
<ol class="episodes">
<li><strong>2014-10-30</strong> / <a href="../shows/question-time.html">Question Time</a></li>
<li><strong>2013-03-21</strong> / <a href="../shows/question-time.html">Question Time</a></li>
</ol>
</div>
</body>
</html>
|
{
"content_hash": "66e109a40975f7a7870c0391bcc37e0e",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 360,
"avg_line_length": 43.1875,
"alnum_prop": 0.6700434153400868,
"repo_name": "slowe/panelshows",
"id": "dc8b78620612d129c56643368db67fb950b8ae88",
"size": "1382",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "people/ew6fadrh.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "8431"
},
{
"name": "HTML",
"bytes": "25483901"
},
{
"name": "JavaScript",
"bytes": "95028"
},
{
"name": "Perl",
"bytes": "19899"
}
],
"symlink_target": ""
}
|
a{
font-family: tahoma;
font-size: 12px;
border: 0px;
text-decoration:none;
}
body{
width: 450px;
}
.semerrar{
font-family: tahoma;
font-size: 22px;
color: #6489af;
margin-bottom: 5px;
display: block;
padding: 4px;
border: solid 1px #85b1de;
width: inherit;
background-image: url( 'blue_bg.png' );
background-repeat: repeat-x;
background-position: top;
}
.errado{
font-family: tahoma;
font-size: 22px;
color: red;
margin-bottom: 5px;
display: block;
padding: 4px;
border: solid 1px #ff8587;
width: inherit;
background-image: url( 'red_bg.png' );
background-repeat: repeat-x;
background-position: top;
}
.frase{
width:inherit;
vertical-align:middle;
font-family:"Courier New", Courier, monospace;
color: #6489af;
font-size: 18px;
background-image:url('aspas.png');
background-repeat:no-repeat;
padding-left:30px;
padding-right:30px;
padding-bottom:20px;
}
.autor{
width:inherit;
text-align:right;
font-family:"Courier New", Courier, monospace;
color: #6489af;
font-size: 13px;
font-style:italic;
}
.marcado{
color: red;
text-decoration:underline;
display: inline;
}
.normal{
color: #6489af;
text-decoration: none;
display: inline;
}
.contador{
font-family:"Courier New", Courier, monospace;
color: #6489af;
font-size: 18px;
}
.conclusao{
width:200px;
font-family:"Courier New", Courier, monospace;
color: #3d4d70;
font-size: 18px;
background-image:url('fundocomeco.png');
padding-left:30px;
padding-right:30px;
border:1px dashed #333;
}
.botao{
font-family: tahoma;
font-size: 22px;
color: #6489af;
margin-bottom: 5px;
display: block;
padding: 4px;
border:1px dashed #85b1de;
width: inherit;
background-image: url( 'blue_bg.png' );
background-repeat: repeat-x;
background-position: top;
}
|
{
"content_hash": "5f2272775e4352aca817d2a46f157b79",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 50,
"avg_line_length": 18.84,
"alnum_prop": 0.6613588110403397,
"repo_name": "Oyatsumi/TypeRunningGame",
"id": "292177f9b456076875375f473475508f61f2fc21",
"size": "1884",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/digi.css",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1884"
},
{
"name": "JavaScript",
"bytes": "4081"
},
{
"name": "PHP",
"bytes": "2839"
}
],
"symlink_target": ""
}
|
/**
* Created by akash on 22/7/15.
*/
var gulp = require('gulp');
var child = require('child_process');
var util = require('gulp-util');
var notifier = require('node-notifier');
var reload = require('gulp-livereload');
var sync = require('gulp-sync')(gulp).sync;
var server = null;
var GulpSSH = require('gulp-ssh');
var fs = require('fs');
var browserSync = require('browser-sync').create();
var shell = require('gulp-shell');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var ngAnnotate = require('gulp-ng-annotate');
var sourcemaps = require('gulp-sourcemaps');
var jsHint = require('gulp-jshint');
var stylish = require('jshint-stylish');
/*
* Build application server.
*/
gulp.task('server:build', function() {
/* var init = shell.task(['export GOPATH=/home/akash/Kode/Radeon/server/',
'export GOBIN=$GOPATH/bin',
'go install',
'server/src/github.com/shakdwipeea/main/server.go']);*/
var myVar = {
'GOPATH': 'C:/Kode/Radeon/server',
'GOBIN': 'C:/Kode/Radeon/server/bin'
};
process.env['GOPATH'] = myVar.GOPATH;
process.env['GOBIN'] = myVar.GOBIN;
var build = child.spawnSync('go', ['install', 'server/src/github.com/shakdwipeea/main/server.go'], {
env: process.env
});
if (build.stderr.length) {
var lines = build.stderr.toString()
.split('\n').filter(function(line) {
return line.length
});
for (var l in lines)
util.log(util.colors.red(
'Error (go install): ' + lines[l]
));
notifier.notify({
title: 'Error (go install)',
message: lines
});
}
return build;
});
/*
* Restart application server.
*/
gulp.task('server:spawn', function() {
if (server)
server.kill();
/* Spawn application server */
server = child.spawn('./server/bin/server');
/* Trigger reload upon server start */
server.stdout.once('data', function() {
reload.reload('/');
});
/* Pretty print server log output */
server.stdout.on('data', function(data) {
var lines = data.toString().split('\n')
for (var l in lines)
if (lines[l].length)
util.log(lines[l]);
});
/* Print errors to stdout */
server.stderr.on('data', function(data) {
process.stdout.write(data.toString());
});
if (!browserSync.active) {
browserSync.init({
notify: false,
open: false,
port: 4000,
proxy: 'http://localhost:3000'
});
}
notifier.notify({
title: 'server restarted',
message: 'Hah mahanta'
})
});
/*
* Watch source for changes and restart application server.
*/
gulp.task('server:watch', function() {
/* Rebuild and restart application server */
gulp.watch([
'*/**/*.go'
], sync([
'server:build',
'server:spawn'
], 'server'));
});
/* ----------------------------------------------------------------------------
* Interface
* ------------------------------------------------------------------------- */
/*
* Build assets and application server.
*/
gulp.task('build', [
'server:build',
'admin-build',
'student-build'
]);
/*
* Start asset and server watchdogs and initialize livereload.
*/
gulp.task('watch', [
'server:build'
], function() {
reload.listen();
return gulp.start([
'server:watch',
'server:spawn'
]);
});
gulp.task('reload', ['admin-build', 'student-build'], function () {
notifier.notify({
title: 'client refreshed',
message: 'Hah i'
})
});
gulp.task('client', function () {
if (!browserSync.active) {
notifier.notify({
title: 'client refreshed',
message: 'Error browser sync not active'
})
}
gulp.watch(['app/**/*.js', 'app/*.html', 'app/**/*.tpl', 'app/assets/*.css'], ['admin-build', 'student-build', browserSync.reload])
console.log('serving on port 8000')
});
/**
* For deploy
* @type {{host: string, port: number, username: string, privateKey}}
*/
var config = {
host: '52.3.212.51',
port: 22,
username: 'ubuntu',
privateKey: fs.readFileSync('C:/Raghav___back_up/mate_15_aug/aws/sarawgi/sarawagi_ec2.pem')
};
var gulpSSH = new GulpSSH({
ignoreErrors: false,
sshConfig: config
});
gulp.task('deploy', function () {
return gulpSSH
.shell([
"cd the-exam",
"git pull",
"export GIN_MODE=release",
"export GOPATH=/home/ubuntu/the-exam/server",
"export GOBIN=/home/ubuntu/the-exam/server/bin",
"go install ./server/src/github.com/shakdwipeea/main/server.go",
"pm2 restart ./server/bin/server"
], {
filepath: 'shell.log'
})
.pipe(gulp.dest("logs"))
});
gulp.task('admin-build', function () {
return gulp.src(['app/src/admin/app.js', 'app/src/admin/**/*.js'])
.pipe(sourcemaps.init())
.pipe(concat('admin.js'))
.pipe(ngAnnotate())
.pipe(uglify())
.pipe(gulp.dest('app/dist/'))
});
gulp.task('student-build', function () {
return gulp.src(['app/src/student/app.js', 'app/src/student/**/*.js'])
.pipe(concat('student.js'))
.pipe(ngAnnotate())
.pipe(uglify())
.pipe(gulp.dest('app/dist/'))
});
gulp.task('lint', function () {
return gulp.src('app/src/student/**/*.js')
.pipe(jsHint('.jshintrc'))
.pipe(jsHint.reporter(stylish))
});
/*
* Build assets by default.
*/
gulp.task('default', ['build', 'watch', 'client']);
|
{
"content_hash": "594aec1878b0890816825c4be4ed6d5b",
"timestamp": "",
"source": "github",
"line_count": 223,
"max_line_length": 135,
"avg_line_length": 25.349775784753362,
"alnum_prop": 0.5528038209800106,
"repo_name": "shakdwipeea/the-exam",
"id": "f9134b76f25cbc1f500a428562b1af86224596db",
"size": "5653",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Gulpfile.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "3036"
},
{
"name": "Go",
"bytes": "30376"
},
{
"name": "HTML",
"bytes": "6198"
},
{
"name": "JavaScript",
"bytes": "46011"
},
{
"name": "Shell",
"bytes": "302"
},
{
"name": "Smarty",
"bytes": "17429"
}
],
"symlink_target": ""
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Interop;
namespace TimeTracker.util
{
/// <summary>
/// Utility class to help with getting and setting a window's placement.
/// Based on https://blogs.msdn.com/b/davidrickard/archive/2010/03/09/saving-window-size-and-location-in-wpf-and-winforms.aspx
/// </summary>
public class WindowPlacement
{
// RECT structure required by WINDOWPLACEMENT structure
[Serializable]
[StructLayout(LayoutKind.Sequential)]
public struct RECT
{
public int Left;
public int Top;
public int Right;
public int Bottom;
public RECT(int left, int top, int right, int bottom)
{
this.Left = left;
this.Top = top;
this.Right = right;
this.Bottom = bottom;
}
}
// POINT structure required by WINDOWPLACEMENT structure
[Serializable]
[StructLayout(LayoutKind.Sequential)]
public struct POINT
{
public int X;
public int Y;
public POINT(int x, int y)
{
this.X = x;
this.Y = y;
}
}
// WINDOWPLACEMENT stores the position, size, and state of a window
[Serializable]
[StructLayout(LayoutKind.Sequential)]
public struct WINDOWPLACEMENT
{
public int length;
public int flags;
public int showCmd;
public POINT minPosition;
public POINT maxPosition;
public RECT normalPosition;
}
[DllImport("user32.dll")]
private static extern bool SetWindowPlacement(IntPtr hWnd, [In] ref WINDOWPLACEMENT lpwndpl);
[DllImport("user32.dll")]
private static extern bool GetWindowPlacement(IntPtr hWnd, out WINDOWPLACEMENT lpwndpl);
public const int SW_SHOWNORMAL = 1;
public const int SW_SHOWMINIMIZED = 2;
public static WINDOWPLACEMENT GetWindowsPlacement(Window wnd)
{
IntPtr hwnd = new WindowInteropHelper(wnd).Handle;
return GetWindowsPlacement(hwnd);
}
public static WINDOWPLACEMENT GetWindowsPlacement(IntPtr wndHanlde)
{
WINDOWPLACEMENT placement;
GetWindowPlacement(wndHanlde, out placement);
return placement;
}
public static bool SetWindowPlacement(Window wndHandle, WINDOWPLACEMENT placement)
{
IntPtr hwnd = new WindowInteropHelper(wndHandle).Handle;
return SetWindowPlacement(hwnd, placement);
}
public static bool SetWindowPlacement(IntPtr wndHandle, WINDOWPLACEMENT placement)
{
placement.length = Marshal.SizeOf(typeof(WINDOWPLACEMENT));
placement.flags = 0;
placement.showCmd = (placement.showCmd == SW_SHOWMINIMIZED ? SW_SHOWNORMAL : placement.showCmd);
var ret=SetWindowPlacement(wndHandle, ref placement);
return ret;
}
}
}
|
{
"content_hash": "7ed532fb56eb734fa07cd397cfe0ebab",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 130,
"avg_line_length": 32.7,
"alnum_prop": 0.6036697247706422,
"repo_name": "tvdv/TimeTracker",
"id": "c37fbe826d76625f70272660393c849e4c662ef7",
"size": "3272",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "TimeTracker/util/WindowPlacement.cs",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C#",
"bytes": "224551"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hito.rvpractice">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
|
{
"content_hash": "10142b241f78b5479c3a772753925d24",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 75,
"avg_line_length": 33.15,
"alnum_prop": 0.6093514328808446,
"repo_name": "Hitooooo/RVPractice",
"id": "b27db288ca2fce4f6da3956a32812a4c11965b17",
"size": "663",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/src/main/AndroidManifest.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "16591"
}
],
"symlink_target": ""
}
|
//***********************************************************************
// MQ ongoing task management header
//***********************************************************************
#include "gop/gop_visibility.h"
#include "opque.h"
#include "mq_portal.h"
#ifndef _MQ_ONGOING_H_
#define _MQ_ONGOING_H_
#ifdef __cplusplus
extern "C" {
#endif
#define ONGOING_KEY "ongoing"
#define ONGOING_SIZE 7
#define ONGOING_SERVER 1
#define ONGOING_CLIENT 2
typedef op_generic_t *(mq_ongoing_fail_t)(void *arg, void *handle);
typedef struct {
char *id;
int id_len;
int heartbeat;
int in_progress;
int count;
apr_time_t next_check;
} ongoing_hb_t;
typedef struct {
apr_hash_t *table;
mq_msg_hash_t remote_host_hash;
mq_msg_t *remote_host;
int count;
} ongoing_table_t;
typedef struct {
int type;
int count;
int auto_clean;
void *handle;
intptr_t key;
mq_ongoing_fail_t *on_fail;
void *on_fail_arg;
} mq_ongoing_object_t;
typedef struct {
int heartbeat;
apr_time_t next_check;
char *id;
int id_len;
apr_hash_t *table;
apr_pool_t *mpool;
} mq_ongoing_host_t;
typedef struct {
apr_pool_t *mpool;
apr_thread_mutex_t *lock;
apr_thread_cond_t *cond;
apr_hash_t *id_table; //** Server table
apr_hash_t *table; //** Client table
apr_thread_t *ongoing_server_thread;
apr_thread_t *ongoing_heartbeat_thread;
mq_context_t *mqc;
mq_portal_t *server_portal;
int check_interval;
int shutdown;
int send_divisor;
} mq_ongoing_t;
GOP_API void mq_ongoing_host_inc(mq_ongoing_t *on, mq_msg_t *remote_host, char *id, int id_len, int heartbeat);
GOP_API void mq_ongoing_host_dec(mq_ongoing_t *on, mq_msg_t *remote_host, char *id, int id_len);
void ongoing_heartbeat_shutdown();
void mq_ongoing_cb(void *arg, mq_task_t *task);
GOP_API mq_ongoing_object_t *mq_ongoing_add(mq_ongoing_t *mqon, int auto_clean, char *id, int id_len, void *handle, mq_ongoing_fail_t *on_fail, void *on_fail_arg);
GOP_API void *mq_ongoing_remove(mq_ongoing_t *mqon, char *id, int id_len, intptr_t key);
GOP_API void *mq_ongoing_get(mq_ongoing_t *mqon, char *id, int id_len, intptr_t key);
GOP_API void mq_ongoing_release(mq_ongoing_t *mqon, char *id, int id_len, intptr_t key);
GOP_API mq_ongoing_t *mq_ongoing_create(mq_context_t *mqc, mq_portal_t *server_portal, int check_interval, int mode);
GOP_API void mq_ongoing_destroy(mq_ongoing_t *mqon);
#ifdef __cplusplus
}
#endif
#endif
|
{
"content_hash": "86379f1460c196dea88351fd9f683a46",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 163,
"avg_line_length": 27.107526881720432,
"alnum_prop": 0.6235620785402618,
"repo_name": "PerilousApricot/lstore",
"id": "00c528331576d03d5d3f5ecf837ab5904742c7f7",
"size": "3118",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/gop/mq_ongoing.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "2997141"
},
{
"name": "C++",
"bytes": "69642"
},
{
"name": "CMake",
"bytes": "125183"
},
{
"name": "Objective-C",
"bytes": "2677"
},
{
"name": "Python",
"bytes": "2884"
},
{
"name": "Shell",
"bytes": "50918"
}
],
"symlink_target": ""
}
|
FROM tensorflow/magenta:0.1.9
# IPython
EXPOSE 8888
ADD container /workshop/
# /workshop/shared should be mapped to the host on startup.
RUN chmod +x /workshop/scripts/* && mkdir /workshop/shared
WORKDIR /workshop/scripts
CMD ["/bin/bash"]
|
{
"content_hash": "d829d72286212d00a6c04e1d8c7efc38",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 59,
"avg_line_length": 20.25,
"alnum_prop": 0.7489711934156379,
"repo_name": "random-forests/WTM",
"id": "42236f40f3972433dfa71edda9ade763898cea7f",
"size": "243",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Dockerfile",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Jupyter Notebook",
"bytes": "40535"
},
{
"name": "Shell",
"bytes": "1231"
}
],
"symlink_target": ""
}
|
<HTML>
<!-- This file was generated by tohtml from topol.tex -->
<TITLE>Introduction</TITLE>
<BODY BGCOLOR="#FFFFFF">
<HR><H1><A NAME="Node128">6.1. Introduction</a></H1>
<A HREF="node127.html#Node127"><IMG SRC="previous.gif"></A><A HREF="node127.html#Node127"><IMG SRC="up.gif"></A><A HREF="node129.html#Node129"><IMG SRC="next.gif"></A><BR>
<b>Up: </b><A HREF="node127.html#Node127"> Process Topologies</a>
<b>Next: </b><A HREF="node129.html#Node129"> Virtual Topologies</a>
<b>Previous: </b><A HREF="node127.html#Node127"> Process Topologies</a>
<P>
This chapter discusses the MPI topology mechanism. A topology is an extra,
optional attribute that one can give to an intra-communicator; topologies
cannot be added to inter-communicators. A topology can provide a convenient
naming mechanism for the processes of a group (within a communicator), and
additionally, may assist the runtime system in mapping the processes onto
hardware.
<P>
As stated in chapter <a href="node87.html#Node87">Groups, Contexts, and Communicators
</a>,
a process group in MPI is a collection of <tt> n</tt> processes. Each process in
the group is assigned a rank between <tt> 0</tt> and <tt> n-1</tt>. In many parallel
applications a linear ranking of processes does not adequately reflect the logical
communication pattern of the processes (which is usually determined by the
underlying problem geometry and the numerical algorithm used). Often the
processes are arranged in topological patterns such as two- or
three-dimensional grids. More generally, the logical process arrangement is
described by a graph. In this chapter we will refer to this logical process
arrangement as the ``virtual topology.''
<P>
A clear distinction must be made between the virtual process topology and the
topology of the underlying, physical hardware. The virtual topology can be
exploited by the system in the assignment of processes to physical processors,
if this helps to improve the communication performance on a given machine. How
this mapping is done, however, is outside the scope of MPI. The description
of the virtual topology, on the other hand, depends only on the application,
and is machine-independent. The functions that are proposed in this chapter
deal only with machine-independent mapping.
<P>
<BR>
[]<em> Rationale.</em>
<P>
Though physical mapping is not discussed, the
existence of the virtual topology information may be used as advice by
the runtime system.
There are well-known techniques for mapping grid/torus structures to
hardware topologies such as hypercubes or grids. For more
complicated graph structures good heuristics often yield nearly optimal
results [<a href="node166.html#-Bib20">20</a>]. On the other hand,
if there is no way for the user to specify the logical process
arrangement as a ``virtual topology,'' a random mapping is most
likely to result. On some machines, this will lead to
unnecessary contention in the interconnection network.
Some details about predicted and measured
performance improvements that result from good process-to-processor
mapping on modern wormhole-routing architectures can be found in
[<a href="node166.html#-Bib10">10</a>,<a href="node166.html#-Bib9">9</a>].
<P>
Besides possible performance benefits, the virtual topology can
function as a convenient, process-naming structure, with tremendous
benefits for program readability and notational power in
message-passing programming.
(<em> End of rationale.</em>) <BR>
<P>
<HR>
<A HREF="node127.html#Node127"><IMG SRC="previous.gif"></A><A HREF="node127.html#Node127"><IMG SRC="up.gif"></A><A HREF="node129.html#Node129"><IMG SRC="next.gif"></A><BR>
<b>Up: </b><A HREF="node127.html#Node127"> Process Topologies</a>
<b>Next: </b><A HREF="node129.html#Node129"> Virtual Topologies</a>
<b>Previous: </b><A HREF="node127.html#Node127"> Process Topologies</a>
<P>
<HR>
Return to <A HREF="node182.html">MPI 1.1 Standard Index</A><BR>
Return to <A HREF="http://www.mpi-forum.org/docs/mpi-20-html/node306.html">MPI-2 Standard Index</A><BR>
Return to <A HREF="http://www.mpi-forum.org/index.html">MPI Forum Home Page</A><BR>
<HR>
<FONT SIZE=-1>MPI-1.1 of June 12, 1995<BR>
HTML Generated on August 6, 1997
</FONT>
</BODY>
</HTML>
|
{
"content_hash": "54561e5c2590db581fa64adaf36a4a09",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 171,
"avg_line_length": 53.2962962962963,
"alnum_prop": 0.7433402826036599,
"repo_name": "mpi-forum/mpi-forum.github.io",
"id": "6c92ff09ad353d53361b7218302dd9e6d6a82da0",
"size": "4317",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/mpi-1.1/mpi-11-html/node128.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "1760"
},
{
"name": "CSS",
"bytes": "19317"
},
{
"name": "HTML",
"bytes": "58380"
},
{
"name": "JavaScript",
"bytes": "94682"
},
{
"name": "Python",
"bytes": "28634"
},
{
"name": "Ruby",
"bytes": "75"
},
{
"name": "SCSS",
"bytes": "10598"
}
],
"symlink_target": ""
}
|
<?php
/**
* include the wikirenderer class
*/
require_once(LIB_PATH.'wikirenderer/WikiRenderer.lib.php');
/**
* transform a wiki text into a document (html or else)
* @package jelix
* @subpackage utils
* @link http://wikirenderer.berlios.de/
* @since 1.0b1
*/
class jWiki extends WikiRenderer {
function __construct( $config=null){
if(is_string($config)){
$f = WIKIRENDERER_PATH.'rules/'.basename($config).'.php';
if(file_exists($f)){
require_once($f);
$this->config= new $config();
}else{
global $gJConfig;
if(!isset($gJConfig->_pluginsPathList_wr_rules)
|| !isset($gJConfig->_pluginsPathList_wr_rules[$config])
|| !file_exists($gJConfig->_pluginsPathList_wr_rules[$config]) ){
throw new Exception('Rules "'.$config.'" not found for jWiki');
}
require_once($gJConfig->_pluginsPathList_wr_rules[$config].$config.'.rule.php');
$this->config = new $config ();
}
}elseif(is_object($config)){
$this->config=$config;
}else{
require_once(WIKIRENDERER_PATH . 'rules/wr3_to_xhtml.php');
$this->config= new wr3_to_xhtml();
}
$this->inlineParser = new WikiInlineParser($this->config);
foreach($this->config->bloctags as $name){
$this->_blocList[]= new $name($this);
}
}
}
|
{
"content_hash": "5f64506353f5dbc304ddb61fd6c5d49b",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 96,
"avg_line_length": 30.897959183673468,
"alnum_prop": 0.535667107001321,
"repo_name": "yvestan/sendui",
"id": "e4297593603a0561f4381ee297436f6bdd44072a",
"size": "1790",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/lib/jelix/utils/jWiki.class.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "913601"
},
{
"name": "PHP",
"bytes": "4322097"
},
{
"name": "Shell",
"bytes": "254"
}
],
"symlink_target": ""
}
|
package com.jfreestock.data.feed;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.List;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import yahoofinance.Stock;
import yahoofinance.YahooFinance;
import yahoofinance.histquotes.HistoricalQuote;
import yahoofinance.histquotes.Interval;
import yahoofinance.quotes.stock.StockDividend;
public class FeedTest
{
@Ignore
@Test
public void testFeed()
{
Stock stock = YahooFinance.get("WES.AX");
StockDividend dividend = stock.getDividend();
Calendar twoYearsBack = GregorianCalendar.getInstance();
twoYearsBack.add(Calendar.YEAR, -2);
List<HistoricalQuote> history = stock.getHistory(twoYearsBack, Interval.WEEKLY);
Assert.assertEquals("AUD", stock.getCurrency());
}
}
|
{
"content_hash": "3ced9d0234114f1969c9a513fe1f0473",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 88,
"avg_line_length": 27.193548387096776,
"alnum_prop": 0.741399762752076,
"repo_name": "joshpassenger/jfreestock",
"id": "5c6e327e0053bf4e7fe963654e1caa72c717aa6e",
"size": "843",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "test/com/jfreestock/data/feed/FeedTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "28247"
}
],
"symlink_target": ""
}
|
package de.hub.clickwatch.analysis.results.provider;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import de.hub.clickwatch.analysis.results.BoxAndWhiskers;
/**
* This is the item provider adapter for a {@link de.hub.clickwatch.analysis.results.BoxAndWhiskers} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class BoxAndWhiskersItemProvider
extends ChartTypeItemProvider
implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
IItemLabelProvider,
IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public BoxAndWhiskersItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
/**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
}
return itemPropertyDescriptors;
}
/**
* This returns BoxAndWhiskers.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object getImage(Object object) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/BoxAndWhiskers"));
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
String label = ((BoxAndWhiskers)object).getName();
return label == null || label.length() == 0 ?
getString("_UI_BoxAndWhiskers_type") :
getString("_UI_BoxAndWhiskers_type") + " " + label;
}
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
super.notifyChanged(notification);
}
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
}
}
|
{
"content_hash": "21da562486db0bbdef377e89739da934",
"timestamp": "",
"source": "github",
"line_count": 108,
"max_line_length": 108,
"avg_line_length": 28.75925925925926,
"alnum_prop": 0.7256922086284611,
"repo_name": "markus1978/clickwatch",
"id": "162044b6e39421683307023ed83fe2d551cb9862",
"size": "3155",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "analysis/de.hub.clickwatch.analysis.results.edit/src/de/hub/clickwatch/analysis/results/provider/BoxAndWhiskersItemProvider.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "10246972"
},
{
"name": "Matlab",
"bytes": "7054"
},
{
"name": "Shell",
"bytes": "256"
},
{
"name": "XML",
"bytes": "14136"
}
],
"symlink_target": ""
}
|
import logging
import coloredlogs
import datetime
import json
import sys
import traceback
class TangoLogger(object):
"""
5GTAGNO logger that allows to switch to "JSON mode" to creat
JSON log messages in the 5GTANGO format.
see:
Two modes:
- log_json = False: Normal colored logging in text format
- log_json = True: 5GTANGO logging (flat JSON objects and metadata)
Example:
LOG = TangoLogger.getLogger("logger_name",
log_level=logging.INFO, log_json=True)
LOG.warning("this is a test message",
extra={"start_stop": "START", "status": "201"})
Turns into (printed to a single line):
{
"type":"W",
"time_elapsed":"",
"operation":"setup_logging",
"status":"201",
"message":"this is a test message",
"component":"tango.tngsdk.package",
"processName":"MainProcess",
"threadName":"MainThread",
"start_stop":"START",
"lineno":73,
"timestamp":"2018-11-15 19:25:49.348161 UTC"
}
"""
@staticmethod
def reconfigure_all_tango_loggers(
log_level=logging.INFO, log_json=False):
"""
Configure all active TangoLoggers (identified by 'tango.' prfix).
Two modes:
- log_json = False: Normal colored logging in text format
- log_json = True: 5GTANGO logging (flat JSON objects and metadata)
"""
# reconfigure all our TangoLoggers
for n, l in logging.Logger.manager.loggerDict.items():
# use prefix to only get TangoLoggers
if n.startswith("tango.") and isinstance(l, logging.Logger):
TangoLogger._reconfigure_logger(l, log_level, log_json)
@staticmethod
def _reconfigure_logger(logger, log_level, log_json):
"""
Reconfigure specific logger (switch between
normal logging and 5GTANGO JsonLogging).
Switch is done by muting the unwanted handlers.
"""
# apply log_level
logger.setLevel(log_level)
for h in logger.handlers:
# show messages in all handlers
h.setLevel(log_level)
# disable handler depending on log_json
if isinstance(h, TangoJsonLogHandler):
if not log_json:
h.setLevel(999) # disable (hide all)
else:
if log_json:
h.setLevel(999) # disable (hide all)
@staticmethod
def getLogger(name, log_level=logging.INFO, log_json=False):
"""
Create a TangoLogger logger.
"""
# all TangoLoggers are prefixed for global setup
logger = logging.getLogger("tango.{}".format(name))
coloredlogs.install(logger=logger)
th = TangoJsonLogHandler()
logger.addHandler(th)
# configure logger
TangoLogger._reconfigure_logger(logger, log_level, log_json)
return logger
class TangoJsonLogHandler(logging.StreamHandler):
"""
Custom log handler to create JSON-based log messages
as required by the 5GTANGO SP.
https://github.com/sonata-nfv/tng-gtk-utils
It uses the normal Python logging interface and utilizes
the "extra" parameter of the logging methods to add additional
fields (optionally) for the JSON output.
"""
def _to_tango_dict(self, record):
"""
Creates a dict in 5GTANGO format from the given record.
Sets defaults of not given.
"""
# fetch exception info and stack trace if available
exc_info_str = None
if record.exc_info:
exc_info_str = str(
traceback.format_exception(
record.exc_info[0],
record.exc_info[1],
record.exc_info[2]))
d = {
# TANGO default fields
"type": record.levelname[0],
"timestamp": "{} UTC".format(datetime.datetime.utcnow()),
"start_stop": record.__dict__.get("start_stop", ""),
"component": record.name,
"operation": record.__dict__.get("operation", record.funcName),
"message": str(record.msg),
"status": record.__dict__.get("status", ""),
"time_elapsed": record.__dict__.get("time_elapsed", ""),
# some additional fields (because we can ;-))
"lineno": record.lineno,
"threadName": record.threadName,
"processName": record.processName,
"stack_info": str(record.stack_info),
"exc_info": exc_info_str
}
return d
def emit(self, record):
"""
We go the simple way here: Just print the JSON :-)
"""
print(json.dumps(self._to_tango_dict(record)))
sys.stdout.flush()
|
{
"content_hash": "e1db1f1df139eba64bcd1251b7648634",
"timestamp": "",
"source": "github",
"line_count": 136,
"max_line_length": 75,
"avg_line_length": 35.4485294117647,
"alnum_prop": 0.5783032565857706,
"repo_name": "tsoenen/son-mano-framework",
"id": "83496cf258595e0d0e15dc0ec5001fbd7f936eab",
"size": "6318",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "son-mano-base/sonmanobase/logger.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "12205"
},
{
"name": "Python",
"bytes": "598734"
},
{
"name": "Shell",
"bytes": "43641"
}
],
"symlink_target": ""
}
|
<!DOCTYPE html>
<!-- DO NOT EDIT! Generated by `common/security-features/tools/generate.py --spec referrer-policy/` -->
<html>
<head>
<meta charset="utf-8">
<meta name="timeout" content="long">
<meta name="referrer" content="unsafe-url">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/security-features/resources/common.sub.js"></script>
<script src="../../../generic/test-case.sub.js"></script>
</head>
<body>
<script>
TestCase(
[
{
"expectation": "omitted",
"origin": "same-http",
"redirection": "keep-origin",
"source_context_list": [
{
"policyDeliveries": [
{
"deliveryType": "meta",
"key": "referrerPolicy",
"value": "no-referrer"
}
],
"sourceContextType": "srcdoc"
}
],
"source_scheme": "http",
"subresource": "sharedworker-module",
"subresource_policy_deliveries": [],
"test_description": "Referrer Policy: Expects omitted for sharedworker-module to same-http origin and keep-origin redirection from http context."
},
{
"expectation": "omitted",
"origin": "same-http",
"redirection": "no-redirect",
"source_context_list": [
{
"policyDeliveries": [
{
"deliveryType": "meta",
"key": "referrerPolicy",
"value": "no-referrer"
}
],
"sourceContextType": "srcdoc"
}
],
"source_scheme": "http",
"subresource": "sharedworker-module",
"subresource_policy_deliveries": [],
"test_description": "Referrer Policy: Expects omitted for sharedworker-module to same-http origin and no-redirect redirection from http context."
}
],
new SanityChecker()
).start();
</script>
<div id="log"></div>
</body>
</html>
|
{
"content_hash": "d4e6b2d7b6fbabd9de2da47317dc2931",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 157,
"avg_line_length": 34.8,
"alnum_prop": 0.4876215738284704,
"repo_name": "ric2b/Vivaldi-browser",
"id": "b09570e831a1f4b20b9e85563aebc66f2fdf7e9f",
"size": "2262",
"binary": false,
"copies": "23",
"ref": "refs/heads/master",
"path": "chromium/third_party/blink/web_tests/external/wpt/referrer-policy/gen/srcdoc.meta/no-referrer/sharedworker-module.http.html",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
}
|
/* A Bison parser, made by GNU Bison 2.6.4. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
#ifndef YY_YY_PARSE_TAB_H_INCLUDED
# define YY_YY_PARSE_TAB_H_INCLUDED
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int yydebug;
#endif
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
STRING = 258,
STATE = 259,
TOKENS = 260,
PREFIX = 261,
ARROW = 262,
BLOCK = 263,
ENDBLOCK = 264,
COLON = 265,
EQUAL = 266,
SEMICOLON = 267,
COMMA = 268,
ABBREV = 269,
DEFINE = 270,
RESULT = 271,
SYMBOL = 272,
SYMRESULT = 273,
DEFRESULT = 274,
EARLYRESULT = 275,
EARLYSYMRESULT = 276,
TYPE = 277,
ATTR = 278,
DEFATTR = 279,
STAR = 280,
QUERY = 281,
PIPE = 282,
XOR = 283,
AND = 284,
NOT = 285,
RPAREN = 286,
LPAREN = 287,
RANGLE = 288,
LANGLE = 289
};
#endif
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
/* Line 2077 of yacc.c */
#line 27 "parse.y"
char *s;
int i;
Stringlist *sl;
InlineBlockList *ibl;
InlineBlock *ib;
Expr *e;
/* Line 2077 of yacc.c */
#line 101 "parse.tab.h"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
extern YYSTYPE yylval;
#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int yyparse (void *YYPARSE_PARAM);
#else
int yyparse ();
#endif
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int yyparse (void);
#else
int yyparse ();
#endif
#endif /* ! YYPARSE_PARAM */
#endif /* !YY_YY_PARSE_TAB_H_INCLUDED */
|
{
"content_hash": "3a5cc90f8b489f9686212b6d33dfeeca",
"timestamp": "",
"source": "github",
"line_count": 123,
"max_line_length": 77,
"avg_line_length": 26.69918699186992,
"alnum_prop": 0.6690012180267966,
"repo_name": "mezohe/glekitufa",
"id": "f35fcb9d129b9bd745fa53db1e6db04076203de6",
"size": "3284",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "jbofihe/dfasyn/parse.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "315"
},
{
"name": "Awk",
"bytes": "2351"
},
{
"name": "C",
"bytes": "3569580"
},
{
"name": "C++",
"bytes": "10893"
},
{
"name": "CSS",
"bytes": "3952"
},
{
"name": "Groff",
"bytes": "33730"
},
{
"name": "HTML",
"bytes": "15824888"
},
{
"name": "JavaScript",
"bytes": "27825713"
},
{
"name": "Lex",
"bytes": "3146"
},
{
"name": "Makefile",
"bytes": "10055"
},
{
"name": "Perl",
"bytes": "77310"
},
{
"name": "Perl6",
"bytes": "533"
},
{
"name": "Shell",
"bytes": "5748"
},
{
"name": "XSLT",
"bytes": "6614"
},
{
"name": "Yacc",
"bytes": "410019"
}
],
"symlink_target": ""
}
|
package org.apache.xmlbeans;
import java.math.BigDecimal;
/**
* Represents an XML Schema-compatible duration.
* <p>
* Both the immutable GDuration and the mutable GDurationBuilder are
* GDurationSpecifications. Use this interface where you want to
* allow callers to pass any implementation of a GDuration.
*
* @see GDuration
*/
public interface GDurationSpecification
{
/**
* True if this instance is immutable.
*/
boolean isImmutable();
/**
* Returns the sign of the duration: +1 is forwards
* and -1 is backwards in time.
*/
int getSign();
/**
* Gets the year component.
*/
int getYear();
/**
* Gets the month-of-year component.
*/
int getMonth();
/**
* Gets the day-of-month component.
*/
int getDay();
/**
* Gets the hour-of-day component.
*/
int getHour();
/**
* Gets the minute-of-hour component.
*/
int getMinute();
/**
* Gets the second-of-minute component.
*/
int getSecond();
/**
* Gets the fraction-of-second. Range from 0 (inclusive) to 1 (exclusive).
*/
BigDecimal getFraction();
/**
* Returns true if all of the individual components
* of the duration are nonnegative.
*/
boolean isValid();
/**
* Comparison to another GDuration.
* <ul>
* <li>Returns -1 if this < duration. (less-than)
* <li>Returns 0 if this == duration. (equal)
* <li>Returns 1 if this > duration. (greater-than)
* <li>Returns 2 if this <> duration. (incomparable)
* </ul>
* Two instances are incomparable if they have different amounts
* of information.
*/
int compareToGDuration(GDurationSpecification duration);
}
|
{
"content_hash": "699c7ccf0813c98926a684c85b8b1936",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 78,
"avg_line_length": 21.75609756097561,
"alnum_prop": 0.6031390134529148,
"repo_name": "apache/xmlbeans",
"id": "a63822fe90a7a0337fa0cdede35204a45cf79e62",
"size": "2413",
"binary": false,
"copies": "2",
"ref": "refs/heads/trunk",
"path": "src/main/java/org/apache/xmlbeans/GDurationSpecification.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "60552"
},
{
"name": "CSS",
"bytes": "1961"
},
{
"name": "HTML",
"bytes": "2640"
},
{
"name": "Java",
"bytes": "7628118"
},
{
"name": "Shell",
"bytes": "37436"
},
{
"name": "XQuery",
"bytes": "2172"
},
{
"name": "XS",
"bytes": "6502"
},
{
"name": "XSLT",
"bytes": "78459"
}
],
"symlink_target": ""
}
|
// Copyright (c) 2011 David H. Hovemeyer <david.hovemeyer@gmail.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
package me.porcelli.drools.playground.client.widgets.ace;
import com.google.gwt.core.client.JavaScriptObject;
/**
* Callback interface for events generated by {@link AceEditor}.
* Note that the argument the callback receives is a
* JavaScriptObject, so you will probably need to use JSNI to
* make use of it.
*/
public interface AceEditorCallback {
/**
* Callback method.
*
* @param obj the event object: for example, an onChange event
* if this callback is receiving onChange events
*/
public void invokeAceCallback(JavaScriptObject obj);
}
|
{
"content_hash": "67455309674b6b2ec3178aea0dff0729",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 80,
"avg_line_length": 44.12820512820513,
"alnum_prop": 0.7542126670540383,
"repo_name": "porcelli/playground",
"id": "bc5d70c393371cbd176ccac6af9bb9a1da16b360",
"size": "1721",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "playground-webapp/src/main/java/me/porcelli/drools/playground/client/widgets/ace/AceEditorCallback.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "38255"
},
{
"name": "JavaScript",
"bytes": "4169443"
}
],
"symlink_target": ""
}
|
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track-piece {
background: whitesmoke;
}
::-webkit-scrollbar-thumb:vertical {
border: 1px solid #DDD;
background: #CCC;
}
::-webkit-scrollbar-thumb:hover {
background: #666;
}
|
{
"content_hash": "28779d471819ad0dc8967ec82e7f97ea",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 36,
"avg_line_length": 14.875,
"alnum_prop": 0.6890756302521008,
"repo_name": "onedot/XWorkFramework",
"id": "fa550a2a07db7060debb128f7f5c4104c4bf8ce8",
"size": "238",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "css/chrome-scrollbar-custom.css",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "221104"
},
{
"name": "JavaScript",
"bytes": "4135422"
}
],
"symlink_target": ""
}
|
package io.agrest.converter.jsonvalue;
import com.fasterxml.jackson.databind.JsonNode;
/**
* @since 5.0
*/
public class JsonNodeConverter implements JsonValueConverter<JsonNode> {
private static final JsonNodeConverter instance = new JsonNodeConverter();
public static JsonNodeConverter converter() {
return instance;
}
@Override
public JsonNode value(JsonNode node) {
return node;
}
}
|
{
"content_hash": "a91bb256224756f7468942ee46a5be1a",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 78,
"avg_line_length": 21.65,
"alnum_prop": 0.7136258660508084,
"repo_name": "nhl/link-rest",
"id": "6c8da4008c2d2d20d2dda806d25093a483200cad",
"size": "433",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "agrest-engine/src/main/java/io/agrest/converter/jsonvalue/JsonNodeConverter.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "2660"
},
{
"name": "Java",
"bytes": "1290059"
},
{
"name": "XSLT",
"bytes": "16456"
}
],
"symlink_target": ""
}
|
require_relative 'factories/path_dataset_loader_factory'
require_relative 'factories/path_adapter_dataset_loader_factory'
require_relative 'factories/stream_dataset_loader_factory'
module CitySDK
class Dataset
def self.load_path(path, format = nil)
self.load_dataset(PathAdapterDatasetLoaderFactory, path, format)
end # def
def self.load_stream(stream, format)
self.load_dataset(StreamDatasetLoaderFactory, stream, format)
end # def
def self.format_from_path(path)
PathDatasetLoaderFactory.new.format_from_path(path)
end # def
private
def self.load_dataset(factory_class, source, format)
factory_class.new.create(source, format).load_dataset
end # def
end # class
end # module
|
{
"content_hash": "94353b53a6e67f8d22e373be6022754b",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 70,
"avg_line_length": 28.73076923076923,
"alnum_prop": 0.7336010709504686,
"repo_name": "foxdog-studios/citysdk-client",
"id": "6e5bfb879122e32807f53b474cd90d285eb64896",
"size": "774",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/citysdk/client/datasets/dataset.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "19359"
}
],
"symlink_target": ""
}
|
package com.sc2geeks.replayUtility.crawler;
import com.sc2geeks.replay.dao.ReplayDAO;
import com.sc2geeks.replay.model.GameEntity;
import com.sc2geeks.replayUtility.MutableNamespaceContext;
import com.sc2geeks.replayUtility.UserInfo;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.protocol.BasicHttpContext;
import org.apache.http.protocol.HttpContext;
import org.apache.http.util.EntityUtils;
import org.apache.log4j.Logger;
import org.ccil.cowan.tagsoup.Parser;
import org.w3c.dom.Node;
import org.xml.sax.InputSource;
import org.xml.sax.XMLReader;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMResult;
import javax.xml.transform.sax.SAXSource;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathFactory;
import java.io.StringReader;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
/**
* Created with IntelliJ IDEA.
* User: robert
* Date: 6/3/12
* Time: 10:46 AM
* To change this template use File | Settings | File Templates.
*/
public abstract class CrawlerBase
{
protected static Logger logger = Logger.getLogger(CrawlerBase.class);
protected static CrawlerConfig crawlerConfig = CrawlerConfig.getInstance();
protected int existingCount = 0;
public void start()
{
logger.info(getSourceName() + " - Retry failed games.");
retryFailedCrawl();
logger.info(getSourceName() + " - Retry failed games - done!");
logger.info(getSourceName() + " - Crawling new games.");
crawlNewReplays();
logger.info(getSourceName() + " - Crawling new games - done!");
}
private void crawlNewReplays()
{
do
{
List<String> replayUrls = getReplayUrls();
for (String gameUrl : replayUrls)
{
if (gameExists(gameUrl))
{
existingCount++;
if (shouldStopCrawling())
break;
else
continue;
}
crawlReplay(gameUrl, null);
}
}
while (!shouldStopCrawling());
}
private void retryFailedCrawl()
{
try
{
List<GameEntity> retryGames = ReplayDAO.getFailedCrawlGames(crawlerConfig.getMaxRetries(), getSourceName());
for (GameEntity game : retryGames)
{
crawlReplay(game.getGameUrl(), game);
}
} catch (Exception e)
{
logger.error(getSourceName() + " - Failed to do retry failed games.", e);
}
}
private void crawlReplay(String gameUrl, GameEntity game)
{
if (game == null)
{
game = new GameEntity();
game.setGameUrl(gameUrl);
game.setExternalSource(getSourceName());
}
try
{
getReplayFromUrl(gameUrl, game);
game.setStatus("C");
} catch (Exception e)
{
game.setStatus("CF");
logger.error(getSourceName() + " : Failed to get replay from " + gameUrl, e);
}
game.setCrawlTimes(game.getCrawlTimes() + 1);
game.setLastEditDate(new Timestamp(new Date().getTime()));
game.setLastEditUser(UserInfo.getCurrentUserName());
ReplayDAO.saveOrUpdateObject(game);
}
/**
* override when needed.
*
* @return
*/
protected boolean shouldStopCrawling()
{
return existingCount >= crawlerConfig.getMaxExistedGameBeforeStop();
}
/**
* default implementation is to check if a game with the pageurl already exists.
* Override might be to extract the replay id and check against the replay id in case the game url may change.
*
* @param gameUrl
* @return
*/
protected boolean gameExists(String gameUrl)
{
try
{
GameEntity game = ReplayDAO.getGameByGameUrl(gameUrl);
return game != null;
} catch (Exception e)
{
e.printStackTrace();
return false;
}
}
protected abstract void getReplayFromUrl(String gameUrl, GameEntity game) throws Exception;
/**
* normally this method returns all replay urls in one replay list page.
*
* @return
*/
protected abstract List<String> getReplayUrls();
protected abstract String getSourceName();
/* helper functions */
/**
* @param input
* @return
*/
protected static Node standardizeXml(String input) throws Exception
{
XMLReader reader = new Parser();
reader.setFeature(Parser.namespacesFeature, false);
reader.setFeature(Parser.namespacePrefixesFeature, false);
Transformer transformer = TransformerFactory.newInstance().newTransformer();
transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
DOMResult result = new DOMResult();
InputSource inputSource = new InputSource(new StringReader(input));
transformer.transform(new SAXSource(reader, inputSource),
result);
return result.getNode();
}
protected static String GetHtml(String url, String encoding) throws Exception
{
DefaultHttpClient httpClient = new DefaultHttpClient();
httpClient.getParams().setParameter("http.useragent",
"Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)");
HttpContext localContext = new BasicHttpContext();
HttpGet httpget;
HttpResponse response;
HttpEntity entity;
String source;
httpget = new HttpGet(url);
response = httpClient.execute(httpget, localContext);
entity = response.getEntity();
source = EntityUtils.toString(entity, encoding);
return source;
}
protected static XPath createXPath()
{
XPathFactory xPathFactory = XPathFactory.newInstance();
XPath xpath = xPathFactory.newXPath();
MutableNamespaceContext nc = new MutableNamespaceContext();
nc.setNamespace("html", "http://www.w3.org/1999/xhtml");
xpath.setNamespaceContext(nc);
return xpath;
}}
|
{
"content_hash": "865237394f626d46deaaed198c21a896",
"timestamp": "",
"source": "github",
"line_count": 213,
"max_line_length": 111,
"avg_line_length": 26.15962441314554,
"alnum_prop": 0.7293610911701364,
"repo_name": "RobertTheNerd/sc2geeks",
"id": "61a93748d0f33edcdb1093ccab1ed7531d6066be",
"size": "5572",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "web-api/app/replayUtility/src/main/java/com/sc2geeks/replayUtility/crawler/CrawlerBase.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "576"
},
{
"name": "CSS",
"bytes": "897134"
},
{
"name": "HTML",
"bytes": "2799311"
},
{
"name": "Java",
"bytes": "570929"
},
{
"name": "JavaScript",
"bytes": "1098678"
},
{
"name": "PHP",
"bytes": "204145"
},
{
"name": "Python",
"bytes": "80027"
},
{
"name": "Shell",
"bytes": "2379"
},
{
"name": "XSLT",
"bytes": "44740"
}
],
"symlink_target": ""
}
|
'use strict';
var query = require('../config.js').query;
/**
* Opens new upload session
* @param {WixWidget} instance
* @param {Function} callback
* @return {Error}
* @return {number} session id
*/
module.exports.open = function (instance, callback) {
var q = 'INSERT INTO session (instance_id, component_id, created) \
VALUES ($1, $2, NOW()) \
RETURNING session_id';
var values = [
instance.instanceId,
instance.compId
];
query.first(q, values, function (err, rows, result) {
if (err) {
console.error('db session insert error: ', err);
return callback(err, null);
}
callback(null, rows.session_id);
});
}
/**
* Checks if session is open
* @param {number} sessionId id of upload session
* @param {WixWidget} instance for checking rights
* @param {Function} callback
* @return {Error}
* @return {Boolean} true if open, fase if cloased
*/
module.exports.isOpen = function (sessionId, instance, callback) {
var q = 'SELECT closed \
FROM session \
WHERE session_id = $1 \
AND instance_id = $2 \
AND component_id = $3';
var values = [
sessionId,
instance.instanceId,
instance.compId
];
query.first(q, values, function (err, rows, result) {
if (err) {
console.error('db session isOpen error: ', err);
return callback(err, null);
}
callback(null, !rows.closed);
});
}
/**
* Closes upload session
* @param {number} sessionId upload session id to close
* @param {WixWidget} instance for checking rights
* @param {Function} callback
* @return {Error}
* @return {Object} session row that was closed
*/
module.exports.close = function (sessionId, instance, callback) {
var q = 'UPDATE session \
SET closed = $1 \
WHERE session_id = $2 \
AND instance_id = $3 \
AND component_id = $4 \
AND closed = $5 \
RETURNING *';
var values = [
true,
sessionId,
instance.instanceId,
instance.compId,
false
];
query.first(q, values, function (err, row, result) {
if (err) {
console.error('db session close error: ', err);
return callback(err, null);
}
callback(null, row);
});
}
|
{
"content_hash": "a2b4bb5c3d7f72b8dd2ffff5c516793b",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 69,
"avg_line_length": 24.612903225806452,
"alnum_prop": 0.5919615552643076,
"repo_name": "donataswix/send-files-tpa",
"id": "4634f167a36be57298ce3fdfdf63771254d7e211",
"size": "2289",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "server/models/sessions-db.js",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "CSS",
"bytes": "57397"
},
{
"name": "JavaScript",
"bytes": "157534"
}
],
"symlink_target": ""
}
|
import os
import nomen
def get_path(file_name):
current_dir = os.path.dirname(os.path.abspath(__file__))
return os.path.join(current_dir, file_name)
|
{
"content_hash": "f68bdfc4d30bac3ec4b5c76348817ff9",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 58,
"avg_line_length": 22.142857142857142,
"alnum_prop": 0.7161290322580646,
"repo_name": "altosaar/nomen",
"id": "b317bfc0a7d0414fe558d50f528dc3c24eff1d48",
"size": "155",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tests/util.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "8486"
}
],
"symlink_target": ""
}
|
package com.cenkgun.android.RadRoid;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* 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);
}
}
|
{
"content_hash": "d3cf81aeadbeb578601950caa864ef20",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 78,
"avg_line_length": 22.066666666666666,
"alnum_prop": 0.7069486404833837,
"repo_name": "CnkGn/RadRoid",
"id": "416b26f1a6a992cb8aa3fe9d0e335f4e7c034c1f",
"size": "331",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/src/test/java/com/cenkgun/android/RadRoid/ExampleUnitTest.java",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "51031"
}
],
"symlink_target": ""
}
|
"""Tests for serialization functions."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import json
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import tensor_shape
from tensorflow.python.framework import test_util
from tensorflow.python.keras import losses
from tensorflow.python.keras.engine import input_layer
from tensorflow.python.keras.engine import sequential
from tensorflow.python.keras.engine import training
from tensorflow.python.keras.layers import core
from tensorflow.python.keras.utils import losses_utils, generic_utils
from tensorflow.python.platform import test
from tensorflow.python.util import serialization
class SerializationTests(test.TestCase):
def test_serialize_dense(self):
dense = core.Dense(3)
dense(constant_op.constant([[4.]]))
round_trip = json.loads(json.dumps(
dense, default=serialization.get_json_type))
self.assertEqual(3, round_trip["config"]["units"])
def test_serialize_shape(self):
round_trip = json.loads(json.dumps(
tensor_shape.TensorShape([None, 2, 3]),
default=serialization.get_json_type))
self.assertIs(round_trip[0], None)
self.assertEqual(round_trip[1], 2)
@test_util.run_in_graph_and_eager_modes
def test_serialize_sequential(self):
model = sequential.Sequential()
model.add(core.Dense(4))
model.add(core.Dense(5))
model(constant_op.constant([[1.]]))
sequential_round_trip = json.loads(
json.dumps(model, default=serialization.get_json_type))
self.assertEqual(
5, sequential_round_trip["config"]["layers"][1]["config"]["units"])
@test_util.run_in_graph_and_eager_modes
def test_serialize_model(self):
x = input_layer.Input(shape=[3])
y = core.Dense(10)(x)
model = training.Model(x, y)
model(constant_op.constant([[1., 1., 1.]]))
model_round_trip = json.loads(
json.dumps(model, default=serialization.get_json_type))
self.assertEqual(
10, model_round_trip["config"]["layers"][1]["config"]["units"])
@test_util.run_in_graph_and_eager_modes
def test_serialize_custom_model_compile(self):
with generic_utils.custom_object_scope():
@generic_utils.register_keras_serializable(package="dummy-package")
class DummySparseCategoricalCrossentropyLoss(losses.LossFunctionWrapper):
# This loss is identical equal to tf.keras.losses.SparseCategoricalCrossentropy
def __init__(
self,
from_logits=False,
reduction=losses_utils.ReductionV2.AUTO,
name="dummy_sparse_categorical_crossentropy_loss",
):
super(DummySparseCategoricalCrossentropyLoss, self).__init__(
losses.sparse_categorical_crossentropy,
name=name,
reduction=reduction,
from_logits=from_logits,
)
x = input_layer.Input(shape=[3])
y = core.Dense(10)(x)
model = training.Model(x, y)
model.compile(
loss=DummySparseCategoricalCrossentropyLoss(from_logits=True))
model_round_trip = json.loads(
json.dumps(model.loss, default=serialization.get_json_type))
# check if class name with package scope
self.assertEqual("dummy-package>DummySparseCategoricalCrossentropyLoss",
model_round_trip["class_name"])
# check if configure is correctly
self.assertEqual(True, model_round_trip["config"]["from_logits"])
if __name__ == "__main__":
test.main()
|
{
"content_hash": "b85bc01fd9dcc8692883ba3b149545e0",
"timestamp": "",
"source": "github",
"line_count": 97,
"max_line_length": 87,
"avg_line_length": 36.75257731958763,
"alnum_prop": 0.6875175315568023,
"repo_name": "renyi533/tensorflow",
"id": "2f4b5d55b032f5d6e908f154df4af984de284574",
"size": "4254",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "tensorflow/python/util/serialization_test.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "31572"
},
{
"name": "Batchfile",
"bytes": "55269"
},
{
"name": "C",
"bytes": "903309"
},
{
"name": "C#",
"bytes": "8562"
},
{
"name": "C++",
"bytes": "82507951"
},
{
"name": "CMake",
"bytes": "6967"
},
{
"name": "Dockerfile",
"bytes": "113964"
},
{
"name": "Go",
"bytes": "1871425"
},
{
"name": "HTML",
"bytes": "4686483"
},
{
"name": "Java",
"bytes": "988219"
},
{
"name": "Jupyter Notebook",
"bytes": "550861"
},
{
"name": "LLVM",
"bytes": "6536"
},
{
"name": "MLIR",
"bytes": "2073744"
},
{
"name": "Makefile",
"bytes": "66796"
},
{
"name": "Objective-C",
"bytes": "116558"
},
{
"name": "Objective-C++",
"bytes": "319021"
},
{
"name": "PHP",
"bytes": "4236"
},
{
"name": "Pascal",
"bytes": "318"
},
{
"name": "Pawn",
"bytes": "20422"
},
{
"name": "Perl",
"bytes": "7536"
},
{
"name": "Python",
"bytes": "37811412"
},
{
"name": "RobotFramework",
"bytes": "1779"
},
{
"name": "Roff",
"bytes": "2705"
},
{
"name": "Ruby",
"bytes": "7464"
},
{
"name": "SWIG",
"bytes": "6846"
},
{
"name": "Shell",
"bytes": "696058"
},
{
"name": "Smarty",
"bytes": "35725"
},
{
"name": "Starlark",
"bytes": "3655758"
},
{
"name": "Swift",
"bytes": "62814"
},
{
"name": "Vim Snippet",
"bytes": "58"
}
],
"symlink_target": ""
}
|
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Swarming\SubscribePro\Api\SubscriptionManagementInterface" type="Swarming\SubscribePro\Service\SubscriptionManagement" />
<preference for="Swarming\SubscribePro\Api\PaymentTokenManagementInterface" type="Swarming\SubscribePro\Service\PaymentTokenManagement" />
<preference for="Swarming\SubscribePro\Api\AddressManagementInterface" type="Swarming\SubscribePro\Service\AddressManagement" />
<preference for="Swarming\SubscribePro\Api\Data\ProductInterface" type="Swarming\SubscribePro\Model\Product" />
<preference for="Swarming\SubscribePro\Api\Data\SubscriptionOptionInterface" type="Swarming\SubscribePro\Model\Quote\SubscriptionOption" />
<preference for="Swarming\SubscribePro\Model\CatalogRule\InspectorInterface" type="Swarming\SubscribePro\Model\CatalogRule\Inspector" />
<preference for="Magento\Sales\Block\Adminhtml\Order\Create\Items\Grid" type="Swarming\SubscribePro\Block\Adminhtml\Order\Create\Items\Grid" />
<preference for="Swarming\SubscribePro\Api\CartManagementInterface" type="Swarming\SubscribePro\Model\Quote\QuoteManagement" />
<preference for="Swarming\SubscribePro\Api\GetOrderStatusInterface" type="Swarming\SubscribePro\Service\GetOrderStatus" />
<preference for="Swarming\SubscribePro\Api\Data\OrderPaymentStateInterface" type="Swarming\SubscribePro\Model\Order\PaymentState" />
<preference for="Magento\Payment\Gateway\Data\Order\AddressAdapter" type="Swarming\SubscribePro\Payment\Gateway\Data\Order\AddressAdapter"/>
<preference for="Swarming\SubscribePro\Service\Payment\PaymentProfileDataBuilderInterface" type="Swarming\SubscribePro\Service\Payment\PaymentProfileDataBuilderPool" />
<type name="Swarming\SubscribePro\Model\MetaService">
<arguments>
<argument name="metaUser" xsi:type="object">Swarming\SubscribePro\Model\Meta\Customer</argument>
<argument name="userType" xsi:type="const">Swarming\SubscribePro\Model\Meta\Customer::TYPE</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Platform\Platform">
<arguments>
<argument name="config" xsi:type="array">
<item name="product" xsi:type="array">
<item name="instance_name" xsi:type="string">Swarming\SubscribePro\Model\Product</item>
</item>
<item name="address" xsi:type="array">
<item name="instance_name" xsi:type="string">Swarming\SubscribePro\Model\Address</item>
</item>
<item name="subscription" xsi:type="array">
<item name="instance_name" xsi:type="string">Swarming\SubscribePro\Model\Subscription</item>
</item>
</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Platform\Service\Product">
<arguments>
<argument name="name" xsi:type="const">SubscribePro\Service\Product\ProductService::NAME</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Platform\Service\Address">
<arguments>
<argument name="name" xsi:type="const">SubscribePro\Service\Address\AddressService::NAME</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Platform\Service\Customer">
<arguments>
<argument name="name" xsi:type="const">SubscribePro\Service\Customer\CustomerService::NAME</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Platform\Service\Subscription">
<arguments>
<argument name="name" xsi:type="const">SubscribePro\Service\Subscription\SubscriptionService::NAME</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Platform\Service\Token">
<arguments>
<argument name="name" xsi:type="const">SubscribePro\Service\Token\TokenService::NAME</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Platform\Service\PaymentProfile">
<arguments>
<argument name="name" xsi:type="const">SubscribePro\Service\PaymentProfile\PaymentProfileService::NAME</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Platform\Service\ApplePay\PaymentProfile">
<arguments>
<argument name="name" xsi:type="const">SubscribePro\Service\PaymentProfile\PaymentProfileService::NAME</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Platform\Service\Transaction">
<arguments>
<argument name="name" xsi:type="const">SubscribePro\Service\Transaction\TransactionService::NAME</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Platform\Service\Webhook">
<arguments>
<argument name="name" xsi:type="const">SubscribePro\Service\Webhook\WebhookService::NAME</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Platform\Tool\Config">
<arguments>
<argument name="name" xsi:type="const">SubscribePro\Tools\Config::NAME</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Platform\Tool\Oauth">
<arguments>
<argument name="name" xsi:type="const">SubscribePro\Tools\Oauth::NAME</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Model\CatalogRule\InspectorRepository">
<arguments>
<argument name="defaultInspector" xsi:type="string">Swarming\SubscribePro\Model\CatalogRule\Inspector\DefaultInspector</argument>
<argument name="inspectors" xsi:type="array">
<item name="configurable" xsi:type="string">Swarming\SubscribePro\Model\CatalogRule\Inspector\ConfigurableProduct</item>
<item name="bundle" xsi:type="string">Swarming\SubscribePro\Model\CatalogRule\Inspector\BundleProduct</item>
</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Model\Rule\Condition\Status">
<arguments>
<argument name="data" xsi:type="array">
<item name="form_name" xsi:type="string">sales_rule_form</item>
</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Model\Rule\Condition\Interval">
<arguments>
<argument name="data" xsi:type="array">
<item name="form_name" xsi:type="string">sales_rule_form</item>
</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Model\Rule\Condition\ReorderOrdinal">
<arguments>
<argument name="data" xsi:type="array">
<item name="form_name" xsi:type="string">sales_rule_form</item>
</argument>
</arguments>
</type>
<type name="Magento\SalesRule\Model\Rule\Condition\Product\Combine">
<plugin name="subscribepro_salesrule_conditions" type="Swarming\SubscribePro\Plugin\SalesRule\Conditions" />
</type>
<type name="Magento\SalesRule\Model\Validator">
<plugin name="subscribepro_discount" type="Swarming\SubscribePro\Plugin\SalesRule\Validator" sortOrder="50" />
</type>
<type name="Magento\Quote\Model\Quote\Item\CartItemOptionsProcessor">
<plugin name="subscribepro_subscription_option" type="Swarming\SubscribePro\Plugin\Quote\CartItemOptionsProcessor" />
</type>
<type name="Magento\Vault\Api\PaymentTokenRepositoryInterface">
<plugin name="subscribepro_vault_repository" type="Swarming\SubscribePro\Plugin\Vault\TokenRepository" />
</type>
<type name="Magento\Catalog\Helper\Product\Configuration">
<plugin name="subscribepro_options" type="Swarming\SubscribePro\Plugin\Product\Configuration" sortOrder="80" />
</type>
<type name="Magento\Quote\Model\Quote\Item">
<plugin name="subscribepro_options" type="Swarming\SubscribePro\Plugin\Quote\Item" />
</type>
<type name="Magento\Quote\Model\Quote\Item\ToOrderItem">
<plugin name="subscribepro_options" type="Swarming\SubscribePro\Plugin\Quote\ToOrderItem"/>
</type>
<type name="Magento\Checkout\Model\Cart">
<plugin name="subscribepro_options" type="Swarming\SubscribePro\Plugin\Checkout\Cart"/>
</type>
<type name="Magento\GroupedProduct\Model\Product\Type\Grouped">
<plugin name="subscribepro_attribute" type="Swarming\SubscribePro\Plugin\GroupedProduct\TypeGrouped"/>
</type>
<!-- ShipperHQ extension -->
<type name="ShipperHQ\Shipper\Model\Carrier\Processor\ShipperMapper">
<plugin name="subscribepro_shipperhq" type="Swarming\SubscribePro\Plugin\ShipperHQ\ShipperMapperPlugin" />
</type>
<!-- SubscribeProAdapter -->
<virtualType name="SubscribeProAdapter" type="Magento\Payment\Model\Method\Adapter">
<arguments>
<argument name="code" xsi:type="const">Swarming\SubscribePro\Gateway\Config\ConfigProvider::CODE</argument>
<argument name="formBlockType" xsi:type="string">Swarming\SubscribePro\Block\Adminhtml\Payment\Cc</argument>
<argument name="infoBlockType" xsi:type="string">Swarming\SubscribePro\Block\Payment\Info</argument>
<argument name="valueHandlerPool" xsi:type="object">SubscribeProValueHandlerPool</argument>
<argument name="validatorPool" xsi:type="object">SubscribeProValidatorPool</argument>
<argument name="commandPool" xsi:type="object">SubscribeProCommandPool</argument>
</arguments>
</virtualType>
<type name="Swarming\SubscribePro\Gateway\Config\Config">
<arguments>
<argument name="methodCode" xsi:type="const">Swarming\SubscribePro\Gateway\Config\ConfigProvider::CODE</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Block\Payment\Info">
<arguments>
<argument name="config" xsi:type="object">Swarming\SubscribePro\Gateway\Config\Config</argument>
</arguments>
</type>
<!-- SubscribeProValueHandlerPool -->
<virtualType name="SubscribeProValueHandlerPool" type="Magento\Payment\Gateway\Config\ValueHandlerPool">
<arguments>
<argument name="handlers" xsi:type="array">
<item name="default" xsi:type="string">SubscribeProConfigValueHandler</item>
</argument>
</arguments>
</virtualType>
<virtualType name="SubscribeProConfigValueHandler" type="Magento\Payment\Gateway\Config\ConfigValueHandler">
<arguments>
<argument name="configInterface" xsi:type="object">Swarming\SubscribePro\Gateway\Config\Config</argument>
</arguments>
</virtualType>
<!-- SubscribeProValidatorPool -->
<virtualType name="SubscribeProValidatorPool" type="Magento\Payment\Gateway\Validator\ValidatorPool">
<arguments>
<argument name="validators" xsi:type="array">
<item name="country" xsi:type="string">SubscribeProCountryValidator</item>
</argument>
</arguments>
</virtualType>
<virtualType name="SubscribeProCountryValidator" type="Magento\Payment\Gateway\Validator\CountryValidator">
<arguments>
<argument name="config" xsi:type="object">Swarming\SubscribePro\Gateway\Config\Config</argument>
</arguments>
</virtualType>
<!-- SubscribeProCommandManager -->
<type name="Magento\Payment\Gateway\Command\CommandManagerPool">
<arguments>
<argument name="executors" xsi:type="array">
<item name="subscribe_pro" xsi:type="string">SubscribeProCommandManager</item>
</argument>
</arguments>
</type>
<virtualType name="SubscribeProCommandManager" type="Magento\Payment\Gateway\Command\CommandManager">
<arguments>
<argument name="commandPool" xsi:type="object">SubscribeProCommandPool</argument>
</arguments>
</virtualType>
<!-- SubscribeProCommandPool -->
<virtualType name="SubscribeProCommandPool" type="Magento\Payment\Gateway\Command\CommandPool">
<arguments>
<argument name="commands" xsi:type="array">
<item name="authorize" xsi:type="string">Swarming\SubscribePro\Gateway\Command\AuthorizeCommand</item>
<item name="vault_authorize" xsi:type="string">Swarming\SubscribePro\Gateway\Command\VaultAuthorizeCommand</item>
<item name="capture" xsi:type="string">Swarming\SubscribePro\Gateway\Command\CaptureStrategyCommand</item>
<item name="purchase" xsi:type="string">Swarming\SubscribePro\Gateway\Command\PurchaseCommand</item>
<item name="settlement" xsi:type="string">Swarming\SubscribePro\Gateway\Command\CaptureCommand</item>
<item name="vault_sale" xsi:type="string">Swarming\SubscribePro\Gateway\Command\VaultPurchaseCommand</item>
<item name="refund" xsi:type="string">Swarming\SubscribePro\Gateway\Command\RefundCommand</item>
<item name="void" xsi:type="string">Swarming\SubscribePro\Gateway\Command\VoidCommand</item>
<item name="cancel" xsi:type="string">Swarming\SubscribePro\Gateway\Command\VoidCommand</item>
</argument>
</arguments>
</virtualType>
<type name="Swarming\SubscribePro\Gateway\Command\CaptureStrategyCommand">
<arguments>
<argument name="commandPool" xsi:type="object">SubscribeProCommandPool</argument>
</arguments>
</type>
<!-- AuthorizeCommand -->
<type name="Swarming\SubscribePro\Gateway\Command\AuthorizeCommand">
<arguments>
<argument name="requestBuilder" xsi:type="object">SubscribeProPlaceOrderRequest</argument>
<argument name="handler" xsi:type="object">SubscribeProPlaceOrderHandler</argument>
<argument name="validator" xsi:type="object">Swarming\SubscribePro\Gateway\Validator\ResponseValidator</argument>
</arguments>
</type>
<!-- PurchaseCommand -->
<type name="Swarming\SubscribePro\Gateway\Command\PurchaseCommand">
<arguments>
<argument name="requestBuilder" xsi:type="object">SubscribeProPlaceOrderRequest</argument>
<argument name="handler" xsi:type="object">SubscribeProPlaceOrderHandler</argument>
<argument name="validator" xsi:type="object">Swarming\SubscribePro\Gateway\Validator\ResponseValidator</argument>
</arguments>
</type>
<virtualType name="SubscribeProPlaceOrderRequest" type="Magento\Payment\Gateway\Request\BuilderComposite">
<arguments>
<argument name="builders" xsi:type="array">
<item name="customer" xsi:type="string">Swarming\SubscribePro\Gateway\Request\CustomerDataBuilder</item>
<item name="order" xsi:type="string">Swarming\SubscribePro\Gateway\Request\OrderDataBuilder</item>
<item name="payment" xsi:type="string">Swarming\SubscribePro\Gateway\Request\PaymentDataBuilder</item>
<item name="3ds" xsi:type="string">Swarming\SubscribePro\Gateway\Request\ThreeDSecureBuilder</item>
<item name="address" xsi:type="string">Swarming\SubscribePro\Gateway\Request\AddressDataBuilder</item>
</argument>
</arguments>
</virtualType>
<virtualType name="SubscribeProPlaceOrderHandler" type="Magento\Payment\Gateway\Response\HandlerChain">
<arguments>
<argument name="handlers" xsi:type="array">
<item name="3ds" xsi:type="string">Swarming\SubscribePro\Gateway\Response\ThreeDSecure</item>
<item name="payment_details" xsi:type="string">Swarming\SubscribePro\Gateway\Response\PaymentDetailsHandler</item>
<item name="txn_id" xsi:type="string">Swarming\SubscribePro\Gateway\Response\TransactionIdHandler</item>
<item name="card_details" xsi:type="string">Swarming\SubscribePro\Gateway\Response\CardDetailsHandler</item>
<item name="vault_details" xsi:type="string">Swarming\SubscribePro\Gateway\Response\VaultDetailsHandler</item>
</argument>
</arguments>
</virtualType>
<!-- VaultAuthorizeCommand -->
<type name="Swarming\SubscribePro\Gateway\Command\VaultAuthorizeCommand">
<arguments>
<argument name="requestBuilder" xsi:type="object">SubscribeProVaultPlaceOrderRequest</argument>
<argument name="handler" xsi:type="object">SubscribeProPlaceOrderHandler</argument>
<argument name="validator" xsi:type="object">Swarming\SubscribePro\Gateway\Validator\ResponseValidator</argument>
</arguments>
</type>
<!-- VaultPurchaseCommand -->
<type name="Swarming\SubscribePro\Gateway\Command\VaultPurchaseCommand">
<arguments>
<argument name="requestBuilder" xsi:type="object">SubscribeProVaultPlaceOrderRequest</argument>
<argument name="handler" xsi:type="object">SubscribeProPlaceOrderHandler</argument>
<argument name="validator" xsi:type="object">Swarming\SubscribePro\Gateway\Validator\ResponseValidator</argument>
</arguments>
</type>
<virtualType name="SubscribeProVaultPlaceOrderRequest" type="Magento\Payment\Gateway\Request\BuilderComposite">
<arguments>
<argument name="builders" xsi:type="array">
<item name="customer" xsi:type="string">Swarming\SubscribePro\Gateway\Request\CustomerDataBuilder</item>
<item name="order" xsi:type="string">Swarming\SubscribePro\Gateway\Request\OrderDataBuilder</item>
<item name="payment" xsi:type="string">Swarming\SubscribePro\Gateway\Request\VaultDataBuilder</item>
</argument>
</arguments>
</virtualType>
<!-- CaptureCommand -->
<type name="Swarming\SubscribePro\Gateway\Command\CaptureCommand">
<arguments>
<argument name="requestBuilder" xsi:type="object">Swarming\SubscribePro\Gateway\Request\CaptureDataBuilder</argument>
<argument name="handler" xsi:type="object">Swarming\SubscribePro\Gateway\Response\TransactionIdHandler</argument>
<argument name="validator" xsi:type="object">Swarming\SubscribePro\Gateway\Validator\ResponseValidator</argument>
</arguments>
</type>
<!-- VoidCommand -->
<type name="Swarming\SubscribePro\Gateway\Command\VoidCommand">
<arguments>
<argument name="requestBuilder" xsi:type="object">Swarming\SubscribePro\Gateway\Request\VoidDataBuilder</argument>
<argument name="handler" xsi:type="object">Swarming\SubscribePro\Gateway\Response\VoidHandler</argument>
<argument name="validator" xsi:type="object">Swarming\SubscribePro\Gateway\Validator\ResponseValidator</argument>
</arguments>
</type>
<!-- RefundCommand -->
<type name="Swarming\SubscribePro\Gateway\Command\RefundCommand">
<arguments>
<argument name="requestBuilder" xsi:type="object">RefundDataBuilder</argument>
<argument name="handler" xsi:type="object">Swarming\SubscribePro\Gateway\Response\RefundHandler</argument>
<argument name="validator" xsi:type="object">Swarming\SubscribePro\Gateway\Validator\ResponseValidator</argument>
</arguments>
</type>
<virtualType name="RefundDataBuilder" type="Swarming\SubscribePro\Gateway\Request\CaptureDataBuilder" />
<!-- SubscribeProAdapter Vault -->
<type name="Swarming\SubscribePro\Gateway\Config\VaultConfig">
<arguments>
<argument name="methodCode" xsi:type="const">Swarming\SubscribePro\Gateway\Config\ConfigProvider::VAULT_CODE</argument>
</arguments>
</type>
<virtualType name="SubscribeProVaultPaymentValueHandler" type="VaultPaymentDefaultValueHandler">
<arguments>
<argument name="configInterface" xsi:type="object">Swarming\SubscribePro\Gateway\Config\VaultConfig</argument>
</arguments>
</virtualType>
<virtualType name="SubscribeProVaultPaymentValueHandlerPool" type="VaultPaymentValueHandlerPool">
<arguments>
<argument name="handlers" xsi:type="array">
<item name="default" xsi:type="string">SubscribeProVaultPaymentValueHandler</item>
</argument>
</arguments>
</virtualType>
<virtualType name="SubscribeProVaultAdapter" type="Magento\Vault\Model\Method\Vault">
<arguments>
<argument name="config" xsi:type="object">Swarming\SubscribePro\Gateway\Config\VaultConfig</argument>
<argument name="valueHandlerPool" xsi:type="object">SubscribeProVaultPaymentValueHandlerPool</argument>
<argument name="vaultProvider" xsi:type="object">SubscribeProAdapter</argument>
<argument name="code" xsi:type="const">Swarming\SubscribePro\Gateway\Config\ConfigProvider::VAULT_CODE</argument>
</arguments>
</virtualType>
<type name="Swarming\SubscribePro\Controller\Cards\Save">
<arguments>
<argument name="walletVerifyCommand" xsi:type="object">SubscribeProWalletVerifyCommand</argument>
</arguments>
</type>
<virtualType name="SubscribeProWalletVerifyCommand" type="Swarming\SubscribePro\Gateway\Command\VerifyCommand">
<arguments>
<argument name="requestBuilder" xsi:type="object">WalletVerifyBuilder</argument>
<argument name="handler" xsi:type="object">Swarming\SubscribePro\Gateway\Response\ThreeDSAuthorizeHandler</argument>
<argument name="validator" xsi:type="object">Swarming\SubscribePro\Gateway\Validator\ResponseValidator</argument>
</arguments>
</virtualType>
<virtualType name="WalletVerifyBuilder" type="Magento\Payment\Gateway\Request\BuilderComposite">
<arguments>
<argument name="builders" xsi:type="array">
<item name="customer" xsi:type="string">Swarming\SubscribePro\Gateway\Request\WalletCustomerDataBuilder</item>
<item name="amount" xsi:type="string">Swarming\SubscribePro\Gateway\Request\WalletAmountBuilder</item>
<item name="payment" xsi:type="string">Swarming\SubscribePro\Gateway\Request\WalletPaymentBuilder</item>
<item name="3ds" xsi:type="string">Swarming\SubscribePro\Gateway\Request\WalletThreeDSecureBuilder</item>
</argument>
</arguments>
</virtualType>
<!-- SubscribePro ApplePay Adapter -->
<virtualType name="SubscribeProApplePayAdapter" type="Magento\Payment\Model\Method\Adapter">
<arguments>
<argument name="code" xsi:type="const">Swarming\SubscribePro\Gateway\Config\ApplePayConfigProvider::CODE</argument>
<argument name="formBlockType" xsi:type="string">Swarming\SubscribePro\Block\Adminhtml\Payment\Cc</argument>
<argument name="infoBlockType" xsi:type="string">Swarming\SubscribePro\Block\Payment\ApplePayInfo</argument>
<argument name="valueHandlerPool" xsi:type="object">SubscribeProApplePayValueHandlerPool</argument>
<argument name="validatorPool" xsi:type="object">SubscribeProApplePayValidatorPool</argument>
<argument name="commandPool" xsi:type="object">SubscribeProApplePayCommandPool</argument>
</arguments>
</virtualType>
<!-- SubscribeProApplePayValueHandlerPool -->
<virtualType name="SubscribeProApplePayValueHandlerPool" type="Magento\Payment\Gateway\Config\ValueHandlerPool">
<arguments>
<argument name="handlers" xsi:type="array">
<item name="default" xsi:type="string">SubscribeProApplePayConfigValueHandler</item>
</argument>
</arguments>
</virtualType>
<virtualType name="SubscribeProApplePayConfigValueHandler" type="Magento\Payment\Gateway\Config\ConfigValueHandler">
<arguments>
<argument name="configInterface" xsi:type="object">Swarming\SubscribePro\Gateway\Config\ApplePayConfig</argument>
</arguments>
</virtualType>
<type name="Swarming\SubscribePro\Gateway\Config\ApplePayConfigProvider">
<arguments>
<argument name="gatewayConfig" xsi:type="object">\Swarming\SubscribePro\Gateway\Config\ApplePayConfig</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Gateway\Config\ApplePayConfig">
<arguments>
<argument name="methodCode" xsi:type="const">Swarming\SubscribePro\Gateway\Config\ApplePayConfigProvider::CODE</argument>
</arguments>
</type>
<!-- SubscribeProValidatorPool -->
<virtualType name="SubscribeProApplePayValidatorPool" type="Magento\Payment\Gateway\Validator\ValidatorPool">
<arguments>
<argument name="validators" xsi:type="array">
<item name="country" xsi:type="string">SubscribeProCountryApplePayValidator</item>
</argument>
</arguments>
</virtualType>
<virtualType name="SubscribeProCountryApplePayValidator" type="Magento\Payment\Gateway\Validator\CountryValidator">
<arguments>
<argument name="config" xsi:type="object">Swarming\SubscribePro\Gateway\Config\ApplePayConfig</argument>
</arguments>
</virtualType>
<!-- SubscribeProApplePayCommandPool -->
<virtualType name="SubscribeProApplePayCommandPool" type="Magento\Payment\Gateway\Command\CommandPool">
<arguments>
<argument name="commands" xsi:type="array">
<item name="authorize" xsi:type="string">Swarming\SubscribePro\Gateway\Command\ApplePay\AuthorizeCommand</item>
<item name="capture" xsi:type="string">Swarming\SubscribePro\Gateway\Command\ApplePay\CaptureStrategyCommand</item>
<item name="purchase" xsi:type="string">Swarming\SubscribePro\Gateway\Command\ApplePay\PurchaseCommand</item>
<item name="settlement" xsi:type="string">Swarming\SubscribePro\Gateway\Command\CaptureCommand</item>
<item name="refund" xsi:type="string">Swarming\SubscribePro\Gateway\Command\RefundCommand</item>
<item name="void" xsi:type="string">Swarming\SubscribePro\Gateway\Command\VoidCommand</item>
<item name="cancel" xsi:type="string">Swarming\SubscribePro\Gateway\Command\VoidCommand</item>
</argument>
</arguments>
</virtualType>
<!-- ApplePay AuthorizeCommand -->
<type name="Swarming\SubscribePro\Gateway\Command\ApplePay\AuthorizeCommand">
<arguments>
<argument name="requestBuilder" xsi:type="object">SubscribeProApplePayPlaceOrderRequest</argument>
<argument name="handler" xsi:type="object">SubscribeProPlaceOrderHandler</argument>
<argument name="validator" xsi:type="object">Swarming\SubscribePro\Gateway\Validator\ResponseValidator</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Gateway\Command\ApplePay\CaptureStrategyCommand">
<arguments>
<argument name="commandPool" xsi:type="object">SubscribeProApplePayCommandPool</argument>
</arguments>
</type>
<!-- PurchaseCommand -->
<type name="Swarming\SubscribePro\Gateway\Command\ApplePay\PurchaseCommand">
<arguments>
<argument name="requestBuilder" xsi:type="object">SubscribeProApplePayPlaceOrderRequest</argument>
<argument name="handler" xsi:type="object">SubscribeProPlaceOrderHandler</argument>
<argument name="validator" xsi:type="object">Swarming\SubscribePro\Gateway\Validator\ResponseValidator</argument>
</arguments>
</type>
<virtualType name="SubscribeProApplePayPlaceOrderRequest" type="Magento\Payment\Gateway\Request\BuilderComposite">
<arguments>
<argument name="builders" xsi:type="array">
<item name="customer" xsi:type="string">Swarming\SubscribePro\Gateway\Request\CustomerDataBuilder</item>
<item name="order" xsi:type="string">Swarming\SubscribePro\Gateway\Request\OrderDataBuilder</item>
<item name="payment" xsi:type="string">Swarming\SubscribePro\Gateway\Request\ApplePayPaymentDataBuilder</item>
<item name="address" xsi:type="string">Swarming\SubscribePro\Gateway\Request\AddressDataBuilder</item>
</argument>
</arguments>
</virtualType>
<!-- SubscribePro ApplePay Adapter -->
<type name="Swarming\SubscribePro\Platform\Storage\Product">
<arguments>
<argument name="cache" xsi:type="object">Swarming\SubscribePro\Platform\Cache\Type\Product</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Platform\Storage\Config">
<arguments>
<argument name="cache" xsi:type="object">Swarming\SubscribePro\Platform\Cache\Type\Config</argument>
</arguments>
</type>
<!-- Mark client ID and client Secret keys as sensitive -->
<type name="Magento\Config\Model\Config\TypePool">
<arguments>
<argument name="sensitive" xsi:type="array">
<item name="swarming_subscribepro/platform/client_id" xsi:type="string">1</item>
<item name="swarming_subscribepro/platform/client_secret" xsi:type="string">1</item>
</argument>
</arguments>
</type>
<!-- ApplePay Logger Handlers-->
<virtualType name="Swarming\SubscribePro\Model\VirtualLoggerHandler" type="Magento\Framework\Logger\Handler\Base">
<arguments>
<argument name="fileName" xsi:type="string">/var/log/subscribepro_applepay/error.log</argument>
</arguments>
</virtualType>
<virtualType name="Swarming\SubscribePro\Model\VirtualLogger" type="Magento\Framework\Logger\Monolog">
<arguments>
<argument name="handlers" xsi:type="array">
<item name="system" xsi:type="object">Swarming\SubscribePro\Model\VirtualLoggerHandler</item>
</argument>
</arguments>
</virtualType>
<type name="Swarming\SubscribePro\Model\ApplePay\OrderService">
<arguments>
<argument name="logger" xsi:type="object">Swarming\SubscribePro\Model\VirtualLogger</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Model\ApplePay\PaymentRequestConfig">
<arguments>
<argument name="logger" xsi:type="object">Swarming\SubscribePro\Model\VirtualLogger</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Model\ApplePay\PaymentService">
<arguments>
<argument name="logger" xsi:type="object">Swarming\SubscribePro\Model\VirtualLogger</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Model\ApplePay\PaymentAuthorized">
<arguments>
<argument name="logger" xsi:type="object">Swarming\SubscribePro\Model\VirtualLogger</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Controller\ApplePay\Shipping">
<arguments>
<argument name="logger" xsi:type="object">Swarming\SubscribePro\Model\VirtualLogger</argument>
</arguments>
</type>
<type name="Swarming\SubscribePro\Controller\ApplePay\ShippingList">
<arguments>
<argument name="logger" xsi:type="object">Swarming\SubscribePro\Model\VirtualLogger</argument>
</arguments>
</type>
<!-- ApplePay Logger Handlers-->
<type name="Magento\Framework\Reflection\DataObjectProcessor">
<arguments>
<argument name="processors" xsi:type="array">
<item name="Swarming\SubscribePro\Model\Order\PaymentState" xsi:type="object">Swarming\SubscribePro\Webapi\OrderPaymentStateProcessor</item>
</argument>
</arguments>
</type>
</config>
|
{
"content_hash": "22682a26024c87683f0484b13fac1d9d",
"timestamp": "",
"source": "github",
"line_count": 570,
"max_line_length": 172,
"avg_line_length": 56.040350877192985,
"alnum_prop": 0.6892276868171431,
"repo_name": "subscribepro/subscribepro-magento2-ext",
"id": "11cf959de1528deb53552dc578eaf6e0767b5907",
"size": "31943",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "etc/di.xml",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "77813"
},
{
"name": "JavaScript",
"bytes": "122664"
},
{
"name": "Less",
"bytes": "11377"
},
{
"name": "PHP",
"bytes": "1602312"
},
{
"name": "Shell",
"bytes": "41"
}
],
"symlink_target": ""
}
|
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :provider
t.string :uid
t.string :name
t.string :oauth_token
t.datetime :oauth_expires_at
t.timestamps
end
end
end
|
{
"content_hash": "ef6a9342c67e8b57957af30401a650ad",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 43,
"avg_line_length": 19.46153846153846,
"alnum_prop": 0.6363636363636364,
"repo_name": "matif84/inly-",
"id": "457ae469f65fb75e9914b0c73beef45cf81e240f",
"size": "253",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "db/migrate/20121004072615_create_users.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "26261"
},
{
"name": "CoffeeScript",
"bytes": "2696"
},
{
"name": "JavaScript",
"bytes": "777"
},
{
"name": "Ruby",
"bytes": "33426"
}
],
"symlink_target": ""
}
|
SPEC_BEGIN(UAASDescribeAccountLimitsRequestSpec)
describe(@"UAASDescribeAccountLimitsRequest", ^
{
});
SPEC_END
|
{
"content_hash": "625c60aafcd4adb07be5fd27e7637f99",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 48,
"avg_line_length": 11.6,
"alnum_prop": 0.7931034482758621,
"repo_name": "unsignedapps/ua-aws-sdk-ios",
"id": "1e2b61192b40711fcdc7ae1aa1d1fc7b10c766e3",
"size": "394",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "AWS iOS SDKTests/AS/Requests/UAASDescribeAccountLimitsRequestTests.m",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "42359"
},
{
"name": "Objective-C",
"bytes": "4812683"
},
{
"name": "Ruby",
"bytes": "1520"
}
],
"symlink_target": ""
}
|
using namespace DVLib::UnitTests;
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
void ComponentUnitTests::testGetDisplayName()
{
CmdComponent component1;
component1.display_name = L"display_name";
Assert::IsTrue(component1.GetDisplayName() == component1.display_name.GetValue());
InstallerSession::Instance->sequence = SequenceUninstall;
Assert::IsTrue(component1.GetDisplayName() == component1.display_name.GetValue());
component1.uninstall_display_name = L"uninstall_display_name";
Assert::IsTrue(component1.GetDisplayName() == component1.uninstall_display_name.GetValue());
component1.display_name = L"";
Assert::IsTrue(component1.GetDisplayName() == component1.uninstall_display_name.GetValue());
}
|
{
"content_hash": "9098b15c2e088015c44ba8d46b4eb746",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 96,
"avg_line_length": 48.3125,
"alnum_prop": 0.7477360931435963,
"repo_name": "icnocop/dotnetinstaller",
"id": "9eefc91743846d208ad2ea1bd5be00be592ccd01",
"size": "827",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "UnitTests/dotNetInstallerLibUnitTests/ComponentUnitTests.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "1021"
},
{
"name": "Batchfile",
"bytes": "2575"
},
{
"name": "C",
"bytes": "5853"
},
{
"name": "C#",
"bytes": "808716"
},
{
"name": "C++",
"bytes": "943764"
},
{
"name": "CSS",
"bytes": "2766"
},
{
"name": "HTML",
"bytes": "1696"
},
{
"name": "XSLT",
"bytes": "1331"
}
],
"symlink_target": ""
}
|
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QAbstractButton, QApplication, QCheckBox, QComboBox,
QDialog, QDialogButtonBox, QGridLayout, QHBoxLayout,
QLabel, QLineEdit, QPlainTextEdit, QSizePolicy,
QSpacerItem, QSpinBox, QWidget)
class Ui_talentDialog(object):
def setupUi(self, talentDialog):
if not talentDialog.objectName():
talentDialog.setObjectName(u"talentDialog")
talentDialog.setWindowModality(Qt.ApplicationModal)
talentDialog.resize(440, 517)
self.gridLayout_2 = QGridLayout(talentDialog)
self.gridLayout_2.setObjectName(u"gridLayout_2")
self.buttonBox = QDialogButtonBox(talentDialog)
self.buttonBox.setObjectName(u"buttonBox")
self.buttonBox.setOrientation(Qt.Horizontal)
self.buttonBox.setStandardButtons(QDialogButtonBox.Cancel|QDialogButtonBox.Save)
self.buttonBox.setCenterButtons(True)
self.gridLayout_2.addWidget(self.buttonBox, 1, 0, 1, 1)
self.gridLayout = QGridLayout()
self.gridLayout.setObjectName(u"gridLayout")
self.labelVoraussetzungen = QLabel(talentDialog)
self.labelVoraussetzungen.setObjectName(u"labelVoraussetzungen")
self.gridLayout.addWidget(self.labelVoraussetzungen, 7, 0, 1, 1)
self.label = QLabel(talentDialog)
self.label.setObjectName(u"label")
self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
self.label_3 = QLabel(talentDialog)
self.label_3.setObjectName(u"label_3")
self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1)
self.labelGruppieren = QLabel(talentDialog)
self.labelGruppieren.setObjectName(u"labelGruppieren")
self.gridLayout.addWidget(self.labelGruppieren, 6, 0, 1, 1)
self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.comboAttribut1 = QComboBox(talentDialog)
self.comboAttribut1.addItem("")
self.comboAttribut1.addItem("")
self.comboAttribut1.addItem("")
self.comboAttribut1.addItem("")
self.comboAttribut1.addItem("")
self.comboAttribut1.addItem("")
self.comboAttribut1.addItem("")
self.comboAttribut1.addItem("")
self.comboAttribut1.setObjectName(u"comboAttribut1")
self.comboAttribut1.setMinimumSize(QSize(45, 0))
self.horizontalLayout.addWidget(self.comboAttribut1)
self.label_6 = QLabel(talentDialog)
self.label_6.setObjectName(u"label_6")
self.label_6.setAlignment(Qt.AlignCenter)
self.horizontalLayout.addWidget(self.label_6)
self.comboAttribut2 = QComboBox(talentDialog)
self.comboAttribut2.addItem("")
self.comboAttribut2.addItem("")
self.comboAttribut2.addItem("")
self.comboAttribut2.addItem("")
self.comboAttribut2.addItem("")
self.comboAttribut2.addItem("")
self.comboAttribut2.addItem("")
self.comboAttribut2.addItem("")
self.comboAttribut2.setObjectName(u"comboAttribut2")
self.comboAttribut2.setMinimumSize(QSize(45, 0))
self.horizontalLayout.addWidget(self.comboAttribut2)
self.label_7 = QLabel(talentDialog)
self.label_7.setObjectName(u"label_7")
self.label_7.setAlignment(Qt.AlignCenter)
self.horizontalLayout.addWidget(self.label_7)
self.comboAttribut3 = QComboBox(talentDialog)
self.comboAttribut3.addItem("")
self.comboAttribut3.addItem("")
self.comboAttribut3.addItem("")
self.comboAttribut3.addItem("")
self.comboAttribut3.addItem("")
self.comboAttribut3.addItem("")
self.comboAttribut3.addItem("")
self.comboAttribut3.addItem("")
self.comboAttribut3.setObjectName(u"comboAttribut3")
self.comboAttribut3.setMinimumSize(QSize(45, 0))
self.horizontalLayout.addWidget(self.comboAttribut3)
self.horizontalSpacer_3 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout.addItem(self.horizontalSpacer_3)
self.gridLayout.addLayout(self.horizontalLayout, 3, 1, 1, 1)
self.nameEdit = QLineEdit(talentDialog)
self.nameEdit.setObjectName(u"nameEdit")
self.gridLayout.addWidget(self.nameEdit, 1, 1, 1, 1)
self.label_5 = QLabel(talentDialog)
self.label_5.setObjectName(u"label_5")
self.gridLayout.addWidget(self.label_5, 8, 0, 1, 1)
self.label_12 = QLabel(talentDialog)
self.label_12.setObjectName(u"label_12")
self.label_12.setMinimumSize(QSize(110, 0))
self.gridLayout.addWidget(self.label_12, 4, 0, 1, 1)
self.warning = QLabel(talentDialog)
self.warning.setObjectName(u"warning")
self.warning.setVisible(False)
self.warning.setStyleSheet(u"background-color: rgb(255, 255, 0); color: black;")
self.warning.setWordWrap(True)
self.gridLayout.addWidget(self.warning, 0, 0, 1, 2)
self.textEdit = QPlainTextEdit(talentDialog)
self.textEdit.setObjectName(u"textEdit")
sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textEdit.sizePolicy().hasHeightForWidth())
self.textEdit.setSizePolicy(sizePolicy)
self.gridLayout.addWidget(self.textEdit, 8, 1, 1, 1)
self.labelKampffertigkeit = QLabel(talentDialog)
self.labelKampffertigkeit.setObjectName(u"labelKampffertigkeit")
self.gridLayout.addWidget(self.labelKampffertigkeit, 5, 0, 1, 1)
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(self.horizontalSpacer_2)
self.steigerungsfaktorEdit = QSpinBox(talentDialog)
self.steigerungsfaktorEdit.setObjectName(u"steigerungsfaktorEdit")
self.steigerungsfaktorEdit.setMinimum(1)
self.steigerungsfaktorEdit.setMaximum(4)
self.steigerungsfaktorEdit.setSingleStep(1)
self.steigerungsfaktorEdit.setValue(2)
self.horizontalLayout_2.addWidget(self.steigerungsfaktorEdit)
self.gridLayout.addLayout(self.horizontalLayout_2, 2, 1, 1, 1)
self.voraussetzungenEdit = QPlainTextEdit(talentDialog)
self.voraussetzungenEdit.setObjectName(u"voraussetzungenEdit")
self.gridLayout.addWidget(self.voraussetzungenEdit, 7, 1, 1, 1)
self.checkGruppieren = QCheckBox(talentDialog)
self.checkGruppieren.setObjectName(u"checkGruppieren")
self.gridLayout.addWidget(self.checkGruppieren, 6, 1, 1, 1)
self.comboKampffertigkeit = QComboBox(talentDialog)
self.comboKampffertigkeit.addItem("")
self.comboKampffertigkeit.addItem("")
self.comboKampffertigkeit.addItem("")
self.comboKampffertigkeit.setObjectName(u"comboKampffertigkeit")
self.gridLayout.addWidget(self.comboKampffertigkeit, 5, 1, 1, 1)
self.label_2 = QLabel(talentDialog)
self.label_2.setObjectName(u"label_2")
self.label_2.setMinimumSize(QSize(110, 0))
self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
self.comboTyp = QComboBox(talentDialog)
self.comboTyp.setObjectName(u"comboTyp")
self.gridLayout.addWidget(self.comboTyp, 4, 1, 1, 1)
self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1)
QWidget.setTabOrder(self.nameEdit, self.steigerungsfaktorEdit)
QWidget.setTabOrder(self.steigerungsfaktorEdit, self.comboAttribut1)
QWidget.setTabOrder(self.comboAttribut1, self.comboAttribut2)
QWidget.setTabOrder(self.comboAttribut2, self.comboAttribut3)
QWidget.setTabOrder(self.comboAttribut3, self.comboTyp)
QWidget.setTabOrder(self.comboTyp, self.comboKampffertigkeit)
QWidget.setTabOrder(self.comboKampffertigkeit, self.checkGruppieren)
QWidget.setTabOrder(self.checkGruppieren, self.voraussetzungenEdit)
QWidget.setTabOrder(self.voraussetzungenEdit, self.textEdit)
self.retranslateUi(talentDialog)
self.buttonBox.accepted.connect(talentDialog.accept)
self.buttonBox.rejected.connect(talentDialog.reject)
QMetaObject.connectSlotsByName(talentDialog)
# setupUi
def retranslateUi(self, talentDialog):
talentDialog.setWindowTitle(QCoreApplication.translate("talentDialog", u"Sephrasto - Fertigkeit bearbeiten...", None))
self.labelVoraussetzungen.setText(QCoreApplication.translate("talentDialog", u"Voraussetzungen", None))
self.label.setText(QCoreApplication.translate("talentDialog", u"Fertigkeitsname", None))
self.label_3.setText(QCoreApplication.translate("talentDialog", u"Attribute", None))
self.labelGruppieren.setText(QCoreApplication.translate("talentDialog", u"Talente", None))
self.comboAttribut1.setItemText(0, QCoreApplication.translate("talentDialog", u"KO", None))
self.comboAttribut1.setItemText(1, QCoreApplication.translate("talentDialog", u"MU", None))
self.comboAttribut1.setItemText(2, QCoreApplication.translate("talentDialog", u"GE", None))
self.comboAttribut1.setItemText(3, QCoreApplication.translate("talentDialog", u"KK", None))
self.comboAttribut1.setItemText(4, QCoreApplication.translate("talentDialog", u"IN", None))
self.comboAttribut1.setItemText(5, QCoreApplication.translate("talentDialog", u"KL", None))
self.comboAttribut1.setItemText(6, QCoreApplication.translate("talentDialog", u"CH", None))
self.comboAttribut1.setItemText(7, QCoreApplication.translate("talentDialog", u"FF", None))
self.label_6.setText(QCoreApplication.translate("talentDialog", u" - ", None))
self.comboAttribut2.setItemText(0, QCoreApplication.translate("talentDialog", u"KO", None))
self.comboAttribut2.setItemText(1, QCoreApplication.translate("talentDialog", u"MU", None))
self.comboAttribut2.setItemText(2, QCoreApplication.translate("talentDialog", u"GE", None))
self.comboAttribut2.setItemText(3, QCoreApplication.translate("talentDialog", u"KK", None))
self.comboAttribut2.setItemText(4, QCoreApplication.translate("talentDialog", u"IN", None))
self.comboAttribut2.setItemText(5, QCoreApplication.translate("talentDialog", u"KL", None))
self.comboAttribut2.setItemText(6, QCoreApplication.translate("talentDialog", u"CH", None))
self.comboAttribut2.setItemText(7, QCoreApplication.translate("talentDialog", u"FF", None))
self.label_7.setText(QCoreApplication.translate("talentDialog", u" - ", None))
self.comboAttribut3.setItemText(0, QCoreApplication.translate("talentDialog", u"KO", None))
self.comboAttribut3.setItemText(1, QCoreApplication.translate("talentDialog", u"MU", None))
self.comboAttribut3.setItemText(2, QCoreApplication.translate("talentDialog", u"GE", None))
self.comboAttribut3.setItemText(3, QCoreApplication.translate("talentDialog", u"KK", None))
self.comboAttribut3.setItemText(4, QCoreApplication.translate("talentDialog", u"IN", None))
self.comboAttribut3.setItemText(5, QCoreApplication.translate("talentDialog", u"KL", None))
self.comboAttribut3.setItemText(6, QCoreApplication.translate("talentDialog", u"CH", None))
self.comboAttribut3.setItemText(7, QCoreApplication.translate("talentDialog", u"FF", None))
self.label_5.setText(QCoreApplication.translate("talentDialog", u"Beschreibung", None))
self.label_12.setText(QCoreApplication.translate("talentDialog", u"Typ", None))
self.warning.setText(QCoreApplication.translate("talentDialog", u"<html><head/><body><p>Dies ist eine Ilaris-Standardfertigkeit. Sobald du hier etwas ver\u00e4nderst, bekommst du eine pers\u00f6nliche Kopie und das Original wird in den Hausregeln gel\u00f6scht. Damit erh\u00e4ltst du f\u00fcr diese Fertigkeit keine automatischen Updates mehr mit neuen Sephrasto-Versionen.</p></body></html>", None))
self.labelKampffertigkeit.setText(QCoreApplication.translate("talentDialog", u"Kampffertigkeit", None))
self.steigerungsfaktorEdit.setSuffix("")
#if QT_CONFIG(tooltip)
self.checkGruppieren.setToolTip(QCoreApplication.translate("talentDialog", u"<html><head/><body><p>Talente werden grunds\u00e4tzlich nach Fertigkeitstyp gruppiert. Mit dieser Option werden sie zus\u00e4tzlich noch nach dem Namen der Fertigkeit gruppiert. Bei Talenten mit mehreren Fertigkeiten werden bei der Gruppierung au\u00dferdem Fertigkeiten mit dieser Option priorisiert.</p></body></html>", None))
#endif // QT_CONFIG(tooltip)
self.checkGruppieren.setText(QCoreApplication.translate("talentDialog", u"Nach dieser Fertigkeit priorisiert gruppieren", None))
self.comboKampffertigkeit.setItemText(0, QCoreApplication.translate("talentDialog", u"Keine Kampffertigkeit", None))
self.comboKampffertigkeit.setItemText(1, QCoreApplication.translate("talentDialog", u"Nahkampffertigkeit", None))
self.comboKampffertigkeit.setItemText(2, QCoreApplication.translate("talentDialog", u"Sonstige Kampffertigkeit", None))
#if QT_CONFIG(tooltip)
self.comboKampffertigkeit.setToolTip(QCoreApplication.translate("talentDialog", u"Nahkampf- und Sonstige Kampffertigkeiten stehen bei Waffen zur Auswahl. Nahkampffertigkeiten werden gegebenenfalls nach einem abweichenden Steigerungsfaktor berechnet.", None))
#endif // QT_CONFIG(tooltip)
self.label_2.setText(QCoreApplication.translate("talentDialog", u"Steigerungsfaktor", None))
#if QT_CONFIG(tooltip)
self.comboTyp.setToolTip(QCoreApplication.translate("talentDialog", u"Fertigkeiten werden nach diesem Typ gruppiert und dann alphabetisch sortiert.", None))
#endif // QT_CONFIG(tooltip)
# retranslateUi
|
{
"content_hash": "2a6a5a130ee3936b542b1b135e5caa8c",
"timestamp": "",
"source": "github",
"line_count": 276,
"max_line_length": 413,
"avg_line_length": 52.09057971014493,
"alnum_prop": 0.7248382833692704,
"repo_name": "Aeolitus/Sephrasto",
"id": "c56c14646a4b382c75a6c88837e951a421cd1722",
"size": "14776",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Sephrasto/UI/DatenbankEditFertigkeit.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "264"
},
{
"name": "HTML",
"bytes": "12177"
},
{
"name": "Python",
"bytes": "1037620"
}
],
"symlink_target": ""
}
|
import asyncio
import asyncio.subprocess
import signal
import functools
from .cli import get_parser
from .renderers import StatusRenderer # noqa
from aioutils import Group, Pool
def broadcast(args):
loop = asyncio.get_event_loop()
for signame in ('SIGINT', 'SIGTERM'):
loop.add_signal_handler(getattr(signal, signame),
functools.partial(ask_exit, loop, signame))
env = dict(args.env or [])
renderer = StatusRenderer()
def printer(future, node, command):
data = renderer.render(future, node, command)
print(data)
nodes = args.nodes or []
jobs = args.mode(nodes, args.commands)
if args.batch:
pooler = Pool(args.batch.batch(jobs))
else:
pooler = Group()
for node, command in jobs:
task = pooler.spawn(node.run(command, env=env))
render = functools.partial(printer, node=node, command=command)
task.add_done_callback(render)
pooler.join()
loop.close()
def ask_exit(loop, signame):
print("# got signal %s: exit" % signame)
loop.stop()
def run():
parser, ns, remains = get_parser()
args = parser.parse_args(remains, namespace=ns)
broadcast(args)
if __name__ == '__main__':
run()
|
{
"content_hash": "e11de06d911ba611b0ed36a2b6f03b62",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 75,
"avg_line_length": 24.173076923076923,
"alnum_prop": 0.6308671439936356,
"repo_name": "johnnoone/cooperate",
"id": "abd66f6a8f552cb0b6a9e959455184d468bdaf49",
"size": "1257",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "cooperate/__main__.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Python",
"bytes": "18748"
}
],
"symlink_target": ""
}
|
SYNONYM
#### According to
GRIN Taxonomy for Plants
#### Published in
Z. Gesamm. Brauw. 5:127, 206. 1882
#### Original name
null
### Remarks
null
|
{
"content_hash": "9c5ba2a3666c809e8e8d0f8523765e9a",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 34,
"avg_line_length": 11.384615384615385,
"alnum_prop": 0.6756756756756757,
"repo_name": "mdoering/backbone",
"id": "3e801d7513a5ec13149b61ae8ec0e68aebad4769",
"size": "208",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Liliopsida/Poales/Poaceae/Hordeum/Hordeum vulgare/ Syn. Hordeum vulgare steudelii/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-Equiv="Cache-Control" Content="no-cache">
<meta http-Equiv="Pragma" Content="no-cache">
<meta http-Equiv="Expires" Content="0">
<title>Brunel Output</title>
<!--
D3 Copyright © 2012, Michael Bostock
jQuery Copyright © 2010 by The jQuery Project
sumoselect Copyright © 2014 Hemant Negi
-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.2.1/d3.min.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/topojson/1.6.20/topojson.min.js" charset="utf-8"></script>
<script src="https://brunelvis.org/js/brunel.2.6.min.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="https://brunelvis.org/js/brunel.2.6.css" charset="utf-8"/>
</head>
<body style="margin:0">
<h2 style='font-size:16px;text-align:center;margin:2px;color:green'><span style='font-style:italic;color:#aaaaaa'>0006</span> x(Category) y(Country) color(#count)</h2>
<p style='color:green;margin:2px;margin-bottom:6px;font-size:10px'>Pass: </p>
<svg id="visualization" width="480" height="330"></svg>
</body>
<script>
function BrunelVis(visId) {
"use strict"; // strict mode
var datasets = [], // array of datasets for the original data
pre = function(d, i) { return d }, // default pre-process does nothing
post = function(d, i) { return d }, // default post-process does nothing
transitionTime = 200, // transition time for animations
charts = [], // the charts in the system
vis = d3.select('#' + visId).attr('class', 'brunel'); // the SVG container
BrunelD3.addDefinitions(vis); // ensure standard symbols present
// Define chart #1 in the visualization //////////////////////////////////////////////////////////
charts[0] = function(parentNode, filterRows) {
var geom = BrunelD3.geometry(parentNode || vis.node(), 0, 0, 1, 1, 5, 81, 105, 64),
elements = []; // array of elements in this chart
// Define groups for the chart parts ///////////////////////////////////////////////////////////
var chart = vis.append('g').attr('class', 'chart1')
.attr('transform','translate(' + geom.chart_left + ',' + geom.chart_top + ')');
var overlay = chart.append('g').attr('class', 'element').attr('class', 'overlay');
var zoom = d3.zoom().scaleExtent([1/3,3]);
var zoomNode = overlay.append('rect').attr('class', 'overlay')
.attr('x', geom.inner_left).attr('y', geom.inner_top)
.attr('width', geom.inner_rawWidth).attr('height', geom.inner_rawHeight)
.style('cursor', 'default')
.node();
zoomNode.__zoom = d3.zoomIdentity;
chart.append('rect').attr('class', 'background').attr('width', geom.chart_right-geom.chart_left).attr('height', geom.chart_bottom-geom.chart_top);
var interior = chart.append('g').attr('class', 'interior zoomNone')
.attr('transform','translate(' + geom.inner_left + ',' + geom.inner_top + ')')
.attr('clip-path', 'url(#clip_visualization_chart1_inner)');
interior.append('rect').attr('class', 'inner').attr('width', geom.inner_width).attr('height', geom.inner_height);
var gridGroup = interior.append('g').attr('class', 'grid');
var axes = chart.append('g').attr('class', 'axis')
.attr('transform','translate(' + geom.inner_left + ',' + geom.inner_top + ')');
var legends = chart.append('g').attr('class', 'legend')
.attr('transform','translate(' + (geom.chart_right-geom.chart_left - 3) + ',' + 0 + ')')
.attr('role', 'region').attr('aria-label', 'Legend');
vis.select('defs').append('clipPath').attr('id', 'clip_visualization_chart1_inner').append('rect')
.attr('x', 0).attr('y', 0)
.attr('width', geom.inner_rawWidth+1).attr('height', geom.inner_rawHeight+1);
// Scales //////////////////////////////////////////////////////////////////////////////////////
var scale_x = d3.scalePoint().padding(0.5)
.domain(['Blended', 'Bourbon', 'Campbeltown', 'Corn', 'Flavored', 'Grain', 'Highlands', 'Islands', 'Islay', 'Lowlands', 'Pure Pot Still', 'Rye', 'Single Malt', 'Speyside', 'Unaged'])
.range([0, geom.inner_width]);
var scale_inner = d3.scaleLinear().domain([0,1])
.range([-0.5, 0.5]);
var scale_y = d3.scalePoint().padding(0.5)
.domain(['USA', 'Taiwan', 'Scotland', 'Japan', 'Ireland', 'India', 'France', 'England', 'Canada'])
.range([geom.inner_height, 0]);
var base_scales = [scale_x, scale_y]; // untransformed original scales
// Axes ////////////////////////////////////////////////////////////////////////////////////////
axes.append('g').attr('class', 'x axis')
.attr('transform','translate(0,' + geom.inner_rawHeight + ')')
.attr('clip-path', 'url(#clip_visualization_chart1_haxis)')
.attr('role', 'region').attr('aria-label', 'Horizontal Axis');
vis.select('defs').append('clipPath').attr('id', 'clip_visualization_chart1_haxis').append('polyline')
.attr('points', '-1,-1000, -1,-1 -5,5, -1000,5, -100,1000, 10000,1000 10000,-1000');
axes.select('g.axis.x').append('text').attr('class', 'title').text('Category').style('text-anchor', 'middle')
.attr('x',geom.inner_rawWidth/2)
.attr('y', geom.inner_bottom - 2.0).attr('dy','-0.27em');
axes.append('g').attr('class', 'y axis')
.attr('clip-path', 'url(#clip_visualization_chart1_vaxis)')
.attr('role', 'region').attr('aria-label', 'Vertical Axis');
vis.select('defs').append('clipPath').attr('id', 'clip_visualization_chart1_vaxis').append('polyline')
.attr('points', '-1000,-10000, 10000,-10000, 10000,' + (geom.inner_rawHeight+1) + ', -1,' + (geom.inner_rawHeight+1) + ', -1,' + (geom.inner_rawHeight+5) + ', -1000,' + (geom.inner_rawHeight+5) );
axes.select('g.axis.y').append('text').attr('class', 'title').text('Country').style('text-anchor', 'middle')
.attr('x',-geom.inner_rawHeight/2)
.attr('y', 4-geom.inner_left).attr('dy', '0.7em').attr('transform', 'rotate(270)');
var axis_bottom = d3.axisBottom(scale_x).ticks(Math.min(10, Math.round(geom.inner_rawWidth / 150.0)));
var axis_left = d3.axisLeft(scale_y).ticks(Math.min(10, Math.round(geom.inner_rawHeight / 20)));
function buildAxes(time) {
axis_bottom.tickValues(BrunelD3.filterTicks(scale_x))
var axis_x = axes.select('g.axis.x');
BrunelD3.transition(axis_x, time).call(axis_bottom.scale(scale_x)).selectAll('.tick text')
.attr('transform', function() {
var v = this.getComputedTextLength() / Math.sqrt(2)/2;
return 'translate(-' + (v+6) + ',' + v + ') rotate(-45)'
});
axis_left.tickValues(BrunelD3.filterTicks(scale_y))
var axis_y = axes.select('g.axis.y');
BrunelD3.transition(axis_y, time).call(axis_left.scale(scale_y));
}
zoom.on('zoom', function(t, time) {
t = t ||BrunelD3.restrictZoom(d3.event.transform, geom, this);
zoomNode.__zoom = t;
interior.attr('class', 'interior ' + BrunelD3.zoomLabel(t.k));;
build(time || -1);
});
// Define element #1 ///////////////////////////////////////////////////////////////////////////
elements[0] = function() {
var original, processed, // data sets passed in and then transformed
element, data, // brunel element information and brunel data
selection, merged; // d3 selection and merged selection
var elementGroup = interior.append('g').attr('class', 'element1')
.attr('role', 'region').attr('aria-label', 'Category, Country as points, also showing count'),
main = elementGroup.append('g').attr('class', 'main'),
labels = BrunelD3.undoTransform(elementGroup.append('g').attr('class', 'labels').attr('aria-hidden', 'true'), elementGroup);
function makeData() {
original = datasets[0];
if (filterRows) original = original.retainRows(filterRows);
processed = pre(original, 0)
.summarize('#count=#count:sum; Category=Category:base; Country=Country');
processed = post(processed, 0);
var f0 = processed.field('Category'),
f1 = processed.field('Country'),
f2 = processed.field('#count'),
f3 = processed.field('#row'),
f4 = processed.field('#selection');
var keyFunc = function(d) { return f0.value(d)+ '|' + f1.value(d) };
data = {
Category: function(d) { return f0.value(d.row) },
Country: function(d) { return f1.value(d.row) },
$count: function(d) { return f2.value(d.row) },
$row: function(d) { return f3.value(d.row) },
$selection: function(d) { return f4.value(d.row) },
Category_f: function(d) { return f0.valueFormatted(d.row) },
Country_f: function(d) { return f1.valueFormatted(d.row) },
$count_f: function(d) { return f2.valueFormatted(d.row) },
$row_f: function(d) { return f3.valueFormatted(d.row) },
$selection_f: function(d) { return f4.valueFormatted(d.row) },
_split: function(d) { return f2.value(d.row) },
_key: keyFunc,
_rows: BrunelD3.makeRowsWithKeys(keyFunc, processed.rowCount())
};
}
// Aesthetic Functions
var scale_color = d3.scaleSqrt().domain([1, 6.42803566070357, 16.570714214271426, 31.428035660703568, 51.00000000000001])
.interpolate(d3.interpolateHcl)
.range([ '#f1eef6', '#bdc9e1', '#74a9cf', '#2b8cbe', '#045a8d']);
var color = function(d) { var c = data.$count(d); return c!=null ? scale_color(c) : null };
legends._legend = legends._legend || { title: ['Count'],
ticks: [60, 50, 40, 30, 20, 10, 0]};
legends._legend.color = scale_color;
// Build element from data ///////////////////////////////////////////////////////////////////
function build(transitionMillis) {
element = elements[0];
var w = 0.9 * Math.abs(scale_x(scale_x.domain()[1]) - scale_x(scale_x.domain()[0]) );
var x = function(d) { return scale_x(data.Category(d))};
var h = 0.9 * Math.abs(scale_y(scale_y.domain()[1]) - scale_y(scale_y.domain()[0]) );
var y = function(d) { return scale_y(data.Country(d))};
// Define selection entry operations
function initialState(selection) {
selection
.attr('class', 'element point filled')
.style('pointer-events', 'none')
.attr('role', 'img').attr('aria-label',
function(d) { return data._key(d.row);
})
.each(function(d) {
var width = w, left = x(d) - width/2,
height = h, top = y(d) - height/2;
this.r = {x:left, y:top, w:width, h:height};
})
.attr('x', function(d) { return this.r.x })
.attr('y', function(d) { return this.r.y + this.r.h/2 })
.attr('width', function(d) { return this.r.w })
.attr('height',0)
}
// Define selection update operations on merged data
function updateState(selection) {
selection
.each(function(d) {
var width = w, left = x(d) - width/2,
height = h, top = y(d) - height/2;
this.r = {x:left, y:top, w:width, h:height};
})
.attr('x', function(d) { return this.r.x })
.attr('y', function(d) { return this.r.y })
.attr('width', function(d) { return this.r.w })
.attr('height', function(d) { return this.r.h })
.filter(BrunelD3.hasData) // following only performed for data items
.style('fill', color);
}
// Create selections, set the initial state and transition updates
selection = main.selectAll('.element').data(data._rows, function(d) { return d.key });
var added = selection.enter().append('rect');
merged = selection.merge(added);
initialState(added);
selection.filter(BrunelD3.hasData)
.classed('selected', BrunelD3.isSelected(data))
.filter(BrunelD3.isSelected(data)).raise();
updateState(BrunelD3.transition(merged, transitionMillis));
selection.exit().each(function() { this.remove(); BrunelD3.removeLabels(this)} );
}
return {
data: function() { return processed },
original: function() { return original },
internal: function() { return data },
selection: function() { return merged },
makeData: makeData,
build: build,
chart: function() { return charts[0] },
group: function() { return elementGroup },
fields: {
x: ['Category'],
y: ['Country'],
key: ['Category', 'Country'],
color: ['#count']
}
};
}();
function build(time, noData) {
var first = elements[0].data() == null;
if (first) time = 0; // no transition for first call
buildAxes(time);
if ((first || time > -1) && !noData) {
elements[0].makeData();
BrunelD3.addLegend(legends, legends._legend);
}
elements[0].build(time);
}
// Expose the following components of the chart
return {
elements : elements,
interior : interior,
scales: function() { return {x:scale_x, y:scale_y} },
resetZoom: function (xdomain, ydomain) {
zoomNode.__zoom = d3.zoomIdentity;
scale_x = base_scales[0];
scale_y = base_scales[1];
if (xdomain) scale_x.domain(xdomain);
if (ydomain) scale_y.domain(ydomain);
},
zoom: function(params, time) {
if (params) zoom.on('zoom').call(zoomNode, params, time);
return d3.zoomTransform(zoomNode);
},
build : build
};
}();
function setData(rowData, i) { datasets[i||0] = BrunelD3.makeData(rowData) }
function updateAll(time) { charts.forEach(function(x) { if (x.build) x.build(time || 0)}) }
function buildAll() {
for (var i=0;i<arguments.length;i++) setData(arguments[i], i);
updateAll(transitionTime);
}
return {
dataPreProcess: function(f) { if (f) pre = f; return pre },
dataPostProcess: function(f) { if (f) post = f; return post },
data: function(d,i) { if (d) setData(d,i); return datasets[i||0] },
visId: visId,
build: buildAll,
rebuild: updateAll,
charts: charts
}
}
// Data Tables /////////////////////////////////////////////////////////////////////////////////////
var table1 = {
summarized: true,
names: ['Category', 'Country', '#count'],
options: ['string', 'string', 'numeric'],
rows: [['Blended', 'Canada', 25.0], ['Blended', 'France', 1.0], ['Blended', 'Ireland', 23.0],
['Blended', 'Japan', 1.0], ['Blended', 'Scotland', 21.0], ['Blended', 'USA', 2.0],
['Bourbon', 'USA', 51.0], ['Campbeltown', 'Scotland', 2.0], ['Corn', 'USA', 8.0],
['Flavored', 'Ireland', 1.0], ['Flavored', 'Taiwan', 1.0], ['Flavored', 'USA', 3.0],
['Grain', 'Ireland', 1.0], ['Grain', 'USA', 1.0], ['Highlands', 'Scotland', 26.0],
['Islands', 'Scotland', 9.0], ['Islay', 'Scotland', 17.0], ['Lowlands', 'Scotland', 1.0],
['Pure Pot Still', 'Ireland', 2.0], ['Rye', 'Canada', 3.0], ['Rye', 'USA', 15.0],
['Single Malt', 'Canada', 2.0], ['Single Malt', 'England', 1.0], ['Single Malt', 'France', 1.0],
['Single Malt', 'India', 5.0], ['Single Malt', 'Ireland', 14.0], ['Single Malt', 'Japan', 3.0],
['Single Malt', 'Taiwan', 7.0], ['Single Malt', 'USA', 2.0], ['Speyside', 'Scotland', 32.0],
['Unaged', 'USA', 2.0]]
};
// Call Code to Build the system ///////////////////////////////////////////////////////////////////
var v = new BrunelVis('visualization');
v.build(table1);
</script>
|
{
"content_hash": "a787488908cebdac28fa910c4cb78568",
"timestamp": "",
"source": "github",
"line_count": 321,
"max_line_length": 202,
"avg_line_length": 51.308411214953274,
"alnum_prop": 0.5435336976320583,
"repo_name": "Brunel-Visualization/Brunel",
"id": "728d7e53d141017fa2a3fa9614b1e558d197ac7a",
"size": "16473",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "webservice/src/main/webapp/tests/test0006.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "44575"
},
{
"name": "HTML",
"bytes": "2356915"
},
{
"name": "Java",
"bytes": "1327001"
},
{
"name": "JavaScript",
"bytes": "148809"
},
{
"name": "Jupyter Notebook",
"bytes": "3672009"
},
{
"name": "Python",
"bytes": "13329"
},
{
"name": "R",
"bytes": "5833"
},
{
"name": "Scala",
"bytes": "17162"
},
{
"name": "Shell",
"bytes": "1104"
}
],
"symlink_target": ""
}
|
package com.squarespace.template;
import java.util.List;
import com.fasterxml.jackson.databind.JsonNode;
import com.squarespace.cldrengine.CLDR;
import com.squarespace.cldrengine.api.Bundle;
import com.squarespace.cldrengine.api.CalendarDate;
import com.squarespace.cldrengine.api.CurrencyFormatOptions;
import com.squarespace.cldrengine.api.CurrencyType;
import com.squarespace.cldrengine.api.DateFormatOptions;
import com.squarespace.cldrengine.api.DateIntervalFormatOptions;
import com.squarespace.cldrengine.api.Decimal;
import com.squarespace.cldrengine.api.DecimalFormatOptions;
import com.squarespace.cldrengine.api.MessageArgConverter;
import com.squarespace.cldrengine.api.MessageFormatFuncMap;
import com.squarespace.cldrengine.api.MessageFormatter;
import com.squarespace.cldrengine.api.MessageFormatterOptions;
import com.squarespace.cldrengine.decimal.DecimalConstants;
import com.squarespace.cldrengine.message.DefaultMessageArgConverter;
/**
* Hooks custom formatting functions into the @phensley/cldr message formatter.
*/
public class MessageFormats {
private static final String DEFAULT_ZONE = "America/New_York";
private final CLDR cldr;
private final MessageArgConverter converter;
private final MessageFormatter formatter;
private String zoneId = DEFAULT_ZONE;
public MessageFormats(CLDR cldr) {
this.cldr = cldr;
Bundle bundle = cldr.General.bundle();
this.converter = new ArgConverter();
MessageFormatterOptions options = MessageFormatterOptions.build()
.cacheSize(100)
.converter(converter)
.formatters(formatters())
.language(bundle.language())
.region(bundle.region());
this.formatter = new MessageFormatter(options);
}
public void setTimeZone(String zoneId) {
this.zoneId = zoneId;
}
public MessageFormatter formatter() {
return this.formatter;
}
private MessageFormatFuncMap formatters() {
MessageFormatFuncMap map = new MessageFormatFuncMap();
map.put("money", this::currency);
map.put("currency", this::currency);
map.put("datetime", this::datetime);
map.put("datetime-interval", this::interval);
map.put("number", this::decimal);
map.put("decimal", this::decimal);
return map;
}
/**
* Currency message formatter.
*/
private String currency(List<Object> args, List<String> options) {
if (args.isEmpty()) {
return "";
}
JsonNode node = (JsonNode) args.get(0);
if (node == null) {
return "";
}
JsonNode decimalValue = node.path("decimalValue");
JsonNode currencyCode = node.path("currencyCode");
if (decimalValue.isMissingNode() || currencyCode.isMissingNode()) {
decimalValue = node.path("value");
currencyCode = node.path("currency");
}
if (decimalValue.isMissingNode() || currencyCode.isMissingNode()) {
return "";
}
Decimal value = this.converter.asDecimal(decimalValue);
String code = this.converter.asString(currencyCode);
CurrencyType currency = CurrencyType.fromString(code);
CurrencyFormatOptions opts = OptionParsers.currency(options);
return cldr.Numbers.formatCurrency(value, currency, opts);
}
/**
* Datetime message formatter.
*/
private String datetime(List<Object> args, List<String> options) {
if (args.isEmpty()) {
return "";
}
JsonNode node = (JsonNode) args.get(0);
if (node == null) {
return "";
}
long epoch = node.asLong();
CalendarDate date = cldr.Calendars.toGregorianDate(epoch, zoneId);
DateFormatOptions opts = OptionParsers.datetime(options);
return cldr.Calendars.formatDate(date, opts);
}
/**
* Number / decimal message formatter.
*/
private String decimal(List<Object> args, List<String> options) {
if (args.isEmpty()) {
return "";
}
JsonNode node = (JsonNode) args.get(0);
if (node == null) {
return "";
}
Decimal value = this.converter.asDecimal(node);
DecimalFormatOptions opts = OptionParsers.decimal(options);
return cldr.Numbers.formatDecimal(value, opts);
}
/**
* Datetime interval message formatter.
*/
private String interval(List<Object> args, List<String> options) {
if (args.size() < 2) {
return "";
}
JsonNode v1 = (JsonNode) args.get(0);
JsonNode v2 = (JsonNode) args.get(1);
if (v1 == null || v2 == null) {
return "";
}
CalendarDate start = cldr.Calendars.toGregorianDate(v1.asLong(0), zoneId);
CalendarDate end = cldr.Calendars.toGregorianDate(v2.asLong(0), zoneId);
DateIntervalFormatOptions opts = OptionParsers.interval(options);
return cldr.Calendars.formatDateInterval(start, end, opts);
}
private static class ArgConverter extends DefaultMessageArgConverter {
@Override
public Decimal asDecimal(Object arg) {
if (arg instanceof JsonNode) {
JsonNode node = (JsonNode) arg;
JsonNode decimal = currency(node);
if (!decimal.isMissingNode()) {
return new Decimal(decimal.asText());
}
switch (node.getNodeType()) {
case BOOLEAN:
return node.asBoolean() ? DecimalConstants.ONE : DecimalConstants.ZERO;
case NULL:
case MISSING:
case ARRAY:
case OBJECT:
return DecimalConstants.ZERO;
case NUMBER:
if (node.isBigInteger() || node.isBigDecimal()) {
return new Decimal(node.asText());
}
if (node.isIntegralNumber()) {
return new Decimal(node.asLong());
}
return new Decimal(node.asText());
case STRING:
default:
try {
return new Decimal(node.asText());
} catch (Exception e) {
return DecimalConstants.ZERO;
}
}
}
try {
return super.asDecimal(arg);
} catch (Exception e) {
return DecimalConstants.ZERO;
}
}
@Override
public String asString(Object arg) {
if (arg instanceof JsonNode) {
JsonNode node = (JsonNode) arg;
JsonNode decimal = currency(node);
if (!decimal.isMissingNode()) {
return decimal.asText();
}
switch (node.getNodeType()) {
case BOOLEAN:
return node.asBoolean() ? "true" : "false";
case NULL:
case MISSING:
return "";
case NUMBER:
if (node.isBigInteger() || node.isBigDecimal()) {
return node.asText();
}
return node.isIntegralNumber() ? Long.toString(node.longValue()) : Double.toString(node.doubleValue());
case ARRAY:
case OBJECT:
case STRING:
default:
return node.asText();
}
}
try {
return super.asString(arg);
} catch (Exception e) {
return "";
}
}
/**
* If node is currency, return the value.
*/
private JsonNode currency(JsonNode node) {
JsonNode decimal = node.path("decimalValue");
if (decimal.isMissingNode()) {
decimal = node.path("value");
}
return decimal;
}
}
}
|
{
"content_hash": "980081cab82191a657d698a1cf87584b",
"timestamp": "",
"source": "github",
"line_count": 234,
"max_line_length": 115,
"avg_line_length": 30.811965811965813,
"alnum_prop": 0.6409153952843273,
"repo_name": "Squarespace/template-compiler",
"id": "83118fd4183c9f8d074708f4a8246b5cd640cf46",
"size": "7811",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "core/src/main/java/com/squarespace/template/MessageFormats.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "165193"
},
{
"name": "Java",
"bytes": "1092653"
},
{
"name": "Shell",
"bytes": "38"
}
],
"symlink_target": ""
}
|
package com.navercorp.pinpoint.profiler.plugin;
import java.util.List;
/**
* @author Woonduk Kang(emeroad)
*/
public class ClassNameFilterChain implements ClassNameFilter {
private final ClassNameFilter[] filterChain;
public ClassNameFilterChain(List<ClassNameFilter> filterChain) {
if (filterChain == null) {
throw new NullPointerException("filterChain must not be null");
}
this.filterChain = filterChain.toArray(new ClassNameFilter[0]);
}
@Override
public boolean accept(String className) {
for (ClassNameFilter classNameFilter : this.filterChain) {
if (!classNameFilter.accept(className)) {
return REJECT;
}
}
return ACCEPT;
}
}
|
{
"content_hash": "ba3d1c7c1d3b1f257e23c877af2bbe61",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 75,
"avg_line_length": 24.741935483870968,
"alnum_prop": 0.651890482398957,
"repo_name": "barneykim/pinpoint",
"id": "a56d7f1f5b7d2499be7d979dd15981114107539f",
"size": "1361",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "profiler/src/main/java/com/navercorp/pinpoint/profiler/plugin/ClassNameFilterChain.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "23110"
},
{
"name": "CSS",
"bytes": "534460"
},
{
"name": "CoffeeScript",
"bytes": "10124"
},
{
"name": "Groovy",
"bytes": "1423"
},
{
"name": "HTML",
"bytes": "783305"
},
{
"name": "Java",
"bytes": "16344627"
},
{
"name": "JavaScript",
"bytes": "4821525"
},
{
"name": "Makefile",
"bytes": "5246"
},
{
"name": "PLSQL",
"bytes": "4156"
},
{
"name": "Python",
"bytes": "3523"
},
{
"name": "Ruby",
"bytes": "943"
},
{
"name": "Shell",
"bytes": "31363"
},
{
"name": "TSQL",
"bytes": "4316"
},
{
"name": "Thrift",
"bytes": "15284"
},
{
"name": "TypeScript",
"bytes": "1384337"
}
],
"symlink_target": ""
}
|
/*!
* \file init_op.cc
* \brief CPU Implementation of init op
*/
#include "./init_op.h"
#include "./elemwise_unary_op.h"
namespace mxnet {
namespace op {
DMLC_REGISTER_PARAMETER(InitOpParam);
DMLC_REGISTER_PARAMETER(RangeParam);
NNVM_REGISTER_OP(_zeros)
.describe("fill target with zeros")
.set_num_inputs(0)
.set_num_outputs(1)
.set_attr_parser(ParamParser<InitOpParam>)
.set_attr<nnvm::FInferShape>("FInferShape", InitShape<InitOpParam>)
.set_attr<nnvm::FInferType>("FInferType", InitType<InitOpParam>)
.set_attr<FCompute>("FCompute<cpu>", FillCompute<cpu, 0>)
.set_attr<FComputeEx>("FComputeEx<cpu>", FillComputeZerosEx<cpu>)
.add_arguments(InitOpParam::__FIELDS__());
NNVM_REGISTER_OP(_ones)
.describe("fill target with ones")
.set_num_inputs(0)
.set_num_outputs(1)
.set_attr_parser(ParamParser<InitOpParam>)
.set_attr<nnvm::FInferShape>("FInferShape", InitShape<InitOpParam>)
.set_attr<nnvm::FInferType>("FInferType", InitType<InitOpParam>)
.set_attr<FCompute>("FCompute<cpu>", FillCompute<cpu, 1>)
.add_arguments(InitOpParam::__FIELDS__());
NNVM_REGISTER_OP(_arange)
.describe("Return evenly spaced values within a given interval. Similar to Numpy")
.set_num_inputs(0)
.set_num_outputs(1)
.set_attr_parser(RangeParamParser)
.set_attr<nnvm::FInferShape>("FInferShape", RangeShape)
.set_attr<nnvm::FInferType>("FInferType", InitType<RangeParam>)
.set_attr<FCompute>("FCompute<cpu>", RangeCompute<cpu>)
.add_arguments(RangeParam::__FIELDS__());
NNVM_REGISTER_OP(zeros_like)
.add_alias("_sparse_zeros_like")
.describe(R"code(Return an array of zeros with the same shape and type
as the input array.
The storage type of ``zeros_like`` output depends on the storage type of the input
- zeros_like(row_sparse) = row_sparse
- zeros_like(csr) = csr
- zeros_like(default) = default
Examples::
x = [[ 1., 1., 1.],
[ 1., 1., 1.]]
zeros_like(x) = [[ 0., 0., 0.],
[ 0., 0., 0.]]
)code")
.set_num_inputs(1)
.set_num_outputs(1)
.set_attr<nnvm::FInferShape>("FInferShape", ElemwiseShape<1, 1>)
.set_attr<nnvm::FInferType>("FInferType", ElemwiseType<1, 1>)
.set_attr<FInferStorageType>("FInferStorageType", ElemwiseStorageType<1, 1>)
.set_attr<nnvm::FIgnoreInputs>("FIgnoreInputs",
[](const NodeAttrs& attrs) { return std::vector<uint32_t>(1, 0); })
.set_attr<FCompute>("FCompute<cpu>", FillCompute<cpu, 0>)
.set_attr<FComputeEx>("FComputeEx<cpu>", FillComputeZerosEx<cpu>)
.set_attr<nnvm::FGradient>("FGradient", MakeZeroGradNodes)
.add_argument("data", "NDArray-or-Symbol", "The input");
NNVM_REGISTER_OP(ones_like)
.describe(R"code(Return an array of ones with the same shape and type
as the input array.
Examples::
x = [[ 0., 0., 0.],
[ 0., 0., 0.]]
ones_like(x) = [[ 1., 1., 1.],
[ 1., 1., 1.]]
)code")
.set_num_inputs(1)
.set_num_outputs(1)
.set_attr<nnvm::FInferShape>("FInferShape", ElemwiseShape<1, 1>)
.set_attr<nnvm::FInferType>("FInferType", ElemwiseType<1, 1>)
.set_attr<nnvm::FIgnoreInputs>("FIgnoreInputs",
[](const NodeAttrs& attrs) { return std::vector<uint32_t>(1, 0); })
.set_attr<FCompute>("FCompute<cpu>", FillCompute<cpu, 1>)
.set_attr<nnvm::FGradient>("FGradient", MakeZeroGradNodes)
.add_argument("data", "NDArray-or-Symbol", "The input");
} // namespace op
} // namespace mxnet
|
{
"content_hash": "d5937f9e74012f1661df2dd757be81db",
"timestamp": "",
"source": "github",
"line_count": 104,
"max_line_length": 82,
"avg_line_length": 31.73076923076923,
"alnum_prop": 0.6896969696969697,
"repo_name": "ZihengJiang/mxnet",
"id": "e6a0c9b9f93093ce2fca221f2bc15724d729b93c",
"size": "4107",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "src/operator/tensor/init_op.cc",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "12255"
},
{
"name": "C",
"bytes": "103044"
},
{
"name": "C++",
"bytes": "4090636"
},
{
"name": "CMake",
"bytes": "54469"
},
{
"name": "Cuda",
"bytes": "752521"
},
{
"name": "Groovy",
"bytes": "217"
},
{
"name": "Java",
"bytes": "20406"
},
{
"name": "Jupyter Notebook",
"bytes": "1358130"
},
{
"name": "Makefile",
"bytes": "36547"
},
{
"name": "Matlab",
"bytes": "30187"
},
{
"name": "Perl",
"bytes": "669162"
},
{
"name": "Perl 6",
"bytes": "22779"
},
{
"name": "Protocol Buffer",
"bytes": "77256"
},
{
"name": "Python",
"bytes": "4159523"
},
{
"name": "R",
"bytes": "342965"
},
{
"name": "Scala",
"bytes": "904254"
},
{
"name": "Shell",
"bytes": "203906"
}
],
"symlink_target": ""
}
|
Página web del proyecto.
|
{
"content_hash": "c63eebdb8aceb954fd6561efadada94b",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 25,
"avg_line_length": 26,
"alnum_prop": 0.7692307692307693,
"repo_name": "Chococoin/bit-nibs-web",
"id": "3c14ef63c347634c67ffb4e71100aa52f06632da",
"size": "42",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "47925"
},
{
"name": "JavaScript",
"bytes": "519"
},
{
"name": "PHP",
"bytes": "92847"
}
],
"symlink_target": ""
}
|
using namespace CGAL::parameters;
// Domain
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef K::Point_3 Point;
typedef K::FT FT;
typedef FT (*Function)(const Point&);
typedef CGAL::Implicit_multi_domain_to_labeling_function_wrapper<Function>
Function_wrapper;
typedef Function_wrapper::Function_vector Function_vector;
typedef CGAL::Labeled_mesh_domain_3<Function_wrapper, K> Mesh_domain;
// Triangulation
typedef CGAL::Mesh_triangulation_3<Mesh_domain>::type Tr;
typedef CGAL::Mesh_complex_3_in_triangulation_3<Tr> C3t3;
// Mesh Criteria
typedef CGAL::Mesh_criteria_3<Tr> Mesh_criteria;
typedef Mesh_criteria::Facet_criteria Facet_criteria;
typedef Mesh_criteria::Cell_criteria Cell_criteria;
double cube_function_1 (const Point& p)
{
if( p.x() >= 0 && p.x() <= 2 &&
p.y() >= 0 && p.y() <= 2 &&
p.z() >= 0 && p.z() <= 2 )
return -1.;
return 1.;
}
double cube_function_2 (const Point& p)
{
if( p.x() >= 1 && p.x() <= 3 &&
p.y() >= 1 && p.y() <= 3 &&
p.z() >= 1 && p.z() <= 3 )
return -1.;
return 1.;
}
int main()
{
// Define functions
Function f1 = cube_function_1;
Function f2 = cube_function_2;
Function_vector v;
v.push_back(f1);
v.push_back(f2);
std::vector<std::string> vps;
vps.push_back("--");
// Domain (Warning: Sphere_3 constructor uses square radius !)
Mesh_domain domain(Function_wrapper(v, vps), K::Sphere_3(CGAL::ORIGIN, 5.*5.));
// Set mesh criteria
Mesh_criteria criteria(edge_size = 0.15,
facet_angle = 30, facet_size = 0.2,
cell_radius_edge_ratio = 2, cell_size = 0.4);
// Mesh generation
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria, no_exude(), no_perturb());
// Perturbation (maximum cpu time: 10s, targeted dihedral angle: default)
CGAL::perturb_mesh_3(c3t3, domain, time_limit = 10);
// Exudation
CGAL::exude_mesh_3(c3t3,12);
// Output
std::ofstream medit_file("out_cubes_intersection.mesh");
CGAL::output_to_medit(medit_file, c3t3);
return 0;
}
|
{
"content_hash": "bbfb9e7093887570c5efe888134cf34a",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 82,
"avg_line_length": 27.342105263157894,
"alnum_prop": 0.6323387872954764,
"repo_name": "hlzz/dotfiles",
"id": "3b9da29830e58b3be3b2f39e2fa78b14078c5bd8",
"size": "2674",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "graphics/cgal/Mesh_3/examples/Mesh_3/mesh_cubes_intersection.cpp",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "AppleScript",
"bytes": "1240"
},
{
"name": "Arc",
"bytes": "38"
},
{
"name": "Assembly",
"bytes": "449468"
},
{
"name": "Batchfile",
"bytes": "16152"
},
{
"name": "C",
"bytes": "102303195"
},
{
"name": "C++",
"bytes": "155056606"
},
{
"name": "CMake",
"bytes": "7200627"
},
{
"name": "CSS",
"bytes": "179330"
},
{
"name": "Cuda",
"bytes": "30026"
},
{
"name": "D",
"bytes": "2152"
},
{
"name": "Emacs Lisp",
"bytes": "14892"
},
{
"name": "FORTRAN",
"bytes": "5276"
},
{
"name": "Forth",
"bytes": "3637"
},
{
"name": "GAP",
"bytes": "14495"
},
{
"name": "GLSL",
"bytes": "438205"
},
{
"name": "Gnuplot",
"bytes": "327"
},
{
"name": "Groff",
"bytes": "518260"
},
{
"name": "HLSL",
"bytes": "965"
},
{
"name": "HTML",
"bytes": "2003175"
},
{
"name": "Haskell",
"bytes": "10370"
},
{
"name": "IDL",
"bytes": "2466"
},
{
"name": "Java",
"bytes": "219109"
},
{
"name": "JavaScript",
"bytes": "1618007"
},
{
"name": "Lex",
"bytes": "119058"
},
{
"name": "Lua",
"bytes": "23167"
},
{
"name": "M",
"bytes": "1080"
},
{
"name": "M4",
"bytes": "292475"
},
{
"name": "Makefile",
"bytes": "7112810"
},
{
"name": "Matlab",
"bytes": "1582"
},
{
"name": "NSIS",
"bytes": "34176"
},
{
"name": "Objective-C",
"bytes": "65312"
},
{
"name": "Objective-C++",
"bytes": "269995"
},
{
"name": "PAWN",
"bytes": "4107117"
},
{
"name": "PHP",
"bytes": "2690"
},
{
"name": "Pascal",
"bytes": "5054"
},
{
"name": "Perl",
"bytes": "485508"
},
{
"name": "Pike",
"bytes": "1338"
},
{
"name": "Prolog",
"bytes": "5284"
},
{
"name": "Python",
"bytes": "16799659"
},
{
"name": "QMake",
"bytes": "89858"
},
{
"name": "Rebol",
"bytes": "291"
},
{
"name": "Ruby",
"bytes": "21590"
},
{
"name": "Scilab",
"bytes": "120244"
},
{
"name": "Shell",
"bytes": "2266191"
},
{
"name": "Slash",
"bytes": "1536"
},
{
"name": "Smarty",
"bytes": "1368"
},
{
"name": "Swift",
"bytes": "331"
},
{
"name": "Tcl",
"bytes": "1911873"
},
{
"name": "TeX",
"bytes": "11981"
},
{
"name": "Verilog",
"bytes": "3893"
},
{
"name": "VimL",
"bytes": "595114"
},
{
"name": "XSLT",
"bytes": "62675"
},
{
"name": "Yacc",
"bytes": "307000"
},
{
"name": "eC",
"bytes": "366863"
}
],
"symlink_target": ""
}
|
**AutoHideInput** is a simple [jQuery](http://jquery.com) and [Zepto](http://zeptojs.com) plugin for hiding and showing secure fields.
When a HTML-designer sets the password field as `type="password"`, thus not letting the user see what’s written inside the form field. This plugin helps the user to see what he input into this field. Once a field loses focus, all the typed symbols will be hidden.
## Online Demo
[See a demo here](http://xvoland.github.io/jquery-plugin-autohideinput)

*****

*****
### Support mobile devices

## Features
- show/hide important information when you enter
- additional security for secure fields when you enter
- full support touch devices
- simple installation
- easy of use and setup
- taking care of your customers
- fast and lightweight (<1Kb)
## Dependencies
**jquery.autohideinput.js** requires either [jQuery](http://jquery.com/) or [Zepto](http://zeptojs.com/)
## Benefits
Additional ways to ensure greater protection of your users (hidding secure fields). Once you start using **jquery.autohideinput.js**, your users will feel cared about them.
## AMD support
The plugin supports [AMD](http://requirejs.org/docs/whyamd.html).
If you plan on using **jquery.autohideinput.js** as an asynchronous module with Zepto, you'll want to map Zepto to the name jquery in your path config:
```javascript
require.config({
paths: {
jquery: 'path/to/zepto'
}
});
```
## How To Use
To use it, simply. Select the form `<input>` element or elements. It works with any `<input>` field on the page, it can replace a single element, each element with a specific class/id/name, or property, or every `<input>` element.
You can control the plugin using javascript or directly in the HTML-code using the tag `data-hide`
## Installation
### Flow #1 Installing with Bower
If [Bower](http://bower.io/)'s your thing, you can install this plugin by running `bower install AutoHideInput` in your project directory.
### Flow #2 (controlled via JS)
1.Add to your page load jQuery and plugin:
```html
<head>
…
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js'></script>
<script type="text/javascript" src="jquery.autohideinput.min.js"></script>
…
</head>
```
2.Use the plugin:
```javascript
// to enable the plugin
$('#id').hideinput('hide', true);
// to disable the plugin
$('#id').hideinput('hide', false);
```
3.Enjoy
### Flow #3 (controlled by using the HTML tag **data-hide**)
1.Add to your page load jQuery and plugin:
```html
<head>
…
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js'></script>
<script type="text/javascript" src="jquery.autohideinput.min.js"></script>
…
</head>
```
2.In your HTML-code:
```html
<input type="text" name="loginname" id="loginname" placeholder="login" data-hide="true">
```
* `data-hide="true"` - can take two values `true` or `false`, respectively on/off plugin for the current field
# Known issues
### Competing control in IE10 (Windows 8)
Internet Explorer 10 includes its own control for toggling password visibility that can compete with this plugin when enabled.
You can disable this control for any element by specifying a style for the `::ms-reveal` pseudo-class:
```css
::-ms-reveal { display: none !important; }
```
More info [on MSDN](http://msdn.microsoft.com/en-us/library/windows/apps/hh465773.aspx).
# Contributing
If you'd like to contribute to this project, create a branch and send a pull request for that branch. Lint and test your code.
# Funding
I’ll continue to work and improve the script features regardless of the outcome of funding, because it's rewarding to see that people are using it and it does the job for them. Still I would appreciate your support in covering some of the expenses with the domain hosting and programming hours which are taken from my family time.
Donate any amount for my projects <a href='https://paypal.me/xvoland'>https://paypal.me/xvoland</a>
<a href='https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9D4YBRWH8QURU'><img alt='Click here to lend your support to Extractor and make a donation!' src='https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif' border='0' /></a>
# License
Copyright © 2013 Vitalii Tereshchuk. Licensed under the MIT and GPL licenses.
#### About me and welcome
I'm an independent developer and researcher in web development. Many of you I'll be happy to see on [my personal website](http://dotoca.net)
|
{
"content_hash": "bf580edfa4b6c27fbc4395b8ba7862f0",
"timestamp": "",
"source": "github",
"line_count": 144,
"max_line_length": 330,
"avg_line_length": 32.826388888888886,
"alnum_prop": 0.7330230590226359,
"repo_name": "xvoland/jquery-plugin-autohideinput",
"id": "d80f83cd20a96d52d33958f5db708a33694531fc",
"size": "4786",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "3195"
}
],
"symlink_target": ""
}
|
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "7df0d73f181005e0c06975c3a1c1d351",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "43dc31fd64f2af2b28688e5f65b13adb1b403f22",
"size": "186",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Magnoliopsida/Magnoliales/Annonaceae/Polyceratocarpus/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
package _99Problems.WorkingWithLists
/**
* Created by dan.dixey on 27/06/2017.
*/
object P28 {
/**
* Sorting a list of lists according to length of sublists.
*/
def lsort[T](xa: List[List[T]]): List[List[T]] =
xa.sortWith((l1, l2) => l1.length - l2.length < 0)
/**
* Again, we suppose that a list (InList) contains elements that are lists themselves.
* But this time the objective is to sort the elements of InList according to their length frequency;
* i.e. in the default, where sorting is done ascending order, lists with rare lengths
* are placed first, others with a more frequent length come later.
*/
def lsortFreq[T](list: List[List[T]]): List[List[T]] =
lsort(list)
.groupBy(l => l.length)
.values
.toList
.sortWith((l1, l2) => l1.length - l2.length < 0)
.flatten
}
|
{
"content_hash": "2b091c29eb95d12bb8943211c72d32d9",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 108,
"avg_line_length": 32.148148148148145,
"alnum_prop": 0.631336405529954,
"repo_name": "dandxy89/LearningScala",
"id": "b535b3f390229cca5a428b1253775312f337657f",
"size": "868",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/scala/_99Problems/WorkingWithLists/P28.scala",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Scala",
"bytes": "134641"
}
],
"symlink_target": ""
}
|
declare var NaN: number;
declare var Infinity: number;
/**
* Evaluates JavaScript code and executes it.
* @param x A String value that contains valid JavaScript code.
*/
declare function eval(x: string): any;
/**
* Converts A string to an integer.
* @param s A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in numString.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
declare function parseInt(s: string, radix?: number): number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
declare function parseFloat(string: string): number;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
* @param number A numeric value.
*/
declare function isNaN(number: number): boolean;
/**
* Determines whether a supplied number is finite.
* @param number Any numeric value.
*/
declare function isFinite(number: number): boolean;
/**
* Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
* @param encodedURI A value representing an encoded URI.
*/
declare function decodeURI(encodedURI: string): string;
/**
* Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
* @param encodedURIComponent A value representing an encoded URI component.
*/
declare function decodeURIComponent(encodedURIComponent: string): string;
/**
* Encodes a text string as a valid Uniform Resource Identifier (URI)
* @param uri A value representing an encoded URI.
*/
declare function encodeURI(uri: string): string;
/**
* Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
* @param uriComponent A value representing an encoded URI component.
*/
declare function encodeURIComponent(uriComponent: string): string;
interface PropertyDescriptor {
configurable?: boolean;
enumerable?: boolean;
value?: any;
writable?: boolean;
get? (): any;
set? (v: any): void;
}
interface PropertyDescriptorMap {
[s: string]: PropertyDescriptor;
}
interface Object {
/** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
constructor: Function;
/** Returns a string representation of an object. */
toString(): string;
/** Returns a date converted to a string using the current locale. */
toLocaleString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Object;
/**
* Determines whether an object has a property with the specified name.
* @param v A property name.
*/
hasOwnProperty(v: string): boolean;
/**
* Determines whether an object exists in another object's prototype chain.
* @param v Another object whose prototype chain is to be checked.
*/
isPrototypeOf(v: Object): boolean;
/**
* Determines whether a specified property is enumerable.
* @param v A property name.
*/
propertyIsEnumerable(v: string): boolean;
}
interface ObjectConstructor {
new (value?: any): Object;
(): any;
(value: any): any;
/** A reference to the prototype for a class of objects. */
prototype: Object;
/**
* Returns the prototype of an object.
* @param o The object that references the prototype.
*/
getPrototypeOf(o: any): any;
/**
* Gets the own property descriptor of the specified object.
* An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
* @param o Object that contains the property.
* @param p Name of the property.
*/
getOwnPropertyDescriptor(o: any, p: string): PropertyDescriptor;
/**
* Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
* on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
* @param o Object that contains the own properties.
*/
getOwnPropertyNames(o: any): string[];
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties.
* @param o Object to use as a prototype. May be null
* @param properties JavaScript object that contains one or more property descriptors.
*/
create(o: any, properties?: PropertyDescriptorMap): any;
/**
* Adds a property to an object, or modifies attributes of an existing property.
* @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
* @param p The property name.
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
*/
defineProperty(o: any, p: string, attributes: PropertyDescriptor): any;
/**
* Adds one or more properties to an object, and/or modifies attributes of existing properties.
* @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
* @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
*/
defineProperties(o: any, properties: PropertyDescriptorMap): any;
/**
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
seal(o: any): any;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze(o: any): any;
/**
* Prevents the addition of new properties to an object.
* @param o Object to make non-extensible.
*/
preventExtensions(o: any): any;
/**
* Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
* @param o Object to test.
*/
isSealed(o: any): boolean;
/**
* Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
* @param o Object to test.
*/
isFrozen(o: any): boolean;
/**
* Returns a value that indicates whether new properties can be added to an object.
* @param o Object to test.
*/
isExtensible(o: any): boolean;
/**
* Returns the names of the enumerable properties and methods of an object.
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
keys(o: any): string[];
}
/**
* Provides functionality common to all JavaScript objects.
*/
declare var Object: ObjectConstructor;
/**
* Creates a new function.
*/
interface Function {
/**
* Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
* @param thisArg The object to be used as the this object.
* @param argArray A set of arguments to be passed to the function.
*/
apply(thisArg: any, argArray?: any): any;
/**
* Calls a method of an object, substituting another object for the current object.
* @param thisArg The object to be used as the current object.
* @param argArray A list of arguments to be passed to the method.
*/
call(thisArg: any, ...argArray: any[]): any;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg An object to which the this keyword can refer inside the new function.
* @param argArray A list of arguments to be passed to the new function.
*/
bind(thisArg: any, ...argArray: any[]): any;
prototype: any;
length: number;
// Non-standard extensions
arguments: any;
caller: Function;
}
interface FunctionConstructor {
/**
* Creates a new function.
* @param args A list of arguments the function accepts.
*/
new (...args: string[]): Function;
(...args: string[]): Function;
prototype: Function;
}
declare var Function: FunctionConstructor;
interface IArguments {
[index: number]: any;
length: number;
callee: Function;
}
interface String {
/** Returns a string representation of a string. */
toString(): string;
/**
* Returns the character at the specified index.
* @param pos The zero-based index of the desired character.
*/
charAt(pos: number): string;
/**
* Returns the Unicode value of the character at the specified location.
* @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
*/
charCodeAt(index: number): number;
/**
* Returns a string that contains the concatenation of two or more strings.
* @param strings The strings to append to the end of the string.
*/
concat(...strings: string[]): string;
/**
* Returns the position of the first occurrence of a substring.
* @param searchString The substring to search for in the string
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
*/
indexOf(searchString: string, position?: number): number;
/**
* Returns the last occurrence of a substring in the string.
* @param searchString The substring to search for.
* @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
*/
lastIndexOf(searchString: string, position?: number): number;
/**
* Determines whether two strings are equivalent in the current locale.
* @param that String to compare to target string
*/
localeCompare(that: string): number;
/**
* Matches a string with a regular expression, and returns an array containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
match(regexp: string): RegExpMatchArray;
/**
* Matches a string with a regular expression, and returns an array containing the results of that search.
* @param regexp A regular expression object that contains the regular expression pattern and applicable flags.
*/
match(regexp: RegExp): RegExpMatchArray;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A String object or string literal that represents the regular expression
* @param replaceValue A String object or string literal containing the text to replace for every successful match of rgExp in stringObj.
*/
replace(searchValue: string, replaceValue: string): string;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A String object or string literal that represents the regular expression
* @param replaceValue A function that returns the replacement text.
*/
replace(searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags
* @param replaceValue A String object or string literal containing the text to replace for every successful match of rgExp in stringObj.
*/
replace(searchValue: RegExp, replaceValue: string): string;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags
* @param replaceValue A function that returns the replacement text.
*/
replace(searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string;
/**
* Finds the first substring match in a regular expression search.
* @param regexp The regular expression pattern and applicable flags.
*/
search(regexp: string): number;
/**
* Finds the first substring match in a regular expression search.
* @param regexp The regular expression pattern and applicable flags.
*/
search(regexp: RegExp): number;
/**
* Returns a section of a string.
* @param start The index to the beginning of the specified portion of stringObj.
* @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
* If this value is not specified, the substring continues to the end of stringObj.
*/
slice(start?: number, end?: number): string;
/**
* Split a string into substrings using the specified separator and return them as an array.
* @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(separator: string, limit?: number): string[];
/**
* Split a string into substrings using the specified separator and return them as an array.
* @param separator A Regular Express that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(separator: RegExp, limit?: number): string[];
/**
* Returns the substring at the specified location within a String object.
* @param start The zero-based index number indicating the beginning of the substring.
* @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
* If end is omitted, the characters from start through the end of the original string are returned.
*/
substring(start: number, end?: number): string;
/** Converts all the alphabetic characters in a string to lowercase. */
toLowerCase(): string;
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
toLocaleLowerCase(): string;
/** Converts all the alphabetic characters in a string to uppercase. */
toUpperCase(): string;
/** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
toLocaleUpperCase(): string;
/** Removes the leading and trailing white space and line terminator characters from a string. */
trim(): string;
/** Returns the length of a String object. */
length: number;
// IE extensions
/**
* Gets a substring beginning at the specified location and having the specified length.
* @param from The starting position of the desired substring. The index of the first character in the string is zero.
* @param length The number of characters to include in the returned substring.
*/
substr(from: number, length?: number): string;
[index: number]: string;
}
interface StringConstructor {
new (value?: any): String;
(value?: any): string;
prototype: String;
fromCharCode(...codes: number[]): string;
}
/**
* Allows manipulation and formatting of text strings and determination and location of substrings within strings.
*/
declare var String: StringConstructor;
interface Boolean {
/** Returns the primitive value of the specified object. */
valueOf(): boolean;
}
interface BooleanConstructor {
new (value?: any): Boolean;
(value?: any): boolean;
prototype: Boolean;
}
declare var Boolean: BooleanConstructor;
interface Number {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
*/
toString(radix?: number): string;
/**
* Returns a string representing a number in fixed-point notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toFixed(fractionDigits?: number): string;
/**
* Returns a string containing a number represented in exponential notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toExponential(fractionDigits?: number): string;
/**
* Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
*/
toPrecision(precision?: number): string;
}
interface NumberConstructor {
new (value?: any): Number;
(value?: any): number;
prototype: Number;
/** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
MAX_VALUE: number;
/** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
MIN_VALUE: number;
/**
* A value that is not a number.
* In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
*/
NaN: number;
/**
* A value that is less than the largest negative number that can be represented in JavaScript.
* JavaScript displays NEGATIVE_INFINITY values as -infinity.
*/
NEGATIVE_INFINITY: number;
/**
* A value greater than the largest number that can be represented in JavaScript.
* JavaScript displays POSITIVE_INFINITY values as infinity.
*/
POSITIVE_INFINITY: number;
}
/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
declare var Number: NumberConstructor;
interface TemplateStringsArray extends Array<string> {
raw: string[];
}
interface Math {
/** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
E: number;
/** The natural logarithm of 10. */
LN10: number;
/** The natural logarithm of 2. */
LN2: number;
/** The base-2 logarithm of e. */
LOG2E: number;
/** The base-10 logarithm of e. */
LOG10E: number;
/** Pi. This is the ratio of the circumference of a circle to its diameter. */
PI: number;
/** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
SQRT1_2: number;
/** The square root of 2. */
SQRT2: number;
/**
* Returns the absolute value of a number (the value without regard to whether it is positive or negative).
* For example, the absolute value of -5 is the same as the absolute value of 5.
* @param x A numeric expression for which the absolute value is needed.
*/
abs(x: number): number;
/**
* Returns the arc cosine (or inverse cosine) of a number.
* @param x A numeric expression.
*/
acos(x: number): number;
/**
* Returns the arcsine of a number.
* @param x A numeric expression.
*/
asin(x: number): number;
/**
* Returns the arctangent of a number.
* @param x A numeric expression for which the arctangent is needed.
*/
atan(x: number): number;
/**
* Returns the angle (in radians) from the X axis to a point (y,x).
* @param y A numeric expression representing the cartesian y-coordinate.
* @param x A numeric expression representing the cartesian x-coordinate.
*/
atan2(y: number, x: number): number;
/**
* Returns the smallest number greater than or equal to its numeric argument.
* @param x A numeric expression.
*/
ceil(x: number): number;
/**
* Returns the cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
cos(x: number): number;
/**
* Returns e (the base of natural logarithms) raised to a power.
* @param x A numeric expression representing the power of e.
*/
exp(x: number): number;
/**
* Returns the greatest number less than or equal to its numeric argument.
* @param x A numeric expression.
*/
floor(x: number): number;
/**
* Returns the natural logarithm (base e) of a number.
* @param x A numeric expression.
*/
log(x: number): number;
/**
* Returns the larger of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
max(...values: number[]): number;
/**
* Returns the smaller of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
min(...values: number[]): number;
/**
* Returns the value of a base expression taken to a specified power.
* @param x The base value of the expression.
* @param y The exponent value of the expression.
*/
pow(x: number, y: number): number;
/** Returns a pseudorandom number between 0 and 1. */
random(): number;
/**
* Returns a supplied numeric expression rounded to the nearest number.
* @param x The value to be rounded to the nearest number.
*/
round(x: number): number;
/**
* Returns the sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
sin(x: number): number;
/**
* Returns the square root of a number.
* @param x A numeric expression.
*/
sqrt(x: number): number;
/**
* Returns the tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
tan(x: number): number;
}
/** An intrinsic object that provides basic mathematics functionality and constants. */
declare var Math: Math;
/** Enables basic storage and retrieval of dates and times. */
interface Date {
/** Returns a string representation of a date. The format of the string depends on the locale. */
toString(): string;
/** Returns a date as a string value. */
toDateString(): string;
/** Returns a time as a string value. */
toTimeString(): string;
/** Returns a value as a string value appropriate to the host environment's current locale. */
toLocaleString(): string;
/** Returns a date as a string value appropriate to the host environment's current locale. */
toLocaleDateString(): string;
/** Returns a time as a string value appropriate to the host environment's current locale. */
toLocaleTimeString(): string;
/** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
valueOf(): number;
/** Gets the time value in milliseconds. */
getTime(): number;
/** Gets the year, using local time. */
getFullYear(): number;
/** Gets the year using Universal Coordinated Time (UTC). */
getUTCFullYear(): number;
/** Gets the month, using local time. */
getMonth(): number;
/** Gets the month of a Date object using Universal Coordinated Time (UTC). */
getUTCMonth(): number;
/** Gets the day-of-the-month, using local time. */
getDate(): number;
/** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
getUTCDate(): number;
/** Gets the day of the week, using local time. */
getDay(): number;
/** Gets the day of the week using Universal Coordinated Time (UTC). */
getUTCDay(): number;
/** Gets the hours in a date, using local time. */
getHours(): number;
/** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
getUTCHours(): number;
/** Gets the minutes of a Date object, using local time. */
getMinutes(): number;
/** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
getUTCMinutes(): number;
/** Gets the seconds of a Date object, using local time. */
getSeconds(): number;
/** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
getUTCSeconds(): number;
/** Gets the milliseconds of a Date, using local time. */
getMilliseconds(): number;
/** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
getUTCMilliseconds(): number;
/** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
getTimezoneOffset(): number;
/**
* Sets the date and time value in the Date object.
* @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
*/
setTime(time: number): number;
/**
* Sets the milliseconds value in the Date object using local time.
* @param ms A numeric value equal to the millisecond value.
*/
setMilliseconds(ms: number): number;
/**
* Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
* @param ms A numeric value equal to the millisecond value.
*/
setUTCMilliseconds(ms: number): number;
/**
* Sets the seconds value in the Date object using local time.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setSeconds(sec: number, ms?: number): number;
/**
* Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCSeconds(sec: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using local time.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the hour value in the Date object using local time.
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the hours value in the Date object using Universal Coordinated Time (UTC).
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the numeric day-of-the-month value of the Date object using local time.
* @param date A numeric value equal to the day of the month.
*/
setDate(date: number): number;
/**
* Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
* @param date A numeric value equal to the day of the month.
*/
setUTCDate(date: number): number;
/**
* Sets the month value in the Date object using local time.
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
*/
setMonth(month: number, date?: number): number;
/**
* Sets the month value in the Date object using Universal Coordinated Time (UTC).
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
*/
setUTCMonth(month: number, date?: number): number;
/**
* Sets the year of the Date object using local time.
* @param year A numeric value for the year.
* @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
* @param date A numeric value equal for the day of the month.
*/
setFullYear(year: number, month?: number, date?: number): number;
/**
* Sets the year value in the Date object using Universal Coordinated Time (UTC).
* @param year A numeric value equal to the year.
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
* @param date A numeric value equal to the day of the month.
*/
setUTCFullYear(year: number, month?: number, date?: number): number;
/** Returns a date converted to a string using Universal Coordinated Time (UTC). */
toUTCString(): string;
/** Returns a date as a string value in ISO format. */
toISOString(): string;
/** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
toJSON(key?: any): string;
}
interface DateConstructor {
new (): Date;
new (value: number): Date;
new (value: string): Date;
new (year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
(): string;
prototype: Date;
/**
* Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
* @param s A date string
*/
parse(s: string): number;
/**
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
* @param month The month as an number between 0 and 11 (January to December).
* @param date The date as an number between 1 and 31.
* @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour.
* @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes.
* @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds.
* @param ms An number from 0 to 999 that specifies the milliseconds.
*/
UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
now(): number;
}
declare var Date: DateConstructor;
interface RegExpMatchArray extends Array<string> {
index?: number;
input?: string;
}
interface RegExpExecArray extends Array<string> {
index: number;
input: string;
}
interface RegExp {
/**
* Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
* @param string The String object or string literal on which to perform the search.
*/
exec(string: string): RegExpExecArray;
/**
* Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
* @param string String on which to perform the search.
*/
test(string: string): boolean;
/** Returns a copy of the text of the regular expression pattern. Read-only. The rgExp argument is a Regular expression object. It can be a variable name or a literal. */
source: string;
/** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
global: boolean;
/** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
ignoreCase: boolean;
/** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
multiline: boolean;
lastIndex: number;
// Non-standard extensions
compile(): RegExp;
}
interface RegExpConstructor {
new (pattern: string, flags?: string): RegExp;
(pattern: string, flags?: string): RegExp;
prototype: RegExp;
// Non-standard extensions
$1: string;
$2: string;
$3: string;
$4: string;
$5: string;
$6: string;
$7: string;
$8: string;
$9: string;
lastMatch: string;
}
declare var RegExp: RegExpConstructor;
interface Error {
name: string;
message: string;
}
interface ErrorConstructor {
new (message?: string): Error;
(message?: string): Error;
prototype: Error;
}
declare var Error: ErrorConstructor;
interface EvalError extends Error {
}
interface EvalErrorConstructor {
new (message?: string): EvalError;
(message?: string): EvalError;
prototype: EvalError;
}
declare var EvalError: EvalErrorConstructor;
interface RangeError extends Error {
}
interface RangeErrorConstructor {
new (message?: string): RangeError;
(message?: string): RangeError;
prototype: RangeError;
}
declare var RangeError: RangeErrorConstructor;
interface ReferenceError extends Error {
}
interface ReferenceErrorConstructor {
new (message?: string): ReferenceError;
(message?: string): ReferenceError;
prototype: ReferenceError;
}
declare var ReferenceError: ReferenceErrorConstructor;
interface SyntaxError extends Error {
}
interface SyntaxErrorConstructor {
new (message?: string): SyntaxError;
(message?: string): SyntaxError;
prototype: SyntaxError;
}
declare var SyntaxError: SyntaxErrorConstructor;
interface TypeError extends Error {
}
interface TypeErrorConstructor {
new (message?: string): TypeError;
(message?: string): TypeError;
prototype: TypeError;
}
declare var TypeError: TypeErrorConstructor;
interface URIError extends Error {
}
interface URIErrorConstructor {
new (message?: string): URIError;
(message?: string): URIError;
prototype: URIError;
}
declare var URIError: URIErrorConstructor;
interface JSON {
/**
* Converts a JavaScript Object Notation (JSON) string into an object.
* @param text A valid JSON string.
* @param reviver A function that transforms the results. This function is called for each member of the object.
* If a member contains nested objects, the nested objects are transformed before the parent object is.
*/
parse(text: string, reviver?: (key: any, value: any) => any): any;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
*/
stringify(value: any): string;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer A function that transforms the results.
*/
stringify(value: any, replacer: (key: string, value: any) => any): string;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer Array that transforms the results.
*/
stringify(value: any, replacer: any[]): string;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer A function that transforms the results.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer: (key: string, value: any) => any, space: any): string;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer Array that transforms the results.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer: any[], space: any): string;
}
/**
* An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
*/
declare var JSON: JSON;
/////////////////////////////
/// ECMAScript Array API (specially handled by compiler)
/////////////////////////////
interface Array<T> {
/**
* Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
*/
length: number;
/**
* Returns a string representation of an array.
*/
toString(): string;
toLocaleString(): string;
/**
* Appends new elements to an array, and returns the new length of the array.
* @param items New elements of the Array.
*/
push(...items: T[]): number;
/**
* Removes the last element from an array and returns it.
*/
pop(): T;
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat<U extends T[]>(...items: U[]): T[];
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: T[]): T[];
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Reverses the elements in an Array.
*/
reverse(): T[];
/**
* Removes the first element from an array and returns it.
*/
shift(): T;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): T[];
/**
* Sorts an array.
* @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.
*/
sort(compareFn?: (a: T, b: T) => number): T[];
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
*/
splice(start: number): T[];
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @param items Elements to insert into the array in place of the deleted elements.
*/
splice(start: number, deleteCount: number, ...items: T[]): T[];
/**
* Inserts new elements at the start of an array.
* @param items Elements to insert at the start of the Array.
*/
unshift(...items: T[]): number;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
*/
indexOf(searchElement: T, fromIndex?: number): number;
/**
* Returns the index of the last occurrence of a specified value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
*/
lastIndexOf(searchElement: T, fromIndex?: number): number;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[];
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
[n: number]: T;
}
interface ArrayConstructor {
new (arrayLength?: number): any[];
new <T>(arrayLength: number): T[];
new <T>(...items: T[]): T[];
(arrayLength?: number): any[];
<T>(arrayLength: number): T[];
<T>(...items: T[]): T[];
isArray(arg: any): boolean;
prototype: Array<any>;
}
declare var Array: ArrayConstructor;
|
{
"content_hash": "380ef9d0a417c17499295a6eb1861b03",
"timestamp": "",
"source": "github",
"line_count": 1145,
"max_line_length": 243,
"avg_line_length": 42.05589519650655,
"alnum_prop": 0.6809195497777962,
"repo_name": "unknownexception/flow-declarations",
"id": "8fc9c25d389cb4bb8e86f79fe85b80a1a0ffce78",
"size": "48154",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/typescript-interfaces/core.d.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "2283910"
},
{
"name": "Python",
"bytes": "195"
},
{
"name": "Shell",
"bytes": "334"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://syriaca.org/documentation/syriaca-tei-main.rnc" type="application/relax-ng-compact-syntax"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:srophe="https://srophe.app"
xmlns:saxon="http://saxon.sf.net/"
xmlns:functx="http://www.functx.com"
xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
<title level="a" xml:lang="en">al-Qumrī (or al-Qamarī)</title>
<sponsor ref="https://www.uni-muenchen.de">
<orgName>Ludwig Maximilian University of Munich</orgName>
(<orgName xml:lang="de">Ludwig-Maximilians-Universität München</orgName>)
</sponsor>
<sponsor ref="http://www.naher-osten.uni-muenchen.de">
<orgName>Institute of Near and Middle Eastern Studies</orgName>
(<orgName xml:lang="de">Institut für den Nahen und Mittleren Osten</orgName>)
</sponsor>
<funder ref="https://www.bmbf.de/">
<orgName>German Federal Ministry of Education and Research</orgName>
(<orgName xml:lang="de">Bundesministerium für Bildung und Forschung</orgName>)
</funder>
<principal ref="#ngibson">Nathan P. Gibson</principal>
<editor xml:id="ngibson"
role="editor"
ref="https://usaybia.net/documentation/editors.xml#ngibson http://syriaca.org/documentation/editors.html#ngibson https://www.naher-osten.uni-muenchen.de/personen/wiss_ma/gibson/index.html http://orcid.org/0000-0003-0786-8075 http://viaf.org/viaf/59147905242279092527">Nathan P. Gibson</editor>
<editor xml:id="vbirkhahn"
role="contributor"
ref="https://usaybia.net/documentation/editors.xml#vbirkhahn https://www.naher-osten.uni-muenchen.de/personen/fachschaft/vanessa_birkhahn/index.html">Vanessa Birkhahn</editor>
<editor xml:id="fioppolo"
role="contributor"
ref="https://usaybia.net/documentation/editors.xml#fioppolo https://www.naher-osten.uni-muenchen.de/personen/hilfskraefte/ioppolo/index.html">Fabio Ioppolo</editor>
<editor xml:id="nloehr"
role="contributor"
ref="https://usaybia.net/documentation/editors.xml#nloehr https://www.naher-osten.uni-muenchen.de/personen/wiss_ma/nadine_loehr/index.html">Nadine Löhr</editor>
<editor xml:id="rschmahl"
role="contributor"
ref="https://usaybia.net/documentation/editors.xml#rschmahl https://www.naher-osten.uni-muenchen.de/personen/hilfskraefte/schmahl/index.html">Robin Schmahl</editor>
<editor xml:id="mtolay"
role="contributor"
ref="https://usaybia.net/documentation/editors.xml#mtolay https://www.naher-osten.uni-muenchen.de/personen/hilfskraefte/tolay/index.html">Malinda Tolay</editor>
<editor role="creator" ref="#ngibson">Nathan P. Gibson</editor>
<editor role="creator" ref="#vbirkhahn">Vanessa Birkhahn</editor>
<editor role="creator" ref="#fioppolo">Fabio Ioppolo</editor>
<editor role="creator" ref="#nloehr">Nadine Löhr</editor>
<editor role="creator" ref="#rschmahl">Robin Schmahl</editor>
<editor role="creator" ref="#mtolay">Malinda Tolay</editor>
<respStmt>
<resp>The orignal version of this record was adapted from the index entry in
A Literary History of Medicine: The “Uyūn al-Anbā” Fī Ṭabaqāt al-Aṭibbā’ of
Ibn Abī Uṣaybi’ah, 5 vols. (Leiden: Brill, 2020) by</resp>
<name>Emilie Savage-Smith</name>
<name>Simon Swain</name>
<name>G. J. H. van Gelder</name>
</respStmt>
<respStmt>
<resp>Conversion into tabular and TEI-XML formats, data mining, and proofing by</resp>
<name type="person" ref="#ngibson">Nathan P. Gibson</name>
</respStmt>
<respStmt>
<resp>Entity classification, bibliography editing,
and occupational, affiliational, and gender descriptors by</resp>
<name type="person" ref="#vbirkhahn">Vanessa Birkhahn</name>
</respStmt>
<respStmt>
<resp>English and Arabic name entry,
matching with external records by</resp>
<name type="person" ref="#rschmahl">Robin Schmahl</name>
</respStmt>
<respStmt>
<resp>Relational descriptors, English and Arabic name entry,
matching with external records by</resp>
<name type="person" ref="#mtolay">Malinda Tolay</name>
</respStmt>
<respStmt>
<resp>Relational descriptors by</resp>
<name type="person" ref="#fioppolo">Fabio Ioppolo</name>
</respStmt>
<respStmt>
<resp>Bibliography editing by</resp>
<name type="person" ref="#nloehr">Nadine Löhr</name>
</respStmt>
<respStmt>
<resp>Original data architecture of TEI person records for Srophé by</resp>
<name type="person"
ref="http://syriaca.org/documentation/editors.xml#dmichelson">David A. Michelson</name>
</respStmt>
<respStmt>
<resp>Srophé app design and development by</resp>
<name type="person"
ref="http://syriaca.org/documentation/editors.xml#wsalesky">Winona Salesky</name>
</respStmt>
</titleStmt>
<editionStmt>
<edition n="0.3"/>
</editionStmt>
<publicationStmt>
<authority>
<ref target="https://usaybia.net">Usaybia.net</ref>
</authority>
<date>2020</date>
<idno type="URI">https://usaybia.net/person/1883/tei</idno>
<availability>
<licence target="http://creativecommons.org/licenses/by/3.0/">
<p>Distributed under a Creative Commons Attribution 4.0 International (CC BY 4.0)
License.</p>
</licence>
</availability>
<date>2020-06-25+02:00</date>
</publicationStmt>
<sourceDesc>
<p>Born digital.</p>
</sourceDesc>
</fileDesc>
<encodingDesc>
<editorialDecl>
<p>This record created following the Syriaca.org guidelines. Documentation
available at: <ref target="http://syriaca.org/documentation">http://syriaca.org/documentation</ref>.</p>
<interpretation>
<p>Approximate dates described in terms of centuries or partial centuries
have been interpreted as documented in <ref target="http://syriaca.org/documentation/dates.html">Syriaca.org
Dates</ref>.</p>
</interpretation>
</editorialDecl>
<classDecl>
<taxonomy>
<category xml:id="syriaca-headword">
<catDesc>The name used by Syriaca.org for document titles, citation, and
disambiguation. These names have been created according to the
Syriac.org guidelines for headwords: <ref target="http://syriaca.org/documentation/headwords.html">http://syriaca.org/documentation/headwords.html</ref>.</catDesc>
</category>
<category xml:id="syriaca-anglicized">
<catDesc>An anglicized version of a name, included to facilitate
searching.</catDesc>
</category>
<category xml:id="ektobe-headword">
<catDesc>The name used by e-Ktobe as a standardized name form.</catDesc>
</category>
</taxonomy>
<taxonomy>
<category xml:id="syriaca-author">
<catDesc>A person who is relevant to the Guide to Syriac
Authors</catDesc>
</category>
<category xml:id="syriaca-saint">
<catDesc>A person who is relevant to the Bibliotheca Hagiographica
Syriaca.</catDesc>
</category>
</taxonomy>
</classDecl>
</encodingDesc>
<profileDesc>
<langUsage>
<language ident="syr">Unvocalized Syriac of any variety or period</language>
<language ident="syr-Syrj">Vocalized West Syriac</language>
<language ident="syr-Syrn">Vocalized East Syriac</language>
<language ident="en">English</language>
<language ident="en-x-gedsh">Names or terms Romanized into English according to
the standards adopted by the Gorgias Encyclopedic Dictionary of the Syriac
Heritage</language>
<language ident="ar">Arabic</language>
<language ident="fr">French</language>
<language ident="de">German</language>
<language ident="la">Latin</language>
</langUsage>
</profileDesc>
<revisionDesc status="draft">
<change who="http://usaybia.net/documentation/editors.xml#ngibson"
n="0.2"
when="2020-06-08+02:00">CREATED: person from spreadsheet https://docs.google.com/spreadsheets/d/1ujiT91ua3sA-WX86OWpuE-gDD_E-zONpI1dP70pXdWw/edit#gid=0.
The canonical record is currently in the spreadsheet. Changes should be made there. THIS FILE SHOULD NOT BE MANUALLY EDITED!</change>
<change who="http://syriaca.org/documentation/editors.xml#ngibson"
n="0.3"
when="2020-06-25+02:00">CHANGED: Updated person from spreadsheet https://docs.google.com/spreadsheets/d/1ujiT91ua3sA-WX86OWpuE-gDD_E-zONpI1dP70pXdWw/edit#gid=0.</change>
</revisionDesc>
</teiHeader>
<text>
<body>
<listPerson>
<person xml:id="person-1883">
<persName xml:id="name1883-1"
xml:lang="en-x-lhom"
srophe-tags="#syriaca-headword"
source="#bib1883-1">al-Qumrī (or al-Qamarī)</persName>
<persName xml:id="name1883-2" xml:lang="en-x-lhom" source="#bib1883-1">Abū Manṣūr al-Ḥasan ibn Nūḥ al-Qamarī (or, al-Qumrī)</persName>
<persName xml:id="name1883-3" xml:lang="ar" source="#bib1883-1">أبو منصور الحسن بن نوح القمري</persName>
<note xml:id="abstract-en-1883"
xml:lang="en"
type="abstract"
source="#bib1883-1">al-Qumrī (or al-Qamarī), Abū Manṣūr al-Ḥasan ibn Nūḥ al-Qumrī (or al-Qamarī), Persian physician</note>
<idno type="URI">https://usaybia.net/person/1883</idno>
<idno type="URI">https://onomasticon.irht.cnrs.fr/en/entry/id/4272</idno> <idno type="URI">https://ar.wikipedia.org/wiki/%D8%AD%D8%B3%D9%86_%D8%A8%D9%86_%D9%86%D9%88%D8%AD_%D8%A7%D9%84%D9%82%D9%85%D8%B1%D9%8A</idno> <idno type="URI">http://viaf.org/viaf/90058060</idno>
<state xml:lang="en" type="occupation" role="physician" source="#bib1883-1">
<desc>physician</desc>
</state>
<bibl xml:id="bib1883-1">
<ptr target="https://usaybia.net/bibl/WVSJMDSV"/>
<citedRange unit="section">11.11</citedRange>
<citedRange unit="section">11.11</citedRange>
</bibl>
</person>
</listPerson>
</body>
</text>
</TEI>
|
{
"content_hash": "87e6c01abb71647cee3a9799a9a8827a",
"timestamp": "",
"source": "github",
"line_count": 207,
"max_line_length": 411,
"avg_line_length": 59.2463768115942,
"alnum_prop": 0.5569960861056752,
"repo_name": "ScholarNET/ScholarNET-data",
"id": "51230097eaa601a3da9708bc36118c1bc5b45472",
"size": "12345",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "data/persons/tei/1883.xml",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "24780"
},
{
"name": "HTML",
"bytes": "111193701"
},
{
"name": "JavaScript",
"bytes": "102876"
},
{
"name": "XQuery",
"bytes": "18734"
},
{
"name": "XSLT",
"bytes": "114884"
}
],
"symlink_target": ""
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-fingroup: 2 m 12 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.1+1 / mathcomp-fingroup - 1.8.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mathcomp-fingroup
<small>
1.8.0
<span class="label label-success">2 m 12 s 🏆</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-10-01 01:46:28 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-10-01 01:46:28 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.7.1+1 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.03.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.03.0 Official 4.03.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.5 A library manager for OCaml
# opam file:
opam-version: "2.0"
name: "coq-mathcomp-fingroup"
version: "1.8.0"
maintainer: "Mathematical Components <mathcomp-dev@sympa.inria.fr>"
homepage: "https://math-comp.github.io/"
bug-reports: "https://github.com/math-comp/math-comp/issues"
dev-repo: "git+https://github.com/math-comp/math-comp.git"
license: "CeCILL-B"
build: [ make "-C" "mathcomp/fingroup" "-j" "%{jobs}%" ]
install: [ make "-C" "mathcomp/fingroup" "install" ]
remove: [ "sh" "-c" "rm -rf '%{lib}%/coq/user-contrib/mathcomp/fingroup'" ]
depends: [ "coq-mathcomp-ssreflect" { = "1.8.0" } ]
tags: [ "keyword:finite groups" "keyword:small scale reflection" "keyword:mathematical components" "keyword:odd order theorem" ]
authors: [ "Jeremy Avigad <>" "Andrea Asperti <>" "Stephane Le Roux <>" "Yves Bertot <>" "Laurence Rideau <>" "Enrico Tassi <>" "Ioana Pasca <>" "Georges Gonthier <>" "Sidi Ould Biha <>" "Cyril Cohen <>" "Francois Garillot <>" "Alexey Solovyev <>" "Russell O'Connor <>" "Laurent Théry <>" "Assia Mahboubi <>" ]
synopsis: "Mathematical Components Library on finite groups"
description: """
This library contains definitions and theorems about finite groups,
group quotients, group morphisms, group presentation, group action...
"""
url {
src: "http://github.com/math-comp/math-comp/archive/mathcomp-1.8.0.tar.gz"
checksum: "sha256=dcb3b29041d61084d21451cd38c0aeb61ef61dd136efaec96055a1ceea3b9162"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-mathcomp-fingroup.1.8.0 coq.8.7.1+1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-mathcomp-fingroup.1.8.0 coq.8.7.1+1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>1 m 43 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-mathcomp-fingroup.1.8.0 coq.8.7.1+1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>2 m 12 s</dd>
</dl>
<h2>Installation size</h2>
<p>Total: 8 M</p>
<ul>
<li>1009 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/action.vo</code></li>
<li>928 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/action.glob</code></li>
<li>862 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/gproduct.vo</code></li>
<li>856 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/fingroup.glob</code></li>
<li>692 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/fingroup.vo</code></li>
<li>600 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/gproduct.glob</code></li>
<li>527 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/morphism.glob</code></li>
<li>524 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/morphism.vo</code></li>
<li>313 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/quotient.glob</code></li>
<li>305 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/quotient.vo</code></li>
<li>242 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/perm.vo</code></li>
<li>191 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/automorphism.vo</code></li>
<li>174 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/perm.glob</code></li>
<li>135 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/automorphism.glob</code></li>
<li>112 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/fingroup.v</code></li>
<li>98 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/action.v</code></li>
<li>93 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/presentation.vo</code></li>
<li>62 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/gproduct.v</code></li>
<li>52 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/morphism.v</code></li>
<li>43 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/presentation.glob</code></li>
<li>34 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/quotient.v</code></li>
<li>31 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/all_fingroup.vo</code></li>
<li>24 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/perm.v</code></li>
<li>16 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/automorphism.v</code></li>
<li>11 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/presentation.v</code></li>
<li>1 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/all_fingroup.glob</code></li>
<li>1 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/fingroup/all_fingroup.v</code></li>
</ul>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq-mathcomp-fingroup.1.8.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
{
"content_hash": "e292266e3d5ef51345901c275589249e",
"timestamp": "",
"source": "github",
"line_count": 186,
"max_line_length": 554,
"avg_line_length": 58.655913978494624,
"alnum_prop": 0.585884509624198,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "6f33474296fab470a8e8a04cadfe2ebf7cc494ff",
"size": "10936",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.03.0-2.0.5/released/8.7.1+1/mathcomp-fingroup/1.8.0.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_95) on Sat Apr 09 08:38:38 CEST 2016 -->
<title>org.apache.tools.ant.taskdefs.optional.native2ascii (Apache Ant API)</title>
<meta name="date" content="2016-04-09">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="org.apache.tools.ant.taskdefs.optional.native2ascii (Apache Ant API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/package-summary.html">Prev Package</a></li>
<li><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/net/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/tools/ant/taskdefs/optional/native2ascii/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Package" class="title">Package org.apache.tools.ant.taskdefs.optional.native2ascii</h1>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Interface Summary table, listing interfaces, and an explanation">
<caption><span>Interface Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Interface</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/native2ascii/Native2AsciiAdapter.html" title="interface in org.apache.tools.ant.taskdefs.optional.native2ascii">Native2AsciiAdapter</a></td>
<td class="colLast">
<div class="block">Interface for an adapter to a native2ascii implementation.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/native2ascii/DefaultNative2Ascii.html" title="class in org.apache.tools.ant.taskdefs.optional.native2ascii">DefaultNative2Ascii</a></td>
<td class="colLast">
<div class="block">encapsulates the handling common to diffent Native2Asciiadapter
implementations.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/native2ascii/KaffeNative2Ascii.html" title="class in org.apache.tools.ant.taskdefs.optional.native2ascii">KaffeNative2Ascii</a></td>
<td class="colLast">
<div class="block">Adapter to kaffe.tools.native2ascii.Native2Ascii.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/native2ascii/Native2AsciiAdapterFactory.html" title="class in org.apache.tools.ant.taskdefs.optional.native2ascii">Native2AsciiAdapterFactory</a></td>
<td class="colLast">
<div class="block">Creates the Native2AsciiAdapter based on the user choice and
potentially the VM vendor.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/native2ascii/SunNative2Ascii.html" title="class in org.apache.tools.ant.taskdefs.optional.native2ascii">SunNative2Ascii</a></td>
<td class="colLast">
<div class="block">Adapter to sun.tools.native2ascii.Main.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/package-summary.html">Prev Package</a></li>
<li><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/net/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/tools/ant/taskdefs/optional/native2ascii/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
|
{
"content_hash": "25a3771169fd7fbb2bfbe3b04f58326a",
"timestamp": "",
"source": "github",
"line_count": 170,
"max_line_length": 240,
"avg_line_length": 40.99411764705882,
"alnum_prop": 0.647151671688908,
"repo_name": "jstrassburg/solr-jenkins-cicd",
"id": "08a57f7fb50caac32204895fd6508f43ab307b6c",
"size": "6969",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "jenkins_home/tools/hudson.tasks.Ant_AntInstallation/ant/manual/api/org/apache/tools/ant/taskdefs/optional/native2ascii/package-summary.html",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "22523"
},
{
"name": "CSS",
"bytes": "356702"
},
{
"name": "Groovy",
"bytes": "7311"
},
{
"name": "HTML",
"bytes": "33253889"
},
{
"name": "JavaScript",
"bytes": "23893409"
},
{
"name": "Perl",
"bytes": "9922"
},
{
"name": "Python",
"bytes": "3385"
},
{
"name": "Shell",
"bytes": "13297"
},
{
"name": "XSLT",
"bytes": "238702"
}
],
"symlink_target": ""
}
|
class Unit < ActiveRecord::Base
belongs_to :course
has_many :proficiencies
has_many :users, through: :proficiencies
has_many :assignments
end
|
{
"content_hash": "47217d5bfcb3d88e6d5cb91d9ce368df",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 42,
"avg_line_length": 25,
"alnum_prop": 0.7533333333333333,
"repo_name": "weronica/asdfStuck",
"id": "4d9592576d053be57aa1e6dd6cb330ef020a2dc6",
"size": "150",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/models/unit.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "2334"
},
{
"name": "CoffeeScript",
"bytes": "844"
},
{
"name": "JavaScript",
"bytes": "663"
},
{
"name": "Ruby",
"bytes": "48344"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="ClienteServicioWeb" default="default" basedir=".">
<description>Builds, tests, and runs the project ClienteServicioWeb.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="ClienteServicioWeb-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>
|
{
"content_hash": "24823c89b690616e8d737477418a29f0",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 86,
"avg_line_length": 49.66216216216216,
"alnum_prop": 0.6614965986394558,
"repo_name": "Danmarjim/mwm-2014-2015",
"id": "441872cd6899c8557df6e434e48feaacb9bc2fc6",
"size": "3675",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Mod3/Servicios Web/Ejercicio1/ClienteServicioWeb/build.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "1596"
},
{
"name": "CSS",
"bytes": "504493"
},
{
"name": "HTML",
"bytes": "592527"
},
{
"name": "Java",
"bytes": "513747"
},
{
"name": "JavaScript",
"bytes": "364725"
},
{
"name": "Objective-C",
"bytes": "89465"
},
{
"name": "Ruby",
"bytes": "125"
},
{
"name": "Shell",
"bytes": "4447"
},
{
"name": "XSLT",
"bytes": "16594"
}
],
"symlink_target": ""
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.