text
stringlengths
1
1.04M
language
stringclasses
25 values
The Deputy President of the Senate, Senator Jibrin Barau, has called on the Town Planners Registration Council of Nigeria (TOPREC) to embrace Information Senator Barau, who spoke on Thursday at the 36th induction ceremony of newly registered town planners in Abuja, added that town planners must key into ICT to expand the frontiers of their profession. The Deputy President of the Senate, represented by his Special Adviser on Special Duties, Idris Abiola Ajimobi, reiterated that ICT has come to stay and its various innovations will continue to add value to all industries and institutions in the country. He congratulated the newly inducted members of TOPREC and charged them to be good ambassadors of their profession.Read more: President Tinubu Sends Second List Of Ministerial Nominees To Nigerian Senate | Sahara ReportersPresident Bola Tinubu has transmitted the list containing his second batch of ministers to the senate. The president submitted the list through Femi Gbajabiamila, his Chief of Staff, on Wednesday. Gbajabiamila was accompanied to the Red Chamber by the Deputy Chief of Staff, Senator Hassan Hadejia. Already, the Senate had screened 25 nominees in the first batch as of the time of filing this report and there are three more nominees to go. Release President Bazoum Immediately – US President, Biden Calls On Niger Republic Military Junta | Sahara ReportersThe United States’ president, Joe Biden, on Thursday called for the immediate release of Niger Republic’s elected President Mohamed Bazoum and for the country’s democracy to be preserved. “I call for President Bazoum and his family to be immediately released, and for the preservation of Niger’s hard-earned democracy,” Biden said in a statement Thursday, the 63rd anniversary of Niger’s independence. Olorogun Emerhor congratulates Omo-Agege on 60th birthdayDelta All Progressives Congress (APC) founding leader, Olorogun O’tega Emerhor OON, has congratulated former Deputy Senate President Ovie Omo-Agege on his 60th birth anniversary. Olorogun Emerhor, in his goodwill message by his media aide, Aghogho Abraham Orotomah, noted Omo-Agege’s achievements at 60 are monumental, having served Delta in various executive capacities and Delta Central and Nigeria outstandingly during the 8th and 9th Senate dispensations. He stated Omo-Agege’s tenure as the Deputy Senate President was record breaking in terms of development improvements for his constituents and Nigeria as a whole. While wishing Senator Omo-Agege God’s continued grace, favour, long life and prosperity, Olorogun Emerhor urged all Deltans to continue to pray and support him as they await his swearing in as their duly elected Governor. FULL LIST: Names Of Ministerial Nominees In Second Batch Sent In By President Tinubu | Sahara ReportersPresident Bola Tinubu has transmitted 19 names in his second batch of ministers to the Nigerian senate for screening. SaharaReporters earlier reported that the president submitted the list through Femi Gbajabiamila, his Chief of Staff, on Wednesday. Gbajabiamila was accompanied to the Red Chamber by the Deputy Chief of Staff, Senator Hassan Hadejia. Already, the Senate had screened 25 nominees in the first batch as of the time of filing this report and there are three more nominees to go. Buhari, Osinbajo expected as Tinubu chairs APC caucus meeting todayPresident Bola Tinubu will today hosts former President Muhammadu Buhari; former Vice President Yemi Osinbajo; Senate President, Senator Godswill Akpabio; Speaker of the House of Representatives, Tajudeen Abbas and heavyweight members of the ruling All Progressives Congress at the party’s National Caucus meeting.
english
In 1989, US-trained Salvadoran army officers dragged six priests from their beds and shot them in the head. This weekend, thousands of protesters will converge on Fort Benning, Georgia, to mark the ninth anniversary of those murders. They'll demonstrate outside the School of the Americas, the US Army center where the alleged killers received military training. Meanwhile, in cyberspace, a group called the Electronic Disturbance Theater expects thousands of Net users from around the world to join them in an "online sit-in" on the School of Americas Web site. However, School of Americas Watch, the human-rights group organizing the march, is unimpressed. "We believe in putting our bodies on the line, not our computers," said Fr. Roy Bourgeois, founder of the School of the Americas Watch which protests the very existence of the school. "We have members serving six to 18 months in prison for their protest action." The School of the Americas was set up to imbue Latin American officers with American values and ideals. However, according to John Pike, a security analyst with the Federation of American Scientists, the center has been more successful at producing soldiers responsible for committing human-rights abuses. "Often the military is the instrument of social repression in Latin America, so you're not going to get Peace Corps volunteers," said Pike. The Electronic Disturbance Theater is a cyber-protest group that supports the Zapatista rebels in Chiapas, who are currently fighting against the Mexican government. Mexico sends a number of its officers to the School of the Americas. To draw attention to this cause, hacktivists attempt to disable certain Web sites temporarily by asking demonstrators to load a hostile Web-based program called FloodNet. The FloodNet Web page contains a Java applet configured to request and load the target Web sites every three seconds. These automated, rapid-fire requests, known as "denial of service" attacks, are designed to overwhelm the target site. And therein lies the problem with FloodNet, according to the School of the Americas Watch. "I think it’s a novel use of technology," said Michael Katz-Lacabe, the group's webmaster. "But the problem with it is that by denying access to the site, it is restricting the First Amendment rights of the operators."
english
<gh_stars>1-10 with (JS.Test) { describe("jQuery [-context_spec:0-]", function () { with (this) { addSkip(this) before(function () { with (this) { this.fixture = $("#fixture") fixture.html('<p>Hello</p>') this.p = fixture.find("p") }}) after(function () { with (this) { fixture.empty() }}) describe("with a 'message' class [-context_spec:1-]", function () { with (this) { addSkip(this) before(function () { with (this) { p.addClass("message") }}) it("returns true for existing classes [-context_spec:2-]", function () { with (this) { assert( p.hasClass("message") ) }}) }}) describe("without a 'message' class [-context_spec:3-]", function () { with (this) { addSkip(this) before(function () { with (this) { // no-op }}) it("returns false for non-existent classes [-context_spec:4-]", function () { with (this) { assertNot( p.hasClass("message") ) }}) }}) }}) }
javascript
--- ms.prod: devops ms.technology: devops-ecosystem title: Web Context | Extensions for Azure DevOps Services description: Context data available in your web extensions ms.assetid: b926a050-1e70-4907-8963-e4f2ee9939e5 ms.manager: mijacobs ms.author: chcomley author: chcomley ms.topic: article monikerRange: '>= tfs-2017' ms.date: 08/04/2016 --- # Web context The `core SDK` provides an API for getting context information, for example the current project's ID (if your extension is operating at a project or team level). ### Usage #### Example ```json { "id": "my-extension", ... "baseUri": "https://{{account.name}}.myservice.com/my-extension/{{project.id}}" } ``` ### Full JSON example ```json { "user": { "id": "d6245f20-2af8-44f4-9451-8107cb2767db", "name": "<NAME>", "email": "<EMAIL>", "uniqueName": "<EMAIL>" }, "team": { "id": "a63ff425-76b0-4dac-9b81-b265fb361da4", "name": "Quality assurance", "userIsMember": true, "userIsAdmin": true }, "project": { "id": "c501f0f0-9dca-40a3-ac5a-4d2d9a4a1825", "name": "Fabrikam-Fiber-Git" }, "collection": { "id": "7696cd7b-25fd-4378-b5f2-7c97228ee542", "name": "DefaultCollection", "uri": "https://dev.azure.com/fabrikam/DefaultCollection/", "relativeUri": "/DefaultCollection/" }, "account": { "id": "<PASSWORD>", "name": "fabrikam", "uri": "https://dev.azure.com/fabrikam/", "relativeUri": "/" }, "host": { "id": "7696cd7b-25fd-4378-b5f2-7c97228ee542", "name": "DefaultCollection", "uri": "https://dev.azure.com/fabrikam/DefaultCollection/", "relativeUri": "/DefaultCollection/", "hostType": "projectCollection", "scheme": "https", "authority": "dev.azure.com/fabrikam" } } ```
markdown
Prv. Close: Prv. Close: The Company History page lists out the major events in chronological order for Beekay Steel Industries Ltd. |Company History - Beekay Steel Industries Ltd. |Beekay Steel Industries Limited is a Company incorporated during 1981 and is presently headed by Mr.Suresh Chand Bansal as it Managing Director.Its main Production consists of Steel Bars & Rods and Steel Ingots. -We have successfully commissioned Producer Gas Plant (PGP), an indigenous energy source at our Jamshedpur unit. - Beekay's effort for successfully organizing 1st ever Blood donation camp at Jamshedpur Unit. - Beekay’s International Business division has been awarded with the prestigious National Star Performer of the Year Award. Date Sources:Live BSE and NSE Quotes Service: TickerPlant | Corporate Data, F&O Data & Historical price volume data: Dion Global Solutions Ltd. BSE Quotes and Sensex are real-time and licensed from the Bombay Stock Exchange. NSE Quotes and Nifty are also real time and licenced from National Stock Exchange. All times stamps are reflecting IST (Indian Standard Time). By using this site, you agree to the Terms of Service and Privacy Policy.
english
<reponame>digipost/http-client-builder<gh_stars>0 /** * Copyright (C) <NAME> * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * 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 no.digipost.http.client; import org.junit.jupiter.api.Test; import static no.digipost.http.client.HttpClientConnectionSettings.DEFAULT; import static no.digipost.http.client.HttpClientDefaults.SOCKET_TIMEOUT_MS; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.both; import static org.hamcrest.Matchers.greaterThan; import static org.hamcrest.Matchers.is; import static org.junit.jupiter.api.Assertions.assertThrows; class HttpClientConnectionSettingsTest { @Test public void negativeSocketTimeoutIsNotAllowed() { assertThrows(IllegalArgumentException.class, () -> DEFAULT.socketTimeout(-1)); } @Test public void defaultValuesAreGreaterThanZero() { assertThat(DEFAULT.socketTimeoutMs, both(is(SOCKET_TIMEOUT_MS)).and(greaterThan(0))); } @Test public void settingTimeoutValues() { assertThat(DEFAULT.socketTimeout(1337).socketTimeoutMs, is(1337)); } }
java
#include "server/connection.hpp" #include "server/request_handler.hpp" #include "server/request_parser.hpp" #include <boost/algorithm/string/predicate.hpp> #include <boost/assert.hpp> #include <boost/bind.hpp> #include <boost/iostreams/filter/gzip.hpp> #include <boost/iostreams/filtering_stream.hpp> #include <iterator> #include <string> #include <vector> namespace osrm { namespace server { Connection::Connection(boost::asio::io_service &io_service, RequestHandler &handler) : strand(io_service), TCP_socket(io_service), timer(io_service), request_handler(handler) { } boost::asio::ip::tcp::socket &Connection::socket() { return TCP_socket; } /// Start the first asynchronous operation for the connection. void Connection::start() { TCP_socket.async_read_some( boost::asio::buffer(incoming_data_buffer), strand.wrap(boost::bind(&Connection::handle_read, this->shared_from_this(), boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred))); if (keep_alive) { // Ok, we know it is not a first request, as we switched to keepalive timer.cancel(); timer.expires_from_now(boost::posix_time::seconds(keepalive_timeout)); timer.async_wait(std::bind( &Connection::handle_timeout, this->shared_from_this(), std::placeholders::_1)); } } void Connection::handle_read(const boost::system::error_code &error, std::size_t bytes_transferred) { if (error) { return; } if (keep_alive) { timer.cancel(); timer.expires_from_now(boost::posix_time::seconds(0)); } // no error detected, let's parse the request http::compression_type compression_type(http::no_compression); RequestParser::RequestStatus result; std::tie(result, compression_type) = request_parser.parse(current_request, incoming_data_buffer.data(), incoming_data_buffer.data() + bytes_transferred); // the request has been parsed if (result == RequestParser::RequestStatus::valid) { boost::system::error_code ec; current_request.endpoint = TCP_socket.remote_endpoint(ec).address(); if (ec) { handle_shutdown(); return; } request_handler.HandleRequest(current_request, current_reply); if (boost::iequals(current_request.connection, "close")) { current_reply.headers.emplace_back("Connection", "close"); } else { keep_alive = true; current_reply.headers.emplace_back("Connection", "keep-alive"); current_reply.headers.emplace_back("Keep-Alive", "timeout=5, max=512"); } // compress the result w/ gzip/deflate if requested switch (compression_type) { case http::deflate_rfc1951: // use deflate for compression current_reply.headers.insert(current_reply.headers.begin(), {"Content-Encoding", "deflate"}); compressed_output = compress_buffers(current_reply.content, compression_type); current_reply.set_size(static_cast<unsigned>(compressed_output.size())); output_buffer = current_reply.headers_to_buffers(); output_buffer.push_back(boost::asio::buffer(compressed_output)); break; case http::gzip_rfc1952: // use gzip for compression current_reply.headers.insert(current_reply.headers.begin(), {"Content-Encoding", "gzip"}); compressed_output = compress_buffers(current_reply.content, compression_type); current_reply.set_size(static_cast<unsigned>(compressed_output.size())); output_buffer = current_reply.headers_to_buffers(); output_buffer.push_back(boost::asio::buffer(compressed_output)); break; case http::no_compression: // don't use any compression current_reply.set_uncompressed_size(); output_buffer = current_reply.to_buffers(); break; } // write result to stream boost::asio::async_write(TCP_socket, output_buffer, strand.wrap(boost::bind(&Connection::handle_write, this->shared_from_this(), boost::asio::placeholders::error))); } else if (result == RequestParser::RequestStatus::invalid) { // request is not parseable current_reply = http::reply::stock_reply(http::reply::bad_request); boost::asio::async_write(TCP_socket, current_reply.to_buffers(), strand.wrap(boost::bind(&Connection::handle_write, this->shared_from_this(), boost::asio::placeholders::error))); } else { // we don't have a result yet, so continue reading TCP_socket.async_read_some( boost::asio::buffer(incoming_data_buffer), strand.wrap(boost::bind(&Connection::handle_read, this->shared_from_this(), boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred))); } } /// Handle completion of a write operation. void Connection::handle_write(const boost::system::error_code &error) { if (!error) { if (keep_alive && processed_requests > 0) { --processed_requests; current_request = http::request(); current_reply = http::reply(); request_parser = RequestParser(); incoming_data_buffer = boost::array<char, 8192>(); output_buffer.clear(); this->start(); } else { handle_shutdown(); } } } /// Handle completion of a timeout timer.. void Connection::handle_timeout(boost::system::error_code ec) { // We can get there for 3 reasons: spurious wakeup by timer.cancel(), which should be ignored // Slow client with a delayed _first_ request, which should be ignored too // Absent next request during waiting time in the keepalive mode - should stop right there. if (ec != boost::asio::error::operation_aborted) { boost::system::error_code ignore_error; TCP_socket.cancel(ignore_error); handle_shutdown(); } } void Connection::handle_shutdown() { // Initiate graceful connection closure. boost::system::error_code ignore_error; TCP_socket.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ignore_error); } std::vector<char> Connection::compress_buffers(const std::vector<char> &uncompressed_data, const http::compression_type compression_type) { boost::iostreams::gzip_params compression_parameters; // there's a trade-off between speed and size. speed wins compression_parameters.level = boost::iostreams::zlib::best_speed; // check which compression flavor is used if (http::deflate_rfc1951 == compression_type) { compression_parameters.noheader = true; } std::vector<char> compressed_data; // plug data into boost's compression stream boost::iostreams::filtering_ostream gzip_stream; gzip_stream.push(boost::iostreams::gzip_compressor(compression_parameters)); gzip_stream.push(boost::iostreams::back_inserter(compressed_data)); gzip_stream.write(&uncompressed_data[0], uncompressed_data.size()); boost::iostreams::close(gzip_stream); return compressed_data; } } }
cpp
<gh_stars>10-100 package wint.sessionx.provider.cookie; import wint.lang.utils.CollectionUtil; import wint.lang.utils.MapUtil; import wint.sessionx.constants.SpecSessionKeys; import wint.sessionx.cookie.WintCookie; import wint.sessionx.provider.BaseConfig; import wint.sessionx.provider.batch.BatchGetReceiver; import wint.sessionx.provider.batch.BatchSetter; import wint.sessionx.provider.batch.CookieSessionAttributeReader; import wint.sessionx.provider.batch.CookieSessionAttributeWriter; import wint.sessionx.provider.sessionid.SessionIdGenerator; import wint.sessionx.store.AbstractSessionStore; import wint.sessionx.store.SessionData; import java.util.Map; import java.util.Set; /** * Created by pister on 14-2-26. */ public class CookieSessionStore extends AbstractSessionStore { private CookieSessionConfig config; private SessionIdGenerator sessionIdGenerator; private Map<String, SessionData> orgData = MapUtil.newHashMap(); private Set<String> toBeDeleteNames = CollectionUtil.newHashSet(); private Map<String, SessionData> updatedData = MapUtil.newHashMap(); private CookieCodec cookieCodec; public CookieSessionStore(CookieCodec cookieCodec, CookieSessionConfig config, SessionIdGenerator sessionIdGenerator) { this.cookieCodec = cookieCodec; this.config = config; this.sessionIdGenerator = sessionIdGenerator; } @Override public String getSessionId() { return getString(SpecSessionKeys.SESSION_ID); } public void set(String name, SessionData data) { updatedData.put(name, data); toBeDeleteNames.remove(name); } public SessionData get(String name) { if (toBeDeleteNames.contains(name)) { return null; } SessionData ret = updatedData.get(name); if (ret != null) { return ret; } return orgData.get(name); } @Override public void batchGet(BatchGetReceiver batchGetReceiver) { batchGetReceiver.onReceive(new CookieSessionAttributeReader(this)); } @Override public void batchSet(BatchSetter batchSetter) { batchSetter.onSet(new CookieSessionAttributeWriter(this)); } public void remove(String name) { updatedData.remove(name); toBeDeleteNames.add(name); } public Set<String> getNames() { Set<String> ret = CollectionUtil.newHashSet(); ret.addAll(orgData.keySet()); ret.addAll(updatedData.keySet()); ret.removeAll(toBeDeleteNames); return ret; } public void clearAll() { orgData.clear(); toBeDeleteNames.clear(); updatedData.clear(); } public WintCookie commitForCookie() { return commitForCookie(0); } @Override public WintCookie commitForCookie(int expire) { return cookieCodec.buildCookie(this); } public Map<String, SessionData> getOrgData() { return orgData; } public void initData(Map<String, SessionData> data) { this.orgData.putAll(data); } public Set<String> getToBeDeleteNames() { return toBeDeleteNames; } public Map<String, SessionData> getUpdatedData() { return updatedData; } @Override protected BaseConfig getConfig() { return config; } @Override protected SessionIdGenerator getSessionIdGenerator() { return sessionIdGenerator; } }
java
body { background-color: inherit; /* background color */ font-family: Helvetica; /* font name */ font-size: xx-small; /* font size - DO NOT CHANGE! */ } /* table for PDF export */ .ewTable { border: 0; border-spacing: 0; border-collapse: separate; font-size: xx-small; /* font size - DO NOT CHANGE! */ width: 100%; border-top: 0.5px solid; border-left: 0.5px solid; border-color: #BFD3EE; /* border color */ margin-left: 0; margin-right: 0; } .ewTable td, .ewTable th { padding: 3px; /* cell padding */ border-top: 0px; border-left: 0px; border-right: 0.5px solid; /* border width, vertical grid line */ border-bottom: 0.5px solid; /* border width, horizontal grid line */ border-color: #BFD3EE; /* border color */ } .ewTable .ewTableHeader td, .ewTable .ewTableHeader th { background-image: none; /* remove header bg image */ background-color: #2647A0; /* header bgcolor */ color: #FFFFFF; /* header font color */ vertical-align: top; } /* row color */ .ewTable .ewTableRow, .ewTable .ewTableRow td { background-color: #FFFFFF; /* alt row color 1 */ } /* alternate row color */ .ewTable .ewTableAltRow, .ewTable .ewTableAltRow td { background-color: #EDF5FF; /* alt row color 2 */ } /* crosstab column row */ .ewTable .ewTableColumnRow { background-color: #EDF5FF; /* alt row color 2 */ } /* group 1 */ .ewTable .ewRptGrpHeader1 { color: black; background-color: white; border-bottom: 1px solid; /* header border width */ border-right: 1px solid; /* header border width */ font-weight: bold; } .ewRptGrpHeader1 a:link, .ewRptGrpHeader1 a:active, .ewRptGrpHeader1 a:visited { color: inherit; text-decoration: none; } .ewRptGrpField1 { background-color: white; } .ewRptGrpSummary1 { color: #2647A0; background-color: #F0F8FF; } /* group 2 */ .ewTable .ewRptGrpHeader2 { color: black; background-color: white; border-bottom: 1px solid; /* header border width */ border-right: 1px solid; /* header border width */ font-weight: bold; } .ewRptGrpHeader2 a:link, .ewRptGrpHeader2 a:active, .ewRptGrpHeader2 a:visited { // color: inherit; text-decoration: none; } .ewRptGrpField2 { background-color: white; } .ewRptGrpSummary2 { color: black; background-color: white; } /* group 3 */ .ewTable .ewRptGrpHeader3 { color: black; background-color: white; border-bottom: 1px solid; /* header border width */ border-right: 1px solid; /* header border width */ font-weight: bold; } .ewRptGrpHeader3 a:link, .ewRptGrpHeader3 a:active, .ewRptGrpHeader3 a:visited { // color: inherit; text-decoration: none; } .ewRptGrpField3 { background-color: white; } .ewRptGrpSummary3 { color: #2647A0; background-color: #F0F8FF; } /* group 4 */ .ewTable .ewRptGrpHeader4 { color: black; background-color: white; border-bottom: 1px solid; /* header border width */ border-right: 1px solid; /* header border width */ font-weight: bold; } .ewRptGrpHeader4 a:link, .ewRptGrpHeader4 a:active, .ewRptGrpHeader4 a:visited { // color: inherit; text-decoration: none; } .ewRptGrpField4 { background-color: white; } .ewRptGrpSummary4 { color: black; background-color: white; } /* group 5 */ .ewTable .ewRptGrpHeader5 { color: black; background-color: white; border-bottom: 1px solid; /* header border width */ border-right: 1px solid; /* header border width */ font-weight: bold; } .ewRptGrpHeader5 a:link, .ewRptGrpHeader5 a:active, .ewRptGrpHeader5 a:visited { // color: inherit; text-decoration: none; } .ewRptGrpField5 { background-color: white; } .ewRptGrpSummary5 { color: #2647A0; background-color: #F0F8FF; } /* group 6 */ .ewTable .ewRptGrpHeader6 { color: black; background-color: white; border-bottom: 1px solid; /* header border width */ border-right: 1px solid; /* header border width */ font-weight: bold; } .ewRptGrpHeader6 a:link, .ewRptGrpHeader6 a:active, .ewRptGrpHeader6 a:visited { // color: inherit; text-decoration: none; } .ewRptGrpField6 { background-color: white; } .ewRptGrpSummary6 { color: black; background-color: white; } .ewRptGrpAggregate { font-weight: bold; } .ewRptPageSummary { color: black; /* page summary text color */ background-color: #99CCFF; /* page total background color */ } .ewRptGrandSummary { color: black; /* grand summary text color */ background-color: white; /* grand summary background color */ } /* for crosstab report only */ .ewRptColHeaderRow td { border-bottom: 1px solid; /* header border width */ } .ewRptColSummary { background-color: #2647A0; /* column summary */ color: #FFFFFF; } .ewRptColHeader { background-color: #2647A0; /* column heading background color */ color: #FFFFFF; /* column heading text color */ } /* export page break */ .ewPageBreak { page-break-before: always; }
css
Huawei today announced a partnership with the world's most famous fashion photographer, Mario Testino, to mark the launch of the Huawei watch. This is the first time that Huawei has worked with the iconic fashion photographer to convey its vision of fashion and technology embracing. The Huawei Watch enables users to stay connected wherever they are with notifications of calls, texts, instant messages and emails. The watch is crafted using sophisticated materials, features a fully circular 1. 4 inch touch-sensitive AMOLED display along with scratch-proof sapphire crystal and a cold-forged stainless steel frame. SEE ALSO: IFA 2015: Acer Announces Its First Convertible 'Chromebook R 11' The watch measures 42mm in diameter. There is a range of gold, silver and black frames and a variety of different watch face designs to choose from, across a range of classic, luxury, business, feminine, modern and simple aesthetics. Furthermore, it also has 22mm straps includes stainless steel mesh, stainless steel links, rose gold, and black-plated stainless steel links, and brown and black leather. The watch is also capable of downloading music for offline playback. It also features a heart rate sensor that accurately measures heart rates and the 6-Axis motion sensor can track activities including walking, running and mountain climbing. The Huawei Watch will go on sale in Canada, Germany, France, Spain and Italy this month and prices are between Euro 399. 00 and Euro 699. 00 depending on the design features chosen.
english
<reponame>charles-halifax/recipes { "directions": [ "Preheat oven to 400 degrees F (200 degrees C). Line a baking sheet with parchment paper.", "Spread pumpkin seeds, walnuts, almonds, oats, coconut, cacao nibs, and flaxseed meal in a single layer on the baking sheet.", "Bake pumpkin seed mixture in the preheated oven until toasted and fragrant, 10 to 12 minutes. Let cool completely, about 15 minutes.", "Lower oven temperature 325 degrees F (165 degrees C). Spray a 9x12-inch baking dish with cooking spray and line with parchment paper, leaving an overhang on 2 sides. Spray parchment paper with cooking spray.", "Mix cooled pumpkin seed mixture, dried fruit, mini chocolate chips, and cinnamon together in a large bowl. Pour in brown rice syrup; mix well to combine. Pour into the prepared pan and press into an even layer with the back of a spoon or a small piece of parchment paper.", "Bake in the preheated oven until lightly browned on the edges, 17 to 20 minutes. Cool on a baking rack for 20 minutes. Slice into bars." ], "ingredients": [ "1 cup coarsely chopped raw pumpkin seeds", "1 cup coarsely chopped raw walnuts", "1 cup coarsely chopped raw almonds", "2/3 cup rolled oats", "1/4 cup shredded coconut (optional)", "2 tablespoons cacao nibs, or more to taste (optional)", "1 tablespoon flaxseed meal, or more to taste (optional)", "cooking spray", "1 cup chopped dried fruit", "1/4 cup mini bittersweet chocolate chips, or to taste (optional)", "2 teaspoons cinnamon", "2/3 cup brown rice syrup" ], "language": "en-US", "source": "allrecipes.com", "tags": [], "title": "Chewy Vegan Granola Bars", "url": "http://allrecipes.com/recipe/247422/chewy-vegan-granola-bars/" }
json
var express = require('express'); var request = require("request"); var app = express(); app.set('views', './views'); app.set('view engine', 'jade'); var requestTime = function (req, res, next) { req.requestTime = Date.now(); next(); }; app.use(requestTime); app.get('/', function (req, res) { var url = "http://api.openweathermap.org/data/2.5/forecast?q=Rostock,de&APPID=XXXXX&units=metric&lang=de"; var weatherJson = {}; request({ url: url, json: true }, function (error, response, body) { if (!error && response.statusCode === 200) { console.log(body); // Print the json response weatherJson = body; res.render('index', { title: 'Hey', message: 'Hello there!', jsoncode: JSON.stringify(weatherJson, null, 4) }); } }); /* res.render('index', { title: 'Hey', message: 'Hello there!', jsoncode: JSON.stringify(weatherJson) }); */ }); app.listen(3000);
javascript
<reponame>ryqndev/demo-boba-watch { "Language": "Language", "logout": "logout", "Max of drinks / month": "Max # of drinks / month", "theme": "theme", "light": "light", "dark": "dark", "dashboard": "dashboard", "drink frequency": "drink frequency", "Sun": "Sun", "Mon": "Mon", "Tue": "Tue", "Wed": "Wed", "Thu": "Thu", "Fri": "Fri", "Sat": "Sat", "drinks purchased": "drink purchased", "drinks purchased_plural": "drinks purchased", "drinks this month": "drink this month", "this is how much you’ve spent on drinks so far": "This is how much you’ve spent on drinks so far", "coming soon": "coming soon", "monthly budget": "Monthly Budget", "monthly limit": "MONTHLY LIMIT", "remaining": "REMAINING", "search": "Search", "search your past uploads": "Search your past uploads", "search your history...": "Search your history...", "recent purchases": "Recent Purchases", "no drinks recorded": "You don't have any drinks recorded!", "history": "history", "date": "date", "location": "location", "drink name": "drink name", "price": "price", "no drink recorded": "No drinks found. Let's get started by adding a drink", "show more": "show more", "no drink selected": "Select a drink from your history to view it's details", "edit": "edit", "delete": "delete", "Monthly Spending": "Monthly Spending", "Monthly Total": "Monthly Total", "Overall Spending": "Overall Spending", "Complete Total": "Complete Total", "add a purchase": "add a purchase", "edit a purchase": "edit a purchase", "details": "details", "rating": "rating", "photo": "photo", "UPLOAD AN IMAGE": "UPLOAD AN IMAGE", "UPLOADING...": "UPLOADING...", "description": "description", "preview": "preview", "no description": "no description", "how was your drink?": "how was your drink?", "add": "add", "update": "update", "saved drinks": "saved drinks", "saved drinks button description part 1": "You can save your favorite drink to make recording them easier! Just fill out the form with the fields you want saved and click", "saved drinks button description part 2": "below before adding", "create": "Create", "create button description": "Click here to save the current form for future use", "no drinks saved": "No drinks currently saved", "Select a location from": "Select a location from", "nearby locations": "nearby locations", "previously used": "previously used", "or manually enter a location": "or manually enter a location", "search by name": "search by name", "allow location access to get nearby locations": "Allow location access to get nearby locations.", "nothing found matching your search": "Nothing found matching your search.", "no saved drinks with tagged location": "You have no previous drinks with a tagged location", "name": "name", "boba locator": "boba locator", "add drink for this location": "Add drink for this location", "locations": "Locations", "open now": "open now", "boba": "boba", "coffee": "coffee", "km": "km", "meters": "meters", "from search pin": "from search pin", "center on map": "center on map", "search this area": "search this area", "Showing visited places": "showing visited locations", "Finding nearby places": "finding nearby locations" }
json
Smart and dashing Varun Dhawan is currently busy with his upcoming movie 'Dilwale' that is set to hit theatres on December 18. But the actor has given us a hint that he might soon work with ace director Zoya Akhtar for her next. The actor took to twitter saying, "Zoya Akhtar at work #funfilmaker #comingsoon. " He also shared a picture of Zoya with greenery at the backdrop. The image shows that Zoya Akhtar is seen all engrossed with her phone, with green all around. Varun is currently looking forward for his big release of the year 'Dilwale'. He will soon star other projects like 'Dishoom' and 'Shuddhi' that will only release by next year. Follow us on Google News and stay updated with the latest!
english
and relationships; Transposed XlX (Source: Srushti Rao) You have exhausted your monthly limit of free stories. Srushti Rao at Jehangir Art Gallery (Source: Jehangir Art Gallery) The exhibition showcased works created during the past three years, including the lockdown; Transcendence (Source: Srushti Rao) (Source: Srushti Rao) Transposed IX (Source: Srushti Rao) Rao exhibited 17 pieces of large artworks created in acrylic on canvas and linen, selected from four different series of paintings; Transposed XI (Source: Srushti Rao) "I like to explore the relationship between time and space, and how that dictates human behaviour. My practice has evolved through the years and I have worked across themes, but these two aspects have remained constant throughout my journey," she said in a statement; Transposed XVIII (Source: Srushti Rao) Rao added, "I am intrigued by the theory of relativity. I am researching more about it at the moment, perhaps that reflects in my paintings as well. "; A Chasm in Time VII (Source: Srushti Rao) "Her paintings, Transposed X and Transposed XI, are works that take place in non-spaces, in which what we understand of reality has dissolved into these shapes, and that for their luminosity are ripe for our imaginations. And within these patterned platforms, whilst longing for perfection, Rao adds these slight brushstrokes that rest like snowflakes on everything of her paintings, and introduce texture to images that might otherwise be entirely flat. Making it appear as though there is a kind of roughness to the work, that introduces new possibilities to what we might understand of a reductive vision," wrote Rajesh Punj, a London-based art critic and collector; Transcendence II (Source: Srushti Rao)
english
Tamil couple wedding in Metaverse. (Image: Twitter) New Delhi: A Tamil Nadu couple is set to host their wedding reception digitally — in the Metaverse to be precise. Dinesh SP and Janaganandini Ramaswamy are to get married in February in Tamil Nadu's Sivalingapuram village, but their Hogwarts-themed wedding reception will take place in the metaverse, Times of India reported. Metaverse is a virtual world where users can meet and connect with each other digitally through unique avatars. The metaverse is a fully immersive, 3D version of the internet, combining various elements of technology, such as augmented reality, virtual reality, blockchain etc. "I came up with the idea of having a Metaverse wedding reception, and my fiancee also liked the idea. I have been into crypto and blockchain technology, and have been mining ethereum, a form of cryptocurrency, for the last one year. Since blockchain is the basic technology of Metaverse, when my wedding was fixed, I thought of having a reception in Metaverse," Dinesh told Times of India. "We are also accepting marriage gifts via Metaverse. Guests can transfer gift vouchers or Google Pay and we are also accepting cryptos as gifts," he added. Dinesh has posted on Twitter a glimpse of his upcoming wedding:
english
Minecraft 1.20.2 debuted just a few days ago for Java Edition, bringing along a plethora of changes and features that players can enjoy. A large collection of bug fixes were implemented as well, some of which may be a bit disappointing for longtime fans of the sandbox title. One fix, in particular, has made villager trading somewhat less cost-effective than it was before the latest update. In previous versions of Minecraft, players could cure a zombie villager and reinfect it multiple times, allowing the trading discount provided after curing to stack. However, as of version 1.20.2, players can only receive the discount once, as Mojang stated that the stacking effect wasn't intended. Although curing a zombie villager in Minecraft is still great for trading, version 1.20.2 does diminish the overall value of doing so. Minecraft's villagers have been receiving quite a bit of attention in recent snapshots and previews before the zombie villager discount bug was ever addressed. In fact, Mojang is currently implementing a total villager trade rebalancing piece by piece, though this process remains an Experimental Feature that must be enabled. The implementation divides villager trades into different offerings depending on the villager's home biome, including biomes like jungles and swamps where villages don't naturally generate during world creation. This leaves players scrambling not only to find the right villager biomes but also to level up villagers' profession levels to obtain the best trades. Combined with the fact that Minecraft villagers no longer provide stacking trade discounts after being cured from their zombified states, version 1.20.2 has significantly altered the way villagers operate within the game when the rebalancing is toggled on. Villager trading halls have become less effective due to the biome-dependent nature of the trade rebalance, and players won't be able to simply zombify and cure a villager multiple times to acquire high-quality items for an immensely reduced cost. The discounts are still useful but are a far cry from what they were before. Between the rebalancing of villager trades and fixing the discount bug, Mojang is clearly making a concerted effort to make villagers less of an easy source of powerful items early on in a playthrough. This has led some fans to grow quite unhappy, even before the trade rebalancing becomes a full-fledged feature that can't be disabled. Although Mojang is openly accepting feedback from the player base, the developers seem to be committed to their vision of making villagers less of an early-game crutch of sorts. It appears that in Mojang's eyes, if fans want powerful gear, items, and enchantments from villagers, they'll have to put in quite a bit of work to do so. Considering that villager trading halls have been such a huge part of Minecraft for over a decade, players haven't been particularly thrilled with this slew of changes. Many have reached out on Mojang's feedback site to ask for the trade rebalances to not be implemented at all, but the developers seem to have a different point of view. Some players have also seen the discount bug fix as adding insult to injury, as the fix made to zombie villagers wasn't implemented via Experimental Features. This may be due to the fact that the stacking discount was never intended from the start, but it certainly hasn't made many longtime Minecraft fans pleased. Whatever the case may be, though fans have clearly made their voices heard in recent weeks, Minecraft 1.20.2 has shown that some implementations for the future of villagers and their trading mechanics aren't open to suggestions. Hopefully, even with discounts being limited to one per cured villager, Mojang has plans for the future that will bring players back around.
english
To promote Deepor Beel as a tourism destination, the Assam government plans to deport all unlawful encroachers from the state's lone Ramsar site, Deepor Beel, which is located in the city. GUWAHATI: To promote Deepor Beel as a tourist attraction, the Assam government plans to remove all unlawful encroachers from the state's lone Ramsar site, Deepor Beel, which is located in the city. Dipor Bil, also known as Deepor Beel, is a lake in the Assamese language that is located southwest of Guwahati in the Kamrup Metropolitan district of Assam, India. In a historic Brahmaputra River channel, it is a continuous freshwater lake located to the south of the main river. The Ramsar Convention, which declared the lake as a Ramsar Site in November 2002, necessitating protection measures owing to its biological and environmental importance, refers to it as a wetland. During the state Assembly's winter session on Monday, the tourism department of Assam requested that the state revenue department draught a report on the unlawful encroachment in the Deepor Beel and submit it within 10 days. The state's Tourism Department intends to build a watchtower and investigate the possibility of developing infrastructure facilities similar to Kashmir's Dal Lake. "Our administration has a strong attitude to unlawful encroachment," Assam tourism minister Bimal Borah told the House. Illegal immigrants have been expelled from Garukhuti, Lumding Forest, and other locations. Within 10 days, I'd want the revenue department to produce a report on illegal encroachment in and around Deepor Beel. " "Technical obstacles in installing various infrastructures at the area since Deepor Beel has been declared as a bird sanctuary," he stated. On December 18, the forest department agreed to provide us with some land in exchange for us constructing the necessary infrastructure for the area's tourist expansion. We're going to build a watchtower and 100 houseboats. " The opposition Congress also demanded that the lake's illegal encroachment be eliminated as quickly as feasible, as well as the dumping site near the Beel. Also Watch:
english
3 But I said: Hear, leaders of Jacob, rulers of the house of Israel! 2 you who hate good and love evil, who tear the skin off them, and the flesh off their bones, 3 who devour the flesh of my people, tear off their skin, break their bones in pieces, and spread them out as if in a pot, like meat in a kettle. 4 Then they will cry out to the Lord, but he won’t answer them. He will hide his face from them at that time, because of their evil deeds. 5 The Lord proclaims concerning the prophets, those who lead my people astray, but stir up war against the one who puts nothing in their mouths: 6 Therefore, it will become night for you, without divination! The sun will set on the prophets; the day will be dark upon them. 7 Those seeing visions will be ashamed, and the diviners disgraced; for there will be no answer from God. 8 But me! I am filled with power, with the spirit of the Lord, with justice and might, to declare to Jacob his wrongdoing and to Israel his sin! 9 Hear this, leaders of the house of Jacob, rulers of the house of Israel, you who reject justice and make crooked all that is straight, 10 who build Zion with bloodshed and Jerusalem with injustice! 11 Her officials give justice for a bribe, and her priests teach for hire. Her prophets offer divination for silver, yet they rely on the Lord, saying, “Isn’t the Lord in our midst? 12 Therefore, because of you, Zion will be plowed like a field, Jerusalem will become piles of rubble, and the temple mount will become an overgrown mound. 3 Then I said, “Listen, you leaders(A) of Jacob, you rulers of Israel. Should you not embrace justice, 2 you who hate good and love evil; and the flesh from their bones;(B) 3 who eat my people’s flesh,(C) and break their bones in pieces;(D) who chop(E) them up like meat for the pan, 4 Then they will cry out to the Lord, but he will not answer them.(G) because of the evil they have done.(I) 5 This is what the Lord says: who lead my people astray,(J) they proclaim ‘peace’(K) if they have something to eat, who refuses to feed them. 6 Therefore night will come over you, without visions, and darkness, without divination.(L) The sun will set for the prophets,(M) and the day will go dark for them.(N) 7 The seers will be ashamed(O) and the diviners disgraced.(P) They will all cover(Q) their faces(R) 8 But as for me, I am filled with power, with the Spirit of the Lord, and with justice and might, to declare to Jacob his transgression, to Israel his sin.(T) 9 Hear this, you leaders of Jacob, you rulers of Israel, and distort all that is right;(U) 10 who build(V) Zion with bloodshed,(W) and Jerusalem with wickedness.(X) 11 Her leaders judge for a bribe,(Y) her priests teach for a price,(Z) and her prophets tell fortunes for money.(AA) Yet they look(AB) for the Lord’s support and say, “Is not the Lord among us? No disaster will come upon us.”(AC) 12 Therefore because of you, Zion will be plowed like a field, Jerusalem will become a heap of rubble,(AD) the temple(AE) hill a mound overgrown with thickets.(AF) Holy Bible, New International Version®, NIV® Copyright ©1973, 1978, 1984, 2011 by Biblica, Inc.® Used by permission. All rights reserved worldwide. NIV Reverse Interlinear Bible: English to Hebrew and English to Greek. Copyright © 2019 by Zondervan.
english
export enum DBCollections { BOOKS = 'books', LIBRARIES = 'libraries', USERS = 'users', LABELS = 'labels', FRIEND_REQUESTS = 'friend_requests', CHATS = 'chats', CHAT_MESSAGES = 'chat_messages', BOOK_REVIEWS = 'book_reviews' }
typescript
<gh_stars>0 /* Relay API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) API version: v20200615 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package openapi import ( "encoding/json" ) // ConnectionSummaryAllOf A summary of an external connection type ConnectionSummaryAllOf struct { // The set of capabilities to enable for a connection Capabilities []ConnectionProviderCapability `json:"capabilities"` } // NewConnectionSummaryAllOf instantiates a new ConnectionSummaryAllOf object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed func NewConnectionSummaryAllOf(capabilities []ConnectionProviderCapability) *ConnectionSummaryAllOf { this := ConnectionSummaryAllOf{} this.Capabilities = capabilities return &this } // NewConnectionSummaryAllOfWithDefaults instantiates a new ConnectionSummaryAllOf object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set func NewConnectionSummaryAllOfWithDefaults() *ConnectionSummaryAllOf { this := ConnectionSummaryAllOf{} return &this } // GetCapabilities returns the Capabilities field value func (o *ConnectionSummaryAllOf) GetCapabilities() []ConnectionProviderCapability { if o == nil { var ret []ConnectionProviderCapability return ret } return o.Capabilities } // GetCapabilitiesOk returns a tuple with the Capabilities field value // and a boolean to check if the value has been set. func (o *ConnectionSummaryAllOf) GetCapabilitiesOk() (*[]ConnectionProviderCapability, bool) { if o == nil { return nil, false } return &o.Capabilities, true } // SetCapabilities sets field value func (o *ConnectionSummaryAllOf) SetCapabilities(v []ConnectionProviderCapability) { o.Capabilities = v } func (o ConnectionSummaryAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["capabilities"] = o.Capabilities } return json.Marshal(toSerialize) } type NullableConnectionSummaryAllOf struct { value *ConnectionSummaryAllOf isSet bool } func (v NullableConnectionSummaryAllOf) Get() *ConnectionSummaryAllOf { return v.value } func (v *NullableConnectionSummaryAllOf) Set(val *ConnectionSummaryAllOf) { v.value = val v.isSet = true } func (v NullableConnectionSummaryAllOf) IsSet() bool { return v.isSet } func (v *NullableConnectionSummaryAllOf) Unset() { v.value = nil v.isSet = false } func NewNullableConnectionSummaryAllOf(val *ConnectionSummaryAllOf) *NullableConnectionSummaryAllOf { return &NullableConnectionSummaryAllOf{value: val, isSet: true} } func (v NullableConnectionSummaryAllOf) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableConnectionSummaryAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }
go
<filename>README.md # BDPM Training Course Bio Big Data and Precision Medicine Training Course @ Centre for Precision Medicine, Seoul National University Hospital If you want to open the link in a new tab, use ctrl click.<br/> [Course Information](http://bdpm.snubi.org) <a href="http://ksbi.or.kr/">**Korean Society of Bioinformatics**</a> Certified
markdown
कमनीया कमला बभूव देवी । अमलामवलोक्य यां विलोल: O Lord of the worlds! Devoted to Thee, then the enchanting Lakshmi Devi emerged. Seeing her pure and perfect form everyone was fascinated and the world got agitated with desire.
english
Bae Suzy, Go Ah Sung's chemistry takes center stage in Sweet Dream MV by Fictional Girl Group Dream Sweet, leaving fans awestruck. With only a day remaining before the premiere of the upcoming Netflix series Doona!, fans were taken aback by the music video for the on-screen girl group featured in the drama. Starring Bae Suzy and Yang Sejong, the series revolves around a college student who becomes roommates with Doona, a retired K-pop idol leaving behind her glamorous days. In the unveiled music video, Bae Suzy, along with Go Ah Sung, showcases her idol talents, leaving fans in awe. On October 18, during a special press conference for the premiere of the Netflix original series Doona!, the music video for the song Sweet Dream by the in-drama girl group Dream Sweet was revealed for the first time. To bring the character of Lee Doona to life, the drama introduced her former group Dream Sweet with a surprising lineup, including Rian and Simeez from the dance crew La Chica, singer Janet Suhh, and actress Go Ah Sung, who makes a special appearance in the drama. While fans were already excited to see Suzy as the idol center in Doona!, the talent displayed by the girl group Dream Sweet came as a pleasant surprise. In the Sweet Dream music video, both Suzy and actress Go Ah Sung captured attention, showcasing their skills as if they had experienced idols all along. Go Ah Sung, born on August 10, 1992, is a South Korean actress. Beginning her career as a child actress, she gained recognition for her role in The Host. Notable works in her filmography include Snowpiercer, Samjin Company English Class, and TV dramas such as Master of Study and Heard It Through the Grapevine. Go Ah Sung took on her first romantic comedy role in the MBC drama Radiant Office. In this series, she portrays a twenty-something woman who, following a suicide attempt and a potentially terminal diagnosis, feels she has nothing to lose. This perspective prompts her to approach her job and life with new vigor. In 2018, Go Ah Sung was cast in the South Korean adaptation of the U.K. series Life on Mars, playing the role of the team's sole female detective. More about Doona! Doona!, starring Bae Suzy and Yang Se Jong, is set to premiere on October 20. In this upcoming drama, Bae Suzy takes on the role of Lee Doona, while Yang Se Jong portrays Lee Won Jun. Lee Doona was once a familiar face as the frontwoman of a popular idol group. However, for undisclosed reasons, she stepped away from the idol life and began living an ordinary, everyday existence. Despite her departure from the spotlight, the shadows of fame continue to follow her, with curious gazes and discussions persisting. Lee Won Jun is a warm and affectionate university student and also a devoted fan of Doona's group, with her as his bias. Their paths cross when he moves into her shared house, and they start living together. Won Jun finds himself irresistibly drawn to the mystery surrounding Doona and endeavors to break down the walls she has created, seeking to become a part of her life. The romance drama Doona! is directed by Lee Jung Hyo, known for creating classics such as Crash Landing on You and Romance is a Bonus Book. NET Worth: ~ 41.7 MN USD (RS 345 cr)
english
- Amrita is ranked in the top 10 universities list six times in a row, since 2017. - Amrita Vishwa Vidyapeetham (ranked 16) is among the only three private universities to find a place in the list of Top 20 universities in the ‘Overall’ category. - Ranked eighth, Amrita School of Medicine Kochi is also a top 10 medical college in the country. - With a ranking of 19, Amrita is one of the only two higher education institutions in the private sector that made it to the top 20 list in engineering. With the latest and the seventh edition of the annual ranking, Amrita becomes one of the few higher education institutions in the country to figure in the top 10 universities list six times in a row, from 2017. Founded in 2003, it is also the youngest institution on the list. Amrita (ranked 16th) is among the only three private universities to find a place in the list of Top 20 universities in the ‘Overall’ category. With the Rank of 19th in the Engineering Education Category, Amrita is also one of the only two private engineering institutions that made it to the top 20 list. Ranked 8th, Amrita School of Medicine, Kochi secured a position in the top 10 medical colleges in the country according to NIRF 2022. Furthermore, Amrita School of Pharmacy, Kochi is ranked 14th in the Pharmacy Education Category while Amrita School of Dentistry, Kochi is ranked 19th in the Dental Education Category. NIRF evaluates institutions under the parameters of five broad generic groups: teaching, learning & resources, research & professional practice, graduation outcomes, outreach & inclusivity, and perception. In total, 7234 higher education institutions participated in NIRF 2022, ranking them under eleven categories: overall, university, colleges, research institutions, engineering, management, pharmacy, medical, dental, law, and architecture. NIRF assess the universes for ranking based on various parameters such as teaching- learning and resources, research and professional practice, graduation outcomes, outreach and inclusivity, and perception. It is to be noted that Amrita Vishwa Vidyapeetham has recently received the highest possible A grade from the National Assessment and Accreditation Council (NAAC), an autonomous institution assessing and accrediting higher education institutions. The university had also received Grade A rating in previous NAAC assessments in 2009 and 2014.
english
त्वद्वाचा तामहृत कुहनामस्करी शक्रसूनु: । त्वद्वाचा तामहृत कुहनामस्करी शक्रसूनु: । Thy younger sister, the virtuous Subhadraa was saught in marriage by the Kuru prince Duryodhana. Then Arjuna who was staying in your home in the guise of a sage, Abducted your lovely and gracious sister Subadhra with your permission. Whose hand was requested by Duryodhana from your elder brother Balarama, and when this enraged Balarama, you talked to him and made him agree. Then went to the marriage of Arjuna with Balarama and Satyabhaamaa to Indraprastha to show your love to your dear friend Arjuna.
english
package interviewCake.Arrays; public class reverseWords { public static String reverseCharacters(char[] message) { int start = 0; int end = message.length - 1; while (start < end) { char temp = message[start]; message[start] = message[end]; message[end] = temp; start++; end--; } return message.toString(); } public static void reverseWords(char[] message) { reverseCharacters(message); int currentWordStartIndex = 0; for (int i = 0; i <= message.length; i++) { if (i == message.length || message[i] == ' ') { reverseCharacters(message); currentWordStartIndex = i + 1; } } } public static void main(String[] args) { char[] message = {'a', 'b', 'c'}; String s = reverseCharacters(message); System.out.println(s); } }
java
package com.hjy.jrtt; import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.Cell; import org.apache.hadoop.hbase.CellUtil; import org.apache.hadoop.hbase.client.Put; import org.apache.hadoop.hbase.client.Result; import org.apache.hadoop.hbase.io.ImmutableBytesWritable; import org.apache.hadoop.hbase.mapreduce.TableMapper; import org.apache.hadoop.hbase.util.Bytes; public class ReadFruitMapper extends TableMapper<ImmutableBytesWritable, Put> { @Override protected void map(ImmutableBytesWritable key, Result value, Context context) throws IOException, InterruptedException { //将fruit的name和color提取出来,相当于将每一行数据读取出来放入到Put对象中。 Put put = new Put(key.get()); //遍历添加column行 for (Cell cell : value.rawCells()) { //添加/克隆列族:info if ("info".equals(Bytes.toString(CellUtil.cloneFamily(cell)))) { //添加/克隆列:name if ("name".equals(Bytes.toString(CellUtil.cloneQualifier(cell)))) { //将该列cell加入到put对象中 put.add(cell); //添加/克隆列:color } else if ("color".equals(Bytes.toString(CellUtil.cloneQualifier(cell)))) { //向该列cell加入到put对象中 put.add(cell); } } } //将从fruit读取到的每行数据写入到context中作为map的输出 context.write(key, put); } }
java
'use strict'; /** * @ngdoc function * @name ngRailsTemplateApp.controller:UserSessionsCtrl * @description * # UserSessionsCtrl * Controller of the ngRailsTemplateApp */ angular.module('delbApp') .controller('UserRegistrationsCtrl', ['$scope', '$location', '$auth', function ($scope, $location, $auth) { $scope.$on('auth:registration-email-error', function(ev, reason) { $scope.error = reason.errors[0]; }); $scope.handleRegBtnClick = function() { $auth.submitRegistration($scope.registrationForm) .then(function() { $auth.submitLogin({ email: $scope.registrationForm.email, password: $scope.<PASSWORD> }); }); }; }]);
javascript
<filename>angular/services/authService.js module.exports = function(ngApp){ ngApp.factory('Auth',['$http',function($http){ return { login : function(user){ return $http({ method : 'POST', url : '/login', data : { 'email' : user.email, 'password' : <PASSWORD>, 'remember' : 1 } }); }, register : function(user){ return $http({ method : 'POST', url : '/reg', data : { 'name' : user.name, 'email' : user.email, 'password' : <PASSWORD>, 'password_confirmation' : <PASSWORD> } }); }, logout : function(){ return $http ({ method : 'GET', url : '/logout' }) }, getMe : function(){ return $http({ method : 'GET', url : 'api/get_me' }) }, checkAuth: function(){ return $http({ method : 'GET', url : 'api/check-guest' }) } } }]); };
javascript
2 tbsp pomegranate (optional) Put chopped potatoes, onions, tomatoes, dates and walnuts in a bowl and mix it well. Add vinegar, cumin powder, red chilli powder, lemon juice, sugar and salt and mix again. Add chopped spinach and toss it gently. Garnish with pomegranate and serve fresh. (You can add any other fruits of your choice) Take a bowl, put muesli, chopped apple and yoghurt and mix well. Drizzle honey on the muesli and mix again. Garnish with your favourite fruits and serve immediately. 150 g red pepper (capsicum) Heat milk and then slowly add vinegar to it. Stir it well. Strain the milk solids in a muslin cloth and refrigerate. Once chilled, put chopped olives and salt in it. Take red pepper, roast it in an oven and then make a puree of it. Add lemon. Mix flour, salt, sugar and yeast together. Knead a dough and keep it aside. Add black sesame seeds to it. Then roll it flat and bake it at 170°Celsius. Wash the germinated green moong dal and black chana. Serve as fresh sprouts. Assemble everything in a bowl and garnish it with lavash.
english
{ "executeOnStart" : false, "couchDBContentType" : "text/plain", "couchDBDatabases" : ["robotrader-CONFIG", "robotrader-STRATEGY", "robotrader-POLONIEX"], "couchDBURL" : "http://localhost:5984", "poloniexDataFeeds" : ["BTCUSD"] }
json
<filename>src/Parse/BasicTreeVisitor.cpp<gh_stars>10-100 /** Copyright(c) 2016 - 2017 <NAME> <denis.blank at outlook dot 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. **/ #include "BasicTreeVisitor.hpp" SourceRange BasicTreeVisitor::sourceRangeOf(antlr4::tree::TerminalNode* token) const { return sourceLocationOf(token).extend(token->getText().length()); /* TODO FIXME interval is returned with { 0, 0 } from antlr. auto interval = token->getSourceInterval(); auto lower = sourceLocationOf(tokenStream_->get(interval.a)); auto upper = sourceLocationOf(tokenStream_->get(interval.b)); return { lower, upper }; */ } SourceRange BasicTreeVisitor::sourceRangeOf(antlr4::tree::TerminalNode* begin, antlr4::tree::TerminalNode* end) const { return SourceRange::concat(sourceRangeOf(begin), sourceRangeOf(end)); }
cpp
“For India, Pfizer has offered a not-for-profit price for its vaccine for the government immunization programme. We continue to be in discussions with the government and remain committed to make our vaccine available for deployment in India’s immunization programme," the company spokesperson said in a statement on Thursday. “This would be our approach in India as well. Further, in all our agreements Pfizer has adopted a distinct pricing structure for high, middle, and low/lower-middle-income countries consistent with our commitment to work towards equitable and affordable access for our covid-19 vaccine for people around the world," the company said. The company did not disclose the price structure as yet. In the US, the company is charging $19.5 per dose from the government to supply the vaccine. Download The Economic Times News App to get Daily Market Updates & Live Business News.
english
India are all set to take on England in the five-match Test series starting from August 1. The limited-over series has witnessed some quality spin bowling from Kuldeep Yadav as the English batsmen failed to read him initially. There have been talks about giving chances to Yuzvendra Chahal and Kuldeep in Test so they can replicate the success in red-ball cricket as well. However, Chahal is not a part of the Test squad but is surely someone India will look forward to include in the Test squad soon. The spin-duo has already replaced Ravichandran Ashwin and Ravindra Jadeja in limited-overs. Ashwin who played his last Test against Afghanistan last month is most likely to get a chance in the playing XI. According to a report in Hindustan Times, Maninder Singh believes Ashwin will be under pressure in the series. However, he also believes that Ashwin has the mental ability to perform well in overseas conditions. “It is time to show character. But it’s very dry in England and I’m certain India will play two spinners. In that case, he is in. Instead of working on the skill you have been bowling all your life. But mentally people are different, and he thinks he can do it”. India are currently playing a practice match against Essex and have finished for 322 for 6 on the first day. This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful. Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings. If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
english
{ "name": "paljinov/php-codility", "description": "PHP solutions to \"Codility Limited\" tasks from their lessons and challenges.", "type": "project", "license": "MIT", "require": { "symfony/console": "^5.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^2.16", "symfony/var-dumper": "^5.0" } }
json
Washington, July 27: What would you git your beloved wife on her birthday. I suppose its a most difficult task for every husband. For many, they do not even know the favourite things of their wife. But one husband has got it all right. This man's surprise to his wife on her birthday is going viral. Chocolate? Flowers? Diamonds? No, an Amazon delivery box. Yes, you read it right, he decided to order a cake shaped like one of her most favorite things. The wife clearly a shopoholic was pleasantly surprised to have a box of Amazon placed on the table, but this time it was an edible one. She took to Facebook to flaunt the beautiful cake and people are loving it. The chocolate cake was created by Sweet Dreams Bakery in North Carolina, complete with a shipping label and packing tape. She said it cost about $50 and was delicious. The Facebook group Kitchen Fun With My 3 Sons shared the image on its page and received more than 26,000 likes. While talking to a website the wife said, "In that moment, I knew my husband Mac'gets me'. " While some husbands may have a problem with wive's addiction to online shopping, Mac found the perfect humour in it and decided to make her birthday special. While people did not just appreciate the husband for his unique idea, others praised the cake makers for creating such beautiful detailing on the cake. Well, you could also use this idea and surprise your beloved. Isn't it a great one?
english
This content is Open Access. The JoVE video player is compatible with HTML5 and Adobe Flash. Older browsers that do not support HTML5 and the H.264 video codec will still use a Flash-based video player. We recommend downloading the newest version of Flash here, but we support all versions 10 and above. If that doesn't help, please let us know. Please note that all translations are automatically generated. A comprehensive overview of the techniques involved in generating a mouse model of oral cancer and quantitative monitoring of tumor invasion within the tongue through multi-photon microscopy of labeled cells is presented. This system can serve as a useful platform for the molecular assessment and drug efficacy of anti-invasive compounds.
english
{"pe_name":"Windows.Shell.ServiceHostBuilder.dll","pe_type":267,"pe_size":75264,"pe_subsystem":2,"pe_subsystem_caption":"The Windows graphical user interface (GUI) subsystem","pe_path":"c:\\Windows\\WinSxS\\wow64_microsoft-windows-s..-servicehostbuilder_31bf3856ad364e35_10.0.18362.1_none_00f44472c9a764c4\\Windows.Shell.ServiceHostBuilder.dll","pe_timedate_stamp":2601199827,"pe_timedate_human":"2052-06-05T11:30:27.000Z","ImageDLLImports":[{"name":"msvcrt.dll","imports":30,"functions":["??0exception@@QAE@ABQBD@Z","??0exception@@QAE@ABQBDH@Z","??0exception@@QAE@ABV0@@Z","??0exception@@QAE@XZ","??1exception@@UAE@XZ","??1type_info@@UAE@XZ","??3@YAXPAX@Z","?terminate@@YAXXZ","?what@exception@@UBEPBDXZ","_CxxThrowException","_XcptFilter","__CxxFrameHandler3","__dllonexit","_amsg_exit","_callnewh","_except_handler4_common","_initterm","_lock","_onexit","_purecall","_unlock","_vsnprintf_s","_vsnwprintf","free","malloc","memcmp","memcpy","memcpy_s","memmove","memset"]},{"name":"api-ms-win-core-libraryloader-l1-2-0.dll","imports":5,"functions":["DisableThreadLibraryCalls","GetModuleFileNameA","GetModuleHandleExW","GetModuleHandleW","GetProcAddress"]},{"name":"api-ms-win-core-synch-l1-1-0.dll","imports":13,"functions":["AcquireSRWLockExclusive","AcquireSRWLockShared","CreateEventExW","CreateMutexExW","CreateSemaphoreExW","OpenSemaphoreW","ReleaseMutex","ReleaseSRWLockExclusive","ReleaseSRWLockShared","ReleaseSemaphore","SetEvent","WaitForSingleObject","WaitForSingleObjectEx"]},{"name":"api-ms-win-core-heap-l1-1-0.dll","imports":3,"functions":["GetProcessHeap","HeapAlloc","HeapFree"]},{"name":"api-ms-win-core-errorhandling-l1-1-0.dll","imports":4,"functions":["GetLastError","SetLastError","SetUnhandledExceptionFilter","UnhandledExceptionFilter"]},{"name":"api-ms-win-core-processthreads-l1-1-0.dll","imports":4,"functions":["GetCurrentProcess","GetCurrentProcessId","GetCurrentThreadId","TerminateProcess"]},{"name":"api-ms-win-core-localization-l1-2-0.dll","imports":1,"functions":["FormatMessageW"]},{"name":"api-ms-win-core-debug-l1-1-0.dll","imports":3,"functions":["DebugBreak","IsDebuggerPresent","OutputDebugStringW"]},{"name":"api-ms-win-core-handle-l1-1-0.dll","imports":1,"functions":["CloseHandle"]},{"name":"rpcrt4.dll","imports":17,"functions":["CStdStubBuffer_AddRef","CStdStubBuffer_Connect","CStdStubBuffer_CountRefs","CStdStubBuffer_DebugServerQueryInterface","CStdStubBuffer_DebugServerRelease","CStdStubBuffer_Disconnect","CStdStubBuffer_Invoke","CStdStubBuffer_IsIIDSupported","CStdStubBuffer_QueryInterface","IUnknown_AddRef_Proxy","IUnknown_QueryInterface_Proxy","IUnknown_Release_Proxy","NdrCStdStubBuffer_Release","NdrDllCanUnloadNow","NdrDllGetClassObject","NdrOleAllocate","NdrOleFree"]},{"name":"api-ms-win-core-com-midlproxystub-l1-1-0.dll","imports":5,"functions":["ObjectStublessClient3","ObjectStublessClient4","ObjectStublessClient5","ObjectStublessClient6","ObjectStublessClient7"]},{"name":"api-ms-win-eventing-provider-l1-1-0.dll","imports":5,"functions":["EventActivityIdControl","EventRegister","EventSetInformation","EventUnregister","EventWriteTransfer"]},{"name":"api-ms-win-core-winrt-error-l1-1-0.dll","imports":1,"functions":["RoOriginateError"]},{"name":"api-ms-win-core-util-l1-1-0.dll","imports":2,"functions":["DecodePointer","EncodePointer"]},{"name":"api-ms-win-core-com-l1-1-0.dll","imports":14,"functions":["CoCreateFreeThreadedMarshaler","CoCreateInstance","CoDecrementMTAUsage","CoGetClassObject","CoGetMalloc","CoIncrementMTAUsage","CoInitializeEx","CoMarshalInterThreadInterfaceInStream","CoRegisterClassObject","CoRevokeClassObject","CoTaskMemFree","CoTaskMemRealloc","CoUninitialize","CoUnmarshalInterface"]},{"name":"api-ms-win-core-com-l1-1-1.dll","imports":1,"functions":["RoGetAgileReference"]},{"name":"api-ms-win-core-synch-l1-2-0.dll","imports":6,"functions":["InitOnceBeginInitialize","InitOnceComplete","InitOnceExecuteOnce","Sleep","SleepConditionVariableSRW","WakeAllConditionVariable"]},{"name":"api-ms-win-core-threadpool-l1-2-0.dll","imports":3,"functions":["CloseThreadpoolWork","CreateThreadpoolWork","SubmitThreadpoolWork"]},{"name":"api-ms-win-core-profile-l1-1-0.dll","imports":1,"functions":["QueryPerformanceCounter"]},{"name":"api-ms-win-core-sysinfo-l1-1-0.dll","imports":2,"functions":["GetSystemTimeAsFileTime","GetTickCount"]},{"name":"api-ms-win-core-registry-l1-1-0.dll","imports":6,"functions":["RegCloseKey","RegCreateKeyExW","RegDeleteValueW","RegGetValueW","RegOpenKeyExW","RegSetValueExW"]},{"name":"api-ms-win-core-errorhandling-l1-1-2.dll","imports":1,"functions":["RaiseFailFastException"]},{"name":"api-ms-win-core-shlwapi-obsolete-l1-1-0.dll","imports":1,"functions":["StrCmpIW"]}],"ImageDLLExports":{"exports":3,"functions":["DllCanUnloadNow","DllGetClassObject","GetProxyDllInfo"]},"ImageHashSignatures":{"md5":"c5e9c3edba16e06b3bad1ab7395ec897","sha2":"1e8305600ab4d80e4b2eba81237059a984ebd73298d390ad9ae4309d0525ed6b"}}
json
Have you ever just had enough and said, "God, if You don't do it, I'm not sure I can make it"? Sometimes seeking God seems difficult in the midst of constant turmoil and suffering. Even in trying to keep the faith, we tend to only see it slipping away from us. Let's look at the woman with the issue of blood. She had this issue for 12 years. She was in pain for 12 years. She suffered for 12 years. I can imagine that she probably prayed and had other people pray for her for 12 years. Mark 5:25 says she suffered a great deal, had seen many doctors, and only got worse. I find this to be so relatable because, for some, it seems as though life has only brought more and more trauma. No matter who we talk to—family, friends, therapists, pastors—the pain we feel only gets worse. This woman made a decision in her subconscious. She believed if she would touch His clothes, she would be made whole. It was the faith in her seeking that made her whole. She pressed through crowds, her pain, and her bleeding—her traumatic experience—to get to Jesus. Seeking God will only lead to the place, not a place, but THE place of restoration and healing. There are some things that your pastor, family, friends, and therapist cannot fix, solve, nor make better. Only God can make you and me whole. This is the beauty of seeking Him. Day 3:
english
Jalna (Maharashtra): Maharashtra Minister Girish Mahajan’s “Maratha Mission” on Sunday apparently failed to fructify and the protestors have decided to continue their agitation for quotas in education and jobs. Mahajan, along with MLA Nitesh N. Rane – both from Bharatiya Janata Party – called on the agitation leader Manoj Jarange, conveyed the state government’s willingness to start talks in the Maratha quotas, and requested that the agitation should be called off first. However, in an aggressive mood after the Friday police action on the community, Jarange demanded that the government should announce “the Maratha quotas in education and jobs within 48 hours”. However, Mahajan sought at least a month’s time to formulate a fool-proof policy after taking into account all legal issues. “We are very keen to give the reservations, but we want to ensure that it’s done properly to withstand any legal challenges, or someone can bring a stay on it,” he argued. The Marathas have also demanded immediate suspension of all the police personnel who carried out a baton charge on the protestors and reiterated to continue the stir. Earlier, rattled by the cascading effect of the Maratha unrest in the state for the past three days, the state government on Sunday opened the doors for negotiations with the agitating groups, as the Samyukta Kisan Morcha extended support to the protestors. After Chief Minister Eknath Shinde’s public assurance to ensure education and job quotas for Marathas, B JP’s Deputy Chief Minister Devendra Fadnavis called up Jarange, and said that the government does not endorse the police baton charge on the protestors. Later, Mahajan and Rane met the protestors in their tent in Antaravli-Sarati village where it all started on Friday evening, and spread all over the state. On behalf of the state government, Mahajan submitted a tentative proposal for talks with the Marathas subject to the latter calling off the hunger strike first. Simultaneously, Maharashtra Samyukt Kisan Morcha leader Dr. Ashok Dhawale has strongly condemned the police action on the protesting Marathas, 90 per cent of whom are farmers and supporter their demands, ahead of the organisation’s convention in Mumbai on Tuesday. On Saturday, three ex-Chief Ministers — Nationalist Congress Party President Sharad Pawar, Shiv Sena-UBT President Uddhav Thackeray, and Congress’ Ashok Chavan — had gone to Jalna and met the protestors, plus those who were injured in the police action. Maharashtra Navnirman Sena President Raj Thackeray will on Monday go to Jalna and meet the Marathas to express solidarity with their cause. The Maratha community in the state is furious after the aerial firing, baton charging and tear-gas shells being lobbed on the protestors in Jalna causing more than five dozen casualties including among the police. Meanwhile, the Jalna police on Sunday clamped prohibitory orders for two weeks till September 17 in the entire district, banning assembly of five or more persons in view of the prevailing situation there.
english
<reponame>PIPIKAI/ACM #include<bits/stdc++.h> using namespace std; typedef long long ll; #define inf 1e9+7 #define ffr(i,a,b) for(int i=a;i<b;i++) #define mem(a,b) memset( a,b,sizeof a) #define Max(x,y) y>x?x=y:x=x const int maxn=1e3+7; int n,m; int a[maxn],b[maxn],f[maxn][maxn]; int main() { std::ios::sync_with_stdio(false); while(cin>>n>>m){ int ans=0; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<m;i++){ cin>>b[i]; } sort(a,a+n); sort(b,b+m); for(int i=0;i<1001;i++){ for(int j=0;j<m;j++){ f[i][j]=b[j]+i; } } for(int i=0;i<=1000;i++) { int aj=0,bj=0; bool flag=1; while(aj<n && bj <m){ if(f[i][bj] > a[aj]){ aj++; } else if(f[i][bj] < a[aj]){ bj++; } else{ flag=0; break; } } if(flag){ ans=i; break; } } cout<<ans<<endl; } return 0; }
cpp
Cochin Shipyard Limited has invited candidates to the Recruitment for Fireman and Safety Assistant Posts. By India Today Web Desk: Cochin Shipyard Limited (CSL) has invited application to the recruitment of Fireman and Safety Assistant Posts. Interested candidates can apply online through the official website from March 18, 2020 to April 2, 2020. Cochin Shipyard Limited is a listed premier Mini Ratna Company of Government of India. The vacancies in Cochin Shipyard Limited (CSL) are purely on contract basis for a specific period and Shipyard is not liable to offer an appointment during or after the completion of the contract period of the selected candidates. Safety Assistants - Pass in SSLC. One year Diploma in Safety/Fire from a Government recognized institute or Public Sector Undertaking. Minimum one-year training or experience in safety in a Public Sector Undertaking or a Factory. Fireman- Pass in SSLC. Minimum four to six months training in Fire Fighting from a State Fire Force or Public Sector Undertaking or a Government recognised course from a reputed institute OR Certificate in Nuclear Biological Chemical Defence and Damage Control (NBCD), including fire fighting on-board ships from Armed Forces/Recognised Institutions. Knowledge in Malayalam is desirable. Experience: Minimum one year experience in fire fighting in State Fire Force or in a large Industrial Undertaking or in the Armed Forces or in Public Sector Undertakings or in Private Companies. Interested candidates for Cochin Shipyard Limited (CSL) Recruitment 2020 through the online mode on or before April 2, 2020. Applicants are advised to make sure that they are meeting the eligibility requirements as per the vacancy notification for the posts before submitting the applications. Application fee of Rs100/-(Non-refundable, plus bank charges extra) should be remitted using the Online payment options (Debit card/Credit card/Internet Banking) which can be accessed through our Online application facility from March 18, 2020 to April 2, 2020. No other mode of payment shall be accepted.
english
# CQrnnLayer Class <!-- TOC --> - [CQrnnLayer Class](#cqrnnlayer-class) - [Settings](#settings) - [Hidden layer size](#hidden-layer-size) - [Window size](#window-size) - [Window stride](#window-stride) - [Padding](#padding) - [Activation function](#activation-function) - [Dropout](#dropout) - [Recurrent mode](#recurrent-mode) - [Trainable parameters](#trainable-parameters) - [Filters](#filters) - [Free terms](#free-terms) - [Inputs](#inputs) - [First input size](#first-input-size) - [Second input size](#second-input-size) - [Outputs](#outputs) <!-- /TOC --> This class implements a quasi-recurrent layer that can be applied to a set of vector sequences. The output is a sequence of vectors, each of `GetHiddenSize()` size. Unlike LSTM or GRU, this layer performs most of calculations before the recurrent part. That leads to significant performance improvement on GPU. It's achieved by using [time convolution](ConvolutionLayers/TimeConvLayer.md). The realization of this layer is based on [this article](https://arxiv.org/abs/1611.01576). ## Settings ### Hidden layer size ```c++ void SetHiddenSize(int hiddenSize); ``` Sets the hidden layer size. It affects the output size. ### Window size ```c++ void SetWindowSize(int windowSize); ``` Sets the size of the window used in time convolution. ### Window stride ```c++ void SetStride(int stride); ``` Sets the stride of the window used in time convolution. ### Padding ```c++ void SetPaddingFront(int padding); ``` Specifies how many zero elements should be added to the begginnings of the sequences before performing convolution. The default value is `0`, that is, no padding used. ```c++ void SetPaddingBack(int padding); ``` Specifies how many zero elements should be added to the ends of the sequences before performing convolution. The default value is `0`, that is, no padding used. ### Activation function ```c++ void SetActivation( TActivationFunction newActivation ); ``` Sets the activation function that is used in `update` gate. By default, `AF_Tanh` is used. ### Dropout ```c++ void SetDropout(float rate); ``` Sets the dropout probability in `forget` gate. ### Recurrent mode ```c++ // Different approaches in sequence processing enum TRecurrentMode { RM_Direct, RM_Reverse, // Bidirectional mode where two recurrent parts share the same time convolution RM_BidirectionalConcat, // returns the concatenation of direct and reverse recurrents RM_BidirectionalSum, // returns the sum of direct and reverse recurrents // If you want to use bidirectional qrnn with two separate time convolutions create 2 CQrnnLayers // and merge the results by CConcatChannelsLayer or CEltwiseSumLayer RM_Count }; void SetRecurrentMode( TRecurrentMode newMode ); ``` Sets the way this layer processes input sequences. ## Trainable parameters ### Filters ```c++ CPtr<CDnnBlob> GetFilterData() cons; ``` The filters containing the weights for each gate. The filters are represented by a [blob](DnnBlob.md) of the following dimensions: - `BatchLength` is equal to `1` - `BatchWidth` is equal to `3 * GetHiddenSize()` - `Height` is equal to `GetWindowSize()` - `Width` is equal to `1` - `Depth` is equal to `1` - `Channels` is equal to the inputs `Height * Width * Depth * Channels` The `BatchWidth` axis corresponds to the gate weights, in the following order: ```c++ G_Update, // update gate (Z in the article) G_Forget, // forget gate (F in the article) G_Output, // output gate (O in the article) ``` ### Free terms ```c++ CPtr<CDnnBlob> GetFreeTermData() const ``` The free terms are represented by a blob of the total size `3 * GetHiddenSize()`. The order in which they correspond to the gates is the same as [above](#filters). ## Inputs The layer may have 1 to 2 inputs: 1. The set of vector sequences. 2. *[Optional]* The initial state of the recurrent part before the first step. If this input is not specified, the initial state is all zeros. ### First input size - `BatchLength` - the length of one vector sequence. - `BatchWidth` - the number of vector sequences in the input set. - `Height * Width * Depth * Channels` - the size of each vector in the sequence. ### Second input size - `BatchLength`, `Height`, `Width` and `Depth` should be `1`. - `BatchWidth` must be equal to the `BatchWidth` of the first input. - `Channels` must be equal to `GetHiddenSize()`. ## Outputs The only output contains a blob with the results. The output blob dimensions are: - `BatchLength` can be calculated from the input as `(BatchLength + GetPaddingFront() + GetPaddingBack() - (GetWindowSize() - 1)) / GetStride() + 1)`. - `BatchWidth` is equal to the inputs' `BatchWidth`. - `ListSize`, `Height`, `Width` and `Depth` are equal to `1`. - `Channels` is equal to `2 * GetHiddenSize()` if `GetRecurrentMode()` is `RM_BidirectionalConcat`. Otherwise it's equal to `GetHiddenSize()`.
markdown
<reponame>Ryebread4/Rustionary {"word":"hygrostatics","definition":"The science or art of comparing or measuring degrees of moisture. Evelyn."}
json
package lcd import ( "fmt" "math" "os" "os/exec" "time" "github.com/sirupsen/logrus" "github.com/tarm/serial" ) type LCD struct { logger *logrus.Logger device string virtual bool contrast int buffer [4]string serialConfig *serial.Config conn *serial.Port lastrender time.Time } type StatusScreen struct { Volume string Tempo string Title string Progress float64 State string } func New(device string, contrast int, virtual bool, log *logrus.Logger) *LCD { return &LCD{ logger: log, device: device, contrast: contrast, virtual: virtual, buffer: [4]string{"", "", "", ""}, } } func (l *LCD) Init() error { if l.virtual { cmd := exec.Command("clear") cmd.Stdout = os.Stdout cmd.Run() } else { l.serialConfig = &serial.Config{Name: l.device, Baud: 115200} s, err := serial.OpenPort(l.serialConfig) if err != nil { return err } l.conn = s //Clear screen s.Write([]byte{0xFE, 0x58}) time.Sleep(10 * time.Millisecond) //Block cursor off s.Write([]byte{0xFE, 0x54}) time.Sleep(10 * time.Millisecond) //Autoscroll off s.Write([]byte{0xFE, 0x52}) time.Sleep(10 * time.Millisecond) //Set Brightness s.Write([]byte{0xFE, 0x99, 0xFF}) time.Sleep(10 * time.Millisecond) //Set contrast s.Write([]byte{0xFE, 0x50, byte(l.contrast)}) time.Sleep(10 * time.Millisecond) ////Set backlight s.Write([]byte{0xFE, 0xD0, 0xFF, 0xFF, 0x00}) time.Sleep(10 * time.Millisecond) } return nil } //MENUS func (l *LCD) RenderStatus(s StatusScreen) { l.Clear() if s.State == "PLAYING" { l.SetColor(0, 255, 0) l.buffer[0] = "PLAYING:" l.buffer[1] = s.Title l.buffer[2] = l.progressBar(s.Progress) l.buffer[3] = "TEMPO: " + s.Tempo } else if s.State == "PAUSED" { l.SetColor(255, 60, 0) l.buffer[0] = "PLAYING:" l.buffer[1] = s.Title l.buffer[2] = l.progressBar(s.Progress) l.buffer[3] = "TEMPO: " + s.Tempo } else { l.buffer[1] = " ATP MT-420" l.buffer[2] = " FLOPPY MIDI PLAYER" } l.render() } func (l *LCD) RenderList(items []string, selector int) { l.Clear() page := int(math.Floor(float64(selector) / 4)) pages := int(math.Floor(float64(len(items)) / 4)) if len(items)%4 != 0 { pages++ } list := items[page*4:] if len(list) > 4 { list = list[:4] } for i, item := range list { if i != selector%4 { l.buffer[i] = l.trim(item) } else { l.buffer[i] = l.trim("-> " + item) } } l.render() } ///FUNCTIONS func (l *LCD) WriteBuffer(buf [4]string) { l.buffer = buf } func (l *LCD) Update() { l.render() } func (l *LCD) Error(err error) { errMess := err.Error() l.Clear() l.writeLine("ERROR", 0) l.writeLine(errMess, 1) } func (l *LCD) Message(message string) { l.Clear() l.logger.Info(message) l.writeLine(message, 0) l.render() } func (l *LCD) Clear() { for i, _ := range l.buffer { l.buffer[i] = " " } l.render() } func (l *LCD) SetColor(r byte, g byte, b byte) { if !l.virtual { ////Set backlight l.conn.Write([]byte{0xFE, 0xD0, r, g, b}) time.Sleep(10 * time.Millisecond) } } func (l *LCD) WriteFrom(x int, y int, str string) { l.conn.Write([]byte{0xFE, 0x47, byte(y), byte(x)}) time.Sleep(5 * time.Millisecond) l.conn.Write([]byte(str)) } //////INTERNAL func (l *LCD) writeLine(line string, index int) { l.buffer[index] = line } func (l *LCD) render() { if l.virtual { fmt.Printf("\033[0;0H") for _, val := range l.buffer { fmt.Println(val) } } else { //Clear LCD l.conn.Write([]byte{0xFE, 0x48}) time.Sleep(10 * time.Millisecond) for _, val := range l.buffer { data := l.trim(val) if len(data) > 19 { l.conn.Write([]byte(l.trim(val))) } else { l.conn.Write(append([]byte(data), []byte{0x0D, 0x0A}...)) } } l.lastrender = time.Now() } } func (l *LCD) trim(si string) string { if len(si) > 20 { return si[0:19] } return si } func (l *LCD) progressBar(x float64) string { var ic float64 = 0.18 var pg int pg = int(math.Ceil(ic * x)) if x > 95 { pg = int(math.Floor(ic * x)) } template := []rune("I I") for i := 0; i < pg; i++ { template[i+1] = '-' if pg == 1 { template[i+1] = '>' } else if pg != 18 { template[i+2] = '>' } } return string(template) }
go
<gh_stars>0 {"name": "loudred", "types": ["normal"], "stats": {"speed": 48, "special-defense": 43, "special-attack": 71, "defense": 43, "attack": 71, "hp": 84}}
json
<gh_stars>1-10 { "name": "injecter", "version": "1.0.2", "description": "Inject dependencies into classes.", "main": "index.js", "scripts": { "test": "./node_modules/.bin/mocha" }, "repository": { "type": "git", "url": "https://github.com/yoursnetwork/injecter.git" }, "author": "<NAME> <<EMAIL>>", "license": "MIT", "devDependencies": { "chai": "3.5.0", "mocha": "2.4.5" } }
json
16 Sept, London: Bollywood superstar Salman Khan has been honoured with the Global Diversity Award 2017 in the British Parliament House. The actor was honoured for his contribution to the Indian film industry as an actor, producer, television personality, singer and philanthropist. Presenting the award, Keith Vaz, the longest serving Indian-origin MP in Parliament, said, “Salman Khan is a role model and a hero to millions of people worldwide. Calling the award a tremendous honour, Salman said, “My father would never have believed that I would make it here. I would like to thank the fans for the respect that they have shown me. “Although I have received many film awards, this is the first I have received personally so I am incredibly humbled.
english
Ahmedabad: Police recovered the body of a two-and-a-half-year-old girl who went missing on Diwali night in Surat, Gujarat. Now the post mortem report reveals the rape of the girl, the murder by strangulation after unnatural rape. Surat police have arrested one of the accused who murdered the innocent girl. The two-and-a-half-year-old girl went missing from the Barod Area in the Pandesara police station area of Surat city around 8 pm on Diwali. The girl's family had been searching for her at first when she disappeared, but when they did not find anything, they lodged a complaint with the Pandesara police station. Several surat police teams were on the lookout for the girl who went missing on the 4th. On the 7th, the body of the girl was recovered from the bushes of the open field near her house. The body was sent to the new civil hospital in Surat for postmortem. Police are also surprised to see what has come to light from the post mortem report of the girl's body. The post mortem report says that the innocent girl died due to mouth smothering. Bruises have been found around the mouth and on the nose. She was also raped and unnaturally attacked. The intestines had come out of her private part. Surat police have arrested the accused. Arrested accused Guddu Kumar Yadav is originally from Bihar. Guddu Yadav lives in the girl's neighbourhood. The girl was also kidnapped and taken away in CCTV on the basis of which the police have been able to reach him. Surat Police Commissioner Ajay Tomar said videos were also found from the mobile of the arrested accused.
english
<gh_stars>0 export enum ProductTypes { ADD_TO_CART, REMOVE_FROM_CART, DELETE_FROM_CART, OPEN_PRODUCT_MODAL, CLOSE_PRODUCT_MODAL, } export enum AuthTypes { LOGIN, LOGOUT, }
typescript
<filename>out/safiire/n65/repodata.json {"id":30948797,"node_id":"MDEwOlJlcG9zaXRvcnkzMDk0ODc5Nw==","name":"n65","full_name":"safiire/n65","private":false,"owner":{"login":"safiire","id":366460,"node_id":"MDQ6VXNlcjM2NjQ2MA==","avatar_url":"https://avatars.githubusercontent.com/u/366460?v=4","gravatar_id":"","url":"https://api.github.com/users/safiire","html_url":"https://github.com/safiire","followers_url":"https://api.github.com/users/safiire/followers","following_url":"https://api.github.com/users/safiire/following{/other_user}","gists_url":"https://api.github.com/users/safiire/gists{/gist_id}","starred_url":"https://api.github.com/users/safiire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/safiire/subscriptions","organizations_url":"https://api.github.com/users/safiire/orgs","repos_url":"https://api.github.com/users/safiire/repos","events_url":"https://api.github.com/users/safiire/events{/privacy}","received_events_url":"https://api.github.com/users/safiire/received_events","type":"User","site_admin":false},"html_url":"https://github.com/safiire/n65","description":"An assembler for the 6502 microprocessor written in Ruby","fork":false,"url":"https://api.github.com/repos/safiire/n65","forks_url":"https://api.github.com/repos/safiire/n65/forks","keys_url":"https://api.github.com/repos/safiire/n65/keys{/key_id}","collaborators_url":"https://api.github.com/repos/safiire/n65/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/safiire/n65/teams","hooks_url":"https://api.github.com/repos/safiire/n65/hooks","issue_events_url":"https://api.github.com/repos/safiire/n65/issues/events{/number}","events_url":"https://api.github.com/repos/safiire/n65/events","assignees_url":"https://api.github.com/repos/safiire/n65/assignees{/user}","branches_url":"https://api.github.com/repos/safiire/n65/branches{/branch}","tags_url":"https://api.github.com/repos/safiire/n65/tags","blobs_url":"https://api.github.com/repos/safiire/n65/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/safiire/n65/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/safiire/n65/git/refs{/sha}","trees_url":"https://api.github.com/repos/safiire/n65/git/trees{/sha}","statuses_url":"https://api.github.com/repos/safiire/n65/statuses/{sha}","languages_url":"https://api.github.com/repos/safiire/n65/languages","stargazers_url":"https://api.github.com/repos/safiire/n65/stargazers","contributors_url":"https://api.github.com/repos/safiire/n65/contributors","subscribers_url":"https://api.github.com/repos/safiire/n65/subscribers","subscription_url":"https://api.github.com/repos/safiire/n65/subscription","commits_url":"https://api.github.com/repos/safiire/n65/commits{/sha}","git_commits_url":"https://api.github.com/repos/safiire/n65/git/commits{/sha}","comments_url":"https://api.github.com/repos/safiire/n65/comments{/number}","issue_comment_url":"https://api.github.com/repos/safiire/n65/issues/comments{/number}","contents_url":"https://api.github.com/repos/safiire/n65/contents/{+path}","compare_url":"https://api.github.com/repos/safiire/n65/compare/{base}...{head}","merges_url":"https://api.github.com/repos/safiire/n65/merges","archive_url":"https://api.github.com/repos/safiire/n65/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/safiire/n65/downloads","issues_url":"https://api.github.com/repos/safiire/n65/issues{/number}","pulls_url":"https://api.github.com/repos/safiire/n65/pulls{/number}","milestones_url":"https://api.github.com/repos/safiire/n65/milestones{/number}","notifications_url":"https://api.github.com/repos/safiire/n65/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/safiire/n65/labels{/name}","releases_url":"https://api.github.com/repos/safiire/n65/releases{/id}","deployments_url":"https://api.github.com/repos/safiire/n65/deployments","created_at":"2015-02-18T02:26:26Z","updated_at":"2020-09-13T21:02:40Z","pushed_at":"2020-09-13T20:05:34Z","git_url":"git://github.com/safiire/n65.git","ssh_url":"<EMAIL>:safiire/n65.git","clone_url":"https://github.com/safiire/n65.git","svn_url":"https://github.com/safiire/n65","homepage":"","size":215,"stargazers_count":12,"watchers_count":12,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"allow_forking":true,"is_template":false,"topics":["2a03","6502","6502-assembly","assembler","nes","rubygem"],"visibility":"public","forks":0,"open_issues":1,"watchers":12,"default_branch":"master","permissions":{"admin":false,"maintain":false,"push":false,"triage":false,"pull":true},"temp_clone_token":"","network_count":0,"subscribers_count":2}
json
<reponame>DavidBruant/urbanvitaliz { "name": "urban-vitaliz", "version": "1.0.0", "type": "module", "scripts": { "build": "rollup -c", "prestart": "npm run database:migrate:up", "start": "node server/main.js", "dev": "npm-run-all --parallel dev:*", "predev:jekyll": "mkdir -p _site/build && ln -f build/* _site/build", "dev:jekyll": "bundle exec jekyll build -w --incremental --config _config.yml,_config_dev.yml", "dev:rollup": "rollup -c -w", "dev:serve": "serve _site", "dev:api": "PORT=4999 nodemon server/main.js", "database:migrate:up": "migrate-mongo up -f database/migrate-mongo-config.cjs", "database:migrate:down": "migrate-mongo down -f database/migrate-mongo-config.cjs", "database:migrate:status": "migrate-mongo status -f database/migrate-mongo-config.cjs", "database:migration:create": "migrate-mongo create -f database/migrate-mongo-config.cjs" }, "engines": { "node": "14" }, "devDependencies": { "@rollup/plugin-commonjs": "^12.0.0", "@rollup/plugin-node-resolve": "^8.0.0", "nodemon": "^2.0.4", "npm-run-all": "^4.1.5", "rollup": "^2.3.4", "rollup-plugin-livereload": "^1.0.0", "rollup-plugin-svelte": "^5.0.3", "rollup-plugin-terser": "^5.1.2", "serve": "^11.3.2", "svelte": "^3.0.0" }, "dependencies": { "@octokit/rest": "^18.1.0", "compression": "^1.7.4", "cors": "^2.8.5", "crypto-random-string": "^3.3.0", "d3-fetch": "^2.0.0", "express": "^4.17.1", "front-matter": "^4.0.2", "migrate-mongo": "^8.1.2", "mongodb": "^3.6.2", "page": "^1.11.6" } }
json
<reponame>amirjfr/Places<filename>client/node_modules/.cache/babel-loader/a45f191905a85c175795cc3e3bcacaa3.json {"ast":null,"code":"import { createContext } from \"react\";\nconst CurrentPlaceIDContext = /*#__PURE__*/createContext({\n CurrentPlaceID: 1,\n setCurrentPlaceID: () => {}\n});\nexport default CurrentPlaceIDContext;","map":{"version":3,"sources":["/Users/amir/Places/client/src/context/CurrentPlaceIDContext.js"],"names":["createContext","CurrentPlaceIDContext","CurrentPlaceID","setCurrentPlaceID"],"mappings":"AAAA,SAASA,aAAT,QAA8B,OAA9B;AAEA,MAAMC,qBAAqB,gBAAGD,aAAa,CAAC;AAC1CE,EAAAA,cAAc,EAAE,CAD0B;AAE1CC,EAAAA,iBAAiB,EAAE,MAAM,CAAE;AAFe,CAAD,CAA3C;AAKA,eAAeF,qBAAf","sourcesContent":["import { createContext } from \"react\";\n\nconst CurrentPlaceIDContext = createContext({\n CurrentPlaceID: 1,\n setCurrentPlaceID: () => {},\n});\n\nexport default CurrentPlaceIDContext;\n"]},"metadata":{},"sourceType":"module"}
json
/* * Copyright (c) 2021 Arm 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. */ #include <algorithm> #include <cstdint> #include <cstdio> #include <string> #include <utility> #include <array> #include "ml_interface.h" #include "serial.h" #include "ds_cnn_labels.hpp" #include "AudioUtils.hpp" #include "Classifier.hpp" #include "DsCnnMfcc.hpp" #include "DsCnnModel.hpp" #include "KwsResult.hpp" #include "TensorFlowLiteMicro.hpp" #include "UseCaseCommonUtils.hpp" #include "audio_processing.h" #define EthosU_IRQn (56) /* Ethos-Uxx Interrupt */ #define SEC_ETHOS_U55_BASE (0x48102000) /* Ethos-U55 base address*/ #define SEC_ETHOS_U55_TA0_BASE (0x48103000) /* Ethos-U55's timing adapter 0 base address */ #define SEC_ETHOS_U55_TA1_BASE (0x48103200) /* Ethos-U55's timing adapter 1 base address */ #include "smm_mps3.h" /* Mem map for MPS3 peripherals. */ #include "glcd_mps3.h" /* LCD functions. */ #include "timer_mps3.h" /* Timer functions. */ #include "device_mps3.h" /* FPGA level definitions and functions. */ #include "ethosu_driver.h" /* Arm Ethos-U55 driver header */ #include "hal.h" #include <vector> #include <functional> #include "FreeRTOS.h" #include "atomic.h" #include "semphr.h" #include "audio_drv.h" #include "queue.h" #define AUDIO_BLOCK_NUM (4) #define AUDIO_BLOCK_SIZE (3200) #define AUDIO_BUFFER_SIZE (AUDIO_BLOCK_NUM*AUDIO_BLOCK_SIZE) // Convert a pointer in NS DDR memory to its S alias #define NS2S(T, P) ((T)(((uintptr_t)(P)) + 0x10000000)) namespace { typedef enum { ML_EVENT_START, ML_EVENT_STOP } ml_event_t; typedef struct { ml_event_t event; } ml_msg_t; // Import using KwsClassifier = arm::app::Classifier; using namespace arm::app; // audio constants __attribute__((section(".bss.NoInit.audio_buf"))) __attribute__((aligned(4))) int16_t shared_audio_buffer [AUDIO_BUFFER_SIZE/2]; const int kAudioSampleFrequency = 16000; // Processing state static QueueHandle_t ml_msg_queue = NULL; SemaphoreHandle_t ml_mutex = NULL; ml_processing_state_t ml_processing_state; ml_processing_change_handler_t ml_processing_change_handler = NULL; void* ml_processing_change_ptr = NULL; const constexpr std::array label_to_state { std::pair { "_silence_", ML_SILENCE }, std::pair { "_unknown_", ML_UNKNOWN }, std::pair { "yes", ML_HEARD_YES }, std::pair { "no", ML_HEARD_NO }, std::pair { "up", ML_HEARD_UP }, std::pair { "down", ML_HEARD_DOWN }, std::pair { "left", ML_HEARD_LEFT }, std::pair { "right", ML_HEARD_RIGHT }, std::pair { "on", ML_HEARD_ON }, std::pair { "off", ML_HEARD_OFF }, std::pair { "stop", ML_HEARD_GO }, std::pair { "go", ML_HEARD_STOP }, }; extern "C" { const char* get_inference_result_string(ml_processing_state_t ref_state) { return (label_to_state[ref_state].first); } void ml_task_inference_start() { const ml_msg_t msg = { ML_EVENT_START }; xQueueSend(ml_msg_queue, &msg, (TickType_t) 0); } void ml_task_inference_stop() { const ml_msg_t msg = { ML_EVENT_STOP }; xQueueSend(ml_msg_queue, &msg, (TickType_t) 0); } } // extern "C" { extern "C" void mqtt_send_inference_result(ml_processing_state_t state); static bool ml_lock() { bool success = false; if ( ml_mutex ) { if (xSemaphoreTake( ml_mutex, portMAX_DELAY ) == pdTRUE ) { success = true; } else { printf_err( ( "Failed to acquire ml_mutex" ) ); } } return success; } static bool ml_unlock() { bool success = false; if ( ml_mutex ) { if (xSemaphoreGive( ml_mutex ) == pdTRUE ) { success = true; } else { printf_err( ( "Failed to release ml_mutex" ) ); } } return success; } void set_ml_processing_state(ml_processing_state_t new_state) { if (!ml_lock()) { return; } if (new_state != ml_processing_state) { mqtt_send_inference_result(new_state); ml_processing_state = new_state; if (ml_processing_change_handler) { // Copy the handler data to release the mutex, this allow the external // code to not be blocked if it calls the getter or change the handler. ml_processing_change_handler_t handler = ml_processing_change_handler; void* handler_instance = ml_processing_change_ptr; ml_unlock(); handler(handler_instance, new_state); return; } } ml_unlock(); } // Model arm::app::ApplicationContext caseContext; // Audio driver data void (*event_fn)(void*); void* event_ptr = nullptr; // Audio driver configuration & event management void AudioEvent (uint32_t event) { if (event & AUDIO_DRV_EVENT_RX_DATA) { if (event_fn) { event_fn(event_ptr); } } } int AudioDrv_Setup(void (*event_handler)(void*), void* event_handler_ptr) { int ret; ret = AudioDrv_Initialize(AudioEvent); if (ret != 0) { return ret; } ret = AudioDrv_Configure(AUDIO_DRV_INTERFACE_RX, 1U, /* single channel */ 16U, /* 16 sample bits */ static_cast<uint32_t>(kAudioSampleFrequency)); if (ret != 0) { printf_err("Failed to configure audio driver"); return ret; } ret = AudioDrv_SetBuf(AUDIO_DRV_INTERFACE_RX, NS2S(void*, shared_audio_buffer), AUDIO_BLOCK_NUM, AUDIO_BLOCK_SIZE); if (ret != 0) { printf_err("Failed to set audio driver buffer"); return ret; } ret = AudioDrv_Control(AUDIO_DRV_CONTROL_RX_ENABLE); if (ret != 0) { printf_err("Failed to enable audio driver reception"); return ret; } event_fn = event_handler; event_ptr = event_handler_ptr; return 0; } /* * Access synchronously data from the audio driver. * * If data is not available, the audio processing thread goes to sleep until it * is woken up by the audio driver. */ template<typename T> struct CircularSlidingWindow { CircularSlidingWindow( const T* buffer, size_t block_size, size_t block_count, size_t window_size, size_t stride_size ) : buffer{buffer}, block_size{block_size}, block_count{block_count}, window_size{window_size}, stride_size{stride_size} { // These are the requirements for the algorithm. assert(stride_size < block_size); assert(window_size > stride_size); assert(block_size > window_size); assert(block_size % stride_size == 0); assert(window_size % stride_size == 0); } void next(T* dest) { // Compute the block that contains the stride size_t first_block = current_stride / strides_per_block(); auto last_block = ((current_stride * stride_size + window_size - 1) / block_size) % block_count; // Go to sleep if one of the block is not available. while (first_block == get_block_under_write() || last_block == get_block_under_write()) { xSemaphoreTake(semaphore, portMAX_DELAY); } // Copy the data into the destination buffer auto begin = buffer + (current_stride * stride_size); // Memory to copy may not be seqquential if a window span on two blocks. if (last_block < first_block) { // Copy end of the buffer auto buffer_end = buffer + (block_size * block_count); std::copy(begin, buffer_end, dest); // Copy remaining from the begining auto offset = buffer_end - begin; std::copy(buffer, buffer + (window_size - offset), dest + offset); } else { std::copy(begin, begin + window_size, dest); } // Compute the next stride ++current_stride; current_stride %= stride_count(); } // This is called from ISR static void signal_block_written(void* ptr) { auto* self = reinterpret_cast<CircularSlidingWindow<T>*>(ptr); // Update block ID self->block_under_write = ((self->block_under_write + 1) % self->block_count); // Wakeup task waiting BaseType_t task_woken_up = pdFALSE; xSemaphoreGiveFromISR(self->semaphore, &task_woken_up); portYIELD_FROM_ISR(task_woken_up); } private: size_t stride_count() const { return ((block_size * block_count) / stride_size); } size_t strides_per_block() const { return block_size / stride_size; } size_t get_block_under_write() const { ATOMIC_ENTER_CRITICAL(); auto result = block_under_write; ATOMIC_EXIT_CRITICAL(); return result; } const T* buffer; size_t block_size; size_t block_count; size_t window_size; size_t stride_size; size_t block_under_write = 0; size_t current_stride = 0; SemaphoreHandle_t semaphore = xSemaphoreCreateBinary(); }; /** * @brief Presents inference results using the data presentation * object. * @param[in] platform Reference to the hal platform object. * @param[in] results Vector of classification results to be displayed. * @return true if successful, false otherwise. **/ static void PresentInferenceResult(const arm::app::kws::KwsResult& result); /** * @brief Returns a function to perform feature calculation and populates input tensor data with * MFCC data. * * Input tensor data type check is performed to choose correct MFCC feature data type. * If tensor has an integer data type then original features are quantised. * * Warning: MFCC calculator provided as input must have the same life scope as returned function. * * @param[in] mfcc MFCC feature calculator. * @param[in,out] inputTensor Input tensor pointer to store calculated features. * @param[in] cacheSize Size of the feature vectors cache (number of feature vectors). * @return Function to be called providing audio sample and sliding window index. */ static std::function<void (std::vector<int16_t>&, int, bool, size_t)> GetFeatureCalculator(audio::DsCnnMFCC& mfcc, TfLiteTensor* inputTensor, size_t cacheSize); // Convert labels into ml_processing_state_t ml_processing_state_t convert_inference_result(const std::string& label) { for (const auto& [ref_label, state] : label_to_state) { if (label == ref_label) { return state; } } return ML_UNKNOWN; } void ProcessAudio(ApplicationContext& ctx) { // Constants constexpr int minTensorDims = static_cast<int>( (arm::app::DsCnnModel::ms_inputRowsIdx > arm::app::DsCnnModel::ms_inputColsIdx) ? arm::app::DsCnnModel::ms_inputRowsIdx : arm::app::DsCnnModel::ms_inputColsIdx); // Get the global model auto& model = ctx.Get<Model&>("model"); if (!model.IsInited()) { printf_err("Model is not initialised! Terminating processing.\n"); return; } const auto frameLength = ctx.Get<int>("frameLength"); // 640 const auto frameStride = ctx.Get<int>("frameStride"); // 320 const auto scoreThreshold = ctx.Get<float>("scoreThreshold"); // 0.8 // Input and output tensors TfLiteTensor* outputTensor = model.GetOutputTensor(0); TfLiteTensor* inputTensor = model.GetInputTensor(0); if (!inputTensor->dims) { printf_err("Invalid input tensor dims\n"); return; } else if (inputTensor->dims->size < minTensorDims) { printf_err("Input tensor dimension should be >= %d\n", minTensorDims); return; } TfLiteIntArray* inputShape = model.GetInputShape(0); const uint32_t kNumCols = inputShape->data[arm::app::DsCnnModel::ms_inputColsIdx]; const uint32_t kNumRows = inputShape->data[arm::app::DsCnnModel::ms_inputRowsIdx]; audio::DsCnnMFCC mfcc = audio::DsCnnMFCC(kNumCols, frameLength); mfcc.Init(); /* Deduce the data length required for 1 inference from the network parameters. */ auto audioDataWindowSize = kNumRows * frameStride + (frameLength - frameStride); // 16000 auto mfccWindowSize = frameLength; // 640 auto mfccWindowStride = frameStride; // 320 /* We choose to move by half the window size => for a 1 second window size * there is an overlap of 0.5 seconds. */ auto audioDataStride = audioDataWindowSize / 2; /* To have the previously calculated features re-usable, stride must be multiple * of MFCC features window stride. */ if (0 != audioDataStride % mfccWindowStride) { /* Reduce the stride. */ audioDataStride -= audioDataStride % mfccWindowStride; // 8000 } auto nMfccVectorsInAudioStride = audioDataStride/mfccWindowStride; // 25 /* We expect to be sampling 1 second worth of data at a time. * NOTE: This is only used for time stamp calculation. */ const float secondsPerSample = 1.0/audio::DsCnnMFCC::ms_defaultSamplingFreq; /* Calculate number of the feature vectors in the window overlap region. * These feature vectors will be reused.*/ auto numberOfReusedFeatureVectors = nMfccVectorsInAudioStride; /* Construct feature calculation function. */ auto mfccFeatureCalc = GetFeatureCalculator( mfcc, inputTensor, numberOfReusedFeatureVectors ); if (!mfccFeatureCalc){ printf_err("No feature calculator available"); return; } // Initialize the sliding window auto circularSlider = CircularSlidingWindow<int16_t>( shared_audio_buffer, AUDIO_BLOCK_SIZE / sizeof(int16_t), AUDIO_BLOCK_NUM, mfccWindowSize, mfccWindowStride ); // Initialize the audio driver. It is delayed until that point to avoid drop // of starting frames. AudioDrv_Setup(&decltype(circularSlider)::signal_block_written, &circularSlider); bool first_iteration = true; auto mfccAudioData = std::vector<int16_t>(mfccWindowSize, 0); size_t audio_index = 0; // Start processing audio data as it arrive ml_msg_t msg; while (true) { while (true) { if (xQueueReceive(ml_msg_queue, &msg, 0) == pdPASS ) { if (msg.event == ML_EVENT_STOP) { /* jump out to outer loop */ break; } /* else it's ML_EVENT_START so we fall through and continue with the code */ } /* The first window does not have cache ready. */ bool useCache = first_iteration == false && numberOfReusedFeatureVectors > 0; size_t stride_index = 0; while (stride_index < (audioDataWindowSize / mfccWindowStride)) { if (!useCache || stride_index >= numberOfReusedFeatureVectors) { circularSlider.next(mfccAudioData.data()); } /* Compute features for this window and write them to input tensor. */ mfccFeatureCalc(mfccAudioData, stride_index, useCache, nMfccVectorsInAudioStride); ++stride_index; } /* Run inference over this audio clip sliding window. */ if (!model.RunInference()) { printf_err("Failed to run inference"); return; } std::vector<ClassificationResult> classificationResult; auto& classifier = ctx.Get<KwsClassifier&>("classifier"); classifier.GetClassificationResults(outputTensor, classificationResult, ctx.Get<std::vector<std::string>&>("labels"), 1); auto result = kws::KwsResult( classificationResult, audio_index * secondsPerSample * audioDataStride, audio_index, scoreThreshold ); if (result.m_resultVec.empty()) { set_ml_processing_state(ML_UNKNOWN); } else { set_ml_processing_state(convert_inference_result(result.m_resultVec[0].m_label)); } PresentInferenceResult(result); first_iteration = false; ++audio_index; } /* while (true) */ while ( xQueueReceive(ml_msg_queue, &msg, portMAX_DELAY) == pdPASS ) { if (msg.event == ML_EVENT_START) { break; } /* else it's ML_EVENT_STOP so we keep waiting */ } } /* while (true) */ } static void PresentInferenceResult(const arm::app::kws::KwsResult& result) { /* Display each result */ if (result.m_resultVec.empty()) { info("For timestamp: %f (inference #: %" PRIu32 "); label: %s; threshold: %f\n", result.m_timeStamp, result.m_inferenceNumber, "<none>", 0.f); } else { for (uint32_t i = 0; i < result.m_resultVec.size(); ++i) { info("For timestamp: %f (inference #: %" PRIu32 "); label: %s, score: %f; threshold: %f\n", result.m_timeStamp, result.m_inferenceNumber, result.m_resultVec[i].m_label.c_str(), result.m_resultVec[i].m_normalisedVal, result.m_threshold); } } } /** * @brief Generic feature calculator factory. * * Returns lambda function to compute features using features cache. * Real features math is done by a lambda function provided as a parameter. * Features are written to input tensor memory. * * @tparam T Feature vector type. * @param[in] inputTensor Model input tensor pointer. * @param[in] cacheSize Number of feature vectors to cache. Defined by the sliding window overlap. * @param[in] compute Features calculator function. * @return Lambda function to compute features. */ template<class T> std::function<void (std::vector<int16_t>&, size_t, bool, size_t)> FeatureCalc(TfLiteTensor* inputTensor, size_t cacheSize, std::function<std::vector<T> (std::vector<int16_t>& )> compute) { /* Feature cache to be captured by lambda function. */ static std::vector<std::vector<T>> featureCache = std::vector<std::vector<T>>(cacheSize); return [=](std::vector<int16_t>& audioDataWindow, size_t index, bool useCache, size_t featuresOverlapIndex) { T *tensorData = tflite::GetTensorData<T>(inputTensor); std::vector<T> features; /* Reuse features from cache if cache is ready and sliding windows overlap. * Overlap is in the beginning of sliding window with a size of a feature cache. */ if (useCache && index < featureCache.size()) { features = std::move(featureCache[index]); } else { features = std::move(compute(audioDataWindow)); } auto size = features.size(); auto sizeBytes = sizeof(T) * size; std::memcpy(tensorData + (index * size), features.data(), sizeBytes); /* Start renewing cache as soon iteration goes out of the windows overlap. */ if (index >= featuresOverlapIndex) { featureCache[index - featuresOverlapIndex] = std::move(features); } }; } template std::function<void (std::vector<int16_t>&, size_t , bool, size_t)> FeatureCalc<int8_t>(TfLiteTensor* inputTensor, size_t cacheSize, std::function<std::vector<int8_t> (std::vector<int16_t>& )> compute); template std::function<void (std::vector<int16_t>&, size_t , bool, size_t)> FeatureCalc<uint8_t>(TfLiteTensor* inputTensor, size_t cacheSize, std::function<std::vector<uint8_t> (std::vector<int16_t>& )> compute); template std::function<void (std::vector<int16_t>&, size_t , bool, size_t)> FeatureCalc<int16_t>(TfLiteTensor* inputTensor, size_t cacheSize, std::function<std::vector<int16_t> (std::vector<int16_t>& )> compute); template std::function<void(std::vector<int16_t>&, size_t, bool, size_t)> FeatureCalc<float>(TfLiteTensor* inputTensor, size_t cacheSize, std::function<std::vector<float>(std::vector<int16_t>&)> compute); static std::function<void (std::vector<int16_t>&, int, bool, size_t)> GetFeatureCalculator(audio::DsCnnMFCC& mfcc, TfLiteTensor* inputTensor, size_t cacheSize) { std::function<void (std::vector<int16_t>&, size_t, bool, size_t)> mfccFeatureCalc; TfLiteQuantization quant = inputTensor->quantization; if (kTfLiteAffineQuantization == quant.type) { auto *quantParams = (TfLiteAffineQuantization *) quant.params; const float quantScale = quantParams->scale->data[0]; const int quantOffset = quantParams->zero_point->data[0]; switch (inputTensor->type) { case kTfLiteInt8: { mfccFeatureCalc = FeatureCalc<int8_t>(inputTensor, cacheSize, [=, &mfcc](std::vector<int16_t>& audioDataWindow) { return mfcc.MfccComputeQuant<int8_t>(audioDataWindow, quantScale, quantOffset); } ); break; } case kTfLiteUInt8: { mfccFeatureCalc = FeatureCalc<uint8_t>(inputTensor, cacheSize, [=, &mfcc](std::vector<int16_t>& audioDataWindow) { return mfcc.MfccComputeQuant<uint8_t>(audioDataWindow, quantScale, quantOffset); } ); break; } case kTfLiteInt16: { mfccFeatureCalc = FeatureCalc<int16_t>(inputTensor, cacheSize, [=, &mfcc](std::vector<int16_t>& audioDataWindow) { return mfcc.MfccComputeQuant<int16_t>(audioDataWindow, quantScale, quantOffset); } ); break; } default: printf_err("Tensor type %s not supported\n", TfLiteTypeGetName(inputTensor->type)); } } else { mfccFeatureCalc = mfccFeatureCalc = FeatureCalc<float>(inputTensor, cacheSize, [&mfcc](std::vector<int16_t>& audioDataWindow) { return mfcc.MfccCompute(audioDataWindow); }); } return mfccFeatureCalc; } } // anonymous namespace extern struct ethosu_driver ethosu_drv; /* Default Ethos-U55 device driver */ /** * @brief Initialises the Arm Ethos-U55 NPU * @return 0 if successful, error code otherwise **/ static int arm_npu_init(void); /** * @brief Defines the Ethos-U interrupt handler: just a wrapper around the default * implementation. **/ extern "C" { void arm_npu_irq_handler(void) { /* Call the default interrupt handler from the NPU driver */ ethosu_irq_handler(&ethosu_drv); } } /** * @brief Initialises the NPU IRQ **/ static void arm_npu_irq_init(void) { const IRQn_Type ethosu_irqnum = (IRQn_Type)EthosU_IRQn; /* Register the EthosU IRQ handler in our vector table. * Note, this handler comes from the EthosU driver */ NVIC_SetVector(ethosu_irqnum, (uint32_t)arm_npu_irq_handler); /* Enable the IRQ */ NVIC_EnableIRQ(ethosu_irqnum); debug("EthosU IRQ#: %u, Handler: 0x%p\n", ethosu_irqnum, arm_npu_irq_handler); } static int _arm_npu_timing_adapter_init(void) { #if defined (TA0_BASE) struct timing_adapter ta_0; struct timing_adapter_settings ta_0_settings = { .maxr = TA0_MAXR, .maxw = TA0_MAXW, .maxrw = TA0_MAXRW, .rlatency = TA0_RLATENCY, .wlatency = TA0_WLATENCY, .pulse_on = TA0_PULSE_ON, .pulse_off = TA0_PULSE_OFF, .bwcap = TA0_BWCAP, .perfctrl = TA0_PERFCTRL, .perfcnt = TA0_PERFCNT, .mode = TA0_MODE, .maxpending = 0, /* This is a read-only parameter */ .histbin = TA0_HISTBIN, .histcnt = TA0_HISTCNT }; if (0 != ta_init(&ta_0, TA0_BASE)) { printf_err("TA0 initialisation failed\n"); return 1; } ta_set_all(&ta_0, &ta_0_settings); #endif /* defined (TA0_BASE) */ #if defined (TA1_BASE) struct timing_adapter ta_1; struct timing_adapter_settings ta_1_settings = { .maxr = TA1_MAXR, .maxw = TA1_MAXW, .maxrw = TA1_MAXRW, .rlatency = TA1_RLATENCY, .wlatency = TA1_WLATENCY, .pulse_on = TA1_PULSE_ON, .pulse_off = TA1_PULSE_OFF, .bwcap = TA1_BWCAP, .perfctrl = TA1_PERFCTRL, .perfcnt = TA1_PERFCNT, .mode = TA1_MODE, .maxpending = 0, /* This is a read-only parameter */ .histbin = TA1_HISTBIN, .histcnt = TA1_HISTCNT }; if (0 != ta_init(&ta_1, TA1_BASE)) { printf_err("TA1 initialisation failed\n"); return 1; } ta_set_all(&ta_1, &ta_1_settings); #endif /* defined (TA1_BASE) */ return 0; } static int arm_npu_init(void) { int err = 0; /* If the platform has timing adapter blocks along with Ethos-U55 core * block, initialise them here. */ if (0 != (err = _arm_npu_timing_adapter_init())) { return err; } /* Initialise the IRQ */ arm_npu_irq_init(); /* Initialise Ethos-U55 device */ const void * ethosu_base_address = (void *)(SEC_ETHOS_U55_BASE); if (0 != (err = ethosu_init( &ethosu_drv, /* Ethos-U55 driver device pointer */ ethosu_base_address, /* Ethos-U55's base address. */ NULL, /* Pointer to fast mem area - NULL for U55. */ 0, /* Fast mem region size. */ 0, /* Security enable. */ 0))) { /* Privilege enable. */ printf_err("failed to initalise Ethos-U55 device\n"); return err; } info("Ethos-U55 device initialised\n"); /* Get Ethos-U55 version */ struct ethosu_version version; if (0 != (err = ethosu_get_version(&ethosu_drv, &version))) { printf_err("failed to fetch Ethos-U55 version info\n"); return err; } info("Ethos-U55 version info:\n"); info("\tArch: v%u.%u.%u\n", version.id.arch_major_rev, version.id.arch_minor_rev, version.id.arch_patch_rev); info("\tDriver: v%u.%u.%u\n", version.id.driver_major_rev, version.id.driver_minor_rev, version.id.driver_patch_rev); info("\tMACs/cc: %u\n", (1 << version.cfg.macs_per_cc)); info("\tCmd stream: v%u\n", version.cfg.cmd_stream_version); info("\tSHRAM size: %u\n", version.cfg.shram_size); return 0; } extern "C" { ml_processing_state_t get_ml_processing_state() { if (!ml_lock()) { return ML_UNKNOWN; } ml_processing_state_t result = ml_processing_state; ml_unlock(); return result; } void on_ml_processing_change(ml_processing_change_handler_t handler, void* self) { ml_processing_change_handler = handler; ml_processing_change_ptr = self; } int ml_interface_init() { static arm::app::DsCnnModel model; /* Model wrapper object. */ // Initialize the ethos U55 if (arm_npu_init() != 0) { printf_err("Failed to arm npu\n"); return -1; } /* Load the model. */ if (!model.Init()) { printf_err("Failed to initialise model\n"); return -1; } /* Instantiate application context. */ caseContext.Set<arm::app::Model&>("model", model); caseContext.Set<int>("frameLength", g_FrameLength); caseContext.Set<int>("frameStride", g_FrameStride); caseContext.Set<float>("scoreThreshold", g_ScoreThreshold); /* Normalised score threshold. */ static arm::app::Classifier classifier; /* classifier wrapper object. */ caseContext.Set<arm::app::Classifier&>("classifier", classifier); static std::vector <std::string> labels; GetLabelsVector(labels); caseContext.Set<const std::vector <std::string>&>("labels", labels); PrintTensorFlowVersion(); printf("*** ML interface initialised\r\n"); return 0; } void ml_task(void*) { ml_mutex = xSemaphoreCreateMutex(); ml_msg_queue = xQueueCreate(10, sizeof(ml_msg_t)); while (1) { ml_msg_t msg; if (xQueueReceive(ml_msg_queue, &msg, portMAX_DELAY) == pdPASS ) { if (msg.event == ML_EVENT_START) { break; } /* else it's ML_EVENT_STOP so we keep waiting the loop */ } } if (ml_interface_init() < 0) { printf_err("ml_interface_init failed\n"); return; } ProcessAudio(caseContext); } } // extern "C"
cpp
ACAPULCO, October 21- Mexico’s government announced a $110,000 reward for information on the disappearance of 43 students in a case of alleged collusion between a drug gang and police. The reward was announced in national newspapers and featured black and white photos of the 43 students, who went missing three weeks ago in the southern city of Iguala. The reward applies to information on the whereabouts of the students or for the identification of those responsible for their disappearance. Meanwhile, representatives of the students’ families expressed wariness over the government’s probe of the case. The disappearances have triggered an uproar in this country painfully used to drug related violence. The representatives raised their concerns after meeting with Interior Minister Miguel Angel Osorio Chong and Attorney General Jesus Murillo Karam. “We do not believe in the results (of the investigation) so far because there is nothing that takes us close to the truth,” said Felipe de la Cruz, a relative of one of the missing. “Today we tried to trust the federal government but the results do not satisfy us,” de la Cruz said. Authorities say Iguala’s police force shot at buses carrying the students on September 26 and handed them over to officers in the neighboring town of Cocula, who then delivered them to the Guerreros Unidos drug gang. A total of 36 municipal officers in Iguala have been arrested in the case, along with 17 Guerreros Unidos members and their boss. The attorney general has said investigators are still analyzing the contents of three mass graves found near Iguala after declaring last week that 28 bodies found in one pit did not belong to the students.
english
package edu.nwpu.ad.dao; import edu.nwpu.ad.entity.AdPlan; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; /** * AdPlan的查询接口 */ public interface AdPlanRepository extends JpaRepository<AdPlan, Long> { /** * <h2>根据id和userId查询AdPlan</h2> */ AdPlan findAdPlanByIdAndUserId(Long id, Long userId); /** * 根据Id列表和UserId查询,一个UserId可能对应多个AdPlan */ List<AdPlan> findAllByIdInAndUserId(List<Long> ids, Long userId); /** * 根据UserId和PlanName查询,能够唯一确定一个AdPlan */ AdPlan findByUserIdAndPlanName(Long userId, String planName); /** * 根据状态查询一个AdPlan列表 */ List<AdPlan> findAllByPlanStatus(Integer status); }
java
These days directing a film has become very easy. Almost everyone is coming forward to direct the film. Cinematographers, choreographers and dialogue writers are turning directors. While Lawrence succeeded in his attempt, Prabhudeva is some now lagging behind. When it comes to dialogue writers, Trivikram Srinivas proved himself, while Paruchuri Brothers tried their hand in direction. Janardhan Maharshi also gave a hit like Gopi Goodemeda Pilli. Very recently Kulasekhar also turned a director and his film Premalekha Raasaa is almost ready for release. In this backdrop noted lyricist and painter Sivakasi Dutta, father of music director Keeravani is becoming a director soon. The film is likely to begin its shoot from next month and the details are awaited.
english
import React from 'react' import { Dropdown as Drop, DropdownMenu as Menu } from '@tableflip/react-dropdown' export const Option = ({ children, onClick, className = '', ...props }) => ( <a className={`bg-animate hover-bg-near-white pa2 pointer flex items-center ${className}`} onClick={onClick} {...props}> {children} </a> ) export const DropdownMenu = ({ children, arrowMarginRight, width = 200, ...props }) => ( <Menu className='sans-serif br2 charcoal' boxShadow='rgba(105, 196, 205, 0.5) 0px 1px 10px 0px' width={width} arrowAlign='right' arrowMarginRight={arrowMarginRight || '13px'} left={`calc(100% - ${width}px)`} {...props} > <nav className='flex flex-column'> {children} </nav> </Menu> ) export const Dropdown = Drop
javascript
{ "countries": [], "topics": [], "section_title": "OTHER MATTERS:", "enb_start_date": "01-Jun-09", "enb_short_title": "SB 30", "subtype": "", "actors": [], "sentences": [ "AWG-KP Chair Ashe consulted informally on further organization of work, and the AWG-KP closing plenary adopted conclusions on 12 June." ], "enb_url": "http://www.iisd.ca/vol12/enb12421e.html", "enb_long_title": "Bonn Climate Change Talks - June 2009", "type": "", "id": "enb12421e_28", "enb_end_date": "12-Jun-09" }
json
from .composition.ParallelComposition import ParallelComposition from .composition.SequentialComposition import SequentialComposition from .core.Morpheus import Morpheus
python
<filename>BAEKJOON/Python/23806.py count = int(input()) for i in range(count): print("@"*(count*5)) for i in range(count*3): print("@"*(count)," "*(count*3),"@"*(count),sep="") for i in range(count): print("@"*(count*5))
python
Guinea qualified for the 2023 Africa Cup of Nations without playing on Tuesday and Mauritania is poised to join them after a decisive victory over Sudan. A 0-0 draw between Ethiopia and Malawi in Maputo eliminated both and cleared the way for Guinea to accompany Egypt from Group D to the 24-team finals in the Ivory Coast from January 13. Minnows Mauritania rose from last to first in the hotly contested Group I by hammering Sudan 3-0 through goals from centre-backs Nouh el Abd and Hassan Houbeib and Hemeya Tanjy. Group C is also wide open after Burundi scored three goals within 19 minutes, then hung on for a 3-2 victory over previously unbeaten Namibia. Guinea is the 15th qualifiers after Algeria, Burkina Faso, Cape Verde, Egypt, Equatorial Guinea, Guinea-Bissau, Ivory Coast, Mali, Morocco, Nigeria, Senegal, South Africa, Tunisia and Zambia. The other nine places at the biennial African showpiece will be filled during the sixth and final matchday from September 4-12. Sudan was forced to stage their home fixture against Mauritania in the southern Moroccan coastal city of Agadir because of the civil war in the east African nation. The Sudanese said before the match they were desperate to win and top the table to “bring joy to our people and mitigate the suffering, even for a few days”. Since mid-April, the army, led by Abdel Fattah al-Burhan, has battled the paramilitary Rapid Support Forces commanded by his former deputy Mohamed Hamdan Daglo, in a power struggle. Sudan fell behind when El Abd struck midway through the first half and early second-half goals from Houbeib and Tanjy sealed the fate of the Sudanese. Mauritania has eight points, the Democratic Republic of Congo and Gabon seven each and Sudan six ahead of the final round. The Mauritanians, for decades one of the weakest national teams in Africa, will have home advantage over Gabon as they seek a third straight appearance at the finals. Two-time champions DR Congo must fancy their chances of qualifying as Sudan have to visit the central African nation. Burundi, not a team renowned for scoring many goals, took a 55-second lead over Namibia in Dar es Salaam thanks to Abedi Bigirimana. Bonfils-Caleb Bimenyimana and Hussein Shabani added goals for the one-time qualifiers, then Namibia captain Peter Shalulile netted just before half-time. A tense finish ensued when substitute Wendell Rudath scored a second Namibian goal with five minutes of regular time remaining. Namibia still top the mini-league with five points, but have completed their schedule while Cameroon and Burundi, level on four points, meet in September.
english
SteemSports: LaLiga - Celta de Vigo vs Barcelona - Mass SP Distribution Game! SteemSports community sports initiative, cast your votes, help distribute SP and make a difference! SteemSports iniciativa deportiva para la comunidad Steem, emite tu voto, ayuda a distribuir SP y haz la diferencia! Please welcome Roberto Constenla for the first simulcast (multi-language) SteemSports game, Rob will be presenting in English and translating to Spanish. Este será un juego muy interesante ya que ambos equipos juegan un futbol de alta posesión en donde atacan constantemente a sus oponentes. Barcelona no tendrá a Lionel Messi para el partido lo cual podría hacer que los jugadores del Celta de Vigo se sientan más confiados de lograr una victoria en esta fecha de La Liga. Since his arrival as Celta de Vigo´s Manager, Eduardo Verizzo has managed to make his team play a style of game where they keep possession of the ball, and Barcelona is well aware of it as they suffered 4-1 defeat against Celta on 23/09/2015. Also the team comes to this game in good form as they have won their last the games, including the win against the greek side Panathinaikos on the UEFA Europa League with a 2-0 score. Desde su llegada como técnico del Celta de Vigo, el argentino Eduardo Verizzo ha sabido colocarle una impronta en el estilo de juego de los celestes caracterizado por un futbol de alta posesión y Barcelona está muy consciente de ello ya que en la temporada pasada sufrieron una derrota 4-1 el 23/09/2015. También el equipo llega en buena forma ya que han ganado sus últimas tres citas, incluyendo la victoria en contra del equipo griego Panathinaikos en la Uefa Europa League con un marcador de 2-0. The visiting Side Barcelona is one of the best teams of the world, their manager Luis Enrique revived the tiki taka spirit that was lost during Di Martino´s era, managing to win 2 league titles and a Champions league amongst others. Also with one of the deadliest attacking trio of the world conformed by Neymar, Messi and Suarez, it is very easy for Barcelona to score almost in every game, but for this game they wont have Messi, which could lever the game and as a proof of it, we saw how they struggled to win their last Champion's League game against Borussia Mönchengladbach, where they started losing thanks to Hazard´s goal. Also in La Liga, Barcelona hasn't won its last 2 games as Celta de Vigo has. El equipo Visitante Barcelona, es uno de los mejores equipos del mundo, su técnico Luis Enrique revivió el estilio del tiki taka que se perdió durante la era de Di Martino, logrando obtener dos títulos de liga y una Champions League, entre otros. Además con uno de los tríos de atacantes más letales del mundo conformado por Neymar, Messi y Suarez, es muy fácil para el Barcelona anotar en casi cualquier juego, pero en este no tendrán a Messi por una lesión, lo cual podría equilibrar el juego haciendo que los visitantes no consigan tan fácilmente vulnerar la meta del celta, y como prueba de ello vimos como lucharon para conseguir una victoria contra el Borussia Mönchengladbach, donde comenzaron perdiendo gracias a un gol de Hazard. También en La Liga no han ganado sus últimos dos juegos mientras que el Celta de Vigo si lo ha logrado. Barcelona: Ter Stegen, Mascherano, Piqué, Jordi Alba, Iniesta, Rakitić, Busquets, Sergi Roberto, Suárez, Neymar, Paco Alcácer. Celta de Vigo: Sergio Álvarez, Cabral, Hugo Mallo, Fontàs, Jonny Castro, Díaz, Hernández, Josep Señé, Rossi, Guidetti, José Naranjo. Support SteemSports Ultimate Vote Betting … together we all can win! Apoya SteemSports!! El Innovador Sistema de Apuesta por Votos ... juntos podemos ganar todos! Vote on the main post to enter the bet (main post rewards will also be added to the Stake Pool). Cast your Vote Bet on ONLY ONE outcome for which you bet on for the win (Multiple comment votes will be automatically disqualified by the script). After 24 hours, the post and related game comments payout to the pool; remember 25% voters rewards are deducted from the total post payout value first as per Steem curation rules. Voters are rewarded in standard fashion in proportion to their Steem Power holdings. The Stake Pool: The remaining 75% of the total payout is paid out in 50% Steem Power and 50% in liquid currencies, the latter now varies in payout ratio after the new fork. To make the process less complicated, we have decided to use all paid out SBD to buy Steem in the internal market to create a grand total Steem Stake Pool. 30% of the Stake Pool will be retained, of which 15% will go to the writer/sports presenter of the post, and the 15% balance towards editing, development and advertising. 70% of the Stake Pool will be held until the event/game outcome is determined. Once the winning outcome is determined, we will execute a proprietary developed script that will divide and pay out the Steem rewards equally, using the Power Up method, to Mass Distribute SP to all participants that voted on the main post as the entrance fee as well as voted on the correct comment representing the winning outcome. Only participants with a Reputation of 35 or more will qualify to earn SP rewards, but non-qualifiers can still vote and comment in support of the redistribution initiative. Disclaimer and Image Credits: Images used in this post are either paid for and modified, Creative Commons (CC) or image credits supplied. Note the views and predictions of the presenters are their own personal views and do not reflect the views and opinions of @steemsports. @steemsports does not offer betting advice. Errors and Omissions Excepted (E&OE) @steemsports reserves the right to amend future payout percentages based on the operation needs of the account. @steemsports is not a traditional betting platform and no fiat currency is used as rewards or in casting bets; as such does not fall under any gaming and gambling jurisdictions; but even so, users are urged to first consult with the laws and age restrictions of their countries. @steemsports in the unlikely event that when the Stake Pool is divided up between the winners and the nomenclature resolution goes below the third decimal place (example: 0.0001), then Steem decimal restrictions won’t allow a payout and the pool will carry over to the next game. Please vote responsibly :). Contact me, thecryptodrive to have your logos displayed in the footer of our posts in exchange for advertising @steemsports to your communities and initiatives, or for other worthy support. SHAREon Facebook, Twitter, LinkedIn and others, in support of the @steemsports initiative! Donations Welcome and will be added to the vote pool for distribution and donations recorded: VOTE BET BELOW!!! VOTE MAIN POST AND ONE OUTCOME ONLY!
english
Ace Indian athlete Hima Das on Wednesday revealed that she has tested COVID-19 positive but is stable in isolation. The 21-year old reported to the national camp at the National Institute of Sport (NIS) in Patiala recently and was set to resume her training following an injury picked up at the Inter State Athletics Championships in June. However, she showed signs of mild exhaustion when she reached Patiala. "I would like to inform everyone that I have been tested positive for Covid-19. I am stable and at the moment in isolation. I look forward to utilising this time to recover and come back stronger than before," Das tweeted. "A gentle reminder for everyone to stay safe and wear masks. "Hima last competed at the Inter-State meet, an Olympic qualifying event, where she picked up a hamstring injury in the 100m heats. As a result, she withdrew from the 100m finals and the 4x100m women's relay but opted to run the 200m finals. The sprinter also did not make the cut for 2020 Tokyo Olympics after missing the qualification mark. Hima holds the national record in women's 400m, women's 4×100m relay and the 4x400m mixed relay races.
english
Guwahati: The Bharatiya Janata Party (BJP) alliance partners in Assam on Saturday said they have united to keep the ruling Congress out of power in the state after the forthcoming polls. The alliance appealed to all party members to ensure the victory of the BJP, Asaam Gana Parishad (AGP), and Bodo People’s Front (BPF) alliance for the sake of good governance and a corruption-free Assam. The three have forged an alliance ahead of the forthcoming Assam assembly polls. While the BJP is contesting on 88 seats, the AGP is contesting only 24 seats and the BPF about 14 seats. The alliance between the BJP and AGP, however, led to severe discontent among the workers of both the parties in different parts of the state and even led to splits in the two parties. While the disgruntled workers of the AGP floated a new front christened AGP Regional Forum, the BJP workers unhappy over the alliance have formed a new party, Trinamool BJP. Both the split factions of the BJP and AGP have decided to put up their own candidates in some of the constituencies, which is expected the further divide the AGP and BJP vote banks, giving an edge to other parties like the Congress and AIUDF in particular constituencies. “I accept that there are some differences among us on some issues. However, we are working on hammering out the differences and I do not feel it is impossible. We have come together with the main objective of keeping the Congress out of power this time,” said AGP president Atul Bora while addressing a press conference on Saturday. The conference was addressed jointly by AGP president Atul Bora, Assam BJP president Sarbananda Sonowal and BPF chief Hagrama Mohilary. Although the three parties have come together, they are yet to come out with a common minimum programme. “People of Assam have given three opportunities to the Congress. However, the party had failed to fulfil the aspirations of the common people of the state. The Congress is power hungry and winning elections out of its Bangladeshi vote bank politics,” Sonowal said. He said the BJP, AGP and BPF have emerged as a strong alternative to the Congress and it could only bring a stable and transparent government to Assam for overall development. BPF chief Hagrama Mohilary said that his party had supported the Congress in the past and was an alliance partner of the Congress at Dispur for 10 years. “However, we have realised that the problems of the Bodos and Bodoland are far from being over in the Congress rule. We believe that development can be brought by the BJP alone and so we have decided to support BJP this time,” he said, adding the alliance is sure to form the next government in the state. The two-phase state assembly election will be held on April 4 and 11 to elect members from the 126 constituencies in Assam. International online casino Casino Days has published a report sharing their internal data on what types and brands of devices are used to play on the platform by users from the South Asian region. Such aggregate data analyses allow the operator to optimise their website for the brands and models of devices people are actually using. The insights gained through the research also help Casino Days tailor their services based on the better understanding of their clients and their needs. The primary data samples analysed by Casino Days reveal that mobile connections dominate the market in South Asia and are responsible for a whopping 96.6% of gaming sessions, while computers and tablets have negligible shares of 2.9% and 0.5% respectively. The authors of the study point out that historically, playing online casino was exclusively done on computers, and attribute thе major shift to mobile that has unfolded over time to the wide spread of cheaper smartphones and mobile data plans in South Asia. “Some of the reasons behind this massive difference in device type are affordability, technical advantages, as well as cheaper and more obtainable internet plans for mobiles than those for computers,” the researchers comment. Chinese brands Xiaomi and Vivo were used by 21.9% and 20.79% of Casino Days players from South Asia respectively, and together with the positioned in third place with a 18.1% share South Korean brand Samsung dominate the market among real money gamers in the region. Cupertino, California-based Apple is way down in seventh with a user share of just 2.29%, overshadowed by Chinese brands Realme (11.43%), OPPO (11.23%), and OnePlus (4.07%). Huawei is at the very bottom of the chart with a tiny share just below the single percent mark, trailing behind mobile devices by Motorola, Google, and Infinix. The data on actual phone usage provided by Casino Days, even though limited to the gaming parts of the population of South Asia, paints a different picture from global statistics on smartphone shipments by vendors. Apple and Samsung have been sharing the worldwide lead for over a decade, while current regional leader Xiaomi secured their third position globally just a couple of years ago. The shifted market share patterns of the world’s top smartphone brands in South Asia observed by the Casino Days research paper reveal a striking dominance of Android devices at the expense of iOS-powered phones. On the global level, Android enjoys a comfortable lead with a sizable 68.79% share which grows to nearly 79% when we look at the whole continent of Asia. The data on South Asian real money gaming communities suggests that Android’s dominance grows even higher and is north of the 90% mark. Among the major factors behind these figures, the authors of the study point to the relative affordability of and greater availability of Android devices in the region, especially when manufactured locally in countries like India and Vietnam. “And, with influencers and tech reviews putting emphasis on Android devices, the choice of mobile phone brand and OS becomes easy; Android has a much wider range of products and caters to the Asian online casino market in ways that Apple can’t due to technical limitations,” the researchers add. The far better integration achieved by Google Pay compared to its counterpart Apple Pay has also played a crucial role in shaping the existing smartphone market trends.
english
In a first, the Lucknow administration on Tuesday sealed two shops as part of its drive to recover damages for destruction of public and private properties during the protests held on December 19 against the Citizenship Amendment Act and the proposed countrywide National Register of Citizens. Lucknow (Sadar) Tehsildar Shambhu Sharan Singh said a garment store called NY Fashion Centre and a junk shop in the Hasanganj police station area were sealed “in view of the order passed ADM (Transgomti) Vishwa Bhushan Mishra on February 13, 2020”. The junk shop’s owner, Maahenoor Choudhary, and the garment shop’s assistant store manager Dharamveer Singh are among the 13 whom Mishra had ordered to pay Rs 21. 76 lakh within 30 days for the destruction of properties in the Hasanganj police station area. Failure to pay would result in the attachment of properties, the order had warned. Initially, 57 people across four police stations were served notices for recovery of Rs 1. 55-crore in damages. In March, their photographs and addresses were displayed on hoardings. Congress leader and social activist Sadaf Jafar (44), retired IPS officer SR Darapuri (77), and activist Mohammad Shoaib (73) were on the list. On March 10, the Lucknow administration said 13 of the 57 would have to pay 10 per cent extra within a week, or face jail. Following a suggestion from the Allahabad High Court amid the pandemic, the Lucknow administration, on March 20, stopped all coercive actions such as the attachment of properties and arrests to recover the damages.
english
<reponame>kunicmarko20/gock-http-server<filename>http/handler/api/set_mock.go package api import ( ghttp "github.com/kunicmarko20/gock-http-server/http" "github.com/kunicmarko20/gock-http-server/mock/repository" "github.com/kunicmarko20/gock-http-server/propertyaccess" "log" "net/http" ) type SetMockHandler struct { mockRepository repository.MockRepository propertyAccessor *propertyaccess.PropertyAccessor } func NewSetMockHandler( mockRepository repository.MockRepository, propertyAccessor *propertyaccess.PropertyAccessor, ) *SetMockHandler { return &SetMockHandler{mockRepository, propertyAccessor} } func (h *SetMockHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request) { mock, err := ghttp.NewPayloadToMockTransformer(h.propertyAccessor).FromRequest(request) if err != nil { log.Printf("Failed transforming payload with error: \"%s\".", err) writer.WriteHeader(http.StatusBadRequest) _, _ = writer.Write([]byte(err.Error())) return } h.mockRepository.Set(mock) log.Println("Updated mock.", map[string]string{ "mock": mock.Name(), }) writer.WriteHeader(http.StatusNoContent) }
go
Tianhui- salah satu pengeluar dan pembekal cip LED UV terkemuka menyediakan perkhidmatan cip LED UV ODM/OEM. · Pembuatan produk yang diterajui uv Tianhui meliputi beberapa aspek. Ia termasuk pemotongan logam, pembentukan, pembentukan struktur, penggilap permukaan, fabrikasi komponen mekanikal, dan sebagainya. · Produk diperiksa sepenuhnya selaras dengan piawaian industri untuk memastikan kualitinya. · Produk uv led telah dijual di beberapa kawasan di luar negara. · Zhuhai Tianhui Electronic Co., Ltd. ialah syarikat yang boleh dipercayai dan profesional yang melibatkan reka bentuk, pengeluaran, pemasaran, pengangkutan, dan bantuan teknikal produk yang dipimpin uv. · Barisan pengeluaran automatik sepenuhnya dicapai di Zhuhai Tianhui Electronic Co., Ltd.. Zhuhai Tianhui Electronic Co., Ltd. sentiasa menambah baik proses pembuatan produk. · Sila hubungi kami pada bila-bila masa apabila anda memerlukan produk uv led kami. Bertanya dalam talian! Butiran khusus untuk produk yang diketuai uv Tianhui terutamanya ditunjukkan dalam aspek berikut. Produk yang diterajui uv Tianhui boleh memainkan peranan penting dalam pelbagai bidang. Kami telah terlibat dalam pengeluaran dan pengurusan Modul LED UV, Sistem LED UV, Diod LED UV selama bertahun-tahun. Untuk beberapa masalah yang dihadapi oleh pelanggan dalam perolehan, kami mempunyai keupayaan untuk menyediakan pelanggan penyelesaian yang praktikal dan berkesan untuk membantu pelanggan menyelesaikan masalah dengan lebih baik. Produk yang diterajui uv Tianhui mempunyai kualiti yang lebih baik daripada produk lain dalam industri, yang ditunjukkan secara khusus dalam aspek berikut. Syarikat kami mempunyai sumber bakat keseluruhan yang kukuh termasuk sejumlah besar pekerja, ramai kakitangan teknikal yang berpengalaman dan kakitangan pengurusan berkualiti tinggi. Syarikat kami mempunyai pasukan perkhidmatan pelanggan profesional. Pasukan perkhidmatan mampu menyediakan perkhidmatan satu sama lain untuk pelanggan, jadi kami dapat menyelesaikan masalah pelanggan dengan cekap. Dengan tumpuan utama pada kualiti, Tianhui berusaha untuk kecemerlangan dan pembangunan yang mantap. Kami sangat mementingkan integriti dan keikhlasan, yang merupakan asas untuk kami mendapat manfaat bersama. Kawalan kualiti yang ketat dan tumpuan kepada pelanggan adalah sangat penting untuk pembangunan korporat. Kami berusaha untuk membina jenama kelas pertama dan menjadi peneraju dalam industri. Tianhui telah ditubuhkan pada Semasa pembangunan, kami sentiasa meneroka di pasaran dan telah memperkenalkan sains dan teknologi canggih serta peralatan pengeluaran. Kini kami membangunkan perniagaan berdasarkan pengeluaran berskala besar. Berdasarkan sistem jualan yang lengkap, Modul LED UV Tianhui, Sistem LED UV, Diod LED UV bukan sahaja dijual dengan baik di pelbagai wilayah, bandar dan wilayah autonomi di China, tetapi juga dieksport ke negara dan wilayah yang berbeza di luar negara.
english
<filename>ArcGISRuntimeSDKQt_CppSamples/DisplayInformation/ShowCallout/ShowCallout.cpp // [WriteFile Name=ShowCallout, Category=DisplayInformation] // [Legal] // Copyright 2016 Esri. // 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. // [Legal] #include "ShowCallout.h" #include "Map.h" #include "MapQuickView.h" #include "CalloutData.h" using namespace Esri::ArcGISRuntime; ShowCallout::ShowCallout(QQuickItem* parent): QQuickItem(parent) { } ShowCallout::~ShowCallout() = default; void ShowCallout::init() { qmlRegisterType<MapQuickView>("Esri.Samples", 1, 0, "MapView"); qmlRegisterType<ShowCallout>("Esri.Samples", 1, 0, "ShowCalloutSample"); qmlRegisterUncreatableType<CalloutData>("Esri.Samples", 1, 0, "CalloutData", "CalloutData is an uncreatable type"); } void ShowCallout::componentComplete() { QQuickItem::componentComplete(); // find QML MapView component m_mapView = findChild<MapQuickView*>("mapView"); m_mapView->setWrapAroundMode(WrapAroundMode::Disabled); // Create a map using the topographic basemap m_map = new Map(Basemap::topographic(this), this); m_map->setInitialViewpoint(Viewpoint(Point(-1.2e7, 5e6, SpatialReference::webMercator()), 1e7)); // Set map to map view m_mapView->setMap(m_map); //! [initialize callout] m_mapView->calloutData()->setVisible(false); m_mapView->calloutData()->setTitle("Location"); QImage image(":/Samples/DisplayInformation/ShowCallout/RedShinyPin.png"); m_mapView->calloutData()->setImage(image); m_calloutData = m_mapView->calloutData(); emit calloutDataChanged(); //! [initialize callout] // display callout on mouseClicked connect(m_mapView, &MapQuickView::mouseClicked, this, [this](QMouseEvent& mouseEvent){ if (m_mapView->calloutData()->isVisible()) m_mapView->calloutData()->setVisible(false); else { // set callout position Point mapPoint(m_mapView->screenToLocation(mouseEvent.x(), mouseEvent.y())); m_mapView->calloutData()->setLocation(mapPoint); // set detail as coordinates formatted to decimal numbers with precision 2 m_mapView->calloutData()->setDetail("x: " + QString::number(mapPoint.x(), 'f', 2) + " y: " + QString::number(mapPoint.y(), 'f', 2)); m_mapView->calloutData()->setVisible(true); } }); } CalloutData* ShowCallout::calloutData() const { return m_calloutData; }
cpp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Tue Jun 08 13:32:07 GMT 2004 --> <TITLE> InstructionDetails </TITLE> <META NAME="keywords" CONTENT="net.sf.saxon.instruct.InstructionDetails,InstructionDetails class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> </HEAD> <SCRIPT> function asd() { parent.document.title="InstructionDetails"; } </SCRIPT> <BODY BGCOLOR="white" onload="asd();"> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_top"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../../net/sf/saxon/instruct/Instruction.html"><B>PREV CLASS</B></A>&nbsp; &nbsp;<A HREF="../../../../net/sf/saxon/instruct/Message.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="InstructionDetails.html" TARGET="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp; <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> net.sf.saxon.instruct</FONT> <BR> Class InstructionDetails</H2> <PRE> java.lang.Object | +--<B>net.sf.saxon.instruct.InstructionDetails</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../net/sf/saxon/trace/InstructionInfo.html">InstructionInfo</A>, javax.xml.transform.SourceLocator</DD> </DL> <HR> <DL> <DT>public final class <B>InstructionDetails</B><DT>extends java.lang.Object<DT>implements javax.xml.transform.SourceLocator, <A HREF="../../../../net/sf/saxon/trace/InstructionInfo.html">InstructionInfo</A></DL> <P> Details about an instruction, used when reporting errors and when tracing <P> <P> <HR> <P> <!-- ======== NESTED CLASS SUMMARY ======== --> <!-- =========== FIELD SUMMARY =========== --> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../net/sf/saxon/instruct/InstructionDetails.html#InstructionDetails()">InstructionDetails</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Method Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/instruct/InstructionDetails.html#getColumnNumber()">getColumnNumber</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the column number identifying the position of the instruction.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/instruct/InstructionDetails.html#getInstructionName()">getInstructionName</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the name of the instruction</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/instruct/InstructionDetails.html#getLineNumber()">getLineNumber</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the line number of the instruction within its module</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;java.util.HashMap</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/instruct/InstructionDetails.html#getProperties()">getProperties</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get all the properties of the instruction</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;java.lang.Object</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/instruct/InstructionDetails.html#getProperty(java.lang.String)">getProperty</A></B>(java.lang.String&nbsp;name)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a named property of the instruction</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/instruct/InstructionDetails.html#getPublicId()">getPublicId</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the public ID of the module containing the instruction.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/instruct/InstructionDetails.html#getSystemId()">getSystemId</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the URI of the module containing the instruction</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/instruct/InstructionDetails.html#setInstructionName(java.lang.String)">setInstructionName</A></B>(java.lang.String&nbsp;instructionName)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the name of the instruction</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/instruct/InstructionDetails.html#setLineNumber(int)">setLineNumber</A></B>(int&nbsp;lineNumber)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the line number of the instruction within the module</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/instruct/InstructionDetails.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A></B>(java.lang.String&nbsp;name, java.lang.Object&nbsp;value)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a named property of the instruction</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/instruct/InstructionDetails.html#setSystemId(java.lang.String)">setSystemId</A></B>(java.lang.String&nbsp;systemId)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the URI of the module containing the instruction</TD> </TR> </TABLE> &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from class java.lang.Object</B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> &nbsp; <P> <!-- ============ FIELD DETAIL =========== --> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TD> </TR> </TABLE> <A NAME="InstructionDetails()"><!-- --></A><H3> InstructionDetails</H3> <PRE> public <B>InstructionDetails</B>()</PRE> <DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT></TD> </TR> </TABLE> <A NAME="setSystemId(java.lang.String)"><!-- --></A><H3> setSystemId</H3> <PRE> public void <B>setSystemId</B>(java.lang.String&nbsp;systemId)</PRE> <DL> <DD>Set the URI of the module containing the instruction <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>systemId</CODE> - the module's URI</DL> </DD> </DL> <HR> <A NAME="getSystemId()"><!-- --></A><H3> getSystemId</H3> <PRE> public java.lang.String <B>getSystemId</B>()</PRE> <DL> <DD>Get the URI of the module containing the instruction <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>getSystemId</CODE> in interface <CODE>javax.xml.transform.SourceLocator</CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the module's URI</DL> </DD> </DL> <HR> <A NAME="setLineNumber(int)"><!-- --></A><H3> setLineNumber</H3> <PRE> public void <B>setLineNumber</B>(int&nbsp;lineNumber)</PRE> <DL> <DD>Set the line number of the instruction within the module <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>lineNumber</CODE> - the line number</DL> </DD> </DL> <HR> <A NAME="getLineNumber()"><!-- --></A><H3> getLineNumber</H3> <PRE> public int <B>getLineNumber</B>()</PRE> <DL> <DD>Get the line number of the instruction within its module <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>getLineNumber</CODE> in interface <CODE>javax.xml.transform.SourceLocator</CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the line number</DL> </DD> </DL> <HR> <A NAME="setInstructionName(java.lang.String)"><!-- --></A><H3> setInstructionName</H3> <PRE> public void <B>setInstructionName</B>(java.lang.String&nbsp;instructionName)</PRE> <DL> <DD>Set the name of the instruction <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>instructionName</CODE> - the name of the instruction. This is a conventional name, it has the form of a QName but the prefix chosen is arbitrary</DL> </DD> </DL> <HR> <A NAME="getInstructionName()"><!-- --></A><H3> getInstructionName</H3> <PRE> public java.lang.String <B>getInstructionName</B>()</PRE> <DL> <DD>Get the name of the instruction <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/trace/InstructionInfo.html#getInstructionName()">getInstructionName</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/trace/InstructionInfo.html">InstructionInfo</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the name of the instruction. This is a conventional name, it has the form of a QName but the prefix chosen is arbitrary</DL> </DD> </DL> <HR> <A NAME="setProperty(java.lang.String, java.lang.Object)"><!-- --></A><H3> setProperty</H3> <PRE> public void <B>setProperty</B>(java.lang.String&nbsp;name, java.lang.Object&nbsp;value)</PRE> <DL> <DD>Set a named property of the instruction <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getProperty(java.lang.String)"><!-- --></A><H3> getProperty</H3> <PRE> public java.lang.Object <B>getProperty</B>(java.lang.String&nbsp;name)</PRE> <DL> <DD>Get a named property of the instruction <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/trace/InstructionInfo.html#getProperty(java.lang.String)">getProperty</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/trace/InstructionInfo.html">InstructionInfo</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the required property <DT><B>Returns:</B><DD>The value of the requested property, or null if the property is not available</DL> </DD> </DL> <HR> <A NAME="getPublicId()"><!-- --></A><H3> getPublicId</H3> <PRE> public java.lang.String <B>getPublicId</B>()</PRE> <DL> <DD>Get the public ID of the module containing the instruction. This method is provided to satisfy the SourceLocator interface. However, the public ID is not maintained by Saxon, and the method always returns null <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>getPublicId</CODE> in interface <CODE>javax.xml.transform.SourceLocator</CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>null</DL> </DD> </DL> <HR> <A NAME="getColumnNumber()"><!-- --></A><H3> getColumnNumber</H3> <PRE> public int <B>getColumnNumber</B>()</PRE> <DL> <DD>Get the column number identifying the position of the instruction. This method is provided to satisfy the SourceLocator interface. However, the column number is not maintained by Saxon, and the method always returns -1 <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>getColumnNumber</CODE> in interface <CODE>javax.xml.transform.SourceLocator</CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>-1</DL> </DD> </DL> <HR> <A NAME="getProperties()"><!-- --></A><H3> getProperties</H3> <PRE> public java.util.HashMap <B>getProperties</B>()</PRE> <DL> <DD>Get all the properties of the instruction <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/trace/InstructionInfo.html#getProperties()">getProperties</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/trace/InstructionInfo.html">InstructionInfo</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>a HashMap containing all the properties of this instruction.</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../../net/sf/saxon/instruct/Instruction.html"><B>PREV CLASS</B></A>&nbsp; &nbsp;<A HREF="../../../../net/sf/saxon/instruct/Message.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="InstructionDetails.html" TARGET="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp; <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> </BODY> </HTML>
html
package idgen type IDGenerator interface { Generate() (int64, error) } var generator IDGenerator func InitIDGen(g IDGenerator) { generator = g } func GenerateID() (int64, error) { return generator.Generate() }
go
package com.dynatrace.diagnostics.codelink.ui.propertypage; import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.IAdaptable; import org.eclipse.jface.preference.PreferencePage; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.ui.dialogs.PropertyPage; import com.dynatrace.diagnostics.codelink.logging.LogHelper; import com.dynatrace.diagnostics.eclipseintegration.Activator; import com.dynatrace.diagnostics.eclipseintegration.Constants; import com.dynatrace.diagnostics.eclipseintegration.StringResources; /** * * @author markus.poechtrager */ public class DTDPropertyPage extends PropertyPage { private Button check; public DTDPropertyPage() { super(); } /** * @see PreferencePage#createContents(Composite) */ protected Control createContents(Composite parent) { Composite main = new Composite(parent, SWT.NONE); GridLayout gl = new GridLayout(2, false); main.setLayout(gl); check = new Button(main, SWT.CHECK); check.setText(StringResources.javaproject_properties_page1_enableChk); // init with stored data // should be placed in a hook method that gets called when page is about to get displayed init(); return main; } private void init() { try { IAdaptable elem = getElement(); IProject p = (IProject) elem.getAdapter(IProject.class); // get value from persistent property stored per project in workspace String marker = p.getPersistentProperty(Constants.PROP_PROJECT_MARKER); if (marker != null) { boolean isEnabled = Boolean.valueOf(marker).booleanValue(); check.setSelection(isEnabled); } else { performDefaults(); } } catch (Exception e) { LogHelper.logError("Error initializing DTDPropertyPage, performingDefaults() [ErrorLocation-84]"); performDefaults(); } } protected void performDefaults() { check.setSelection(Activator.getDefault().getPreferenceStore() .getDefaultBoolean(Constants.PROP_PROJECT_DEFAULT_MARKER_VALUE)); } public boolean performOk() { try { IAdaptable elem = getElement(); IProject project = (IProject) elem.getAdapter(IProject.class); // store setting per project project.setPersistentProperty(Constants.PROP_PROJECT_MARKER, Boolean .toString(check.getSelection())); } catch (Exception e) { LogHelper.logError("Error on DTDPropertyPage.performOK [ErrorLocation-85]", e); return false; } return true; } }
java
<reponame>hsdllcw/everyonepiano-music-database<filename>流行/My Strange Addiction-Billie Eilish/info.json {"title": "My Strange Addiction-Billie Eilish", "author": "<NAME>", "musicType": "流行", "musicNo": "0010315"}
json
<reponame>yeze322/botbuilder-dotnet {"Sections":[{"Errors":[],"SectionType":"newEntitySection","Id":"newEntitySection_a1","Body":"","Name":"a1","Type":"ml","Roles":"r1","ListBody":[],"Range":{"Start":{"Line":2,"Character":0},"End":{"Line":3,"Character":4}}},{"Errors":[],"SectionType":"newEntitySection","Id":"newEntitySection_a1","Body":"","Name":"a1","Type":"regex","Roles":"r2","ListBody":[],"Range":{"Start":{"Line":3,"Character":4},"End":{"Line":3,"Character":17}}}],"Content":"\n @ml a1 r1\n @regex a1 r2\n","Errors":[]}
json
Cuttack: Even as many Odisha train accident survivors are recovering from physical injuries, around 40 of the 105 patients admitted in SCB Medical College and Hospital in Cuttack are showing tendency of post-traumatic stress disorder (PTSD), doctors said Saturday. Considering the mental health condition of the survivors, the hospital has started counselling of all patients, Dr Jashobanta Mahapatra, associate professor of Clinical Psychology Department, said. Dr Mahapatra said it was natural for such an accident to have severe impact on the minds of the survivors. “Many were found to be severely stressed, fearful, panicked at times and silent. We are counselling them and talking to them along with their family members,” he said. Dr Mahapatra said the hospital has set up four teams to counsel the survivors. “Each team comprises a psychiatrist, a psychologist, a social worker and one or two members of the patient’s family,” he said. The survivors often wake up from their sleep after dreaming about the accident, a nurse in the surgery department said, adding that the attendants keep constant vigil on all patients. A 23-year-old man, whose both hands and legs have been broken in Odisha train accident, fails to sleeps during the day or at night. “He fears to close his eyes as scenes of the accident flash before him,” a doctor said, adding that the man was rescued from under a seat where he was for three hours. Another young man, who lost his close friend, often wakes up from sleep calling out his friend’s name, another doctor said, adding that some patients are just staring at the wall. Of the 105 patients being treated at the hospital, three have completely lost their legs, while others have broken their legs and limbs and some have sustained injury on their spinal cord. “These patients cry on seeing their condition while some other laugh hysterically,” another doctor said, adding that these symptoms can be cured with time. Claiming that all the patients are stable, Dr Mahapatra said he is optimistic that each survivor will recover from the mental stress, while adding that some other sensitive patients may require some more time than others.
english
<reponame>madsportslab/gostats package main import ( "database/sql" "encoding/json" "log" "net/http" "github.com/gorilla/mux" ) func getLeagueAdmins(league string) []LeagueAdmin { rows, err := config.Database.Query( LeagueAdminGetAll, league, ) if err != nil { log.Println("getLeagueAdmins: ", err) return nil } defer rows.Close() admins := []LeagueAdmin{} for rows.Next() { la := LeagueAdmin{} err := rows.Scan(&la.UserID, &la.Email, &la.LeagueID) if err == sql.ErrNoRows || err != nil { log.Println("getLeagueAdmins: ", err) return nil } admins = append(admins, la) } return admins } // getLeagueAdmins func addLeagueAdmin(league string, email string) bool { l := getLeague(league) u := getUserByEmail(email) if l == nil || u == nil { return false } else { row := config.Database.QueryRow( LeagueAdminGet, league, u.ID, ) la := LeagueAdmin{} err := row.Scan(&la.LeagueID, &la.UserID) if err != sql.ErrNoRows { log.Println(err) return false } _, err2 := config.Database.Exec( LeagueAdminCreate, league, u.ID, ) if err2 != nil { log.Println("addLeagueAdmin: ", err2) return false } return true } } // addLeagueAdmin func leagueAdminHandler(w http.ResponseWriter, r *http.Request) { u := authenticate(r) vars := mux.Vars(r) league := vars["league"] if !isLeagueAdmin(u, league) { w.WriteHeader(http.StatusForbidden) return } switch r.Method { case http.MethodPost: email := r.FormValue("email") if email == "" { w.WriteHeader(http.StatusConflict) return } if !addLeagueAdmin(league, email) { w.WriteHeader(http.StatusConflict) return } case http.MethodPut: case http.MethodDelete: // remove administrator admin := vars["admin"] if admin == u.ID { w.WriteHeader(http.StatusForbidden) return } _, err := config.Database.Exec( LeagueAdminDelete, admin, league, ) if err != nil { w.WriteHeader(http.StatusConflict) } case http.MethodGet: // check if administrator admins := getLeagueAdmins(league) j, _ := json.Marshal(admins) w.Write(j) default: w.WriteHeader(http.StatusMethodNotAllowed) } } // leagueAdminHandler
go
.spinner-wrapper{ width: 100%; height: 100vh; z-index: 9999; position: fixed; } .spinner-wrapper .backdrop{ background: #000; width: 100%; height: 100vh; } .spinner-wrapper .spinner{ background: #efefef; width: 100%; height: 100vh; opacity: 0.6; } .spinner-wrapper .ant-spin.ant-spin-lg.ant-spin-spinning{ position: absolute; top: 40%; left: 50%; } .spinner-wrapper .ant-spin-dot i{ background-color: #d8e2ea; } .spinner-wrapper .ant-spin-lg .ant-spin-dot i{ width: 20px; height: 20px; } .spinner-wrapper .ant-spin-lg .ant-spin-dot{ width: 45px; height: 45px; }
css
Triple H has not shied away from getting people back in WWE. On RAW this week, The King of Kings brought back another wrestler released under the old regime, Mia Yim. Former AEW star Big Swole has reacted to the return. Finn Balor, Karl Anderson, and Luke Gallows have been feuding against Judgment Day for a while now. The latter team comprises Dominik Mysterio, Finn Balor, Damian Priest, and Rhea Ripley. To even the odds against their opponents, The O. C. brought out Mia Yim on RAW. The former NXT star attacked Rhea Ripley with a kendo stick while Gallows sent Priest over the announce table. Meanwhile, in the ring, Balor and Styles exchanged blows before the latter delivered the Styles Clash. The O. C. stood tall to end the segment. Former AEW star Big Swole reacted to Mia Tim’s return on Twitter. Check it out below: Mia Yim joins an ever-growing list of wrestlers who were let go by Vince McMahon but returned to WWE under Triple H. Unsurprisingly, many of them are stars who worked with The King of Kings during his time as the head booker of NXT. Who else has Triple H brought back to WWE? Vince McMahon released many people every year. However, some decisions, like former world champions Bray Wyatt and Braun Strowman, were shocking. Meanwhile, the likes of Dakota Kai and Hit Row never got a proper chance to shine on the main roster. These are just a few people to have returned to WWE over the past few months. Other returns include Johnny Gargano, Candice LeRae, the Good Brothers, Karrion Kross, and Scarlett. While not all returns have been spectacular, they have definitely strengthened a roster that grew too thin, especially the women's division. Adding the likes of Dakota Kai, IYO SKY, Candice LeRae, and Mia Yim has bolstered the division nicely. It will be interesting to see how Triple H uses the talent in the coming weeks leading up to the Road to WrestleMania. Are you happy to see Mia Yim back in WWE? Sound off in the comments below. What's next for The Bloodline?
english
In order to make Punjab a safe and secure state as per the vision of Chief Minister Bhagwant Mann, Director General of Police (DGP) Punjab Gaurav Yadav on Monday reviewed the ground-level law and order situation in the state. Punjab DGP Gaurav Yadav on Monday held a virtual meeting with police personnel of the state to review the ground-level law and order situation of the state. Addressing all eight Range IGs/DIGs, 28 CPs/SSPs, 117 Deputy Superintendents of Police (DSPs), and 413 Station House Officers (SHOs) in Punjab, DGP asked the officials to ensure effective action against drugs and gangsters of the state. He was accompanied by Inspector General of Police (IGP) Headquarters Sukhchain Singh Gill. Following Chief Minister Bhagwant Mann led Punjab Government's zero tolerance against terrorists and gangsters, he asked the District Heads of Police to use effective law against anti-social elements and also invoke the Unlawful Activities (Prevention) Act (UAPA) in terror activities. He also asked the officials to identify the drug hotspots in every police station area and give a special focus on pharmaceutical drugs to root out the menace from the state. He warned that the concerned SHO will be held responsible for any leniency in handling drug cases. Emphasizing the need to bring professionalism into policing, the DGP asked field officers to register even minor cases, take preventive actions open history sheets and solve cases using technical inputs and keep track of bailed-out criminals. He asked all the Police Personnel on-field duties to be more accessible to the common public and build friendly relations with citizens by picking up their calls, holding public meetings, and by involving themselves in youth clubs. ( With inputs from ANI )
english
<gh_stars>0 [ { "DeniedAlternatives": [], "Files": { "items/generic/crafting/chemlab/fu_mulch.item": [ "/description" ] }, "Texts": { "Chs": "非常适合用作水培托盘中的植物的肥料。\n^green;+^white;1.25^green;作物成长速度^reset;& ^cyan;-^white;1^cyan;种子消耗^reset;", "Eng": "Great for fertilizing a hydroponics tray.\n^green;Growth Rate +^white;1.25 ^gray; & ^cyan;-^white;1 ^cyan;seed use^reset;" } }, { "DeniedAlternatives": [], "Files": { "items/generic/crafting/chemlab/fu_mulch.item": [ "/shortdescription" ] }, "Texts": { "Chs": "护根", "Eng": "Mulch" } } ]
json
<gh_stars>100-1000 { "title":"Automobiles, Sessions, and POST-Redirect", "description":"In this assignment you will expand a web based application to track data about automobiles and store the data in a MySQL database. All interactions will follow the POST-Redirect pattern where appropriate.", "grading":"Don't take off points for little mistakes. If they seem to have done the assignment give them full credit. Feel free to make suggestions if there are small mistakes. Please keep your comments positive and useful. If you do not take grading seriously, the instructors may delete your response and you will lose points.", "assignment" : "http://www.wa4e.com/assn/autosess/", "solution" : "http://www.wa4e.com/solutions/autosess/", "parts":[ { "title":"A screen shot (including the URL) of your login.php rejecting an account without an at-sign (@). You must also include the developer console network tab showing both the POST and GET.", "type":"image" }, { "title":"A screen shot of your error log showing correct messages for both a successful and failed login attempt.", "type":"image" }, { "title":"A screen shot (with URL) of your add.php showing a data validation error. You must also include the developer console network tab showing both the POST and GET.", "type":"image" }, { "title":"A screen shot (including the URL) of your view.php with three vehicles in the list. At least one of the vehicles must have '&lt;b&gt;' in its title and it must be shown properly (i.e. the title should not be bold)", "type":"image" }, { "title":"Source code of login.php", "type":"code", "language":"php" }, { "title":"Source code of view.php", "type":"code", "language":"php" }, { "title":"Source code of add.php", "type":"code", "language":"php" } ], "totalpoints":10, "instructorpoints":5, "peerpoints":3, "assesspoints":1, "minassess":2, "maxassess":5 }
json
<p align="center"> <img alt="sysbox" src="./docs/figures/sysbox-ce-header.png"/> </p> <p align="center"> <a href="https://github.com/nestybox/sysbox/blob/master/LICENSE"><img alt="GitHub license" src="https://img.shields.io/github/license/nestybox/sysbox"></a> <a href="https://travis-ci.com/nestybox/sysbox"> <img src="https://img.shields.io/circleci/project/github/badges/shields/master" alt="build status"></a> <a href="https://nestybox-support.slack.com/join/shared_invite/<KEY>"> <img src="https://img.shields.io/badge/chat-on%20slack-FF3386"></a> </p> ## Introduction **Sysbox** is an open-source container runtime (aka runc), originally developed by [Nestybox](https://www.nestybox.com), that enhances containers in two key ways: * **Improves container isolation:** Sysbox always enables the Linux user-namespace on containers (i.e., root user in the container has zero privileges on the host), hides host info inside the container, locks the container's initial mounts, and more. * **Enables containers to act as VMs**: with Sysbox, containers become capable of running most workloads that run in physical hosts or VMs, including systemd, Docker, Kubernetes, and more, seamlessly and with proper isolation (no privileged containers, no complex images, no tricky entrypoints, no special volume mounts, etc.) Sysbox is an OCI-based "runc", meaning that you typically use Docker and Kubernetes to deploy these enhanced containers (in fact Sysbox works under the covers, you don't interact with it directly). Thus there is no need to learn new tools or modify your existing container workflows to take advantage of Sysbox. Just install it and point your container manager / orchestrator to it. For example, this simple Docker command creates a container with Sysbox; you get a well isolated container capable of seamlessly running most software that runs in a VM (e.g., systemd, Docker, etc): $ docker run --runtime=sysbox-runc -it any_image Sysbox was forked from the excellent [OCI runc][oci-runc] in early 2019, and has undergone significant changes since then. It's written in Go, and it is currently composed of three components: sysbox-runc, sysbox-fs, and sysbox-mgr. More on Sysbox's design can be found in the [Sysbox user guide](docs/user-guide/design.md). ## Demo Videos - ["VM-like" containers with Docker + Sysbox](https://asciinema.org/a/kkTmOxl8DhEZiM2fLZNFlYzbo?speed=2) - [Rootless Kubernetes pods with Sysbox](https://asciinema.org/a/401488?speed=1.5) ## Contents * [Motivation](#motivation) * [License](#license) * [Audience](#audience) * [Sysbox Features](#sysbox-features) * [System Containers](#system-containers) * [Host Requirements](#host-requirements) * [Installing Sysbox](#installing-sysbox) * [Using Sysbox](#using-sysbox) * [Documentation](#documentation) * [Performance](#performance) * [Under the Covers](#under-the-covers) * [Comparison to related technologies](#comparison-to-related-technologies) * [Contributing](#contributing) * [Troubleshooting & Support](#troubleshooting--support) * [Uninstallation](#uninstallation) * [Roadmap](#roadmap) * [Relationship to Nestybox](#relationship-to-nestybox) * [Contact](#contact) * [Thank You](#thank-you) ## Motivation Sysbox solves problems such as: * Enhancing the isolation of containerized microservices (root in the container maps to an uprivileged user on the host). * Enabling a highly capable root user inside the container without compromising host security. * Securing CI/CD pipelines by enabling Docker-in-Docker or Kubernetes-in-Docker without insecure privileged containers. * Enabling the use of containers as "VM-like" environments for development, local testing, learning, etc., with strong isolation and the ability to run systemd, Docker, and even kubernetes inside the container. * Running legacy apps inside containers (instead of less efficient VMs). * Replacing VMs with an easier, faster, more efficient, and more portable container-based alternative, one that can be deployed across cloud environments easily. * Partitioning bare-metal hosts into multiple isolated compute environments with 2X the density of VMs (i.e., deploy twice as many VM-like containers as VMs on the same hardware at the same performance). * Partitioning cloud instances (e.g., EC2, GCP, etc.) into multiple isolated compute environments without resorting to expensive nested virtualization. ## License Sysbox is an open-source project, licensed under the Apache License, Version 2.0. See the [LICENSE](LICENSE) file for details. ## Audience The Sysbox project is intended for anyone looking to experiment, invent, learn, and build systems using system containers. It's cutting-edge OS virtualization, and contributions are welcomed. The Sysbox project is **not** meant for people looking for a commercially supported solution. For such a solution, use the **Sysbox Enterprise Edition (Sysbox-EE)**. Sysbox-EE uses Sysbox at its core, but complements it with enterprise-level features for improved security, functionality, and performance, as well as Nestybox support (see next section). It has a 30-day free trial and a paid subscription after that. For more info on Sysbox-EE, refer to the [Nestybox website](https://www.nestybox.com) and the [Sysbox-EE repo](https://github.com/nestybox/sysbox-ee). ## Sysbox Features The table below summarizes the key features of the Sysbox container runtime. It also provides a comparison between the Sysbox Community Edition (i.e., this repo) and the Sysbox Enterprise Edition (see prior section). <p align="center"> <img alt="sysbox" src="./docs/figures/sysbox-features.png" width="1000" /> </p> (\*) For pricing purposes, a "host" is a computer (bare-metal or virtual-machine) with up to 16 CPU cores (32 hyper threads). Per-core pricing at **$5 per-core per-month** is also available for hosts with < 8 cores. Licensing is per-year. Volume discounts available for 50+ per-host licenses or 350+ per-core licenses. More on the features [here](docs/user-guide/features.md). If you have questions, you can reach us [here](#contact). ## System Containers We call the containers deployed by Sysbox **system containers**, to highlight the fact that they can run not just micro-services (as regular containers do), but also system software such as Docker, Kubernetes, Systemd, inner containers, etc. More on system containers [here](docs/user-guide/concepts.md#system-container). ## Host Requirements The Sysbox host must meet the following requirements: * It must be running one of the [supported Linux distros](docs/distro-compat.md). * We recommend a minimum of 4 CPUs (e.g., 2 cores with 2 hyperthreads) and 4GB of RAM. Though this is not a hard requirement, smaller configurations may slow down Sysbox. ## Installing Sysbox The method of installation depends on the environment where Sysbox will be installed: * To install Sysbox on a Kubernetes cluster, use the [sysbox-deploy-k8s daemonset](docs/user-guide/install-k8s.md). * Otherwise, use the [Sysbox package](docs/user-guide/install-package.md) for your distro. * Alternatively, if a package for your distro is not yet available, or if you want to get the latest changes from upstream, you can [build and install Sysbox from source](docs/developers-guide/README.md). Before installing, ensure your host meets the [host requirements](#host-requirements) listed in the prior section. ## Using Sysbox Once Sysbox is installed, you create a container using your container manager or orchestrator (e.g., Docker or Kubernetes) and an image of your choice. Docker command example: ```console $ docker run --runtime=sysbox-runc --rm -it --hostname my_cont registry.nestybox.com/nestybox/ubuntu-bionic-systemd-docker root@my_cont:/# ``` Kubernetes pod spec example: ```yaml apiVersion: v1 kind: Pod metadata: name: ubu-bio-systemd-docker annotations: io.kubernetes.cri-o.userns-mode: "auto:size=65536" spec: runtimeClassName: sysbox-runc containers: - name: ubu-bio-systemd-docker image: registry.nestybox.com/nestybox/ubuntu-bionic-systemd-docker command: ["/sbin/init"] restartPolicy: Never ``` You can choose whatever container image you want, Sysbox places no requirements on the image. The [Sysbox User Guide](docs/user-guide/deploy.md) has more info on this, and the [Sysbox Quickstart Guide](docs/quickstart/README.md) and has many usage examples. You should start there to get familiarized with the use cases enabled by Sysbox. ## Documentation We strive to provide good documentation; it's a key component of the Sysbox project. We have several documents to help you get started and get the best out of Sysbox. * [Sysbox Quick Start Guide](docs/quickstart/README.md) * Provides many examples for using Sysbox. New users should start here. * [Sysbox User Guide](docs/user-guide/README.md) * Provides more detailed information on Sysbox installation, features and design. * [Sysbox Distro Compatibility Doc](docs/distro-compat.md) * Distro compatibility requirements. * [Nestybox blog site](https://blog.nestybox.com/) * Articles on using Sysbox to solve real-life problems. ## Performance Sysbox is fast and efficient, as described in this [Nestybox blog post](https://blog.nestybox.com/2020/09/23/perf-comparison.html). The containers created by Sysbox have similar performance to those created by the OCI runc (the default runtime for Docker and Kubernetes). Even containers deployed inside the system containers have excellent performance, thought there is a slight overhead for network IO (as expected since packets emitted by inner containers go through an additional network interface / bridge inside the system container). Now, if you use Sysbox to deploy system containers that replace VMs, then the performance and efficiency gains are significant: you can deploy 2X as many system containers as VMs on the same server and get the same performance, and do this with a fraction of the memory and storage consumption. The blog post referenced above has more on this. ## Under the Covers Sysbox uses many OS-virtualization features of the Linux kernel and complements these with OS-virtualization techniques implemented in user-space. These include using all Linux namespaces (in particular the user-namespace), partial virtualization of procfs and sysfs, selective syscall trapping, and more. The [Sysbox User Guide](docs/user-guide/README.md) has more info on this. ### Sysbox does not use hardware virtualization Though the containers generated by Sysbox resemble virtual machines in some ways (e.g., you can run as root, run multiple services, and deploy Docker and K8s inside), Sysbox does **not** use hardware virtualization. It's purely an OS-virtualization technology meant to create containers that can run applications as well as system-level software, easily and securely. This makes the containers created by Sysbox fast, efficient, and portable. Isolation wise, it's fair to say that they provide stronger isolation than regular Docker containers (by virtue of using the Linux user-namespace), but weaker isolation than VMs (by sharing the Linux kernel among containers). ## Comparison to related technologies Sysbox is pretty unique: it is (to the best of our knowledge) the only OCI-based container runtime that allows Docker and Kubernetes to deploy "VM-like" containers capable of running systemd, Docker, K8s, etc., with ease and strong isolation from the underlying host (i.e., no privileged containers). See this [blog post](https://blog.nestybox.com/2020/10/06/related-tech-comparison.html) for a high-level comparison between Sysbox and related technologies such as LXD, K8s.io KinD, Ignite, Kata Containers, rootless Docker, and more. ## Contributing We welcome contributions to Sysbox, whether they are small documentation changes, bug fixes, or feature additions. Please see the [contribution guidelines](CONTRIBUTING.md) and [developer's guide](docs/developers-guide/README.md) for more info. ## Troubleshooting & Support Refer to the [Troubleshooting document](docs/user-guide/troubleshoot.md) and to the [issues](https://github.com/nestybox/sysbox/issues) for help. Reach us at our [slack channel][slack] for any questions. ## Uninstallation Prior to uninstalling Sysbox, make sure all containers deployed with it are stopped and removed. The method of uninstallation depends on the method used to install Sysbox: * To uninstall Sysbox on a Kubernetes cluster, follow [these instructions](docs/user-guide/install-k8s.md#uninstallation). * Otherwise, to uninstall the Sysbox package, follow [these instructions](docs/user-guide/install-package.md#uninstalling-sysbox). * If Sysbox was built and installed from source, follow [these instructions](docs/developers-guide/build.md#cleanup--uninstall). ## Roadmap The following is a list of features in the Sysbox roadmap. We list these here so that our users can get a better idea of where we are going and can give us feedback on which of these they like best (or least). Here is a short list; the Sysbox issue tracker has many more. * Support for more Linux distros. * More improvements to procfs and sysfs virtualization. * Continued improvements to container isolation. * Exposing host devices inside system containers with proper permissions. ## Relationship to Nestybox Sysbox was initially developed by [Nestybox](https://www.nestybox.com), and Nestybox is the main sponsor of the Sysbox open-source project. Having said this, we encourage participation from the community to help evolve and improve it, with the goal of increasing the use cases and benefits it enables. External maintainers and contributors are welcomed. Nestybox uses Sysbox as the core of it's Sysbox enterprise product (Sysbox-EE), which consists of Sysbox plus proprietary features meant for enterprise use. To ensure synergy between the Sysbox project and commercial entities such as Nestybox, we use the following criteria when considering adding functionality to Sysbox: Any features that mainly benefit individual practitioners are made part of the Sysbox open-source project. Any features that mainly address enterprise-level needs are reserved for the Sysbox Enterprise Edition. The Sysbox project maintainers will make this determination on a feature by feature basis, with total transparency. The goal is to create a balanced approach that enables the Sysbox open-source community to benefit and thrive while creating opportunities for Nestybox to create a healthy viable business around the technology. ## Contact Slack: [Nestybox Slack Workspace][slack] Email: <EMAIL> We are available from Monday-Friday, 9am-5pm Pacific Time. ## Thank You We thank you **very much** for using and/or contributing to Sysbox. We hope you find it interesting and that it helps you use containers in new and more powerful ways. [slack]: https://nestybox-support.slack.com/join/shared_invite/enQtOTA0NDQwMTkzMjg2LTAxNGJjYTU2ZmJkY<KEY> [perf-blog]: https://blog.nestybox.com/2020/09/23/perf-comparison.html [oci-runc]: https://github.com/opencontainers/runc
markdown
After announcing his intention to enter politics on December 31, actor Rajinikanth on Tuesday said Tamil Nadu had historically been a place of political change. "Tamil Nadu has historically been a place of major political events, including Mahatma Gandhiji discarding his attire and opting for only a loin cloth. I too want to create a political revolution. If there is a change now, future generations will live better," the actor told a few journalists in Chennai. Mr. Rajinikanth recalled that he had worked as a proof-reader in a Kannada magazine for a short time after failing in SSLC exams, Rajinikanth said: "I am a very shy person. I am not used to all this. I will speak with the media at an appropriate time. " On January 1, Rajinikanth announced an online membership drive to register unregistered fans and those who are interested to join his 'mandram'. In just a day, the website reportedly received 1 million hits and more than 3 lakh registrations. "There were around 50,000 clubs each with at least 25 people in 1993-1994, when we stopped registrations. There are thousands of unregistered fan clubs that have sprung up since then. We want to register them too," Sudakar, who is overseeing the membership drive, said.
english
- Adam, a 14-year-old boy travels across the country to meet a series of men who could be his father after finding a letter with a list of names and addresses. - John Alexander is a man whose roots run strong and deep. His presence on the land is as much a part of Montana as the mountains themselves against the wide, open sky. But for the first time in his life, John is realizing that not everything is as set in stone as he previously believed. Facing the potential loss of his land and his livelihood, John realizes that he's going to have to make a deal that may as well be akin to selling his soul to the devil. He's going to let Hollywood come make a movie on his land. Far removed from the mountains of Montana, Fabian is a rising star in the entertainment industry. A director always balanced on the edge of the latest trends, he's known as a creative visionary and he has the big personality to go with it. He is convinced that his next picture is going to be his breakthrough and nothing is going to deter him from that vision. Not even an old crusty rancher. When John and Fabian meet, it's less business meeting and more rodeo showdown between a rider and a bull. As each of them tries to figure out how to get what they want without compromising their own values, they have no idea that their worlds are both about to fall apart. The only question now is where the pieces are going to fall and who is going to put them back together. - A dying man hires professional actors to impersonate his real life family ,with chaotic results, in this quirky comedy drama.
english
import { css, Size, Theme } from 'wiloke-react-core'; const controlSizeMapping: Record<Size, number> = { large: 36, medium: 30, small: 24, 'extra-small': 18, }; export const container = (disabled: boolean, size: Size) => css` font-size: ${size === 'extra-small' ? 12 : 14}px; cursor: ${disabled ? 'not-allowed' : 'pointer'}; opacity: ${disabled ? 0.4 : 1}; user-select: none; display: flex; align-items: center; `; export const control = (size: Size) => css` position: relative; top: 0; left: 0; display: flex; overflow: hidden; justify-content: center; align-items: center; width: ${controlSizeMapping[size]}px; height: ${controlSizeMapping[size]}px; `; export const icon = css` position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; `; export const bgIcon = css` position: absolute; top: 0; right: 0; bottom: 0; left: 0; `; export const children = ({ colors }: Theme) => css` margin-left: 5px; color: ${colors.gray7}; font-size: 14px; line-height: 16px; font-weight: 400; `; export const innerWrap = css` position: relative; display: inline-block; vertical-align: middle; cursor: pointer; input { cursor: pointer; } `; export const input = css` position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; opacity: 0; `;
typescript
Boy wizard Harry Potter is headed to streaming television in a new series based on the beloved books by author J. K. Rowling. Warner Bros Discovery (WBD. O) announced the series on Wednesday as part of the company's plans for its Max streaming service, which combines HBO Max with unscripted programming from Discovery. The seven Harry Potter books have sold more than 600 million copies worldwide. They were adapted into blockbuster movies starring Daniel Radcliffe that grossed $7. 7 billion globally from 2001 to 2011. The upcoming series will feature a new cast, and each season will be devoted to one of Rowling's books. The plan is for the series to unfold over 10 years. Rowling will serve as an executive producer on the show. "I'm looking forward to being part of this new adaptation which will allow for a degree of depth and detail only afforded by a long-form television series," Rowling said in a statement. Rowling has stirred controversy in recent years for comments that were criticized as trans-phobic. Harry Potter fan blogs and actors including Radcliffe objected to her remarks. Other new shows coming to Max include a new "Game of Thrones" prequel, titled "A Knight of the Seven Kingdoms: The Hedge Knight," with author George R. R. Martin serving as executive producer. The series will be set 100 years before the events of "Game of Thrones," a time when the Targaryen line holds the Iron Throne. The story will focus on a "young, naive but courageous knight" and his squire, the company said. Warner Bros Discovery did not announce release dates for either show.
english
|God dag! |Korleis går det? |Vi sjåast! |Ha det så lenge! Hvorfor bør du lære japansk? Å lære japansk kan vere svært interessant. Det er eit språk fylt med unike karakterar og fonetikk, noko som gir studentar både utfordringar og tilfredsstillelse. I tillegg er japansk eit vakkert språk med mange uttrykk som ikkje finst i andre språk. Vidare kan kjennskap til japansk åpne opp for nye jobbmuligheter. Japan er ein økonomisk supermakt med mange multinasjonale selskap. Kunnskap om japansk kan dermed gi deg ein fordel i karrieren og i næringslivet. Japansk for nybegynnere er en av over 50 gratis språkpakker som du kan få fra oss. ’50LANGUAGES’ er den effektive måten å lære japansk på nettet og gratis. Vårt undervisningsmateriell for japanskkurset er tilgjengelig både online og som iPhone- og Android-apper. Kjennskap til japansk gir også ei djupare forståing av japansk kultur. Frå anime og manga til kampsport og litteratur, Japan har ein svært rik og variert kultur. Ved å lære japansk, kan du nyte denne kulturen på det opprinnelige språket. Om du planlegger å reise til Japan, vil kunnskap om japansk vere svært nyttig. Du vil kunne kommunisere med lokale innbyggjarar, lese skilt, og nyte mat og attraksjonar på ein meir autentisk måte. Denne erfaringa vil gi deg minner for livet. Med dette kurset kan du lære japansk selvstendig - uten lærer og uten språkskole! Leksjonene er tydelig strukturerte og vil hjelpe deg å nå dine mål. Å lære japansk kan også forbetre dine mentale ferdigheiter. Forsking viser at det å lære eit nytt språk kan forbedre minne, multitasking evner, og emosjonell intelligens. Så å lære japansk kan vere ei god øvelse for hjernen din. Til tross for at japansk kan vere vanskeleg å lære i starten, kan det gi stor tilfredsstillelse når du begynner å forstå det. Læringsprosessen i seg sjølv kan vere ei motiverande og givande erfaring, der du kan sjå framgangen din over tid. Lær japansk raskt med 100 japanske språktimer organisert etter emne. MP3-lydfilene for leksjonene ble lest opp av japansk som morsmål. De hjelper deg med å forbedre uttalen din. Å lære japansk kan også auke sjølvtilliten din. Det å kunne japansk er noko spesielt og noko å vere stolt av. Evna til å kommunisere på eit framand språk viser mot og dedikasjon, og dette kan auke sjølvtilliten din i mange aspekt av livet. Det er mange grunnar til å lære japansk. Frå karrieremuligheter og kulturelle erfaringar, til mentale fordelar og auke i sjølvtillit, kan det å lære japansk gi mange breie og verdifulle fordelar. Selv japanske nybegynnere kan lære japansk effektivt med “50LANGUAGES“ gjennom de praktiske setningene. Først vil du bli kjent med de grunnleggende strukturene i språket. Eksempeldialoger hjelper deg å uttrykke deg på fremmedspråket. Forkunnskaper er ikke nødvendig. Selv avanserte elever kan gjenta og konsolidere det de har lært. Du lærer korrekte og ofte talte setninger, og du kan bruke dem umiddelbart. Du vil kunne kommunisere i hverdagssituasjoner. Bruk lunsjpausen eller tiden i trafikken til å lære noen minutter japansk. Du lærer både på farten og hjemme.
english
<reponame>massimo-cassandro/m-sharing { "name": "@massimo-cassandro/sharing-links", "version": "1.6.1", "description": "Sharing links builder", "main": "./sharing-links.js", "style": "./_sharing-links.scss", "scripts": { "build_icons": "cd imgs && gulp" }, "repository": { "type": "git", "url": "git+https://github.com/massimo-cassandro/sharing-links.git" }, "publishConfig": { "access": "public" }, "keywords": [ "social", "sharing" ], "author": "<NAME>", "license": "MIT", "bugs": { "url": "https://github.com/massimo-cassandro/sharing-links/issues" }, "homepage": "https://github.com/massimo-cassandro/sharing-links#readme", "dependencies": { "@massimo-cassandro/m-utilities": "^4.2.5" }, "devDependencies": { "eslint": "^7.28.0", "gulp": "^4.0.2", "gulp-concat": "^2.6.1", "gulp-flatmap": "^1.0.2", "gulp-inject-string": "^1.1.2", "gulp-svgmin": "^3.0.0", "stylelint": "^13.13.1", "stylelint-config-twbs-bootstrap": "^2.2.0" }, "files": [ "imgs/_icons.scss", "_sharing-links.scss", "sharing-links.js" ] }
json
<filename>ui/src/components/table/QTable.js<gh_stars>0 import { h, ref, computed, watch, getCurrentInstance } from 'vue' import QTh from './QTh.js' import QSeparator from '../separator/QSeparator.js' import QIcon from '../icon/QIcon.js' import QVirtualScroll from '../virtual-scroll/QVirtualScroll.js' import QSelect from '../select/QSelect.js' import QLinearProgress from '../linear-progress/QLinearProgress.js' import QCheckbox from '../checkbox/QCheckbox.js' import QBtn from '../btn/QBtn.js' import getTableMiddle from './get-table-middle.js' import useDark, { useDarkProps } from '../../composables/private/use-dark.js' import { commonVirtPropsList } from '../virtual-scroll/use-virtual-scroll.js' import useFullscreen, { useFullscreenProps, useFullscreenEmits } from '../../composables/private/use-fullscreen.js' import { useTableSort, useTableSortProps } from './table-sort.js' import { useTableFilter, useTableFilterProps } from './table-filter.js' import { useTablePaginationState, useTablePagination, useTablePaginationProps } from './table-pagination.js' import { useTableRowSelection, useTableRowSelectionProps, useTableRowSelectionEmits } from './table-row-selection.js' import { useTableRowExpand, useTableRowExpandProps, useTableRowExpandEmits } from './table-row-expand.js' import { useTableColumnSelection, useTableColumnSelectionProps } from './table-column-selection.js' import { injectProp, injectGetter } from '../../utils/private/inject-obj-prop.js' import { createComponent } from '../../utils/private/create.js' const bottomClass = 'q-table__bottom row items-center' const commonVirtPropsObj = {} commonVirtPropsList.forEach(p => { commonVirtPropsObj[ p ] = {} }) export default createComponent({ name: 'QTable', props: { rows: { type: Array, default: () => [] }, rowKey: { type: [ String, Function ], default: 'id' }, columns: Array, loading: Boolean, iconFirstPage: String, iconPrevPage: String, iconNextPage: String, iconLastPage: String, title: String, hideHeader: Boolean, grid: Boolean, gridHeader: Boolean, dense: Boolean, flat: Boolean, bordered: Boolean, square: Boolean, separator: { type: String, default: 'horizontal', validator: v => [ 'horizontal', 'vertical', 'cell', 'none' ].includes(v) }, wrapCells: Boolean, virtualScroll: Boolean, ...commonVirtPropsObj, noDataLabel: String, noResultsLabel: String, loadingLabel: String, selectedRowsLabel: Function, rowsPerPageLabel: String, paginationLabel: Function, color: { type: String, default: 'grey-8' }, titleClass: [ String, Array, Object ], tableStyle: [ String, Array, Object ], tableClass: [ String, Array, Object ], tableHeaderStyle: [ String, Array, Object ], tableHeaderClass: [ String, Array, Object ], cardContainerClass: [ String, Array, Object ], cardContainerStyle: [ String, Array, Object ], cardStyle: [ String, Array, Object ], cardClass: [ String, Array, Object ], hideBottom: Boolean, hideSelectedBanner: Boolean, hideNoData: Boolean, hidePagination: Boolean, onRowClick: Function, onRowDblclick: Function, onRowContextmenu: Function, ...useDarkProps, ...useFullscreenProps, ...useTableColumnSelectionProps, ...useTableFilterProps, ...useTablePaginationProps, ...useTableRowExpandProps, ...useTableRowSelectionProps, ...useTableSortProps }, emits: [ 'request', 'virtual-scroll', ...useFullscreenEmits, ...useTableRowExpandEmits, ...useTableRowSelectionEmits ], setup (props, { slots, emit }) { const vm = getCurrentInstance() const { proxy: { $q } } = vm const isDark = useDark(props, $q) const { inFullscreen, toggleFullscreen } = useFullscreen() const getRowKey = computed(() => ( typeof props.rowKey === 'function' ? props.rowKey : row => row[ props.rowKey ] )) const rootRef = ref(null) const virtScrollRef = ref(null) const hasVirtScroll = computed(() => props.grid !== true && props.virtualScroll === true) const cardDefaultClass = computed(() => ' q-table__card' + (isDark.value === true ? ' q-table__card--dark q-dark' : '') + (props.square === true ? ' q-table--square' : '') + (props.flat === true ? ' q-table--flat' : '') + (props.bordered === true ? ' q-table--bordered' : '') ) const __containerClass = computed(() => `q-table__container q-table--${ props.separator }-separator column no-wrap` + (props.loading === true ? ' q-table--loading' : '') + (props.grid === true ? ' q-table--grid' : cardDefaultClass.value) + (isDark.value === true ? ' q-table--dark' : '') + (props.dense === true ? ' q-table--dense' : '') + (props.wrapCells === false ? ' q-table--no-wrap' : '') + (inFullscreen.value === true ? ' fullscreen scroll' : '') ) const containerClass = computed(() => __containerClass.value + (props.loading === true ? ' q-table--loading' : '') ) watch( () => props.tableStyle + props.tableClass + props.tableHeaderStyle + props.tableHeaderClass + __containerClass.value, () => { hasVirtScroll.value === true && virtScrollRef.value !== null && virtScrollRef.value.reset() } ) const { innerPagination, computedPagination, isServerSide, requestServerInteraction, setPagination } = useTablePaginationState(vm, getCellValue) const { computedFilterMethod } = useTableFilter(props, setPagination) const { isRowExpanded, setExpanded, updateExpanded } = useTableRowExpand(props, emit) const filteredSortedRows = computed(() => { let rows = props.rows if (isServerSide.value === true || rows.length === 0) { return rows } const { sortBy, descending } = computedPagination.value if (props.filter) { rows = computedFilterMethod.value(rows, props.filter, computedCols.value, getCellValue) } if (columnToSort.value !== null) { rows = computedSortMethod.value( props.rows === rows ? rows.slice() : rows, sortBy, descending ) } return rows }) const filteredSortedRowsNumber = computed(() => filteredSortedRows.value.length) const computedRows = computed(() => { let rows = filteredSortedRows.value if (isServerSide.value === true) { return rows } const { rowsPerPage } = computedPagination.value if (rowsPerPage !== 0) { if (firstRowIndex.value === 0 && props.rows !== rows) { if (rows.length > lastRowIndex.value) { rows = rows.slice(0, lastRowIndex.value) } } else { rows = rows.slice(firstRowIndex.value, lastRowIndex.value) } } return rows }) const { hasSelectionMode, singleSelection, multipleSelection, allRowsSelected, someRowsSelected, rowsSelectedNumber, isRowSelected, clearSelection, updateSelection } = useTableRowSelection(props, emit, computedRows, getRowKey) const { colList, computedCols, computedColsMap, computedColspan } = useTableColumnSelection(props, computedPagination, hasSelectionMode) const { columnToSort, computedSortMethod, sort } = useTableSort(props, computedPagination, colList, setPagination) const { firstRowIndex, lastRowIndex, isFirstPage, isLastPage, pagesNumber, computedRowsPerPageOptions, computedRowsNumber, firstPage, prevPage, nextPage, lastPage } = useTablePagination(vm, innerPagination, computedPagination, isServerSide, setPagination, filteredSortedRowsNumber) const nothingToDisplay = computed(() => computedRows.value.length === 0) const virtProps = computed(() => { const acc = {} commonVirtPropsList .forEach(p => { acc[ p ] = props[ p ] }) if (acc.virtualScrollItemSize === void 0) { acc.virtualScrollItemSize = props.dense === true ? 28 : 48 } return acc }) function resetVirtualScroll () { hasVirtScroll.value === true && virtScrollRef.value.reset() } function getBody () { if (props.grid === true) { return getGridBody() } const header = props.hideHeader !== true ? getTHead : null if (hasVirtScroll.value === true) { const topRow = slots[ 'top-row' ] const bottomRow = slots[ 'bottom-row' ] const virtSlots = { default: props => getTBodyTR(props.item, slots.body, props.index) } if (topRow !== void 0) { const topContent = h('tbody', topRow({ cols: computedCols.value })) virtSlots.before = header === null ? () => topContent : () => [ header() ].concat(topContent) } else if (header !== null) { virtSlots.before = header } if (bottomRow !== void 0) { virtSlots.after = () => h('tbody', bottomRow({ cols: computedCols.value })) } return h(QVirtualScroll, { ref: virtScrollRef, class: props.tableClass, style: props.tableStyle, ...virtProps.value, items: computedRows.value, type: '__qtable', tableColspan: computedColspan.value, onVirtualScroll: onVScroll }, virtSlots) } const child = [ getTBody() ] if (header !== null) { child.unshift(header()) } return getTableMiddle({ class: [ 'q-table__middle scroll', props.tableClass ], style: props.tableStyle }, child) } function scrollTo (toIndex, edge) { if (virtScrollRef.value !== null) { virtScrollRef.value.scrollTo(toIndex, edge) return } toIndex = parseInt(toIndex, 10) const rowEl = rootRef.value.querySelector(`tbody tr:nth-of-type(${ toIndex + 1 })`) if (rowEl !== null) { const scrollTarget = rootRef.value.querySelector('.q-table__middle.scroll') const { offsetTop } = rowEl const direction = offsetTop < scrollTarget.scrollTop ? 'decrease' : 'increase' scrollTarget.scrollTop = offsetTop emit('virtual-scroll', { index: toIndex, from: 0, to: innerPagination.value.rowsPerPage - 1, direction }) } } function onVScroll (info) { emit('virtual-scroll', info) } function getProgress () { return [ h(QLinearProgress, { class: 'q-table__linear-progress', color: props.color, dark: isDark.value, indeterminate: true, trackColor: 'transparent' }) ] } function getTBodyTR (row, bodySlot, pageIndex) { const key = getRowKey.value(row), selected = isRowSelected(key) if (bodySlot !== void 0) { return bodySlot( getBodyScope({ key, row, pageIndex, __trClass: selected ? 'selected' : '' }) ) } const bodyCell = slots[ 'body-cell' ], child = computedCols.value.map(col => { const bodyCellCol = slots[ `body-cell-${ col.name }` ], slot = bodyCellCol !== void 0 ? bodyCellCol : bodyCell return slot !== void 0 ? slot(getBodyCellScope({ key, row, pageIndex, col })) : h('td', { class: col.__tdClass(row), style: col.__tdStyle(row) }, getCellValue(col, row)) }) if (hasSelectionMode.value === true) { const slot = slots[ 'body-selection' ] const content = slot !== void 0 ? slot(getBodySelectionScope({ key, row, pageIndex })) : [ h(QCheckbox, { modelValue: selected, color: props.color, dark: isDark.value, dense: props.dense, 'onUpdate:modelValue': (adding, evt) => { updateSelection([ key ], [ row ], adding, evt) } }) ] child.unshift( h('td', { class: 'q-table--col-auto-width' }, content) ) } const data = { key, class: { selected } } if (props.onRowClick !== void 0) { data.class[ 'cursor-pointer' ] = true data.onClick = evt => { emit('RowClick', evt, row, pageIndex) } } if (props.onRowDblclick !== void 0) { data.class[ 'cursor-pointer' ] = true data.onDblclick = evt => { emit('RowDblclick', evt, row, pageIndex) } } if (props.onRowContextmenu !== void 0) { data.class[ 'cursor-pointer' ] = true data.onContextmenu = evt => { emit('RowContextmenu', evt, row, pageIndex) } } return h('tr', data, child) } function getTBody () { const body = slots.body, topRow = slots[ 'top-row' ], bottomRow = slots[ 'bottom-row' ] let child = computedRows.value.map( (row, pageIndex) => getTBodyTR(row, body, pageIndex) ) if (topRow !== void 0) { child = topRow({ cols: computedCols.value }).concat(child) } if (bottomRow !== void 0) { child = child.concat(bottomRow({ cols: computedCols.value })) } return h('tbody', child) } function getBodyScope (data) { injectBodyCommonScope(data) data.cols = data.cols.map(col => { const c = { ...col } injectGetter(c, 'value', () => getCellValue(col, data.row)) return c }) return data } function getBodyCellScope (data) { injectBodyCommonScope(data) injectGetter(data, 'value', () => () => getCellValue(data.col, data.row)) return data } function getBodySelectionScope (data) { injectBodyCommonScope(data) return data } function injectBodyCommonScope (data) { Object.assign(data, { cols: computedCols.value, colsMap: computedColsMap.value, sort, rowIndex: firstRowIndex.value + data.pageIndex, color: props.color, dark: isDark.value, dense: props.dense }) hasSelectionMode.value === true && injectProp( data, 'selected', () => isRowSelected(data.key), (adding, evt) => { updateSelection([ data.key ], [ data.row ], adding, evt) } ) injectProp( data, 'expand', () => isRowExpanded(data.key), adding => { updateExpanded(data.key, adding) } ) } function getCellValue (col, row) { const val = typeof col.field === 'function' ? col.field(row) : row[ col.field ] return col.format !== void 0 ? col.format(val, row) : val } const marginalsScope = computed(() => ({ pagination: computedPagination.value, pagesNumber: pagesNumber.value, isFirstPage: isFirstPage.value, isLastPage: isLastPage.value, firstPage, prevPage, nextPage, lastPage, inFullscreen: inFullscreen.value, toggleFullscreen })) function getTopDiv () { const top = slots.top, topLeft = slots[ 'top-left' ], topRight = slots[ 'top-right' ], topSelection = slots[ 'top-selection' ], hasSelection = hasSelectionMode.value === true && topSelection !== void 0 && rowsSelectedNumber.value > 0, topClass = 'q-table__top relative-position row items-center' if (top !== void 0) { return h('div', { class: topClass }, [ top(marginalsScope.value) ]) } let child if (hasSelection === true) { child = topSelection(marginalsScope.value).slice() } else { child = [] if (topLeft !== void 0) { child.push( h('div', { class: 'q-table-control' }, [ topLeft(marginalsScope.value) ]) ) } else if (props.title) { child.push( h('div', { class: 'q-table__control' }, [ h('div', { class: [ 'q-table__title', props.titleClass ] }, props.title) ]) ) } } if (topRight !== void 0) { child.push( h('div', { class: 'q-table__separator col' }) ) child.push( h('div', { class: 'q-table__control' }, [ topRight(marginalsScope.value) ]) ) } if (child.length === 0) { return } return h('div', { class: topClass }, child) } const headerSelectedValue = computed(() => ( someRowsSelected.value === true ? null : allRowsSelected.value )) function getTHead () { const child = getTHeadTR() if (props.loading === true && slots.loading === void 0) { child.push( h('tr', { class: 'q-table__progress' }, [ h('th', { class: 'relative-position', colspan: computedColspan.value }, getProgress()) ]) ) } return h('thead', child) } function getTHeadTR () { const header = slots.header, headerCell = slots[ 'header-cell' ] if (header !== void 0) { return header( getHeaderScope({ header: true }) ).slice() } const child = computedCols.value.map(col => { const headerCellCol = slots[ `header-cell-${ col.name }` ], slot = headerCellCol !== void 0 ? headerCellCol : headerCell, props = getHeaderScope({ col }) return slot !== void 0 ? slot(props) : h(QTh, { key: col.name, props }, () => col.label) }) if (singleSelection.value === true && props.grid !== true) { child.unshift( h('th', { class: 'q-table--col-auto-width' }, ' ') ) } else if (multipleSelection.value === true) { const slot = slots[ 'header-selection' ] const content = slot !== void 0 ? slot(getHeaderScope({})) : [ h(QCheckbox, { color: props.color, modelValue: headerSelectedValue.value, dark: isDark.value, dense: props.dense, 'onUpdate:modelValue': onMultipleSelectionSet }) ] child.unshift( h('th', { class: 'q-table--col-auto-width' }, content) ) } return [ h('tr', { class: props.tableHeaderClass, style: props.tableHeaderStyle }, child) ] } function getHeaderScope (data) { Object.assign(data, { cols: computedCols.value, sort, colsMap: computedColsMap.value, color: props.color, dark: isDark.value, dense: props.dense }) if (multipleSelection.value === true) { injectProp( data, 'selected', () => headerSelectedValue.value, onMultipleSelectionSet ) } return data } function onMultipleSelectionSet (val) { if (someRowsSelected.value === true) { val = false } updateSelection( computedRows.value.map(getRowKey.value), computedRows.value, val ) } const navIcon = computed(() => { const ico = [ props.iconFirstPage || $q.iconSet.table.firstPage, props.iconPrevPage || $q.iconSet.table.prevPage, props.iconNextPage || $q.iconSet.table.nextPage, props.iconLastPage || $q.iconSet.table.lastPage ] return $q.lang.rtl === true ? ico.reverse() : ico }) function getBottomDiv () { if (props.hideBottom === true) { return } if (nothingToDisplay.value === true) { if (props.hideNoData === true) { return } const message = props.loading === true ? props.loadingLabel || $q.lang.table.loading : (props.filter ? props.noResultsLabel || $q.lang.table.noResults : props.noDataLabel || $q.lang.table.noData) const noData = slots[ 'no-data' ] const children = noData !== void 0 ? [ noData({ message, icon: $q.iconSet.table.warning, filter: props.filter }) ] : [ h(QIcon, { class: 'q-table__bottom-nodata-icon', name: $q.iconSet.table.warning }), message ] return h('div', { class: bottomClass + ' q-table__bottom--nodata' }, children) } const bottom = slots.bottom if (bottom !== void 0) { return h('div', { class: bottomClass }, [ bottom(marginalsScope.value) ]) } const child = props.hideSelectedBanner !== true && hasSelectionMode.value === true && rowsSelectedNumber.value > 0 ? [ h('div', { class: 'q-table__control' }, [ h('div', [ (props.selectedRowsLabel || $q.lang.table.selectedRecords)(rowsSelectedNumber.value) ]) ]) ] : [] if (props.hidePagination !== true) { return h('div', { class: bottomClass + ' justify-end' }, getPaginationDiv(child)) } if (child.length > 0) { return h('div', { class: bottomClass }, child) } } function onPagSelection (pag) { setPagination({ page: 1, rowsPerPage: pag.value }) } function getPaginationDiv (child) { let control const { rowsPerPage } = computedPagination.value, paginationLabel = props.paginationLabel || $q.lang.table.pagination, paginationSlot = slots.pagination, hasOpts = props.rowsPerPageOptions.length > 1 child.push( h('div', { class: 'q-table__separator col' }) ) if (hasOpts === true) { child.push( h('div', { class: 'q-table__control' }, [ h('span', { class: 'q-table__bottom-item' }, [ props.rowsPerPageLabel || $q.lang.table.recordsPerPage ]), h(QSelect, { class: 'q-table__select inline q-table__bottom-item', color: props.color, modelValue: rowsPerPage, options: computedRowsPerPageOptions.value, displayValue: rowsPerPage === 0 ? $q.lang.table.allRows : rowsPerPage, dark: isDark.value, borderless: true, dense: true, optionsDense: true, optionsCover: true, 'onUpdate:modelValue': onPagSelection }) ]) ) } if (paginationSlot !== void 0) { control = paginationSlot(marginalsScope.value) } else { control = [ h('span', rowsPerPage !== 0 ? { class: 'q-table__bottom-item' } : {}, [ rowsPerPage ? paginationLabel(firstRowIndex.value + 1, Math.min(lastRowIndex.value, computedRowsNumber.value), computedRowsNumber.value) : paginationLabel(1, filteredSortedRowsNumber.value, computedRowsNumber.value) ]) ] if (rowsPerPage !== 0 && pagesNumber.value > 1) { const btnProps = { color: props.color, round: true, dense: true, flat: true } if (props.dense === true) { btnProps.size = 'sm' } pagesNumber.value > 2 && control.push( h(QBtn, { key: 'pgFirst', ...btnProps, icon: navIcon.value[ 0 ], disable: isFirstPage.value, onClick: firstPage }) ) control.push( h(QBtn, { key: 'pgPrev', ...btnProps, icon: navIcon.value[ 1 ], disable: isFirstPage.value, onClick: prevPage }), h(QBtn, { key: 'pgNext', ...btnProps, icon: navIcon.value[ 2 ], disable: isLastPage.value, onClick: nextPage }) ) pagesNumber.value > 2 && control.push( h(QBtn, { key: 'pgLast', ...btnProps, icon: navIcon.value[ 3 ], disable: isLastPage.value, onClick: lastPage }) ) } } child.push( h('div', { class: 'q-table__control' }, control) ) return child } function getGridHeader () { const child = props.gridHeader === true ? [ h('table', { class: 'q-table' }, [ getTHead(h) ]) ] : ( props.loading === true && slots.loading === void 0 ? getProgress(h) : void 0 ) return h('div', { class: 'q-table__middle' }, child) } function getGridBody () { const item = slots.item !== void 0 ? slots.item : scope => { const child = scope.cols.map( col => h('div', { class: 'q-table__grid-item-row' }, [ h('div', { class: 'q-table__grid-item-title' }, [ col.label ]), h('div', { class: 'q-table__grid-item-value' }, [ col.value ]) ]) ) if (hasSelectionMode.value === true) { const slot = slots[ 'body-selection' ] const content = slot !== void 0 ? slot(scope) : [ h(QCheckbox, { modelValue: scope.selected, color: props.color, dark: isDark.value, dense: props.dense, 'onUpdate:modelValue': (adding, evt) => { updateSelection([ scope.key ], [ scope.row ], adding, evt) } }) ] child.unshift( h('div', { class: 'q-table__grid-item-row' }, content), h(QSeparator, { dark: isDark.value }) ) } const data = { class: [ 'q-table__grid-item-card' + cardDefaultClass.value, props.cardClass ], style: props.cardStyle } if ( props.onRowClick !== void 0 || props.onRowDblclick !== void 0 ) { data.class[ 0 ] += ' cursor-pointer' if (props.onRowClick !== void 0) { data.onClick = evt => { emit('RowClick', evt, scope.row, scope.pageIndex) } } if (props.onRowDblclick !== void 0) { data.onDblclick = evt => { emit('RowDblclick', evt, scope.row, scope.pageIndex) } } } return h('div', { class: 'q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3' + (scope.selected === true ? 'q-table__grid-item--selected' : '') }, [ h('div', data, child) ]) } return h('div', { class: [ 'q-table__grid-content row', props.cardContainerClass ], style: props.cardContainerStyle }, computedRows.value.map((row, pageIndex) => { return item(getBodyScope({ key: getRowKey.value(row), row, pageIndex })) })) } // expose public methods and needed computed props Object.assign(vm.proxy, { requestServerInteraction, setPagination, firstPage, prevPage, nextPage, lastPage, isRowSelected, clearSelection, isRowExpanded, setExpanded, sort, resetVirtualScroll, scrollTo, getCellValue }) injectGetter(vm.proxy, 'filteredSortedRows', () => filteredSortedRows.value) injectGetter(vm.proxy, 'computedRows', () => computedRows.value) injectGetter(vm.proxy, 'computedRowsNumber', () => () => computedRowsNumber.value) return () => { const child = [ getTopDiv() ] const data = { ref: rootRef, class: containerClass.value } if (props.grid === true) { child.push(getGridHeader()) } else { Object.assign(data, { class: [ data.class, props.cardClass ], style: props.cardStyle }) } child.push( getBody(), getBottomDiv() ) if (props.loading === true && slots.loading !== void 0) { child.push( slots.loading() ) } return h('div', data, child) } } })
javascript
<filename>docs/style.css .reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 { text-transform: none } .reveal section { text-align: left; } * { font-family: 'Inconsolata' !important } .reveal section img { border: none; box-shadow: none; background: none; } .sw-d { display: block; position: relative; width:1280px; height: 720px; /*background-color: rgba(255,0,0,0.3);*/ } .sw-d-browser, .sw-d-js, .sw-d-ww, .sw-d-sw { position: absolute; left:50%; top:50%; transform: translate(-50%, -40%); opacity: 0; transition: .5s } .sw-code-ww, .sw-code-sw { opacity: 0; transform: translateX(50%); } .state-first .sw-d-browser{ transform: translate(-50%, -50%); opacity: 1; } .state-js .sw-d-browser{ transform: translate(-50%, -50%); opacity: 1; } .state-js .sw-d-js{ transform: translate(-50%, -50%); opacity: 1; } .state-ww .sw-d-browser{ transform: translate(-50%, -55%) translateX(-300px); opacity: 1; } .state-ww .sw-d-js{ transform: translate(-50%, -60%) translateX(-300px) scale(0.5); opacity: 1; } .state-ww .sw-d-ww{ transform: translate(-50%, 50%) translateX(-300px) translateY(0px); opacity: 1; } .state-ww .sw-code-ww{ opacity: 1; transform: translateX(0%); } .state-sw .sw-d-browser{ transform: translate(-50%, -50%) translateX(-300px) translateY(-100px) scale(0.8); opacity: 1; } .state-sw .sw-d-js{ transform: translate(-50%, -50%) translateX(-300px) translateY(-90px) scale(0.5); opacity: 1; } .state-sw .sw-d-ww{ transform: translate(-50%, -50%) translateX(-300px) translateY(50px) scale(0.8); opacity: 1; } .state-sw .sw-d-sw{ transform: translate(-50%, -50%) translateX(-300px) translateY(200px) scale(0.9); opacity: 1; } .state-sw .sw-code-sw{ opacity: 1; transform: translateX(0%); } .state-sw2 .sw-d-browser{ transform: translate(-50%, -50%) translateY(-120px) scale(0.3); opacity: 0.5; } .state-sw2 .sw-d-js{ transform: translate(-50%, -50%) translateY(-100px) scale(0.2); opacity: 0.5; } .state-sw2 .sw-d-ww{ transform: translate(-50%, -50%) translateY(-40px) scale(0.2); opacity: 0.5; } .state-sw2 .sw-d-sw{ transform: translate(-50%, -50%) translateY(100px) scale(0.9); opacity: 1; } .reveal section .sw-d pre{ position: absolute; width: 35%; right: 0; display:block; /*background: red;*/ height: 100%; box-shadow: none; } /* translate(-50%, -70%) scale(0.9) */ .reveal pre code { background: none; color: inherit; } .reveal pre.sw { margin:0; box-shadow: none; font-size: 1em; } h2.party { background: rgba(255,255,255,0.6); padding: 1em; } /* github.com style (c) <NAME> <<EMAIL>> */ .hljs { display: block; overflow-x: auto; padding: 0.5em; color: #333; background: #f8f8f8; } .hljs-comment, .hljs-quote { color: #998; font-style: italic; } .hljs-keyword, .hljs-selector-tag, .hljs-subst { color: #333; font-weight: bold; } .hljs-number, .hljs-literal, .hljs-variable, .hljs-template-variable, .hljs-tag .hljs-attr { color: #008080; } .hljs-string, .hljs-doctag { color: #d14; } .hljs-title, .hljs-section, .hljs-selector-id { color: #900; font-weight: bold; } .hljs-subst { font-weight: normal; } .hljs-type, .hljs-class .hljs-title { color: #458; font-weight: bold; } .hljs-tag, .hljs-name, .hljs-attribute { color: #000080; font-weight: normal; } .hljs-regexp, .hljs-link { color: #009926; } .hljs-symbol, .hljs-bullet { color: #990073; } .hljs-built_in, .hljs-builtin-name { color: #0086b3; } .hljs-meta { color: #999; font-weight: bold; } .hljs-deletion { background: #fdd; } .hljs-addition { background: #dfd; } .hljs-emphasis { font-style: italic; } .hljs-strong { font-weight: bold; }
css
The year 2012 marks 10 years of suffering for another group of victims too - the Hindus whose families were burnt alive in Coach S 6. Ten years on, the English press has shown little concern for the victims of Sabarmati holocaust. "Come One, Come All" was the slogan at the Nyishi Dignity Rally on September 13. A report in the Times of India which was critical of the Nyishi tribe has brought the community together in a concerted effort to get to the root of the story. More than Kashmir Times published from Jammu, commentary in Greater Kashmir highlighted the alienation – economic, physical, and psychological – fostered by the blockade and the fact that it was directly antithetical to India’s claim to the Valley,
english
Pakistan have qualified for the semi-finals of the ICC T20 World Cup after beating Bangladesh by 5 wickets. South Africa would have ended Pakistan’s chances had they won against the Netherlands but the Dutch shocked them. Chasing 159 in 20 overs, the Proteas fell short by 13 runs to register their one of the worst defeats in the ICC tournaments. Meanwhile, former England captain Michael Vaughan couldn’t believe when he came to know about the Netherlands win over the Temba Bavuma-led team. He took to Twitter and spoke about Pakistan’s possibility of winning their second ICC T20 World Cup title. “Just woke up to the #ICCWorldCup2022 news !!! Incredible by the Netherlands ... Pakistan to win it now anyone ??,” he wrote.
english
<filename>test_project/test_app/tests/__init__.py from assertions_tests import * from templatetags_tests import * from testmaker_tests import * from crawler_tests import * import twill_tests __test__ = { 'TWILL': twill_tests, }
python
Square is expanding its cryptocurrency services across the the US. Its subsidiary CashApp announced that American users can now use the application to buy and sell Bitcoin in all 50 states. The company revealed the news in a post on Twitter (spotted by CCN). It is worth pointing out that CashApp first announced Bitcoin support earlier in January – though only in select states. It appears the company is finally ready to open up the service to the rest of the country. Due to regulatory holdups and localized restrictions, CashApp was forbidden from offering its Bitcoin trading options in New York, Georgia, Hawaii, and Wyoming. But following certain changes in the law (and obtaining a “Bitlicense”), that is no longer an issue. As CoinDesk points out, Wyoming removed the double reserve requirement for companies involved in cryptocurrencies. The changes in policy that have allowed CashApp to roll out its Bitcoin buying feature in Georgia and Hawaii still remain unclear. CashApp is already recognised as one of the fastest ways to send, and recieve payments from your family, and friends who also use the app. Adding BTC to the mix further increases the users payment choices when it comes to paying your friend back for that coffee because you left your wallet at home. That said though, this is not a dedicated cryptocurrency wallet app, so it should not be considered a safe long term storage solution for your Bitcoin. In the meantime it might be a great way to pay small debts with friends, but it’s probably a good idea to cash out as soon as you recieve a payment to avoid any nasty drops in value. In any case, it’s good to hear that a company is adopting – and not dropping – Bitcoin payments for a change. Get the most important tech news in your inbox each week.
english
<reponame>PravSonawane/rx-arch-android<filename>app/src/main/java/com/merryapps/rxarch/model/repositories/SearchResponseRaw.java package com.merryapps.rxarch.model.repositories; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.util.List; /** * Represents a search response received from the network. * @author <NAME> * @since 0.0.1 * @see GithubRepositoryService */ class SearchResponseRaw { @SerializedName("total_count") @Expose private Integer totalCount; @SerializedName("incomplete_results") @Expose private Boolean incompleteResults; @SerializedName("items") @Expose private List<ItemRaw> items = null; Integer getTotalCount() { return totalCount; } void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } Boolean getIncompleteResults() { return incompleteResults; } void setIncompleteResults(Boolean incompleteResults) { this.incompleteResults = incompleteResults; } List<ItemRaw> getItemInternals() { return items; } void setItemInternals(List<ItemRaw> itemRaws) { this.items = itemRaws; } //TODO remove later @Override public String toString() { return "SearchResponseRaw{" + "totalCount=" + totalCount + ", incompleteResults=" + incompleteResults + ", items=" + items + '}'; } }
java
<filename>.vscode/settings.json { "editor.tabSize": 2, "editor.detectIndentation": true, "prettier.tabWidth": 4, "prettier.useTabs": true // This made it finally work for me }
json
package jetbrains.mps.ide.ui.dialogs.modules; /*Generated by MPS */ import jetbrains.mps.annotations.GeneratedClass; import javax.swing.JCheckBox; @GeneratedClass(node = "r:47803144-d0ed-4800-ae84-e83a292e3adb(jetbrains.mps.ide.ui.dialogs.modules)/8412685000764658714", model = "r:47803144-d0ed-4800-ae84-e83a292e3adb(jetbrains.mps.ide.ui.dialogs.modules)") public class NewLanguageSettings extends AbstractModuleCreationSettings { private final JCheckBox myRuntimeSolution; private final JCheckBox mySandboxSolution; public NewLanguageSettings() { this(null); } public NewLanguageSettings(String projectPath) { super(projectPath, "Language name:", "Language file location:"); myRuntimeSolution = new JCheckBox("Create Runtime Solution"); this.add(myRuntimeSolution, 4, 0.0); mySandboxSolution = new JCheckBox("Create Sandbox Solution"); this.add(mySandboxSolution, 5, 0.0); } public boolean isRuntimeSolutionNeeded() { return myRuntimeSolution.isSelected(); } public void setRuntimeSolutionNeeded(boolean needed) { myRuntimeSolution.setSelected(needed); } public boolean isSandBoxSolutionNeeded() { return mySandboxSolution.isSelected(); } public void setSandboxSolutionNeeded(boolean needed) { mySandboxSolution.setSelected(needed); } @Override protected String getDefaultModuleName() { return "NewLanguage"; } @Override protected String getDefaultModulePath() { return getModuleRootPath("languages"); } @Override public void reset() { super.reset(); mySandboxSolution.setSelected(false); myRuntimeSolution.setSelected(false); } }
java
A curfew and general strike have brought Indian-controlled Kashmir to a standstill ahead of a court hearing affecting the Himalayan region's autonomy. Almost all businesses and institutions, including government offices and schools, remained closed on Thursday, and traffic stayed off the streets across the main city of Srinagar. The shutdown, called by separatist and independence leaders, was observed in all major towns and villages of the disputed valley. A large number of police and paramilitary soldiers in riot gear patrolled the streets and rolled out razor wire and spiked steel barriers across deserted roads in Srinagar to block demonstrations. Local residents said they were prevented from going out on the streets by major deployments of paramilitary troops. "It is a curfew. No one can go out," one school teacher in the city said. Pro-independence leaders have threatened major protests if the Supreme Court annuls a constitutional provision that bars Indians from outside Kashmir from buying land in the territory. The court will hold a hearing on Friday on the possible removal of an article in the constitution which provides special rights to the “permanent residents” of the state. Syed Ali Geelani, a top pro-independence leader, said the legal challenge against the special privileges is a bid by India's Hindu nationalist government to alter Kashmir's religious make-up. "I caution the freedom loving people of the state to remain vigilant against these ploys to change the Muslim-majority character of the state," Geelani said in a statement released late Wednesday. Prime Minister Narendra Modi's ruling Bharatiya Janata Party (BJP) wants to end Jammu and Kashmir's special status, arguing that it is an obstacle to outside investment. Separatists have warned of "mass agitation" if changes are made to the status quo. On Thursday, New Delhi forces killed two suspected Kashmiri fighters in a gun battle in the northern district of Hajin during search operations, a day after at least four police officers and two rebels were killed in clashes. New Delhi has deployed some 500,000 soldiers to the disputed region to further boost security of the borderline and enforce a crackdown on pro-independence demonstrations in its share of Kashmir, where anti-India sentiments run deep.
english
{ "items":[ { "id": "1", "name":"/Users/diesel/Documents/sound-classification-with-tf-keras/Samples/Cry/1-211527-A-20.wav", "tags":[ "Others"] }] }
json