100+ results results for 'test repo:cyanogenmod/android_hardware_ti_omap3' (1318 ms)
115 /** 116 * Test to see if a test case is in the ignore 117 * list. Quite obviously the ignore list should 283 * to send message to the test cases. 284 * @param SimpleTestCase $test Test case to register. 285 * @access public 288 $this->clear(); 289 $this->test = $test; 290 } 293 * Accessor for currently running test case. 294 * @return SimpleTestCase Current test. 295 * @access public 374 /** 375 * Test to see if error is generated by SimpleTest itself. 376 * @param array $frame PHP stack frame.HeliStatic.lua http://project-o.googlecode.com/svn/trunk/ | Lua | 518 lines
191 else 192 self:CreateStaticEntity( 5000, 0 ); 193 self:EnablePhysics( 1 ); 195 196-- self:CreateStaticEntity( self.Properties.Mass, 0 ); 197 enddsp_blas2.c https://code.google.com/p/opensees-websocket/ | C | 460 lines
29 * non-unit, upper or lower triangular matrix. 30 * No test for singularity or near-singularity is included in this 31 * routine. Such tests must be performed before calling this routine. 89 90 /* Test the input parameters */ 91 *info = 0; 365 366 /* Test the input parameters */ 367 info = 0;JvLinkLabelParser.pas http://my-chuanqi.googlecode.com/svn/trunk/ | Pascal | 476 lines
20 21You may retrieve the latest version of this file at the Project JEDI's JVCL home page, 22located at http://jvcl.sourceforge.netSWFLoader.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 382 lines
74<tr class="hideInheritedProperty"> 75<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="LoaderCore.html#bytesTotal">bytesTotal</a> : int<div class="summaryTableDescription"> 76 80<tr class="hideInheritedProperty"> 81<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="LoaderCore.html#bytesTotalPrefetcher">bytesTotalPrefetcher</a> : <a href="../loaders/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a> 82<div class="summaryTableDescription"> 83 84 Returns the bytesTotal prefetcher instance.</div> 85</td><td class="summaryTableOwnerCol"><a href="LoaderCore.html">LoaderCore</a></td>LoaderCore.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 665 lines
6<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print"> 7<meta content="LoaderCore,org.tractionas3.load.loaders.LoaderCore,bytesLoaded,bytesTotal,bytesTotalPrefetcher,cancelable,data,loadTime,loaded,loading,name,priority,progress,url,clone,destruct,getURLRequest,listDestructableProperties,load,prefetchBytesTotal,reset,toString" name="keywords"> 8<title>org.tractionas3.load.loaders.LoaderCore</title> 81<tr class=""> 82<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#bytesTotal">bytesTotal</a> : int<div class="summaryTableDescription">[read-only] 83 87<tr class=""> 88<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#bytesTotalPrefetcher">bytesTotalPrefetcher</a> : <a href="../loaders/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a> 89<div class="summaryTableDescription">[read-only] 90 91 Returns the bytesTotal prefetcher instance.</div> 92</td><td class="summaryTableOwnerCol">LoaderCore</td>ByteArrayLoader.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 349 lines
74<tr class="hideInheritedProperty"> 75<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="CoreLoader.html#bytesTotal">bytesTotal</a> : int<div class="summaryTableDescription"> 76 80<tr class="hideInheritedProperty"> 81<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="CoreLoader.html#bytesTotalPrefetcher">bytesTotalPrefetcher</a> : <a href="../load/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a> 82<div class="summaryTableDescription"> 83 84 Returns the bytesTotal prefetcher instance.</div> 85</td><td class="summaryTableOwnerCol"><a href="CoreLoader.html">CoreLoader</a></td>BytesTotalPrefetcher.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 317 lines
6<link rel="stylesheet" href="../../../print.css" type="text/css" media="print"> 7<meta content="BytesTotalPrefetcher,org.tractionas3.load.BytesTotalPrefetcher,prefetchComplete,cancel,destruct,getByteWaste,getPrefetchedBytesTotal" name="keywords"> 8<title>org.tractionas3.load.BytesTotalPrefetcher</title> 75 Indicates whether the prefetch is complete.</div> 76</td><td class="summaryTableOwnerCol">BytesTotalPrefetcher</td> 77</tr> 97<div class="summarySignature"> 98<a class="signatureLink" href="#BytesTotalPrefetcher()">BytesTotalPrefetcher</a>(request:URLRequest)</div> 99<div class="summaryTableDescription"> 99<div class="summaryTableDescription"> 100 BytesTotalPrefetcher Constructor 101 148<div class="summarySignature"> 149<a class="signatureLink" href="#getPrefetchedBytesTotal()">getPrefetchedBytesTotal</a>():uint</div> 150<div class="summaryTableDescription">CoreLoader.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 608 lines
6<link rel="stylesheet" href="../../../print.css" type="text/css" media="print"> 7<meta content="CoreLoader,org.tractionas3.load.CoreLoader,name,priority,bytesLoaded,bytesTotal,bytesTotalPrefetcher,cancelable,data,loadTime,loaded,loading,progress,url,clone,getURLRequest,listDestructableProperties,load,prefetchBytesTotal,reset,toString" name="keywords"> 8<title>org.tractionas3.load.CoreLoader</title> 73<tr class=""> 74<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#bytesTotal">bytesTotal</a> : int<div class="summaryTableDescription">[read-only] 75 79<tr class=""> 80<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#bytesTotalPrefetcher">bytesTotalPrefetcher</a> : <a href="../load/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a> 81<div class="summaryTableDescription">[read-only] 82 83 Returns the bytesTotal prefetcher instance.</div> 84</td><td class="summaryTableOwnerCol">CoreLoader</td> 225<div class="summarySignature"> 226<a class="signatureLink" href="#prefetchBytesTotal()">prefetchBytesTotal</a>():void</div> 227<div class="summaryTableDescription">ILoadable.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 473 lines
6<link rel="stylesheet" href="../../../print.css" type="text/css" media="print"> 7<meta content="ILoadable,org.tractionas3.load.ILoadable,bytesLoaded,bytesTotal,bytesTotalPrefetcher,cancelable,data,loadTime,loaded,loading,name,priority,progress,url,getURLRequest,load,prefetchBytesTotal" name="keywords"> 8<title>org.tractionas3.load.ILoadable</title> 62<tr class=""> 63<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#bytesTotal">bytesTotal</a> : int<div class="summaryTableDescription">[read-only] 64 Indicates the number of total bytes of the loaders target file.</div> 67<tr class=""> 68<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#bytesTotalPrefetcher">bytesTotalPrefetcher</a> : <a href="loaders/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a> 69<div class="summaryTableDescription">[read-only] 69<div class="summaryTableDescription">[read-only] 70 Returns the bytesTotal prefetcher instance.</div> 71</td><td class="summaryTableOwnerCol">ILoadable</td> 179<div class="summarySignature"> 180<a class="signatureLink" href="#prefetchBytesTotal()">prefetchBytesTotal</a>():void</div> 181<div class="summaryTableDescription">Loadable.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 420 lines
6<link rel="stylesheet" href="../../../print.css" type="text/css" media="print"> 7<meta content="Loadable,org.tractionas3.load.Loadable,bytesLoaded,bytesTotal,bytesTotalPrefetcher,cancelable,data,loadTime,loaded,loading,progress,url,getURLRequest,load,prefetchBytesTotal" name="keywords"> 8<title>org.tractionas3.load.Loadable</title> 62<tr class=""> 63<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#bytesTotal">bytesTotal</a> : int<div class="summaryTableDescription">[read-only] 64 Indicates the number of total bytes of the loaders target file.</div> 67<tr class=""> 68<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#bytesTotalPrefetcher">bytesTotalPrefetcher</a> : <a href="../load/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a> 69<div class="summaryTableDescription">[read-only] 69<div class="summaryTableDescription">[read-only] 70 Returns the bytesTotal prefetcher instance.</div> 71</td><td class="summaryTableOwnerCol">Loadable</td> 168<div class="summarySignature"> 169<a class="signatureLink" href="#prefetchBytesTotal()">prefetchBytesTotal</a>():void</div> 170<div class="summaryTableDescription">AbstractLoader.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 682 lines
9<meta 10 content="AbstractLoader,org.tractionas3.load.AbstractLoader,name,priority,bytesLoaded,bytesTotal,bytesTotalPrefetcher,cancelable,data,loadTime,loaded,loading,progress,clone,getURLRequest,load,prefetchBytesTotal,reset,toString" 11 name="keywords"> 121 <td class="summaryTableSignatureCol"><a class="signatureLink" 122 href="#bytesTotal">bytesTotal</a> : int 123 <div class="summaryTableDescription">[read-only] Indicates the 131 <td class="summaryTableSignatureCol"><a class="signatureLink" 132 href="#bytesTotalPrefetcher">bytesTotalPrefetcher</a> : <a 133 href="../load/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a> 134 <div class="summaryTableDescription">[read-only] Returns the 135 bytesTotal prefetcher instance.</div> 136 </td> 341 <div class="summarySignature"><a class="signatureLink" 342 href="#prefetchBytesTotal()">prefetchBytesTotal</a>():void</div> 343 <div class="summaryTableDescription">Instructs the loader toLoaderQueue.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 698 lines
6<link rel="stylesheet" href="../../../print.css" type="text/css" media="print"> 7<meta content="LoaderQueue,org.tractionas3.load.LoaderQueue,slots,emptySlots,loaded,loaders,loadersComplete,loadersProgress,loadersQueued,name,numLoaders,progress,running,addLoader,cancel,cancelAndStop,destruct,prefetchBytesTotal,removeAndCancelLoader,removeLoader,start,stop" name="keywords"> 8<title>org.tractionas3.load.LoaderQueue</title>all-index-E.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 215 lines
51<tr> 52<td colspan="2" class="idxrow"><a onclick="javascript:loadClassListFrame('org/tractionas3/utils/class-list.html');" href="org/tractionas3/utils/BandwidthTest.html#elapsedTime">elapsedTime</a> — Property in class org.tractionas3.utils.<a onclick="javascript:loadClassListFrame('org/tractionas3/utils/class-list.html');" href="org/tractionas3/utils/BandwidthTest.html">BandwidthTest</a></td> 53</tr> 55<td width="20"></td><td> 56 Indicates, in milliseconds, for how long the test has been running.</td> 57</tr>all-index-T.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 459 lines
57<tr> 58<td colspan="2" class="idxrow"><a onclick="javascript:loadClassListFrame('org/tractionas3/utils/class-list.html');" href="org/tractionas3/utils/BandwidthTest.html#threshold">threshold</a> — Property in class org.tractionas3.utils.<a onclick="javascript:loadClassListFrame('org/tractionas3/utils/class-list.html');" href="org/tractionas3/utils/BandwidthTest.html">BandwidthTest</a></td> 59</tr> 93<tr> 94<td colspan="2" class="idxrow"><a onclick="javascript:loadClassListFrame('org/tractionas3/utils/class-list.html');" href="org/tractionas3/utils/BandwidthTest.html#timeout">timeout</a> — Property in class org.tractionas3.utils.<a onclick="javascript:loadClassListFrame('org/tractionas3/utils/class-list.html');" href="org/tractionas3/utils/BandwidthTest.html">BandwidthTest</a></td> 95</tr> 97<td width="20"></td><td> 98 Indicates, in milliseconds, the timeout of the test.</td> 99</tr>class-summary.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 837 lines
82<tr class="prow0"> 83<td class="summaryTablePaddingCol"> </td><td class="summaryTableSecondCol"><a href="org/tractionas3/utils/BandwidthTest.html">BandwidthTest</a> 84<br> 85</td><td class="summaryTableCol"><a onclick="javascript:loadClassListFrame('org/tractionas3/utils/class-list.html');" href="org/tractionas3/utils/package-detail.html">org.tractionas3.utils</a></td><td class="summaryTableLastCol"> 86 Using a reference file, BandwidthTest records connection speed and latency between the client and server.</td> 87</tr> 88<tr class="prow1"> 89<td class="summaryTablePaddingCol"> </td><td class="summaryTableSecondCol"><a href="org/tractionas3/events/BandwidthTestEvent.html">BandwidthTestEvent</a> 90<br> 91</td><td class="summaryTableCol"><a onclick="javascript:loadClassListFrame('org/tractionas3/events/class-list.html');" href="org/tractionas3/events/package-detail.html">org.tractionas3.events</a></td><td class="summaryTableLastCol"> 92 BandwidthTestEvent provides events for BandwidthTest class.</td> 93</tr> 123<tr class="prow1"> 124<td class="summaryTablePaddingCol"> </td><td class="summaryTableSecondCol"><a href="org/tractionas3/load/loaders/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a> 125<br>all-index-G.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 526 lines
37<tr> 38<td colspan="2" class="idxrow"><a onclick="javascript:loadClassListFrame('org/tractionas3/load/loaders/class-list.html');" href="org/tractionas3/load/loaders/BytesTotalPrefetcher.html#getByteWaste()">getByteWaste</a>() — Method in class org.tractionas3.load.loaders.<a onclick="javascript:loadClassListFrame('org/tractionas3/load/loaders/class-list.html');" href="org/tractionas3/load/loaders/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a></td> 39</tr>all-index-C.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 872 lines
73<tr> 74<td colspan="2" class="idxrow"><a onclick="javascript:loadClassListFrame('org/tractionas3/load/loaders/class-list.html');" href="org/tractionas3/load/loaders/BytesTotalPrefetcher.html#cancel()">cancel</a>() — Method in class org.tractionas3.load.loaders.<a onclick="javascript:loadClassListFrame('org/tractionas3/load/loaders/class-list.html');" href="org/tractionas3/load/loaders/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a></td> 75</tr>all-index-B.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 422 lines
51<tr> 52<td colspan="2" class="idxrow"><a onclick="javascript:loadClassListFrame('org/tractionas3/utils/class-list.html');" href="org/tractionas3/utils/BandwidthTest.html">BandwidthTest</a> — Class in package <a onclick="javascript:loadClassListFrame('org/tractionas3/utils/class-list.html');" href="org/tractionas3/utils/package-detail.html">org.tractionas3.utils</a></td> 53</tr> 58<tr> 59<td colspan="2" class="idxrow"><a onclick="javascript:loadClassListFrame('org/tractionas3/utils/class-list.html');" href="org/tractionas3/utils/BandwidthTest.html#BandwidthTest()">BandwidthTest</a>(referenceFile, timeout, bandwidthThreshold) — Constructor in class org.tractionas3.utils.<a onclick="javascript:loadClassListFrame('org/tractionas3/utils/class-list.html');" href="org/tractionas3/utils/BandwidthTest.html">BandwidthTest</a></td> 60</tr> 65<tr> 66<td colspan="2" class="idxrow"><a onclick="javascript:loadClassListFrame('org/tractionas3/events/class-list.html');" href="org/tractionas3/events/BandwidthTestEvent.html">BandwidthTestEvent</a> — Class in package <a onclick="javascript:loadClassListFrame('org/tractionas3/events/class-list.html');" href="org/tractionas3/events/package-detail.html">org.tractionas3.events</a></td> 67</tr> 69<td width="20"></td><td> 70 BandwidthTestEvent provides events for BandwidthTest class.</td> 71</tr> 72<tr> 73<td colspan="2" class="idxrow"><a onclick="javascript:loadClassListFrame('org/tractionas3/events/class-list.html');" href="org/tractionas3/events/BandwidthTestEvent.html#BandwidthTestEvent()">BandwidthTestEvent</a>(type, bubbles, cancelable) — Constructor in class org.tractionas3.events.<a onclick="javascript:loadClassListFrame('org/tractionas3/events/class-list.html');" href="org/tractionas3/events/BandwidthTestEvent.html">BandwidthTestEvent</a></td> 74</tr>all-index-L.html http://tractionas3.googlecode.com/svn/trunk/ | HTML | 611 lines
37<tr> 38<td colspan="2" class="idxrow"><a onclick="javascript:loadClassListFrame('org/tractionas3/utils/class-list.html');" href="org/tractionas3/utils/BandwidthTest.html#latency">latency</a> — Property in class org.tractionas3.utils.<a onclick="javascript:loadClassListFrame('org/tractionas3/utils/class-list.html');" href="org/tractionas3/utils/BandwidthTest.html">BandwidthTest</a></td> 39</tr> 41<td width="20"></td><td> 42 Indicates, in milliseconds, the latency result measured by the test.</td> 43</tr>piffle.html http://piffle.googlecode.com/svn/trunk/ | HTML | 5638 lines
35<br />  <span class="sectionToc">1.1  <a 36href="#x1-30001.1" id="QQ2-1-3">Latest version of this document</a></span> 37<br />  <span class="sectionToc">1.2  <a 83<br /> <span class="chapterToc">7  <a 84href="#x1-270007" id="QQ2-1-27">The test boilerplate, test.c</a></span> 85<br />  <span class="sectionToc">7.1  <a 85<br />  <span class="sectionToc">7.1  <a 86href="#x1-280007.1" id="QQ2-1-28">The pfc.test(1) manual page</a></span> 87<br /> <span class="chapterToc">8  <a 97 <h3 class="sectionHead"><span class="titlemark">1.1</span>.  <a 98 id="x1-30001.1"></a>Latest version of this document</h3> 99<!--l. 23--><p class="noindent">For up-to-date information on Piffle, and the latest version of this document, be sure to visitio.js http://demoasp.googlecode.com/svn/trunk/ | JavaScript | 578 lines
159 for (var cc = 0; cc < this.children_.length; ++cc) { 160 total += this.children_[cc].getTotalKnownBytesToStreamSoFar(); 161 } 183 * 184 * See LoadInfo.getTotalKnownBytesToStreamSoFar for details. 185 * @return {number} The total number of requests currently known to be streamed. 185 * @return {number} The total number of requests currently known to be streamed. 186 * @see o3djs.io.LoadInfo.getTotalKnownBytesToStreamSoFar 187 */ 215 * base: number, suffix: string}} progress info. 216 * @see o3djs.io.LoadInfo.getTotalKnownBytesToStreamSoFar 217 */ 219 var percent = 0; 220 var bytesToDownload = this.getTotalKnownBytesToStreamSoFar(); 221 var bytesDownloaded = this.getTotalBytesDownloaded();base.js http://demoasp.googlecode.com/svn/trunk/ | JavaScript | 795 lines
140 // Internet Explorer exhibits strange behavior when throwing errors from 141 // methods externed in this manner. See the testExportSymbolExceptions in 142 // base_test.html for an example. 346 * Returns true if the specified value is not |undefined|. 347 * WARNING: Do not use this to test if an object has a property. Use the in 348 * operator instead. 348 * operator instead. 349 * @param {*} val Variable to test. 350 * @return {boolean} Whether variable is defined.rendergraph.js http://demoasp.googlecode.com/svn/trunk/ | JavaScript | 421 lines
242 o3djs.base.o3d.State.BLENDFUNC_INVERSE_SOURCE_ALPHA; 243 zOrderedState.getStateParam('AlphaTestEnable').value = true; 244 zOrderedState.getStateParam('AlphaComparisonFunction').value =JSValidator_v1.0.js http://demoasp.googlecode.com/svn/trunk/ | JavaScript | 783 lines
111 reg = new RegExp("^"+source+"$","i"); 112 result = !reg.test(target); 113 reg = null; 180 } 181 result = reg?reg.test(target):result; 182 reg=null; 189 if(Bean["limits"][v]!=null){ 190 b = this.testLimit(source,Bean.getAs(),Bean["limits"],v); 191 if(b==false){ 201 var reg = new RegExp(expression); 202 return reg.test(source); 203 }, 204 // ?? ???? ??????? 205 testLimit:function(value,type,option,limits){ 206 var reg = null;lightbox.js http://demoasp.googlecode.com/svn/trunk/ | JavaScript | 689 lines
64 65var resizeSpeed = 7; // controls the speed of the image resizing (1=slowest and 10=fastest) 66mootools.js http://demoasp.googlecode.com/svn/trunk/ | JavaScript | 100 lines
2 3var MooTools={version:'1.12'};function $defined(obj){return(obj!=undefined);};function $type(obj){if(!$defined(obj))return false;if(obj.htmlElement)return'element';var type=typeof obj;if(type=='object'&&obj.nodeName){switch(obj.nodeType){case 1:return'element';case 3:return(/\S/).test(obj.nodeValue)?'textnode':'whitespace';}} 4if(type=='object'||type=='function'){switch(obj.constructor){case Array:return'array';case RegExp:return'regexp';case Class:return'class';} 11return this;},fireEvent:function(type,args,delay){if(this.$events&&this.$events[type]){this.$events[type].each(function(fn){fn.create({'bind':this,'delay':delay,'arguments':args})();},this);} 12return this;},removeEvent:function(type,fn){if(this.$events&&this.$events[type])this.$events[type].remove(fn);return this;}});var Options=new Class({setOptions:function(){this.options=$merge.apply(null,[this.options].extend(arguments));if(this.addEvent){for(var option in this.options){if($type(this.options[option]=='function')&&(/^on[A-Z]/).test(option))this.addEvent(option,this.options[option]);}} 13return this;}});Array.extend({forEach:function(fn,bind){for(var i=0,j=this.length;i<j;i++)fn.call(bind,this[i],i,this);},filter:function(fn,bind){var results=[];for(var i=0,j=this.length;i<j;i++){if(fn.call(bind,this[i],i,this))results.push(this[i]);} 17return-1;},copy:function(start,length){start=start||0;if(start<0)start=this.length+start;length=length||(this.length-start);var newArray=[];for(var i=0;i<length;i++)newArray[i]=this[start++];return newArray;},remove:function(item){var i=0;var len=this.length;while(i<len){if(this[i]===item){this.splice(i,1);len--;}else{i++;}} 18return this;},contains:function(item,from){return this.indexOf(item,from)!=-1;},associate:function(keys){var obj={},length=Math.min(this.length,keys.length);for(var i=0;i<length;i++)obj[keys[i]]=this[i];return obj;},extend:function(array){for(var i=0,j=array.length;i<j;i++)this.push(array[i]);return this;},merge:function(array){for(var i=0,l=array.length;i<l;i++)this.include(array[i]);return this;},include:function(item){if(!this.contains(item))this.push(item);return this;},getRandom:function(){return this[$random(0,this.length-1)]||null;},getLast:function(){return this[this.length-1]||null;}});Array.prototype.each=Array.prototype.forEach;Array.each=Array.forEach;function $A(array){return Array.copy(array);};function $each(iterable,fn,bind){if(iterable&&typeof iterable.length=='number'&&$type(iterable)!='object'){Array.forEach(iterable,fn,bind);}else{for(var name in iterable)fn.call(bind||iterable,iterable[name],name);}};Array.prototype.test=Array.prototype.contains;String.extend({test:function(regex,params){return(($type(regex)=='string')?new RegExp(regex,params):regex).test(this);},toInt:function(){return parseInt(this,10);},toFloat:function(){return parseFloat(this);},camelCase:function(){return this.replace(/-\D/g,function(match){return match.charAt(1).toUpperCase();});},hyphenate:function(){return this.replace(/\w[A-Z]/g,function(match){return(match.charAt(0)+'-'+match.charAt(1).toLowerCase());});},capitalize:function(){return this.replace(/\b[a-z]/g,function(match){return match.toUpperCase();});},trim:function(){return this.replace(/^\s+|\s+$/g,'');},clean:function(){return this.replace(/\s{2,}/g,' ').trim();},rgbToHex:function(array){var rgb=this.match(/\d{1,3}/g);return(rgb)?rgb.rgbToHex(array):false;},hexToRgb:function(array){var hex=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return(hex)?hex.slice(1).hexToRgb(array):false;},contains:function(string,s){return(s)?(s+this+s).indexOf(s+string+s)>-1:this.indexOf(string)>-1;},escapeRegExp:function(){return this.replace(/([.*+?^${}()|[\]\/\\])/g,'\\$1');}});Array.extend({rgbToHex:function(array){if(this.length<3)return false;if(this.length==4&&this[3]==0&&!array)return'transparent';var hex=[];for(var i=0;i<3;i++){var bit=(this[i]-0).toString(16);hex.push((bit.length==1)?'0'+bit:bit);} 19return array?hex:'#'+hex.join('');},hexToRgb:function(array){if(this.length!=3)return false;var rgb=[];for(var i=0;i<3;i++){rgb.push(parseInt((this[i].length==1)?this[i]+this[i]:this[i],16));}framework.js http://demoasp.googlecode.com/svn/trunk/ | JavaScript | 405 lines
51framework.browser={ 52 ie:/msie/.test(window.navigator.userAgent.toLowerCase()), 53 moz:/gecko/.test(window.navigator.userAgent.toLowerCase()), 53 moz:/gecko/.test(window.navigator.userAgent.toLowerCase()), 54 opera:/opera/.test(window.navigator.userAgent.toLowerCase()), 55 safari:/safari/.test(window.navigator.userAgent.toLowerCase()) 402 403specialDates:null,specialDays:null,disabledDates:null,disabledDays:null,opposite:false,onpicking:null,onpicked:null,onclearing:null,oncleared:null,ychanging:null,ychanged:null,Mchanging:null,Mchanged:null,dchanging:null,dchanged:null,Hchanging:null,Hchanged:null,mchanging:null,mchanged:null,schanging:null,schanged:null,eCont:null,vel:null,errMsg:"",quickSel:[],has:{}};WdatePicker=U;var X=window,O="document",J="documentElement",C="getElementsByTagName",V,A,T,I,b;switch(navigator.appName){case"Microsoft Internet Explorer":T=true;break;case"Opera":b=true;break;default:I=true;break}A=L();V=X;if(_.$crossFrame){try{while(V.parent&&V.parent[O]!=V[O]&&V.parent[O][C]("frameset").length==0)V=V.parent}catch(P){}}if(!V.$dp)V.$dp={ff:I,ie:T,opera:b,el:null,win:X,status:0,defMinDate:_.minDate,defMaxDate:_.maxDate,flatCfgs:[]};B();if($dp.status==0)Z(X,function(){U(null,true)});if(!X[O].docMD){E(X[O],"onmousedown",D);X[O].docMD=true}if(!V[O].docMD){E(V[O],"onmousedown",D);V[O].docMD=true}E(X,"onunload",function(){if($dp.dd)Q($dp.dd,"none")});function B(){V.$dp=V.$dp||{};obj={$:function($){return(typeof $=="string")?X[O].getElementById($):$},$D:function($,_){return this.$DV(this.$($).value,_)},$DV:function(_,$){if(_!=""){this.dt=$dp.cal.splitDate(_,$dp.cal.dateFmt);if($)for(var B in $)if(this.dt[B]===undefined)this.errMsg="invalid property:"+B;else{this.dt[B]+=$[B];if(B=="M"){var C=$["M"]>0?1:0,A=new Date(this.dt["y"],this.dt["M"],0).getDate();this.dt["d"]=Math.min(A+C,this.dt["d"])}}if(this.dt.refresh())return this.dt}return""},show:function(){var A=V[O].getElementsByTagName("div"),$=100000;for(var B=0;B<A.length;B++){var _=parseInt(A[B].style.zIndex);if(_>$)$=_}this.dd.style.zIndex=$+2;Q(this.dd,"block")},hide:function(){Q(this.dd,"none")},attachEvent:E};for(var $ in obj)V.$dp[$]=obj[$];$dp=V.$dp;$dp.dd=V[O].getElementById("_my97DP")}function E(A,$,_){if(T)A.attachEvent($,_);else if(_){var B=$.replace(/on/,"");_._ieEmuEventHandler=function($){return _($)};A.addEventListener(B,_._ieEmuEventHandler,false)}}function L(){var _,A,$=X[O][C]("script");for(var B=0;B<$.length;B++){_=$[B].src.substring(0,$[B].src.toLowerCase().indexOf("framework.js"));A=_.lastIndexOf("/");if(A>0)_=_.substring(0,A+1);if(_)break}return _}function F(F){var E,C;if(F.substring(0,1)!="/"&&F.indexOf("://")==-1){E=V.location.href;C=location.href;if(E.indexOf("?")>-1)E=E.substring(0,E.indexOf("?"));if(C.indexOf("?")>-1)C=C.substring(0,C.indexOf("?"));var G,I,$="",D="",A="",J,H,B="";for(J=0;J<Math.max(E.length,C.length);J++){G=E.charAt(J).toLowerCase();I=C.charAt(J).toLowerCase();if(G==I){if(G=="/")H=J}else{$=E.substring(H+1,E.length);$=$.substring(0,$.lastIndexOf("/"));D=C.substring(H+1,C.length);D=D.substring(0,D.lastIndexOf("/"));break}}if($!="")for(J=0;J<$.split("/").length;J++)B+="../";if(D!="")B+=D+"/";F=E.substring(0,E.lastIndexOf("/")+1)+B+F}_.$dpPath=F}function M(A,$,B){var D=X[O][C]("HEAD").item(0),_=X[O].createElement("link");if(D){_.href=A;_.rel="stylesheet";_.type="text/css";if($)_.title=$;if(B)_.charset=B;D.appendChild(_)}}function Z($,_){E($,"onload",_)}function G($){$=$||V;var A=0,_=0;while($!=V){var D=$.parent[O][C]("iframe");for(var F=0;F<D.length;F++){try{if(D[F].contentWindow==$){var E=W(D[F]);A+=E.left;_+=E.top;break}}catch(B){}}$=$.parent}return{"leftM":A,"topM":_}}function W(F){if(F.getBoundingClientRect)return F.getBoundingClientRect();else{var A={ROOT_TAG:/^body|html$/i,OP_SCROLL:/^(?:inline|table-row)$/i},E=false,H=null,_=F.offsetTop,G=F.offsetLeft,D=F.offsetWidth,B=F.offsetHeight,C=F.offsetParent;if(C!=F)while(C){G+=C.offsetLeft;_+=C.offsetTop;if(S(C,"position").toLowerCase()=="fixed")E=true;else if(C.tagName.toLowerCase()=="body")H=C.ownerDocument.defaultView;C=C.offsetParent}C=F.parentNode;while(C.tagName&&!A.ROOT_TAG.test(C.tagName)){if(C.scrollTop||C.scrollLeft)if(!A.OP_SCROLL.test(Q(C)))if(!b||C.style.overflow!=="visible"){G-=C.scrollLeft;_-=C.scrollTop}C=C.parentNode}if(!E){var $=a(H);G-=$.left;_-=$.top}D+=G;B+=_;return{"left":G,"top":_,"right":D,"bottom":B}}}function N($){$=$||V;var B=$[O],A=($.innerWidth)?$.innerWidth:(B[J]&&B[J].clientWidth)?B[J].clientWidth:B.body.offsetWidth,_=($.innerHeight)?$.innerHeight:(B[J]&&B[J].clientHeight)?B[J].clientHeight:B.master.css http://demoasp.googlecode.com/svn/trunk/ | CSS | 2299 lines
498 text-indent: -9999px; 499 background: #d4440b url(../img/head-latest.png) no-repeat; 500} 501 502.main .latest ul { 503 float: right; 520 521.main .latest ul li:nth-child(3), .main .latest ul li:nth-child(4) { 522 border-bottom: none; 525 526.main .latest ul li p.date { 527 width: 140px; 533 534.main .latest ul li p.date span.date { 535 font-size: 84px;ScoreTTMCurve.asp http://demoasp.googlecode.com/svn/trunk/ | ASP | 519 lines
16 intEndScore = Cint(Trim(request.Form("txtEndScore"))) 17 dateStartDate = Trim(request.Form("txtStartDate")) 18 Dim CPCount '????????????????????????? 22'?????????????????? 23 ReDim aryAverageYield(DateDiff("d", dateStartDate, Date()) + 1, 2) 24 27 If j = 0 Then 28 aryAverageYield(i,j) = DateAdd("d", i, dateStartDate) 29 ElseCreditMatrix.asp http://demoasp.googlecode.com/svn/trunk/ | ASP | 659 lines
15 sngTTMInteval = Trim(request.Form("txtTTMInteval")) 16 dateStatDate = Trim(request.Form("txtDate")) 17 Dim aryTotalRuturnRate() '???????? 30 rsSelectPara.ActiveConnection = MM_b_con_STRING 31 rsSelectPara.Source = "SELECT Top 1 ParaDate, Para1, Para2, Para3, Para4 FROM T_Para Where ParaDate <= '"& dateStatDate &"' Order By ParaDate Desc" 32 rsSelectPara.CursorType = 0 86 87 myWeekDay = WeekDay(dateStatDate, vbMonday) 88 If myWeekDay < 3 Then 95 rsSelect.ActiveConnection = MM_b_con_STRING 96 rsSelect.Source = "SELECT T_CPTradeInfo.CPID, T_CPTradeInfo.Yield, T_CPTradeInfo.TTM, T_CPBasicData.FirmID, T_FirmInfo.FirmIndustryID, T_CPBasicData.CPShortName FROM T_CPTradeInfo INNER JOIN T_CPBasicData ON T_CPTradeInfo.CPID = dbo.T_CPBasicData.CPID INNER JOIN T_FirmInfo ON T_CPBasicData.FirmID = T_FirmInfo.FirmID WHERE (DATEDIFF(d, dbo.T_CPTradeInfo.TradeDate, '"& dateStatDate &"') <= "& intDays &") And (T_CPTradeInfo.TTM >= "& sngStartTTM &") And (T_CPTradeInfo.TTM <= "& sngEndTTM &") ORDER BY T_CPTradeInfo.TradeDate DESC" 97 rsSelect.CursorType = 0BondComeToMarketQuery.asp http://demoasp.googlecode.com/svn/trunk/ | ASP | 374 lines
7 rsSelect.ActiveConnection = MM_b_con_STRING 8 rsSelect.Source = "SELECT T_CPBasicData.CPID, T_CPBasicData.CPShortName, T_FirmInfo.FirmName, T_CPBasicData.CPTerm, T_CPBasicData.CPCirculateStartDate, T_CPBasicData.FirmID, T_CPBasicData.CPIssueStartDate FROM T_CPBasicData INNER JOIN T_FirmInfo ON T_CPBasicData.FirmID = T_FirmInfo.FirmID Where (T_CPBasicData.CPCirculateStartDate >= '"& request.Form("txtDate") &"') Order By CPID Desc" 9 rsSelect.CursorType = 0BondEdit.asp http://demoasp.googlecode.com/svn/trunk/ | ASP | 494 lines
7 rsSelect.ActiveConnection = MM_b_con_STRING 8 rsSelect.Source = "SELECT CPID, CPShortName, CPName, FirmID, CPMajorConsignee, CPRatingIns, CPRatings, CPVolume, CPTerm, CPIssueStartDate, CPIssueEndDate, CPMatureDate, CPCirculateStartDate, CPCirculateEndDate, CPCirculateMarket, CPIsAllowedToSpan, CPInterestManner, CPIssueRate, CPBookRate, CPIssuePrice, CPPurpose, CPTrustee FROM T_CPBasicData Where CPID = '" & Request.QueryString("CID") & "'" 9 rsSelect.CursorType = 0 25 strCPMatureDate = rsSelect(11) 26 strCPCirculateStartDate = rsSelect(12) 27 strCPCirculateEndDate = rsSelect(13)BondInfoList.asp http://demoasp.googlecode.com/svn/trunk/ | ASP | 481 lines
38 Case "???" 39 strRsSource = "SELECT CPID, CPShortName, CPCirculateStartDate FROM T_CPBasicData" 40 Case "???"CGridListCtrlGroups.cpp http://usb-travis.googlecode.com/svn/trunk/ | C++ | 1240 lines
203//------------------------------------------------------------------------ 204int CGridListCtrlGroups::GroupHitTest(const CPoint& point) 205{ 208 209 if (HitTest(point) != -1) 210 return -1; 214#if _WIN32_WINNT >= 0x0600 215#ifdef ListView_HitTestEx 216#ifdef LVHT_EX_GROUP 217#ifdef ListView_GetGroupInfoByIndex 218 LVHITTESTINFO lvhitinfo = {0}; 219 lvhitinfo.pt = point; 219 lvhitinfo.pt = point; 220 ListView_HitTestEx(m_hWnd, &lvhitinfo); 221 if ((lvhitinfo.flags & LVHT_EX_GROUP) == 0)ResizableSheetEx.cpp http://usb-travis.googlecode.com/svn/trunk/ | C++ | 612 lines
115 116BOOL CResizableSheetEx::OnNcCreate(LPCREATESTRUCT lpCreateStruct) 117{ 117{ 118 if (!CPropertySheetEx::OnNcCreate(lpCreateStruct)) 119 return FALSE; 122 // nor they can handle the min/max size constraints 123 BOOL bChild = lpCreateStruct->style & WS_CHILD; 124 128 129 MakeResizable(lpCreateStruct); 130PageInstall.cpp http://usb-travis.googlecode.com/svn/trunk/ | C++ | 715 lines
57 //}}AFX_DATA_INIT 58 //m_strHeaderTitle = "Setup Page (Test)"; 59 //m_psp.dwFlags |= PSP_HIDEHEADER; 208 CString* pTxtInvalidPath = CInfWizardDisplay::GetTipString(IDS_STATUS_INVALID_PATH); 209 WriteStatusError(pTxtInvalidPath->GetBuffer(0), infPath); 210 goto Done; 248 wdiError = chWdiError; 249 WriteStatusError(pTxtErrorPrepareDriver->GetBuffer(0), wdiError); 250 goto Done; 270 wdiError = chWdiError; 271 WriteStatusError(pTxtErrorInstallDriver->GetBuffer(0), wdiError); 272 goto Done; 432} 433void CPageInstall::WriteStatusError(LPCTSTR szCaption, LPCTSTR szText) 434{kBench.c http://usb-travis.googlecode.com/svn/trunk/ | C | 2050 lines
91 TestTypeWrite = 0x02, 92 TestTypeLoop = TestTypeRead | TestTypeWrite, 93} BENCHMARK_DEVICE_TEST_TYPE, *PBENCHMARK_DEVICE_TEST_TYPE; 293 294void SetTestDefaults(PBENCHMARK_TEST_PARAM test) 295{ 302 test->Timeout = 5000; 303 test->TestType = TestTypeLoop; 304 test->AllocBufferSize = 4096; 315{ 316 if (Test->Verify && Test->TestType == TestTypeLoop) 317 { 448 if ( (( test->Intf == -1) || (test->Intf == test->InterfaceDescriptor.bInterfaceNumber)) && 449 (( test->Altf == -1) || (test->Altf == test->InterfaceDescriptor.bAlternateSetting)) ) 450 {lusbk_stack_collection.c http://usb-travis.googlecode.com/svn/trunk/ | C | 577 lines
6Development : Travis Lee Robinson (libusbdotnet@gmail.com) 7Testing : Xiaofan Chen (xiaofanc@gmail.com) 8lusbk_bknd_unsupported.c http://usb-travis.googlecode.com/svn/trunk/ | C | 562 lines
6Development : Travis Lee Robinson (libusbdotnet@gmail.com) 7Testing : Xiaofan Chen (xiaofanc@gmail.com) 8 246 _in LPOVERLAPPED Overlapped, 247 _out PUINT lpNumberOfBytesTransferred, 248 _in BOOL bWait) 251 UNREFERENCED_PARAMETER(Overlapped); 252 UNREFERENCED_PARAMETER(lpNumberOfBytesTransferred); 253 UNREFERENCED_PARAMETER(bWait);libusbk.h http://usb-travis.googlecode.com/svn/trunk/ | C Header | 3988 lines
544 545//! Tests the \c bEndpointAddress direction bit. TRUE if the endpoint address is an OUT endpoint. (HostToDevice, PC Write) 546/*! 550 551//! Tests the \c bEndpointAddress direction bit. TRUE if the endpoint address is an IN endpoint. (DeviceToHost, PC Read) 552/*!lusbk_dynapi.c http://usb-travis.googlecode.com/svn/trunk/ | C | 1916 lines
6Development : Travis Lee Robinson (libusbdotnet@gmail.com) 7Testing : Xiaofan Chen (xiaofanc@gmail.com) 8 250 _in LPOVERLAPPED Overlapped, 251 _out PUINT lpNumberOfBytesTransferred, 252 _in BOOL bWait);xfer-iso.c http://usb-travis.googlecode.com/svn/trunk/ | C | 377 lines
41 UCHAR pipeID = EP_TRANSFER; 42 BM_TEST_TYPE testType = USB_ENDPOINT_DIRECTION_IN(EP_TRANSFER) ? BM_TEST_TYPE_READ : BM_TEST_TYPE_WRITE; 43 55 /* 56 Find the test device. Uses "vid=hhhh pid=hhhh" arguments supplied on the 57 command line. (default is: vid=04D8 pid=FA2E) 58 */ 59 if (!Examples_GetTestDevice(&deviceList, &deviceInfo, argc, argv)) 60 return GetLastError(); 75 */ 76 success = Bench_Configure(handle, BM_COMMAND_SET_TEST, 0, NULL, &testType); 77 if (!success) 101 102 if (testType == BM_TEST_TYPE_READ) 103 UsbK_IsoReadPipe(handle, pipeID, dataBuffer, sizeof(dataBuffer), ovlkHandle, isoCtx);TestParameters.cs http://usb-travis.googlecode.com/svn/trunk/ | C# | 540 lines
4// 5// TestParameters.cs 6// 39{ 40 internal abstract class TestParameters 41 { 41 { 42 protected TestParameters(int vid, 43 int pid, 332 333 public bool ShowTestReady() 334 { 337 338 Console.WriteLine("Test ready:"); 339 Console.Write(ToString());usbb_device.h http://usb-travis.googlecode.com/svn/trunk/ | C Header | 572 lines
66#define udd_low_speed_disable() (Clr_bits(AVR32_USBB.udcon, AVR32_USBB_UDCON_LS_MASK)) 67 //! Test if device low-speed mode is forced 68#define Is_udd_low_speed_enable() (Tst_bits(AVR32_USBB.udcon, AVR32_USBB_UDCON_LS_MASK)) 74# define udd_high_speed_disable() (Wr_bitfield(AVR32_USBB.udcon, AVR32_USBB_UDCON_SPDCONF_MASK, 3)) 75 //! Test if controller is in full speed mode 76# define Is_udd_full_speed_mode() (Rd_bitfield(AVR32_USBB.usbsta, AVR32_USBB_USBSTA_SPEED_MASK) == AVR32_USBB_USBSTA_SPEED_FULL) 83 84//! @name USBB Device HS test mode management 85//! @{ 86#ifdef AVR32_USBB_UDCON_SPDCONF 87 //! Enable high speed test mode 88# define udd_enable_hs_test_mode() (Wr_bitfield(AVR32_USBB.udcon, AVR32_USBB_UDCON_SPDCONF_MASK, 2)) 88# define udd_enable_hs_test_mode() (Wr_bitfield(AVR32_USBB.udcon, AVR32_USBB_UDCON_SPDCONF_MASK, 2)) 89# define udd_enable_hs_test_mode_j() (Set_bits(AVR32_USBB.udcon, AVR32_USBB_UDCON_TSTJ_MASK)) 90# define udd_enable_hs_test_mode_k() (Set_bits(AVR32_USBB.udcon, AVR32_USBB_UDCON_TSTK_MASK))udc.c http://usb-travis.googlecode.com/svn/trunk/ | C | 1031 lines
477#ifdef USB_DEVICE_HS_SUPPORT 478 case USB_DEV_FEATURE_TEST_MODE: 479 if (!udd_is_high_speed()) 485 switch ((udd_g_ctrlreq.req.wIndex >> 8) & 0xFF) { 486 case USB_DEV_TEST_MODE_J: 487 udd_g_ctrlreq.callback = udd_test_mode_j; 489 490 case USB_DEV_TEST_MODE_K: 491 udd_g_ctrlreq.callback = udd_test_mode_k; 493 494 case USB_DEV_TEST_MODE_SE0_NAK: 495 udd_g_ctrlreq.callback = udd_test_mode_se0_nak; 497 498 case USB_DEV_TEST_MODE_PACKET: 499 udd_g_ctrlreq.callback = udd_test_mode_packet;Benchmark.c http://usb-travis.googlecode.com/svn/trunk/ | C | 558 lines
128 TestType_##IntfSuffix=TEST_LOOP; \ 129 PrevTestType_##IntfSuffix=TEST_LOOP; \ 130 FillCount_##IntfSuffix=0; \ 374 375 if (TestType_INTF0!=PrevTestType_INTF0) 376 { 378 NextPacketKey_INTF0=0; 379 PrevTestType_INTF0=TestType_INTF0; 380 } 398#ifdef DUAL_INTERFACE 399 if (TestType_INTF1!=PrevTestType_INTF1) 400 { 402 NextPacketKey_INTF1=0; 403 PrevTestType_INTF1=TestType_INTF1; 404 }DevPosix.hs https://code.google.com/p/hs-ogl-misc/ | Haskell | 401 lines
38import Control.Concurrent 39import qualified Data.ByteString.Lazy as B 40import qualified Control.Exception as ENameSpaceT.hs https://code.google.com/p/hs-ogl-misc/ | Haskell | 415 lines
79import qualified Data.Text as T 80import qualified Data.ByteString as B 81import qualified Control.Monad.CatchIO as CDevGen.hs https://code.google.com/p/hs-ogl-misc/ | Haskell | 352 lines
17-- allowing for unlimited file tree depth, and storing all its objects in memory 18-- (ByteStrings). Concrete implementations may reuse code from this module 19-- for their needs. 58import GHC.IO.Handle 59import qualified Data.ByteString as B 60import qualified Data.ByteString.UTF8 as C 64-- | A data type to represent a device file or directory entry. Roughly corresponds 65-- to Plan 9' DirTab structure. A File entry contains a 'B.ByteString's as file body 66-- (hence no need to keep file length here). A Directory entry contains a 'M.Map' 82 -- provides its own handlers for file manipulation. 83 | MemoryFile !(IORef B.ByteString) -- ^ A memory-backed read-writable file. 84 | BinConst B.ByteString -- ^ Binary constant (read-only)main.go https://code.google.com/p/godag/ | Go | 537 lines
109 getopt.BoolOption("-d -dryrun --dryrun dryrun") 110 getopt.BoolOption("-t -test --test test") 111 getopt.BoolOption("-l -list --list list") 378 os.Setenv("SRCROOT", srcdir) 379 testMain, testDir, testLib := dgrph.MakeMainTest(srcdir) 380 if global.GetString("-lib") != "" { 391 case "gccgo", "gcc": 392 compiler.ForkLink(global.GetString("-test-bin"), testMain, sorted, false) 393 default: 402 if global.GetBool("-dryrun") { 403 testArgv[0] = filepath.Base(testArgv[0]) 404 say.Printf("%s\n", strings.Join(testArgv, " ")) 504 -V --verbose verbose unit-test and go install 505 --test-bin name of test-binary (default: gdtest) 506 --test.* any valid gotest optiondag.go https://code.google.com/p/godag/ | Go | 930 lines
79 80func newTestCollector() *TestCollector { 81 t := new(TestCollector) 276 imprtSet := stringset.New() 277 sbTests := stringbuffer.NewSize(1000) 278 sbBench := stringbuffer.NewSize(1000) 285 286 sbTests.Add("\n\nvar tests = []testing.InternalTest{\n") 287 sbBench.Add("\n\nvar benchmarks = []testing.InternalBenchmark{\n") 326 sbTests.Add(fmt.Sprintf( 327 "testing.InternalTest{\"%s.%s\", %s.%s },\n", 328 sname, fn, lname, fn)) 364 sbTotal.Add("func main(){\n") 365 sbTotal.Add("testing.Main(regexp.MatchString, tests, benchmarks, examples);\n}\n\n") 366compiler.go https://code.google.com/p/godag/ | Go | 645 lines
266 267// Recompile packages that contain test files (*_test.go), 268// i.e. test-code should not be part of the packages after compilation. 273 for i := 0; i < len(pkgs); i++ { 274 if pkgs[i].HasTestAndInit() { 275 doRecompile = true 401 for j := 0; j < len(extra); j++ { 402 // main package untestable using GCC 403 if extra[j].ShortName != "main" { 513 argv = append(argv, "-test.benchtime") 514 argv = append(argv, global.GetString("-test.benchtime")) 515 } 537 if global.GetString("-test.memprofilerate") != "" { 538 argv = append(argv, "-test.memprofilerate") 539 argv = append(argv, global.GetString("-test.memprofilerate"))mk.go https://code.google.com/p/godag/ | Go | 1249 lines
82 }, 83 "testok": &Target{ 84 desc: "copy pure go testable part of standard library", 84 desc: "copy pure go testable part of standard library", 85 first: testokDoFirst, 86 last: nil, 88 "release": &Target{ 89 desc: "update golang to latest release if necessary", 90 first: releaseDoFirst, 143 by inspecting source-code imports to calculate compile order. 144 Unit-testing, formatting and installation of external 145 libraries are also automated. The default back-end is gc, 302 303// needed for stdlib, testok targets 304var golibs = []string{DefaultLightestClauseHeuristic.html http://aima-java.googlecode.com/svn/trunk/ | HTML | 338 lines
148<CODE> <A HREF="../../../../../../../aima/core/logic/fol/kb/data/Clause.html" title="class in aima.core.logic.fol.kb.data">Clause</A></CODE></FONT></TD> 149<TD><CODE><B><A HREF="../../../../../../../aima/core/logic/fol/inference/otter/defaultimpl/DefaultLightestClauseHeuristic.html#getLightestClause()">getLightestClause</A></B>()</CODE> 150 216<DL> 217<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../aima/core/logic/fol/inference/otter/LightestClauseHeuristic.html#getLightestClause()">LightestClauseHeuristic</A></CODE></B></DD> 218<DD>Get the lightest clause from the SOS 220<DD><DL> 221<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../aima/core/logic/fol/inference/otter/LightestClauseHeuristic.html#getLightestClause()">getLightestClause</A></CODE> in interface <CODE><A HREF="../../../../../../../aima/core/logic/fol/inference/otter/LightestClauseHeuristic.html" title="interface in aima.core.logic.fol.inference.otter">LightestClauseHeuristic</A></CODE></DL> 222</DD> 254<DD><DL> 255<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../aima/core/logic/fol/inference/otter/LightestClauseHeuristic.html#addedClauseToSOS(aima.core.logic.fol.kb.data.Clause)">addedClauseToSOS</A></CODE> in interface <CODE><A HREF="../../../../../../../aima/core/logic/fol/inference/otter/LightestClauseHeuristic.html" title="interface in aima.core.logic.fol.inference.otter">LightestClauseHeuristic</A></CODE></DL> 256</DD> 268<DD><DL> 269<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../aima/core/logic/fol/inference/otter/LightestClauseHeuristic.html#removedClauseFromSOS(aima.core.logic.fol.kb.data.Clause)">removedClauseFromSOS</A></CODE> in interface <CODE><A HREF="../../../../../../../aima/core/logic/fol/inference/otter/LightestClauseHeuristic.html" title="interface in aima.core.logic.fol.inference.otter">LightestClauseHeuristic</A></CODE></DL> 270</DD>QueenAction.html http://aima-java.googlecode.com/svn/trunk/ | HTML | 425 lines
56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 57 <A HREF="../../../../aima/core/environment/nqueens/NQueensGoalTest.html" title="class in aima.core.environment.nqueens"><B>PREV CLASS</B></A> 58 NEXT CLASS</FONT></TD>MinimaxSearch.html http://aima-java.googlecode.com/svn/trunk/ | HTML | 406 lines
115 function MAX-VALUE(state) returns a utility value 116 if TERMINAL-TEST(state) then return UTILITY(state) 117 v = -infinity 122 function MIN-VALUE(state) returns a utility value 123 if TERMINAL-TEST(state) then return UTILITY(state) 124 v = infinityGame.html http://aima-java.googlecode.com/svn/trunk/ | HTML | 359 lines
113 <li>RESULT(s, a): The transition model, which defines the result of a move.</li> 114 <li>TERMINAL-TEST(s): A terminal test, which is true when the game is over 115 and false TERMINAL STATES otherwise. States where the game has ended areAlphaBetaSearch.html http://aima-java.googlecode.com/svn/trunk/ | HTML | 416 lines
116 function MAX-VALUE(state, alpha, beta) returns a utility value 117 if TERMINAL-TEST(state) then return UTILITY(state) 118 v = -infinity 125 function MIN-VALUE(state, alpha, beta) returns a utility value 126 if TERMINAL-TEST(state) then return UTILITY(state) 127 v = infinityGraphSearch.html http://aima-java.googlecode.com/svn/trunk/ | HTML | 447 lines
56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 57 <A HREF="../../../../aima/core/search/framework/GoalTest.html" title="interface in aima.core.search.framework"><B>PREV CLASS</B></A> 58 <A HREF="../../../../aima/core/search/framework/HeuristicFunction.html" title="interface in aima.core.search.framework"><B>NEXT CLASS</B></A></FONT></TD>Util.html http://aima-java.googlecode.com/svn/trunk/ | HTML | 841 lines
170<CODE>static double</CODE></FONT></TD> 171<TD><CODE><B><A HREF="../../../aima/core/util/Util.html#calculateStDev(java.util.List, double)">calculateStDev</A></B>(java.util.List<java.lang.Double> values, 172 double mean)</CODE>DecisionTree.html http://aima-java.googlecode.com/svn/trunk/ | HTML | 433 lines
57 <A HREF="../../../../aima/core/learning/inductive/DecisionList.html" title="class in aima.core.learning.inductive"><B>PREV CLASS</B></A> 58 <A HREF="../../../../aima/core/learning/inductive/DLTest.html" title="class in aima.core.learning.inductive"><B>NEXT CLASS</B></A></FONT></TD> 59<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">DecisionListLearner.html http://aima-java.googlecode.com/svn/trunk/ | HTML | 380 lines
139<TR BGCOLOR="white" CLASS="TableRowColor"> 140<TD><CODE><B><A HREF="../../../../aima/core/learning/learners/DecisionListLearner.html#DecisionListLearner(java.lang.String, java.lang.String, aima.core.learning.inductive.DLTestFactory)">DecisionListLearner</A></B>(java.lang.String positive, 141 java.lang.String negative, 141 java.lang.String negative, 142 <A HREF="../../../../aima/core/learning/inductive/DLTestFactory.html" title="class in aima.core.learning.inductive">DLTestFactory</A> testFactory)</CODE> 143 175<CODE> int[]</CODE></FONT></TD> 176<TD><CODE><B><A HREF="../../../../aima/core/learning/learners/DecisionListLearner.html#test(aima.core.learning.framework.DataSet)">test</A></B>(<A HREF="../../../../aima/core/learning/framework/DataSet.html" title="class in aima.core.learning.framework">DataSet</A> ds)</CODE> 177 235 java.lang.String negative, 236 <A HREF="../../../../aima/core/learning/inductive/DLTestFactory.html" title="class in aima.core.learning.inductive">DLTestFactory</A> testFactory)</PRE> 237<DL> 292<DD><DL> 293<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../aima/core/learning/framework/Learner.html#test(aima.core.learning.framework.DataSet)">test</A></CODE> in interface <CODE><A HREF="../../../../aima/core/learning/framework/Learner.html" title="interface in aima.core.learning.framework">Learner</A></CODE></DL> 294</DD>ClauseTest.java http://aima-java.googlecode.com/svn/trunk/ | Java | 892 lines
1package aima.test.core.unit.logic.fol.kb.data; 2 9import org.junit.Before; 10import org.junit.Test; 11 32 */ 33public class ClauseTest { 34 39 40 @Test 41 public void testImmutable() { 69 70 @Test 71 public void testIsEmpty() { 96 97 @Test 98 public void testIsHornClause() {UnifierTest.java http://aima-java.googlecode.com/svn/trunk/ | Java | 607 lines
1package aima.test.core.unit.logic.fol; 2 9import org.junit.Before; 10import org.junit.Test; 11 27 */ 28public class UnifierTest { 29 40 41 @Test 42 public void testFailureIfThetaisNull() { 49 50 @Test 51 public void testUnificationFailure() { 58 59 @Test 60 public void testThetaPassedBackIfXEqualsYBothVariables() {CommonProbabilityModelTests.java http://aima-java.googlecode.com/svn/trunk/ | Java | 380 lines
1package aima.test.core.unit.probability; 2 18 */ 19public abstract class CommonProbabilityModelTests { 20 public static final double DELTA_THRESHOLD = ProbabilityModel.DEFAULT_ROUNDING_THRESHOLD; 24 // 25 protected void test_RollingPairFairDiceModel(ProbabilityModel model) { 26 Assert.assertTrue(model.isValid()); 66 67 // Test Sets of events defined via constraint propositions 68 IntegerSumProposition total11 = new IntegerSumProposition("Total11", 98 99 // Test a disjunctive proposition pg.489 100 // P(a OR b) = P(a) + P(b) - P(a AND b) 109 110 protected void test_ToothacheCavityCatchModel(ProbabilityModel model) { 111 Assert.assertTrue(model.isValid());FOLOTTERLikeTheoremProver.java http://aima-java.googlecode.com/svn/trunk/ | Java | 615 lines
91 private boolean useParamodulation = true; 92 private LightestClauseHeuristic lightestClauseHeuristic = new DefaultLightestClauseHeuristic(); 93 private ClauseFilter clauseFilter = new DefaultClauseFilter(); 136 public void setLightestClauseHeuristic( 137 LightestClauseHeuristic lightestClauseHeuristic) { 138 this.lightestClauseHeuristic = lightestClauseHeuristic; 387 class IndexedClauses { 388 private LightestClauseHeuristic lightestClauseHeuristic = null; 389 // Group the clauses by their # of literals. 394 395 public IndexedClauses(LightestClauseHeuristic lightestClauseHeuristic, 396 Set<Clause> sos, Set<Clause> usable) { 396 Set<Clause> sos, Set<Clause> usable) { 397 this.lightestClauseHeuristic = lightestClauseHeuristic; 398 for (Clause c : sos) {demo.js http://iwl.googlecode.com/svn/trunk/ | JavaScript | 1528 lines
113 callback1 = function(e) { fired1 = true }, callback2 = function(e) { fired2 = true; }; 114 assertIdentical(test_span, test_span.signalConnect('test:event', callback1)); 115 test_span.signalConnect('test:event', callback2); 115 test_span.signalConnect('test:event', callback2); 116 assertIdentical(test_span, test_span.emitSignal('test:event')); 117 assert(fired1, "Handled callback1"); 125 126 assertIdentical(test_span, test_span.signalDisconnect('test:event', callback1)); 127 test_span.emitSignal('test:event'); 131 fired2 = false; 132 assertIdentical(test_span, test_span.signalDisconnectAll('test:event')); 133 test_span.emitSignal('test:event'); 150 assertIdentical(test_span, test_span.positionAtCenter()); 151 assertEqual(Math.floor((document.viewport.getWidth() - test_span.getWidth()) / 2), parseInt(test_span.getStyle('left'))); 152iconbox.js http://iwl.googlecode.com/svn/trunk/ | JavaScript | 496 lines
40 for (var i = 0; i < this.icons.length; i++) { 41 var testicon = this.icons[i]; 42 if (prevtop && testicon.offsetTop == prevtop) { 42 if (prevtop && testicon.offsetTop == prevtop) { 43 if (testicon.offsetLeft > offsetLeftlb 44 && testicon.offsetLeft < offsetLeftub) { 44 && testicon.offsetLeft < offsetLeftub) { 45 var newicon = testicon; 46 return newicon;utf8tests.h http://ollie.googlecode.com/svn/trunk/ | C Header | 1032 lines
20 21#include "cxxtest/TestSuite.h" 22#include <utf8.h> 32// -------------------------------- 33class Utf8Tests : public CxxTest::TestSuite 34{ 144 // -------------------------------- 145 void testmCreatePage( void ) { 146 Utf8Block block; 324 // -------------------------------- 325 void testCreateFileForTests( void ) { 326 329 if( ( ! ioFile.is_open() ) || ( ! ioFile.good() ) ) { 330 TS_FAIL( "Unable to create test file '" TEST_FILE "'"); 331 }StatementsTest.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 626 lines
27 */ 28package testsuite.simple.jdbc4; 29 40 41import testsuite.BaseTestCase; 42 42 43public class StatementsTest extends BaseTestCase { 44 44 45 public StatementsTest(String name) { 46 super(name); 50 /** 51 * Tests for ResultSet.getNCharacterStream() 52 *MetadataTest.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 831 lines
41 42import testsuite.BaseTestCase; 43 51 */ 52public class MetadataTest extends BaseTestCase { 53 // ~ Constructors 69 /** 70 * Runs all test cases in this test suite 71 * 74 public static void main(String[] args) { 75 junit.textui.TestRunner.run(MetadataTest.class); 76 } 294 this.stmt 295 .executeUpdate("CREATE VIEW vTestViewMetaData AS SELECT field1 FROM testViewMetaData"); 296CallableStatementTest.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 585 lines
38 39import testsuite.BaseTestCase; 40 50 */ 51public class CallableStatementTest extends BaseTestCase { 52 /** 201 assertTrue("Named and indexed parameter are not the same", 202 indexedOutParamToTest == namedOutParamToTest); 203 assertTrue("Output value not returned correctly", 216 assertTrue("Named and indexed parameter are not the same", 217 indexedOutParamToTest == namedOutParamToTest); 218 assertTrue("Output value not returned correctly", 524 /** 525 * Runs all test cases in this test suite 526 *MicroPerformanceRegressionTest.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 521 lines
36 37import testsuite.BaseTestCase; 38 47 */ 48public class MicroPerformanceRegressionTest extends BaseTestCase { 49 103 /** 104 * Runs all test cases in this test suite 105 * 108 public static void main(String[] args) { 109 junit.textui.TestRunner.run(MicroPerformanceRegressionTest.class); 110 } 267 PreparedStatement pStmt = this.conn 268 .prepareStatement("INSERT INTO test.marktest VALUES (?, ?, ?, ?, ?)"); 269 pStmt.close();DataSourceRegressionTest.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 517 lines
53 54import testsuite.BaseTestCase; 55import testsuite.simple.DataSourceTest; 72 */ 73public class DataSourceRegressionTest extends BaseTestCase { 74 89 /** 90 * Creates a new DataSourceRegressionTest suite for the given test name 91 * 99 /** 100 * Runs all test cases in this test suite 101 * 104 public static void main(String[] args) { 105 junit.textui.TestRunner.run(DataSourceTest.class); 106 }StatementRegressionTest.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 6566 lines
73 74import testsuite.BaseTestCase; 75import testsuite.UnreliableSocketFactory; 94 */ 95public class StatementRegressionTest extends BaseTestCase { 96 class PrepareThread extends Thread { 107 this.c.prepareStatement("SELECT 1"); 108 StatementRegressionTest.this.testServerPrepStmtDeadlockCounter++; 109 Thread.sleep(400); 454 this.conn.prepareStatement( 455 "SELECT \"Test question mark? Test single quote'\"") 456 .executeQuery().close(); 527 for (int i = 0; i < bytesToTest.length; i++) { 528 assertEquals(bytesToTest[i], fromDatabase[i]); 529 }MetaDataRegressionTest.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 2626 lines
27 */ 28package testsuite.regression; 29 46 47import testsuite.BaseTestCase; 48 59 */ 60public class MetaDataRegressionTest extends BaseTestCase { 61 /** 71 /** 72 * Runs all test cases in this test suite 73 * 76 public static void main(String[] args) { 77 junit.textui.TestRunner.run(MetaDataRegressionTest.class); 78 }CallableStatementRegressionTest.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 1778 lines
27 */ 28package testsuite.regression; 29 42 43import testsuite.BaseTestCase; 44 54 */ 55public class CallableStatementRegressionTest extends BaseTestCase { 56 public CallableStatementRegressionTest(String name) { 60 /** 61 * Runs all test cases in this test suite 62 * 66 public static void main(String[] args) { 67 junit.textui.TestRunner.run(CallableStatementRegressionTest.class); 68 }ConnectionRegressionTest.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 2838 lines
24 */ 25package testsuite.regression; 26 58 59import testsuite.BaseTestCase; 60import testsuite.UnreliableSocketFactory; 86 */ 87public class ConnectionRegressionTest extends BaseTestCase { 88 /** 98 /** 99 * Runs all test cases in this test suite 100 * 103 public static void main(String[] args) { 104 junit.textui.TestRunner.run(ConnectionRegressionTest.class); 105 }BaseTestCase.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 976 lines
66 */ 67public abstract class BaseTestCase extends TestCase { 68 private final static String ADMIN_CONNECTION_PROPERTY_NAME = "com.mysql.jdbc.testsuite.admin-url"; 69 70 private final static String NO_MULTI_HOST_PROPERTY_NAME = "com.mysql.jdbc.testsuite.no-multi-hosts-tests"; 71 121 122 String newDbUrl = System.getProperty("com.mysql.jdbc.testsuite.url"); 123 461 protected final boolean runLongTests() { 462 return runTestIfSysPropDefined("com.mysql.jdbc.testsuite.runLongTests"); 463 } 484 /** 485 * Creates resources used by all tests. 486 *ConnectionWrapper.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 2725 lines
513 * 514 * @see java.sql.Connection#createStatement() 515 */ 515 */ 516 public java.sql.Statement createStatement() throws SQLException { 517 checkClosed(); 520 return StatementWrapper.getInstance(this, this.pooledConnection, this.mc 521 .createStatement()); 522 } catch (SQLException sqlException) { 532 * 533 * @see java.sql.Connection#createStatement() 534 */ 534 */ 535 public java.sql.Statement createStatement(int resultSetType, 536 int resultSetConcurrency) throws SQLException {LoadBalancedMySQLConnection.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 2486 lines
123 124 public Statement createStatement() throws SQLException { 125 return getActiveMySQLConnection().createStatement(); 127 128 public Statement createStatement(int resultSetType, 129 int resultSetConcurrency, int resultSetHoldability) 130 throws SQLException { 131 return getActiveMySQLConnection().createStatement(resultSetType, 132 resultSetConcurrency, resultSetHoldability); 134 135 public Statement createStatement(int resultSetType, int resultSetConcurrency) 136 throws SQLException { 136 throws SQLException { 137 return getActiveMySQLConnection().createStatement(resultSetType, 138 resultSetConcurrency);ConnectionPropertiesImpl.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 4589 lines
101 if (extractedValue != null) { 102 validateStringValues(extractedValue); 103 264 265 void validateStringValues(String valueToValidate) throws SQLException { 266 String[] validateAgainst = getAllowableValues();StatementImpl.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 2783 lines
106 cancelConn = connection.duplicate(); 107 cancelStmt = cancelConn.createStatement(); 108 cancelStmt.execute("KILL QUERY " + connectionId); 323 324 if (this.connection.getAutoGenerateTestcaseScript() || profiling) { 325 this.statementId = statementCounter++; 376 cancelConn = this.connection.duplicate(); 377 cancelStmt = cancelConn.createStatement(); 378 cancelStmt.execute("KILL QUERY "BlobFromLocator.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 710 lines
86 this.quotedId = this.creatorResultSet.connection.getMetaData() 87 .getIdentifierQuoteString(); 88 198 199 byte[] bytesToWrite = new byte[length]; 200 System.arraycopy(bytes, offset, bytesToWrite, 0, length); 228 229 pStmt.setBytes(1, bytesToWrite); 230EscapeProcessor.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 780 lines
245 String day2 = st.nextToken(); 246 String dateString = "'" + year4 + "-" + month2 247 + "-" + day2 + "'"; 247 + "-" + day2 + "'"; 248 newSql.append(dateString); 249 } catch (java.util.NoSuchElementException e) {StringUtils.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 1700 lines
220 */ 221 public static byte[] escapeEasternUnicodeByteStream(byte[] origBytes, 222 String origString, int offset, int length) { 416 if (!encoding.equalsIgnoreCase(serverEncoding)) { 417 b = escapeEasternUnicodeByteStream(b, s, 0, s.length()); 418 } 460 if (!encoding.equalsIgnoreCase(serverEncoding)) { 461 b = escapeEasternUnicodeByteStream(b, s, offset, length); 462 } 535 if (!encoding.equalsIgnoreCase(serverEncoding)) { 536 b = escapeEasternUnicodeByteStream(b, s, 0, s.length()); 537 }ConnectionProperties.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 1672 lines
74 75 public abstract boolean getAutoGenerateTestcaseScript(); 76 671 672 public abstract void setAutoGenerateTestcaseScript(boolean flag); 673ReplicationConnection.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 2530 lines
145 * 146 * @see java.sql.Connection#createStatement() 147 */ 147 */ 148 public Statement createStatement() throws SQLException { 149 Statement stmt = this.currentConnection.createStatement(); 157 * 158 * @see java.sql.Connection#createStatement(int, int) 159 */ 159 */ 160 public synchronized Statement createStatement(int resultSetType, 161 int resultSetConcurrency) throws SQLException { 161 int resultSetConcurrency) throws SQLException { 162 Statement stmt = this.currentConnection.createStatement(resultSetType, 163 resultSetConcurrency);JDBC4MysqlSQLXML.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 840 lines
162 * unicode may be present, the encoding of the String is unicode. The 163 * behavior of this method is the same as ResultSet.updateString() when the 164 * designated column of the ResultSet has a type java.sql.Types of SQLXML.ServerPreparedStatement.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 2987 lines
467 468 protected String asSql(boolean quoteStreamsAndUnknowns) throws SQLException { 469PreparedStatement.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 5680 lines
227 228 String quotedIdentifierString = dbmd.getIdentifierQuoteString(); 229 479 String quoteCharStr = connection.getMetaData() 480 .getIdentifierQuoteString(); 481Buffer.java http://cubbers-eqemu-utils.googlecode.com/svn/trunk/ | Java | 675 lines
80 final String dumpClampedBytes(int numBytes) { 81 int numBytesToDump = numBytes < MAX_BYTES_TO_DUMP ? numBytes 82 : MAX_BYTES_TO_DUMP; 84 String dumped = StringUtils.dumpAsHex(getBytes(0, 85 numBytesToDump > getBufLength() ? getBufLength() 86 : numBytesToDump), 86 : numBytesToDump), 87 numBytesToDump > getBufLength() ? getBufLength() 88 : numBytesToDump); 89 90 if (numBytesToDump < numBytes) { 91 return dumped + " ....(packet exceeds max. dump length)";CPlayerBehaviour.cpp http://creathemup.googlecode.com/svn/trunk/ | C++ | 605 lines
434 435 //we test the keys in order to know what shot create 436 if ( keys[SDLK_SPACE] && ( (Uint32)(m_lLastPrimaryShoot + m_iTimeBetweenPrimaryShot) < SDL_GetTicks() ) )CLevelRenderer.cpp http://creathemup.googlecode.com/svn/trunk/ | C++ | 1167 lines
115 fFile = fopen(_szLevelDir, "r"); 116 //test on the opening 117 assert ( fFile != NULL ); 440 441 //test on the opening 442 assert ( fFile != NULL ); 466 467 //test on the opening 468 assert ( fFile != NULL );DeflaterEngine.cs http://tsanie-shellextension.googlecode.com/svn/trunk/ | C# | 870 lines
49 /// </summary> 50 public enum DeflateStrategy 51 { 142 case DEFLATE_STORED: 143 progress = DeflateStored(canFlush, finish); 144 break; 298 /// <summary> 299 /// Get/set the <see cref="DeflateStrategy">deflate strategy</see> 300 /// </summary> 300 /// </summary> 301 public DeflateStrategy Strategy { 302 get {Deflater.cs http://tsanie-shellextension.googlecode.com/svn/trunk/ | C# | 558 lines
100 /// <summary> 101 /// The worst but fastest compression level. 102 /// </summary> 181 this.noZlibHeaderOrFooter = noZlibHeaderOrFooter; 182 SetStrategy(DeflateStrategy.Default); 183 SetLevel(level); 357 /// </param> 358 public void SetStrategy(DeflateStrategy strategy) 359 {ZipInputStream.cs http://tsanie-shellextension.googlecode.com/svn/trunk/ | C# | 688 lines
165 // -jr- 07-Dec-2003 Ignore spanning temporary signatures if found 166 // Spanning signature is same as descriptor signature and is untested as yet. 167 if ((header == ZipConstants.SpanningTempSignature) || (header == ZipConstants.SpanningSignature)) 302 /// </summary> 303 /// <param name="testCrc">True if the crc value should be tested</param> 304 void CompleteCloseEntry(bool testCrc) 314 315 if (testCrc && 316 ((crc.Value & 0xFFFFFFFFL) != entry.Crc) && (entry.Crc != -1))ZipConstants.cs http://tsanie-shellextension.googlecode.com/svn/trunk/ | C# | 625 lines
53 /// <summary> 54 /// Determines how entries are tested to see if they should use Zip64 extensions or not. 55 /// </summary>ZipExtraData.cs http://tsanie-shellextension.googlecode.com/svn/trunk/ | C# | 985 lines
255 /// <summary> 256 /// Test a <see cref="DateTime"> value to see if is valid and can be represented here.</see> 257 /// </summary> 257 /// </summary> 258 /// <param name="value">The <see cref="DateTime">value</see> to test.</param> 259 /// <returns>Returns true if the value is valid and can be represented; false if not.</returns> 417 /// <summary> 418 /// Test a <see cref="DateTime"> valuie to see if is valid and can be represented here.</see> 419 /// </summary> 419 /// </summary> 420 /// <param name="value">The <see cref="DateTime">value</see> to test.</param> 421 /// <returns>Returns true if the value is valid and can be represented; false if not.</returns>Definitions.cs http://tsanie-shellextension.googlecode.com/svn/trunk/ | C# | 934 lines
400 401 long GetDateStamp(); 402cc-mode.el http://inkedmn.googlecode.com/svn/trunk/ | Emacs Lisp | 1307 lines
39;; Objective-C, Java, CORBA's IDL, Pike and AWK code. As of the 40;; latest Emacs and XEmacs releases, it is the default package for 41;; editing these languages. This package is called "CC Mode", and 61 62;; Many, many thanks go out to all the folks on the beta test list. 63;; Without their patience, testing, insight, code contributions, and 65 66;; You can get the latest version of CC Mode, including PostScript 67;; documentation and separate individual files from:psvn.el http://inkedmn.googlecode.com/svn/trunk/ | Emacs Lisp | 4225 lines
23 24;; psvn.el is tested with GNU Emacs 21.3 on windows, debian linux, 25;; freebsd5, red hat el3 with svn 1.2.3 116 117;; The latest version of psvn.el can be found at: 118;; http://www.xsteve.at/prg/emacs/psvn.elMapform.pas http://naftometrou.googlecode.com/svn/trunk/ | Pascal | 524 lines
343 outputer.hurktfu; 344 outputer.sri2('scb=newtest.naftoscb'); 345 outputer.hurktfu;ldapsend.pas http://delphistompclient.googlecode.com/svn/trunk/ | Pascal | 1190 lines
350 else 351 s :=UnquoteStr(s, '"'); 352 inherited Put(Index, s);blcksock.pas http://delphistompclient.googlecode.com/svn/trunk/ | Pascal | 4170 lines
325 procedure SetBandwidth(Value: Integer); 326 function TestStopFlag: Boolean; 327 procedure InternalSendStream(const Stream: TStream; WithSize, Indy: boolean); virtual;StompClient.pas http://delphistompclient.googlecode.com/svn/trunk/ | Pascal | 603 lines
1// Stomp Client for Embarcadero Delphi & FreePascal 2// Tested With ApacheMQ 5.2/5.3, Apache Apollo 1.2 3// Copyright (c) 2009-2012 Daniele Tetiyoko-old.tex https://code.google.com/p/yoko/ | LaTeX | 1533 lines
22support from compilers and generative programming. The \ig\ Haskell library, 23for example, generically defines a function testing for equality, a function 24for printing, and an ``empty'' value, all of which can be instantiated for most 301 302We generically define an equality test and the generation of a minimal 303value. For equality, we reuse the ^Eq^ class as the generic class.Template_Tesadsf.htm http://mootoolstools.googlecode.com/svn/trunk/ | HTML | 532 lines
218 <td class="row1" align="left" width="95%"><a href="#"> 219 <img src="Test/logo.gif" border="0" width="88" height="31"></a> 220 <a href="#"> 220 <a href="#"> 221 <img src="Test/chinap2plogo.gif" border="0" width="88" height="31"></a> 222 <a href="#"> 222 <a href="#"> 223 <img src="Test/freeipblogo.gif" border="0" width="88" height="31"> 224 <img src="Test/justdnlogo.gif" border="0" width="88" height="31"> 224 <img src="Test/justdnlogo.gif" border="0" width="88" height="31"> 225 <img src="Test/ld60.jpg" border="0" width="88" height="31"> 226 <img src="Test/jinmi.gif" border="0" width="88" height="31"></a><br>webrowse.htm http://mootoolstools.googlecode.com/svn/trunk/ | HTML | 8938 lines
34 <w:WordDocument> 35 <w:UpdateStylesOnOpen/> 36 <w:DoNotHyphenateCaps/>se10.m http://ssparse.googlecode.com/svn/trunk/ | Objective C | 487 lines
3% examples: 4% se10; % tests the code 5% se10('freq_off',-52:2:100,'dataset','fourtube_se'); 36 disp(parameter_values) 37else % if the code is called without parameters then execute test case 38 disp('running sanity check.') 38 disp('running sanity check.') 39 parameter_name='test'; 40 parameter_values='0';ParseGUI.m http://ssparse.googlecode.com/svn/trunk/ | Objective C | 684 lines
353 354fprintf(fileIOvar, ['Time: ' datestr(now) '\n\nOff Resonance (offr): ' current_offr '\nFID Scaling(ffac): ' current_ffac '\nwfr:'... 355 current_wfr '; wfi: ' current_wfi '\n\nQuadratic Terms:\nX^2: ' current_x_sq '\nY^2: ' current_y_sq '\nX: ' current_x_term ...index.html https://code.google.com/p/dat-gui/ | HTML | 1420 lines
33 34 test("rgb_to_hex", function() { 35 42 43 test("component_from_hex", function() { 44 64 65 test("hex_with_component", function() { 66 86 87 test("rgb_to_hsv", function() { 88 114 115 test("hsv_to_rgb", function() { 116AnagraficaDocumentiEdit.py http://promogest.googlecode.com/svn/trunk/ | Python | 2083 lines
34 35from promogest.dao.TestataDocumento import TestataDocumento 36from promogest.dao.TestataMovimento import TestataMovimento 38from promogest.dao.ScontoRigaDocumento import ScontoRigaDocumento 39from promogest.dao.ScontoTestataDocumento import ScontoTestataDocumento 40from promogest.dao.ScontoVenditaDettaglio import ScontoVenditaDettaglio 49#from promogest.dao.RigaRitenutaAcconto import RigaRitenutaAcconto 50from promogest.modules.PrimaNota.dao.TestataPrimaNota import TestataPrimaNota 51from promogest.ui.DettaglioGiacenzaWindow import DettaglioGiacenzaWindow 94 self._segno = None 95 # pagamento preferenziale dell'intestatario 96 self._id_pagamento = None 96 self._id_pagamento = None 97 # magazzino preferenziale dell'intestatario 98 self._id_magazzino = NoneAnagraficaDocumentiEditUtils.py http://promogest.googlecode.com/svn/trunk/ | Python | 716 lines
33from promogest.dao.Fornitura import Fornitura 34from promogest.dao.TestataMovimento import TestataMovimento 35 165 anaedit.porto_combobox.set_sensitive(False) 166 fillComboboxNotePiePaginaTestataDocumento(anaedit.note_pie_pagina_comboboxentry) 167 """ modello righe: magazzino, codice articolo, 215 anaedit.on_sconti_widget_button_toggled) 216 anaedit.sconti_testata_widget.button.connect('toggled', 217 anaedit.on_sconti_testata_widget_button_toggled) 225 """ calcola i totali documento """ 226 # FIXME: duplicated in TestataDocumenti.py 227 totaleImponibile = Decimal(0) 309 totaleScontato = totaleNonScontato 310 scontiSuTotale = anaedit.sconti_testata_widget.getSconti() 311 applicazioneSconti = anaedit.sconti_testata_widget.getApplicazione()AnagraficaComplessa.py http://promogest.googlecode.com/svn/trunk/ | Python | 791 lines
297 self.record_edit_menu.set_sensitive(self.dao is not None) 298 if self.dao.__class__.__name__ in ["TestataDocumento", "Articolo", "TestataMovimento", "Listino"]: 299 self.duplica_button.set_sensitive(self.dao is not None) 335 self.record_edit_menu.set_sensitive(self.dao is not None) 336 if self.dao.__class__.__name__ in ["TestataDocumento", "Articolo", "TestataMovimento", "Listino"]: 337 self.duplica_button.set_sensitive(self.dao is not None)Main.py http://promogest.googlecode.com/svn/trunk/ | Python | 1003 lines
68if posso("GN"): 69 from promogest.modules.GestioneNoleggio.dao.TestataGestioneNoleggio \ 70 import TestataGestioneNoleggio 119# self.whatcant_button.destroy() 120 self.test_promowear_button.destroy() 121 self.test_promoshop_button.destroy() 246 elif selection == 10: #gestione commessa 247# messageInfo(msg="""RICORDIAMO CHE QUESTO MODULO E' ANCORA IN FASE DI TEST """) 248# if posso("GC"):DuplicazioneDocumento.py http://promogest.googlecode.com/svn/trunk/ | Python | 332 lines
25from promogest import Environment 26from promogest.dao.TestataDocumento import TestataDocumento 27from promogest.dao.Magazzino import Magazzino 31from promogest.dao.ScontoRigaDocumento import ScontoRigaDocumento 32from promogest.dao.ScontoTestataDocumento import ScontoTestataDocumento 33from promogest.dao.Operazione import Operazione 37 import promogest.modules.Pagamenti.dao.TestataDocumentoScadenza 38 from promogest.modules.Pagamenti.dao.TestataDocumentoScadenza import TestataDocumentoScadenza 39from promogest.ui.utils import * 294 from promogest.modules.GestioneNoleggio.dao.TestataGestioneNoleggio import TestataGestioneNoleggio 295 newTestataGestioneNoleggio = TestataGestioneNoleggio() 296 newTestataGestioneNoleggio.data_inizio_noleggio = self.dao.data_inizio_noleggio 297 newTestataGestioneNoleggio.data_fine_noleggio = self.dao.data_fine_noleggio 298 newTestataGestioneNoleggio.id_testata_documento = newDao.id 299 newTestataGestioneNoleggio.persist()AnagraficaMovimentiEdit.py http://promogest.googlecode.com/svn/trunk/ | Python | 1316 lines
27from promogest import Environment 28from promogest.dao.TestataMovimento import TestataMovimento 29from promogest.dao.TestataDocumento import TestataDocumentoAnagraficaCommesseEdit.py http://promogest.googlecode.com/svn/trunk/ | Python | 405 lines
25from promogest.ui.AnagraficaComplessaEdit import AnagraficaEdit 26from promogest.modules.GestioneCommesse.dao.TestataCommessa import TestataCommessa 27from promogest.modules.GestioneCommesse.dao.RigaCommessa import RigaCommessa 33from promogest.dao.Promemoria import Promemoria 34from promogest.dao.TestataDocumento import TestataDocumento 35from promogest.ui.utils import * 65 self.tipiDict = {"":None, 66 "DOCUMENTO":"TestataDocumento", 67 "PROMEMORIA":"Promemoria", 85 info = "" 86 elif dao.__class__.__name__ == "TestataDocumento": 87 info = "<b>%s</b> - <b>del</b> %s <b>N°</b> %s - <b>Da/A</b> %s - <b>TOT: â‚?</b> %s" %(str(dao.operazione), 89 str(dao.numero), 90 dao.intestatario, 91 str(mN(dao._totaleScontato,2)))ProductFromCSV.py http://promogest.googlecode.com/svn/trunk/ | Python | 508 lines
164 codice = self.articoloPadre.codice + self.gruppo_taglia[0:3] + self.taglia + self.colore 165 test = Articolo().select(codiceEM= codice) 166 if test: 166 if test: 167 self.daoArticolo = test[0] 168 self.addTagliaColoreData(tipo = self.tipoArticolo,GestioneInventario.py http://promogest.googlecode.com/svn/trunk/ | Python | 1124 lines
31from promogest.dao.Inventario import Inventario 32from promogest.dao.TestataMovimento import TestataMovimento 33from promogest.dao.RigaMovimento import RigaMovimentoAnagraficaSchedeOrdinazioniEdit.py http://promogest.googlecode.com/svn/trunk/ | Python | 1145 lines
55from promogest.modules.SchedaLavorazione.dao.PromemoriaSchedaOrdinazione import PromemoriaSchedaOrdinazione 56from promogest.dao.TestataDocumento import TestataDocumento 57from promogest.ui.GladeWidget import GladeWidgetstampalux_app.sql http://promogest.googlecode.com/svn/trunk/ | SQL | 665 lines
145 DECLARE 146 -- Parametri contesto 147 _schema ALIAS FOR $1; 237 DECLARE 238 -- Parametri contesto 239 _schema ALIAS FOR $1; 272 DECLARE 273 -- Parametri contesto 274 _schema ALIAS FOR $1; 314 DECLARE 315 -- Parametri contesto 316 _schema ALIAS FOR $1;associazione_articolo_app.sql http://promogest.googlecode.com/svn/trunk/ | SQL | 468 lines
82 DECLARE 83 -- Parametri contesto 84 _schema ALIAS FOR $1; 119 DECLARE 120 -- Parametri contesto 121 _schema ALIAS FOR $1; 154 DECLARE 155 -- Parametri contesto 156 _schema ALIAS FOR $1; 188 DECLARE 189 -- Parametri contesto 190 _schema ALIAS FOR $1; 331 DECLARE 332 -- Parametri contesto 333 _schema ALIAS FOR $1;GestioneScontrini.py http://promogest.googlecode.com/svn/trunk/ | Python | 516 lines
28from promogest.ui.GladeWidget import GladeWidget 29from promogest.modules.VenditaDettaglio.dao.TestataScontrino import TestataScontrino 30from promogest.modules.VenditaDettaglio.dao.RigaScontrino import RigaScontrino 32from promogest.modules.VenditaDettaglio.ui.Distinta import Distinta 33from promogest.modules.VenditaDettaglio.dao.TestataScontrinoCliente import TestataScontrinoCliente 34from promogest.ui.widgets.FilterWidget import FilterWidget 37from promogest.dao.Articolo import Articolo 38from promogest.dao.TestataDocumento import TestataDocumento 39from promogest.dao.RigaDocumento import RigaDocumento 122 if column.get_name() == "data_column": 123 return self.filterss._changeOrderBy(column,(None,TestataScontrino.data_inserimento)) 124 if column.get_name() == "totale_column": 124 if column.get_name() == "totale_column": 125 return self.filterss._changeOrderBy(column,(None,TestataScontrino.totale_scontrino)) 126 if column.get_name() == "contanti_column":AnagraficaVenditaDettaglio.py http://promogest.googlecode.com/svn/trunk/ | Python | 1168 lines
27from promogest.ui.GladeWidget import GladeWidget 28from promogest.modules.VenditaDettaglio.dao.TestataScontrino import TestataScontrino 29from promogest.modules.VenditaDettaglio.dao.RigaScontrino import RigaScontrino 30from promogest.modules.VenditaDettaglio.dao.ScontoRigaScontrino import ScontoRigaScontrino 31from promogest.modules.VenditaDettaglio.dao.ScontoTestataScontrino import ScontoTestataScontrino 32from promogest.modules.VenditaDettaglio.dao.TestataScontrinoCliente import TestataScontrinoCliente 172 self.altre_opzioni_dialog.hide() 173 testo = "OPERATORE: <b>%s</b> -- MAGAZZINO/P.VENDITA: <b>%s</b> -- PUNTO CASSA: <b>%s</b>" %(Environment.params["usernameLoggedList"][1], strMagazzino, strPuntoCassa) 174 self.info_label.set_markup(testo)AnagraficaVenditaDettaglio.py http://promogest.googlecode.com/svn/trunk/ | Python | 1346 lines
31from promogest.ui.GladeWidget import GladeWidget 32from promogest.dao.TestataMovimento import TestataMovimento 33from promogest.dao.RigaMovimento import RigaMovimento 34from promogest.dao.ScontoRigaMovimento import ScontoRigaMovimento 35from promogest.modules.VenditaDettaglio.dao.TestataScontrino import TestataScontrino 36from promogest.modules.VenditaDettaglio.dao.RigaScontrino import RigaScontrinoPagamentiUtils.py http://promogest.googlecode.com/svn/trunk/ | Python | 642 lines
24from promogest.dao.Pagamento import Pagamento 25from promogest.dao.TestataDocumento import TestataDocumento 26from promogest.modules.Pagamenti.dao.TestataDocumentoScadenza import TestataDocumentoScadenza 219 220 result = TestataDocumento().select(daNumero=numerodocumento, 221 aNumero=numerodocumento, 249 return False 250 daoTestata = TestataDocumento().getRecord(id=documento[0].id) 251 tipo_documento = daoTestata.operazione 251 tipo_documento = daoTestata.operazione 252 totale_pagato = daoTestata.totale_pagato 253 totale_sospeso = daoTestata.totale_sospeso 253 totale_sospeso = daoTestata.totale_sospeso 254 numero_documento = daoTestata.numero 255 data_documento = daoTestata.data_documentotestata_documento_app.sql http://promogest.googlecode.com/svn/trunk/ | SQL | 604 lines
125 126 SELECT INTO _ret * FROM promogest.ObjectDel(_schema, _idutente, \'testata_documento_scadenza\', _id, \'id_testata_documento\'); 127 139DROP FUNCTION promogest.TestataDocumentoGet(varchar, bigint, bigint) CASCADE; 140DROP FUNCTION promogest.testatadocumentosel("varchar", int8, "varchar", int4, int4, int4, int4, date, date, "varchar", "varchar", int8, int8, int8, int8, int8, int8, int8); 141DROP FUNCTION promogest.TestataDocumentoSel(varchar, bigint, varchar, integer, integer, integer, integer, date, date, varchar, varchar, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint) CASCADE; 141DROP FUNCTION promogest.TestataDocumentoSel(varchar, bigint, varchar, integer, integer, integer, integer, date, date, varchar, varchar, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint) CASCADE; 142DROP FUNCTION promogest.testatadocumentoselcount("varchar", int8, "varchar", int4, int4, int4, int4, date, date, "varchar", "varchar", int8, int8, int8, int8, int8, int8, int8); 143DROP FUNCTION promogest.TestataDocumentoSelCount(varchar, bigint, varchar, integer, integer, integer, integer, date, date, varchar, varchar, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint) CASCADE; 258 259CREATE OR REPLACE FUNCTION promogest.TestataDocumentoGet(varchar, bigint, bigint) RETURNS SETOF promogest.testata_documento_type AS E' 260 DECLARE 291 292CREATE OR REPLACE FUNCTION promogest.TestataDocumentoSel(varchar, bigint, varchar, integer, integer, integer, integer, date, date, varchar, varchar, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint) RETURNS SETOF promogest.testata_documento_sel_type AS E' 293 DECLAREAnagraficaArticoliPromoWearExpand.py http://promogest.googlecode.com/svn/trunk/ | Python | 345 lines
180 varianti = str(len(dao.articoliTagliaColore)) 181 testo= """ARTICOLO PRINCIPALE CON %s VARIANTI""" %varianti 182 gtkgui.memo_wear.set_text(testo)plus003.py http://promogest.googlecode.com/svn/trunk/ | Python | 676 lines
239 filter = gtk.FileFilter() 240 filter.set_name("Testo") 241 filter.add_mime_type("text/plain") 265 return False 266 # controllo se e` stato inserito del testo 267 if self.plain_textview.get_buffer().get_char_count() == 0: 271 GTK_DIALOG_MESSAGE_WARNING, GTK_BUTTONS_OK) 272 dialog.set_markup("<b>ATTENZIONE: </b>Inserire il testo del messaggio") 273 response = dialog.run()StatisticaGenerale.py http://promogest.googlecode.com/svn/trunk/ | Python | 382 lines
27from promogest import Environment 28from promogest.dao.TestataMovimento import TestataMovimento 29from promogest.dao.RigaMovimento import RigaMovimento 272 righeArticoloMovimentate= Environment.params["session"]\ 273 .query(RigaMovimento, TestataMovimento)\ 274 .filter(TestataMovimento.data_movimento.between(daData, aData))\ 275 .filter(TestataMovimento.id_cliente.in_(idsCliente))\ 276 .filter(RigaMovimento.id_testata_movimento == TestataMovimento.id)\ 277 .filter(Riga.id_magazzino.in_(self.magazzinoId))\ 290 rigaArticoloMovimentata= Environment.params["session"]\ 291 .query(RigaMovimento, TestataMovimento)\ 292 .filter(TestataMovimento.data_movimento.between(daData+relativedelta(months=-4), aData))\ 294 .filter(TestataMovimento.id_fornitore != None)\ 295 .filter(RigaMovimento.id_testata_movimento == TestataMovimento.id)\ 296 .filter(Riga.id_magazzino.in_(self.magazzinoId))\iban.py http://promogest.googlecode.com/svn/trunk/ | Python | 620 lines
62 iban -e prints an example for each country 63 iban -t prints some test data 64 330 331def print_test_data(*data): 332 """Print a table with iban test data.""" 343 print "IBAN-Examples:" 344 print_test_data(("AD", "00012030", "200359100100", "12"), 345 ("AT", "19043", "00234573201", "61"),DaoUtils.py http://promogest.googlecode.com/svn/trunk/ | Python | 427 lines
38 """ 39 from promogest.dao.TestataMovimento import TestataMovimento 40 from promogest.dao.RigaMovimento import RigaMovimento 53 .filter(TestataMovimento.data_movimento.between(datetime.date(int(year), 1, 1), datetime.date(int(year) + 1, 1, 1)))\ 54 .filter(RigaMovimento.id_testata_movimento == TestataMovimento.id)\ 55 .filter(Riga.id_articolo==idArticolo)\ 232 """ 233 from promogest.dao.TestataDocumento import TestataDocumento 234 documentiFornitore = TestataDocumento().select(idFornitore=id_fornitore, 309 """ 310 from promogest.dao.ScontoTestataDocumento import ScontoTestataDocumento 311 row = ScontoTestataDocumento().select(idScontoTestataDocumento= id, 358 from promogest.modules.Pagamenti.dao.TestataDocumentoScadenza import TestataDocumentoScadenza 359 row = TestataDocumentoScadenza().select(idTestataDocumentoScadenza= id, 360 offset = None,TestataDocumento.py http://promogest.googlecode.com/svn/trunk/ | Python | 1097 lines
45from promogest.modules.PrimaNota.dao.RigaPrimaNota import RigaPrimaNota 46from promogest.modules.PrimaNota.dao.RigaPrimaNotaTestataDocumentoScadenza import RigaPrimaNotaTestataDocumentoScadenza 47from ScontoRigaMovimento import ScontoRigaMovimento 47from ScontoRigaMovimento import ScontoRigaMovimento 48from promogest.modules.Pagamenti.dao.TestataDocumentoScadenza import TestataDocumentoScadenza 49from promogest.dao.InformazioniFatturazioneDocumento import InformazioniFatturazioneDocumento 127 .join(RigaMovimento.testata_movimento)\ 128 .filter(RigaMovimento.id_testata_movimento==select([TestataMovimento.id], \ 129 TestataMovimento.id_testata_documento==self.id)).all() 131 self.rollback() 132 test = TestataMovimento().select(idTestataDocumento = self.id) 133 if len(test) >1: 195 if not self.__scontiTestataDocumento and self.id: 196 self.__dbScontiTestataDocumento = ScontoTestataDocumento().select(join = ScontoTestataDocumento.TD, 197 idScontoTestataDocumento=self.id,TestataMovimento.py http://promogest.googlecode.com/svn/trunk/ | Python | 320 lines
133 elif k == 'idMagazzino': 134 dic = {k:testata_mov.c.id.in_(select([RigaMovimento.id_testata_movimento],and_(Riga.id==RigaMovimento.id,Riga.id_magazzino== v)))} 135 elif k == 'idMagazzinoList': 147 elif k == 'id_testata_documento': 148 dic = {k:testata_mov.c.id_testata_documento ==v} 149 elif k == 'idTestataDocumento': 149 elif k == 'idTestataDocumento': 150 dic = {k:testata_mov.c.id_testata_documento ==v} 151 elif k == 'idArticolo': 151 elif k == 'idArticolo': 152 dic = {k:and_(RigaMovimento.id_testata_movimento == TestataMovimento.id, 153 Riga.id==RigaMovimento.id, 302#riga=Table('riga',params['metadata'],schema = params['schema'],autoload=True) 303testata_mov=Table('testata_movimento', params['metadata'],schema = params['schema'],autoload=True) 304clie = Table('cliente',params['metadata'],schema = params['schema'],autoload=True)Environment.py http://promogest.googlecode.com/svn/trunk/ | Python | 644 lines
131 132fromHtmlLits = ["Promemoria", "TestataPrimaNota","Articolo", "Cliente", 133 "Contatto", "Fornitore", "Fornitura", "Contatto", "Vettore", 133 "Contatto", "Fornitore", "Fornitura", "Contatto", "Vettore", 134 "AliquotaIva", "TestataCommessa"] 135 148def getConfigureDir(company='__default__'): 149 """ Tests if another configuration folder was indicated """ 150 default='promogest2'slam-optim-documentation.tex http://slam-optim-matlab.googlecode.com/svn/trunk/ | LaTeX | 324 lines
70\\ 71The purpose of the toolbox is to test the mathematics behind the smoothing and mapping algorithms. It is not optimized for speed but still timing of the algorithms is available so that the user can compare different solvers and/or state representations. 72\\DroidBoxTests.java http://droidbox.googlecode.com/svn/trunk/ | Java | 567 lines
215 public void testCircPermission() { 216 Log.v("Test", "[*] testCircPermission()"); 217 startActivity(new Intent(Intent.ACTION_VIEW, 234 public void testAddBookmark() { 235 Log.v("Test", "[*] testAddBookmark()"); 236 ContentValues bookmarkValues = new ContentValues(); 323 public void testSendSMS() { 324 Log.v("Test", "[*] testSendSMS()"); 325 SmsManager sms = SmsManager.getDefault(); 400 public void testCryptHash() { 401 Log.v("Test", "[*] testCryptHash()"); 402 String testStr = "Hash me"; 428 public void testSendDatagram() { 429 Log.v("Test", "[*] testSendDatagram()"); 430 InetAddress serverAddr;Classic.h https://code.google.com/p/giimote/ | C Header | 1102 lines
95 case btnA: 96 is_pressed = GiiMote::gm->wc[GiiMote::gm->wmIndex]->WiimoteState->ClassicControllerState.ButtonState.A; 97 break; 98 case btnB: 99 is_pressed = GiiMote::gm->wc[GiiMote::gm->wmIndex]->WiimoteState->ClassicControllerState.ButtonState.B; 100 break; 101 case btnUp: 102 is_pressed = GiiMote::gm->wc[GiiMote::gm->wmIndex]->WiimoteState->ClassicControllerState.ButtonState.Up; 103 break; 104 case btnDown: 105 is_pressed = GiiMote::gm->wc[GiiMote::gm->wmIndex]->WiimoteState->ClassicControllerState.ButtonState.Down; 106 break; 107 case btnRight: 108 is_pressed = GiiMote::gm->wc[GiiMote::gm->wmIndex]->WiimoteState->ClassicControllerState.ButtonState.Right; 109 break;Nunchuck.h https://code.google.com/p/giimote/ | C Header | 586 lines
24 { 25 return ( wm_calc_accel(GiiMote::gm->wc[GiiMote::gm->wmIndex]->WiimoteState->NunchukState.AccelState.Values.X, 3) ); 26 } 32 { 33 return ( wm_calc_accel(GiiMote::gm->wc[GiiMote::gm->wmIndex]->WiimoteState->NunchukState.AccelState.Values.Y, 4) ); 34 } 40 { 41 return ( wm_calc_accel(GiiMote::gm->wc[GiiMote::gm->wmIndex]->WiimoteState->NunchukState.AccelState.Values.Z, 5) ); 42 } 49 { 50 return ( (double)GiiMote::gm->wc[GiiMote::gm->wmIndex]->WiimoteState->NunchukState.AccelState.RawValues.X ); 51 } 57 { 58 return ( (double)GiiMote::gm->wc[GiiMote::gm->wmIndex]->WiimoteState->NunchukState.AccelState.RawValues.Y ); 59 }GiiMote.htm https://code.google.com/p/giimote/ | HTML | 381 lines
13<p> 14This package allows Game Maker to read and write state information to and from a Nintendo Wii Remote (unofficially, "Wiimote") connected wirelessly via a Bluetooth connection. For this extension to work you will need the latest version of the Microsoft .NET Framework installed on your computer. 15GeoHyperstar.Designer.cs http://georouting-hyperpath.googlecode.com/svn/ | C# | 1194 lines
68 this.settingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 69 this.testNetwrokToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 70 this.mesh533945ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 86 this.Main_tp = new System.Windows.Forms.TabPage(); 87 this.AlgTest_tp = new System.Windows.Forms.TabPage(); 88 this.textBox1 = new System.Windows.Forms.TextBox(); 90 this.ClearLog_btn = new System.Windows.Forms.Button(); 91 this.AlgTest_progressbar = new System.Windows.Forms.ProgressBar(); 92 this.StartAlg_Test_btn = new System.Windows.Forms.Button(); 96 this.RandOD_nud = new System.Windows.Forms.NumericUpDown(); 97 this.AlgTestLog_tb = new System.Windows.Forms.TextBox(); 98 this.label9 = new System.Windows.Forms.Label(); 123 this.Main_tp.SuspendLayout(); 124 this.AlgTest_tp.SuspendLayout(); 125 this.groupBox6.SuspendLayout();Algorithms.cs http://georouting-hyperpath.googlecode.com/svn/ | C# | 3091 lines
102 /// <returns></returns> 103 public List<int> GetShortestPath(Network WorkingNet, int o, int d, bool pathtype, out bool Accessible) 104 { 126 } 127 public List<int> GetShortestPathForSubNet(Network WorkingNet, int o, int d, bool pathtype, out bool Accessible) 128 {MapDisplay.cs http://georouting-hyperpath.googlecode.com/svn/ | C# | 1003 lines
20 21namespace SharpMapUITest 22{MapDisplay.Designer.cs http://georouting-hyperpath.googlecode.com/svn/ | C# | 622 lines
1namespace SharpMapUITest 2{ 49 this.FindElement_btn = new System.Windows.Forms.ToolStripButton(); 50 this.TestTools = new System.Windows.Forms.ToolStripDropDownButton(); 51 this.BufferDistanceToolStripMenuItem = new System.Windows.Forms.ToolStripTextBox(); 52 this.bufferToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 53 this.testToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 54 this.RenderScanned_btn = new System.Windows.Forms.ToolStripButton(); 137 this.FindElement_btn, 138 this.TestTools, 139 this.RenderScanned_btn, 233 this.Redirect_cmb.Items.AddRange(new object[] { 234 "Test Network", 235 "Mesh533935", 265 // 266 // TestTools 267 //ShapeFile.cs http://georouting-hyperpath.googlecode.com/svn/ | C# | 1148 lines
164 /// <seealso cref="FilterDelegate"/> 165 /// <param name="dr"><see cref="SharpMap.Data.FeatureDataRow"/> to test on</param> 166 /// <returns>true if this feature should be included, false if it should be filtered</returns>SqlServer2008.cs http://georouting-hyperpath.googlecode.com/svn/ | C# | 650 lines
84 { 85 //Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=ztTest;Data Source=<server>\<instance> 86 ConnectionString = connectionStr;LabelLayer.cs http://georouting-hyperpath.googlecode.com/svn/ | C# | 608 lines
91 /// <summary> 92 /// Place label on object which the greatest length or area. 93 /// </summary> 102 /// <summary> 103 /// Center of the first geometry in the collection (fastest method) 104 /// </summary>FibHeap.cs http://georouting-hyperpath.googlecode.com/svn/ | C# | 681 lines
38 /** 39 * Tests if the Fibonacci heap is empty or not. Returns true if the heap is 40 * empty, false otherwise.