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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
264ead018108520a8478776c35bf7acb0a7da8da | 1,231 | java | Java | ch7-hbase/src/main/java/ch7/CH711GenderCount.java | wangyaomail/my-hadoop | d51faf1bddf5d29984f1ea5cfa7bdf4a2847e692 | [
"Apache-2.0"
] | 3 | 2022-03-28T02:04:39.000Z | 2022-03-30T13:43:29.000Z | ch7-hbase/src/main/java/ch7/CH711GenderCount.java | wangyaomail/my-hadoop | d51faf1bddf5d29984f1ea5cfa7bdf4a2847e692 | [
"Apache-2.0"
] | null | null | null | ch7-hbase/src/main/java/ch7/CH711GenderCount.java | wangyaomail/my-hadoop | d51faf1bddf5d29984f1ea5cfa7bdf4a2847e692 | [
"Apache-2.0"
] | null | null | null | package ch7;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.client.ResultScanner;
import org.apache.hadoop.hbase.client.Scan;
import org.apache.hadoop.hbase.client.Table;
import org.apache.hadoop.hbase.util.Bytes;
import java.io.IOException;
public class CH711GenderCount extends CH701HBaseBase {
@Override
public void run() throws IOException {
Scan scan = new Scan();
scan.addColumn(Bytes.toBytes("data"),Bytes.toBytes("gender"));
Table table = conn.getTable(TableName.valueOf("students"));
ResultScanner resultScanner = table.getScanner(scan);
int maleCount=0,femaleCount=0;
for(Result result : resultScanner){
String gender = Bytes.toString(result.getValue(Bytes.toBytes("data"),Bytes.toBytes("gender")));
if(gender.equals("男")){
maleCount++;
} else {
femaleCount++;
}
}
System.out.println("男生人数:"+maleCount);
System.out.println("女生人数:"+femaleCount);
conn.close();
}
public static void main(String[] args) throws IOException {
new CH711GenderCount().run();
}
}
| 31.564103 | 107 | 0.65069 |
1fa64f92e50afa56aa2a8b1b78e5a499cdf8e631 | 939 | html | HTML | lib/wijmo-5.20193.637/samples/Grid/MultiRow/Paging/angular/src/app.component.html | Thomas080304/sss | 9c409b7233b5291ecf9250ce0028656e5cdfd95a | [
"MIT"
] | 3 | 2019-05-14T06:07:11.000Z | 2019-08-29T01:24:18.000Z | lib/wijmo-5.20193.637/samples/Grid/MultiRow/Paging/angular/src/app.component.html | Thomas080304/sss | 9c409b7233b5291ecf9250ce0028656e5cdfd95a | [
"MIT"
] | 7 | 2021-01-28T19:40:34.000Z | 2022-03-25T18:35:58.000Z | lib/wijmo-5.20193.637/samples/Grid/MultiRow/Paging/angular/src/app.component.html | Thomas080304/sss | 9c409b7233b5291ecf9250ce0028656e5cdfd95a | [
"MIT"
] | 3 | 2019-08-29T01:24:21.000Z | 2021-05-07T02:05:54.000Z | <div class="container-fluid">
<wj-multi-row [itemsSource]="pagedOrders" [layoutDefinition]="layoutDefinition"></wj-multi-row>
<div class="btn-group">
<button type="button" class="btn" (click)="onGotoPageClick('first')" >
<span class="glyphicon glyphicon-fast-backward"></span>
</button>
<button type="button" class="btn" (click)="onGotoPageClick('previous')" >
<span class="glyphicon glyphicon-step-backward"></span>
</button>
<button type="button" class="btn" [innerHTML]="pageText" disabled style="width:100px"></button>
<button type="button" class="btn" (click)="onGotoPageClick('next')" >
<span class="glyphicon glyphicon-step-forward"></span>
</button>
<button type="button" class="btn" (click)="onGotoPageClick('last')" >
<span class="glyphicon glyphicon-fast-forward"></span>
</button>
</div>
</div> | 52.166667 | 103 | 0.616613 |
e548d50b8985f63cf2b5c255d106d34b81bbe4b8 | 743 | tsx | TypeScript | src/stackoverflow/59770174/index.enzyme.test.tsx | mrdulin/jest-codelab | d85f355c18a62658a5e153dff8ead691c1c9cf7a | [
"MIT"
] | 86 | 2019-09-15T13:34:42.000Z | 2022-03-25T17:34:30.000Z | src/stackoverflow/59770174/index.enzyme.test.tsx | mrdulin/jest-codelab | d85f355c18a62658a5e153dff8ead691c1c9cf7a | [
"MIT"
] | 3 | 2018-10-09T04:31:30.000Z | 2020-09-06T07:26:42.000Z | src/stackoverflow/59770174/index.enzyme.test.tsx | mrdulin/jest-codelab | d85f355c18a62658a5e153dff8ead691c1c9cf7a | [
"MIT"
] | 31 | 2020-02-19T10:12:41.000Z | 2022-03-05T12:15:45.000Z | import { Button } from '.';
import { shallow } from 'enzyme';
import React from 'react';
describe('59770174', () => {
it('should call action once', (done) => {
let callCount = 0;
const mProps = {
action: jest.fn().mockImplementation(() => {
callCount++;
}),
};
const wrapper = shallow(<Button {...mProps}></Button>);
const button = wrapper.find('button');
button.simulate('click');
button.simulate('click');
button.simulate('click');
const lastCount = callCount;
expect(lastCount).toBe(1);
setTimeout(() => {
console.log(callCount, lastCount);
expect(callCount).toBe(lastCount);
expect(mProps.action).toBeCalledTimes(1);
done();
}, 64);
});
});
| 25.62069 | 59 | 0.585464 |
4a334c30c77247afced9698195c12d65fafd7ceb | 11,995 | js | JavaScript | resources/assets/js/components/Marks/Create.js | bvipul/student-management-system | c48b824de9f8282b408d5d34e37347f1d6eb9974 | [
"MIT"
] | 2 | 2019-09-26T18:22:39.000Z | 2019-09-27T05:33:21.000Z | resources/assets/js/components/Marks/Create.js | bvipul/student-management-system | c48b824de9f8282b408d5d34e37347f1d6eb9974 | [
"MIT"
] | null | null | null | resources/assets/js/components/Marks/Create.js | bvipul/student-management-system | c48b824de9f8282b408d5d34e37347f1d6eb9974 | [
"MIT"
] | 2 | 2021-08-03T12:36:26.000Z | 2021-12-03T10:02:22.000Z | import React from 'react';
import { Link } from 'react-router-dom';
import { Card, CardHeader, CardBody, CardFooter, Row, Col, Button, Form, FormGroup, Label, Input, FormText, Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
import { reduxForm, Field, formValueSelector } from 'redux-form';
import FormField from '../FormField';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { errors } from '../../store/actions';
import Server from '../../Helpers/Server';
const validatorMarksCreateForm = (values) => {
const result = validate(values, {
marks: {
presence:{
message: 'Please enter Marks'
}
},
course_id: {
presence: {
message: 'Please select a Course.'
}
},
semester_id: {
presence: {
message: 'Please select a Semester.'
}
},
subject_id: {
presence: {
message: 'Please select a Subject.'
}
},
student_id: {
presence: {
message: 'Please select a Student.'
}
},
});
return result;
};
function validate(values, messages) {
const errors = {};
console.log({
values,
messages
})
if(!values.marks) {
errors.marks = messages.marks.presence.message;
}
if(!values.course_id) {
errors.course_id = messages.course_id.presence.message;
}
if(!values.semester_id) {
errors.semester_id = messages.semester_id.presence.message;
}
if(!values.student_id) {
errors.student_id = messages.student_id.presence.message;
}
if(!values.subject_id) {
errors.subject_id = messages.subject_id.presence.message;
}
return errors;
}
class Create extends React.Component {
constructor(props) {
super(props);
this.state = {
courses: [],
students: [],
semesters: [],
subjects: []
}
this.processSubmit = this.processSubmit.bind(this);
}
componentDidMount() {
Server
.get('/api/courses')
.then((response) => {
if (response.status == "200") {
this.props.errors(new Array());
this.setState({
courses: response.data.data
});
}
})
.catch((error) => {
const { response: { data: { error: { message } } } } = error;
this.props.errors(new Array(message));
});
Server
.get('/api/semesters')
.then((response) => {
if (response.status == "200") {
this.props.errors(new Array());
this.setState({
semesters: response.data.data
});
}
})
.catch((error) => {
const { response: { data: { error: { message } } } } = error;
this.props.errors(new Array(message));
});
}
componentDidUpdate(prevProps, prevState) {
if(prevProps.course != this.props.course) {
Server
.post('/api/getStudents', { course: this.props.course })
.then((response) => {
if (response.status == "200") {
this.props.errors(new Array());
this.setState({
students: response.data.data
});
}
})
.catch((error) => {
const { response: { data: { error: { message } } } } = error;
this.props.errors(new Array(message));
});
}
if(prevProps.semester != this.props.semester) {
Server
.post('/api/getSubjects', { course: this.props.course, semester: this.props.semester })
.then((response) => {
if (response.status == "200") {
this.props.errors(new Array());
this.setState({
subjects: response.data.data
});
}
})
.catch((error) => {
const { response: { data: { error: { message } } } } = error;
this.props.errors(new Array(message));
});
}
if(prevProps.subject != this.props.subject) {
Server
.post('/api/getMarks', {
course: this.props.course,
student: this.props.student,
semester: this.props.semester,
subject: this.props.subject
})
.then((response) => {
if (response.status == "200") {
this.props.errors(new Array());
console.log({
response
})
if(response.data && response.data.data && response.data.data.marks) {
// this.props.initialize({
// marks: response.data.data.marks
// });
this.setState({
marksAvailable: response.data.data.id,
marks: response.data.data.marks
});
}
}
})
.catch((error) => {
const { response: { data: { error: { message } } } } = error;
this.props.errors(new Array(message));
});
}
}
processSubmit(values) {
values.marksAvailable = this.state.marksAvailable;
Server
.post('/api/marks', values)
.then((response) => {
if (response.data.success) {
this.props.errors(new Array());
this.props.history.push('/admin/marks');
}
})
.catch((error) => {
const { response: { data: { error: { message } } } } = error;
this.props.errors(new Array(message));
});
}
getOptions(values) {
if(values && Array.isArray(values) && values.length) {
const options = [
<option key={0} value={""}>Select</option>
];
values.forEach(value => {
options.push(<option key={value.id} value={value.id}>{value.name}</option>)
});
return options;
} else {
return null;
}
}
render() {
const { error, handleSubmit, submitting, course, student, subject, semester } = this.props;
return (
<Card>
<CardHeader className="text-center">
<Row>
<Col md={8} className="text-right">
<h1 style={{ display: 'inline-block', textTransform: 'uppercase', letterSpacing: '5px' }}>Add/Update Marks</h1>
</Col>
<Col md={4} className="text-right">
<Link className="nav-link" to="/admin/subject">
<Button color="secondary">
Cancel
</Button>
</Link>
</Col>
</Row>
</CardHeader>
<Form onSubmit={handleSubmit(this.processSubmit)}>
<CardBody>
<div className="form-group">
<label htmlFor="course_id">Select Course</label>
<Field
name="course_id"
component="select"
className="form-control"
>
{ this.getOptions(this.state.courses) }
</Field>
</div>
{ course &&
<div className="form-group">
<label htmlFor="course_id">Select Student</label>
<Field
name="student_id"
component="select"
className="form-control"
>
{ this.getOptions(this.state.students) }
</Field>
</div>
}
{ course && student &&
<div className="form-group">
<label htmlFor="course_id">Select Semester</label>
<Field
name="semester_id"
component="select"
className="form-control"
>
{ this.getOptions(this.state.semesters) }
</Field>
</div>
}
{ course && student && semester &&
<div className="form-group">
<label htmlFor="course_id">Select Subject</label>
<Field
name="subject_id"
component="select"
className="form-control"
>
{ this.getOptions(this.state.subjects) }
</Field>
</div>
}
{ course && student && semester && subject &&
<Field
label="Marks"
name="marks"
component={FormField}
id="marks"
type="number"
min={1}
step={1}
max={100}
defaultValue={this.state.marks ? this.state.marks : 1}
className="form-control"
/>
}
</CardBody>
<CardFooter>
<FormGroup row>
<Col sm={{
size: 12,
offset: 5
}}>
<Link className="btn btn-secondary" to="/admin/marks">Cancel</Link>
<Button type="submit" className="ml-2" color="success" disabled={submitting}>Submit</Button>
</Col>
</FormGroup>
</CardFooter>
</Form>
</Card>
);
}
};
Create = reduxForm({
form: 'marksCreate',
validate: validatorMarksCreateForm
})(Create);
function mapStateToProps(state) {
return {
auth: state.auth
}
}
function mapDispatchToProps(dispatch) {
return bindActionCreators({
errors
}, dispatch);
}
const selector = formValueSelector('marksCreate');
Create = connect(state => {
const { course_id: course, student_id: student, semester_id: semester, subject_id: subject } = selector(state, 'course_id', 'student_id', 'semester_id', 'subject_id');
return {
course,
student,
semester,
subject
}
},
mapDispatchToProps)(Create);
export default Create; | 33.98017 | 181 | 0.407086 |
db362416f2e6b42356e6ac122953ddf04081ae8c | 389 | asm | Assembly | programs/oeis/204/A204259.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/204/A204259.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/204/A204259.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A204259: Matrix given by f(i,j) = 1 + [(2i+j) mod 3], by antidiagonals.
; 1,2,3,3,1,2,1,2,3,1,2,3,1,2,3,3,1,2,3,1,2,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,3,1,2,3,1,2,3,1,2,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,3,1,2,3,1,2,3,1,2,3,1,2,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3
cal $0,131421 ; Triangle read by rows (n>=1, 1<=k<=n): T(n,k) = 2*(n+k) - 3.
mod $0,6
mov $1,$0
div $1,2
add $1,1
| 43.222222 | 199 | 0.526992 |
01ea1598b7cee4b8d73a17bca9e0adf7d063db3d | 786 | rs | Rust | src/os/macos/mod.rs | yoanlcq/dmc | cf9b0b64e1f9fe2272007013fab21fcc56cbf65d | [
"Apache-2.0",
"MIT"
] | null | null | null | src/os/macos/mod.rs | yoanlcq/dmc | cf9b0b64e1f9fe2272007013fab21fcc56cbf65d | [
"Apache-2.0",
"MIT"
] | null | null | null | src/os/macos/mod.rs | yoanlcq/dmc | cf9b0b64e1f9fe2272007013fab21fcc56cbf65d | [
"Apache-2.0",
"MIT"
] | null | null | null | pub mod hint;
pub use self::hint::set_hint;
pub mod context;
pub use self::context::OsContext;
pub mod window;
pub use self::window::{OsWindow, OsWindowHandle, OsWindowFromHandleParams};
pub mod desktop;
pub mod cursor;
pub use self::cursor::OsCursor;
pub mod gl;
pub use self::gl::{OsGLContext, OsGLPixelFormat, OsGLProc};
pub mod event_instant;
pub use self::event_instant::OsEventInstant;
pub mod event;
pub use self::event::OsUnprocessedEvent;
pub mod device;
pub use self::device::{
consts as device_consts,
OsDeviceID, OsAxisInfo, OsDeviceInfo,
controller::{OsControllerState, OsControllerInfo},
keyboard::{OsKeyboardState, OsKeycode, OsKeysym},
mouse::{OsMouseButtonsState},
tablet::{OsTabletInfo, OsTabletPadButtonsState, OsTabletStylusButtonsState},
};
| 31.44 | 80 | 0.767176 |
7427e87044d258de75fbb4be014bb84ca95cfafb | 989 | h | C | ios/chrome/browser/ui/infobars/infobar_constants.h | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | ios/chrome/browser/ui/infobars/infobar_constants.h | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | ios/chrome/browser/ui/infobars/infobar_constants.h | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_INFOBARS_INFOBAR_CONSTANTS_H_
#define IOS_CHROME_BROWSER_UI_INFOBARS_INFOBAR_CONSTANTS_H_
#import <UIKit/UIKit.h>
extern const int kInfobarBackgroundColor;
// a11y identifier so that automation can tap on either infobar button
extern NSString* const kConfirmInfobarButton1AccessibilityIdentifier;
extern NSString* const kConfirmInfobarButton2AccessibilityIdentifier;
// The duration in seconds that the InfobarCoordinator banner will be presented
// for.
extern const NSTimeInterval kInfobarBannerDefaultPresentationDurationInSeconds;
// The duration in seconds that a high priority presentation InfobarCoordinator
// banner will be presented for.
extern const NSTimeInterval kInfobarBannerLongPresentationDurationInSeconds;
#endif // IOS_CHROME_BROWSER_UI_INFOBARS_INFOBAR_CONSTANTS_H_
| 41.208333 | 79 | 0.850354 |
755fc44bb2cf32c997cef825796e8e57341fe3a5 | 11,547 | h | C | src/engine/contactsengine.h | sailfishos/qtcontacts-sqlite | 8c2f2960b8b5d57e21fa9120632f78c0fe1330de | [
"BSD-3-Clause"
] | null | null | null | src/engine/contactsengine.h | sailfishos/qtcontacts-sqlite | 8c2f2960b8b5d57e21fa9120632f78c0fe1330de | [
"BSD-3-Clause"
] | 3 | 2021-10-05T03:07:30.000Z | 2022-01-31T15:41:12.000Z | src/engine/contactsengine.h | sailfishos/qtcontacts-sqlite | 8c2f2960b8b5d57e21fa9120632f78c0fe1330de | [
"BSD-3-Clause"
] | 2 | 2021-10-02T19:29:16.000Z | 2021-10-03T14:49:14.000Z | /*
* Copyright (c) 2013 - 2019 Jolla Ltd.
* Copyright (c) 2019 - 2020 Open Mobile Platform LLC.
*
* You may use this file under the terms of the BSD license as follows:
*
* "Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Nemo Mobile nor the names of its contributors
* may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
*/
#ifndef QTCONTACTSSQLITE_CONTACTSENGINE
#define QTCONTACTSSQLITE_CONTACTSENGINE
#include "contactmanagerengine.h"
#include <QScopedPointer>
#include <QSqlDatabase>
#include <QObject>
#include <QList>
#include <QMap>
#include <QString>
#include "contactsdatabase.h"
#include "contactnotifier.h"
#include "contactreader.h"
#include "contactwriter.h"
// QList<int> is widely used in qtpim
Q_DECLARE_METATYPE(QList<int>)
QTCONTACTS_USE_NAMESPACE
// Force an ambiguity with QContactDetail::operator== so that we can't call it
// It does not compare correctly if the values contains QList<int>
inline void operator==(const QContactDetail &, const QContactDetail &) {}
class JobThread;
class ContactsEngine : public QtContactsSqliteExtensions::ContactManagerEngine
{
Q_OBJECT
public:
ContactsEngine(const QString &name, const QMap<QString, QString> ¶meters);
~ContactsEngine();
QContactManager::Error open();
QString managerName() const override;
QMap<QString, QString> managerParameters() const override;
QMap<QString, QString> idInterpretationParameters() const override;
int managerVersion() const override;
QList<QContactId> contactIds(
const QContactFilter &filter,
const QList<QContactSortOrder> &sortOrders,
QContactManager::Error* error) const override;
QList<QContact> contacts(
const QList<QContactId> &localIds,
const QContactFetchHint &fetchHint,
QMap<int, QContactManager::Error> *errorMap,
QContactManager::Error *error) const override;
QContact contact(
const QContactId &contactId,
const QContactFetchHint &fetchHint,
QContactManager::Error* error) const override;
QList<QContact> contacts(
const QContactFilter &filter,
const QList<QContactSortOrder> &sortOrders,
const QContactFetchHint &fetchHint,
QContactManager::Error* error) const override;
QList<QContact> contacts(
const QContactFilter &filter,
const QList<QContactSortOrder> &sortOrders,
const QContactFetchHint &fetchHint,
QMap<int, QContactManager::Error> *errorMap,
QContactManager::Error *error) const;
bool saveContacts(
QList<QContact> *contacts,
QMap<int, QContactManager::Error> *errorMap,
QContactManager::Error *error) override;
bool saveContacts(
QList<QContact> *contacts,
const ContactWriter::DetailList &definitionMask,
QMap<int, QContactManager::Error> *errorMap,
QContactManager::Error *error) override;
bool removeContact(const QContactId& contactId, QContactManager::Error* error);
bool removeContacts(
const QList<QContactId> &contactIds,
QMap<int, QContactManager::Error> *errorMap,
QContactManager::Error* error) override;
QContactId selfContactId(QContactManager::Error* error) const override;
bool setSelfContactId(const QContactId& contactId, QContactManager::Error* error) override;
QList<QContactRelationship> relationships(
const QString &relationshipType,
const QContactId &participantId,
QContactRelationship::Role role,
QContactManager::Error *error) const override;
bool saveRelationships(
QList<QContactRelationship> *relationships,
QMap<int, QContactManager::Error> *errorMap,
QContactManager::Error *error) override;
bool removeRelationships(
const QList<QContactRelationship> &relationships,
QMap<int, QContactManager::Error> *errorMap,
QContactManager::Error *error) override;
QContactCollectionId defaultCollectionId() const override;
QContactCollection collection(const QContactCollectionId &collectionId, QContactManager::Error *error) const override;
QList<QContactCollection> collections(QContactManager::Error *error) const override;
bool saveCollection(QContactCollection *collection, QContactManager::Error *error) override;
bool removeCollection(const QContactCollectionId &collectionId, QContactManager::Error *error) override;
bool saveCollections(QList<QContactCollection> *collections, QMap<int, QContactManager::Error> *errorMap, QContactManager::Error *error); // non-override.
bool removeCollections(const QList<QContactCollectionId> &collectionIds, QMap<int, QContactManager::Error> *errorMap, QContactManager::Error *error); // non-override.
void requestDestroyed(QContactAbstractRequest* req) override;
void requestDestroyed(QObject* request) override;
bool startRequest(QContactAbstractRequest* req) override;
bool startRequest(QContactDetailFetchRequest* request) override;
bool startRequest(QContactCollectionChangesFetchRequest* request) override;
bool startRequest(QContactChangesFetchRequest* request) override;
bool startRequest(QContactChangesSaveRequest* request) override;
bool startRequest(QContactClearChangeFlagsRequest* request) override;
bool cancelRequest(QContactAbstractRequest* req) override;
bool cancelRequest(QObject* request) override;
bool waitForRequestFinished(QContactAbstractRequest* req, int msecs) override;
bool waitForRequestFinished(QObject* req, int msecs) override;
bool isRelationshipTypeSupported(const QString &relationshipType, QContactType::TypeValues contactType) const override;
QList<QContactType::TypeValues> supportedContactTypes() const override;
void regenerateDisplayLabel(QContact &contact, bool *emitDisplayLabelGroupChange);
bool clearChangeFlags(const QList<QContactId> &contactIds, QContactManager::Error *error) override;
bool clearChangeFlags(const QContactCollectionId &collectionId, QContactManager::Error *error) override;
bool fetchCollectionChanges(int accountId,
const QString &applicationName,
QList<QContactCollection> *addedCollections,
QList<QContactCollection> *modifiedCollections,
QList<QContactCollection> *deletedCollections,
QList<QContactCollection> *unmodifiedCollections,
QContactManager::Error *error) override;
bool fetchContactChanges(const QContactCollectionId &collectionId,
QList<QContact> *addedContacts,
QList<QContact> *modifiedContacts,
QList<QContact> *deletedContacts,
QList<QContact> *unmodifiedContacts,
QContactManager::Error *error) override;
bool storeChanges(QHash<QContactCollection*, QList<QContact> * /* added contacts */> *addedCollections,
QHash<QContactCollection*, QList<QContact> * /* added/modified/deleted contacts */> *modifiedCollections,
const QList<QContactCollectionId> &deletedCollections,
ConflictResolutionPolicy conflictResolutionPolicy,
bool clearChangeFlags,
QContactManager::Error *error) override;
bool fetchOOB(const QString &scope, const QString &key, QVariant *value) override;
bool fetchOOB(const QString &scope, const QStringList &keys, QMap<QString, QVariant> *values) override;
bool fetchOOB(const QString &scope, QMap<QString, QVariant> *values) override;
bool fetchOOBKeys(const QString &scope, QStringList *keys) override;
bool storeOOB(const QString &scope, const QString &key, const QVariant &value) override;
bool storeOOB(const QString &scope, const QMap<QString, QVariant> &values) override;
bool removeOOB(const QString &scope, const QString &key) override;
bool removeOOB(const QString &scope, const QStringList &keys) override;
bool removeOOB(const QString &scope) override;
QStringList displayLabelGroups() override;
QString synthesizedDisplayLabel(const QContact &contact, QContactManager::Error *error) const;
static bool setContactDisplayLabel(QContact *contact, const QString &label, const QString &group, int sortOrder);
static QString normalizedPhoneNumber(const QString &input);
private slots:
void _q_collectionsAdded(const QVector<quint32> &collectionIds);
void _q_collectionsChanged(const QVector<quint32> &collectionIds);
void _q_collectionsRemoved(const QVector<quint32> &collectionIds);
void _q_collectionContactsChanged(const QVector<quint32> &collectionIds);
void _q_contactsChanged(const QVector<quint32> &contactIds);
void _q_contactsPresenceChanged(const QVector<quint32> &contactIds);
void _q_contactsAdded(const QVector<quint32> &contactIds);
void _q_contactsRemoved(const QVector<quint32> &contactIds);
void _q_selfContactIdChanged(quint32,quint32);
void _q_relationshipsAdded(const QVector<quint32> &contactIds);
void _q_relationshipsRemoved(const QVector<quint32> &contactIds);
void _q_displayLabelGroupsChanged();
private:
bool regenerateAggregatesIfNeeded();
QString databaseUuid();
ContactsDatabase &database();
ContactReader *reader() const;
ContactWriter *writer();
QString m_databaseUuid;
const QString m_name;
QMap<QString, QString> m_parameters;
QString m_managerUri;
QScopedPointer<ContactsDatabase> m_database;
mutable QScopedPointer<ContactReader> m_synchronousReader;
QScopedPointer<ContactWriter> m_synchronousWriter;
QScopedPointer<ContactNotifier> m_notifier;
QScopedPointer<JobThread> m_jobThread;
Q_DISABLE_COPY(ContactsEngine);
};
#endif
| 48.313808 | 170 | 0.718455 |
aba95a87b4fa19b8bcff3adc9b7d00b5a945d90e | 25 | sql | SQL | src/test/data/sql/syntax/clause/InnerCrossJoinClause07.sql | azuki-framework/azuki-sql | 2519259ef8d8a14f0956f22d08a080eb7e3dd016 | [
"Apache-2.0"
] | null | null | null | src/test/data/sql/syntax/clause/InnerCrossJoinClause07.sql | azuki-framework/azuki-sql | 2519259ef8d8a14f0956f22d08a080eb7e3dd016 | [
"Apache-2.0"
] | null | null | null | src/test/data/sql/syntax/clause/InnerCrossJoinClause07.sql | azuki-framework/azuki-sql | 2519259ef8d8a14f0956f22d08a080eb7e3dd016 | [
"Apache-2.0"
] | null | null | null | NATURAL JOIN
table01
| 8.333333 | 12 | 0.72 |
c42bd36c847e7d2cd2d1e6e21915ff42be08b766 | 4,162 | kt | Kotlin | app/src/main/java/com/f2h/f2h_admin/screens/group/notification/NotificationViewModel.kt | Farm2Home/f2h_admin | a60352840b9dd591e30f4bbeb571d1c0ad8b8319 | [
"MIT"
] | null | null | null | app/src/main/java/com/f2h/f2h_admin/screens/group/notification/NotificationViewModel.kt | Farm2Home/f2h_admin | a60352840b9dd591e30f4bbeb571d1c0ad8b8319 | [
"MIT"
] | null | null | null | app/src/main/java/com/f2h/f2h_admin/screens/group/notification/NotificationViewModel.kt | Farm2Home/f2h_admin | a60352840b9dd591e30f4bbeb571d1c0ad8b8319 | [
"MIT"
] | null | null | null | package com.f2h.f2h_admin.screens.group.notification
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.f2h.f2h_admin.database.SessionDatabaseDao
import com.f2h.f2h_admin.database.SessionEntity
import com.f2h.f2h_admin.network.NotificationApi
import kotlinx.coroutines.*
import kotlin.collections.ArrayList
class NotificationViewModel(val database: SessionDatabaseDao, application: Application) : AndroidViewModel(application) {
private val _isProgressBarActive = MutableLiveData<Boolean>()
val isProgressBarActive: LiveData<Boolean>
get() = _isProgressBarActive
private var _visibleUiData = MutableLiveData<MutableList<NotificationItemsModel>>()
val visibleUiData: LiveData<MutableList<NotificationItemsModel>>
get() = _visibleUiData
private val _toastText = MutableLiveData<String>()
val toastText: LiveData<String>
get() = _toastText
private var selectedNotificationItem = NotificationItemsModel()
private var allUiData = ArrayList<NotificationItemsModel>()
private var userSession = SessionEntity()
private var viewModelJob = Job()
private val coroutineScope = CoroutineScope(viewModelJob + Dispatchers.Main)
init {
getNotificationMessageList()
}
private fun getNotificationMessageList() {
//Clear all screen data
allUiData.clear()
_isProgressBarActive.value = true
coroutineScope.launch {
userSession = retrieveSession()
try {
var notificationMessages = NotificationApi.retrofitService(getApplication()).getAllNotificationMessages().await()
notificationMessages.forEach{ message ->
var notificationMessageItem = NotificationItemsModel(
message.notificationId,
message.title,
message.body,
false
)
allUiData.add(notificationMessageItem)
}
allUiData.sortByDescending { it.title }
_visibleUiData.value = allUiData
} catch (t:Throwable){
println(t.message)
}
_isProgressBarActive.value = false
}
}
fun onSendNotificationButtonClicked() {
if (selectedNotificationItem.notificationId == null ||
selectedNotificationItem.notificationId!! <= 0){
_toastText.value = "Please select at least one item"
return
}
_isProgressBarActive.value = true
coroutineScope.launch {
val sendNotificationDeferred = NotificationApi.retrofitService(getApplication())
.sendNotificationToGroups(selectedNotificationItem.notificationId!!,
userSession.groupId!!.toString())
try {
sendNotificationDeferred.await()
} catch (t:Throwable){
println(t.message)
_toastText.value = "Successfully sent alerts"
}
_isProgressBarActive.value = false
}
}
fun onNotificationMessageSelected(selectedItem: NotificationItemsModel){
selectedNotificationItem = selectedItem
_visibleUiData.value?.forEach { item ->
item.isSelected = false
if (item.notificationId == selectedItem.notificationId){
item.isSelected = !item.isSelected
}
}
_visibleUiData.value = _visibleUiData.value
}
private suspend fun retrieveSession() : SessionEntity {
return withContext(Dispatchers.IO) {
val sessions = database.getAll()
var session = SessionEntity()
if (sessions.size==1) {
session = sessions[0]
println(session.toString())
} else {
database.clearSessions()
}
return@withContext session
}
}
override fun onCleared() {
super.onCleared()
viewModelJob.cancel()
}
}
| 34.97479 | 129 | 0.634551 |
2a4dabde0d8a1f8bd7c5171e487c2baec35a95ad | 11,792 | java | Java | src/bftsmart/tom/server/defaultservices/blockchain/logger/ParallelBatchLogger.java | andrefboliveira/BFT-SMaRt | 8dfc81c3b1007a67bb4ec5e1f6a7925918867963 | [
"Apache-2.0"
] | null | null | null | src/bftsmart/tom/server/defaultservices/blockchain/logger/ParallelBatchLogger.java | andrefboliveira/BFT-SMaRt | 8dfc81c3b1007a67bb4ec5e1f6a7925918867963 | [
"Apache-2.0"
] | null | null | null | src/bftsmart/tom/server/defaultservices/blockchain/logger/ParallelBatchLogger.java | andrefboliveira/BFT-SMaRt | 8dfc81c3b1007a67bb4ec5e1f6a7925918867963 | [
"Apache-2.0"
] | null | null | null | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package bftsmart.tom.server.defaultservices.blockchain.logger;
import bftsmart.tom.server.defaultservices.blockchain.BatchLogger;
import bftsmart.tom.MessageContext;
import bftsmart.tom.server.defaultservices.CommandsInfo;
import bftsmart.tom.util.TOMUtil;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.Map;
import java.util.TreeMap;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* @author joao
*/
public class ParallelBatchLogger extends Thread implements BatchLogger {
private Logger logger = LoggerFactory.getLogger(this.getClass());
private int id;
private int lastCachedCID = -1;
private int firstCachedCID = -1;
private int lastStoredCID = -1;
private TreeMap<Integer,CommandsInfo> cachedBatches;
private TreeMap<Integer,byte[][]> cachedResults;
private TreeMap<Integer,byte[]> cachedHeaders;
private TreeMap<Integer,byte[]> cachedCertificates;
private RandomAccessFile log;
private FileChannel channel;
private String logPath;
private String logDir;
private MessageDigest transDigest;
private MessageDigest resultsDigest;
private LinkedBlockingQueue<ByteBuffer> buffers;
private boolean synched = false;
private ReentrantLock syncLock = new ReentrantLock();
private Condition isSynched = syncLock.newCondition();
private final Lock queueLock = new ReentrantLock();
private final Condition notEmptyQueue = queueLock.newCondition();
private ParallelBatchLogger() {
//not to be used
}
private ParallelBatchLogger(int id, String logDir) throws FileNotFoundException, NoSuchAlgorithmException {
this.id = id;
cachedBatches = new TreeMap<>();
cachedResults = new TreeMap<>();
cachedHeaders = new TreeMap<>();
cachedCertificates = new TreeMap<>();
transDigest = TOMUtil.getHashEngine();
resultsDigest = TOMUtil.getHashEngine();
File directory = new File(logDir);
if (!directory.exists()) directory.mkdir();
this.logDir = logDir;
buffers = new LinkedBlockingQueue<>();
logger.info("Parallel batch logger instantiated");
}
public void startNewFile(int cid, int period) throws IOException {
if (log != null) log.close();
if (channel != null) channel.close();
logPath = logDir + String.valueOf(this.id) + "." + cid + "." + (cid + period) + ".log";
logger.debug("Logging to file " + logPath);
log = new RandomAccessFile(logPath, "rwd");
channel = log.getChannel();
}
public void openFile(int cid, int period) throws IOException {
if (log != null) log.close();
if (channel != null) channel.close();
logPath = logDir + String.valueOf(this.id) + "." + cid + "." + (cid + period) + ".log";
logger.debug("Opening file " + logPath);
File f = new File(logPath);
long fileLength = f.length();
log = new RandomAccessFile(f, "rwd");
log.seek(fileLength);
channel = log.getChannel();
}
public static BatchLogger getInstance(int id, String logDir) throws FileNotFoundException, NoSuchAlgorithmException {
ParallelBatchLogger ret = new ParallelBatchLogger(id, logDir);
ret.start();
return ret;
}
public void storeTransactions(int cid, byte[][] requests, MessageContext[] contexts) throws IOException, InterruptedException {
if (firstCachedCID == -1) firstCachedCID = cid;
lastCachedCID = cid;
lastStoredCID = cid;
CommandsInfo cmds = new CommandsInfo(requests, contexts);
cachedBatches.put(cid, cmds);
writeTransactionsToDisk(cid, cmds);
}
public void storeResults(byte[][] results) throws IOException, InterruptedException {
for (int i = 0; i < results.length ; i++) {
if (results[i] == null) results[i] = new byte[0];
}
cachedResults.put(lastStoredCID, results);
writeResultsToDisk(results);
}
public byte[][] markEndTransactions() throws IOException, InterruptedException {
ByteBuffer buff = getEOT();
//channel.write(buff);
enqueueWrite(buff);
return new byte[][] {transDigest.digest(), resultsDigest.digest()};
}
public void storeHeader(int number, int lastCheckpoint, int lastReconf, byte[] transHash, byte[] resultsHash, byte[] prevBlock) throws IOException, InterruptedException {
logger.debug("writting header for block #{} to disk", number);
ByteBuffer buff = prepareHeader(number, lastCheckpoint, lastReconf, transHash, resultsHash, prevBlock);
cachedHeaders.put(lastStoredCID, buff.array());
//channel.write(buff);
enqueueWrite(buff);
logger.debug("wrote header for block #{} to disk", number);
}
public void storeCertificate(Map<Integer, byte[]> sigs) throws IOException, InterruptedException {
logger.debug("writting certificate to disk");
ByteBuffer buff = prepareCertificate(sigs);
cachedCertificates.put(lastStoredCID, buff.array());
//channel.write(buff);
enqueueWrite(buff);
logger.debug("wrote certificate to disk");
}
public int getLastCachedCID() {
return lastCachedCID;
}
public int getFirstCachedCID() {
return firstCachedCID;
}
public int getLastStoredCID() {
return lastStoredCID;
}
public Map<Integer, CommandsInfo> getCachedBatches() {
return cachedBatches;
}
public Map<Integer, byte[][]> getCachedResults() {
return cachedResults;
}
public Map<Integer, byte[]> getCachedHeaders() {
return cachedHeaders;
}
public Map<Integer, byte[]> getCachedCertificates() {
return cachedCertificates;
}
public void clearCached() {
cachedBatches.clear();
cachedResults.clear();
cachedHeaders.clear();
cachedCertificates.clear();
firstCachedCID = -1;
lastCachedCID = -1;
}
public void setCached(int firstCID, int lastCID, Map<Integer, CommandsInfo> batches,
Map<Integer, byte[][]> results, Map<Integer, byte[]> headers, Map<Integer, byte[]> certificates) {
clearCached();
cachedBatches.putAll(batches);
cachedResults.putAll(results);
cachedHeaders.putAll(headers);
cachedCertificates.putAll(certificates);
lastStoredCID = firstCID;
firstCachedCID = firstCID;
lastCachedCID = lastCID;
}
public void startFileFromCache(int period) throws IOException, InterruptedException {
Integer[] cids = new Integer[cachedBatches.keySet().size()];
cachedBatches.keySet().toArray(cids);
Arrays.sort(cids);
startNewFile(cids[0],period);
for (int cid : cids) {
writeTransactionsToDisk(cid, cachedBatches.get(cid));
markEndTransactions();
writeResultsToDisk(cachedResults.get(cid));
enqueueWrite(ByteBuffer.wrap(cachedHeaders.get(cid)));
enqueueWrite(ByteBuffer.wrap(cachedCertificates.get(cid)));
}
sync();
}
private void writeTransactionsToDisk(int cid, CommandsInfo commandsInfo) throws IOException, InterruptedException {
logger.debug("writting transactios to disk");
byte[] transBytes = serializeTransactions(commandsInfo);
//update the transactions hash for the entire block
transDigest.update(transBytes);
ByteBuffer buff = prepareTransactions(cid, transBytes);
//channel.write(buff);
enqueueWrite(buff);
logger.debug("wrote transactions to disk");
}
private void writeResultsToDisk(byte[][] results) throws IOException, InterruptedException {
logger.debug("writting results to disk");
for (byte[] result : results) { //update the results hash for the entire block
resultsDigest.update(result);
}
ByteBuffer buff = prepareResults(results);
//channel.write(buff);
enqueueWrite(buff);
logger.debug("wrote results to disk");
}
public void sync() throws IOException, InterruptedException {
logger.debug("synching log to disk");
//log.getFD().sync();
//channel.force(false);
//ByteBuffer[] bbs = new ByteBuffer[buffers.size()];
//buffers.toArray(bbs);
//channel.write(bbs);
ByteBuffer eob = ByteBuffer.allocate(0);
enqueueWrite(eob);
syncLock.lock();
while (!synched) {
isSynched.await(10, TimeUnit.MILLISECONDS);
}
synched = false;
syncLock.unlock();
logger.debug("synced log to disk");
}
private void enqueueWrite(ByteBuffer buffer) throws InterruptedException {
queueLock.lock();
buffers.put(buffer);
notEmptyQueue.signalAll();
queueLock.unlock();
}
public void run () {
while (true) {
try {
LinkedList<ByteBuffer> list = new LinkedList<>();
queueLock.lock();
while (buffers.isEmpty()) notEmptyQueue.await(10, TimeUnit.MILLISECONDS);
buffers.drainTo(list);
queueLock.unlock();
logger.debug("Drained buffers");
ByteBuffer[] array = new ByteBuffer[list.size()];
list.toArray(array);
//log.write(serializeByteBuffers(array));
channel.write(array);
channel.force(false);
if (array[array.length-1].capacity() == 0) {
logger.debug("I was told to sync");
syncLock.lock();
synched = true;
isSynched.signalAll();
syncLock.unlock();
}
} catch (IOException | InterruptedException ex) {
logger.error("Could not write to disk", ex);
}
}
}
}
| 30.549223 | 177 | 0.584634 |
f03eb626ad42ac062fec3e020194ee07b262ecc5 | 1,145 | js | JavaScript | src/apps/forms/models/response.js | mahaplatform/mahaplatform.com | a96d8f7b12288c7cb01b036077182238c77d5b03 | [
"MIT"
] | null | null | null | src/apps/forms/models/response.js | mahaplatform/mahaplatform.com | a96d8f7b12288c7cb01b036077182238c77d5b03 | [
"MIT"
] | 52 | 2019-10-28T15:38:35.000Z | 2022-02-28T04:23:48.000Z | src/apps/forms/models/response.js | mahaplatform/mahaplatform.com | a96d8f7b12288c7cb01b036077182238c77d5b03 | [
"MIT"
] | null | null | null | import WorkflowEnrollment from '@apps/automation/models/workflow_enrollment'
import Invoice from '@apps/finance/models/invoice'
import Payment from '@apps/finance/models/payment'
import knex from '@core/vendor/knex/maha'
import Model from '@core/objects/model'
import Contact from '@apps/crm/models/contact'
import Form from './form'
const Response = new Model(knex, {
databaseName: 'maha',
tableName: 'crm_responses',
rules: {},
virtuals: {
url() {
return `${process.env.ADMIN_HOST}/admin/forms/forms/${this.get('form_id')}/responses/${this.get('id')}`
}
},
contact() {
return this.belongsTo(Contact, 'contact_id').query(qb => {
qb.select('crm_contacts.*','crm_contact_primaries.*')
qb.leftJoin('crm_contact_primaries', 'crm_contact_primaries.contact_id', 'crm_contacts.id')
})
},
enrollment() {
return this.hasOne(WorkflowEnrollment, 'response_id')
},
form() {
return this.belongsTo(Form, 'form_id')
},
invoice() {
return this.belongsTo(Invoice, 'invoice_id')
},
payment() {
return this.belongsTo(Payment, 'payment_id')
}
})
export default Response
| 22.45098 | 109 | 0.682969 |
5849506e54e906ae90d218cdbce77c1df1e84d96 | 356 | h | C | BS/baselines/gpu/binary_search.h | SNU-ARC/prim-benchmarks | 5f6ccfd0eac171fbeb922d6660dbc792b29b0676 | [
"MIT"
] | 41 | 2021-06-18T03:11:07.000Z | 2022-03-24T10:53:43.000Z | BS/baselines/gpu/binary_search.h | SNU-ARC/prim-benchmarks | 5f6ccfd0eac171fbeb922d6660dbc792b29b0676 | [
"MIT"
] | 3 | 2021-08-17T06:22:36.000Z | 2022-02-23T07:13:47.000Z | BS/baselines/gpu/binary_search.h | SNU-ARC/prim-benchmarks | 5f6ccfd0eac171fbeb922d6660dbc792b29b0676 | [
"MIT"
] | 18 | 2021-06-24T07:37:29.000Z | 2022-01-10T08:18:18.000Z | #ifndef BINARY_SEARCH_H
#define BINARY_SEARCH_H
#ifdef _WIN32
#include <windows.h>
#define DLL_EXPORT __declspec(dllexport)
#else
#define DLL_EXPORT
#endif
extern "C" {
int DLL_EXPORT binary_search(const long int *arr, const long int len, const long int *querys, const long int num_querys);
}
#endif /* BINARY_SEARCH_H */
| 18.736842 | 126 | 0.705056 |
979f6e9d17e600cd654823f3b28d3a9064c39121 | 307 | kt | Kotlin | app/src/main/java/com/cursoandroid/youflix/navigationBar/videosScreen/repository/GroupVideosListRepository.kt | velosobr/youflix | 468594a0d00556c611298d3d4a7b3bbbf933f78f | [
"MIT"
] | null | null | null | app/src/main/java/com/cursoandroid/youflix/navigationBar/videosScreen/repository/GroupVideosListRepository.kt | velosobr/youflix | 468594a0d00556c611298d3d4a7b3bbbf933f78f | [
"MIT"
] | 6 | 2020-05-12T20:34:54.000Z | 2020-06-05T20:30:48.000Z | app/src/main/java/com/cursoandroid/youflix/navigationBar/videosScreen/repository/GroupVideosListRepository.kt | velosobr/youflix | 468594a0d00556c611298d3d4a7b3bbbf933f78f | [
"MIT"
] | null | null | null | package com.cursoandroid.youflix.navigationBar.videosScreen.repository
import com.cursoandroid.youflix.navigationBar.videosScreen.repository.service.GroupVideosListCallbacks
interface GroupVideosListRepository {
fun returnGroupMovieListRepository(groupVideosListCallbacks: GroupVideosListCallbacks)
}
| 38.375 | 102 | 0.889251 |
597930d850d7f6c62d8c2ec71bb9f2604706a714 | 820 | swift | Swift | lakes/MapLakes/Modules/MapRouter.swift | DemoCodeProfile/Lakes-iOS-MVVM | 32783cd411ff11fe53819394cac3e4c947d2214f | [
"MIT"
] | null | null | null | lakes/MapLakes/Modules/MapRouter.swift | DemoCodeProfile/Lakes-iOS-MVVM | 32783cd411ff11fe53819394cac3e4c947d2214f | [
"MIT"
] | null | null | null | lakes/MapLakes/Modules/MapRouter.swift | DemoCodeProfile/Lakes-iOS-MVVM | 32783cd411ff11fe53819394cac3e4c947d2214f | [
"MIT"
] | null | null | null | //
// MapRouter.swift
// lakes
//
// Created by Vadim K on 12.09.2018.
// Copyright © 2018 Vadim K. All rights reserved.
//
import UIKit
protocol MapWireframeProtocol {
func toLakeDetails(_ lake: Lake)
}
final class MapRouter: MapWireframeProtocol {
var viewController: MapViewController
init(viewController: MapViewController) {
self.viewController = viewController
}
func toLakeDetails(_ lake: Lake) {
if let vc = UIStoryboard.init(name: STORYBOARD_NAME, bundle: nil).instantiateViewController(withIdentifier: LAKE_VIEW_CONTROLLER_ID) as? LakeViewController {
vc.viewModel.currentLake.accept(lake)
vc.title = lake.getTitle()
viewController.navigationController?.pushViewController(vc, animated: true)
}
}
}
| 25.625 | 165 | 0.684146 |
1678e9518419984d2dcce8c514451440e0238609 | 455 | h | C | src/ddb_bits.h | josephpohlmann/discodb | bdf3bcee4e8e5b254fb15e31fd702fd620aae003 | [
"BSD-3-Clause"
] | 77 | 2015-01-06T01:01:44.000Z | 2021-11-16T15:23:43.000Z | src/ddb_bits.h | DavidAlphaFox/discodb | 739fe9ebe6358194bf051a655dc1e7f3d9dc5c35 | [
"BSD-3-Clause"
] | 7 | 2015-02-19T18:16:12.000Z | 2018-10-03T14:00:19.000Z | src/ddb_bits.h | DavidAlphaFox/discodb | 739fe9ebe6358194bf051a655dc1e7f3d9dc5c35 | [
"BSD-3-Clause"
] | 18 | 2015-03-11T16:52:40.000Z | 2021-12-19T20:42:28.000Z |
#ifndef __DDB_BITS_H__
#define __DDB_BITS_H__
#include <stdint.h>
static uint32_t read_bits(const char *src, uint64_t offs, uint32_t bits)
{
uint64_t *src_w = (uint64_t*)&src[offs >> 3];
return (*src_w >> (offs & 7)) & ((((uint64_t)1) << bits) - 1);
}
static void write_bits(char *dst, uint64_t offs, uint32_t val)
{
uint64_t *dst_w = (uint64_t*)&dst[offs >> 3];
*dst_w |= ((uint64_t)val) << (offs & 7);
}
#endif /* __DDB_BITS_H__ */
| 22.75 | 72 | 0.63956 |
b6262e272791ea4087de7770a9b03ab403cb1878 | 526 | rb | Ruby | app/models/space.rb | jamesdabbs/pi-base | 33e5bd976397e1be80bab5aaf9bd3403bc0fe80e | [
"MIT"
] | 2 | 2015-02-26T01:09:04.000Z | 2015-08-22T19:51:00.000Z | app/models/space.rb | jamesdabbs/pi-base | 33e5bd976397e1be80bab5aaf9bd3403bc0fe80e | [
"MIT"
] | null | null | null | app/models/space.rb | jamesdabbs/pi-base | 33e5bd976397e1be80bab5aaf9bd3403bc0fe80e | [
"MIT"
] | null | null | null | class Space < ActiveRecord::Base
has_paper_trail only: [:name, :description]
validates :name, :description, presence: true
has_many :traits, dependent: :destroy
include Search
def self.by_formula fs
ids = fs.map { |f, val| Formula.load(f).spaces(val) }.inject &:&
Space.find ids
end
def to_s
name
end
def proof_tree
Proof::Tree.new self
end
cache_method :proof_tree
def available
ids = traits.pluck :property_id
Property.where('id NOT IN (?)', ids).pluck :name
end
end
| 18.137931 | 68 | 0.674905 |
0b2c80d7a15d0992c9cd36053f2bd2c20080f7ef | 1,188 | kt | Kotlin | app/src/main/java/me/cyber/nukleos/ui/predict/PredictionResultReceiver.kt | kyr7/nukleos | 0a1691d7ee2c88e9de8480ac4df49694bdaaced9 | [
"Apache-2.0"
] | 19 | 2018-07-19T22:19:39.000Z | 2022-02-09T13:52:52.000Z | app/src/main/java/me/cyber/nukleos/ui/predict/PredictionResultReceiver.kt | cyber-punk-me/nukleos | 03fad246834e6c569e301b005037849bdfccb664 | [
"Apache-2.0"
] | 2 | 2019-04-28T09:52:54.000Z | 2019-08-24T15:04:09.000Z | app/src/main/java/me/cyber/nukleos/ui/predict/PredictionResultReceiver.kt | cyber-punk-me/nukleos | 03fad246834e6c569e301b005037849bdfccb664 | [
"Apache-2.0"
] | 11 | 2018-07-16T07:35:44.000Z | 2021-09-30T08:51:27.000Z | package me.cyber.nukleos.ui.predict
import android.os.Bundle
import android.os.Handler
import android.os.ResultReceiver
class PredictionResultReceiver(
private val predictionCallback: (predictedClass: Int, distribution: FloatArray) -> Unit,
private val errorCallback: (error: String) -> Unit
) :
ResultReceiver(Handler()) {
companion object {
private const val DEFAULT_PREDICTION_RESPONSE_ERROR = "Invalid prediction response"
}
override fun onReceiveResult(resultCode: Int, resultData: Bundle) {
if (resultCode == PredictionService.ServiceResponses.SUCCESS.ordinal) {
val predictedClass = resultData.getInt(PredictionService.PREDICTED_CLASS_KEY)
val distribution = resultData.getFloatArray(PredictionService.DISTRIBUTION_KEY)
if (distribution == null) {
errorCallback(DEFAULT_PREDICTION_RESPONSE_ERROR)
return
}
predictionCallback(predictedClass, distribution)
} else {
val error = resultData.getString(PredictionService.ERROR_KEY)
errorCallback(error ?: DEFAULT_PREDICTION_RESPONSE_ERROR)
}
}
} | 38.322581 | 96 | 0.694444 |
26122d07dd465f041398bab9576cc3352c4ce9ad | 19,869 | java | Java | app/src/main/java/org/andstatus/app/origin/OriginType.java | dengzhicheng092/andstatus | a8b709cf094ae58eacc83af2d6eb9c3128a1eb99 | [
"Apache-2.0"
] | null | null | null | app/src/main/java/org/andstatus/app/origin/OriginType.java | dengzhicheng092/andstatus | a8b709cf094ae58eacc83af2d6eb9c3128a1eb99 | [
"Apache-2.0"
] | null | null | null | app/src/main/java/org/andstatus/app/origin/OriginType.java | dengzhicheng092/andstatus | a8b709cf094ae58eacc83af2d6eb9c3128a1eb99 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2014 yvolk (Yuri Volkov), http://yurivolkov.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.andstatus.app.origin;
import android.content.Context;
import org.andstatus.app.R;
import org.andstatus.app.context.MyContext;
import org.andstatus.app.data.TextMediaType;
import org.andstatus.app.lang.SelectableEnum;
import org.andstatus.app.net.http.HttpConnectionBasic;
import org.andstatus.app.net.http.HttpConnectionEmpty;
import org.andstatus.app.net.http.HttpConnectionOAuthApache;
import org.andstatus.app.net.http.HttpConnectionOAuthJavaNet;
import org.andstatus.app.net.http.HttpConnectionOAuthMastodon;
import org.andstatus.app.net.social.ConnectionEmpty;
import org.andstatus.app.net.social.ConnectionMastodon;
import org.andstatus.app.net.social.ConnectionTheTwitter;
import org.andstatus.app.net.social.ConnectionTwitterGnuSocial;
import org.andstatus.app.net.social.Patterns;
import org.andstatus.app.net.social.activitypub.ConnectionActivityPub;
import org.andstatus.app.net.social.pumpio.ConnectionPumpio;
import org.andstatus.app.timeline.meta.TimelineType;
import org.andstatus.app.util.StringUtil;
import org.andstatus.app.util.TriState;
import org.andstatus.app.util.UrlUtils;
import java.net.URL;
import java.util.Arrays;
import java.util.Optional;
import java.util.function.Function;
import java.util.regex.Pattern;
import static org.andstatus.app.origin.OriginConfig.MASTODON_TEXT_LIMIT_DEFAULT;
public enum OriginType implements SelectableEnum {
/** <a href="https://github.com/Gargron/mastodon">Mastodon at GitHub</a> */
MASTODON(4, "Mastodon", ApiEnum.MASTODON, NoteName.NO, NoteSummary.YES,
PublicChangeAllowed.YES, FollowersChangeAllowed.YES, SensitiveChangeAllowed.YES, ShortUrlLength.of(0)),
/**
* Origin type for Twitter system
* <a href="https://dev.twitter.com/docs">Twitter Developers' documentation</a>
*/
TWITTER(1, "Twitter", ApiEnum.TWITTER1P1, NoteName.NO, NoteSummary.NO,
PublicChangeAllowed.NO, FollowersChangeAllowed.NO, SensitiveChangeAllowed.NO, ShortUrlLength.of(23)),
ACTIVITYPUB(5, "ActivityPub", ApiEnum.ACTIVITYPUB, NoteName.YES, NoteSummary.YES,
PublicChangeAllowed.YES, FollowersChangeAllowed.YES, SensitiveChangeAllowed.YES, ShortUrlLength.of(0)) {
@Override
public Optional<String> getContentType() {
return Optional.of("application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"");
}
},
GNUSOCIAL(3, "GnuSocial", ApiEnum.GNUSOCIAL_TWITTER, NoteName.NO, NoteSummary.NO,
PublicChangeAllowed.NO, FollowersChangeAllowed.NO, SensitiveChangeAllowed.NO, ShortUrlLength.of(0)),
/**
* Origin type for the pump.io system
* Till July of 2013 (and v.1.16 of AndStatus) the API was:
* <a href="http://status.net/wiki/Twitter-compatible_API">Twitter-compatible identi.ca API</a>
* Since July 2013 the API is <a href="https://github.com/e14n/pump.io/blob/master/API.md">pump.io API</a>
*/
PUMPIO(2, "Pump.io", ApiEnum.PUMPIO, NoteName.YES, NoteSummary.NO,
PublicChangeAllowed.YES, FollowersChangeAllowed.NO, SensitiveChangeAllowed.NO, ShortUrlLength.of(0)),
UNKNOWN(0, "?", ApiEnum.UNKNOWN_API, NoteName.NO, NoteSummary.NO,
PublicChangeAllowed.NO, FollowersChangeAllowed.NO, SensitiveChangeAllowed.NO, ShortUrlLength.of(0)) {
@Override
public boolean isSelectable() {
return false;
}
};
public static final String SIMPLE_USERNAME_EXAMPLES = "AndStatus user357 peter";
private enum NoteName { YES, NO}
private enum NoteSummary { YES, NO}
private enum PublicChangeAllowed { YES, NO}
private enum FollowersChangeAllowed { YES, NO}
private enum SensitiveChangeAllowed { YES, NO}
static class ShortUrlLength {
final int value;
static ShortUrlLength of(int length) {
return new ShortUrlLength(length);
}
private ShortUrlLength(int length) {
value = length;
}
}
/**
* Connection APIs known
*/
private enum ApiEnum {
UNKNOWN_API,
/** Twitter API v.1 https://dev.twitter.com/docs/api/1 */
TWITTER1P0,
/** Twitter API v.1.1 https://dev.twitter.com/docs/api/1.1 */
TWITTER1P1,
/** GNU social (former: Status Net) Twitter compatible API http://status.net/wiki/Twitter-compatible_API */
GNUSOCIAL_TWITTER,
/** https://github.com/e14n/pump.io/blob/master/API.md */
PUMPIO,
/** https://github.com/Gargron/mastodon/wiki/API */
MASTODON,
/** https://www.w3.org/TR/activitypub/ */
ACTIVITYPUB
}
private static final String BASIC_PATH_DEFAULT = "api";
private static final String OAUTH_PATH_DEFAULT = "oauth";
public static final OriginType ORIGIN_TYPE_DEFAULT = TWITTER;
public static final int TEXT_LIMIT_MAXIMUM = 100000;
private final long id;
private final String title;
protected final boolean originHasUrl;
public final Function<MyContext, Origin> originFactory;
private final Class<? extends org.andstatus.app.net.social.Connection> connectionClass;
private final Class<? extends org.andstatus.app.net.http.HttpConnection> httpConnectionClassOauth;
private final Class<? extends org.andstatus.app.net.http.HttpConnection> httpConnectionClassBasic;
private final boolean allowEditing;
/** Default OAuth setting */
protected boolean isOAuthDefault = true;
/** Can OAuth connection setting can be turned on/off from the default setting */
protected boolean canChangeOAuth = false;
protected boolean shouldSetNewUsernameManuallyIfOAuth = false;
/** May a User set username for the new Account/Actor manually?
* This is only for no OAuth */
protected boolean shouldSetNewUsernameManuallyNoOAuth = false;
protected final Pattern usernameRegExPattern;
public final String uniqueNameExamples;
/**
* Length of the link after changing to the shortened link
* 0 means that length doesn't change
* For Twitter.com see <a href="https://dev.twitter.com/docs/api/1.1/get/help/configuration">GET help/configuration</a>
*/
final ShortUrlLength shortUrlLengthDefault;
protected boolean sslDefault = true;
protected boolean canChangeSsl = false;
protected boolean allowHtmlDefault = true;
public final TextMediaType textMediaTypePosted;
public final TextMediaType textMediaTypeToPost;
/** Maximum number of characters in a note */
protected int textLimitDefault = 0;
private URL urlDefault = null;
private String basicPath = BASIC_PATH_DEFAULT;
private String oauthPath = OAUTH_PATH_DEFAULT;
private boolean isPublicTimeLineSyncable = false;
private boolean isSearchTimelineSyncable = true;
private boolean isPrivateTimelineSyncable = true;
private boolean isInteractionsTimelineSyncable = true;
private final boolean isPrivateNoteAllowsReply;
public final boolean hasNoteName;
public final boolean hasNoteSummary;
public final boolean visibilityChangeAllowed;
public final boolean isFollowersChangeAllowed;
public final boolean isSensitiveChangeAllowed;
public boolean uniqueNameHasHost() {
return this != TWITTER;
}
OriginType(long id, String title, ApiEnum api, NoteName noteName, NoteSummary noteSummary,
PublicChangeAllowed publicChangeAllowed, FollowersChangeAllowed followersChangeAllowed,
SensitiveChangeAllowed sensitiveChangeAllowed,
ShortUrlLength shortUrlLength) {
this.id = id;
this.title = title;
hasNoteName = noteName == NoteName.YES;
hasNoteSummary = noteSummary == NoteSummary.YES;
visibilityChangeAllowed = publicChangeAllowed == PublicChangeAllowed.YES;
isFollowersChangeAllowed = followersChangeAllowed == FollowersChangeAllowed.YES;
isSensitiveChangeAllowed = sensitiveChangeAllowed == SensitiveChangeAllowed.YES;
shortUrlLengthDefault = shortUrlLength;
switch (api) {
case TWITTER1P1:
isOAuthDefault = true;
// Starting from 2010-09 twitter.com allows OAuth only
canChangeOAuth = false;
originHasUrl = true;
shouldSetNewUsernameManuallyIfOAuth = false;
shouldSetNewUsernameManuallyNoOAuth = true;
usernameRegExPattern = Patterns.USERNAME_REGEX_SIMPLE_PATTERN;
uniqueNameExamples = SIMPLE_USERNAME_EXAMPLES;
textLimitDefault = 280;
urlDefault = UrlUtils.fromString("https://api.twitter.com");
basicPath = "1.1";
oauthPath = OAUTH_PATH_DEFAULT;
originFactory = myContext -> new OriginTwitter(myContext, this);
connectionClass = ConnectionTheTwitter.class;
httpConnectionClassOauth = HttpConnectionOAuthApache.class;
httpConnectionClassBasic = HttpConnectionBasic.class;
isPrivateTimelineSyncable = false;
allowEditing = false;
isPrivateNoteAllowsReply = false;
textMediaTypePosted = TextMediaType.PLAIN_ESCAPED;
textMediaTypeToPost = TextMediaType.PLAIN;
break;
case PUMPIO:
isOAuthDefault = true;
canChangeOAuth = false;
originHasUrl = false;
shouldSetNewUsernameManuallyIfOAuth = true;
shouldSetNewUsernameManuallyNoOAuth = false;
usernameRegExPattern = Patterns.USERNAME_REGEX_SIMPLE_PATTERN;
uniqueNameExamples = "andstatus@identi.ca AndStatus@datamost.com test425@1realtime.net";
// This is not a hard limit, just for convenience
textLimitDefault = TEXT_LIMIT_MAXIMUM;
basicPath = BASIC_PATH_DEFAULT;
oauthPath = OAUTH_PATH_DEFAULT;
originFactory = myContext -> new OriginPumpio(myContext, this);
connectionClass = ConnectionPumpio.class;
httpConnectionClassOauth = HttpConnectionOAuthJavaNet.class;
httpConnectionClassBasic = HttpConnectionEmpty.class;
isSearchTimelineSyncable = false;
isPrivateTimelineSyncable = false;
isInteractionsTimelineSyncable = false;
allowEditing = true;
isPrivateNoteAllowsReply = true;
textMediaTypePosted = TextMediaType.HTML;
textMediaTypeToPost = TextMediaType.HTML;
break;
case ACTIVITYPUB:
isOAuthDefault = true;
canChangeOAuth = false;
originHasUrl = false;
shouldSetNewUsernameManuallyIfOAuth = true;
shouldSetNewUsernameManuallyNoOAuth = false;
usernameRegExPattern = Patterns.USERNAME_REGEX_SIMPLE_PATTERN;
uniqueNameExamples = "AndStatus@pleroma.site kaniini@pleroma.site";
// This is not a hard limit, just for convenience
textLimitDefault = TEXT_LIMIT_MAXIMUM;
basicPath = BASIC_PATH_DEFAULT;
oauthPath = OAUTH_PATH_DEFAULT;
originFactory = myContext -> new OriginActivityPub(myContext, this);
connectionClass = ConnectionActivityPub.class;
httpConnectionClassOauth = HttpConnectionOAuthMastodon.class;
httpConnectionClassBasic = HttpConnectionEmpty.class;
isSearchTimelineSyncable = false;
isPrivateTimelineSyncable = false;
isPublicTimeLineSyncable = true;
isInteractionsTimelineSyncable = false;
allowEditing = true;
isPrivateNoteAllowsReply = true;
textMediaTypePosted = TextMediaType.HTML;
textMediaTypeToPost = TextMediaType.HTML;
break;
case GNUSOCIAL_TWITTER:
isOAuthDefault = false;
canChangeOAuth = false;
originHasUrl = true;
shouldSetNewUsernameManuallyIfOAuth = false;
shouldSetNewUsernameManuallyNoOAuth = true;
usernameRegExPattern = Patterns.USERNAME_REGEX_SIMPLE_PATTERN;
uniqueNameExamples = "AndStatus@loadaverage.org somebody@gnusocial.no";
canChangeSsl = true;
basicPath = BASIC_PATH_DEFAULT;
oauthPath = BASIC_PATH_DEFAULT;
originFactory = myContext -> new OriginGnuSocial(myContext, this);
connectionClass = ConnectionTwitterGnuSocial.class;
httpConnectionClassOauth = HttpConnectionOAuthApache.class;
httpConnectionClassBasic = HttpConnectionBasic.class;
isPublicTimeLineSyncable = true;
allowEditing = false;
isPrivateNoteAllowsReply = true;
textMediaTypePosted = TextMediaType.PLAIN;
textMediaTypeToPost = TextMediaType.PLAIN;
break;
case MASTODON:
isOAuthDefault = true;
canChangeOAuth = false;
originHasUrl = true;
shouldSetNewUsernameManuallyIfOAuth = false;
shouldSetNewUsernameManuallyNoOAuth = true;
usernameRegExPattern = Patterns.USERNAME_REGEX_SIMPLE_PATTERN;
uniqueNameExamples = "AndStatus@mastodon.social somebody@mstdn.io";
textLimitDefault = MASTODON_TEXT_LIMIT_DEFAULT;
basicPath = BASIC_PATH_DEFAULT;
oauthPath = OAUTH_PATH_DEFAULT;
originFactory = myContext -> new OriginMastodon(myContext, this);
connectionClass = ConnectionMastodon.class;
httpConnectionClassOauth = HttpConnectionOAuthMastodon.class;
httpConnectionClassBasic = HttpConnectionEmpty.class;
isSearchTimelineSyncable = true;
isPublicTimeLineSyncable = true;
allowEditing = false;
isPrivateNoteAllowsReply = true;
textMediaTypePosted = TextMediaType.HTML;
textMediaTypeToPost = TextMediaType.PLAIN;
break;
default:
originHasUrl = false;
usernameRegExPattern = Patterns.USERNAME_REGEX_SIMPLE_PATTERN;
originFactory = myContext -> new Origin(myContext, this);
connectionClass = ConnectionEmpty.class;
httpConnectionClassOauth = HttpConnectionEmpty.class;
httpConnectionClassBasic = HttpConnectionEmpty.class;
allowEditing = false;
isPrivateNoteAllowsReply = true;
uniqueNameExamples = "userName@hostName.org";
textMediaTypePosted = TextMediaType.PLAIN;
textMediaTypeToPost = TextMediaType.PLAIN;
break;
}
}
public Class<? extends org.andstatus.app.net.social.Connection> getConnectionClass() {
return connectionClass;
}
public Class<? extends org.andstatus.app.net.http.HttpConnection> getHttpConnectionClass(boolean isOAuth) {
if (fixIsOAuth(isOAuth)) {
return httpConnectionClassOauth;
} else {
return httpConnectionClassBasic;
}
}
@Override
public boolean isSelectable() {
return true;
}
@Override
public String getCode() {
return Long.toString(getId());
}
@Override
public CharSequence title(Context context) {
return getTitle();
}
@Override
public int getDialogTitleResId() {
return R.string.label_origin_type;
}
public long getId() {
return id;
}
public String getTitle() {
return title;
}
@Override
public String toString() {
return "OriginType: {id:" + id + ", title:'" + title + "'}";
}
public boolean fixIsOAuth(TriState triStateOAuth) {
return fixIsOAuth(triStateOAuth.toBoolean(isOAuthDefault));
}
public boolean fixIsOAuth(boolean isOAuthIn) {
boolean fixed = isOAuthIn;
if (fixed != isOAuthDefault && !canChangeOAuth) {
fixed = isOAuthDefault;
}
return fixed;
}
public boolean allowAttachmentForPrivateNote() {
return true; // Currently for all...
}
public static OriginType fromId( long id) {
for(OriginType val : values()) {
if (val.id == id) {
return val;
}
}
return UNKNOWN;
}
public static OriginType fromCode(String code) {
for(OriginType val : values()) {
if (val.getCode().equalsIgnoreCase(code)) {
return val;
}
}
return UNKNOWN;
}
public static OriginType fromTitle(String titleIn) {
return StringUtil.optNotEmpty(titleIn)
.flatMap(title -> Arrays.stream(values())
.filter(value -> value.getTitle().equalsIgnoreCase(title))
.findAny())
.orElse(UNKNOWN);
}
public boolean isTimelineTypeSyncable(TimelineType timelineType) {
if (timelineType == null || !timelineType.isSyncable()) {
return false;
}
switch(timelineType) {
case PUBLIC:
return isPublicTimeLineSyncable;
case SEARCH:
return isSearchTimelineSyncable;
case INTERACTIONS:
case UNREAD_NOTIFICATIONS:
case NOTIFICATIONS:
return isInteractionsTimelineSyncable;
case PRIVATE:
return isPrivateTimelineSyncable;
default:
return true;
}
}
public boolean isPublicTimeLineSyncable() {
return isPublicTimeLineSyncable;
}
public boolean isSearchTimelineSyncable() {
return isSearchTimelineSyncable;
}
public String partialPathToApiPath(String partialPath) {
if (!StringUtil.isEmpty(partialPath) && !partialPath.contains("://")) {
partialPath = getBasicPath() + "/" + partialPath;
}
return partialPath;
}
public String getBasicPath() {
return basicPath;
}
public String getOauthPath() {
return oauthPath;
}
public boolean allowEditing() {
return allowEditing;
}
public boolean isPrivateNoteAllowsReply() {
return isPrivateNoteAllowsReply;
}
public boolean isUsernameNeededToStartAddingNewAccount(boolean isOAuth) {
return isOAuth ? shouldSetNewUsernameManuallyIfOAuth : shouldSetNewUsernameManuallyNoOAuth;
}
public URL getUrlDefault() {
return urlDefault;
}
public Optional<String> getContentType() {
return Optional.empty();
}
public int getMaxAttachmentsToSend() {
return OriginConfig.getMaxAttachmentsToSend(this);
}
public boolean isPrivatePostsSupported() {
return this != TWITTER;
}
} | 39.817635 | 123 | 0.653682 |
7694d6037d71310f3523f90ad4b917ca6822d22b | 6,937 | lua | Lua | DMGInformer/lib/SAMemory/game/definitions.lua | Montrii/LUA-SAMP-DMGInformer | 31fab2ef7db293f9a713801abbca266ee71736a8 | [
"MIT"
] | 2 | 2021-07-07T11:21:24.000Z | 2022-01-07T19:56:54.000Z | DMGInformer/lib/SAMemory/game/definitions.lua | Montrii/LUA-SAMP-DMGInformer | 31fab2ef7db293f9a713801abbca266ee71736a8 | [
"MIT"
] | 1 | 2021-11-09T17:44:31.000Z | 2021-11-11T14:32:55.000Z | DMGInformer/lib/SAMemory/game/definitions.lua | Montrii/SAMP-DMGInformer | 31fab2ef7db293f9a713801abbca266ee71736a8 | [
"MIT"
] | null | null | null | local ffi = require 'ffi'
ffi.cdef[[
typedef enum eAudioPedType eAudioPedType;
typedef enum eSoundEnvironment eSoundEnvironment;
typedef enum eCopType eCopType;
typedef enum eObjectType eObjectType;
typedef enum eMoveState eMoveState;
typedef enum ePedStats ePedStats;
typedef enum eCarWeapon eCarWeapon;
typedef enum eCarLock eCarLock;
typedef enum eVehicleType eVehicleType;
typedef enum eVehicleApperance eVehicleApperance;
typedef enum eVehicleLightsFlags eVehicleLightsFlags;
typedef enum eVehicleCreatedBy eVehicleCreatedBy;
typedef enum eBombState eBombState;
typedef enum eWeaponState eWeaponState;
typedef enum ePedState ePedState;
typedef enum ePedType ePedType;
typedef enum eWeaponType eWeaponType;
typedef enum eFxSystemKillStatus eFxSystemKillStatus;
typedef enum eFxSystemPlayStatus eFxSystemPlayStatus;
typedef enum RwStreamType RwStreamType;
typedef enum RwStreamMode RwStreamMode;
typedef enum RpLightType RpLightType;
typedef enum RpLightFlags RpLightFlags;
typedef enum RwRasterLockFlags RwRasterLockFlags;
typedef enum RwCameraType RwCameraType;
typedef enum eVehicleLightsSize eVehicleLightsSize;
typedef enum eVehicleHandlingFlags eVehicleHandlingFlags;
typedef enum eVehicleHandlingModelFlags eVehicleHandlingModelFlags;
typedef enum eCarNodes eCarNodes;
typedef enum eDamageState eDamageState;
typedef enum tComponent tComponent;
typedef enum tComponentGroup tComponentGroup;
typedef enum eWheels eWheels;
typedef enum ePanels ePanels;
typedef enum eDoors eDoors;
typedef enum eLights eLights;
typedef enum eTrainNodes eTrainNodes;
typedef enum eTrainPassengersGenerationState eTrainPassengersGenerationState;
typedef enum eBikeNodes eBikeNodes;
typedef enum eBoatNodes eBoatNodes;
typedef enum eCamMode eCamMode;
typedef struct AnimBlendFrameData AnimBlendFrameData;
typedef struct CAEAudioEntity CAEAudioEntity;
typedef struct CAEPedAudioEntity CAEPedAudioEntity;
typedef struct CAEPedSpeechAudioEntity CAEPedSpeechAudioEntity;
typedef struct CAESound CAESound;
typedef struct CAETwinLoopSoundEntity CAETwinLoopSoundEntity;
typedef struct CAEVehicleAudioEntity CAEVehicleAudioEntity;
typedef struct tVehicleAudioSettings tVehicleAudioSettings;
typedef struct tVehicleSound tVehicleSound;
typedef struct CAEWeaponAudioEntity CAEWeaponAudioEntity;
typedef struct CAutoPilot CAutoPilot;
typedef struct CNodeAddress CNodeAddress;
typedef struct CCarPathLinkAddress CCarPathLinkAddress;
typedef struct CColBox CColBox;
typedef struct CColDisk CColDisk;
typedef struct CColLine CColLine;
typedef struct CCollisionData CCollisionData;
typedef struct CColModel CColModel;
typedef struct CColSphere CColSphere;
typedef struct CColTriangle CColTriangle;
typedef struct CColTrianglePlane CColTrianglePlane;
typedef struct CCopPed CCopPed;
typedef struct CCrimeBeingQd CCrimeBeingQd;
typedef struct CEntity CEntity;
typedef struct CEntityScanner CEntityScanner;
typedef struct CEventGroup CEventGroup;
typedef struct CEventHandler CEventHandler;
typedef struct CFire CFire;
typedef struct CObject CObject;
typedef struct CObjectInfo CObjectInfo;
typedef struct CompressedVector CompressedVector;
typedef struct CPed CPed;
typedef struct CPedAcquaintance CPedAcquaintance;
typedef struct CPedClothesDesc CPedClothesDesc;
typedef struct CPedIK CPedIK;
typedef struct CPedIntelligence CPedIntelligence;
typedef struct CPhysical CPhysical;
typedef struct CPlaceable CPlaceable;
typedef struct CPlayerData CPlayerData;
typedef struct CRealTimeShadow CRealTimeShadow;
typedef struct CReference CReference;
typedef struct CReferences CReferences;
typedef struct CShadowCamera CShadowCamera;
typedef struct CSimpleTransform CSimpleTransform;
typedef struct CStoredCollPoly CStoredCollPoly;
typedef struct CTask CTask;
typedef struct CTaskManager CTaskManager;
typedef struct CTaskTimer CTaskTimer;
typedef struct CVehicle CVehicle;
typedef struct CWanted CWanted;
typedef struct CWeapon CWeapon;
typedef struct FxSystem_c FxSystem_c;
typedef struct tFlyingHandlingData tFlyingHandlingData;
typedef struct tHandlingData tHandlingData;
typedef struct CTransmission CTransmission;
typedef struct tTransmissionGear tTransmissionGear;
typedef struct CAttractorScanner CAttractorScanner;
typedef struct C2dEffect C2dEffect;
typedef struct CEventScanner CEventScanner;
typedef struct CAEPoliceScannerAudioEntity CAEPoliceScannerAudioEntity;
typedef struct CAutomobile CAutomobile;
typedef struct CDamageManager CDamageManager;
typedef struct CDoor CDoor;
typedef struct CBouncingPanel CBouncingPanel;
typedef struct CColPoint CColPoint;
typedef struct CHeli CHeli;
typedef struct CPlane CPlane;
typedef struct CTrain CTrain;
typedef struct CBike CBike;
typedef struct CRideAnimData CRideAnimData;
typedef struct CPool CPool;
typedef struct CBmx CBmx;
typedef struct CColourSet CColourSet;
typedef struct CMatrix CMatrix;
typedef struct tBoatHandlingData tBoatHandlingData;
typedef struct CBoat CBoat;
typedef struct CCamera CCamera;
typedef struct CCam CCam;
typedef struct CQueuedMode CQueuedMode;
typedef struct CCamPathSplines CCamPathSplines;
typedef struct CWeaponInfo CWeaponInfo;
typedef struct CPlayerInfo CPlayerInfo;
typedef struct CPlayerPed CPlayerPed;
typedef struct CWeaponEffects CWeaponEffects;
typedef struct RwV2D RwV2D;
typedef struct RwV3D RwV3D;
typedef struct RwPlane RwPlane;
typedef struct RwBBox RwBBox;
typedef struct RpGeometry RpGeometry;
typedef struct RpClump RpClump;
typedef struct RwRaster RwRaster;
typedef struct RpMaterialLighting RpMaterialLighting;
typedef struct RpMaterialList RpMaterialList;
typedef struct RpMaterial RpMaterial;
typedef struct RpTriangle RpTriangle;
typedef struct RwTextureCoordinates RwTextureCoordinates;
typedef struct RwColor RwColor;
typedef struct RwColorFloat RwColorFloat;
typedef struct RwObjectFrame RwObjectFrame;
typedef struct RpAtomic RpAtomic;
typedef struct RwCamera RwCamera;
typedef struct RpLight RpLight;
typedef struct RwList RwList;
typedef struct RwListEntry RwListEntry;
typedef struct RpInterpolation RpInterpolation;
typedef struct RwObject RwObject;
typedef struct RwMatrix RwMatrix;
typedef struct RwTexDictionary RwTexDictionary;
typedef struct RwCameraFrustum RwCameraFrustum;
typedef struct RwSphere RwSphere;
typedef struct RwTexture RwTexture;
typedef struct RpMaterials RpMaterials;
typedef struct RwVertex RwVertex;
typedef struct RwBuffer RwBuffer;
typedef struct RwBBox RwBBox;
typedef struct RwFrame RwFrame;
typedef struct RwStream RwStream;
typedef struct RwError RwError;
typedef void* RpWorld;
typedef union RwStreamTypeData RwStreamTypeData;
typedef union tPoolObjectFlags tPoolObjectFlags;
]]
| 40.567251 | 79 | 0.83206 |
d2c42f2a74e98705aeeefe6d77598e12fdc80191 | 6,086 | php | PHP | resources/views/rute/index.blade.php | jainalpermana/Aplikasi_Ticketing | 491aa74acc23d7bb2c1b4051a06b9d3fb490001e | [
"MIT"
] | null | null | null | resources/views/rute/index.blade.php | jainalpermana/Aplikasi_Ticketing | 491aa74acc23d7bb2c1b4051a06b9d3fb490001e | [
"MIT"
] | null | null | null | resources/views/rute/index.blade.php | jainalpermana/Aplikasi_Ticketing | 491aa74acc23d7bb2c1b4051a06b9d3fb490001e | [
"MIT"
] | null | null | null | @if(Auth::user()->jabatan == 'admin')
@extends('layouts.app1')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Input Rute</div>
<div class="panel-body">
<form class="form-horizontal" method="POST" action="/rute">
<div class="form-group{{ $errors->has('depart_at') ? ' has-error' : '' }}">
<label class="col-md-4 control-label">Depart At</label>
<div class="col-md-6">
<input type="text" class="form-control" name="depart_at" required autofocus>
@if ($errors->has('depart_at'))
<span class="help-block">
<strong>{{ $errors->first('depart_at') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('rute_form') ? ' has-error' : '' }}">
<label class="col-md-4 control-label">Rute Form</label>
<div class="col-md-6">
<input type="text" class="form-control" name="rute_form" required>
@if ($errors->has('rute_form'))
<span class="help-block">
<strong>{{ $errors->first('rute_form') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('rute_to') ? ' has-error' : '' }}">
<label class="col-md-4 control-label">Rute To</label>
<div class="col-md-6">
<input type="text" class="form-control" name="rute_to" required>
@if ($errors->has('rute_to'))
<span class="help-block">
<strong>{{ $errors->first('rute_to') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('price') ? ' has-error' : '' }}">
<label class="col-md-4 control-label">Price</label>
<div class="col-md-6">
<input type="text" class="form-control" name="price" required>
@if ($errors->has('price'))
<span class="help-block">
<strong>{{ $errors->first('price') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group">
<div class="col-md-8 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Submit
</button>
<input type="hidden" name="_token" value="{{ csrf_token() }}">
</div>
</div>
</form>
</div>
<form action="{{ url('rutequery') }}" method="GET">
<input type="text" placeholder="Cari...." name="q">
<span class="input-gro up-btn">
<button class="btn btn-info" type="submit">Cari!</button>
</span>
</form>
<div class="panel panel-default">
<table class="table">
<thead>
<tr>
<th>Depart At</th>
<th>Rute From</th>
<th>Rute to</th>
<th>Price</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach($rute as $r)
<tr>
<td>{{$r->depart_at}}</td>
<td>{{$r->rute_form}}</td>
<td>{{$r->rute_to}}</td>
<td>{{$r->price}}</td>
<td>
<a type="button" class="btn btn-primary" href="/rute/{{$r->id}}/edit"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a>
</td>
<td>
<a type="button" class="btn btn-primary" href="/rute/{{$r->id}}/"><span class="glyphicon glyphicon-cog" aria-hidden="true"></span></a>
</td>
<td>
<form action="/rute/{{$r->id}}" method="post">
<input type="hidden" name="_method" value="delete">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<button type="submit" name="name" value="delete" class="btn btn-danger">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
</button>
</form>
</td>
</tr>
@endforeach
</tbody>
</table>
{!! $rute->links() !!}
</div>
</div>
</div>
</div>
@endsection
@else
<a href='/home'>Back</a>
@endif | 42.859155 | 173 | 0.341932 |
185af48602662764c4fc5fd5976757d08f8cae91 | 1,550 | rb | Ruby | test/integration/users_login_test.rb | danpaulgo/rails-tutorial-sample-app | b6d974d8fc04f17f90ae222eb130e3efe82da1e6 | [
"Ruby",
"Beerware",
"MIT"
] | 1 | 2017-04-30T18:58:34.000Z | 2017-04-30T18:58:34.000Z | test/integration/users_login_test.rb | danpaulgo/rails-tutorial-sample-app | b6d974d8fc04f17f90ae222eb130e3efe82da1e6 | [
"Ruby",
"Beerware",
"MIT"
] | null | null | null | test/integration/users_login_test.rb | danpaulgo/rails-tutorial-sample-app | b6d974d8fc04f17f90ae222eb130e3efe82da1e6 | [
"Ruby",
"Beerware",
"MIT"
] | null | null | null | require 'test_helper'
class UsersLoginTest < ActionDispatch::IntegrationTest
def setup
@user = users(:daniel)
end
test "flash message disappears on second page" do
User.create(email: "user@example.com", password: "password")
get login_path
post login_path, params: {session:{email: "user@example.com", password: "wrong_password"}}
assert_select 'div.alert'
assert_not flash.empty?
get root_path
assert_select 'div.alert', false
assert flash.empty?
end
test "Valid login followed by logout" do
get login_path
post login_path, params: {session:{email: "danpaulgo@aol.com", password: "BayShore61893"}}
assert is_logged_in?
assert_redirected_to @user
follow_redirect!
assert_template 'users/show'
assert_select "a[href=?]", login_path, count: 0
assert_select "a[href=?]", logout_path
assert_select "a[href=?]", user_path(@user)
delete logout_path
assert_not is_logged_in?
assert_redirected_to root_path
delete logout_path # Tests that hitting the delete button after user is logged out does not raise error AND redirects to home properly
follow_redirect!
assert_select "a[href=?]", login_path
assert_select "a[href=?]", logout_path, count: 0
assert_select "a[href=?]", user_path(@user), count: 0
end
test "Login with remember" do
login_as(@user)
assert_not_nil cookies['remember_token']
end
test "Login without remember" do
login_as(@user, remember_me: 0)
assert_nil cookies['remember_token']
end
end
| 30.392157 | 138 | 0.710323 |
265a205d9eb9ec5d3e775513893ad9006dc14af6 | 778 | java | Java | Generics/src/estruturaChaveValor/Par.java | brunofaria27/Curso-Java-Udemy | 42406ca75b3565e660293af11efbfc1fc4e6da97 | [
"MIT"
] | 1 | 2021-07-08T09:37:37.000Z | 2021-07-08T09:37:37.000Z | Generics/src/estruturaChaveValor/Par.java | brunofaria27/Curso-Java-Udemy | 42406ca75b3565e660293af11efbfc1fc4e6da97 | [
"MIT"
] | null | null | null | Generics/src/estruturaChaveValor/Par.java | brunofaria27/Curso-Java-Udemy | 42406ca75b3565e660293af11efbfc1fc4e6da97 | [
"MIT"
] | null | null | null | package estruturaChaveValor;
import java.util.Objects;
public class Par<K, V> {
public K chave;
public V valor;
public Par() {
}
public Par(K chave, V valor) {
this.chave = chave;
this.valor = valor;
}
public K getChave() {
return chave;
}
public void setChave(K chave) {
this.chave = chave;
}
public V getValor() {
return valor;
}
public void setValor(V valor) {
this.valor = valor;
}
@Override
public int hashCode() {
return Objects.hash(chave);
}
@SuppressWarnings("rawtypes")
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Par other = (Par) obj;
return Objects.equals(chave, other.chave);
}
} | 14.961538 | 44 | 0.641388 |
dd8d7879aff300677a3bebedf8c4e2c7b9f0a1e8 | 70 | php | PHP | addons/ewei_shopv2/plugin/creditshop/core/page_mobile.php | xunexploit/phpdan9 | 2390ad9b62c6424d158c265b49b3a2ed6a3e3c41 | [
"Apache-2.0"
] | null | null | null | addons/ewei_shopv2/plugin/creditshop/core/page_mobile.php | xunexploit/phpdan9 | 2390ad9b62c6424d158c265b49b3a2ed6a3e3c41 | [
"Apache-2.0"
] | null | null | null | addons/ewei_shopv2/plugin/creditshop/core/page_mobile.php | xunexploit/phpdan9 | 2390ad9b62c6424d158c265b49b3a2ed6a3e3c41 | [
"Apache-2.0"
] | null | null | null | <?php
class CreditshopMobilePage extends PluginMobilePage
{}
?>
| 11.666667 | 52 | 0.728571 |
26242ef64fbd8d27f9918fc3701119f9bb5c94f9 | 10,256 | java | Java | src/main/java/de/schildbach/pte/AustraliaProvider.java | Transportflow/Transportflow-Backend | bcade59babf904431b01071926756e00c11cbb72 | [
"BSD-3-Clause"
] | 1 | 2020-03-16T15:38:54.000Z | 2020-03-16T15:38:54.000Z | src/main/java/de/schildbach/pte/AustraliaProvider.java | Transportflow/Transportflow-Backend | bcade59babf904431b01071926756e00c11cbb72 | [
"BSD-3-Clause"
] | 3 | 2020-02-19T15:07:05.000Z | 2020-10-04T17:52:36.000Z | src/main/java/de/schildbach/pte/AustraliaProvider.java | Transportflow/Transportflow-Backend | bcade59babf904431b01071926756e00c11cbb72 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2017 the original author or authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.schildbach.pte;
import java.util.HashMap;
import java.util.Map;
import de.schildbach.pte.dto.Product;
import de.schildbach.pte.dto.Style;
import okhttp3.HttpUrl;
public class AustraliaProvider extends AbstractNavitiaProvider {
public static final String NETWORK_PTV = "PTV - Public Transport Victoria";
public static final String NETWORK_TAS = "Metro Tasmania";
public static final String NETWORK_QLD = "TransLink";
public static final String NETWORK_SA = "Adelaide Metro";
public static final String NETWORK_WA = "Transperth";
private static final Map<String, Style> STYLES = new HashMap<>();
static {
// Melbourne train networks.
// https://static.ptv.vic.gov.au/Maps/1482457134/PTV_Train-Network-Map_2017.pdf
STYLES.put(NETWORK_PTV + "|SBelgrave", new Style(Style.Shape.RECT, Style.parseColor("#094B8D"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|SLilydale", new Style(Style.Shape.RECT, Style.parseColor("#094B8D"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|SAlamein", new Style(Style.Shape.RECT, Style.parseColor("#094B8D"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|SGlen Waverly",
new Style(Style.Shape.RECT, Style.parseColor("#094B8D"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|SSunbury", new Style(Style.Shape.RECT, Style.parseColor("#FFB531"), Style.BLACK));
STYLES.put(NETWORK_PTV + "|SCraigieburn",
new Style(Style.Shape.RECT, Style.parseColor("#FFB531"), Style.BLACK));
STYLES.put(NETWORK_PTV + "|SUpfield", new Style(Style.Shape.RECT, Style.parseColor("#FFB531"), Style.BLACK));
STYLES.put(NETWORK_PTV + "|SSouth Morang",
new Style(Style.Shape.RECT, Style.parseColor("#E42B23"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|SHurstbridge",
new Style(Style.Shape.RECT, Style.parseColor("#E42B23"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|SPakenham", new Style(Style.Shape.RECT, Style.parseColor("#16B4E8"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|SCranbourne", new Style(Style.Shape.RECT, Style.parseColor("#16B4E8"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|SFrankston", new Style(Style.Shape.RECT, Style.parseColor("#149943"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|SWerribee", new Style(Style.Shape.RECT, Style.parseColor("#149943"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|SWilliamstown",
new Style(Style.Shape.RECT, Style.parseColor("#149943"), Style.WHITE));
// Truncated version of "Sandringham". Not sure if this is a bug/limitation in either Navitia or the
// GTFS feed from PTV.
STYLES.put(NETWORK_PTV + "|SSandringha", new Style(Style.Shape.RECT, Style.parseColor("#FC7EBB"), Style.BLACK));
// Difficult to test this, because the line is open only for select periods of the year (e.g. for the
// Melbourne Show in September) and at time of writing, the GTFS feed did not have data up until then.
STYLES.put(NETWORK_PTV + "|SFlemington Racecourse",
new Style(Style.Shape.RECT, Style.parseColor("#9A9B9F"), Style.BLACK));
// Melbourne Trams.
// https://static.ptv.vic.gov.au/Maps/1493356745/PTV_Tram-Network-Map_2017.pdf
STYLES.put(NETWORK_PTV + "|T1", new Style(Style.Shape.RECT, Style.parseColor("#B8C53A"), Style.BLACK));
// The GTFS feed seems to combine 3 + 3a like this, but for completeness we include 3 and 3a
// separately too.
STYLES.put(NETWORK_PTV + "|T3", new Style(Style.Shape.RECT, Style.parseColor("#87D9F2"), Style.BLACK));
STYLES.put(NETWORK_PTV + "|T3a", new Style(Style.Shape.RECT, Style.parseColor("#87D9F2"), Style.BLACK));
STYLES.put(NETWORK_PTV + "|T3/3a", new Style(Style.Shape.RECT, Style.parseColor("#87D9F2"), Style.BLACK));
STYLES.put(NETWORK_PTV + "|T5", new Style(Style.Shape.RECT, Style.parseColor("#F44131"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|T6", new Style(Style.Shape.RECT, Style.parseColor("#004969"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|T11", new Style(Style.Shape.RECT, Style.parseColor("#7ECBA4"), Style.BLACK));
STYLES.put(NETWORK_PTV + "|T12", new Style(Style.Shape.RECT, Style.parseColor("#008A99"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|T16", new Style(Style.Shape.RECT, Style.parseColor("#FFD86C"), Style.BLACK));
STYLES.put(NETWORK_PTV + "|T19", new Style(Style.Shape.RECT, Style.parseColor("#87457A"), Style.WHITE)); // Night
STYLES.put(NETWORK_PTV + "|T30", new Style(Style.Shape.RECT, Style.parseColor("#3343A3"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|T35", new Style(Style.Shape.RECT, Style.parseColor("#6E351C"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|T48", new Style(Style.Shape.RECT, Style.parseColor("#45474C"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|T57", new Style(Style.Shape.RECT, Style.parseColor("#45C6CE"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|T58", new Style(Style.Shape.RECT, Style.parseColor("#878E94"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|T59", new Style(Style.Shape.RECT, Style.parseColor("#438459"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|T64", new Style(Style.Shape.RECT, Style.parseColor("#2EB070"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|T67", new Style(Style.Shape.RECT, Style.parseColor("#B47962"), Style.WHITE)); // Night
STYLES.put(NETWORK_PTV + "|T70", new Style(Style.Shape.RECT, Style.parseColor("#FC8BC1"), Style.BLACK));
STYLES.put(NETWORK_PTV + "|T72", new Style(Style.Shape.RECT, Style.parseColor("#97BAA6"), Style.BLACK));
STYLES.put(NETWORK_PTV + "|T75", new Style(Style.Shape.RECT, Style.parseColor("#00A8DF"), Style.WHITE)); // Night
STYLES.put(NETWORK_PTV + "|T78", new Style(Style.Shape.RECT, Style.parseColor("#7B7EC0"), Style.WHITE));
STYLES.put(NETWORK_PTV + "|T82", new Style(Style.Shape.RECT, Style.parseColor("#BCD649"), Style.BLACK));
STYLES.put(NETWORK_PTV + "|T86", new Style(Style.Shape.RECT, Style.parseColor("#FFB730"), Style.BLACK)); // Night
STYLES.put(NETWORK_PTV + "|T96", new Style(Style.Shape.RECT, Style.parseColor("#F2428F"), Style.WHITE)); // Night
STYLES.put(NETWORK_PTV + "|T109", new Style(Style.Shape.RECT, Style.parseColor("#FF7B24"), Style.WHITE)); // Night
STYLES.put(NETWORK_PTV + "|B", new Style(Style.Shape.RECT, Style.parseColor("#EA8D1E"), Style.WHITE));
// NOTE: This is a work around for poor GTFS data. We should instead say "All REGIONAL_TRAINs are
// purple", but the GTFS feed from Navitia instead returns rural trains as SUBURBAN_TRAINs. Given we
// have already provided colours for all suburban trains above, this more general statement about
// suburban trains results in all regional trains being coloured purple, as intented.
STYLES.put(NETWORK_PTV + "|S", new Style(Style.Shape.RECT, Style.parseColor("#782F9A"), Style.WHITE));
// Sydney train networks.
// http://www.sydneytrains.info/stations/pdf/suburban_map.pdf
// Navitia is not returning enough info in "display_informations" to colourise correctly.
// Specifically, they are not returning "code" which usually is the display name of the line.
// At any rate, the EFA provider for Sydney is likely going to be better than this Navitia provider
// anyway.
// Adelaide train/tram networks.
// These are already colourised correctly by the GTFS data given to Navitia.
// But for reference, the map is available at https://www.adelaidemetro.com.au/Timetables-Maps/Maps.
// Brisbane train/tram/bus/ferry networks.
// These are already colourised correctly by the GTFS data given to Navitia.
// But for reference, the maps are available at https://translink.com.au/plan-your-journey/maps.
// Perth train/bus/ferry networks.
// These are already colourised correctly by the GTFS data given to Navitia.
// The styles do not include "display_informations" with a proper "code" though, so the names are not
// displayed. But for reference, the maps are available at
// http://www.transperth.wa.gov.au/Journey-Planner/Network-Maps.
// Tasmania bus networks.
// Somewhat colourised in Navitia (e.g. Launceston has green buses), but it is incorrect (e.g.
// Launceston should have all sorts of different coloured buses). Maps are available at
// https://www.metrotas.com.au/timetables/.
}
public AustraliaProvider(final HttpUrl apiBase, final String authorization) {
super(NetworkId.AUSTRALIA, apiBase, authorization);
setTimeZone("Australia/Melbourne");
setStyles(STYLES);
}
public AustraliaProvider(final String authorization) {
super(NetworkId.AUSTRALIA, authorization);
setTimeZone("Australia/Melbourne");
setStyles(STYLES);
}
@Override
public String region() {
return "au";
}
@Override
protected Style getLineStyle(String network, Product product, String code, String backgroundColor,
String foregroundColor) {
final Style overridenStyle = lineStyle(network, product, code);
if (overridenStyle != Standard.STYLES.get(product))
return overridenStyle;
else
return super.getLineStyle(network, product, code, backgroundColor, foregroundColor);
}
}
| 61.783133 | 122 | 0.682137 |
2e4eb236dee1cfe593ed669399ae7ce86efaf518 | 1,540 | sql | SQL | ch06/final/guitarwars.sql | bfprivati/PHP | 0d34f2d79a634a4a5e0d3b884965997111cc6984 | [
"MIT"
] | null | null | null | ch06/final/guitarwars.sql | bfprivati/PHP | 0d34f2d79a634a4a5e0d3b884965997111cc6984 | [
"MIT"
] | null | null | null | ch06/final/guitarwars.sql | bfprivati/PHP | 0d34f2d79a634a4a5e0d3b884965997111cc6984 | [
"MIT"
] | null | null | null | CREATE TABLE `guitarwars` (
`id` INT AUTO_INCREMENT,
`date` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`name` VARCHAR(32),
`score` INT,
`screenshot` VARCHAR(64),
`approved` TINYINT(1) DEFAULT 0,
PRIMARY KEY (`id`),
KEY `name` (`name`)
);
INSERT INTO `guitarwars` VALUES (21, '2008-05-01 20:36:07', 'Belita Chevy', 282470, 'belitasscore.gif', 1);
INSERT INTO `guitarwars` VALUES (22, '2008-05-01 20:36:45', 'Jacob Scorcherson', 389740, 'jacobsscore.gif', 1);
INSERT INTO `guitarwars` VALUES (23, '2008-05-01 20:37:02', 'Nevil Johansson', 98430, 'nevilsscore.gif', 1);
INSERT INTO `guitarwars` VALUES (24, '2008-05-01 20:37:23', 'Paco Jastorius', 127650, 'pacosscore.gif', 1);
INSERT INTO `guitarwars` VALUES (25, '2008-05-01 20:37:40', 'Phiz Lairston', 186580, 'phizsscore.gif', 1);
INSERT INTO `guitarwars` VALUES (26, '2008-05-01 20:38:00', 'Kenny Lavitz', 64930, 'kennysscore.gif', 1);
INSERT INTO `guitarwars` VALUES (27, '2008-05-01 20:38:23', 'Jean Paul Jones', 243260, 'jeanpaulsscore.gif', 1);
INSERT INTO `guitarwars` VALUES (28, '2008-05-01 21:14:56', 'Leddy Gee', 308710, 'leddysscore.gif', 1);
INSERT INTO `guitarwars` VALUES (29, '2008-05-01 21:15:17', 'T-Bone Taylor', 354190, 'tbonesscore.gif', 1);
INSERT INTO `guitarwars` VALUES (31, '2008-05-02 20:32:54', 'Biff Jeck', 314340, 'biffsscore.gif', 1);
INSERT INTO `guitarwars` VALUES (32, '2008-05-02 20:36:38', 'Pez Law', 322710, 'pezsscore.gif', 1);
INSERT INTO `guitarwars` VALUES (34, '2008-05-05 23:28:07', 'Jacob Scorcherson', 465730, 'jacobsscore2.gif', 1);
| 64.166667 | 112 | 0.686364 |
beac54d362791ad2bad706ba23fd40278dd2abe5 | 3,222 | rs | Rust | rbus-derive/src/types/derive/mod.rs | KokaKiwi/rbus | e00ca507bfef22cea5a9fc6c77ef318c83920147 | [
"BSD-3-Clause"
] | null | null | null | rbus-derive/src/types/derive/mod.rs | KokaKiwi/rbus | e00ca507bfef22cea5a9fc6c77ef318c83920147 | [
"BSD-3-Clause"
] | null | null | null | rbus-derive/src/types/derive/mod.rs | KokaKiwi/rbus | e00ca507bfef22cea5a9fc6c77ef318c83920147 | [
"BSD-3-Clause"
] | null | null | null | use super::{gen_proxy_methods, ImplGenerator};
use crate::utils::*;
use derive_enum::*;
use derive_struct::*;
pub use fields::*;
use proc_macro2::{Span, TokenStream};
use std::convert::{TryFrom, TryInto};
use syn::parse::{Parse, ParseStream, Result};
pub use variants::*;
mod derive_enum;
mod derive_struct;
mod fields;
mod variants;
type ImplMethod = (&'static str, TokenStream);
type ImplMethods = Vec<ImplMethod>;
#[derive(Debug, Clone)]
pub enum DeriveData {
Enum(DeriveEnum),
Struct(DeriveStruct),
}
impl DeriveData {
fn gen_methods(&self, ty: &DeriveTypeDef, gen: &ImplGenerator) -> Result<ImplMethods> {
let dbus = ty.metas.find_meta_nested("dbus");
let proxy = dbus.find_meta_nested("proxy");
if proxy.is_empty() {
match self {
DeriveData::Enum(ref data) => data.gen_methods(ty, gen),
DeriveData::Struct(ref data) => data.gen_methods(gen),
}
} else {
gen_proxy_methods(gen, ty.span, proxy)
}
}
}
impl TryFrom<syn::Data> for DeriveData {
type Error = syn::Error;
fn try_from(data: syn::Data) -> Result<DeriveData> {
let data = match data {
syn::Data::Enum(data) => DeriveData::Enum(data.try_into()?),
syn::Data::Struct(data) => DeriveData::Struct(data.try_into()?),
_ => return Err(syn::Error::new(Span::call_site(), "Data not supported for derive")),
};
Ok(data)
}
}
#[derive(Debug, Clone)]
pub struct DeriveTypeDef {
pub span: Span,
pub metas: Metas,
pub name: syn::Ident,
pub generics: syn::Generics,
pub data: DeriveData,
}
impl DeriveTypeDef {
fn impl_type(self) -> Result<TokenStream> {
let generics = self.gen_generics()?;
let mut gen = ImplGenerator::new_ident(self.span, self.metas.clone(), Some(generics), self.name.clone());
let methods = self.data.gen_methods(&self, &gen)?;
for (name, method) in methods.into_iter() {
gen.add_method(name, method);
}
gen.override_methods_from_metas()?;
gen.gen_impl()
}
fn gen_generics(&self) -> Result<syn::Generics> {
let mut generics = self.generics.clone();
if !generics.params.is_empty() || generics.where_clause.is_some() {
let where_clause = generics.make_where_clause();
for type_param in self.generics.type_params() {
let name = &type_param.ident;
let predicate = syn::parse_quote! { #name: DBusType };
where_clause.predicates.push(predicate);
}
}
Ok(generics)
}
}
impl Parse for DeriveTypeDef {
fn parse(input: ParseStream) -> Result<Self> {
use syn::spanned::Spanned;
let derive_input = input.parse::<syn::DeriveInput>()?;
Ok(DeriveTypeDef {
span: derive_input.span(),
metas: Metas::from_attributes(&derive_input.attrs)?,
name: derive_input.ident,
generics: derive_input.generics,
data: DeriveData::try_from(derive_input.data)?,
})
}
}
pub fn derive_type(data: DeriveTypeDef) -> Result<TokenStream> {
data.impl_type()
}
| 28.767857 | 113 | 0.607387 |
0ca33e888a8c5506799931e71fe1070bf6588145 | 3,758 | py | Python | we_sensesim.py | y95847frank/GenSense | 0da122bea9b7bd51444748444700b5f788bd8a48 | [
"MIT"
] | 3 | 2018-05-31T05:52:18.000Z | 2019-12-20T07:15:56.000Z | we_sensesim.py | y95847frank/GenSense | 0da122bea9b7bd51444748444700b5f788bd8a48 | [
"MIT"
] | null | null | null | we_sensesim.py | y95847frank/GenSense | 0da122bea9b7bd51444748444700b5f788bd8a48 | [
"MIT"
] | null | null | null | import numpy as np
import sys
import utils
import os
from collections import defaultdict
from nltk.corpus import wordnet as wn
from scipy.spatial.distance import cosine
from scipy.spatial.distance import correlation
from numpy.linalg import norm
from scipy.stats import spearmanr, pearsonr
from utils import trim
import pdb
"""
Sense embedding format: see https://github.com/sjauhar/SenseRetrofit
Use ',' to seperate Datasets
"""
def run(path, fname):
'''
if len(sys.argv) != 3:
print("Usage: python we_sensesim.py SenseEmbedding Datasets")
exit(0)
'''
#wvs = utils.readWordVecs(os.path.expanduser(full_path))
wvs = utils.readWordVecs(sys.argv[1])
print("Finish reading vector!")
wvssen = {}
s_list = defaultdict(list)
for sense in wvs:
wvssen[sense.split("%")[0]] = ''
s_list[sense.split("%")[0]].append(sense)
mean_vector = np.mean(wvs.values(), axis=0)
spear_score_max = []
spear_score_avg = []
f_name = []
for name in fname:
full_path = os.path.join(path, name)
filenames = os.path.expanduser(full_path).split(',')
pairs, scores = utils.readDataset(filenames[0], no_skip=True)
#f_name.append(filenames[0])
#print("Pair number for %s: %d"%(filenames[0], len(pairs)))
coefs_max = []
coefs_avg = []
missing = 0
for pair in pairs:
vecs0 = []
trimed_p0 = trim(pair[0], wvssen)
if trimed_p0 not in wvssen:
vecs0.append(mean_vector)
missing += 1
#print trimed_p0,
else:
for sense in s_list[trimed_p0]:
vecs0.append(wvs[sense])
'''
for sense in wvs:
word = sense.split("%")[0]
if trimed_p0 == word:
vecs0.append(wvs[sense])
'''
vecs1 = []
trimed_p1 = trim(pair[1],wvssen)
if trimed_p1 not in wvssen:
vecs1.append(mean_vector)
missing += 1
#print trimed_p1,
else:
for sense in s_list[trimed_p1]:
vecs1.append(wvs[sense])
'''
for sense in wvs:
word = sense.split("%")[0]
if trimed_p1 == word:
vecs1.append(wvs[sense])
'''
'''
max_value and avg_value: see "Multi-Prototype Vector-Space Models of Word Meaning" section 3.2 Measuring Semantic Similarity
http://www.cs.utexas.edu/~ml/papers/reisinger.naacl-2010.pdf
'''
max_value = max([1-cosine(a,b) for a in vecs0 for b in vecs1])
avg_value = np.mean([1-cosine(a,b) for a in vecs0 for b in vecs1])
coefs_max.append(max_value)
coefs_avg.append(avg_value)
spear_max = spearmanr(scores, coefs_max)
pearson_max = pearsonr(scores, coefs_max)
spear_avg = spearmanr(scores, coefs_avg)
pearson_avg = pearsonr(scores, coefs_avg)
spear_score_max.append(spear_max[0])
spear_score_avg.append(spear_avg[0])
print 'type \t',
for i in range(len(fname)):
print fname[i].split('.')[0],
print '\nspear max\t',
for i in range(len(fname)):
print '%.04f,' % (spear_score_max[i]),
print '\nspear avg\t',
for i in range(len(fname)):
print '%.04f,' % (spear_score_avg[i]),
if __name__ == "__main__":
run('./eval_data', ['EN-MEN-n.txt', 'EN-MEN-l.txt', 'EN-TRUK.txt', 'EN-RW.txt', 'EN-WS353.txt', 'EN-WS353-s.txt', 'EN-WS353-r.txt'])
| 33.256637 | 140 | 0.549228 |
9698c1b8ad14af65b2ff76499df2e19d1964c839 | 99,658 | html | HTML | source/fansites/news/t-1473427.html | StuartKent17/WoWNotes | f1d272a6d3239a0996a88b27fa93e4bf7765f46d | [
"AAL"
] | null | null | null | source/fansites/news/t-1473427.html | StuartKent17/WoWNotes | f1d272a6d3239a0996a88b27fa93e4bf7765f46d | [
"AAL"
] | 1 | 2021-05-10T14:48:29.000Z | 2021-05-10T14:48:29.000Z | source/fansites/news/t-1473427.html | StuartKent17/WoWNotes | f1d272a6d3239a0996a88b27fa93e4bf7765f46d | [
"AAL"
] | null | null | null | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="that, flying, and, the, level, max, mounts, you, been, have, wod, objection, fly, zones, new, for, classic, how, from, draenor, blizzards, never, has, stance, than, optimistic, theyll, think, 6.1, bring, back, more, youre, after, cant, thats, well-articulated, works, changing, reason, breaks, one, isnt, immersion, theyre, like, red, until, leveling, herring" />
<meta name="description" content="Warlords of Draenor Pre-Order Now Available
http://media.mmo-champion.com/images/news/2014/march/wodtime.jpg?A" />
<title> Warlords of Draenor Pre-Order and Level 90 Boosts Now Available [Archive] - MMO-Champion</title>
<link rel="stylesheet" type="text/css" href="https://www.mmo-champion.com/archive/archive.css" />
</head>
<body>
<div class="pagebody">
<div id="navbar"><a href="https://www.mmo-champion.com/archive/index.php">MMO-Champion</a> > <a href="https://www.mmo-champion.com/archive/index.php/f-242.html">News</a> > <a href="https://www.mmo-champion.com/archive/index.php/f-252.html">News</a> > Warlords of Draenor Pre-Order and Level 90 Boosts Now Available</div>
<hr />
<div class="pda"><a href="https://www.mmo-champion.com/archive/index.php/t-1473427.html?pda=1" rel="nofollow">PDA</a></div>
<p class="largefont">View Full Version : <a href="https://www.mmo-champion.com/threads/1473427-Warlords-of-Draenor-Pre-Order-and-Level-90-Boosts-Now-Available">Warlords of Draenor Pre-Order and Level 90 Boosts Now Available</a></p>
<hr />
<div class="floatcontainer"> </div><br /><div id="pagenumbers"><b>Pages :</b>
[<b>1</b>]
<a href="https://www.mmo-champion.com/archive/index.php/t-1473427-p-2.html">2</a>
<a href="https://www.mmo-champion.com/archive/index.php/t-1473427-p-3.html">3</a>
</div>
<hr />
<div class="post"><div class="posttop"><div class="username">chaud</div><div class="date">2014-03-10, 05:06 PM</div></div><div class="posttext">Warlords of Draenor Pre-Order Now Available<br />
<br />
<br />
http://media.mmo-champion.com/images/news/2014/march/wodtime.jpg?A (https://battle.net/shop/en/product/world-of-warcraft-warlords-of-draenor)</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc80b35b5c2d</div><div class="date">2014-03-10, 05:07 PM</div></div><div class="posttext">No it isnt. And that thing on the account page has been there for a few days.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Sildor</div><div class="date">2014-03-10, 05:07 PM</div></div><div class="posttext">Saw it coming!</div></div><hr />
<div class="post"><div class="posttop"><div class="username">frodoh</div><div class="date">2014-03-10, 05:09 PM</div></div><div class="posttext">No it isnt. And that thing on the account page has been there for a few days.<br />
<br />
Oh it's not?<br />
<br />
https://us.battle.net/shop/en/checkout/upgrade-selection/US/WOW?utm_content=standard&utm_medium=wow-dashboard&gameAccountId=48373934&utm_source=internal-bam&utm_campaign=WoWx6-presales<br />
<br />
Weird.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc5d9252c9f9</div><div class="date">2014-03-10, 05:09 PM</div></div><div class="posttext">On the EU side I only have the option to buy the standard must still be getting fully intergrated but yayyy! :D</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc905be6ae45</div><div class="date">2014-03-10, 05:10 PM</div></div><div class="posttext">December 20 what the acctual fuck?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">nomorepriest</div><div class="date">2014-03-10, 05:10 PM</div></div><div class="posttext">Where is the pre-order for<br />
Wildstar?<br />
<br />
<br />
Chaud? Please update</div></div><hr />
<div class="post"><div class="posttop"><div class="username">dyljames94</div><div class="date">2014-03-10, 05:10 PM</div></div><div class="posttext">On or before December 20th?? :O</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Hunta1337</div><div class="date">2014-03-10, 05:10 PM</div></div><div class="posttext">Yes!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc04aeeea26b</div><div class="date">2014-03-10, 05:11 PM</div></div><div class="posttext">So I wonder if there will be a physical collectors edition too? Or just these digital ones.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Enan1981</div><div class="date">2014-03-10, 05:11 PM</div></div><div class="posttext">December 20 what the acctual fuck?<br />
<br />
Im guessing theyre trying to be safe... REALLY safe.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Nosdrone</div><div class="date">2014-03-10, 05:11 PM</div></div><div class="posttext">Where is the pre-order for<br />
Wildstar?<br />
<br />
<br />
Chaud? Please update<br />
<br />
What's WildStar?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Brocksley</div><div class="date">2014-03-10, 05:11 PM</div></div><div class="posttext">$50? raised the price for what? They need to show that there will be more content than previous expansions because as of now it looks like less content to me.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Shaverdian</div><div class="date">2014-03-10, 05:12 PM</div></div><div class="posttext">God damn it I was just fucking joking around when I said November would be the earliest they would launch WoD. I didn't actually think they'd go as far as December.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc6771814438</div><div class="date">2014-03-10, 05:12 PM</div></div><div class="posttext">34,99 GBP are you crazyyyyyyyyyyyyyyyy yy y y y y y y y y y <br />
Rape of the Souls is almost the same price that's why I am not buying it :L</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Fizzletwig</div><div class="date">2014-03-10, 05:12 PM</div></div><div class="posttext">December?! Alright, I can't remember the last time I was this close to just quitting the damn game. Seriously, Blizz? What the actual F</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc59b5827c7e</div><div class="date">2014-03-10, 05:13 PM</div></div><div class="posttext">45€ for normal and 65€ digital deluxe... lol</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc5b249aa738</div><div class="date">2014-03-10, 05:13 PM</div></div><div class="posttext">Release date: 20th December 2014 :D</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Thursley</div><div class="date">2014-03-10, 05:13 PM</div></div><div class="posttext">December 20th is scary. Even as the 'last resort, nothing short of the apocalypse could make it later' date, it's sad to see them thinking it could potentially be that far off. And here I was thinking 1 more full PVP season would be longer than they wanted to wait... I don't think the ICC tier WITH the ruby sanctum update was that long, and they even admitted they took too long to get Cataclysm out after that one. December 20th 2014 would be ruinous.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">CosmicGuitars</div><div class="date">2014-03-10, 05:13 PM</div></div><div class="posttext">God damn it I was just fucking joking around when I said November would be the earliest they would launch WoD. I didn't actually think they'd go as far as December.<br />
<br />
It says on the site itself..<br />
<br />
Expected Game Release Fall† of 2014<br />
†Spring for Regions in Southern Hemisphere<br />
<br />
They put that date there as the definitive 'will not release later than' date.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">nomorepriest</div><div class="date">2014-03-10, 05:13 PM</div></div><div class="posttext">$50? raised the price for what? They need to show that there will be more content than previous expansions because as of now it looks like less content to me.<br />
<br />
Looks like an amazing game!! I can't wait<br />
<br />
Check it out under video game discussion on mmo-champion</div></div><hr />
<div class="post"><div class="posttop"><div class="username">gulder</div><div class="date">2014-03-10, 05:13 PM</div></div><div class="posttext">lol december<br />
<br />
gg</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Shudder</div><div class="date">2014-03-10, 05:13 PM</div></div><div class="posttext">I'm laughing so much right now. December. My god.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmocc190ba80e7</div><div class="date">2014-03-10, 05:14 PM</div></div><div class="posttext">LOL December! All those naive fools who thought we'd see release in June! I'm not preordering something that might not be out for 9 months. I do want to try the level boost though huehuehue.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc959312516f</div><div class="date">2014-03-10, 05:14 PM</div></div><div class="posttext">#hypeitup - WoD inc.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">nomorepriest</div><div class="date">2014-03-10, 05:14 PM</div></div><div class="posttext">For all those complaining about price... How about you quit wow for the next 8 months and get better jobs.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Axaron</div><div class="date">2014-03-10, 05:14 PM</div></div><div class="posttext">How do I get the free level boost? O.o</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Kryos</div><div class="date">2014-03-10, 05:14 PM</div></div><div class="posttext">Why can't I preorder the Digital Deluxe in Europe? Only the US Shop has that option...</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoccebac77bfe</div><div class="date">2014-03-10, 05:14 PM</div></div><div class="posttext">Lol, why december? Can it end up being that late?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Underverse</div><div class="date">2014-03-10, 05:14 PM</div></div><div class="posttext">$50...and December. Goooooooooood....<br />
<br />
I'm a fan of blizzard, but this is starting to get ridiculous</div></div><hr />
<div class="post"><div class="posttop"><div class="username">lunchbox2042</div><div class="date">2014-03-10, 05:15 PM</div></div><div class="posttext">Pay more for fewer features. Way to go Blizzard.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">TrollShaman</div><div class="date">2014-03-10, 05:15 PM</div></div><div class="posttext">oh man, december as expected release date feels like it'll take a reaaally long time, i mean, at least half a year of siege of orgrimmar left. 50$ too so this better be worth the money</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Torian kel</div><div class="date">2014-03-10, 05:15 PM</div></div><div class="posttext">Good thing they promised no more one year+ of a single raid and shorter expension launches! And apparently they also need to fuck us on prices, more expensive than any other expension when they came out, so, what, we just pull our pants down?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc568a11d25e</div><div class="date">2014-03-10, 05:16 PM</div></div><div class="posttext">All previews expansions were 34,99€ on release, why the hell is this one 44,99€ O.o</div></div><hr />
<div class="post"><div class="posttop"><div class="username">devinedragoon</div><div class="date">2014-03-10, 05:16 PM</div></div><div class="posttext">https://us.battle.net/shop/en/product/world-of-warcraft-warlords-of-draenor?utm_source=internal-shop&utm_medium=carousel&utm_campaign=WoWx6-presales&utm_content=WoWx6</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc5f651aac41</div><div class="date">2014-03-10, 05:16 PM</div></div><div class="posttext">Way too long untill december month!</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Kryos</div><div class="date">2014-03-10, 05:16 PM</div></div><div class="posttext">We already have problems having enough people to come online to try the last 3 bosses ... until December there will be no more raid.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">The Yeti</div><div class="date">2014-03-10, 05:16 PM</div></div><div class="posttext">December 20th is a "no later than" date for release. The website still says in Fall of 2014. Still predicting September-October here.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc4b776c04e0</div><div class="date">2014-03-10, 05:16 PM</div></div><div class="posttext">"Pre-Purchase: Game is expected to release on or before 20/12/2014"</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Solidito</div><div class="date">2014-03-10, 05:16 PM</div></div><div class="posttext">You guys realise they have to put a date it says 'on or before' december. It'll be way before most likely.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Vermicious</div><div class="date">2014-03-10, 05:17 PM</div></div><div class="posttext">You people need to learn to read:<br />
<br />
"Warlords of Draenor is expected to be released on or BEFORE December 20, 2014"</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Scayde</div><div class="date">2014-03-10, 05:17 PM</div></div><div class="posttext">You guys realize that the December date is before they go on hiatus for the holidays. All that they're saying is that they plan on getting it out before then, not that that is the release date.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Sarale</div><div class="date">2014-03-10, 05:17 PM</div></div><div class="posttext">If they would release WoD in December, it would mean the downfall of World of Warcraft. I'm not much of a doomsayer, and never have been. Yet, if they release it in December, too many people will have gone over to Wildstar, ESO, Destiny, etc. Mists is done, they should've released it within 2 months of now. <br />
<br />
I sincerely hope for the sake of WoW that they release it sooner.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc655e3d994d</div><div class="date">2014-03-10, 05:18 PM</div></div><div class="posttext">65 EURO for digital deluxe? wtf! We are talking about digital stuff here not a fancy box, this is just overpriced what the hell...not to mention the fact that there is still no release date and it could come out in December</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Vanskus</div><div class="date">2014-03-10, 05:18 PM</div></div><div class="posttext">Why can't I preorder the Digital Deluxe in Europe? Only the US Shop has that option...<br />
<br />
<br />
this pretty much,I want to order straight away but it seems digital deluxe isn't an option yet. I hope it's a temporary thing.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc80b35b5c2d</div><div class="date">2014-03-10, 05:19 PM</div></div><div class="posttext">If they would release WoD in December, it would mean the downfall of World of Warcraft. I'm not much of a doomsayer, and never have been. Yet, if they release it in December, too many people will have gone over to Wildstar, ESO, Destiny, etc. Mists is done, they should've released it within 2 months of now. <br />
<br />
I sincerely hope for the sake of WoW that they release it sooner.<br />
<br />
you are an idiot. ESO and wildstar will end up just like swtor and multiple other games.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Adramalech</div><div class="date">2014-03-10, 05:19 PM</div></div><div class="posttext">You people need to learn to read:<br />
<br />
"Warlords of Draenor is expected to be released on or BEFORE December 20, 2014"<br />
<br />
Shhh... don't let that get in the way of the doomsaying.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">det</div><div class="date">2014-03-10, 05:19 PM</div></div><div class="posttext">Genius stroke that "on or before 12720/2014". Moar speculations</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Anguished</div><div class="date">2014-03-10, 05:19 PM</div></div><div class="posttext">December 20 what the acctual fuck?<br />
<br />
On or before</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Mitra</div><div class="date">2014-03-10, 05:19 PM</div></div><div class="posttext">lol @ that price, bb wow, it has been a pleasure</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Golfire</div><div class="date">2014-03-10, 05:19 PM</div></div><div class="posttext">12/20/2014...................................................................................... .........<br />
<br />
<br />
We say here in México "Me quedé pendejo"............................</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Orissan</div><div class="date">2014-03-10, 05:19 PM</div></div><div class="posttext">Thats not a release date, that is if half the team catches the plague we will still guarantee it comes out by then date.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Durandro</div><div class="date">2014-03-10, 05:19 PM</div></div><div class="posttext">You people need to learn to read:<br />
<br />
"Warlords of Draenor is expected to be released on or BEFORE December 20, 2014"<br />
<br />
Welcome to MMO Champion, eh?<br />
<br />
Hopefully it'll be before then.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc9528207d50</div><div class="date">2014-03-10, 05:20 PM</div></div><div class="posttext">ahem... soon™</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoca506320b02</div><div class="date">2014-03-10, 05:20 PM</div></div><div class="posttext">MoP beta started 2012 march, MoP was released in late september, so let's say WoD beta starts in april or may, expect a release for late october, november or early december.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">smegmage</div><div class="date">2014-03-10, 05:20 PM</div></div><div class="posttext">Since when do the features a game has gained/lost dictate the price? Game prices have been pretty stable for years, thinking that a game should be cheaper because it lost a particular feature you enjoy tells me you're incapable of rational criticism and you should go and sit in the corner.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc3863ce14c0</div><div class="date">2014-03-10, 05:20 PM</div></div><div class="posttext">EU here can't preorder digital deluxe either</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Underverse</div><div class="date">2014-03-10, 05:20 PM</div></div><div class="posttext">This expansion in general seems like it's going to be very bad for WoW. Higher price. Concessions (90 boost). Possibly much later release date than anticipated. Uncompelling storyline. Sparse features.<br />
<br />
I really don't see a lot going for it. But who knows. I'll probably still play it for a while.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Cysne</div><div class="date">2014-03-10, 05:20 PM</div></div><div class="posttext">Wait wat, the boost is free with the game for 50 dollars, the paid boost is 60 dollars. wat</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Majestian</div><div class="date">2014-03-10, 05:20 PM</div></div><div class="posttext">What exactly are the "in-game items for World of Warcraft"?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc66990be288</div><div class="date">2014-03-10, 05:20 PM</div></div><div class="posttext">Looks like an amazing game!! I can't wait<br />
<br />
Check it out under video game discussion on mmo-champion<br />
Yea......same thing was writting with Diablo 3..... or should i say Cataclysm era or current patch???</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc655e3d994d</div><div class="date">2014-03-10, 05:21 PM</div></div><div class="posttext">you are an idiot. ESO and wildstar will end up just like swtor and multiple other games.<br />
<br />
so he is an idiot just for saying his opinion?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">IllidariCouncil</div><div class="date">2014-03-10, 05:21 PM</div></div><div class="posttext">So pretty much in a year... Awesome<br />
<br />
Time to break off my sub and play ESO till then.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Sarale</div><div class="date">2014-03-10, 05:21 PM</div></div><div class="posttext">you are an idiot. ESO and wildstar will end up just like swtor and multiple other games.<br />
<br />
Sure, but you're forgetting that SWTOR still has an active player base, which took players from WoW ;). And why would one want to play a game from 2004 with enhanced graphics while they can play the top notch games?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Shaverdian</div><div class="date">2014-03-10, 05:21 PM</div></div><div class="posttext">You people need to learn to read:<br />
<br />
"Warlords of Draenor is expected to be released on or BEFORE December 20, 2014"<br />
<br />
It's simply just about the timeframe. I don't know what all the players currently subscribed are expected to do for 8-9 more months.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Mongoose19</div><div class="date">2014-03-10, 05:21 PM</div></div><div class="posttext">50 bucks, december 20th, no new content for more than 1 year. Rofl ICC all over again. Expect subs to drop to 5 mil.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmocc3aa4f1f47</div><div class="date">2014-03-10, 05:21 PM</div></div><div class="posttext">So.. prepurchase something we barely know about yet? can we PLEASE get more info soon...</div></div><hr />
<div class="post"><div class="posttop"><div class="username">nomorepriest</div><div class="date">2014-03-10, 05:22 PM</div></div><div class="posttext">Woot!! Now I can buy all my 90s of every class!! I'm so glad I don't have to waste time leveling!! Hoping they will sell heroic gear soon, or just buy it from blood legion..</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Didder</div><div class="date">2014-03-10, 05:22 PM</div></div><div class="posttext">With a price that high the physical collectors edition is sure to be $90-100. That's ridiculous.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc3c347a2199</div><div class="date">2014-03-10, 05:22 PM</div></div><div class="posttext">Can't access DD version (EU here of course) but extra cost and no "actual" release date.....:(</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Master Guns</div><div class="date">2014-03-10, 05:22 PM</div></div><div class="posttext">Hahahahahahahahaha. Another year of SoO, boys! <br />
<br />
Yeeeeeeeeeeeeeee Haaaaaaaaaaaaaaaaaaaaaaaaaaaw! Ride em', Malkorak!</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Kelathos</div><div class="date">2014-03-10, 05:22 PM</div></div><div class="posttext">I'm comfortable thinking a normal fall release.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc5b249aa738</div><div class="date">2014-03-10, 05:23 PM</div></div><div class="posttext">Wait wat, the boost is free with the game for 50 dollars, the paid boost is 60 dollars. wat<br />
<br />
You're forgetting the character transfer to your main account. 20€ or 25$ i believe</div></div><hr />
<div class="post"><div class="posttop"><div class="username">charizma</div><div class="date">2014-03-10, 05:23 PM</div></div><div class="posttext">has anyone used the boost on a an opposite faction yet? I wanna make sure it gives you the achievement DOUBLE AGENT</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Igby</div><div class="date">2014-03-10, 05:24 PM</div></div><div class="posttext">I'm pretty sure there's a thread about the release date but I call September-October due to the fact it would be stupid to release it during summer season when people (like me) are out and about. Unless blizzard will troll us and release it in the middle of summer because they think all of us have no lives, just saying....</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Snorri</div><div class="date">2014-03-10, 05:24 PM</div></div><div class="posttext">I'm laughing at everyone who can't read and expect the expansion to actually be released in late december.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Tennis</div><div class="date">2014-03-10, 05:24 PM</div></div><div class="posttext">50$ FOR an expansion?<br />
<br />
With no new classes or races? That's crazy.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Farora</div><div class="date">2014-03-10, 05:24 PM</div></div><div class="posttext">Why is it so expensive? Are they going to milk whoever is still left? :O</div></div><hr />
<div class="post"><div class="posttop"><div class="username">schippie</div><div class="date">2014-03-10, 05:24 PM</div></div><div class="posttext">Lol.. december sorry blizzard i dont make fun of you often but if you think that is acceptable you really need to check yourself.. that is not acceptable.. anything later then august is not acceptable..</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Granyala</div><div class="date">2014-03-10, 05:24 PM</div></div><div class="posttext">12/20/2014<br />
What the F*** ?<br />
<br />
You'd better release A LOT sooner than that!</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Angel25</div><div class="date">2014-03-10, 05:25 PM</div></div><div class="posttext">Do we get the instant boost lv90 by preordering or do we have to wait for expansion to come out?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Arrowset</div><div class="date">2014-03-10, 05:25 PM</div></div><div class="posttext">The really scary thing is that they took a big chunk of the Titan staff to work on WoW. It's taking them that long with all these guys working on it. It's pretty clear at this point that simple laziness has set in at Blizzard. Apparently they don't fire anyone for slacking off, so people working there just kind of take it easy. Or so it seems.<br />
<br />
December 20th? Seriously?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Cows For Life</div><div class="date">2014-03-10, 05:25 PM</div></div><div class="posttext">$50? raised the price for what? They need to show that there will be more content than previous expansions because as of now it looks like less content to me.<br />
<br />
Remember when they said they could either use resources to make new content or go and re-do old stuff.<br />
<br />
Well, perhaps they went down the less content and re-do old stuff but charge more path.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Miloscub</div><div class="date">2014-03-10, 05:25 PM</div></div><div class="posttext">normal version in US is 50 dollars = 35 euros,but EU is 45 euros wut</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Lahis</div><div class="date">2014-03-10, 05:25 PM</div></div><div class="posttext">Looks like announcing a "release date" (which that is NOT) was like casting "Summon Mr. Hankey".<br />
<br />
<br />
http://www.youtube.com/watch?v=CsgSDL2F6rs</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Frolk</div><div class="date">2014-03-10, 05:26 PM</div></div><div class="posttext">Soo much butthurt in the comments, this is fantastic :D<br />
*eats popcorn*<br />
For all u people bitching at the price, why not get a JOB, un-sub for 1/2year and play another game, rob some old woman or ask ur mommy to use her credit card again</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Deffry</div><div class="date">2014-03-10, 05:26 PM</div></div><div class="posttext">Sure, but you're forgetting that SWTOR still has an active player base, which took players from WoW ;). And why would one want to play a game from 2004 with enhanced graphics while they can play the top notch games?<br />
<br />
Most of the MMORPG players obviosly are not this type of person, who cares about graphics the most. In fact, the reality, that WoW is still the strongest mmorpg is the evidence, that rpg players care about graphics really little. <br />
<br />
"why would one want to play a game from 2004 with enhanced graphics while they can play the top notch games" ... because every other aspect of the game is worse than its WoW counterpart?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">nomorepriest</div><div class="date">2014-03-10, 05:26 PM</div></div><div class="posttext">Save up your money kiddies.. QQing at price? <br />
<br />
Get a real job .</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Clozer</div><div class="date">2014-03-10, 05:27 PM</div></div><div class="posttext">aah dd version is now available in Europe too!</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Shirohibiki</div><div class="date">2014-03-10, 05:27 PM</div></div><div class="posttext">Holy shit, those prices though? I don't even care about the release date. What the fuck is wrong with those prices? Since WHEN did it have to jump to $70 for the fucking digital deluxe?! It was 50 for MoP, wasn't it? I bought the DD to get AWAY from the obscene prices! Wow, is there any hope of them lowering it? There's no way I'm not getting that mount, but what am I paying for? We got all that extra stuff last time for 50-60, didn't we? I'm highly concerned about this.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">iceberg265</div><div class="date">2014-03-10, 05:27 PM</div></div><div class="posttext">SWTOR's expansion was $10, how can they justify this price?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Spaghett</div><div class="date">2014-03-10, 05:27 PM</div></div><div class="posttext">dat box art dou</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmocc38725e1a8</div><div class="date">2014-03-10, 05:27 PM</div></div><div class="posttext">December date is definately a placeholder imo. Maybe blizzard were required by law to give a random date (within reason) of release in order to make the game available for pre-purchase.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">zaneosak</div><div class="date">2014-03-10, 05:28 PM</div></div><div class="posttext">I'm laughing at everyone who can't read and expect the expansion to actually be released in late december.<br />
<br />
You know it won't release until at least October which is still fucking insane. No beta yet.... when do you think it's going to be released there, cowgirl?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Sting</div><div class="date">2014-03-10, 05:28 PM</div></div><div class="posttext">December 20th? What the actual fuck.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Bisso</div><div class="date">2014-03-10, 05:28 PM</div></div><div class="posttext">So depressed to see some people preordering this, yet they complain the game isn't as good as it was. People pre-ordering an expansion we know close to nothing about, is sold at $50, 9 months before its release date, are the main reason the game industry in general and now Blizzard turned to shit.<br />
<br />
That's why we can't have nice things.<br />
<br />
I can't believe they are pushing the pre-order when they state: Expected release on or before december 20th. I guess, we should pre-order our StarWars Episode VII movie tickets, because, it's soon coming up, and it CAN'T BE BAD right? Might as well just give them money for a product not even done yet.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Mcsheepy</div><div class="date">2014-03-10, 05:28 PM</div></div><div class="posttext">What the hell is Blizzard thinking? December release date means a full year with no new raid/dungeon content and players will be burned out if it takes that long. Sorry but a new pvp season isn't gonna cut it for most players in my opinion. I had release pegged for September at the latest. Guess I'll be playing ESO for at least 7 months if December is the actual RD.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmocf031bed2ec</div><div class="date">2014-03-10, 05:28 PM</div></div><div class="posttext">Ofc it's going to be released in December, it always was. The only reason they have added the or before part is coz they know ppl will kick off about it, I mean come on it's not even beta yet lol</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc44881bbc40</div><div class="date">2014-03-10, 05:28 PM</div></div><div class="posttext">While so many of you scream of rage and fear I'll just pop in here and say that I like the box art.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc3f0f7d0fa4</div><div class="date">2014-03-10, 05:28 PM</div></div><div class="posttext">normal version in US is 50 dollars = 35 euros,but EU is 45 euros wut<br />
<br />
VAT is a bitch.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Majestian</div><div class="date">2014-03-10, 05:29 PM</div></div><div class="posttext">I would complain about the price, but then again I just paid $50 for Hearthstone booster packs. $50, for pixels.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Kaelynath</div><div class="date">2014-03-10, 05:29 PM</div></div><div class="posttext">SWTOR's expansion was $10, how can they justify this price?<br />
<br />
Because SWTOR is shit and WoW isn't?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">UnifiedDivide</div><div class="date">2014-03-10, 05:29 PM</div></div><div class="posttext">Ah, now I know why I couldn't get onto my Account page on Battle.net >_< All I wanted to do was check something lol</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Pull My Finger</div><div class="date">2014-03-10, 05:29 PM</div></div><div class="posttext">The really scary thing is that they took a big chunk of the Titan staff to work on WoW. It's taking them that long with all these guys working on it. It's pretty clear at this point that simple laziness has set in at Blizzard. Apparently they don't fire anyone for slacking off, so people working there just kind of take it easy. Or so it seems.<br />
<br />
December 20th? Seriously?<br />
You're so clueless.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Aureth</div><div class="date">2014-03-10, 05:30 PM</div></div><div class="posttext">Extra 10 bucks I think for the digital version this time? Not bad, but I do think it's a bit of a hike. <br />
<br />
That said, yeah, not worrying about the 'on or before' date. They listed that just as sort of the last-ditch 'HQ melted, devs have plague, we're being attacked by armies of rabid badgers, but it WILL be out!' date. They'll get it out late June-July I feel, assuming no actual disasters. (I'm pretty convinced of this since I think the higher-ups at Activision-while they don't really get involved in the development, I DO think they'd get involved in the shipping-will start to and lean the hell on them if it seems like it'll take them another damn year to shove something out the door and tell them to ship it the hell out the door, NOW. Can't say I'd be sad to see that, I think Blizzard might need a push this time to get something out on a sensible timeframe. They'll already be kinda late in June-July, just not disappointingly so.)</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmocf06effc4be</div><div class="date">2014-03-10, 05:30 PM</div></div><div class="posttext">Hahahahaha oh god, just when you tought it couldnt get any worse.<br />
<br />
An increase in price compared to previous expansions<br />
Estimated release date 20 December (yes MAYBE sooner but beta hasnt even started yet and beta takes months)<br />
<br />
Oh come on, this expansion was a pile of garbage since they announced it at Blizzcon. Barely any really exciting new feautures, no new races or classes, story that makes no fucking sense whatsover thats just trying to milk the succes of Warcraft III. Oh wait, new models, whoop-dee-fucking-doo.<br />
<br />
But on the bright side, we might be finally breaking the ICC season record with SoO? /facepalm.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Hagstrom5</div><div class="date">2014-03-10, 05:30 PM</div></div><div class="posttext">Because SWTOR is shit and WoW isn't?<br />
<br />
Opinion =! Fact</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc08f8e652d4</div><div class="date">2014-03-10, 05:31 PM</div></div><div class="posttext">More content, more often.<br />
<br />
I wish I could post trollface meme without getting infracted!</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc5b249aa738</div><div class="date">2014-03-10, 05:31 PM</div></div><div class="posttext">EU price is 60€ for Digital Deluxe which is normal. Thanks Blizzard!</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Shockymonkey</div><div class="date">2014-03-10, 05:31 PM</div></div><div class="posttext">12/20/14 what a disappointment. It will take that long for new content.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Blackmist</div><div class="date">2014-03-10, 05:31 PM</div></div><div class="posttext">Well, I guess I'll have no problem paying extra for it with the 6 months of subscription fees I'll be saving.<br />
<br />
I stuck around in ICC. I even stuck around in DS because of the annual pass. Not this time, thanks.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Shudder</div><div class="date">2014-03-10, 05:31 PM</div></div><div class="posttext">So that survey asking if we'd pay $10 extra for the expansion to get the "free" 90 was accurate. People said it was promised to us for free at Blizzcon and no way they would charge us an extra $10 for it. Where are those people now?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoceeceb76e25</div><div class="date">2014-03-10, 05:31 PM</div></div><div class="posttext">20 December.......loooool yeah gl with that, I hope for Blizzards sake they stick to the 'or before' part.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">DizzyMonk</div><div class="date">2014-03-10, 05:31 PM</div></div><div class="posttext">Can we get a real release date? There's no way i'm going to keep subbing for more than 2 more months with no new content.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">scvd</div><div class="date">2014-03-10, 05:31 PM</div></div><div class="posttext">Placeholder date or they're screwed.<br />
<br />
£35 for UK too, that's £5 more, cashing in while they can? Pass.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">The Glitch</div><div class="date">2014-03-10, 05:31 PM</div></div><div class="posttext">Link for the EU shop https://eu.battle.net/shop/en/product/world-of-warcraft-warlords-of-draenor?utm_source=internal-WoWsite&amp;utm_medium=shop-tab&amp;utm_content=game-purchase-subs&amp;utm_campaign=WoWx6-presales#deluxe</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Cows For Life</div><div class="date">2014-03-10, 05:31 PM</div></div><div class="posttext">Since when do the features a game has gained/lost dictate the price? Game prices have been pretty stable for years, thinking that a game should be cheaper because it lost a particular feature you enjoy tells me you're incapable of rational criticism and you should go and sit in the corner.<br />
<br />
Hard to say that with a straight face in a F2P world.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Farora</div><div class="date">2014-03-10, 05:32 PM</div></div><div class="posttext">It's odd we pay for expansions anyway, since we already pay 150 bucks a year. But 50 for an expansion? !??!</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc44881bbc40</div><div class="date">2014-03-10, 05:32 PM</div></div><div class="posttext">I also wonder why there are no post about the preorders going live. Will there be one? Maybe the price and the release timeframe will be adressed in it.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc3301659811</div><div class="date">2014-03-10, 05:32 PM</div></div><div class="posttext">But guys...GUYS!<br />
<br />
<br />
In addition to a full digital copy of the game, the Digital Deluxe edition comes with the following digital items (available in-game once purchased)<br />
<br />
Does this mean I get to ride the super cool super awesome AMAZING blue Dread Raven Mount like....RIGHT NOW???</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Granyala</div><div class="date">2014-03-10, 05:32 PM</div></div><div class="posttext">Apparently the high price doesn't scare people away. battle.net is warmed aaand... <br />
<br />
kaputt. :D</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Azgraal</div><div class="date">2014-03-10, 05:32 PM</div></div><div class="posttext">So the normal version is almost 10€ more expensive than MoP's counterpart was on presale.<br />
<br />
Not impressed at all. The only thing that seems to be increasing lately about Blizzard is the cost of their products.<br />
<br />
I am one of the biggest Blizzard fanboys you might ever meet. If you read the tone of my past posts you'll see I blatantly defended Blizzard in every way, no matter how outlandish their ideas were or bad moves they were prepared to do. But now for me this might be the drop that overflowed the glass. <br />
<br />
I don't want to pay more for something that might have even less content that the previous instalments.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Oogly</div><div class="date">2014-03-10, 05:32 PM</div></div><div class="posttext">The early release for prePURCHASE and ofc the price hike is yet more indicative of Blizzards financial obligations to continue to turn a profit for their investors even with diminishing revenue streams (overall sub losses trends for the last few years). <br />
<br />
They cannot from a marketing point of view over saturate the Blizz store with a new shiny pixel mount every 2-3 months anymore, and expect continued high levels of purchases from players willing to pony up the cash. Eventually even the die hard loyals will get fed up of yet another mount being shoved in their face each financial quarter. <br />
<br />
So this financial quarters marketing gimmick is getting revenue from pre purchases of an expansion that has no confirmed release date and is not even in beta yet. In addition to the revenue they squeezed out from the Iron Skyreaver, which may not have sold as well as they had initially hoped. I wonder what it will be next quarter if WoD does not indeed ship before the end of June (almost a foregone conclusion at this point).</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Celarent</div><div class="date">2014-03-10, 05:32 PM</div></div><div class="posttext">The suggested release date is a bit of a buzzkill, especially with no prior indications of additional content leaving players to hope for a nearby light at the end of the tunnel.<br />
<br />
I suspect there's more to it, but Blizzard's going to need a little PR for its PR.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">lunchbox2042</div><div class="date">2014-03-10, 05:33 PM</div></div><div class="posttext">So that survey asking if we'd pay $10 extra for the expansion to get the "free" 90 was accurate. People said it was promised to us for free at Blizzcon and no way they would charge us an extra $10 for it. Where are those people now?<br />
<br />
They should offer one without the damn boost.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">SinR</div><div class="date">2014-03-10, 05:33 PM</div></div><div class="posttext">I wish I could order an empty box from Blizz for MOP an WOD. I love the idea of Digital editions, especially a Digital Deluxe edition</div></div><hr />
<div class="post"><div class="posttop"><div class="username">arizonapriest93</div><div class="date">2014-03-10, 05:33 PM</div></div><div class="posttext">For those bitching about price, in all honesty it's 10 bucks.... really? 10 bucks is bringing the house down? I'm a poor ass student with loans out the ass and I can swing a 10 buck difference no problem. At least it isn't 60 like console games now. It was only about time, cool thing called inflation, rather them charge 10 bucks more for the xpac than raise my sub fee. <br />
<br />
As for release date oh well, not like I can do anything about it. Doubt it'll take until December though.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Adramalech</div><div class="date">2014-03-10, 05:33 PM</div></div><div class="posttext">Considering we know next to nothing right now about this expansion and that the release date is still uncertain, those of you who decide to pre-order this and then a few months from now complain that "the game is shit, I want my 50 bucks back, they deceived me!" will have no one to turn to. All legitimacy in your complaints will be gone if you take a dive and then hit your head at the bottom.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">SinR</div><div class="date">2014-03-10, 05:33 PM</div></div><div class="posttext">also, rofl at people complaining about price. MOP DDE was 60. ONOZ THEY RAISED THE PRICE 10 DOLLARS</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoce2b90dcff6</div><div class="date">2014-03-10, 05:33 PM</div></div><div class="posttext">To those of you emphasizing the word before, do you not think that Blizzard are intelligent enough to know that this would cause a frenzy?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc4f448e7a9a</div><div class="date">2014-03-10, 05:34 PM</div></div><div class="posttext">What an ugly box cover, no warcraft-vibe at all. Higher price, not a suprise- it is blizzard after all</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Tisane</div><div class="date">2014-03-10, 05:34 PM</div></div><div class="posttext">The time-span between Patch 5.4 and WoD reminds me a lot of the time-span between WotLK's final patch and Cataclysm. Both took ± a year and so will this one, even if it gets released much earlier; in October for example. I fear it will even take longer than the release of Cataclysm at that time. But I have all the time of the world and I love the box-art ;)</div></div><hr />
<div class="post"><div class="posttop"><div class="username">lagmoose</div><div class="date">2014-03-10, 05:34 PM</div></div><div class="posttext">I guess a physical CE will be available to purchase when a date is more or less set in stone</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmocf06effc4be</div><div class="date">2014-03-10, 05:34 PM</div></div><div class="posttext">Soo much butthurt in the comments, this is fantastic :D<br />
*eats popcorn*<br />
For all u people bitching at the price, why not get a JOB, un-sub for 1/2year and play another game, rob some old woman or ask ur mommy to use her credit card again<br />
<br />
How about you think for once and realize perhaps people arent complaining about the price because they cant afford it, but because the price for an expansion has increased this time and so far feature-wise isnt even remotely justifying that increase?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Boomzy</div><div class="date">2014-03-10, 05:34 PM</div></div><div class="posttext">Warlords of Draenor Pre-Order Now Available<br />
<br />
<br />
http://media.mmo-champion.com/images/news/2014/march/wodtime.jpg?A (https://battle.net/shop/en/product/world-of-warcraft-warlords-of-draenor) <br />
<br />
8 more months of this shit? Ugh. I actually thought i wouldn't be quitting before the expansion came out... guess i was wrong.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Neliah</div><div class="date">2014-03-10, 05:34 PM</div></div><div class="posttext">FK me sideways, I JUST bought the D3 RoS CE.. Oh my poor creditcard.....</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Pull My Finger</div><div class="date">2014-03-10, 05:34 PM</div></div><div class="posttext">So the normal version is almost 10€ more expensive than MoP's counterpart was on presale.<br />
<br />
Not impressed at all. The only thing that seems to be increasing lately about Blizzard is the cost of their products.<br />
<br />
I am one of the biggest Blizzard fanboys you might ever meet. If you read the tone of my past posts you'll see I blatantly defended Blizzard in every way, no matter how outlandish their ideas were or bad moves they were prepared to do. But now for me this might be the drop that overflowed the glass. <br />
<br />
I don't want to pay more for something that might have even less content that the previous instalments.<br />
Well actually that's the thing - the moronic haters and whiners are all ex-fanboys. It's two ends of the same silly spectrum.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">thewallofsleep</div><div class="date">2014-03-10, 05:35 PM</div></div><div class="posttext">It says on the site itself..<br />
<br />
Expected Game Release Fall† of 2014<br />
†Spring for Regions in Southern Hemisphere<br />
<br />
They put that date there as the definitive 'will not release later than' date.<br />
<br />
December 20 is the last day of Fall. I don't know where they mentioned Fall 2014 as a release window, but it sounds like they are using the December 20 date so they can potentially release it that late and still have released in Fall 2014 and not be liars (technically).</div></div><hr />
<div class="post"><div class="posttop"><div class="username">roahn the warlock</div><div class="date">2014-03-10, 05:36 PM</div></div><div class="posttext">Are they serious with that release date and price?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">SinR</div><div class="date">2014-03-10, 05:37 PM</div></div><div class="posttext">Also, there's that word again... Savage</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc3301659811</div><div class="date">2014-03-10, 05:37 PM</div></div><div class="posttext">Seriously. If I can buy the digital deluxe version right now, and ride the bird mount...right now....that would be amazeballs. Has anyone bought it and tried?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Blaiz</div><div class="date">2014-03-10, 05:37 PM</div></div><div class="posttext">SWTOR's expansion was $10, how can they justify this price?<br />
<br />
Well I can start by saying that people will buy it, the same reason goes for why WoW has remained subscription based while SWTOR went F2P within months of its release. <br />
<br />
It's the basis for running a good business, if people are willing to pay for something then it justifies you charging for it. However if the public aren't willing to pay or lack interest in your product then you make it cheaper in the hope of attracting them.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc4b776c04e0</div><div class="date">2014-03-10, 05:37 PM</div></div><div class="posttext">Well that date is not set in stone. Last 2 expansions launched only 2 months from when the pre-order was available. <br />
And they even added a new boss to the raid from what was initially planed. I say it will be launched at most in September.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Durandro</div><div class="date">2014-03-10, 05:37 PM</div></div><div class="posttext">What an ugly box cover, no warcraft-vibe at all. Higher price, not a suprise- it is blizzard after all<br />
<br />
Yeah, because Orcs are totally non-Warcraft in feel.<br />
<br />
Oh wait.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">UnifiedDivide</div><div class="date">2014-03-10, 05:38 PM</div></div><div class="posttext">I can not accurately express how amusing it is to me that so many of you think December 20th is that actual release date...</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Hipnos14</div><div class="date">2014-03-10, 05:38 PM</div></div><div class="posttext">What the hell? +10€? I don't...I don't understand, why they are rising the fucking prize? If it's for the FREE lvl90...well, it was supposed to be free, wtf?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Frozenbeef</div><div class="date">2014-03-10, 05:38 PM</div></div><div class="posttext">For the first time ever I'm debating whether i should get it or not...</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Khailik</div><div class="date">2014-03-10, 05:38 PM</div></div><div class="posttext">Uh physical CE? Please? PLEASE!!!!!!</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc8d0519764f</div><div class="date">2014-03-10, 05:38 PM</div></div><div class="posttext">December???????????????????????????????????I want to say something in Chinese: 草你妈!!!暴雪!!!!</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Igby</div><div class="date">2014-03-10, 05:38 PM</div></div><div class="posttext">and this is how WoW (and its community) will officially die a slow painful death...</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Gantrithor</div><div class="date">2014-03-10, 05:38 PM</div></div><div class="posttext">They put it at this price because of the 90 boost, wether you even want it or not. They sent out a survey to random people some time ago asking if they would be willing to pay more for it.<br />
It's ridiculous.<br />
<br />
And December as the latest timeframe? Have fun in SOO I guess.. I'm glad I unsubbed in Jan.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Neliah</div><div class="date">2014-03-10, 05:39 PM</div></div><div class="posttext">Seriously. If I can buy the digital deluxe version right now, and ride the bird mount...right now....that would be amazeballs. Has anyone bought it and tried?<br />
<br />
Trying to buy it atm, but I keep getting an error lol.<br />
<br />
Edit: Uh, maintance?! Really?!?!?!</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Kathranis</div><div class="date">2014-03-10, 05:39 PM</div></div><div class="posttext">Please pay attention to the word: before.<br />
<br />
Release window is "Fall 2014," so they set the date as the last day of Fall. Because you need to have a date before you can accept pre-orders or pre-purchases. It's a common practice done by pretty much every retailer before a release date is nailed down.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoceeceb76e25</div><div class="date">2014-03-10, 05:39 PM</div></div><div class="posttext">Time to unsub at least until release, Blizzard have had some balls in the past but if WoD doesn't come out until late December it might well be their biggest piss take ever.<br />
<br />
I'm not wasting my time/paying for another 8 months of this already tired old content. What a joke.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Azrile</div><div class="date">2014-03-10, 05:39 PM</div></div><div class="posttext">I really hope this is just a very conservative date.. because it is just incredible that they would make SoO last that long. With all the talk of speeding up expansions and all that. I am literally shocked by that date. I am really hoping it is only them needing to have a date an just using the last day of autumn for legal reasons.<br />
<br />
It is just beyond me how they could have fallen so far behind since Blizzcon. At Blizzcon one of the devs mentioned that they hoped to have the expansion out before summer..</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Vilyx</div><div class="date">2014-03-10, 05:39 PM</div></div><div class="posttext">Yep, you get the mount and pet as soon as you buy it.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">MoanaLisa</div><div class="date">2014-03-10, 05:40 PM</div></div><div class="posttext">Are they serious with that release date and price?<br />
<br />
My guess is yes with the price, no with the date. Interesting though.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Azgraal</div><div class="date">2014-03-10, 05:41 PM</div></div><div class="posttext">For those bitching about price, in all honesty it's 10 bucks.... really? 10 bucks is bringing the house down? I'm a poor ass student with loans out the ass and I can swing a 10 buck difference no problem. At least it isn't 60 like console games now. It was only about time, cool thing called inflation, rather them charge 10 bucks more for the xpac than raise my sub fee. <br />
<br />
As for release date oh well, not like I can do anything about it. Doubt it'll take until December though.<br />
<br />
It's not about the difference, it's about the message behind it. The shareholders need to see profits, and with WoW's descent in popularity those profits need to come from somewhere. 10 bucks a players might not be a great difference for the vast majority of players, but they know they can get away with it, much like they got away with mounts and now they will with paid boosts.<br />
<br />
Soon you'll (we'll) be paying for each tier as a separate addon and the concept of expansion will die. Mark my words. (and ofc the tier prices won't drop to reflect that)</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc058e0f1fe5</div><div class="date">2014-03-10, 05:41 PM</div></div><div class="posttext">lol @ price, inb4 they bring up the 'we spend lots of resources on new char models'-card</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Azutael</div><div class="date">2014-03-10, 05:41 PM</div></div><div class="posttext">Scheduled for release on/or before December ?! I seriously hope it will come out long before that. <br />
The price is rather steep, and no doubt it will be even higher for E.U, as usual.<br />
<br />
Biggest shock to me is the proposed release date, what the hell are they smoking. They can't really afford another long period of no new content in WoW, it's madness.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">OneSent</div><div class="date">2014-03-10, 05:41 PM</div></div><div class="posttext">Hmm, any specific reason why this expansion will cost us $10 more than any other expansion before it?<br />
<br />
If it has to do with the Level 90 Character Boost, I have no intentions of using it and I'd rather not pay extra for it. I know it's just $10 bucks, but considering they'll be raking in mad dough from people using the $60 service over the course of the next several months, I fail to see why everyone else has to pay more.<br />
<br />
Also, they always set the release date as "on or before sometime in December". It gives them a wide birth without having to commit to a set date. Obviously, it'll be out long before that.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Blaiz</div><div class="date">2014-03-10, 05:41 PM</div></div><div class="posttext">I can not accurately express how amusing it is to me that so many of you think December 20th is that actual release date...<br />
<br />
Indeed, they're being trolled and fallen for it hook, line and sinker.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc90ba442814</div><div class="date">2014-03-10, 05:42 PM</div></div><div class="posttext">Anyone else noticed EU bnet is down right now.. mass rush of people cancelling subs?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">valliant13</div><div class="date">2014-03-10, 05:42 PM</div></div><div class="posttext">December 20th is a "no later than" date for release. The website still says in Fall of 2014. Still predicting September-October here.<br />
<br />
sadly anything after june in my eyes is a failure in terms of release date. I am suspecting sept release. The problem is they have said they are further along than mop at the time of blizzcon. Yet by now we had an idea of when the beta started for MOP. still no date for WOD beta and its almost mid march. If the release isnt by August my sub will most likely be gone for good. A year of Siege is stupid especially considering they said themselves that it takes too long between final tier and new xpac and they plan to fix it.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Iadien</div><div class="date">2014-03-10, 05:42 PM</div></div><div class="posttext">Save up your money kiddies.. QQing at price? <br />
<br />
Get a real job .<br />
<br />
Do you really think that's the only valid reason people can have to be upset about the price? :p</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Axelond</div><div class="date">2014-03-10, 05:42 PM</div></div><div class="posttext">http://www.youtube.com/watch?v=wp98SH3vW2Y<br />
<br />
Don't pre order!</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc90ba442814</div><div class="date">2014-03-10, 05:42 PM</div></div><div class="posttext">Indeed, they're being trolled and fallen for it hook, line and sinker.<br />
<br />
Either way it will still be a later september/october release. and thats if we are lucky</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Frozenbeef</div><div class="date">2014-03-10, 05:43 PM</div></div><div class="posttext">Indeed, they're being trolled and fallen for it hook, line and sinker.<br />
<br />
Or you know..they are going on what blizzard has told them...damn idiots using the evidence provided to come up with a reasonable conclusion compared to just guesstimating 0o</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoceeceb76e25</div><div class="date">2014-03-10, 05:43 PM</div></div><div class="posttext">I can not accurately express how amusing it is to me that so many of you think December 20th is that actual release date...<br />
<br />
<br />
I don't think anybody thinks the date is set in stone but it's not encouraging is it. If they would have said on or before September then I'd be a bit more understanding but giving themselves the best part of 8 1/2 months of already old content is ridiculous. If the game was going to be this far away we should have had an extra patch, it's bullshit that they have time to add cash shops and character boosts without adding new content to the game.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc3301659811</div><div class="date">2014-03-10, 05:43 PM</div></div><div class="posttext">Trying to buy it atm, but I keep getting an error lol.<br />
<br />
Edit: Uh, maintance?! Really?!?!?!<br />
<br />
Haha you can ride it now. :) Someone on my server is flying around with it right now.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Shirohibiki</div><div class="date">2014-03-10, 05:43 PM</div></div><div class="posttext">Might sound stupid, but can you preorder it and then unsub and still be able to... Use it and stuff? Because I just can't afford this, especially since I don't even play right now. So if I buy the DDE can I then unsub and resub when I get the key when it's available?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Littleraven</div><div class="date">2014-03-10, 05:43 PM</div></div><div class="posttext">Im guessing theyre trying to be safe... REALLY safe.<br />
<br />
^this lol. that date puts "soon" on another level lol. on or before is like saying "something is going to happen at anytime between today and 5 years from now....maybe...."<br />
<br />
i sure to HELL hope its not really that far off. cause damn. thats ridiculous if it is. hoping for at MOST june</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Bisso</div><div class="date">2014-03-10, 05:44 PM</div></div><div class="posttext">FK me sideways, I JUST bought the D3 RoS CE.. Oh my poor creditcard.....<br />
<br />
You are the only one to blame here. If you buy the games when they actually come out, instead of preordering a game months before its release, you wouldn't load your credit card. Why not buy the game when they come out or when you plan to play them, not only is it more responsible "financially" (yes that's only $50), but it also doesn't give Blizz money up front. BTW, if you go to the restaurant, an expensive one, try to avoid paying up front, because if you end up with a crappy experience, you will only have yourself to blame for that too. Don't pre-order movie tickets that just announced its first teaser too.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Azgraal</div><div class="date">2014-03-10, 05:44 PM</div></div><div class="posttext">Soo much butthurt in the comments, this is fantastic :D<br />
*eats popcorn*<br />
For all u people bitching at the price, why not get a JOB, un-sub for 1/2year and play another game, rob some old woman or ask ur mommy to use her credit card again<br />
<br />
Hello. I am an university student, almost done with my masters in engineering, already have a stable source of income, those 10€ wouldn't make me any poorer yet I'm complaining. <br />
<br />
If you stopped for a second you'd realise it's not about the price but the idea that Blizzard can rise the prices without consequences and everyone will comply like lemmings.<br />
<br />
But that's too hard, is it?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc037243c2a8</div><div class="date">2014-03-10, 05:44 PM</div></div><div class="posttext">What's WildStar?<br />
<br />
If you have to ask, then you really missing out on a lot of fun.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Noomz</div><div class="date">2014-03-10, 05:44 PM</div></div><div class="posttext">40 SEK for an expac when all the others have been closer to 300?<br />
Latest date set for the release is December?<br />
<br />
The first is very aggrevating.<br />
The latter is very worrying. Your latest date set is December. You seriously expect that it -could- take that long? If you can't give a reliable date, don't give one at all.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">roahn the warlock</div><div class="date">2014-03-10, 05:44 PM</div></div><div class="posttext">Save up your money kiddies.. QQing at price? <br />
<br />
Get a real job .<br />
<br />
Get real responsibilities.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">krihan</div><div class="date">2014-03-10, 05:45 PM</div></div><div class="posttext">Lol.. december sorry blizzard i dont make fun of you often but if you think that is acceptable you really need to check yourself.. that is not acceptable.. anything later then august is not acceptable..<br />
<br />
how the hell can you expect wod to release in august when the expansion is still to have beta ? jesus guys, calm down . crying about it wont make wod release faster......</div></div><hr />
<div class="post"><div class="posttop"><div class="username">shesta</div><div class="date">2014-03-10, 05:45 PM</div></div><div class="posttext">To all the people scoffing about "get a real job if you don't like the price kiddies" in a self-satisfied manner. Some of us have perfectly good incomes and plenty of cash and still don't want to give it to Blizzard for this shitshow of an expansion. I would sooner go to a bar and drink the $50 away in cocktails. Last nail in the coffin for me, I might try it when they inevitably want to start giving it away for free or for cheap 6 months after release when another few million have quit.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmocb1225c5eb7</div><div class="date">2014-03-10, 05:45 PM</div></div><div class="posttext">I bet it will get released b4 that..<br />
and at the same time make me worry, that they set the "no later than" in the end of 2014</div></div><hr />
<div class="post"><div class="posttop"><div class="username">chaddd</div><div class="date">2014-03-10, 05:46 PM</div></div><div class="posttext">Seriously. If I can buy the digital deluxe version right now, and ride the bird mount...right now....that would be amazeballs. Has anyone bought it and tried?<br />
<br />
I agree 100% and it's churning away on the order page. Lets see if it hits my card with 10,000 copies of the CE... that would be pro.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmocf06effc4be</div><div class="date">2014-03-10, 05:47 PM</div></div><div class="posttext">^this lol. that date puts "soon" on another level lol. on or before is like saying "something is going to happen at anytime between today and 5 years from now....maybe...."<br />
<br />
i sure to HELL hope its not really that far off. cause damn. thats ridiculous if it is. hoping for at MOST june<br />
<br />
Son, do you still believe in the Easter Bunny aswell? In case you missed it;<br />
<br />
BETA HASNT EVEN STARTED YET</div></div><hr />
<div class="post"><div class="posttop"><div class="username">roahn the warlock</div><div class="date">2014-03-10, 05:47 PM</div></div><div class="posttext">how the hell can you expect wod to release in august when the expansion is still to have beta ? jesus guys, calm down . crying about it wont make wod release faster......<br />
Everyone with sense who stops paying for the next 8 months will make a difference, I'd rather take the what, 90 dollars and buy gw2 and try that.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Chawan</div><div class="date">2014-03-10, 05:47 PM</div></div><div class="posttext">To the people complaining about the price, you do know there are other places to buy it from for a much lower price right?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Gantrithor</div><div class="date">2014-03-10, 05:48 PM</div></div><div class="posttext">Might sound stupid, but can you preorder it and then unsub and still be able to... Use it and stuff? Because I just can't afford this, especially since I don't even play right now. So if I buy the DDE can I then unsub and resub when I get the key when it's available?<br />
<br />
The DDE items are not preorder items. You'll get them even if you buy DDE after release.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">BurningSkies2018</div><div class="date">2014-03-10, 05:48 PM</div></div><div class="posttext">Not sure how I feel about the higher price for an expansion than that's ever been charged. I'm just not sure I see it being worth 50 bucks, if it had a new race or class, or, even a lot more dungeons and starting raids or something, but there really isn't anything that I see justifying 10$ extra. The extra 90 is whatever, since I have most characters at, or very close to max level, but adding to the cost for the bonus 90 is nonsense. Need to offer an option that doesn't include the 90 IMO.<br />
<br />
Yes I'm griping about the rise in prices, and yes I have a job. I can't see why it should cost any more than previously is all. Thought the 90 was supposed to be a freebie. Ohhhhh well :p</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Terminal Lance</div><div class="date">2014-03-10, 05:48 PM</div></div><div class="posttext">Wasn't expecting WoD to release that late, damn...</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc6eb9c8024c</div><div class="date">2014-03-10, 05:48 PM</div></div><div class="posttext">That date... o boy subs will fall, MASSIVE FAIL to put that...</div></div><hr />
<div class="post"><div class="posttop"><div class="username">jlee24219</div><div class="date">2014-03-10, 05:48 PM</div></div><div class="posttext">Do they charge your credit card now or on release?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Pickynerd</div><div class="date">2014-03-10, 05:48 PM</div></div><div class="posttext">http://www.youtube.com/watch?v=wp98SH3vW2Y<br />
<br />
Don't pre order!<br />
<br />
Unless you like the taste for up to 9 months.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Shirohibiki</div><div class="date">2014-03-10, 05:49 PM</div></div><div class="posttext">The DDE items are not preorder items. You'll get them even if you buy DDE after release.<br />
<br />
Oh, I know! I more of just meant like, if I buy it now I'll be able to upgrade my account even while unsubbed right? xD;; I've... Never unsubbed in almost 6 years so I'm unfamiliar with how it works. But thank you. :)</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Ryuuken</div><div class="date">2014-03-10, 05:49 PM</div></div><div class="posttext">I don't see why people are laughing at others thinking the release date is December 20th.<br />
I mean, Cata was December 7th. BC was January, WotLK was November and MoP was September.<br />
So, it could definitely be a December title, or as early as September. Somewhere in that time frame.<br />
<br />
People thinking about a June release? That's probably when the beta will hit.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">gutnbrg</div><div class="date">2014-03-10, 05:49 PM</div></div><div class="posttext">so they say u get a FREE boost to 90, but then they raise the price of the xpac to $50...soooo actually we are paying $10 for the boost...</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc67e7f8beac</div><div class="date">2014-03-10, 05:50 PM</div></div><div class="posttext">I don't see why people are laughing at others thinking the release date is December 20th.<br />
I mean, Cata was December 7th. BC was January, WotLK was November and MoP was September.<br />
So, it could definitely be a December title, or as early as September. Somewhere in that time frame.<br />
<br />
People thinking about a June release? That's probably when the beta will hit.<br />
<br />
15 months SoO sure. People will surely not unsub.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">roahn the warlock</div><div class="date">2014-03-10, 05:51 PM</div></div><div class="posttext">I legit just went and cancled my sub. playing since 2.1, it sucks I pay for the 6 months at a time, so I have to wait till june. but like hell I am gonna pay more until WoD comes out, if at all.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Higgit</div><div class="date">2014-03-10, 05:51 PM</div></div><div class="posttext">They aren't taking many profits in the EU.... Site been down like 30 mins....<br />
But most things usually break here anyway</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Kryos</div><div class="date">2014-03-10, 05:51 PM</div></div><div class="posttext">http://eu.battle.net/de/int?r=wow<br />
<br />
Digital Deluxe Europe: 59,99 €<br />
Regular Version: 44,99 €</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Thraxsis</div><div class="date">2014-03-10, 05:51 PM</div></div><div class="posttext">Do they charge your credit card now or on release?<br />
<br />
They charged my card at the time of purchase.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Azgraal</div><div class="date">2014-03-10, 05:52 PM</div></div><div class="posttext">Idea: <br />
<br />
Make a version of the game available for purchase WITHOUT the boost.<br />
<br />
That's a nice loophole they're using there, technicaly the boost is still free with the purchase of the expansion, the thing is the latter saw its price rise "mysteriously".</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc67e7f8beac</div><div class="date">2014-03-10, 05:52 PM</div></div><div class="posttext">http://eu.battle.net/de/int?r=wow<br />
<br />
Digital Deluxe Europe: 59,99 €<br />
Regular Version: 44,99 €<br />
<br />
Rofl really? Time to find another game to play.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc90ba442814</div><div class="date">2014-03-10, 05:52 PM</div></div><div class="posttext">15 months SoO sure. People will surely not unsub.<br />
<br />
The shortest ever beta was 3 months. and if thats the case with all the changes they are wanting to add in we will get a buggy as hell release. and beta isnt even out yet so absolute earliest would still be august. <br />
<br />
blizz wont do a sumer release due to player dips in summer. so expect september/october at best</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Kaynot</div><div class="date">2014-03-10, 05:52 PM</div></div><div class="posttext">That is one savage release date and savage sell price.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">tangers58</div><div class="date">2014-03-10, 05:52 PM</div></div><div class="posttext">Sub cancelled</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Zoneseek</div><div class="date">2014-03-10, 05:53 PM</div></div><div class="posttext">I played mop for 2 months...2 months. $10 price hike? This will be the first xpac I wait to buy once its in the clearance bin. If I bother at all.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Durandro</div><div class="date">2014-03-10, 05:53 PM</div></div><div class="posttext">BETA HASNT EVEN STARTED YET<br />
<br />
And? Blizzard's dev team massively expanded recently and they are clearly doing a lot of internal testing. They don't need to do huge 6 month betas.<br />
<br />
But haters gunna hate.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoceec252ebf2</div><div class="date">2014-03-10, 05:54 PM</div></div><div class="posttext">Nothing about the boost including server/race change? So much for reviving an old dead alt on a dead server..</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Durandro</div><div class="date">2014-03-10, 05:54 PM</div></div><div class="posttext">People really are losing their minds over this aren't they?<br />
<br />
How... Amusing.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Azahel</div><div class="date">2014-03-10, 05:54 PM</div></div><div class="posttext">Idea: <br />
<br />
Make a version of the game available for purchase WITHOUT the boost.<br />
<br />
That's a nice loophole they're using there, technicaly the boost is still free with the purchase of the expansion, the thing is the latter saw its price rise "mysteriously".<br />
<br />
<br />
I support that idea</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Leakage</div><div class="date">2014-03-10, 05:55 PM</div></div><div class="posttext">Yeah, I've cancelled as well. As much as I enjoy the game, SoO for 15 months is ridiculous and I'm not paying $105 for zero new content for 7 more months.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">azurrei</div><div class="date">2014-03-10, 05:55 PM</div></div><div class="posttext">So the "free" level 90 is actually $10 - how about a version of the game that doesn't come with something I need for the normal $40?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Shirohibiki</div><div class="date">2014-03-10, 05:55 PM</div></div><div class="posttext">Idea: <br />
<br />
Make a version of the game available for purchase WITHOUT the boost.<br />
<br />
That's a nice loophole they're using there, technicaly the boost is still free with the purchase of the expansion, the thing is the latter saw its price rise "mysteriously".<br />
<br />
Do you think they'll do that? Should I just hold off and see? Or would that not count for the DDE so I have to eat 70$ anyway?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">chaddd</div><div class="date">2014-03-10, 05:56 PM</div></div><div class="posttext">Nothing about the boost including server/race change? So much for reviving an old dead alt on a dead server..<br />
<br />
<br />
Let me help you with the problem... Make a level 1 on any server you want and boost it. Tada!</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc0fc2032db7</div><div class="date">2014-03-10, 05:56 PM</div></div><div class="posttext">The game will come out september/October dont worry.<br />
And i guess they have to raise the prices because more and more people only buy the keys now which are much cheaper. That way they can get more money from the key seller.<br />
<br />
Reaper of Souls 39.99 euro from Blizzard.<br />
Key for Reaper of Souls 27.99 euro on various Key seller sites.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Sarevokcz</div><div class="date">2014-03-10, 05:56 PM</div></div><div class="posttext">why preorder DIGITAL at all? its not like its a limited supply... another half a year without new content, prize have gone up... yep, I think I wont be buying this just like RoS.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Kelzam</div><div class="date">2014-03-10, 05:56 PM</div></div><div class="posttext">The people crying about the 12/20/2014 date are morons.<br />
<br />
Every company pre-selling a product is legally obligated and required to provide a release date for it's product. This is why Game Stop and any other retailer will pull a random date out of their ass which is more often than not a far cry from the actual release date of a game you pre-order from them. This does not mean it's going to come out as late as December 20th. It doesn't say anything at all about the development progress or actual release date.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">jangkun</div><div class="date">2014-03-10, 05:57 PM</div></div><div class="posttext">Well..I'll surely be on Elder Scrolls Online and many other games till Dec..Already sick of SoO after 6 months, I won't do 9 more months.. (yeah I know they can release it sooner than Dec. but probably won't be before Oct.-Nov).</div></div><hr />
<div class="post"><div class="posttop"><div class="username">alt-ithist</div><div class="date">2014-03-10, 05:57 PM</div></div><div class="posttext">What an ugly box cover, no warcraft-vibe at all. Higher price, not a suprise- it is blizzard after all<br />
<br />
It's a box with a picture of Grom on it. How does that not scream Warcraft? <br />
<br />
OT, the price doesn't bother me. I will be getting the physical deluxe. The time frame would bother me but I'll be distracted by ESO for the next few months anyway. Hopefully I can down heroic Garrosh be ESO hits otherwise ill have to come back to it a month or 2 before warlords hit.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">CrusaderNerò87</div><div class="date">2014-03-10, 05:57 PM</div></div><div class="posttext">dat release date.. dayyum</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Santoryu</div><div class="date">2014-03-10, 05:57 PM</div></div><div class="posttext">7 months until release? Who in their right mind will continue playing MoP for that long?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmocca221a13c3</div><div class="date">2014-03-10, 05:57 PM</div></div><div class="posttext">50 dollar = 50*€0.73<br />
50 dollar = €45,- ?<br />
<br />
why??</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoceec252ebf2</div><div class="date">2014-03-10, 05:57 PM</div></div><div class="posttext">Let me help you with the problem... Make a level 1 on any server you want and boost it. Tada!<br />
<br />
Rather get that old alt, since its over 60, so I get the proffesion boosts aswell..</div></div><hr />
<div class="post"><div class="posttop"><div class="username">chazus</div><div class="date">2014-03-10, 05:58 PM</div></div><div class="posttext">My question is.. Why is this expansion $10 more than all the previous ones?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Azgraal</div><div class="date">2014-03-10, 05:58 PM</div></div><div class="posttext">Do you think they'll do that? Should I just hold off and see? Or would that not count for the DDE so I have to eat 70$ anyway?<br />
<br />
I HOPE they do that, but realisticaly I think they've got the pricetags written in stone by now...</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Adoxe</div><div class="date">2014-03-10, 05:58 PM</div></div><div class="posttext">https://twitter.com/WatcherDev/status/443076799426093056<br />
Shut up already Doomsayers.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmocca221a13c3</div><div class="date">2014-03-10, 05:59 PM</div></div><div class="posttext">$50,- = 50 x €0.73<br />
$50,- = €45,- <br />
<br />
Seems fair</div></div><hr />
<div class="post"><div class="posttop"><div class="username">CheeseSandwich</div><div class="date">2014-03-10, 05:59 PM</div></div><div class="posttext">Imma put on my ultra cynical mask and say they are putting out the pre-purchase this early and with such a shakey release date to boost the revenue for this quarter.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">chaddd</div><div class="date">2014-03-10, 05:59 PM</div></div><div class="posttext">why preorder DIGITAL at all? =<br />
<br />
But I do want they flying raven lord ASAP!</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Blaiz</div><div class="date">2014-03-10, 06:00 PM</div></div><div class="posttext">Or you know..they are going on what blizzard has told them...damn idiots using the evidence provided to come up with a reasonable conclusion compared to just guesstimating 0o<br />
<br />
That is the point I'm making, we're all going by what Blizzard has told us so no reason to take it as gospel, after Blizzcon I expected 3rd quarter (July/Aug/Sept) release but had already lost any hope of that happening. Fortunately Steam sales and PS+ have given me a whole library of games I have yet to play.<br />
<br />
For the record I've had an active EU subscription since release in Feb 2005, on top of that I've also had a second (always active) subscription since early 2008. They've both been on three-month rolling subs and both will next renew in early April, this though is the first time I've really thought about freezing both accounts. <br />
<br />
It's not some kind of personal protest since I'd rather play a polished WoD than a rushed out release, right now I just don't have much enthusiam for the next expansion and now seems as a good a time as any for me to maybe take my first forced break away from the game. What I mean by that is that I've taken breaks in the past but since the accounts have been active I always had the choice to log in if I wanted. So I'm being completely selfish here but all these delays... well for me they could all be a blessing in disguise.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">grexly75</div><div class="date">2014-03-10, 06:00 PM</div></div><div class="posttext">People really are losing their minds over this aren't they?<br />
<br />
How... Amusing.<br />
<br />
Yeah I am laughing at the frenzied frothing at the mouths people going nuts over the "latest we have allowed for release date" rants and the "I am unsubbing because of this crowd.."<br />
<br />
I reckon a good tv producer could make a wicked soap opera about half of what goes on, on this forum..</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Moraven</div><div class="date">2014-03-10, 06:00 PM</div></div><div class="posttext">So the "free" level 90 is actually $10 - how about a version of the game that doesn't come with something I need for the normal $40?<br />
<br />
That is my thoughts also. Not much of a $60 value if they raise the price of the expansion by $10.<br />
<br />
Rather skip the boost and save $10.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">flavie</div><div class="date">2014-03-10, 06:01 PM</div></div><div class="posttext">For all those complaining about price... How about you quit wow for the next 8 months and get better jobs.<br />
<br />
haha so much this xD lol'd irl</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Hulkovius</div><div class="date">2014-03-10, 06:01 PM</div></div><div class="posttext">CHRISTMAS?!r U be Med... Shiet, dat blizzcon date "spring, or Summer"...</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Meredi</div><div class="date">2014-03-10, 06:02 PM</div></div><div class="posttext">everyone flip out over an xpac that cost $10 more than the previous one did. Hate to jump on this response but get a real job or something, unsubscribe for 1 month to save the difference from what you expected, there are options that are viable. I get the date being frustrating, but the cost of the game makes everyone look really cheap.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Magjee</div><div class="date">2014-03-10, 06:02 PM</div></div><div class="posttext">Is that Grom on the box art?<br />
<br />
Don't like the cover much this time around.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">jason1975</div><div class="date">2014-03-10, 06:02 PM</div></div><div class="posttext">Nothing about the boost including server/race change? So much for reviving an old dead alt on a dead server..<br />
<br />
You realize you can make a character (of any race) on any server you'd like and boost it right?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoccdcc052b46</div><div class="date">2014-03-10, 06:03 PM</div></div><div class="posttext">Does the pre-purchase DD only include the boost? or mount and pet as well?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Verdell</div><div class="date">2014-03-10, 06:03 PM</div></div><div class="posttext">http://i.imgur.com/HuZuHIU.jpg<br />
<br />
That fine print. I think it reads better than "On or before 12/20/14". They really stirred it up with that message. GGWP</div></div><hr />
<div class="post"><div class="posttop"><div class="username">CrusaderNerò87</div><div class="date">2014-03-10, 06:04 PM</div></div><div class="posttext">Well, maybe I'll get my Rogue boosted so I can finally be annoying to horde with him :P Always wanted one, never made it to max level, not even close :P</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Feerles</div><div class="date">2014-03-10, 06:04 PM</div></div><div class="posttext">Lol, why december? Can it end up being that late?<br />
<br />
All of you please go back to school and learn something. It says on the site FALL 2014. For tards that don't know, the reason for the December 20th date is cause WINTER BEGINS DECEMBER 21ST!!!!.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mitbrandir</div><div class="date">2014-03-10, 06:04 PM</div></div><div class="posttext">$50,- = 50 x €0.73<br />
$50,- = €45,- <br />
<br />
Seems fair<br />
<br />
Happens with so many games. Most AAA games are being sold for 60 dollar aswell as 60 euro, while 60 euro is quite abit more than 60 dollar. It's just major companies taking advtange of the stock exchange, while screwing the customers.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">lagmoose</div><div class="date">2014-03-10, 06:05 PM</div></div><div class="posttext">https://twitter.com/WatcherDev/status/443076799426093056<br />
Shut up already Doomsayers.<br />
<br />
<br />
Sadly once it's started, you can't convince them otherwise. It was obvious the 20th wasn't the finalized date, people overreacted as usual. It was no different than if Gamestop had the release date of Dec 31st, 2014 as release. A hardened date won't be announced til it's about 3 months away from actual release.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Kaeleena</div><div class="date">2014-03-10, 06:05 PM</div></div><div class="posttext">everyone flip out over an xpac that cost $10 more than the previous one did. Hate to jump on this response but get a real job or something, unsubscribe for 1 month to save the difference from what you expected, there are options that are viable. I get the date being frustrating, but the cost of the game makes everyone look really cheap.<br />
<br />
Every expansion to date has been $40. There's no justification for them to raise it to $50 now. If we went by quality of the content seen so far, this is worth about $5 of TBC's $40.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">thatmikeguy</div><div class="date">2014-03-10, 06:06 PM</div></div><div class="posttext">Can we use the 90 boost now?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Wolfie of Medivh</div><div class="date">2014-03-10, 06:06 PM</div></div><div class="posttext">"the 10$ price jump is due to the level Boost! it's not free!"<br />
<br />
Gee, mate, the expansions have stayed the same price for 10 years. Ever consider maybe this little thing called inflation caught up?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmoc37672be2a3</div><div class="date">2014-03-10, 06:07 PM</div></div><div class="posttext">People telleing other to get a job because 10$ are not much at all.<br />
It's not about the 10$, It's all about paying something for what is worth and to me like many other players, WoD is not adding more than MoP (imho even less) thus it should not be worth more.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">mmocef71e99c15</div><div class="date">2014-03-10, 06:07 PM</div></div><div class="posttext">I wonder if this will finally put an end to the silly talk in these forums of a spring or summer release.<br />
<br />
Pronbably not, wishfull thinking is a hard kill.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Kaeleena</div><div class="date">2014-03-10, 06:07 PM</div></div><div class="posttext">"the 10$ price jump is due to the level Boost! it's not free!"<br />
<br />
Gee, mate, the expansions have stayed the same price for 10 years. Ever consider maybe this little thing called inflation caught up?<br />
<br />
Console games still cost the same as they did 8 years ago. Has nothing to do with inflation.</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Frozenbeef</div><div class="date">2014-03-10, 06:07 PM</div></div><div class="posttext">"the 10$ price jump is due to the level Boost! it's not free!"<br />
<br />
Gee, mate, the expansions have stayed the same price for 10 years. Ever consider maybe this little thing called inflation caught up?<br />
<br />
Considering we pay a rather hefty sub fee every month + cash shops + past expansions it's rather insulting for them to increase the fee...</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Milch</div><div class="date">2014-03-10, 06:08 PM</div></div><div class="posttext">So I am seeing the dread raven pets filling up the auction house, is this against any ToS?</div></div><hr />
<div class="post"><div class="posttop"><div class="username">Collected</div><div class="date">2014-03-10, 06:09 PM</div></div><div class="posttext">Gotta say I'm disappointed in the boost interface. No explanation about what each spec is used for? That's just lazy.</div></div><hr />
<div id="copyright">Powered by vBulletin™ Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.</div>
</div>
</body>
</html> | 144.851744 | 856 | 0.716059 |
577b7f7b2eb02cdf6e89fb999660f8de25db2c67 | 13,021 | h | C | RIFE/rife_v2_flow_tta_avg.comp.hex.h | HomeOfVapourSynthEvolution/VapourSynth-RIFE | f821053e0e3b98f3eb6f98ae07edd8ecc2b3dd18 | [
"MIT"
] | 39 | 2021-05-31T11:16:21.000Z | 2022-03-30T23:01:56.000Z | RIFE/rife_v2_flow_tta_avg.comp.hex.h | DaGooseYT/VapourSynth-RIFE-ncnn-Vulkan | d66004fd4bc2bf8a7e8f7d5629a496a63ad317bc | [
"MIT"
] | 11 | 2021-06-02T21:40:37.000Z | 2022-03-19T10:28:15.000Z | RIFE/rife_v2_flow_tta_avg.comp.hex.h | DaGooseYT/VapourSynth-RIFE-ncnn-Vulkan | d66004fd4bc2bf8a7e8f7d5629a496a63ad317bc | [
"MIT"
] | 1 | 2022-01-07T01:55:43.000Z | 2022-01-07T01:55:43.000Z | static const char rife_v2_flow_tta_avg_comp_data[] = {0x23,0x76,0x65,0x72,0x73,0x69,0x6f,0x6e,0x20,0x34,0x35,0x30,0x0d,0x0a,0x0d,0x0a,0x23,0x69,0x66,0x20,0x4e,0x43,0x4e,0x4e,0x5f,0x66,0x70,0x31,0x36,0x5f,0x73,0x74,0x6f,0x72,0x61,0x67,0x65,0x0d,0x0a,0x23,0x65,0x78,0x74,0x65,0x6e,0x73,0x69,0x6f,0x6e,0x20,0x47,0x4c,0x5f,0x45,0x58,0x54,0x5f,0x73,0x68,0x61,0x64,0x65,0x72,0x5f,0x31,0x36,0x62,0x69,0x74,0x5f,0x73,0x74,0x6f,0x72,0x61,0x67,0x65,0x3a,0x20,0x72,0x65,0x71,0x75,0x69,0x72,0x65,0x0d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0d,0x0a,0x0d,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x20,0x28,0x62,0x69,0x6e,0x64,0x69,0x6e,0x67,0x20,0x3d,0x20,0x30,0x29,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x30,0x20,0x7b,0x20,0x73,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x30,0x5f,0x64,0x61,0x74,0x61,0x5b,0x5d,0x3b,0x20,0x7d,0x3b,0x0d,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x20,0x28,0x62,0x69,0x6e,0x64,0x69,0x6e,0x67,0x20,0x3d,0x20,0x31,0x29,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x31,0x20,0x7b,0x20,0x73,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x31,0x5f,0x64,0x61,0x74,0x61,0x5b,0x5d,0x3b,0x20,0x7d,0x3b,0x0d,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x20,0x28,0x62,0x69,0x6e,0x64,0x69,0x6e,0x67,0x20,0x3d,0x20,0x32,0x29,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x32,0x20,0x7b,0x20,0x73,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x32,0x5f,0x64,0x61,0x74,0x61,0x5b,0x5d,0x3b,0x20,0x7d,0x3b,0x0d,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x20,0x28,0x62,0x69,0x6e,0x64,0x69,0x6e,0x67,0x20,0x3d,0x20,0x33,0x29,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x33,0x20,0x7b,0x20,0x73,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x33,0x5f,0x64,0x61,0x74,0x61,0x5b,0x5d,0x3b,0x20,0x7d,0x3b,0x0d,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x20,0x28,0x62,0x69,0x6e,0x64,0x69,0x6e,0x67,0x20,0x3d,0x20,0x34,0x29,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x34,0x20,0x7b,0x20,0x73,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x34,0x5f,0x64,0x61,0x74,0x61,0x5b,0x5d,0x3b,0x20,0x7d,0x3b,0x0d,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x20,0x28,0x62,0x69,0x6e,0x64,0x69,0x6e,0x67,0x20,0x3d,0x20,0x35,0x29,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x35,0x20,0x7b,0x20,0x73,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x35,0x5f,0x64,0x61,0x74,0x61,0x5b,0x5d,0x3b,0x20,0x7d,0x3b,0x0d,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x20,0x28,0x62,0x69,0x6e,0x64,0x69,0x6e,0x67,0x20,0x3d,0x20,0x36,0x29,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x36,0x20,0x7b,0x20,0x73,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x36,0x5f,0x64,0x61,0x74,0x61,0x5b,0x5d,0x3b,0x20,0x7d,0x3b,0x0d,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x20,0x28,0x62,0x69,0x6e,0x64,0x69,0x6e,0x67,0x20,0x3d,0x20,0x37,0x29,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x37,0x20,0x7b,0x20,0x73,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x37,0x5f,0x64,0x61,0x74,0x61,0x5b,0x5d,0x3b,0x20,0x7d,0x3b,0x0d,0x0a,0x0d,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x20,0x28,0x70,0x75,0x73,0x68,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x29,0x20,0x75,0x6e,0x69,0x66,0x6f,0x72,0x6d,0x20,0x70,0x61,0x72,0x61,0x6d,0x65,0x74,0x65,0x72,0x0d,0x0a,0x7b,0x0d,0x0a,0x69,0x6e,0x74,0x20,0x77,0x3b,0x0d,0x0a,0x69,0x6e,0x74,0x20,0x68,0x3b,0x0d,0x0a,0x69,0x6e,0x74,0x20,0x63,0x73,0x74,0x65,0x70,0x3b,0x0d,0x0a,0x7d,0x20,0x70,0x3b,0x0d,0x0a,0x0d,0x0a,0x76,0x6f,0x69,0x64,0x20,0x6d,0x61,0x69,0x6e,0x28,0x29,0x0d,0x0a,0x7b,0x0d,0x0a,0x69,0x6e,0x74,0x20,0x67,0x78,0x20,0x3d,0x20,0x69,0x6e,0x74,0x28,0x67,0x6c,0x5f,0x47,0x6c,0x6f,0x62,0x61,0x6c,0x49,0x6e,0x76,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x49,0x44,0x2e,0x78,0x29,0x3b,0x0d,0x0a,0x69,0x6e,0x74,0x20,0x67,0x79,0x20,0x3d,0x20,0x69,0x6e,0x74,0x28,0x67,0x6c,0x5f,0x47,0x6c,0x6f,0x62,0x61,0x6c,0x49,0x6e,0x76,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x49,0x44,0x2e,0x79,0x29,0x3b,0x0d,0x0a,0x69,0x6e,0x74,0x20,0x67,0x7a,0x20,0x3d,0x20,0x69,0x6e,0x74,0x28,0x67,0x6c,0x5f,0x47,0x6c,0x6f,0x62,0x61,0x6c,0x49,0x6e,0x76,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x49,0x44,0x2e,0x7a,0x29,0x3b,0x0d,0x0a,0x0d,0x0a,0x69,0x66,0x20,0x28,0x67,0x78,0x20,0x3e,0x3d,0x20,0x70,0x2e,0x77,0x20,0x7c,0x7c,0x20,0x67,0x79,0x20,0x3e,0x3d,0x20,0x70,0x2e,0x68,0x20,0x7c,0x7c,0x20,0x67,0x7a,0x20,0x3e,0x3d,0x20,0x31,0x29,0x0d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x3b,0x0d,0x0a,0x0d,0x0a,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x78,0x79,0x7a,0x77,0x30,0x20,0x3d,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x6c,0x64,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x30,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x67,0x79,0x20,0x2a,0x20,0x70,0x2e,0x77,0x20,0x2b,0x20,0x67,0x78,0x29,0x3b,0x0d,0x0a,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x78,0x79,0x7a,0x77,0x31,0x20,0x3d,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x6c,0x64,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x31,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x67,0x79,0x20,0x2a,0x20,0x70,0x2e,0x77,0x20,0x2b,0x20,0x28,0x70,0x2e,0x77,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x78,0x29,0x29,0x3b,0x0d,0x0a,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x78,0x79,0x7a,0x77,0x32,0x20,0x3d,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x6c,0x64,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x32,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x28,0x70,0x2e,0x68,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x79,0x29,0x20,0x2a,0x20,0x70,0x2e,0x77,0x20,0x2b,0x20,0x28,0x70,0x2e,0x77,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x78,0x29,0x29,0x3b,0x0d,0x0a,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x78,0x79,0x7a,0x77,0x33,0x20,0x3d,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x6c,0x64,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x33,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x28,0x70,0x2e,0x68,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x79,0x29,0x20,0x2a,0x20,0x70,0x2e,0x77,0x20,0x2b,0x20,0x67,0x78,0x29,0x3b,0x0d,0x0a,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x78,0x79,0x7a,0x77,0x34,0x20,0x3d,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x6c,0x64,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x34,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x67,0x78,0x20,0x2a,0x20,0x70,0x2e,0x68,0x20,0x2b,0x20,0x67,0x79,0x29,0x3b,0x0d,0x0a,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x78,0x79,0x7a,0x77,0x35,0x20,0x3d,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x6c,0x64,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x35,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x67,0x78,0x20,0x2a,0x20,0x70,0x2e,0x68,0x20,0x2b,0x20,0x28,0x70,0x2e,0x68,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x79,0x29,0x29,0x3b,0x0d,0x0a,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x78,0x79,0x7a,0x77,0x36,0x20,0x3d,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x6c,0x64,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x36,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x28,0x70,0x2e,0x77,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x78,0x29,0x20,0x2a,0x20,0x70,0x2e,0x68,0x20,0x2b,0x20,0x28,0x70,0x2e,0x68,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x79,0x29,0x29,0x3b,0x0d,0x0a,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x20,0x78,0x79,0x7a,0x77,0x37,0x20,0x3d,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x6c,0x64,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x37,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x28,0x70,0x2e,0x77,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x78,0x29,0x20,0x2a,0x20,0x70,0x2e,0x68,0x20,0x2b,0x20,0x67,0x79,0x29,0x3b,0x0d,0x0a,0x0d,0x0a,0x61,0x66,0x70,0x20,0x78,0x20,0x3d,0x20,0x28,0x78,0x79,0x7a,0x77,0x30,0x2e,0x78,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x31,0x2e,0x78,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x32,0x2e,0x78,0x20,0x2b,0x20,0x78,0x79,0x7a,0x77,0x33,0x2e,0x78,0x20,0x2b,0x20,0x78,0x79,0x7a,0x77,0x34,0x2e,0x79,0x20,0x2b,0x20,0x78,0x79,0x7a,0x77,0x35,0x2e,0x79,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x36,0x2e,0x79,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x37,0x2e,0x79,0x29,0x20,0x2a,0x20,0x61,0x66,0x70,0x28,0x30,0x2e,0x31,0x32,0x35,0x66,0x29,0x3b,0x0d,0x0a,0x61,0x66,0x70,0x20,0x79,0x20,0x3d,0x20,0x28,0x78,0x79,0x7a,0x77,0x30,0x2e,0x79,0x20,0x2b,0x20,0x78,0x79,0x7a,0x77,0x31,0x2e,0x79,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x32,0x2e,0x79,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x33,0x2e,0x79,0x20,0x2b,0x20,0x78,0x79,0x7a,0x77,0x34,0x2e,0x78,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x35,0x2e,0x78,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x36,0x2e,0x78,0x20,0x2b,0x20,0x78,0x79,0x7a,0x77,0x37,0x2e,0x78,0x29,0x20,0x2a,0x20,0x61,0x66,0x70,0x28,0x30,0x2e,0x31,0x32,0x35,0x66,0x29,0x3b,0x0d,0x0a,0x61,0x66,0x70,0x20,0x7a,0x20,0x3d,0x20,0x28,0x78,0x79,0x7a,0x77,0x30,0x2e,0x7a,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x31,0x2e,0x7a,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x32,0x2e,0x7a,0x20,0x2b,0x20,0x78,0x79,0x7a,0x77,0x33,0x2e,0x7a,0x20,0x2b,0x20,0x78,0x79,0x7a,0x77,0x34,0x2e,0x77,0x20,0x2b,0x20,0x78,0x79,0x7a,0x77,0x35,0x2e,0x77,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x36,0x2e,0x77,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x37,0x2e,0x77,0x29,0x20,0x2a,0x20,0x61,0x66,0x70,0x28,0x30,0x2e,0x31,0x32,0x35,0x66,0x29,0x3b,0x0d,0x0a,0x61,0x66,0x70,0x20,0x77,0x20,0x3d,0x20,0x28,0x78,0x79,0x7a,0x77,0x30,0x2e,0x77,0x20,0x2b,0x20,0x78,0x79,0x7a,0x77,0x31,0x2e,0x77,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x32,0x2e,0x77,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x33,0x2e,0x77,0x20,0x2b,0x20,0x78,0x79,0x7a,0x77,0x34,0x2e,0x7a,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x35,0x2e,0x7a,0x20,0x2d,0x20,0x78,0x79,0x7a,0x77,0x36,0x2e,0x7a,0x20,0x2b,0x20,0x78,0x79,0x7a,0x77,0x37,0x2e,0x7a,0x29,0x20,0x2a,0x20,0x61,0x66,0x70,0x28,0x30,0x2e,0x31,0x32,0x35,0x66,0x29,0x3b,0x0d,0x0a,0x0d,0x0a,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x73,0x74,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x30,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x67,0x79,0x20,0x2a,0x20,0x70,0x2e,0x77,0x20,0x2b,0x20,0x67,0x78,0x2c,0x20,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x28,0x78,0x2c,0x20,0x79,0x2c,0x20,0x7a,0x2c,0x20,0x77,0x29,0x29,0x3b,0x0d,0x0a,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x73,0x74,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x31,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x67,0x79,0x20,0x2a,0x20,0x70,0x2e,0x77,0x20,0x2b,0x20,0x28,0x70,0x2e,0x77,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x78,0x29,0x2c,0x20,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x28,0x2d,0x78,0x2c,0x20,0x79,0x2c,0x20,0x2d,0x7a,0x2c,0x20,0x77,0x29,0x29,0x3b,0x0d,0x0a,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x73,0x74,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x32,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x28,0x70,0x2e,0x68,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x79,0x29,0x20,0x2a,0x20,0x70,0x2e,0x77,0x20,0x2b,0x20,0x28,0x70,0x2e,0x77,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x78,0x29,0x2c,0x20,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x28,0x2d,0x78,0x2c,0x20,0x2d,0x79,0x2c,0x20,0x2d,0x7a,0x2c,0x20,0x2d,0x77,0x29,0x29,0x3b,0x0d,0x0a,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x73,0x74,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x33,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x28,0x70,0x2e,0x68,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x79,0x29,0x20,0x2a,0x20,0x70,0x2e,0x77,0x20,0x2b,0x20,0x67,0x78,0x2c,0x20,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x28,0x78,0x2c,0x20,0x2d,0x79,0x2c,0x20,0x7a,0x2c,0x20,0x2d,0x77,0x29,0x29,0x3b,0x0d,0x0a,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x73,0x74,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x34,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x67,0x78,0x20,0x2a,0x20,0x70,0x2e,0x68,0x20,0x2b,0x20,0x67,0x79,0x2c,0x20,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x28,0x79,0x2c,0x20,0x78,0x2c,0x20,0x77,0x2c,0x20,0x7a,0x29,0x29,0x3b,0x0d,0x0a,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x73,0x74,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x35,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x67,0x78,0x20,0x2a,0x20,0x70,0x2e,0x68,0x20,0x2b,0x20,0x28,0x70,0x2e,0x68,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x79,0x29,0x2c,0x20,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x28,0x2d,0x79,0x2c,0x20,0x78,0x2c,0x20,0x2d,0x77,0x2c,0x20,0x7a,0x29,0x29,0x3b,0x0d,0x0a,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x73,0x74,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x36,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x28,0x70,0x2e,0x77,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x78,0x29,0x20,0x2a,0x20,0x70,0x2e,0x68,0x20,0x2b,0x20,0x28,0x70,0x2e,0x68,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x79,0x29,0x2c,0x20,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x28,0x2d,0x79,0x2c,0x20,0x2d,0x78,0x2c,0x20,0x2d,0x77,0x2c,0x20,0x2d,0x7a,0x29,0x29,0x3b,0x0d,0x0a,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x73,0x74,0x34,0x28,0x66,0x6c,0x6f,0x77,0x5f,0x62,0x6c,0x6f,0x62,0x37,0x5f,0x64,0x61,0x74,0x61,0x2c,0x20,0x28,0x70,0x2e,0x77,0x20,0x2d,0x20,0x31,0x20,0x2d,0x20,0x67,0x78,0x29,0x20,0x2a,0x20,0x70,0x2e,0x68,0x20,0x2b,0x20,0x67,0x79,0x2c,0x20,0x61,0x66,0x70,0x76,0x65,0x63,0x34,0x28,0x79,0x2c,0x20,0x2d,0x78,0x2c,0x20,0x77,0x2c,0x20,0x2d,0x7a,0x29,0x29,0x3b,0x0d,0x0a,0x7d,0x0d,0x0a};
| 6,510.5 | 13,020 | 0.800015 |
de9e3cbfeb9caee6164895e5e997e0101d3ff54f | 19,524 | rs | Rust | frb_codegen/src/source_graph.rs | AlienKevin/flutter_rust_bridge | 37ebac9f0ec26a1293374640d52a8b6f4e8bc277 | [
"MIT"
] | 764 | 2021-10-04T10:10:49.000Z | 2022-03-31T16:30:50.000Z | frb_codegen/src/source_graph.rs | AlienKevin/flutter_rust_bridge | 37ebac9f0ec26a1293374640d52a8b6f4e8bc277 | [
"MIT"
] | 199 | 2021-10-04T19:16:29.000Z | 2022-03-31T09:48:53.000Z | frb_codegen/src/source_graph.rs | AlienKevin/flutter_rust_bridge | 37ebac9f0ec26a1293374640d52a8b6f4e8bc277 | [
"MIT"
] | 42 | 2021-10-04T17:10:51.000Z | 2022-03-25T23:21:29.000Z | /*
Things this doesn't currently support that it might need to later:
- Import parsing is unfinished and so is currently disabled
- When import parsing is enabled:
- Import renames (use a::b as c) - these are silently ignored
- Imports that start with two colons (use ::a::b) - these are also silently ignored
*/
use std::{collections::HashMap, fmt::Debug, fs, path::PathBuf};
use cargo_metadata::MetadataCommand;
use log::{debug, warn};
use syn::{Attribute, Ident, ItemEnum, ItemStruct, UseTree};
use crate::markers;
/// Represents a crate, including a map of its modules, imports, structs and
/// enums.
#[derive(Debug, Clone)]
pub struct Crate {
pub name: String,
pub manifest_path: PathBuf,
pub root_src_file: PathBuf,
pub root_module: Module,
}
impl Crate {
pub fn new(manifest_path: &str) -> Self {
let mut cmd = MetadataCommand::new();
cmd.manifest_path(&manifest_path);
let metadata = cmd.exec().unwrap();
let root_package = metadata.root_package().unwrap();
let root_src_file = {
let lib_file = root_package
.manifest_path
.parent()
.unwrap()
.join("src/lib.rs");
let main_file = root_package
.manifest_path
.parent()
.unwrap()
.join("src/main.rs");
if lib_file.exists() {
fs::canonicalize(lib_file).unwrap()
} else if main_file.exists() {
fs::canonicalize(main_file).unwrap()
} else {
panic!("No src/lib.rs or src/main.rs found for this Cargo.toml file");
}
};
let source_rust_content = fs::read_to_string(&root_src_file).unwrap();
let file_ast = syn::parse_file(&source_rust_content).unwrap();
let mut result = Crate {
name: root_package.name.clone(),
manifest_path: fs::canonicalize(manifest_path).unwrap(),
root_src_file: root_src_file.clone(),
root_module: Module {
visibility: Visibility::Public,
file_path: root_src_file,
module_path: vec!["crate".to_string()],
source: Some(ModuleSource::File(file_ast)),
scope: None,
},
};
result.resolve();
result
}
/// Create a map of the modules for this crate
pub fn resolve(&mut self) {
self.root_module.resolve();
}
}
/// Mirrors syn::Visibility, but can be created without a token
#[derive(Debug, Clone)]
pub enum Visibility {
Public,
Crate,
Restricted, // Not supported
Inherited, // Usually means private
}
fn syn_vis_to_visibility(vis: &syn::Visibility) -> Visibility {
match vis {
syn::Visibility::Public(_) => Visibility::Public,
syn::Visibility::Crate(_) => Visibility::Crate,
syn::Visibility::Restricted(_) => Visibility::Restricted,
syn::Visibility::Inherited => Visibility::Inherited,
}
}
#[derive(Debug, Clone)]
pub struct Import {
pub path: Vec<String>,
pub visibility: Visibility,
}
#[derive(Debug, Clone)]
pub enum ModuleSource {
File(syn::File),
ModuleInFile(Vec<syn::Item>),
}
#[derive(Clone)]
pub struct Struct {
pub ident: Ident,
pub src: ItemStruct,
pub visibility: Visibility,
pub path: Vec<String>,
pub mirror: bool,
}
impl Debug for Struct {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("Struct")
.field("ident", &self.ident)
.field("src", &"omitted")
.field("visibility", &self.visibility)
.field("path", &self.path)
.field("mirror", &self.mirror)
.finish()
}
}
#[derive(Clone)]
pub struct Enum {
pub ident: Ident,
pub src: ItemEnum,
pub visibility: Visibility,
pub path: Vec<String>,
pub mirror: bool,
}
impl Debug for Enum {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("Enum")
.field("ident", &self.ident)
.field("src", &"omitted")
.field("visibility", &self.visibility)
.field("path", &self.path)
.field("mirror", &self.mirror)
.finish()
}
}
#[derive(Debug, Clone)]
pub struct ModuleScope {
pub modules: Vec<Module>,
pub enums: Vec<Enum>,
pub structs: Vec<Struct>,
pub imports: Vec<Import>,
}
#[derive(Clone)]
pub struct Module {
pub visibility: Visibility,
pub file_path: PathBuf,
pub module_path: Vec<String>,
pub source: Option<ModuleSource>,
pub scope: Option<ModuleScope>,
}
impl Debug for Module {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("Module")
.field("visibility", &self.visibility)
.field("module_path", &self.module_path)
.field("file_path", &self.file_path)
.field("source", &"omitted")
.field("scope", &self.scope)
.finish()
}
}
/// Get a struct or enum ident, possibly remapped by a mirror marker
fn get_ident(ident: &Ident, attrs: &[Attribute]) -> (Ident, bool) {
markers::extract_mirror_marker(attrs)
.and_then(|path| path.get_ident().map(|ident| (ident.clone(), true)))
.unwrap_or_else(|| (ident.clone(), false))
}
impl Module {
pub fn resolve(&mut self) {
self.resolve_modules();
// self.resolve_imports();
}
/// Maps out modules, structs and enums within the scope of this module
fn resolve_modules(&mut self) {
let mut scope_modules = Vec::new();
let mut scope_structs = Vec::new();
let mut scope_enums = Vec::new();
let items = match self.source.as_ref().unwrap() {
ModuleSource::File(file) => &file.items,
ModuleSource::ModuleInFile(items) => items,
};
for item in items.iter() {
match item {
syn::Item::Struct(item_struct) => {
let (ident, mirror) = get_ident(&item_struct.ident, &item_struct.attrs);
let ident_str = ident.to_string();
scope_structs.push(Struct {
ident,
src: item_struct.clone(),
visibility: syn_vis_to_visibility(&item_struct.vis),
path: {
let mut path = self.module_path.clone();
path.push(ident_str);
path
},
mirror,
});
}
syn::Item::Enum(item_enum) => {
let (ident, mirror) = get_ident(&item_enum.ident, &item_enum.attrs);
let ident_str = ident.to_string();
scope_enums.push(Enum {
ident,
src: item_enum.clone(),
visibility: syn_vis_to_visibility(&item_enum.vis),
path: {
let mut path = self.module_path.clone();
path.push(ident_str);
path
},
mirror,
});
}
syn::Item::Mod(item_mod) => {
let ident = item_mod.ident.clone();
let mut module_path = self.module_path.clone();
module_path.push(ident.to_string());
scope_modules.push(match &item_mod.content {
Some(content) => {
let mut child_module = Module {
visibility: syn_vis_to_visibility(&item_mod.vis),
file_path: self.file_path.clone(),
module_path,
source: Some(ModuleSource::ModuleInFile(content.1.clone())),
scope: None,
};
child_module.resolve();
child_module
}
None => {
let folder_path =
self.file_path.parent().unwrap().join(ident.to_string());
let folder_exists = folder_path.exists();
let file_path = if folder_exists {
folder_path.join("mod.rs")
} else {
self.file_path
.parent()
.unwrap()
.join(ident.to_string() + ".rs")
};
let file_exists = file_path.exists();
if !file_exists {
warn!(
"Skipping unresolvable module {} (tried {})",
&ident,
file_path.to_string_lossy()
);
continue;
}
let source = if file_exists {
let source_rust_content = fs::read_to_string(&file_path).unwrap();
debug!("Trying to parse {:?}", file_path);
Some(ModuleSource::File(
syn::parse_file(&source_rust_content).unwrap(),
))
} else {
None
};
let mut child_module = Module {
visibility: syn_vis_to_visibility(&item_mod.vis),
file_path,
module_path,
source,
scope: None,
};
if file_exists {
child_module.resolve();
}
child_module
}
});
}
_ => {}
}
}
self.scope = Some(ModuleScope {
modules: scope_modules,
enums: scope_enums,
structs: scope_structs,
imports: vec![], // Will be filled in by resolve_imports()
});
}
#[allow(dead_code)]
fn resolve_imports(&mut self) {
let imports = &mut self.scope.as_mut().unwrap().imports;
let items = match self.source.as_ref().unwrap() {
ModuleSource::File(file) => &file.items,
ModuleSource::ModuleInFile(items) => items,
};
for item in items.iter() {
if let syn::Item::Use(item_use) = item {
let flattened_imports = flatten_use_tree(&item_use.tree);
for import in flattened_imports {
imports.push(Import {
path: import,
visibility: syn_vis_to_visibility(&item_use.vis),
});
}
}
}
}
pub fn collect_structs<'a>(&'a self, container: &mut HashMap<String, &'a Struct>) {
let scope = self.scope.as_ref().unwrap();
for scope_struct in &scope.structs {
container.insert(scope_struct.ident.to_string(), scope_struct);
}
for scope_module in &scope.modules {
scope_module.collect_structs(container);
}
}
pub fn collect_structs_to_vec(&self) -> HashMap<String, &Struct> {
let mut ans = HashMap::new();
self.collect_structs(&mut ans);
ans
}
pub fn collect_enums<'a>(&'a self, container: &mut HashMap<String, &'a Enum>) {
let scope = self.scope.as_ref().unwrap();
for scope_enum in &scope.enums {
container.insert(scope_enum.ident.to_string(), scope_enum);
}
for scope_module in &scope.modules {
scope_module.collect_enums(container);
}
}
pub fn collect_enums_to_vec(&self) -> HashMap<String, &Enum> {
let mut ans = HashMap::new();
self.collect_enums(&mut ans);
ans
}
}
fn flatten_use_tree_rename_abort_warning(use_tree: &UseTree) {
debug!("WARNING: flatten_use_tree() found an import rename (use a::b as c). flatten_use_tree() will now abort.");
debug!("WARNING: This happened while parsing {:?}", use_tree);
debug!("WARNING: This use statement will be ignored.");
}
/// Takes a use tree and returns a flat list of use paths (list of string tokens)
///
/// Example:
/// use a::{b::c, d::e};
/// becomes
/// [
/// ["a", "b", "c"],
/// ["a", "d", "e"]
/// ]
///
/// Warning: As of writing, import renames (import a::b as c) are silently
/// ignored.
fn flatten_use_tree(use_tree: &UseTree) -> Vec<Vec<String>> {
// Vec<(path, is_complete)>
let mut result = vec![(vec![], false)];
let mut counter: usize = 0;
loop {
counter += 1;
if counter > 10000 {
panic!("flatten_use_tree: Use statement complexity limit exceeded. This is probably a bug.");
}
// If all paths are complete, break from the loop
if result.iter().all(|result_item| result_item.1) {
break;
}
let mut items_to_push = Vec::new();
for path_tuple in &mut result {
let path = &mut path_tuple.0;
let is_complete = &mut path_tuple.1;
if *is_complete {
continue;
}
let mut tree_cursor = use_tree;
for path_item in path.iter() {
match tree_cursor {
UseTree::Path(use_path) => {
let ident = use_path.ident.to_string();
if *path_item != ident {
panic!("This ident did not match the one we already collected. This is a bug.");
}
tree_cursor = use_path.tree.as_ref();
}
UseTree::Group(use_group) => {
let mut moved_tree_cursor = false;
for tree in use_group.items.iter() {
match tree {
UseTree::Path(use_path) => {
if path_item == &use_path.ident.to_string() {
tree_cursor = use_path.tree.as_ref();
moved_tree_cursor = true;
break;
}
}
// Since we're not matching UseTree::Group here, a::b::{{c}, {d}} might
// break. But also why would anybody do that
_ => unreachable!(),
}
}
if !moved_tree_cursor {
unreachable!();
}
}
_ => unreachable!(),
}
}
match tree_cursor {
UseTree::Name(use_name) => {
path.push(use_name.ident.to_string());
*is_complete = true;
}
UseTree::Path(use_path) => {
path.push(use_path.ident.to_string());
}
UseTree::Glob(_) => {
path.push("*".to_string());
*is_complete = true;
}
UseTree::Group(use_group) => {
// We'll modify the first one in-place, and make clones for
// all subsequent ones
let mut first: bool = true;
// Capture the path in this state, since we're about to
// modify it
let path_copy = path.clone();
for tree in use_group.items.iter() {
let mut new_path_tuple = if first {
None
} else {
let new_path = path_copy.clone();
items_to_push.push((new_path, false));
Some(items_to_push.iter_mut().last().unwrap())
};
match tree {
UseTree::Path(use_path) => {
let ident = use_path.ident.to_string();
if first {
path.push(ident);
} else {
new_path_tuple.unwrap().0.push(ident);
}
}
UseTree::Name(use_name) => {
let ident = use_name.ident.to_string();
if first {
path.push(ident);
*is_complete = true;
} else {
let path_tuple = new_path_tuple.as_mut().unwrap();
path_tuple.0.push(ident);
path_tuple.1 = true;
}
}
UseTree::Glob(_) => {
if first {
path.push("*".to_string());
*is_complete = true;
} else {
let path_tuple = new_path_tuple.as_mut().unwrap();
path_tuple.0.push("*".to_string());
path_tuple.1 = true;
}
}
UseTree::Group(_) => {
panic!(
"Directly-nested use groups ({}) are not supported by flutter_rust_bridge. Use {} instead.",
"use a::{{b}, c}",
"a::{b, c}"
);
}
// UseTree::Group(_) => panic!(),
UseTree::Rename(_) => {
flatten_use_tree_rename_abort_warning(use_tree);
return vec![];
}
}
first = false;
}
}
UseTree::Rename(_) => {
flatten_use_tree_rename_abort_warning(use_tree);
return vec![];
}
}
}
for item in items_to_push {
result.push(item);
}
}
result.into_iter().map(|val| val.0).collect()
}
| 35.241877 | 128 | 0.444376 |
712008a6be22fd7fe73e41dad653a670bca85172 | 565 | ts | TypeScript | src/app/layout/samsung/samsung.module.ts | IbraheemUmer/ems-frontend | ed182f86051e08d5f4893a6a5963382b560698b4 | [
"Apache-2.0"
] | null | null | null | src/app/layout/samsung/samsung.module.ts | IbraheemUmer/ems-frontend | ed182f86051e08d5f4893a6a5963382b560698b4 | [
"Apache-2.0"
] | null | null | null | src/app/layout/samsung/samsung.module.ts | IbraheemUmer/ems-frontend | ed182f86051e08d5f4893a6a5963382b560698b4 | [
"Apache-2.0"
] | null | null | null | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SamsungRoutingModule } from './samsung-routing.module';
import { SamsungComponent } from './samsung.component';
import { PageHeaderModule } from './../../shared';
import { DeviceComponent } from './device/device.component';
//import { OnceagainComponent } from './onceagain/onceagain.component';
@NgModule({
imports: [CommonModule, SamsungRoutingModule, PageHeaderModule],
declarations: [SamsungComponent, DeviceComponent,]
})
export class SamsungModule {} | 43.461538 | 71 | 0.741593 |
2a08238d99832bc12a8b385cc006673ab1ee3ca8 | 305 | java | Java | pandroid-demo/src/templates/java/com/leroymerlin/pandroid/templates/feature/FeatureFragmentOpener.java | xerib59/pandroid | bf831eed2928be4b1f1b3e95fdabb7394567609a | [
"Apache-2.0"
] | 29 | 2016-05-02T15:20:14.000Z | 2021-10-30T20:13:28.000Z | pandroid-demo/src/templates/java/com/leroymerlin/pandroid/templates/feature/FeatureFragmentOpener.java | chimanos/pandroid | bf831eed2928be4b1f1b3e95fdabb7394567609a | [
"Apache-2.0"
] | 5 | 2016-10-19T11:48:14.000Z | 2017-08-23T09:04:21.000Z | pandroid-demo/src/templates/java/com/leroymerlin/pandroid/templates/feature/FeatureFragmentOpener.java | chimanos/pandroid | bf831eed2928be4b1f1b3e95fdabb7394567609a | [
"Apache-2.0"
] | 10 | 2016-05-26T14:47:37.000Z | 2018-12-11T15:30:48.000Z | package com.leroymerlin.pandroid.templates.feature;
import com.leroymerlin.pandroid.event.opener.FragmentOpener;
/**
* Created by florian on 11/10/2017.
*/
public class FeatureFragmentOpener extends FragmentOpener {
public FeatureFragmentOpener() {
super(FeatureFragment.class);
}
}
| 20.333333 | 60 | 0.75082 |
363df0d6d805ae36510e5faa4f8f9196c6172b52 | 9,440 | swift | Swift | MtsInvestGrpcService/Classes/GRPC/Services/InstrumentService.swift | pastmos/MtsInvestGrpcService | 11331bd3ea9d8143fd0a7c50fb35b8a45f4ecc74 | [
"MIT"
] | null | null | null | MtsInvestGrpcService/Classes/GRPC/Services/InstrumentService.swift | pastmos/MtsInvestGrpcService | 11331bd3ea9d8143fd0a7c50fb35b8a45f4ecc74 | [
"MIT"
] | null | null | null | MtsInvestGrpcService/Classes/GRPC/Services/InstrumentService.swift | pastmos/MtsInvestGrpcService | 11331bd3ea9d8143fd0a7c50fb35b8a45f4ecc74 | [
"MIT"
] | null | null | null | //
// InstrumentsService.swift
// MtsInvestGrpcService
//
// Created by Юрий Султанов on 22.07.2021.
//
import GRPC
import NIO
protocol AnyInstrumentService: AnyObject {
func getInstrumentsList(
callOptions: CallOptions,
completion: @escaping (Result<[INVInstrumentBrief], INVError>) -> Void)
func subscribeInstrumentBrief(
_ object: AnyObject,
for tikers: [String],
callOptions: CallOptions,
completion: @escaping (Result<INVInstrumentBrief?, INVError>) -> Void)
func getInstrument(
instrumentID: String,
callOptions: CallOptions,
completion: @escaping (Result<INVInstrument, INVError>) -> Void)
func getExchangeStatus(
instrumentID: String,
callOptions: CallOptions,
completion: @escaping (Result<INVExchangeStatus, INVError>) -> Void)
}
final class InstrumentService: AnyService {
typealias InstumentsServiceClient = InstrumentsServiceClient
typealias InstumentServiceClient = Ru_Mts_Trading_Grpc_Pub_Instruments_V2_InstrumentsPublicServiceClient
// MARK: Private properties
private let eventLoopGroup = PlatformSupport.makeEventLoopGroup(loopCount: 1)
private var instrumentsService: InstumentsServiceClient?
private var instrumentService: InstumentServiceClient?
private var channel: ClientConnection?
private var callOptions: CallOptions?
private let instrumentsObservers: Observable<INVInstrumentBrief>
private var (host, port): (String, Int)
// MARK: Lifecycle
init(
host: String,
port: Int) {
(self.host, self.port) = (host, port)
instrumentsObservers = .init(streamType: .instumentBrief)
configureService()
}
deinit {
stop()
}
// MARK: Private methods
private func configureService() {
channel = ClientConnection
.usingPlatformAppropriateTLS(for: eventLoopGroup)
.connect(
host: host,
port: port)
guard let channel = channel else { return }
instrumentsService = InstumentsServiceClient(channel: channel)
instrumentService = InstumentServiceClient(channel: channel)
}
private func getInstrumentsList(
// filter: InstrumentsFilter? = nil,
completion: @escaping (Result<[INVInstrumentBrief], INVError>) -> Void) {
DispatchQueue.global().async {
let request = GetInstrumentsBriefRequest()
/// Filters dont work yet
// .with {
// $0.filter = filter
// }
let instrumentsFeature = self.instrumentsService?.listInstrumentsBriefFront(
request,
callOptions: self.callOptions)
do {
let response = try instrumentsFeature?.response.wait()
let invInstruments = response?.instruments.map { INVInstrumentBrief(from: $0) } ?? []
completion(.success(invInstruments))
} catch {
completion(.failure(INVError(from: error.localizedDescription)))
}
instrumentsFeature?.status.whenComplete { [weak self] result in
guard
let self = self,
let error = self.parseStatus(from: result)
else { return }
switch error {
case .unavailable:
self.configureService()
self.getInstrumentsList(completion: completion)
default:
completion(.failure(error))
}
}
}
}
private func getInstrumentBriedStream(tikers: [String]) {
guard let service = instrumentsService else { return }
DispatchQueue.global().async {
let request = GetInstrumentsBriefRequest.with {
$0.filter = .with {
$0.tickers = tikers
}
}
let stream = service.getInstrumentsBriefStream(
request,
callOptions: self.callOptions) { [weak self] instumentBrief in
guard let self = self else { return }
self.instrumentsObservers.onNext(INVInstrumentBrief(from: instumentBrief))
}
stream.status.whenComplete { [weak self] result in
guard
let self = self,
let error = self.parseStatus(from: result)
else { return }
switch error {
case .unavailable:
self.configureService()
self.getInstrumentBriedStream(tikers: tikers)
default:
self.instrumentsObservers.onError(error)
}
}
}
}
private func getInstrumentInfo(
instrumentID: String,
completion: @escaping (Result<INVInstrument, INVError>) -> Void) {
DispatchQueue.global().async {
let request = Ru_Mts_Trading_Grpc_Pub_Instruments_V2_GetInstrumentRequest
.with { $0.instrumentID = instrumentID }
let instrumentCall = self.instrumentService?.getInstrument(
request,
callOptions: self.callOptions)
do {
let response = try instrumentCall?.response.wait()
if let invInstrument = response.map({ INVInstrument(from: $0) }) {
completion(.success(invInstrument))
} else {
completion(.failure(.error("MappingError at \(#function)")))
}
} catch {
completion(.failure(.error(error.localizedDescription)))
}
instrumentCall?.status.whenComplete { [weak self] result in
guard
let self = self,
let error = self.parseStatus(from: result)
else { return }
switch error {
case .unavailable:
self.configureService()
self.getInstrumentInfo(
instrumentID: instrumentID,
completion: completion)
default:
completion(.failure(error))
}
}
}
}
private func getExchangeStatus(
instrumentID: String,
completion: @escaping (Result<INVExchangeStatus, INVError>) -> Void) {
let request = Ru_Mts_Trading_Grpc_Pub_Instruments_V2_GetExchangeStatusRequest
.with { $0.instrumentID = instrumentID }
let instrumentCall = self.instrumentService?.getExchangeStatus(
request,
callOptions: self.callOptions)
do {
let response = try instrumentCall?.response.wait()
if let invExchangeStatus = response.map({ INVExchangeStatus(from: $0) }) {
completion(.success(invExchangeStatus))
} else {
completion(.failure(.error("MappingError at \(#function)")))
}
} catch {
completion(.failure(.error(error.localizedDescription)))
}
instrumentCall?.status.whenComplete { [weak self] result in
guard
let self = self,
let error = self.parseStatus(from: result)
else { return }
switch error {
case .unavailable:
self.configureService()
self.getExchangeStatus(
instrumentID: instrumentID,
completion: completion)
default:
completion(.failure(error))
}
}
}
}
// MARK: - AnyInstrumentService
extension InstrumentService: AnyInstrumentService {
// MARK: Public methods
func getInstrumentsList(
callOptions: CallOptions,
completion: @escaping (Result<[INVInstrumentBrief], INVError>) -> Void) {
self.callOptions = callOptions
getInstrumentsList(completion: completion)
}
func subscribeInstrumentBrief(
_ object: AnyObject,
for tikers: [String],
callOptions: CallOptions,
completion: @escaping (Result<INVInstrumentBrief?, INVError>) -> Void) {
self.callOptions = callOptions
instrumentsObservers.subscribe(
object,
event: completion)
getInstrumentBriedStream(tikers: tikers)
}
func getInstrument(
instrumentID: String,
callOptions: CallOptions,
completion: @escaping (Result<INVInstrument, INVError>) -> Void) {
self.callOptions = callOptions
getInstrumentInfo(
instrumentID: instrumentID,
completion: completion)
}
func getExchangeStatus(
instrumentID: String,
callOptions: CallOptions,
completion: @escaping (Result<INVExchangeStatus, INVError>) -> Void) {
self.callOptions = callOptions
getExchangeStatus(
instrumentID: instrumentID,
completion: completion)
}
func stop() {
_ = channel?.close()
try? eventLoopGroup.syncShutdownGracefully()
print("🛑🛑 \(InstumentsServiceClient.self) stopped 🛑🛑")
}
}
| 35.757576 | 108 | 0.569068 |
26a1ef78fff0f7214a9bc9ef5d3bb3cce1e9940f | 2,727 | java | Java | src/com/google/enterprise/quality/sxse/servlet/JudgmentServlet.java | mcplusa/sxse | 5a8bc39b0e26399cb05f91b5b74d736ff020efcf | [
"Apache-2.0"
] | null | null | null | src/com/google/enterprise/quality/sxse/servlet/JudgmentServlet.java | mcplusa/sxse | 5a8bc39b0e26399cb05f91b5b74d736ff020efcf | [
"Apache-2.0"
] | null | null | null | src/com/google/enterprise/quality/sxse/servlet/JudgmentServlet.java | mcplusa/sxse | 5a8bc39b0e26399cb05f91b5b74d736ff020efcf | [
"Apache-2.0"
] | null | null | null | // Copyright 2009 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.enterprise.quality.sxse.servlet;
import com.google.enterprise.quality.sxse.storage.JudgmentStorage;
import com.google.enterprise.quality.sxse.storage.StorageManager;
import com.google.enterprise.quality.sxse.storage.SxseStorageException;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet through which an assessor makes judgments on the results from
* scoring policy profiles.
*/
public class JudgmentServlet extends HttpServlet {
/**
* The {@link BannerLink} for this servlet.
*/
public static final BannerLink BANNER_LINK = new BannerLink() {
public String getName() {
return "Evaluation";
}
public String getUrl() {
return PATH;
}
};
/**
* The path for this servlet in the address.
*/
public static final String PATH = "/eval";
private final JudgmentStorage judgmentStorage;
private final JudgmentServletStrategy serverStrategy;
private final JudgmentServletStrategy clientStrategy;
public JudgmentServlet(Banner banner, StorageManager storageManager,
QueryChooser queryChooser) {
judgmentStorage = storageManager.getJudgmentStorage();
serverStrategy = new ServerJudgmentStrategy(
banner, storageManager, queryChooser);
clientStrategy = new ClientJudgmentStrategy(
banner, storageManager, queryChooser);
}
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
getJudgmentStrategy().doGet(req, res);
}
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
getJudgmentStrategy().doPost(req, res);
}
private JudgmentServletStrategy getJudgmentStrategy()
throws ServletException {
try {
return judgmentStorage.isStoringResults() ?
serverStrategy : clientStrategy;
} catch (SxseStorageException e) {
throw new ServletException(e);
}
}
}
| 30.988636 | 75 | 0.745875 |
652f515638fabbdc29fa03743668cd7f3bcdf458 | 830 | py | Python | src/seedbox/migrations/versions/35099fc974d2_.py | nailgun/seedbox | d124f71017dbbe5af81592e76933809b5cdddb08 | [
"Apache-2.0"
] | 29 | 2017-03-22T23:12:56.000Z | 2021-05-29T23:40:50.000Z | src/seedbox/migrations/versions/35099fc974d2_.py | macduff23/seedbox | d124f71017dbbe5af81592e76933809b5cdddb08 | [
"Apache-2.0"
] | 27 | 2017-04-10T14:00:11.000Z | 2017-12-01T06:56:15.000Z | src/seedbox/migrations/versions/35099fc974d2_.py | macduff23/seedbox | d124f71017dbbe5af81592e76933809b5cdddb08 | [
"Apache-2.0"
] | 6 | 2017-04-10T09:17:32.000Z | 2020-01-25T02:08:21.000Z | """empty message
Revision ID: 35099fc974d2
Revises: ae00e7974dca
Create Date: 2017-05-19 17:01:48.878196
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '35099fc974d2'
down_revision = 'ae00e7974dca'
branch_labels = None
depends_on = None
def upgrade():
op.drop_column('node', 'wipe_root_disk_next_boot')
op.drop_column('node', 'root_partition_size_sectors')
op.drop_column('node', 'root_disk')
def downgrade():
op.add_column('node', sa.Column('root_disk', sa.VARCHAR(length=80), autoincrement=False, nullable=False))
op.add_column('node', sa.Column('root_partition_size_sectors', sa.INTEGER(), autoincrement=False, nullable=True))
op.add_column('node', sa.Column('wipe_root_disk_next_boot', sa.BOOLEAN(), autoincrement=False, nullable=False))
| 28.62069 | 117 | 0.749398 |
3318dead767f04f859f302ca3cf27d38474b142d | 5,739 | py | Python | venv/Lib/site-packages/PyQt4/examples/designer/calculatorform/ui_calculatorform.py | prateekfxtd/ns_Startup | 095a62b3a8c7bf0ff7b767355d57d993bbd2423d | [
"MIT"
] | 1 | 2022-03-16T02:10:30.000Z | 2022-03-16T02:10:30.000Z | venv/Lib/site-packages/PyQt4/examples/designer/calculatorform/ui_calculatorform.py | prateekfxtd/ns_Startup | 095a62b3a8c7bf0ff7b767355d57d993bbd2423d | [
"MIT"
] | null | null | null | venv/Lib/site-packages/PyQt4/examples/designer/calculatorform/ui_calculatorform.py | prateekfxtd/ns_Startup | 095a62b3a8c7bf0ff7b767355d57d993bbd2423d | [
"MIT"
] | 2 | 2019-05-28T11:58:59.000Z | 2020-09-23T17:21:19.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'calculatorform.ui'
#
# Created: Mon Jan 23 13:21:45 2006
# by: PyQt4 UI code generator vsnapshot-20060120
#
# WARNING! All changes made in this file will be lost!
import sys
from PyQt4 import QtCore, QtGui
class Ui_CalculatorForm(object):
def setupUi(self, CalculatorForm):
CalculatorForm.setObjectName("CalculatorForm")
CalculatorForm.resize(QtCore.QSize(QtCore.QRect(0,0,400,300).size()).expandedTo(CalculatorForm.minimumSizeHint()))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(5),QtGui.QSizePolicy.Policy(5))
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(CalculatorForm.sizePolicy().hasHeightForWidth())
CalculatorForm.setSizePolicy(sizePolicy)
self.gridlayout = QtGui.QGridLayout(CalculatorForm)
self.gridlayout.setMargin(9)
self.gridlayout.setSpacing(6)
self.gridlayout.setObjectName("gridlayout")
spacerItem = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
self.gridlayout.addItem(spacerItem,0,6,1,1)
self.label_3_2 = QtGui.QLabel(CalculatorForm)
self.label_3_2.setGeometry(QtCore.QRect(169,9,20,52))
self.label_3_2.setAlignment(QtCore.Qt.AlignCenter)
self.label_3_2.setObjectName("label_3_2")
self.gridlayout.addWidget(self.label_3_2,0,4,1,1)
self.vboxlayout = QtGui.QVBoxLayout()
self.vboxlayout.setMargin(1)
self.vboxlayout.setSpacing(6)
self.vboxlayout.setObjectName("vboxlayout")
self.label_2_2_2 = QtGui.QLabel(CalculatorForm)
self.label_2_2_2.setGeometry(QtCore.QRect(1,1,36,17))
self.label_2_2_2.setObjectName("label_2_2_2")
self.vboxlayout.addWidget(self.label_2_2_2)
self.outputWidget = QtGui.QLabel(CalculatorForm)
self.outputWidget.setGeometry(QtCore.QRect(1,24,36,27))
self.outputWidget.setFrameShape(QtGui.QFrame.Box)
self.outputWidget.setFrameShadow(QtGui.QFrame.Sunken)
self.outputWidget.setAlignment(QtCore.Qt.AlignAbsolute|QtCore.Qt.AlignBottom|QtCore.Qt.AlignCenter|QtCore.Qt.AlignHCenter|QtCore.Qt.AlignHorizontal_Mask|QtCore.Qt.AlignJustify|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignRight|QtCore.Qt.AlignTop|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignVertical_Mask)
self.outputWidget.setObjectName("outputWidget")
self.vboxlayout.addWidget(self.outputWidget)
self.gridlayout.addLayout(self.vboxlayout,0,5,1,1)
spacerItem1 = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
self.gridlayout.addItem(spacerItem1,1,2,1,1)
self.vboxlayout1 = QtGui.QVBoxLayout()
self.vboxlayout1.setMargin(1)
self.vboxlayout1.setSpacing(6)
self.vboxlayout1.setObjectName("vboxlayout1")
self.label_2 = QtGui.QLabel(CalculatorForm)
self.label_2.setGeometry(QtCore.QRect(1,1,46,19))
self.label_2.setObjectName("label_2")
self.vboxlayout1.addWidget(self.label_2)
self.inputSpinBox2 = QtGui.QSpinBox(CalculatorForm)
self.inputSpinBox2.setGeometry(QtCore.QRect(1,26,46,25))
self.inputSpinBox2.setObjectName("inputSpinBox2")
self.vboxlayout1.addWidget(self.inputSpinBox2)
self.gridlayout.addLayout(self.vboxlayout1,0,3,1,1)
self.label_3 = QtGui.QLabel(CalculatorForm)
self.label_3.setGeometry(QtCore.QRect(63,9,20,52))
self.label_3.setAlignment(QtCore.Qt.AlignCenter)
self.label_3.setObjectName("label_3")
self.gridlayout.addWidget(self.label_3,0,1,1,1)
self.vboxlayout2 = QtGui.QVBoxLayout()
self.vboxlayout2.setMargin(1)
self.vboxlayout2.setSpacing(6)
self.vboxlayout2.setObjectName("vboxlayout2")
self.label = QtGui.QLabel(CalculatorForm)
self.label.setGeometry(QtCore.QRect(1,1,46,19))
self.label.setObjectName("label")
self.vboxlayout2.addWidget(self.label)
self.inputSpinBox1 = QtGui.QSpinBox(CalculatorForm)
self.inputSpinBox1.setGeometry(QtCore.QRect(1,26,46,25))
self.inputSpinBox1.setObjectName("inputSpinBox1")
self.vboxlayout2.addWidget(self.inputSpinBox1)
self.gridlayout.addLayout(self.vboxlayout2,0,0,1,1)
self.retranslateUi(CalculatorForm)
QtCore.QMetaObject.connectSlotsByName(CalculatorForm)
def tr(self, string):
return QtGui.QApplication.translate("CalculatorForm", string, None, QtGui.QApplication.UnicodeUTF8)
def retranslateUi(self, CalculatorForm):
CalculatorForm.setObjectName(self.tr("CalculatorForm"))
CalculatorForm.setWindowTitle(self.tr("Calculator Form"))
self.label_3_2.setObjectName(self.tr("label_3_2"))
self.label_3_2.setText(self.tr("="))
self.label_2_2_2.setObjectName(self.tr("label_2_2_2"))
self.label_2_2_2.setText(self.tr("Output"))
self.outputWidget.setObjectName(self.tr("outputWidget"))
self.outputWidget.setText(self.tr("0"))
self.label_2.setObjectName(self.tr("label_2"))
self.label_2.setText(self.tr("Input 2"))
self.inputSpinBox2.setObjectName(self.tr("inputSpinBox2"))
self.label_3.setObjectName(self.tr("label_3"))
self.label_3.setText(self.tr("+"))
self.label.setObjectName(self.tr("label"))
self.label.setText(self.tr("Input 1"))
self.inputSpinBox1.setObjectName(self.tr("inputSpinBox1"))
| 47.429752 | 343 | 0.699076 |
c1edcdd8493e6457f8f9ab7bc45f2af3b43f2bc2 | 188 | rs | Rust | src/ed25519.rs | ipaljak-tbtl/yubihsm.rs | a1d05480264d8797b4b861168f721b095cdfca25 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/ed25519.rs | ipaljak-tbtl/yubihsm.rs | a1d05480264d8797b4b861168f721b095cdfca25 | [
"Apache-2.0",
"MIT"
] | 7 | 2022-02-17T13:26:46.000Z | 2022-03-16T13:30:57.000Z | src/ed25519.rs | ipaljak-tbtl/yubihsm.rs | a1d05480264d8797b4b861168f721b095cdfca25 | [
"Apache-2.0",
"MIT"
] | null | null | null | //! Ed25519 digital signature algorithm support
pub(crate) mod commands;
mod public_key;
mod signer;
pub use self::{public_key::PublicKey, signer::Signer};
pub use ::ed25519::Signature;
| 20.888889 | 54 | 0.760638 |
b0db8e17f2bd2cfa3ff75d359ef7ad1be5e23d90 | 8,042 | rs | Rust | bip78/src/uri.rs | Kixunil/payjoin | f5158c3991a3e51a30c76cfe053dce95c6906f70 | [
"MITNFA"
] | 11 | 2021-07-28T19:16:04.000Z | 2022-03-22T21:29:24.000Z | bip78/src/uri.rs | Kixunil/payjoin | f5158c3991a3e51a30c76cfe053dce95c6906f70 | [
"MITNFA"
] | 22 | 2021-07-28T17:21:55.000Z | 2022-03-28T14:34:25.000Z | bip78/src/uri.rs | Kixunil/payjoin | f5158c3991a3e51a30c76cfe053dce95c6906f70 | [
"MITNFA"
] | 3 | 2021-07-29T05:32:00.000Z | 2022-03-03T04:08:58.000Z | use std::borrow::Cow;
use std::convert::{TryFrom, TryInto};
#[cfg(feature = "sender")]
use crate::sender;
#[derive(Debug, Clone)]
pub enum PayJoin<'a> {
Supported(PayJoinParams<'a>),
Unsupported,
}
impl<'a> PayJoin<'a> {
pub fn pj_is_supported(&self) -> bool {
match self {
PayJoin::Supported(_) => true,
PayJoin::Unsupported => false,
}
}
}
#[derive(Debug, Clone)]
pub struct PayJoinParams<'a> {
pub(crate) endpoint: Cow<'a, str>,
pub(crate) disable_output_substitution: bool,
}
pub type Uri<'a> = bip21::Uri<'a, PayJoin<'a>>;
pub type PjUri<'a> = bip21::Uri<'a, PayJoinParams<'a>>;
mod sealed {
pub trait UriExt: Sized {}
impl<'a> UriExt for super::Uri<'a> {}
impl<'a> UriExt for super::PjUri<'a> {}
}
pub trait PjUriExt: sealed::UriExt {
#[cfg(feature = "sender")]
fn create_pj_request(
self,
psbt: bitcoin::util::psbt::PartiallySignedTransaction,
params: sender::Params,
) -> Result<(sender::Request, sender::Context), sender::CreateRequestError>;
}
pub trait UriExt<'a>: sealed::UriExt {
fn check_pj_supported(self) -> Result<PjUri<'a>, bip21::Uri<'a>>;
}
impl<'a> PjUriExt for PjUri<'a> {
#[cfg(feature = "sender")]
fn create_pj_request(
self,
psbt: bitcoin::util::psbt::PartiallySignedTransaction,
params: sender::Params,
) -> Result<(sender::Request, sender::Context), sender::CreateRequestError> {
sender::from_psbt_and_uri(psbt.try_into().map_err(sender::InternalCreateRequestError::InconsistentOriginalPsbt)?, self, params)
}
}
impl<'a> UriExt<'a> for Uri<'a> {
fn check_pj_supported(self) -> Result<PjUri<'a>, bip21::Uri<'a>> {
match self.extras {
PayJoin::Supported(payjoin) => {
let mut uri = bip21::Uri::with_extras(self.address, payjoin);
uri.amount = self.amount;
uri.label = self.label;
uri.message = self.message;
Ok(uri)
},
PayJoin::Unsupported => {
let mut uri = bip21::Uri::new(self.address);
uri.amount = self.amount;
uri.label = self.label;
uri.message = self.message;
Err(uri)
}
}
}
}
impl<'a> PayJoinParams<'a> {
pub fn is_output_substitution_disabled(&self) -> bool {
self.disable_output_substitution
}
}
impl<'a> bip21::de::DeserializationError for PayJoin<'a> {
type Error = PjParseError;
}
impl<'a> bip21::de::DeserializeParams<'a> for PayJoin<'a> {
type DeserializationState = DeserializationState<'a>;
}
#[derive(Default)]
pub struct DeserializationState<'a> {
pj: Option<Cow<'a, str>>,
pjos: Option<bool>,
}
#[derive(Debug)]
pub struct PjParseError(InternalPjParseError);
impl From<InternalPjParseError> for PjParseError {
fn from(value: InternalPjParseError) -> Self {
PjParseError(value)
}
}
impl<'a> bip21::de::DeserializationState<'a> for DeserializationState<'a> {
type Value = PayJoin<'a>;
fn is_param_known(&self, param: &str) -> bool {
match param {
"pj" | "pjos" => true,
_ => false,
}
}
fn deserialize_temp(&mut self, key: &str, value: bip21::Param<'_>) -> std::result::Result<bip21::de::ParamKind, <Self::Value as bip21::DeserializationError>::Error> {
match key {
"pj" if self.pj.is_none() => {
self.pj = Some(Cow::Owned(Cow::<'_, str>::try_from(value).map_err(InternalPjParseError::NotUtf8)?.into()));
Ok(bip21::de::ParamKind::Known)
},
"pj" => Err(InternalPjParseError::MultipleParams("pj").into()),
"pjos" if self.pjos.is_none() => {
match &*Cow::try_from(value).map_err(|_| InternalPjParseError::BadPjOs)? {
"0" => self.pjos = Some(false),
"1" => self.pjos = Some(true),
_ => return Err(InternalPjParseError::BadPjOs.into())
}
Ok(bip21::de::ParamKind::Known)
}
"pjos" => Err(InternalPjParseError::MultipleParams("pjos").into()),
_ => Ok(bip21::de::ParamKind::Unknown),
}
}
fn deserialize_borrowed(&mut self, key: &'a str, value: bip21::Param<'a>) -> std::result::Result<bip21::de::ParamKind, <Self::Value as bip21::DeserializationError>::Error> {
match key {
"pj" if self.pj.is_none() => {
self.pj = Some(value.try_into().map_err(InternalPjParseError::NotUtf8)?);
Ok(bip21::de::ParamKind::Known)
},
"pj" => Err(InternalPjParseError::MultipleParams("pj").into()),
"pjos" if self.pjos.is_none() => {
match &*Cow::try_from(value).map_err(|_| InternalPjParseError::BadPjOs)? {
"0" => self.pjos = Some(false),
"1" => self.pjos = Some(true),
_ => return Err(InternalPjParseError::BadPjOs.into())
}
Ok(bip21::de::ParamKind::Known)
}
"pjos" => Err(InternalPjParseError::MultipleParams("pjos").into()),
_ => Ok(bip21::de::ParamKind::Unknown),
}
}
fn finalize(self) -> std::result::Result<Self::Value, <Self::Value as bip21::DeserializationError>::Error> {
match (self.pj, self.pjos) {
(None, None) => Ok(PayJoin::Unsupported),
(None, Some(_)) => Err(PjParseError(InternalPjParseError::MissingEndpoint)),
(Some(endpoint), pjos) => Ok(PayJoin::Supported(PayJoinParams { endpoint, disable_output_substitution: pjos.unwrap_or(false), })),
}
}
}
#[derive(Debug)]
enum InternalPjParseError {
BadPjOs,
MultipleParams(&'static str),
MissingEndpoint,
NotUtf8(core::str::Utf8Error),
}
#[cfg(test)]
mod tests {
use crate::Uri;
use std::convert::TryFrom;
#[test]
fn test_short() {
assert!(Uri::try_from("").is_err());
assert!(Uri::try_from("bitcoin").is_err());
assert!(Uri::try_from("bitcoin:").is_err());
}
#[ignore]
#[test]
fn test_todo_url_encoded() {
let uri = "bitcoin:12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX?amount=1&pj=https://example.com?ciao";
assert!(Uri::try_from(uri).is_err(), "pj url should be url encoded");
}
#[ignore]
#[test]
fn test_todo_valid_url() {
let uri = "bitcoin:12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX?amount=1&pj=http://a";
assert!(Uri::try_from(uri).is_err(), "pj is not a valid url");
}
#[test]
fn test_missing_amount() {
let uri = "bitcoin:12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX?pj=https://testnet.demo.btcpayserver.org/BTC/pj";
assert!(Uri::try_from(uri).is_ok(), "missing amount should be ok");
}
#[ignore]
#[test]
fn test_todo_unencrypted() {
let uri = "bitcoin:12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX?amount=1&pj=http://example.com";
assert!(Uri::try_from(uri).is_err(), "unencrypted connection");
}
#[test]
fn test_valid_uris() {
let https = "https://example.com";
let onion = "http://vjdpwgybvubne5hda6v4c5iaeeevhge6jvo3w2cl6eocbwwvwxp7b7qd.onion";
let base58 = "bitcoin:12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX";
let bech32_upper = "BITCOIN:TB1Q6D3A2W975YNY0ASUVD9A67NER4NKS58FF0Q8G4";
let bech32_lower = "bitcoin:tb1q6d3a2w975yny0asuvd9a67ner4nks58ff0q8g4";
for address in [base58, bech32_upper, bech32_lower].iter() {
for pj in [https, onion].iter() {
// TODO add with and without amount
// TODO shuffle params
let uri = format!("{}?amount=1&pj={}", address, pj);
assert!(Uri::try_from(&*uri).is_ok());
}
}
}
#[test]
fn test_unsupported() {
assert!(!Uri::try_from("bitcoin:12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX").unwrap().extras.pj_is_supported());
}
}
| 32.959016 | 177 | 0.584307 |
dd11dbd635362054dadd3b141f67a6cc9f5b54bc | 4,303 | go | Go | environment/container/kubernetes/kubernetes.go | hown3d/colima | d99e306af18b4459ea1562434899756b234816d6 | [
"MIT"
] | null | null | null | environment/container/kubernetes/kubernetes.go | hown3d/colima | d99e306af18b4459ea1562434899756b234816d6 | [
"MIT"
] | null | null | null | environment/container/kubernetes/kubernetes.go | hown3d/colima | d99e306af18b4459ea1562434899756b234816d6 | [
"MIT"
] | null | null | null | package kubernetes
import (
"strings"
"time"
"github.com/abiosoft/colima/cli"
"github.com/abiosoft/colima/config"
"github.com/abiosoft/colima/environment"
"github.com/abiosoft/colima/environment/container/containerd"
"github.com/abiosoft/colima/environment/container/docker"
)
// Name is container runtime name
const Name = "kubernetes"
func newRuntime(host environment.HostActions, guest environment.GuestActions) environment.Container {
return &kubernetesRuntime{
host: host,
guest: guest,
CommandChain: cli.New(Name),
}
}
func init() {
environment.RegisterContainer(Name, newRuntime)
}
var _ environment.Container = (*kubernetesRuntime)(nil)
type kubernetesRuntime struct {
host environment.HostActions
guest environment.GuestActions
cli.CommandChain
}
func (c kubernetesRuntime) Name() string {
return Name
}
func (c kubernetesRuntime) isInstalled() bool {
// it is installed if uninstall script is present.
return c.guest.RunQuiet("command", "-v", "k3s-uninstall.sh") == nil
}
func (c kubernetesRuntime) Running() bool {
return c.guest.RunQuiet("sudo", "service", "k3s", "status") == nil
}
func (c kubernetesRuntime) runtime() string {
return c.guest.Get(environment.ContainerRuntimeKey)
}
func (c kubernetesRuntime) kubernetesVersion() string {
return c.guest.Get(environment.KubernetesVersionKey)
}
func (c *kubernetesRuntime) Provision() error {
a := c.Init()
if !c.isInstalled() {
// k3s
a.Stage("downloading and installing")
installK3s(c.host, c.guest, a, c.runtime())
}
// this needs to happen on each startup
if c.runtime() == containerd.Name {
installContainerdDeps(c.guest, a)
}
return a.Exec()
}
func (c kubernetesRuntime) Start() error {
log := c.Logger()
a := c.Init()
if c.Running() {
log.Println("already running")
return nil
}
a.Stage("starting")
a.Add(func() error {
defer time.Sleep(time.Second * 5)
return c.guest.Run("sudo", "service", "k3s", "start")
})
if err := a.Exec(); err != nil {
return err
}
return c.provisionKubeconfig()
}
func (c kubernetesRuntime) Stop() error {
a := c.Init()
a.Stage("stopping")
a.Add(func() error {
return c.guest.Run("k3s-killall.sh")
})
// k3s is buggy with external containerd for now
// cleanup is manual
a.Add(c.stopAllContainers)
return a.Exec()
}
func (c kubernetesRuntime) deleteAllContainers() error {
ids := c.runningContainerIDs()
if ids == "" {
return nil
}
var args []string
switch c.runtime() {
case containerd.Name:
args = []string{"nerdctl", "-n", "k8s.io", "rm", "-f"}
case docker.Name:
args = []string{"docker", "rm", "-f"}
default:
return nil
}
args = append(args, strings.Fields(ids)...)
return c.guest.Run("sudo", "sh", "-c", strings.Join(args, " "))
}
func (c kubernetesRuntime) stopAllContainers() error {
ids := c.runningContainerIDs()
if ids == "" {
return nil
}
var args []string
switch c.runtime() {
case containerd.Name:
args = []string{"nerdctl", "-n", "k8s.io", "kill"}
case docker.Name:
args = []string{"docker", "kill"}
default:
return nil
}
args = append(args, strings.Fields(ids)...)
return c.guest.Run("sudo", "sh", "-c", strings.Join(args, " "))
}
func (c kubernetesRuntime) runningContainerIDs() string {
var args []string
switch c.runtime() {
case containerd.Name:
args = []string{"sudo", "nerdctl", "-n", "k8s.io", "ps", "-q"}
case docker.Name:
args = []string{"sudo", "sh", "-c", `docker ps --format '{{.Names}}'| grep "k8s_"`}
default:
return ""
}
ids, _ := c.guest.RunOutput(args...)
if ids == "" {
return ""
}
return strings.ReplaceAll(ids, "\n", " ")
}
func (c kubernetesRuntime) Teardown() error {
a := c.Init()
a.Stage("deleting")
if c.isInstalled() {
a.Add(func() error {
return c.guest.Run("k3s-uninstall.sh")
})
}
// k3s is buggy with external containerd for now
// cleanup is manual
a.Add(func() error {
return c.deleteAllContainers()
})
c.teardownKubeconfig(a)
a.Add(func() error {
return c.guest.Set(kubeconfigKey, "")
})
return a.Exec()
}
func (c kubernetesRuntime) Dependencies() []string {
return []string{"kubectl"}
}
func (c kubernetesRuntime) Version() string {
version, _ := c.host.RunOutput("kubectl", "--context", config.Profile().ID, "version", "--short")
return version
}
| 20.88835 | 101 | 0.668603 |
84bc6f399294e167ca18590cba366e372d8387bf | 122 | swift | Swift | Tests/LinuxMain.swift | NiekvandenBogaard/SwiftFetch | 195240383d3d2494b52d6dbb128a6efcab30a92d | [
"MIT"
] | null | null | null | Tests/LinuxMain.swift | NiekvandenBogaard/SwiftFetch | 195240383d3d2494b52d6dbb128a6efcab30a92d | [
"MIT"
] | null | null | null | Tests/LinuxMain.swift | NiekvandenBogaard/SwiftFetch | 195240383d3d2494b52d6dbb128a6efcab30a92d | [
"MIT"
] | null | null | null | import XCTest
import SwiftFetchTests
var tests = [XCTestCaseEntry]()
tests += SwiftFetchTests.allTests()
XCTMain(tests)
| 15.25 | 35 | 0.786885 |
5fdcf3641a647f2e6c52161c6922743b5d1c40fa | 2,215 | h | C | include/kern/errno.h | p-durlej/newsys | 314956b8ca463b8d7cc9b30de2be2d4247adf432 | [
"BSD-2-Clause"
] | 70 | 2016-10-26T14:31:35.000Z | 2022-01-06T15:07:29.000Z | include/kern/errno.h | p-durlej/newsys | 314956b8ca463b8d7cc9b30de2be2d4247adf432 | [
"BSD-2-Clause"
] | 5 | 2017-11-10T23:08:26.000Z | 2021-05-03T14:15:39.000Z | include/kern/errno.h | p-durlej/newsys | 314956b8ca463b8d7cc9b30de2be2d4247adf432 | [
"BSD-2-Clause"
] | 12 | 2017-06-19T15:45:09.000Z | 2022-03-24T14:50:26.000Z | /* Copyright (c) 2017, Piotr Durlej
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef NULL
#define NULL (void *)0
#endif
#define EZERO 0
#define ENOENT 1
#define EACCES 2
#define EPERM 3
#define E2BIG 4
#define EBUSY 5
#define ECHILD 6
#define EEXIST 7
#define EFAULT 8
#define EFBIG 9
#define EINTR 10
#define EINVAL 11
#define ENOMEM 12
#define EMFILE 13
#define EMLINK 14
#define EAGAIN 15
#define ENAMETOOLONG 16
#define ENFILE 17
#define ENODEV 18
#define ENOEXEC 19
#define EIO 20
#define ENOSPC 21
#define ENOSYS 22
#define ENOTDIR 23
#define ENOTEMPTY 24
#define ENOTTY 25
#define EPIPE 26
#define EROFS 27
#define ESPIPE 28
#define ESRCH 29
#define EXDEV 30
#define ERANGE 31
#define EBADF 32
#define EISDIR 33
#define EDEADLK 34
#define ENXIO 35
#define ETXTBSY 36
#define EMOUNTED 37
#define ENODESKTOP 38
#define EBADM 39
#define ENSYM 40
#define ENOKS 41
#define EBADKSD 42
| 29.144737 | 78 | 0.757562 |
84b0877f8246505628ebaa50e643eb5b44b8d4b1 | 616 | h | C | actor-apps/core-async-cocoa/src/im/actor/model/crypto/RsaEncryptCipher.h | DragonStuff/actor-platform | d262e6bb3c18b20eb35551313bce16c471cd2928 | [
"MIT"
] | null | null | null | actor-apps/core-async-cocoa/src/im/actor/model/crypto/RsaEncryptCipher.h | DragonStuff/actor-platform | d262e6bb3c18b20eb35551313bce16c471cd2928 | [
"MIT"
] | null | null | null | actor-apps/core-async-cocoa/src/im/actor/model/crypto/RsaEncryptCipher.h | DragonStuff/actor-platform | d262e6bb3c18b20eb35551313bce16c471cd2928 | [
"MIT"
] | null | null | null | //
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: /Users/ex3ndr/Develop/actor-platform/actor-apps/core/src/main/java/im/actor/model/crypto/RsaEncryptCipher.java
//
#ifndef _AMRsaEncryptCipher_H_
#define _AMRsaEncryptCipher_H_
#include "J2ObjC_header.h"
@class IOSByteArray;
@protocol AMRsaEncryptCipher < NSObject, JavaObject >
- (IOSByteArray *)encryptWithByteArray:(IOSByteArray *)sourceData;
@end
J2OBJC_EMPTY_STATIC_INIT(AMRsaEncryptCipher)
J2OBJC_TYPE_LITERAL_HEADER(AMRsaEncryptCipher)
#define ImActorModelCryptoRsaEncryptCipher AMRsaEncryptCipher
#endif // _AMRsaEncryptCipher_H_
| 23.692308 | 122 | 0.818182 |
163871f6cae08f0db74cdfe30f8f9caff3fb5853 | 130 | sql | SQL | net.violet.platform/src/test/java/net/violet/platform/datamodel/MessageTest_teardown.sql | nguillaumin/nabaztag-server | 235b4867ad7b2f923f25457722da4bb92ecd48b7 | [
"MIT"
] | 4 | 2016-04-01T19:39:30.000Z | 2018-03-29T08:10:12.000Z | server/OS/test/net/violet/platform/datamodel/MessageTest_teardown.sql | sebastienhouzet/nabaztag-source-code | 65197ea668e40fadb35d8ebd0aeb512311f9f547 | [
"MIT"
] | null | null | null | server/OS/test/net/violet/platform/datamodel/MessageTest_teardown.sql | sebastienhouzet/nabaztag-source-code | 65197ea668e40fadb35d8ebd0aeb512311f9f547 | [
"MIT"
] | 8 | 2016-04-09T03:46:26.000Z | 2021-11-26T21:42:01.000Z | SET FOREIGN_KEY_CHECKS = 0;
delete from message;
delete from files where path LIKE "%testMessage%";
SET FOREIGN_KEY_CHECKS = 1; | 32.5 | 51 | 0.769231 |
5bf2552d9bc400b397b140b0172ba2adea36ab1f | 3,069 | h | C | src/KOKKOS/dihedral_opls_kokkos.h | luwei0917/GlpG_Nature_Communication | a7f4f8b526e633b158dc606050e8993d70734943 | [
"MIT"
] | 1 | 2018-11-28T15:04:55.000Z | 2018-11-28T15:04:55.000Z | src/KOKKOS/dihedral_opls_kokkos.h | luwei0917/GlpG_Nature_Communication | a7f4f8b526e633b158dc606050e8993d70734943 | [
"MIT"
] | null | null | null | src/KOKKOS/dihedral_opls_kokkos.h | luwei0917/GlpG_Nature_Communication | a7f4f8b526e633b158dc606050e8993d70734943 | [
"MIT"
] | null | null | null | /* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software. This software is distributed under
the GNU General Public License.
See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */
#ifdef DIHEDRAL_CLASS
DihedralStyle(opls/kk,DihedralOPLSKokkos<LMPDeviceType>)
DihedralStyle(opls/kk/device,DihedralOPLSKokkos<LMPDeviceType>)
DihedralStyle(opls/kk/host,DihedralOPLSKokkos<LMPHostType>)
#else
#ifndef LMP_DIHEDRAL_OPLS_KOKKOS_H
#define LMP_DIHEDRAL_OPLS_KOKKOS_H
#include "dihedral_opls.h"
#include "kokkos_type.h"
namespace LAMMPS_NS {
template<int NEWTON_BOND, int EVFLAG>
struct TagDihedralOPLSCompute{};
template<class DeviceType>
class DihedralOPLSKokkos : public DihedralOPLS {
public:
typedef DeviceType device_type;
typedef EV_FLOAT value_type;
typedef ArrayTypes<DeviceType> AT;
DihedralOPLSKokkos(class LAMMPS *);
virtual ~DihedralOPLSKokkos();
virtual void compute(int, int);
virtual void coeff(int, char **);
template<int NEWTON_BOND, int EVFLAG>
KOKKOS_INLINE_FUNCTION
void operator()(TagDihedralOPLSCompute<NEWTON_BOND,EVFLAG>, const int&, EV_FLOAT&) const;
template<int NEWTON_BOND, int EVFLAG>
KOKKOS_INLINE_FUNCTION
void operator()(TagDihedralOPLSCompute<NEWTON_BOND,EVFLAG>, const int&) const;
//template<int NEWTON_BOND>
KOKKOS_INLINE_FUNCTION
void ev_tally(EV_FLOAT &ev, const int i1, const int i2, const int i3, const int i4,
F_FLOAT &edihedral, F_FLOAT *f1, F_FLOAT *f3, F_FLOAT *f4,
const F_FLOAT &vb1x, const F_FLOAT &vb1y, const F_FLOAT &vb1z,
const F_FLOAT &vb2x, const F_FLOAT &vb2y, const F_FLOAT &vb2z,
const F_FLOAT &vb3x, const F_FLOAT &vb3y, const F_FLOAT &vb3z) const;
protected:
class NeighborKokkos *neighborKK;
typename AT::t_x_array_randomread x;
typename AT::t_f_array f;
typename AT::t_int_2d dihedrallist;
DAT::tdual_efloat_1d k_eatom;
DAT::tdual_virial_array k_vatom;
DAT::t_efloat_1d d_eatom;
DAT::t_virial_array d_vatom;
int nlocal,newton_bond;
int eflag,vflag;
DAT::tdual_int_scalar k_warning_flag;
typename AT::t_int_scalar d_warning_flag;
HAT::t_int_scalar h_warning_flag;
DAT::tdual_ffloat_1d k_k1;
DAT::tdual_ffloat_1d k_k2;
DAT::tdual_ffloat_1d k_k3;
DAT::tdual_ffloat_1d k_k4;
DAT::t_ffloat_1d d_k1;
DAT::t_ffloat_1d d_k2;
DAT::t_ffloat_1d d_k3;
DAT::t_ffloat_1d d_k4;
virtual void allocate();
};
}
#endif
#endif
/* ERROR/WARNING messages:
W: Dihedral problem
Conformation of the 4 listed dihedral atoms is extreme; you may want
to check your simulation geometry.
*/
| 28.682243 | 95 | 0.711307 |
dfbe3172606eeafae2cb528f224808d5e2bb541c | 8,317 | ts | TypeScript | src/app/cvupload/bulk-upload-cv.component.ts | vundavallibalakrishna/electron | b57e7bcdf818fe543a1dec3264081d55e4afa0c2 | [
"MIT"
] | null | null | null | src/app/cvupload/bulk-upload-cv.component.ts | vundavallibalakrishna/electron | b57e7bcdf818fe543a1dec3264081d55e4afa0c2 | [
"MIT"
] | null | null | null | src/app/cvupload/bulk-upload-cv.component.ts | vundavallibalakrishna/electron | b57e7bcdf818fe543a1dec3264081d55e4afa0c2 | [
"MIT"
] | null | null | null | import { Component, OnInit } from '@angular/core';
const { ipcRenderer } = require('electron');
const fs = require('fs');
const glob = require("glob");
import { HttpClient, HttpResponse, HttpErrorResponse } from '@angular/common/http';
import { Observable, throwError, of } from 'rxjs';
import { map, startWith, debounceTime, switchMap } from 'rxjs/operators';
import { catchError } from 'rxjs/operators';
import { Address } from 'ngx-google-places-autocomplete/objects/address';
import { IFileInfoDTO, FileInfoDTO } from 'app/shared/models/fileinfo.model';
import { IBulkFileUploadDTO } from 'app/shared/models/bulkfileinfo.model';
import { ICandidateBulkUploadBatch } from 'app/shared/models/batch.model';
import { CVBulkUploadDTO } from 'app/shared/models/cvbulkupload.model';
import { CVUploadDTO, ICVUploadDTO } from 'app/shared/models/cvupload.model';
import { MatChipInputEvent } from '@angular/material/chips';
import { COMMA, ENTER } from '@angular/cdk/keycodes';
import { ITeam } from 'app/shared/models/team.model';
import { FormControl } from '@angular/forms';
import { identifierModuleUrl } from '@angular/compiler';
import { MatSlideToggle } from '@angular/material/slide-toggle';
@Component({
selector: 'app-home',
templateUrl: './bulk-upload-cv-parser.html',
styleUrls: ['./bulk-upload-cv-parser.scss']
})
export class BulkUploadCVComponent implements OnInit {
flowFiles: [];
currentLocations: [];
flow: null;
uploadErrorCount = 0;
processErrorCount = 0;
total = 0;
totalCount = 0;
uploaded = 0;
invalidTotal = 0;
pageTitle = "Bulk Upload Candidate Profiles";
allowedExtension: string[] = [".doc", ".docx", ".pdf", ".odt", ".html", ".rtf", ".txt"];
showSuccess: boolean;
reset: boolean;
uploadCompleted = true;
selectedDirectory = "";
filterBy: "all";
workAssignment: any = {};
isSaving = false;
contentTypes: any = {
"doc": "application/msword",
"docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"pdf": "application/pdf",
"txt": "text/plain",
"odt": "application/vnd.oasis.opendocument.text",
"rtf": "application/rtf",
"xhtml": "application/xhtml+xml",
"html": "text/html",
};
address: Address = null;
skills: string[] = [];
tags = [];
team: ITeam = null;
separatorKeysCodes: number[] = [ENTER, COMMA];
teamAutoComplete$: Observable<ITeam> = null;
autoCompleteControl = new FormControl();
progress = 0;
pattern = "";
ignoreDuplicates = true;
processNestedFolders = true;
constructor(private http: HttpClient
) { }
ngOnInit(): void {
this.teamAutoComplete$ = this.autoCompleteControl.valueChanges.pipe(
startWith(''),
debounceTime(300),
switchMap(value => {
if (value !== '') {
return this.suggestTeams(value);
} else {
return of(null);
}
})
);
}
selectFiles(): void {
this.invalidTotal = 0;
}
openDialog(): void {
this.selectedDirectory = ipcRenderer.sendSync('select-dirs')[0];
this.listFiles();
}
private listFiles(): void {
this.pattern = this.processNestedFolders ? "/**/*+(*" + this.allowedExtension.join("|*") + ")" : "/*+(*" + this.allowedExtension.join("|*") + ")";
const uploadFileList: string[] = glob.sync(`${this.selectedDirectory}${this.pattern}`);
this.total = uploadFileList.length;
}
async startUpload(): Promise<number> {
if (this.selectedDirectory) {
this.progress = 1;
const batchResponse = await this.generateBatchId(this.total).toPromise();
const batch = batchResponse.body;
this.isSaving = true;
const uploadFileList: string[] = glob.sync(`${this.selectedDirectory}${this.pattern}`);
const batches: string[][] = this.splitIntoBatches(uploadFileList);
for (let i = 0; i < batches.length; i++) {
const httpResponse: HttpResponse<IBulkFileUploadDTO> = await this.generateS3URLS(batches[i]).toPromise();
const bulkFileUploadDTO = httpResponse.body;
await Promise.all(bulkFileUploadDTO
.bulkFileList
.map((fileInfoDTO: IFileInfoDTO) => this.pushFileToS3(fileInfoDTO, this.selectedDirectory).toPromise()));
await this.sendResumesToCVParser(
bulkFileUploadDTO
.bulkFileList
.filter((fileInfoDTO) => fileInfoDTO.uploaded)
.map((fileInfoDTO: IFileInfoDTO) => new CVUploadDTO(fileInfoDTO.preSignedUrl, fileInfoDTO.fileName, this.skills, this.tags, this.currentLocations, this.team, "local", batch.id, batch.batchCode))
).toPromise();
}
}
return Promise.resolve(1);
}
splitIntoBatches(uploadFileList: string[]): string[][] {
const chunk = 100, splits = [];
let index = -1;
uploadFileList.forEach((n, i) => { if (i % chunk == 0) { splits[++index] = [] } splits[index].push(n) });
return splits;
}
generateS3URLS(files: string[]): Observable<HttpResponse<IBulkFileUploadDTO>> {
const bulkFileList = files.map((fileName) => {
return { fileName: fileName, fileType: this.contentTypes[fileName.substring(fileName.lastIndexOf(".") + 1).toLowerCase()] };
});
return this
.http
.post<IBulkFileUploadDTO>('api/s3/bulk-presigned-url-for-put', {
bulkFileList: bulkFileList
}, { observe: 'response' });
}
pushFileToS3(fileInfo: IFileInfoDTO, dir: string): Observable<HttpResponse<any>> {
const formData = new FormData();
formData.append('file', fs.createReadStream(dir + fileInfo.fileName));
return this
.http
.put<any>(fileInfo.preSignedUrl, formData, {
headers: {
'Content-Type': fileInfo.fileType,
},
})
.pipe(catchError((error) => this.erroHandler(error)))
.pipe(map((res: any) => this.successHandler(fileInfo, res)));
}
sendResumesToCVParser(cvuploadDTO: ICVUploadDTO[]): Observable<HttpResponse<any>> {
const entity = new CVBulkUploadDTO(cvuploadDTO);
return this
.http
.post<any>('candidatesearch/api/job-candidate-interactions/send-resume-to-cv-parser', entity);
}
generateBatchId(count: number): Observable<HttpResponse<ICandidateBulkUploadBatch>> {
return this
.http
.get<any>(`candidatesearch/api/candidate/bulkupload/generatebatch/${count}/local`, { observe: 'response' });
}
handleAddressChange(address: Address): void {
this.address = address;
}
erroHandler(error: HttpErrorResponse): any {
this.processErrorCount = this.processErrorCount + 1;
return throwError(error.message || 'server Error');
}
successHandler(fileInfo: IFileInfoDTO, input: HttpResponse<any>): any {
fileInfo.uploaded = true;
this.uploaded = this.uploaded + 1;
this.progress = (this.uploaded / this.total) * 100;
return input;
}
getTotalFiles(): number {
return this.total;
}
getInvalidTotalFiles(): number {
return this.invalidTotal;
}
addSkill(event: MatChipInputEvent): void {
const input = event.input;
const value = event.value;
if ((value || '').trim()) {
this.skills.push(value.trim());
}
if (input) {
input.value = '';
}
}
removeSkill(skill: string): void {
const index = this.skills.indexOf(skill);
if (index >= 0) {
this.skills.splice(index, 1);
}
}
addTag(event: MatChipInputEvent): void {
const input = event.input;
const value = event.value;
if ((value || '').trim()) {
this.tags.push(value.trim());
}
if (input) {
input.value = '';
}
}
removeTag(tag: string): void {
const index = this.tags.indexOf(tag);
if (index >= 0) {
this.tags.splice(index, 1);
}
}
suggestTeams(query: string): Observable<ITeam> {
return this.http
.get<ITeam>('recruitersearch/api/teams/suggestions/all', {
observe: 'response',
params: {
query: query
}
})
.pipe(
map(res => {
return res.body;
})
);
}
selectTeam(team: ITeam): void {
console.log(team);
this.team = team;
}
setOptionValue(type: string, event): void {
if (type == 'ID') {
this.processNestedFolders = event.checked;
} else if (type == 'PNF') {
this.processNestedFolders = event.checked;
this.listFiles();
}
}
}
| 31.266917 | 206 | 0.645425 |
f01d98a641dde7fde85aa438479b15fc586ea3fa | 706 | js | JavaScript | src/db/updates/3.0.9.js | grugnog/formio | ba1e41690e0900fbbdef1632dde9685d5fc472f9 | [
"BSD-3-Clause"
] | 132 | 2020-04-16T20:26:18.000Z | 2022-03-30T12:39:50.000Z | src/db/updates/3.0.9.js | grugnog/formio | ba1e41690e0900fbbdef1632dde9685d5fc472f9 | [
"BSD-3-Clause"
] | 102 | 2020-06-05T21:30:27.000Z | 2022-03-30T04:53:25.000Z | src/db/updates/3.0.9.js | grugnog/formio | ba1e41690e0900fbbdef1632dde9685d5fc472f9 | [
"BSD-3-Clause"
] | 91 | 2020-04-15T18:54:51.000Z | 2022-03-29T04:58:49.000Z | 'use strict';
let async = require('async');
module.exports = function(db, config, tools, done) {
let dropIndex = function(collection, index, next) {
console.log('Dropping ' + collection + ' index ' + index);
db.collection(collection).dropIndex(index).then(() => {
console.log('Done dropping ' + collection + ' index ' + index);
next();
}).catch((err) => {
console.log(err.message);
next();
});
};
async.series([
async.apply(dropIndex, 'roles', 'machineName_1'),
async.apply(dropIndex, 'forms', 'machineName_1'),
async.apply(dropIndex, 'submissions', 'machineName_1'),
async.apply(dropIndex, 'actions', 'machineName_1'),
], () => done());
};
| 32.090909 | 69 | 0.613314 |
7228c6f282d0506dc7567a3e3d8323321d1a2902 | 1,490 | rs | Rust | crates/fluvio-controlplane-metadata/src/tableformat/mod.rs | pinkforest/fluvio | 008c077fa6ef166f59316777474348f7a44bbdf9 | [
"Apache-2.0"
] | 1 | 2021-08-31T23:19:49.000Z | 2021-08-31T23:19:49.000Z | crates/fluvio-controlplane-metadata/src/tableformat/mod.rs | pinkforest/fluvio | 008c077fa6ef166f59316777474348f7a44bbdf9 | [
"Apache-2.0"
] | null | null | null | crates/fluvio-controlplane-metadata/src/tableformat/mod.rs | pinkforest/fluvio | 008c077fa6ef166f59316777474348f7a44bbdf9 | [
"Apache-2.0"
] | null | null | null | mod spec;
mod status;
pub use spec::*;
pub use status::*;
#[cfg(feature = "k8")]
mod k8;
#[cfg(feature = "k8")]
pub use k8::*;
mod convert {
use crate::core::{Spec, Status, Removable, Creatable};
use crate::extended::{ObjectType, SpecExt};
use super::*;
impl Spec for TableFormatSpec {
const LABEL: &'static str = "TableFormat";
type Status = TableFormatStatus;
type Owner = Self;
type IndexKey = String;
}
impl SpecExt for TableFormatSpec {
const OBJECT_TYPE: ObjectType = ObjectType::TableFormat;
}
impl Removable for TableFormatSpec {
type DeleteKey = String;
}
impl Creatable for TableFormatSpec {}
impl Status for TableFormatStatus {}
#[cfg(feature = "k8")]
mod extended {
use crate::store::k8::K8ExtendedSpec;
use crate::store::k8::K8ConvertError;
use crate::store::k8::K8MetaItem;
use crate::store::MetadataStoreObject;
use crate::k8_types::K8Obj;
use crate::store::k8::default_convert_from_k8;
use super::TableFormatSpec;
impl K8ExtendedSpec for TableFormatSpec {
type K8Spec = Self;
type K8Status = Self::Status;
fn convert_from_k8(
k8_obj: K8Obj<Self::K8Spec>,
) -> Result<MetadataStoreObject<Self, K8MetaItem>, K8ConvertError<Self::K8Spec>>
{
default_convert_from_k8(k8_obj)
}
}
}
}
| 23.28125 | 92 | 0.596644 |
ea0b48f700853bd8d843a8f4ddadca589683ee68 | 402 | lua | Lua | Interface/AddOns/LittleWigs/MoP/TempleOfTheJadeSerpent/Locales/ptBR.lua | ChinarG/Game-Wow-Plugins-Setting | e3fd3ddec1387c1f971dc195fec4fd9045d3105d | [
"Apache-2.0"
] | null | null | null | Interface/AddOns/LittleWigs/MoP/TempleOfTheJadeSerpent/Locales/ptBR.lua | ChinarG/Game-Wow-Plugins-Setting | e3fd3ddec1387c1f971dc195fec4fd9045d3105d | [
"Apache-2.0"
] | null | null | null | Interface/AddOns/LittleWigs/MoP/TempleOfTheJadeSerpent/Locales/ptBR.lua | ChinarG/Game-Wow-Plugins-Setting | e3fd3ddec1387c1f971dc195fec4fd9045d3105d | [
"Apache-2.0"
] | null | null | null | local L = BigWigs:NewBossLocale("Lorewalker Stonestep", "ptBR")
if not L then return end
if L then
-- Ah, ainda não acabou. Pelo que vejo, estamos diante do desafio yaungol. Permita-me esclarecer...
L.yaungol_warmup_trigger = "Ah, ainda não acabou."
-- Oh. Se não estou enganado, parece que o conto de Zao Anélion veio à vida antes de nós.
L.five_suns_warmup_trigger = "Se não estou enganado"
end
| 40.2 | 100 | 0.748756 |
8e002bcbd538233b85e0b7415a841b936cd25985 | 628 | rb | Ruby | spec/defines/yum_group_spec.rb | bodgit/puppet-yum | 0420582af9a74b6f462178199c3d3057772786bc | [
"Apache-2.0"
] | null | null | null | spec/defines/yum_group_spec.rb | bodgit/puppet-yum | 0420582af9a74b6f462178199c3d3057772786bc | [
"Apache-2.0"
] | 12 | 2018-11-14T17:32:23.000Z | 2020-10-12T09:43:23.000Z | spec/defines/yum_group_spec.rb | bodgit/puppet-yum | 0420582af9a74b6f462178199c3d3057772786bc | [
"Apache-2.0"
] | null | null | null | require 'spec_helper'
describe 'yum::group' do
let(:pre_condition) do
'include ::yum'
end
let(:title) do
'test'
end
let(:params) do
{
pkglist: [
'foo',
'bar',
],
}
end
on_supported_os.each do |os, facts|
context "on #{os}" do
let(:facts) do
facts
end
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_concat('/etc/yum/version-groups.conf') }
it { is_expected.to contain_concat__fragment('/etc/yum/version-groups.conf test') }
it { is_expected.to contain_yum__group('test') }
end
end
end
| 17.444444 | 89 | 0.58758 |
548d45264a2a29ea3b39f5274a6282be8e5344ac | 3,305 | swift | Swift | Pods/Bookbinder/Bookbinder/EPUBBook.swift | stonezhl/BookbinderCocoapodsDemo | bd0223ee7f4b5164b48b841e87b09055a0f50032 | [
"MIT"
] | 20 | 2019-07-24T07:34:51.000Z | 2022-02-15T09:57:49.000Z | Pods/Bookbinder/Bookbinder/EPUBBook.swift | stonezhl/BookbinderCocoapodsDemo | bd0223ee7f4b5164b48b841e87b09055a0f50032 | [
"MIT"
] | 3 | 2020-06-03T08:01:43.000Z | 2020-12-11T17:35:09.000Z | Pods/Bookbinder/Bookbinder/EPUBBook.swift | stonezhl/BookbinderCocoapodsDemo | bd0223ee7f4b5164b48b841e87b09055a0f50032 | [
"MIT"
] | 8 | 2019-07-24T07:34:52.000Z | 2022-03-31T14:41:59.000Z | //
// EPUBBook.swift
// Bookbinder
//
// Created by Stone Zhang on 5/1/19.
// Copyright © 2019 Stone Zhang. All rights reserved.
//
import Foundation
open class EPUBBook {
public let identifier: String
public let baseURL: URL
public let resourceBaseURL: URL
public let container: ContainerDocument
public let opf: OPFDocument
// accessor
// https://www.w3.org/Submission/2017/SUBM-epub-packages-20170125/#sec-metadata-elem-identifiers-uid
public lazy var uniqueID: String? = {
let uniqueIdentifierID = opf.uniqueIdentifierID
let identifiers = opf.metadata.identifiers
for identifier in identifiers where identifier.id == uniqueIdentifierID {
return identifier.text
}
return nil
}()
// https://www.w3.org/Submission/2017/SUBM-epub-packages-20170125/#sec-metadata-elem-identifiers-pid
public lazy var releaseID: String? = {
guard let id = uniqueID else { return nil }
guard let date = opf.metadata.modifiedDate else {
return id
}
return id + "@" + date
}()
public lazy var publicationDate: Date? = {
guard let date = opf.metadata.date else { return nil }
return ISO8601DateFormatter().date(from: date)
}()
// http://idpf.org/forum/topic-715
public lazy var coverImageURLs: [URL] = {
var urls = [URL]()
for item in opf.manifest.items.values where item.properties == "cover-image" {
let url = resourceBaseURL.appendingPathComponent(item.href)
urls.append(url)
}
guard let imageID = opf.metadata.coverImageID, let path = opf.manifest.items[imageID]?.href else {
return urls
}
let url = resourceBaseURL.appendingPathComponent(path)
urls.append(url)
return urls
}()
public lazy var tocURL: URL? = {
for item in opf.manifest.items.values where item.properties == "nav" {
return resourceBaseURL.appendingPathComponent(item.href)
}
return nil
}()
public lazy var ncx: NCXDocument? = {
guard let ncxID = opf.spine.toc, let path = opf.manifest.items[ncxID]?.href else { return nil }
let url = resourceBaseURL.appendingPathComponent(path)
return NCXDocument(url: url)
}()
public lazy var pages: [URL]? = {
return opf.spine.itemrefs
.filter { $0.isPrimary }
.compactMap {
guard let path = opf.manifest.items[$0.idref]?.href else { return nil }
return resourceBaseURL.appendingPathComponent(path)
}
}()
public required init?(identifier: String? = nil, contentsOf baseURL: URL) {
self.identifier = identifier ?? UUID().uuidString
self.baseURL = baseURL
// parse container file
let containerURL = baseURL.appendingPathComponent("META-INF/container.xml")
guard let container = ContainerDocument(url: containerURL) else { return nil }
self.container = container
// parse opf fitle
let opfURL = baseURL.appendingPathComponent(container.opfPath)
resourceBaseURL = opfURL.deletingLastPathComponent()
guard let opf = OPFDocument(url: opfURL) else { return nil }
self.opf = opf
}
}
| 34.789474 | 106 | 0.634796 |
650d548dfcf197b677b3b51c6953dea2bc1cb40b | 305 | py | Python | codes/Ex036.py | BelfortJoao/Curso-phyton01 | 79376233be228f39bf548f90b8d9bd5419ac067a | [
"MIT"
] | 3 | 2021-08-17T14:02:14.000Z | 2021-08-19T02:37:30.000Z | codes/Ex036.py | BelfortJoao/Curso-phyton01 | 79376233be228f39bf548f90b8d9bd5419ac067a | [
"MIT"
] | null | null | null | codes/Ex036.py | BelfortJoao/Curso-phyton01 | 79376233be228f39bf548f90b8d9bd5419ac067a | [
"MIT"
] | null | null | null | x = float(input('Qual o valor da casa que quer comprar? '))
y = int(input("em quantos anos quer comprar a casa? "))
z = int(input("Qual seu salario? "))
w = y*12
if x / w > (z/100)*30:
print("Voce não pode comprar a casa")
else:
print('Voce pode comprar a casa a parcela é de {:.2f}'.format(x/y))
| 33.888889 | 71 | 0.636066 |
b3be2c0f97b97bd7481448859cc3139e962e460f | 1,903 | rb | Ruby | spec/services/redis_service_spec.rb | CodeChalenges/nuvi-news-parser | 4886d1a4f819f703e9473b6e77c5de3b6062cf37 | [
"MIT"
] | null | null | null | spec/services/redis_service_spec.rb | CodeChalenges/nuvi-news-parser | 4886d1a4f819f703e9473b6e77c5de3b6062cf37 | [
"MIT"
] | null | null | null | spec/services/redis_service_spec.rb | CodeChalenges/nuvi-news-parser | 4886d1a4f819f703e9473b6e77c5de3b6062cf37 | [
"MIT"
] | null | null | null | require "spec_helper"
require "services/redis_service"
RSpec.describe RedisService do
let(:redis_service) { RedisService.instance }
let(:redis_client) { redis_service.redis_client }
after(:each) do
redis_client.flushall
end
context "zip file" do
let(:zip_hash) { SecureRandom.hex }
it "recognize an already processed zip" do
expect(redis_service.zip_already_processed?(zip_hash)).to be false
redis_client.hset('ZIP_ALREADY_PROCESSED', zip_hash, true)
expect(redis_service.zip_already_processed?(zip_hash)).to be true
end
it "mark a zip as processed" do
expect(redis_client.hexists('ZIP_ALREADY_PROCESSED', zip_hash)).to be false
redis_service.mark_zip_as_already_processed(zip_hash)
expect(redis_client.hexists('ZIP_ALREADY_PROCESSED', zip_hash)).to be true
end
end
context "news file" do
let(:news_hash) { SecureRandom.hex }
it "recognize an already processed news file" do
expect(redis_service.news_already_processed?(news_hash)).to be false
redis_client.hset('NEWS_ALREADY_PROCESSED', news_hash, true)
expect(redis_service.news_already_processed?(news_hash)).to be true
end
it "mark a news file as processed" do
expect(redis_client.hexists('NEWS_ALREADY_PROCESSED', news_hash)).to be false
redis_service.mark_news_as_already_processed(news_hash)
expect(redis_client.hexists('NEWS_ALREADY_PROCESSED', news_hash)).to be true
end
end
context "add news to Redis" do
let(:news_content) { SecureRandom.hex }
it "add news content to list" do
expect(redis_client.llen('NEWS_XML')).to eq(0)
redis_service.add_news_to_list(news_content)
expect(redis_client.llen('NEWS_XML')).to eq(1)
# Check content
content_in_list = redis_client.lindex('NEWS_XML', 0)
expect(content_in_list).to eq(news_content)
end
end
end
| 32.810345 | 83 | 0.727798 |
b73deebe7ab5c60d4d35947eb0d5d814b147a9e5 | 3,946 | swift | Swift | frameworks/Framework-XALG-Tests/Tree/XALG_Tests_BinaryTree.swift | between40and2/XALG | 5b9d8e98c4695735b695b6318644acb3e0072de7 | [
"MIT"
] | 1 | 2017-05-31T15:45:14.000Z | 2017-05-31T15:45:14.000Z | frameworks/Framework-XALG-Tests/Tree/XALG_Tests_BinaryTree.swift | between40and2/XALG | 5b9d8e98c4695735b695b6318644acb3e0072de7 | [
"MIT"
] | null | null | null | frameworks/Framework-XALG-Tests/Tree/XALG_Tests_BinaryTree.swift | between40and2/XALG | 5b9d8e98c4695735b695b6318644acb3e0072de7 | [
"MIT"
] | null | null | null | //
// XALG_Tests_BinaryTree.swift
// XALG
//
// Created by Juguang Xiao on 17/03/2017.
//
import XCTest
class XALG_Tests_BinaryTree: XCTestCase {
typealias NodeType_String = XALG_Rep_TreeNode_BinaryTree<String>
typealias NodeType_Int = XALG_Rep_TreeNode_BinaryTree<Int>
typealias TreeType_String = XALG_Rep_Tree_BinaryTree<String>
var rootNode : NodeType_String?
var tree : TreeType_String?
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
let bundle = Bundle(for : type(of: self)) // not using Bundle.main, which is main app, not unit test bundle.
let url = bundle.url(forResource: "data-binarytree", withExtension: "plist")!
let data = try! Data(contentsOf: url)
let dict = try! PropertyListSerialization.propertyList(from: data , options: [], format: nil) as! [String : Any]
print(dict)
rootNode = node(from: dict)!
tree = TreeType_String()
tree!.rootNode = rootNode
}
func node(from d : [String: Any]) -> NodeType_String? {
let key = d["key"] as! String
let n = NodeType_String(payload: key)
if let l = d["left"] {
switch l {
case let s as String:
let left = NodeType_String(payload: s)
n.lchild = left
case let d as [String:Any] :
let left = node(from: d)
n.lchild = left
default: break
}
}
if let r = d["right"] {
switch r {
case let s as String:
let right = NodeType_String(payload: s)
n.rchild = right
case let d as [String : Any] :
let right = node(from: d)
n.rchild = right
default: break
}
}
return n
}
func test_construct() {
let root = NodeType_Int(payload: 2)
XCTAssert(root.countNode() == 1)
XCTAssertTrue(root.isLeaf)
let left = NodeType_Int(payload: 3)
root.lchild = left
XCTAssert(left.countNode() == 1)
XCTAssert(root.countNode() == 2)
XCTAssertFalse(root.isLeaf)
XCTAssertTrue(left.isLeaf)
// add right
let right = NodeType_Int(payload: 4)
root.rchild = right
XCTAssert(root.countNode() == 3)
}
// http://stackoverflow.com/questions/19151420/load-files-in-xcode-unit-tests
func test_preorder() {
let traveral = XALG_Algo_BinaryTree_Traversal_preorder<TreeType_String>()
var array_visited = [String]()
traveral.callback_visit = {
// print($0.object!.payload)
// $0.object!.payload
let payload = $0.object!.payload!
array_visited.append(payload)
}
traveral.callback_complete = {
print(array_visited)
// XCTAssert(false)
XCTAssert(array_visited == ["root", "1", "2", "3"])
}
// traveral.root = self.rootNode!
traveral.tree = self.tree
traveral.traversal()
// print(n)
}
func test_inorder() {
let inorder = XALG_Algo_BinaryTree_Traversal_inorder<TreeType_String>() // (root: self.rootNode! )
inorder.callback_complete = {
print("inorder: ", inorder.visit_.map { $0.object!.payload! } )
}
inorder.tree = tree
inorder.traversal()
// print("inorder after called: ", inorder.visit_.map { $0.object!.key } )
XCTAssertEqual(inorder.visit_.map { $0.object!.payload! }, ["1", "root", "3", "2"])
}
}
| 29.447761 | 120 | 0.535986 |
f54cb059371e2b6da4b6933e6e473b0bb189a958 | 1,136 | rs | Rust | research/gaia/pegasus/pegasus/src/api/primitive/branch.rs | LI-Mingyu/GraphScope-MY | 942060983d3f7f8d3a3377467386e27aba285b33 | [
"Apache-2.0"
] | 1,521 | 2020-10-28T03:20:24.000Z | 2022-03-31T12:42:51.000Z | research/gaia/pegasus/pegasus/src/api/primitive/branch.rs | LI-Mingyu/GraphScope-MY | 942060983d3f7f8d3a3377467386e27aba285b33 | [
"Apache-2.0"
] | 850 | 2020-12-15T03:17:32.000Z | 2022-03-31T11:40:13.000Z | research/gaia/pegasus/pegasus/src/api/primitive/branch.rs | LI-Mingyu/GraphScope-MY | 942060983d3f7f8d3a3377467386e27aba285b33 | [
"Apache-2.0"
] | 180 | 2020-11-10T03:43:21.000Z | 2022-03-28T11:13:31.000Z | //
//! Copyright 2020 Alibaba Group Holding Limited.
//!
//! 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.
use crate::errors::BuildJobError;
use crate::stream::Stream;
use crate::Data;
pub enum Branch {
Left,
Right,
}
pub trait Condition<D>: Send {
fn predicate(&self, r: &D) -> Branch;
}
pub trait IntoBranch<D: Data> {
fn branch<F: Condition<D> + 'static>(
&self, name: &str, func: F,
) -> Result<(Stream<D>, Stream<D>), BuildJobError>;
}
impl<D, F> Condition<D> for F
where
F: Fn(&D) -> Branch + Send + 'static,
{
fn predicate(&self, r: &D) -> Branch {
(*self)(r)
}
}
| 26.418605 | 76 | 0.661092 |
4a5c39ad30d108776726d3543c4bafe5f4f17f86 | 3,523 | js | JavaScript | src/stl-viewer.js | withattribution/stlviewer | 637a40a7e8acce2c188c28701508da1740dd7d4b | [
"MIT"
] | null | null | null | src/stl-viewer.js | withattribution/stlviewer | 637a40a7e8acce2c188c28701508da1740dd7d4b | [
"MIT"
] | null | null | null | src/stl-viewer.js | withattribution/stlviewer | 637a40a7e8acce2c188c28701508da1740dd7d4b | [
"MIT"
] | null | null | null | import {
HemisphereLight,
Mesh,
MeshPhongMaterial,
PerspectiveCamera,
Scene,
WebGLRenderer
} from 'three';
import {WEBGL} from 'three/examples/jsm/WebGL';
import {OrbitControls} from 'three/examples/jsm/controls/OrbitControls';
import {STLLoader} from 'three/examples/jsm/loaders/STLLoader';
const template = document.createElement('template');
template.innerHTML = `
<style>
:host {
display: inline-block;
}
</style>
<canvas id="stl-canvas"></canvas>
`;
export class STLViewerComponent extends HTMLElement {
constructor() {
super();
this.attachShadow({mode:'open'});
this.shadowRoot.appendChild(template.content.cloneNode(true));
this.canvas = this.shadowRoot.querySelector("#stl-canvas");
}
connectedCallback() {
this.viewSTL();
}
viewSTL() {
const scope = this;
if (!WEBGL.isWebGLAvailable()) {
scope.shadowRoot.host.parentElement.appendChild(WEBGL.getWebGLErrorMessage());
return;
}
//Load STL from path and render scene
(new STLLoader()).load(scope.datasrc, function(geometry){
geometry.computeBoundingBox();
const clearColor = scope.clearColor || '#FFFFFF';
const color = scope.modelColor || '#FF0000';
const light = new HemisphereLight(0xffffff, 0x000000, 1.5)
const material = new MeshPhongMaterial({ color: color, specular: 10, shininess: 50 });
const mesh = new Mesh(geometry, material);
const renderer = new WebGLRenderer({ antialias: true, alpha: true, canvas: scope.canvas });
const scene = new Scene();
const height = scope.height || geometry.boundingBox.max.y;
const width = scope.width || geometry.boundingBox.max.x;
const camera = new PerspectiveCamera(60,width/height,1,10000);
const controls = new OrbitControls(camera, renderer.domElement);
controls.enableDamping = true;
controls.rotateSpeed = 0.05;
controls.dampingFactor = 0.1;
controls.enableZoom = true;
controls.enablePan = true;
controls.autoRotate = scope.rotate;
controls.autoRotateSpeed = 1.5;
scene.add(light);
scene.add(mesh);
// Pull the camera away as needed
camera.position.z = Math.max(
geometry.boundingBox.max.x,
geometry.boundingBox.max.y,
geometry.boundingBox.max.z) * 2.5;
renderer.setClearColor(clearColor);
renderer.setSize(width, height);
renderer.render(scene,camera);
const animate = function () {
requestAnimationFrame(animate);
controls.update();
renderer.render(scene,camera);
};
animate();
});
}
set datasrc(val) {this.setAttribute('data-src',val);}
get datasrc() {return this.getAttribute('data-src');}
set height(val) {this.setAttribute('height',val);}
get height() { return this.getAttribute('height');}
set width(val) {this.setAttribute('width',val);}
get width() {return this.getAttribute('width');}
set modelColor(val) {this.setAttribute('modelColor',val);}
get modelColor() {return this.getAttribute('modelColor');}
set clearColor(val) {this.setAttribute('clearColor',val);}
get clearColor() {return this.getAttribute('clearColor');}
set rotate(val) {
const rotateVal = Boolean(val);
if (rotateVal) {
this.setAttribute('rotate','');
}else {
this.removeAttribute('rotate');
}
}
get rotate() {return this.hasAttribute('rotate');}
}
customElements.define('stl-viewer', STLViewerComponent); | 30.37069 | 97 | 0.662504 |
5f60450a9a4ec3dab54feb8a51441da2baf4c017 | 728 | ts | TypeScript | src/schema/contenido.schema.ts | nikitaestrella/relacionProducto | 849cf43dd74509901fce6ae7df8e5bb9f5be5a56 | [
"MIT"
] | null | null | null | src/schema/contenido.schema.ts | nikitaestrella/relacionProducto | 849cf43dd74509901fce6ae7df8e5bb9f5be5a56 | [
"MIT"
] | null | null | null | src/schema/contenido.schema.ts | nikitaestrella/relacionProducto | 849cf43dd74509901fce6ae7df8e5bb9f5be5a56 | [
"MIT"
] | null | null | null | import { Prop, SchemaFactory, Schema as NestMongooseSchema } from '@nestjs/mongoose'
import { Document, Schema as MongooseSchema } from 'mongoose'
import * as mongoose from 'mongoose'
import { User } from './user.schema'
@NestMongooseSchema({ collection: 'contenido', timestamps: true })
export class Contenido extends Document {
@Prop({ required: true, index: true, unique:true })
contenidoId: string
@Prop({ required: true })
nombre: string
@Prop({ required: true })
descripcion: string
@Prop( { required: true })
visible: boolean
@Prop({ required: true, index: true, unique: true })
userId: string
}
export const ContenidoSchema = SchemaFactory.createForClass(Contenido) | 24.266667 | 84 | 0.693681 |
2a7f8115aeb307d545ed4848b44463647f6b62aa | 504 | java | Java | exercise/src/polymorphism/_03/Shapes.java | jhwsx/Think4JavaExamples | bf912a14def15c11a9a5eada308ddaae8e31ff8f | [
"Apache-2.0"
] | null | null | null | exercise/src/polymorphism/_03/Shapes.java | jhwsx/Think4JavaExamples | bf912a14def15c11a9a5eada308ddaae8e31ff8f | [
"Apache-2.0"
] | null | null | null | exercise/src/polymorphism/_03/Shapes.java | jhwsx/Think4JavaExamples | bf912a14def15c11a9a5eada308ddaae8e31ff8f | [
"Apache-2.0"
] | 1 | 2022-01-30T00:49:54.000Z | 2022-01-30T00:49:54.000Z | package polymorphism._03;
/**
* @author wzc
* @date 2019/7/13
*/
public class Shapes {
private static RandomShapeGenerator shapeGenerator = new RandomShapeGenerator();
public static void main(String[] args) {
Shape[] shapes = new Shape[9];
int length = shapes.length;
for (int i = 0; i < length; i++) {
shapes[i] = shapeGenerator.next();
}
for (Shape shape : shapes) {
shape.draw();
shape.move();
}
}
}
| 22.909091 | 84 | 0.551587 |
3e7c9c1282007c303680393d0c751fdeb6e92ac4 | 5,354 | c | C | dependencies/mozilla-nspr/4.9/pr/tests/intrio.c | mosaic-cloud/mosaic-distribution-dependencies | 87b9fa3dcf24751abcc52c00849b85f4d7e77b16 | [
"Apache-2.0"
] | 48 | 2015-01-09T20:39:35.000Z | 2021-12-21T21:17:52.000Z | dependencies/mozilla-nspr/4.9/pr/tests/intrio.c | mosaic-cloud/mosaic-distribution-dependencies | 87b9fa3dcf24751abcc52c00849b85f4d7e77b16 | [
"Apache-2.0"
] | 2 | 2016-02-05T10:27:37.000Z | 2019-01-22T16:22:51.000Z | dependencies/mozilla-nspr/4.9/pr/tests/intrio.c | mosaic-cloud/mosaic-distribution-dependencies | 87b9fa3dcf24751abcc52c00849b85f4d7e77b16 | [
"Apache-2.0"
] | 8 | 2015-01-12T17:14:36.000Z | 2018-09-15T14:10:27.000Z | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/*
* File: intrio.c
* Purpose: testing i/o interrupts (see Bugzilla bug #31120)
*/
#include "nspr.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* for synchronization between the main thread and iothread */
static PRLock *lock;
static PRCondVar *cvar;
static PRBool iothread_ready;
static void PR_CALLBACK AbortIO(void *arg)
{
PRStatus rv;
PR_Sleep(PR_SecondsToInterval(2));
rv = PR_Interrupt((PRThread*)arg);
PR_ASSERT(PR_SUCCESS == rv);
} /* AbortIO */
static void PR_CALLBACK IOThread(void *arg)
{
PRFileDesc *sock, *newsock;
PRNetAddr addr;
sock = PR_OpenTCPSocket(PR_AF_INET6);
if (sock == NULL) {
fprintf(stderr, "PR_OpenTCPSocket failed\n");
exit(1);
}
memset(&addr, 0, sizeof(addr));
if (PR_SetNetAddr(PR_IpAddrAny, PR_AF_INET6, 0, &addr) == PR_FAILURE) {
fprintf(stderr, "PR_SetNetAddr failed\n");
exit(1);
}
if (PR_Bind(sock, &addr) == PR_FAILURE) {
fprintf(stderr, "PR_Bind failed\n");
exit(1);
}
if (PR_Listen(sock, 5) == PR_FAILURE) {
fprintf(stderr, "PR_Listen failed\n");
exit(1);
}
/* tell the main thread that we are ready */
PR_Lock(lock);
iothread_ready = PR_TRUE;
PR_NotifyCondVar(cvar);
PR_Unlock(lock);
newsock = PR_Accept(sock, NULL, PR_INTERVAL_NO_TIMEOUT);
if (newsock != NULL) {
fprintf(stderr, "PR_Accept shouldn't have succeeded\n");
exit(1);
}
if (PR_GetError() != PR_PENDING_INTERRUPT_ERROR) {
fprintf(stderr, "PR_Accept failed (%d, %d)\n",
PR_GetError(), PR_GetOSError());
exit(1);
}
printf("PR_Accept() is interrupted as expected\n");
if (PR_Close(sock) == PR_FAILURE) {
fprintf(stderr, "PR_Close failed\n");
exit(1);
}
}
static void Test(PRThreadScope scope1, PRThreadScope scope2)
{
PRThread *iothread, *abortio;
printf("A %s thread will be interrupted by a %s thread\n",
(scope1 == PR_LOCAL_THREAD ? "local" : "global"),
(scope2 == PR_LOCAL_THREAD ? "local" : "global"));
iothread_ready = PR_FALSE;
iothread = PR_CreateThread(
PR_USER_THREAD, IOThread, NULL, PR_PRIORITY_NORMAL,
scope1, PR_JOINABLE_THREAD, 0);
if (iothread == NULL) {
fprintf(stderr, "cannot create thread\n");
exit(1);
}
PR_Lock(lock);
while (!iothread_ready)
PR_WaitCondVar(cvar, PR_INTERVAL_NO_TIMEOUT);
PR_Unlock(lock);
abortio = PR_CreateThread(
PR_USER_THREAD, AbortIO, iothread, PR_PRIORITY_NORMAL,
scope2, PR_JOINABLE_THREAD, 0);
if (abortio == NULL) {
fprintf(stderr, "cannot create thread\n");
exit(1);
}
if (PR_JoinThread(iothread) == PR_FAILURE) {
fprintf(stderr, "PR_JoinThread failed\n");
exit(1);
}
if (PR_JoinThread(abortio) == PR_FAILURE) {
fprintf(stderr, "PR_JoinThread failed\n");
exit(1);
}
}
int main(int argc, char **argv)
{
PR_STDIO_INIT();
lock = PR_NewLock();
if (lock == NULL) {
fprintf(stderr, "PR_NewLock failed\n");
exit(1);
}
cvar = PR_NewCondVar(lock);
if (cvar == NULL) {
fprintf(stderr, "PR_NewCondVar failed\n");
exit(1);
}
/* test all four combinations */
Test(PR_LOCAL_THREAD, PR_LOCAL_THREAD);
Test(PR_LOCAL_THREAD, PR_GLOBAL_THREAD);
Test(PR_GLOBAL_THREAD, PR_LOCAL_THREAD);
Test(PR_GLOBAL_THREAD, PR_GLOBAL_THREAD);
printf("PASSED\n");
return 0;
} /* main */
| 32.646341 | 79 | 0.652783 |
1301bf0a75409dc1c5ac9c36186daea0c3663636 | 54 | h | C | includes/bar.h | GordanM/makefile-skeleton | 8bae7a580f49bd5e90b22668d97372e715ffa3d1 | [
"MIT"
] | 1 | 2020-02-12T11:13:16.000Z | 2020-02-12T11:13:16.000Z | includes/bar.h | GordanM/makefile-skeleton | 8bae7a580f49bd5e90b22668d97372e715ffa3d1 | [
"MIT"
] | null | null | null | includes/bar.h | GordanM/makefile-skeleton | 8bae7a580f49bd5e90b22668d97372e715ffa3d1 | [
"MIT"
] | 2 | 2019-01-31T14:56:48.000Z | 2021-06-10T09:18:56.000Z | #ifndef BAR_H
#define BAR_H
#include "foo.h"
#endif
| 7.714286 | 16 | 0.703704 |
f49078aa33718695f482e7efe1ffe3bcc478c187 | 1,751 | sql | SQL | sql/users.sql | emcifuntik/lilv | e184eec78a247054455a4c952f430a7dae2e36e4 | [
"Artistic-2.0"
] | null | null | null | sql/users.sql | emcifuntik/lilv | e184eec78a247054455a4c952f430a7dae2e36e4 | [
"Artistic-2.0"
] | null | null | null | sql/users.sql | emcifuntik/lilv | e184eec78a247054455a4c952f430a7dae2e36e4 | [
"Artistic-2.0"
] | null | null | null | CREATE TABLE `users` (
`user_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_name` varchar(32) NOT NULL,
`user_password` varchar(32) NOT NULL,
`user_steam` varchar(64) DEFAULT NULL,
`user_pos_x` float(8,4) NOT NULL DEFAULT '0.0000',
`user_pos_y` float(8,4) NOT NULL DEFAULT '0.0000',
`user_pos_z` float(8,4) NOT NULL DEFAULT '0.0000',
`user_rot_x` float(8,4) NOT NULL DEFAULT '0.0000',
`user_rot_y` float(8,4) NOT NULL DEFAULT '0.0000',
`user_rot_z` float(8,4) NOT NULL DEFAULT '0.0000',
`user_admin` int(8) NOT NULL DEFAULT '0',
`user_level` int(8) NOT NULL DEFAULT '1',
`user_respect` int(8) NOT NULL DEFAULT '0',
`user_health` float(8,4) NOT NULL DEFAULT '100.0000',
`user_armor` float(8,4) NOT NULL DEFAULT '0.0000',
`user_bank` int(16) unsigned NOT NULL DEFAULT '0',
`user_cash` int(16) unsigned NOT NULL DEFAULT '0',
`user_stamina` int(8) NOT NULL DEFAULT '0',
`user_strength` int(8) NOT NULL DEFAULT '0',
`user_lung_capacity` int(8) NOT NULL DEFAULT '0',
`user_wheelie_ability` int(8) NOT NULL DEFAULT '0',
`user_flying_ability` int(8) NOT NULL DEFAULT '0',
`user_shooting_ability` int(8) NOT NULL DEFAULT '0',
`user_stealth_ability` int(8) NOT NULL DEFAULT '0',
`user_faction` int(8) NOT NULL DEFAULT '0',
`user_gang` int(8) NOT NULL DEFAULT '0',
`user_rank` int(8) NOT NULL DEFAULT '0',
`user_model` bigint(16) NOT NULL DEFAULT '0',
`user_last_login` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`user_last_ip` varchar(32) NOT NULL DEFAULT '0.0.0.0',
`user_banned` bigint(32) NOT NULL DEFAULT '0',
`user_muted` bigint(32) NOT NULL DEFAULT '0',
`user_jailed` bigint(32) NOT NULL DEFAULT '0',
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
| 47.324324 | 64 | 0.700742 |
57985cb5834ff7290fde5e497eacd2e5c639b922 | 771 | h | C | src/proc_manager.h | MasterTextman/eggshell | ab041f7459c11fa538573b832d4a2a4e3102dca0 | [
"MIT"
] | null | null | null | src/proc_manager.h | MasterTextman/eggshell | ab041f7459c11fa538573b832d4a2a4e3102dca0 | [
"MIT"
] | null | null | null | src/proc_manager.h | MasterTextman/eggshell | ab041f7459c11fa538573b832d4a2a4e3102dca0 | [
"MIT"
] | 1 | 2020-11-17T20:23:01.000Z | 2020-11-17T20:23:01.000Z | #pragma once
#include <unistd.h>
#include <sys/types.h>
#include "sig_handler.h"
#include "variables.h"
int resuspended;
// Executes an external command, not present in eggshell.
// command contains the command to be executed.
// line contains the arguments for the command.
void externalCommand(char* command, char* line);
// Breaks up the $PATH variable into an array of paths.
// pathn is meant to contain the length of the array.
// program is the program meant to be executed.
// MEANT to be used in conjunction with execve
char** pathsToCommArr(int *pathn, char* program);
// Returns the pid of the current process present in memory.
pid_t currentpid();
// Used to resume the process that is currently suspended.
int resumeProcess(int state, pid_t process);
| 28.555556 | 60 | 0.753567 |
9c80700c6c7a4f467dbf068fa295e29afcdd65c3 | 2,638 | js | JavaScript | www/pg-plugin-fb-connect.js | mallzee/phonegap-facebook-plugin | b2e3fc8abc3ddbe1dad51161c109d2bef73c10da | [
"Apache-2.0"
] | 1 | 2015-01-28T20:07:09.000Z | 2015-01-28T20:07:09.000Z | www/pg-plugin-fb-connect.js | mallzee/phonegap-facebook-plugin | b2e3fc8abc3ddbe1dad51161c109d2bef73c10da | [
"Apache-2.0"
] | null | null | null | www/pg-plugin-fb-connect.js | mallzee/phonegap-facebook-plugin | b2e3fc8abc3ddbe1dad51161c109d2bef73c10da | [
"Apache-2.0"
] | null | null | null |
var exec = require('cordova/exec');
CDV = {
init: function (apiKey, cb, fail) {
// create the fb-root element if it doesn't exist
if (!document.getElementById('fb-root')) {
var elem = document.createElement('div');
elem.id = 'fb-root';
document.body.appendChild(elem);
}
/**
* TODO: Workout why this impressions part is needed. I think we should be using the AppEvent functionality instead.
*/
/*
var xmlhttp = new XMLHttpRequest();
xmlhttp.onload=function(){console.log("Endpoint saved "+ this.responseText);}
xmlhttp.open("POST", "https://www.facebook.com/impression.php", true);
xmlhttp.send('plugin=featured_resources&payload={"resource": "adobe_phonegap", "appid": "'+apiKey+'", "version": "3.0.0" }');
*/
exec(function (e) {
var authResponse = JSON.parse(localStorage.getItem('cdv_fb_session') || '{"expiresIn":0}');
if (authResponse && authResponse.expirationTime) {
var nowTime = (new Date()).getTime();
if (authResponse.expirationTime > nowTime) {
// Update expires in information
updatedExpiresIn = Math.floor((authResponse.expirationTime - nowTime) / 1000);
authResponse.expiresIn = updatedExpiresIn;
}
localStorage.setItem('cdv_fb_session', JSON.stringify(authResponse));
}
if (authResponse) {
if (cb) cb(authResponse);
}
}, (fail ? fail : null), 'FacebookConnect', 'init', [apiKey]
);
},
login: function (params, cb, fail) {
params = params || { scope: '' };
exec(function (e) { // login
if (e.authResponse && e.authResponse.expiresIn) {
var expirationTime = e.authResponse.expiresIn === 0
? 0
: (new Date()).getTime() + e.authResponse.expiresIn * 1000;
e.authResponse.expirationTime = expirationTime;
}
localStorage.setItem('cdv_fb_session', JSON.stringify(e.authResponse));
if (cb) cb(e);
}, (fail ? fail : null), 'FacebookConnect', 'login', params.scope.split(','));
},
logout: function (cb, fail) {
exec(function (e) {
localStorage.removeItem('cdv_fb_session');
if (cb) cb(e);
}, (fail ? fail : null), 'FacebookConnect', 'logout', []);
},
getLoginStatus: function (cb, fail) {
exec(function (e) {
if (cb) cb(e);
}, (fail ? fail : null), 'FacebookConnect', 'getLoginStatus', []);
},
dialog: function (params, cb, fail) {
exec(function (e) { // login
if (cb) cb(e);
}, (fail ? fail : null), 'FacebookConnect', 'showDialog', [params]);
}
};
module.exports = CDV;
| 35.173333 | 130 | 0.597801 |
98b70908601282099dc22fe76acc2310a23c0e15 | 992 | html | HTML | api/templates/docs-html/document.html | amleshkov/adcm | 5a6c82a34ef2591cb4952d17ee823c6230aa1d82 | [
"Apache-2.0"
] | 16 | 2019-11-28T18:05:21.000Z | 2021-12-08T18:09:18.000Z | api/templates/docs-html/document.html | amleshkov/adcm | 5a6c82a34ef2591cb4952d17ee823c6230aa1d82 | [
"Apache-2.0"
] | 1,127 | 2019-11-29T08:57:25.000Z | 2022-03-31T20:21:32.000Z | api/templates/docs-html/document.html | amleshkov/adcm | 5a6c82a34ef2591cb4952d17ee823c6230aa1d82 | [
"Apache-2.0"
] | 10 | 2019-11-28T18:05:06.000Z | 2022-01-13T06:16:40.000Z | {% load rest_framework %}
<div class="row intro">
<div class="intro-title">
<h1>{{ document.title }}</h1>
{% if document.description %}
<p>{% render_markdown document.description %}</p>
{% endif %}
</div>
<div class="intro-title">
<h2>API Sections</h2>
<ul class="list-group">
{% for section_key, section in document|data|items %}
<li class="list-group-item"><a href="#{{ section_key }}">{{ section_key }}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% if document|data %}
{% for section_key, section in document|data|items %}
{% if section_key %}
<h2 id="{{ section_key }}" class="coredocs-section-title">{{ section_key }} <a href="#{{ section_key }}"><i class="fa fa-link" aria-hidden="true"></i>
</a></h2>
{% endif %}
{% for link_key, link in section|schema_links|items %}
{% include "docs-html/link.html" %}
{% endfor %}
{% endfor %}
{% for link_key, link in document.links|items %}
{% include "docs-html/link.html" %}
{% endfor %}
{% endif %}
| 26.105263 | 154 | 0.607863 |
a1320ed9b519adda843961c4b16ebf84a396ba9b | 90,421 | go | Go | examples/proto/examplepb/a_bit_of_everything.pb.go | wp0pw/grpc-gateway | ab4627a6acced23e045d0fd509676c8b02066b6e | [
"BSD-3-Clause"
] | 1 | 2020-03-04T08:41:36.000Z | 2020-03-04T08:41:36.000Z | examples/proto/examplepb/a_bit_of_everything.pb.go | small-lei/grpc-gateway | df4ff8d412d8ce99d0597295f4a12c595f9a81fb | [
"BSD-3-Clause"
] | null | null | null | examples/proto/examplepb/a_bit_of_everything.pb.go | small-lei/grpc-gateway | df4ff8d412d8ce99d0597295f4a12c595f9a81fb | [
"BSD-3-Clause"
] | 2 | 2020-09-03T10:48:33.000Z | 2021-01-13T21:17:11.000Z | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: examples/proto/examplepb/a_bit_of_everything.proto
package examplepb
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
empty "github.com/golang/protobuf/ptypes/empty"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
pathenum "github.com/grpc-ecosystem/grpc-gateway/examples/proto/pathenum"
sub "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub"
sub2 "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub2"
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
_ "google.golang.org/genproto/googleapis/api/annotations"
field_mask "google.golang.org/genproto/protobuf/field_mask"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// NumericEnum is one or zero.
type NumericEnum int32
const (
// ZERO means 0
NumericEnum_ZERO NumericEnum = 0
// ONE means 1
NumericEnum_ONE NumericEnum = 1
)
var NumericEnum_name = map[int32]string{
0: "ZERO",
1: "ONE",
}
var NumericEnum_value = map[string]int32{
"ZERO": 0,
"ONE": 1,
}
func (x NumericEnum) String() string {
return proto.EnumName(NumericEnum_name, int32(x))
}
func (NumericEnum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3978364c010e812a, []int{0}
}
// DeepEnum is one or zero.
type ABitOfEverything_Nested_DeepEnum int32
const (
// FALSE is false.
ABitOfEverything_Nested_FALSE ABitOfEverything_Nested_DeepEnum = 0
// TRUE is true.
ABitOfEverything_Nested_TRUE ABitOfEverything_Nested_DeepEnum = 1
)
var ABitOfEverything_Nested_DeepEnum_name = map[int32]string{
0: "FALSE",
1: "TRUE",
}
var ABitOfEverything_Nested_DeepEnum_value = map[string]int32{
"FALSE": 0,
"TRUE": 1,
}
func (x ABitOfEverything_Nested_DeepEnum) String() string {
return proto.EnumName(ABitOfEverything_Nested_DeepEnum_name, int32(x))
}
func (ABitOfEverything_Nested_DeepEnum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3978364c010e812a, []int{0, 0, 0}
}
// Intentionally complicated message type to cover many features of Protobuf.
type ABitOfEverything struct {
SingleNested *ABitOfEverything_Nested `protobuf:"bytes,25,opt,name=single_nested,json=singleNested,proto3" json:"single_nested,omitempty"`
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
Nested []*ABitOfEverything_Nested `protobuf:"bytes,2,rep,name=nested,proto3" json:"nested,omitempty"`
FloatValue float32 `protobuf:"fixed32,3,opt,name=float_value,json=floatValue,proto3" json:"float_value,omitempty"`
DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"`
Int64Value int64 `protobuf:"varint,5,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"`
Uint64Value uint64 `protobuf:"varint,6,opt,name=uint64_value,json=uint64Value,proto3" json:"uint64_value,omitempty"`
Int32Value int32 `protobuf:"varint,7,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"`
Fixed64Value uint64 `protobuf:"fixed64,8,opt,name=fixed64_value,json=fixed64Value,proto3" json:"fixed64_value,omitempty"`
Fixed32Value uint32 `protobuf:"fixed32,9,opt,name=fixed32_value,json=fixed32Value,proto3" json:"fixed32_value,omitempty"`
BoolValue bool `protobuf:"varint,10,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"`
StringValue string `protobuf:"bytes,11,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
BytesValue []byte `protobuf:"bytes,29,opt,name=bytes_value,json=bytesValue,proto3" json:"bytes_value,omitempty"`
Uint32Value uint32 `protobuf:"varint,13,opt,name=uint32_value,json=uint32Value,proto3" json:"uint32_value,omitempty"`
EnumValue NumericEnum `protobuf:"varint,14,opt,name=enum_value,json=enumValue,proto3,enum=grpc.gateway.examples.examplepb.NumericEnum" json:"enum_value,omitempty"`
PathEnumValue pathenum.PathEnum `protobuf:"varint,30,opt,name=path_enum_value,json=pathEnumValue,proto3,enum=grpc.gateway.examples.pathenum.PathEnum" json:"path_enum_value,omitempty"`
NestedPathEnumValue pathenum.MessagePathEnum_NestedPathEnum `protobuf:"varint,31,opt,name=nested_path_enum_value,json=nestedPathEnumValue,proto3,enum=grpc.gateway.examples.pathenum.MessagePathEnum_NestedPathEnum" json:"nested_path_enum_value,omitempty"`
Sfixed32Value int32 `protobuf:"fixed32,15,opt,name=sfixed32_value,json=sfixed32Value,proto3" json:"sfixed32_value,omitempty"`
Sfixed64Value int64 `protobuf:"fixed64,16,opt,name=sfixed64_value,json=sfixed64Value,proto3" json:"sfixed64_value,omitempty"`
Sint32Value int32 `protobuf:"zigzag32,17,opt,name=sint32_value,json=sint32Value,proto3" json:"sint32_value,omitempty"`
Sint64Value int64 `protobuf:"zigzag64,18,opt,name=sint64_value,json=sint64Value,proto3" json:"sint64_value,omitempty"`
RepeatedStringValue []string `protobuf:"bytes,19,rep,name=repeated_string_value,json=repeatedStringValue,proto3" json:"repeated_string_value,omitempty"`
// Types that are valid to be assigned to OneofValue:
// *ABitOfEverything_OneofEmpty
// *ABitOfEverything_OneofString
OneofValue isABitOfEverything_OneofValue `protobuf_oneof:"oneof_value"`
MapValue map[string]NumericEnum `protobuf:"bytes,22,rep,name=map_value,json=mapValue,proto3" json:"map_value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=grpc.gateway.examples.examplepb.NumericEnum"`
MappedStringValue map[string]string `protobuf:"bytes,23,rep,name=mapped_string_value,json=mappedStringValue,proto3" json:"mapped_string_value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
MappedNestedValue map[string]*ABitOfEverything_Nested `protobuf:"bytes,24,rep,name=mapped_nested_value,json=mappedNestedValue,proto3" json:"mapped_nested_value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
NonConventionalNameValue string `protobuf:"bytes,26,opt,name=nonConventionalNameValue,proto3" json:"nonConventionalNameValue,omitempty"`
TimestampValue *timestamp.Timestamp `protobuf:"bytes,27,opt,name=timestamp_value,json=timestampValue,proto3" json:"timestamp_value,omitempty"`
// repeated enum value. it is comma-separated in query
RepeatedEnumValue []NumericEnum `protobuf:"varint,28,rep,packed,name=repeated_enum_value,json=repeatedEnumValue,proto3,enum=grpc.gateway.examples.examplepb.NumericEnum" json:"repeated_enum_value,omitempty"`
// repeated numeric enum comment (This comment is overridden by the field annotation)
RepeatedEnumAnnotation []NumericEnum `protobuf:"varint,32,rep,packed,name=repeated_enum_annotation,json=repeatedEnumAnnotation,proto3,enum=grpc.gateway.examples.examplepb.NumericEnum" json:"repeated_enum_annotation,omitempty"`
// numeric enum comment (This comment is overridden by the field annotation)
EnumValueAnnotation NumericEnum `protobuf:"varint,33,opt,name=enum_value_annotation,json=enumValueAnnotation,proto3,enum=grpc.gateway.examples.examplepb.NumericEnum" json:"enum_value_annotation,omitempty"`
// repeated string comment (This comment is overridden by the field annotation)
RepeatedStringAnnotation []string `protobuf:"bytes,34,rep,name=repeated_string_annotation,json=repeatedStringAnnotation,proto3" json:"repeated_string_annotation,omitempty"`
// repeated nested object comment (This comment is overridden by the field annotation)
RepeatedNestedAnnotation []*ABitOfEverything_Nested `protobuf:"bytes,35,rep,name=repeated_nested_annotation,json=repeatedNestedAnnotation,proto3" json:"repeated_nested_annotation,omitempty"`
// nested object comments (This comment is overridden by the field annotation)
NestedAnnotation *ABitOfEverything_Nested `protobuf:"bytes,36,opt,name=nested_annotation,json=nestedAnnotation,proto3" json:"nested_annotation,omitempty"`
Int64OverrideType int64 `protobuf:"varint,37,opt,name=int64_override_type,json=int64OverrideType,proto3" json:"int64_override_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ABitOfEverything) Reset() { *m = ABitOfEverything{} }
func (m *ABitOfEverything) String() string { return proto.CompactTextString(m) }
func (*ABitOfEverything) ProtoMessage() {}
func (*ABitOfEverything) Descriptor() ([]byte, []int) {
return fileDescriptor_3978364c010e812a, []int{0}
}
func (m *ABitOfEverything) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ABitOfEverything.Unmarshal(m, b)
}
func (m *ABitOfEverything) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ABitOfEverything.Marshal(b, m, deterministic)
}
func (m *ABitOfEverything) XXX_Merge(src proto.Message) {
xxx_messageInfo_ABitOfEverything.Merge(m, src)
}
func (m *ABitOfEverything) XXX_Size() int {
return xxx_messageInfo_ABitOfEverything.Size(m)
}
func (m *ABitOfEverything) XXX_DiscardUnknown() {
xxx_messageInfo_ABitOfEverything.DiscardUnknown(m)
}
var xxx_messageInfo_ABitOfEverything proto.InternalMessageInfo
func (m *ABitOfEverything) GetSingleNested() *ABitOfEverything_Nested {
if m != nil {
return m.SingleNested
}
return nil
}
func (m *ABitOfEverything) GetUuid() string {
if m != nil {
return m.Uuid
}
return ""
}
func (m *ABitOfEverything) GetNested() []*ABitOfEverything_Nested {
if m != nil {
return m.Nested
}
return nil
}
func (m *ABitOfEverything) GetFloatValue() float32 {
if m != nil {
return m.FloatValue
}
return 0
}
func (m *ABitOfEverything) GetDoubleValue() float64 {
if m != nil {
return m.DoubleValue
}
return 0
}
func (m *ABitOfEverything) GetInt64Value() int64 {
if m != nil {
return m.Int64Value
}
return 0
}
func (m *ABitOfEverything) GetUint64Value() uint64 {
if m != nil {
return m.Uint64Value
}
return 0
}
func (m *ABitOfEverything) GetInt32Value() int32 {
if m != nil {
return m.Int32Value
}
return 0
}
func (m *ABitOfEverything) GetFixed64Value() uint64 {
if m != nil {
return m.Fixed64Value
}
return 0
}
func (m *ABitOfEverything) GetFixed32Value() uint32 {
if m != nil {
return m.Fixed32Value
}
return 0
}
func (m *ABitOfEverything) GetBoolValue() bool {
if m != nil {
return m.BoolValue
}
return false
}
func (m *ABitOfEverything) GetStringValue() string {
if m != nil {
return m.StringValue
}
return ""
}
func (m *ABitOfEverything) GetBytesValue() []byte {
if m != nil {
return m.BytesValue
}
return nil
}
func (m *ABitOfEverything) GetUint32Value() uint32 {
if m != nil {
return m.Uint32Value
}
return 0
}
func (m *ABitOfEverything) GetEnumValue() NumericEnum {
if m != nil {
return m.EnumValue
}
return NumericEnum_ZERO
}
func (m *ABitOfEverything) GetPathEnumValue() pathenum.PathEnum {
if m != nil {
return m.PathEnumValue
}
return pathenum.PathEnum_ABC
}
func (m *ABitOfEverything) GetNestedPathEnumValue() pathenum.MessagePathEnum_NestedPathEnum {
if m != nil {
return m.NestedPathEnumValue
}
return pathenum.MessagePathEnum_GHI
}
func (m *ABitOfEverything) GetSfixed32Value() int32 {
if m != nil {
return m.Sfixed32Value
}
return 0
}
func (m *ABitOfEverything) GetSfixed64Value() int64 {
if m != nil {
return m.Sfixed64Value
}
return 0
}
func (m *ABitOfEverything) GetSint32Value() int32 {
if m != nil {
return m.Sint32Value
}
return 0
}
func (m *ABitOfEverything) GetSint64Value() int64 {
if m != nil {
return m.Sint64Value
}
return 0
}
func (m *ABitOfEverything) GetRepeatedStringValue() []string {
if m != nil {
return m.RepeatedStringValue
}
return nil
}
type isABitOfEverything_OneofValue interface {
isABitOfEverything_OneofValue()
}
type ABitOfEverything_OneofEmpty struct {
OneofEmpty *empty.Empty `protobuf:"bytes,20,opt,name=oneof_empty,json=oneofEmpty,proto3,oneof"`
}
type ABitOfEverything_OneofString struct {
OneofString string `protobuf:"bytes,21,opt,name=oneof_string,json=oneofString,proto3,oneof"`
}
func (*ABitOfEverything_OneofEmpty) isABitOfEverything_OneofValue() {}
func (*ABitOfEverything_OneofString) isABitOfEverything_OneofValue() {}
func (m *ABitOfEverything) GetOneofValue() isABitOfEverything_OneofValue {
if m != nil {
return m.OneofValue
}
return nil
}
func (m *ABitOfEverything) GetOneofEmpty() *empty.Empty {
if x, ok := m.GetOneofValue().(*ABitOfEverything_OneofEmpty); ok {
return x.OneofEmpty
}
return nil
}
func (m *ABitOfEverything) GetOneofString() string {
if x, ok := m.GetOneofValue().(*ABitOfEverything_OneofString); ok {
return x.OneofString
}
return ""
}
func (m *ABitOfEverything) GetMapValue() map[string]NumericEnum {
if m != nil {
return m.MapValue
}
return nil
}
func (m *ABitOfEverything) GetMappedStringValue() map[string]string {
if m != nil {
return m.MappedStringValue
}
return nil
}
func (m *ABitOfEverything) GetMappedNestedValue() map[string]*ABitOfEverything_Nested {
if m != nil {
return m.MappedNestedValue
}
return nil
}
func (m *ABitOfEverything) GetNonConventionalNameValue() string {
if m != nil {
return m.NonConventionalNameValue
}
return ""
}
func (m *ABitOfEverything) GetTimestampValue() *timestamp.Timestamp {
if m != nil {
return m.TimestampValue
}
return nil
}
func (m *ABitOfEverything) GetRepeatedEnumValue() []NumericEnum {
if m != nil {
return m.RepeatedEnumValue
}
return nil
}
func (m *ABitOfEverything) GetRepeatedEnumAnnotation() []NumericEnum {
if m != nil {
return m.RepeatedEnumAnnotation
}
return nil
}
func (m *ABitOfEverything) GetEnumValueAnnotation() NumericEnum {
if m != nil {
return m.EnumValueAnnotation
}
return NumericEnum_ZERO
}
func (m *ABitOfEverything) GetRepeatedStringAnnotation() []string {
if m != nil {
return m.RepeatedStringAnnotation
}
return nil
}
func (m *ABitOfEverything) GetRepeatedNestedAnnotation() []*ABitOfEverything_Nested {
if m != nil {
return m.RepeatedNestedAnnotation
}
return nil
}
func (m *ABitOfEverything) GetNestedAnnotation() *ABitOfEverything_Nested {
if m != nil {
return m.NestedAnnotation
}
return nil
}
func (m *ABitOfEverything) GetInt64OverrideType() int64 {
if m != nil {
return m.Int64OverrideType
}
return 0
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*ABitOfEverything) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*ABitOfEverything_OneofEmpty)(nil),
(*ABitOfEverything_OneofString)(nil),
}
}
// Nested is nested type.
type ABitOfEverything_Nested struct {
// name is nested field.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Amount uint32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
// DeepEnum comment.
Ok ABitOfEverything_Nested_DeepEnum `protobuf:"varint,3,opt,name=ok,proto3,enum=grpc.gateway.examples.examplepb.ABitOfEverything_Nested_DeepEnum" json:"ok,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ABitOfEverything_Nested) Reset() { *m = ABitOfEverything_Nested{} }
func (m *ABitOfEverything_Nested) String() string { return proto.CompactTextString(m) }
func (*ABitOfEverything_Nested) ProtoMessage() {}
func (*ABitOfEverything_Nested) Descriptor() ([]byte, []int) {
return fileDescriptor_3978364c010e812a, []int{0, 0}
}
func (m *ABitOfEverything_Nested) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ABitOfEverything_Nested.Unmarshal(m, b)
}
func (m *ABitOfEverything_Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ABitOfEverything_Nested.Marshal(b, m, deterministic)
}
func (m *ABitOfEverything_Nested) XXX_Merge(src proto.Message) {
xxx_messageInfo_ABitOfEverything_Nested.Merge(m, src)
}
func (m *ABitOfEverything_Nested) XXX_Size() int {
return xxx_messageInfo_ABitOfEverything_Nested.Size(m)
}
func (m *ABitOfEverything_Nested) XXX_DiscardUnknown() {
xxx_messageInfo_ABitOfEverything_Nested.DiscardUnknown(m)
}
var xxx_messageInfo_ABitOfEverything_Nested proto.InternalMessageInfo
func (m *ABitOfEverything_Nested) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ABitOfEverything_Nested) GetAmount() uint32 {
if m != nil {
return m.Amount
}
return 0
}
func (m *ABitOfEverything_Nested) GetOk() ABitOfEverything_Nested_DeepEnum {
if m != nil {
return m.Ok
}
return ABitOfEverything_Nested_FALSE
}
// ABitOfEverythingRepeated is used to validate repeated path parameter functionality
type ABitOfEverythingRepeated struct {
// repeated values. they are comma-separated in path
PathRepeatedFloatValue []float32 `protobuf:"fixed32,1,rep,packed,name=path_repeated_float_value,json=pathRepeatedFloatValue,proto3" json:"path_repeated_float_value,omitempty"`
PathRepeatedDoubleValue []float64 `protobuf:"fixed64,2,rep,packed,name=path_repeated_double_value,json=pathRepeatedDoubleValue,proto3" json:"path_repeated_double_value,omitempty"`
PathRepeatedInt64Value []int64 `protobuf:"varint,3,rep,packed,name=path_repeated_int64_value,json=pathRepeatedInt64Value,proto3" json:"path_repeated_int64_value,omitempty"`
PathRepeatedUint64Value []uint64 `protobuf:"varint,4,rep,packed,name=path_repeated_uint64_value,json=pathRepeatedUint64Value,proto3" json:"path_repeated_uint64_value,omitempty"`
PathRepeatedInt32Value []int32 `protobuf:"varint,5,rep,packed,name=path_repeated_int32_value,json=pathRepeatedInt32Value,proto3" json:"path_repeated_int32_value,omitempty"`
PathRepeatedFixed64Value []uint64 `protobuf:"fixed64,6,rep,packed,name=path_repeated_fixed64_value,json=pathRepeatedFixed64Value,proto3" json:"path_repeated_fixed64_value,omitempty"`
PathRepeatedFixed32Value []uint32 `protobuf:"fixed32,7,rep,packed,name=path_repeated_fixed32_value,json=pathRepeatedFixed32Value,proto3" json:"path_repeated_fixed32_value,omitempty"`
PathRepeatedBoolValue []bool `protobuf:"varint,8,rep,packed,name=path_repeated_bool_value,json=pathRepeatedBoolValue,proto3" json:"path_repeated_bool_value,omitempty"`
PathRepeatedStringValue []string `protobuf:"bytes,9,rep,name=path_repeated_string_value,json=pathRepeatedStringValue,proto3" json:"path_repeated_string_value,omitempty"`
PathRepeatedBytesValue [][]byte `protobuf:"bytes,10,rep,name=path_repeated_bytes_value,json=pathRepeatedBytesValue,proto3" json:"path_repeated_bytes_value,omitempty"`
PathRepeatedUint32Value []uint32 `protobuf:"varint,11,rep,packed,name=path_repeated_uint32_value,json=pathRepeatedUint32Value,proto3" json:"path_repeated_uint32_value,omitempty"`
PathRepeatedEnumValue []NumericEnum `protobuf:"varint,12,rep,packed,name=path_repeated_enum_value,json=pathRepeatedEnumValue,proto3,enum=grpc.gateway.examples.examplepb.NumericEnum" json:"path_repeated_enum_value,omitempty"`
PathRepeatedSfixed32Value []int32 `protobuf:"fixed32,13,rep,packed,name=path_repeated_sfixed32_value,json=pathRepeatedSfixed32Value,proto3" json:"path_repeated_sfixed32_value,omitempty"`
PathRepeatedSfixed64Value []int64 `protobuf:"fixed64,14,rep,packed,name=path_repeated_sfixed64_value,json=pathRepeatedSfixed64Value,proto3" json:"path_repeated_sfixed64_value,omitempty"`
PathRepeatedSint32Value []int32 `protobuf:"zigzag32,15,rep,packed,name=path_repeated_sint32_value,json=pathRepeatedSint32Value,proto3" json:"path_repeated_sint32_value,omitempty"`
PathRepeatedSint64Value []int64 `protobuf:"zigzag64,16,rep,packed,name=path_repeated_sint64_value,json=pathRepeatedSint64Value,proto3" json:"path_repeated_sint64_value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ABitOfEverythingRepeated) Reset() { *m = ABitOfEverythingRepeated{} }
func (m *ABitOfEverythingRepeated) String() string { return proto.CompactTextString(m) }
func (*ABitOfEverythingRepeated) ProtoMessage() {}
func (*ABitOfEverythingRepeated) Descriptor() ([]byte, []int) {
return fileDescriptor_3978364c010e812a, []int{1}
}
func (m *ABitOfEverythingRepeated) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ABitOfEverythingRepeated.Unmarshal(m, b)
}
func (m *ABitOfEverythingRepeated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ABitOfEverythingRepeated.Marshal(b, m, deterministic)
}
func (m *ABitOfEverythingRepeated) XXX_Merge(src proto.Message) {
xxx_messageInfo_ABitOfEverythingRepeated.Merge(m, src)
}
func (m *ABitOfEverythingRepeated) XXX_Size() int {
return xxx_messageInfo_ABitOfEverythingRepeated.Size(m)
}
func (m *ABitOfEverythingRepeated) XXX_DiscardUnknown() {
xxx_messageInfo_ABitOfEverythingRepeated.DiscardUnknown(m)
}
var xxx_messageInfo_ABitOfEverythingRepeated proto.InternalMessageInfo
func (m *ABitOfEverythingRepeated) GetPathRepeatedFloatValue() []float32 {
if m != nil {
return m.PathRepeatedFloatValue
}
return nil
}
func (m *ABitOfEverythingRepeated) GetPathRepeatedDoubleValue() []float64 {
if m != nil {
return m.PathRepeatedDoubleValue
}
return nil
}
func (m *ABitOfEverythingRepeated) GetPathRepeatedInt64Value() []int64 {
if m != nil {
return m.PathRepeatedInt64Value
}
return nil
}
func (m *ABitOfEverythingRepeated) GetPathRepeatedUint64Value() []uint64 {
if m != nil {
return m.PathRepeatedUint64Value
}
return nil
}
func (m *ABitOfEverythingRepeated) GetPathRepeatedInt32Value() []int32 {
if m != nil {
return m.PathRepeatedInt32Value
}
return nil
}
func (m *ABitOfEverythingRepeated) GetPathRepeatedFixed64Value() []uint64 {
if m != nil {
return m.PathRepeatedFixed64Value
}
return nil
}
func (m *ABitOfEverythingRepeated) GetPathRepeatedFixed32Value() []uint32 {
if m != nil {
return m.PathRepeatedFixed32Value
}
return nil
}
func (m *ABitOfEverythingRepeated) GetPathRepeatedBoolValue() []bool {
if m != nil {
return m.PathRepeatedBoolValue
}
return nil
}
func (m *ABitOfEverythingRepeated) GetPathRepeatedStringValue() []string {
if m != nil {
return m.PathRepeatedStringValue
}
return nil
}
func (m *ABitOfEverythingRepeated) GetPathRepeatedBytesValue() [][]byte {
if m != nil {
return m.PathRepeatedBytesValue
}
return nil
}
func (m *ABitOfEverythingRepeated) GetPathRepeatedUint32Value() []uint32 {
if m != nil {
return m.PathRepeatedUint32Value
}
return nil
}
func (m *ABitOfEverythingRepeated) GetPathRepeatedEnumValue() []NumericEnum {
if m != nil {
return m.PathRepeatedEnumValue
}
return nil
}
func (m *ABitOfEverythingRepeated) GetPathRepeatedSfixed32Value() []int32 {
if m != nil {
return m.PathRepeatedSfixed32Value
}
return nil
}
func (m *ABitOfEverythingRepeated) GetPathRepeatedSfixed64Value() []int64 {
if m != nil {
return m.PathRepeatedSfixed64Value
}
return nil
}
func (m *ABitOfEverythingRepeated) GetPathRepeatedSint32Value() []int32 {
if m != nil {
return m.PathRepeatedSint32Value
}
return nil
}
func (m *ABitOfEverythingRepeated) GetPathRepeatedSint64Value() []int64 {
if m != nil {
return m.PathRepeatedSint64Value
}
return nil
}
type Body struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Body) Reset() { *m = Body{} }
func (m *Body) String() string { return proto.CompactTextString(m) }
func (*Body) ProtoMessage() {}
func (*Body) Descriptor() ([]byte, []int) {
return fileDescriptor_3978364c010e812a, []int{2}
}
func (m *Body) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Body.Unmarshal(m, b)
}
func (m *Body) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Body.Marshal(b, m, deterministic)
}
func (m *Body) XXX_Merge(src proto.Message) {
xxx_messageInfo_Body.Merge(m, src)
}
func (m *Body) XXX_Size() int {
return xxx_messageInfo_Body.Size(m)
}
func (m *Body) XXX_DiscardUnknown() {
xxx_messageInfo_Body.DiscardUnknown(m)
}
var xxx_messageInfo_Body proto.InternalMessageInfo
func (m *Body) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type MessageWithBody struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Data *Body `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MessageWithBody) Reset() { *m = MessageWithBody{} }
func (m *MessageWithBody) String() string { return proto.CompactTextString(m) }
func (*MessageWithBody) ProtoMessage() {}
func (*MessageWithBody) Descriptor() ([]byte, []int) {
return fileDescriptor_3978364c010e812a, []int{3}
}
func (m *MessageWithBody) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MessageWithBody.Unmarshal(m, b)
}
func (m *MessageWithBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MessageWithBody.Marshal(b, m, deterministic)
}
func (m *MessageWithBody) XXX_Merge(src proto.Message) {
xxx_messageInfo_MessageWithBody.Merge(m, src)
}
func (m *MessageWithBody) XXX_Size() int {
return xxx_messageInfo_MessageWithBody.Size(m)
}
func (m *MessageWithBody) XXX_DiscardUnknown() {
xxx_messageInfo_MessageWithBody.DiscardUnknown(m)
}
var xxx_messageInfo_MessageWithBody proto.InternalMessageInfo
func (m *MessageWithBody) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *MessageWithBody) GetData() *Body {
if m != nil {
return m.Data
}
return nil
}
// UpdateV2Request request for update includes the message and the update mask
type UpdateV2Request struct {
Abe *ABitOfEverything `protobuf:"bytes,1,opt,name=abe,proto3" json:"abe,omitempty"`
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateV2Request) Reset() { *m = UpdateV2Request{} }
func (m *UpdateV2Request) String() string { return proto.CompactTextString(m) }
func (*UpdateV2Request) ProtoMessage() {}
func (*UpdateV2Request) Descriptor() ([]byte, []int) {
return fileDescriptor_3978364c010e812a, []int{4}
}
func (m *UpdateV2Request) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateV2Request.Unmarshal(m, b)
}
func (m *UpdateV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateV2Request.Marshal(b, m, deterministic)
}
func (m *UpdateV2Request) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateV2Request.Merge(m, src)
}
func (m *UpdateV2Request) XXX_Size() int {
return xxx_messageInfo_UpdateV2Request.Size(m)
}
func (m *UpdateV2Request) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateV2Request.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateV2Request proto.InternalMessageInfo
func (m *UpdateV2Request) GetAbe() *ABitOfEverything {
if m != nil {
return m.Abe
}
return nil
}
func (m *UpdateV2Request) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
func init() {
proto.RegisterEnum("grpc.gateway.examples.examplepb.NumericEnum", NumericEnum_name, NumericEnum_value)
proto.RegisterEnum("grpc.gateway.examples.examplepb.ABitOfEverything_Nested_DeepEnum", ABitOfEverything_Nested_DeepEnum_name, ABitOfEverything_Nested_DeepEnum_value)
proto.RegisterType((*ABitOfEverything)(nil), "grpc.gateway.examples.examplepb.ABitOfEverything")
proto.RegisterMapType((map[string]NumericEnum)(nil), "grpc.gateway.examples.examplepb.ABitOfEverything.MapValueEntry")
proto.RegisterMapType((map[string]*ABitOfEverything_Nested)(nil), "grpc.gateway.examples.examplepb.ABitOfEverything.MappedNestedValueEntry")
proto.RegisterMapType((map[string]string)(nil), "grpc.gateway.examples.examplepb.ABitOfEverything.MappedStringValueEntry")
proto.RegisterType((*ABitOfEverything_Nested)(nil), "grpc.gateway.examples.examplepb.ABitOfEverything.Nested")
proto.RegisterType((*ABitOfEverythingRepeated)(nil), "grpc.gateway.examples.examplepb.ABitOfEverythingRepeated")
proto.RegisterType((*Body)(nil), "grpc.gateway.examples.examplepb.Body")
proto.RegisterType((*MessageWithBody)(nil), "grpc.gateway.examples.examplepb.MessageWithBody")
proto.RegisterType((*UpdateV2Request)(nil), "grpc.gateway.examples.examplepb.UpdateV2Request")
}
func init() {
proto.RegisterFile("examples/proto/examplepb/a_bit_of_everything.proto", fileDescriptor_3978364c010e812a)
}
var fileDescriptor_3978364c010e812a = []byte{
// 3621 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x5a, 0x4f, 0x70, 0x1c, 0xc7,
0x5a, 0xd7, 0xec, 0x48, 0xb2, 0xd4, 0xb2, 0x2c, 0xa9, 0x65, 0xd9, 0xf2, 0x5a, 0x89, 0xda, 0x63,
0xe7, 0x65, 0xbc, 0xcf, 0xbb, 0x23, 0x8d, 0x94, 0xc4, 0xde, 0xf0, 0x92, 0xec, 0x4a, 0xb2, 0x23,
0x3b, 0x91, 0x95, 0xb1, 0x63, 0x82, 0x5f, 0xfc, 0x44, 0xef, 0x6e, 0x4b, 0x3b, 0xd6, 0xce, 0xf4,
0xbc, 0x99, 0x1e, 0x59, 0x6b, 0xb1, 0xf0, 0x0a, 0x28, 0x28, 0x78, 0xb7, 0x7d, 0xfc, 0x29, 0x48,
0xc1, 0x85, 0xe2, 0x42, 0xbd, 0x13, 0x55, 0x9c, 0xa8, 0x82, 0x0b, 0x9c, 0x38, 0x40, 0x85, 0x2a,
0x8a, 0x0b, 0x27, 0x38, 0x73, 0x00, 0x2a, 0x55, 0x1c, 0xa0, 0xa8, 0xee, 0x99, 0xd9, 0x9d, 0x99,
0xdd, 0xb5, 0xbc, 0x36, 0x95, 0x97, 0x43, 0x3c, 0xdd, 0xfd, 0x7d, 0xdf, 0xef, 0xfb, 0xba, 0xbf,
0xfe, 0xfe, 0xf4, 0x0a, 0xe8, 0xe4, 0x18, 0x5b, 0x4e, 0x83, 0x78, 0x9a, 0xe3, 0x52, 0x46, 0xb5,
0x70, 0xe8, 0x54, 0x34, 0xbc, 0x57, 0x31, 0xd9, 0x1e, 0xdd, 0xdf, 0x23, 0x47, 0xc4, 0x6d, 0xb2,
0xba, 0x69, 0x1f, 0x14, 0x04, 0x0d, 0x5c, 0x3e, 0x70, 0x9d, 0x6a, 0xe1, 0x00, 0x33, 0xf2, 0x0c,
0x37, 0x0b, 0x91, 0x80, 0x42, 0x87, 0x35, 0xbb, 0x74, 0x40, 0xe9, 0x41, 0x83, 0x68, 0xd8, 0x31,
0x35, 0x6c, 0xdb, 0x94, 0x61, 0x66, 0x52, 0xdb, 0x0b, 0xd8, 0xb3, 0x28, 0x5c, 0x15, 0xa3, 0x8a,
0xbf, 0xaf, 0xed, 0x9b, 0xa4, 0x51, 0xdb, 0xb3, 0xb0, 0x77, 0x18, 0x52, 0x5c, 0x4e, 0x53, 0x10,
0xcb, 0x61, 0xcd, 0x70, 0xf1, 0xcd, 0xf4, 0x62, 0xcd, 0x77, 0x85, 0xfc, 0x41, 0xeb, 0xcf, 0x5c,
0xec, 0x38, 0xc4, 0x8d, 0xe0, 0xdf, 0x4e, 0x59, 0xec, 0x60, 0x56, 0x27, 0xb6, 0x6f, 0x89, 0x8f,
0x3d, 0xfe, 0x15, 0xe9, 0x99, 0x22, 0xf4, 0xfc, 0x8a, 0x66, 0x11, 0xcf, 0xc3, 0x07, 0x24, 0xa4,
0xb8, 0xd2, 0x4b, 0xa1, 0xa7, 0x48, 0x96, 0xd3, 0xda, 0x30, 0xd3, 0x22, 0x1e, 0xc3, 0x96, 0x13,
0x12, 0xdc, 0x10, 0xff, 0x54, 0xf3, 0x07, 0xc4, 0xce, 0x7b, 0xcf, 0xf0, 0xc1, 0x01, 0x71, 0x35,
0xea, 0x88, 0xfd, 0xea, 0xdd, 0x3b, 0xe5, 0x1f, 0x2e, 0x83, 0xd9, 0x52, 0xd9, 0x64, 0xf7, 0xf7,
0xb7, 0x3a, 0xa7, 0x02, 0x9f, 0x80, 0x69, 0xcf, 0xb4, 0x0f, 0x1a, 0x64, 0xcf, 0x26, 0x1e, 0x23,
0xb5, 0xc5, 0x4b, 0x48, 0x52, 0xa7, 0xf4, 0x9b, 0x85, 0x53, 0xce, 0xa9, 0x90, 0x96, 0x54, 0xd8,
0x11, 0xfc, 0xc6, 0xd9, 0x40, 0x5c, 0x30, 0x82, 0x75, 0x30, 0xea, 0xfb, 0x66, 0x6d, 0x51, 0x42,
0x92, 0x3a, 0x59, 0x7e, 0xd8, 0x2e, 0x7d, 0xf6, 0x23, 0x49, 0xfa, 0x6d, 0xe9, 0xde, 0xf7, 0x71,
0x7e, 0xbf, 0x94, 0xbf, 0xbd, 0x92, 0xbf, 0xf5, 0xe4, 0xe4, 0x66, 0x2b, 0x1f, 0x1f, 0xae, 0x0f,
0x33, 0x5c, 0xd5, 0x5b, 0x86, 0x40, 0x80, 0xbb, 0x60, 0x3c, 0xb4, 0x20, 0x83, 0xe4, 0xd7, 0xb2,
0x20, 0x94, 0x03, 0xef, 0x82, 0xa9, 0xfd, 0x06, 0xc5, 0x6c, 0xef, 0x08, 0x37, 0x7c, 0xb2, 0x28,
0x23, 0x49, 0xcd, 0x94, 0xaf, 0xb7, 0x4b, 0xdf, 0xd1, 0xe7, 0x6e, 0xf3, 0x79, 0x24, 0xe6, 0x91,
0xf0, 0xc0, 0xa2, 0xbc, 0x52, 0xd0, 0xbf, 0x96, 0xe2, 0x0c, 0x06, 0x10, 0x83, 0x47, 0xfc, 0x1b,
0x5e, 0x01, 0x67, 0x6b, 0xd4, 0xaf, 0x34, 0x48, 0x28, 0x6c, 0x14, 0x49, 0xaa, 0x64, 0x4c, 0x05,
0x73, 0x01, 0xc9, 0x32, 0x98, 0x32, 0x6d, 0xf6, 0xee, 0x7a, 0x48, 0x31, 0x86, 0x24, 0x55, 0x36,
0x80, 0x98, 0xea, 0xc8, 0xf0, 0xe3, 0x14, 0xe3, 0x48, 0x52, 0x47, 0x8d, 0x29, 0x3f, 0x46, 0x12,
0xc8, 0x58, 0xd3, 0x43, 0x8a, 0x33, 0x48, 0x52, 0xc7, 0x84, 0x8c, 0x35, 0x3d, 0x20, 0xb8, 0x0a,
0xa6, 0xf7, 0xcd, 0x63, 0x52, 0xeb, 0x08, 0x99, 0x40, 0x92, 0x3a, 0x6e, 0x9c, 0x0d, 0x27, 0x93,
0x44, 0x1d, 0x39, 0x93, 0x48, 0x52, 0xcf, 0x84, 0x44, 0x91, 0xa4, 0x37, 0x00, 0xa8, 0x50, 0xda,
0x08, 0x29, 0x00, 0x92, 0xd4, 0x09, 0x63, 0x92, 0xcf, 0x74, 0x94, 0xf5, 0x98, 0x6b, 0xda, 0x07,
0x21, 0xc1, 0x14, 0x77, 0x00, 0x63, 0x2a, 0x98, 0xeb, 0x28, 0x5b, 0x69, 0x32, 0xe2, 0x85, 0x14,
0x6f, 0x20, 0x49, 0x3d, 0x6b, 0x00, 0x31, 0x95, 0x30, 0xb8, 0xa3, 0xc6, 0x34, 0x92, 0xd4, 0xe9,
0xc0, 0xe0, 0x48, 0x8b, 0x7b, 0x00, 0xf0, 0x5b, 0x17, 0x12, 0x9c, 0x43, 0x92, 0x7a, 0x4e, 0xbf,
0x71, 0xea, 0xc9, 0xef, 0xf8, 0x16, 0x71, 0xcd, 0xea, 0x96, 0xed, 0x5b, 0xc6, 0x24, 0xe7, 0x0f,
0x84, 0xed, 0x82, 0x99, 0xce, 0x3d, 0x0e, 0x25, 0xbe, 0x29, 0x24, 0xaa, 0x03, 0x24, 0x46, 0xd7,
0xbf, 0xb0, 0x8b, 0x59, 0x5d, 0x48, 0x9b, 0x76, 0xc2, 0xaf, 0x40, 0xa2, 0x07, 0x2e, 0x04, 0xce,
0xb4, 0x97, 0x16, 0xbc, 0x2c, 0x04, 0x7f, 0x70, 0x9a, 0xe0, 0x4f, 0x83, 0x80, 0x10, 0xc9, 0x0f,
0x5d, 0xb4, 0x03, 0x37, 0x6f, 0x27, 0xc6, 0x01, 0xe8, 0x5b, 0xe0, 0x9c, 0x97, 0x3c, 0xbf, 0x19,
0x24, 0xa9, 0x33, 0xc6, 0xb4, 0x97, 0x38, 0xc0, 0x0e, 0x59, 0xc7, 0x17, 0x66, 0x91, 0xa4, 0xce,
0x46, 0x64, 0x31, 0xaf, 0xf3, 0xe2, 0x87, 0x30, 0x87, 0x24, 0x75, 0xce, 0x98, 0xf2, 0x62, 0x87,
0x10, 0x92, 0x74, 0xe4, 0x40, 0x24, 0xa9, 0x30, 0x20, 0x89, 0xa4, 0xe8, 0x60, 0xc1, 0x25, 0x0e,
0xc1, 0x7c, 0x2b, 0x12, 0x7e, 0x31, 0x8f, 0x64, 0x75, 0xd2, 0x98, 0x8f, 0x16, 0x1f, 0xc4, 0xfc,
0xe3, 0x16, 0x98, 0xa2, 0x36, 0xe1, 0x49, 0x84, 0x47, 0xf0, 0xc5, 0xf3, 0x22, 0x30, 0x5d, 0x28,
0x04, 0x41, 0xb1, 0x10, 0x05, 0xc5, 0xc2, 0x16, 0x5f, 0xfd, 0x78, 0xc4, 0x00, 0x82, 0x58, 0x8c,
0xe0, 0x55, 0x70, 0x36, 0x60, 0x0d, 0xb0, 0x16, 0x17, 0xb8, 0xf7, 0x7d, 0x3c, 0x62, 0x04, 0x02,
0x03, 0x10, 0xf8, 0x25, 0x98, 0xb4, 0xb0, 0x13, 0xea, 0x71, 0x41, 0x04, 0x8d, 0x0f, 0x87, 0x0f,
0x1a, 0x9f, 0x62, 0x47, 0xa8, 0xbb, 0x65, 0x33, 0xb7, 0x69, 0x4c, 0x58, 0xe1, 0x10, 0x1e, 0x83,
0x79, 0x8b, 0xe7, 0x8e, 0x94, 0xbd, 0x17, 0x05, 0xce, 0xc7, 0xaf, 0x84, 0xe3, 0x24, 0xf6, 0x27,
0x00, 0x9c, 0xb3, 0xd2, 0xf3, 0x31, 0xe4, 0xd0, 0xf7, 0x02, 0xe4, 0xc5, 0xd7, 0x43, 0x0e, 0x3c,
0xaf, 0x17, 0x39, 0x36, 0x0f, 0x8b, 0x60, 0xd1, 0xa6, 0xf6, 0x06, 0xb5, 0x8f, 0x88, 0xcd, 0x33,
0x0f, 0x6e, 0xec, 0x60, 0x2b, 0x08, 0x6f, 0x8b, 0x59, 0x11, 0x00, 0x06, 0xae, 0xc3, 0x0d, 0x30,
0xd3, 0x49, 0x6f, 0xa1, 0xc6, 0x97, 0xc5, 0x89, 0x67, 0x7b, 0x4e, 0xfc, 0x61, 0x44, 0x67, 0x9c,
0xeb, 0xb0, 0x04, 0x42, 0xbe, 0x04, 0x1d, 0x4f, 0x8a, 0x5f, 0xb6, 0x25, 0x24, 0x0f, 0x1d, 0x17,
0xe6, 0x22, 0x41, 0xdd, 0x8b, 0xf5, 0x53, 0x09, 0x2c, 0x26, 0xc5, 0x77, 0x93, 0xec, 0x22, 0x1a,
0x1e, 0xa3, 0xbc, 0xd9, 0x2e, 0x95, 0x72, 0x97, 0x8d, 0x50, 0x24, 0xb2, 0x83, 0x25, 0xc4, 0x45,
0x23, 0x66, 0xb2, 0x06, 0xd1, 0x95, 0xfe, 0x8b, 0x35, 0xe2, 0x55, 0x5d, 0x53, 0x64, 0xfa, 0x82,
0x71, 0x21, 0xae, 0x69, 0xa9, 0xa3, 0x11, 0xfc, 0x1d, 0x09, 0x2c, 0x74, 0x37, 0x21, 0xae, 0xeb,
0x95, 0xe1, 0xe3, 0x64, 0x59, 0x6f, 0x97, 0xb4, 0x1c, 0xdc, 0xe9, 0x55, 0xf1, 0xd2, 0xce, 0x40,
0xcd, 0xe6, 0x3b, 0xb1, 0x35, 0xa6, 0xd6, 0x11, 0xc8, 0xa6, 0x43, 0x41, 0x4c, 0x35, 0x85, 0xc7,
0x83, 0xf2, 0xcd, 0x76, 0xe9, 0x9d, 0xdc, 0x42, 0xc7, 0xf6, 0x80, 0x2c, 0xc4, 0x5b, 0x4a, 0x4f,
0x27, 0x20, 0x17, 0x93, 0x91, 0x24, 0x86, 0xfb, 0x57, 0x52, 0x0c, 0x38, 0xbc, 0x19, 0x31, 0xe0,
0xab, 0xaf, 0x57, 0x35, 0x94, 0x6f, 0xb7, 0x4b, 0x1b, 0xb9, 0xae, 0x6e, 0x01, 0x00, 0xa2, 0x95,
0xa7, 0xa4, 0xca, 0x42, 0xcd, 0xaf, 0x0e, 0x58, 0xed, 0x6f, 0x40, 0x20, 0x37, 0x66, 0xc0, 0x57,
0x12, 0x98, 0xeb, 0xd5, 0xfb, 0xda, 0xeb, 0xd5, 0x6b, 0xe5, 0xf5, 0x76, 0x69, 0x35, 0x37, 0xbf,
0xd3, 0x47, 0xdd, 0xec, 0xce, 0x60, 0x2d, 0x67, 0xed, 0xb4, 0x76, 0xef, 0x81, 0xf9, 0x20, 0x07,
0xd0, 0x23, 0xe2, 0xba, 0x66, 0x8d, 0xec, 0xb1, 0xa6, 0x43, 0x16, 0xdf, 0xe2, 0x65, 0x4c, 0xf9,
0x4c, 0xbb, 0x34, 0xfa, 0x87, 0x19, 0x49, 0x36, 0xe6, 0x04, 0xcd, 0xfd, 0x90, 0xe4, 0x61, 0xd3,
0x21, 0xd9, 0x7f, 0x91, 0xc0, 0x78, 0x58, 0x2d, 0x42, 0x30, 0x6a, 0x63, 0x8b, 0x04, 0xd5, 0xa2,
0x21, 0xbe, 0xe1, 0x05, 0x30, 0x8e, 0x2d, 0xea, 0xdb, 0x6c, 0x31, 0x23, 0xd2, 0x7f, 0x38, 0x82,
0x16, 0xc8, 0xd0, 0x43, 0x51, 0x94, 0x9d, 0xd3, 0x4b, 0xaf, 0x6a, 0x7d, 0x61, 0x93, 0x10, 0x47,
0xb8, 0x77, 0xb6, 0x5d, 0xba, 0xa8, 0x2f, 0x44, 0xc3, 0xa4, 0xb1, 0x19, 0x7a, 0xa8, 0x2c, 0x83,
0x89, 0x68, 0x11, 0x4e, 0x82, 0xb1, 0xdb, 0xa5, 0x4f, 0x1e, 0x6c, 0xcd, 0x8e, 0xc0, 0x09, 0x30,
0xfa, 0xd0, 0xf8, 0x7c, 0x6b, 0x56, 0x2a, 0x5e, 0x6c, 0x97, 0xce, 0xeb, 0x10, 0xce, 0x9e, 0x20,
0x85, 0x1e, 0x2a, 0x45, 0xa4, 0xf0, 0x79, 0x05, 0xb5, 0xb2, 0x26, 0x98, 0x4e, 0xe4, 0x08, 0x38,
0x0b, 0xe4, 0x43, 0xd2, 0x0c, 0x8d, 0xe4, 0x9f, 0xb0, 0x0c, 0xc6, 0x82, 0x40, 0x95, 0x79, 0x85,
0x02, 0x26, 0x60, 0x2d, 0x66, 0x6e, 0x4a, 0xd9, 0x4d, 0x70, 0xa1, 0x7f, 0x9a, 0xe8, 0x83, 0x79,
0x3e, 0x8e, 0x39, 0x19, 0x97, 0xf2, 0xcb, 0x91, 0x94, 0x74, 0xc8, 0xef, 0x23, 0x65, 0x27, 0x2e,
0xe5, 0x75, 0x8a, 0xee, 0x2e, 0x7e, 0xf1, 0x0f, 0x32, 0xed, 0xd2, 0xef, 0x66, 0xc0, 0xaf, 0x4b,
0xb9, 0xf9, 0x12, 0xaa, 0x98, 0x0c, 0xd1, 0x7d, 0xd4, 0xed, 0x23, 0xf5, 0xed, 0x6d, 0x9b, 0x45,
0xe9, 0xa3, 0x89, 0xaa, 0xd4, 0x72, 0x1a, 0x66, 0x55, 0xdc, 0xaa, 0xb0, 0x7b, 0x42, 0xdc, 0xf1,
0x10, 0xa3, 0xa8, 0xca, 0x5d, 0x11, 0x59, 0xd8, 0x6e, 0xa2, 0x7d, 0x82, 0x99, 0xef, 0x12, 0x8f,
0xcb, 0xda, 0x8d, 0xf2, 0xc8, 0xd7, 0x92, 0x68, 0x1d, 0xbe, 0x96, 0xe2, 0x85, 0xf7, 0xd7, 0x52,
0xa2, 0x52, 0xcf, 0x3d, 0x02, 0xd7, 0x6e, 0x9b, 0x76, 0x0d, 0x51, 0x9f, 0x21, 0x8b, 0xba, 0x04,
0xe1, 0x0a, 0xff, 0xec, 0x69, 0xa4, 0x0a, 0x75, 0xc6, 0x1c, 0xaf, 0xa8, 0x69, 0x07, 0x26, 0xab,
0xfb, 0x95, 0x42, 0x95, 0x5a, 0x1a, 0xdf, 0x8c, 0x3c, 0xa9, 0x52, 0xaf, 0xe9, 0x31, 0x12, 0x0e,
0xc3, 0xbd, 0xd1, 0xd7, 0xa1, 0x7e, 0x82, 0x14, 0x8e, 0xcf, 0x9d, 0x65, 0xa5, 0xba, 0xbf, 0xf6,
0xee, 0x2a, 0x59, 0xcd, 0xaf, 0x57, 0xd6, 0xd7, 0xf3, 0xeb, 0x37, 0xd7, 0x6a, 0x79, 0xbc, 0xfa,
0xce, 0xad, 0xfc, 0x3b, 0xeb, 0x35, 0x5c, 0xa9, 0xed, 0xbf, 0x47, 0x6e, 0xae, 0xae, 0x2b, 0xa8,
0x55, 0x9e, 0x8e, 0x6a, 0x22, 0xa1, 0x9c, 0xf2, 0xbf, 0x13, 0x60, 0x31, 0xad, 0x49, 0x14, 0x64,
0xe0, 0x2d, 0x70, 0x49, 0x54, 0x9d, 0x9d, 0xa0, 0x17, 0xef, 0x66, 0x24, 0x24, 0xab, 0x19, 0xe3,
0x02, 0x27, 0x88, 0x18, 0x6e, 0x77, 0xdb, 0x95, 0xf7, 0x41, 0x36, 0xc9, 0x9a, 0x68, 0x5e, 0x78,
0x83, 0x25, 0x19, 0x17, 0xe3, 0xbc, 0x9b, 0xb1, 0x46, 0xa6, 0x07, 0x37, 0x5e, 0x1b, 0xca, 0x48,
0x56, 0xe5, 0x24, 0xee, 0x76, 0xb7, 0x4c, 0xec, 0xc1, 0x4d, 0x34, 0x3c, 0xa3, 0x48, 0x56, 0x47,
0x93, 0xb8, 0x9f, 0xc7, 0x6a, 0xcc, 0x7e, 0xb8, 0x9d, 0xb2, 0x75, 0x0c, 0xc9, 0xea, 0x58, 0x0f,
0x6e, 0x54, 0xc1, 0x7e, 0x0f, 0x5c, 0x4e, 0x6d, 0x55, 0xa2, 0x30, 0x1e, 0x47, 0xb2, 0x3a, 0x6e,
0x2c, 0x26, 0x36, 0x2b, 0x5e, 0x23, 0xf7, 0x67, 0x8f, 0xb5, 0x61, 0xb2, 0x7a, 0xa6, 0x0f, 0x7b,
0x84, 0xfe, 0x1e, 0x58, 0x4c, 0xb2, 0xc7, 0x1a, 0xab, 0x09, 0x24, 0xab, 0x13, 0xc6, 0x42, 0x9c,
0xb7, 0xdc, 0x69, 0xb2, 0x7a, 0xb6, 0x2b, 0x51, 0x6a, 0x4e, 0x8a, 0xd2, 0x3a, 0xb1, 0x5d, 0xc9,
0xf2, 0x3a, 0xb5, 0x5d, 0xf1, 0x66, 0x0c, 0x20, 0x59, 0x3d, 0x9b, 0xdc, 0xae, 0x72, 0xb7, 0x31,
0xeb, 0x7b, 0x4c, 0x1d, 0x73, 0xa7, 0x90, 0xac, 0x4e, 0xf7, 0x1e, 0x53, 0x64, 0x2d, 0x49, 0x5b,
0x1b, 0x2b, 0xd4, 0xce, 0xbe, 0x42, 0xa1, 0x96, 0xd8, 0x9b, 0x6e, 0xb1, 0xf6, 0x21, 0x58, 0x4a,
0xed, 0x4d, 0xf2, 0x50, 0xa6, 0x91, 0xac, 0xce, 0x18, 0x97, 0x12, 0xbb, 0x93, 0xe8, 0x8f, 0x06,
0x08, 0xe8, 0x38, 0xc5, 0x39, 0x24, 0xab, 0xb3, 0xfd, 0x04, 0x0c, 0x74, 0xe6, 0x44, 0x1f, 0x35,
0x83, 0x64, 0x75, 0x2e, 0x75, 0x3a, 0xb1, 0x5d, 0xea, 0xcb, 0x1c, 0xeb, 0xd4, 0x64, 0x15, 0xf6,
0x32, 0x87, 0xc8, 0xc5, 0x7a, 0xbb, 0x44, 0xf4, 0x2a, 0xc4, 0x27, 0x48, 0x19, 0xe4, 0x58, 0x4a,
0x11, 0x7d, 0x9f, 0xb9, 0x3e, 0xb9, 0x81, 0x82, 0xff, 0xef, 0xe3, 0x86, 0x17, 0x0e, 0x9e, 0xdc,
0x48, 0xb3, 0xc5, 0xf4, 0xe6, 0x7c, 0xab, 0x37, 0x90, 0x7e, 0x03, 0xad, 0x3d, 0x41, 0x2d, 0x25,
0x0b, 0x46, 0xcb, 0xb4, 0xd6, 0xec, 0x97, 0xb9, 0x95, 0x2f, 0xc1, 0x4c, 0xd8, 0xbe, 0xfe, 0xbc,
0xc9, 0xea, 0x82, 0xec, 0x1c, 0xc8, 0x44, 0x8f, 0x41, 0x46, 0xc6, 0xe4, 0x21, 0x6a, 0xb4, 0x86,
0x19, 0x0e, 0xb3, 0xc7, 0x5b, 0xa7, 0x9e, 0x3b, 0x17, 0x62, 0x08, 0x16, 0xe5, 0x27, 0x12, 0x98,
0xf9, 0xdc, 0xa9, 0x61, 0x46, 0x1e, 0xe9, 0x06, 0xf9, 0xa1, 0x4f, 0x3c, 0x06, 0x37, 0x80, 0x8c,
0x2b, 0x81, 0x12, 0x53, 0xfa, 0xea, 0xd0, 0xb9, 0xc8, 0xe0, 0xdc, 0xf0, 0x7d, 0x30, 0xe5, 0x0b,
0xb9, 0xe2, 0x55, 0x31, 0x54, 0xad, 0xb7, 0x09, 0xb9, 0x6d, 0x92, 0x46, 0xed, 0x53, 0xec, 0x1d,
0x1a, 0x20, 0x20, 0xe7, 0xdf, 0x39, 0x04, 0xa6, 0x62, 0xbe, 0xc9, 0xcb, 0x83, 0xc7, 0x5b, 0xc6,
0xfd, 0xd9, 0x11, 0x78, 0x06, 0xc8, 0xf7, 0x77, 0xb6, 0x66, 0x25, 0xfd, 0x3f, 0x14, 0x70, 0x31,
0x0d, 0xfc, 0x80, 0xb8, 0x47, 0x66, 0x95, 0xc0, 0x7f, 0x97, 0xc1, 0xf8, 0x86, 0xcb, 0xf7, 0x1c,
0x0e, 0xaf, 0x7d, 0x76, 0x78, 0x16, 0xe5, 0x7f, 0x32, 0xbf, 0xfa, 0x8f, 0xff, 0xf6, 0x93, 0xcc,
0x37, 0x19, 0xe5, 0x3f, 0x33, 0xda, 0xd1, 0x6a, 0xf4, 0x82, 0xdb, 0xef, 0xfd, 0x56, 0x3b, 0x89,
0xa5, 0x8f, 0x96, 0x76, 0x12, 0xcf, 0x08, 0x2d, 0xed, 0x24, 0xe6, 0x9d, 0x2d, 0xcd, 0x23, 0x0e,
0x76, 0x31, 0xa3, 0xae, 0x76, 0xe2, 0x27, 0x16, 0x4e, 0x62, 0x9e, 0xd4, 0xd2, 0x4e, 0x12, 0x17,
0x2a, 0x1a, 0xc7, 0xd6, 0xbb, 0xee, 0xda, 0xd2, 0x4e, 0xe2, 0xb1, 0xed, 0x7b, 0x1e, 0x73, 0x1d,
0x97, 0xec, 0x9b, 0xc7, 0x5a, 0xae, 0x15, 0x80, 0xc4, 0xd8, 0xbc, 0xb4, 0x1c, 0x2f, 0x0d, 0xe4,
0xa5, 0x18, 0x92, 0x4a, 0x0e, 0xea, 0x51, 0x5b, 0xda, 0x49, 0x37, 0x56, 0xb5, 0xb4, 0x93, 0xd4,
0x9b, 0x0e, 0xe7, 0xec, 0xfb, 0xd8, 0x93, 0xe0, 0x8b, 0xd5, 0xee, 0x2d, 0xf8, 0xc7, 0x12, 0x00,
0xc1, 0x81, 0x8b, 0xeb, 0xf1, 0xed, 0x1c, 0x7a, 0x4e, 0x9c, 0xf9, 0x35, 0x65, 0xf9, 0x94, 0x13,
0x2f, 0x4a, 0x39, 0xf8, 0x4b, 0x60, 0xfc, 0x13, 0x4a, 0x0f, 0x7d, 0x07, 0xce, 0x14, 0x3c, 0xbf,
0xa2, 0x17, 0xb6, 0x6b, 0xe1, 0x9d, 0x7e, 0x15, 0xe4, 0x82, 0x40, 0x56, 0xe1, 0x77, 0x4e, 0xf5,
0x35, 0x5e, 0x17, 0xb5, 0xe0, 0x6f, 0x48, 0x60, 0x3c, 0xb8, 0xe3, 0xaf, 0xb2, 0x35, 0x03, 0x9e,
0x8a, 0x94, 0x55, 0xa1, 0xc5, 0x77, 0xb3, 0x2f, 0xa9, 0x05, 0xdf, 0x86, 0xff, 0x92, 0xc0, 0x44,
0x14, 0x6c, 0xe0, 0xca, 0xa9, 0xaa, 0xa4, 0xe2, 0xd2, 0x40, 0x4d, 0xfe, 0x48, 0x12, 0xaa, 0xfc,
0x9e, 0x94, 0xcd, 0x69, 0x47, 0xfa, 0x8b, 0x75, 0xc1, 0x15, 0x52, 0x08, 0xf4, 0xe1, 0x51, 0xea,
0xf1, 0xaa, 0x3e, 0x34, 0xcb, 0x8a, 0xfe, 0x5d, 0xed, 0x48, 0xc7, 0x2f, 0xcb, 0x23, 0xe5, 0xe0,
0x9f, 0x4a, 0x60, 0x7c, 0x93, 0x34, 0x08, 0x23, 0xbd, 0xc7, 0x3f, 0xc8, 0x26, 0xb7, 0x5d, 0x2a,
0x55, 0xae, 0x83, 0x73, 0x00, 0x94, 0x1c, 0xf3, 0x1e, 0x69, 0x96, 0x7c, 0x56, 0x87, 0x23, 0xe0,
0x22, 0x18, 0xbf, 0xcf, 0x3f, 0x75, 0x38, 0x0d, 0x46, 0x5d, 0x82, 0x6b, 0x60, 0xec, 0x99, 0x6b,
0x32, 0xf2, 0xf4, 0x3c, 0x38, 0x77, 0x9c, 0x37, 0x5d, 0x97, 0x2b, 0xe1, 0x99, 0x95, 0x06, 0x81,
0x19, 0x14, 0x6c, 0x8b, 0x9a, 0x7b, 0x59, 0x3f, 0xf9, 0x57, 0x09, 0x4c, 0xdc, 0x21, 0xec, 0x33,
0x9f, 0xb8, 0xcd, 0xff, 0x4f, 0x4f, 0xf9, 0xb1, 0xd4, 0x2e, 0x3d, 0x54, 0x76, 0xc0, 0x52, 0xbf,
0x0e, 0xa0, 0x03, 0x38, 0x64, 0xe5, 0xff, 0x85, 0x54, 0x19, 0x11, 0xf6, 0x15, 0xe0, 0x8d, 0xd3,
0xec, 0xfb, 0x21, 0x07, 0x88, 0xac, 0xfc, 0xf1, 0x18, 0x98, 0xbd, 0x43, 0x58, 0x94, 0xf0, 0x03,
0xf0, 0x5b, 0xc3, 0x67, 0xb9, 0x90, 0x3f, 0xfb, 0xea, 0xac, 0xca, 0x8f, 0x46, 0x85, 0x05, 0xff,
0x2d, 0xc3, 0x6f, 0xe4, 0x53, 0x6c, 0xe8, 0x54, 0x11, 0x61, 0xbc, 0xec, 0xd7, 0x8d, 0xb4, 0xd2,
0x6b, 0xa9, 0xe4, 0x32, 0xb0, 0x9d, 0xe8, 0x59, 0xf3, 0x5f, 0xb4, 0x98, 0x0c, 0xfa, 0x2f, 0x28,
0xf8, 0xfb, 0xaf, 0x0e, 0xe4, 0x4d, 0xa4, 0xa9, 0xc1, 0x05, 0x79, 0x2f, 0x5f, 0xb7, 0xe0, 0xee,
0x6b, 0xc8, 0x40, 0xc0, 0xde, 0x2c, 0x34, 0xa0, 0xca, 0x1d, 0xb0, 0x3c, 0xd0, 0x4e, 0xef, 0x45,
0xa8, 0x89, 0x2c, 0x09, 0x7f, 0x6b, 0x14, 0x8c, 0x6e, 0x55, 0xeb, 0x14, 0x0e, 0xfa, 0x71, 0xc4,
0xf3, 0x2b, 0x85, 0xa0, 0xdf, 0x88, 0x42, 0xc6, 0x4b, 0x53, 0x2a, 0x3f, 0x95, 0xdb, 0xa5, 0xbf,
0xcd, 0x80, 0x09, 0x52, 0xad, 0x53, 0xe4, 0x3a, 0x55, 0x38, 0xf7, 0xc0, 0xb7, 0x2c, 0xec, 0x36,
0x8b, 0x68, 0x2b, 0x9c, 0xca, 0xce, 0x6e, 0x76, 0xdf, 0x68, 0xc4, 0xac, 0xb2, 0x09, 0x60, 0xf2,
0xa2, 0x0a, 0xfd, 0x86, 0xbc, 0x9e, 0x77, 0x6f, 0x01, 0x59, 0x5f, 0x59, 0x81, 0xba, 0xb2, 0x02,
0x66, 0xb1, 0x13, 0x3c, 0x2e, 0x98, 0xd4, 0xd6, 0x9e, 0x7a, 0xd4, 0x86, 0x4b, 0x27, 0x4a, 0x54,
0x06, 0x2b, 0xac, 0x4e, 0x90, 0x69, 0x3b, 0x7e, 0xf8, 0x43, 0xa0, 0xd2, 0xba, 0xfb, 0x08, 0xc8,
0xef, 0xac, 0xac, 0xc1, 0xfb, 0xe0, 0x5d, 0x83, 0x30, 0xdf, 0xb5, 0x49, 0x0d, 0x3d, 0xab, 0x13,
0x1b, 0x71, 0x4a, 0x97, 0x78, 0xd4, 0x77, 0xab, 0x04, 0x99, 0x1e, 0x62, 0xc4, 0x72, 0xa8, 0x8b,
0x5d, 0xb3, 0xd1, 0x44, 0xbe, 0x8d, 0x8f, 0xb0, 0xd9, 0xc0, 0x95, 0x06, 0x29, 0xe4, 0x16, 0xc0,
0xc4, 0x71, 0xde, 0xf6, 0xad, 0x0a, 0x71, 0xe1, 0xe4, 0xdc, 0x88, 0xf8, 0xef, 0x17, 0x3e, 0xba,
0xfb, 0x3e, 0x90, 0xd7, 0x57, 0xd6, 0xe1, 0x3a, 0xc8, 0xbd, 0x40, 0x6e, 0x8d, 0x12, 0x0f, 0xd9,
0x94, 0x21, 0x72, 0x6c, 0x7a, 0xac, 0x00, 0xc7, 0x81, 0x78, 0x72, 0x13, 0x17, 0xf5, 0xc9, 0xe9,
0xa1, 0x86, 0x6f, 0xb5, 0x76, 0x12, 0x1c, 0xee, 0xe3, 0x4b, 0xca, 0x6c, 0x3c, 0xbb, 0xf0, 0xb5,
0x62, 0xf0, 0x42, 0xf3, 0x18, 0xc2, 0x9e, 0x25, 0xf8, 0x17, 0x12, 0x38, 0xbb, 0x49, 0x88, 0x23,
0x7e, 0x87, 0xe2, 0x13, 0xdf, 0x4e, 0x21, 0xf3, 0xa1, 0xb0, 0xed, 0x96, 0xb2, 0x7e, 0x6a, 0x9a,
0x48, 0xfc, 0xc4, 0x5d, 0xe0, 0xdd, 0x89, 0xc8, 0x6f, 0x25, 0x00, 0x76, 0x68, 0xd9, 0xb4, 0x6b,
0xa6, 0x7d, 0xe0, 0xc1, 0x4b, 0x3d, 0x59, 0x60, 0x33, 0xfc, 0xeb, 0x80, 0x81, 0x09, 0x62, 0x04,
0x3e, 0x02, 0x67, 0x1e, 0x9a, 0x16, 0xa1, 0x3e, 0x83, 0x03, 0x88, 0x06, 0x32, 0x5f, 0x16, 0xea,
0x2f, 0xc0, 0xf9, 0xf8, 0x7e, 0xb2, 0x50, 0x58, 0x1d, 0xcc, 0x6e, 0xb9, 0x2e, 0x75, 0x79, 0xeb,
0xb4, 0x49, 0x18, 0x36, 0x1b, 0xde, 0xd0, 0x00, 0xd7, 0x04, 0xc0, 0x9b, 0x70, 0x29, 0x71, 0x60,
0x5c, 0xea, 0x33, 0x93, 0xd5, 0x6b, 0xa1, 0xd4, 0xdf, 0x94, 0x00, 0xbc, 0x43, 0x58, 0xba, 0x55,
0x3b, 0xbd, 0xca, 0x49, 0x71, 0x0c, 0x54, 0xe3, 0x6d, 0xa1, 0xc6, 0x15, 0xe5, 0x52, 0x5c, 0x0d,
0xae, 0x41, 0x85, 0xd6, 0x9a, 0xda, 0x09, 0xaf, 0x35, 0x44, 0x4b, 0x07, 0x7f, 0x4d, 0x02, 0x73,
0xbb, 0xd4, 0x63, 0x5c, 0xa2, 0x60, 0x15, 0x8a, 0xbc, 0x5c, 0x57, 0x38, 0x10, 0x5d, 0x13, 0xe8,
0xd7, 0x95, 0x6b, 0x71, 0x74, 0x87, 0x7a, 0x8c, 0x6b, 0x20, 0x7e, 0x59, 0x0c, 0xd4, 0xe8, 0x38,
0xc5, 0xdf, 0x48, 0x60, 0x7e, 0xa3, 0x4e, 0xaa, 0x87, 0x51, 0x82, 0xdf, 0xc5, 0x2e, 0xb6, 0xbc,
0x6f, 0xc9, 0xa7, 0xef, 0x08, 0x75, 0x4b, 0xf0, 0xc3, 0xd3, 0x7c, 0xda, 0x11, 0x5a, 0x69, 0x07,
0x84, 0xf5, 0x75, 0x6f, 0xf8, 0xcf, 0x12, 0x78, 0x43, 0x98, 0x11, 0x3c, 0xb0, 0xf2, 0x76, 0xf4,
0x67, 0x62, 0xd0, 0x67, 0xc2, 0xa0, 0x7b, 0x70, 0x7b, 0x08, 0x83, 0xc2, 0x36, 0x4a, 0xfc, 0x65,
0x4d, 0xca, 0x38, 0x7a, 0xd8, 0x82, 0x7f, 0x2f, 0x81, 0xf3, 0xc2, 0x34, 0xee, 0x2c, 0x3f, 0x33,
0x8b, 0x94, 0xe2, 0x4b, 0x5a, 0xc4, 0x9d, 0x2d, 0xd9, 0xbe, 0xb6, 0x8a, 0xc9, 0x3f, 0xba, 0x81,
0x5f, 0x49, 0x60, 0xe9, 0xfe, 0x11, 0x71, 0x45, 0x49, 0x6c, 0x10, 0xcf, 0xa1, 0xb6, 0x47, 0x36,
0xa8, 0x78, 0xe8, 0x7e, 0xd8, 0x74, 0xc8, 0xc0, 0xab, 0xbf, 0xd4, 0x33, 0x1f, 0x7b, 0xe2, 0x53,
0xb6, 0xda, 0x25, 0x58, 0x4c, 0x24, 0x31, 0x46, 0x8e, 0x99, 0x50, 0x3f, 0x07, 0xd5, 0xf8, 0x85,
0xa0, 0x11, 0xb8, 0x1b, 0x82, 0x57, 0x03, 0x70, 0xd6, 0x74, 0x48, 0xf6, 0xaf, 0xa5, 0x76, 0xe9,
0x2f, 0x25, 0xb8, 0x3f, 0xe0, 0xd9, 0x22, 0xfe, 0x63, 0x09, 0xca, 0xe7, 0xd1, 0xb3, 0xba, 0x59,
0xad, 0x23, 0xaf, 0x4e, 0xfd, 0x46, 0x4d, 0x24, 0xa4, 0x0a, 0x41, 0xbe, 0x47, 0x6a, 0xc8, 0xb4,
0x91, 0xd3, 0xc0, 0x55, 0x82, 0xe8, 0xbe, 0x48, 0x5d, 0x35, 0x5a, 0xf5, 0x2d, 0x62, 0x07, 0xcd,
0x30, 0xaa, 0x52, 0x8b, 0x0f, 0xae, 0x64, 0x3f, 0x03, 0xcb, 0xfd, 0xea, 0x6d, 0x9e, 0x58, 0xa2,
0x87, 0x92, 0x61, 0x1f, 0xdb, 0x9f, 0x82, 0xf3, 0x55, 0x6c, 0x91, 0xc6, 0x06, 0xf6, 0x48, 0x28,
0x83, 0x77, 0xf5, 0xd0, 0x00, 0x63, 0xc1, 0x1f, 0x0c, 0x0c, 0x1b, 0x5a, 0x2f, 0x89, 0x4d, 0x9c,
0x87, 0x73, 0x89, 0xd0, 0xca, 0x97, 0xf4, 0x1f, 0x80, 0xa5, 0x92, 0x4d, 0x59, 0x9d, 0xb8, 0x21,
0x12, 0x0f, 0x67, 0xb1, 0x34, 0xf3, 0x41, 0x22, 0xe9, 0x0c, 0x0b, 0x3c, 0x52, 0xfe, 0xf3, 0xc9,
0x76, 0xe9, 0x4f, 0x26, 0xe1, 0x37, 0x12, 0x98, 0x2f, 0xa1, 0x72, 0xf0, 0xf3, 0x48, 0xcc, 0x3b,
0xbf, 0x00, 0xe7, 0x0f, 0x8c, 0xdd, 0x8d, 0xfc, 0x9d, 0xc0, 0x74, 0xe4, 0xb8, 0xf4, 0x29, 0xa9,
0xb2, 0x61, 0xb7, 0x2c, 0x3b, 0x6b, 0x53, 0x9b, 0x7c, 0x14, 0x9a, 0xc6, 0xa9, 0x73, 0x3f, 0x00,
0xe7, 0xcb, 0x0f, 0x36, 0xd1, 0x5a, 0x7e, 0xa3, 0x81, 0x7d, 0x8f, 0xa0, 0x4f, 0xcc, 0x2a, 0xb1,
0x3d, 0x02, 0x6f, 0x0f, 0x27, 0x59, 0xab, 0x34, 0x68, 0x45, 0xb3, 0xb0, 0xc7, 0x88, 0xab, 0x7d,
0xb2, 0xbd, 0xb1, 0xb5, 0xf3, 0x60, 0xab, 0xc0, 0x8e, 0x99, 0x2e, 0xaf, 0x16, 0x56, 0x8a, 0x08,
0x2c, 0x1c, 0xe7, 0x3d, 0x6a, 0x11, 0x61, 0x4d, 0xf7, 0x0b, 0x9e, 0xc9, 0x8e, 0x35, 0x71, 0xad,
0x86, 0x73, 0xb2, 0x94, 0x19, 0xd5, 0x7b, 0x2a, 0x33, 0xfd, 0x42, 0x7c, 0xe6, 0x38, 0xbf, 0x4f,
0x69, 0xde, 0x32, 0x2d, 0x52, 0xec, 0xa1, 0x2c, 0x0e, 0xa0, 0x34, 0x76, 0x79, 0x95, 0xb5, 0x06,
0xb7, 0xc1, 0x9d, 0xde, 0x2a, 0xcb, 0xf7, 0x88, 0xdb, 0xad, 0xb0, 0xea, 0xf8, 0x88, 0x20, 0x87,
0xb8, 0x96, 0xe9, 0x79, 0xdc, 0x75, 0x19, 0x45, 0xb8, 0x5a, 0x25, 0x9e, 0x97, 0xa8, 0xc8, 0x0a,
0xc6, 0x6b, 0xd4, 0x6d, 0x67, 0x8c, 0x8f, 0x81, 0xbc, 0xbe, 0x7a, 0x13, 0x96, 0xc0, 0xf4, 0xf6,
0xdb, 0x16, 0xc2, 0x88, 0x11, 0xec, 0x50, 0x56, 0x80, 0x2b, 0xa0, 0x90, 0x1d, 0xea, 0x85, 0xfc,
0xf1, 0xef, 0xcb, 0x60, 0x06, 0x4c, 0x96, 0xb1, 0x67, 0x56, 0x45, 0x37, 0x9e, 0x99, 0x90, 0xc0,
0x9f, 0x49, 0x89, 0x06, 0xfd, 0x2b, 0x69, 0x22, 0x93, 0x9d, 0xfc, 0x22, 0x5f, 0xda, 0xdd, 0xce,
0xdf, 0x23, 0x4d, 0x94, 0xb9, 0xab, 0x82, 0xa5, 0xe3, 0x3c, 0xb6, 0xf0, 0x73, 0x6a, 0xe7, 0xb1,
0x63, 0x86, 0x50, 0x79, 0xec, 0xb3, 0x3a, 0x0f, 0x0a, 0x70, 0x22, 0x3b, 0x4e, 0xf9, 0x40, 0xbf,
0xfb, 0x8b, 0xe0, 0xcd, 0x41, 0x94, 0xd4, 0x35, 0x9f, 0x13, 0x17, 0x7e, 0x90, 0xfb, 0x39, 0x30,
0x03, 0x46, 0x05, 0xdf, 0x99, 0xec, 0x18, 0xa3, 0x87, 0xc4, 0x06, 0xd7, 0xc1, 0x52, 0x97, 0xc4,
0x20, 0x9e, 0xdf, 0x60, 0x0f, 0x59, 0x63, 0xdb, 0x7e, 0xc0, 0x63, 0x4f, 0xcd, 0xeb, 0xd4, 0xbf,
0x3b, 0x1f, 0x81, 0x7f, 0x92, 0x3a, 0xaf, 0x07, 0x7f, 0x27, 0x4d, 0xc8, 0xea, 0xa8, 0x7e, 0x35,
0xf2, 0xb9, 0x98, 0x83, 0x6a, 0x42, 0x1f, 0xad, 0x23, 0xb4, 0xb8, 0x3c, 0x98, 0x48, 0xa8, 0x50,
0xfe, 0x15, 0x90, 0x0d, 0x1e, 0x23, 0x20, 0xbc, 0xe3, 0x62, 0x9b, 0x79, 0x88, 0x0f, 0xc2, 0xb3,
0x04, 0x4b, 0xe1, 0x13, 0x05, 0x9c, 0x0f, 0x17, 0xc5, 0x28, 0x5a, 0xdd, 0x00, 0x63, 0xb8, 0x66,
0x99, 0x36, 0x2c, 0x26, 0x58, 0xed, 0x5a, 0x82, 0x4c, 0xb8, 0x06, 0x27, 0x33, 0x3d, 0xc6, 0x6b,
0xc9, 0x23, 0xde, 0x32, 0xec, 0x53, 0xd7, 0x12, 0xde, 0x57, 0x59, 0x06, 0xd3, 0xf1, 0x83, 0x19,
0x49, 0x3f, 0x9b, 0x54, 0xae, 0x0f, 0x7c, 0x38, 0x49, 0x93, 0xba, 0xdb, 0xe0, 0xe2, 0xa7, 0xdd,
0x68, 0x19, 0x8f, 0x01, 0xc3, 0xde, 0xfd, 0xe7, 0x97, 0x01, 0x3c, 0xce, 0xc7, 0x67, 0xf8, 0x25,
0x81, 0x63, 0x59, 0xb9, 0x82, 0xdd, 0xe7, 0x2a, 0xb8, 0x98, 0x5a, 0xac, 0xe0, 0xe7, 0xf9, 0x86,
0xe9, 0x31, 0x38, 0xad, 0x4f, 0x81, 0xb1, 0xac, 0x4c, 0x6d, 0x02, 0x32, 0x48, 0x7a, 0x3c, 0xd9,
0x71, 0xc7, 0xca, 0xb8, 0x08, 0x63, 0x6b, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0xe8, 0xcf, 0x9c,
0x94, 0x33, 0x2c, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ABitOfEverythingServiceClient is the client API for ABitOfEverythingService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ABitOfEverythingServiceClient interface {
// Create a new ABitOfEverything
//
// This API creates a new ABitOfEverything
Create(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error)
CreateBody(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error)
Lookup(ctx context.Context, in *sub2.IdMessage, opts ...grpc.CallOption) (*ABitOfEverything, error)
Update(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*empty.Empty, error)
UpdateV2(ctx context.Context, in *UpdateV2Request, opts ...grpc.CallOption) (*empty.Empty, error)
Delete(ctx context.Context, in *sub2.IdMessage, opts ...grpc.CallOption) (*empty.Empty, error)
GetQuery(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*empty.Empty, error)
GetRepeatedQuery(ctx context.Context, in *ABitOfEverythingRepeated, opts ...grpc.CallOption) (*ABitOfEverythingRepeated, error)
// Echo allows posting a StringMessage value.
//
// It also exposes multiple bindings.
//
// This makes it useful when validating that the OpenAPI v2 API
// description exposes documentation correctly on all paths
// defined as additional_bindings in the proto.
Echo(ctx context.Context, in *sub.StringMessage, opts ...grpc.CallOption) (*sub.StringMessage, error)
DeepPathEcho(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error)
NoBindings(ctx context.Context, in *duration.Duration, opts ...grpc.CallOption) (*empty.Empty, error)
Timeout(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
ErrorWithDetails(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
GetMessageWithBody(ctx context.Context, in *MessageWithBody, opts ...grpc.CallOption) (*empty.Empty, error)
PostWithEmptyBody(ctx context.Context, in *Body, opts ...grpc.CallOption) (*empty.Empty, error)
CheckGetQueryParams(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error)
CheckNestedEnumGetQueryParams(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error)
CheckPostQueryParams(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error)
OverwriteResponseContentType(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*wrappers.StringValue, error)
}
type aBitOfEverythingServiceClient struct {
cc *grpc.ClientConn
}
func NewABitOfEverythingServiceClient(cc *grpc.ClientConn) ABitOfEverythingServiceClient {
return &aBitOfEverythingServiceClient{cc}
}
func (c *aBitOfEverythingServiceClient) Create(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) {
out := new(ABitOfEverything)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Create", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) CreateBody(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) {
out := new(ABitOfEverything)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CreateBody", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) Lookup(ctx context.Context, in *sub2.IdMessage, opts ...grpc.CallOption) (*ABitOfEverything, error) {
out := new(ABitOfEverything)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Lookup", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) Update(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Update", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) UpdateV2(ctx context.Context, in *UpdateV2Request, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/UpdateV2", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) Delete(ctx context.Context, in *sub2.IdMessage, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Delete", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) GetQuery(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/GetQuery", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) GetRepeatedQuery(ctx context.Context, in *ABitOfEverythingRepeated, opts ...grpc.CallOption) (*ABitOfEverythingRepeated, error) {
out := new(ABitOfEverythingRepeated)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/GetRepeatedQuery", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) Echo(ctx context.Context, in *sub.StringMessage, opts ...grpc.CallOption) (*sub.StringMessage, error) {
out := new(sub.StringMessage)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Echo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) DeepPathEcho(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) {
out := new(ABitOfEverything)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/DeepPathEcho", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) NoBindings(ctx context.Context, in *duration.Duration, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/NoBindings", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) Timeout(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Timeout", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) ErrorWithDetails(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/ErrorWithDetails", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) GetMessageWithBody(ctx context.Context, in *MessageWithBody, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/GetMessageWithBody", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) PostWithEmptyBody(ctx context.Context, in *Body, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/PostWithEmptyBody", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) CheckGetQueryParams(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) {
out := new(ABitOfEverything)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CheckGetQueryParams", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) CheckNestedEnumGetQueryParams(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) {
out := new(ABitOfEverything)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CheckNestedEnumGetQueryParams", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) CheckPostQueryParams(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) {
out := new(ABitOfEverything)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CheckPostQueryParams", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBitOfEverythingServiceClient) OverwriteResponseContentType(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*wrappers.StringValue, error) {
out := new(wrappers.StringValue)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/OverwriteResponseContentType", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ABitOfEverythingServiceServer is the server API for ABitOfEverythingService service.
type ABitOfEverythingServiceServer interface {
// Create a new ABitOfEverything
//
// This API creates a new ABitOfEverything
Create(context.Context, *ABitOfEverything) (*ABitOfEverything, error)
CreateBody(context.Context, *ABitOfEverything) (*ABitOfEverything, error)
Lookup(context.Context, *sub2.IdMessage) (*ABitOfEverything, error)
Update(context.Context, *ABitOfEverything) (*empty.Empty, error)
UpdateV2(context.Context, *UpdateV2Request) (*empty.Empty, error)
Delete(context.Context, *sub2.IdMessage) (*empty.Empty, error)
GetQuery(context.Context, *ABitOfEverything) (*empty.Empty, error)
GetRepeatedQuery(context.Context, *ABitOfEverythingRepeated) (*ABitOfEverythingRepeated, error)
// Echo allows posting a StringMessage value.
//
// It also exposes multiple bindings.
//
// This makes it useful when validating that the OpenAPI v2 API
// description exposes documentation correctly on all paths
// defined as additional_bindings in the proto.
Echo(context.Context, *sub.StringMessage) (*sub.StringMessage, error)
DeepPathEcho(context.Context, *ABitOfEverything) (*ABitOfEverything, error)
NoBindings(context.Context, *duration.Duration) (*empty.Empty, error)
Timeout(context.Context, *empty.Empty) (*empty.Empty, error)
ErrorWithDetails(context.Context, *empty.Empty) (*empty.Empty, error)
GetMessageWithBody(context.Context, *MessageWithBody) (*empty.Empty, error)
PostWithEmptyBody(context.Context, *Body) (*empty.Empty, error)
CheckGetQueryParams(context.Context, *ABitOfEverything) (*ABitOfEverything, error)
CheckNestedEnumGetQueryParams(context.Context, *ABitOfEverything) (*ABitOfEverything, error)
CheckPostQueryParams(context.Context, *ABitOfEverything) (*ABitOfEverything, error)
OverwriteResponseContentType(context.Context, *empty.Empty) (*wrappers.StringValue, error)
}
// UnimplementedABitOfEverythingServiceServer can be embedded to have forward compatible implementations.
type UnimplementedABitOfEverythingServiceServer struct {
}
func (*UnimplementedABitOfEverythingServiceServer) Create(ctx context.Context, req *ABitOfEverything) (*ABitOfEverything, error) {
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) CreateBody(ctx context.Context, req *ABitOfEverything) (*ABitOfEverything, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateBody not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) Lookup(ctx context.Context, req *sub2.IdMessage) (*ABitOfEverything, error) {
return nil, status.Errorf(codes.Unimplemented, "method Lookup not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) Update(ctx context.Context, req *ABitOfEverything) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) UpdateV2(ctx context.Context, req *UpdateV2Request) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateV2 not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) Delete(ctx context.Context, req *sub2.IdMessage) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) GetQuery(ctx context.Context, req *ABitOfEverything) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetQuery not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) GetRepeatedQuery(ctx context.Context, req *ABitOfEverythingRepeated) (*ABitOfEverythingRepeated, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRepeatedQuery not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) Echo(ctx context.Context, req *sub.StringMessage) (*sub.StringMessage, error) {
return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) DeepPathEcho(ctx context.Context, req *ABitOfEverything) (*ABitOfEverything, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeepPathEcho not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) NoBindings(ctx context.Context, req *duration.Duration) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method NoBindings not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) Timeout(ctx context.Context, req *empty.Empty) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Timeout not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) ErrorWithDetails(ctx context.Context, req *empty.Empty) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method ErrorWithDetails not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) GetMessageWithBody(ctx context.Context, req *MessageWithBody) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMessageWithBody not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) PostWithEmptyBody(ctx context.Context, req *Body) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method PostWithEmptyBody not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) CheckGetQueryParams(ctx context.Context, req *ABitOfEverything) (*ABitOfEverything, error) {
return nil, status.Errorf(codes.Unimplemented, "method CheckGetQueryParams not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) CheckNestedEnumGetQueryParams(ctx context.Context, req *ABitOfEverything) (*ABitOfEverything, error) {
return nil, status.Errorf(codes.Unimplemented, "method CheckNestedEnumGetQueryParams not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) CheckPostQueryParams(ctx context.Context, req *ABitOfEverything) (*ABitOfEverything, error) {
return nil, status.Errorf(codes.Unimplemented, "method CheckPostQueryParams not implemented")
}
func (*UnimplementedABitOfEverythingServiceServer) OverwriteResponseContentType(ctx context.Context, req *empty.Empty) (*wrappers.StringValue, error) {
return nil, status.Errorf(codes.Unimplemented, "method OverwriteResponseContentType not implemented")
}
func RegisterABitOfEverythingServiceServer(s *grpc.Server, srv ABitOfEverythingServiceServer) {
s.RegisterService(&_ABitOfEverythingService_serviceDesc, srv)
}
func _ABitOfEverythingService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ABitOfEverything)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).Create(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Create",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).Create(ctx, req.(*ABitOfEverything))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_CreateBody_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ABitOfEverything)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).CreateBody(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CreateBody",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).CreateBody(ctx, req.(*ABitOfEverything))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_Lookup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(sub2.IdMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).Lookup(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Lookup",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).Lookup(ctx, req.(*sub2.IdMessage))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ABitOfEverything)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).Update(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Update",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).Update(ctx, req.(*ABitOfEverything))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_UpdateV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateV2Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).UpdateV2(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/UpdateV2",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).UpdateV2(ctx, req.(*UpdateV2Request))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(sub2.IdMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).Delete(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Delete",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).Delete(ctx, req.(*sub2.IdMessage))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_GetQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ABitOfEverything)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).GetQuery(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/GetQuery",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).GetQuery(ctx, req.(*ABitOfEverything))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_GetRepeatedQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ABitOfEverythingRepeated)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).GetRepeatedQuery(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/GetRepeatedQuery",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).GetRepeatedQuery(ctx, req.(*ABitOfEverythingRepeated))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(sub.StringMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).Echo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Echo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).Echo(ctx, req.(*sub.StringMessage))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_DeepPathEcho_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ABitOfEverything)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).DeepPathEcho(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/DeepPathEcho",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).DeepPathEcho(ctx, req.(*ABitOfEverything))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_NoBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(duration.Duration)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).NoBindings(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/NoBindings",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).NoBindings(ctx, req.(*duration.Duration))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_Timeout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).Timeout(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Timeout",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).Timeout(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_ErrorWithDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).ErrorWithDetails(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/ErrorWithDetails",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).ErrorWithDetails(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_GetMessageWithBody_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MessageWithBody)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).GetMessageWithBody(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/GetMessageWithBody",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).GetMessageWithBody(ctx, req.(*MessageWithBody))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_PostWithEmptyBody_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Body)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).PostWithEmptyBody(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/PostWithEmptyBody",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).PostWithEmptyBody(ctx, req.(*Body))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_CheckGetQueryParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ABitOfEverything)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).CheckGetQueryParams(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CheckGetQueryParams",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).CheckGetQueryParams(ctx, req.(*ABitOfEverything))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_CheckNestedEnumGetQueryParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ABitOfEverything)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).CheckNestedEnumGetQueryParams(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CheckNestedEnumGetQueryParams",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).CheckNestedEnumGetQueryParams(ctx, req.(*ABitOfEverything))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_CheckPostQueryParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ABitOfEverything)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).CheckPostQueryParams(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CheckPostQueryParams",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).CheckPostQueryParams(ctx, req.(*ABitOfEverything))
}
return interceptor(ctx, in, info, handler)
}
func _ABitOfEverythingService_OverwriteResponseContentType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABitOfEverythingServiceServer).OverwriteResponseContentType(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/OverwriteResponseContentType",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABitOfEverythingServiceServer).OverwriteResponseContentType(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
var _ABitOfEverythingService_serviceDesc = grpc.ServiceDesc{
ServiceName: "grpc.gateway.examples.examplepb.ABitOfEverythingService",
HandlerType: (*ABitOfEverythingServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Create",
Handler: _ABitOfEverythingService_Create_Handler,
},
{
MethodName: "CreateBody",
Handler: _ABitOfEverythingService_CreateBody_Handler,
},
{
MethodName: "Lookup",
Handler: _ABitOfEverythingService_Lookup_Handler,
},
{
MethodName: "Update",
Handler: _ABitOfEverythingService_Update_Handler,
},
{
MethodName: "UpdateV2",
Handler: _ABitOfEverythingService_UpdateV2_Handler,
},
{
MethodName: "Delete",
Handler: _ABitOfEverythingService_Delete_Handler,
},
{
MethodName: "GetQuery",
Handler: _ABitOfEverythingService_GetQuery_Handler,
},
{
MethodName: "GetRepeatedQuery",
Handler: _ABitOfEverythingService_GetRepeatedQuery_Handler,
},
{
MethodName: "Echo",
Handler: _ABitOfEverythingService_Echo_Handler,
},
{
MethodName: "DeepPathEcho",
Handler: _ABitOfEverythingService_DeepPathEcho_Handler,
},
{
MethodName: "NoBindings",
Handler: _ABitOfEverythingService_NoBindings_Handler,
},
{
MethodName: "Timeout",
Handler: _ABitOfEverythingService_Timeout_Handler,
},
{
MethodName: "ErrorWithDetails",
Handler: _ABitOfEverythingService_ErrorWithDetails_Handler,
},
{
MethodName: "GetMessageWithBody",
Handler: _ABitOfEverythingService_GetMessageWithBody_Handler,
},
{
MethodName: "PostWithEmptyBody",
Handler: _ABitOfEverythingService_PostWithEmptyBody_Handler,
},
{
MethodName: "CheckGetQueryParams",
Handler: _ABitOfEverythingService_CheckGetQueryParams_Handler,
},
{
MethodName: "CheckNestedEnumGetQueryParams",
Handler: _ABitOfEverythingService_CheckNestedEnumGetQueryParams_Handler,
},
{
MethodName: "CheckPostQueryParams",
Handler: _ABitOfEverythingService_CheckPostQueryParams_Handler,
},
{
MethodName: "OverwriteResponseContentType",
Handler: _ABitOfEverythingService_OverwriteResponseContentType_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "examples/proto/examplepb/a_bit_of_everything.proto",
}
// CamelCaseServiceNameClient is the client API for CamelCaseServiceName service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CamelCaseServiceNameClient interface {
Empty(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
}
type camelCaseServiceNameClient struct {
cc *grpc.ClientConn
}
func NewCamelCaseServiceNameClient(cc *grpc.ClientConn) CamelCaseServiceNameClient {
return &camelCaseServiceNameClient{cc}
}
func (c *camelCaseServiceNameClient) Empty(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.camelCaseServiceName/Empty", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CamelCaseServiceNameServer is the server API for CamelCaseServiceName service.
type CamelCaseServiceNameServer interface {
Empty(context.Context, *empty.Empty) (*empty.Empty, error)
}
// UnimplementedCamelCaseServiceNameServer can be embedded to have forward compatible implementations.
type UnimplementedCamelCaseServiceNameServer struct {
}
func (*UnimplementedCamelCaseServiceNameServer) Empty(ctx context.Context, req *empty.Empty) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Empty not implemented")
}
func RegisterCamelCaseServiceNameServer(s *grpc.Server, srv CamelCaseServiceNameServer) {
s.RegisterService(&_CamelCaseServiceName_serviceDesc, srv)
}
func _CamelCaseServiceName_Empty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CamelCaseServiceNameServer).Empty(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.camelCaseServiceName/Empty",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CamelCaseServiceNameServer).Empty(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
var _CamelCaseServiceName_serviceDesc = grpc.ServiceDesc{
ServiceName: "grpc.gateway.examples.examplepb.camelCaseServiceName",
HandlerType: (*CamelCaseServiceNameServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Empty",
Handler: _CamelCaseServiceName_Empty_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "examples/proto/examplepb/a_bit_of_everything.proto",
}
// AnotherServiceWithNoBindingsClient is the client API for AnotherServiceWithNoBindings service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type AnotherServiceWithNoBindingsClient interface {
NoBindings(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
}
type anotherServiceWithNoBindingsClient struct {
cc *grpc.ClientConn
}
func NewAnotherServiceWithNoBindingsClient(cc *grpc.ClientConn) AnotherServiceWithNoBindingsClient {
return &anotherServiceWithNoBindingsClient{cc}
}
func (c *anotherServiceWithNoBindingsClient) NoBindings(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.AnotherServiceWithNoBindings/NoBindings", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// AnotherServiceWithNoBindingsServer is the server API for AnotherServiceWithNoBindings service.
type AnotherServiceWithNoBindingsServer interface {
NoBindings(context.Context, *empty.Empty) (*empty.Empty, error)
}
// UnimplementedAnotherServiceWithNoBindingsServer can be embedded to have forward compatible implementations.
type UnimplementedAnotherServiceWithNoBindingsServer struct {
}
func (*UnimplementedAnotherServiceWithNoBindingsServer) NoBindings(ctx context.Context, req *empty.Empty) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method NoBindings not implemented")
}
func RegisterAnotherServiceWithNoBindingsServer(s *grpc.Server, srv AnotherServiceWithNoBindingsServer) {
s.RegisterService(&_AnotherServiceWithNoBindings_serviceDesc, srv)
}
func _AnotherServiceWithNoBindings_NoBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AnotherServiceWithNoBindingsServer).NoBindings(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.AnotherServiceWithNoBindings/NoBindings",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AnotherServiceWithNoBindingsServer).NoBindings(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
var _AnotherServiceWithNoBindings_serviceDesc = grpc.ServiceDesc{
ServiceName: "grpc.gateway.examples.examplepb.AnotherServiceWithNoBindings",
HandlerType: (*AnotherServiceWithNoBindingsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "NoBindings",
Handler: _AnotherServiceWithNoBindings_NoBindings_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "examples/proto/examplepb/a_bit_of_everything.proto",
}
| 46.488946 | 288 | 0.730472 |
d2a9293f5db289b36aa3cbebc1729e788986d98b | 7,262 | php | PHP | src/Form/PageParts/InsertPagePagePartAdminType.php | hgabka/KunstmaanExtensionBundle | 96eb332efc559f08d40d7b5349f2c8e8c7ea472b | [
"MIT"
] | null | null | null | src/Form/PageParts/InsertPagePagePartAdminType.php | hgabka/KunstmaanExtensionBundle | 96eb332efc559f08d40d7b5349f2c8e8c7ea472b | [
"MIT"
] | null | null | null | src/Form/PageParts/InsertPagePagePartAdminType.php | hgabka/KunstmaanExtensionBundle | 96eb332efc559f08d40d7b5349f2c8e8c7ea472b | [
"MIT"
] | null | null | null | <?php
namespace Hgabka\KunstmaanExtensionBundle\Form\PageParts;
use Doctrine\Bundle\DoctrineBundle\Registry;
use Doctrine\ORM\EntityManager;
use Hgabka\KunstmaanExtensionBundle\Entity\InsertablePageInterface;
use Hgabka\KunstmaanExtensionBundle\Entity\PageParts\InsertPagePagePart;
use Kunstmaan\NodeBundle\Entity\AbstractPage;
use Kunstmaan\NodeBundle\Entity\Node;
use Kunstmaan\PagePartBundle\PagePartConfigurationReader\PagePartConfigurationReaderInterface;
use Symfony\Component\Form\ChoiceList\View\ChoiceView;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
* InsertPagePagePartAdminType.
*/
class InsertPagePagePartAdminType extends \Symfony\Component\Form\AbstractType
{
/**
* We want to set disable the parent page to prevent infinity insert cycle. If it is a new page part, we can get this
* data from URL.
*
* @var RequestStack
*/
protected $requestStack;
/**
* @var Registry
*/
protected $doctrine;
/**
* @var PagePartConfigurationReaderInterface
*/
protected $pagePartConfigReader;
/**
* InsertPagePagePartAdminType constructor.
*
* @param RequestStack $requestStack
* @param Registry $doctrine
* @param PagePartConfigurationReaderInterface $pagePartConfigReader
*/
public function __construct(RequestStack $requestStack, Registry $doctrine, PagePartConfigurationReaderInterface $pagePartConfigReader)
{
$this->requestStack = $requestStack;
$this->doctrine = $doctrine;
$this->pagePartConfigReader = $pagePartConfigReader;
}
/**
* Builds the form.
*
* This method is called for each type in the hierarchy starting form the
* top most type. Type extensions can further modify the form.
*
* @param FormBuilderInterface $builder The form builder
* @param array $options The options
*
* @see FormTypeExtensionInterface::buildForm()
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$locale = $this->requestStack->getMasterRequest()->getLocale();
/** @var EntityManager $em */
$em = $this->doctrine->getManager();
parent::buildForm($builder, $options);
$builder->add('node', 'Symfony\Bridge\Doctrine\Form\Type\EntityType', [
'label' => 'wt_kuma_extension.insert_page.form.label.inserted_node',
'class' => 'Kunstmaan\NodeBundle\Entity\Node',
'expanded' => false,
'multiple' => false,
'required' => true,
'property' => function (Node $choice) use ($locale, $em) {
/** @var AbstractPage $page */
$page = $choice->getNodeTranslation($locale, true)->getRef($em);
return str_repeat('-', $choice->getLevel() * 2).' '.$page->getPageTitle();
},
]);
}
/**
* We want to set disable the parent page to prevent infinity insert cycle. If it is an edit page, we can disable this
* from form's data.
*
* @param FormView $view
* @param FormInterface $form
* @param array $options
*/
public function finishView(FormView $view, FormInterface $form, array $options)
{
$data = $form->getData();
if ($data instanceof InsertPagePagePart) {
$this->validateParentPage();
$reflections = [];
$nodeFormView = $view->children['node'];
/** @var ChoiceView $choice */
foreach ($nodeFormView->vars['choices'] as $choice) {
/** @var Node $currentData */
$currentData = $choice->data;
$entityCls = $currentData->getRefEntityName();
if (!array_key_exists($entityCls, $reflections)) {
$reflections[$entityCls] = new \ReflectionClass($entityCls);
}
// only the pages with the right interface are selectable
if (!$reflections[$entityCls]->implementsInterface(InsertablePageInterface::class)) {
$choice->attr['disabled'] = 'disabled';
}
}
}
}
/**
* Returns the name of this type.
*
* @return string The name of this type
*/
public function getBlockPrefix()
{
return 'hgabka_kunstmaanextensionbundle_insertpagepageparttype';
}
/**
* Sets the default options for this type.
*
* @param OptionsResolver $resolver the resolver for the options
*/
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'data_class' => '\Hgabka\KunstmaanExtensionBundle\Entity\PageParts\InsertPagePagePart',
]);
}
/**
* Check if the page part is insertable into the current page.
*
* @throws \LogicException
*/
protected function validateParentPage()
{
$request = $this->requestStack->getMasterRequest();
// the node which the pagepart belongs to
if ($request->query->has('pageid') && $request->query->has('pageclassname')) {
$repo = $this->doctrine->getManager()->getRepository('KunstmaanNodeBundle:Node');
$node = $repo->getNodeForIdAndEntityname(
$request->query->get('pageid'),
$request->query->get('pageclassname')
);
$pageReflection = new \ReflectionClass($node->getRefEntityName());
// if the current page implements the interface, then it is forbidden to insert anything beneath
if ($pageReflection->implementsInterface(InsertablePageInterface::class)) {
$currentContext = $this->requestStack->getMasterRequest()->get('context');
$page = $pageReflection->newInstanceWithoutConstructor();
// get pagepart configurations for the current page
$pagePartConfigs = $this->pagePartConfigReader->getPagePartAdminConfigurators($page);
foreach ($pagePartConfigs as $config) {
if ($config->getContext() === $currentContext) {
foreach ($config->getPossiblePagePartTypes() as $pagePartType) {
if (InsertPagePagePart::class === $pagePartType['class']) {
throw new \LogicException(
sprintf(
'The %s page must not allow %s as possible page part, because it implements %s! You must modify the "%s" context.',
$pageReflection->getName(),
InsertPagePagePart::class,
InsertablePageInterface::class,
$currentContext
)
);
}
}
}
}
}
}
}
}
| 37.626943 | 151 | 0.590333 |
583829c19d32bffd2c4e6c97031c45f243db0563 | 1,668 | c | C | shaders/simple.c | he110world/libmeh_working | 0f324dabdf2dcfc67b18f64acb7d9629aed1c04f | [
"MIT"
] | 1 | 2015-03-05T12:47:47.000Z | 2015-03-05T12:47:47.000Z | src/shaders/simple.c | he110world/libmeh_working | 0f324dabdf2dcfc67b18f64acb7d9629aed1c04f | [
"MIT"
] | null | null | null | src/shaders/simple.c | he110world/libmeh_working | 0f324dabdf2dcfc67b18f64acb7d9629aed1c04f | [
"MIT"
] | null | null | null | varying vec3 L, E;
varying vec2 texcoord;
varying vec3 cubecoord;
attribute vec3 tangent;
uniform vec4 light;
void main(void){
gl_Position = ftransform();
texcoord=gl_MultiTexCoord0.xy;
cubecoord=gl_MultiTexCoord1.xyz;
vec3 n = normalize(gl_NormalMatrix*gl_Normal);
vec3 t = normalize(gl_NormalMatrix*tangent);
vec3 b = cross(n,t);
vec3 vert = vec3(gl_ModelViewMatrix * gl_Vertex);
vec3 tmp = vec3(gl_ModelViewMatrix*light)-vert;
// vec3 tmp = light-vert;
// vec3 tmp = light-gl_Vertex.xyz;
L.x = dot(tmp,t);
L.y = dot(tmp,b);
L.z = dot(tmp,n);
tmp = -vert;
E.x = dot(tmp,t);
E.y = dot(tmp,b);
E.z = dot(tmp,n);
}
varying vec3 L,E;
varying vec2 texcoord;
varying vec3 cubecoord;
uniform sampler2D colortex, normaltex;
uniform samplerCube stenciltex;
float appr_pow(float t)
{
return max(0.0, 8.0*t-7.0);
}
void main()
{
float invradius=1.0/100.0;
float distsqr = dot(L,L);
float att = clamp(1.0 - invradius * sqrt(distsqr), 0.0, 1.0);
vec3 newL = L*inversesqrt(distsqr);
vec3 newE = normalize(E);
vec4 color=texture2D(colortex, texcoord);
float opaque=textureCube(stenciltex, cubecoord).a;
vec3 N=normalize(texture2D(normaltex, texcoord).xyz*2.0 - 1.0);
float diffuse = max(dot(N,newL),0.0);
// float spec = pow(clamp(dot(reflect(-newL,N),newE),0.0,1.0), 16.0);
// float spec = clamp(dot(reflect(-newL,N),newE),0.0,1.0);
float spec = dot(reflect(-newL,N),newE);
// vec3 R=normalize(2*N-newL);
// float spec = appr_pow(clamp(dot(N,R),0.0,1.0));
// float spec = pow(clamp(dot(N,R),0.0,1.0),1.0);
// gl_FragColor = att*(vec4(diffuse)*color+vec4(.5*spec));
gl_FragColor = att*(vec4(diffuse+spec)*color);
gl_FragColor.a = opaque;
} | 24.895522 | 69 | 0.68765 |
f372bcd567bad77b8665b9e5a233aaa6b730c9e9 | 743 | kt | Kotlin | module_girlkotlin/src/main/java/com/guiying/module/girlkotlin/GirlskotlinFragment.kt | NIUDEYANG123/arouter_my | 36add90703cf17fcb642422d05ac5ca44dc031a2 | [
"Apache-2.0"
] | null | null | null | module_girlkotlin/src/main/java/com/guiying/module/girlkotlin/GirlskotlinFragment.kt | NIUDEYANG123/arouter_my | 36add90703cf17fcb642422d05ac5ca44dc031a2 | [
"Apache-2.0"
] | null | null | null | module_girlkotlin/src/main/java/com/guiying/module/girlkotlin/GirlskotlinFragment.kt | NIUDEYANG123/arouter_my | 36add90703cf17fcb642422d05ac5ca44dc031a2 | [
"Apache-2.0"
] | null | null | null | package com.guiying.module.girlkotlin
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.alibaba.android.arouter.facade.annotation.Route
import com.guiying.module.common.base.BaseFragment
import com.guiying.module.common.base.RouterConfig
@Route(path = RouterConfig.girlFragmentKotlin)
class GirlskotlinFragment : BaseFragment() {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
return inflater.inflate(R.layout.fragment_girls, container, false)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
}
} | 35.380952 | 116 | 0.792732 |
9d283ca5177d52c0fc25e6433eb87444a6fde4c1 | 30,029 | html | HTML | Lab5/1356M_Windows/html/widget_8h_source.html | HoverWings/HUST_RFID_Labs | 8f824fb21b47cb92f35e1d90c7faaafe97cd38dd | [
"MIT"
] | null | null | null | Lab5/1356M_Windows/html/widget_8h_source.html | HoverWings/HUST_RFID_Labs | 8f824fb21b47cb92f35e1d90c7faaafe97cd38dd | [
"MIT"
] | 1 | 2019-05-29T02:44:42.000Z | 2019-05-29T02:44:42.000Z | Lab5/1356M_Windows/html/widget_8h_source.html | HoverWings/HUST_RFID_Labs | 8f824fb21b47cb92f35e1d90c7faaafe97cd38dd | [
"MIT"
] | null | null | null | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: widget.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">My Project
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('widget_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">widget.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="widget_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef WIDGET_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define WIDGET_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <QWidget></span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <QLabel></span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <QTabWidget></span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <QHBoxLayout></span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <QVBoxLayout></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <QGridLayout></span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <QComboBox></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <QPushButton></span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <QGroupBox></span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <QSerialPortInfo></span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include <QSerialPort></span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <QMessageBox></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "<a class="code" href="borrow__return_8h.html">borrow_return.h</a>"</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="usermanage_8h.html">usermanage.h</a>"</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="booksmanage_8h.html">booksmanage.h</a>"</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="record_8h.html">record.h</a>"</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="sqlite_8h.html">sqlite.h</a>"</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="uhf__thread_8h.html">uhf_thread.h</a>"</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="widget_8h.html#a1d2dbe60aded23affb089e8fa1ea345f"> 23</a></span> <span class="preprocessor">#define COMBOBOX_COUNT 2 //下拉列表个数</span></div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="widget_8h.html#a8c7377d6ed6b5f2e3d196cda9bd66d91"> 24</a></span> <span class="preprocessor">#define CONNECT_BUTTON_COUNT 2 //控制区域按钮个数</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="widget_8h.html#a15727ed906d8c35acf9e02d4691fcb7dae00c828f4fd9e015e2276d53e9ca5524"> 26</a></span> <span class="keyword">enum</span> <a class="code" href="widget_8h.html#a15727ed906d8c35acf9e02d4691fcb7d">Connect_Button_INDEX</a>{ <a class="code" href="widget_8h.html#a15727ed906d8c35acf9e02d4691fcb7daee552f3150bddbf101d3541c3218010e">Connect</a> = 0, <a class="code" href="widget_8h.html#a15727ed906d8c35acf9e02d4691fcb7dae00c828f4fd9e015e2276d53e9ca5524">Disconnect</a>}; <span class="comment">//控制区域按钮数组下标 连接 取消连接</span></div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="widget_8h.html#a0ef8586ed514a0978fff5a20be649a40aab27270f353006b03c91367e05e44b94"> 27</a></span> <span class="keyword">enum</span> <a class="code" href="widget_8h.html#a0ef8586ed514a0978fff5a20be649a40">ComboBox_INDEX</a>{ <a class="code" href="widget_8h.html#a0ef8586ed514a0978fff5a20be649a40aab27270f353006b03c91367e05e44b94">Serial</a> = 0, <a class="code" href="widget_8h.html#a0ef8586ed514a0978fff5a20be649a40ab4ad77bb6360289ef49e9b03a26780ac">Baud</a> }; <span class="comment">//下拉列表数组下标 串口 波特率</span></div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="widget_8h.html#a8fe90f207489a0982422faf42ad59f1cae168fb880dc0042ac28438e1875e41d3"> 28</a></span> <span class="keyword">enum</span> <a class="code" href="widget_8h.html#a8fe90f207489a0982422faf42ad59f1c">Tab</a>{ <a class="code" href="widget_8h.html#a8fe90f207489a0982422faf42ad59f1ca6b7595015ca76661d536c5424b52510c">Borrow</a>, <a class="code" href="widget_8h.html#a8fe90f207489a0982422faf42ad59f1ca9fa8a5a1e10fdeafbb823a1c31fbd491">Return</a>, <a class="code" href="widget_8h.html#a8fe90f207489a0982422faf42ad59f1cae168fb880dc0042ac28438e1875e41d3">User</a>, <a class="code" href="widget_8h.html#a8fe90f207489a0982422faf42ad59f1ca59c5cb5178a7b549bd2e592108d13366">Books</a> }; <span class="comment">//标签索引 借书 还书 用户管理 书籍管理</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="class_widget.html"> 30</a></span> <span class="keyword">class </span><a class="code" href="class_widget.html">Widget</a> : <span class="keyword">public</span> QWidget</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  Q_OBJECT</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="class_widget.html#a29531c7f141e461322981b3b579d4590">Widget</a>(QWidget *parent = 0); </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordtype">void</span> <a class="code" href="class_widget.html#a73ede9961382ea942361e9845fa11aa0">Init_Connect_Operation_Box</a>(); <span class="comment">//初始化连接</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordtype">void</span> <a class="code" href="class_widget.html#afb97de9294ffdbb2c64ed1f96aea9261">getSerialName</a>(QStringList *list);<span class="comment">//获取可用串口名</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordtype">void</span> <a class="code" href="class_widget.html#a5323ca5c4124c0d187a2f1398ef48844">Set_Title</a>();<span class="comment">//设置标题</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordtype">void</span> <a class="code" href="class_widget.html#ac611086a6f74fe7bab712f23ab7126d8">Set_Tab</a>();<span class="comment">//设置标签</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordtype">void</span> <a class="code" href="class_widget.html#ac60c5a62bc3197fbc7ade8f40df70c70">setSlot</a>();<span class="comment">//设置槽函数</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="class_widget.html#aa24f66bcbaaec6d458b0980e8c8eae65">~Widget</a>();</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> signals:</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">public</span> slots:</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordtype">void</span> <a class="code" href="class_widget.html#acceb5443a97ee9023250cda33f183bef">Uhf_Connect_Button_Click</a>(); <span class="comment">//UHF连接按钮单击事件</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">void</span> <a class="code" href="class_widget.html#a0186f9125495a90a0166280d932ae831">Uhf_Disconnect_Button_Click</a>(); <span class="comment">//UHF断开按钮单击事件 </span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">void</span> <a class="code" href="class_widget.html#a0b1204d50863ef19c6ed3e39ab455d25">Get_Info</a>(QByteArray Info);<span class="comment">//获取读卡信息函数</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordtype">void</span> <a class="code" href="class_widget.html#a349b456bf6a673058ef7449e44866e90">Get_User_Info</a>();<span class="comment">//发送获取读卡命令</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordtype">void</span> <a class="code" href="class_widget.html#a97f2c2eda030b7236e02c5f5e10c8926">Set_User_Record</a>(QString UserID,QString BookID);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordtype">void</span> <a class="code" href="class_widget.html#a743bf0399f3c3972556443c2576386be">Get_User_Record</a>(QString UserID,QString BookID);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordtype">void</span> <a class="code" href="class_widget.html#a07120b41431597f8e2d0eb86098a6ba7">RefreshWidget</a>(<span class="keywordtype">int</span> index);<span class="comment">//切换标签时刷新界面</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="class_widget.html#a08095644a5511e36fc9e52228e79dc81"> 60</a></span>  QString <a class="code" href="class_widget.html#a08095644a5511e36fc9e52228e79dc81">cmd</a>;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  QPushButton *Connect_PushButton[<a class="code" href="widget_8h.html#a8c7377d6ed6b5f2e3d196cda9bd66d91">CONNECT_BUTTON_COUNT</a>]; <span class="comment">//连接区域按钮</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  QComboBox *ComboBox[<a class="code" href="widget_8h.html#a1d2dbe60aded23affb089e8fa1ea345f">COMBOBOX_COUNT</a>]; <span class="comment">//连接区域下拉列表</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  QLabel *Title;<span class="comment">//标题</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  QTabWidget *<a class="code" href="widget_8h.html#a8fe90f207489a0982422faf42ad59f1c">Tab</a>;<span class="comment">//选项卡</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  QGroupBox *ConnectGroupBox;<span class="comment">//连接区域</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="class_borrow___return.html">Borrow_Return</a> *borrow_return;<span class="comment">//借还书界面</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="class_record.html">Record</a> *record;<span class="comment">//记录界面</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="code" href="class_user_manage.html">UserManage</a> *user_manage;<span class="comment">//用户管理界面</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="class_books_manage.html">BooksManage</a> *books_manage;<span class="comment">//图书管理界面</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="class_sqlite.html">Sqlite</a> *sql;<span class="comment">//数据库相关操作类对象</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="class_u_h_f___thread.html">UHF_Thread</a> *uhf;<span class="comment">//UHF线程对象</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> };</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="preprocessor">#endif // WIDGET_H</span></div><div class="ttc" id="widget_8h_html_a8fe90f207489a0982422faf42ad59f1c"><div class="ttname"><a href="widget_8h.html#a8fe90f207489a0982422faf42ad59f1c">Tab</a></div><div class="ttdeci">Tab</div><div class="ttdef"><b>Definition:</b> <a href="widget_8h_source.html#l00028">widget.h:28</a></div></div>
<div class="ttc" id="widget_8h_html_a0ef8586ed514a0978fff5a20be649a40aab27270f353006b03c91367e05e44b94"><div class="ttname"><a href="widget_8h.html#a0ef8586ed514a0978fff5a20be649a40aab27270f353006b03c91367e05e44b94">Serial</a></div><div class="ttdef"><b>Definition:</b> <a href="widget_8h_source.html#l00027">widget.h:27</a></div></div>
<div class="ttc" id="usermanage_8h_html"><div class="ttname"><a href="usermanage_8h.html">usermanage.h</a></div></div>
<div class="ttc" id="widget_8h_html_a0ef8586ed514a0978fff5a20be649a40ab4ad77bb6360289ef49e9b03a26780ac"><div class="ttname"><a href="widget_8h.html#a0ef8586ed514a0978fff5a20be649a40ab4ad77bb6360289ef49e9b03a26780ac">Baud</a></div><div class="ttdef"><b>Definition:</b> <a href="widget_8h_source.html#l00027">widget.h:27</a></div></div>
<div class="ttc" id="widget_8h_html_a8fe90f207489a0982422faf42ad59f1ca59c5cb5178a7b549bd2e592108d13366"><div class="ttname"><a href="widget_8h.html#a8fe90f207489a0982422faf42ad59f1ca59c5cb5178a7b549bd2e592108d13366">Books</a></div><div class="ttdef"><b>Definition:</b> <a href="widget_8h_source.html#l00028">widget.h:28</a></div></div>
<div class="ttc" id="class_widget_html_ac60c5a62bc3197fbc7ade8f40df70c70"><div class="ttname"><a href="class_widget.html#ac60c5a62bc3197fbc7ade8f40df70c70">Widget::setSlot</a></div><div class="ttdeci">void setSlot()</div><div class="ttdef"><b>Definition:</b> <a href="widget_8cpp_source.html#l00124">widget.cpp:124</a></div></div>
<div class="ttc" id="widget_8h_html_a8fe90f207489a0982422faf42ad59f1ca9fa8a5a1e10fdeafbb823a1c31fbd491"><div class="ttname"><a href="widget_8h.html#a8fe90f207489a0982422faf42ad59f1ca9fa8a5a1e10fdeafbb823a1c31fbd491">Return</a></div><div class="ttdef"><b>Definition:</b> <a href="widget_8h_source.html#l00028">widget.h:28</a></div></div>
<div class="ttc" id="uhf__thread_8h_html"><div class="ttname"><a href="uhf__thread_8h.html">uhf_thread.h</a></div></div>
<div class="ttc" id="widget_8h_html_a8fe90f207489a0982422faf42ad59f1ca6b7595015ca76661d536c5424b52510c"><div class="ttname"><a href="widget_8h.html#a8fe90f207489a0982422faf42ad59f1ca6b7595015ca76661d536c5424b52510c">Borrow</a></div><div class="ttdef"><b>Definition:</b> <a href="widget_8h_source.html#l00028">widget.h:28</a></div></div>
<div class="ttc" id="class_widget_html_aa24f66bcbaaec6d458b0980e8c8eae65"><div class="ttname"><a href="class_widget.html#aa24f66bcbaaec6d458b0980e8c8eae65">Widget::~Widget</a></div><div class="ttdeci">~Widget()</div><div class="ttdef"><b>Definition:</b> <a href="widget_8cpp_source.html#l00236">widget.cpp:236</a></div></div>
<div class="ttc" id="widget_8h_html_a8c7377d6ed6b5f2e3d196cda9bd66d91"><div class="ttname"><a href="widget_8h.html#a8c7377d6ed6b5f2e3d196cda9bd66d91">CONNECT_BUTTON_COUNT</a></div><div class="ttdeci">#define CONNECT_BUTTON_COUNT</div><div class="ttdef"><b>Definition:</b> <a href="widget_8h_source.html#l00024">widget.h:24</a></div></div>
<div class="ttc" id="class_widget_html_ac611086a6f74fe7bab712f23ab7126d8"><div class="ttname"><a href="class_widget.html#ac611086a6f74fe7bab712f23ab7126d8">Widget::Set_Tab</a></div><div class="ttdeci">void Set_Tab()</div><div class="ttdef"><b>Definition:</b> <a href="widget_8cpp_source.html#l00037">widget.cpp:37</a></div></div>
<div class="ttc" id="widget_8h_html_a15727ed906d8c35acf9e02d4691fcb7dae00c828f4fd9e015e2276d53e9ca5524"><div class="ttname"><a href="widget_8h.html#a15727ed906d8c35acf9e02d4691fcb7dae00c828f4fd9e015e2276d53e9ca5524">Disconnect</a></div><div class="ttdef"><b>Definition:</b> <a href="widget_8h_source.html#l00026">widget.h:26</a></div></div>
<div class="ttc" id="class_widget_html_a0b1204d50863ef19c6ed3e39ab455d25"><div class="ttname"><a href="class_widget.html#a0b1204d50863ef19c6ed3e39ab455d25">Widget::Get_Info</a></div><div class="ttdeci">void Get_Info(QByteArray Info)</div><div class="ttdef"><b>Definition:</b> <a href="widget_8cpp_source.html#l00138">widget.cpp:138</a></div></div>
<div class="ttc" id="class_widget_html_acceb5443a97ee9023250cda33f183bef"><div class="ttname"><a href="class_widget.html#acceb5443a97ee9023250cda33f183bef">Widget::Uhf_Connect_Button_Click</a></div><div class="ttdeci">void Uhf_Connect_Button_Click()</div><div class="ttdef"><b>Definition:</b> <a href="widget_8cpp_source.html#l00195">widget.cpp:195</a></div></div>
<div class="ttc" id="widget_8h_html_a8fe90f207489a0982422faf42ad59f1cae168fb880dc0042ac28438e1875e41d3"><div class="ttname"><a href="widget_8h.html#a8fe90f207489a0982422faf42ad59f1cae168fb880dc0042ac28438e1875e41d3">User</a></div><div class="ttdef"><b>Definition:</b> <a href="widget_8h_source.html#l00028">widget.h:28</a></div></div>
<div class="ttc" id="borrow__return_8h_html"><div class="ttname"><a href="borrow__return_8h.html">borrow_return.h</a></div></div>
<div class="ttc" id="widget_8h_html_a0ef8586ed514a0978fff5a20be649a40"><div class="ttname"><a href="widget_8h.html#a0ef8586ed514a0978fff5a20be649a40">ComboBox_INDEX</a></div><div class="ttdeci">ComboBox_INDEX</div><div class="ttdef"><b>Definition:</b> <a href="widget_8h_source.html#l00027">widget.h:27</a></div></div>
<div class="ttc" id="class_books_manage_html"><div class="ttname"><a href="class_books_manage.html">BooksManage</a></div><div class="ttdef"><b>Definition:</b> <a href="booksmanage_8h_source.html#l00028">booksmanage.h:28</a></div></div>
<div class="ttc" id="class_widget_html_a73ede9961382ea942361e9845fa11aa0"><div class="ttname"><a href="class_widget.html#a73ede9961382ea942361e9845fa11aa0">Widget::Init_Connect_Operation_Box</a></div><div class="ttdeci">void Init_Connect_Operation_Box()</div><div class="ttdef"><b>Definition:</b> <a href="widget_8cpp_source.html#l00066">widget.cpp:66</a></div></div>
<div class="ttc" id="class_widget_html_afb97de9294ffdbb2c64ed1f96aea9261"><div class="ttname"><a href="class_widget.html#afb97de9294ffdbb2c64ed1f96aea9261">Widget::getSerialName</a></div><div class="ttdeci">void getSerialName(QStringList *list)</div><div class="ttdef"><b>Definition:</b> <a href="widget_8cpp_source.html#l00099">widget.cpp:99</a></div></div>
<div class="ttc" id="booksmanage_8h_html"><div class="ttname"><a href="booksmanage_8h.html">booksmanage.h</a></div></div>
<div class="ttc" id="class_widget_html_a0186f9125495a90a0166280d932ae831"><div class="ttname"><a href="class_widget.html#a0186f9125495a90a0166280d932ae831">Widget::Uhf_Disconnect_Button_Click</a></div><div class="ttdeci">void Uhf_Disconnect_Button_Click()</div><div class="ttdef"><b>Definition:</b> <a href="widget_8cpp_source.html#l00206">widget.cpp:206</a></div></div>
<div class="ttc" id="class_borrow___return_html"><div class="ttname"><a href="class_borrow___return.html">Borrow_Return</a></div><div class="ttdef"><b>Definition:</b> <a href="borrow__return_8h_source.html#l00031">borrow_return.h:31</a></div></div>
<div class="ttc" id="class_widget_html_a07120b41431597f8e2d0eb86098a6ba7"><div class="ttname"><a href="class_widget.html#a07120b41431597f8e2d0eb86098a6ba7">Widget::RefreshWidget</a></div><div class="ttdeci">void RefreshWidget(int index)</div><div class="ttdef"><b>Definition:</b> <a href="widget_8cpp_source.html#l00216">widget.cpp:216</a></div></div>
<div class="ttc" id="class_user_manage_html"><div class="ttname"><a href="class_user_manage.html">UserManage</a></div><div class="ttdef"><b>Definition:</b> <a href="usermanage_8h_source.html#l00026">usermanage.h:26</a></div></div>
<div class="ttc" id="record_8h_html"><div class="ttname"><a href="record_8h.html">record.h</a></div></div>
<div class="ttc" id="class_widget_html"><div class="ttname"><a href="class_widget.html">Widget</a></div><div class="ttdef"><b>Definition:</b> <a href="widget_8h_source.html#l00030">widget.h:30</a></div></div>
<div class="ttc" id="widget_8h_html_a15727ed906d8c35acf9e02d4691fcb7d"><div class="ttname"><a href="widget_8h.html#a15727ed906d8c35acf9e02d4691fcb7d">Connect_Button_INDEX</a></div><div class="ttdeci">Connect_Button_INDEX</div><div class="ttdef"><b>Definition:</b> <a href="widget_8h_source.html#l00026">widget.h:26</a></div></div>
<div class="ttc" id="class_widget_html_a349b456bf6a673058ef7449e44866e90"><div class="ttname"><a href="class_widget.html#a349b456bf6a673058ef7449e44866e90">Widget::Get_User_Info</a></div><div class="ttdeci">void Get_User_Info()</div><div class="ttdef"><b>Definition:</b> <a href="widget_8cpp_source.html#l00182">widget.cpp:182</a></div></div>
<div class="ttc" id="class_widget_html_a29531c7f141e461322981b3b579d4590"><div class="ttname"><a href="class_widget.html#a29531c7f141e461322981b3b579d4590">Widget::Widget</a></div><div class="ttdeci">Widget(QWidget *parent=0)</div><div class="ttdef"><b>Definition:</b> <a href="widget_8cpp_source.html#l00004">widget.cpp:4</a></div></div>
<div class="ttc" id="class_u_h_f___thread_html"><div class="ttname"><a href="class_u_h_f___thread.html">UHF_Thread</a></div><div class="ttdef"><b>Definition:</b> <a href="uhf__thread_8h_source.html#l00011">uhf_thread.h:11</a></div></div>
<div class="ttc" id="class_sqlite_html"><div class="ttname"><a href="class_sqlite.html">Sqlite</a></div><div class="ttdef"><b>Definition:</b> <a href="sqlite_8h_source.html#l00010">sqlite.h:10</a></div></div>
<div class="ttc" id="class_widget_html_a08095644a5511e36fc9e52228e79dc81"><div class="ttname"><a href="class_widget.html#a08095644a5511e36fc9e52228e79dc81">Widget::cmd</a></div><div class="ttdeci">QString cmd</div><div class="ttdef"><b>Definition:</b> <a href="widget_8h_source.html#l00060">widget.h:60</a></div></div>
<div class="ttc" id="widget_8h_html_a1d2dbe60aded23affb089e8fa1ea345f"><div class="ttname"><a href="widget_8h.html#a1d2dbe60aded23affb089e8fa1ea345f">COMBOBOX_COUNT</a></div><div class="ttdeci">#define COMBOBOX_COUNT</div><div class="ttdef"><b>Definition:</b> <a href="widget_8h_source.html#l00023">widget.h:23</a></div></div>
<div class="ttc" id="class_widget_html_a5323ca5c4124c0d187a2f1398ef48844"><div class="ttname"><a href="class_widget.html#a5323ca5c4124c0d187a2f1398ef48844">Widget::Set_Title</a></div><div class="ttdeci">void Set_Title()</div><div class="ttdef"><b>Definition:</b> <a href="widget_8cpp_source.html#l00051">widget.cpp:51</a></div></div>
<div class="ttc" id="class_widget_html_a97f2c2eda030b7236e02c5f5e10c8926"><div class="ttname"><a href="class_widget.html#a97f2c2eda030b7236e02c5f5e10c8926">Widget::Set_User_Record</a></div><div class="ttdeci">void Set_User_Record(QString UserID, QString BookID)</div><div class="ttdef"><b>Definition:</b> <a href="widget_8cpp_source.html#l00244">widget.cpp:244</a></div></div>
<div class="ttc" id="class_record_html"><div class="ttname"><a href="class_record.html">Record</a></div><div class="ttdef"><b>Definition:</b> <a href="record_8h_source.html#l00028">record.h:28</a></div></div>
<div class="ttc" id="widget_8h_html_a15727ed906d8c35acf9e02d4691fcb7daee552f3150bddbf101d3541c3218010e"><div class="ttname"><a href="widget_8h.html#a15727ed906d8c35acf9e02d4691fcb7daee552f3150bddbf101d3541c3218010e">Connect</a></div><div class="ttdef"><b>Definition:</b> <a href="widget_8h_source.html#l00026">widget.h:26</a></div></div>
<div class="ttc" id="class_widget_html_a743bf0399f3c3972556443c2576386be"><div class="ttname"><a href="class_widget.html#a743bf0399f3c3972556443c2576386be">Widget::Get_User_Record</a></div><div class="ttdeci">void Get_User_Record(QString UserID, QString BookID)</div><div class="ttdef"><b>Definition:</b> <a href="widget_8cpp_source.html#l00252">widget.cpp:252</a></div></div>
<div class="ttc" id="sqlite_8h_html"><div class="ttname"><a href="sqlite_8h.html">sqlite.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="widget_8h.html">widget.h</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
</ul>
</div>
</body>
</html>
| 205.678082 | 14,493 | 0.724067 |
e723f4d5cf2200b470bfcf636bc1085e063958ba | 2,594 | js | JavaScript | index.js | jimmywarting/highlight-saas | 93c18a3da8c0b0e280944c46a4e20928ad800e6e | [
"MIT"
] | 1 | 2020-02-02T04:16:12.000Z | 2020-02-02T04:16:12.000Z | index.js | jimmywarting/highlight-saas | 93c18a3da8c0b0e280944c46a4e20928ad800e6e | [
"MIT"
] | null | null | null | index.js | jimmywarting/highlight-saas | 93c18a3da8c0b0e280944c46a4e20928ad800e6e | [
"MIT"
] | null | null | null | const { highlight, highlightAuto, getLanguage } = require('highlight.js')
const compression = require('compression')
const express = require('express')
const inlineCss = require('inline-css/lib/inline-css')
const cors = require('cors')
const bodyParser = require('express/node_modules/body-parser')
const config = require('./config.json')
const app = express()
const multer = require('multer')
const upload = multer({})
const urlencodedParser = bodyParser.urlencoded({extended: false})
const jsonParser = bodyParser.json()
const textParser = bodyParser.text()
app.disable('x-powered-by')
app.use(compression())
app.use(cors())
const defaultStyle = config.styles['atom-one-dark']
function getDefault(opts) {
let language = (opts.language || 'auto').toLowerCase()
let style = (opts.style || '').toLowerCase()
let content = opts.content || `I'm a teapot`
if (!getLanguage(language)) language = 'auto'
if (!style || !Object.keys(config.styles).includes(style)) style = 'atom-one-dark'
style = config.styles[style]
content = language === 'auto'
? highlightAuto(content).value
: highlight(language, content).value
return { content, style }
}
app.get('/favicon.ico', (_, res) => res.sendStatus(404))
app.all('*', jsonParser, urlencodedParser, textParser, upload.single(), async (req, res) => {
const myOrigin = req.protocol + '://' + req.get('host')
const url = new URL(myOrigin + req.originalUrl)
if (url.pathname === '/' && url.search === '' && req.method === 'GET')
// return res.send(require('fs').readFileSync('./index.html', { encoding: 'utf8' }).toString('ascii'))
return res.send(config.index)
const body = typeof req.body === 'string' ? {content: req.body} : req.body || {}
body.content = body.content || url.searchParams.get('content')
body.style = body.style || url.searchParams.get('style')
body.language = body.language || url.searchParams.get('language')
const def = getDefault(body)
const origin = req.get('origin') || ''
const accept = req.get('accept') || ''
const referrer = req.get('Referrer') || ''
style = def.style
content = def.content
if (referrer && accept.includes('image') && !referrer.includes(myOrigin)) {
content = `<body><pre class="hljs"><code>${content}</code></pre></body>`
content += '<script></script>'
content = inlineCss(content, style + config.extraCss, config.inlineOpts)
} else {
content = `<pre class="hljs"><code>${content}</code></pre>`
content = inlineCss(content, style, config.inlineOpts)
}
res.send(content)
})
app.listen(process.env.PORT || 3000)
| 33.688312 | 106 | 0.672321 |
e048ddce013ecd6c1ae6bb5b21e17fb1731c222d | 150 | lua | Lua | util.lua | Edwolt/BoucingBall | 56a8518ddc7f36a66f5246a1f8a098da18162d34 | [
"MIT"
] | null | null | null | util.lua | Edwolt/BoucingBall | 56a8518ddc7f36a66f5246a1f8a098da18162d34 | [
"MIT"
] | null | null | null | util.lua | Edwolt/BoucingBall | 56a8518ddc7f36a66f5246a1f8a098da18162d34 | [
"MIT"
] | null | null | null | local UTIL = {}
UTIL.height = 1000
UTIL.tile = love.graphics.getHeight() / UTIL.height
UTIL.width = love.graphics.getWidth() / UTIL.tile
return UTIL
| 21.428571 | 51 | 0.726667 |
13d68ec8ac24f9a5594f6c886c38fb45acee5e61 | 652 | sql | SQL | backend/de.metas.purchasecandidate.base/src/main/sql/postgresql/system/5497182_sys_gh4311_C_PurchaseCandidate_PurchaseDateOrdered_mandatory.sql | dram/metasfresh | a1b881a5b7df8b108d4c4ac03082b72c323873eb | [
"RSA-MD"
] | 1,144 | 2016-02-14T10:29:35.000Z | 2022-03-30T09:50:41.000Z | backend/de.metas.purchasecandidate.base/src/main/sql/postgresql/system/5497182_sys_gh4311_C_PurchaseCandidate_PurchaseDateOrdered_mandatory.sql | vestigegroup/metasfresh | 4b2d48c091fb2a73e6f186260a06c715f5e2fe96 | [
"RSA-MD"
] | 8,283 | 2016-04-28T17:41:34.000Z | 2022-03-30T13:30:12.000Z | backend/de.metas.purchasecandidate.base/src/main/sql/postgresql/system/5497182_sys_gh4311_C_PurchaseCandidate_PurchaseDateOrdered_mandatory.sql | vestigegroup/metasfresh | 4b2d48c091fb2a73e6f186260a06c715f5e2fe96 | [
"RSA-MD"
] | 441 | 2016-04-29T08:06:07.000Z | 2022-03-28T06:09:56.000Z | -- 2018-07-05T19:55:11.261
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2018-07-05 19:55:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560663
;
-- 2018-07-05T19:55:13.116
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO t_alter_column values('c_purchasecandidate','PurchaseDateOrdered','TIMESTAMP WITHOUT TIME ZONE',null,null)
;
-- 2018-07-05T19:55:13.125
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO t_alter_column values('c_purchasecandidate','PurchaseDateOrdered',null,'NOT NULL',null)
;
| 40.75 | 144 | 0.791411 |
5f5df4c16e3cbba91cabd10a1877c24964949db2 | 2,915 | ts | TypeScript | src/tests/utilities.test.ts | jmgrady/TheCombine | 4645d891f4825458553b94119a7b5731bed715d3 | [
"MIT"
] | null | null | null | src/tests/utilities.test.ts | jmgrady/TheCombine | 4645d891f4825458553b94119a7b5731bed715d3 | [
"MIT"
] | null | null | null | src/tests/utilities.test.ts | jmgrady/TheCombine | 4645d891f4825458553b94119a7b5731bed715d3 | [
"MIT"
] | null | null | null | import * as utilities from "utilities";
describe("utilities", () => {
describe("quicksort", () => {
const compareItem = (input: number) => {
return input;
};
const numbers: number[] = [];
for (let i = 0; i < 25; i++) numbers.push(Math.random());
it("orders properly", () => {
const sortedNums = utilities.quicksort<number>(numbers, compareItem);
for (let i = 1; i < sortedNums.length; i++)
expect(sortedNums[i - 1]).toBeLessThanOrEqual(sortedNums[i]);
});
});
describe("getNowDateTimeString", () => {
// This tests will fail intermittently if there is a bug with the 0-prepend
it("returns string of correct length", () => {
const expectedLength = "YYYY-MM-DD_hh-mm-ss".length;
expect(utilities.getNowDateTimeString().length).toBe(expectedLength);
});
});
describe("LevenshteinDistance", () => {
let finder: utilities.LevenshteinDistance;
const testParams: utilities.LevenshteinDistParams = {
delCost: 3,
insCost: 4,
subCost: 5,
};
beforeEach(() => {
finder = new utilities.LevenshteinDistance(testParams);
});
describe("getDistance", () => {
const baseWord = "testing";
test("with empty word", () => {
expect(finder.getDistance("", "")).toEqual(0);
expect(finder.getDistance(baseWord, "")).toEqual(
baseWord.length * testParams.delCost
);
expect(finder.getDistance("", baseWord)).toEqual(
baseWord.length * testParams.insCost
);
});
const similarCases: [string, string, number][] = [
["same word", baseWord, 0],
["1 deletion", "testin", testParams.delCost],
["1 insertion", "testings", testParams.insCost],
["1 substitution", "tasting", testParams.subCost],
["2 substitutions", "tossing", 2 * testParams.subCost],
[
"1 insertion, 1 deletion",
"teasing",
testParams.insCost + testParams.delCost,
],
[
"1 insertion, 1 substitution",
"toasting",
testParams.insCost + testParams.subCost,
],
];
test.each(similarCases)(
"with similar word: %p",
(_description: string, secondWord: string, expectedDist: number) => {
expect(finder.getDistance(baseWord, secondWord)).toEqual(
expectedDist
);
}
);
test("with much different words", () => {
const diffWord = "QQQ";
expect(finder.getDistance(diffWord, baseWord)).toEqual(
diffWord.length * testParams.subCost +
(baseWord.length - diffWord.length) * testParams.insCost
);
expect(finder.getDistance(baseWord, diffWord)).toEqual(
diffWord.length * testParams.subCost +
(baseWord.length - diffWord.length) * testParams.delCost
);
});
});
});
});
| 31.684783 | 79 | 0.578045 |
dd6b2f1c9ef38924fb84e1be9e657c27b83a70eb | 762 | php | PHP | app/Http/Controllers/Api/V1/ApplyController.php | jzfan/hq123 | f5ad67ab51375634b98c651df0f834bd2c73d6ad | [
"MIT"
] | null | null | null | app/Http/Controllers/Api/V1/ApplyController.php | jzfan/hq123 | f5ad67ab51375634b98c651df0f834bd2c73d6ad | [
"MIT"
] | null | null | null | app/Http/Controllers/Api/V1/ApplyController.php | jzfan/hq123 | f5ad67ab51375634b98c651df0f834bd2c73d6ad | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers\Api\V1;
use Wx\Loan\Repo\CarRepo;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class ApplyController extends Controller
{
protected $car;
public function __construct(CarRepo $car)
{
$this->car = $car;
}
/**
* @api {get} /api/status 取状态
* @apiVersion 1.0.0
* @apiName get
* @apiGroup Apply
*/
public function status()
{
$user = \Auth::guard('api')->user();
return response()->json(['data'=>$user->cars(), 'code'=>200]);
}
/**
* @api {post} /api/cars 提交汽车表单
* @apiVersion 1.0.0
* @apiName postCar
* @apiGroup Apply
*/
public function byCar(Request $request)
{
$input = $request->input();
return $this->car->apply($input);
}
}
| 18.142857 | 67 | 0.614173 |
fb8afe215a1eb989e199eb6a9278ba93c8a5fae5 | 1,164 | h | C | client/colorwheelwidget.h | vorushin/moodbox_aka_risovaska | 5943452e4c7fc9e3c828f62f565cd2da9a040e92 | [
"MIT"
] | 1 | 2015-08-23T11:03:58.000Z | 2015-08-23T11:03:58.000Z | client/colorwheelwidget.h | vorushin/moodbox_aka_risovaska | 5943452e4c7fc9e3c828f62f565cd2da9a040e92 | [
"MIT"
] | null | null | null | client/colorwheelwidget.h | vorushin/moodbox_aka_risovaska | 5943452e4c7fc9e3c828f62f565cd2da9a040e92 | [
"MIT"
] | 3 | 2016-12-05T02:43:52.000Z | 2021-06-30T21:35:46.000Z | #ifndef COLORWHEELWIDGET_H
#define COLORWHEELWIDGET_H
#include "colorselectioncontrol.h"
namespace MoodBox
{
#define COLOR_WHEEL_MARK_INNER_RADIUS 4
#define COLOR_WHEEL_MARK_OUTER_RADIUS 5
#define COLOR_WHEEL_WIDGET_MASK (":/MoodBox/Resources/color_wheel_mask.png")
struct HSV;
// Color wheel control
class ColorWheelWidget : public ColorSelectionControl
{
Q_OBJECT
public:
ColorWheelWidget(QWidget *parent = 0);
ColorWheelWidget(const QColor &color, QWidget *parent = 0);
virtual ~ColorWheelWidget();
public slots:
virtual void setColor(const QColor &color);
protected:
virtual void paintEvent(QPaintEvent *event);
virtual void resizeEvent(QResizeEvent *event);
virtual QColor getPixelColor(qreal radialPos, qreal angle) const;
virtual QColor getPixelColor(const QPoint &point) const;
virtual QPointF getColorPosition(const QColor &color) const;
virtual void resetImage();
virtual void createImage();
private:
qreal radius;
HSV *buffer;
void createBuffer();
void resetBuffer();
void updateBufferValue();
static QImage getColorWheelMask();
};
}
#endif // COLORWHEELWIDGET_H
| 20.785714 | 77 | 0.750859 |
c2bc66ef855e425d0056f87b8e7c157b5169f2ad | 196 | lua | Lua | ftplugin/TelescopePrompt.lua | zklinger/telescope.nvim | d686fb27998fc130f7b851fb6c540f3f1fe806e8 | [
"MIT"
] | 4,925 | 2020-11-13T15:48:26.000Z | 2022-03-31T22:09:39.000Z | config/nvim/pack/benferse/opt/telescope.nvim/ftplugin/TelescopePrompt.lua | benferse/dotfiles | da500616ad755f391bde6b99087b0d925b728aa4 | [
"MIT"
] | 1,424 | 2020-11-13T15:35:30.000Z | 2022-03-31T16:42:39.000Z | config/nvim/pack/benferse/opt/telescope.nvim/ftplugin/TelescopePrompt.lua | benferse/dotfiles | da500616ad755f391bde6b99087b0d925b728aa4 | [
"MIT"
] | 478 | 2020-11-15T10:15:36.000Z | 2022-03-26T06:11:02.000Z | -- Don't wrap textwidth things
vim.opt_local.formatoptions:remove "t"
vim.opt_local.formatoptions:remove "c"
-- There's also no reason to enable textwidth here anyway
vim.opt_local.textwidth = 0
| 28 | 57 | 0.785714 |
162915ce357306568c764dbeecb70a142f3864a4 | 20 | tsx | TypeScript | tests/cases/childrenProps6.tsx | amuzalevskiy/ts-transform-inferno | 4c91ac2865ff2217d4ef2879d4d5e1c932637f2c | [
"MIT"
] | 62 | 2017-08-26T22:58:19.000Z | 2022-03-17T08:29:12.000Z | tests/cases/childrenProps6.tsx | amuzalevskiy/ts-transform-inferno | 4c91ac2865ff2217d4ef2879d4d5e1c932637f2c | [
"MIT"
] | 20 | 2017-10-11T18:08:24.000Z | 2022-03-09T08:34:03.000Z | tests/cases/childrenProps6.tsx | amuzalevskiy/ts-transform-inferno | 4c91ac2865ff2217d4ef2879d4d5e1c932637f2c | [
"MIT"
] | 6 | 2018-07-26T10:11:25.000Z | 2020-03-02T08:26:33.000Z | <Com children="ab"/> | 20 | 20 | 0.65 |
3b560b2bd64112be016206fa47ad590329156e69 | 1,091 | h | C | PrivateFrameworks/AssetsLibraryServices/PLAssetsdCloudClient.h | phatblat/macOSPrivateFrameworks | 9047371eb80f925642c8a7c4f1e00095aec66044 | [
"MIT"
] | 17 | 2018-11-13T04:02:58.000Z | 2022-01-20T09:27:13.000Z | PrivateFrameworks/AssetsLibraryServices/PLAssetsdCloudClient.h | phatblat/macOSPrivateFrameworks | 9047371eb80f925642c8a7c4f1e00095aec66044 | [
"MIT"
] | 3 | 2018-04-06T02:02:27.000Z | 2018-10-02T01:12:10.000Z | PrivateFrameworks/AssetsLibraryServices/PLAssetsdCloudClient.h | phatblat/macOSPrivateFrameworks | 9047371eb80f925642c8a7c4f1e00095aec66044 | [
"MIT"
] | 1 | 2018-09-28T13:54:23.000Z | 2018-09-28T13:54:23.000Z | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import <AssetsLibraryServices/PLAssetsdBaseClient.h>
@interface PLAssetsdCloudClient : PLAssetsdBaseClient
{
}
- (void)computeFingerPrintsOfAsset:(id)arg1 completionHandler:(CDUnknownBlockType)arg2;
- (void)cancelCPLDownloadImageDataWithVirtualTaskIdentifiers:(id)arg1 completionHandler:(CDUnknownBlockType)arg2;
- (void)requestCPLDownloadImageDataForAssets:(id)arg1 format:(unsigned long long)arg2 doneTokens:(id)arg3 completionHandler:(CDUnknownBlockType)arg4;
- (void)downloadCloudPhotoLibraryAsset:(id)arg1 resourceType:(unsigned long long)arg2 highPriority:(BOOL)arg3 trackCPLDownload:(BOOL)arg4 downloadIsTransient:(BOOL)arg5 proposedTaskIdentifier:(id)arg6 completionHandler:(CDUnknownBlockType)arg7;
- (void)cancelCPLDownloadWithContext:(id)arg1 completionHandler:(CDUnknownBlockType)arg2;
- (void)requestVideoPlaybackURLForCloudSharedAsset:(id)arg1 mediaAssetType:(unsigned long long)arg2 completionHandler:(CDUnknownBlockType)arg3;
@end
| 49.590909 | 244 | 0.823098 |
b2d6aec912e54487b7271a6bbbbeac36be760ac4 | 552 | py | Python | tapis_cli/commands/taccapis/v2/apps/mixins.py | bpachev/tapis-cli | c3128fb5b63ef74e06b737bbd95ef28fb24f0d32 | [
"BSD-3-Clause"
] | 8 | 2020-10-18T22:48:23.000Z | 2022-01-10T09:16:14.000Z | tapis_cli/commands/taccapis/v2/apps/mixins.py | bpachev/tapis-cli | c3128fb5b63ef74e06b737bbd95ef28fb24f0d32 | [
"BSD-3-Clause"
] | 238 | 2019-09-04T14:37:54.000Z | 2020-04-15T16:24:24.000Z | tapis_cli/commands/taccapis/v2/apps/mixins.py | bpachev/tapis-cli | c3128fb5b63ef74e06b737bbd95ef28fb24f0d32 | [
"BSD-3-Clause"
] | 5 | 2019-09-20T04:23:49.000Z | 2020-01-16T17:45:14.000Z | from tapis_cli.clients.services.mixins import ServiceIdentifier
__all__ = ['AppIdentifier']
class AppIdentifier(ServiceIdentifier):
service_id_type = 'App'
dest = 'app_id'
def validate_identifier(self, identifier, permissive=False):
try:
self.tapis_client.apps.get(appId=identifier)
return True
except Exception:
if permissive:
return False
else:
raise ValueError(
'No application exists with ID {}'.format(identifier))
| 27.6 | 74 | 0.615942 |
dfd7c4d2364f15422ade24e6579947af63f87ec7 | 1,585 | ts | TypeScript | backend/src/connect.database.ts | ExiledNarwal28/gif-3112-project | 806c697705c13d813a85dd643bd733dbd39af96d | [
"MIT"
] | 1 | 2021-11-12T06:58:38.000Z | 2021-11-12T06:58:38.000Z | backend/src/connect.database.ts | ExiledNarwal28/gif-3112-project | 806c697705c13d813a85dd643bd733dbd39af96d | [
"MIT"
] | null | null | null | backend/src/connect.database.ts | ExiledNarwal28/gif-3112-project | 806c697705c13d813a85dd643bd733dbd39af96d | [
"MIT"
] | null | null | null | import mongoose from 'mongoose';
import { logger } from './middlewares/logger';
const mongoURL = process.env.MONGO_URL || '';
const mongoOptions = {
useFindAndModify: false,
useNewUrlParser: true,
useUnifiedTopology: true,
user: process.env.MONGO_USERNAME,
pass: process.env.MONGO_PASSWORD,
};
const db = mongoose.connection;
db.on('connecting', () => logger.info('Connecting to MongoDB...'));
db.on('error', (error) =>
logger.error(`Error in MongoDB connection : ${error}`),
);
db.on('connected', () => logger.info('MongoDB connected!'));
db.once('open', async () => {
logger.info('MongoDB connection opened!');
});
db.on('reconnected', () => logger.info('MongoDB reconnected!'));
db.on('disconnected', () => {
logger.info('MongoDB disconnected!');
retryConnectionAfterTimeout();
});
const MAX_ATTEMPTS = 10;
const FACTOR = 1.5;
const DEFAULT_RETRY_TIMEOUT = 5000;
const DEFAULT_ATTEMPTS = 0;
let retryTimeout = DEFAULT_RETRY_TIMEOUT;
let attempts = DEFAULT_ATTEMPTS;
const retryConnectionAfterTimeout = () => {
if (attempts < MAX_ATTEMPTS) {
logger.info(`Retrying connection in ${retryTimeout / 1000} seconds`);
setTimeout(connectDatabase, retryTimeout);
retryTimeout *= FACTOR;
attempts++;
} else {
logger.info(`Max connection attempts (${MAX_ATTEMPTS}) reached!`);
}
};
export function connectDatabase() {
mongoose
.connect(mongoURL, mongoOptions)
.then(() => {
retryTimeout = DEFAULT_RETRY_TIMEOUT;
attempts = DEFAULT_ATTEMPTS;
})
.catch(() => {
retryConnectionAfterTimeout();
});
}
| 24.384615 | 73 | 0.680126 |
5c7f9a7cda78f06c42d0d378f4510e1f9c886846 | 358 | h | C | RKOTopAlertManager/RKOTopAlert/RKOTopAlert/AppDelegate.h | rakuyoMo/RKOControlsManager | ea5ef2d468b5dc89dcfcef5de45e811a5c1b109f | [
"MIT"
] | 5 | 2017-09-09T10:00:19.000Z | 2019-08-09T10:37:48.000Z | RKOTopAlertManager/RKOTopAlert/RKOTopAlert/AppDelegate.h | rakuyoMo/RKOControlsManager | ea5ef2d468b5dc89dcfcef5de45e811a5c1b109f | [
"MIT"
] | null | null | null | RKOTopAlertManager/RKOTopAlert/RKOTopAlert/AppDelegate.h | rakuyoMo/RKOControlsManager | ea5ef2d468b5dc89dcfcef5de45e811a5c1b109f | [
"MIT"
] | 3 | 2017-09-09T10:00:19.000Z | 2020-01-15T10:21:53.000Z | //
// AppDelegate.h
// RKOTopAlert
//
// Created by Rakuyo on 2017/9/8.
// Copyright © 2017年 Rakuyo. All rights reserved.
//
#import <UIKit/UIKit.h>
@class RKOTopAlert;
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
// 顶部的提示视图
@property (nonatomic, strong) RKOTopAlert *topAlert;
@end
| 16.272727 | 60 | 0.717877 |
9c7d2939ac8c9814cd1783e9210fb6dcd923bdd3 | 1,185 | js | JavaScript | client/build/6.b5f98ef703a3400c91d7.chunk.js | sosaucily/FastRailsRedux | 5639d4c8aca60521075621355bc6503660d1f08a | [
"MIT"
] | 11 | 2017-05-04T07:00:00.000Z | 2020-10-08T14:59:22.000Z | client/build/6.b5f98ef703a3400c91d7.chunk.js | sosaucily/FastRailsRedux | 5639d4c8aca60521075621355bc6503660d1f08a | [
"MIT"
] | null | null | null | client/build/6.b5f98ef703a3400c91d7.chunk.js | sosaucily/FastRailsRedux | 5639d4c8aca60521075621355bc6503660d1f08a | [
"MIT"
] | 3 | 2017-05-31T04:55:43.000Z | 2018-08-29T15:20:03.000Z | webpackJsonp([6],{"./app/containers/Account/constants.js":function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return s});var c="R3-GO/AccountInfo/",a=c+"FETCH_ACCOUNT_REQUEST",r=c+"FETCH_ACCOUNT_SUCCESS",s=c+"FETCH_ACCOUNT_FAILURE"},"./app/containers/Account/sagas.js":function(e,t,n){"use strict";function c(){var e,t;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=3,n.i(a.take)(o.a);case 3:return c.prev=3,c.next=6,n.i(a.select)(s.c);case 6:return e=c.sent,c.next=9,n.i(a.call)(r.a.fetchAccountInfo,e);case 9:return t=c.sent,c.next=12,n.i(a.put)({type:o.b,payload:t});case 12:c.next=19;break;case 14:return c.prev=14,c.t0=c.catch(3),console.log(c.t0),c.next=19,n.i(a.put)({type:o.c,payload:c.t0});case 19:c.next=0;break;case 21:case"end":return c.stop()}},u[0],this,[[3,14]])}Object.defineProperty(t,"__esModule",{value:!0});var a=n("./node_modules/redux-saga/effects.js"),r=(n.n(a),n("./app/utils/api.js")),s=n("./app/containers/Session/selectors.js"),o=n("./app/containers/Account/constants.js");t.fetchAccountInfo=c;var u=[c].map(regeneratorRuntime.mark);t.default=[c]}}); | 1,185 | 1,185 | 0.701266 |
c36bc166ac8c5e32810efdfb68416109d184994a | 1,233 | go | Go | st600/fuzz.go | larixsource/stgps | 03af5b868f238dd04a10c161038759036daee6ac | [
"MIT"
] | 7 | 2017-05-17T20:12:49.000Z | 2021-07-12T21:41:48.000Z | st600/fuzz.go | larixsource/stgps | 03af5b868f238dd04a10c161038759036daee6ac | [
"MIT"
] | null | null | null | st600/fuzz.go | larixsource/stgps | 03af5b868f238dd04a10c161038759036daee6ac | [
"MIT"
] | 3 | 2016-11-29T23:30:08.000Z | 2018-12-04T13:19:58.000Z | package st600
func Fuzz(data []byte) int {
p := ParseBytes(data, ParserOpts{})
var results []int
for p.Next() {
frame := p.Msg()
if frame == nil {
panic("nil frame")
}
if len(frame.Frame) == 0 {
panic("empty raw frame")
}
if frame.ParsingError != nil {
results = append(results, 0)
continue
}
switch frame.Type {
case STTReport:
if frame.STT == nil {
panic("nil STT")
}
case EMGReport:
if frame.EMG == nil {
panic("nil EMG")
}
case EVTReport:
if frame.EVT == nil {
panic("nil EVT")
}
case ALTReport:
if frame.ALT == nil {
panic("nil ALT")
}
case ALVReport:
if frame.ALV == nil {
panic("nil ALV")
}
case UEXReport:
if frame.UEX == nil {
panic("nil UEX")
}
case UnknownMsg:
default:
panic("invalid Type")
}
// good frame
results = append(results, 1)
}
// count results (zeroes and ones)
zeroCount := 0
oneCount := 0
for _, r := range results {
switch r {
case 0:
zeroCount++
case 1:
oneCount++
default:
panic("fuzz programming error")
}
}
switch {
case oneCount == 0:
return 0
case zeroCount == 0 || zeroCount == 1: // at most one error permitted
return 1
default:
return 0
}
}
| 16.223684 | 70 | 0.583131 |
bcaf7397bd8ba3a924edf47abe64dbfccb4f89ba | 37 | js | JavaScript | src/components/NavItems/index.js | Dalamov/reactjs-todo-list | 8eb50ee619f5d6bffdc1e303fdfa3d8b99c62501 | [
"MIT"
] | 1 | 2021-09-26T15:08:39.000Z | 2021-09-26T15:08:39.000Z | src/components/NavItems/index.js | Dalamov/reactjs-todo-list | 8eb50ee619f5d6bffdc1e303fdfa3d8b99c62501 | [
"MIT"
] | null | null | null | src/components/NavItems/index.js | Dalamov/reactjs-todo-list | 8eb50ee619f5d6bffdc1e303fdfa3d8b99c62501 | [
"MIT"
] | null | null | null | export { default } from "./NavItems"; | 37 | 37 | 0.675676 |
7cb3217f8341ab4bf8c9dad9e0e0686b269259c3 | 5,017 | kt | Kotlin | src/main/kotlin/io/zhudy/duic/web/WebReactiveExtensions.kt | kevin70/duic | 0223e2f98bb0cdc91db8a54e42c385751a25ca4b | [
"Apache-2.0"
] | 300 | 2017-12-05T10:34:31.000Z | 2022-02-18T03:35:01.000Z | src/main/kotlin/io/zhudy/duic/web/WebReactiveExtensions.kt | kevin70/duic | 0223e2f98bb0cdc91db8a54e42c385751a25ca4b | [
"Apache-2.0"
] | 26 | 2018-02-07T06:51:40.000Z | 2020-07-16T23:35:02.000Z | src/main/kotlin/io/zhudy/duic/web/WebReactiveExtensions.kt | kevin70/duic | 0223e2f98bb0cdc91db8a54e42c385751a25ca4b | [
"Apache-2.0"
] | 64 | 2018-02-02T01:05:58.000Z | 2021-03-03T10:23:14.000Z | /**
* Copyright 2017-2019 the original author or authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.zhudy.duic.web
import org.springframework.web.reactive.function.BodyInserters
import org.springframework.web.reactive.function.server.ServerRequest
import org.springframework.web.reactive.function.server.ServerResponse
import reactor.core.publisher.Mono
/**
* @author Kevin Zou (kevinz@weghst.com)
*/
/**
* @author Kevin Zou (kevinz@weghst.com)
*/
private val path = "path"
private val query = "query"
/**
* 返回 `path` 参数.
*
* `boolean` 取值设定.
*
* - true/false
* - not 0/0
* - on/off
*
* @param name 参数名称
*/
fun ServerRequest.pathBoolean(name: String) = requestBooleanParam(this, path, name)
/**
* 返回 `path` 参数.
*
* @param name 参数名称
*/
fun ServerRequest.pathInt(name: String) = requestIntParam(this, path, name)
/**
* 返回 `path` 参数.
*
* @param name 参数名称
*/
fun ServerRequest.pathLong(name: String) = requestLongParam(this, path, name)
/**
* 返回 `path` 参数.
*
* @param name 参数名称
*/
fun ServerRequest.pathDouble(name: String) = requestDoubleParam(this, path, name)
/**
* 返回 `path` 参数.
*
* @param name 参数名称
*/
fun ServerRequest.pathString(name: String) = requestStringParam(this, path, name)
/**
* 返回 `path` 参数并去除前后空格.
*
* @param name 参数名称
*/
fun ServerRequest.pathTrimString(name: String) = requestTrimStringParam(this, path, name)
/**
* 返回 `query` 参数.
*
* `boolean` 取值设定.
*
* - true/false
* - not 0/0
* - on/off
*
* @param name 参数名称
*/
fun ServerRequest.queryBoolean(name: String) = requestBooleanParam(this, query, name)
/**
* 返回 `query` 参数.
*
* @param name 参数名称
*/
fun ServerRequest.queryInt(name: String) = requestIntParam(this, query, name)
/**
* 返回 `query` 参数.
*
* @param name 参数名称
*/
fun ServerRequest.queryLong(name: String) = requestLongParam(this, query, name)
/**
* 返回 `query` 参数.
*
* @param name 参数名称
*/
fun ServerRequest.queryDouble(name: String) = requestDoubleParam(this, query, name)
/**
* 返回 `query` 参数.
*
* @param name 参数名称
*/
fun ServerRequest.queryString(name: String) = requestStringParam(this, query, name)
/**
* 返回 `query` 参数并去除前后空格.
*
* @param name 参数名称
*/
fun ServerRequest.queryTrimString(name: String) = requestTrimStringParam(this, query, name)
// =================================================================================================================
/**
*
*/
fun ServerResponse.BodyBuilder.body(o: Any): Mono<ServerResponse> = body(BodyInserters.fromObject(o))
// =================================================================================================================
private fun requestBooleanParam(request: ServerRequest, where: String, name: String): Boolean {
val v = requestTrimStringParam(request, where, name).toLowerCase()
return v == "true" || v != "0" || v == "on"
}
private fun requestIntParam(request: ServerRequest, where: String, name: String): Int {
val v = requestTrimStringParam(request, where, name)
try {
return v.toInt()
} catch (e: NumberFormatException) {
throw RequestParameterFormatException(where, name, """无法将 "$v" 转换为 int 类型""")
}
}
private fun requestLongParam(request: ServerRequest, where: String, name: String): Long {
val v = requestTrimStringParam(request, where, name)
try {
return v.toLong()
} catch (e: NumberFormatException) {
throw RequestParameterFormatException(where, name, """无法将 "$v" 转换为 long 类型""")
}
}
private fun requestDoubleParam(request: ServerRequest, where: String, name: String): Double {
val v = requestTrimStringParam(request, where, name)
try {
return v.toDouble()
} catch (e: NumberFormatException) {
throw RequestParameterFormatException(where, name, """无法将 "$v" 转换为 double 类型""")
}
}
private fun requestStringParam(request: ServerRequest, where: String, name: String): String {
val v = requestParam(request, where, name)
if (v == null || v.isEmpty()) {
throw MissingRequestParameterException(where, name)
}
return v
}
private fun requestTrimStringParam(request: ServerRequest, where: String, name: String): String {
val v = requestParam(request, where, name)?.trim()
if (v == null || v.isEmpty()) {
throw MissingRequestParameterException(where, name)
}
return v
}
private fun requestParam(request: ServerRequest, where: String, name: String): String? = if (path == where) request.pathVariable(name) else request.queryParam(name).orElse(null)
| 26.828877 | 177 | 0.656368 |
868acc1412746281a7e78ec7d5727adcf7b1e0fa | 16,359 | rs | Rust | src/config/models.rs | quek/trunk | 7eeaf9e3f67e43d4c17e147da32f9f8ec0254f25 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/config/models.rs | quek/trunk | 7eeaf9e3f67e43d4c17e147da32f9f8ec0254f25 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/config/models.rs | quek/trunk | 7eeaf9e3f67e43d4c17e147da32f9f8ec0254f25 | [
"Apache-2.0",
"MIT"
] | null | null | null | use std::path::PathBuf;
use std::str::FromStr;
use std::sync::Arc;
use anyhow::{Context, Result};
use http::Uri;
use serde::{Deserialize, Deserializer};
use structopt::StructOpt;
use crate::common::parse_public_url;
use crate::config::{RtcBuild, RtcClean, RtcServe, RtcWatch};
/// Config options for the build system.
#[derive(Clone, Debug, Default, Deserialize, StructOpt)]
pub struct ConfigOptsBuild {
/// The index HTML file to drive the bundling process [default: index.html]
#[structopt(parse(from_os_str))]
pub target: Option<PathBuf>,
/// Build in release mode [default: false]
#[structopt(long)]
#[serde(default)]
pub release: bool,
/// The output dir for all final assets [default: dist]
#[structopt(short, long, parse(from_os_str))]
pub dist: Option<PathBuf>,
/// The public URL from which assets are to be served [default: /]
#[structopt(long, parse(from_str=parse_public_url))]
pub public_url: Option<String>,
}
/// Config options for the watch system.
#[derive(Clone, Debug, Default, Deserialize, StructOpt)]
pub struct ConfigOptsWatch {
/// Watch specific file(s) or folder(s) [default: build target parent folder]
#[structopt(short, long, parse(from_os_str), value_name = "path")]
pub watch: Option<Vec<PathBuf>>,
/// Paths to ignore [default: []]
#[structopt(short, long, parse(from_os_str), value_name = "path")]
pub ignore: Option<Vec<PathBuf>>,
}
/// Config options for the serve system.
#[derive(Clone, Debug, Default, Deserialize, StructOpt)]
pub struct ConfigOptsServe {
/// The port to serve on [default: 8080]
#[structopt(long)]
pub port: Option<u16>,
/// Open a browser tab once the initial build is complete [default: false]
#[structopt(long)]
#[serde(default)]
pub open: bool,
/// A URL to which requests will be proxied [default: None]
#[structopt(long = "proxy-backend")]
#[serde(default, deserialize_with = "deserialize_uri")]
pub proxy_backend: Option<Uri>,
/// The URI on which to accept requests which are to be rewritten and proxied to backend
/// [default: None]
#[structopt(long = "proxy-rewrite")]
#[serde(default)]
pub proxy_rewrite: Option<String>,
/// Configure the proxy for handling WebSockets [default: false]
#[structopt(long = "proxy-ws")]
#[serde(default)]
pub proxy_ws: bool,
/// Disable auto-reload of the web app [default: false]
#[structopt(long = "no-autoreload")]
#[serde(default)]
pub no_autoreload: bool,
}
/// Config options for the serve system.
#[derive(Clone, Debug, Default, Deserialize, StructOpt)]
pub struct ConfigOptsClean {
/// The output dir for all final assets [default: dist]
#[structopt(short, long, parse(from_os_str))]
pub dist: Option<PathBuf>,
/// Optionally perform a cargo clean [default: false]
#[structopt(long)]
#[serde(default)]
pub cargo: bool,
}
/// Config options for automatic application downloads.
#[derive(Clone, Debug, Default, Deserialize)]
pub struct ConfigOptsTools {
/// Version of `wasm-bindgen` to use.
pub wasm_bindgen: Option<String>,
/// Version of `wasm-opt` to use.
pub wasm_opt: Option<String>,
}
/// Config options for building proxies.
///
/// NOTE WELL: this configuration type is different from the others inasmuch as it is only used
/// when parsing the `Trunk.toml` config file. It is not intended to be configured via CLI or env
/// vars.
#[derive(Clone, Debug, Deserialize)]
pub struct ConfigOptsProxy {
/// The URL of the backend to which requests are to be proxied.
#[serde(deserialize_with = "deserialize_uri")]
pub backend: Uri,
/// An optional URI prefix which is to be used as the base URI for proxying requests, which
/// defaults to the URI of the backend.
///
/// When a value is specified, requests received on this URI will have this URI segment replaced
/// with the URI of the `backend`.
pub rewrite: Option<String>,
/// Configure the proxy for handling WebSockets.
#[serde(default)]
pub ws: bool,
}
/// Deserialize a Uri from a string.
fn deserialize_uri<'de, D, T>(data: D) -> std::result::Result<T, D::Error>
where
D: Deserializer<'de>,
T: std::convert::From<Uri>,
{
let val = String::deserialize(data)?;
Uri::from_str(val.as_str())
.map(Into::into)
.map_err(|err| serde::de::Error::custom(err.to_string()))
}
/// A model of all potential configuration options for the Trunk CLI system.
#[derive(Clone, Debug, Default, Deserialize)]
pub struct ConfigOpts {
pub build: Option<ConfigOptsBuild>,
pub watch: Option<ConfigOptsWatch>,
pub serve: Option<ConfigOptsServe>,
pub clean: Option<ConfigOptsClean>,
pub tools: Option<ConfigOptsTools>,
pub proxy: Option<Vec<ConfigOptsProxy>>,
}
impl ConfigOpts {
/// Extract the runtime config for the build system based on all config layers.
pub fn rtc_build(cli_build: ConfigOptsBuild, config: Option<PathBuf>) -> Result<Arc<RtcBuild>> {
let base_layer = Self::file_and_env_layers(config)?;
let build_layer = Self::cli_opts_layer_build(cli_build, base_layer);
let build_opts = build_layer.build.unwrap_or_default();
let tools_opts = build_layer.tools.unwrap_or_default();
Ok(Arc::new(RtcBuild::new(build_opts, tools_opts, false)?))
}
/// Extract the runtime config for the watch system based on all config layers.
pub fn rtc_watch(cli_build: ConfigOptsBuild, cli_watch: ConfigOptsWatch, config: Option<PathBuf>) -> Result<Arc<RtcWatch>> {
let base_layer = Self::file_and_env_layers(config)?;
let build_layer = Self::cli_opts_layer_build(cli_build, base_layer);
let watch_layer = Self::cli_opts_layer_watch(cli_watch, build_layer);
let build_opts = watch_layer.build.unwrap_or_default();
let watch_opts = watch_layer.watch.unwrap_or_default();
let tools_opts = watch_layer.tools.unwrap_or_default();
Ok(Arc::new(RtcWatch::new(build_opts, watch_opts, tools_opts, false)?))
}
/// Extract the runtime config for the serve system based on all config layers.
pub fn rtc_serve(
cli_build: ConfigOptsBuild, cli_watch: ConfigOptsWatch, cli_serve: ConfigOptsServe, config: Option<PathBuf>,
) -> Result<Arc<RtcServe>> {
let base_layer = Self::file_and_env_layers(config)?;
let build_layer = Self::cli_opts_layer_build(cli_build, base_layer);
let watch_layer = Self::cli_opts_layer_watch(cli_watch, build_layer);
let serve_layer = Self::cli_opts_layer_serve(cli_serve, watch_layer);
let build_opts = serve_layer.build.unwrap_or_default();
let watch_opts = serve_layer.watch.unwrap_or_default();
let serve_opts = serve_layer.serve.unwrap_or_default();
let tools_opts = serve_layer.tools.unwrap_or_default();
Ok(Arc::new(RtcServe::new(
build_opts,
watch_opts,
serve_opts,
tools_opts,
serve_layer.proxy,
)?))
}
/// Extract the runtime config for the clean system based on all config layers.
pub fn rtc_clean(cli_clean: ConfigOptsClean, config: Option<PathBuf>) -> Result<Arc<RtcClean>> {
let base_layer = Self::file_and_env_layers(config)?;
let clean_layer = Self::cli_opts_layer_clean(cli_clean, base_layer);
let clean_opts = clean_layer.clean.unwrap_or_default();
Ok(Arc::new(RtcClean::new(clean_opts)))
}
/// Return the full configuration based on config file & environment variables.
pub fn full(config: Option<PathBuf>) -> Result<Self> {
Self::file_and_env_layers(config)
}
fn cli_opts_layer_build(cli: ConfigOptsBuild, cfg_base: Self) -> Self {
let opts = ConfigOptsBuild {
target: cli.target,
release: cli.release,
dist: cli.dist,
public_url: cli.public_url,
};
let cfg_build = ConfigOpts {
build: Some(opts),
watch: None,
serve: None,
clean: None,
tools: None,
proxy: None,
};
Self::merge(cfg_base, cfg_build)
}
fn cli_opts_layer_watch(cli: ConfigOptsWatch, cfg_base: Self) -> Self {
let opts = ConfigOptsWatch { watch: cli.watch, ignore: cli.ignore };
let cfg = ConfigOpts {
build: None,
watch: Some(opts),
serve: None,
clean: None,
tools: None,
proxy: None,
};
Self::merge(cfg_base, cfg)
}
fn cli_opts_layer_serve(cli: ConfigOptsServe, cfg_base: Self) -> Self {
let opts = ConfigOptsServe {
port: cli.port,
open: cli.open,
proxy_backend: cli.proxy_backend,
proxy_rewrite: cli.proxy_rewrite,
proxy_ws: cli.proxy_ws,
no_autoreload: cli.no_autoreload,
};
let cfg = ConfigOpts {
build: None,
watch: None,
serve: Some(opts),
clean: None,
tools: None,
proxy: None,
};
Self::merge(cfg_base, cfg)
}
fn cli_opts_layer_clean(cli: ConfigOptsClean, cfg_base: Self) -> Self {
let opts = ConfigOptsClean { dist: cli.dist, cargo: cli.cargo };
let cfg = ConfigOpts {
build: None,
watch: None,
serve: None,
clean: Some(opts),
tools: None,
proxy: None,
};
Self::merge(cfg_base, cfg)
}
fn file_and_env_layers(path: Option<PathBuf>) -> Result<Self> {
let toml_cfg = Self::from_file(path)?;
let env_cfg = Self::from_env().context("error reading trunk env var config")?;
let cfg = Self::merge(toml_cfg, env_cfg);
Ok(cfg)
}
/// Read runtime config from a `Trunk.toml` file at the target path.
///
/// NOTE WELL: any paths specified in a Trunk.toml file must be interpreted as being relative
/// to the file itself.
fn from_file(path: Option<PathBuf>) -> Result<Self> {
let mut trunk_toml_path = path.unwrap_or_else(|| "Trunk.toml".into());
if !trunk_toml_path.exists() {
return Ok(Default::default());
}
if !trunk_toml_path.is_absolute() {
trunk_toml_path = trunk_toml_path
.canonicalize()
.with_context(|| format!("error getting canonical path to Trunk config file {:?}", &trunk_toml_path))?;
}
let cfg_bytes = std::fs::read(&trunk_toml_path).context("error reading config file")?;
let mut cfg: Self = toml::from_slice(&cfg_bytes).context("error reading config file contents as TOML data")?;
if let Some(parent) = trunk_toml_path.parent() {
if let Some(build) = cfg.build.as_mut() {
if let Some(target) = build.target.as_mut() {
if !target.is_absolute() {
*target = std::fs::canonicalize(parent.join(&target))
.with_context(|| format!("error taking canonical path to [build].target {:?} in {:?}", target, trunk_toml_path))?;
}
}
if let Some(dist) = build.dist.as_mut() {
if !dist.is_absolute() {
*dist = parent.join(&dist);
}
}
}
if let Some(watch) = cfg.watch.as_mut() {
if let Some(watch_paths) = watch.watch.as_mut() {
for path in watch_paths.iter_mut() {
if !path.is_absolute() {
*path = std::fs::canonicalize(parent.join(&path))
.with_context(|| format!("error taking canonical path to [watch].watch {:?} in {:?}", path, trunk_toml_path))?;
}
}
}
if let Some(ignore_paths) = watch.ignore.as_mut() {
for path in ignore_paths.iter_mut() {
if !path.is_absolute() {
*path = std::fs::canonicalize(parent.join(&path))
.with_context(|| format!("error taking canonical path to [watch].ignore {:?} in {:?}", path, trunk_toml_path))?;
}
}
}
}
if let Some(clean) = cfg.clean.as_mut() {
if let Some(dist) = clean.dist.as_mut() {
if !dist.is_absolute() {
*dist = parent.join(&dist);
}
}
}
}
Ok(cfg)
}
fn from_env() -> Result<Self> {
let build: ConfigOptsBuild = envy::prefixed("TRUNK_BUILD_").from_env()?;
let watch: ConfigOptsWatch = envy::prefixed("TRUNK_WATCH_").from_env()?;
let serve: ConfigOptsServe = envy::prefixed("TRUNK_SERVE_").from_env()?;
let clean: ConfigOptsClean = envy::prefixed("TRUNK_CLEAN_").from_env()?;
Ok(ConfigOpts {
build: Some(build),
watch: Some(watch),
serve: Some(serve),
clean: Some(clean),
tools: None,
proxy: None,
})
}
/// Merge the given layers, where the `greater` layer takes precedence.
fn merge(mut lesser: Self, mut greater: Self) -> Self {
greater.build = match (lesser.build.take(), greater.build.take()) {
(None, None) => None,
(Some(val), None) | (None, Some(val)) => Some(val),
(Some(l), Some(mut g)) => {
g.target = g.target.or(l.target);
g.dist = g.dist.or(l.dist);
g.public_url = g.public_url.or(l.public_url);
// NOTE: this can not be disabled in the cascade.
if l.release {
g.release = true;
}
Some(g)
}
};
greater.watch = match (lesser.watch.take(), greater.watch.take()) {
(None, None) => None,
(Some(val), None) | (None, Some(val)) => Some(val),
(Some(l), Some(mut g)) => {
g.watch = g.watch.or(l.watch);
g.ignore = g.ignore.or(l.ignore);
Some(g)
}
};
greater.serve = match (lesser.serve.take(), greater.serve.take()) {
(None, None) => None,
(Some(val), None) | (None, Some(val)) => Some(val),
(Some(l), Some(mut g)) => {
g.proxy_backend = g.proxy_backend.or(l.proxy_backend);
g.proxy_rewrite = g.proxy_rewrite.or(l.proxy_rewrite);
g.port = g.port.or(l.port);
g.proxy_ws = g.proxy_ws || l.proxy_ws;
// NOTE: this can not be disabled in the cascade.
if l.no_autoreload {
g.no_autoreload = true;
}
// NOTE: this can not be disabled in the cascade.
if l.open {
g.open = true;
}
Some(g)
}
};
greater.tools = match (lesser.tools.take(), greater.tools.take()) {
(None, None) => None,
(Some(val), None) | (None, Some(val)) => Some(val),
(Some(l), Some(mut g)) => {
g.wasm_bindgen = g.wasm_bindgen.or(l.wasm_bindgen);
g.wasm_opt = g.wasm_opt.or(l.wasm_opt);
Some(g)
}
};
greater.clean = match (lesser.clean.take(), greater.clean.take()) {
(None, None) => None,
(Some(val), None) | (None, Some(val)) => Some(val),
(Some(l), Some(mut g)) => {
g.dist = g.dist.or(l.dist);
// NOTE: this can not be disabled in the cascade.
if l.cargo {
g.cargo = true;
}
Some(g)
}
};
greater.proxy = match (lesser.proxy.take(), greater.proxy.take()) {
(None, None) => None,
(Some(val), None) | (None, Some(val)) => Some(val),
(Some(_), Some(g)) => Some(g), // No meshing/merging. Only take the greater value.
};
greater
}
}
| 39.997555 | 144 | 0.577603 |
e8df842f0c6982487b7ca3ace562a894cc9d1940 | 606 | py | Python | exposures/generate_passwords.py | jarnoln/exposures | bbae3f79078048d25b77e178db6c0801ffe9f97e | [
"MIT"
] | null | null | null | exposures/generate_passwords.py | jarnoln/exposures | bbae3f79078048d25b77e178db6c0801ffe9f97e | [
"MIT"
] | null | null | null | exposures/generate_passwords.py | jarnoln/exposures | bbae3f79078048d25b77e178db6c0801ffe9f97e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import random
import argparse
def generate_passwords(password_file_path):
password_file = open(password_file_path, 'w')
chars = 'abcdefghijklmnopqrstuvxyz01234567890_-!*'
secret_key = ''.join(random.SystemRandom().choice(chars) for _ in range(50))
password_file.write("SECRET_KEY = '%s'\n" % secret_key)
password_file.close()
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('password_file_path', help='Where password file will be placed')
args = parser.parse_args()
generate_passwords(args.password_file_path)
| 31.894737 | 88 | 0.737624 |
b25f28b1e03385857e83d31be8a131b5cb1296db | 6,913 | sql | SQL | backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5472320_sys_gh2538-app_remove_ldap_stuff.sql | dram/metasfresh | a1b881a5b7df8b108d4c4ac03082b72c323873eb | [
"RSA-MD"
] | 1,144 | 2016-02-14T10:29:35.000Z | 2022-03-30T09:50:41.000Z | backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5472320_sys_gh2538-app_remove_ldap_stuff.sql | vestigegroup/metasfresh | 4b2d48c091fb2a73e6f186260a06c715f5e2fe96 | [
"RSA-MD"
] | 8,283 | 2016-04-28T17:41:34.000Z | 2022-03-30T13:30:12.000Z | backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5472320_sys_gh2538-app_remove_ldap_stuff.sql | vestigegroup/metasfresh | 4b2d48c091fb2a73e6f186260a06c715f5e2fe96 | [
"RSA-MD"
] | 441 | 2016-04-29T08:06:07.000Z | 2022-03-28T06:09:56.000Z | --
-- AD_LdapAccess
--
DELETE FROM ad_ui_elementgroup WHERE ad_ui_column_ID IN (select ad_ui_column_ID FROM ad_ui_column WHERE ad_ui_section_ID IN (select ad_ui_section_id from ad_ui_section where AD_Tab_ID=851));
DELETE FROM ad_ui_column WHERE ad_ui_section_ID IN (select ad_ui_section_id from ad_ui_section where AD_Tab_ID=851);
DELETE FROM ad_ui_section_trl WHERE ad_ui_section_id IN (select ad_ui_section_ID FROM ad_ui_section WHERE AD_Tab_ID=851);
DELETE FROM ad_ui_section WHERE AD_Tab_ID=851; -- LDAP-Zugriff in Nutzer
DELETE FROM AD_UI_Element WHERE AD_Tab_ID=851; -- LDAP-Zugriff in Nutzer
DROP TABLE AD_LdapAccess;
-- 2017-09-22T07:53:47.384
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Tab_Trl WHERE AD_Tab_ID=851
;
-- 2017-09-22T07:53:47.386
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Tab WHERE AD_Tab_ID=851
;
-- 2017-09-22T07:57:57.861
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Tab_Trl WHERE AD_Tab_ID=852
;
-- 2017-09-22T07:57:57.864
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Tab WHERE AD_Tab_ID=852
;
-- 2017-09-22T07:58:06.581
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Table_Trl WHERE AD_Table_ID=904
;
-- 2017-09-22T07:58:06.585
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Table WHERE AD_Table_ID=904
;
-- 2017-09-22T07:59:12.581
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Trl WHERE AD_Element_ID=3096
;
-- 2017-09-22T07:59:12.588
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element WHERE AD_Element_ID=3096
;
--
-- AD_LdapProcessorLog
--
DELETE FROM AD_Menu where (ad_window_id)=(389); -- window LDAP-Server-- 2017-09-22T08:01:00.990
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Window_Trl WHERE AD_Window_ID=389
;
-- 2017-09-22T08:01:00.992
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Window WHERE AD_Window_ID=389
;
--
-- Table AD_LdapProcessorLog
--
-- 2017-09-22T08:01:53.869
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Table_Trl WHERE AD_Table_ID=903
;
-- 2017-09-22T08:01:53.872
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Table WHERE AD_Table_ID=903
;
DROP TABLE AD_LdapProcessorLog;
--
-- Table AD_LdapProcessor
--
-- 2017-09-22T08:02:35.489
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Table_Trl WHERE AD_Table_ID=902
;
-- 2017-09-22T08:02:35.491
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Table WHERE AD_Table_ID=902
;
DROP TABLE AD_LdapProcessor;
--
-- REmove columns from ad_system
--
-- LDAPDomain AD_Element_ID=2549
DELETE FROM AD_Field WHERE AD_Column_ID IN (select AD_Column_ID FROM AD_Column WHERE AD_Element_ID=2549);
DELETE FROM AD_Column WHERE AD_Element_ID=2549;
DELETE FROM AD_Element WHERE AD_Element_ID=2549;
ALTER TABLE AD_System DROP COLUMN LDAPDomain;
-- LDAPHost AD_Element_ID=2550
DELETE FROM AD_Field WHERE AD_Column_ID IN (select AD_Column_ID FROM AD_Column WHERE AD_Element_ID=2550);
DELETE FROM AD_Column WHERE AD_Element_ID=2550;
DELETE FROM AD_Element WHERE AD_Element_ID=2550;
ALTER TABLE AD_System DROP COLUMN LDAPHost;
-- LDAPUser AD_Element_ID=2546
DELETE FROM ad_ui_element WHERE AD_Field_ID IN (select AD_Field_ID FROM AD_Field WHERE AD_Column_ID IN (select AD_Column_ID FROM AD_Column WHERE AD_Element_ID=2546));
DELETE FROM AD_Field WHERE AD_Column_ID IN (select AD_Column_ID FROM AD_Column WHERE AD_Element_ID=2546);
DELETE FROM exp_formatline WHERE AD_Column_ID IN (select AD_Column_ID FROM AD_Column WHERE AD_Element_ID=2546);
DELETE FROM AD_Column WHERE AD_Element_ID=2546;
DELETE FROM AD_Element WHERE AD_Element_ID=2546;
DROP VIEW public.rv_bpartner;
ALTER TABLE AD_User DROP COLUMN LDAPUser;
CREATE OR REPLACE VIEW public.rv_bpartner AS
SELECT
bp.ad_client_id,
bp.ad_org_id,
bp.isactive,
bp.created,
bp.createdby,
bp.updated,
bp.updatedby,
bp.c_bpartner_id,
bp.value,
bp.name,
bp.name2,
bp.description,
bp.issummary,
bp.c_bp_group_id,
bp.isonetime,
bp.isprospect,
bp.isvendor,
bp.iscustomer,
bp.isemployee,
bp.issalesrep,
bp.referenceno,
bp.duns,
bp.url,
bp.ad_language,
bp.taxid,
bp.istaxexempt,
bp.c_invoiceschedule_id,
bp.rating,
bp.salesvolume,
bp.numberemployees,
bp.naics,
bp.firstsale,
bp.acqusitioncost,
bp.potentiallifetimevalue,
stats.actuallifetimevalue,
bp.shareofcustomer,
bp.paymentrule,
bp.so_creditlimit,
stats.so_creditused,
stats.so_creditused - bp.so_creditlimit AS so_creditavailable,
bp.c_paymentterm_id,
bp.m_pricelist_id,
bp.m_discountschema_id,
bp.c_dunning_id,
bp.isdiscountprinted,
bp.so_description,
bp.poreference,
bp.paymentrulepo,
bp.po_pricelist_id,
bp.po_discountschema_id,
bp.po_paymentterm_id,
bp.documentcopies,
bp.c_greeting_id,
bp.invoicerule,
bp.deliveryrule,
bp.freightcostrule,
bp.deliveryviarule,
bp.salesrep_id,
bp.sendemail,
bp.bpartner_parent_id,
bp.invoice_printformat_id,
stats.socreditstatus,
bp.shelflifeminpct,
bp.ad_orgbp_id,
bp.flatdiscount,
stats.totalopenbalance,
c.ad_user_id,
c.name AS contactname,
c.description AS contactdescription,
c.email,
c.supervisor_id,
c.emailuser,
c.c_greeting_id AS bpcontactgreeting,
c.title,
c.comments,
c.phone,
c.phone2,
c.fax,
c.birthday,
c.ad_orgtrx_id,
c.emailverify,
c.emailverifydate,
c.notificationtype,
l.c_bpartner_location_id,
a.postal,
a.city,
a.address1,
a.address2,
a.address3,
a.c_region_id,
COALESCE(r.name, a.regionname) AS regionname,
a.c_country_id,
cc.name AS countryname,
sp.sponsorno
FROM x_bpartner_cockpit_search_mv bpcs
LEFT JOIN c_bpartner bp ON bp.c_bpartner_id = bpcs.c_bpartner_id
LEFT JOIN c_bpartner_stats stats ON bp.c_bpartner_id = stats.c_bpartner_id
LEFT JOIN c_bpartner_location l ON bp.c_bpartner_id = l.c_bpartner_id AND l.isactive = 'Y'::bpchar
LEFT JOIN ad_user c ON bp.c_bpartner_id = c.c_bpartner_id AND (c.c_bpartner_location_id IS NULL OR c.c_bpartner_location_id = l.c_bpartner_location_id) AND c.isactive = 'Y'::bpchar
LEFT JOIN c_location a ON l.c_location_id = a.c_location_id
LEFT JOIN c_region r ON a.c_region_id = r.c_region_id
JOIN c_country cc ON a.c_country_id = cc.c_country_id
LEFT JOIN c_sponsor sp ON bp.c_bpartner_id = sp.c_bpartner_id
LEFT JOIN c_sponsor_salesrep ssr ON sp.c_sponsor_id = ssr.c_sponsor_id;
| 29.542735 | 190 | 0.762621 |
b528ea8291b986dc9ad1462d75b4afef643a6ea4 | 251 | rs | Rust | programs/onering-finance/src/constant.rs | oneringfrodo/onering | dd844e16968341cc803ae94a8ebdc53858ed5237 | [
"MIT"
] | 3 | 2022-02-09T04:10:37.000Z | 2022-02-11T08:38:17.000Z | programs/onering-finance/src/constant.rs | oneringfrodo/onering | dd844e16968341cc803ae94a8ebdc53858ed5237 | [
"MIT"
] | null | null | null | programs/onering-finance/src/constant.rs | oneringfrodo/onering | dd844e16968341cc803ae94a8ebdc53858ed5237 | [
"MIT"
] | 3 | 2021-12-24T01:56:53.000Z | 2022-02-11T08:38:23.000Z | /// 1USD mint authority seed
pub const OUSD_MINT_AUTH_SEED: &[u8] = b"or_ousd_mint_auth";
/// stable vault (authority) seed
pub const STABLE_VAULT_SEED: &[u8] = b"or_stable_vault";
/// reserve PDA seed
pub const RESERVE_SEED: &[u8] = b"or_reserve";
| 27.888889 | 60 | 0.7251 |
bc97e42851943e6e6d3702ef40769aaad39256c2 | 2,964 | swift | Swift | Sources/Picker/View/PermissionDeniedView.swift | mohsinalimat/AnyImageKit | ff35c45d8ccf6624b295bf8fe1c4c11b2f7fcf5e | [
"MIT"
] | 1 | 2019-11-29T08:30:35.000Z | 2019-11-29T08:30:35.000Z | Sources/Picker/View/PermissionDeniedView.swift | mohsinalimat/AnyImageKit | ff35c45d8ccf6624b295bf8fe1c4c11b2f7fcf5e | [
"MIT"
] | null | null | null | Sources/Picker/View/PermissionDeniedView.swift | mohsinalimat/AnyImageKit | ff35c45d8ccf6624b295bf8fe1c4c11b2f7fcf5e | [
"MIT"
] | null | null | null | //
// PermissionDeniedView.swift
// AnyImageKit
//
// Created by 蒋惠 on 2019/9/30.
// Copyright © 2019 AnyImageProject.org. All rights reserved.
//
import UIKit
final class PermissionDeniedView: UIView {
private lazy var label: UILabel = {
let view = UILabel(frame: .zero)
let text = String(format: BundleHelper.pickerLocalizedString(key: "Allow %@ to access your album in \"Settings -> Privacy -> Photos\""), loadAppName())
view.text = text
view.textAlignment = .center
view.numberOfLines = 0
view.textColor = config.theme.textColor
return view
}()
private lazy var button: UIButton = {
let view = UIButton(type: .custom)
view.setTitle(BundleHelper.pickerLocalizedString(key: "Go to Settings"), for: .normal)
view.setTitleColor(config.theme.mainColor, for: .normal)
view.addTarget(self, action: #selector(settingsButtonTapped(_:)), for: .touchUpInside)
return view
}()
private let config: ImagePickerController.Config
init(frame: CGRect, config: ImagePickerController.Config) {
self.config = config
super.init(frame: frame)
setupView()
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
private func setupView() {
backgroundColor = config.theme.backgroundColor
addSubview(label)
addSubview(button)
label.snp.makeConstraints { maker in
maker.top.left.right.equalToSuperview().inset(15)
}
button.snp.makeConstraints { maker in
maker.top.equalTo(label.snp.bottom).offset(10)
maker.left.right.equalToSuperview()
maker.height.equalTo(40)
}
}
}
// MARK: - Target
extension PermissionDeniedView {
@objc private func settingsButtonTapped(_ sender: UIButton) {
guard let url = URL(string: UIApplication.openSettingsURLString) else { return }
UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
}
// MARK: - Private function
extension PermissionDeniedView {
private func loadAppName() -> String {
let info = loadInfoPlist()
if let appName = info["CFBundleDisplayName"] as? String { return appName }
if let appName = info["CFBundleName"] as? String { return appName }
if let appName = info["CFBundleExecutable"] as? String { return appName }
return ""
}
private func loadInfoPlist() -> [String: Any] {
var info = Bundle.main.localizedInfoDictionary
if info == nil || info?.count == 0 {
info = Bundle.main.infoDictionary
}
if info == nil || info?.count == 0 {
let path = Bundle.main.path(forResource: "Info", ofType: "plist") ?? ""
info = NSDictionary(contentsOfFile: path) as? [String: Any]
}
return info ?? [:]
}
}
| 32.933333 | 159 | 0.623819 |
133f88ba5e22ca0258973faa758e58522c5c60ab | 1,436 | h | C | Subspace/subspace/SubspaceZoneCommands.h | automaton82/pspace | 34c3aaaf4dadb63df3183d39535aae0ac0560599 | [
"BSD-3-Clause"
] | null | null | null | Subspace/subspace/SubspaceZoneCommands.h | automaton82/pspace | 34c3aaaf4dadb63df3183d39535aae0ac0560599 | [
"BSD-3-Clause"
] | null | null | null | Subspace/subspace/SubspaceZoneCommands.h | automaton82/pspace | 34c3aaaf4dadb63df3183d39535aae0ac0560599 | [
"BSD-3-Clause"
] | null | null | null | #ifndef _SUBSPACEZONECOMMANDS_H_
#define _SUBSPACEZONECOMMANDS_H_
class SubspaceZoneCommandReceiver;
class SubspaceZoneCommand
{
public:
virtual ~SubspaceZoneCommand() {}
virtual void execute(SubspaceZoneCommandReceiver* listener) = 0;
};
namespace SubspaceZoneCommands
{
// NOTE: these actions intentionally have no parameters, since any user input is based on one key
///////////////////////////////////////
#define basicCommand(name) \
class name \
: public SubspaceZoneCommand \
{ \
public: void execute(SubspaceZoneCommandReceiver* receiver) {} \
}
///////////////////////////////////////
//weapons
basicCommand(FireBrick);
basicCommand(FireBomb);
basicCommand(FireBullet);
basicCommand(FireBurst);
basicCommand(FireDecoy);
basicCommand(FireMine);
basicCommand(FirePortal);
basicCommand(FireRepel);
basicCommand(FireRocket);
basicCommand(FireThor);
//movement
basicCommand(MoveForward);
basicCommand(MoveBackward);
basicCommand(TurnLeft);
basicCommand(TurnRight);
basicCommand(FastForward); //afterburner
basicCommand(FastBackward);
basicCommand(FastLeft);
basicCommand(FastRight);
//toggles
basicCommand(ToggleAntiwarp);
basicCommand(ToggleCloak);
basicCommand(ToggleMultifire);
basicCommand(ToggleStealth);
basicCommand(ToggleXRadar);
//misc
basicCommand(Attach); //turret attachment
basicCommand(Warp);
}
#endif | 23.933333 | 98 | 0.70961 |
12f3465b37736d7826cefa7ecf91dd34ef5555e5 | 98,149 | html | HTML | trope_list/tropes/ThematicThemeTune.html | jwzimmer/tv-tropes | 44442b66286eaf2738fc5d863d175d4577da97f4 | [
"MIT"
] | 1 | 2021-01-02T00:19:20.000Z | 2021-01-02T00:19:20.000Z | trope_list/tropes/ThematicThemeTune.html | jwzimmer/tv-tropes | 44442b66286eaf2738fc5d863d175d4577da97f4 | [
"MIT"
] | 6 | 2020-11-17T00:44:19.000Z | 2021-01-22T18:56:28.000Z | trope_list/tropes/ThematicThemeTune.html | jwzimmer/tv-tropes | 44442b66286eaf2738fc5d863d175d4577da97f4 | [
"MIT"
] | 5 | 2021-01-02T00:19:15.000Z | 2021-08-05T16:02:08.000Z | <!DOCTYPE html>
<html>
<head lang="en">
<meta content="IE=edge" http-equiv="X-UA-Compatible"/>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<title>Thematic Theme Tune - TV Tropes</title>
<meta content="The Thematic Theme Tune trope as used in popular culture. A Theme Tune which, while not specific to the show in the manner of an Expository Theme Tune, …" name="description"/>
<link href="https://tvtropes.org/pmwiki/pmwiki.php/Main/ThematicThemeTune" rel="canonical"/>
<link href="/img/icons/favicon.ico" rel="shortcut icon" type="image/x-icon"/>
<meta content="summary_large_image" name="twitter:card"/>
<meta content="@tvtropes" name="twitter:site"/>
<meta content="@tvtropes" name="twitter:owner"/>
<meta content="Thematic Theme Tune - TV Tropes" name="twitter:title"/>
<meta content="The Thematic Theme Tune trope as used in popular culture. A Theme Tune which, while not specific to the show in the manner of an Expository Theme Tune, …" name="twitter:description"/>
<meta content="https://static.tvtropes.org/logo_blue_small.png" name="twitter:image:src"/>
<meta content="TV Tropes" property="og:site_name"/>
<meta content="en_US" property="og:locale"/>
<meta content="https://www.facebook.com/tvtropes" property="article:publisher"/>
<meta content="Thematic Theme Tune - TV Tropes" property="og:title"/>
<meta content="website" property="og:type"/>
<meta content="https://tvtropes.org/pmwiki/pmwiki.php/Main/ThematicThemeTune" property="og:url"/>
<meta content="https://static.tvtropes.org/logo_blue_small.png" property="og:image"/>
<meta content="A Theme Tune which, while not specific to the show in the manner of an Expository Theme Tune, nevertheless attempts to capture the thematic elements of the show in its lyrics, usually mushy stuff about love, relationships, and family. The most …" property="og:description"/>
<link href="/img/icons/apple-icon-57x57.png" rel="apple-touch-icon" sizes="57x57" type="image/png"/>
<link href="/img/icons/apple-icon-60x60.png" rel="apple-touch-icon" sizes="60x60" type="image/png"/>
<link href="/img/icons/apple-icon-72x72.png" rel="apple-touch-icon" sizes="72x72" type="image/png"/>
<link href="/img/icons/apple-icon-76x76.png" rel="apple-touch-icon" sizes="76x76" type="image/png"/>
<link href="/img/icons/apple-icon-114x114.png" rel="apple-touch-icon" sizes="114x114" type="image/png"/>
<link href="/img/icons/apple-icon-120x120.png" rel="apple-touch-icon" sizes="120x120" type="image/png"/>
<link href="/img/icons/apple-icon-144x144.png" rel="apple-touch-icon" sizes="144x144" type="image/png"/>
<link href="/img/icons/apple-icon-152x152.png" rel="apple-touch-icon" sizes="152x152" type="image/png"/>
<link href="/img/icons/apple-icon-180x180.png" rel="apple-touch-icon" sizes="180x180" type="image/png"/>
<link href="/img/icons/favicon-16x16.png" rel="icon" sizes="16x16" type="image/png"/>
<link href="/img/icons/favicon-32x32.png" rel="icon" sizes="32x32" type="image/png"/>
<link href="/img/icons/favicon-96x96.png" rel="icon" sizes="96x96" type="image/png"/>
<link href="/img/icons/favicon-192x192.png" rel="icon" sizes="192x192" type="image/png"/>
<meta content="width=device-width, initial-scale=1" id="viewport" name="viewport"/>
<script>
var propertag = {};
propertag.cmd = [];
</script>
<link href="/design/assets/bundle.css?rev=c58d8df02f09262390bbd03db7921fc35c6af306" rel="stylesheet"/>
<script>
function object(objectId) {
if (document.getElementById && document.getElementById(objectId)) {
return document.getElementById(objectId);
} else if (document.all && document.all(objectId)) {
return document.all(objectId);
} else if (document.layers && document.layers[objectId]) {
return document.layers[objectId];
} else {
return false;
}
}
// JAVASCRIPT COOKIES CODE: for getting and setting user viewing preferences
var cookies = {
create: function (name, value, days2expire, path) {
var date = new Date();
date.setTime(date.getTime() + (days2expire * 24 * 60 * 60 * 1000));
var expires = date.toUTCString();
document.cookie = name + '=' + value + ';' + 'expires=' + expires + ';' + 'path=' + path + ';';
},
createWithExpire: function(name, value, expires, path) {
document.cookie = name + '=' + value + ';' + 'expires=' + expires + ';' + 'path=' + path + ';';
},
read: function (name) {
var cookie_value = "",
current_cookie = "",
name_expr = name + "=",
all_cookies = document.cookie.split(';'),
n = all_cookies.length;
for (var i = 0; i < n; i++) {
current_cookie = all_cookies[i].trim();
if (current_cookie.indexOf(name_expr) === 0) {
cookie_value = current_cookie.substring(name_expr.length, current_cookie.length);
break;
}
}
return cookie_value;
},
update: function (name, val) {
this.create(name, val, 300, "/");
},
remove: function (name) {
document.cookie = name + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
}
};
function updateUserPrefs() {
//GENERAL: detect and set browser, if not cookied (will be treated like a user-preference and added to the #user-pref element)
if( !cookies.read('user-browser') ){
var broswer = '';
if(navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) ){
browser = 'iOS';
} else if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
browser = 'opera';
} else if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) {
browser = 'MSIE';
} else if (/Navigator[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
browser = 'netscape';
} else if (/Chrome[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
browser = 'chrome';
} else if (/Safari[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
browser = 'safari';
/Version[\/\s](\d+\.\d+)/.test(navigator.userAgent);
browserVersion = new Number(RegExp.$1);
} else if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
browser = 'firefox';
} else {
browser = 'internet_explorer';
}
cookies.create('user-browser',browser,1,'/');
document.getElementById('user-prefs').classList.add('browser-' + browser);
} else {
document.getElementById('user-prefs').classList.add('browser-' + cookies.read('user-browser'));
}
//update user preference settings
if (cookies.read('wide-load') !== '') document.getElementById('user-prefs').classList.add('wide-load');
if (cookies.read('night-vision') !== '') document.getElementById('user-prefs').classList.add('night-vision');
if (cookies.read('sticky-header') !== '') document.getElementById('user-prefs').classList.add('sticky-header');
if (cookies.read('show-spoilers') !== '') document.getElementById('user-prefs').classList.add('show-spoilers');
if (cookies.read('folders-open') !== '') document.getElementById('user-prefs').classList.add('folders-open');
if (cookies.read('lefthand-sidebar') !== '') document.getElementById('user-prefs').classList.add('lefthand-sidebar');
if (cookies.read('highlight-links') !== '') document.getElementById('user-prefs').classList.add('highlight-links');
if (cookies.read('forum-gingerbread') !== '') document.getElementById('user-prefs').classList.add('forum-gingerbread');
if (cookies.read('shared-avatars') !== '') document.getElementById('user-prefs').classList.add('shared-avatars');
if (cookies.read('new-search') !== '') document.getElementById('user-prefs').classList.add('new-search');
if (cookies.read('stop-auto-play-video') !== '') document.getElementById('user-prefs').classList.add('stop-auto-play-video');
//desktop view on mobile
if (cookies.read('desktop-on-mobile') !== ''){
document.getElementById('user-prefs').classList.add('desktop-on-mobile');
var viewport = document.querySelector("meta[name=viewport]");
viewport.setAttribute('content', 'width=1000');
}
}
function updateDesktopPrefs() {
if (cookies.read('wide-load') !== '') document.getElementById('sidebar-toggle-wideload').classList.add('active');
if (cookies.read('night-vision') !== '') document.getElementById('sidebar-toggle-nightvision').classList.add('active');
if (cookies.read('sticky-header') !== '') document.getElementById('sidebar-toggle-stickyheader').classList.add('active');
if (cookies.read('show-spoilers') !== '') document.getElementById('sidebar-toggle-showspoilers').classList.add('active');
}
function updateMobilePrefs() {
if (cookies.read('show-spoilers') !== '') document.getElementById('mobile-toggle-showspoilers').classList.add('active');
if (cookies.read('night-vision') !== '') document.getElementById('mobile-toggle-nightvision').classList.add('active');
if (cookies.read('sticky-header') !== '') document.getElementById('mobile-toggle-stickyheader').classList.add('active');
if (cookies.read('highlight-links') !== '') document.getElementById('mobile-toggle-highlightlinks').classList.add('active');
}
if (document.cookie.indexOf("scroll0=") < 0) {
// do nothing
} else {
console.log('ads removed by scroll.com');
var adsRemovedWith = 'scroll';
var style = document.createElement('style');
style.innerHTML = '#header-ad, .proper-ad-unit, .square_ad, .sb-ad-unit { display: none !important; } ';
document.head.appendChild(style);
}
</script>
<script type="text/javascript">
var tvtropes_config = {
astri_stream_enabled : "",
is_logged_in : "",
handle : "",
get_astri_stream : "",
revnum : "c58d8df02f09262390bbd03db7921fc35c6af306",
img_domain : "https://static.tvtropes.org",
adblock : "1",
adblock_url : "propermessage.io",
pause_editing : "0",
pause_editing_msg : "",
pause_site_changes : ""
};
</script>
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-3821842-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body class="">
<i id="user-prefs"></i>
<script>updateUserPrefs();</script>
<div id="fb-root"></div>
<div id="modal-box"></div>
<header class="headroom-element" id="main-header-bar">
<div id="main-header-bar-inner">
<span class="header-spacer" id="header-spacer-left"></span>
<a class="mobile-menu-toggle-button tablet-on" href="#mobile-menu" id="main-mobile-toggle"><span></span><span></span><span></span></a>
<a class="no-dev" href="/" id="main-header-logoButton"></a>
<span class="header-spacer" id="header-spacer-right"></span>
<nav class="tablet-off" id="main-header-nav">
<a href="/pmwiki/pmwiki.php/Main/Tropes">Tropes</a>
<a href="/pmwiki/pmwiki.php/Main/Media">Media</a>
<a class="nav-browse" href="/pmwiki/browse.php">Browse</a>
<a href="/pmwiki/index_report.php">Indexes</a>
<a href="/pmwiki/topics.php">Forums</a>
<a class="nav-browse" href="/pmwiki/recent_videos.php">Videos</a>
</nav>
<div id="main-header-bar-right">
<div class="font-xs mobile-off" id="signup-login-box">
<a class="hover-underline bold" data-modal-target="signup" href="/pmwiki/login.php">Join</a>
<a class="hover-underline bold" data-modal-target="login" href="/pmwiki/login.php">Login</a>
</div>
<div class="mobile-on inline" id="signup-login-mobileToggle">
<a data-modal-target="login" href="/pmwiki/login.php"><i class="fa fa-user"></i></a>
</div>
<div id="search-box">
<form action="/pmwiki/search_result.php" class="search">
<input class="search-box" name="q" placeholder="Search" required="" type="text" value=""/>
<input class="submit-button" type="submit" value=""/>
<input name="search_type" type="hidden" value="article"/>
<input name="page_type" type="hidden" value="all"/>
<input name="cx" type="hidden" value="partner-pub-6610802604051523:amzitfn8e7v"/>
<input name="cof" type="hidden" value="FORID:10"/>
<input name="ie" type="hidden" value="ISO-8859-1"/>
<input name="siteurl" type="hidden" value=""/>
<input name="ref" type="hidden" value=""/>
<input name="ss" type="hidden" value=""/>
</form>
<a class="mobile-on mobile-search-toggle close-x" href="#close-search"><i class="fa fa-close"></i></a>
</div>
<div id="random-box">
<a class="button-random-trope" href="/pmwiki/pmwiki.php/Main/DeadlyDustStorm" onclick="ga('send', 'event', 'button', 'click', 'random trope');" rel="nofollow"></a>
<a class="button-random-media" href="/pmwiki/pmwiki.php/Music/EdSheeran" onclick="ga('send', 'event', 'button', 'click', 'random media');" rel="nofollow"></a>
</div>
</div>
</div>
<div class="tablet-on" id="mobile-menu"><div class="mobile-menu-options">
<div class="nav-wrapper">
<a class="xl" href="/pmwiki/pmwiki.php/Main/Tropes">Tropes</a>
<a class="xl" href="/pmwiki/pmwiki.php/Main/Media">Media</a>
<a class="xl" href="/pmwiki/browse.php">Browse</a>
<a class="xl" href="/pmwiki/index_report.php">Indexes</a>
<a class="xl" href="/pmwiki/topics.php">Forums</a>
<a class="xl" href="/pmwiki/recent_videos.php">Videos</a>
<a href="/pmwiki/query.php?type=att">Ask The Tropers</a>
<a href="/pmwiki/query.php?type=tf">Trope Finder</a>
<a href="/pmwiki/query.php?type=ykts">You Know That Show...</a>
<a href="/pmwiki/tlp_activity.php">Trope Launch Pad</a>
<a data-click-toggle="active" href="#tools">Tools <i class="fa fa-chevron-down"></i></a>
<div class="tools-dropdown mobile-dropdown-linkList">
<a href="/pmwiki/cutlist.php">Cut List</a>
<a href="/pmwiki/changes.php">New Edits</a>
<a href="/pmwiki/recent_edit_reasons.php">Edit Reasons</a>
<a href="/pmwiki/launches.php">Launches</a>
<a href="/pmwiki/img_list.php">Images List</a>
<a href="/pmwiki/crown_activity.php">Crowner Activity</a>
<a href="/pmwiki/no_types.php">Un-typed Pages</a>
<a href="/pmwiki/page_type_audit.php">Recent Page Type Changes</a>
</div>
<a data-click-toggle="active" href="#hq">Tropes HQ <i class="fa fa-chevron-down"></i></a>
<div class="tools-dropdown mobile-dropdown-linkList">
<a href="/pmwiki/about.php">About Us</a>
<a href="/pmwiki/contact.php">Contact Us</a>
<a href="mailto:advertising@proper.io">Advertise</a>
<a href="/pmwiki/dmca.php">DMCA Notice</a>
<a href="/pmwiki/privacypolicy.php">Privacy Policy</a>
</div>
<a href="/pmwiki/ad-free-subscribe.php">Go Ad-Free</a>
<div class="toggle-switches">
<ul class="mobile-menu display-toggles">
<li>Show Spoilers <div class="display-toggle show-spoilers" id="mobile-toggle-showspoilers"></div></li>
<li>Night Vision <div class="display-toggle night-vision" id="mobile-toggle-nightvision"></div></li>
<li>Sticky Header <div class="display-toggle sticky-header" id="mobile-toggle-stickyheader"></div></li>
<li>Highlight Links <div class="display-toggle highlight-links" id="mobile-toggle-highlightlinks"></div></li>
</ul>
<script>updateMobilePrefs();</script>
</div>
</div>
</div>
</div>
</header>
<div class="mobile-on" id="homepage-introBox-mobile">
<a href="/"><img class="logo-small" src="/images/logo-white-big.png"/></a>
<form action="/pmwiki/search_result.php" class="search" style="margin:10px -5px -6px -5px;">
<input class="search-box" name="q" placeholder="Search" required="" type="text" value=""/>
<input class="submit-button" type="submit" value=""/>
<input name="search_type" type="hidden" value="article"/>
<input name="page_type" type="hidden" value="all"/>
<input name="cx" type="hidden" value="partner-pub-6610802604051523:amzitfn8e7v"/>
<input name="cof" type="hidden" value="FORID:10"/>
<input name="ie" type="hidden" value="ISO-8859-1"/>
<input name="siteurl" type="hidden" value=""/>
<input name="ref" type="hidden" value=""/>
<input name="ss" type="hidden" value=""/>
</form>
</div>
<div class="ad" id="header-ad-wrapper">
<div id="header-ad">
<div class="ad-size-970x90 atf_banner">
<div class="proper-ad-unit">
<div id="proper-ad-tvtropes_ad_1"> <script>propertag.cmd.push(function() { proper_display('tvtropes_ad_1'); });</script> </div>
</div> </div>
</div>
</div>
<div id="main-container">
<div class="action-bar mobile-off" id="action-bar-top">
<div class="action-bar-right">
<p>Follow TV Tropes</p>
<a class="button-fb" href="https://www.facebook.com/TVTropes">
<i class="fa fa-facebook"></i></a>
<a class="button-tw" href="https://www.twitter.com/TVTropes">
<i class="fa fa-twitter"></i></a>
<a class="button-re" href="https://www.reddit.com/r/TVTropes">
<i class="fa fa-reddit-alien"></i></a>
</div>
<nav class="actions-wrapper" itemscope="" itemtype="http://schema.org/SiteNavigationElement">
<ul class="page-actions" id="top_main_list">
<li class="link-edit">
<a class="article-edit-button" data-modal-target="login" href="/pmwiki/pmwiki.php/Main/ThematicThemeTune?action=edit" rel="nofollow">
<i class="fa fa-pencil"></i> Edit Page</a></li><li class="link-related"><a href="/pmwiki/relatedsearch.php?term=Main/ThematicThemeTune">
<i class="fa fa-share-alt"></i> Related</a></li><li class="link-history"><a href="/pmwiki/article_history.php?article=Main.ThematicThemeTune">
<i class="fa fa-history"></i> History</a></li><li class="link-discussion"><a href="/pmwiki/remarks.php?trope=Main.ThematicThemeTune">
<i class="fa fa-comment"></i> Discussion</a></li> </ul>
<button class="nav__dropdown-toggle" id="top_more_button" onclick="toggle_more_menu('top');" type="button">More</button>
<ul class="more_menu hidden_more_list" id="top_more_list">
<li class="link-todo tuck-always more_list_item"><a data-modal-target="login" href="#todo"><i class="fa fa-check-circle"></i> To Do</a></li><li class="link-pageSource tuck-always more_list_item"><a data-modal-target="login" href="/pmwiki/pmwiki.php/Main/ThematicThemeTune?action=source" rel="nofollow" target="_blank"><i class="fa fa-code"></i> Page Source</a></li> </ul>
</nav>
<div class="WikiWordModalStub"></div>
<div class="ImgUploadModalStub" data-page-type="Article"></div>
<div class="login-alert" style="display: none;">
You need to <a href="/pmwiki/login.php" style="color:#21A0E8">login</a> to do this. <a href="/pmwiki/login.php?tab=register_account" style="color:#21A0E8">Get Known</a> if you don't have an account
</div>
</div>
<div class="page-Article" id="main-content">
<article class="with-sidebar" id="main-entry">
<input id="groupname-hidden" type="hidden" value="Main"/>
<input id="title-hidden" type="hidden" value="ThematicThemeTune"/>
<input id="article_id" type="hidden" value="7133"/>
<input id="logged_in" type="hidden" value="false"/>
<p class="hidden" id="current_url">http://tvtropes.org/pmwiki/pmwiki.php/Main/ThematicThemeTune</p>
<meta content="" itemprop="datePublished"/>
<meta content="" itemprop="articleSection"/>
<meta content="" itemprop="image"/>
<a class="watch-button" data-modal-target="login" href="#watch">Follow<span>ing</span></a>
<h1 class="entry-title" itemprop="headline">
Thematic Theme Tune
</h1>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"name": "tvtropes.org",
"item": "https://tvtropes.org"
},{
"@type": "ListItem",
"position": 2,
"name": "Tropes",
"item": "https://tvtropes.org/pmwiki/pmwiki.php/Main/Tropes"
},{
"@type": "ListItem",
"position": 3,
"name": "Thematic Theme Tune" }]
}
</script>
<a class="mobile-actionbar-toggle mobile-on" data-click-toggle="active" href="#mobile-actions-toggle" id="mobile-actionbar-toggle">
<p class="tiny-off">Go To</p><span></span><span></span><span></span><i class="fa fa-pencil"></i></a>
<nav class="mobile-actions-wrapper mobile-on" id="mobile-actions-bar"></nav>
<div class="modal fade hidden-until-active" id="editLockModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button aria-label="Close" class="close" data-dismiss="modal" type="button"> <span aria-hidden="true">×</span></button>
<h4 class="modal-title">Edit Locked</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="body">
<div class="danger troper_locked_message"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<nav class="body-options" itemscope="" itemtype="http://schema.org/SiteNavigationElement">
<ul class="subpage-links">
<li>
<a class="subpage-link curr-subpage" href="/pmwiki/pmwiki.php/Main/ThematicThemeTune" title="The Main page">
<span class="wrapper"><span class="spi main-page"></span>Main</span></a>
</li>
<li>
<a class="subpage-link" href="/pmwiki/pmwiki.php/Laconic/ThematicThemeTune" title="The Laconic page">
<span class="wrapper"><span class="spi laconic-icon"></span>Laconic</span></a>
</li>
<li class="create-subpage dropdown">
<a aria-expanded="false" class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);" role="button">
<span class="wrapper">Create New <i class="fa fa-plus-circle"></i></span>
</a>
<select onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);">
<option value="">- Create New -</option>
<option value="/pmwiki/pmwiki.php/Analysis/ThematicThemeTune?action=edit">Analysis</option>
<option value="/pmwiki/pmwiki.php/Characters/ThematicThemeTune?action=edit">Characters</option>
<option value="/pmwiki/pmwiki.php/FanficRecs/ThematicThemeTune?action=edit">FanficRecs</option>
<option value="/pmwiki/pmwiki.php/FanWorks/ThematicThemeTune?action=edit">FanWorks</option>
<option value="/pmwiki/pmwiki.php/Fridge/ThematicThemeTune?action=edit">Fridge</option>
<option value="/pmwiki/pmwiki.php/Haiku/ThematicThemeTune?action=edit">Haiku</option>
<option value="/pmwiki/pmwiki.php/Headscratchers/ThematicThemeTune?action=edit">Headscratchers</option>
<option value="/pmwiki/pmwiki.php/ImageLinks/ThematicThemeTune?action=edit">ImageLinks</option>
<option value="/pmwiki/pmwiki.php/PlayingWith/ThematicThemeTune?action=edit">PlayingWith</option>
<option value="/pmwiki/pmwiki.php/Quotes/ThematicThemeTune?action=edit">Quotes</option>
<option value="/pmwiki/pmwiki.php/Recap/ThematicThemeTune?action=edit">Recap</option>
<option value="/pmwiki/pmwiki.php/ReferencedBy/ThematicThemeTune?action=edit">ReferencedBy</option>
<option value="/pmwiki/pmwiki.php/Synopsis/ThematicThemeTune?action=edit">Synopsis</option>
<option value="/pmwiki/pmwiki.php/Timeline/ThematicThemeTune?action=edit">Timeline</option>
<option value="/pmwiki/pmwiki.php/Trivia/ThematicThemeTune?action=edit">Trivia</option>
<option value="/pmwiki/pmwiki.php/WMG/ThematicThemeTune?action=edit">WMG</option>
<option value="/pmwiki/pmwiki.php/YMMV/ThematicThemeTune?action=edit">YMMV</option>
</select>
</li>
</ul>
</nav>
<div class="article-content retro-folders" id="main-article">
<p>A <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ThemeTune" title="/pmwiki/pmwiki.php/Main/ThemeTune">Theme Tune</a> which, while not specific to the show in the manner of an <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ExpositoryThemeTune" title="/pmwiki/pmwiki.php/Main/ExpositoryThemeTune">Expository Theme Tune</a>, nevertheless attempts to capture the thematic elements of the show in its lyrics, usually mushy stuff about love, relationships, and family.
</p><p>The most common form of <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ThemeTune" title="/pmwiki/pmwiki.php/Main/ThemeTune">Theme Tune</a> for the <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SitCom" title="/pmwiki/pmwiki.php/Main/SitCom">Sitcom</a> in the late 70s and 80s. Often overlaps with the <a class="twikilink" href="/pmwiki/pmwiki.php/Main/RealSongThemeTune" title="/pmwiki/pmwiki.php/Main/RealSongThemeTune">Real Song Theme Tune</a>. For children's shows, often overlaps with the <a class="twikilink" href="/pmwiki/pmwiki.php/Main/TitleThemeTune" title="/pmwiki/pmwiki.php/Main/TitleThemeTune">Title Theme Tune</a>.
</p><div class="proper-ad-unit mobile-ad square_ad"><h6 class="ad-caption">Advertisement:</h6><div id="proper-ad-tvtropes_mobile_ad_1"><script>propertag.cmd.push(function() { proper_display('tvtropes_mobile_ad_1'); })</script></div></div><p>It may be interesting to note that, at least among the <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SitCom" title="/pmwiki/pmwiki.php/Main/SitCom">Sitcom</a> examples, the title of the show itself is <em>also</em> usually something thematic and non-specific meant to indicate the general scope of the show without tying itself too closely to the specifics of the premise.
</p><p>Most <a class="twikilink" href="/pmwiki/pmwiki.php/Main/Anime" title="/pmwiki/pmwiki.php/Main/Anime">Anime</a> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ThemeTune" title="/pmwiki/pmwiki.php/Main/ThemeTune">Theme Tunes</a> are a form of this, especially '70s <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SuperRobot" title="/pmwiki/pmwiki.php/Main/SuperRobot">Super Robot</a> ones.
</p><hr/><h2>Examples</h2>
<p></p><div class="folderlabel" onclick="toggleAllFolders();"> open/close all folders </div>
<p></p><div class="folderlabel" onclick="togglefolder('folder0');"> Anime </div><div class="folder" id="folder0" isfolder="true" style="display:block;">
<ul><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Anime/Berserk2016" title="/pmwiki/pmwiki.php/Anime/Berserk2016">Berserk (2016)</a></em>: The lyrics of the opening theme <em>Inferno</em> by 9mm Parabellum Bullet give voice to Guts' rage, his struggle against impossible odds, and his determination to put his life on the line to protect what little he has left.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Anime/SamuraiChamploo" title="/pmwiki/pmwiki.php/Anime/SamuraiChamploo">Samurai Champloo</a></em> and its opening rap song, "Battlecry", an examination of the samurai life.
</li><li> The lyrics of many of the opening themes for <em><a class="twikilink" href="/pmwiki/pmwiki.php/Manga/Bleach" title="/pmwiki/pmwiki.php/Manga/Bleach">Bleach</a></em> involve protecting someone — a major theme of the series.
</li><li> Over its run, the <em><a class="twikilink" href="/pmwiki/pmwiki.php/Manga/RanmaOneHalf" title="/pmwiki/pmwiki.php/Manga/RanmaOneHalf">Ranma ½</a></em> television series, movies, and OVA, had over 30 opening and ending theme songs, in some cases sung by the characters, but usually only peripherally relating to the characters (if at all). A notable exception is "Lambada Ranma" which references characters by name.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Anime/MaisonIkkoku" title="/pmwiki/pmwiki.php/Anime/MaisonIkkoku">Maison Ikkoku</a></em> often did this with its opening theme. Particularly the first opening <a class="urllink" href="https://www.youtube.com/watch?v=QDvA_D-AsrQ">Kanashimi yo Konnichiwa (Hello Sadness)<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a>, which became so identified with the series that a string orchestra version was played for the climactic finale. While Kanashimi yo Konnichiwa expressed many of main female lead's perspective and feelings, the 1st ending <a class="urllink" href="https://www.youtube.com/watch?v=AHiHy6R-6Wg">Ashita Hareru Ka (Will Tomorrow Be Sunny?)<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> was well juxtaposed because it expressed the conflicted feelings of the male lead. This dynamic was reversed for the one episode <em>Maison Ikkoku</em> used "Alone Again (Naturally)" and "<a class="urllink" href="https://www.youtube.com/watch?v=utKUj-Sr-tc">Get Down<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a>" both by Gilbert O'Sullivan.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Anime/Monster" title="/pmwiki/pmwiki.php/Anime/Monster">Monster</a></em>'s end theme has lyrics reflecting Tenma's idealistic philosophy.
</li><li> The movie <em><a class="twikilink" href="/pmwiki/pmwiki.php/VisualNovel/FateStayNight" title="/pmwiki/pmwiki.php/VisualNovel/FateStayNight">Fate/stay night</a>: Unlimited Blade Works</em> has the song <a class="urllink" href="https://www.youtube.com/watch?v=-yIO1IMuqn4">"Imitation"<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a>, with lyrics which describe both the protagonist's <a class="twikilink" href="/pmwiki/pmwiki.php/Main/PowerCopying" title="/pmwiki/pmwiki.php/Main/PowerCopying">powers</a> and <a class="twikilink" href="/pmwiki/pmwiki.php/Main/HeroicWannabe" title="/pmwiki/pmwiki.php/Main/HeroicWannabe">his</a> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/IronWoobie" title="/pmwiki/pmwiki.php/Main/IronWoobie">ideals</a> without directly referencing the story.
<div class="indent"><em>I'll show you that this <a class="twikilink" href="/pmwiki/pmwiki.php/Main/TragicDream" title="/pmwiki/pmwiki.php/Main/TragicDream">false dream</a> can be fulfilled/You can still ridicule me now/<a class="twikilink" href="/pmwiki/pmwiki.php/Main/HeroicSpirit" title="/pmwiki/pmwiki.php/Main/HeroicSpirit">Even if it's idealistic, I want to make it my aim</a>/It's still far away now, But surely/What is fake will become what is real.</em>
</div></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Anime/TengenToppaGurrenLagann" title="/pmwiki/pmwiki.php/Anime/TengenToppaGurrenLagann">Tengen Toppa Gurren Lagann</a></em> has Rap Is a Man's Soul, which is about being <a class="twikilink" href="/pmwiki/pmwiki.php/Main/HotBlooded" title="/pmwiki/pmwiki.php/Main/HotBlooded">Hot-Blooded</a> and <a class="twikilink" href="/pmwiki/pmwiki.php/Main/BeyondTheImpossible" title="/pmwiki/pmwiki.php/Main/BeyondTheImpossible">doing the impossible with fighting spirit</a>, the two main points of the series. The only thing that connects it to the series is a few vague mentions of "the underground".
<ul><li> Sorairo Days, the theme song for the show itself, also covers themes of not giving in to despair and making your own future, two concepts that are heavily explored in the second season, and even more so the <em>Lagann-Hen</em> movie.
</li></ul></li><li> The <em><a class="twikilink" href="/pmwiki/pmwiki.php/Manga/Area88" title="/pmwiki/pmwiki.php/Manga/Area88">Area 88</a></em> OVA has "How Far to Paradise," an appropriate question for a series whose protagonist has been duped into enlisting in a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/LegionOfLostSouls" title="/pmwiki/pmwiki.php/Main/LegionOfLostSouls">foreign legion air force</a>.
</li><li> "A Cruel Angel's Thesis", the famous opening theme to <em><a class="twikilink" href="/pmwiki/pmwiki.php/Anime/NeonGenesisEvangelion" title="/pmwiki/pmwiki.php/Anime/NeonGenesisEvangelion">Neon Genesis Evangelion</a></em>, contains lyrics relevant to the themes of the show and is seemingly sung to Shinji — in fact, series director <a class="twikilink" href="/pmwiki/pmwiki.php/Creator/HideakiAnno" title="/pmwiki/pmwiki.php/Creator/HideakiAnno">Hideaki Anno</a> rejected the addition of a proposed male chorus because he wanted to maintain the "maternal" quality of the song. (And if you've seen <em>Evangelion</em>, you know that mothers play a pretty huge part in the story.)
</li><li> While the various opening and ending themes to <em><a class="twikilink" href="/pmwiki/pmwiki.php/Franchise/FullmetalAlchemist" title="/pmwiki/pmwiki.php/Franchise/FullmetalAlchemist">Fullmetal Alchemist</a></em> vary considerably in degrees of relevance to the show, <a class="urllink" href="https://www.youtube.com/watch?v=xcZKVPmgxVM">the second ending theme<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> to <a class="twikilink" href="/pmwiki/pmwiki.php/Anime/FullmetalAlchemist" title="/pmwiki/pmwiki.php/Anime/FullmetalAlchemist">the 2003 anime</a>, "Tobira no Mukou He" ("The Other Side of the Gate") contains <a class="urllink" href="https://www.youtube.com/watch?v=SujqX8dAm_8">lyrics that are more than a little bit relevant<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> to the plot of the show - particularly, interestingly enough, when <a class="twikilink" href="/pmwiki/pmwiki.php/Main/Foreshadowing" title="/pmwiki/pmwiki.php/Main/Foreshadowing">looked upon in retrospect</a>.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Manga/Bokurano" title="/pmwiki/pmwiki.php/Manga/Bokurano">Bokurano</a></em>'s "Uninstall" has a haunting female chorus, with lines about being helpless and insignificant, and having no choice but to "pretend to be a warrior with no fear" (which all are core aspects of the show).
</li><li> "Connect" and "Magia" from <em><a class="twikilink" href="/pmwiki/pmwiki.php/Anime/PuellaMagiMadokaMagica" title="/pmwiki/pmwiki.php/Anime/PuellaMagiMadokaMagica">Puella Magi Madoka Magica</a></em>. Especially the former, taking into account the events of episode 10 where everything finally makes sense.
</li><li> The theme song of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Anime/DragonBallKai" title="/pmwiki/pmwiki.php/Anime/DragonBallKai">Dragon Ball Kai</a></em> is an exhortation apparently from the boisterous Goku to his timid son Gohan to explore the world around him because the two of them together are invincible.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Anime/SailorMoonCrystal" title="/pmwiki/pmwiki.php/Anime/SailorMoonCrystal">Sailor Moon Crystal</a></em>:
<ul><li> OP "Moon Pride," while not literally <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ExpositoryThemeTune" title="/pmwiki/pmwiki.php/Main/ExpositoryThemeTune">expository</a> is pretty explicit as feminist group battlecry fitting a set of <a class="twikilink" href="/pmwiki/pmwiki.php/Main/MagicalGirlWarrior" title="/pmwiki/pmwiki.php/Main/MagicalGirlWarrior">Magical Girl Warriors</a>. Given it's cleary written for the series (The last words spoken in the entire song are the heroine's Senshi name), this is entirely justified.
</li></ul><div class="indent">We all have unshakeable wills
</div><div class="indent">We will fight on our own
</div><div class="indent">Without leaving our destiny to the prince
</div><ul><li> The ending theme "Gekkou" ("Moonbow") while a typical romantic ballad, fits Princess Serenity thinking on her romance with Endymion, scenes from which play as the credits roll.
</li></ul></li><li> "Guren no Yumiya", the first opening theme for <em><a class="twikilink" href="/pmwiki/pmwiki.php/Manga/AttackOnTitan" title="/pmwiki/pmwiki.php/Manga/AttackOnTitan">Attack on Titan</a></em>, is a hot-blooded anthem about rejecting false peace and "the complacency of cattle" in favor of <a class="twikilink" href="/pmwiki/pmwiki.php/Main/LastStand" title="/pmwiki/pmwiki.php/Main/LastStand">going down fighting</a>.
</li><li> Many <em><a class="twikilink" href="/pmwiki/pmwiki.php/Manga/OnePiece" title="/pmwiki/pmwiki.php/Manga/OnePiece">One Piece</a></em> theme tunes are motivational songs, matching the idealistic main characters, with <a class="twikilink" href="/pmwiki/pmwiki.php/Main/OceanPunk" title="/pmwiki/pmwiki.php/Main/OceanPunk">nautical</a> and <a class="twikilink" href="/pmwiki/pmwiki.php/Main/Pirate" title="/pmwiki/pmwiki.php/Main/Pirate">pirate</a> terms thrown in (e.g. <a class="twikilink" href="/pmwiki/pmwiki.php/Main/TreasureMap" title="/pmwiki/pmwiki.php/Main/TreasureMap">maps</a>, ocean, waves, anchors, <a class="twikilink" href="/pmwiki/pmwiki.php/Main/PirateBooty" title="/pmwiki/pmwiki.php/Main/PirateBooty">treasure</a>, flags, sails, etc.).
</li><li> While the original Japanese theme song of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Anime/HeidiGirlOfTheAlps" title="/pmwiki/pmwiki.php/Anime/HeidiGirlOfTheAlps">Heidi, Girl of the Alps</a></em> is pretty thematic already, mention should be given to the German theme song<span class="notelabel" onclick="togglenote('note0sg8w');"><sup>note </sup></span><span class="inlinefolder" id="note0sg8w" isnote="true" onclick="togglenote('note0sg8w');" style="cursor:pointer;font-size:smaller;display:none;">The basis for both the European and Canadian French theme songs, as well as the Italian theme song.</span> as well, which talks about how the mountains are "(her) world...because (she is) at home there", and which mentions "dark fir trees", and "green grass(lands) / meadows in the sunshine", among other things.
</li></ul></div>
<p></p><div class="folderlabel" onclick="togglefolder('folder1');"> Comic Books </div><div class="folder" id="folder1" isfolder="true" style="display:block;">
<ul><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/ComicBook/Nextwave" title="/pmwiki/pmwiki.php/ComicBook/Nextwave">Nextwave</a></em> has a song which pretty much gives you a quick audio burst of what to expect from the series <a class="urllink" href="http://www.marvel.com/publishing/stories/nextwave/NextWaveFinal.mp3">...yeah<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a>
</li></ul></div>
<div class="proper-ad-unit mobile-ad square_ad"><h6 class="ad-caption">Advertisement:</h6><div id="proper-ad-tvtropes_mobile_ad_2"><script>propertag.cmd.push(function() { proper_display('tvtropes_mobile_ad_2'); })</script></div></div><p></p><div class="folderlabel" onclick="togglefolder('folder2');"> Fan Works </div><div class="folder" id="folder2" isfolder="true" style="display:block;">
<ul><li> The author of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Fanfic/TheUltimateEvil" title="/pmwiki/pmwiki.php/Fanfic/TheUltimateEvil">The Ultimate Evil</a></em> has <a class="twikilink" href="/pmwiki/pmwiki.php/Main/WordOfGod" title="/pmwiki/pmwiki.php/Main/WordOfGod">posted</a> in their <a class="twikilink" href="/pmwiki/pmwiki.php/Main/FanFiction" title="/pmwiki/pmwiki.php/Main/FanFiction">Fan Fiction</a> page as the story's main theme "Love Is Blind" by <a class="twikilink" href="/pmwiki/pmwiki.php/Music/DreamEvil" title="/pmwiki/pmwiki.php/Music/DreamEvil">Dream Evil</a>. The sequel called <em>The Stronger Evil</em> has "Not Strong Enough" by <a class="twikilink" href="/pmwiki/pmwiki.php/Music/Apocalyptica" title="/pmwiki/pmwiki.php/Music/Apocalyptica">Apocalyptica</a>.
<ul><li> The same author has done the same to their other stories, like "Never Be The Same" by <a class="twikilink" href="/pmwiki/pmwiki.php/Music/RED" title="/pmwiki/pmwiki.php/Music/RED">Red</a> for <em><a class="twikilink" href="/pmwiki/pmwiki.php/Fanfic/TheVow" title="/pmwiki/pmwiki.php/Fanfic/TheVow">The Vow</a></em> and "Bad Company" by <a class="twikilink" href="/pmwiki/pmwiki.php/Music/FiveFingerDeathPunch" title="/pmwiki/pmwiki.php/Music/FiveFingerDeathPunch">Five Finger Death Punch</a> for <em><a class="twikilink" href="/pmwiki/pmwiki.php/Fanfic/OldWest" title="/pmwiki/pmwiki.php/Fanfic/OldWest">Old West</a></em>.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Fanfic/TheHeartTrilogy" title="/pmwiki/pmwiki.php/Fanfic/TheHeartTrilogy">The Heart Trilogy</a></em> of the same author has "Memories" (<a class="twikilink" href="/pmwiki/pmwiki.php/Music/WithinTemptation" title="/pmwiki/pmwiki.php/Music/WithinTemptation">Within Temptation</a>) for <em>Heart of Fire</em>, "World On Fire" (<a class="twikilink" href="/pmwiki/pmwiki.php/Music/LesFriction" title="/pmwiki/pmwiki.php/Music/LesFriction">Les Friction</a>) for <em>Heart of Ashes</em>, and "Everybody Wants To Rule The World" (<a class="twikilink" href="/pmwiki/pmwiki.php/Music/Lorde" title="/pmwiki/pmwiki.php/Music/Lorde">Lorde</a>) for <em>Heart of the Inferno</em>.
</li></ul></li></ul></div>
<p></p><div class="folderlabel" onclick="togglefolder('folder3');"> Films — Live-Action </div><div class="folder" id="folder3" isfolder="true" style="display:block;">
<ul><li> "Eye of the Tiger" — it's really on the border of this and <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ExpositoryThemeSong" title="/pmwiki/pmwiki.php/Main/ExpositoryThemeSong">Expository Theme Song</a>, seeing as how it rehashes all the themes from the first three <em><a class="twikilink" href="/pmwiki/pmwiki.php/Franchise/Rocky" title="/pmwiki/pmwiki.php/Franchise/Rocky">Rocky</a></em> movies, and is specific almost to the point of being expository.
</li><li> The various <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/JamesBond" title="/pmwiki/pmwiki.php/Film/JamesBond">James Bond</a></em> themes (barring <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/DrNo" title="/pmwiki/pmwiki.php/Film/DrNo">Dr. No</a></em><span class="notelabel" onclick="togglenote('note1slao');"><sup>note </sup></span><span class="inlinefolder" id="note1slao" isnote="true" onclick="togglenote('note1slao');" style="cursor:pointer;font-size:smaller;display:none;">though one can make a case for "Three Blind Mice", which is the script nickname of the three killers passing as blind beggars</span>, <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/FromRussiaWithLove" title="/pmwiki/pmwiki.php/Film/FromRussiaWithLove">From Russia with Love</a></em><span class="notelabel" onclick="togglenote('note27qw5');"><sup>note </sup></span><span class="inlinefolder" id="note27qw5" isnote="true" onclick="togglenote('note27qw5');" style="cursor:pointer;font-size:smaller;display:none;">there is a song with lyrics by Matt Monro, but it doesn't feature in the opening credits, it was moved to the ending credits</span> and <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/OnHerMajestysSecretService" title="/pmwiki/pmwiki.php/Film/OnHerMajestysSecretService">On Her Majesty's Secret Service</a></em>) all have lyrics that, if not directly relevant to the plot, at least help set the tone of the rest of the movie. And are of course fuel for endless parodies.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Flashdance" title="/pmwiki/pmwiki.php/Film/Flashdance">Flashdance</a></em>... "What a Feeling"
</li><li> "Wish (Komm Zu Mir)" from the movie <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/RunLolaRun" title="/pmwiki/pmwiki.php/Film/RunLolaRun">Run Lola Run</a></em>.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/SpiderMan1" title="/pmwiki/pmwiki.php/Film/SpiderMan1">Spider-Man</a></em> has "Hero", by <a class="twikilink" href="/pmwiki/pmwiki.php/Music/Nickelback" title="/pmwiki/pmwiki.php/Music/Nickelback">Chad Kroeger</a> and Josey Scott.
</li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/AFaceInTheCrowd" title="/pmwiki/pmwiki.php/Film/AFaceInTheCrowd">A Face in the Crowd</a></em>, the titular <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ShowWithinAShow" title="/pmwiki/pmwiki.php/Main/ShowWithinAShow">Show Within a Show</a> has "Jes' Plain Folks," sung by the Barefoot Baritones. Lonesome Rhodes supposedly wrote it, but Marcia says that it was actually the work of two uncredited songwriters.
</li><li> "Laid" by James serves as this for the <a class="twikilink" href="/pmwiki/pmwiki.php/Film/AmericanPie" title="/pmwiki/pmwiki.php/Film/AmericanPie">American Pie</a> series.
</li></ul></div>
<p></p><div class="folderlabel" onclick="togglefolder('folder4');"> Live-Action TV </div><div class="folder" id="folder4" isfolder="true" style="display:block;">
<ul><li> "Love Is All Around" (the theme to <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheMaryTylerMooreShow" title="/pmwiki/pmwiki.php/Series/TheMaryTylerMooreShow">The Mary Tyler Moore Show</a></em>, written and sung by Sonny Curtis) is one of the most memorable and hummable examples.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/FamilyMatters" title="/pmwiki/pmwiki.php/Series/FamilyMatters">Family Matters</a></em>
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/GrowingPains" title="/pmwiki/pmwiki.php/Series/GrowingPains">Growing Pains</a></em>
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/FullHouse" title="/pmwiki/pmwiki.php/Series/FullHouse">Full House</a></em>
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/StepByStep" title="/pmwiki/pmwiki.php/Series/StepByStep">Step by Step</a></em>
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/BoyMeetsWorld" title="/pmwiki/pmwiki.php/Series/BoyMeetsWorld">Boy Meets World</a></em> (for the last three seasons, following a succession of <a class="twikilink" href="/pmwiki/pmwiki.php/Main/InstrumentalThemeTune" title="/pmwiki/pmwiki.php/Main/InstrumentalThemeTune">instrumental themes</a>)
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/WhosTheBoss" title="/pmwiki/pmwiki.php/Series/WhosTheBoss">Who's the Boss?</a></em>
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Friends" title="/pmwiki/pmwiki.php/Series/Friends">Friends</a></em> ("I'll Be There For You", which would later be released as a full-length single.)
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Cheers" title="/pmwiki/pmwiki.php/Series/Cheers">Cheers</a></em> ("Where Everybody Knows Your Name" by Gary Portnoy, also released as a single.)
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/StarTrekEnterprise" title="/pmwiki/pmwiki.php/Series/StarTrekEnterprise">Star Trek: Enterprise</a></em>
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/WKRPInCincinnati" title="/pmwiki/pmwiki.php/Series/WKRPInCincinnati">WKRP in Cincinnati</a></em>: The theme song repeats the show's title frequently, but is more about the nomadic life of a DJ in the radio business.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/AllInTheFamily" title="/pmwiki/pmwiki.php/Series/AllInTheFamily">All in the Family</a></em> ("<em>Boy, the way Glen Miller played/Songs that made the Hit Parade...</em>")
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheJeffersons" title="/pmwiki/pmwiki.php/Series/TheJeffersons">The Jeffersons</a></em> ("<em>We're movin' on up/To the East Side/To a deluxe apartment/In the sky...</em>")
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Monk" title="/pmwiki/pmwiki.php/Series/Monk">Monk</a></em>, season 2 on ("It's a Jungle Out There"). The first season had an <a class="twikilink" href="/pmwiki/pmwiki.php/Main/InstrumentalThemeTune" title="/pmwiki/pmwiki.php/Main/InstrumentalThemeTune">Instrumental Theme Tune</a>.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/WelcomeBackKotter" title="/pmwiki/pmwiki.php/Series/WelcomeBackKotter">Welcome Back, Kotter</a></em>
</li><li> The ending theme of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/RedDwarf" title="/pmwiki/pmwiki.php/Series/RedDwarf">Red Dwarf</a></em> was halfway this, halfway <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SurrealThemeTune" title="/pmwiki/pmwiki.php/Main/SurrealThemeTune">Surreal Theme Tune</a>; it had lyrics that switched from fantastic and weird to dark and depressing, much like the show itself. <a class="twikilink" href="/pmwiki/pmwiki.php/Main/WordOfGod" title="/pmwiki/pmwiki.php/Main/WordOfGod">Word of God</a> from Howard Goodal is that it was <em>supposed</em> to be an <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ExpositoryThemeTune" title="/pmwiki/pmwiki.php/Main/ExpositoryThemeTune">Expository Theme Tune</a> about Lister's desire to settle on Fiji. Which never got mentioned after the first episode.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheDrewCareyShow" title="/pmwiki/pmwiki.php/Series/TheDrewCareyShow">The Drew Carey Show</a></em>... amazingly, all <em>three</em> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ThemeTune" title="/pmwiki/pmwiki.php/Main/ThemeTune">Theme Tunes</a> are Thematic Theme Tunes.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Firefly" title="/pmwiki/pmwiki.php/Series/Firefly">Firefly</a></em>'s theme is quiet and defiant, befitting a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SpaceWestern" title="/pmwiki/pmwiki.php/Main/SpaceWestern">Space Western</a> ("Take my love, take my land / take me where I cannot stand / I don't care, I'm still free / You can't take the sky from me..."). It makes sense, since Joss Whedon did write the song.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Psych" title="/pmwiki/pmwiki.php/Series/Psych">Psych</a></em>: "I know you know that I'm not telling the truth / I know you know they just don't have any proof..." For bonus points, it's <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DoItYourselfThemeTune" title="/pmwiki/pmwiki.php/Main/DoItYourselfThemeTune">actually sung by the show's creator.</a>
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/SlingsAndArrows" title="/pmwiki/pmwiki.php/Series/SlingsAndArrows">Slings & Arrows</a></em> has a different theme tune each season: all of them are comic songs, sung by the show's <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ThoseTwoGuys" title="/pmwiki/pmwiki.php/Main/ThoseTwoGuys">Those Two Guys</a>, about whichever tragedy the season focuses on.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheUnit" title="/pmwiki/pmwiki.php/Series/TheUnit">The Unit</a></em> used a hip-hop version of a Military Cadence, <em>Fired Up... Feels Good</em>, in the first two seasons, and a 30-second theme called "Walk Through Fire" in the second two, both appropriate to the show, which is about an elite miltary unit whose members risk their life daily to save the world.
</li><li> "Way Down in the Hole", the theme song for the HBO series <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheWire" title="/pmwiki/pmwiki.php/Series/TheWire">The Wire</a></em>, is a strange one in that it is a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/RealSongThemeTune" title="/pmwiki/pmwiki.php/Main/RealSongThemeTune">Real Song Theme Tune</a> written <em>15 years</em> before <em>The Wire</em> ever aired (it's from <a class="twikilink" href="/pmwiki/pmwiki.php/Music/TomWaits" title="/pmwiki/pmwiki.php/Music/TomWaits">Tom Waits</a>' 1987 album <em><a class="twikilink" href="/pmwiki/pmwiki.php/Music/FranksWildYears" title="/pmwiki/pmwiki.php/Music/FranksWildYears">Franks Wild Years</a></em>). However, the song, performed by a different artist in every season (The Blind Boys Of Alabama, Waits, The Neville Brothers, purpose-assembled Baltimore choir Domaje and Steve Earle), references the struggle between Jesus and the Devil—a fitting subject for a show about the struggles people have in managing the ills of the modern American city.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/SoWeird" title="/pmwiki/pmwiki.php/Series/SoWeird">So Weird</a></em>'s "In the Darkness": "In the darkness is the light / Surrender, we'll win the fight / This girl's walked through fire and ice / But I come out on the other side of paradise." This song has an interesting double-meaning: as the theme tune, it seems to be about Fiona/Annie, a girl facing off against dark supernatural forces. But the song is also a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DoItYourselfThemeTune" title="/pmwiki/pmwiki.php/Main/DoItYourselfThemeTune">"Do It Yourself" Theme Tune</a> performed by Mackenzie Phillips as Molly Phillips, a secondary character. In the context of the show, the song is meant to be about the character's struggle with alcoholism.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Dollhouse" title="/pmwiki/pmwiki.php/Series/Dollhouse">Dollhouse</a></em> uses an instrumental version of a song that has lotsa meaningful stuff about memory, regret, and being whoever you want me to be.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheSopranos" title="/pmwiki/pmwiki.php/Series/TheSopranos">The Sopranos</a></em> ("<em>Woke up this morning/ Got yourself a gun...</em>") Which is odd, considering it's a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/RealSongThemeTune" title="/pmwiki/pmwiki.php/Main/RealSongThemeTune">Real Song Theme Tune</a>, not developed for the show or even with any knowledge of the show. However, after one of the production crew showed it to series creator David Chase, he agreed that it was perfect (grudgingly—Chase had always envisioned the show's intro having a different real song every season, or even every episode, but "Woke Up This Morning" was just too suitable to use anything else). To elaborate: the song establishes the dark and introspective tone of the show, as well as hinting at the sociopathy of its main characters. The lyrics "Your momma always said you'd be the chosen one", on the other hand, make for an ironic contrast with Tony's severe <a class="twikilink" href="/pmwiki/pmwiki.php/Main/EvilMatriarch" title="/pmwiki/pmwiki.php/Main/EvilMatriarch">mommy issues</a>.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Scrubs" title="/pmwiki/pmwiki.php/Series/Scrubs">Scrubs</a></em> ("<em>I can't do this all on my own / No, I know I'm no Superman...</em>"), emphasizing the show's <a class="twikilink" href="/pmwiki/pmwiki.php/Main/CentralTheme" title="/pmwiki/pmwiki.php/Main/CentralTheme">Central Theme</a> that you need help from the people around you to deal with the enormous stress and responsibility of being a doctor. Also a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/RealSongThemeTune" title="/pmwiki/pmwiki.php/Main/RealSongThemeTune">Real Song Theme Tune</a>.
</li><li> The game show <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/ToTellTheTruth" title="/pmwiki/pmwiki.php/Series/ToTellTheTruth">To Tell the Truth</a></em> in the 1970s: "<em>It's a lie, lie, you're telling a lie / I never know why you don't know how / To tell the truth, truth, truth, truth...</em>"
</li><li> Similarly, the game show <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/ChainReaction" title="/pmwiki/pmwiki.php/Series/ChainReaction">Chain Reaction</a></em>, when revived on GSN, used a vocal theme that ended with "It's guys against girls right now on <em>Chain Reaction</em>."
</li><li> And the short-lived game show adaptation of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Monopoly" title="/pmwiki/pmwiki.php/Series/Monopoly">Monopoly</a></em> likewise: "<a class="twikilink" href="/pmwiki/pmwiki.php/Main/SpellingSong" title="/pmwiki/pmwiki.php/Main/SpellingSong">M-O-N-O-P-O-L-Y</a>[
]Roll the dice, it's paradise / But if you fail, you go to jail!"
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheBigBangTheory" title="/pmwiki/pmwiki.php/Series/TheBigBangTheory">The Big Bang Theory</a></em>: "<em>Math, science, history / Unraveling the mysteries / That all started with a big <strong>BANG!!</strong></em>"
</li><li> If a <em><a class="twikilink" href="/pmwiki/pmwiki.php/Franchise/PowerRangers" title="/pmwiki/pmwiki.php/Franchise/PowerRangers">Power Rangers</a></em> theme isn't an <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ExpositoryThemeTune" title="/pmwiki/pmwiki.php/Main/ExpositoryThemeTune">Expository Theme Tune</a>, it is this. Although some blur the line of which is which.
</li><li> <em>And then there's <a class="twikilink" href="/pmwiki/pmwiki.php/Series/Maude" title="/pmwiki/pmwiki.php/Series/Maude">Maude</a>!</em>
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Taggart" title="/pmwiki/pmwiki.php/Series/Taggart">Taggart</a></em> has "No Mean City", which not only sums up the main characters' relationship with Glasgow ("<em>City life is strange, you take your share of the good times and bad times / It's the only life I've ever seen / This town ain't so mean</em>"), but — as a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/GeniusBonus" title="/pmwiki/pmwiki.php/Main/GeniusBonus">Genius Bonus</a> — shares its title with a novel about working class Glasgow in the 1930s.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Frasier" title="/pmwiki/pmwiki.php/Series/Frasier">Frasier</a></em> is a rather odd example of this. The lyrics to the ending theme "Tossed Salads and Scrambled Eggs" <em>are</em> thematic, but metaphorical. Psychology is never mentioned, nor is anything explicit said, making them almost <a class="twikilink" href="/pmwiki/pmwiki.php/Main/WordSaladLyrics" title="/pmwiki/pmwiki.php/Main/WordSaladLyrics">Word Salad Lyrics</a> - but it's fairly obvious that the lyrics double as oblique references to both Frasier's life and psychiatric profession. For example, the title probably refers to crazy people and things (which can mean Frasier's mind, his callers, the people around him, the bizarre situations he gets himself into, or all four at once); and the lines "And maybe I seem a bit confused / Well maybe — but I got you pegged!" in particular describe Frasier's character: rather nutty himself, but a brilliant psychiatrist.
</li></ul><ul><li> The theme to <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Desmonds" title="/pmwiki/pmwiki.php/Series/Desmonds">Desmond's</a></em> is about the "windrush"; Jamaican families arriving in Britain in the 1950s and unsure what to expect.
</li></ul><ul><li> "Making Our Dreams Come True" from <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/LaverneAndShirley" title="/pmwiki/pmwiki.php/Series/LaverneAndShirley">Laverne & Shirley</a></em>, which became a Top 40 pop hit for singer Cyndi Grecco.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/WhoseLineIsItAnyway" title="/pmwiki/pmwiki.php/Series/WhoseLineIsItAnyway">Whose Line Is It Anyway?</a></em> had a game where 2 players would sing the title sequence to a made-up 70s sitcom while Ryan & Colin acted it out.
</li><li> The theme song of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/MalcolmInTheMiddle" title="/pmwiki/pmwiki.php/Series/MalcolmInTheMiddle">Malcolm in the Middle</a></em>, "Boss of Me" by They Might Be Giants, is thematic in three ways. The verse ("Yes, no/Maybe, I don't know/Can you repeat the question?") arguably reflects Malcolm's confusion with the trials of growing up. The chorus ("You're not the boss of me now/And you're not so big") may refer to any of the recurring themes of rebellion and <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ComingOfAge" title="/pmwiki/pmwiki.php/Main/ComingOfAge">Coming of Age</a> running through the series, especially with regards to the relationship between Lois and her children. The stinger line ("Life is unfair") is the one most associated with the show (explicitly discussed in <a class="twikilink" href="/pmwiki/pmwiki.php/Main/BookEnds" title="/pmwiki/pmwiki.php/Main/BookEnds">the pilot and finale</a>), and describes the world the characters live in, particularly the unfairness of Malcolm's intelligence being treated by society as a stigma that gives him nothing but grief rather than a blessing to be admired.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Vinyl" title="/pmwiki/pmwiki.php/Series/Vinyl">Vinyl</a></em>: "Sugar Daddy", by Sturgill Simpson. As the whole series is about the American music industry in <a class="twikilink" href="/pmwiki/pmwiki.php/Main/TheSeventies" title="/pmwiki/pmwiki.php/Main/TheSeventies">The '70s</a>, the theme song evokes the era in its hard, gritty guitar riffs as much as in its lyrics.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheMaskedSinger" title="/pmwiki/pmwiki.php/Series/TheMaskedSinger">The Masked Singer</a></em>, a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/TalentShow" title="/pmwiki/pmwiki.php/Main/TalentShow">Talent Show</a> where every contestant is a celebrity performing in disguise, uses <a class="twikilink" href="/pmwiki/pmwiki.php/Music/TheWho" title="/pmwiki/pmwiki.php/Music/TheWho">"Who Are You"</a> to represent the mystery of their identity. (To drive the point home, it's also played during every elimination, which is invariably followed by a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DramaticUnmask" title="/pmwiki/pmwiki.php/Main/DramaticUnmask">Dramatic Unmask</a>.)
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/BetweenTheLions" title="/pmwiki/pmwiki.php/Series/BetweenTheLions">Between the Lions</a></em>
</li></ul></div>
<p></p><div class="folderlabel" onclick="togglefolder('folder5');"> Music </div><div class="folder" id="folder5" isfolder="true" style="display:block;">
<ul><li> You wouldn't think a music franchise would have one, but <em><a class="twikilink" href="/pmwiki/pmwiki.php/Franchise/KagerouProject" title="/pmwiki/pmwiki.php/Franchise/KagerouProject">Kagerou Project</a></em>'s overarching theme tune is "Children Record", considered by Jin to be the "Opening" of the song series (despite being made much later than the first song). It's a song all about the youth rising up and carving their own destinies for themselves, which doesn't describe a lick of what's specifically going on with the Mekakushi Dan but gets their basic plot down.
</li></ul></div>
<p></p><div class="folderlabel" onclick="togglefolder('folder6');"> Theatre </div><div class="folder" id="folder6" isfolder="true" style="display:block;">
<ul><li> The ballet <em>Fancy Free</em> has "Big Stuff," a blues song played before the action begins as a prerecorded theme. In the ballet music proper, the tune is used for the Pas de Deux.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Theatre/AFunnyThingHappenedOnTheWayToTheForum" title="/pmwiki/pmwiki.php/Theatre/AFunnyThingHappenedOnTheWayToTheForum">A Funny Thing Happened on the Way to the Forum</a></em>: The opening number "Comedy Tonight" serves as this. In between <a class="twikilink" href="/pmwiki/pmwiki.php/Main/OpeningMonologue" title="/pmwiki/pmwiki.php/Main/OpeningMonologue">Pseudolus's prologue</a> setting up the plot and setting, the song explains to the audience that they can expect a light-hearted, <a class="twikilink" href="/pmwiki/pmwiki.php/Main/BreakingTheFourthWall" title="/pmwiki/pmwiki.php/Main/BreakingTheFourthWall">meta-humorous</a> musical comedy that pays tribute to Greco-Roman theater.
<div class="indent"><em>Nothing with kings, nothing with crowns <br/>Bring on the lovers, liars, and clowns! <br/><br/>Old situations, new complications <br/>Nothing portentous or polite <br/>Tragedy tomorrow, comedy tonight!</em>
</div></li></ul></div>
<div class="proper-ad-unit mobile-ad square_ad"><h6 class="ad-caption">Advertisement:</h6><div id="proper-ad-tvtropes_mobile_ad_3"><script>propertag.cmd.push(function() { proper_display('tvtropes_mobile_ad_3'); })</script></div></div><p></p><div class="folderlabel" onclick="togglefolder('folder7');"> Video Games </div><div class="folder" id="folder7" isfolder="true" style="display:block;">
<ul><li> "Save This World", the OP to <em><a class="twikilink" href="/pmwiki/pmwiki.php/VideoGame/PhantasyStarUniverse" title="/pmwiki/pmwiki.php/VideoGame/PhantasyStarUniverse">Phantasy Star Universe</a></em>. The expansion's sorta qualifies, too.
</li><li> The ending theme of <em><a class="twikilink" href="/pmwiki/pmwiki.php/VideoGame/DragonAgeII" title="/pmwiki/pmwiki.php/VideoGame/DragonAgeII">Dragon Age II</a></em> is a version of "I'm Not Calling You A Liar" by <a class="twikilink" href="/pmwiki/pmwiki.php/Music/FlorenceAndTheMachine" title="/pmwiki/pmwiki.php/Music/FlorenceAndTheMachine">Florence + the Machine</a>. It's officially the theme of Varric (<a class="twikilink" href="/pmwiki/pmwiki.php/Main/UnreliableNarrator" title="/pmwiki/pmwiki.php/Main/UnreliableNarrator">Unreliable Narrator</a> being interrogated as part of the <a class="twikilink" href="/pmwiki/pmwiki.php/Main/FramingDevice" title="/pmwiki/pmwiki.php/Main/FramingDevice">Framing Device</a>) but the lyrics can apply to oh-so many other characters.
</li><li> "War Has Never Been So Much Fun" from <em><a class="twikilink" href="/pmwiki/pmwiki.php/VideoGame/CannonFodder" title="/pmwiki/pmwiki.php/VideoGame/CannonFodder">Cannon Fodder</a></em>.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/VideoGame/FateGrandOrder" title="/pmwiki/pmwiki.php/VideoGame/FateGrandOrder">Fate/Grand Order</a></em> has "Shikisai" sung by <a class="twikilink" href="/pmwiki/pmwiki.php/Creator/MaayaSakamoto" title="/pmwiki/pmwiki.php/Creator/MaayaSakamoto">Maaya Sakamoto</a>, which ties into the game's <a class="twikilink" href="/pmwiki/pmwiki.php/Main/CentralTheme" title="/pmwiki/pmwiki.php/Main/CentralTheme">Central Theme</a> of the concept of humanity and the fleeting ephemerality of humans. It has an <a class="twikilink" href="/pmwiki/pmwiki.php/Main/OrchestralBombing" title="/pmwiki/pmwiki.php/Main/OrchestralBombing">Orchestral Bombing</a> remix for the protagonist's fight against the <a class="twikilink" href="/pmwiki/pmwiki.php/Main/BigBad" title="/pmwiki/pmwiki.php/Main/BigBad">Big Bad</a>, as an affirmation of those ideals and a repudiation of the <a class="twikilink" href="/pmwiki/pmwiki.php/Main/BigBad" title="/pmwiki/pmwiki.php/Main/BigBad">Big Bad</a>'s plans.
</li><li> The <em><a class="twikilink" href="/pmwiki/pmwiki.php/Franchise/Persona" title="/pmwiki/pmwiki.php/Franchise/Persona">Persona</a></em> series has one for almost all of its games. They even provide the page captions on this very wiki:
<ul><li> The PSP remake of <em><a class="twikilink" href="/pmwiki/pmwiki.php/VideoGame/Persona1" title="/pmwiki/pmwiki.php/VideoGame/Persona1">Persona 1</a></em> has "Dream of Butterfly", sung by Yumi Kawamura.
</li><li> The remake of <em><a class="twikilink" href="/pmwiki/pmwiki.php/VideoGame/Persona2" title="/pmwiki/pmwiki.php/VideoGame/Persona2">Persona 2</a>: Innocent Sin</em> has "Unbreakable Tie" by Lotus Juice and Asami Izawa. The remake of <em>Eternal Punishment</em> doesn't contain one, however.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/VideoGame/Persona3" title="/pmwiki/pmwiki.php/VideoGame/Persona3">Persona 3</a></em> has the song "Burn My Dread", performed by Yumi Kawamura. As the title of the song suggests, the lyrics are about overcoming one's fear and diving into the unknown. The lyrics of the full version from the game's <em>Reincarnation</em> album pretty much spoils the entire plot. At the end of the game, <span class="spoiler" title="you can set spoilers visible by default on your profile">a remix with rapping by Lotus Juice, first heard in a muffled version in the game's very first cutscene, plays when fighting the final boss</span>.
<ul><li> The <em>Portable</em> remake has a new opening song - "Soul Phrase", sung by Shuhei Kita. The lyrics tie into the <a class="twikilink" href="/pmwiki/pmwiki.php/Main/AlternateContinuity" title="/pmwiki/pmwiki.php/Main/AlternateContinuity">Alternate Continuity</a> presented by playing as the newly introduced female protagonist and the changes she makes to the game's plot.
</li></ul></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/VideoGame/Persona4" title="/pmwiki/pmwiki.php/VideoGame/Persona4">Persona 4</a></em>'s is "Pursuing My True Self", sung by Shihoko Hirata. In only 90 seconds, the lyrics quickly sum up several of the game's themes: the <a class="twikilink" href="/pmwiki/pmwiki.php/Main/OldMediaAreEvil" title="/pmwiki/pmwiki.php/Main/OldMediaAreEvil">influence mass media can have on the population</a> and looking past convenient lies to uncover the real truth.
<ul><li> The <em>Golden</em> rerelease has the new "Shadow World", also sung by Hirata. It has a similar theme to uncovering the truth presented in "Pursuing My True Self", but also emphasizes <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ThePowerOfFriendship" title="/pmwiki/pmwiki.php/Main/ThePowerOfFriendship">The Power of Friendship</a> and that finding the "truth" means getting other people's perspectives.
</li></ul></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/VideoGame/Persona5" title="/pmwiki/pmwiki.php/VideoGame/Persona5">Persona 5</a></em> has "Wake Up, Get Up, Get out There", sung by Korean R&B vocalist Lyn. The lyrics are about stepping out of one's comfort zone, reforming the world and stopping the evil people in it. It also says that if someone wants change, they have to <em>do it themselves</em> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/BystanderSyndrome" title="/pmwiki/pmwiki.php/Main/BystanderSyndrome">rather than waiting for someone else to come along</a>. At the climax of each major story arc, it gets a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/TriumphantReprise" title="/pmwiki/pmwiki.php/Main/TriumphantReprise">Triumphant Reprise</a> in the form of "Life Will Change," whose lyrics have the heroes <a class="twikilink" href="/pmwiki/pmwiki.php/Main/BraggingThemeTune" title="/pmwiki/pmwiki.php/Main/BraggingThemeTune">boasting about their impending victory</a> and how their actions will inspire the masses.
<ul><li> <em>Persona 5</em>'s own rerelease, <em>Royal</em>, has the new tune "Colors Flying High". Ostensibly, the lyrics are a quick summation of many of the game's themes: how public opinion and virtues can be manipulated, fighting for justice against those who would abuse their power, and staying true to one's beliefs, with the lyrics using various colors as euphemisms for those beliefs. Less obviously, it's full of double entendres serving as massive foreshadowing for <span class="spoiler" title="you can set spoilers visible by default on your profile">Kasumi's true identity as Sumire — "Sumire" is Japanese for "violet"</span>.
</li></ul><div class="indent"><em>"So choose a color to live by..."</em>
</div></li></ul></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/VideoGame/SuperMarioOdyssey" title="/pmwiki/pmwiki.php/VideoGame/SuperMarioOdyssey">Super Mario Odyssey</a></em> has "Jump Up, Super Star!", which focuses on taking risks and exploring the wide, wacky world around you. The lyrics go hand in hand with how big of a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/WideOpenSandbox" title="/pmwiki/pmwiki.php/Main/WideOpenSandbox">Wide Open Sandbox</a> the game is, as well as all the surprises the player can find in it. Just about every line contains a reference to the games' mechanics.
</li></ul></div>
<p></p><div class="folderlabel" onclick="togglefolder('folder8');"> Web Comics </div><div class="folder" id="folder8" isfolder="true" style="display:block;">
<ul><li> <a class="urllink" href="http://gastrophobia.com/index.php?date=2009-04-13">This page<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Webcomic/GastroPhobia" title="/pmwiki/pmwiki.php/Webcomic/GastroPhobia">GastroPhobia</a></em> presents the "opening credits" as if the comic were a TV Show. The opening theme definitely fits this trope.
</li></ul></div>
<p></p><div class="folderlabel" onclick="togglefolder('folder9');"> Web Original </div><div class="folder" id="folder9" isfolder="true" style="display:block;">
<ul><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/WebVideo/CarmillaTheSeries" title="/pmwiki/pmwiki.php/WebVideo/CarmillaTheSeries">Carmilla the Series</a></em>: Soles's "Love Will Have Its Sacrifices", whose title / main chorus doubles as the show's <a class="twikilink" href="/pmwiki/pmwiki.php/Main/Epigraph" title="/pmwiki/pmwiki.php/Main/Epigraph">Epigraph</a> <em>and</em> was based on a quote from <a class="twikilink" href="/pmwiki/pmwiki.php/Literature/Carmilla" title="/pmwiki/pmwiki.php/Literature/Carmilla">the original novella</a>. Technically, the song closes out each season, but the first four bars open each episode.
</li><li> Parodied in the <em><a class="twikilink" href="/pmwiki/pmwiki.php/WebAnimation/StrongBadEmail" title="/pmwiki/pmwiki.php/WebAnimation/StrongBadEmail">Strong Bad Email</a></em> "theme song", when Strong Bad imagines his "email show" having a "life-affirming pop ballad type theme song".
</li></ul></div>
<p></p><div class="folderlabel" onclick="togglefolder('folder10');"> Western Animation </div><div class="folder" id="folder10" isfolder="true" style="display:block;">
<ul><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/FamilyGuy" title="/pmwiki/pmwiki.php/WesternAnimation/FamilyGuy">Family Guy</a></em>: Intended as a parody/homage, but still a theme that explains the idea behind the show.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/TheBoondocks" title="/pmwiki/pmwiki.php/WesternAnimation/TheBoondocks">The Boondocks</a></em>: "<em>I am the stone that the builder refused/ I am the visual/ The inspiration that made Lady sing the blues</em>"
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/Wakfu" title="/pmwiki/pmwiki.php/WesternAnimation/Wakfu">Wakfu</a></em> has a Thematic Theme Song, <a class="urllink" href="https://www.youtube.com/watch?v=mOjL5LR0qDQ">if you can understand French.<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a>
</li><li> The Japanese <a class="urllink" href="https://www.youtube.com/watch?v=X8uldvja-MY">theme song<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> to <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/TransformersAnimated" title="/pmwiki/pmwiki.php/WesternAnimation/TransformersAnimated">Transformers Animated</a></em> never mentions the word "Transformers," but contains lyrics such as "Fight and Transform." Also, it's by <a class="twikilink" href="/pmwiki/pmwiki.php/Music/JAMProject" title="/pmwiki/pmwiki.php/Music/JAMProject">JAM Project</a>, and is <a class="twikilink" href="/pmwiki/pmwiki.php/SugarWiki/AwesomeMusic" title="/pmwiki/pmwiki.php/SugarWiki/AwesomeMusic">pure, unrefined AWESOME</a>.
</li><li> The original theme song of <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/TheAvengersEarthsMightiestHeroes" title="/pmwiki/pmwiki.php/WesternAnimation/TheAvengersEarthsMightiestHeroes">The Avengers: Earth's Mightiest Heroes!</a></em>, "Fight as One", describes the protagonists' personal struggles without referring to any of them by name. Only a fleeting use of the phrase, "<a class="twikilink" href="/pmwiki/pmwiki.php/Main/AvengersAssemble" title="/pmwiki/pmwiki.php/Main/AvengersAssemble">Avengers, Assemble!</a>!",<span class="notelabel" onclick="togglenote('note3s64x');"><sup>note </sup></span><span class="inlinefolder" id="note3s64x" isnote="true" onclick="togglenote('note3s64x');" style="cursor:pointer;font-size:smaller;display:none;">It goes by so quickly, it doesn't show up in the captions.</span> tips this off as a song about the Avengers. It's still pretty kickass.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/GoofTroop" title="/pmwiki/pmwiki.php/WesternAnimation/GoofTroop">Goof Troop</a></em> has a theme song that suggests the show is about father/son and best friend relationships (which is true), while also being very <a class="twikilink" href="/pmwiki/pmwiki.php/Main/UnreliableNarrator" title="/pmwiki/pmwiki.php/Main/UnreliableNarrator">misleading</a> about the show's actual content, in terms of characterization and how well characters get along.
</li><li> "Stop That Pigeon," the theme to <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/DastardlyAndMuttleyInTheirFlyingMachines" title="/pmwiki/pmwiki.php/WesternAnimation/DastardlyAndMuttleyInTheirFlyingMachines">Dastardly and Muttley in Their Flying Machines</a></em>, is performed by Dick Dastardly as he prattles off what his crew fails at or is consigned to do. It was the show's original title and had a different antagonist and dog before they became Dick and Muttley.
</li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/MiloMurphysLaw" title="/pmwiki/pmwiki.php/WesternAnimation/MiloMurphysLaw">Milo Murphy's Law</a></em> has "It's My World (And We're All Living In It)" by <a class="twikilink" href="/pmwiki/pmwiki.php/Music/WeirdAlYankovic" title="/pmwiki/pmwiki.php/Music/WeirdAlYankovic">"Weird Al" Yankovic</a> (<a class="twikilink" href="/pmwiki/pmwiki.php/Main/DoItYourselfThemeTune" title="/pmwiki/pmwiki.php/Main/DoItYourselfThemeTune">Milo's voice actor</a>), which has Milo singing about making the best of his hectic life and the crazy things that happen to him and his friends every day.
</li></ul></div>
<hr/>
</div>
<div class="square_ad footer-article-ad main_2" data-isolated="0"></div>
<div class="section-links" itemscope="" itemtype="http://schema.org/SiteNavigationElement">
<div class="titles">
<div><h3 class="text-center text-uppercase">Previous</h3></div>
<div><h3 class="text-center text-uppercase">Index</h3></div>
<div><h3 class="text-center text-uppercase">Next</h3></div>
</div>
<div class="links">
<ul>
<li>
<a href="/pmwiki/pmwiki.php/Main/SurrealThemeTune">Surreal Theme Tune</a>
</li>
<li>
<a href="/pmwiki/pmwiki.php/Main/ThemeTune">Theme Tune</a>
</li>
<li>
<a href="/pmwiki/pmwiki.php/Main/ThemeTuneCameo">Theme Tune Cameo</a>
</li>
</ul>
<ul>
<li>
<a href="/pmwiki/pmwiki.php/Main/TheissTitillationTheory">Theiss Titillation Theory</a>
</li>
<li>
<a href="/pmwiki/pmwiki.php/AlliterativeName/TropesSToZ">AlliterativeName/Tropes S to Z</a>
</li>
<li>
<a href="/pmwiki/pmwiki.php/Main/ThrowbackThreads">Throwback Threads</a>
</li>
</ul>
</div>
</div>
<div class="outer_ads_by_salon_wrapper" id="exco_player_insert_div">
</div>
</article>
<div id="main-content-sidebar"><div class="sidebar-item display-options">
<ul class="sidebar display-toggles">
<li>Show Spoilers <div class="display-toggle show-spoilers" id="sidebar-toggle-showspoilers"></div></li>
<li>Night Vision <div class="display-toggle night-vision" id="sidebar-toggle-nightvision"></div></li>
<li>Sticky Header <div class="display-toggle sticky-header" id="sidebar-toggle-stickyheader"></div></li>
<li>Wide Load <div class="display-toggle wide-load" id="sidebar-toggle-wideload"></div></li>
</ul>
<script>updateDesktopPrefs();</script>
</div>
<div class="sidebar-item ad sb-ad-unit">
<div class="proper-ad-unit">
<div id="proper-ad-tvtropes_ad_2"> <script>propertag.cmd.push(function() { proper_display('tvtropes_ad_2'); });</script> </div>
</div></div>
<div class="sidebar-item quick-links" itemtype="http://schema.org/SiteNavigationElement">
<p class="sidebar-item-title" data-title="Important Links">Important Links</p>
<div class="padded">
<a href="/pmwiki/query.php?type=att">Ask The Tropers</a>
<a href="/pmwiki/query.php?type=tf">Trope Finder</a>
<a href="/pmwiki/query.php?type=ykts">You Know That Show...</a>
<a href="/pmwiki/tlp_activity.php">Trope Launch Pad</a>
<a href="/pmwiki/review_activity.php">Reviews</a>
<a data-modal-target="login" href="/pmwiki/lbs.php">Live Blogs</a>
<a href="/pmwiki/ad-free-subscribe.php">Go Ad Free!</a> </div>
</div>
<div class="sidebar-item sb-ad-unit">
<div class="sidebar-section">
<div class="square_ad ad-size-300x600 ad-section text-center">
<div class="proper-ad-unit">
<div id="proper-ad-tvtropes_ad_3"> <script>propertag.cmd.push(function() { proper_display('tvtropes_ad_3'); });</script> </div>
</div> </div>
</div>
</div>
<div class="sidebar-item">
<p class="sidebar-item-title" data-title="Crucial Browsing">Crucial Browsing</p>
<ul class="padded font-s" itemscope="" itemtype="http://schema.org/SiteNavigationElement">
<li><a data-click-toggle="active" href="javascript:void(0);">Genre</a>
<ul>
<li><a href="/pmwiki/pmwiki.php/Main/ActionAdventureTropes" title="Main/ActionAdventureTropes">Action Adventure</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/ComedyTropes" title="Main/ComedyTropes">Comedy</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/CommercialsTropes" title="Main/CommercialsTropes">Commercials</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/CrimeAndPunishmentTropes" title="Main/CrimeAndPunishmentTropes">Crime & Punishment</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/DramaTropes" title="Main/DramaTropes">Drama</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/HorrorTropes" title="Main/HorrorTropes">Horror</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/LoveTropes" title="Main/LoveTropes">Love</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/NewsTropes" title="Main/NewsTropes">News</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/ProfessionalWrestling" title="Main/ProfessionalWrestling">Professional Wrestling</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/SpeculativeFictionTropes" title="Main/SpeculativeFictionTropes">Speculative Fiction</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/SportsStoryTropes" title="Main/SportsStoryTropes">Sports Story</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/WarTropes" title="Main/WarTropes">War</a></li>
</ul>
</li>
<li><a data-click-toggle="active" href="javascript:void(0);">Media</a>
<ul>
<li><a href="/pmwiki/pmwiki.php/Main/Media" title="Main/Media">All Media</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/AnimationTropes" title="Main/AnimationTropes">Animation (Western)</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/Anime" title="Main/Anime">Anime</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/ComicBookTropes" title="Main/ComicBookTropes">Comic Book</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/FanFic" title="FanFic/FanFics">Fan Fics</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/Film" title="Main/Film">Film</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/GameTropes" title="Main/GameTropes">Game</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/Literature" title="Main/Literature">Literature</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/MusicAndSoundEffects" title="Main/MusicAndSoundEffects">Music And Sound Effects</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/NewMediaTropes" title="Main/NewMediaTropes">New Media</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/PrintMediaTropes" title="Main/PrintMediaTropes">Print Media</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/Radio" title="Main/Radio">Radio</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/SequentialArt" title="Main/SequentialArt">Sequential Art</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/TabletopGames" title="Main/TabletopGames">Tabletop Games</a></li>
<li><a href="/pmwiki/pmwiki.php/UsefulNotes/Television" title="Main/Television">Television</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/Theater" title="Main/Theater">Theater</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/VideogameTropes" title="Main/VideogameTropes">Videogame</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/Webcomics" title="Main/Webcomics">Webcomics</a></li>
</ul>
</li>
<li><a data-click-toggle="active" href="javascript:void(0);">Narrative</a>
<ul>
<li><a href="/pmwiki/pmwiki.php/Main/UniversalTropes" title="Main/UniversalTropes">Universal</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/AppliedPhlebotinum" title="Main/AppliedPhlebotinum">Applied Phlebotinum</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/CharacterizationTropes" title="Main/CharacterizationTropes">Characterization</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/Characters" title="Main/Characters">Characters</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/CharactersAsDevice" title="Main/CharactersAsDevice">Characters As Device</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/Dialogue" title="Main/Dialogue">Dialogue</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/Motifs" title="Main/Motifs">Motifs</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/NarrativeDevices" title="Main/NarrativeDevices">Narrative Devices</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/Paratext" title="Main/Paratext">Paratext</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/Plots" title="Main/Plots">Plots</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/Settings" title="Main/Settings">Settings</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/Spectacle" title="Main/Spectacle">Spectacle</a></li>
</ul>
</li>
<li><a data-click-toggle="active" href="javascript:void(0);">Other Categories</a>
<ul>
<li><a href="/pmwiki/pmwiki.php/Main/BritishTellyTropes" title="Main/BritishTellyTropes">British Telly</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/TheContributors" title="Main/TheContributors">The Contributors</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/CreatorSpeak" title="Main/CreatorSpeak">Creator Speak</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/Creators" title="Main/Creators">Creators</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/DerivativeWorks" title="Main/DerivativeWorks">Derivative Works</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/LanguageTropes" title="Main/LanguageTropes">Language</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/LawsAndFormulas" title="Main/LawsAndFormulas">Laws And Formulas</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/ShowBusiness" title="Main/ShowBusiness">Show Business</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/SplitPersonalityTropes" title="Main/SplitPersonalityTropes">Split Personality</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/StockRoom" title="Main/StockRoom">Stock Room</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/TropeTropes" title="Main/TropeTropes">Trope</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/Tropes" title="Main/Tropes">Tropes</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/TruthAndLies" title="Main/TruthAndLies">Truth And Lies</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/TruthInTelevision" title="Main/TruthInTelevision">Truth In Television</a></li>
</ul>
</li>
<li><a data-click-toggle="active" href="javascript:void(0);">Topical Tropes</a>
<ul>
<li><a href="/pmwiki/pmwiki.php/Main/BetrayalTropes" title="Main/BetrayalTropes">Betrayal</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/CensorshipTropes" title="Main/CensorshipTropes">Censorship</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/CombatTropes" title="Main/CombatTropes">Combat</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/DeathTropes" title="Main/DeathTropes">Death</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/FamilyTropes" title="Main/FamilyTropes">Family</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/FateAndProphecyTropes" title="Main/FateAndProphecyTropes">Fate And Prophecy</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/FoodTropes" title="Main/FoodTropes">Food</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/HolidayTropes" title="Main/HolidayTropes">Holiday</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/MemoryTropes" title="Main/MemoryTropes">Memory</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/MoneyTropes" title="Main/MoneyTropes">Money</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/MoralityTropes" title="Main/MoralityTropes">Morality</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/PoliticsTropes" title="Main/PoliticsTropes">Politics</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/ReligionTropes" title="Main/ReligionTropes">Religion</a></li>
<li><a href="/pmwiki/pmwiki.php/Main/SchoolTropes" title="Main/SchoolTropes">School</a></li>
</ul>
</li>
</ul>
</div>
<div class="sidebar-item showcase">
<p class="sidebar-item-title" data-title="Community Showcase">Community Showcase <a class="bubble float-right hover-blue" href="/pmwiki/showcase.php">More</a></p>
<p class="community-showcase">
<a href="https://sharetv.com/shows/echo_chamber" onclick="trackOutboundLink('https://sharetv.com/shows/echo_chamber');" target="_blank">
<img alt="" class="lazy-image" data-src="/images/communityShowcase-echochamber.jpg"/></a>
<a href="/pmwiki/pmwiki.php/Webcomic/TwistedTropes">
<img alt="" class="lazy-image" data-src="/img/howlandsc-side.jpg"/></a>
</p>
</div>
<div class="sidebar-item sb-ad-unit" id="stick-cont">
<div class="sidebar-section" id="stick-bar">
<div class="square_ad ad-size-300x600 ad-section text-center">
<div class="proper-ad-unit">
<div id="proper-ad-tvtropes_ad_4"> <script>propertag.cmd.push(function() { proper_display('tvtropes_ad_4'); });</script> </div>
</div> </div>
</div>
</div>
</div>
</div>
<div class="action-bar tablet-off" id="action-bar-bottom">
<a class="scroll-to-top dead-button" href="#top-of-page" onclick="$('html, body').animate({scrollTop : 0},500);">Top</a>
</div>
</div>
<div class="proper-ad-unit ad-sticky">
<div id="proper-ad-tvtropes_sticky_ad"> <script>propertag.cmd.push(function() { proper_display('tvtropes_sticky_ad'); });</script> </div>
</div>
<footer id="main-footer">
<div id="main-footer-inner">
<div class="footer-left">
<a class="img-link" href="/"><img alt="TV Tropes" class="lazy-image" data-src="/img/tvtropes-footer-logo.png" title="TV Tropes"/></a>
<form action="index.html" class="navbar-form newsletter-signup validate modal-replies" data-ajax-get="/ajax/subscribe_email.php" id="cse-search-box-mobile" name="" role="">
<button class="btn-submit newsletter-signup-submit-button" id="subscribe-btn" type="submit"><i class="fa fa-paper-plane"></i></button>
<input class="form-control" id="subscription-email" name="q" placeholder="Subscribe" size="31" type="text" validate-type="email" value=""/>
</form>
<ul class="social-buttons">
<li><a class="btn fb" href="https://www.facebook.com/tvtropes" onclick="_gaq.push(['_trackEvent', 'btn-social-icon', 'click', 'btn-facebook']);" target="_blank"><i class="fa fa-facebook"></i></a></li>
<li><a class="btn tw" href="https://www.twitter.com/tvtropes" onclick="_gaq.push(['_trackEvent', 'btn-social-icon', 'click', 'btn-twitter']);" target="_blank"><i class="fa fa-twitter"></i></a> </li>
<li><a class="btn rd" href="https://www.reddit.com/r/tvtropes" onclick="_gaq.push(['_trackEvent', 'btn-social-icon', 'click', 'btn-reddit']);" target="_blank"><i class="fa fa-reddit-alien"></i></a></li>
</ul>
</div>
<hr/>
<ul class="footer-menu" itemscope="" itemtype="http://schema.org/SiteNavigationElement">
<li><h4 class="footer-menu-header">TVTropes</h4></li>
<li><a href="/pmwiki/pmwiki.php/Main/Administrivia">About TVTropes</a></li>
<li><a href="/pmwiki/pmwiki.php/Administrivia/TheGoalsOfTVTropes">TVTropes Goals</a></li>
<li><a href="/pmwiki/pmwiki.php/Administrivia/TheTropingCode">Troping Code</a></li>
<li><a href="/pmwiki/pmwiki.php/Administrivia/TVTropesCustoms">TVTropes Customs</a></li>
<li><a href="/pmwiki/pmwiki.php/JustForFun/TropesOfLegend">Tropes of Legend</a></li>
<li><a href="/pmwiki/ad-free-subscribe.php">Go Ad-Free</a></li>
</ul>
<hr/>
<ul class="footer-menu" itemscope="" itemtype="http://schema.org/SiteNavigationElement">
<li><h4 class="footer-menu-header">Community</h4></li>
<li><a href="/pmwiki/query.php?type=att">Ask The Tropers</a></li>
<li><a href="/pmwiki/tlp_activity.php">Trope Launch Pad</a></li>
<li><a href="/pmwiki/query.php?type=tf">Trope Finder</a></li>
<li><a href="/pmwiki/query.php?type=ykts">You Know That Show</a></li>
<li><a data-modal-target="login" href="/pmwiki/lbs.php">Live Blogs</a></li>
<li><a href="/pmwiki/review_activity.php">Reviews</a></li>
<li><a href="/pmwiki/topics.php">Forum</a></li>
</ul>
<hr/>
<ul class="footer-menu" itemscope="" itemtype="http://schema.org/SiteNavigationElement">
<li><h4 class="footer-menu-header">Tropes HQ</h4></li>
<li><a href="/pmwiki/about.php">About Us</a></li>
<li><a href="/pmwiki/contact.php">Contact Us</a></li>
<li><a href="/pmwiki/dmca.php">DMCA Notice</a></li>
<li><a href="/pmwiki/privacypolicy.php">Privacy Policy</a></li>
</ul>
</div>
<div class="text-center gutter-top gutter-bottom tablet-on" id="desktop-on-mobile-toggle">
<a href="/pmwiki/switchDeviceCss.php?mobileVersion=1" rel="nofollow">Switch to <span class="txt-desktop">Desktop</span><span class="txt-mobile">Mobile</span> Version</a>
</div>
<div class="legal">
<p>TVTropes is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. <br/>Permissions beyond the scope of this license may be available from <a href="mailto:thestaff@tvtropes.org" rel="cc:morePermissions" xmlns:cc="http://creativecommons.org/ns#"> thestaff@tvtropes.org</a>.</p>
<br/>
<div class="privacy_wrapper">
</div>
</div>
</footer>
<style>
div.fc-ccpa-root {
position: absolute !important;
bottom: 93px !important;
margin: auto !important;
width: 100% !important;
z-index: 9999 !important;
}
.fc-ccpa-root .fc-dns-dialog .fc-dns-link p{
outline: none !important;
text-decoration: underline !important;
font-size: .7em !important;
font-family: sans-serif !important;
}
.fc-ccpa-root .fc-dns-dialog .fc-dns-link .fc-button-background {
background: none !important;
}
</style>
<div class="full-screen" id="_pm_videoViewer">
<a class="close" href="#close" id="_pm_videoViewer-close"></a>
<div class="_pmvv-body">
<div class="_pmvv-vidbox">
<video class="video-js vjs-default-skin vjs-16-9" data-video-id="" id="overlay-video-player-box">
</video>
<div class="_pmvv-vidbox-desc">
<h1 id="overlay-title"></h1>
<p class="_pmvv-vidbox-descTxt" id="overlay-descrip">
</p>
<div class="rating-row" data-video-id="">
<input name="is_logged_in" type="hidden" value="0"/>
<p>How well does it match the trope?</p>
<div id="star-rating-group">
<div class="trope-rate">
<input id="lamp5" name="rate" type="radio" value="5"/>
<label for="lamp5" title="Absolutely"></label>
<input id="lamp4" name="rate" type="radio" value="4"/>
<label for="lamp4" title="Yes"></label>
<input id="lamp3" name="rate" type="radio" value="3"/>
<label for="lamp3" title="Kind of"></label>
<input id="lamp2" name="rate" type="radio" value="2"/>
<label for="lamp2" title="Not really"></label>
<input id="lamp1" name="rate" type="radio" value="1"/>
<label for="lamp1" title="No"></label>
</div>
<div id="star-rating-total">
</div>
</div>
</div>
<div class="example-media-row">
<div class="example-overlay">
<p>Example of:</p>
<div id="overlay-trope"> / </div>
</div>
<div class="media-sources-overlay example-overlay">
<p>Media sources:</p>
<div id="overlay-media"> / </div>
</div>
</div>
<p class="_pmvv-vidbox-stats text-right font-s" style="padding-top:8px; border-top: solid 1px rgba(255,255,255,0.2)">
<a class="float-right" data-modal-target="login" href="#video-feedback">Report</a>
</p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
window.special_ops = {
member : 'no',
isolated : 0,
tags : ['unknown']
};
</script>
<script type="text/javascript">
var cleanCreativeEnabled = "";
var donation = "";
var live_ads = "1";
var img_domain = "https://static.tvtropes.org";
var snoozed = cookies.read('snoozedabm');
var snoozable = "";
if (adsRemovedWith) {
live_ads = 0;
}
var elem = document.createElement('script');
elem.async = true;
elem.src = '/design/assets/bundle.js?rev=c58d8df02f09262390bbd03db7921fc35c6af306';
elem.onload = function() {
}
document.getElementsByTagName('head')[0].appendChild(elem);
</script>
<script type="text/javascript">
function send_analytics_event(user_type, donation){
// if(user_type == 'uncached' || user_type == 'cached'){
// ga('send', 'event', 'caching', 'load', user_type, {'nonInteraction': 1});
// return;
// }
var event_name = user_type;
if(donation == 'true'){
event_name += "_donation"
}else if(typeof(valid_user) == 'undefined'){
event_name += "_blocked"
}else if(valid_user == true){
event_name += "_unblocked";
}else{
event_name = "_unknown"
}
ga('send', 'event', 'ads', 'load', event_name, {'nonInteraction': 1});
}
send_analytics_event("guest", "false");
</script>
</body>
</html>
| 105.084582 | 1,502 | 0.710746 |
2f54ca02d81b81a4009f5cef12d1b444da81c99a | 198 | php | PHP | config/sms.php | ilij77/laravel | 2fb91c23211a41b7a1ee0282b157548902f2b085 | [
"MIT"
] | 1 | 2018-12-23T02:31:23.000Z | 2018-12-23T02:31:23.000Z | config/sms.php | ilij77/lava | f4b20939199636d66b3a17dbeb4dfa7ccaf84130 | [
"MIT"
] | 9 | 2020-07-16T21:44:30.000Z | 2022-02-26T10:17:48.000Z | config/sms.php | ilij77/laravel | 2fb91c23211a41b7a1ee0282b157548902f2b085 | [
"MIT"
] | null | null | null | <?php
return [
'driver'=>env('SMS_DRIVER','sms.ru'),
'drivers'=>[
'sms.ru'=>[
'app_id'=> env('SMS_RU_APP_ID'),
'url'=>env('SMS_RU_URL'),
],
],
]; | 18 | 44 | 0.419192 |
5c37f95908a954b2790d086ce143058a053b8acd | 2,745 | css | CSS | src/css/generation-style.css | KaykyDeSouzaDias/pokedex-website | 166ab5bc6c39b5ab9df52b693c5126b990941f88 | [
"MIT"
] | null | null | null | src/css/generation-style.css | KaykyDeSouzaDias/pokedex-website | 166ab5bc6c39b5ab9df52b693c5126b990941f88 | [
"MIT"
] | null | null | null | src/css/generation-style.css | KaykyDeSouzaDias/pokedex-website | 166ab5bc6c39b5ab9df52b693c5126b990941f88 | [
"MIT"
] | null | null | null | @import url('https://fonts.googleapis.com/css2?family=Poppins&family=Raleway:wght@500;900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
background-color: #231D23;
}
.side-menu-container {
width: 400px;
height: 100%;
overflow-y: auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #141A1F;
}
.generation-title {
font-family: "century Gothic";
font-weight: 700;
font-size: 40px;
margin-top: 200px;
align-self: center;
color: white;
}
.search-bar {
width: 80%;
height: 50px;
margin-top: 20px;
padding: 10px;
display: flex;
flex-direction: row;
align-items: center;
border: none;
border-radius: 5px;
background-color: #292929;
}
.fa-magnifying-glass {
color: #6E6B6F;
}
.search-bar-input {
width: 100%;
margin-left: 10px;
border: none;
color: white;
background: none;
}
.search-bar-input:focus {
outline: none;
background: none;
}
.side-menu-container::-webkit-scrollbar {
width: 7px;
}
.side-menu-container::-webkit-scrollbar-thumb {
background: #6E6B6F;
border-radius: 10px;
}
.side-menu-container::-webkit-scrollbar-thumb:hover {
background: #7f7d80;
}
.pokedex {
width: 100%;
height: 100%;
position: relative;
}
.pokedex-container {
margin-top: 50px;
display: flow-root;
list-style: none;
}
.pokemon-card {
width: 100%;
height: 150px;
background-color: #141A1F;
}
.card-button {
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
text-align: left;
border: none;
transition: 0.3s;
background-color: #141A1F;
}
.card-button:hover {
transition: 0.3s;
background-color: #7f7d80;
}
.card-image {
width: 70px;
height: 70px;
margin-left: 20px;
}
.card-content {
margin-left: 20px;
}
.card-id {
font-family: "Poppins";
font-weight: 400;
font-size: 15px;
margin-bottom: 10px;
color: #E9E9E9;
}
.card-name {
font-family: "Raleway";
font-weight: 900;
font-size: 20px;
text-transform: uppercase;
color: white;
}
.card-type {
display: flex;
flex-direction: row;
}
.type-icon {
width: 25px;
height: 25px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
margin-top: 10px;
border-radius: 50px;
}
.type-image {
width: 15px;
height: 15px;
}
.pokemon-card-divider {
border: 0;
border-top: 5px solid #231D23;
} | 13.009479 | 105 | 0.600729 |
92ff0aa3b2c33944fd1ac58fe5635d366a6c3901 | 1,499 | h | C | Source/Sparkle/SUUpdater.h | denisarsenault/NetScanner | cc3d9b95360f1d75ac098e6d1dc095c8b21f74fe | [
"BSD-3-Clause"
] | null | null | null | Source/Sparkle/SUUpdater.h | denisarsenault/NetScanner | cc3d9b95360f1d75ac098e6d1dc095c8b21f74fe | [
"BSD-3-Clause"
] | null | null | null | Source/Sparkle/SUUpdater.h | denisarsenault/NetScanner | cc3d9b95360f1d75ac098e6d1dc095c8b21f74fe | [
"BSD-3-Clause"
] | null | null | null | //
// SUUpdater.h
// Sparkle
//
// Created by Andy Matuschak on 1/4/06.
// Copyright 2006 Andy Matuschak. All rights reserved.
//
#import <Cocoa/Cocoa.h>
// Before you use Sparkle in your app, you must set SUFeedURL in Info.plist to the
// address of the appcast on your webserver. If you don't already have an
// appcast, please see the Sparkle documentation to learn about how to set one up.
// Please note that only .tar, .tbz, and .tgz archives are supported at this time.
// By default, Sparkle offers to show the user the release notes of the build they'll be
// getting, which it assumes are in the description (or body) field of the relevant RSS item.
// Set SUShowReleaseNotes to <false/> in Info.plist to hide the button.
extern NSString *SUCheckAtStartupKey;
extern NSString *SUFeedURLKey;
extern NSString *SUShowReleaseNotesKey;
@class RSS;
@interface SUUpdater : NSObject {
NSURLDownload *downloader;
NSString *downloadPath;
NSPanel *statusWindow;
NSTextField *statusField;
NSTextField *downloadProgressField;
NSProgressIndicator *progressBar;
NSButton *actionButton;
}
// This method starts the update sequence. Pass YES if the action was user-initiated
// and NO if it was done automatically; the verbosity of the error reporting will reflect.
- (void)checkForUpdatesAndNotify:(BOOL)verbosity;
// This IBAction is meant for a main menu item. Hook up any menu item to this action,
// and Sparkle will do the right thing.
- (IBAction)checkForUpdates:sender;
@end
| 32.586957 | 93 | 0.75984 |
b8922d514f254d6a1ef6cc64831b54b85a089740 | 42,186 | html | HTML | index.html | asadsaifi2021/website | b7986d8b2628d495f302875a4db880baf3e3d453 | [
"CC-BY-4.0"
] | null | null | null | index.html | asadsaifi2021/website | b7986d8b2628d495f302875a4db880baf3e3d453 | [
"CC-BY-4.0"
] | null | null | null | index.html | asadsaifi2021/website | b7986d8b2628d495f302875a4db880baf3e3d453 | [
"CC-BY-4.0"
] | null | null | null | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Asad Saifi</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css">
<!--================ UNICONS ===============-->
<link rel="stylesheet" href="https://unicons.iconscout.com/release/v4.0.0/css/line.css">
<link rel="stylesheet" href="styles.css">
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js"></script>
<!--================ SWIPER CSS ===============-->
<link rel="stylesheet" href="../swiper-bundle.min.css">
<!--Imports a model-viewer JavaScript code -->
<!--It helps to handle how the 3D Object would be displayed -->
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>
<script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script>
</head>
<body>
<!---================= HEADER ==============-->
<header class="header" id="header">
<nav class="nav container">
<a href="#" class="nav__logo">Asad Saifi</a>
<div class="nav__menu" id="nav-menu">
<ul class="nav__list grid">
<li class="nav__item">
<a href="#home" class="nav__link active-link">
<i class="uil uil-estate nav__icon"></i> Home
</a>
</li>
<li class="nav__item">
<a href="#about" class="nav__link">
<i class="uil uil-user nav__icon"></i> About
</a>
</li>
<li class="nav__item">
<a href="#skills" class="nav__link">
<i class="uil uil-file-alt nav__icon"></i> Skills
</a>
</li>
<li class="nav__item">
<a href="#services" class="nav__link">
<i class="uil uil-briefcase-alt nav__icon"></i> Interests
</a>
</li>
<li class="nav__item">
<a href="#portfolio" class="nav__link">
<i class="uil uil-scenery nav__icon"></i> Portfolio
</a>
</li>
<li class="nav__item">
<a href="#contact" class="nav__link">
<i class="uil uil-message nav__icon"></i> Contact
</a>
</li>
</ul>
<i class="uil uil-times nav__close" id="nav-close"></i>
</div>
<div class="nav__btns">
<!--Theme change button-->
<i class="uil uil-moon change-theme" id="theme-button"></i>
<div class="nav__toggle" id="nav-toggle">
<i class="uil uil-apps"></i>
</div>
</div>
</nav>
</header>
<!--==================== MAIN ====================-->
<main class="main">
<!--==================== HOME ====================-->
<section class="home section" id="home">
<div class="hero">
<video class="video-bg" autoplay muted loop>
<source src="../large1.mp4" type="video/mp4">
</video>
</div>
<div class="home__container container grid">
<div class="home__content grid">
<div class="home__social">
<a href="https://www.facebook.com/asad.saifi.58" target="_blank" class="home__social-icon">
<i class="uil uil-facebook"></i>
</a>
<a href="https://www.instagram.com/xjaden007x/" target="_blank" class="home__social-icon">
<i class="fab fa-instagram"></i>
</a>
<a href="https://twitter.com/asadsaifi90" target="_blank"
class="home__social-icon">
<i class="uil uil-twitter"></i>
</a>
<a href="https://www.linkedin.com/in/asad-saifi-9aba45209/" target="_blank"
class="home__social-icon">
<i class="uil uil-linkedin"></i>
</a>
<a href="https://github.com/asadsaifi2021" target="_blank"
class="home__social-icon">
<i class="uil uil-github"></i>
</a>
</div>
<div class="home__img">
<svg class="home__blob" viewBox="0 0 200 187" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<mask id="mask0" mask-type="alpha">
<path d="M190.312 36.4879C206.582 62.1187 201.309 102.826 182.328 134.186C163.346 165.547
130.807 187.559 100.226 186.353C69.6454 185.297 41.0228 161.023 21.7403 129.362C2.45775
97.8511 -7.48481 59.1033 6.67581 34.5279C20.9871 10.1032 59.7028 -0.149132 97.9666
0.00163737C136.23 0.303176 174.193 10.857 190.312 36.4879Z"/>
</mask>
<g mask="url(#mask0)">
<path d="M190.312 36.4879C206.582 62.1187 201.309 102.826 182.328 134.186C163.346
165.547 130.807 187.559 100.226 186.353C69.6454 185.297 41.0228 161.023 21.7403
129.362C2.45775 97.8511 -7.48481 59.1033 6.67581 34.5279C20.9871 10.1032 59.7028
-0.149132 97.9666 0.00163737C136.23 0.303176 174.193 10.857 190.312 36.4879Z"/>
<image class="home__blob-img" href="../Asad.jpg"/>
</g>
</svg>
</div>
<div class="home__data">
<h1 class="home__title">Hi! I am Asad.</h1>
<h3 class="home__subtitle">Computer Science Student</h3>
<p class="home__description">Computer Science student at the University of Manitoba pursuing
Bachelor of Computer Science Major (4 years).</p>
<a href="#contact" class="button button--flex">
Contact Me <i class="uil uil-diary button__icon"></i>
</a>
</div>
</div>
<div class="home__scroll">
<a href="#about" class="home__scroll-button button--flex">
<i class="uil uil-mouse-alt home__scroll-mouse"></i>
<span class="home__scroll-name">Scroll Down</span>
<i class="uil uil-arrow-down home__scroll-arrow"></i>
</a>
</div>
</div>
</section>
<!--==================== ABOUT ====================-->
<section class="about section" id="about">
<h2 class="section__title">About Me</h2>
<span class="section__subtitle">My Introduction</span>
<div class="about__container container grid">
<img src="../About.jpg" alt="" class="about__img">
<div class="about__data">
<p class="about__description">Born in New Delhi, India and moved to Riyadh, Saudi Arabia after a couple
of years. There, I completed my high school diploma with a standing of 86%(3.7 GPA) majoring in
computer science.</p>
<div class="ThreeDObject">
<!-- 3D object -->
<!-- This inserts the 3D object inside the aside container -->
<!-- <model-viewer src="../Model/scene.gltf" alt="VR Headset" auto-rotate camera-controls camera-orbit="0deg 90deg 4.5m" ar-->
<!-- ios-src="../Model/scene.gltf">-->
<!-- </model-viewer>-->
<model-viewer src="scene.gltf" shadow-intensity="1" ar
ar-modes="webxr scene-viewer quick-look" auto-rotate
camera-controls camera-orbit="0deg 90deg 4.5m"
alt="A 3D model carousel"></model-viewer>
<!-- <model-viewer src="../Model/dog.glb" shadow-intensity="1" ar-->
<!-- ar-modes="webxr scene-viewer quick-look" auto-rotate-->
<!-- camera-controls camera-orbit="50deg 90deg 10m"-->
<!-- alt="A 3D model carousel"></model-viewer>-->
</div>
<p class="about__description">Since then, I have always been fascinated with computers and I decided to
pursue a degree in computer science in Canada. Currently, I am a full-time undergraduate student and
a part-time worker at the Real Canadian Superstore.</p>
<div class="about__buttons">
<a download="" href="../ResumeEdited.pdf" class="button button--flex">
Download CV <i class="uil uil-download-alt button__icon"></i>
</a>
</div>
</div>
</div>
</section>
<!--==================== QUALIFICATION ====================-->
<section class="qualification section">
<h2 class="section__title">Qualifications & Work</h2>
<span class="section__subtitle">My personal journey</span>
<div class="qualification__container container">
<div class="qualification__tabs">
<div class="qualification__button button--flex qualification__active" data-target='#education'>
<i class="uil uil-graduation-cap qualification__icon"></i>
Education
</div>
<div class="qualification__button button--flex" data-target='#work'>
<i class="uil uil-briefcase-alt qualification__icon"></i>
Work
</div>
</div>
<div class="qualification__sections">
<!--==================== QUALIFICATION CONTENT 1 ====================-->
<div class="qualification__content qualification__active" data-content id="education">
<!--==================== QUALIFICATION 1 ====================-->
<div class="qualification__data">
<div>
<h3 class="qualification__title">Bachelor of Computer Science</h3>
<span class="qualification__subtitle">Canada - University of Manitoba</span>
<div class="qualification__calendar">
<i class="uil uil-calendar-alt"></i>
2021 - 2025 <br>
<br>
<br>
<br>
<br>
<br>
</div>
</div>
<div>
<span class="qualification__rounder"></span>
<span class="qualification__line"></span>
</div>
</div>
<!-- <!–==================== QUALIFICATION 2 ====================–>-->
<!-- <div class="qualification__data">-->
<!-- <div></div>-->
<!-- <div>-->
<!-- <span class="qualification__rounder"></span>-->
<!-- <span class="qualification__line"></span>-->
<!-- </div>-->
<!-- <div>-->
<!-- <h3 class="qualification__title">Web Design</h3>-->
<!-- <span class="qualification__subtitle">Canada - University of Manitoba</span>-->
<!-- <div class="qualification__calendar">-->
<!-- <i class="uil uil-calendar-alt"></i>-->
<!-- 2014 - 2017-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <!–==================== QUALIFICATION 3 ====================–>-->
<!-- <div class="qualification__data">-->
<!-- <div>-->
<!-- <h3 class="qualification__title">Web Development</h3>-->
<!-- <span class="qualification__subtitle">Canada - University of Manitoba</span>-->
<!-- <div class="qualification__calendar">-->
<!-- <i class="uil uil-calendar-alt"></i>-->
<!-- 2017 - 2019-->
<!-- </div>-->
<!-- </div>-->
<!-- <div>-->
<!-- <span class="qualification__rounder"></span>-->
<!-- <span class="qualification__line"></span>-->
<!-- </div>-->
<!-- </div>-->
<!--==================== QUALIFICATION 4 ====================-->
<div class="qualification__data">
<div></div>
<div>
<span class="qualification__rounder"></span>
<!-- <span class="qualification__line"></span>-->
</div>
<div>
<h3 class="qualification__title">High School Diploma</h3>
<span class="qualification__subtitle">International Indian School, Riyadh</span>
<div class="qualification__calendar">
<i class="uil uil-calendar-alt"></i>
2007 - 2020
</div>
</div>
</div>
</div>
<!--==================== QUALIFICATION CONTENT 2 ====================-->
<div class="qualification__content" data-content id="work">
<!--==================== QUALIFICATION 1 ====================-->
<div class="qualification__data">
<div>
<h3 class="qualification__title">Produce Clerk</h3>
<span class="qualification__subtitle">Real Canadian Superstore - Canada</span>
<div class="qualification__calendar">
<i class="uil uil-calendar-alt"></i>
July 2021 - Present <br>
<br>
<br>
<br>
<br>
<br>
</div>
</div>
<div>
<span class="qualification__rounder"></span>
<span class="qualification__line"></span>
</div>
</div>
<!-- <!–==================== QUALIFICATION 2 ====================–>-->
<!-- <div class="qualification__data">-->
<!-- <div></div>-->
<!-- <div>-->
<!-- <span class="qualification__rounder"></span>-->
<!-- <span class="qualification__line"></span>-->
<!-- </div>-->
<!-- <div>-->
<!-- <h3 class="qualification__title">Front-end Developer</h3>-->
<!-- <span class="qualification__subtitle">Apple Inc. Canada</span>-->
<!-- <div class="qualification__calendar">-->
<!-- <i class="uil uil-calendar-alt"></i>-->
<!-- 2018 - 2020-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!--==================== QUALIFICATION 4 ====================-->
<div class="qualification__data">
<div></div>
<div>
<span class="qualification__rounder"></span>
<!-- <span class="qualification__line"></span>-->
</div>
<div>
<h3 class="qualification__title">Garden Center Clerk</h3>
<span class="qualification__subtitle">Real Canadian Superstore - Canada</span>
<div class="qualification__calendar">
<i class="uil uil-calendar-alt"></i>
May 2021 - July 2021
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!--==================== SKILLS ====================-->
<section class="skills__section" id="skills">
<h2 class="section__title">Skills</h2>
<span class="section__subtitle">My technical level</span>
<div class="skills__container container grid">
<div>
<!--==================== SKILLS 1====================-->
<div class="skills__content skills__open">
<div class="skills__header">
<i class="uil uil-brain skills__icon"></i>
<div>
<h1 class="skills__title">Front-end Developing</h1>
</div>
<i class="uil uil-angle-down skills__arrow"></i>
</div>
<div class="skills__list grid">
<div class="skills__data">
<div class="skills__titles">
<h3 class="skills__name">HTML 5</h3>
<i class="uil uil-html5 skills__icon_html"></i>
</div>
<div class="skills__bar">
<span class="skills__percentage skills__html"></span>
</div>
</div>
<div class="skills__data">
<div class="skills__titles">
<h3 class="skills__name">CSS</h3>
<i class="uil uil-css3-simple skills__icon_css"></i>
</div>
<div class="skills__bar">
<span class="skills__percentage skills__css"></span>
</div>
</div>
<div class="skills__data">
<div class="skills__titles">
<h3 class="skills__name">JavaScript</h3>
<i class="uil uil-java-script skills__icon_javascript"></i>
</div>
<div class="skills__bar">
<span class="skills__percentage skills__js"></span>
</div>
</div>
<div class="skills__data">
<div class="skills__titles">
<h3 class="skills__name">React</h3>
<i class="uil uil-react skills__icon_react"></i>
</div>
<div class="skills__bar">
<span class="skills__percentage skills__react"></span>
</div>
</div>
</div>
</div>
<!--==================== SKILLS 2====================-->
<div class="skills__content skills__close">
<div class="skills__header">
<i class="uil uil-server-network skills__icon"></i>
<div>
<h1 class="skills__titles">Back-end Developing</h1>
</div>
<i class="uil uil-angle-down skills__arrow"></i>
</div>
<div class="skills__list grid">
<div class="skills__data">
<div class="skills__titles">
<h3 class="skills__name">Java</h3>
<i class='fab fa-java skills__icon_java'></i>
</div>
<div class="skills__bar">
<span class="skills__percentage skills__php"></span>
</div>
</div>
<div class="skills__data">
<div class="skills__titles">
<h3 class="skills__name">Python</h3>
<i class="fab fa-python skills__icon_python"></i>
</div>
<div class="skills__bar">
<span class="skills__percentage skills__node"></span>
</div>
</div>
<div class="skills__data">
<div class="skills__titles">
<h3 class="skills__name">MySQL</h3>
<i class="fas fa-database skills__icon_mysql"></i>
</div>
<div class="skills__bar">
<span class="skills__percentage skills__firebase"></span>
</div>
</div>
<div class="skills__data">
<div class="skills__titles">
<h3 class="skills__name">Django</h3>
<i class="uil uil-adjust-alt skills__icon_django"></i>
</div>
<div class="skills__bar">
<span class="skills__percentage skills__react"></span>
</div>
</div>
</div>
</div>
</div>
<div>
<!--==================== SKILLS 3====================-->
<div class="skills__content skills__close">
<div class="skills__header">
<i class="uil uil-brush-alt skills__icon"></i>
<div>
<h1 class="skills__titles">Adobe</h1>
</div>
<i class="uil uil-angle-down skills__arrow"></i>
</div>
<div class="skills__list grid">
<div class="skills__data">
<div class="skills__titles">
<h3 class="skills__name">Photoshop</h3>
<i class="uil uil-adobe skills__icon_photoshop"></i>
</div>
<div class="skills__bar">
<span class="skills__percentage skills__autodesk"></span>
</div>
</div>
<div class="skills__data">
<div class="skills__titles">
<h3 class="skills__name">Illustrator</h3>
<i class="uil uil-adobe-alt skills__icon_illustrator"></i>
</div>
<div class="skills__bar">
<span class="skills__percentage skills__unity"></span>
</div>
</div>
<div class="skills__data">
<div class="skills__titles">
<h3 class="skills__name">After Effects</h3>
<i class="uil uil-adobe-alt skills__icon_illustrator skills__icon_aftereffects"></i>
</div>
<div class="skills__bar">
<span class="skills__percentage skills__unrealengine"></span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!--==================== SERVICES ====================-->
<section class="services section" id="services">
<h2 class="section__title">Interests</h2>
<span class="section__subtitle">What I Am Interested In</span>
<div class="services__container container grid">
<!--==================== SERVICES 1====================-->
<div class="services__content">
<div>
<i class="uil uil-database services__icon"></i>
<h3 class="services__title">Back-end <br> Developing</h3>
</div>
<span class="button button--flex button--small button--link services__button">
View More
<i class="uil uil-arrow-right button__icon"></i>
</span>
<div class="services__modal">
<div class="services__modal-content">
<h4 class="services__modal-title">Back-end <br> Developing</h4>
<i class="uil uil-times services__modal-close"></i>
<ul class="services__modal-services grid">
<li class="services__modal-service">
<i class="uil uil-check-circle services__modal-icon"></i>
<p>I create Java based programs.</p>
</li>
<li class="services__modal-service">
<i class="uil uil-check-circle services__modal-icon"></i>
<p>I have created Python programs.</p>
</li>
<li class="services__modal-service">
<i class="uil uil-check-circle services__modal-icon"></i>
<p>Worked with MySQL, Django.</p>
</li>
<li class="services__modal-service">
<i class="uil uil-check-circle services__modal-icon"></i>
<p>Database administration.</p>
</li>
</ul>
</div>
</div>
</div>
<!--==================== SERVICES 2====================-->
<div class="services__content">
<div>
<i class="uil uil-arrow services__icon"></i>
<h3 class="services__title">Front-end <br> Developing</h3>
</div>
<span class="button button--flex button--small button--link services__button">
View More
<i class="uil uil-arrow-right button__icon"></i>
</span>
<div class="services__modal">
<div class="services__modal-content">
<h4 class="services__modal-title">Front-end <br> Developing</h4>
<i class="uil uil-times services__modal-close"></i>
<ul class="services__modal-services grid">
<li class="services__modal-service">
<i class="uil uil-check-circle services__modal-icon"></i>
<p>I develop the user interface.</p>
</li>
<li class="services__modal-service">
<i class="uil uil-check-circle services__modal-icon"></i>
<p>Web page development</p>
</li>
<li class="services__modal-service">
<i class="uil uil-check-circle services__modal-icon"></i>
<p>I style pages with CSS.</p>
</li>
</ul>
</div>
</div>
</div>
<!--==================== SERVICES 3====================-->
<div class="services__content">
<div>
<i class="uil uil-globe services__icon"></i>
<h3 class="services__title">Web <br> Development</h3>
</div>
<span class="button button--flex button--small button--link services__button">
View More
<i class="uil uil-arrow-right button__icon"></i>
</span>
<div class="services__modal">
<div class="services__modal-content">
<h4 class="services__modal-title">Web <br> Development</h4>
<i class="uil uil-times services__modal-close"></i>
<ul class="services__modal-services grid">
<li class="services__modal-service">
<i class="uil uil-check-circle services__modal-icon"></i>
<p>I develop pages using HTML 5.</p>
</li>
<li class="services__modal-service">
<i class="uil uil-check-circle services__modal-icon"></i>
<p>I develop GUI with JavaScript</p>
</li>
<li class="services__modal-service">
<i class="uil uil-check-circle services__modal-icon"></i>
<p>I create UX element interactions.</p>
</li>
</ul>
</div>
</div>
</div>
</div>
</section>
<!--==================== PORTFOLIO ====================-->
<section class="portfolio section" id="portfolio">
<h2 class="section__title">Portfolio</h2>
<span class="section__subtitle">Most recent work</span>
<div class="portfolio__container container swiper-container">
<div class="swiper-wrapper">
<!--==================== PORTFOLIO 1====================-->
<div class="portfolio__content grid swiper-slide">
<video src="Game.mp4" autoplay loop class="portfolio__image">
</video>
<div class="portfolio__data">
<h3 class="portfolio__title">Slingshot Ball Game</h3>
<p class="portfolio__description">Purely programmed using Java in Processing 3.</p>
<a href="#" class="button button--flex button--small portfolio__button">
Demo
<i class="uil uil-arrow-right button__icon"></i>
</a>
</div>
</div>
<!--==================== PORTFOLIO 2====================-->
<div class="portfolio__content grid swiper-slide">
<video src="Flowers.mp4" autoplay loop class="portfolio__image">
</video>
<div class="portfolio__data">
<h3 class="portfolio__title">Colorful Rose</h3>
<p class="portfolio__description">Programmed in Java which generates a rose with petals of
random colors on each loop.</p>
<a href="#" class="button button--flex button--small portfolio__button">
Demo
<i class="uil uil-arrow-right button__icon"></i>
</a>
</div>
</div>
<!--==================== PORTFOLIO 3====================-->
<div class="portfolio__content grid swiper-slide">
<video src="Cards.mp4" autoplay loop class="portfolio__image">
</video>
<div class="portfolio__data">
<h3 class="portfolio__title">Play Cards Shuffler</h3>
<p class="portfolio__description">A program that shuffles 52 play cards on each click made in
Java.</p>
<a href="#" class="button button--flex button--small portfolio__button">
Demo
<i class="uil uil-arrow-right button__icon"></i>
</a>
</div>
</div>
</div>
<!-- Add Arrows -->
<div class="swiper-button-next">
<i class="uil uil-angle-right-b swiper-portfolio-icon"></i>
</div>
<div class="swiper-button-prev">
<i class="uil uil-angle-left-b swiper-portfolio-icon"></i>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div>
</div>
</section>
<!-- <!–==================== PROJECT IN MIND ====================–>-->
<!-- <section class="project section">-->
<!-- <div class="project__bg">-->
<!-- <div class="project__container container grid">-->
<!-- <div class="project__data">-->
<!-- <h2 class="project__title">You have a new project</h2>-->
<!-- <p class="project__description">Contact me now and get a 30% discount on your new project!</p>-->
<!-- <a href="#contact" class="button button--flex button--white">-->
<!-- Contact Me-->
<!-- <i class="uil uil-message project__icon button__icon"></i>-->
<!-- </a>-->
<!-- </div>-->
<!-- <img src="../IMG_2250.png" alt="" class="project__img">-->
<!-- </div>-->
<!-- </div>-->
<!-- </section>-->
<!--==================== TESTIMONIAL ====================-->
<section class="testimonial section">
</section>
<!--==================== CONTACT ME ====================-->
<section class="contact section" id="contact">
<h2 class="section__title">Contact Me</h2>
<span class="section__subtitle">Get in touch!</span>
<div class="contact__container container grid">
<div>
<div class="contact__information">
<i class="uil uil-phone contact__icon"></i>
<div>
<h3 class="contact__title">Phone</h3>
<span class="contact__subtitle">+1 (431)-668-8215</span>
</div>
</div>
<div class="contact__information">
<i class="uil uil-envelope-edit contact__icon"></i>
<div>
<h3 class="contact__title">Email</h3>
<span class="contact__subtitle">a.saifi2020@gmail.com</span>
</div>
</div>
<div class="contact__information">
<i class="uil uil-map-marker contact__icon"></i>
<div>
<h3 class="contact__title">Location</h3>
<span class="contact__subtitle">Winnipeg, Manitoba, Canada</span>
</div>
</div>
</div>
<form class="contact__form grid" action="https://formspree.io/f/mjvlkvoz" method="POST">
<div class="contact__inputs grid">
<div class="contact__content">
<label for="" class="contact__label">Full Name</label>
<input type="text" name="name" class="contact__input" placeholder="What is your name?">
</div>
<div class="contact__content">
<label for="" class="contact__label">Email</label>
<input type="email" name="email" class="contact__input" placeholder="Type your email here">
</div>
</div>
<div class="contact__content">
<label for="" class="contact__label">Subject</label>
<input type="text" name="subject" class="contact__input" placeholder="What is it about?">
</div>
<div class="contact__content">
<label for="" class="contact__label">Message</label>
<textarea name="message" id="" cols="0" rows="7" placeholder="Type your message here"
class="contact__input"></textarea>
</div>
<button type="submit" class="button">Send<i class="uil uil-message button__icon"></i></button>
<!-- <div>
<a href="#" class="button button--flex">
Send Message
<i class="uil uil-message button__icon"></i>
</a>
</div> -->
</form>
</div>
</section>
</main>
<!--==================== FOOTER ====================-->
<footer class="footer">
<div class="footer__bg">
<div class="footer__container container grid">
<div>
<h1 class="footer__title">Asad Saifi</h1>
<span class="footer__subtitle">Computer Science Student</span>
</div>
<ul class="footer__links">
<li>
<a href="#services" class="footer__link">Interests</a>
</li>
<li>
<a href="#portfolio" class="footer__link">Portfolio</a>
</li>
<li>
<a href="#contact" class="footer__link">Contact Me</a>
</li>
</ul>
<div class="footer__socials">
<a href="https://www.facebook.com/asad.saifi.58" target="_blank" class="footer__social">
<i class="uil uil-facebook-f facebook__icon"></i>
</a>
<a href="https://www.instagram.com/xjaden007x/" target="_blank" class="footer__social">
<i class="uil uil-instagram instagram__icon"></i>
</a>
<a href="https://twitter.com/asadsaifi90" target="_blank" class="footer__social">
<i class="uil uil-twitter-alt twitter__icon"></i>
</a>
</div>
</div>
<p class="footer__copy">© Asad. All Rights Reserved</p>
</div>
</footer>
<!--==================== SCROLL TOP ====================-->
<a href="#" class="scrollup" id="scroll-up">
<i class="uil uil-arrow-up scrollup__icon"></i>
</a>
<!--==================== SWIPER JS ====================-->
<script src="../swiper-bundle.min.js"></script>
<!--==================== MAIN JS ====================-->
<script src="js.js"></script>
</body>
</html>
| 46.769401 | 166 | 0.394254 |
fbba300c1b64fa52c5814a172aedf3a15b7e17b3 | 762 | h | C | CallTraceForWeChat/CallTraceForWeChat/WeChat_Headers/HoneyPayBaseViewController.h | ceekay1991/CallTraceForWeChat | 5767cb6f781821b6bf9facc8c87e58e15fa88541 | [
"MIT"
] | 30 | 2020-03-22T12:30:21.000Z | 2022-02-09T08:49:13.000Z | CallTraceForWeChat/CallTraceForWeChat/WeChat_Headers/HoneyPayBaseViewController.h | ceekay1991/CallTraceForWeChat | 5767cb6f781821b6bf9facc8c87e58e15fa88541 | [
"MIT"
] | null | null | null | CallTraceForWeChat/CallTraceForWeChat/WeChat_Headers/HoneyPayBaseViewController.h | ceekay1991/CallTraceForWeChat | 5767cb6f781821b6bf9facc8c87e58e15fa88541 | [
"MIT"
] | 8 | 2020-03-22T12:30:23.000Z | 2020-09-22T04:01:47.000Z | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "WCPayBaseViewController.h"
@class UIView;
@interface HoneyPayBaseViewController : WCPayBaseViewController
{
UIView *_navBackground;
}
@property(retain, nonatomic) UIView *navBackground; // @synthesize navBackground=_navBackground;
- (void).cxx_destruct;
- (void)honeyPaykeyboardDidHide:(id)arg1;
- (void)keyboardDidShow:(id)arg1;
- (void)didClickUnbind;
- (void)addNavigationBarBackground:(id)arg1;
- (id)dateStringFromTimestamp:(long long)arg1;
- (void)clickRightBarButton:(id)arg1;
- (void)showAlertWith:(id)arg1;
- (void)dealloc;
- (void)viewDidLoad;
@end
| 25.4 | 96 | 0.740157 |
53ae803129acbb2cb75856d254c4ef89c110e4a6 | 2,663 | java | Java | week6/src/com/atm/javadoc/sample/KeyPad.java | RodrigoAEscobar/JAVA-Projects | 9cada3f3c327edf09a7f0231d5720553b68a41ef | [
"Apache-2.0"
] | null | null | null | week6/src/com/atm/javadoc/sample/KeyPad.java | RodrigoAEscobar/JAVA-Projects | 9cada3f3c327edf09a7f0231d5720553b68a41ef | [
"Apache-2.0"
] | null | null | null | week6/src/com/atm/javadoc/sample/KeyPad.java | RodrigoAEscobar/JAVA-Projects | 9cada3f3c327edf09a7f0231d5720553b68a41ef | [
"Apache-2.0"
] | null | null | null | package com.atm.javadoc.sample;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JTextField;
/**
A component that lets the user enter a number, using
a button pad labeled with digits.
*/
public class KeyPad extends JPanel
{
private JPanel buttonPanel;
private JButton clearButton;
private JTextField display;
/**
Constructs the keypad panel.
*/
public KeyPad()
{
setLayout(new BorderLayout());
// Add display field
display = new JTextField();
add(display, "North");
// Make button panel
buttonPanel = new JPanel();
buttonPanel.setLayout(new GridLayout(4, 3));
// Add digit buttons
addButton("7");
addButton("8");
addButton("9");
addButton("4");
addButton("5");
addButton("6");
addButton("1");
addButton("2");
addButton("3");
addButton("0");
addButton(".");
// Add clear entry button
clearButton = new JButton("CE");
buttonPanel.add(clearButton);
class ClearButtonListener implements ActionListener
{
public void actionPerformed(ActionEvent event)
{
display.setText("");
}
}
ActionListener listener = new ClearButtonListener();
clearButton.addActionListener(new
ClearButtonListener());
add(buttonPanel, "Center");
}
/**
Adds a button to the button panel
@param label the button label
*/
private void addButton(final String label)
{
class DigitButtonListener implements ActionListener
{
public void actionPerformed(ActionEvent event)
{
// Don't add two decimal points
if (label.equals(".")
&& display.getText().indexOf(".") != -1)
return;
// Append label text to button
display.setText(display.getText() + label);
}
}
JButton button = new JButton(label);
buttonPanel.add(button);
ActionListener listener = new DigitButtonListener();
button.addActionListener(listener);
}
/**
Gets the value that the user entered.
@return the value in the text field of the keypad
*/
public double getValue()
{
return Double.parseDouble(display.getText());
}
/**
Clears the display.
*/
public void clear()
{
display.setText("");
}
}
| 22.956897 | 64 | 0.584303 |
18d75ec2fb6bd6342e57b89f315e03e418e64a92 | 676 | rs | Rust | src/formats/mod.rs | xiaozhuai/imageinfo-rs | bbb9bc7332de1e47fd29b049a073b3253eed4f09 | [
"MIT"
] | 1 | 2022-01-28T07:17:49.000Z | 2022-01-28T07:17:49.000Z | src/formats/mod.rs | xiaozhuai/imageinfo-rs | bbb9bc7332de1e47fd29b049a073b3253eed4f09 | [
"MIT"
] | null | null | null | src/formats/mod.rs | xiaozhuai/imageinfo-rs | bbb9bc7332de1e47fd29b049a073b3253eed4f09 | [
"MIT"
] | null | null | null | mod try_avif_heic;
mod try_bmp;
mod try_cur_ico;
mod try_dds;
mod try_gif;
mod try_hdr;
mod try_icns;
mod try_jp2_jpx;
mod try_jpg;
mod try_ktx;
mod try_png;
mod try_psd;
mod try_qoi;
mod try_tiff;
mod try_webp;
mod try_tga;
pub use try_avif_heic::try_avif_heic;
pub use try_bmp::try_bmp;
pub use try_cur_ico::try_cur_ico;
pub use try_dds::try_dds;
pub use try_gif::try_gif;
pub use try_hdr::try_hdr;
pub use try_icns::try_icns;
pub use try_jp2_jpx::try_jp2_jpx;
pub use try_jpg::try_jpg;
pub use try_ktx::try_ktx;
pub use try_png::try_png;
pub use try_psd::try_psd;
pub use try_qoi::try_qoi;
pub use try_tiff::try_tiff;
pub use try_webp::try_webp;
pub use try_tga::try_tga;
| 19.882353 | 37 | 0.785503 |
e7e0878d68716573089e5e18ffeb1b116f9270b8 | 283 | kt | Kotlin | userservice/src/main/kotlin/com/peachprivacy/userservice/authentication/PasswordResetForm.kt | p4skal/peachprivacy | 89a8994fb07e5573f5ea098d0b19cdf908bdba1c | [
"MIT"
] | null | null | null | userservice/src/main/kotlin/com/peachprivacy/userservice/authentication/PasswordResetForm.kt | p4skal/peachprivacy | 89a8994fb07e5573f5ea098d0b19cdf908bdba1c | [
"MIT"
] | null | null | null | userservice/src/main/kotlin/com/peachprivacy/userservice/authentication/PasswordResetForm.kt | p4skal/peachprivacy | 89a8994fb07e5573f5ea098d0b19cdf908bdba1c | [
"MIT"
] | null | null | null | package com.peachprivacy.userservice.authentication
import javax.validation.constraints.NotBlank
import javax.validation.constraints.Size
data class PasswordResetForm(
@field:NotBlank var token: String,
@field:NotBlank @field:Size(min = 6, max = 255) var password: String
) | 31.444444 | 72 | 0.795053 |