100+ results results for 'if version.startswith windows 9 ' (685 ms)
51 if self.install_type == 'win': 52 self.updater = WindowsUpdateManager() 53 elif self.install_type == 'git': 70 returns: type of installation. Possible values are: 71 'win': any compiled windows build 72 'git': running from source using git 75 76 # check if we're a windows build 77 if sickbeard.version.SICKBEARD_VERSION.startswith('build '): 127 128class WindowsUpdateManager(UpdateManager): 129 132 self.github_repo = self.get_github_repo() 133 self.branch = 'windows_binaries' 134versionChecker.py https://bitbucket.org/fyelles/sick-beard.git | Python | 493 lines
41 if self.install_type == 'win': 42 self.updater = WindowsUpdateManager() 43 elif self.install_type == 'git': 60 returns: type of installation. Possible values are: 61 'win': any compiled windows build 62 'git': running from source using git 65 66 # check if we're a windows build 67 if version.SICKBEARD_VERSION.startswith('build '): 106 107class WindowsUpdateManager(UpdateManager): 108 113 self.gc_url = 'http://code.google.com/p/sickbeard/downloads/list' 114 self.version_url = 'https://raw.github.com/midgetspy/Sick-Beard/windows_binaries/updates.txt' 115FontUtilities.java https://github.com/ikeji/openjdk7-jdk.git | Java | 512 lines
58 59 public static boolean isWindows; 60 86 String version = System.getProperty("os.version", "0.0"); 87 isSolaris8 = version.startsWith("5.8"); 88 isSolaris9 = version.startsWith("5.9"); 115 } 116 isWindows = osName.startsWith("Windows"); 117 String jreLibDirName = System.getProperty("java.home", "")WindowsDebugger.cs https://github.com/josephcooney/ILSpy.git | C# | 874 lines
8using System.Text; 9using System.Windows; 10using System.Windows.Media; 31 [Export(typeof(IDebugger))] 32 public class WindowsDebugger : IDebugger 33 { 63 get { 64 WindowsDebugger dbgr = DebuggerService.CurrentDebugger as WindowsDebugger; 65 if (dbgr != null && dbgr.DebuggedProcess != null) { 91 92 public WindowsDebugger() 93 { 134 135 if (version.StartsWith("v1.0")) { 136 MessageBox.Show("Net10NotSupported");versionChecker.py https://github.com/bbucommander/Sick-Beard.git | Python | 486 lines
41 if self.install_type == 'win': 42 self.updater = WindowsUpdateManager() 43 elif self.install_type == 'git': 60 returns: type of installation. Possible values are: 61 'win': any compiled windows build 62 'git': running from source using git 65 66 # check if we're a windows build 67 if version.SICKBEARD_VERSION.startswith('build '): 106 107class WindowsUpdateManager(UpdateManager): 108 119 """ 120 Checks google code for the newest Windows binary build. Returns either the 121 build number or the entire build URL depending on whole_link's value.git.py https://gitlab.com/phongphans61/machine-learning-tictactoe | Python | 450 lines
77 ) 78 if version.startswith(VERSION_PFX): 79 version = version[len(VERSION_PFX):].split()[0] 82 # get first 3 positions of the git version because 83 # on windows it is x.y.z.windows.t, and this parses as 84 # LegacyVersion which always smaller than a Version.git.py https://gitlab.com/abhi1tb/build | Python | 394 lines
81 version = self.run_command(['version'], show_stdout=False) 82 if version.startswith(VERSION_PFX): 83 version = version[len(VERSION_PFX):].split()[0] 86 # get first 3 positions of the git version because 87 # on windows it is x.y.z.windows.t, and this parses as 88 # LegacyVersion which always smaller than a Version.std.py https://gitlab.com/Smileyt/KomodoEdit | Python | 490 lines
123 try: 124 if self._compilerVersion.startswith("vc6"): 125 key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, 127 "\\Microsoft Visual C++") 128 elif self._compilerVersion.startswith("vc7") or \ 129 self._compilerVersion.startswith("vc8"): 133 # Unknown compiler version 134 raise WindowsError("Unknown windows compiler version") 135 except WindowsError: 140 valueName, valueData, dataType = _winreg.EnumValue(key, i) 141 if self._compilerVersion.startswith("vc7") and \ 142 (valueName == '7.1'): 144 break 145 elif self._compilerVersion.startswith("vc8") and \ 146 (valueName == '8.0'):DatabasePage.cs https://github.com/ShaneMcC/websitepanel.git | C# | 244 lines
36using System.Threading; 37using System.Windows.Forms; 38 65 { 66 bool windowsAuthentication = false; 67 if ( !string.IsNullOrEmpty(SetupVariables.DbInstallConnectionString )) 86 if (value.Trim().ToLower() == "sspi") 87 windowsAuthentication = true; 88 break; 98 } 99 cbAuthentication.SelectedIndex = windowsAuthentication ? 0 : 1; 100 } 126 string sqlVersion = GetSqlServerVersion(connectionString); 127 if (!sqlVersion.StartsWith("9.") && !sqlVersion.StartsWith("10.")) 128 {Constants.cs https://github.com/iainlane/mono.git | C# | 114 lines
41 /// <summary>True iff this is Java version 1.1. </summary> 42 public static readonly bool JAVA_1_1 = JAVA_VERSION.StartsWith("1.1."); 43 /// <summary>True iff this is Java version 1.2. </summary> 43 /// <summary>True iff this is Java version 1.2. </summary> 44 public static readonly bool JAVA_1_2 = JAVA_VERSION.StartsWith("1.2."); 45 /// <summary>True iff this is Java version 1.3. </summary> 45 /// <summary>True iff this is Java version 1.3. </summary> 46 public static readonly bool JAVA_1_3 = JAVA_VERSION.StartsWith("1.3."); 47 48 /// <summary>The value of <tt>System.getProperty("os.name")</tt>. *</summary> 49 public static readonly System.String OS_NAME = GetEnvironmentVariable("OS","Windows_NT") ?? "Linux"; 50 /// <summary>True iff running on Linux. </summary> 52 /// <summary>True iff running on Windows. </summary> 53 public static readonly bool WINDOWS = OS_NAME.StartsWith("Windows"); 54 /// <summary>True iff running on SunOS. </summary>VirtualMachineExtensionCmdletBase.cs https://gitlab.com/jslee1/azure-powershell | C# | 365 lines
15using Microsoft.Azure.Commands.Common.Authentication; 16using Microsoft.WindowsAzure.Commands.ServiceManagement.Helpers; 17using Microsoft.WindowsAzure.Commands.ServiceManagement.Model; 17using Microsoft.WindowsAzure.Commands.ServiceManagement.Model; 18using Microsoft.WindowsAzure.Commands.ServiceManagement.Properties; 19using Newtonsoft.Json.Linq; 25 26namespace Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions 27{ 122 } 123 return version.StartsWith("1"); 124 }interactiveshell.py https://github.com/minrk/ipython.git | Python | 646 lines
42DISPLAY_BANNER_DEPRECATED = object() 43PTK3 = ptk_version.startswith('3.') 44 75 else: 76 return 'notepad' # same in Windows! 77 131 Set to confirm when you try to exit IPython with an EOF (Control-D 132 in Unix, Control-Z/Enter in Windows). By typing 'exit' or 'quit', 133 you can force a direct exit without any confirmation.""", 365 366 # Hack: Due to limited color support on the Windows console 367 # the prompt colors will be wrong without thisinteractiveshell.py https://github.com/fperez/ipython.git | Python | 695 lines
54DISPLAY_BANNER_DEPRECATED = object() 55PTK3 = ptk_version.startswith('3.') 56 87 else: 88 return 'notepad' # same in Windows! 89 147 Set to confirm when you try to exit IPython with an EOF (Control-D 148 in Unix, Control-Z/Enter in Windows). By typing 'exit' or 'quit', 149 you can force a direct exit without any confirmation.""",interactiveshell.py https://github.com/ipython/ipython.git | Python | 769 lines
52 53PTK3 = ptk_version.startswith('3.') 54 85 else: 86 return 'notepad' # same in Windows! 87 204 Set to confirm when you try to exit IPython with an EOF (Control-D 205 in Unix, Control-Z/Enter in Windows). By typing 'exit' or 'quit', 206 you can force a direct exit without any confirmation.""",git.py https://gitlab.com/Alioth-Project/clang-r445002 | Python | 397 lines
81 version = self.run_command(['version']) 82 if version.startswith(VERSION_PFX): 83 version = version[len(VERSION_PFX):].split()[0] 86 # get first 3 positions of the git version because 87 # on windows it is x.y.z.windows.t, and this parses as 88 # LegacyVersion which always smaller than a Version.newupgradebasetest.py https://github.com/membase/testrunner.git | Python | 784 lines
83 self.during_ops = self.input.param("during-ops", None).split(",") 84 if self.initial_version.startswith("1.6") or self.initial_version.startswith("1.7"): 85 self.product = 'membase-server' 112 shell.disconnect() 113 if type.lower() == 'windows': 114 self.is_linux = FalseSelectorGuard.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 161 lines
106 107 if( consecutiveZeroSelects % 20 == 0 && Constants.isWindows ) { 108 // getting triggered with 20 +_ sometimes 40 due to general high CPU usage 115 if( consecutiveZeroSelects > SELECTOR_SPIN_THRESHOLD ) { 116 if( Constants.isWindows && (Constants.JAVA_VERSION.startsWith("1.4") || Constants.JAVA_VERSION.startsWith("1.5"))) { 117 //Under windows, it seems that selector spin can sometimes appear when >63 socket channels are registered with a selector 138 139 if( consecutiveZeroSelects > SELECTOR_FAILURE_THRESHOLD ) { //should only happen under Windows + JRE 1.4 140 String msg = "Likely network disconnect/reconnect: Repairing socket channel selector. [JRE " +Constants.JAVA_VERSION+"]\n";CloudServersUSTemplateBuilderLiveTest.java https://github.com/regularfry/jclouds.git | Java | 85 lines
54 case UBUNTU: 55 return !(input.version.startsWith("11.10") || input.version.equals("8.04")) && input.is64Bit; 56 case DEBIAN: 59 return !(input.version.matches("5.[023]")) && input.is64Bit; 60 case WINDOWS: 61 return input.version.equals("2008 SP2") || input.version.equals("")Constants.java https://github.com/simplegeo/lucene-solr.git | Java | 86 lines
31 /** True iff this is Java version 1.1. */ 32 public static final boolean JAVA_1_1 = JAVA_VERSION.startsWith("1.1."); 33 /** True iff this is Java version 1.2. */ 33 /** True iff this is Java version 1.2. */ 34 public static final boolean JAVA_1_2 = JAVA_VERSION.startsWith("1.2."); 35 /** True iff this is Java version 1.3. */ 35 /** True iff this is Java version 1.3. */ 36 public static final boolean JAVA_1_3 = JAVA_VERSION.startsWith("1.3."); 37 42 /** True iff running on Windows. */ 43 public static final boolean WINDOWS = OS_NAME.startsWith("Windows"); 44 /** True iff running on SunOS. */InstallLatestSdk.ps1 https://gitlab.com/jslee1/azure-powershell | Powershell | 70 lines
51 Write-Host installing Azure Authoring Tools 52 Start-Process "$WebPi" "/Install /products:WindowsAzureSDK_Only.2.4 /accepteula" -Wait 53} 54 55$detectKey = "HKLM:\SOFTWARE\Microsoft\Windows Azure Emulator"; 56$producteVersion = Get-RegistryKeyValues $detectKey "FullVersion" 56$producteVersion = Get-RegistryKeyValues $detectKey "FullVersion" 57if (!($producteVersion.StartsWith("2.4."))) { 58 Write-Host installing Azure Compute Emulator 58 Write-Host installing Azure Compute Emulator 59 Start-Process "$WebPi" "/Install /products:WindowsAzureEmulator_Only.2.4 /accepteula" -Wait 60} 61 62$detectKey = "HKLM:\SOFTWARE\Microsoft\Windows Azure Storage Emulator" 63if (${env:ADX64Platform}){Constants.java https://bitbucket.org/gasol/lucene3.git | Java | 118 lines
34 @Deprecated 35 public static final boolean JAVA_1_1 = JAVA_VERSION.startsWith("1.1."); 36 /** True iff this is Java version 1.2. 38 @Deprecated 39 public static final boolean JAVA_1_2 = JAVA_VERSION.startsWith("1.2."); 40 /** True iff this is Java version 1.3. 42 @Deprecated 43 public static final boolean JAVA_1_3 = JAVA_VERSION.startsWith("1.3."); 44 49 /** True iff running on Windows. */ 50 public static final boolean WINDOWS = OS_NAME.startsWith("Windows"); 51 /** True iff running on SunOS. */NativeWindowSystemImpl.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 132 lines
50import javax.swing.Icon; 51import org.netbeans.core.windows.nativeaccess.NativeWindowSystem; 52import org.openide.util.Utilities; 55/** 56 * Implementation of NativeWindowSystem based on JNA library. 57 * 59 */ 60@org.openide.util.lookup.ServiceProvider(service=org.netbeans.core.windows.nativeaccess.NativeWindowSystem.class) 61public class NativeWindowSystemImpl extends NativeWindowSystem { 62 63 private static final Logger LOG = Logger.getLogger(NativeWindowSystemImpl.class.getName()); 64 64 65 public NativeWindowSystemImpl() { 66 }run_all.py https://bitbucket.org/pombredanne/nuitka.git | Python | 180 lines
95 # Skip tests that require Python 2.7 at least. 96 if filename.endswith( "27.py" ) and python_version.startswith( b"2.6" ): 97 continue 110 111 if python_version.startswith( b"3" ): 112 new_path = os.path.join( tempfile.gettempdir(), filename ) 116 117 # No idea how to make this portable to Windows, but we can delay it until 118 # Python3 is fully functional under Linux first.GenerateCodeTestCase.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 140 lines
53 54 if (specVersion.startsWith("1.4")) { 55 return "jdk14"; 57 58 if (specVersion.startsWith("1.5")) { 59 return "jdk15"; 61 62 if (specVersion.startsWith("1.6")) { 63 return "jdk16"; 69 private boolean isWin() { 70 return System.getProperty("os.name").contains("Windows"); 71 }upload.py https://gitlab.com/Rockyspade/electron | Python | 195 lines
46 build_version = get_atom_shell_build_version() 47 if not ATOM_SHELL_VERSION.startswith(build_version): 48 error = 'Tag name ({0}) should match build version ({1})\n'.format( 82 if PLATFORM == 'win32': 83 # Upload PDBs to Windows symbol server. 84 execute([sys.executable, 84 execute([sys.executable, 85 os.path.join(SOURCE_ROOT, 'script', 'upload-windows-pdb.py')]) 86DeltacloudTemplateBuilderLiveTest.java https://github.com/regularfry/jclouds.git | Java | 85 lines
54 case UBUNTU: 55 return !(input.version.startsWith("11") || input.version.equals("8.04")) && input.is64Bit; 56 case DEBIAN: 59 return !(input.version.matches("5.[023]") || input.version.equals("8.04")) && input.is64Bit; 60 case WINDOWS: 61 return input.version.equals("2008 SP2") || input.version.equals("")__init__.py https://github.com/ijs/windmill.git | Python | 148 lines
23 24if not sys.version.startswith('2.4'): 25 from urlparse import urlparse 61 "dom.disable_open_during_load": False, 62 # Open links in new windows (Firefox 2.0) 63 "browser.link.open_external": 2,GitVersion.cs https://github.com/jotux/gitextensions.git | C# | 163 lines
61 // used at commit time. 62 // This causes problems under Windows, where command line arguments are 63 // passed as WideChars. Git uses argv, which contains strings 82 83 if (version.StartsWith(Prefix)) 84 return version.Substring(Prefix.Length).Trim();versioncheck.py https://github.com/ersw1187/headphones.git | Python | 204 lines
50 51 if version.HEADPHONES_VERSION.startswith('build '): 52 55 # Don't have a way to update exe yet, but don't want to set VERSION to None 56 return 'Windows Install' 57 126 127 logger.info('Windows .exe updating not supported yet.') 128 passMetadataReaderExtensions.cs https://gitlab.com/sharadag/TestProject2 | C# | 190 lines
14 { 15 if (reader.MetadataKind == MetadataKind.WindowsMetadata) 16 { 16 { 17 // Name should be of the form "WindowsRuntime {major}.{minor}". 18 const string prefix = "WindowsRuntime "; 19 string version = reader.MetadataVersion; 20 if (version.StartsWith(prefix, StringComparison.Ordinal)) 21 {ElasticHostsPeer1LondonTemplateBuilderLiveTest.java https://github.com/regularfry/jclouds.git | Java | 85 lines
54 case UBUNTU: 55 return (input.version.equals("") || input.version.startsWith("10.")) && input.is64Bit; 56 case DEBIAN: 59 return (input.version.equals("") || input.version.equals("5.5")) && input.is64Bit; 60 case WINDOWS: 61 return (input.version.equals("") || input.version.equals("2008 R2") || input.version.equals("2008"))GitVersion.cs https://github.com/XelaRellum/gitextensions.git | C# | 210 lines
104 // used at commit time. 105 // This causes problems under Windows, where command line arguments are 106 // passed as WideChars. Git uses argv, which contains strings 125 126 if (version.StartsWith(Prefix)) 127 return version.Substring(Prefix.Length).Trim(); 205 .Replace(".msysgit.1", "") 206 .Replace(".windows.0", "") 207 .Replace(".windows.1", "");git.py https://github.com/dpritsos/WEGA.git | Python | 309 lines
69 version = self.run_command(['version'], show_stdout=False) 70 if version.startswith(VERSION_PFX): 71 version = version[len(VERSION_PFX):].split()[0] 74 # get first 3 positions of the git version becasue 75 # on windows it is x.y.z.windows.t, and this parses as 76 # LegacyVersion which always smaller than a Version.upload.py https://gitlab.com/adambuckland/electron | Python | 233 lines
48 build_version = get_atom_shell_build_version() 49 if not ATOM_SHELL_VERSION.startswith(build_version): 50 error = 'Tag name ({0}) should match build version ({1})\n'.format( 103 if PLATFORM == 'win32' and not tag_exists: 104 # Upload PDBs to Windows symbol server. 105 execute([sys.executable, 105 execute([sys.executable, 106 os.path.join(SOURCE_ROOT, 'script', 'upload-windows-pdb.py')]) 107TBE_SetupDiagnose.cs https://gitlab.com/netcell/NightOfShame | C# | 205 lines
20 { 21 string windows32Status = string.Empty; 22 string windows64Status = string.Empty; 32 33 static Vector2 windowSize = new Vector2 (300, 440); 34 43 instance.titleContent = new GUIContent("Setup/Diagnose"); 44 instance.minSize = windowSize; 45 instance.maxSize = windowSize; 103 bool isVersion5_2_OrLater = false; 104 if (unityVersion.StartsWith("5") && !(unityVersion.StartsWith("5.1"))) 105 { 110 { 111 checkExists("Assets/TBE_3Dception/Plugins/x86/AudioPlugin3Dception.dll", "Windows 32", out windows32Status); 112 checkExists("Assets/TBE_3Dception/Plugins/x86_64/AudioPlugin3Dception.dll", "Windows 64", out windows64Status);run_all.py https://bitbucket.org/pombredanne/nuitka.git | Python | 148 lines
72 # Skip tests that require Python 2.7 at least. 73 if filename.endswith( "27.py" ) and python_version.startswith( b"2.6" ): 74 continue 76 # Skip tests that require Python 3.2 at least. 77 if filename.endswith( "32.py" ) and not python_version.startswith( b"3" ): 78 continue 80 # The overflow functions test gives syntax error on Python 3.x and can be ignored. 81 if filename == "OverflowFunctions.py" and python_version.startswith( b"3" ): 82 continue 96 97 if os.name == "nt" or "--windows-target" in os.environ.get( "NUITKA_EXTRA_OPTIONS", "" ): 98 print( "Skip reference count test, CPython debug not on Windows." ) 110 111 if python_version.startswith( b"3" ) and not filename.endswith( "32.py" ): 112 new_path = os.path.join( tempfile.gettempdir(), filename )infos.py https://github.com/Grahack/geophar.git | Python | 156 lines
56 dossier_os.version = platform.platform().replace("-", " ") 57 if dossier_os.version.startswith("Windows"): 58 dossier_os.distribution = "%s.%s build %s (%s) - %s" %sys.getwindowsversion() 58 dossier_os.distribution = "%s.%s build %s (%s) - %s" %sys.getwindowsversion() 59 elif dossier_os.version.startswith("Linux"): 60 try: 70# try: 71# __major__, __minor__, __build__, platform, __text__ = sys.getwindowsversion() 72# if platform is 0: 74# elif platform is 1: 75# platform = "Windows 9x/ME" 76# elif platform is 2: 76# elif platform is 2: 77# platform = "Windows NT/2000/XP" 78# else:openssl.d git://github.com/rejectedsoftware/vibe.d.git | D | 1419 lines
57 pragma(lib, "ssl"); 58 version (Windows) pragma(lib, "eay"); 59} 66// openssl/1.1.0 hack: provides a 1.0.x API in terms of the 1.1.x API 67static if (OPENSSL_VERSION.startsWith("1.1")) { 68 extern(C) const(SSL_METHOD)* TLS_client_method(); 239 240 static if (OPENSSL_VERSION.startsWith("1.1")) { 241 if (!s_bio_methods) initBioMethods(); 289 if (!verifyCertName(m_peerCertificate, GENERAL_NAME.GEN_DNS, vdata.peerName)) { 290 version(Windows) import core.sys.windows.winsock2; 291 else import core.sys.posix.netinet.in_;test_os.py https://gitlab.com/Verner/brython-misc | Python | 1348 lines
52if hasattr(sys, 'thread_info') and sys.thread_info.version: 53 USING_LINUXTHREADS = sys.thread_info.version.startswith("linuxthreads") 54else: 122 123 def write_windows_console(self, *args): 124 retcode = subprocess.call(args, 131 @unittest.skipUnless(sys.platform == 'win32', 132 'test specific to the Windows console') 133 def test_write_windows_console(self): 133 def test_write_windows_console(self): 134 # Issue #11395: the Windows console returns an error (12: not enough 135 # space error) on writing into stdout if stdout mode is binary and the 138 code = "print('x' * 100000)" 139 self.write_windows_console(sys.executable, "-c", code) 140 self.write_windows_console(sys.executable, "-u", "-c", code)infos.py https://github.com/wxgeo/geophar.git | Python | 145 lines
69 70 if dossier_os.version.startswith("Windows"): 71 dossier_os.distribution = "%s.%s build %s (%s) - %s" %tuple(sys.getwindowsversion()) 72 # Il faut convertir en tuple sous Python 2.7 73 elif dossier_os.version.startswith("Linux"): 74 try: 84# try: 85# __major__, __minor__, __build__, platform, __text__ = sys.getwindowsversion() 86# if platform is 0: 88# elif platform is 1: 89# platform = "Windows 9x/ME" 90# elif platform is 2: 90# elif platform is 2: 91# platform = "Windows NT/2000/XP" 92# else:CloudServersUKTemplateBuilderLiveTest.java https://github.com/regularfry/jclouds.git | Java | 85 lines
54 case UBUNTU: 55 return !(input.version.startsWith("11.10") || input.version.equals("8.04")) && input.is64Bit; 56 case DEBIAN: 59 return (input.version.equals("") || input.version.matches("5.[45]")) && input.is64Bit; 60 case WINDOWS: 61 return input.version.equals("2008 SP2") || input.version.equals("")SlicehostTemplateBuilderLiveTest.java https://github.com/regularfry/jclouds.git | Java | 89 lines
55 case UBUNTU: 56 return !(input.version.startsWith("11.10") || input.version.equals("8.04") || (input.version 57 .equals("11.04") && !input.is64Bit)); 64 || (input.version.equals("5.0") && input.is64Bit); 65 case WINDOWS: 66 return input.version.equals("") || (input.version.equals("2008 SP2") && !input.is64Bit)OperatingSystem.java https://gitlab.com/rcristi/madsonic-booter | Java | 93 lines
23public enum OperatingSystem { 24 WINDOWS, 25 OSX, 32 return OSX; 33 if(osName.startsWith("Windows ")) 34 return WINDOWS; 54 case OSX: 55 if(osVersion.startsWith("10.2")) 56 osName += " Jaguar"; 56 osName += " Jaguar"; 57 else if(osVersion.startsWith("10.3")) 58 osName += " Panther"; 58 osName += " Panther"; 59 else if(osVersion.startsWith("10.4")) 60 osName += " Tiger";Constants.cs https://github.com/joeshaw/beagle.git | C# | 74 lines
56 /// <summary>True iff Lucene.Net Runtime version is 1.0</summary> 57 public static readonly bool DOTNET_VERSION_1_0 = DOTNET_VERSION.StartsWith("1.0."); 58 /// <summary>True iff Lucene.Net Runtime version is 1.1</summary> 58 /// <summary>True iff Lucene.Net Runtime version is 1.1</summary> 59 public static readonly bool DOTNET_VERSION_1_1 = DOTNET_VERSION.StartsWith("1.1."); 60 /// <summary>True iff Lucene.Net Runtime version is 2.0</summary> 60 /// <summary>True iff Lucene.Net Runtime version is 2.0</summary> 61 public static readonly bool DOTNET_VERSION_2_0 = DOTNET_VERSION.StartsWith("2.0."); 62 /// <summary>True iff Lucene.Net Runtime version is 3.0</summary> 62 /// <summary>True iff Lucene.Net Runtime version is 3.0</summary> 63 public static readonly bool DOTNET_VERSION_3_0 = DOTNET_VERSION.StartsWith("3.0."); 64 69 /// <summary>True iff running on Windows. </summary> 70 public static readonly bool WINDOWS = OS_NAME.StartsWith("Windows"); 71 /// <summary>True iff running on SunOS. </summary>Database.java https://github.com/maesenka/hibernate-core.git | Java | 335 lines
35 case "SQL": { 36 // Linux, UNIX, Windows 37 return new DB2Dialect( info ); 210 final String version = getVersion( info.getDatabaseMetadata() ); 211 if ( version.startsWith( "Cockroach" ) ) { 212 return new CockroachDialect( info );CommandUtils.scala https://gitlab.com/sumonsun/Spark | Scala | 96 lines
35 // SPARK-698: do not call the run.cmd script, as process.destroy() 36 // fails to kill a process tree on Windows 37 Seq(runner) ++ buildJavaOpts(command, memory, sparkHome) ++ Seq(command.mainClass) ++ 67 // Figure out our classpath with the external compute-classpath script 68 val ext = if (System.getProperty("os.name").startsWith("Windows")) ".cmd" else ".sh" 69 val classPath = Utils.executeAndGetOutput( 74 val javaVersion = System.getProperty("java.version") 75 val permGenOpt = if (!javaVersion.startsWith("1.8")) Some("-XX:MaxPermSize=128m") else None 76 Seq("-cp", userClassPath.filterNot(_.isEmpty).mkString(File.pathSeparator)) ++RuntimeEnvironment.cs https://gitlab.com/dotnetfoundation/sdk | C# | 263 lines
12 Unknown = 0, 13 Windows = 1, 14 Linux = 2, 39 { 40 case Platform.Windows: 41 return nameof(Platform.Windows); 60 { 61 case Platform.Windows: 62 return Environment.OSVersion.Version.ToString(3); 177 { 178 case string version when version.StartsWith("omnios"): 179 result = new DistroInfo 184 break; 185 case string version when version.StartsWith("joyent"): 186 result = new DistroInfoOSUtils.java https://github.com/zootella/Lost-in-the-Space.git | Java | 415 lines
123 // set the operating system variables 124 _isWindows = os.indexOf("windows") != -1; 125 131 _isWindows7 = true; 132 } else if (os.indexOf("windows vista") != -1 && version.startsWith("6.1")) { 133 //In jdk 1.6 before update 14 the os.name system property still returns Windows Vista 221 /** 222 * Returns true if this is Windows NT or Windows 2000 and 223 * hence can support a system tray feature. 298 public static boolean isSocketChallengedWindows() { 299 return _isWindowsXP || (_isWindowsVista && !_isSlightlyLessBrokenVersionOfWindowsVista); 300 } 364 public static boolean isHighLoadOS() { 365 return !(_isWindows98 || _isWindows95 || _isWindowsMe || _isWindowsNT); 366 }Constants.cs https://github.com/hollow87/mono.git | C# | 52 lines
36 /// <summary>True iff this is Java version 1.1. </summary> 37 public static readonly bool JAVA_1_1 = JAVA_VERSION.StartsWith("1.1."); 38 /// <summary>True iff this is Java version 1.2. </summary> 38 /// <summary>True iff this is Java version 1.2. </summary> 39 public static readonly bool JAVA_1_2 = JAVA_VERSION.StartsWith("1.2."); 40 /// <summary>True iff this is Java version 1.3. </summary> 40 /// <summary>True iff this is Java version 1.3. </summary> 41 public static readonly bool JAVA_1_3 = JAVA_VERSION.StartsWith("1.3."); 42 47 /// <summary>True iff running on Windows. </summary> 48 public static readonly bool WINDOWS = OS_NAME.StartsWith("Windows"); 49 /// <summary>True iff running on SunOS. </summary>sdl_shape_test.py https://bitbucket.org/pcraven/pygame2.git | Python | 94 lines
13 sdl.init(sdl.SDL_INIT_EVERYTHING) 14 if sys.version.startswith("3.1"): 15 self.assertIsInstance = \ 45 sf = surface.create_rgb_surface(10, 10, 32) 46 mode = shape.SDL_WindowShapeMode() 47 mode.mode = shape.ShapeModeDefault 47 mode.mode = shape.ShapeModeDefault 48 mode.parameters = shape.SDL_WindowShapeParams() 49 mode.parameters.binarizationCutoff = 1 89 mode = shape.get_shaped_window_mode(window) 90 self.assertIsInstance(mode, shape.SDL_WindowShapeMode) 91 video.destroy_window(window)ReferenceResolution.fs https://FSharpRefactor.svn.codeplex.com/svn | F# | 367 lines
67 let ReplaceFrameworkVariables(dirs) = 68 let windowsFramework = System.Environment.GetEnvironmentVariable("windir")+ @"\Microsoft.NET\Framework" 69 let referenceAssemblies = DotNetFrameworkReferenceAssembliesRootDirectory 69 let referenceAssemblies = DotNetFrameworkReferenceAssembliesRootDirectory 70 dirs|>List.map(fun (d:string)->d.Replace("{WindowsFramework}",windowsFramework).Replace("{ReferenceAssemblies}",referenceAssemblies)) 71 78 let targetFrameworkVersion = 79 if not(targetFrameworkVersion.StartsWith("v",StringComparison.Ordinal)) then "v"^targetFrameworkVersion 80 else targetFrameworkVersion 81 let FrameworkStartsWith(short) = 82 targetFrameworkVersion.StartsWith(short,StringComparison.Ordinal) 83 let result = 87 else if FrameworkStartsWith("v3.0") then ReplaceFrameworkVariables([@"{ReferenceAssemblies}\v3.0"; @"{WindowsFramework}\v3.0"; @"{WindowsFramework}\v2.0.50727"]) 88 else if FrameworkStartsWith("v3.5") then ReplaceFrameworkVariables([@"{ReferenceAssemblies}\v3.5"; @"{WindowsFramework}\v3.5"; @"{ReferenceAssemblies}\v3.0"; @"{WindowsFramework}\v3.0"; @"{WindowsFramework}\v2.0.50727"]) 89 else if FrameworkStartsWith("v4.0") then ReplaceFrameworkVariables([@"{ReferenceAssemblies}\v4.0"]) // starting with .Net 4.0, the runtime dirs (WindowsFramework) are never used by MSBuild RARRebolExecutable.java https://bitbucket.org/hallyhaa/rebol-module.git | Java | 107 lines
64 String os = System.getProperty("os.name"); 65 if (os != null && os.toLowerCase().contains("windows")) { 66 // windows platform fs is case insensitive for path names, so IgnoreCase here: 80 String version = getSystemInformation("version", path).toLowerCase(); 81 if (version.startsWith("rebol 3")) { 82 version = version.substring(8); // removes "REBOL 3 "btlaunchmanycurses.py http://lh-abc.googlecode.com/svn/trunk/ | Python | 381 lines
29 import curses.panel 30 WCURSES = platform[:3] == "win" and curses.version.startswith("WCurses") 31 if WCURSES: 39 '"curses", which is unfortunately not available for the native ' \ 40 'Windows port of Python. It is however available for the Cygwin ' \ 41 'port of Python, running on all Win32 systems (www.cygwin.com). ' \ 138 self.mainwinx = 2 # + 1 (bar) + 1 (space) 139 # + 1 to all windows so we can write at mainwinw 140__init__.py https://github.com/Infinidat/relocatable-python.git | Python | 167 lines
54 else: 55 if version.startswith('8'): 56 buildout_file = 'buildout-build-redhat-8-64bit.cfg' 64 buildout_file = 'buildout-build-suse-ppc64.cfg' 65 elif version.startswith("15"): 66 buildout_file = 'buildout-build-suse-15.cfg' 84 buildout_file = 'buildout-build-osx.cfg' 85 elif system() == 'Windows': 86 if maxsize > 2**32: 86 if maxsize > 2**32: 87 buildout_file = 'buildout-build-windows-64bit.cfg' 88 else: 88 else: 89 buildout_file = 'buildout-build-windows.cfg' 90 elif system() == "SunOS":SmarterStats5.cs https://github.com/ShaneMcC/websitepanel.git | C# | 114 lines
45 // Check x86 platform 46 RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"); 47 73 // Check x64 platform 74 key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"); 75 105 // Match SmarterStats either 5.x or 6.x version 106 if (productVersion.StartsWith("5.") 107 || productVersion.StartsWith("6."))Activator.java https://github.com/kappamodeler/rulestudio.git | Java | 123 lines
86 if (vendor.startsWith("Apple") && os.getMajor() <= 10 && os.getMinor() <= 5) { 87 if (!version.startsWith("1.5")) { 88 reportError = true; 89 } 90 } else if (!version.startsWith("1.6")) { 91 reportError = true; 102 } else { 103 message = "This client requires Java 1.6 for Windows and Linux."; 104 }EnvUtil.java https://github.com/Mahoney/logback.git | Java | 71 lines
37 for (String v : versionList) { 38 if (javaVersion.startsWith(v)) 39 return true; 65 66 public static boolean isWindows() { 67 String os = System.getProperty("os.name"); 67 String os = System.getProperty("os.name"); 68 return os.startsWith("Windows"); 69 }prereq.py https://github.com/ayeung/titanium_mobile.git | Python | 58 lines
13 try: 14 if platform.system() == "Windows": 15 (out,err) = subprocess.Popen(['cmd.exe','/C','javac','-version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() 20 version = err.replace("javac ", "").strip() 21 if not version.startswith("1.6"): 22 status = "JDK version %s detected, but 1.6 is required" % versiontests.py https://bitbucket.org/vinay.sajip/pylauncher/ | Python | 534 lines
82 core_root = winreg.OpenKeyEx(root, python_path, 0, flags) 83 except WindowsError: 84 return 89 verspec = winreg.EnumKey(core_root, i) 90 except WindowsError: 91 break 108 break 109 except WindowsError: 110 pass 151 for info in ALL_PYTHONS: 152 if info.version.startswith(spec): 153 return info 273 stdout, stderr = p.communicate() 274 self.assertTrue(stdout.startswith(b'Python Launcher for Windows')) 275 self.assertIn(b'The following help text is from Python:\r\n\r\nusage: ', stdout)test_os.py https://bitbucket.org/mirror/cpython/ | Python | 3192 lines
78if hasattr(sys, 'thread_info') and sys.thread_info.version: 79 USING_LINUXTHREADS = sys.thread_info.version.startswith("linuxthreads") 80else: 94def bytes_filename_warn(expected): 95 msg = 'The Windows bytes API has been deprecated' 96 if os.name == 'nt': 189 190 def write_windows_console(self, *args): 191 retcode = subprocess.call(args, 198 @unittest.skipUnless(sys.platform == 'win32', 199 'test specific to the Windows console') 200 def test_write_windows_console(self): 200 def test_write_windows_console(self): 201 # Issue #11395: the Windows console returns an error (12: not enough 202 # space error) on writing into stdout if stdout mode is binary and theWindowsDebugger.cs https://hg.codeplex.com/ilspyslpoc | C# | 863 lines
7using System.Text; 8using System.Windows; 9using System.Windows.Media; 29{ 30 public class WindowsDebugger : IDebugger 31 { 61 get { 62 WindowsDebugger dbgr = DebuggerService.CurrentDebugger as WindowsDebugger; 63 if (dbgr != null && dbgr.DebuggedProcess != null) { 89 90 public WindowsDebugger() 91 { 132 133 if (version.StartsWith("v1.0")) { 134 MessageBox.Show("Net10NotSupported");ODEModule.cs https://github.com/opensim/opensim.git | C# | 132 lines
57 58 if (Util.IsWindows()) 59 Util.LoadArchSpecificWindowsDll("ubode.dll"); 88 m_libVersion.Trim(); 89 if(m_libVersion.StartsWith("OS")) 90 m_libVersion = m_libVersion.Substring(2);get-bwc-version.py https://gitlab.com/sharadag/elasticsearch | Python | 89 lines
45 46 is_windows = platform.system() == 'Windows' 47 57 58 # before 1.4.0, the zip file contains windows scripts, and tar.gz contained *nix scripts 59 if is_windows: 66 url = 'http://central.maven.org/maven2/org/elasticsearch/elasticsearch/1.2.0/%s' % filename 67 elif c.version.startswith('0.') or c.version.startswith('1.'): 68 url = 'https://download.elasticsearch.org/elasticsearch/elasticsearch/%s' % filename 74 print('Extracting to %s' % version_dir) 75 if is_windows: 76 archive = zipfile.ZipFile(filename)ToolingApiCompatibilitySuiteRunner.groovy git://github.com/gradle/gradle.git | Groovy | 172 lines
84 } 85 if (!gradle.daemonIdleTimeoutConfigurable && OperatingSystem.current().isWindows()) { 86 //Older daemon don't have configurable ttl and they hung for 3 hours afterwards. 86 //Older daemon don't have configurable ttl and they hung for 3 hours afterwards. 87 // This is a real problem on windows due to eager file locking and continuous CI failures. 88 // On linux it's a lesser problem - long-lived daemons hung and steal resources but don't lock files. 88 // On linux it's a lesser problem - long-lived daemons hung and steal resources but don't lock files. 89 // So, for windows we'll only run tests against target gradle that supports ttl 90 return false 108 private GradleVersion extractVersion(annotation) { 109 if (GradleVersion.current().isSnapshot() && GradleVersion.current().version.startsWith(annotation.value())) { 110 //so that one can use an unreleased version in the annotation valueGriffonApplicationUtils.java git://github.com/griffon/griffon.git | Java | 520 lines
36 37 private static final boolean isWindows; 38 private static final boolean isWindows95; 38 private static final boolean isWindows95; 39 private static final boolean isWindows98; 40 private static final boolean isWindowsNT; 40 private static final boolean isWindowsNT; 41 private static final boolean isWindows2000; 42 private static final boolean isWindows2003; 42 private static final boolean isWindows2003; 43 private static final boolean isWindowsXP; 44 private static final boolean isWindowsVista; 173 isWindows10 = false; 174 } else if (osName.equals("Windows 8.1") || osName.equals("Windows 10")) { 175 isWindows95 = false;chrome.py https://github.com/romainpreston/windmill.git | Python | 125 lines
21import sys, os 22if not sys.version.startswith('2.4'): 23 from urlparse import urlparse 71 def get_chrome_command(self): 72 #default options, what was used for windows chrome build 73 chrome_options = ['--homepage', self.test_url+'/windmill-serv/start.html','--disable-popup-blocking'] 74 if sys.platform in ('cygwin', 'win32','linux2'): 75 # options for running in windows and linux (same options format) 76 # Run Proxy using option 79 80 #def set_proxy_windows(self): 81 # import ie 84 # 85 # def unset_proxy_windows(self): 86 # self.ie_obj.unset_proxy()SystemUtilsTest.java git://pkgs.fedoraproject.org/apache-commons-lang3 | Java | 365 lines
99 assertEquals(false, SystemUtils.IS_JAVA_1_7); 100 } else if (javaVersion.startsWith("1.1")) { 101 assertEquals(true, SystemUtils.IS_JAVA_1_1); 107 assertEquals(false, SystemUtils.IS_JAVA_1_7); 108 } else if (javaVersion.startsWith("1.2")) { 109 assertEquals(false, SystemUtils.IS_JAVA_1_1); 115 assertEquals(false, SystemUtils.IS_JAVA_1_7); 116 } else if (javaVersion.startsWith("1.3")) { 117 assertEquals(false, SystemUtils.IS_JAVA_1_1); 123 assertEquals(false, SystemUtils.IS_JAVA_1_7); 124 } else if (javaVersion.startsWith("1.4")) { 125 assertEquals(false, SystemUtils.IS_JAVA_1_1); 131 assertEquals(false, SystemUtils.IS_JAVA_1_7); 132 } else if (javaVersion.startsWith("1.5")) { 133 assertEquals(false, SystemUtils.IS_JAVA_1_1);safari.py https://github.com/romainpreston/windmill.git | Python | 204 lines
22import sys, os 23if not sys.version.startswith('2.4'): 24 import urlparse 161 162 def set_proxy_windows(self): 163 self.create_redirect() 167 168 def unset_proxy_windows(self): 169 self.ie_obj.unset_proxy() 175 elif sys.platform in ('cygwin', 'win32'): 176 self.set_proxy_windows() 177 # Workaround for bug in nose 189 elif sys.platform in ('cygwin', 'win32'): 190 self.unset_proxy_windows() 191ReferenceResolution.fs https://fshappowerpack.svn.codeplex.com/svn | F# | 350 lines
42 let ReplaceFrameworkVariables(dirs) = 43 let windowsFramework = System.Environment.GetEnvironmentVariable("windir")+ @"\Microsoft.NET\Framework" 44 let referenceAssemblies = System.Environment.GetEnvironmentVariable("ProgramFiles")+ @"\Reference Assemblies\Microsoft\Framework\.NETFramework" 44 let referenceAssemblies = System.Environment.GetEnvironmentVariable("ProgramFiles")+ @"\Reference Assemblies\Microsoft\Framework\.NETFramework" 45 dirs|>List.map(fun (d:string)->d.Replace("{WindowsFramework}",windowsFramework).Replace("{ReferenceAssemblies}",referenceAssemblies)) 46 48// A: Two reasons 49// 1) For 4.0 we don't know the version number in this path: c:\Windows\Microsoft.NET\Framework\v4.0.xxxxx 50// 2) Fsc.exe-2.0 by design cannot target 4.0 58 if excludeNonExecutableAssemblies 59 then ReplaceFrameworkVariables([@"{WindowsFramework}\"+DotNetRuntime]) 60 else ReplaceFrameworkVariables([@"{ReferenceAssemblies}\"+DotNetRuntimeShort; @"{WindowsFramework}\"+DotNetRuntime]) 77 else if FrameworkStartsWith("v3.0") then ReplaceFrameworkVariables([@"{ReferenceAssemblies}\v3.0"; @"{WindowsFramework}\v3.0"; @"{WindowsFramework}\v2.0.50727"]) 78 else if FrameworkStartsWith("v3.5") then ReplaceFrameworkVariables([@"{ReferenceAssemblies}\v3.5"; @"{WindowsFramework}\v3.5"; @"{ReferenceAssemblies}\v3.0"; @"{WindowsFramework}\v3.0"; @"{WindowsFramework}\v2.0.50727"]) 79#if FX_ATLEAST_40BIDSHelperOptionsVersionCheckPage.cs https://bidshelper.svn.codeplex.com/svn | C# | 333 lines
3 using System; 4 using System.Windows.Forms; 5 using EnvDTE; 194 //TODO - get version number for VS 195 //if (BIDSHelperPackage.Application.Version.StartsWith("8.")) //YUKON runs here 196 // return "2005"; 196 // return "2005"; 197 //else if (BIDSHelperPackage.Application.Version.StartsWith("9.")) //KATMAI runs here 198 // return "2008"; 198 // return "2008"; 199 //else if (BIDSHelperPackage.Application.Version.StartsWith("10.")) //DENALI runs here 200 // return "2010"; 200 // return "2010"; 201 //else if (BIDSHelperPackage.Application.Version.StartsWith("11.")) //DENALI runs here 202 // return "2012";EnvUtil.java https://github.com/huxi/logback.git | Java | 70 lines
36 for (String v : versionList) { 37 if (javaVersion.startsWith(v)) 38 return true; 64 65 public static boolean isWindows() { 66 String os = System.getProperty("os.name"); 66 String os = System.getProperty("os.name"); 67 return os.startsWith("Windows"); 68 }CloudServersUKTemplateBuilderLiveTest.java https://github.com/mattstep/jclouds.git | Java | 87 lines
54 case UBUNTU: 55 return (input.version.equals("") || input.version.equals("10.04") || input.version.startsWith("11")) 56 && input.is64Bit; 61 && input.is64Bit; 62 case WINDOWS: 63 return input.version.equals("2008 SP2") || input.version.equals("")SlicehostTemplateBuilderLiveTest.java https://github.com/mcali/jclouds.git | Java | 89 lines
55 case UBUNTU: 56 return !(input.version.startsWith("11.10") || input.version.equals("8.04") || (input.version 57 .equals("11.04") && !input.is64Bit)); 64 || (input.version.matches("5.[06]") && input.is64Bit); 65 case WINDOWS: 66 return input.version.equals("") || (input.version.equals("2008 SP2") && !input.is64Bit)ensure_gn_version.py git://github.com/chromium/chromium.git | Python | 134 lines
53 54 if not args.version.startswith('git_revision:'): 55 print('Unknown version format: %s' % args.version) 62 elif sys.platform == 'win32': 63 platform, member, dest_dir = ('windows-amd64', 'gn.exe', 'win') 64 else:SwingBuffer.java git://pkgs.fedoraproject.org/kawa | Java | 311 lines
34 if (version != null 35 && (version.startsWith("1.2") || version.startsWith("1.3"))) 36 { 104 // The problem seesm to be that Swing does not properly update 105 // a Windows's caret position when the underlying Document has text 106 // removed. Unfortunately, this fix probably won't do the right 106 // removed. Unfortunately, this fix probably won't do the right 107 // thing for *other windows* that reference the same buffer. FIXME. 108 // (Strangely, the correct thing seems to happen for insertions.)FrmMain.cs https://XCode.svn.codeplex.com/svn | C# | 570 lines
10using System.Threading; 11using System.Windows.Forms; 12using System.Xml; 123 { 124 if (dal.Db.ServerVersion.StartsWith("08")) 125 ds = dal.Select("SELECT name FROM sysdatabases", "");SIPCommunicator.java https://gitlab.com/yorty.ruiz/jitsi | Java | 441 lines
123 124 if (version.startsWith("1.5") || vmVendor.startsWith("Gnu") || 125 vmVendor.startsWith("Free")) 132 os = ChangeJVMFrame.LINUX; 133 else if (osName.startsWith("Windows")) 134 os = ChangeJVMFrame.WINDOWS; 303 } 304 else if (osName.startsWith("Windows")) 305 { 306 /* 307 * Primarily important on Vista because Windows Explorer opens 308 * in %USERPROFILE% so .sip-communicator is always visible. ButNetworkAddressManagerServiceImpl.java https://gitlab.com/yorty.ruiz/jitsi | Java | 749 lines
155 /* use native code (JNI) to find source address for a specific 156 * destination address on Windows XP SP1 and over. 157 * 159 * which will returns us source address. The reason why we cannot use it 160 * on Windows is because its socket implementation returns the any 161 * address... 164 165 if (OSUtils.IS_WINDOWS 166 && !(osVersion = System.getProperty("os.version")).startsWith( 167 "4") /* 95/98/Me/NT */ 168 && !osVersion.startsWith("5.0")) /* 2000 */ 169 { 213 214 //windows socket implementations return the any address so we need to 215 //find something else here ... InetAddress.getLocalHost seems to workCloudServersUSTemplateBuilderLiveTest.java https://github.com/mattstep/jclouds.git | Java | 87 lines
54 case UBUNTU: 55 return (input.version.equals("") || input.version.matches("1[012].04") || input.version.startsWith("11")) 56 && input.is64Bit; 61 && input.is64Bit; 62 case WINDOWS: 63 return input.version.equals("2008 SP2") || input.version.equals("")PuzzlePuz.java http://nookdevs.googlecode.com/svn/trunk/ | Java | 260 lines
73 fp.read(buffer, 0, 3); 74 mVersion = new String(buffer, "Windows-1252"); 75 if ( mVersion.equals("1.2") || mVersion.equals("1.1") || mVersion.equals("1.0") || mVersion.startsWith("0.") ) { 94 fp.read(buffer, 0,mRow*mCol); 95 mSolString = new String(buffer, "Windows-1252"); 96 fp.read(buffer, 0, mRow*mCol); 96 fp.read(buffer, 0, mRow*mCol); 97 mGrid = new String(buffer,"Windows-1252"); 98 int size =(int)(fp.length() - fp.getFilePointer()); 100 fp.read(buffer, 0, size); 101 String tmp = new String(buffer,"Windows-1252"); 102 String[] data= tmp.split("\0"); 203 } else if(keyword.equals("RTBL")) { 204 mRebusTableString = new String( buffer, i, size, "Windows-1252"); 205 i+=size;ThisAddIn.cs https://outlookdataexp.svn.codeplex.com/svn | C# | 252 lines
124 125 if (!this.Application.Version.StartsWith(version)) 126 { 232 233 private class IconConverter : System.Windows.Forms.AxHost 234 {SvnDiffDialog.py git://pkgs.fedoraproject.org/eric | Python | 368 lines
47 48 if Utilities.isWindowsPlatform(): 49 self.contents.setFontFamily("Lucida Console") 77 return pysvn.Revision(pysvn.opt_revision_kind.number, version) 78 elif version.startswith("{"): 79 dateStr = version[1:-1]GitVersion.cs git://github.com/spdr870/gitextensions.git | C# | 208 lines
64 65 if (version.StartsWith(Prefix)) 66 { 127 // used at commit time. 128 // This causes problems under Windows, where command line arguments are 129 // passed as WideChars. Git uses argv, which contains strings 203 .Replace(".msysgit.1", "") 204 .Replace(".windows.0", "") 205 .Replace(".windows.1", "");CloudServersUSTemplateBuilderLiveTest.java https://github.com/mcali/jclouds.git | Java | 85 lines
54 case UBUNTU: 55 return !(input.version.startsWith("11.10") || input.version.equals("8.04")) && input.is64Bit; 56 case DEBIAN: 59 return !(input.version.matches("5.[0237]") || input.version.equals("6.0")) && input.is64Bit; 60 case WINDOWS: 61 return input.version.equals("2008 SP2") || input.version.equals("")versioncheck.py git://github.com/rembo10/headphones.git | Python | 252 lines
65def getVersion(): 66 if version.HEADPHONES_VERSION.startswith('win32build'): 67 headphones.INSTALL_TYPE = 'win' 69 # Don't have a way to update exe yet, but don't want to set VERSION to None 70 return 'Windows Install', 'master' 71 176 if headphones.INSTALL_TYPE == 'win': 177 logger.info('Windows .exe updating not supported yet.') 178SystemUtilsTest.java https://bitbucket.org/glawler2/gavinlawlerrepo.git | Java | 376 lines
102 assertFalse(SystemUtils.IS_JAVA_1_7); 103 } else if (javaVersion.startsWith("1.1")) { 104 assertTrue(SystemUtils.IS_JAVA_1_1); 110 assertFalse(SystemUtils.IS_JAVA_1_7); 111 } else if (javaVersion.startsWith("1.2")) { 112 assertFalse(SystemUtils.IS_JAVA_1_1); 118 assertFalse(SystemUtils.IS_JAVA_1_7); 119 } else if (javaVersion.startsWith("1.3")) { 120 assertFalse(SystemUtils.IS_JAVA_1_1); 126 assertFalse(SystemUtils.IS_JAVA_1_7); 127 } else if (javaVersion.startsWith("1.4")) { 128 assertFalse(SystemUtils.IS_JAVA_1_1); 134 assertFalse(SystemUtils.IS_JAVA_1_7); 135 } else if (javaVersion.startsWith("1.5")) { 136 assertFalse(SystemUtils.IS_JAVA_1_1);DatabasePage.cs https://hg.codeplex.com/websitepanel | C# | 245 lines
36using System.Threading; 37using System.Windows.Forms; 38 65 { 66 bool windowsAuthentication = false; 67 if ( !string.IsNullOrEmpty(SetupVariables.DbInstallConnectionString )) 86 if (value.Trim().ToLower() == "sspi") 87 windowsAuthentication = true; 88 break; 98 } 99 cbAuthentication.SelectedIndex = windowsAuthentication ? 0 : 1; 100 } 126 string sqlVersion = GetSqlServerVersion(connectionString); 127 if (!sqlVersion.StartsWith("9.") && !sqlVersion.StartsWith("10.") && !sqlVersion.StartsWith("11.")) 128 {EnvUtil.java git://pkgs.fedoraproject.org/logback | Java | 50 lines
26 } 27 if (javaVersion.startsWith("1.5")) { 28 return true; 43 44 public static boolean isWindows() { 45 String os = System.getProperty("os.name"); 45 String os = System.getProperty("os.name"); 46 return os.startsWith("Windows"); 47 }BrowserHelper.cs https://hg.codeplex.com/mojoportal | C# | 250 lines
34 HttpBrowserCapabilities browser = HttpContext.Current.Request.Browser; 35 if ((browser.Browser == IE) && (browser.Version.StartsWith(Version6))) 36 { 52 HttpBrowserCapabilities browser = HttpContext.Current.Request.Browser; 53 if ((browser.Browser == IE) && (browser.Version.StartsWith(Version7))) 54 { 70 HttpBrowserCapabilities browser = HttpContext.Current.Request.Browser; 71 if ((browser.Browser == IE) && (browser.Version.StartsWith(Version8))) 72 { 88 HttpBrowserCapabilities browser = HttpContext.Current.Request.Browser; 89 if ((browser.Browser == IE) && (browser.Version.StartsWith(Version9))) 90 { 234 235 public static bool IsWindowsLiveWriter() 236 {msvctoolchain.cpp git://pkgs.fedoraproject.org/qt-creator | C++ | 729 lines
104 QString msvcVersionString = version; 105 if (type == MsvcToolChain::WindowsSDK) { 106 if (version.startsWith(QLatin1String("7."))) 107 msvcVersionString = QLatin1String("10.0"); 108 else if (version.startsWith(QLatin1String("6.1")) 109 || (version.startsWith(QLatin1String("6.0")) && version != QLatin1String("6.0"))) 115 if (msvcVersionString.startsWith(QLatin1String("10."))) 116 flavor = Abi::WindowsMsvc2010Flavor; 117 else if (msvcVersionString.startsWith(QLatin1String("9."))) 117 else if (msvcVersionString.startsWith(QLatin1String("9."))) 118 flavor = Abi::WindowsMsvc2008Flavor; 119 else 119 else 120 flavor = Abi::WindowsMsvc2005Flavor; 121settings.py https://github.com/CollabQ/CollabQ.git | Python | 442 lines
21# for python 2.6 22if sys.version.startswith('2.6'): 23 import logging 61# although not all choices may be available on all operating systems. 62# If running in a Windows environment this must be set to the same as your 63# system time zone.Constants.cs https://iReaper.svn.codeplex.com/svn | C# | 91 lines
41 /// <summary>True iff this is Java version 1.1. </summary> 42 public static readonly bool JAVA_1_1 = JAVA_VERSION.StartsWith("1.1."); 43 /// <summary>True iff this is Java version 1.2. </summary> 43 /// <summary>True iff this is Java version 1.2. </summary> 44 public static readonly bool JAVA_1_2 = JAVA_VERSION.StartsWith("1.2."); 45 /// <summary>True iff this is Java version 1.3. </summary> 45 /// <summary>True iff this is Java version 1.3. </summary> 46 public static readonly bool JAVA_1_3 = JAVA_VERSION.StartsWith("1.3."); 47 48 /// <summary>The value of <tt>System.getProperty("os.name")</tt>. *</summary> 49 public static readonly System.String OS_NAME = "Windows_NT"; 50 /// <summary>True iff running on Linux. </summary> 52 /// <summary>True iff running on Windows. </summary> 53 public static readonly bool WINDOWS = OS_NAME.StartsWith("Windows"); 54 /// <summary>True iff running on SunOS. </summary>SysInfo.java https://github.com/memlab/Penn-TotalRecall.git | Java | 479 lines
121 if(osName == null) { 122 isSolaris = isMacOSX = isMacAny = isLinux = isWindowsAny = isWindows7 = isOpenJDK = false; 123 } 135 isLinux = true; 136 isSolaris = isWindowsAny = isWindows7 = isMacOSX = isMacAny = false; 137 String vmName = System.getProperty("java.vm.name"); 151 isMacAny = true; 152 isSolaris = isWindowsAny = isWindows7 = isMacOSX = isLinux = isOpenJDK = false; 153 } 158 else { 159 isSolaris = isMacAny = isWindowsAny = isWindows7 = isMacOSX = isLinux = isOpenJDK = false; 160 System.err.println("cannot recognize your operating system"); 381 //ideally an ordered collection of contingencies in order of preference 382 else if(isWindowsAny){ //Windows settings will serve as defaults 383 preferDefaultJSMixerLine = true; //very bizarre, but if you explicitly request a MixerSourceLine (same class as you get automatically), audio is horribleNodeAndNPMInstaller.java https://gitlab.com/robsonEXD/frontend-maven-plugin | Java | 232 lines
63 if(!nodeIsAlreadyInstalled()){ 64 if(config.getPlatform().isWindows()){ 65 installNodeForWindows(); 160 logger.info("Installing node version " + nodeVersion); 161 if (!nodeVersion.startsWith("v")) { 162 logger.warn("Node version does not start with naming convention 'v'."); 208 209 private void installNodeForWindows() throws InstallationException { 210 final String downloadUrl = nodeDownloadRoot + config.getPlatform().getNodeDownloadFilename(nodeVersion);InstallPrerequisite.cs https://UCSDBioLit.svn.codeplex.com/svn | C# | 280 lines
7using System.Text; 8using System.Windows.Forms; 9using System.Diagnostics; 72 73 if (!IsWindowsInstallerInstalled()) 74 { 75 lblPrerequisiteMsg.Text = "Prerequisite for Ontology Recognition add-in is being installed..."; 76 InstallWindowsInstaller(); 77 } 97 98 private void InstallWindowsInstaller() 99 { 107 { 108 case "Windows Vista": 109 if (Environment.OSVersion.Platform.ToString().Contains("32"))WindowsLFCustoms.java https://github.com/mark-moseley/Netbeans.git | Java | 255 lines
58 59/** Default system-provided customizer for Windows LF 60 * Public only to be accessible by ProxyLazyValue, please don't abuse. 61 */ 62public final class WindowsLFCustoms extends LFCustoms { 63 71 String version = System.getProperty("java.version"); 72 if( version.startsWith("1.5") ) { 73 //#112473 - wrong password text field height 80 81 //Work around a bug in windows which sets the text area font to 82 //"MonoSpaced", causing all accessible dialogs to have monospaced text 113 EDITOR_TAB_DISPLAYER_UI, "org.netbeans.swing.tabcontrol.plaf.WinClassicEditorTabDisplayerUI", 114 SLIDING_BUTTON_UI, "org.netbeans.swing.tabcontrol.plaf.WindowsSlidingButtonUI", 115 VIEW_TAB_DISPLAYER_UI, "org.netbeans.swing.tabcontrol.plaf.WinClassicViewTabDisplayerUI",SagaAlgorithmProvider.py git://github.com/qgis/Quantum-GIS.git | Python | 166 lines
32from processing.core.ProcessingConfig import ProcessingConfig, Setting 33from processing.tools.system import isWindows, isMac 34 81 version = SagaUtils.getInstalledVersion(True) 82 if version is not None and (version.startswith(REQUIRED_VERSION) or version.startswith(BETA_SUPPORT_VERSION)): 83 return True 87 version = SagaUtils.getInstalledVersion(True) 88 if version is not None and version.startswith(BETA_SUPPORT_VERSION): 89 return self.tr('SAGA version {} is not officially supported - algorithms may encounter issues').format(version) 98 99 if not version.startswith(REQUIRED_VERSION) and not version.startswith(BETA_SUPPORT_VERSION): 100 QgsMessageLog.logMessage(self.tr('Problem with SAGA installation: unsupported SAGA version (found: {}, required: {}).').format(version, REQUIRED_VERSION),GetBuildVersion.cs git://github.com/AArnott/dotnetopenid.git | C# | 196 lines
111 var psi = new ProcessStartInfo(cmdPath, "/c git rev-parse HEAD") { 112 WindowStyle = ProcessWindowStyle.Hidden, 113 CreateNoWindow = true, 164 if (!String.IsNullOrEmpty(prereleaseVersion)) { 165 if (!prereleaseVersion.StartsWith("-")) { 166 // SemVer requires that prerelease suffixes begin with a hyphen, so add one if it's missing.Kontalk.java https://gitlab.com/sgk/kontalk | Java | 179 lines
61 String jVersion = System.getProperty("java.version"); 62 if (jVersion.startsWith("1.7")) { 63 View.showWrongJavaVersionDialog(); 69 String homeDir = System.getProperty("user.home"); 70 if (SystemUtils.IS_OS_WINDOWS) { 71 CONFIG_DIR = Paths.get(homeDir,"Kontalk").toString();TemplateTypeSelectionPage.cs https://spsf.svn.codeplex.com/svn | C# | 101 lines
4using System.Drawing; 5using System.Windows.Forms; 6using Microsoft.Practices.WizardFramework; 22 { 23 // This call is required by the Windows Form Designer. 24 InitializeComponent(); 43 //vs 2008 44 if (!dte.Version.StartsWith("10.")) 45 {DatabasePage.cs https://hg01.codeplex.com/websitepanel | C# | 245 lines
36using System.Threading; 37using System.Windows.Forms; 38 65 { 66 bool windowsAuthentication = false; 67 if ( !string.IsNullOrEmpty(SetupVariables.DbInstallConnectionString )) 86 if (value.Trim().ToLower() == "sspi") 87 windowsAuthentication = true; 88 break; 98 } 99 cbAuthentication.SelectedIndex = windowsAuthentication ? 0 : 1; 100 } 126 string sqlVersion = GetSqlServerVersion(connectionString); 127 if (!sqlVersion.StartsWith("9.") && !sqlVersion.StartsWith("10.") && !sqlVersion.StartsWith("11.") && !sqlVersion.StartsWith("12.")) 128 {