hexsha stringlengths 40 40 | size int64 5 1.05M | ext stringclasses 98
values | lang stringclasses 21
values | max_stars_repo_path stringlengths 3 945 | max_stars_repo_name stringlengths 4 118 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 945 | max_issues_repo_name stringlengths 4 118 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 945 | max_forks_repo_name stringlengths 4 135 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 1.05M | avg_line_length float64 1 1.03M | max_line_length int64 2 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
680bb7d4bcf53d8cf19b0833d0b9b26f91d37cb8 | 1,598 | cpp | C++ | thread_pool/threadpool.cpp | Daniil159x/sandbox | 296efad5c235283c4623d24762601fc9ac0a76a8 | [
"MIT"
] | null | null | null | thread_pool/threadpool.cpp | Daniil159x/sandbox | 296efad5c235283c4623d24762601fc9ac0a76a8 | [
"MIT"
] | null | null | null | thread_pool/threadpool.cpp | Daniil159x/sandbox | 296efad5c235283c4623d24762601fc9ac0a76a8 | [
"MIT"
] | null | null | null | #include "threadpool.hpp"
ThreadPool::ThreadPool(const size_t nThreadCount) : m_workers(nThreadCount) {
for(auto &t : m_workers) {
t = std::thread(&ThreadPool::WorkersLoop_, this);
}
}
void ThreadPool::AddTask(ThreadPool::task_t foo) {
std::unique_lock<std::mutex> lock(m_mtxQueue);
m_taskQueue.push(std::move(foo));
lock.unlock();
m_cvAddedTask.notify_one();
}
size_t ThreadPool::GetCountTask() noexcept
{
std::lock_guard<std::mutex> lock(m_mtxQueue);
return m_taskQueue.size();
}
ThreadPool::~ThreadPool() noexcept {
std::unique_lock<std::mutex> lock(m_mtxQueue);
m_exit = true;
lock.unlock();
m_cvAddedTask.notify_all();
for(auto &t : m_workers) {
if(t.joinable()) {
t.join();
}
}
}
void ThreadPool::Join() noexcept
{
std::unique_lock<std::mutex> lock(m_mtxQueue);
m_exit = true;
lock.unlock();
m_cvAddedTask.notify_all();
for(auto &t : m_workers) {
if(t.joinable()) {
t.join();
}
}
}
void ThreadPool::WorkersLoop_() noexcept {
std::unique_lock<std::mutex> lock(m_mtxQueue);
while (!m_exit && !m_exitIfEmpty) {
m_cvAddedTask.wait(lock, [&](){ return !m_taskQueue.empty() || m_exit || m_exitIfEmpty; });
if(m_exit) return;
while(!m_taskQueue.empty()) {
task_t localTask = std::move(m_taskQueue.front());
m_taskQueue.pop();
lock.unlock();
try {
localTask();
} catch (...) { /* TODO */ }
lock.lock();
}
}
} | 22.194444 | 99 | 0.577597 |
6832d19b02e18819ba7b7c13fe0cf49b91099510 | 1,013 | html | HTML | packages/terra-functional-testing/tests/fixtures/element-out-of-bound.html | kaylabarnett/terra-toolkit | b9bc61852e482e22eba6b18340684963d2f30c07 | [
"Apache-2.0"
] | 31 | 2017-07-28T22:11:18.000Z | 2022-01-28T17:38:27.000Z | packages/terra-functional-testing/tests/fixtures/element-out-of-bound.html | kaylabarnett/terra-toolkit | b9bc61852e482e22eba6b18340684963d2f30c07 | [
"Apache-2.0"
] | 423 | 2017-01-30T18:16:15.000Z | 2022-03-21T15:17:00.000Z | packages/terra-functional-testing/tests/fixtures/element-out-of-bound.html | kaylabarnett/terra-toolkit | b9bc61852e482e22eba6b18340684963d2f30c07 | [
"Apache-2.0"
] | 45 | 2017-11-02T13:04:02.000Z | 2021-12-16T09:50:15.000Z | <!doctype html>
<html lang="<%= htmlWebpackPlugin.options.lang %>" dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Element Out Of Bound Test </title>
<style>
div#main-content {
overflow-x: hidden;
}
div#out-of-bound-left-content {
border: 1px solid black;
transform: translate3d(-50%, 0, 0);
}
div#out-of-bound-right-content {
border: 1px solid black;
transform: translate3d(50%, 0, 0);
}
</style>
</head>
<body>
<div data-terra-test-content id="main-content">
<h1>Main content</h1>
<div id="out-of-bound-left-content">
<h1>This element is out of bound to the left of the document</h1>
</div>
<div id="out-of-bound-right-content">
<h1>This element is out of bound to the right of the document</h1>
</div>
</div>
</body>
</html>
| 29.794118 | 74 | 0.588351 |
81644ee7a7b71ae9748125e7fc88d5e9913f49c5 | 2,080 | dart | Dart | lib/app/widgets/distance_screen_widgets/chart_container.dart | SatYu26/Flutter-Training-App | 3ef9545235ef95e3c164c4bc195e7da21de64ea6 | [
"MIT"
] | 3 | 2020-12-15T07:31:46.000Z | 2021-07-03T12:57:48.000Z | lib/app/widgets/distance_screen_widgets/chart_container.dart | SatYu26/Flutter-Training-App | 3ef9545235ef95e3c164c4bc195e7da21de64ea6 | [
"MIT"
] | null | null | null | lib/app/widgets/distance_screen_widgets/chart_container.dart | SatYu26/Flutter-Training-App | 3ef9545235ef95e3c164c4bc195e7da21de64ea6 | [
"MIT"
] | null | null | null | import 'package:flutter/material.dart';
class ChartContainer extends StatelessWidget {
final String text1;
final String text2;
final String chart;
ChartContainer({
@required this.text1,
@required this.text2,
@required this.chart,
});
@override
Widget build(BuildContext context) {
return Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
),
elevation: 2,
child: Container(
width: double.infinity,
padding: EdgeInsets.only(top: 10, right: 20, left: 20),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(10),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
text1,
style: TextStyle(
color: Theme.of(context).primaryColor,
fontSize: 20,
),
),
Text(
text2,
style: TextStyle(
color: Theme.of(context).primaryColor,
fontSize: 12,
),
),
],
),
Text(
'View all',
style: TextStyle(
color: Theme.of(context).primaryColor,
fontSize: 14,
),
),
],
),
SizedBox(height: 10),
Image.asset(
chart,
fit: BoxFit.cover,
width: 260,
),
],
),
),
);
}
}
| 28.493151 | 64 | 0.446154 |
9278982f1ab4d9427103b430e1ace6e1342cc38e | 955 | c | C | chapter8/projects/six.c | Alec74/Learning-C | ad1f9141a7a7f640618ffcc4723955d3fbf2ec97 | [
"MIT"
] | null | null | null | chapter8/projects/six.c | Alec74/Learning-C | ad1f9141a7a7f640618ffcc4723955d3fbf2ec97 | [
"MIT"
] | null | null | null | chapter8/projects/six.c | Alec74/Learning-C | ad1f9141a7a7f640618ffcc4723955d3fbf2ec97 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <ctype.h>
int main(void){
int i = 0;
char ch, original[64] = {0}, u;
printf("Enter message: ");
while ((ch = getchar()) != '\n'){
original[i++] = ch;
}
printf("In Biff speak: ");
for (i = 0; i < 64; i++){
u = toupper(original[i]);
switch (u){
case 'A':
printf("%c", '4');
break;
case 'B':
printf("%c", '8');
break;
case 'E':
printf("%c", '3');
break;
case 'I':
printf("%c", '1');
break;
case 'O':
printf("%c", '0');
break;
case 'S':
printf("%c", '5');
break;
default:
printf("%c", u);
break;
}
}
printf("!!!!!!!!!!!!!!!!\n");
return 0;
} | 21.222222 | 37 | 0.309948 |
c570481ad502a5b791150639bfe6125d690554d7 | 1,612 | cpp | C++ | thirdparty/physx/PhysXSDK/Source/LowLevel/software/src/PxsParticleShape.cpp | johndpope/echo | e9ce2f4037e8a5d49b74cc7a9d9ee09f296e7fa7 | [
"MIT"
] | null | null | null | thirdparty/physx/PhysXSDK/Source/LowLevel/software/src/PxsParticleShape.cpp | johndpope/echo | e9ce2f4037e8a5d49b74cc7a9d9ee09f296e7fa7 | [
"MIT"
] | 2 | 2015-06-21T17:38:11.000Z | 2015-06-22T20:54:42.000Z | thirdparty/physx/PhysXSDK/Source/LowLevel/software/src/PxsParticleShape.cpp | johndpope/echo | e9ce2f4037e8a5d49b74cc7a9d9ee09f296e7fa7 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this software and related documentation without an express
* license agreement from NVIDIA CORPORATION is strictly prohibited.
*/
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
#include "PxsParticleShape.h"
#include "PxsContext.h"
#include "PxsParticleSystemSim.h"
#include "PxsFluidSpatialHash.h"
using namespace physx;
PxsParticleShape::PxsParticleShape(PxsContext* /*context*/, PxU32 index) :
mIndex(index),
mParticleSystem(NULL),
mPacket(NULL),
mUserData(NULL)
{
}
PxsParticleShape::~PxsParticleShape()
{
}
void PxsParticleShape::init(PxsParticleSystemSim* particleSystem, const PxsParticleCell* packet)
{
PX_ASSERT(mParticleSystem == NULL);
PX_ASSERT(mPacket == NULL);
PX_ASSERT(mUserData == NULL);
PX_ASSERT(particleSystem);
PX_ASSERT(packet);
mParticleSystem = particleSystem;
mPacket = packet;
mPacketCoordinates = packet->coords; // this is needed for the remapping process.
// Compute and store AABB of the assigned packet
mParticleSystem->getPacketBounds(mPacketCoordinates, mBounds);
}
void PxsParticleShape::destroyV()
{
PX_ASSERT(mParticleSystem);
mParticleSystem->getContext().releaseFluidShape(this);
mParticleSystem = NULL;
mPacket = NULL;
mUserData = NULL;
}
| 26.42623 | 96 | 0.770471 |
c5d6dc997fd45b7e49591b8821c0728e86f12585 | 1,701 | cpp | C++ | pg_answer/6bf6c168a268492d83740cfeaf60e968.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | 8 | 2019-10-09T14:33:42.000Z | 2020-12-03T00:49:29.000Z | pg_answer/6bf6c168a268492d83740cfeaf60e968.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | null | null | null | pg_answer/6bf6c168a268492d83740cfeaf60e968.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | null | null | null | #include <cstring>
#include <iostream>
char a[77][77];
bool mk[77][77];
int minstep, w, h;
int endX, endY;
void search(int nowX, int nowY, int step, int lastD) {
int dx[4]{0, -1, 0, 1};
int dy[4]{1, 0, -1, 0};
if (step > minstep) return;
for (int d{0}; d <= 3; d++) {
int x{nowX + dx[d]};
int y{nowY + dy[d]};
if (x == endX && y == endY && a[y][x] == 'X') {
minstep = std::min(minstep, step + (lastD != d));
return;
}
if (x < 0 || x > w + 1 || y < 0 || y > h + 1 || a[y][x] == 'X' || mk[y][x]) continue;
mk[y][x] = true;
search(x, y, step + (lastD != d), d);
mk[y][x] = false;
}
}
int main() {
int boardnum{0};
while (std::cin >> w >> h, w) {
boardnum++;
std::cout << "Board #" << boardnum << ':' << std::endl;
for (int i{1}; i <= h; i++) {
std::cin.ignore();
for (int j{1}; j <= w; j++) {
std::cin.get(a[i][j]);
}
}
for (int i{0}; i <= w; i++) {
a[h + 1][i] = a[0][i] = ' ';
}
for (int i{0}; i <= h; i++) {
a[i][w + 1] = a[i][0] = ' ';
}
int beginX, beginY, count{0};
while (std::cin >> beginX >> beginY >> endX >> endY, beginX) {
count++;
minstep = 10000;
memset(mk, 0, sizeof(mk));
search(beginX, beginY, 0, -1);
if (minstep < 10000) {
std::cout << "Pair " << count << ": " << minstep << " segments." << std::endl;
} else {
std::cout << "Pair " << count << ": impossible." << std::endl;
}
}
}
} | 29.327586 | 94 | 0.38154 |
22fc59b63821d04b25f285c201e13a0e7b4859df | 4,952 | sql | SQL | sql_scripts/Block4/A1_sqls.sql | Giftytom/DBS | 3e18792a19e557801d31770f1ff97a711413ee5d | [
"Unlicense"
] | null | null | null | sql_scripts/Block4/A1_sqls.sql | Giftytom/DBS | 3e18792a19e557801d31770f1ff97a711413ee5d | [
"Unlicense"
] | null | null | null | sql_scripts/Block4/A1_sqls.sql | Giftytom/DBS | 3e18792a19e557801d31770f1ff97a711413ee5d | [
"Unlicense"
] | null | null | null | /*
SQL-Abfragen bei Zimmerbuchung
*/
use hotel;
SET @MitarbeiterId = 3400; -- Vom Login des Mitarbeiters
SET @AnreiseDatum = "2017-07-01";
SET @AbreiseDatum = "2017-07-07";
SET @AnzahlPersonen = 2;
-- Alle freien Zimmer (im Zeitraum nicht gebucht, ohne Berücksichtigung der Anfragen)
SELECT DISTINCT z.ZimmerId, ZimmerNummer AS 'Nummer', Stockwerk, t.Name AS 'Trakt',
CASE Alpenblick WHEN TRUE THEN 'ja' ELSE 'nein' END AS 'Alpenblick',
CASE Whirlpool WHEN TRUE THEN 'ja' ELSE 'nein' END AS 'Whirlpool',
CASE Bad WHEN TRUE THEN 'Bad' ELSE 'Dusche' END AS 'Ausstattung',
zt.Bezeichnung AS 'Typ', bt.Bezeichnung AS 'Bett', bt.AnzahlPersonen AS 'Personen'
FROM Zimmer z
LEFT OUTER JOIN ZimmerBelegung zb ON zb.ZimmerId = z.ZimmerId
JOIN Trakt t ON t.TraktId = z.TraktId
JOIN ZimmerTyp zt ON z.ZimmerTypId = zt.ZimmerTypId
JOIN BettenTyp bt ON zt.BettenTypId = bt.BettenTypId -- JOIN
WHERE AnzahlPersonen = @AnzahlPersonen -- richtige Anzahl Betten
AND NOT EXISTS (
SELECT BuchungId FROM Buchung b
WHERE (b.AbreiseDatum > @AnreiseDatum
AND b.AnreiseDatum < @AbreiseDatum)
AND b.Storno = FALSE
AND b.BuchungId = zb.BuchungId
);
-- Ein Zimmer kann selektiert werden. Die ZimmerId wird dabei im Programm gemerkt
SET @ZimmerID = 4920;
-- Anschliessend wird ein Zimmer ausgewählt
-- erneute Pruefung mit ZimmerId, ob noch frei
SET @Zimmer = (SELECT DISTINCT z.ZimmerId
FROM Zimmer z
LEFT OUTER JOIN ZimmerBelegung zb ON (z.ZimmerId = zb.ZimmerId)
WHERE z.ZimmerId = @ZimmerId
AND NOT EXISTS (
SELECT b.BuchungId FROM Buchung b
WHERE (b.AbreiseDatum > @AnreiseDatum
AND b.AnreiseDatum < @AbreiseDatum)
AND b.Storno = FALSE
AND b.BuchungId = zb.BuchungId
)
);
-- SELECT @Zimmer; wird im Programm abgefangen, wenn leer, dann zurück und Hinweis, dass Zimmer bereits gebucht wurde
-- Buchungs des Zimmers
-- setze neue BuchungId -> Auto-Increment wäre auch eine Möglichkeit
SET @BuchungId = (SELECT max(b.BuchungId) +1
FROM Buchung b);
-- setze ZimmerBelegungId -> Auto-Increment ...
SET @ZimmerBelegungId = (SELECT max(zb.ZimmerBelegungId) +1
FROM ZimmerBelegung zb);
INSERT INTO Buchung (BuchungId, MitarbeiterId, AnreiseDatum, AbreiseDatum) VALUES(@BuchungId, @MitarbeiterId, @AnreiseDatum, @AbreiseDatum);
INSERT INTO ZimmerBelegung (ZimmerBelegungId, ZimmerId, BuchungId) VALUES(@ZimmerBelegungId, @ZimmerId, @BuchungId);
-- Zimmer sind somit blockiert
-- Falls Buchungsvorgang abgebrochen wird "Cancel", bzw, Buchung gelöscht werden soll vor entgültigem Abschluss der Buchung - es wird kein Storno gemacht
DELETE FROM ZimmerBelegung WHERE ZimmerBelegungId = @ZimmerBelegungId;
DELETE FROM Buchung WHERE BuchungId = @BuchungId;
-- Definitive Belegung
SET @NachNameExample = "Andre";
-- Kunde suchen
SELECT k.KundeId, p.Nachname, p.Vorname, p.Geburtsdatum
FROM Kunde k, Person p
WHERE k.PersonId = p.PersonId
AND p.Nachname LIKE @NachNameExample;
-- Selektiere Kunde und merke KundeId
SET @KundeId = 2364;
-- Falls Kunde noch nicht in unserer DB, Kunde hinzufügen
SET @PersonId = (SELECT max(PersonId) +1 FROM Person);
SET @NewKundeId = (SELECT max(KundeId) +1 FROM Kunde);
SET @EMailId = (SELECT max(EmailId) +1 FROM EMail);
SET @Vorname = "Christoph";
SET @Nachname = "Frei";
SET @GebDatum = "1982-09-21";
SET @Geschlecht = "m";
SET @EMail = "chr.frei@gmx.ch";
-- Eventuell auch weitere Adress-Eingaben
-- Insert Person und anschliessend Kunde
INSERT INTO Person (PersonId, Vorname, Nachname, Geburtsdatum, Geschlecht) VALUES (@PersonId, @Vorname, @Nachname, @Geburtsdatum, @Geschlecht);
INSERT INTO EMail (EMailId, EMailAdresse, PersonId) VALUES (@EmailId, @EMail, @PersonId);
INSERT INTO Kunde (KundeId, PersonId) VALUES(@NewKundeId, @PersonId);
SET @KundeId = @NewKundeId;
-- Füge KundeId der Buchung hinzu
UPDATE Buchung SET KundeId = @KundeId WHERE BuchungId = @BuchungId;
-- Commit - Buchung abgeschlossen
-- Zusammenfassung Buchung darstellen
SELECT b.AnreiseDatum
, b.AbreiseDatum
, z.ZimmerId, ZimmerNummer AS 'Nummer'
, Stockwerk, t.Name AS 'Trakt'
, CASE Alpenblick WHEN TRUE THEN 'ja' ELSE 'nein' END AS 'Alpenblick'
, CASE Whirlpool WHEN TRUE THEN 'ja' ELSE 'nein' END AS 'Whirlpool'
, CASE Bad WHEN TRUE THEN 'Bad' ELSE 'Dusche' END AS 'Ausstattung'
, zt.Bezeichnung AS 'Typ', bt.Bezeichnung AS 'Bett'
, bt.AnzahlPersonen AS 'Personen'
FROM Buchung b
JOIN ZimmerBelegung zb ON (b.BuchungId = zb.BuchungId)
JOIN Zimmer z ON (zb.ZimmerId = z.ZimmerId)
JOIN ZimmerTyp zt ON (z.ZimmerTypId = zt.ZimmerTypId)
JOIN BettenTyp bt ON (zt.BettenTypId = bt.BettenTypId)
WHERE b.BuchungId = @BuchungId;
-- Personen werden erst bei Checkin ZimmerBelegungPerson hinzugefügt
-- ggf. Begleitperson als Person erfassen (wie oben)
| 41.613445 | 153 | 0.713247 |
cdfabb5795a31b599f5026540eff4fc14f0da1d8 | 139 | sql | SQL | migrations/001-initial-schema.sql | ByWaleed/Fathom3-Jokes | 0e7b25c39148c56dde85d6e1d42374f8c365803b | [
"MIT"
] | null | null | null | migrations/001-initial-schema.sql | ByWaleed/Fathom3-Jokes | 0e7b25c39148c56dde85d6e1d42374f8c365803b | [
"MIT"
] | null | null | null | migrations/001-initial-schema.sql | ByWaleed/Fathom3-Jokes | 0e7b25c39148c56dde85d6e1d42374f8c365803b | [
"MIT"
] | null | null | null | -- Up
CREATE TABLE Jokes (
id INTEGER PRIMARY KEY,
category STRING,
setup STRING,
punchline STRING
);
-- Down
DROP TABLE Jokes;
| 10.692308 | 25 | 0.683453 |
8062d1ed106165b52c5df0341d5f664b7e93987c | 763 | java | Java | validation/src/main/java/org/qsardb/validation/BasicContainerValidator.java | qsardb/qsardb-common | 37adb220772198a1f29f7009ecf56c639a2ec0bc | [
"BSD-3-Clause"
] | null | null | null | validation/src/main/java/org/qsardb/validation/BasicContainerValidator.java | qsardb/qsardb-common | 37adb220772198a1f29f7009ecf56c639a2ec0bc | [
"BSD-3-Clause"
] | 3 | 2021-07-01T09:47:27.000Z | 2021-07-01T09:47:28.000Z | validation/src/main/java/org/qsardb/validation/BasicContainerValidator.java | qsardb/qsardb-common | 37adb220772198a1f29f7009ecf56c639a2ec0bc | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2012 University of Tartu
*/
package org.qsardb.validation;
import org.qsardb.model.*;
public class BasicContainerValidator extends ContainerValidator {
public BasicContainerValidator(){
super(Scope.LOCAL);
}
@Override
public void validate(){
Scope scope = getScope();
if((Scope.LOCAL).equals(scope)){
validateId();
validateName();
}
}
private void validateId(){
Container<?, ?> container = (Container<?, ?>)getEntity();
String id = container.getId();
if(!IdUtil.validate(id)){
error("Invalid Id \'" + id + "\'");
}
}
private void validateName(){
Container<?, ?> container = (Container<?, ?>)getEntity();
String name = container.getName();
if(isMissing(name)){
error("Missing Name");
}
}
} | 18.609756 | 65 | 0.652687 |
1216a9dc15939ef062a8164f72637b45e058bc25 | 974 | asm | Assembly | Third_Year/Compilers/testing/tests-xpl-daily-201701121739/E-09-63-N-ok.asm | danielcorreia96/LEIC_Projects | 82d4822306c391b261204b2ca72b0fbae21e20b6 | [
"CNRI-Python"
] | null | null | null | Third_Year/Compilers/testing/tests-xpl-daily-201701121739/E-09-63-N-ok.asm | danielcorreia96/LEIC_Projects | 82d4822306c391b261204b2ca72b0fbae21e20b6 | [
"CNRI-Python"
] | null | null | null | Third_Year/Compilers/testing/tests-xpl-daily-201701121739/E-09-63-N-ok.asm | danielcorreia96/LEIC_Projects | 82d4822306c391b261204b2ca72b0fbae21e20b6 | [
"CNRI-Python"
] | null | null | null | segment .text
align 4
global _main:function
_main:
align 4
xpl:
push ebp
mov ebp, esp
sub esp, 8
push dword 0
lea eax, [ebp+-4]
push eax
pop ecx
pop eax
mov [ecx], eax
push dword 0
push dword [esp]
lea eax, [ebp+-8]
push eax
pop ecx
pop eax
mov [ecx], eax
align 4
_L1:
lea eax, [ebp+-8]
push eax
pop eax
push dword [eax]
push dword 29
pop eax
xor ecx, ecx
cmp [esp], eax
setle cl
mov [esp], ecx
pop eax
cmp eax, byte 0
je near _L3
lea eax, [ebp+-8]
push eax
pop eax
push dword [eax]
call printi
add esp, 4
call println
align 4
_L2:
lea eax, [ebp+-8]
push eax
pop eax
push dword [eax]
push dword 1
pop eax
add dword [esp], eax
push dword [esp]
lea eax, [ebp+-8]
push eax
pop ecx
pop eax
mov [ecx], eax
jmp dword _L1
align 4
_L3:
lea eax, [ebp+-4]
push eax
pop eax
push dword [eax]
pop eax
leave
ret
extern argc
extern argv
extern envp
extern readi
extern readd
extern printi
extern prints
extern printd
extern println
| 12.329114 | 21 | 0.676591 |
b701582d09c6dac5955432382805de55a0ad8db3 | 593 | kt | Kotlin | app/src/main/java/com/nyt/nytimes/data/model/MediaItem.kt | sreejithileaf/NYTimesApp | 86f0fb8edb4d703a06d8cf66a23c0571cd142a65 | [
"Unlicense"
] | null | null | null | app/src/main/java/com/nyt/nytimes/data/model/MediaItem.kt | sreejithileaf/NYTimesApp | 86f0fb8edb4d703a06d8cf66a23c0571cd142a65 | [
"Unlicense"
] | null | null | null | app/src/main/java/com/nyt/nytimes/data/model/MediaItem.kt | sreejithileaf/NYTimesApp | 86f0fb8edb4d703a06d8cf66a23c0571cd142a65 | [
"Unlicense"
] | null | null | null | package com.nyt.nytimes.data.model
import com.google.gson.annotations.SerializedName
data class MediaItem(
@field:SerializedName("copyright")
val copyright: String? = null,
@field:SerializedName("media-metadata")
val mediaMetadata: List<MediaMetadataItem?>? = null,
@field:SerializedName("subtype")
val subtype: String? = null,
@field:SerializedName("caption")
val caption: String? = null,
@field:SerializedName("type")
val type: String? = null,
@field:SerializedName("approved_for_syndication")
val approvedForSyndication: Int? = null
) | 24.708333 | 56 | 0.709949 |
fa8200f02a99953615a2d231f7c84a1cebab9365 | 319 | lua | Lua | data/scripts/movements/decay_to.lua | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | data/scripts/movements/decay_to.lua | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | data/scripts/movements/decay_to.lua | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | local setting = {
[293] = 294,
[475] = 476,
[1066] = 1067
}
local decayTo = MoveEvent()
decayTo:type("stepin")
function decayTo.onStepIn(creature, item, position, fromPosition)
item:transform(setting[item.itemid])
return true
end
for index, value in pairs(setting) do
decayTo:id(index)
end
decayTo:register()
| 15.95 | 65 | 0.717868 |
7bb66b87e65ede422585e64e1c8ebe3c83c621ed | 4,753 | dart | Dart | packages/expression_language/lib/src/parser/function_expression_factories/default_function_expression_factories.dart | raphire08/flutter_dynamic_forms | dd5296619aebb934f0078ba59cffbe77fbf43f5d | [
"MIT"
] | null | null | null | packages/expression_language/lib/src/parser/function_expression_factories/default_function_expression_factories.dart | raphire08/flutter_dynamic_forms | dd5296619aebb934f0078ba59cffbe77fbf43f5d | [
"MIT"
] | null | null | null | packages/expression_language/lib/src/parser/function_expression_factories/default_function_expression_factories.dart | raphire08/flutter_dynamic_forms | dd5296619aebb934f0078ba59cffbe77fbf43f5d | [
"MIT"
] | null | null | null | import 'package:expression_language/expression_language.dart';
import 'package:expression_language/src/parser/function_expression_factory.dart';
import 'round_function_expression_factory.dart';
List<FunctionExpressionFactory> getDefaultFunctionExpressionFactories() {
return [
RoundFunctionExpressionFactory(),
ExplicitFunctionExpressionFactory(
name: 'length',
parametersLength: 1,
createFunctionExpression: (parameters) =>
LengthFunctionExpression(parameters[0] as Expression<String>),
),
ExplicitFunctionExpressionFactory(
name: 'tostring',
parametersLength: 1,
createFunctionExpression: (parameters) =>
ToStringFunctionExpression(parameters[0]),
),
ExplicitFunctionExpressionFactory(
name: 'isnull',
parametersLength: 1,
createFunctionExpression: (parameters) =>
IsNullFunctionExpression(parameters[0]),
),
ExplicitFunctionExpressionFactory(
name: 'isempty',
parametersLength: 1,
createFunctionExpression: (parameters) =>
IsEmptyFunctionExpression(parameters[0] as Expression<String>),
),
ExplicitFunctionExpressionFactory(
name: 'isnullorempty',
parametersLength: 1,
createFunctionExpression: (parameters) =>
IsNullOrEmptyFunctionExpression(parameters[0] as Expression<String?>),
),
ExplicitFunctionExpressionFactory(
name: 'count',
parametersLength: 1,
createFunctionExpression: (parameters) => ListCountFunctionExpression(
parameters[0] as Expression<List<dynamic>>),
),
ExplicitFunctionExpressionFactory(
name: 'datetime',
parametersLength: 1,
createFunctionExpression: (parameters) =>
DateTimeFunctionExpression(parameters[0] as Expression<String>),
),
ExplicitFunctionExpressionFactory(
name: 'duration',
parametersLength: 1,
createFunctionExpression: (parameters) =>
DurationFunctionExpression(parameters[0] as Expression<String>),
),
ExplicitFunctionExpressionFactory(
name: 'now',
parametersLength: 0,
createFunctionExpression: (parameters) => NowFunctionExpression(),
),
ExplicitFunctionExpressionFactory(
name: 'nowinutc',
parametersLength: 0,
createFunctionExpression: (parameters) => NowInUtcFunctionExpression(),
),
ExplicitFunctionExpressionFactory(
name: 'diffdatetime',
parametersLength: 2,
createFunctionExpression: (parameters) => DiffDateTimeFunctionExpression(
parameters[0] as Expression<DateTime>,
parameters[1] as Expression<DateTime>),
),
ExplicitFunctionExpressionFactory(
name: 'durationindays',
parametersLength: 1,
createFunctionExpression: (parameters) =>
DurationInDaysFunctionExpression(
parameters[0] as Expression<Duration>),
),
ExplicitFunctionExpressionFactory(
name: 'durationinhours',
parametersLength: 1,
createFunctionExpression: (parameters) =>
DurationInHoursFunctionExpression(
parameters[0] as Expression<Duration>),
),
ExplicitFunctionExpressionFactory(
name: 'durationinminutes',
parametersLength: 1,
createFunctionExpression: (parameters) =>
DurationInMinutesFunctionExpression(
parameters[0] as Expression<Duration>),
),
ExplicitFunctionExpressionFactory(
name: 'durationinseconds',
parametersLength: 1,
createFunctionExpression: (parameters) =>
DurationInSecondsFunctionExpression(
parameters[0] as Expression<Duration>),
),
ExplicitFunctionExpressionFactory(
name: 'matches',
parametersLength: 2,
createFunctionExpression: (parameters) => MatchesFunctionExpression(
parameters[0] as Expression<String>,
parameters[1] as Expression<String>),
),
ExplicitFunctionExpressionFactory(
name: 'contains',
parametersLength: 2,
createFunctionExpression: (parameters) => ContainsFunctionExpression(
parameters[0] as Expression<String>,
parameters[1] as Expression<String>),
),
ExplicitFunctionExpressionFactory(
name: 'startswith',
parametersLength: 2,
createFunctionExpression: (parameters) => StartsWithFunctionExpression(
parameters[0] as Expression<String>,
parameters[1] as Expression<String>),
),
ExplicitFunctionExpressionFactory(
name: 'endswith',
parametersLength: 2,
createFunctionExpression: (parameters) => EndsWithFunctionExpression(
parameters[0] as Expression<String>,
parameters[1] as Expression<String>),
),
];
}
| 36.007576 | 81 | 0.687776 |
83e33042d32c3ce49026f32f48592a5c9bfc0193 | 3,783 | java | Java | proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java | suztomo/java-workflows | d0465362747d4c4678e4a2720504bab0e81a9e20 | [
"Apache-2.0"
] | 1 | 2020-09-19T10:24:29.000Z | 2020-09-19T10:24:29.000Z | proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java | suztomo/java-workflows | d0465362747d4c4678e4a2720504bab0e81a9e20 | [
"Apache-2.0"
] | 296 | 2020-09-16T00:09:16.000Z | 2022-03-29T23:43:11.000Z | proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java | suztomo/java-workflows | d0465362747d4c4678e4a2720504bab0e81a9e20 | [
"Apache-2.0"
] | 8 | 2020-09-16T00:08:34.000Z | 2021-08-24T17:58:14.000Z | /*
* Copyright 2020 Google LLC
*
* 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
*
* https://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.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/workflows/v1beta/workflows.proto
package com.google.cloud.workflows.v1beta;
public interface CreateWorkflowRequestOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.CreateWorkflowRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
*
* <pre>
* Required. Project and location in which the workflow should be created.
* Format: projects/{project}/locations/{location}
* </pre>
*
* <code>
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
* </code>
*
* @return The parent.
*/
java.lang.String getParent();
/**
*
*
* <pre>
* Required. Project and location in which the workflow should be created.
* Format: projects/{project}/locations/{location}
* </pre>
*
* <code>
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
* </code>
*
* @return The bytes for parent.
*/
com.google.protobuf.ByteString getParentBytes();
/**
*
*
* <pre>
* Required. Workflow to be created.
* </pre>
*
* <code>
* .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return Whether the workflow field is set.
*/
boolean hasWorkflow();
/**
*
*
* <pre>
* Required. Workflow to be created.
* </pre>
*
* <code>
* .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return The workflow.
*/
com.google.cloud.workflows.v1beta.Workflow getWorkflow();
/**
*
*
* <pre>
* Required. Workflow to be created.
* </pre>
*
* <code>
* .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder();
/**
*
*
* <pre>
* Required. The ID of the workflow to be created. It has to fulfill the
* following requirements:
* * Must contain only letters, numbers, underscores and hyphens.
* * Must start with a letter.
* * Must be between 1-64 characters.
* * Must end with a number or a letter.
* * Must be unique within the customer project and location.
* </pre>
*
* <code>string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The workflowId.
*/
java.lang.String getWorkflowId();
/**
*
*
* <pre>
* Required. The ID of the workflow to be created. It has to fulfill the
* following requirements:
* * Must contain only letters, numbers, underscores and hyphens.
* * Must start with a letter.
* * Must be between 1-64 characters.
* * Must end with a number or a letter.
* * Must be unique within the customer project and location.
* </pre>
*
* <code>string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The bytes for workflowId.
*/
com.google.protobuf.ByteString getWorkflowIdBytes();
}
| 28.022222 | 107 | 0.651599 |
34ed955c8d0a4c5d2fa40fbe3a04ed0723f2062c | 10,403 | swift | Swift | samples/SwiftExample/UZBroadcastExample/ViewController.swift | uizaio/uiza-ios-broadcast-sdk | 65e05c9c2177f7376b5a6ae099b79389f505d4bd | [
"BSD-2-Clause"
] | null | null | null | samples/SwiftExample/UZBroadcastExample/ViewController.swift | uizaio/uiza-ios-broadcast-sdk | 65e05c9c2177f7376b5a6ae099b79389f505d4bd | [
"BSD-2-Clause"
] | null | null | null | samples/SwiftExample/UZBroadcastExample/ViewController.swift | uizaio/uiza-ios-broadcast-sdk | 65e05c9c2177f7376b5a6ae099b79389f505d4bd | [
"BSD-2-Clause"
] | 1 | 2021-06-28T03:06:20.000Z | 2021-06-28T03:06:20.000Z | //
// ViewController.swift
// UZBroadcastExample
//
// Created by Nam Kennic on 3/17/20.
// Copyright © 2020 Uiza. All rights reserved.
//
import UIKit
import UZBroadcast
struct TableItem {
var title: String
var value: String
var options: [String]
}
struct TableSection {
var title: String
var items: [TableItem]
}
enum TableSectionType: String {
case videoResolution = "Resolution"
case videoBitrate = "Bitrate"
case videoFPS = "FPS"
case audioBitrate = "Bitrate "
case audioSampleRate = "SampleRate"
}
class ViewController: UIViewController {
let tableView = UITableView(frame: .zero, style: .grouped)
let startButton = UIButton(type: .system)
var sections: [TableSection] = [] {
didSet {
tableView.reloadData()
}
}
var videoResolution: UZVideoResolution = ._720
var videoBitrate: UZVideoBitrate = ._3000
var videoFPS: UZVideoFPS = ._30
var audioBitrate: UZAudioBitRate = ._128Kbps
var audioSampleRate: UZAudioSampleRate = ._44100Hz
override func viewDidLoad() {
super.viewDidLoad()
startButton.setTitle("Start Broadcast", for: .normal)
startButton.setTitle("Stop Broadcast", for: .selected)
startButton.addTarget(self, action: #selector(onStart), for: .touchUpInside)
tableView.delegate = self
tableView.dataSource = self
// squareView.backgroundColor = .purple
view.addSubview(tableView)
view.addSubview(startButton)
// view.addSubview(squareView)
updateValues()
}
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
let viewSize = view.bounds.size
let buttonSize = CGSize(width: 120, height: 50)
startButton.frame = CGRect(x: 10, y: viewSize.height - buttonSize.height - 20, width: viewSize.width - 20, height: buttonSize.height)
tableView.frame = view.bounds.inset(by: UIEdgeInsets(top: 0, left: 0, bottom: buttonSize.height + 20, right: 0))
// let squareSize = CGSize(width: 100, height: 100)
// squareView.frame = CGRect(x: (viewSize.width - squareSize.width)/2, y: viewSize.height - squareSize.height - buttonSize.height - 50, width: squareSize.width, height: squareSize.height)
}
/*
func startRotating() {
squareView.layer.removeAllAnimations()
let rotate = CABasicAnimation(keyPath: "transform.rotation.z")
rotate.duration = 3.0
rotate.toValue = NSNumber(value: Double.pi * 2)
rotate.repeatCount = .infinity
rotate.isRemovedOnCompletion = false
squareView.layer.add(rotate, forKey: "")
}
func stopRotating() {
squareView.layer.removeAllAnimations()
}
*/
@objc func onStart() {
/*
if #available(iOS 13.0, *) {
if screenBroadcaster.isBroadcasting || startButton.isSelected {
stopRotating()
screenBroadcaster.stopBroadcast()
startButton.isSelected = false
return
}
}
*/
let alertController = UIAlertController(title: "Start broadcast", message: "Please enter your broadcast URL", preferredStyle: .alert)
alertController.addTextField { (textField) in
textField.text = UserDefaults.standard.string(forKey: "lastUrl")
textField.placeholder = "URL"
textField.keyboardType = .URL
textField.returnKeyType = .done
}
alertController.addTextField { (textField) in
textField.text = UserDefaults.standard.string(forKey: "laststreamKey")
textField.placeholder = "streamKey"
textField.keyboardType = .default
textField.returnKeyType = .next
}
alertController.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: { (action) in
alertController.dismiss(animated: true, completion: nil)
}))
alertController.addAction(UIAlertAction(title: "Start Broadcast", style: .default, handler: { [weak self] (action) in
guard let textFields = alertController.textFields else { return }
guard let url = URL(string: textFields.first?.text ?? ""), let streamKey = textFields.last?.text else { return }
self?.startBroadcasting(url: url, streamKey: streamKey)
alertController.dismiss(animated: true, completion: nil)
}))
/*
if #available(iOS 13.0, *) {
alertController.addAction(UIAlertAction(title: "Screen Broadcast", style: .default, handler: { [weak self] (action) in
guard let textFields = alertController.textFields else { return }
guard let url = URL(string: textFields.first?.text ?? ""), let streamKey = textFields.last?.text else { return }
self?.startScreenBroadcasting(url: url, streamKey: streamKey)
alertController.dismiss(animated: true, completion: nil)
}))
}
*/
present(alertController, animated: true, completion: nil)
}
func updateValues() {
sections = [TableSection(title: "Video", items: [TableItem(title: TableSectionType.videoResolution.rawValue, value: videoResolution.toString(), options: UZVideoResolution.allCases.compactMap({ return $0.toString() })),
TableItem(title: TableSectionType.videoBitrate.rawValue, value: videoBitrate.toString(), options: UZVideoBitrate.allCases.compactMap({ return $0.toString() })),
TableItem(title: TableSectionType.videoFPS.rawValue, value: videoFPS.toString(), options: UZVideoFPS.allCases.compactMap({ return $0.toString() }))]),
TableSection(title: "Audio", items: [TableItem(title: TableSectionType.audioBitrate.rawValue, value: audioBitrate.toString(), options: UZAudioBitRate.allCases.compactMap({ return $0.toString() })),
TableItem(title: TableSectionType.audioSampleRate.rawValue, value: audioSampleRate.toString(), options: UZAudioSampleRate.allCases.compactMap({ return $0.toString() }))])]
}
func startBroadcasting(url: URL, streamKey: String) {
UserDefaults.standard.set(url.absoluteString, forKey: "lastUrl")
UserDefaults.standard.set(streamKey, forKey: "laststreamKey")
let config = UZBroadcastConfig(cameraPosition: .front, videoResolution: videoResolution, videoBitrate: videoBitrate, videoFPS: videoFPS, audioBitrate: audioBitrate, audioSampleRate: audioSampleRate, adaptiveBitrate: true, autoRotate: false)
let broadcastViewController = MyBroadcastViewController()
broadcastViewController.prepareForBroadcast(config: config).delegate = self
// broadcastViewController.session.beautyFace = true
broadcastViewController.modalPresentationStyle = .fullScreen
present(broadcastViewController, animated: false) {
broadcastViewController.startBroadcast(broadcastURL: url, streamKey: streamKey)
}
}
@available(iOS 13.0, *)
func startScreenBroadcasting(url: URL, streamKey: String) {
// startRotating()
UserDefaults.standard.set(url.absoluteString, forKey: "lastUrl")
UserDefaults.standard.set(streamKey, forKey: "laststreamKey")
startButton.isSelected = true
let config = UZBroadcastConfig(cameraPosition: .back, videoResolution: videoResolution, videoBitrate: videoBitrate, videoFPS: videoFPS, audioBitrate: audioBitrate, audioSampleRate: audioSampleRate, adaptiveBitrate: true, autoRotate: false)
let broadcaster = UZScreenBroadcast()
broadcaster.prepareForBroadcast(config: config).delegate = self
broadcaster.isCameraEnabled = false
broadcaster.isMicrophoneEnabled = false
broadcaster.startBroadcast(broadcastURL: url, streamKey: streamKey)
}
func switchValue(index: Int, for option: TableItem) {
print("Switch \(option) index:\(index)")
if option.title == TableSectionType.videoResolution.rawValue {
videoResolution = UZVideoResolution.allCases[index]
}
else if option.title == TableSectionType.videoBitrate.rawValue {
videoBitrate = UZVideoBitrate.allCases[index]
}
else if option.title == TableSectionType.videoFPS.rawValue {
videoFPS = UZVideoFPS.allCases[index]
}
else if option.title == TableSectionType.audioBitrate.rawValue {
audioBitrate = UZAudioBitRate.allCases[index]
}
else if option.title == TableSectionType.audioSampleRate.rawValue {
audioSampleRate = UZAudioSampleRate.allCases[index]
}
updateValues()
}
func showOptions(item: TableItem) {
let alertController = UIAlertController(title: item.title, message: nil, preferredStyle: .actionSheet)
item.options.forEach { (title) in
alertController.addAction(UIAlertAction(title: title, style: .default, handler: { [weak self] (action) in
if let index = item.options.firstIndex(of: action.title ?? "") {
self?.switchValue(index: index, for: item)
}
}))
}
alertController.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: { (action) in
alertController.dismiss(animated: true, completion: nil)
}))
present(alertController, animated: true, completion: nil)
}
}
extension ViewController: UITableViewDelegate, UITableViewDataSource {
func numberOfSections(in tableView: UITableView) -> Int {
return sections.count
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return sections[section].items.count
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
return tableView.dequeueReusableCell(withIdentifier: "cell") ?? UITableViewCell(style: .subtitle, reuseIdentifier: "cell")
}
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
let item = sections[indexPath.section].items[indexPath.row]
cell.textLabel?.font = .systemFont(ofSize: 14, weight: .bold)
cell.detailTextLabel?.font = .systemFont(ofSize: 14, weight: .regular)
cell.textLabel?.text = item.title
cell.detailTextLabel?.text = item.value
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 55
}
func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
return sections[section].title
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
tableView.deselectRow(at: indexPath, animated: true)
showOptions(item: sections[indexPath.section].items[indexPath.row])
}
}
extension ViewController: UZBroadcastSessionDelegate {
func broadcastSession(_ session: UZBroadcastSession?, debugInfo: UZBroadcastDebug?) {
print("UZBroadcastState: \(String(describing: debugInfo))")
}
func broadcastSession(_ session: UZBroadcastSession?, errorCode: UZSocketErrorCode) {
print("UZBroadcastState errorCode: \(String(describing: errorCode))")
}
func broadcastSession(_ session: UZBroadcastSession?, broadcastStateDidChange state: UZBroadcastState) {
print("UZBroadcastState: \(String(describing: state.rawValue))")
}
}
| 38.246324 | 242 | 0.746035 |
db0972820f5749c20ff6f1e11e1bd474a48d8f0c | 834 | swift | Swift | ViewController.swift | KING-CV/tipCalculate | 598f02e33d119f60d80783bc38c2fceffb116af9 | [
"Apache-2.0"
] | null | null | null | ViewController.swift | KING-CV/tipCalculate | 598f02e33d119f60d80783bc38c2fceffb116af9 | [
"Apache-2.0"
] | 1 | 2022-01-21T08:14:27.000Z | 2022-01-21T08:14:27.000Z | ViewController.swift | KING-CV/tipCalculate | 598f02e33d119f60d80783bc38c2fceffb116af9 | [
"Apache-2.0"
] | null | null | null | //
// ViewController.swift
// TIP CALCULATOR
//
// Created by Chirag Singh on 1/1/22.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var Totallbl: UILabel!
@IBOutlet weak var TIPlbl: UILabel!
@IBOutlet weak var Billpercenttxt: UITextField!
@IBOutlet weak var billamountxt: UITextField!
@IBOutlet weak var calcbtn: UIButton!
@IBAction func GetTip(_ sender: Any) {
let totalamount:Double = Double(billamountxt.text!)!
let billamount:Double = (Double(Billpercenttxt.text!)! / 100) * totalamount
TIPlbl.text = "\(billamount)"
Totallbl.text = "\(billamount + totalamount)"
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
}
| 23.166667 | 83 | 0.633094 |
3df6557e50e48b9ed7c69989039667195e6654e6 | 2,351 | sql | SQL | fullDB/world_db_version.sql | sanctum32/AscemuDB | e9a8fe28f52ce41ce968b84cc5da1bc3c647d8e8 | [
"MIT"
] | null | null | null | fullDB/world_db_version.sql | sanctum32/AscemuDB | e9a8fe28f52ce41ce968b84cc5da1bc3c647d8e8 | [
"MIT"
] | null | null | null | fullDB/world_db_version.sql | sanctum32/AscemuDB | e9a8fe28f52ce41ce968b84cc5da1bc3c647d8e8 | [
"MIT"
] | null | null | null | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
CREATE TABLE IF NOT EXISTS `world_db_version` (
`id` smallint(6) NOT NULL AUTO_INCREMENT,
`LastUpdate` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='WorldDB version';
DELETE FROM `world_db_version`;
/*!40000 ALTER TABLE `world_db_version` DISABLE KEYS */;
INSERT INTO `world_db_version` (`id`, `LastUpdate`) VALUES
(1, '20180331-00_build_creature_properties'),
(2, '20180331-01_world_db_version'),
(3, '20180331-02_build_player_xp_for_level'),
(4, '20180401-00_build_creature_properties'),
(5, '20180401-01_build_gameobject_properties'),
(6, '20180401-02_build_item_properties'),
(7, '20180401-03_build_quest_properties'),
(8, '20180401-04_build_map_info'),
(9, '20180402-00_build_playercreateinfo'),
(10, '20180403-00_build_totemdisplayids'),
(11, '20180403-01_staticspawns'),
(12, '20180403-02_spell_custom_override'),
(13, '20180404-00_build_creature_spawns'),
(14, '20180405-00_build_gameobject_spawns'),
(15, '20180416-00_playercreateinfo'),
(16, '20180417-00_playercreateinfo_misc'),
(17, '20180418-00_playercreateinfo_introid'),
(18, '20180418-01_playercreateinfo_faction'),
(19, '20180418-02_playercreateinfo_displayid'),
(20, '20180419-00_worgen_goblin_language'),
(21, '20180420-00_recall'),
(22, '20180420-01_event_properties'),
(23, '20180422-00_quest_properties'),
(24, '20180423-00_kezan_initiale_data'),
(25, '20180423-01_missing_properties'),
(26, '20180423-02_build_transports'),
(27, '20180424-00_quest_text_fix'),
(28, '20180427-00_world_db_version'),
(29, '20180501-00_build_creature_properties'),
(30, '20180501-01_creature_spawns'),
(31, '20180501-02_gameobject_spawns'),
(32, '20180619-01_misc_tbc'),
(33, '20180916-02_update_utf8');
/*!40000 ALTER TABLE `world_db_version` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
| 43.537037 | 105 | 0.75755 |
c3703009253fd8744797f77b722f05c20eb0a363 | 313 | sql | SQL | docs/sql/auth/auth_system_menu.sql | lalifeier/vvgo | 24afa093020cf8e1a2326f7f817b55ac6f3303bf | [
"MIT"
] | null | null | null | docs/sql/auth/auth_system_menu.sql | lalifeier/vvgo | 24afa093020cf8e1a2326f7f817b55ac6f3303bf | [
"MIT"
] | 1 | 2022-03-12T09:54:38.000Z | 2022-03-12T09:54:38.000Z | docs/sql/auth/auth_system_menu.sql | lalifeier/vvgo-mall | 089620f811f656c732b3d13a9bacbf97bb26217d | [
"MIT"
] | null | null | null | CREATE TABLE `auth_system_menu` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
`system_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '系统ID',
`menu_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '菜单ID',
PRIMARY KEY (`id`),
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统菜单关联表';
| 44.714286 | 67 | 0.72524 |
86254771c127bb688d3d0688c7f1974d4eaa1914 | 1,531 | go | Go | examples/simple/simple.go | remogatto/ftpget | 5c3c8286a3b00a13d6e88f181504db722e419519 | [
"Unlicense"
] | 1 | 2015-12-08T14:58:19.000Z | 2015-12-08T14:58:19.000Z | examples/simple/simple.go | remogatto/ftpget | 5c3c8286a3b00a13d6e88f181504db722e419519 | [
"Unlicense"
] | null | null | null | examples/simple/simple.go | remogatto/ftpget | 5c3c8286a3b00a13d6e88f181504db722e419519 | [
"Unlicense"
] | null | null | null | package main
import (
"github.com/remogatto/ftpget"
"log"
"os"
"path"
)
func main() {
log.SetFlags(0)
ftp.Log = true
// Synchronous file transfer
{
const url = "ftp.worldofspectrum.org/pub/sinclair/games/e/EarthAttack.tap.zip"
log.Println("Retrieving", url)
f, err := os.Create(path.Base(url))
if err != nil {
log.Fatal(err)
}
defer f.Close()
err = ftp.Get(url, f)
if err != nil {
log.Fatal(err)
}
log.Println("Transfer completed")
}
// Asynchronous file transfer
{
const url = "ftp.worldofspectrum.org/pub/sinclair/games/e/Eagle.tap.zip"
log.Println("Retrieving", url)
f, err := os.Create(path.Base(url))
if err != nil {
log.Fatal(err)
}
defer f.Close()
// GetAsync spawns the fetching routine but doesn't wait for
// the transfer to finish. It returns a Transfer object in
// order to control the transfer status through channels.
transfer, err := ftp.GetAsync(url, f)
if err != nil {
log.Fatal(err)
}
// Control the transfer status and errors.
// The state diagram of the transfer is:
// STARTED --> COMPLETED
// |
// --> ABORTED
// |
// --> ERROR (in this case you should drain the Error channel)
//
switch <-transfer.Status {
case ftp.STARTED:
switch <-transfer.Status {
case ftp.COMPLETED:
log.Println("Transfer completed")
case ftp.ABORTED:
log.Println("Transfer aborted")
case ftp.ERROR:
log.Fatal(<-transfer.Error)
default:
panic("Unknown status")
}
}
}
}
| 20.413333 | 80 | 0.63096 |
506523398d47d894fff1aa7bc0c88aef4925cce2 | 2,781 | html | HTML | app/templates/profile/account.html | jobkarani/Jk-Blogs | 4f5dabfdd207bdd73451e397a121291f8c33543f | [
"Unlicense"
] | 1 | 2022-02-20T21:21:21.000Z | 2022-02-20T21:21:21.000Z | app/templates/profile/account.html | jobkarani/Jk-Blogs | 4f5dabfdd207bdd73451e397a121291f8c33543f | [
"Unlicense"
] | null | null | null | app/templates/profile/account.html | jobkarani/Jk-Blogs | 4f5dabfdd207bdd73451e397a121291f8c33543f | [
"Unlicense"
] | null | null | null | {% extends 'base.html'%}
{% import 'bootstrap/wtf.html' as wtf%}
{% block styles%}
{{ super() }}
<link rel="stylesheet" href="{{url_for('static',filename='css/index.css')}}">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous" />
{% endblock %}
{% block content %}
<div class="jumbotron ayub" style="background: chartreuse;text-align:center; border-style: solid;border: 2px solid white;padding: 10px;border-radius: 25px; filter: drop-shadow(2px 4px 8px #585858);">
<div class-align='center'>
<div class="card user">
<h1>Welcome to {{current_user.username | capitalize}}'s page</h1>
<img class-align='center' src="{{url_for('static',filename='photos/'+current_user.profile_pic)}}" alt="" width=30% height="30%">
</div>
</div>
</div>
<body>
<div class="container center" >
<div class="row ">
<div class="col-md-6">
<form method="POST" action="" enctype="multipart/form-data" style="background: greenyellow; text-align: center;border-style: solid;border: 2px solid black;padding: 10px;border-radius: 25px; filter: drop-shadow(2px 4px 8px #585858);" >
{{form.hidden_tag()}}
<div class="form_group">
{{form.username.label(class="form-label")}}
{{form.username(class="form-control")}}
</div>
<div class="form_group">
{{form.email.label(class="form-label")}}
{{form.email(class="form-control")}}
</div>
<div class="form_group">
{{form.picture.label(class="form-label")}}
{{form.picture(class="form-control")}}
</div>
<div class="form_group">
{{form.submit(class="btn btn-primary mb-3")}}
</div>
</form>
</div>
</div>
</div>
<div class="row mt-5" style="background: #C4FB6D; border-style: solid;border: 2px solid white;padding: 10px;border-radius: 25px; filter: drop-shadow(2px 4px 8px #585858);">
<div class="col-md-12">
<footer>
<p style="text-align: center"><b>Copyright ©
<script>document.write(new Date().getFullYear())</script> Jk-Blogs All Rights Reserved </b>
</p>
</footer>
</div>
</div>
</div>
</body>
{% endblock%} | 43.453125 | 251 | 0.521755 |
9a6ebc94ba8a8d1dc4dfff8ed200f0b4e152d0e0 | 494 | kt | Kotlin | sdk/src/main/java/com/robotemi/sdk/navigation/model/SpeedLevel.kt | kgetdog/sdk | 72be9e72649ce4f97b05bf62719c06a3cedad2f7 | [
"Apache-2.0"
] | 167 | 2019-06-14T15:28:02.000Z | 2022-03-17T10:06:22.000Z | sdk/src/main/java/com/robotemi/sdk/navigation/model/SpeedLevel.kt | kgetdog/sdk | 72be9e72649ce4f97b05bf62719c06a3cedad2f7 | [
"Apache-2.0"
] | 231 | 2019-06-21T08:10:30.000Z | 2022-03-31T08:27:51.000Z | sdk/src/main/java/com/robotemi/sdk/navigation/model/SpeedLevel.kt | kgetdog/sdk | 72be9e72649ce4f97b05bf62719c06a3cedad2f7 | [
"Apache-2.0"
] | 75 | 2019-08-14T07:20:10.000Z | 2022-03-07T12:34:51.000Z | package com.robotemi.sdk.navigation.model
enum class SpeedLevel(val value: String) {
HIGH("high"),
MEDIUM("medium"),
SLOW("slow");
companion object {
@JvmField
val DEFAULT = HIGH
@JvmStatic
fun valueToEnum(value: String): SpeedLevel {
return when (value) {
SLOW.value -> SLOW
MEDIUM.value -> MEDIUM
HIGH.value -> HIGH
else -> DEFAULT
}
}
}
} | 20.583333 | 52 | 0.5 |
5bb9dc6975a65c1385cbb7016fa366fdfc48dff9 | 1,746 | cs | C# | src/SharpLearning.GradientBoost.Test/GBMDecisionTree/GBMTreeTest.cs | Thecentury/SharpLearning | 8197efed8fa241670c0f8ae7077053fd60baaec8 | [
"MIT"
] | 1 | 2019-05-16T19:04:23.000Z | 2019-05-16T19:04:23.000Z | src/SharpLearning.GradientBoost.Test/GBMDecisionTree/GBMTreeTest.cs | zaharPonimash/SharpLearning | a62e0fdcb0935fe9b34c8992596eb8e6606cb28c | [
"MIT"
] | null | null | null | src/SharpLearning.GradientBoost.Test/GBMDecisionTree/GBMTreeTest.cs | zaharPonimash/SharpLearning | a62e0fdcb0935fe9b34c8992596eb8e6606cb28c | [
"MIT"
] | null | null | null | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;
using SharpLearning.GradientBoost.Test.Properties;
using SharpLearning.InputOutput.Csv;
using System.Linq;
using SharpLearning.Containers.Extensions;
using SharpLearning.GradientBoost.GBMDecisionTree;
namespace SharpLearning.GradientBoost.Test.GBMDecisionTree
{
[TestClass]
public class GBMTreeTest
{
[TestMethod]
public void GBMTree_AddRawFeatureImportances()
{
var parser = new CsvParser(() => new StringReader(Resources.DecisionTreeData));
var observations = parser.EnumerateRows("F1", "F2").ToF64Matrix();
var targets = parser.EnumerateRows("T").ToF64Vector();
var inSample = targets.Select(t => true).ToArray();
var orderedElements = new int[observations.ColumnCount][];
var rows = observations.RowCount;
for (int i = 0; i < observations.ColumnCount; i++)
{
var feature = observations.Column(i);
var indices = Enumerable.Range(0, rows).ToArray();
feature.SortWith(indices);
orderedElements[i] = indices;
}
var sut = new GBMDecisionTreeLearner(10);
var tree = sut.Learn(observations, targets, targets, targets, orderedElements, inSample);
var actual = new double[observations.ColumnCount];
tree.AddRawVariableImportances(actual);
var expected = new double[] { 0.0, 105017.48701572006 };
Assert.AreEqual(expected.Length, actual.Length);
Assert.AreEqual(expected[0], actual[0], 0.01);
Assert.AreEqual(expected[1], actual[1], 0.01);
}
}
}
| 37.148936 | 101 | 0.637457 |
acb247872c6fc5ec3d2a4aa4bd8b3214132edc4b | 1,198 | sql | SQL | applications/Polling2013/Telligent.BigSocial.Polling/Resources/Sql/update-1.3.sql | Telligent/Sample-Applications | 175055a8430138630f544fdad34778a23a859575 | [
"MIT"
] | 2 | 2016-10-26T19:34:46.000Z | 2021-08-09T11:23:02.000Z | applications/Polling2013/Telligent.BigSocial.Polling/Resources/Sql/update-1.3.sql | Telligent/Sample-Applications | 175055a8430138630f544fdad34778a23a859575 | [
"MIT"
] | 1 | 2015-10-30T15:14:44.000Z | 2015-10-30T19:53:30.000Z | applications/Polling2013/Telligent.BigSocial.Polling/Resources/Sql/update-1.3.sql | Telligent/Sample-Applications | 175055a8430138630f544fdad34778a23a859575 | [
"MIT"
] | 8 | 2015-10-02T00:03:18.000Z | 2020-03-16T03:56:53.000Z | SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS(select * from sys.columns where Name = N'NewPollEmailSent' and Object_ID = Object_ID(N'dbo.polling_Polls'))
BEGIN
ALTER TABLE dbo.[polling_Polls] ADD
NewPollEmailSent bit NOT NULL CONSTRAINT DF_polling_Polls_NewPollEmailSent DEFAULT 0
END
GO
UPDATE dbo.polling_Polls SET NewPollEmailSent = 1
GO
IF NOT EXISTS(select * from sys.columns where Name = N'IsSuspectedAbusive' and Object_ID = Object_ID(N'dbo.polling_Polls'))
BEGIN
ALTER TABLE dbo.[polling_Polls] ADD
IsSuspectedAbusive bit NOT NULL CONSTRAINT DF_polling_Polls_IsSuspectedAbusive DEFAULT 0
END
IF NOT EXISTS(SELECT * FROM sys.columns
WHERE Name = N'ApplicationId' and Object_ID = Object_ID(N'polling_Polls'))
BEGIN
ALTER TABLE [dbo].[polling_Polls]
ADD [ApplicationId] UNIQUEIDENTIFIER NULL
END
GO
UPDATE p SET ApplicationId = g.NodeId FROM dbo.cs_Groups g JOIN dbo.[polling_Polls] p ON g.GroupID = p.GroupId WHERE ApplicationId IS NULL
GO
ALTER TABLE [dbo].[polling_Polls]
ALTER COLUMN [ApplicationId] UNIQUEIDENTIFIER NOT NULL
GO
ALTER TABLE [dbo].[polling_Polls]
ALTER COLUMN [GroupId] INT NULL
GO | 30.717949 | 139 | 0.761269 |
5f92c9cff154a3419ae7fcdc00142deb148a8c68 | 1,887 | h | C | udp_service_routine.h | herongoal/heron-routines | c19d284562e66e95c7931c26efb7829778f24849 | [
"MIT"
] | null | null | null | udp_service_routine.h | herongoal/heron-routines | c19d284562e66e95c7931c26efb7829778f24849 | [
"MIT"
] | null | null | null | udp_service_routine.h | herongoal/heron-routines | c19d284562e66e95c7931c26efb7829778f24849 | [
"MIT"
] | null | null | null | #ifndef _HRTS_UDP_SERVICE_ROUTINE_H_
#define _HRTS_UDP_SERVICE_ROUTINE_H_
#include "routine.h"
#include "udp_define.h"
#include "udp_session_context.h"
#include <linux/types.h>
#include <netinet/in.h>
#include <stdarg.h>
#include <stdint.h>
namespace hrts{
class routine_proxy;
class udp_service_routine:public routine{
public:
static udp_service_routine* create(routine_proxy *proxy, char category, uint64_t user_flag,
const char *ipaddr, uint16_t port);
virtual ~udp_service_routine();
virtual int inspect();
/**
* In parent class routine get_events is declared as pure virtual,
* implement it to return epoll events for epoll registering.
*/
virtual uint32_t get_events();
virtual bool vital(){return false;}
/**
* In parent class routine on_readable is declared as pure virtual,
* implement it to process epollin event.
*/
virtual int on_readable();
/**
* In parent class routine on_writable is declared as pure virtual,
* implement it to process epollout event.
*/
virtual int on_writable();
/**
* In parent class routine on_error is declared as pure virtual,
* implement it to process epollerr event.
*/
virtual void on_error();
/**
* In parent class routine on_read_hup is declared as pure virtual,
* implement it to process epollrdhup event, for service_routine
* this will never happen.
*/
virtual void on_read_hup();
/**
* In parent class routine on_peer_hup is declared as pure virtual,
* implement it to process epollhup event, for service_routine
* this will never happen.
*/
virtual void on_peer_hup();
private:
static const int m_socket_buffer_size;
udp_service_routine(routine_proxy *proxy, char category, uint64_t user_flag, int fd);
};
}
#endif //_HRTS_UDP_SERVICE_ROUTINE_H_
| 24.506494 | 93 | 0.701643 |
aff0d0f6b8348ff5269fabc5ccef43ed52ef4129 | 217,711 | html | HTML | docs/sword-shield-galar.html | timoschinkel/living-pokedex-templates | baaa4e061cc08313c6d98eaac2bff501d58d5d88 | [
"MIT"
] | null | null | null | docs/sword-shield-galar.html | timoschinkel/living-pokedex-templates | baaa4e061cc08313c6d98eaac2bff501d58d5d88 | [
"MIT"
] | 3 | 2020-10-25T19:24:14.000Z | 2020-11-06T07:59:43.000Z | docs/sword-shield-galar.html | timoschinkel/living-pokedex-templates | baaa4e061cc08313c6d98eaac2bff501d58d5d88 | [
"MIT"
] | null | null | null | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Living Pokedex template - Galar dex</title>
<meta name="description" content="Living Pokedex template for Galar dex">
<meta name="author" content="Timo Schinkel">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="assets/main.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.0/css/bulma.min.css">
</head>
<body>
<header>
<h1>Galar dex</h1>
<a href="index.html" rel="back" class="back">Back to overview</a>
</header>
<section class="pokedex sword-shield-galar section">
<section class="box">
<h2>001 - 030</h2>
<div class="contents">
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/grookey/" title="View Grookey on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/810.png" alt="Grookey" loading="lazy"/>
<span class="name">
<span class="pokedex-number">1</span>
Grookey
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/thwackey/" title="View Thwackey on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/811.png" alt="Thwackey" loading="lazy"/>
<span class="name">
<span class="pokedex-number">2</span>
Thwackey
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/rillaboom/" title="View Rillaboom on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/812.png" alt="Rillaboom" loading="lazy"/>
<span class="name">
<span class="pokedex-number">3</span>
Rillaboom
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/scorbunny/" title="View Scorbunny on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/813.png" alt="Scorbunny" loading="lazy"/>
<span class="name">
<span class="pokedex-number">4</span>
Scorbunny
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/raboot/" title="View Raboot on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/814.png" alt="Raboot" loading="lazy"/>
<span class="name">
<span class="pokedex-number">5</span>
Raboot
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/cinderace/" title="View Cinderace on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/815.png" alt="Cinderace" loading="lazy"/>
<span class="name">
<span class="pokedex-number">6</span>
Cinderace
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/sobble/" title="View Sobble on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/816.png" alt="Sobble" loading="lazy"/>
<span class="name">
<span class="pokedex-number">7</span>
Sobble
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/drizzile/" title="View Drizzile on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/817.png" alt="Drizzile" loading="lazy"/>
<span class="name">
<span class="pokedex-number">8</span>
Drizzile
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/inteleon/" title="View Inteleon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/818.png" alt="Inteleon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">9</span>
Inteleon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/blipbug/" title="View Blipbug on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/824.png" alt="Blipbug" loading="lazy"/>
<span class="name">
<span class="pokedex-number">10</span>
Blipbug
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/dottler/" title="View Dottler on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/825.png" alt="Dottler" loading="lazy"/>
<span class="name">
<span class="pokedex-number">11</span>
Dottler
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/orbeetle/" title="View Orbeetle on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/826.png" alt="Orbeetle" loading="lazy"/>
<span class="name">
<span class="pokedex-number">12</span>
Orbeetle
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/caterpie/" title="View Caterpie on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/010.png" alt="Caterpie" loading="lazy"/>
<span class="name">
<span class="pokedex-number">13</span>
Caterpie
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/metapod/" title="View Metapod on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/011.png" alt="Metapod" loading="lazy"/>
<span class="name">
<span class="pokedex-number">14</span>
Metapod
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/butterfree/" title="View Butterfree on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/012.png" alt="Butterfree" loading="lazy"/>
<span class="name">
<span class="pokedex-number">15</span>
Butterfree
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/grubbin/" title="View Grubbin on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/736.png" alt="Grubbin" loading="lazy"/>
<span class="name">
<span class="pokedex-number">16</span>
Grubbin
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/charjabug/" title="View Charjabug on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/737.png" alt="Charjabug" loading="lazy"/>
<span class="name">
<span class="pokedex-number">17</span>
Charjabug
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/vikavolt/" title="View Vikavolt on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/738.png" alt="Vikavolt" loading="lazy"/>
<span class="name">
<span class="pokedex-number">18</span>
Vikavolt
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/hoothoot/" title="View Hoothoot on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/163.png" alt="Hoothoot" loading="lazy"/>
<span class="name">
<span class="pokedex-number">19</span>
Hoothoot
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/noctowl/" title="View Noctowl on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/164.png" alt="Noctowl" loading="lazy"/>
<span class="name">
<span class="pokedex-number">20</span>
Noctowl
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/rookidee/" title="View Rookidee on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/821.png" alt="Rookidee" loading="lazy"/>
<span class="name">
<span class="pokedex-number">21</span>
Rookidee
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/corvisquire/" title="View Corvisquire on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/822.png" alt="Corvisquire" loading="lazy"/>
<span class="name">
<span class="pokedex-number">22</span>
Corvisquire
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/corviknight/" title="View Corviknight on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/823.png" alt="Corviknight" loading="lazy"/>
<span class="name">
<span class="pokedex-number">23</span>
Corviknight
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/skwovet/" title="View Skwovet on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/819.png" alt="Skwovet" loading="lazy"/>
<span class="name">
<span class="pokedex-number">24</span>
Skwovet
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/greedent/" title="View Greedent on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/820.png" alt="Greedent" loading="lazy"/>
<span class="name">
<span class="pokedex-number">25</span>
Greedent
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/pidove/" title="View Pidove on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/519.png" alt="Pidove" loading="lazy"/>
<span class="name">
<span class="pokedex-number">26</span>
Pidove
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/tranquill/" title="View Tranquill on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/520.png" alt="Tranquill" loading="lazy"/>
<span class="name">
<span class="pokedex-number">27</span>
Tranquill
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/unfezant/" title="View Unfezant on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/521.png" alt="Unfezant" loading="lazy"/>
<span class="name">
<span class="pokedex-number">28</span>
Unfezant
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/nickit/" title="View Nickit on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/827.png" alt="Nickit" loading="lazy"/>
<span class="name">
<span class="pokedex-number">29</span>
Nickit
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/thievul/" title="View Thievul on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/828.png" alt="Thievul" loading="lazy"/>
<span class="name">
<span class="pokedex-number">30</span>
Thievul
</span>
</a>
</div>
</div>
</section>
<section class="box">
<h2>031 - 060</h2>
<div class="contents">
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/zigzagoon/" title="View Zigzagoon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/263.png" alt="Zigzagoon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">31</span>
Zigzagoon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/linoone/" title="View Linoone on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/264.png" alt="Linoone" loading="lazy"/>
<span class="name">
<span class="pokedex-number">32</span>
Linoone
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/obstagoon/" title="View Obstagoon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/862.png" alt="Obstagoon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">33</span>
Obstagoon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/wooloo/" title="View Wooloo on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/831.png" alt="Wooloo" loading="lazy"/>
<span class="name">
<span class="pokedex-number">34</span>
Wooloo
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/dubwool/" title="View Dubwool on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/832.png" alt="Dubwool" loading="lazy"/>
<span class="name">
<span class="pokedex-number">35</span>
Dubwool
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/lotad/" title="View Lotad on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/270.png" alt="Lotad" loading="lazy"/>
<span class="name">
<span class="pokedex-number">36</span>
Lotad
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/lombre/" title="View Lombre on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/271.png" alt="Lombre" loading="lazy"/>
<span class="name">
<span class="pokedex-number">37</span>
Lombre
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/ludicolo/" title="View Ludicolo on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/272.png" alt="Ludicolo" loading="lazy"/>
<span class="name">
<span class="pokedex-number">38</span>
Ludicolo
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/seedot/" title="View Seedot on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/273.png" alt="Seedot" loading="lazy"/>
<span class="name">
<span class="pokedex-number">39</span>
Seedot
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/nuzleaf/" title="View Nuzleaf on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/274.png" alt="Nuzleaf" loading="lazy"/>
<span class="name">
<span class="pokedex-number">40</span>
Nuzleaf
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/shiftry/" title="View Shiftry on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/275.png" alt="Shiftry" loading="lazy"/>
<span class="name">
<span class="pokedex-number">41</span>
Shiftry
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/chewtle/" title="View Chewtle on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/833.png" alt="Chewtle" loading="lazy"/>
<span class="name">
<span class="pokedex-number">42</span>
Chewtle
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/drednaw/" title="View Drednaw on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/834.png" alt="Drednaw" loading="lazy"/>
<span class="name">
<span class="pokedex-number">43</span>
Drednaw
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/purrloin/" title="View Purrloin on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/509.png" alt="Purrloin" loading="lazy"/>
<span class="name">
<span class="pokedex-number">44</span>
Purrloin
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/liepard/" title="View Liepard on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/510.png" alt="Liepard" loading="lazy"/>
<span class="name">
<span class="pokedex-number">45</span>
Liepard
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/yamper/" title="View Yamper on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/835.png" alt="Yamper" loading="lazy"/>
<span class="name">
<span class="pokedex-number">46</span>
Yamper
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/boltund/" title="View Boltund on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/836.png" alt="Boltund" loading="lazy"/>
<span class="name">
<span class="pokedex-number">47</span>
Boltund
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/bunnelby/" title="View Bunnelby on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/659.png" alt="Bunnelby" loading="lazy"/>
<span class="name">
<span class="pokedex-number">48</span>
Bunnelby
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/diggersby/" title="View Diggersby on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/660.png" alt="Diggersby" loading="lazy"/>
<span class="name">
<span class="pokedex-number">49</span>
Diggersby
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/minccino/" title="View Minccino on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/572.png" alt="Minccino" loading="lazy"/>
<span class="name">
<span class="pokedex-number">50</span>
Minccino
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/cinccino/" title="View Cinccino on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/573.png" alt="Cinccino" loading="lazy"/>
<span class="name">
<span class="pokedex-number">51</span>
Cinccino
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/bounsweet/" title="View Bounsweet on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/761.png" alt="Bounsweet" loading="lazy"/>
<span class="name">
<span class="pokedex-number">52</span>
Bounsweet
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/steenee/" title="View Steenee on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/762.png" alt="Steenee" loading="lazy"/>
<span class="name">
<span class="pokedex-number">53</span>
Steenee
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/tsareena/" title="View Tsareena on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/763.png" alt="Tsareena" loading="lazy"/>
<span class="name">
<span class="pokedex-number">54</span>
Tsareena
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/oddish/" title="View Oddish on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/043.png" alt="Oddish" loading="lazy"/>
<span class="name">
<span class="pokedex-number">55</span>
Oddish
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/gloom/" title="View Gloom on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/044.png" alt="Gloom" loading="lazy"/>
<span class="name">
<span class="pokedex-number">56</span>
Gloom
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/vileplume/" title="View Vileplume on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/045.png" alt="Vileplume" loading="lazy"/>
<span class="name">
<span class="pokedex-number">57</span>
Vileplume
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/bellossom/" title="View Bellossom on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/182.png" alt="Bellossom" loading="lazy"/>
<span class="name">
<span class="pokedex-number">58</span>
Bellossom
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/budew/" title="View Budew on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/406.png" alt="Budew" loading="lazy"/>
<span class="name">
<span class="pokedex-number">59</span>
Budew
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/roselia/" title="View Roselia on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/315.png" alt="Roselia" loading="lazy"/>
<span class="name">
<span class="pokedex-number">60</span>
Roselia
</span>
</a>
</div>
</div>
</section>
<section class="box">
<h2>061 - 090</h2>
<div class="contents">
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/roserade/" title="View Roserade on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/407.png" alt="Roserade" loading="lazy"/>
<span class="name">
<span class="pokedex-number">61</span>
Roserade
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/wingull/" title="View Wingull on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/278.png" alt="Wingull" loading="lazy"/>
<span class="name">
<span class="pokedex-number">62</span>
Wingull
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/pelipper/" title="View Pelipper on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/279.png" alt="Pelipper" loading="lazy"/>
<span class="name">
<span class="pokedex-number">63</span>
Pelipper
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/joltik/" title="View Joltik on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/595.png" alt="Joltik" loading="lazy"/>
<span class="name">
<span class="pokedex-number">64</span>
Joltik
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/galvantula/" title="View Galvantula on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/596.png" alt="Galvantula" loading="lazy"/>
<span class="name">
<span class="pokedex-number">65</span>
Galvantula
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/electrike/" title="View Electrike on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/309.png" alt="Electrike" loading="lazy"/>
<span class="name">
<span class="pokedex-number">66</span>
Electrike
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/manectric/" title="View Manectric on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/310.png" alt="Manectric" loading="lazy"/>
<span class="name">
<span class="pokedex-number">67</span>
Manectric
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/vulpix/" title="View Vulpix on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/037.png" alt="Vulpix" loading="lazy"/>
<span class="name">
<span class="pokedex-number">68</span>
Vulpix
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/ninetales/" title="View Ninetales on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/038.png" alt="Ninetales" loading="lazy"/>
<span class="name">
<span class="pokedex-number">69</span>
Ninetales
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/growlithe/" title="View Growlithe on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/058.png" alt="Growlithe" loading="lazy"/>
<span class="name">
<span class="pokedex-number">70</span>
Growlithe
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/arcanine/" title="View Arcanine on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/059.png" alt="Arcanine" loading="lazy"/>
<span class="name">
<span class="pokedex-number">71</span>
Arcanine
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/vanillite/" title="View Vanillite on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/582.png" alt="Vanillite" loading="lazy"/>
<span class="name">
<span class="pokedex-number">72</span>
Vanillite
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/vanillish/" title="View Vanillish on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/583.png" alt="Vanillish" loading="lazy"/>
<span class="name">
<span class="pokedex-number">73</span>
Vanillish
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/vanilluxe/" title="View Vanilluxe on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/584.png" alt="Vanilluxe" loading="lazy"/>
<span class="name">
<span class="pokedex-number">74</span>
Vanilluxe
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/swinub/" title="View Swinub on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/220.png" alt="Swinub" loading="lazy"/>
<span class="name">
<span class="pokedex-number">75</span>
Swinub
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/piloswine/" title="View Piloswine on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/221.png" alt="Piloswine" loading="lazy"/>
<span class="name">
<span class="pokedex-number">76</span>
Piloswine
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/mamoswine/" title="View Mamoswine on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/473.png" alt="Mamoswine" loading="lazy"/>
<span class="name">
<span class="pokedex-number">77</span>
Mamoswine
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/delibird/" title="View Delibird on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/225.png" alt="Delibird" loading="lazy"/>
<span class="name">
<span class="pokedex-number">78</span>
Delibird
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/snorunt/" title="View Snorunt on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/361.png" alt="Snorunt" loading="lazy"/>
<span class="name">
<span class="pokedex-number">79</span>
Snorunt
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/glalie/" title="View Glalie on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/362.png" alt="Glalie" loading="lazy"/>
<span class="name">
<span class="pokedex-number">80</span>
Glalie
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/froslass/" title="View Froslass on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/478.png" alt="Froslass" loading="lazy"/>
<span class="name">
<span class="pokedex-number">81</span>
Froslass
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/baltoy/" title="View Baltoy on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/343.png" alt="Baltoy" loading="lazy"/>
<span class="name">
<span class="pokedex-number">82</span>
Baltoy
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/claydol/" title="View Claydol on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/344.png" alt="Claydol" loading="lazy"/>
<span class="name">
<span class="pokedex-number">83</span>
Claydol
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/mudbray/" title="View Mudbray on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/749.png" alt="Mudbray" loading="lazy"/>
<span class="name">
<span class="pokedex-number">84</span>
Mudbray
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/mudsdale/" title="View Mudsdale on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/750.png" alt="Mudsdale" loading="lazy"/>
<span class="name">
<span class="pokedex-number">85</span>
Mudsdale
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/dwebble/" title="View Dwebble on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/557.png" alt="Dwebble" loading="lazy"/>
<span class="name">
<span class="pokedex-number">86</span>
Dwebble
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/crustle/" title="View Crustle on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/558.png" alt="Crustle" loading="lazy"/>
<span class="name">
<span class="pokedex-number">87</span>
Crustle
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/golett/" title="View Golett on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/622.png" alt="Golett" loading="lazy"/>
<span class="name">
<span class="pokedex-number">88</span>
Golett
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/golurk/" title="View Golurk on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/623.png" alt="Golurk" loading="lazy"/>
<span class="name">
<span class="pokedex-number">89</span>
Golurk
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/munna/" title="View Munna on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/517.png" alt="Munna" loading="lazy"/>
<span class="name">
<span class="pokedex-number">90</span>
Munna
</span>
</a>
</div>
</div>
</section>
<section class="box">
<h2>091 - 120</h2>
<div class="contents">
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/musharna/" title="View Musharna on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/518.png" alt="Musharna" loading="lazy"/>
<span class="name">
<span class="pokedex-number">91</span>
Musharna
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/natu/" title="View Natu on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/177.png" alt="Natu" loading="lazy"/>
<span class="name">
<span class="pokedex-number">92</span>
Natu
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/xatu/" title="View Xatu on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/178.png" alt="Xatu" loading="lazy"/>
<span class="name">
<span class="pokedex-number">93</span>
Xatu
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/stufful/" title="View Stufful on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/759.png" alt="Stufful" loading="lazy"/>
<span class="name">
<span class="pokedex-number">94</span>
Stufful
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/bewear/" title="View Bewear on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/760.png" alt="Bewear" loading="lazy"/>
<span class="name">
<span class="pokedex-number">95</span>
Bewear
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/snover/" title="View Snover on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/459.png" alt="Snover" loading="lazy"/>
<span class="name">
<span class="pokedex-number">96</span>
Snover
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/abomasnow/" title="View Abomasnow on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/460.png" alt="Abomasnow" loading="lazy"/>
<span class="name">
<span class="pokedex-number">97</span>
Abomasnow
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/krabby/" title="View Krabby on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/098.png" alt="Krabby" loading="lazy"/>
<span class="name">
<span class="pokedex-number">98</span>
Krabby
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/kingler/" title="View Kingler on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/099.png" alt="Kingler" loading="lazy"/>
<span class="name">
<span class="pokedex-number">99</span>
Kingler
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/wooper/" title="View Wooper on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/194.png" alt="Wooper" loading="lazy"/>
<span class="name">
<span class="pokedex-number">100</span>
Wooper
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/quagsire/" title="View Quagsire on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/195.png" alt="Quagsire" loading="lazy"/>
<span class="name">
<span class="pokedex-number">101</span>
Quagsire
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/corphish/" title="View Corphish on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/341.png" alt="Corphish" loading="lazy"/>
<span class="name">
<span class="pokedex-number">102</span>
Corphish
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/crawdaunt/" title="View Crawdaunt on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/342.png" alt="Crawdaunt" loading="lazy"/>
<span class="name">
<span class="pokedex-number">103</span>
Crawdaunt
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/nincada/" title="View Nincada on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/290.png" alt="Nincada" loading="lazy"/>
<span class="name">
<span class="pokedex-number">104</span>
Nincada
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/ninjask/" title="View Ninjask on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/291.png" alt="Ninjask" loading="lazy"/>
<span class="name">
<span class="pokedex-number">105</span>
Ninjask
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/shedinja/" title="View Shedinja on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/292.png" alt="Shedinja" loading="lazy"/>
<span class="name">
<span class="pokedex-number">106</span>
Shedinja
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/tyrogue/" title="View Tyrogue on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/236.png" alt="Tyrogue" loading="lazy"/>
<span class="name">
<span class="pokedex-number">107</span>
Tyrogue
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/hitmonlee/" title="View Hitmonlee on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/106.png" alt="Hitmonlee" loading="lazy"/>
<span class="name">
<span class="pokedex-number">108</span>
Hitmonlee
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/hitmonchan/" title="View Hitmonchan on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/107.png" alt="Hitmonchan" loading="lazy"/>
<span class="name">
<span class="pokedex-number">109</span>
Hitmonchan
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/hitmontop/" title="View Hitmontop on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/237.png" alt="Hitmontop" loading="lazy"/>
<span class="name">
<span class="pokedex-number">110</span>
Hitmontop
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/pancham/" title="View Pancham on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/674.png" alt="Pancham" loading="lazy"/>
<span class="name">
<span class="pokedex-number">111</span>
Pancham
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/pangoro/" title="View Pangoro on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/675.png" alt="Pangoro" loading="lazy"/>
<span class="name">
<span class="pokedex-number">112</span>
Pangoro
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/klink/" title="View Klink on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/599.png" alt="Klink" loading="lazy"/>
<span class="name">
<span class="pokedex-number">113</span>
Klink
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/klang/" title="View Klang on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/600.png" alt="Klang" loading="lazy"/>
<span class="name">
<span class="pokedex-number">114</span>
Klang
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/klinklang/" title="View Klinklang on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/601.png" alt="Klinklang" loading="lazy"/>
<span class="name">
<span class="pokedex-number">115</span>
Klinklang
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/combee/" title="View Combee on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/415.png" alt="Combee" loading="lazy"/>
<span class="name">
<span class="pokedex-number">116</span>
Combee
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/vespiquen/" title="View Vespiquen on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/416.png" alt="Vespiquen" loading="lazy"/>
<span class="name">
<span class="pokedex-number">117</span>
Vespiquen
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/bronzor/" title="View Bronzor on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/436.png" alt="Bronzor" loading="lazy"/>
<span class="name">
<span class="pokedex-number">118</span>
Bronzor
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/bronzong/" title="View Bronzong on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/437.png" alt="Bronzong" loading="lazy"/>
<span class="name">
<span class="pokedex-number">119</span>
Bronzong
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/ralts/" title="View Ralts on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/280.png" alt="Ralts" loading="lazy"/>
<span class="name">
<span class="pokedex-number">120</span>
Ralts
</span>
</a>
</div>
</div>
</section>
<section class="box">
<h2>121 - 150</h2>
<div class="contents">
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/kirlia/" title="View Kirlia on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/281.png" alt="Kirlia" loading="lazy"/>
<span class="name">
<span class="pokedex-number">121</span>
Kirlia
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/gardevoir/" title="View Gardevoir on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/282.png" alt="Gardevoir" loading="lazy"/>
<span class="name">
<span class="pokedex-number">122</span>
Gardevoir
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/gallade/" title="View Gallade on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/475.png" alt="Gallade" loading="lazy"/>
<span class="name">
<span class="pokedex-number">123</span>
Gallade
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/drifloon/" title="View Drifloon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/425.png" alt="Drifloon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">124</span>
Drifloon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/drifblim/" title="View Drifblim on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/426.png" alt="Drifblim" loading="lazy"/>
<span class="name">
<span class="pokedex-number">125</span>
Drifblim
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/gossifleur/" title="View Gossifleur on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/829.png" alt="Gossifleur" loading="lazy"/>
<span class="name">
<span class="pokedex-number">126</span>
Gossifleur
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/eldegoss/" title="View Eldegoss on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/830.png" alt="Eldegoss" loading="lazy"/>
<span class="name">
<span class="pokedex-number">127</span>
Eldegoss
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/cherubi/" title="View Cherubi on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/420.png" alt="Cherubi" loading="lazy"/>
<span class="name">
<span class="pokedex-number">128</span>
Cherubi
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/cherrim/" title="View Cherrim on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/421.png" alt="Cherrim" loading="lazy"/>
<span class="name">
<span class="pokedex-number">129</span>
Cherrim
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/stunky/" title="View Stunky on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/434.png" alt="Stunky" loading="lazy"/>
<span class="name">
<span class="pokedex-number">130</span>
Stunky
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/skuntank/" title="View Skuntank on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/435.png" alt="Skuntank" loading="lazy"/>
<span class="name">
<span class="pokedex-number">131</span>
Skuntank
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/tympole/" title="View Tympole on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/535.png" alt="Tympole" loading="lazy"/>
<span class="name">
<span class="pokedex-number">132</span>
Tympole
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/palpitoad/" title="View Palpitoad on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/536.png" alt="Palpitoad" loading="lazy"/>
<span class="name">
<span class="pokedex-number">133</span>
Palpitoad
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/seismitoad/" title="View Seismitoad on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/537.png" alt="Seismitoad" loading="lazy"/>
<span class="name">
<span class="pokedex-number">134</span>
Seismitoad
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/duskull/" title="View Duskull on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/355.png" alt="Duskull" loading="lazy"/>
<span class="name">
<span class="pokedex-number">135</span>
Duskull
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/dusclops/" title="View Dusclops on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/356.png" alt="Dusclops" loading="lazy"/>
<span class="name">
<span class="pokedex-number">136</span>
Dusclops
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/dusknoir/" title="View Dusknoir on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/477.png" alt="Dusknoir" loading="lazy"/>
<span class="name">
<span class="pokedex-number">137</span>
Dusknoir
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/machop/" title="View Machop on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/066.png" alt="Machop" loading="lazy"/>
<span class="name">
<span class="pokedex-number">138</span>
Machop
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/machoke/" title="View Machoke on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/067.png" alt="Machoke" loading="lazy"/>
<span class="name">
<span class="pokedex-number">139</span>
Machoke
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/machamp/" title="View Machamp on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/068.png" alt="Machamp" loading="lazy"/>
<span class="name">
<span class="pokedex-number">140</span>
Machamp
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/gastly/" title="View Gastly on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/092.png" alt="Gastly" loading="lazy"/>
<span class="name">
<span class="pokedex-number">141</span>
Gastly
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/haunter/" title="View Haunter on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/093.png" alt="Haunter" loading="lazy"/>
<span class="name">
<span class="pokedex-number">142</span>
Haunter
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/gengar/" title="View Gengar on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/094.png" alt="Gengar" loading="lazy"/>
<span class="name">
<span class="pokedex-number">143</span>
Gengar
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/magikarp/" title="View Magikarp on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/129.png" alt="Magikarp" loading="lazy"/>
<span class="name">
<span class="pokedex-number">144</span>
Magikarp
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/gyarados/" title="View Gyarados on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/130.png" alt="Gyarados" loading="lazy"/>
<span class="name">
<span class="pokedex-number">145</span>
Gyarados
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/goldeen/" title="View Goldeen on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/118.png" alt="Goldeen" loading="lazy"/>
<span class="name">
<span class="pokedex-number">146</span>
Goldeen
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/seaking/" title="View Seaking on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/119.png" alt="Seaking" loading="lazy"/>
<span class="name">
<span class="pokedex-number">147</span>
Seaking
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/remoraid/" title="View Remoraid on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/223.png" alt="Remoraid" loading="lazy"/>
<span class="name">
<span class="pokedex-number">148</span>
Remoraid
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/octillery/" title="View Octillery on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/224.png" alt="Octillery" loading="lazy"/>
<span class="name">
<span class="pokedex-number">149</span>
Octillery
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/shellder/" title="View Shellder on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/090.png" alt="Shellder" loading="lazy"/>
<span class="name">
<span class="pokedex-number">150</span>
Shellder
</span>
</a>
</div>
</div>
</section>
<section class="box">
<h2>151 - 180</h2>
<div class="contents">
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/cloyster/" title="View Cloyster on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/091.png" alt="Cloyster" loading="lazy"/>
<span class="name">
<span class="pokedex-number">151</span>
Cloyster
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/feebas/" title="View Feebas on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/349.png" alt="Feebas" loading="lazy"/>
<span class="name">
<span class="pokedex-number">152</span>
Feebas
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/milotic/" title="View Milotic on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/350.png" alt="Milotic" loading="lazy"/>
<span class="name">
<span class="pokedex-number">153</span>
Milotic
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/basculin/" title="View Basculin on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/550.png" alt="Basculin" loading="lazy"/>
<span class="name">
<span class="pokedex-number">154</span>
Basculin
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/wishiwashi/" title="View Wishiwashi on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/746.png" alt="Wishiwashi" loading="lazy"/>
<span class="name">
<span class="pokedex-number">155</span>
Wishiwashi
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/pyukumuku/" title="View Pyukumuku on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/771.png" alt="Pyukumuku" loading="lazy"/>
<span class="name">
<span class="pokedex-number">156</span>
Pyukumuku
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/trubbish/" title="View Trubbish on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/568.png" alt="Trubbish" loading="lazy"/>
<span class="name">
<span class="pokedex-number">157</span>
Trubbish
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/garbodor/" title="View Garbodor on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/569.png" alt="Garbodor" loading="lazy"/>
<span class="name">
<span class="pokedex-number">158</span>
Garbodor
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/sizzlipede/" title="View Sizzlipede on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/850.png" alt="Sizzlipede" loading="lazy"/>
<span class="name">
<span class="pokedex-number">159</span>
Sizzlipede
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/centiskorch/" title="View Centiskorch on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/851.png" alt="Centiskorch" loading="lazy"/>
<span class="name">
<span class="pokedex-number">160</span>
Centiskorch
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/rolycoly/" title="View Rolycoly on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/837.png" alt="Rolycoly" loading="lazy"/>
<span class="name">
<span class="pokedex-number">161</span>
Rolycoly
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/carkol/" title="View Carkol on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/838.png" alt="Carkol" loading="lazy"/>
<span class="name">
<span class="pokedex-number">162</span>
Carkol
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/coalossal/" title="View Coalossal on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/839.png" alt="Coalossal" loading="lazy"/>
<span class="name">
<span class="pokedex-number">163</span>
Coalossal
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/diglett/" title="View Diglett on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/050.png" alt="Diglett" loading="lazy"/>
<span class="name">
<span class="pokedex-number">164</span>
Diglett
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/dugtrio/" title="View Dugtrio on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/051.png" alt="Dugtrio" loading="lazy"/>
<span class="name">
<span class="pokedex-number">165</span>
Dugtrio
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/drilbur/" title="View Drilbur on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/529.png" alt="Drilbur" loading="lazy"/>
<span class="name">
<span class="pokedex-number">166</span>
Drilbur
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/excadrill/" title="View Excadrill on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/530.png" alt="Excadrill" loading="lazy"/>
<span class="name">
<span class="pokedex-number">167</span>
Excadrill
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/roggenrola/" title="View Roggenrola on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/524.png" alt="Roggenrola" loading="lazy"/>
<span class="name">
<span class="pokedex-number">168</span>
Roggenrola
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/boldore/" title="View Boldore on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/525.png" alt="Boldore" loading="lazy"/>
<span class="name">
<span class="pokedex-number">169</span>
Boldore
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/gigalith/" title="View Gigalith on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/526.png" alt="Gigalith" loading="lazy"/>
<span class="name">
<span class="pokedex-number">170</span>
Gigalith
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/timburr/" title="View Timburr on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/532.png" alt="Timburr" loading="lazy"/>
<span class="name">
<span class="pokedex-number">171</span>
Timburr
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/gurdurr/" title="View Gurdurr on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/533.png" alt="Gurdurr" loading="lazy"/>
<span class="name">
<span class="pokedex-number">172</span>
Gurdurr
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/conkeldurr/" title="View Conkeldurr on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/534.png" alt="Conkeldurr" loading="lazy"/>
<span class="name">
<span class="pokedex-number">173</span>
Conkeldurr
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/woobat/" title="View Woobat on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/527.png" alt="Woobat" loading="lazy"/>
<span class="name">
<span class="pokedex-number">174</span>
Woobat
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/swoobat/" title="View Swoobat on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/528.png" alt="Swoobat" loading="lazy"/>
<span class="name">
<span class="pokedex-number">175</span>
Swoobat
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/noibat/" title="View Noibat on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/714.png" alt="Noibat" loading="lazy"/>
<span class="name">
<span class="pokedex-number">176</span>
Noibat
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/noivern/" title="View Noivern on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/715.png" alt="Noivern" loading="lazy"/>
<span class="name">
<span class="pokedex-number">177</span>
Noivern
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/onix/" title="View Onix on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/095.png" alt="Onix" loading="lazy"/>
<span class="name">
<span class="pokedex-number">178</span>
Onix
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/steelix/" title="View Steelix on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/208.png" alt="Steelix" loading="lazy"/>
<span class="name">
<span class="pokedex-number">179</span>
Steelix
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/arrokuda/" title="View Arrokuda on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/846.png" alt="Arrokuda" loading="lazy"/>
<span class="name">
<span class="pokedex-number">180</span>
Arrokuda
</span>
</a>
</div>
</div>
</section>
<section class="box">
<h2>181 - 210</h2>
<div class="contents">
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/barraskewda/" title="View Barraskewda on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/847.png" alt="Barraskewda" loading="lazy"/>
<span class="name">
<span class="pokedex-number">181</span>
Barraskewda
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/meowth/" title="View Meowth on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/052.png" alt="Meowth" loading="lazy"/>
<span class="name">
<span class="pokedex-number">182</span>
Meowth
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/perrserker/" title="View Perrserker on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/863.png" alt="Perrserker" loading="lazy"/>
<span class="name">
<span class="pokedex-number">183</span>
Perrserker
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/persian/" title="View Persian on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/053.png" alt="Persian" loading="lazy"/>
<span class="name">
<span class="pokedex-number">184</span>
Persian
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/milcery/" title="View Milcery on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/868.png" alt="Milcery" loading="lazy"/>
<span class="name">
<span class="pokedex-number">185</span>
Milcery
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/alcremie/" title="View Alcremie on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/869.png" alt="Alcremie" loading="lazy"/>
<span class="name">
<span class="pokedex-number">186</span>
Alcremie
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/cutiefly/" title="View Cutiefly on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/742.png" alt="Cutiefly" loading="lazy"/>
<span class="name">
<span class="pokedex-number">187</span>
Cutiefly
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/ribombee/" title="View Ribombee on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/743.png" alt="Ribombee" loading="lazy"/>
<span class="name">
<span class="pokedex-number">188</span>
Ribombee
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/ferroseed/" title="View Ferroseed on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/597.png" alt="Ferroseed" loading="lazy"/>
<span class="name">
<span class="pokedex-number">189</span>
Ferroseed
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/ferrothorn/" title="View Ferrothorn on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/598.png" alt="Ferrothorn" loading="lazy"/>
<span class="name">
<span class="pokedex-number">190</span>
Ferrothorn
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/pumpkaboo/" title="View Pumpkaboo on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/710.png" alt="Pumpkaboo" loading="lazy"/>
<span class="name">
<span class="pokedex-number">191</span>
Pumpkaboo
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/gourgeist/" title="View Gourgeist on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/711.png" alt="Gourgeist" loading="lazy"/>
<span class="name">
<span class="pokedex-number">192</span>
Gourgeist
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/pichu/" title="View Pichu on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/172.png" alt="Pichu" loading="lazy"/>
<span class="name">
<span class="pokedex-number">193</span>
Pichu
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/pikachu/" title="View Pikachu on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/025.png" alt="Pikachu" loading="lazy"/>
<span class="name">
<span class="pokedex-number">194</span>
Pikachu
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/raichu/" title="View Raichu on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/026.png" alt="Raichu" loading="lazy"/>
<span class="name">
<span class="pokedex-number">195</span>
Raichu
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/eevee/" title="View Eevee on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/133.png" alt="Eevee" loading="lazy"/>
<span class="name">
<span class="pokedex-number">196</span>
Eevee
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/vaporeon/" title="View Vaporeon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/134.png" alt="Vaporeon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">197</span>
Vaporeon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/jolteon/" title="View Jolteon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/135.png" alt="Jolteon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">198</span>
Jolteon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/flareon/" title="View Flareon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/136.png" alt="Flareon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">199</span>
Flareon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/espeon/" title="View Espeon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/196.png" alt="Espeon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">200</span>
Espeon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/umbreon/" title="View Umbreon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/197.png" alt="Umbreon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">201</span>
Umbreon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/leafeon/" title="View Leafeon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/470.png" alt="Leafeon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">202</span>
Leafeon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/glaceon/" title="View Glaceon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/471.png" alt="Glaceon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">203</span>
Glaceon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/sylveon/" title="View Sylveon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/700.png" alt="Sylveon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">204</span>
Sylveon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/applin/" title="View Applin on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/840.png" alt="Applin" loading="lazy"/>
<span class="name">
<span class="pokedex-number">205</span>
Applin
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/flapple/" title="View Flapple on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/841.png" alt="Flapple" loading="lazy"/>
<span class="name">
<span class="pokedex-number">206</span>
Flapple
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/appletun/" title="View Appletun on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/842.png" alt="Appletun" loading="lazy"/>
<span class="name">
<span class="pokedex-number">207</span>
Appletun
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/espurr/" title="View Espurr on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/677.png" alt="Espurr" loading="lazy"/>
<span class="name">
<span class="pokedex-number">208</span>
Espurr
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/meowstic/" title="View Meowstic on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/678.png" alt="Meowstic" loading="lazy"/>
<span class="name">
<span class="pokedex-number">209</span>
Meowstic
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/swirlix/" title="View Swirlix on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/684.png" alt="Swirlix" loading="lazy"/>
<span class="name">
<span class="pokedex-number">210</span>
Swirlix
</span>
</a>
</div>
</div>
</section>
<section class="box">
<h2>211 - 240</h2>
<div class="contents">
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/slurpuff/" title="View Slurpuff on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/685.png" alt="Slurpuff" loading="lazy"/>
<span class="name">
<span class="pokedex-number">211</span>
Slurpuff
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/spritzee/" title="View Spritzee on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/682.png" alt="Spritzee" loading="lazy"/>
<span class="name">
<span class="pokedex-number">212</span>
Spritzee
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/aromatisse/" title="View Aromatisse on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/683.png" alt="Aromatisse" loading="lazy"/>
<span class="name">
<span class="pokedex-number">213</span>
Aromatisse
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/dewpider/" title="View Dewpider on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/751.png" alt="Dewpider" loading="lazy"/>
<span class="name">
<span class="pokedex-number">214</span>
Dewpider
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/araquanid/" title="View Araquanid on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/752.png" alt="Araquanid" loading="lazy"/>
<span class="name">
<span class="pokedex-number">215</span>
Araquanid
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/wynaut/" title="View Wynaut on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/360.png" alt="Wynaut" loading="lazy"/>
<span class="name">
<span class="pokedex-number">216</span>
Wynaut
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/wobbuffet/" title="View Wobbuffet on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/202.png" alt="Wobbuffet" loading="lazy"/>
<span class="name">
<span class="pokedex-number">217</span>
Wobbuffet
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/farfetch%27d/" title="View Farfetch'd on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/083.png" alt="Farfetch'd" loading="lazy"/>
<span class="name">
<span class="pokedex-number">218</span>
Farfetch'd
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/sirfetch%27d/" title="View Sirfetch'd on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/865.png" alt="Sirfetch'd" loading="lazy"/>
<span class="name">
<span class="pokedex-number">219</span>
Sirfetch'd
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/chinchou/" title="View Chinchou on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/170.png" alt="Chinchou" loading="lazy"/>
<span class="name">
<span class="pokedex-number">220</span>
Chinchou
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/lanturn/" title="View Lanturn on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/171.png" alt="Lanturn" loading="lazy"/>
<span class="name">
<span class="pokedex-number">221</span>
Lanturn
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/croagunk/" title="View Croagunk on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/453.png" alt="Croagunk" loading="lazy"/>
<span class="name">
<span class="pokedex-number">222</span>
Croagunk
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/toxicroak/" title="View Toxicroak on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/454.png" alt="Toxicroak" loading="lazy"/>
<span class="name">
<span class="pokedex-number">223</span>
Toxicroak
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/scraggy/" title="View Scraggy on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/559.png" alt="Scraggy" loading="lazy"/>
<span class="name">
<span class="pokedex-number">224</span>
Scraggy
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/scrafty/" title="View Scrafty on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/560.png" alt="Scrafty" loading="lazy"/>
<span class="name">
<span class="pokedex-number">225</span>
Scrafty
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/stunfisk/" title="View Stunfisk on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/618.png" alt="Stunfisk" loading="lazy"/>
<span class="name">
<span class="pokedex-number">226</span>
Stunfisk
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/shuckle/" title="View Shuckle on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/213.png" alt="Shuckle" loading="lazy"/>
<span class="name">
<span class="pokedex-number">227</span>
Shuckle
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/barboach/" title="View Barboach on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/339.png" alt="Barboach" loading="lazy"/>
<span class="name">
<span class="pokedex-number">228</span>
Barboach
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/whiscash/" title="View Whiscash on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/340.png" alt="Whiscash" loading="lazy"/>
<span class="name">
<span class="pokedex-number">229</span>
Whiscash
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/shellos/" title="View Shellos on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/422.png" alt="Shellos" loading="lazy"/>
<span class="name">
<span class="pokedex-number">230</span>
Shellos
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/gastrodon/" title="View Gastrodon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/423.png" alt="Gastrodon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">231</span>
Gastrodon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/wimpod/" title="View Wimpod on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/767.png" alt="Wimpod" loading="lazy"/>
<span class="name">
<span class="pokedex-number">232</span>
Wimpod
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/golisopod/" title="View Golisopod on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/768.png" alt="Golisopod" loading="lazy"/>
<span class="name">
<span class="pokedex-number">233</span>
Golisopod
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/binacle/" title="View Binacle on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/688.png" alt="Binacle" loading="lazy"/>
<span class="name">
<span class="pokedex-number">234</span>
Binacle
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/barbaracle/" title="View Barbaracle on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/689.png" alt="Barbaracle" loading="lazy"/>
<span class="name">
<span class="pokedex-number">235</span>
Barbaracle
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/corsola/" title="View Corsola on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/222.png" alt="Corsola" loading="lazy"/>
<span class="name">
<span class="pokedex-number">236</span>
Corsola
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/cursola/" title="View Cursola on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/864.png" alt="Cursola" loading="lazy"/>
<span class="name">
<span class="pokedex-number">237</span>
Cursola
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/impidimp/" title="View Impidimp on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/859.png" alt="Impidimp" loading="lazy"/>
<span class="name">
<span class="pokedex-number">238</span>
Impidimp
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/morgrem/" title="View Morgrem on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/860.png" alt="Morgrem" loading="lazy"/>
<span class="name">
<span class="pokedex-number">239</span>
Morgrem
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/grimmsnarl/" title="View Grimmsnarl on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/861.png" alt="Grimmsnarl" loading="lazy"/>
<span class="name">
<span class="pokedex-number">240</span>
Grimmsnarl
</span>
</a>
</div>
</div>
</section>
<section class="box">
<h2>241 - 270</h2>
<div class="contents">
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/hatenna/" title="View Hatenna on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/856.png" alt="Hatenna" loading="lazy"/>
<span class="name">
<span class="pokedex-number">241</span>
Hatenna
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/hattrem/" title="View Hattrem on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/857.png" alt="Hattrem" loading="lazy"/>
<span class="name">
<span class="pokedex-number">242</span>
Hattrem
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/hatterene/" title="View Hatterene on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/858.png" alt="Hatterene" loading="lazy"/>
<span class="name">
<span class="pokedex-number">243</span>
Hatterene
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/salandit/" title="View Salandit on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/757.png" alt="Salandit" loading="lazy"/>
<span class="name">
<span class="pokedex-number">244</span>
Salandit
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/salazzle/" title="View Salazzle on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/758.png" alt="Salazzle" loading="lazy"/>
<span class="name">
<span class="pokedex-number">245</span>
Salazzle
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/pawniard/" title="View Pawniard on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/624.png" alt="Pawniard" loading="lazy"/>
<span class="name">
<span class="pokedex-number">246</span>
Pawniard
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/bisharp/" title="View Bisharp on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/625.png" alt="Bisharp" loading="lazy"/>
<span class="name">
<span class="pokedex-number">247</span>
Bisharp
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/throh/" title="View Throh on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/538.png" alt="Throh" loading="lazy"/>
<span class="name">
<span class="pokedex-number">248</span>
Throh
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/sawk/" title="View Sawk on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/539.png" alt="Sawk" loading="lazy"/>
<span class="name">
<span class="pokedex-number">249</span>
Sawk
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/koffing/" title="View Koffing on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/109.png" alt="Koffing" loading="lazy"/>
<span class="name">
<span class="pokedex-number">250</span>
Koffing
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/weezing/" title="View Weezing on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/110.png" alt="Weezing" loading="lazy"/>
<span class="name">
<span class="pokedex-number">251</span>
Weezing
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/bonsly/" title="View Bonsly on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/438.png" alt="Bonsly" loading="lazy"/>
<span class="name">
<span class="pokedex-number">252</span>
Bonsly
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/sudowoodo/" title="View Sudowoodo on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/185.png" alt="Sudowoodo" loading="lazy"/>
<span class="name">
<span class="pokedex-number">253</span>
Sudowoodo
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/cleffa/" title="View Cleffa on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/173.png" alt="Cleffa" loading="lazy"/>
<span class="name">
<span class="pokedex-number">254</span>
Cleffa
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/clefairy/" title="View Clefairy on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/035.png" alt="Clefairy" loading="lazy"/>
<span class="name">
<span class="pokedex-number">255</span>
Clefairy
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/clefable/" title="View Clefable on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/036.png" alt="Clefable" loading="lazy"/>
<span class="name">
<span class="pokedex-number">256</span>
Clefable
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/togepi/" title="View Togepi on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/175.png" alt="Togepi" loading="lazy"/>
<span class="name">
<span class="pokedex-number">257</span>
Togepi
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/togetic/" title="View Togetic on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/176.png" alt="Togetic" loading="lazy"/>
<span class="name">
<span class="pokedex-number">258</span>
Togetic
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/togekiss/" title="View Togekiss on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/468.png" alt="Togekiss" loading="lazy"/>
<span class="name">
<span class="pokedex-number">259</span>
Togekiss
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/munchlax/" title="View Munchlax on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/446.png" alt="Munchlax" loading="lazy"/>
<span class="name">
<span class="pokedex-number">260</span>
Munchlax
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/snorlax/" title="View Snorlax on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/143.png" alt="Snorlax" loading="lazy"/>
<span class="name">
<span class="pokedex-number">261</span>
Snorlax
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/cottonee/" title="View Cottonee on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/546.png" alt="Cottonee" loading="lazy"/>
<span class="name">
<span class="pokedex-number">262</span>
Cottonee
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/whimsicott/" title="View Whimsicott on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/547.png" alt="Whimsicott" loading="lazy"/>
<span class="name">
<span class="pokedex-number">263</span>
Whimsicott
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/rhyhorn/" title="View Rhyhorn on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/111.png" alt="Rhyhorn" loading="lazy"/>
<span class="name">
<span class="pokedex-number">264</span>
Rhyhorn
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/rhydon/" title="View Rhydon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/112.png" alt="Rhydon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">265</span>
Rhydon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/rhyperior/" title="View Rhyperior on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/464.png" alt="Rhyperior" loading="lazy"/>
<span class="name">
<span class="pokedex-number">266</span>
Rhyperior
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/gothita/" title="View Gothita on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/574.png" alt="Gothita" loading="lazy"/>
<span class="name">
<span class="pokedex-number">267</span>
Gothita
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/gothorita/" title="View Gothorita on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/575.png" alt="Gothorita" loading="lazy"/>
<span class="name">
<span class="pokedex-number">268</span>
Gothorita
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/gothitelle/" title="View Gothitelle on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/576.png" alt="Gothitelle" loading="lazy"/>
<span class="name">
<span class="pokedex-number">269</span>
Gothitelle
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/solosis/" title="View Solosis on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/577.png" alt="Solosis" loading="lazy"/>
<span class="name">
<span class="pokedex-number">270</span>
Solosis
</span>
</a>
</div>
</div>
</section>
<section class="box">
<h2>271 - 300</h2>
<div class="contents">
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/duosion/" title="View Duosion on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/578.png" alt="Duosion" loading="lazy"/>
<span class="name">
<span class="pokedex-number">271</span>
Duosion
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/reuniclus/" title="View Reuniclus on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/579.png" alt="Reuniclus" loading="lazy"/>
<span class="name">
<span class="pokedex-number">272</span>
Reuniclus
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/karrablast/" title="View Karrablast on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/588.png" alt="Karrablast" loading="lazy"/>
<span class="name">
<span class="pokedex-number">273</span>
Karrablast
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/escavalier/" title="View Escavalier on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/589.png" alt="Escavalier" loading="lazy"/>
<span class="name">
<span class="pokedex-number">274</span>
Escavalier
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/shelmet/" title="View Shelmet on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/616.png" alt="Shelmet" loading="lazy"/>
<span class="name">
<span class="pokedex-number">275</span>
Shelmet
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/accelgor/" title="View Accelgor on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/617.png" alt="Accelgor" loading="lazy"/>
<span class="name">
<span class="pokedex-number">276</span>
Accelgor
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/elgyem/" title="View Elgyem on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/605.png" alt="Elgyem" loading="lazy"/>
<span class="name">
<span class="pokedex-number">277</span>
Elgyem
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/beheeyem/" title="View Beheeyem on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/606.png" alt="Beheeyem" loading="lazy"/>
<span class="name">
<span class="pokedex-number">278</span>
Beheeyem
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/cubchoo/" title="View Cubchoo on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/613.png" alt="Cubchoo" loading="lazy"/>
<span class="name">
<span class="pokedex-number">279</span>
Cubchoo
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/beartic/" title="View Beartic on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/614.png" alt="Beartic" loading="lazy"/>
<span class="name">
<span class="pokedex-number">280</span>
Beartic
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/rufflet/" title="View Rufflet on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/627.png" alt="Rufflet" loading="lazy"/>
<span class="name">
<span class="pokedex-number">281</span>
Rufflet
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/braviary/" title="View Braviary on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/628.png" alt="Braviary" loading="lazy"/>
<span class="name">
<span class="pokedex-number">282</span>
Braviary
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/vullaby/" title="View Vullaby on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/629.png" alt="Vullaby" loading="lazy"/>
<span class="name">
<span class="pokedex-number">283</span>
Vullaby
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/mandibuzz/" title="View Mandibuzz on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/630.png" alt="Mandibuzz" loading="lazy"/>
<span class="name">
<span class="pokedex-number">284</span>
Mandibuzz
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/skorupi/" title="View Skorupi on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/451.png" alt="Skorupi" loading="lazy"/>
<span class="name">
<span class="pokedex-number">285</span>
Skorupi
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/drapion/" title="View Drapion on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/452.png" alt="Drapion" loading="lazy"/>
<span class="name">
<span class="pokedex-number">286</span>
Drapion
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/litwick/" title="View Litwick on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/607.png" alt="Litwick" loading="lazy"/>
<span class="name">
<span class="pokedex-number">287</span>
Litwick
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/lampent/" title="View Lampent on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/608.png" alt="Lampent" loading="lazy"/>
<span class="name">
<span class="pokedex-number">288</span>
Lampent
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/chandelure/" title="View Chandelure on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/609.png" alt="Chandelure" loading="lazy"/>
<span class="name">
<span class="pokedex-number">289</span>
Chandelure
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/inkay/" title="View Inkay on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/686.png" alt="Inkay" loading="lazy"/>
<span class="name">
<span class="pokedex-number">290</span>
Inkay
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/malamar/" title="View Malamar on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/687.png" alt="Malamar" loading="lazy"/>
<span class="name">
<span class="pokedex-number">291</span>
Malamar
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/sneasel/" title="View Sneasel on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/215.png" alt="Sneasel" loading="lazy"/>
<span class="name">
<span class="pokedex-number">292</span>
Sneasel
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/weavile/" title="View Weavile on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/461.png" alt="Weavile" loading="lazy"/>
<span class="name">
<span class="pokedex-number">293</span>
Weavile
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/sableye/" title="View Sableye on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/302.png" alt="Sableye" loading="lazy"/>
<span class="name">
<span class="pokedex-number">294</span>
Sableye
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/mawile/" title="View Mawile on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/303.png" alt="Mawile" loading="lazy"/>
<span class="name">
<span class="pokedex-number">295</span>
Mawile
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/maractus/" title="View Maractus on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/556.png" alt="Maractus" loading="lazy"/>
<span class="name">
<span class="pokedex-number">296</span>
Maractus
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/sigilyph/" title="View Sigilyph on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/561.png" alt="Sigilyph" loading="lazy"/>
<span class="name">
<span class="pokedex-number">297</span>
Sigilyph
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/riolu/" title="View Riolu on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/447.png" alt="Riolu" loading="lazy"/>
<span class="name">
<span class="pokedex-number">298</span>
Riolu
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/lucario/" title="View Lucario on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/448.png" alt="Lucario" loading="lazy"/>
<span class="name">
<span class="pokedex-number">299</span>
Lucario
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/torkoal/" title="View Torkoal on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/324.png" alt="Torkoal" loading="lazy"/>
<span class="name">
<span class="pokedex-number">300</span>
Torkoal
</span>
</a>
</div>
</div>
</section>
<section class="box">
<h2>301 - 330</h2>
<div class="contents">
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/mimikyu/" title="View Mimikyu on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/778.png" alt="Mimikyu" loading="lazy"/>
<span class="name">
<span class="pokedex-number">301</span>
Mimikyu
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/cufant/" title="View Cufant on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/878.png" alt="Cufant" loading="lazy"/>
<span class="name">
<span class="pokedex-number">302</span>
Cufant
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/copperajah/" title="View Copperajah on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/879.png" alt="Copperajah" loading="lazy"/>
<span class="name">
<span class="pokedex-number">303</span>
Copperajah
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/qwilfish/" title="View Qwilfish on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/211.png" alt="Qwilfish" loading="lazy"/>
<span class="name">
<span class="pokedex-number">304</span>
Qwilfish
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/frillish/" title="View Frillish on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/592.png" alt="Frillish" loading="lazy"/>
<span class="name">
<span class="pokedex-number">305</span>
Frillish
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/jellicent/" title="View Jellicent on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/593.png" alt="Jellicent" loading="lazy"/>
<span class="name">
<span class="pokedex-number">306</span>
Jellicent
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/mareanie/" title="View Mareanie on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/747.png" alt="Mareanie" loading="lazy"/>
<span class="name">
<span class="pokedex-number">307</span>
Mareanie
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/toxapex/" title="View Toxapex on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/748.png" alt="Toxapex" loading="lazy"/>
<span class="name">
<span class="pokedex-number">308</span>
Toxapex
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/cramorant/" title="View Cramorant on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/845.png" alt="Cramorant" loading="lazy"/>
<span class="name">
<span class="pokedex-number">309</span>
Cramorant
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/toxel/" title="View Toxel on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/848.png" alt="Toxel" loading="lazy"/>
<span class="name">
<span class="pokedex-number">310</span>
Toxel
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/toxtricity/" title="View Toxtricity on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/849.png" alt="Toxtricity" loading="lazy"/>
<span class="name">
<span class="pokedex-number">311</span>
Toxtricity
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/silicobra/" title="View Silicobra on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/843.png" alt="Silicobra" loading="lazy"/>
<span class="name">
<span class="pokedex-number">312</span>
Silicobra
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/sandaconda/" title="View Sandaconda on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/844.png" alt="Sandaconda" loading="lazy"/>
<span class="name">
<span class="pokedex-number">313</span>
Sandaconda
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/hippopotas/" title="View Hippopotas on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/449.png" alt="Hippopotas" loading="lazy"/>
<span class="name">
<span class="pokedex-number">314</span>
Hippopotas
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/hippowdon/" title="View Hippowdon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/450.png" alt="Hippowdon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">315</span>
Hippowdon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/durant/" title="View Durant on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/632.png" alt="Durant" loading="lazy"/>
<span class="name">
<span class="pokedex-number">316</span>
Durant
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/heatmor/" title="View Heatmor on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/631.png" alt="Heatmor" loading="lazy"/>
<span class="name">
<span class="pokedex-number">317</span>
Heatmor
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/helioptile/" title="View Helioptile on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/694.png" alt="Helioptile" loading="lazy"/>
<span class="name">
<span class="pokedex-number">318</span>
Helioptile
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/heliolisk/" title="View Heliolisk on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/695.png" alt="Heliolisk" loading="lazy"/>
<span class="name">
<span class="pokedex-number">319</span>
Heliolisk
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/hawlucha/" title="View Hawlucha on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/701.png" alt="Hawlucha" loading="lazy"/>
<span class="name">
<span class="pokedex-number">320</span>
Hawlucha
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/trapinch/" title="View Trapinch on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/328.png" alt="Trapinch" loading="lazy"/>
<span class="name">
<span class="pokedex-number">321</span>
Trapinch
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/vibrava/" title="View Vibrava on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/329.png" alt="Vibrava" loading="lazy"/>
<span class="name">
<span class="pokedex-number">322</span>
Vibrava
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/flygon/" title="View Flygon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/330.png" alt="Flygon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">323</span>
Flygon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/axew/" title="View Axew on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/610.png" alt="Axew" loading="lazy"/>
<span class="name">
<span class="pokedex-number">324</span>
Axew
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/fraxure/" title="View Fraxure on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/611.png" alt="Fraxure" loading="lazy"/>
<span class="name">
<span class="pokedex-number">325</span>
Fraxure
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/haxorus/" title="View Haxorus on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/612.png" alt="Haxorus" loading="lazy"/>
<span class="name">
<span class="pokedex-number">326</span>
Haxorus
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/yamask/" title="View Yamask on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/562.png" alt="Yamask" loading="lazy"/>
<span class="name">
<span class="pokedex-number">327</span>
Yamask
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/runerigus/" title="View Runerigus on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/867.png" alt="Runerigus" loading="lazy"/>
<span class="name">
<span class="pokedex-number">328</span>
Runerigus
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/cofagrigus/" title="View Cofagrigus on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/563.png" alt="Cofagrigus" loading="lazy"/>
<span class="name">
<span class="pokedex-number">329</span>
Cofagrigus
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/honedge/" title="View Honedge on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/679.png" alt="Honedge" loading="lazy"/>
<span class="name">
<span class="pokedex-number">330</span>
Honedge
</span>
</a>
</div>
</div>
</section>
<section class="box">
<h2>331 - 360</h2>
<div class="contents">
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/doublade/" title="View Doublade on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/680.png" alt="Doublade" loading="lazy"/>
<span class="name">
<span class="pokedex-number">331</span>
Doublade
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/aegislash/" title="View Aegislash on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/681.png" alt="Aegislash" loading="lazy"/>
<span class="name">
<span class="pokedex-number">332</span>
Aegislash
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/ponyta/" title="View Ponyta on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/077.png" alt="Ponyta" loading="lazy"/>
<span class="name">
<span class="pokedex-number">333</span>
Ponyta
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/rapidash/" title="View Rapidash on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/078.png" alt="Rapidash" loading="lazy"/>
<span class="name">
<span class="pokedex-number">334</span>
Rapidash
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/sinistea/" title="View Sinistea on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/854.png" alt="Sinistea" loading="lazy"/>
<span class="name">
<span class="pokedex-number">335</span>
Sinistea
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/polteageist/" title="View Polteageist on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/855.png" alt="Polteageist" loading="lazy"/>
<span class="name">
<span class="pokedex-number">336</span>
Polteageist
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/indeedee/" title="View Indeedee on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/876.png" alt="Indeedee" loading="lazy"/>
<span class="name">
<span class="pokedex-number">337</span>
Indeedee
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/phantump/" title="View Phantump on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/708.png" alt="Phantump" loading="lazy"/>
<span class="name">
<span class="pokedex-number">338</span>
Phantump
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/trevenant/" title="View Trevenant on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/709.png" alt="Trevenant" loading="lazy"/>
<span class="name">
<span class="pokedex-number">339</span>
Trevenant
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/morelull/" title="View Morelull on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/755.png" alt="Morelull" loading="lazy"/>
<span class="name">
<span class="pokedex-number">340</span>
Morelull
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/shiinotic/" title="View Shiinotic on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/756.png" alt="Shiinotic" loading="lazy"/>
<span class="name">
<span class="pokedex-number">341</span>
Shiinotic
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/oranguru/" title="View Oranguru on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/765.png" alt="Oranguru" loading="lazy"/>
<span class="name">
<span class="pokedex-number">342</span>
Oranguru
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/passimian/" title="View Passimian on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/766.png" alt="Passimian" loading="lazy"/>
<span class="name">
<span class="pokedex-number">343</span>
Passimian
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/morpeko/" title="View Morpeko on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/877.png" alt="Morpeko" loading="lazy"/>
<span class="name">
<span class="pokedex-number">344</span>
Morpeko
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/falinks/" title="View Falinks on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/870.png" alt="Falinks" loading="lazy"/>
<span class="name">
<span class="pokedex-number">345</span>
Falinks
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/drampa/" title="View Drampa on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/780.png" alt="Drampa" loading="lazy"/>
<span class="name">
<span class="pokedex-number">346</span>
Drampa
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/turtonator/" title="View Turtonator on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/776.png" alt="Turtonator" loading="lazy"/>
<span class="name">
<span class="pokedex-number">347</span>
Turtonator
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/togedemaru/" title="View Togedemaru on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/777.png" alt="Togedemaru" loading="lazy"/>
<span class="name">
<span class="pokedex-number">348</span>
Togedemaru
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/snom/" title="View Snom on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/872.png" alt="Snom" loading="lazy"/>
<span class="name">
<span class="pokedex-number">349</span>
Snom
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/frosmoth/" title="View Frosmoth on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/873.png" alt="Frosmoth" loading="lazy"/>
<span class="name">
<span class="pokedex-number">350</span>
Frosmoth
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/clobbopus/" title="View Clobbopus on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/852.png" alt="Clobbopus" loading="lazy"/>
<span class="name">
<span class="pokedex-number">351</span>
Clobbopus
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/grapploct/" title="View Grapploct on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/853.png" alt="Grapploct" loading="lazy"/>
<span class="name">
<span class="pokedex-number">352</span>
Grapploct
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/pincurchin/" title="View Pincurchin on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/871.png" alt="Pincurchin" loading="lazy"/>
<span class="name">
<span class="pokedex-number">353</span>
Pincurchin
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/mantyke/" title="View Mantyke on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/458.png" alt="Mantyke" loading="lazy"/>
<span class="name">
<span class="pokedex-number">354</span>
Mantyke
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/mantine/" title="View Mantine on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/226.png" alt="Mantine" loading="lazy"/>
<span class="name">
<span class="pokedex-number">355</span>
Mantine
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/wailmer/" title="View Wailmer on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/320.png" alt="Wailmer" loading="lazy"/>
<span class="name">
<span class="pokedex-number">356</span>
Wailmer
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/wailord/" title="View Wailord on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/321.png" alt="Wailord" loading="lazy"/>
<span class="name">
<span class="pokedex-number">357</span>
Wailord
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/bergmite/" title="View Bergmite on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/712.png" alt="Bergmite" loading="lazy"/>
<span class="name">
<span class="pokedex-number">358</span>
Bergmite
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/avalugg/" title="View Avalugg on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/713.png" alt="Avalugg" loading="lazy"/>
<span class="name">
<span class="pokedex-number">359</span>
Avalugg
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/dhelmise/" title="View Dhelmise on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/781.png" alt="Dhelmise" loading="lazy"/>
<span class="name">
<span class="pokedex-number">360</span>
Dhelmise
</span>
</a>
</div>
</div>
</section>
<section class="box">
<h2>361 - 390</h2>
<div class="contents">
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/lapras/" title="View Lapras on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/131.png" alt="Lapras" loading="lazy"/>
<span class="name">
<span class="pokedex-number">361</span>
Lapras
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/lunatone/" title="View Lunatone on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/337.png" alt="Lunatone" loading="lazy"/>
<span class="name">
<span class="pokedex-number">362</span>
Lunatone
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/solrock/" title="View Solrock on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/338.png" alt="Solrock" loading="lazy"/>
<span class="name">
<span class="pokedex-number">363</span>
Solrock
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/mimejr./" title="View Mime Jr. on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/439.png" alt="Mime Jr." loading="lazy"/>
<span class="name">
<span class="pokedex-number">364</span>
Mime Jr.
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/mr.mime/" title="View Mr. Mime on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/122.png" alt="Mr. Mime" loading="lazy"/>
<span class="name">
<span class="pokedex-number">365</span>
Mr. Mime
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/mr.rime/" title="View Mr. Rime on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/866.png" alt="Mr. Rime" loading="lazy"/>
<span class="name">
<span class="pokedex-number">366</span>
Mr. Rime
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/darumaka/" title="View Darumaka on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/554.png" alt="Darumaka" loading="lazy"/>
<span class="name">
<span class="pokedex-number">367</span>
Darumaka
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/darmanitan/" title="View Darmanitan on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/555.png" alt="Darmanitan" loading="lazy"/>
<span class="name">
<span class="pokedex-number">368</span>
Darmanitan
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/stonjourner/" title="View Stonjourner on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/874.png" alt="Stonjourner" loading="lazy"/>
<span class="name">
<span class="pokedex-number">369</span>
Stonjourner
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/eiscue/" title="View Eiscue on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/875.png" alt="Eiscue" loading="lazy"/>
<span class="name">
<span class="pokedex-number">370</span>
Eiscue
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/duraludon/" title="View Duraludon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/884.png" alt="Duraludon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">371</span>
Duraludon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/rotom/" title="View Rotom on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/479.png" alt="Rotom" loading="lazy"/>
<span class="name">
<span class="pokedex-number">372</span>
Rotom
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/ditto/" title="View Ditto on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/132.png" alt="Ditto" loading="lazy"/>
<span class="name">
<span class="pokedex-number">373</span>
Ditto
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/dracozolt/" title="View Dracozolt on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/880.png" alt="Dracozolt" loading="lazy"/>
<span class="name">
<span class="pokedex-number">374</span>
Dracozolt
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/arctozolt/" title="View Arctozolt on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/881.png" alt="Arctozolt" loading="lazy"/>
<span class="name">
<span class="pokedex-number">375</span>
Arctozolt
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/dracovish/" title="View Dracovish on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/882.png" alt="Dracovish" loading="lazy"/>
<span class="name">
<span class="pokedex-number">376</span>
Dracovish
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/arctovish/" title="View Arctovish on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/883.png" alt="Arctovish" loading="lazy"/>
<span class="name">
<span class="pokedex-number">377</span>
Arctovish
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/charmander/" title="View Charmander on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/004.png" alt="Charmander" loading="lazy"/>
<span class="name">
<span class="pokedex-number">378</span>
Charmander
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/charmeleon/" title="View Charmeleon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/005.png" alt="Charmeleon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">379</span>
Charmeleon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/charizard/" title="View Charizard on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/006.png" alt="Charizard" loading="lazy"/>
<span class="name">
<span class="pokedex-number">380</span>
Charizard
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/type:null/" title="View Type: Null on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/772.png" alt="Type: Null" loading="lazy"/>
<span class="name">
<span class="pokedex-number">381</span>
Type: Null
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/silvally/" title="View Silvally on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/773.png" alt="Silvally" loading="lazy"/>
<span class="name">
<span class="pokedex-number">382</span>
Silvally
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/larvitar/" title="View Larvitar on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/246.png" alt="Larvitar" loading="lazy"/>
<span class="name">
<span class="pokedex-number">383</span>
Larvitar
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/pupitar/" title="View Pupitar on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/247.png" alt="Pupitar" loading="lazy"/>
<span class="name">
<span class="pokedex-number">384</span>
Pupitar
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/tyranitar/" title="View Tyranitar on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/248.png" alt="Tyranitar" loading="lazy"/>
<span class="name">
<span class="pokedex-number">385</span>
Tyranitar
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/deino/" title="View Deino on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/633.png" alt="Deino" loading="lazy"/>
<span class="name">
<span class="pokedex-number">386</span>
Deino
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/zweilous/" title="View Zweilous on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/634.png" alt="Zweilous" loading="lazy"/>
<span class="name">
<span class="pokedex-number">387</span>
Zweilous
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/hydreigon/" title="View Hydreigon on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/635.png" alt="Hydreigon" loading="lazy"/>
<span class="name">
<span class="pokedex-number">388</span>
Hydreigon
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/goomy/" title="View Goomy on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/704.png" alt="Goomy" loading="lazy"/>
<span class="name">
<span class="pokedex-number">389</span>
Goomy
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/sliggoo/" title="View Sliggoo on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/705.png" alt="Sliggoo" loading="lazy"/>
<span class="name">
<span class="pokedex-number">390</span>
Sliggoo
</span>
</a>
</div>
</div>
</section>
<section class="box">
<h2>391 - 400</h2>
<div class="contents">
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/goodra/" title="View Goodra on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/706.png" alt="Goodra" loading="lazy"/>
<span class="name">
<span class="pokedex-number">391</span>
Goodra
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/jangmo-o/" title="View Jangmo-o on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/782.png" alt="Jangmo-o" loading="lazy"/>
<span class="name">
<span class="pokedex-number">392</span>
Jangmo-o
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/hakamo-o/" title="View Hakamo-o on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/783.png" alt="Hakamo-o" loading="lazy"/>
<span class="name">
<span class="pokedex-number">393</span>
Hakamo-o
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/kommo-o/" title="View Kommo-o on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/784.png" alt="Kommo-o" loading="lazy"/>
<span class="name">
<span class="pokedex-number">394</span>
Kommo-o
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/dreepy/" title="View Dreepy on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/885.png" alt="Dreepy" loading="lazy"/>
<span class="name">
<span class="pokedex-number">395</span>
Dreepy
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/drakloak/" title="View Drakloak on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/886.png" alt="Drakloak" loading="lazy"/>
<span class="name">
<span class="pokedex-number">396</span>
Drakloak
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/dragapult/" title="View Dragapult on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/887.png" alt="Dragapult" loading="lazy"/>
<span class="name">
<span class="pokedex-number">397</span>
Dragapult
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/zacian/" title="View Zacian on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/888.png" alt="Zacian" loading="lazy"/>
<span class="name">
<span class="pokedex-number">398</span>
Zacian
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/zamazenta/" title="View Zamazenta on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/889.png" alt="Zamazenta" loading="lazy"/>
<span class="name">
<span class="pokedex-number">399</span>
Zamazenta
</span>
</a>
</div>
<div class="monster">
<a href="https://www.serebii.net/pokedex-swsh/eternatus/" title="View Eternatus on Serebii" rel="noopener">
<img src="https://www.serebii.net/swordshield/pokemon/small/890.png" alt="Eternatus" loading="lazy"/>
<span class="name">
<span class="pokedex-number">400</span>
Eternatus
</span>
</a>
</div>
</div>
</section>
</section>
<a href="https://github.com/timoschinkel/living-pokedex-templates" class="github-corner" rel="noopener" aria-label="View the source of this page at Github">
<svg width="80" height="80" viewBox="0 0 250 250" style="position: absolute; top: 0; border: 0; right: 0;" alt="Github logo">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path
d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
fill="white" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path
d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
fill="white" class="octo-body"></path>
</svg>
</a>
</body>
</html> | 52.625332 | 545 | 0.422937 |
9695d98617097ceb8a22fc41a2d0077245cdc8f6 | 2,078 | html | HTML | resources/corpora/entity_recognition/jnlpba/anndoc/98241397.html | ashishbaghudana/mthesis-ashish | 55f969266ca3df1aa1e28b9078c0c21f7e0ea002 | [
"MIT"
] | null | null | null | resources/corpora/entity_recognition/jnlpba/anndoc/98241397.html | ashishbaghudana/mthesis-ashish | 55f969266ca3df1aa1e28b9078c0c21f7e0ea002 | [
"MIT"
] | 10 | 2015-09-18T11:45:40.000Z | 2015-10-29T18:16:41.000Z | resources/corpora/entity_recognition/jnlpba/anndoc/98241397.html | ashishbaghudana/mthesis-ashish | 55f969266ca3df1aa1e28b9078c0c21f7e0ea002 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html id="1c5948f928f94549984db5a0f3f8f3b2:98241397" data-origid="98241397" class="anndoc" data-anndoc-version="2.0" lang="" xml:lang="" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8"/>
<meta name="generator" content="org.rostlab.relna"/>
<title>1c5948f928f94549984db5a0f3f8f3b2:98241397</title>
</head>
<body>
<article>
<section data-type="title">
<h2 id="s1h1">Activation of Stat-3 is involved in the induction of apoptosis after ligation of major histocompatibility complex class I molecules on human Jurkat T cells.</h2>
</section>
<section data-type="abstract">
<h3 id="s2h1">Abstract</h3>
<div class="content">
<p id = "s2p1">Activation of Janus tyrosine kinases (Jak) and Signal transducers and activators of transcription (Stat) after ligation of major histocompatibility complex class I (MHC-I) was explored in Jurkat T cells. Cross-linking of MHC-I mediated tyrosine phosphorylation of Tyk2, but not Jak1, Jak2, and Jak3. In addition, the transcription factor Stat-3 was tyrosine phosphorylated in the cytoplasm and subsequently translocated to the cell nucleus. Data obtained by electrophoretic mobility shift assay suggested that the activated Stat-3 protein associates with the human serum-inducible element (hSIE) DNA-probe derived from the interferon-gamma activated site (GAS) in the c-fos promoter, a common DNA sequence for Stat protein binding. An association between hSIE and Stat-3 after MHC-I ligation was directly demonstrated by precipitating Stat-3 from nuclear extracts with biotinylated hSIE probe and avidin -coupled agarose. To investigate the function of the activated Stat-3, Jurkat T cells were transiently transfected with a Stat-3 isoform lacking the transactivating domain. This dominant-negative acting Stat-3 isoform significantly inhibited apoptosis induced by ligation of MHC-I. In conclusion, our data suggest the involvement of the Jak/Stat signal pathway in MHC-I -induced signal transduction in T cells.</p>
</div>
</section>
</article>
</body>
</html> | 98.952381 | 1,338 | 0.773821 |
724a6b927f43a66df8dfaca1f33406264ee1fa6d | 2,324 | rs | Rust | src/libstd/sys/redox/syscall/arch/x86.rs | ofek/rust | b16c7a235fa0f57fed6b7ec13ffd3cff1bcdd9ad | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 88 | 2016-08-19T02:43:33.000Z | 2022-03-27T01:10:27.000Z | src/libstd/sys/redox/syscall/arch/x86.rs | ofek/rust | b16c7a235fa0f57fed6b7ec13ffd3cff1bcdd9ad | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 47 | 2016-06-20T23:06:11.000Z | 2021-09-03T21:58:58.000Z | src/libstd/sys/redox/syscall/arch/x86.rs | ofek/rust | b16c7a235fa0f57fed6b7ec13ffd3cff1bcdd9ad | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 17 | 2016-06-20T23:14:08.000Z | 2021-12-25T17:07:14.000Z | // Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use super::error::{Error, Result};
pub unsafe fn syscall0(mut a: usize) -> Result<usize> {
asm!("int 0x80"
: "={eax}"(a)
: "{eax}"(a)
: "memory"
: "intel", "volatile");
Error::demux(a)
}
pub unsafe fn syscall1(mut a: usize, b: usize) -> Result<usize> {
asm!("int 0x80"
: "={eax}"(a)
: "{eax}"(a), "{ebx}"(b)
: "memory"
: "intel", "volatile");
Error::demux(a)
}
// Clobbers all registers - special for clone
pub unsafe fn syscall1_clobber(mut a: usize, b: usize) -> Result<usize> {
asm!("int 0x80"
: "={eax}"(a)
: "{eax}"(a), "{ebx}"(b)
: "memory", "ebx", "ecx", "edx", "esi", "edi"
: "intel", "volatile");
Error::demux(a)
}
pub unsafe fn syscall2(mut a: usize, b: usize, c: usize) -> Result<usize> {
asm!("int 0x80"
: "={eax}"(a)
: "{eax}"(a), "{ebx}"(b), "{ecx}"(c)
: "memory"
: "intel", "volatile");
Error::demux(a)
}
pub unsafe fn syscall3(mut a: usize, b: usize, c: usize, d: usize) -> Result<usize> {
asm!("int 0x80"
: "={eax}"(a)
: "{eax}"(a), "{ebx}"(b), "{ecx}"(c), "{edx}"(d)
: "memory"
: "intel", "volatile");
Error::demux(a)
}
pub unsafe fn syscall4(mut a: usize, b: usize, c: usize, d: usize, e: usize) -> Result<usize> {
asm!("int 0x80"
: "={eax}"(a)
: "{eax}"(a), "{ebx}"(b), "{ecx}"(c), "{edx}"(d), "{esi}"(e)
: "memory"
: "intel", "volatile");
Error::demux(a)
}
pub unsafe fn syscall5(mut a: usize, b: usize, c: usize, d: usize, e: usize, f: usize)
-> Result<usize> {
asm!("int 0x80"
: "={eax}"(a)
: "{eax}"(a), "{ebx}"(b), "{ecx}"(c), "{edx}"(d), "{esi}"(e), "{edi}"(f)
: "memory"
: "intel", "volatile");
Error::demux(a)
}
| 27.666667 | 95 | 0.515921 |
5cd21cb12b99d7cc8d203273c021d62f769d241e | 602 | css | CSS | app/assets/stylesheets/simple_sidebar/application/core.css | robotex82/simple_sidebar | dca2a3b36dd9048a5fe854a85bfc2d8360af7966 | [
"MIT"
] | null | null | null | app/assets/stylesheets/simple_sidebar/application/core.css | robotex82/simple_sidebar | dca2a3b36dd9048a5fe854a85bfc2d8360af7966 | [
"MIT"
] | null | null | null | app/assets/stylesheets/simple_sidebar/application/core.css | robotex82/simple_sidebar | dca2a3b36dd9048a5fe854a85bfc2d8360af7966 | [
"MIT"
] | null | null | null | .sidebar, [data-sidebar-position] {
position: fixed;
display: none;
z-index: 3000;
}
.sidebar {}
.sidebar-push {}
.sidebar-overlay {}
.sidebar-modal {}
.sidebar-closed {}
.sidebar-opened {}
.sidebar-left {
height: 100%;
top: 0;
overflow-y: auto;
}
.sidebar-right {
height: 100%;
top: 0;
overflow-y: auto;
}
.sidebar-top {
width: 100%;
left: 0;
}
.sidebar-bottom {
width: 100%;
left: 0;
}
#main-content {}
#sidebar-modal-background {
display: none;
position: fixed;
z-index: 2000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.4);
}
| 13.086957 | 35 | 0.607973 |
668aa73e0af7ca8e3c5e9654d102ee4eef7c33ad | 4,023 | swift | Swift | MSearch/ViewModel/MovieCollectionViewModel.swift | SoaurabhK/MSearch | bf7c10d4c2adac154de61598f93bf7be15d41c0b | [
"MIT"
] | null | null | null | MSearch/ViewModel/MovieCollectionViewModel.swift | SoaurabhK/MSearch | bf7c10d4c2adac154de61598f93bf7be15d41c0b | [
"MIT"
] | null | null | null | MSearch/ViewModel/MovieCollectionViewModel.swift | SoaurabhK/MSearch | bf7c10d4c2adac154de61598f93bf7be15d41c0b | [
"MIT"
] | null | null | null | //
// MovieCollectionViewModel.swift
// MSearch
//
// Created by Soaurabh Kakkar on 11/01/21.
//
import Foundation
import UIKit.UIImage
/// State describes current state of the view
enum State {
case loading
case paging([Movie], query: String, next: Int)
case populated([Movie])
case empty(String)
case error(Error)
var currentMovies: [Movie] {
switch self {
case .paging(let movies, _, _):
return movies
case .populated(let movies):
return movies
case .loading, .empty, .error:
return []
}
}
}
/// MovieCollectionViewModel holds presentation logic for the corresponding viewcontroller
class MovieCollectionViewModel: NSObject {
weak var coordinatorDelegate: AddToPlaylistCoordinatorDelegate?
private let movieModel: MovieModel
let mode: Dynamic<Mode>
let state: Dynamic<State>
init(model: MovieModel, state: Dynamic<State>, mode: Dynamic<Mode>) {
self.movieModel = model
self.state = state
self.mode = mode
}
// MARK: Fetch Movies
func searchMovies(for query: String, page: Int) {
if page == 1 {
state.value = .loading
}
movieModel.seachMovies(for: query, page: page) { [weak self] (searchResponse) in
guard let self = self else { return }
DispatchQueue.main.async {
self.update(response: searchResponse, query: query, page: page)
}
}
}
func image(for movie: Movie,
completion: @escaping (Result<UIImage, Error>) -> Void) {
movieModel.getImage(for: movie.imageURL) { (imageResult) in
DispatchQueue.main.async {
completion(imageResult)
}
}
}
private func update(response: Result<SearchResponse, Error>, query: String, page: Int) {
switch response {
case let .success(searchResponse):
switch searchResponse {
case let .success(searchResult):
var allMovies = state.value.currentMovies
allMovies.append(contentsOf: searchResult.movies)
guard !allMovies.isEmpty else {
state.value = .empty(Constant.noResults)
return
}
if searchResult.totalPages > page {
state.value = .paging(allMovies, query: query, next: page + 1)
} else {
state.value = .populated(allMovies)
}
case .error(_):
// No or too many results found for a given query
state.value = .empty(Constant.noResults)
}
case let .failure(error):
state.value = .error(error)
}
}
// MARK: Add to Playlist
func add(_ selectedRows: [Int]) {
mode.value = .view
let selectedMovies = selectedRows.map{ state.value.currentMovies[$0] }
// Delegate add to playlist behaviour to relevant coordinator
coordinatorDelegate?.add(movies: selectedMovies)
}
func toastMessage(for selectedRows: [Int]) -> String {
guard !selectedRows.isEmpty else { return String() }
let count = selectedRows.count
let message = "\(count) movie\(count > 1 ? "s" : "") added to playlist!"
return message
}
func toggleMode() {
mode.value = mode.value == .view ? .select : .view
}
}
// MARK:- CollectionView Data
extension MovieCollectionViewModel {
var numberOfItems: Int {
return state.value.currentMovies.count
}
func itemAtIndex(_ index: Int) -> Movie {
return state.value.currentMovies[index]
}
func formattedTextForIndex(_ index: Int) -> String {
let movie = self.itemAtIndex(index)
return movie.year + ", " + movie.title + "\n"
}
func firstIndex(of movie: Movie) -> Int? {
return state.value.currentMovies.firstIndex(of: movie)
}
}
| 30.477273 | 92 | 0.584887 |
2f1824ffc87707f4f6bbc6e288f23d61d7178010 | 886 | php | PHP | database/seeders/TaskTableSeeder.php | halim880/YourPortal | 171a799719607868c75f2ef35ebc3b4cd5c47270 | [
"MIT"
] | null | null | null | database/seeders/TaskTableSeeder.php | halim880/YourPortal | 171a799719607868c75f2ef35ebc3b4cd5c47270 | [
"MIT"
] | null | null | null | database/seeders/TaskTableSeeder.php | halim880/YourPortal | 171a799719607868c75f2ef35ebc3b4cd5c47270 | [
"MIT"
] | null | null | null | <?php
namespace Database\Seeders;
use App\Models\Client;
use App\Models\Task;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class TaskTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// DB::statement('set foreign_key_checks = 0');
// Task::truncate();
// DB::statement('set foreign_key_checks = 1');
// $client_id = Client::first()->user->id;
// Task::create([
// 'title'=>'This is the first title',
// 'description'=>'this is the first description',
// 'client_id'=> $client_id
// ]);
// Task::create([
// 'title'=>'This is the second title',
// 'description'=>'this is the second description',
// 'client_id'=> $client_id,
// ]);
}
}
| 25.314286 | 63 | 0.539503 |
a1f1ca6db45d2b2c9349af5ffea24abbfd0d661c | 2,933 | c | C | workspace/test-spp-master/app.c | oscartbeaumont/ev3rt-hrp3-sdk | cbd68666694e916d27881796fd504312437567ab | [
"Apache-2.0"
] | 1 | 2021-01-12T02:37:14.000Z | 2021-01-12T02:37:14.000Z | workspace/test-spp-master/app.c | oscartbeaumont/ev3rt-hrp3-sdk | cbd68666694e916d27881796fd504312437567ab | [
"Apache-2.0"
] | 1 | 2021-01-14T13:07:46.000Z | 2021-01-27T01:03:02.000Z | workspace/test-spp-master/app.c | oscartbeaumont/ev3rt-hrp3-sdk | cbd68666694e916d27881796fd504312437567ab | [
"Apache-2.0"
] | 3 | 2019-06-05T09:55:02.000Z | 2020-04-11T14:16:20.000Z | #include "ev3api.h"
#include "app.h"
#include <unistd.h>
#include <ctype.h>
#include <string.h>
int32_t default_menu_font_width;
int32_t default_menu_font_height;
uint8_t remote_addr[6] = {0x00, 0x18, 0x2f, 0xfc, 0x13, 0xdc};
const char* remote_pincode = "1234";
static FILE *bt_slave;
void bluetooth_task(intptr_t unused) {
// Draw name
int offset_x = 0, offset_y = MENU_FONT_HEIGHT * 2;
ev3_lcd_draw_string("Remote Port 2: 0", offset_x, offset_y + MENU_FONT_HEIGHT * 0);
static char buf[256];
while (1) {
if (fgets(buf, 256, bt_slave)) {
if (strncmp("SENSOR", buf, strlen("SENSOR")) == 0) { // Touch sensor value received
int value;
if (sscanf(buf, "SENSOR %d", &value) == 1) {
ev3_lcd_draw_string(value ? "1" : "0",
offset_x + strlen("Remote Port 2: ") * MENU_FONT_WIDTH,
offset_y + MENU_FONT_HEIGHT * 0);
} else assert(false);
} else assert(false);
} else dly_tsk(10);
}
}
void main_task(intptr_t unused) {
ev3_lcd_set_font(MENU_FONT);
ev3_font_get_size(MENU_FONT, &default_menu_font_width, &default_menu_font_height);
// Clear menu area
ev3_lcd_fill_rect(0, 0, EV3_LCD_WIDTH, EV3_LCD_HEIGHT, EV3_LCD_WHITE);
// Draw title
const char *title = "BT SPP MASTER";
int offset_x = 0, offset_y = 0;
if (EV3_LCD_WIDTH - offset_x > strlen(title) * MENU_FONT_WIDTH)
offset_x += (EV3_LCD_WIDTH - offset_x - strlen(title) * MENU_FONT_WIDTH) / 2;
ev3_lcd_draw_string(title, offset_x, offset_y);
// Draw name
offset_x = 0;
offset_y += MENU_FONT_HEIGHT;
//ev3_lcd_draw_string("Connected: ", offset_x, offset_y + MENU_FONT_HEIGHT * 0);
ev3_lcd_draw_string("Remote Port A: 0", offset_x, offset_y + MENU_FONT_HEIGHT * 2);
// Draw status
bt_slave = ev3_serial_open_file(EV3_SERIAL_SPP_MASTER);
act_tsk(BT_TASK);
char lcdstr[100];
int power10 = 0;
while (1) {
// Connect to slave
ev3_lcd_draw_string("N", offset_x + strlen("Connected: ") * MENU_FONT_WIDTH, offset_y + MENU_FONT_HEIGHT * 0);
SVC_PERROR(ev3_spp_master_reset());
SVC_PERROR(ev3_spp_master_connect(remote_addr, remote_pincode, "Serial Port"));
while (!ev3_spp_master_is_connected()) {
dly_tsk(100U * 1000U);
}
ev3_lcd_draw_string("Y", offset_x + strlen("Connected: ") * MENU_FONT_WIDTH, offset_y + MENU_FONT_HEIGHT * 0);
// Control remote motor power
power10++;
if ((power10 % 100) == 0) {
sprintf(lcdstr, "%-3d", power10 / 10);
ev3_lcd_draw_string(lcdstr, offset_x + strlen("Remote Port A: ") * MENU_FONT_WIDTH,
offset_y + MENU_FONT_HEIGHT * 2);
fprintf(bt_slave, "MOTOR %d\n", power10 / 10);
if (power10 >= 1000) power10 = 0;
} else fprintf(bt_slave, "SENSOR\n"); // or request sensor data
dly_tsk(10);
}
}
| 34.916667 | 112 | 0.638936 |
2f1b035086a65691ebd9de7a9b90b8a0855c9886 | 1,782 | php | PHP | src/ApiPaymentBundle/Validation/Models/PaymentCreditCardModel.php | vzsMike82/API_test | 98e95377b971579722fb3b62908df79e1660c18d | [
"MIT"
] | null | null | null | src/ApiPaymentBundle/Validation/Models/PaymentCreditCardModel.php | vzsMike82/API_test | 98e95377b971579722fb3b62908df79e1660c18d | [
"MIT"
] | null | null | null | src/ApiPaymentBundle/Validation/Models/PaymentCreditCardModel.php | vzsMike82/API_test | 98e95377b971579722fb3b62908df79e1660c18d | [
"MIT"
] | null | null | null | <?php
namespace ApiPaymentBundle\Validation\Models;
use Symfony\Component\Validator\Constraints as Assert;
use \ApiPaymentBundle\Validation\ConstraintCollection as ModelAssert;
class PaymentCreditCardModel
{
/**
* @ModelAssert\ConstraintAlphanumeric(code="400", message="Invalid parameter \name\")
*/
protected $name;
/**
* @ModelAssert\ConstraintCardType(code="400", message="Invalid parameter \type\")
*/
protected $type;
/**
* @ModelAssert\ConstraintDate(code="400", message="Invalid parameter \expiry\ Format:Y-m-d")
*/
protected $expiry;
/**
* @ModelAssert\ConstraintAlphanumeric(code="400", message="Invalid parameter \cc\")
*/
protected $cc;
/**
* @ModelAssert\ConstraintAlphanumeric(code="400", message="Invalid parameter \ccv\")
*/
protected $ccv;
public function getName()
{
return $this->name;
}
public function getType()
{
return $this->type;
}
public function getExpiry()
{
return $this->expiry;
}
public function getCc()
{
return $this->cc;
}
public function getCcv()
{
return $this->ccv;
}
public function setName($name)
{
$this->name = $name;
return $this;
}
public function setType($type)
{
$this->type = $type;
return $this;
}
public function setExpiry($expiry)
{
$this->expiry = $expiry;
return $this;
}
public function setCc($cc)
{
$this->cc = $cc;
return $this;
}
public function setCcv($ccv)
{
$this->ccv = $ccv;
return $this;
}
}
| 18.757895 | 97 | 0.549383 |
46b1ec6ed32aaaa4a516dd5a801731f12cba060a | 242 | html | HTML | admintpl/404.html | roseyal/dzcms | 9d35deeb7f3d60b93b3e4340f0a3dd3653150fed | [
"Apache-2.0"
] | null | null | null | admintpl/404.html | roseyal/dzcms | 9d35deeb7f3d60b93b3e4340f0a3dd3653150fed | [
"Apache-2.0"
] | null | null | null | admintpl/404.html | roseyal/dzcms | 9d35deeb7f3d60b93b3e4340f0a3dd3653150fed | [
"Apache-2.0"
] | null | null | null |
<form action="{:url('News/imgq')}" method="post" id="form-admin-add" enctype="multipart/form-data">
<span >
<input type="file" multiple name="smallimage" class="input-file">
</span>
<input type="submit" value="我来许愿 +"/>
</form> | 30.25 | 101 | 0.636364 |
9d1f208751766d3783f7c4b28f81e2afbffc722b | 119,628 | html | HTML | output/singleCallsHTML/20190508_intra.html | the-pudding/earnings-call | 9c7f20c5930af03a9aa5764714b4f674c4fe3020 | [
"MIT"
] | 1 | 2019-07-25T01:56:20.000Z | 2019-07-25T01:56:20.000Z | output/singleCallsHTML/20190508_intra.html | the-pudding/earnings-call | 9c7f20c5930af03a9aa5764714b4f674c4fe3020 | [
"MIT"
] | 2 | 2020-09-06T05:17:23.000Z | 2021-05-07T23:07:00.000Z | output/singleCallsHTML/20190508_intra.html | the-pudding/earnings-call | 9c7f20c5930af03a9aa5764714b4f674c4fe3020 | [
"MIT"
] | 1 | 2019-07-02T15:24:03.000Z | 2019-07-02T15:24:03.000Z |
<!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
<head>
<script>
// usmf-django
window.top!=window&&(window.analytics=window.top.analytics,window.inIframe=!0);var segmentKey="16mdwrvy5p",segmentSnippetVersion="4.1.0",getSegmentUrl=function(t){var t=t||window.segmentKey;return("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js"},trackerMaker=function(t){var n=[];n.invoked=!1,n.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"],t&&(n.methods=n.methods.concat(t));var e=function(t){var e=function(){var e=Array.prototype.slice.call(arguments,0),o=[t].concat(e);n.push(o)};return e.stub=!0,e},o=function(){for(var t=0;t<n.methods.length;t++){var o=n.methods[t];n[o]=e(o)}},a=function(t){if(n.invoked)return void(window.console&&console.error&&console.error("Tracking snippet included twice."));var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=t;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(e,o),n.invoked=!0};return o(),n.load=a,n},analytics=window.analytics=window.analytics||trackerMaker(),Infotrack=window.Infotrack=window.Infotrack||trackerMaker(["initialize"]);
</script>
<meta name="infotrackSnippetVersion" content="3.1.0" data-tracker-key="infotrackSnippetVersion">
<meta name="description" content="ITCI earnings call for the period ending March 31, 2019." />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<meta name="twitter:site" content="@themotleyfool">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Intra-Cellular Therapies, Inc. (ITCI) Q1 2019 Earnings Call Transcript @themotleyfool #stocks $ITCI">
<meta name="twitter:description" content="ITCI earnings call for the period ending March 31, 2019.">
<meta itemprop="name" content="Intra-Cellular Therapies, Inc. (ITCI) Q1 2019 Earnings Call Transcript -- The Motley Fool">
<meta itemprop="description" content="ITCI earnings call for the period ending March 31, 2019.">
<meta property="og:site_name" content="The Motley Fool" />
<meta property="og:title" content="Intra-Cellular Therapies, Inc. (ITCI) Q1 2019 Earnings Call Transcript -- The Motley Fool"/>
<meta property="og:description" content="ITCI earnings call for the period ending March 31, 2019."/>
<meta property="og:url" content="https://www.fool.com/earnings/call-transcripts/2019/05/08/intra-cellular-therapies-inc-itci-q1-2019-earnings.aspx"/>
<meta name="twitter:image" content="https://g.foolcdn.com/editorial/images/524624/featured-transcript-logo.png"/>
<meta itemprop="image" content="https://g.foolcdn.com/editorial/images/524624/featured-transcript-logo.png">
<meta property="og:image" content="https://g.foolcdn.com/editorial/images/524624/featured-transcript-logo.png"/>
<meta property="og:type" content="article"/>
<meta property="fb:pages" content="7240312795" />
<meta property="fb:app_id" content="50808187550" />
<meta name="msvalidate.01" content="8D40D58712924715BAA79D135A6C8DDA" />
<meta name="ResponsiveALP" content="1Ses_3col-pf-246_var1_33" data-tracker-key="ResponsiveALP" />
<meta name="headline" content="Intra-Cellular Therapies, Inc. (ITCI) Q1 2019 Earnings Call Transcript" data-tracker-key="article_headline" />
<meta name="STORY_UID" content="3131d74f-9822-4fb5-81d6-18f351a0704d" data-tracker-key="article_uuid"/>
<meta name="author" content="Motley Fool Transcription" data-tracker-key="article_author" />
<meta name="date" content="2019-05-08T17:26:05Z"/>
<meta name="gsa_date" content="2019 05 08" data-tracker-key="article_publish_date"/>
<meta name="publish_time" content="13:26" data-tracker-key="article_publish_time" />
<meta name="promo" content="ITCI earnings call for the period ending March 31, 2019." />
<meta name="bureau" content="usmf-health-care" data-tracker-key="article_bureau" />
<meta name="tags" content="MSN,Yahoo,Default Partners" data-tracker-key="article_tags" />
<meta name="pitch" content="6115" />
<meta name="tickers" content="ITCI" data-tracker-key="article_tickers" />
<meta name="article_type" content="article" data-tracker-key="article_type" />
<meta name="collection" content="earningscall-transcripts" data-tracker-key="collection" />
<meta property="article:published_time" content="2019-05-08T13:26:05-04:00" />
<meta property="article:author" content="https://www.facebook.com/themotleyfool/" />
<meta property="article:tag" content="usmf-health-care" />
<meta property="article:section" content="earnings" />
<title>
Intra-Cellular Therapies, Inc. (ITCI) Q1 2019 Earnings Call Transcript -- The Motley Fool
</title>
<link rel="shortcut icon" href="https://g.foolcdn.com/misc-assets/favicon.ico">
<link rel="apple-touch-icon" href="https://g.foolcdn.com/misc-assets/apple-touch-icon.png">
<link rel="canonical" href="https://www.fool.com/earnings/call-transcripts/2019/05/08/intra-cellular-therapies-inc-itci-q1-2019-earnings.aspx" />
<link rel="amphtml" href="https://www.fool.com/amp/earnings/call-transcripts/2019/05/08/intra-cellular-therapies-inc-itci-q1-2019-earnings.aspx">
<link rel="stylesheet" href="//g.foolcdn.com/static/dubs/CACHE/css/a6ebb8e736f9.css" type="text/css" />
<link rel="stylesheet" href="//g.foolcdn.com/static/dubs/CACHE/css/526fbe3e41d5.css" type="text/css" />
<script type="text/javascript" src="//g.foolcdn.com/static/dubs/www/js/vendor/jquery-3.3.1.min.a09e13ee94d5.js"></script>
<script async type="text/javascript" src="//g.foolcdn.com/static/dubs/common/js/vendor/prebid1.24.1.a7115cca20e9.js"></script>
<script>
var prebidFool = {
timeout: 1000
};
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
pbjs.que.push(function() {
var price_bucket = {
'buckets': [
{
'precision': 2,
'min': 0,
'max': 20,
'increment': 0.01,
},
{
'precision': 2,
'min': 20,
'max': 30,
'increment': 0.05,
},
{
'precision': 2,
'min': 30,
'max': 40,
'increment': 0.10,
},
{
'precision': 2,
'min': 40,
'max': 50,
'increment': 0.50,
},
{
'precision': 2,
'min': 50,
'max': 99,
'increment': 1.00,
},
]
};
pbjs.setConfig({
debug: false,
bidderTimeout: 1000,
priceGranularity: price_bucket,
enableSendAllBids: true
});
});
</script>
<script async="async" src="https://www.googletagservices.com/tag/js/gpt.js"></script>
<script type="text/javascript">
window.googletag = window.googletag || {};
var googletag = window.googletag;
googletag.cmd = googletag.cmd || [];
window.slots = window.slots || {};
window.adCount = 0;
</script>
<script type="text/javascript" src="//g.foolcdn.com/static/dubs/common/js/fool/fool_ads.edeb6fe2dff5.js"></script>
<script type='text/javascript'>
googletag.cmd.push(function() {
if (typeof(Krux) !== "undefined") {
googletag.pubads().setTargeting("ksg", Krux.segments);
googletag.pubads().setTargeting("kuid", Krux.user);
}
googletag.pubads().setTargeting('ArticleNum', 'article-' + window.article_count_id);
googletag.pubads().setTargeting('bureau', 'usmf-health-care');
googletag.pubads().setTargeting('collection', '/earnings/call-transcripts');
googletag.pubads().setTargeting('headline', 'intracellular therapies inc itci q1 2019 earnings call transcript');
googletag.pubads().setTargeting('adtags', ["msn", "yahoo-money", "default-partners"]);
googletag.pubads().setTargeting('test_bucket', '82');
googletag.pubads().setTargeting('tickers', [""]);
googletag.pubads().setTargeting('suppress_modal', 'False');
googletag.pubads().setTargeting('sessionCount', '0')
googletag.pubads().setTargeting('tenOrMoreSessions', 'False')
googletag.pubads().setTargeting('services', [])
googletag.pubads().setTargeting('uid', '');
googletag.pubads().setTargeting('page_type', 'Non-TSTR-PAGE');
});
</script>
<script type='text/javascript'>
var hbBiddersParams = {"header_desk_sticky": {"criteo": {"zoneId": "1088147"}, "openx": {"delDomain": "motleyfool-d.openx.net", "unit": "539313278"}, "appnexus": {"placementId": "12389966"}}};
//if there are bids -> push them
if(hbBiddersParams) {
var params = [];
hbBiddersParams = hbBiddersParams['header_desk_sticky'];
//push each bidder settings
for (var bidder in hbBiddersParams) {
if (!hbBiddersParams.hasOwnProperty(bidder)) continue;
params.push({
bidder: bidder,
params: hbBiddersParams[bidder]
})
}
adUnits = window.adUnits || [];
adUnits.push({
code: 'div-header_desk_sticky-154',
mediaTypes: {
banner: {
sizes: [[728, 90], [970, 90]]
}
},
bids: params
});
}
googletag.cmd.push(function() {
slots['div-header_desk_sticky-154'] = googletag.defineSlot('/3910/earnings/header_desk_sticky', [[728, 90], [970, 90]], 'div-header_desk_sticky-154')
.addService(googletag.pubads())
.setTargeting('pos', adCount)
.setTargeting('placement', 'header_desk_sticky')
.setTargeting('ArticleNum', 'article-' + window.article_count_id)
.setCollapseEmptyDiv(true);
});
</script>
<script type='text/javascript'>
googletag.cmd.push(function() {
slots['div-l_sidebar_sticky-7680'] = googletag.defineSlot('/3910/earnings/l_sidebar_sticky', [[300, 250], [300, 600]], 'div-l_sidebar_sticky-7680')
.addService(googletag.pubads())
.setTargeting('pos', adCount)
.setTargeting('placement', 'l_sidebar_sticky')
.setTargeting('ArticleNum', 'article-' + window.article_count_id)
.setCollapseEmptyDiv(true);
});
</script>
<script type='text/javascript'>
var hbBiddersParams = {"sidebar1_desk": {"criteo": {"zoneId": "1088163"}, "openx": {"delDomain": "motleyfool-d.openx.net", "unit": "539313287"}, "appnexus": {"placementId": "12389989"}}};
//if there are bids -> push them
if(hbBiddersParams) {
var params = [];
hbBiddersParams = hbBiddersParams['sidebar1_desk'];
//push each bidder settings
for (var bidder in hbBiddersParams) {
if (!hbBiddersParams.hasOwnProperty(bidder)) continue;
params.push({
bidder: bidder,
params: hbBiddersParams[bidder]
})
}
adUnits = window.adUnits || [];
adUnits.push({
code: 'div-sidebar1_desk-67719',
mediaTypes: {
banner: {
sizes: [[300, 250], [300, 600]]
}
},
bids: params
});
}
googletag.cmd.push(function() {
slots['div-sidebar1_desk-67719'] = googletag.defineSlot('/3910/earnings/sidebar1_desk', [[300, 250], [300, 600]], 'div-sidebar1_desk-67719')
.addService(googletag.pubads())
.setTargeting('pos', adCount)
.setTargeting('placement', 'sidebar1_desk')
.setTargeting('ArticleNum', 'article-' + window.article_count_id)
.setCollapseEmptyDiv(true);
});
</script>
<script type='text/javascript'>
var hbBiddersParams = {"sidebar2_desk": {"criteo": {"zoneId": "1088164"}, "openx": {"delDomain": "motleyfool-d.openx.net", "unit": "539313288"}, "appnexus": {"placementId": "12389990"}}};
//if there are bids -> push them
if(hbBiddersParams) {
var params = [];
hbBiddersParams = hbBiddersParams['sidebar2_desk'];
//push each bidder settings
for (var bidder in hbBiddersParams) {
if (!hbBiddersParams.hasOwnProperty(bidder)) continue;
params.push({
bidder: bidder,
params: hbBiddersParams[bidder]
})
}
adUnits = window.adUnits || [];
adUnits.push({
code: 'div-sidebar2_desk-55359',
mediaTypes: {
banner: {
sizes: [[300, 250], [300, 600]]
}
},
bids: params
});
}
googletag.cmd.push(function() {
slots['div-sidebar2_desk-55359'] = googletag.defineSlot('/3910/earnings/sidebar2_desk', [[300, 250], [300, 600]], 'div-sidebar2_desk-55359')
.addService(googletag.pubads())
.setTargeting('pos', adCount)
.setTargeting('placement', 'sidebar2_desk')
.setTargeting('ArticleNum', 'article-' + window.article_count_id)
.setCollapseEmptyDiv(true);
});
</script>
<script type="text/javascript">
window.settings = window.settings || {};
window.settings.kruxOn = false;
window.settings.kruxOn = true;
</script>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://www.fool.com"
},
"headline": "Intra-Cellular Therapies, Inc. (ITCI) Q1 2019 Earnings Call Transcript",
"datePublished": "2019-05-08T17:26:05Z",
"dateModified": "2019-05-08T17:26:05Z",
"author": {
"@type": "Person",
"name": "Motley Fool Transcription"
},
"about":[
{
"@type": "Corporation",
"tickerSymbol": "NASDAQ ITCI"
}
],
"publisher": {
"@type": "Organization",
"name": "The Motley Fool",
"logo": {
"@type": "ImageObject",
"url": "https://g.foolcdn.com/assets/images/fool/tmf-logo.png",
"width": 311,
"height": 56
}
},
"description": "ITCI earnings call for the period ending March 31, 2019.",
"image": {
"@type": "ImageObject",
"url": "https://g.foolcdn.com/image/?url=https%3A%2F%2Fg.foolcdn.com%2Feditorial%2Fimages%2F524624%2Ffeatured-transcript-logo.png&h=630&w=1200&op=resize",
"height": 630,
"width": 1200
}
}
</script>
<script type="text/javascript" src="//g.foolcdn.com/static/dubs/common/js/fool/fool_perf.642cd74dcc3c.js"></script>
</head>
<body class="fool ">
<div class="main-container">
<div class="fool-tophat-container">
<div id="tmf-top-hat"></div>
</div>
<div class="page-grid-container">
<section class="usmf-article-nav">
<header class="navigation" role="banner">
<div class="navigation-wrapper">
<a href="https://www.fool.com" class="logo">
<img class="fool-logo" alt="The Motley Fool" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUYAAAA3AQMAAABKEHFjAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABhJREFUeNrtwQEBAAAAgiD/r25IQAEAPBoJBgABTFdNBwAAAABJRU5ErkJggg==">
</a>
<!--Desktop Nav Menu-->
<nav>
<ul class="nav-menu main-menu">
<li class="nav-item main-menu-item">
<a id="topnav-picks" href="https://www.fool.com/mms/mark/d-nav-btn" class="nav-link-stock-picks">
Latest Stock Picks
</a>
</li>
<!--Stocks and Services-->
<li class="nav-item main-menu-item dropdown">
<a id="topnav-stocks" href="javascript:void(0)">
Stocks
<svg class="fa-svg-icon"><use xlink:href="#caret-down"></use></svg>
</a>
<div class="sub-nav sub-menu">
<div class="mega-menu-wrapper">
<div class="mega-menu-wrapper-content sub-nav">
<div class="columns" id="stocks-subnav">
<div class="column promo-box-column">
<div class="sub-menu-header">Premium Services</div>
<div class="stocks-info-table sub-nav-group">
<div class="stocks-info-item head">
<div class="td name"></div>
<div class="td">Return</div>
<div class="td">S&P</div>
</div>
<div class="stocks-info-item">
<div class="td name">
<a id="stocks-sa" href="">Stock Advisor</a>
<small>Flagship service</small>
</div>
<div class="td return">372%</div>
<div class="td">88%</div>
</div>
<div class="stocks-info-item">
<div class="td name">
<a id="stocks-rb" href="">Rule Breakers</a>
<small>High-growth stocks</small>
</div>
<div class="td return">165%</div>
<div class="td">74%</div>
</div>
<p align="center"><small><em>Returns as of 7/1/2019</em></small></p>
<div class="stocks-info-item">
<div class="td name">
<center>
<a id="stocks-all-services" href="https://www.fool.com/services/">View all Motley Fool Services</a>
</center>
</div>
</div>
</div>
</div>
<div class="column">
<ul class="sub-nav-group">
<div class="sub-menu-header">Stock Market News</div>
<li class="sub-menu-link">
<a id="stocks-news" href="https://www.fool.com/investing-news/">Latest Investing News</a>
</li>
<li class="sub-menu-link">
<a id="stocks-movers" href="https://www.fool.com/market-movers/">Gainers & Losers in the Market Today</a>
</li>
<li class="sub-menu-link">
<a id="stocks-top-div" href="https://www.fool.com/investing/2019/04/10/3-top-dividend-stocks-with-yields-over-5.aspx">3 Top Dividend Stocks to Buy Now</a>
</li>
<li class="sub-menu-link">
<a id="stocks-begin-div" href="https://www.fool.com/how-to-invest/dividend-investing-for-beginners.aspx">Dividend Paying Stocks for Beginners</a>
</li>
<li class="sub-menu-link">
<a id="stocks-top-growth" href="https://www.fool.com/investing/2019/04/03/top-stocks-to-buy.aspx">Top Growth Stocks for 2019</a>
</li>
<li class="sub-menu-link">
<a id="stocks-high-growth" href="https://www.fool.com/investing/principles-of-growth-investing.aspx">How to Identify Growth Stocks</a>
</li>
<li class="sub-menu-link">
<a id="stocks-maryjane" href="https://www.fool.com/marijuana-stocks/">Marijuana Stocks</a>
</li>
<li class="sub-menu-link">
<a id="stocks-transcripts" href="https://www.fool.com/earnings-call-transcripts/">Earnings Call Transcripts</a>
</li>
<li class="sub-menu-link">
<a id="stocks-10best-free-report" href="https://www.fool.com/mms/mark/op-sa-bbn-eg/?source=isasittn0010001">
10 Best Stocks Right Now
<svg class="fa-svg-icon icon-dollar"><use xlink:href="#dollar-sign-light"></use></svg>
</a>
</li>
</ul>
</div>
<div class="column">
<ul class="sub-nav-group">
<div class="sub-menu-header">Popular Stocks</div>
<li class="sub-menu-link">
<a id="stocks-aapl" href="https://www.fool.com/quote/nasdaq/apple/aapl">Apple Stock (AAPL)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-fb" href="https://www.fool.com/quote/nasdaq/facebook/fb">Facebook Stock (FB)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-tsla" href="https://www.fool.com/quote/nasdaq/tesla-motors/tsla">Tesla Stock (TSLA)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-nflx" href="https://www.fool.com/quote/nasdaq/netflix/nflx">Netflix Stock (NFLX)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-goog" href="https://www.fool.com/quote/nasdaq/alphabet-c-shares/goog">Google Stock (GOOG)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-amzn" href="https://www.fool.com/quote/nasdaq/amazon/amzn">Amazon Stock (AMZN)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-ge" href="https://www.fool.com/quote/nyse/general-electric/ge">GE Stock (GE)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-dis" href="https://www.fool.com/quote/nyse/walt-disney/dis">Disney Stock (DIS)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-lyft" href="https://www.fool.com/quote/nasdaq/lyft/lyft/">Lyft Stock (LYFT)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-zoom" href="https://www.fool.com/quote/nasdaq/zoom-video-communications/zm/">Zoom Stock (ZM)</a>
</li>
</ul>
</div>
</div>
</div>
<!-- <div class="color-line">
<div class="color blue"></div>
<div class="color yellow"></div>
<div class="color red"></div>
<div class="color green"></div>
<div class="color blue"></div>
<div class="color yellow"></div>
</div> -->
</div>
</div>
</li>
<!--How To Invest-->
<li class="nav-item main-menu-item dropdown">
<a id="topnav-hti" href="javascript:void(0)">
How to Invest
<svg class="fa-svg-icon"><use xlink:href="#caret-down"></use></svg>
</a>
<div class="sub-nav sub-menu">
<div class="mega-menu-wrapper">
<div class="mega-menu-wrapper-content dub-nav">
<div class="columns" id="hti-subnav">
<!-- Ad loaded dynamically via postLoadHeaderLinks.js -->
<div class="column ">
<ul class="sub-nav-group">
<div class="sub-menu-header">Learn How to Invest</div>
<li class="sub-menu-link">
<a id="hti-stocks" href="https://www.fool.com/how-to-invest/">How to Invest in Stocks</a>
</li>
<li class="sub-menu-link">
<a id="hti-start-100" href="https://www.fool.com/how-to-invest/best-way-to-invest-100-a-month.aspx">Start Investing with $100 a Month</a>
</li>
<li class="sub-menu-link">
<a id="hti-knowledge-center" href="https://www.fool.com/knowledge-center/index.aspx">Investing Knowledge Center</a>
</li>
<li class="sub-menu-link">
<a id="hti-options" href="https://www.fool.com/investing/options/options-a-foolish-introduction.aspx">Learn Options Trading</a>
</li>
<li class="sub-menu-link">
<a id="hti-etf" href="https://www.fool.com/investing/etf/2018/01/15/etf-vs-mutual-funds-the-pros-and-cons.aspx">Guide to Index, Mutual & ETF Funds</a>
</li>
<li class="sub-menu-link">
<a id="hti-dividends" href="https://www.fool.com/investing/2018/07/26/how-to-build-a-dividend-portfolio.aspx">How to Build a Dividend Portfolio</a>
</li>
<li class="sub-menu-link">
<a id="hti-retirement" href="https://www.fool.com/retirement/">Investing for Retirement</a>
</li>
</ul>
</div>
<div class="column">
<ul class="sub-nav-group">
<div class="sub-menu-header">Track Your Performance</div>
<li class="sub-menu-link">
<a id="hti-scorecard" href="https://scorecard.fool.com">Portfolio Tracker</a>
</li>
<li class="sub-menu-link">
<a id="hti-caps" href="https://caps.fool.com/">Rate & Research Stocks - CAPS</a>
</li>
<div class="sub-menu-header">Investing Accounts</div>
<li class="sub-menu-link">
<a id="hti-brokerage-accounts" href="https://www.fool.com/the-ascent/buying-stocks/">Compare Brokerage Accounts</a>
</li>
<li class="sub-menu-link">
<a id="hti-ira-accounts" href="https://www.fool.com/the-ascent/buying-stocks/best-brokers-iras/">Compare IRA Accounts</a>
</li>
</ul>
</div>
</div>
</div>
<!-- <div class="color-line">
<div class="color blue"></div>
<div class="color yellow"></div>
<div class="color red"></div>
<div class="color green"></div>
<div class="color blue"></div>
<div class="color yellow"></div>
</div> -->
</div>
</div>
</li>
<!--Retirement-->
<li class="nav-item main-menu-item dropdown">
<a id="topnav-retire" href="javascript:void(0)">
Retirement
<svg class="fa-svg-icon"><use xlink:href="#caret-down"></use></svg>
</a>
<div class="sub-nav sub-menu">
<div class="mega-menu-wrapper">
<div class="mega-menu-wrapper-content sub-nav">
<div class="columns" id="retirement-subnav">
<!-- Ad loaded dynamically via postLoadHeaderLinks.js -->
<div class="column">
<ul class="sub-nav-group">
<div class="sub-menu-header">Retirement Planning</div>
<li class="sub-menu-link">
<a id="retire-401ks" href="https://www.fool.com/retirement/401k/401kintro-is-your-retirement-plan-foolish.aspx">401Ks</a> | <a href="https://www.fool.com/retirement/ira/index.aspx">IRAs</a> | <a href="https://www.fool.com/retirement/assetallocation/introduction-to-asset-allocation.aspx">Asset Allocation</a>
</li>
<li class="sub-menu-link">
<a id="retire-step-guide" href="https://www.fool.com/retirement/index.aspx">Step by step guide to retirement</a>
</li>
<li class="sub-menu-link">
<a id="retire-guide-plans" href="https://www.fool.com/retirement/2018/02/21/2018-guide-to-retirement-planning.aspx">2018 Guide to Retirement Planning</a>
</li>
<li class="sub-menu-link">
<a id="retire-socsec-exist" href="https://www.fool.com/retirement/general/2016/03/19/will-social-security-last-until-i-retire.aspx">Will Social Security be there for me?</a>
</li>
<li class="sub-menu-link">
Retirement Guide: <a id="retire-guide-20s" href="https://www.fool.com/retirement/2016/12/19/the-perfect-retirement-strategy-for-20-somethings.aspx">20s</a> | <a id="retire-guide-30s" href="https://www.fool.com/retirement/2016/07/16/the-perfect-retirement-strategy-for-people-in-thei.aspx">30s</a> | <a id="retire-guide-40s" href="https://www.fool.com/retirement/2016/12/19/the-perfect-retirement-strategy-for-40-somethings.aspx">40s</a> | <a id="retire-guide-50s" href="https://www.fool.com/retirement/2016/12/20/the-perfect-retirement-strategy-for-50-somethings.aspx">50s</a>
</li>
<li class="sub-menu-link">
<a id="retire-college-retirement" href="https://www.fool.com/retirement/2017/08/06/should-you-save-for-college-or-retirement.aspx">Save for College or Retirement?</a>
</li>
<li class="sub-menu-link"><a id="retire-socsec-free-report" href="http://www.fool.com/mms/mark/ecap-foolcom-social-security/?aid=8727&source=irrsittn0010002">
$16,122 Social Security Bonus
<svg class="fa-svg-icon icon-dollar"><use xlink:href="#dollar-sign-light"></use></svg>
</a></li>
</ul>
</div>
<div class="column">
<ul class="sub-nav-group">
<div class="sub-menu-header">Already Retired</div>
<li class="sub-menu-link">
<a id="retire-now-what" href="https://www.fool.com/retirement/general/2015/05/09/so-youre-about-to-retire-now-what.aspx">Time to Retire, Now What?</a>
</li>
<li class="sub-menu-link">
<a id="retire-60s" href="https://www.fool.com/retirement/2016/06/04/the-perfect-retirement-strategy-for-seniors-in-the.aspx">Living in Retirement in Your 60s</a>
</li>
<li class="sub-menu-link">
<a id="retire-reverse-mortgage" href="https://www.fool.com/retirement/2016/10/09/read-this-before-you-get-a-reverse-mortgage.aspx">Should I Reverse Mortgage My Home?</a>
</li>
<li class="sub-menu-link">
<a id="retire-longtermcare" href="https://www.fool.com/retirement/2018/02/02/your-2018-guide-to-long-term-care-insurance.aspx">Should I Get a Long Term Care Policy?</a>
</li>
<li class="sub-menu-link">
<a id="retire-socsec-guide" href="https://www.fool.com/retirement/2017/12/03/your-2018-guide-to-social-security-benefits.aspx">Your 2018 Guide to Social Security</a>
</li>
<li class="sub-menu-link">
<a id="retire-agg" href="https://www.fool.com/articles/retirement/">Latest Retirement Articles</a>
</li>
</ul>
</div>
</div>
</div>
<!-- <div class="color-line">
<div class="color blue"></div>
<div class="color yellow"></div>
<div class="color red"></div>
<div class="color green"></div>
<div class="color blue"></div>
<div class="color yellow"></div>
</div> -->
</div>
</div>
</li>
<!--Personal Finance -->
<li class="nav-item main-menu-item dropdown">
<a id="topnav-pf" href="javascript:void(0)">
Personal Finance
<svg class="fa-svg-icon"><use xlink:href="#caret-down"></use></svg>
</a>
<div class="sub-nav sub-menu">
<div class="mega-menu-wrapper">
<div class="mega-menu-wrapper-content dub-nav ascent">
<div class="columns">
<div class="column ascent-logo">
<a href="https://www.fool.com/the-ascent/">
<img class="theascent-logo-color-medium" alt="The Ascent Logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAC2AQMAAAAbaXvoAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAAClJREFUeNrtwTEBAAAAwqD1T20IX6AAAAAAAAAAAAAAAAAAAAAAAIDPAEfOAAEh0JNjAAAAAElFTkSuQmCC">
</a>
</div>
<div class="column description">
The Ascent is The Motley Fool's new personal finance brand devoted to helping you live a richer life. Let's conquer your financial goals together...faster. See you at the top!
</div>
<div class="column">
<ul class="ascent-links sub-nav-group">
<li class="sub-menu-link"><a href="https://www.fool.com/the-ascent/credit-cards/" id="asc-credit-cards">Best Credit Cards</a></li>
<li class="sub-menu-link"><a href="https://www.fool.com/the-ascent/banks/best-savings-accounts/" id="asc-bank-accounts">Best Bank Accounts</a></li>
<li class="sub-menu-link"><a href="https://www.fool.com/the-ascent/buying-stocks/" id="asc-stock-brokers">Best Stock Brokers</a></li>
<li class="sub-menu-link"><a href="https://www.fool.com/the-ascent/personal-loans/" id="asc-personal-loans">Best Personal Loans</a></li>
<li class="sub-menu-link"><a href="https://www.fool.com/the-ascent/student-loans/" id="asc-student-loans">Best Student Loans</a></li>
</ul>
</div>
</div>
</div>
<!-- <div class="color-line">
<div class="color blue"></div>
<div class="color yellow"></div>
<div class="color red"></div>
<div class="color green"></div>
<div class="color blue"></div>
<div class="color yellow"></div>
</div> -->
</div>
</div>
</li>
<!--Community-->
<li class="nav-item main-menu-item dropdown">
<a id="topnav-community" href="javascript:void(0)">
Community
<svg class="fa-svg-icon"><use xlink:href="#caret-down"></use></svg>
</a>
<div class="sub-nav sub-menu">
<div class="mega-menu-wrapper">
<div class="mega-menu-wrapper-content sub-nav">
<div class="columns" id="community-subnav">
<div class="column">
<div class="sub-menu-header">
Our Mission:<br/ >Make the world smarter, happier, and richer.
</div>
<p>Founded in 1993 by brothers Tom and David Gardner, The Motley Fool helps millions of people attain financial freedom through our website, podcasts, books, newspaper column, radio show, and premium investing services.</p>
</div>
<!-- links loaded dynamically via postLoadHeaderLinks.js -->
</div>
</div>
<!-- <div class="color-line">
<div class="color blue"></div>
<div class="color yellow"></div>
<div class="color red"></div>
<div class="color green"></div>
<div class="color blue"></div>
<div class="color yellow"></div>
</div> -->
</div>
</div>
</li>
</ul>
</nav>
<button class="navigation-menu-button" id="mobile-menu-toggle" role="button">
<svg class="fa-svg-icon icon-bars"><use xlink:href="#bars"></use></svg>
<svg class="fa-svg-icon icon-close"><use xlink:href="#times"></use></svg>
</button>
<nav class="mobile-nav-container">
<ul class="mobile-nav">
<li class="main-menu-item">
<a id="m-topnav-picks" href="https://www.fool.com/#services-section">Latest Stock Picks</a>
</li>
<!--Stocks and Services-->
<li class="main-menu-item dropdown">
<div class="main-menu-item-link-wrapper" onclick="return true">
<span class="main-menu-item-link">
<span class="dropdown" id="topnav-stocks">
Stocks
<svg class="fa-svg-icon"><use xlink:href="#angle-right"></use></svg>
</span>
</span>
</div>
<ul class="sub-menu">
<div class="mega-menu-wrapper">
<header class="sub-menu-name">
Stocks
<button class="btn-level-up">
<svg class="fa-svg-icon"><use xlink:href="#chevron-left"></use></svg>
</button>
</header>
<div class="mega-menu-wrapper-content sub-nav">
<div class="columns" id="stocks-subnav">
<div class="column promo-box-column">
<div class="sub-menu-header">Premium Services</div>
<div class="stocks-info-table sub-nav-group">
<div class="stocks-info-item head">
<div class="td name"></div>
<div class="td">Return</div>
<div class="td">S&P</div>
</div>
<div class="stocks-info-item">
<div class="td name">
<a id="stocks-sa" href="">Stock Advisor</a>
<small>Flagship service</small>
</div>
<div class="td return">372%</div>
<div class="td">88%</div>
</div>
<div class="stocks-info-item">
<div class="td name">
<a id="stocks-rb" href="">Rule Breakers</a>
<small>High-growth stocks</small>
</div>
<div class="td return">165%</div>
<div class="td">74%</div>
</div>
<p align="center"><small><em>Returns as of 7/1/2019</em></small></p>
<div class="stocks-info-item">
<div class="td name">
<center>
<a id="stocks-all-services" href="https://www.fool.com/services/">View all Motley Fool Services</a>
</center>
</div>
</div>
</div>
</div>
<div class="column">
<ul class="sub-nav-group">
<div class="sub-menu-header">Stock Market News</div>
<li class="sub-menu-link">
<a id="stocks-news" href="https://www.fool.com/investing-news/">Latest Investing News</a>
</li>
<li class="sub-menu-link">
<a id="stocks-movers" href="https://www.fool.com/market-movers/">Gainers & Losers in the Market Today</a>
</li>
<li class="sub-menu-link">
<a id="stocks-top-div" href="https://www.fool.com/investing/2019/04/10/3-top-dividend-stocks-with-yields-over-5.aspx">3 Top Dividend Stocks to Buy Now</a>
</li>
<li class="sub-menu-link">
<a id="stocks-begin-div" href="https://www.fool.com/how-to-invest/dividend-investing-for-beginners.aspx">Dividend Paying Stocks for Beginners</a>
</li>
<li class="sub-menu-link">
<a id="stocks-top-growth" href="https://www.fool.com/investing/2019/04/03/top-stocks-to-buy.aspx">Top Growth Stocks for 2019</a>
</li>
<li class="sub-menu-link">
<a id="stocks-high-growth" href="https://www.fool.com/investing/principles-of-growth-investing.aspx">How to Identify Growth Stocks</a>
</li>
<li class="sub-menu-link">
<a id="stocks-maryjane" href="https://www.fool.com/marijuana-stocks/">Marijuana Stocks</a>
</li>
<li class="sub-menu-link">
<a id="stocks-transcripts" href="https://www.fool.com/earnings-call-transcripts/">Earnings Call Transcripts</a>
</li>
<li class="sub-menu-link">
<a id="stocks-10best-free-report" href="https://www.fool.com/mms/mark/op-sa-bbn-eg/?source=isasittn0010001">
10 Best Stocks Right Now
<svg class="fa-svg-icon icon-dollar"><use xlink:href="#dollar-sign-light"></use></svg>
</a>
</li>
</ul>
</div>
<div class="column">
<ul class="sub-nav-group">
<div class="sub-menu-header">Popular Stocks</div>
<li class="sub-menu-link">
<a id="stocks-aapl" href="https://www.fool.com/quote/nasdaq/apple/aapl">Apple Stock (AAPL)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-fb" href="https://www.fool.com/quote/nasdaq/facebook/fb">Facebook Stock (FB)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-tsla" href="https://www.fool.com/quote/nasdaq/tesla-motors/tsla">Tesla Stock (TSLA)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-nflx" href="https://www.fool.com/quote/nasdaq/netflix/nflx">Netflix Stock (NFLX)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-goog" href="https://www.fool.com/quote/nasdaq/alphabet-c-shares/goog">Google Stock (GOOG)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-amzn" href="https://www.fool.com/quote/nasdaq/amazon/amzn">Amazon Stock (AMZN)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-ge" href="https://www.fool.com/quote/nyse/general-electric/ge">GE Stock (GE)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-dis" href="https://www.fool.com/quote/nyse/walt-disney/dis">Disney Stock (DIS)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-lyft" href="https://www.fool.com/quote/nasdaq/lyft/lyft/">Lyft Stock (LYFT)</a>
</li>
<li class="sub-menu-link">
<a id="stocks-zoom" href="https://www.fool.com/quote/nasdaq/zoom-video-communications/zm/">Zoom Stock (ZM)</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</ul>
</li>
<!--How To Invest-->
<li class="main-menu-item dropdown">
<div class="main-menu-item-link-wrapper" onclick="return true">
<span class="main-menu-item-link">
<span class="dropdown" id="topnav-hti">
How to Invest
<svg class="fa-svg-icon"><use xlink:href="#angle-right"></use></svg>
</span>
</span>
</div>
<ul class="sub-menu">
<div class="mega-menu-wrapper">
<header class="sub-menu-name">
How to Invest
<button class="btn-level-up">
<svg class="fa-svg-icon"><use xlink:href="#chevron-left"></use></svg>
</button>
</header>
<div class="mega-menu-wrapper-content dub-nav">
<div class="columns" id="hti-subnav">
<!-- Ad loaded dynamically via postLoadHeaderLinks.js -->
<div class="column ">
<ul class="sub-nav-group">
<div class="sub-menu-header">Learn How to Invest</div>
<li class="sub-menu-link">
<a id="hti-stocks" href="https://www.fool.com/how-to-invest/">How to Invest in Stocks</a>
</li>
<li class="sub-menu-link">
<a id="hti-start-100" href="https://www.fool.com/how-to-invest/best-way-to-invest-100-a-month.aspx">Start Investing with $100 a Month</a>
</li>
<li class="sub-menu-link">
<a id="hti-knowledge-center" href="https://www.fool.com/knowledge-center/index.aspx">Investing Knowledge Center</a>
</li>
<li class="sub-menu-link">
<a id="hti-options" href="https://www.fool.com/investing/options/options-a-foolish-introduction.aspx">Learn Options Trading</a>
</li>
<li class="sub-menu-link">
<a id="hti-etf" href="https://www.fool.com/investing/etf/2018/01/15/etf-vs-mutual-funds-the-pros-and-cons.aspx">Guide to Index, Mutual & ETF Funds</a>
</li>
<li class="sub-menu-link">
<a id="hti-dividends" href="https://www.fool.com/investing/2018/07/26/how-to-build-a-dividend-portfolio.aspx">How to Build a Dividend Portfolio</a>
</li>
<li class="sub-menu-link">
<a id="hti-retirement" href="https://www.fool.com/retirement/">Investing for Retirement</a>
</li>
</ul>
</div>
<div class="column">
<ul class="sub-nav-group">
<div class="sub-menu-header">Track Your Performance</div>
<li class="sub-menu-link">
<a id="hti-scorecard" href="https://scorecard.fool.com">Portfolio Tracker</a>
</li>
<li class="sub-menu-link">
<a id="hti-caps" href="https://caps.fool.com/">Rate & Research Stocks - CAPS</a>
</li>
<div class="sub-menu-header">Investing Accounts</div>
<li class="sub-menu-link">
<a id="hti-brokerage-accounts" href="https://www.fool.com/the-ascent/buying-stocks/">Compare Brokerage Accounts</a>
</li>
<li class="sub-menu-link">
<a id="hti-ira-accounts" href="https://www.fool.com/the-ascent/buying-stocks/best-brokers-iras/">Compare IRA Accounts</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</ul>
</li>
<!--Retirement-->
<li class="main-menu-item dropdown">
<div class="main-menu-item-link-wrapper" onclick="return true">
<span class="main-menu-item-link">
<span class="dropdown" id="topnav-retire">
Retirement
<svg class="fa-svg-icon"><use xlink:href="#angle-right"></use></svg>
</span>
</span>
</div>
<ul class="sub-menu">
<div class="mega-menu-wrapper">
<header class="sub-menu-name">
Retirement
<button class="btn-level-up">
<svg class="fa-svg-icon"><use xlink:href="#chevron-left"></use></svg>
</button>
</header>
<div class="mega-menu-wrapper-content">
<div class="columns">
<div class="column">
<div class="sub-menu-header">Retirement Planning</div>
<li class="sub-menu-link">
<a id="retire-401ks" href="https://www.fool.com/retirement/401k/401kintro-is-your-retirement-plan-foolish.aspx">401Ks</a>
</li>
<li class="sub-menu-link">
<a id="retire-iras" href="https://www.fool.com/retirement/ira/index.aspx?source=ifltnvsnv0000001">IRAs</a>
</li>
<li class="sub-menu-link">
<a id="retire-allocation" href="https://www.fool.com/retirement/assetallocation/introduction-to-asset-allocation.aspx?source=ifltnvsnv0000001">Asset Allocation</a>
</li>
<li class="sub-menu-link">
<a id="retire-steps-guide" href="https://www.fool.com/retirement/general/how-to-retire-in-style.aspx">Step by step guide to retirement</a>
</li>
<li class="sub-menu-link">
<a id="retire-guide-plans" href="https://www.fool.com/retirement/2017/01/22/your-2017-guide-to-retirement-planning.aspx">Your 2017 Guide to Retirement Plans</a>
</li>
<li class="sub-menu-link">
<a id="retire-socsec-exist" href="https://www.fool.com/retirement/general/2016/03/19/will-social-security-last-until-i-retire.aspx">Will Social Security be there for me?</a>
</li>
<li class="sub-menu-link">
<a id="retire-guide-20s" href="https://www.fool.com/retirement/2016/12/19/the-perfect-retirement-strategy-for-20-somethings.aspx">Retirement Guide: 20s</a>
</li>
<li class="sub-menu-link">
<a id="retire-guide-30s" href="https://www.fool.com/retirement/2016/07/16/the-perfect-retirement-strategy-for-people-in-thei.aspx">Retirement Guide: 30s</a>
</li>
<li class="sub-menu-link">
<a id="retire-guide-40s" href="https://www.fool.com/retirement/2016/12/19/the-perfect-retirement-strategy-for-40-somethings.aspx">Retirement Guide: 40s</a>
</li>
<li class="sub-menu-link">
<a id="retire-guide-50s" href="https://www.fool.com/retirement/2016/12/20/the-perfect-retirement-strategy-for-50-somethings.aspx">Retirement Guide: 50s</a>
</li>
<li class="sub-menu-link">
<a id="retire-college-retire" href="https://www.fool.com/retirement/2017/08/06/should-you-save-for-college-or-retirement.aspx">Save for College or Retirement?</a>
</li>
<li class="sub-menu-link">
<a id="retire-socsec-free-report" href="http://www.fool.com/mms/mark/ecap-foolcom-social-security/?aid=8727&source=irrsittn0010002">$16,122 Social Security Bonus
<svg class="fa-svg-icon icon-dollar"><use xlink:href="#dollar-sign-light"></use></svg>
</a>
</li>
</div>
<div class="column">
<div class="sub-menu-header">Already Retired</div>
<li class="sub-menu-link">
<a id="retire-now-what" href="https://www.fool.com/retirement/general/2015/05/09/so-youre-about-to-retire-now-what.aspx">Time to Retire, Now What?</a>
</li>
<li class="sub-menu-link">
<a id="retire-60s" href="https://www.fool.com/retirement/2016/06/04/the-perfect-retirement-strategy-for-seniors-in-the.aspx">Living in Retirement in Your 60s</a>
</li>
<li class="sub-menu-link">
<a id="retire-reverse-mortgage" href="https://www.fool.com/retirement/2016/10/09/read-this-before-you-get-a-reverse-mortgage.aspx">Should I reverse Mortgage My Home?</a>
</li>
<li class="sub-menu-link">
<a id="retire-longtermcare" href="https://www.fool.com/retirement/2018/02/02/your-2018-guide-to-long-term-care-insurance.aspx">Should I Get a Long Term Care Policy?</a>
</li>
<li class="sub-menu-link">
<a id="retire-socsec-guide" href="https://www.fool.com/retirement/2017/12/03/your-2018-guide-to-social-security-benefits.aspx">Your 2018 Guide to Social Security</a>
</li>
</div>
</div>
</div>
</div>
</ul>
</li>
<!--Personal Finance -->
<li class="main-menu-item dropdown">
<div class="main-menu-item-link-wrapper" onclick="return true">
<span class="main-menu-item-link">
<span class="dropdown" id="topnav-pf">
Personal Finance
<svg class="fa-svg-icon"><use xlink:href="#angle-right"></use></svg>
</span>
</span>
</div>
<ul class="sub-menu">
<div class="mega-menu-wrapper">
<header class="sub-menu-name">
Personal Finance
<button class="btn-level-up">
<svg class="fa-svg-icon"><use xlink:href="#chevron-left"></use></svg>
</button>
</header>
<div class="mega-menu-wrapper-content dub-nav ascent">
<div class="columns">
<div class="column ascent-logo">
<a href="https://www.fool.com/the-ascent/">
<img class="theascent-logo-color-medium" alt="The Ascent Logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAC2AQMAAAAbaXvoAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAAClJREFUeNrtwTEBAAAAwqD1T20IX6AAAAAAAAAAAAAAAAAAAAAAAIDPAEfOAAEh0JNjAAAAAElFTkSuQmCC">
</a>
</div>
<div class="column description">
The Ascent is The Motley Fool's new personal finance brand devoted to helping you live a richer life. Let's conquer your financial goals together...faster. See you at the top!
</div>
<div class="column">
<ul class="ascent-links sub-nav-group">
<li class="sub-menu-link"><a href="https://www.fool.com/the-ascent/credit-cards/" id="asc-credit-cards">Best Credit Cards</a></li>
<li class="sub-menu-link"><a href="https://www.fool.com/the-ascent/banks/best-savings-accounts/" id="asc-bank-accounts">Best Bank Accounts</a></li>
<li class="sub-menu-link"><a href="https://www.fool.com/the-ascent/buying-stocks/" id="asc-stock-brokers">Best Stock Brokers</a></li>
<li class="sub-menu-link"><a href="https://www.fool.com/the-ascent/personal-loans/" id="asc-personal-loans">Best Personal Loans</a></li>
<li class="sub-menu-link"><a href="https://www.fool.com/the-ascent/student-loans/" id="asc-student-loans">Best Student Loans</a></li>
</ul>
</div>
</div>
</div>
</div>
</ul>
</li>
<!--Community-->
<li class="main-menu-item dropdown">
<div class="main-menu-item-link-wrapper" onclick="return true">
<span class="main-menu-item-link">
<span id="topnav-community">
Community
<svg class="fa-svg-icon"><use xlink:href="#angle-right"></use></svg>
</span>
</span>
</div>
<ul class="sub-menu">
<div class="mega-menu-wrapper">
<header class="sub-menu-name">
Community
<button class="btn-level-up">
<svg class="fa-svg-icon"><use xlink:href="#chevron-left"></use></svg>
</button>
</header>
<div class="mega-menu-wrapper-content" id="community-mob-subnav">
<div class="columns">
<!-- links loaded dynamically via postLoadHeaderLinks.js -->
</div>
</div>
</div>
</ul>
</li>
<li class="main-menu-item" id="logIn">
<a id="m-topnav-login" href="https://www.fool.com/secure/login.aspx?source=ilgsittph0000001">Login</a>
</li>
</ul>
</nav>
<div class="mobile-nav-overlay"></div>
<div class="header-search-wrapper">
<button class="header-search-wrapper-toggle">
<svg class="fa-svg-icon icon-search"><use xlink:href="#search"></use></svg>
<svg class="fa-svg-icon icon-close"><use xlink:href="#times"></use></svg>
</button>
<div class="header-search-form-wrapper"><form name="lookup" action="/fooldotcom/searchredirect/" class="header-search-form">
<span class="sr-only">Search</span>
<label for="fool-search" class="fool-search-label" style="display:none;">
Search:
</label>
<input name="query" label="search" id="fool-search" class="ticker-input-input" placeholder="Ticker or Keyword" role="search" aria-hidden="false" aria-haspopup="true" autocomplete="off"/>
<input type="submit" class="sr-only" value="Go">
<div id="header-search-submit">
<svg class="fa-svg-icon"><use xlink:href="#search"></use></svg>
</div>
</form>
</div>
</div>
</div>
<div class="color-line">
<div class="color blue"></div>
<div class="color yellow"></div>
<div class="color red"></div>
<div class="color green"></div>
<div class="color blue"></div>
<div class="color yellow"></div>
</div>
</header>
</section>
<div class="content-container">
<div id="sticky-wrapper">
<header class="header-ads-container sticky-header-ads-container" >
<section class="header-ads ad">
<!-- Create container for ad -->
<div id='div-header_desk_sticky-154' class='dfp-ads wide'>
<script type="text/javascript">
googletag.cmd.push(function() {
googletag.display('div-header_desk_sticky-154');
});
</script>
</div>
</section>
</header>
</div>
<section id="article-page" class="main-content-section page-body template-3-column" >
<section id="main-content">
<div class="endless-body">
<div class="full_article" id="article-1">
<div class="content-container-columns">
<aside class="column sidebar left" id="sidebar-left">
<section class="sidebar-content" id="sidebar-left-content">
<div class="email_report">
<a href="https://www.fool.com/mms/mark/e-art-leftr-5stocks-free?aid=9185&source=isaedisz0000001" class="email_report_container">
<div class="text">
<span>
<b>Get The Motley Fool's 5 Free Stocks to Build Wealth Report</b>
<p>Motley Fool Co-Founders just released an exclusive report naming 5 of their favorite stocks to buy right now…</p>
</span>
</div>
<btn class="btn">
<span>Send me stocks</span>
<svg class="fa-svg-icon">
<use xlink:href="#envelope"></use>
</svg>
</btn>
</a>
</div>
<div class="banner ad">
<!-- Create container for ad -->
<div id='div-l_sidebar_sticky-7680' class='dfp-ads ad'>
<script type="text/javascript">
googletag.cmd.push(function() {
googletag.display('div-l_sidebar_sticky-7680');
});
</script>
</div>
</div>
</section>
</aside>
<div class="column main-column">
<!--placeholder-->
<section class="usmf-new article-body">
<section class="usmf-new article-header">
<header>
<div id="adv_text" class="adv-heading"></div>
<h1>Intra-Cellular Therapies, Inc. (ITCI) Q1 2019 Earnings Call Transcript</h1>
<h2>ITCI earnings call for the period ending March 31, 2019.</h2>
</header>
</section>
<div class="row author-tagline author-inline">
<div class="author-tagline-top">
<div class="author-avatar">
<img src="https://g.foolcdn.com/avatar/2041746706/large.ashx" alt="Motley Fool Transcription"/>
</div>
<div class="author-and-date">
<div class="author-name">
<svg class="fa-svg-icon"> <use xlink:href="#user-tie"></use></svg>
Motley Fool Transcription
</div>
<div class="author-username">
(<a href="https://my.fool.com/profile/MFTranscription/activity.aspx">MFTranscription</a>)
</div>
<div class="publication-date">
<svg class="fa-svg-icon"> <use xlink:href="#calendar-alt"></use></svg>
May 8, 2019 at 1:26PM
</div>
<div class="publication-subject">
<svg class="fa-svg-icon"><use xlink:href="#envelope"></use></svg>
Health Care
</div>
</div>
</div>
</div>
<span class="article-content">
<div class="image imgR"><img alt="Logo of jester cap with thought bubble with words 'Fool Transcripts' below it" src="https://g.foolcdn.com/misc-assets/transcripts-logo.png"/>
<p class="caption">Image source: The Motley Fool.</p>
</div>
<p><strong>Intra-Cellular Therapies Inc.</strong> <span class="ticker" data-id="288785">(<a href="https://www.fool.com/quote/nasdaq/intra-cellular-therapies/itci">NASDAQ:ITCI</a>)</span><br/> Q1 2019 Earnings Call<br/> May 8, 2019,<em> 8:30 a.m. ET</em></p>
<h2>Contents:</h2>
<ul>
<li>Prepared Remarks</li>
<li>Questions and Answers</li>
<li>Call Participants</li>
</ul>
<h2>Prepared Remarks:</h2>
<p><strong>Operator</strong></p>
<p>Good morning, ladies and gentlemen, and welcome to the Intra-Cellular Therapies Inc. First Quarter 2019 Earnings Conference Call. At this time, all participants are in a listen-only mode. Following managements prepared remarks, we will host a question-and-answer session and our instructions will be given at that time. If during your conference you require operator assistance, press * then 0 and an operator will be happy to assist you. As a reminder, this conference call may be recorded.</p>
<p>It is now my pleasure to hand the conference over to my Mr. Juan Sanchez, Vice President of Investor Relations.</p>
<p><strong>Juan Sanchez</strong> -- <em>Vice President of Investor Relations</em></p>
<p>Thank you, operator. Good morning and thank you all for joining us for today's conference call. Our earnings press release providing a corporate update and details of the company's financial results for the first quarter ended March 31st, 2019 crossed the wire a short time ago and is available on our website at intracellulartherapies.com.</p>
<p>Joining me on the call today are Dr. Sharon Mates, Chairman and Chief Executive Officer; Dr. Andrew Satlin, Executive Vice President and Chief Medical Officer; Mark Neumann, Executive Vice President and Chief Commercial Officer; Dr. Kimberly Vanover, Senior Vice President of Early Stage Clinical Development and Translational Medicine; Larry Hineline, Senior Vice President and Chief Financial Officer; and Michael Halstead, Executive Vice President and General Counsel.</p>
<p></p><div id="pitch"></div>
<p>As a reminder, during today's call, we will be making certain forward-looking statements. These statements may include statements regarding, among other things, the efficacy, safety and intended utilization of the company's product development candidates, our clinical or non-critical plans, our plans to present or report additional data, the anticipated conduct and results of ongoing and future clinical trials, plans regarding regulatory filings, future research and development, our plans regarding the commercialization of Lumateperone, and possible uses of existing cash and investment resources.</p>
<p>These forward-looking statements are based on current information, assumptions, and expectations that are subject to change and involve a number of risks and uncertainties that may cause actual results to differ materially from those contained in the forward-looking statements. These and other risks are described in our periodic filings made with the Securities and Exchange Commission, including our quarterly and annual reports. You're cautioned not to place undue reliance on these forward-looking statements and the company disclaims any obligation to update such statements.</p>
<p>I will now turn the call over to Sharon.</p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p>Thanks, Juan. Good morning, everyone, and thank you for joining us. Today, I will provide an overview of our progress with our Lumateperone Clinical Program. Mark Neumann, our Chief Commercial Officer, will discuss our commercial preparations and Andrew Satlin, our Chief Medical Officer, will provide an overview of our progress in our other clinical research program. Then, Larry Hineline will review our financial results and we will open the line for Q&A.</p>
<p>Our NDA for Lumateperone for the treatment of schizophrenia is under review by the FDA and the PDUFA target action date is September 27, 2019. We believe that our Schizophrenia Clinical Development Program for Lumateperone provides evidence and support of the efficacy and safety for the treatment of schizophrenia and potentially represents an important advance for patients and the psychiatric community. We continue to advance our clinical programs for Lumateperone. At a recent meeting of the Schizophrenia International Research Society or SIRS, we presented additional results from our Lumateperone Long-term Safety Study or Study 303 in patients with stable symptoms of schizophrenia.</p>
<p>This study switched patients from the standard of care anti-psychotics to Lumateperone for a treatment duration of up to one year. In this study, Lumateperone was generally well tolerated and was associated with statistically significant improvements from baseline on key cardio-metabolic and motor measures that are often impacted adversely by other antipsychotic medications. Patients treated with Lumateperone remained stable with respect to their symptoms of schizophrenia upon switching from the standard of care. Importantly, a mean body weight reduction of 3.16 kilograms was observed at one year of treatment with statistically significant reductions from the standard of care baseline in total cholesterol, LDL cholesterol, and prolactin while other cardio-metabolic parameters remained stable. There were no signs of treatment-emergent extrapyramidal side effects, akathisia, or dyskinesia. These results are consistent with prior findings in our short-term studies and we are encouraged by the unique safety and tolerability profile of Lumateperone and its potential to improve the treatment of individuals with neuropsychiatric and neurologic disorders.</p>
<p>At SIRS we presented results on the improvements in symptoms of depression seen in our long-term safety study with Lumateperone in patients with stabilized schizophrenia experiencing moderate to severe comorbid depression. Depression has been reported during all stages of schizophrenia. Prevalence rates for depression in schizophrenia may vary but have been reported to be as high as 60%. Symptoms of depression contribute substantially to functional and social impairment as well as increase the risk of suicide. In our study, the anti-depressant effects of Lumateperone were assessed using the Calgary Depression Scale for Schizophrenia or CDSS a validated scale to assess depression in patients with schizophrenia. In these patients with moderate to severe depression defined by a CDSS score of at least 6 at baseline, Lumateperone treatment was associated with marked improvement in symptoms of depression.</p>
<p>Specifically, mean CDSS scores decreased by approximately 60% from 7.4 at baseline to 3.1 at day 300. In addition, 60% of patients experienced a clinically meaningful reduction in depressive symptoms of at least 50%. Importantly, Lumateperone improved symptoms of depression not only as a monotherapy in patients who were not on an anti-depressant but also adjunctively in patients who were taking anti-depressants and still exhibiting symptoms of depression. These data extend results we previously reported on improvements in depressive symptoms seen in patients with acute symptoms of schizophrenia and comorbid depression. These results reinforce the positive feedback we've received from the medical community and from patients and continue to support our commitment to the development of Lumateperone for the treatment of a range of mood disorders.</p>
<p>Our Bipolar Depression Program is ongoing, and we expect top-line results from our two monotherapy studies, Study 401 and Study 404, later this quarter. In addition, our program in major depressive disorder, MDD, is ongoing. In order to explore the effect of different modes of drug administration and the potential for rapid onset anti-depressant activity, our program includes the assessment of novel formulations of Lumateperone. Pharmacokinetic studies evaluating these formulations are continuing.</p>
<p>We ended the quarter with $312 million in cash, cash equivalents, and investment securities which places us in a strong position to advance our development programs and commercial activities. Before I turn the call over to Mark who will provide a brief update on our pre-commercialization efforts, I would like to highlight that we will have presentations describing our Lumateperone Schizophrenia Program at the upcoming American Psychiatric Association annual meeting in San Francisco which runs from May 18th to May 22nd. We look forward to our participation and contribution to this important global medical meeting.</p>
<p>Following Mark's comments, Andy, who just presented our ITI-214 Study on Parkinson's disease at the American Academy of Neurology annual meeting, will report on our progress with ITI-214 in Parkinson's disease and other indications. Mark?</p>
<p><strong>Mark Neumann</strong> -- <em>Executive Vice President, Chief Commercial Officer</em></p>
<p>Thanks, Sharon, and good morning, everyone.</p>
<p>Over the past several months, we've continued to intensify our efforts in preparing critical areas of our organization to support the potential commercialization of Lumateperone. I'm pleased with the advancements we are making in building our commercial capabilities in the areas of sales, marketing, and managed care and in our manufacturing and supply chain readiness. We also continue to make considerable progress in the implementation of enterprisewide systems and processes to support our future commercial operations and our growing organization.</p>
<p>As Sharon just mentioned, we will have presentations at the upcoming APA meeting in San Francisco describing our Lumateperone program in schizophrenia. I am also pleased to announce that concurrent with the APA meeting, we will be launching a new disease awareness campaign to highlight for physicians and other healthcare practitioners the significant unmet medical needs that remain in the treatment of schizophrenia.</p>
<p>Schizophrenia, which afflicts over 2 million patients in the United States, continues to place a substantial burden in suffering, disability, and cost on patients and caregivers. We've conducted extensive market research including speaking directly with individuals suffering from schizophrenia and their caregivers to better under their journey with this disease. Based on these insights, we have developed a campaign that features actual patients and highlights their experiences and the challenges they face at different stages in their journey. The campaign will be launched later this month at APA and will run over the next several months supported by a significant print and digital effort to reach those healthcare providers who treat schizophrenia. We are excited to introduce this disease awareness campaign and look forward to providing you with updates on its progress as well as with our overall pre-commercialization efforts in the upcoming months.</p>
<p>I would like to now hand the call back to Andy to discuss our other clinical development program updates. Andy?</p>
<p><strong>Andrew Satlin</strong> -- <em>MD, Executive Vice President & Chief Medical Officer</em></p>
<p>Thanks, Mark. Let me start with the poster I just presented at the 2019 American Academy of Neurology annual meeting on results from our phase 1/2 clinical trial of ITI-214 our selective phosphodiesterase 1 inhibitor in patients with mild to moderate Parkinson's disease maintained on dopamine replacement therapy.</p>
<p>The primary objective of the study was to evaluate the safety and tolerability of ascending doses of ITI-214 administered for one week. Favorable safety and tolerability were demonstrated over the full range of tested doses from 1 milligram to 90 milligrams. Efficacy in improving motor symptoms of Parkinson's disease and motor complications associated with dopamine replacement therapy was explored using multiple scales, providing input from both patients and site raters. We observed improvements in motor symptoms on top of these patient's standard treatment and reductions in dyskinesia at some doses. Several patients experienced profound improvements in motor impairment while taking ITI-214 only to have these improvements disappear when tested again one month after cessation of ITI-214 treatment. We are currently planning to advance this program with a phase 2 proof of concept clinical trial of ITI-214 for the treatment of Parkinson's disease.</p>
<p>Our ITI-214 program in heart failure continues to progress. We are conducting an escalating, single dose study of ITI-214 evaluating the hemodynamic effects and safety in patients with systolic heart failure. Clinical conduct for the second cohort 30 milligrams is now ongoing following the completion of the first cohort with 10 milligrams where no safety concerns were identified. We are pleased with the progress being made in our PDE 1 program as we continue to explore the potential of this novel mechanism of action in neurological, cardiovascular, and other conditions.</p>
<p>I will now turn the call over to Larry who will review the financial results. Larry?</p>
<p><strong>Larry Hineline</strong> -- <em>Senior Vice President Finance & Chief Financial Officer</em></p>
<p>Thank you, Andy. I will be reviewing our financial results for the quarter ending March 31, 2019, and provide an overview of our expectations for the use of our cash and investments.</p>
<p>The net loss for the first quarter of 2019 was $34.8 million compared with a net loss of $35.5 million for the first quarter of 2018. Basic and diluted net loss was $0.63 per share for the first quarter of 2019 compared to a basic and diluted net loss $0.65 per share for the same period in 2018. Research and development expenses for the first quarter ended March 31, 2019, were $25 million compared to $30.7 million for the first quarter of 2018. This decrease of $5.7 million is due primarily to a decrease of approximately $4.8 million of the cost associated with the Lumateperone Development Programs, a decrease of approximately $1.7 million of non-ITI 007 projects, and overhead expenses, which is offset in part by an increase in labor and stock compensation expense.</p>
<p>General and administrative expenses for the first quarter of 2019 were $11.7 million compared to $6.4 million for the first quarter of 2018. The increase of $5.3 million is primarily the results of an increase in pre-commercialization costs and to a lesser extent labor costs, stock compensation expense, and rent expense.</p>
<p>Cash, cash equivalence, and investment securities totaled $312.8 million at March 31, 2019, compared to $347.5 million at December 31, 2018. We expect these funds will be used primarily for pre-commercialization activities and related infrastructure expansion, and, if our Lumateperone NDA is approved for schizophrenia, initial commercialization activities. It will also be used for the development of Lumateperone in our late-stage clinical programs, the development of our other product candidates including ITI-214, the continuation of manufacturing activities in connection with the development of Lumateperone and general operations.</p>
<p>This concludes our prepared remarks. Operator, will you please open the line for questions?</p>
<div class="interad"></div><h2>Questions and Answers:</h2>
<p><strong>Operator</strong></p>
<p>Thank you, Sir. Ladies and gentlemen, at this time, if you'd like to ask a question over the phone, please press * then 1 on your telephone keypad. We ask everybody who is participating in today's Q&A session, please limit yourself to one question and a follow-up. If your questions have been answered or you wish to remove yourself from the queue, simply press the # key.</p>
<p>Our first question will come from the line of Jessica Fye with JP Morgan. Your line is now open.</p>
<p><strong>Jessica Fye</strong> -- <em>JP Morgan -- Analyst</em></p>
<p>Hey, guys. Good morning. Thanks for taking my question. Have you had mid-cycle feedback from the FDA at this point? Have you heard whether there will be an advisory committee Lumateperone ahead of the September PDUFA date?</p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p>Hi. Thanks, Jessica. Thanks for the questions too. As you know, we have said at the beginning of this process that we are really not commenting on all of our day to day activities. With the FDA, we have continuously had conversations with them and questions, which are called requests for information, and we continue to. This is the normal course of business in getting through this NDA process. We have said from day one that we believe we are first in class new molecular to date and as such we expect to have an Ad Comm and we are preparing for an Ad Comm. We'll update you more as time goes on.</p>
<p><strong>Jessica Fye</strong> -- <em>JP Morgan -- Analyst</em></p>
<p>Okay. Great. As we think about the Bipolar phase 3 reading out this quarter, can you remind us when enrollment completed for the second Bipolar Depression trial? I'm just trying to think about when we could expect to see that topline results data within the quarter.</p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p>So, I don't remember the exact date. This is Sharon, again. I don't remember the exact date. The readout will be later this quarter.</p>
<p><strong>Jessica Fye</strong> -- <em>JP Morgan -- Analyst</em></p>
<p>Okay. Maybe just a last one on Bipolar Depression. For that ongoing phase 3 adjunctive study, is there any update you can provide on the enrollment progress for that one?</p>
<p><strong>Andrew Satlin</strong> -- <em>MD, Executive Vice President & Chief Medical Officer</em></p>
<p>We'll be able to provide an update on the enrollment and the approximate timeline for completion within the next few months.</p>
<p><strong>Jessica Fye</strong> -- <em>JP Morgan -- Analyst</em></p>
<p>Great. Thank you.</p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p>Sure.</p>
<p><strong>Operator</strong></p>
<p>Thank you. Our next question will come from the line of Brian Abrahams, RBC Capital Markets. Your line is now open.</p>
<p><strong>Owen</strong> -- <em>RBC Capital Markets -- Analyst</em></p>
<p>Hey, guys. This is Owen on for Brian. Thanks for taking the question. You talked a little bit about commercialization preparation. I wonder if we could get some more detail there whether it be on if you're targeting specialty psych centers or more primary care and thoughts on the size sales force you might need, and then whether or not you're planning to launch immediately following potential approval at the end of September. Thanks.</p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p>Mark, will you answer that, please?</p>
<p><strong>Mark Neumann</strong> -- <em>Executive Vice President, Chief Commercial Officer</em></p>
<p>Yep. Good morning, Owen, and thanks for your question. Let me give you some overview comments on our preparations. As I said in the prepared remarks, we over the past several months have been intensifying our efforts to be ready for launch early after approval. As we think about those preparations, there are really three areas. We think about shaping the market, shaping the product, and shaping the company. As I said in my prepared remarks, from a market perspective we are preparing to launch the Disease Awareness Campaign concurrent with APA. That's a really progressive step for us moving forward. From the company perspective, we really think about it in three areas. We think about hiring talented and experienced senior leadership. We have communicated before that we have the entire commercial leadership team on board at this stage. We think about the infrastructure that is going to be required to support our transition from a clinical stage organization to a fully integrated commercial organization. Those preparations are proceeding well. And we talk about the commercial capabilities across sales and marketing and managed care. We're very pleased with how that is going as well.</p>
<p>From a targeting perspective, yes, we plan to target those physicians who treat schizophrenia patients. As you can imagine, the majority of those are psychiatrists but there are other allied health professionals that also treat schizophrenia and we will be targeting those as well.</p>
<p><strong>Owen</strong> -- <em>RBC Capital Markets -- Analyst</em></p>
<p>Great. Thanks. That's really helpful.</p>
<p><strong>Operator</strong></p>
<p>Thank you. Our next question will come from the line of Ritu Baral with Cowen. Your line is now open.</p>
<p><strong>Subbu Nambi</strong> -- <em>Cowen -- Analyst</em></p>
<p>Hi. This is Subbu Nambi on for Ritu Baral. Thank you for taking my question. I have two questions. First one, I was wondering if the depression data from the schizophrenia study could have a lead on bipolar depression.</p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p>I'll ask Kim to take that one on, please.</p>
<p><strong>Kimberly E. Vanover</strong> -- <em>Senior Vice President-Early Stage Clinical Development & Translational Medicine</em></p>
<p>Hi. Thanks for the question. So, we do believe that the improvements in depression that we've seen in patients with schizophrenia and comorbid depression will translate favorably to other mood disorders, including bipolar depression and major depressive disorder. We also believe the safety profile that we've seen that's been favorable in our schizophrenia program will translate favorably to mood disorders as well.</p>
<p><strong>Subbu Nambi</strong> -- <em>Cowen -- Analyst</em></p>
<p>I see. My follow up question is are you getting a sense of the payer landscape? How have the conversations been so far?</p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p>I'm sorry. I don't think we could understand your question. Could you say it again?</p>
<p><strong>Subbu Nambi</strong> -- <em>Cowen -- Analyst</em></p>
<p>Are you getting a sense of the payer landscape? How have the conversations been so far with the payers?</p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p>Thanks. I'll ask Mark to answer that.</p>
<p><strong>Mark Neumann</strong> -- <em>Executive Vice President, Chief Commercial Officer</em></p>
<p>Sure. Thanks for the question. Yes. Across all of our customer areas with physicians and payers and patients, we're doing extensive market research and also have had the opportunity, particularly with payers, medical directors, and pharmacy directors, in an advisory board setting to understand the current dynamics of the market, to share with them the profile of Lumateperone. We've been pleased with the reaction to the profile. Our belief is in this marketplace there remains a significant unmet medical need for an anti-psychotic that is effective but has a safe and tolerable profile. We think that's the clinical profile that's emerging with Lumateperone. We believe we've got a very strong clinical value proposition and we've been engaging in an advisory setting with payers along those lines.</p>
<p><strong>Subbu Nambi</strong> -- <em>Cowen -- Analyst</em></p>
<p>Got it. Thank you. Thank you, guys, for taking my questions.</p>
<p><strong>Operator</strong></p>
<p>Thank you. Our next questions will come from the line of Marc Goodman with SCP Leerink. Your line is now open.</p>
<p><strong>Marc Goodman</strong> -- <em>SCP Leerink -- Analyst</em></p>
<p>Yes. Good morning. A couple of questions. First, with respect to the numbers, can you just give us a sense of spending and how you're thinking about spending as the year progresses in R&D and G&A as much as you're willing to talk about that? Second of all, can you talk about what data you will be having in San Francisco in a few weeks? Third, with respect to the bipolar depression, there was already a question asked but let me just ask it in a different way. Can you clarify the amount of time there was between the last patient that was enrolled in Study 401 versus Study 404, so we just have a sense of timing of these things? Thanks.</p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p>Okay. Thanks, Marc. I think we have a bunch of questions there. I'll ask Larry to talk about the numbers first and then we'll go from there.</p>
<p><strong>Larry Hineline</strong> -- <em>Senior Vice President Finance & Chief Financial Officer</em></p>
<p>Hi. This is Larry. We spent approximately $35 million in the first quarter and we expect that to increase as we go through the rest of the year and ramp up our pre-commercialization and our commercialization efforts as needed.</p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p>On the second question, the data in San Francisco, we'll be presenting our Lumateperone program including our efficacy and safety package, so the entire profile of the product. And the last question about the last patients enrolled, we don't have those numbers off the top of our head. The two studies will be locked, and data will be available simultaneously on the two studies later this quarter.</p>
<p><strong>Marc Goodman</strong> -- <em>SCP Leerink -- Analyst</em></p>
<p>Okay. Thanks.</p>
<p><strong>Operator</strong></p>
<p>Thank you. Just as a reminder, ladies and gentlemen, to ask a question that is * and then 1.</p>
<p>Our next question will come from the line of Robert Hazlett with BTIG. Your line is now open.</p>
<p><strong>Robert Hazlett</strong> -- <em>BTIG -- Analyst</em></p>
<p>Thank you. Thank you for taking the question. Could you give a little bit more color on the MDD indication and the specifics of the formulations that you're developing? And then, I guess, is the main characteristic that you're hoping to achieve in MDD the rapid onset? And if that's not the case, if you could describe any other characteristics that you hope to elucidate with Lumateperone in that study? That would be helpful. Thank you.</p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p>Thanks for the question. I'm not really sure I understand everything about the question. I mean, what we can say is these are different formulations of Lumateperone. I think since maybe Kim has some more understanding of your question and, yes, if you're asking if it's an injectable, it's not. It's not a long-acting injectable product. I don't know for further color if Kim would like to add anything to that.</p>
<p><strong>Kimberly E. Vanover</strong> -- <em>Senior Vice President-Early Stage Clinical Development & Translational Medicine</em></p>
<p>Sure. Just as a reminder, we're very excited about the potential of Lumateperone to treat depressive disorders. In particular, the pharmacology of Lumateperone supports a rapid-acting onset of effect with the indirect glutamate enhancement of neurotransmission through both NMDA and AMPA current downstream from the D1 receptor activation. Given the profile pharmacologically of Lumateperone, we're trying to optimize a novel formulation to be able to deliver a rapid-onset effect with combining the pharmacology and the route of administration. So, we have PK studies that are ongoing evaluating these things and we're excited about the opportunity and will be updating you as we move forward.</p>
<p><strong>Robert Hazlett</strong> -- <em>BTIG -- Analyst</em></p>
<p>That's very helpful. Thank you.</p>
<p><strong>Operator</strong></p>
<p>Thank you. Our next question will come from the line of Matt Kaplan with Ladenburg Thalmann. Your line is now open.</p>
<p><strong>Matt Kaplan</strong> -- <em>Ladenburg Thalmann -- Analyst</em></p>
<p>Hi. Good morning. I just wanted to dig in a little bit more into your commercialization preparation. Specifically, could you give us an idea of the size of the sales organization that you plan to have in place as you go into September around the PDUFA date and launch the product and after the launch, after approval? Also, give us a little bit more detail in terms of with the advisory committee meetings in terms of payers, with that output, what you're thinking about in terms of pricing. Start with those two and I have some more on commercialization.</p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p>Mark?</p>
<p><strong>Mark Neumann</strong> -- <em>Executive Vice President, Chief Commercial Officer</em></p>
<p>Yeah. Sure. Thanks for your question. I'll start with the sales force. What I would say about our sales force preparations is that we have a very good understanding of the size of the sales force that we'll need to support the launch of Lumateperone. We know which healthcare practitioners that we plan to target. We know the size of our competitor's sales forces. I guess the main message here is that we're going to size the sales force to be highly competitive in the offices of our target prescribers. As we proceed through the year and we get closer to the potential launch, we'll share more details about the configuration. But at this point, we prefer not to share that. The target prescribers that our sales force will be calling on will be those high prescribers who treat schizophrenia patients, as you can imagine.</p>
<p>In terms of the interactions that we've had with payers and how that's informing our strategy from pricing and contracting perspective, the interaction that we've had has been in a market research setting sharing with, as I said, medical directors and pharmacy directors the clinical profile that's emerging with Lumateperone. Getting their understanding of how they managed this category, what they see as the unmet need. So, with that, we have conducted a very comprehensive pricing strategy assessment and that indicates to us that we have a very strong value proposition with Lumateperone. Obviously, as we go through the next couple of months and we prepare for launch, we will continue to monitor the clinical landscape, the policy landscape, any competitive actions. That will all go into informing our final pricing and contracting strategies. Again, that's something that we're not sharing the details of at this point, but as we get closer to launch, we'll share more of that with you.</p>
<p><strong>Matt Kaplan</strong> -- <em>Ladenburg Thalmann -- Analyst</em></p>
<p>I guess, a follow up on that. Do you expect patients will have to step through other medications before they get to Lumateperone? What does your research show there? Maybe another way of asking the question in terms of the size of the sales force in terms of thinking about your cost of the launch and how we should think about that later this year going into next year.</p>
<p><strong>Mark Neumann</strong> -- <em>Executive Vice President, Chief Commercial Officer</em></p>
<p>So, let me address the first question on the payers. I think what you have to think about is the characteristic dynamic in the schizophrenia marketplace today is the idea that it's a chronic disease. These patients are frequently cycling through multiple medications because many of them, either due to inadequate efficacy or intolerable side effects, discontinue at a fairly high rate. The statistic that we've seen in a clinical study is that 75% of patients starting an antipsychotic will discontinue within 18 months. So, you have this dynamic where patients are frequently switching their medications. They are cycling through multiple medications. It's not unusual for a patient with schizophrenia to be on their third, or fourth, or fifth anti-psychotic. What that means is that there is an ongoing need for additional treatment options.</p>
<p>Most payers generally cover a broad range of antipsychotics because of this switching dynamic. What they tend to do to manage the utilization is through either a tiered structure which has the differential copay, or they put in place step edits and prior authorization. So, many payers will require a step through one or two generic products before providing access to the branded agent. But again, the dynamic in this marketplace is such that because patients are cycling through different lines of therapy, there is always a need for newer antipsychotics. I think that is demonstrated by some of the success that some of the branded products, newer banded products, in the market. I hope that answers your question there. Would you mind just repeating the second part of your question?</p>
<p><strong>Matt Kaplan</strong> -- <em>Ladenburg Thalmann -- Analyst</em></p>
<p>Yeah. That's very helpful. The second part of the question is if you can give us a sense in terms of how we should think about the cost of the launch going into later this year and next year given your lack of clarity, at this point, in terms of sharing the size of the sales organization.</p>
<p><strong>Mark Neumann</strong> -- <em>Executive Vice President, Chief Commercial Officer</em></p>
<p>Again, at this stage, for competitive reasons, we're not sharing the size of the sales force that we intend. I think the main message that I would communicate is that we do have a good understanding of what that needs to be in order to be successful with the launch. As we get closer to the potential approval, we'll share more of the details of that with you.</p>
<p><strong>Matt Kaplan</strong> -- <em>Ladenburg Thalmann -- Analyst</em></p>
<p>Great. Thanks a lot.</p>
<p><strong>Operator</strong></p>
<p>Thank you. Our next question will come from the line of Sumant Kulkarni with Canaccord. Your line is now open.</p>
<p><strong>Sumant Kulkarni</strong> -- <em>Canaccord -- Analyst</em></p>
<p>Good morning. Thanks for taking my questions. Both of them are on 214. First, on the data that was presented at ANN and the poster, could you talk a little bit about the dose dependence? If you look at the blocks in the poster, there seems to be a dose dependence up to the 30 mg point and then the 90 mg is somehow different. Could you help us conceptualize why that difference might be? Is it because of the baseline or something else?</p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p>Andy?</p>
<p><strong>Andrew Satlin</strong> -- <em>MD, Executive Vice President & Chief Medical Officer</em></p>
<p>Yeah. Sure. Thanks for stopping by the poster. It was nice chatting with you, and I guess we didn't get to all the questions. I'm happy to discuss that a little bit further. As you can see, the cohorts were relatively small. There were 8 patients in each cohort, six on drug and two on placebo. We didn't require a certain amount of baseline severity for inclusion in the trial. Patients had to have mild to moderate Parkinson's disease but without any specific requirements or either a certain amount of motor impairment or a certain amount of motor complications including dyskinesia. So, that probably accounts for a lot of the variability that we saw across the doses. I think, particularly since the baseline amount of motor impairment and the dyskinesia in the 90 mg group was less, that may account for why we saw less of an effect there. The important thing is that you could see that there were trends toward greater effect both in terms of treatment of dyskinesia when we got to the higher doses. That is suggestive of the effectiveness of the drug itself and gives us a lot of confidence going forward in terms of designing a more rigorous proof of concept phase 2 trial.</p>
<p><strong>Sumant Kulkarni</strong> -- <em>Canaccord -- Analyst</em></p>
<p>Got it. The follow up on 214 is are there any preliminary thoughts you can share on how dosing might be in the heart failure indication?</p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p>Yeah. Andy?</p>
<p><strong>Andrew Satlin</strong> -- <em>MD, Executive Vice President & Chief Medical Officer</em></p>
<p>Not really at this point. As we mentioned, we're in the second cohort studying 30 milligrams. We will be evaluating the data as we get it and determining how many cohorts we'll have in this trial and what dose we'll go up to. Until we've been able to do that, we wouldn't be able to say.</p>
<p><strong>Sumant Kulkarni</strong> -- <em>Canaccord -- Analyst</em></p>
<p>Got it. Thanks.</p>
<p><strong>Operator</strong></p>
<p>Thank you. I'm showing no further questions in the queue at this time. It is my pleasure to hand the conference over to Ms. Sharon Mates, Chief Executive Officer, for any closing comments or remarks.</p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p>Great. Thank you and thank you, everyone, for joining the call. Stay tuned. We'll have many updates as we go forward. It's a very exciting time for us at Intra-Cellular Therapies. With that, Operator, you can disconnect the call. Thank you.</p>
<p><strong>Operator</strong></p>
<p>Ladies and gentlemen, thank you for your participation in today's conference. This does conclude our program and we may all disconnect. Everybody have a wonderful day.</p>
<p><strong>Duration: 39 minutes</strong></p>
<h2>Call participants:</h2>
<p><strong>Juan Sanchez</strong> -- <em>Vice President of Investor Relations</em></p>
<p><strong>Sharon Mates</strong> -- <em>Founder, Chairman & Chief Executive Officer</em></p>
<p><strong>Mark Neumann</strong> -- <em>Executive Vice President, Chief Commercial Officer</em></p>
<p><strong>Andrew Satlin</strong> -- <em>MD, Executive Vice President & Chief Medical Officer</em></p>
<p><strong>Larry Hineline</strong> -- <em>Senior Vice President Finance & Chief Financial Officer</em></p>
<p><strong>Kimberly E. Vanover</strong> -- <em>Senior Vice President-Early Stage Clinical Development & Translational Medicine</em></p>
<p><strong>Jessica Fye</strong> -- <em>JP Morgan -- Analyst</em></p>
<p><strong>Owen</strong> -- <em>RBC Capital Markets -- Analyst</em></p>
<p><strong>Subbu Nambi</strong> -- <em>Cowen -- Analyst</em></p>
<p><strong>Marc Goodman</strong> -- <em>SCP Leerink -- Analyst</em></p>
<p><strong>Robert Hazlett</strong> -- <em>BTIG -- Analyst</em></p>
<p><strong>Matt Kaplan</strong> -- <em>Ladenburg Thalmann -- Analyst</em></p>
<p><strong>Sumant Kulkarni</strong> -- <em>Canaccord -- Analyst</em></p>
<p><a href="https://www.fool.com/quote/itci">More ITCI analysis</a></p>
<p><em>This article is a transcript of this conference call produced for The Motley Fool. While we strive for our Foolish Best, there may be errors, omissions, or inaccuracies in this transcript. As with all our articles, The Motley Fool does not assume any responsibility for your use of this content, and we strongly encourage you to do your own research, including listening to the call yourself and reading the company's SEC filings. Please see our </em><a href="https://www.fool.com/legal/terms-and-conditions/fool-rules"><em>Terms and Conditions</em></a><em> for additional details, including our Obligatory Capitalized Disclaimers of Liability.</em></p>
<p></p><div id="pitch"><p><strong>10 stocks we like better than Intra-Cellular Therapies</strong><br/>When investing geniuses David and Tom Gardner have a stock tip, it can pay to listen. After all, the newsletter they have run for over a decade, <em>Motley Fool Stock Advisor</em>, has quadrupled the market.*</p>
<p>David and Tom just revealed what they believe are the <a href="https://infotron.fool.com/infotrack/click?url=https%3A%2F%2Fwww.fool.com%2Fmms%2Fmark%2Fe-foolcom-sa-bbn-dyn%3Faid%3D8867%26source%3Disaeditxt0010449%26ftm_cam%3Dsa-bbn-evergreen%26ftm_pit%3D6312%26ftm_veh%3Dbbn_article_pitch%26company%3DIntra-Cellular%2520Therapies&impression=4581a2e3-f30f-4abc-8bb1-b5c405437ad8">ten best stocks</a> for investors to buy right now... and Intra-Cellular Therapies wasn't one of them! That's right -- they think these 10 stocks are even better buys.</p>
<p><a class="ticker_pitch" href="https://infotron.fool.com/infotrack/click?url=https%3A%2F%2Fwww.fool.com%2Fmms%2Fmark%2Fe-foolcom-sa-bbn-dyn%3Faid%3D8867%26source%3Disaeditxt0010449%26ftm_cam%3Dsa-bbn-evergreen%26ftm_pit%3D6312%26ftm_veh%3Dbbn_article_pitch%26company%3DIntra-Cellular%2520Therapies&impression=4581a2e3-f30f-4abc-8bb1-b5c405437ad8">See the 10 stocks</a></p>
<p><em><em><span style="color: #767676; font-size: 8pt;">*Stock Advisor returns as of March 1, 2019</span></em></em></p></div>
</span>
<span class="article-disclosure" data-content='<p><em><a href="http://boards.fool.com/profile/MFTranscription/info.aspx">Motley Fool Transcription</a> has no position in any of the stocks mentioned. The Motley Fool has no position in any of the stocks mentioned. The Motley Fool has a <a href="http://www.fool.com/Legal/fool-disclosure-policy.aspx">disclosure policy</a>.</em></p>'></span>
<div class="special-message">
<div class="promoboxAd">
<div id='div-promobox-81806' data-params='{"primary_tickers_companies": ["Intra-Cellular Therapies"], "uid": "", "divId": "div-promobox-81806", "pos": 0, "collection": "/earnings/call-transcripts", "height": 300, "seg": "default", "test_bucket": 12, "adtags": "[\"msn\", \"yahoo-money\", \"default-partners\"]", "services": [], "tstrId": "1Ses_3col-pf-246_var1_33", "segment": "default", "pitchId": null, "placement": "promobox", "primary_tickers": ["ITCI"], "headline": "Intra-Cellular Therapies, Inc. (ITCI) Q1 2019 Earnings Call Transcript", "session_count": 0, "width": 470, "ten_or_more_sessions": false, "bureau": "usmf-health-care", "position": 0, "tickers": "[\"\"]"}' class='promobox-content'></div><script type='text/javascript'>PitcherAds.get({"primary_tickers_companies": ["Intra-Cellular Therapies"], "uid": "", "divId": "div-promobox-81806", "pos": 0, "collection": "/earnings/call-transcripts", "height": 300, "seg": "default", "test_bucket": 12, "adtags": "[\"msn\", \"yahoo-money\", \"default-partners\"]", "services": [], "tstrId": "1Ses_3col-pf-246_var1_33", "segment": "default", "pitchId": null, "placement": "promobox", "primary_tickers": ["ITCI"], "headline": "Intra-Cellular Therapies, Inc. (ITCI) Q1 2019 Earnings Call Transcript", "session_count": 0, "width": 470, "ten_or_more_sessions": false, "bureau": "usmf-health-care", "position": 0, "tickers": "[\"\"]"});</script>
</div>
</div>
</section>
</div>
<aside class="column sidebar right article-page" id="sidebar-right">
<section class="related-content sidebar-content" id="sidebar-right-content">
<div class="info-card ad">
<!-- Create container for ad -->
<div id='div-sidebar1_desk-67719' class='dfp-ads ad'>
<script type="text/javascript">
googletag.cmd.push(function() {
googletag.display('div-sidebar1_desk-67719');
});
</script>
</div>
</div>
<section class="trending-articles-section">
<article class="ap-news-panel-article trending ">
<div class="label">Trending</div>
<ul class="ap-trending-articles-list">
<li><a href="/investing/2019/07/01/guess-who-just-became-amazons-biggest-shipper.aspx">Guess Who Just Became Amazon's Biggest Shipper</a></li>
<li><a href="/investing/2019/06/30/3-hot-growth-stocks-id-buy-right-now.aspx">3 Hot Growth Stocks I'd Buy Right Now</a></li>
<li><a href="/retirement/2019/07/01/3-reasons-people-dont-use-annuities-the-way-they-w.aspx">3 Reasons People Don't Use Annuities the Way They Were Meant to Be Used</a></li>
<li><a href="/retirement/2019/07/01/70-of-americans-arent-saving-for-retirement-for-th.aspx">70% of Americans Aren't Saving for Retirement for This Reason</a></li>
<li><a href="/investing/top-stocks-to-buy.aspx">20 of the Top Stocks to Buy in 2019 (Including the 2 Every Investor Should Own)</a></li>
</ul>
</article>
</section>
<!-- Related Tickers Section -->
<section class="related-tickers">
<div class="wayfinder with-rule">
<hr class="wayfinder-rule" />
<h2>Stocks</h2>
</div>
<div class="ticker-row" data-instrument-id="288785">
<div>
<span class="image-wrap">
<a href="https://www.fool.com/quote/nasdaq/intra-cellular-therapies/itci" class="quote-image">
<h5>ITCI</h5>
<img alt="Intra-Cellular Therapies Stock Quote"
data-img-src="https://g.foolcdn.com/image/?url=https%3A%2F%2Fg.foolcdn.com%2Fart%2Fcompanylogos%2Fmark%2FITCI.png&h=64&w=64&op=resize"
src="" />
</a>
</span>
<h3>Intra-Cellular Therapies</h3>
<h4 class="h-margin-b">
<span class="ticker">
<a title="Intra-Cellular Therapies Stock Quote" href="https://www.fool.com/quote/nasdaq/intra-cellular-therapies/itci">
NASDAQ:<span class="symbol">ITCI</span>
</a>
</span>
</h4>
<aside class="price-quote-container smaller">
<h4 class="current-price">
$13.79
</h4>
<h4 class="price-change-arrow price-pos">
<span style="position:absolute;left:-999em;">up</span>
<i class="fool-icon-arrow-up"></i>
</h4>
<h4 class="price-change-amount price-pos">
$0.81
</h4>
<h4 class="price-change-percent price-pos">
(6.20%)
</h4>
</aside>
</div>
</div>
</section>
<!-- Related Articles Section -->
<section class="read-more-section">
<section class="read-more-section ">
<div class="wayfinder with-rule">
<hr class="wayfinder-rule"/>
<h2>Related Articles</h2>
</div>
<ul class="two-line-list">
<li>
<a class="read-more-link" href="/investing/2019/07/01/is-walgreens-boots-alliance-a-buy.aspx">Is Walgreens Boots Alliance a Buy?</a>
</li>
<li>
<a class="read-more-link" href="/investing/2019/07/01/the-fourth-most-popular-pot-stock-was-downgraded-t.aspx">The Fourth-Most-Popular Pot Stock Was Downgraded Twice in June</a>
</li>
<li>
<a class="read-more-link" href="/investing/2019/07/01/the-best-marijuana-stocks-in-the-first-half-of-201.aspx">The Best Marijuana Stocks in the First Half of 2019</a>
</li>
<li>
<a class="read-more-link" href="/investing/2019/07/01/3-small-cap-biotech-stocks-that-soared-last-week.aspx">3 Small-Cap Biotech Stocks That Soared Last Week</a>
</li>
<li>
<a class="read-more-link" href="/investing/2019/07/01/this-is-the-top-marijuana-stock-to-buy-in-july.aspx">This Is the Top Marijuana Stock to Buy in July</a>
</li>
</ul>
</section>
</section>
<hr class="wayfinder-rule ad-scroll-marker" />
<div class="info-card ad ad-scroll">
<!-- Create container for ad -->
<div id='div-sidebar2_desk-55359' class='dfp-ads ad'>
<script type="text/javascript">
googletag.cmd.push(function() {
googletag.display('div-sidebar2_desk-55359');
});
</script>
</div>
</div>
</section>
</aside>
</div>
</div>
</div>
<div class="article-page-end">
<div id="share-box">
<span id="twitter_title" style="display: none">Intra-Cellular Therapies, Inc. (ITCI) Q1 2019 Earnings Call Transcript @themotleyfool #stocks $ITCI</span>
<a class="item" id="share-facebook" name="facebookShareButton" href="https://facebook.com/sharer/sharer.php?u=https://www.fool.com/earnings/call-transcripts/2019/05/08/intra-cellular-therapies-inc-itci-q1-2019-earnings.aspx" target="_blank" aria-label="Share on Facebook">
<svg class="fa-svg-icon"> <use xlink:href="#facebook-f"></use> </svg>
</a>
<a class="item" id="share-twitter" name="twitterShareButton" href="https://twitter.com/intent/tweet/?text=Intra-Cellular%20Therapies%2C%20Inc.%20%20%28ITCI%29%20Q1%202019%20Earnings%20Call%20Transcript%20%40themotleyfool%20%23stocks%20%24ITCI&url=https://www.fool.com/earnings/call-transcripts/2019/05/08/intra-cellular-therapies-inc-itci-q1-2019-earnings.aspx" target="_blank" aria-label="Share on Twitter">
<svg class="fa-svg-icon"> <use xlink:href="#twitter"></use> </svg>
</a>
<a class="item" id="share-linkedin" name="linkedinShareButton" href="https://www.linkedin.com/shareArticle?mini=true&url=https://www.fool.com/earnings/call-transcripts/2019/05/08/intra-cellular-therapies-inc-itci-q1-2019-earnings.aspx&title=Intra-Cellular%20Therapies%2C%20Inc.%20%20%28ITCI%29%20Q1%202019%20Earnings%20Call%20Transcript&summary=Intra-Cellular%20Therapies%2C%20Inc.%20%20%28ITCI%29%20Q1%202019%20Earnings%20Call%20Transcript&source=https://www.fool.com/earnings/call-transcripts/2019/05/08/intra-cellular-therapies-inc-itci-q1-2019-earnings.aspx" target="_blank" aria-label="Share on LinkedIn">
<svg class="fa-svg-icon"> <use xlink:href="#linkedin-in"></use> </svg>
</a>
<a class="item" id="share-email" name="emailShareButton" href="mailto:?subject=Intra-Cellular%20Therapies%2C%20Inc.%20%20%28ITCI%29%20Q1%202019%20Earnings%20Call%20Transcript&body=https://www.fool.com/earnings/call-transcripts/2019/05/08/intra-cellular-therapies-inc-itci-q1-2019-earnings.aspx" target="_self" aria-label="Share by E-Mail">
<svg class="fa-svg-icon"> <use xlink:href="#envelope"></use> </svg>
</a>
<a class="item" id="next-article" name="nextArticleButton" href="" aria-label="Next Article">
<span>Next Article</span>
<svg class="fa-svg-icon"> <use xlink:href="#chevron-right"></use> </svg>
</a>
</div>
<!--googleoff: all-->
<div id="pagination" class="pagination" style="clear:both;display:none;" data-show-incontent-ads="True">
<ul>
<li id="prev" class="page-prev"><a href="javascript:void(0)">Prev</a></li>
<li>
<ul>
<li><a href="/earnings/call-transcripts/2019/05/08/intra-cellular-therapies-inc-itci-q1-2019-earnings.aspx" id="1">1</a></li>
<li>
<a href="/earnings/call-transcripts/2019/06/28/nike-inc-nke-q4-2019-earnings-call-transcript.aspx" id="2">2</a>
</li>
<li>
<a href="/earnings/call-transcripts/2019/06/28/jinkosolar-holding-co-ltd-jks-q1-2019-earnings-cal.aspx" id="3">3</a>
</li>
<li>
<a href="/earnings/call-transcripts/2019/06/28/constellation-brands-inc-stz-q1-2020-earnings-call.aspx" id="4">4</a>
</li>
<li>
<a href="/earnings/call-transcripts/2019/06/28/barnes-noble-education-inc-bned-q4-2019-earnings-c.aspx" id="5">5</a>
</li>
<li>
<a href="/earnings/call-transcripts/2019/06/28/motorcar-parts-of-america-inc-mpaa-q4-2019-earning.aspx" id="6">6</a>
</li>
</ul>
</li>
<li id="next" class="page-next"><a href="javascript:void(0)">Next</a></li>
</ul>
</div>
<!--googleon: all-->
</div>
</section>
</section>
</div>
<footer class="footer" id="usmf-footer"></footer>
</div>
</div>
<div id="currently-active-desc" style="display:none;">Current</div>
<script type="text/javascript" src="//g.foolcdn.com/static/dubs/CACHE/js/db2d33607983.js" defer></script>
<script type="text/javascript" src="//g.foolcdn.com/misc-assets/tmf-top-hat-build.js?v=" defer></script>
<script type="text/javascript">
var dataLayer = dataLayer || [];
var md5HashedEmail = unescape(encodeURIComponent("d41d8cd98f00b204e9800998ecf8427e")).trim().toLowerCase();
var sha256HashedEmail = unescape(encodeURIComponent("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855")).trim().toLowerCase();
dataLayer.push({'EmailReady.hashed_email': md5HashedEmail});
dataLayer.push({'EmailReady.hashed_email_256': sha256HashedEmail});
dataLayer.push({'event': 'EmailReady'});
!function(l,a){a.liosetup=a.liosetup||{},a.liosetup.callback=a.liosetup.callback||[],a.liosetup.addEntityLoadedCallback=function(l,o){if("function"==typeof a.liosetup.callback){var i=[];i.push(a.liosetup.callback),a.liosetup.callback=i}a.lio&&a.lio.loaded?l(a.lio.data):o?a.liosetup.callback.unshift(l):a.liosetup.callback.push(l)}}(document,window);
window.liosetup.addEntityLoadedCallback(function(data){
if(typeof(data) !== "undefined" && typeof(data.segments) !== "undefined") {
dataLayer.push({'event': 'LyticsSegmentsReady', 'segments': data.segments});
window.googletag = window.googletag || {};
window.googletag.cmd.push(function () {
var lytics_segments_string = "";
for (var i = 0; i < data.segments.length; i++) {
if (data.segments[i].indexOf("dfp_") !== -1) {
if (lytics_segments_string != "") {
lytics_segments_string = lytics_segments_string + ", " + data.segments[i];
} else {
lytics_segments_string = data.segments[i];
}
}
}
window.googletag.pubads().setTargeting("LyticsSegments", lytics_segments_string);
});
}
});
</script>
<script type="text/javascript" src="//g.foolcdn.com/static/dubs/CACHE/js/7584638be392.js" defer></script>
<script type="text/javascript" src="//g.foolcdn.com/static/dubs/common/js/fool/endless_scroll.15d7b45a509c.js" defer></script>
<div id="fb-root"></div>
<script type="text/javascript" src="//g.foolcdn.com/static/dubs/CACHE/js/6c5ad9c18695.js" defer></script>
<script>
fool.insertScript('facebook-jssdk', '//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3', true);
fool.insertScript('twitter-wjs', '//platform.twitter.com/widgets.js', true);
</script>
<script>
if (typeof window.Infotrack !== "undefined") {
var infotrackUrl = '//g.foolcdn.com/mms/resources/js/infotrack_min.js';
Infotrack.load(infotrackUrl);
var infotrackInitializeWait = infotrackInitializeWait || 0;
setTimeout(function(){
window.Infotrack.initialize("usmf");
}, infotrackInitializeWait);
}
</script>
</body>
</html>
| 61.222108 | 1,408 | 0.616795 |
8442d135a2eafb1a092ee08f2ee14cc5dd07a1ca | 1,776 | html | HTML | _posts/2007-04-04-links_for_20070_2.html | twhume/twhume.github.io | 25fba2d149592b67d97d5211060b11a0eb7cd399 | [
"MIT"
] | null | null | null | _posts/2007-04-04-links_for_20070_2.html | twhume/twhume.github.io | 25fba2d149592b67d97d5211060b11a0eb7cd399 | [
"MIT"
] | null | null | null | _posts/2007-04-04-links_for_20070_2.html | twhume/twhume.github.io | 25fba2d149592b67d97d5211060b11a0eb7cd399 | [
"MIT"
] | null | null | null | ---
layout: post
title: links for 2007-04-04
date: 2007-04-04 00:00:00
---
<ul class="delicious">
<li>
<div class="delicious-link"><a href="http://blog.n-gage.com/archive/sleeve/">The Sleeve of Interactivity at Future Watch [Beta]</a></div>
<div class="delicious-tags">(tags: <a href="http://del.icio.us/twhume/nokia">nokia</a> <a href="http://del.icio.us/twhume/ui">ui</a> <a href="http://del.icio.us/twhume/sleeve">sleeve</a> <a href="http://del.icio.us/twhume/wii">wii</a>)</div>
</li>
<li>
<div class="delicious-link"><a href="http://www.timesonline.co.uk/tol/life_and_style/education/article1603332.ece">To fail them all their days?-Life & Style-Education-TimesOnline</a></div>
<div class="delicious-extended">"Younger pupils at Lancing College suffering an undefined practice called “bundling” or “the gauntlet” and being locked in the “room of doom”". Happiest days of your life, hmm.</div>
<div class="delicious-tags">(tags: <a href="http://del.icio.us/twhume/lancing">lancing</a> <a href="http://del.icio.us/twhume/bullying">bullying</a>)</div>
</li>
<li>
<div class="delicious-link"><a href="http://www.escapistmagazine.com/issue/91/6">The Escapist - Jesus Was Not a Gamer</a></div>
<div class="delicious-extended">Go's creation... the story tells of a special mountain with a maze-like ascent... two guys climb an ancient mountain and one comes back with a game under his arm that ponders the heavens, and another comes back with the foundation for modern lawmaking.</div>
<div class="delicious-tags">(tags: <a href="http://del.icio.us/twhume/go">go</a> <a href="http://del.icio.us/twhume/play">play</a> <a href="http://del.icio.us/twhume/gamer">gamer</a> <a href="http://del.icio.us/twhume/commandments">commandments</a>)</div>
</li>
</ul>
| 74 | 292 | 0.705518 |
b86f1512e72072386366f4a11acb1b9858c777be | 26,595 | asm | Assembly | Appl/Tools/ProtoBiffer/protoMain.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/Tools/ProtoBiffer/protoMain.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/Tools/ProtoBiffer/protoMain.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Appl/Tools/ProtoBiffer
FILE: protoMain.asm
AUTHOR: Don Reeves: July 29, 1991
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/29/91 Initial revision
DESCRIPTION:
Main routines for the protocol biffer application
$Id: protoMain.asm,v 1.1 97/04/04 17:15:11 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
idata segment
ProtoClass mask CLASSF_NEVER_SAVED
protocolBuffer ProtocolNumber <1, 0>
idata ends
udata segment
geodesCheckedCount word
geodesTweakedCount word
geodesFailureCount word
udata ends
Utils segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ProtoBegin
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Start the process of going through the GEOS tree and
modifying UI protocols
CALLED BY: GLOBAL (METHOD_PROTO_BEGIN)
PASS: DS, ES = Dgroup
RETURN: Nothing
DESTROYED: AX, BX, CX, DX, DI, SI, BP
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ProtoBegin method dynamic ProtoClass, METHOD_PROTO_BEGIN
.enter
; First verify that we have selected a GEOS tree
;
clr ds:[geodesCheckedCount]
clr ds:[geodesTweakedCount]
clr ds:[geodesFailureCount]
call FilePushDir
call VerifyGeosTree
jc done
; If everything is OK, display the action status box
;
call OpenActionStatusBox
; And begin the file enumerations
;
call EnumerateTree
; Close the action status box
;
call CloseActionStatusBox
; Display the results
;
call DisplayResultsBox
done:
call FilePopDir
.leave
ret
ProtoBegin endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VerifyGeosTree
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Grab the top-level directory that user has selected, and
verify that it is a GEOS tree.
CALLED BY: ProtoBegin
PASS: DS, ES = DGroup
RETURN: Carry = Clear if a GEOS tree
= Set otherwise
DESTROYED: AX, BX, CX, DX, DI, SI, BP
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
Sets current path to top of GEOS tree
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
kernelName byte 'GEOS.GEO', 0
kernelPath byte 'SYSTEM', 0
VerifyGeosTree proc near
sourcePath local PATH_BUFFER_SIZE dup (char)
uses ds
.enter
; Get the Path selected by the user
;
push bp ; save local variables frame
GetResourceHandleNS SourceSelector, bx
mov si, offset SourceSelector
mov ax, MSG_GEN_PATH_GET
mov cx, size sourcePath
mov dx, ss
lea bp, ss:[sourcePath] ; buffer => DX:BP
mov di, mask MF_CALL
call ObjMessage ; fill buffer, handle => CX
pop bp ; restore local variables
; Go to this directory, and then go to the SYSTEM subdirectory
;
mov bx, cx ; disk handle => BX
lea dx, ss:[sourcePath] ; path => DS:DX
call FileSetCurrentPath
jc error
call FilePushDir
clr bx
segmov ds, cs
mov dx, offset kernelPath
call FileSetCurrentPath
jc errorKernelDir
; Now check for the Kernel (non-EC)
;
segmov ds, cs
mov dx, offset kernelName ; file name => DS:DX
mov al, FullFileAccessFlags<1, FE_EXCLUSIVE, 0, 0, FA_READ_WRITE>
call FileOpen
jnc closeFile ; if no carry, success
cmp ax, ERROR_FILE_NOT_FOUND ; if not ERROR_FILE_NOT_FOUND
jne success ; then we have a GEOS directory
; Else we have an error. Display something to user
error:
mov cx, ss
lea dx, sourcePath ; CX:DX = path selected
mov ax, offset notGeosTreeText ; error to display => AX
call DisplayError ; show an error
stc
jmp done
success:
call FilePopDir ; current path is now system top
clc ; success (once inverted)
done:
.leave
ret
; Close the file we opened above
;
closeFile:
mov bx, ax ; file handle => BX
clr al ; ignore errors
call FileClose ; close the file
jmp success
; Pop the saved directory and be done
;
errorKernelDir:
call FilePopDir
jmp error
VerifyGeosTree endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
EnumerateTree
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Go through the entire GEOS tree, finding all geodes. The
callback routine does the actual work of determining what to
do with the protocol, etc.
CALLED BY: ProtoBegin, self
PASS: Nothing
RETURN: Nothing
DESTROYED: AX, BX, CX, DX, DI, SI
PSEUDO CODE/STRATEGY:
Start with current path, assumed set earlier.
Find all files in current directory
For each geode (*.GEO), call callback
Recurse on all directories in current directory
KNOWN BUGS/SIDE EFFECTS/IDEAS:
No assumptions are made as to where geodes can be found, so
this is slower than it could be.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
FILES_AT_ONE_TIME = 20 ; files to enumerate in one pass
EnumerateTree proc near
uses bp
.enter
; Some set-up work
;
call DisplayCurrentDirectory ; tell user where we are
clr bx ; start with an empty buffer handle
clr di ; skip no files initially
; Now grab FILES_AT_ONE_TIME files, until we have all of them
;
enumerate:
push bx ; save the previous file buffer
sub sp, size FileEnumParams
mov bp, sp ; FileEnumParams => SS:BP
mov ss:[bp].FEP_searchFlags, mask FESF_REAL_SKIP or \
mask FESF_DIRS or \
mask FESF_GEOS_EXECS
clr ss:[bp].FEP_matchAttrs.segment
clr ss:[bp].FEP_returnAttrs.segment
mov ss:[bp].FEP_returnAttrs.offset, FESRT_NAME_AND_ATTR
mov ss:[bp].FEP_returnSize, (size FENameAndAttr)
mov ss:[bp].FEP_bufSize, FILES_AT_ONE_TIME
mov ss:[bp].FEP_skipCount, di
call FileEnum ; load those files (cleans up stack)
jc done ; if error, stop file enumeration
tst dx ; any files left ??
jnz enumerate
; Now we have all of the files in one or more buffers
; Go through each buffer, and perform the appropriate action
; on each element found (of type FENameAndAttr)
;
jcxz doneFiles ; no files - we're done
bufferLoop:
clr si ; start at beginning of buffer
call MemLock
mov ds, ax
innerLoop:
test ds:[si].FENAA_attr, mask FA_SUBDIR
jnz handleRecursion
add si, offset FENAA_name
call MangleProtocol ; do the real work
nextFile:
add si, (size FENameAndAttr) - (offset FENAA_name)
loop innerLoop
call MemFree ; we're done - free the file buffer
doneFiles:
pop bx ; get the next buffer
mov cx, FILES_AT_ONE_TIME ; # of files in buffer => CX
tst bx ; any more buffers ?
jnz bufferLoop
push bx ; push a zero word on the stack
; We're done. Clean up. Dgroup is in ES. Pop stack until we get zero.
;
done:
pop bx ; clean up the stack
tst bx ; is the word zero ??
jz exit
call MemFree ; else free the memory handle
jmp done
exit:
segmov ds, es ; DGroup => DS
.leave
ret
; Handle recursion on directories
;
handleRecursion:
call FilePushDir ; save the current directory
add si, offset FENAA_name
push bx, cx, ds, si ; save some registers
mov dx, si ; directory name => DS:DX
clr bx ; user current disk handle
call FileSetCurrentPath
call EnumerateTree ; do this directory
pop bx, cx, ds, si ; restore registers
call FilePopDir ; restore old directory
call DisplayCurrentDirectory ; tell user where we are
jmp nextFile
EnumerateTree endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MangleProtocol
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Looks at the geode and determines what to do with it.
CALLED BY: GLOBAL
PASS: DS:SI = Geode longname
ES = DGroup
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
uiName byte 'Generic User Interface'
MangleProtocol proc near
uses ax, bx, cx, dx, di, si, bp
.enter
; Tell user what file we're working with
;
inc es:[geodesCheckedCount]
xchg ax, si ; filename => DS:AX
mov si, offset ActionStatusText ; GenTextObject => SI
call StuffTextObject ; stuff the text
; Open the file, and determine what to do
;
xchg dx, ax ; filename => DS:DX
mov al, FullFileAccessFlags<1, FE_EXCLUSIVE, 0, 0, FA_READ_WRITE>
call FileOpen ; file handle => AX
jc errorOpen
; Do we have the UI, or some other geode ??
;
xchg bx, ax ; file handle => BX
mov cx, (size uiName) ; bytes to check => CX
push es ; save DGroup
segmov es, cs
mov di, offset uiName ; UI name => ES:DI
mov si, dx ; file name => DS:SI
repe cmpsb ; check first CX bytes
pop es ; restore DGroup
jnz doGeode
call MangleUI
jc errorWrite ; if error, tell user
doGeode:
call MangleGeode
jc errorWrite ; if error, tell user
done:
clr al ; ignore (but deal with) errors
call FileClose ; close file handle in BX
exit:
.leave
ret
; We've encountered an error opening the file. Let the user know.
;
errorOpen:
inc es:[geodesFailureCount]
mov ax, offset cantOpenFileText
mov cx, ds
call DisplayError
jmp exit
; We've encountered an error writing to the file. Let the user know.
;
errorWrite:
inc es:[geodesFailureCount]
mov ax, offset fileWriteErrText
mov cx, ds
call DisplayError
jmp done
MangleProtocol endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MangleUI
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Change the UI's protocol to be something earlier than it
is currently, to prevent people from using a standard UI
geode.
CALLED BY: MangleProtocol
PASS: BX = File handle
RETURN: Carry = Set if error
= Clean if success
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MangleUI proc near
uses ax, cx, dx, ds
.enter
; Move to the GeosFileHeaderCore
;
mov al, FILE_POS_START
clr cx
mov dx, offset GFH_protocol ; seek position => CX:DX
call FilePos ; perform the seek
; Write a new protocol there
;
segmov ds, es
mov dx, offset protocolBuffer ; buffer => DS:DX
mov cx, size protocolBuffer ; # of bytes to write
clr al ; return errors
call FileWrite ; do the dirty deed
jc done
; Now move to the GeodeHEader
;
mov al, FILE_POS_START
clr cx
mov dx, size GeosFileHeader + \
size ExecutableFileHeader + \
offset GH_geodeProtocol
call FilePos
; Again write the new protocol
;
mov dx, offset protocolBuffer ; buffer => DS:DX
mov cx, size protocolBuffer ; # of bytes to write
clr al ; return errors
call FileWrite ; do the dirty deed
done:
.leave
ret
MangleUI endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MangleGeode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Search a geode for use of the UI library. If such use is
found, change the protocol accordingly.
CALLED BY: GLOBAL
PASS: BX = File handle
RETURN: Carry = Set if error
= Clear if success
DESTROYED: DI, SI, BP
PSEUDO CODE/STRATEGY:
Access the library entry points for this geode
Loop through the table of ImportedLibraryEntry's,
looknig for the UI. If found, change protocol
KNOWN BUGS/SIDE EFFECTS/IDEAS:
A lot of code is stolen from ProcessLibraryTable
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MangleGeode proc near
uses ax, cx, dx, ds
.enter
; Calculate offset for library table
;
call FindImportLibraryTable ; file offset => AX
jc exit ; if error, we're done
jcxz exit ; if no libraries, we're done
; Allocate stack space for library names
;
xchg bp, ax ; offset => BP
mov si, cx ; count (for later) => SI
mov ax, size ImportedLibraryEntry ; compute table size
mul cx
mov cx, ax ; table size => CX
mov dx, sp ; SP to recover => DX
sub sp, cx
mov di, sp
push dx ; save original stack pointer
; Read in library name table
;
push cx ; save table size
mov al, FILE_POS_START
clr cx
mov dx, bp ; file offset => CX:DX
call FilePos ; seek to start of table
pop cx ; table size => CX
segmov ds, ss
mov dx, di ; buffer => DS:DX
clr al
call FileRead
jc done
; Look for the UI library
;
mov cx, si ; count => CX
libraryLoop:
call LookForUI ; look for the UI
cmc ; invert the carry
jnc done
add bp, size ImportedLibraryEntry
add di, size ImportedLibraryEntry
loop libraryLoop
done:
pop dx
mov sp, dx ; clean up the stack
exit:
.leave
ret
MangleGeode endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FindImportLibraryTable
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Find the ImportedLibraryTable, given a geode file handle
CALLED BY: GLOBAL
PASS: BX = File handle
RETURN: Carry = Clear (success)
AX = Offset to start of ImportedLibraryTable
CX = Number of imported libraries
- or -
Carry = Set (failure)
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if ((size GeosFileHeader) ge (size ExecutableFileHeader))
TEMP_BUFFER_SIZE = size GeosFileHeader
else
TEMP_BUFFER_SIZE = size ExecutableFileHeader
endif
GEODE_FILE_TABLE_SIZE equ GH_geoHandle
FindImportLibraryTable proc near
uses bx, dx, di, si, bp, ds, es
.enter
; Position the file to its start
;
mov al, FILE_POS_START
clr cx
clr dx ; go to start of file
call FilePos
; Read the GeosFileHeader
;
segmov ds, ss ; use stack space
mov bp, sp
sub sp, TEMP_BUFFER_SIZE ; allocate buffer large enough
mov dx, sp ; buffer => DS:DX
push bp ; save original stack
mov bp, dx
clr al
mov cx, size GeosFileHeader ; bytes to read => CX
call FileRead
jc error ; if error, abort
; Check the file signature
;
cmp {word} ss:[bp].GFH_signature, GFH_SIG_1_2
jnz error
cmp {word} ss:[bp].GFH_signature+2,GFH_SIG_3_4
jnz error
cmp ss:[bp].GFH_type, GFT_EXECUTABLE
jnz error
; See if we have a specific UI. If so, change its protocol
; This is no longer required for 2.0. Yeah! -Don 8/4/00
;
;;; cmp {word} ss:[bp].GFH_token.GT_chars+0, 'SP'
;;; jne continue
;;; cmp {word} ss:[bp].GFH_token.GT_chars+2, 'UI'
;;; jne continue
;;; call MangleUI ; else muck with the UI file
;;; jc error
; Read in the executable file header
continue::
mov al, FILE_POS_START ; position correctly
clr cx
mov dx, size GeosFileHeader ; right after the header core
call FilePos
mov dx, bp ; buffer => DS:DX
clr al
mov cx, size ExecutableFileHeader ; bytes to read => CX
call FileRead
jc error
; Now determine where the f*** the library table begins
;
mov cx, ss:[bp].EFH_importLibraryCount
mov ax, size GeosFileHeader + \
size ExecutableFileHeader + \
GEODE_FILE_TABLE_SIZE
clc
jmp done
error:
stc
done:
pop bp
mov sp, bp ; restore the stack
.leave
ret
FindImportLibraryTable endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
LookForUI
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Check for a ImportedLibraryEntry using the UI library
CALLED BY: MangleGeode
PASS: ES = DGroup
SS:DI = ImportedLibraryEntry
BX = File handle
BP = Offset from start of file to ImportedLibraryEntry
RETURN: Carry = Set if found
= Clear if not
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
uiLibName char 'ui ' ; UI followed by six spaces
LookForUI proc near
uses ax, cx, dx, di, si, ds
.enter
; Look for the UI name
;
push es
segmov es, ss ; string => ES:DI
segmov ds, cs
mov si, offset uiLibName ; UI name => DS:SI
mov cx, GEODE_NAME_SIZE
repe cmpsb ; check first CX bytes
pop es
clc ; assume not found
jnz done
; Seek to the correct location in the file
;
mov ax, FILE_POS_START
clr cx
mov dx, bp
add dx, offset ILE_protocol ; file offset => CX:DX
call FilePos ; seek to correct location
; Now write the new protocol into the file
;
segmov ds, es
mov dx, offset protocolBuffer ; buffer => DS:DX
mov cx, size protocolBuffer ; # of bytes to write
clr al ; return errors
call FileWrite ; do the dirty deed
inc es:[geodesTweakedCount]
stc
done:
.leave
ret
LookForUI endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Status Display Procedures
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OpenActionStatusBox
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Open the Action Status dialog box
CALLED BY: INTERNAL
PASS: ES = DGroup
RETURN: Nothing
DESTROYED: AX, BX, CX, DX, DI, SI, BP
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 1/24/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
blankText byte 0
OpenActionStatusBox proc near
uses ds
.enter
; Set the current directory being displayed.
;
call DisplayCurrentDirectory
; Clear out the current text displays
;
segmov ds, cs
mov ax, offset blankText
mov si, offset ActionStatusText ; GenTextObject => SI
call StuffTextObject ; stuff the text
; Actually bring up the dialog box
;
GetResourceHandleNS ActionStatusBox, bx
mov si, offset ActionStatusBox
mov ax, MSG_GEN_INTERACTION_INITIATE
mov di, mask MF_CALL
call ObjMessage
.leave
ret
OpenActionStatusBox endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DisplayCurrentDirectory
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Show the current directory in the status box.
CALLED BY: OpenActionStatusBox
PASS: Nothing
RETURN: Nothing
DESTROYED: AX
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/ 6/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
dirText byte '<Scanning Directory>', 0
DisplayCurrentDirectory proc near
curdir local PATH_BUFFER_SIZE + VOLUME_BUFFER_SIZE + 4 dup(char)
uses bx, cx, dx, si, ds, es
.enter
;
; Find the disk handle of the current directory.
;
clr cx
call FileGetCurrentPath
;
; Point es:di to our buffer and store the initial [ there.
;
segmov es, ss
lea di, ss:[curdir]
mov al, '['
stosb
;
; Fetch the volume name from the disk handle.
;
call DiskGetVolumeName
;
; Find the null-terminator.
;
clr al
mov cx, size curdir - 1
repne scasb
;
; Store '] ' over the null terminator and the following byte
;
dec di
mov ax, ']' or (' ' shl 8)
stosw
dec cx
;
; Fetch the directory, now.
;
segmov ds, es
mov si, di
call FileGetCurrentPath
;
; Set the result as the text for the DirectoryText object.
;
mov ax, bp
add ax, offset curdir ; text => DS:AX
mov si, offset DirectoryText
call StuffTextObject
;
; Stuff in something to the file name text object
;
segmov ds, cs
mov ax, offset dirText ; text => DS:AX (unlocalizable)
mov si, offset ActionStatusText
call StuffTextObject
.leave
ret
DisplayCurrentDirectory endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
StuffTextObject
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Stuffs the source name text into the passed GenText object
CALLED BY: INTERNAL
PASS: DS:AX = Text
SI = Handle of GenText object in Interface resource
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 1/24/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
StuffTextObject proc near
uses ax, bx, cx, dx, bp, di
.enter
clr cx ; text is NULL terminated
mov dx, ds
xchg bp, ax ; text => DX:BP
mov ax, MSG_VIS_TEXT_REPLACE_ALL_PTR
GetResourceHandleNS Interface, bx
mov di, mask MF_CALL
call ObjMessage
.leave
ret
StuffTextObject endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CloseActionStatusBox
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Bring down the action status dialog box
CALLED BY: INTERNAL
PASS: Nothing
RETURN: Nothing
DESTROYED: AX, BX, CX, DX, DI, SI, BP
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 1/24/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CloseActionStatusBox proc near
.enter
; Bring down the dialog box
;
GetResourceHandleNS ActionStatusBox, bx
mov si, offset ActionStatusBox
mov ax, MSG_GEN_GUP_INTERACTION_COMMAND
mov cx, IC_DISMISS
mov di, mask MF_CALL
call ObjMessage
; Make a "done" noise
;
mov ax, SST_NOTIFY
call UserStandardSound
.leave
ret
CloseActionStatusBox endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DisplayResultsBox
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Open the Action Status dialog box
CALLED BY: INTERNAL
PASS: DS = DGroup
RETURN: Nothing
DESTROYED: AX, BX, CX, DX, DI, SI, BP
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 8/6/00 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DisplayResultsBox proc near
.enter
; Set the counts
;
GetResourceHandleNS Interface, bx
mov ax, MSG_GEN_VALUE_SET_INTEGER_VALUE
mov cx, ds:[geodesCheckedCount]
clr bp ; determinate
mov si, offset Interface:ResultsCheckedValue
clr di
call ObjMessage
mov ax, MSG_GEN_VALUE_SET_INTEGER_VALUE
mov cx, ds:[geodesTweakedCount]
clr bp ; determinate
mov si, offset Interface:ResultsTweakedValue
clr di
call ObjMessage
mov ax, MSG_GEN_VALUE_SET_INTEGER_VALUE
mov cx, ds:[geodesFailureCount]
clr bp ; determinate
mov si, offset Interface:ResultsFailureValue
clr di
call ObjMessage
; Finally, display the dialog box
;
mov si, offset Interface:ResultsBox
mov ax, MSG_GEN_INTERACTION_INITIATE
mov di, mask MF_CALL
call ObjMessage
.leave
ret
DisplayResultsBox endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Other Utilities
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DisplayError
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Display an error to the user
CALLED BY: GLOBAL
PASS: AX = Error string chunk handle
CX:DX = 1st string parameter
BX:SI = 2nd string parameter
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PROTO_ERROR_FLAGS equ CustomDialogBoxFlags<,CDT_WARNING, GIT_NOTIFICATION, >
DisplayError proc near
uses ax, bx, cx, dx, di, si, bp, ds
.enter
; Put up the error box (always an error for now)
;
sub sp, size StandardDialogParams
mov bp, sp
mov ss:[bp].SDP_customFlags, PROTO_ERROR_FLAGS
mov ss:[bp].SDP_stringArg1.segment, cx
mov ss:[bp].SDP_stringArg1.offset, dx
mov ss:[bp].SDP_stringArg2.segment, bx
mov ss:[bp].SDP_stringArg2.offset, si
mov_tr si, ax ; ProtoBifferError => SI
mov bx, handle Strings
call MemLock ; lock the block
mov ds, ax ; set up the segment
mov si, ds:[si] ; dereference the handle
mov ss:[bp].SDP_customString.segment, ax
mov ss:[bp].SDP_customString.offset, si
clr ss:[bp].SDP_helpContext.segment
call UserStandardDialog ; put up the dialog box
; Clean up
;
mov bx, handle Strings ; block handle to BX
call MemUnlock ; unlock the block
.leave
ret
DisplayError endp
Utils ends
| 23.025974 | 79 | 0.585223 |
a6747773ae14a5eaf801a731b83f5cb6bf0ac973 | 5,125 | kt | Kotlin | src/main/kotlin/stdlib/Stdlib.kt | WillBAnders/RhovasX | 3f9fa116f3f292de34d36bde96fea68afffda674 | [
"MIT"
] | 3 | 2020-08-31T23:57:56.000Z | 2020-11-15T17:27:14.000Z | src/main/kotlin/stdlib/Stdlib.kt | WillBAnders/RhovasX | 3f9fa116f3f292de34d36bde96fea68afffda674 | [
"MIT"
] | null | null | null | src/main/kotlin/stdlib/Stdlib.kt | WillBAnders/RhovasX | 3f9fa116f3f292de34d36bde96fea68afffda674 | [
"MIT"
] | 1 | 2020-09-08T17:45:52.000Z | 2020-09-08T17:45:52.000Z | package dev.willbanders.rhovas.x.stdlib
import dev.willbanders.rhovas.x.interpreter.Environment
import dev.willbanders.rhovas.x.parser.Diagnostic
import dev.willbanders.rhovas.x.parser.ParseException
import dev.willbanders.rhovas.x.parser.rhovas.RhovasAst
import dev.willbanders.rhovas.x.parser.rhovas.RhovasParser
import java.io.File
import java.nio.file.Files
import java.nio.file.Paths
object Stdlib {
fun init(env: Environment) {
val root = Paths.get("src/main/resources/stdlib")
Files.walk(root).filter { Files.isRegularFile(it) }.forEach {
getOrInit(env, root.relativize(it).toString().replace(".rho", "").replace("/", "."))
}
env.defType("Struct") { type ->
type.extds["Equatable"] = env.reqType("Equatable")
}
env.defType("Lambda") {}
env.defType("KeywordVariable") { type ->
type.defProp("val",
{ it[0].value as Environment.Object },
{ throw Exception("val is read only.") },
)
}
env.scope.funcs.putAll(env.reqType("Kernel").funcs)
}
private fun getOrInit(env: Environment, name: String): Environment.Type {
if (!env.scope.types.containsKey(name)) {
env.defType(name) { init(env, it) }
}
return env.reqType(name)
}
private fun init(env: Environment, type: Environment.Type) {
val input = File("src/main/resources/stdlib/${type.name.replace(".", "/")}.rho").readText()
val ast = try {
RhovasParser(input).parse()
} catch(e: ParseException) {
println(Diagnostic(type.name, input, e.error))
throw e
}
ast.mbrs.forEach { when(it) {
is RhovasAst.Mbr.Cmpt.Class -> it.extends.forEach { type.extds[it.name] = getOrInit(env, it.name) }
is RhovasAst.Mbr.Cmpt.Interface -> it.extends.forEach { type.extds[it.name] = getOrInit(env, it.name) }
} }
val clazz = Class.forName("dev.willbanders.rhovas.x.stdlib.${type.name}Kt")
val func = clazz.getDeclaredMethod("def${type.name.replace(".", "")}", Environment::class.java, Environment.Type::class.java)
func.invoke(null, env, type)
verify(ast, type)
}
private fun verify(ast: RhovasAst.Source, type: Environment.Type) {
val funcs = mutableSetOf<Pair<String, Int>>()
ast.mbrs.filterIsInstance<RhovasAst.Mbr.Cmpt.Class>().forEach { mbr ->
require(type.name == mbr.type.name) { "Unexpected component on type ${type.name}: ${mbr.type.name}." }
val props = mbr.mbrs.filterIsInstance<RhovasAst.Mbr.Property>().map { it.name }.toSet()
require(type.props.keys == props) { "Invalid properties on type ${type.name}: Expected " + (props - type.props.keys) + ", Unexpected " + (type.props.keys - props) + "."}
val mthds = mbr.mbrs.filterIsInstance<RhovasAst.Mbr.Function>().flatMap { func ->
listOf(Pair(func.name, func.params.size)) + (func.op?.let { listOf(Pair(it, func.params.size)) } ?: listOf())
}.toSet()
require(type.mthds.keys == mthds) { "Invalid methods on type ${type.name}: Expected " + (mthds - type.mthds.keys) + ", Unexpected " + (type.mthds.keys - mthds) + "."}
funcs.addAll(mbr.mbrs.filterIsInstance<RhovasAst.Mbr.Constructor>().map { Pair(mbr.type.name, it.params.size) })
}
ast.mbrs.filterIsInstance<RhovasAst.Mbr.Cmpt.Interface>().forEach { mbr ->
require(type.name == mbr.type.name) { "Unexpected component on type ${type.name}: ${mbr.type.name}." }
val props = mbr.mbrs.filterIsInstance<RhovasAst.Mbr.Property>().map { it.name }.toSet()
require(type.props.keys == props) { "Invalid properties on type ${type.name}: Expected " + (props - type.props.keys) + ", Unexpected " + (type.props.keys - props) + "."}
val mthds = mbr.mbrs.filterIsInstance<RhovasAst.Mbr.Function>().flatMap { func ->
listOf(Pair(func.name, func.params.size)) + (func.op?.let { listOf(Pair(it, func.params.size)) } ?: listOf())
}.toSet()
require(type.mthds.keys == mthds) { "Invalid methods on type ${type.name}: Expected " + (mthds - type.mthds.keys) + ", Unexpected " + (type.mthds.keys - mthds) + "."}
funcs.addAll(mbr.mbrs.filterIsInstance<RhovasAst.Mbr.Constructor>().map { Pair(mbr.type.name, it.params.size) })
}
val vars = ast.mbrs.filterIsInstance<RhovasAst.Mbr.Property>().map { it.name }.toSet()
require(type.vars.keys == vars) { "Invalid variables on type ${type.name}: Expected " + (vars - type.vars.keys) + ", Unexpected " + (type.vars.keys - vars) + "." }
funcs.addAll(ast.mbrs.filterIsInstance<RhovasAst.Mbr.Function>().map { Pair(it.name, it.params.size) }.toSet())
require(type.funcs.keys == funcs) { "Invalid functions on type ${type.name}: Expected " + (vars - type.vars.keys) + ", Unexpected " + (type.vars.keys - vars) + "." }
require(type.flds.keys.isEmpty()) { "Unexpected fields on type ${type.name}: ${type.flds.keys}." }
}
}
| 58.908046 | 181 | 0.618927 |
17b1a02a0c9b5ea63ccbf8ae086a95790a80b2bb | 1,747 | cs | C# | Useful/Classes/System.Windown.Form.Componentes/FormAssistenteRelatorio.cs | LHayate/Welic | 20407be32bc5db87cd564091c5491b6399b253a3 | [
"MIT"
] | null | null | null | Useful/Classes/System.Windown.Form.Componentes/FormAssistenteRelatorio.cs | LHayate/Welic | 20407be32bc5db87cd564091c5491b6399b253a3 | [
"MIT"
] | 1 | 2019-04-28T14:23:57.000Z | 2019-04-30T13:00:31.000Z | Useful/Classes/System.Windown.Form.Componentes/FormAssistenteRelatorio.cs | LHayate/Welic | 20407be32bc5db87cd564091c5491b6399b253a3 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using UseFul.Forms.Welic;
namespace UseFul.Forms.Welic
{
public partial class FormAssistenteRelatorio : FormWelic
{
public enum COpcaoVisualizacao { Tela = 1, Impressora = 2, Excel = 3, Word = 4, PDF = 5 };
private COpcaoVisualizacao _ov = COpcaoVisualizacao.Tela;
public COpcaoVisualizacao Ov
{
get { return _ov; }
set { _ov = value; }
}
public FormAssistenteRelatorio()
{
InitializeComponent();
}
private void toolStripBtnTela_Click(object sender, EventArgs e)
{
_ov = COpcaoVisualizacao.Tela;
txtOpcaoVisualizacao.Text = "VIDEO";
}
private void toolStripBtnImpressora_Click(object sender, EventArgs e)
{
_ov = COpcaoVisualizacao.Impressora;
txtOpcaoVisualizacao.Text = "IMPRESSORA";
}
private void toolStripBtnExcel_Click(object sender, EventArgs e)
{
_ov = COpcaoVisualizacao.Excel;
txtOpcaoVisualizacao.Text = "MICROSOFT EXCEL";
}
private void toolStripBtnWord_Click(object sender, EventArgs e)
{
_ov = COpcaoVisualizacao.Word;
txtOpcaoVisualizacao.Text = "MICROSOFT WORD";
}
private void toolStripBtnPDF_Click(object sender, EventArgs e)
{
_ov = COpcaoVisualizacao.PDF;
txtOpcaoVisualizacao.Text = "PDF";
}
private void btnGerar_Click(object sender, EventArgs e)
{
}
}
}
| 27.296875 | 98 | 0.616485 |
5dc53ac7cb3a2a9fd2d4ec6ac1659bb9f8144065 | 1,503 | dart | Dart | example/main.dart | TonicWorks/x509 | 1657035390332302c6181619e698433e417c83c5 | [
"BSD-3-Clause"
] | 5 | 2020-02-04T03:24:48.000Z | 2021-12-24T08:28:32.000Z | example/main.dart | TonicWorks/x509 | 1657035390332302c6181619e698433e417c83c5 | [
"BSD-3-Clause"
] | 12 | 2020-04-14T11:18:49.000Z | 2021-12-14T02:32:06.000Z | example/main.dart | TonicWorks/x509 | 1657035390332302c6181619e698433e417c83c5 | [
"BSD-3-Clause"
] | 18 | 2020-06-23T20:22:24.000Z | 2022-01-31T20:29:36.000Z | import 'package:x509/x509.dart';
import 'dart:io';
void main() {
var cert =
"-----BEGIN CERTIFICATE-----\nMIIDHDCCAgSgAwIBAgIIcYRws2sTxJkwDQYJKoZIhvcNAQEFBQAwMTEvMC0GA1UE\nAxMmc2VjdXJldG9rZW4uc3lzdGVtLmdzZXJ2aWNlYWNjb3VudC5jb20wHhcNMjEw\nNDA2MDkyMDIwWhcNMjEwNDIyMjEzNTIwWjAxMS8wLQYDVQQDEyZzZWN1cmV0b2tl\nbi5zeXN0ZW0uZ3NlcnZpY2VhY2NvdW50LmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD\nggEPADCCAQoCggEBAMoRTVdYXX6kW8oEplmvw5K2LnN3TSxdU2E4r3LKwY5wWEOI\nEJkgXq5mj+1D/AESJRE8eveVAKlR5/vBITPuJT99agjG/4vr9CNdEZjPc/TmqFmX\nwldeX/oE89LIoSuBKR/g3CRI17Z/0V/ZaeLwNlWz/A/L6+MEfEbgAIiSxXFkctXL\nTIWf3Ith24OTN8hVCgCaUWVLuY+FGprUnqQOqn1lpbtb1fgTSI/JAGXu6wsESyc3\nxslD2e4VyBQ1i+JoW3/VKydlODd3THydFRBHGPdJQkLH4ccDh2kQ4sWQ4vjupSsk\nBKMAvLqftpvVUo6LogEXNRmmI6sjluRlEvYk14kCAwEAAaM4MDYwDAYDVR0TAQH/\nBAIwADAOBgNVHQ8BAf8EBAMCB4AwFgYDVR0lAQH/BAwwCgYIKwYBBQUHAwIwDQYJ\nKoZIhvcNAQEFBQADggEBADFwIJVQERKO+x8Fx01ySjgSG6Rb81a17WQSCP2dlYmK\nFBvwaKK5tGVDt3RUnMgM5myEY11TX8yBF8UstxkqtMTzJh+K1hV6lC11YRqWzodq\nmJUBDuU39MYcRgoQn7szodBckdUGQlkTZti7xLApewkDpmR3Wx0KQBQpGt20Oaoq\nB2a5DVq4KsRirPtS71QvekM9Aars7pKrVNhxvXgkIMpiUAj3GJR5NAsJD0tsa9LM\nLvo31/AE1VKiRJ9ta21m15wO4CJyAiWvRbRiHDN9b9oXuJwUlzUgT0GFWHayt56e\nCYTU00dPphNMO1O07aqHq2O44/wPXYtQGDlHsg4sCeM=\n-----END CERTIFICATE-----\n";
var v = parsePem(cert).first as X509Certificate;
print(v.publicKey);
return;
var certRequest = parsePem(File('test/files/csr.pem').readAsStringSync())
.first as CertificationRequest;
print(certRequest.certificationRequestInfo.subject);
}
| 93.9375 | 1,167 | 0.888889 |
af083a65ab27b3a1095a60ff8e0f3d9c4201fa76 | 32,162 | html | HTML | doc/index.html | xach/skippy | e456210202ca702c792292c5060a264d45e47090 | [
"BSD-2-Clause"
] | 11 | 2017-10-08T22:53:07.000Z | 2022-02-08T09:45:54.000Z | doc/index.html | xach/skippy | e456210202ca702c792292c5060a264d45e47090 | [
"BSD-2-Clause"
] | 6 | 2017-03-05T16:27:51.000Z | 2020-09-25T18:15:07.000Z | doc/index.html | xach/skippy | e456210202ca702c792292c5060a264d45e47090 | [
"BSD-2-Clause"
] | 3 | 2017-08-14T20:57:13.000Z | 2020-09-25T17:57:27.000Z | <head>
<title>SKIPPY - Read and write GIF files with Common Lisp</title>
<style type="text/css">
a, a:visited { text-decoration: none }
a[href]:hover { text-decoration: underline }
pre { background: #DDD; padding: 0.25em }
p.download { color: red }
.transparent { background-image: url(background.gif) }
#content {
max-width: 50em; margin-left: auto; margin-right: auto;
font-family: sans-serif;
line-height: 1.4em;
background-color: white;
padding: 0.25em 1em 0.25em 1em;
}
body {
background-color: #f4eecf;
}
</style>
</head>
<body>
<div id="content">
<h2>SKIPPY - Read and write GIF files with Common Lisp</h2>
<blockquote class='abstract'>
<h3>Abstract</h3>
<p>GIF is a widely-supported indexed color image file format. SKIPPY
is a Common Lisp library that supports reading GIF87a and GIF89a files
and writing GIF89a files. SKIPPY supports images with animations,
transparency, comments, and other GIF features. SKIPPY is written
fully in Common Lisp and does not use an external library to read or
write image files. It is available under a BSD-like license.
The latest version is 1.3.12, released on March 12th, 2015.
<p>The canonical location for SKIPPY
is <a href="http://www.xach.com/lisp/skippy/">http://www.xach.com/lisp/skippy/</a>. Development
is on <a href="https://github.com/xach/skippy/">github</a>.
<p>SKIPPY is used by <a href="http://wigflip.com/">wigflip</a>.
<p><font color=red>Download shortcut:</font>
<a
href="http://www.xach.com/lisp/skippy.tgz">http://www.xach.com/lisp/skippy.tgz</a>
</blockquote>
<h3>Contents</h3>
<ol>
<li> <a href='#sect-limitations'>Limitations</a>
<li> <a href='#sect-concepts'>Concepts</a>
<li> <a href='#sect-examples'>Examples</a>
<li> <a href='#sect-dictionary'>Dictionary</a>
<ul>
<li> <a href='#sect-color-tables'>Color Tables</a>
<ul>
<li> <a href='#rgb-color'><tt>rgb-color</tt></a>
<li> <a href='#color-rgb'><tt>color-rgb</tt></a>
<li> <a href='#make-color-table'><tt>make-color-table</tt></a>
<li> <a href="#add-color"><tt>add-color</tt></a>
<li> <a href='#find-color'><tt>find-color</tt></a>
<li> <a href='#ensure-color'><tt>ensure-color</tt></a>
<li> <a href='#color-table-size'><tt>color-table-size</tt></a>
<li> <a href='#color-table-entry'><tt>color-table-entry</tt></a>
<li> <a href='#copy-color-table'><tt>copy-color-table</tt></a>
</ul>
<li> <a href='#sect-data-streams'>Data Streams</a>
<ul>
<li> <a href='#make-data-stream'><tt>make-data-stream</tt></a>
<li> <a href='#add-image'><tt>add-image</tt></a>
<li> <a href='#output-data-stream'><tt>output-data-stream</tt></a>
<li> <a href='#write-data-stream'><tt>write-data-stream</tt></a>
<li> <a href='#load-data-stream'><tt>load-data-stream</tt></a>
<li> <a href='#read-data-stream'><tt>read-data-stream</tt></a>
<li> <a href='#images'><tt>images</tt></a>
<li> <a href='#data-stream-dimensions'><tt>width</tt></a>
<li> <a href='#data-stream-dimensions'><tt>height</tt></a>
<li> <a href='#data-stream-accessors'><tt>color-table</tt></a>
<li> <a href='#data-stream-accessors'><tt>loopingp</tt></a>
<li> <a href='#data-stream-accessors'><tt>comment</tt></a>
<li> <a href='#last-image'><tt>last-image</tt></a>
<li> <a href='#add-delay'><tt>add-delay</tt></a>
</ul>
<li> <a href='#sect-images'>Images</a>
<ul>
<li><a href='#*default-delay-time*'><tt>*default-delay-time*</tt></a>
<li><a href='#make-image'><tt>make-image</tt></a>
<li><a href='#image-dimensions'><tt>width</tt></a>
<li><a href='#image-dimensions'><tt>height</tt></a>
<li><a href='#image-accessors'><tt>image-data</tt></a>
<li><a href='#image-accessors'><tt>top-position</tt></a>
<li><a href='#image-accessors'><tt>left-position</tt></a>
<li><a href='#image-accessors'><tt>color-table</tt></a>
<li><a href='#image-accessors'><tt>interlacedp</tt></a>
<li><a href='#image-accessors'><tt>disposal-method</tt></a>
<li><a href='#image-accessors'><tt>delay-time</tt></a>
<li><a href='#make-image-data'><tt>make-image-data</tt></a>
</ul>
<li> <a href='#sect-canvases'>Canvases</a>
<ul>
<li><a href='#make-canvas'><tt>make-canvas</tt></a>
<li><a href='#canvas-dimensions'><tt>width</tt></a>
<li><a href='#canvas-dimensions'><tt>height</tt></a>
<li><a href='#canvas-image'><tt>canvas-image</tt></a>
<li><a href='#canvas-dimensions'><tt>width</tt></a>
<li><a href='#canvas-dimensions'><tt>height</tt></a>
<li><a href='#pixel-ref'><tt>pixel-ref</tt></a>
<li><a href='#composite'><tt>composite</tt></a>
<li><a href='#fill-canvas'><tt>fill-canvas</tt></a>
<li><a href='#clone'><tt>clone</tt></a>
<li><a href='#rotate-180'><tt>rotate-180</tt></a>
<li><a href='#flip-horizontal'><tt>flip-horizontal</tt></a>
<li><a href='#flip-vertical'><tt>flip-vertical</tt></a>
<li><a href='#scale'><tt>scale</tt></a>
<li><a href='#fill-area'><tt>fill-area</tt></a>
</ul>
<li> <a href='#sect-warnings-and-conditions'>Warnings and
Conditions</a>
<ul>
<li> <a href='#skippy-warning'><tt>skippy-warning</tt></a>
<li> <a href='#skippy-error'><tt>skippy-error</tt></a>
<li> <a href='#lzw-error'><tt>lzw-error</tt></a>
<li> <a href='#unexpected-value'><tt>unexpected-value</tt></a>
<li> <a href='#missing-color-table'><tt>missing-color-table</tt></a>
<li> <a href='#color-table-full'><tt>color-table-full</tt></a>
<li> <a href='#signature-error'><tt>signature-error</tt></a>
</ul>
</ul>
<li><a href='#sect-feedback'>Feedback</a>
</ol>
<a name='sect-limitations'><h3>Limitations</h3></a>
<p>
<ul>
<li> Raster data is represented very simply, with a limited number of
pre-defined operations on it
<li> No interface available for writing out files incrementally; they
must be completely defined in memory, and then written
</ul>
<p>Alternatives:
<ul>
<li> <a href="http://weitz.de/cl-gd/">CL-GD</a> is a Common Lisp
interface to Thomas Boutell's <a href="http://www.boutell.com/gd/">GD
graphics library</a>. It includes a high-level interface to loading,
creating, and manipulating images.
<li> <a href="http://common-lisp.net/project/imago/">IMAGO</a> is an
image manipulation library in Common Lisp. It supports compositing,
several types of drawing, scaling, filters, and more.
<li> <a
href="http://cyrusharmon.org/cl/projects/ch-image/">ch-image</a> is an
image representation and processing library.
<li> <a href="http://ygingras.net/poly-pen">Poly-pen</a> is a graphics
library with high-level operations and multiple backends.
</ul>
<a name='sect-concepts'><h3>Concepts</h3></a>
<p>A GIF89a file consists of a <i>data stream</i> which contains zero
or more
<i>images</i> (although zero images wouldn't be very useful). In
addition to images, the data stream contains metadata such as the
logical dimensions of the overall image and an optional global color
table. Images contain the actual raster data that is displayed in a
graphics viewer, and may also be associated with metadata such as a
transparent color index, a local color table, and animation control
information.
<p>For more information about the GIF89a file format, see <a
href="http://www.w3.org/Graphics/GIF/spec-gif89a.txt">the GIF89a
Specification</a>.
<p>Creating a GIF file with SKIPPY is a three-part process:
<ol>
<li> Create a data stream
<li> Add zero or more images to the data stream
<li> Write the data stream out to a file
</ol>
<a name='sect-examples'><h3>Examples</h3></a>
<pre>
<img align=right src='example1.gif' border=1
>;;; Create an image filled with horizontal red stripes
(use-package '#:skippy)
(defun example1 ()
(let* ((height 100)
(width 100)
(data-stream (<a href="#make-data-stream">make-data-stream</a> :height height
:width width
:color-table t))
(image (<a href="#make-image">make-image</a> :height height :width width))
(red (<a href="#ensure-color">ensure-color</a> (<a href="#rgb-color">rgb-color</a> #xFF #x00 #x00)
(<a href="#color-table">color-table</a> data-stream)))
(white (<a href="#ensure-color">ensure-color</a> (<a href="#rgb-color">rgb-color</a> #xFF #xFF #xFF)
(<a href="#color-table">color-table</a> data-stream))))
(<a href="#add-image">add-image</a> image data-stream)
(fill (<a href="#image-data">image-data</a> image) white)
(dotimes (i (truncate height 2))
(let* ((start (* i width 2))
(end (+ start width)))
(fill (<a href="#image-data">image-data</a> image) red :start start :end end)))
(<a href="#output-data-stream">output-data-stream</a> data-stream #p"example1.gif")))
</pre>
<p><pre>
<img align=right src='example2.gif' border=1
>;;; Make a small "sprite" move across an image
(use-package '#:skippy)
(defun example2 ()
(let* ((height 9)
(width 99)
(color-table (<a href="#make-color-table">make-color-table</a>))
(data-stream (<a href="#make-data-stream">make-data-stream</a> :height height
:width width
:color-table color-table))
(gray (<a href="#ensure-color">ensure-color</a> #xCCCCCC color-table))
(white (<a href="#ensure-color">ensure-color</a> #xFFFFFF color-table))
(black (<a href="#ensure-color">ensure-color</a> #x000000 color-table))
(bg (<a href="#make-image">make-image</a> :data-stream data-stream
:width width :height height
:image-data (<a href="#make-image-data">make-image-data</a> height width
:initial-element gray)))
(sprite-data (<a href="#make-image-data">make-image-data</a> 3 3)))
(flet ((hatch-data (data color1 color2)
(dotimes (i (length data))
(setf (aref data i) (if (zerop (mod i 2)) color1 color2)))))
(hatch-data sprite-data white black)
(hatch-data (image-data bg) white gray)
(dotimes (i 96)
(let ((image (<a href="#make-image">make-image</a> :height 3
:width 3
:image-data sprite-data
:delay-time 10
:disposal-method :restore-previous
:transparency-index white
:top-position 3
:left-position i)))
(<a href="#add-image">add-image</a> image data-stream)))
(setf (<a href="#loopingp">loopingp</a> data-stream) t)
(<a href="#output-data-stream">output-data-stream</a> data-stream #p"example2.gif"))))
</pre>
<p><pre>
<img border=1 align=right src='example3.gif'
>;;; Overlapping rectangles of random colors
(use-package '#:skippy)
(defun example3 ()
(let* ((height 100)
(width 100)
(color-count 256)
(color-table (<a href="#make-color-table">make-color-table</a>))
(data-stream (<a href="#make-data-stream">make-data-stream</a> :color-table color-table
:loopingp t
:height height
:width width)))
(dotimes (i color-count)
(<a href="#add-color">add-color</a> (<a href="#rgb-color">rgb-color</a> (random 256) (random 256) (random 256))
color-table))
(dotimes (i color-count)
(let* ((top (random height))
(left (random width))
(h (1+ (random (- height top))))
(w (1+ (random (- width left))))
(image (<a href="#make-image">make-image</a> :height h
:width w
:data-stream data-stream
:top-position top
:left-position left
:image-data (make-image-data w h
:initial-element (random color-count))
:delay-time 5)))
(<a href="#add-image">add-image</a> image data-stream)))
(<a href="#output-data-stream">output-data-stream</a> data-stream #p"example3.gif")))
</pre>
<a name='sect-dictionary'><h3>Dictionary</h3></a>
<p>The following symbols are exported from the <tt>SKIPPY</tt>
package.
<a name='sect-color-tables'><h4>Color Tables</h4></a>
<p>Color tables are used to store a mapping between a small (<256)
numerical index and the actual the color used when displaying an
image. There may be one global color table stored in the data
stream. Each image may also have its own local color table. If an
image does not have a local color table, the global color table must
be present for the GIF file to be written.
<p>In SKIPPY, colors are designated by 24-bit unsigned integers. The
top 8 bits represent the red component, the middle 8 bits represent
the blue component, and the bottom 8 bits represent the green
component. For example, interpreted as a color, the Lisp literal
#x<font color=red>FF</font><font color=green>FF</font><font
color=blue>FF</font> has a red component of #xFF or 255, a green
component of #xFF, and a blue component of #xFF. Together, these three
components make white.
<p>The function <a href='#rgb-color'><tt>RGB-COLOR</tt></a> makes it
easy to construct colors from their individual components.
<p><a name='rgb-color'>[Function]</a><Br>
<b>rgb-color</b> <i>red</i> <i>green</i> <i>blue</i> => <i>color</i>
<blockquote>
Returns a 24-bit number representing the color with the numeric color
components <i>red</i>, <i>green</i>, and <i>blue</i>.
</blockquote>
<p><a name='color-rgb'>[Function]</a><br>
<b>color-rgb</b> <i>color</i> => <i>red</i>, <i>green</i>, <i>blue</i>
<blockquote>
Returns the RGB color components of <i>color</i> as multiple values
</blockquote>
<p><a name='make-color-table'>[Function]</a><br>
<b>make-color-table</b> <tt>&key</tt> <i>initial-contents</i>
=> <i>color-table</i>
<blockquote>
Creates and returns a new color table. The colors in the list
<i>initial-contents</i>, if any, are added to the table in order as if
with <a href='#add-color'><tt>ADD-COLOR</tt></a>.
</blockquote>
<p><a name='add-color'>[Function]</a><br>
<b>add-color</b> <i>color</i> <i>color-table</i> => <i>index</i>
<blockquote>
Adds <i>color</i> to <i>color-table</i> and returns the new color's
index. Indexes start at 0 and increase sequentially. If the color
table already has the maximum number of entries (256), an error is
signaled.
</blockquote>
<p><a name='find-color'>[Function]</a><br>
<b>find-color</b> <i>color</i> <i>color-table</i> => <i>index</i>
<blockquote>
If <i>color</i> is present in <i>color-table</i>, returns its index,
otherwise returns nil.
</blockquote>
<p><a name='ensure-color'>[Function]</a><br>
<b>ensure-color</b> <i>color</i> <i>color-table</i> => <i>index</i>
<blockquote>
If <i>color</i> is present in <i>color-table</i>, returns its existing
index, otherwise adds <i>color</i> and returns the new
index. Essentially a combination of <a
href="#find-color"><tt>FIND-COLOR</tt></a> and, if necessary, <a
href="#add-color"><tt>ADD-COLOR</tt></a>.
</blockquote>
<p><a name='color-table-size'>[Function]</a><br>
<b>color-table-size</b> <i>color-table</i> => <i>size</i>
<blockquote>
Returns the number of entries in <i>color-table</i>.
</blockquote>
<p><a name='color-table-entry'>[Accessor]</a><br>
<b>color-table-entry</b> <i>color-table</i> <i>index</i> =>
<i>color</i><br>
(setf (<b>color-table-entry</b> <i>color-table</i> <i>index</i>)
<i>color</i>) => <i>color</i>
<blockquote>
Gets or sets the color at <i>index</i> in <i>color-table</i>.
</blockquote>
<p><a name='copy-color-table'>[Function]</a><br>
<b>copy-color-table</b> <i>color-table</i> => <i>new-color-table</i>
<blockquote>
Returns a copy of <i>color-table</i>.
</blockquote>
<a name="sect-data-streams"><h4>Data Streams</h4></a>
<p>Data streams are the containers for images and other metadata.
<p>The height and width of the data stream should be as large as or
larger than the height and width of any image it contains; some
software will not display the resulting images otherwise.
<p><a name='make-data-stream'>[Function]</a><br>
<b>make-data-stream</b> <tt>&key</tt>
<i>height</i> <i>width</i>
<i>color-table</i> <i>loopingp</i>
<i>comment</i> <i>initial-images</i>
=> <i>data-stream</i>
<blockquote>
Creates and returns a new data stream object.
<p><i>height</i> and <i>width</i> are required and represent the
logical dimensions of the displayed image.
<p><i>color-table</i> represents the global color table, and may be one
of: NIL, meaning that there is no global color table; <tt>T</tt>,
designating an automatically created new color table; or an existing
color table object.
<p>If <i>loopingp</i> is non-NIL, the frames in the image will
redisplay from the beginning after reaching the end.
<p>If <i>comment</i> is non-NIL, it should be a string to be used as
an embedded comment in the output file.
<p>All images in the list <i>initial-images</i> are added to the new
data stream as if with <a href="#add-image"><tt>ADD-IMAGE</tt></a>.
</blockquote>
<p><a name='add-image'>[Function]</a><br>
<b>add-image</b> <i>image</i> <i>data-stream</i> => |
<blockquote>
Adds <i>image</i> to <i>data-stream</i>.
</blockquote>
<p><a name='output-data-stream'>[Function]</a><br>
<b>output-data-stream</b> <i>data-stream</i> <i>file</i>
<tt>&key</tt> <i>(if-exists <tt>:supersede</tt>)</i> =>
<i>pathname</i>
<blockquote>
Writes <i>data-stream</i> in GIF89a format to <i>file</i> and returns
the truename of
<i>file</i>. <i>if-exists</i> may be any of the values accepted by the <tt>:IF-EXISTS</tt> argument to <tt>CL:OPEN</tt>.
</blockquote>
<p><a name='write-data-stream'>[Function]</a><br>
<b>write-data-stream</b> <i>data-stream</i> <i>stream</i> => |
<blockquote>
Writes <i>data-stream</i> in GIF89a format to <i>stream</i> and
returns no value. The stream should accept
<tt>(UNSIGNED-BYTE 8)</tt> data via <tt>CL:WRITE-BYTE</tt> and
<tt>CL:WRITE-SEQUENCE</tt>.
</blockquote>
<p><a name='load-data-stream'>[Function]</a><br>
<b>load-data-stream</b> <i>file</i> => <i>data-stream</i>
<blockquote>
Reads GIF data from <i>file</i> and returns a SKIPPY data stream
object. Some caveats apply:
<ul>
<li> If multiple comments are present in the file, only the last
comment is saved in the resulting data stream
<li> All GIF Plain Text Extension blocks are silently ignored
(however, no software actually supports the Plain Text Extension
anyway)
</ul>
<p>
</blockquote>
<p><a name='read-data-stream'>[Function]</a><br>
<b>read-data-stream</b> <i>stream</i> => <i>data-stream</i>
<blockquote>
Reads a GIF89a or GIF87a data stream from <i>stream</i> and returns it
as a SKIPPY data stream object. The stream should be compatible with
reading <tt>(UNSIGNED-BYTE 8)</tt> data via <tt>CL:READ-BYTE</tt>
and <tt>CL:READ-SEQUENCE</tt>.
</blockquote>
<p><a name='images'>[Function]</a><br>
<b>images</b> <i>data-stream</i> => <i>image-vector</i>
<blockquote>
Returns a vector containing the images present in <i>data-stream</i>.
</blockquote>
<p><a name='data-stream-dimensions'>[Functions]</a><br>
<b>width</b> <i>data-stream</i> => <i>width</i><br>
<b>height</b> <i>data-stream</i> => <i>height</i>
<blockquote>
Returns the width and height of <i>data-stream</i>, respectively.
</blockquote>
<p><a name='data-stream-accessors'>[Accessors]</a><br>
<b>color-table</b> <i>data-stream</i> => <i>color-table</i><br>
<b>loopingp</b> <i>data-stream</i> => <i>boolean</i><br>
<b>comment</b> <i>data-stream</i> => <i>string</i>
<blockquote>
Accessors; get or set the respective properties of
<i>data-stream</i>. See <a
href='#make-data-stream'><tt>MAKE-DATA-STREAM</tt></a> for more
details.
</blockquote>
<p><a name='last-image'>[Function]</a><br>
<b>last-image</b> <i>data-stream</i> => <i>image</i>
<blockquote>
Returns the last image of <i>data-stream</i>, or NIL if the data
stream does not have any images.
</blockquote>
<p><a name='add-delay'>[Function]</a><br>
<b>add-delay</b> <i>delay</i> <i>data-stream</i> => <i>new-delay</i>
<blockquote>
Increments the <a href="#image-accessors"><tt>DELAY-TIME</tt></a> of the
last image in <i>data-stream</i> by <i>delay</i> hundredths of a
second, and returns the new value.
<p>This has the effect of adding a pause to the current point in the
animation.
<p>If there are no images in <i>data-stream</i>, returns NIL and has
no effect.
</blockquote>
<a name='sect-images'><h4>Images</h4></a>
<p>Images contain the actual raster data that is displayed when
viewing a GIF. If there is more than one image in a data stream, they
are displayed in sequence as an animation.
<p>Images may be smaller than the logical dimensions of the data
stream. They may also be placed at arbitrary offsets from the top and
left of the logical screen.
<p>Image data is stored as a one-dimensional vector of color table
indexes. The first element in the vector corresponds to the upper-left
corner of the image, and the last element in the vector corresponds to
the lower-right corner of the image. The <a href='#sect-canvases'>canvas
functions</a> make it easier to treat an image as a two-dimensional
array of pixels.
<p><a name='*default-delay-time*'>[Special variable]</a><br>
<b>*default-delay-time*</b> => 100
<blockquote>
The default value for the <a
href="#image-accessors"><tt>DELAY-TIME</tt></a> of an image, in
hundredths of a second. The initial value is 100.
</blockquote>
<p><a name='make-image'>[Function]</a><br>
<b>make-image</b> <tt>&key</tt>
<i>height</i> <i>width</i>
<i>image-data</i>
<i>data-stream</i>
<i>top-position</i> <i>left-position</i>
<i>color-table</i>
<i>interlacedp</i>
<i>delay-time</i>
<i>transparency-index</i>
<i>disposal-method</i> => <i>image</i>
<blockquote>
Creates and returns a new image object.
<p><i>height</i> and <i>width</i> represent the dimensions of the
image.
<p><i>image-data</i>, if supplied, should be a vector with <tt>(*
width height)</tt> elements of type <tt>(unsigned-byte 8)</tt>. If
<i>image-data</i> is not supplied, a new vector of the appropriate
size and type is created for the image automatically.
<p><i>data-stream</i>, if supplied, is the data stream which contains
the image.
<p><i>top-position</i> and <i>left-position</i>, if supplied, are the
offsets from the top and left of the logical screen at which this
image is displayed. If not provided, a default of 0 is used.
<p><i>color-table</i> represents the local color table, and may be one
of: NIL, meaning that there is no local color table; <tt>T</tt>,
designating an automatically created new color table; or an existing
color table object.
<p>If <i>interlacedp</i> is non-NIL, the image data will be written
out with the rows interlaced. See Appendix E of <a
href="http://www.w3.org/Graphics/GIF/spec-gif89a.txt">the GIF89a
specification</a> for more information.
<p><i>delay-time</i> is the time, in hundredths of a second, to
display this image before displaying the next image in the data
stream. If not provided, the value of <a
href='#*default-delay-time*'><tt>*DEFAULT-DELAY-TIME*</tt></a> is used.
<p>If specified, the color at <i>transparency-index</i> will not be
displayed if it is present in the image raster data; instead, any
pixel with that index will be transparent.
<p><i>disposal-method</i> is the way the image is updated when the
next image in the data stream is to be displayed. Possible values are:
<ul>
<li> <tt>:UNSPECIFIED</tt> - Do not erase the image from the display
when displaying the next frame. This is the default value if
<i>disposal-method</i> is not supplied.
<li> <tt>:NONE</tt> - Do not erase the image.
<li> <tt>:RESTORE-BACKGROUND</tt> - The image is removed and the
background is made visible.
<li> <tt>:RESTORE-PREVIOUS</tt> - The image is removed and the
previous state of the logical image is restored.
</ul>
</blockquote>
<p><a name='image-dimensions'>[Functions]</a><br>
<b>width</b> <i>image</i> => <i>width</i><br>
<b>height</b> <i>image</i> => <i>height</i>
<blockquote>
Returns the width and height of <i>image</i>, respectively.
</blockquote>
<p><a name='image-accessors'>[Accessors]</a><br>
<b>image-data</b> <i>image</i> => <i>image-data</i><br>
<b>top-position</b> <i>image</i> => <i>top-position</i><br>
<b>left-position</b> <i>image</i> => <i>left-position</i><br>
<b>color-table</b> <i>image</i> => <i>color-table</i><br>
<b>interlacedp</b> <i>image</i> => <i>boolean</i><br>
<b>disposal-method</b> <i>image</i> => <i>disposal-method</i><br>
<b>delay-time</b> <i>image</i> => <i>delay-time</i><br>
<b>transparency-index</b> <i>image</i> => <i>index</i>
<blockquote>
Accessors; get or set the respective properties of <i>image</i>. See
<a href='#make-image'><tt>MAKE-IMAGE</tt></a> for more details.
</blockquote>
<p><a name='make-image-data'>[Function]</a><br>
<b>make-image-data</b> <i>width</i> <i>height</i>
<tt>&key</tt> <i>(initial-element 0)</i> <i>initial-contents</i>
=> <i>image-data</i>
<blockquote>
Returns a vector suitable for use as an image's image-data.
</blockquote>
<a name='sect-canvases'><h4>Canvases</h4></a>
<p>Canvases are similar to images, but they do not have GIF-specific
metadata. They contain only information about their dimensions and a
vector of raster data.
<p>Most functions that operate on canvases also operate on images.
<p><a name='make-canvas'>[Function]</a><br>
<b>make-canvas</b> <tt>&key</tt> <i>height</i> <i>width</i>
<i>image-data</i> => <i>canvas</i>
<blockquote>
Creates and returns a new canvas object.
<p><i>height</i> and <i>width</i> are required.
<p><i>image-data</i>, if supplied, should be a vector with <tt>(*
width height)</tt> elements of type <tt>(unsigned-byte 8)</tt>. If
<i>image-data</i> is not supplied, a new vector of the appropriate
size and type is created for the canvas automatically.
</blockquote>
<p><a name='canvas-dimensions'>[Functions]</a><br>
<b>width</b> <i>canvas</i> => <i>width</i><br>
<b>height</b> <i>canvas</i> => <i>height</i>
<blockquote>
Returns the width and height of <i>canvas</i>, respectively.
</blockquote>
<p><a name='pixel-ref'>[Accessor]</a><br>
<b>pixel-ref</b> <i>canvas</i> <i>x</i> <i>y</i> => <i>index</i><br>
(setf (<b>pixel-ref</b> <i>canvas</i> <i>x</i> <i>y</i>) <i>index</i>) => <i>index</i>
<blockquote>
Gets or sets the color table index at position <i>x</i>,<i>y</i> in
<i>canvas</i>.
</blockquote>
<p><a name='canvas-image'>[Function]</a><br>
<b>canvas-image</b> <i>canvas</i> => <i>image</i>
<blockquote>
Creates an image object that has the same dimensions as <i>canvas</i>
and which <b>shares</b> the canvas's image-data. That is, any updates
to the image-data of <i>image</i> or <i>canvas</i> will operate on the
same data.
</blockquote>
<p><a name='composite'>[Function]</a><br>
<b>composite</b> <i>source</i> <i>dest</i>
<tt>&key</tt>
<i>(sx 0)</i> <i>(sy 0)</i>
<i>(dx 0)</i> <i>(dy 0)</i>
<i>width</i> <i>height</i> =>
<blockquote>
Copies the region of <i>source</i> starting at position
<i>sx</i>,<i>sy</i> to <i>dest</i> at position <i>dx</i>,<i>dy</i>.
<p>If <i>width</i> and <i>height</i> are given, they place a bounds on
the total size of the copied region. They default to the width and
height of the source image.
<p>Compositing will do the necessary clipping to ensure that the right
portion of <i>source</i> ends up in <i>dest</i>. This includes
compositing into negative destination positions and from negative
source positions.
</blockquote>
<p><a name='fill-canvas'>[Function]</a><br>
<b>fill-canvas</b> <i>canvas</i> <i>index</i> =>
<blockquote>
Fills the entire area of <i>canvas</i> with the color index
<i>index</i>.
</blockquote>
<p><a name='clone'>[Function]</a><br>
<b>clone</b> <i>canvas</i> => <i>new-canvas</i>
<blockquote>
Creates a copy of <i>canvas</i> with the same dimensions and a copy of
the image data.
</blockquote>
<p><a name='rotate-180'>[Function]</a><br>
<b>rotate-180</b> <i>canvas</i> => <i>canvas</i>
<blockquote>
Destructively performs a 180-degree rotation of the image data of
<i>canvas</i>.
</blockquote>
<p><a name='flip-horizontal'>[Function]</a><br>
<b>flip-horizontal</b> <i>canvas</i> => <i>canvas</i>
<blockquote>
Destructively horizontally mirrors the image data of <i>canvas</i>.
</blockquote>
<p><a name='flip-vertical'>[Function]</a><br>
<b>flip-vertical</b> <i>canvas</i> => <i>canvas</i>
<blockquote>
Destructively vertically mirrors the image data of <i>canvas</i>.
</blockquote>
<p><a name='scale'>[Function]</a><br>
<b>scale</b> <i>canvas</i> <i>scale-factor</i> => <i>new-canvas</i>
<blockquote>
Scales <i>canvas</i> by the integer <i>scale-factor</i> and returns
the result as a new canvas.
<p>Does <b>not</b> work on image objects.
</blockquote>
<p><a name='fill-area'>[Function]</a><br>
<b>fill-area</b> <i>canvas</i> <i>index</i>
<tt>&key</tt>
<i>(x 0)</i> <i>(y 0)</i>
<i>width</i> <i>height</i> =>
<blockquote>
Fills an area of <i>canvas</i> starting at position
<i>x</i>,<i>y</i>.
</blockquote>
<a name='sect-warnings-and-conditions'><h4>Warnings and Conditions</h4></a>
<p><a name='skippy-warning'>[Condition type]</a><br>
<b>skippy-warning</b>
<blockquote>
This condition type is a subtype of <tt>CL:WARNING</tt>. All warnings
signaled by Skippy are a subtype of this type.
</blockquote>
<p><a name='skippy-error'>[Condition type]</a><br>
<b>skippy-error</b>
<blockquote>
This condition type is a subtype of <tt>CL:ERROR</tt>. All errors
signaled by Skippy are a subtype of this type.
</blockquote>
<p><a name='lzw-error'>[Condition type]</a><br>
<b>lzw-error</b>
<blockquote>
An error of this type is signaled from <a
href='#load-data-stream'><tt>LOAD-DATA-STREAM</tt></a> or <a
href='#read-data-stream'><tt>READ-DATA-STREAM</tt></a> when the LZW data is
corrupted in some way.
</blockquote>
<p><a name='unexpected-value'>[Condition type]</a><br>
<b>unexpected-value</b>
<blockquote>
An error of this type is signaled from <a
href='#load-data-stream'><tt>LOAD-DATA-STREAM</tt></a> or <a
href='#read-data-stream'><tt>READ-DATA-STREAM</tt></a> when an
unexpected value is encountered.
</blockquote>
<p><a name='missing-color-table'>[Condition type]</a><br>
<b>missing-color-table</b>
<blockquote>
An error of this type is signaled from <a
href='#output-data-stream'><tt>OUTPUT-DATA-STREAM</tt></a> or <a
href='#write-data-stream'><tt>WRITE-DATA-STREAM</tt></a> when an image
being compressed has neither a local color table nor a global color table.
</blockquote>
<p><a name='color-table-full'>[Condition type]</a><br>
<b>color-table-full</b>
<blockquote>
An error of this type is signaled from <a
href='#add-color'><tt>ADD-COLOR</tt></a> or <a
href='#ensure-color'><tt>ENSURE-COLOR</tt></a> when a new color must be added
but the color table already has the maximum number of entries (256).
</blockquote>
<p><a name='signature-error'>[Condition type]</a><br>
<b>signature-error</b>
<blockquote>
All GIF files start with the ASCII strings "GIF87a" or "GIF89a". An
error of type <tt>signature-error</tt> is signaled from <a
href='#load-data-stream'><tt>LOAD-DATA-STREAM</tt></a> or <a
href='#read-data-stream'><tt>READ-DATA-STREAM</tt></a> when no
signature is present or the octets in the input stream do not match
either signature.
</blockquote>
<a name='sect-feedback'><h3>Feedback</h3></a>
<p>Please send bug reports, patches, questions, and any other feedback
to <a href="mailto:xach@xach.com">Zachary Beane</a>.
<p>Thanks to Eric Marsden for finding and sharing unsupported, bogus,
and corrupted GIFs so I could make Skippy handle them.
<p>Thanks to Martin Rydström and Ignas Mikalajunas for reviewing
this documentation and offering helpful advice.
</div>
| 33.397715 | 120 | 0.649618 |
9f088ec7db6c8b16930530a70080a94c8fe8f5ba | 5,180 | dart | Dart | super_editor/lib/src/default_editor/text_tools.dart | hongfeiyang/super_editor | 522f8345d8b005f459932200018404e965c4f6f7 | [
"MIT"
] | null | null | null | super_editor/lib/src/default_editor/text_tools.dart | hongfeiyang/super_editor | 522f8345d8b005f459932200018404e965c4f6f7 | [
"MIT"
] | null | null | null | super_editor/lib/src/default_editor/text_tools.dart | hongfeiyang/super_editor | 522f8345d8b005f459932200018404e965c4f6f7 | [
"MIT"
] | null | null | null | import 'dart:math';
import 'dart:ui';
import 'package:flutter/services.dart';
import 'package:super_editor/src/core/document.dart';
import 'package:super_editor/src/core/document_layout.dart';
import 'package:super_editor/src/core/document_selection.dart';
import 'package:super_editor/src/default_editor/text.dart';
import 'package:super_editor/src/infrastructure/_logging.dart';
import 'package:super_editor/src/infrastructure/composable_text.dart';
/// Collection of generic text inspection behavior that does not belong
/// to any particular `DocumentNode` or `Component`.
final _log = Logger(scope: 'text_tools.dart');
/// Returns the word of text that contains the given `docPosition`, or `null` if
/// no text exists at the given `docPosition`.
///
/// A word is defined by `TextComposable#getWordSelectionAt()`.
DocumentSelection? getWordSelection({
required DocumentPosition docPosition,
required DocumentLayout docLayout,
}) {
_log.log('getWordSelection', '_getWordSelection()');
_log.log('getWordSelection', ' - doc position: $docPosition');
final component = docLayout.getComponentByNodeId(docPosition.nodeId);
if (component is! TextComposable) {
return null;
}
final nodePosition = docPosition.nodePosition;
if (nodePosition is! TextNodePosition) {
return null;
}
final TextSelection wordTextSelection = (component as TextComposable).getWordSelectionAt(nodePosition);
final wordNodeSelection = TextNodeSelection.fromTextSelection(wordTextSelection);
_log.log('getWordSelection', ' - word selection: $wordNodeSelection');
return DocumentSelection(
base: DocumentPosition(
nodeId: docPosition.nodeId,
nodePosition: wordNodeSelection.base,
),
extent: DocumentPosition(
nodeId: docPosition.nodeId,
nodePosition: wordNodeSelection.extent,
),
);
}
/// Expands a selection in both directions starting at [textPosition] until
/// the selection reaches a space, or the end of the available text.
TextSelection expandPositionToWord({
required String text,
required TextPosition textPosition,
}) {
if (text.isEmpty) {
return const TextSelection.collapsed(offset: -1);
}
int start = min(textPosition.offset, text.length - 1);
int end = min(textPosition.offset, text.length - 1);
while (start > 0 && text[start] != ' ') {
start -= 1;
}
while (end < text.length && text[end] != ' ') {
end += 1;
}
return TextSelection(
baseOffset: start,
extentOffset: end,
);
}
/// Returns the paragraph of text that contains the given `docPosition`, or `null`
/// if there is no text at the given `docPosition`.
///
/// A paragraph is defined as all text within the given document node, bounded by
/// newlines or the beginning/end of the node's text.
DocumentSelection? getParagraphSelection({
required DocumentPosition docPosition,
required DocumentLayout docLayout,
}) {
_log.log('getParagraphSelection', '_getWordSelection()');
_log.log('getParagraphSelection', ' - doc position: $docPosition');
final component = docLayout.getComponentByNodeId(docPosition.nodeId);
if (component is! TextComposable) {
return null;
}
final nodePosition = docPosition.nodePosition;
if (nodePosition is! TextNodePosition) {
return null;
}
final TextSelection paragraphTextSelection = expandPositionToParagraph(
text: (component as TextComposable).getContiguousTextAt(nodePosition),
textPosition: docPosition.nodePosition as TextPosition,
);
final paragraphNodeSelection = TextNodeSelection.fromTextSelection(paragraphTextSelection);
return DocumentSelection(
base: DocumentPosition(
nodeId: docPosition.nodeId,
nodePosition: paragraphNodeSelection.base,
),
extent: DocumentPosition(
nodeId: docPosition.nodeId,
nodePosition: paragraphNodeSelection.extent,
),
);
}
/// Expands a selection in both directions starting at [textPosition] until
/// the selection reaches a newline, or the end of the available text.
TextSelection expandPositionToParagraph({
required String text,
required TextPosition textPosition,
}) {
if (text.isEmpty) {
return const TextSelection.collapsed(offset: -1);
}
int start = min(textPosition.offset, text.length - 1);
int end = min(textPosition.offset, text.length - 1);
while (start > 0 && text[start] != '\n') {
start -= 1;
}
while (end < text.length && text[end] != '\n') {
end += 1;
}
return TextSelection(
baseOffset: start,
extentOffset: end,
);
}
// copied from: flutter/lib/src/widgets/editable_text.dart
// RTL covers Arabic, Hebrew, and other RTL languages such as Urdu,
// Aramic, Farsi, Dhivehi.
final RegExp _rtlRegExp = RegExp(r'[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]');
/// Returns the [TextDirection] of the text based on its first non-whitespace character.
///
/// The default value is [TextDirection.ltr] for any character that is not from an RTL language.
TextDirection getParagraphDirection(String text) {
text = text.trim();
if (text.isNotEmpty && _rtlRegExp.hasMatch(String.fromCharCode(text.runes.first))) {
return TextDirection.rtl;
} else {
return TextDirection.ltr;
}
}
| 32.78481 | 105 | 0.729344 |
e20560a350affdee62709f7f583651308e7c0590 | 8,827 | dart | Dart | lib/podcasts/podcasts.dart | GabrielFavera/DellaFavera_Deezer | db6ce94343f7eea146d597e6350d9c760a06e068 | [
"MIT"
] | null | null | null | lib/podcasts/podcasts.dart | GabrielFavera/DellaFavera_Deezer | db6ce94343f7eea146d597e6350d9c760a06e068 | [
"MIT"
] | null | null | null | lib/podcasts/podcasts.dart | GabrielFavera/DellaFavera_Deezer | db6ce94343f7eea146d597e6350d9c760a06e068 | [
"MIT"
] | null | null | null | import 'tomzequadradomini.dart';
import 'package:flutter/material.dart';
import 'categorias.dart';
import 'tomzequadradocomtextao.dart';
import 'destaques.dart';
import 'tomzequadrado2.dart';
class PodcastsPage extends StatefulWidget {
@override
_PodcastsPageState createState() => _PodcastsPageState();
}
class _PodcastsPageState extends State<PodcastsPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
decoration: BoxDecoration(
color: Colors.grey.shade300,
),
child: SingleChildScrollView(
scrollDirection: Axis.vertical,
child: Padding(
padding: const EdgeInsets.fromLTRB(20, 40, 20, 0),
child: Container(
child: Column(
children: [
Align(
alignment: Alignment.topRight,
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Padding(
padding: const EdgeInsets.fromLTRB(0, 0, 10, 0),
child: Icon(
Icons.notifications_none_sharp,
size: 28,
),
),
Icon(
Icons.settings,
size: 28,
),
],
),
),
Align(
alignment: Alignment.topLeft,
child: Text(
'Podcasts',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 35,
),
),
),
SizedBox(
height: 20,
),
Align(
alignment: Alignment.topLeft,
child: Text(
'Podcasts populares',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 21,
),
),
),
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: [
tomzequadradomini(),
tomzequadradomini(),
tomzequadradomini(),
tomzequadradomini(),
tomzequadradomini(),
tomzequadradomini(),
],
),
),
SizedBox(
height: 20,
),
Align(
alignment: Alignment.topLeft,
child: Row(
children: [
Text(
'Todas as categorias',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 21,
),
),
Icon(
Icons.keyboard_arrow_right_outlined,
size: 20,
)
],
),
),
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: [
categorias(),
categorias(),
categorias(),
],
),
),
SizedBox(
height: 20,
),
Row(
children: [
Align(
alignment: Alignment.topLeft,
child: Text(
'Os melhores podcasts de hoje',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 21,
),
),
),
Icon(
Icons.keyboard_arrow_right_outlined,
size: 20,
)
],
),
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: [
tomzequadradocomtextao(),
tomzequadradocomtextao(),
tomzequadradocomtextao(),
tomzequadradocomtextao(),
],
),
),
SizedBox(
height: 20,
),
Row(
children: [
Align(
alignment: Alignment.topLeft,
child: Text(
'Destaques',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 21,
),
),
),
Icon(
Icons.keyboard_arrow_right_outlined,
size: 20,
),
],
),
SizedBox(
height: 20,
),
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: [
destaques(),
destaques(),
destaques(),
],
),
),
SizedBox(
height: 20,
),
Align(
alignment: Alignment.topLeft,
child: Row(
children: [
Text(
'Coleções',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 21,
),
),
Icon(
Icons.keyboard_arrow_right_outlined,
size: 20,
)
],
),
),
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: [
categorias(),
categorias(),
categorias(),
],
),
),
SizedBox(
height: 20,
),
Row(
children: [
Align(
alignment: Alignment.topLeft,
child: Text(
'Novos lançamentos para você',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 21,
),
),
),
Icon(
Icons.keyboard_arrow_right_outlined,
size: 20,
)
],
),
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: [
tomzequadrado2(),
tomzequadrado2(),
tomzequadrado2(),
tomzequadrado2(),
tomzequadrado2(),
],
),
),
],
),
),
),
),
),
);
}
}
| 34.615686 | 75 | 0.299875 |
861a8af1e89203594b4e3164490c028974c49c0e | 5,713 | java | Java | app/src/main/java/com/lodz/android/agiledev/ui/rxjava/operate/RxGetCache.java | LZ9/AgileDev | e6b4e821fec11611e1d42009cc4f4496309ef167 | [
"Apache-2.0"
] | 17 | 2017-01-24T06:41:20.000Z | 2022-01-29T14:46:56.000Z | app/src/main/java/com/lodz/android/agiledev/ui/rxjava/operate/RxGetCache.java | LZ9/AgileDev | e6b4e821fec11611e1d42009cc4f4496309ef167 | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/lodz/android/agiledev/ui/rxjava/operate/RxGetCache.java | LZ9/AgileDev | e6b4e821fec11611e1d42009cc4f4496309ef167 | [
"Apache-2.0"
] | 5 | 2018-07-14T09:20:57.000Z | 2021-03-01T06:51:23.000Z | package com.lodz.android.agiledev.ui.rxjava.operate;
import android.text.TextUtils;
import com.lodz.android.agiledev.ui.rxjava.RxContract;
import com.lodz.android.component.rx.subscribe.observer.BaseObserver;
import com.lodz.android.component.rx.utils.RxObservableOnSubscribe;
import com.lodz.android.component.rx.utils.RxUtils;
import com.lodz.android.core.log.PrintLog;
import io.reactivex.rxjava3.core.Observable;
import io.reactivex.rxjava3.core.ObservableEmitter;
import io.reactivex.rxjava3.core.ObservableSource;
import io.reactivex.rxjava3.functions.BiFunction;
import io.reactivex.rxjava3.functions.Function;
/**
* 从磁盘、内存缓存中 获取缓存数据
* Created by zhouL on 2018/3/7.
*/
public class RxGetCache implements RxContract{
/** 有内存缓存 */
private boolean hasMemoryCache = true;
/** 有磁盘缓存 */
private boolean hasDiskCache = true;
@Override
public void doCase() {
// 内存/磁盘和网络只会取其中一个
// memory().compose(RxUtils.<String>ioToMainObservable())
// .flatMap(new Function<String, ObservableSource<String>>() {
// @Override
// public ObservableSource<String> apply(String s) throws Exception {
// return !TextUtils.isEmpty(s) ? Observable.just(s) : disk().compose(RxUtils.<String>ioToMainObservable());
// }
// })
// .flatMap(new Function<String, ObservableSource<String>>() {
// @Override
// public ObservableSource<String> apply(String s) throws Exception {
// return !TextUtils.isEmpty(s) ? Observable.just(s) : network().compose(RxUtils.<String>ioToMainObservable());
// }
// })
// .subscribe(new BaseObserver<String>() {
// @Override
// public void onBaseNext(String s) {
// PrintLog.d("testtag", "数据来源 : " + s + " --- " + Thread.currentThread().getName());
// }
//
// @Override
// public void onBaseError(Throwable e) {
//
// }
// });
//先取内存/磁盘,然后跑一次网络
Observable.zip(memory(), disk(), new BiFunction<String, String, Observable<String>>() {
@Override
public Observable<String> apply(String memory, String disk) throws Exception {
String cache = "";
if (!TextUtils.isEmpty(memory)) {
cache = memory;
}else if (!TextUtils.isEmpty(disk)) {
cache = disk;
}
return Observable.concat(Observable.just(cache), network()).compose(RxUtils.<String>ioToMainObservable());
}
}).compose(RxUtils.<Observable<String>>ioToMainObservable())
.flatMap(new Function<Observable<String>, ObservableSource<String>>() {
@Override
public ObservableSource<String> apply(Observable<String> observable) throws Exception {
return observable;
}
})
.subscribe(new BaseObserver<String>() {
@Override
public void onBaseNext(String s) {
if (TextUtils.isEmpty(s)) {
return;
}
PrintLog.d("testtag", "数据来源 : " + s + " --- " + Thread.currentThread().getName());
}
@Override
public void onBaseError(Throwable e) {
}
});
}
private Observable<String> memory(){
return Observable.create(new RxObservableOnSubscribe<String>() {
@Override
public void subscribe(ObservableEmitter<String> emitter) throws Exception {
if (emitter.isDisposed()){
return;
}
try {
Thread.sleep(100);
emitter.onNext(hasMemoryCache ? "有内存缓存 " + Thread.currentThread().getName() : "");
emitter.onComplete();
}catch (Exception e){
e.printStackTrace();
emitter.onError(e);
}
}
});
}
private Observable<String> disk(){
return Observable.create(new RxObservableOnSubscribe<String>() {
@Override
public void subscribe(ObservableEmitter<String> emitter) throws Exception {
if (emitter.isDisposed()){
return;
}
try {
Thread.sleep(200);
emitter.onNext(hasDiskCache ? "有磁盘缓存 " + Thread.currentThread().getName() : "");
emitter.onComplete();
}catch (Exception e){
e.printStackTrace();
emitter.onError(e);
}
}
});
}
private Observable<String> network(){
return Observable.create(new RxObservableOnSubscribe<String>() {
@Override
public void subscribe(ObservableEmitter<String> emitter) throws Exception {
if (emitter.isDisposed()){
return;
}
try {
Thread.sleep(2000);
emitter.onNext("网络请求 " + Thread.currentThread().getName());
emitter.onComplete();
}catch (Exception e){
e.printStackTrace();
emitter.onError(e);
}
}
});
}
}
| 37.585526 | 134 | 0.510765 |
aeca0b83dfa58b5903c38ab957190a9d098105dc | 943 | sql | SQL | chapter_007/src/main/java/ru/job4j/usersrules/car_factory_create.sql | RomanMozhaev/job4j | 9781ee31530e8dff223db3ae21d5d12b279c2006 | [
"Apache-2.0"
] | null | null | null | chapter_007/src/main/java/ru/job4j/usersrules/car_factory_create.sql | RomanMozhaev/job4j | 9781ee31530e8dff223db3ae21d5d12b279c2006 | [
"Apache-2.0"
] | 9 | 2020-07-01T19:02:03.000Z | 2022-02-16T01:05:52.000Z | chapter_007/src/main/java/ru/job4j/usersrules/car_factory_create.sql | RomanMozhaev/job4j | 9781ee31530e8dff223db3ae21d5d12b279c2006 | [
"Apache-2.0"
] | null | null | null | CREATE TABLE bodies (id serial primary key, name varchar(100) NOT NULL);
CREATE TABLE engines (id serial primary key, name varchar(100) NOT NULL);
CREATE TABLE transmitions (id serial primary key, name varchar(100) NOT NULL);
INSERT INTO bodies(name) VALUES ('Жигули 6'), ('Жигули 7'), ('Лада 8'), ('Лада 9');
INSERT INTO engines(name) VALUES ('Мотор 1,2'), ('Мотор 1,6'), ('Турбо 1,4'), ('Турбодизель 2,0');
INSERT INTO transmitions(name) VALUES ('4 передачи'), ('5 передач'), ('6 передач'), ('Автомат 6 передач');
CREATE TABLE cars (
id serial primary key,
name varchar(100) NOT NULL,
body_id integer references bodies(id) NOT NULL,
engine_id integer references engines(id) NOT NULL,
transmition_id integer references transmitions(id) NOT NULL
);
INSERT INTO cars VALUES
(1, 'Семерочка ТД', 2, 4, 4),
(2, 'Семерка бюджет', 2, 1, 1),
(3, 'Лада стандарт', 3, 2, 2),
(4, 'Лада комфорт', 4, 2, 2),
(5, 'Лада турбо', 4, 4, 4); | 44.904762 | 106 | 0.679745 |
a76fb3b5fcc8505af60be45a7f43c1545bec942c | 1,600 | sql | SQL | migrations/sql/V1.16__Add_Disturbance_Type.sql | victoria-elasticsearch/mds | 3046f2c1b58ac2230278def3f23b0d24fcd82d55 | [
"Apache-2.0"
] | null | null | null | migrations/sql/V1.16__Add_Disturbance_Type.sql | victoria-elasticsearch/mds | 3046f2c1b58ac2230278def3f23b0d24fcd82d55 | [
"Apache-2.0"
] | null | null | null | migrations/sql/V1.16__Add_Disturbance_Type.sql | victoria-elasticsearch/mds | 3046f2c1b58ac2230278def3f23b0d24fcd82d55 | [
"Apache-2.0"
] | 1 | 2019-01-12T23:44:13.000Z | 2019-01-12T23:44:13.000Z | CREATE TABLE mine_disturbance_code (
mine_disturbance_code character varying(3) PRIMARY KEY NOT NULL,
description character varying(100) NOT NULL,
active_ind boolean NOT NULL DEFAULT TRUE,
--Audit Columns
create_user character varying(60) NOT NULL,
create_timestamp timestamp with time zone NOT NULL DEFAULT current_timestamp,
update_user character varying(60) NOT NULL,
update_timestamp timestamp with time zone NOT NULL DEFAULT current_timestamp
);
COMMENT ON TABLE mine_disturbance_code IS 'The valid options for a mine disturbance type.';
CREATE TABLE mine_type_detail_xref (
mine_type_detail_xref_guid uuid PRIMARY KEY DEFAULT gen_random_uuid(),
mine_disturbance_code character varying(3) NOT NULL,
mine_type_guid uuid NOT NULL,
-- Audit Columns
create_user character varying(60) NOT NULL,
create_timestamp timestamp with time zone NOT NULL DEFAULT current_timestamp,
update_user character varying(60) NOT NULL,
update_timestamp timestamp with time zone NOT NULL DEFAULT current_timestamp,
-- Foreign Key Definitions
FOREIGN KEY (mine_disturbance_code) REFERENCES mine_disturbance_code(mine_disturbance_code) DEFERRABLE INITIALLY DEFERRED,
FOREIGN KEY (mine_type_guid) REFERENCES mine_type(mine_type_guid) DEFERRABLE INITIALLY DEFERRED,
-- Constraints
CONSTRAINT mine_type_guid_mine_disturbance_code_uniqeness UNIQUE (mine_type_guid, mine_disturbance_code)
);
COMMENT ON TABLE mine_type_detail_xref IS 'A lookup of all valid disturbance types.';
| 45.714286 | 126 | 0.769375 |
b2fad16e1e2224a44b62f1bd96ad90fb1c72868a | 48,791 | rs | Rust | src/direct.rs | bryandmc/async-ringbuf | 271b0d5b026917d6373fbf17d99991bdd9aa28d0 | [
"MIT"
] | 1 | 2021-02-23T05:55:26.000Z | 2021-02-23T05:55:26.000Z | src/direct.rs | bryandmc/async-ringbuf | 271b0d5b026917d6373fbf17d99991bdd9aa28d0 | [
"MIT"
] | null | null | null | src/direct.rs | bryandmc/async-ringbuf | 271b0d5b026917d6373fbf17d99991bdd9aa28d0 | [
"MIT"
] | null | null | null | //!
//! *RinBuf*: Async Ring Buffer
//!
//! Asynchronous ringbuffer implementation for fast transfer of data from one
//! task to another. Generally considered to be SPSC (single producer, single
//! consumer) and will be optimized for this use case.
//!
//! This use case is critical to being able to haul the data to the backend with
//! as few copies as possible, while not needing to synchronize anywhere. It's
//! also critical that it doesn't hold up the current task, because that task
//! will be in charge of the normal flow of traffic.
//!
//! TODO: FUTURE: Finish implementation. Currently not used by proxy.
use atomic::Ordering;
use bitflags::bitflags;
use core::slice;
use futures::{task::AtomicWaker, Future};
use std::{
cell::Cell,
io,
marker::PhantomData,
mem,
ops::{Deref, DerefMut},
pin::Pin,
sync::{
atomic::{self, AtomicBool, AtomicU8, AtomicUsize},
Arc,
},
task,
};
use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt};
use tracing::{debug, debug_span, info, instrument, Span};
/// The maximumum size of a single read or write from the ring. It will rarely
/// be this size in practice, but if a buffer of that size is requested, it can
/// be fulfilled, up to that point.
const MAX_BATCH_SIZE: usize = KB(8);
const EXAMPLE_MB: usize = MB(2);
#[allow(non_snake_case)]
pub const fn KB(bytes: usize) -> usize {
bytes * 1024
}
#[allow(non_snake_case)]
pub const fn MB(bytes: usize) -> usize {
bytes * 1024 * 1024
}
bitflags! {
/// Some flags that help us manage certain types of state that are less critical
/// to be correct. There are other methods for determining most other things.
/// TODO: Do we still need it? Namely, can we know a reader or writer has been
/// dropped without this? Check arc counts?
struct RingFlags: u8 {
const WRITE_DROP = 0b0001;
const READ_DROP = 0b0010;
const WRITE_WRAPPED = 0b0100;
const RING_FULL = 0b1000;
}
}
/// Error type for ringbuf operations that can fail. The main ones are that we
/// do not have space to give a buffer for either reads or writes.
#[derive(thiserror::Error, Debug)]
pub enum RingError {
#[error("no read space available")]
NoReadSpaceAvailable,
#[error("no write space available")]
NoWriteSpaceAvailable,
#[error("IO error encountered")]
IoError(#[from] std::io::Error),
}
/// TODO: initialize buffer with uninitialized data, so that we don't have to
/// zero-out all the buffer data before first use.
///
/// # RingBuf #
/// Type used to quickly transfer data from one AsyncRead/AsyncWrite
/// to another, in another task, without cloning the buffer. Useful for
/// situations where you cannot just move the buffer, because you still ALSO
/// need the data in the originating task.
#[derive(Debug)]
pub struct Ring<T> {
/// The read position of the ring.
tail: AtomicUsize,
/// The waker used to wake a reader to tell them there is more data.
reader: AtomicWaker,
/// The write position of the ring.
head: AtomicUsize,
/// The waker used to wake the writer, to tell them there is more space to
/// write.
writer: AtomicWaker,
/// The underlying data for the ring.
slab: *mut T,
/// The max (fixed) capacity of the ring.
capacity: usize,
/// Various flags to determine certain kinds of state situations
flags: AtomicU8,
/// Determines whether or not the value has wrapped around. It allows you to
/// differentiate between an empty and full ring.
wrapped: AtomicBool,
}
/// # RingReader #
///
/// The reader side of the Ring Buffer
#[derive(Debug)]
pub struct Rx<T> {
ring: Arc<Ring<T>>,
}
/// # RingWriter #
///
/// The write side of a ringbuffer
///
/// # Cases: #
/// ----------------------------------------------------------------------
/// [ head | + | + | + | + | tail | - | - ]
/// -----> -----> -----> -----> ----->
/// This means there are 4 slots to write until we hit tail
///
/// [ + | tail | - | - | head | + | + | + ]
/// -----> -----> -----> -----> ----->
/// This means there are 4 slots to write until we hit tail. This involves
/// wrapping around.
///
/// [ + | tail | - | - | head | + | + | + ]
/// -----> -----> -----> -----> ----->
/// [---] [-----------]
/// segment -----^^^^^^^^^^^
///
/// [ + | + | + | tail | - | - | - | head ]
/// -----> -----> -----> -----> ----->
/// [-----------]
/// ^^^^^^^^^^^--------- wrapped
/// This means there are 4 slots to write until we hit tail. This
/// involves wrapping around.
#[derive(Debug)]
pub struct Tx<T> {
/// Inner shared-reference to the RingBuf
ring: Arc<Ring<T>>,
}
impl<T: Copy> Rx<T> {
fn head(&self) -> usize {
self.ring.head()
}
fn tail(&self) -> usize {
self.ring.tail()
}
fn get_ring_slab(&self) -> &[T] {
self.ring.get_ring_slab()
}
fn get_fields(&self) -> (usize, usize, usize, bool) {
self.ring.get_fields()
}
fn get_buffer(&self, length: usize) -> Result<(RxGuard<T>, usize), RingError> {
let (mut head, mut tail, cap, mut wrapped) = self.get_fields();
let mut amt_available = |h: usize, t: usize, c: usize| match t < h {
true => h - t,
false => (c - t) + h,
};
let mut bytes_read = 0;
match wrapped {
true => {
let total_available = amt_available(head, tail, cap);
// let contiguous_available = (cap - head);
let batch_size = MAX_BATCH_SIZE.min(total_available).min(length);
debug!(batch_size, total_available, head, tail, cap, wrapped);
if batch_size == 0 {
return Err(RingError::NoReadSpaceAvailable);
}
let slice = self.ring.create_slice(tail, batch_size);
let ret = RxGuard(slice, self.ring.clone(), 0);
Ok((ret, batch_size))
}
false => {
let total_available = amt_available(head, tail, cap);
let mut batch_size = MAX_BATCH_SIZE
.min(total_available)
.min(length)
.min(head - tail);
debug!(batch_size, total_available, head, tail, cap, wrapped);
if batch_size == 0 {
return Err(RingError::NoReadSpaceAvailable);
}
let slice = self.ring.create_slice(tail, batch_size);
let ret = RxGuard(slice, self.ring.clone(), 0);
Ok((ret, batch_size))
}
}
}
}
impl<T: Copy> Tx<T> {
fn head(&self) -> usize {
self.ring.head()
}
fn tail(&self) -> usize {
self.ring.tail()
}
fn reset_to_zero(&self, head: &mut usize) {
debug!("Resetting head to zero..");
self.ring.head.store(0, Ordering::SeqCst);
*head = 0;
self.ring.wrapped.store(true, Ordering::SeqCst);
}
fn get_ring_slab(&self) -> &[T] {
self.ring.get_ring_slab()
}
fn get_fields(&self) -> (usize, usize, usize, bool) {
self.ring.get_fields()
}
fn get_buffer(&self, length: usize) -> Result<(TxGuard<T>, usize), RingError> {
let (mut head, mut tail, cap, mut wrapped) = self.get_fields();
let mut amt_available = |h: usize, t: usize, c: usize| match t < h {
true => h - t,
false => (c - t) + h,
};
match wrapped {
true => {
let available = tail - head;
let batch_size = MAX_BATCH_SIZE.min(available).min(length);
info!(
"head: {}, tail: {}, cap: {}, wrapped: {}, batch_size: {}",
head, tail, cap, wrapped, batch_size
);
let slice = self.ring.create_slice_mut(head, batch_size);
return Ok((TxGuard(slice, self.ring.clone(), 0), batch_size));
}
false => {
let available = cap - head;
let batch_size = MAX_BATCH_SIZE.min(available).min(length);
info!(
"head: {}, tail: {}, cap: {}, wrapped: {}, batch_size: {}",
head, tail, cap, wrapped, batch_size
);
assert!(batch_size > 0);
assert!((head + batch_size) <= cap);
let slice = self.ring.create_slice_mut(head, batch_size);
return Ok((TxGuard(slice, self.ring.clone(), 0), batch_size));
}
}
Err(RingError::NoWriteSpaceAvailable)
}
fn get_ref_count(&self) -> usize {
Arc::strong_count(&self.ring)
}
}
/// The future for reading IO from a source and writing it to a ring.
#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct ReadIOFuture<'a, T, IO: AsyncRead + ?Sized + Unpin> {
io: &'a mut IO,
ring: Arc<Ring<T>>,
try_read: usize,
}
/// The future for writing IO from data from the ring.
#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct WriteIOFuture<'a, T, IO: AsyncWrite + ?Sized + Unpin> {
io: &'a mut IO,
ring: Arc<Ring<T>>,
try_write: usize,
}
/// The trait that handles asynchronous reading from an IO source, and writing
/// that data to a ring.
pub trait AsyncRingIORead<'a, R: AsyncRead + Unpin> {
/// The future that represents the read from an IO object and the subsequent
/// write to the ring. That said, the ring will only ever
/// asynchronously-block if it is entirely full, otherwise it operates
/// completely synchronously.
type ReadFuture;
/// Reads from an IO object (R), writing it to the ringbuffer.
///
/// ## Arguments ##
///
/// `try_read` gives an upper bound to the amount we will attempt to
/// transfer from the IO object to the ring. That said, only the amount
/// actually read will be counted when the cursor is advanced.
fn read_io(&self, io: &'a mut R, try_read: usize) -> Self::ReadFuture;
}
/// The trait that handles reading from a ring and writing that data to an IO
/// source.
pub trait AsyncRingIOWrite<'a, W: AsyncWrite + Unpin> {
/// The future that is returned that represents the write operation to the
/// IO object. The reading from the ring can also block-asynchronously, but
/// is otherwise a synchronous operation.
type WriteFuture;
/// Writes to the IO object (W), taking it's data from the ringbuffer.
///
/// ## Arguments ##
///
/// `try_write` gives an upper bound to the amount we will attempt to read
/// from the ring, to write to the IO object. That said, even if you take
/// out more bytes from the ring then you end up writing, you will only
/// advance the cursor as much as you *ACTUALLY* wrote, not what you
/// attempted to originally.
fn write_io(&self, io: &'a mut W, try_write: usize) -> Self::WriteFuture;
}
impl<'a, R: AsyncRead + Unpin + 'a> AsyncRingIORead<'a, R> for Tx<u8> {
type ReadFuture = ReadIOFuture<'a, u8, R>;
fn read_io(&self, io: &'a mut R, try_read: usize) -> Self::ReadFuture {
ReadIOFuture {
io,
ring: self.ring.clone(),
try_read,
}
}
}
impl<'a, W: AsyncWrite + Unpin + 'a> AsyncRingIOWrite<'a, W> for Rx<u8> {
type WriteFuture = WriteIOFuture<'a, u8, W>;
fn write_io(&self, io: &'a mut W, try_write: usize) -> Self::WriteFuture {
WriteIOFuture {
io,
ring: self.ring.clone(),
try_write,
}
}
}
impl<'a, IO: AsyncWrite + Unpin> Future for WriteIOFuture<'a, u8, IO> {
type Output = Result<usize, RingError>;
fn poll(self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> task::Poll<Self::Output> {
let inner = self.get_mut();
let (mut head, mut tail, cap, mut wrapped) = inner.ring.get_fields();
let mut amt_available = |h: usize, t: usize, c: usize| match t < h {
true => h - t,
false => (c - t) + h,
};
let mut bytes_read = 0;
let (rx, amt) = match wrapped {
true => {
let total_available = amt_available(head, tail, cap);
// let contiguous_available = (cap - head);
let batch_size = MAX_BATCH_SIZE.min(total_available).min(inner.try_write);
// debug!(batch_size, total_available, head, tail, cap, wrapped);
if batch_size == 0 {
inner.ring.reader.register(cx.waker());
return task::Poll::Pending;
}
let slice = inner.ring.create_slice(tail, batch_size);
let ret = RxGuard(slice, inner.ring.clone(), 0);
(ret, batch_size)
}
false => {
let total_available = amt_available(head, tail, cap);
let mut batch_size = MAX_BATCH_SIZE
.min(total_available)
.min(inner.try_write)
.min(head - tail);
// debug!(batch_size, total_available, head, tail, cap, wrapped);
if batch_size == 0 {
inner.ring.reader.register(cx.waker());
return task::Poll::Pending;
}
let slice = inner.ring.create_slice(tail, batch_size);
let ret = RxGuard(slice, inner.ring.clone(), 0);
(ret, batch_size)
}
};
tokio::pin! {
let write_fut = inner.io.write(&*rx);
};
let resp: task::Poll<Result<usize, std::io::Error>> = write_fut.poll(cx);
match resp {
task::Poll::Ready(Ok(amt)) => {
debug!("putting slice: {:#?} in ring..", rx);
unsafe { inner.ring.advance_tail(amt) };
debug!("Advanced (tail) ring {} bytes", amt);
inner.ring.writer.wake();
task::Poll::Ready(Ok(amt))
}
task::Poll::Ready(Err(err)) => task::Poll::Ready(Err(err.into())),
task::Poll::Pending => task::Poll::Pending,
}
}
}
impl<'a, IO: AsyncRead + Unpin> Future for ReadIOFuture<'a, u8, IO> {
type Output = Result<usize, RingError>;
fn poll(self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> task::Poll<Self::Output> {
let inner = self.get_mut();
let (mut head, mut tail, cap, mut wrapped) = inner.ring.get_fields();
let mut amt_available = |h: usize, t: usize, c: usize| match t < h {
true => h - t,
false => (c - t) + h,
};
let slice = match wrapped {
true => {
let available = tail - head;
let batch_size = MAX_BATCH_SIZE.min(available).min(inner.try_read);
// info!(
// "head: {}, tail: {}, cap: {}, wrapped: {}, batch_size: {}",
// head, tail, cap, wrapped, batch_size
// );
if batch_size == 0 {
inner.ring.writer.register(cx.waker());
return task::Poll::Pending;
}
inner.ring.create_slice_mut(head, batch_size)
}
false => {
let available = cap - head;
let batch_size = MAX_BATCH_SIZE.min(available).min(inner.try_read);
// info!(
// "head: {}, tail: {}, cap: {}, wrapped: {}, batch_size: {}",
// head, tail, cap, wrapped, batch_size
// );
if batch_size == 0 {
inner.ring.writer.register(cx.waker());
return task::Poll::Pending;
}
assert!(batch_size > 0);
assert!((head + batch_size) <= cap);
inner.ring.create_slice_mut(head, batch_size)
}
};
tokio::pin! {
let read_fut = inner.io.read(slice);
};
let resp: task::Poll<Result<usize, std::io::Error>> = read_fut.poll(cx);
// debug!("{:#?}", resp);
match resp {
/// The IO source has been closed and returned Ok(0). This is what
/// we will also return, and not advance the cursor inside the ring
/// at all.
task::Poll::Ready(Ok(0)) => task::Poll::Ready(Ok(0)),
/// The IO source has returned 'amt' bytes and so we need to advance
/// the ring's cursor by that much as well.
task::Poll::Ready(Ok(amt)) => {
debug!("putting slice: {:#?} in ring..", slice);
unsafe { inner.ring.advance_head(amt) };
debug!("Advanced (head) ring {} bytes", amt);
inner.ring.reader.wake();
task::Poll::Ready(Ok(amt))
}
/// An error has occurred doing async IO, and we need to pass that
/// up..
task::Poll::Ready(Err(err)) => task::Poll::Ready(Err(err.into())),
/// The IO source returned Pending, which is what we will also
/// return..
task::Poll::Pending => task::Poll::Pending,
}
}
}
/// A special tuple-struct for acting as a guard for a mutable slice, that needs
/// to change the index of the tail inside the ring-buffer upon being dropped.
/// This currently has some design deficiencies that are hard to cope with..
/// Namely, if you read less than the buffer size, there's no way to tell it
/// that, and it will attempt to advance the ring by the entire length of the
/// buffer.
#[derive(Debug)]
pub struct TxGuard<'a, T: Copy>(&'a mut [T], Arc<Ring<T>>, usize);
impl<'a, T: Copy> Drop for TxGuard<'a, T> {
fn drop(&mut self) {
let (mut head, mut tail, cap, mut wrapped) = self.1.get_fields();
let write_size = self.2;
info!(
"Going to move head to ({}) + write size ({})",
head, write_size
);
let mut resulting = head + write_size;
// if we are at the end, wrap around
if (head + write_size) == cap {
resulting = 0;
self.1.wrapped.store(true, Ordering::Release);
}
self.1.head.store(resulting, Ordering::Relaxed);
}
}
impl<'a, T: Copy> Deref for TxGuard<'a, T> {
type Target = [T];
fn deref(&self) -> &Self::Target {
self.0
}
}
impl<'a, T: Copy> DerefMut for TxGuard<'a, T> {
fn deref_mut(&mut self) -> &mut Self::Target {
self.0
}
}
/// Guard for protecting the immutable buffer that represents previously written
/// data. It will advance it's position (tail) upon being dropped.
#[derive(Debug)]
pub struct RxGuard<'a, T: Copy>(&'a [T], Arc<Ring<T>>, usize);
impl<'a, T: Copy> Deref for RxGuard<'a, T> {
type Target = [T];
fn deref(&self) -> &Self::Target {
&*self.0
}
}
impl<'a, T: Copy> Drop for RxGuard<'a, T> {
fn drop(&mut self) {
let (mut head, mut tail, cap, mut wrapped) = self.1.get_fields();
let read_size = self.2;
info!(
"Going to move tail to ({}) + read size ({})",
tail, read_size
);
let mut resulting = tail + read_size;
assert!(tail + read_size <= cap);
// if we are at the end, wrap around
if (tail + read_size) == cap {
resulting = 0;
self.1.wrapped.store(true, Ordering::Release);
}
self.1.tail.store(resulting, Ordering::Relaxed);
}
}
/// Implementation for the core ringbuffer functionality. Because most of the
/// other structs contain a atomic reference counted reference to this struct,
/// it tends to be the core of everything. Luckily ringbuffers are inherently
/// pretty simple. The only complexity comes from fitting all that into the
/// async ecosystem rust has that contains a number of ways to do things. This
/// is why you can use the AsyncRead/AsyncWrite to the ring directly, or give an
/// IO object and have those IO objects pull from the ring as their source of
/// writes, and destination of reads to said IO objects.
impl<T: Copy> Ring<T> {
pub(crate) fn new(size: usize) -> Ring<T> {
let mut backing_vec = Vec::with_capacity(size);
let cap = backing_vec.capacity();
let ptr = backing_vec.as_mut_ptr();
std::mem::forget(backing_vec);
Ring {
tail: AtomicUsize::new(0),
reader: AtomicWaker::new(),
head: AtomicUsize::new(0),
writer: AtomicWaker::new(),
slab: ptr,
capacity: cap,
flags: AtomicU8::new(0),
wrapped: AtomicBool::new(false),
}
}
pub fn create(size: usize) -> (Tx<T>, Rx<T>) {
let ring = Arc::new(Ring::new(size));
(Tx { ring: ring.clone() }, Rx { ring })
}
fn create_slice(&self, offset: usize, len: usize) -> &[T] {
assert!(offset < self.capacity);
assert!(len > 0);
let ptr = unsafe { self.slab.add(offset) };
let slice = unsafe { slice::from_raw_parts_mut(ptr, len) };
slice
}
#[allow(clippy::mut_from_ref)]
fn create_slice_mut(&self, offset: usize, len: usize) -> &mut [T] {
assert!(offset < self.capacity);
assert!(len > 0);
let ptr = unsafe { self.slab.add(offset) };
let slice = unsafe { slice::from_raw_parts_mut(ptr, len) };
slice
}
fn get_ring_slab(&self) -> &[T] {
let slice = unsafe { slice::from_raw_parts_mut(self.slab, self.capacity) };
slice
}
fn head(&self) -> usize {
self.head.load(Ordering::SeqCst)
}
fn tail(&self) -> usize {
self.tail.load(Ordering::SeqCst)
}
fn wrapped(&self) -> bool {
self.wrapped.load(Ordering::Relaxed)
}
fn write_region(&self, offset: usize, buf: &[T]) -> usize {
let mut slice = self.create_slice_mut(offset, buf.len());
slice.copy_from_slice(buf);
buf.len()
}
fn read_region(&self, offset: usize, buf: &mut [T]) -> usize {
let size = buf.len();
let slice = self.create_slice(offset, size);
buf[..size].copy_from_slice(slice);
size
}
fn get_fields(&self) -> (usize, usize, usize, bool) {
let mut head = self.head.load(Ordering::Relaxed);
let mut tail = self.tail.load(Ordering::Relaxed);
let mut cap = self.capacity;
let mut wrapped = self.wrapped.load(Ordering::Relaxed);
(head, tail, cap, wrapped)
}
/// Advances the head position
///
/// # Safety #
///
/// It is completely safe to do this operation in a memory-safety sense, but
/// for it to be logically correct, it is required that it only takes place
/// in specific locations where the actual head position needs to change.
///
/// Returns whether or not the value has wrapped around, and sets the
/// related field to indicate that.
unsafe fn advance_head(&self, amt: usize) -> bool {
let existing = self.head.load(Ordering::Acquire);
if existing + amt >= self.capacity {
self.head.store(0, Ordering::Release);
self.wrapped.store(true, Ordering::Release);
return true;
}
self.head.store(existing + amt, Ordering::Release);
false
}
/// Advances the tail position
///
/// # Safety #
///
/// It is completely safe do use this method from a memory safety
/// standpoint. What is not 'safe', though, is using these methods
/// incorrectly. They can cause incorrect data to be read or incorrect
/// regions to be written to, if used incorrectly.
///
/// Returns wether or not the value has wrapped around.
unsafe fn advance_tail(&self, amt: usize) -> bool {
let existing = self.tail.load(Ordering::Acquire);
if existing + amt >= self.capacity {
self.tail.store(0, Ordering::Release);
self.wrapped.store(false, Ordering::Release);
return true;
}
self.tail.store(existing + amt, Ordering::Release);
false
}
}
/// Drop implementation for the entire Ring<T> structure. This is basically the
/// last thing that will be dropped and it will finally free the underlying
/// buffer.
impl<T> Drop for Ring<T> {
fn drop(&mut self) {
let v = unsafe { Vec::from_raw_parts(self.slab, 0, self.capacity) };
}
}
/// The drop implementation for the RX half of the ringbuffer. All it really
/// does is set some flags that aren't currently even being used.
/// TODO: handle the read_drop flags in the writer.
impl<T> Drop for Rx<T> {
fn drop(&mut self) {
self.ring
.flags
.fetch_and(RingFlags::READ_DROP.bits, Ordering::SeqCst);
}
}
/// The drop implementation for the TX half of the ringbuffer. All it does is
/// set some flags that aren't currently used.
/// TODO: handle the write_drop flags in the reader side correctly.
impl<T> Drop for Tx<T> {
fn drop(&mut self) {
self.ring
.flags
.fetch_and(RingFlags::WRITE_DROP.bits, Ordering::SeqCst);
}
}
/// AsyncRead implementation for the RX side of the ringbuffer.
impl AsyncRead for Rx<u8> {
// #[instrument]
fn poll_read(
self: Pin<&mut Self>,
cx: &mut task::Context<'_>,
mut buf: &mut [u8],
) -> task::Poll<io::Result<usize>> {
info!("<******* [ [ [ START READ ] ] ] *******>");
let mut inner = self.get_mut();
let max_read = buf.len();
let mut head = inner.ring.head.load(Ordering::Relaxed);
let mut tail = inner.ring.tail.load(Ordering::Relaxed);
let mut cap = inner.ring.capacity;
let mut wrapped = inner.ring.wrapped.load(Ordering::Relaxed);
let mut bytes_read = 0;
if let Some(RingFlags::WRITE_DROP) =
RingFlags::from_bits(inner.ring.flags.load(Ordering::Relaxed))
{
// read the rest and then drop..
}
let mut amt_available = |h: usize, t: usize, c: usize| match t < h {
true => h - t,
false => (c - t) + h,
};
let remaining_to_read = max_read - bytes_read;
match wrapped {
true => {
let total_available = amt_available(head, tail, cap);
let contiguous_available = (cap - tail);
let batch_size = MAX_BATCH_SIZE
.min(contiguous_available)
.min(total_available)
.min(remaining_to_read);
if batch_size == 0 {
inner.ring.reader.register(cx.waker());
return task::Poll::Pending;
}
bytes_read += inner.ring.read_region(tail, &mut buf[..batch_size]);
let mut remaining = (total_available - batch_size).min(max_read - bytes_read);
if remaining > 0 {
bytes_read += inner
.ring
.read_region(0, &mut buf[batch_size..batch_size + remaining]);
inner.ring.wrapped.store(false, Ordering::Relaxed);
inner.ring.tail.store(remaining, Ordering::Relaxed);
} else {
let mut new_tail = (tail + bytes_read);
if new_tail == cap {
new_tail = 0;
inner.ring.wrapped.store(false, Ordering::Relaxed);
}
inner.ring.tail.store(new_tail, Ordering::Relaxed);
}
}
false => {
let total_available = amt_available(head, tail, cap);
let remaining_to_read = max_read - bytes_read;
let mut batch_size = MAX_BATCH_SIZE.min(total_available).min(remaining_to_read);
if head == tail {
batch_size = 0;
}
if batch_size == 0 {
inner.ring.reader.register(cx.waker());
return task::Poll::Pending;
}
bytes_read += inner.ring.read_region(tail, &mut buf[..batch_size]);
let mut new_tail = tail + batch_size;
if new_tail == cap {
new_tail = 0;
inner.ring.wrapped.store(false, Ordering::Relaxed);
}
inner.ring.tail.store(new_tail, Ordering::Relaxed);
}
}
if bytes_read > 0 {
inner.ring.writer.wake();
return task::Poll::Ready(Ok(bytes_read));
}
inner.ring.reader.register(cx.waker());
task::Poll::Pending
}
}
/// AsyncWrite implementation for the TX side of the ringbuf..
impl AsyncWrite for Tx<u8> {
// #[instrument]
fn poll_write(
self: Pin<&mut Self>,
cx: &mut task::Context<'_>,
mut buf: &[u8],
) -> task::Poll<Result<usize, io::Error>> {
info!("<******* [ [ [ start write ] ] ] *******>");
let mut inner = self.get_mut();
let original_buf_len = buf.len();
let mut head = inner.ring.head.load(Ordering::SeqCst);
let mut tail = inner.ring.tail.load(Ordering::SeqCst);
let mut wrapped = inner.ring.wrapped.load(Ordering::SeqCst);
let mut cap = inner.ring.capacity;
let mut bytes_written = 0;
let mut amt_available = |h: usize, t: usize, c: usize| match t <= h {
true => (c - h) + t,
false => t - h,
};
match wrapped {
true => {
let available = amt_available(head, tail, cap);
let mut batch_size = MAX_BATCH_SIZE.min(available).min(original_buf_len);
if head == tail {
batch_size = 0;
}
if batch_size == 0 {
inner.ring.writer.register(cx.waker());
return task::Poll::Pending;
}
bytes_written += inner.ring.write_region(head, &buf[..batch_size]);
inner.ring.head.store(head + batch_size, Ordering::Relaxed);
}
false => {
let available = amt_available(head, tail, cap);
let mut batch_size = MAX_BATCH_SIZE
.min(available)
.min(original_buf_len)
.min(cap - head);
if batch_size == 0 {
inner.ring.writer.register(cx.waker());
return task::Poll::Pending;
}
bytes_written += inner.ring.write_region(head, &buf[..batch_size]);
let mut remaining = (original_buf_len - bytes_written);
remaining = (available - batch_size).min(original_buf_len - bytes_written);
if remaining > 0 {
bytes_written += inner
.ring
.write_region(0, &buf[batch_size..batch_size + remaining]);
inner.ring.wrapped.store(true, Ordering::Relaxed);
inner.ring.head.store(remaining, Ordering::Relaxed);
} else {
let mut new_head = head + batch_size;
if new_head == cap {
new_head = 0;
inner.ring.wrapped.store(true, Ordering::Relaxed);
}
inner.ring.head.store(new_head, Ordering::Relaxed);
}
}
}
if bytes_written > 0 {
inner.ring.reader.wake();
return task::Poll::Ready(Ok(bytes_written));
}
inner.ring.writer.register(cx.waker());
task::Poll::Pending
}
fn poll_flush(
self: Pin<&mut Self>,
cx: &mut task::Context<'_>,
) -> task::Poll<Result<(), io::Error>> {
task::Poll::Ready(Ok(()))
}
fn poll_shutdown(
self: Pin<&mut Self>,
cx: &mut task::Context<'_>,
) -> task::Poll<Result<(), io::Error>> {
task::Poll::Ready(Ok(()))
}
}
unsafe impl<T> Send for Tx<T> {}
unsafe impl<T> Send for Rx<T> {}
unsafe impl<'a, T, IO: AsyncWrite + Unpin + Send> Send for WriteIOFuture<'a, T, IO> {}
unsafe impl<'a, T, IO: AsyncWrite + Unpin + Send> Sync for WriteIOFuture<'a, T, IO> {}
unsafe impl<'a, T, IO: AsyncRead + Unpin + Send> Send for ReadIOFuture<'a, T, IO> {}
unsafe impl<'a, T, IO: AsyncRead + Unpin + Send> Sync for ReadIOFuture<'a, T, IO> {}
#[cfg(test)]
mod tests {
use super::*;
use anyhow::Error;
use std::time::Duration;
use tokio::{
join,
net::{TcpListener, TcpStream},
prelude::*,
stream::StreamExt,
time,
};
use tracing::{error, info, info_span, Level};
use tracing_futures::Instrument;
fn make_slice<'a>(ptr: *mut u8, offset: usize, len: usize) -> &'a [u8] {
let ptr = unsafe { ptr.add(offset) };
let slice = unsafe { slice::from_raw_parts_mut(ptr, len) };
slice
}
fn setup_tracing() {
tracing_subscriber::fmt()
.with_target(true)
.with_level(true)
.with_max_level(Level::DEBUG)
.try_init();
}
#[tokio::test]
async fn test_safer_use_case() -> Result<(), Error> {
setup_tracing();
const ADDR: &str = "127.0.0.1:5454";
let (mut wr, mut re) = Ring::<u8>::create(10);
let mut stream = TcpListener::bind(ADDR).await?;
tokio::spawn(async {
let mut conn = TcpStream::connect(ADDR).await.unwrap();
let buffy = vec![1, 2, 3, 4, 5, 6, 7, 8];
let res = conn.write(&buffy).await;
time::delay_for(Duration::from_secs(2)).await;
let buffy = vec![1, 2, 3, 4, 5, 6, 7, 8];
let res = conn.write(&buffy).await;
time::delay_for(Duration::from_secs(2)).await;
});
if let Some(Ok(mut conn)) = stream.next().await {
let (mut rx, mut tx) = conn.split();
let (mut write_guard, amt) = wr.get_buffer(20)?;
let rx_amt = rx.read(&mut *write_guard).await?;
info!("rx_amt: {}", rx_amt);
write_guard.2 = rx_amt;
info!("{:#?}", write_guard);
drop(write_guard);
// let amt_read = rx.read(&mut *buf).await?;
// let amt_read = write_guard.read(&mut rx).await?;
let (mut read_guard, amt) = re.get_buffer(rx_amt)?;
read_guard.2 = tx.write(&*read_guard).await?;
info!("{:#?}", read_guard);
// let amt_wrote = read_guard.write(&mut tx).await?;
drop(read_guard);
let (mut write_guard, amt) = wr.get_buffer(20)?;
info!("{:#?}", write_guard);
let rx_amt = rx.read(&mut *write_guard).await?;
info!("rx_amt: {}", rx_amt);
write_guard.2 = rx_amt;
info!("{:#?}", write_guard);
drop(write_guard);
let (mut write_guard, amt) = wr.get_buffer(20)?;
info!("{:#?}", write_guard);
let rx_amt = rx.read(&mut *write_guard).await?;
info!("rx_amt: {}", rx_amt);
write_guard.2 = rx_amt;
info!("{:#?}", write_guard);
drop(write_guard);
let (mut read_guard, amt) = re.get_buffer(rx_amt)?;
read_guard.2 = tx.write(&*read_guard).await?;
info!("{:#?}", read_guard);
}
info!("re: {:#?}", re);
info!("wr: {:#?}", wr);
Ok(())
}
#[tokio::test]
async fn ringbuf_get_write_region() -> Result<(), Error> {
setup_tracing();
const ADDR: &str = "127.0.0.1:5454";
let (mut wr, mut re) = Ring::<u8>::create(10);
let (mut buf, amt) = wr.get_buffer(20)?;
info!("Allocated {} mutable bytes for use in reads..", amt);
let mut stream = TcpListener::bind(ADDR).await?;
debug!(?buf);
tokio::spawn(async {
let mut conn = TcpStream::connect(ADDR).await.unwrap();
let buffy = vec![1, 2, 3, 4, 5, 6, 7, 8];
let res = conn.write(&buffy).await.unwrap();
info!("Wrote {} bytes to socket..", res);
});
if let Some(Ok(mut conn)) = stream.next().await {
let (mut rx, mut tx) = conn.split();
let amt_read = rx.read(&mut *buf).await?;
// assert_eq!(amt, amt_read);
info!("Actually read {} bytes.. data: {:#?}", amt_read, buf);
drop(buf);
debug!("Re-after-drop: {:#?}", re);
let (outbuf, amt) = re.get_buffer(amt_read)?;
info!("Allocated {} bytes for use in writes..", amt);
let res = tx.write(&*outbuf).await?;
assert_eq!(amt, res);
info!("Actually wrote {} bytes.. data: {:#?}", res, &*outbuf);
drop(outbuf);
debug!("Re-after-drop: {:#?}", re);
}
Ok(())
}
// #[tokio::test]
async fn ringbuf_test_misc() -> Result<(), Error> {
// setup_tracing();
let (mut wr, mut re) = Ring::<u8>::create(20);
let src_buf = vec![1, 2, 3, 4, 5, 6, 7, 8];
let mut dst_buf = vec![0; 10];
// Write 8 entries
let res = wr
.write(&src_buf)
.instrument(info_span!("write", id = 1))
.await?;
assert_eq!(res, 8);
info!(
">>> Head: {}, Tail: {}, Wrote: {}",
wr.head(),
wr.tail(),
res
);
// Write 5 entries
let sbuf = vec![66, 66, 66, 66, 66];
let res = wr
.write(&sbuf)
.instrument(info_span!("write", id = 2))
.await?;
assert_eq!(res, 5);
info!(
">>> Head: {}, Tail: {}, Wrote: {}",
wr.head(),
wr.tail(),
res
);
// Read 10 entries
let read_amt = re
.read(&mut dst_buf)
.instrument(info_span!("read", id = 3))
.await?;
assert_eq!(read_amt, 10);
info!(
">>> Head: {}, Tail: {}, Read: {}",
re.head(),
re.tail(),
read_amt
);
// Write 4 entries
let newbuf = vec![12, 12, 12, 12];
let res = wr
.write(&newbuf)
.instrument(info_span!("write", id = 4))
.await?;
info!(
">>> Head: {}, Tail: {}, Wrote: {}",
wr.head(),
wr.tail(),
res
);
// Read 10 entries
let read_amt = re
.read(&mut dst_buf)
.instrument(info_span!("read", id = 5))
.await?;
dbg!(read_amt);
info!(
">>> Head: {}, Tail: {}, Read: {}",
re.head(),
re.tail(),
read_amt
);
// Write ... 8?
let res = time::timeout(
Duration::from_secs(10),
wr.write(&src_buf).instrument(info_span!("write", id = 6)),
)
.await??;
dbg!(&res);
assert_eq!(res, 8);
info!(
">>> Head: {}, Tail: {}, Wrote: {}",
wr.head(),
wr.tail(),
res
);
let read_amt = re
.read(&mut dst_buf)
.instrument(info_span!("read", id = 7))
.await?;
// assert_eq!(read_amt, 10);
info!(
">>> head: {}, tail: {}, read: {}",
re.head(),
re.tail(),
read_amt
);
let read_amt = re
.read(&mut dst_buf)
.instrument(info_span!("read", id = 8))
.await?;
// assert_eq!(read_amt, 10);
info!(
">>> head: {}, tail: {}, read: {}",
re.head(),
re.tail(),
read_amt
);
tokio::spawn(async move {
time::delay_for(Duration::from_secs(4)).await;
let newbuf = vec![88, 88, 88];
let res = wr
.write(&newbuf)
.instrument(info_span!("write", id = 9))
.await
.unwrap();
info!(
">>> Head: {}, Tail: {}, Wrote: {}",
wr.head(),
wr.tail(),
res
);
dbg!(&wr);
});
let read_amt = re
.read(&mut dst_buf)
.instrument(info_span!("read", id = 10))
.await?;
// assert_eq!(read_amt, 10);
info!(
">>> head: {}, tail: {}, read: {}",
re.head(),
re.tail(),
read_amt
);
drop(re);
Ok(())
}
#[tokio::test]
async fn ring_max_write_read_blocked_write() -> Result<(), Error> {
// setup_tracing();
let (mut wr, mut re) = Ring::<u8>::create(10);
let src_buf = vec![1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
let mut dst_buf = vec![0; 8];
// Write 8 entries
let res = wr
.write(&src_buf)
.instrument(info_span!("write", id = 1))
.await?;
assert_eq!(res, 10);
debug!(?wr.ring.head, ?wr.ring.tail, ?wr.ring.wrapped);
// dbg!(wr.get_ring_slab());
// dbg!(&src_buf);
// Write 5 entries, even though it's full
let handle = tokio::spawn(async move {
// time::delay_for(Duration::from_secs(4)).await;
let sbuf = vec![66, 66, 66, 66, 66];
let res = wr
.write(&sbuf)
.instrument(info_span!("write", id = 2))
.await
.unwrap();
assert_eq!(res, 5);
info!("After 2nd write..");
debug!(?wr.ring.head, ?wr.ring.tail, ?wr.ring.wrapped);
info!(
">>> Head: {}, Tail: {}, Wrote: {}",
wr.head(),
wr.tail(),
res
);
dbg!(wr.get_ring_slab());
});
// Read X entries
time::delay_for(Duration::from_secs(4)).await;
info!("after delay..");
let read_amt = re
.read(&mut dst_buf)
.instrument(info_span!("read", id = 3))
.await?;
assert_eq!(read_amt, 8);
debug!(?re.ring.head, ?re.ring.tail, ?re.ring.wrapped, read_amt);
// dbg!(&dst_buf);
// info!("After read.... ");
// dbg!(re.get_ring_slab());
handle.await;
Ok(())
}
#[tokio::test(core_threads = 10)]
async fn ring_simple_back_forth() -> Result<(), Error> {
// setup_tracing();
let (mut wr, mut re) = Ring::<u8>::create(1024);
let src_buf = vec![1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
let mut dst_buf = vec![0; 11];
let handle2 = tokio::spawn(async move {
let mut tail = 0;
for a in 0..10000 {
let res = re.read(&mut dst_buf).await.unwrap();
dbg!(res);
debug!("round: {} => read buffer[{}]: {:?}", a, res, &dst_buf);
tail = re.tail();
}
info!("ended with tail @ {}", tail);
// info!("ring: {:#?}", re.get_ring_slab());
});
let handle = tokio::spawn(async move {
let mut head = 0;
for a in 0..10000 {
let res = wr.write(&src_buf).await.unwrap();
dbg!(res);
debug!("round: {} => wrote amt: [{}]", a, res);
head = wr.head();
}
info!("ended with head @ {}", head);
// info!("ring: {:#?}", wr.get_ring_slab());
});
// let (res, res2) = join!(handle, handle2);
handle2.await;
Ok(())
}
#[tokio::test]
async fn test_simple_ring() -> Result<(), Error> {
// setup_tracing();
let (mut wr, mut re) = Ring::<u8>::create(10);
let src_buf = vec![1, 2, 3, 4, 5, 6];
let mut dst_buf = vec![0; 4];
// W + 6
let res = wr.write(&src_buf).await?;
dbg!(res);
debug!("Wrote: {}", res);
assert_eq!(res, 6);
assert_eq!(wr.head(), 6);
assert_eq!(wr.tail(), 0);
assert!(!wr.ring.wrapped());
debug!(
"[head: {}, tail: {}] ring: {:#?}",
wr.head(),
wr.tail(),
&wr.get_ring_slab()
);
// re + 4
let res = re.read(&mut dst_buf).await?;
debug!("[amt_read: {} ] Read buffer: {:?}", res, &dst_buf);
assert_eq!(res, 4);
assert_eq!(re.head(), 6);
assert_eq!(re.tail(), 4);
assert!(!re.ring.wrapped());
assert_eq!(dst_buf, [1, 2, 3, 4]);
debug!(
"[head: {}, tail: {}] ring: {:#?}",
re.head(),
re.tail(),
&re.get_ring_slab()
);
// re + 4
let res = re.read(&mut dst_buf).await?;
debug!("[amt_read: {} ] Read buffer: {:?}", res, &dst_buf);
assert_eq!(res, 2);
assert_eq!(re.head(), 6);
assert_eq!(re.tail(), 6);
assert!(!re.ring.wrapped());
assert_eq!(dst_buf, [5, 6, 3, 4]);
debug!(
"[head: {}, tail: {}] ring: {:#?}",
re.head(),
re.tail(),
&re.get_ring_slab()
);
// W + 6
let res = wr.write(&src_buf).await?;
dbg!(res);
debug!("Wrote: {}", res);
assert_eq!(res, 6);
assert_eq!(wr.head(), 2);
assert_eq!(wr.tail(), 6);
assert!(wr.ring.wrapped());
debug!(
"[head: {}, tail: {}] ring: {:#?}",
wr.head(),
wr.tail(),
&wr.get_ring_slab()
);
// R + 4
let res = re.read(&mut dst_buf).await?;
debug!("[amt_read: {} ] Read buffer: {:?}", res, &dst_buf);
assert_eq!(res, 4);
assert_eq!(re.head(), 2);
assert_eq!(re.tail(), 0);
assert!(!re.ring.wrapped());
assert_eq!(dst_buf, [1, 2, 3, 4]);
debug!(
"[head: {}, tail: {}] ring: {:#?}",
re.head(),
re.tail(),
&re.get_ring_slab()
);
let res = re.read(&mut dst_buf).await?;
debug!("[amt_read: {} ] Read buffer: {:?}", res, &dst_buf);
assert_eq!(res, 2);
assert_eq!(re.head(), 2);
assert_eq!(re.tail(), 2);
assert!(!re.ring.wrapped());
assert_eq!(dst_buf, [5, 6, 3, 4]);
debug!(
"[head: {}, tail: {}] ring: {:#?}",
re.head(),
re.tail(),
&re.get_ring_slab()
);
let handle = tokio::spawn(async move {
time::delay_for(Duration::from_secs(4)).await;
let res = wr.write(&src_buf).await.unwrap();
dbg!(res);
debug!("Wrote: {}", res);
assert_eq!(res, 6);
assert_eq!(wr.head(), 8);
assert_eq!(wr.tail(), 2);
assert!(!wr.ring.wrapped());
debug!(
"[head: {}, tail: {}] ring: {:#?}",
wr.head(),
wr.tail(),
&wr.get_ring_slab()
);
});
let mut last_buf = vec![0; 7];
let res = re.read(&mut last_buf).await?;
debug!("**** {:#?} ****", &last_buf);
assert_eq!(res, 6);
assert_eq!(re.head(), 8);
assert_eq!(re.tail(), 8);
assert!(!re.ring.wrapped());
debug!(
"[head: {}, tail: {}] ring: {:#?}",
re.head(),
re.tail(),
&re.get_ring_slab()
);
handle.await;
Ok(())
}
#[test]
fn test_bitwise() {
// setup_tracing();
let val = AtomicU8::new(0);
// let res = val.load(Ordering::SeqCst).into() & RingFlags::RING_FULL;
let res = RingFlags::from_bits(val.load(Ordering::SeqCst))
.unwrap()
.contains(RingFlags::RING_FULL);
let flag2 = RingFlags::from_bits(0b1101).unwrap();
let flag1 = RingFlags::RING_FULL;
let flags = flag1 | flag2;
// debug!(?flags);
let flags2 = flag1 & flag2;
// debug!(?flags2);
dbg!(flags, flags2, flag1, flag2);
let res =
RingFlags::from_bits(0b1111).unwrap() & RingFlags::READ_DROP == RingFlags::READ_DROP;
// let res2 = RingFlags::READ_DROP & RingFlags::READ_DROP;
// debug!(?res);
// debug!(?res2);
}
}
| 33.510302 | 97 | 0.508926 |
fbb5f7be69403a81ae0fe1a2eec3ce7202c3375d | 21,408 | java | Java | guava/src/com/google/common/util/concurrent/TimeLimiter.java | dmgerman/guava | cd0c423cd6248cbcbf6345a6d9124c3d8c667b19 | [
"Apache-2.0"
] | null | null | null | guava/src/com/google/common/util/concurrent/TimeLimiter.java | dmgerman/guava | cd0c423cd6248cbcbf6345a6d9124c3d8c667b19 | [
"Apache-2.0"
] | 4 | 2021-11-02T19:40:16.000Z | 2022-03-30T19:24:27.000Z | guava/src/com/google/common/util/concurrent/TimeLimiter.java | dmgerman/guava | cd0c423cd6248cbcbf6345a6d9124c3d8c667b19 | [
"Apache-2.0"
] | null | null | null | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Copyright (C) 2006 The Guava 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. */
end_comment
begin_package
DECL|package|com.google.common.util.concurrent
package|package
name|com
operator|.
name|google
operator|.
name|common
operator|.
name|util
operator|.
name|concurrent
package|;
end_package
begin_import
import|import static
name|com
operator|.
name|google
operator|.
name|common
operator|.
name|util
operator|.
name|concurrent
operator|.
name|Internal
operator|.
name|toNanosSaturated
import|;
end_import
begin_import
import|import
name|com
operator|.
name|google
operator|.
name|common
operator|.
name|annotations
operator|.
name|Beta
import|;
end_import
begin_import
import|import
name|com
operator|.
name|google
operator|.
name|common
operator|.
name|annotations
operator|.
name|GwtIncompatible
import|;
end_import
begin_import
import|import
name|com
operator|.
name|google
operator|.
name|errorprone
operator|.
name|annotations
operator|.
name|CanIgnoreReturnValue
import|;
end_import
begin_import
import|import
name|com
operator|.
name|google
operator|.
name|errorprone
operator|.
name|annotations
operator|.
name|DoNotMock
import|;
end_import
begin_import
import|import
name|java
operator|.
name|time
operator|.
name|Duration
import|;
end_import
begin_import
import|import
name|java
operator|.
name|util
operator|.
name|concurrent
operator|.
name|Callable
import|;
end_import
begin_import
import|import
name|java
operator|.
name|util
operator|.
name|concurrent
operator|.
name|ExecutionException
import|;
end_import
begin_import
import|import
name|java
operator|.
name|util
operator|.
name|concurrent
operator|.
name|TimeUnit
import|;
end_import
begin_import
import|import
name|java
operator|.
name|util
operator|.
name|concurrent
operator|.
name|TimeoutException
import|;
end_import
begin_import
import|import
name|org
operator|.
name|checkerframework
operator|.
name|checker
operator|.
name|nullness
operator|.
name|qual
operator|.
name|Nullable
import|;
end_import
begin_comment
comment|/** * Imposes a time limit on method calls. * * @author Kevin Bourrillion * @author Jens Nyman * @since 1.0 */
end_comment
begin_interface
annotation|@
name|Beta
annotation|@
name|DoNotMock
argument_list|(
literal|"Use FakeTimeLimiter"
argument_list|)
annotation|@
name|GwtIncompatible
annotation|@
name|ElementTypesAreNonnullByDefault
DECL|interface|TimeLimiter
specifier|public
interface|interface
name|TimeLimiter
block|{
comment|/** * Returns an instance of {@code interfaceType} that delegates all method calls to the {@code * target} object, enforcing the specified time limit on each call. This time-limited delegation * is also performed for calls to {@link Object#equals}, {@link Object#hashCode}, and {@link * Object#toString}. * *<p>If the target method call finishes before the limit is reached, the return value or * exception is propagated to the caller exactly as-is. If, on the other hand, the time limit is * reached, the proxy will attempt to abort the call to the target, and will throw an {@link * UncheckedTimeoutException} to the caller. * *<p>It is important to note that the primary purpose of the proxy object is to return control to * the caller when the timeout elapses; aborting the target method call is of secondary concern. * The particular nature and strength of the guarantees made by the proxy is * implementation-dependent. However, it is important that each of the methods on the target * object behaves appropriately when its thread is interrupted. * *<p>For example, to return the value of {@code target.someMethod()}, but substitute {@code * DEFAULT_VALUE} if this method call takes over 50 ms, you can use this code: * *<pre> * TimeLimiter limiter = . . .; * TargetType proxy = limiter.newProxy( * target, TargetType.class, 50, TimeUnit.MILLISECONDS); * try { * return proxy.someMethod(); * } catch (UncheckedTimeoutException e) { * return DEFAULT_VALUE; * } *</pre> * * @param target the object to proxy * @param interfaceType the interface you wish the returned proxy to implement * @param timeoutDuration with timeoutUnit, the maximum length of time that callers are willing to * wait on each method call to the proxy * @param timeoutUnit with timeoutDuration, the maximum length of time that callers are willing to * wait on each method call to the proxy * @return a time-limiting proxy * @throws IllegalArgumentException if {@code interfaceType} is a regular class, enum, or * annotation type, rather than an interface */
annotation|@
name|SuppressWarnings
argument_list|(
literal|"GoodTime"
argument_list|)
comment|// should accept a java.time.Duration
DECL|method|newProxy (T target, Class<T> interfaceType, long timeoutDuration, TimeUnit timeoutUnit)
parameter_list|<
name|T
parameter_list|>
name|T
name|newProxy
parameter_list|(
name|T
name|target
parameter_list|,
name|Class
argument_list|<
name|T
argument_list|>
name|interfaceType
parameter_list|,
name|long
name|timeoutDuration
parameter_list|,
name|TimeUnit
name|timeoutUnit
parameter_list|)
function_decl|;
comment|/** * Returns an instance of {@code interfaceType} that delegates all method calls to the {@code * target} object, enforcing the specified time limit on each call. This time-limited delegation * is also performed for calls to {@link Object#equals}, {@link Object#hashCode}, and {@link * Object#toString}. * *<p>If the target method call finishes before the limit is reached, the return value or * exception is propagated to the caller exactly as-is. If, on the other hand, the time limit is * reached, the proxy will attempt to abort the call to the target, and will throw an {@link * UncheckedTimeoutException} to the caller. * *<p>It is important to note that the primary purpose of the proxy object is to return control to * the caller when the timeout elapses; aborting the target method call is of secondary concern. * The particular nature and strength of the guarantees made by the proxy is * implementation-dependent. However, it is important that each of the methods on the target * object behaves appropriately when its thread is interrupted. * *<p>For example, to return the value of {@code target.someMethod()}, but substitute {@code * DEFAULT_VALUE} if this method call takes over 50 ms, you can use this code: * *<pre> * TimeLimiter limiter = . . .; * TargetType proxy = limiter.newProxy(target, TargetType.class, Duration.ofMillis(50)); * try { * return proxy.someMethod(); * } catch (UncheckedTimeoutException e) { * return DEFAULT_VALUE; * } *</pre> * * @param target the object to proxy * @param interfaceType the interface you wish the returned proxy to implement * @param timeout the maximum length of time that callers are willing to wait on each method call * to the proxy * @return a time-limiting proxy * @throws IllegalArgumentException if {@code interfaceType} is a regular class, enum, or * annotation type, rather than an interface * @since 28.0 */
DECL|method|newProxy (T target, Class<T> interfaceType, Duration timeout)
specifier|default
parameter_list|<
name|T
parameter_list|>
name|T
name|newProxy
parameter_list|(
name|T
name|target
parameter_list|,
name|Class
argument_list|<
name|T
argument_list|>
name|interfaceType
parameter_list|,
name|Duration
name|timeout
parameter_list|)
block|{
return|return
name|newProxy
argument_list|(
name|target
argument_list|,
name|interfaceType
argument_list|,
name|toNanosSaturated
argument_list|(
name|timeout
argument_list|)
argument_list|,
name|TimeUnit
operator|.
name|NANOSECONDS
argument_list|)
return|;
block|}
comment|/** * Invokes a specified Callable, timing out after the specified time limit. If the target method * call finishes before the limit is reached, the return value or a wrapped exception is * propagated. If, on the other hand, the time limit is reached, we attempt to abort the call to * the target, and throw a {@link TimeoutException} to the caller. * * @param callable the Callable to execute * @param timeoutDuration with timeoutUnit, the maximum length of time to wait * @param timeoutUnit with timeoutDuration, the maximum length of time to wait * @return the result returned by the Callable * @throws TimeoutException if the time limit is reached * @throws InterruptedException if the current thread was interrupted during execution * @throws ExecutionException if {@code callable} throws a checked exception * @throws UncheckedExecutionException if {@code callable} throws a {@code RuntimeException} * @throws ExecutionError if {@code callable} throws an {@code Error} * @since 22.0 */
annotation|@
name|SuppressWarnings
argument_list|(
literal|"GoodTime"
argument_list|)
comment|// should accept a java.time.Duration
annotation|@
name|CanIgnoreReturnValue
DECL|method|callWithTimeout ( Callable<T> callable, long timeoutDuration, TimeUnit timeoutUnit)
operator|<
name|T
expr|extends @
name|Nullable
name|Object
operator|>
name|T
name|callWithTimeout
argument_list|(
name|Callable
argument_list|<
name|T
argument_list|>
name|callable
argument_list|,
name|long
name|timeoutDuration
argument_list|,
name|TimeUnit
name|timeoutUnit
argument_list|)
throws|throws
name|TimeoutException
throws|,
name|InterruptedException
throws|,
name|ExecutionException
expr_stmt|;
comment|/** * Invokes a specified Callable, timing out after the specified time limit. If the target method * call finishes before the limit is reached, the return value or a wrapped exception is * propagated. If, on the other hand, the time limit is reached, we attempt to abort the call to * the target, and throw a {@link TimeoutException} to the caller. * * @param callable the Callable to execute * @param timeout the maximum length of time to wait * @return the result returned by the Callable * @throws TimeoutException if the time limit is reached * @throws InterruptedException if the current thread was interrupted during execution * @throws ExecutionException if {@code callable} throws a checked exception * @throws UncheckedExecutionException if {@code callable} throws a {@code RuntimeException} * @throws ExecutionError if {@code callable} throws an {@code Error} * @since 28.0 */
annotation|@
name|CanIgnoreReturnValue
DECL|method|callWithTimeout (Callable<T> callable, Duration timeout)
expr|default
operator|<
name|T
expr|extends @
name|Nullable
name|Object
operator|>
name|T
name|callWithTimeout
argument_list|(
name|Callable
argument_list|<
name|T
argument_list|>
name|callable
argument_list|,
name|Duration
name|timeout
argument_list|)
throws|throws
name|TimeoutException
throws|,
name|InterruptedException
throws|,
name|ExecutionException
block|{
return|return
name|callWithTimeout
argument_list|(
name|callable
argument_list|,
name|toNanosSaturated
argument_list|(
name|timeout
argument_list|)
argument_list|,
name|TimeUnit
operator|.
name|NANOSECONDS
argument_list|)
return|;
block|}
end_interface
begin_comment
comment|/** * Invokes a specified Callable, timing out after the specified time limit. If the target method * call finishes before the limit is reached, the return value or a wrapped exception is * propagated. If, on the other hand, the time limit is reached, we attempt to abort the call to * the target, and throw a {@link TimeoutException} to the caller. * *<p>The difference with {@link #callWithTimeout(Callable, long, TimeUnit)} is that this method * will ignore interrupts on the current thread. * * @param callable the Callable to execute * @param timeoutDuration with timeoutUnit, the maximum length of time to wait * @param timeoutUnit with timeoutDuration, the maximum length of time to wait * @return the result returned by the Callable * @throws TimeoutException if the time limit is reached * @throws ExecutionException if {@code callable} throws a checked exception * @throws UncheckedExecutionException if {@code callable} throws a {@code RuntimeException} * @throws ExecutionError if {@code callable} throws an {@code Error} * @since 22.0 */
end_comment
begin_annotation
annotation|@
name|SuppressWarnings
argument_list|(
literal|"GoodTime"
argument_list|)
end_annotation
begin_comment
comment|// should accept a java.time.Duration
end_comment
begin_annotation
annotation|@
name|CanIgnoreReturnValue
end_annotation
begin_expr_stmt
DECL|method|callUninterruptiblyWithTimeout ( Callable<T> callable, long timeoutDuration, TimeUnit timeoutUnit)
operator|<
name|T
expr|extends @
name|Nullable
name|Object
operator|>
name|T
name|callUninterruptiblyWithTimeout
argument_list|(
name|Callable
argument_list|<
name|T
argument_list|>
name|callable
argument_list|,
name|long
name|timeoutDuration
argument_list|,
name|TimeUnit
name|timeoutUnit
argument_list|)
throws|throws
name|TimeoutException
throws|,
name|ExecutionException
expr_stmt|;
end_expr_stmt
begin_comment
comment|/** * Invokes a specified Callable, timing out after the specified time limit. If the target method * call finishes before the limit is reached, the return value or a wrapped exception is * propagated. If, on the other hand, the time limit is reached, we attempt to abort the call to * the target, and throw a {@link TimeoutException} to the caller. * *<p>The difference with {@link #callWithTimeout(Callable, Duration)} is that this method will * ignore interrupts on the current thread. * * @param callable the Callable to execute * @param timeout the maximum length of time to wait * @return the result returned by the Callable * @throws TimeoutException if the time limit is reached * @throws ExecutionException if {@code callable} throws a checked exception * @throws UncheckedExecutionException if {@code callable} throws a {@code RuntimeException} * @throws ExecutionError if {@code callable} throws an {@code Error} * @since 28.0 */
end_comment
begin_annotation
annotation|@
name|CanIgnoreReturnValue
end_annotation
begin_expr_stmt
DECL|method|callUninterruptiblyWithTimeout ( Callable<T> callable, Duration timeout)
expr|default
operator|<
name|T
expr|extends @
name|Nullable
name|Object
operator|>
name|T
name|callUninterruptiblyWithTimeout
argument_list|(
name|Callable
argument_list|<
name|T
argument_list|>
name|callable
argument_list|,
name|Duration
name|timeout
argument_list|)
throws|throws
name|TimeoutException
throws|,
name|ExecutionException
block|{
end_expr_stmt
begin_return
return|return
name|callUninterruptiblyWithTimeout
argument_list|(
name|callable
argument_list|,
name|toNanosSaturated
argument_list|(
name|timeout
argument_list|)
argument_list|,
name|TimeUnit
operator|.
name|NANOSECONDS
argument_list|)
return|;
end_return
begin_comment
unit|}
comment|/** * Invokes a specified Runnable, timing out after the specified time limit. If the target method * run finishes before the limit is reached, this method returns or a wrapped exception is * propagated. If, on the other hand, the time limit is reached, we attempt to abort the run, and * throw a {@link TimeoutException} to the caller. * * @param runnable the Runnable to execute * @param timeoutDuration with timeoutUnit, the maximum length of time to wait * @param timeoutUnit with timeoutDuration, the maximum length of time to wait * @throws TimeoutException if the time limit is reached * @throws InterruptedException if the current thread was interrupted during execution * @throws UncheckedExecutionException if {@code runnable} throws a {@code RuntimeException} * @throws ExecutionError if {@code runnable} throws an {@code Error} * @since 22.0 */
end_comment
begin_expr_stmt
unit|@
name|SuppressWarnings
argument_list|(
literal|"GoodTime"
argument_list|)
comment|// should accept a java.time.Duration
DECL|method|runWithTimeout (Runnable runnable, long timeoutDuration, TimeUnit timeoutUnit)
name|void
name|runWithTimeout
argument_list|(
name|Runnable
name|runnable
argument_list|,
name|long
name|timeoutDuration
argument_list|,
name|TimeUnit
name|timeoutUnit
argument_list|)
throws|throws
name|TimeoutException
throws|,
name|InterruptedException
expr_stmt|;
end_expr_stmt
begin_comment
comment|/** * Invokes a specified Runnable, timing out after the specified time limit. If the target method * run finishes before the limit is reached, this method returns or a wrapped exception is * propagated. If, on the other hand, the time limit is reached, we attempt to abort the run, and * throw a {@link TimeoutException} to the caller. * * @param runnable the Runnable to execute * @param timeout the maximum length of time to wait * @throws TimeoutException if the time limit is reached * @throws InterruptedException if the current thread was interrupted during execution * @throws UncheckedExecutionException if {@code runnable} throws a {@code RuntimeException} * @throws ExecutionError if {@code runnable} throws an {@code Error} * @since 28.0 */
end_comment
begin_function
DECL|method|runWithTimeout (Runnable runnable, Duration timeout)
specifier|default
name|void
name|runWithTimeout
parameter_list|(
name|Runnable
name|runnable
parameter_list|,
name|Duration
name|timeout
parameter_list|)
throws|throws
name|TimeoutException
throws|,
name|InterruptedException
block|{
name|runWithTimeout
argument_list|(
name|runnable
argument_list|,
name|toNanosSaturated
argument_list|(
name|timeout
argument_list|)
argument_list|,
name|TimeUnit
operator|.
name|NANOSECONDS
argument_list|)
expr_stmt|;
block|}
end_function
begin_comment
comment|/** * Invokes a specified Runnable, timing out after the specified time limit. If the target method * run finishes before the limit is reached, this method returns or a wrapped exception is * propagated. If, on the other hand, the time limit is reached, we attempt to abort the run, and * throw a {@link TimeoutException} to the caller. * *<p>The difference with {@link #runWithTimeout(Runnable, long, TimeUnit)} is that this method * will ignore interrupts on the current thread. * * @param runnable the Runnable to execute * @param timeoutDuration with timeoutUnit, the maximum length of time to wait * @param timeoutUnit with timeoutDuration, the maximum length of time to wait * @throws TimeoutException if the time limit is reached * @throws UncheckedExecutionException if {@code runnable} throws a {@code RuntimeException} * @throws ExecutionError if {@code runnable} throws an {@code Error} * @since 22.0 */
end_comment
begin_function_decl
annotation|@
name|SuppressWarnings
argument_list|(
literal|"GoodTime"
argument_list|)
comment|// should accept a java.time.Duration
DECL|method|runUninterruptiblyWithTimeout (Runnable runnable, long timeoutDuration, TimeUnit timeoutUnit)
name|void
name|runUninterruptiblyWithTimeout
parameter_list|(
name|Runnable
name|runnable
parameter_list|,
name|long
name|timeoutDuration
parameter_list|,
name|TimeUnit
name|timeoutUnit
parameter_list|)
throws|throws
name|TimeoutException
function_decl|;
end_function_decl
begin_comment
comment|/** * Invokes a specified Runnable, timing out after the specified time limit. If the target method * run finishes before the limit is reached, this method returns or a wrapped exception is * propagated. If, on the other hand, the time limit is reached, we attempt to abort the run, and * throw a {@link TimeoutException} to the caller. * *<p>The difference with {@link #runWithTimeout(Runnable, Duration)} is that this method will * ignore interrupts on the current thread. * * @param runnable the Runnable to execute * @param timeout the maximum length of time to wait * @throws TimeoutException if the time limit is reached * @throws UncheckedExecutionException if {@code runnable} throws a {@code RuntimeException} * @throws ExecutionError if {@code runnable} throws an {@code Error} * @since 28.0 */
end_comment
begin_function
DECL|method|runUninterruptiblyWithTimeout (Runnable runnable, Duration timeout)
specifier|default
name|void
name|runUninterruptiblyWithTimeout
parameter_list|(
name|Runnable
name|runnable
parameter_list|,
name|Duration
name|timeout
parameter_list|)
throws|throws
name|TimeoutException
block|{
name|runUninterruptiblyWithTimeout
argument_list|(
name|runnable
argument_list|,
name|toNanosSaturated
argument_list|(
name|timeout
argument_list|)
argument_list|,
name|TimeUnit
operator|.
name|NANOSECONDS
argument_list|)
expr_stmt|;
block|}
end_function
unit|}
end_unit
| 36.284746 | 2,197 | 0.771114 |
3a9bf488bbea3134b67a5b6c9330ad4643497065 | 3,596 | sql | SQL | mssql_convert_func/dbo.PG_SQL_Convert_Columns.sql | Fenoman/ms_sql_to_postgres_converter | 5dd16a463ee767a22633f6673a9298124ef497e3 | [
"MIT"
] | 5 | 2018-08-03T06:16:34.000Z | 2019-10-10T10:46:54.000Z | mssql_convert_func/dbo.PG_SQL_Convert_Columns.sql | Fenoman/ms_sql_to_postgres_converter | 5dd16a463ee767a22633f6673a9298124ef497e3 | [
"MIT"
] | null | null | null | mssql_convert_func/dbo.PG_SQL_Convert_Columns.sql | Fenoman/ms_sql_to_postgres_converter | 5dd16a463ee767a22633f6673a9298124ef497e3 | [
"MIT"
] | null | null | null | IF OBJECT_ID('dbo.PG_SQL_Convert_Columns') IS NOT NULL
DROP FUNCTION dbo.PG_SQL_Convert_Columns
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: e-pavlichenko
-- CREATE date: 25.05.2018
-- Alter date: 25.05.2018
-- Description: Конвертация колонок
-- =============================================
CREATE FUNCTION dbo.PG_SQL_Convert_Columns
(
@T_object_id INT,
@T_name VARCHAR(255),
@PK_exists_index_id INT,
@cc_exists_B_Exists BIT,
@kc_exists_B_Exists BIT
)
RETURNS VARCHAR(max)
AS
BEGIN
RETURN
REVERSE(STUFF(REVERSE
(
(
SELECT
-- имя колонки
CHAR(9) + IIF(ISNUMERIC(C.name) = 1, '"' + C.name + '"', C.name) + ' '
-- ее тип в PG
+ dbo.PG_Columns_Converter(C.name, @T_name, Ts.name, C.max_length, C.precision, C.scale)
-- допустимость NULL
+ IIF(C.is_nullable = 1, '', ' NOT NULL')
-- IDENTITY
+ IIF(c.is_identity = 1, ' GENERATED BY DEFAULT AS IDENTITY', '')
-- Значение по умолчанию
+ IIF(dc.name IS NOT NULL, ' DEFAULT ' + dbo.PG_DefaultValuesMapping
(
Ts.name,
dbo.PG_FunctionsMapping(dbo.PG_SchemeMapping(dbo.PG_Remove_Brackets(dc.definition, 0)))
)
, '')
-- ограничение для столбца
+ IIF(cc.object_id IS NOT NULL, ' CONSTRAINT ' + cc.name + ' CHECK ('
+ dbo.PG_Add_Brackets(
dbo.PG_Replace_Pattern(
dbo.PG_Remove_Brackets(
dbo.PG_CheckConstraints_Convert(cc.definition), 0
)
)
)
+ ')'
, '')
-- Ставим в конце запятую и перевод строки
+ ',' + CHAR(10)
FROM sys.columns AS C
LEFT JOIN sys.default_constraints dc
ON dc.object_id = c.default_object_id
AND dc.parent_object_id = c.object_id
LEFT JOIN sys.check_constraints cc
ON CC.parent_object_id = C.object_id
AND CC.parent_column_id = C.column_id
INNER JOIN sys.types AS Ts
ON Ts.system_type_id = c.system_type_id
AND Ts.user_type_id = c.user_type_id
WHERE C.object_id = @T_object_id
ORDER BY
/*------------------------------------------------------------------------------------
порядок колонок при создании таблицы
-------------------------------------------------------------------------------------*/
/* -- Example
IIF(C.name = 'ColOne', 1, 0) DESC,
IIF(C.name = 'ColTwo', 1, 0) DESC,
IIF(C.name = 'ColThree', 1, 0) DESC,
IIF(C.name LIKE 'SomeName[_]%' AND C.name <> 'SomeName_999', 1, 0) DESC,
IIF(C.name LIKE 'F[_]%', 1, 0) DESC,
IIF(C.name LIKE 'C[_]%', 1, 0) DESC,
IIF(C.name LIKE 'N[_]%', 1, 0) DESC,
IIF(C.name LIKE 'B[_]%', 1, 0) DESC,
IIF(C.name LIKE 'D[_]%', 1, 0) DESC,
IIF(C.name LIKE 'I[_]%', 1, 0) DESC,
IIF(C.name LIKE 'int%', 1, 0) DESC,
TRY_CAST(REPLACE(c.name, 'int', '') AS INT) ASC,
IIF(C.name LIKE 'money%', 1, 0) DESC,
TRY_CAST(REPLACE(c.name, 'money', '') AS INT) ASC,
IIF(C.name LIKE 'bit%', 1, 0) DESC,
TRY_CAST(REPLACE(c.name, 'bit', '') AS INT) ASC,
IIF(C.name LIKE 'datetime%', 1, 0) DESC,
TRY_CAST(REPLACE(c.name, 'datetime', '') AS INT) ASC,
IIF(C.name LIKE 'string%', 1, 0) DESC,
TRY_CAST(REPLACE(c.name, 'string', '') AS INT) ASC,
IIF(C.name NOT LIKE 'S[_]%', 1, 0) DESC,
*/
c.name ASC
FOR XML path(''), TYPE
).value('./text()[1]','varchar(max)')
), 1, 2, IIF(@PK_exists_index_id IS NULL AND @cc_exists_B_Exists IS NULL AND @kc_exists_B_Exists IS NULL, '', ',') ))
END
GO | 33.924528 | 118 | 0.55089 |
3e6c0c6e3c4d994e588313c73302d27e097423f0 | 6,129 | h | C | Embedded/common/src/b_ImageEm/UInt16ByteImage.h | CatalinVoss/neven | e5d615eb4b2e96d194f7066ca01acabe2bc43188 | [
"Apache-2.0"
] | 32 | 2015-02-02T10:41:22.000Z | 2020-09-03T13:02:58.000Z | Embedded/common/src/b_ImageEm/UInt16ByteImage.h | CatalinVoss/neven | e5d615eb4b2e96d194f7066ca01acabe2bc43188 | [
"Apache-2.0"
] | null | null | null | Embedded/common/src/b_ImageEm/UInt16ByteImage.h | CatalinVoss/neven | e5d615eb4b2e96d194f7066ca01acabe2bc43188 | [
"Apache-2.0"
] | 14 | 2015-02-02T14:47:37.000Z | 2019-08-22T09:53:11.000Z | /*
* Copyright (C) 2008 The Android Open Source Project
*
* 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.
*/
#ifndef bim_UINT16_IMAGE_EM_H
#define bim_UINT16_IMAGE_EM_H
/* ---- includes ----------------------------------------------------------- */
#include "b_BasicEm/Context.h"
#include "b_BasicEm/UInt16Arr.h"
#include "b_TensorEm/Int16Rect.h"
#include "b_TensorEm/Flt16Alt2D.h"
#include "b_ImageEm/UInt8Image.h"
/* ---- related objects --------------------------------------------------- */
/* ---- typedefs ----------------------------------------------------------- */
/* ---- constants ---------------------------------------------------------- */
/* data format version number */
#define bim_UINT16_IMAGE_VERSION 100
/* ---- object definition -------------------------------------------------- */
/** Packed byte image
* 2 pixels are stored on a 16 bit space.
* Using conventional pixel order, the first pixel is represented by the low-byte.
* A Pixel at position (x,y) can be accessed as follows:
* ( ( arrE.arrE + y * withE + ( x >> 1 ) ) >> ( 8 * ( x & 1 ) ) ) & 0x0FF;
*
* On little endian platforms bim_UInt16ByteImage and bim_UInt8Image
* have the same memory representation of the image data.
*/
struct bim_UInt16ByteImage
{
/* ---- private data --------------------------------------------------- */
/* ---- public data ---------------------------------------------------- */
/** width of image */
uint32 widthE;
/** height of image */
uint32 heightE;
/** array of 16bit words */
struct bbs_UInt16Arr arrE;
};
/* ---- associated objects ------------------------------------------------- */
/* ---- external functions ------------------------------------------------- */
/* ---- \ghd{ constructor/destructor } ------------------------------------- */
/** initializes bim_UInt16ByteImage */
void bim_UInt16ByteImage_init( struct bbs_Context* cpA,
struct bim_UInt16ByteImage* ptrA );
/** allocates memory for bim_UInt16ByteImage */
void bim_UInt16ByteImage_create( struct bbs_Context* cpA,
struct bim_UInt16ByteImage* ptrA,
uint32 widthA,
uint32 heightA,
struct bbs_MemSeg* mspA );
/** destructor of bim_UInt16ByteImage */
void bim_UInt16ByteImage_exit( struct bbs_Context* cpA,
struct bim_UInt16ByteImage* ptrA );
/* ---- \ghd{ operators } -------------------------------------------------- */
/** copy operator */
void bim_UInt16ByteImage_copy( struct bbs_Context* cpA,
struct bim_UInt16ByteImage* ptrA,
const struct bim_UInt16ByteImage* srcPtrA );
/** equal operator */
flag bim_UInt16ByteImage_equal( struct bbs_Context* cpA,
const struct bim_UInt16ByteImage* ptrA,
const struct bim_UInt16ByteImage* srcPtrA );
/* ---- \ghd{ query functions } -------------------------------------------- */
/** checksum of image (for debugging purposes) */
uint32 bim_UInt16ByteImage_checkSum( struct bbs_Context* cpA,
const struct bim_UInt16ByteImage* ptrA );
/* ---- \ghd{ modify functions } ------------------------------------------- */
/** assigns external image to array (no allocation, deallocation or copying of data) */
void bim_UInt16ByteImage_assignExternalImage( struct bbs_Context* cpA,
struct bim_UInt16ByteImage* ptrA,
struct bim_UInt16ByteImage* srcPtrA );
/** sets image size */
void bim_UInt16ByteImage_size( struct bbs_Context* cpA,
struct bim_UInt16ByteImage* ptrA,
uint32 widthA, uint32 heightA );
/* ---- \ghd{ memory I/O } ------------------------------------------------- */
/** size object needs when written to memory */
uint32 bim_UInt16ByteImage_memSize( struct bbs_Context* cpA,
const struct bim_UInt16ByteImage* ptrA );
/** writes object to memory; returns number of bytes written */
uint32 bim_UInt16ByteImage_memWrite( struct bbs_Context* cpA,
const struct bim_UInt16ByteImage* ptrA,
uint16* memPtrA );
/** reads object from memory; returns number of bytes read */
uint32 bim_UInt16ByteImage_memRead( struct bbs_Context* cpA,
struct bim_UInt16ByteImage* ptrA,
const uint16* memPtrA,
struct bbs_MemSeg* mspA );
/* ---- \ghd{ exec functions } --------------------------------------------- */
/** sets all pixels to one value; higher 8 bits of valueA are ignored */
void bim_UInt16ByteImage_setAllPixels( struct bbs_Context* cpA,
struct bim_UInt16ByteImage* ptrA,
uint16 valueA );
/** applies affine linear warping to pixels positions of imageA before copying the into *ptrA */
void bim_UInt16ByteImage_warp( struct bbs_Context* cpA,
struct bim_UInt16ByteImage* ptrA,
const struct bim_UInt16ByteImage* srcPtrA,
const struct bts_Flt16Alt2D* altPtrA,
int32 resultWidthA,
int32 resultHeightA );
#ifndef HW_TMS320C5x /* 16bit architecture excluded */
/** applies affine linear warping to pixels positions of ptrA before copying the into *ptrA.
* This function accepts an bim_UInt16ByteImage as input, but uses a faster algorithm
* utilizing 8-bit data access for warping.
* Only available for platforms that allow 8 bit data access.
*/
void bim_UInt16ByteImage_warp8( struct bbs_Context* cpA,
struct bim_UInt16ByteImage* ptrA,
const struct bim_UInt16ByteImage* srcPtrA,
const struct bts_Flt16Alt2D* altPtrA,
int32 resultWidthA,
int32 resultHeightA );
#endif /* HW_TMS320C5x */
#endif /* bim_UINT16_IMAGE_EM_H */
| 36.921687 | 96 | 0.602545 |
ad7b82c6042e870eaadce38b359c392b5c052b6b | 12,562 | ps1 | PowerShell | eng/validation/build-arcadewithrepo.ps1 | riarenas/arcade-validation | 88d03235de1b1864df244f99d8711fb2ee9fcf66 | [
"MIT"
] | null | null | null | eng/validation/build-arcadewithrepo.ps1 | riarenas/arcade-validation | 88d03235de1b1864df244f99d8711fb2ee9fcf66 | [
"MIT"
] | 2 | 2019-03-25T20:05:38.000Z | 2019-06-23T01:01:52.000Z | eng/validation/build-arcadewithrepo.ps1 | riarenas/arcade-validation | 88d03235de1b1864df244f99d8711fb2ee9fcf66 | [
"MIT"
] | 1 | 2019-06-23T00:55:01.000Z | 2019-06-23T00:55:01.000Z | Param(
[Parameter(Mandatory=$true)][string] $azdoOrg,
[Parameter(Mandatory=$true)][string] $azdoProject,
[Parameter(Mandatory=$true)][int] $buildDefinitionId,
[Parameter(Mandatory=$true)][string] $azdoToken,
[Parameter(Mandatory=$true)][string] $githubUser,
[Parameter(Mandatory=$true)][string] $githubPAT,
[Parameter(Mandatory=$true)][string] $githubOrg,
[Parameter(Mandatory=$true)][string] $githubRepoName,
[Parameter(Mandatory=$true)][string] $barToken,
[string] $buildParameters = '',
[switch] $pushBranchToGithub,
[string] $azdoRepoName,
[string] $subscribedBranchName
)
set-strictmode -version 2.0
$ErrorActionPreference = 'Stop'
. $PSScriptRoot\..\common\tools.ps1
$darc = & "$PSScriptRoot\get-darc.ps1"
$global:arcadeSdkPackageName = 'Microsoft.DotNet.Arcade.Sdk'
$global:arcadeSdkVersion = $GlobalJson.'msbuild-sdks'.$global:arcadeSdkPackageName
$global:azdoOrg = $azdoOrg
$global:azdoProject = $azdoProject
$global:buildDefinitionId = $buildDefinitionId
$global:azdoToken = $azdoToken
$global:githubUser = $githubUser
$global:githubPAT = $githubPAT
$global:githubOrg = $githubOrg
$global:githubRepoName = $githubRepoName
$global:barToken = $barToken
$global:buildParameters = if (-not $buildParameters) { "" } else { $buildParameters }
$global:pushBranchToGithub = $pushBranchToGithub
$global:azdoRepoName = if (-not $azdoRepoName) { "" } else { $azdoRepoName }
$global:subscribedBranchName = $subscribedBranchName
Write-Host "##vso[task.setvariable variable=arcadeVersion;isOutput=true]${global:arcadeSdkVersion}"
Write-Host "##vso[task.setvariable variable=qualifiedRepoName;isOutput=true]${global:githubOrg}/${global:githubRepoName}"
# Get a temporary directory for a test root. Use the agent work folder if running under azdo, use the temp path if not.
$testRootBase = if ($env:AGENT_WORKFOLDER) { $env:AGENT_WORKFOLDER } else { $([System.IO.Path]::GetTempPath()) }
$testRoot = Join-Path -Path $testRootBase -ChildPath $([System.IO.Path]::GetRandomFileName())
New-Item -Path $testRoot -ItemType Directory | Out-Null
function Get-LatestBuildSha()
{
## Verified that this API gets completed builds, not in progress builds
$headers = Get-AzDOHeaders
$uri = "https://dev.azure.com/${global:azdoOrg}/${global:azdoProject}/_apis/build/latest/${global:buildDefinitionId}?branchName=${global:subscribedBranchName}&api-version=5.1-preview.1"
$response = (Invoke-WebRequest -Uri $uri -Headers $headers -Method Get) | ConvertFrom-Json
## Report non-green repos for investigation purposes.
if(($response.result -ne "succeeded") -and ($response.result -ne "partiallySucceeded"))
{
Write-Host "##vso[task.setvariable variable=buildStatus;isOutput=true]NoLKG"
Write-Warning "The latest build on '${global:subscribedBranchName}' branch for the '${global:githubRepoName}' repository was not successful."
}
if("" -eq $response.triggerInfo)
{
return $response.sourceVersion
}
else
{
return $response.triggerInfo.'ci.sourceSha'
}
}
function Invoke-AzDOBuild()
{
$uri = Get-AzDOBuildUri
$headers = Get-AzDOHeaders
$body = @{
"definition"=@{
"id"=$global:buildDefinitionId
};
"sourceBranch"=$global:targetBranch;
}
if("" -ne $global:buildParameters)
{
$body = $body += @{"parameters"=$global:buildParameters}
}
$content = Invoke-WebRequest -Uri $uri -Headers $headers -ContentType "application/json" -Body ($body | ConvertTo-Json) -Method Post
return ($content | ConvertFrom-Json).id
}
function Get-BuildStatus(
[int] $buildId)
{
$uri = (Get-AzDOBuildUri -buildId $buildId)
$headers = Get-AzDOHeaders
$content = Invoke-WebRequest -Uri $uri -Headers $headers -ContentType "application/json" -Method Get
return ($content | ConvertFrom-Json).status
}
function Get-BuildResult(
[int] $buildId)
{
$uri = (Get-AzDOBuildUri -buildId $buildId)
$headers = Get-AzDOHeaders
$content = Invoke-WebRequest -Uri $uri -Headers $headers -ContentType "application/json" -Method Get
return ($content | ConvertFrom-Json).result
}
function Get-BuildLink(
[int] $build)
{
$uri = (Get-AzDOBuildUri -buildId $buildId)
$headers = Get-AzDOHeaders
$content = Invoke-WebRequest -Uri $uri -Headers $headers -ContentType "application/json" -Method Get
return ($content | ConvertFrom-Json)._links.web.href
}
function Get-AzDOBuildUri(
[int] $buildId,
[string] $queryStringParameters
)
{
$uri = "https://dev.azure.com/${global:azdoOrg}/${global:azdoProject}/_apis/build/builds/"
if(0 -ne $buildId)
{
$uri += $buildId
}
$uri += "?api-version=5.1" + $queryStringParameters
return $uri
}
function Get-AzDOHeaders()
{
$base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(":${global:azdoToken}"))
$headers = @{"Authorization"="Basic $base64AuthInfo"}
return $headers
}
function GitHub-Clone($repoName)
{
& git clone $global:githubUri $(Get-Repo-Location $repoName)
Push-Location -Path $(Get-Repo-Location $repoName)
& git config user.email "${global:githubUser}@test.com"
& git config user.name $global:githubUser
Pop-Location
}
function Get-Repo-Location($repoName){ "$testRoot\$repoName" }
function Git-Command($repoName) {
Push-Location -Path $(Get-Repo-Location($repoName))
try {
$gitParams = $args
if ($gitParams.GetType().Name -ne "Object[]") {
$gitParams = $gitParams.ToString().Split(" ")
}
Write-Host "Running 'git $gitParams' from $(Get-Location)"
$commandOutput = & git @gitParams; if ($LASTEXITCODE -ne 0) { throw "Git exited with exit code: $LASTEXITCODE" } else { $commandOutput }
$commandOutput
}
finally {
Pop-Location
}
}
## Global Variables
$global:githubUri = "https://${global:githubUser}:${global:githubPAT}@github.com/${global:githubOrg}/${global:githubRepoName}"
$global:azdoUri = "https://${global:githubUser}:${global:azdoToken}@dev.azure.com/${global:azdoOrg}/${global:azdoProject}/_git/${global:azdoRepoName}"
$global:remoteName = ($global:azdoOrg + "-" + $global:azdoRepoName)
$global:targetBranch = "dev/" + $global:githubUser + "/arcade-" + $global:arcadeSdkVersion
$global:darcBranchName = "refs/heads/" + $global:targetBranch
$global:darcGitHubRepoName = "https://github.com/${global:githubOrg}/${global:githubRepoName}"
$global:darcAzDORepoName = "https://dev.azure.com/${global:azdoOrg}/${global:azdoProject}/_git/${global:azdoRepoName}"
$global:darcRepoName = ""
## If able to retrieve the latest build, get the SHA that it was built from
$sha = Get-LatestBuildSha
## Clone the repo from git
Write-Host "Cloning '${global:githubRepoName} from GitHub"
GitHub-Clone $global:githubRepoName
## Check to see if branch exists and clean it up if it does
$branchExists = $false
if($true -eq $global:pushBranchToGithub)
{
Write-Host "Looking up '${global:targetBranch}' branch on GitHub"
$branchExists = Git-Command $global:githubRepoName ls-remote --heads $global:githubUri refs/heads/$global:targetBranch
}
else
{
Write-Host "Looking up '${global:targetBranch}' branch on Azure DevOps"
$branchExists = Git-Command $global:githubRepoName ls-remote --heads $global:azdoUri refs/heads/$global:targetBranch
}
if($null -ne $branchExists)
{
Write-Host "${global:targetBranch} was found. Attempting to clean up."
try
{
if($true -eq $global:pushBranchToGithub)
{
& $darc delete-default-channel --channel "General Testing" --branch $global:darcBranchName --repo $global:darcGitHubRepoName --github-pat $global:githubPAT --password $global:bartoken
Git-Command $global:githubRepoName push origin --delete $global:targetBranch
}
else
{
& $darc delete-default-channel --channel "General Testing" --branch $global:darcBranchName --repo $global:darcAzDORepoName --azdev-pat $global:azdoToken --password $global:bartoken
Git-Command $global:githubRepoName remote add $remoteName $global:azdoUri
Git-Command $global:githubRepoName push $remoteName --delete $global:targetBranch
}
}
catch
{
Write-Warning "Unable to delete default channel or branch when cleaning up"
}
}
## Create a branch from the repo with the given SHA.
Git-Command $global:githubRepoName checkout -b $global:targetBranch $sha
## Get the BAR Build ID for the version of Arcade we want to use in update-dependecies
$asset = & $darc get-asset --name $global:arcadeSdkPackageName --version $global:arcadeSdkVersion --github-pat $global:githubPAT --azdev-pat $global:azdoToken --password $global:bartoken
$barBuildIdString = $asset | Select-String -Pattern 'BAR Build Id:'
$barBuildId = ([regex]"\d+").Match($barBuildIdString).Value
## Make the changes to that branch to update Arcade - use darc
Set-Location $(Get-Repo-Location $global:githubRepoName)
& $darc update-dependencies --id $barBuildId --github-pat $global:githubPAT --azdev-pat $global:azdoToken --password $global:bartoken
Git-Command $global:githubRepoName commit -am "Arcade Validation test branch - version ${global:arcadeSdkVersion}"
if($true -eq $global:pushBranchToGithub)
{
## Push branch to github
Git-Command $global:githubRepoName push origin HEAD
## Assign darcRepoName value
$global:darcRepoName = $global:darcGitHubRepoName
}
else
{
## Push branch to AzDO org/project with the official pipeline to build the repo
## make remote, it might already exist if we had to delete it earlier, so wrapping it in a try/catch
try
{
Git-Command $global:githubRepoName remote add $global:remoteName $global:azdoUri
}
catch
{
Write-Host "'${global:remoteName}' already exists."
}
## push to remote
Git-Command $global:githubRepoName push $global:remoteName $global:targetBranch
## Assign darcRepoName value
$global:darcRepoName = $global:darcAzDORepoName
}
## Add default channel from that AzDO repo and branch to "General Testing"
& $darc add-default-channel --channel "General Testing" --branch $global:darcBranchName --repo $global:darcRepoName --azdev-pat $global:azdoToken --github-pat $global:githubPAT --password $global:bartoken
## Run an official build of the branch using the official pipeline
Write-Host "Invoking build on Azure DevOps"
$buildId = Invoke-AzDOBuild
## Output summary of references for investigations
Write-Host "Arcade Version: ${global:arcadeSdkVersion}"
Write-Host "BAR Build ID for Arcade: ${barBuildId}"
Write-Host "Repository Cloned: ${global:githubOrg}/${global:githubRepoName}"
Write-Host "Branch name in repository: ${global:targetBranch}"
Write-Host "Latest build SHA: ${sha}"
$buildLink = (Get-BuildLink -buildId $buildId)
Write-Host "Link to view build: ${buildLink}"
$currentDateTime = Get-Date
Write-Host "##vso[task.setvariable variable=buildBeginDateTime;isOutput=true]${currentDateTime}"
Write-Host "##vso[task.setvariable variable=barBuildId;isOutput=true]${barBuildId}"
Write-Host "##vso[task.setvariable variable=buildLink;isOutput=true]${buildLink}"
## Check build for completion every 5 minutes.
while("completed" -ne (Get-BuildStatus -buildId $buildId))
{
Write-Host "Waiting for build to complete..."
Start-Sleep -Seconds (5*60)
}
## If build fails, then exit
$buildResult = (Get-BuildResult -buildId $buildId)
Write-Host "##vso[task.setvariable variable=buildResult;isOutput=true]${buildResult}"
if(("failed" -eq $buildResult) -or ("canceled" -eq $buildResult))
{
Write-Error "Build failed or was cancelled"
exit
}
## Clean up branch if successful
Write-Host "Build was successful. Cleaning up ${global:targetBranch} branch."
try
{
if($true -eq $global:pushBranchToGithub)
{
& $darc delete-default-channel --channel "General Testing" --branch $global:darcBranchName --repo $global:darcGitHubRepoName --github-pat $global:githubPAT --password $global:bartoken
Git-Command $global:githubRepoName push origin --delete $global:targetBranch
}
else
{
& $darc delete-default-channel --channel "General Testing" --branch $global:darcBranchName --repo $global:darcAzDORepoName --azdev-pat $global:azdoToken --password $global:bartoken
Git-Command $global:githubRepoName push $global:remoteName --delete $global:targetBranch
}
}
catch
{
Write-Warning "Unable to delete default channel or branch when cleaning up"
}
| 39.37931 | 204 | 0.712944 |
f04e80849de6b58d3427a2626c996d5c8a80af47 | 483 | js | JavaScript | screens/auth/Login/Login.js | awais987123/CoinBase-React-Native-JS-app-Part-1 | dd2b4170b8ce1d8c4b03da168967f51f37557c8a | [
"MIT"
] | 4 | 2021-09-17T01:12:45.000Z | 2022-01-14T09:45:16.000Z | screens/auth/Login/Login.js | awais987123/CoinBase-React-Native-JS-app-Part-1 | dd2b4170b8ce1d8c4b03da168967f51f37557c8a | [
"MIT"
] | null | null | null | screens/auth/Login/Login.js | awais987123/CoinBase-React-Native-JS-app-Part-1 | dd2b4170b8ce1d8c4b03da168967f51f37557c8a | [
"MIT"
] | null | null | null | import React from 'react';
import { View, Text, SafeAreaView, ScrollView} from 'react-native';
import {Button} from "../../../components/Buttons/Buttons";
export default function Login() {
return (
<SafeAreaView>
<ScrollView>
<View>
<Text>
Sign in to CoinBase
</Text>
</View>
<View>
<Button text="Sign In" disable={false}/>
</View>
</ScrollView>
</SafeAreaView>
)
}
| 23 | 67 | 0.52795 |
17b8bb387752f1d7d49f8025b3e55b066028e1d2 | 8,863 | sql | SQL | application/database/sql/config_menus.sql | bryanstyawan/my-cash | cfb8a32b2e9eadc7a9a93e46dad73e30fff3de50 | [
"MIT"
] | null | null | null | application/database/sql/config_menus.sql | bryanstyawan/my-cash | cfb8a32b2e9eadc7a9a93e46dad73e30fff3de50 | [
"MIT"
] | null | null | null | application/database/sql/config_menus.sql | bryanstyawan/my-cash | cfb8a32b2e9eadc7a9a93e46dad73e30fff3de50 | [
"MIT"
] | null | null | null | /*
Navicat MySQL Data Transfer
Source Server : MySql
Source Server Version : 100411
Source Host : localhost:3306
Source Database : sikerja_future
Target Server Type : MYSQL
Target Server Version : 100411
File Encoding : 65001
Date: 2020-09-01 21:18:54
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for config_menus
-- ----------------------------
DROP TABLE IF EXISTS `config_menus`;
CREATE TABLE `config_menus` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_parent` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`url` varchar(100) NOT NULL,
`icon` varchar(50) NOT NULL,
`status` int(3) NOT NULL,
`sort_number` int(11) NOT NULL,
`created_by_nip` varchar(100) NOT NULL,
`updated_by_nip` varchar(100) NOT NULL,
`date_created` date NOT NULL,
`date_updated` date NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of config_menus
-- ----------------------------
INSERT INTO `config_menus` VALUES ('1', '0', 'Dashboard', 'dashboard/ajax_home/', 'dashboard', '1', '1', 'system', '999', '2020-03-23', '2020-03-23');
INSERT INTO `config_menus` VALUES ('2', '0', 'Internal', '#', 'account_circle', '1', '2', 'system', '999', '2020-03-23', '2020-03-23');
INSERT INTO `config_menus` VALUES ('3', '2', 'spaceY', 'internal/project_management/', 'apps', '1', '1', 'system', '999', '2020-03-23', '2020-06-11');
INSERT INTO `config_menus` VALUES ('4', '0', 'Config', '#', 'settings', '1', '3', 'system', '999', '2020-03-23', '2020-03-23');
INSERT INTO `config_menus` VALUES ('5', '4', 'Menu & Submenu', 'config/menus/', 'menu', '1', '1', 'system', '999', '2020-03-23', '2020-03-23');
INSERT INTO `config_menus` VALUES ('6', '4', 'Groups', 'config/groups/', 'group', '1', '2', 'system', '999', '2020-03-23', '2020-03-23');
INSERT INTO `config_menus` VALUES ('7', '4', 'Permissions', 'config/permissions/', 'security', '1', '3', 'system', '999', '2020-03-23', '2020-03-23');
INSERT INTO `config_menus` VALUES ('8', '4', 'Slider', 'config/slider/', 'slideshow', '1', '4', 'system', '999', '2020-03-23', '2020-03-23');
INSERT INTO `config_menus` VALUES ('9', '0', 'Fondasi', '#', 'assignment', '1', '4', 'system', '999', '2020-03-23', '2020-04-17');
INSERT INTO `config_menus` VALUES ('10', '9', 'Organisasi', '#', 'domain', '1', '1', 'system', '999', '2020-03-23', '2020-03-23');
INSERT INTO `config_menus` VALUES ('11', '25', 'Grade', 'master/grade/', 'assessment', '1', '1', 'system', '999', '2020-03-23', '2020-04-17');
INSERT INTO `config_menus` VALUES ('12', '25', 'Pangkat/Golongan', 'master/pangkat/', 'card_membership', '1', '2', 'system', '999', '2020-03-23', '2020-04-17');
INSERT INTO `config_menus` VALUES ('13', '10', 'Struktur Organisasi', 'master/struktur_organisasi/', 'domain', '0', '5', 'system', '999', '2020-03-23', '2020-06-17');
INSERT INTO `config_menus` VALUES ('14', '27', 'Pendidikan', '#', 'school', '1', '2', 'system', '999', '2020-03-23', '2020-04-23');
INSERT INTO `config_menus` VALUES ('15', '14', 'Akademik', 'master/akademik', 'school', '1', '1', 'system', '999', '2020-03-23', '2020-03-23');
INSERT INTO `config_menus` VALUES ('16', '14', 'Jurusan/Fakultas', 'master/jurusan/', 'local_library', '1', '2', 'system', '999', '2020-03-23', '2020-03-23');
INSERT INTO `config_menus` VALUES ('17', '27', 'Data Pegawai', 'master/pegawai/', 'people', '1', '3', 'system', '999', '2020-03-23', '2020-04-17');
INSERT INTO `config_menus` VALUES ('18', '26', 'Agama', 'master/agama/', 'layers', '1', '4', 'system', '999', '2020-03-23', '2020-04-17');
INSERT INTO `config_menus` VALUES ('19', '27', 'Tugas Belajar', 'master/tugas_belajar/', 'local_library', '1', '5', 'system', '999', '2020-03-23', '2020-04-17');
INSERT INTO `config_menus` VALUES ('20', '27', 'Tunjangan Profesi', 'master/tunjangan_profesi/', 'view_comfy', '1', '6', 'system', '999', '2020-03-23', '2020-04-17');
INSERT INTO `config_menus` VALUES ('21', '25', 'Jenis Eselon', 'master/jenis_eselon', 'domain', '1', '4', '999', '999', '2020-03-25', '2020-04-17');
INSERT INTO `config_menus` VALUES ('22', '25', 'Jenis Jabatan', 'master/jenis_jabatan', 'domain', '1', '5', '198312252014021002', '999', '2020-03-26', '2020-04-17');
INSERT INTO `config_menus` VALUES ('23', '10', 'Komponen', 'master/komponen', 'domain', '1', '2', '198312252014021002', '999', '2020-03-26', '2020-04-17');
INSERT INTO `config_menus` VALUES ('24', '10', 'Jabatan', 'master/jabatan', 'domain', '1', '3', '999', '999', '2020-04-04', '2020-04-17');
INSERT INTO `config_menus` VALUES ('25', '10', 'Fondasi Organisasi', '#', 'domain', '1', '1', '999', '', '2020-04-17', '0000-00-00');
INSERT INTO `config_menus` VALUES ('26', '27', 'Umum', '#', 'domain', '1', '1', '999', '', '2020-04-17', '2020-04-23');
INSERT INTO `config_menus` VALUES ('27', '9', 'Pegawai', '#', 'people', '1', '3', '999', '999', '2020-04-17', '2020-04-17');
INSERT INTO `config_menus` VALUES ('28', '35', 'Fondasi Manual IKU', '#', 'book', '1', '1', '999', '999', '2020-04-17', '2020-04-17');
INSERT INTO `config_menus` VALUES ('29', '28', 'Ketentuan', '#', 'bookmark', '1', '1', '999', '999', '2020-04-17', '2020-04-17');
INSERT INTO `config_menus` VALUES ('30', '28', 'Kualitas', 'strategi/kualitas', 'bookmark', '1', '3', '999', '999', '2020-04-17', '2020-04-21');
INSERT INTO `config_menus` VALUES ('31', '28', 'Cascading', 'strategi/cascading', 'bookmark', '1', '3', '999', '999', '2020-04-17', '2020-04-21');
INSERT INTO `config_menus` VALUES ('32', '28', 'Komponen Manual IKU', 'strategi/komponen_manual', 'bookmark', '1', '2', '999', '999', '2020-04-17', '2020-04-21');
INSERT INTO `config_menus` VALUES ('33', '35', 'Manual IKU', 'strategi/manual_iku', 'beenhere', '1', '4', '999', '999', '2020-04-17', '2020-04-22');
INSERT INTO `config_menus` VALUES ('34', '0', '', '', '', '0', '0', '999', '999', '2020-04-17', '2020-04-22');
INSERT INTO `config_menus` VALUES ('35', '0', 'Strategi', '#', 'beenhere', '1', '5', '999', '', '2020-04-17', '0000-00-00');
INSERT INTO `config_menus` VALUES ('36', '35', 'Sasaran Strategi', 'strategi/sasaran_strategi', 'beenhere', '1', '2', '999', '999', '2020-04-17', '2020-04-22');
INSERT INTO `config_menus` VALUES ('38', '29', 'Satuan Pengukuran', 'strategi/satuan_pengukuran', 'bookmark', '1', '1', '999', '999', '2020-04-18', '2020-04-21');
INSERT INTO `config_menus` VALUES ('39', '29', 'Jumlah Maksimal IKU', 'strategi/jumlah_maksimal_iku', 'bookmark', '1', '2', '999', '999', '2020-04-18', '2020-04-21');
INSERT INTO `config_menus` VALUES ('40', '29', 'Jenis Aspek Target', 'strategi/jenis_aspek_target', 'bookmark', '1', '3', '999', '999', '2020-04-18', '2020-05-10');
INSERT INTO `config_menus` VALUES ('43', '26', 'Tipe Jabatan Pegawai', 'master/tipe_jabatan_pegawai', 'domain', '1', '2', '999', '', '2020-04-21', '2020-04-23');
INSERT INTO `config_menus` VALUES ('44', '26', 'Status Pegawai', 'master/status_pegawai', 'domain', '1', '2', '999', '', '2020-04-21', '2020-04-23');
INSERT INTO `config_menus` VALUES ('45', '10', 'Peta Jabatan', 'master/peta_jabatan/', 'domain', '1', '4', '999', '999', '2020-05-28', '2020-05-28');
INSERT INTO `config_menus` VALUES ('46', '28', 'Perspektif', 'strategi/perspektif', 'bookmark', '1', '6', '999', '999', '2020-05-31', '2020-05-31');
INSERT INTO `config_menus` VALUES ('47', '0', 'Aktifitas', '#', 'domain', '1', '6', '999', '', '2020-06-19', '0000-00-00');
INSERT INTO `config_menus` VALUES ('48', '47', 'Object Key Result', 'aktifitas/okr', 'domain', '1', '1', '999', '999', '2020-06-19', '2020-06-26');
INSERT INTO `config_menus` VALUES ('49', '4', 'FAQ', 'config/faq', 'domain', '1', '5', '999', '', '2020-06-19', '0000-00-00');
INSERT INTO `config_menus` VALUES ('50', '35', 'Inisiatif Strategi', 'strategi/inisiatif_strategi_v2', 'beenhere', '1', '6', '999', '999', '2020-06-27', '2020-06-27');
INSERT INTO `config_menus` VALUES ('51', '48', 'Jenis Kegiatan', 'aktifitas/okr_jenis_kegiatan', 'domain', '1', '1', '999', '999', '2020-08-03', '2020-08-03');
INSERT INTO `config_menus` VALUES ('52', '48', 'Kegiatan', 'aktifitas/okr_kegiatan', 'domain', '1', '2', '999', '', '2020-08-03', '0000-00-00');
INSERT INTO `config_menus` VALUES ('53', '35', 'Sasaran Strategi v2', 'strategi/sasaran_strategi_v2', 'beenhere', '1', '3', '999', '999', '2020-08-31', '2020-08-31');
INSERT INTO `config_menus` VALUES ('54', '35', 'Manual IKU v2', 'strategi/manual_iku_v2', 'beenhere', '1', '5', '999', '999', '2020-08-31', '2020-08-31');
INSERT INTO `config_menus` VALUES ('55', '35', 'Indikator Kinerja Individu', 'strategi/manual_iki', 'beenhere', '1', '7', '999', '999', '2020-08-31', '2020-08-31');
INSERT INTO `config_menus` VALUES ('56', '4', 'Background Login', 'config/background_login', 'slideshow', '1', '5', '999', '999', '2020-09-01', '2020-09-01');
SET FOREIGN_KEY_CHECKS=1;
| 94.287234 | 167 | 0.608259 |
9ad123ecc043c6c6a3f8a82a5c89e73942ebeb4a | 276 | lua | Lua | deps/GLEW/premake4.lua | akumetsuv/flood | e0d6647df9b7fac72443a0f65c0003b0ead7ed3a | [
"BSD-2-Clause"
] | null | null | null | deps/GLEW/premake4.lua | akumetsuv/flood | e0d6647df9b7fac72443a0f65c0003b0ead7ed3a | [
"BSD-2-Clause"
] | null | null | null | deps/GLEW/premake4.lua | akumetsuv/flood | e0d6647df9b7fac72443a0f65c0003b0ead7ed3a | [
"BSD-2-Clause"
] | 1 | 2021-05-23T16:33:11.000Z | 2021-05-23T16:33:11.000Z | project "GLEW"
SetupNativeDependencyProject()
local version = "1.9.0"
local repo = "git://glew.git.sourceforge.net/gitroot/glew/glew"
local license = "MIT"
kind "StaticLib"
files { "src/*.c" }
includedirs { "include" }
defines { "GLEW_BUILD", "GLEW_STATIC" } | 23 | 64 | 0.67029 |
38ada802d86d7eb58793deeec9af94cf677e634f | 200 | h | C | examples/gbs_sample_color/project/build/src/include/data/script_custom_6.h | um3k/gbvm | dce728c5fd0d40c3f75b773660f475b4911d8121 | [
"MIT"
] | 33 | 2020-12-27T11:53:23.000Z | 2022-02-19T23:05:12.000Z | examples/gbs_sample_color/project/build/src/include/data/script_custom_6.h | um3k/gbvm | dce728c5fd0d40c3f75b773660f475b4911d8121 | [
"MIT"
] | 2 | 2020-12-10T16:53:53.000Z | 2022-01-31T21:42:01.000Z | examples/gbs_sample_color/project/build/src/include/data/script_custom_6.h | um3k/gbvm | dce728c5fd0d40c3f75b773660f475b4911d8121 | [
"MIT"
] | 6 | 2021-04-18T08:09:16.000Z | 2022-01-31T21:52:24.000Z | #ifndef SCRIPT_CUSTOM_6_H
#define SCRIPT_CUSTOM_6_H
// Script script_custom_6
#include "gbs_types.h"
extern const void __bank_script_custom_6;
extern const unsigned char script_custom_6[];
#endif
| 16.666667 | 45 | 0.82 |
b181c10c6fe64b78f8c8afe1ae954a65e192d953 | 369 | lua | Lua | day6.lua | rho2/30DaysOfCode | 56fe3c584d0b6ae537e3ab3cfcf2387c5455dbea | [
"MIT"
] | null | null | null | day6.lua | rho2/30DaysOfCode | 56fe3c584d0b6ae537e3ab3cfcf2387c5455dbea | [
"MIT"
] | null | null | null | day6.lua | rho2/30DaysOfCode | 56fe3c584d0b6ae537e3ab3cfcf2387c5455dbea | [
"MIT"
] | null | null | null | -- Enter your code here. Read input from STDIN. Print output to STDOUT
T = io.read("*number", "*l")
for i=0, T-1,1 do
word = io.read()
even = ''
odd = ''
for j=0, word:len(), 1 do
if(j%2 == 0) then
odd = odd .. word:sub(j,j)
else
even = even .. word:sub(j,j)
end
end
print(even .. ' ' .. odd)
end
| 23.0625 | 70 | 0.476965 |
675440555c12f62ae67248930d2b224b359f34a8 | 181 | kt | Kotlin | app/src/main/java/org/simple/clinic/patient/onlinelookup/api/SecondsDuration.kt | santhosh2108/simple-android | 053da3671e125b72b35eee80bd80784986ca9bd8 | [
"MIT"
] | 186 | 2018-08-06T11:52:10.000Z | 2022-03-24T06:41:43.000Z | app/src/main/java/org/simple/clinic/patient/onlinelookup/api/SecondsDuration.kt | santhosh2108/simple-android | 053da3671e125b72b35eee80bd80784986ca9bd8 | [
"MIT"
] | 1,162 | 2018-07-17T05:01:25.000Z | 2022-03-31T17:46:39.000Z | app/src/main/java/org/simple/clinic/patient/onlinelookup/api/SecondsDuration.kt | santhosh2108/simple-android | 053da3671e125b72b35eee80bd80784986ca9bd8 | [
"MIT"
] | 88 | 2018-09-17T13:17:34.000Z | 2022-03-24T05:40:05.000Z | package org.simple.clinic.patient.onlinelookup.api
import com.squareup.moshi.JsonQualifier
@Retention(AnnotationRetention.RUNTIME)
@JsonQualifier
annotation class SecondsDuration
| 22.625 | 50 | 0.867403 |
988aece95a2fd6c9cdedd2d239070d8aac75b079 | 2,163 | html | HTML | src/edisyn/edisyn/synth/kawaik4/KawaiK4.html | danielappelt/edisyn-beatstep | 0dbc017871ad81c947ec531359c68fcc9c74f5aa | [
"Apache-2.0"
] | 1 | 2021-12-18T22:06:00.000Z | 2021-12-18T22:06:00.000Z | src/edisyn/edisyn/synth/kawaik4/KawaiK4.html | danielappelt/edisyn-beatstep | 0dbc017871ad81c947ec531359c68fcc9c74f5aa | [
"Apache-2.0"
] | null | null | null | src/edisyn/edisyn/synth/kawaik4/KawaiK4.html | danielappelt/edisyn-beatstep | 0dbc017871ad81c947ec531359c68fcc9c74f5aa | [
"Apache-2.0"
] | null | null | null | <html><head></head>
<body>
<h1>Kawai K4</h1>
<h2>Single Patch Editor</h2>
<p>This editor will work with the <b>Kawai K4</b> and the <b>Kawai K4r</b>.
<p><b>Communicating with Edisyn</b> Set your K4 to receive Program Changes (RCV PGM) and Exclusive (RCV EXCL). See pages 79 and 80 of the manual. You'll also probably want your send channel and receive channel to be the same. I wouldn't set the receive channel to OMNI, as this might conflict with drums.
<p><b>Bank Sysex</b> This patch editor knows about bank sysex messages (which group together multiple patches) as well as single-patch sysex messages. If Edisyn loads or receives a bank sysex message, you will be given the option to edit a patch from it, to save the whole bank sysex, or to upload the whole bank sysex.
<p><b>Hints</b>
<ul>
<li>The following effect patches are not used by any standard single, multi, or drum patch: 3, 10, 11, 12, 14, 15, 21, 22, 23, 28
<p><li>In all standard effect patches, Submix H is always "off".
</ul>
<p><b>Gotchas</b>
<ul>
<li>
You can't set mute as a parameter change. So when you set mute, Edisyn will just tell the synth to turn the volume (VCA Envelope Level) to 0 for that source. Further, if you write a patch with mute set, Edisyn will write the patch with the mute unset, but zero the volume.
<p><p>This strategy works fine if your patch didn't have mute already set on the synth when you loaded it into Edisyn. But if mute is set on the synth, then Edisyn can't do anything about when you change the mute value: it'll still be muted on the synth until you send or write the patch. Long story short: when loading a patch, make sure it's entirely unmuted to avoid confusion.
<p><li>When you update a parameter, it's not reflected on the K4's LCD until you move to something else and back again. Also when you send a patch, the name isn't updated: but the sound has in fact been changed.
<p><li>When in Normal or Twin, resonance only goes 0...3.
</ul>
<p><table border=0 cellpadding=0 cellspacing=5>
<tr>
<td align=right>By
<td><b>Sean Luke</b>
<tr>
<td align=right>Date
<td>August 2017
</table>
| 49.159091 | 382 | 0.730929 |
753fbf2ba30af5328bc277d211751d7b800d5380 | 1,610 | cs | C# | Ultz.BeagleFramework.MySql/MySqlConnector.cs | Ultz/BeagleFramework | 4a662df2122d33984d3b3066b19c4480a286f6bf | [
"MIT"
] | 1 | 2020-01-06T17:38:06.000Z | 2020-01-06T17:38:06.000Z | Ultz.BeagleFramework.MySql/MySqlConnector.cs | Ultz/BeagleFramework | 4a662df2122d33984d3b3066b19c4480a286f6bf | [
"MIT"
] | 1 | 2019-10-05T17:10:27.000Z | 2019-10-05T17:10:27.000Z | Ultz.BeagleFramework.MySql/MySqlConnector.cs | Ultz/BeagleFramework | 4a662df2122d33984d3b3066b19c4480a286f6bf | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Data.Common;
using MySql.Data.MySqlClient;
using Ultz.BeagleFramework.Sql;
namespace Ultz.BeagleFramework.MySql
{
public class MySqlConnector : SqlConnector
{
private string _conn;
public override void Init(string connectionString)
{
//string connectionString =
// "Data Source=(local);Initial Catalog=Northwind;"
// + "Integrated Security=true";
_conn = connectionString;
}
public override void Deinit()
{
}
public override DbConnection CreateConnection()
{
return new MySqlConnection(_conn);
}
public override DbCommand CreateCommand(string query,DbConnection connection)
{
return new MySqlCommand(query,(MySqlConnection)connection);
}
public override DbParameter CreateParameter(string name)
{
return new MySqlParameter("@"+name,MySqlDbType.String,-1,name);
}
public override DbDataAdapter CreateAdapter(string cmd,DbConnection conn)
{
return new MySqlDataAdapter(cmd,(MySqlConnection)conn);
}
public override DbParameter CreateIntParameter(string name)
{
return new MySqlParameter("@"+name,MySqlDbType.Int32,-1,name);
}
public override string VarCharMax => "LONGTEXT";
public override string Int => "int";
public override string ProcessMessage(string s)
{
return s;
}
}
} | 27.288136 | 85 | 0.613043 |
504bb89063f42fd88d4130252cd6b02d309d45a1 | 4,771 | html | HTML | src/odr-ui/projects/odr-ui-shared/src/components/nomination-license-dialog/nomination-license-dialog.component.html | Sahaj26/opendatacloud | 6ad959db61b82849391575ae1678c1dcb1fc25c1 | [
"MIT"
] | 6 | 2020-07-21T16:01:03.000Z | 2021-09-20T17:12:32.000Z | src/odr-ui/projects/odr-ui-shared/src/components/nomination-license-dialog/nomination-license-dialog.component.html | microsoft/opendatacloud | 6ad959db61b82849391575ae1678c1dcb1fc25c1 | [
"MIT"
] | 2 | 2020-11-12T16:54:32.000Z | 2020-11-12T17:23:48.000Z | src/odr-ui/projects/odr-ui-shared/src/components/nomination-license-dialog/nomination-license-dialog.component.html | microsoft/opendatacloud | 6ad959db61b82849391575ae1678c1dcb1fc25c1 | [
"MIT"
] | 4 | 2021-11-10T08:36:05.000Z | 2022-03-24T13:57:03.000Z | <!-- Copyright (c) Microsoft Corporation.
Licensed under the MIT License. -->
<div class="container-fluid dialog-container">
<div class="row dialog-header">
<div class="col-sm-12">
<h3>Enter License</h3>
</div>
</div>
<div class="row dialog-content">
<div class="col-sm-12">
<app-validated-input [inputControl]="licenseName" [size]="12" labelText="License Name" [required]="true">
<app-errmsg errorCode="required">
License name is required.
</app-errmsg>
<app-errmsg errorCode="maxlength">
License name cannot be greater than {{controlErrors(licenseName, 'maxlength').requiredLength}} characters.
</app-errmsg>
</app-validated-input>
</div>
<div class="col-sm-12">
<div class="form-group">
<label class="control-label">
URL for Additional Info
<input type="text" class="form-control" [formControl]="licenseUrl">
</label>
<div class="help-block" *ngIf="controlErrors(licenseUrl, 'maxlength').requiredLength">
Url cannot be greater than {{controlErrors(licenseUrl, 'maxlength').requiredLength}} characters.
</div>
<div class="help-block" *ngIf="controlErrors(licenseUrl, 'url')">
{{ controlErrors(licenseUrl, 'url').message }}
</div>
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<label class="control-label">
License Content<span class="required" *ngIf="true">*</span>
</label>
<div class="control-container">
<div class="radio-list">
<div class="radio">
<label>
<input type="radio" name="licenseContent" [checked]="!isFileUpload" [disabled]="isReadOnly"
(click)="toggleFileUpload(false)">Paste License Content
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="licenseContent" [checked]="isFileUpload" [disabled]="isReadOnly"
(click)="toggleFileUpload(true)">Upload License Content as file (pdf, docx, txt only)
</label>
</div>
</div>
<div class="content-container">
<div class="help-block" *ngIf="isFileUploadRequiredErrorVisible()">
License File is required.
</div>
<label class="control-label" *ngIf="isFileUpload">
<input type="file" (change)="fileChange($event)"
class="hidden" [disabled]="isReadOnly"
accept=".pdf,.doc,.docx,.txt">
<span class="btn btn-default">Choose file...</span>
</label>
<span *ngIf="isFileUpload && fileName" >
<a *ngIf="otherLicenseFileUrl" [href]="otherLicenseFileUrl" download>{{fileName}}</a>
<span *ngIf="!otherLicenseFileUrl">{{fileName}}</span>
</span>
<div class="help-block" *ngIf="isContentHtmlRequiredErrorVisible()">
License Content is required.
</div>
<div class="help-block" *ngIf="isContentHtmlMaxLengthErrorVisible()">
License Content must be less than 2,000,000 characters.
</div>
<angular-editor *ngIf="!isFileUpload" [config]="editorConfig" [(ngModel)]="contentHtml"></angular-editor>
</div>
</div>
</div>
</div>
</div>
<div class="row dialog-actions">
<div class="col-sm-12">
<button class="btn btn-primary" (click)="onSave()" [disabled]="!isValidForSave()" *ngIf="!isReadOnly">
Save
</button>
<button class="btn btn-default" (click)="onCancel()" *ngIf="!isReadOnly">
Cancel
</button>
<button class="btn btn-default" (click)="onCancel()" *ngIf="isReadOnly">
Close
</button>
</div>
</div>
</div>
| 46.320388 | 129 | 0.463006 |
7082fc871530715dfcd0cb5a9941cd77fa461229 | 1,175 | cs | C# | MapEdit/EditableData/VolumetricEfficiencyMap.cs | cartman300/CarpECS | c8d5145a765683b7145574b6e18991eff84661b3 | [
"MIT"
] | 2 | 2020-05-26T02:35:45.000Z | 2021-10-20T16:27:20.000Z | MapEdit/EditableData/VolumetricEfficiencyMap.cs | sbarisic/CarpECS | 3bb2a47e3587cf302d30a101e1fd52e13d336d65 | [
"MIT"
] | null | null | null | MapEdit/EditableData/VolumetricEfficiencyMap.cs | sbarisic/CarpECS | 3bb2a47e3587cf302d30a101e1fd52e13d336d65 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using unvell.ReoGrid;
using unvell.ReoGrid.Graphics;
namespace MapEdit {
[DesignerCategory("Maps"), DisplayName("Volumetric Efficiency Map")]
public class VolumetricEfficiencyMap : EditableData {
EngineData EngineData;
public override bool DataEnabled => !EngineData.LambdaEnabled;
public VolumetricEfficiencyMap(EngineData EngineData) : base(EditMode.Grid, AxisParameters.RPM, AxisParameters.MAP) {
this.EngineData = EngineData;
//XName = "Engine speed [RPM]";
//YName = "Engine load [%]";
ValueName = "Volumetric Efficiency [%]";
DefaultValue = 10.0;
TopLeft = 90;
BottomLeft = 20;
TopRight = 95;
BottomRight = 50;
}
public override void ColorCell(int X, int Y, object Value, ref Cell C) {
C.Style.BackColor = SolidColor.Transparent;
if (Value is double Num)
C.Style.BackColor = Utils.Lerp(new SolidColor(255, 0, 0), SolidColor.Green, new SolidColor(104, 162, 255), EngineData.MinVE, EngineData.MaxVE, (float)Num);
}
}
}
| 27.97619 | 159 | 0.733617 |
2f0f94ade94dadc3f5d98740bae7af4afcbf28fb | 549 | java | Java | skid/gay/sex/spermix/inside/shalopay/features/module/modules/render2/FullBright.java | katchz/zamorozka-client-deobfuscated | b7c5c85cd4f6e2e87b275115b42bd9668273a400 | [
"WTFPL"
] | 7 | 2020-11-21T21:03:14.000Z | 2021-03-08T13:48:53.000Z | skid/gay/sex/spermix/inside/shalopay/features/module/modules/render2/FullBright.java | katchxd/zamorozka-client-deobfuscated | b7c5c85cd4f6e2e87b275115b42bd9668273a400 | [
"WTFPL"
] | null | null | null | skid/gay/sex/spermix/inside/shalopay/features/module/modules/render2/FullBright.java | katchxd/zamorozka-client-deobfuscated | b7c5c85cd4f6e2e87b275115b42bd9668273a400 | [
"WTFPL"
] | 4 | 2020-11-20T17:35:10.000Z | 2020-11-28T17:16:34.000Z | package skid.gay.sex.spermix.inside.shalopay.features.module.modules.render2;
import skid.gay.sex.spermix.inside.shalopay.features.module.Module;
import skid.gay.sex.spermix.inside.shalopay.features.module.ModuleCategory;
public class FullBright extends Module {
public FullBright() {
super("FullBright", 0, ModuleCategory.RENDER2);
}
public void onUpdate() {
if (this.getState()) {
mc.gameSettings.gammaSetting = 10.0F;
} else {
mc.gameSettings.gammaSetting = 1.0F;
}
}
}
| 27.45 | 77 | 0.673953 |
48eeea529eccf6c88c605f87511b54e80660979e | 276 | h | C | Example/pppTest123/PPPAppDelegate.h | kevingpqi123/pppTest123 | 2b525411b0e32c1cc3bec96a6439bd8b2183fb7d | [
"MIT"
] | null | null | null | Example/pppTest123/PPPAppDelegate.h | kevingpqi123/pppTest123 | 2b525411b0e32c1cc3bec96a6439bd8b2183fb7d | [
"MIT"
] | null | null | null | Example/pppTest123/PPPAppDelegate.h | kevingpqi123/pppTest123 | 2b525411b0e32c1cc3bec96a6439bd8b2183fb7d | [
"MIT"
] | null | null | null | //
// PPPAppDelegate.h
// pppTest123
//
// Created by kevingpqi on 01/20/2021.
// Copyright (c) 2021 kevingpqi. All rights reserved.
//
@import UIKit;
@interface PPPAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| 17.25 | 63 | 0.721014 |
96be07ac84650e27703ca3b6bacdf93610861002 | 1,287 | cpp | C++ | Cryptology/Ex05/myCipher.cpp | vsapiens/SecurityInformation | 0feb4f279b8d44e7b791eb5db954d9d02d358445 | [
"Apache-2.0"
] | 1 | 2019-09-29T17:26:31.000Z | 2019-09-29T17:26:31.000Z | Cryptology/Ex05/myCipher.cpp | vsapiens/Security-Information | 0feb4f279b8d44e7b791eb5db954d9d02d358445 | [
"Apache-2.0"
] | null | null | null | Cryptology/Ex05/myCipher.cpp | vsapiens/Security-Information | 0feb4f279b8d44e7b791eb5db954d9d02d358445 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <fstream>
using namespace std;
string encrypt(string sText, int shift)
{
string result;
for (int i = 0; i < sText.length(); i++)
{
if (sText[i] != ' ')
result += char(int(sText[i] + shift + (i % 3) + 65) % 26 + 65);
else
result += " ";
}
return result;
}
string decrypt(string sText, int shift)
{
string result;
for (int i = 0; i < sText.length(); i++)
{
if (sText[i] != ' ')
result += char(int(sText[i] - shift - (i % 3) + 65) % 26 + 65);
else
result += " ";
}
return result;
}
int main()
{
string sTextEncrypted;
ifstream file;
ofstream output;
vector<string> vDecrypted;
vector<string> vEncrypted;
string input;
file.open("words.txt");
output.open("words2.txt");
while (!file.eof())
{
file >> input;
vDecrypted.push_back(input);
}
string key = "ZYKZA";
for (string x : vDecrypted)
{
vEncrypted.push_back(encrypt(x, key.size()));
}
for (string x : vEncrypted)
{
cout << decrypt(x, key.size()) << endl;
output << x << endl;
}
file.close();
output.close();
return 0;
} | 18.926471 | 75 | 0.515152 |
6817395677502d358fd7ed7ef43751226593b032 | 365 | html | HTML | src/index.html | soojs/soo-admin | 761625ac89906152873ee0ab6ace9fba6ced411c | [
"MIT"
] | null | null | null | src/index.html | soojs/soo-admin | 761625ac89906152873ee0ab6ace9fba6ced411c | [
"MIT"
] | null | null | null | src/index.html | soojs/soo-admin | 761625ac89906152873ee0ab6ace9fba6ced411c | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>管理平台</title>
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" >
<meta name="renderer" content="webkit"/>
</head>
<body>
<div id="app"></div>
</body>
</html> | 24.333333 | 67 | 0.624658 |
7423be75ca30996e12dc17fba9a3c5e174fdae87 | 842 | sql | SQL | kornell-api/src/main/resources/db/migration/2016/09/V2016.09.27.23.21__course_json_refactor.sql | Craftware/Kornell | 592fd243dac4602141233cddb43240f05155c787 | [
"Apache-2.0"
] | 19 | 2015-02-27T05:58:21.000Z | 2021-05-25T02:30:43.000Z | kornell-api/src/main/resources/db/migration/2016/09/V2016.09.27.23.21__course_json_refactor.sql | Craftware/Kornell | 592fd243dac4602141233cddb43240f05155c787 | [
"Apache-2.0"
] | 14 | 2015-04-28T18:48:11.000Z | 2015-04-28T18:48:59.000Z | kornell-api/src/main/resources/db/migration/2016/09/V2016.09.27.23.21__course_json_refactor.sql | Craftware/Kornell | 592fd243dac4602141233cddb43240f05155c787 | [
"Apache-2.0"
] | 8 | 2015-06-02T08:40:42.000Z | 2021-05-25T02:30:45.000Z | CREATE TABLE IF NOT EXISTS CourseDetailsHint (
uuid char(36) NOT NULL,
text text NOT NULL,
entityType char(16) NOT NULL,
entityUUID char(36) NOT NULL,
`index` tinyint NOT NULL,
fontAwesomeClassName char(255),
PRIMARY KEY (`uuid`)
);
CREATE TABLE IF NOT EXISTS CourseDetailsLibrary (
uuid char(36) NOT NULL,
title varchar(255) NOT NULL,
description text,
entityType varchar(16) NOT NULL,
entityUUID varchar(36) NOT NULL,
`index` tinyint NOT NULL,
size integer NOT NULL,
path varchar(512) NOT NULL,
uploadDate datetime not null,
fontAwesomeClassName varchar(255),
PRIMARY KEY (`uuid`)
);
CREATE TABLE IF NOT EXISTS CourseDetailsSection (
uuid char(36) NOT NULL,
title varchar(255) NOT NULL,
text text,
entityType varchar(16) NOT NULL,
entityUUID varchar(36) NOT NULL,
`index` tinyint NOT NULL,
PRIMARY KEY (`uuid`)
); | 25.515152 | 49 | 0.743468 |
79f7c1d416aed3373802b2764e0b4b37b6146afa | 654 | kt | Kotlin | android_app/app/src/main/java/com/vald3nir/smart_energy/domain/use_cases/consumption/ConsumptionUseCaseImpl.kt | vald3nir/Smart-Energy-App | c549d678e008df32d439f934e1edea6dff49c0c8 | [
"MIT"
] | null | null | null | android_app/app/src/main/java/com/vald3nir/smart_energy/domain/use_cases/consumption/ConsumptionUseCaseImpl.kt | vald3nir/Smart-Energy-App | c549d678e008df32d439f934e1edea6dff49c0c8 | [
"MIT"
] | null | null | null | android_app/app/src/main/java/com/vald3nir/smart_energy/domain/use_cases/consumption/ConsumptionUseCaseImpl.kt | vald3nir/Smart-Energy-App | c549d678e008df32d439f934e1edea6dff49c0c8 | [
"MIT"
] | null | null | null | package com.vald3nir.smart_energy.domain.use_cases.consumption
import com.vald3nir.smart_energy.data.dto.ConsumptionRealTimeDTO
import com.vald3nir.smart_energy.data.repository.remote.consumption.ConsumptionRepository
class ConsumptionUseCaseImpl(private val repository: ConsumptionRepository) : ConsumptionUseCase {
override suspend fun subscriberConsumptionRealTime(
onResponse: (consumptionRealTimeDTO: ConsumptionRealTimeDTO) -> Unit
) {
repository.subscriberConsumptionRealTime(
topic = "/smart_energy/publish/client/a32ab0af-970c-11ec-9779-a463a116a9e2",
onResponse = onResponse
)
}
} | 38.470588 | 98 | 0.775229 |
75503d825f2fb0fc69d3edf20c6f45f0a6cb469b | 3,808 | cshtml | C# | CmsShop/Areas/Admin/Views/Pages/Index.cshtml | zbikowskiL/CmsShop | cbdce4dbc7afe2985babacc3f0fa1fa339abcfe2 | [
"MIT"
] | null | null | null | CmsShop/Areas/Admin/Views/Pages/Index.cshtml | zbikowskiL/CmsShop | cbdce4dbc7afe2985babacc3f0fa1fa339abcfe2 | [
"MIT"
] | null | null | null | CmsShop/Areas/Admin/Views/Pages/Index.cshtml | zbikowskiL/CmsShop | cbdce4dbc7afe2985babacc3f0fa1fa339abcfe2 | [
"MIT"
] | null | null | null | @model IEnumerable<CmsShop.Models.ViewModels.Pages.PageVM>
@{
/**/
ViewBag.Title = "Strony";
}
<h2>Strony</h2>
<div class="alert alert-success" style="display: none;" id="pdfdownload">
<p>Pobrano plik pdf.</p>
</div>
<div class="alert alert-success" style="display: none;" id="exceldownload">
<p>Pobrano plik Strony.xls</p>
</div>
<p>
@Html.ActionLink("Dodaj Nową Stronę", "AddPage")
</p>
@if (!Model.Any())
{
<h1>Nie ma żadnej strony!</h1>
}
else
{
<table class="table sorting" id="pages">
<tr class="home">
<th>
Tytuł
</th>
<th>
Adres
</th>
<th>
Pasek Boczny
</th>
<th></th>
</tr>
@foreach (var item in Model)
{
<tr id="id_@item.Id" class="@item.Slug">
<td>
@Html.DisplayFor(modelItem => item.Title)
</td>
<td>
@Html.DisplayFor(modelItem => item.Slug)
</td>
<td>
@Html.DisplayFor(modelItem => item.HasSidebar)
</td>
<td>
@Html.ActionLink("Edytuj", "EditPage", new { id = item.Id }) |
@Html.ActionLink("Szczegóły", "Details", new { id = item.Id }) |
@if (item.Slug != "home")
{
@Html.ActionLink("Usuń", "Delete", new { id = item.Id }, new { @class = "delete" })
}
</td>
</tr>
}
</table>
<div class="btn-group" style="display: inline-block;">
<div style="float: left; margin-right: 3px;">
<input type="button" id="btndownloadpdf" class="btn btn-info" value="Pobierz PDF" onclick="location.href='@Url.Action("CreatedPDF", "Pages")'" />
</div>
<div style="float: left;">
<input type="button" id="btndownloadexcel" class="btn btn-success" value="Pobierz Excel" onclick="location.href='@Url.Action("ExportToExcel", "Pages")'" />
</div>
</div>
}
@section scripts{
<script src="http://code.jquery.com/ui/1.12.0/jquery-ui.min.js"></script>
<script>
/*
* Potwierdzanie usunięcia strony
* */
$(function () {
$("a.delete").click(function () {
if (!confirm("Potwierdzasz usuniecię strony")) return false;
});
});
/*
* Sortowanie stron za pomocą Jquery UI
*
*/
$(function () {
$("table#pages tbody").sortable({
items: "tr:not(.home)",
placeholder: "ui-state-highlight",
update: function () {
var ids = $("table#pages tbody").sortable("serialize");
var url = "/Admin/Pages/ReorderPages";
$.post(url, ids, function (data) {
})
}
})
});
/*
* Powiadomienie o pobraniu pliku PDF
*
*/
$(function () {
$("#btndownloadpdf").click(function () {
$("div #pdfdownload").show("fast");
setTimeout(function () {
$("div #pdfdownload").hide("slow");
}, 2000);
});
});
/*
* Powiadomienie o pobraniu pliku excel
*
*/
$(function () {
$("#btndownloadexcel").click(function () {
$("div #exceldownload").show("fast");
setTimeout(function () {
$("div #exceldownload").hide("slow");
}, 2000);
});
});
</script>
}
| 25.218543 | 167 | 0.4375 |
9c51fd79f65dbd9907941f7afbf7078e543be38b | 12,727 | js | JavaScript | app/Store.js | T3kstiil3/Zenika-Resume | 6862b71991999ad4e9f3767cfbe2882c7f87e957 | [
"MIT"
] | null | null | null | app/Store.js | T3kstiil3/Zenika-Resume | 6862b71991999ad4e9f3767cfbe2882c7f87e957 | [
"MIT"
] | null | null | null | app/Store.js | T3kstiil3/Zenika-Resume | 6862b71991999ad4e9f3767cfbe2882c7f87e957 | [
"MIT"
] | null | null | null | /* eslint consistent-return: 1 */
import uuid from 'uuid';
import sjcl from 'sjcl';
import request from 'superagent';
import Document from './Document';
import { Config } from './Config';
import Immutable from 'immutable';
import DecryptUtils from './DecryptUtils';
const { Promise } = global;
export const Events = {
NO_DOCUMENT_ID: 'store:no-document-id',
DOCUMENT_NOT_FOUND: 'store:document-not-found',
APP_IS_OFFLINE: 'store:app-is-offline',
APP_IS_ONLINE: 'store:app-is-online',
CHANGE: 'store:change',
SYNCHRONIZE: 'store:synchronize',
DECRYPTION_FAILED: 'store:decryption_failed',
CONFLICT: 'store:conflict',
UPDATE_WITHOUT_CONFLICT: 'store:update-without-conflict',
AUTHENTICATION_REQUIRED: 'store:authentication-required',
};
export default class Store {
constructor(name, events, endpoint, localforage) {
this.state = {
// we automatically create a default document, but it might not be used
document: new Document(),
// we automatically generate a secret, but it might not be used
secret: this.buildSecret(),
};
this.events = events;
this.endpoint = endpoint;
this.localforage = localforage;
this.localforage.config({
name: Config.APP_NAME,
storeName: name,
});
}
buildSecret() {
//return sjcl.codec.base64.fromBits(sjcl.random.randomWords(8, 10), 0);
return '';
}
/**
* The aim of this method is to load a document by:
*
* 0. No ID => Events.NO_DOCUMENT_ID
* 1. Looking into the local database first
* 1.1. If it is not found => go to 2.
* 1.2. If found, we attempt to decrypt it
* 1.2.1 Decryption OK => document loaded + Events.CHANGE
* 1.2.2 Decryption KO => Events.DECRYPTION_FAILED
* 2. Fetch the document on the server
* 2.1 Found => We attempt to decrypt it
* 2.1.1 Decryption OK => document loaded + Events.CHANGE
* 2.1.2 Decryption KO => Events.DECRYPTION_FAILED
* 2.2 Not found => Events.DOCUMENT_NOT_FOUND
*
*/
load(id, secret) {
if (!id) {
this.events.emit(Events.NO_DOCUMENT_ID, this.state);
return Promise.resolve(this.state);
}
return this
.localforage
.getItem(id)
.then((document) => {
if (null === document) {
return Promise.reject(new Error('document not found'));
}
return Promise.resolve(Immutable.fromJS(document));
})
.catch(() => {
return request
.get(`${this.endpoint}/documents/${id}`)
.set('Accept', 'application/json')
.set('Content-Type', 'application/json')
.then(this._handleRequestSuccess.bind(this))
.catch(this._handleRequestError.bind(this))
.then((res) => {
return Promise.resolve(new Document({
uuid: res.body.uuid,
content: res.body.content,
metadata: res.body.metadata,
path: res.body.path,
last_modified: res.body.last_modified
}));
});
})
.then((document) => {
return this
.decrypt(document.get('content'), secret)
.then((decryptedContent) => {
let metadata = document.get('metadata');
try {
metadata = document.get('metadata').toJS();
} catch (err) {
}
this._setState({
document: new Document({
uuid: document.get('uuid'),
content: decryptedContent,
metadata: metadata,
path: document.get('path'),
last_modified: document.get('last_modified'),
last_modified_locally: document.get('last_modified_locally')
}),
secret: secret
});
});
})
.then(() => {
return this._localPersist();
});
}
/**
* This method is called when the document has been updated by the user
*/
update(document) {
// we don't want to store default content
if (document.isNew()) {
return Promise.resolve(this.state);
}
this._setState({
document: new Document({
uuid: document.get('uuid'),
content: document.get('content'),
metadata: document.get('metadata'),
path: document.get('path'),
last_modified: document.get('last_modified'),
last_modified_locally: Date.now()
}),
secret: this.state.secret
});
return this._localPersist();
}
/**
* Synchronize current document between local and server databases
*/
sync() {
console.log('start sync');
if (this.state.document.isNew()) {
return Promise.resolve(this.state);
}
if (this.state.document.hasNeverBeenSync()) {
console.log('sync never been');
return this._serverPersist();
}
console.log('sync ');
let uri = `${this.endpoint}/documents/${this.state.document.get('uuid')}`;
if (uri.indexOf('undefined') != -1) {
return;
}
return request
.get(uri)
.set('Accept', 'application/json')
.set('Content-Type', 'application/json')
.then(this._handleRequestSuccess.bind(this))
.catch(this._handleRequestError.bind(this))
.then((res) => {
const localDoc = this.state.document;
const serverDoc = new Document({
uuid: res.body.uuid,
content: res.body.content,
metadata: res.body.metadata,
path: res.body.path,
last_modified: res.body.last_modified,
});
console.log(serverDoc.get('last_modified'), localDoc.get('last_modified'), localDoc.get('last_modified_locally'));
if (serverDoc.get('last_modified') === localDoc.get('last_modified')) {
// here, document on the server has not been updated, so we can
// probably push safely
if (serverDoc.get('last_modified') < localDoc.get('last_modified_locally')) {
return this._serverPersist();
}
return Promise.resolve(this.state);
}
// In theory, it should never happened, but... what happens if:
// localDoc.get('last_modified') > serverDoc.get('last_modified') ?
if (serverDoc.get('last_modified') > localDoc.get('last_modified')) {
if (localDoc.hasNoLocalChanges()) {
const secret = this.state.secret;
return this
.decrypt(serverDoc.content, secret)
.then((decryptedContent) => {
const updatedDocument = new Document({
uuid: serverDoc.get('uuid'),
content: decryptedContent,
path: serverDoc.get('path'),
metadata: serverDoc.get('metadata'),
last_modified: serverDoc.get('last_modified'),
});
this._setState(
{
document: updatedDocument,
secret: secret
},
Events.UPDATE_WITHOUT_CONFLICT,
{
document: updatedDocument
}
);
})
.then(() => {
return this._localPersist();
});
}
// someone modified my document!
// ... but I also modified it so... let's fork \o/
// generate a new secret for fork'ed document
const forkSecret = this.buildSecret();
// what we want is to create a fork
return this
.encrypt(localDoc.content, forkSecret)
.then((encryptedContent) => {
const fork = new Document({
uuid: uuid.v4(),
content: localDoc.content,
metadata: localDoc.metadata,
path: localDoc.path
});
// persist fork'ed document
return this.localforage.setItem(
fork.get('uuid'),
new Document({
uuid: fork.get('uuid'),
content: encryptedContent,
metadata: fork.metadata,
path: fork.path
}).toJS()
)
.then(() => {
return Promise.resolve(fork);
});
})
.then((fork) => {
// now, we can update the former doc with server content
const former = new Document({
uuid: serverDoc.get('uuid'),
content: serverDoc.get('content'),
metadata: serverDoc.get('metadata'),
path: serverDoc.get('path'),
last_modified: serverDoc.get('last_modified')
});
return this
.localforage
.setItem(
former.get('uuid'),
former.toJS()
)
.then(() => {
const conflictState = {
fork: {
document: fork,
secret: forkSecret
},
document: former,
secret: this.state.secret
};
// state is now sync'ed with fork
this._setState(
conflictState.fork,
Events.CONFLICT,
conflictState
);
return Promise.resolve(conflictState);
});
});
}
});
}
// Pure / side-effect free method
decrypt(content, secret) {
return DecryptUtils.decrypt(content, secret, this.events, this.state);
}
// Pure / side-effect free method
encrypt(content, secret) {
secret = '';
return Promise.resolve(sjcl.encrypt(secret, content, { ks: 256 }));
}
// Impure / side-effect free method
_localPersist() {
const doc = this.state.document;
const secret = this.state.secret;
return this
.encrypt(doc.get('content'), secret)
.then((encryptedContent) => {
return this.localforage.setItem(
doc.get('uuid'),
new Document({
uuid: doc.get('uuid'),
content: encryptedContent,
metadata: doc.get('metadata'),
path: doc.get('path'),
last_modified: doc.get('last_modified'),
last_modified_locally: doc.get('last_modified_locally')
}).toJS()
);
})
.then(() => {
return Promise.resolve(this.state);
});
}
// Impure / side-effect free method
_serverPersist() {
const doc = this.state.document;
const secret = this.state.secret;
return this
.encrypt(doc.get('content'), secret)
.then((encryptedContent) => {
return request
.put(`${this.endpoint}/documents/${doc.get('uuid')}`)
.set('Accept', 'application/json')
.set('Content-Type', 'application/json')
.send({
content: encryptedContent,
metadata: doc.get('metadata'),
path: doc.get('path')
})
.then(this._handleRequestSuccess.bind(this))
.catch(this._handleRequestError.bind(this))
.then((res) => {
this._setState(
{
document: new Document({
uuid: doc.get('uuid'),
content: doc.get('content'),
metadata: doc.get('metadata'),
path: doc.get('path'),
last_modified: res.body.last_modified,
last_modified_locally: null
}),
secret: secret
},
Events.SYNCHRONIZE
);
return this._localPersist();
});
}
);
}
_handleRequestSuccess(res) {
this.events.emit(Events.APP_IS_ONLINE);
return Promise.resolve(res);
}
_handleRequestError(err) {
if (err.response && 401 === err.response.statusCode) {
this.events.emit(Events.AUTHENTICATION_REQUIRED, this.state);
return Promise.reject(new Error('document not found'));
}
if (err.response && 404 === err.response.statusCode) {
this.events.emit(Events.DOCUMENT_NOT_FOUND, this.state);
return Promise.reject(new Error('document not found'));
}
this.events.emit(Events.APP_IS_OFFLINE);
return Promise.reject(new Error('request failed (network)'));
}
_setState(newState, eventName, eventState) {
this.state = newState;
this.events.emit(eventName || Events.CHANGE, eventState || this.state);
}
}
| 30.815981 | 122 | 0.53524 |
0ebd542945258e3dfe9c99dc81eff98849999717 | 592 | ts | TypeScript | client/src/errors.ts | piotr-walen/event-solution | 53d416a1c1cd8313aec83f611347a8665b087687 | [
"MIT"
] | null | null | null | client/src/errors.ts | piotr-walen/event-solution | 53d416a1c1cd8313aec83f611347a8665b087687 | [
"MIT"
] | 3 | 2020-09-06T12:50:57.000Z | 2022-01-22T08:13:14.000Z | client/src/errors.ts | piotr-walen/event-solution | 53d416a1c1cd8313aec83f611347a8665b087687 | [
"MIT"
] | null | null | null | export enum FetchErrorMsg {
CONNECTION_ERROR = "CONNECTION_ERROR",
ALREADY_EXISTS = "ALREADY_EXISTS",
INTERNAL_ERROR = "INTERNAL_ERROR",
INVALID_ARGUMENT = "INVALID_ARGUMENT",
}
export const mapErrorToMessage = (err: any): FetchErrorMsg => {
let message = FetchErrorMsg.CONNECTION_ERROR;
if (err.status && err.status === 409) {
message = FetchErrorMsg.ALREADY_EXISTS;
}
if (err.status && err.status === 400) {
message = FetchErrorMsg.INVALID_ARGUMENT;
}
if (err.status && err.status === 500) {
message = FetchErrorMsg.INTERNAL_ERROR;
}
return message;
};
| 28.190476 | 63 | 0.701014 |
21d6344bbe980465b14c0ece9f3d3bcce1cee376 | 96,303 | html | HTML | assets/element-iconbox-2.html | AlphaCrisp/POS-TUMBAS | 2a204764789d25373cef396d080fee4b62533c20 | [
"MIT"
] | null | null | null | assets/element-iconbox-2.html | AlphaCrisp/POS-TUMBAS | 2a204764789d25373cef396d080fee4b62533c20 | [
"MIT"
] | null | null | null | assets/element-iconbox-2.html | AlphaCrisp/POS-TUMBAS | 2a204764789d25373cef396d080fee4b62533c20 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#3ed2a7">
<link rel="shortcut icon" href="./favicon.png" />
<title>Ave HTML Template</title>
<link rel="stylesheet" href="https://use.typekit.net/qxb8htk.css">
<link rel="stylesheet" href="assets/vendors/liquid-icon/liquid-icon.min.css" />
<link rel="stylesheet" href="assets/vendors/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" href="assets/css/theme-vendors.min.css" />
<link rel="stylesheet" href="assets/css/theme.min.css" />
<link rel="stylesheet" href="assets/css/themes/original.css" />
<!-- Head Libs -->
<script async src="assets/vendors/modernizr.min.js"></script>
</head>
<body data-mobile-nav-trigger-alignment="right" data-mobile-nav-align="left" data-mobile-nav-style="modern" data-mobile-nav-shceme="gray" data-mobile-header-scheme="gray" data-mobile-nav-breakpoint="1199">
<div id="wrap">
<div class="titlebar titlebar-sm scheme-light text-center" data-parallax="true" data-parallax-options='{ "parallaxBG": true }' style="background-image: url(./assets/demo/bg/bg-28.jpg);">
<header class="main-header main-header-overlay" data-react-to-megamenu="true" data-sticky-header="true" data-sticky-options='{ "stickyTrigger": "first-section" }'>
<div class="mainbar-wrap">
<div class="megamenu-hover-bg"></div><!-- /.megamenu-hover-bg -->
<div class="container-fluid mainbar-container">
<div class="mainbar">
<div class="row mainbar-row align-items-lg-stretch px-4">
<div class="col">
<div class="navbar-header">
<a class="navbar-brand" href="index.html" rel="home">
<span class="navbar-brand-inner">
<img class="logo-dark" src="./assets/img/logo/logo-1.svg" alt="Ave HTML Template">
<img class="logo-light" src="./assets/img/logo/logo-light.svg" alt="Ave HTML Template">
<img class="logo-sticky" src="./assets/img/logo/logo-1.svg" alt="Ave HTML Template">
<img class="mobile-logo-default" src="./assets/img/logo/logo-1.svg" alt="Ave HTML Template">
<img class="logo-default" src="./assets/img/logo/logo-light.svg" alt="Ave HTML Template">
</span>
</a>
<button type="button" class="navbar-toggle collapsed nav-trigger style-mobile" data-toggle="collapse" data-target="#main-header-collapse" aria-expanded="false" data-changeclassnames='{ "html": "mobile-nav-activated overflow-hidden" }'>
<span class="sr-only">Toggle navigation</span>
<span class="bars">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</span>
</button>
</div><!-- /.navbar-header -->
</div><!-- /.col -->
<div class="col">
<div class="collapse navbar-collapse" id="main-header-collapse">
<ul id="primary-nav" class="main-nav nav align-items-lg-stretch justify-content-lg-center" data-submenu-options='{ "toggleType":"fade", "handler":"mouse-in-out" }'>
<li>
<a href="index.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Home
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li class="menu-item-has-children megamenu megamenu-fullwidth">
<a href="#">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Templates
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
<ul class="nav-item-children">
<li>
<div class="container megamenu-container">
<div class="vc_row row megamenu-inner-row bg-white">
<div class="container ld-container">
<div class="row ld-row">
<div class="megamenu-column col-md-4">
<h3 class="megamenu-heading">Pack 1</h3>
<ul class="lqd-custom-menu reset-ul">
<li><a href="index.html" target="_blank">Original</a></li>
<li><a href="index-creative.html" target="_blank">Creative</a></li>
<li><a href="index-wave.html" target="_blank">Wave</a></li>
<li><a href="index-voguish.html" target="_blank">Voguish</a></li>
<li><a href="index-digital-creative.html" target="_blank">Digital Creative</a></li>
<li><a href="index-business.html" target="_blank">Business</a></li>
<li><a href="index-multiconcept.html" target="_blank">Multi Concept</a></li>
<li><a href="index-restaurant.html" target="_blank">Restaurant</a></li>
<li><a href="index-seo.html" target="_blank">SEO</a></li>
</ul>
</div><!-- /.megamenu-column -->
<div class="megamenu-column col-md-4">
<h3 class="megamenu-heading">Pack 2</h3>
<ul class="lqd-custom-menu reset-ul">
<li><a href="index-mobile.html" target="_blank">Mobile</a></li>
<li><a href="index-services.html" target="_blank">Services</a></li>
<li><a href="index-digital-agency.html" target="_blank">Digital Agency</a></li>
<li><a href="index-opus.html" target="_blank">Opus One</a></li>
<li><a href="index-opus-2.html" target="_blank">Opus Two</a></li>
<li><a href="index-opus-3.html" target="_blank">Opus Three</a></li>
<li><a href="index-freelancer.html" target="_blank">Freelancer</a></li>
<li><a href="index-crypto.html" target="_blank">Cryptocurrency</a></li>
<li><a href="index-travel.html" target="_blank">Travel</a></li>
</ul>
</div><!-- /.megamenu-column -->
<div class="megamenu-column col-md-4">
<h3 class="megamenu-heading">Pack 3</h3>
<ul class="lqd-custom-menu reset-ul">
<li><a href="index-gym.html" target="_blank">Gym</a></li>
<li><a href="index-rtl.html" target="_blank">RTL</a></li>
<li><a href="index-virtus-1.html" target="_blank">Virtus One</a></li>
<li><a href="index-virtus-2.html" target="_blank">Virtus Two</a></li>
<li><a href="index-virtus-3.html" target="_blank">Virtus Three</a></li>
<li><a href="index-virtus-4.html" target="_blank">Virtus Four</a></li>
<li><a href="index-virtus-5.html" target="_blank">Virtus Five</a></li>
</ul>
</div><!-- /.megamenu-column -->
</div><!-- /.row ld-row -->
</div><!-- /.container ld-container -->
</div><!-- /.vc_row -->
</div><!-- /.megamenu-container -->
</li>
</ul>
</li>
<li class="menu-item-has-children megamenu megamenu-fullwidth">
<a href="#">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Pages
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
<ul class="nav-item-children">
<li>
<div class="container megamenu-container">
<div class="vc_row row megamenu-inner-row bg-white">
<div class="container ld-container">
<div class="row ld-row">
<div class="megamenu-column col-md-3">
<h3 class="megamenu-heading">About</h3>
<ul class="lqd-custom-menu reset-ul">
<li><a href="page-about-classic.html">About – Classic 1</a></li>
<li><a href="page-about-build.html">About – Classic 2</a></li>
<li><a href="page-about-company-classic-1.html">About – Classic 3</a></li>
<li><a href="page-about-avantgarde.html">About – Avantgarde</a></li>
<li><a href="page-about-personal.html">About – Personal</a></li>
<li><a href="page-about-concept.html">About – Concept</a></li>
<li><a href="page-about-company.html">About – Company</a></li>
</ul>
</div><!-- /.megamenu-column -->
<div class="megamenu-column col-md-3">
<h3 class="megamenu-heading">Services</h3>
<ul class="lqd-custom-menu reset-ul">
<li><a href="page-services-build.html">Services – Classic 1</a></li>
<li><a href="page-services-company-classic.html">Services – Classic 2</a></li>
<li><a href="page-services-agency.html">Services – Ageency</a></li>
<li><a href="page-services-personal.html">Services – Personal</a></li>
<li><a href="page-services-simple.html">Services – Simple</a></li>
</ul>
</div><!-- /.megamenu-column -->
<div class="megamenu-column col-md-3">
<h3 class="megamenu-heading">Misc</h3>
<ul class="lqd-custom-menu reset-ul">
<li><a href="page-side-menu.html">Utility – Side Menu</a></li>
<li><a href="page-faq.html">Utility – FAQ</a></li>
<li><a href="page-coming-soon.html">Coming Soon</a></li>
<li><a href="page-404.html">404</a></li>
</ul>
</div><!-- /.megamenu-column -->
<div class="megamenu-column col-md-3">
<h3 class="megamenu-heading">Contact</h3>
<ul class="lqd-custom-menu reset-ul">
<li><a href="page-contact-dark.html">Contact – Dark</a></li>
<li><a href="page-contact-light.html">Contact – Light</a></li>
</ul>
</div><!-- /.megamenu-column -->
</div><!-- /.row ld-row -->
</div><!-- /.container ld-container -->
</div><!-- /.vc_row -->
</div><!-- /.megamenu-container -->
</li>
</ul>
</li>
<li class="menu-item-has-children megamenu megamenu-fullwidth">
<a href="#">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Elements
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
<ul class="nav-item-children">
<li>
<div class="container megamenu-container">
<div class="vc_row row megamenu-inner-row bg-dark">
<div class="container ld-container">
<div class="row ld-row">
<div class="megamenu-column col-md-1/5">
<h3 class="megamenu-heading">Elements 1</h3>
<ul class="lqd-custom-menu reset-ul">
<li><a href="element-fancy-images.html">Fancy Images</a></li>
<li><a href="element-accordions.html">Accordions</a></li>
<li><a href="element-dynamic-shape.html">Dynamic Shape</a></li>
<li><a href="element-testimonials.html">Testimonials</a></li>
<li><a href="element-contact-forms.html">Contact Forms</a></li>
<li><a href="element-pricing-tables.html">Pricing</a></li>
<li><a href="element-carousels.html">Carousels</a></li>
<li><a href="element-fancy-texts.html">Fancy Text</a></li>
</ul>
</div><!-- /.megamenu-column -->
<div class="megamenu-column col-md-1/5">
<h3 class="megamenu-heading">Elements 2</h3>
<ul class="lqd-custom-menu reset-ul">
<li><a href="element-3d-carousel.html">3D Carousel</a></li>
<li><a href="element-circular-images.html">Circular Image</a></li>
<li><a href="element-particles.html">Particles</a></li>
<li><a href="element-slideshow.html">Slideshow</a></li>
<li><a href="element-newsletter.html">Newsletter</a></li>
<li><a href="element-latest-posts.html">Latest Posts</a></li>
<li><a href="element-counters.html">Counters</a></li>
<li><a href="element-structure.html">Structure</a></li>
</ul>
</div><!-- /.megamenu-column -->
<div class="megamenu-column col-md-1/5">
<h3 class="megamenu-heading">Elements 3</h3>
<ul class="lqd-custom-menu reset-ul">
<li><a href="element-iconbox-1.html">Iconboxes - 1</a></li>
<li><a href="element-iconbox-2.html">Iconboxes - 2</a></li>
<li><a href="element-iconbox-3.html">Iconboxes - 3</a></li>
<li><a href="element-media-elements.html">Media Elements</a></li>
<li><a href="element-media-gallery.html">Media Gallery</a></li>
<li><a href="element-buttons.html">Buttons</a></li>
<li><a href="element-team-members.html">Team Member</a></li>
<li><a href="element-progressbars.html">Progress bars</a></li>
</ul>
</div><!-- /.megamenu-column -->
<div class="megamenu-column col-md-1/5">
<h3 class="megamenu-heading">Elements 5</h3>
<ul class="lqd-custom-menu reset-ul">
<li><a href="element-sticky-submenu.html">Sticky Submenu</a></li>
<li><a href="element-social-elements.html">Social Elements</a></li>
<li><a href="element-typography.html">Typography</a></li>
<li><a href="element-fancy-boxes.html">Fancy Boxes</a></li>
<li><a href="element-flip-boxes.html">Flip Boxes</a></li>
<li><a href="element-clients.html">Clients</a></li>
<li><a href="element-tabs.html">Tabs</a></li>
<li><a href="element-modal.html">Modal Popup</a></li>
</ul>
</div><!-- /.megamenu-column -->
</div><!-- /.row ld-row -->
</div><!-- /.container ld-container -->
</div><!-- /.vc_row -->
</div><!-- /.megamenu-container -->
</li>
</ul>
</li>
<li class="menu-item-has-children">
<a href="#">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Portfolio
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
<ul class="nav-item-children">
<li>
<a href="portfolio-grid-1.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Portfolio Grid 1
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="portfolio-grid-2.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Portfolio Grid 2
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="portfolio-grid-3.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Portfolio Grid 3
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="portfolio-grid-4.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Portfolio Grid 4
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="portfolio-grid-5.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Portfolio Grid 5
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="portfolio-grid-6.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Portfolio Grid 6
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="portfolio-grid-7.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Portfolio Grid 7
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="portfolio-single-1.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Portfolio Single 1
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
</ul>
</li>
<li class="menu-item-has-children">
<a href="#">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Blog
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
<ul class="nav-item-children">
<li>
<a href="blog-with-sidebar.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
with Sidebar
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="blog-split.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Split
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="blog-masonry.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Masonry
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="blog-modern.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Modern
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="blog-date.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Date
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="blog-classic.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Classic
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="blog-magazine.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Magazine
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="blog-featured.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Featured
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="blog-grid.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Grid
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="blog-single.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Single
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
</ul>
</li>
<li class="menu-item-has-children">
<a href="#">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Headers
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
<ul class="nav-item-children">
<li>
<a href="element-sticky-submenu.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Header 1
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="index-business.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Header 2
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="index-creative.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Header 3
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="index-crypto.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Header 4
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="index-digital-agency.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Header 5
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="index-digital-creative.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Header 6
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="index-freelancer.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Header 7
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="index-mobile.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Header 8
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="index-opus.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Header 9
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="index-services.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Header 10
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="index-voguish.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Header 11
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="index-wave.html">
<span class="link-icon"></span>
<span class="link-txt">
<span class="link-ext"></span>
<span class="txt">
Header 12
<span class="submenu-expander">
<i class="fa fa-angle-down"></i>
</span>
</span>
</span>
</a>
</li>
</ul>
</li>
</ul><!-- /#primary-nav -->
</div><!-- /#main-header-collapse -->
</div><!-- /.col -->
<div class="col text-right">
<div class="header-module">
<ul class="social-icon social-icon-sm">
<li>
<a href="#" target="_blank"><i class="fa fa-facebook"></i></a>
</li>
<li>
<a href="#" target="_blank"><i class="fa fa-twitter"></i></a>
</li>
<li>
<a href="#" target="_blank"><i class="fa fa-telegram"></i></a>
</li>
</ul>
</div><!-- /.header-module -->
</div><!-- /.col -->
</div><!-- /.mainbar-row -->
</div><!-- /.mainbar -->
</div><!-- /.mainbar-container -->
</div><!-- /.mainbar-wrap -->
</header><!-- /.main-header -->
<div class="titlebar-inner">
<div class="container titlebar-container">
<div class="row titlebar-container">
<div class="titlebar-col col-md-12">
<h1 data-fittext="true" data-fittext-options='{ "maxFontSize": 80, "minFontSize": 32 }'>Iconboxes 2</h1>
<a class="titlebar-scroll-link" href="#content" data-localscroll="true"><i class="fa fa-angle-down"></i></a>
</div><!-- /.titlebar-col -->
</div><!-- /.titlebar-row -->
</div><!-- /.titlebar-container -->
</div><!-- /.titlebar-inner -->
</div><!-- /.titlebar -->
<main id="content" class="content">
<section class="vc_row pt-150 pb-50">
<div class="container">
<div class="row">
<div class="lqd-column col-md-4">
<div class="iconbox text-left iconbox-shadow-hover iconbox-xl iconbox-heading-sm iconbox-filled iconbox-filled-hover iconbox-has-fill-element border-athens-gray border-radius-3 pt-35 pb-35">
<span class="iconbox-fill-el iconbox-fill-el-hover" style="background-image: url(./assets/demo/misc/iconbox-1.jpg);"></span>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<i class="icon-basic_laptop"></i>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3 class="font-weight-normal">Automatic Updates</h3>
<p>Huge collection of elements, rich customization options, flexible layouts, and instant results!</p>
</div><!-- /.contents -->
</div><!-- /.iconbbox -->
</div><!-- /.lqd-column col-md-4 -->
<div class="lqd-column col-md-4">
<div class="iconbox text-left iconbox-shadow-hover iconbox-xl iconbox-heading-sm iconbox-filled iconbox-filled-hover iconbox-has-fill-element border-athens-gray border-radius-3 pt-35 pb-35">
<span class="iconbox-fill-el iconbox-fill-el-hover" style="background-image: url(./assets/demo/misc/iconbox-2.jpg);"></span>
<span class="iconbox-label lh-175">Exclusive</span>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<i class="icon-basic_globe"></i>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3 class="font-weight-normal">Multi-lingual</h3>
<p>Huge collection of elements, rich customization options, flexible layouts, and instant results!</p>
</div><!-- /.contents -->
</div><!-- /.iconbbox -->
</div><!-- /.lqd-column col-md-4 -->
<div class="lqd-column col-md-4">
<div class="iconbox text-left iconbox-shadow-hover iconbox-xl iconbox-heading-sm iconbox-filled iconbox-filled-hover iconbox-has-fill-element border-athens-gray border-radius-3 pt-35 pb-35">
<span class="iconbox-fill-el iconbox-fill-el-hover" style="background-image: url(./assets/demo/misc/iconbox-3.jpg);"></span>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<i class="icon-ecommerce_bag_plus"></i>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3 class="font-weight-normal">Online Shopping</h3>
<p>Huge collection of elements, rich customization options, flexible layouts, and instant results!</p>
</div><!-- /.contents -->
</div><!-- /.iconbbox -->
</div><!-- /.lqd-column col-md-4 -->
</div><!-- /.row -->
</div><!-- /.container -->
</section>
<section class="vc_row pt-50 pb-75">
<div class="container">
<div class="row">
<div class="lqd-column col-md-4 col-sm-6">
<div class="iconbox iconbox-wavebg px-3" data-animate-icon="true" data-plugin-options='{"color": "#ffb09f"}'>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<span class="icon-wave-bg">
<svg xmlns="http://www.w3.org/2000/svg" width="125.062" height="88.62" viewBox="0 0 125.062 88.62"><path style="fill: #ffb09f !important;" d="M488.806,2544.02s35.988-16.17,53.518-7.45S565,2541.44,574,2549s18.09,19.21,14.009,41.12c-3.62,19.44-25.466,15.87-37.2,27.79-10.557,10.72-68.616,1.88-74.4-12.88-6.841-17.45-13.114-17.84-12.406-34.03C464.452,2560.66,475.315,2554.71,488.806,2544.02Z" transform="translate(-463.938 -2534)"></path> </svg>
</span>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <rect x="1" y="32" fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" width="31" height="31" /> <rect x="32" y="32" fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" width="31" height="31" /> <rect x="1" y="1" fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" width="31" height="31" /> <rect x="32" y="1" fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" width="31" height="31" /> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3>No rocket science</h3>
<p>Praesent porttitor nunc vitae lacus vehicula, nec mollis eros congue.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 col-sm-6 -->
<div class="lqd-column col-md-4 col-sm-6">
<div class="iconbox iconbox-wavebg px-3" data-animate-icon="true" data-plugin-options='{"color": "#ad78ef", "delay": 150}'>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<span class="icon-wave-bg">
<svg xmlns="http://www.w3.org/2000/svg" width="125.062" height="88.62" viewBox="0 0 125.062 88.62"> <path style="fill: #ad78ef !important" d="M488.806,2544.02s35.988-16.17,53.518-7.45S565,2541.44,574,2549s18.09,19.21,14.009,41.12c-3.62,19.44-25.466,15.87-37.2,27.79-10.557,10.72-68.616,1.88-74.4-12.88-6.841-17.45-13.114-17.84-12.406-34.03C464.452,2560.66,475.315,2554.71,488.806,2544.02Z" transform="translate(-463.938 -2534)"></path> </svg>
</span>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <polyline fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" points="5,41 11,1 53,1 59,41 " /> <path fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" d="M21,41c0,6.075,4.925,11,11,11s11-4.925,11-11h16v22 H5V41H21z" /> <polyline fill="none" stroke="#000000" stroke-width="2" stroke-linejoin="bevel" stroke-miterlimit="10" points="23,22 30,29 43,16 " /> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3>Blazing Performance</h3>
<p>Praesent porttitor nunc vitae lacus vehicula, nec mollis eros congue.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 col-sm-6 -->
<div class="lqd-column col-md-4 col-sm-6">
<div class="iconbox iconbox-wavebg px-3" data-animate-icon="true" data-plugin-options='{"color": "#3ed2a7", "delay": 300}'>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<span class="icon-wave-bg">
<svg xmlns="http://www.w3.org/2000/svg" width="125.062" height="88.62" viewBox="0 0 125.062 88.62"> <path style="fill: #3ed2a7 !important" d="M488.806,2544.02s35.988-16.17,53.518-7.45S565,2541.44,574,2549s18.09,19.21,14.009,41.12c-3.62,19.44-25.466,15.87-37.2,27.79-10.557,10.72-68.616,1.88-74.4-12.88-6.841-17.45-13.114-17.84-12.406-34.03C464.452,2560.66,475.315,2554.71,488.806,2544.02Z" transform="translate(-463.938 -2534)"></path> </svg>
</span>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <path fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" d="M24,42c0,4.418,3.582,8,8,8s8-3.582,8-8V1h13v41 c0,11.598-9.402,21-21,21s-21-9.402-21-21V1h13V42z" /> <line fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" x1="11" y1="10" x2="24" y2="10" /> <line fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" x1="40" y1="10" x2="53" y2="10" /> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3>Unlimited Layouts</h3>
<p>Praesent porttitor nunc vitae lacus vehicula, nec mollis eros congue.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 col-sm-6 -->
<div class="lqd-column col-md-4 col-sm-6">
<div class="iconbox iconbox-wavebg px-3" data-animate-icon="true" data-plugin-options='{"color": "#edba57", "delay": 450}'>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<span class="icon-wave-bg">
<svg xmlns="http://www.w3.org/2000/svg" width="125.062" height="88.62" viewBox="0 0 125.062 88.62"> <path style="fill: #edba57 !important" d="M488.806,2544.02s35.988-16.17,53.518-7.45S565,2541.44,574,2549s18.09,19.21,14.009,41.12c-3.62,19.44-25.466,15.87-37.2,27.79-10.557,10.72-68.616,1.88-74.4-12.88-6.841-17.45-13.114-17.84-12.406-34.03C464.452,2560.66,475.315,2554.71,488.806,2544.02Z" transform="translate(-463.938 -2534)"></path> </svg>
</span>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <polyline fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" points="5,41 11,1 53,1 59,41 " /> <path fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" d="M21,41c0,6.075,4.925,11,11,11s11-4.925,11-11h16v22 H5V41H21z" /> <polyline fill="none" stroke="#000000" stroke-width="2" stroke-linejoin="bevel" stroke-miterlimit="10" points="23,22 30,29 43,16 " /> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3>Unlimited Layouts</h3>
<p>Praesent porttitor nunc vitae lacus vehicula, nec mollis eros congue.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 col-sm-6 -->
<div class="lqd-column col-md-4 col-sm-6">
<div class="iconbox iconbox-wavebg px-3" data-animate-icon="true" data-plugin-options='{"color": "#577eed", "delay": 600}'>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<span class="icon-wave-bg">
<svg xmlns="http://www.w3.org/2000/svg" width="125.062" height="88.62" viewBox="0 0 125.062 88.62"> <path style="fill: #577eed !important" d="M488.806,2544.02s35.988-16.17,53.518-7.45S565,2541.44,574,2549s18.09,19.21,14.009,41.12c-3.62,19.44-25.466,15.87-37.2,27.79-10.557,10.72-68.616,1.88-74.4-12.88-6.841-17.45-13.114-17.84-12.406-34.03C464.452,2560.66,475.315,2554.71,488.806,2544.02Z" transform="translate(-463.938 -2534)"></path> </svg>
</span>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <g> <polyline fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" points="29,6 46,6 63,27 32,58 1,27 18,6 32,6 32,58 " /> <polyline fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" points="32,57 18,27 24,6 " /> <polyline fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" points="32,57 46,27 40,6 " /> <line fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" x1="1" y1="27" x2="63" y2="27" /> </g> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3>Ready to rock?</h3>
<p>Praesent porttitor nunc vitae lacus vehicula, nec mollis eros congue.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 col-sm-6 -->
<div class="lqd-column col-md-4 col-sm-6">
<div class="iconbox iconbox-wavebg px-3" data-animate-icon="true" data-plugin-options='{"color": "#577eed", "delay": 750}'>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<span class="icon-wave-bg">
<svg xmlns="http://www.w3.org/2000/svg" width="125.062" height="88.62" viewBox="0 0 125.062 88.62"> <path style="fill: #28b5f0 !important" d="M488.806,2544.02s35.988-16.17,53.518-7.45S565,2541.44,574,2549s18.09,19.21,14.009,41.12c-3.62,19.44-25.466,15.87-37.2,27.79-10.557,10.72-68.616,1.88-74.4-12.88-6.841-17.45-13.114-17.84-12.406-34.03C464.452,2560.66,475.315,2554.71,488.806,2544.02Z" transform="translate(-463.938 -2534)"></path> </svg>
</span>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <g> <rect x="1" y="16" fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" width="52" height="40" /> </g> <polyline fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" points="10,14 10,8 63,8 63,48 55,48 " /> <polyline fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" points="1,46 15,32 29,48 39,42 53,54 " /> <circle fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" cx="40" cy="29" r="5" /> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3>Free Updates</h3>
<p>Praesent porttitor nunc vitae lacus vehicula, nec mollis eros congue.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 col-sm-6 -->
</div><!-- /.row -->
</div><!-- /.container -->
</section>
<section class="vc_row pt-75 pb-75">
<div class="container">
<div class="row">
<div class="lqd-column col-md-4">
<div class="iconbox iconbox-shadow-hover iconbox-filled bg-link-water">
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container text-havelock-blue">
<i class="icon-basic_calendar"></i>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3 class="font-weight-bold text-havelock-blue">Programs & Services</h3>
<p>State-of-the-art care for children’s unique healthcare needs.</p>
<a href="#" class="btn btn-naked text-havelock-blue">
<span>
<span class="btn-txt">Lean More</span>
<span class="btn-icon"><i class="fa fa-angle-right"></i></span>
</span>
</a>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 -->
<div class="lqd-column col-md-4">
<div class="iconbox iconbox-shadow-hover iconbox-filled bg-swans-down">
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container text-turquoise">
<i class="icon-basic_map"></i>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3 class="font-weight-bold text-turquoise">Programs & Services</h3>
<p>State-of-the-art care for children’s unique healthcare needs.</p>
<a href="#" class="btn btn-naked text-turquoise">
<span>
<span class="btn-txt">Lean More</span>
<span class="btn-icon"><i class="fa fa-angle-right"></i></span>
</span>
</a>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 -->
<div class="lqd-column col-md-4">
<div class="iconbox iconbox-shadow-hover iconbox-filled bg-old-lace">
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container text-neon-carrot">
<i class="icon-ecommerce_gift"></i>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3 class="font-weight-bold text-neon-carrot">Programs & Services</h3>
<p>State-of-the-art care for children’s unique healthcare needs.</p>
<a href="#" class="btn btn-naked text-neon-carrot">
<span>
<span class="btn-txt">Lean More</span>
<span class="btn-icon"><i class="fa fa-angle-right"></i></span>
</span>
</a>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 -->
</div><!-- /.row -->
</div><!-- /.container -->
</section>
<section class="vc_row pt-75 pb-75 bg-athens-gray">
<div class="container">
<div class="row">
<div class="lqd-column col-md-6">
<div class="iconbox iconbox-inline" data-animate-icon="true" data-plugin-options='{"resetOnHover": true, "color": "#000"}'>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <g> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M51.799,15.202 c10.936,10.933,10.936,28.662,0,39.595c-10.935,10.938-28.664,10.938-39.598,0c-10.935-10.933-10.935-28.662,0-39.595 C23.135,4.266,40.864,4.266,51.799,15.202z" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,7L32,1L38,1" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M26,1L32,1"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,63L32,59" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,11L32,7" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M4,35L8,35"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M56,35L60,35"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M14.564,17.565L17.394,20.394"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M46.606,49.606L49.436,52.436"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M49.436,17.565L46.607,20.394"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M17.395,49.606L14.564,52.436" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,21L32,33"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M29,35A3,3 0,1,1 35,35A3,3 0,1,1 29,35" ></path> </g> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<h3 class="font-weight-bold">TRANSPORTATION</h3>
<div class="contents">
<p>Spectacular train rides, breathtaking cable car ascents, overnight cruise ships, scenic day ferries, private first-class motorcoaches.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-6 -->
<div class="lqd-column col-md-6">
<div class="iconbox iconbox-inline" data-animate-icon="true" data-plugin-options='{"resetOnHover": true, "color": "#000"}'>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <g> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M51.799,15.202 c10.936,10.933,10.936,28.662,0,39.595c-10.935,10.938-28.664,10.938-39.598,0c-10.935-10.933-10.935-28.662,0-39.595 C23.135,4.266,40.864,4.266,51.799,15.202z" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,7L32,1L38,1" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M26,1L32,1"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,63L32,59" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,11L32,7" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M4,35L8,35"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M56,35L60,35"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M14.564,17.565L17.394,20.394"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M46.606,49.606L49.436,52.436"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M49.436,17.565L46.607,20.394"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M17.395,49.606L14.564,52.436" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,21L32,33"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M29,35A3,3 0,1,1 35,35A3,3 0,1,1 29,35" ></path> </g> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<h3 class="font-weight-bold">TRANSPORTATION</h3>
<div class="contents">
<p>Spectacular train rides, breathtaking cable car ascents, overnight cruise ships, scenic day ferries, private first-class motorcoaches.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-6 -->
<div class="lqd-column col-md-6">
<div class="iconbox iconbox-inline" data-animate-icon="true" data-plugin-options='{"resetOnHover": true, "color": "#000"}'>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <g> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M51.799,15.202 c10.936,10.933,10.936,28.662,0,39.595c-10.935,10.938-28.664,10.938-39.598,0c-10.935-10.933-10.935-28.662,0-39.595 C23.135,4.266,40.864,4.266,51.799,15.202z" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,7L32,1L38,1" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M26,1L32,1"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,63L32,59" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,11L32,7" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M4,35L8,35"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M56,35L60,35"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M14.564,17.565L17.394,20.394"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M46.606,49.606L49.436,52.436"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M49.436,17.565L46.607,20.394"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M17.395,49.606L14.564,52.436" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,21L32,33"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M29,35A3,3 0,1,1 35,35A3,3 0,1,1 29,35" ></path> </g> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<h3 class="font-weight-bold">TRANSPORTATION</h3>
<div class="contents">
<p>Spectacular train rides, breathtaking cable car ascents, overnight cruise ships, scenic day ferries, private first-class motorcoaches.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-6 -->
<div class="lqd-column col-md-6">
<div class="iconbox iconbox-inline" data-animate-icon="true" data-plugin-options='{"resetOnHover": true, "color": "#000"}'>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <g> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M51.799,15.202 c10.936,10.933,10.936,28.662,0,39.595c-10.935,10.938-28.664,10.938-39.598,0c-10.935-10.933-10.935-28.662,0-39.595 C23.135,4.266,40.864,4.266,51.799,15.202z" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,7L32,1L38,1" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M26,1L32,1"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,63L32,59" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,11L32,7" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M4,35L8,35"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M56,35L60,35"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M14.564,17.565L17.394,20.394"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M46.606,49.606L49.436,52.436"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M49.436,17.565L46.607,20.394"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M17.395,49.606L14.564,52.436" ></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M32,21L32,33"></path> <path fill="none" stroke-width="2" stroke-miterlimit="10" d="M29,35A3,3 0,1,1 35,35A3,3 0,1,1 29,35" ></path> </g> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<h3 class="font-weight-bold">TRANSPORTATION</h3>
<div class="contents">
<p>Spectacular train rides, breathtaking cable car ascents, overnight cruise ships, scenic day ferries, private first-class motorcoaches.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-6 -->
</div><!-- /.row -->
</div><!-- /.container -->
</section>
<section class="vc_row pt-50 pb-50 mt-50">
<div class="container">
<div class="row">
<div class="lqd-column col-md-4">
<div id="iconbox-fill-6" class="iconbox text-left iconbox-semiround iconbox-shadow-hover iconbox-heading-gradient iconbox-xl iconbox-filled iconbox-filled iconbox-filled-hover iconbox-has-fill-element pt-45 pb-45" data-animate-icon="true" data-plugin-options='{"resetOnHover": true,"color": "rgb(29, 225, 209):rgb(120, 11, 238)", "hoverColor": "rgb(255, 255, 255)"}'>
<span class="iconbox-fill-el iconbox-fill-el-hover bg-gradient-secondary-br"></span>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container mb-2">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <path stroke-width="2" stroke-miterlimit="10" d="M1 7 L63 7 L63 57 L1 57 Z"></path> <path stroke-width="2" stroke-miterlimit="10" d="M1,15L63,15"></path> <path stroke-width="2" stroke-miterlimit="10" d="M10,11L6,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M18,11L14,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M26,11L22,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M6,25L33,25"></path> <path stroke-width="2" stroke-miterlimit="10" d="M6,33L33,33"></path> <path stroke-width="2" stroke-miterlimit="10" d="M6,41L33,41"></path> <path stroke-width="2" stroke-miterlimit="10" d="M38 25 L57 25 L57 41 L38 41 Z"></path> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3>Best Sellers</h3>
<p>Huge collection of elements, rich customization options, flexible layouts, and instant results!</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 -->
<div class="lqd-column col-md-4">
<div id="iconbox-fill-7" class="iconbox text-left iconbox-semiround iconbox-shadow-hover iconbox-heading-gradient iconbox-xl iconbox-filled iconbox-filled iconbox-filled-hover iconbox-has-fill-element pt-45 pb-45" data-animate-icon="true" data-plugin-options='{"resetOnHover": true,"color": "rgb(29, 225, 209):rgb(120, 11, 238)", "hoverColor": "rgb(255, 255, 255)"}'>
<span class="iconbox-fill-el iconbox-fill-el-hover bg-gradient-secondary-br"></span>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container mb-2">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <path stroke-width="2" stroke-miterlimit="10" d="M1 7 L63 7 L63 57 L1 57 Z"></path> <path stroke-width="2" stroke-miterlimit="10" d="M1,15L63,15"></path> <path stroke-width="2" stroke-miterlimit="10" d="M10,11L6,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M18,11L14,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M26,11L22,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M6,25L33,25"></path> <path stroke-width="2" stroke-miterlimit="10" d="M6,33L33,33"></path> <path stroke-width="2" stroke-miterlimit="10" d="M6,41L33,41"></path> <path stroke-width="2" stroke-miterlimit="10" d="M38 25 L57 25 L57 41 L38 41 Z"></path> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3>Best Sellers</h3>
<p>Huge collection of elements, rich customization options, flexible layouts, and instant results!</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 -->
<div class="lqd-column col-md-4">
<div id="iconbox-fill-8" class="iconbox text-left iconbox-semiround iconbox-shadow-hover iconbox-heading-gradient iconbox-xl iconbox-filled iconbox-filled iconbox-filled-hover iconbox-has-fill-element pt-45 pb-45" data-animate-icon="true" data-plugin-options='{"resetOnHover": true,"color": "rgb(29, 225, 209):rgb(120, 11, 238)", "hoverColor": "rgb(255, 255, 255)"}'>
<span class="iconbox-fill-el iconbox-fill-el-hover bg-gradient-secondary-br"></span>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container mb-2">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <path stroke-width="2" stroke-miterlimit="10" d="M1 7 L63 7 L63 57 L1 57 Z"></path> <path stroke-width="2" stroke-miterlimit="10" d="M1,15L63,15"></path> <path stroke-width="2" stroke-miterlimit="10" d="M10,11L6,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M18,11L14,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M26,11L22,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M6,25L33,25"></path> <path stroke-width="2" stroke-miterlimit="10" d="M6,33L33,33"></path> <path stroke-width="2" stroke-miterlimit="10" d="M6,41L33,41"></path> <path stroke-width="2" stroke-miterlimit="10" d="M38 25 L57 25 L57 41 L38 41 Z"></path> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3>Best Sellers</h3>
<p>Huge collection of elements, rich customization options, flexible layouts, and instant results!</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 -->
</div><!-- /.row -->
</div><!-- /.container -->
</section>
<section class="vc_row pt-100 pb-90 bg-cover" style="background-image: url(./assets/demo/bg/bg-29.jpg);" data-parallax="true" data-parallax-options='{ "parallaxBG": true }'>
<div class="liquid-row-overlay" style="background:rgba(0, 0, 0, 0.33)"></div>
<div class="container">
<div class="row">
<div class="lqd-column col-md-6 col-md-offset-3">
<header class="fancy-title mb-70 text-center">
<h2 class="text-white">Unlimited layouts, pages, styles, headers, and footers.</h2>
</header><!-- /.fancy-title text-center -->
</div><!-- /.col-md-6 col-md-offset-3 -->
</div><!-- /.row -->
<div class="row d-flex flex-wrap align-items-center">
<div class="lqd-column col-md-4">
<div class="iconbox iconbox-xl iconbox-heading-sm px-4" data-plugin-options='{"color":"#fff","hoverColor":"#fff"}'>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container text-white">
<i class="icon-basic_settings"></i>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3 class="font-weight-normal text-white">Install Ave</h3>
<p class="font-size-16 text-fade-white-07">Forget about design limits! Build and customize your site visually.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 -->
<div class="lqd-column col-md-4">
<div class="iconbox iconbox-xl iconbox-heading-sm px-4 border-fade-white-015 pt-5 pb-50" data-plugin-options='{"color":"#fff","hoverColor":"#fff"}'>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container text-white">
<i class="icon-basic_webpage_multiple"></i>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3 class="font-weight-normal text-white">Customize as you like</h3>
<p class="font-size-16 text-fade-white-07">Forget about design limits! Build and customize your site visually.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 -->
<div class="lqd-column col-md-4">
<div class="iconbox iconbox-xl iconbox-heading-sm px-4" data-plugin-options='{"color":"#fff","hoverColor":"#fff"}'>
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container text-white">
<i class="icon-basic_flag2"></i>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3 class="font-weight-normal text-white">Launch your site</h3>
<p class="font-size-16 text-fade-white-07">Forget about design limits! Build and customize your site visually.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 -->
</div><!-- /.row -->
</div><!-- /.container -->
</section>
<section class="vc_row pt-50 pb-50 mt-50">
<div class="container">
<div class="row">
<div class="lqd-column col-md-4">
<div class="iconbox text-left iconbox-semiround iconbox-shadow iconbox-xl iconbox-filled iconbox-filled iconbox-filled-hover iconbox-scale-bg">
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<svg width="58px" height="42px" viewBox="0 0 58 42" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g transform="translate(-594.000000, -553.000000)" fill-rule="nonzero"> <g transform="translate(194.000000, 491.000000)"> <g transform="translate(0.000000, 20.000000)"> <g transform="translate(360.000000, 0.000000)"> <g transform="translate(40.000000, 42.000000)"> <path d="M54.783,42 L3.217,42 C1.439,42 0,40.56 0,38.783 L0,3.217 C0,1.44 1.439,0 3.217,0 L54.783,0 C56.56,0 58,1.44 58,3.217 L58,38.783 C58,40.56 56.56,42 54.783,42" fill="#DBEAF5"></path> <path d="M15,28 L6,28 C5.447,28 5,28.448 5,29 C5,29.552 5.447,30 6,30 L15,30 C15.553,30 16,29.552 16,29 C16,28.448 15.553,28 15,28" fill="#7A693C"></path> <path d="M29,29 C29,28.448 28.553,28 28,28 L19,28 C18.447,28 18,28.448 18,29 C18,29.552 18.447,30 19,30 L28,30 C28.553,30 29,29.552 29,29" fill="#7A693C"></path> <path d="M7,33 L6,33 C5.447,33 5,33.448 5,34 C5,34.552 5.447,35 6,35 L7,35 C7.553,35 8,34.552 8,34 C8,33.448 7.553,33 7,33" fill="#7A693C"></path> <path d="M13,33 L11,33 C10.447,33 10,33.448 10,34 C10,34.552 10.447,35 11,35 L13,35 C13.553,35 14,34.552 14,34 C14,33.448 13.553,33 13,33" fill="#7A693C"></path> <path d="M18,33 L17,33 C16.447,33 16,33.448 16,34 C16,34.552 16.447,35 17,35 L18,35 C18.553,35 19,34.552 19,34 C19,33.448 18.553,33 18,33" fill="#7A693C"></path> <path d="M24,33 L22,33 C21.447,33 21,33.448 21,34 C21,34.552 21.447,35 22,35 L24,35 C24.553,35 25,34.552 25,34 C25,33.448 24.553,33 24,33" fill="#7A693C"></path> <path d="M27.29,33.29 C27.109,33.48 27,33.74 27,34 C27,34.26 27.109,34.52 27.29,34.71 C27.479,34.89 27.74,35 28,35 C28.26,35 28.519,34.89 28.71,34.71 C28.89,34.52 29,34.26 29,34 C29,33.74 28.89,33.48 28.71,33.29 C28.33,32.92 27.648,32.92 27.29,33.29" fill="#7A693C"></path> <path d="M46,31 C46,34.314 43.314,37 40,37 C36.686,37 34,34.314 34,31 C34,27.686 36.686,25 40,25 C43.314,25 46,27.686 46,31" fill="#E74C3D"></path> <path d="M53,31 C53,34.314 50.314,37 47,37 C43.686,37 41,34.314 41,31 C41,27.686 43.686,25 47,25 C50.314,25 53,27.686 53,31" fill="#F0C41B"></path> <path d="M20.745,20 L7.255,20 C6.563,20 6,19.438 6,18.745 L6,9.255 C6,8.562 6.563,8 7.255,8 L20.745,8 C21.438,8 22,8.562 22,9.255 L22,18.745 C22,19.438 21.438,20 20.745,20" fill="#F0C41B"></path> <path d="M20.745,21 L7.255,21 C6.012,21 5,19.988 5,18.745 L5,9.255 C5,8.012 6.012,7 7.255,7 L20.745,7 C21.988,7 23,8.012 23,9.255 L23,18.745 C23,19.988 21.988,21 20.745,21 Z M7.255,9 C7.113,9 7,9.114 7,9.255 L7,18.745 C7,18.886 7.113,19 7.255,19 L20.745,19 C20.886,19 21,18.886 21,18.745 L21,9.255 C21,9.114 20.886,9 20.745,9 L7.255,9 Z" fill="#F3D55C"></path> <path d="M22,9.255 C22,8.562 21.438,8 20.745,8 L16,8 L13.255,8 C12.561,8 12,8.562 12,9.255 L12,12 L12,18.745 C12,19.438 12.561,20 13.255,20 L14.745,20 C15.438,20 16,19.438 16,18.745 L16,13.255 C16,12.562 16.562,12 17.255,12 L20.745,12 C21.438,12 22,11.438 22,10.745 L22,9.255 Z" fill="#F0C41B"></path> <path d="M14.745,21 L13.255,21 C12.012,21 11,19.988 11,18.745 L11,9.255 C11,8.012 12.012,7 13.255,7 L20.745,7 C21.988,7 23,8.012 23,9.255 L23,10.745 C23,11.988 21.988,13 20.745,13 L17.255,13 C17.113,13 17,13.114 17,13.255 L17,18.745 C17,19.988 15.988,21 14.745,21 Z M13.255,9 C13.113,9 13,9.114 13,9.255 L13,18.745 C13,18.886 13.113,19 13.255,19 L14.745,19 C14.886,19 15,18.886 15,18.745 L15,13.255 C15,12.012 16.012,11 17.255,11 L20.745,11 C20.886,11 21,10.886 21,10.745 L21,9.255 C21,9.114 20.886,9 20.745,9 L13.255,9 Z" fill="#F3D55C"></path> <path d="M16,16 L22,16" fill="#F0C41B"></path> <path d="M22,17 L16,17 C15.447,17 15,16.552 15,16 C15,15.448 15.447,15 16,15 L22,15 C22.553,15 23,15.448 23,16 C23,16.552 22.553,17 22,17" fill="#F3D55C"></path> <path d="M12,12 L6,12" fill="#F0C41B"></path> <path d="M12,13 L6,13 C5.447,13 5,12.552 5,12 C5,11.448 5.447,11 6,11 L12,11 C12.553,11 13,11.448 13,12 C13,12.552 12.553,13 12,13" fill="#F3D55C"></path> <path d="M12,16 L6,16" fill="#F0C41B"></path> <path d="M12,17 L6,17 C5.447,17 5,16.552 5,16 C5,15.448 5.447,15 6,15 L12,15 C12.553,15 13,15.448 13,16 C13,16.552 12.553,17 12,17" fill="#F3D55C"></path> </g> </g> </g> </g> </g> </g> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3>Payment Options</h3>
<p>Huge collection of elements, rich customization options, flexible layouts, and instant results!</p>
<a href="#" class="btn btn-underlined text-uppercase btn-bordered border-thin btn-bordered-gradient btn-bordered-gradient-primary font-size-12 lh-15 font-weight-medium ltr-sp-2 text-dark">
<span>
<span class="btn-txt">Discover One</span>
</span>
</a>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 -->
<div class="lqd-column col-md-4">
<div class="iconbox text-left iconbox-semiround iconbox-shadow iconbox-xl iconbox-filled iconbox-filled iconbox-filled-hover iconbox-scale-bg">
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<svg width="58px" height="42px" viewBox="0 0 58 42" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g transform="translate(-594.000000, -553.000000)" fill-rule="nonzero"> <g transform="translate(194.000000, 491.000000)"> <g transform="translate(0.000000, 20.000000)"> <g transform="translate(360.000000, 0.000000)"> <g transform="translate(40.000000, 42.000000)"> <path d="M54.783,42 L3.217,42 C1.439,42 0,40.56 0,38.783 L0,3.217 C0,1.44 1.439,0 3.217,0 L54.783,0 C56.56,0 58,1.44 58,3.217 L58,38.783 C58,40.56 56.56,42 54.783,42" fill="#DBEAF5"></path> <path d="M15,28 L6,28 C5.447,28 5,28.448 5,29 C5,29.552 5.447,30 6,30 L15,30 C15.553,30 16,29.552 16,29 C16,28.448 15.553,28 15,28" fill="#7A693C"></path> <path d="M29,29 C29,28.448 28.553,28 28,28 L19,28 C18.447,28 18,28.448 18,29 C18,29.552 18.447,30 19,30 L28,30 C28.553,30 29,29.552 29,29" fill="#7A693C"></path> <path d="M7,33 L6,33 C5.447,33 5,33.448 5,34 C5,34.552 5.447,35 6,35 L7,35 C7.553,35 8,34.552 8,34 C8,33.448 7.553,33 7,33" fill="#7A693C"></path> <path d="M13,33 L11,33 C10.447,33 10,33.448 10,34 C10,34.552 10.447,35 11,35 L13,35 C13.553,35 14,34.552 14,34 C14,33.448 13.553,33 13,33" fill="#7A693C"></path> <path d="M18,33 L17,33 C16.447,33 16,33.448 16,34 C16,34.552 16.447,35 17,35 L18,35 C18.553,35 19,34.552 19,34 C19,33.448 18.553,33 18,33" fill="#7A693C"></path> <path d="M24,33 L22,33 C21.447,33 21,33.448 21,34 C21,34.552 21.447,35 22,35 L24,35 C24.553,35 25,34.552 25,34 C25,33.448 24.553,33 24,33" fill="#7A693C"></path> <path d="M27.29,33.29 C27.109,33.48 27,33.74 27,34 C27,34.26 27.109,34.52 27.29,34.71 C27.479,34.89 27.74,35 28,35 C28.26,35 28.519,34.89 28.71,34.71 C28.89,34.52 29,34.26 29,34 C29,33.74 28.89,33.48 28.71,33.29 C28.33,32.92 27.648,32.92 27.29,33.29" fill="#7A693C"></path> <path d="M46,31 C46,34.314 43.314,37 40,37 C36.686,37 34,34.314 34,31 C34,27.686 36.686,25 40,25 C43.314,25 46,27.686 46,31" fill="#E74C3D"></path> <path d="M53,31 C53,34.314 50.314,37 47,37 C43.686,37 41,34.314 41,31 C41,27.686 43.686,25 47,25 C50.314,25 53,27.686 53,31" fill="#F0C41B"></path> <path d="M20.745,20 L7.255,20 C6.563,20 6,19.438 6,18.745 L6,9.255 C6,8.562 6.563,8 7.255,8 L20.745,8 C21.438,8 22,8.562 22,9.255 L22,18.745 C22,19.438 21.438,20 20.745,20" fill="#F0C41B"></path> <path d="M20.745,21 L7.255,21 C6.012,21 5,19.988 5,18.745 L5,9.255 C5,8.012 6.012,7 7.255,7 L20.745,7 C21.988,7 23,8.012 23,9.255 L23,18.745 C23,19.988 21.988,21 20.745,21 Z M7.255,9 C7.113,9 7,9.114 7,9.255 L7,18.745 C7,18.886 7.113,19 7.255,19 L20.745,19 C20.886,19 21,18.886 21,18.745 L21,9.255 C21,9.114 20.886,9 20.745,9 L7.255,9 Z" fill="#F3D55C"></path> <path d="M22,9.255 C22,8.562 21.438,8 20.745,8 L16,8 L13.255,8 C12.561,8 12,8.562 12,9.255 L12,12 L12,18.745 C12,19.438 12.561,20 13.255,20 L14.745,20 C15.438,20 16,19.438 16,18.745 L16,13.255 C16,12.562 16.562,12 17.255,12 L20.745,12 C21.438,12 22,11.438 22,10.745 L22,9.255 Z" fill="#F0C41B"></path> <path d="M14.745,21 L13.255,21 C12.012,21 11,19.988 11,18.745 L11,9.255 C11,8.012 12.012,7 13.255,7 L20.745,7 C21.988,7 23,8.012 23,9.255 L23,10.745 C23,11.988 21.988,13 20.745,13 L17.255,13 C17.113,13 17,13.114 17,13.255 L17,18.745 C17,19.988 15.988,21 14.745,21 Z M13.255,9 C13.113,9 13,9.114 13,9.255 L13,18.745 C13,18.886 13.113,19 13.255,19 L14.745,19 C14.886,19 15,18.886 15,18.745 L15,13.255 C15,12.012 16.012,11 17.255,11 L20.745,11 C20.886,11 21,10.886 21,10.745 L21,9.255 C21,9.114 20.886,9 20.745,9 L13.255,9 Z" fill="#F3D55C"></path> <path d="M16,16 L22,16" fill="#F0C41B"></path> <path d="M22,17 L16,17 C15.447,17 15,16.552 15,16 C15,15.448 15.447,15 16,15 L22,15 C22.553,15 23,15.448 23,16 C23,16.552 22.553,17 22,17" fill="#F3D55C"></path> <path d="M12,12 L6,12" fill="#F0C41B"></path> <path d="M12,13 L6,13 C5.447,13 5,12.552 5,12 C5,11.448 5.447,11 6,11 L12,11 C12.553,11 13,11.448 13,12 C13,12.552 12.553,13 12,13" fill="#F3D55C"></path> <path d="M12,16 L6,16" fill="#F0C41B"></path> <path d="M12,17 L6,17 C5.447,17 5,16.552 5,16 C5,15.448 5.447,15 6,15 L12,15 C12.553,15 13,15.448 13,16 C13,16.552 12.553,17 12,17" fill="#F3D55C"></path> </g> </g> </g> </g> </g> </g> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3>Payment Options</h3>
<p>Huge collection of elements, rich customization options, flexible layouts, and instant results!</p>
<a href="#" class="btn btn-underlined text-uppercase btn-bordered border-thin btn-bordered-gradient btn-bordered-gradient-primary font-size-12 lh-15 font-weight-medium ltr-sp-2 text-dark">
<span>
<span class="btn-txt">Discover One</span>
</span>
</a>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 -->
<div class="lqd-column col-md-4">
<div class="iconbox text-left iconbox-semiround iconbox-shadow iconbox-xl iconbox-filled iconbox-filled iconbox-filled-hover iconbox-scale-bg">
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container">
<svg width="58px" height="42px" viewBox="0 0 58 42" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g transform="translate(-594.000000, -553.000000)" fill-rule="nonzero"> <g transform="translate(194.000000, 491.000000)"> <g transform="translate(0.000000, 20.000000)"> <g transform="translate(360.000000, 0.000000)"> <g transform="translate(40.000000, 42.000000)"> <path d="M54.783,42 L3.217,42 C1.439,42 0,40.56 0,38.783 L0,3.217 C0,1.44 1.439,0 3.217,0 L54.783,0 C56.56,0 58,1.44 58,3.217 L58,38.783 C58,40.56 56.56,42 54.783,42" fill="#DBEAF5"></path> <path d="M15,28 L6,28 C5.447,28 5,28.448 5,29 C5,29.552 5.447,30 6,30 L15,30 C15.553,30 16,29.552 16,29 C16,28.448 15.553,28 15,28" fill="#7A693C"></path> <path d="M29,29 C29,28.448 28.553,28 28,28 L19,28 C18.447,28 18,28.448 18,29 C18,29.552 18.447,30 19,30 L28,30 C28.553,30 29,29.552 29,29" fill="#7A693C"></path> <path d="M7,33 L6,33 C5.447,33 5,33.448 5,34 C5,34.552 5.447,35 6,35 L7,35 C7.553,35 8,34.552 8,34 C8,33.448 7.553,33 7,33" fill="#7A693C"></path> <path d="M13,33 L11,33 C10.447,33 10,33.448 10,34 C10,34.552 10.447,35 11,35 L13,35 C13.553,35 14,34.552 14,34 C14,33.448 13.553,33 13,33" fill="#7A693C"></path> <path d="M18,33 L17,33 C16.447,33 16,33.448 16,34 C16,34.552 16.447,35 17,35 L18,35 C18.553,35 19,34.552 19,34 C19,33.448 18.553,33 18,33" fill="#7A693C"></path> <path d="M24,33 L22,33 C21.447,33 21,33.448 21,34 C21,34.552 21.447,35 22,35 L24,35 C24.553,35 25,34.552 25,34 C25,33.448 24.553,33 24,33" fill="#7A693C"></path> <path d="M27.29,33.29 C27.109,33.48 27,33.74 27,34 C27,34.26 27.109,34.52 27.29,34.71 C27.479,34.89 27.74,35 28,35 C28.26,35 28.519,34.89 28.71,34.71 C28.89,34.52 29,34.26 29,34 C29,33.74 28.89,33.48 28.71,33.29 C28.33,32.92 27.648,32.92 27.29,33.29" fill="#7A693C"></path> <path d="M46,31 C46,34.314 43.314,37 40,37 C36.686,37 34,34.314 34,31 C34,27.686 36.686,25 40,25 C43.314,25 46,27.686 46,31" fill="#E74C3D"></path> <path d="M53,31 C53,34.314 50.314,37 47,37 C43.686,37 41,34.314 41,31 C41,27.686 43.686,25 47,25 C50.314,25 53,27.686 53,31" fill="#F0C41B"></path> <path d="M20.745,20 L7.255,20 C6.563,20 6,19.438 6,18.745 L6,9.255 C6,8.562 6.563,8 7.255,8 L20.745,8 C21.438,8 22,8.562 22,9.255 L22,18.745 C22,19.438 21.438,20 20.745,20" fill="#F0C41B"></path> <path d="M20.745,21 L7.255,21 C6.012,21 5,19.988 5,18.745 L5,9.255 C5,8.012 6.012,7 7.255,7 L20.745,7 C21.988,7 23,8.012 23,9.255 L23,18.745 C23,19.988 21.988,21 20.745,21 Z M7.255,9 C7.113,9 7,9.114 7,9.255 L7,18.745 C7,18.886 7.113,19 7.255,19 L20.745,19 C20.886,19 21,18.886 21,18.745 L21,9.255 C21,9.114 20.886,9 20.745,9 L7.255,9 Z" fill="#F3D55C"></path> <path d="M22,9.255 C22,8.562 21.438,8 20.745,8 L16,8 L13.255,8 C12.561,8 12,8.562 12,9.255 L12,12 L12,18.745 C12,19.438 12.561,20 13.255,20 L14.745,20 C15.438,20 16,19.438 16,18.745 L16,13.255 C16,12.562 16.562,12 17.255,12 L20.745,12 C21.438,12 22,11.438 22,10.745 L22,9.255 Z" fill="#F0C41B"></path> <path d="M14.745,21 L13.255,21 C12.012,21 11,19.988 11,18.745 L11,9.255 C11,8.012 12.012,7 13.255,7 L20.745,7 C21.988,7 23,8.012 23,9.255 L23,10.745 C23,11.988 21.988,13 20.745,13 L17.255,13 C17.113,13 17,13.114 17,13.255 L17,18.745 C17,19.988 15.988,21 14.745,21 Z M13.255,9 C13.113,9 13,9.114 13,9.255 L13,18.745 C13,18.886 13.113,19 13.255,19 L14.745,19 C14.886,19 15,18.886 15,18.745 L15,13.255 C15,12.012 16.012,11 17.255,11 L20.745,11 C20.886,11 21,10.886 21,10.745 L21,9.255 C21,9.114 20.886,9 20.745,9 L13.255,9 Z" fill="#F3D55C"></path> <path d="M16,16 L22,16" fill="#F0C41B"></path> <path d="M22,17 L16,17 C15.447,17 15,16.552 15,16 C15,15.448 15.447,15 16,15 L22,15 C22.553,15 23,15.448 23,16 C23,16.552 22.553,17 22,17" fill="#F3D55C"></path> <path d="M12,12 L6,12" fill="#F0C41B"></path> <path d="M12,13 L6,13 C5.447,13 5,12.552 5,12 C5,11.448 5.447,11 6,11 L12,11 C12.553,11 13,11.448 13,12 C13,12.552 12.553,13 12,13" fill="#F3D55C"></path> <path d="M12,16 L6,16" fill="#F0C41B"></path> <path d="M12,17 L6,17 C5.447,17 5,16.552 5,16 C5,15.448 5.447,15 6,15 L12,15 C12.553,15 13,15.448 13,16 C13,16.552 12.553,17 12,17" fill="#F3D55C"></path> </g> </g> </g> </g> </g> </g> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3>Payment Options</h3>
<p>Huge collection of elements, rich customization options, flexible layouts, and instant results!</p>
<a href="#" class="btn btn-underlined text-uppercase btn-bordered border-thin btn-bordered-gradient btn-bordered-gradient-primary font-size-12 lh-15 font-weight-medium ltr-sp-2 text-dark">
<span>
<span class="btn-txt">Discover One</span>
</span>
</a>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-4 -->
</div><!-- /.row -->
</div><!-- /.container -->
</section>
<section class="vc_row pt-90 pb-50">
<div class="container">
<div class="row">
<div class="lqd-column col-md-6">
<div id="iconbox-linked-1" class="iconbox iconbox-side iconbox-circle iconbox-md iconbox-heading-sm iconbox-icon-linked" data-animate-icon="true" data-plugin-options='{"resetOnHover":true,"color":"rgb(51, 51, 51)","hoverColor":"rgb(255, 255, 255)"}' data-shape-border="1">
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container bg-white">
<span class="iconbox-icon-hover-bg bg-gradient-primary-br"></span>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <path stroke-width="2" stroke-miterlimit="10" d="M1 7 L63 7 L63 57 L1 57 Z" ></path> <path stroke-width="2" stroke-linejoin="round" stroke-miterlimit="10" d="M32,41L25.875,45L 28,38L22,34L29.213,34L32,26L35,34L42,34L36,38L37.938,45Z" ></path> <path stroke-width="2" stroke-miterlimit="10" d="M1,15L63,15"></path> <path stroke-width="2" stroke-miterlimit="10" d="M10,11L6,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M18,11L14,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M26,11L22,11"></path> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3 class="font-weight-semibold">Brain Storming</h3>
<p>All transactions that occur on Envato Market be in U.S. dollars. If your Paypal account or funding.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
<div id="iconbox-linked-2" class="iconbox iconbox-side iconbox-circle iconbox-md iconbox-heading-sm iconbox-icon-linked" data-animate-icon="true" data-plugin-options='{"resetOnHover":true,"color":"rgb(51, 51, 51)","hoverColor":"rgb(255, 255, 255)"}' data-shape-border="1">
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container bg-white">
<span class="iconbox-icon-hover-bg bg-gradient-primary-br"></span>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <path stroke-width="2" stroke-miterlimit="10" d="M1 7 L63 7 L63 57 L1 57 Z" ></path> <path stroke-width="2" stroke-linejoin="round" stroke-miterlimit="10" d="M32,41L25.875,45L 28,38L22,34L29.213,34L32,26L35,34L42,34L36,38L37.938,45Z" ></path> <path stroke-width="2" stroke-miterlimit="10" d="M1,15L63,15"></path> <path stroke-width="2" stroke-miterlimit="10" d="M10,11L6,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M18,11L14,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M26,11L22,11"></path> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3 class="font-weight-semibold">Brain Storming</h3>
<p>All transactions that occur on Envato Market be in U.S. dollars. If your Paypal account or funding.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
<div id="iconbox-linked-3" class="iconbox iconbox-side iconbox-circle iconbox-md iconbox-heading-sm iconbox-icon-linked" data-animate-icon="true" data-plugin-options='{"resetOnHover":true,"color":"rgb(51, 51, 51)","hoverColor":"rgb(255, 255, 255)"}' data-shape-border="1">
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container bg-white">
<span class="iconbox-icon-hover-bg bg-gradient-primary-br"></span>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <path stroke-width="2" stroke-miterlimit="10" d="M1 7 L63 7 L63 57 L1 57 Z" ></path> <path stroke-width="2" stroke-linejoin="round" stroke-miterlimit="10" d="M32,41L25.875,45L 28,38L22,34L29.213,34L32,26L35,34L42,34L36,38L37.938,45Z" ></path> <path stroke-width="2" stroke-miterlimit="10" d="M1,15L63,15"></path> <path stroke-width="2" stroke-miterlimit="10" d="M10,11L6,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M18,11L14,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M26,11L22,11"></path> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3 class="font-weight-semibold">Brain Storming</h3>
<p>All transactions that occur on Envato Market be in U.S. dollars. If your Paypal account or funding.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-6 -->
<div class="lqd-column col-md-6">
<div id="iconbox-linked-4" class="iconbox iconbox-side iconbox-circle iconbox-md iconbox-heading-sm iconbox-icon-linked" data-animate-icon="true" data-plugin-options='{"resetOnHover":true,"color":"rgb(51, 51, 51)","hoverColor":"rgb(255, 255, 255)"}' data-shape-border="1">
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container bg-white">
<span class="iconbox-icon-hover-bg bg-gradient-primary-br"></span>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <path stroke-width="2" stroke-miterlimit="10" d="M1 7 L63 7 L63 57 L1 57 Z" ></path> <path stroke-width="2" stroke-linejoin="round" stroke-miterlimit="10" d="M32,41L25.875,45L 28,38L22,34L29.213,34L32,26L35,34L42,34L36,38L37.938,45Z" ></path> <path stroke-width="2" stroke-miterlimit="10" d="M1,15L63,15"></path> <path stroke-width="2" stroke-miterlimit="10" d="M10,11L6,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M18,11L14,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M26,11L22,11"></path> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3 class="font-weight-semibold">Brain Storming</h3>
<p>All transactions that occur on Envato Market be in U.S. dollars. If your Paypal account or funding.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
<div id="iconbox-linked-5" class="iconbox iconbox-side iconbox-circle iconbox-md iconbox-heading-sm iconbox-icon-linked" data-animate-icon="true" data-plugin-options='{"resetOnHover":true,"color":"rgb(51, 51, 51)","hoverColor":"rgb(255, 255, 255)"}' data-shape-border="1">
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container bg-white">
<span class="iconbox-icon-hover-bg bg-gradient-primary-br"></span>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <path stroke-width="2" stroke-miterlimit="10" d="M1 7 L63 7 L63 57 L1 57 Z" ></path> <path stroke-width="2" stroke-linejoin="round" stroke-miterlimit="10" d="M32,41L25.875,45L 28,38L22,34L29.213,34L32,26L35,34L42,34L36,38L37.938,45Z" ></path> <path stroke-width="2" stroke-miterlimit="10" d="M1,15L63,15"></path> <path stroke-width="2" stroke-miterlimit="10" d="M10,11L6,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M18,11L14,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M26,11L22,11"></path> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3 class="font-weight-semibold">Brain Storming</h3>
<p>All transactions that occur on Envato Market be in U.S. dollars. If your Paypal account or funding.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
<div id="iconbox-linked-6" class="iconbox iconbox-side iconbox-circle iconbox-md iconbox-heading-sm iconbox-icon-linked" data-animate-icon="true" data-plugin-options='{"resetOnHover":true,"color":"rgb(51, 51, 51)","hoverColor":"rgb(255, 255, 255)"}' data-shape-border="1">
<div class="iconbox-icon-wrap">
<span class="iconbox-icon-container bg-white">
<span class="iconbox-icon-hover-bg bg-gradient-primary-br"></span>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <path stroke-width="2" stroke-miterlimit="10" d="M1 7 L63 7 L63 57 L1 57 Z" ></path> <path stroke-width="2" stroke-linejoin="round" stroke-miterlimit="10" d="M32,41L25.875,45L 28,38L22,34L29.213,34L32,26L35,34L42,34L36,38L37.938,45Z" ></path> <path stroke-width="2" stroke-miterlimit="10" d="M1,15L63,15"></path> <path stroke-width="2" stroke-miterlimit="10" d="M10,11L6,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M18,11L14,11"></path> <path stroke-width="2" stroke-miterlimit="10" d="M26,11L22,11"></path> </svg>
</span>
</div><!-- /.iconbox-icon-wrap -->
<div class="contents">
<h3 class="font-weight-semibold">Brain Storming</h3>
<p>All transactions that occur on Envato Market be in U.S. dollars. If your Paypal account or funding.</p>
</div><!-- /.contents -->
</div><!-- /.iconbox -->
</div><!-- /.col-md-6 -->
</div><!-- /.row -->
</div><!-- /.container -->
</section>
</main><!-- /#content.content -->
<footer class="main-footer bg-charade pt-70" data-sticky-footer="true">
<section>
<div class="container">
<div class="row">
<div class="lqd-column col-md-3 col-sm-6">
<h3 class="widget-title text-white">Company</h3>
<ul class="lqd-custom-menu reset-ul text-white">
<li><a href="#">Home</a></li>
<li><a href="#">Product</a></li>
<li><a href="#">Customers</a></li>
<li><a href="#">Pricing</a></li>
</ul>
</div><!-- /.col-md-3 col-sm-6 -->
<div class="lqd-column col-md-3 col-sm-6">
<h3 class="widget-title text-white">Products</h3>
<ul class="lqd-custom-menu reset-ul text-white">
<li><a href="#">Company</a></li>
<li><a href="#">Jobs</a></li>
<li><a href="#">Press</a></li>
<li><a href="#">Blog</a></li>
</ul>
</div><!-- /.col-md-3 col-sm-6 -->
<div class="lqd-column col-md-3 col-sm-6">
<h3 class="widget-title text-white">Products</h3>
<p>
hello@ave.com
<br>
<br>
290 Maryam Springs 260,
Courbevoie, Paris, France
<br>
<br>
+47 213 5941 295
</p>
</div><!-- /.col-md-3 col-sm-6 -->
<div class="lqd-column col-md-3 col-sm-6">
<h3 class="widget-title text-white">Follow us</h3>
<ul class="social-icon social-icon-md">
<li><a href="#"><i class="fa fa-facebook"></i></a></li>
<li><a href="#"><i class="fa fa-twitter"></i></a></li>
<li><a href="#"><i class="fa fa-youtube-play"></i></a></li>
</ul>
<h3 class="widget-title text-white">Subscribe</h3>
<div class="ld-sf ld-sf--input-solid ld-sf--button-solid ld-sf--size-xs ld-sf--circle ld-sf--border-thin ld-sf--button-show ld-sf--button-inline">
<form id="ld_subscribe_form" class="ld_sf_form" action="https://liquid-themes.us20.list-manage.com/subscribe/post?u=7f582d555cef808a99ea001a7&id=58ab120d89" name="mc-embedded-subscribe-form" method="post">
<p class="ld_sf_paragraph pr-2">
<input type="email" class="ld_sf_text" id="mce-EMAIL" name="EMAIL" placeholder="Your email" value="">
</p>
<button type="submit" class="ld_sf_submit px-4">
<span class="submit-icon">
<i class="fa fa-angle-right"></i>
</span>
<span class="ld-sf-spinner">
<span>Sending </span>
</span>
</button>
</form>
<div class="ld_sf_response"></div>
</div><!-- /.ld-sf -->
</div><!-- /.col-md-3 col-sm-6 -->
</div><!-- /.row -->
</div><!-- /.container -->
</section>
<section class="bt-fade-white-015 pt-35 pb-35 mt-50">
<div class="container">
<div class="row">
<div class="lqd-column col-md-6">
<ul class="lqd-custom-menu reset-ul inline-nav">
<li><a href="#">Ave Guide</a></li>
<li><a href="#">Support</a></li>
<li><a href="#">Intergrations</a></li>
<li><a href="#">Community</a></li>
</ul>
</div><!-- /.col-md-6 -->
<div class="lqd-column col-md-6 text-md-right">
<p class="my-0"><span style="font-size: 15px;">© 2019 Ave theme. Made with love.</span></p>
</div><!-- /.col-md-6 text-md-right -->
</div><!-- /.row -->
</div><!-- /.container -->
</section>
</footer><!-- /.main-footer -->
</div><!-- /#wrap -->
<script src="./assets/vendors/jquery.min.js"></script>
<script src="./assets/js/theme-vendors.js"></script>
<script src="./assets/js/theme.min.js"></script>
<script src="./assets/js/liquidAjaxMailchimp.min.js"></script>
</body>
</html> | 60.835755 | 4,249 | 0.554458 |
2f36dd938cf63d15ab843e54a1ac1cd507946bf7 | 610 | java | Java | src/main/org/soya/ast/expr/MatchExpression.java | mySingleLive/soya | fcd7bacd2b61b5745d9299831085b2d1a6641914 | [
"BSD-3-Clause"
] | 23 | 2015-01-04T12:30:56.000Z | 2021-08-09T08:17:17.000Z | src/main/org/soya/ast/expr/MatchExpression.java | mySingleLive/soya | fcd7bacd2b61b5745d9299831085b2d1a6641914 | [
"BSD-3-Clause"
] | 1 | 2015-01-28T15:29:23.000Z | 2015-01-28T15:29:23.000Z | src/main/org/soya/ast/expr/MatchExpression.java | mySingleLive/soya | fcd7bacd2b61b5745d9299831085b2d1a6641914 | [
"BSD-3-Clause"
] | 4 | 2015-01-07T03:47:56.000Z | 2021-08-09T08:17:50.000Z | package org.soya.ast.expr;
/**
* @author: Jun Gong
*/
public class MatchExpression extends Expression {
private Expression expression;
private org.soya.ast.MatchBlock block;
public MatchExpression(Expression expression, org.soya.ast.MatchBlock block) {
this.expression = expression;
this.block = block;
}
public Expression getExpression() {
return expression;
}
public org.soya.ast.MatchBlock getBlock() {
return block;
}
public String toString() {
return "[match expresion: " + expression + " block: " + block + "]";
}
}
| 21.785714 | 82 | 0.639344 |
a0e19d718d87e8aa6bd9f1f501ab35754a2cc570 | 869 | sql | SQL | publication/PEAR/Mail/docs/mysql.sql | brm-martinezs/prueba_git | 7ace35ec1d4dfdad52b6fb40cc624613f66b01d4 | [
"MIT"
] | null | null | null | publication/PEAR/Mail/docs/mysql.sql | brm-martinezs/prueba_git | 7ace35ec1d4dfdad52b6fb40cc624613f66b01d4 | [
"MIT"
] | null | null | null | publication/PEAR/Mail/docs/mysql.sql | brm-martinezs/prueba_git | 7ace35ec1d4dfdad52b6fb40cc624613f66b01d4 | [
"MIT"
] | null | null | null | #
# `mail_queue`
#
CREATE TABLE mail_queue (
id bigint(20) NOT NULL default '0',
create_time datetime NOT NULL default '0000-00-00 00:00:00',
time_to_send datetime NOT NULL default '0000-00-00 00:00:00',
sent_time datetime default NULL,
id_user bigint(20) NOT NULL default '0',
ip varchar(20) NOT NULL default 'unknown',
sender varchar(50) NOT NULL default '',
recipient varchar(50) NOT NULL default '',
headers text NOT NULL,
body longtext NOT NULL,
try_sent tinyint(4) NOT NULL default '0',
delete_after_send tinyint(1) NOT NULL default '1',
PRIMARY KEY (id),
KEY id (id),
KEY time_to_send (time_to_send),
KEY id_user (id_user)
);
#
# `mail_queue_seq`
#
CREATE TABLE mail_queue_seq (
id int(10) unsigned NOT NULL auto_increment,
PRIMARY KEY (id)
);
#
# Data for `mail_queue_seq`
#
INSERT INTO mail_queue_seq (id) VALUES (1); | 23.486486 | 63 | 0.706559 |
abc65a3d5fe78c1b56cd6c05f3cdd7938d3c7f42 | 768 | asm | Assembly | tools/yasm/tests/nasm/mem.asm | fasttr-org/ftr | ddba517fb53062d5dc919c94526607bb39bff4b9 | [
"BSD-3-Clause-Clear"
] | null | null | null | tools/yasm/tests/nasm/mem.asm | fasttr-org/ftr | ddba517fb53062d5dc919c94526607bb39bff4b9 | [
"BSD-3-Clause-Clear"
] | null | null | null | tools/yasm/tests/nasm/mem.asm | fasttr-org/ftr | ddba517fb53062d5dc919c94526607bb39bff4b9 | [
"BSD-3-Clause-Clear"
] | null | null | null | [BITS 16]
a32 mov ax, [eax]
mov ax, [eax]
mov ax, [di]
mov ax, [di-si+si]
mov ax, [bx-(bx-di)-2]
mov ax, [2*(bx+di)-bx-2*di]
mov ax, [2*(bx*2+di)-bx-2*bx-2*di]
mov ax, [2*(bx*2)-bx-2*bx+di]
mov ax, [(bx+di)*(bx+di)-bx*bx-2*bx*di-di*di+di]
mov ax, [(blah2-blah)*di]
blah
inc ax
blah2
mov ax, [(blah2-blah)*di]
[BITS 32]
mov ax, [si]
mov ax, [esi+400]
mov ax, [byte esi+400]
a16 mov ax, [esi+eax]
mov ax, [400-esi]
mov ax, [esi-eax]
mov ax, [(esi+400)+200]
mov ax, [esi+400-200]
mov ax, [eax+400/200]
mov ax, [400/200+eax]
mov ax, [eax+'a']
mov ax, [eax+eax-eax+eax-ebx+ebx]
mov ax, [eax*5]
mov ax, [10]
mov ax, [edx]
mov ax, [edx*2]
mov ax, [nosplit edx*2]
mov ax, [edx*1]
mov ax, [nosplit edx*1]
mov ax, [edx*3]
mov ax, [esi+ebp]
mov ax, [ebp+esi]
mov ax, [ebp*1+esi]
| 19.2 | 48 | 0.597656 |
945d3b973437cd986a7a921cf6dcd90dd3963597 | 1,281 | cpp | C++ | DataStructure/String/String-1/String-1.cpp | radii-dev/ps_study | a638156430b8c2717a3d6694324a6bb3306d9016 | [
"MIT"
] | null | null | null | DataStructure/String/String-1/String-1.cpp | radii-dev/ps_study | a638156430b8c2717a3d6694324a6bb3306d9016 | [
"MIT"
] | null | null | null | DataStructure/String/String-1/String-1.cpp | radii-dev/ps_study | a638156430b8c2717a3d6694324a6bb3306d9016 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int strmatching(string src, char cmp[10]) {
int cmplen = 0;
int srcptr = 0;
int count = 0;
int result = 0;
for (int i = 0; i < 10; i++)
if (cmp[i] != 0) cmplen++;
srcptr = cmplen - 1;
while (srcptr < src.length()) {
int skip = 0;
bool matched = false;
for (int i = cmplen - 1; i >= 0; i--) {
if (src.at(srcptr) == cmp[i]) {
skip = cmplen - 1 - i;
matched = true;
break;
}
}
if (matched == false) {
skip = cmplen;
if (count > 0) {
srcptr += (count + 1);
count = 0;
}
else srcptr += skip;
}
else if ((matched == true) && (skip == count)) {
srcptr--;
count++;
}
else {
if (count > 0) {
srcptr += (count + 1);
count = 0;
}
else srcptr += skip;
}
if (count == cmplen) result++;
/*
if ((count > 0) && ((matched == false) || ((matched == true) && (skip != count)))) {
srcptr += (count + 1);
count = 0;
}
else srcptr += skip;
*/
}
return result;
}
int main() {
int num = 0;
for (int i = 0; i < 10; i++) {
string srcstr;
char cmpstr[10] = { 0, };
cin >> num;
cin >> cmpstr;
cin >> srcstr;
int result = 0;
result = strmatching(srcstr, cmpstr);
std::cout << "#" << num << " " << result << endl;
}
} | 18.838235 | 86 | 0.501171 |
28dcdfc91f564eccb0de09ce2c714a697bb220db | 20,604 | cpp | C++ | docs/template_plugin/tests/functional/op_reference/gather_nd.cpp | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 1 | 2019-09-22T01:05:07.000Z | 2019-09-22T01:05:07.000Z | docs/template_plugin/tests/functional/op_reference/gather_nd.cpp | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 58 | 2020-11-06T12:13:45.000Z | 2022-03-28T13:20:11.000Z | docs/template_plugin/tests/functional/op_reference/gather_nd.cpp | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 2 | 2019-09-20T01:33:37.000Z | 2019-09-20T08:42:11.000Z | // Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include "openvino/op/gather_nd.hpp"
#include "base_reference_test.hpp"
using namespace reference_tests;
using namespace ov;
namespace {
struct GatherNDParams {
GatherNDParams(
const Tensor& dataTensor, const Tensor& indicesTensor, int64_t batchDims,
const Tensor& expectedTensor, const std::string& testcaseName = "") :
dataTensor(dataTensor), indicesTensor(indicesTensor), batchDims(batchDims),
expectedTensor(expectedTensor), testcaseName(testcaseName) {}
Tensor dataTensor;
Tensor indicesTensor;
int32_t batchDims;
Tensor expectedTensor;
std::string testcaseName;
};
class ReferenceGatherND5Test : public testing::TestWithParam<GatherNDParams>, public CommonReferenceTest {
public:
void SetUp() override {
auto params = GetParam();
function = CreateFunction(params);
inputData = {params.dataTensor.data, params.indicesTensor.data};
refOutData = {params.expectedTensor.data};
}
static std::string getTestCaseName(const testing::TestParamInfo<GatherNDParams>& obj) {
auto param = obj.param;
std::ostringstream result;
result << "dType=" << param.dataTensor.type;
result << "_dShape=" << param.dataTensor.shape;
result << "_aType=" << param.indicesTensor.type;
result << "_aShape=" << param.indicesTensor.shape;
result << "_bDims=" << param.batchDims;
result << "_eType=" << param.expectedTensor.type;
if (param.testcaseName != "") {
result << "_eShape=" << param.expectedTensor.shape;
result << "_=" << param.testcaseName;
} else {
result << "_eShape=" << param.expectedTensor.shape;
}
return result.str();
}
private:
static std::shared_ptr<Model> CreateFunction(const GatherNDParams& params) {
std::shared_ptr<Model> function;
const auto data = std::make_shared<op::v0::Parameter>(params.dataTensor.type,
PartialShape{params.dataTensor.shape});
const auto indices = std::make_shared<op::v0::Parameter>(params.indicesTensor.type,
PartialShape{params.indicesTensor.shape});
std::shared_ptr<op::v5::GatherND> gatherND;
if (params.batchDims == 0) {
gatherND = std::make_shared<op::v5::GatherND>(data, indices);
} else {
gatherND = std::make_shared<op::v5::GatherND>(data, indices, params.batchDims);
}
function = std::make_shared<ov::Model>(NodeVector {gatherND}, ParameterVector {data, indices});
return function;
}
};
TEST_P(ReferenceGatherND5Test, CompareWithRefs) {
Exec();
}
template <element::Type_t IN_ET>
std::vector<GatherNDParams> generateParams() {
using T = typename element_type_traits<IN_ET>::value_type;
std::vector<GatherNDParams> params {
GatherNDParams(
Tensor(IN_ET, {3, 3}, std::vector<T>{10, 11, 12, 13, 14, 15, 16, 17, 18}),
Tensor(element::i32, {2}, std::vector<int32_t>{1, 2}),
0,
Tensor(IN_ET, {}, std::vector<T>{15}),
"gather_nd_single_indices"),
GatherNDParams(
Tensor(IN_ET, {2, 2}, std::vector<T>{10, 11, 12, 13}),
Tensor(element::i32, {2, 2}, std::vector<int32_t>{0, 0, 1, 1}),
0,
Tensor(IN_ET, {2}, std::vector<T>{10, 13}),
"gather_nd_scalar_from_2d"),
GatherNDParams(
Tensor(IN_ET, {2, 2}, std::vector<T>{10, 11, 12, 13}),
Tensor(element::i32, {2, 1}, std::vector<int32_t>{1, 0}),
0,
Tensor(IN_ET, {2, 2}, std::vector<T>{12, 13, 10, 11}),
"gather_nd_1d_from_2d"),
GatherNDParams(
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{10, 11, 12, 13, 20, 21, 22, 23}),
Tensor(element::i32, {2, 3}, std::vector<int32_t>{0, 0, 1, 1, 0, 1}),
0,
Tensor(IN_ET, {2}, std::vector<T>{11, 21}),
"gather_nd_scalar_from_3d"),
GatherNDParams(
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{10, 11, 12, 13, 20, 21, 22, 23}),
Tensor(element::i32, {2, 2}, std::vector<int32_t>{0, 1, 1, 0}),
0,
Tensor(IN_ET, {2, 2}, std::vector<T>{12, 13, 20, 21}),
"gather_nd_1d_from_3d"),
GatherNDParams(
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{10, 11, 12, 13, 20, 21, 22, 23}),
Tensor(element::i32, {1, 1}, std::vector<int32_t>{1}),
0,
Tensor(IN_ET, {1, 2, 2}, std::vector<T>{20, 21, 22, 23}),
"gather_nd_2d_from_3d"),
GatherNDParams(
Tensor(IN_ET, {2, 2}, std::vector<T>{10, 11, 12, 13}),
Tensor(element::i32, {2, 1, 2}, std::vector<int32_t>{0, 0, 0, 1}),
0,
Tensor(IN_ET, {2, 1}, std::vector<T>{10, 11}),
"gather_nd_batch_scalar_from_2d"),
GatherNDParams(
Tensor(IN_ET, {2, 2}, std::vector<T>{10, 11, 12, 13}),
Tensor(element::i32, {2, 1, 1}, std::vector<int32_t>{1, 0}),
0,
Tensor(IN_ET, {2, 1, 2}, std::vector<T>{12, 13, 10, 11}),
"gather_nd_batch_1d_from_2d"),
GatherNDParams(
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{10, 11, 12, 13, 20, 21, 22, 23}),
Tensor(element::i32, {2, 2, 3}, std::vector<int32_t>{0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0}),
0,
Tensor(IN_ET, {2, 2}, std::vector<T>{11, 21, 13, 22}),
"gather_nd_batch_scalar_from_3d"),
GatherNDParams(
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{10, 11, 12, 13, 20, 21, 22, 23}),
Tensor(element::i32, {2, 2, 2}, std::vector<int32_t>{0, 1, 1, 0, 0, 0, 1, 1}),
0,
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{12, 13, 20, 21, 10, 11, 22, 23}),
"gather_nd_batch_1d_from_3d"),
GatherNDParams(
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{10, 11, 12, 13, 20, 21, 22, 23}),
Tensor(element::i32, {2, 2, 2}, std::vector<int32_t>{0, -1, -1, 0, 0, 0, 1, 1}),
0,
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{12, 13, 20, 21, 10, 11, 22, 23}),
"gather_nd_batch_1d_from_3d_negative"),
GatherNDParams(
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{10, 11, 12, 13, 20, 21, 22, 23}),
Tensor(element::i32, {2, 1, 1}, std::vector<int32_t>{1, 0}),
0,
Tensor(IN_ET, {2, 1, 2, 2}, std::vector<T>{20, 21, 22, 23, 10, 11, 12, 13}),
"gather_nd_batch_2d_from_3d"),
GatherNDParams(
Tensor(IN_ET, {2, 3, 4}, std::vector<T>{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}),
Tensor(element::i32, {2, 1}, std::vector<int32_t>{1, 0}),
1,
Tensor(IN_ET, {2, 4}, std::vector<T>{5, 6, 7, 8, 13, 14, 15, 16}),
"gather_nd_batch_dims1"),
GatherNDParams(
Tensor(IN_ET, {2, 3, 4, 2}, std::vector<T>{
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48}),
Tensor(element::i32, {2, 3, 3, 2}, std::vector<int32_t>{
1, 0, 3, 1, 2, 1, 0, 1, 1, 1, 2, 0, 3, 0, 3, 1, 2, 1,
2, 0, 1, 1, 3, 1, 1, 1, 2, 0, 2, 0, 0, 0, 3, 1, 3, 1}),
2,
Tensor(IN_ET, {6, 3}, std::vector<T>{
3, 8, 6, 10, 12, 13, 23, 24, 22, 29, 28, 32, 36, 37, 37, 41, 48, 48}),
"gather_nd_batch_dims2"),
GatherNDParams(
Tensor(IN_ET, {2, 3, 4}, std::vector<T>{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}),
Tensor(element::i32, {2, 3, 1, 1}, std::vector<int32_t>{1, 0, 2, 0, 2, 2}),
2,
Tensor(IN_ET, {6, 1}, std::vector<T>{2, 5, 11, 13, 19, 23}),
"gather_nd_batch_dims2_lead_dims"),
};
return params;
}
std::vector<GatherNDParams> generateCombinedParams() {
const std::vector<std::vector<GatherNDParams>> generatedParams {
generateParams<element::Type_t::i8>(),
generateParams<element::Type_t::i16>(),
generateParams<element::Type_t::i32>(),
generateParams<element::Type_t::i64>(),
generateParams<element::Type_t::u8>(),
generateParams<element::Type_t::u16>(),
generateParams<element::Type_t::u32>(),
generateParams<element::Type_t::u64>(),
generateParams<element::Type_t::bf16>(),
generateParams<element::Type_t::f16>(),
generateParams<element::Type_t::f32>(),
generateParams<element::Type_t::f64>(),
};
std::vector<GatherNDParams> combinedParams;
for (const auto& params : generatedParams) {
combinedParams.insert(combinedParams.end(), params.begin(), params.end());
}
return combinedParams;
}
INSTANTIATE_TEST_SUITE_P(smoke_GatherND_With_Hardcoded_Refs, ReferenceGatherND5Test,
testing::ValuesIn(generateCombinedParams()), ReferenceGatherND5Test::getTestCaseName);
class ReferenceGatherND8Test : public testing::TestWithParam<GatherNDParams>, public CommonReferenceTest {
public:
void SetUp() override {
auto params = GetParam();
function = CreateFunction(params);
inputData = {params.dataTensor.data, params.indicesTensor.data};
refOutData = {params.expectedTensor.data};
}
static std::string getTestCaseName(const testing::TestParamInfo<GatherNDParams>& obj) {
auto param = obj.param;
std::ostringstream result;
result << "dType=" << param.dataTensor.type;
result << "_dShape=" << param.dataTensor.shape;
result << "_aType=" << param.indicesTensor.type;
result << "_aShape=" << param.indicesTensor.shape;
result << "_bDims=" << param.batchDims;
result << "_eType=" << param.expectedTensor.type;
if (param.testcaseName != "") {
result << "_eShape=" << param.expectedTensor.shape;
result << "_=" << param.testcaseName;
} else {
result << "_eShape=" << param.expectedTensor.shape;
}
return result.str();
}
private:
static std::shared_ptr<Model> CreateFunction(const GatherNDParams& params) {
std::shared_ptr<Model> function;
const auto data = std::make_shared<op::v0::Parameter>(params.dataTensor.type,
PartialShape{params.dataTensor.shape});
const auto indices = std::make_shared<op::v0::Parameter>(params.indicesTensor.type,
PartialShape{params.indicesTensor.shape});
std::shared_ptr<op::v8::GatherND> gatherND;
if (params.batchDims == 0) {
gatherND = std::make_shared<op::v8::GatherND>(data, indices);
} else {
gatherND = std::make_shared<op::v8::GatherND>(data, indices, params.batchDims);
}
function = std::make_shared<ov::Model>(NodeVector {gatherND}, ParameterVector {data, indices});
return function;
}
};
TEST_P(ReferenceGatherND8Test, CompareWithRefs) {
Exec();
}
template <element::Type_t IN_ET>
std::vector<GatherNDParams> generateParams_v8() {
using T = typename element_type_traits<IN_ET>::value_type;
std::vector<GatherNDParams> params {
GatherNDParams(
Tensor(IN_ET, {3, 3}, std::vector<T>{10, 11, 12, 13, 14, 15, 16, 17, 18}),
Tensor(element::i32, {2}, std::vector<int32_t>{1, 2}),
0,
Tensor(IN_ET, {}, std::vector<T>{15}),
"gather_nd_8_single_indices"),
GatherNDParams(
Tensor(IN_ET, {2, 2}, std::vector<T>{10, 11, 12, 13}),
Tensor(element::i32, {2, 2}, std::vector<int32_t>{0, 0, 1, 1}),
0,
Tensor(IN_ET, {2}, std::vector<T>{10, 13}),
"gather_nd_8_scalar_from_2d"),
GatherNDParams(
Tensor(IN_ET, {2, 2}, std::vector<T>{10, 11, 12, 13}),
Tensor(element::i32, {2, 1}, std::vector<int32_t>{1, 0}),
0,
Tensor(IN_ET, {2, 2}, std::vector<T>{12, 13, 10, 11}),
"gather_nd_8_1d_from_2d"),
GatherNDParams(
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{10, 11, 12, 13, 20, 21, 22, 23}),
Tensor(element::i32, {2, 3}, std::vector<int32_t>{0, 0, 1, 1, 0, 1}),
0,
Tensor(IN_ET, {2}, std::vector<T>{11, 21}),
"gather_nd_8_scalar_from_3d"),
GatherNDParams(
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{10, 11, 12, 13, 20, 21, 22, 23}),
Tensor(element::i32, {2, 2}, std::vector<int32_t>{0, 1, 1, 0}),
0,
Tensor(IN_ET, {2, 2}, std::vector<T>{12, 13, 20, 21}),
"gather_nd_8_1d_from_3d"),
GatherNDParams(
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{10, 11, 12, 13, 20, 21, 22, 23}),
Tensor(element::i32, {1, 1}, std::vector<int32_t>{1}),
0,
Tensor(IN_ET, {1, 2, 2}, std::vector<T>{20, 21, 22, 23}),
"gather_nd_8_2d_from_3d"),
GatherNDParams(
Tensor(IN_ET, {2, 2}, std::vector<T>{10, 11, 12, 13}),
Tensor(element::i32, {2, 1, 2}, std::vector<int32_t>{0, 0, 0, 1}),
0,
Tensor(IN_ET, {2, 1}, std::vector<T>{10, 11}),
"gather_nd_8_batch_scalar_from_2d"),
GatherNDParams(
Tensor(IN_ET, {2, 2}, std::vector<T>{10, 11, 12, 13}),
Tensor(element::i32, {2, 1, 1}, std::vector<int32_t>{1, 0}),
0,
Tensor(IN_ET, {2, 1, 2}, std::vector<T>{12, 13, 10, 11}),
"gather_nd_8_batch_1d_from_2d"),
GatherNDParams(
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{10, 11, 12, 13, 20, 21, 22, 23}),
Tensor(element::i32, {2, 2, 3}, std::vector<int32_t>{0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0}),
0,
Tensor(IN_ET, {2, 2}, std::vector<T>{11, 21, 13, 22}),
"gather_nd_8_batch_scalar_from_3d"),
GatherNDParams(
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{10, 11, 12, 13, 20, 21, 22, 23}),
Tensor(element::i32, {2, 2, 2}, std::vector<int32_t>{0, 1, 1, 0, 0, 0, 1, 1}),
0,
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{12, 13, 20, 21, 10, 11, 22, 23}),
"gather_nd_8_batch_1d_from_3d"),
GatherNDParams(
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{10, 11, 12, 13, 20, 21, 22, 23}),
Tensor(element::i32, {2, 2, 2}, std::vector<int32_t>{0, -1, -1, 0, 0, 0, 1, 1}),
0,
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{12, 13, 20, 21, 10, 11, 22, 23}),
"gather_nd_8_batch_1d_from_3d_negative"),
GatherNDParams(
Tensor(IN_ET, {2, 2, 2}, std::vector<T>{10, 11, 12, 13, 20, 21, 22, 23}),
Tensor(element::i32, {2, 1, 1}, std::vector<int32_t>{1, 0}),
0,
Tensor(IN_ET, {2, 1, 2, 2}, std::vector<T>{20, 21, 22, 23, 10, 11, 12, 13}),
"gather_nd_8_batch_2d_from_3d"),
GatherNDParams(
Tensor(IN_ET, {2, 3, 4}, std::vector<T>{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}),
Tensor(element::i32, {2, 1}, std::vector<int32_t>{1, 0}),
1,
Tensor(IN_ET, {2, 4}, std::vector<T>{5, 6, 7, 8, 13, 14, 15, 16}),
"gather_nd_8_batch_dims1"),
GatherNDParams(
Tensor(IN_ET, {2, 3, 4, 2}, std::vector<T>{
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48}),
Tensor(element::i32, {2, 3, 3, 2}, std::vector<int32_t>{
1, 0, 3, 1, 2, 1, 0, 1, 1, 1, 2, 0, 3, 0, 3, 1, 2, 1,
2, 0, 1, 1, 3, 1, 1, 1, 2, 0, 2, 0, 0, 0, 3, 1, 3, 1}),
2,
Tensor(IN_ET, {2, 3, 3}, std::vector<T>{
3, 8, 6, 10, 12, 13, 23, 24, 22, 29, 28, 32, 36, 37, 37, 41, 48, 48}),
"gather_8_nd_batch_dims2"),
GatherNDParams(
Tensor(IN_ET, {2, 3, 4}, std::vector<T>{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}),
Tensor(element::i32, {2, 3, 1, 1}, std::vector<int32_t>{1, 0, 2, 0, 2, 2}),
2,
Tensor(IN_ET, {2, 3, 1}, std::vector<T>{2, 5, 11, 13, 19, 23}),
"gather_8_nd_batch_dims2_lead_dims"),
GatherNDParams(
Tensor(IN_ET, {2, 3, 4, 5}, std::vector<T>{
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110,
111, 112, 113, 114, 115, 116, 117, 118, 119, 120}),
Tensor(element::i32, {2, 3, 2, 1}, std::vector<int32_t>{
1, 0, 2, 0, 2, 0, 1, 0, 2, 0, 2, 0}),
2,
Tensor(IN_ET, {2, 3, 2, 5}, std::vector<T>{
6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 31, 32, 33, 34, 35, 21, 22, 23,
24, 25, 51, 52, 53, 54, 55, 41, 42, 43, 44, 45, 66, 67, 68, 69,
70, 61, 62, 63, 64, 65, 91, 92, 93, 94, 95, 81, 82, 83, 84, 85,
111, 112, 113, 114, 115, 101, 102, 103, 104, 105}),
"gather_8_nd_batch_dims2_non_scalar_slices"),
};
return params;
}
std::vector<GatherNDParams> generateCombinedParams_v8() {
const std::vector<std::vector<GatherNDParams>> generatedParams {
generateParams_v8<element::Type_t::i8>(),
generateParams_v8<element::Type_t::i16>(),
generateParams_v8<element::Type_t::i32>(),
generateParams_v8<element::Type_t::i64>(),
generateParams_v8<element::Type_t::u8>(),
generateParams_v8<element::Type_t::u16>(),
generateParams_v8<element::Type_t::u32>(),
generateParams_v8<element::Type_t::u64>(),
generateParams_v8<element::Type_t::bf16>(),
generateParams_v8<element::Type_t::f16>(),
generateParams_v8<element::Type_t::f32>(),
generateParams_v8<element::Type_t::f64>(),
};
std::vector<GatherNDParams> combinedParams;
for (const auto& params : generatedParams) {
combinedParams.insert(combinedParams.end(), params.begin(), params.end());
}
return combinedParams;
}
INSTANTIATE_TEST_SUITE_P(smoke_GatherND_With_Hardcoded_Refs, ReferenceGatherND8Test,
testing::ValuesIn(generateCombinedParams_v8()), ReferenceGatherND8Test::getTestCaseName);
} // namespace
| 50.253659 | 110 | 0.50165 |
56e6073819d7f593738d086ae6ae2ef985cbb168 | 2,718 | tsx | TypeScript | packages/react-ticket-designer/src/objects/ShapeObject.tsx | michel-maier/libs-js | 72db5104d0c07133aa11d59549bc2a72712efc9a | [
"MIT"
] | null | null | null | packages/react-ticket-designer/src/objects/ShapeObject.tsx | michel-maier/libs-js | 72db5104d0c07133aa11d59549bc2a72712efc9a | [
"MIT"
] | 30 | 2020-02-05T10:48:56.000Z | 2022-02-18T11:02:09.000Z | packages/react-ticket-designer/src/objects/ShapeObject.tsx | michel-maier/libs-js | 72db5104d0c07133aa11d59549bc2a72712efc9a | [
"MIT"
] | 2 | 2020-11-16T08:01:52.000Z | 2020-12-03T14:25:34.000Z | import React, {ComponentType, forwardRef} from 'react';
import {buildStyle} from '../utils';
export const ShapeObject: ComponentType<ShapeObjectProps> = forwardRef(({object, svgComponent: SvgComp, ...props}: ShapeObjectProps, ref: any) => {
switch ((object.data || {}).shape) {
case 'rectangle':
return (
<svg ref={ref} {...props} style={buildStyle(object, {width: 400, height: 250})}>
<filter id="grayscale">
<feColorMatrix type="matrix" values=".33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 1 0" />
</filter>
<rect filter={'url(#grayscale)'} width="100%" height="100%" style={{fill: 'rgb(0,0,255)'}} />
</svg>
);
case 'square':
return (
<svg ref={ref} {...props} style={buildStyle(object, {width: 300, height: 300})}>
<filter id="grayscale">
<feColorMatrix type="matrix" values=".33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 1 0" />
</filter>
<rect filter={'url(#grayscale)'} width="100%" height="100%" style={{fill: 'rgb(0,0,255)'}} />
</svg>
);
case 'circle':
return (
<svg ref={ref} {...props} style={buildStyle(object, {width: 300, height: 300})}>
<filter id="grayscale">
<feColorMatrix type="matrix" values=".33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 1 0" />
</filter>
<circle filter={'url(#grayscale)'} cx="50%" cy="50%" r="50%" fill="red" />
</svg>
);
case 'line':
return (
<svg ref={ref} {...props} style={buildStyle(object, {width: 300, height: 5})}>
<filter id="grayscale">
<feColorMatrix type="matrix" values=".33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 1 0" />
</filter>
<line filter={'url(#grayscale)'} x1="0" y1="50%" x2="100%" y2="50%" style={{stroke: 'rgb(255,0,0)', strokeWidth: '50%'}} />
</svg>
);
case 'svg-file':
return (
<div ref={ref} {...props} style={buildStyle(object, {width: 300, height: 300})}>
<SvgComp name={(object.data || {}).name} style={{width: '100%', height: '100%'}} />
</div>
);
default:
return null;
}
});
export interface ShapeObjectProps {
object?: any,
[key: string]: any,
}
export default ShapeObject | 46.862069 | 147 | 0.458057 |
8c72be2a7f3c5ee6d35029e3702b2c6380d42882 | 2,248 | lua | Lua | release/songPathRnn/model/batcher/TypeBatcher.lua | plataKwon/KPRN | 248133e37b636ddd56e3c4c21a6a8510ab21e912 | [
"MIT"
] | 258 | 2019-01-22T02:58:17.000Z | 2022-03-31T06:41:15.000Z | release/songPathRnn/model/batcher/TypeBatcher.lua | plataKwon/KPRN | 248133e37b636ddd56e3c4c21a6a8510ab21e912 | [
"MIT"
] | 10 | 2019-02-28T15:18:52.000Z | 2020-12-17T09:20:44.000Z | release/songPathRnn/model/batcher/TypeBatcher.lua | plataKwon/KPRN | 248133e37b636ddd56e3c4c21a6a8510ab21e912 | [
"MIT"
] | 93 | 2019-02-13T01:56:38.000Z | 2022-03-24T03:43:44.000Z | --********************************************************************
--Source: https://github.com/rajarshd/ChainsofReasoning
--See Chains of Reasoning over Entities, Relations, and Text using Recurrent Neural Networks
--https://arxiv.org/abs/1607.01426
--**********************************************************************
local TypeBatcher = torch.class('TypeBatcher')
function TypeBatcher:__init(fileName, batchSize, shuffle, genNeg, vocabSize)
print('Loading data from '..fileName)
local loadedData = torch.load(fileName)
self.entities = loadedData.entities
self.types = loadedData.types
self.batchSize = batchSize
self.doShuffle = shuffle or false
self.curStart = 1
self.dataSize = self.entities:size(1)
self.genNeg = genNeg
self.vocabSize = vocabSize
self:shuffle()
end
function TypeBatcher:shuffle()
if self.doShuffle then
local inds = torch.randperm(self.types:size(1)):long()
self.entities = self.entities:index(1,inds)
self.types = self.types:index(1,inds)
end
end
function TypeBatcher:genNegExamples(posEntities)
if posEntities == nil then return nil end
local negCount = posEntities:size(1) --number of positive examples
local negBatch = torch.rand(negCount):mul(self.vocabSize):floor():add(1):view(posEntities:size())
return negBatch
end
function TypeBatcher:get_batch(batcher, vocabSize)
local pos_entities, types = batcher:getBatch()
if pos_entities == nil then return nil end
local neg_entities = gen_neg(pos_entities, vocabSize)
print(neg_entities:size())
return {pos_entities, types, neg_entities}
end
function TypeBatcher:getBatch()
local startIndex = self.curStart
if startIndex > self.dataSize then return nil end
local endIndex = math.min(startIndex+self.batchSize-1, self.dataSize)
local currBatchSize = endIndex - startIndex + 1
local batchEntities = self.entities:narrow(1, startIndex, currBatchSize)
local batchTypes = self.types:narrow(1, startIndex, currBatchSize)
local batchNegEntities = nil
if self.genNeg then batchNegEntities = self:genNegExamples(batchEntities) end
self.curStart = endIndex + 1
return {batchEntities, batchTypes, batchNegEntities}
end
function TypeBatcher:reset()
self.curStart = 1
if self.doShuffle then self:shuffle() end
end | 35.68254 | 98 | 0.724199 |
0b61cadfab29026982ee72c19310998fdc907aa6 | 1,312 | py | Python | aio_binance/futures/usdt/api/methods/stream.py | GRinvest/aiobinance | 49ce0bdf955d9fa9363c41eb9cec3da2f121e611 | [
"MIT"
] | 5 | 2022-01-30T19:32:16.000Z | 2022-03-12T15:00:13.000Z | aio_binance/futures/usdt/api/methods/stream.py | GRinvest/aio-binance-library | 49ce0bdf955d9fa9363c41eb9cec3da2f121e611 | [
"MIT"
] | null | null | null | aio_binance/futures/usdt/api/methods/stream.py | GRinvest/aio-binance-library | 49ce0bdf955d9fa9363c41eb9cec3da2f121e611 | [
"MIT"
] | null | null | null |
class DataStream:
async def create_private_listen_key(self) -> dict:
"""**Create a ListenKey (USER_STREAM)**
Notes:
``POST /fapi/v1/listenKey``
See Also:
https://binance-docs.github.io/apidocs/futures/en/#start-user-data-stream-user_stream
"""
return await self._fetch(
'POST',
'create_private_listen_key',
'/fapi/v1/listenKey'
)
async def update_private_listen_key(self) -> dict:
"""**Ping/Keep-alive a ListenKey (USER_STREAM)**
Notes:
``PUT /fapi/v1/listenKey``
See Also:
https://binance-docs.github.io/apidocs/futures/en/#keepalive-user-data-stream-user_stream
"""
return await self._fetch(
'PUT',
'update_private_listen_key',
'/fapi/v1/listenKey'
)
async def delete_private_listen_key(self) -> dict:
"""**Close a ListenKey (USER_STREAM)**
Notes:
``DELETE /fapi/v1/listenKey``
See Also:
https://binance-docs.github.io/apidocs/futures/en/#close-user-data-stream-user_stream
"""
return await self._fetch(
'DELETE',
'delete_private_listen_key',
'/fapi/v1/listenKey'
)
| 29.155556 | 101 | 0.55564 |
1f3572904fb140215861324a7b9eff1661f8c3e8 | 718 | cpp | C++ | src/solenoid.cpp | aryan-gupta/libbluepill | aefa7a83ea566e392b3e59945b13564fd112959a | [
"MIT"
] | null | null | null | src/solenoid.cpp | aryan-gupta/libbluepill | aefa7a83ea566e392b3e59945b13564fd112959a | [
"MIT"
] | null | null | null | src/solenoid.cpp | aryan-gupta/libbluepill | aefa7a83ea566e392b3e59945b13564fd112959a | [
"MIT"
] | null | null | null |
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/gpio.h>
#include "solenoid.hpp"
bool Solenoid::SETUP = false;
Solenoid::Solenoid() {
if (!SETUP) {
gpio_solenoids_setup();
SETUP = true;
}
}
void Solenoid::gpio_solenoids_setup() {
rcc_periph_clock_enable(RCC_GPIOA);
rcc_periph_clock_enable(RCC_GPIOB);
gpio_set_mode(
GPIOA,
GPIO_MODE_OUTPUT_2_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL,
GPIO11 | GPIO12 | GPIO15
);
gpio_set_mode(
GPIOB,
GPIO_MODE_OUTPUT_2_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL,
GPIO3 | GPIO4 | GPIO5
);
}
void Solenoid::set_high(mask_t mask) {
gpio_toggle(GPIOB, GPIO3 | GPIO4 | GPIO5);
}
void Solenoid::set_low(mask_t mask) {
gpio_toggle(GPIOB, GPIO3 | GPIO4 | GPIO5);
} | 17.512195 | 43 | 0.728412 |
3c524e02f0c133cb1a7fa3c33d577e7cbdda79be | 272 | lua | Lua | MMOCoreORB/bin/scripts/object/custom_content/tangible/collection/col_hoth_meteorite_01.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/bin/scripts/object/custom_content/tangible/collection/col_hoth_meteorite_01.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/bin/scripts/object/custom_content/tangible/collection/col_hoth_meteorite_01.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z |
object_tangible_collection_col_hoth_meteorite_01 = object_tangible_collection_shared_col_hoth_meteorite_01:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_col_hoth_meteorite_01, "object/tangible/collection/col_hoth_meteorite_01.iff") | 54.4 | 133 | 0.904412 |
5beb8bdfdcf93cc74939a7e201c2ff58b11a17f1 | 1,376 | cs | C# | Samples~/Demos/Walking Around Playground/Scripts/SimpleCharacterController.cs | H-man/Hairibar.Ragdoll | abef2b00d29523a99baf078550ed8e9f8adba890 | [
"MIT"
] | 60 | 2020-10-29T13:38:36.000Z | 2022-02-24T15:23:20.000Z | Samples~/Demos/Walking Around Playground/Scripts/SimpleCharacterController.cs | H-man/Hairibar.Ragdoll | abef2b00d29523a99baf078550ed8e9f8adba890 | [
"MIT"
] | 4 | 2020-10-10T08:41:43.000Z | 2021-05-27T17:37:16.000Z | Samples~/Demos/Walking Around Playground/Scripts/SimpleCharacterController.cs | H-man/Hairibar.Ragdoll | abef2b00d29523a99baf078550ed8e9f8adba890 | [
"MIT"
] | 10 | 2020-11-14T11:49:57.000Z | 2022-03-09T09:48:41.000Z | using UnityEngine;
namespace Hairibar.Ragdoll.Demo
{
[RequireComponent(typeof(Rigidbody), typeof(Collider))]
public class SimpleCharacterController : MonoBehaviour
{
public float speed = 10;
public float rotationSpeed = 60;
public float blendTreeDamping = 0.1f;
[System.NonSerialized] public float verticalInput;
[System.NonSerialized] public float horizontalInput;
Rigidbody rb;
Animator animator;
private void FixedUpdate()
{
Vector3 currentVelocity = rb.velocity;
Vector3 velocity = verticalInput * new Vector3(0, 0, speed);
velocity.y = currentVelocity.y;
rb.velocity = rb.rotation * velocity;
Quaternion deltaRotation = Quaternion.Euler(0, horizontalInput * rotationSpeed * Time.deltaTime, 0);
rb.MoveRotation(deltaRotation * rb.rotation);
animator?.SetFloat("Running", verticalInput, blendTreeDamping, Time.deltaTime);
}
private void Awake()
{
rb = GetComponent<Rigidbody>();
animator = GetComponentInChildren<Animator>();
ConfigureRigidbody();
}
private void ConfigureRigidbody()
{
rb.isKinematic = false;
rb.constraints = RigidbodyConstraints.FreezeRotation;
}
}
}
| 26.980392 | 112 | 0.618459 |
6b21a8b3d34f1b930f5002ba4715c4d9a67ebc85 | 2,693 | html | HTML | www/learn/08-my-hobbies.html | TerrariaIssues/Web101 | 1db8f49ab3e0fd09a9a064549b52bb5eb3b9f3b3 | [
"MIT"
] | null | null | null | www/learn/08-my-hobbies.html | TerrariaIssues/Web101 | 1db8f49ab3e0fd09a9a064549b52bb5eb3b9f3b3 | [
"MIT"
] | null | null | null | www/learn/08-my-hobbies.html | TerrariaIssues/Web101 | 1db8f49ab3e0fd09a9a064549b52bb5eb3b9f3b3 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset=charset="UTF-8">
<title>CCarta</title>
<link rel="stylesheet" type="text/css" href="css/normalize.css">
<link rel="stylesheet" type="text/css" href="css/your-style-sheet-name.css">
<link rel="stylesheet" type="text/css" href="css/hobbies.css">
</head>
<body>
<main>
<h1>My Hobbies</h1>
<img src="img/books.jpeg" width=275px height=250px>
<img align="right" src="img/tux.jpeg" width=50px height=50px>
<ol>
<li>Technology</li>
<li>Reading</li>
<li>Automotive</li>
</ol>
<p>That's pretty general pal, can
you go into a bit more depth for me?
</p>
<h2>Sure</h2>
<ul>
<li>Unix Machines and Keyboards</li>
<li>Classic Literature</li>
<ul>
<li>Sometimes I will read contemporary stuff</li>
</ul>
<li>Car maintenance, modification, car shows, and a general admiration
of automotive excellence.
</li>
</ul>
<p>To expand a bit. I enjoy working on and using Unix machines, and participating in the community.
I have built keyboards and quite like them. Currently daily a 65% with gateron black inks.
<br><br>
As far as reading goes, I still consider myself new to the hobby, with around 20+
books under my belt. I have mostly read classic literature, including <i>Notes From Underground</i>,
and <i>Brave New World</i>. I have recently finished <i>Infinite Jest</i> and am currently
reading <i>Moby Dick</i>
<br><br>
For auto, I am a student with not much money or a personal garage.
I currently daily drive a ford focus, no serious power, I cannot afford
to build a reliable AND powerful car, much less as a daily driver. I still
love my car, and cars in general. I feel lucky to call Connecticut my home,
since it is home to both <i>Dreamride</i> and <i>Caffeine
& Carburetors</i>, two amazing car shows local to our very own state.
If you like cars, <i>Caffeine & Carburetors</i> in New Canaan, CT, is an incredible show,
and you would be foolish to miss it. (Check them out at link below)
</p>
<a href="https://caffeineandcarburetors.com/" target="_blank">Caffeine and Carburetors</a>
<br><img src="img/IMG-0779.jpg" width=200px>
<img src="img/IMG-0786.jpg" width=200px>
<img src="img/IMG-0818.jpg" width=200px height=150px>
</main>
</body>
</html> | 47.245614 | 113 | 0.594876 |
01b9498abbbd13a04c13067ae8dc8447fc653045 | 10,203 | swift | Swift | PinVid/PinVid/CreateClips/RangeSlider.swift | iOS-Connect/HackathonFeb2017 | 21e2e180c7389996de1ead36292333e461a47b02 | [
"MIT"
] | 2 | 2017-02-25T05:37:03.000Z | 2017-02-26T18:02:06.000Z | PinVid/PinVid/CreateClips/RangeSlider.swift | iOS-Connect/HackathonFeb2017 | 21e2e180c7389996de1ead36292333e461a47b02 | [
"MIT"
] | 24 | 2017-02-25T18:48:13.000Z | 2017-04-02T18:29:59.000Z | PinVid/PinVid/CreateClips/RangeSlider.swift | iOS-Connect/HackathonFeb2017 | 21e2e180c7389996de1ead36292333e461a47b02 | [
"MIT"
] | 1 | 2017-08-10T04:22:16.000Z | 2017-08-10T04:22:16.000Z | //
// RangeSlider.swift
// CustomSliderExample
//
// Created by William Archimede on 04/09/2014.
// Copyright (c) 2014 HoodBrains. All rights reserved.
//
import UIKit
import QuartzCore
class RangeSliderTrackLayer: CALayer {
weak var rangeSlider: RangeSlider?
override func draw(in ctx: CGContext) {
guard let slider = rangeSlider else {
return
}
// Clip
let cornerRadius = bounds.height * slider.curvaceousness / 2.0
let path = UIBezierPath(roundedRect: bounds, cornerRadius: cornerRadius)
ctx.addPath(path.cgPath)
// Fill the track
ctx.setFillColor(slider.trackTintColor.cgColor)
ctx.addPath(path.cgPath)
ctx.fillPath()
// Fill the highlighted range
ctx.setFillColor(slider.trackHighlightTintColor.cgColor)
let lowerValuePosition = CGFloat(slider.positionForValue(slider.lowerValue))
let upperValuePosition = CGFloat(slider.positionForValue(slider.upperValue))
let rect = CGRect(x: lowerValuePosition, y: 0.0, width: upperValuePosition - lowerValuePosition, height: bounds.height)
ctx.fill(rect)
}
}
class RangeSliderThumbLayer: CALayer {
var highlighted: Bool = false {
didSet {
setNeedsDisplay()
}
}
weak var rangeSlider: RangeSlider?
var strokeColor: UIColor = UIColor.gray {
didSet {
setNeedsDisplay()
}
}
var lineWidth: CGFloat = 0.5 {
didSet {
setNeedsDisplay()
}
}
override func draw(in ctx: CGContext) {
guard let slider = rangeSlider else {
return
}
let thumbFrame = bounds.insetBy(dx: 2.0, dy: 2.0)
let cornerRadius = thumbFrame.height * slider.curvaceousness / 2.0
let thumbPath = UIBezierPath(roundedRect: thumbFrame, cornerRadius: cornerRadius)
// Fill
ctx.setFillColor(slider.thumbTintColor.cgColor)
ctx.addPath(thumbPath.cgPath)
ctx.fillPath()
// Outline
ctx.setStrokeColor(strokeColor.cgColor)
ctx.setLineWidth(lineWidth)
ctx.addPath(thumbPath.cgPath)
ctx.strokePath()
if highlighted {
ctx.setFillColor(UIColor.blue.cgColor)
ctx.addPath(thumbPath.cgPath)
ctx.fillPath()
}
}
}
@IBDesignable
class RangeSlider: UIControl {
var activeThumb:Int = 0
@IBInspectable var minimumValue: Double = 0.0 {
willSet(newValue) {
assert(newValue < maximumValue, "RangeSlider: minimumValue should be lower than maximumValue")
}
didSet {
updateLayerFrames()
}
}
@IBInspectable var maximumValue: Double = 1.0 {
willSet(newValue) {
assert(newValue > minimumValue, "RangeSlider: maximumValue should be greater than minimumValue")
}
didSet {
updateLayerFrames()
}
}
@IBInspectable var lowerValue: Double = 0.2 {
didSet {
if lowerValue < minimumValue {
lowerValue = minimumValue
}
updateLayerFrames()
}
}
@IBInspectable var upperValue: Double = 0.8 {
didSet {
if upperValue > maximumValue {
upperValue = maximumValue
}
updateLayerFrames()
}
}
var gapBetweenThumbs: Double {
return 0.5 * Double(thumbWidth) * (maximumValue - minimumValue) / Double(bounds.width)
}
@IBInspectable var trackTintColor: UIColor = UIColor(white: 0.9, alpha: 1.0) {
didSet {
trackLayer.setNeedsDisplay()
}
}
@IBInspectable var trackHighlightTintColor: UIColor = UIColor(red: 0.0, green: 0.45, blue: 0.94, alpha: 1.0) {
didSet {
trackLayer.setNeedsDisplay()
}
}
@IBInspectable var thumbTintColor: UIColor = UIColor.white {
didSet {
lowerThumbLayer.setNeedsDisplay()
upperThumbLayer.setNeedsDisplay()
}
}
@IBInspectable var thumbBorderColor: UIColor = UIColor.gray {
didSet {
lowerThumbLayer.strokeColor = thumbBorderColor
upperThumbLayer.strokeColor = thumbBorderColor
}
}
@IBInspectable var thumbBorderWidth: CGFloat = 0.5 {
didSet {
lowerThumbLayer.lineWidth = thumbBorderWidth
upperThumbLayer.lineWidth = thumbBorderWidth
}
}
@IBInspectable var curvaceousness: CGFloat = 1.0 {
didSet {
if curvaceousness < 0.0 {
curvaceousness = 0.0
}
if curvaceousness > 1.0 {
curvaceousness = 1.0
}
trackLayer.setNeedsDisplay()
lowerThumbLayer.setNeedsDisplay()
upperThumbLayer.setNeedsDisplay()
}
}
fileprivate var previouslocation = CGPoint()
fileprivate let trackLayer = RangeSliderTrackLayer()
fileprivate let lowerThumbLayer = RangeSliderThumbLayer()
fileprivate let upperThumbLayer = RangeSliderThumbLayer()
fileprivate var thumbWidth: CGFloat {
return CGFloat(bounds.height)
}
override var frame: CGRect {
didSet {
updateLayerFrames()
}
}
override init(frame: CGRect) {
super.init(frame: frame)
initializeLayers()
}
required init?(coder: NSCoder) {
super.init(coder: coder)
initializeLayers()
}
override func layoutSublayers(of: CALayer) {
super.layoutSublayers(of:layer)
updateLayerFrames()
}
fileprivate func initializeLayers() {
layer.backgroundColor = UIColor.clear.cgColor
trackLayer.rangeSlider = self
trackLayer.contentsScale = UIScreen.main.scale
layer.addSublayer(trackLayer)
lowerThumbLayer.rangeSlider = self
lowerThumbLayer.contentsScale = UIScreen.main.scale
layer.addSublayer(lowerThumbLayer)
upperThumbLayer.rangeSlider = self
upperThumbLayer.contentsScale = UIScreen.main.scale
layer.addSublayer(upperThumbLayer)
}
func updateLayerFrames() {
CATransaction.begin()
CATransaction.setDisableActions(true)
trackLayer.frame = bounds.insetBy(dx: 0.0, dy: bounds.height/3)
trackLayer.setNeedsDisplay()
let lowerThumbCenter = CGFloat(positionForValue(lowerValue))
lowerThumbLayer.frame = CGRect(x: lowerThumbCenter - thumbWidth/2.0, y: 0.0, width: thumbWidth, height: thumbWidth)
lowerThumbLayer.setNeedsDisplay()
let upperThumbCenter = CGFloat(positionForValue(upperValue))
upperThumbLayer.frame = CGRect(x: upperThumbCenter - thumbWidth/2.0, y: 0.0, width: thumbWidth, height: thumbWidth)
upperThumbLayer.setNeedsDisplay()
CATransaction.commit()
}
func positionForValue(_ value: Double) -> Double {
return Double(bounds.width - thumbWidth) * (value - minimumValue) /
(maximumValue - minimumValue) + Double(thumbWidth/2.0)
}
func boundValue(_ value: Double, toLowerValue lowerValue: Double, upperValue: Double) -> Double {
return min(max(value, lowerValue), upperValue)
}
// MARK: - Touches
override func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
previouslocation = touch.location(in: self)
// Hit test the thumb layers
if lowerThumbLayer.frame.contains(previouslocation) {
lowerThumbLayer.highlighted = true
activeThumb = 1
} else if upperThumbLayer.frame.contains(previouslocation) {
upperThumbLayer.highlighted = true
activeThumb = 2
} else {
activeThumb = 0
}
print("active thumb \(activeThumb)")
if activeThumb == 1 {
lowerThumbLayer.strokeColor = UIColor.blue
upperThumbLayer.strokeColor = UIColor.white
} else if activeThumb == 2 {
upperThumbLayer.strokeColor = UIColor.blue
lowerThumbLayer.strokeColor = UIColor.white
} else {
lowerThumbLayer.strokeColor = UIColor.white
upperThumbLayer.strokeColor = UIColor.white
}
return lowerThumbLayer.highlighted || upperThumbLayer.highlighted
}
override func continueTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
let location = touch.location(in: self)
// Determine by how much the user has dragged
let deltaLocation = Double(location.x - previouslocation.x)
let deltaValue = (maximumValue - minimumValue) * deltaLocation / Double(bounds.width - bounds.height)
previouslocation = location
if activeThumb == 1 {
upperThumbLayer.highlighted = false
} else if activeThumb == 2 {
lowerThumbLayer.highlighted = false
}
// Update the values
if lowerThumbLayer.highlighted {
lowerValue = boundValue(lowerValue + deltaValue, toLowerValue: minimumValue, upperValue: upperValue - gapBetweenThumbs)
} else if upperThumbLayer.highlighted {
upperValue = boundValue(upperValue + deltaValue, toLowerValue: lowerValue + gapBetweenThumbs, upperValue: maximumValue)
}
sendActions(for: .valueChanged)
return true
}
override func endTracking(_ touch: UITouch?, with event: UIEvent?) {
if activeThumb == 1 {
upperThumbLayer.highlighted = false
lowerThumbLayer.highlighted = true
} else if activeThumb == 2 {
upperThumbLayer.highlighted = true
lowerThumbLayer.highlighted = false
} else {
upperThumbLayer.highlighted = false
lowerThumbLayer.highlighted = false
}
}
}
| 31.106707 | 131 | 0.602274 |
0bfee6856c9ac6025d32955105bd4d2cc0e41d1d | 1,416 | js | JavaScript | src/services/post.service.js | oliveirabalsa/api-node-koa-mongo | 652d795aea38904c5572793c4ce0e50d55173041 | [
"MIT"
] | 3 | 2020-12-30T22:07:01.000Z | 2020-12-31T03:41:49.000Z | src/services/post.service.js | oliveirabalsa/api-node-koa-mongo | 652d795aea38904c5572793c4ce0e50d55173041 | [
"MIT"
] | 4 | 2021-03-02T01:29:39.000Z | 2022-03-03T23:17:11.000Z | src/services/post.service.js | oliveirabalsa/api-node-koa-mongo | 652d795aea38904c5572793c4ce0e50d55173041 | [
"MIT"
] | null | null | null | const dateFilter = require('../_shared/query/query-date.helper');
const paginator = require('../_shared/query/query-pagination.helper');
const mongoose = require('mongoose')
const { Post } = require('../models/post.model');
const { Comment } = require('../models/comment.model');
class Controller {
async create(payload) {
return Post.create(payload);
}
async update(id, payload) {
return Post.updateOne(mongoose.mongo.ObjectId(id), payload);
}
async list(query) {
const filters = { ...dateFilter(query) };
if (query.title && query.title.length >= 4) {
filters.title = {
$regex: new RegExp(`.*${query.title}.*`, 'gi')
}
}
if (query.tags) {
filters.tags = {
$in: query.tags.split(',')
}
}
const { skip, limit } = paginator(query);
return Post.find(query)
.skip(skip)
.limit(limit);
}
async listComments(postId, query) {
const { skip, limit } = paginator(query);
return Comment.find({ post: postId })
.skip(skip)
.limit(limit);
}
async getById(id) {
return Post.findOne({ _id: mongoose.Types.ObjectId(id) });
}
async remove(id) {
return Post.delete({ _id: mongoose.mongo.ObjectId(id) });
}
}
module.exports = new Controller(); | 25.745455 | 70 | 0.54661 |
4b4bb6c028668130113150ba2be82bfa8b0deda6 | 789 | html | HTML | src/app/components/book-list/book-list.component.html | dixita0607/fcc-booktrading-app | 0c64a7d5337f8727074b4da88d44575206d59b4a | [
"MIT"
] | null | null | null | src/app/components/book-list/book-list.component.html | dixita0607/fcc-booktrading-app | 0c64a7d5337f8727074b4da88d44575206d59b4a | [
"MIT"
] | null | null | null | src/app/components/book-list/book-list.component.html | dixita0607/fcc-booktrading-app | 0c64a7d5337f8727074b4da88d44575206d59b4a | [
"MIT"
] | null | null | null | <div *ngIf="bookList && bookList.length > 0" class="book-list">
<div *ngFor="let book of bookList" class="book">
<div class="book-details">
<div class="book-name">{{book.name}}</div>
<div class="owner">Owner - {{book.owner.fullName}}</div>
<div class="location">Location - {{book.owner.city}}, {{book.owner.state}}</div>
</div>
<button *ngIf="book.owner._id === authService.user._id" type="button" (click)="deleteBook(book._id)"
[disabled]="loading">
Delete
</button>
<button type="button" *ngIf="book.owner._id !== authService.user._id" (click)="requestTrade(book._id)"
[disabled]="loading">
Trade
</button>
</div>
</div>
<div *ngIf="bookList && bookList.length <= 0" class="no-books">No books found</div>
| 41.526316 | 106 | 0.608365 |
0daa605577cec939dc7bcaa13e237f92bf80a4c0 | 146 | sql | SQL | migrations/authgear/20211207160728-add_custom_attributes.sql | mmrath/authgear-server | c4b3663430efe8fd484d7f2c328af4c692b34544 | [
"Apache-2.0"
] | null | null | null | migrations/authgear/20211207160728-add_custom_attributes.sql | mmrath/authgear-server | c4b3663430efe8fd484d7f2c328af4c692b34544 | [
"Apache-2.0"
] | null | null | null | migrations/authgear/20211207160728-add_custom_attributes.sql | mmrath/authgear-server | c4b3663430efe8fd484d7f2c328af4c692b34544 | [
"Apache-2.0"
] | null | null | null | -- +migrate Up
ALTER TABLE _auth_user ADD COLUMN custom_attributes jsonb;
-- +migrate Down
ALTER TABLE _auth_user DROP COLUMN custom_attributes;
| 24.333333 | 58 | 0.808219 |
378b87835cd208de2fd7f570ab51e06d6ee735c9 | 40,552 | lua | Lua | awesome/.config/awesome/themes/matemers/theme.lua | mrowegawd/dotfiles | 455fdb75b61d49d8a40768406d7d1ef163c820cd | [
"MIT"
] | null | null | null | awesome/.config/awesome/themes/matemers/theme.lua | mrowegawd/dotfiles | 455fdb75b61d49d8a40768406d7d1ef163c820cd | [
"MIT"
] | null | null | null | awesome/.config/awesome/themes/matemers/theme.lua | mrowegawd/dotfiles | 455fdb75b61d49d8a40768406d7d1ef163c820cd | [
"MIT"
] | null | null | null | -- REQUIRE ====================================================== {{{
local theme_name = "matemers"
local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local xrdb = xresources.get_current_theme()
local gears = require("gears")
local vicious = require("vicious")
-- local gfs = require("gears.filesystem")
local beautiful = require("beautiful")
local naughty = require("naughty")
local lain = require("lain")
local markup = lain.util.markup
local awful = require("awful")
local wibox = require("wibox")
-- }}}
local theme = {}
-- VARS THEME --------------------------------------------------- {{{
local icon_path = os.getenv("HOME") .. "/.config/awesome/themes/" .. theme_name .. "/icons/"
local layout_icon_path = os.getenv("HOME") .. "/.config/awesome/themes/" .. theme_name .. "/layout/"
local titlebar_icon_path = os.getenv("HOME") .. "/.config/awesome/themes/" .. theme_name .. "/titlebar/"
local taglist_icon_path = os.getenv("HOME") .. "/.config/awesome/themes/" .. theme_name .. "/taglist/"
local tip = titlebar_icon_path --alias to save time
local lip = layout_icon_path --alias to save time
theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/" .. theme_name
theme.wallpaper = theme.dir .. "/wall.jpg"
theme.xbackground = xrdb.background or "#1D1F28"
theme.xforeground = xrdb.foreground or "#FDFDFD"
theme.xcolor0 = xrdb.color0 or "#282A36"
theme.xcolor1 = xrdb.color1 or "#F37F97"
theme.xcolor2 = xrdb.color2 or "#5ADECD"
theme.xcolor3 = xrdb.color3 or "#F2A272"
theme.xcolor4 = xrdb.color4 or "#8897F4"
theme.xcolor5 = xrdb.color5 or "#C574DD"
theme.xcolor6 = xrdb.color6 or "#79E6F3"
theme.xcolor7 = xrdb.color7 or "#FDFDFD"
theme.xcolor8 = xrdb.color8 or "#414458"
theme.xcolor9 = xrdb.color9 or "#FF4971"
theme.xcolor10 = xrdb.color10 or "#18E3C8"
theme.xcolor11 = xrdb.color11 or "#FF8037"
theme.xcolor12 = xrdb.color12 or "#556FFF"
theme.xcolor13 = xrdb.color13 or "#B043D1"
theme.xcolor14 = xrdb.color14 or "#3FDCEE"
theme.xcolor15 = xrdb.color15 or "#BEBEC1"
local font_name = "Liberation Mono"
local font_size = "12"
local border_gap = dpi(3)
local border_radius = dpi(6)
local border_width = dpi(0)
local menu_border_width = border_width
local menu_height = dpi(35)
local menu_width = dpi(180)
-- Fonts ===========================================================
theme.font = font_name .. " " .. font_size
theme.font_bold = font_name .. " " .. "Bold" .. " " .. font_size
theme.font_italic = font_name .. " " .. "Italic" .. " " .. font_size
theme.font_bold_italic = font_name .. " " .. "Bold Italic" .. " " .. font_size
theme.font_big = font_name .. " " .. "Bold" .. " 16"
theme.iconFont = "Font Awesome 5 Free Regular 9"
theme.iconFont8 = "Font Awesome 5 Free 11"
theme.iconFont10 = "Font Awesome 5 Free 10"
theme.materialIconFont = "Material Icons Regular 10"
theme.font_big = "Material Icons Regular " .. " 20"
theme.taglist_font = "Mplus 1p Medium 8.7"
theme.bg_dark = theme.xbackground
theme.bg_normal = theme.xcolor0
theme.bg_focus = theme.xcolor8
theme.bg_urgent = theme.xcolor8
theme.bg_minimize = theme.xcolor8
theme.bg_systray = theme.xcolor8
theme.fg_normal = theme.xcolor8
theme.fg_focus = theme.xcolor4
theme.fg_urgent = theme.xcolor3
theme.fg_minimize = theme.xcolor8
-- Gaps ===========================================
theme.useless_gap = border_gap
theme.border_width = border_width
theme.border_normal = theme.xbackground
theme.border_focus = theme.bg_focus
theme.border_marked = theme.fg_focus
-- theme.border_color = border_color
-- theme.border_radius = border_radius
-- Menu ===========================================
-- Variables set for theming the menu:
-- menu_[bg|fg]_[normal|focus]
-- menu_[border_color|border_width]
theme.awesome_icon = icon_path.."awesome.png"
theme.menu_submenu_icon = icon_path.."submenu.png"
theme.menu_height = menu_height
theme.menu_width = menu_width
theme.menu_bg_normal = theme.xcolor0
theme.menu_fg_normal = theme.xcolor7
theme.menu_bg_focus = theme.xcolor8 .. "55"
theme.menu_fg_focus = theme.xcolor7
theme.menu_border_width = menu_border_width
theme.menu_border_color = theme.menu_bg_focus
-- Titlebars ======================================
-- (Titlebar items can be customized in titlebars.lua)
theme.titlebars_enabled = true
theme.titlebar_size = dpi(2)
theme.titlebar_title_enabled = false
theme.titlebar_font = "sans bold 9"
-- Window title alignment: left, right, center
theme.titlebar_title_align = "center"
-- Titlebar position: top, bottom, left, right
theme.titlebar_position = "top"
-- Use 4 titlebars around the window to imitate borders
theme.titlebars_imitate_borders = false
theme.titlebar_bg = theme.xcolor0
-- theme.titlebar_bg = theme.xbackground
-- theme.titlebar_bg_focus = theme.xcolor12
-- theme.titlebar_bg_normal = theme.xcolor8
theme.titlebar_fg_focus = theme.color9
theme.titlebar_fg_normal = theme.xcolor8
--theme.titlebar_fg = theme.xcolor7
theme.snap_bg = theme.bg_focus
if theme.border_width == 0 then
theme.snap_border_width = dpi(8)
else
theme.snap_border_width = dpi(theme.border_width * 2)
end
theme.tooltip_fg = theme.fg_normal
theme.tooltip_bg = theme.bg_normal
-- }}}
-- WIBAR -------------------------------------------------------- {{{
-- (Bar items can be customized in bars.lua)
theme.wibar_position = "bottom"
theme.wibar_ontop = false
theme.wibar_height = dpi(35)
theme.wibar_fg = theme.xcolor7
theme.wibar_bg = theme.xcolor0
--theme.wibar_opacity = 0.7
theme.wibar_border_color = theme.xcolor0
theme.wibar_border_width = dpi(0)
theme.wibar_border_radius = dpi(0)
--theme.wibar_width = screen_width - theme.screen_margin * 4 -theme.wibar_border_width * 2
-- theme.wibar_width = dpi(565)
--theme.wibar_x = screen_width / 2 - theme.wibar_width - theme.screen_margin * 2
--theme.wibar_x = theme.screen_margin * 2
--theme.wibar_x = screen_width - theme.wibar_width - theme.wibar_border_width * 2 - theme.screen_margin * 2
--theme.wibar_y = theme.screen_margin * 2
-- }}}
-- Recolor Layout icons:
theme = theme_assets.recolor_layout(theme, theme.fg_normal)
--TASKLIST ----------------------------------------------------- {{{
theme.tasklist_disable_icon = true
theme.tasklist_plain_task_name = true
theme.tasklist_bg_focus = theme.xcolor0
theme.tasklist_fg_focus = theme.xcolor4
theme.tasklist_bg_normal = theme.xcolor0
theme.tasklist_fg_normal = theme.xcolor15
theme.tasklist_bg_minimize = theme.xcolor0
theme.tasklist_fg_minimize = theme.fg_minimize
theme.tasklist_bg_urgent = theme.xcolor0
theme.tasklist_fg_urgent = theme.xcolor3
theme.tasklist_spacing = 10
theme.tasklist_align = "center"
-- Recolor titlebar icons:
--theme.taglist_item_roundness = 0
theme.taglist_item_roundness = theme.border_radius
-- Generate taglist squares:
local taglist_square_size = dpi(3)
theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
taglist_square_size, theme.fg_focus
)
theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
taglist_square_size, theme.fg_normal
)
-- }}}
-- SIDEBAR ------------------------------------------------------ {{{
-- (Sidebar items can be customized in sidebar.lua)
theme.sidebar_bg = theme.xcolor0
theme.sidebar_fg = theme.xcolor7
theme.sidebar_opacity = 1
-- theme.sidebar_position = "left" -- left or right
theme.sidebar_width = dpi(300)
theme.sidebar_height = screen_height
theme.sidebar_x = 0
theme.sidebar_y = 0
theme.sidebar_border_radius = 0
-- }}}
-- PROMPT ------------------------------------------------------- {{{
theme.prompt_fg = theme.xcolor14
-- }}}
-- EXIT SCREEN -------------------------------------------------- {{{
theme.exit_screen_bg = theme.xcolor0 .. "CC"
theme.exit_screen_fg = theme.xcolor7
theme.exit_screen_font = "sans 20"
theme.exit_screen_icon_size = dpi(180)
-- Exit screen icons
theme.exit_icon = icon_path .. "exit.png"
theme.poweroff_icon = icon_path .. "poweroff.png"
theme.reboot_icon = icon_path .. "reboot.png"
theme.suspend_icon = icon_path .. "suspend.png"
theme.lock_icon = icon_path .. "lock.png"
theme.hibernate_icon = icon_path .. "hibernate.png"
-- theme.sidebar_border_radius = theme.border_radius
-- }}}
-- TITLEBAR ----------------------------------------------------- {{{
theme.titlebar_close_button_normal = tip .. "/close_normal.svg"
theme.titlebar_close_button_focus = tip .. "/close_focus.svg"
theme.titlebar_minimize_button_normal = tip .. "/minimize_normal.svg"
theme.titlebar_minimize_button_focus = tip .. "/minimize_focus.svg"
theme.titlebar_ontop_button_normal_inactive = tip .. "/ontop_normal_inactive.svg"
theme.titlebar_ontop_button_focus_inactive = tip .. "/ontop_focus_inactive.svg"
theme.titlebar_ontop_button_normal_active = tip .. "/ontop_normal_active.svg"
theme.titlebar_ontop_button_focus_active = tip .. "/ontop_focus_active.svg"
theme.titlebar_sticky_button_normal_inactive = tip .. "/sticky_normal_inactive.svg"
theme.titlebar_sticky_button_focus_inactive = tip .. "/sticky_focus_inactive.svg"
theme.titlebar_sticky_button_normal_active = tip .. "/sticky_normal_active.svg"
theme.titlebar_sticky_button_focus_active = tip .. "/sticky_focus_active.svg"
theme.titlebar_floating_button_normal_inactive = tip .. "/floating_normal_inactive.svg"
theme.titlebar_floating_button_focus_inactive = tip .. "/floating_focus_inactive.svg"
theme.titlebar_floating_button_normal_active = tip .. "/floating_normal_active.svg"
theme.titlebar_floating_button_focus_active = tip .. "/floating_focus_active.svg"
theme.titlebar_maximized_button_normal_inactive = tip .. "/maximized_normal_inactive.svg"
theme.titlebar_maximized_button_focus_inactive = tip .. "/maximized_focus_inactive.svg"
theme.titlebar_maximized_button_normal_active = tip .. "/maximized_normal_active.svg"
theme.titlebar_maximized_button_focus_active = tip .. "/maximized_focus_active.svg"
-- (hover)
theme.titlebar_close_button_normal_hover = tip .. "close_normal_hover.svg"
theme.titlebar_close_button_focus_hover = tip .. "close_focus_hover.svg"
theme.titlebar_minimize_button_normal_hover = tip .. "minimize_normal_hover.svg"
theme.titlebar_minimize_button_focus_hover = tip .. "minimize_focus_hover.svg"
theme.titlebar_ontop_button_normal_inactive_hover = tip .. "ontop_normal_inactive_hover.svg"
theme.titlebar_ontop_button_focus_inactive_hover = tip .. "ontop_focus_inactive_hover.svg"
theme.titlebar_ontop_button_normal_active_hover = tip .. "ontop_normal_active_hover.svg"
theme.titlebar_ontop_button_focus_active_hover = tip .. "ontop_focus_active_hover.svg"
theme.titlebar_sticky_button_normal_inactive_hover = tip .. "sticky_normal_inactive_hover.svg"
theme.titlebar_sticky_button_focus_inactive_hover = tip .. "sticky_focus_inactive_hover.svg"
theme.titlebar_sticky_button_normal_active_hover = tip .. "sticky_normal_active_hover.svg"
theme.titlebar_sticky_button_focus_active_hover = tip .. "sticky_focus_active_hover.svg"
theme.titlebar_floating_button_normal_inactive_hover = tip .. "floating_normal_inactive_hover.svg"
theme.titlebar_floating_button_focus_inactive_hover = tip .. "floating_focus_inactive_hover.svg"
theme.titlebar_floating_button_normal_active_hover = tip .. "floating_normal_active_hover.svg"
theme.titlebar_floating_button_focus_active_hover = tip .. "floating_focus_active_hover.svg"
theme.titlebar_maximized_button_normal_inactive_hover = tip .. "maximized_normal_inactive_hover.svg"
theme.titlebar_maximized_button_focus_inactive_hover = tip .. "maximized_focus_inactive_hover.svg"
theme.titlebar_maximized_button_normal_active_hover = tip .. "maximized_normal_active_hover.svg"
theme.titlebar_maximized_button_focus_active_hover = tip .. "maximized_focus_active_hover.svg"
-- }}}
-- LAYOUT ------------------------------------------------------- {{{
theme.layout_fairh = lip .. "fair.svg"
theme.layout_fairv = lip .. "fair.svg"
theme.layout_floating = lip .. "floating.svg"
theme.layout_magnifier = lip .. "magnifier.svg"
theme.layout_max = lip .. "max.svg"
theme.layout_fullscreen = lip .. "fullscreen.svg"
theme.layout_tilebottom = lip .. "tilebottom.svg"
theme.layout_tileleft = lip .. "tileleft.svg"
theme.layout_tile = lip .. "tile.svg"
theme.layout_tiletop = lip .. "tiletop.svg"
theme.layout_spiral = lip .. "spiral.svg"
theme.layout_dwindle = lip .. "dwindlew.svg"
theme.layout_cornernw = lip .. "cornernw.svg"
theme.layout_cornerne = lip .. "cornerne.svg"
theme.layout_cornersw = lip .. "cornersw.svg"
theme.layout_cornerse = lip .. "cornerse.svg"
-- }}}
-- TOOLTIP ------------------------------------------------------ {{{
theme.tooltip_fg = theme.xcolor9
theme.tooltip_bg = theme.xbackground
theme.tooltip_border_color = theme.border_focus
-- }}}
-- NOTIFICATIONS ------------------------------------------------ {{{
-- ============================
-- Note: Some of these options are ignored by my custom
-- notification widget_template
-- ============================
-- Position: bottom_left, bottom_right, bottom_middle,
-- top_left, top_right, top_middle
theme.notification_position = "top_left"
theme.notification_border_width = theme.border_width
theme.notification_fg = theme.xforeground
theme.notification_bg = theme.xbackground
theme.notification_border_color = theme.menu_border_color
theme.notification_icon_size = 80
theme.notification_opacity = 9
theme.notification_max_width = 600
theme.notification_max_height = 400
theme.notification_margin = 20
-- theme.notification_shape = function(cr, w, h)
-- gears.shape.rounded_rect(cr, w, h, border_radius or 0)
-- end
naughty.config.presets.normal = {
font = "TamzenForPowerline 12",
fg = theme.notification_fg,
bg = theme.notification_bg,
border_width = theme.notification_border_width,
margin = theme.notification_margin,
timeout = 10,
}
naughty.config.presets.low = {
font = "sans 12",
fg = theme.notification_fg,
bg = theme.notification_bg,
border_width = theme.notification_border_width,
margin = theme.notification_margin,
timeout = 10,
}
naughty.config.presets.ok = {
font = "sans 12",
fg = theme.xcolor4,
bg = theme.notification_bg,
border_width = theme.notification_border_width,
margin = theme.notification_margin,
timeout = 10,
}
naughty.config.presets.info = {
font = "sans bold 12",
fg = theme.xcolor5,
bg = theme.notification_bg,
border_width = theme.notification_border_width,
margin = theme.notification_margin,
timeout = 10,
}
naughty.config.presets.warn = {
font = "sans bold 15",
fg = theme.xcolor7,
bg = theme.notification_bg,
border_width = theme.notification_border_width,
margin = theme.notification_margin,
timeout = 10,
}
naughty.config.presets.critical = {
font = "sans bold 15",
fg = theme.xcolor7,
bg = theme.xcolor2,
border_width = theme.notification_border_width,
margin = theme.notification_margin,
timeout = 0,
}
-- }}}
-- WIDGET THEME ================================================= {{{
-- Mpd-icon ----
theme.widget_music = icon_path .. "muted.png"
theme.widget_music_on = icon_path .. "music.png"
theme.bottom_bar = icon_path .. "bottom_bar.png"
theme.mpdl = icon_path .. "editor.png"
theme.nex = icon_path .. "ram.png"
theme.prev = icon_path .. "ram.png"
theme.stop = icon_path .. "start.png"
theme.pause = icon_path .. "muted.png"
theme.play = icon_path .. "start.png"
-- Menu-Icon ---
theme.awesome_menu = icon_path .. "awesome.png"
theme.awesome_callrofi = icon_path .. "manual.png"
theme.awesome_browser = icon_path .. "firefox.png"
theme.awesome_filemanager = icon_path .. "files.png"
theme.awesome_term = icon_path .. "terminal.png"
theme.awesome_search = icon_path .. "search.png"
theme.awesome_exit = icon_path .. "exit.png"
-- }}}
-- MISC ========================================================= {{{
-- awful.util.tagnames = {" ", "", "", "", "", "", "", "", "" }
awful.util.tagnames = {"1", "2", "3", "4", "5" }
local function format_time(s)
local seconds = tonumber(s)
if seconds then
return string.format("%d:%.2d", math.floor(seconds/60), seconds%60)
else
return 0
end
end
-- }}}
-- WID.SEPARATOR ------------------------------------------------ {{{
local spaceH10 = wibox.widget {
widget = wibox.widget.separator,
orientation = "vertical",
forced_width = 100,
thickness = 10,
color = "#00000000",
}
-- Separator
local vert_sep = wibox.widget {
widget = separator,
orientation = 'vertical',
border_width = 2,
color = '#000000',
}
-- }}}
-- WID.TEMP ----------------------------------------------------- {{{
widget_temp = lain.widget.temp({
tempfile = TEMPFILE,
settings = function ()
widget:set_markup(markup.font(theme.font, "") .. markup.font(theme.font, " " .. coretemp_now .. "° "))
end
})
-- }}}
-- WID.MPD ------------------------------------------------------ {{{
-- mpd toggle --------------------------- {{{
theme.mpd_toggle = wibox.widget.textbox()
vicious.register(
theme.mpd_toggle,
vicious.widgets.mpd,
function(widget, args)
local label = {["Play"] = "", ["Pause"] = "", ["Stop"] = "" }
return ("<span font=\"".. theme.iconFont .."\">%s</span> "):format(label[args["{state}"]])
end)
theme.mpd_toggle:buttons(awful.util.table.join(
awful.button({}, 1, function()
os.execute("mpc toggle")
vicious.force({theme.mpdwidget, theme.mpd_prev, theme.mpd_toggle, theme.mpd_next})
end),
awful.button({}, 3, function()
os.execute("mpc stop")
vicious.force({theme.mpdwidget, theme.mpd_prev, theme.mpd_toggle, theme.mpd_next})
end)
))
-- }}]
--- }}}
-- mpd prev ----------------------------- {{{
theme.mpd_prev = wibox.widget.textbox()
vicious.register(
theme.mpd_prev,
vicious.widgets.mpd,
function(widget, args)
if args["{state}"] == "Stop" then
return " "
else
return (" <span font=\"".. theme.iconFont .."\"></span> ")
end
end)
theme.mpd_prev:buttons(awful.util.table.join(
awful.button({}, 1, function()
os.execute("mpc prev")
vicious.force({theme.mpdwidget, theme.mpd_prev, theme.mpd_toggle, theme.mpd_next})
end)
))
-- }}]
--- }}}
-- mpd next ----------------------------- {{{
theme.mpd_next = wibox.widget.textbox()
vicious.register(
theme.mpd_next,
vicious.widgets.mpd,
function(widget, args)
if args["{state}"] == "Stop" then
return ""
else
return ("<span font=\"".. theme.iconFont .."\"></span> ")
end
end)
theme.mpd_next:buttons(awful.util.table.join(
awful.button({}, 1, function()
os.execute("mpc next")
vicious.force({theme.mpdwidget, theme.mpd_prev, theme.mpd_toggle, theme.mpd_next})
end)
))
local justText = wibox.widget.textbox(" <span font=\"".. theme.iconFont .."\"></span>")
theme.mpd_random = wibox.widget.textbox()
vicious.register(
theme.mpd_random,
vicious.widgets.mpd,
function(widget, warg)
if warg["{random}"] == true then
return ("<span font=\"".. theme.iconFont .."\">1</span> ")
elseif warg["{random}"] == false then
return ("<span font=\"".. theme.iconFont .."\">0</span> ")
else
return ("<span font=\"".. theme.iconFont .."\">8</span> ")
end
end)
theme.mpd_random:buttons(awful.util.table.join(
awful.button({}, 1, function()
os.execute("mpc random")
vicious.force({theme.mpdwidget, theme.mpd_random})
end)
))
local justText1 = wibox.widget.textbox(" <span font=\"".. theme.iconFont .."\"></span>")
-- }}]
--- }}}
--}}}
-- WID.ALSAVOL -------------------------------------------------- {{{
local vol_icon = wibox.widget.textbox()
theme.volume = lain.widget.alsa {
settings = function()
if volume_now.status == "off" then
vol_icon.markup = "<span font=\"".. theme.iconFont10 .."\"></span> "
elseif tonumber(volume_now.level) == 0 then
vol_icon.markup = "<span font=\"".. theme.iconFont .."\"></span> "
elseif tonumber(volume_now.level) < 50 then
vol_icon.markup = "<span font=\"".. theme.iconFont .."\"></span> "
else
vol_icon.markup = "<span font=\"".. theme.iconFont .."\"></span> "
end
widget:set_markup(markup.fontfg(theme.font, theme.xcolor3, volume_now.level .. "%"))
if theme.volume.manual then
if theme.volume.notification then
naughty.destroy(theme.volume.notification)
end
if volume_now.status == "off" then
vol_text = "Muted"
else
vol_text = " " .. volume_now.level .. "%"
end
if client.focus and client.focus.fullscreen or volume_now.status ~= volume_before then
theme.volume.notification = naughty.notify {
title = "Audio",
text = vol_text,
}
end
theme.volume.manual = false
end
volume_before = volume_now.status
end,
}
-- Initial notification
theme.volume.manual = true
theme.volume.update()
local vol_widget =
wibox.widget {
{
layout = wibox.layout.fixed.horizontal,
vol_icon,
theme.volume.widget,
},
top = 0,
bottom = 0,
left = 13,
right = 13,
widget = wibox.container.margin
}
vol_widget:buttons(gears.table.join(
awful.button({ }, 1, function()
awful.spawn.easy_async(string.format("amixer -q set %s toggle", theme.volume.channel),
function(stdout, stderr, reason, exit_code) --luacheck: no unused args
theme.volume.manual = true
theme.volume.update()
end)
end),
awful.button({ }, 5, function()
awful.spawn.easy_async(string.format("amixer -q set %s 3%%-", theme.volume.channel),
function(stdout, stderr, reason, exit_code) --luacheck: no unused args
theme.volume.update()
end)
end),
awful.button({ }, 4, function()
awful.spawn.easy_async(string.format("amixer -q set %s 3%%+", theme.volume.channel),
function(stdout, stderr, reason, exit_code) --luacheck: no unused args
theme.volume.update()
end)
end),
awful.button({}, 3, function()
os.execute("pulseaudio-equalizer toggle")
end)
))
-- }}}
-- WID.CLOCK ---------------------------------------------------- {{{
os.setlocale(os.getenv("LANG")) -- to localize the clock
local clock = awful.widget.watch(
"date +'%R'", 5,
function(widget, stdout)
widget:set_markup(markup.fontfg(theme.font_bold, theme.xforeground, stdout))
end
)
local clock_widget =
wibox.widget {
{
layout = wibox.layout.fixed.horizontal,
clock,
},
top = 0,
bottom = 0,
left = 13,
right = 13,
widget = wibox.container.margin
}
-- Calendar
theme.cal = lain.widget.cal {
-- cal = "cal --color=always --monday",
cal = "cal --color=always",
attach_to = { clock_widget },
icons = "",
notification_preset = naughty.config.presets.normal,
}
-- }}}
-- WID.CPU ------------------------------------------------------ {{{
local cpu_icon = wibox.widget.textbox("<span font=\"".. theme.iconFont .."\"></span> ")
local cpu = lain.widget.cpu {
timeout = 5,
settings = function()
local _color = bar_fg
local _font = theme.font
if tonumber(cpu_now.usage) >= 90 then
-- _color = colors.red_2
_color = theme.xcolor4
elseif tonumber(cpu_now.usage) >= 80 then
-- _color = colors.orange_2
_color = theme.xcolor5
elseif tonumber(cpu_now.usage) >= 70 then
-- _color = colors.yellow_2
_color = theme.xbackground
end
widget:set_markup(markup.fontfg(theme.font, theme.xcolor3, cpu_now.usage .. "%"))
widget.core = cpu_now
end,
}
local cpu_widget =
wibox.widget {
{
layout = wibox.layout.fixed.horizontal,
cpu_icon,
cpu.widget,
},
top = 0,
bottom = 0,
left = 13,
right = 13,
widget = wibox.container.margin
}
cpu_widget:buttons(awful.button({ }, 1, function()
awful.spawn("kitty -e htop -s PERCENT_CPU & disown")
end))
-- }}}
-- WID.MEM ------------------------------------------------------ {{{
-- theme.memory_trolling = icon.path .. "reboot.png"
-- local memory_ram = wibox.widget.imagebox(theme.memory_all)
-- local memory = lain.widget.mem({
-- settings = function()
-- widget:set_markup(markup.fontfg(theme.font, "#FFFFFF", "" .. mem_now.used .. "M (" .. mem_now.perc .. "%)"))
-- end
-- })
-- local memwidget = wibox.container.background(memory.widget, theme.xbackground, gears.shape.rectangle)
-- memorywidget = wibox.container.margin(memwidget, 0, 0, 5, 5)
local mem_icon = wibox.widget.textbox("<span font=\"".. theme.iconFont .."\"></span> ")
local mem = lain.widget.mem {
timeout = 5,
settings = function()
local _color = bar_fg
local _font = theme.font
if tonumber(mem_now.perc) >= 90 then
_color = theme.xcolor2
elseif tonumber(mem_now.perc) >= 80 then
_color = theme.xcolor3
elseif tonumber(mem_now.perc) >= 70 then
_color = theme.xcolor4
end
widget:set_markup(markup.fontfg(theme.font, theme.xcolor6 , mem_now.perc .. "%"))
widget.used = mem_now.used
widget.total = mem_now.total
widget.free = mem_now.free
widget.buf = mem_now.buf
widget.cache = mem_now.cache
widget.swap = mem_now.swap
widget.swapf = mem_now.swapf
widget.srec = mem_now.srec
end,
}
local mem_widget =
wibox.widget {
{
layout = wibox.layout.fixed.horizontal,
mem_icon,
mem.widget,
},
top = 0,
bottom = 0,
left = 13,
right = 13,
widget = wibox.container.margin
}
mem_widget:buttons(awful.button({ }, 1, function()
if mem_widget.notification then
naughty.destroy(mem_widget.notification)
end
mem.update()
mem_widget.notification = naughty.notify {
title = "Memory",
text = string.format("Total: \t\t%.2fGB\n", tonumber(mem.widget.total) / 1024)
.. string.format("Used: \t\t%.2fGB\n", tonumber(mem.widget.used ) / 1024)
.. string.format("Free: \t\t%.2fGB\n", tonumber(mem.widget.free ) / 1024)
.. string.format("Buffer: \t\t%.2fGB\n", tonumber(mem.widget.buf ) / 1024)
.. string.format("Cache: \t\t%.2fGB\n", tonumber(mem.widget.cache) / 1024)
.. string.format("Swap: \t\t%.2fGB\n", tonumber(mem.widget.swap ) / 1024)
.. string.format("Swapf: \t\t%.2fGB\n", tonumber(mem.widget.swapf) / 1024)
.. string.format("Srec: \t\t%.2fGB" , tonumber(mem.widget.srec ) / 1024),
timeout = 7,
}
end))
-- }}}
-- WID.NCMPCPP -------------------------------------------------- {{{
local ncmpcpp = wibox.widget.textbox("<span font=\"".. theme.iconFont .."\"></span>")
local ncmpcpp_widget =
wibox.widget {
{
layout = wibox.layout.fixed.horizontal,
ncmpcpp,
},
top = 0,
bottom = 0,
left = 13,
right = 13,
widget = wibox.container.margin
}
ncmpcpp_widget:buttons(awful.util.table.join(
awful.button({}, 1, function()
awful.spawn("kitty -e ncmpcpp")
end),
awful.button({}, 3, function()
awful.spawn(os.getenv("HOME") .. "/.ncmpcpp/mpdnotify")
end)
))
-- }}}
-- SHAPE ======================================================== {{{
local shape_left = function(cr, width, height)
gears.shape.parallelogram(cr, width, height, width-10)
end
local shape_right = function(cr, width, height)
-- gears.shape.transform(gears.shape.parallelogram) : translate(0, 0)(cr, width, height, width-10)
gears.shape.transform(gears.shape.rounded_rect) : translate(0,0) (cr,width,height, 20)
end
local shape_end_right = function(cr, width, height)
gears.shape.transform(shape.isosceles_triangle) : rotate_at(35, 35, math.pi/2)(cr,width,height)
end
-- }}}
-- RESET SCREEN ------------------------------------------------- {{{
function theme.at_screen_connect(s)
-- Wallpaper
-- set_wallpaper(s)
-- local l = awful.layout.suit -- Alias to save time :)
--
s.quake = lain.util.quake({ app = awful.util.terminal })
-- local layouts = {
-- l.tile, l.tile, l.max, l.floating , l.max,
-- l.tile, l.tile, l.tile, l.max, l.max
-- }
--
if type(wallpaper) == "function" then
theme.wallpaper = theme.wallpaper(s)
end
gears.wallpaper.maximized(theme.wallpaper, s, true)
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
s.mypromptbox = awful.widget.prompt()
s.mylayoutbox = awful.widget.layoutbox(s)
s.mylayoutbox:buttons(awful.util.table.join(
awful.button({ }, 1, function () awful.layout.inc( 1) end),
awful.button({ }, 3, function () awful.layout.inc(-1) end),
awful.button({ }, 4, function () awful.layout.inc( 1) end),
awful.button({ }, 5, function () awful.layout.inc(-1) end)))
-- Create a taglist widget
s.mytaglist = awful.widget.taglist(
s, awful.widget.taglist.filter.all, awful.util.taglist_buttons, { bg_focus = theme.xcolor2 })
mytaglistcont = wibox.container.background(s.mytaglist, theme.bg_color, gears.shape.rectangle)
-- wibox.container.margin(widget, left, right, top, bottom)
s.mytag = wibox.container.margin(mytaglistcont, 5, 5, 5, 5)
-- Create a tasklist widget
s.mytasklist = awful.widget.tasklist(
s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons,
{ bg_focus = theme.bg_focus,
shape = gears.shape.rectangle,
shape_border_width = 5,
shape_border_color = theme.tasklist_bg_normal,
align = "center" })
-- Create the wibox
s.mywibox = awful.wibar({ position = "top", screen = s, height = 32 })
-- Add widgets to the wibox
s.mywibox:setup {
layout = wibox.layout.align.horizontal,
{
-- Left widgets
layout = wibox.layout.fixed.horizontal,
-- first,
s.mytag,
-- spr_small,
-- s.mylayoutbox,
-- spr_small,
-- s.mypromptbox,
},
nil, -- Middle widget
{
-- Right widgets
layout = wibox.layout.fixed.horizontal,
-- wibox.widget.systray(),
-- Layout box
{
{
{
layout = wibox.layout.fixed.horizontal,
s.mylayoutbox
},
top = 2,
bottom = 2,
left = 15,
right = 15,
widget = wibox.container.margin
},
shape = shape_left,
bg = theme.border_focus,
widget = wibox.container.background
},
{
{
{
layout = wibox.layout.fixed.horizontal,
theme.mpd_prev, space,
theme.mpd_toggle, space,
theme.mpd_next, space,
justText, space,
-- theme.mpd_random, space,
justText1, space
},
left = 13,
right = 13,
widget = wibox.container.margin
},
shape = shape_left,
bg = theme.border_focus,
widget = wibox.container.background
},
{
ncmpcpp_widget,
shape = shape_left,
bg = theme.border_focus,
widget = wibox.container.background
},
-- cpu
{
cpu_widget,
shape = shape_right,
bg = theme.border_focus,
widget = wibox.container.background
},
-- Memory
{
mem_widget,
shape = shape_right,
bg = theme.border_focus,
widget = wibox.container.background
},
{
vol_widget,
shape = shape_right,
bg = theme.border_focus,
widget = wibox.container.background
},
{
clock_widget,
shape = shape_right,
bg = theme.border_focus,
widget = wibox.container.background
},
},
}
-- Create the bottom wibox
s.mybottomwibox = awful.wibar({ position = "bottom", screen = s, border_width = 0, height = 30 })
-- s.borderwibox = awful.wibar({ position = "bottom", screen = s, height = 1, bg = theme.fg_focus, x = 0, y = 33})
-- Add widgets to the bottom wibox
s.mybottomwibox:setup {
layout = wibox.layout.align.horizontal,
{
-- Left widgets
layout = wibox.layout.fixed.horizontal,
mylauncher,
},
-- s.mytasklist, -- Middle widget
nil,
{
-- Right widgets
layout = wibox.layout.fixed.horizontal,
-- spr_bottom_right,
-- netdown_icon,
-- networkwidget,
-- netup_icon,
bottom_bar,
-- memorywidget,
-- bottom_bar,
-- currencywidget,
-- bottom_bar,
-- weatherwidget_icon,
-- weatherwidget,
},
}
end
-- }}}
return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
| 42.285714 | 123 | 0.518593 |
6c75c97cb133efa913629c9f57fe715403e0e557 | 1,071 | swift | Swift | AuroraDreamband/Classes/DataConvertible.swift | iwinks/aurora-ios-sdk | a69055934b3b6f5e9e63b53afdf375f6ac98aaf4 | [
"MIT"
] | 2 | 2020-05-08T21:07:17.000Z | 2020-11-03T00:13:12.000Z | AuroraDreamband/Classes/DataConvertible.swift | iwinks/aurora-ios-sdk | a69055934b3b6f5e9e63b53afdf375f6ac98aaf4 | [
"MIT"
] | 1 | 2017-10-18T22:43:20.000Z | 2017-11-11T14:44:23.000Z | AuroraDreamband/Classes/DataConvertible.swift | iwinks/aurora-ios-sdk | a69055934b3b6f5e9e63b53afdf375f6ac98aaf4 | [
"MIT"
] | null | null | null | //
// DataConvertible.swift
// Pods
//
// Created by Rafael Nobre on 03/02/17.
//
//
public protocol DataConvertible {
init?(data: Data)
var data: Data { get }
}
public extension DataConvertible {
init?(data: Data) {
guard data.count == MemoryLayout<Self>.size else { return nil }
self = data.withUnsafeBytes { $0.pointee }
}
var data: Data {
var value = self
let result = Data(buffer: UnsafeBufferPointer(start: &value, count: 1))
return result
}
}
extension Int : DataConvertible { }
extension Int32 : DataConvertible { }
extension Int16 : DataConvertible { }
extension Int8 : DataConvertible { }
extension UInt8 : DataConvertible { }
extension Float : DataConvertible { }
extension Double : DataConvertible { }
extension String: DataConvertible {
public init?(data: Data) {
self.init(data: data, encoding: .utf8)
}
public var data: Data {
// Note: a conversion to UTF-8 cannot fail.
let result = self.data(using: .utf8)!
return result
}
}
| 23.282609 | 79 | 0.633987 |
6612f6b8b3c5af27e443d333b7c0e4db8753510c | 1,942 | cpp | C++ | sample-wasm/src/main.cpp | inzanez/pdfium-lib | f4e6fbb3b29c100ff3f291944944fd7e38fafbcd | [
"MIT"
] | 69 | 2021-01-27T18:53:22.000Z | 2022-02-25T00:41:41.000Z | sample-wasm/src/main.cpp | inzanez/pdfium-lib | f4e6fbb3b29c100ff3f291944944fd7e38fafbcd | [
"MIT"
] | 31 | 2021-01-23T17:14:46.000Z | 2022-03-04T18:06:23.000Z | sample-wasm/src/main.cpp | inzanez/pdfium-lib | f4e6fbb3b29c100ff3f291944944fd7e38fafbcd | [
"MIT"
] | 19 | 2021-01-27T18:57:07.000Z | 2022-01-04T02:56:03.000Z | #include <iostream>
#include "fpdfview.h"
int main(int argc, char **argv)
{
std::cout << "Starting..." << std::endl;
FPDF_LIBRARY_CONFIG config;
config.version = 3;
config.m_pUserFontPaths = nullptr;
config.m_pIsolate = nullptr;
config.m_v8EmbedderSlot = 0;
config.m_pPlatform = nullptr;
FPDF_InitLibraryWithConfig(&config);
std::cout << "Loading PDF..." << std::endl;
FPDF_STRING testDoc = "assets/web-assembly.pdf";
FPDF_DOCUMENT doc = FPDF_LoadDocument(testDoc, nullptr);
std::cout << "Checking PDF..." << std::endl;
if (!doc)
{
unsigned long err = FPDF_GetLastError();
std::cout << "Load pdf docs unsuccessful: ";
switch (err)
{
case FPDF_ERR_SUCCESS:
std::cout << "Success" << std::endl;
break;
case FPDF_ERR_UNKNOWN:
std::cout << "Unknown error" << std::endl;
break;
case FPDF_ERR_FILE:
std::cout << "File not found or could not be opened" << std::endl;
break;
case FPDF_ERR_FORMAT:
std::cout << "File not in PDF format or corrupted" << std::endl;
break;
case FPDF_ERR_PASSWORD:
std::cout << "Password required or incorrect password" << std::endl;
break;
case FPDF_ERR_SECURITY:
std::cout << "Unsupported security scheme" << std::endl;
break;
case FPDF_ERR_PAGE:
std::cout << "Page not found or content error" << std::endl;
break;
default:
std::cout << "Unknown error " << err << std::endl;
}
std::cout << std::endl;
FPDF_DestroyLibrary();
return EXIT_FAILURE;
}
int pageCount = FPDF_GetPageCount(doc);
std::cout << "Total of pages: " << pageCount << std::endl;
FPDF_CloseDocument(doc);
FPDF_DestroyLibrary();
return EXIT_SUCCESS;
} | 26.972222 | 80 | 0.565911 |
dfeff4f727a83b41bdab4ad4b17d0961b656667f | 135 | ts | TypeScript | frontend/src/app/shared/models/Person.ts | ghanshamJ/digital-person | df57ce798224f3f5560d14cd34eccac8be139742 | [
"MIT"
] | null | null | null | frontend/src/app/shared/models/Person.ts | ghanshamJ/digital-person | df57ce798224f3f5560d14cd34eccac8be139742 | [
"MIT"
] | null | null | null | frontend/src/app/shared/models/Person.ts | ghanshamJ/digital-person | df57ce798224f3f5560d14cd34eccac8be139742 | [
"MIT"
] | null | null | null | export class Person{
_id?:any;
name?: string;
dob?: Date;
email?: string;
address?: string;
country?: string;
} | 16.875 | 21 | 0.57037 |
6b525e7cad3fffd524508dd7200655307003b584 | 81 | html | HTML | src/app/toolbar/toolbar.component.html | WebStyle/uzgeeks-meetup-angular | 3fb790c45acf168e5c3d29b042ecfce7424a9fa9 | [
"MIT"
] | 1 | 2017-06-26T08:01:47.000Z | 2017-06-26T08:01:47.000Z | src/app/toolbar/toolbar.component.html | WebStyle/uzgeeks-meetup-angular | 3fb790c45acf168e5c3d29b042ecfce7424a9fa9 | [
"MIT"
] | null | null | null | src/app/toolbar/toolbar.component.html | WebStyle/uzgeeks-meetup-angular | 3fb790c45acf168e5c3d29b042ecfce7424a9fa9 | [
"MIT"
] | null | null | null | <md-toolbar color="primary">
<span>UzGeeks meetup Angular</span>
</md-toolbar>
| 20.25 | 37 | 0.716049 |
aca8ff8c09bc06ec1b84eb5d069b6515e85d179b | 7,397 | cc | C++ | FocusedSampling/main.cc | axhertz/SimplicityDoneRight | 84b61d3c3ef42920d6b42d4a8f8ddad0699ef310 | [
"Apache-2.0"
] | 6 | 2021-01-11T15:17:31.000Z | 2021-11-25T09:02:17.000Z | FocusedSampling/main.cc | axhertz/SimplicityDoneRight | 84b61d3c3ef42920d6b42d4a8f8ddad0699ef310 | [
"Apache-2.0"
] | null | null | null | FocusedSampling/main.cc | axhertz/SimplicityDoneRight | 84b61d3c3ef42920d6b42d4a8f8ddad0699ef310 | [
"Apache-2.0"
] | null | null | null | #include "infra/glob_infra_standard_includes.hh"
#include "relspec.hh"
#include "RelationCol.hh"
//#include "arg.hh"
#include <fstream>
#include <chrono>
#include<iostream>
#include <unistd.h>
#include <random>
#include <algorithm>
#define GetCurrentDir getcwd
extern "C" {
#include "infra/cmeasure.h"
}
// #define __MACOS
const std::string gDirRel = "../data/table/";
const std::string gDirQuery = "../data/query/";
using namespace std;
const uint cardinality = 581012; // |forest data set|
uint_vt getRandVec(rng32_t aRng, uint sampleSize){
uniform_int_distribution<int> dist {0, cardinality-1};
auto gen = [&dist, &aRng](){
return dist(aRng);
};
uint_vt randVec(sampleSize);
generate(begin(randVec), end(randVec), gen);
return randVec;
}
std::string get_current_dir() {
char buff[FILENAME_MAX]; //create string buffer to hold path
GetCurrentDir( buff, FILENAME_MAX );
std::string current_working_dir(buff);
return current_working_dir;
}
void
gen_sample_for_query(relcol_vt& lSamples, const RelationCol& R, const uint_vt& randVec, const query_t& query) {
lSamples.resize(randVec.size());
lSamples[0].sample_w_query(R, randVec, query);
}
void
testSampleSizes(rng32_t& aRng, std::string tableName, const std::string& queryName,
const std::string& samplingMethod, bool reuseTIDs){
std::ofstream resultFile;
std::cout<< "method: "<<samplingMethod << "\t reuse TIDs: "<< reuseTIDs << "\t query: " << queryName
<<"\t result file: " << "../result/result.txt" <<std::endl;
resultFile.open("../result/result.txt");
RelationCol R;
std::string lFilenameRel = gDirRel + tableName;
std::string lFilenameQuery = gDirQuery + queryName;
std::ifstream lIsRel(lFilenameRel);
std::cout<<get_current_dir()<<"\n";
if(!lIsRel) {
std::cout << "can't open relation file '" << lFilenameRel << "'." << std::endl;
return;
}
R.read(lIsRel, false);
const uint n = R.card();
uint max_sample_size = 11000;
uint_vt randVecFull = getRandVec(aRng, max_sample_size);
uint_vt randVec;
for (uint i = 0; i < 100; i++){
std::cout<<"run "<<i<<" of "<< 100<<endl;
std::ifstream lIsQuery(lFilenameQuery);
if(!lIsQuery) {
std::cout << "can't open query file '" << lFilenameQuery << "'." << std::endl;
return;
}
if (reuseTIDs) {
randVec = uint_vt(randVecFull.begin(), randVecFull.begin() + 1000 + 100 * i);
}
uint lCount = 0;
uint lCardCheck = 0;
query_t lQuery;
relcol_vt sampleForQuery;
uint_vt resVec;
sampleForQuery.clear();
auto t1 = std::chrono::high_resolution_clock::now();
while(lQuery.read(lIsQuery) && (10000 > lCount)) {
if (samplingMethod == "traditional") {
if (!reuseTIDs) {
randVec = getRandVec(aRng, 1000 + i * 100);
}
gen_sample_for_query(sampleForQuery, R, randVec, lQuery);
lCardCheck = sampleForQuery[0].select_count(lQuery.preds(), true);
} else if (samplingMethod == "focused") {
if (!reuseTIDs) {
randVec = getRandVec(aRng, 1000 + i * 100);
}
lCardCheck = R.select_count(lQuery.preds(), randVec, false);
} else {std::cout<<"no valid sampling method given";}
/*
true cardinlity: lQuery._rescard
estimated cardinality: static_cast<double>(lCardCheck) / randVec.size()* n
*/
++lCount;
//std::cout<<"true "<<lQuery.rescard()<< " est " <<static_cast<double>(lCardCheck) / randVec.size()* n<<"\n";
}
auto t2 = std::chrono::high_resolution_clock::now();
std::cout<<"eval took:" << std::chrono::duration_cast<std::chrono::milliseconds>(t2 - t1).count()<<"\n";
resultFile<<i<<" "<<std::chrono::duration_cast<std::chrono::milliseconds>(t2 - t1).count()<<"\n";
resultFile.flush();
lIsQuery.close();
}
resultFile.close();
}
static void show_usage(const std::string& name)
{
std::cout << "Usage: " << name << " <option(s)> SOURCES "
<< "Options:\n"
<< "\t-help, -h,\t show this help message\n"
<< "\t-n_preds,\t specify number of predicates [3|5|7]\n"
<< "\t-method,\t specify sampling_method [focused|traditional]\n"
<< "\t-reuse_tids,\t specify whether to reuse tids [0|1]\n"
<< "\t-enum_pred,\t specify whether to order predicates [0|1]\n"
<< "example: -n_preds 7 -method focused -reuse_tids 1 -enum_pred 1 "
<< std::endl;
}
int main(int argc, char* argv[])
{
std::vector <std::string> sources;
std::string destination;
bool reuse_tids = true;
std::string method = "focused";
std::string query_file = "query_frt_qu7";
std::string enum_pred = "_enum.txt";
if(argc < 9){
show_usage(argv[0]);
return 1;
}
for (int i = 1; i < argc; ++i) {
std::string arg = argv[i];
if ((arg == "-h") || (arg == "-help")) {
show_usage(argv[0]);
return 0;
}else if (arg == "-method") {
if (i + 1 < argc) {
destination = argv[++i];
if (destination == "focused") { method = "focused"; }
else if (destination == "traditional") { method = "traditional"; }
else {
std::cerr << "-method option requires one argument {traditional; focused}." << std::endl;
return 1;
}
}
}
else if (arg == "-n_preds") {
if (i + 1 < argc) {
destination = argv[++i];
if (destination == "3") { query_file = "query_frt_qu3"; }
else if (destination == "5") { query_file = "query_frt_qu5"; }
else if (destination == "7") { query_file = "query_frt_qu7"; }
else {
std::cerr << "-n_preds option requires one argument."<< std::endl;
return 1;
}
}
} else if (arg == "-reuse_tids") {
if (i + 1 < argc) {
destination = argv[++i];
if (destination == "0") { reuse_tids = false; }
else if (destination == "1") { reuse_tids = true; }
else {
std::cerr << "-fixed_tids option requires one argument." << std::endl;
return 1;
}
}
} else if (arg == "-enum_pred") {
if (i + 1 < argc) {
destination = argv[++i];
if (destination == "0") { enum_pred = ".txt"; }
else if (destination == "1") { enum_pred = "_enum.txt"; }
else {
std::cerr << "-enum_pred option requires one argument." << std::endl;
return 1;
}
}
}
else {
std::cerr<< "invalid arguments" << std::endl;
show_usage(argv[0]);
return 1;
}
}
rng32_t lRng;
testSampleSizes(lRng, "forest_data_normalised.csv", query_file+enum_pred, method, reuse_tids);
return 0;
}
| 33.776256 | 121 | 0.535217 |
fba2e58d59ca785c32cfe25b92e36719416c5d61 | 3,469 | lua | Lua | script/c700019.lua | Xargs007/CardsCustom | ef54658d3b3d8600e41759ad58e031cb6301b6c2 | [
"CC0-1.0"
] | null | null | null | script/c700019.lua | Xargs007/CardsCustom | ef54658d3b3d8600e41759ad58e031cb6301b6c2 | [
"CC0-1.0"
] | null | null | null | script/c700019.lua | Xargs007/CardsCustom | ef54658d3b3d8600e41759ad58e031cb6301b6c2 | [
"CC0-1.0"
] | null | null | null | -- Amulet of Affection
-- scripted by: UnknownGuest
function c700019.initial_effect(c)
-- Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCost(c700019.cost)
e1:SetTarget(c700019.target)
e1:SetOperation(c700019.operation)
c:RegisterEffect(e1)
-- change battle damage
-- local e2=Effect.CreateEffect(c)
--e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
--e2:SetCode(EVENT_PRE_BATTLE_DAMAGE)
--e2:SetCode(EVENT_BE_BATTLE_TARGET)
--e2:SetRange(LOCATION_SZONE)
--e2:SetCondition(c700019.damcon)
--e2:SetTarget(c700019.damtg)
--e2:SetOperation(c700019.damop)
--c:RegisterEffect(e2)
--control
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_EQUIP)
e4:SetCode(EFFECT_SET_CONTROL)
e4:SetValue(c700019.damcon1)
c:RegisterEffect(e4)
end
function c700019.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x235) and c:IsAbleToGraveAsCost() and not c:IsHasEffect(81674782) --c:IsDiscardable() and
end
function c700019.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c700019.cfilter,tp,LOCATION_MZONE,0,1,nil) end
local rc=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
--local sg=g:RandomSelect(tp,1)
--Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
--local rc=Duel.SelectTarget(tp,c700019.cfilter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SendtoGrave(rc,REASON_COST+REASON_RELEASE)
end
function c700019.filter(c)
return c:IsFaceup() and c:IsControlerCanBeChanged() and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)~=0
end
function c700019.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c700019.filter(chkc) and chkc:IsControler(1-tp) end
if chk==0 then return Duel.IsExistingTarget(c700019.filter,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectTarget(tp,c700019.filter,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,1,0,0)
end
function c700019.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsLocation(LOCATION_SZONE) then return end
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.Equip(tp,c,tc)
c:CancelToGrave()
-- Equip limit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
--e1:SetValue(1)
e1:SetValue(c700019.eqlimit)
e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1)
end
end
function c700019.eqlimit(e,c)
return e:GetHandlerPlayer()~=c:GetControler() or e:GetHandler():GetEquipTarget()==c
end
function c700019.damcon1(e,tp,eg,ep,ev,re,r,rp)
local ec=e:GetHandler():GetEquipTarget()
return ep==tp and ec --and (ec==Duel.GetAttacker() or ec==Duel.GetAttackTarget())
end
--function c700019.damcon(e,tp,eg,ep,ev,re,r,rp)
-- local ec=e:GetHandler():GetEquipTarget()
-- return ep==tp and ec and (ec==Duel.GetAttacker() or ec==Duel.GetAttackTarget())
--end
--function c700019.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
-- if chk==0 then return true end
-- Duel.SetTargetPlayer(e:GetHandler():GetControler())
--end
--function c700019.damop(e,tp,eg,ep,ev,re,r,rp)
-- Duel.ChangeBattleDamage(ep,0)
--end
| 37.706522 | 139 | 0.754684 |
e95f446701007b1d442f6dc596fa5957d1139868 | 275 | psm1 | PowerShell | transformers/swallowBreaks.psm1 | cspotcode/pwsh-transpiler | f9eaa127753430cc6ab0cd14f4d2e565b8d43195 | [
"MIT"
] | 9 | 2019-03-19T23:35:27.000Z | 2021-08-12T05:48:07.000Z | transformers/swallowBreaks.psm1 | cspotcode/pwsh-transpiler | f9eaa127753430cc6ab0cd14f4d2e565b8d43195 | [
"MIT"
] | 2 | 2019-03-18T21:19:34.000Z | 2019-04-11T20:01:09.000Z | transformers/swallowBreaks.psm1 | cspotcode/pwsh-transpiler | f9eaa127753430cc6ab0cd14f4d2e565b8d43195 | [
"MIT"
] | 1 | 2021-03-17T20:32:32.000Z | 2021-03-17T20:32:32.000Z | import-module -force "$PSScriptRoot/../core.psm1"
function swallowBreaks($ast) {
<#
.SYNOPSIS
Swallow all `break` statements in this function and in code called by this function.
#>
$before = 'do {'
$after = '} until($true)'
wrapBlocks $ast $before $after
}
| 21.153846 | 86 | 0.665455 |
f46220fbf1cb809e01ca6807bd8f01c81b7dd10e | 296 | swift | Swift | Braze-Demo/Utils/Double_Util.swift | malandr2/braze-growth-shares-ios-demo-app | 57d127e7ce5ac17ae0c69c971421a5978425c740 | [
"MIT"
] | 10 | 2020-10-06T21:23:51.000Z | 2022-03-02T16:38:18.000Z | Braze-Demo/Utils/Double_Util.swift | malandr2/braze-growth-shares-ios-demo-app | 57d127e7ce5ac17ae0c69c971421a5978425c740 | [
"MIT"
] | 5 | 2021-02-23T03:49:05.000Z | 2021-10-18T09:21:49.000Z | Braze-Demo/Utils/Double_Util.swift | malandr2/braze-growth-shares-ios-demo-app | 57d127e7ce5ac17ae0c69c971421a5978425c740 | [
"MIT"
] | 14 | 2020-10-01T21:39:47.000Z | 2021-08-04T06:29:04.000Z | import Foundation
extension Double {
func formattedDateString() -> String {
let date = Date(timeIntervalSince1970: self)
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "MM/dd/YY"
dateFormatter.locale = .current
return dateFormatter.string(from: date)
}
}
| 24.666667 | 48 | 0.719595 |
0bd452d7f8b41b82d65099c045a46031290b10c9 | 268 | js | JavaScript | JavaScript/charCount.js | Hail91/code-challenges | ef8710c859fe1b6c34df75701f9b9a5e12966a06 | [
"MIT"
] | null | null | null | JavaScript/charCount.js | Hail91/code-challenges | ef8710c859fe1b6c34df75701f9b9a5e12966a06 | [
"MIT"
] | null | null | null | JavaScript/charCount.js | Hail91/code-challenges | ef8710c859fe1b6c34df75701f9b9a5e12966a06 | [
"MIT"
] | null | null | null | // Return number of times a specified character appears in a string
function charCount(myChar, str) {
count = 0;
for (let i = 0; i < str.length; i++) {
if (str[i] === myChar) {
count++;
}
}
return count;
}
console.log(charCount("a", "aaron"));
| 19.142857 | 67 | 0.589552 |
8767ca87e97734eda7fcb3d863681e1da105c9bb | 986 | swift | Swift | LeetCodePractice/Easy/53_Maximum_Subarray.swift | Tyrant2013/LeetCodePractice | e17d0b8cd2e2d73e71492a71fc944abd4a28788c | [
"MIT"
] | null | null | null | LeetCodePractice/Easy/53_Maximum_Subarray.swift | Tyrant2013/LeetCodePractice | e17d0b8cd2e2d73e71492a71fc944abd4a28788c | [
"MIT"
] | null | null | null | LeetCodePractice/Easy/53_Maximum_Subarray.swift | Tyrant2013/LeetCodePractice | e17d0b8cd2e2d73e71492a71fc944abd4a28788c | [
"MIT"
] | null | null | null | //
// Maximum_Subarray.swift
// LeetCodePractice
//
// Created by 庄晓伟 on 2018/2/11.
// Copyright © 2018年 Zhuang Xiaowei. All rights reserved.
//
import UIKit
//Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
//
//For example, given the array [-2,1,-3,4,-1,2,1,-5,4],
//the contiguous subarray [4,-1,2,1] has the largest sum = 6.
class Maximum_Subarray: Solution {
override func ExampleTest() {
[
[-2,1,-3,4,-1,2,1,-5,4], //[4,-1,2,1], 6
[1,2,3,4,5,6]
].forEach { nums in
print("source array: \(nums), max sum: \(self.maxSubArray(nums))")
}
}
func maxSubArray(_ nums: [Int]) -> Int {
var (sum, max) = (0, Int.min)
for index in 0..<nums.count {
let tmp = sum + nums[index]
sum = nums[index] > tmp ? nums[index] : tmp
max = sum > max ? sum : max
}
return max
}
}
| 26.648649 | 106 | 0.540568 |
6010063040c21e61d0767bf129e2aacf5ef3a0bd | 393 | ps1 | PowerShell | update.ps1 | KuttKatrea/Sunset | ef0b6a2537876d9a83df2ec08d137da6f4e1ab1e | [
"Unlicense"
] | null | null | null | update.ps1 | KuttKatrea/Sunset | ef0b6a2537876d9a83df2ec08d137da6f4e1ab1e | [
"Unlicense"
] | null | null | null | update.ps1 | KuttKatrea/Sunset | ef0b6a2537876d9a83df2ec08d137da6f4e1ab1e | [
"Unlicense"
] | null | null | null | # https://github.com/edymtt/nugetstandalone
# $destinationFolder = "$psscriptroot\packages"
# if (!(Test-Path -path $destinationFolder)) {
# Write-Host -f Red "Run .\install.ps1 first!"
# exit 1
# }
#
# nuget update packages.config -r $destinationFolder
# Remove-Item $destinationFolder -Force -Recurse | Out-Null
# nuget install packages.config -o $destinationFolder -ExcludeVersion
| 35.727273 | 69 | 0.727735 |
3b2d0c7faace1742ec1dca99d1ee7592b43e6dfc | 229 | h | C | Poplin/include/poplin/core/serialization/serializer.h | imefGames/Poplin | 932c4896b0da3f06f95ef30944d4df584ad8f7c5 | [
"MIT"
] | null | null | null | Poplin/include/poplin/core/serialization/serializer.h | imefGames/Poplin | 932c4896b0da3f06f95ef30944d4df584ad8f7c5 | [
"MIT"
] | null | null | null | Poplin/include/poplin/core/serialization/serializer.h | imefGames/Poplin | 932c4896b0da3f06f95ef30944d4df584ad8f7c5 | [
"MIT"
] | null | null | null | #pragma once
#include <poplin/core/reflection/typeinfo.h>
#include <json.hpp>
namespace Poplin
{
namespace Serializer
{
void LoadObject(void* objectPtr, const TypeInfo& type, const nlohmann::json& data);
}
} | 19.083333 | 91 | 0.694323 |
38bbfcbb1a19da7901832f4ce9722ea9cf4189d4 | 1,110 | dart | Dart | lib/input/bindings/action.dart | hulang1024/sorting_app | a4cd90122b1e30553b6aaf84f505e4833fbd31dd | [
"MIT"
] | null | null | null | lib/input/bindings/action.dart | hulang1024/sorting_app | a4cd90122b1e30553b6aaf84f505e4833fbd31dd | [
"MIT"
] | null | null | null | lib/input/bindings/action.dart | hulang1024/sorting_app | a4cd90122b1e30553b6aaf84f505e4833fbd31dd | [
"MIT"
] | null | null | null | /// 按键绑定的动作。
class BindingAction {
final int code;
final String text;
const BindingAction(this.code, this.text);
}
/// 全局动作集。
class GlobalAction extends BindingAction {
static const PackageCreateSmart = GlobalAction(1, '智能建包');
static const PackageCreate = GlobalAction(2, '手动建包');
static const PackageDelete = GlobalAction(3, '删除集包');
static const ItemAlloc = GlobalAction(4, '加包减包');
static const PackageSearch = GlobalAction(5, '查询集包');
static const ItemSearch = GlobalAction(6, '查询快件');
static const ItemAllocDelete = GlobalAction(7, '集包减件');
static const ItemAllocAdd = GlobalAction(8, '集包加件');
static const ItemAllocSearch = GlobalAction(9, '查询集包快件操作记录');
static const OK = GlobalAction(100, '确定/执行操作/下一个输入');
const GlobalAction(int code, String text) : super(code, text);
}
const GLOBAL_ACTIONS = [
GlobalAction.PackageCreateSmart,
GlobalAction.PackageCreate,
GlobalAction.PackageDelete,
GlobalAction.ItemAlloc,
GlobalAction.PackageSearch,
GlobalAction.ItemSearch,
GlobalAction.ItemAllocDelete,
GlobalAction.ItemAllocAdd,
GlobalAction.ItemAllocSearch
]; | 31.714286 | 64 | 0.752252 |