text
stringlengths 0
14.1k
|
---|
" isc |
GoKillers/libsodium-go sodium/runtime.go 322 "package sodium |
// #cgo pkg-config: libsodium |
// #include <stdlib.h> |
// #include <sodium.h> |
import ""C"" |
func RuntimeHasNeon() bool { |
return C.sodium_runtime_has_neon() != 0 |
} |
func RuntimeHasSse2() bool { |
return C.sodium_runtime_has_sse2() != 0 |
} |
func RuntimeHasSse3() bool { |
return C.sodium_runtime_has_sse3() != 0 |
} |
" isc |
burninggarden/burninggarden test/unit/resource/accounts.js 886 " |
function collectWithWildcard(test) { |
test.expect(4); |
var api_server = new Test_ApiServer(function handler(request, callback) { |
var url = request.url; |
switch (url) { |
case '/accounts?username=chariz*': |
let account = new Model_Account({ |
username: 'charizard' |
}); |
return void callback(null, [ |
account.redact() |
]); |
default: |
let error = new Error('Invalid url: ' + url); |
return void callback(error); |
} |
}); |
var parameters = { |
username: 'chariz*' |
}; |
function handler(error, results) { |
test.equals(error, null); |
test.equals(results.length, 1); |
var account = results[0]; |
test.equals(account.get('username'), 'charizard'); |
test.equals(account.get('type'), Enum_AccountTypes.MEMBER); |
api_server.destroy(); |
test.done(); |
} |
Resource_Accounts.collect(parameters, handler); |
} |
module.exports = { |
collectWithWildcard |
}; |
" isc |
guide42/php-immutable src/base.php 165 "<?php |
interface Container { |
/** |
* Checks if a $x exists. |
* |
* @param unknown $x |
* |
* @return boolean |
*/ |
function contains($x); |
}" isc |
markokr/libusual usual/json.c 38477 "/* |
* Read and write JSON. |
* |
* Copyright (c) 2014 Marko Kreen |
* |
* Permission to use, copy, modify, and/or distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* copyright notice and this permission notice appear in all copies. |
* |
* THE SOFTWARE IS PROVIDED ""AS IS"" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
*/ |
#include <usual/json.h> |