query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
5eb3b2afd952ce5dde7c6ff591bcd933 | e2552744db3eb6858d3857c7a84ce3fc | 3D procedural transparency | {
vec3 color0 = xColor.rgb * vertexColor.x;
vec3 color1 = yColor.rgb * vertexColor.y;
float frequency = 8;
vec2 filterWidth = fwidth(vertexColor.xy) * frequency;
vec2 checkPos = fract(vertexColor.xy * frequency);
vec2 p = smoothstep(vec2(0.5), filterWidth + vec2(0.5), checkPos) +
(1 - smoothstep(vec2(0)... | 0 |
46033d17927cd4688defe48911b8235e | d976564e9a77f9b517aa25ca447cb8af | 設定檢視檔案modal內容 | $("#loadFileModal").modal("show");
view = $(obj).parent().next().next();
var label = view.find(".labelDiv label").text();
var loadFileObj = view.find(".subDiv input[type='button']");
var id = loadFileObj.attr("id");
var defaultVal = loadFileObj.val();
var textLabelCol = view.find(".labelDiv"... | 1 |
4eb8c3fd5190a1ca9c4a752ab91ec1cf | 25d36fb9465d3bf53fcc71bac38c3922 | Tests validating a tree in which some of the Nodes are not valid | C = Node(key=3, left=Node(key=2), right=Node(key=5))
G = Node(key=17, left=Node(key=13))
F = Node(key=11, right=G)
B = Node(key=7, left=C, right=F)
L = Node(key=29, right=Node(key=31))
K = Node(key=37, left=L, right=Node(key=41))
J = Node(key=23, right=K)
... | 1 |
ed75d90e5737be269e4d8ceaf1a0e8e9 | f3e876ea49f6982199c9a3e93c24d751 | Sets width of bars for bar graphs. | class MACDChart(Bar):
def set_width(self, width = 800):
if width < 100:
return
self.width = width | 1 |
7473bc24ecea17f9828d6e559967ac91 | 5fc8652b7520423a5ddde48f653913d7 | Return VCS instance at the given path (if under that VCS control) | class GitStore
def [](*args)
root[*args]
end | 0 |
1c728b3465c1b88d2ca340b1d3242ca5 | e91d792052abf95af3782098526cb319 | Abstract, replaced in child classes | {
throw new AbstractMethodError( "Map error: Redefine in derived classes" );
} | 1 |
55c6c30338414768085771ab6bc12d0b | f03ecc3ac6a1d162429cf7a0e3f50690 | Returns a view with all the laboratories that the professor teach. | class LaboratoryController extends Controller
public function index(Request $request)
{
return Laboratory::all();
} | 0 |
e52754838eb50bbaad1e8b75c136f102 | 0f9d941144d8c2580c9c2a6876b161a2 | Run a bash command on the remote machine and return stdout as a string.
No error handling, stderr is ignored. | class RemoteExecutor(object):
def run_command_for_output(self, cmd):
return _run_command(subprocess.check_output,
self._build_ssh_command(cmd)) | 1 |
f7a98070ba67ede04f132979c263a03a | 6ff0fdde4703280d1a492184fef3d452 | API call - atualiza as informações de uma arma | weapon = Weapon.query.get_or_404(weapon_id)
weapon.is_equipped = True
db.session.commit()
serial_weapon = weapon.serialize()
return (jsonify(serial_weapon), 200) | 0 |
acdd3398aff06e5f0e2fde0bd0fc2c3c | e5c0b7b7f62c8281ea9140fdc6bba989 | Returns True if a fact matches any of the entries given as argument. | if not iterable(condition):
condition = [condition]
truth = fuzzy_and(condition)
if truth == False:
raise ValueError(message)
return truth == True | 0 |
fe44196a1be3dccfc230197bd5f1ab1d | 88f9f02c39736c4f849cc811ab0dc892 | Instantiate the VNF (Click script) with the given parameters | class Mano(object):
def vnf_instantiate(self, vnf_instance_id, flavour_id, instantiation_level_id=None, ext_virtual_link=None,
ext_managed_virtual_link=None, localization_language=None, additional_param=None):
return self.mano_adapter.vnf_instantiate(vnf_instance_id, flavour_id, instanti... | 1 |
9216dfc87197e4e64811f402b715b700 | 5f6cf4c69fd9e92025229919eb95db14 | Exit a parse tree produced by JavaParserModified#interfaceMethodModifier_NT. | void exitInterfaceMethodModifier(ASParser.InterfaceMethodModifierContext ctx); | 1 |
0da560a8740ed0f90b4cd5e65064f420 | 7e57b71eec2188c45c3398175f931950 | This function determines the essential prime implicants given a list of the prime implicants.
It enumerates all possibilities given '-' and checks if other implicants contain the same minterms.
It returns a list of essential prime implicants. | class QuineMcCluskey
getPrimeImplicants(groups = null) {
if (groups === null) {
groups = this.initialGroup();
}
if (groups.length == 1) {
return groups[0];
}
else {
let unused = [];
let comparisons = [...Array(groups.length - 1).key... | 0 |
33a5967df09f66692750e32902c6c7fa | 0388301e935682c72a8db63912c50faa | Get image tag from html string. | def find_img(input_content):
return img.findall(input_content)[0] | 1 |
952a5450c60448409a4ca3737a42a5b9 | e8ea074f91bf39ebfd25eb77947546c4 | Checks the file line to see if it matches one of the stored trigger lines | class readLogFile ():
def considerLine (self, line):
if self.apiCall not in line:
return False
return self.recentlyLoggedLine(line) | 0 |
0a27976b3a9e3430d585758ba2b788d5 | b79e9569c8f2ff6fa5bc254fdb327c2f | Recursive function to convert the list into a binary heap. | void Heapify(int** list, int root, int n)
{
int* t = list[root];
int j, k;
int done = 0;
t = (int*)malloc(sizeof(int) * 21);
for (j = 0; j <= 20; j++) {
t[j] = list[root][j];
}
for (j = root * 2; j <= n && done == 0;) {
if (j < n && numberComparison(list[j], list[j+1... | 0 |
008f5aff61bd0bb3cffccc85be3686e3 | f2a86a8b1bd7ff6490cb8b167d576fde | 金牌合作伙伴地区列表 | {
if (request()->isAjax()) {
$partner = new NfxPartner();
$pageindex = isset($_POST['pageIndex']) ? $_POST['pageIndex'] : '';
$records_id = request()->post("records_id", 0);
if ($records_id != 0) {
$condition["records_id"] = $records_id;
}
$user_name = request()->post("user_name", '');
$user... | 0 |
00d531f526c6badab48b50c1c0bb80fe | fa7d334b16f77ac7c260775dcb11afe2 | Print errors on occurrence. | class Result(TestResult):
def printErrors(self):
super(Result, self).printErrors()
for result_handler in self.result_handlers:
result_handler.print_errors(self.testsRun, self.errors,
self.skipped, self.failures,
... | 1 |
31aabadabba105e5ea21080889ccc73d | 4450142929ce9d23a07897d533e6925a | !
\brief Function executed on Radio Rx error event | {
if (mesh_rx_enabled)
{
mesh_rx_enabled = false;
meshRadio->setModeIdle();
#if ENABLE_DIAGNOSTIC_LED
set_led_output(RGB_6, BLUE_OUTPUT);
#endif
}
} | 0 |
3cdf6a0b3723f2764c30e4a2287513cf | 92f35fa8b20ae9cbc261deca4a95ba9a | Parses the invalid input. | Console.WriteLine ("\n\t{0}", errInput);
Console.Write ("\t");
Console.SetCursorPosition(Console.CursorLeft + errPosition, Console.CursorTop);
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine ("^");
Console.ResetColor();
Console.WriteLine ("Invalid syntax.");
} | 0 |
8530365048c6b521d52ce909fc607ee9 | 37eeb0abbfae94852e501e4fb452fddc | @brief Получить x координату конца вектора. | class my_vector
int get_x() const { return this->x; } | 1 |
d071693fe2d6159af520b43e725c35ff | 47a43a89b85f889656112efe3ce29655 | 保存优惠券适用的品类/商品 | @SuppressWarnings("ALL")
public class NoodleDataUtil
public static void setCategory(CostCardDataModel cardDataModel){
List<String> list = new ArrayList<>();
boolean isDelete = true;
List<CostCardDataModel.CardData> carDatas = cardDataModel.carDatas;
for (int i=0 ; i<carDatas.size(); i++)... | 1 |
cb8c550a8e9d502760780cb9777b50cf | 664555b1a81a65de9d36a1cd4e5dd01d | #--------------------------------------
# トラックバックピングを受け付ける | $RTN = '';
$RTN .= '<p>トラックバックのステータス変更処理を完了しました。</p>';
$RTN .= '<form action="'.htmlspecialchars( $this->pagemgr->href( ':tb_list.'.$this->pagemgr->get_query(1) ) ).'" method="post">'."\n";
$RTN .= ' <p class="center"><input type="submit" value="戻る" /></p>'."\n";
$RTN .= '</form>'."\n";
return $RTN;
} | 0 |
047cb7e4079f174e3587d7308ccffa9d | 78801d2330926eff158f462d4c0caf93 | takes a 2D-array and prints out tic tac toe board | int i=0, j=0;
for(i=0; i<3; i++){
for(j=0; j<3; j++){
printf("%d %d %d |", *(*(*(arr+j)+i)), *(*(*(arr+j)+i)+1), *(*(*(arr+j)+i)+2));
}
printf("\n");
}
printf("---------------------\n");
for(i=0; i<3; i++){
for(j=3; j<6; j++){
printf("%... | 1 |
5935659b38fe36f04dbddeac9e7885fc | 55524a5489c093c6b5ed7a33ae836c07 | Attach a file to a workActivity Adds a file to an existing workActivity. | public class WorkActivityApi
public com.squareup.okhttp.Call addWorkActivityFileByURLAsync(RecordFile body, Integer workActivityId, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressR... | 1 |
14143463c259dfbdd766ebec11a486dc | 2cfaab31108eb2827a52909255f60ff6 | Range of values (maximum - minimum) along a dimension.
The name of the function comes from the acronym for 'peak to peak'. | def vrange(x):
return np.nanmin(x), np.nanmax(x) | 0 |
59db92b81bff1ed49f948587f09cb4ad | cd78d3ab9dd6af336b847a40a77ea921 | Appends data to the Table. If the cachesize limit is reached, data is
written to disc. | writeCache.addLast(content);
writeCacheSize++;
if (writeCacheSize >= CacheSize) {
writeToFile();
}
} | 1 |
69c9787fbd492aa5cc3eb6789cbb0636 | cfefe3b4895655d49b8814fbc09b6acc | Gets the sequence of Locations. | public class Route :IEnumerable<Location>
public IEnumerator<Location> GetEnumerator()
{
return _locList.GetEnumerator();
} | 1 |
033a536dbb9729256d5dc09e189ee9b4 | 9685e40183e69ffcffcfe261cab7af6d | This function determines which animal from the table was pressed to display its detailed information.(From Staff View) | {
Intent intent;
switch(v.getId())
{
case R.id.bloodPressureButton:
intent = new Intent(this, BloodPressure.class);
startActivity(intent);
break;
case R.id.respirationRateButton:
intent = new Intent(this,... | 0 |
e6fd15f0d6be29782900d5c98fefe6fc | 6f5510806ae7ad4ca327ed3366d58473 | Return the value of the EXECUTE_TIME column. | class EventsGroup extends DataType
public function getExecTime ()
{
return $this->execTime;
} | 1 |
a528f7471610d19c3b44496d16f1f541 | d314c582fb9fe7cfc7fd5017be078c9f | Tries to find a compatible edge. | {
gain = 0;
Node t3 = FindFirstUntriedNodeNotInTour(t2, x1.Length, -1, out gain);
if (t3 != null)
{
Edge yEdge = new Edge(t2, t3);
yEdge.Tag = -1;
return yEdge;
}
return null;
} | 1 |
d66cb7837168b7dca036eefa9cec90f7 | f0871546bc58f13688cfeedddc561161 | randomize maintenance time window | Random.seed = System.DateTime.Now.Millisecond;
randomTime = Random.Range (bound1, bound2);
randomTime += 0.3f;
return randomTime;
} | 1 |
1f9d3f5e9773b5eed12919c4f284e73d | e5086eea370df0d856ed7c24e85118b8 | Displays a single ScanWeimaDetail model. | class UserScanController extends Controller
public function show(UserScan $userScan)
{
} | 0 |
e3517b7eeb3722d1a35aabe1e959216a | f87bfb014a209112deda465f8f3e983b | Filter users by amount. | public function testFilterByUser(): void
{
$this->assertEquals(2, $this->getPurchases(false, null, null, 'u1'));
$this->assertEquals(1, $this->getPurchases(false, null, null, 'u2'));
$this->assertEquals(1, $this->getPurchases(false, null, null, 'u10'));
$this->assertEquals(0, $this->... | 0 |
dc6409d90bdebe4521125cb28d9cf24b | 5ea96ab387972ce6cae68b659d6c8742 | Linux _IOW macro as function. | video_usercopy(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg,
int (*func)(struct inode *inode, struct file *file,
unsigned int cmd, void *arg))
{
char sbuf[128];
void *mbuf = NULL;
void *parg = NULL;
int err = -EINVAL;
switch (_IOC_DIR(cmd)) {
case _IOC_NONE... | 0 |
dc8207e96a546797a55263c91a573d17 | 27fd119adb645daab16f98e184344eac | <b>Recebe uma string e a prepara para ser utilizada na função "LIKE" do SQL</b> | function sqlLikeString(&$strText)
{
global $db;
$strText = $db -> qstr(str_replace("*","%", strip_tags($strText)), get_magic_quotes_gpc());
if ($strText == '\'\'')
$strText = '';
} | 1 |
c5565e42ca138ada3114fbde130ea234 | f86d91ad83494a66678cba9c01c958a2 | ポートマッピングを追加する。 | void addPortMapping(PortMapping portMapping); | 1 |
8ecbee82fac683d367f739ebe8ca89a4 | e4d7907fe835f73ba2d52a59de5cf352 | remove package from local dictionaries and lists | class FileManager:
def releasePackage(self, pid):
if pid in self.packages:
del self.packages[pid] | 1 |
08d2a3451cf4bd810b316b7899a78e3b | 2fd1adc9a693aa25eda8c6a700b12416 | Actualiza los elementos de una determinada factura. | namespace Test.SBD.Back.BL
public class FacturaBL
public int UpdateFactura(FacturaDTO factura)
{
int res = new FacturaRepository().UpdateFactura(factura);
return res;
} | 1 |
503e0671a258b523bdfb00c6799210a8 | 05206b57f50a059663264f7f3e83507e | Mix two parameter sets, keeping the maximum value between the two | class DataMap2DSignalStrengthMax(DataMap2DSignalStrength):
def combine_values(self, existing_value, new_value):
return max(existing_value, new_value) | 1 |
91e8f202c2d04877474657b2c9bd9973 | dcf627f597b0520a6b2514a500364018 | Método responsável por desabilitar fo formulário e mostrar o loader | namespace ccbusua
public partial class frmPrograma : Form
internal void disabledForm()
{
this.pnlPrograma.Enabled = false;
this.btnSalvar.Enabled = false;
} | 0 |
63edff6f2053134f0a70a30b5def8faf | 851c3cf7ae67a478a400cac389add993 | Returns a list of the players and their win records, sorted by wins.
The first entry in the list should be the player in first place, or player
tied for first place if there is currently a tie.
Returns:
A list of tuples, each of which contains (id, name, wins, matches):
id: the player's unique id (assigned by the datab... | ranked = sorted(self.players, key=lambda x: x.num_pairs, reverse=True)
wl = 'win' if ranked[0] is self.user else 'loss'
self.winloss[wl] += 1
return ranked | 0 |
2f24d0760c95c176086b111e6a068398 | 756e1c128362ed8be2eb0cc3f669534d | Подсчет расстояния по номинальной шкале | namespace Task_19_04_2018
class Сoordinates
public double GetDistens()
{
return counter(point1, point2);
} | 0 |
a52ecb91eb9270e9f30e2feab448d077 | aec03ef77a77d8c4b6c5ca652b3f47e2 | Update mail aliases. | public Response<ContactAliasViewModel> UpdateContactAlias(ContactAliasViewModel contactAlias)
{
var emails = new List<ContactAliasViewModel> { contactAlias };
return contactAliasRepository.UpdateContactAlias(emails);
} | 1 |
b34db1fd2f07e9dee369845788d6eaa3 | a6ac78d85b70b2166f9b9d14b6dd5325 | 最初に実行される関数. | public class API01EvenetFunction : MonoBehaviour
void Start()
{
Debug.Log("Start");
} | 1 |
ccb1142bad0deb4eea01b84196bf6107 | 81f534552ed7e49bed4844737a5eed55 | 对标签进行检查,存在的增加计数,不存在的添加 | @ResponseBody
public ResponseData insertLabel(HttpServletRequest request) {
ResponseData data = new ResponseData(true);
data.setObj("");
try{
Map map = GetParmFromRequestUtils.getParams(request);
if (map == null) {
data.setSuccess(false);
... | 0 |
831f67c147a41c849e37498cb8112661 | d52da5f2ccc645dc89f167875a1d6397 | Sets the optimization level. Due to toolchain differences, this should be called per-toolchain, usually. | set_attr(:optimize, value ? 2 : 1)
@optimize = value
end | 1 |
5b2e64a526fa3a37f8527176a4f8155d | 66dc5690747d30d569b935b4d7803585 | 将二制位反转 | namespace HHECS.Model.Common
public static class ConverHelper
public static byte ReverseBit(byte b, int index) { return (byte)(b ^ (byte)(1 << index)); } | 0 |
aa95badcc6ea5feb157d017717ff3559 | 2dc557b6be96d2164b817cc48fa20dd2 | Colebrook-White formula for flow friction coefficient | x = exp(hck/(wave2*temp))
y = exp(hck/(wave1*temp))
f = hck/temp*(y*(1 - x)/wave1 - x*(1 - y)/wave2)/(y - 1)**2
return f | 0 |
ad7bdf27bac6714d83874bfa9800225c | 7a4b88a69657d4d6e121825749bcd8f2 | 获取数据库操作返回的参数 | public function getParams()
{
return $this['db']->getParams();
} | 1 |
2674006325c147603c76fcfabfb7000a | 57d26e50ae6b1192707267ad20556070 | جميع السور | {
$DzikirModel = new Dzikir;
$data['header_title'] = 'Al-Matsurats';
$data['header_top_title'] = 'Al-Matsurats';
$data['body_class'] = 'body-mushaf';
$data['cookies'] = getCookie();
$data['dzikirs'] = $DzikirModel->getList('pagi');
assignPoints(session('sess_i... | 0 |
2cd29835a63f47518605aaf8fdb28cf9 | 55d9f58f5baa29ec3480e11b9773cc85 | returns the service document information | class OMS extends SoapClient{
public function GetServiceInfo(){
$response = $this->__soapCall('GetServiceInfo',array());
return OMS::xmlstr2obj($response->GetServiceInfoResult);
} | 1 |
8e46bc088a0da909cd26f287b0176449 | 53d4d9750a379f2b988765372f51e48d | 瀑布流图片布局构造函数 | { this.ul=ul;
this.messNum=10;
this.Curpage=1;
this.colHeights=[];
this.cols=parseInt($(this.ul).width()/$("#news .diapper").outerWidth(true));
this.min=3;
for(var i=0;i<this.cols;i++)
{
this.colHeights[i]=0;
}
var _this=this;
... | 1 |
c49a35c36be3cd643833955f0bb78000 | 5b455d366655e56ec703c920aa7ebd9d | !\brief Prüft, ob der String einen Integer Wert enthält
\desc
Diese Funktion prüft, ob im String einen integer Wert enthält, also nur die Ziffern
0-9 und optional ein Minus am Anfang enthalten sind
leer, wird 0 zurückgegeben. | int inttest(const char *string)
{
char *tmp_string = (char *)malloc(sizeof(char) * (strlen(string) + 1));
if (string[0] == '-')
{
for (int i = 1; i < strlen(string) + 1; i++)
{
tmp_string[i - 1] = string[i];
}
}
else
{
for (int i = 0; i < strlen(string... | 1 |
57aa249ec530f57e554e238625d830bc | f6523bcfe6018adc93fe2869adcfc706 | 保存考试区县数据 | if (countyList != null && countyList.isNotEmpty()) {
LitePal.saveAll(countyList)
}
} | 1 |
3100b13752abcb11765838aadac15a6c | d1143e533fcc79a3e9c0e8afe45c873c | When one interval finishes, update the fixed probability for next interval based on the erasure bytes.
If erasure bytes exceed given budget, then reduce the fixed probability to half for the next interval.
Otherwise, average the last above (higherProb) and last below (fixed)
1. WhiteBear
2. SmilingTurtle | static uint32_t update_prob_on_cost(uint32_t updP, uint32_t left, uint32_t right, uint32_t oldP,
uint32_t newP, uint32_t fixed) {
int32_t u, s;
u = (int32_t)fixed + ((vp8_prob_cost[255 - updP] - vp8_prob_cost[updP]) >> 8);
s = ((int32_t)left *
(vp8_prob_cost[oldP] - vp8_prob_cost[newP]) +
(int32_t)right *
(vp8... | 0 |
25350c471a975cb54680bb0df638bbcf | 2fade1069b06df0866ff53e27ca14d12 | Procesa el evento de borrado de un fichero o carpeta en el cliente y notifica
a la base de datos. | class DocumentObserver extends EntryObserver
public function deleting(EntryInterface $entry)
{
$this->dispatch(new DeleteFile($entry));
parent::deleting($entry);
} | 1 |
780269dee12a2c0751c36ad254a2c835 | 05aa691731ac60c5e6ca881c98790622 | 줄에 들어있는 Cell들에게 본 줄은 필요없다고 통보하는 것. | void notifyCells(); | 1 |
4f0444083a1088f031c430dca65ce63f | 1c61c312e1f356536b07c33bae0f3b67 | Derivative of influence function of Catoni and Giulini (2017). | beta: float = self.beta
result: float
if np.abs(beta*omega) > 50:
result = 0.0
else:
result = -beta * np.exp(beta*omega)/(1.0 + np.exp(beta*omega))**2.0
return result | 1 |
45bbe64fdac165417cf09d65d9d06fbb | b55165c2ebb2d2c283b7d66e7d914cab | 将键为k的node的v设为v
前提是用户已经明确知道了k一定在map中 | bool b;
m->root = insertN(m->root, k, v,b);
if (b){
m->mapSize++;
}
} | 0 |
f14773d541ee30af409cd8851ac1cbc7 | e38e1274d3824eeaea162572da4ede64 | Launches a chooser task, suppressing the <see cref="InvalidOperationException" /> thrown if the chooser is launched twice (where the user double-taps the icon to choose) | {
return ShowDialogAsync(sender, dialog)?.ContinueWith(x =>
{
return dialog.WaitForCloseAsync();
}).Unwrap();
} | 0 |
796986183dcce4fe2e4e2acba4f4663a | 92689f7187f30750806eff2800451a90 | Used to update a NetworkObject's ownership | namespace MLAPI
[AddComponentMenu("MLAPI/NetworkedObject", -99)]
public sealed class NetworkedObject : MonoBehaviour
public void RemoveOwnership()
{
SpawnManager.RemoveOwnership(this);
} | 0 |
8cae2c4635d619f098a252a162364d4b | df38026b4342baecb94bd80be382bb20 | Get the killshot track | class SessionUser
public function getNbKill()
{
return $this->nbKill;
} | 0 |
adf050e03700865d22c64dd043b1aa0a | 6760f9d6b36018edc7752fedbd6e0b07 | Enable base library logging | public class WcsClient
public void setLibLoggingEnabled(boolean enabled) {
final Logger libLogger = Logger.getLogger(OkHttpClient.class.getName());
libLogger.setUseParentHandlers(enabled);
} | 1 |
c0190560b5754323167a90d51048442a | b8035373da8e17475acd90bb694258b4 | Removes a series from being assigned to the Secondary Y-Axis. | namespace mgWinChart.usercontrols
public partial class ucWinChart : UserControl
public void AssignSeriesToSecondaryAxisX(string seriesDisplayName)
{
if (!_seriesForSecondAxisX.Contains(seriesDisplayName))
{
_seriesForSecondAxisX.Add(seriesDisplayName);
}
... | 0 |
5b138c957aa78d217976b8fe01f7de43 | 114ccf29d4293b38576b7c80e2ce9554 | System.Collections.IEnumerator System.Linq.Enumerable/<CreateSelectIterator>c__Iterator10`2<SQLite.SQLiteConnection/IndexedColumn,System.Object>::System.Collections.IEnumerable.GetEnumerator() | Il2CppObject * U3CCreateSelectIteratorU3Ec__Iterator10_2_System_Collections_IEnumerable_GetEnumerator_m2809960972_gshared (U3CCreateSelectIteratorU3Ec__Iterator10_2_t2038716373 * __this, const MethodInfo* method)
{
{
NullCheck((U3CCreateSelectIteratorU3Ec__Iterator10_2_t2038716373 *)__this);
Il2CppObject* L_0 = ((... | 1 |
a5918b2ba6ec1656b29ffa7c22634eb4 | 2593424adbe0436c88e2bdea7a501113 | 获取当前集群的唯一标志(即主服务器host) | @Component
public class HazelcastHelper
public String getMemberId() {
return this.hazelcastInstance.getCluster().getLocalMember().getUuid();
} | 0 |
9c60a51999e43996c969585c3ccab171 | cfba93974888562c29305219e6c74c04 | Build an option and adds it to the given scope.
==== Parameters | $tmp = new ScriptUsageOption();
$tmp->name = $name;
$tmp->shortName = $shortName;
$tmp->longName = $longName;
$tmp->example = $example;
$tmp->shortDescription = $shortDescription;
$tmp->description = $description;
$tmp->required = $required;
$this->options[] = $tmp;
return;
} | 1 |
2f54114946e684511a8526e8b4936d0c | c0696d37fd5030b60e4ac33f45999912 | Get all Hyperlinks from a Word | namespace CSharpDemo.Demo
public class ExcelWorkBookDemo
public void GetHyperlinks()
{
if (xlWorkSheet != null)
{
range = xlWorkSheet.get_Range("M2", Missing.Value);
}
var hyperlinks = range.Cells.Hyperlinks.OfType<Excel.Hyperlink>();
... | 0 |
d75aec8f484202a58971e7a77e700978 | 447de91bb0fc136c4117059e56edc50f | execute queued up camera event | FCAM_EventCallback fCAM_EventCallback(const lx_uint32 uiCameraHandle,
CAM_Event* pstEvent, void* pTransData)
{
g_pDlg->DoEvent(uiCameraHandle, pstEvent, pTransData);
return 0;
} | 1 |
f7df0e3e8d63a0f6be07cfca054a5643 | 3f85324a413db37f162998b1f53d10e2 | Receives and verifies the PN532 acknowledge frame. | uint8_t readACKFrame(int8_t addr)
{
char ack_readbytes[6];
uint8_t i = 0,startbyte,readACK_Flag;
const char ack_frame[6] = {0x00,0x00,0xff,0x00,0xff,0x00};
RF_IIC_Start();
RF_IIC_Send_Byte(addr);
RF_IIC_Wait_Ack();
readACK_Flag = 0;
startbyte = RF_IIC_Read_Byte(IIC_Ask);
if(startbyte==0x01)
{
... | 1 |
7206305d2dbfc88870cc3cd2464a64ec | c27128cff100a888c18cbe7ed984b5d7 | Converts the specified string representation of a number to an equivalent single-precision floating-point number. | namespace System
[__DynamicallyInvokable]
public static double Parse(string s, NumberStyles style, IFormatProvider provider)
{
NumberFormatInfo.ValidateParseStyleFloatingPoint(style);
return double.Parse(s, style, NumberFormatInfo.GetInstance(provider));
} | 0 |
4f37933906d0b00f286ef6672f8708d7 | d59cf89a46e2537e8a05bcb217c9fe39 | Gets the financial statement report configuration. | namespace BudgetExecution
IChartConfig GetStyleConfiguration(); | 0 |
1a3841cd3a356e51d9a306f273a5ec27 | 11613d7e3a7a1acc9420c3fd4c16ddd0 | 双击选中策略,修改参数 | {
ListView view = (ListView)sender;
string pathName = view.FocusedItem.Text;
if (!m_isValuePointStyleOpen)
{
try
{
if (pathName != "----策略组")
{
this.singleProductBackTe... | 0 |
f2b8658cbffbb12b459883a019959a4f | 5b1bcc23906b9b8ae3864dc547985c4f | adjusts frequency up or down automatically over time
to produce interesting sound effects like mario jumping | global speed
self.framecount = self.framecount + 1
if self.framecount == 10:
elapsed = now - self.lastframe
self.lastframe = now
self.framecount = 0
if self.dont_update_speed == True:
self.dont_update_speed = False
... | 1 |
fe7b22cf4f1ec64aae7e1b248229fa92 | e2d2d9c20341352a3b7ca25d129295a0 | Provide a list of all groundstations in the topology.
Kwargs:
identifier (str): The prefix that is identifying the ground station
nodes. This defaults to "gs". | def base_station(ctx):
pass | 0 |
d237925757c7ccfb6a8a2feccdb304b3 | 17df60e191ad40017398f2bc3b5c6be2 | Returns the N x N tridiagonal matrix for solving the buckling beam problem.
Input: | K = wavenumbers(N)
a_k, b_k = shenCoefficients(K, BC1)
Bmat = zeros((N,N))
for k in xrange(N):
for j in xrange(N):
if k == j:
Bmat[k,j] = 1.0
elif k == j+1:
Bmat[k,j] = a_k[k]
elif k == j+2:
Bmat[k,j] = ... | 1 |
a6d3a3d6daf8869d5a85cf5fdf4222a1 | 209ac122683997e42e9ebdd789d5c201 | Checks if events() table exists, creates if it doesn't | class m200326_201121_create_events_table extends Migration
public function safeUp()
{
$tableOptions = null;
if ($this->db->driverName === 'mysql') {
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';
}
$this->createTable('{{%events}}', [
... | 1 |
966748942cb995109362ae53d1852ca8 | f5c776380bf874cb58ef55480332c18e | determine the position of the real focal plane. | class ParaxialGroup(object):
#
# Conststructor
def backFocalPlane(self):
return self.getOutputPlane() + self.matrix.backFocalPlane() | 1 |
12cb2a14171d51e23c6ecdba153e7419 | 669e891b39a44de672d607aff997d969 | Called when the autofocus process has started. | void onAutoFocusMoving(boolean start); | 1 |
c9a44dd31df4f3c17eb44c799db628e6 | d143043292ca755897b91bbef349d49d | Does not render children | public class GalleriaRenderer extends CoreRenderer
@Override
public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
} | 1 |
d3e9e4f25a53f75e940eee0f0349e9d2 | 1f62196d077c0e9118d99677298a3c4e | Set up countries data from data in form provided by UNStats and World Bank | function setCountryData(countries) {
DATA.countries = countries.map(country => {
country.translations.en = country.name
country.name = country.translations
delete country.translations
if (Object.keys(country.name).length < 11) {
DATA.languages.forEach(language => {
if (!country.name[lang... | 1 |
659623b17e764347b3945d448c1bf664 | 611fd2c8b8bde578bab14f062167abf1 | @brief 移动一个Category从from index到to index | export default class Map
async move(fromIndex, toIndex) {
try {
let result = await M.move(this._MGMapId, fromIndex, toIndex);
return result;
} catch (e) {
console.error(e);
}
} | 1 |
f131a8a5fbabd598a4684d32a88da0bf | 4edf48e11ce1cf3c76a755e5b319f3a3 | 根据关键词和部门查询员工 | public String searchEmpByCondition() {
users = searchDeptAndEmployeeManager.searchEmpByCondition(searchEmpAndDeptCondition,start,limit);
totalCount = searchDeptAndEmployeeManager.countEmpByCondition(searchEmpAndDeptCondition);
if(totalCount==null||totalCount==0){
totalCount=(long)1;
}
return SUCCESS;
} | 1 |
d6fb36a34a39207ad8f3aae2726f9f19 | bcec7e3ce35e36622ccca0ec152391af | Renvoie la hashmap des cases | class Grille
def casesSerialize()
return YAML.dump(@cases)
end | 0 |
29c82cf36b7b2a68dd845fcc1df3b66f | 76a8aedd9220515a8783d1b237eab036 | [RF 04] Método responsável por configurar os valores dos ingressos de
acordo com a respectiva seção. | $scope.estudo.cotacao_dolar = Number($scope.config.cotacao_dolar);
$scope.estudo.cotacao_dolar_paypal = Number($scope.config.cotacao_dolar_paypal);
$scope.estudo.frete_maritimo.valor.usd = Number($scope.config.frete_maritimo_usd);
$scope.estudo.frete_maritimo.valor.brl = ... | 0 |
0c446b16ab2d18fd893e06c88ef5f042 | 3ac77de07269354717e5e0c485f0da81 | Adaptive Metropolis sampler. | MCMC_REJ.__init__(self, model, startvalue, proposalgenerator, acceptancefunction, parallel_cores = parallel_cores)
Generic_Optimizer.__init__(self)
if acceptancefunction == None:
self.acceptancefunction = self.metropolis_acceptance
self.best_value = self.model(self.current)
... | 0 |
15ebe908cf959c4128aca0ffe4d6cb65 | 4c77c77aedaa87401ef8e63b0806609d | If disk image is setup as a loop device, return loop device path | class FileAtRestEncryptionDriver(BaseAtRestEncryptionDriver):
def __get_mapper_device(self):
return popen("losetup | grep %s | awk '{print $1}'" % self.docker_driver.get_topmost_layer_id()).read().rstrip() | 1 |
551b6404991b1e850be80ab355a9f10d | 9ffb9fe3fd86881defcaf08a17b1e175 | @brief This function Resumes the audio file stream.
BSP_AUDIO_OUT_Resume() function should be called for resume
(use of BSP_AUDIO_OUT_Play() function for resume could lead to
unexpected behavior). | uint8_t BSP_AUDIO_OUT_Resume(void *handle)
{
DrvContextTypeDef *ctx = (DrvContextTypeDef *)handle;
SOUNDTERMINAL_Drv_t *driver = NULL;
if(ctx == NULL)
{
return COMPONENT_ERROR;
}
driver = ( SOUNDTERMINAL_Drv_t * )ctx->pVTable;
if(driver->Resume(ctx,NULL) != 0)
{
return COMPONENT_ERROR;
... | 1 |
068cdb07d4bc8552a5ca4a7e7f7ef53c | b63128f8eb1b5c6fb110f732f067c6be | 返回在这个对象的生存期内执行的查询总数。这不是必须的,但是您也许会感兴趣。 | public class QueryBase<T>
public long getCount()
{
return count;
} | 0 |
f07eb657a5cd60e19f4985bef4dd4033 | a12dffdcf12014953be766b2db1b62c2 | Removes last node | $temp = $this->lastNode;
if($this->firstNode->next == NULL) {
$this->firstNode = NULL;
} else {
$this->lastNode->previous->next = NULL;
}
$this->lastNode = $this->lastNode->previous;
$this->nodeCount--;
return $temp;
} | 0 |
0c34b64988566222f0d42e7746cac04d | aec75e61394dd2a362c8af88909b0b1e | 通过用户id 商品id 商品尺码删除购物车的指定商品 | boolean deleteCart(int productId,int userId); | 0 |
23cc7d72acfa1269975884fe767a7ed7 | 166c4e5fc903dafac7376f490d42e34d | Do we have all the info we need against this step?
Work it out and store in $this->isAllInformationGathered TRUE if yes FALSE if no | public function isFirstStep(); | 0 |
0a892b79d8d3e691a5065c70e901da90 | e98818bacd7499efaf040a1e92469500 | 功能:合并vector为串,元素间以sp为间隔符;
编写:Rocky 2010-05-14 12:14:04 | string STR::VecToStr(vector<string> target_)
{
string result = "";
for (auto& e : target_) result += e;
return result;
} | 0 |
3569ec50cc8ab991089d0f43f8ebd529 | 263e28f82ecd2dbed8dd7d3018a28f7b | Deletes selected points and stores them into an array that will be ready to be pasted. | export class Map extends React.Component
deleteMarkers() {
this.clearMarkers();
this.state.selectedPlaces.slice(this.state.selectedPlaces.length + 1);
this.state.selectedPlaces = [];
} | 0 |
5eb69b1aeec5fd3ef3a9efcb1ec50bce | 40bab7b2b862c7c8640a431309c59d8d | Calls a public static method in a Java class, passing an arbitrary number of string arguments, and returning a string.
Refer to the `CallJavaDemo`_ macro and the `ImpProps`_ plugin for examples.
.. _`CallJavaDemo`: https://imagej.net/macros/CallJavaDemo.txt
.. _`ImpProps`: https://imagej.net/plugins/imp-props.html | interface IMessageBridge
@AnyThread
fun callCpp(tag: String) | 0 |
650882b4e3bdb0eecb84ba50e1167f20 | cdbd6e0e86c1649915582f675074b87f | FreeMarker生成Word | @Controller
public class FreemarkerController
@RequestMapping("/genhtml")
@ResponseBody
public String genHtml() throws Exception {
Configuration configuration=freeMarkerConfigurer.getConfiguration();
Template template=configuration.getTemplate("hello.ftl");
Map data=new HashMap();
FileWriter writer = new F... | 0 |
cb35a6116e33c13d90834748fe47120d | c1c34a1d9503a4f1b0b45c51562b2dff | Transform to frequency domain | class Cube():
def freq(self):
if not self.is_xf():
data_Freq = np.fft.rfft(self.data, axis=2)
C = Cube(data_Freq, fmt='xf', sx=self.sx,\
rx=self.rx, dt=self.dt, nt=self.nt)
else:
C = self
return C | 1 |
3e752a5c38f5cc7dff547df50b44d717 | 6d335ed4b6c185a39d09abc84f32176f | Creates a new ActivityId that can be used to set in the thread's context. | public static bool GetNewActivityId(out Guid activityId)
{
activityId = Guid.Empty;
return (NativeMethods.ERROR_SUCCESS == NativeMethods.EventActivityIdControl(
(int)
... | 1 |
bb06877e7a028ce6c5bd86a920acc789 | 9b86cb557e2460ad26d49db7698d1280 | Renvoie false si le paquet du joueur contient encore des cartes, sinon renvoie true | Card[] hand = player.getHand();
for(int i = 0; i < hand.length; i++){
if(hand[i] != null){
if(hand[i].isInPlay() == true){
return true;
}
}
}
return false;
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.