text
stringlengths
2
1.04M
meta
dict
package kg.jl.common; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("kg.jl.common.test", appContext.getPackageName()); } }
{ "content_hash": "91f446bb78faf3093f30e0586b5e78a4", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 78, "avg_line_length": 28.192307692307693, "alnum_prop": 0.7421555252387448, "repo_name": "coca-cola33/CloudFilm", "id": "585abba6f2aa05e68e870464ce47fbf0fbf3a35a", "size": "733", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "common/src/androidTest/java/kg/jl/common/ExampleInstrumentedTest.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "887574" } ], "symlink_target": "" }
var path = require('path'); var aliasify = require('aliasify'); var common = require('./platforms/common'); var fs = require('fs'); var childProcess = require('child_process'); var events = require('cordova-common').events; var bundle = require('cordova-js/tasks/lib/bundle-browserify'); var writeLicenseHeader = require('cordova-js/tasks/lib/write-license-header'); var Q = require('q'); var computeCommitId = require('cordova-js/tasks/lib/compute-commit-id'); var Readable = require('stream').Readable; var PlatformJson = require('cordova-common').PlatformJson; var PluginInfoProvider = require('cordova-common').PluginInfoProvider; function generateFinalBundle (platform, libraryRelease, outReleaseFile, commitId, platformVersion) { var deferred = Q.defer(); var outReleaseFileStream = fs.createWriteStream(outReleaseFile); var time = new Date().valueOf(); writeLicenseHeader(outReleaseFileStream, platform, commitId, platformVersion); var releaseBundle = libraryRelease.bundle(); releaseBundle.pipe(outReleaseFileStream); outReleaseFileStream.on('finish', function () { var newtime = new Date().valueOf() - time; events.emit('verbose', 'generated cordova.' + platform + '.js @ ' + commitId + ' in ' + newtime + 'ms'); deferred.resolve(); // TODO clean up all the *.browserify files }); outReleaseFileStream.on('error', function (err) { events.emit('warn', 'Error while generating cordova.js'); deferred.reject(err); }); return deferred.promise; } function computeCommitIdSync () { var deferred = Q.defer(); computeCommitId(function (cId) { deferred.resolve(cId); }); return deferred.promise; } function getPlatformVersion (cId, project_dir) { var deferred = Q.defer(); // run version script for each platform to get platformVersion var versionPath = path.join(project_dir, '/cordova/version'); childProcess.exec('"' + versionPath + '"', function (err, stdout, stderr) { if (err) { err.message = 'Failed to get platform version (will use \'N/A\' instead).\n' + err.message; events.emit('warn', err); deferred.resolve('N/A'); } else { deferred.resolve(stdout.trim()); } }); return deferred.promise; } module.exports = function doBrowserify (project, platformApi, pluginInfoProvider) { // Process: // - Do config munging by calling into config-changes module // - List all plugins in plugins_dir // - Load and parse their plugin.xml files. // - Skip those without support for this platform. (No <platform> tags means JS-only!) // - Build a list of all their js-modules, including platform-specific js-modules. // - For each js-module (general first, then platform) build up an object storing the path and any clobbers, merges and runs for it. // Write this object into www/cordova_plugins.json. // This file is not really used. Maybe cordova app harness var platform = platformApi.platform; events.emit('verbose', 'Preparing ' + platform + ' browserify project'); pluginInfoProvider = pluginInfoProvider || new PluginInfoProvider(); // Allow null for backwards-compat. var platformJson = PlatformJson.load(project.locations.plugins, platform); var wwwDir = platformApi.getPlatformInfo().locations.www; var commitId; return computeCommitIdSync() .then(function (cId) { commitId = cId; return getPlatformVersion(commitId, platformApi.root); }).then(function (platformVersion) { var libraryRelease = bundle(platform, false, commitId, platformVersion, platformApi.getPlatformInfo().locations.platformWww); var pluginMetadata = {}; var modulesMetadata = []; var plugins = Object.keys(platformJson.root.installed_plugins).concat(Object.keys(platformJson.root.dependent_plugins)); events.emit('verbose', 'Iterating over plugins in project:', plugins); plugins.forEach(function (plugin) { var pluginDir = path.join(project.locations.plugins, plugin); var pluginInfo = pluginInfoProvider.get(pluginDir); // pluginMetadata is a mapping from plugin IDs to versions. pluginMetadata[pluginInfo.id] = pluginInfo.version; // Copy www assets described in <asset> tags. pluginInfo.getAssets(platform) .forEach(function (asset) { common.asset.install(asset, pluginDir, wwwDir); }); pluginInfo.getJsModules(platform) .forEach(function (jsModule) { var moduleName = jsModule.name ? jsModule.name : path.basename(jsModule.src, '.js'); var moduleId = pluginInfo.id + '.' + moduleName; var moduleMetadata = { file: jsModule.src, id: moduleId, name: moduleName, pluginId: pluginInfo.id }; if (jsModule.clobbers.length > 0) { moduleMetadata.clobbers = jsModule.clobbers.map(function (o) { return o.target; }); } if (jsModule.merges.length > 0) { moduleMetadata.merges = jsModule.merges.map(function (o) { return o.target; }); } if (jsModule.runs) { moduleMetadata.runs = true; } modulesMetadata.push(moduleMetadata); libraryRelease.require(path.join(pluginDir, jsModule.src), { expose: moduleId }); }); }); events.emit('verbose', 'Writing out cordova_plugins.js...'); // Create a stream and write plugin metadata into it // instead of generating intermediate file on FS var cordova_plugins = new Readable(); cordova_plugins.push( 'module.exports = ' + JSON.stringify(modulesMetadata, null, 2) + ';\n' + 'module.exports.metadata = ' + JSON.stringify(pluginMetadata, null, 2) + ';\n', 'utf8'); cordova_plugins.push(null); var bootstrap = new Readable(); bootstrap.push('require(\'cordova/init\');\n', 'utf8'); bootstrap.push(null); var moduleAliases = modulesMetadata .reduce(function (accum, meta) { accum['./' + meta.name] = meta.id; return accum; }, {}); libraryRelease .add(cordova_plugins, {file: path.join(wwwDir, 'cordova_plugins.js'), expose: 'cordova/plugin_list'}) .add(bootstrap) .transform(aliasify, {aliases: moduleAliases}); var outReleaseFile = path.join(wwwDir, 'cordova.js'); return generateFinalBundle(platform, libraryRelease, outReleaseFile, commitId, platformVersion); }); };
{ "content_hash": "b5787bd890456bdbc273644cf8b6746e", "timestamp": "", "source": "github", "line_count": 162, "max_line_length": 137, "avg_line_length": 44.51851851851852, "alnum_prop": 0.5990016638935108, "repo_name": "purplecabbage/cordova-lib", "id": "1a773711a9c51ebb0f80858be7f5f717fc7880d4", "size": "8027", "binary": false, "copies": "6", "ref": "refs/heads/master", "path": "src/plugman/browserify.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "20076" }, { "name": "C", "bytes": "1420" }, { "name": "CSS", "bytes": "74380" }, { "name": "HTML", "bytes": "82245" }, { "name": "Java", "bytes": "278938" }, { "name": "JavaScript", "bytes": "923328" }, { "name": "Matlab", "bytes": "1411" }, { "name": "Objective-C", "bytes": "1520" }, { "name": "Shell", "bytes": "555" }, { "name": "Smalltalk", "bytes": "332" } ], "symlink_target": "" }
#ifndef MBED_COMMON_OBJECTS_H #define MBED_COMMON_OBJECTS_H #include "cmsis.h" #include "PortNames.h" #include "PeripheralNames.h" #include "PinNames.h" #ifdef __cplusplus extern "C" { #endif struct pwmout_s { PWMName pwm; PinName pin; uint32_t prescaler; uint32_t period; uint32_t pulse; uint8_t channel; uint8_t inverted; }; struct spi_s { SPI_HandleTypeDef handle; IRQn_Type spiIRQ; SPIName spi; PinName pin_miso; PinName pin_mosi; PinName pin_sclk; PinName pin_ssel; #ifdef DEVICE_SPI_ASYNCH uint32_t event; uint8_t transfer_type; #endif }; struct serial_s { UARTName uart; int index; // Used by irq uint32_t baudrate; uint32_t databits; uint32_t stopbits; uint32_t parity; PinName pin_tx; PinName pin_rx; #if DEVICE_SERIAL_ASYNCH uint32_t events; #endif #if DEVICE_SERIAL_FC uint32_t hw_flow_ctl; PinName pin_rts; PinName pin_cts; #endif }; struct i2c_s { /* The 1st 2 members I2CName i2c * and I2C_HandleTypeDef handle should * be kept as the first members of this struct * to ensure i2c_get_obj to work as expected */ I2CName i2c; I2C_HandleTypeDef handle; uint8_t index; int hz; PinName sda; PinName scl; IRQn_Type event_i2cIRQ; IRQn_Type error_i2cIRQ; uint32_t XferOperation; volatile uint8_t event; volatile int pending_start; #if DEVICE_I2CSLAVE uint8_t slave; volatile uint8_t pending_slave_tx_master_rx; volatile uint8_t pending_slave_rx_maxter_tx; #endif #if DEVICE_I2C_ASYNCH uint32_t address; uint8_t stop; uint8_t available_events; #endif }; #include "gpio_object.h" #if DEVICE_ANALOGOUT struct dac_s { DACName dac; PinName pin; uint32_t channel; DAC_HandleTypeDef handle; }; #endif #ifdef __cplusplus } #endif /* STM32F0 HAL doesn't provide this API called in rtc_api.c */ #define __HAL_RCC_RTC_CLKPRESCALER(__RTCCLKSource__) #define RTC_WKUP_IRQn RTC_IRQn #endif
{ "content_hash": "30388525dede4739bf38e0c4853a4318", "timestamp": "", "source": "github", "line_count": 105, "max_line_length": 62, "avg_line_length": 19.228571428571428, "alnum_prop": 0.6666666666666666, "repo_name": "NXPmicro/mbed", "id": "c0e1bc1dd451af953825c8414df6d5c5caacd83d", "size": "3788", "binary": false, "copies": "7", "ref": "refs/heads/master", "path": "targets/TARGET_STM/TARGET_STM32F0/common_objects.h", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Assembly", "bytes": "6540059" }, { "name": "Batchfile", "bytes": "22" }, { "name": "C", "bytes": "286544888" }, { "name": "C++", "bytes": "10170292" }, { "name": "CMake", "bytes": "5285" }, { "name": "HTML", "bytes": "2063156" }, { "name": "Makefile", "bytes": "103452" }, { "name": "Objective-C", "bytes": "434371" }, { "name": "Perl", "bytes": "2589" }, { "name": "Python", "bytes": "38809" }, { "name": "Shell", "bytes": "16819" }, { "name": "XSLT", "bytes": "5596" } ], "symlink_target": "" }
<!DOCTYPE html> <html> <head> <title>ARIA 1.0 Test Case 719</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <h1>ARIA 1.0 Test Case 719</h1> <div id="TEST_ID_1"> </div> <h2>Description</h2> <p>The aria-live attribute is added to an element in the document by a script after the onload event completes with the value="polite" and the element has a child DOM element node that contains text content. After the aria-live attribute is added, the CSS 'visibility' property of the child DOM element node is changed to visibility="hidden".</p> <script type="text/javascript"> function hideElement() { var node = document.getElementById('TEST_ID_2'); node.style.visibility = "hidden"; } function addLiveRegion() { var node = document.getElementById('TEST_ID_1'); var live_node = document.createElement('div'); live_node.setAttribute('aria-live', 'polite'); var element_node = document.createElement('div'); element_node.setAttribute('id', 'TEST_ID_2'); var text_node = document.createTextNode('TEST TEXT'); element_node.appendChild(text_node); live_node.appendChild(element_node); node.appendChild(live_node); setTimeout(hideElement,500); } function onload() { setTimeout(addLiveRegion,1000); } window.addEventListener('load', onload); </script> </body> </html>
{ "content_hash": "a046255aff4749bf00a4a8fd7d2928a4", "timestamp": "", "source": "github", "line_count": 53, "max_line_length": 76, "avg_line_length": 29.92452830188679, "alnum_prop": 0.6078184110970997, "repo_name": "youtube/cobalt", "id": "4fd10b746b761b2597fb45c66c3e24d6d5b39625", "size": "1586", "binary": false, "copies": "215", "ref": "refs/heads/master", "path": "third_party/web_platform_tests/conformance-checkers/html-aria/accessible-name-updates/719.html", "mode": "33188", "license": "bsd-3-clause", "language": [], "symlink_target": "" }
package com.foc.formula.fucntion.old; import com.foc.formula.FunctionFactory; public class FunctionNot extends BooleanFunction { private static final String FUNCTION_NAME = "NOT"; private static final String OPERATOR_SYMBOL = "!"; public Object compute() { boolean res = false; IOperand operand1 = getOperandAt(0); if(operand1 != null){ String operandStr = String.valueOf(operand1.compute()); boolean operand1Boolean = Boolean.valueOf(operandStr); res = !operand1Boolean; } return res; } public boolean needsManualNotificationToCompute() { return false; } public static String getFunctionName(){ return FUNCTION_NAME; } public static String getOperatorSymbol(){ return OPERATOR_SYMBOL; } public static int getOperatorPriority(){ return FunctionFactory.PRIORITY_UNARY_SIGN_OPERATOR; } }
{ "content_hash": "1d8119f7f8179c40bb844317a534ff21", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 58, "avg_line_length": 23.756756756756758, "alnum_prop": 0.7076222980659841, "repo_name": "FOC-framework/framework", "id": "4b5343f4bc606a56c094cf02bb1f75e8008e080c", "size": "1656", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "foc/src/com/foc/formula/fucntion/old/FunctionNot.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Groovy", "bytes": "99" }, { "name": "Java", "bytes": "9889245" }, { "name": "SCSS", "bytes": "77175" } ], "symlink_target": "" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login Page - Photon Admin Panel Theme</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <link rel="shortcut icon" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/favicon.ico" /> <link rel="apple-touch-icon" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/iosicon.png" /> <!-- DEVELOPMENT LESS --> <!-- <link rel="stylesheet/less" href="css/photon.less" media="all" /> <link rel="stylesheet/less" href="css/photon-responsive.less" media="all" /> --> <!-- PRODUCTION CSS --> <link rel="stylesheet" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/css/css_compiled/photon-min.css?v1.1" media="all" /> <link rel="stylesheet" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/css/css_compiled/photon-min-part2.css?v1.1" media="all" /> <link rel="stylesheet" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/css/css_compiled/photon-responsive-min.css?v1.1" media="all" /> <!--[if IE]> <link rel="stylesheet" type="text/css" href="css/css_compiled/ie-only-min.css?v1.1" /> <![endif]--> <!--[if lt IE 9]> <link rel="stylesheet" type="text/css" href="css/css_compiled/ie8-only-min.css?v1.1" /> <script type="text/javascript" src="js/plugins/excanvas.js"></script> <script type="text/javascript" src="js/plugins/html5shiv.js"></script> <script type="text/javascript" src="js/plugins/respond.min.js"></script> <script type="text/javascript" src="js/plugins/fixFontIcons.js"></script> <![endif]--> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/bootstrap/bootstrap.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/modernizr.custom.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.pnotify.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/less-1.3.1.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/xbreadcrumbs.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.maskedinput-1.3.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.autotab-1.1b.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/charCount.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.textareaCounter.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/elrte.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/elrte.en.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/select2.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery-picklist.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.validate.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/additional-methods.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.form.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.metadata.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.mockjax.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.uniform.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.tagsinput.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.rating.pack.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/farbtastic.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.timeentry.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.dataTables.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.jstree.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/dataTables.bootstrap.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.mousewheel.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.mCustomScrollbar.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.flot.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.flot.stack.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.flot.pie.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.flot.resize.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/raphael.2.1.0.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/justgage.1.0.1.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.qrcode.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.clock.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.countdown.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.jqtweet.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/jquery.cookie.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/bootstrap-fileupload.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/prettify/prettify.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/bootstrapSwitch.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/plugins/mfupload.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/js/common.js"></script> </head> <body class="body-login"> <div class="nav-fixed-topright" style="visibility: hidden"> <ul class="nav nav-user-menu"> <li class="user-sub-menu-container"> <a href="javascript:;"> <i class="user-icon"></i><span class="nav-user-selection">Theme Options</span><i class="icon-menu-arrow"></i> </a> <ul class="nav user-sub-menu"> <li class="light"> <a href="javascript:;"> <i class='icon-photon stop'></i>Light Version </a> </li> <li class="dark"> <a href="javascript:;"> <i class='icon-photon stop'></i>Dark Version </a> </li> </ul> </li> <li> <a href="javascript:;"> <i class="icon-photon mail"></i> </a> </li> <li> <a href="javascript:;"> <i class="icon-photon comment_alt2_stroke"></i> <div class="notification-count">12</div> </a> </li> </ul> </div> <script> $(function(){ setTimeout(function(){ $('.nav-fixed-topright').removeAttr('style'); }, 300); $(window).scroll(function(){ if($('.breadcrumb-container').length){ var scrollState = $(window).scrollTop(); if (scrollState > 0) $('.nav-fixed-topright').addClass('nav-released'); else $('.nav-fixed-topright').removeClass('nav-released') } }); $('.user-sub-menu-container').on('click', function(){ $(this).toggleClass('active-user-menu'); }); $('.user-sub-menu .light').on('click', function(){ if ($('body').is('.light-version')) return; $('body').addClass('light-version'); setTimeout(function() { $.cookie('themeColor', 'light', { expires: 7, path: '/' }); }, 500); }); $('.user-sub-menu .dark').on('click', function(){ if ($('body').is('.light-version')) { $('body').removeClass('light-version'); $.cookie('themeColor', 'dark', { expires: 7, path: '/' }); } }); }); </script> <div class="container-login"> <div class="form-centering-wrapper"> <div class="form-window-login"> <div class="form-window-login-logo"> <div class="login-logo"> <img src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/images/photon/login-logo@2x.png" alt="Photon UI"/> </div> <h2 class="login-title">Welcome to Photon UI!</h2> <div class="login-member">Not a Member?&nbsp;<a href="elrte.min.js.html#">Sign Up &#187;</a> <a href="elrte.min.js.html#" class="btn btn-facebook"><i class="icon-fb"></i>Login with Facebook<i class="icon-fb-arrow"></i></a> </div> <div class="login-or">Or</div> <div class="login-input-area"> <form method="POST" action="dashboard.php"> <span class="help-block">Login With Your Photon Account</span> <input type="text" name="email" placeholder="Email"> <input type="password" name="password" placeholder="Password"> <button type="submit" class="btn btn-large btn-success btn-login">Login</button> </form> <a href="elrte.min.js.html#" class="forgot-pass">Forgot Your Password?</a> </div> </div> </div> </div> </div> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-1936460-27']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </body> </html>
{ "content_hash": "ff022b4967017444ebe9712896d520dd", "timestamp": "", "source": "github", "line_count": 196, "max_line_length": 246, "avg_line_length": 86.89795918367346, "alnum_prop": 0.6914044152184124, "repo_name": "user-tony/photon-rails", "id": "6dd96ee5d70f2e2d06eeb34ccd8b4b06e5514025", "size": "17032", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/assets/css/css_compiled/@{photonImagePath}plugins/elrte/js/plugins/css/css_compiled/js/plugins/prettify/js/plugins/elrte.min.js.html", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "291750913" }, { "name": "JavaScript", "bytes": "59305" }, { "name": "Ruby", "bytes": "203" }, { "name": "Shell", "bytes": "99" } ], "symlink_target": "" }
package B; import A.ParentClass; class ChildClass extends ParentClass { }
{ "content_hash": "f854eaca524e1e3325d43afc0062bb47", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 38, "avg_line_length": 10.857142857142858, "alnum_prop": 0.7763157894736842, "repo_name": "theScratchLad/Algorithms", "id": "fe265353952b844b2904533f74e03a4c4ae2638c", "size": "76", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "hackerrank/personal hacks/B/ChildClass.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "41889" }, { "name": "Python", "bytes": "526" } ], "symlink_target": "" }
package com.panoramagl.opengl; import java.nio.Buffer; import java.nio.FloatBuffer; import java.nio.IntBuffer; import java.nio.ShortBuffer; import javax.microedition.khronos.opengles.GL; import javax.microedition.khronos.opengles.GL10; import javax.microedition.khronos.opengles.GL10Ext; import javax.microedition.khronos.opengles.GL11; import javax.microedition.khronos.opengles.GL11Ext; import javax.microedition.khronos.opengles.GL11ExtensionPack; import android.opengl.GLSurfaceView; public class GLWrapper implements IGLWrapper, GL11ExtensionPack { /**member variables*/ private GL10 mGL; private GL10Ext mGL10Ext; private GL11 mGL11; private GL11Ext mGL11Ext; private GL11ExtensionPack mGL11ExtPack; private GLSurfaceView mGLSurfaceView; /**init methods*/ public GLWrapper(GL gl, GLSurfaceView glSurfaceView) { mGL = (GL10)gl; if(gl instanceof GL10Ext) { mGL10Ext = (GL10Ext)gl; } if(gl instanceof GL11) { mGL11 = (GL11)gl; } if(gl instanceof GL11Ext) { mGL11Ext = (GL11Ext)gl; } if(gl instanceof GL11ExtensionPack) { mGL11ExtPack = (GL11ExtensionPack)gl; } mGLSurfaceView = glSurfaceView; } /**property methods*/ @Override public GLSurfaceView getGLSurfaceView() { return mGLSurfaceView; } /**GL10 methods*/ @Override public void glActiveTexture(int texture) { mGL.glActiveTexture(texture); } @Override public void glAlphaFunc(int func, float ref) { mGL.glAlphaFunc(func, ref); } @Override public void glAlphaFuncx(int func, int ref) { mGL.glAlphaFuncx(func, ref); } @Override public void glBindTexture(int target, int texture) { mGL.glBindTexture(target, texture); } @Override public void glBlendFunc(int sfactor, int dfactor) { mGL.glBlendFunc(sfactor, dfactor); } @Override public void glClear(int mask) { mGL.glClear(mask); } @Override public void glClearColor(float red, float green, float blue, float alpha) { mGL.glClearColor(red, green, blue, alpha); } @Override public void glClearColorx(int red, int green, int blue, int alpha) { mGL.glClearColorx(red, green, blue, alpha); } @Override public void glClearDepthf(float depth) { mGL.glClearDepthf(depth); } @Override public void glClearDepthx(int depth) { mGL.glClearDepthx(depth); } @Override public void glClearStencil(int s) { mGL.glClearStencil(s); } @Override public void glClientActiveTexture(int texture) { mGL.glClientActiveTexture(texture); } @Override public void glColor4f(float red, float green, float blue, float alpha) { mGL.glColor4f(red, green, blue, alpha); } @Override public void glColor4x(int red, int green, int blue, int alpha) { mGL.glColor4x(red, green, blue, alpha); } @Override public void glColorMask(boolean red, boolean green, boolean blue, boolean alpha) { mGL.glColorMask(red, green, blue, alpha); } @Override public void glColorPointer(int size, int type, int stride, Buffer pointer) { mGL.glColorPointer(size, type, stride, pointer); } @Override public void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data) { mGL.glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data); } @Override public void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer data) { mGL.glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data); } @Override public void glCopyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border) { mGL.glCopyTexImage2D(target, level, internalformat, x, y, width, height, border); } @Override public void glCopyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) { mGL.glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height); } @Override public void glCullFace(int mode) { mGL.glCullFace(mode); } @Override public void glDeleteTextures(int n, IntBuffer textures) { mGL.glDeleteTextures(n, textures); } @Override public void glDeleteTextures(int n, int[] textures, int offset) { mGL.glDeleteTextures(n, textures, offset); } @Override public void glDepthFunc(int func) { mGL.glDepthFunc(func); } @Override public void glDepthMask(boolean flag) { mGL.glDepthMask(flag); } @Override public void glDepthRangef(float zNear, float zFar) { mGL.glDepthRangef(zNear, zFar); } @Override public void glDepthRangex(int zNear, int zFar) { mGL.glDepthRangex(zNear, zFar); } @Override public void glDisable(int cap) { mGL.glDisable(cap); } @Override public void glDisableClientState(int array) { mGL.glDisableClientState(array); } @Override public void glDrawArrays(int mode, int first, int count) { mGL.glDrawArrays(mode, first, count); } @Override public void glDrawElements(int mode, int count, int type, Buffer indices) { mGL.glDrawElements(mode, count, type, indices); } @Override public void glEnable(int cap) { mGL.glEnable(cap); } @Override public void glEnableClientState(int array) { mGL.glEnableClientState(array); } @Override public void glFinish() { mGL.glFinish(); } @Override public void glFlush() { mGL.glFlush(); } @Override public void glFogf(int pname, float param) { mGL.glFogf(pname, param); } @Override public void glFogfv(int pname, FloatBuffer params) { mGL.glFogfv(pname, params); } @Override public void glFogfv(int pname, float[] params, int offset) { mGL.glFogfv(pname, params, offset); } @Override public void glFogx(int pname, int param) { mGL.glFogx(pname, param); } @Override public void glFogxv(int pname, IntBuffer params) { mGL.glFogxv(pname, params); } @Override public void glFogxv(int pname, int[] params, int offset) { mGL.glFogxv(pname, params, offset); } @Override public void glFrontFace(int mode) { mGL.glFrontFace(mode); } @Override public void glFrustumf(float left, float right, float bottom, float top, float zNear, float zFar) { mGL.glFrustumf(left, right, bottom, top, zNear, zFar); } @Override public void glFrustumx(int left, int right, int bottom, int top, int zNear, int zFar) { mGL.glFrustumx(left, right, bottom, top, zNear, zFar); } @Override public void glGenTextures(int n, IntBuffer textures) { mGL.glGenTextures(n, textures); } @Override public void glGenTextures(int n, int[] textures, int offset) { mGL.glGenTextures(n, textures, offset); } @Override public int glGetError() { return mGL.glGetError(); } @Override public void glGetIntegerv(int pname, IntBuffer params) { mGL.glGetIntegerv(pname, params); } @Override public void glGetIntegerv(int pname, int[] params, int offset) { mGL.glGetIntegerv(pname, params, offset); } @Override public String glGetString(int name) { return mGL.glGetString(name); } @Override public void glHint(int target, int mode) { mGL.glHint(target, mode); } @Override public void glLightModelf(int pname, float param) { mGL.glLightModelf(pname, param); } @Override public void glLightModelfv(int pname, FloatBuffer params) { mGL.glLightModelfv(pname, params); } @Override public void glLightModelfv(int pname, float[] params, int offset) { mGL.glLightModelfv(pname, params, offset); } @Override public void glLightModelx(int pname, int param) { mGL.glLightModelx(pname, param); } @Override public void glLightModelxv(int pname, IntBuffer params) { mGL.glLightModelxv(pname, params); } @Override public void glLightModelxv(int pname, int[] params, int offset) { mGL.glLightModelxv(pname, params, offset); } @Override public void glLightf(int light, int pname, float param) { mGL.glLightf(light, pname, param); } @Override public void glLightfv(int light, int pname, FloatBuffer params) { mGL.glLightfv(light, pname, params); } @Override public void glLightfv(int light, int pname, float[] params, int offset) { mGL.glLightfv(light, pname, params, offset); } @Override public void glLightx(int light, int pname, int param) { mGL.glLightx(light, pname, param); } @Override public void glLightxv(int light, int pname, IntBuffer params) { mGL.glLightxv(light, pname, params); } @Override public void glLightxv(int light, int pname, int[] params, int offset) { mGL.glLightxv(light, pname, params, offset); } @Override public void glLineWidth(float width) { mGL.glLineWidth(width); } @Override public void glLineWidthx(int width) { mGL.glLineWidthx(width); } @Override public void glLoadIdentity() { mGL.glLoadIdentity(); } @Override public void glLoadMatrixf(FloatBuffer m) { mGL.glLoadMatrixf(m); } @Override public void glLoadMatrixf(float[] m, int offset) { mGL.glLoadMatrixf(m, offset); } @Override public void glLoadMatrixx(IntBuffer m) { mGL.glLoadMatrixx(m); } @Override public void glLoadMatrixx(int[] m, int offset) { mGL.glLoadMatrixx(m, offset); } @Override public void glLogicOp(int opcode) { mGL.glLogicOp(opcode); } @Override public void glMaterialf(int face, int pname, float param) { mGL.glMaterialf(face, pname, param); } @Override public void glMaterialfv(int face, int pname, FloatBuffer params) { mGL.glMaterialfv(face, pname, params); } @Override public void glMaterialfv(int face, int pname, float[] params, int offset) { mGL.glMaterialfv(face, pname, params, offset); } @Override public void glMaterialx(int face, int pname, int param) { mGL.glMaterialx(face, pname, param); } @Override public void glMaterialxv(int face, int pname, IntBuffer params) { mGL.glMaterialxv(face, pname, params); } @Override public void glMaterialxv(int face, int pname, int[] params, int offset) { mGL.glMaterialxv(face, pname, params, offset); } @Override public void glMatrixMode(int mode) { mGL.glMatrixMode(mode); } @Override public void glMultMatrixf(FloatBuffer m) { mGL.glMultMatrixf(m); } @Override public void glMultMatrixf(float[] m, int offset) { mGL.glMultMatrixf(m, offset); } @Override public void glMultMatrixx(IntBuffer m) { mGL.glMultMatrixx(m); } @Override public void glMultMatrixx(int[] m, int offset) { mGL.glMultMatrixx(m, offset); } @Override public void glMultiTexCoord4f(int target, float s, float t, float r, float q) { mGL.glMultiTexCoord4f(target, s, t, r, q); } @Override public void glMultiTexCoord4x(int target, int s, int t, int r, int q) { mGL.glMultiTexCoord4x(target, s, t, r, q); } @Override public void glNormal3f(float nx, float ny, float nz) { mGL.glNormal3f(nx, ny, nz); } @Override public void glNormal3x(int nx, int ny, int nz) { mGL.glNormal3x(nx, ny, nz); } @Override public void glNormalPointer(int type, int stride, Buffer pointer) { mGL.glNormalPointer(type, stride, pointer); } @Override public void glOrthof(float left, float right, float bottom, float top, float zNear, float zFar) { mGL.glOrthof(left, right, bottom, top, zNear, zFar); } @Override public void glOrthox(int left, int right, int bottom, int top, int zNear, int zFar) { mGL.glOrthox(left, right, bottom, top, zNear, zFar); } @Override public void glPixelStorei(int pname, int param) { mGL.glPixelStorei(pname, param); } @Override public void glPointSize(float size) { mGL.glPointSize(size); } @Override public void glPointSizex(int size) { mGL.glPointSizex(size); } @Override public void glPolygonOffset(float factor, float units) { mGL.glPolygonOffset(factor, units); } @Override public void glPolygonOffsetx(int factor, int units) { mGL.glPolygonOffsetx(factor, units); } @Override public void glPopMatrix() { mGL.glPopMatrix(); } @Override public void glPushMatrix() { mGL.glPushMatrix(); } @Override public void glReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels) { mGL.glReadPixels(x, y, width, height, format, type, pixels); } @Override public void glRotatef(float angle, float x, float y, float z) { mGL.glRotatef(angle, x, y, z); } @Override public void glRotatex(int angle, int x, int y, int z) { mGL.glRotatex(angle, x, y, z); } @Override public void glSampleCoverage(float value, boolean invert) { mGL.glSampleCoverage(value, invert); } @Override public void glSampleCoveragex(int value, boolean invert) { mGL.glSampleCoveragex(value, invert); } @Override public void glScalef(float x, float y, float z) { mGL.glScalef(x, y, z); } @Override public void glScalex(int x, int y, int z) { mGL.glScalex(x, y, z); } @Override public void glScissor(int x, int y, int width, int height) { mGL.glScissor(x, y, width, height); } @Override public void glShadeModel(int mode) { mGL.glShadeModel(mode); } @Override public void glStencilFunc(int func, int ref, int mask) { mGL.glStencilFunc(func, ref, mask); } @Override public void glStencilMask(int mask) { mGL.glStencilMask(mask); } @Override public void glStencilOp(int fail, int zfail, int zpass) { mGL.glStencilOp(fail, zfail, zpass); } @Override public void glTexCoordPointer(int size, int type, int stride, Buffer pointer) { mGL.glTexCoordPointer(size, type, stride, pointer); } @Override public void glTexEnvf(int target, int pname, float param) { mGL.glTexEnvf(target, pname, param); } @Override public void glTexEnvfv(int target, int pname, FloatBuffer params) { mGL.glTexEnvfv(target, pname, params); } @Override public void glTexEnvfv(int target, int pname, float[] params, int offset) { mGL.glTexEnvfv(target, pname, params, offset); } @Override public void glTexEnvx(int target, int pname, int param) { mGL.glTexEnvx(target, pname, param); } @Override public void glTexEnvxv(int target, int pname, IntBuffer params) { mGL.glTexEnvxv(target, pname, params); } @Override public void glTexEnvxv(int target, int pname, int[] params, int offset) { mGL.glTexEnvxv(target, pname, params, offset); } @Override public void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels) { mGL.glTexImage2D(target, level, internalformat, width, height, border, format, type, pixels); } @Override public void glTexParameterf(int target, int pname, float param) { mGL.glTexParameterf(target, pname, param); } @Override public void glTexParameterx(int target, int pname, int param) { mGL.glTexParameterx(target, pname, param); } @Override public void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels) { mGL.glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels); } @Override public void glTranslatef(float x, float y, float z) { mGL.glTranslatef(x, y, z); } @Override public void glTranslatex(int x, int y, int z) { mGL.glTranslatex(x, y, z); } @Override public void glVertexPointer(int size, int type, int stride, Buffer pointer) { mGL.glVertexPointer(size, type, stride, pointer); } @Override public void glViewport(int x, int y, int width, int height) { mGL.glViewport(x, y, width, height); } /**GL10Ext methods*/ @Override public int glQueryMatrixxOES(IntBuffer mantissa, IntBuffer exponent) { return mGL10Ext.glQueryMatrixxOES(mantissa, exponent); } @Override public int glQueryMatrixxOES(int[] mantissa, int mantissaOffset, int[] exponent, int exponentOffset) { return mGL10Ext.glQueryMatrixxOES(mantissa, mantissaOffset, exponent, exponentOffset); } /**GL11 methods*/ @Override public void glBindBuffer(int target, int buffer) { mGL11.glBindBuffer(target, buffer); } @Override public void glBufferData(int target, int size, Buffer data, int usage) { mGL11.glBufferData(target, size, data, usage); } @Override public void glBufferSubData(int target, int offset, int size, Buffer data) { mGL11.glBufferSubData(target, offset, size, data); } @Override public void glClipPlanef(int plane, FloatBuffer equation) { mGL11.glClipPlanef(plane, equation); } @Override public void glClipPlanef(int plane, float[] equation, int offset) { mGL11.glClipPlanef(plane, equation, offset); } @Override public void glClipPlanex(int plane, IntBuffer equation) { mGL11.glClipPlanex(plane, equation); } @Override public void glClipPlanex(int plane, int[] equation, int offset) { mGL11.glClipPlanex(plane, equation, offset); } @Override public void glColor4ub(byte red, byte green, byte blue, byte alpha) { mGL11.glColor4ub(red, green, blue, alpha); } @Override public void glColorPointer(int size, int type, int stride, int offset) { mGL11.glColorPointer(size, type, stride, offset); } @Override public void glDeleteBuffers(int n, IntBuffer buffers) { mGL11.glDeleteBuffers(n, buffers); } @Override public void glDeleteBuffers(int n, int[] buffers, int offset) { mGL11.glDeleteBuffers(n, buffers, offset); } @Override public void glDrawElements(int mode, int count, int type, int offset) { mGL11.glDrawElements(mode, count, type, offset); } @Override public void glGenBuffers(int n, IntBuffer buffers) { mGL11.glGenBuffers(n, buffers); } @Override public void glGenBuffers(int n, int[] buffers, int offset) { mGL11.glGenBuffers(n, buffers, offset); } @Override public void glGetBooleanv(int pname, IntBuffer params) { mGL11.glGetBooleanv(pname, params); } @Override public void glGetBooleanv(int pname, boolean[] params, int offset) { mGL11.glGetBooleanv(pname, params, offset); } @Override public void glGetBufferParameteriv(int target, int pname, IntBuffer params) { mGL11.glGetBufferParameteriv(target, pname, params); } @Override public void glGetBufferParameteriv(int target, int pname, int[] params, int offset) { mGL11.glGetBufferParameteriv(target, pname, params, offset); } @Override public void glGetClipPlanef(int pname, FloatBuffer eqn) { mGL11.glGetClipPlanef(pname, eqn); } @Override public void glGetClipPlanef(int pname, float[] eqn, int offset) { mGL11.glGetClipPlanef(pname, eqn, offset); } @Override public void glGetClipPlanex(int pname, IntBuffer eqn) { mGL11.glGetClipPlanex(pname, eqn); } @Override public void glGetClipPlanex(int pname, int[] eqn, int offset) { mGL11.glGetClipPlanex(pname, eqn, offset); } @Override public void glGetFixedv(int pname, IntBuffer params) { mGL11.glGetFixedv(pname, params); } @Override public void glGetFixedv(int pname, int[] params, int offset) { mGL11.glGetFixedv(pname, params, offset); } @Override public void glGetFloatv(int pname, FloatBuffer params) { mGL11.glGetFloatv(pname, params); } @Override public void glGetFloatv(int pname, float[] params, int offset) { mGL11.glGetFloatv(pname, params, offset); } @Override public void glGetLightfv(int light, int pname, FloatBuffer params) { mGL11.glGetLightfv(light, pname, params); } @Override public void glGetLightfv(int light, int pname, float[] params, int offset) { mGL11.glGetLightfv(light, pname, params, offset); } @Override public void glGetLightxv(int light, int pname, IntBuffer params) { mGL11.glGetLightxv(light, pname, params); } @Override public void glGetLightxv(int light, int pname, int[] params, int offset) { mGL11.glGetLightxv(light, pname, params, offset); } @Override public void glGetMaterialfv(int face, int pname, FloatBuffer params) { mGL11.glGetMaterialfv(face, pname, params); } @Override public void glGetMaterialfv(int face, int pname, float[] params, int offset) { mGL11.glGetMaterialfv(face, pname, params, offset); } @Override public void glGetMaterialxv(int face, int pname, IntBuffer params) { mGL11.glGetMaterialxv(face, pname, params); } @Override public void glGetMaterialxv(int face, int pname, int[] params, int offset) { mGL11.glGetMaterialxv(face, pname, params, offset); } @Override public void glGetPointerv(int pname, Buffer[] params) { mGL11.glGetPointerv(pname, params); } @Override public void glGetTexEnviv(int env, int pname, IntBuffer params) { mGL11.glGetTexEnviv(env, pname, params); } @Override public void glGetTexEnviv(int env, int pname, int[] params, int offset) { mGL11.glGetTexEnviv(env, pname, params, offset); } @Override public void glGetTexEnvxv(int env, int pname, IntBuffer params) { mGL11.glGetTexEnvxv(env, pname, params); } @Override public void glGetTexEnvxv(int env, int pname, int[] params, int offset) { mGL11.glGetTexEnvxv(env, pname, params, offset); } @Override public void glGetTexParameterfv(int target, int pname, FloatBuffer params) { mGL11.glGetTexParameterfv(target, pname, params); } @Override public void glGetTexParameterfv(int target, int pname, float[] params, int offset) { mGL11.glGetTexParameterfv(target, pname, params, offset); } @Override public void glGetTexParameteriv(int target, int pname, IntBuffer params) { mGL11.glGetTexParameteriv(target, pname, params); } @Override public void glGetTexParameteriv(int target, int pname, int[] params, int offset) { mGL11.glGetTexParameteriv(target, pname, params, offset); } @Override public void glGetTexParameterxv(int target, int pname, IntBuffer params) { mGL11.glGetTexParameterxv(target, pname, params); } @Override public void glGetTexParameterxv(int target, int pname, int[] params, int offset) { mGL11.glGetTexParameterxv(target, pname, params, offset); } @Override public boolean glIsBuffer(int buffer) { return mGL11.glIsBuffer(buffer); } @Override public boolean glIsEnabled(int cap) { return mGL11.glIsEnabled(cap); } @Override public boolean glIsTexture(int texture) { return mGL11.glIsTexture(texture); } @Override public void glNormalPointer(int type, int stride, int offset) { mGL11.glNormalPointer(type, stride, offset); } @Override public void glPointParameterf(int pname, float param) { mGL11.glPointParameterf(pname, param); } @Override public void glPointParameterfv(int pname, FloatBuffer params) { mGL11.glPointParameterfv(pname, params); } @Override public void glPointParameterfv(int pname, float[] params, int offset) { mGL11.glPointParameterfv(pname, params, offset); } @Override public void glPointParameterx(int pname, int param) { mGL11.glPointParameterx(pname, param); } @Override public void glPointParameterxv(int pname, IntBuffer params) { mGL11.glPointParameterxv(pname, params); } @Override public void glPointParameterxv(int pname, int[] params, int offset) { mGL11.glPointParameterxv(pname, params, offset); } @Override public void glPointSizePointerOES(int type, int stride, Buffer pointer) { mGL11.glPointSizePointerOES(type, stride, pointer); } @Override public void glTexCoordPointer(int size, int type, int stride, int offset) { mGL11.glTexCoordPointer(size, type, stride, offset); } @Override public void glTexEnvi(int target, int pname, int param) { mGL11.glTexEnvi(target, pname, param); } @Override public void glTexEnviv(int target, int pname, IntBuffer params) { mGL11.glTexEnviv(target, pname, params); } @Override public void glTexEnviv(int target, int pname, int[] params, int offset) { mGL11.glTexEnviv(target, pname, params, offset); } @Override public void glTexParameterfv(int target, int pname, FloatBuffer params) { mGL11.glTexParameterfv(target, pname, params); } @Override public void glTexParameterfv(int target, int pname, float[] params, int offset) { mGL11.glTexParameterfv(target, pname, params, offset); } @Override public void glTexParameteri(int target, int pname, int param) { mGL11.glTexParameteri(target, pname, param); } @Override public void glTexParameteriv(int target, int pname, IntBuffer params) { mGL11.glTexParameteriv(target, pname, params); } @Override public void glTexParameteriv(int target, int pname, int[] params, int offset) { mGL11.glTexParameteriv(target, pname, params, offset); } @Override public void glTexParameterxv(int target, int pname, IntBuffer params) { mGL11.glTexParameterxv(target, pname, params); } @Override public void glTexParameterxv(int target, int pname, int[] params, int offset) { mGL11.glTexParameterxv(target, pname, params, offset); } @Override public void glVertexPointer(int size, int type, int stride, int offset) { mGL11.glVertexPointer(size, type, stride, offset); } /**GL11Ext methods*/ @Override public void glCurrentPaletteMatrixOES(int matrixpaletteindex) { mGL11Ext.glCurrentPaletteMatrixOES(matrixpaletteindex); } @Override public void glDrawTexfOES(float x, float y, float z, float width, float height) { mGL11Ext.glDrawTexfOES(x, y, z, width, height); } @Override public void glDrawTexfvOES(FloatBuffer coords) { mGL11Ext.glDrawTexfvOES(coords); } @Override public void glDrawTexfvOES(float[] coords, int offset) { mGL11Ext.glDrawTexfvOES(coords, offset); } @Override public void glDrawTexiOES(int x, int y, int z, int width, int height) { mGL11Ext.glDrawTexiOES(x, y, z, width, height); } @Override public void glDrawTexivOES(IntBuffer coords) { mGL11Ext.glDrawTexivOES(coords); } @Override public void glDrawTexivOES(int[] coords, int offset) { mGL11Ext.glDrawTexivOES(coords, offset); } @Override public void glDrawTexsOES(short x, short y, short z, short width, short height) { mGL11Ext.glDrawTexsOES(x, y, z, width, height); } @Override public void glDrawTexsvOES(ShortBuffer coords) { mGL11Ext.glDrawTexsvOES(coords); } @Override public void glDrawTexsvOES(short[] coords, int offset) { mGL11Ext.glDrawTexsvOES(coords, offset); } @Override public void glDrawTexxOES(int x, int y, int z, int width, int height) { mGL11Ext.glDrawTexxOES(x, y, z, width, height); } @Override public void glDrawTexxvOES(IntBuffer coords) { mGL11Ext.glDrawTexxvOES(coords); } @Override public void glDrawTexxvOES(int[] coords, int offset) { mGL11Ext.glDrawTexxvOES(coords, offset); } @Override public void glLoadPaletteFromModelViewMatrixOES() { mGL11Ext.glLoadPaletteFromModelViewMatrixOES(); } @Override public void glMatrixIndexPointerOES(int size, int type, int stride, Buffer pointer) { mGL11Ext.glMatrixIndexPointerOES(size, type, stride, pointer); } @Override public void glMatrixIndexPointerOES(int size, int type, int stride, int offset) { mGL11Ext.glMatrixIndexPointerOES(size, type, stride, offset); } @Override public void glWeightPointerOES(int size, int type, int stride, Buffer pointer) { mGL11Ext.glWeightPointerOES(size, type, stride, pointer); } @Override public void glWeightPointerOES(int size, int type, int stride, int offset) { mGL11Ext.glWeightPointerOES(size, type, stride, offset); } /**GL11ExtensionPack methods*/ @Override public void glBindFramebufferOES(int target, int framebuffer) { mGL11ExtPack.glBindFramebufferOES(target, framebuffer); } @Override public void glBindRenderbufferOES(int target, int renderbuffer) { mGL11ExtPack.glBindRenderbufferOES(target, renderbuffer); } @Override public void glBlendEquation(int mode) { mGL11ExtPack.glBlendEquation(mode); } @Override public void glBlendEquationSeparate(int modeRGB, int modeAlpha) { mGL11ExtPack.glBlendEquationSeparate(modeRGB, modeAlpha); } @Override public void glBlendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) { mGL11ExtPack.glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha); } @Override public int glCheckFramebufferStatusOES(int target) { return mGL11ExtPack.glCheckFramebufferStatusOES(target); } @Override public void glDeleteFramebuffersOES(int n, IntBuffer framebuffers) { mGL11ExtPack.glDeleteFramebuffersOES(n, framebuffers); } @Override public void glDeleteFramebuffersOES(int n, int[] framebuffers, int offset) { mGL11ExtPack.glDeleteFramebuffersOES(n, framebuffers, offset); } @Override public void glDeleteRenderbuffersOES(int n, IntBuffer renderbuffers) { mGL11ExtPack.glDeleteRenderbuffersOES(n, renderbuffers); } @Override public void glDeleteRenderbuffersOES(int n, int[] renderbuffers, int offset) { mGL11ExtPack.glDeleteRenderbuffersOES(n, renderbuffers, offset); } @Override public void glFramebufferRenderbufferOES(int target, int attachment, int renderbuffertarget, int renderbuffer) { mGL11ExtPack.glFramebufferRenderbufferOES(target, attachment, renderbuffertarget, renderbuffer); } @Override public void glFramebufferTexture2DOES(int target, int attachment, int textarget, int texture, int level) { mGL11ExtPack.glFramebufferTexture2DOES(target, attachment, textarget, texture, level); } @Override public void glGenFramebuffersOES(int n, IntBuffer framebuffers) { mGL11ExtPack.glGenFramebuffersOES(n, framebuffers); } @Override public void glGenFramebuffersOES(int n, int[] framebuffers, int offset) { mGL11ExtPack.glGenFramebuffersOES(n, framebuffers, offset); } @Override public void glGenRenderbuffersOES(int n, IntBuffer renderbuffers) { mGL11ExtPack.glGenRenderbuffersOES(n, renderbuffers); } @Override public void glGenRenderbuffersOES(int n, int[] renderbuffers, int offset) { mGL11ExtPack.glGenRenderbuffersOES(n, renderbuffers, offset); } @Override public void glGenerateMipmapOES(int target) { mGL11ExtPack.glGenerateMipmapOES(target); } @Override public void glGetFramebufferAttachmentParameterivOES(int target, int attachment, int pname, IntBuffer params) { mGL11ExtPack.glGetFramebufferAttachmentParameterivOES(target, attachment, pname, params); } @Override public void glGetFramebufferAttachmentParameterivOES(int target, int attachment, int pname, int[] params, int offset) { mGL11ExtPack.glGetFramebufferAttachmentParameterivOES(target, attachment, pname, params, offset); } @Override public void glGetRenderbufferParameterivOES(int target, int pname, IntBuffer params) { mGL11ExtPack.glGetRenderbufferParameterivOES(target, pname, params); } @Override public void glGetRenderbufferParameterivOES(int target, int pname, int[] params, int offset) { mGL11ExtPack.glGetRenderbufferParameterivOES(target, pname, params, offset); } @Override public void glGetTexGenfv(int coord, int pname, FloatBuffer params) { mGL11ExtPack.glGetTexGenfv(coord, pname, params); } @Override public void glGetTexGenfv(int coord, int pname, float[] params, int offset) { mGL11ExtPack.glGetTexGenfv(coord, pname, params, offset); } @Override public void glGetTexGeniv(int coord, int pname, IntBuffer params) { mGL11ExtPack.glGetTexGeniv(coord, pname, params); } @Override public void glGetTexGeniv(int coord, int pname, int[] params, int offset) { mGL11ExtPack.glGetTexGeniv(coord, pname, params, offset); } @Override public void glGetTexGenxv(int coord, int pname, IntBuffer params) { mGL11ExtPack.glGetTexGenxv(coord, pname, params); } @Override public void glGetTexGenxv(int coord, int pname, int[] params, int offset) { mGL11ExtPack.glGetTexGenxv(coord, pname, params, offset); } @Override public boolean glIsFramebufferOES(int framebuffer) { return mGL11ExtPack.glIsFramebufferOES(framebuffer); } @Override public boolean glIsRenderbufferOES(int renderbuffer) { return mGL11ExtPack.glIsRenderbufferOES(renderbuffer); } @Override public void glRenderbufferStorageOES(int target, int internalformat, int width, int height) { mGL11ExtPack.glRenderbufferStorageOES(target, internalformat, width, height); } @Override public void glTexGenf(int coord, int pname, float param) { mGL11ExtPack.glTexGenf(coord, pname, param); } @Override public void glTexGenfv(int coord, int pname, FloatBuffer params) { mGL11ExtPack.glTexGenfv(coord, pname, params); } @Override public void glTexGenfv(int coord, int pname, float[] params, int offset) { mGL11ExtPack.glTexGenfv(coord, pname, params, offset); } @Override public void glTexGeni(int coord, int pname, int param) { mGL11ExtPack.glTexGeni(coord, pname, param); } @Override public void glTexGeniv(int coord, int pname, IntBuffer params) { mGL11ExtPack.glTexGeniv(coord, pname, params); } @Override public void glTexGeniv(int coord, int pname, int[] params, int offset) { mGL11ExtPack.glTexGeniv(coord, pname, params, offset); } @Override public void glTexGenx(int coord, int pname, int param) { mGL11ExtPack.glTexGenx(coord, pname, param); } @Override public void glTexGenxv(int coord, int pname, IntBuffer params) { mGL11ExtPack.glTexGenxv(coord, pname, params); } @Override public void glTexGenxv(int coord, int pname, int[] params, int offset) { mGL11ExtPack.glTexGenxv(coord, pname, params, offset); } /**dealloc methods*/ @Override protected void finalize() throws Throwable { mGLSurfaceView = null; mGL = null; mGL10Ext = null; mGL11 = null; mGL11Ext = null; mGL11ExtPack = null; super.finalize(); } }
{ "content_hash": "ff78b915c150292f2baaf037f0c0215b", "timestamp": "", "source": "github", "line_count": 1595, "max_line_length": 118, "avg_line_length": 22.118495297805644, "alnum_prop": 0.6907792170979903, "repo_name": "RBWare/PanoramaGL", "id": "38e2f448859b6b74207be58a139a7b87b5298435", "size": "35956", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "src/com/panoramagl/opengl/GLWrapper.java", "mode": "33261", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "230917" }, { "name": "Groovy", "bytes": "640" }, { "name": "Java", "bytes": "573717" } ], "symlink_target": "" }
<?php // autoload_real.php @generated by Composer class ComposerAutoloaderInit8f16b403b0d43826f0a178ba6de457f8 { private static $loader; public static function loadClassLoader($class) { if ('Composer\Autoload\ClassLoader' === $class) { require __DIR__ . '/ClassLoader.php'; } } public static function getLoader() { if (null !== self::$loader) { return self::$loader; } spl_autoload_register(array('ComposerAutoloaderInit8f16b403b0d43826f0a178ba6de457f8', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); spl_autoload_unregister(array('ComposerAutoloaderInit8f16b403b0d43826f0a178ba6de457f8', 'loadClassLoader')); $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { $loader->set($namespace, $path); } $map = require __DIR__ . '/autoload_psr4.php'; foreach ($map as $namespace => $path) { $loader->setPsr4($namespace, $path); } $classMap = require __DIR__ . '/autoload_classmap.php'; if ($classMap) { $loader->addClassMap($classMap); } $loader->register(true); $includeFiles = require __DIR__ . '/autoload_files.php'; foreach ($includeFiles as $fileIdentifier => $file) { composerRequire8f16b403b0d43826f0a178ba6de457f8($fileIdentifier, $file); } return $loader; } } function composerRequire8f16b403b0d43826f0a178ba6de457f8($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { require $file; $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; } }
{ "content_hash": "0ed8506a105e4e70709fccca31d6b440", "timestamp": "", "source": "github", "line_count": 59, "max_line_length": 126, "avg_line_length": 30.389830508474578, "alnum_prop": 0.6129392080312326, "repo_name": "yodathedark/moltis-tickets", "id": "5b745182012452d665e9ac29dec7572d72ac9189", "size": "1793", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "test/stripe-php-3.9.0/vendor/composer/autoload_real.php", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ApacheConf", "bytes": "231" }, { "name": "Batchfile", "bytes": "1030" }, { "name": "CSS", "bytes": "349176" }, { "name": "JavaScript", "bytes": "138264" }, { "name": "PHP", "bytes": "367011" } ], "symlink_target": "" }
package org.bitcoinj.store; import org.bitcoinj.core.BlockChain; import org.bitcoinj.core.NetworkParameters; import org.bitcoinj.core.Sha256Hash; import org.bitcoinj.core.StoredBlock; /** * An implementor of BlockStore saves StoredBlock objects to disk. Different implementations store them in * different ways. An in-memory implementation (MemoryBlockStore) exists for unit testing but real apps will want to * use implementations that save to disk.<p> * * A BlockStore is a map of hashes to StoredBlock. The hash is the double digest of the Bitcoin serialization * of the block header, <b>not</b> the header with the extra data as well.<p> * * BlockStores are thread safe. */ public interface BlockStore { /** * Saves the given block header+extra data. The key isn't specified explicitly as it can be calculated from the * StoredBlock directly. Can throw if there is a problem with the underlying storage layer such as running out of * disk space. */ void put(StoredBlock block) throws BlockStoreException; /** * Returns the StoredBlock given a hash. The returned values block.getHash() method will be equal to the * parameter. If no such block is found, returns null. */ StoredBlock get(Sha256Hash hash) throws BlockStoreException; /** * Returns the {@link StoredBlock} that represents the top of the chain of greatest total work. Note that this * can be arbitrarily expensive, you probably should use {@link BlockChain#getChainHead()} * or perhaps {@link BlockChain#getBestChainHeight()} which will run in constant time and * not take any heavyweight locks. */ StoredBlock getChainHead() throws BlockStoreException; /** * Sets the {@link StoredBlock} that represents the top of the chain of greatest total work. */ void setChainHead(StoredBlock chainHead) throws BlockStoreException; /** Closes the store. */ void close() throws BlockStoreException; /** * Get the {@link NetworkParameters} of this store. * @return The network params. */ NetworkParameters getParams(); }
{ "content_hash": "0d81bf79d6b233fa3d6b98349aed0d32", "timestamp": "", "source": "github", "line_count": 55, "max_line_length": 117, "avg_line_length": 38.72727272727273, "alnum_prop": 0.7220657276995305, "repo_name": "peterdettman/bitcoinj", "id": "26bd41b7897331d6aa09a8e5445bcf7d6a180686", "size": "2723", "binary": false, "copies": "7", "ref": "refs/heads/master", "path": "core/src/main/java/org/bitcoinj/store/BlockStore.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "1838" }, { "name": "Java", "bytes": "3797433" }, { "name": "Shell", "bytes": "1390" } ], "symlink_target": "" }
ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
{ "content_hash": "801cf1a87672d1dd819a1fff2e1d3e80", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.307692307692308, "alnum_prop": 0.6940298507462687, "repo_name": "mdoering/backbone", "id": "537ef4e4a51459ab46225f66348332a19a4e7e17", "size": "191", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Malpighiales/Chrysobalanaceae/Licania/Licania subarachnophylla/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
using System; using System.Collections.Generic; using System.Text; namespace Cosmos.HAL { static public class Globals { static public DeviceMgr DeviceMgr; } }
{ "content_hash": "b09e12f5402075cbaa5b96a91fa67366", "timestamp": "", "source": "github", "line_count": 9, "max_line_length": 42, "avg_line_length": 19.666666666666668, "alnum_prop": 0.7175141242937854, "repo_name": "trivalik/Cosmos", "id": "ac97ca51dd4329ab385f451992a6c01909376cc9", "size": "179", "binary": false, "copies": "6", "ref": "refs/heads/master", "path": "source/Kernel-X86/30-HAL/Cosmos.HAL/Globals.cs", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Assembly", "bytes": "35450" }, { "name": "AutoIt", "bytes": "782" }, { "name": "Batchfile", "bytes": "1472" }, { "name": "C", "bytes": "17776" }, { "name": "C#", "bytes": "12950609" }, { "name": "F#", "bytes": "378" }, { "name": "HTML", "bytes": "34140" }, { "name": "Inno Setup", "bytes": "15855" }, { "name": "Visual Basic", "bytes": "1148" }, { "name": "XS", "bytes": "31499" } ], "symlink_target": "" }
% function [Lval,Cval] = samplef(X,b) % Sample function for bayesopt.m % To use bayesopt.m you need an opt struct (see demo.m or the readme) and a function handle to a function like this. % The function should return two arguments, the objective function value and the constraint function value. % % The function handle should ultimately have only one argument, a vector of parameters X. % The function itself can have additional parameters that are passed in as constants. For example: % b = 1; % F = @(X)samplef(X,b); % % This lets you, for example, pass in datasets when tuning ML algorithm parameters. function [Lval,Cval] = samplef2(x,y,b) L = @(x,y) cos(2.*x).*cos(y) + sin(b.*x); C = @(x,y) -(-cos(x).*cos(y)+sin(x).*sin(y)); Lval = L(x,y) + 1e-4*randn(1,size(x,2)); Cval = C(x,y) + 1e-4*randn(1,size(y,2)); end
{ "content_hash": "1397fa329cee92db8216f24898de9711", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 116, "avg_line_length": 49.76470588235294, "alnum_prop": 0.6725768321513003, "repo_name": "mathieulagrange/lmnn4sol", "id": "a4441ec9d17fc2c6c9f248b5d045bd5e7bd8b4ff", "size": "846", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "experiments/timbralSimilaritySol/libs/lmnn-fun/lmnn2/autoLMNN/bayesopt.m/demo/samplef.m", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "45631" }, { "name": "C++", "bytes": "156539" }, { "name": "CSS", "bytes": "154" }, { "name": "Fortran", "bytes": "570508" }, { "name": "HTML", "bytes": "118622" }, { "name": "M", "bytes": "455" }, { "name": "Makefile", "bytes": "7096" }, { "name": "Matlab", "bytes": "1784839" }, { "name": "Objective-C", "bytes": "567" }, { "name": "TeX", "bytes": "113590" } ], "symlink_target": "" }
package org.jbpm.console.ng.gc.client.experimental.grid.base; import java.util.Collection; import com.google.gwt.user.cellview.client.Column; import com.google.gwt.user.cellview.client.ColumnSortEvent.AsyncHandler; import com.google.gwt.view.client.ProvidesKey; import org.jbpm.console.ng.ga.model.GenericSummary; import org.uberfire.ext.services.shared.preferences.GridGlobalPreferences; import org.uberfire.ext.widgets.common.client.tables.ColumnMeta; import org.uberfire.ext.widgets.common.client.tables.PagedTable; /** * @author salaboy */ public class ExtendedPagedTable<T extends GenericSummary> extends PagedTable<T> { public ExtendedPagedTable( int pageSize, GridGlobalPreferences gridPreferences ) { super( pageSize, new ProvidesKey<T>() { @Override public Object getKey( T item ) { return ( item == null ) ? null : item.getId(); } }, gridPreferences, true ); dataGrid.addColumnSortHandler( new AsyncHandler( dataGrid ) ); } public void setTooltip( int row, int column, String description ) { dataGrid.getRowElement( row ).getCells().getItem( column ).setTitle( description ); } public int getKeyboardSelectedColumn() { return dataGrid.getKeyboardSelectedColumn(); } public int getKeyboardSelectedRow() { return dataGrid.getKeyboardSelectedRow(); } public int getColumnCount() { return dataGrid.getColumnCount(); } public void removeColumn( Column<T, ?> col ) { dataGrid.removeColumn( col ); } public void removeColumnMeta( ColumnMeta<T> columnMeta ) { columnPicker.removeColumn( columnMeta ); } public Collection<ColumnMeta<T>> getColumnMetaList() { return columnPicker.getColumnMetaList(); } }
{ "content_hash": "fba5d3a8cd20cd84ca2073da3577dad1", "timestamp": "", "source": "github", "line_count": 62, "max_line_length": 91, "avg_line_length": 30.725806451612904, "alnum_prop": 0.6661417322834645, "repo_name": "emilianoandre/jbpm-console-ng", "id": "2290dc36783664cdc7d01996efdaadbb661fd937", "size": "2506", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "jbpm-console-ng-generic/jbpm-console-ng-generic-client/src/main/java/org/jbpm/console/ng/gc/client/experimental/grid/base/ExtendedPagedTable.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "26031" }, { "name": "HTML", "bytes": "38443" }, { "name": "Java", "bytes": "2082516" } ], "symlink_target": "" }
namespace tsk { namsespace task { enum task_state { TASK_CREATED, TASK_WAITING, TASK_STARTED, TASK_COMPLETED }; typedef error_code int; class base_task { protected : task_state state; error_code err; public : base_task():state(task_state::TASK_CREATED) {} void start() { state = task_state::TASK_STARTED; err = performTask(); state = task_state::TASK_COMPLETED; taskCompleted(); } virtual error_code performTask() = 0; virtual void taskCompleted() = 0; }; class sync_task : public base_task { private : std::mutex _mutex; std::condition_variable _cond; public : void wait() { std::unique_lock<std::mutex> lck(_mutex); while (state != task_state::TASK_COMPLETED) wait(_lck); } } template<typename T> task_queue : cqueue<T*> { protrected : tsk::tpool::ThreadPool *p; private: task_queue() { p = new ThreadPool(10); } task_queue::pushTask(T *task) { add(task); } void wait() { p->wait(); } } } // namespace task } // namespace tsk
{ "content_hash": "516456686845efe3d1e5cdbc1780683b", "timestamp": "", "source": "github", "line_count": 62, "max_line_length": 50, "avg_line_length": 18.06451612903226, "alnum_prop": 0.5767857142857142, "repo_name": "tushargosavi/cpp-learn", "id": "aab893e2b7785a89ac51d90eb0f43c50ff50016b", "size": "1151", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "multithreading/tp/task.h", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "4913" }, { "name": "C++", "bytes": "96491" } ], "symlink_target": "" }
API Reference ============= .. _client_api: Client API ---------- Endpoints for communicating with Orchestra. All requests must be signed using `HTTP signatures <http://tools.ietf.org/html/draft-cavage-http-signatures-03>`_: .. sourcecode:: python from httpsig.requests_auth import HTTPSignatureAuth auth = HTTPSignatureAuth(key_id=settings.ORCHESTRA_PROJECT_API_KEY, secret=settings.ORCHESTRA_PROJECT_API_SECRET, algorithm='hmac-sha256') response = requests.get('https://www.example.com/orchestra/api/project/create_project', auth=auth) .. http:post:: /orchestra/api/project/create_project Creates a project with the given data and returns its ID. :query task_class: One of `real` or `training` to specify the task class type. :query workflow_slug: The slug corresponding to the desired project's workflow. :query workflow_version_slug: The slug corresponding to the desired version of the workflow. :query description: A short description of the project. :query priority: An integer describing the priority of the project, with higher numbers describing a greater priority. :query project_data: Other miscellaneous data with which to initialize the project. **Example response**: .. sourcecode:: json { "project_id": 123, } .. http:post:: /orchestra/api/project/project_information Retrieve detailed information about a given project. :query project_id: The ID for the desired project. **Example response**: .. sourcecode:: json { "project": { "id": 123, "short_description": "Project Description", "priority": 10, "scratchpad_url": "http://review.document.url", "task_class": 1, "project_data": { "sample_data_item": "sample_data_value_new" }, "workflow_slug": "sample_workflow_slug", "workflow_version_slug": "v1", "start_datetime": "2015-09-23T20:16:02.667288Z" }, "steps": [ ["sample_step_slug", "Sample step description"] ], "tasks": { "sample_step_slug": { "id": 456, "project": 123, "status": "Processing", "step_slug": "sample_step_slug", "latest_data": { "sample_data_item": "sample_data_value_new" }, "assignments": [ { "id": 558, "iterations": [ { "id": 92134, "start_datetime": "2015-09-20T12:02:14.214553", "end_datetime": "2015-09-23T20:16:15.821171", "submitted_data": { "sample_data_item": "sample_data_value_old", }, "status": 'Requested Review' } ], "worker": "sample_worker_username", "task": 456, "in_progress_task_data": { "sample_data_item": "sample_data_value_new" }, "status": "Processing", "start_datetime": "2015-09-23T20:16:17.355291Z" } ] } } } .. http:get:: /orchestra/api/project/workflow_types Return all stored workflows and their versions. **Example response**: .. sourcecode:: json { "workflows": { "journalism": { "name": "Journalism Workflow", "versions": { "v1": { "name": "Journalism Workflow Version 1", "description": "Create polished newspaper articles from scratch." }, "v2": { "name": "Journalism Workflow Version 2", "description": "Create polished newspaper articles from scratch." } } }, "simple_workflow": { "name": "Simple Workflow", "versions": { "v1": { "name": "Simple Workflow Version 1", "description": "Crawl a web page for an image and rate it." } } } } }
{ "content_hash": "483080f90738b4c2bb7ada45282baeb1", "timestamp": "", "source": "github", "line_count": 138, "max_line_length": 121, "avg_line_length": 32.76086956521739, "alnum_prop": 0.49236894492368943, "repo_name": "b12io/orchestra", "id": "22f6d99d540efb2d7d0dd41d0a2c8a7ddc4b8fe8", "size": "4521", "binary": false, "copies": "2", "ref": "refs/heads/main", "path": "docs/source/api.rst", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "50496" }, { "name": "HTML", "bytes": "101830" }, { "name": "JavaScript", "bytes": "353673" }, { "name": "Makefile", "bytes": "1234" }, { "name": "Python", "bytes": "975395" }, { "name": "SCSS", "bytes": "32860" }, { "name": "Shell", "bytes": "26" }, { "name": "TypeScript", "bytes": "20983" } ], "symlink_target": "" }
package ProGAL.geom3d.complex; import java.awt.Color; import ProGAL.geom3d.LineSegment; import ProGAL.geom3d.Plane; import ProGAL.geom3d.Point; import ProGAL.geom3d.viewer.J3DScene; import ProGAL.geom3d.complex.delaunayComplex.RegularComplex; import ProGAL.geom3d.kineticDelaunay.Tet; import ProGAL.geom3d.volumes.Tetrahedron; /** * An extension of the normal Tetrahedron that is used in complexes. In addition to the four * corner-points, pointers to the triangular faces (of the type CTriangle) and the four * neighboring tetrahedra are maintained. * * @author R.Fonseca */ public class CTetrahedron extends Tetrahedron{ private CTetrahedron[] neighbours = new CTetrahedron[4]; private CTriangle[] triangles = new CTriangle[4]; private boolean modified = false; private boolean flat = false; public CTetrahedron(CVertex p0, CVertex p1, CVertex p2, CVertex p3) { super(p0,p1,p2,p3); } protected CTetrahedron(){ this(null,null,null,null); } public void setFlat(boolean flat) { this.flat = flat; } public void setModified(boolean modified) { this.modified = modified; } public void setPoint(CVertex p, int i){ super.corners[i] = p; } public void setNeighbour(int index, CTetrahedron t){ neighbours[index] = t; } public void setTriangle(int index, CTriangle t){ triangles[index] = t; } public CVertex getPoint(int i){ return (CVertex)corners[i]; } public CTetrahedron getNeighbour(int index) { return neighbours[index]; } public CTriangle getTriangle(int index){ return triangles[index]; } public boolean isModified() { return modified; } public boolean isFlat() { return flat; } /** * For computational convenience, the representation of a complex is based on a big tetrahedron * that encloses all vertices. It has 4 so-called 'big points' as corners. This method indicates * if this tetrahedron has one of these 'big points' as corners. * @see RegularComplex */ public boolean containsBigPoint() { if(getPoint(0).isBigpoint() || getPoint(1).isBigpoint() || getPoint(2).isBigpoint() || getPoint(3).isBigpoint()) return true; return false; } public int getNumberBigPoints() { int count = 0; for (int i = 0; i < 4; i++) { if (getPoint(i).isBigpoint()) count++; } return count; } /** returns neighbour tetrahedron containing specified vertex */ public CTetrahedron getNeighbour(CVertex v) { for (int i = 0; i < 4; i++) { CTetrahedron tetr = getNeighbour(i); if (tetr.containsPoint(v)) return tetr; } return null; } public boolean hasNeighbor(CTetrahedron t) { for (int i = 0; i < 4; i++) if (neighbours[i] == t) return true; return false; } public int getID(CVertex v) { if (v == getPoint(0)) return 0; else { if (v == getPoint(1)) return 1; else { if (v == getPoint(2)) return 2; else { if (v == getPoint(3)) return 3; else return -1; } } } } /** returns the vertices shared by two tetrahedra. */ public CVertex[] getCommonVertices(CTetrahedron tetr) { CVertex[] points = new CVertex[4]; int n = 0; for (int i = 0; i < 4; i++) { if (tetr.containsPoint(getPoint(i))) { points[n] = new CVertex(getPoint(i), getPoint(i).idx); for (int k = 0; k < 3; k++) if (Math.abs(points[n].get(k)) > 100.0) points[n].set(k, points[n].get(k)/1); n++; } } return points; } /** returns plane through common triangle of this and another tetrahedron. The apex of this tetrahedron * is below the plane. */ public Plane getPlane(CTetrahedron tetr) { CVertex[] points = new CVertex[3]; CVertex v = null; int i = 0; int j = 0; while ( i < 3) { if (tetr.containsPoint(getPoint(j))) { points[i] = getPoint(j); i++; } else v = getPoint(j); j++; } Plane plane; if (!points[0].isBigpoint()) plane = new Plane(points[0], points[1], points[2]); else { if (!points[1].isBigpoint()) plane = new Plane(points[1], points[2], points[0]); else plane = new Plane(points[2], points[0], points[1]); } if (plane.above(v) == 1) plane.setNormal(plane.getNormal().multiplyThis(-1)); return plane; } public void updateNeighbour(CTetrahedron lookfor, CTetrahedron replacement){ for(int i=0; i<4;i++){ if(neighbours[i]==lookfor){ neighbours[i]=replacement; break; } } } //find id of point public int findpoint(CVertex p){ for(int i = 0; i<4; i++){ if(getPoint(i)==p) { return i; } } System.out.println("Problemer med findpoint\n"); //never happens: return -1; } /** returns neighbouring tetrahedron containing v as the oppposite vertex */ public CTetrahedron findNeighbour(CVertex v) { for (int i = 0; i < 4; i++) { if (getNeighbour(i).containsPoint(v)) return getNeighbour(i); } return null; } /* this tetrahedron and tetr must be neighbours. Return the vertex of this tetrahedron not in tetr */ public CVertex findVertex(CTetrahedron tetr) { CVertex p; for (int i = 0; i < 4; i++) { p = getPoint(i); if (!tetr.containsPoint(p)) return p; } return null; } public boolean containsPoint(CVertex p) { for (int i = 0; i < 4; i++) { if (getPoint(i) == p) return true; } return false; } public boolean containsTriangle(CTriangle t){ for(int tp=0;tp<3;tp++){ boolean found = false; for(int p=0;p<4;p++) if(this.getPoint(p)==t.getPoint(tp)) { found=true; break; } if(!found) return false; } return true; } /** TODO: Copy to Tetrahedron */ public CVertex oppositeVertex(CTriangle base){ for(int p=0;p<4;p++){ if(!base.containsPoint(getPoint(p))) return getPoint(p); } throw new RuntimeException("The triangle is not part of this tetrahedron"); } public CTriangle oppositeTriangle(CVertex v) { for(CTriangle t: triangles){ if(t!=null && !t.containsPoint(v)) return t; } throw new RuntimeException("The vertex is not part of this tetrahedron"); } //given a point index this method finds the index of the apex - meaning the opposite point id that is in //the tetrahedron opposite the given point id //input: point index //output: point index of the point opposite public int apexid(int index){ //Point ap0,ap1,ap2,ap3; CTetrahedron apex_tet= getNeighbour(index); if(apex_tet!= null){ for(int i=0;i<4;i++){ if(apex_tet.getNeighbour(i)== this){ return i; } } } //never happens: return -1; } public void toScene(J3DScene scene, double rad, Color clr) { double newRad = rad; Color newClr = clr; // if (containsBigPoint()) { newRad = 0.005; newClr = Color.red; } for (int i = 0; i < 3; i++) { Point u = getPoint(i).clone(); for (int k = 0; k < 3; k++) if (Math.abs(u.get(k)) > 100.0) u.set(k, u.get(k)/1); for (int j = i+1; j < 4; j++) { Point v = getPoint(j).clone(); for (int k = 0; k < 3; k++) if (Math.abs(v.get(k)) > 100.0) v.set(k, v.get(k)/1); LineSegment seg = new LineSegment(u, v); seg.toScene(scene, newRad, newClr); } } } }
{ "content_hash": "37fb299c31f8fc34c1b44ed5b3fc02bb", "timestamp": "", "source": "github", "line_count": 239, "max_line_length": 127, "avg_line_length": 29.1255230125523, "alnum_prop": 0.6543600057463008, "repo_name": "DIKU-Steiner/ProGAL", "id": "6536dc614429e89ed8d2f1e6f63a6e862cdbe3b9", "size": "6961", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/ProGAL/geom3d/complex/CTetrahedron.java", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "189314" }, { "name": "HTML", "bytes": "5710" }, { "name": "Java", "bytes": "2150908" }, { "name": "Makefile", "bytes": "529" } ], "symlink_target": "" }
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>relative_humidity_from_mixing_ratio &mdash; MetPy 0.7</title> <link rel="shortcut icon" href="../../_static/metpy_32x32.ico"/> <link rel="canonical" href="https://unidata.github.io/MetPy/latest/api/generated/metpy.calc.relative_humidity_from_mixing_ratio.html"/> <link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" /> <link rel="stylesheet" href="../../_static/gallery.css" type="text/css" /> <link rel="stylesheet" href="../../_static/theme_override.css" type="text/css" /> <link rel="index" title="Index" href="../../genindex.html"/> <link rel="search" title="Search" href="../../search.html"/> <link rel="top" title="MetPy 0.7" href="../../index.html"/> <link rel="up" title="calc" href="metpy.calc.html"/> <link rel="next" title="relative_humidity_from_specific_humidity" href="metpy.calc.relative_humidity_from_specific_humidity.html"/> <link rel="prev" title="relative_humidity_from_dewpoint" href="metpy.calc.relative_humidity_from_dewpoint.html"/> <script src="../../_static/js/modernizr.min.js"></script> </head> <body class="wy-body-for-nav" role="document"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search"> <a href="../../index.html" class="icon icon-home"> MetPy <img src="../../_static/metpy_150x150.png" class="logo" /> </a> <div class="version"> <div class="version-dropdown"> <select class="version-list" id="version-list"> <option value=''>0.7</option> <option value="../latest">latest</option> <option value="../dev">dev</option> </select> </div> </div> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="../../installguide.html">Installation Guide</a></li> <li class="toctree-l1"><a class="reference internal" href="../../units.html">Unit Support</a></li> <li class="toctree-l1"><a class="reference internal" href="../../examples/index.html">MetPy Examples</a></li> <li class="toctree-l1"><a class="reference internal" href="../../tutorials/index.html">MetPy Tutorials</a></li> <li class="toctree-l1 current"><a class="reference internal" href="../index.html">The MetPy API</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="metpy.constants.html">constants</a></li> <li class="toctree-l2"><a class="reference internal" href="metpy.units.html">units</a></li> <li class="toctree-l2"><a class="reference internal" href="metpy.io.html">io</a></li> <li class="toctree-l2"><a class="reference internal" href="metpy.io.cdm.html">cdm</a></li> <li class="toctree-l2 current"><a class="reference internal" href="metpy.calc.html">calc</a><ul class="current"> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.add_height_to_pressure.html">add_height_to_pressure</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.add_pressure_to_height.html">add_pressure_to_height</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.advection.html">advection</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.bulk_shear.html">bulk_shear</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.bunkers_storm_motion.html">bunkers_storm_motion</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.cape_cin.html">cape_cin</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.convergence_vorticity.html">convergence_vorticity</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.coriolis_parameter.html">coriolis_parameter</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.density.html">density</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.dewpoint.html">dewpoint</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.dewpoint_rh.html">dewpoint_rh</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.divergence.html">divergence</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.dry_lapse.html">dry_lapse</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.dry_static_energy.html">dry_static_energy</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.el.html">el</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.equivalent_potential_temperature.html">equivalent_potential_temperature</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.find_intersections.html">find_intersections</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.first_derivative.html">first_derivative</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.friction_velocity.html">friction_velocity</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.frontogenesis.html">frontogenesis</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.geopotential_to_height.html">geopotential_to_height</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.geostrophic_wind.html">geostrophic_wind</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.get_layer.html">get_layer</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.get_layer_heights.html">get_layer_heights</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.get_perturbation.html">get_perturbation</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.get_wind_components.html">get_wind_components</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.get_wind_dir.html">get_wind_dir</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.get_wind_speed.html">get_wind_speed</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.h_convergence.html">h_convergence</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.heat_index.html">heat_index</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.height_to_geopotential.html">height_to_geopotential</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.height_to_pressure_std.html">height_to_pressure_std</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.interp.html">interp</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.interpolate_nans.html">interpolate_nans</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.isentropic_interpolation.html">isentropic_interpolation</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.kinematic_flux.html">kinematic_flux</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.laplacian.html">laplacian</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.lat_lon_grid_spacing.html">lat_lon_grid_spacing</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.lcl.html">lcl</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.lfc.html">lfc</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.log_interp.html">log_interp</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.mean_pressure_weighted.html">mean_pressure_weighted</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.mixed_layer.html">mixed_layer</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.mixed_parcel.html">mixed_parcel</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.mixing_ratio.html">mixing_ratio</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.mixing_ratio_from_relative_humidity.html">mixing_ratio_from_relative_humidity</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.mixing_ratio_from_specific_humidity.html">mixing_ratio_from_specific_humidity</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.moist_lapse.html">moist_lapse</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.moist_static_energy.html">moist_static_energy</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.montgomery_streamfunction.html">montgomery_streamfunction</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.most_unstable_cape_cin.html">most_unstable_cape_cin</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.most_unstable_parcel.html">most_unstable_parcel</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.nearest_intersection_idx.html">nearest_intersection_idx</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.parcel_profile.html">parcel_profile</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.potential_temperature.html">potential_temperature</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.precipitable_water.html">precipitable_water</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.pressure_to_height_std.html">pressure_to_height_std</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.psychrometric_vapor_pressure_wet.html">psychrometric_vapor_pressure_wet</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.reduce_point_density.html">reduce_point_density</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.relative_humidity_from_dewpoint.html">relative_humidity_from_dewpoint</a></li> <li class="toctree-l3 current"><a class="current reference internal" href="#">relative_humidity_from_mixing_ratio</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.relative_humidity_from_specific_humidity.html">relative_humidity_from_specific_humidity</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.relative_humidity_wet_psychrometric.html">relative_humidity_wet_psychrometric</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.resample_nn_1d.html">resample_nn_1d</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.saturation_mixing_ratio.html">saturation_mixing_ratio</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.saturation_vapor_pressure.html">saturation_vapor_pressure</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.second_derivative.html">second_derivative</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.shearing_deformation.html">shearing_deformation</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.shearing_stretching_deformation.html">shearing_stretching_deformation</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.sigma_to_pressure.html">sigma_to_pressure</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.significant_tornado.html">significant_tornado</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.specific_humidity_from_mixing_ratio.html">specific_humidity_from_mixing_ratio</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.storm_relative_helicity.html">storm_relative_helicity</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.stretching_deformation.html">stretching_deformation</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.supercell_composite.html">supercell_composite</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.surface_based_cape_cin.html">surface_based_cape_cin</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.thickness_hydrostatic.html">thickness_hydrostatic</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.thickness_hydrostatic_from_relative_humidity.html">thickness_hydrostatic_from_relative_humidity</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.tke.html">tke</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.total_deformation.html">total_deformation</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.v_vorticity.html">v_vorticity</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.vapor_pressure.html">vapor_pressure</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.virtual_potential_temperature.html">virtual_potential_temperature</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.virtual_temperature.html">virtual_temperature</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.vorticity.html">vorticity</a></li> <li class="toctree-l3"><a class="reference internal" href="metpy.calc.windchill.html">windchill</a></li> </ul> </li> <li class="toctree-l2"><a class="reference internal" href="metpy.plots.html">plots</a></li> <li class="toctree-l2"><a class="reference internal" href="metpy.plots.ctables.html">ctables</a></li> <li class="toctree-l2"><a class="reference internal" href="metpy.gridding.html">gridding</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../../gempak.html">GEMPAK Conversion Guide</a></li> <li class="toctree-l1"><a class="reference internal" href="../../developerguide.html">Developer’s Guide</a></li> <li class="toctree-l1"><a class="reference internal" href="../../CONTRIBUTING.html">Contributing</a></li> <li class="toctree-l1"><a class="reference internal" href="../../citing.html">Citing MetPy</a></li> <li class="toctree-l1"><a class="reference internal" href="../../references.html">References</a></li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../../index.html">MetPy</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="../../index.html">Docs</a> &raquo;</li> <li><a href="../index.html">The MetPy API</a> &raquo;</li> <li><a href="metpy.calc.html">calc</a> &raquo;</li> <li>relative_humidity_from_mixing_ratio</li> <li class="source-link"> <a href="https://github.com/Unidata/MetPy/issues/new?title=Suggested%20improvement%20for%20api/generated/metpy.calc.relative_humidity_from_mixing_ratio&body=Please%20describe%20what%20could%20be%20improved%20about%20this%20page%20or%20the%20typo/mistake%20that%20you%20found%3A" class="fa fa-github"> Improve this page</a> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <div class="section" id="relative-humidity-from-mixing-ratio"> <h1>relative_humidity_from_mixing_ratio<a class="headerlink" href="#relative-humidity-from-mixing-ratio" title="Permalink to this headline">¶</a></h1> <dl class="function"> <dt id="metpy.calc.relative_humidity_from_mixing_ratio"> <code class="descclassname">metpy.calc.</code><code class="descname">relative_humidity_from_mixing_ratio</code><span class="sig-paren">(</span><em>mixing_ratio</em>, <em>temperature</em>, <em>pressure</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/metpy/calc/thermo.html#relative_humidity_from_mixing_ratio"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#metpy.calc.relative_humidity_from_mixing_ratio" title="Permalink to this definition">¶</a></dt> <dd><p>Calculate the relative humidity from mixing ratio, temperature, and pressure.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>mixing_ratio</strong> (<em class="xref py py-obj">pint.Quantity</em>) – Dimensionless mass mixing ratio</li> <li><strong>temperature</strong> (<em class="xref py py-obj">pint.Quantity</em>) – Air temperature</li> <li><strong>pressure</strong> (<em class="xref py py-obj">pint.Quantity</em>) – Total atmospheric pressure</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><em class="xref py py-obj">pint.Quantity</em> – Relative humidity</p> </td> </tr> </tbody> </table> <p class="rubric">Notes</p> <p>Formula based on that from <a class="reference internal" href="../../references.html#hobbs1977" id="id1">[Hobbs1977]</a> pg. 74.</p> <div class="math"> \[RH = \frac{w}{w_s}\]</div> <ul class="simple"> <li><span class="math">\(RH\)</span> is relative humidity as a unitless ratio</li> <li><span class="math">\(w\)</span> is mixing ratio</li> <li><span class="math">\(w_s\)</span> is the saturation mixing ratio</li> </ul> <div class="admonition seealso"> <p class="first admonition-title">See also</p> <p class="last"><a class="reference internal" href="metpy.calc.mixing_ratio_from_relative_humidity.html#metpy.calc.mixing_ratio_from_relative_humidity" title="metpy.calc.mixing_ratio_from_relative_humidity"><code class="xref py py-func docutils literal"><span class="pre">mixing_ratio_from_relative_humidity()</span></code></a>, <a class="reference internal" href="metpy.calc.saturation_mixing_ratio.html#metpy.calc.saturation_mixing_ratio" title="metpy.calc.saturation_mixing_ratio"><code class="xref py py-func docutils literal"><span class="pre">saturation_mixing_ratio()</span></code></a></p> </div> </dd></dl> <div style='clear:both'></div></div> </div> <div class="articleComments"> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="metpy.calc.relative_humidity_from_specific_humidity.html" class="btn btn-neutral float-right" title="relative_humidity_from_specific_humidity" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a> <a href="metpy.calc.relative_humidity_from_dewpoint.html" class="btn btn-neutral" title="relative_humidity_from_dewpoint" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> &copy; Copyright 2017, MetPy Developers. Last updated on Jan 04, 2018 at 19:56:08. </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-92978945-1', 'auto'); ga('send', 'pageview'); </script> <script>var version_json_loc = "../../../versions.json";</script> <p>Do you enjoy using MetPy? <a href="https://saythanks.io/to/unidata" class="btn btn-neutral" title="Say Thanks!" accesskey="n">Say Thanks!</a> </p> </footer> </div> </div> </section> </div> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT:'../../', VERSION:'0.7.0', LANGUAGE:'None', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true, SOURCELINK_SUFFIX: '.txt' }; </script> <script type="text/javascript" src="../../_static/jquery.js"></script> <script type="text/javascript" src="../../_static/underscore.js"></script> <script type="text/javascript" src="../../_static/doctools.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> <script type="text/javascript" src="../../_static/pop_ver.js"></script> <script type="text/javascript" src="../../_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.StickyNav.enable(); }); </script> </body> </html>
{ "content_hash": "9a5999cf62ad3213425f77e6f246d819", "timestamp": "", "source": "github", "line_count": 428, "max_line_length": 596, "avg_line_length": 53.38084112149533, "alnum_prop": 0.6684028537663588, "repo_name": "metpy/MetPy", "id": "f944120103990bfceb62de05e0b0be823d602731", "size": "22861", "binary": false, "copies": "1", "ref": "refs/heads/gh-pages", "path": "v0.7/api/generated/metpy.calc.relative_humidity_from_mixing_ratio.html", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Jupyter Notebook", "bytes": "989941" }, { "name": "Python", "bytes": "551868" } ], "symlink_target": "" }
/* pkcs1-rsa-sha256.c * * PKCS stuff for rsa-sha256. */ /* nettle, low-level cryptographics library * * Copyright (C) 2001, 2003, 2006 Niels Möller * * The nettle library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or (at your * option) any later version. * * The nettle library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with the nettle library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02111-1301, USA. */ #if HAVE_CONFIG_H # include "config.h" #endif #include <assert.h> #include <stdlib.h> #include <string.h> #include "rsa.h" #include "bignum.h" #include "pkcs1.h" #include "nettle-internal.h" /* From RFC 3447, Public-Key Cryptography Standards (PKCS) #1: RSA * Cryptography Specifications Version 2.1. * * id-sha256 OBJECT IDENTIFIER ::= * {joint-iso-itu-t(2) country(16) us(840) organization(1) * gov(101) csor(3) nistalgorithm(4) hashalgs(2) 1} */ static const uint8_t sha256_prefix[] = { /* 19 octets prefix, 32 octets hash, total 51 */ 0x30, 49, /* SEQUENCE */ 0x30, 13, /* SEQUENCE */ 0x06, 9, /* OBJECT IDENTIFIER */ 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x05, 0, /* NULL */ 0x04, 32 /* OCTET STRING */ /* Here comes the raw hash value */ }; int pkcs1_rsa_sha256_encode(mpz_t m, unsigned key_size, struct sha256_ctx *hash) { uint8_t *p; TMP_DECL(em, uint8_t, NETTLE_MAX_BIGNUM_SIZE); TMP_ALLOC(em, key_size); p = _pkcs1_signature_prefix(key_size, em, sizeof(sha256_prefix), sha256_prefix, SHA256_DIGEST_SIZE); if (p) { sha256_digest(hash, SHA256_DIGEST_SIZE, p); nettle_mpz_set_str_256_u(m, key_size, em); return 1; } else return 0; } int pkcs1_rsa_sha256_encode_digest(mpz_t m, unsigned key_size, const uint8_t *digest) { uint8_t *p; TMP_DECL(em, uint8_t, NETTLE_MAX_BIGNUM_SIZE); TMP_ALLOC(em, key_size); p = _pkcs1_signature_prefix(key_size, em, sizeof(sha256_prefix), sha256_prefix, SHA256_DIGEST_SIZE); if (p) { memcpy(p, digest, SHA256_DIGEST_SIZE); nettle_mpz_set_str_256_u(m, key_size, em); return 1; } else return 0; }
{ "content_hash": "c179a27aebb65df8c0e61ce38be59463", "timestamp": "", "source": "github", "line_count": 102, "max_line_length": 81, "avg_line_length": 26.80392156862745, "alnum_prop": 0.6485003657644477, "repo_name": "GaloisInc/hacrypto", "id": "cb07375535d0876a4e114268f5ac700fa12559d2", "size": "2735", "binary": false, "copies": "6", "ref": "refs/heads/master", "path": "src/C/nettle/nettle-2.7.1/pkcs1-rsa-sha256.c", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "AGS Script", "bytes": "62991" }, { "name": "Ada", "bytes": "443" }, { "name": "AppleScript", "bytes": "4518" }, { "name": "Assembly", "bytes": "25398957" }, { "name": "Awk", "bytes": "36188" }, { "name": "Batchfile", "bytes": "530568" }, { "name": "C", "bytes": "344517599" }, { "name": "C#", "bytes": "7553169" }, { "name": "C++", "bytes": "36635617" }, { "name": "CMake", "bytes": "213895" }, { "name": "CSS", "bytes": "139462" }, { "name": "Coq", "bytes": "320964" }, { "name": "Cuda", "bytes": "103316" }, { "name": "DIGITAL Command Language", "bytes": "1545539" }, { "name": "DTrace", "bytes": "33228" }, { "name": "Emacs Lisp", "bytes": "22827" }, { "name": "GDB", "bytes": "93449" }, { "name": "Gnuplot", "bytes": "7195" }, { "name": "Go", "bytes": "393057" }, { "name": "HTML", "bytes": "41466430" }, { "name": "Hack", "bytes": "22842" }, { "name": "Haskell", "bytes": "64053" }, { "name": "IDL", "bytes": "3205" }, { "name": "Java", "bytes": "49060925" }, { "name": "JavaScript", "bytes": "3476841" }, { "name": "Jolie", "bytes": "412" }, { "name": "Lex", "bytes": "26290" }, { "name": "Logos", "bytes": "108920" }, { "name": "Lua", "bytes": "427" }, { "name": "M4", "bytes": "2508986" }, { "name": "Makefile", "bytes": "29393197" }, { "name": "Mathematica", "bytes": "48978" }, { "name": "Mercury", "bytes": "2053" }, { "name": "Module Management System", "bytes": "1313" }, { "name": "NSIS", "bytes": "19051" }, { "name": "OCaml", "bytes": "981255" }, { "name": "Objective-C", "bytes": "4099236" }, { "name": "Objective-C++", "bytes": "243505" }, { "name": "PHP", "bytes": "22677635" }, { "name": "Pascal", "bytes": "99565" }, { "name": "Perl", "bytes": "35079773" }, { "name": "Prolog", "bytes": "350124" }, { "name": "Python", "bytes": "1242241" }, { "name": "Rebol", "bytes": "106436" }, { "name": "Roff", "bytes": "16457446" }, { "name": "Ruby", "bytes": "49694" }, { "name": "Scheme", "bytes": "138999" }, { "name": "Shell", "bytes": "10192290" }, { "name": "Smalltalk", "bytes": "22630" }, { "name": "Smarty", "bytes": "51246" }, { "name": "SourcePawn", "bytes": "542790" }, { "name": "SystemVerilog", "bytes": "95379" }, { "name": "Tcl", "bytes": "35696" }, { "name": "TeX", "bytes": "2351627" }, { "name": "Verilog", "bytes": "91541" }, { "name": "Visual Basic", "bytes": "88541" }, { "name": "XS", "bytes": "38300" }, { "name": "Yacc", "bytes": "132970" }, { "name": "eC", "bytes": "33673" }, { "name": "q", "bytes": "145272" }, { "name": "sed", "bytes": "1196" } ], "symlink_target": "" }
import React, { Component } from 'react'; export default class Counter extends Component { constructor(props) { super(props); this.state = { count: 0 }; this.update = this.update.bind(this); this.increment = this.increment.bind(this); this.decrement = this.decrement.bind(this); } update(value) { this.setState({ count: this.state.count + value }); } increment() { return this.update(1); } decrement() { return this.update(-1); } render() { return ( <div> <p>{this.state.count}</p> <button onClick={this.increment}>+1</button> <button onClick={this.decrement}>-1</button> </div> ); } }
{ "content_hash": "9743ca2db2a2de7ac74d93ee80e4d413", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 55, "avg_line_length": 23.2, "alnum_prop": 0.5833333333333334, "repo_name": "timReynolds/react-library-boilerplate", "id": "7dde85757178661a28ec4b168231a32cd6f898f8", "size": "696", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/index.js", "mode": "33261", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "2759" } ], "symlink_target": "" }
class SubscribeWorker include Sidekiq::Worker def perform(email, name=nil) if Rails.env == 'production' || Rails.env == 'test' JiscMailer.subscribe(email).deliver end end end
{ "content_hash": "7f8cd7343afb9405db2592d7f4d31a76", "timestamp": "", "source": "github", "line_count": 9, "max_line_length": 55, "avg_line_length": 21.77777777777778, "alnum_prop": 0.6836734693877551, "repo_name": "edpaget/Panoptes", "id": "d934c25583d70a773403f94d33ae3b7f4096b358", "size": "196", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "app/workers/subscribe_worker.rb", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "API Blueprint", "bytes": "170309" }, { "name": "CSS", "bytes": "5843" }, { "name": "HTML", "bytes": "51862" }, { "name": "JavaScript", "bytes": "641" }, { "name": "Ruby", "bytes": "948030" }, { "name": "Shell", "bytes": "685" } ], "symlink_target": "" }
ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
{ "content_hash": "106fe5d2a968614ff2224d2031fb030b", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.307692307692308, "alnum_prop": 0.6940298507462687, "repo_name": "mdoering/backbone", "id": "8e7dabc735d8b692d6aee57f5a35ce73faa7ed41", "size": "182", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Fabales/Fabaceae/Adesmia/Adesmia trifoliata/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
require 'test/unit' require 'test/helper' class TC_Process_Abort_ModuleMethod < Test::Unit::TestCase include Test::Helper def setup @stderr = STDERR.clone @file = File.join(Dir.pwd, 'tc_abort.txt') @fh = File.open(@file, "w") STDERR.reopen(@fh) end def test_abort_basic assert_respond_to(Process, :abort) end unless WINDOWS # def test_abort # fork{ Process.abort } # pid, status = Process.wait2 # assert_equal(1, status.exitstatus) # end # def test_abort_with_error_message # fork{ Process.abort("hello world") } # pid, status = Process.wait2 # # assert_equal(1, status.exitstatus) # assert_equal("hello world", IO.read(@file).chomp) # end end def teardown @fh.close if @fh && !@fh.closed? STDERR.reopen(@stderr) File.delete(@file) if File.exists?(@file) end end
{ "content_hash": "a7ffb9f2a2ecba80db053288cfcf6c04", "timestamp": "", "source": "github", "line_count": 39, "max_line_length": 59, "avg_line_length": 24.025641025641026, "alnum_prop": 0.5869797225186766, "repo_name": "google-code/android-scripting", "id": "fb8404a19fc4fa9b3b979efeffc35dbec82c0661", "size": "1226", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "jruby/src/test/externals/ruby_test/test/core/Process/class/tc_abort.rb", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ApacheConf", "bytes": "145847" }, { "name": "Assembly", "bytes": "310373" }, { "name": "Bison", "bytes": "162176" }, { "name": "C", "bytes": "14282640" }, { "name": "C++", "bytes": "105675" }, { "name": "CSS", "bytes": "24124" }, { "name": "Cucumber", "bytes": "11401" }, { "name": "Diff", "bytes": "13415" }, { "name": "Emacs Lisp", "bytes": "146938" }, { "name": "GAP", "bytes": "129009" }, { "name": "Groff", "bytes": "26385" }, { "name": "HTML", "bytes": "12203390" }, { "name": "Inno Setup", "bytes": "18796" }, { "name": "Java", "bytes": "9869454" }, { "name": "JavaScript", "bytes": "148" }, { "name": "Lua", "bytes": "178639" }, { "name": "Makefile", "bytes": "228172" }, { "name": "Objective-C", "bytes": "1384162" }, { "name": "OpenEdge ABL", "bytes": "125979" }, { "name": "Perl", "bytes": "3610" }, { "name": "Prolog", "bytes": "66" }, { "name": "Python", "bytes": "22184025" }, { "name": "R", "bytes": "697" }, { "name": "Ruby", "bytes": "12237045" }, { "name": "Shell", "bytes": "152111" }, { "name": "Tcl", "bytes": "1262" }, { "name": "VimL", "bytes": "9547" }, { "name": "Visual Basic", "bytes": "481" }, { "name": "XSLT", "bytes": "14806" } ], "symlink_target": "" }
ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in Bot. Mitt. Trop. 8: 44 (1895) #### Original name Henningsia Möller ### Remarks null
{ "content_hash": "44449571d0dd688d1560fbf10b1af178", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 13.23076923076923, "alnum_prop": 0.6918604651162791, "repo_name": "mdoering/backbone", "id": "54cc37d789404e60f0762f26bbe40c051fb567ad", "size": "213", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Fungi/Basidiomycota/Agaricomycetes/Polyporales/Meripilaceae/Henningsia/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
member's Area <?php echo anchor('login/logout','Logout'); ?>
{ "content_hash": "09ffac83c04ddb12c67f883f4bb90015", "timestamp": "", "source": "github", "line_count": 5, "max_line_length": 37, "avg_line_length": 12.4, "alnum_prop": 0.6612903225806451, "repo_name": "Rashed-BUET/Online_shopping", "id": "049547068b52c228d146e35ff7757a5c84526a71", "size": "62", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "application/views/members_area.php", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "240" }, { "name": "CSS", "bytes": "33636" }, { "name": "HTML", "bytes": "5633" }, { "name": "JavaScript", "bytes": "2577" }, { "name": "PHP", "bytes": "1839664" } ], "symlink_target": "" }
package org.dmfs.android.syncstate.test; import java.io.IOException; import org.dmfs.android.syncstate.ContactsSyncState; import org.dmfs.android.syncstate.SyncState; import org.dmfs.xmlobjects.ElementDescriptor; import org.dmfs.xmlobjects.QualifiedName; import org.dmfs.xmlobjects.XmlContext; import org.dmfs.xmlobjects.builder.StringObjectBuilder; import android.accounts.Account; import android.os.RemoteException; import android.test.AndroidTestCase; /** * Test {@link ContactsSyncState}. * * @author Marten Gajda <marten@dmfs.org> */ public class ContactsSyncStateTest extends AndroidTestCase { /** * Test descriptor that we add to the sync state. */ private final static ElementDescriptor<String> ELEMENT1 = ElementDescriptor.register(QualifiedName.get("http://dmfs.org/ns/1", "element1"), StringObjectBuilder.INSTANCE); /** * Another Test descriptor that we add to the sync state. */ private final static ElementDescriptor<String> ELEMENT2 = ElementDescriptor.register(QualifiedName.get("http://dmfs.org/ns/2", "element2"), StringObjectBuilder.INSTANCE); /** * An {@link XmlContext}. */ private final static XmlContext CONTEXT = new XmlContext(); /** * Test descriptor that we add to the sync state. This element is not in the default context. */ private final static ElementDescriptor<String> CONTEXT_ELEMENT1 = ElementDescriptor.register(QualifiedName.get("http://dmfs.org/ns/1", "context_element1"), StringObjectBuilder.INSTANCE, CONTEXT); /** * Another Test descriptor that we add to the sync state. This element is not in the default context. */ private final static ElementDescriptor<String> CONTEXT_ELEMENT2 = ElementDescriptor.register(QualifiedName.get("http://dmfs.org/ns/2", "context_element2"), StringObjectBuilder.INSTANCE, CONTEXT); public void testContactsSyncState() throws IOException, RemoteException { Account testAccount = new Account("test", "local" /* there is no "local account" for contacts */); // create a new ContactsSyncState for the test account SyncState s = new ContactsSyncState(getContext().getContentResolver(), testAccount) { }; // the values must not exist yet assertNull(s.get(ELEMENT1)); assertNull(s.get(ELEMENT2)); // add two values s.set(ELEMENT1, "some string value"); s.set(ELEMENT2, "some other string value"); // check that the values are returned assertEquals("some string value", s.get(ELEMENT1)); assertEquals("some other string value", s.get(ELEMENT2)); // store the sync state s.store(); // make sure that the values are still returned correctly assertEquals("some string value", s.get(ELEMENT1)); assertEquals("some other string value", s.get(ELEMENT2)); // create a new ContactsSyncState SyncState s2 = new ContactsSyncState(getContext().getContentResolver(), testAccount) { }; // ensure it doesn't contain any values yet assertNull(s2.get(ELEMENT1)); assertNull(s2.get(ELEMENT2)); // load the sync state s2.load(); // make sure that the values are still returned correctly assertEquals("some string value", s2.get(ELEMENT1)); assertEquals("some other string value", s2.get(ELEMENT2)); } public void testContactsSyncStateWithContext() throws IOException, RemoteException { Account testAccount = new Account("test2", "local" /* there is no "local account" for contacts */); // create a new ContactsSyncState for the test account SyncState s = new ContactsSyncState(getContext().getContentResolver(), testAccount) { }; // the values must not exist yet assertNull(s.get(CONTEXT_ELEMENT1)); assertNull(s.get(CONTEXT_ELEMENT2)); // add two values s.set(CONTEXT_ELEMENT1, "some string value"); s.set(CONTEXT_ELEMENT2, "some other string value"); // check that the values are returned assertEquals("some string value", s.get(CONTEXT_ELEMENT1)); assertEquals("some other string value", s.get(CONTEXT_ELEMENT2)); // store the sync state s.store(CONTEXT); // make sure that the values are still returned correctly assertEquals("some string value", s.get(CONTEXT_ELEMENT1)); assertEquals("some other string value", s.get(CONTEXT_ELEMENT2)); // create a new ContactsSyncState SyncState s2 = new ContactsSyncState(getContext().getContentResolver(), testAccount) { }; // ensure it doesn't contain any values yet assertNull(s2.get(CONTEXT_ELEMENT1)); assertNull(s2.get(CONTEXT_ELEMENT2)); // load the sync state s2.load(CONTEXT); // make sure that the values are still returned correctly assertEquals("some string value", s2.get(CONTEXT_ELEMENT1)); assertEquals("some other string value", s2.get(CONTEXT_ELEMENT2)); } }
{ "content_hash": "def83a8bf722ff7e588dc6187570c592", "timestamp": "", "source": "github", "line_count": 145, "max_line_length": 156, "avg_line_length": 32.213793103448275, "alnum_prop": 0.7398843930635838, "repo_name": "dmfs/android-syncstate", "id": "519248f043dba4d8caf5eba4655561ed22dbd7e6", "size": "4671", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "android-syncstate-test-test/src/org/dmfs/android/syncstate/test/ContactsSyncStateTest.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "24352" } ], "symlink_target": "" }
/* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_NAND_H #define __STM32F4xx_HAL_NAND_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx)|| defined(STM32F417xx) #include "stm32f4xx_ll_fsmc.h" #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) #include "stm32f4xx_ll_fmc.h" #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup NAND * @{ */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) || defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) /* Exported typedef ----------------------------------------------------------*/ /* Exported types ------------------------------------------------------------*/ /** @defgroup NAND_Exported_Types NAND Exported Types * @{ */ /** * @brief HAL NAND State structures definition */ typedef enum { HAL_NAND_STATE_RESET = 0x00, /*!< NAND not yet initialized or disabled */ HAL_NAND_STATE_READY = 0x01, /*!< NAND initialized and ready for use */ HAL_NAND_STATE_BUSY = 0x02, /*!< NAND internal process is ongoing */ HAL_NAND_STATE_ERROR = 0x03 /*!< NAND error state */ }HAL_NAND_StateTypeDef; /** * @brief NAND Memory electronic signature Structure definition */ typedef struct { /*<! NAND memory electronic signature maker and device IDs */ uint8_t Maker_Id; uint8_t Device_Id; uint8_t Third_Id; uint8_t Fourth_Id; }NAND_IDTypeDef; /** * @brief NAND Memory address Structure definition */ typedef struct { uint16_t Page; /*!< NAND memory Page address */ uint16_t Zone; /*!< NAND memory Zone address */ uint16_t Block; /*!< NAND memory Block address */ }NAND_AddressTypeDef; /** * @brief NAND Memory info Structure definition */ typedef struct { uint32_t PageSize; /*!< NAND memory page (without spare area) size measured in K. bytes */ uint32_t SpareAreaSize; /*!< NAND memory spare area size measured in K. bytes */ uint32_t BlockSize; /*!< NAND memory block size number of pages */ uint32_t BlockNbr; /*!< NAND memory number of blocks */ uint32_t ZoneSize; /*!< NAND memory zone size measured in number of blocks */ }NAND_InfoTypeDef; /** * @brief NAND handle Structure definition */ typedef struct { FMC_NAND_TypeDef *Instance; /*!< Register base address */ FMC_NAND_InitTypeDef Init; /*!< NAND device control configuration parameters */ HAL_LockTypeDef Lock; /*!< NAND locking object */ __IO HAL_NAND_StateTypeDef State; /*!< NAND device access state */ NAND_InfoTypeDef Info; /*!< NAND characteristic information structure */ }NAND_HandleTypeDef; /** * @} */ /* Exported constants --------------------------------------------------------*/ /* Exported macro ------------------------------------------------------------*/ /** @defgroup NAND_Exported_Macros NAND Exported Macros * @{ */ /** @brief Reset NAND handle state * @param __HANDLE__: specifies the NAND handle. * @retval None */ #define __HAL_NAND_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_NAND_STATE_RESET) /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @addtogroup NAND_Exported_Functions NAND Exported Functions * @{ */ /** @addtogroup NAND_Exported_Functions_Group1 Initialization and de-initialization functions * @{ */ /* Initialization/de-initialization functions ********************************/ HAL_StatusTypeDef HAL_NAND_Init(NAND_HandleTypeDef *hnand, FMC_NAND_PCC_TimingTypeDef *ComSpace_Timing, FMC_NAND_PCC_TimingTypeDef *AttSpace_Timing); HAL_StatusTypeDef HAL_NAND_DeInit(NAND_HandleTypeDef *hnand); void HAL_NAND_MspInit(NAND_HandleTypeDef *hnand); void HAL_NAND_MspDeInit(NAND_HandleTypeDef *hnand); void HAL_NAND_IRQHandler(NAND_HandleTypeDef *hnand); void HAL_NAND_ITCallback(NAND_HandleTypeDef *hnand); /** * @} */ /** @addtogroup NAND_Exported_Functions_Group2 Input and Output functions * @{ */ /* IO operation functions ****************************************************/ HAL_StatusTypeDef HAL_NAND_Read_ID(NAND_HandleTypeDef *hnand, NAND_IDTypeDef *pNAND_ID); HAL_StatusTypeDef HAL_NAND_Reset(NAND_HandleTypeDef *hnand); HAL_StatusTypeDef HAL_NAND_Read_Page(NAND_HandleTypeDef *hnand, NAND_AddressTypeDef *pAddress, uint8_t *pBuffer, uint32_t NumPageToRead); HAL_StatusTypeDef HAL_NAND_Write_Page(NAND_HandleTypeDef *hnand, NAND_AddressTypeDef *pAddress, uint8_t *pBuffer, uint32_t NumPageToWrite); HAL_StatusTypeDef HAL_NAND_Read_SpareArea(NAND_HandleTypeDef *hnand, NAND_AddressTypeDef *pAddress, uint8_t *pBuffer, uint32_t NumSpareAreaToRead); HAL_StatusTypeDef HAL_NAND_Write_SpareArea(NAND_HandleTypeDef *hnand, NAND_AddressTypeDef *pAddress, uint8_t *pBuffer, uint32_t NumSpareAreaTowrite); HAL_StatusTypeDef HAL_NAND_Erase_Block(NAND_HandleTypeDef *hnand, NAND_AddressTypeDef *pAddress); uint32_t HAL_NAND_Read_Status(NAND_HandleTypeDef *hnand); uint32_t HAL_NAND_Address_Inc(NAND_HandleTypeDef *hnand, NAND_AddressTypeDef *pAddress); /** * @} */ /** @addtogroup NAND_Exported_Functions_Group3 Peripheral Control functions * @{ */ /* NAND Control functions ****************************************************/ HAL_StatusTypeDef HAL_NAND_ECC_Enable(NAND_HandleTypeDef *hnand); HAL_StatusTypeDef HAL_NAND_ECC_Disable(NAND_HandleTypeDef *hnand); HAL_StatusTypeDef HAL_NAND_GetECC(NAND_HandleTypeDef *hnand, uint32_t *ECCval, uint32_t Timeout); /** * @} */ /** @addtogroup NAND_Exported_Functions_Group4 Peripheral State functions * @{ */ /* NAND State functions *******************************************************/ HAL_NAND_StateTypeDef HAL_NAND_GetState(NAND_HandleTypeDef *hnand); uint32_t HAL_NAND_Read_Status(NAND_HandleTypeDef *hnand); /** * @} */ /** * @} */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @defgroup NAND_Private_Constants NAND Private Constants * @{ */ #define NAND_DEVICE1 ((uint32_t)0x70000000) #define NAND_DEVICE2 ((uint32_t)0x80000000) #define NAND_WRITE_TIMEOUT ((uint32_t)0x01000000) #define CMD_AREA ((uint32_t)(1<<16)) /* A16 = CLE high */ #define ADDR_AREA ((uint32_t)(1<<17)) /* A17 = ALE high */ #define NAND_CMD_AREA_A ((uint8_t)0x00) #define NAND_CMD_AREA_B ((uint8_t)0x01) #define NAND_CMD_AREA_C ((uint8_t)0x50) #define NAND_CMD_AREA_TRUE1 ((uint8_t)0x30) #define NAND_CMD_WRITE0 ((uint8_t)0x80) #define NAND_CMD_WRITE_TRUE1 ((uint8_t)0x10) #define NAND_CMD_ERASE0 ((uint8_t)0x60) #define NAND_CMD_ERASE1 ((uint8_t)0xD0) #define NAND_CMD_READID ((uint8_t)0x90) #define NAND_CMD_STATUS ((uint8_t)0x70) #define NAND_CMD_LOCK_STATUS ((uint8_t)0x7A) #define NAND_CMD_RESET ((uint8_t)0xFF) /* NAND memory status */ #define NAND_VALID_ADDRESS ((uint32_t)0x00000100) #define NAND_INVALID_ADDRESS ((uint32_t)0x00000200) #define NAND_TIMEOUT_ERROR ((uint32_t)0x00000400) #define NAND_BUSY ((uint32_t)0x00000000) #define NAND_ERROR ((uint32_t)0x00000001) #define NAND_READY ((uint32_t)0x00000040) /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup NAND_Private_Macros NAND Private Macros * @{ */ /** * @brief NAND memory address computation. * @param __ADDRESS__: NAND memory address. * @param __HANDLE__ : NAND handle. * @retval NAND Raw address value */ #define ARRAY_ADDRESS(__ADDRESS__ , __HANDLE__) ((__ADDRESS__)->Page + \ (((__ADDRESS__)->Block + (((__ADDRESS__)->Zone) * ((__HANDLE__)->Info.ZoneSize)))* ((__HANDLE__)->Info.BlockSize))) /** * @brief NAND memory address cycling. * @param __ADDRESS__: NAND memory address. * @retval NAND address cycling value. */ #define ADDR_1ST_CYCLE(__ADDRESS__) (uint8_t)(__ADDRESS__) /* 1st addressing cycle */ #define ADDR_2ND_CYCLE(__ADDRESS__) (uint8_t)((__ADDRESS__) >> 8) /* 2nd addressing cycle */ #define ADDR_3RD_CYCLE(__ADDRESS__) (uint8_t)((__ADDRESS__) >> 16) /* 3rd addressing cycle */ #define ADDR_4TH_CYCLE(__ADDRESS__) (uint8_t)((__ADDRESS__) >> 24) /* 4th addressing cycle */ /** * @} */ #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_NAND_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
{ "content_hash": "3b377a495672ffc0325f093bdd2343d6", "timestamp": "", "source": "github", "line_count": 276, "max_line_length": 192, "avg_line_length": 34.981884057971016, "alnum_prop": 0.5761781460383221, "repo_name": "redfern314/uplink", "id": "61346950ad658c968497aaf81d7c2c17770d1bbc", "size": "11707", "binary": false, "copies": "5", "ref": "refs/heads/master", "path": "device/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_nand.h", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "943956" }, { "name": "C", "bytes": "34250844" }, { "name": "C++", "bytes": "663798" }, { "name": "CSS", "bytes": "139339" }, { "name": "JavaScript", "bytes": "503263" }, { "name": "Makefile", "bytes": "22045" }, { "name": "Objective-C", "bytes": "1804" }, { "name": "Perl", "bytes": "22806" }, { "name": "Prolog", "bytes": "1856" }, { "name": "Python", "bytes": "798" }, { "name": "Shell", "bytes": "23522" }, { "name": "Tcl", "bytes": "72" } ], "symlink_target": "" }
Person.prototype.age = { get = function (self) print("get age = ", self._age); return self._age; end, set = function (self, value) print("set age = ", value); self._age = value; end }; local p = Person(); p.age = 12; print (p.age);
{ "content_hash": "c37c3fe5827b897638db96c705158579", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 47, "avg_line_length": 17.785714285714285, "alnum_prop": 0.5823293172690763, "repo_name": "vimfung/LuaScriptCore", "id": "cd6f59c9e93fef4804c237372a95ccfe69faed6d", "size": "249", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Source/Unity3D/UnityProject/Assets/StreamingAssets/defineProperty.lua", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "1084638" }, { "name": "C#", "bytes": "241847" }, { "name": "C++", "bytes": "499881" }, { "name": "CMake", "bytes": "5379" }, { "name": "CSS", "bytes": "2143" }, { "name": "HTML", "bytes": "285074" }, { "name": "Java", "bytes": "77006" }, { "name": "Lua", "bytes": "29866" }, { "name": "Makefile", "bytes": "20155" }, { "name": "Objective-C", "bytes": "282310" }, { "name": "Objective-C++", "bytes": "6679" }, { "name": "Roff", "bytes": "10307" }, { "name": "Ruby", "bytes": "6510" }, { "name": "Swift", "bytes": "23727" } ], "symlink_target": "" }
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
{ "content_hash": "1a97f23499c0e692710fc139262dbc43", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.23076923076923, "alnum_prop": 0.6917293233082706, "repo_name": "mdoering/backbone", "id": "922dfc39c38040697c91ffc9cb0d6fa03b1a4ede", "size": "186", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Liliopsida/Liliales/Melanthiaceae/Chamaelirium/Chamaelirium luteum/ Syn. Ophiostachys virginica/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
Rational Synergy/Change scripts The perl folder contains an example PM which has a few methods that proivde some useful synegry functions. It's main aim though is to show how to use the CSAPI to dump CR attachments. The CLI folder has a demo script which shows you how to do the same thing from the Linux CLI. It does NOT use the CSAPI, but uses the CLI synergy interface. In the end, most of my heavy-lifting was done from the CLI end, as it's more completley implemented, or was at the time. (c) KC 2009
{ "content_hash": "1b6506ba25bf1aac2312f45c32a4290e", "timestamp": "", "source": "github", "line_count": 9, "max_line_length": 184, "avg_line_length": 56.888888888888886, "alnum_prop": 0.7734375, "repo_name": "saint-kev/rat-syn-change", "id": "5e025ce4fdabd92075aa502b0fb11b5dea0e13d0", "size": "529", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "README.md", "mode": "33188", "license": "mit", "language": [ { "name": "Perl", "bytes": "10073" }, { "name": "Shell", "bytes": "6076" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace Xemio.GameLibrary.Common.Collections.DictionaryActions { internal interface IDictionaryAction<TKey, TValue> { /// <summary> /// Applies the action to the specified dictionary. /// </summary> /// <param name="dictionary">The dictionary.</param> void Apply(Dictionary<TKey, TValue> dictionary); } }
{ "content_hash": "e8d40f0fe31b06a35c6468137380ab67", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 64, "avg_line_length": 27.294117647058822, "alnum_prop": 0.6810344827586207, "repo_name": "XemioNetwork/GameLibrary", "id": "f4a85ba8b6fe325011f6e3b6377a0f03c5b24bf2", "size": "466", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "GameLibrary/Common/Collections/DictionaryActions/IDictionaryAction.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "1238521" } ], "symlink_target": "" }
package org.jf.dexlib2.dexbacked.util; import com.google.common.collect.ImmutableSet; import org.jf.dexlib2.base.BaseMethodParameter; import org.jf.dexlib2.iface.Annotation; import org.jf.dexlib2.iface.MethodParameter; import java.util.Iterator; import java.util.List; import java.util.Set; import javax.annotation.Nonnull; import javax.annotation.Nullable; public class ParameterIterator implements Iterator<MethodParameter> { private final Iterator<? extends CharSequence> parameterTypes; private final Iterator<? extends Set<? extends Annotation>> parameterAnnotations; private final Iterator<String> parameterNames; public ParameterIterator(@Nonnull List<? extends CharSequence> parameterTypes, @Nonnull List<? extends Set<? extends Annotation>> parameterAnnotations, @Nonnull Iterator<String> parameterNames) { this.parameterTypes = parameterTypes.iterator(); this.parameterAnnotations = parameterAnnotations.iterator(); this.parameterNames = parameterNames; } @Override public boolean hasNext() { return parameterTypes.hasNext(); } @Override public MethodParameter next() { @Nonnull final String type = parameterTypes.next().toString(); @Nonnull final Set<? extends Annotation> annotations; @Nullable final String name; if (parameterAnnotations.hasNext()) { annotations = parameterAnnotations.next(); } else { annotations = ImmutableSet.of(); } if (parameterNames.hasNext()) { name = parameterNames.next(); } else { name = null; } return new BaseMethodParameter() { @Nonnull @Override public Set<? extends Annotation> getAnnotations() { return annotations; } @Nullable @Override public String getName() { return name; } @Nonnull @Override public String getType() { return type; } }; } @Override public void remove() { throw new UnsupportedOperationException(); } }
{ "content_hash": "3b367f431e9efd79b445dc0c293dcf5a", "timestamp": "", "source": "github", "line_count": 79, "max_line_length": 101, "avg_line_length": 28.72151898734177, "alnum_prop": 0.619215513442045, "repo_name": "aliebrahimi1781/show-java", "id": "e62cbd938ec50d385114dadb76d0f70acc90ac06", "size": "3831", "binary": false, "copies": "7", "ref": "refs/heads/master", "path": "app/src/main/java/org/jf/dexlib2/dexbacked/util/ParameterIterator.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "3339027" } ], "symlink_target": "" }
package com.mayurbhangale.sknsitstechtonic; import android.app.Activity; import android.app.ListActivity; import android.os.Bundle; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.AbsListView; import android.widget.ListView; import android.widget.Toast; import com.twitter.sdk.android.core.Callback; import com.twitter.sdk.android.core.Result; import com.twitter.sdk.android.core.TwitterAuthException; import com.twitter.sdk.android.core.TwitterException; import com.twitter.sdk.android.core.models.Tweet; import com.twitter.sdk.android.tweetui.SearchTimeline; import com.twitter.sdk.android.tweetui.TimelineResult; import com.twitter.sdk.android.tweetui.TweetTimelineListAdapter; import com.twitter.sdk.android.tweetui.UserTimeline; import java.lang.ref.WeakReference; public class TimelineActivity extends AppCompatActivity { final String TAG = "Loading tweets"; final WeakReference<Activity> activityRef = new WeakReference<Activity>(TimelineActivity.this); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.timeline); ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { actionBar.setTitle(R.string.refresh_timeline_title); } final SwipeRefreshLayout swipeLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_layout); final View emptyView = findViewById(android.R.id.empty); final ListView listView = (ListView) findViewById(android.R.id.list); listView.setEmptyView(emptyView); final SearchTimeline searchTimeline = new SearchTimeline.Builder() .query("#techtonic") .build(); Log.i(TAG,"Timeline Built"); /*final UserTimeline userTimeline = new UserTimeline.Builder() .screenName("fabric") .build();*/ final TweetTimelineListAdapter adapter = new TweetTimelineListAdapter.Builder(this) .setTimeline(searchTimeline) .setViewStyle(R.style.tw__TweetLightWithActionsStyle) .build(); listView.setAdapter(adapter); Log.i(TAG, "let"); // set custom scroll listener to enable swipe refresh layout only when at list top listView.setOnScrollListener(new AbsListView.OnScrollListener() { boolean enableRefresh = false; @Override public void onScrollStateChanged(AbsListView view, int scrollState) { } @Override public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (listView != null && listView.getChildCount() > 0) { // check that the first item is visible and that its top matches the parent enableRefresh = listView.getFirstVisiblePosition() == 0 && listView.getChildAt(0).getTop() >= 0; } else { enableRefresh = false; } swipeLayout.setEnabled(enableRefresh); } }); // specify action to take on swipe refresh swipeLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() { @Override public void onRefresh() { swipeLayout.setRefreshing(true); adapter.refresh(new Callback<TimelineResult<Tweet>>() { @Override public void success(Result<TimelineResult<Tweet>> result) { swipeLayout.setRefreshing(false); } @Override public void failure(TwitterException exception) { swipeLayout.setRefreshing(false); final Activity activity = activityRef.get(); if (activity != null && !activity.isFinishing()) { Toast.makeText(activity, exception.getMessage(), Toast.LENGTH_SHORT).show(); } } }); } }); } }
{ "content_hash": "c541d1bfa589689aa15fad37658f20a2", "timestamp": "", "source": "github", "line_count": 107, "max_line_length": 100, "avg_line_length": 41.018691588785046, "alnum_prop": 0.6258828890407838, "repo_name": "mayurbhangale/SKNSITS-Techtonic-2016", "id": "5d126e3d787f9d46a32a6f4de3902834aff6c054", "size": "4389", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/com/mayurbhangale/sknsitstechtonic/TimelineActivity.java", "mode": "33261", "license": "mit", "language": [ { "name": "HTML", "bytes": "8179" }, { "name": "Java", "bytes": "22071" } ], "symlink_target": "" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_60-ea) on Mon Jun 27 14:13:43 EDT 2016 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Interface org.wildfly.swarm.messaging.EnhancedServerConsumer (WildFly Swarm: Public javadocs 1.0.0.Final API)</title> <meta name="date" content="2016-06-27"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Interface org.wildfly.swarm.messaging.EnhancedServerConsumer (WildFly Swarm: Public javadocs 1.0.0.Final API)"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../org/wildfly/swarm/messaging/EnhancedServerConsumer.html" title="interface in org.wildfly.swarm.messaging">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../../../overview-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage">WildFly Swarm API, 1.0.0.Final</div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/wildfly/swarm/messaging/class-use/EnhancedServerConsumer.html" target="_top">Frames</a></li> <li><a href="EnhancedServerConsumer.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Interface org.wildfly.swarm.messaging.EnhancedServerConsumer" class="title">Uses of Interface<br>org.wildfly.swarm.messaging.EnhancedServerConsumer</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../../org/wildfly/swarm/messaging/EnhancedServerConsumer.html" title="interface in org.wildfly.swarm.messaging">EnhancedServerConsumer</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#org.wildfly.swarm.messaging">org.wildfly.swarm.messaging</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="org.wildfly.swarm.messaging"> <!-- --> </a> <h3>Uses of <a href="../../../../../org/wildfly/swarm/messaging/EnhancedServerConsumer.html" title="interface in org.wildfly.swarm.messaging">EnhancedServerConsumer</a> in <a href="../../../../../org/wildfly/swarm/messaging/package-summary.html">org.wildfly.swarm.messaging</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../org/wildfly/swarm/messaging/package-summary.html">org.wildfly.swarm.messaging</a> that return <a href="../../../../../org/wildfly/swarm/messaging/EnhancedServerConsumer.html" title="interface in org.wildfly.swarm.messaging">EnhancedServerConsumer</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>default <a href="../../../../../org/wildfly/swarm/messaging/EnhancedServerConsumer.html" title="interface in org.wildfly.swarm.messaging">EnhancedServerConsumer</a></code></td> <td class="colLast"><span class="typeNameLabel">EnhancedServerConsumer.</span><code><span class="memberNameLink"><a href="../../../../../org/wildfly/swarm/messaging/EnhancedServerConsumer.html#then-org.wildfly.swarm.messaging.EnhancedServerConsumer-">then</a></span>(<a href="../../../../../org/wildfly/swarm/messaging/EnhancedServerConsumer.html" title="interface in org.wildfly.swarm.messaging">EnhancedServerConsumer</a>&nbsp;after)</code>&nbsp;</td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../org/wildfly/swarm/messaging/package-summary.html">org.wildfly.swarm.messaging</a> with parameters of type <a href="../../../../../org/wildfly/swarm/messaging/EnhancedServerConsumer.html" title="interface in org.wildfly.swarm.messaging">EnhancedServerConsumer</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../org/wildfly/swarm/messaging/MessagingFraction.html" title="class in org.wildfly.swarm.messaging">MessagingFraction</a></code></td> <td class="colLast"><span class="typeNameLabel">MessagingFraction.</span><code><span class="memberNameLink"><a href="../../../../../org/wildfly/swarm/messaging/MessagingFraction.html#createDefaultFraction-org.wildfly.swarm.messaging.EnhancedServerConsumer-">createDefaultFraction</a></span>(<a href="../../../../../org/wildfly/swarm/messaging/EnhancedServerConsumer.html" title="interface in org.wildfly.swarm.messaging">EnhancedServerConsumer</a>&nbsp;config)</code> <div class="block">Create a fraction and configure the default local server.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../org/wildfly/swarm/messaging/MessagingFraction.html" title="class in org.wildfly.swarm.messaging">MessagingFraction</a></code></td> <td class="colLast"><span class="typeNameLabel">MessagingFraction.</span><code><span class="memberNameLink"><a href="../../../../../org/wildfly/swarm/messaging/MessagingFraction.html#defaultServer-org.wildfly.swarm.messaging.EnhancedServerConsumer-">defaultServer</a></span>(<a href="../../../../../org/wildfly/swarm/messaging/EnhancedServerConsumer.html" title="interface in org.wildfly.swarm.messaging">EnhancedServerConsumer</a>&nbsp;config)</code> <div class="block">Configure the default local server, creating it first if required.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../org/wildfly/swarm/messaging/MessagingFraction.html" title="class in org.wildfly.swarm.messaging">MessagingFraction</a></code></td> <td class="colLast"><span class="typeNameLabel">MessagingFraction.</span><code><span class="memberNameLink"><a href="../../../../../org/wildfly/swarm/messaging/MessagingFraction.html#server-java.lang.String-org.wildfly.swarm.messaging.EnhancedServerConsumer-">server</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;childKey, <a href="../../../../../org/wildfly/swarm/messaging/EnhancedServerConsumer.html" title="interface in org.wildfly.swarm.messaging">EnhancedServerConsumer</a>&nbsp;config)</code> <div class="block">Configure a named server.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>default <a href="../../../../../org/wildfly/swarm/messaging/EnhancedServerConsumer.html" title="interface in org.wildfly.swarm.messaging">EnhancedServerConsumer</a></code></td> <td class="colLast"><span class="typeNameLabel">EnhancedServerConsumer.</span><code><span class="memberNameLink"><a href="../../../../../org/wildfly/swarm/messaging/EnhancedServerConsumer.html#then-org.wildfly.swarm.messaging.EnhancedServerConsumer-">then</a></span>(<a href="../../../../../org/wildfly/swarm/messaging/EnhancedServerConsumer.html" title="interface in org.wildfly.swarm.messaging">EnhancedServerConsumer</a>&nbsp;after)</code>&nbsp;</td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../org/wildfly/swarm/messaging/EnhancedServerConsumer.html" title="interface in org.wildfly.swarm.messaging">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../../../overview-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage">WildFly Swarm API, 1.0.0.Final</div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/wildfly/swarm/messaging/class-use/EnhancedServerConsumer.html" target="_top">Frames</a></li> <li><a href="EnhancedServerConsumer.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2016 <a href="http://www.jboss.org">JBoss by Red Hat</a>. All rights reserved.</small></p> </body> </html>
{ "content_hash": "df9388ce9b4443ee568585809aac46d9", "timestamp": "", "source": "github", "line_count": 200, "max_line_length": 467, "avg_line_length": 55.69, "alnum_prop": 0.6819895852038068, "repo_name": "wildfly-swarm/wildfly-swarm-javadocs", "id": "46168ef123ca60a63c04e5533c913ceaa0f41fca", "size": "11138", "binary": false, "copies": "1", "ref": "refs/heads/gh-pages", "path": "1.0.0.Final/apidocs/org/wildfly/swarm/messaging/class-use/EnhancedServerConsumer.html", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
import React, { useRef } from 'react'; import { Box, Button, Menu, MenuButton, MenuList, Tooltip, } from '@chakra-ui/react'; import { getTimeZones } from '@vvo/tzdb'; import Select from 'components/MultiSelect'; import { useDateContext } from 'providers/DateProvider'; interface Option { value: string, label: string } const TimezoneDropdown: React.FC = () => { const { timezone, setTimezone, formatDate } = useDateContext(); const menuRef = useRef<HTMLButtonElement>(null); const timezones = getTimeZones(); let currentTimezone; const options = timezones.map(({ name, currentTimeFormat, group }) => { const label = `${currentTimeFormat.substring(0, 6)} ${name.replace(/_/g, ' ')}`; if (name === timezone || group.includes(timezone)) currentTimezone = { label, value: name }; return { label, value: name }; }); const onChangeTimezone = (newTimezone: Option | null) => { if (newTimezone) { setTimezone(newTimezone.value); // Close the dropdown on a successful change menuRef?.current?.click(); } }; return ( <Menu isLazy> <Tooltip label="Change time zone" hasArrow> <MenuButton as={Button} variant="ghost" mr="4" ref={menuRef}> <Box as="time" dateTime={formatDate()} fontSize="md" > {formatDate()} </Box> </MenuButton> </Tooltip> <MenuList placement="top-end" minWidth="350px" px="3" pb="1"> <Select autoFocus options={options} value={currentTimezone} onChange={onChangeTimezone} /> </MenuList> </Menu> ); }; export default TimezoneDropdown;
{ "content_hash": "4dc8ca99335ca4a66424781491985fbf", "timestamp": "", "source": "github", "line_count": 66, "max_line_length": 96, "avg_line_length": 25.818181818181817, "alnum_prop": 0.6044600938967136, "repo_name": "lyft/incubator-airflow", "id": "cb829f0370fe3eb69d2453ddcccb41e1e8662469", "size": "2512", "binary": false, "copies": "8", "ref": "refs/heads/main", "path": "airflow/ui/src/components/AppContainer/TimezoneDropdown.tsx", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "13715" }, { "name": "Dockerfile", "bytes": "17280" }, { "name": "HTML", "bytes": "161328" }, { "name": "JavaScript", "bytes": "25360" }, { "name": "Jinja", "bytes": "8565" }, { "name": "Jupyter Notebook", "bytes": "2933" }, { "name": "Mako", "bytes": "1339" }, { "name": "Python", "bytes": "10019710" }, { "name": "Shell", "bytes": "220780" } ], "symlink_target": "" }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Tag: MySQL | wdpm&#39;s blog | Actions speak louder than words.</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="undefined"> <meta name="description" content="wdpm&apos;s blog | front end| java | android | php"> <meta property="og:type" content="website"> <meta property="og:title" content="wdpm's blog"> <meta property="og:url" content="http://www.imwdpm.me/tags/MySQL/index.html"> <meta property="og:site_name" content="wdpm's blog"> <meta property="og:description" content="wdpm&apos;s blog | front end| java | android | php"> <meta name="twitter:card" content="summary"> <meta name="twitter:title" content="wdpm's blog"> <meta name="twitter:description" content="wdpm&apos;s blog | front end| java | android | php"> <link rel="alternative" href="/atom.xml" title="wdpm&#39;s blog" type="application/atom+xml"> <meta name="summary" content="wdpm&#39;s blog | front end| java | android | php"> <link rel="shortcut icon" href="/favicon.ico"> <link rel="stylesheet" href="/css/style.css"> </head> <body> <div id="loading" class="active"></div> <nav id="menu" > <div class="inner"> <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off"> <i class="icon icon-lg icon-close"></i> </a> <div class="brand-wrap"> <div class="brand"> <a href="/" class="avatar"><img src="/img/logo.jpg"></a> <hgroup class="introduce"> <h5 class="nickname">wdpm</h5> <a href="mailto:undefined" title="1137299673@qq.com" class="mail">1137299673@qq.com</a> </hgroup> </div> </div> <ul class="nav"> <li class="waves-block waves-effect"> <a href="/" > <i class="icon icon-lg icon-home"></i> Home </a> </li> <li class="waves-block waves-effect"> <a href="/archives" > <i class="icon icon-lg icon-archives"></i> Archives </a> </li> <li class="waves-block waves-effect active"> <a href="/tags" > <i class="icon icon-lg icon-tags"></i> Tags </a> </li> <li class="waves-block waves-effect"> <a href="https://github.com/wdpm" target="_blank" > <i class="icon icon-lg icon-github"></i> Github </a> </li> </ul> <footer class="footer"> <p><a rel="license" target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0;vertical-align:middle;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAPCAMAAABEF7i9AAAAllBMVEUAAAD///+rsapERER3d3eIiIjMzMzu7u4iIiKUmZO6v7rKzsoODg4RERFVVVUNDQ0NDg0PEA8zMzNLTEtbXltmZmZydnF9gn2AgICPkI+ZmZmqqqq7u7vFxsXIzMgNDQwZGRkgICAhISEkJSMnKCcuMC4xMzE5Ozk7PTtBQkFCQkJDQ0Nna2eGhoaHh4ezuLLGysbd3d1wVGpAAAAA4UlEQVR42q2T1xqCMAyFk7QsBQeKA9x7j/d/OSm22CpX0nzcpA1/T05aAOuBVkMAScQFHLnEwoCo2f1TnQIGoVMewjZEjVFN4GH1Ue1Cn2jWqwfsOOj6wDwGvotsl/c8lv7KIq1eLOsT0HMFHMIE/RZyHnlphryT9zyV+8WH5e8yQw3wnQvgAFxPTKUVi555SHR/lOfLMgVTeDlSfN+TaoUsiTyeIm+bCkHvCA2FUKG48LDtYBZBknsYP/G8NTw0gaaHyuQf4H5pecrB/FYCT2sL9zAfy1Xyjou6L8X2W7YcLyBZCRtnq/zfAAAAAElFTkSuQmCC" /></a></p> <p>wdpm&#39;s blog &copy; 2016</p> <p>Power by <a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a></p> <a href="/atom.xml" target="_blank" class="rss" title="rss"><i class="icon icon-2x icon-rss-square"></i></a> <!--不蒜子 极简网页计数器,采用pv计数方式:单个用户连续点击n篇文章,记录n次访问量 <script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script> <span id="busuanzi_container_site_pv">本站总访问量<span id="busuanzi_value_site_pv"></span>次</span><br/> 您是第<span id="busuanzi_value_site_uv"></span>位访客 --> <!--cnzz--> <script type="text/javascript"> var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://"); <!--style='display:none'--> document.write(unescape("%3Cspan id='cnzz_stat_icon_1258141698' %3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s95.cnzz.com/z_stat.php%3Fid%3D1258141698%26show%3Dpic' type='text/javascript'%3E%3C/script%3E")); </script> </footer> </div> </nav> <main id="main"> <header class="header" id="header"> <div class="flex-row"> <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle"> <i class="icon icon-lg icon-navicon"></i> </a> <div class="flex-col header-title ellipsis">wdpm&#39;s blog</div> <div class="search-wrap" id="search-wrap"> <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back"> <i class="icon icon-lg icon-chevron-left"></i> </a> <input type="text" id="key" class="search-input " autocomplete="off" placeholder="输入感兴趣的关键字"> <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search"> <i class="icon icon-lg icon-search"></i> </a> </div> <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-share"> <i class="icon icon-lg icon-share-alt"></i> </a> </div> </header> <header class="content-header"> <div class="container"> <h1 class="author">wdpm&#39;s blog</h1> <h5 class="subtitle">Actions speak louder than words.</h5> </div> </header> <div class="container body-wrap"> <section class="archives-wrap flex-row"> <div class="archive-year-wrap"> <a href="/archives/2016" class="archive-year waves-effect waves-circle waves-light">2016</a> </div> <div class="archives flex-col"> <article class="archive-article archive-type-post"> <div class="archive-article-inner"> <header class="archive-article-header flex-row flex-middle"> <div class="flex-col"> <h3 class="post-title" itemprop="name"> <a class="post-title-link" href="/20160602/mysql-tips/">MySQL小知识</a> </h3> </div> <time datetime="2016-06-02T10:18:57.133Z" itemprop="datePublished" class="post-tiem"> 6月 2 </time> </header> <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/MySQL/">MySQL</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/tips/">tips</a></li></ul> </div> </article> </div> </section> </div> </main> <div class="mask" id="mask"></div> <a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a> <script> var BLOG_SHARE = { title: "wdpm's blog", pic: "/img/logo.jpg", summary: document.getElementsByName('summary')[0].content, url: "http://www.imwdpm.me/tags/MySQL/index.html" }; </script> <div class="global-share" id="global-share"> <div class="tit">分享到:</div> <ul class="reset share-icons"> <li> <a class="weibo share-sns" href="javascript:;" data-title="微博" data-service="tsina"> <i class="icon icon-weibo"></i> </a> </li> <li> <a class="weixin share-sns" href="javascript:;" data-title="微信" data-service="weixin"> <i class="icon icon-weixin"></i> </a> </li> <li> <a class="qq share-sns" href="javascript:;" data-title=" QQ" data-service="cqq"> <i class="icon icon-qq"></i> </a> </li> <li> <a class="facebook share-sns" href="javascript:;" data-title=" Facebook" data-service="fb"> <i class="icon icon-facebook"></i> </a> </li> <li> <a class="twitter share-sns" href="javascript:;" data-title=" Twitter" data-service="twitter"> <i class="icon icon-twitter"></i> </a> </li> <li> <a class="douban share-sns" href="javascript:;" data-title="豆瓣" data-service="douban"> 豆 </a> </li> </ul> </div> <script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script> <script src="/js/main.js"></script> <div class="search-panel" id="search-panel"> <ul class="search-result" id="search-result"></ul> </div> <script type="text/template" id="search-tpl"> <li class="item"> <a href="/{path}" class="waves-block waves-effect"> <div class="title ellipsis" title="{title}">{title}</div> <div class="flex-row flex-middle"> <div class="tags ellipsis"> {tags} </div> <time class="flex-col time">{date}</time> </div> </a> </li> </script> <script src="/js/search.js"></script> <script src="http://s95.cnzz.com/z_stat.php?id=1258141698&web_id=1258141698"></script> </body> </html>
{ "content_hash": "a1d6edddff52a98b63389385a49ff384", "timestamp": "", "source": "github", "line_count": 265, "max_line_length": 808, "avg_line_length": 34.39622641509434, "alnum_prop": 0.6103126714207351, "repo_name": "wdpm/wdpm.github.io", "id": "2d5f49b4a0c36b7a66c13551cb553a0c0c9e7bf2", "size": "9259", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tags/MySQL/index.html", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "37640" }, { "name": "HTML", "bytes": "1353043" }, { "name": "JavaScript", "bytes": "10058" } ], "symlink_target": "" }

The entire dump of GitHub repositories.

Downloads last month
43
Edit dataset card

Collection including code-rag-bench/github-repos