identifier
stringlengths
42
383
collection
stringclasses
1 value
open_type
stringclasses
1 value
license
stringlengths
0
1.81k
date
float64
1.99k
2.02k
title
stringlengths
0
100
creator
stringlengths
1
39
language
stringclasses
157 values
language_type
stringclasses
2 values
word_count
int64
1
20k
token_count
int64
4
1.32M
text
stringlengths
5
1.53M
__index_level_0__
int64
0
57.5k
https://github.com/CleanData/data-network/blob/master/app/CleanData/views.py
Github Open Source
Open Source
BSD-2-Clause
2,014
data-network
CleanData
Python
Code
23
89
from django.shortcuts import render_to_response, redirect, get_object_or_404 from django.template import RequestContext from django.http import HttpResponse def frontpage(request): #return HttpResponse("this is a test") return render_to_response('front/index.html',{},context_instance=RequestContext(request))
37,586
https://github.com/osehra-ocp/c2s-sof-ui/blob/master/app/components/PurposeOfUse/AddPurposeOfUse.js
Github Open Source
Open Source
Apache-2.0
null
c2s-sof-ui
osehra-ocp
JavaScript
Code
199
802
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { FormControlLabel, FormGroup } from 'material-ui-next/Form'; import Checkbox from 'material-ui-next/Checkbox'; import { Cell, Grid } from 'styled-css-grid'; import uniqueId from 'lodash/uniqueId'; import upperFirst from 'lodash/upperFirst'; import HorizontalAlignment from 'components/HorizontalAlignment'; import StyledRaisedButton from 'components/StyledRaisedButton'; import messages from './messages'; class AddPurposeOfUse extends React.Component { constructor(props) { super(props); this.handleChange = this.handleChange.bind(this); } handleChange(event, purpose, purposeCodes) { if (event.target.checked) { this.props.arrayHelpers.push({ code: purpose.code, display: purpose.display, }); } else { const index = purposeCodes.indexOf(purpose.code); this.props.arrayHelpers.remove(index); } } render() { const { purposeOfUse, purpose, onCloseDialog } = this.props; const purposeCodes = purpose.map((pou) => pou.code); return ( <Grid columns={1}> <Cell> <HorizontalAlignment position="end"> <StyledRaisedButton fullWidth onClick={onCloseDialog}> <FormattedMessage {...messages.okButton} /> </StyledRaisedButton> </HorizontalAlignment> </Cell> <Cell> {purposeOfUse && purposeOfUse.map((pou) => ( <FormGroup key={uniqueId()}> <FormControlLabel control={ <Checkbox color="primary" value={pou.code} checked={purposeCodes && purposeCodes.includes(pou.code)} onChange={(event) => this.handleChange(event, pou, purposeCodes)} /> } label={upperFirst(pou.display)} /> </FormGroup> ))} </Cell> <Cell> <HorizontalAlignment position="end"> <StyledRaisedButton fullWidth onClick={onCloseDialog}> <FormattedMessage {...messages.okButton} /> </StyledRaisedButton> </HorizontalAlignment> </Cell> </Grid> ); } } AddPurposeOfUse.propTypes = { purposeOfUse: PropTypes.arrayOf(PropTypes.shape({ code: PropTypes.string.isRequired, system: PropTypes.string, display: PropTypes.string.isRequired, })).isRequired, onCloseDialog: PropTypes.func.isRequired, arrayHelpers: PropTypes.shape({ push: PropTypes.func.isRequired, remove: PropTypes.func.isRequired, }).isRequired, purpose: PropTypes.arrayOf(PropTypes.shape({ code: PropTypes.string, system: PropTypes.string, definition: PropTypes.string, display: PropTypes.string, })), }; export default AddPurposeOfUse;
17,173
https://github.com/xiongchiamiov/IMathAS/blob/master/course/uploadmultgrades.php
Github Open Source
Open Source
FTL
null
IMathAS
xiongchiamiov
PHP
Code
1,185
4,648
<?php //IMathAS: Upload multiple grades from .csv file //(c) 2009 David Lippman /*** master php includes *******/ require("../validate.php"); //set some page specific variables and counters $overwriteBody = 0; $body = ""; $pagetitle = "Upload Multiple Grades"; //CHECK PERMISSIONS AND SET FLAGS if (!(isset($teacherid))) { $overwriteBody = 1; $body = "You need to log in as a teacher to access this page"; } else { //PERMISSIONS ARE OK, PERFORM DATA MANIPULATION $cid = $_GET['cid']; $dir = rtrim(dirname(dirname(__FILE__)), '/\\').'/admin/import/'; if (isset($_POST['thefile'])) { //already uploaded file, ready for official upload $filename = basename($_POST['thefile']); if (!file_exists($dir.$filename)) { echo "File is missing!"; exit; } $query = "SELECT imas_users.id,imas_users.SID FROM imas_users JOIN imas_students ON imas_students.userid=imas_users.id WHERE imas_students.courseid='$cid'"; $result = mysql_query($query) or die("Query failed : $query; " . mysql_error()); while ($row = mysql_fetch_row($result)) { $useridarr[$row[1]] = $row[0]; } $coltoadd = $_POST['addcol']; require_once("parsedatetime.php"); if ($_POST['sdatetype']=='0') { $showdate = 0; } else { $showdate = parsedatetime($_POST['sdate'],$_POST['stime']); } $gradestodel = array(); foreach ($coltoadd as $col) { if (trim($_POST["colname$col"])=='') {continue;} $name = trim($_POST["colname$col"]); $pts = intval($_POST["colpts$col"]); $cnt = $_POST["colcnt$col"]; $gbcat = $_POST["colgbcat$col"]; if ($_POST["coloverwrite$col"]>0) { //we're going to check that this id really belongs to this course. Don't want cross-course hacking :) $query = "SELECT id FROM imas_gbitems WHERE id='{$_POST["coloverwrite$col"]}' AND courseid='$cid'"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); if (mysql_num_rows($result)>0) { //if this fails, we'll end up creating a new item $gbitemid[$col] = mysql_result($result,0,0); //delete old grades //$query = "DELETE FROM imas_grades WHERE gbitemid={$gbitemid[$col]}"; //mysql_query($query) or die("Query failed : " . mysql_error()); $gradestodel[$col] = array(); continue; } } $query = "INSERT INTO imas_gbitems (courseid,name,points,showdate,gbcategory,cntingb,tutoredit) VALUES "; $query .= "('$cid','$name','$pts',$showdate,'$gbcat','$cnt',0) "; mysql_query($query) or die("Query failed : " . mysql_error()); $gbitemid[$col] = mysql_insert_id(); } $adds = array(); if (count($gbitemid)>0) { $handle = fopen($dir.$filename,'r'); for ($i = 0; $i<$_POST['headerrows']; $i++) { $line = fgetcsv($handle,4096); } $sidcol = $_POST['sidcol'] - 1; while ($line = fgetcsv($handle, 4096)) { //for each student if ($line[$sidcol]=='' || !isset($useridarr[$line[$sidcol]])) { //echo "breaking 1"; //print_r($line); continue; } $stu = $useridarr[$line[$sidcol]]; foreach ($gbitemid as $col=>$gid) { //for each gbitem we're adding $fbcol = $_POST["colfeedback$col"]; $feedback = ''; if (trim($fbcol)!='' && intval($fbcol)>0) { $feedback = addslashes($line[intval($fbcol)-1]); } if (trim($line[$col])=='' || $line[$col] == '-') { //echo "breaking 2"; //print_r($line); if ($feedback != '') { $score = 'NULL'; } else { continue; } } else { $score = floatval($line[$col]); } if (isset($gradestodel[$col])) { $gradestodel[$col][] = $stu; } $adds[] = "($gid,$stu,$score,'$feedback')"; } } fclose($handle); //delete any data we're overwriting foreach ($gradestodel as $col=>$stus) { if (count($stus)>0) { $stulist = implode(',',$stus); $query = "DELETE FROM imas_grades WHERE gbitemid={$gbitemid[$col]} AND userid IN ($stulist)"; mysql_query($query) or die("Query failed : " . mysql_error()); } } //now we load in the data! if (count($adds)>0) { $query = "INSERT INTO imas_grades (gbitemid,userid,score,feedback) VALUES "; $query .= implode(',',$adds); mysql_query($query) or die("Query failed : " . mysql_error()); //echo $query; } } unlink($dir.$filename); header("Location: http://" . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['PHP_SELF']), '/\\') . "/chgoffline.php?cid=$cid"); exit; } else if (isset($_FILES['userfile']['name']) && $_FILES['userfile']['name']!='') { //upload file if (is_uploaded_file($_FILES['userfile']['tmp_name'])) { $k = 0; while (file_exists($dir . "upload$k.csv")) { $k++; } $uploadfile = "upload$k.csv"; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $dir.$uploadfile)) { //parse out header info $page_fileHiddenInput = '<input type="hidden" name="thefile" value="'.$uploadfile.'" />'; $handle = fopen($dir.$uploadfile,'r'); $hrow = fgetcsv($handle,4096); $columndata = array(); $names = array(); if ($_POST['headerrows']==2) { $srow = fgetcsv($handle,4096); } fclose($handle); for ($i=0; $i<count($hrow); $i++) { if ($hrow[$i]=='Username') { $usernamecol = $i; } else if ($hrow[$i]=='Name' || $hrow[$i]=='Section' || $hrow[$i]=='Code') { continue; } else if (strpos(strtolower($hrow[$i]),'comment')!==false || strpos(strtolower($hrow[$i]),'feedback')!==false) { $columndata[$i-1][2] = $i; } else { if (isset($srow[$i])) { $p = explode(':',$hrow[$i]); if (count($p)>1) { $names[$i] = strip_tags($p[0]); } else { $names[$i] = strip_tags($hrow[$i]); } $pts = intval(preg_replace('/[^\d\.]/','',$srow[$i])); //if ($pts==0) {$pts = '';} } else { $p = explode(':',$hrow[$i]); if (count($p)>1) { $pts = intval(preg_replace('/[^\d\.]/','',$p[count($p)-1])); $names[$i] = strip_tags($p[0]); } else { $pts = 0; $names[$i] = strip_tags($hrow[$i]); } //if ($pts==0) {$pts = '';} } $columndata[$i] = array($names[$i],$pts,-1,0); } } //look to see if any of these names have been used before foreach ($names as $k=>$n) { //prep for db use $names[$k] = addslashes($n); } $namelist = "'".implode("','",$names)."'"; $query = "SELECT id,name FROM imas_gbitems WHERE name IN ($namelist) AND courseid='$cid'"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); while ($row = mysql_fetch_row($result)) { $loc = array_search($row[1],$names); if ($loc===false) {continue; } //shouldn't happen $columndata[$loc][3] = $row[0]; //store existing gbitems.id } if (!isset($usernamecol)) { $usernamecol = 1; } } else { $overwriteBody = 1; $body = "<p>Error uploading file!</p>\n"; } } else { $overwriteBody = 1; $body = "File Upload error"; } } $curBreadcrumb ="$breadcrumbbase <a href=\"course.php?cid={$_GET['cid']}\">$coursename</a> "; $curBreadcrumb .=" &gt; <a href=\"gradebook.php?stu=0&gbmode={$_GET['gbmode']}&cid=$cid\">Gradebook</a> "; $curBreadcrumb .=" &gt; <a href=\"chgoffline.php?stu=0&cid=$cid\">Manage Offline Grades</a> &gt; Upload Multiple Grades"; } /******* begin html output ********/ $placeinhead = "<script type=\"text/javascript\" src=\"$imasroot/javascript/DatePicker.js\"></script>"; require("../header.php"); echo '<div class="breadcrumb">'.$curBreadcrumb.'</div>'; echo '<div id="headeruploadmultgrades" class="pagetitle"><h2>Upload Multiple Grades</h2></div>'; if ($overwriteBody==1) { echo $body; } else { echo '<form id="qform" enctype="multipart/form-data" method=post action="uploadmultgrades.php?cid='.$cid.'">'; if (isset($page_fileHiddenInput)) { //file has been uploaded, need to know what to import echo $page_fileHiddenInput; echo '<input type="hidden" name="headerrows" value="'.$_POST['headerrows'].'" />'; $sdate = tzdate("m/d/Y",time()); $stime = tzdate("g:i a",time()); ?> <span class=form>Username is in column:</span> <span class=formright><input type=text name="sidcol" size=4 value="<?php echo $usernamecol+1; ?>"></span><br class=form /> <span class=form>Show grade to students after:</span><span class=formright><input type=radio name="sdatetype" value="0" <?php if ($showdate=='0') {echo "checked=1";}?>/> Always<br/> <input type=radio name="sdatetype" value="sdate" <?php if ($showdate!='0') {echo "checked=1";}?>/><input type=text size=10 name=sdate value="<?php echo $sdate;?>"> <a href="#" onClick="displayDatePicker('sdate', this); return false"><img src="../img/cal.gif" alt="Calendar"/></A> at <input type=text size=10 name=stime value="<?php echo $stime;?>"></span><BR class=form> <p>Check: <a href="#" onclick="return chkAllNone('qform','addcol[]',true)">All</a> <a href="#" onclick="return chkAllNone('qform','addcol[]',false)">None</a></p> <table class="gb"> <thead> <tr><th>In column</th><th>Load this?</th><th>Overwrite?</th><th>Name</th><th>Points</th><th>Count?</th><th>Gradebook Category</th><th>Feedback in column<br/>(blank for none)</th></tr> </thead> <tbody> <?php $query = "SELECT id,name FROM imas_gbcats WHERE courseid='$cid'"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); $gbcatoptions = '<option value="0" selected=1>Default</option>'; if (mysql_num_rows($result)>0) { while ($row = mysql_fetch_row($result)) { $gbcatoptions .= "<option value=\"{$row[0]}\">{$row[1]}</option>\n"; } } foreach ($columndata as $col=>$data) { echo '<tr><td>'.($col+1).'</td>'; echo '<td><input type="checkbox" name="addcol[]" value="'.$col.'" /></td>'; echo '<td><select name="coloverwrite'.$col.'"><option value="0" '; if ($data[3]==0) {echo 'selected="selected"';} echo '>Add as new item</option>'; if ($data[3]>0) { echo '<option value="'.$data[3].'" selected="selected">Overwrite existing scores</option>'; } echo '</select></td>'; echo '<td><input type="text" size="20" name="colname'.$col.'" value="'.htmlentities($data[0]).'" /></td>'; echo '<td><input type="text" size="3" name="colpts'.$col.'" value="'.$data[1].'" /></td>'; echo '<td><select name="colcnt'.$col.'">'; echo '<option value="1" selected="selected">Count in gradebook</option>'; echo '<option value="0">Don\'t count and hide from students</option>'; echo '<option value="3">Don\'t count in grade total</option>'; echo '<option value="2">Count as extra credit</option></select></td>'; echo '<td><select name="colgbcat'.$col.'">'.$gbcatoptions.'</select></td>'; echo '<td><input type="text" size="3" name="colfeedback'.$col.'" value="'.($data[2]>-1?$data[2]+1:'').'" /></td>'; echo '</tr>'; } echo '</tbody></table>'; echo '<p><input type="submit" value="Upload" /></p>'; echo '<p>Note: If you choose to overwrite existing scores, it will replace existing scores with any non-blank scores in your upload.</p>'; } else { //need file ?> <p>The uploaded file must be in Comma Separated Values (.CSV) file format, and contain a column with the students' usernames. If you are including feedback as well as grades, upload will be much easier if the feedback is in the column immediately following the scores, and if the column header contains the word Comment or Feedback</p> <p> <span class=form>Import File: </span> <span class=formright> <input type="hidden" name="MAX_FILE_SIZE" value="300000" /> <input name="userfile" type="file" /> </span><br class=form /> <span class=form>File contains a header row:</span> <span class=formright> <input type=radio name="headerrows" value="1" checked="checked">Yes, one<br/> <input type=radio name="headerrows" value="2">Yes, with second for points possible </span><br class=form /> <div class=submit><input type=submit value="Continue"></div> </p> <?php } echo '</form>'; } require("../footer.php"); ?>
31,106
https://github.com/Fs02/alpakka/blob/master/mqtt-streaming/src/main/scala/akka/stream/alpakka/mqtt/streaming/scaladsl/Mqtt.scala
Github Open Source
Open Source
Apache-2.0
2,018
alpakka
Fs02
Scala
Code
187
484
/* * Copyright (C) 2016-2018 Lightbend Inc. <http://www.lightbend.com> */ package akka.stream.alpakka.mqtt.streaming package scaladsl import akka.NotUsed import akka.stream.scaladsl.BidiFlow import akka.util.ByteString object Mqtt { /** * Create a bidirectional flow that maintains client session state with an MQTT endpoint. * The bidirectional flow can be joined with an endpoint flow that receives * [[ByteString]] payloads and independently produces [[ByteString]] payloads e.g. * an MQTT server. * * @param session the MQTT client session to use * @return the bidirectional flow */ def clientSessionFlow[A]( session: MqttClientSession ): BidiFlow[Command[A], ByteString, ByteString, Either[MqttCodec.DecodeError, Event[A]], NotUsed] = BidiFlow.fromFlows(session.commandFlow, session.eventFlow) /** * Create a bidirectional flow that maintains server session state with an MQTT endpoint. * The bidirectional flow can be joined with an endpoint flow that receives * [[ByteString]] payloads and independently produces [[ByteString]] payloads e.g. * an MQTT server. * * @param session the MQTT server session to use * @param connectionId a identifier to distinguish the client connection so that the session * can route the incoming requests * @return the bidirectional flow */ def serverSessionFlow[A]( session: MqttServerSession, connectionId: ByteString ): BidiFlow[Command[A], ByteString, ByteString, Either[MqttCodec.DecodeError, Event[A]], NotUsed] = BidiFlow.fromFlows(session.commandFlow(connectionId), session.eventFlow(connectionId)) }
49,266
https://github.com/fossnsbm/Privacy-Dashboad/blob/master/src/Routes.js
Github Open Source
Open Source
2,021
Privacy-Dashboad
fossnsbm
JavaScript
Code
115
377
import React from 'react'; import { Route, BrowserRouter as Router, Switch } from "react-router-dom"; import LandingPage from './Components/Pages/LandingPage/LandingPage'; import MobileNavigation from './Components/Elements/MobileNavigation'; export default function Routes() { const routes = [ { path: '/blog', component: LandingPage }, { path: '/mail', component: LandingPage }, { path: '/forum', component: LandingPage }, { path: '/ketchup', component: LandingPage }, { path: '/event', component: LandingPage }, { path: '/rsvp', component: LandingPage }, { path: '/', component: LandingPage }, ] return ( <Router> <MobileNavigation /> <Switch> {routes.map((route, key) => { return <RoutWithSubRoutes key={key} {...route} /> })} </Switch> </Router> ) } const RoutWithSubRoutes = (route) => { return ( <React.Fragment> <Route path={route.path} render={(props) => <route.component {...props} routes={route.routes} />} /> </React.Fragment> ); };
27,440
https://github.com/btc-ag/redg/blob/master/redg-runtime/src/main/java/com/btc/redg/runtime/visualization/RedGVisualization.java
Github Open Source
Open Source
Apache-2.0
2,021
redg
btc-ag
Java
Code
185
425
/* * Copyright 2017 BTC Business Technology AG * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.btc.redg.runtime.visualization; import java.util.LinkedList; import java.util.List; public class RedGVisualization { private String version; private List<RedGVisualizationObject> objects; private List<RedGVisualizationRelation> relationships; public RedGVisualization() { this.version = "1.0.0"; this.objects = new LinkedList<>(); this.relationships = new LinkedList<>(); } public String getVersion() { return version; } public void setVersion(final String version) { this.version = version; } public List<RedGVisualizationObject> getObjects() { return objects; } public void setObjects(final List<RedGVisualizationObject> objects) { this.objects = objects; } public List<RedGVisualizationRelation> getRelationships() { return relationships; } public void setRelationships(final List<RedGVisualizationRelation> relationships) { this.relationships = relationships; } }
14,424
https://github.com/pikju/api-umbrella/blob/master/src/api-umbrella/utils/mkdir_p.lua
Github Open Source
Open Source
MIT
2,023
api-umbrella
pikju
Lua
Code
25
80
local shell_blocking_capture_combined = require("shell-games").capture_combined return function(path) local _, err = shell_blocking_capture_combined({ "mkdir", "-p", path }) if err then return false, err end return true end
37,799
https://github.com/karim/adila/blob/master/database/src/main/java/adila/db/sh02e_sh2d02e.java
Github Open Source
Open Source
MIT
2,016
adila
karim
Java
Code
38
94
// This file is automatically generated. package adila.db; /* * Sharp AQUOS PHONE ZETA SH-02E * * DEVICE: SH02E * MODEL: SH-02E */ final class sh02e_sh2d02e { public static final String DATA = "Sharp|AQUOS PHONE ZETA SH-02E|"; }
35,634
https://github.com/charnelclamosa/REST-API/blob/master/database/seeds/CRUDTableSeeder.php
Github Open Source
Open Source
MIT
2,020
REST-API
charnelclamosa
PHP
Code
49
148
<?php use App\crud; use Illuminate\Database\Seeder; class CRUDTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Truncate crud::truncate(); // Create crud::create([ 'name' => 'Charnel S. Clamosa', 'gender' => 'Male', 'age' => '26', 'address' => 'Cavite, Philippines', ]); } }
18,616
https://github.com/geelen/traits/blob/master/react-native/typography.js
Github Open Source
Open Source
MIT
2,020
traits
geelen
JavaScript
Code
423
1,675
import { chain, containsPhrase } from './helpers'; import { Platform } from 'react-native'; // typography props const markProBold = 'MarkPro-Bold'; export const systemFont = 'System'; const bodyColor = Platform.select({ ios: '', android: '' }); export default { bold: `font-family: ${markProBold};`, regular: `font-family: ${systemFont};`, // Design system font sizes largeTitle: ` font-family: ${markProBold}; font-size: 36px; line-height: 42px; `, onboardingTitle: ` font-family: ${markProBold}; font-size: 22px; line-height: 30px; `, onboardingInput: ` font-family: ${systemFont}; font-weight: 400; font-size: 22px; line-height: 26px; `, title1: ` font-family: ${markProBold}; font-size: 20px; line-height: 26px; `, title2: ` font-family: ${markProBold}; font-size: 18px; line-height: 24px; `, title3: ` font-family: ${systemFont}; font-weight: 400; font-size: 19px; line-height: 24px; `, headline: ` font-family: ${markProBold}; font-size: 17px; line-height: 22px; `, bodyMedium: ` font-family: ${systemFont}; font-weight: 500; font-size: 15px; line-height: 22px; ${bodyColor} `, bodyMediumCondensed: ` font-family: ${systemFont}; font-weight: 500; font-size: 15px; line-height: 18px; ${bodyColor} `, body: ` font-family: ${systemFont}; font-weight: 400; font-size: 15px; line-height: 22px; ${bodyColor} `, footnote: ` font-family: ${systemFont}; font-weight: 400; font-size: 14px; line-height: 20px; `, footnoteCondensed: ` font-family: ${systemFont}; font-weight: 400; font-size: 14px; line-height: 18px; `, caption1: ` font-family: ${systemFont}; font-weight: 400; font-size: 13px; line-height: 18px; `, caption2: ` font-family: ${systemFont}; font-weight: 400; font-size: 12px; line-height: 18px; `, button1: ` font-family: ${markProBold}; font-size: 18px; line-height: 24px; `, button2: ` font-family: ${markProBold}; font-size: 16px; line-height: 20px; `, button3: ` font-family: ${markProBold}; font-size: 13px; line-height: 16px; `, // Special cases: // Only use for the MEMBER badge on users tenPixelBold: ` font-family: ${markProBold}; font-size: 10px; `, // Used on the Landing pages to switch between signup/signing/forgotpassword landingMessage: ` font-family: ${systemFont}; font-weight: 400; font-size: 16px; line-height: 22px; `, landingCta: ` font-family: ${systemFont}; font-weight: 500; font-size: 16px; line-height: 22px; `, keypad: ` font-family: ${systemFont}; font-weight: 400; font-size: 28px; line-height: 50px; ` }; const typeProps = { xs: `font-size: 13px;`, 'size-xs': `font-size: 13px;`, s: `font-size: 14px;`, 'size-s': `font-size: 14px;`, 'size-m': `font-size: 15px;`, l: `font-size: 16px;`, 'size-l': `font-size: 16px;`, xl: `font-size: 22px;`, 'size-xl': `font-size: 22px;`, title: `font-size: 25px;`, 'size-title': `font-size: 25px;`, xxl: `font-size: 27px;`, 'size-xxl': `font-size: 27px;`, 'size-amount': `font-size: 36px;`, alignLeft: `text-align: left;`, alignCenter: `text-align: center;`, alignRight: `text-align: right;`, lineHeight18: `line-height: 18px;`, lineHeight24: `line-height: 24px;`, lineHeight30: `line-height: 30px;`, lineHeight41: `line-height: 41px;`, lh0: `line-height: 0px;`, lh18: `line-height: 18px;`, lh20: `line-height: 20px;`, lh22: `line-height: 22px;`, lh24: `line-height: 24px;`, lh30: `line-height: 30px;`, lh41: `line-height: 41px;`, capitalize: 'textTransform: capitalize;', lowercase: 'textTransform: lowercase;', uppercase: `textTransform: uppercase;`, ...fontTraits }; export const typography = chain(typeProps); export const typographyProps = Object.keys(typeProps).reduce((accum, key) => { let prefixedProps = { ...accum, [key]: typeProps[key] }; if (containsPhrase(typeProps, key, 'font-family')) { prefixedProps = { ...prefixedProps, ['weight-' + key]: typeProps[key] }; } return prefixedProps; });
45,718
https://github.com/bidtime/idbutils/blob/master/idbutils/src/main/java/org/bidtime/dbutils/jdbc/rs/handle/MaxIdHandler.java
Github Open Source
Open Source
Apache-2.0
2,023
idbutils
bidtime
Java
Code
89
416
package org.bidtime.dbutils.jdbc.rs.handle; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.SQLException; import org.bidtime.dbutils.jdbc.rs.handle.ext.ResultSetExHandler; /** * @author jss * * 提供对从ResultSet进行预处理的功能,继承自dbutils的ResultSetHandler类 * */ @SuppressWarnings("serial") public class MaxIdHandler<T> extends ResultSetExHandler<T> { public MaxIdHandler(Class<T> type) { super.setProp(type); } @SuppressWarnings({ "unchecked" }) @Override public T handle(ResultSet rs) throws SQLException { if (rs.next()) { //刚插入数据的自增ID if (type.isAssignableFrom(Long.class)) { return (T)(Long.valueOf(rs.getLong(1))); } else if (type.isAssignableFrom(BigDecimal.class)) { return (T)rs.getBigDecimal(1); } else if (type.isAssignableFrom(Short.class)) { return (T)(Short.valueOf(rs.getShort(1))); } else { return (T)(Integer.valueOf(rs.getInt(1))); } } else { return null; } //return rs.next() ? (T) this.convert.toBean(rs, this.type, mapBeanPropColumns) : null; } }
18,664
https://github.com/saas786/laraveljetstreamblog/blob/master/routes/web.php
Github Open Source
Open Source
Apache-2.0
2,021
laraveljetstreamblog
saas786
PHP
Code
114
473
<?php use Illuminate\Foundation\Application; use Illuminate\Support\Facades\Route; use Illuminate\Http\Request; use Inertia\Inertia; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | contains the "web" middleware group. Now create something great! | */ Route::get('/', function () { return Inertia::render('Home', [ 'canLogin' => Route::has('login'), 'canRegister' => Route::has('register'), ])->with(['posts' => DB::table('posts')->join('users', 'posts.uid', '=', 'users.id')->select('posts.*','users.id as uid','users.name')->inRandomOrder()->limit(20)->get()]); })->name('home'); Route::get('/posts/{id}', function (Request $request) { $post = DB::table('posts')->join('users', 'posts.uid', '=', 'users.id')->where('posts.id',$request->id)->select('posts.*','users.id as uid','users.name')->get(); return Inertia::render('PostView', [ 'canLogin' => Route::has('login'), 'canRegister' => Route::has('register'), ])->with(['post'=>$post[0]]); })->name('postview'); Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function (Request $request) { $post_count = DB::table('posts')->select(DB::raw('count(*) as count'))->where('uid',$request->user()->id)->get(); return Inertia::render('Dashboard')->with(['post_count'=>$post_count[0]->count]); })->name('dashboard'); require __DIR__.'/post.php';
10,175
https://github.com/ottowan/appro/blob/master/application/logs/log-2018-06-06.php
Github Open Source
Open Source
MIT
null
appro
ottowan
PHP
Code
20,000
50,897
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> DEBUG - 2018-06-06 02:51:54 --> UTF-8 Support Enabled DEBUG - 2018-06-06 02:51:54 --> No URI present. Default controller set. DEBUG - 2018-06-06 02:51:54 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 02:51:54 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 02:51:54 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 02:51:54 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 02:51:54 --> Total execution time: 0.2188 DEBUG - 2018-06-06 02:52:03 --> UTF-8 Support Enabled DEBUG - 2018-06-06 02:52:03 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 02:52:03 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 02:52:08 --> UTF-8 Support Enabled DEBUG - 2018-06-06 02:52:08 --> No URI present. Default controller set. DEBUG - 2018-06-06 02:52:08 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 02:52:08 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 02:52:08 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 02:52:08 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 02:52:08 --> Total execution time: 0.1100 DEBUG - 2018-06-06 02:52:08 --> UTF-8 Support Enabled DEBUG - 2018-06-06 02:52:08 --> Global POST, GET and COOKIE data sanitized ERROR - 2018-06-06 02:52:08 --> 404 Page Not Found: Images/favicon.png DEBUG - 2018-06-06 02:52:34 --> UTF-8 Support Enabled DEBUG - 2018-06-06 02:52:34 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 02:52:34 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 02:52:34 --> Total execution time: 0.0984 DEBUG - 2018-06-06 02:54:20 --> UTF-8 Support Enabled DEBUG - 2018-06-06 02:54:20 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 02:54:20 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 02:54:20 --> Total execution time: 0.0902 DEBUG - 2018-06-06 02:54:38 --> UTF-8 Support Enabled DEBUG - 2018-06-06 02:54:38 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 02:54:38 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 02:54:38 --> Total execution time: 0.0927 DEBUG - 2018-06-06 02:58:36 --> UTF-8 Support Enabled DEBUG - 2018-06-06 02:58:36 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 02:58:36 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 02:58:36 --> Total execution time: 0.1036 DEBUG - 2018-06-06 02:59:16 --> UTF-8 Support Enabled DEBUG - 2018-06-06 02:59:16 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 02:59:16 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 02:59:16 --> Total execution time: 0.0982 DEBUG - 2018-06-06 03:09:54 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:09:54 --> No URI present. Default controller set. DEBUG - 2018-06-06 03:09:54 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:09:54 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:09:54 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:09:54 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:09:54 --> Total execution time: 0.1113 DEBUG - 2018-06-06 03:09:55 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:09:55 --> Global POST, GET and COOKIE data sanitized ERROR - 2018-06-06 03:09:55 --> 404 Page Not Found: Images/favicon.png DEBUG - 2018-06-06 03:16:26 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:16:26 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:16:26 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:16:26 --> Total execution time: 0.0952 DEBUG - 2018-06-06 03:16:49 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:16:49 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:16:49 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:16:49 --> Total execution time: 0.1003 DEBUG - 2018-06-06 03:18:37 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:18:37 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:18:37 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:18:37 --> Total execution time: 0.1100 DEBUG - 2018-06-06 03:26:05 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:26:05 --> No URI present. Default controller set. DEBUG - 2018-06-06 03:26:05 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:26:05 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:26:05 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:26:05 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:26:05 --> Total execution time: 0.1276 DEBUG - 2018-06-06 03:26:05 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:26:05 --> Global POST, GET and COOKIE data sanitized ERROR - 2018-06-06 03:26:05 --> 404 Page Not Found: Images/favicon.png DEBUG - 2018-06-06 03:26:12 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:26:12 --> No URI present. Default controller set. DEBUG - 2018-06-06 03:26:12 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:26:12 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:26:12 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:26:12 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:26:13 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:26:13 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:26:13 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:26:13 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:26:13 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:26:13 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:26:13 --> Total execution time: 0.7167 DEBUG - 2018-06-06 03:26:14 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:26:14 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:26:14 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:26:14 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:26:14 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:26:14 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:26:31 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:26:31 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:26:31 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:26:31 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:26:31 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:26:31 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:26:31 --> Total execution time: 0.2446 DEBUG - 2018-06-06 03:33:18 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:33:18 --> No URI present. Default controller set. DEBUG - 2018-06-06 03:33:18 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:33:18 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:33:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:33:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:33:18 --> Total execution time: 0.1193 DEBUG - 2018-06-06 03:33:18 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:33:18 --> Global POST, GET and COOKIE data sanitized ERROR - 2018-06-06 03:33:18 --> 404 Page Not Found: Images/favicon.png DEBUG - 2018-06-06 03:33:29 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:33:29 --> No URI present. Default controller set. DEBUG - 2018-06-06 03:33:29 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:33:29 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:33:29 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:33:29 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:33:29 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:33:30 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:33:30 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:33:30 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:33:30 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:33:30 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:33:30 --> Total execution time: 0.6528 DEBUG - 2018-06-06 03:33:31 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:33:31 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:33:31 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:33:31 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:33:31 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:33:31 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php ERROR - 2018-06-06 03:33:31 --> Query error: Unknown column 'black_num_full' in 'where clause' - Invalid query: SELECT `case`.*, j511e1bd5.name AS s511e1bd5, j3888efe1.name AS s3888efe1, jd3a0401a.name AS sd3a0401a, CONCAT('(', COALESCE(j9f64fb95.abb, ''), ')', COALESCE(j9f64fb95.name, ''), '') as s9f64fb95 FROM `case` LEFT JOIN `sector` as `j511e1bd5` ON `j511e1bd5`.`id` = `case`.`case_tranfer_court` LEFT JOIN `case_tranfer_type` as `j3888efe1` ON `j3888efe1`.`id` = `case`.`case_tranfer_type` LEFT JOIN `case_tranfer_by` as `jd3a0401a` ON `jd3a0401a`.`id` = `case`.`case_tranfer_by` LEFT JOIN `casetype` as `j9f64fb95` ON `j9f64fb95`.`id` = `case`.`casetype` WHERE `sector` = '92' AND (`j9f64fb95`.`abb` LIKE '%ค้ามนุษย์%' OR `j9f64fb95`.`name` LIKE '%ค้ามนุษย์%') AND `black_num_full` LIKE '%1%' ESCAPE '!' AND `recieve_date` LIKE '%09/5/61%' ESCAPE '!' ORDER BY `black_year` ASC, `black_abb` ASC, `black_no` ASC LIMIT 10 DEBUG - 2018-06-06 03:33:42 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:33:42 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:33:42 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:33:42 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:33:42 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:33:42 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:33:42 --> Total execution time: 0.6279 DEBUG - 2018-06-06 03:33:43 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:33:43 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:33:43 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:33:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:33:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:33:43 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php ERROR - 2018-06-06 03:33:43 --> Query error: Unknown column 'black_num_full' in 'where clause' - Invalid query: SELECT `case`.*, j511e1bd5.name AS s511e1bd5, j3888efe1.name AS s3888efe1, jd3a0401a.name AS sd3a0401a, CONCAT('(', COALESCE(j9f64fb95.abb, ''), ')', COALESCE(j9f64fb95.name, ''), '') as s9f64fb95 FROM `case` LEFT JOIN `sector` as `j511e1bd5` ON `j511e1bd5`.`id` = `case`.`case_tranfer_court` LEFT JOIN `case_tranfer_type` as `j3888efe1` ON `j3888efe1`.`id` = `case`.`case_tranfer_type` LEFT JOIN `case_tranfer_by` as `jd3a0401a` ON `jd3a0401a`.`id` = `case`.`case_tranfer_by` LEFT JOIN `casetype` as `j9f64fb95` ON `j9f64fb95`.`id` = `case`.`casetype` WHERE `sector` = '92' AND (`j9f64fb95`.`abb` LIKE '%ค้ามนุษย์%' OR `j9f64fb95`.`name` LIKE '%ค้ามนุษย์%') AND `black_num_full` LIKE '%1%' ESCAPE '!' AND `recieve_date` LIKE '%09/5/61%' ESCAPE '!' ORDER BY `black_year` ASC, `black_abb` ASC, `black_no` ASC LIMIT 10 DEBUG - 2018-06-06 03:34:02 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:34:02 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:34:02 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:34:02 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:02 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:02 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:34:02 --> Total execution time: 0.2494 DEBUG - 2018-06-06 03:34:38 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:34:38 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:34:38 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:34:39 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:39 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:39 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:34:39 --> Total execution time: 0.6364 DEBUG - 2018-06-06 03:34:39 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:34:39 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:34:39 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:34:39 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:39 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:39 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php ERROR - 2018-06-06 03:34:39 --> Query error: Unknown column 'black_num_full' in 'where clause' - Invalid query: SELECT `case`.*, j511e1bd5.name AS s511e1bd5, j3888efe1.name AS s3888efe1, jd3a0401a.name AS sd3a0401a, CONCAT('(', COALESCE(j9f64fb95.abb, ''), ')', COALESCE(j9f64fb95.name, ''), '') as s9f64fb95 FROM `case` LEFT JOIN `sector` as `j511e1bd5` ON `j511e1bd5`.`id` = `case`.`case_tranfer_court` LEFT JOIN `case_tranfer_type` as `j3888efe1` ON `j3888efe1`.`id` = `case`.`case_tranfer_type` LEFT JOIN `case_tranfer_by` as `jd3a0401a` ON `jd3a0401a`.`id` = `case`.`case_tranfer_by` LEFT JOIN `casetype` as `j9f64fb95` ON `j9f64fb95`.`id` = `case`.`casetype` WHERE `sector` = '92' AND (`j9f64fb95`.`abb` LIKE '%ค้ามนุษย์%' OR `j9f64fb95`.`name` LIKE '%ค้ามนุษย์%') AND `black_num_full` LIKE '%1%' ESCAPE '!' AND `recieve_date` LIKE '%09/5/61%' ESCAPE '!' ORDER BY `black_year` ASC, `black_abb` ASC, `black_no` ASC LIMIT 10 DEBUG - 2018-06-06 03:34:46 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:34:46 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:34:46 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:34:46 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:46 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:46 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php ERROR - 2018-06-06 03:34:47 --> Query error: Unknown column 'black_num_full' in 'where clause' - Invalid query: SELECT `case`.*, j511e1bd5.name AS s511e1bd5, j3888efe1.name AS s3888efe1, jd3a0401a.name AS sd3a0401a, CONCAT('(', COALESCE(j9f64fb95.abb, ''), ')', COALESCE(j9f64fb95.name, ''), '') as s9f64fb95 FROM `case` LEFT JOIN `sector` as `j511e1bd5` ON `j511e1bd5`.`id` = `case`.`case_tranfer_court` LEFT JOIN `case_tranfer_type` as `j3888efe1` ON `j3888efe1`.`id` = `case`.`case_tranfer_type` LEFT JOIN `case_tranfer_by` as `jd3a0401a` ON `jd3a0401a`.`id` = `case`.`case_tranfer_by` LEFT JOIN `casetype` as `j9f64fb95` ON `j9f64fb95`.`id` = `case`.`casetype` WHERE `sector` = '92' AND (`j9f64fb95`.`abb` LIKE '%ค้ามนุษย์%' OR `j9f64fb95`.`name` LIKE '%ค้ามนุษย์%') AND `black_num_full` LIKE '%1%' ESCAPE '!' AND `recieve_date` LIKE '%09/5/61%' ESCAPE '!' ORDER BY `black_year` ASC, `black_abb` ASC, `black_no` ASC LIMIT 10 DEBUG - 2018-06-06 03:34:47 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:34:47 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:34:47 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:34:47 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:47 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:47 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php ERROR - 2018-06-06 03:34:47 --> Query error: Unknown column 'black_num_full' in 'where clause' - Invalid query: SELECT `case`.*, j511e1bd5.name AS s511e1bd5, j3888efe1.name AS s3888efe1, jd3a0401a.name AS sd3a0401a, CONCAT('(', COALESCE(j9f64fb95.abb, ''), ')', COALESCE(j9f64fb95.name, ''), '') as s9f64fb95 FROM `case` LEFT JOIN `sector` as `j511e1bd5` ON `j511e1bd5`.`id` = `case`.`case_tranfer_court` LEFT JOIN `case_tranfer_type` as `j3888efe1` ON `j3888efe1`.`id` = `case`.`case_tranfer_type` LEFT JOIN `case_tranfer_by` as `jd3a0401a` ON `jd3a0401a`.`id` = `case`.`case_tranfer_by` LEFT JOIN `casetype` as `j9f64fb95` ON `j9f64fb95`.`id` = `case`.`casetype` WHERE `sector` = '92' AND (`j9f64fb95`.`abb` LIKE '%ค้ามนุษย์%' OR `j9f64fb95`.`name` LIKE '%ค้ามนุษย์%') AND `black_num_full` LIKE '%1%' ESCAPE '!' AND `recieve_date` LIKE '%09/5/61%' ESCAPE '!' ORDER BY `black_year` ASC, `black_abb` ASC, `black_no` ASC LIMIT 10 DEBUG - 2018-06-06 03:34:48 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:34:48 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:34:49 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:34:49 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:49 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:49 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php ERROR - 2018-06-06 03:34:49 --> Query error: Unknown column 'black_num_full' in 'where clause' - Invalid query: SELECT `case`.*, j511e1bd5.name AS s511e1bd5, j3888efe1.name AS s3888efe1, jd3a0401a.name AS sd3a0401a, CONCAT('(', COALESCE(j9f64fb95.abb, ''), ')', COALESCE(j9f64fb95.name, ''), '') as s9f64fb95 FROM `case` LEFT JOIN `sector` as `j511e1bd5` ON `j511e1bd5`.`id` = `case`.`case_tranfer_court` LEFT JOIN `case_tranfer_type` as `j3888efe1` ON `j3888efe1`.`id` = `case`.`case_tranfer_type` LEFT JOIN `case_tranfer_by` as `jd3a0401a` ON `jd3a0401a`.`id` = `case`.`case_tranfer_by` LEFT JOIN `casetype` as `j9f64fb95` ON `j9f64fb95`.`id` = `case`.`casetype` WHERE `sector` = '92' AND (`j9f64fb95`.`abb` LIKE '%ค้ามนุษย์%' OR `j9f64fb95`.`name` LIKE '%ค้ามนุษย์%') AND `black_num_full` LIKE '%1%' ESCAPE '!' AND `recieve_date` LIKE '%09/5/61%' ESCAPE '!' ORDER BY `black_year` ASC, `black_abb` ASC, `black_no` ASC LIMIT 10 DEBUG - 2018-06-06 03:34:50 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:34:50 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:34:50 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:34:50 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:50 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:50 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php ERROR - 2018-06-06 03:34:50 --> Query error: Unknown column 'black_num_full' in 'where clause' - Invalid query: SELECT `case`.*, j511e1bd5.name AS s511e1bd5, j3888efe1.name AS s3888efe1, jd3a0401a.name AS sd3a0401a, CONCAT('(', COALESCE(j9f64fb95.abb, ''), ')', COALESCE(j9f64fb95.name, ''), '') as s9f64fb95 FROM `case` LEFT JOIN `sector` as `j511e1bd5` ON `j511e1bd5`.`id` = `case`.`case_tranfer_court` LEFT JOIN `case_tranfer_type` as `j3888efe1` ON `j3888efe1`.`id` = `case`.`case_tranfer_type` LEFT JOIN `case_tranfer_by` as `jd3a0401a` ON `jd3a0401a`.`id` = `case`.`case_tranfer_by` LEFT JOIN `casetype` as `j9f64fb95` ON `j9f64fb95`.`id` = `case`.`casetype` WHERE `sector` = '92' AND (`j9f64fb95`.`abb` LIKE '%ค้ามนุษย์%' OR `j9f64fb95`.`name` LIKE '%ค้ามนุษย์%') AND `black_num_full` LIKE '%1%' ESCAPE '!' AND `recieve_date` LIKE '%09/5/61%' ESCAPE '!' ORDER BY `black_year` ASC, `black_abb` ASC, `black_no` ASC LIMIT 10 DEBUG - 2018-06-06 03:34:57 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:34:57 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:34:57 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:34:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:34:57 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:34:57 --> Total execution time: 0.2692 DEBUG - 2018-06-06 03:35:14 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:35:14 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:35:14 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:35:14 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:35:14 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:35:14 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:35:15 --> Total execution time: 0.6668 DEBUG - 2018-06-06 03:35:15 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:35:15 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:35:15 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:35:15 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:35:15 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:35:15 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php ERROR - 2018-06-06 03:35:15 --> Query error: Unknown column 'black_num_full' in 'where clause' - Invalid query: SELECT `case`.*, j511e1bd5.name AS s511e1bd5, j3888efe1.name AS s3888efe1, jd3a0401a.name AS sd3a0401a, CONCAT('(', COALESCE(j9f64fb95.abb, ''), ')', COALESCE(j9f64fb95.name, ''), '') as s9f64fb95 FROM `case` LEFT JOIN `sector` as `j511e1bd5` ON `j511e1bd5`.`id` = `case`.`case_tranfer_court` LEFT JOIN `case_tranfer_type` as `j3888efe1` ON `j3888efe1`.`id` = `case`.`case_tranfer_type` LEFT JOIN `case_tranfer_by` as `jd3a0401a` ON `jd3a0401a`.`id` = `case`.`case_tranfer_by` LEFT JOIN `casetype` as `j9f64fb95` ON `j9f64fb95`.`id` = `case`.`casetype` WHERE `sector` = '92' AND (`j9f64fb95`.`abb` LIKE '%ค้ามนุษย์%' OR `j9f64fb95`.`name` LIKE '%ค้ามนุษย์%') AND `black_num_full` LIKE '%1%' ESCAPE '!' AND `recieve_date` LIKE '%09/5/61%' ESCAPE '!' ORDER BY `black_year` ASC, `black_abb` ASC, `black_no` ASC LIMIT 10 DEBUG - 2018-06-06 03:35:19 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:35:19 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:35:19 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:35:19 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:35:19 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:35:19 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:35:19 --> Total execution time: 0.4555 DEBUG - 2018-06-06 03:35:23 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:35:23 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:35:23 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:35:24 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:35:24 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:35:24 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:35:24 --> Total execution time: 0.6840 DEBUG - 2018-06-06 03:35:24 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:35:24 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:35:24 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:35:24 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:35:24 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:35:24 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php ERROR - 2018-06-06 03:35:24 --> Query error: Unknown column 'black_num_full' in 'where clause' - Invalid query: SELECT `case`.*, j511e1bd5.name AS s511e1bd5, j3888efe1.name AS s3888efe1, jd3a0401a.name AS sd3a0401a, CONCAT('(', COALESCE(j9f64fb95.abb, ''), ')', COALESCE(j9f64fb95.name, ''), '') as s9f64fb95 FROM `case` LEFT JOIN `sector` as `j511e1bd5` ON `j511e1bd5`.`id` = `case`.`case_tranfer_court` LEFT JOIN `case_tranfer_type` as `j3888efe1` ON `j3888efe1`.`id` = `case`.`case_tranfer_type` LEFT JOIN `case_tranfer_by` as `jd3a0401a` ON `jd3a0401a`.`id` = `case`.`case_tranfer_by` LEFT JOIN `casetype` as `j9f64fb95` ON `j9f64fb95`.`id` = `case`.`casetype` WHERE `sector` = '92' AND (`j9f64fb95`.`abb` LIKE '%ค้ามนุษย์%' OR `j9f64fb95`.`name` LIKE '%ค้ามนุษย์%') AND `black_num_full` LIKE '%1%' ESCAPE '!' AND `recieve_date` LIKE '%09/5/61%' ESCAPE '!' ORDER BY `black_year` ASC, `black_abb` ASC, `black_no` ASC LIMIT 10 DEBUG - 2018-06-06 03:35:44 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:35:44 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:35:44 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:35:44 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:35:44 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:35:44 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php ERROR - 2018-06-06 03:35:44 --> Query error: Unknown column 'black_num_full' in 'where clause' - Invalid query: SELECT `case`.*, j511e1bd5.name AS s511e1bd5, j3888efe1.name AS s3888efe1, jd3a0401a.name AS sd3a0401a, CONCAT('(', COALESCE(j9f64fb95.abb, ''), ')', COALESCE(j9f64fb95.name, ''), '') as s9f64fb95 FROM `case` LEFT JOIN `sector` as `j511e1bd5` ON `j511e1bd5`.`id` = `case`.`case_tranfer_court` LEFT JOIN `case_tranfer_type` as `j3888efe1` ON `j3888efe1`.`id` = `case`.`case_tranfer_type` LEFT JOIN `case_tranfer_by` as `jd3a0401a` ON `jd3a0401a`.`id` = `case`.`case_tranfer_by` LEFT JOIN `casetype` as `j9f64fb95` ON `j9f64fb95`.`id` = `case`.`casetype` WHERE `sector` = '92' AND (`j9f64fb95`.`abb` LIKE '%ค้ามนุษย์%' OR `j9f64fb95`.`name` LIKE '%ค้ามนุษย์%') AND `black_num_full` LIKE '%1%' ESCAPE '!' AND `recieve_date` LIKE '%09/5/61%' ESCAPE '!' ORDER BY `black_year` ASC, `black_abb` ASC, `black_no` ASC LIMIT 1000000 DEBUG - 2018-06-06 03:35:49 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:35:49 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:35:49 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:35:49 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:35:49 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:35:49 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php ERROR - 2018-06-06 03:35:49 --> Query error: Unknown column 'black_num_full' in 'where clause' - Invalid query: SELECT `case`.*, j511e1bd5.name AS s511e1bd5, j3888efe1.name AS s3888efe1, jd3a0401a.name AS sd3a0401a, CONCAT('(', COALESCE(j9f64fb95.abb, ''), ')', COALESCE(j9f64fb95.name, ''), '') as s9f64fb95 FROM `case` LEFT JOIN `sector` as `j511e1bd5` ON `j511e1bd5`.`id` = `case`.`case_tranfer_court` LEFT JOIN `case_tranfer_type` as `j3888efe1` ON `j3888efe1`.`id` = `case`.`case_tranfer_type` LEFT JOIN `case_tranfer_by` as `jd3a0401a` ON `jd3a0401a`.`id` = `case`.`case_tranfer_by` LEFT JOIN `casetype` as `j9f64fb95` ON `j9f64fb95`.`id` = `case`.`casetype` WHERE `sector` = '92' AND (`j9f64fb95`.`abb` LIKE '%ค้ามนุษย์%' OR `j9f64fb95`.`name` LIKE '%ค้ามนุษย์%') AND `black_num_full` LIKE '%1%' ESCAPE '!' AND `recieve_date` LIKE '%09/5/61%' ESCAPE '!' ORDER BY `black_year` ASC, `black_abb` ASC, `black_no` ASC LIMIT 1000000 DEBUG - 2018-06-06 03:36:05 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:36:05 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:36:05 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:36:05 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:36:05 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:36:05 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php ERROR - 2018-06-06 03:36:05 --> Query error: Unknown column 'black_num_full' in 'where clause' - Invalid query: SELECT `case`.*, j511e1bd5.name AS s511e1bd5, j3888efe1.name AS s3888efe1, jd3a0401a.name AS sd3a0401a, CONCAT('(', COALESCE(j9f64fb95.abb, ''), ')', COALESCE(j9f64fb95.name, ''), '') as s9f64fb95 FROM `case` LEFT JOIN `sector` as `j511e1bd5` ON `j511e1bd5`.`id` = `case`.`case_tranfer_court` LEFT JOIN `case_tranfer_type` as `j3888efe1` ON `j3888efe1`.`id` = `case`.`case_tranfer_type` LEFT JOIN `case_tranfer_by` as `jd3a0401a` ON `jd3a0401a`.`id` = `case`.`case_tranfer_by` LEFT JOIN `casetype` as `j9f64fb95` ON `j9f64fb95`.`id` = `case`.`casetype` WHERE `sector` = '92' AND (`j9f64fb95`.`abb` LIKE '%ค้ามนุษย์%' OR `j9f64fb95`.`name` LIKE '%ค้ามนุษย์%') AND `black_num_full` LIKE '%1%' ESCAPE '!' AND `recieve_date` LIKE '%09/5/61%' ESCAPE '!' ORDER BY `black_year` ASC, `black_abb` ASC, `black_no` ASC LIMIT 25 DEBUG - 2018-06-06 03:36:05 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:36:05 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:36:05 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:36:05 --> Form_validation class already loaded. Second attempt ignored. ERROR - 2018-06-06 03:36:05 --> 404 Page Not Found: DEBUG - 2018-06-06 03:37:11 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:37:11 --> No URI present. Default controller set. DEBUG - 2018-06-06 03:37:11 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:37:11 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:37:11 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:37:11 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:37:11 --> Total execution time: 0.1515 DEBUG - 2018-06-06 03:37:12 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:37:12 --> No URI present. Default controller set. DEBUG - 2018-06-06 03:37:12 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:37:12 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:37:12 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:37:12 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:37:12 --> Total execution time: 0.1350 DEBUG - 2018-06-06 03:37:13 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:37:13 --> Global POST, GET and COOKIE data sanitized ERROR - 2018-06-06 03:37:13 --> 404 Page Not Found: Images/favicon.png DEBUG - 2018-06-06 03:37:18 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:37:18 --> No URI present. Default controller set. DEBUG - 2018-06-06 03:37:18 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:37:18 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:37:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:37:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:37:19 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:37:19 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:37:19 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:37:19 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:37:19 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:37:19 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:37:19 --> Total execution time: 0.6523 DEBUG - 2018-06-06 03:37:29 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:37:29 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:37:29 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:37:29 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:37:29 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:37:29 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:37:29 --> Total execution time: 0.2641 DEBUG - 2018-06-06 03:40:56 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:40:56 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:40:56 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:40:56 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:40:56 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:40:56 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:40:56 --> Total execution time: 0.6564 DEBUG - 2018-06-06 03:40:57 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:40:57 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:40:57 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:40:57 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:40:57 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:40:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:40:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:40:57 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:40:57 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:40:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:40:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:40:57 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:40:58 --> Total execution time: 0.8763 DEBUG - 2018-06-06 03:41:13 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:41:13 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:41:13 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:41:13 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:41:14 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:41:14 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:41:14 --> Total execution time: 0.4785 DEBUG - 2018-06-06 03:41:29 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:41:29 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:41:29 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:41:29 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:41:29 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:41:29 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:41:29 --> Total execution time: 0.5655 DEBUG - 2018-06-06 03:41:35 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:41:35 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:41:35 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:41:35 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:41:35 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:41:35 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:41:35 --> Total execution time: 0.2678 DEBUG - 2018-06-06 03:41:57 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:41:57 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:41:57 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:41:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:41:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:41:57 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:41:58 --> Total execution time: 0.6414 DEBUG - 2018-06-06 03:42:19 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:42:19 --> No URI present. Default controller set. DEBUG - 2018-06-06 03:42:19 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:42:19 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:42:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:42:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:42:20 --> Total execution time: 0.1472 DEBUG - 2018-06-06 03:45:34 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:45:34 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:45:35 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:45:35 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:45:35 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:45:35 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:45:35 --> Total execution time: 0.6718 DEBUG - 2018-06-06 03:45:35 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:45:35 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:45:35 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:45:36 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:45:36 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:45:36 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:45:38 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:45:38 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:45:39 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:45:39 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:45:39 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:45:39 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:45:39 --> Total execution time: 0.4568 DEBUG - 2018-06-06 03:45:41 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:45:41 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:45:41 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:45:41 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:45:41 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:45:41 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:45:42 --> Total execution time: 0.5646 DEBUG - 2018-06-06 03:45:44 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:45:44 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:45:44 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:45:44 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:45:44 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:45:44 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:45:44 --> Total execution time: 0.2726 DEBUG - 2018-06-06 03:45:54 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:45:54 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:45:54 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:45:54 --> Total execution time: 0.1047 DEBUG - 2018-06-06 03:46:32 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:46:32 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:46:32 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:46:32 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:46:32 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:46:32 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:46:33 --> Total execution time: 0.5516 DEBUG - 2018-06-06 03:46:35 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:46:35 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:46:35 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:46:35 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:46:35 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:46:35 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:46:36 --> Total execution time: 0.6697 DEBUG - 2018-06-06 03:46:36 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:46:36 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:46:36 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:46:36 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:46:36 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:46:36 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:46:40 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:46:40 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:46:40 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:46:40 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:46:40 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:46:40 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:46:40 --> Total execution time: 0.2883 DEBUG - 2018-06-06 03:47:01 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:47:01 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:47:01 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:47:01 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:47:01 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:47:01 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:47:02 --> Total execution time: 0.6810 DEBUG - 2018-06-06 03:47:02 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:47:02 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:47:02 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:47:02 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:47:02 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:47:02 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:47:06 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:47:06 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:47:06 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:47:06 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:47:06 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:47:06 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:47:07 --> Total execution time: 0.4867 DEBUG - 2018-06-06 03:47:22 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:47:22 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:47:23 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:47:23 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:47:23 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:47:23 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:47:23 --> Total execution time: 0.5029 DEBUG - 2018-06-06 03:47:29 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:47:29 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:47:29 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:47:29 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:47:29 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:47:29 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:47:29 --> Total execution time: 0.2711 DEBUG - 2018-06-06 03:47:30 --> UTF-8 Support Enabled DEBUG - 2018-06-06 03:47:30 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 03:47:30 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 03:47:30 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:47:30 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 03:47:30 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 03:47:30 --> Total execution time: 0.2620 DEBUG - 2018-06-06 04:02:11 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:02:11 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:02:11 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:02:11 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:02:11 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:02:11 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:02:11 --> Total execution time: 0.6680 DEBUG - 2018-06-06 04:02:14 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:02:14 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:02:14 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:02:14 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:02:14 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:02:14 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:02:14 --> Total execution time: 0.6113 DEBUG - 2018-06-06 04:02:15 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:02:15 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:02:15 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:02:15 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:02:15 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:02:15 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:02:16 --> Total execution time: 0.2303 DEBUG - 2018-06-06 04:04:00 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:04:00 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:04:00 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:04:00 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:04:00 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:04:00 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:04:00 --> Total execution time: 0.1510 DEBUG - 2018-06-06 04:04:16 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:04:16 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:04:16 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:04:16 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:04:16 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:04:16 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:04:16 --> Total execution time: 0.3479 DEBUG - 2018-06-06 04:04:25 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:04:25 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:04:25 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:04:25 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:04:25 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:04:25 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:04:25 --> Total execution time: 0.3317 DEBUG - 2018-06-06 04:04:46 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:04:46 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:04:46 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:04:46 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:04:46 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:04:46 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:04:46 --> Total execution time: 0.1690 DEBUG - 2018-06-06 04:04:47 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:04:47 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:04:47 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:04:47 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:04:47 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:04:47 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:04:47 --> Total execution time: 0.1480 DEBUG - 2018-06-06 04:04:53 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:04:53 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:04:53 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:04:53 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:04:53 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:04:53 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:04:53 --> Total execution time: 0.1529 DEBUG - 2018-06-06 04:05:33 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:05:33 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:05:33 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:05:33 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:05:33 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:05:33 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:05:33 --> Total execution time: 0.1639 DEBUG - 2018-06-06 04:05:34 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:05:34 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:05:34 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:05:35 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:05:35 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:05:35 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:05:35 --> Total execution time: 0.1602 DEBUG - 2018-06-06 04:09:07 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:09:07 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:09:07 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:09:07 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:09:07 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:09:07 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:09:07 --> Total execution time: 0.1591 DEBUG - 2018-06-06 04:10:44 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:10:44 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:10:44 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:10:44 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:10:44 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:10:44 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:10:44 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:10:44 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:10:44 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:10:44 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:10:44 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:10:44 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:10:45 --> Total execution time: 0.6734 DEBUG - 2018-06-06 04:11:50 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:11:50 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:11:50 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:11:50 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:11:50 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:11:50 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:11:50 --> Total execution time: 0.2775 DEBUG - 2018-06-06 04:12:29 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:12:29 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:12:29 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:12:29 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:12:29 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:12:29 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:12:29 --> Total execution time: 0.1493 DEBUG - 2018-06-06 04:12:29 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:12:29 --> Global POST, GET and COOKIE data sanitized ERROR - 2018-06-06 04:12:29 --> 404 Page Not Found: Images/favicon.png DEBUG - 2018-06-06 04:13:17 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:13:17 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:13:17 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:13:17 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:13:17 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:13:17 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:13:18 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:13:18 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:13:18 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:13:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:13:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:13:18 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:13:18 --> Total execution time: 0.6839 DEBUG - 2018-06-06 04:16:19 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:16:19 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:16:19 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:16:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:16:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:16:20 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:16:20 --> Total execution time: 0.6880 DEBUG - 2018-06-06 04:16:36 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:16:36 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:16:36 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:16:36 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:16:36 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:16:36 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:16:36 --> Total execution time: 0.3012 DEBUG - 2018-06-06 04:16:42 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:16:42 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:16:42 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:16:42 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:16:42 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:16:42 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:16:42 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:16:42 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:16:42 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:16:42 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:16:42 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:16:42 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:16:42 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:16:42 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:16:42 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:16:42 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:16:42 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:16:42 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:16:43 --> Total execution time: 0.6517 DEBUG - 2018-06-06 04:17:04 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:17:04 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:17:04 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:17:04 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:04 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:04 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:17:05 --> Total execution time: 0.5778 DEBUG - 2018-06-06 04:17:11 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:17:11 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:17:11 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:17:11 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:11 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:11 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:17:11 --> Total execution time: 0.2708 DEBUG - 2018-06-06 04:17:23 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:17:23 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:17:23 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:17:23 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:23 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:23 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:17:23 --> Total execution time: 0.2396 DEBUG - 2018-06-06 04:17:24 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:17:24 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:17:24 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:17:24 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:24 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:24 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:17:24 --> Total execution time: 0.4635 DEBUG - 2018-06-06 04:17:26 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:17:26 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:17:26 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:17:26 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:26 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:26 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:17:26 --> Total execution time: 0.2342 DEBUG - 2018-06-06 04:17:32 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:17:32 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:17:32 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:17:32 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:32 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:32 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:17:32 --> Total execution time: 0.4447 DEBUG - 2018-06-06 04:17:34 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:17:34 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:17:34 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:17:34 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:34 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:34 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:17:35 --> Total execution time: 0.5761 DEBUG - 2018-06-06 04:17:42 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:17:42 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:17:42 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:17:42 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:42 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:42 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:17:43 --> Total execution time: 0.5754 DEBUG - 2018-06-06 04:17:50 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:17:50 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:17:50 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:17:50 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:50 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:50 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:17:50 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:17:51 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:17:51 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:17:51 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:51 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:51 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:17:51 --> Total execution time: 0.3470 DEBUG - 2018-06-06 04:17:51 --> Total execution time: 0.7990 DEBUG - 2018-06-06 04:17:58 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:17:58 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:17:58 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:17:58 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:58 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:17:58 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:17:59 --> Total execution time: 0.4589 DEBUG - 2018-06-06 04:18:54 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:18:54 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:18:54 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:18:54 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:18:54 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:18:54 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:18:55 --> Total execution time: 0.6667 DEBUG - 2018-06-06 04:18:57 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:18:57 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:18:57 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:18:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:18:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:18:57 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:18:58 --> Total execution time: 0.5844 DEBUG - 2018-06-06 04:18:59 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:18:59 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:18:59 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:18:59 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:18:59 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:18:59 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:18:59 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:18:59 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:19:00 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:19:00 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:19:00 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:19:00 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:19:00 --> Total execution time: 0.2691 DEBUG - 2018-06-06 04:19:00 --> Total execution time: 0.5662 DEBUG - 2018-06-06 04:19:02 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:19:02 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:19:02 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:19:02 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:19:02 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:19:02 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:19:03 --> Total execution time: 0.4996 DEBUG - 2018-06-06 04:19:04 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:19:04 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:19:04 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:19:04 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:19:04 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:19:04 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:19:05 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:19:05 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:19:05 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:19:05 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:19:05 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:19:05 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:19:05 --> Total execution time: 0.3196 DEBUG - 2018-06-06 04:19:05 --> Total execution time: 0.8107 DEBUG - 2018-06-06 04:19:30 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:19:30 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:19:30 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:19:30 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:19:30 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:19:30 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:19:31 --> Total execution time: 0.6724 DEBUG - 2018-06-06 04:19:34 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:19:34 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:19:34 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:19:34 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:19:34 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:19:34 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:19:35 --> Total execution time: 0.5983 DEBUG - 2018-06-06 04:19:58 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:19:58 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:19:58 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:19:58 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:19:58 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:19:58 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:19:59 --> Total execution time: 0.5821 DEBUG - 2018-06-06 04:20:03 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:20:03 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:20:03 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:20:03 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:20:03 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:20:03 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:20:03 --> Total execution time: 0.2846 DEBUG - 2018-06-06 04:20:24 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:20:25 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:20:25 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:20:25 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:20:25 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:20:25 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:20:25 --> Total execution time: 0.6705 DEBUG - 2018-06-06 04:20:35 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:20:35 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:20:35 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:20:35 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:20:35 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:20:35 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:20:36 --> Total execution time: 0.6859 DEBUG - 2018-06-06 04:20:43 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:20:43 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:20:43 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:20:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:20:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:20:43 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:20:44 --> Total execution time: 0.6831 DEBUG - 2018-06-06 04:20:48 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:20:48 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:20:48 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:20:48 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:20:48 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:20:48 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:20:48 --> Total execution time: 0.4681 DEBUG - 2018-06-06 04:20:54 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:20:54 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:20:54 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:20:54 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:20:54 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:20:54 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:20:55 --> Total execution time: 0.5780 DEBUG - 2018-06-06 04:21:01 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:21:01 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:21:01 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:21:01 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:21:01 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:21:01 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:21:01 --> Total execution time: 0.2668 DEBUG - 2018-06-06 04:21:11 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:21:11 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:21:11 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:21:11 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:21:11 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:21:11 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:21:11 --> Total execution time: 0.5822 DEBUG - 2018-06-06 04:21:19 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:21:19 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:21:19 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:21:19 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:21:19 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:21:19 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:21:19 --> Total execution time: 0.3933 DEBUG - 2018-06-06 04:21:29 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:21:29 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:21:29 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:21:29 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:21:29 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:21:29 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:21:29 --> Total execution time: 0.4608 DEBUG - 2018-06-06 04:21:51 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:21:51 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:21:51 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:21:51 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:21:51 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:21:51 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:21:51 --> Total execution time: 0.5577 DEBUG - 2018-06-06 04:22:03 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:22:03 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:22:03 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:22:03 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:22:03 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:22:03 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:22:03 --> Total execution time: 0.2806 DEBUG - 2018-06-06 04:23:15 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:23:15 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:23:15 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:23:15 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:23:15 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:23:15 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:23:15 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:23:15 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:23:15 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:23:15 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:23:15 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:23:15 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:23:15 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:23:15 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:23:15 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:23:15 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:23:15 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:23:15 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:23:16 --> Total execution time: 0.6211 DEBUG - 2018-06-06 04:23:30 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:23:30 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:23:30 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:23:30 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:23:30 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:23:30 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:23:30 --> Total execution time: 0.2894 DEBUG - 2018-06-06 04:25:37 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:25:37 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:25:37 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:25:37 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:25:37 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:25:37 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:25:37 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:25:37 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:25:37 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:25:37 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:25:37 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:25:37 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:25:46 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:25:46 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:25:46 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:25:46 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:25:46 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:25:46 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:25:46 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:25:46 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:25:47 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:25:47 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:25:47 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:25:47 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:25:47 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:25:47 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:25:47 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:25:47 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:25:47 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:25:47 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:25:47 --> Total execution time: 0.5826 DEBUG - 2018-06-06 04:25:51 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:25:51 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:25:51 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:25:51 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:25:52 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:25:52 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:25:52 --> Total execution time: 0.2735 DEBUG - 2018-06-06 04:25:58 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:25:58 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:25:59 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:25:59 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:25:59 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:25:59 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:25:59 --> Total execution time: 0.4991 DEBUG - 2018-06-06 04:26:15 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:26:15 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:26:15 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:26:15 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:26:15 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:26:15 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:26:15 --> Total execution time: 0.2643 DEBUG - 2018-06-06 04:33:00 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:33:00 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:33:00 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:33:00 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:33:00 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:33:00 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:33:00 --> Total execution time: 0.5110 DEBUG - 2018-06-06 04:33:28 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:33:28 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:33:28 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:33:28 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:33:28 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:33:28 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:33:29 --> Total execution time: 0.5793 DEBUG - 2018-06-06 04:33:40 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:33:40 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:33:40 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:33:40 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:33:41 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:33:41 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:33:52 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:33:52 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:33:52 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:33:52 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:33:52 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:33:52 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:33:52 --> Total execution time: 0.2732 DEBUG - 2018-06-06 04:33:57 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:33:57 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:33:57 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:33:57 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:33:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:33:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:33:57 --> Total execution time: 0.1661 DEBUG - 2018-06-06 04:33:58 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:33:58 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:33:58 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:33:58 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:33:58 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:33:58 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:33:58 --> Total execution time: 0.1576 DEBUG - 2018-06-06 04:34:00 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:34:00 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:34:00 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:34:00 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:34:00 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:34:00 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:34:00 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:34:00 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:34:00 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:34:00 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:34:00 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:34:00 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:34:01 --> Total execution time: 0.6811 DEBUG - 2018-06-06 04:34:03 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:34:03 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:34:03 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:34:03 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:34:03 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:34:03 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:34:03 --> Total execution time: 0.4518 DEBUG - 2018-06-06 04:34:09 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:34:09 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:34:09 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:34:09 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:34:09 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:34:09 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:34:10 --> Total execution time: 0.6127 DEBUG - 2018-06-06 04:34:11 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:34:11 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:34:11 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:34:11 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:34:11 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:34:11 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:34:11 --> Total execution time: 0.2638 DEBUG - 2018-06-06 04:34:18 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:34:18 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:34:18 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:34:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:34:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:34:18 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:34:18 --> Total execution time: 0.6087 DEBUG - 2018-06-06 04:38:16 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:38:16 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:38:16 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:38:16 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:38:16 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:38:16 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:38:17 --> Total execution time: 0.6060 DEBUG - 2018-06-06 04:38:17 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:38:17 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:38:17 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:38:17 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:38:17 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:38:17 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:38:32 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:38:32 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:38:32 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:38:32 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:38:32 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:38:32 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:38:32 --> Total execution time: 0.4773 DEBUG - 2018-06-06 04:38:35 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:38:35 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:38:35 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:38:35 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:38:35 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:38:35 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:38:36 --> Total execution time: 0.7182 DEBUG - 2018-06-06 04:38:40 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:38:40 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:38:40 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:38:40 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:38:41 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:38:41 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:38:41 --> Total execution time: 0.5933 DEBUG - 2018-06-06 04:38:42 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:38:43 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:38:43 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:38:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:38:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:38:43 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:38:43 --> Total execution time: 0.4530 DEBUG - 2018-06-06 04:38:45 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:38:45 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:38:45 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:38:45 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:38:45 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:38:45 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:38:45 --> Total execution time: 0.2267 DEBUG - 2018-06-06 04:39:10 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:39:10 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:39:10 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:39:10 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:39:10 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:39:10 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:39:10 --> Total execution time: 0.4632 DEBUG - 2018-06-06 04:40:20 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:40:20 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:40:20 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:40:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:40:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:40:20 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:40:20 --> Total execution time: 0.2457 DEBUG - 2018-06-06 04:40:22 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:40:22 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:40:22 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:40:22 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:40:22 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:40:22 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:40:22 --> Total execution time: 0.4828 DEBUG - 2018-06-06 04:40:25 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:40:25 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:40:25 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:40:25 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:40:26 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:40:26 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:40:26 --> Total execution time: 0.7215 DEBUG - 2018-06-06 04:41:06 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:41:06 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:41:06 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:41:06 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:41:06 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:41:06 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:41:06 --> Total execution time: 0.4609 DEBUG - 2018-06-06 04:41:13 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:41:13 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:41:13 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:41:13 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:41:13 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:41:13 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:41:13 --> Total execution time: 0.2317 DEBUG - 2018-06-06 04:41:46 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:41:46 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:41:46 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:41:47 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:41:47 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:41:47 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:41:47 --> Total execution time: 0.5271 DEBUG - 2018-06-06 04:41:56 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:41:56 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:41:56 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:41:56 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:41:56 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:41:56 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:41:56 --> Total execution time: 0.7119 DEBUG - 2018-06-06 04:42:06 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:42:06 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:42:06 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:42:06 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:42:06 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:42:06 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:42:07 --> Total execution time: 0.5424 DEBUG - 2018-06-06 04:42:12 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:42:12 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:42:12 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:42:12 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:42:12 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:42:12 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:42:12 --> Total execution time: 0.2808 DEBUG - 2018-06-06 04:44:52 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:44:52 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:44:52 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:44:52 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:44:52 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:44:52 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:44:53 --> Total execution time: 0.5835 DEBUG - 2018-06-06 04:45:26 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:45:26 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:45:26 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:45:26 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:45:26 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:45:26 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:45:26 --> Total execution time: 0.5485 DEBUG - 2018-06-06 04:45:27 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:45:27 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:45:27 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:45:28 --> Form_validation class already loaded. Second attempt ignored. ERROR - 2018-06-06 04:45:28 --> 404 Page Not Found: DEBUG - 2018-06-06 04:46:15 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:46:15 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:46:15 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:46:15 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:46:15 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:46:15 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:46:15 --> Total execution time: 0.2551 DEBUG - 2018-06-06 04:46:16 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:46:16 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:46:17 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:46:17 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:46:17 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:46:17 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:46:17 --> Total execution time: 0.2946 DEBUG - 2018-06-06 04:46:27 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:46:27 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:46:27 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:46:28 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:46:28 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:46:28 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:46:28 --> Total execution time: 0.2521 DEBUG - 2018-06-06 04:46:56 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:46:56 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:46:56 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:46:56 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:46:56 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:46:56 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:46:56 --> Total execution time: 0.2988 DEBUG - 2018-06-06 04:47:54 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:47:54 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:47:54 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:47:54 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:47:55 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:47:55 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:47:55 --> Total execution time: 0.1918 DEBUG - 2018-06-06 04:47:55 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:47:55 --> Global POST, GET and COOKIE data sanitized ERROR - 2018-06-06 04:47:55 --> 404 Page Not Found: Images/favicon.png DEBUG - 2018-06-06 04:47:59 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:47:59 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:47:59 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:47:59 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:47:59 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:47:59 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:47:59 --> Total execution time: 0.3021 DEBUG - 2018-06-06 04:48:04 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:48:04 --> No URI present. Default controller set. DEBUG - 2018-06-06 04:48:04 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:48:05 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:48:05 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:48:05 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:48:05 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:48:05 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:48:05 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:48:05 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:48:05 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:48:05 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:48:05 --> Total execution time: 0.7194 DEBUG - 2018-06-06 04:48:06 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:48:06 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:48:06 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:48:06 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:48:06 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:48:06 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:48:10 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:48:10 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:48:10 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:48:10 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:48:10 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:48:10 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:48:11 --> Total execution time: 0.3245 DEBUG - 2018-06-06 04:48:18 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:48:18 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:48:18 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:48:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:48:19 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:48:19 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:48:19 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:48:19 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:48:19 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:48:19 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:48:19 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:48:19 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:48:19 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:48:19 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:48:19 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:48:19 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:48:19 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:48:19 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:48:19 --> Total execution time: 0.5272 DEBUG - 2018-06-06 04:49:11 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:49:11 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:49:12 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:49:12 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:49:12 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:49:12 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:49:12 --> Total execution time: 0.3293 DEBUG - 2018-06-06 04:49:20 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:49:20 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:49:20 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:49:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:49:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:49:20 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:49:20 --> Total execution time: 0.5531 DEBUG - 2018-06-06 04:49:22 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:49:22 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:49:22 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:49:22 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:49:22 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:49:22 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:49:22 --> Total execution time: 0.2522 DEBUG - 2018-06-06 04:49:39 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:49:39 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:49:39 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:49:39 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:49:39 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:49:39 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:49:39 --> Total execution time: 0.3024 DEBUG - 2018-06-06 04:50:04 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:50:04 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:50:04 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:50:04 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:50:04 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:50:04 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:50:04 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:50:04 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:50:04 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:50:04 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:50:04 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:50:04 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:50:04 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:50:04 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:50:04 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:50:05 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:50:05 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:50:05 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:50:05 --> Total execution time: 0.5636 DEBUG - 2018-06-06 04:50:11 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:50:11 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:50:11 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:50:11 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:50:12 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:50:12 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:50:12 --> Total execution time: 0.3052 DEBUG - 2018-06-06 04:50:45 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:50:45 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:50:45 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:50:45 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:50:45 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:50:45 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:50:45 --> Total execution time: 0.3118 DEBUG - 2018-06-06 04:50:48 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:50:48 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:50:48 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:50:48 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:50:48 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:50:48 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:50:49 --> Total execution time: 0.5332 DEBUG - 2018-06-06 04:51:31 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:51:31 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:51:32 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:51:32 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:51:32 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:51:32 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:51:32 --> Total execution time: 0.8385 DEBUG - 2018-06-06 04:51:36 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:51:36 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:51:36 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:51:36 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:51:36 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:51:36 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:51:36 --> Total execution time: 0.4775 DEBUG - 2018-06-06 04:51:43 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:51:43 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:51:43 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:51:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:51:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:51:43 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:51:44 --> Total execution time: 0.6291 DEBUG - 2018-06-06 04:51:47 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:51:47 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:51:47 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:51:48 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:51:48 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:51:48 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:51:48 --> Total execution time: 0.4884 DEBUG - 2018-06-06 04:51:51 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:51:51 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:51:51 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:51:51 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:51:51 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:51:51 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:51:51 --> Total execution time: 0.2759 DEBUG - 2018-06-06 04:51:57 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:51:57 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:51:57 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:51:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:51:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:51:57 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:52:02 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:52:02 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:52:02 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:52:02 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:02 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:02 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:52:03 --> Total execution time: 0.3101 DEBUG - 2018-06-06 04:52:06 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:52:06 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:52:06 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:52:06 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:06 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:06 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:52:08 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:52:08 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:52:08 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:52:09 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:09 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:09 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:52:09 --> Total execution time: 0.4696 DEBUG - 2018-06-06 04:52:18 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:52:18 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:52:18 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:52:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:18 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:52:18 --> Total execution time: 0.2950 DEBUG - 2018-06-06 04:52:27 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:52:27 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:52:27 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:52:27 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:27 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:27 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:52:28 --> Total execution time: 0.5370 DEBUG - 2018-06-06 04:52:31 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:52:31 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:52:31 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:52:31 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:31 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:31 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:52:31 --> Total execution time: 0.3156 DEBUG - 2018-06-06 04:52:40 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:52:40 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:52:40 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:52:40 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:40 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:40 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:52:40 --> Total execution time: 0.5721 DEBUG - 2018-06-06 04:52:40 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:52:40 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:52:40 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:52:40 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:40 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:40 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:52:41 --> Total execution time: 0.4611 DEBUG - 2018-06-06 04:52:42 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:52:42 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:52:42 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:52:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:43 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:52:43 --> Total execution time: 0.6706 DEBUG - 2018-06-06 04:52:48 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:52:48 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:52:49 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:52:49 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:49 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:49 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:52:49 --> Total execution time: 0.5474 DEBUG - 2018-06-06 04:52:52 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:52:52 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:52:52 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:52:52 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:52 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:52 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:52:52 --> Total execution time: 0.2920 DEBUG - 2018-06-06 04:52:56 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:52:56 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:52:56 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:52:56 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:56 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:52:56 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:52:56 --> Total execution time: 0.3167 DEBUG - 2018-06-06 04:53:02 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:53:02 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:53:02 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:53:02 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:02 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:02 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:53:02 --> Total execution time: 0.2549 DEBUG - 2018-06-06 04:53:09 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:53:09 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:53:09 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:53:10 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:10 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:10 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:53:10 --> Total execution time: 0.5758 DEBUG - 2018-06-06 04:53:18 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:53:18 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:53:18 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:53:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:19 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:53:19 --> Total execution time: 0.4770 DEBUG - 2018-06-06 04:53:20 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:53:20 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:53:20 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:53:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:20 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:53:20 --> Total execution time: 0.6208 DEBUG - 2018-06-06 04:53:22 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:53:22 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:53:22 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:53:23 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:23 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:23 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:53:23 --> Total execution time: 0.3045 DEBUG - 2018-06-06 04:53:25 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:53:25 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:53:25 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:53:25 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:25 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:25 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:53:25 --> Total execution time: 0.4682 DEBUG - 2018-06-06 04:53:27 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:53:27 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:53:27 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:53:27 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:27 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:27 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:53:27 --> Total execution time: 0.4890 DEBUG - 2018-06-06 04:53:28 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:53:28 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:53:28 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:53:28 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:28 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:28 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:53:28 --> Total execution time: 0.2494 DEBUG - 2018-06-06 04:53:32 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:53:32 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:53:32 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:53:32 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:32 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:32 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:53:32 --> Total execution time: 0.4955 DEBUG - 2018-06-06 04:53:36 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:53:36 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:53:36 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:53:36 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:36 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:36 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:53:36 --> Total execution time: 0.5861 DEBUG - 2018-06-06 04:53:41 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:53:41 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:53:41 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:53:41 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:41 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:41 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:53:41 --> Total execution time: 0.2971 DEBUG - 2018-06-06 04:53:43 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:53:43 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:53:43 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:53:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:43 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:53:44 --> Total execution time: 0.6018 DEBUG - 2018-06-06 04:53:45 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:53:45 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:53:45 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:53:45 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:45 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:45 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:53:46 --> Total execution time: 0.5679 DEBUG - 2018-06-06 04:53:47 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:53:47 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:53:47 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:53:47 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:47 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:53:47 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:53:47 --> Total execution time: 0.2811 DEBUG - 2018-06-06 04:54:18 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:54:18 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:54:18 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:54:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:18 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:54:19 --> Total execution time: 0.7456 DEBUG - 2018-06-06 04:54:19 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:54:20 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:54:20 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:54:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:20 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:54:20 --> Total execution time: 0.7284 DEBUG - 2018-06-06 04:54:23 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:54:23 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:54:24 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:54:24 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:24 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:24 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:54:24 --> Total execution time: 0.2680 DEBUG - 2018-06-06 04:54:28 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:54:28 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:54:28 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:54:29 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:29 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:29 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:54:29 --> Total execution time: 0.6251 DEBUG - 2018-06-06 04:54:32 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:54:32 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:54:32 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:54:33 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:33 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:33 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:54:33 --> Total execution time: 0.5969 DEBUG - 2018-06-06 04:54:35 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:54:35 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:54:35 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:54:35 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:35 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:35 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:54:35 --> Total execution time: 0.5181 DEBUG - 2018-06-06 04:54:42 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:54:42 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:54:42 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:54:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:43 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:54:43 --> Total execution time: 0.2853 DEBUG - 2018-06-06 04:54:53 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:54:53 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:54:53 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:54:53 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:53 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:54:53 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:54:53 --> Total execution time: 0.3119 DEBUG - 2018-06-06 04:55:17 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:55:17 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:55:17 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:55:17 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:55:17 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:55:17 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:55:18 --> Total execution time: 0.5272 DEBUG - 2018-06-06 04:55:46 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:55:46 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:55:46 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:55:46 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:55:46 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:55:46 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:55:46 --> Total execution time: 0.2559 DEBUG - 2018-06-06 04:56:22 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:56:22 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:56:22 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:56:22 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:56:22 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:56:22 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:56:22 --> Total execution time: 0.2946 DEBUG - 2018-06-06 04:56:30 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:56:30 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:56:30 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:56:30 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:56:30 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:56:30 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:56:30 --> Total execution time: 0.3189 DEBUG - 2018-06-06 04:56:44 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:56:44 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:56:44 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:56:44 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:56:44 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:56:44 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:56:44 --> Total execution time: 0.3024 DEBUG - 2018-06-06 04:56:55 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:56:55 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:56:55 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:56:55 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:56:55 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:56:55 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:56:55 --> Total execution time: 0.3372 DEBUG - 2018-06-06 04:57:50 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:57:50 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:57:50 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:57:50 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:57:50 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:57:50 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:57:51 --> Total execution time: 0.6858 DEBUG - 2018-06-06 04:57:57 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:57:57 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:57:57 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:57:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:57:57 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:57:57 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:57:58 --> Total execution time: 0.5807 DEBUG - 2018-06-06 04:58:00 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:58:00 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:58:00 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:58:00 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:00 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:00 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:58:01 --> Total execution time: 0.7760 DEBUG - 2018-06-06 04:58:09 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:58:09 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:58:09 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:58:09 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:09 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:10 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:58:10 --> Total execution time: 0.7363 DEBUG - 2018-06-06 04:58:12 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:58:12 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:58:12 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:58:12 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:12 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:12 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:58:12 --> Total execution time: 0.2910 DEBUG - 2018-06-06 04:58:17 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:58:17 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:58:17 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:58:17 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:17 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:17 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:58:18 --> Total execution time: 0.5936 DEBUG - 2018-06-06 04:58:20 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:58:20 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:58:20 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:58:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:20 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:58:21 --> Total execution time: 0.7616 DEBUG - 2018-06-06 04:58:41 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:58:41 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:58:41 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:58:41 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:41 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:41 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:58:42 --> Total execution time: 0.5799 DEBUG - 2018-06-06 04:58:45 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:58:45 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:58:45 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:58:45 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:45 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:45 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:58:45 --> Total execution time: 0.2825 DEBUG - 2018-06-06 04:58:46 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:58:47 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:58:47 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:58:47 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:47 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:58:47 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:58:47 --> Total execution time: 0.6219 DEBUG - 2018-06-06 04:59:08 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:59:08 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:59:08 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:59:08 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:59:08 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:59:08 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:59:08 --> Total execution time: 0.3268 DEBUG - 2018-06-06 04:59:12 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:59:12 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:59:12 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:59:12 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:59:12 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:59:12 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:59:12 --> Total execution time: 0.3077 DEBUG - 2018-06-06 04:59:15 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:59:15 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:59:16 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:59:16 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:59:16 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:59:16 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:59:16 --> Total execution time: 0.3014 DEBUG - 2018-06-06 04:59:17 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:59:17 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:59:17 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:59:17 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:59:17 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:59:17 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:59:18 --> Total execution time: 0.4943 DEBUG - 2018-06-06 04:59:19 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:59:19 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:59:19 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:59:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:59:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:59:20 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:59:20 --> Total execution time: 0.6353 DEBUG - 2018-06-06 04:59:23 --> UTF-8 Support Enabled DEBUG - 2018-06-06 04:59:23 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 04:59:23 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 04:59:23 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:59:23 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 04:59:23 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 04:59:23 --> Total execution time: 0.3033 DEBUG - 2018-06-06 05:00:08 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:00:08 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:00:08 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:00:08 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:08 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:08 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:00:09 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:00:09 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:00:09 --> Total execution time: 0.7529 DEBUG - 2018-06-06 05:00:09 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:00:09 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:09 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:09 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:00:09 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:00:09 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:00:09 --> Total execution time: 0.8703 DEBUG - 2018-06-06 05:00:10 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:00:10 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:10 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:10 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:00:10 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:00:10 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:00:10 --> Total execution time: 0.9580 DEBUG - 2018-06-06 05:00:10 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:00:10 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:10 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:10 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:00:10 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:00:10 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:00:11 --> Total execution time: 1.0609 DEBUG - 2018-06-06 05:00:11 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:00:11 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:11 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:11 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:00:11 --> Total execution time: 0.9780 DEBUG - 2018-06-06 05:00:18 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:00:18 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:00:18 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:00:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:18 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:18 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:00:18 --> Total execution time: 0.3467 DEBUG - 2018-06-06 05:00:38 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:00:38 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:00:38 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:00:38 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:38 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:38 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:00:38 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:00:38 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:00:38 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:00:38 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:38 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:38 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:00:38 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:00:38 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:00:38 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:00:38 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:38 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:38 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:00:39 --> Total execution time: 0.5140 DEBUG - 2018-06-06 05:00:43 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:00:43 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:00:43 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:00:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:43 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:00:43 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:00:44 --> Total execution time: 0.2692 DEBUG - 2018-06-06 05:01:04 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:01:04 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:01:04 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:01:04 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:01:04 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:01:04 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:01:04 --> Total execution time: 0.2723 DEBUG - 2018-06-06 05:01:19 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:01:19 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:01:19 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:01:19 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:01:19 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:01:19 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:01:19 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:01:19 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:01:19 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:01:19 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:01:19 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:01:19 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:01:20 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:01:20 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:01:20 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:01:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:01:20 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:01:20 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:01:20 --> Total execution time: 0.5516 DEBUG - 2018-06-06 05:01:34 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:01:34 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:01:34 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:01:34 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:01:34 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:01:34 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:01:35 --> Total execution time: 0.7380 DEBUG - 2018-06-06 05:01:39 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:01:39 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:01:39 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:01:39 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:01:39 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:01:39 --> Config file loaded: C:\xampp\htdocs\application\config/grocery_crud.php DEBUG - 2018-06-06 05:01:39 --> Total execution time: 0.5152 DEBUG - 2018-06-06 05:01:48 --> UTF-8 Support Enabled DEBUG - 2018-06-06 05:01:48 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 05:01:48 --> Encryption: Auto-configured driver 'openssl'. DEBUG - 2018-06-06 05:01:48 --> Form_validation class already loaded. Second attempt ignored. DEBUG - 2018-06-06 05:01:48
49,797
https://github.com/project-smartlog/smartlog-client/blob/master/src/main/java/oasis/names/specification/ubl/schema/xsd/commonaggregatecomponents_2/QualificationResolutionType.java
Github Open Source
Open Source
Apache-2.0
null
smartlog-client
project-smartlog
Java
Code
1,013
5,058
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017.11.17 at 03:30:58 PM EET // package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2; import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.*; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; import java.util.ArrayList; import java.util.List; /** * * * <pre> * &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; * &lt;ccts:ComponentType&gt;ABIE&lt;/ccts:ComponentType&gt; * &lt;ccts:DictionaryEntryName&gt;Qualification Resolution. Details&lt;/ccts:DictionaryEntryName&gt; * &lt;ccts:Definition&gt;A class to describe the acceptance or rejection of an economic operator in a tendering process.&lt;/ccts:Definition&gt; * &lt;ccts:ObjectClass&gt;Qualification Resolution&lt;/ccts:ObjectClass&gt; * &lt;/ccts:Component&gt; * </pre> * * * * <p>Java class for QualificationResolutionType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="QualificationResolutionType"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}AdmissionCode"/> * &lt;element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ExclusionReason" maxOccurs="unbounded" minOccurs="0"/> * &lt;element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Resolution" maxOccurs="unbounded" minOccurs="0"/> * &lt;element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ResolutionDate"/> * &lt;element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ResolutionTime" minOccurs="0"/> * &lt;element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}ProcurementProjectLot" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "QualificationResolutionType", propOrder = { "admissionCode", "exclusionReason", "resolution", "resolutionDate", "resolutionTime", "procurementProjectLot" }) public class QualificationResolutionType { @XmlElement(name = "AdmissionCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true) protected AdmissionCodeType admissionCode; @XmlElement(name = "ExclusionReason", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected List<ExclusionReasonType> exclusionReason; @XmlElement(name = "Resolution", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected List<ResolutionType> resolution; @XmlElement(name = "ResolutionDate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true) protected ResolutionDateType resolutionDate; @XmlElement(name = "ResolutionTime", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected ResolutionTimeType resolutionTime; @XmlElement(name = "ProcurementProjectLot") protected ProcurementProjectLotType procurementProjectLot; /** * * * <pre> * &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; * &lt;ccts:ComponentType&gt;BBIE&lt;/ccts:ComponentType&gt; * &lt;ccts:DictionaryEntryName&gt;Qualification Resolution. Admission Code. Code&lt;/ccts:DictionaryEntryName&gt; * &lt;ccts:Definition&gt;An indicator that the economic operator has been accepted into the tendering process (true) or rejected from the tendering process (false).&lt;/ccts:Definition&gt; * &lt;ccts:Cardinality&gt;1&lt;/ccts:Cardinality&gt; * &lt;ccts:ObjectClass&gt;Qualification Resolution&lt;/ccts:ObjectClass&gt; * &lt;ccts:PropertyTerm&gt;Admission Code&lt;/ccts:PropertyTerm&gt; * &lt;ccts:RepresentationTerm&gt;Code&lt;/ccts:RepresentationTerm&gt; * &lt;ccts:DataType&gt;Code. Type&lt;/ccts:DataType&gt; * &lt;/ccts:Component&gt; * </pre> * * * * @return * possible object is * {@link AdmissionCodeType } * */ public AdmissionCodeType getAdmissionCode() { return admissionCode; } /** * Sets the value of the admissionCode property. * * @param value * allowed object is * {@link AdmissionCodeType } * */ public void setAdmissionCode(AdmissionCodeType value) { this.admissionCode = value; } /** * * * <pre> * &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; * &lt;ccts:ComponentType&gt;BBIE&lt;/ccts:ComponentType&gt; * &lt;ccts:DictionaryEntryName&gt;Qualification Resolution. Exclusion Reason. Text&lt;/ccts:DictionaryEntryName&gt; * &lt;ccts:Definition&gt;Text describing a reason for an exclusion from the tendering process.&lt;/ccts:Definition&gt; * &lt;ccts:Cardinality&gt;0..n&lt;/ccts:Cardinality&gt; * &lt;ccts:ObjectClass&gt;Qualification Resolution&lt;/ccts:ObjectClass&gt; * &lt;ccts:PropertyTerm&gt;Exclusion Reason&lt;/ccts:PropertyTerm&gt; * &lt;ccts:RepresentationTerm&gt;Text&lt;/ccts:RepresentationTerm&gt; * &lt;ccts:DataType&gt;Text. Type&lt;/ccts:DataType&gt; * &lt;/ccts:Component&gt; * </pre> * * Gets the value of the exclusionReason property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the exclusionReason property. * * <p> * For example, to add a new item, do as follows: * <pre> * getExclusionReason().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ExclusionReasonType } * * */ public List<ExclusionReasonType> getExclusionReason() { if (exclusionReason == null) { exclusionReason = new ArrayList<ExclusionReasonType>(); } return this.exclusionReason; } /** * * * <pre> * &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; * &lt;ccts:ComponentType&gt;BBIE&lt;/ccts:ComponentType&gt; * &lt;ccts:DictionaryEntryName&gt;Qualification Resolution. Resolution. Text&lt;/ccts:DictionaryEntryName&gt; * &lt;ccts:Definition&gt;Text describing this qualification resolution.&lt;/ccts:Definition&gt; * &lt;ccts:Cardinality&gt;0..n&lt;/ccts:Cardinality&gt; * &lt;ccts:ObjectClass&gt;Qualification Resolution&lt;/ccts:ObjectClass&gt; * &lt;ccts:PropertyTerm&gt;Resolution&lt;/ccts:PropertyTerm&gt; * &lt;ccts:RepresentationTerm&gt;Text&lt;/ccts:RepresentationTerm&gt; * &lt;ccts:DataType&gt;Text. Type&lt;/ccts:DataType&gt; * &lt;/ccts:Component&gt; * </pre> * * Gets the value of the resolution property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the resolution property. * * <p> * For example, to add a new item, do as follows: * <pre> * getResolution().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ResolutionType } * * */ public List<ResolutionType> getResolution() { if (resolution == null) { resolution = new ArrayList<ResolutionType>(); } return this.resolution; } /** * * * <pre> * &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; * &lt;ccts:ComponentType&gt;BBIE&lt;/ccts:ComponentType&gt; * &lt;ccts:DictionaryEntryName&gt;Qualification Resolution. Resolution Date. Date&lt;/ccts:DictionaryEntryName&gt; * &lt;ccts:Definition&gt;The date on which this qualification resolution was formalized.&lt;/ccts:Definition&gt; * &lt;ccts:Cardinality&gt;1&lt;/ccts:Cardinality&gt; * &lt;ccts:ObjectClass&gt;Qualification Resolution&lt;/ccts:ObjectClass&gt; * &lt;ccts:PropertyTerm&gt;Resolution Date&lt;/ccts:PropertyTerm&gt; * &lt;ccts:RepresentationTerm&gt;Date&lt;/ccts:RepresentationTerm&gt; * &lt;ccts:DataType&gt;Date. Type&lt;/ccts:DataType&gt; * &lt;/ccts:Component&gt; * </pre> * * * * @return * possible object is * {@link ResolutionDateType } * */ public ResolutionDateType getResolutionDate() { return resolutionDate; } /** * Sets the value of the resolutionDate property. * * @param value * allowed object is * {@link ResolutionDateType } * */ public void setResolutionDate(ResolutionDateType value) { this.resolutionDate = value; } /** * * * <pre> * &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; * &lt;ccts:ComponentType&gt;BBIE&lt;/ccts:ComponentType&gt; * &lt;ccts:DictionaryEntryName&gt;Qualification Resolution. Resolution Time. Time&lt;/ccts:DictionaryEntryName&gt; * &lt;ccts:Definition&gt;The time at which this qualification resolution was formalized.&lt;/ccts:Definition&gt; * &lt;ccts:Cardinality&gt;0..1&lt;/ccts:Cardinality&gt; * &lt;ccts:ObjectClass&gt;Qualification Resolution&lt;/ccts:ObjectClass&gt; * &lt;ccts:PropertyTerm&gt;Resolution Time&lt;/ccts:PropertyTerm&gt; * &lt;ccts:RepresentationTerm&gt;Time&lt;/ccts:RepresentationTerm&gt; * &lt;ccts:DataType&gt;Time. Type&lt;/ccts:DataType&gt; * &lt;/ccts:Component&gt; * </pre> * * * * @return * possible object is * {@link ResolutionTimeType } * */ public ResolutionTimeType getResolutionTime() { return resolutionTime; } /** * Sets the value of the resolutionTime property. * * @param value * allowed object is * {@link ResolutionTimeType } * */ public void setResolutionTime(ResolutionTimeType value) { this.resolutionTime = value; } /** * * * <pre> * &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; * &lt;ccts:ComponentType&gt;ASBIE&lt;/ccts:ComponentType&gt; * &lt;ccts:DictionaryEntryName&gt;Qualification Resolution. Procurement Project Lot&lt;/ccts:DictionaryEntryName&gt; * &lt;ccts:Definition&gt;The Procurement project lot to which this tenderer is accepted or rejected.&lt;/ccts:Definition&gt; * &lt;ccts:Cardinality&gt;0..1&lt;/ccts:Cardinality&gt; * &lt;ccts:ObjectClass&gt;Qualification Resolution&lt;/ccts:ObjectClass&gt; * &lt;ccts:PropertyTerm&gt;Procurement Project Lot&lt;/ccts:PropertyTerm&gt; * &lt;ccts:AssociatedObjectClass&gt;Procurement Project Lot&lt;/ccts:AssociatedObjectClass&gt; * &lt;ccts:RepresentationTerm&gt;Procurement Project Lot&lt;/ccts:RepresentationTerm&gt; * &lt;/ccts:Component&gt; * </pre> * * * * @return * possible object is * {@link ProcurementProjectLotType } * */ public ProcurementProjectLotType getProcurementProjectLot() { return procurementProjectLot; } /** * Sets the value of the procurementProjectLot property. * * @param value * allowed object is * {@link ProcurementProjectLotType } * */ public void setProcurementProjectLot(ProcurementProjectLotType value) { this.procurementProjectLot = value; } }
30,815
https://github.com/rusty1s/hyper-happy-hacking/blob/master/view/.gitignore
Github Open Source
Open Source
MIT
2,017
hyper-happy-hacking
rusty1s
Ignore List
Code
5
26
/node_modules /coverage /build .DS_Store npm-debug.log*
6,619
https://github.com/cezarykluczynski/stapi/blob/master/etl/src/test/groovy/com/cezarykluczynski/stapi/etl/technology/creation/configuration/TechnologyCreationConfigurationTest.groovy
Github Open Source
Open Source
MIT
2,023
stapi
cezarykluczynski
Groovy
Code
135
695
package com.cezarykluczynski.stapi.etl.technology.creation.configuration import com.cezarykluczynski.stapi.etl.common.configuration.AbstractCreationConfigurationTest import com.cezarykluczynski.stapi.etl.configuration.job.service.StepCompletenessDecider import com.cezarykluczynski.stapi.etl.technology.creation.processor.TechnologyReader import com.cezarykluczynski.stapi.etl.util.constant.CategoryTitles import com.cezarykluczynski.stapi.etl.util.constant.JobName import com.cezarykluczynski.stapi.etl.util.constant.StepName import com.cezarykluczynski.stapi.etl.mediawiki.api.CategoryApi import com.cezarykluczynski.stapi.etl.mediawiki.api.enums.MediaWikiSource class TechnologyCreationConfigurationTest extends AbstractCreationConfigurationTest { private static final String TITLE_TECHNOLOGY = 'TITLE_TECHNOLOGY' private CategoryApi categoryApiMock private StepCompletenessDecider jobCompletenessDeciderMock private TechnologyCreationConfiguration technologyCreationConfiguration void setup() { categoryApiMock = Mock() jobCompletenessDeciderMock = Mock() technologyCreationConfiguration = new TechnologyCreationConfiguration( categoryApi: categoryApiMock, stepCompletenessDecider: jobCompletenessDeciderMock) } @SuppressWarnings('LineLength') void "TechnologyReader is created is created with all pages when step is not completed"() { when: TechnologyReader technologyReader = technologyCreationConfiguration.technologyReader() List<String> categoryHeaderTitleList = pageHeaderReaderToList(technologyReader) then: 1 * jobCompletenessDeciderMock.isStepComplete(JobName.JOB_CREATE, StepName.CREATE_TECHNOLOGY) >> false 1 * categoryApiMock.getPages(CategoryTitles.TECHNOLOGY, MediaWikiSource.MEMORY_ALPHA_EN) >> createListWithPageHeaderTitle(TITLE_TECHNOLOGY) 0 * _ categoryHeaderTitleList.contains TITLE_TECHNOLOGY } void "TechnologyReader is created with no pages when step is completed"() { when: TechnologyReader technologyReader = technologyCreationConfiguration.technologyReader() List<String> categoryHeaderTitleList = pageHeaderReaderToList(technologyReader) then: 1 * jobCompletenessDeciderMock.isStepComplete(JobName.JOB_CREATE, StepName.CREATE_TECHNOLOGY) >> true 0 * _ categoryHeaderTitleList.empty } }
26,100
https://github.com/apache/etch/blob/master/binding-c/runtime/c/src/main/common/etch_thread.c
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,021
etch
apache
C
Code
3,023
9,047
/* $Id$ * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version * 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * etchthread.c * threads, thread pool */ #include "etch_thread.h" #include "etch_log.h" #include "etch_objecttypes.h" #include "etch_mem.h" const char* LOG_CATEGORY = "etch_thread"; extern apr_pool_t* g_etch_main_pool; extern apr_thread_mutex_t* g_etch_main_pool_mutex; // TODO: refactoring this stuff etch_threadpool* global_free_threadpool; size_t etch_get_threadid(void* threadstruct); int default_on_threadstart(void* param); int default_on_threadexit (void* param); int destroy_thread (void*); int etch_thread_start(void*); int etch_thread_stop(void*); int destroy_threadparams(etch_thread*); etch_mutex* loglock; // remove ?? unsigned short etch_threadpool_id_farm; unsigned thread_id_farm; etch_mutex* loglock; // remove ?? #ifdef APR_POOL_DEBUG APR_DECLARE(apr_size_t) apr_pool_num_bytes(apr_pool_t *p, int recurse); #endif typedef struct os_thread_and_etch_thread { apr_os_thread_t* os_thread; etch_thread* etch_thread; } os_thread_and_etch_thread; int etch_thread_find_by_os_thread(void* data, void* to_find) { apr_os_thread_t* os_thread_to_find = (apr_os_thread_t*)to_find; os_thread_and_etch_thread* both = (os_thread_and_etch_thread*)data; return both->os_thread == os_thread_to_find; } /** * etch_apr_threadproc() * internal thread proc. this is a wrapper around the user thread proc. * @param data expected to point at an etch_thread_params, which contains the * thread start amd stop handlers, and the real threadproc and threadproc data. */ static void* APR_THREAD_FUNC etch_apr_threadproc(apr_thread_t *thread, void *data) { etch_status_t status = ETCH_SUCCESS; etch_thread_params* params = (etch_thread_params*) data; etch_thread_callback on_exit; etch_thread* threadobj; if(!params) return (void*)(-1); on_exit = params->on_exit; threadobj = params->etchobj; if (threadobj && threadobj->waiter) /* wait for signal to start */ { status = etch_wait_wait(threadobj->waiter, 1); if(status != ETCH_SUCCESS) { // erro } /* fyi we can't destroy the waiter here since etchwait_signal * holds etchwait.mutex and will try to release it. * destroy_etchwait (threadobj->waiter); no! * threadobj->waiter = NULL; */ } params->threadstate = ETCH_THREADSTATE_STARTED; if (params->on_start) /* call threadproc start hook */ params->on_start(threadobj); if (params->threadproc) /* run user threadproc */ params->threadproc(params); params->threadstate = ETCH_THREADSTATE_STOPPED; if (on_exit) /* call threadproc exit hook */ on_exit(threadobj); apr_thread_exit(thread, APR_SUCCESS); return 0; } /** * new_thread() * etch_thread constructor */ etch_thread* new_thread (etch_threadproc proc, void* tdata) { etch_status_t status = ETCH_SUCCESS; etch_thread_params* tp = NULL; apr_pool_t* newsubpool = NULL; etch_thread* newthread = NULL; /* size_t poolsize = apr_pool_num_bytes(get_etch_aprpool(), FALSE); */ newthread = (etch_thread*) new_object (sizeof(etch_thread), ETCHTYPEB_THREAD, CLASSID_THREAD); ((etch_object*)newthread)->destroy = destroy_thread; ((etch_object*)newthread)->clone = clone_null; tp = &newthread->params; etch_init_threadparams(tp); tp->etchobj = newthread; tp->libdata = &newthread->aprdata; tp->on_start = default_on_threadstart; tp->on_exit = default_on_threadexit; tp->etch_thread_id = next_etch_threadid(); tp->threadproc = proc; tp->data = tdata; newthread->start = etch_thread_start; newthread->stop = etch_thread_stop; // TODO: pool status = etch_wait_create(&newthread->waiter, NULL); if(status != ETCH_SUCCESS) { // error log it } newthread->startCond = 0; //newthread->waiter->cond_var = &newthread->startCond; if (0 != etch_createthread(tp)) { etch_wait_destroy(newthread->waiter); etch_free(newthread); newthread = NULL; //printf("2 destroying apr pool %p\n",newsubpool); apr_pool_destroy(newsubpool); } return newthread; } /** * etch_createthread() * to invoke: 1) initalize an etch_apr_threaddata with the mempool; * 2) initialize an etch_thread_params with threadproc plus the etch_apr_threaddata, * plus the thread user data. * 2) call with the threaddata, and the userdata. */ int etch_createthread(etch_thread_params* params) { int result = 0; apr_status_t aprstatus; if (!params->on_start) params->on_start = default_on_threadstart; if (!params->on_exit) params->on_exit = default_on_threadexit; /* fyi: this sets thread.aprdata.threadattr */ // TODO: pool apr_thread_mutex_lock(g_etch_main_pool_mutex); result = (APR_SUCCESS == apr_threadattr_create(&params->libdata->threadattr, g_etch_main_pool))? 0: -1; apr_thread_mutex_unlock(g_etch_main_pool_mutex); if (result == 0) { // TODO: pool apr_thread_mutex_lock(g_etch_main_pool_mutex); aprstatus = apr_thread_create(&params->libdata->thread, params->libdata->threadattr, etch_apr_threadproc, params, g_etch_main_pool); apr_thread_mutex_unlock(g_etch_main_pool_mutex); if (aprstatus != APR_SUCCESS) { char buffer[512]; apr_strerror(aprstatus, buffer, 512); ETCH_LOG(LOG_CATEGORY, ETCH_LOG_ERROR, "thread create error error-code: %d error-msg: %s\n", aprstatus, buffer); } } return result; } int find_etch_thread_by_os_thread(void* listentry, void* apr_os_thread) { os_thread_and_etch_thread* pair = (os_thread_and_etch_thread*) listentry; return pair->os_thread == apr_os_thread; } /** * destroy_thread() * etch_thread destructor */ int destroy_thread(void* data) { etch_thread* threadx = (etch_thread*)data; if (!is_etchobj_static_content(threadx)) { if (threadx->waiter) { etch_wait_destroy(threadx->waiter); } } return destroy_objectex((etch_object*)threadx); } /** * destroy_threadparams() * free memory for any heap parameters passed to an etch_thread. */ int destroy_threadparams(etch_thread* thisx) { etch_thread_params* params = &thisx->params; void* userdata = params->data; if (params->waitobj) etch_wait_destroy(params->waitobj); if (params->is_own_data) if (params->is_data_etchobject) ((etch_object*)userdata)->destroy(userdata); else etch_free(userdata); return 0; } /** * etch_init_threadparams() */ void etch_init_threadparams(etch_thread_params* p) { if (NULL == p) return; memset(p, 0, sizeof(etch_thread_params)); p->signature = ETCH_THREAD_PARAMS_SIGNATURE; } /** * etch_thread_start() * default thread start method for etch_threads which wait for a start signal */ int etch_thread_start(void* data) { etch_thread* threadx = (etch_thread*)data; etch_status_t status = ETCH_SUCCESS; int result = -1; const int thread_id = threadx->params.etch_thread_id; ETCH_LOG(LOG_CATEGORY, ETCH_LOG_DEBUG, "thread %d starting ...\n", thread_id); if (threadx->waiter) { status = etch_wait_set(threadx->waiter, 1); // log error } /* etch_tcpsvr_acceptproc: while(lxr->is_started) was not seeing the started * flag set, because the thread had not received control after the above signal. * so this sleep forces it to run, the visual indication of the accept thread * running being the "accepting ..." log message. TODO lose the sleep(). * NOTE that by the time this thread regains control, its connection may * have been closed, or the started thread may possibly even have exited. */ etch_sleep(30); /* see comments above */ /* there is currently no pressing need to log this info, * and since it may indeed be stale, we'll not present it for now. */ #if(0) threadstate = is_etch_thread(threadx)? threadx->params.threadstate: ETCH_THREADSTATE_DEFUNCT; switch(threadstate) { case ETCH_THREADSTATE_STARTED: ETCH_LOG(LOG_CATEGORY, ETCH_LOG_DEBUG, "thread %d started\n", thread_id); break; case ETCH_THREADSTATE_STOPPED: ETCH_LOG(LOG_CATEGORY, ETCH_LOG_DEBUG, "thread %d stopped\n", thread_id); break; case ETCH_THREADSTATE_DEFUNCT: ETCH_LOG(LOG_CATEGORY, ETCH_LOG_DEBUG, "thread %d was started now destroyed\n", thread_id); break; default: ETCH_LOG(LOG_CATEGORY, ETCH_LOG_DEBUG, "thread %d state %d\n", thread_id, threadstate); } #endif return result; } /** * etch_thread_stop() * default etch_thread thread stop method. * currently never invoked. causes serious grief. */ int etch_thread_stop(void* data) { etch_thread* thread = (etch_thread*)data; apr_status_t tresult = 0; etch_thread_params* p = thread? &thread->params: NULL; if (NULL == p) return -1; tresult = apr_thread_detach(p->libdata->thread); tresult = apr_thread_exit(p->libdata->thread, 0); return APR_SUCCESS == tresult? 0: -1; } int etch_thread_current_id() { #if defined(WIN32) return GetCurrentThreadId(); #elif defined(__QNX__) || defined(__LINUX__) || defined(__APPLE__) #warning not implemented for this os return 0; #else #error OS no support #endif //int tid = -1; //void* p = NULL; //apr_os_thread_t thread_t = apr_os_thread_current(); //apr_os_threadkey_t threadkey_t; //apr_os_threadkey_get(&threadkey_t, ); //p = thread_t; ////tid = p; //printf("%p", p); //tid = *(int*)p; return 0; } /** * etch_threadpool_run_freethread() * instantiate and possibly run a free thread. */ etch_thread* etch_threadpool_run_freethread (etch_threadpool* pool, etch_threadproc threadproc, void* threaddata) { etch_thread* newthread = NULL; if (!pool || pool->is_defunct) return NULL; /* create thread in a wait state. it may be started below. */ if (NULL == (newthread = new_thread (threadproc, threaddata))) return NULL; newthread->params.etchpool = pool; newthread->params.is_own_data = pool->is_free_data; newthread->params.is_data_etchobject = pool->is_data_etchobject; etch_arraylist_add(pool->threadlist, newthread); /* an etch_thread object in the threadpool gets freed when a thread exits, * finds its threadpool, and removes itself from that pool's threadlist. */ ETCH_LOG(LOG_CATEGORY, ETCH_LOG_DEBUG, "thread %d created on pool %d\n", newthread->params.etch_thread_id, pool->threadpool_id); if (!pool->is_manual_start) /* start thread unless requested otherwise */ newthread->start(newthread); return newthread; } /** * etch_threadpool_run_poolthread() * run a thread from a queued pool. */ etch_thread* etch_threadpool_run_poolthread (etch_threadpool* pool, etch_threadproc threadproc, void* threaddata) { if (!pool || pool->is_defunct) return NULL; return NULL; /* we have not yet implemented or integrated a queued thread pool */ } /** * thread_cancel() * cancel a running thread */ int etch_thread_cancel(etch_thread* thread) { thread->params.threadstate = ETCH_THREADSTATE_STOPPING; etch_join(thread); return 0; } /** * etch_join() * block until specified thread exits */ int etch_join(etch_thread* thread) { int result = 0; etch_thread_params* tp = NULL; apr_status_t tresult = 0; /* result returned from dead thread */ if(thread == NULL) return -1; tp = &thread->params; thread->is_joined = TRUE; /* mark to avoid on_exit destruction */ result = apr_thread_join (&tresult, tp->libdata->thread); return result; } /** * etch_thread_join() * block until specified thread exits */ int etch_thread_join(etch_thread_params* params) { apr_status_t tresult = 0; /* result returned from dead thread */ const int result = apr_thread_join(&tresult, params->libdata->thread); return result; } /** * etch_thread_yield() */ void etch_thread_yield() { apr_thread_yield(); } /** * etch_thread_arraylist_comparator() * arraylist comparator function to compare a specified thread ID * with the ID of a specified etch_thread */ int etch_thread_arraylist_comparator (void* id, void* etchobj) { const int this_id = (int) (size_t) id; const int that_id = ((etch_thread*) etchobj)->params.etch_thread_id; return this_id < that_id? -1: this_id > that_id? 1: 0; } /** * threadpool_removeentry() * remove a thread from a thread pool, not destroying the etch_thread content. * @return the removed etch_thread object. */ etch_thread* threadpool_remove_entry (etch_threadpool* pool, const int etch_thread_id) { etch_status_t status = ETCH_SUCCESS; int result = -1, i = 0; etch_thread* outthread = NULL; ETCH_ASSERT(is_etch_threadpool(pool)); if (pool->is_defunct) return NULL; status = etch_mutex_lock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } i = etch_arraylist_indexof (pool->threadlist, (void*) (size_t) etch_thread_id, 0, etch_thread_arraylist_comparator); if (i >= 0) { outthread = etch_arraylist_get (pool->threadlist, i); result = etch_arraylist_remove (pool->threadlist, i, FALSE); } status = etch_mutex_unlock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } return 0 == result? outthread: NULL; } /** * threadpool_remove() * remove a thread from a thread pool, destroying the etch_thread object. * this should not be invoked by thread pool destructor, since is_defunct is then true. */ int threadpool_remove(etch_threadpool* pool, const int etch_thread_id) { etch_status_t status = ETCH_SUCCESS; int result = 0; ETCH_ASSERT(is_etch_threadpool(pool)); if (pool->is_defunct) return -1; status = etch_mutex_lock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } result = etch_arraylist_remove_content (pool->threadlist, (void*) (size_t) etch_thread_id, 0, etch_thread_arraylist_comparator); status = etch_mutex_unlock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } return result; } /** * threadpool_waitfor_all() * block until all threads in the pool exit. * @param is_cancel if true, signal the thread to exit asap, * otherwise wait for normal thread exit. */ int threadpool_waitfor_all(etch_threadpool* pool, const int is_cancel) { etch_status_t status = ETCH_SUCCESS; etch_iterator iterator; etch_arraylist* listcopy = NULL; int threadcount = 0, is_iterable = 0; if (NULL == pool) return -1; status = etch_mutex_lock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } if ((threadcount = pool->count(pool)) > 0 && !pool->is_iterating) pool->is_iterating = is_iterable = TRUE; status = etch_mutex_unlock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } if (threadcount == 0) return 0; /* no active threads to wait for */ if (!is_iterable) return -1; /* another thread is iterating this pool */ /* iterate a copy since canceled threads remove themselves from their pool */ /* note that iterating the actual pool may however be preferable if the * locking is done right, since if a thread ahead of the index exits * during this iteration, it would presumably then not show up here. */ status = etch_mutex_lock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } listcopy = new_etch_arraylist_from(pool->threadlist); status = etch_mutex_unlock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } listcopy->is_readonly = TRUE; /* so destructor will not free copied content */ set_iterator(&iterator, listcopy, &listcopy->iterable); /* note that if pool.is_defunct is true, exiting threads which belong to * that pool will not remove themselves from the pool and self-destruct. * so, if is_defunct is true, threads exiting while we are iterating here * will not be destroyed. the threadpool destructor destroy_threadpool() * sets is_defunct. however if threadpool_waitforall() is invoked elsewhere, * care must be taken to ensure that pool threads do not exit while we * are iterating them here. */ while(iterator.has_next(&iterator)) /* wait for each pool thread to exit */ { etch_thread* thisthread = (etch_thread*) iterator.current_value; etch_thread* removedthread = NULL; if (thisthread) { const int thread_id = thisthread->params.etch_thread_id; char x[60]; apr_snprintf(x, sizeof(x), "thread %d in pool %d", thread_id, pool->threadpool_id); if (is_cancel) { ETCH_LOG(LOG_CATEGORY, ETCH_LOG_DEBUG, "canceling %s ...\n", x); etch_thread_cancel (thisthread); /* BLOCK here */ } else { ETCH_LOG(LOG_CATEGORY, ETCH_LOG_XDEBUG, "joining %s ...\n", x); etch_join (thisthread); /* BLOCK here */ } ETCH_LOG(LOG_CATEGORY, ETCH_LOG_DEBUG, "%s ended\n", x); status = etch_mutex_lock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } if (pool->pooltype == ETCH_THREADPOOLTYPE_FREE) { removedthread = threadpool_remove_entry (pool, thread_id); etch_object_destroy (thisthread); } status = etch_mutex_unlock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } } iterator.next(&iterator); } pool->is_iterating = FALSE; etch_object_destroy(listcopy); /* readonly set above so no content destroyed */ return 0; } /** * destroy_threadpool() * etch_threadpool destructor. * @todo add logic for queued pool, or create separate destructor. */ int destroy_threadpool(void* data) { etch_threadpool* pool = (etch_threadpool*)data; etch_status_t status = ETCH_SUCCESS; int can_destroy = TRUE; if (NULL == pool) return 0; status = etch_mutex_lock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } if (pool->is_defunct) /* ensure no race */ can_destroy = FALSE; else pool->is_defunct = TRUE; status = etch_mutex_unlock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } if (!can_destroy) return -1; threadpool_waitfor_all (pool, TRUE); /* BLOCK until all threads exited */ /* destroy the threadlist, destroying the etch_thread content in the process. * note that each thread's parameter list was destroyed as the thread exited. * threadlist owns the mutex assigned to it and will destroy threadlist_lock. */ if (!is_etchobj_static_content(pool)) { etch_object_destroy(pool->threadlist); status = etch_mutex_destroy(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } } return destroy_objectex((etch_object*)pool); } /** * threadpool_count() * return count of threads in list */ int threadpool_count(etch_threadpool* pool) { etch_status_t status = ETCH_SUCCESS; int count = 0; ETCH_ASSERT(pool); status = etch_mutex_lock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } count = pool->threadlist? pool->threadlist->count: 0; status = etch_mutex_unlock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } return count; } /** * threadpool_thread() * return thread[i] from specified threadpool. * @param i the index. * @return the etch_thread*, or null if no thread at that index. */ etch_thread* threadpool_thread(etch_threadpool* pool, const int i) { etch_status_t status = ETCH_SUCCESS; etch_thread* thisthread = NULL; if (NULL == pool) return NULL; status = etch_mutex_lock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } thisthread = i < pool->count(pool)? pool->threadlist->base[i]: NULL; status = etch_mutex_unlock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } return thisthread; } /** * new_threadpool_list() * return an arraylist configured appropriately for a thread pool. */ etch_arraylist* new_threadpool_list(const int initsize, etch_mutex* mutex) { //TODO: Check if arraylist has to be synchronized etch_arraylist* list = new_etch_arraylist(initsize,0); /* ETCHARRAYLIST_CONTENT_OBJECT lets list call destroy() on its content */ list->content_type = ETCHARRAYLIST_CONTENT_OBJECT; list->is_readonly = TRUE; /* list does not own content */ ((etch_object*)list)->synclock = mutex; /* list owns this mutex */ return list; } /** * new_threadpool() * etch_threadpool constructor * @param pooltype ETCH_THREADPOOLTYPE_FREE (default); ETCH_THREADPOOLTYPE_QUEUED * @param initsize initial number of threads, ignored for ETCH_THREADPOOLTYPE_FREE. */ etch_threadpool* new_threadpool(const unsigned pooltype, const int initsize) { etch_status_t status = ETCH_SUCCESS; etch_threadpool* pool = (etch_threadpool*) new_object (sizeof(etch_threadpool), ETCHTYPEB_THREADPOOL, CLASSID_THREADPOOL); ((etch_object*)pool)->destroy = destroy_threadpool; ((etch_object*)pool)->clone = clone_null; pool->count = threadpool_count; pool->run = pooltype == ETCH_THREADPOOLTYPE_QUEUED? etch_threadpool_run_poolthread : etch_threadpool_run_freethread; // TODO: pool status = etch_mutex_create(&pool->pool_lock, ETCH_MUTEX_NESTED, NULL); if(status != ETCH_SUCCESS) { // error } // TODO: pool status = etch_mutex_create(&pool->threadlist_lock, ETCH_MUTEX_NESTED, NULL); if(status != ETCH_SUCCESS) { // error } pool->threadlist = new_threadpool_list(initsize, pool->threadlist_lock); pool->is_free_data = TRUE; pool->is_data_etchobject = FALSE; pool->threadpool_id = ++etch_threadpool_id_farm; return pool; } /** * etch_glopool_exit() * wait on all threads in global pool to exit, destroy global pool. */ int etch_glopool_exit() { destroy_threadpool(global_free_threadpool); global_free_threadpool = NULL; return 0; } /** * global_pool() * return singleton global free thread pool */ etch_threadpool* etch_glopool() { if (global_free_threadpool == NULL) global_free_threadpool = new_threadpool(ETCH_THREADPOOLTYPE_FREE, 0); return global_free_threadpool; } /** * global_pool() * return singleton global free thread pool * todo destroy this pool somewhere */ etch_threadpool* global_pool() { if (global_free_threadpool == NULL) global_free_threadpool = new_threadpool(ETCH_THREADPOOLTYPE_FREE, 0); return global_free_threadpool; } /** * getter for APR thread id * seems to be wrong - the ID is the same for each thread */ size_t etch_get_threadid (void* threadstruct) { /* can't address apr_thread_t content so we remap part of apr_thread_t */ struct x { void* mempool; void* threadid; }; return threadstruct? (size_t) ((struct x*)threadstruct)->threadid: 0; } /** * next_etch_threadid() * get a sequential ID we use to key threads */ unsigned int next_etch_threadid() { do { apr_atomic_inc32((volatile apr_uint32_t*) &thread_id_farm); } while(thread_id_farm == 0); return thread_id_farm; } /** * default_on_threadstart() * default thread start callback. * the argument passed to start and exit callbacks is the etch_thread* */ int default_on_threadstart(void* param) { int thread_id = 0; etch_thread* threadx = (etch_thread*) param; etch_thread_params* p = threadx? &threadx->params: 0; if (p) thread_id = p->etch_thread_id; ETCH_ASSERT(thread_id); ETCH_LOG(LOG_CATEGORY, ETCH_LOG_DEBUG, "thread %d enter\n", thread_id); return 0; } /** * default_on_threadexit() * default thread exit callback. * the argument passed to start and exit callbacks is the etch_thread* */ int default_on_threadexit(void* param) { etch_status_t status = ETCH_SUCCESS; etch_thread* thisthread = (etch_thread*) param; etch_thread* removedthread = NULL; etch_threadpool* pool = NULL; etch_thread_params* p; int thread_id = 0; ETCH_ASSERT(thisthread); ETCH_ASSERT(is_etch_thread(thisthread)); p = &thisthread->params; thread_id = p->etch_thread_id; pool = p->etchpool; /* we remove the thread from its threadpool if a free pool, and unless the * pool is being destroyed, and unless the pool is otherwise being iterated * elswhere - we can't destroy a thread that another thread has joined, for * instance, the joiner will do that once unblocked. and we do not remove a * pool entry if we are currently iterating the pool. */ if (pool && !pool->is_defunct) { const int is_freethread = (pool->pooltype == ETCH_THREADPOOLTYPE_FREE); char x[40]; sprintf(x, "thread %d from pool %d", thread_id, pool->threadpool_id); ETCH_LOG(LOG_CATEGORY, ETCH_LOG_XDEBUG, "removing %s ...\n", x); status = etch_mutex_lock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } /* todo dispose of thread elsewhere when is_iterating is true */ removedthread = threadpool_remove_entry (pool, thread_id); if (NULL == removedthread) /* occasionally observed while in debugger */ ETCH_LOG(LOG_CATEGORY, ETCH_LOG_WARN, "%s was previously removed\n", x); else if (removedthread != thisthread) /* condition never observed to date */ ETCH_LOG(LOG_CATEGORY, ETCH_LOG_ERROR, "%s removed unexpectedly\n", x); else { /* if either the pool is configured to free threads on exit, * or this is a free pool that we are not currently iterating over ... */ if (!removedthread->is_joined && is_freethread && (pool->is_free_threads || !pool->is_iterating)) { etch_object_destroy(removedthread); ETCH_LOG(LOG_CATEGORY, ETCH_LOG_XDEBUG, "%s removed and destroyed\n", x); } else ETCH_LOG(LOG_CATEGORY, ETCH_LOG_XDEBUG, "%s removed\n", x); } status = etch_mutex_unlock(pool->pool_lock); if(status != ETCH_SUCCESS) { // error } } else destroy_threadparams(thisthread); /* we always destroy the thread's caller-allocated parameter memory, but we * do not however destroy the etch_thread wrapper when the thread is not in * a threadpool. memory for non-pool threads is managed by caller. */ ETCH_LOG(LOG_CATEGORY, ETCH_LOG_DEBUG, "thread %d exit\n", thread_id); return 0; } /** * etch_sleep() * interface to OS sleep in milliseconds */ void etch_sleep(const int ms) { apr_sleep(ms * 1000); }
9,827
https://github.com/LSFLK/copper/blob/master/copper-server/service_images/groupoffice-6.3.66/groupoffice-6.3.66-php-70/modules/groups/UsersGrid.js
Github Open Source
Open Source
Apache-2.0
2,021
copper
LSFLK
JavaScript
Code
172
718
/** * Copyright Intermesh * * This file is part of Group-Office. You should have received a copy of the * Group-Office license along with Group-Office. See the file /LICENSE.TXT * * If you have questions write an e-mail to info@intermesh.nl * * @version $Id: UsersGrid.js 22112 2018-01-12 07:59:41Z mschering $ * @copyright Copyright Intermesh * @author Wesley Smits <wsmits@intermesh.nl> */ GO.groups.UsersGrid = Ext.extend(GO.grid.GridPanel,{ changed : false, initComponent : function(){ this.userStore = new GO.data.JsonStore({ url: GO.url("groups/group/getUsers"), baseParams: {id: 0}, root: 'results', id: 'id', fields: ['id', 'user_id', 'name', 'username', 'email'], remoteSort: true }); Ext.apply(this,{ standardTbar:true, store: this.userStore, border: false, paging:true, view:new Ext.grid.GridView({ autoFill: true, forceFit: true, emptyText: t("No items to display") }), cm:new Ext.grid.ColumnModel({ defaults:{ sortable:true }, columns:[ {header: t("Name"), dataIndex: 'name'}, {header: t("Username"), dataIndex: 'username'}, {header: t("E-mail"), dataIndex: 'email'} ] }) }); GO.groups.UsersGrid.superclass.initComponent.call(this); }, setGroupId : function(group_id){ this.userStore.baseParams.id=group_id; this.userStore.load(); this.setDisabled(!group_id); }, btnAdd : function(){ if(!this.addUsersDialog) { this.addUsersDialog = new GO.dialog.SelectUsers({ handler:function(allUserGrid) { if(allUserGrid.selModel.selections.keys.length>0) { this.userStore.baseParams['add_users']=Ext.encode(allUserGrid.selModel.selections.keys); this.userStore.load(); delete this.userStore.baseParams['add_users']; } }, scope:this }); } this.addUsersDialog.show(); }, deleteSelected : function(){ GO.groups.UsersGrid.superclass.deleteSelected.call(this); this.changed=true; } });
211
https://github.com/centrifuge/go-substrate-rpc-client/blob/master/registry/retriever/extrinsic_retriever_live_test.go
Github Open Source
Open Source
Apache-2.0
2,023
go-substrate-rpc-client
centrifuge
Go
Code
486
2,126
//go:build live package retriever import ( "errors" "log" "os" "strconv" "sync" "testing" "time" gsrpc "github.com/centrifuge/go-substrate-rpc-client/v4" "github.com/centrifuge/go-substrate-rpc-client/v4/registry" "github.com/centrifuge/go-substrate-rpc-client/v4/registry/exec" "github.com/centrifuge/go-substrate-rpc-client/v4/registry/parser" "github.com/centrifuge/go-substrate-rpc-client/v4/rpc/chain/generic" "github.com/centrifuge/go-substrate-rpc-client/v4/scale" "github.com/centrifuge/go-substrate-rpc-client/v4/types" ) var ( extTestChains = []testFnProvider{ &testChain[ types.MultiAddress, types.MultiSignature, generic.DefaultPaymentFields, ]{ url: "wss://fullnode.parachain.centrifuge.io", }, &testChain[ types.MultiAddress, types.MultiSignature, generic.DefaultPaymentFields, ]{ url: "wss://rpc.polkadot.io", }, &testChain[ types.MultiAddress, types.MultiSignature, generic.PaymentFieldsWithAssetID, ]{ url: "wss://statemint-rpc.polkadot.io", }, &testChain[ types.MultiAddress, AcalaMultiSignature, generic.DefaultPaymentFields, ]{ url: "wss://acala-rpc-0.aca-api.network", }, &testChain[ [20]byte, [65]byte, generic.DefaultPaymentFields, ]{ url: "wss://wss.api.moonbeam.network", }, } ) func TestLive_ExtrinsicRetriever_GetExtrinsics(t *testing.T) { t.Parallel() var wg sync.WaitGroup extrinsicsThreshold, err := strconv.Atoi(os.Getenv("GSRPC_LIVE_TEST_EXTRINSICS_THRESHOLD")) if err != nil { extrinsicsThreshold = 50 log.Printf("Env Var GSRPC_LIVE_TEST_EXTRINSICS_THRESHOLD not set, defaulting to %d", extrinsicsThreshold) } for _, c := range extTestChains { c := c wg.Add(1) go c.GetTestFn()(&wg, extrinsicsThreshold) } wg.Wait() } type testFn func(wg *sync.WaitGroup, extrinsicsThreshold int) type testFnProvider interface { GetTestFn() testFn } type testChain[ A any, S any, P any, ] struct { url string } func (t *testChain[A, S, P]) GetTestFn() testFn { return func(wg *sync.WaitGroup, extrinsicsThreshold int) { defer wg.Done() testURL := t.url api, err := gsrpc.NewSubstrateAPI(testURL) if err != nil { log.Printf("Couldn't connect to '%s': %s\n", testURL, err) return } chain := generic.NewChain[A, S, P, *generic.SignedBlock[A, S, P]](api.Client) extrinsicParser := parser.NewExtrinsicParser[A, S, P]() registryFactory := registry.NewFactory() chainExecutor := exec.NewRetryableExecutor[*generic.SignedBlock[A, S, P]](exec.WithRetryTimeout(1 * time.Second)) extrinsicParsingExecutor := exec.NewRetryableExecutor[[]*parser.Extrinsic[A, S, P]](exec.WithMaxRetryCount(1)) extrinsicRetriever, err := NewExtrinsicRetriever[A, S, P]( extrinsicParser, chain, api.RPC.State, registryFactory, chainExecutor, extrinsicParsingExecutor, ) if err != nil { log.Printf("Couldn't create extrinsic retriever: %s", err) return } header, err := api.RPC.Chain.GetHeaderLatest() if err != nil { log.Printf("Couldn't get latest header for '%s': %s\n", testURL, err) return } extrinsicsCount := 0 for { blockHash, err := api.RPC.Chain.GetBlockHash(uint64(header.Number)) if err != nil { log.Printf("Couldn't retrieve blockHash for '%s', block number %d: %s\n", testURL, header.Number, err) return } extrinsics, err := extrinsicRetriever.GetExtrinsics(blockHash) if err != nil { log.Printf("Couldn't retrieve extrinsics for '%s', block number %d: %s\n", testURL, header.Number, err) } log.Printf("Found %d extrinsics for '%s', at block number %d.\n", len(extrinsics), testURL, header.Number) extrinsicsCount += len(extrinsics) if extrinsicsCount >= extrinsicsThreshold { log.Printf("Retrieved a total of %d extrinsics for '%s', last block number %d. Stopping now.\n", extrinsicsCount, testURL, header.Number) return } header, err = api.RPC.Chain.GetHeader(header.ParentHash) if err != nil { log.Printf("Couldn't retrieve header for block number '%d' for '%s': %s\n", header.Number, testURL, err) return } } } } type AcalaMultiSignature struct { IsEd25519 bool AsEd25519 types.Signature IsSr25519 bool AsSr25519 types.Signature IsEcdsa bool AsEcdsa types.EcdsaSignature IsEthereum bool AsEthereum [65]byte IsEip1559 bool AsEip1559 [65]byte IsAcalaEip712 bool AsAcalaEip712 [65]byte } func (m *AcalaMultiSignature) Decode(decoder scale.Decoder) error { b, err := decoder.ReadOneByte() if err != nil { return err } switch b { case 0: m.IsEd25519 = true err = decoder.Decode(&m.AsEd25519) case 1: m.IsSr25519 = true err = decoder.Decode(&m.AsSr25519) case 2: m.IsEcdsa = true err = decoder.Decode(&m.AsEcdsa) case 3: m.IsEthereum = true err = decoder.Decode(&m.AsEthereum) case 4: m.IsEip1559 = true err = decoder.Decode(&m.AsEip1559) case 5: m.IsAcalaEip712 = true err = decoder.Decode(&m.AsAcalaEip712) default: return errors.New("signature not supported") } if err != nil { return err } return nil }
25,513
https://github.com/vnigade/pytorch-YOLOv4/blob/master/convert_darknet2pytorch.py
Github Open Source
Open Source
Apache-2.0
null
pytorch-YOLOv4
vnigade
Python
Code
150
630
import argparse from tool.darknet2pytorch import Darknet import torch import os FRAME_SIZES = [64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 480, 512, 544, 576, 608, 640] def parse_opts(): parser = argparse.ArgumentParser(description='Convert darknet model to pytorch', formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--no_cuda', action='store_true', help='If true, cuda is not used.') parser.set_defaults(no_cuda=False) parser.add_argument('--weights_file', type=str, default='weights/yolov4.weights', help='YOLOv4 weights file to load') parser.add_argument('--model_config_dir', type=str, default='cfg/', help='Model config directory') parser.add_argument('--dst_dir', type=str, default="pytorch_models/", help='Destination directory to save pytorch models') args = parser.parse_args() args_dict = args.__dict__ print('{:-^100}'.format('Configurations')) for key in args_dict.keys(): print("- {}: {}".format(key, args_dict[key])) print('{:-^100}'.format('')) return args def convert(opts, frame_size): cfg_file_path = opts.model_config_dir + \ "/yolov4_" + str(frame_size) + ".cfg" model = Darknet(cfg_file_path, inference=True) model.print_network() model.load_weights(opts.weights_file) if not opts.no_cuda: model = model.eval().cuda() state_dict = model.state_dict() states = { "frame_size": frame_size, "state_dict": state_dict } save_file_path = os.path.join( opts.dst_dir, 'yolov4_{}.pth'.format(frame_size)) torch.save(states, save_file_path) if __name__ == "__main__": opts = parse_opts() for frame_size in FRAME_SIZES: convert(opts, frame_size) # convert(opts, "1280_704")
32,608
https://github.com/morristech/HttpUtilForAndroid/blob/master/app/src/main/java/com/hss01248/netdemo/SplashActy.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,018
HttpUtilForAndroid
morristech
Java
Code
76
391
package com.hss01248.netdemo; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.View; import android.widget.Button; import com.hss01248.netdemo.akulaku.AkulakuActy; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; /** * Created by huangshuisheng on 2017/9/29. */ public class SplashActy extends Activity { @BindView(R.id.button_qxinli) Button buttonQxinli; @BindView(R.id.button4_akulaku) Button button4Akulaku; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.acty_splash); ButterKnife.bind(this); } @OnClick({R.id.button_qxinli, R.id.button4_akulaku}) public void onViewClicked(View view) { switch (view.getId()) { case R.id.button_qxinli: startActivity(new Intent(this,MainActivityNew.class)); break; case R.id.button4_akulaku: startActivity(new Intent(this,AkulakuActy.class)); break; } } }
19,262
https://github.com/bhamail/liftwizard/blob/master/liftwizard-reladomo/liftwizard-reladomo-operation-grammar/src/main/java/io/liftwizard/model/reladomo/operation/listener/ReladomoOperationThrowingListener.java
Github Open Source
Open Source
Apache-2.0
2,020
liftwizard
bhamail
Java
Code
2,042
8,723
/* * Copyright 2020 Craig Motlin * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package io.liftwizard.model.reladomo.operation.listener; import io.liftwizard.model.reladomo.operation.ReladomoOperationListener; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.AttributeContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.AttributeNameContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.BinaryOperatorContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.BooleanListLiteralContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.BooleanLiteralContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.CharacterListLiteralContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.CharacterLiteralContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.ClassNameContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.CompilationUnitContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.EqualsEdgePointContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.ExistsOperatorContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.FloatingPointListLiteralContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.FloatingPointLiteralContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.FunctionAbsoluteValueContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.FunctionDayOfMonthContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.FunctionMonthContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.FunctionToLowerCaseContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.FunctionToSubstringContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.FunctionUnknownContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.FunctionYearContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.IntegerListLiteralContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.IntegerLiteralContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.NavigationContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperationAllContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperationAndContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperationBinaryOperatorContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperationExistenceContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperationGroupContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperationNoneContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperationOrContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperationUnaryOperatorContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorContainsContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorEndsWithContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorEqContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorExistsContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorGreaterThanContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorGreaterThanEqualsContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorInContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorIsNotNullContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorIsNullContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorLessThanContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorLessThanEqualsContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorNotContainsContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorNotEndsWithContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorNotEqContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorNotExistsContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorNotInContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorNotStartsWithContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorStartsWithContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorWildCardEqualsContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorWildCardInContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.OperatorWildCardNotEqualsContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.ParameterContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.RelationshipNameContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.SimpleAttributeContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.StringListLiteralContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.StringLiteralContext; import io.liftwizard.model.reladomo.operation.ReladomoOperationParser.UnaryOperatorContext; import org.antlr.v4.runtime.ParserRuleContext; import org.antlr.v4.runtime.tree.ErrorNode; import org.antlr.v4.runtime.tree.TerminalNode; // Deliberately not abstract // Implements every method of ReladomoOperationListener by throwing public class ReladomoOperationThrowingListener implements ReladomoOperationListener { @Override public void enterCompilationUnit(CompilationUnitContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterCompilationUnit() not implemented yet"); } @Override public void exitCompilationUnit(CompilationUnitContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitCompilationUnit() not implemented yet"); } @Override public void enterOperationGroup(OperationGroupContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperationGroup() not implemented yet"); } @Override public void exitOperationGroup(OperationGroupContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperationGroup() not implemented yet"); } @Override public void enterOperationAnd(OperationAndContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperationAnd() not implemented yet"); } @Override public void exitOperationAnd(OperationAndContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperationAnd() not implemented yet"); } @Override public void enterOperationNone(OperationNoneContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperationNone() not implemented yet"); } @Override public void exitOperationNone(OperationNoneContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperationNone() not implemented yet"); } @Override public void enterOperationUnaryOperator(OperationUnaryOperatorContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperationUnaryOperator() not implemented yet"); } @Override public void exitOperationUnaryOperator(OperationUnaryOperatorContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperationUnaryOperator() not implemented yet"); } @Override public void enterOperationExistence(OperationExistenceContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperationExistence() not implemented yet"); } @Override public void exitOperationExistence(OperationExistenceContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperationExistence() not implemented yet"); } @Override public void enterOperationBinaryOperator(OperationBinaryOperatorContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperationBinaryOperator() not implemented yet"); } @Override public void exitOperationBinaryOperator(OperationBinaryOperatorContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperationBinaryOperator() not implemented yet"); } @Override public void enterOperationAll(OperationAllContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperationAll() not implemented yet"); } @Override public void exitOperationAll(OperationAllContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperationAll() not implemented yet"); } @Override public void enterOperationOr(OperationOrContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperationOr() not implemented yet"); } @Override public void exitOperationOr(OperationOrContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperationOr() not implemented yet"); } @Override public void enterAttribute(AttributeContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterAttribute() not implemented yet"); } @Override public void exitAttribute(AttributeContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitAttribute() not implemented yet"); } @Override public void enterSimpleAttribute(SimpleAttributeContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterSimpleAttribute() not implemented yet"); } @Override public void exitSimpleAttribute(SimpleAttributeContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitSimpleAttribute() not implemented yet"); } @Override public void enterNavigation(NavigationContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterNavigation() not implemented yet"); } @Override public void exitNavigation(NavigationContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitNavigation() not implemented yet"); } @Override public void enterFunctionToLowerCase(FunctionToLowerCaseContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterFunctionToLowerCase() not implemented yet"); } @Override public void exitFunctionToLowerCase(FunctionToLowerCaseContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitFunctionToLowerCase() not implemented yet"); } @Override public void enterFunctionToSubstring(FunctionToSubstringContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterFunctionToSubstring() not implemented yet"); } @Override public void exitFunctionToSubstring(FunctionToSubstringContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitFunctionToSubstring() not implemented yet"); } @Override public void enterFunctionAbsoluteValue(FunctionAbsoluteValueContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterFunctionAbsoluteValue() not implemented yet"); } @Override public void exitFunctionAbsoluteValue(FunctionAbsoluteValueContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitFunctionAbsoluteValue() not implemented yet"); } @Override public void enterFunctionYear(FunctionYearContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterFunctionYear() not implemented yet"); } @Override public void exitFunctionYear(FunctionYearContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitFunctionYear() not implemented yet"); } @Override public void enterFunctionMonth(FunctionMonthContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterFunctionMonth() not implemented yet"); } @Override public void exitFunctionMonth(FunctionMonthContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitFunctionMonth() not implemented yet"); } @Override public void enterFunctionDayOfMonth(FunctionDayOfMonthContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterFunctionDayOfMonth() not implemented yet"); } @Override public void exitFunctionDayOfMonth(FunctionDayOfMonthContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitFunctionDayOfMonth() not implemented yet"); } @Override public void enterFunctionUnknown(FunctionUnknownContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterFunctionUnknown() not implemented yet"); } @Override public void exitFunctionUnknown(FunctionUnknownContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitFunctionUnknown() not implemented yet"); } @Override public void enterBinaryOperator(BinaryOperatorContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterBinaryOperator() not implemented yet"); } @Override public void exitBinaryOperator(BinaryOperatorContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitBinaryOperator() not implemented yet"); } @Override public void enterOperatorEq(OperatorEqContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorEq() not implemented yet"); } @Override public void exitOperatorEq(OperatorEqContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorEq() not implemented yet"); } @Override public void enterOperatorNotEq(OperatorNotEqContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorNotEq() not implemented yet"); } @Override public void exitOperatorNotEq(OperatorNotEqContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorNotEq() not implemented yet"); } @Override public void enterOperatorGreaterThan(OperatorGreaterThanContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorGreaterThan() not implemented yet"); } @Override public void exitOperatorGreaterThan(OperatorGreaterThanContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorGreaterThan() not implemented yet"); } @Override public void enterOperatorGreaterThanEquals(OperatorGreaterThanEqualsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorGreaterThanEquals() not implemented yet"); } @Override public void exitOperatorGreaterThanEquals(OperatorGreaterThanEqualsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorGreaterThanEquals() not implemented yet"); } @Override public void enterOperatorLessThan(OperatorLessThanContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorLessThan() not implemented yet"); } @Override public void exitOperatorLessThan(OperatorLessThanContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorLessThan() not implemented yet"); } @Override public void enterOperatorLessThanEquals(OperatorLessThanEqualsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorLessThanEquals() not implemented yet"); } @Override public void exitOperatorLessThanEquals(OperatorLessThanEqualsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorLessThanEquals() not implemented yet"); } @Override public void enterOperatorIn(OperatorInContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorIn() not implemented yet"); } @Override public void exitOperatorIn(OperatorInContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorIn() not implemented yet"); } @Override public void enterOperatorNotIn(OperatorNotInContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorNotIn() not implemented yet"); } @Override public void exitOperatorNotIn(OperatorNotInContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorNotIn() not implemented yet"); } @Override public void enterOperatorStartsWith(OperatorStartsWithContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorStartsWith() not implemented yet"); } @Override public void exitOperatorStartsWith(OperatorStartsWithContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorStartsWith() not implemented yet"); } @Override public void enterOperatorNotStartsWith(OperatorNotStartsWithContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorNotStartsWith() not implemented yet"); } @Override public void exitOperatorNotStartsWith(OperatorNotStartsWithContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorNotStartsWith() not implemented yet"); } @Override public void enterOperatorEndsWith(OperatorEndsWithContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorEndsWith() not implemented yet"); } @Override public void exitOperatorEndsWith(OperatorEndsWithContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorEndsWith() not implemented yet"); } @Override public void enterOperatorNotEndsWith(OperatorNotEndsWithContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorNotEndsWith() not implemented yet"); } @Override public void exitOperatorNotEndsWith(OperatorNotEndsWithContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorNotEndsWith() not implemented yet"); } @Override public void enterOperatorContains(OperatorContainsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorContains() not implemented yet"); } @Override public void exitOperatorContains(OperatorContainsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorContains() not implemented yet"); } @Override public void enterOperatorNotContains(OperatorNotContainsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorNotContains() not implemented yet"); } @Override public void exitOperatorNotContains(OperatorNotContainsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorNotContains() not implemented yet"); } @Override public void enterOperatorWildCardEquals(OperatorWildCardEqualsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorWildCardEquals() not implemented yet"); } @Override public void exitOperatorWildCardEquals(OperatorWildCardEqualsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorWildCardEquals() not implemented yet"); } @Override public void enterOperatorWildCardNotEquals(OperatorWildCardNotEqualsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorWildCardNotEquals() not implemented yet"); } @Override public void exitOperatorWildCardNotEquals(OperatorWildCardNotEqualsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorWildCardNotEquals() not implemented yet"); } @Override public void enterOperatorWildCardIn(OperatorWildCardInContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorWildCardIn() not implemented yet"); } @Override public void exitOperatorWildCardIn(OperatorWildCardInContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorWildCardIn() not implemented yet"); } @Override public void enterUnaryOperator(UnaryOperatorContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterUnaryOperator() not implemented yet"); } @Override public void exitUnaryOperator(UnaryOperatorContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitUnaryOperator() not implemented yet"); } @Override public void enterOperatorIsNull(OperatorIsNullContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorIsNull() not implemented yet"); } @Override public void exitOperatorIsNull(OperatorIsNullContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorIsNull() not implemented yet"); } @Override public void enterOperatorIsNotNull(OperatorIsNotNullContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorIsNotNull() not implemented yet"); } @Override public void exitOperatorIsNotNull(OperatorIsNotNullContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorIsNotNull() not implemented yet"); } @Override public void enterEqualsEdgePoint(EqualsEdgePointContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterEqualsEdgePoint() not implemented yet"); } @Override public void exitEqualsEdgePoint(EqualsEdgePointContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitEqualsEdgePoint() not implemented yet"); } @Override public void enterExistsOperator(ExistsOperatorContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterExistsOperator() not implemented yet"); } @Override public void exitExistsOperator(ExistsOperatorContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitExistsOperator() not implemented yet"); } @Override public void enterOperatorExists(OperatorExistsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorExists() not implemented yet"); } @Override public void exitOperatorExists(OperatorExistsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorExists() not implemented yet"); } @Override public void enterOperatorNotExists(OperatorNotExistsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterOperatorNotExists() not implemented yet"); } @Override public void exitOperatorNotExists(OperatorNotExistsContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitOperatorNotExists() not implemented yet"); } @Override public void enterParameter(ParameterContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterParameter() not implemented yet"); } @Override public void exitParameter(ParameterContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitParameter() not implemented yet"); } @Override public void enterStringLiteral(StringLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterStringLiteral() not implemented yet"); } @Override public void exitStringLiteral(StringLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitStringLiteral() not implemented yet"); } @Override public void enterBooleanLiteral(BooleanLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterBooleanLiteral() not implemented yet"); } @Override public void exitBooleanLiteral(BooleanLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitBooleanLiteral() not implemented yet"); } @Override public void enterCharacterLiteral(CharacterLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterCharacterLiteral() not implemented yet"); } @Override public void exitCharacterLiteral(CharacterLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitCharacterLiteral() not implemented yet"); } @Override public void enterIntegerLiteral(IntegerLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterIntegerLiteral() not implemented yet"); } @Override public void exitIntegerLiteral(IntegerLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitIntegerLiteral() not implemented yet"); } @Override public void enterFloatingPointLiteral(FloatingPointLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterFloatingPointLiteral() not implemented yet"); } @Override public void exitFloatingPointLiteral(FloatingPointLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitFloatingPointLiteral() not implemented yet"); } @Override public void enterStringListLiteral(StringListLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterStringListLiteral() not implemented yet"); } @Override public void exitStringListLiteral(StringListLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitStringListLiteral() not implemented yet"); } @Override public void enterBooleanListLiteral(BooleanListLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterBooleanListLiteral() not implemented yet"); } @Override public void exitBooleanListLiteral(BooleanListLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitBooleanListLiteral() not implemented yet"); } @Override public void enterCharacterListLiteral(CharacterListLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterCharacterListLiteral() not implemented yet"); } @Override public void exitCharacterListLiteral(CharacterListLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitCharacterListLiteral() not implemented yet"); } @Override public void enterIntegerListLiteral(IntegerListLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterIntegerListLiteral() not implemented yet"); } @Override public void exitIntegerListLiteral(IntegerListLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitIntegerListLiteral() not implemented yet"); } @Override public void enterFloatingPointListLiteral(FloatingPointListLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterFloatingPointListLiteral() not implemented yet"); } @Override public void exitFloatingPointListLiteral(FloatingPointListLiteralContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitFloatingPointListLiteral() not implemented yet"); } @Override public void enterClassName(ClassNameContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterClassName() not implemented yet"); } @Override public void exitClassName(ClassNameContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitClassName() not implemented yet"); } @Override public void enterRelationshipName(RelationshipNameContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterRelationshipName() not implemented yet"); } @Override public void exitRelationshipName(RelationshipNameContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitRelationshipName() not implemented yet"); } @Override public void enterAttributeName(AttributeNameContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterAttributeName() not implemented yet"); } @Override public void exitAttributeName(AttributeNameContext ctx) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitAttributeName() not implemented yet"); } @Override public void visitTerminal(TerminalNode terminalNode) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".visitTerminal() not implemented yet"); } @Override public void visitErrorNode(ErrorNode errorNode) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".visitErrorNode() not implemented yet"); } @Override public void enterEveryRule(ParserRuleContext parserRuleContext) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".enterEveryRule() not implemented yet"); } @Override public void exitEveryRule(ParserRuleContext parserRuleContext) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".exitEveryRule() not implemented yet"); } }
46,247
https://github.com/pgq/pgq/blob/master/sql/trigger_backup.sql
Github Open Source
Open Source
ISC
2,022
pgq
pgq
PLpgSQL
Code
163
443
\set VERBOSITY 'terse' set client_min_messages = 'warning'; set datestyle = 'iso, ymd'; create or replace function pgq.insert_event(queue_name text, ev_type text, ev_data text, ev_extra1 text, ev_extra2 text, ev_extra3 text, ev_extra4 text) returns bigint as $$ begin raise warning 'insert_event(q=[%], t=[%], d=[%], 1=[%], 2=[%], 3=[%], 4=[%])', queue_name, ev_type, ev_data, ev_extra1, ev_extra2, ev_extra3, ev_extra4; return 1; end; $$ language plpgsql; create table trigger_backup (nr int4 primary key, col1 text, stamp date); create trigger backup_trig_0 after insert or update or delete on trigger_backup for each row execute procedure pgq.jsontriga('jsontriga', 'backup'); create trigger backup_trig_1 after insert or update or delete on trigger_backup for each row execute procedure pgq.logutriga('logutriga', 'backup'); -- sqltriga/pl cannot do urlenc --create trigger backup_trig_2 after insert or update or delete on trigger_backup --for each row execute procedure pgq.sqltriga('sqltriga', 'backup'); -- test insert insert into trigger_backup (nr, col1, stamp) values (1, 'text', '1999-02-03'); update trigger_backup set col1 = 'col1x' where nr=1; delete from trigger_backup where nr=1; -- restore drop table trigger_backup; \set ECHO none \i functions/pgq.insert_event.sql
40,654
https://github.com/yoomoney/yoomoney-sdk-java/blob/master/src/main/java/com/yoo/money/api/time/Period.java
Github Open Source
Open Source
MIT
2,021
yoomoney-sdk-java
yoomoney
Java
Code
560
1,112
/* * The MIT License (MIT) * * Copyright (c) 2020 NBCO YooMoney LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package com.yoo.money.api.time; import static com.yoo.money.api.util.Common.checkNotEmpty; /** * Represents a period of dates. */ public final class Period { /** * Number of years in period. */ @SuppressWarnings("WeakerAccess") public final int years; /** * Number of months in period. */ @SuppressWarnings("WeakerAccess") public final int months; /** * Number of days in period. */ @SuppressWarnings("WeakerAccess") public final int days; /** * Creates an instance of this class of specific period. * * @param years number of years * @param months number of months * @param days number of days */ Period(int years, int months, int days) { if (years < 0) { throw new IllegalArgumentException("years"); } if (months < 0) { throw new IllegalArgumentException("months"); } if (days < 0) { throw new IllegalArgumentException("days"); } this.years = years; this.months = months; this.days = days; } /** * Parses period represented by an ISO 8601 string. * * @param period period to parse * @return a period instance */ public static Period parse(String period) { char[] chars = checkNotEmpty(period, "period") .trim() .toUpperCase() .toCharArray(); if (chars[0] != 'P') { throw new IllegalArgumentException(period + " is not a period"); } int years = 0; int months = 0; int days = 0; int currentValue = 0; for (int i = 1; i < chars.length; ++i) { final char c = chars[i]; if (Character.isDigit(c)) { currentValue = currentValue * 10 + Character.getNumericValue(c); } else { switch (c) { case 'Y': years = currentValue; break; case 'M': months = currentValue; break; case 'D': days = currentValue; break; default: throw new UnsupportedOperationException(period + " is not supported"); } currentValue = 0; } } return new Period(years, months, days); } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Period period = (Period) o; if (years != period.years) return false; if (months != period.months) return false; return days == period.days; } @Override public int hashCode() { int result = years; result = 31 * result + months; result = 31 * result + days; return result; } @Override public String toString() { return "Period{" + "years=" + years + ", months=" + months + ", days=" + days + '}'; } }
12,186
https://github.com/ag-sbogd/mono-changelog/blob/master/core/core/src/features/statistics/components/StatisticsGraphItem/StatisticsGraphItem.test.tsx
Github Open Source
Open Source
MIT
null
mono-changelog
ag-sbogd
TypeScript
Code
81
226
import React from 'react'; import { mount } from 'enzyme'; import { StatisticsGraphItem, IOwnProps } from './StatisticsGraphItem'; describe( '<StatisticsGraphItem />', () => { const initialProps: IOwnProps = { bet: { betType: '3rdColumn', percentage: 50.02, count: 5, }, height: 50, }; it( 'should render without error', () => { const wrapper = mount( <StatisticsGraphItem {...initialProps} /> ); expect( wrapper.find( '.graph-item-title' ).text() ).toEqual( 'StatsArea3rdCol' ); expect( wrapper.find( '.graph-item-percent' ).text() ).toEqual( '50%' ); expect( wrapper.find( '.graph-item-color' ) ).toHaveLength( 1 ); } ); } );
10,927
https://github.com/marvinquiet/RefConstruction_supervisedCelltyping/blob/master/run_MARS_pipeline.slurm
Github Open Source
Open Source
MIT
2,022
RefConstruction_supervisedCelltyping
marvinquiet
Shell
Code
411
2,218
#!/bin/bash #SBATCH --job-name=MARS #SBATCH --output=celltyping_MARS.out #SBATCH --gres=gpu:1 #SBATCH --cpus-per-task=32 source ~/.bashrc PROJECT_PATH="" ENV_PATH="" conda activate $ENV_PATH/mars ## mars environment cd $PROJECT_PATH ## 1. PBMC_batch1_indS1_to_indS5 task="PBMC_batch1_ind" train="1154" test="1085" ## 2. PBMC_batch1_A_to_B task="PBMC_batch1_ABC" train="A" test="B" ## 3. PBMC_downsampled_batch1_A_to_indS5 task="PBMC_batch1_batchtoind" train="A" test="1085" ## 4. PBMC_batch2_control_to_stimulated task="PBMC_batch2" train="control" test="stimulated" ## 5. PBMC_protocols_Smart-seq2_to_CEL-Seq2 task="PBMC_protocols_pbmc1" train="Smart-seq2" test="CEL-Seq2" ## 6. PBMC_protocols_CEL-Seq2_to_10X task="PBMC_protocols_pbmc1" train="CEL-Seq2" test="10x-v2" ## 7. PBMC_protocols_10X_to_CEL-Seq2 task="PBMC_protocols_pbmc1" train="10x-v2" test="CEL-Seq2" ## 8. PBMC_protocols_Smart-Seq2_PBMC1_to_PBMC2 task="PBMC_protocols_batch_smart" train="pbmc1" test="pbmc2" ## 9. Seg_to_Muraro task="pancreas" train="seg" test="muraro" ## 10. Muraro_to_Seg task="pancreas" train="muraro" test="seg" ## 11. Seg_Xin_to_Muraro task="pancreas_multi_to_multi" train="seg_xin" test="muraro" ## 12. Seg_Healthy_to_T2D task="pancreas_seg_cond" train="Healthy" test="T2D" ## 13. Seg_Healthy_to_Muraro task="pancreas_custom" train="Healthy" test="muraro" ## 14. Seg_6Healthy3T2D_to_Seg_1T2D task="pancreas_seg_mix" train="Healthy" test="T2D" ## 15. Seg_5Healthy4T2D_to_Seg_1Healthy task="pancreas_seg_mix" train="T2D" test="Healthy" ## 16. Wholebrain_FC_ind1_to_ind2_major_celltypes task="mousebrain_FC" train="P60FCRep1" test="P60FCCx3cr1Rep1" ## 17. Wholebrain_FC_ind1_to_ind2_sub_celltypes task="mousebrain_FC_sub" train="P60FCRep1" test="P60FCCx3cr1Rep1" ## 18. Wholebrain_HC_ind1_to_ind2_major_celltypes task="mousebrain_HC" train="P60HippoRep1" test="P60HippoRep2" ## 19. Wholebrain_HC_ind1_to_ind2_sub_celltypes task="mousebrain_HC_sub" train="P60HippoRep1" test="P60HippoRep2" ## 20. Wholebrain_FC_to_HC_major_celltypes, cannot run no-feature because CUDA out of memory task="mousebrain_region" train="FC" test="HC" ## 21. pFC_Adult_to_P21_major_celltypes task="mousebrain_FC_stage" train="Adult" test="P21" ## 22. pFC_Adult_to_P21_sub_celltypes task="mousebrain_FC_stage_sub" train="Adult" test="P21" ## 23. Wholebrain_FC_adult_to_pFC_adult_major_celltypes, cannot run no-feature because CUDA out of memory task="mousebrain_FC_datasets" train="FC" test="Adult" ## 24. Wholebrain_FC_ind1_to_pFC_ind1 task="mousebrain_FC_datasets_multiinds" train="FC_P60FCRep1" test="Adult_PFCSample1" ## 25. Wholebrain_FC_exclude_ind2_to_ind2_major_celltypes task="mousebrain_FC_multiinds" train="ALL" test="P60FCCx3cr1Rep1" ## 26. Wholebrain_FC_exclude_ind2_to_ind2_sub_celltypes task="mousebrain_FC_multiinds_sub" train="ALL" test="P60FCCx3cr1Rep1" ## 27. Wholebrain_FC_downsampled_exclude_ind2_to_ind2_major_celltypes task="mousebrain_FC_multiinds_sample" train="P60FCRep1" test="P60FCCx3cr1Rep1" ## 28. Wholebrain_FC_downsample_exclude_ind2_to_ind2_sub_celltypes task="mousebrain_FC_multiinds_sub_sample" train="P60FCRep1" test="P60FCCx3cr1Rep1" ## 29. Wholebrain_FC_downsample_adult_to_pFC_ind1 task="mousebrain_FC_datasets_multiinds_sample" train="FC_P60FCRep1" test="Adult_PFCSample1" ### ============================== separator for revision ## 30. PBMC_Zheng_FACS cross validation task="PBMC_Zheng_FACS" train="0.8" test="0.2" ## 31. PBMC_Zheng_FACS cross validation on major cell types task="PBMC_Zheng_FACS_curated" train="0.8" test="0.2" ## 32. PBMC cross dataset, Kang -> Zheng (0.2 target) task="PBMC_cross" train="Kang" test="Zheng" ## 33. PBMC cross dataset, Ding -> Zheng (0.2 target) task="PBMC_cross" train="Ding" test="Zheng" ## 34. Allen brain Smart-Seqv4 cross-validation, 80% train -> 20% test task="allenbrain_ss" train="0.8" test="0.2" ## 35. Allen brain 10X ind1 -> ind2 task="allenbrain_10x" train="372312" test="371230" ## 36. PBMC cross dataset, Kang batch1 -> Zheng (0.2 target) task="PBMC_cross" train="Kang_batch1" test="Zheng" ## 36. PBMC cross dataset, Ding droplet -> Zheng (0.2 target) task="PBMC_cross" train="Ding_droplet" test="Zheng" ## 37. mouse FC dataset -> allen brain SSv4 (0.2 target) task="allenbrain_cross" train="FC" test="0.2" ## 38. mouse pFC dataset -> allen brain SSv4 (0.2 target) task="allenbrain_cross" train="pFC" test="0.2" python -m test_MARS.test_MARS $task --train $train --test $test python -m test_MARS.test_MARS $task --select_on train --select_method Seurat --train $train --test $test python -m test_MARS.test_MARS $task --select_on test --select_method Seurat --train $train --test $test python -m test_MARS.test_MARS $task --select_on train --select_method FEAST --train $train --test $test python -m test_MARS.test_MARS $task --select_on train --select_method F-test --train $train --test $test python -m test_MARS.test_MARS $task --select_on test --select_method FEAST --train $train --test $test
28,518
https://github.com/slackcpy/api-gateway/blob/master/src/app.module.ts
Github Open Source
Open Source
MIT
null
api-gateway
slackcpy
TypeScript
Code
37
114
import { Module } from '@nestjs/common'; import { GraphQLGatewayModule } from '@nestjs/graphql'; import { ConfigModule } from '@nestjs/config'; import { AsyncGatewayOptionsFactory } from './gatewayOptions.factory'; @Module({ imports: [ ConfigModule.forRoot(), GraphQLGatewayModule.forRootAsync({ useClass: AsyncGatewayOptionsFactory })] }) export class AppModule {}
15,304
https://github.com/sonnat/sonnat-ui/blob/master/packages/sonnat-ui/src/utils/getVar.js
Github Open Source
Open Source
MIT
2,022
sonnat-ui
sonnat
JavaScript
Code
29
60
export default function getVar(variable, fallback, condition) { const baseCondition = variable == null; const returnStatement = baseCondition ? fallback : variable; if (condition) return returnStatement; else return returnStatement; }
33,427
https://github.com/jackthgu/K-AR_HYU_Deform_Simulation/blob/master/src/taesooLib/BaseLib/utility/GArray.cpp
Github Open Source
Open Source
MIT
2,021
K-AR_HYU_Deform_Simulation
jackthgu
C++
Code
94
436
// GArray.cpp: implementation of the GArray class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" //#include "stdtemplate.h" #include "GArray.h" #include <list> bool GElt::operator==(const GElt& other) const { if(m_eType!=other.m_eType) return false; switch(m_eType) { case TE_INTEGER: return m_nData==other.m_nData; case TE_FLOAT: return m_fData==other.m_fData; case TE_STRING: return strcmp(m_szData, other.m_szData)==0; } return false; } void GElt::operator=(const GElt& other) { clear(); m_eType=other.type(); switch(other.type()) { case TE_INTEGER: m_nData=other.m_nData; case TE_FLOAT: m_fData=other.m_fData; case TE_STRING: m_szData=new char[strlen(other.strData())+1]; strcpy(m_szData,other.strData()); } } ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// GArray::GArray(int size) :TArray<GElt>(size) { } GArray::~GArray() { } int GArray::Find(const GElt& other) { for(int i=0; i<size(); i++) if(data(i)==other) return i; return -1; }
4,769
https://github.com/SpenQ/rabe-keyserver/blob/master/migrations/2018-06-18-173122_init/up.sql
Github Open Source
Open Source
MIT
2,019
rabe-keyserver
SpenQ
SQL
Code
68
168
-- Your SQL goes here create table sessions ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, random_session_id TEXT, scheme TEXT, key_material TEXT, attributes TEXT, is_initialized TINYINT(1) ); create table users ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, session_id INT NOT NULL, username varchar(255) NOT NULL, password varchar(255) NOT NULL, attributes TEXT, key_material TEXT, salt integer NOT NULL, api_key varchar(255) NOT NULL, FOREIGN KEY (session_id) REFERENCES sessions(id) );
7,196
https://github.com/JasonTheKitten/exobot/blob/master/chat4j/src/main/java/everyos/bot/chat4j/functionality/message/EmbedCreateSpec.java
Github Open Source
Open Source
MIT
2,022
exobot
JasonTheKitten
Java
Code
7
29
package everyos.bot.chat4j.functionality.message; public interface EmbedCreateSpec { }
38,140
https://github.com/willisplummer/newest-york/blob/master/src/templates/author.js
Github Open Source
Open Source
MIT
2,018
newest-york
willisplummer
JavaScript
Code
129
374
import React from 'react'; import Helmet from 'react-helmet'; import { graphql } from 'gatsby'; import Content, { HTMLContent } from '../components/shared/Content'; export const AuthorTemplate = ({ name, bio, contentComponent, helmet }) => { const PostContent = contentComponent || Content; return ( <section className="section"> {helmet || ''} <div className="container content"> <div className="columns"> <div className="column is-10 is-offset-1"> <h1 className="title is-size-2 has-text-weight-bold is-bold-light"> {name} </h1> <PostContent content={bio} /> </div> </div> </div> </section> ); }; const Author = ({ data }) => { const { markdownRemark: post } = data; return ( <AuthorTemplate contentComponent={HTMLContent} helmet={<Helmet title={`${post.frontmatter.name} | Author`} />} name={post.frontmatter.name} bio={post.frontmatter.bio} /> ); }; export default Author; export const pageQuery = graphql` query AuthorById($id: String!) { markdownRemark(id: { eq: $id }) { id html frontmatter { name: title bio } } } `;
5,979
https://github.com/phil-dragon/Sudoku/blob/master/Sudoku.Core/Data/GridMap.cs
Github Open Source
Open Source
MIT
2,020
Sudoku
phil-dragon
C#
Code
3,988
10,754
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; using Sudoku.Constants; using Sudoku.Data.Collections; using Sudoku.DocComments; using Sudoku.Extensions; using static Sudoku.Constants.Processings; using static Sudoku.Data.GridMap.InitializationOption; namespace Sudoku.Data { /// <summary> /// Encapsulates a binary series of cell status table. /// </summary> /// <remarks> /// The instance stores two <see cref="long"/> values, consisting of 81 bits, /// where <see langword="true"/> bit (1) is for the cell having that digit, /// and the <see langword="false"/> bit (0) is for the cell not containing /// the digit. /// </remarks> [DebuggerStepThrough] public partial struct GridMap : IComparable<GridMap>, IEnumerable<int>, IEquatable<GridMap>, IFormattable { /// <summary> /// <para>Indicates an empty instance (all bits are 0).</para> /// <para> /// I strongly recommend you <b>should</b> use this instance instead of default constructor /// <see cref="GridMap()"/>. /// </para> /// </summary> /// <seealso cref="GridMap()"/> public static readonly GridMap Empty = default; /// <summary> /// The value used for shifting. /// </summary> private const int Shifting = 41; /// <summary> /// Indicates the internal two <see cref="long"/> values, /// which represents 81 bits. <see cref="_high"/> represent the higher /// 40 bits and <see cref="_low"/> represents the lower 41 bits. /// </summary> /// <seealso cref="_low"/> /// <seealso cref="_high"/> private long _high, _low; /// <summary> /// Initializes an instance with the specified cell offset /// (Sets itself and all peers). /// </summary> /// <param name="offset">The cell offset.</param> public GridMap(int offset) : this(offset, true) { } /// <summary> /// Same behavior of the constructor as <see cref="GridMap(IEnumerable{int})"/>. /// </summary> /// <param name="offsets">All offsets.</param> /// <remarks> /// This constructor is defined after another constructor with /// <see cref="ReadOnlySpan{T}"/> had defined. Although this constructor /// does not initialize something (use the other one instead), /// while initializing with the type <see cref="int"/>[], the complier /// gives me an error without this constructor (ambiguity of two /// constructors). However, unfortunately, <see cref="ReadOnlySpan{T}"/> /// does not implemented the interface <see cref="IEnumerable{T}"/>. /// </remarks> /// <seealso cref="GridMap(IEnumerable{int})"/> public GridMap(int[] offsets) : this(offsets.AsEnumerable()) { } /// <summary> /// Initializes an instance with cell offsets with an initialize option. /// </summary> /// <param name="offsets">The offsets to be processed.</param> /// <param name="initializeOption"> /// Indicates the behavior of the initialization. /// </param> /// <remarks> /// This method is same behavior of <see cref="GridMap(IEnumerable{int}, InitializationOption)"/> /// </remarks> /// <seealso cref="GridMap(IEnumerable{int}, InitializationOption)"/> public GridMap(int[] offsets, InitializationOption initializeOption) : this((IEnumerable<int>)offsets, initializeOption) { } /// <summary> /// Initializes an instance with a series of cell offsets. /// </summary> /// <param name="offsets">cell offsets.</param> /// <remarks> /// <para> /// Note that all offsets will be set <see langword="true"/>, but their own peers /// will not be set <see langword="true"/>. /// </para> /// <para> /// In some case, you can use object initializer instead. /// You can use the code /// <code> /// var map = new GridMap { 0, 3, 5 }; /// </code> /// instead of the code /// <code> /// var map = new GridMap(stackalloc[] { 0, 3, 5 }); /// </code> /// </para> /// </remarks> public GridMap(ReadOnlySpan<int> offsets) : this() { foreach (int offset in offsets) { (offset / Shifting == 0 ? ref _low : ref _high) |= 1L << offset % Shifting; Count++; } } /// <summary> /// Initializes an instance with cell offsets with an initialize option. /// </summary> /// <param name="offsets">The offsets to be processed.</param> /// <param name="initializeOption"> /// Indicates the behavior of the initialization. /// </param> /// <exception cref="ArgumentException"> /// Throws when the specified initialize option is invalid. /// </exception> public GridMap(ReadOnlySpan<int> offsets, InitializationOption initializeOption) : this() { switch (initializeOption) { case Ordinary: { foreach (int offset in offsets) { this[offset] = true; } break; } case ProcessPeersAlso or ProcessPeersWithoutItself: { int i = 0; foreach (int offset in offsets) { long low = 0, high = 0; foreach (int peer in Peers[offset]) { (peer / Shifting == 0 ? ref low : ref high) |= 1L << peer % Shifting; } if (initializeOption == ProcessPeersAlso) { (offset / Shifting == 0 ? ref low : ref high) |= 1L << offset % Shifting; } (_low, _high) = i++ == 0 ? (low, high) : (_low & low, _high & high); } Count = _low.CountSet() + _high.CountSet(); break; } default: { throw new ArgumentException("The specified option does not exist."); } } } /// <summary> /// (Copy constructor) To copy an instance with the specified information. /// </summary> /// <param name="another">Another instance.</param> /// <remarks> /// <para> /// This constructor is only used for adding or removing some extra cells like: /// <code> /// var y = new GridMap(x) { [i] = true }; /// </code> /// or /// <code> /// var y = new GridMap(x) { i }; /// </code> /// </para> /// <para> /// Similarly, the following code is also okay: /// <code> /// var y = new GridMap(x) { [i] = false }; /// </code> /// or /// <code> /// var y = new GridMap(x) { ~i }; /// </code> /// where <c>~i</c> means assigning <see langword="false"/> value to the position /// whose the corresponding value is <c>i</c>. /// </para> /// </remarks> [MethodImpl(MethodImplOptions.AggressiveInlining)] public GridMap(GridMap another) => this = another; /// <summary> /// Initializes an instance with a series of cell offsets. /// </summary> /// <param name="offsets">cell offsets.</param> /// <remarks> /// Note that all offsets will be set <see langword="true"/>, but their own peers /// will not be set <see langword="true"/>. /// </remarks> public GridMap(IEnumerable<int> offsets) : this() { foreach (int offset in offsets) { (offset / Shifting == 0 ? ref _low : ref _high) |= 1L << offset % Shifting; Count++; } } /// <summary> /// Initializes an instance with cell offsets with an initialize option. /// </summary> /// <param name="offsets">The offsets to be processed.</param> /// <param name="initializeOption"> /// Indicates the behavior of the initialization. /// </param> /// <exception cref="ArgumentException"> /// Throws when the specified initialize option is invalid. /// </exception> public GridMap(IEnumerable<int> offsets, InitializationOption initializeOption) : this() { switch (initializeOption) { case Ordinary: { foreach (int offset in offsets) { this[offset] = true; } break; } case ProcessPeersAlso or ProcessPeersWithoutItself: { int i = 0; foreach (int offset in offsets) { long low = 0, high = 0; foreach (int peer in Peers[offset]) { (peer / Shifting == 0 ? ref low : ref high) |= 1L << peer % Shifting; } if (initializeOption == ProcessPeersAlso) { (offset / Shifting == 0 ? ref low : ref high) |= 1L << offset % Shifting; } (_low, _high) = i++ == 0 ? (low, high) : (_low & low, _high & high); } Count = _low.CountSet() + _high.CountSet(); break; } default: { throw new ArgumentException("The specified option does not exist."); } } } /// <summary> /// Initializes an instance with three binary values. /// </summary> /// <param name="high">Higher 27 bits.</param> /// <param name="mid">Medium 27 bits.</param> /// <param name="low">Lower 27 bits.</param> public GridMap(int high, int mid, int low) : this((high & 0x7FFFFFFL) << 13 | (mid >> 14 & 0x1FFFL), (mid & 0x3FFFL) << 27 | (low & 0x7FFFFFFL)) { } /// <summary> /// Initializes an instance with the specified cell offset. /// This will set all bits of all peers of this cell. Another /// <see cref="bool"/> value indicates whether this initialization /// will set the bit of itself. /// </summary> /// <param name="offset">The cell offset.</param> /// <param name="setItself"> /// A <see cref="bool"/> value indicating whether this initialization /// will set the bit of itself. /// If the value is <see langword="false"/>, it will be equivalent /// to below: /// <code> /// var map = new GridMap(offset) { [offset] = false }; /// </code> /// </param> private GridMap(int offset, bool setItself) { this = PeerMaps[offset]; this[offset] = setItself; } /// <summary> /// Initializes an instance with two binary values. /// </summary> /// <param name="high">Higher 40 bits.</param> /// <param name="low">Lower 41 bits.</param> private GridMap(long high, long low) => Count = (_high = high).CountSet() + (_low = low).CountSet(); /// <summary> /// Indicates whether the map has no set bits. /// This property is equivalent to code '<c>!this.IsNotEmpty</c>'. /// </summary> /// <seealso cref="IsNotEmpty"/> public readonly bool IsEmpty => (_high, _low) is (0, 0); /// <summary> /// Indicates whether the map has at least one set bit. /// This property is equivalent to code '<c>!this.IsEmpty</c>'. /// </summary> /// <seealso cref="IsEmpty"/> public readonly bool IsNotEmpty => (_high, _low) is not (0, 0); /// <summary> /// Same as <see cref="AllSetsAreInOneRegion(out int)"/>, but only contains /// the <see cref="bool"/> result. /// </summary> /// <seealso cref="AllSetsAreInOneRegion(out int)"/> public readonly bool InOneRegion { get { for (int i = 0; i < 27; i++) { if ((_high & ~CoverTable[i, 0]) == 0 && (_low & ~CoverTable[i, 1]) == 0) { return true; } } return false; } } /// <summary> /// Indicates the mask of block. /// </summary> public readonly short BlockMask { get { short result = 0; for (int i = 0; i < 9; i++) { if (Overlaps(RegionMaps[i])) { result |= (short)(1 << i); } } return result; } } /// <summary> /// Indicates the mask of row. /// </summary> public readonly short RowMask { get { short result = 0; for (int i = 9; i < 18; i++) { if (Overlaps(RegionMaps[i])) { result |= (short)(1 << i - 9); } } return result; } } /// <summary> /// Indicates the mask of column. /// </summary> public readonly short ColumnMask { get { short result = 0; for (int i = 18; i < 27; i++) { if (Overlaps(RegionMaps[i])) { result |= (short)(1 << i - 18); } } return result; } } /// <summary> /// Indicates the covered line. /// </summary> public readonly int CoveredLine { get { for (int i = 9; i < 27; i++) { if ((_high & ~CoverTable[i, 0]) == 0 && (_low & ~CoverTable[i, 1]) == 0) { return i; } } return -1; } } /// <summary> /// Indicates the total number of cells where the corresponding /// value are set <see langword="true"/>. /// </summary> public int Count { readonly get; private set; } /// <summary> /// Gets the first set bit position. If the current map is empty, /// the return value will be <c>-1</c>. /// </summary> /// <remarks> /// The property will use the same process with <see cref="Offsets"/>, /// but the <see langword="yield"/> clause will be replaced with normal <see langword="return"/>s. /// </remarks> /// <seealso cref="Offsets"/> public readonly int First { get { if (IsEmpty) { return -1; } long value; int i; if (_low != 0) { for (value = _low, i = 0; i < Shifting; i++, value >>= 1) { if ((value & 1) != 0) { return i; } } } if (_high != 0) { for (value = _high, i = Shifting; i < 81; i++, value >>= 1) { if ((value & 1) != 0) { return i; } } } return default; // Here is only used for a placeholder. } } /// <summary> /// Indicates the map of cells, which is the peer intersections. /// </summary> /// <example> /// For example, the code /// <code> /// var map = testMap.PeerIntersection; /// </code> /// is equivalent to the code /// <code> /// var map = new GridMap(testMap, InitializeOption.ProcessPeersWithoutItself); /// </code> /// </example> public readonly GridMap PeerIntersection => new(Offsets, ProcessPeersWithoutItself); /// <summary> /// Indicates all regions covered. This property is used to check all regions that all cells /// of this instance covered. For examp;le, if the cells are { 0, 1 }, the property /// <see cref="CoveredRegions"/> will return the region 0 (block 1) and region 9 (row 1); /// however, if cells spanned two regions or more (e.g. cells { 0, 1, 27 }), this property will not contain /// any regions. /// </summary> public readonly IEnumerable<int> CoveredRegions { get { for (int i = 0; i < 27; i++) { if ((_high & ~CoverTable[i, 0]) == 0 && (_low & ~CoverTable[i, 1]) == 0) { yield return i; } } } } /// <summary> /// All regions that the map spanned. This property is used to check all regions that all cells of /// this instance spanned. For example, if the cells are { 0, 1 }, the property /// <see cref="Regions"/> will return the region 0 (block 1), region 9 (row 1), region 18 (column 1) /// and the region 19 (column 2). /// </summary> public readonly IEnumerable<int> Regions => ((int)BlockMask | RowMask << 9 | ColumnMask << 18).GetAllSets(); /// <summary> /// <para> /// Indicates all cell offsets whose corresponding value /// are set <see langword="true"/>. /// </para> /// <para> /// If you want to make an array of them, please use method /// <see cref="ToArray"/> instead of code /// '<c>Offsets.ToArray()</c>'. /// </para> /// </summary> /// <seealso cref="ToArray"/> private readonly IEnumerable<int> Offsets { get { if (IsEmpty) { yield break; } long value; int i; if (_low != 0) { for (value = _low, i = 0; i < Shifting; i++, value >>= 1) { if ((value & 1) != 0) { yield return i; } } } if (_high != 0) { for (value = _high, i = Shifting; i < 81; i++, value >>= 1) { if ((value & 1) != 0) { yield return i; } } } } } /// <summary> /// Gets or sets a <see cref="bool"/> value on the specified cell /// offset. /// </summary> /// <param name="cell">The cell offset.</param> /// <value>A <see cref="bool"/> value on assignment.</value> /// <returns> /// A <see cref="bool"/> value indicating whether the cell has digit. /// </returns> [IndexerName("Index")] public bool this[int cell] { [MethodImpl(MethodImplOptions.AggressiveInlining)] readonly get => ((stackalloc[] { _low, _high }[cell / Shifting] >> cell % Shifting) & 1) != 0; [MethodImpl(MethodImplOptions.AggressiveInlining)] set { ref long v = ref cell / Shifting == 0 ? ref _low : ref _high; bool older = this[cell]; if (value) { v |= 1L << cell % Shifting; if (!older) { Count++; } } else { v &= ~(1L << cell % Shifting); if (older) { Count--; } } } } /// <inheritdoc cref="DeconstructMethod"/> /// <param name="high">(<see langword="out"/> parameter) Higher 40 bits.</param> /// <param name="low">(<see langword="out"/> parameter) Lower 41 bits.</param> [MethodImpl(MethodImplOptions.AggressiveInlining)] public readonly void Deconstruct(out long high, out long low) => (high, low) = (_high, _low); /// <include file='..\GlobalDocComments.xml' path='comments/method[@name="Equals" and @paramType="object"]'/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public override readonly bool Equals(object? obj) => obj is GridMap comparer && Equals(comparer); /// <inheritdoc cref="IEquatable{T}.Equals(T)"/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public readonly bool Equals(GridMap other) => _high == other._high && _low == other._low; /// <summary> /// Indicates whether this map overlaps another one. /// </summary> /// <param name="other">The other map.</param> /// <returns>The <see cref="bool"/> value.</returns> [MethodImpl(MethodImplOptions.AggressiveInlining)] public readonly bool Overlaps(GridMap other) => (this & other).IsNotEmpty; /// <summary> /// Indicates whether all cells in this instance are in one region. /// </summary> /// <param name="region"> /// (<see langword="out"/> parameter) The region covered. If the return value /// is false, this value will be the constant -1. /// </param> /// <returns>A <see cref="bool"/> result.</returns> /// <remarks> /// If you don't want to use the <see langword="out"/> parameter value, please /// use the property <see cref="InOneRegion"/> to improve the performance. /// </remarks> /// <seealso cref="InOneRegion"/> public readonly bool AllSetsAreInOneRegion(out int region) { for (int i = 0; i < 27; i++) { if ((_high & ~CoverTable[i, 0]) == 0 && (_low & ~CoverTable[i, 1]) == 0) { region = i; return true; } } region = -1; return false; } /// <summary> /// Get a n-th index of the <see langword="true"/> bit in this instance. /// </summary> /// <param name="index">The true bit index order.</param> /// <returns>The real index.</returns> /// <remarks> /// If you want to select the first set bit, please use <see cref="First"/> instead. /// </remarks> /// <seealso cref="First"/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public readonly int SetAt(int index) => index == 0 ? First : Offsets.ElementAt(index); /// <inheritdoc/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public readonly int CompareTo(GridMap other) => ((new BigInteger(_high) << Shifting) + new BigInteger(_low)) .CompareTo((new BigInteger(other._high) << Shifting) + new BigInteger(other._low)); /// <summary> /// Get all cell offsets whose bits are set <see langword="true"/>. /// </summary> /// <returns>An array of cell offsets.</returns> [MethodImpl(MethodImplOptions.AggressiveInlining)] public readonly int[] ToArray() => Offsets.ToArray(); /// <summary> /// Get the subview mask of this map. /// </summary> /// <param name="region">The region.</param> /// <returns>The mask.</returns> public readonly short GetSubviewMask(int region) { short p = 0, i = 0; foreach (int cell in RegionCells[region]) { if (this[cell]) { p |= (short)(1 << i); } i++; } return p; } /// <inheritdoc/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public readonly IEnumerator<int> GetEnumerator() => Offsets.GetEnumerator(); /// <inheritdoc cref="object.GetHashCode"/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public override readonly int GetHashCode() => GetType().GetHashCode() ^ (int)((_low ^ _high) & int.MaxValue); /// <inheritdoc cref="object.ToString"/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public override readonly string ToString() => ToString(null); /// <include file='..\GlobalDocComments.xml' path='comments/method[@name="ToString" and @paramType="string"]'/> /// <remarks> /// The format can be <c><see langword="null"/></c>, <c>N</c>, <c>n</c>, <c>B</c> or <c>b</c>. If the former three, /// the return value will be a cell notation collection; otherwise, the binary representation. /// </remarks> /// <exception cref="FormatException">Throws when the format is invalid.</exception> public readonly string ToString(string? format) { switch (format) { case null or "N" or "n": { return new CellCollection(this).ToString(); } case "B" or "b": { var sb = new StringBuilder(); int i; long value = _low; for (i = 0; i < 27; i++, value >>= 1) { sb.Append(value & 1); } sb.Append(" "); for (; i < 41; i++, value >>= 1) { sb.Append(value & 1); } for (value = _high; i < 54; i++, value >>= 1) { sb.Append(value & 1); } sb.Append(" "); for (; i < 81; i++, value >>= 1) { sb.Append(value & 1); } return sb.Reverse().ToString(); } default: { throw Throwings.FormatErrorWithMessage(null!, nameof(format)); } } } /// <inheritdoc/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public readonly string ToString(string? format, IFormatProvider? formatProvider) => formatProvider.HasFormatted(this, format, out string? result) ? result : ToString(format); /// <inheritdoc/> [MethodImpl(MethodImplOptions.AggressiveInlining)] readonly IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); /// <summary> /// Set the specified cell as <see langword="true"/> or <see langword="false"/> value. /// </summary> /// <param name="offset"> /// The cell offset. This value can be positive and negative. If /// negative, the offset will be assigned <see langword="false"/> /// into the corresponding bit position of its absolute value. /// </param> /// <remarks> /// <para> /// For example, if the offset is -2 (~1), the [1] will be assigned <see langword="false"/>: /// <code> /// var map = new GridMap(xxx) { ~1 }; /// </code> /// which is equivalent to: /// <code> /// var map = new GridMap(xxx); /// map[1] = false; /// </code> /// </para> /// <para> /// Note: The argument <paramref name="offset"/> should be with the bit-complement operator <c>~</c> /// to describe the value is a negative one. As the belowing example, -2 is described as <c>~1</c>, /// so the offset is 1, rather than 2. /// </para> /// </remarks> [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Add(int offset) { if (offset >= 0) // Positive or zero. { this[offset] = true; } else // Negative values. { this[~offset] = false; } } /// <summary> /// Set the specified cell as <see langword="true"/> value. /// </summary> /// <param name="offset">The cell offset.</param> /// <remarks> /// Different with <see cref="Add(int)"/>, the method will process negative values, /// but this won't. /// </remarks> /// <seealso cref="Add(int)"/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public void AddAnyway(int offset) => this[offset] = true; /// <summary> /// Set the specified cell as <see langword="false"/> value. /// </summary> /// <param name="offset">The cell offset.</param> /// <remarks> /// Different with <see cref="Add(int)"/>, this method <b>cannot</b> receive /// the negative value as the parameter. /// </remarks> /// <seealso cref="Add(int)"/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Remove(int offset) => this[offset] = false; /// <summary> /// Clear all bits. /// </summary> [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Clear() => _low = _high = Count = 0; /// <summary> /// Set the specified cells as <see langword="true"/> value. /// </summary> /// <param name="offsets">The cells to add.</param> public void AddRange(ReadOnlySpan<int> offsets) { foreach (int cell in offsets) { AddAnyway(cell); } } /// <summary> /// Set the specified cells as <see langword="true"/> value. /// </summary> /// <param name="offsets">The cells to add.</param> public void AddRange(IEnumerable<int> offsets) { foreach (int cell in offsets) { AddAnyway(cell); } } /// <inheritdoc cref="Operators.operator =="/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool operator ==(GridMap left, GridMap right) => left.Equals(right); /// <inheritdoc cref="Operators.operator !="/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool operator !=(GridMap left, GridMap right) => !(left == right); /// <inheritdoc cref="Operators.operator &gt;"/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool operator >(GridMap left, GridMap right) => left.CompareTo(right) > 0; /// <inheritdoc cref="Operators.operator &gt;="/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool operator >=(GridMap left, GridMap right) => left.CompareTo(right) >= 0; /// <inheritdoc cref="Operators.operator &lt;"/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool operator <(GridMap left, GridMap right) => left.CompareTo(right) < 0; /// <inheritdoc cref="Operators.operator &lt;="/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool operator <=(GridMap left, GridMap right) => left.CompareTo(right) <= 0; /// <summary> /// Reverse status for all cells, which means all <see langword="true"/> bits /// will be set <see langword="false"/>, and all <see langword="false"/> bits /// will be set <see langword="true"/>. /// </summary> /// <param name="gridMap">The instance to negate.</param> /// <returns>The negative result.</returns> /// <remarks> /// While reversing the higher 40 bits, the unused bits will be fixed and never be modified the state, /// that is why using the code "<c>higherBits &amp; 0xFFFFFFFFFFL</c>". /// </remarks> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static GridMap operator ~(GridMap gridMap) => new(~gridMap._high & 0xFFFFFFFFFFL, ~gridMap._low); /// <summary> /// Add a cell into the specified map. /// </summary> /// <param name="map">The map.</param> /// <param name="cell">The cell to remove.</param> /// <returns>The map after adding.</returns> /// <remarks> /// This operator can simplify your code but create a new instance. /// If you want to consider the performance, please <b>don't</b> /// use this operator. /// </remarks> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static GridMap operator +(GridMap map, int cell) { var result = map; result.AddAnyway(cell); return result; } /// <summary> /// Add a cell into the specified map. /// </summary> /// <param name="map">The map.</param> /// <param name="cell">The cell to remove.</param> /// <returns>The map after adding.</returns> /// <remarks> /// This operator can simplify your code but create a new instance. /// If you want to consider the performance, please <b>don't</b> /// use this operator. /// </remarks> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static GridMap operator +(int cell, GridMap map) => map + cell; /// <summary> /// Remove a cell from the specified map. /// </summary> /// <param name="map">The map.</param> /// <param name="cell">The cell to remove.</param> /// <returns>The map after removing.</returns> /// <remarks> /// This operator can simplify your code but create a new instance. /// If you want to consider the performance, please <b>don't</b> /// use this operator. /// </remarks> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static GridMap operator -(GridMap map, int cell) { var result = map; result.Remove(cell); return result; } /// <summary> /// Get a <see cref="GridMap"/> that contains all <paramref name="left"/> cells /// but not in <paramref name="right"/> cells. /// </summary> /// <param name="left">The left instance.</param> /// <param name="right">The right instance.</param> /// <returns>The result.</returns> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static GridMap operator -(GridMap left, GridMap right) => left & ~right; /// <summary> /// Get all cells that two <see cref="GridMap"/>s both contain. /// </summary> /// <param name="left">The left instance.</param> /// <param name="right">The right instance.</param> /// <returns>The intersection result.</returns> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static GridMap operator &(GridMap left, GridMap right) => new(left._high & right._high, left._low & right._low); /// <summary> /// Get all cells from two <see cref="GridMap"/>s. /// </summary> /// <param name="left">The left instance.</param> /// <param name="right">The right instance.</param> /// <returns>The union result.</returns> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static GridMap operator |(GridMap left, GridMap right) => new(left._high | right._high, left._low | right._low); /// <summary> /// Get all cells that only appears once in two <see cref="GridMap"/>s. /// </summary> /// <param name="left">The left instance.</param> /// <param name="right">The right instance.</param> /// <returns>The symmetrical difference result.</returns> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static GridMap operator ^(GridMap left, GridMap right) => new(left._high ^ right._high, left._low ^ right._low); /// <summary> /// Implicit cast from <see cref="int"/>[] to <see cref="GridMap"/>. /// </summary> /// <param name="cells">The cells.</param> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator GridMap(int[] cells) => new(cells); /// <summary> /// Implicit cast from <see cref="Span{T}"/> to <see cref="GridMap"/>. /// </summary> /// <param name="cells">The cells.</param> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator GridMap(Span<int> cells) => new(cells); /// <summary> /// Implicit cast from <see cref="ReadOnlySpan{T}"/> to <see cref="GridMap"/>. /// </summary> /// <param name="cells">The cells.</param> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator GridMap(ReadOnlySpan<int> cells) => new(cells); /// <summary> /// Explicit cast from <see cref="GridMap"/> to <see cref="int"/>[]. /// </summary> /// <param name="map">The map.</param> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int[](GridMap map) => map.ToArray(); } }
33,270
https://github.com/mathdeziel/Jotunn/blob/master/JotunnDoc/Docs/ShaderDoc.cs
Github Open Source
Open Source
MIT
2,022
Jotunn
mathdeziel
C#
Code
127
472
using System.Linq; using System.Text; using Jotunn.Managers; using UnityEngine; namespace JotunnDoc.Docs { public class ShaderDoc : Doc { public ShaderDoc() : base("prefabs/shader-list.md") { On.Player.OnSpawned += DocShaders; } private void DocShaders(On.Player.orig_OnSpawned orig, Player self) { orig(self); if (Generated) { return; } Jotunn.Logger.LogInfo("Documenting prefab shaders"); AddHeader(1, "Shader list"); AddText("All shaders and their properties currently in the game."); AddText("This file is automatically generated from Valheim using the JotunnDoc mod found on our GitHub."); AddTableHeader("Shader", "Properties"); var shaders = PrefabManager.Cache.GetPrefabs(typeof(Shader)).Values; foreach (Shader shady in shaders.OrderBy(x => x.name)) { StringBuilder propsb = new StringBuilder(); if (shady.GetPropertyCount() > 0) { propsb.Append("<dl>"); for (int i = 0; i < shady.GetPropertyCount(); ++i) { propsb.Append("<dd>"); propsb.Append(shady.GetPropertyName(i)); string desc = shady.GetPropertyDescription(i); if (!string.IsNullOrEmpty(desc)) { propsb.Append($" ({desc})"); } propsb.Append("</dd>"); } propsb.Append("</dl>"); } AddTableRow(shady.name, propsb.ToString()); } Save(); } } }
24,569
https://github.com/pbsherwood/schedulr/blob/master/login.php
Github Open Source
Open Source
MIT
2,021
schedulr
pbsherwood
PHP
Code
358
1,650
<?php include_once("header_code.php"); ?> <?php if (isset($_POST['login']) && isset($_POST['password']) && $_POST['login'] != '' && $_POST['password'] != '') { // Create connection $conn = new mysqli(constant("global_mysql_server"), constant("global_mysql_user"), constant("global_mysql_password"), constant("global_mysql_database")); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $login = $conn->real_escape_string($_POST['login']); $password = $conn->real_escape_string($_POST['password']); $statement = $conn->prepare("select password, first_name, last_name, phone, user_roles, schedulr_users_id from schedulr_users where email = ? "); $statement->bind_param("s", $login); $statement->execute(); $statement->bind_result($database_password, $first_name, $last_name, $phone, $user_roles, $user_id); $statement->fetch(); $display_message = ""; if (password_verify($password, $database_password)) { $_SESSION['login'] = $login; $_SESSION['user_prefs'] = array("id" => $user_id, "first_name" => $first_name, "last_name" => $last_name, "phone" => $phone, "user_roles" => $user_roles); header('Location: ' . constant("global_url")); } else { $display_message = "Wrong email or password. Try Again."; } } $css_path = "css/login.css"; if (constant("global_advanced_login_display") == '1') { $css_path = "css/login_advanced.css";; } ?> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href='<?= $css_path ?>' rel='stylesheet' /> </head> <body> <div class="wrap"> <img id='logo' src="img/logo.png"> <form name='login_form' method='POST'> <input type="text" placeholder="email" id="login" name="login" required> <div class="bar"> <i></i> </div> <input type="password" placeholder="password" id="password" name="password" required> <button>Sign in</button> </form> <span style='color:red; font-size: small;'><?= $display_message ?></span> </div> <script> document.getElementById('login').focus(); </script> <?php if (constant("global_advanced_login_display") == '1') { echo " <style> #calendar { max-width: 1200px; margin: 50px auto; padding: 0px 20px; } .table { display:table; } .row { display:table-row; } .cell { display:table-cell; } </style> <link href='css/fullcalendar.min.css' rel='stylesheet' /> <link href='css/jquery-ui.css' rel='stylesheet' /> <script src='js/moment.min.js'></script> <script src='js/jquery.min.js'></script> <script src='js/fullcalendar.min.js'></script> <script src='js/jquery-ui.js'></script> <script> $(function() { // document ready $('#dialog-event_content').dialog({ autoOpen: false, modal: true, width:350 }); $('#calendar').fullCalendar({ eventSources: { url: 'tools/resources.php' }, editable: 'false', aspectRatio: 1.8, scrollTime: '00:00', // undo default 6am scrollTime header: { left: 'today prev,next', center: 'title', right: 'agendaWeek,month,listWeek' }, defaultView: 'month', eventRender: function (event, element) { element.attr('href', 'javascript:void(0);'); element.click(function() { $('#event-startTime').html(moment(event.start).format('MMM Do h:mm A')); $('#event-endTime').html(moment(event.end).format('MMM Do h:mm A')); $('#event-guests').html(function() { var output = ''; $.each( event.guests, function( key, value ) { output = output + '<div>' + value['first_name'] + ' ' + value['last_name'] + '</div>'; }); return output; }); $('#dialog-event_content').dialog({title: event.title}); $('#dialog-event_content').dialog( 'open' ); }); } }); }); </script> <div id='calendar'></div> <div id='dialog-event_content'> <div class='table'> <div class='row'><div class='cell'>Start:</div><div class='cell'><div id='event-startTime'></div></div></div> <div class='row'><div class='cell'>End:</div><div class='cell'><div id='event-endTime'></div></div></div> <div class='row'><div class='cell'>Guests:</div><div class='cell'><div id='event-guests'></div></div></div> </div> </div> "; } ?> </body> </html>
802
https://github.com/jianghfeng/springBoot_DatabaseSeparate/blob/master/web2/src/main/java/com/qiansheng/web2/modules/test/service/impl/StudentServiceImpl.java
Github Open Source
Open Source
MIT
2,020
springBoot_DatabaseSeparate
jianghfeng
Java
Code
66
341
package com.qiansheng.web2.modules.test.service.impl; import com.qiansheng.web2.modules.test.Entity.Student; import com.qiansheng.web2.modules.test.mapper.StuMapper; import com.qiansheng.web2.modules.test.service.StuService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.interceptor.TransactionAspectSupport; import java.util.List; @Slf4j @Service public class StudentServiceImpl implements StuService { @Autowired private StuMapper tstuMapper; @Override public Student findById(int id) { return tstuMapper.findById(id); } @Override public List<Student> findStudent() { return tstuMapper.findStudent(); } @Override @Transactional(value="transactionManager") public int insertUser() { try{ tstuMapper.insertUser(); }catch (Exception e){ TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); } return 1; } }
9,904
https://github.com/camplight/hylo-evo/blob/master/src/components/PostCard/PostTitle/PostTitle.scss
Github Open Source
Open Source
Apache-2.0
2,022
hylo-evo
camplight
SCSS
Code
203
719
.cardPadding { padding: 0px $space-4x; } .constrained.cardPadding { padding: 0px 0px; } .body { margin-bottom: 36px; } .smallMargin { margin-bottom: 12px; } .title { composes: cardPadding; margin-bottom: 12px; } .constrained.title { font-size: 14px; margin-bottom: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .details { composes: cardPadding; // Extract typography? This one is exactly half way between // BDY-LT-LG and BDY-LT-SM @include font-regular; color: $color-rhino-60; font-size: 16px; line-height: 24px; margin-bottom: 20px; } .headerLocation { display: block; margin: -10px 0 10px 15px; composes: timestamp from 'css/typography.scss'; text-overflow: ellipsis; overflow: hidden; width: 50%; } .constrained.headerLocation { display: none; } .locationIcon { color: $color-rhino-40; margin: 0 3px 0 0; font-size: 12px; top: 1px; } .file-attachments { composes: cardPadding; display: flex; flex-direction: row; } .file-attachment { display: flex; align-items: center; margin-right: 10px; text-decoration: none; &:hover, &:visited, &:link, &:active { text-decoration: none; } } .file-icon { font-size: 20px; color: $color-tree-poppy; margin-right: 8px; } .file-name { @include font-regular; color: $color-caribbean-green; &:hover { color: $color-gossamer; } font-size: 12px; max-width: 155px; overflow: hidden; text-overflow: ellipsis; } :global { .hashtag, .mention { color: $color-caribbean-green; &:hover { text-decoration: none; color: $color-gossamer; } } } @media screen and (max-width: 425px) { .title { margin-bottom: 5px; } .headerLocation { margin: -5px 0 5px 5px; } }
40,083
https://github.com/gongchangwangpi/zb-demo/blob/master/Algorithms/src/main/java/com/books/jeektime/beautyalgorithms/ArrayStack.java
Github Open Source
Open Source
Apache-2.0
2,018
zb-demo
gongchangwangpi
Java
Code
137
414
package com.books.jeektime.beautyalgorithms; import com.alibaba.fastjson.JSON; /** * @author zhangbo */ public class ArrayStack { private Object[] items; private int count; private int size; public ArrayStack(int size) { if (size < 1) { throw new IllegalArgumentException("size must bigger 1"); } this.items = new Object[size]; this.size = size; } public boolean push(Object o) { if (count == size) { // 已满,直接返回false return false; } items[count++] = o; return true; } public Object pop() { if (count == 0) { return null; } count--; Object item = items[count]; items[count] = null; return item; } public void print() { System.out.println("size = " + size + ", count = " + count + ", items = " + JSON.toJSONString(items)); } public static void main(String[] args) { ArrayStack arrayStack = new ArrayStack(5); arrayStack.push(1); arrayStack.push(2); arrayStack.push(3); arrayStack.push(4); arrayStack.print(); System.out.println(arrayStack.pop()); System.out.println(arrayStack.pop()); arrayStack.print(); arrayStack.push(4); arrayStack.print(); } }
26,217
https://github.com/lamp13580179149/CarBBS/blob/master/resources/views/admin/users/edit.blade.php
Github Open Source
Open Source
MIT
2,019
CarBBS
lamp13580179149
PHP
Code
175
925
@extends('admin.layout.index') @section('content') <!-- 显示验证错误信息 --> @if (count($errors) > 0) <div class="mws-form-message error"> <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif <div class="mws-panel grid_8"> <div class="mws-panel-header" style="height:50px"> <span>用户添加</span> </div> <div class="mws-panel-body no-padding"> <form class="mws-form" action="/admin/users/{{ $data->id }}" method="post" enctype="multipart/form-data"> {{ csrf_field() }} {{ method_field('PUT') }} <div class="mws-form-inline"> <div class="mws-form-row"> <label class="mws-form-label">上传头像</label> <div class="mws-form-item" style="width:150px;display: none"> <input type="file" onchange="preview(this)" multiple class="small" name="profiles" id="profiles"> </div> <label for="profiles"><div id="preview" style="width:150px;height: 150px;background: url(/admin/images/jia.jpg);"></div></label> </div> <div class="mws-form-row"> <label class="mws-form-label">用户名</label> <div class="mws-form-item"> <input type="text" class="small" name="uname" value="{{ $data->uname }}"> </div> </div> <div class="mws-form-row"> <label class="mws-form-label">用户邮箱</label> <div class="mws-form-item"> <input type="text" class="small" name="email" value="{{ $data->email }}"> </div> </div> <div class="mws-form-row"> <label class="mws-form-label">用户手机</label> <div class="mws-form-item"> <input type="text" class="small" name="tel" value="{{ $data->tel }}"> </div> </div> </div> <div class="mws-button-row"> <input type="submit" value="修改" class="btn btn-danger"> <input type="reset" value="重置" class="btn "> </div> </form> </div> </div> <script type="text/javascript"> function preview(file){ if (file.files && file.files[0]){ var reader = new FileReader(); reader.onload = function(evt){ $("#preview").html('<img src="' + evt.target.result + '" style="height:120px;width:120px;margin:4px;border-radius:60px 60px" />'); } reader.readAsDataURL(file.files[0]); } else { $("#preview").html('<div style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src=\'' + file.value + '\'"></div>'); } } </script> @endsection
26,713
https://github.com/h4ck3rm1k3/federal-election-commission-aggregation-json-2011/blob/master/index/ELECTION/CODE/P2012/2011/20110504/727357.fec_1/73e7324240bd8bf39de2a8973ccc10af69231a4c.js
Github Open Source
Open Source
Unlicense
2,013
federal-election-commission-aggregation-json-2011
h4ck3rm1k3
JavaScript
Code
1
32
../../../../../../../objects/73/e7324240bd8bf39de2a8973ccc10af69231a4c.js
34,386
https://github.com/kibabajw/sylviaandedwards/blob/master/application/views/admin/fragments/recall_order.php
Github Open Source
Open Source
MIT
null
sylviaandedwards
kibabajw
PHP
Code
303
1,304
<body class="container"> <div id="dialog-confirm" title="Recall order" style="display: none;"> <p><span class="ui-icon ui-icon-alert" style="float:left; margin:2px 12px 20px 0;"></span> Are you sure you want to recall this order ? </p> </div> <div id="dialog-confirm-delete" title="Delete order" style="display: none;"> <p><span class="ui-icon ui-icon-alert" style="float:left; margin:2px 12px 20px 0;"></span> Are you sure you want to delete this order ? </p> </div> <h3>Workspace: Recall or Delete order</h3> <small>Recalled orders shall be available in drafts for new assigning while deleted orders shall be moved to the trash</small> <h4 id="center" style="color:red;"></h4> <!-- bootstrap datatables --> <table id="example" class="table table-striped table-bordered"> <thead> <tr> <th>ORDER ID</th> <th>HANDLER</th> <th>DATE UPLOADED</th> <th>DATE DUE</th> <th>ORDER STATUS</th> <th>RECALL</th> <th>DELETE</th> </tr> </thead> <tbody> <?php if($recall_order == false){ ?> <div class="alert alert-info" role="alert">No data to display</div> <?php } else{ foreach ($recall_order as $row) { ?> <tr> <td><?= $row->order_id; ?></td> <td><?= $row->handler_name; ?></td> <td><?= $row->date_uploaded; ?></td> <td><?= $row->date_due; ?></td> <td><?= $row->order_status; ?></td> <td> <a href="javascript:recall_order('<?php echo $row->order_id; ?>')"><i class="fa fa-recycle" aria-hidden="true"></i>&nbsp;Recall</a> </td> <td> <a href="javascript:delete_order('<?php echo $row->order_id; ?>')"><i class="fa fa-trash-o" aria-hidden="true"></i>&nbsp;Delete</a> </td> </tr> <?php } } ?> </tbody> </table> <script src="<?php echo base_url(); ?>js/jquery-ui.js"></script> <script> function recall_order(to_recall_order_id){ var dataString = 'to_recall_order_id='+to_recall_order_id; $( "#dialog-confirm").dialog({ resizable: false, height: "auto", width: 400, modal: true, buttons: { "Yes": function() { $(this).dialog("close"); $.ajax({ url:'<?php echo base_url() ?>index.php/admin/Dashboard_controller/recall_order', method: 'post', // data: new FormData($('.form-edit-writer')[0]), data: {to_recall_order_id: to_recall_order_id} }).done(function(html){ $("#center").html(html); }).fail(function(html){ $("#center").html("An error occured, please try again."); }); return false; }, Cancel: function() { $(this).dialog("close"); } } }); } // this function deletes an order from the db function delete_order(to_delete_order_id){ var dataString = 'to_delete_order_id='+to_delete_order_id; $( "#dialog-confirm-delete").dialog({ resizable: false, height: "auto", width: 400, modal: true, buttons: { "Yes": function() { $(this).dialog("close"); $.ajax({ url:'<?php echo base_url() ?>index.php/admin/Dashboard_controller/delete_order', method: 'post', // data: new FormData($('.form-edit-writer')[0]), data: {to_delete_order_id: to_delete_order_id} }).done(function(html){ $("#center").html(html); recall_order(); }).fail(function(html){ $("#center").html("An error occured, please try again."); }); return false; }, Cancel: function() { $(this).dialog("close"); } } }); } </script> </body> </html>
18,223
https://github.com/richardlalancette/AfterEffectsExperimentations/blob/master/Examples/Effect/Resizer/Resizer.cpp
Github Open Source
Open Source
MIT
2,022
AfterEffectsExperimentations
richardlalancette
C++
Code
1,470
6,523
/*******************************************************************/ /* */ /* ADOBE CONFIDENTIAL */ /* _ _ _ _ _ _ _ _ _ _ _ _ _ */ /* */ /* Copyright 2007 Adobe Systems Incorporated */ /* All Rights Reserved. */ /* */ /* NOTICE: All information contained herein is, and remains the */ /* property of Adobe Systems Incorporated and its suppliers, if */ /* any. The intellectual and technical concepts contained */ /* herein are proprietary to Adobe Systems Incorporated and its */ /* suppliers and may be covered by U.S. and Foreign Patents, */ /* patents in process, and are protected by trade secret or */ /* copyright law. Dissemination of this information or */ /* reproduction of this material is strictly forbidden unless */ /* prior written permission is obtained from Adobe Systems */ /* Incorporated. */ /* */ /*******************************************************************/ /* Resizer.cpp This sample shows how to resize the output buffer to prevent clipping the edges of an effect (or just to scale the source). The resizing occurs during the response to PF_Cmd_FRAME_SETUP. Revision history Version Change Engineer Date ======= ====== ======== ====== 1.0 (from the mists of time) dmw 1.1 added versioning, link to correct DLL bbb 9/1/99 1.2 Added cute about box bbb 5/3/00 1.3 Added deep color support, replaced bbb 6/20/00 function macros with suite usage. 2.0 Moved to C++ to use AEGP_SuiteHandler. bbb 11/6/00 2.1 Latest greatest bbb 8/12/04 2.2 Added new entry point zal 9/18/2017 */ #include "Resizer.h" static PF_Err About ( PF_InData *in_data, PF_OutData *out_data, PF_ParamDef *params[], PF_LayerDef *output ) { PF_Err err = PF_Err_NONE; AEGP_SuiteHandler suites(in_data->pica_basicP); // Premiere Pro/Elements doesn't support ANSICallbacksSuite1 if (in_data->appl_id != 'PrMr') { suites.ANSICallbacksSuite1()->sprintf( out_data->return_msg, "%s v%d.%d\r%s", STR(StrID_Name), MAJOR_VERSION, MINOR_VERSION, STR(StrID_Description)); } return err; } static PF_Err GlobalSetup ( PF_InData *in_data, PF_OutData *out_data, PF_ParamDef *params[], PF_LayerDef *output ) { out_data->my_version = PF_VERSION( MAJOR_VERSION, MINOR_VERSION, BUG_VERSION, STAGE_VERSION, BUILD_VERSION); out_data->out_flags = PF_OutFlag_DEEP_COLOR_AWARE | PF_OutFlag_I_EXPAND_BUFFER | PF_OutFlag_I_HAVE_EXTERNAL_DEPENDENCIES; out_data->out_flags2 = PF_OutFlag2_SUPPORTS_QUERY_DYNAMIC_FLAGS | PF_OutFlag2_I_USE_3D_CAMERA | PF_OutFlag2_I_USE_3D_LIGHTS; return PF_Err_NONE; } static PF_Err ParamsSetup ( PF_InData *in_data, PF_OutData *out_data, PF_ParamDef *params[], PF_LayerDef *output ) { PF_Err err = PF_Err_NONE; PF_ParamDef def; AEFX_CLR_STRUCT(def); PF_ADD_SLIDER( STR(StrID_Name), RESIZE_AMOUNT_MIN, RESIZE_AMOUNT_MAX, RESIZE_AMOUNT_MIN, RESIZE_AMOUNT_MAX, RESIZE_AMOUNT_DFLT, AMOUNT_DISK_ID); AEFX_CLR_STRUCT(def); PF_ADD_COLOR( STR(StrID_Color_Param_Name), 128, 255, 255, COLOR_DISK_ID); AEFX_CLR_STRUCT(def); def.u.bd.value = FALSE; // value for legacy projects which did not have this param PF_ADD_CHECKBOX( STR(StrID_Checkbox_Param_Name), STR(StrID_Checkbox_Description), TRUE, // value for new applications, and when reset PF_ParamFlag_USE_VALUE_FOR_OLD_PROJECTS, DOWNSAMPLE_DISK_ID); // Don't expose 3D capabilities in PPro, since they are unsupported if (in_data->appl_id != 'PrMr'){ PF_ADD_CHECKBOX( STR(StrID_3D_Param_Name), STR(StrID_3D_Param_Description), FALSE, 0, THREED_DISK_ID); out_data->num_params = RESIZE_NUM_PARAMS; } else { out_data->num_params = RESIZE_NUM_PARAMS - 1; } return err; } static PF_Err FrameSetup ( PF_InData *in_data, PF_OutData *out_data, PF_ParamDef *params[], PF_LayerDef *output ) { // Output buffer resizing may only occur during PF_Cmd_FRAME_SETUP. PF_FpLong border_x = 0, border_y = 0, border = params[RESIZE_AMOUNT]->u.sd.value; if (params[RESIZE_DOWNSAMPLE]->u.bd.value) { // shrink the border to accomodate decreased resolutions. border_x = border * (static_cast<PF_FpLong>(in_data->downsample_x.num) / in_data->downsample_x.den); border_y = border * (static_cast<PF_FpLong>(in_data->downsample_y.num) / in_data->downsample_y.den); } else { border_x = border_y = border; } // add 2 times the border width and height to the input width and // height to get the output size. out_data->width = 2 * static_cast<A_long>(border_x) + params[0]->u.ld.width; out_data->height = 2 * static_cast<A_long>(border_y) + params[0]->u.ld.height; // The origin of the input buffer corresponds to the (border_x, // border_y) pixel in the output buffer. out_data->origin.h = static_cast<A_short>(border_x); out_data->origin.v = static_cast<A_short>(border_y); return PF_Err_NONE; } static PF_Err Render ( PF_InData *in_data, PF_OutData *out_data, PF_ParamDef *params[], PF_LayerDef *outputP ) { register PF_Err err = PF_Err_NONE; AEGP_SuiteHandler suites(in_data->pica_basicP); A_Matrix4 matrix; A_Time comp_timeT = {0,1}; AEGP_LayerH effect_layerH = NULL, camera_layerH = NULL; A_FpLong focal_lengthL = 0; AEGP_CompH compH = NULL; AEGP_ItemH comp_itemH = NULL; A_long compwL = 0, comphL = 0; PF_Point originPt = {0,0}; PF_Rect iter_rectR = {0,0,0,0}; PF_Pixel color = {0,0,0,0}; PF_Pixel16 big_color = {0,0,0,0}; PF_Rect src_rectR = {0,0,0,0}, dst_rectR = {0,0,0,0}; PF_FpLong border_x = 0, border_y = 0, border = params[RESIZE_AMOUNT]->u.sd.value; register PF_Boolean deepB = PF_WORLD_IS_DEEP(outputP); originPt.h = static_cast<short>(in_data->output_origin_x); originPt.v = static_cast<short>(in_data->output_origin_y); iter_rectR.right = 1; iter_rectR.bottom = (short)outputP->height; color = params[RESIZE_COLOR]->u.cd.value; if (in_data->appl_id != 'PrMr' && params[RESIZE_USE_3D]->u.bd.value) { // if we're paying attention to the camera ERR(suites.PFInterfaceSuite1()->AEGP_ConvertEffectToCompTime(in_data->effect_ref, in_data->current_time, in_data->time_scale, &comp_timeT)); ERR(suites.PFInterfaceSuite1()->AEGP_GetEffectCamera(in_data->effect_ref, &comp_timeT, &camera_layerH)); if (!err && camera_layerH){ ERR(suites.LayerSuite5()->AEGP_GetLayerToWorldXform( camera_layerH, &comp_timeT, &matrix)); if (!err){ AEGP_StreamVal stream_val; AEFX_CLR_STRUCT(stream_val); ERR(suites.StreamSuite2()->AEGP_GetLayerStreamValue( camera_layerH, AEGP_LayerStream_ZOOM, AEGP_LTimeMode_CompTime, &comp_timeT, FALSE, &stream_val, NULL)); if (!err) { focal_lengthL = stream_val.one_d; ERR(suites.PFInterfaceSuite1()->AEGP_GetEffectLayer( in_data->effect_ref, &effect_layerH)); } ERR(suites.LayerSuite5()->AEGP_GetLayerParentComp(effect_layerH, &compH)); ERR(suites.CompSuite4()->AEGP_GetItemFromComp(compH, &comp_itemH)); ERR(suites.ItemSuite6()->AEGP_GetItemDimensions(comp_itemH, &compwL, &comphL)); if (!err) { A_long num_layersL = 0L; ERR(suites.LayerSuite5()->AEGP_GetCompNumLayers(compH, &num_layersL)); if (!err && num_layersL) { AEGP_LayerH layerH = NULL; AEGP_ObjectType type = AEGP_ObjectType_NONE; for (A_long iL = 0L; !err && (iL < num_layersL) && (type != AEGP_ObjectType_LIGHT); ++iL){ ERR(suites.LayerSuite5()->AEGP_GetCompLayerByIndex(compH, iL, &layerH)); if (layerH) { ERR(suites.LayerSuite5()->AEGP_GetLayerObjectType(layerH, &type)); if (type == AEGP_ObjectType_LIGHT) { AEGP_LightType light_type = AEGP_LightType_AMBIENT; ERR(suites.LightSuite2()->AEGP_GetLightType(layerH, &light_type)); // At this point, you have the camera, the transform, the layer to which the // effect is applied, and details about the camera. Have fun! } } } } } } } } /* The suite functions can't automatically detect the requested bit depth. Call different functions based on the bit depth of the OUTPUT world. */ // First draw the border color around the edges where the output has been resized. // Premiere Pro/Elements doesn't support FillMatteSuite2, // but it does support many of the callbacks in utils if (!err){ if(deepB){ big_color.red = CONVERT8TO16(color.red); big_color.green = CONVERT8TO16(color.green); big_color.blue = CONVERT8TO16(color.blue); big_color.alpha = CONVERT8TO16(color.alpha); ERR(suites.FillMatteSuite2()->fill16(in_data->effect_ref, &big_color, NULL, outputP)); } else if (in_data->appl_id != 'PrMr') { ERR(suites.FillMatteSuite2()->fill( in_data->effect_ref, &color, NULL, outputP)); } else { // For PPro, since effects operate on the sequence rectangle, not the clip rectangle, we need to take care to color the proper area if (params[RESIZE_DOWNSAMPLE]->u.bd.value) { // shrink the border to accomodate decreased resolutions. border_x = border * (static_cast<PF_FpLong>(in_data->downsample_x.num) / in_data->downsample_x.den); border_y = border * (static_cast<PF_FpLong>(in_data->downsample_y.num) / in_data->downsample_y.den); } else { border_x = border_y = border; } PF_Rect border_rectR = { 0, 0, 0, 0 }; border_rectR.left = in_data->pre_effect_source_origin_x; border_rectR.top = in_data->pre_effect_source_origin_y; border_rectR.right = in_data->pre_effect_source_origin_x + in_data->width + 2 * static_cast<A_long>(border_x); border_rectR.bottom = in_data->pre_effect_source_origin_y + in_data->height + 2 * static_cast<A_long>(border_y); ERR(PF_FILL(&color, &border_rectR, outputP)); } } // Now, copy the input frame if (!err){ dst_rectR.left = originPt.h; dst_rectR.top = originPt.v; dst_rectR.right = static_cast<short>(originPt.h + params[0]->u.ld.width); dst_rectR.bottom = static_cast<short>(originPt.v + params[0]->u.ld.height); /* The suite functions do not automatically detect the requested output quality. Call different functions based on the current quality state. */ // Premiere Pro/Elements doesn't support WorldTransformSuite1, // but it does support many of the callbacks in utils if (PF_Quality_HI == in_data->quality && in_data->appl_id != 'PrMr') { ERR(suites.WorldTransformSuite1()->copy_hq( in_data->effect_ref, &params[RESIZE_INPUT]->u.ld, outputP, NULL, &dst_rectR)); } else if (in_data->appl_id != 'PrMr') { ERR(suites.WorldTransformSuite1()->copy(in_data->effect_ref, &params[RESIZE_INPUT]->u.ld, outputP, NULL, &dst_rectR)); } else { // For PPro, since effects operate on the sequence rectangle, not the clip rectangle, we need to take care to place the video in the proper area if (params[RESIZE_DOWNSAMPLE]->u.bd.value) { // shrink the border to accomodate decreased resolutions. border_x = border * (static_cast<PF_FpLong>(in_data->downsample_x.num) / in_data->downsample_x.den); border_y = border * (static_cast<PF_FpLong>(in_data->downsample_y.num) / in_data->downsample_y.den); } else { border_x = border_y = border; } src_rectR.left = in_data->pre_effect_source_origin_x; src_rectR.top = in_data->pre_effect_source_origin_y; src_rectR.right = in_data->pre_effect_source_origin_x + in_data->width; src_rectR.bottom = in_data->pre_effect_source_origin_y + in_data->height; dst_rectR.left = in_data->pre_effect_source_origin_x + static_cast<A_long>(border_x); dst_rectR.top = in_data->pre_effect_source_origin_y + static_cast<A_long>(border_y); dst_rectR.right = in_data->pre_effect_source_origin_x + in_data->width + static_cast<A_long>(border_x); dst_rectR.bottom = in_data->pre_effect_source_origin_y + in_data->height + static_cast<A_long>(border_y); ERR(PF_COPY(&params[0]->u.ld, outputP, &src_rectR, &dst_rectR)); } } return err; } static PF_Err DescribeDependencies( PF_InData *in_data, PF_OutData *out_data, PF_ParamDef *params[], void *extra) { PF_Err err = PF_Err_NONE; PF_ExtDependenciesExtra *extraP = (PF_ExtDependenciesExtra*)extra; PF_Handle msgH = NULL; A_Boolean something_is_missingB = FALSE; AEGP_SuiteHandler suites(in_data->pica_basicP); switch (extraP->check_type) { case PF_DepCheckType_ALL_DEPENDENCIES: msgH = suites.HandleSuite1()->host_new_handle(strlen(STR(StrID_DependString1)) + 1); suites.ANSICallbacksSuite1()->strcpy(reinterpret_cast<char*>(DH(msgH)),STR(StrID_DependString1)); break; case PF_DepCheckType_MISSING_DEPENDENCIES: if (something_is_missingB) { msgH = suites.HandleSuite1()->host_new_handle(strlen(STR(StrID_DependString2)) + 1); suites.ANSICallbacksSuite1()->strcpy(reinterpret_cast<char*>(DH(msgH)),STR(StrID_DependString2)); } break; default: msgH = suites.HandleSuite1()->host_new_handle(strlen(STR(StrID_NONE)) + 1); suites.ANSICallbacksSuite1()->strcpy(reinterpret_cast<char*>(DH(msgH)),STR(StrID_NONE)); break; } extraP->dependencies_strH = msgH; return err; } static PF_Err QueryDynamicFlags( PF_InData *in_data, PF_OutData *out_data, PF_ParamDef *params[], void *extra) { PF_Err err = PF_Err_NONE, err2 = PF_Err_NONE; PF_ParamDef def; AEFX_CLR_STRUCT(def); // The parameter array passed with PF_Cmd_QUERY_DYNAMIC_FLAGS // contains invalid values; use PF_CHECKOUT_PARAM() to obtain // valid values. ERR(PF_CHECKOUT_PARAM( in_data, RESIZE_USE_3D, in_data->current_time, in_data->time_step, in_data->time_scale, &def)); if (!err) { if (def.u.bd.value) { out_data->out_flags2 |= PF_OutFlag2_I_USE_3D_LIGHTS; out_data->out_flags2 |= PF_OutFlag2_I_USE_3D_CAMERA; } else { out_data->out_flags2 &= ~PF_OutFlag2_I_USE_3D_LIGHTS; out_data->out_flags2 &= ~PF_OutFlag2_I_USE_3D_CAMERA; } } ERR2(PF_CHECKIN_PARAM(in_data, &def)); return err; } extern "C" DllExport PF_Err PluginDataEntryFunction( PF_PluginDataPtr inPtr, PF_PluginDataCB inPluginDataCallBackPtr, SPBasicSuite* inSPBasicSuitePtr, const char* inHostName, const char* inHostVersion) { PF_Err result = PF_Err_INVALID_CALLBACK; result = PF_REGISTER_EFFECT( inPtr, inPluginDataCallBackPtr, "Resizer", // Name "ADBE Resizer", // Match Name "Sample Plug-ins", // Category AE_RESERVED_INFO); // Reserved Info return result; } PF_Err EffectMain( PF_Cmd cmd, PF_InData *in_data, PF_OutData *out_data, PF_ParamDef *params[], PF_LayerDef *output, void *extra) { AEGP_SuiteHandler suites(in_data->pica_basicP); PF_Err err = PF_Err_NONE; try{ switch (cmd) { case PF_Cmd_ABOUT: err = About(in_data,out_data,params,output); break; case PF_Cmd_GLOBAL_SETUP: err = GlobalSetup(in_data,out_data,params,output); break; case PF_Cmd_PARAMS_SETUP: err = ParamsSetup(in_data,out_data,params,output); break; case PF_Cmd_FRAME_SETUP: err = FrameSetup(in_data,out_data,params,output); break; case PF_Cmd_RENDER: err = Render(in_data,out_data,params,output); break; case PF_Cmd_GET_EXTERNAL_DEPENDENCIES: err = DescribeDependencies(in_data,out_data,params,extra); break; case PF_Cmd_QUERY_DYNAMIC_FLAGS: err = QueryDynamicFlags(in_data,out_data,params,extra); break; } } catch(const PF_Err &thrown_err) { err = thrown_err; } return err; }
1,734
https://github.com/griffinjoshs/HW-11-MySQL/blob/master/server.js
Github Open Source
Open Source
Apache-2.0
2,020
HW-11-MySQL
griffinjoshs
JavaScript
Code
976
2,884
var mysql = require("mysql"); var inquirer = require("inquirer"); var connection = mysql.createConnection({ host: "localhost", // Your port; if not 3306 port: 3306, // Your username user: "root", // Your password password: "password", database: "employeeTracker" }); let query; function runSearch() { inquirer .prompt({ name: "action", type: "rawlist", message: "What would you like to do?", choices: [ "View All Employees", "View All Employees by department", "View All Employees by Name", "View All Employees by Manager", "Remove Employee", "Add Employee", "Update Employee", "Add Department", "Add Role", "Quit" ] }) .then(function(answer){ switch (answer.action) { case "View All Employees": employeeSearch('all'); break; case "View All Employees by department": employeeSearch('department'); break; case "View All Employees by Name": employeeSearch('name'); break; case "View All Employees by Manager": employeeSearch('manager'); break; case "Remove Employee": removeEmployee(); break; case "Add Employee": addEmployee(); break; case "Update Employee": updateEmployee(); break; case "Add Department": addDepartment(); break; case "Add Role": addRole(); break; case "Quit": running = false; break; } }) } function employeeSearch(searchType) { switch (searchType) { case "all": query = `select e.id, e.first_name, e.last_name, r.title, r.salary, d.name from employee as e, role as r, department as d where e.role_id = r.id and r.department_id = d.id`; connection.query(query, null, function (err, res) { console.table(res) }) break; case "department": query = `select e.id, e.first_name, e.last_name, r.title, r.salary, d.name from employee as e, role as r, department as d where e.role_id = r.id and r.department_id = d.id`; query += ' order by d.name' connection.query(query, null, function (err, res) { console.table(res) }); break; case "name": query = `select e.id, e.first_name, e.last_name, r.title, r.salary, d.name from employee as e, role as r, department as d where e.role_id = r.id and r.department_id = d.id`; query += ' order by e.last_name, e.first_name' connection.query(query, null, function (err, res) { console.table(res) }); break; case "manager": query = `select e.first_name as "emp first", e.last_name as "emp last", m.first_name as "mgr first", m.last_name as "mgr last" from employee as e, employee as m, manages as mg where mg.employee_id = e.id and mg.manager_id = m.id`; query += ' order by m.last_name, m.first_name' connection.query(query, null, function (err, res) { console.table(res) }); break; default: throw "employee search called in illegal argument"; } } function removeEmployee() { let allEmployees = []; query = `select e.id, e.first_name, e.last_name from employee as e order by e.id` connection.query(query, null, function (err, res) { for (let i = 0; i < res.length; i++) { allEmployees.push( `id: ${res[i].id}, ${res[i].first_name} ${res[i].last_name}` ) } inquirer .prompt({ name: 'employee', type: 'list', message: 'which employee do you wish to delete?', choices: allEmployees }) .then(function (answer) { let id = parseInt(answer.employee.substring(4)); query = `delete from employee where id = ${id}` connection.query(query, null, function (err, res) { if (err) { console.warn('operation failed'); } else { console.log(`employee ${id} deleted`) } } ) }) }) } function addEmployee() { let employeeRole = []; query = `select r.id, r.title from role as r` connection.query(query, null, function (err, res) { for (let i = 0; i < res.length; i++) { employeeRole.push( `${res[i].id}: ${res[i].title}` ) } }) inquirer .prompt([ { name: 'first_name', type: 'input', message: 'Please type the employees first name.', }, { name: 'last_name', type: 'input', message: 'Please type the employees last name.', }, { name: 'role', type: 'list', message: 'What is the employees role?', choices: employeeRole }, ]) .then(function (answer) { let role_id = parseInt(answer.role); answer.first_name = answer.first_name.trim() answer.last_name = answer.last_name.trim() query = `insert into employee (first_name, last_name, role_id) values ('${answer.first_name}', '${answer.last_name}', ${role_id})` connection.query(query, null, function (err, res) { if (err) { console.warn('operation failed'); } else { console.log(`employee ${answer.first_name} ${answer.last_name} inserted`) } } ) }) } function updateEmployee() { let employeeRole = []; query = `select r.id, r.title from role as r` connection.query(query, null, function (err, res) { for (let i = 0; i < res.length; i++) { employeeRole.push( `${res[i].id}: ${res[i].title}` ) } }) let allEmployees = []; query = `select e.id, e.first_name, e.last_name from employee as e order by e.id` connection.query(query, null, function (err, res) { for (let i = 0; i < res.length; i++) { allEmployees.push( `id: ${res[i].id}, ${res[i].first_name} ${res[i].last_name}` ) } inquirer .prompt({ name: 'employee', type: 'list', message: 'which employee do you wish to edit?', choices: allEmployees }) .then(function (answer) { let id = parseInt(answer.employee.substring(4)); query = `select first_name, last_name, role_id from employee where id = ${id}` connection.query(query, null, function (err, res) { if (err) { console.warn('operation failed'); } else { inquirer const questions = [ { type: 'input', name: 'first_name', message: 'change the first name', default: res[0].first_name }, { type: 'input', name: 'last_name', message: 'change the last name', default: res[0].last_name }, { type: 'list', name: 'role_id', message: 'change employee role', default: employeeRole.filter(r => parseInt(r) === res[0].role_id)[0], choices: employeeRole }, ]; inquirer.prompt(questions).then((answers) => { query = `UPDATE employee SET first_name = '${answers.first_name}', last_name = '${answers.last_name}', role_id = ${parseInt(answers.role_id)} WHERE id = ${id}` connection.query(query, null, function (err, res) { if (err) { console.warn('operation failed', err); } else { console.log(`success`) } }) }); } } ) }) }) } function addDepartment() { inquirer .prompt([ { name: 'department_name', type: 'input', message: 'Please type the new departments name.', }, ]) .then(function (answer) { answer.department_name = answer.department_name.trim() query = `insert into department (name) values ('${answer.department_name}')` connection.query(query, null, function (err, res) { if (err) { console.warn('operation failed'); } else { console.log(`department ${answer.department_name} inserted`) } } ) }) } function addRole() { let allDepartments = []; query = `select id, name from department` connection.query(query, null, function (err, res) { for (let i = 0; i < res.length; i++) { allDepartments.push( `${res[i].id}: ${res[i].name}` ) } inquirer .prompt([ { name: 'title', type: 'input', message: 'Please type the new Role name.', }, { name: 'salary', type: 'input', message: 'Please type the salary.', }, { name: 'department_id', type: 'list', message: 'Select a department.', choices: allDepartments }, ]) .then(function (answer) { answer.title = answer.title.trim() query = `insert into role (title, salary, department_id) values ('${answer.title}', ${parseFloat(answer.salary)}, ${parseInt(answer.department_id)})` connection.query(query, null, function (err, res) { if (err) { console.warn('operation failed'); } else { console.log(`Role ${answer.title} inserted`) } } ) }) } ) } runSearch();
41,915
https://github.com/Microndgt/rfdmovies/blob/master/migrations/rfdmovie/versions/20180212095733_init_db.py
Github Open Source
Open Source
MIT
2,019
rfdmovies
Microndgt
Python
Code
104
618
"""init db Revision ID: f1f409fc80b8 Revises: Create Date: 2018-02-12 09:57:33.656298 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'f1f409fc80b8' down_revision = None branch_labels = None depends_on = None def upgrade(): op.create_table( 'movie', sa.Column('id', sa.Integer, primary_key=True), sa.Column('name', sa.String), sa.Column('release_time', sa.Date), sa.Column('rate', sa.Float), sa.Column('rate_num', sa.BigInteger), sa.Column('desc', sa.Text), sa.Column('countries', sa.ARRAY(sa.String), server_default=sa.text("array[]::varchar[]")), sa.Column("image_url", sa.String), sa.Column('types', sa.ARRAY(sa.String), server_default=sa.text("array[]::varchar[]")), sa.Column('director', sa.String), sa.Column('actors', sa.ARRAY(sa.String), server_default=sa.text("array[]::varchar[]")), sa.Column("douban_url", sa.String), sa.Column("keywords", sa.ARRAY(sa.String), server_default=sa.text("array[]::varchar[]")), sa.Column("languages", sa.ARRAY(sa.String), server_default=sa.text("array[]::varchar[]")), sa.Column("comments", sa.ARRAY(sa.String), server_default=sa.text("array[]::varchar[]")), sa.Column("duration", sa.Integer), sa.Column("grade_five", sa.Float), sa.Column("grade_four", sa.Float), sa.Column("grade_three", sa.Float), sa.Column("grade_two", sa.Float), sa.Column("grade_one", sa.Float), sa.Column('created_utc', sa.Integer, server_default=sa.text('extract(epoch from now())::int')), sa.Column('updated_utc', sa.Integer, server_default=sa.text('extract(epoch from now())::int')) ) def downgrade(): op.drop_table('movie')
31,795
https://github.com/fatemezahralotfi/SCM-frontend/blob/master/node_modules/react-cosmos-shared2/dist/FixtureLoader/FixtureCapture/props/useFixtureProps.d.ts
Github Open Source
Open Source
MIT
2,021
SCM-frontend
fatemezahralotfi
TypeScript
Code
21
71
import React from 'react'; import { FixtureDecoratorId, FixtureState } from '../../../fixtureState'; export declare function useFixtureProps(fixture: React.ReactNode, fixtureState: FixtureState, decoratorId: FixtureDecoratorId): React.ReactNode;
47,948
https://github.com/thervh70/ContextProject_RDD/blob/master/src/octopeer-github/test/content/ElementSelectionBehaviour/ElementSelectionBehaviourFactoryTest.ts
Github Open Source
Open Source
CC-BY-4.0
2,016
ContextProject_RDD
thervh70
TypeScript
Code
85
317
/// <reference path="../../../content/ElementSelectionBehaviour/ElementSelectionBehaviourFactory.ts"/> /** * Created by Mathias on 2016-05-31. */ describe("An ElementSelectionBehaviourFactory", function () { const esbFactory = new ElementSelectionBehaviourFactory(); const database = new ConsoleLogDatabaseAdapter(); it("should create ElementSelectionBehaviours", function () { let esb = <GenericElementSelectionBehaviour> esbFactory.create(database, ElementID.ADD_EMOTICON); expect(esb.getData().name).toEqual("Add emoticon"); expect(esb.getElementID()).toEqual(ElementID.ADD_EMOTICON); }); it("should return null when a non-existing ElementID is given to the create function", function () { let esb = esbFactory.create(database, new ElementID(-1)); expect(esb).toEqual(null); }); it("should find the proper ESBData when given an ElementID", function () { let esb = esbFactory.findElementSelectionBehaviourData(ElementID.MERGE_PR); expect(esb.elementID.getElementID()).toEqual(ElementID.MERGE_PR.getElementID()); }); });
40,975
https://github.com/strawberry-graphql/strawberry/blob/master/strawberry/types/fields/resolver.py
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
strawberry
strawberry-graphql
Python
Code
970
3,098
from __future__ import annotations as _ import inspect import sys import warnings from functools import cached_property from inspect import isasyncgenfunction, iscoroutinefunction from typing import ( TYPE_CHECKING, Any, Callable, Dict, Generic, List, Mapping, NamedTuple, Optional, Tuple, TypeVar, Union, cast, ) from typing_extensions import Annotated, Protocol, get_args, get_origin from strawberry.annotation import StrawberryAnnotation from strawberry.arguments import StrawberryArgument from strawberry.exceptions import MissingArgumentsAnnotationsError from strawberry.type import StrawberryType, has_object_definition from strawberry.types.info import Info if TYPE_CHECKING: import builtins class Parameter(inspect.Parameter): def __hash__(self): """Override to exclude default value from hash. This adds compatibility for using unhashable default values in resolvers such as list and dict. The present use-case is limited to analyzing parameters from one resolver. Therefore, the name, kind, and annotation combination are guaranteed to be unique since two arguments cannot have the same name in a callable. Furthermore, even though it is not currently a use-case to collect parameters from different resolvers, the likelihood of collision from having the same hash value but different defaults is mitigated by Python invoking the :py:meth:`__eq__` method if two items have the same hash. See the verification of this behavior in the `test_parameter_hash_collision` test. """ return hash((self.name, self.kind, self.annotation)) class Signature(inspect.Signature): _parameter_cls = Parameter class ReservedParameterSpecification(Protocol): def find( self, parameters: Tuple[inspect.Parameter, ...], resolver: StrawberryResolver[Any], ) -> Optional[inspect.Parameter]: """Finds the reserved parameter from ``parameters``.""" class ReservedName(NamedTuple): name: str def find( self, parameters: Tuple[inspect.Parameter, ...], resolver: StrawberryResolver[Any], ) -> Optional[inspect.Parameter]: del resolver return next((p for p in parameters if p.name == self.name), None) class ReservedNameBoundParameter(NamedTuple): name: str def find( self, parameters: Tuple[inspect.Parameter, ...], resolver: StrawberryResolver[Any], ) -> Optional[inspect.Parameter]: del resolver if parameters: # Add compatibility for resolvers with no arguments first_parameter = parameters[0] return first_parameter if first_parameter.name == self.name else None else: return None class ReservedType(NamedTuple): """Define a reserved type by name or by type. To preserve backwards-comaptibility, if an annotation was defined but does not match :attr:`type`, then the name is used as a fallback. """ name: str type: type def find( self, parameters: Tuple[inspect.Parameter, ...], resolver: StrawberryResolver[Any], ) -> Optional[inspect.Parameter]: for parameter in parameters: annotation = resolver.strawberry_annotations[parameter] if isinstance(annotation, StrawberryAnnotation): try: evaled_annotation = annotation.evaluate() except NameError: continue else: if self.is_reserved_type(evaled_annotation): return parameter # Fallback to matching by name reserved_name = ReservedName(name=self.name).find(parameters, resolver) if reserved_name: warning = DeprecationWarning( f"Argument name-based matching of '{self.name}' is deprecated and will " "be removed in v1.0. Ensure that reserved arguments are annotated " "their respective types (i.e. use value: 'DirectiveValue[str]' instead " "of 'value: str' and 'info: Info' instead of a plain 'info')." ) warnings.warn(warning, stacklevel=3) return reserved_name else: return None def is_reserved_type(self, other: builtins.type) -> bool: origin = cast(type, get_origin(other)) or other if origin is Annotated: # Handle annotated arguments such as Private[str] and DirectiveValue[str] return any(isinstance(argument, self.type) for argument in get_args(other)) else: # Handle both concrete and generic types (i.e Info, and Info[Any, Any]) return ( issubclass(origin, self.type) if isinstance(origin, type) else origin is self.type ) SELF_PARAMSPEC = ReservedNameBoundParameter("self") CLS_PARAMSPEC = ReservedNameBoundParameter("cls") ROOT_PARAMSPEC = ReservedName("root") INFO_PARAMSPEC = ReservedType("info", Info) T = TypeVar("T") class StrawberryResolver(Generic[T]): RESERVED_PARAMSPEC: Tuple[ReservedParameterSpecification, ...] = ( SELF_PARAMSPEC, CLS_PARAMSPEC, ROOT_PARAMSPEC, INFO_PARAMSPEC, ) def __init__( self, func: Union[Callable[..., T], staticmethod, classmethod], *, description: Optional[str] = None, type_override: Optional[Union[StrawberryType, type]] = None, ): self.wrapped_func = func self._description = description self._type_override = type_override """Specify the type manually instead of calculating from wrapped func This is used when creating copies of types w/ generics """ # TODO: Use this when doing the actual resolving? How to deal with async resolvers? def __call__(self, *args: str, **kwargs: Any) -> T: if not callable(self.wrapped_func): raise UncallableResolverError(self) return self.wrapped_func(*args, **kwargs) @cached_property def signature(self) -> inspect.Signature: return Signature.from_callable(self._unbound_wrapped_func, follow_wrapped=True) # TODO: find better name @cached_property def strawberry_annotations( self, ) -> Dict[inspect.Parameter, Union[StrawberryAnnotation, None]]: return { p: ( StrawberryAnnotation(p.annotation, namespace=self._namespace) if p.annotation is not inspect.Signature.empty else None ) for p in self.signature.parameters.values() } @cached_property def reserved_parameters( self, ) -> Dict[ReservedParameterSpecification, Optional[inspect.Parameter]]: """Mapping of reserved parameter specification to parameter.""" parameters = tuple(self.signature.parameters.values()) return {spec: spec.find(parameters, self) for spec in self.RESERVED_PARAMSPEC} @cached_property def arguments(self) -> List[StrawberryArgument]: """Resolver arguments exposed in the GraphQL Schema.""" parameters = self.signature.parameters.values() reserved_parameters = set(self.reserved_parameters.values()) missing_annotations: List[str] = [] arguments: List[StrawberryArgument] = [] user_parameters = (p for p in parameters if p not in reserved_parameters) for param in user_parameters: annotation = self.strawberry_annotations[param] if annotation is None: missing_annotations.append(param.name) else: argument = StrawberryArgument( python_name=param.name, graphql_name=None, type_annotation=annotation, default=param.default, ) arguments.append(argument) if missing_annotations: raise MissingArgumentsAnnotationsError(self, missing_annotations) return arguments @cached_property def info_parameter(self) -> Optional[inspect.Parameter]: return self.reserved_parameters.get(INFO_PARAMSPEC) @cached_property def root_parameter(self) -> Optional[inspect.Parameter]: return self.reserved_parameters.get(ROOT_PARAMSPEC) @cached_property def self_parameter(self) -> Optional[inspect.Parameter]: return self.reserved_parameters.get(SELF_PARAMSPEC) @cached_property def name(self) -> str: # TODO: What to do if resolver is a lambda? return self._unbound_wrapped_func.__name__ # TODO: consider deprecating @cached_property def annotations(self) -> Dict[str, object]: """Annotations for the resolver. Does not include special args defined in `RESERVED_PARAMSPEC` (e.g. self, root, info) """ reserved_parameters = self.reserved_parameters reserved_names = {p.name for p in reserved_parameters.values() if p is not None} annotations = self._unbound_wrapped_func.__annotations__ annotations = { name: annotation for name, annotation in annotations.items() if name not in reserved_names } return annotations @cached_property def type_annotation(self) -> Optional[StrawberryAnnotation]: return_annotation = self.signature.return_annotation if return_annotation is inspect.Signature.empty: return None else: type_annotation = StrawberryAnnotation( annotation=return_annotation, namespace=self._namespace ) return type_annotation @property def type(self) -> Optional[Union[StrawberryType, type]]: if self._type_override: return self._type_override if self.type_annotation is None: return None return self.type_annotation.resolve() @cached_property def is_async(self) -> bool: return iscoroutinefunction(self._unbound_wrapped_func) or isasyncgenfunction( self._unbound_wrapped_func ) def copy_with( self, type_var_map: Mapping[str, Union[StrawberryType, builtins.type]] ) -> StrawberryResolver: type_override = None if self.type: if isinstance(self.type, StrawberryType): type_override = self.type.copy_with(type_var_map) elif has_object_definition(self.type): type_override = self.type.__strawberry_definition__.copy_with( type_var_map, ) other = type(self)( func=self.wrapped_func, description=self._description, type_override=type_override, ) # Resolve generic arguments for argument in other.arguments: if isinstance(argument.type, StrawberryType) and argument.type.is_generic: argument.type_annotation = StrawberryAnnotation( annotation=argument.type.copy_with(type_var_map), namespace=argument.type_annotation.namespace, ) return other @cached_property def _namespace(self) -> Dict[str, Any]: return sys.modules[self._unbound_wrapped_func.__module__].__dict__ @cached_property def _unbound_wrapped_func(self) -> Callable[..., T]: if isinstance(self.wrapped_func, (staticmethod, classmethod)): return self.wrapped_func.__func__ return self.wrapped_func class UncallableResolverError(Exception): def __init__(self, resolver: StrawberryResolver): message = ( f"Attempted to call resolver {resolver} with uncallable function " f"{resolver.wrapped_func}" ) super().__init__(message) __all__ = ["StrawberryResolver"]
33,513
https://github.com/regreceive/echoex/blob/master/src/routes/home/Home.scss
Github Open Source
Open Source
MIT
null
echoex
regreceive
SCSS
Code
13
36
.root { } .container { margin: 0 auto; padding: 0; max-width: 1920px; }
47,087
https://github.com/0xCopy/RelaxFactory/blob/master/rxf-guice/src/main/java/rxf/couch/guice/CouchServiceProvider.java
Github Open Source
Open Source
Apache-2.0
2,023
RelaxFactory
0xCopy
Java
Code
75
266
package rxf.couch.guice; import com.google.inject.Inject; import com.google.inject.Provider; import com.google.inject.name.Named; import rxf.couch.CouchService; import rxf.couch.CouchServiceFactory; import java.util.concurrent.ExecutionException; public class CouchServiceProvider<T extends CouchService<?>> implements Provider<T> { @Inject @Named(CouchModuleBuilder.NAMESPACE) private String namespace; private final Class<T> type; public CouchServiceProvider(Class<T> serviceType) { this.type = serviceType; } public T get() { try { return CouchServiceFactory.get(type, namespace); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (ExecutionException e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; } }
8,864
https://github.com/eruffaldi/depthcapture/blob/master/timingex.hpp
Github Open Source
Open Source
Apache-2.0
null
depthcapture
eruffaldi
C++
Code
378
1,024
/** * Simple class with statistics for service time and period */ #pragma once #include <iostream> #include <chrono> template <class T> struct UnitName { }; template <> struct UnitName<std::chrono::microseconds> { static constexpr const char * name = "us"; }; template <> struct UnitName<std::chrono::milliseconds> { static constexpr const char * name = "ms"; }; template <> struct UnitName<std::chrono::seconds> { static constexpr const char * name = "s"; }; struct Stat { double max_=0; double min_=0; double mean_=0; double m2_=0; int n_=0; double first_=0; double mean() const { return mean_; } double std() const { return n_ < 2 ? 0 : m2_/(n_-1); } double min() const { return min_; } double max() const { return max_; } int count() const { return n_; } void reset() { *this = Stat(); } void append(double e) { if(n_ == 0) { first_ = e; max_ = min_ = mean_ = e; m2_ = 0; n_ = 1; } else { max_ = max_ < e ? e: max_; min_ = min_ > e ? e: min_; n_++; auto d = e-mean_; mean_ += d/n_; m2_ += (e-mean_)*d; } } }; template <class T = std::chrono::steady_clock, class UT=std::chrono::milliseconds> struct PeriodTiming { public: using base_t = T; using time_t = typename T::time_point; PeriodTiming(std::string timer_name = "") : name(timer_name) { start_time = base_t::now(); } void reset() { *this = PeriodTiming(name); } void start() { auto now = base_t::now(); if (period.count() > 0) { auto time = std::chrono::duration_cast<UT>(now - start_time).count(); service_time.append(time); } start_time = now; } void stop() { double time = std::chrono::duration_cast<UT>(base_t::now() - start_time).count(); period.append(time); } void statreset() { period.reset(); service_time.reset(); } // double total_elapsed() const { // } int count() const { return period.count(); } std::string name; time_t start_time; // TODO really first time_t start_time; Stat period; Stat service_time; }; std::ostream & operator << (std::ostream & os, const Stat & t) { os << " n=" << t.count() << " mu=" << t.mean() << " stat=" << t.std() << " max=" << t.max() << " min=" << t.min(); return os; } template <class T,class U> std::ostream & operator << (std::ostream & os, const PeriodTiming<T,U> & t) { os << "PT[" << t.name << " in " << UnitName<U>::name << " period[" << t.period << "] servicetime[" << t.service_time << "]"; return os; }
5,045
https://github.com/wzh18188/NCBack/blob/master/public/theme/ncsd/sass/element/_table.scss
Github Open Source
Open Source
MIT
2,015
NCBack
wzh18188
SCSS
Code
102
408
.table { background-color: $white; margin-top: $line-height; margin-bottom: $line-height; width: 100%; td, th { border: 1px solid $black-bg; line-height: $line-height; padding: (($cell-height - $line-height) / 2) $grid-gutter (($cell-height - $line-height) / 2 - 1); vertical-align: top; &.nowrap { white-space: nowrap; width: 1%; } } > thead { td, th { background-color: $white-bg; color: $black-sec; vertical-align: bottom; } } } .table-stripe > tbody > tr:nth-child(odd) { background-color: $white-bg-light; } .table-hover > tbody > tr:hover { background-color: $white-bg-dark; } // responsive .table-responsive { margin-top: $line-height; margin-bottom: $line-height; min-height: 0.01%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; -ms-overflow-style: -ms-autohiding-scrollbar; .table { margin-top: 0; margin-bottom: 0; } }
49,523
https://github.com/alldatacenter/alldata/blob/master/ai/modelscope/modelscope/utils/chinese_utils.py
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause, MIT
2,023
alldata
alldatacenter
Python
Code
116
394
# Copyright (c) Alibaba, Inc. and its affiliates. def is_chinese_char(word: str): chinese_punctuations = { ',', '。', ';', ':' '!', '?', '《', '》', '‘', '’', '“', '”', '(', ')', '【', '】' } return len(word) == 1 \ and ('\u4e00' <= word <= '\u9fa5' or word in chinese_punctuations) def remove_space_between_chinese_chars(decoded_str: str): old_word_list = decoded_str.split(' ') new_word_list = [] start = -1 for i, word in enumerate(old_word_list): if is_chinese_char(word): if start == -1: start = i else: if start != -1: new_word_list.append(''.join(old_word_list[start:i])) start = -1 new_word_list.append(word) if start != -1: new_word_list.append(''.join(old_word_list[start:])) return ' '.join(new_word_list).strip() # add space for each chinese char def rebuild_chinese_str(string: str): return ' '.join(''.join([ f' {char} ' if is_chinese_char(char) else char for char in string ]).split())
8,196
https://github.com/matrixorigin/matrixcube/blob/master/components/prophet/prophet_handler.go
Github Open Source
Open Source
Apache-2.0
2,022
matrixcube
matrixorigin
Go
Code
1,304
4,406
// Copyright 2020 MatrixOrigin. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // See the License for the specific language governing permissions and // limitations under the License. package prophet import ( "errors" "fmt" "github.com/fagongzi/goetty" "github.com/matrixorigin/matrixcube/components/prophet/cluster" "github.com/matrixorigin/matrixcube/components/prophet/core" "github.com/matrixorigin/matrixcube/components/prophet/pb/metapb" "github.com/matrixorigin/matrixcube/components/prophet/pb/rpcpb" "github.com/matrixorigin/matrixcube/components/prophet/util" "go.uber.org/zap" ) type heartbeatStream struct { containerID uint64 rs goetty.IOSession } func (hs heartbeatStream) Send(resp *rpcpb.ResourceHeartbeatRsp) error { rsp := &rpcpb.Response{} rsp.Type = rpcpb.TypeResourceHeartbeatRsp rsp.ResourceHeartbeat = *resp return hs.rs.WriteAndFlush(rsp) } func (p *defaultProphet) handleRPCRequest(rs goetty.IOSession, data interface{}, received uint64) error { req := data.(*rpcpb.Request) if req.Type == rpcpb.TypeRegisterContainer { p.hbStreams.BindStream(req.ContainerID, &heartbeatStream{containerID: req.ContainerID, rs: rs}) p.logger.Info("heartbeat stream binded", zap.Uint64("contianer", req.ContainerID)) return nil } p.logger.Debug("rpc request received", zap.Uint64("id", req.ID), zap.String("from", rs.RemoteAddr()), zap.String("type", req.Type.String())) if p.cfg.Prophet.DisableResponse { p.logger.Debug("skip response") return nil } doResponse := true resp := &rpcpb.Response{} resp.ID = req.ID rc := p.GetRaftCluster() if p.cfg.Prophet.EnableResponseNotLeader || rc == nil || (p.member != nil && !p.member.IsLeader()) { resp.Error = util.ErrNotLeader.Error() resp.Leader = p.member.GetLeader().GetAddr() return rs.WriteAndFlush(resp) } switch req.Type { case rpcpb.TypePutContainerReq: resp.Type = rpcpb.TypePutContainerRsp err := p.handlePutContainer(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeResourceHeartbeatReq: resp.Type = rpcpb.TypeResourceHeartbeatRsp err := p.handleResourceHeartbeat(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeContainerHeartbeatReq: resp.Type = rpcpb.TypeContainerHeartbeatRsp err := p.handleContainerHeartbeat(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeCreateDestroyingReq: resp.Type = rpcpb.TypeCreateDestroyingRsp err := p.handleCreateDestroying(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeReportDestroyedReq: resp.Type = rpcpb.TypeReportDestroyedRsp err := p.handleReportDestroyed(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeGetDestroyingReq: resp.Type = rpcpb.TypeGetDestroyingRsp err := p.handleGetDestroying(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeAllocIDReq: resp.Type = rpcpb.TypeAllocIDRsp err := p.handleAllocID(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeGetContainerReq: resp.Type = rpcpb.TypeGetContainerRsp err := p.handleGetContainer(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeAskBatchSplitReq: resp.Type = rpcpb.TypeAskBatchSplitRsp err := p.handleAskBatchSplit(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeCreateWatcherReq: resp.Type = rpcpb.TypeEventNotify p.mu.RLock() wn := p.mu.wn p.mu.RUnlock() if wn != nil { err := wn.handleCreateWatcher(req, resp, rs) if err != nil { return err } } else { return fmt.Errorf("leader not init completed") } case rpcpb.TypeCreateResourcesReq: resp.Type = rpcpb.TypeCreateResourcesRsp err := p.handleCreateResources(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeRemoveResourcesReq: resp.Type = rpcpb.TypeRemoveResourcesRsp err := p.handleRemoveResources(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeCheckResourceStateReq: resp.Type = rpcpb.TypeCheckResourceStateRsp err := p.handleCheckResourceState(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypePutPlacementRuleReq: resp.Type = rpcpb.TypePutPlacementRuleRsp err := p.handlePutPlacementRule(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeGetAppliedRulesReq: resp.Type = rpcpb.TypeGetAppliedRulesRsp err := p.handleGetAppliedRule(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeCreateJobReq: resp.Type = rpcpb.TypeCreateJobRsp err := p.handleCreateJob(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeRemoveJobReq: resp.Type = rpcpb.TypeCreateJobRsp err := p.handleRemoveJob(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeExecuteJobReq: resp.Type = rpcpb.TypeExecuteJobRsp err := p.handleExecuteJob(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeAddScheduleGroupRuleReq: resp.Type = rpcpb.TypeAddScheduleGroupRuleRsp err := p.handleAddScheduleGroupRule(rc, req, resp) if err != nil { resp.Error = err.Error() } case rpcpb.TypeGetScheduleGroupRuleReq: resp.Type = rpcpb.TypeGetScheduleGroupRuleRsp err := p.handleGetScheduleGroupRule(rc, req, resp) if err != nil { resp.Error = err.Error() } default: return fmt.Errorf("type %s not support", req.Type.String()) } if doResponse { p.logger.Debug("send rpc response", zap.Uint64("id", req.ID), zap.String("to", rs.RemoteAddr()), zap.String("type", req.Type.String())) return rs.WriteAndFlush(resp) } return nil } func (p *defaultProphet) handlePutContainer(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { meta := p.cfg.Prophet.Adapter.NewContainer() err := meta.Unmarshal(req.PutContainer.Container) if err != nil { return err } if err := checkContainer(rc, meta.ID()); err != nil { return err } if err := rc.PutContainer(meta); err != nil { return err } return nil } func (p *defaultProphet) handleResourceHeartbeat(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { meta := p.cfg.Prophet.Adapter.NewResource() err := meta.Unmarshal(req.ResourceHeartbeat.Resource) if err != nil { return err } storeID := req.ResourceHeartbeat.GetLeader().GetContainerID() store := rc.GetContainer(storeID) if store == nil { return fmt.Errorf("invalid contianer ID %d, not found", storeID) } res := core.ResourceFromHeartbeat(req.ResourceHeartbeat, meta) if res.GetLeader() == nil { err := errors.New("invalid request, the leader is nil") p.logger.Error("invalid request, the leader is nil") return err } if res.Meta.ID() == 0 { return fmt.Errorf("invalid request resource, %v", res.Meta) } // If the resource peer count is 0, then we should not handle this. if len(res.Meta.Peers()) == 0 { err := errors.New("invalid resource, zero resource peer count") p.logger.Warn("invalid resource, zero resource peer count", zap.Uint64("resource", res.Meta.ID())) return err } return rc.HandleResourceHeartbeat(res) } func (p *defaultProphet) handleContainerHeartbeat(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { if err := checkContainer(rc, req.ContainerHeartbeat.Stats.ContainerID); err != nil { return err } err := rc.HandleContainerHeartbeat(&req.ContainerHeartbeat.Stats) if err != nil { return err } if p.cfg.Prophet.ContainerHeartbeatDataProcessor != nil { data, err := p.cfg.Prophet.ContainerHeartbeatDataProcessor.HandleHeartbeatReq(req.ContainerHeartbeat.Stats.ContainerID, req.ContainerHeartbeat.Data, p.GetStorage()) if err != nil { return err } resp.ContainerHeartbeat.Data = data } return nil } func (p *defaultProphet) handleCreateDestroying(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { state, err := rc.HandleCreateDestroying(req.CreateDestroying) if err != nil { return err } resp.CreateDestroying.State = state return nil } func (p *defaultProphet) handleGetDestroying(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { status, err := rc.HandleGetDestroying(req.GetDestroying) if err != nil { return err } resp.GetDestroying.Status = status return nil } func (p *defaultProphet) handleReportDestroyed(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { state, err := rc.HandleReportDestroyed(req.ReportDestroyed) if err != nil { return err } resp.ReportDestroyed.State = state return nil } func (p *defaultProphet) handleGetContainer(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { storeID := req.GetContainer.ID store := rc.GetContainer(storeID) if store == nil { return fmt.Errorf("invalid container ID %d, not found", storeID) } data, err := store.Meta.Marshal() if err != nil { return err } resp.GetContainer.Data = data resp.GetContainer.Stats = store.GetContainerStats() return nil } func (p *defaultProphet) handleAllocID(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { id, err := p.storage.KV().AllocID() if err != nil { return err } resp.AllocID.ID = id return nil } func (p *defaultProphet) handleAskBatchSplit(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { split, err := rc.HandleAskBatchSplit(req) if err != nil { return err } resp.AskBatchSplit = *split return nil } func (p *defaultProphet) handleCreateResources(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { rsp, err := rc.HandleCreateResources(req) if err != nil { return err } resp.CreateResources = *rsp return nil } func (p *defaultProphet) handleRemoveResources(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { rsp, err := rc.HandleRemoveResources(req) if err != nil { return err } resp.RemoveResources = *rsp return nil } func (p *defaultProphet) handleCheckResourceState(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { rsp, err := rc.HandleCheckResourceState(req) if err != nil { return err } resp.CheckResourceState = *rsp return nil } func (p *defaultProphet) handlePutPlacementRule(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { return rc.HandlePutPlacementRule(req) } func (p *defaultProphet) handleGetAppliedRule(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { rsp, err := rc.HandleAppliedRules(req) if err != nil { return err } resp.GetAppliedRules = *rsp return nil } func (p *defaultProphet) handleAddScheduleGroupRule(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { err := rc.HandleAddScheduleGroupRule(req) if err != nil { return err } return nil } func (p *defaultProphet) handleGetScheduleGroupRule(rc *cluster.RaftCluster, req *rpcpb.Request, resp *rpcpb.Response) error { rules, err := rc.HandleGetScheduleGroupRule(req) if err != nil { return err } resp.GetScheduleGroupRule.Rules = rules return nil } // checkContainer returns an error response if the store exists and is in tombstone state. // It returns nil if it can't get the store. func checkContainer(rc *cluster.RaftCluster, storeID uint64) error { store := rc.GetContainer(storeID) if store != nil { if store.GetState() == metapb.ContainerState_Tombstone { return errors.New("container is tombstone") } } return nil }
32,477
https://github.com/somjade/scbs_google-bigquery/blob/master/bigquery-job.sh
Github Open Source
Open Source
MIT
2,022
scbs_google-bigquery
somjade
Shell
Code
129
377
#!/usr/bin/env bash dockerimage="openbridge/ob_google-bigquery" args=("$@") function mode() { if [[ ${args[0]} = "prod" ]]; then MODE="prod" && export MODE=${1}; else export MODE="test"; fi if [[ -z ${args[1]} ]]; then START=$(date -d "1 day ago" "+%Y-%m-%d"); else START="${args[1]}" && echo "OK: START date passed... "; fi if [[ -z ${args[2]} ]]; then END=$(date -d "1 day ago" "+%Y-%m-%d"); else END="${args[2]}" && echo "OK: END date passed... "; fi } function process() { for i in ./env/prod/*.env; do echo "working on $i" bash -c "docker run -it -v /Users/thomas/Documents/github/ob_google-cloud/auth/prod/prod.json:/auth.json -v /Users/thomas/Documents/github/ob_google-cloud/sql:/sql --env-file ${i} ${dockerimage} bigquery-run ${MODE} ${START} ${END}" if [[ $? = 0 ]]; then echo "OK: "; else echo "ERROR: "; fi done } function run() { mode "$@" process echo "OK: All processes have completed." } run "$@" exit 0
24,216
https://github.com/isopov/kubernetes-client-java/blob/master/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java
Github Open Source
Open Source
Apache-2.0
2,021
kubernetes-client-java
isopov
Java
Code
183
1,007
package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; import java.lang.Boolean; public class V1ResourceFieldSelectorBuilder extends io.kubernetes.client.openapi.models.V1ResourceFieldSelectorFluentImpl<io.kubernetes.client.openapi.models.V1ResourceFieldSelectorBuilder> implements io.kubernetes.client.fluent.VisitableBuilder<io.kubernetes.client.openapi.models.V1ResourceFieldSelector,io.kubernetes.client.openapi.models.V1ResourceFieldSelectorBuilder> { io.kubernetes.client.openapi.models.V1ResourceFieldSelectorFluent<?> fluent; java.lang.Boolean validationEnabled; public V1ResourceFieldSelectorBuilder() { this(true); } public V1ResourceFieldSelectorBuilder(java.lang.Boolean validationEnabled) { this(new V1ResourceFieldSelector(), validationEnabled); } public V1ResourceFieldSelectorBuilder(io.kubernetes.client.openapi.models.V1ResourceFieldSelectorFluent<?> fluent) { this(fluent, true); } public V1ResourceFieldSelectorBuilder(io.kubernetes.client.openapi.models.V1ResourceFieldSelectorFluent<?> fluent,java.lang.Boolean validationEnabled) { this(fluent, new V1ResourceFieldSelector(), validationEnabled); } public V1ResourceFieldSelectorBuilder(io.kubernetes.client.openapi.models.V1ResourceFieldSelectorFluent<?> fluent,io.kubernetes.client.openapi.models.V1ResourceFieldSelector instance) { this(fluent, instance, true); } public V1ResourceFieldSelectorBuilder(io.kubernetes.client.openapi.models.V1ResourceFieldSelectorFluent<?> fluent,io.kubernetes.client.openapi.models.V1ResourceFieldSelector instance,java.lang.Boolean validationEnabled) { this.fluent = fluent; fluent.withContainerName(instance.getContainerName()); fluent.withDivisor(instance.getDivisor()); fluent.withResource(instance.getResource()); this.validationEnabled = validationEnabled; } public V1ResourceFieldSelectorBuilder(io.kubernetes.client.openapi.models.V1ResourceFieldSelector instance) { this(instance,true); } public V1ResourceFieldSelectorBuilder(io.kubernetes.client.openapi.models.V1ResourceFieldSelector instance,java.lang.Boolean validationEnabled) { this.fluent = this; this.withContainerName(instance.getContainerName()); this.withDivisor(instance.getDivisor()); this.withResource(instance.getResource()); this.validationEnabled = validationEnabled; } public io.kubernetes.client.openapi.models.V1ResourceFieldSelector build() { V1ResourceFieldSelector buildable = new V1ResourceFieldSelector(); buildable.setContainerName(fluent.getContainerName()); buildable.setDivisor(fluent.getDivisor()); buildable.setResource(fluent.getResource()); return buildable; } public boolean equals(java.lang.Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; V1ResourceFieldSelectorBuilder that = (V1ResourceFieldSelectorBuilder) o; if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false; if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false; return true; } public int hashCode() { return java.util.Objects.hash(fluent, validationEnabled, super.hashCode()); } }
19,810
https://github.com/ikoblik/Entwined-STM/blob/master/src/test/java/cern/entwined/AllSTMTests.java
Github Open Source
Open Source
Apache-2.0
2,013
Entwined-STM
ikoblik
Java
Code
141
439
/* * Entwined STM * * (c) Copyright 2013 CERN. This software is distributed under the terms of the Apache License Version 2.0, copied * verbatim in the file "COPYING". In applying this licence, CERN does not waive the privileges and immunities granted * to it by virtue of its status as an Intergovernmental Organization or submit itself to any jurisdiction. */ package cern.entwined; import junit.framework.JUnit4TestAdapter; import junit.framework.Test; import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; import cern.entwined.exception.ConflictExceptionTest; import cern.entwined.exception.InvocationExceptionTest; import cern.entwined.exception.MemoryExceptionTest; import cern.entwined.exception.NoTransactionExceptionTest; /** * The route of all the STM unit tests. * * @author Ivan Koblik */ @RunWith(Suite.class) @SuiteClasses({ TransactionalMapTest.class, TransactionalRefTest.class, NodeTest.class, MemoryTest.class, SnapshotTest.class, CompositeCollectionTest.class, MemoryExceptionTest.class, ConflictExceptionTest.class, NoTransactionExceptionTest.class, InvocationExceptionTest.class, GlobalReferenceTest.class, BaseSnapshotTest.class, STMUtilsTest.class, TransactionAdapterTest.class, TransactionalQueueTest.class, TransactionalMultimapTest.class, TransactionClosureTest.class, UtilsTest.class }) public class AllSTMTests { /** * Method for JUint 3 compatibility. */ public static Test suite() { return new JUnit4TestAdapter(AllSTMTests.class); } }
10,958
https://github.com/rareseanu/Kastel-Planner/blob/master/Frontend/src/app/role-form/role-form.component.ts
Github Open Source
Open Source
MIT
2,021
Kastel-Planner
rareseanu
TypeScript
Code
316
1,127
import { ChangeDetectionStrategy, Component, EventEmitter, forwardRef, OnInit, Output } from '@angular/core'; import { FormBuilder, FormControl, FormGroup, NG_VALIDATORS, NG_VALUE_ACCESSOR } from '@angular/forms'; import { Subscription } from 'rxjs'; import { RegisterService } from '../shared/register.service'; import { Role } from '../shared/role.model'; export interface RoleFormValues { id: string; roleName: string; } @Component({ selector: 'app-role-form', templateUrl: './role-form.component.html', styleUrls: ['./role-form.component.css'], providers: [ { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => RoleFormComponent), multi: true }, { provide: NG_VALIDATORS, useExisting: forwardRef(() => RoleFormComponent), multi: true, } ], changeDetection: ChangeDetectionStrategy.OnPush }) export class RoleFormComponent implements OnInit { rolesInDropdown : RoleFormValues[]; roleForm: FormGroup; loading = false; submitted = false; returnUrl: string; error: string; subscriptions: Subscription[] = []; constructor(private registerService: RegisterService, private formBuilder: FormBuilder) { this.displayRoles(); this.roleForm = this.formBuilder.group({ id: [], roleName: [] }); this.subscriptions.push( this.roleForm.valueChanges.subscribe(value => { this.onChange(value); this.onTouched(); }) ); } get value(): RoleFormComponent { return this.roleForm.value; } set value(value: RoleFormComponent) { this.roleForm.setValue(value); this.onChange(value); this.onTouched(); } onChange: any = () => {}; onTouched: any = () => {}; writeValue(value: any) { if (value) { this.value = value; } } ngOnDestroy() { this.subscriptions.forEach(s => s.unsubscribe()); } registerOnChange(fn: any) { this.onChange = fn; } registerOnTouched(fn: any) { this.onTouched = fn; } // communicate the inner form validation to the parent form validate(_: FormControl) { return this.roleForm.valid ? null : { role: { valid: false } }; } displayRoles():void{ this.registerService.getRolesFromAPI(). subscribe(data => { if(data) { this.rolesInDropdown = data; console.log(this.rolesInDropdown); } } ); } //methods to get dropdown values dropDownRole: string; status: RoleFormValues; selectedHandlerRoleName(event : any) { if(event.target.value != 'default') { this.dropDownRole = event.target.value;} else {this.dropDownRole = ''; } this.setSelectedRoleName(this.dropDownRole); } dropDownRoleNanme: string; setSelectedRoleName(value: string): void { if (this.rolesInDropdown && value) { let status = this.rolesInDropdown.find(s => s.id == value); if (status) this.dropDownRoleNanme = status.roleName; } else this.dropDownRoleNanme = ''; } @Output() sendSelectedRoleNameEmmiter = new EventEmitter(); selectedRoleName() : void{ this.sendSelectedRoleNameEmmiter.emit(this.dropDownRoleNanme); } @Output() roleClickedEmitter = new EventEmitter(); onRoleSelected(value:string){ this.roleClickedEmitter.emit(value); } selected(){ return this.dropDownRole; } ngOnInit(): void { this.displayRoles(); this.onRoleSelected(this.dropDownRole); } }
38,622
https://github.com/jaredjj3/stringsync/blob/master/api/src/util/identity.ts
Github Open Source
Open Source
MIT
2,021
stringsync
jaredjj3
TypeScript
Code
9
17
export const identity = <T>(i: T): T => i;
27,069
https://github.com/primefaces/primevue/blob/master/api-generator/components/menubar.js
Github Open Source
Open Source
MIT
2,023
primevue
primefaces
JavaScript
Code
157
414
const MenubarProps = [ { name: 'modelValue', type: 'array', default: 'null', description: 'An array of menuitems.' }, { name: 'exact', type: 'boolean', default: 'true', description: "Whether to apply 'router-link-active-exact' class if route exactly matches the item path." }, { name: 'pt', type: 'any', default: 'null', description: 'Used to pass attributes to DOM elements inside the component.' }, { name: 'unstyled', type: 'boolean', default: 'false', description: 'When enabled, it removes component related styles in the core.' } ]; const MenubarSlots = [ { name: 'start', description: 'Custom content before the content.' }, { name: 'end', description: 'Custom content after the content.' }, { name: 'item', description: 'Custom menuitem template.' }, { name: 'baricon', description: 'Custom bar icon template.' }, { name: 'submenuicon', description: 'Custom submenu icon template.' }, { name: 'itemicon', description: 'Custom item icon template.' } ]; module.exports = { menubar: { name: 'Menubar', description: 'Menubar is a horizontal menu component.', props: MenubarProps, slots: MenubarSlots } };
11,967
https://github.com/glucaci/CrystalQuartz/blob/master/src/CrystalQuartz.Application.Client/app/offline-mode/offline-mode-view.ts
Github Open Source
Open Source
MIT
2,022
CrystalQuartz
glucaci
TypeScript
Code
39
224
import TEMPLATE from './offline-mode.tmpl.html'; import { OfflineModeViewModel } from "./offline-mode-view-model"; export class OfflineModeView implements js.IView<OfflineModeViewModel> { template = TEMPLATE; init(dom: js.IDom, viewModel: OfflineModeViewModel) { setTimeout(() => dom.root.$.addClass('visible'), 100); dom('.js_since').observes(viewModel.since); dom('.js_address').observes(viewModel.serverUrl); dom('.js_retryIn').observes(viewModel.retryIn); const $retryNow = dom('.js_retryNow'); $retryNow.on('click').react(viewModel.retryNow); $retryNow.className('disabled').observes(viewModel.isInProgress); } }
50,107
https://github.com/januarbr/web-mikasi/blob/master/resources/views/admin/materi/framework/create.blade.php
Github Open Source
Open Source
MIT
null
web-mikasi
januarbr
PHP
Code
126
606
@extends('layouts.admin') @section('content') <!-- Begin Page Content --> <div class="container-fluid"> <!-- Page Heading --> <div class="d-sm-flex align-items-center justify-content-between mb-4"> <h1 class="h3 mb-0 text-gray-800">Tammbah Materi Matakuliah</h1> </div> @if ($errors->any()) <div class="alert alert-danger"> <ul> @foreach($errors->all() as $error) <li>{{$error}}</li> @endforeach </ul> </div> @endif <div class="card shadow"> <div class="card-body"> <form action="{{route('framework.store')}}" method="post" > @csrf <div class="form-group"> <label for="jurusan">Jurusan</label> <input type="text" name="jurusan" class="form-control" placeholder="MI,KA,SI" value="{{old('jurusan')}}"> </div> <div class="form-group"> <label for="semester">semester</label> <input type="text" name="semester" class="form-control" placeholder="semester(Angka)" value="{{old('semester')}}"> </div> <div class="form-group"> <label for="matkul">Mata Kuliah</label> <input type="text" name="matkul" class="form-control" placeholder="Mata Kuliah (Menggunakan Huruf Kapital)" value="{{old('matkul')}}"> </div> <div class="form-group"> <label for="tema">Tema</label> <input type="text" name="tema" class="form-control" placeholder="Tema Materi" value="{{old('tema')}}"> </div> <div class="form-group"> <label for="file">LInk File</label> <input type="link" name="link" class="form-control" placeholder="Link Materi" value="{{old('link')}}"> </div> <button class="btn btn-primary btn-block"> Simpan </button> </form> </div> </div> </div> <!-- /.container-fluid --> @endsection
30,603
https://github.com/MISTikus/ToDoApp/blob/master/ToDoApp/Models/ToDoItem.cs
Github Open Source
Open Source
MIT
2,021
ToDoApp
MISTikus
C#
Code
25
62
using System; namespace ToDoApp { public record ToDoItem( Guid Id, DateTime Created, string Name, string Content, ToDoState State = ToDoState.Created, DateTime? Archived = null); }
38,834
https://github.com/Llelepipede/projet_web_SOLO/blob/master/storage/framework/views/89709529dbce6ef5a7bc0e3fd98d36ad75ace5b8.php
Github Open Source
Open Source
MIT
null
projet_web_SOLO
Llelepipede
PHP
Code
38
223
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <?php echo $__env->make('header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->yieldContent('contenu'); ?> <?php echo $__env->make('footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </body> </html><?php /**PATH C:\Users\pches\Desktop\projet_tech_web\bonjour\projet\resources\views/layout.blade.php ENDPATH**/ ?>
2,615
https://github.com/message-blocks/ramco/blob/master/lib/ramco/version.rb
Github Open Source
Open Source
MIT
2,023
ramco
message-blocks
Ruby
Code
6
20
class Ramco VERSION = "0.2.4" end
4,679
https://github.com/Heufneutje/WinWeeRelay/blob/master/WinWeelay.Utils/ChangeTrackingIgnoreAttribute.cs
Github Open Source
Open Source
MIT
null
WinWeeRelay
Heufneutje
C#
Code
27
72
using System; namespace WinWeelay.Utils { /// <summary> /// Attribute to exclude a property from change tracking. /// </summary> [AttributeUsage(AttributeTargets.Property)] public class ChangeTrackingIgnoreAttribute : Attribute { } }
38,736
https://github.com/GarciaLab/mRNADynamics/blob/master/src/deprecated/FixLineage.m
Github Open Source
Open Source
MIT
2,021
mRNADynamics
GarciaLab
MATLAB
Code
1,277
6,361
function schnitzcells=FixLineage(Prefix, FrameInfo) % Finds the times of cell division (by using nuclei radius, % and orphan the nuclei if they survive mitosis) % Note: This function has many nested functions, which are a bit % complicated in Matlab. % TrackNucleiDV(Prefix); %% Extract all data %Get the folders, including the default Dropbox one [SourcePath,FISHPath,DefaultDropboxFolder,MS2CodePath,PreProcPath]=... DetermineLocalFolders; %Now get the actual DropboxFolder [SourcePath,FISHPath,DropboxFolder,MS2CodePath,PreProcPath]=... DetermineLocalFolders(Prefix); %Determine division times %Load the information about the nc from the XLS file [Num,Txt,XLSRaw]=xlsread([DefaultDropboxFolder,filesep,'MovieDatabase.xlsx']); XLSHeaders=Txt(1,:); Txt=Txt(2:end,:); ExperimentTypeColumn= strcmp(XLSRaw(1,:),'ExperimentType'); ExperimentAxisColumn=find(strcmp(XLSRaw(1,:),'ExperimentAxis')); DataFolderColumn=find(strcmp(XLSRaw(1,:),'DataFolder')); Dashes=findstr(Prefix,'-'); PrefixRow=find(strcmp(XLSRaw(:,DataFolderColumn),[Prefix(1:Dashes(3)-1),'\',Prefix(Dashes(3)+1:end)])); if isempty(PrefixRow) PrefixRow=find(strcmp(XLSRaw(:,DataFolderColumn),[Prefix(1:Dashes(3)-1),'/',Prefix(Dashes(3)+1:end)])); if isempty(PrefixRow) error('Could not find data set in MovieDatabase.XLSX. Check if it is defined there.') end end ExperimentType=XLSRaw{PrefixRow,ExperimentTypeColumn}; ExperimentAxis=XLSRaw{PrefixRow,ExperimentAxisColumn}; %Find the different columns. DataFolderColumn=find(strcmp(XLSRaw(1,:),'DataFolder')); nc9Column= strcmp(XLSRaw(1,:),'nc9'); nc10Column= strcmp(XLSRaw(1,:),'nc10'); nc11Column= strcmp(XLSRaw(1,:),'nc11'); nc12Column= strcmp(XLSRaw(1,:),'nc12'); nc13Column= strcmp(XLSRaw(1,:),'nc13'); nc14Column= strcmp(XLSRaw(1,:),'nc14'); CFColumn= strcmp(XLSRaw(1,:),'CF'); Channel1Column=find(strcmp(XLSRaw(1,:),'Channel1')); Channel2Column=find(strcmp(XLSRaw(1,:),'Channel2')); %Find the corresponding entry in the XLS file if (~isempty(findstr(Prefix,'Bcd')))&&(isempty(findstr(Prefix,'BcdE1')))&&... (isempty(findstr(Prefix,'NoBcd')))&&(isempty(findstr(Prefix,'Bcd1x')))&&(isempty(findstr(Prefix,'Bcd4x'))) warning('This step in CheckParticleTracking will most likely have to be modified to work') XLSEntry=find(strcmp(XLSRaw(:,DataFolderColumn),... [Date,'\BcdGFP-HisRFP'])); else XLSEntry=find(strcmp(XLSRaw(:,DataFolderColumn),... [Prefix(1:Dashes(3)-1),'\',Prefix(Dashes(3)+1:end)])); if isempty(XLSEntry) XLSEntry=find(strcmp(XLSRaw(:,DataFolderColumn),... [Prefix(1:Dashes(3)-1),'/',Prefix(Dashes(3)+1:end)])); if isempty(XLSEntry) disp('%%%%%%%%%%%%%%%%%%%%%') error('Dateset could not be found. Check MovieDatabase.xlsx') disp('%%%%%%%%%%%%%%%%%%%%%') end end end nc9 =XLSRaw{XLSEntry,nc9Column}; nc10=XLSRaw{XLSEntry,nc10Column}; nc11=XLSRaw{XLSEntry,nc11Column}; nc12=XLSRaw{XLSEntry,nc12Column}; nc13=XLSRaw{XLSEntry,nc13Column}; nc14=XLSRaw{XLSEntry,nc14Column}; CF =XLSRaw{XLSEntry,CFColumn}; %This checks whether all ncs have been defined ncCheck=[nc9,nc10,nc11,nc12,nc13,nc14]; if length(ncCheck)~=6 error('Check the nc frames in the MovieDatabase entry. Some might be missing') end %Do we need to convert any NaN chars into doubles? if strcmpi(nc14,'nan') nc14=nan; end if strcmpi(nc13,'nan') nc13=nan; end if strcmpi(nc12,'nan') nc12=nan; end if strcmpi(nc11,'nan') nc11=nan; end if strcmpi(nc10,'nan') nc10=nan; end if strcmpi(nc9,'nan') nc9=nan; end %Convert the prefix into the string used in the XLS file Dashes=findstr(Prefix,'-'); %Find the corresponding entry in the XLS file if (~isempty(findstr(Prefix,'Bcd')))&(isempty(findstr(Prefix,'BcdE1')))&... (isempty(findstr(Prefix,'NoBcd')))&(isempty(findstr(Prefix,'Bcd1')))&(isempty(findstr(Prefix,'Bcd4x'))) XLSEntry=find(strcmp(Txt(:,DataFolderColumn),... [Date,'\BcdGFP-HisRFP'])); else XLSEntry=find(strcmp(Txt(:,DataFolderColumn),... [Prefix(1:Dashes(3)-1),filesep,Prefix(Dashes(3)+1:end)])); end ncs=[nc9,nc10,nc11,nc12,nc13,nc14]; if (length(find(isnan(ncs)))==length(ncs))||(length(ncs)<6) error('Have the ncs been defined in MovieDatabase.XLSX?') end %Now do the nuclear segmentation and lineage tracking. This should be put %into an independent function. %% Load the lineage and save a backup % (it is recommende to use Dropbox for version control) load([DropboxFolder,filesep,Prefix,filesep,Prefix,'_lin.mat']); cpexist=true; % Does Compiled Particles Exist? try load([DropboxFolder,filesep,Prefix,filesep,'Particles.mat']); save([DropboxFolder,filesep,Prefix,filesep,'Particles_backup.mat'],Particles); cpexist=true; catch cpexist=false; end load([DropboxFolder,filesep,Prefix,filesep,'FrameInfo.mat']); % The following are counter variables that are used to track how many times % parts of the code have been run. So basically, they serve no utility DaughtersOlderThanParents=0; % Number of daughter cells with associated parents that appear in a frame later than themselves. Obvious error, should be 0 NumberOfStitchesPerformed=0; % Number of times pairs of traces of nuclei and associated particles have been stitched SortErrors=0; % The number of times the schnitzcells after sort are not the same size as the schnitzcells before NumberOfStitchMismatches=0; % The number of times the traces being stitched have different parent cells. Some of the parent information will be lost % schnitz_stitch is a nested function that stitches traces that are close % by and such that the beginning of the second comes right after the end of % the first schnitzcells=schnitz_stitch(schnitzcells,ncs); % schnitz_sort is a nested function that sorts the lineage data according % to the first frame in which they appear schnitzcells=schnitz_sort(schnitzcells); AdditionalSchnitzes=0; % Number of new schnitzcell elements introduced NumberOfSchnitzes=size(schnitzcells,2); % Original Number of schnitzcell elements %% Remove nuclei that appear and disappear % This section removes the nuclei that appear only for a short while at the % edges, before disappearing beyond the frame of view margins=5; % Choose (in number of pixels) the space to be ignored when fixing lineage % Instead of a for loop, I use a while loop iterating over the index % variable i i=1; while(i<NumberOfSchnitzes) % We can choose how short a trace needs to be before it is suspect if length(schnitzcells(i).frames)<5 % We only look at the schnitzes that disappear at the margins if (any(schnitzcells(i).cenx<margins) || ... any(schnitzcells(i).cenx>(FrameInfo(1).LinesPerFrame-margins)) ||... any(schnitzcells(i).ceny<margins) ||... any(schnitzcells(i).ceny>(FrameInfo(1).LinesPerFrame-margins))) % Instead of deleting, we make the frames an Inf value. % We later remove all such schnitzes. This is done so as not % to mess up the indices schnitzcells(i).frames=Inf; % If the schnitz has associated parents or daughters, an empty % matrix is put in its place if ~isempty(schnitzcells(i).P) parent_del=schnitzcells(i).P; if schnitzcells(parent_del).D==i schnitzcells(parent_del).D=[]; elseif schnitzcells(parent_del).E==i schnitzcells(parent_del).E=[]; end end if ~isempty(schnitzcells(i).D) child_del=schnitzcells(i).D; schnitzcells(child_del).P=[]; end if ~isempty(schnitzcells(i).E) child_del=schnitzcells(i).E; schnitzcells(child_del).P=[]; end end end i=i+1; end %% Schnitz Splits % The schnitz traces are now split if they go across a nuclear cycle % There are a few parameters to tweak here that are dependent on % TimeResolution TimeResolution=20; i=1; while(i<NumberOfSchnitzes) % Check ncs t=i; for nc=1:length(ncs) if isempty(schnitzcells(i).frames) schnitzcells(i).frames=Inf; end if (min(schnitzcells(i).frames) <ncs(nc)-(2*20/TimeResolution)) && ... (max(schnitzcells(i).frames) >ncs(nc)+(8*20/TimeResolution)) AdditionalSchnitzes=AdditionalSchnitzes+1; % This is only for counting schnitzcells(NumberOfSchnitzes+1)=schnitzcells(i); schnitzcells(i).E=NumberOfSchnitzes+1; schnitzcells(i).D=[]; schnitzcells(NumberOfSchnitzes+1).P=i; % The schnitz trace before the split FramesBeforeSplit=schnitzcells(i).frames(schnitzcells(i).frames<ncs(nc)); [~,SplitFrame]=max(FramesBeforeSplit); % SplitFrame is the exact frame where the split takes place ParticleIndices=[]; % Particles associated with the current nucleus if cpexist for ii=1:size(Particles,2) if Particles(ii).Nucleus==i ParticleIndices=[ParticleIndices ii]; end end end temp=schnitzcells(i); % The splitting, with corner cases for splits at beginning or % end if ~isempty(temp.frames(1:SplitFrame)) schnitzcells(i).frames=temp.frames(1:SplitFrame); schnitzcells(i).cenx=temp.cenx(1:SplitFrame); schnitzcells(i).ceny=temp.ceny(1:SplitFrame); schnitzcells(i).len=temp.len(1:SplitFrame); schnitzcells(i).cellno=temp.cellno(1:SplitFrame); if ~isempty(temp.frames(SplitFrame+1:end)) schnitzcells(NumberOfSchnitzes+1).frames=temp.frames(SplitFrame+1:end); schnitzcells(NumberOfSchnitzes+1).cenx=temp.cenx(SplitFrame+1:end); schnitzcells(NumberOfSchnitzes+1).ceny=temp.ceny(SplitFrame+1:end); schnitzcells(NumberOfSchnitzes+1).len=temp.len(SplitFrame+1:end); schnitzcells(NumberOfSchnitzes+1).cellno=temp.cellno(SplitFrame+1:end); for jj=1:length(ParticleIndices) if any(Particles(ParticleIndices(jj)).Frame>SplitFrame) Particles(ParticleIndices(jj)).Nucleus=NumberOfSchnitzes+1; end end end else schnitzcells(i).frames=temp.frames(SplitFrame+1:end); schnitzcells(i).cenx=temp.cenx(SplitFrame+1:end); schnitzcells(i).ceny=temp.ceny(SplitFrame+1:end); schnitzcells(i).len=temp.len(SplitFrame+1:end); schnitzcells(i).cellno=temp.cellno(SplitFrame+1:end); for jj=1:length(ParticleIndices) if any(Particles(ParticleIndices(jj)).Frame>SplitFrame) Particles(ParticleIndices(jj)).Nucleus=NumberOfSchnitzes+1; end end end % If split, move the index back one schnitz, in order to do % additional splits on some schnitzes if needed t=i-1; end end NumberOfSchnitzes=size(schnitzcells,2); i=max(t+1,0); end %% Sort schnitzcells=schnitz_sort(schnitzcells); i=1; while i<size(schnitzcells,2) if isinf(schnitzcells(i).frames(1)) schnitzcells(i)=[]; i=i-1; end i=i+1; end display(NumberOfStitchMismatches); display(DaughtersOlderThanParents); display(NumberOfStitchesPerformed); display(SortErrors); %% Nested function to stitch schnitzes that are too short function schnitz=schnitz_stitch(schnitz,ncs) NumberOfSchnitzes=size(schnitz,2); k=1; while k<NumberOfSchnitzes if ~isempty(schnitz(k).frames) nc=0; % Current nc for kk=1:length(ncs) if schnitz(k).frames(1)>ncs(kk) nc=kk; end end Margins=30; try if (schnitz(k).cenx(1)>Margins && schnitz(k).cenx(1)<(FrameInfo(1).PixelsPerLine-Margins) ... && schnitz(k).ceny(1)>Margins && schnitz(k).ceny(1)<(FrameInfo(1).LinesPerFrame-Margins)) % Determine the minimum number of frames in which the schnitz should appear if nc<length(ncs) mx_frame=ncs(nc+1)-2; else mx_frame=size(FrameInfo,2); end mn_frame=ncs(nc)+8; if length(schnitz(k).frames)<(mx_frame-mn_frame) % Find the closest matching nuclei in the immediate % next frame Closest=0; min_distance=Inf; kkk=1; % Go through all the schnitzes. This could be % made faster if needed while(kkk<NumberOfSchnitzes) if (schnitz(kkk).frames(1)==schnitz(k).frames(end)+1) &&... (schnitz(kkk).frames(1)-mx_frame)>4 dist=(schnitz(kkk).cenx(1)-schnitz(k).cenx(end))^2+... (schnitz(kkk).ceny(1)-schnitz(k).ceny(end))^2; if dist<min_distance; min_distance=dist; Closest=kkk; end end kkk=kkk+1; % Do no consider proximity to yourself if kkk==k kkk=kkk+1; end end % If a closest nuclei has been found if Closest~=0 && min_distance<2000 schnitz(k).E=schnitz(Closest).E; schnitz(Closest).E=[]; schnitz(k).D=schnitz(Closest).D; schnitz(Closest).D=[]; schnitz(k).frames=[schnitz(k).frames; schnitz(Closest).frames]; schnitz(Closest).frames=Inf; schnitz(k).cenx=[schnitz(k).cenx schnitz(Closest).cenx]; schnitz(Closest).cenx=[]; schnitz(k).ceny=[schnitz(k).ceny schnitz(Closest).ceny]; schnitz(Closest).ceny=[]; schnitz(k).len=[schnitz(k).len schnitz(Closest).len]; schnitz(Closest).len=[]; schnitz(k).cellno=[schnitz(k).cellno schnitz(Closest).cellno]; schnitz(Closest).cellno=[]; if ~isempty(schnitz(Closest).P) NumberOfStitchMismatches=NumberOfStitchMismatches+1; end if ~isempty(schnitz(Closest).D) child=schnitz(Closest).D; schnitz(child).P=Closest; end if ~isempty(schnitz(Closest).E) child=schnitz(Closest).E; schnitz(child).P=Closest; end if cpexist for ii=1:length(Particles) if Particles(ii).Nucleus==Closest Particles(ii).Nucleus=k; end end end NumberOfStitchesPerformed=NumberOfStitchesPerformed+1; end end end catch end end k=k+1; end end %% Sorts the schnitzes using quicksort and changes the associated % nuclei as necessary function schnitz=schnitz_sort(schnitz) lengt=size(schnitz,2); if lengt>2 % Choose pivot pivot=ceil(lengt*rand); schnitz_swap(lengt,pivot); % 3-way partition ii = 1; k = 1; p = lengt; if isempty(schnitz(ii).frames) schnitz(ii).frames=Inf; end if isempty(schnitz(lengt).frames) schnitz(lengt).frames=Inf; end while ii < p if min(schnitz(ii).frames) < min(schnitz(lengt).frames) schnitz_swap(ii,k); ii=ii+1; k=k+1; elseif min(schnitz(ii).frames) == min(schnitz(lengt).frames) p=p-1; schnitz_swap(p,ii); else ii=ii+1; end end % move pivots to center n=lengt; m = min(p-k,n-p+1); for ii=0:m-1 schnitz_swap(k+ii,n-m+1+ii); end % recursive sorts schnitz_1=schnitz_sort(schnitz(1:k-1)); schnitz_2=schnitz_sort(schnitz(n-p+k+1:n)); schnitz(1:k-1)=schnitz_1; schnitz(k:n-p+k)=schnitz(k:n-p+k); schnitz(n-p+k+1:n)=schnitz_2; end if size(schnitz,2)~=lengt SortErrors=SortErrors+1; display('Loss in sort!') end function schnitz_swap(a,b) if a==b return; end swap=schnitz(b); schnitz(b)=schnitz(a); if ~isempty(schnitzcells(b).P) if(schnitzcells(b).P~=0) parent=schnitzcells(b).P; if schnitzcells(parent).E==b; schnitzcells(parent).E=a; elseif schnitzcells(parent).D==b; schnitzcells(parent).D=a; end end end if ~isempty(schnitzcells(b).E) if schnitzcells(b).E~=0 child=schnitzcells(b).E; if schnitzcells(child).P==b; if child>a % display(['Downs everywhere!']); DaughtersOlderThanParents=DaughtersOlderThanParents+1; end schnitzcells(child).P=a; end end end if ~isempty(schnitzcells(b).D) if schnitzcells(b).D~=0 child=schnitzcells(b).D; if schnitzcells(child).P==b; if child>b % display(['Downs everywhere!']); DaughtersOlderThanParents=DaughtersOlderThanParents+1; end schnitzcells(child).P=a; end end end schnitz(a)=swap; if ~isempty(schnitzcells(a).P) if schnitzcells(a).P~=0 parent=schnitzcells(a).P; if schnitzcells(parent).E==a; schnitzcells(parent).E=b; elseif schnitzcells(parent).D==a; schnitzcells(parent).D=b; end end end if ~isempty(schnitzcells(a).E) if schnitzcells(a).E~=0 child=schnitzcells(a).E; if schnitzcells(child).P==a; if child>b % display(['Downs everywhere!']); DaughtersOlderThanParents=DaughtersOlderThanParents+1; end schnitzcells(child).P=b; end end end if ~isempty(schnitzcells(a).D) if schnitzcells(a).D~=0 child=schnitzcells(a).D; if schnitzcells(child).P==a; if child>b % display(['Downs everywhere!']); DaughtersOlderThanParents=DaughtersOlderThanParents+1; end schnitzcells(child).P=b; end end end % Particles if(cpexist) ParticleIndicesForSwap= Particles.Nucleus==a; Particles(ParticleIndicesForSwap).Nucleus=b; ParticleIndicesForSwap= Particles.Nucleus==b; Particles(ParticleIndicesForSwap).Nucleus=a; end end end end
23,649
https://github.com/sun-iot/trickster/blob/master/pkg/backends/prometheus/handler_unsupported_test.go
Github Open Source
Open Source
Apache-2.0
2,021
trickster
sun-iot
Go
Code
168
365
/* * Copyright 2018 The Trickster Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package prometheus import ( "net/http/httptest" "testing" ) func TestUnsupportedHandler(t *testing.T) { b, err := NewClient("test", nil, nil, nil, nil, nil) if err != nil { t.Error(err) } c := b.(*Client) w := httptest.NewRecorder() c.UnsupportedHandler(w, nil) const expected = `{"status":"error","error":"trickster does not support proxying this endpoint"}` if w.Code != 400 { t.Errorf("expected %d got %d", 400, w.Code) } if w.Body.String() != expected { t.Errorf("expected %s got %s", expected, w.Body.String()) } }
19,331
https://github.com/ghuntley/xamarin-macios/blob/master/src/UIKit/UITextView.cs
Github Open Source
Open Source
BSD-3-Clause
2,017
xamarin-macios
ghuntley
C#
Code
36
94
// // UITextView.cs: Extensions to UITextView // // Authors: // Geoff Norton // // Copyright 2009, Novell, Inc. // #if !WATCH namespace XamCore.UIKit { public partial class UITextView : IUITextInputTraits { } } #endif // !WATCH
29,408
https://github.com/lzhlyle/leetcode/blob/master/src/main/java/com/lzhlyle/contest/biweekly/biweekly29/Contest3.java
Github Open Source
Open Source
MIT
2,020
leetcode
lzhlyle
Java
Code
120
340
package com.lzhlyle.contest.biweekly.biweekly29; public class Contest3 { // dp public int longestSubarray(int[] nums) { int n = nums.length; if (n == 1) return nums[0]; int[][] dp = new int[n][2]; // 以 i 结尾,0:无零, 1:有零,不包括 0 的全长 if (nums[0] == 1) dp[0][0] = 1; int max = 0; for (int i = 1; i < n; i++) { if (nums[i] == 0) { dp[i][1] = dp[i - 1][0]; } else { // nums[i] == 1 dp[i][0] = dp[i - 1][0] + 1; dp[i][1] = dp[i - 1][1] + 1; } max = Math.max(max, Math.max(dp[i][0], dp[i][1])); } if (max == n) return max - 1; return max; } public static void main(String[] args) { Contest3 contest = new Contest3(); { } } }
19,903
https://github.com/cmyster/coti/blob/master/functions/get_ntpd_settings.sh
Github Open Source
Open Source
Apache-2.0
2,019
coti
cmyster
Shell
Code
10
37
get_ntpd_settings () { grep -v "#\|^$" /etc/ntp.conf > ntp.conf }
336
https://github.com/jasonprado/coopcycle-app/blob/master/src/components/NavigationAwareMap.js
Github Open Source
Open Source
MIT
null
coopcycle-app
jasonprado
JavaScript
Code
254
886
import React, { Component } from 'react' import { StyleSheet, View } from 'react-native' import MapView from 'react-native-maps' import { featureCollection, center, point } from '@turf/turf' import _ from 'lodash' class NavigationAwareMap extends Component { constructor(props) { super(props) this.state = { mapDimensions: [], canRenderMap: false, } } componentDidMount() { this.didFocusListener = this.props.navigation.addListener( 'didFocus', payload => this.setState({ canRenderMap: true }) ) } componentWillUnmount() { this.didFocusListener.remove() } _onMapLayout(e) { const { width, height } = e.nativeEvent.layout this.setState({ mapDimensions: [ width, height ] }) } render() { const { canRenderMap, mapDimensions } = this.state if (!canRenderMap) { return ( <View style={ [ styles.map, { backgroundColor: '#eeeeee' } ] } /> ) } // @see https://stackoverflow.com/questions/46568465/convert-a-region-latitudedelta-longitudedelta-into-an-approximate-zoomlevel/ const zoomLevel = 12 const distanceDelta = Math.exp(Math.log(360) - (zoomLevel * Math.LN2)) let aspectRatio = 1 if (mapDimensions.length > 0) { const [ width, height ] = mapDimensions aspectRatio = width / height } let otherProps = {} const markers = _.filter(React.Children.toArray(this.props.children), child => child.type === MapView.Marker) if (markers.length > 1) { const features = markers.map(marker => point([ marker.props.coordinate.latitude, marker.props.coordinate.longitude, ])) const centerFeature = center(featureCollection(features)) // TODO Convert bounding box to region // https://gist.github.com/jhesgodi/4f6c443c77c8a3dcc7e1f15a80bfdc68 // https://gist.github.com/mpontus/a6a3c69154715f2932349f0746ff81f2 // https://github.com/react-native-community/react-native-maps/issues/884 const region = { latitude: centerFeature.geometry.coordinates[0], longitude: centerFeature.geometry.coordinates[1], latitudeDelta: distanceDelta, longitudeDelta: distanceDelta * aspectRatio, } otherProps = { ...otherProps, initialRegion: region, region, } } return ( <MapView style={ styles.map } zoomEnabled showsUserLocation loadingEnabled loadingIndicatorColor={ '#666666' } loadingBackgroundColor={ '#eeeeee' } onLayout={ this._onMapLayout.bind(this) } { ...otherProps }> { this.props.children } </MapView> ) } } const styles = StyleSheet.create({ map: { ...StyleSheet.absoluteFillObject, }, }) export default NavigationAwareMap
12,525
https://github.com/monix/monix/blob/master/monix-reactive/shared/src/test/scala/monix/reactive/subjects/ProfunctorSubjectSuite.scala
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
monix
monix
Scala
Code
733
2,064
/* * Copyright (c) 2014-2022 Monix Contributors. * See the project homepage at: https://monix.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package monix.reactive.subjects import cats.implicits._ import monix.execution.Ack import monix.execution.Ack.{ Continue, Stop } import monix.execution.exceptions.DummyException import monix.reactive.Observer import scala.concurrent.Future import scala.util.Success object ProfunctorSubjectSuite extends BaseSubjectSuite { def alreadyTerminatedTest(expectedElems: Seq[Long]) = { val s = BehaviorSubject[Long](-1) Sample(s, expectedElems.lastOption.getOrElse(-1)) } def continuousStreamingTest(expectedElems: Seq[Long]) = { val s = BehaviorSubject[Long](0) Some(Sample(s, expectedElems.sum)) } test("should protect against user-code in left mapping function") { implicit s => val dummy = new RuntimeException("dummy") val subject = BehaviorSubject[String]("10").dimap[Int, Int](_ => throw dummy)(_.toInt) var received = 0 var wasCompleted = 0 var errorThrown: Throwable = null for (i <- 0 until 10) subject.unsafeSubscribeFn(new Observer[Int] { def onNext(elem: Int): Future[Ack] = { received += elem Continue } def onError(ex: Throwable): Unit = errorThrown = ex def onComplete(): Unit = wasCompleted += 1 }) assertEquals(subject.onNext(1), Stop) subject.onComplete() s.tick() assertEquals(received, 100) assertEquals(wasCompleted, 0) assertEquals(errorThrown, dummy) } test("should protect against user-code in right mapping function") { implicit s => val dummy = new RuntimeException("dummy") val subject = BehaviorSubject[String]("10").dimap[Int, Int](_.toString)(_ => throw dummy) var received = 0 var wasCompleted = 0 var errorThrown: Throwable = null for (i <- 0 until 10) subject.unsafeSubscribeFn(new Observer[Int] { def onNext(elem: Int): Future[Ack] = { received += elem Continue } def onError(ex: Throwable): Unit = errorThrown = ex def onComplete(): Unit = wasCompleted += 1 }) subject.onNext(1); s.tick() assertEquals(subject.onNext(2), Continue) assertEquals(subject.onNext(3), Continue) subject.onComplete() s.tick() assertEquals(received, 0) assertEquals(wasCompleted, 0) assertEquals(errorThrown, dummy) } test("should work synchronously for synchronous subscribers") { implicit s => val subject = BehaviorSubject[String]("10").dimap[Int, Int](_.toString)(_.toInt) var received = 0 var wasCompleted = 0 for (i <- 0 until 10) subject.unsafeSubscribeFn(new Observer[Int] { def onNext(elem: Int): Future[Ack] = { received += elem Continue } def onError(ex: Throwable): Unit = () def onComplete(): Unit = wasCompleted += 1 }) subject.onNext(1); s.tick() assertEquals(subject.onNext(2), Continue) assertEquals(subject.onNext(3), Continue) subject.onComplete() s.tick() assertEquals(received, 160) assertEquals(wasCompleted, 10) } test("should work with asynchronous subscribers") { implicit s => val subject = BehaviorSubject[String]("10").dimap[Int, Int](_.toString)(_.toInt) var received = 0 var wasCompleted = 0 for (i <- 0 until 10) subject.unsafeSubscribeFn(new Observer[Int] { def onNext(elem: Int) = Future { received += elem Continue } def onError(ex: Throwable): Unit = () def onComplete(): Unit = wasCompleted += 1 }) for (i <- 1 to 10) { val ack = subject.onNext(i) assert(!ack.isCompleted) s.tick() assert(ack.isCompleted) assertEquals(received, (1 to i).sum * 10 + 100) } subject.onComplete() assertEquals(received, 5 * 11 * 10 + 100) assertEquals(wasCompleted, 10) } test("subscribe after complete should complete immediately") { implicit s => val subject = BehaviorSubject[String]("10").dimap[Int, Int](_.toString)(_.toInt) var received = 0 subject.onComplete() var wasCompleted = false subject.unsafeSubscribeFn(new Observer[Int] { def onNext(elem: Int) = { received += elem; Continue } def onError(ex: Throwable): Unit = () def onComplete(): Unit = wasCompleted = true }) assert(wasCompleted) assertEquals(received, 10) } test("onError should terminate current and future subscribers") { implicit s => val subject = BehaviorSubject[String]("10").dimap[Int, Int](_.toString)(_.toInt) val dummy = DummyException("dummy") var elemsReceived = 0 var errorsReceived = 0 for (_ <- 0 until 10) subject.unsafeSubscribeFn(new Observer[Int] { def onNext(elem: Int) = { elemsReceived += elem; Continue } def onComplete(): Unit = () def onError(ex: Throwable): Unit = ex match { case `dummy` => errorsReceived += 1 case _ => () } }) subject.onNext(1); s.tick() subject.onError(dummy) subject.unsafeSubscribeFn(new Observer[Int] { def onNext(elem: Int) = { elemsReceived += elem; Continue } def onComplete(): Unit = () def onError(ex: Throwable): Unit = ex match { case `dummy` => errorsReceived += 1 case _ => () } }) s.tick() assertEquals(elemsReceived, 110) assertEquals(errorsReceived, 11) } test("can stop streaming while connecting") { implicit s => val subject = BehaviorSubject[String]("10").dimap[Int, Int](_.toString)(_.toInt) val future1 = subject.runAsyncGetFirst val future2 = subject.drop(1).runAsyncGetFirst s.tick() assertEquals(future1.value, Some(Success(Some(10)))) assertEquals(subject.size, 1) assertEquals(subject.onNext(20), Continue) assertEquals(future2.value, Some(Success(Some(20)))) assertEquals(subject.size, 0) } test("unsubscribe after onComplete") { implicit s => var result: Int = 0 val subject = BehaviorSubject[String]("0").dimap[Int, Int](_.toString)(_.toInt) val c = subject.subscribe { e => result = e; Continue } subject.onNext(1) subject.onComplete() s.tick() c.cancel() assertEquals(result, 1) } }
9,699
https://github.com/pangor/tilebasedwordsearch/blob/master/web/elements/wordherd_new_game.dart
Github Open Source
Open Source
BSD-3-Clause
2,014
tilebasedwordsearch
pangor
Dart
Code
252
808
import 'package:polymer/polymer.dart'; // XXX DO NOT USE SHOW HERE import 'dart:async' show Future; import 'dart:html' show Element, Event, HttpRequest, Node, document, window; import 'dart:convert' show JSON; import 'package:logging/logging.dart' show Logger; import 'package:wordherd/shared_html.dart' show Player; import 'package:serialization/serialization.dart' show Serialization; import 'package:google_plus_v1_api/plus_v1_api_client.dart' show Person; import 'wordherd_app.dart' show WordherdApp; final Logger log = new Logger('WordherdNewGame'); final Serialization _serializer = new Serialization(); @CustomTag('wordherd-new-game') class WordherdNewGame extends PolymerElement { final List<Player> friends = toObservable([]); @observable bool loadDataComplete = false; WordherdNewGame.created() : super.created(); // Looks like inserted is when all attributes are ready (??) void enteredView() { super.enteredView(); _loadFriendsToPlay().then((List<Player> people) { log.fine('Found friends: $people'); friends.addAll(people); }) .catchError((e) => log.severe('Problem finding friends: $e')) .whenComplete(() => loadDataComplete = true); } Future<List<Player>> _loadFriendsToPlay() { log.fine('Finding friends to play'); return HttpRequest.request('/friendsToPlay', withCredentials: true, method: 'GET') // TODO accept json .then((HttpRequest response) { Map json = JSON.decode(response.responseText) as Map; return _serializer.read(json); }); } void createMatch(Event e, var detail, Node target) { log.fine('here in create'); Person me = (document.body.querySelector('wordherd-app') as WordherdApp).person; String friendGplusId = (target as Element).dataset['friend-id']; String friendName = (target as Element).dataset['friend-name']; Map data = {'p1_id': me.id, 'p1_name': me.displayName, 'p2_id': friendGplusId, 'p2_name': friendName}; log.fine('Creating match with $data'); HttpRequest.postFormData('/matches', data, withCredentials: true) .then((HttpRequest response) { String location = response.getResponseHeader('Location'); log.fine('Location to new match is $location'); String matchId = new RegExp(r'/matches/(\d+)').firstMatch(location).group(1); log.fine('Match created with ID $matchId'); // TODO: store the match locally? window.location.hash = '/match/$matchId'; }) .catchError((e) { log.severe('Could not create match: $e'); // TODO display error }); } // This is here to force MirrorsUsed to keep isEmpty bool get noFriends => friends.isEmpty; }
785
https://github.com/maurycupitt/gradle-examples/blob/master/multi-project-build/settings.gradle
Github Open Source
Open Source
Apache-2.0
2,023
gradle-examples
maurycupitt
Gradle
Code
4
12
include 'app' include 'core'
18,444
https://github.com/LoraMS/ProgrammingBasicsPHP/blob/master/ExamPreparation/Exam25-06-2017/fruit-cocktail.php
Github Open Source
Open Source
MIT
null
ProgrammingBasicsPHP
LoraMS
PHP
Code
179
395
<?php $fruit = strtolower(readline()); $size = strtolower(readline()); $drinks = intval(readline()); $price = 0.00; if ($fruit === "watermelon") { if ($size === "small") { $price = 56 * 2 * $drinks; } elseif ($size === "big") { $price = 28.70 * 5 * $drinks; } } elseif ($fruit === "mango") { if ($size === "small") { $price = 36.66 * 2 * $drinks; } elseif ($size === "big") { $price = 19.60 * 5 * $drinks; } } elseif ($fruit === "pineapple") { if ($size === "small") { $price = 42.10 * 2 * $drinks; } elseif ($size === "big") { $price = 24.80 * 5 * $drinks; } } elseif ($fruit === "raspberry") { if ($size === "small") { $price = 20 * 2 * $drinks; } elseif ($size === "big") { $price = 15.20 * 5 * $drinks; } } if ($price > 1000) { $price = $price - $price * 0.5; } elseif ($price >= 400 && $price <= 1000) { $price = $price - $price * 0.15; } echo number_format($price, 2, ".", ""); echo " lv.";
13,338
https://github.com/trustedshops/domain-protect/blob/master/terraform-modules/lambda/scripts/create-package.sh
Github Open Source
Open Source
Apache-2.0
null
domain-protect
trustedshops
Shell
Code
79
270
#!/bin/bash set -e echo "Executing create_package.sh..." function_list=${function_names//:/ } for i in $function_list do dir_name=lambda_dist_pkg_$i/ mkdir -p $path_module/build/$dir_name # Installing python dependencies... FILE=$path_module/code/$i/requirements.txt if [ -f "$FILE" ]; then echo "Installing dependencies..." echo "From: requirements.txt file exists..." pip3 install -r "$FILE" -t $path_module/build/$dir_name/ else echo "Error: requirements.txt does not exist!" fi # Create deployment package... echo "Creating deployment package..." cp $path_module/code/$i/$i.py $path_module/build/$dir_name # Removing virtual environment folder... echo "Removing virtual environment folder..." rm -rf $path_cwd/env_$i done echo "Finished script execution!"
866
https://github.com/lemastero/mantis/blob/master/src/main/scala/io/iohk/ethereum/consensus/difficulty/DifficultyCalculator.scala
Github Open Source
Open Source
Apache-2.0
2,022
mantis
lemastero
Scala
Code
73
314
package io.iohk.ethereum.consensus.difficulty import io.iohk.ethereum.consensus.pow.difficulty.EthashDifficultyCalculator import io.iohk.ethereum.consensus.pow.difficulty.TargetTimeDifficultyCalculator import io.iohk.ethereum.domain.BlockHeader import io.iohk.ethereum.utils.BlockchainConfig trait DifficultyCalculator { def calculateDifficulty(blockNumber: BigInt, blockTimestamp: Long, parent: BlockHeader)(implicit blockchainConfig: BlockchainConfig ): BigInt } object DifficultyCalculator extends DifficultyCalculator { def calculateDifficulty(blockNumber: BigInt, blockTimestamp: Long, parent: BlockHeader)(implicit blockchainConfig: BlockchainConfig ): BigInt = (blockchainConfig.powTargetTime match { case Some(targetTime) => new TargetTimeDifficultyCalculator(targetTime) case None => EthashDifficultyCalculator }).calculateDifficulty(blockNumber, blockTimestamp, parent) val DifficultyBoundDivision: Int = 2048 val FrontierTimestampDiffLimit: Int = -99 val MinimumDifficulty: BigInt = 131072 }
31,368
https://github.com/VGamezz19/MDitor/blob/master/client/src/components/MyEditor/MyEditor.js
Github Open Source
Open Source
MIT
2,018
MDitor
VGamezz19
JavaScript
Code
167
572
import React from 'react'; import Draft, { Editor } from 'draft-js'; import PropTypes from 'prop-types'; import File from 'mditor-types'; class MyEditor extends React.Component { constructor(props) { super(props); /** * Next Feature... * * Remember focus Editor * * this.setDomEditorRef = ref => this.domEditor = ref; * https://github.com/facebook/draft-js/blob/master/examples/draft-0-10-0/plaintext/plaintext.html * */ this.state = { editorState: Draft.EditorState.createEmpty(), fileId: undefined } } componentWillMount() { const { file } = this.props; const draftContentState = Draft.ContentState.createFromText(file.getContent()) this.setState(({ editorState }) => ({ editorState: Draft.EditorState.push(editorState, draftContentState), fileId: file.getId() })) } componentWillReceiveProps(props) { const { file } = props; this.setState(prevState => { if (prevState.fileId !== file.getId()) { const draftContentState = Draft.ContentState.createFromText(file.getContent()) return { editorState: Draft.EditorState.push(prevState.editorState, draftContentState), fileId: file.getId() } } }) } onChange = (editorState) => { const content = editorState.getCurrentContent().getPlainText() this.setState({ editorState }) this.props.emitCurrentContent(content) } render() { return ( <Editor editorState={this.state.editorState} onChange={this.onChange} /> ); } } MyEditor.propTypes = { /** * mandatory type * File from ('mditor-types'); */ file: PropTypes.instanceOf(File), /** * Need handler to take content Editor */ emitCurrentContent: PropTypes.func.isRequired, } export default MyEditor
26,214
https://github.com/banksbestrates/BankFx/blob/master/news/wp-content/plugins/formidable-signature/views/front_field.php
Github Open Source
Open Source
GPL-2.0-or-later, GPL-1.0-or-later, GPL-2.0-only, LicenseRef-scancode-unknown-license-reference, MIT
2,020
BankFx
banksbestrates
PHP
Code
159
530
<div class="sigPad" <?php if ( ! isset( $plus_id ) || empty( $plus_id ) ) { ?>id="sigPad<?php echo esc_attr( (int) $field['id'] ); ?>"<?php } ?> style="max-width:<?php echo esc_attr( (int) $styles['width'] ); ?>px;"> <div class="sig sigWrapper" style="<?php echo esc_attr( $styles['css'] ); ?>"> <?php if ( ! $styles['hide_tabs'] ) { ?> <ul class="sigNav"> <li class="drawIt"><a href="#" class="current" title="<?php echo esc_html( $field['label1'] ); ?>" aria-label="<?php echo esc_html( $field['label1'] ); ?>"><i class="frm_icon_font frm_signature_icon" aria-hidden></i></a></li> <li class="typeIt"><a href="#" title="<?php echo esc_html( $field['label2'] ); ?>" aria-label="<?php echo esc_html( $field['label2'] ); ?>"><i class="frm_icon_font frm_keyboard_icon" aria-hidden></i></a></li> </ul> <?php } ?> <div class="typed"> <input type="text" name="<?php echo esc_attr( $field_name ); ?>[typed]" class="name" id="<?php echo esc_attr( $html_id ); ?>" autocomplete="off" value="<?php echo esc_attr( $typed_value ); ?>" /> </div> <canvas class="pad" width="<?php echo esc_attr( $styles['width'] - 4 ); ?>" height="<?php echo esc_attr( $styles['height'] ); ?>"></canvas> <div class="clearButton"><a href="#clear"><?php echo esc_html( $field['label3'] ); ?></a></div> <input type="hidden" name="<?php echo esc_attr( $field_name ); ?>[output]" class="output" value="<?php echo esc_attr( $output ); ?>" /> </div> </div>
22,223
https://github.com/XamlEngine/Core/blob/master/src/XamlWindow.h
Github Open Source
Open Source
MIT
2,020
Core
XamlEngine
C
Code
26
81
#pragma once namespace CoreVar { namespace Xaml { class XamlWindow { protected: virtual void onShow() = 0; public: void show() { onShow(); } }; } }
4,848
https://github.com/breadexemplar/hapibread-web/blob/master/index.js
Github Open Source
Open Source
MIT
2,016
hapibread-web
breadexemplar
JavaScript
Code
21
65
'use strict'; const Server = require('./lib/server'); Server.start((err) => { if (err) { throw err; } Server.log([], `Server started at ${Server.info.uri}`); });
3,873
https://github.com/yaoqi/chat/blob/master/src/main/java/com/mercury/chat/common/exception/ErrorCode.java
Github Open Source
Open Source
BSD-2-Clause
null
chat
yaoqi
Java
Code
56
193
package com.mercury.chat.common.exception; public enum ErrorCode { CLOSED(1, "Connection Closed"), NOT_CONNECTED(2, "Not Connected"), UNAUTHORIZED(3, "Unauthorized"), NOT_LOGINED(4, "Not Logined"), LOGINED(5, "Logined"), TIME_OUT(6, "Time Out"); private int key; private String message; private ErrorCode(int key, String message) { this.key = key; this.message = message; } public int key() { return key; } public String message() { return message; } }
40,530
https://github.com/LeJTao/gblog/blob/master/resources/assets/js/frontend/pages/categories/Index.vue
Github Open Source
Open Source
MIT
2,021
gblog
LeJTao
Vue
Code
150
600
<template> <main class="site-main"> <transition enter-active-class="animated fadeInUp"> <div class="container wrapper py4 md-py6" v-show="show"> <div class="category mb4" v-for="category in categories" :key="category.id"> <router-link :to="{name: 'frontend.category.detail', params: {slug: category.slug}}" class="category__link link--black"> <header class="category__header"> <h2 class="category__title">{{ category.title }}</h2> </header> </router-link> <div class="gutter grid--2-col lg-grid--3-col grid--left"> <router-link :to="{name: 'frontend.post.detail', params: {slug: post.slug}}" class="card col mb1 sm-mb2" v-for="post in category.posts.data" :key="post.id"> <div class="card__image"> <img :src="post.banner" :alt="post.title"> </div> <div class="card__content"> <span class="label">{{ post.created_at | timeago }}</span> <h4>{{ post.title }}</h4> </div> </router-link> </div> </div> <pagination :pagination="meta.pagination" :fetchData="fetchData"></pagination> </div> </transition> </main> </template> <script> import Pagination from 'frontend/components/Pagination' export default { components: {Pagination}, data () { return { categories: [], include: '?include=posts:fields(id|slug|title|banner|created_at):limit(9)', meta: {}, show: false } }, created: function () { this.fetchData() }, methods: { fetchData: function (page) { page = 0 | page this.$http.get(this.$endpoints.categories.index + this.include + '&page=' + page).then(response => { this.categories = response.data this.meta = response.meta this.show = true }, error => {}) } } } </script>
29,598
https://github.com/remote-anu/wa_sevaa/blob/master/public/js/navigation.js
Github Open Source
Open Source
MIT
null
wa_sevaa
remote-anu
JavaScript
Code
61
325
/*$(function() { $("#navigation").load("navigation.html"); });*/ $('body').bind('copy paste cut drag drop', function (e) { e.preventDefault(); }); $.get("navigation.html", function(data){ var html = $(data); if (localStorage['userId']!==null && localStorage['userId'] !== undefined) { $("#bookings",html).show(); $("#hospitalLogin",html).hide(); $("#userLogin",html).hide(); $("#logout",html).show(); }else if (localStorage['hospId']!==null && localStorage['hospId'] !== undefined) { $("#bookings",html).hide(); $("#hospitalLogin",html).hide(); $("#userLogin",html).hide(); $("#logout",html).show(); }else{ $("#bookings",html).hide(); $("#hospitalLogin",html).show(); $("#userLogin",html).show(); $("#logout",html).hide(); } // $("#userLogin",html).click(showLoginPage); $("#logout",html).click(logout); $("#navigation").replaceWith(html); }); function logout(){ localStorage.clear(); window.location.href = "index.html"; }
29,267
https://github.com/markheger/streamsx.topology/blob/master/java/src/com/ibm/streamsx/rest/internal/icp4d/Element.java
Github Open Source
Open Source
Apache-2.0
2,020
streamsx.topology
markheger
Java
Code
337
820
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.ibm.streamsx.rest.internal.icp4d; import java.io.IOException; import java.util.Collections; import java.util.List; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonObject; import com.google.gson.JsonSyntaxException; import com.ibm.streamsx.rest.internal.AbstractConnection; /** * Abstract base class for REST elements returned from the CP4D REST API. */ abstract class Element { protected static final Gson gson = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().enableComplexMapKeySerialization().create(); private static final Gson pretty = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().setPrettyPrinting().create(); private AbstractConnection connection; AbstractConnection connection() { return connection; } void setConnection(AbstractConnection connection) { this.connection = connection; } @Override public final String toString() { return pretty.toJson(this); } static final <E extends Element> E create (final AbstractConnection sc, String uri, Class<E> elementClass) throws IOException { if (uri == null) { return null; } return createFromResponse(sc, sc.getResponseString(uri), elementClass); } static final <E extends Element> E createFromResponse (final AbstractConnection sc, String response, Class<E> elementClass) throws IOException { E element = gson.fromJson(response, elementClass); element.setConnection(sc); return element; } static final <E extends Element> E createFromResponse (final AbstractConnection sc, JsonObject response, Class<E> elementClass) throws IOException { E element = gson.fromJson(response, elementClass); element.setConnection(sc); return element; } /** * internal usage to get the list of elements */ protected abstract static class ElementArray<E extends Element> { abstract List<E> elements(); } protected final static <E extends Element, A extends ElementArray<E>> List<E> createList (AbstractConnection sc, String uri, Class<A> arrayClass) throws IOException { // Assume not supported if no associated URI. if (uri == null) { return Collections.emptyList(); } try { A array = gson.fromJson(sc.getResponseString(uri), arrayClass); for (Element e : array.elements()) { e.setConnection(sc); } return array.elements(); } catch (JsonSyntaxException e) { return Collections.emptyList(); } } }
15,177
https://github.com/Damoy/Cpp-3D-game-engine/blob/master/CppProject5_3D/CppProject5/src/input/MouseTransformer.h
Github Open Source
Open Source
MIT
2,017
Cpp-3D-game-engine
Damoy
C++
Code
194
483
#pragma once #include "entities\graphics\Camera.h" #include "world\Level.h" /* The Mouse Transformer is an important class. It allows to convert from simple 2D mouse coordinates to game-world ones. To do such, there are multiple conversions that need to be performed. Screen (viewport) Space -> Normalized Space -> Homogenous Clip Space -> Eye Space -> World Space (-> Local Space) */ class MouseTransformer{ private: MouseTransformer(); // a tool vector static glm::vec3 VEC_NULL; public: // transform from viewport space to normalized space static glm::vec3 getNormalizedCoords(float mouseX, float mouseY); // transform from normalized space to homogeneous clip space static glm::vec4 getHomogeneousCoords(glm::vec3 normCoords); // transform from homogeneous clip space to eye space static glm::vec4 getEyeCoords(glm::mat4 projMatrix, glm::vec4 homogCoords); // transform from eye space to world space static glm::vec4 getWorldCoords(glm::mat4 viewMatrix, glm::vec4 eyeCoords); // transform from viewport space to world space static glm::vec3 toWorldCoords(float mouseX, float mouseY, glm::mat4 projMatrix, glm::mat4 viewMatrix); // transform from viewport space to world spaceeeee static glm::vec3 toWorldCoords(glm::vec2 mousePos, glm::mat4 projMatrix, glm::mat4 viewMatrix); // >>> GET THE MOUSE LEVEL COLLISION POINT <<< // Yes, was though.. static glm::vec3 getCollisionPointOnLevelMap(Level* level, Camera* camera, glm::mat4 projectionMatrix); // is the vector equals to the VEC_NULL one static bool isNull(glm::vec3); };
50,457
https://github.com/ContinuumIO/airflow/blob/master/airflow/hooks/oracle_hook.py
Github Open Source
Open Source
Apache-2.0
2,016
airflow
ContinuumIO
Python
Code
404
1,126
import cx_Oracle from airflow.hooks.dbapi_hook import DbApiHook from builtins import str from past.builtins import basestring from datetime import datetime import numpy import logging class OracleHook(DbApiHook): """ Interact with Oracle SQL. """ conn_name_attr = 'oracle_conn_id' default_conn_name = 'oracle_default' supports_autocommit = False def get_conn(self): """ Returns a oracle connection object Optional parameters for using a custom DSN connection (instead of using a server alias from tnsnames.ora) The dsn (data source name) is the TNS entry (from the Oracle names server or tnsnames.ora file) or is a string like the one returned from makedsn(). :param dsn: the host address for the Oracle server :param service_name: the db_unique_name of the database that you are connecting to (CONNECT_DATA part of TNS) You can set these parameters in the extra fields of your connection as in ``{ "dsn":"some.host.address" , "service_name":"some.service.name" }`` """ conn = self.get_connection(self.oracle_conn_id) dsn = conn.extra_dejson.get('dsn', None) sid = conn.extra_dejson.get('sid', None) service_name = conn.extra_dejson.get('service_name', None) if dsn and sid and not service_name: dsn = cx_Oracle.makedsn(dsn, conn.port, sid) conn = cx_Oracle.connect(conn.login, conn.password, dsn=dsn) elif dsn and service_name and not sid: dsn = cx_Oracle.makedsn(dsn, conn.port, service_name=service_name) conn = cx_Oracle.connect(conn.login, conn.password, dsn=dsn) else: conn = cx_Oracle.connect(conn.login, conn.password, conn.host) return conn def insert_rows(self, table, rows, target_fields = None, commit_every = 1000): """ A generic way to insert a set of tuples into a table, the whole set of inserts is treated as one transaction Changes from standard DbApiHook implementation: - Oracle SQL queries in cx_Oracle can not be terminated with a semicolon (';') - Replace NaN values with NULL using numpy.nan_to_num (not using is_nan() because of input types error for strings) - Coerce datetime cells to Oracle DATETIME format during insert """ if target_fields: target_fields = ', '.join(target_fields) target_fields = '({})'.format(target_fields) else: target_fields = '' conn = self.get_conn() cur = conn.cursor() if self.supports_autocommit: cur.execute('SET autocommit = 0') conn.commit() i = 0 for row in rows: i += 1 l = [] for cell in row: if isinstance(cell, basestring): l.append("'" + str(cell).replace("'", "''") + "'") elif cell is None: l.append('NULL') elif type(cell) == float and numpy.isnan(cell): #coerce numpy NaN to NULL l.append('NULL') elif isinstance(cell, numpy.datetime64): l.append("'" + str(cell) + "'") elif isinstance(cell, datetime): l.append("to_date('" + cell.strftime('%Y-%m-%d %H:%M:%S') + "','YYYY-MM-DD HH24:MI:SS')") else: l.append(str(cell)) values = tuple(l) sql = 'INSERT /*+ APPEND */ INTO {0} {1} VALUES ({2})'.format(table, target_fields, ','.join(values)) cur.execute(sql) if i % commit_every == 0: conn.commit() logging.info('Loaded {i} into {table} rows so far'.format(**locals())) conn.commit() cur.close() conn.close() logging.info('Done loading. Loaded a total of {i} rows'.format(**locals()))
3,949
https://github.com/metageek-llc/inSSIDer-2/blob/master/MetaScanner/Properties/Settings.Designer.cs
Github Open Source
Open Source
Apache-2.0
2,021
inSSIDer-2
metageek-llc
C#
Code
834
4,520
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.17020 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace inSSIDer.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); public static Settings Default { get { return defaultInstance; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("")] public string gpsSerialPort { get { return ((string)(this["gpsSerialPort"])); } set { this["gpsSerialPort"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("None")] public global::System.IO.Ports.Parity gpsParity { get { return ((global::System.IO.Ports.Parity)(this["gpsParity"])); } set { this["gpsParity"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("None")] public global::System.IO.Ports.Handshake gpsHandshake { get { return ((global::System.IO.Ports.Handshake)(this["gpsHandshake"])); } set { this["gpsHandshake"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("One")] public global::System.IO.Ports.StopBits gpsStopBits { get { return ((global::System.IO.Ports.StopBits)(this["gpsStopBits"])); } set { this["gpsStopBits"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("8")] public int gpsDataBits { get { return ((int)(this["gpsDataBits"])); } set { this["gpsDataBits"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("4800")] public int gpsBaud { get { return ((int)(this["gpsBaud"])); } set { this["gpsBaud"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("False")] public bool gpsEnabled { get { return ((bool)(this["gpsEnabled"])); } set { this["gpsEnabled"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("-1, -1")] public global::System.Drawing.Point formLocation { get { return ((global::System.Drawing.Point)(this["formLocation"])); } set { this["formLocation"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("1024, 600")] public global::System.Drawing.Size formSize { get { return ((global::System.Drawing.Size)(this["formSize"])); } set { this["formSize"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("Normal")] public global::System.Windows.Forms.FormWindowState formWindowState { get { return ((global::System.Windows.Forms.FormWindowState)(this["formWindowState"])); } set { this["formWindowState"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("")] public string gridOrder { get { return ((string)(this["gridOrder"])); } set { this["gridOrder"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("")] public string lastFilters { get { return ((string)(this["lastFilters"])); } set { this["lastFilters"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("2010-08-01")] public global::System.DateTime VersionNextUpdateCheck { get { return ((global::System.DateTime)(this["VersionNextUpdateCheck"])); } set { this["VersionNextUpdateCheck"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("0.0.0.0")] public string VersionIgnoreThisVersion { get { return ((string)(this["VersionIgnoreThisVersion"])); } set { this["VersionIgnoreThisVersion"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("5")] public int VersionDaysBetweenUpdateReminders { get { return ((int)(this["VersionDaysBetweenUpdateReminders"])); } set { this["VersionDaysBetweenUpdateReminders"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("inssider2")] public string AnalyticsMedium { get { return ((string)(this["AnalyticsMedium"])); } set { this["AnalyticsMedium"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("False")] public bool lastMini { get { return ((bool)(this["lastMini"])); } set { this["lastMini"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("-1, -1")] public global::System.Drawing.Size miniSize { get { return ((global::System.Drawing.Size)(this["miniSize"])); } set { this["miniSize"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("536, 300")] public global::System.Drawing.Point miniLocation { get { return ((global::System.Drawing.Point)(this["miniLocation"])); } set { this["miniLocation"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("Normal")] public global::System.Windows.Forms.FormWindowState miniWindowState { get { return ((global::System.Windows.Forms.FormWindowState)(this["miniWindowState"])); } set { this["miniWindowState"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("")] public string miniGridOrder { get { return ((string)(this["miniGridOrder"])); } set { this["miniGridOrder"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("0")] public int formTabIndex { get { return ((int)(this["formTabIndex"])); } set { this["formTabIndex"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("OK")] public string settingsTest { get { return ((string)(this["settingsTest"])); } set { this["settingsTest"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public global::System.Collections.Specialized.StringCollection gpxLastInputFiles { get { return ((global::System.Collections.Specialized.StringCollection)(this["gpxLastInputFiles"])); } set { this["gpxLastInputFiles"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("")] public string gpxLastOutputDir { get { return ((string)(this["gpxLastOutputDir"])); } set { this["gpxLastOutputDir"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("True")] public bool gpxLastGpsLockedup { get { return ((bool)(this["gpxLastGpsLockedup"])); } set { this["gpxLastGpsLockedup"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("True")] public bool gpxLastGpsFixLost { get { return ((bool)(this["gpxLastGpsFixLost"])); } set { this["gpxLastGpsFixLost"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("4")] public int gpxLastMinimumStas { get { return ((int)(this["gpxLastMinimumStas"])); } set { this["gpxLastMinimumStas"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("True")] public bool gpxLastMinimumSatsEnabled { get { return ((bool)(this["gpxLastMinimumSatsEnabled"])); } set { this["gpxLastMinimumSatsEnabled"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("70")] public int gpxLastMaxSpeed { get { return ((int)(this["gpxLastMaxSpeed"])); } set { this["gpxLastMaxSpeed"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("False")] public bool gpxLastMaxSpeedEnabled { get { return ((bool)(this["gpxLastMaxSpeedEnabled"])); } set { this["gpxLastMaxSpeedEnabled"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("-20")] public int gpxLastMaxRssi { get { return ((int)(this["gpxLastMaxRssi"])); } set { this["gpxLastMaxRssi"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("True")] public bool gpxLastMaxRssiEnabled { get { return ((bool)(this["gpxLastMaxRssiEnabled"])); } set { this["gpxLastMaxRssiEnabled"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("False")] public bool gpxLastRssiLabels { get { return ((bool)(this["gpxLastRssiLabels"])); } set { this["gpxLastRssiLabels"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("True")] public bool gpxLastOrganizeEThenC { get { return ((bool)(this["gpxLastOrganizeEThenC"])); } set { this["gpxLastOrganizeEThenC"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("True")] public bool gpxLastSummary { get { return ((bool)(this["gpxLastSummary"])); } set { this["gpxLastSummary"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("False")] public bool gpxLastEachAp { get { return ((bool)(this["gpxLastEachAp"])); } set { this["gpxLastEachAp"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("False")] public bool gpxLastComprehensive { get { return ((bool)(this["gpxLastComprehensive"])); } set { this["gpxLastComprehensive"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("00000000-0000-0000-0000-000000000000")] public global::System.Guid scanLastInterfaceId { get { return ((global::System.Guid)(this["scanLastInterfaceId"])); } set { this["scanLastInterfaceId"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("True")] public bool scanLastEnabled { get { return ((bool)(this["scanLastEnabled"])); } set { this["scanLastEnabled"] = value; } } } }
12,047
https://github.com/Neovision-xin/dev/blob/master/infra/util/src/main/java/com/evolveum/midpoint/util/exception/ObjectNotFoundException.java
Github Open Source
Open Source
Apache-2.0
2,021
dev
Neovision-xin
Java
Code
207
455
/* * Copyright (c) 2010-2013 Evolveum * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.evolveum.midpoint.util.exception; /** * Object with specified criteria (OID) has not been found in the repository. * * @author Radovan Semancik * */ public class ObjectNotFoundException extends CommonException { private static final long serialVersionUID = -9003686713018111855L; private String oid = null;; public ObjectNotFoundException() { super(); } public ObjectNotFoundException(String message, Throwable cause) { super(message, cause); } public ObjectNotFoundException(String message, Throwable cause, String oid) { super(message, cause); this.oid = oid; } public ObjectNotFoundException(String message) { super(message); } public ObjectNotFoundException(String message, String oid) { super(message); this.oid = oid; } public ObjectNotFoundException(Throwable cause) { super(cause); } public String getOid() { return oid; } @Override public String getOperationResultMessage() { return "Object not found"; } }
38,813
https://github.com/lyle8341/socket-program/blob/master/src/com/lyle/non/block/nio/Server.java
Github Open Source
Open Source
MIT
null
socket-program
lyle8341
Java
Code
409
1,480
package com.lyle.non.block.nio; import java.io.IOException; import java.net.InetSocketAddress; import java.net.StandardSocketOptions; import java.nio.ByteBuffer; import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; /** * @ClassName: Server * @Description: * @author: Lyle * @date: 2017年4月13日 下午2:28:16 */ public class Server { private Map<SocketChannel, List<byte[]>> keepDataTrack = new HashMap<>(); private ByteBuffer buffer = ByteBuffer.allocate(2 * 1024); private void start() { final int DEFAULT_PORT = 8888; try { Selector selector = Selector.open(); ServerSocketChannel serverSocketChannel = ServerSocketChannel.open(); if (serverSocketChannel.isOpen() && selector.isOpen()) { serverSocketChannel.configureBlocking(false); serverSocketChannel.setOption(StandardSocketOptions.SO_RCVBUF, 256 * 1024); serverSocketChannel.setOption(StandardSocketOptions.SO_REUSEADDR, true); serverSocketChannel.bind(new InetSocketAddress(DEFAULT_PORT)); serverSocketChannel.register(selector, SelectionKey.OP_ACCEPT); System.out.println("Wating for connections ..."); while (true) { selector.select(); Iterator<SelectionKey> keys = selector.selectedKeys().iterator(); while (keys.hasNext()) { SelectionKey key = keys.next(); keys.remove(); if (!key.isValid()) { continue; } if (key.isAcceptable()) { acceptOP(key, selector); } else if (key.isReadable()) { this.readOP(key); } else if (key.isWritable()) { this.writeOP(key); } } } } else { System.out.println("The server socket channel or selector cannot be opend!"); } } catch (IOException e) { e.printStackTrace(); } } /** * @Title: acceptOP * @Description: TODO * @param key * @param selector * @return: void */ private void acceptOP(SelectionKey key, Selector selector) throws IOException { ServerSocketChannel serverChannel = (ServerSocketChannel) key.channel(); SocketChannel socketChannel = serverChannel.accept(); socketChannel.configureBlocking(false); System.out.println("Incoming connection from:" + socketChannel.getRemoteAddress()); socketChannel.write(ByteBuffer.wrap("[from server]Hello\n".getBytes())); keepDataTrack.put(socketChannel, new ArrayList<byte[]>()); socketChannel.register(selector, SelectionKey.OP_READ); } /** * @Title: writeOP * @Description: TODO * @param key * @return: void */ private void writeOP(SelectionKey key) throws IOException { SocketChannel socketChannel = (SocketChannel) key.channel(); List<byte[]> channelData = keepDataTrack.get(socketChannel); Iterator<byte[]> its = channelData.iterator(); while (its.hasNext()) { byte[] it = its.next(); its.remove(); socketChannel.write(ByteBuffer.wrap(it)); } key.interestOps(SelectionKey.OP_READ); } /** * @Title: readOP * @Description: TODO * @param key * @return: void */ private void readOP(SelectionKey key) { try { SocketChannel socketChannel = (SocketChannel) key.channel(); buffer.clear(); int numRead = -1; try { numRead = socketChannel.read(buffer); } catch (IOException e) { System.out.println("Cannot read error!"); } if (numRead == -1) { this.keepDataTrack.remove(socketChannel); System.out.println("connection closed by:" + socketChannel.getRemoteAddress()); socketChannel.close(); key.cancel(); return; } byte[] data = new byte[numRead]; System.arraycopy(buffer.array(), 0, data, 0, numRead); System.out.println(new String(data, "UTF-8") + " from " + socketChannel.getRemoteAddress()); doEchoJob(key, data); } catch (IOException e) { e.printStackTrace(); } } /** * @Title: doEchoJob * @Description: TODO * @param key * @param data * @return: void */ private void doEchoJob(SelectionKey key, byte[] data) { SocketChannel socketChannel = (SocketChannel) key.channel(); List<byte[]> channelData = keepDataTrack.get(socketChannel); channelData.add(data); key.interestOps(SelectionKey.OP_WRITE); } /** * @Title: acceptOP * @Description: TODO * @param key * @return: void */ public static void main(String[] args) { Server s = new Server(); s.start(); } }
482
https://github.com/NoahAndrews/pebble-timer-plus/blob/master/src/timer.h
Github Open Source
Open Source
MIT
2,019
pebble-timer-plus
NoahAndrews
C
Code
286
525
//! @file timer.h //! @brief Data and controls for timer //! //! Contains data and all functions for setting and accessing //! a timer. Also saves and loads timers between closing and reopening. //! //! @author Eric D. Phillips //! @data October 26, 2015 //! @bugs No known bugs #include <pebble.h> //! Get timer value //! @param hr A pointer to where to store the hour value of the timer //! @param min A pointer to where to store the minute value of the timer //! @param sec A pointer to where to store the second value of the timer void timer_get_time_parts(uint16_t *hr, uint16_t *min, uint16_t *sec); //! Get the timer time in milliseconds //! @return The current value of the timer in milliseconds int64_t timer_get_value_ms(void); //! Get the total timer time in milliseconds //! @return The total value of the timer in milliseconds int64_t timer_get_length_ms(void); //! Check if the timer is vibrating //! @return True if the timer is currently vibrating bool timer_is_vibrating(void); //! Check if timer is in stopwatch mode //! @return True if it is counting up as a stopwatch bool timer_is_chrono(void); //! Check if timer or stopwatch is paused //! @return True if the timer is paused bool timer_is_paused(void); //! Check if the timer is elapsed and vibrate if this is the first call after elapsing void timer_check_elapsed(void); //! Increment timer value currently being edited //! @param increment The amount to increment by void timer_increment(int64_t increment); //! Toggle play pause state for timer void timer_toggle_play_pause(void); //! Rewind the timer back to its original value void timer_rewind(void); //! Reset the timer to zero void timer_reset(void); //! Save the timer to persistent storage void timer_persist_store(void); //! Read the timer from persistent storage void timer_persist_read(void);
35,772
https://github.com/FreshetDMS/kafka/blob/master/core/src/main/scala/kafka/coordinator/transaction/TransactionMetadata.scala
Github Open Source
Open Source
Apache-2.0
null
kafka
FreshetDMS
Scala
Code
820
1,775
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package kafka.coordinator.transaction import kafka.utils.nonthreadsafe import org.apache.kafka.common.TopicPartition import scala.collection.mutable private[coordinator] sealed trait TransactionState { def byte: Byte } /** * Transaction has not existed yet * * transition: received AddPartitionsToTxnRequest => Ongoing * received AddOffsetsToTxnRequest => Ongoing */ private[coordinator] case object Empty extends TransactionState { val byte: Byte = 0 } /** * Transaction has started and ongoing * * transition: received EndTxnRequest with commit => PrepareCommit * received EndTxnRequest with abort => PrepareAbort * received AddPartitionsToTxnRequest => Ongoing * received AddOffsetsToTxnRequest => Ongoing */ private[coordinator] case object Ongoing extends TransactionState { val byte: Byte = 1 } /** * Group is preparing to commit * * transition: received acks from all partitions => CompleteCommit */ private[coordinator] case object PrepareCommit extends TransactionState { val byte: Byte = 2} /** * Group is preparing to abort * * transition: received acks from all partitions => CompleteAbort */ private[coordinator] case object PrepareAbort extends TransactionState { val byte: Byte = 3 } /** * Group has completed commit * * Will soon be removed from the ongoing transaction cache */ private[coordinator] case object CompleteCommit extends TransactionState { val byte: Byte = 4 } /** * Group has completed abort * * Will soon be removed from the ongoing transaction cache */ private[coordinator] case object CompleteAbort extends TransactionState { val byte: Byte = 5 } private[coordinator] object TransactionMetadata { def apply(pid: Long, epoch: Short, txnTimeoutMs: Int, timestamp: Long) = new TransactionMetadata(pid, epoch, txnTimeoutMs, Empty, collection.mutable.Set.empty[TopicPartition], timestamp, timestamp) def apply(pid: Long, epoch: Short, txnTimeoutMs: Int, state: TransactionState, timestamp: Long) = new TransactionMetadata(pid, epoch, txnTimeoutMs, state, collection.mutable.Set.empty[TopicPartition], timestamp, timestamp) def byteToState(byte: Byte): TransactionState = { byte match { case 0 => Empty case 1 => Ongoing case 2 => PrepareCommit case 3 => PrepareAbort case 4 => CompleteCommit case 5 => CompleteAbort case unknown => throw new IllegalStateException("Unknown transaction state byte " + unknown + " from the transaction status message") } } def isValidTransition(oldState: TransactionState, newState: TransactionState): Boolean = TransactionMetadata.validPreviousStates(newState).contains(oldState) private val validPreviousStates: Map[TransactionState, Set[TransactionState]] = Map(Empty -> Set(), Ongoing -> Set(Ongoing, Empty, CompleteCommit, CompleteAbort), PrepareCommit -> Set(Ongoing), PrepareAbort -> Set(Ongoing), CompleteCommit -> Set(PrepareCommit), CompleteAbort -> Set(PrepareAbort)) } /** * * @param pid producer id * @param producerEpoch current epoch of the producer * @param txnTimeoutMs timeout to be used to abort long running transactions * @param state the current state of the transaction * @param topicPartitions set of partitions that are part of this transaction * @param transactionStartTime time the transaction was started, i.e., when first partition is added * @param lastUpdateTimestamp updated when any operation updates the TransactionMetadata. To be used for expiration */ @nonthreadsafe private[coordinator] class TransactionMetadata(val pid: Long, var producerEpoch: Short, var txnTimeoutMs: Int, var state: TransactionState, val topicPartitions: mutable.Set[TopicPartition], var transactionStartTime: Long = -1, var lastUpdateTimestamp: Long) { // pending state is used to indicate the state that this transaction is going to // transit to, and for blocking future attempts to transit it again if it is not legal; // initialized as the same as the current state var pendingState: Option[TransactionState] = None def addPartitions(partitions: collection.Set[TopicPartition]): Unit = { topicPartitions ++= partitions } def prepareTransitionTo(newState: TransactionState): Boolean = { if (pendingState.isDefined) throw new IllegalStateException(s"Preparing transaction state transition to $newState while it already a pending state ${pendingState.get}") // check that the new state transition is valid and update the pending state if necessary if (TransactionMetadata.validPreviousStates(newState).contains(state)) { pendingState = Some(newState) true } else { false } } def completeTransitionTo(newState: TransactionState): Boolean = { val toState = pendingState.getOrElse(throw new IllegalStateException("Completing transaction state transition while it does not have a pending state")) if (toState != newState) { false } else { pendingState = None state = toState true } } def copy(): TransactionMetadata = new TransactionMetadata(pid, producerEpoch, txnTimeoutMs, state, collection.mutable.Set.empty[TopicPartition] ++ topicPartitions, transactionStartTime, lastUpdateTimestamp) override def toString = s"TransactionMetadata($pendingState, $pid, $producerEpoch, $txnTimeoutMs, $state, $topicPartitions, $transactionStartTime, $lastUpdateTimestamp)" override def equals(that: Any): Boolean = that match { case other: TransactionMetadata => pid == other.pid && producerEpoch == other.producerEpoch && txnTimeoutMs == other.txnTimeoutMs && state.equals(other.state) && topicPartitions.equals(other.topicPartitions) && transactionStartTime.equals(other.transactionStartTime) && lastUpdateTimestamp.equals(other.lastUpdateTimestamp) case _ => false } override def hashCode(): Int = { val state = Seq(pid, txnTimeoutMs, topicPartitions, lastUpdateTimestamp) state.map(_.hashCode()).foldLeft(0)((a, b) => 31 * a + b) } }
8,011
https://github.com/kstrauss/slab/blob/master/source/Src/SemanticLogging/Schema/EventSourceSchemaReader.cs
Github Open Source
Open Source
Apache-2.0
null
slab
kstrauss
C#
Code
767
2,607
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. using System; using System.Collections.Generic; using Microsoft.Diagnostics.Tracing; using System.Linq; using System.Text.RegularExpressions; using System.Xml.Linq; using Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Utility; namespace Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Schema { /// <summary> /// Parses the ETW manifest generated by the <see cref="EventSource"/> class. /// </summary> public class EventSourceSchemaReader { private static readonly XNamespace Ns = "http://schemas.microsoft.com/win/2004/08/events"; private static readonly XName Root = Ns + "instrumentationManifest"; private static readonly XName Instrumentation = Ns + "instrumentation"; private static readonly XName Events = Ns + "events"; private static readonly XName Provider = Ns + "provider"; private static readonly XName Tasks = Ns + "tasks"; private static readonly XName Task = Ns + "task"; private static readonly XName Keywords = Ns + "keywords"; private static readonly XName Keyword = Ns + "keyword"; private static readonly XName Opcodes = Ns + "opcodes"; private static readonly XName Opcode = Ns + "opcode"; private static readonly XName Event = Ns + "event"; private static readonly XName Templates = Ns + "templates"; private static readonly XName Template = Ns + "template"; private static readonly Regex DotNetTokensRegex = new Regex(@"%(\d+)", RegexOptions.Compiled); private static readonly Regex StringIdRegex = new Regex(@"\$\(string\.(.+?)\)", RegexOptions.Compiled); /// <summary> /// Gets the schema for the specified event source. /// </summary> /// <param name="eventSource">The event source.</param> /// <returns>The event schema.</returns> public IDictionary<int, EventSchema> GetSchema(EventSource eventSource) { Guard.ArgumentNotNull(eventSource, "eventSource"); return this.GetSchema(EventSource.GenerateManifest(eventSource.GetType(), null)); } internal IDictionary<int, EventSchema> GetSchema(string manifest) { var doc = XDocument.Parse(manifest); var provider = doc.Root.Element(Instrumentation).Element(Events).Element(Provider); var templates = provider.Element(Templates); var tasks = provider.Element(Tasks); var opcodes = provider.Element(Opcodes); var keywords = provider.Element(Keywords); ////var stringTable = GetStringTable(doc.Root); var providerGuid = (Guid)provider.Attribute("guid"); var providerName = (string)provider.Attribute("name"); var events = new Dictionary<int, EventSchema>(); foreach (var @event in provider.Element(Events).Elements(Event)) { var eventId = (int)@event.Attribute("value"); var templateRef = @event.Attribute("template"); var taskName = (string)@event.Attribute("task"); int taskId = 0; if (!string.IsNullOrWhiteSpace(taskName)) { taskId = (int)tasks .Elements(Task) .First(t => (string)t.Attribute("name") == taskName) .Attribute("value"); } var level = this.ParseLevel((string)@event.Attribute("level")); var opcode = this.ParseOpcode((string)@event.Attribute("opcode"), opcodes); ////var message = GetLocalizedString((string)@event.Attribute("message"), stringTable); var keywordNames = (string)@event.Attribute("keywords"); long keywordsMask = 0; if (!string.IsNullOrWhiteSpace(keywordNames)) { foreach (var keywordName in keywordNames.Split()) { var keywordsMaskAtt = keywords .Elements(Keyword) .Where(k => (string)k.Attribute("name") == keywordName) .Select(k => k.Attribute("mask")) .FirstOrDefault(); if (keywordsMaskAtt != null) { keywordsMask |= Convert.ToInt64(keywordsMaskAtt.Value, 16); } } } int version = @event.Attribute("version") != null ? (int)@event.Attribute("version") : 0; IEnumerable<string> paramList; if (templateRef == null) { // Event has no parameters/payload paramList = Enumerable.Empty<string>(); } else { paramList = templates .Elements(Template) .First(t => (string)t.Attribute("tid") == templateRef.Value) .Elements(Ns + "data") .Select(d => (string)d.Attribute("name")).ToList(); } events.Add(eventId, new EventSchema( eventId, providerGuid, providerName, level, (EventTask)taskId, taskName, opcode.Item2, opcode.Item1, ////message, (EventKeywords)keywordsMask, keywordNames, version, paramList)); } return events; } private EventLevel ParseLevel(string level) { switch (level) { case "win:Critical": return EventLevel.Critical; case "win:Error": return EventLevel.Error; case "win:Warning": return EventLevel.Warning; case "win:Informational": return EventLevel.Informational; case "win:Verbose": return EventLevel.Verbose; case "win:LogAlways": default: return EventLevel.LogAlways; } } ////private static string GetLocalizedString(string format, XElement stringTable) ////{ //// if (string.IsNullOrWhiteSpace(format) || stringTable == null) //// { //// return format; //// } //// return stringIdRegex.Replace(format, match => //// { //// if (match.Groups.Count == 2) //// { //// var stringValue = FindString(stringTable, match.Groups[1].Value); //// if (stringValue != null) //// { //// stringValue = ReplaceTokens(stringValue); //// return stringValue; //// } //// } //// return match.Value; //// }); ////} ////private static string ReplaceTokens(string format) ////{ //// return dotNetTokensRegex.Replace(format, ReplaceDotNetToken); ////} ////private static string ReplaceDotNetToken(Match match) ////{ //// if (match.Groups.Count == 2) //// { //// var position = int.Parse(match.Groups[1].Value); //// return "{" + (position - 1) + "}"; //// } //// return match.Value; ////} ////private static string FindString(XElement stringTable, string id) ////{ //// var stringElement = stringTable.Elements(ns + "string") //// .FirstOrDefault(s => (string)s.Attribute("id") == id); //// if (stringElement != null) //// { //// return (string)stringElement.Attribute("value"); //// } //// return null; ////} ////private static XElement GetStringTable(XElement instrumentation) ////{ //// var element = instrumentation.Element(ns + "localization"); //// if (element != null) //// { //// element = element.Element(ns + "resources"); // TODO: filter by language? //// if (element != null) //// { //// return element.Element(ns + "stringTable"); //// } //// } //// return null; ////} private Tuple<string, EventOpcode> ParseOpcode(string opcode, XElement opcodes) { switch (opcode) { case null: case "win:Info": return Tuple.Create("Info", EventOpcode.Info); case "win:Start": return Tuple.Create("Start", EventOpcode.Start); case "win:Stop": return Tuple.Create("Stop", EventOpcode.Stop); case "win:DC_Start": return Tuple.Create("DC_Start", EventOpcode.DataCollectionStart); case "win:DC_Stop": return Tuple.Create("DC_Stop", EventOpcode.DataCollectionStop); case "win:Extension": return Tuple.Create("Extension", EventOpcode.Extension); case "win:Reply": return Tuple.Create("Reply", EventOpcode.Reply); case "win:Resume": return Tuple.Create("Resume", EventOpcode.Resume); case "win:Suspend": return Tuple.Create("Suspend", EventOpcode.Suspend); case "win:Send": return Tuple.Create("Send", EventOpcode.Send); case "win:Receive": return Tuple.Create("Receive", EventOpcode.Receive); } if (!string.IsNullOrWhiteSpace(opcode)) { var opcodeElement = opcodes.Elements(Opcode).FirstOrDefault(o => (string)o.Attribute("name") == opcode); if (opcodeElement != null) { int opcodeId = (int)opcodeElement.Attribute("value"); return Tuple.Create(opcode, (EventOpcode)opcodeId); } } return Tuple.Create("Info", EventOpcode.Info); } } }
17,335
https://github.com/agileseason/agileseason-v1/blob/master/app/assets/stylesheets/pages/p-settings-show.sass
Github Open Source
Open Source
MIT
null
agileseason-v1
agileseason
Sass
Code
209
807
@import mixins/button $image-path: 'pages/p-settings-show' .p-settings-show .b-menu margin-bottom: 0 .title padding-bottom: 30px .columns-block display: inline-block width: 700px vertical-align: top .actions float: right display: none a height: 20px width: 30px text-align: center display: inline-block padding-top: 10px &.blocked display: none ul list-style: none padding: 0 li cursor: pointer padding: 10px margin: 0 0 0 -10px position: relative &:hover background: $active .actions display: inline-block .setting input[type='text'], input[type='input'] padding-right: 30px margin-right: 10px .board-name input[type='submit'] display: none input margin-left: 10px label display: inline-block .column-name display: inline-block .active-settings display: inline-block span margin-right: 10px .autoassign, .autoclose display: none &.active display: inline-block .other-settings display: none .autoassign margin-top: 20px .autoassign, .autoclose label display: inline-block .wip input width: 30px input[name="wip_min"] margin-right: 5px .notes display: inline-block width: 400px vertical-align: top margin-left: 20px padding-top: 36px p margin-bottom: 10px input display: inline-block padding: 10px .button padding: 7px 15px &.danger background: $error .subtitle margin-bottom: 20px padding-bottom: 0 padding-top: 0 .setting margin: 30px 0 .action display: inline-block width: 160px vertical-align: middle .setting-label display: inline-block width: calc(90% - 180px) padding-left: 20px vertical-align: middle .with-enter-submit position: relative width: 228px margin-right: 10px input padding-right: 30px &:hover .enter-submit opacity: 1 .enter-submit background: inline-image("#{$image-path}/enter-submit.png") no-repeat 50% 50% transparent cursor: pointer display: block height: 38px opacity: 0.6 padding: 0 !important position: absolute right: 0 top: 1px width: 12px .danger:not(.button) color: $error
46,734
https://github.com/AtelierNum/workshop_code_creatif_2021/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,021
workshop_code_creatif_2021
AtelierNum
Ignore List
Code
2
13
AirSet/.DS_Store .DS_Store
37,069
https://github.com/vue-polkadot/apps/blob/master/dashboard/src/components/shared/wrapper/ItemCard.vue
Github Open Source
Open Source
MIT
2,022
apps
vue-polkadot
Vue
Code
48
166
<template> <div class="card item-card"> <div class="card-content item-card-content columns is-vcentered"> <slot /> </div> <slot name="additional"></slot> </div> </template> <style scoped> .card.item-card{ margin-bottom: 1em; } .card-content.item-card-content { padding: 0 0.5em; } </style> <script lang="ts"> import { Component, Prop, Vue } from 'vue-property-decorator'; export default class ItemCard extends Vue { } </script>
18,719
https://github.com/glovenkevin/go-git-puller/blob/master/commands/command.go
Github Open Source
Open Source
Apache-2.0
null
go-git-puller
glovenkevin
Go
Code
705
1,744
package commands import ( "errors" "fmt" "os" "regexp" "strings" "github.com/schollz/progressbar/v3" "go.uber.org/zap" ) type Options struct { // Flag for activating logging while the program running Verbose bool // Define action to be executed in command Action string // Define root directory of the action Dir string // Exclude Group name, separated by commas Exgroups []string // Exclude Project name, separated by commas Exprojects []string // a flag that used to make decision wether it's need to be hard reset // before the pull being executed Hardreset bool // Define authentication used for interacting with git repository Auth *Auth // Define base url (usefull for update-gitlab or clone project) Baseurl string // Set the zap logger Logs *zap.Logger } type Command struct { verbose bool action string dir string exGroups map[string]struct{} exProjects map[string]struct{} auth *Auth hardReset bool baseurl string bar *progressbar.ProgressBar // default logger for the package command (zap logger) log *zap.Logger } type Auth struct { // Username being used for authentication with git. // If this token was set, then this field will have default value "token" (acording to go-git docs to use like this) Username string // Password for authentication with git // If token was set, then it's gonna be put in here Password string } var ( ErrCommandNotFound = errors.New("Command not found/unrecognize") ErrCredentialNotFound = errors.New("Credential has not been set completely") ErrActionNotFound = errors.New("Action not been initialize") ErrLogsNotDefined = errors.New("Zap logger has not been defined") ErrDirNotExist = errors.New("Directory not valid/exist") ) // Generate new command struct for executing update func New(opt *Options) (*Command, error) { if err := validate(opt); err != nil { return nil, err } exProject := make(map[string]struct{}) for _, val := range opt.Exprojects { exProject[val] = struct{}{} } exGroups := make(map[string]struct{}) for _, val := range opt.Exgroups { exGroups[val] = struct{}{} } c := Command{ verbose: opt.Verbose, action: opt.Action, auth: opt.Auth, dir: opt.Dir, exGroups: exGroups, exProjects: exProject, hardReset: opt.Hardreset, baseurl: opt.Baseurl, log: opt.Logs, } if !opt.Verbose { c.bar = progressbar.Default(1) c.bar.Describe("Start executing action ...") } return &c, nil } // Validate given options is enough to do the task // Credential, action performed, directory and the logs func validate(opt *Options) error { if opt.Action == "version" || opt.Action == "usage" { return nil } if match, _ := regexp.MatchString(`[/\\]{2,}$`, opt.Dir); match { return ErrDirNotExist } if strings.HasSuffix(opt.Dir, "\\") || strings.HasSuffix(opt.Dir, "/") { opt.Dir = strings.TrimSuffix(opt.Dir, "/") opt.Dir = strings.TrimSuffix(opt.Dir, "\\") } if _, err := os.Stat(opt.Dir); err != nil { return ErrDirNotExist } if opt.Auth == nil || (opt.Auth != nil && (opt.Auth.Username == "" || opt.Auth.Password == "")) { return ErrCredentialNotFound } if opt.Logs == nil { return ErrLogsNotDefined } return nil } func (c *Command) getCommandDispatcher() map[string]func() error { return map[string]func() error{ "update": func() error { return c.UpdateGit() }, "update-gitlab": func() error { return c.UpdateGitlab() }, "clone-gitlab": func() error { return c.CloneGitlab() }, "version": func() error { return PrintVersion() }, "usage": func() error { usage() return nil }, } } // Execute action based on action key provided func (c *Command) Execute() error { dispatcher := c.getCommandDispatcher() err := dispatcher[c.action]() if err != nil { return err } return nil } func usage() { msg := ` Usage: go-git-puller.exe <action> [-t <token>] [-U <username>] [-P <password>] [-path <path>] [-u <URL>] [-verbose] [-eg <groupname>] [-ep <projectname>] Action clone-gitlab Clone whole gitlab project with tree structure update-gitlab Update gitlab project in local recursively, clone the project if doesn't exist or update it if present in your local mechine update Update local project recursively version Show go-git-puller version usage Show command line parameter Action Parameter -u,-url Default would be https://gitlab.com/, if you have local repository with specific url you can put it in here. -path Set the target path. The default value is current path -verbose Flag for activating debug mode (Print every the shit out of it) -hard-reset Flag for enabling hard reset on project/local repo when update action being executed -version Show go-git-puller current version Authentication parameter -U,-username Set the username for authentication -P,-password Set the password for authentication -t,-token Using token for authentication Exclude Project/Group parameter -eg Exclude group from being pull/update by name -ep Exclude project from being pull/update by name Example: #Clone Whole Gitlab Tree go-git-puller.exe -c clone-gitlab -t 124asdf -u http://localhost/ ` fmt.Println(msg) }
382
https://github.com/KVGarg/openhub-django/blob/master/tests/models/test_outside_committer_model.py
Github Open Source
Open Source
MIT
2,021
openhub-django
KVGarg
Python
Code
128
778
from django.test import TestCase from openhub_django.models import ( OutsideCommitter, ContributionsToPortfolioProject) from openhub_django.variables import ORG_NAME class OutsideCommitterModelTest(TestCase): @classmethod def setUpTestData(cls): # Set up non-modified objects used by all methods cpp = ContributionsToPortfolioProject.objects.create( projects='test_project-1, test_project-2', twelve_mo_commits=49 ) OutsideCommitter.objects.create( name='Test User', level=2, affiliated_with='Unaffiliated', org=ORG_NAME, contributions_to_portfolio_projects=cpp ) def test_field_label(self): outside_committer = OutsideCommitter.objects.get(id=1) name = outside_committer._meta.get_field('name').verbose_name self.assertEquals(name, 'name') kudos = outside_committer._meta.get_field('kudos').verbose_name self.assertEquals(kudos, 'kudos') level = outside_committer._meta.get_field('level').verbose_name self.assertEquals(level, 'level') affiliated_with = outside_committer._meta.get_field( 'affiliated_with').verbose_name self.assertEquals(affiliated_with, 'affiliated with') contributions_to_portfolio_projects = outside_committer._meta.get_field( 'contributions_to_portfolio_projects').verbose_name self.assertEquals( contributions_to_portfolio_projects, 'contributions to portfolio projects') cpp = outside_committer.contributions_to_portfolio_projects projects = cpp._meta.get_field( 'projects').verbose_name self.assertEquals(projects, 'projects') twelve_mo_commits = cpp._meta.get_field( 'twelve_mo_commits').verbose_name self.assertEquals(twelve_mo_commits, 'twelve mo commits') def test_char_field_max_length(self): outside_committer = OutsideCommitter.objects.get(id=1) name_max_length = outside_committer._meta.get_field('name').max_length self.assertEquals(name_max_length, 100) affiliated_with_max_length = outside_committer._meta.get_field( 'affiliated_with').max_length self.assertEquals(affiliated_with_max_length, 100) org = outside_committer._meta.get_field('org').max_length self.assertEquals(org, 100) def test_object_name_is_committer_name(self): outside_committer = OutsideCommitter.objects.get(id=1) expected_object_name = outside_committer.name self.assertEquals(expected_object_name, str(outside_committer))
6,667
https://github.com/AinyFeng/ngx-admin/blob/master/projects/web/src/app/modules/administration/components/search-profile/search-profile.component.ts
Github Open Source
Open Source
MIT
null
ngx-admin
AinyFeng
TypeScript
Code
1,061
4,054
import { Component, OnDestroy, OnInit } from '@angular/core'; import { NzMessageService, NzModalService } from 'ng-zorro-antd'; import { drawerAnimation } from '../../../../@uea/animations/drawer.animation'; import { DicDataService, ApiAdminDailyManagementService, CommunityDataService, FileDownloadUtils, FILE_TYPE, DateUtils, FILE_TYPE_SUFFIX, StockExportService } from '@tod/svs-common-lib'; import { UserService } from '@tod/uea-auth-lib'; import * as moment from 'moment'; import { Moment } from 'moment'; import { FormBuilder, FormGroup } from '@angular/forms'; import { ConfirmDialogComponent } from '../../../../@uea/components/dialog/confirm-dialog/confirm-dialog.component'; import { NbDialogService } from '@nebular/theme'; @Component({ selector: 'uea-report-child-management', templateUrl: './search-profile.component.html', styleUrls: ['../admin.common.scss'], animations: [drawerAnimation] }) export class SearchProfileComponent implements OnInit, OnDestroy { hideQueryCondition = false; loading = false; searchCondition: FormGroup; total = 0; pageIndex = 1; pageSize = 10; genderOptions = []; // 在册状态 residentStatusOpt = []; profileStatus = []; // 居住类型 residentialTypeData = []; // 所属区块 belongDistrictData = []; // 户口类别 idTypeData = []; // table中的数据 listOfData: any[] = []; // 此刻的时间 currentNow = moment(); // 登录用户信息 userInfo: any; category: any; constructor( private thisApiService: ApiAdminDailyManagementService, private fb: FormBuilder, private msg: NzMessageService, private dicSvc: DicDataService, private exportSvc: StockExportService, private modalSvc: NzModalService, private dialogService: NbDialogService, private communitySvc: CommunityDataService, private userSvc: UserService ) { } ngOnInit() { // 获取在册状态 // this.residentStatusOpt = this.dicSvc.getDicDataByKey('profileStatus'); this.profileStatus = this.dicSvc.getDicDataByKey('profileStatus'); this.residentStatusOpt = this.deduplication(this.profileStatus); // 获取居住类型 this.residentialTypeData = this.dicSvc.getDicDataByKey('residentialType'); // 获取所属区块 this.belongDistrictData = this.communitySvc.getCommunityData(); // 获取户口类别 this.idTypeData = this.dicSvc.getDicDataByKey('idType'); // 性别 this.genderOptions = this.dicSvc.getDicDataByKey('genderCode'); // 档案查询条件 this.searchCondition = this.fb.group({ profileCode: [null], // 档案编号 name: [null], // 姓名 birthCardNo: [null], // 条码 idCardNo: [null], // 证件号码 birthStart: [null], // 出生日期起 birthEnd: [null], // 出生日期止 gender: [null], // 性别 motherName: [null], // 母亲姓名 motherContactPhone: [null], // 母亲手机号 fatherName: [null], // 父亲姓名 fatherContactPhone: [null], // 父亲手机号 createStart: [null], // 创建时间起 createEnd: [null], // 创建时间止 residentialTypeCode: [null], // 居住类别 community: [null], // 所属区块 idTypeCode: [null], // 户口类别 profileStatusCode: [null], // 在册状态 lastModifyStartDate: [null], // 修改时间起 lastModifyEndDate: [null] // 修改时间止 }); this.userSvc.getUserInfoByType().subscribe(user => { this.userInfo = user; this.profileSearch(); }); } // 对象数组去重 deduplication(arr: any[]) { let result = []; let obj = {}; for (let i = 0; i < arr.length; i++) { if (!obj[arr[i].label]) { result.push(arr[i]); obj[arr[i].label] = true; } } return result; } ngOnDestroy(): void { } // 过滤出生日期 - 起 filterBirthStartDate = (d: Moment) => { const endDate = this.searchCondition.get('birthEnd').value; if (endDate) { return d <= endDate; } return d <= this.currentNow; } // 过滤出生日期 - 止 filterBirthEndDate = (d: Moment) => { const startDate = this.searchCondition.get('birthStart').value; if (startDate) { return d >= startDate && d <= this.currentNow; } return d <= this.currentNow; } // 过滤建档日期-起 filterCreateStartDate = (d: Moment) => { const endDate = this.searchCondition.get('createEnd').value; if (endDate) { return d <= endDate; } return d <= this.currentNow; } // 过滤建档日期-止 filterCreateEndDate = (d: Moment) => { const startDate = this.searchCondition.get('createStart').value; if (startDate) { return d >= startDate && d <= this.currentNow; } return d <= this.currentNow; } /* * 档案查询 */ profileSearch(page = 1) { this.pageIndex = page; // 如果再查询的时候,则停止查询并禁止按钮不能点击 if (this.loading) return; this.listOfData = []; if (this.searchCondition.get('birthStart').value && this.searchCondition.get('birthEnd').value) { const start = this.searchCondition.get('birthStart').value.format('YYYY-MM-DD HH:mm:ss'); const end = this.searchCondition.get('birthEnd').value.format('YYYY-MM-DD HH:mm:ss'); console.log(start); console.log(end); if (moment(end).isBefore(start)) { this.msg.warning('你输入的出生日期起时间晚于止时间'); return; } } if (this.searchCondition.get('createStart').value && this.searchCondition.get('createEnd').value) { const start = this.searchCondition.get('createStart').value.format('YYYY-MM-DD HH:mm:ss'); const end = this.searchCondition.get('createEnd').value.format('YYYY-MM-DD HH:mm:ss'); if (moment(end).isBefore(start)) { this.msg.warning('你输入的创建起时间晚于止时间'); return; } } // 添加条件 let conditionValue = JSON.parse(JSON.stringify(this.searchCondition.value)); // 筛选在册类别 let registeredCategory = []; if (this.searchCondition.get('profileStatusCode').value) { const profileStatusCode = this.searchCondition.get('profileStatusCode').value; const profileStatusData = this.residentStatusOpt; for (let i = 0; i < profileStatusCode.length; i++) { const singleData = profileStatusCode[i]; for (let j = 0; j < profileStatusData.length; j++) { const singleStatus = profileStatusData[j]; if (singleData === singleStatus.value) { registeredCategory.push(...this.profileStatus.filter(item => item.label === singleStatus.label)); } } } } this.category = []; if (registeredCategory.length) { registeredCategory.forEach(item => this.category.push(item.value)); } const params = { vaccinationPovCode: this.userInfo.pov, profileCode: conditionValue.profileCode === '' || !conditionValue.profileCode ? null : conditionValue.profileCode.trim(), name: conditionValue.name === '' || !conditionValue.name ? null : conditionValue.name.trim(), birthCardNo: conditionValue.birthCardNo === '' || !conditionValue.birthCardNo ? null : conditionValue.birthCardNo.trim(), motherName: conditionValue.motherName === '' || !conditionValue.motherName ? null : conditionValue.motherName.trim(), motherContactPhone: conditionValue.motherContactPhone === '' || !conditionValue.motherContactPhone ? null : conditionValue.motherContactPhone.trim(), fatherName: conditionValue.fatherName === '' || !conditionValue.fatherName ? null : conditionValue.fatherName.trim(), fatherContactPhone: conditionValue.fatherContactPhone === '' || !conditionValue.fatherContactPhone ? null : conditionValue.fatherContactPhone.trim(), idCardNo: conditionValue.idCardNo === '' || !conditionValue.idCardNo ? null : conditionValue.idCardNo.trim(), gender: conditionValue.gender === '' ? null : conditionValue.gender, residentialTypeCode: conditionValue.residentialTypeCode, community: conditionValue.community, idTypeCode: conditionValue.idTypeCode, profileStatusCode: this.category, birthDate: { start: this.searchCondition.get('birthStart').value ? this.searchCondition.get('birthStart').value.format('YYYY-MM-DD') + ' 00:00:00' : null, end: this.searchCondition.get('birthEnd').value ? this.searchCondition.get('birthEnd').value.format('YYYY-MM-DD') + ' 23:59:59' : null }, createDate: { start: this.searchCondition.get('createStart').value ? this.searchCondition.get('createStart').value.format('YYYY-MM-DD') + ' 00:00:00' : null, end: this.searchCondition.get('createEnd').value ? this.searchCondition.get('createEnd').value.format('YYYY-MM-DD') + ' 23:59:59' : null }, pageEntity: { page: this.pageIndex, pageSize: this.pageSize } }; this.loading = true; console.log('参数', params); this.listOfData = []; this.thisApiService.archivesQuery(params, (resp, resp1) => { this.loading = false; console.log('data', resp, resp1); // 解析count数据 if (resp1 && resp1.code === 0 && resp.hasOwnProperty('data') && resp.data.length !== 0) { this.total = resp1.data[0].count; } // 解析表格数据 if (resp && resp.code === 0 && resp.hasOwnProperty('data') && resp.data.length !== 0) { this.listOfData = resp.data; } else { this.listOfData = []; this.msg.warning('未查询到数据'); return; } }); } // 导出 StockExportService export() { if (this.listOfData.length === 0) { this.modalSvc.warning({ nzTitle: '提示', nzContent: '没有数据,请先执行查询操作', nzMaskClosable: true }); return; } this.dialogService.open(ConfirmDialogComponent, { hasBackdrop: true, closeOnBackdropClick: false, closeOnEsc: false, context: { title: '确认导出', content: '是否确认导出此报表?' } }).onClose.subscribe(confirm => { if (confirm) { let conditionValue = JSON.parse(JSON.stringify(this.searchCondition.value)); const params = { vaccinationPovCode: this.userInfo.pov, profileCode: conditionValue.profileCode === '' || !conditionValue.profileCode ? null : conditionValue.profileCode.trim(), name: conditionValue.name === '' || !conditionValue.name ? null : conditionValue.name.trim(), birthCardNo: conditionValue.birthCardNo === '' || !conditionValue.birthCardNo ? null : conditionValue.birthCardNo.trim(), motherName: conditionValue.motherName === '' || !conditionValue.motherName ? null : conditionValue.motherName.trim(), motherContactPhone: conditionValue.motherContactPhone === '' || !conditionValue.motherContactPhone ? null : conditionValue.motherContactPhone.trim(), fatherName: conditionValue.fatherName === '' || !conditionValue.fatherName ? null : conditionValue.fatherName.trim(), fatherContactPhone: conditionValue.fatherContactPhone === '' || !conditionValue.fatherContactPhone ? null : conditionValue.fatherContactPhone.trim(), idCardNo: conditionValue.idCardNo === '' || !conditionValue.idCardNo ? null : conditionValue.idCardNo.trim(), gender: conditionValue.gender === '' ? null : conditionValue.gender, residentialTypeCode: conditionValue.residentialTypeCode, community: conditionValue.community, idTypeCode: conditionValue.idTypeCode, profileStatusCode: this.category, birthDate: { start: this.searchCondition.get('birthStart').value ? this.searchCondition.get('birthStart').value.format('YYYY-MM-DD') + ' 00:00:00' : null, end: this.searchCondition.get('birthEnd').value ? this.searchCondition.get('birthEnd').value.format('YYYY-MM-DD') + ' 23:59:59' : null }, createDate: { start: this.searchCondition.get('createStart').value ? this.searchCondition.get('createStart').value.format('YYYY-MM-DD') + ' 00:00:00' : null, end: this.searchCondition.get('createEnd').value ? this.searchCondition.get('createEnd').value.format('YYYY-MM-DD') + ' 23:59:59' : null }, pageEntity: { page: this.pageIndex, pageSize: this.pageSize } }; // console.log('params2',params); this.loading = true; this.exportSvc.profileExcel(params, resp => { this.loading = false; // console.log(resp); FileDownloadUtils.downloadFile(resp, FILE_TYPE.EXCEL2003, '档案查询报表_' + DateUtils.getNewDateTime() + FILE_TYPE_SUFFIX.EXCEL2003); }); } }); } // 重置 reset() { this.searchCondition.reset({ residentialTypeCode: [], community: [], idTypeCode: [], profileStatusCode: [], isIdCardNum: [], birthStart: null, birthEnd: null, }); this.loading = false; } }
43,937
https://github.com/shaunabanana/timeliner/blob/master/src/theme.js
Github Open Source
Open Source
MIT
2,022
timeliner
shaunabanana
JavaScript
Code
20
60
const Theme = { // photoshop colors a: '#343434', b: '#535353', c: '#b8b8b8', d: '#d6d6d6', }; export { Theme }
33,221