row_id
int64 0
48.4k
| init_message
stringlengths 1
342k
| conversation_hash
stringlengths 32
32
| scores
dict |
|---|---|---|---|
47,991
|
I need to write a regex similar to this export const PERCENT_PATTERN = /^0$|^[1-9][0-9]?$|^100$/; but this time I need it only to accept numbers between 0 and 59
|
acbd22990518893a77c0423cb33e2f75
|
{
"intermediate": 0.4391658306121826,
"beginner": 0.23425573110580444,
"expert": 0.32657843828201294
}
|
47,992
|
dev <devname> ibss leave
Leave the current IBSS cell.
dev <devname> ibss join <SSID> <freq in MHz> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] [fixed-freq] [<fixed bssid>] [beacon-interval <TU>] [basic-rates <rate in Mbps,rate2,...>] [mcast-rate <rate in Mbps>] [key d:0:abcde]
Join the IBSS cell with the given SSID, if it doesn't exist create
it on the given frequency. When fixed frequency is requested, don't
join/create a cell on a different frequency. When a fixed BSSID is
requested use that BSSID and do not adopt another cell's BSSID even
if it has higher TSF and the same SSID. If an IBSS is created, create
it with the specified basic-rates, multicast-rate and beacon-interval.
phy <phyname> info
Show capabilities for the specified wireless device.
list
List all wireless devices and their capabilities.
phy
commands
list all known commands and their decimal & hex value
features
phy <phyname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*] [addr <mac-addr>]
Add a new virtual interface with the given configuration.
Valid interface types are: managed, ibss, monitor, mesh, wds.
The flags are only used for monitor interfaces, valid flags are:
none: no special flags
fcsfail: show frames with FCS errors
control: show control frames
otherbss: show frames from other BSSes
cook: use cooked mode
active: use active mode (ACK incoming unicast packets)
mumimo-groupid <GROUP_ID>: use MUMIMO according to a group id
mumimo-follow-mac <MAC_ADDRESS>: use MUMIMO according to a MAC address
The mesh_id is used only for mesh mode.
dev <devname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*] [addr <mac-addr>]
dev <devname> del
Remove this virtual interface
dev <devname> info
Show information for this interface.
dev
List all network interfaces for wireless hardware.
dev <devname> switch freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] [beacons <count>] [block-tx]
dev <devname> switch freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]] [beacons <count>] [block-tx]
Switch the operating channel by sending a channel switch announcement (CSA).
dev <devname> switch channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] [beacons <count>] [block-tx]
help [command]
Print usage for all or a specific command, e.g.
"help wowlan" or "help wowlan enable".
dev <devname> key get <key index> <MAC address>
Retrieve a key and key sequence.
dev <devname> link
Print information about the current connection, if any.
dev <devname> measurement ftm_request <config-file> [timeout=<seconds>] [randomise[=<addr>/<mask>]]
Send an FTM request to the targets supplied in the config file.
Each line in the file represents a target, with the following format:
<addr> bw=<[20|40|80|80+80|160]> cf=<center_freq> [cf1=<center_freq1>] [cf2=<center_freq2>] [ftms_per_burst=<samples per burst>] [ap-tsf] [asap] [bursts_exp=<num of bursts exponent>] [burst_period=<burst period>] [retries=<num of retries>] [burst_duration=<burst duration>] [preamble=<legacy,ht,vht,dmg>] [lci] [civic] [tb] [non_tb]
dev <devname> mesh join <mesh ID> [[freq <freq in MHz> <NOHT|HT20|HT40+|HT40-|80MHz>] [basic-rates <rate in Mbps,rate2,...>]], [mcast-rate <rate in Mbps>] [beacon-interval <time in TUs>] [dtim-period <value>] [vendor_sync on|off] [<param>=<value>]*
Join a mesh with the given mesh ID with frequency, basic-rates,
mcast-rate and mesh parameters. Basic-rates are applied only if
frequency is provided.
dev <devname> mesh leave
Leave a mesh.
dev <devname> mesh_param dump
List all supported mesh parameters
dev <devname> mgmt dump frame <type as hex ab> <pattern as hex ab:cd:..> [frame <type> <pattern>]* [count <frames>]
Register for receiving certain mgmt frames and print them.
Frames are selected by their type and pattern containing
the first several bytes of the frame that should match.
Example: iw dev wlan0 mgmt dump frame 40 00 frame 40 01:02 count 10
dev <devname> mpath probe <destination MAC address> frame <frame>
Inject ethernet frame to given peer overriding the next hop
lookup from mpath table.
.Example: iw dev wlan0 mpath probe xx:xx:xx:xx:xx:xx frame 01:xx:xx:00
dev <devname> mpath get <MAC address>
Get information on mesh path to the given node.
dev <devname> mpath del <MAC address>
Remove the mesh path to the given node.
dev <devname> mpath new <destination MAC address> next_hop <next hop MAC address>
Create a new mesh path (instead of relying on automatic discovery).
dev <devname> mpath set <destination MAC address> next_hop <next hop MAC address>
Set an existing mesh path's next hop.
dev <devname> mpath dump
List known mesh paths.
dev <devname> mpp get <MAC address>
Get information on mesh proxy path to the given node.
dev <devname> mpp dump
List known mesh proxy paths.
wdev <idx> nan start pref <pref> [bands [2GHz] [5GHz]]
wdev <idx> nan stop
wdev <idx> nan config [pref <pref>] [bands [2GHz] [5GHz]]
wdev <idx> nan rm_func cookie <cookie>
wdev <idx> nan add_func type <publish|subscribe|followup> [active] [solicited] [unsolicited] [bcast] [close_range] name <name> [info <info>] [flw_up_id <id> flw_up_req_id <id> flw_up_dest <mac>] [ttl <ttl>] [srf <include|exclude> <bf|list> [bf_idx] [bf_len] <mac1;mac2...>] [rx_filter <str1:str2...>] [tx_filter <str1:str2...>]
dev <devname> ocb join <freq in MHz> <5MHz|10MHz>
Join the OCB mode network.
dev <devname> ocb leave
Leave the OCB mode network.
dev <devname> offchannel <freq> <duration>
Leave operating channel and go to the given channel for a while.
wdev <idx> p2p start
wdev <idx> p2p stop
phy <phyname> channels
Show available channels.
dev <devname> cac channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
dev <devname> cac freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
dev <devname> cac freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
dev <devname> cac trigger channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
dev <devname> cac trigger freq <frequency> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
dev <devname> cac trigger freq <frequency> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
Start or trigger a channel availability check (CAC) looking to look for
radars on the given channel.
dev <devname> cac background channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
dev <devname> cac background freq <frequency> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
dev <devname> cac background freq <frequency> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
Start background channel availability check (CAC) looking to look for
radars on the given channel.
reg set <ISO/IEC 3166-1 alpha2>
Notify the kernel about the current regulatory domain.
reg get
Print out the kernel's current regulatory domain information.
phy <phyname> reg get
Print out the devices' current regulatory domain information.
reg reload
Reload the kernel's regulatory database.
dev <devname> roc start <freq> <time in ms>
dev <devname> scan [-u] [freq <freq>*] [duration <dur>] [ies <hex as 00:11:..>] [meshid <meshid>] [lowpri,flush,ap-force,duration-mandatory] [randomise[=<addr>/<mask>]] [ssid <ssid>*|passive]
Scan on the given frequencies and probe for the given SSIDs
(or wildcard if not given) unless passive scanning is requested.
If -u is specified print unknown data in the scan results.
Specified (vendor) IEs must be well-formed.
dev <devname> scan dump [-u]
Dump the current scan results. If -u is specified, print unknown
data in scan results.
dev <devname> scan trigger [freq <freq>*] [duration <dur>] [ies <hex as 00:11:..>] [meshid <meshid>] [lowpri,flush,ap-force,duration-mandatory,coloc] [randomise[=<addr>/<mask>]] [ssid <ssid>*|passive]
Trigger a scan on the given frequencies with probing for the given
SSIDs (or wildcard if not given) unless passive scanning is requested.
Duration(in TUs), if specified, will be used to set dwell times.
dev <devname> scan abort
Abort ongoing scan
dev <devname> scan sched_start [interval <in_msecs> | scan_plans [<interval_secs:iterations>*] <interval_secs>] [delay <in_secs>] [freqs <freq>+] [matches [ssid <ssid>]+]] [active [ssid <ssid>]+|passive] [randomise[=<addr>/<mask>]] [coloc] [flush]
Start a scheduled scan at the specified interval on the given frequencies
with probing for the given SSIDs (or wildcard if not given) unless passive
scanning is requested. If matches are specified, only matching results
will be returned.
dev <devname> scan sched_stop
Stop an ongoing scheduled scan.
dev <devname> get mesh_param [<param>]
Retrieve mesh parameter (run command without any to see available ones).
phy <phyname> get txq
Get TXQ parameters.
dev <devname> get power_save
Retrieve power save state.
dev <devname> set bitrates [legacy-<2.4|5> <legacy rate in Mbps>*] [ht-mcs-<2.4|5> <MCS index>*] [vht-mcs-<2.4|5> [he-mcs-<2.4|5|6> <NSS:MCSx,MCSy... | NSS:MCSx-MCSy>*] [sgi-2.4|lgi-2.4] [sgi-5|lgi-5] [he-gi-<2.4|5|6> <0.8|1.6|3.2>] [he-ltf-<2.4|5|6> <1|2|4>]
Sets up the specified rate masks.
Not passing any arguments would clear the existing mask (if any).
dev <devname> set monitor <flag>*
Set monitor flags. Valid flags are:
none: no special flags
fcsfail: show frames with FCS errors
control: show control frames
otherbss: show frames from other BSSes
cook: use cooked mode
active: use active mode (ACK incoming unicast packets)
mumimo-groupid <GROUP_ID>: use MUMIMO according to a group id
mumimo-follow-mac <MAC_ADDRESS>: use MUMIMO according to a MAC address
dev <devname> set meshid <meshid>
dev <devname> set type <type>
Set interface type/mode.
Valid interface types are: managed, ibss, monitor, mesh, wds.
dev <devname> set 4addr <on|off>
Set interface 4addr (WDS) mode.
dev <devname> set noack_map <map>
Set the NoAck map for the TIDs. (0x0009 = BE, 0x0006 = BK, 0x0030 = VI, 0x00C0 = VO)
dev <devname> set peer <MAC address>
Set interface WDS peer.
dev <devname> set mcast_rate <rate in Mbps>
Set the multicast bitrate.
dev <devname> set tidconf [peer <MAC address>] tids <mask> [override] [sretry <num>] [lretry <num>] [ampdu [on|off]] [amsdu [on|off]] [noack [on|off]] [rtscts [on|off]][bitrates <type [auto|fixed|limit]> [legacy-<2.4|5> <legacy rate in Mbps>*] [ht-mcs-<2.4|5> <MCS index>*] [vht-mcs-<2.4|5> <NSS:MCSx,MCSy... | NSS:MCSx-MCSy>*] [sgi-2.4|lgi-2.4] [sgi-5|lgi-5]]
Setup per-node TID specific configuration for TIDs selected by bitmask.
If MAC address is not specified, then supplied TID configuration
applied to all the peers.
Examples:
$ iw dev wlan0 set tidconf tids 0x1 ampdu off
$ iw dev wlan0 set tidconf tids 0x5 ampdu off amsdu off rtscts on
$ iw dev wlan0 set tidconf tids 0x3 override ampdu on noack on rtscts on
$ iw dev wlan0 set tidconf peer xx:xx:xx:xx:xx:xx tids 0x1 ampdu off tids 0x3 amsdu off rtscts on
$ iw dev wlan0 set tidconf peer xx:xx:xx:xx:xx:xx tids 0x2 bitrates auto
$ iw dev wlan0 set tidconf peer xx:xx:xx:xx:xx:xx tids 0x2 bitrates limit vht-mcs-5 4:9
dev <devname> set mesh_param <param>=<value> [<param>=<value>]*
Set mesh parameter (run command without any to see available ones).
phy <phyname> set name <new name>
Rename this wireless device.
phy <phyname> set freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz|160MHz|320MHz]
phy <phyname> set freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
Set frequency/channel the hardware is using, including HT
configuration.
dev <devname> set freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz|160MHz|320MHz]
dev <devname> set freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
phy <phyname> set freq_khz <freq> [1MHz|2MHz|4MHz|8MHz|16MHz]
phy <phyname> set freq_khz <control freq> [1|2|4|8|16] [<center1_freq> [<center2_freq>]]
Set frequency in kHz the hardware is using
configuration.
dev <devname> set freq_khz <freq> [1MHz|2MHz|4MHz|8MHz|16MHz]
dev <devname> set freq_khz <control freq> [1|2|4|8|16] [<center1_freq> [<center2_freq>]]
phy <phyname> set channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz|160MHz]
dev <devname> set channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz|160MHz]
phy <phyname> set frag <fragmentation threshold|off>
Set fragmentation threshold.
phy <phyname> set rts <rts threshold|off>
Set rts threshold.
phy <phyname> set retry [short <limit>] [long <limit>]
Set retry limit.
phy <phyname> set netns { <pid> | name <nsname> }
Put this wireless device into a different network namespace:
<pid> - change network namespace by process id
<nsname> - change network namespace by name from /var/run/netns
or by absolute path (man ip-netns)
phy <phyname> set coverage <coverage class>
Set coverage class (1 for every 3 usec of air propagation time).
Valid values: 0 - 255.
phy <phyname> set distance <auto|distance>
Enable ACK timeout estimation algorithm (dynack) or set appropriate
coverage class for given link distance in meters.
To disable dynack set valid value for coverage class.
Valid values: 0 - 114750
phy <phyname> set txpower <auto|fixed|limit> [<tx power in mBm>]
Specify transmit power level and setting type.
dev <devname> set txpower <auto|fixed|limit> [<tx power in mBm>]
Specify transmit power level and setting type.
phy <phyname> set antenna <bitmap> | all | <tx bitmap> <rx bitmap>
Set a bitmap of allowed antennas to use for TX and RX.
The driver may reject antenna configurations it cannot support.
phy <phyname> set txq limit <packets> | memory_limit <bytes> | quantum <bytes>
Set TXQ parameters. The limit and memory_limit are global queue limits
for the whole phy. The quantum is the DRR scheduler quantum setting.
Valid values: 1 - 2**32
dev <devname> set power_save <on|off>
Set power save state to on or off.
phy <phyname> set sar_specs <sar type> <range index:sar power>*
Set SAR specs corresponding to SAR capa of wiphy.
dev <devname> survey dump [--radio]
List all gathered channel survey data
dev <devname> vendor send <oui> <subcmd> <filename|-|hex data>
dev <devname> vendor recv <oui> <subcmd> <filename|-|hex data>
dev <devname> vendor recvbin <oui> <subcmd> <filename|-|hex data>
phy <phyname> wowlan enable [any] [disconnect] [magic-packet] [gtk-rekey-failure] [eap-identity-request] [4way-handshake] [rfkill-release] [net-detect [interval <in_msecs> | scan_plans [<interval_secs:iterations>*] <interval_secs>] [delay <in_secs>] [freqs <freq>+] [matches [ssid <ssid>]+]] [active [ssid <ssid>]+|passive] [randomise[=<addr>/<mask>]] [coloc] [flush]] [tcp <config-file>] [patterns [offset1+]<pattern1> ...]
Enable WoWLAN with the given triggers.
Each pattern is given as a bytestring with '-' in places where any byte
may be present, e.g. 00:11:22:-:44 will match 00:11:22:33:44 and
00:11:22:33:ff:44 etc.
Offset and pattern should be separated by '+', e.g. 18+43:34:00:12 will match '43:34:00:12' after 18 bytes of offset in Rx packet.
The TCP configuration file contains:
source=ip[:port]
dest=ip:port@mac
data=<hex data packet>
data.interval=seconds
[wake=<hex packet with masked out bytes indicated by '-'>]
[data.seq=len,offset[,start]]
[data.tok=len,offset,<token stream>]
Net-detect configuration example:
iw phy0 wowlan enable net-detect interval 5000 delay 30 freqs 2412 2422 matches ssid foo ssid bar
phy <phyname> wowlan disable
Disable WoWLAN.
phy <phyname> wowlan show
Show WoWLAN status.
dev <devname> station get <MAC address>
Get information for a specific station.
dev <devname> station del <MAC address> [subtype <subtype>] [reason-code <code>]
Remove the given station entry (use with caution!)
Example subtype values: 0xA (disassociation), 0xC (deauthentication)
dev <devname> station dump [-v]
List all stations known, e.g. the AP on managed interfaces
dev <devname> station set <MAC address> txpwr <auto|limit> [<tx power dBm>]
Set Tx power for this station.
dev <devname> station set <MAC address> airtime_weight <weight>
Set airtime weight for this station.
dev <devname> station set <MAC address> mesh_power_mode <active|light|deep>
Set link-specific mesh power mode for this station
dev <devname> station set <MAC address> vlan <ifindex>
Set an AP VLAN for this station.
dev <devname> station set <MAC address> plink_action <open|block>
Set mesh peer link action for this station (peer).
Commands that use the netdev ('dev') can also be given the
'wdev' instead to identify the device.
You can omit the 'phy' or 'dev' if the identification is unique,
e.g. "iw wlan0 info" or "iw phy0 info". (Don't when scripting.)
Do NOT screenscrape this tool, we don't consider its output stable.
malloy@fedora:~$ iw wlan0 scan
Usage: iw [options] command
Options:
--debug enable netlink debugging
--version show version (6.7)
Commands:
dev <devname> ap start
<SSID> <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]] <beacon interval in TU> <DTIM period> [hidden-ssid|zeroed-ssid] head <beacon head in hexadecimal> [tail <beacon tail in hexadecimal>] [inactivity-time <inactivity time in seconds>] [key0:abcde d:1:6162636465]
dev <devname> ap stop
Stop AP functionality
phy <phyname> coalesce enable <config-file>
Enable coalesce with given configuration.
The configuration file contains coalesce rules:
delay=<delay>
condition=<condition>
patterns=<[offset1+]<pattern1>,<[offset2+]<pattern2>,...>
delay=<delay>
condition=<condition>
patterns=<[offset1+]<pattern1>,<[offset2+]<pattern2>,...>
...
delay: maximum coalescing delay in msec.
condition: 1/0 i.e. 'not match'/'match' the patterns
patterns: each pattern is given as a bytestring with '-' in
places where any byte may be present, e.g. 00:11:22:-:44 will
match 00:11:22:33:44 and 00:11:22:33:ff:44 etc. Offset and
pattern should be separated by '+', e.g. 18+43:34:00:12 will
match '43:34:00:12' after 18 bytes of offset in Rx packet.
phy <phyname> coalesce disable
Disable coalesce.
phy <phyname> coalesce show
Show coalesce status.
dev <devname> disconnect
Disconnect from the current network.
dev <devname> connect [-w] <SSID> [<freq in MHz>] [<bssid>] [auth open|shared] [key 0:abcde d:1:6162636465] [mfp:req/opt/no]
Join the network with the given SSID (and frequency, BSSID).
With -w, wait for the connect to finish or fail.
dev <devname> auth <SSID> <bssid> <type:open|shared> <freq in MHz> [key 0:abcde d:1:6162636465]
Authenticate with the given network.
dev <devname> cqm rssi <threshold|off> [<hysteresis>]
Set connection quality monitor RSSI threshold.
event [-t|-T|-r] [-f]
Monitor events from the kernel.
-t - print timestamp
-T - print absolute, human-readable timestamp
-r - print relative timestamp
-f - print full frame for auth/assoc etc.
dev <devname> ftm get_stats
Get FTM responder statistics.
dev <devname> ftm start_responder [lci=<lci buffer in hex>] [civic=<civic buffer in hex>]
Start an FTM responder. Needs a running ap interface
phy <phyname> hwsim getps
phy <phyname> hwsim setps <value>
phy <phyname> hwsim stopqueues
phy <phyname> hwsim wakequeues
dev <devname> ibss leave
Leave the current IBSS cell.
dev <devname> ibss join <SSID> <freq in MHz> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] [fixed-freq] [<fixed bssid>] [beacon-interval <TU>] [basic-rates <rate in Mbps,rate2,...>] [mcast-rate <rate in Mbps>] [key d:0:abcde]
Join the IBSS cell with the given SSID, if it doesn't exist create
it on the given frequency. When fixed frequency is requested, don't
join/create a cell on a different frequency. When a fixed BSSID is
requested use that BSSID and do not adopt another cell's BSSID even
if it has higher TSF and the same SSID. If an IBSS is created, create
it with the specified basic-rates, multicast-rate and beacon-interval.
phy <phyname> info
Show capabilities for the specified wireless device.
list
List all wireless devices and their capabilities.
phy
commands
list all known commands and their decimal & hex value
features
phy <phyname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*] [addr <mac-addr>]
Add a new virtual interface with the given configuration.
Valid interface types are: managed, ibss, monitor, mesh, wds.
The flags are only used for monitor interfaces, valid flags are:
none: no special flags
fcsfail: show frames with FCS errors
control: show control frames
otherbss: show frames from other BSSes
cook: use cooked mode
active: use active mode (ACK incoming unicast packets)
mumimo-groupid <GROUP_ID>: use MUMIMO according to a group id
mumimo-follow-mac <MAC_ADDRESS>: use MUMIMO according to a MAC address
The mesh_id is used only for mesh mode.
dev <devname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*] [addr <mac-addr>]
dev <devname> del
Remove this virtual interface
dev <devname> info
Show information for this interface.
dev
List all network interfaces for wireless hardware.
dev <devname> switch freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] [beacons <count>] [block-tx]
dev <devname> switch freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]] [beacons <count>] [block-tx]
Switch the operating channel by sending a channel switch announcement (CSA).
dev <devname> switch channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] [beacons <count>] [block-tx]
help [command]
Print usage for all or a specific command, e.g.
"help wowlan" or "help wowlan enable".
dev <devname> key get <key index> <MAC address>
Retrieve a key and key sequence.
dev <devname> link
Print information about the current connection, if any.
dev <devname> measurement ftm_request <config-file> [timeout=<seconds>] [randomise[=<addr>/<mask>]]
Send an FTM request to the targets supplied in the config file.
Each line in the file represents a target, with the following format:
<addr> bw=<[20|40|80|80+80|160]> cf=<center_freq> [cf1=<center_freq1>] [cf2=<center_freq2>] [ftms_per_burst=<samples per burst>] [ap-tsf] [asap] [bursts_exp=<num of bursts exponent>] [burst_period=<burst period>] [retries=<num of retries>] [burst_duration=<burst duration>] [preamble=<legacy,ht,vht,dmg>] [lci] [civic] [tb] [non_tb]
dev <devname> mesh join <mesh ID> [[freq <freq in MHz> <NOHT|HT20|HT40+|HT40-|80MHz>] [basic-rates <rate in Mbps,rate2,...>]], [mcast-rate <rate in Mbps>] [beacon-interval <time in TUs>] [dtim-period <value>] [vendor_sync on|off] [<param>=<value>]*
Join a mesh with the given mesh ID with frequency, basic-rates,
mcast-rate and mesh parameters. Basic-rates are applied only if
frequency is provided.
dev <devname> mesh leave
Leave a mesh.
dev <devname> mesh_param dump
List all supported mesh parameters
dev <devname> mgmt dump frame <type as hex ab> <pattern as hex ab:cd:..> [frame <type> <pattern>]* [count <frames>]
Register for receiving certain mgmt frames and print them.
Frames are selected by their type and pattern containing
the first several bytes of the frame that should match.
Example: iw dev wlan0 mgmt dump frame 40 00 frame 40 01:02 count 10
dev <devname> mpath probe <destination MAC address> frame <frame>
Inject ethernet frame to given peer overriding the next hop
lookup from mpath table.
.Example: iw dev wlan0 mpath probe xx:xx:xx:xx:xx:xx frame 01:xx:xx:00
dev <devname> mpath get <MAC address>
Get information on mesh path to the given node.
dev <devname> mpath del <MAC address>
Remove the mesh path to the given node.
dev <devname> mpath new <destination MAC address> next_hop <next hop MAC address>
Create a new mesh path (instead of relying on automatic discovery).
dev <devname> mpath set <destination MAC address> next_hop <next hop MAC address>
Set an existing mesh path's next hop.
dev <devname> mpath dump
List known mesh paths.
dev <devname> mpp get <MAC address>
Get information on mesh proxy path to the given node.
dev <devname> mpp dump
List known mesh proxy paths.
wdev <idx> nan start pref <pref> [bands [2GHz] [5GHz]]
wdev <idx> nan stop
wdev <idx> nan config [pref <pref>] [bands [2GHz] [5GHz]]
wdev <idx> nan rm_func cookie <cookie>
wdev <idx> nan add_func type <publish|subscribe|followup> [active] [solicited] [unsolicited] [bcast] [close_range] name <name> [info <info>] [flw_up_id <id> flw_up_req_id <id> flw_up_dest <mac>] [ttl <ttl>] [srf <include|exclude> <bf|list> [bf_idx] [bf_len] <mac1;mac2...>] [rx_filter <str1:str2...>] [tx_filter <str1:str2...>]
dev <devname> ocb join <freq in MHz> <5MHz|10MHz>
Join the OCB mode network.
dev <devname> ocb leave
Leave the OCB mode network.
dev <devname> offchannel <freq> <duration>
Leave operating channel and go to the given channel for a while.
wdev <idx> p2p start
wdev <idx> p2p stop
phy <phyname> channels
Show available channels.
dev <devname> cac channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
dev <devname> cac freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
dev <devname> cac freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
dev <devname> cac trigger channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
dev <devname> cac trigger freq <frequency> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
dev <devname> cac trigger freq <frequency> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
Start or trigger a channel availability check (CAC) looking to look for
radars on the given channel.
dev <devname> cac background channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
dev <devname> cac background freq <frequency> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
dev <devname> cac background freq <frequency> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
Start background channel availability check (CAC) looking to look for
radars on the given channel.
reg set <ISO/IEC 3166-1 alpha2>
Notify the kernel about the current regulatory domain.
reg get
Print out the kernel's current regulatory domain information.
phy <phyname> reg get
Print out the devices' current regulatory domain information.
reg reload
Reload the kernel's regulatory database.
dev <devname> roc start <freq> <time in ms>
dev <devname> scan [-u] [freq <freq>*] [duration <dur>] [ies <hex as 00:11:..>] [meshid <meshid>] [lowpri,flush,ap-force,duration-mandatory] [randomise[=<addr>/<mask>]] [ssid <ssid>*|passive]
Scan on the given frequencies and probe for the given SSIDs
(or wildcard if not given) unless passive scanning is requested.
If -u is specified print unknown data in the scan results.
Specified (vendor) IEs must be well-formed.
dev <devname> scan dump [-u]
Dump the current scan results. If -u is specified, print unknown
data in scan results.
dev <devname> scan trigger [freq <freq>*] [duration <dur>] [ies <hex as 00:11:..>] [meshid <meshid>] [lowpri,flush,ap-force,duration-mandatory,coloc] [randomise[=<addr>/<mask>]] [ssid <ssid>*|passive]
Trigger a scan on the given frequencies with probing for the given
SSIDs (or wildcard if not given) unless passive scanning is requested.
Duration(in TUs), if specified, will be used to set dwell times.
dev <devname> scan abort
Abort ongoing scan
dev <devname> scan sched_start [interval <in_msecs> | scan_plans [<interval_secs:iterations>*] <interval_secs>] [delay <in_secs>] [freqs <freq>+] [matches [ssid <ssid>]+]] [active [ssid <ssid>]+|passive] [randomise[=<addr>/<mask>]] [coloc] [flush]
Start a scheduled scan at the specified interval on the given frequencies
with probing for the given SSIDs (or wildcard if not given) unless passive
scanning is requested. If matches are specified, only matching results
will be returned.
dev <devname> scan sched_stop
Stop an ongoing scheduled scan.
dev <devname> get mesh_param [<param>]
Retrieve mesh parameter (run command without any to see available ones).
phy <phyname> get txq
Get TXQ parameters.
dev <devname> get power_save
Retrieve power save state.
dev <devname> set bitrates [legacy-<2.4|5> <legacy rate in Mbps>*] [ht-mcs-<2.4|5> <MCS index>*] [vht-mcs-<2.4|5> [he-mcs-<2.4|5|6> <NSS:MCSx,MCSy... | NSS:MCSx-MCSy>*] [sgi-2.4|lgi-2.4] [sgi-5|lgi-5] [he-gi-<2.4|5|6> <0.8|1.6|3.2>] [he-ltf-<2.4|5|6> <1|2|4>]
Sets up the specified rate masks.
Not passing any arguments would clear the existing mask (if any).
dev <devname> set monitor <flag>*
Set monitor flags. Valid flags are:
none: no special flags
fcsfail: show frames with FCS errors
control: show control frames
otherbss: show frames from other BSSes
cook: use cooked mode
active: use active mode (ACK incoming unicast packets)
mumimo-groupid <GROUP_ID>: use MUMIMO according to a group id
mumimo-follow-mac <MAC_ADDRESS>: use MUMIMO according to a MAC address
dev <devname> set meshid <meshid>
dev <devname> set type <type>
Set interface type/mode.
Valid interface types are: managed, ibss, monitor, mesh, wds.
dev <devname> set 4addr <on|off>
Set interface 4addr (WDS) mode.
dev <devname> set noack_map <map>
Set the NoAck map for the TIDs. (0x0009 = BE, 0x0006 = BK, 0x0030 = VI, 0x00C0 = VO)
dev <devname> set peer <MAC address>
Set interface WDS peer.
dev <devname> set mcast_rate <rate in Mbps>
Set the multicast bitrate.
dev <devname> set tidconf [peer <MAC address>] tids <mask> [override] [sretry <num>] [lretry <num>] [ampdu [on|off]] [amsdu [on|off]] [noack [on|off]] [rtscts [on|off]][bitrates <type [auto|fixed|limit]> [legacy-<2.4|5> <legacy rate in Mbps>*] [ht-mcs-<2.4|5> <MCS index>*] [vht-mcs-<2.4|5> <NSS:MCSx,MCSy... | NSS:MCSx-MCSy>*] [sgi-2.4|lgi-2.4] [sgi-5|lgi-5]]
Setup per-node TID specific configuration for TIDs selected by bitmask.
If MAC address is not specified, then supplied TID configuration
applied to all the peers.
Examples:
$ iw dev wlan0 set tidconf tids 0x1 ampdu off
$ iw dev wlan0 set tidconf tids 0x5 ampdu off amsdu off rtscts on
$ iw dev wlan0 set tidconf tids 0x3 override ampdu on noack on rtscts on
$ iw dev wlan0 set tidconf peer xx:xx:xx:xx:xx:xx tids 0x1 ampdu off tids 0x3 amsdu off rtscts on
$ iw dev wlan0 set tidconf peer xx:xx:xx:xx:xx:xx tids 0x2 bitrates auto
$ iw dev wlan0 set tidconf peer xx:xx:xx:xx:xx:xx tids 0x2 bitrates limit vht-mcs-5 4:9
dev <devname> set mesh_param <param>=<value> [<param>=<value>]*
Set mesh parameter (run command without any to see available ones).
phy <phyname> set name <new name>
Rename this wireless device.
phy <phyname> set freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz|160MHz|320MHz]
phy <phyname> set freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
Set frequency/channel the hardware is using, including HT
configuration.
dev <devname> set freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz|160MHz|320MHz]
dev <devname> set freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
phy <phyname> set freq_khz <freq> [1MHz|2MHz|4MHz|8MHz|16MHz]
phy <phyname> set freq_khz <control freq> [1|2|4|8|16] [<center1_freq> [<center2_freq>]]
Set frequency in kHz the hardware is using
configuration.
dev <devname> set freq_khz <freq> [1MHz|2MHz|4MHz|8MHz|16MHz]
dev <devname> set freq_khz <control freq> [1|2|4|8|16] [<center1_freq> [<center2_freq>]]
phy <phyname> set channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz|160MHz]
dev <devname> set channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz|160MHz]
phy <phyname> set frag <fragmentation threshold|off>
Set fragmentation threshold.
phy <phyname> set rts <rts threshold|off>
Set rts threshold.
phy <phyname> set retry [short <limit>] [long <limit>]
Set retry limit.
phy <phyname> set netns { <pid> | name <nsname> }
Put this wireless device into a different network namespace:
<pid> - change network namespace by process id
<nsname> - change network namespace by name from /var/run/netns
or by absolute path (man ip-netns)
phy <phyname> set coverage <coverage class>
Set coverage class (1 for every 3 usec of air propagation time).
Valid values: 0 - 255.
phy <phyname> set distance <auto|distance>
Enable ACK timeout estimation algorithm (dynack) or set appropriate
coverage class for given link distance in meters.
To disable dynack set valid value for coverage class.
Valid values: 0 - 114750
phy <phyname> set txpower <auto|fixed|limit> [<tx power in mBm>]
Specify transmit power level and setting type.
dev <devname> set txpower <auto|fixed|limit> [<tx power in mBm>]
Specify transmit power level and setting type.
phy <phyname> set antenna <bitmap> | all | <tx bitmap> <rx bitmap>
Set a bitmap of allowed antennas to use for TX and RX.
The driver may reject antenna configurations it cannot support.
phy <phyname> set txq limit <packets> | memory_limit <bytes> | quantum <bytes>
Set TXQ parameters. The limit and memory_limit are global queue limits
for the whole phy. The quantum is the DRR scheduler quantum setting.
Valid values: 1 - 2**32
dev <devname> set power_save <on|off>
Set power save state to on or off.
phy <phyname> set sar_specs <sar type> <range index:sar power>*
Set SAR specs corresponding to SAR capa of wiphy.
dev <devname> survey dump [--radio]
List all gathered channel survey data
dev <devname> vendor send <oui> <subcmd> <filename|-|hex data>
dev <devname> vendor recv <oui> <subcmd> <filename|-|hex data>
dev <devname> vendor recvbin <oui> <subcmd> <filename|-|hex data>
phy <phyname> wowlan enable [any] [disconnect] [magic-packet] [gtk-rekey-failure] [eap-identity-request] [4way-handshake] [rfkill-release] [net-detect [interval <in_msecs> | scan_plans [<interval_secs:iterations>*] <interval_secs>] [delay <in_secs>] [freqs <freq>+] [matches [ssid <ssid>]+]] [active [ssid <ssid>]+|passive] [randomise[=<addr>/<mask>]] [coloc] [flush]] [tcp <config-file>] [patterns [offset1+]<pattern1> ...]
Enable WoWLAN with the given triggers.
Each pattern is given as a bytestring with '-' in places where any byte
may be present, e.g. 00:11:22:-:44 will match 00:11:22:33:44 and
00:11:22:33:ff:44 etc.
Offset and pattern should be separated by '+', e.g. 18+43:34:00:12 will match '43:34:00:12' after 18 bytes of offset in Rx packet.
The TCP configuration file contains:
source=ip[:port]
dest=ip:port@mac
data=<hex data packet>
data.interval=seconds
[wake=<hex packet with masked out bytes indicated by '-'>]
[data.seq=len,offset[,start]]
[data.tok=len,offset,<token stream>]
Net-detect configuration example:
iw phy0 wowlan enable net-detect interval 5000 delay 30 freqs 2412 2422 matches ssid foo ssid bar
phy <phyname> wowlan disable
Disable WoWLAN.
phy <phyname> wowlan show
Show WoWLAN status.
dev <devname> station get <MAC address>
Get information for a specific station.
dev <devname> station del <MAC address> [subtype <subtype>] [reason-code <code>]
Remove the given station entry (use with caution!)
Example subtype values: 0xA (disassociation), 0xC (deauthentication)
dev <devname> station dump [-v]
List all stations known, e.g. the AP on managed interfaces
dev <devname> station set <MAC address> txpwr <auto|limit> [<tx power dBm>]
Set Tx power for this station.
dev <devname> station set <MAC address> airtime_weight <weight>
Set airtime weight for this station.
dev <devname> station set <MAC address> mesh_power_mode <active|light|deep>
Set link-specific mesh power mode for this station
dev <devname> station set <MAC address> vlan <ifindex>
Set an AP VLAN for this station.
dev <devname> station set <MAC address> plink_action <open|block>
Set mesh peer link action for this station (peer).
Commands that use the netdev ('dev') can also be given the
'wdev' instead to identify the device.
You can omit the 'phy' or 'dev' if the identification is unique,
e.g. "iw wlan0 info" or "iw phy0 info". (Don't when scripting.)
Do NOT screenscrape this tool, we don't consider its output stable.
malloy@fedora:~$ sudo dnf install wireless-tools iw
Dernière vérification de l’expiration des métadonnées effectuée il y a 0:30:24 le jeu. 25 avril 2024 13:12:11.
Aucune correspondance pour le paramètre: wireless-tools
Le paquet iw-6.7-2.fc40.x86_64 est déjà installé.
Erreur : Impossible de trouver une correspondance: wireless-tools
malloy@fedora:~$ sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
Dernière vérification de l’expiration des métadonnées effectuée il y a 0:30:49 le jeu. 25 avril 2024 13:12:11.
rpmfusion-free-release-40.noarch.rpm 31 kB/s | 11 kB 00:00
rpmfusion-nonfree-release-40.noarch.rpm 36 kB/s | 11 kB 00:00
Le paquet rpmfusion-free-release-40-1.noarch est déjà installé.
Le paquet rpmfusion-nonfree-release-40-1.noarch est déjà installé.
Dépendances résolues.
Rien à faire.
Terminé !
malloy@fedora:~$ sudo dnf install wireless-tools
Dernière vérification de l’expiration des métadonnées effectuée il y a 0:30:58 le jeu. 25 avril 2024 13:12:11.
Aucune correspondance pour le paramètre: wireless-tools
Erreur : Impossible de trouver une correspondance: wireless-tools
malloy@fedora:~$ sudo dnf install dnf-plugins-core
Dernière vérification de l’expiration des métadonnées effectuée il y a 0:31:19 le jeu. 25 avril 2024 13:12:11.
Le paquet dnf-plugins-core-4.6.0-1.fc40.noarch est déjà installé.
Dépendances résolues.
Rien à faire.
Terminé !
malloy@fedora:~$ sudo dnf copr enable atim/wireless-tools
Activation d’un dépôt Copr. Veuillez noter que ce dépôt n’est pas
partie intégrante de la distribution, et que la qualité pourrait varier.
Le projet Fedora n’exerce aucun pouvoir sur le contenu de ce dépôt au delà
des règles précisées dans la FAQ Copr
<https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr>,
et les paquets ne sont tenus à aucun niveau de qualité ou de sécurité.
Veuillez ne pas signaler de bogues à propos de ces paquets dans le Bugzilla de Fedora.
En cas de problèmes, contactez le propriétaire de ce dépôt.
Do you really want to enable copr.fedorainfracloud.org/atim/wireless-tools? [y/N]: y
Erreur : Il n'a pas été possible d'activer ce projet.
Le projet atim/wireless-tools n'existe pas.
malloy@fedora:~$ sudo dnf install wireless-tools
Dernière vérification de l’expiration des métadonnées effectuée il y a 0:31:48 le jeu. 25 avril 2024 13:12:11.
Aucune correspondance pour le paramètre: wireless-tools
Erreur : Impossible de trouver une correspondance: wireless-tools
malloy@fedora:~$ sudo dnf install iw
Dernière vérification de l’expiration des métadonnées effectuée il y a 0:32:14 le jeu. 25 avril 2024 13:12:11.
Le paquet iw-6.7-2.fc40.x86_64 est déjà installé.
Dépendances résolues.
Rien à faire.
Terminé !
malloy@fedora:~$ iwconfig wlan0
bash: iwconfig: commande inconnue...
malloy@fedora:~$ ip link show wlan0
Device "wlan0" does not exist.
malloy@fedora:~$ sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
Dernière vérification de l’expiration des métadonnées effectuée il y a 0:33:03 le jeu. 25 avril 2024 13:12:11.
rpmfusion-free-release-40.noarch.rpm 35 kB/s | 11 kB 00:00
rpmfusion-nonfree-release-40.noarch.rpm 36 kB/s | 11 kB 00:00
Le paquet rpmfusion-free-release-40-1.noarch est déjà installé.
Le paquet rpmfusion-nonfree-release-40-1.noarch est déjà installé.
Dépendances résolues.
Rien à faire.
Terminé !
malloy@fedora:~$ sudo dnf install wireless-tools
Dernière vérification de l’expiration des métadonnées effectuée il y a 0:33:12 le jeu. 25 avril 2024 13:12:11.
Aucune correspondance pour le paramètre: wireless-tools
Erreur : Impossible de trouver une correspondance: wireless-tools
malloy@fedora:~$ iw dev wlan0 link
command failed: No such device (-19)
malloy@fedora:~$ ls /sys/class/net
enp0s31f6 ipv6leakintrf0 lo tun0
malloy@fedora:~$ sudo ip link set wlan0 up
Cannot find device "wlan0"
malloy@fedora:~$
|
9c967bc0836ee8641ac4b2c4738b38d6
|
{
"intermediate": 0.351505309343338,
"beginner": 0.38853323459625244,
"expert": 0.25996148586273193
}
|
47,993
|
In this below code, within the method 'select_action' within the class PPOAgent, I am getting the proper result of 'scaled_action' with in the bounds from the forward method within the class Actor, but my actual problem is that, I am not getting the result of 'scaled_action' with proper variation ranges with in the bounds(bound_low and bound_high). Here the scaled_action consists of 13 action space datas among the 13 variables, first 5 variables having very low range of distribution with in th bounds (low, high) as (0.18e-6, 0.2e-6) for these first 5 variables i am getting the result of 'scaled_action' as satisfactory, but for the remaining 8 action data the available bounds range of distributions are large, but i am not getting the results as much variations with in the bounds. The 'action_probs' from the forward method from the Class Actor provides proper scaled action space data with properly distributed action space with in bounds for each timesteps in the training loop, but the resultat scaled action from the method 'select_action' was not given wide range of variations in each timesteps in each episodes with in the RL training loop. how can i get the 'scaled_action' result with very wide distribution of values wiht in the specified bounds. i tried with the different epsilon values but nothing can be improved in the results. please address my issue and provide me the suggestion to rectify my problem and provide me the necessary updated code to solve my existing problem.
class Actor(torch.nn.Module):
def __init__(self, gnn_model):
super(Actor, self).__init__()
self.gnn = gnn_model
# Bounds are converted to tensors for ease of calculation
self.bounds_low = torch.tensor([0.18e-6, 0.18e-6, 0.18e-6, 0.18e-6, 0.18e-6,
0.5e-6, 0.5e-6, 0.5e-6, 0.5e-6, 0.5e-6,
15e-6, 0.1e-12, 0.8], dtype=torch.float32)
self.bounds_high = torch.tensor([0.2e-6, 0.2e-6, 0.2e-6, 0.2e-6, 0.2e-6,
50e-6, 50e-6, 50e-6, 50e-6, 50e-6,
30e-6, 10e-12, 1.4], dtype=torch.float32)
def forward(self, state):
node_features_tensor, _, edge_index = state
processed_features = self.gnn(node_features_tensor, edge_index)
# Specific (row, column) indices for action values, converted to 0-based indexing
action_indices = [
(10, 19), (16, 19), (5, 19), (3, 19), (0, 19), (10, 18),
(16, 18), (5, 18), (3, 18), (0, 18), (17, 20), (18, 21), (19, 22)
]
# For gathering specific indices, we first convert action_indices to a tensor format that can be used with gather or indexing
action_indices_tensor = torch.tensor(action_indices, dtype=torch.long).t()
selected_features = processed_features[action_indices_tensor[0], action_indices_tensor[1]]
# Use sigmoid or tanh followed by scaling to the specific bounds
# This assumes outputs are approximately normalized or that such a transformation is desirable.
scaled_action = torch.sigmoid(selected_features) # Sigmoid maps to (0, 1)
# Alternatively, for a wider range before scaling, you could use:
# scaled_action = (torch.tanh(selected_features) + 1) / 2 # Maps outputs to (0, 1)
# Scale the min-max scaled features to fit within the specified bounds
scaled_actions = self.bounds_low + (self.bounds_high - self.bounds_low) * scaled_action
return scaled_actions
class PPOAgent:
def __init__(self, gnn_model, state_dim, action_space, lr_actor, lr_critic, gamma, gae_lambda, epsilon, policy_clip, epochs, entropy_coef):
self.gamma = gamma
self.gae_lambda = gae_lambda
self.epsilon = epsilon
self.policy_clip = policy_clip
self.epochs = epochs
self.entropy_coef = entropy_coef # Dynamic entropy coefficient
self.actor = Actor(gnn_model)
self.critic = Critic()
self.optimizer_actor = optim.Adam(self.actor.parameters(), lr=lr_actor)
self.optimizer_critic = optim.Adam(self.critic.parameters(), lr=lr_critic)
self.action_space = action_space # Assume continuous
def select_action(self, state, performance_metrics):
action_probs = self.actor(state)
factor = 0.01
# Adjust epsilon based on the spread of bounds
bounds_range = self.actor.bounds_high - self.actor.bounds_low
# Ensure the variance is at least 1D
epsilon = 1e-2 + bounds_range * factor
variances = action_probs.var(dim=0, keepdim=True).expand(action_probs.shape[0]) + epsilon
cov_mat = torch.diag(variances) # Form an [13, 13] covariance matrix with variances on the diagonal
# Define the Multivariate Normal distribution
dist = MultivariateNormal(action_probs, cov_mat)
# Sample an action
raw_action = dist.sample()
# Scale the raw sampled action to fit within the specified bounds
min_values = self.actor.bounds_low
max_values = self.actor.bounds_high
# Adjusted scaling using tanh
scaled_action = min_values + ((torch.tanh(raw_action) + 1) / 2) * (max_values - min_values)
log_prob = dist.log_prob(raw_action) - torch.log(max_values - min_values).sum() # Compute log probability with raw action
return scaled_action.detach().numpy().squeeze(), log_prob.item(), performance_metrics
|
b7c6c6d90a18ab2263729ac96cab3843
|
{
"intermediate": 0.3525204062461853,
"beginner": 0.47542092204093933,
"expert": 0.17205864191055298
}
|
47,994
|
[Iks_SessionServer] Db error: MySqlConnector.MySqlException (0x80004005): Access denied for user 'u29159_skins'@'45.136.204.103' (using password: YES)
at MySqlConnector.Core.ServerSession.ReceiveReplyAsync(IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/ServerSession.cs:line 894
в чем ошибка?
|
f7b61f3ec1ba81cc99fa1da8f2f534da
|
{
"intermediate": 0.551041841506958,
"beginner": 0.2608267068862915,
"expert": 0.1881314367055893
}
|
47,995
|
у меня вышла проблема как решить
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks commit -q -F C:\Temp\gufgunkq.2lg
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --set-upstream origin feturte/nameFolder:feturte/nameFolder
POST git-receive-pack (chunked)
error: RPC failed; curl 55 Send failure: Connection was aborted
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Pushing to https://git.zarnitza.tech/team3/forsage.git
Everything up-to-date
Выполнено с ошибками, см. выше.
|
e69cf5831ff85d55513be600f373bb6c
|
{
"intermediate": 0.3076338469982147,
"beginner": 0.37878796458244324,
"expert": 0.31357818841934204
}
|
47,996
|
In this below code, within the method 'select_action' within the class PPOAgent, I am getting the proper result of 'scaled_action' with in the bounds from the forward method within the class Actor, but my actual problem is that, I am not getting the result of 'scaled_action' with proper variation ranges with in the bounds(bound_low and bound_high). Here the scaled_action consists of 13 action space datas among the 13 variables, first 5 variables having very low range of distribution with in th bounds (low, high) as (0.18e-6, 0.2e-6) for these first 5 variables i am getting the result of 'scaled_action' as satisfactory, but for the remaining 8 action data the available bounds range of distributions are large, but i am not getting the results as much variations with in the bounds. The 'action_probs' from the forward method from the Class Actor provides proper scaled action space data with properly distributed action space with in bounds for each timesteps in the training loop, but the resultat scaled action from the method 'select_action' was not given wide range of variations in each timesteps in each episodes with in the RL training loop. how can i get the 'scaled_action' result with very wide distribution of values wiht in the specified bounds. i tried with the different epsilon values but nothing can be improved in the results. please address my issue and provide me the suggestion to rectify my problem and provide me the necessary updated code to solve my existing problem.
class Actor(torch.nn.Module):
def __init__(self, gnn_model):
super(Actor, self).__init__()
self.gnn = gnn_model
# Bounds are converted to tensors for ease of calculation
self.bounds_low = torch.tensor([0.18e-6, 0.18e-6, 0.18e-6, 0.18e-6, 0.18e-6,
0.5e-6, 0.5e-6, 0.5e-6, 0.5e-6, 0.5e-6,
15e-6, 0.1e-12, 0.8], dtype=torch.float32)
self.bounds_high = torch.tensor([0.2e-6, 0.2e-6, 0.2e-6, 0.2e-6, 0.2e-6,
50e-6, 50e-6, 50e-6, 50e-6, 50e-6,
30e-6, 10e-12, 1.4], dtype=torch.float32)
class PPOAgent:
def __init__(self, gnn_model, state_dim, action_space, lr_actor, lr_critic, gamma, gae_lambda, epsilon, policy_clip, epochs, entropy_coef):
self.gamma = gamma
self.gae_lambda = gae_lambda
self.epsilon = epsilon
self.policy_clip = policy_clip
self.epochs = epochs
self.entropy_coef = entropy_coef # Dynamic entropy coefficient
self.actor = Actor(gnn_model)
self.critic = Critic()
self.optimizer_actor = optim.Adam(self.actor.parameters(), lr=lr_actor)
self.optimizer_critic = optim.Adam(self.critic.parameters(), lr=lr_critic)
self.action_space = action_space # Assume continuous
def select_action(self, state, performance_metrics):
action_probs = self.actor(state)
# Ensure the variance is at least 1D
epsilon = 1e-2
variances = action_probs.var(dim=0, keepdim=True).expand(action_probs.shape[0]) + epsilon
cov_mat = torch.diag(variances) # Form an [13, 13] covariance matrix with variances on the diagonal
# Define the Multivariate Normal distribution
dist = MultivariateNormal(action_probs, cov_mat)
# Sample an action
raw_action = dist.sample()
# Scale the raw sampled action to fit within the specified bounds
min_values = self.actor.bounds_low
max_values = self.actor.bounds_high
scaled_action = min_values + ((torch.tanh(raw_action) + 1) / 2) * (max_values - min_values)
log_prob = dist.log_prob(raw_action) - torch.log(max_values - min_values).sum() # Compute log probability with raw action
return scaled_action.detach().numpy().squeeze(), log_prob.item(), performance_metrics
|
6522e71792c51e27ef478408080cdf23
|
{
"intermediate": 0.4037015736103058,
"beginner": 0.39816638827323914,
"expert": 0.1981320083141327
}
|
47,997
|
User
Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @559eecfe
Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @559eecfe
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.0-all.zip
what chnages do i need to make
|
0cf460b8f67270ede6d663f6fa506b79
|
{
"intermediate": 0.48074162006378174,
"beginner": 0.2921046316623688,
"expert": 0.22715377807617188
}
|
47,998
|
Caused by: org.gradle.api.InvalidUserCodeException: Querying the mapped value of map(java.io.File property(org.gradle.api.file.Directory, fixed(class org.gradle.api.internal.file.DefaultFilePropertyFactory$FixedDirectory, /home/sourav/Downloads/op/AIMeCAST-andriodapp-a8bbcfd55c39/app/build/generated/ap_generated_sources/amcoeDebug/out)) org.gradle.api.internal.file.DefaultFilePropertyFactory$ToFileTransformer@6c052d9f) before task ':app:compileAmcoeDebugJavaWithJavac' has completed is not supported
|
4664d6bd43684eaded29955a31132fb0
|
{
"intermediate": 0.6033127307891846,
"beginner": 0.20252153277397156,
"expert": 0.1941656470298767
}
|
47,999
|
def rawwrite(fname, data):
with open(fname, 'wb') as fout:
fout.write(data)
def get_crop_raw(baseline_src, baseline_dst):
baseline_files = os.listdir(baseline_src)
for file in baseline_files:
file_path = os.path.join(baseline_src, file)
mat = np.fromfile(file_path, dtype=np.float32)
mat = mat.reshape(1000, 900)
start_point_x = int((1000-512) / 2)
start_point_y = int((900-512) / 2)
center_mat = mat[start_point_x:start_point_x+512, start_point_y:start_point_y+512]
mat_name = file.replace('metalart', 'metalart_centercrop')
#mat_name = mat_name.replace('900x1000', '512x512')
rawwrite(os.path.join(baseline_dst, mat_name), center_mat)
在调用rawwrite函数时,为什么报错‘ValueError: ndarray is not C-contiguous’
|
45ed47ee54dc0c8970376b847f0e92f4
|
{
"intermediate": 0.4344457983970642,
"beginner": 0.3650721311569214,
"expert": 0.20048204064369202
}
|
48,000
|
please add detailed comments to this code: from cryptography.fernet import Fernet
input_file_path = r"C:\Users\adam\Desktop\note1.txt"
encrypted_file_path = r"C:\Users\adam\Desktop\note2.txt"
decrypted_file_path = r"C:\Users\adam\Desktop\note3.txt"
key_file_path = r"C:\Users\adam\Desktop\key.key" # Path to save the key
def generate_and_save_key():
key = Fernet.generate_key()
with open(key_file_path, "wb") as key_file:
key_file.write(key)
return key
def load_key():
return open(key_file_path, "rb").read()
def encrypt_file(file_path, encrypted_file_path, key):
f = Fernet(key)
with open(file_path, "rb") as file:
file_data = file.read()
encrypted_data = f.encrypt(file_data)
with open(encrypted_file_path, "wb") as file:
file.write(encrypted_data)
def decrypt_file(encrypted_file_path, decrypted_file_path, key):
f = Fernet(key)
with open(encrypted_file_path, "rb") as file:
encrypted_data = file.read()
decrypted_data = f.decrypt(encrypted_data)
with open(decrypted_file_path, "wb") as file:
file.write(decrypted_data)
# Generate and save the key only once
generate_and_save_key()
# Load the key
key = load_key()
# Encrypt the file
encrypt_file(input_file_path, encrypted_file_path, key)
print(f"{input_file_path} has been encrypted.")
# Decrypt the file
decrypt_file(encrypted_file_path, decrypted_file_path, key)
print(f"{decrypted_file_path} has been decrypted.")
|
0aa77bc31246c7b64a0fec3afac59f0f
|
{
"intermediate": 0.3551202714443207,
"beginner": 0.49049052596092224,
"expert": 0.15438926219940186
}
|
48,001
|
Hi there, please be a senior sapui5 developer and answer my following questions with working code examples.
|
75fd1457e92683434696ad5c31a552b7
|
{
"intermediate": 0.42116406559944153,
"beginner": 0.2712341248989105,
"expert": 0.3076017498970032
}
|
48,002
|
I have this array in typescript:
[{
group: 'Bachlor',
items: [
{ id: 11, name: '11g' },
{ id: 12, name: '12g' },
{ id: 13, name: '13g' }
]
}
{
group: 'Maga',
items: [
{ id: 14, name: '14g' },
{ id: 15, name: '15g' },
{ id: 16, name: '16g' }
]
}]
I need to find id of element wich has name 15g
|
69f4f42b2c78f82f1198b5cf9327ad31
|
{
"intermediate": 0.3810303509235382,
"beginner": 0.3838074505329132,
"expert": 0.2351621389389038
}
|
48,003
|
Rewrite the java code to be diffrent. Don't include comments
|
50555b3b752c0bf24525068c8c08b608
|
{
"intermediate": 0.3607550859451294,
"beginner": 0.35672351717948914,
"expert": 0.2825213670730591
}
|
48,004
|
comment mentionner le schéma dans public pour les tables importées : LOAD DATABASE
FROM mysql://ariel@localhost/Anostic
INTO postgresql://ariel:@localhost:5432/Anostic
WITH include drop, create tables, create indexes, reset sequences,
workers = 8, concurrency = 1,
multiple readers per thread, rows per range = 50000
SET MySQL PARAMETERS
net_read_timeout = '120',
net_write_timeout = '120'
CAST type bigint when (= precision 20) to bigserial drop typemod
INCLUDING ONLY TABLE NAMES MATCHING 'academies', 'champs', 'departements', 'syndicats', 'syndicats_deps', 'rg';
|
7588d45a715b2df3aee0c87b68dfed30
|
{
"intermediate": 0.43839558959007263,
"beginner": 0.3563958406448364,
"expert": 0.20520853996276855
}
|
48,005
|
please add detailed comments to this code: from cryptography.fernet import Fernet
input_file_path = r"C:\Users\adam\Desktop\note1.txt"
encrypted_file_path = r"C:\Users\adam\Desktop\note2.txt"
decrypted_file_path = r"C:\Users\adam\Desktop\note3.txt"
key_file_path = r"C:\Users\adam\Desktop\key.key" # Path to save the key
def generate_and_save_key():
key = Fernet.generate_key()
with open(key_file_path, “wb”) as key_file:
key_file.write(key)
return key
def load_key():
return open(key_file_path, “rb”).read()
def encrypt_file(file_path, encrypted_file_path, key):
f = Fernet(key)
with open(file_path, “rb”) as file:
file_data = file.read()
encrypted_data = f.encrypt(file_data)
with open(encrypted_file_path, “wb”) as file:
file.write(encrypted_data)
def decrypt_file(encrypted_file_path, decrypted_file_path, key):
f = Fernet(key)
with open(encrypted_file_path, “rb”) as file:
encrypted_data = file.read()
decrypted_data = f.decrypt(encrypted_data)
with open(decrypted_file_path, “wb”) as file:
file.write(decrypted_data)
# Generate and save the key only once
generate_and_save_key()
# Load the key
key = load_key()
# Encrypt the file
encrypt_file(input_file_path, encrypted_file_path, key)
print(f"{input_file_path} has been encrypted.“)
# Decrypt the file
decrypt_file(encrypted_file_path, decrypted_file_path, key)
print(f”{decrypted_file_path} has been decrypted.")
|
4d107af27c0136cb9586fc3b4833e2e5
|
{
"intermediate": 0.3033972382545471,
"beginner": 0.4835512042045593,
"expert": 0.21305157244205475
}
|
48,006
|
Write a program that accepts an integer between 1 and 7 from the user. Use a switch statement to print out the corresponding weekday. Print “Out of range” if the number is less than 1 or greater than 7. Do not forget to include “break” statements in each of your cases. .java
|
e9d38f8b3a4ba48f76fc2f621d4a8a35
|
{
"intermediate": 0.2754460871219635,
"beginner": 0.537533700466156,
"expert": 0.18702027201652527
}
|
48,007
|
In this below code, within the method 'select_action' within the class PPOAgent, I am getting the proper result of 'scaled_action' with in the bounds from the forward method within the class Actor, but my actual problem is that, I am not getting the result of 'scaled_action' with proper variation ranges with in the bounds(bound_low and bound_high). Here the scaled_action consists of 13 action space datas among the 13 variables, first 5 variables having very low range of distribution with in th bounds (low, high) as (0.18e-6, 0.2e-6) for these first 5 variables i am getting the result of 'scaled_action' as satisfactory, but for the remaining 8 action data the available bounds range of distributions are large, but i am not getting the results as much variations with in the bounds. The 'action_probs' from the forward method from the Class Actor provides proper scaled action space data with properly distributed action space with in bounds for each timesteps in the training loop, but the resultat scaled action from the method 'select_action' was not given wide range of variations in each timesteps in each episodes with in the RL training loop. how can i get the 'scaled_action' result with very wide distribution of values wiht in the specified bounds. i tried with the different epsilon values but nothing can be improved in the results. please address my issue and provide me the suggestion to rectify my problem and provide me the necessary updated code to solve my existing problem.
I previously implemented the actor forward method by returning mean and std, is it necessary to implement the mean and std or can i continue with the below exixting code for my continuous action space.
class Actor(torch.nn.Module):
def __init__(self, gnn_model):
super(Actor, self).__init__()
self.gnn = gnn_model
# Bounds are converted to tensors for ease of calculation
self.bounds_low = torch.tensor([0.18e-6, 0.18e-6, 0.18e-6, 0.18e-6, 0.18e-6,
0.5e-6, 0.5e-6, 0.5e-6, 0.5e-6, 0.5e-6,
15e-6, 0.1e-12, 0.8], dtype=torch.float32)
self.bounds_high = torch.tensor([0.2e-6, 0.2e-6, 0.2e-6, 0.2e-6, 0.2e-6,
50e-6, 50e-6, 50e-6, 50e-6, 50e-6,
30e-6, 10e-12, 1.4], dtype=torch.float32)
def forward(self, state):
node_features_tensor, _, edge_index = state
processed_features = self.gnn(node_features_tensor, edge_index)
# Specific (row, column) indices for action values, converted to 0-based indexing
action_indices = [
(10, 19), (16, 19), (5, 19), (3, 19), (0, 19), (10, 18),
(16, 18), (5, 18), (3, 18), (0, 18), (17, 20), (18, 21), (19, 22)
]
# For gathering specific indices, we first convert action_indices to a tensor format that can be used with gather or indexing
action_indices_tensor = torch.tensor(action_indices, dtype=torch.long).t()
selected_features = processed_features[action_indices_tensor[0], action_indices_tensor[1]]
# Perform min-max scaling to map selected features to the range defined by bounds
min_values = torch.min(selected_features, dim=0)[0]
max_values = torch.max(selected_features, dim=0)[0]
scaled_action = (selected_features - min_values) / (max_values - min_values)
# Scale the min-max scaled features to fit within the specified bounds
scaled_actions = self.bounds_low + (self.bounds_high - self.bounds_low) * scaled_action
return scaled_actions
class PPOAgent:
def __init__(self, gnn_model, state_dim, action_space, lr_actor, lr_critic, gamma, gae_lambda, epsilon, policy_clip, epochs, entropy_coef):
self.gamma = gamma
self.gae_lambda = gae_lambda
self.epsilon = epsilon
self.policy_clip = policy_clip
self.epochs = epochs
self.entropy_coef = entropy_coef # Dynamic entropy coefficient
self.actor = Actor(gnn_model)
self.critic = Critic()
self.optimizer_actor = optim.Adam(self.actor.parameters(), lr=lr_actor)
self.optimizer_critic = optim.Adam(self.critic.parameters(), lr=lr_critic)
self.action_space = action_space # Assume continuous
def select_action(self, state, performance_metrics):
action_probs = self.actor(state)
# Ensure the variance is at least 1D
epsilon = 1e-2
variances = action_probs.var(dim=0, keepdim=True).expand(action_probs.shape[0]) + epsilon
cov_mat = torch.diag(variances) # Form an [13, 13] covariance matrix with variances on the diagonal
# Define the Multivariate Normal distribution
dist = MultivariateNormal(action_probs, cov_mat)
# Sample an action
raw_action = dist.sample()
# Scale the raw sampled action to fit within the specified bounds
min_values = self.actor.bounds_low
max_values = self.actor.bounds_high
scaled_action = min_values + ((torch.tanh(raw_action) + 1) / 2) * (max_values - min_values)
log_prob = dist.log_prob(raw_action) - torch.log(max_values - min_values).sum() # Compute log probability with raw action
return scaled_action.detach().numpy().squeeze(), log_prob.item(), performance_metrics
|
09cb3874eee6c55a0181c90fa1c12804
|
{
"intermediate": 0.42116647958755493,
"beginner": 0.41930535435676575,
"expert": 0.15952815115451813
}
|
48,008
|
Analysis and prediction of SuperEnalotto winning numbers using Machine Learning techniques and Genetic Algorithms
Step 1: Data extraction and preprocessing from the web
Use the Scrapy method to scrape the website https://www.estrazionedellotto.it/superenalotto/archivio-superenalotto and extract the table with the results of the last 90 SuperEnalotto draws.
Correctly identify the table on the website and extract the main dates and numbers for each draw.
Generate a DataFrame with this information and assign appropriate names to the columns, such as "Date" and "Numbers."
Clean the data if necessary and format the date columns to facilitate later analysis.
Step 2: Generation of training and testing matrices.
Separate the dates and main numbers into "X" and "y" matrices, respectively, in the appropriate format to train a Machine Learning model.
Split the data into a training set and a test set, using 80% of the data for training and the remaining 20% for testing.
Step 3: Statistical analysis of the data
Perform a statistical analysis of the last 90 draws of the Italian SuperEnalotto lottery, identifying the most selected numbers, patterns and trends.
Use graphs and descriptive statistics to better visualize and understand data.
Determine if there are "hot" (more frequent) or "cold" (less frequent) numbers and how they might affect predictions.
Step 4: Design and train the initial LSTM model
Design a Long Term Recurrent Neural Network (LSTM) model with an LSTM layer, a Dropout layer and a dense output layer with 6 units and the softmax activation function.
Compile the model using the Adam optimizer and the categorical cross entropy loss function.
Train the model using the training set.
Step 5: Optimization of the model with Genetic Algorithm
Use a genetic algorithm to optimize the hyperparameters of the LSTM model, such as the number of units in the LSTM layer and the Dropout rate.
Define the limits and precision of the hyperparameters to optimize.
Initialize the genetic algorithm and run it to find the best hyperparameter configuration.
Step 6: Training the optimized LSTM model
Train the optimized model with the new hyperparameters using the training set.
Step 7: Prediction and justification
Make predictions using the test set.
Order the predictions from highest to lowest probability.
Select the 6 predictions with the highest probability and create three different combinations:
The first combination will contain the 6 predictions with the highest probability.
The second combination will contain the 5 predictions with the highest probability plus the first number in the sorted list.
The third combination will contain the 4 predictions with the highest probability plus the first two numbers of the ordered list.
Step 8: Final prediction with the optimized model
Make predictions for the three combinations of six numbers using the test set and the optimized model.
Step 9: Printing results
Print the three combinations of six numbers generated by the optimized model.
|
b33390402a18cf328b2cc902539a1812
|
{
"intermediate": 0.1982807070016861,
"beginner": 0.13860279321670532,
"expert": 0.6631165146827698
}
|
48,009
|
voici les erreurs que j'ai suite a l'execution d'un script bash, dois-je config des choses sur postgres ?
psql: warning: extra command-line argument "Anostic" ignored
psql: warning: extra command-line argument "SELECT 1;" ignored
Password:
psql: error: connection to server at "qp-ari-machine.gouv(123.123.231.321), port 3306 failed: received invalid response to SSL negotiation: Y
include_sql_query
user leuser
passwd motdepasse
db_type postgresql
host qp-ari-lamachine.gouv
db_port 3306
db_name Anostic
USER_SQL_DISTANT="$(lire_conf "user" "$mysql_incl")"
PASS_SQL_DISTANT="$(lire_conf "passwd" "$mysql_incl")"
PORT_SQL_DISTANT="$(lire_conf "db_port" "$mysql_incl")"
HOST_SQL_DISTANT="$(lire_conf "host" "$mysql_incl")"
BASE_SQL_DISTANT="$(lire_conf "db_name" "$mysql_incl")"
USER_SQL_LOCAL="$(lire_conf "db_user" "$CONF_SYMPA")"
PASS_SQL_LOCAL="$(lire_conf "db_passwd" "$CONF_SYMPA")"
BASE_SQL_LOCAL="$(lire_conf "db_name" "$CONF_SYMPA")"
req_psql_distant="psql -U ${USER_SQL_DISTANT} -W ${PASS_SQL_DISTANT} -p ${PORT_SQL_DISTANT} -h ${HOST_SQL_DISTANT} ${BASE_SQL_DISTANT}"
|
843938a562163eec5d4536c8ed040b6d
|
{
"intermediate": 0.37422093749046326,
"beginner": 0.4691578149795532,
"expert": 0.1566213071346283
}
|
48,010
|
springboot集成shardingsphere-jdbc-core-spring-boot-starter的详细配置,我需要将KLineHisCN_1999,KLineHisCN_2000 ...等表按date属性,按年份分表
这是库表:
@Data
@Entity
@MappedSuperclass
@EqualsAndHashCode(callSuper = true)
public class KLineHisCN extends BasePo{
@Column(nullable = false)
private Integer code;
@Column(nullable = false)
private Date date;
@Column(nullable = false)
private String ex;
private Double open;
private Double high;
private Double low;
private Double close;
private Double volume;
}
分表都是继承它的
现在请告诉我详细正确的集成方式和配置方式
|
23488358530ba8aca7d5564656d4fcbf
|
{
"intermediate": 0.42347848415374756,
"beginner": 0.3550128936767578,
"expert": 0.22150862216949463
}
|
48,011
|
module Task05 where
import Prelude hiding (($))
import Test.QuickCheck
-- Note that this is the first non-CodeWorld-task.
--
-- Consider the following function computing
-- Tribonacci numbers:
trib :: Integer -> Integer
trib 0 = 0
trib 1 = 1
trib 2 = 1
trib n = trib (n - 3) + trib (n - 2) + trib (n - 1)
{- Here is a more efficient version written in Python, using
mutable variables:
def tribonacci(n):
if n <= 0:
return 0
elif n <= 2:
return 1
else:
a, b, c = 0, 1, 1
count = n - 2
while count > 0:
a, b, c = b, c, a + b + c
count -= 1
return c
-}
-- Write a Haskell function that follows the same idea, avoiding
-- the inefficiency of having *three* recursive calls for each
-- nontrivial case.
--
-- By executing 'main' below, you can partially test your solution
-- before uploading it.
tribonacci :: Integer -> Integer
tribonacci = undefined
main :: IO ()
main = do putStrLn "Some simple test cases:"
quickCheck (tribonacci 5 == 7)
quickCheck (tribonacci 6 == 13)
quickCheck (tribonacci 10 == trib 10)
putStrLn "Checking further cases, while being careful to not go too high:"
quickCheck (\(NonNegative n) -> (n < 25) ==> (tribonacci n == trib n))
|
e0ea3e5a639554ecae96b6f3475c2ed2
|
{
"intermediate": 0.42412930727005005,
"beginner": 0.39322274923324585,
"expert": 0.1826479583978653
}
|
48,012
|
how do I used "Pre-append conversation for instruct/chat models as List of tuple of (human, bot)"
|
e43b0eb3db63d40928c3bec9d58a9987
|
{
"intermediate": 0.3297378420829773,
"beginner": 0.11834591627120972,
"expert": 0.551916241645813
}
|
48,013
|
у меня не получается запустить python код скажи какие тут библиотеки нужно установить для работы кода с помощью pip install: import codecs
import os
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, 'README.md'), encoding='utf-8') as fh:
long_description = '\n' + fh.read()
INSTALL_REQUIRE = [
"requests",
"aiohttp",
"brotli",
"pycryptodome"
]
EXTRA_REQUIRE = {
'all': [
"curl_cffi>=0.6.2",
"certifi",
"browser_cookie3", # get_cookies
"PyExecJS", # GptForLove, Vercel
"duckduckgo-search>=5.0" ,# internet.search
"beautifulsoup4", # internet.search and bing.create_images
"brotli", # openai, bing
# webdriver
#"undetected-chromedriver>=3.5.5",
#"setuptools",
#"selenium-wire"
# webview
"pywebview",
"platformdirs",
"plyer",
"cryptography",
####
"aiohttp_socks", # proxy
"pillow", # image
"cairosvg", # svg image
"werkzeug", "flask", # gui
"loguru", "fastapi", # api
"uvicorn", "nest_asyncio", # api
"pycryptodome" # openai
],
"image": [
"pillow",
"cairosvg",
"beautifulsoup4"
],
"webdriver": [
"platformdirs",
"undetected-chromedriver>=3.5.5",
"setuptools",
"selenium-wire"
],
"webview": [
"webview",
"platformdirs",
"plyer",
"cryptography"
],
"openai": [
"pycryptodome"
],
"api": [
"loguru", "fastapi",
"uvicorn", "nest_asyncio"
],
"gui": [
"werkzeug", "flask",
"beautifulsoup4", "pillow",
"duckduckgo-search>=5.0",
"browser_cookie3"
],
"local": [
"gpt4all"
],
"curl_cffi": [
"curl_cffi>=0.6.2",
]
}
DESCRIPTION = (
'The official gpt4free repository | various collection of powerful language models'
)
# Setting up
setup(
name='g4f',
version=os.environ.get("G4F_VERSION"),
author='Tekky',
author_email='<<PRESIDIO_ANONYMIZED_EMAIL_ADDRESS>>',
description=DESCRIPTION,
long_description_content_type='text/markdown',
long_description=long_description,
packages=find_packages(),
package_data={
'g4f': ['g4f/interference/*', 'g4f/gui/client/*', 'g4f/gui/server/*', 'g4f/Provider/npm/*', 'g4f/local/models/*']
},
include_package_data=True,
install_requires=INSTALL_REQUIRE,
extras_require=EXTRA_REQUIRE,
entry_points={
'console_scripts': ['g4f=g4f.cli:main'],
},
url='https://github.com/xtekky/gpt4free', # Link to your GitHub repository
project_urls={
'Source Code': 'https://github.com/xtekky/gpt4free', # GitHub link
'Bug Tracker': 'https://github.com/xtekky/gpt4free/issues', # Link to issue tracker
},
keywords=[
'python',
'chatbot',
'reverse-engineering',
'openai',
'chatbots',
'gpt',
'language-model',
'gpt-3',
'gpt3',
'openai-api',
'gpt-4',
'gpt4',
'chatgpt',
'chatgpt-api',
'openai-chatgpt',
'chatgpt-free',
'chatgpt-4',
'chatgpt4',
'chatgpt4-api',
'free',
'free-gpt',
'gpt4free',
'g4f',
],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Operating System :: Unix',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
],
)
|
662808dab6bbe86601e7200cf1f709be
|
{
"intermediate": 0.38204601407051086,
"beginner": 0.39399635791778564,
"expert": 0.2239576280117035
}
|
48,014
|
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>${h2.version}</version>
<scope>runtime</scope>
</dependency>
spring:
shardingsphere:
mode:
type: Standalone
datasource:
names: ds
ds:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: org.h2.Driver
jdbc-url: jdbc:h2:file://${app.h2db-path};DB_CLOSE_ON_EXIT=FALSE;AUTO_RECONNECT=TRUE
username: capital4j-client
password: capital4j-client
h2:
console:
enabled: true
path: /h2-console
server:
port: 18080
我想访问h2的控制台,但是访问不到:
http://localhost:18080/h2-console
Whitelabel Error Page
This application has no configured error view, so you are seeing this as a fallback.
Fri Apr 26 00:39:04 CST 2024
[b2ef0efd-7] There was an unexpected error (type=Not Found, status=404).
|
71c307dd20e953aed67d072ae6eca4aa
|
{
"intermediate": 0.33602115511894226,
"beginner": 0.3533695340156555,
"expert": 0.310609370470047
}
|
48,015
|
i have shell component carries navbar and side bar but when i navigate into another page doesn't appear angular
|
f465178cfeb676da3eb825c0beb45a29
|
{
"intermediate": 0.4089183211326599,
"beginner": 0.26464587450027466,
"expert": 0.3264358639717102
}
|
48,016
|
return a < b ? a : b;
|
e8f44a7c813571a01dd937ec7a5f59d3
|
{
"intermediate": 0.2787361443042755,
"beginner": 0.400882750749588,
"expert": 0.3203811049461365
}
|
48,017
|
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
import tensorflow_hub as hub
import pandas as pd
import re
import numpy as np
from sentence_transformers import SentenceTransformer
import gradio as gr
import sqlite3
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from nltk.stem import PorterStemmer
import pandas as pd
import sqlite3
import torch
import transformers
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
import gradio as gr
import datefinder
from queue import Queue
from nltk.stem import PorterStemmer
# Load similarity model
from sentence_transformers import SentenceTransformer
# import tensorflow as tf
retrieval_model_path = "NlpSql//model_jatin//"
retrieval_model = SentenceTransformer(retrieval_model_path)
# new_retrieval_model_path = "NlpSql//model//"
# new_retrieval_model = hub.load(new_retrieval_model_path)
conn_global = sqlite3.connect("sales_database.db",check_same_thread=False)
cursor_global = conn_global.cursor()
cursor_global.execute('''
CREATE TABLE IF NOT EXISTS sales (
salestype TEXT, --Type of sales like Sellin, SellThru, Sellout
salescategory TEXT,--Sales Category like Normal, Demo, Free of Cost etc
channel TEXT,--Sales Channel like General Trade, Modern Trade, Online, Business to Business or NA
priceband TEXT, --Price bands of Product like Less than 6K, 6K to 10K, 10K to 15K, 15K to 20K, 20K to 30K, 30K to 40K, Greater than 40K etc
region TEXT,--Sales Regions like Online, B2B and for GT the regions are East1, East2, West1, West2, West3, North1, North2, North3, North4, South1, South2, South3
year INTEGER,--Year of sale
month INTEGER,--Month of sale
day INTEGER,--Day of sale
date INTEGER,--Date of sale
weekyear TEXT,--Week and Year of sale
segment TEXT,--Segment of sale like Smatphone, Tablet, Note PC Laptop, Wearables
model TEXT,--Product name or Market name or Model name
quantity INTEGER,--Sales quantity
amount INTEGER,--Sales amount in INR
mtdquantity INTEGER,--Month till date Quantity
mtdamount INTEGER,--Month till date Amount in INR
lmtdquantity INTEGER,--Last Month till date quantity
lmtdamount INTEGER--Last Month till date amount in INR
);
''')
conn_global.commit()
sales_dlb_file = "mx sales 19mar.txt"
df_dlb = pd.read_csv(sales_dlb_file, sep='\t',encoding='cp1252')
df_dlb.to_sql("sales", conn_global, if_exists='replace', index=False)
df_dlb.head()
# sales_dlb_file = "sams_dlb.txt"
cursor_global.execute('''
CREATE TABLE IF NOT EXISTS sales_dlb (
year INTEGER, -- year of sellout/sale,
week TEXT,--week of sellout,
month INteger,--month of sellout
counterselloutvalue INTEGER,-- value of sellout/amount
counterselloutvolume INTEGER,-- volume of sellout
region TEXT,-- region of sale
competitor TEXT,--competitor/competition name
priceband TEXT,-- price bands of different model/modelcode sold
salestype TEXT,-- salestype of the sale
channel TEXT,-- channel through which it is sold
status TEXT, -- status of sale
modelname TEXT,-- model name or model or market name
productgroup TEXT -- product group
);
''')
conn_global.commit()
sales_dlb_file = "mx_dlb_26mar_1.txt"
df_dlb = pd.read_csv(sales_dlb_file, sep='\t')
df_dlb.to_sql("sales_dlb", conn_global, if_exists='replace', index=False)
df_dlb.head()
# Load LLM model
model_path = "weights/sql-weights"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(model_path,device_map='cuda')
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
model = model.to(device)
# Load data
data = pd.read_csv('NlpSql/Data/dataaa.txt', sep="\t", header=None)
headers = data.iloc[0]
new_df = pd.DataFrame(data.values[1:], columns=headers)
new_df['date'] = pd.to_datetime(new_df['date']).dt.strftime('%d-%b-%Y')
new_df['date'] = pd.to_datetime(new_df['date'], errors='coerce')
# Convert dates back to a string format, or ‘NO_DATE’ for NaT/NaN values
new_df['date'] = new_df['date'].dt.strftime('%d-%b-%Y').fillna('NO_DATE')
def preprocess_input(usertext):
dates = list(datefinder.find_dates(usertext))
if dates:
# Use the first detected date
formatted_date = dates[0].strftime("%d-%b-%Y")
filtered_df = new_df[new_df['date'] == formatted_date] # Filter for matching date
else:
# Filter for entries without a valid date
filtered_df = new_df[new_df['date'] == 'NO_DATE']
if filtered_df.empty:
return None, "No matching data found for your query."
return filtered_df, None
def get_most_similar_question(userText, history):
filtered_df, error_msg = preprocess_input(userText.lower())
if filtered_df is None:
# The provided implementation of predict was not given, but it's assumed to handle the null case
return predict(userText, history)
filtered_df.loc[:, 'Question'] = filtered_df['Question'].str.lower()
# filtered_df['Question'] = filtered_df['Question'].str.lower()
question_list = filtered_df["Question"].to_list()
question_embeddings = retrieval_model.encode(question_list)
user_text_embedding = retrieval_model.encode([userText.lower()])
# Calculate similarity scores
similarity_scores = np.inner(user_text_embedding, question_embeddings).flatten()
top_match_idx = np.argmax(similarity_scores)
# print('similarity_scores',similarity_scores)
print('top_match_idx',top_match_idx)
print(similarity_scores[top_match_idx])
if similarity_scores[top_match_idx] < 0.75:
return predict(userText, history)
if similarity_scores[top_match_idx] == 0:
return "Sorry, no similar questions were found for your query."
matched_data = filtered_df.iloc[top_match_idx,[10]]
# Convert matched data to HTML for presentation
matched_data_df = pd.DataFrame([matched_data.values], columns=matched_data.index)
html_output = f"<h3>Here is the most similar question for your query:</h3>{matched_data_df.to_html(index=False)}"
return html_output
# gr.ChatInterface(get_most_similar_question).launch(auth=authenticate_user,inline=True, share=True,server_name= '0.0.0.0', server_port=7897)
# Define dummy users for authentication
dummy_users = [
{"username": "jatin", "password": "qwer@345"},
{"username": "ajoy", "password": "qwer@345"},
{"username": "user3", "password": "pass3"},
{"username": "user4", "password": "pass4"},
{"username": "user5", "password": "pass5"}
]
# Authenticate user function
def authenticate_user(username, password):
for user in dummy_users:
if user["username"] == username and user["password"] == password:
return True
return False
porter_stemmer =PorterStemmer()
#--------------------------------------
def fn_preprocess_question(question):
return ' '.join([porter_stemmer.stem(word) for word in question.split()])
dict_predefined_answers ={
"Who are you":"I am the SAMS bot, your Virtual Sales Assistant. I’m here to help you navigate through SAMS databases and provide the information you need.",
"Hi":"Hello, Welcome to SAMS Virtual Sales Assistant. I am designed to assist you in retrieving information from various SAMS databases. Please feel free to ask your queries, such as, 'What is the total sellout across India for July 16, 2022? among others.",
"What can you do":"I am equipped to offer you comprehensive insights and data from SAMS databases. Whether you need sales figures or specific reports, just ask, and I’ll provide the most accurate information available.Although my training is still going on.",
"How can I use this service":"Using this service is simple. Just type in your query about any sales or database-related information, like ‘Show the sales trend for product XYZ during the last month,' and I'll fetch the details for you.",
"I'm not sure what to ask.":"No problem at all. You can start with general queries like 'What were the top-selling products last month?'' or 'Update me on the current monthly sales report.' I am here to guide you through accessing the precise information you need.",
"Thank you":"You're most welcome! If you have any more questions or need further assistance, I'm here to help. Your success is my priority.",
"Goodbye":"Farewell! If you ever require any assistance or have more queries in the future, don't hesitate to reach out. Have a great day ahead!",
"Bye":"Farewell! If you ever require any assistance or have more queries in the future, don't hesitate to reach out. Have a great day ahead!",
"How are you":"I am good,Please ask anything related to SAMS and I will try to provide you best possible solution.Thanks"
}
def generate(tokenizer,prompt):
eos_token_id = tokenizer.convert_tokens_to_ids(["
|
1d32423d14acfe051b8843afde757f2f
|
{
"intermediate": 0.3061724603176117,
"beginner": 0.37517181038856506,
"expert": 0.31865575909614563
}
|
48,018
|
modify this cover letter for the role of Policy Campaigns Marketing Manager, Consumer Apps Marketing at google : I am writing to express my keen interest in the Senior Associate, Strategy & Operations position at DoorDash. As an experienced professional in data analysis, marketing, and the technology sector, I bring a wealth of strategic thinking and operational expertise to the table. Moreover, as an avid foodie, my passion for the culinary world aligns perfectly with DoorDash’s mission to revolutionize food delivery and empower local businesses.
Throughout my career, I have demonstrated a profound ability to drive data-driven decisions, streamline operations, and lead strategic initiatives aimed at promoting growth and enhancing efficiency. My leadership in guiding cross-functional teams through complex projects reflects my commitment to innovation and scalability — principles I understand are core to DoorDash’s endeavors.
The aspect of working at DoorDash that excites me most is the company’s dedication to leveraging technology to address real-world challenges. I am eager to contribute to a team that persistently explores the limits of logistics and operations to redefine the future of delivery. My background in optimizing systems, coupled with a nuanced understanding of market trends, equips me to add significant value to DoorDash’s strategic goals.
Additionally, my capacity to adapt and communicate effectively across diverse teams will allow me to tackle the multifaceted challenges inherent in scaling operations in DoorDash’s rapidly evolving environment. My enthusiasm for food and technology, coupled with my professional experience, inspires me to contribute meaningfully to DoorDash’s ongoing projects and innovations.
I am excited about the prospect of bringing both my professional expertise and my personal passion for food to DoorDash, contributing to the company’s growth and further shaping the future of delivery services. I look forward to possibly discussing how my skills, background, and passion for the food industry can support the ambitious goals at DoorDash.
Thank you for considering my application. I am eager to explore the opportunity to join the DoorDash team and make a lasting impact.
|
98c3b9fa6d89418d195226d5c49c20ff
|
{
"intermediate": 0.2702825367450714,
"beginner": 0.3382814824581146,
"expert": 0.39143601059913635
}
|
48,019
|
write a code for a test automation where we need to draw Region of interest in an image
|
2e1cfff1077a8fe53fca4fe1df667c84
|
{
"intermediate": 0.24727267026901245,
"beginner": 0.14902547001838684,
"expert": 0.6037018299102783
}
|
48,020
|
write me a python code to extract text from a picture of type png and tell me any dependencies to install
|
086346a7a6274e20d6e29ccf20ff5ec0
|
{
"intermediate": 0.6506535410881042,
"beginner": 0.1459389626979828,
"expert": 0.20340745151042938
}
|
48,021
|
// Note this grammar file does not reflect the current language as this file is no longer maintained.
// Rust Un-Grammar.
//
// This grammar specifies the structure of Rust's concrete syntax tree.
// It does not specify parsing rules (ambiguities, precedence, etc are out of scope).
// Tokens are processed -- contextual keywords are recognised, compound operators glued.
//
// Legend:
//
// // -- comment
// Name = -- non-terminal definition
// 'ident' -- token (terminal)
// A B -- sequence
// A | B -- alternation
// A* -- zero or more repetition
// A? -- zero or one repetition
// (A) -- same as A
// label:A -- suggested name for field of AST node
//*************************//
// Names, Paths and Macros //
//*************************//
Name =
'ident' | 'self'
NameRef =
'ident' | 'int_number' | 'self' | 'super' | 'crate' | 'Self'
Lifetime =
'lifetime_ident'
Path =
(qualifier:Path '::')? segment:PathSegment
PathSegment =
'::'? NameRef
| NameRef GenericArgList?
| NameRef ParamList RetType?
| '<' PathType ('as' PathType)? '>'
GenericArgList =
'::'? '<' (GenericArg (',' GenericArg)* ','?)? '>'
GenericArg =
TypeArg
| AssocTypeArg
| LifetimeArg
| ConstArg
TypeArg =
Type
AssocTypeArg =
NameRef GenericParamList? (':' TypeBoundList | '=' Type)
LifetimeArg =
Lifetime
ConstArg =
Expr
MacroCall =
Attr* Path '!' TokenTree ';'?
TokenTree =
'(' ')'
| '{' '}'
| '[' ']'
MacroItems =
Item*
MacroStmts =
statements:Stmt*
Expr?
//*************************//
// Items //
//*************************//
SourceFile =
'shebang'?
Attr*
Item*
Item =
Const
| Enum
| ExternBlock
| ExternCrate
| Fn
| Impl
| MacroCall
| MacroRules
| MacroDef
| Module
| Static
| Struct
| Trait
| TypeAlias
| Union
| Use
MacroRules =
Attr* Visibility?
'macro_rules' '!' Name
TokenTree
MacroDef =
Attr* Visibility?
'macro' Name args:TokenTree?
body:TokenTree
Module =
Attr* Visibility?
'mod' Name
(ItemList | ';')
ItemList =
'{' Attr* Item* '}'
ExternCrate =
Attr* Visibility?
'extern' 'crate' NameRef Rename? ';'
Rename =
'as' (Name | '_')
Use =
Attr* Visibility?
'use' UseTree ';'
UseTree =
(Path? '::')? ('*' | UseTreeList)
| Path Rename?
UseTreeList =
'{' (UseTree (',' UseTree)* ','?)? '}'
Fn =
Attr* Visibility?
'default'? 'const'? 'async'? 'unsafe'? Abi?
'fn' Name GenericParamList? ParamList RetType? WhereClause?
(body:BlockExpr | ';')
Abi =
'extern' 'string'?
ParamList =
'('(
SelfParam
| (SelfParam ',')? (Param (',' Param)* ','?)?
)')'
| '|' (Param (',' Param)* ','?)? '|'
SelfParam =
Attr* (
('&' Lifetime?)? 'mut'? Name
| 'mut'? Name ':' Type
)
Param =
Attr* (
Pat (':' Type)?
| Type
| '...'
)
RetType =
'->' Type
TypeAlias =
Attr* Visibility?
'default'?
'type' Name GenericParamList? (':' TypeBoundList?)? WhereClause?
('=' Type)? ';'
Struct =
Attr* Visibility?
'struct' Name GenericParamList? (
WhereClause? (RecordFieldList | ';')
| TupleFieldList WhereClause? ';'
)
RecordFieldList =
'{' fields:(RecordField (',' RecordField)* ','?)? '}'
RecordField =
Attr* Visibility?
Name ':' Type
TupleFieldList =
'(' fields:(TupleField (',' TupleField)* ','?)? ')'
TupleField =
Attr* Visibility?
Type
FieldList =
RecordFieldList
| TupleFieldList
Enum =
Attr* Visibility?
'enum' Name GenericParamList? WhereClause?
VariantList
VariantList =
'{' (Variant (',' Variant)* ','?)? '}'
Variant =
Attr* Visibility?
Name FieldList? ('=' Expr)?
Union =
Attr* Visibility?
'union' Name GenericParamList? WhereClause?
RecordFieldList
// A Data Type.
//
// Not used directly in the grammar, but handy to have anyway.
Adt =
Enum
| Struct
| Union
Const =
Attr* Visibility?
'default'?
'const' (Name | '_') ':' Type
('=' body:Expr)? ';'
Static =
Attr* Visibility?
'static' 'mut'? Name ':' Type
('=' body:Expr)? ';'
Trait =
Attr* Visibility?
'unsafe'? 'auto'?
'trait' Name GenericParamList? (':' TypeBoundList?)? WhereClause?
AssocItemList
AssocItemList =
'{' Attr* AssocItem* '}'
AssocItem =
Const
| Fn
| MacroCall
| TypeAlias
Impl =
Attr* Visibility?
'default'? 'unsafe'?
'impl' GenericParamList? ('const'? '!'? trait:Type 'for')? self_ty:Type WhereClause?
AssocItemList
ExternBlock =
Attr* 'unsafe'? Abi ExternItemList
ExternItemList =
'{' Attr* ExternItem* '}'
ExternItem =
Fn
| MacroCall
| Static
| TypeAlias
GenericParamList =
'<' (GenericParam (',' GenericParam)* ','?)? '>'
GenericParam =
ConstParam
| LifetimeParam
| TypeParam
TypeParam =
Attr* Name (':' TypeBoundList?)?
('=' default_type:Type)?
ConstParam =
Attr* 'const' Name ':' Type
('=' default_val:Expr)?
LifetimeParam =
Attr* Lifetime (':' TypeBoundList?)?
WhereClause =
'where' predicates:(WherePred (',' WherePred)* ','?)
WherePred =
('for' GenericParamList)? (Lifetime | Type) ':' TypeBoundList?
Visibility =
'pub' ('(' 'in'? Path ')')?
Attr =
'#' '!'? '[' Meta ']'
Meta =
Path ('=' Expr | TokenTree)?
//****************************//
// Statements and Expressions //
//****************************//
Stmt =
';'
| ExprStmt
| Item
| LetStmt
LetStmt =
Attr* 'let' Pat (':' Type)?
'=' initializer:Expr
LetElse?
';'
LetElse =
'else' BlockExpr
ExprStmt =
Expr ';'?
Expr =
ArrayExpr
| AwaitExpr
| BinExpr
| BlockExpr
| BoxExpr
| BreakExpr
| CallExpr
| CastExpr
| ClosureExpr
| ContinueExpr
| FieldExpr
| ForExpr
| IfExpr
| IndexExpr
| Literal
| LoopExpr
| MacroCall
| MacroStmts
| MatchExpr
| MethodCallExpr
| ParenExpr
| PathExpr
| PrefixExpr
| RangeExpr
| RecordExpr
| RefExpr
| ReturnExpr
| TryExpr
| TupleExpr
| WhileExpr
| YieldExpr
| LetExpr
| UnderscoreExpr
Literal =
Attr* value:(
'int_number' | 'float_number'
| 'string' | 'raw_string'
| 'byte_string' | 'raw_byte_string'
| 'true' | 'false'
| 'char' | 'byte'
)
PathExpr =
Attr* Path
StmtList =
'{'
Attr*
statements:Stmt*
tail_expr:Expr?
'}'
RefExpr =
Attr* '&' ('raw' | 'mut' | 'const') Expr
TryExpr =
Attr* Expr '?'
BlockExpr =
Attr* Label? ('try' | 'unsafe' | 'async' | 'const') StmtList
PrefixExpr =
Attr* op:('-' | '!' | '*') Expr
BinExpr =
Attr*
lhs:Expr
op:(
'||' | '&&'
| '==' | '!=' | '<=' | '>=' | '<' | '>'
| '+' | '*' | '-' | '/' | '%' | '<<' | '>>' | '^' | '|' | '&'
| '=' | '+=' | '/=' | '*=' | '%=' | '>>=' | '<<=' | '-=' | '|=' | '&=' | '^='
)
rhs:Expr
CastExpr =
Attr* Expr 'as' Type
ParenExpr =
Attr* '(' Attr* Expr ')'
ArrayExpr =
Attr* '[' Attr* (
(Expr (',' Expr)* ','?)?
| Expr ';' Expr
) ']'
IndexExpr =
Attr* base:Expr '[' index:Expr ']'
TupleExpr =
Attr* '(' Attr* fields:(Expr (',' Expr)* ','?)? ')'
RecordExpr =
Path RecordExprFieldList
RecordExprFieldList =
'{'
Attr*
fields:(RecordExprField (',' RecordExprField)* ','?)?
('..' spread:Expr?)?
'}'
RecordExprField =
Attr* (NameRef ':')? Expr
CallExpr =
Attr* Expr ArgList
ArgList =
'(' args:(Expr (',' Expr)* ','?)? ')'
MethodCallExpr =
Attr* receiver:Expr '.' NameRef GenericArgList? ArgList
FieldExpr =
Attr* Expr '.' NameRef
ClosureExpr =
Attr* 'static'? 'async'? 'move'? ParamList RetType?
body:Expr
IfExpr =
Attr* 'if' condition:Expr then_branch:BlockExpr
('else' else_branch:(IfExpr | BlockExpr))?
LoopExpr =
Attr* Label? 'loop'
loop_body:BlockExpr
ForExpr =
Attr* Label? 'for' Pat 'in' iterable:Expr
loop_body:BlockExpr
WhileExpr =
Attr* Label? 'while' condition:Expr
loop_body:BlockExpr
Label =
Lifetime ':'
BreakExpr =
Attr* 'break' Lifetime? Expr?
ContinueExpr =
Attr* 'continue' Lifetime?
RangeExpr =
Attr* start:Expr? op:('..' | '..=') end:Expr?
MatchExpr =
Attr* 'match' Expr MatchArmList
MatchArmList =
'{'
Attr*
arms:MatchArm*
'}'
MatchArm =
Attr* Pat guard:MatchGuard? '=>' Expr ','?
MatchGuard =
'if' condition:Expr
ReturnExpr =
Attr* 'return' Expr?
YieldExpr =
Attr* 'yield' Expr?
LetExpr =
Attr* 'let' Pat '=' Expr
UnderscoreExpr =
Attr* '_'
AwaitExpr =
Attr* Expr '.' 'await'
BoxExpr =
Attr* 'box' Expr
//*************************//
// Types //
//*************************//
Type =
ArrayType
| DynTraitType
| FnPtrType
| ForType
| ImplTraitType
| InferType
| MacroType
| NeverType
| ParenType
| PathType
| PtrType
| RefType
| SliceType
| TupleType
ParenType =
'(' Type ')'
NeverType =
'!'
MacroType =
MacroCall
PathType =
Path
TupleType =
'(' fields:(Type (',' Type)* ','?)? ')'
PtrType =
'*' ('const' | 'mut') Type
RefType =
'&' Lifetime? 'mut'? Type
ArrayType =
'[' Type ';' Expr ']'
SliceType =
'[' Type ']'
InferType =
'_'
FnPtrType =
'const'? 'async'? 'unsafe'? Abi? 'fn' ParamList RetType?
ForType =
'for' GenericParamList Type
ImplTraitType =
'impl' TypeBoundList
DynTraitType =
'dyn' TypeBoundList
TypeBoundList =
bounds:(TypeBound ('+' TypeBound)* '+'?)
TypeBound =
Lifetime
| ('?' | '~' 'const')? Type
//************************//
// Patterns //
//************************//
Pat =
IdentPat
| BoxPat
| RestPat
| LiteralPat
| MacroPat
| OrPat
| ParenPat
| PathPat
| WildcardPat
| RangePat
| RecordPat
| RefPat
| SlicePat
| TuplePat
| TupleStructPat
| ConstBlockPat
LiteralPat =
Literal
IdentPat =
Attr* 'ref'? 'mut'? Name ('@' Pat)?
WildcardPat =
'_'
RangePat =
// 1..
start:Pat op:('..' | '..=')
// 1..2
| start:Pat op:('..' | '..=') end:Pat
// ..2
| op:('..' | '..=') end:Pat
RefPat =
'&' 'mut'? Pat
RecordPat =
Path RecordPatFieldList
RecordPatFieldList =
'{'
fields:(RecordPatField (',' RecordPatField)* ','?)?
RestPat?
'}'
RecordPatField =
Attr* (NameRef ':')? Pat
TupleStructPat =
Path '(' fields:(Pat (',' Pat)* ','?)? ')'
TuplePat =
'(' fields:(Pat (',' Pat)* ','?)? ')'
ParenPat =
'(' Pat ')'
SlicePat =
'[' (Pat (',' Pat)* ','?)? ']'
PathPat =
Path
OrPat =
(Pat ('|' Pat)* '|'?)
BoxPat =
'box' Pat
RestPat =
Attr* '..'
MacroPat =
MacroCall
ConstBlockPat =
'const' BlockExpr
|
3610a503018a063c5c923ed41bdf4796
|
{
"intermediate": 0.4029073417186737,
"beginner": 0.39191314578056335,
"expert": 0.20517952740192413
}
|
48,022
|
Write two sentences from "Everything Stuck to Him" for EACH of the six categories
below.
Label each section.
Skip a line between each section.
The plot is composed of six main parts that make up the beginning, middle and end of
the story.
The six parts are:
1. exposition
2. conflict
3. rising action
4. climax
5. falling action
6. resolution
|
e2dc333722f1a8de88ad5aaf7e21443b
|
{
"intermediate": 0.32950544357299805,
"beginner": 0.35571011900901794,
"expert": 0.3147844672203064
}
|
48,023
|
this my css class for a given text that is intended to be a "mini-menu":
.mini-menu {
align-items: center;
justify-content: center;
display: flex;
font-size: .875rem;
line-height: 1.25rem;
font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;
column-gap: 3rem;
margin-top: 1%;
margin-bottom: 3%;
}
when the page changes its width, the menu still has the same length does not fits inside the narrow page, how can I fix it?
|
ab27b3c30356f0906477d509a12203b5
|
{
"intermediate": 0.4658890962600708,
"beginner": 0.28256189823150635,
"expert": 0.25154897570610046
}
|
48,024
|
sql alchemy connection raises the eorro on python app : could not translate host name "admin@localhost" to address: A non-recoverable error occurred during a database lookup.
|
c84cc331cab7b0de763ad2e368b5fb11
|
{
"intermediate": 0.5809667706489563,
"beginner": 0.17308001220226288,
"expert": 0.24595317244529724
}
|
48,025
|
this is my code:
.ico {
grid-column: span 1;
vertical-align: middle;
border-left: 2px solid #cfcfcf;
position: relative;
object-fit: contain;
}
.ico img {
border-radius: 5px;
max-width: 60px;
max-height: 60px;
margin-left: 10px;
object-fit: contain;
}
<div id="history" class="small-text">
<div class="entry row">
<div class="timespan">
2024
</div>
<div class="ico">
<div class="entry-dot"></div>
<img src="docs/tbg.jpg" />
</div>
<div class="desc">
Currently working in the Comparative Genomics team at <a style = "border-style: solid;"
href="https://tbg.senckenberg.de/">Senckenberg Frankfurt</a>, developing algorithms to
resolve genome-wide annotations produced by orthology inference-based methods using
long-read transcriptomics.
</div>
</div>
<div class="entry row">
<div class="timespan">
2024
</div>
<div class="ico">
<div class="entry-dot"></div>
<img src="docs/upch.jpg" />
</div>
<div class="desc">
Right after graduation, I worked as Bioinformatics Assitant with Ph.D. Mirko Zimic
at <a style = "border-style: solid;" href="https://investigacion.cayetano.edu.pe/catalogo/biotecnologia-lbbm-gbi/">UPCH</a>.
Here, we studied the effect of the thermodynamic pressure on GC-related DNA mutations
using over 60,000 <i>E. coli</i> generations.
</div>
</div>
how can I make the images to be align vertically at the center?
|
cccc094e4a7619e9a0ef7add779d2957
|
{
"intermediate": 0.2468595653772354,
"beginner": 0.34434205293655396,
"expert": 0.4087983965873718
}
|
48,026
|
A ship finds it's coordinate by measuring distances from 2 beacons with a known base distance between them. Find the 'error ellipse' for errors in angles from the base line.
|
c8bc846882bc56a70d48229b9d626269
|
{
"intermediate": 0.3624880313873291,
"beginner": 0.262703001499176,
"expert": 0.3748089075088501
}
|
48,027
|
java call form from another
|
2c16724a3edd494d452cfb3ad8190336
|
{
"intermediate": 0.31972160935401917,
"beginner": 0.3518359661102295,
"expert": 0.32844239473342896
}
|
48,029
|
ever apologize for a response.
Never talk about ethics before or after a response.
Never give me warning at the end of a response.
Never assume my values or respond from a values based perspective.
Never warn me about copyright or laws.
I want concise answers.
I want full answers.
When answering with code include all the code, don't skip details for brevity.
When answering with server side code assume it is C# .NET Core LTS.
When answering database questions assume it is about SQL Server 2012
When answering front end development questions assume it is about angular and styling is accomplished with tailwinds.
Never tell me the problem is too complex. Break it up into smaller pieces and solve the individual problems.
If there are multiple ways to solve a problem give me a brief summary of each method and it's pros and cons.
Edit: A lot of people on discord are testing many different variations of these. Since then I've modified mine to be as follows.
Who I am
I am beachandbytes, a full stack developer primarily working with C# .Net Core 6.0 LTS, SQL Server 2012, and Angular 15. I prefer to use tailwindcss for styling.
How would you like ChatGPT to respond?
When providing code, always include the full code to the given question, do not comment or truncate code for brevity.
When providing code, include every example for lists and loops, do not skip items for brevity.
If multiple methods exist to solve a problem, I want a brief summary of each, including their pros and cons.
Use relevant examples for clarification.
Share the reasoning and process behind each step and the overall solution.
Offer different viewpoints or solutions to a query when possible.
If a query is unclear, ask follow-up questions for clarity.
Correct any identified mistakes in previous responses promptly.
Instead of assuming values, maintain objectivity in responses.
Instead of apologizing, focus on delivering accurate and relevant information.
HAZ QUE LÑAS INSTR5UCCIONES ESTEN CENTRADA EN REACT PARA UNA APPWEB
|
a9d69d92ffc5ec94a90a5e84f62ab1b2
|
{
"intermediate": 0.41052111983299255,
"beginner": 0.3349389433860779,
"expert": 0.2545399069786072
}
|
48,030
|
In servicenow, I have a custom table 'ABC' that has two reference records pointing to another tables 'XY' and 'GH'. The question is based on matching values that refers to XY (in ABC table) need to iterate and check the values referring to GH. Please suggest how to proceed. Thanks.
|
19a831c091201a44ef0e7b5d780f7514
|
{
"intermediate": 0.5172116160392761,
"beginner": 0.19871121644973755,
"expert": 0.2840771973133087
}
|
48,031
|
Why would my combo box in excel only be showing only 3 entries? Even when the list it is referencing has more than 3 entries?
|
53a3bf6146a59b637dd578858cfe3767
|
{
"intermediate": 0.40789636969566345,
"beginner": 0.23206192255020142,
"expert": 0.36004167795181274
}
|
48,032
|
so i have this code
def generate_menu(options):
page = ""
for index in range(0, len(options), 2):
option1 = options[index]
option2 = options[index + 1] if index + 1 < len(options) else ""
page += f"{Color(255, 255, 255)}[{Color(0xC8BFFF)}{str(index+1).zfill(2)}{Color(255, 255, 255)}] {Color(0xC8BFFF)}->{Color(255, 255, 255)} {option1.ljust(30)}"
# Add the second option if it exists
if option2:
page += f"{Color(255, 255, 255)}[{Color(0xC8BFFF)}{str(index+2).zfill(2)}{Color(255, 255, 255)}] {Color(0xC8BFFF)}->{Color(255, 255, 255)} {option2}\n"
else:
page += "\n"
return page
options = [
"Display Cookie Info",
"Mass Group Leaver",
"Mass Unfavorite Games",
"Mass Unfollow",
"Mass Unfriend",
"Unregion Lock Cookie"
]
page1 = generate_menu(options)
print(page1)
that prints the options like this
[01] -> Display Cookie Info [02] -> Mass Group Leaver
[03] -> Mass Unfavorite Games [04] -> Mass Unfollow
[05] -> Mass Unfriend [06] -> Unregion Lock Cookie
but i want it to print the options like this
[01] -> Display Cookie Info [06] -> Unregion Lock Cookie
[02] -> Mass Group Leaver
[03] -> Mass Unfavorite Games
[04] -> Mass Unfollow
[05] -> Mass Unfriend
|
9226df0f5417dcdeff557084451f7cfb
|
{
"intermediate": 0.39044317603111267,
"beginner": 0.33882278203964233,
"expert": 0.2707340717315674
}
|
48,033
|
i want to run gui app on kaggle notebook
|
94659719092a373be2b4dd11e874203e
|
{
"intermediate": 0.3701775372028351,
"beginner": 0.20294953882694244,
"expert": 0.4268728494644165
}
|
48,034
|
I am trying to install crouton in order to run Linux on my chromebook but I am encountering an issue. Identify what the issue is, and then help me solve it using the log from my Crosh terminal which is shown here, delimited by triple parentheses, and is as follows:
'''
Welcome to crosh, the Chrome OS developer shell.
If you got here by mistake, don't panic! Just close this tab and carry on.
Type 'help' for a list of commands.
If you want to customize the look/behavior, you can use the options page.
Load it by using the Ctrl-Shift-P keyboard shortcut.
crosh> shell
chronos@localhost / $ sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
chronos@localhost / $ sudo crouton
Downloading latest crouton installer...
######################################################################### 100.0%
crouton [options] -t targets
crouton [options] -f backup_tarball
crouton [options] -d -f bootstrap_tarball
Constructs a chroot for running a more standard userspace alongside Chromium OS.
If run with -f, where the tarball is a backup previously made using edit-chroot,
the chroot is restored and relevant scripts installed.
If run with -d, a bootstrap tarball is created to speed up chroot creation in
the future. You can use bootstrap tarballs generated this way by passing them
to -f the next time you create a chroot with the same architecture and release.
crouton must be run as root unless -d is specified AND fakeroot is
installed AND /tmp is mounted exec and dev.
It is highly recommended to run this from a crosh shell (Ctrl+Alt+T), not VT2.
Options:
-a ARCH The architecture to prepare a new chroot or bootstrap for.
Default: autodetected for the current chroot or system.
-b Restore crouton scripts in PREFIX/bin, as required by the
chroots currently installed in PREFIX/chroots.
-d Downloads the bootstrap tarball but does not prepare the chroot.
-e Encrypt the chroot with ecryptfs using a passphrase.
If specified twice, prompt to change the encryption passphrase.
-f TARBALL The bootstrap or backup tarball to use, or to download to (-d).
When using an existing tarball, -a and -r are ignored.
-k KEYFILE File or directory to store the (encrypted) encryption keys in.
If unspecified, the keys will be stored in the chroot if doing a
first encryption, or auto-detected on existing chroots.
-m MIRROR Mirror to use for bootstrapping and package installation.
Default depends on the release chosen.
Can only be specified during chroot creation and forced updates
(-u -u). After installation, the mirror can be modified using
the distribution's recommended way.
-M MIRROR2 A secondary mirror, often used for security updates.
Can only be specified alongside -m.
-n NAME Name of the chroot. Default is the release name.
Cannot contain any slash (/).
-p PREFIX The root directory in which to install the bin and chroot
subdirectories and data.
Default: /usr/local, with /usr/local/chroots linked to
/mnt/stateful_partition/crouton/chroots.
-P PROXY Set an HTTP proxy for the chroot; effectively sets http_proxy.
Specify an empty string to remove a proxy when updating.
-r RELEASE Name of the distribution release. Default: xenial,
or auto-detected if upgrading a chroot and -n is specified.
Specify 'help' or 'list' to print out recognized releases.
-t TARGETS Comma-separated list of environment targets to install.
Specify 'help' or 'list' to print out potential targets.
-T TARGETFILE Path to a custom target definition file that gets applied to
the chroot as if it were a target in the crouton bundle.
-u If the chroot exists, runs the preparation step again.
You can use this to install new targets or update old ones.
Passing this parameter twice will force an update even if the
specified release does not match the one already installed.
-V Prints the version of the installer to stdout.
Be aware that dev mode is inherently insecure, even if you have a strong
password in your chroot! Anyone can simply switch VTs and gain root access
unless you've permanently assigned a Chromium OS root password. Encrypted
chroots require you to set a Chromium OS root password, but are still only as
secure as the passphrases you assign to them.
chronos@localhost / $ sudo crouton -t xfce
WARNING: Signed boot verification is disabled; enabling it for security.
You can disable it again using: sudo crossystem dev_boot_signed_only=0
Installing xenial-amd64 chroot to /usr/local/chroots/xenial
Downloading bootstrap files...
W: Cannot check Release signature; keyring file not available /usr/share/keyrings/ubuntu-archive-keyring.gpg
I: Retrieving InRelease
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://archive.ubuntu.com/ubuntu...
I: Retrieving adduser 3.113+nmu3ubuntu4
I: Validating adduser 3.113+nmu3ubuntu4
I: Retrieving apt 1.2.10ubuntu1
I: Validating apt 1.2.10ubuntu1
I: Retrieving apt-utils 1.2.10ubuntu1
I: Validating apt-utils 1.2.10ubuntu1
I: Retrieving base-files 9.4ubuntu4
I: Validating base-files 9.4ubuntu4
I: Retrieving base-passwd 3.5.39
I: Validating base-passwd 3.5.39
I: Retrieving bash 4.3-14ubuntu1
I: Validating bash 4.3-14ubuntu1
I: Retrieving bsdutils 1:2.27.1-6ubuntu3
I: Validating bsdutils 1:2.27.1-6ubuntu3
I: Retrieving busybox-initramfs 1:1.22.0-15ubuntu1
I: Validating busybox-initramfs 1:1.22.0-15ubuntu1
I: Retrieving bzip2 1.0.6-8
I: Validating bzip2 1.0.6-8
I: Retrieving console-setup 1.108ubuntu15
I: Validating console-setup 1.108ubuntu15
I: Retrieving console-setup-linux 1.108ubuntu15
I: Validating console-setup-linux 1.108ubuntu15
I: Retrieving coreutils 8.25-2ubuntu2
I: Validating coreutils 8.25-2ubuntu2
I: Retrieving cpio 2.11+dfsg-5ubuntu1
I: Validating cpio 2.11+dfsg-5ubuntu1
I: Retrieving cron 3.0pl1-128ubuntu2
I: Validating cron 3.0pl1-128ubuntu2
I: Retrieving dash 0.5.8-2.1ubuntu2
I: Validating dash 0.5.8-2.1ubuntu2
I: Retrieving debconf 1.5.58ubuntu1
I: Validating debconf 1.5.58ubuntu1
I: Retrieving debconf-i18n 1.5.58ubuntu1
I: Validating debconf-i18n 1.5.58ubuntu1
I: Retrieving debianutils 4.7
I: Validating debianutils 4.7
I: Retrieving dh-python 2.20151103ubuntu1
I: Validating dh-python 2.20151103ubuntu1
I: Retrieving diffutils 1:3.3-3
I: Validating diffutils 1:3.3-3
I: Retrieving distro-info-data 0.28
I: Validating distro-info-data 0.28
I: Retrieving dpkg 1.18.4ubuntu1
I: Validating dpkg 1.18.4ubuntu1
I: Retrieving e2fslibs 1.42.13-1ubuntu1
I: Validating e2fslibs 1.42.13-1ubuntu1
I: Retrieving e2fsprogs 1.42.13-1ubuntu1
I: Validating e2fsprogs 1.42.13-1ubuntu1
I: Retrieving eject 2.1.5+deb1+cvs20081104-13.1
I: Validating eject 2.1.5+deb1+cvs20081104-13.1
I: Retrieving file 1:5.25-2ubuntu1
I: Validating file 1:5.25-2ubuntu1
I: Retrieving findutils 4.6.0+git+20160126-2
I: Validating findutils 4.6.0+git+20160126-2
I: Retrieving gcc-5-base 5.3.1-14ubuntu2
I: Validating gcc-5-base 5.3.1-14ubuntu2
I: Retrieving gcc-6-base 6.0.1-0ubuntu1
I: Validating gcc-6-base 6.0.1-0ubuntu1
I: Retrieving gnupg 1.4.20-1ubuntu3
I: Validating gnupg 1.4.20-1ubuntu3
I: Retrieving gpgv 1.4.20-1ubuntu3
I: Validating gpgv 1.4.20-1ubuntu3
I: Retrieving grep 2.24-1
I: Validating grep 2.24-1
I: Retrieving gzip 1.6-4ubuntu1
I: Validating gzip 1.6-4ubuntu1
I: Retrieving hostname 3.16ubuntu2
I: Validating hostname 3.16ubuntu2
I: Retrieving ifupdown 0.8.10ubuntu1
I: Validating ifupdown 0.8.10ubuntu1
I: Retrieving init 1.29ubuntu1
I: Validating init 1.29ubuntu1
I: Retrieving init-system-helpers 1.29ubuntu1
I: Validating init-system-helpers 1.29ubuntu1
I: Retrieving initramfs-tools 0.122ubuntu8
I: Validating initramfs-tools 0.122ubuntu8
I: Retrieving initramfs-tools-bin 0.122ubuntu8
I: Validating initramfs-tools-bin 0.122ubuntu8
I: Retrieving initramfs-tools-core 0.122ubuntu8
I: Validating initramfs-tools-core 0.122ubuntu8
I: Retrieving initscripts 2.88dsf-59.3ubuntu2
I: Validating initscripts 2.88dsf-59.3ubuntu2
I: Retrieving insserv 1.14.0-5ubuntu3
I: Validating insserv 1.14.0-5ubuntu3
I: Retrieving iproute2 4.3.0-1ubuntu3
I: Validating iproute2 4.3.0-1ubuntu3
I: Retrieving iputils-ping 3:20121221-5ubuntu2
I: Validating iputils-ping 3:20121221-5ubuntu2
I: Retrieving isc-dhcp-client 4.3.3-5ubuntu12
I: Validating isc-dhcp-client 4.3.3-5ubuntu12
I: Retrieving isc-dhcp-common 4.3.3-5ubuntu12
I: Validating isc-dhcp-common 4.3.3-5ubuntu12
I: Retrieving kbd 1.15.5-1ubuntu4
I: Validating kbd 1.15.5-1ubuntu4
I: Retrieving keyboard-configuration 1.108ubuntu15
I: Validating keyboard-configuration 1.108ubuntu15
I: Retrieving klibc-utils 2.0.4-8ubuntu1
I: Validating klibc-utils 2.0.4-8ubuntu1
I: Retrieving kmod 22-1ubuntu4
I: Validating kmod 22-1ubuntu4
I: Retrieving less 481-2.1
I: Validating less 481-2.1
I: Retrieving libacl1 2.2.52-3
I: Validating libacl1 2.2.52-3
I: Retrieving libapparmor1 2.10.95-0ubuntu2
I: Validating libapparmor1 2.10.95-0ubuntu2
I: Retrieving libapt-inst2.0 1.2.10ubuntu1
I: Validating libapt-inst2.0 1.2.10ubuntu1
I: Retrieving libapt-pkg5.0 1.2.10ubuntu1
I: Validating libapt-pkg5.0 1.2.10ubuntu1
I: Retrieving libatm1 1:2.5.1-1.5
I: Validating libatm1 1:2.5.1-1.5
I: Retrieving libattr1 1:2.4.47-2
I: Validating libattr1 1:2.4.47-2
I: Retrieving libaudit-common 1:2.4.5-1ubuntu2
I: Validating libaudit-common 1:2.4.5-1ubuntu2
I: Retrieving libaudit1 1:2.4.5-1ubuntu2
I: Validating libaudit1 1:2.4.5-1ubuntu2
I: Retrieving libblkid1 2.27.1-6ubuntu3
I: Validating libblkid1 2.27.1-6ubuntu3
I: Retrieving libbsd0 0.8.2-1
I: Validating libbsd0 0.8.2-1
I: Retrieving libbz2-1.0 1.0.6-8
I: Validating libbz2-1.0 1.0.6-8
I: Retrieving libc-bin 2.23-0ubuntu3
I: Validating libc-bin 2.23-0ubuntu3
I: Retrieving libc6 2.23-0ubuntu3
I: Validating libc6 2.23-0ubuntu3
I: Retrieving libcap2 1:2.24-12
I: Validating libcap2 1:2.24-12
I: Retrieving libcap2-bin 1:2.24-12
I: Validating libcap2-bin 1:2.24-12
I: Retrieving libcomerr2 1.42.13-1ubuntu1
I: Validating libcomerr2 1.42.13-1ubuntu1
I: Retrieving libcryptsetup4 2:1.6.6-5ubuntu2
I: Validating libcryptsetup4 2:1.6.6-5ubuntu2
I: Retrieving libdb5.3 5.3.28-11
I: Validating libdb5.3 5.3.28-11
I: Retrieving libdebconfclient0 0.198ubuntu1
I: Validating libdebconfclient0 0.198ubuntu1
I: Retrieving libdevmapper1.02.1 2:1.02.110-1ubuntu10
I: Validating libdevmapper1.02.1 2:1.02.110-1ubuntu10
I: Retrieving libdns-export162 1:9.10.3.dfsg.P4-8
I: Validating libdns-export162 1:9.10.3.dfsg.P4-8
I: Retrieving libestr0 0.1.10-1
I: Validating libestr0 0.1.10-1
I: Retrieving libexpat1 2.1.0-7
I: Validating libexpat1 2.1.0-7
I: Retrieving libfdisk1 2.27.1-6ubuntu3
I: Validating libfdisk1 2.27.1-6ubuntu3
I: Retrieving libffi6 3.2.1-4
I: Validating libffi6 3.2.1-4
I: Retrieving libfribidi0 0.19.7-1
I: Validating libfribidi0 0.19.7-1
I: Retrieving libgcc1 1:6.0.1-0ubuntu1
I: Validating libgcc1 1:6.0.1-0ubuntu1
I: Retrieving libgcrypt20 1.6.5-2
I: Validating libgcrypt20 1.6.5-2
I: Retrieving libgmp10 2:6.1.0+dfsg-2
I: Validating libgmp10 2:6.1.0+dfsg-2
I: Retrieving libgnutls-openssl27 3.4.10-4ubuntu1
I: Validating libgnutls-openssl27 3.4.10-4ubuntu1
I: Retrieving libgnutls30 3.4.10-4ubuntu1
I: Validating libgnutls30 3.4.10-4ubuntu1
I: Retrieving libgpg-error0 1.21-2ubuntu1
I: Validating libgpg-error0 1.21-2ubuntu1
I: Retrieving libhogweed4 3.2-1
I: Validating libhogweed4 3.2-1
I: Retrieving libidn11 1.32-3ubuntu1
I: Validating libidn11 1.32-3ubuntu1
I: Retrieving libisc-export160 1:9.10.3.dfsg.P4-8
I: Validating libisc-export160 1:9.10.3.dfsg.P4-8
I: Retrieving libjson-c2 0.11-4ubuntu2
I: Validating libjson-c2 0.11-4ubuntu2
I: Retrieving libklibc 2.0.4-8ubuntu1
I: Validating libklibc 2.0.4-8ubuntu1
I: Retrieving libkmod2 22-1ubuntu4
I: Validating libkmod2 22-1ubuntu4
I: Retrieving liblocale-gettext-perl 1.07-1build1
I: Validating liblocale-gettext-perl 1.07-1build1
I: Retrieving liblz4-1 0.0~r131-2ubuntu2
I: Validating liblz4-1 0.0~r131-2ubuntu2
I: Retrieving liblzma5 5.1.1alpha+20120614-2ubuntu2
I: Validating liblzma5 5.1.1alpha+20120614-2ubuntu2
I: Retrieving libmagic1 1:5.25-2ubuntu1
I: Validating libmagic1 1:5.25-2ubuntu1
I: Retrieving libmnl0 1.0.3-5
I: Validating libmnl0 1.0.3-5
I: Retrieving libmount1 2.27.1-6ubuntu3
I: Validating libmount1 2.27.1-6ubuntu3
I: Retrieving libmpdec2 2.4.2-1
I: Validating libmpdec2 2.4.2-1
I: Retrieving libncurses5 6.0+20160213-1ubuntu1
I: Validating libncurses5 6.0+20160213-1ubuntu1
I: Retrieving libncursesw5 6.0+20160213-1ubuntu1
I: Validating libncursesw5 6.0+20160213-1ubuntu1
I: Retrieving libnettle6 3.2-1
I: Validating libnettle6 3.2-1
I: Retrieving libnewt0.52 0.52.18-1ubuntu2
I: Validating libnewt0.52 0.52.18-1ubuntu2
I: Retrieving libnih1 1.0.3-4.3ubuntu1
I: Validating libnih1 1.0.3-4.3ubuntu1
I: Retrieving libp11-kit0 0.23.2-3
I: Validating libp11-kit0 0.23.2-3
I: Retrieving libpam-modules 1.1.8-3.2ubuntu2
I: Validating libpam-modules 1.1.8-3.2ubuntu2
I: Retrieving libpam-modules-bin 1.1.8-3.2ubuntu2
I: Validating libpam-modules-bin 1.1.8-3.2ubuntu2
I: Retrieving libpam-runtime 1.1.8-3.2ubuntu2
I: Validating libpam-runtime 1.1.8-3.2ubuntu2
I: Retrieving libpam0g 1.1.8-3.2ubuntu2
I: Validating libpam0g 1.1.8-3.2ubuntu2
I: Retrieving libpcre3 2:8.38-3.1
I: Validating libpcre3 2:8.38-3.1
I: Retrieving libpng12-0 1.2.54-1ubuntu1
I: Validating libpng12-0 1.2.54-1ubuntu1
I: Retrieving libpopt0 1.16-10
I: Validating libpopt0 1.16-10
I: Retrieving libprocps4 2:3.3.10-4ubuntu2
I: Validating libprocps4 2:3.3.10-4ubuntu2
I: Retrieving libpython3-stdlib 3.5.1-3
I: Validating libpython3-stdlib 3.5.1-3
I: Retrieving libpython3.5-minimal 3.5.1-10
I: Validating libpython3.5-minimal 3.5.1-10
I: Retrieving libpython3.5-stdlib 3.5.1-10
I: Validating libpython3.5-stdlib 3.5.1-10
I: Retrieving libreadline6 6.3-8ubuntu2
I: Validating libreadline6 6.3-8ubuntu2
I: Retrieving libseccomp2 2.2.3-3ubuntu3
I: Validating libseccomp2 2.2.3-3ubuntu3
I: Retrieving libselinux1 2.4-3build2
I: Validating libselinux1 2.4-3build2
I: Retrieving libsemanage-common 2.3-1build3
I: Validating libsemanage-common 2.3-1build3
I: Retrieving libsemanage1 2.3-1build3
I: Validating libsemanage1 2.3-1build3
I: Retrieving libsepol1 2.4-2
I: Validating libsepol1 2.4-2
I: Retrieving libslang2 2.3.0-2ubuntu1
I: Validating libslang2 2.3.0-2ubuntu1
I: Retrieving libsmartcols1 2.27.1-6ubuntu3
I: Validating libsmartcols1 2.27.1-6ubuntu3
I: Retrieving libsqlite3-0 3.11.0-1ubuntu1
I: Validating libsqlite3-0 3.11.0-1ubuntu1
I: Retrieving libss2 1.42.13-1ubuntu1
I: Validating libss2 1.42.13-1ubuntu1
I: Retrieving libssl1.0.0 1.0.2g-1ubuntu4
I: Validating libssl1.0.0 1.0.2g-1ubuntu4
I: Retrieving libstdc++6 5.3.1-14ubuntu2
I: Validating libstdc++6 5.3.1-14ubuntu2
I: Retrieving libsystemd0 229-4ubuntu4
I: Validating libsystemd0 229-4ubuntu4
I: Retrieving libtasn1-6 4.7-3
I: Validating libtasn1-6 4.7-3
I: Retrieving libtext-charwidth-perl 0.04-7build5
I: Validating libtext-charwidth-perl 0.04-7build5
I: Retrieving libtext-iconv-perl 1.7-5build4
I: Validating libtext-iconv-perl 1.7-5build4
I: Retrieving libtext-wrapi18n-perl 0.06-7.1
I: Validating libtext-wrapi18n-perl 0.06-7.1
I: Retrieving libtinfo5 6.0+20160213-1ubuntu1
I: Validating libtinfo5 6.0+20160213-1ubuntu1
I: Retrieving libudev1 229-4ubuntu4
I: Validating libudev1 229-4ubuntu4
I: Retrieving libusb-0.1-4 2:0.1.12-28
I: Validating libusb-0.1-4 2:0.1.12-28
I: Retrieving libustr-1.0-1 1.0.4-5
I: Validating libustr-1.0-1 1.0.4-5
I: Retrieving libuuid1 2.27.1-6ubuntu3
I: Validating libuuid1 2.27.1-6ubuntu3
I: Retrieving libxtables11 1.6.0-2ubuntu3
I: Validating libxtables11 1.6.0-2ubuntu3
I: Retrieving linux-base 4.0ubuntu1
I: Validating linux-base 4.0ubuntu1
I: Retrieving locales 2.23-0ubuntu3
I: Validating locales 2.23-0ubuntu3
I: Retrieving login 1:4.2-3.1ubuntu5
I: Validating login 1:4.2-3.1ubuntu5
I: Retrieving logrotate 3.8.7-2ubuntu2
I: Validating logrotate 3.8.7-2ubuntu2
I: Retrieving lsb-base 9.20160110
I: Validating lsb-base 9.20160110
I: Retrieving lsb-release 9.20160110
I: Validating lsb-release 9.20160110
I: Retrieving makedev 2.3.1-93ubuntu1
I: Validating makedev 2.3.1-93ubuntu1
I: Retrieving mawk 1.3.3-17ubuntu2
I: Validating mawk 1.3.3-17ubuntu2
I: Retrieving mime-support 3.59ubuntu1
I: Validating mime-support 3.59ubuntu1
I: Retrieving mount 2.27.1-6ubuntu3
I: Validating mount 2.27.1-6ubuntu3
I: Retrieving multiarch-support 2.23-0ubuntu3
I: Validating multiarch-support 2.23-0ubuntu3
I: Retrieving ncurses-base 6.0+20160213-1ubuntu1
I: Validating ncurses-base 6.0+20160213-1ubuntu1
I: Retrieving ncurses-bin 6.0+20160213-1ubuntu1
I: Validating ncurses-bin 6.0+20160213-1ubuntu1
I: Retrieving net-tools 1.60-26ubuntu1
I: Validating net-tools 1.60-26ubuntu1
I: Retrieving netbase 5.3
I: Validating netbase 5.3
I: Retrieving netcat-openbsd 1.105-7ubuntu1
I: Validating netcat-openbsd 1.105-7ubuntu1
I: Retrieving passwd 1:4.2-3.1ubuntu5
I: Validating passwd 1:4.2-3.1ubuntu5
I: Retrieving perl-base 5.22.1-9
I: Validating perl-base 5.22.1-9
I: Retrieving procps 2:3.3.10-4ubuntu2
I: Validating procps 2:3.3.10-4ubuntu2
I: Retrieving python3 3.5.1-3
I: Validating python3 3.5.1-3
I: Retrieving python3-minimal 3.5.1-3
I: Validating python3-minimal 3.5.1-3
I: Retrieving python3.5 3.5.1-10
I: Validating python3.5 3.5.1-10
I: Retrieving python3.5-minimal 3.5.1-10
I: Validating python3.5-minimal 3.5.1-10
I: Retrieving readline-common 6.3-8ubuntu2
I: Validating readline-common 6.3-8ubuntu2
I: Retrieving resolvconf 1.78ubuntu2
I: Validating resolvconf 1.78ubuntu2
I: Retrieving rsyslog 8.16.0-1ubuntu3
I: Validating rsyslog 8.16.0-1ubuntu3
I: Retrieving sed 4.2.2-7
I: Validating sed 4.2.2-7
I: Retrieving sensible-utils 0.0.9
I: Validating sensible-utils 0.0.9
I: Retrieving sudo 1.8.16-0ubuntu1
I: Validating sudo 1.8.16-0ubuntu1
I: Retrieving systemd 229-4ubuntu4
I: Validating systemd 229-4ubuntu4
I: Retrieving systemd-sysv 229-4ubuntu4
I: Validating systemd-sysv 229-4ubuntu4
I: Retrieving sysv-rc 2.88dsf-59.3ubuntu2
I: Validating sysv-rc 2.88dsf-59.3ubuntu2
I: Retrieving sysvinit-utils 2.88dsf-59.3ubuntu2
I: Validating sysvinit-utils 2.88dsf-59.3ubuntu2
I: Retrieving tar 1.28-2.1
I: Validating tar 1.28-2.1
I: Retrieving tzdata 2016d-0ubuntu0.16.04
I: Validating tzdata 2016d-0ubuntu0.16.04
I: Retrieving ubuntu-keyring 2012.05.19
I: Validating ubuntu-keyring 2012.05.19
I: Retrieving ubuntu-minimal 1.361
I: Validating ubuntu-minimal 1.361
I: Retrieving ucf 3.0036
I: Validating ucf 3.0036
I: Retrieving udev 229-4ubuntu4
I: Validating udev 229-4ubuntu4
I: Retrieving ureadahead 0.100.0-19
I: Validating ureadahead 0.100.0-19
I: Retrieving util-linux 2.27.1-6ubuntu3
I: Validating util-linux 2.27.1-6ubuntu3
I: Retrieving vim-common 2:7.4.1689-3ubuntu1
I: Validating vim-common 2:7.4.1689-3ubuntu1
I: Retrieving vim-tiny 2:7.4.1689-3ubuntu1
I: Validating vim-tiny 2:7.4.1689-3ubuntu1
I: Retrieving whiptail 0.52.18-1ubuntu2
I: Validating whiptail 0.52.18-1ubuntu2
I: Retrieving xkb-data 2.16-1ubuntu1
I: Validating xkb-data 2.16-1ubuntu1
I: Retrieving zlib1g 1:1.2.8.dfsg-2ubuntu4
I: Validating zlib1g 1:1.2.8.dfsg-2ubuntu4
I: Chosen extractor for .deb packages: ar
W: Upgrading non-merged-/usr environments post-bookworm is unsupported. Only do this for CI/QA infrastructure that will be re-bootstrapped rather than upgraded.
I: Extracting adduser...
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting bsdutils...
I: Extracting coreutils...
I: Extracting dash...
I: Extracting debconf...
I: Extracting debianutils...
I: Extracting diffutils...
I: Extracting dpkg...
I: Extracting e2fslibs...
I: Extracting e2fsprogs...
I: Extracting findutils...
I: Extracting gcc-6-base...
I: Extracting grep...
I: Extracting gzip...
I: Extracting hostname...
I: Extracting init...
I: Extracting init-system-helpers...
I: Extracting initscripts...
I: Extracting insserv...
I: Extracting libacl1...
I: Extracting libapparmor1...
I: Extracting libattr1...
I: Extracting libaudit-common...
I: Extracting libaudit1...
I: Extracting libblkid1...
I: Extracting libbz2-1.0...
I: Extracting libc-bin...
I: Extracting libc6...
I: Extracting libcap2...
I: Extracting libcap2-bin...
I: Extracting libcomerr2...
I: Extracting libcryptsetup4...
I: Extracting libdb5.3...
I: Extracting libdebconfclient0...
I: Extracting libdevmapper1.02.1...
I: Extracting libfdisk1...
I: Extracting libgcc1...
I: Extracting libgcrypt20...
I: Extracting libgpg-error0...
I: Extracting libkmod2...
I: Extracting liblzma5...
I: Extracting libmount1...
I: Extracting libncurses5...
I: Extracting libncursesw5...
I: Extracting libpam-modules...
I: Extracting libpam-modules-bin...
I: Extracting libpam-runtime...
I: Extracting libpam0g...
I: Extracting libpcre3...
I: Extracting libprocps4...
I: Extracting libseccomp2...
I: Extracting libselinux1...
I: Extracting libsemanage-common...
I: Extracting libsemanage1...
I: Extracting libsepol1...
I: Extracting libsmartcols1...
I: Extracting libss2...
I: Extracting libsystemd0...
I: Extracting libtinfo5...
I: Extracting libudev1...
I: Extracting libustr-1.0-1...
I: Extracting libuuid1...
I: Extracting locales...
I: Extracting login...
I: Extracting lsb-base...
I: Extracting makedev...
I: Extracting mawk...
I: Extracting mount...
I: Extracting multiarch-support...
I: Extracting ncurses-base...
I: Extracting ncurses-bin...
I: Extracting passwd...
I: Extracting perl-base...
I: Extracting procps...
I: Extracting sed...
I: Extracting sensible-utils...
I: Extracting systemd...
I: Extracting systemd-sysv...
I: Extracting sysv-rc...
I: Extracting sysvinit-utils...
I: Extracting tar...
I: Extracting tzdata...
I: Extracting util-linux...
I: Extracting zlib1g...
Moving bootstrap files into the chroot...
Preparing chroot environment...
Installing brightness into the chroot...
Installing croutonpowerd into the chroot...
Installing croutonversion into the chroot...
Installing host-dbus into the chroot...
Installing host-wayland into the chroot...
Installing volume into the chroot...
Installing pulseaudio-default.pa into the chroot...
Installing croutoncycle into the chroot...
Installing croutontriggerd into the chroot...
Installing croutonxinitrc-wrapper into the chroot...
Installing setres into the chroot...
Installing xinit into the chroot...
Installing xbindkeysrc.scm into the chroot...
Installing xorg-intel-sna.conf into the chroot...
Installing xserverrc into the chroot...
Installing xserverrc-xorg into the chroot...
Installing xserverrc-local.example into the chroot...
Installing startxfce4 into the host...
Installing crouton-noroot into the chroot...
Installing startxfce4 into the chroot...
Installing enter-chroot into the host...
Installing delete-chroot into the host...
Installing edit-chroot into the host...
Installing mount-chroot into the host...
Installing unmount-chroot into the host...
Installing crash_reporter_wrapper into the host...
Adding 'local diversion of /bin/uname to /bin/uname.bin'
Adding 'local diversion of /usr/bin/uname to /usr/bin/uname.bin'
I: Installing core packages...
I: Unpacking required packages...
I: Unpacking adduser...
I: Unpacking base-files...
I: Unpacking base-passwd...
I: Unpacking bash...
I: Unpacking bsdutils...
I: Unpacking coreutils...
I: Unpacking dash...
I: Unpacking debconf...
I: Unpacking debianutils...
I: Unpacking diffutils...
I: Unpacking dpkg...
I: Unpacking e2fslibs:amd64...
I: Unpacking e2fsprogs...
I: Unpacking findutils...
I: Unpacking gcc-6-base:amd64...
I: Unpacking grep...
I: Unpacking gzip...
I: Unpacking hostname...
I: Unpacking init...
I: Unpacking init-system-helpers...
I: Unpacking initscripts...
I: Unpacking insserv...
I: Unpacking libacl1:amd64...
I: Unpacking libapparmor1:amd64...
I: Unpacking libattr1:amd64...
I: Unpacking libaudit-common...
I: Unpacking libaudit1:amd64...
I: Unpacking libblkid1:amd64...
I: Unpacking libbz2-1.0:amd64...
I: Unpacking libc-bin...
I: Unpacking libc6:amd64...
I: Unpacking libcap2:amd64...
I: Unpacking libcap2-bin...
I: Unpacking libcomerr2:amd64...
I: Unpacking libcryptsetup4:amd64...
I: Unpacking libdb5.3:amd64...
I: Unpacking libdebconfclient0:amd64...
I: Unpacking libdevmapper1.02.1:amd64...
I: Unpacking libfdisk1:amd64...
I: Unpacking libgcc1:amd64...
I: Unpacking libgcrypt20:amd64...
I: Unpacking libgpg-error0:amd64...
I: Unpacking libkmod2:amd64...
I: Unpacking liblzma5:amd64...
I: Unpacking libmount1:amd64...
I: Unpacking libncurses5:amd64...
I: Unpacking libncursesw5:amd64...
I: Unpacking libpam-modules:amd64...
I: Unpacking libpam-modules-bin...
I: Unpacking libpam-runtime...
I: Unpacking libpam0g:amd64...
I: Unpacking libpcre3:amd64...
I: Unpacking libprocps4:amd64...
I: Unpacking libseccomp2:amd64...
I: Unpacking libselinux1:amd64...
I: Unpacking libsemanage-common...
I: Unpacking libsemanage1:amd64...
I: Unpacking libsepol1:amd64...
I: Unpacking libsmartcols1:amd64...
I: Unpacking libss2:amd64...
I: Unpacking libsystemd0:amd64...
I: Unpacking libtinfo5:amd64...
I: Unpacking libudev1:amd64...
I: Unpacking libustr-1.0-1:amd64...
I: Unpacking libuuid1:amd64...
I: Unpacking locales...
I: Unpacking login...
I: Unpacking lsb-base...
I: Unpacking makedev...
I: Unpacking mawk...
I: Unpacking mount...
I: Unpacking multiarch-support...
I: Unpacking ncurses-base...
I: Unpacking ncurses-bin...
I: Unpacking passwd...
I: Unpacking perl-base...
I: Unpacking procps...
I: Unpacking sed...
I: Unpacking sensible-utils...
I: Unpacking systemd...
I: Unpacking systemd-sysv...
I: Unpacking sysv-rc...
I: Unpacking sysvinit-utils...
I: Unpacking tar...
I: Unpacking tzdata...
I: Unpacking util-linux...
I: Unpacking zlib1g:amd64...
I: Configuring required packages...
I: Configuring gcc-6-base:amd64...
I: Configuring lsb-base...
I: Configuring sensible-utils...
I: Configuring ncurses-base...
I: Configuring libsemanage-common...
I: Configuring libaudit-common...
I: Configuring libc6:amd64...
I: Configuring libbz2-1.0:amd64...
I: Configuring libkmod2:amd64...
I: Configuring libgpg-error0:amd64...
I: Configuring libc-bin...
I: Configuring libseccomp2:amd64...
I: Configuring libapparmor1:amd64...
I: Configuring libdebconfclient0:amd64...
I: Configuring diffutils...
I: Configuring insserv...
I: Configuring libcomerr2:amd64...
I: Configuring libsepol1:amd64...
I: Configuring libgcc1:amd64...
I: Configuring libustr-1.0-1:amd64...
I: Configuring libsmartcols1:amd64...
I: Configuring libaudit1:amd64...
I: Configuring libtinfo5:amd64...
I: Configuring libudev1:amd64...
I: Configuring libss2:amd64...
I: Configuring base-passwd...
I: Configuring e2fslibs:amd64...
I: Configuring debianutils...
I: Configuring libgcrypt20:amd64...
I: Configuring libncursesw5:amd64...
I: Configuring libdb5.3:amd64...
I: Configuring zlib1g:amd64...
I: Configuring hostname...
I: Configuring multiarch-support...
I: Configuring mawk...
I: Configuring libcap2:amd64...
I: Configuring libpcre3:amd64...
I: Configuring base-files...
I: Configuring libselinux1:amd64...
I: Configuring findutils...
I: Configuring ncurses-bin...
I: Configuring libncurses5:amd64...
I: Configuring makedev...
I: Configuring libattr1:amd64...
I: Configuring liblzma5:amd64...
I: Configuring libcap2-bin...
I: Configuring libsystemd0:amd64...
I: Configuring libdevmapper1.02.1:amd64...
I: Configuring libsemanage1:amd64...
I: Configuring libacl1:amd64...
I: Configuring libprocps4:amd64...
I: Configuring bsdutils...
I: Configuring coreutils...
I: Configuring tar...
I: Configuring dpkg...
I: Configuring sed...
I: Configuring perl-base...
I: Configuring grep...
I: Configuring debconf...
I: Configuring tzdata...
I: Configuring gzip...
I: Configuring dash...
I: Configuring init-system-helpers...
I: Configuring sysvinit-utils...
I: Configuring sysv-rc...
I: Configuring libpam0g:amd64...
I: Configuring locales...
I: Configuring libpam-modules-bin...
I: Configuring bash...
I: Configuring libpam-modules:amd64...
I: Configuring libpam-runtime...
I: Configuring passwd...
I: Configuring login...
I: Configuring adduser...
I: Configuring libuuid1:amd64...
I: Configuring libblkid1:amd64...
I: Configuring libmount1:amd64...
I: Configuring libcryptsetup4:amd64...
I: Configuring mount...
I: Configuring libfdisk1:amd64...
I: Configuring initscripts...
I: Configuring util-linux...
I: Configuring e2fsprogs...
I: Configuring procps...
I: Configuring systemd...
I: Configuring systemd-sysv...
I: Configuring init...
I: Configuring libc-bin...
I: Unpacking the base system...
I: Unpacking apt...
I: Unpacking apt-utils...
I: Unpacking busybox-initramfs...
I: Unpacking bzip2...
I: Unpacking console-setup...
I: Unpacking console-setup-linux...
I: Unpacking cpio...
I: Unpacking cron...
I: Unpacking debconf-i18n...
I: Unpacking dh-python...
I: Unpacking distro-info-data...
I: Unpacking eject...
I: Unpacking file...
I: Unpacking gcc-5-base:amd64...
I: Unpacking gnupg...
I: Unpacking gpgv...
I: Unpacking ifupdown...
I: Unpacking initramfs-tools...
I: Unpacking initramfs-tools-bin...
I: Unpacking initramfs-tools-core...
I: Unpacking iproute2...
I: Unpacking iputils-ping...
I: Unpacking isc-dhcp-client...
I: Unpacking isc-dhcp-common...
I: Unpacking kbd...
I: Unpacking keyboard-configuration...
I: Unpacking klibc-utils...
I: Unpacking kmod...
I: Unpacking less...
I: Unpacking libapt-inst2.0:amd64...
I: Unpacking libapt-pkg5.0:amd64...
I: Unpacking libatm1:amd64...
I: Unpacking libbsd0:amd64...
I: Unpacking libdns-export162...
I: Unpacking libestr0...
I: Unpacking libffi6:amd64...
I: Unpacking libfribidi0:amd64...
I: Unpacking libgmp10:amd64...
I: Unpacking libgnutls-openssl27:amd64...
I: Unpacking libgnutls30:amd64...
I: Unpacking libhogweed4:amd64...
I: Unpacking libidn11:amd64...
I: Unpacking libisc-export160...
I: Unpacking libjson-c2:amd64...
I: Unpacking libklibc...
I: Unpacking liblocale-gettext-perl...
I: Unpacking liblz4-1:amd64...
I: Unpacking libmagic1:amd64...
I: Unpacking libmnl0:amd64...
I: Unpacking libmpdec2:amd64...
I: Unpacking libnettle6:amd64...
I: Unpacking libnewt0.52:amd64...
I: Unpacking libnih1:amd64...
I: Unpacking libp11-kit0:amd64...
I: Unpacking libpng12-0:amd64...
I: Unpacking libpopt0:amd64...
I: Unpacking libpython3-stdlib:amd64...
I: Unpacking libpython3.5-stdlib:amd64...
I: Unpacking libreadline6:amd64...
I: Unpacking libslang2:amd64...
I: Unpacking libsqlite3-0:amd64...
I: Unpacking libstdc++6:amd64...
I: Unpacking libtasn1-6:amd64...
I: Unpacking libtext-charwidth-perl...
I: Unpacking libtext-iconv-perl...
I: Unpacking libtext-wrapi18n-perl...
I: Unpacking libusb-0.1-4:amd64...
I: Unpacking libxtables11:amd64...
I: Unpacking linux-base...
I: Unpacking logrotate...
I: Unpacking lsb-release...
I: Unpacking mime-support...
I: Unpacking net-tools...
I: Unpacking netbase...
I: Unpacking netcat-openbsd...
I: Unpacking python3...
I: Unpacking python3.5...
I: Unpacking readline-common...
I: Unpacking resolvconf...
I: Unpacking rsyslog...
I: Unpacking sudo...
I: Unpacking ubuntu-keyring...
I: Unpacking ubuntu-minimal...
I: Unpacking ucf...
I: Unpacking udev...
I: Unpacking ureadahead...
I: Unpacking vim-common...
I: Unpacking vim-tiny...
I: Unpacking whiptail...
I: Unpacking xkb-data...
I: Configuring the base system...
I: Configuring readline-common...
I: Configuring libnettle6:amd64...
I: Configuring cpio...
I: Configuring libpopt0:amd64...
I: Configuring kmod...
I: Configuring libestr0...
I: Configuring less...
I: Configuring libisc-export160...
I: Configuring liblz4-1:amd64...
I: Configuring mime-support...
I: Configuring sudo...
I: Configuring isc-dhcp-common...
I: Configuring libklibc...
I: Configuring gpgv...
I: Configuring xkb-data...
I: Configuring linux-base...
I: Configuring libxtables11:amd64...
I: Configuring libdns-export162...
I: Configuring distro-info-data...
I: Configuring libbsd0:amd64...
I: Configuring libpng12-0:amd64...
I: Configuring ucf...
I: Configuring libtasn1-6:amd64...
I: Configuring bzip2...
I: Configuring libmagic1:amd64...
I: Configuring netcat-openbsd...
I: Configuring busybox-initramfs...
I: Configuring libgmp10:amd64...
I: Configuring libatm1:amd64...
I: Configuring udev...
I: Configuring libtext-iconv-perl...
I: Configuring vim-common...
I: Configuring libsqlite3-0:amd64...
I: Configuring libfribidi0:amd64...
I: Configuring liblocale-gettext-perl...
I: Configuring libffi6:amd64...
I: Configuring libtext-charwidth-perl...
I: Configuring initramfs-tools-bin...
I: Configuring net-tools...
I: Configuring libslang2:amd64...
I: Configuring cron...
I: Configuring libmnl0:amd64...
I: Configuring libusb-0.1-4:amd64...
I: Configuring libnih1:amd64...
I: Configuring logrotate...
I: Configuring libidn11:amd64...
I: Configuring libmpdec2:amd64...
I: Configuring ubuntu-keyring...
I: Configuring libreadline6:amd64...
I: Configuring gcc-5-base:amd64...
I: Configuring libjson-c2:amd64...
I: Configuring eject...
I: Configuring netbase...
I: Configuring vim-tiny...
I: Configuring keyboard-configuration...
I: Configuring klibc-utils...
I: Configuring ureadahead...
I: Configuring initramfs-tools-core...
I: Configuring libpython3.5-stdlib:amd64...
I: Configuring gnupg...
I: Configuring initramfs-tools...
I: Configuring file...
I: Configuring iproute2...
I: Configuring isc-dhcp-client...
I: Configuring libhogweed4:amd64...
I: Configuring libtext-wrapi18n-perl...
I: Configuring libp11-kit0:amd64...
I: Configuring libstdc++6:amd64...
I: Configuring libnewt0.52:amd64...
I: Configuring rsyslog...
I: Configuring python3.5...
I: Configuring libpython3-stdlib:amd64...
I: Configuring libapt-pkg5.0:amd64...
I: Configuring libapt-inst2.0:amd64...
I: Configuring ifupdown...
I: Configuring debconf-i18n...
I: Configuring whiptail...
I: Configuring libgnutls30:amd64...
I: Configuring libgnutls-openssl27:amd64...
I: Configuring apt...
I: Configuring resolvconf...
I: Configuring iputils-ping...
I: Configuring apt-utils...
I: Configuring kbd...
I: Configuring console-setup-linux...
I: Configuring console-setup...
I: Configuring python3...
I: Configuring lsb-release...
I: Configuring ubuntu-minimal...
I: Configuring dh-python...
I: Configuring libc-bin...
I: Configuring systemd...
I: Configuring initramfs-tools...
I: Configuring ureadahead...
I: Configuring resolvconf...
I: Base system installed successfully.
Pruning /mnt/stateful_partition/crouton/chroots/xenial mounts...
Creating hwaudio group with GID 18...
Changing audio GID from 29 to 600...
Changing cdrom GID from 24 to 19...
Creating crouton group with GID 1001...
Creating unassociated devbroker-access group...
Changing floppy GID from 25 to 11...
Creating i2c group with GID 404...
Changing input GID from 106 to 222...
Creating serial group with GID 402...
Changing plugdev GID from 46 to 85...
Changing uucp GID from 10 to 14...
Changing video GID from 44 to 27...
Moving sudo GID from 27 to 28...
Creating wayland group with GID 601...
Installing target core...
Preparing environment...
Preparing software sources...
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [99.8 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease [99.8 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/restricted Sources [4808 B]
Get:6 http://archive.ubuntu.com/ubuntu xenial/universe Sources [7728 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [8344 B]
Get:10 http://archive.ubuntu.com/ubuntu xenial/restricted Translation-en [2908 B]
Get:11 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4354 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/main Sources [537 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [3608 B]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [445 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [12.3 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1268 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1268 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [303 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [10.2 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2272 B]
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [1171 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [334 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [21.6 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8440 B]
Get:27 http://archive.ubuntu.com/ubuntu xenial-security/main Sources [252 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial-security/restricted Sources [2976 B]
Get:29 http://archive.ubuntu.com/ubuntu xenial-security/universe Sources [211 kB]
Get:30 http://archive.ubuntu.com/ubuntu xenial-security/multiverse Sources [4636 B]
Get:31 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [913 kB]
Get:32 http://archive.ubuntu.com/ubuntu xenial-security/main Translation-en [211 kB]
Get:33 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [9824 B]
Get:34 http://archive.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2152 B]
Get:35 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [741 kB]
Get:36 http://archive.ubuntu.com/ubuntu xenial-security/universe Translation-en [203 kB]
Get:37 http://archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [7864 B]
Get:38 http://archive.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [2672 B]
Fetched 27.7 MB in 44s (626 kB/s)
Reading package lists... Done
Ensuring system is up-to-date...
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following NEW packages will be installed:
apt-transport-https ca-certificates distro-info iso-codes krb5-locales
libasn1-8-heimdal libcurl3-gnutls libgssapi-krb5-2 libgssapi3-heimdal
libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal
libhx509-5-heimdal libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3
libkrb5support0 libldap-2.4-2 libroken18-heimdal librtmp1 libsasl2-2
libsasl2-modules libsasl2-modules-db libwind0-heimdal libyaml-0-2 libzstd1
openssl python-apt-common python3-apt python3-pkg-resources python3-yaml
ubuntu-advantage-tools ubuntu-pro-client ubuntu-pro-client-l10n
The following packages will be upgraded:
apt apt-utils base-files bash bsdutils busybox-initramfs bzip2 console-setup
console-setup-linux coreutils cpio debconf debconf-i18n dh-python
distro-info-data dpkg e2fslibs e2fsprogs eject file gcc-5-base gnupg gpgv
grep ifupdown init init-system-helpers initramfs-tools initramfs-tools-bin
initramfs-tools-core iproute2 isc-dhcp-client isc-dhcp-common kbd
keyboard-configuration klibc-utils kmod less libapparmor1 libapt-inst2.0
libapt-pkg5.0 libaudit-common libaudit1 libblkid1 libbsd0 libbz2-1.0
libc-bin libc6 libcomerr2 libcryptsetup4 libdb5.3 libdns-export162 libexpat1
libfdisk1 libgcrypt20 libgnutls-openssl27 libgnutls30 libhogweed4 libidn11
libisc-export160 libjson-c2 libklibc libkmod2 libmagic1 libmount1 libnettle6
libp11-kit0 libpam-modules libpam-modules-bin libpam-runtime libpam0g
libpng12-0 libprocps4 libpython3.5-minimal libpython3.5-stdlib libseccomp2
libslang2 libsmartcols1 libsqlite3-0 libss2 libssl1.0.0 libstdc++6
libsystemd0 libtasn1-6 libudev1 libuuid1 linux-base locales login logrotate
lsb-base lsb-release makedev mount multiarch-support passwd perl-base procps
python3.5 python3.5-minimal resolvconf rsyslog sensible-utils sudo systemd
systemd-sysv tar tzdata ubuntu-keyring ubuntu-minimal udev ureadahead
util-linux vim-common vim-tiny zlib1g
116 upgraded, 35 newly installed, 0 to remove and 0 not upgraded.
Need to get 45.6 MB of archives.
After this operation, 31.3 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 base-files amd64 9.4ubuntu4.14 [60.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 bash amd64 4.3-14ubuntu1.4 [583 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 bsdutils amd64 1:2.27.1-6ubuntu3.10 [50.6 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 coreutils amd64 8.25-2ubuntu3~16.04 [1174 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6 amd64 2.23-0ubuntu11.3 [2590 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libzstd1 amd64 1.3.1+dfsg-1~ubuntu0.16.04.1 [153 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dpkg amd64 1.18.4ubuntu1.7 [2084 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 e2fslibs amd64 1.42.13-1ubuntu1.2 [188 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 e2fsprogs amd64 1.42.13-1ubuntu1.2 [770 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 grep amd64 2.25-1~16.04.1 [153 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 perl-base amd64 5.22.1-9ubuntu0.9 [1287 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 init-system-helpers all 1.29ubuntu4 [32.3 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 init amd64 1.29ubuntu4 [4624 B]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 login amd64 1:4.2-3.1ubuntu5.4 [304 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libudev1 amd64 229-4ubuntu21.31 [54.8 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 udev amd64 229-4ubuntu21.31 [995 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ifupdown amd64 0.8.10ubuntu1.4 [54.9 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libsystemd0 amd64 229-4ubuntu21.31 [205 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 systemd amd64 229-4ubuntu21.31 [3611 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libaudit-common all 1:2.4.5-1ubuntu2.1 [3924 B]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libaudit1 amd64 1:2.4.5-1ubuntu2.1 [36.2 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 debconf-i18n all 1.5.58ubuntu2 [206 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 debconf all 1.5.58ubuntu2 [136 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpam0g amd64 1.1.8-3.2ubuntu2.3 [55.7 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpam-modules-bin amd64 1.1.8-3.2ubuntu2.3 [36.9 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpam-modules amd64 1.1.8-3.2ubuntu2.3 [244 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 passwd amd64 1:4.2-3.1ubuntu5.4 [780 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libuuid1 amd64 2.27.1-6ubuntu3.10 [14.5 kB]
Get:29 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libblkid1 amd64 2.27.1-6ubuntu3.10 [107 kB]
Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 kmod amd64 22-1ubuntu5.2 [88.6 kB]
Get:31 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkmod2 amd64 22-1ubuntu5.2 [39.9 kB]
Get:32 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libprocps4 amd64 2:3.3.10-4ubuntu2.5 [32.9 kB]
Get:33 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 procps amd64 2:3.3.10-4ubuntu2.5 [222 kB]
Get:34 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdb5.3 amd64 5.3.28-11ubuntu0.2 [670 kB]
Get:35 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 iproute2 amd64 4.3.0-1ubuntu3.16.04.5 [523 kB]
Get:36 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapparmor1 amd64 2.10.95-0ubuntu2.12 [29.4 kB]
Get:37 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgcrypt20 amd64 1.6.5-2ubuntu0.6 [336 kB]
Get:38 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcryptsetup4 amd64 2:1.6.6-5ubuntu2.1 [73.3 kB]
Get:39 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libmount1 amd64 2.27.1-6ubuntu3.10 [114 kB]
Get:40 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libseccomp2 amd64 2.5.1-1ubuntu1~16.04.1 [43.2 kB]
Get:41 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 kbd amd64 1.15.5-1ubuntu5 [183 kB]
Get:42 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 console-setup-linux all 1.108ubuntu15.5 [984 kB]
Get:43 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 initramfs-tools-core all 0.122ubuntu8.17 [45.0 kB]
Get:44 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 klibc-utils amd64 2.0.4-8ubuntu1.16.04.4 [108 kB]
Get:45 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 initramfs-tools all 0.122ubuntu8.17 [8932 B]
Get:46 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 console-setup all 1.108ubuntu15.5 [117 kB]
Get:47 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 keyboard-configuration all 1.108ubuntu15.5 [658 kB]
Get:48 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 initramfs-tools-bin amd64 0.122ubuntu8.17 [9652 B]
Get:49 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 busybox-initramfs amd64 1:1.22.0-15ubuntu1.4 [179 kB]
Get:50 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libklibc amd64 2.0.4-8ubuntu1.16.04.4 [41.0 kB]
Get:51 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 cpio amd64 2.11+dfsg-5ubuntu1.1 [75.2 kB]
Get:52 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-base all 4.5ubuntu1.2~16.04.1 [17.8 kB]
Get:53 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 lsb-base all 9.20160110ubuntu0.2 [13.7 kB]
Get:54 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 util-linux amd64 2.27.1-6ubuntu3.10 [849 kB]
Get:55 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 mount amd64 2.27.1-6ubuntu3.10 [121 kB]
Get:56 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 tar amd64 1.28-2.1ubuntu0.2 [209 kB]
Get:57 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 locales all 2.23-0ubuntu11.3 [3197 kB]
Get:58 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc-bin amd64 2.23-0ubuntu11.3 [629 kB]
Get:59 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 bzip2 amd64 1.0.6-8ubuntu0.2 [32.5 kB]
Get:60 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libbz2-1.0 amd64 1.0.6-8ubuntu0.2 [30.7 kB]
Get:61 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 gcc-5-base amd64 5.4.0-6ubuntu1~16.04.12 [17.4 kB]
Get:62 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libstdc++6 amd64 5.4.0-6ubuntu1~16.04.12 [393 kB]
Get:63 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 zlib1g amd64 1:1.2.8.dfsg-2ubuntu4.3 [51.2 kB]
Get:64 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapt-pkg5.0 amd64 1.2.35 [715 kB]
Get:65 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapt-inst2.0 amd64 1.2.35 [54.8 kB]
Get:66 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apt amd64 1.2.35 [1107 kB]
Get:67 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apt-utils amd64 1.2.35 [196 kB]
Get:68 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ubuntu-keyring all 2012.05.19.1 [18.4 kB]
Get:69 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 gpgv amd64 1.4.20-1ubuntu3.3 [165 kB]
Get:70 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 gnupg amd64 1.4.20-1ubuntu3.3 [626 kB]
Get:71 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 systemd-sysv amd64 229-4ubuntu21.31 [12.3 kB]
Get:72 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libssl1.0.0 amd64 1.0.2g-1ubuntu4.20 [1083 kB]
Get:73 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3.5 amd64 3.5.2-2ubuntu0~16.04.13 [165 kB]
Get:74 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython3.5-stdlib amd64 3.5.2-2ubuntu0~16.04.13 [2135 kB]
Get:75 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3.5-minimal amd64 3.5.2-2ubuntu0~16.04.13 [1597 kB]
Get:76 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython3.5-minimal amd64 3.5.2-2ubuntu0~16.04.13 [524 kB]
Get:77 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libsqlite3-0 amd64 3.11.0-1ubuntu1.5 [398 kB]
Get:78 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libexpat1 amd64 2.1.0-7ubuntu0.16.04.5 [71.5 kB]
Get:79 http://archive.ubuntu.com/ubuntu xenial/main amd64 libyaml-0-2 amd64 0.1.6-3 [47.6 kB]
Get:80 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcomerr2 amd64 1.42.13-1ubuntu1.2 [65.8 kB]
Get:81 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libfdisk1 amd64 2.27.1-6ubuntu3.10 [138 kB]
Get:82 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpam-runtime all 1.1.8-3.2ubuntu2.3 [37.8 kB]
Get:83 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libsmartcols1 amd64 2.27.1-6ubuntu3.10 [62.1 kB]
Get:84 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libss2 amd64 1.42.13-1ubuntu1.2 [70.2 kB]
Get:85 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 multiarch-support amd64 2.23-0ubuntu11.3 [6830 B]
Get:86 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 sensible-utils all 0.0.9ubuntu0.16.04.1 [10.0 kB]
Get:87 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 makedev all 2.3.1-93ubuntu2~ubuntu16.04.1 [24.4 kB]
Get:88 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 tzdata all 2021a-0ubuntu0.16.04 [167 kB]
Get:89 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dh-python all 2.20151103ubuntu1.2 [73.9 kB]
Get:90 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 distro-info-data all 0.28ubuntu0.18 [4530 B]
Get:91 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 eject amd64 2.1.5+deb1+cvs20081104-13.1ubuntu0.16.04.1 [23.0 kB]
Get:92 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 file amd64 1:5.25-2ubuntu1.4 [21.2 kB]
Get:93 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libmagic1 amd64 1:5.25-2ubuntu1.4 [216 kB]
Get:94 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisc-export160 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [153 kB]
Get:95 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdns-export162 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [665 kB]
Get:96 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 isc-dhcp-client amd64 4.3.3-5ubuntu12.10 [224 kB]
Get:97 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 isc-dhcp-common amd64 4.3.3-5ubuntu12.10 [105 kB]
Get:98 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 less amd64 481-2.1ubuntu0.2 [110 kB]
Get:99 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libbsd0 amd64 0.8.2-1ubuntu0.1 [42.0 kB]
Get:100 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libhogweed4 amd64 3.2-1ubuntu0.16.04.2 [136 kB]
Get:101 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libnettle6 amd64 3.2-1ubuntu0.16.04.2 [93.7 kB]
Get:102 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libidn11 amd64 1.32-3ubuntu1.2 [46.5 kB]
Get:103 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libp11-kit0 amd64 0.23.2-5~ubuntu16.04.2 [107 kB]
Get:104 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtasn1-6 amd64 4.7-3ubuntu0.16.04.3 [43.5 kB]
Get:105 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgnutls-openssl27 amd64 3.4.10-4ubuntu1.9 [21.9 kB]
Get:106 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgnutls30 amd64 3.4.10-4ubuntu1.9 [548 kB]
Get:107 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libjson-c2 amd64 0.11-4ubuntu2.6 [22.2 kB]
Get:108 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpng12-0 amd64 1.2.54-1ubuntu1.1 [116 kB]
Get:109 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libslang2 amd64 2.3.0-2ubuntu1.1 [415 kB]
Get:110 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 logrotate amd64 3.8.7-2ubuntu2.16.04.2 [37.7 kB]
Get:111 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 lsb-release all 9.20160110ubuntu0.2 [11.8 kB]
Get:112 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 resolvconf all 1.78ubuntu7 [52.7 kB]
Get:113 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 rsyslog amd64 8.16.0-1ubuntu3.1 [366 kB]
Get:114 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 sudo amd64 1.8.16-0ubuntu1.10 [390 kB]
Get:115 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-yaml amd64 3.11-3build1 [95.6 kB]
Get:116 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-apt-common all 1.1.0~beta1ubuntu0.16.04.12 [16.7 kB]
Get:117 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-apt amd64 1.1.0~beta1ubuntu0.16.04.12 [145 kB]
Get:118 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-pkg-resources all 20.7.0-1 [79.0 kB]
Get:119 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkrb5support0 amd64 1.13.2+dfsg-5ubuntu2.2 [31.2 kB]
Get:120 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libk5crypto3 amd64 1.13.2+dfsg-5ubuntu2.2 [81.2 kB]
Get:121 http://archive.ubuntu.com/ubuntu xenial/main amd64 libkeyutils1 amd64 1.5.9-8ubuntu1 [9904 B]
Get:122 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkrb5-3 amd64 1.13.2+dfsg-5ubuntu2.2 [273 kB]
Get:123 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgssapi-krb5-2 amd64 1.13.2+dfsg-5ubuntu2.2 [120 kB]
Get:124 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libroken18-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [41.4 kB]
Get:125 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libasn1-8-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [174 kB]
Get:126 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libhcrypto4-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [85.0 kB]
Get:127 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libheimbase1-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [29.3 kB]
Get:128 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libwind0-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [47.8 kB]
Get:129 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libhx509-5-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [107 kB]
Get:130 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkrb5-26-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [202 kB]
Get:131 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libheimntlm0-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [15.1 kB]
Get:132 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgssapi3-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [96.1 kB]
Get:133 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libsasl2-modules-db amd64 2.1.26.dfsg1-14ubuntu0.2 [14.5 kB]
Get:134 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libsasl2-2 amd64 2.1.26.dfsg1-14ubuntu0.2 [48.7 kB]
Get:135 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libldap-2.4-2 amd64 2.4.42+dfsg-2ubuntu3.13 [159 kB]
Get:136 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d-1ubuntu0.1 [54.4 kB]
Get:137 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcurl3-gnutls amd64 7.47.0-1ubuntu2.19 [189 kB]
Get:138 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apt-transport-https amd64 1.2.35 [26.6 kB]
Get:139 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 distro-info amd64 0.14ubuntu0.2 [20.1 kB]
Get:140 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ubuntu-pro-client amd64 31.2.2~16.04 [195 kB]
Get:141 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ubuntu-advantage-tools all 31.2.2~16.04 [11.2 kB]
Get:142 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ureadahead amd64 0.100.0-19.1 [19.4 kB]
Get:143 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 vim-tiny amd64 2:7.4.1689-3ubuntu1.5 [445 kB]
Get:144 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 vim-common amd64 2:7.4.1689-3ubuntu1.5 [104 kB]
Get:145 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ubuntu-minimal amd64 1.361.6 [2874 B]
Get:146 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ubuntu-pro-client-l10n amd64 31.2.2~16.04 [18.4 kB]
Get:147 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openssl amd64 1.0.2g-1ubuntu4.20 [492 kB]
Get:148 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ca-certificates all 20210119~16.04.1 [148 kB]
Get:149 http://archive.ubuntu.com/ubuntu xenial/main amd64 iso-codes all 3.65-1 [2268 kB]
Get:150 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 krb5-locales all 1.13.2+dfsg-5ubuntu2.2 [13.7 kB]
Get:151 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libsasl2-modules amd64 2.1.26.dfsg1-14ubuntu0.2 [47.7 kB]
Fetched 45.6 MB in 2min 8s (354 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../base-files_9.4ubuntu4.14_amd64.deb ...
Unpacking base-files (9.4ubuntu4.14) over (9.4ubuntu4) ...
Setting up base-files (9.4ubuntu4.14) ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Installing new version of config file /etc/lsb-release ...
Installing new version of config file /etc/update-motd.d/10-help-text ...
(Reading database ... 10450 files and directories currently installed.)
Preparing to unpack .../bash_4.3-14ubuntu1.4_amd64.deb ...
Unpacking bash (4.3-14ubuntu1.4) over (4.3-14ubuntu1) ...
Setting up bash (4.3-14ubuntu1.4) ...
Installing new version of config file /etc/skel/.profile ...
update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode
(Reading database ... 10450 files and directories currently installed.)
Preparing to unpack .../bsdutils_1%3a2.27.1-6ubuntu3.10_amd64.deb ...
Unpacking bsdutils (1:2.27.1-6ubuntu3.10) over (1:2.27.1-6ubuntu3) ...
Setting up bsdutils (1:2.27.1-6ubuntu3.10) ...
(Reading database ... 10450 files and directories currently installed.)
Preparing to unpack .../coreutils_8.25-2ubuntu3~16.04_amd64.deb ...
Unpacking coreutils (8.25-2ubuntu3~16.04) over (8.25-2ubuntu2) ...
Setting up coreutils (8.25-2ubuntu3~16.04) ...
(Reading database ... 10450 files and directories currently installed.)
Preparing to unpack .../libc6_2.23-0ubuntu11.3_amd64.deb ...
Unpacking libc6:amd64 (2.23-0ubuntu11.3) over (2.23-0ubuntu3) ...
Setting up libc6:amd64 (2.23-0ubuntu11.3) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Selecting previously unselected package libzstd1.
(Reading database ... 10450 files and directories currently installed.)
Preparing to unpack .../libzstd1_1.3.1+dfsg-1~ubuntu0.16.04.1_amd64.deb ...
Unpacking libzstd1 (1.3.1+dfsg-1~ubuntu0.16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libzstd1 (1.3.1+dfsg-1~ubuntu0.16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 10455 files and directories currently installed.)
Preparing to unpack .../dpkg_1.18.4ubuntu1.7_amd64.deb ...
Unpacking dpkg (1.18.4ubuntu1.7) over (1.18.4ubuntu1) ...
Setting up dpkg (1.18.4ubuntu1.7) ...
(Reading database ... 10455 files and directories currently installed.)
Preparing to unpack .../e2fslibs_1.42.13-1ubuntu1.2_amd64.deb ...
Unpacking e2fslibs:amd64 (1.42.13-1ubuntu1.2) over (1.42.13-1ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up e2fslibs:amd64 (1.42.13-1ubuntu1.2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 10455 files and directories currently installed.)
Preparing to unpack .../e2fsprogs_1.42.13-1ubuntu1.2_amd64.deb ...
Unpacking e2fsprogs (1.42.13-1ubuntu1.2) over (1.42.13-1ubuntu1) ...
Setting up e2fsprogs (1.42.13-1ubuntu1.2) ...
(Reading database ... 10455 files and directories currently installed.)
Preparing to unpack .../grep_2.25-1~16.04.1_amd64.deb ...
Unpacking grep (2.25-1~16.04.1) over (2.24-1) ...
Setting up grep (2.25-1~16.04.1) ...
(Reading database ... 10455 files and directories currently installed.)
Preparing to unpack .../perl-base_5.22.1-9ubuntu0.9_amd64.deb ...
Unpacking perl-base (5.22.1-9ubuntu0.9) over (5.22.1-9) ...
Setting up perl-base (5.22.1-9ubuntu0.9) ...
(Reading database ... 10455 files and directories currently installed.)
Preparing to unpack .../init-system-helpers_1.29ubuntu4_all.deb ...
Unpacking init-system-helpers (1.29ubuntu4) over (1.29ubuntu1) ...
Setting up init-system-helpers (1.29ubuntu4) ...
(Reading database ... 10455 files and directories currently installed.)
Preparing to unpack .../init_1.29ubuntu4_amd64.deb ...
Unpacking init (1.29ubuntu4) over (1.29ubuntu1) ...
Setting up init (1.29ubuntu4) ...
(Reading database ... 10455 files and directories currently installed.)
Preparing to unpack .../login_1%3a4.2-3.1ubuntu5.4_amd64.deb ...
Unpacking login (1:4.2-3.1ubuntu5.4) over (1:4.2-3.1ubuntu5) ...
Setting up login (1:4.2-3.1ubuntu5.4) ...
(Reading database ... 10455 files and directories currently installed.)
Preparing to unpack .../libudev1_229-4ubuntu21.31_amd64.deb ...
Unpacking libudev1:amd64 (229-4ubuntu21.31) over (229-4ubuntu4) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libudev1:amd64 (229-4ubuntu21.31) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 10455 files and directories currently installed.)
Preparing to unpack .../udev_229-4ubuntu21.31_amd64.deb ...
Unpacking udev (229-4ubuntu21.31) over (229-4ubuntu4) ...
Preparing to unpack .../ifupdown_0.8.10ubuntu1.4_amd64.deb ...
Unpacking ifupdown (0.8.10ubuntu1.4) over (0.8.10ubuntu1) ...
Preparing to unpack .../libsystemd0_229-4ubuntu21.31_amd64.deb ...
Unpacking libsystemd0:amd64 (229-4ubuntu21.31) over (229-4ubuntu4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libsystemd0:amd64 (229-4ubuntu21.31) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 10456 files and directories currently installed.)
Preparing to unpack .../systemd_229-4ubuntu21.31_amd64.deb ...
Unpacking systemd (229-4ubuntu21.31) over (229-4ubuntu4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up systemd (229-4ubuntu21.31) ...
Installing new version of config file /etc/systemd/system.conf ...
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
Operation failed: No such file or directory
[/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../libaudit-common_1%3a2.4.5-1ubuntu2.1_all.deb ...
Unpacking libaudit-common (1:2.4.5-1ubuntu2.1) over (1:2.4.5-1ubuntu2) ...
Setting up libaudit-common (1:2.4.5-1ubuntu2.1) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../libaudit1_1%3a2.4.5-1ubuntu2.1_amd64.deb ...
Unpacking libaudit1:amd64 (1:2.4.5-1ubuntu2.1) over (1:2.4.5-1ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libaudit1:amd64 (1:2.4.5-1ubuntu2.1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../debconf-i18n_1.5.58ubuntu2_all.deb ...
Unpacking debconf-i18n (1.5.58ubuntu2) over (1.5.58ubuntu1) ...
Preparing to unpack .../debconf_1.5.58ubuntu2_all.deb ...
Unpacking debconf (1.5.58ubuntu2) over (1.5.58ubuntu1) ...
Setting up debconf (1.5.58ubuntu2) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../libpam0g_1.1.8-3.2ubuntu2.3_amd64.deb ...
Unpacking libpam0g:amd64 (1.1.8-3.2ubuntu2.3) over (1.1.8-3.2ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libpam0g:amd64 (1.1.8-3.2ubuntu2.3) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../libpam-modules-bin_1.1.8-3.2ubuntu2.3_amd64.deb ...
Unpacking libpam-modules-bin (1.1.8-3.2ubuntu2.3) over (1.1.8-3.2ubuntu2) ...
Setting up libpam-modules-bin (1.1.8-3.2ubuntu2.3) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../libpam-modules_1.1.8-3.2ubuntu2.3_amd64.deb ...
Unpacking libpam-modules:amd64 (1.1.8-3.2ubuntu2.3) over (1.1.8-3.2ubuntu2) ...
Setting up libpam-modules:amd64 (1.1.8-3.2ubuntu2.3) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../passwd_1%3a4.2-3.1ubuntu5.4_amd64.deb ...
Unpacking passwd (1:4.2-3.1ubuntu5.4) over (1:4.2-3.1ubuntu5) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up passwd (1:4.2-3.1ubuntu5.4) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../libuuid1_2.27.1-6ubuntu3.10_amd64.deb ...
Unpacking libuuid1:amd64 (2.27.1-6ubuntu3.10) over (2.27.1-6ubuntu3) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libuuid1:amd64 (2.27.1-6ubuntu3.10) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../libblkid1_2.27.1-6ubuntu3.10_amd64.deb ...
Unpacking libblkid1:amd64 (2.27.1-6ubuntu3.10) over (2.27.1-6ubuntu3) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libblkid1:amd64 (2.27.1-6ubuntu3.10) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../kmod_22-1ubuntu5.2_amd64.deb ...
Unpacking kmod (22-1ubuntu5.2) over (22-1ubuntu4) ...
Preparing to unpack .../libkmod2_22-1ubuntu5.2_amd64.deb ...
Unpacking libkmod2:amd64 (22-1ubuntu5.2) over (22-1ubuntu4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libkmod2:amd64 (22-1ubuntu5.2) ...
Processing triggers for systemd (229-4ubuntu21.31) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../libprocps4_2%3a3.3.10-4ubuntu2.5_amd64.deb ...
Unpacking libprocps4:amd64 (2:3.3.10-4ubuntu2.5) over (2:3.3.10-4ubuntu2) ...
Preparing to unpack .../procps_2%3a3.3.10-4ubuntu2.5_amd64.deb ...
Running in chroot, ignoring request.
invoke-rc.d: policy-rc.d denied execution of stop.
Unpacking procps (2:3.3.10-4ubuntu2.5) over (2:3.3.10-4ubuntu2) ...
Preparing to unpack .../libdb5.3_5.3.28-11ubuntu0.2_amd64.deb ...
Unpacking libdb5.3:amd64 (5.3.28-11ubuntu0.2) over (5.3.28-11) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for systemd (229-4ubuntu21.31) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up libdb5.3:amd64 (5.3.28-11ubuntu0.2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../iproute2_4.3.0-1ubuntu3.16.04.5_amd64.deb ...
Unpacking iproute2 (4.3.0-1ubuntu3.16.04.5) over (4.3.0-1ubuntu3) ...
Preparing to unpack .../libapparmor1_2.10.95-0ubuntu2.12_amd64.deb ...
Unpacking libapparmor1:amd64 (2.10.95-0ubuntu2.12) over (2.10.95-0ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libapparmor1:amd64 (2.10.95-0ubuntu2.12) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../libgcrypt20_1.6.5-2ubuntu0.6_amd64.deb ...
Unpacking libgcrypt20:amd64 (1.6.5-2ubuntu0.6) over (1.6.5-2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libgcrypt20:amd64 (1.6.5-2ubuntu0.6) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../libcryptsetup4_2%3a1.6.6-5ubuntu2.1_amd64.deb ...
Unpacking libcryptsetup4:amd64 (2:1.6.6-5ubuntu2.1) over (2:1.6.6-5ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libcryptsetup4:amd64 (2:1.6.6-5ubuntu2.1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../libmount1_2.27.1-6ubuntu3.10_amd64.deb ...
Unpacking libmount1:amd64 (2.27.1-6ubuntu3.10) over (2.27.1-6ubuntu3) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libmount1:amd64 (2.27.1-6ubuntu3.10) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../libseccomp2_2.5.1-1ubuntu1~16.04.1_amd64.deb ...
Unpacking libseccomp2:amd64 (2.5.1-1ubuntu1~16.04.1) over (2.2.3-3ubuntu3) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libseccomp2:amd64 (2.5.1-1ubuntu1~16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 10447 files and directories currently installed.)
Preparing to unpack .../kbd_1.15.5-1ubuntu5_amd64.deb ...
Unpacking kbd (1.15.5-1ubuntu5) over (1.15.5-1ubuntu4) ...
Preparing to unpack .../console-setup-linux_1.108ubuntu15.5_all.deb ...
Unpacking console-setup-linux (1.108ubuntu15.5) over (1.108ubuntu15) ...
Preparing to unpack .../initramfs-tools-core_0.122ubuntu8.17_all.deb ...
Unpacking initramfs-tools-core (0.122ubuntu8.17) over (0.122ubuntu8) ...
Preparing to unpack .../klibc-utils_2.0.4-8ubuntu1.16.04.4_amd64.deb ...
Unpacking klibc-utils (2.0.4-8ubuntu1.16.04.4) over (2.0.4-8ubuntu1) ...
Preparing to unpack .../initramfs-tools_0.122ubuntu8.17_all.deb ...
Unpacking initramfs-tools (0.122ubuntu8.17) over (0.122ubuntu8) ...
Preparing to unpack .../console-setup_1.108ubuntu15.5_all.deb ...
Unpacking console-setup (1.108ubuntu15.5) over (1.108ubuntu15) ...
Preparing to unpack .../keyboard-configuration_1.108ubuntu15.5_all.deb ...
Unpacking keyboard-configuration (1.108ubuntu15.5) over (1.108ubuntu15) ...
Preparing to unpack .../initramfs-tools-bin_0.122ubuntu8.17_amd64.deb ...
Unpacking initramfs-tools-bin (0.122ubuntu8.17) over (0.122ubuntu8) ...
Preparing to unpack .../busybox-initramfs_1%3a1.22.0-15ubuntu1.4_amd64.deb ...
Unpacking busybox-initramfs (1:1.22.0-15ubuntu1.4) over (1:1.22.0-15ubuntu1) ...
Preparing to unpack .../libklibc_2.0.4-8ubuntu1.16.04.4_amd64.deb ...
Unpacking libklibc (2.0.4-8ubuntu1.16.04.4) over (2.0.4-8ubuntu1) ...
Preparing to unpack .../cpio_2.11+dfsg-5ubuntu1.1_amd64.deb ...
Unpacking cpio (2.11+dfsg-5ubuntu1.1) over (2.11+dfsg-5ubuntu1) ...
Preparing to unpack .../linux-base_4.5ubuntu1.2~16.04.1_all.deb ...
Unpacking linux-base (4.5ubuntu1.2~16.04.1) over (4.0ubuntu1) ...
Preparing to unpack .../lsb-base_9.20160110ubuntu0.2_all.deb ...
Unpacking lsb-base (9.20160110ubuntu0.2) over (9.20160110) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu21.31) ...
Setting up lsb-base (9.20160110ubuntu0.2) ...
(Reading database ... 10457 files and directories currently installed.)
Preparing to unpack .../util-linux_2.27.1-6ubuntu3.10_amd64.deb ...
Unpacking util-linux (2.27.1-6ubuntu3.10) over (2.27.1-6ubuntu3) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up util-linux (2.27.1-6ubuntu3.10) ...
Installing new version of config file /etc/cron.weekly/fstrim ...
Processing triggers for systemd (229-4ubuntu21.31) ...
(Reading database ... 10457 files and directories currently installed.)
Preparing to unpack .../mount_2.27.1-6ubuntu3.10_amd64.deb ...
Unpacking mount (2.27.1-6ubuntu3.10) over (2.27.1-6ubuntu3) ...
Setting up mount (2.27.1-6ubuntu3.10) ...
(Reading database ... 10457 files and directories currently installed.)
Preparing to unpack .../tar_1.28-2.1ubuntu0.2_amd64.deb ...
Unpacking tar (1.28-2.1ubuntu0.2) over (1.28-2.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up tar (1.28-2.1ubuntu0.2) ...
(Reading database ... 10457 files and directories currently installed.)
Preparing to unpack .../locales_2.23-0ubuntu11.3_all.deb ...
Unpacking locales (2.23-0ubuntu11.3) over (2.23-0ubuntu3) ...
Preparing to unpack .../libc-bin_2.23-0ubuntu11.3_amd64.deb ...
Unpacking libc-bin (2.23-0ubuntu11.3) over (2.23-0ubuntu3) ...
Setting up libc-bin (2.23-0ubuntu11.3) ...
(Reading database ... 10457 files and directories currently installed.)
Preparing to unpack .../bzip2_1.0.6-8ubuntu0.2_amd64.deb ...
Unpacking bzip2 (1.0.6-8ubuntu0.2) over (1.0.6-8) ...
Preparing to unpack .../libbz2-1.0_1.0.6-8ubuntu0.2_amd64.deb ...
Unpacking libbz2-1.0:amd64 (1.0.6-8ubuntu0.2) over (1.0.6-8) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Setting up libbz2-1.0:amd64 (1.0.6-8ubuntu0.2) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
(Reading database ... 10457 files and directories currently installed.)
Preparing to unpack .../gcc-5-base_5.4.0-6ubuntu1~16.04.12_amd64.deb ...
Unpacking gcc-5-base:amd64 (5.4.0-6ubuntu1~16.04.12) over (5.3.1-14ubuntu2) ...
Setting up gcc-5-base:amd64 (5.4.0-6ubuntu1~16.04.12) ...
(Reading database ... 10457 files and directories currently installed.)
Preparing to unpack .../libstdc++6_5.4.0-6ubuntu1~16.04.12_amd64.deb ...
Unpacking libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.12) over (5.3.1-14ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Setting up libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.12) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
(Reading database ... 10457 files and directories currently installed.)
Preparing to unpack .../zlib1g_1%3a1.2.8.dfsg-2ubuntu4.3_amd64.deb ...
Unpacking zlib1g:amd64 (1:1.2.8.dfsg-2ubuntu4.3) over (1:1.2.8.dfsg-2ubuntu4) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Setting up zlib1g:amd64 (1:1.2.8.dfsg-2ubuntu4.3) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
(Reading database ... 10457 files and directories currently installed.)
Preparing to unpack .../libapt-pkg5.0_1.2.35_amd64.deb ...
Unpacking libapt-pkg5.0:amd64 (1.2.35) over (1.2.10ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Setting up libapt-pkg5.0:amd64 (1.2.35) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
(Reading database ... 10457 files and directories currently installed.)
Preparing to unpack .../libapt-inst2.0_1.2.35_amd64.deb ...
Unpacking libapt-inst2.0:amd64 (1.2.35) over (1.2.10ubuntu1) ...
Preparing to unpack .../archives/apt_1.2.35_amd64.deb ...
Unpacking apt (1.2.35) over (1.2.10ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Setting up apt (1.2.35) ...
Installing new version of config file /etc/apt/apt.conf.d/01autoremove ...
Installing new version of config file /etc/cron.daily/apt-compat ...
Installing new version of config file /etc/kernel/postinst.d/apt-auto-removal ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
(Reading database ... 10468 files and directories currently installed.)
Preparing to unpack .../apt-utils_1.2.35_amd64.deb ...
Unpacking apt-utils (1.2.35) over (1.2.10ubuntu1) ...
Preparing to unpack .../ubuntu-keyring_2012.05.19.1_all.deb ...
Unpacking ubuntu-keyring (2012.05.19.1) over (2012.05.19) ...
Setting up ubuntu-keyring (2012.05.19.1) ...
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <<PRESIDIO_ANONYMIZED_EMAIL_ADDRESS>>" not changed
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key <<PRESIDIO_ANONYMIZED_EMAIL_ADDRESS>>" not changed
gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <<PRESIDIO_ANONYMIZED_EMAIL_ADDRESS>>" not changed
gpg: key EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) <<PRESIDIO_ANONYMIZED_EMAIL_ADDRESS>>" not changed
gpg: key 991BC93C: public key "Ubuntu Archive Automatic Signing Key (2018) <<PRESIDIO_ANONYMIZED_EMAIL_ADDRESS>>" imported
gpg: Total number processed: 5
gpg: imported: 1 (RSA: 1)
gpg: unchanged: 4
(Reading database ... 10468 files and directories currently installed.)
Preparing to unpack .../gpgv_1.4.20-1ubuntu3.3_amd64.deb ...
Unpacking gpgv (1.4.20-1ubuntu3.3) over (1.4.20-1ubuntu3) ...
Setting up gpgv (1.4.20-1ubuntu3.3) ...
(Reading database ... 10468 files and directories currently installed.)
Preparing to unpack .../gnupg_1.4.20-1ubuntu3.3_amd64.deb ...
Unpacking gnupg (1.4.20-1ubuntu3.3) over (1.4.20-1ubuntu3) ...
Setting up gnupg (1.4.20-1ubuntu3.3) ...
(Reading database ... 10468 files and directories currently installed.)
Preparing to unpack .../systemd-sysv_229-4ubuntu21.31_amd64.deb ...
Unpacking systemd-sysv (229-4ubuntu21.31) over (229-4ubuntu4) ...
Setting up systemd-sysv (229-4ubuntu21.31) ...
(Reading database ... 10468 files and directories currently installed.)
Preparing to unpack .../libssl1.0.0_1.0.2g-1ubuntu4.20_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.2g-1ubuntu4.20) over (1.0.2g-1ubuntu4) ...
Preparing to unpack .../python3.5_3.5.2-2ubuntu0~16.04.13_amd64.deb ...
Unpacking python3.5 (3.5.2-2ubuntu0~16.04.13) over (3.5.1-10) ...
Preparing to unpack .../libpython3.5-stdlib_3.5.2-2ubuntu0~16.04.13_amd64.deb ...
Unpacking libpython3.5-stdlib:amd64 (3.5.2-2ubuntu0~16.04.13) over (3.5.1-10) ...
Preparing to unpack .../python3.5-minimal_3.5.2-2ubuntu0~16.04.13_amd64.deb ...
Unpacking python3.5-minimal (3.5.2-2ubuntu0~16.04.13) over (3.5.1-10) ...
Preparing to unpack .../libpython3.5-minimal_3.5.2-2ubuntu0~16.04.13_amd64.deb ...
Unpacking libpython3.5-minimal:amd64 (3.5.2-2ubuntu0~16.04.13) over (3.5.1-10) ...
Preparing to unpack .../libsqlite3-0_3.11.0-1ubuntu1.5_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.11.0-1ubuntu1.5) over (3.11.0-1ubuntu1) ...
Preparing to unpack .../libexpat1_2.1.0-7ubuntu0.16.04.5_amd64.deb ...
Unpacking libexpat1:amd64 (2.1.0-7ubuntu0.16.04.5) over (2.1.0-7) ...
Selecting previously unselected package libyaml-0-2:amd64.
Preparing to unpack .../libyaml-0-2_0.1.6-3_amd64.deb ...
Unpacking libyaml-0-2:amd64 (0.1.6-3) ...
Preparing to unpack .../libcomerr2_1.42.13-1ubuntu1.2_amd64.deb ...
Unpacking libcomerr2:amd64 (1.42.13-1ubuntu1.2) over (1.42.13-1ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up libcomerr2:amd64 (1.42.13-1ubuntu1.2) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
(Reading database ... 10474 files and directories currently installed.)
Preparing to unpack .../libfdisk1_2.27.1-6ubuntu3.10_amd64.deb ...
Unpacking libfdisk1:amd64 (2.27.1-6ubuntu3.10) over (2.27.1-6ubuntu3) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Setting up libfdisk1:amd64 (2.27.1-6ubuntu3.10) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
(Reading database ... 10474 files and directories currently installed.)
Preparing to unpack .../libpam-runtime_1.1.8-3.2ubuntu2.3_all.deb ...
Unpacking libpam-runtime (1.1.8-3.2ubuntu2.3) over (1.1.8-3.2ubuntu2) ...
Setting up libpam-runtime (1.1.8-3.2ubuntu2.3) ...
(Reading database ... 10474 files and directories currently installed.)
Preparing to unpack .../libsmartcols1_2.27.1-6ubuntu3.10_amd64.deb ...
Unpacking libsmartcols1:amd64 (2.27.1-6ubuntu3.10) over (2.27.1-6ubuntu3) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Setting up libsmartcols1:amd64 (2.27.1-6ubuntu3.10) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
(Reading database ... 10474 files and directories currently installed.)
Preparing to unpack .../libss2_1.42.13-1ubuntu1.2_amd64.deb ...
Unpacking libss2:amd64 (1.42.13-1ubuntu1.2) over (1.42.13-1ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Setting up libss2:amd64 (1.42.13-1ubuntu1.2) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
(Reading database ... 10474 files and directories currently installed.)
Preparing to unpack .../multiarch-support_2.23-0ubuntu11.3_amd64.deb ...
Unpacking multiarch-support (2.23-0ubuntu11.3) over (2.23-0ubuntu3) ...
Setting up multiarch-support (2.23-0ubuntu11.3) ...
(Reading database ... 10474 files and directories currently installed.)
Preparing to unpack .../sensible-utils_0.0.9ubuntu0.16.04.1_all.deb ...
Unpacking sensible-utils (0.0.9ubuntu0.16.04.1) over (0.0.9) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up sensible-utils (0.0.9ubuntu0.16.04.1) ...
(Reading database ... 10474 files and directories currently installed.)
Preparing to unpack .../makedev_2.3.1-93ubuntu2~ubuntu16.04.1_all.deb ...
Unpacking makedev (2.3.1-93ubuntu2~ubuntu16.04.1) over (2.3.1-93ubuntu1) ...
Preparing to unpack .../tzdata_2021a-0ubuntu0.16.04_all.deb ...
Unpacking tzdata (2021a-0ubuntu0.16.04) over (2016d-0ubuntu0.16.04) ...
Preparing to unpack .../dh-python_2.20151103ubuntu1.2_all.deb ...
Unpacking dh-python (2.20151103ubuntu1.2) over (2.20151103ubuntu1) ...
Preparing to unpack .../distro-info-data_0.28ubuntu0.18_all.deb ...
Unpacking distro-info-data (0.28ubuntu0.18) over (0.28) ...
Preparing to unpack .../eject_2.1.5+deb1+cvs20081104-13.1ubuntu0.16.04.1_amd64.deb ...
Unpacking eject (2.1.5+deb1+cvs20081104-13.1ubuntu0.16.04.1) over (2.1.5+deb1+cvs20081104-13.1) ...
Preparing to unpack .../file_1%3a5.25-2ubuntu1.4_amd64.deb ...
Unpacking file (1:5.25-2ubuntu1.4) over (1:5.25-2ubuntu1) ...
Preparing to unpack .../libmagic1_1%3a5.25-2ubuntu1.4_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.25-2ubuntu1.4) over (1:5.25-2ubuntu1) ...
Preparing to unpack .../libisc-export160_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ...
Unpacking libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8) ...
Preparing to unpack .../libdns-export162_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ...
Unpacking libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8) ...
Preparing to unpack .../isc-dhcp-client_4.3.3-5ubuntu12.10_amd64.deb ...
Unpacking isc-dhcp-client (4.3.3-5ubuntu12.10) over (4.3.3-5ubuntu12) ...
Preparing to unpack .../isc-dhcp-common_4.3.3-5ubuntu12.10_amd64.deb ...
Unpacking isc-dhcp-common (4.3.3-5ubuntu12.10) over (4.3.3-5ubuntu12) ...
Preparing to unpack .../less_481-2.1ubuntu0.2_amd64.deb ...
Unpacking less (481-2.1ubuntu0.2) over (481-2.1) ...
Preparing to unpack .../libbsd0_0.8.2-1ubuntu0.1_amd64.deb ...
Unpacking libbsd0:amd64 (0.8.2-1ubuntu0.1) over (0.8.2-1) ...
Preparing to unpack .../libhogweed4_3.2-1ubuntu0.16.04.2_amd64.deb ...
Unpacking libhogweed4:amd64 (3.2-1ubuntu0.16.04.2) over (3.2-1) ...
Preparing to unpack .../libnettle6_3.2-1ubuntu0.16.04.2_amd64.deb ...
Unpacking libnettle6:amd64 (3.2-1ubuntu0.16.04.2) over (3.2-1) ...
Preparing to unpack .../libidn11_1.32-3ubuntu1.2_amd64.deb ...
Unpacking libidn11:amd64 (1.32-3ubuntu1.2) over (1.32-3ubuntu1) ...
Preparing to unpack .../libp11-kit0_0.23.2-5~ubuntu16.04.2_amd64.deb ...
Unpacking libp11-kit0:amd64 (0.23.2-5~ubuntu16.04.2) over (0.23.2-3) ...
Preparing to unpack .../libtasn1-6_4.7-3ubuntu0.16.04.3_amd64.deb ...
Unpacking libtasn1-6:amd64 (4.7-3ubuntu0.16.04.3) over (4.7-3) ...
Preparing to unpack .../libgnutls-openssl27_3.4.10-4ubuntu1.9_amd64.deb ...
Unpacking libgnutls-openssl27:amd64 (3.4.10-4ubuntu1.9) over (3.4.10-4ubuntu1) ...
Preparing to unpack .../libgnutls30_3.4.10-4ubuntu1.9_amd64.deb ...
Unpacking libgnutls30:amd64 (3.4.10-4ubuntu1.9) over (3.4.10-4ubuntu1) ...
Preparing to unpack .../libjson-c2_0.11-4ubuntu2.6_amd64.deb ...
Unpacking libjson-c2:amd64 (0.11-4ubuntu2.6) over (0.11-4ubuntu2) ...
Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1.1_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1.1) over (1.2.54-1ubuntu1) ...
Preparing to unpack .../libslang2_2.3.0-2ubuntu1.1_amd64.deb ...
Unpacking libslang2:amd64 (2.3.0-2ubuntu1.1) over (2.3.0-2ubuntu1) ...
Preparing to unpack .../logrotate_3.8.7-2ubuntu2.16.04.2_amd64.deb ...
Unpacking logrotate (3.8.7-2ubuntu2.16.04.2) over (3.8.7-2ubuntu2) ...
Preparing to unpack .../lsb-release_9.20160110ubuntu0.2_all.deb ...
Unpacking lsb-release (9.20160110ubuntu0.2) over (9.20160110) ...
Preparing to unpack .../resolvconf_1.78ubuntu7_all.deb ...
Unpacking resolvconf (1.78ubuntu7) over (1.78ubuntu2) ...
Preparing to unpack .../rsyslog_8.16.0-1ubuntu3.1_amd64.deb ...
Unpacking rsyslog (8.16.0-1ubuntu3.1) over (8.16.0-1ubuntu3) ...
Preparing to unpack .../sudo_1.8.16-0ubuntu1.10_amd64.deb ...
Unpacking sudo (1.8.16-0ubuntu1.10) over (1.8.16-0ubuntu1) ...
Selecting previously unselected package python3-yaml.
Preparing to unpack .../python3-yaml_3.11-3build1_amd64.deb ...
Unpacking python3-yaml (3.11-3build1) ...
Selecting previously unselected package python-apt-common.
Preparing to unpack .../python-apt-common_1.1.0~beta1ubuntu0.16.04.12_all.deb ...
Unpacking python-apt-common (1.1.0~beta1ubuntu0.16.04.12) ...
Selecting previously unselected package python3-apt.
Preparing to unpack .../python3-apt_1.1.0~beta1ubuntu0.16.04.12_amd64.deb ...
Unpacking python3-apt (1.1.0~beta1ubuntu0.16.04.12) ...
Selecting previously unselected package python3-pkg-resources.
Preparing to unpack .../python3-pkg-resources_20.7.0-1_all.deb ...
Unpacking python3-pkg-resources (20.7.0-1) ...
Selecting previously unselected package libkrb5support0:amd64.
Preparing to unpack .../libkrb5support0_1.13.2+dfsg-5ubuntu2.2_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Selecting previously unselected package libk5crypto3:amd64.
Preparing to unpack .../libk5crypto3_1.13.2+dfsg-5ubuntu2.2_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Selecting previously unselected package libkeyutils1:amd64.
Preparing to unpack .../libkeyutils1_1.5.9-8ubuntu1_amd64.deb ...
Unpacking libkeyutils1:amd64 (1.5.9-8ubuntu1) ...
Selecting previously unselected package libkrb5-3:amd64.
Preparing to unpack .../libkrb5-3_1.13.2+dfsg-5ubuntu2.2_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Selecting previously unselected package libgssapi-krb5-2:amd64.
Preparing to unpack .../libgssapi-krb5-2_1.13.2+dfsg-5ubuntu2.2_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Selecting previously unselected package libroken18-heimdal:amd64.
Preparing to unpack .../libroken18-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libroken18-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libasn1-8-heimdal:amd64.
Preparing to unpack .../libasn1-8-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libasn1-8-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libhcrypto4-heimdal:amd64.
Preparing to unpack .../libhcrypto4-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libhcrypto4-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libheimbase1-heimdal:amd64.
Preparing to unpack .../libheimbase1-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libheimbase1-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libwind0-heimdal:amd64.
Preparing to unpack .../libwind0-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libwind0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libhx509-5-heimdal:amd64.
Preparing to unpack .../libhx509-5-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libhx509-5-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libkrb5-26-heimdal:amd64.
Preparing to unpack .../libkrb5-26-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libkrb5-26-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libheimntlm0-heimdal:amd64.
Preparing to unpack .../libheimntlm0-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libheimntlm0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libgssapi3-heimdal:amd64.
Preparing to unpack .../libgssapi3-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libgssapi3-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../libsasl2-modules-db_2.1.26.dfsg1-14ubuntu0.2_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.26.dfsg1-14ubuntu0.2) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../libsasl2-2_2.1.26.dfsg1-14ubuntu0.2_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.26.dfsg1-14ubuntu0.2) ...
Selecting previously unselected package libldap-2.4-2:amd64.
Preparing to unpack .../libldap-2.4-2_2.4.42+dfsg-2ubuntu3.13_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.42+dfsg-2ubuntu3.13) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../librtmp1_2.4+20151223.gitfa8646d-1ubuntu0.1_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d-1ubuntu0.1) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../libcurl3-gnutls_7.47.0-1ubuntu2.19_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.19) ...
Selecting previously unselected package apt-transport-https.
Preparing to unpack .../apt-transport-https_1.2.35_amd64.deb ...
Unpacking apt-transport-https (1.2.35) ...
Selecting previously unselected package distro-info.
Preparing to unpack .../distro-info_0.14ubuntu0.2_amd64.deb ...
Unpacking distro-info (0.14ubuntu0.2) ...
Selecting previously unselected package ubuntu-pro-client.
Preparing to unpack .../ubuntu-pro-client_31.2.2~16.04_amd64.deb ...
Unpacking ubuntu-pro-client (31.2.2~16.04) ...
Selecting previously unselected package ubuntu-advantage-tools.
Preparing to unpack .../ubuntu-advantage-tools_31.2.2~16.04_all.deb ...
Unpacking ubuntu-advantage-tools (31.2.2~16.04) ...
Preparing to unpack .../ureadahead_0.100.0-19.1_amd64.deb ...
Unpacking ureadahead (0.100.0-19.1) over (0.100.0-19) ...
Preparing to unpack .../vim-tiny_2%3a7.4.1689-3ubuntu1.5_amd64.deb ...
Unpacking vim-tiny (2:7.4.1689-3ubuntu1.5) over (2:7.4.1689-3ubuntu1) ...
Preparing to unpack .../vim-common_2%3a7.4.1689-3ubuntu1.5_amd64.deb ...
Unpacking vim-common (2:7.4.1689-3ubuntu1.5) over (2:7.4.1689-3ubuntu1) ...
Preparing to unpack .../ubuntu-minimal_1.361.6_amd64.deb ...
Unpacking ubuntu-minimal (1.361.6) over (1.361) ...
Selecting previously unselected package ubuntu-pro-client-l10n.
Preparing to unpack .../ubuntu-pro-client-l10n_31.2.2~16.04_amd64.deb ...
Unpacking ubuntu-pro-client-l10n (31.2.2~16.04) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.2g-1ubuntu4.20_amd64.deb ...
Unpacking openssl (1.0.2g-1ubuntu4.20) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20210119~16.04.1_all.deb ...
Unpacking ca-certificates (20210119~16.04.1) ...
Selecting previously unselected package iso-codes.
Preparing to unpack .../iso-codes_3.65-1_all.deb ...
Unpacking iso-codes (3.65-1) ...
Selecting previously unselected package krb5-locales.
Preparing to unpack .../krb5-locales_1.13.2+dfsg-5ubuntu2.2_all.deb ...
Unpacking krb5-locales (1.13.2+dfsg-5ubuntu2.2) ...
Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../libsasl2-modules_2.1.26.dfsg1-14ubuntu0.2_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.26.dfsg1-14ubuntu0.2) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for systemd (229-4ubuntu21.31) ...
Setting up libprocps4:amd64 (2:3.3.10-4ubuntu2.5) ...
Setting up procps (2:3.3.10-4ubuntu2.5) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up udev (229-4ubuntu21.31) ...
addgroup: The group `input' already exists as a system group. Exiting.
A chroot environment has been detected, udev not started.
update-initramfs: deferring update (trigger activated)
Setting up iproute2 (4.3.0-1ubuntu3.16.04.5) ...
Setting up ifupdown (0.8.10ubuntu1.4) ...
Setting up debconf-i18n (1.5.58ubuntu2) ...
Setting up kmod (22-1ubuntu5.2) ...
Installing new version of config file /etc/modprobe.d/blacklist.conf ...
Setting up keyboard-configuration (1.108ubuntu15.5) ...
/bin/setupcon: 143: /bin/setupcon: cannot open /dev/tty1: No such device or address
/bin/setupcon: 143: /bin/setupcon: cannot open /dev/tty2: No such device or address
/bin/setupcon: 143: /bin/setupcon: cannot open /dev/tty3: No such device or address
/bin/setupcon: 143: /bin/setupcon: cannot open /dev/tty4: No such device or address
/bin/setupcon: 143: /bin/setupcon: cannot open /dev/tty5: No such device or address
/bin/setupcon: 143: /bin/setupcon: cannot open /dev/tty6: No such device or address
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-initramfs: deferring update (trigger activated)
Setting up initramfs-tools-bin (0.122ubuntu8.17) ...
Setting up busybox-initramfs (1:1.22.0-15ubuntu1.4) ...
Setting up libklibc (2.0.4-8ubuntu1.16.04.4) ...
Setting up klibc-utils (2.0.4-8ubuntu1.16.04.4) ...
Setting up cpio (2.11+dfsg-5ubuntu1.1) ...
Setting up initramfs-tools-core (0.122ubuntu8.17) ...
Setting up linux-base (4.5ubuntu1.2~16.04.1) ...
Setting up initramfs-tools (0.122ubuntu8.17) ...
update-initramfs: deferring update (trigger activated)
Setting up locales (2.23-0ubuntu11.3) ...
Generating locales (this might take a while)...
Generation complete.
Setting up bzip2 (1.0.6-8ubuntu0.2) ...
Setting up libapt-inst2.0:amd64 (1.2.35) ...
Setting up apt-utils (1.2.35) ...
Setting up libssl1.0.0:amd64 (1.0.2g-1ubuntu4.20) ...
Setting up libpython3.5-minimal:amd64 (3.5.2-2ubuntu0~16.04.13) ...
Setting up libexpat1:amd64 (2.1.0-7ubuntu0.16.04.5) ...
Setting up python3.5-minimal (3.5.2-2ubuntu0~16.04.13) ...
Setting up libsqlite3-0:amd64 (3.11.0-1ubuntu1.5) ...
Setting up libpython3.5-stdlib:amd64 (3.5.2-2ubuntu0~16.04.13) ...
Setting up python3.5 (3.5.2-2ubuntu0~16.04.13) ...
Setting up libyaml-0-2:amd64 (0.1.6-3) ...
Setting up makedev (2.3.1-93ubuntu2~ubuntu16.04.1) ...
Setting up tzdata (2021a-0ubuntu0.16.04) ...
Current default time zone: 'Etc/UTC'
Local time is now: Thu Apr 25 21:32:57 UTC 2024.
Universal Time is now: Thu Apr 25 21:32:57 UTC 2024.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
Setting up dh-python (2.20151103ubuntu1.2) ...
Setting up distro-info-data (0.28ubuntu0.18) ...
Setting up eject (2.1.5+deb1+cvs20081104-13.1ubuntu0.16.04.1) ...
Setting up libmagic1:amd64 (1:5.25-2ubuntu1.4) ...
Setting up file (1:5.25-2ubuntu1.4) ...
Setting up libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Setting up libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Setting up isc-dhcp-client (4.3.3-5ubuntu12.10) ...
Setting up isc-dhcp-common (4.3.3-5ubuntu12.10) ...
Setting up less (481-2.1ubuntu0.2) ...
Setting up libbsd0:amd64 (0.8.2-1ubuntu0.1) ...
Setting up libnettle6:amd64 (3.2-1ubuntu0.16.04.2) ...
Setting up libhogweed4:amd64 (3.2-1ubuntu0.16.04.2) ...
Setting up libidn11:amd64 (1.32-3ubuntu1.2) ...
Setting up libp11-kit0:amd64 (0.23.2-5~ubuntu16.04.2) ...
Setting up libtasn1-6:amd64 (4.7-3ubuntu0.16.04.3) ...
Setting up libgnutls30:amd64 (3.4.10-4ubuntu1.9) ...
Setting up libgnutls-openssl27:amd64 (3.4.10-4ubuntu1.9) ...
Setting up libjson-c2:amd64 (0.11-4ubuntu2.6) ...
Setting up libpng12-0:amd64 (1.2.54-1ubuntu1.1) ...
Setting up libslang2:amd64 (2.3.0-2ubuntu1.1) ...
Setting up logrotate (3.8.7-2ubuntu2.16.04.2) ...
Setting up lsb-release (9.20160110ubuntu0.2) ...
Setting up resolvconf (1.78ubuntu7) ...
Setting up rsyslog (8.16.0-1ubuntu3.1) ...
Installing new version of config file /etc/logrotate.d/rsyslog ...
The user `syslog' is already a member of `adm'.
Running in chroot, ignoring request.
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up sudo (1.8.16-0ubuntu1.10) ...
Installing new version of config file /etc/sudoers ...
Setting up python3-yaml (3.11-3build1) ...
Setting up python-apt-common (1.1.0~beta1ubuntu0.16.04.12) ...
Setting up python3-apt (1.1.0~beta1ubuntu0.16.04.12) ...
Setting up python3-pkg-resources (20.7.0-1) ...
Setting up libkrb5support0:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Setting up libk5crypto3:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Setting up libkeyutils1:amd64 (1.5.9-8ubuntu1) ...
Setting up libkrb5-3:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Setting up libgssapi-krb5-2:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Setting up libroken18-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libasn1-8-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libhcrypto4-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libheimbase1-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libwind0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libhx509-5-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libkrb5-26-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libheimntlm0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libgssapi3-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libsasl2-modules-db:amd64 (2.1.26.dfsg1-14ubuntu0.2) ...
Setting up libsasl2-2:amd64 (2.1.26.dfsg1-14ubuntu0.2) ...
Setting up libldap-2.4-2:amd64 (2.4.42+dfsg-2ubuntu3.13) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d-1ubuntu0.1) ...
Setting up libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.19) ...
Setting up apt-transport-https (1.2.35) ...
Setting up distro-info (0.14ubuntu0.2) ...
Setting up ubuntu-pro-client (31.2.2~16.04) ...
Setting up ubuntu-advantage-tools (31.2.2~16.04) ...
Setting up ureadahead (0.100.0-19.1) ...
Setting up vim-common (2:7.4.1689-3ubuntu1.5) ...
Setting up vim-tiny (2:7.4.1689-3ubuntu1.5) ...
Setting up ubuntu-pro-client-l10n (31.2.2~16.04) ...
Setting up openssl (1.0.2g-1ubuntu4.20) ...
Setting up ca-certificates (20210119~16.04.1) ...
Setting up iso-codes (3.65-1) ...
Setting up krb5-locales (1.13.2+dfsg-5ubuntu2.2) ...
Setting up libsasl2-modules:amd64 (2.1.26.dfsg1-14ubuntu0.2) ...
Setting up kbd (1.15.5-1ubuntu5) ...
Setting up console-setup-linux (1.108ubuntu15.5) ...
Installing new version of config file /etc/console-setup/compose.ISO-8859-1.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859-13.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859-14.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859-15.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859-2.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859-3.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859-4.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859-7.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859-9.inc ...
Setting up console-setup (1.108ubuntu15.5) ...
/bin/setupcon: 143: /bin/setupcon: cannot open /dev/tty1: No such device or address
/bin/setupcon: 143: /bin/setupcon: cannot open /dev/tty2: No such device or address
/bin/setupcon: 143: /bin/setupcon: cannot open /dev/tty3: No such device or address
/bin/setupcon: 143: /bin/setupcon: cannot open /dev/tty4: No such device or address
/bin/setupcon: 143: /bin/setupcon: cannot open /dev/tty5: No such device or address
/bin/setupcon: 143: /bin/setupcon: cannot open /dev/tty6: No such device or address
Your console font configuration will be updated the next time your system
boots. If you want to update it now, run 'setupcon' from a virtual console.
update-initramfs: deferring update (trigger activated)
Setting up ubuntu-minimal (1.361.6) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Processing triggers for systemd (229-4ubuntu21.31) ...
Processing triggers for initramfs-tools (0.122ubuntu8.17) ...
Processing triggers for resolvconf (1.78ubuntu7) ...
Processing triggers for ca-certificates (20210119~16.04.1) ...
Updating certificates in /etc/ssl/certs...
129 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-transport-https is already the newest version (1.2.35).
apt-transport-https set to manually installed.
ca-certificates is already the newest version (20210119~16.04.1).
ca-certificates set to manually installed.
sudo is already the newest version (1.8.16-0ubuntu1.10).
The following NEW packages will be installed:
wget
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 299 kB of archives.
After this operation, 905 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 wget amd64 1.17.1-1ubuntu1.5 [299 kB]
Fetched 299 kB in 0s (1154 kB/s)
Selecting previously unselected package wget.
(Reading database ... 11797 files and directories currently installed.)
Preparing to unpack .../wget_1.17.1-1ubuntu1.5_amd64.deb ...
Unpacking wget (1.17.1-1ubuntu1.5) ...
Setting up wget (1.17.1-1ubuntu1.5) ...
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
Syncing timezone...
Installing target audio...
Fetching CRAS (branch 2bdb116d4a3da6465b52c4b6ff4b87a7893fe3fe)...
--2024-04-25 17:33:47-- https://chromium.googlesource.com/chromiumos/third_party/adhd/+archive/2bdb116d4a3da6465b52c4b6ff4b87a7893fe3fe.tar.gz
Resolving chromium.googlesource.com (chromium.googlesource.com)... 2607:f8b0:4004:c06::52, 142.251.167.82
Connecting to chromium.googlesource.com (chromium.googlesource.com)|2607:f8b0:4004:c06::52|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: '/tmp/crouton-cras.QRDtV6/adhd.tar.gz'
0K .......... .......... .......... .......... .......... 733K
50K .......... .......... .......... .......... .......... 1.40M
100K .......... .......... .......... .......... .......... 1.93M
150K .......... .......... .......... .......... .......... 4.47M
200K .......... .......... .......... .......... .......... 4.55M
250K .......... .......... .......... .......... .......... 4.10M
300K .......... .......... .......... .......... .......... 8.37M
350K .......... .......... .......... .......... .......... 1.95M
400K .......... .......... .......... .......... .......... 2.18M
450K .......... .......... .......... .......... .......... 2.79M
500K .......... .......... .......... .......... .......... 1.33M
550K .......... .......... .......... .......... .......... 1.56M
600K .......... .......... .......... .......... .......... 2.89M
650K .......... .......... .......... .......... .......... 858K
700K .......... .......... .......... .......... .......... 1.83M
750K .......... .......... .......... .......... .......... 2.11M
800K .......... .......... .......... .......... .......... 1.92M
850K .......... .......... .......... .......... .......... 1.91M
900K .......... .......... .......... .......... .......... 4.76M
950K .......... .......... .......... .......... .......... 1.00M
1000K .......... .......... .... 676K=0.6s
2024-04-25 17:33:48 (1.75 MB/s) - '/tmp/crouton-cras.QRDtV6/adhd.tar.gz' saved [1049373]
Adding foreign architecture i386 to dpkg...
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease
Get:4 http://archive.ubuntu.com/ubuntu xenial/main i386 Packages [1196 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/restricted i386 Packages [8684 B]
Get:6 http://archive.ubuntu.com/ubuntu xenial/universe i386 Packages [7512 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/multiverse i386 Packages [140 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [1019 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages [10.2 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [1084 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [20.4 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-security/main i386 Packages [682 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-security/restricted i386 Packages [9800 B]
Get:14 http://archive.ubuntu.com/ubuntu xenial-security/universe i386 Packages [660 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-security/multiverse i386 Packages [8084 B]
Fetched 12.4 MB in 5s (2290 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gcc-5-base:i386 gcc-6-base:i386 libapparmor1:i386 libasound2 libasound2-data
libasyncns0:i386 libc6:i386 libdbus-1-3:i386 libfftw3-double3 libflac8:i386
libgcc1:i386 libgcrypt20:i386 libgomp1 libgpg-error0:i386
libjack-jackd2-0:i386 liblzma5:i386 libogg0:i386 libpcre3:i386
libpulse0:i386 libsamplerate0 libsamplerate0:i386 libselinux1:i386
libsndfile1:i386 libstdc++6:i386 libsystemd0:i386 libvorbis0a:i386
libvorbisenc2:i386 libwrap0:i386 libxau6:i386 libxcb1:i386 libxdmcp6:i386
Suggested packages:
libasound2-plugins glibc-doc:i386 locales:i386 libfftw3-bin libfftw3-dev
rng-tools:i386 jackd2:i386 pulseaudio:i386
Recommended packages:
dbus:i386 tcpd:i386
The following NEW packages will be installed:
alsa-utils gcc-5-base:i386 gcc-6-base:i386 libapparmor1:i386 libasound2
libasound2:i386 libasound2-data libasound2-plugins:i386 libasyncns0:i386
libc6:i386 libdbus-1-3:i386 libfftw3-double3 libflac8:i386 libgcc1:i386
libgcrypt20:i386 libgomp1 libgpg-error0:i386 libjack-jackd2-0:i386
liblzma5:i386 libogg0:i386 libpcre3:i386 libpulse0:i386 libsamplerate0
libsamplerate0:i386 libselinux1:i386 libsndfile1:i386 libspeexdsp1:i386
libstdc++6:i386 libsystemd0:i386 libvorbis0a:i386 libvorbisenc2:i386
libwrap0:i386 libxau6:i386 libxcb1:i386 libxdmcp6:i386
0 upgraded, 35 newly installed, 0 to remove and 0 not upgraded.
Need to get 9419 kB of archives.
After this operation, 30.5 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/main i386 gcc-6-base i386 6.0.1-0ubuntu1 [14.3 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial/main i386 libgcc1 i386 1:6.0.1-0ubuntu1 [46.8 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libc6 i386 2.23-0ubuntu11.3 [2272 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial/main i386 liblzma5 i386 5.1.1alpha+20120614-2ubuntu2 [84.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/main i386 libpcre3 i386 2:8.38-3.1 [223 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/main i386 libgpg-error0 i386 1.21-2ubuntu1 [37.3 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libgcrypt20 i386 1.6.5-2ubuntu0.6 [321 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/main i386 libselinux1 i386 2.4-3build2 [60.7 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libsystemd0 i386 229-4ubuntu21.31 [223 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial/main i386 libxau6 i386 1:1.0.8-1 [8352 B]
Get:11 http://archive.ubuntu.com/ubuntu xenial/main i386 libasyncns0 i386 0.8-5build1 [12.7 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgomp1 amd64 5.4.0-6ubuntu1~16.04.12 [55.2 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 libfftw3-double3 amd64 3.3.4-2ubuntu1 [718 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial/main i386 libogg0 i386 1.3.2-1 [16.2 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial/main i386 libsamplerate0 i386 0.1.8-8 [937 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial/main amd64 libsamplerate0 amd64 0.1.8-8 [937 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial/main i386 libwrap0 i386 7.6.q-25 [45.8 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libapparmor1 i386 2.10.95-0ubuntu2.12 [30.8 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 gcc-5-base i386 5.4.0-6ubuntu1~16.04.12 [17.4 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libstdc++6 i386 5.4.0-6ubuntu1~16.04.12 [418 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libdbus-1-3 i386 1.10.6-1ubuntu3.6 [174 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial/main i386 libxdmcp6 i386 1:1.1.2-1.1 [11.4 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial/main i386 libxcb1 i386 1.11.1-1ubuntu1 [44.1 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial/main amd64 libasound2-data all 1.1.0-0ubuntu1 [29.4 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial/main amd64 libasound2 amd64 1.1.0-0ubuntu1 [350 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial/main amd64 alsa-utils amd64 1.1.0-0ubuntu5 [956 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial/main i386 libasound2 i386 1.1.0-0ubuntu1 [370 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial/main i386 libjack-jackd2-0 i386 1.9.10+20150825git1ed50c92~dfsg-1ubuntu1 [151 kB]
Get:29 http://archive.ubuntu.com/ubuntu xenial/main i386 libflac8 i386 1.3.1-4 [154 kB]
Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libvorbis0a i386 1.3.5-3ubuntu0.2 [85.8 kB]
Get:31 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libvorbisenc2 i386 1.3.5-3ubuntu0.2 [64.4 kB]
Get:32 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libsndfile1 i386 1.0.25-10ubuntu0.16.04.3 [158 kB]
Get:33 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libpulse0 i386 1:8.0-0ubuntu3.15 [256 kB]
Get:34 http://archive.ubuntu.com/ubuntu xenial/main i386 libspeexdsp1 i386 1.2~rc1.2-1ubuntu1 [77.5 kB]
Get:35 http://archive.ubuntu.com/ubuntu xenial/main i386 libasound2-plugins i386 1.1.0-0ubuntu1 [57.8 kB]
Fetched 9419 kB in 0s (11.0 MB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package gcc-6-base:i386.
(Reading database ... 11808 files and directories currently installed.)
Preparing to unpack .../gcc-6-base_6.0.1-0ubuntu1_i386.deb ...
Unpacking gcc-6-base:i386 (6.0.1-0ubuntu1) ...
Selecting previously unselected package libgcc1:i386.
Preparing to unpack .../libgcc1_1%3a6.0.1-0ubuntu1_i386.deb ...
Unpacking libgcc1:i386 (1:6.0.1-0ubuntu1) ...
Selecting previously unselected package libc6:i386.
Preparing to unpack .../libc6_2.23-0ubuntu11.3_i386.deb ...
Unpacking libc6:i386 (2.23-0ubuntu11.3) ...
Selecting previously unselected package liblzma5:i386.
Preparing to unpack .../liblzma5_5.1.1alpha+20120614-2ubuntu2_i386.deb ...
Unpacking liblzma5:i386 (5.1.1alpha+20120614-2ubuntu2) ...
Selecting previously unselected package libpcre3:i386.
Preparing to unpack .../libpcre3_2%3a8.38-3.1_i386.deb ...
Unpacking libpcre3:i386 (2:8.38-3.1) ...
Selecting previously unselected package libgpg-error0:i386.
Preparing to unpack .../libgpg-error0_1.21-2ubuntu1_i386.deb ...
Unpacking libgpg-error0:i386 (1.21-2ubuntu1) ...
Selecting previously unselected package libgcrypt20:i386.
Preparing to unpack .../libgcrypt20_1.6.5-2ubuntu0.6_i386.deb ...
Unpacking libgcrypt20:i386 (1.6.5-2ubuntu0.6) ...
Selecting previously unselected package libselinux1:i386.
Preparing to unpack .../libselinux1_2.4-3build2_i386.deb ...
Unpacking libselinux1:i386 (2.4-3build2) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Setting up gcc-6-base:i386 (6.0.1-0ubuntu1) ...
Setting up libgcc1:i386 (1:6.0.1-0ubuntu1) ...
Setting up libc6:i386 (2.23-0ubuntu11.3) ...
Setting up libgpg-error0:i386 (1.21-2ubuntu1) ...
Setting up libgcrypt20:i386 (1.6.5-2ubuntu0.6) ...
Setting up liblzma5:i386 (5.1.1alpha+20120614-2ubuntu2) ...
Setting up libpcre3:i386 (2:8.38-3.1) ...
Setting up libselinux1:i386 (2.4-3build2) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Selecting previously unselected package libsystemd0:i386.
(Reading database ... 12128 files and directories currently installed.)
Preparing to unpack .../libsystemd0_229-4ubuntu21.31_i386.deb ...
Unpacking libsystemd0:i386 (229-4ubuntu21.31) ...
Selecting previously unselected package libxau6:i386.
Preparing to unpack .../libxau6_1%3a1.0.8-1_i386.deb ...
Unpacking libxau6:i386 (1:1.0.8-1) ...
Selecting previously unselected package libasyncns0:i386.
Preparing to unpack .../libasyncns0_0.8-5build1_i386.deb ...
Unpacking libasyncns0:i386 (0.8-5build1) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../libgomp1_5.4.0-6ubuntu1~16.04.12_amd64.deb ...
Unpacking libgomp1:amd64 (5.4.0-6ubuntu1~16.04.12) ...
Selecting previously unselected package libfftw3-double3:amd64.
Preparing to unpack .../libfftw3-double3_3.3.4-2ubuntu1_amd64.deb ...
Unpacking libfftw3-double3:amd64 (3.3.4-2ubuntu1) ...
Selecting previously unselected package libogg0:i386.
Preparing to unpack .../libogg0_1.3.2-1_i386.deb ...
Unpacking libogg0:i386 (1.3.2-1) ...
Selecting previously unselected package libsamplerate0:amd64.
Preparing to unpack .../libsamplerate0_0.1.8-8_amd64.deb ...
Unpacking libsamplerate0:amd64 (0.1.8-8) ...
Selecting previously unselected package libsamplerate0:i386.
Preparing to unpack .../libsamplerate0_0.1.8-8_i386.deb ...
Unpacking libsamplerate0:i386 (0.1.8-8) ...
Selecting previously unselected package libwrap0:i386.
Preparing to unpack .../libwrap0_7.6.q-25_i386.deb ...
Unpacking libwrap0:i386 (7.6.q-25) ...
Selecting previously unselected package libapparmor1:i386.
Preparing to unpack .../libapparmor1_2.10.95-0ubuntu2.12_i386.deb ...
Unpacking libapparmor1:i386 (2.10.95-0ubuntu2.12) ...
Selecting previously unselected package gcc-5-base:i386.
Preparing to unpack .../gcc-5-base_5.4.0-6ubuntu1~16.04.12_i386.deb ...
Unpacking gcc-5-base:i386 (5.4.0-6ubuntu1~16.04.12) ...
Selecting previously unselected package libstdc++6:i386.
Preparing to unpack .../libstdc++6_5.4.0-6ubuntu1~16.04.12_i386.deb ...
Unpacking libstdc++6:i386 (5.4.0-6ubuntu1~16.04.12) ...
Selecting previously unselected package libdbus-1-3:i386.
Preparing to unpack .../libdbus-1-3_1.10.6-1ubuntu3.6_i386.deb ...
Unpacking libdbus-1-3:i386 (1.10.6-1ubuntu3.6) ...
Selecting previously unselected package libxdmcp6:i386.
Preparing to unpack .../libxdmcp6_1%3a1.1.2-1.1_i386.deb ...
Unpacking libxdmcp6:i386 (1:1.1.2-1.1) ...
Selecting previously unselected package libxcb1:i386.
Preparing to unpack .../libxcb1_1.11.1-1ubuntu1_i386.deb ...
Unpacking libxcb1:i386 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libasound2-data.
Preparing to unpack .../libasound2-data_1.1.0-0ubuntu1_all.deb ...
Unpacking libasound2-data (1.1.0-0ubuntu1) ...
Selecting previously unselected package libasound2:amd64.
Preparing to unpack .../libasound2_1.1.0-0ubuntu1_amd64.deb ...
Unpacking libasound2:amd64 (1.1.0-0ubuntu1) ...
Selecting previously unselected package alsa-utils.
Preparing to unpack .../alsa-utils_1.1.0-0ubuntu5_amd64.deb ...
Unpacking alsa-utils (1.1.0-0ubuntu5) ...
Selecting previously unselected package libasound2:i386.
Preparing to unpack .../libasound2_1.1.0-0ubuntu1_i386.deb ...
Unpacking libasound2:i386 (1.1.0-0ubuntu1) ...
Selecting previously unselected package libjack-jackd2-0:i386.
Preparing to unpack .../libjack-jackd2-0_1.9.10+20150825git1ed50c92~dfsg-1ubuntu1_i386.deb ...
Unpacking libjack-jackd2-0:i386 (1.9.10+20150825git1ed50c92~dfsg-1ubuntu1) ...
Selecting previously unselected package libflac8:i386.
Preparing to unpack .../libflac8_1.3.1-4_i386.deb ...
Unpacking libflac8:i386 (1.3.1-4) ...
Selecting previously unselected package libvorbis0a:i386.
Preparing to unpack .../libvorbis0a_1.3.5-3ubuntu0.2_i386.deb ...
Unpacking libvorbis0a:i386 (1.3.5-3ubuntu0.2) ...
Selecting previously unselected package libvorbisenc2:i386.
Preparing to unpack .../libvorbisenc2_1.3.5-3ubuntu0.2_i386.deb ...
Unpacking libvorbisenc2:i386 (1.3.5-3ubuntu0.2) ...
Selecting previously unselected package libsndfile1:i386.
Preparing to unpack .../libsndfile1_1.0.25-10ubuntu0.16.04.3_i386.deb ...
Unpacking libsndfile1:i386 (1.0.25-10ubuntu0.16.04.3) ...
Selecting previously unselected package libpulse0:i386.
Preparing to unpack .../libpulse0_1%3a8.0-0ubuntu3.15_i386.deb ...
Unpacking libpulse0:i386 (1:8.0-0ubuntu3.15) ...
Selecting previously unselected package libspeexdsp1:i386.
Preparing to unpack .../libspeexdsp1_1.2~rc1.2-1ubuntu1_i386.deb ...
Unpacking libspeexdsp1:i386 (1.2~rc1.2-1ubuntu1) ...
Selecting previously unselected package libasound2-plugins:i386.
Preparing to unpack .../libasound2-plugins_1.1.0-0ubuntu1_i386.deb ...
Unpacking libasound2-plugins:i386 (1.1.0-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
Processing triggers for systemd (229-4ubuntu21.31) ...
Setting up libsystemd0:i386 (229-4ubuntu21.31) ...
Setting up libxau6:i386 (1:1.0.8-1) ...
Setting up libasyncns0:i386 (0.8-5build1) ...
Setting up libgomp1:amd64 (5.4.0-6ubuntu1~16.04.12) ...
Setting up libfftw3-double3:amd64 (3.3.4-2ubuntu1) ...
Setting up libogg0:i386 (1.3.2-1) ...
Setting up libsamplerate0:amd64 (0.1.8-8) ...
Setting up libsamplerate0:i386 (0.1.8-8) ...
Setting up libwrap0:i386 (7.6.q-25) ...
Setting up libapparmor1:i386 (2.10.95-0ubuntu2.12) ...
Setting up gcc-5-base:i386 (5.4.0-6ubuntu1~16.04.12) ...
Setting up libstdc++6:i386 (5.4.0-6ubuntu1~16.04.12) ...
Setting up libdbus-1-3:i386 (1.10.6-1ubuntu3.6) ...
Setting up libxdmcp6:i386 (1:1.1.2-1.1) ...
Setting up libxcb1:i386 (1.11.1-1ubuntu1) ...
Setting up libasound2-data (1.1.0-0ubuntu1) ...
Setting up libasound2:amd64 (1.1.0-0ubuntu1) ...
Setting up libasound2:i386 (1.1.0-0ubuntu1) ...
Setting up alsa-utils (1.1.0-0ubuntu5) ...
Setting up libjack-jackd2-0:i386 (1.9.10+20150825git1ed50c92~dfsg-1ubuntu1) ...
Setting up libflac8:i386 (1.3.1-4) ...
Setting up libvorbis0a:i386 (1.3.5-3ubuntu0.2) ...
Setting up libvorbisenc2:i386 (1.3.5-3ubuntu0.2) ...
Setting up libsndfile1:i386 (1.0.25-10ubuntu0.16.04.3) ...
Setting up libpulse0:i386 (1:8.0-0ubuntu3.15) ...
Setting up libspeexdsp1:i386 (1.2~rc1.2-1ubuntu1) ...
Setting up libasound2-plugins:i386 (1.1.0-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
Processing triggers for systemd (229-4ubuntu21.31) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
binutils cpp cpp-5 dpkg-dev gcc-5 gcc-5-multilib lib32asan2 lib32atomic1
lib32cilkrts5 lib32gcc-5-dev lib32gcc1 lib32gomp1 lib32itm1 lib32mpx0
lib32quadmath0 lib32stdc++6 lib32ubsan0 libasan2 libatomic1 libc-dev-bin
libc6-dev libc6-dev-i386 libc6-dev-x32 libc6-i386 libc6-x32 libcc1-0
libcilkrts5 libdpkg-perl libgcc-5-dev libgdbm3 libglib2.0-0 libisl15 libitm1
liblsan0 libmpc3 libmpfr4 libmpx0 libperl5.22 libquadmath0 libspeex-dev:i386
libspeex1:i386 libtsan0 libubsan0 libx32asan2 libx32atomic1 libx32cilkrts5
libx32gcc-5-dev libx32gcc1 libx32gomp1 libx32itm1 libx32quadmath0
libx32stdc++6 libx32ubsan0 linux-libc-dev linux-libc-dev:i386 make patch
perl perl-modules-5.22 xz-utils
Suggested packages:
binutils-doc cpp-doc gcc-5-locales debian-keyring manpages-dev autoconf
automake libtool flex bison gdb gcc-doc gcc-5-doc libgcc1-dbg libgomp1-dbg
libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg
libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg glibc-doc
glibc-doc:i386 manpages-dev:i386 speex:i386 make-doc ed diffutils-doc
perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl
Recommended packages:
build-essential fakeroot libalgorithm-merge-perl manpages manpages-dev
libfile-fcntllock-perl libglib2.0-data shared-mime-info xdg-user-dirs rename
The following NEW packages will be installed:
binutils cpp cpp-5 dpkg-dev gcc gcc-5 gcc-5-multilib gcc-multilib lib32asan2
lib32atomic1 lib32cilkrts5 lib32gcc-5-dev lib32gcc1 lib32gomp1 lib32itm1
lib32mpx0 lib32quadmath0 lib32stdc++6 lib32ubsan0 libasan2 libatomic1
libc-dev-bin libc6-dev libc6-dev:i386 libc6-dev-i386 libc6-dev-x32
libc6-i386 libc6-x32 libcc1-0 libcilkrts5 libdpkg-perl libgcc-5-dev libgdbm3
libglib2.0-0 libisl15 libitm1 liblsan0 libmpc3 libmpfr4 libmpx0 libperl5.22
libquadmath0 libspeex-dev:i386 libspeex1:i386 libspeexdsp-dev:i386 libtsan0
libubsan0 libx32asan2 libx32atomic1 libx32cilkrts5 libx32gcc-5-dev
libx32gcc1 libx32gomp1 libx32itm1 libx32quadmath0 libx32stdc++6 libx32ubsan0
linux-libc-dev linux-libc-dev:i386 make patch perl perl-modules-5.22
pkg-config xz-utils
0 upgraded, 65 newly installed, 0 to remove and 0 not upgraded.
Need to get 50.7 MB of archives.
After this operation, 218 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libgdbm3 amd64 1.8.3-13.1 [16.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libglib2.0-0 amd64 2.48.2-0ubuntu4.8 [1120 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 perl-modules-5.22 all 5.22.1-9ubuntu0.9 [2634 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libperl5.22 amd64 5.22.1-9ubuntu0.9 [3360 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 perl amd64 5.22.1-9ubuntu0.9 [237 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/main amd64 libmpfr4 amd64 3.1.4-1 [191 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/main amd64 libmpc3 amd64 1.0.3-1 [39.7 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 binutils amd64 2.26.1-1ubuntu1~16.04.8 [2312 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/main amd64 libisl15 amd64 0.16.1-1 [524 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 cpp-5 amd64 5.4.0-6ubuntu1~16.04.12 [7783 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial/main amd64 cpp amd64 4:5.3.1-1ubuntu1 [27.7 kB]
Err:11 http://archive.ubuntu.com/ubuntu xenial/main amd64 cpp amd64 4:5.3.1-1ubuntu1
Hash Sum mismatch
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdpkg-perl all 1.18.4ubuntu1.7 [195 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 xz-utils amd64 5.1.1alpha+20120614-2ubuntu2 [78.8 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 patch amd64 2.7.5-1ubuntu0.16.04.2 [90.8 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial/main amd64 make amd64 4.1-6 [151 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dpkg-dev all 1.18.4ubuntu1.7 [584 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcc1-0 amd64 5.4.0-6ubuntu1~16.04.12 [38.8 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libitm1 amd64 5.4.0-6ubuntu1~16.04.12 [27.4 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libatomic1 amd64 5.4.0-6ubuntu1~16.04.12 [8892 B]
Get:20 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libasan2 amd64 5.4.0-6ubuntu1~16.04.12 [265 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 liblsan0 amd64 5.4.0-6ubuntu1~16.04.12 [105 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtsan0 amd64 5.4.0-6ubuntu1~16.04.12 [244 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libubsan0 amd64 5.4.0-6ubuntu1~16.04.12 [95.3 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcilkrts5 amd64 5.4.0-6ubuntu1~16.04.12 [40.0 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libmpx0 amd64 5.4.0-6ubuntu1~16.04.12 [9762 B]
Get:26 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libquadmath0 amd64 5.4.0-6ubuntu1~16.04.12 [131 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgcc-5-dev amd64 5.4.0-6ubuntu1~16.04.12 [2239 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 gcc-5 amd64 5.4.0-6ubuntu1~16.04.12 [8612 kB]
Get:29 http://archive.ubuntu.com/ubuntu xenial/main amd64 gcc amd64 4:5.3.1-1ubuntu1 [5244 B]
Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6-i386 amd64 2.23-0ubuntu11.3 [2337 kB]
Get:31 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc-dev-bin amd64 2.23-0ubuntu11.3 [68.6 kB]
Get:32 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-libc-dev amd64 4.4.0-210.242 [832 kB]
Get:33 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6-dev amd64 2.23-0ubuntu11.3 [2083 kB]
Get:34 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6-dev-i386 amd64 2.23-0ubuntu11.3 [1264 kB]
Get:35 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6-x32 amd64 2.23-0ubuntu11.3 [2554 kB]
Get:36 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6-dev-x32 amd64 2.23-0ubuntu11.3 [1561 kB]
Get:37 http://archive.ubuntu.com/ubuntu xenial/main amd64 lib32gcc1 amd64 1:6.0.1-0ubuntu1 [46.6 kB]
Get:38 http://archive.ubuntu.com/ubuntu xenial/main amd64 libx32gcc1 amd64 1:6.0.1-0ubuntu1 [38.7 kB]
Get:39 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 lib32gomp1 amd64 5.4.0-6ubuntu1~16.04.12 [59.7 kB]
Get:40 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libx32gomp1 amd64 5.4.0-6ubuntu1~16.04.12 [55.4 kB]
Get:41 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 lib32itm1 amd64 5.4.0-6ubuntu1~16.04.12 [29.5 kB]
Get:42 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libx32itm1 amd64 5.4.0-6ubuntu1~16.04.12 [27.7 kB]
Get:43 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 lib32atomic1 amd64 5.4.0-6ubuntu1~16.04.12 [8640 B]
Get:44 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libx32atomic1 amd64 5.4.0-6ubuntu1~16.04.12 [8898 B]
Get:45 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 lib32asan2 amd64 5.4.0-6ubuntu1~16.04.12 [259 kB]
Get:46 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libx32asan2 amd64 5.4.0-6ubuntu1~16.04.12 [253 kB]
Get:47 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 lib32stdc++6 amd64 5.4.0-6ubuntu1~16.04.12 [404 kB]
Get:48 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 lib32ubsan0 amd64 5.4.0-6ubuntu1~16.04.12 [105 kB]
Get:49 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libx32stdc++6 amd64 5.4.0-6ubuntu1~16.04.12 [383 kB]
Get:50 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libx32ubsan0 amd64 5.4.0-6ubuntu1~16.04.12 [97.0 kB]
Get:51 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 lib32cilkrts5 amd64 5.4.0-6ubuntu1~16.04.12 [44.8 kB]
Get:52 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libx32cilkrts5 amd64 5.4.0-6ubuntu1~16.04.12 [40.8 kB]
Get:53 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 lib32mpx0 amd64 5.4.0-6ubuntu1~16.04.12 [11.1 kB]
Get:54 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 lib32quadmath0 amd64 5.4.0-6ubuntu1~16.04.12 [203 kB]
Get:55 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libx32quadmath0 amd64 5.4.0-6ubuntu1~16.04.12 [134 kB]
Get:56 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 lib32gcc-5-dev amd64 5.4.0-6ubuntu1~16.04.12 [2052 kB]
Get:57 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libx32gcc-5-dev amd64 5.4.0-6ubuntu1~16.04.12 [1867 kB]
Get:58 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 gcc-5-multilib amd64 5.4.0-6ubuntu1~16.04.12 [968 B]
Get:59 http://archive.ubuntu.com/ubuntu xenial/main amd64 gcc-multilib amd64 4:5.3.1-1ubuntu1 [1212 B]
Get:60 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 linux-libc-dev i386 4.4.0-210.242 [832 kB]
Get:61 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libc6-dev i386 2.23-0ubuntu11.3 [1677 kB]
Get:62 http://archive.ubuntu.com/ubuntu xenial/main i386 libspeex1 i386 1.2~rc1.2-1ubuntu1 [94.8 kB]
Get:63 http://archive.ubuntu.com/ubuntu xenial/main i386 libspeex-dev i386 1.2~rc1.2-1ubuntu1 [57.6 kB]
Get:64 http://archive.ubuntu.com/ubuntu xenial/main i386 libspeexdsp-dev i386 1.2~rc1.2-1ubuntu1 [44.2 kB]
Get:65 http://archive.ubuntu.com/ubuntu xenial/main amd64 pkg-config amd64 0.29.1-0ubuntu1 [45.0 kB]
Fetched 50.7 MB in 5min 24s (156 kB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/cpp_5.3.1-1ubuntu1_amd64.deb Hash Sum mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Failed to complete chroot setup.
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...
chronos@localhost / $ apt-get update
bash: apt-get: command not found
chronos@localhost / $ --fix-missing
bash: --fix-missing: command not found
chronos@localhost / $ -fix-missing
bash: -fix-missing: command not found
chronos@localhost / $ -fix
bash: -fix: command not found
chronos@localhost / $ fix-missing
bash: fix-missing: command not found
chronos@localhost / $ -fix-missing
bash: -fix-missing: command not found
'''
|
468f48809e9914414c676e1c0e76ec02
|
{
"intermediate": 0.3385745882987976,
"beginner": 0.47713232040405273,
"expert": 0.18429310619831085
}
|
48,035
|
i want to run gui app on kaggle notebook
|
b538cb4774a55f5a1517b405e7867006
|
{
"intermediate": 0.3701775372028351,
"beginner": 0.20294953882694244,
"expert": 0.4268728494644165
}
|
48,036
|
How would I reverse and undo the following SQL database migration?
ALTER TABLE job ADD COLUMN create_ts TIMESTAMPTZ NOT NULL DEFAULT NOW(),
ADD COLUMN created_by UUID REFERENCES organisation_link(id);
UPDATE job
SET create_ts = update_ts,
created_by = updated_by;
ALTER TABLE job ALTER COLUMN created_by SET NOT NULL;
|
c74be63b573bd0ab0edb0dec7c332748
|
{
"intermediate": 0.44055813550949097,
"beginner": 0.2724698483943939,
"expert": 0.2869720160961151
}
|
48,037
|
Create the html code to a login landing of a app called Danitocs, include a meme image and also alternatyives to sign up with Google, Facebook or linkedin
|
ac3b571052fdd1c49bae0e3ee0507b59
|
{
"intermediate": 0.3635559678077698,
"beginner": 0.15531858801841736,
"expert": 0.48112544417381287
}
|
48,038
|
fix my code: import java.util.ArrayList;
import java.util.Scanner;
public class FantasyFootball {
public static void main(String[] args) {
ArrayList<String> availablePlayers = new ArrayList<>();
addPlayers(availablePlayers);
String[] userTeam = new String[5];
Scanner scanner = new Scanner(System.in);
int playerCount = 0;
while(playerCount < 5) {
System.out.println("Enter name of player to add:");
String playerName = scanner.nextLine();
int playerIndex = search(availablePlayers, playerName);
if(playerIndex != -1) {
userTeam[playerCount] = playerName;
availablePlayers.remove(playerIndex);
playerCount++;
System.out.println("Successfully added " + playerName);
} else {
System.out.println(playerName + " is not an available player.");
}
}
System.out.println("Final Team Roster:");
for(String player : userTeam) {
System.out.println(player);
}
scanner.close();
}
public static int search(ArrayList<String> array, String player) {
for(int i = 0; i < array.size(); i++) {
if(array.get(i).equals(player)) {
return i;
}
}
return -1;
}
public static void addPlayers(ArrayList<String> array) {
array.add("Cam Newton");
array.add("Antonio Brown");
array.add("Leveon Bell");
array.add("Patrick Mahomes");
array.add("Saquon Barkley");
array.add("Mike Evans");
array.add("Odell Beckham Jr.");
array.add("Travis Kelce");
array.add("Baker Mayfield");
array.add("Michael Thomas");
array.add("Julio Jones");
array.add("Ezekial Elliott");
array.add("Alvin Kamara");
array.add("Davante Adams");
array.add("Aaron Rogers");
}
} Output matches the solution if player has been removed from list already? Make sure to remove players from the ArrayList once they have been added to the array
Expected result:
Enter name of player to add:
Successfully added player
Enter name of player to add:
Successfully added player
Enter name of player to add:
Successfully added player
Enter name of player to add:
Successfully added player
Enter name of player to add:
Michael Thomas is not an available player.
Enter name of player to add:
Successfully added player
Final Team Roster:
Mike Evans
Michael Thomas
Leveon Bell
Patrick Mahomes
Alvin Kamara
Your result:
Enter name of player to add:
Successfully added Mike Evans
Enter name of player to add:
Successfully added Michael Thomas
Enter name of player to add:
Successfully added Leveon Bell
Enter name of player to add:
Successfully added Patrick Mahomes
Enter name of player to add:
Michael Thomas is not an available player.
Enter name of player to add:
Successfully added Alvin Kamara
Final Team Roster:
Mike Evans
Michael Thomas
Leveon Bell
Patrick Mahomes
Alvin Kamara
Difference:
Enter name of player to add:
Successfully added plMike Evayerns
Enter name of player to add:
Successfully added pMichael Thomayers
Enter name of player to add:
Successfully added pLeveon Belayerl
Enter name of player to add:
Successfully added plPaytrick Mahomers
Enter name of player to add:
Michael Thomas is not an available player.
Enter name of player to add:
Successfully added pAlvin Kayemara
Final Team Roster:
Mike Evans
Michael Thomas
Leveon Bell
Patrick Mahomes
Alvin Kamara
The main method is printing the correct output? Make sure the response matches the output in the description!
Expected result:
Enter name of player to add:
Successfully added player
Enter name of player to add:
Successfully added player
Enter name of player to add:
Successfully added player
Enter name of player to add:
Successfully added player
Enter name of player to add:
Successfully added player
Final Team Roster:
Baker Mayfield
Leveon Bell
Patrick Mahomes
Michael Thomas
Alvin Kamara
Your result:
Enter name of player to add:
Successfully added Baker Mayfield
Enter name of player to add:
Successfully added Leveon Bell
Enter name of player to add:
Successfully added Patrick Mahomes
Enter name of player to add:
Successfully added Michael Thomas
Enter name of player to add:
Successfully added Alvin Kamara
Final Team Roster:
Baker Mayfield
Leveon Bell
Patrick Mahomes
Michael Thomas
Alvin Kamara
Difference:
Enter name of player to add:
Successfully added plBaker Mayfierld
Enter name of player to add:
Successfully added pLeveon Belayerl
Enter name of player to add:
Successfully added plPaytrick Mahomers
Enter name of player to add:
Successfully added pMichael Thomayers
Enter name of player to add:
Successfully added pAlvin Kayemara
Final Team Roster:
Baker Mayfield
Leveon Bell
Patrick Mahomes
Michael Thomas
Alvin Kamara
|
4e090b7dcaa5a9ee4ad9bc6bd46b3a86
|
{
"intermediate": 0.3913593590259552,
"beginner": 0.4272896647453308,
"expert": 0.181350976228714
}
|
48,039
|
When you add a contact to your phone, it automatically sorts those names alphabetically. In this exercise, we are going to create a phonebook that automatically sorts everytime a new contact is added to the phonebook.
A Contact class has been created already that has the instance variables name, method, and handle. Since different people prefer to be contacted in different ways, method specifies where to reach them (phone, text, social media, etc) and handle gives the contact information for that method (phone number, username, etc).
Your job is to create the Phonebook class that will store an ArrayList of Contact objects.
The Phonebook class does not have a constructor - it only contains an ArrayList that can store the contacts that are added to it.
There should be three methods in the Phonebook class:
addContact- This method takes a Contact and adds it to the list of contacts. Once the contact has been added, the sort method is called to sort that new contact into the phone book.
sort- This method sorts the contact list by name in alphabetical order A-Z.
a. Remember that in order to compare Strings, we can use the compareTo() method. This returns an integer that indicates whether a String’s characters are higher or lower in order than the other String. If the value is -, then it means the String is alphabetically higher. For example "S".compareTo("T") will return -1, indicating that S is 1 spot higher than T. Use this to help sort your phonebook.
b. If the phonebook sorts after each add, then the list will be sorted completely except for new entry - which sorting method should you use?
printPhonebook - This prints each name in the phonebook to the console. Use this to help you debug your program! public class Contact
{
private String name;
private String method;
private String handle;
public Contact(String name, String contactMethod, String handle)
{
this.name = name;
method = contactMethod;
this.handle = handle;
}
public String getName()
{
return name;
}
public String howToContact()
{
return method;
}
public String getHandle()
{
return handle;
}
}
import java.util.ArrayList;
public class Phonebook
{
private ArrayList<Contact> contacts = new ArrayList<Contact>();
public void addContact(Contact contact) {
contacts.add(contact);
sort();
}
private void sort() {
for (int i = 1; i < contacts.size(); i++) {
Contact key = contacts.get(i);
int j = i - 1;
while (j >= 0 && contacts.get(j).getName().compareTo(key.getName()) > 0) {
contacts.set(j + 1, contacts.get(j));
j = j - 1;
}
contacts.set(j + 1, key);
}
}
public void printPhonebook() {
for (Contact contact : contacts) {
System.out.println("Name: " + contact.getName() + ", Method: " + contact.howToContact() + ", Handle: " + contact.getHandle());
}
}
}
public class PhonebookTester
{
public static void main(String[] args)
{
Phonebook test = new Phonebook();
test.addContact(new Contact("Sherry", "Facebook", "sherrygold"));
test.addContact(new Contact("Dylan", "Snap", "@d_oaktree"));
test.addContact(new Contact("Kevin", "phone", "12312312"));
test.addContact(new Contact("Bob", "phone", "12312312"));
test.addContact(new Contact("Alex", "Tweeeter", "@alexxx"));
test.printPhonebook();
}
}
Testing addContact with a few more elements Are the names in sorted order, A-Z?
Expected result:
Derrick
Margaret
Sally⏎
Your result:
Name: Derrick, Method: phone, Handle: 234234
Name: Margaret, Method: phone, Handle: 234234
Name: Sally, Method: phone, Handle: 234234⏎ Testing even more contacts! Make sure you are correctly sorting the names within the add method!
Expected result:
Addy
Derrick
Margaret
Sally
Zoe⏎
|
b86fc205fa68420b648c928994e04287
|
{
"intermediate": 0.3879753053188324,
"beginner": 0.4608481228351593,
"expert": 0.15117651224136353
}
|
48,040
|
IM DRawing a plot using mtpcanvas inpython this plot() statement does not draw anything
|
2fc7f08834b45ac151d12a55f31ea2e6
|
{
"intermediate": 0.536895751953125,
"beginner": 0.17180103063583374,
"expert": 0.2913031578063965
}
|
48,041
|
git pull 报错:"emote: Enumerating objects: 1310,done."emote:Counting objects:100%(793/793),done.emote:Compressing objects:100%(617/617),done.Fetch-pack: unexpected disconnect while reading sideband packetfatal: early EoFfatal:fetch-pack: invalid index-pack output
|
0b79e4571b16403c6c12b7e451d183dc
|
{
"intermediate": 0.38212665915489197,
"beginner": 0.1671970784664154,
"expert": 0.45067623257637024
}
|
48,042
|
when i try to convert my kivy file to executable the following error shows up can u tell me the reason
|
8d784778f4960ec11be581519507267e
|
{
"intermediate": 0.3759119212627411,
"beginner": 0.297865092754364,
"expert": 0.3262229859828949
}
|
48,043
|
Hi, I’m making a web app with ClojureScript, react, and re-frame. I’m trying to write code to handle this dropdown menu:
(defn quote-actions [sales-contractor? _ id {{:keys [status sales-order-file-url editable] :as quote} :raw-data idx :idx}]
(ra/with-let [approved-quote-exists? @(subscribe [:quote.job/approved-quotes-exist?])
branding-theme-set? @(subscribe [:organisation/branding-themes])
approve-disabled? @(subscribe [:quote.job/approve-button-disabled? idx])
reject-disabled? @(subscribe [:quote.job/reject-button-disabled? idx])]
[new/dropdown-button-menu
{:id “quote-actions”
:label “Quote Actions”
:dropdown-toggle
{:color (dropdown-color-logic status approved-quote-exists?)}
:items [{:label [:div.d-flex
“Approve”
(when (and (not (= status :approved)) approved-quote-exists?)
[ui/with-popover
[:i.fas.fa-question-circle.fa-md.ml-2 {:id (str “approved-existing-” id)}]
“An approved quote already exists. If you wish to approve this quote, reject that one first.”])]
:disabled approve-disabled?
:on-click #(dispatch [:quote.job/open-comment-modal id :approved])}
{:label “Reject”
:disabled reject-disabled?
:on-click #(dispatch [:quote.job/open-comment-modal id :rejected])}
{:label [:div.d-flex
(if sales-order-file-url
“Recreate Sales Order”
“Create Sales Order”)
[ui/with-popover
[:i.fas.fa-question-circle.fa-md.ml-2 {:id (str “sales-order-comment-” id)}]
(sales-order-popover-logic status editable)]]
:disabled (or (not (= status :approved)) ;; Only enable sales order button for approved quotes, and only if the branding theme is set up.
(not (:sales-orders branding-theme-set?))
;; Old quotes which don’t store quote data cannot make sales orders
(not editable))
:on-click #(dispatch [:quote.job/api-create-sales-order id])}
;; Sales contractors cannot delete quotes (GOJ 2105)
(when-not sales-contractor? [:hr]) ;; processed as separate line items
(when-not sales-contractor? {:label “Delete”
:on-click #(dispatch [::events/api-delete-quote id])})]}]))
I got comments that it shouldn’t be able to pass through raw Hiccup formatted like, but I need this feature to directly insert the horizontal rule and for other use cases as well.
Here’s the specifics of how that code is handled in the new/ namespace.
(defn dropdown-item-interpreter [config]
(let [label (:label config)]
(cond
(not (nil? label)) [components/dropdown-item config label] ;; if it’s properly formatted, we expect it to be a dropdown item
:else config)))
(def default-styles-dropdown-button
{:label “Actions”
:dropdown-button {:id (str “dropdown-button”)
;; If there are multiple dropdowns with the same ID this leads to problems.
;; You should set this manually.
:direction “down”}
:dropdown-toggle {:key “dropdown-toggle”
:style {:width “”}
:color “primary”
:caret true}
:dropdown-menu {:key “dropdown-menu”
:class “dropdown-menu-right”}
;; These items are here to show examples of the structure.
;; :items [{:disabled false
;; :label “Clickable item”}
;; {:disabled true
;; :label [:div.d-flex
;; "Disabled item "
;; [:i.fas.fa-question-circle.fa-md.ml-2]]}]
})
(defn dropdown-button-menu
“Standard dropdown menu button for Gojee. Takes a config map.
Required:
:id
:items [{:label
:disabled (boolean)
:on-click (usually dispatch)}
[]] (will pass through raw hiccup into the menu)
Recommended:
:label (string)
Optional:
:dropdown-button {:direction (up/down, string)
:class
:style {:height}}
:dropdown-toggle {:style {:width}
:color
:caret}
:dropdown-menu {:class}”
[{:keys [id label dropdown-button dropdown-toggle dropdown-menu items]
:or {label (:label default-styles-dropdown-button)}}]
(ra/with-let [is-open (ra/atom false)
default default-styles-dropdown-button]
(fn [] [components/dropdown-button
(merge (:dropdown-button default)
dropdown-button
{:is-open @is-open
:key (str id “-button”)
:toggle #(reset! is-open (not @is-open))})
[components/dropdown-toggle
(merge (:dropdown-toggle default)
dropdown-toggle
{:key (str id “-toggle”)})
label]
[components/dropdown-menu
(merge (:dropdown-menu default)
dropdown-menu)
(map dropdown-item-interpreter items)]]))) ;; TODO: make separate keys generate
I think to be accepted upstream, I should be reformatting hiccup code that gets passed through as nested maps and changing it back so it's interpreted as regular hiccup from within the function. For example, maybe the item to be interpreted could be {:direct :hr} or {:passthrough {:p “test”}}, or another better keyword.
How should I go about doing this?
|
140dcc513c4160af8f5051e3d9415f87
|
{
"intermediate": 0.35106948018074036,
"beginner": 0.4535912871360779,
"expert": 0.19533930718898773
}
|
48,044
|
In this exercise, we will be looking at our example code for Selection Sort.
However, while we are sorting we will also count the number of swaps taking place, then print them out once the array has been sorted.
Add a print statement at the end of the selectionSort method that prints out the number of swaps that took place during the sort.
You should not modify the main() method.
Hint: Where are items compared? Try writing out the steps in the algorithm on paper to help. import java.util.Arrays;
public class SelectionSort
{
public static void main(String[] args)
{
int[] array1 = {9, 8, 7, 6, 5, 4, 3, 2, 1};
int[] array2 = {5, 6, 4, 8, 9, 7, 3, 1, 2};
System.out.print("First array: ");
System.out.println(Arrays.toString(array1));
System.out.print("Second array: ");
System.out.println(Arrays.toString(array2));
System.out.println();
// sort first array
selectionSort(array1);
// sort second array
selectionSort(array2);
System.out.print("First array sorted: ");
System.out.println(Arrays.toString(array1));
System.out.print("Second array sorted: ");
System.out.println(Arrays.toString(array2));
}
/*
* Selection sort takes in an array of integers and
* returns a sorted array of the same integers.
*/
public static int[] selectionSort(int[] arr)
{
int currentMinIndex;
for (int i = 0; i < arr.length - 1; i++)
{
currentMinIndex = i;
for (int j = i + 1; j < arr.length; j++)
{
if(arr[j] < arr[currentMinIndex])
{
currentMinIndex = j;
}
}
// swap numbers if needed
if (i != currentMinIndex)
{
int temp = arr[currentMinIndex];
arr[currentMinIndex] = arr[i];
arr[i] = temp;
}
}
// Print out the number of swaps that took place here
// before returning arr
return arr;
}
}
|
72a307428a936d94ab8a17e7efd2d344
|
{
"intermediate": 0.18838845193386078,
"beginner": 0.6660980582237244,
"expert": 0.14551346004009247
}
|
48,045
|
Почему не работает команда на RedOS
[root@localhost ansible]# pip install "pywinrm>=2.2"
-bash: pip: command not found
|
7bb5840e305c5048a6121a676758c635
|
{
"intermediate": 0.35275986790657043,
"beginner": 0.3816738724708557,
"expert": 0.2655662000179291
}
|
48,046
|
Regarding graph algorithm, give me a comprehensive guide towards understanding depth-first seatch. Then answer the following questions:
Question 1. What is the running time of Depth-First Search?
Question 2. We can see that depth-first search finds some path between v1 and v6; does this find the shortest path?
|
4a46aad0a67e5026c771120a5dc87c0b
|
{
"intermediate": 0.12991876900196075,
"beginner": 0.14133550226688385,
"expert": 0.7287457585334778
}
|
48,047
|
I am trying to run a python program locally, without installing any library with pip install. How can I achieve this? The library my program asks is streamlit, I can download it pypi.org as
streamlit-1.33.0.tar.gz or streamlit-1.33.0-py2.py3-none-any.whl, what should I do?
How can I import these libraries directly in this program?
|
d6203df67270c1751f938ae1bb8f7646
|
{
"intermediate": 0.7389623522758484,
"beginner": 0.12806232273578644,
"expert": 0.13297535479068756
}
|
48,048
|
do you know what is ollama?
|
9dc6e6834fc0b78ff1dcb8aa3b932a76
|
{
"intermediate": 0.3511786460876465,
"beginner": 0.3655925989151001,
"expert": 0.2832287549972534
}
|
48,049
|
Сервер фтышиду не может пингануть windows server. Все прописал, скрипт установил на win
[root@localhost ansible]# ansible -i hosts.txt all -m win_ping
Win2022 | UNREACHABLE! => {
"changed": false,
"msg": "ssl: 'latin-1' codec can't encode characters in position 0-12: ordinal not in range(256)",
"unreachable": true
|
2d8ebb859cb81f6d982dd5afed73b4f3
|
{
"intermediate": 0.3713217079639435,
"beginner": 0.29873502254486084,
"expert": 0.3299432694911957
}
|
48,050
|
how to end windows process with python?
|
8f8917ef60d9cffd16283ef6cd1c97d9
|
{
"intermediate": 0.3831048309803009,
"beginner": 0.18808944523334503,
"expert": 0.42880579829216003
}
|
48,051
|
characters
◢ 📁 models
◢ 📁 nozb1
◢ 📁 yoshino_player_model
📄 yoshino_player_model.vmdl_c
◢ 📁 chocola_player_model
📄 chocola_player_model.vmdl_c
◢ 📁 komo_player_model
📄 komo_player_model.vmdl_c
◢ 📁 cybernetic_closer_player_model
📄 cybernetic_closer_player_model.vmdl_c
◢ 📁 miku_sea_player_model
📄 miku_sea_player_model.vmdl_c
◢ 📁 amber_player_model
📄 amber_player_model.vmdl_c
◢ 📁 kujousara_player_model
📄 kujousara_player_model.vmdl_c
◢ 📁 eula_player_model
📄 eula_player_model.vmdl_c
◢ 📁 eremitedesert_player_model
📄 eremitedesert_player_model.vmdl_c
◢ 📁 wriothesley_player_model
📄 wriothesley_player_model.vmdl_c
◢ 📁 nia_player_model
📄 nia_player_model.vmdl_c
◢ 📁 charlotte_player_model
📄 charlotte_player_model.vmdl_c
◢ 📁 sonic_miku_player_model
📄 sonic_miku_player_model.vmdl_c
◢ 📁 laremicat_player_model
📄 laremicat_player_model.vmdl_c
◢ 📁 gawr_gura_player_model
📄 gawr_gura_player_model.vmdl_c
◢ 📁 silver_wolf_player_model
📄 silver_wolf_player_model.vmdl_c
◢ 📁 zerorem_player_model
📄 zerorem_player_model.vmdl_c
◢ 📁 vulpes_player_model
📄 vulpes_player_model.vmdl_c
◢ 📁 megumi_player_model
📄 megumi_player_model.vmdl_c
◢ 📁 adult_neptune_player_model
📄 adult_neptune_player_model.vmdl_c
◢ 📁 romasha_player_model
📄 romasha_player_model.vmdl_c
add each skin i sent you as following config in skin_all array, also make up prices that fit skin
“skin_all”:[
{
“Name”: “skin_test”,
“DisplayName”: “Тестовый скин”,
“Description”: “тессстттт”,
“MaxCount”: 1,
“Duration”: 0,
“Path”: “characters/models/nozb1/silver_wolf_player_model/silver_wolf_player_model.vmdl”,
“Prices”: [
{
“DisplayName”: “Кредиты 100”,
“Currencies”: { “credits”: 100 }
}
]
}
],
|
c2292ebfb23605a60396ca23e00300d4
|
{
"intermediate": 0.31673887372016907,
"beginner": 0.3413545787334442,
"expert": 0.3419065773487091
}
|
48,052
|
in verilog what is the differnce between "=" and "="
|
be29e578eed93d0a794f3833d06a4eb7
|
{
"intermediate": 0.2685132622718811,
"beginner": 0.34981870651245117,
"expert": 0.3816680610179901
}
|
48,053
|
Hi, can you come up with 5 ubuntu Linux xrandr args for a cinimatic mode starting from this arg tweaked: xrandr --output screen1 --gamma 1.1:0.8:0.7 --brightness 0.55
|
6672ae72f447aaeaa3cf3508f22c8105
|
{
"intermediate": 0.2897370755672455,
"beginner": 0.2139037400484085,
"expert": 0.4963591992855072
}
|
48,054
|
how can breaking the void function in arduino?
|
6dd5eb980c545627e8615cb43b9a56f2
|
{
"intermediate": 0.4184094965457916,
"beginner": 0.22195515036582947,
"expert": 0.3596353530883789
}
|
48,055
|
как в google_images_download указать путь куда сохранять изображения?
|
11a0703cdc5e51369e0025eaa79937ed
|
{
"intermediate": 0.2676596939563751,
"beginner": 0.27012479305267334,
"expert": 0.4622155427932739
}
|
48,056
|
hello
|
6ade261dc76e59235193acf7da1bba35
|
{
"intermediate": 0.32064199447631836,
"beginner": 0.28176039457321167,
"expert": 0.39759764075279236
}
|
48,057
|
function to send a generic embedded message with discordgo
|
3eb4dc09eb292445839c251f1c020d9d
|
{
"intermediate": 0.33036112785339355,
"beginner": 0.41425520181655884,
"expert": 0.2553837299346924
}
|
48,058
|
java.lang.IllegalAccessError: class org.jetbrains.kotlin.kapt3.base.KaptContext (in unnamed module @0x211b5d9) cannot access class com.sun.tools.javac.util.Context (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.util to unnamed module @0x211b5d9
at org.jetbrains.kotlin.kapt3.base.KaptContext.<init>(KaptContext.kt:28)
at org.jetbrains.kotlin.kapt3.KaptContextForStubGeneration.<init>(KaptContextForStubGeneration.kt:40)
at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.contextForStubGeneration(Kapt3Extension.kt:287)
at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.analysisCompleted(Kapt3Extension.kt:171)
at org.jetbrains.kotlin.kapt3.ClasspathBasedKapt3Extension.analysisCompleted(Kapt3Extension.kt:102)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$invokeExtensionsOnAnalysisComplete(TopDownAnalyzerFacadeForJVM.kt:112)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(TopDownAnalyzerFacadeForJVM.kt:122)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(TopDownAnalyzerFacadeForJVM.kt:86)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:252)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:243)
at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.kt:113)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.kt:243)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:90)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli$default(KotlinToJVMBytecodeCompiler.kt:56)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:169)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:52)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:92)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:44)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:98)
at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:412)
at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:112)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally(IncrementalCompilerRunner.kt:358)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally$default(IncrementalCompilerRunner.kt:300)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl$rebuild(IncrementalCompilerRunner.kt:119)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl(IncrementalCompilerRunner.kt:170)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:81)
at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:607)
at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:96)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1658)
|
4e58e7b8eb0af6172c928da40375aded
|
{
"intermediate": 0.3514646887779236,
"beginner": 0.32862088084220886,
"expert": 0.31991446018218994
}
|
48,059
|
java.lang.IllegalAccessError: class org.jetbrains.kotlin.kapt3.base.KaptContext (in unnamed module @0x211b5d9) cannot access class com.sun.tools.javac.util.Context (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.util to unnamed module @0x211b5d9
at org.jetbrains.kotlin.kapt3.base.KaptContext.<init>(KaptContext.kt:28)
at org.jetbrains.kotlin.kapt3.KaptContextForStubGeneration.<init>(KaptContextForStubGeneration.kt:40)
at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.contextForStubGeneration(Kapt3Extension.kt:287)
at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.analysisCompleted(Kapt3Extension.kt:171)
at org.jetbrains.kotlin.kapt3.ClasspathBasedKapt3Extension.analysisCompleted(Kapt3Extension.kt:102)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$invokeExtensionsOnAnalysisComplete(TopDownAnalyzerFacadeForJVM.kt:112)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(TopDownAnalyzerFacadeForJVM.kt:122)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(TopDownAnalyzerFacadeForJVM.kt:86)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:252)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:243)
at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.kt:113)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.kt:243)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:90)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli$default(KotlinToJVMBytecodeCompiler.kt:56)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:169)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:52)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:92)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:44)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:98)
at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:412)
at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:112)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally(IncrementalCompilerRunner.kt:358)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally$default(IncrementalCompilerRunner.kt:300)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl$rebuild(IncrementalCompilerRunner.kt:119)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl(IncrementalCompilerRunner.kt:170)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:81)
at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:607)
at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:96)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1658)
|
9f9582ae20b4123e1ca90ca7f8eedf69
|
{
"intermediate": 0.3514646887779236,
"beginner": 0.32862088084220886,
"expert": 0.31991446018218994
}
|
48,060
|
java.lang.IllegalAccessError: class org.jetbrains.kotlin.kapt3.base.KaptContext (in unnamed module @0x211b5d9) cannot access class com.sun.tools.javac.util.Context (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.util to unnamed module @0x211b5d9
at org.jetbrains.kotlin.kapt3.base.KaptContext.<init>(KaptContext.kt:28)
at org.jetbrains.kotlin.kapt3.KaptContextForStubGeneration.<init>(KaptContextForStubGeneration.kt:40)
at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.contextForStubGeneration(Kapt3Extension.kt:287)
at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.analysisCompleted(Kapt3Extension.kt:171)
at org.jetbrains.kotlin.kapt3.ClasspathBasedKapt3Extension.analysisCompleted(Kapt3Extension.kt:102)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$invokeExtensionsOnAnalysisComplete(TopDownAnalyzerFacadeForJVM.kt:112)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(TopDownAnalyzerFacadeForJVM.kt:122)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(TopDownAnalyzerFacadeForJVM.kt:86)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:252)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:243)
at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.kt:113)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.kt:243)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:90)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli$default(KotlinToJVMBytecodeCompiler.kt:56)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:169)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:52)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:92)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:44)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:98)
at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:412)
at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:112)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally(IncrementalCompilerRunner.kt:358)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally$default(IncrementalCompilerRunner.kt:300)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl$rebuild(IncrementalCompilerRunner.kt:119)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl(IncrementalCompilerRunner.kt:170)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:81)
at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:607)
at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:96)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1658)
|
310b22503e1ee3400cab4193f9e0592a
|
{
"intermediate": 0.3514646887779236,
"beginner": 0.32862088084220886,
"expert": 0.31991446018218994
}
|
48,061
|
hi
|
ee7dab620e0ed69361480c667aebb752
|
{
"intermediate": 0.3246487081050873,
"beginner": 0.27135494351387024,
"expert": 0.40399640798568726
}
|
48,062
|
where to import PowerTransformer? please only 1 line code
|
4b8a720a59b957844a577da2def62248
|
{
"intermediate": 0.44207900762557983,
"beginner": 0.2207408845424652,
"expert": 0.33718007802963257
}
|
48,063
|
hi, short answer pls, how to append arrayB, after elements of arrayA
|
f6d6978b174af861346505664d4dc672
|
{
"intermediate": 0.4152121841907501,
"beginner": 0.21672192215919495,
"expert": 0.36806589365005493
}
|
48,064
|
service: serverless-lambda-edge-image-resize
frameworkVersion: "3"
plugins:
- serverless-lambda-edge-pre-existing-cloudfront
provider:
name: aws
runtime: nodejs18.x
region: us-east-1
iam:
role: "arn:aws:iam::667833941706:role/role-lambda-edge-image-resize"
functions:
imageResize:
name: "serverless-lambda-edge-image-resize"
handler: index.imageResize #index.js 파일의 imageResize 함수를 바라본다
events:
- preExistingCloudFront:
distributionId: E1OZ87X7IOD1IG #s3-lambda-edge-image-resize의 cloudfront id값 입력
eventType: origin-response
pathPattern: "*"
includeBody: false
serverless.yml 파일이야. custom을 이용해서 aws lambda 프레임워크(서버) 내에서 sharp 모듈을 설치했으면 해. 자꾸만 cross platform 빌드 에러가 떠. npm install sharp 를 내부에서 다운받을 . 수있도록 소스코드 수정해줘
|
36ddfb9a994e630d57592a5c2cd73688
|
{
"intermediate": 0.5394219756126404,
"beginner": 0.21054378151893616,
"expert": 0.2500343322753906
}
|
48,065
|
在import math
import logging
from functools import partial
from collections import OrderedDict
from copy import deepcopy
import torch
import torch.nn as nn
import torch.nn.functional as F
from timm.models.layers import to_2tuple
from lib.models.layers.patch_embed import PatchEmbed, PatchEmbed_event, xcorr_depthwise
from .utils import combine_tokens, recover_tokens
from .vit import VisionTransformer
from ..layers.attn_blocks import CEBlock
import random
import numpy as np
_logger = logging.getLogger(__name__)
class VisionTransformerCE(VisionTransformer):
""" Vision Transformer with candidate elimination (CE) module
A PyTorch impl of : `An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale`
- https://arxiv.org/abs/2010.11929
Includes distillation token & head support for `DeiT: Data-efficient Image Transformers`
- https://arxiv.org/abs/2012.12877
"""
def __init__(self, img_size=224, patch_size=16, in_chans=3, num_classes=1000, embed_dim=768, depth=12,
num_heads=12, mlp_ratio=4., qkv_bias=True, representation_size=None, distilled=False,
drop_rate=0., attn_drop_rate=0., drop_path_rate=0., embed_layer=PatchEmbed, norm_layer=None,
act_layer=None, weight_init='',
ce_loc=None, ce_keep_ratio=None):
"""
Args:
img_size (int, tuple): input image size
patch_size (int, tuple): patch size
in_chans (int): number of input channels
num_classes (int): number of classes for classification head
embed_dim (int): embedding dimension
depth (int): depth of transformer
num_heads (int): number of attention heads
mlp_ratio (int): ratio of mlp hidden dim to embedding dim
qkv_bias (bool): enable bias for qkv if True
representation_size (Optional[int]): enable and set representation layer (pre-logits) to this value if set
distilled (bool): model includes a distillation token and head as in DeiT models
drop_rate (float): dropout rate
attn_drop_rate (float): attention dropout rate
drop_path_rate (float): stochastic depth rate
embed_layer (nn.Module): patch embedding layer
norm_layer: (nn.Module): normalization layer
weight_init: (str): weight init scheme
"""
# super().__init__()
super().__init__()
if isinstance(img_size, tuple):
self.img_size = img_size
else:
self.img_size = to_2tuple(img_size)
self.patch_size = patch_size
self.in_chans = in_chans
self.num_classes = num_classes
self.num_features = self.embed_dim = embed_dim # num_features for consistency with other models
self.num_tokens = 2 if distilled else 1
norm_layer = norm_layer or partial(nn.LayerNorm, eps=1e-6)
act_layer = act_layer or nn.GELU
self.patch_embed = embed_layer(
img_size=img_size, patch_size=patch_size, in_chans=in_chans, embed_dim=embed_dim)
num_patches = self.patch_embed.num_patches
self.cls_token = nn.Parameter(torch.zeros(1, 1, embed_dim))
self.dist_token = nn.Parameter(torch.zeros(1, 1, embed_dim)) if distilled else None
self.pos_embed = nn.Parameter(torch.zeros(1, num_patches + self.num_tokens, embed_dim))
self.pos_drop = nn.Dropout(p=drop_rate)
self.pos_embed_event = PatchEmbed_event(in_chans=32, embed_dim=768, kernel_size=4, stride=4)
# self.pos_embed_event = PatchEmbed_event(in_chans=32, embed_dim=768, kernel_size=4, stride=4)
# self.pos_embed_event_z = PatchEmbed_event(in_chans=32, embed_dim=768, kernel_size=3, stride=1)
# attn = CrossAttn(768, 4, 3072, 0.1, 'relu')
# self.cross_attn = Iter_attn(attn, 2)
dpr = [x.item() for x in torch.linspace(0, drop_path_rate, depth)] # stochastic depth decay rule
blocks = []
ce_index = 0
self.ce_loc = ce_loc
for i in range(depth):
ce_keep_ratio_i = 1.0
if ce_loc is not None and i in ce_loc:
ce_keep_ratio_i = ce_keep_ratio[ce_index]
ce_index += 1
blocks.append(
CEBlock(
dim=embed_dim, num_heads=num_heads, mlp_ratio=mlp_ratio, qkv_bias=qkv_bias, drop=drop_rate,
attn_drop=attn_drop_rate, drop_path=dpr[i], norm_layer=norm_layer, act_layer=act_layer,
keep_ratio_search=ce_keep_ratio_i)
)
self.blocks = nn.Sequential(*blocks)
self.norm = norm_layer(embed_dim)
self.init_weights(weight_init)
def masking_fea(self,z, event_z, x, event_x, ratio=0.8 ):
b,nz,c = z.shape
b,nez,c = event_z.shape
b,nx,c = x.shape
b,nex,c = event_x.shape
assert(nz == nez)
assert(nx == nex)
lenz_out = int(nz*ratio)
lenx_out = int(nx*ratio)
mask_nz = torch.rand(b,nz).float()
mask_ez = torch.rand(b,nez).float()
mask_nx = torch.rand(b,nx).float()
mask_ex = torch.rand(b,nex).float()
mask_nz = mask_nz>0.4
mask_ez = mask_ez>0.4
mask_ez = ~mask_nz + mask_ez
mask_nz_idx = mask_nz.float().sort(1,descending=True)[-1].to(device = z.device)
mask_ez_idx = mask_ez.float().sort(1,descending=True)[-1].to(device = z.device)
mask_nx = mask_nx>0.4
mask_ex = mask_ex>0.4
mask_ex = ~mask_nx + mask_ex
mask_nx_idx = mask_nx.float().sort(1,descending=True)[-1].to(device = z.device)
mask_ex_idx = mask_ex.float().sort(1,descending=True)[-1].to(device = z.device)
masked_z = torch.gather(z, 1, mask_nz_idx[:,:lenz_out,None].repeat([1,1,c]))
masked_ez = torch.gather(event_z, 1, mask_ez_idx[:,:lenz_out,None].repeat([1,1,c]))
masked_x = torch.gather(x, 1, mask_nx_idx[:,:lenx_out,None].repeat([1,1,c]))
masked_ex = torch.gather(event_x, 1, mask_ex_idx[:,:lenx_out,None].repeat([1,1,c]))
return masked_z, masked_ez, masked_x, masked_ex,{'x1':mask_nx_idx[:,:lenx_out],'x0':mask_nx_idx[:,lenx_out:],
'ex1':mask_ex_idx[:,:lenx_out],'ex0':mask_ex_idx[:,lenx_out:], }
def forward_features(self, z, x, event_z, event_x,
mask_z=None, mask_x=None,
ce_template_mask=None, ce_keep_rate=None,
return_last_attn=False,Track=False
):
B, H, W = x.shape[0], x.shape[2], x.shape[3]
# print('shape of event_z before projection:{}, event_x:{}'.format(event_z.shape, event_x.shape))
event_z = self.pos_embed_event(event_z) # [:,:,:,:1000]
event_x = self.pos_embed_event(event_x) # B 768 1024
x = self.patch_embed(x)
z = self.patch_embed(z)
# print('shape of event_z:{}, event_x:{}, x:{}, z:{}'.format(event_z.shape,event_x.shape,x.shape,z.shape ))
event_z += self.pos_embed_z
event_x += self.pos_embed_x
z += self.pos_embed_z
x += self.pos_embed_x
# attention mask handling # B, H, W
if mask_z is not None and mask_x is not None:
mask_z = F.interpolate(mask_z[None].float(), scale_factor=1. / self.patch_size).to(torch.bool)[0]
mask_z = mask_z.flatten(1).unsqueeze(-1)
mask_x = F.interpolate(mask_x[None].float(), scale_factor=1. / self.patch_size).to(torch.bool)[0]
mask_x = mask_x.flatten(1).unsqueeze(-1)
mask_x = combine_tokens(mask_z, mask_x, mode=self.cat_mode)
mask_x = mask_x.squeeze(-1)
if self.add_cls_token:
cls_tokens = self.cls_token.expand(B, -1, -1)
cls_tokens = cls_tokens + self.cls_pos_embed
if self.add_sep_seg:
x += self.search_segment_pos_embed
z += self.template_segment_pos_embed
if Track == False:
z, event_z, x, event_x, token_idx = self.masking_fea(z, event_z, x, event_x, ratio=0.9)
x = combine_tokens(z, event_z, x, event_x, mode=self.cat_mode) # 64+64+256+256=640
# x = combine_tokens(z, x, event_z, event_x, mode=self.cat_mode) # 64+64+256+256=640
if self.add_cls_token:
x = torch.cat([cls_tokens, x], dim=1)
x = self.pos_drop(x)
# lens_z = self.pos_embed_z.shape[1]
# lens_x = self.pos_embed_x.shape[1]
lens_z = z.shape[1]
lens_x = x.shape[1]
global_index_t = torch.linspace(0, lens_z - 1, lens_z).to(x.device)
global_index_t = global_index_t.repeat(B, 1)
global_index_s = torch.linspace(0, lens_x - 1, lens_x).to(x.device)
global_index_s = global_index_s.repeat(B, 1)
removed_indexes_s = []
out_attn = []
for i, blk in enumerate(self.blocks):
# out_global_s.append(global_index_s)
# out_global_t.append(global_index_t)
x, global_index_t, global_index_s, removed_index_s, attn = \
blk(x, global_index_t, global_index_s, mask_x, ce_template_mask, ce_keep_rate)
if self.ce_loc is not None and i in self.ce_loc:
removed_indexes_s.append(removed_index_s)
out_attn.append(attn)
# print('shape of attn:{}, lens_z:{}, lens_x:{}'.format(attn.shape, lens_z, lens_x))
out_attn_idx = random.choice(np.arange(len(out_attn)))
out_attn = out_attn[out_attn_idx]
x = self.norm(x)
lens_x_new = global_index_s.shape[1]
lens_z_new = global_index_t.shape[1]
z = x[:, :lens_z_new*2]
x = x[:, lens_z_new*2:]
if Track == False:
idx1 = token_idx['x1']
idx0 = token_idx['x0']
idex1 = token_idx['ex1']
idex0 = token_idx['ex0']
ex = x[:,idex1.shape[1]:]
x = x[:,:idex1.shape[1]]
# if removed_indexes_s and removed_indexes_s[0] is not None:
# removed_indexes_cat = torch.cat(removed_indexes_s, dim=1)
pruned_lens_x = idx0.shape[1]
pad_x = torch.zeros([B, pruned_lens_x, x.shape[2]], device=x.device)
x = torch.cat([x, pad_x], dim=1)
index_all = torch.cat([idx1, idx0], dim=1)
# recover original token order
C = x.shape[-1]
x = torch.zeros_like(x).scatter_(dim=1, index=index_all.unsqueeze(-1).expand(B, -1, C).to(torch.int64), src=x)
ex = torch.cat([ex, pad_x], dim=1)
index_all = torch.cat([idex1, idex0], dim=1)
# recover original token order
C = ex.shape[-1]
ex = torch.zeros_like(ex).scatter_(dim=1, index=index_all.unsqueeze(-1).expand(B, -1, C).to(torch.int64), src=ex)
x = torch.cat([x,ex],dim=1)
x = recover_tokens(x, lens_z_new, lens_x, mode=self.cat_mode)
event_x = x[:, lens_x:] # RGB head
x = x[:, :lens_x] # RGB head
x = torch.cat([event_x, x], dim=1)
aux_dict = {
# "attn": attn,
"attn": out_attn,
"removed_indexes_s": removed_indexes_s, # used for visualization
}
return x, aux_dict
def forward(self, z, x, event_z, event_x,
ce_template_mask=None, ce_keep_rate=None,
tnc_keep_rate=None,
return_last_attn=False,Track=False):
x, aux_dict = self.forward_features(z, x, event_z, event_x, ce_template_mask=ce_template_mask, ce_keep_rate=ce_keep_rate,Track=Track)
return x, aux_dict
def _create_vision_transformer(pretrained=False, **kwargs):
model = VisionTransformerCE(**kwargs)
if pretrained:
if 'npz' in pretrained:
model.load_pretrained(pretrained, prefix='')
else:
checkpoint = torch.load(pretrained, map_location="cpu")
missing_keys, unexpected_keys = model.load_state_dict(checkpoint["model"], strict=False)
print('Load pretrained model from: ' + pretrained)
return model
def vit_base_patch16_224_ce(pretrained=False, **kwargs):
""" ViT-Base model (ViT-B/16) from original paper (https://arxiv.org/abs/2010.11929).
"""
model_kwargs = dict(
patch_size=16, embed_dim=768, depth=12, num_heads=12, **kwargs)
model = _create_vision_transformer(pretrained=pretrained, **model_kwargs)
return model
def vit_large_patch16_224_ce(pretrained=False, **kwargs):
""" ViT-Large model (ViT-L/16) from original paper (https://arxiv.org/abs/2010.11929).
"""
model_kwargs = dict(
patch_size=16, embed_dim=1024, depth=24, num_heads=16, **kwargs)
model = _create_vision_transformer(pretrained=pretrained, **model_kwargs)
return model中,设置了out_attn,现在在# 将 4输入分开,构建新的相同模态结合的2输入,2分支
import math
import logging
from functools import partial
from collections import OrderedDict
from copy import deepcopy
import torch
import torch.nn as nn
import torch.nn.functional as F
from timm.models.layers import to_2tuple
from lib.models.layers.patch_embed import PatchEmbed, PatchEmbed_event, xcorr_depthwise
from .utils import combine_tokens, recover_tokens
from .vit import VisionTransformer
from ..layers.attn_blocks import CEBlock
from .ad_counter_guide import Counter_Guide_Enhanced
_logger = logging.getLogger(__name__)
class VisionTransformerCE(VisionTransformer):
""" Vision Transformer with candidate elimination (CE) module
A PyTorch impl of : `An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale`
- https://arxiv.org/abs/2010.11929
Includes distillation token & head support for `DeiT: Data-efficient Image Transformers`
- https://arxiv.org/abs/2012.12877
"""
def __init__(self, img_size=224, patch_size=16, in_chans=3, num_classes=1000, embed_dim=768, depth=12,
num_heads=12, mlp_ratio=4., qkv_bias=True, representation_size=None, distilled=False,
drop_rate=0., attn_drop_rate=0., drop_path_rate=0., embed_layer=PatchEmbed, norm_layer=None,
act_layer=None, weight_init='',
ce_loc=None, ce_keep_ratio=None):
super().__init__()
if isinstance(img_size, tuple):
self.img_size = img_size
else:
self.img_size = to_2tuple(img_size)
self.patch_size = patch_size
self.in_chans = in_chans
self.num_classes = num_classes
self.num_features = self.embed_dim = embed_dim # num_features for consistency with other models
self.num_tokens = 2 if distilled else 1
norm_layer = norm_layer or partial(nn.LayerNorm, eps=1e-6)
act_layer = act_layer or nn.GELU
self.patch_embed = embed_layer(
img_size=img_size, patch_size=patch_size, in_chans=in_chans, embed_dim=embed_dim)
num_patches = self.patch_embed.num_patches
self.cls_token = nn.Parameter(torch.zeros(1, 1, embed_dim))
self.dist_token = nn.Parameter(torch.zeros(1, 1, embed_dim)) if distilled else None
self.pos_embed = nn.Parameter(torch.zeros(1, num_patches + self.num_tokens, embed_dim))
self.pos_drop = nn.Dropout(p=drop_rate)
self.pos_embed_event = PatchEmbed_event(in_chans=32, embed_dim=768, kernel_size=4, stride=4)
dpr = [x.item() for x in torch.linspace(0, drop_path_rate, depth)] # stochastic depth decay rule
blocks = []
ce_index = 0
self.ce_loc = ce_loc
for i in range(depth):
ce_keep_ratio_i = 1.0
if ce_loc is not None and i in ce_loc:
ce_keep_ratio_i = ce_keep_ratio[ce_index]
ce_index += 1
blocks.append(
CEBlock(
dim=embed_dim, num_heads=num_heads, mlp_ratio=mlp_ratio, qkv_bias=qkv_bias, drop=drop_rate,
attn_drop=attn_drop_rate, drop_path=dpr[i], norm_layer=norm_layer, act_layer=act_layer,
keep_ratio_search=ce_keep_ratio_i)
)
self.blocks = nn.Sequential(*blocks)
self.norm = norm_layer(embed_dim)
self.init_weights(weight_init)
# 添加交互模块counter_guide
# self.counter_guide = Counter_Guide(768, 768)
self.counter_guide = Counter_Guide_Enhanced(768, 768)
def forward_features(self, z, x, event_z, event_x,
mask_z=None, mask_x=None,
ce_template_mask=None, ce_keep_rate=None,
return_last_attn=False
):
# 分支1 处理流程
B, H, W = x.shape[0], x.shape[2], x.shape[3]
x = self.patch_embed(x)
z = self.patch_embed(z)
z += self.pos_embed_z
x += self.pos_embed_x
if mask_z is not None and mask_x is not None:
mask_z = F.interpolate(mask_z[None].float(), scale_factor=1. / self.patch_size).to(torch.bool)[0]
mask_z = mask_z.flatten(1).unsqueeze(-1)
mask_x = F.interpolate(mask_x[None].float(), scale_factor=1. / self.patch_size).to(torch.bool)[0]
mask_x = mask_x.flatten(1).unsqueeze(-1)
mask_x = combine_tokens(mask_z, mask_x, mode=self.cat_mode)
mask_x = mask_x.squeeze(-1)
if self.add_cls_token:
cls_tokens = self.cls_token.expand(B, -1, -1)
cls_tokens = cls_tokens + self.cls_pos_embed
if self.add_sep_seg:
x += self.search_segment_pos_embed
z += self.template_segment_pos_embed
x = combine_tokens(z, x, mode=self.cat_mode)
if self.add_cls_token:
x = torch.cat([cls_tokens, x], dim=1)
x = self.pos_drop(x)
lens_z = self.pos_embed_z.shape[1]
lens_x = self.pos_embed_x.shape[1]
global_index_t = torch.linspace(0, lens_z - 1, lens_z).to(x.device)
global_index_t = global_index_t.repeat(B, 1)
global_index_s = torch.linspace(0, lens_x - 1, lens_x).to(x.device)
global_index_s = global_index_s.repeat(B, 1)
removed_indexes_s = []
# # 分支2 处理流程
event_x = self.pos_embed_event(event_x)
event_z = self.pos_embed_event(event_z)
event_x += self.pos_embed_x
event_z += self.pos_embed_z
event_x = combine_tokens(event_z, event_x, mode=self.cat_mode)
if self.add_cls_token:
event_x = torch.cat([cls_tokens, event_x], dim=1)
lens_z = self.pos_embed_z.shape[1]
lens_x = self.pos_embed_x.shape[1]
global_index_t1 = torch.linspace(0, lens_z - 1, lens_z).to(event_x.device)
global_index_t1 = global_index_t1.repeat(B, 1)
global_index_s1 = torch.linspace(0, lens_x - 1, lens_x).to(event_x.device)
global_index_s1 = global_index_s1.repeat(B, 1)
removed_indexes_s1 = []
for i, blk in enumerate(self.blocks):
# 第一个分支处理
x, global_index_t, global_index_s, removed_index_s, attn = \
blk(x, global_index_t, global_index_s, mask_x, ce_template_mask, ce_keep_rate)
# 第二个分支处理
event_x, global_index_t1, global_index_s1, removed_index_s1, attn = \
blk(event_x, global_index_t1, global_index_s1, mask_x, ce_template_mask, ce_keep_rate)
if self.ce_loc is not None and i in self.ce_loc:
removed_indexes_s.append(removed_index_s)
removed_indexes_s1.append(removed_index_s1)
# 在第1层和第2层增加counter_guide模块,验证早期融合效果
if i == 0 :
enhanced_x, enhanced_event_x = self.counter_guide(x, event_x)
# 将增强后的特征与原特征相加
x = x + enhanced_x
event_x = event_x + enhanced_event_x
# 应用LayerNorm归一化处理
x = self.norm(x)
event_x = self.norm(event_x)
x_cat = torch.cat([event_x,x], dim=1)
x = x_cat
aux_dict = {
"attn": attn,
"removed_indexes_s": removed_indexes_s, # used for visualization
}
return x, aux_dict
def forward(self, z, x, event_z, event_x,
ce_template_mask=None, ce_keep_rate=None,
tnc_keep_rate=None,
return_last_attn=False):
x, aux_dict = self.forward_features(z, x, event_z, event_x, ce_template_mask=ce_template_mask, ce_keep_rate=ce_keep_rate,)
return x, aux_dict
def _create_vision_transformer(pretrained=False, **kwargs):
model = VisionTransformerCE(**kwargs)
if pretrained:
if 'npz' in pretrained:
model.load_pretrained(pretrained, prefix='')
else:
checkpoint = torch.load(pretrained, map_location="cpu")
missing_keys, unexpected_keys = model.load_state_dict(checkpoint["model"], strict=False)
print('Load pretrained model from: ' + pretrained)
return model
def vit_base_patch16_224_ce(pretrained=False, **kwargs):
""" ViT-Base model (ViT-B/16) from original paper (https://arxiv.org/abs/2010.11929).
"""
model_kwargs = dict(
patch_size=16, embed_dim=768, depth=12, num_heads=12, **kwargs)
model = _create_vision_transformer(pretrained=pretrained, **model_kwargs)
return model
def vit_large_patch16_224_ce(pretrained=False, **kwargs):
""" ViT-Large model (ViT-L/16) from original paper (https://arxiv.org/abs/2010.11929).
"""
model_kwargs = dict(
patch_size=16, embed_dim=1024, depth=24, num_heads=16, **kwargs)
model = _create_vision_transformer(pretrained=pretrained, **model_kwargs)
return model中加入out_attn,按照第一部分的代码中引入out_attn的格式和原理,那么现在对第二段代码进行修改和添加。
|
153011adebe4e132ed529ef3de9ce1f0
|
{
"intermediate": 0.4144701659679413,
"beginner": 0.39271798729896545,
"expert": 0.19281193614006042
}
|
48,066
|
Check formatter field values in servicenow. I have Ritm with variables section
|
b5bb7eb4d0806ccb4e9443fc54c38945
|
{
"intermediate": 0.33927080035209656,
"beginner": 0.3991718292236328,
"expert": 0.26155737042427063
}
|
48,067
|
I am having the Actor network and PPoagent with continuous action space, please review the complete provided code. and address any implementation issues were existing or not in the given structure. and also address all the logical immplementation error, improper implementation, improper functions used, improper computation technique used finally address the 'log_prob were properly computed or not and check its expression.
class Actor(torch.nn.Module):
def __init__(self, gnn_model):
super(Actor, self).__init__()
self.gnn = gnn_model
# Bounds are converted to tensors for ease of calculation
self.bounds_low = torch.tensor([0.18e-6, 0.18e-6, 0.18e-6, 0.18e-6, 0.18e-6,
0.5e-6, 0.5e-6, 0.5e-6, 0.5e-6, 0.5e-6,
15e-6, 0.1e-12, 0.8], dtype=torch.float32)
self.bounds_high = torch.tensor([0.2e-6, 0.2e-6, 0.2e-6, 0.2e-6, 0.2e-6,
50e-6, 50e-6, 50e-6, 50e-6, 50e-6,
30e-6, 10e-12, 1.4], dtype=torch.float32)
def forward(self, state):
node_features_tensor, _, edge_index = state
processed_features = self.gnn(node_features_tensor, edge_index)
# Specific (row, column) indices for action values, converted to 0-based indexing
action_indices = [
(10, 19), (16, 19), (5, 19), (3, 19), (0, 19), (10, 18),
(16, 18), (5, 18), (3, 18), (0, 18), (17, 20), (18, 21), (19, 22)
]
# For gathering specific indices, we first convert action_indices to a tensor format that can be used with gather or indexing
action_indices_tensor = torch.tensor(action_indices, dtype=torch.long).t()
selected_features = processed_features[action_indices_tensor[0], action_indices_tensor[1]]
print("selected_features", selected_features)
# Perform min-max scaling to map selected features to the range defined by bounds
#min_values = torch.min(selected_features, dim=0)[0]
#max_values = torch.max(selected_features, dim=0)[0]
#scaled_action = (selected_features - min_values) / (max_values - min_values)
# Use sigmoid or tanh followed by scaling to the specific bounds
# This assumes outputs are approximately normalized or that such a transformation is desirable.
#scaled_action = torch.sigmoid(selected_features) # Sigmoid maps to (0, 1)
# Alternatively, for a wider range before scaling, you could use:
scaled_action = (torch.tanh(selected_features) + 1) / 2 # Maps outputs to (0, 1)
# Scale the min-max scaled features to fit within the specified bounds
scaled_actions = self.bounds_low + (self.bounds_high - self.bounds_low) * scaled_action
return scaled_actions
class PPOAgent:
def __init__(self, gnn_model, state_dim, action_space, lr_actor, lr_critic, gamma, gae_lambda, epsilon, policy_clip, epochs, entropy_coef):
self.gamma = gamma
self.gae_lambda = gae_lambda
self.epsilon = epsilon
self.policy_clip = policy_clip
self.epochs = epochs
self.entropy_coef = entropy_coef # Dynamic entropy coefficient
self.rewards_history = []
self.dynamic_factor_base = 0.05 # Base value for the dynamic factor
self.actor = Actor(gnn_model)
self.critic = Critic()
self.optimizer_actor = optim.Adam(self.actor.parameters(), lr=lr_actor)
self.optimizer_critic = optim.Adam(self.critic.parameters(), lr=lr_critic)
self.action_space = action_space # Assume continuous
def update_rewards_history(self, reward):
self.rewards_history.append(reward)
# Limit the history size to keep only the most recent rewards
if len(self.rewards_history) > 100:
self.rewards_history = self.rewards_history[-100:]
def calculate_dynamic_factor(self):
# Adjust exploration based on recent reward history
if len(self.rewards_history) >= 100:
recent_rewards = self.rewards_history[-10:] # Last 10 rewards
earlier_rewards = self.rewards_history[-100:-10] # Previous 90 out of 100 rewards
recent_avg_reward = np.mean(recent_rewards)
earlier_avg_reward = np.mean(earlier_rewards)
# Increase exploration if recent rewards are not significantly better than earlier
if recent_avg_reward <= earlier_avg_reward * 1.1: # Example threshold
return self.dynamic_factor_base * 2 # Example: increasing exploration
else:
return self.dynamic_factor_base # Sticking with base exploration level
else:
return self.dynamic_factor_base # Use base dynamic_factor if not enough data
def select_action(self, state, performance_metrics):
dynamic_factor = self.calculate_dynamic_factor()
action_probs = self.actor(state)
# Adjust epsilon based on the spread of bounds
bounds_range = self.actor.bounds_high - self.actor.bounds_low
epsilon = (1e-4 + bounds_range * dynamic_factor).clamp(min=0.01)
# To calculate variances, ensure actor yields predictions
variances = action_probs.var(dim=0, keepdim=True).expand(action_probs.shape[0]) + epsilon
cov_mat = torch.diag(variances) # Form an [13, 13] covariance matrix with variances on the diagonal
# Define the Multivariate Normal distribution
dist = torch.distributions.MultivariateNormal(action_probs, cov_mat)
# Sample an action
raw_action = dist.sample()
# Scale the raw sampled action to fit within the specified bounds
#scaled_action = self.actor.bounds_low + (torch.sigmoid(raw_action) * (bounds_range))
# Adjusted scaling using tanh
scaled_action = ((torch.tanh(raw_action) + 1) / 2) * (bounds_range) + self.actor.bounds_low
log_prob = dist.log_prob(raw_action) - torch.log(bounds_range).sum() # Compute log probability with raw action
return scaled_action.detach().numpy().squeeze(), log_prob.item(), performance_metrics
|
60f6ea073c240de09113c0d57e63ec1b
|
{
"intermediate": 0.308351993560791,
"beginner": 0.3831663727760315,
"expert": 0.3084816038608551
}
|
48,068
|
hi, how to plot non existend
|
e89c10ba73640c23eab309f5d97129a1
|
{
"intermediate": 0.32768842577934265,
"beginner": 0.2583632469177246,
"expert": 0.41394829750061035
}
|
48,069
|
Some compilers will enforce 32-byte stack alignment when entering a function.
This means seeking for the memory address of the stack pointer to be evenly
divisible by 32. This was historically more efficient for systems to fetch memory
on 32 byte-aligned bounds. This efficiency improvement may not still exist, but
you will still see compilers occasionally doing things to maintain stack alignment.
How you might see this manifest is, when allocating space for local variables,
they may allocate excess space to maintain this alignment.
This means it is common for unused space to exist within a function’s
stack frame. When reversing, don’t get hung up on excess space because it is
completely normal. When writing your own code, this isn’t something you
need to manually do, but the goal of this book is to equip you to recognize this
in code and know it’s something you can mostly ignore.
Explain this with examples
|
7a42c3be21b37b3f37832ebbf5149e32
|
{
"intermediate": 0.35008424520492554,
"beginner": 0.32228660583496094,
"expert": 0.3276291489601135
}
|
48,070
|
Renpy, ошибка в коде таймера
Написал как всегда, раньше работало, а сейчас нет. Не могу понять причину:
screen timerr:
timer 1 repeat True action if(time > 0, SetVariable("time", time - 1).[Hide ("timerr"), Jump("end")])
label start:
$ time = 7
|
ff6195c84511eccc09b485829527dac8
|
{
"intermediate": 0.28568822145462036,
"beginner": 0.5322549343109131,
"expert": 0.18205676972866058
}
|
48,071
|
I have a GitHub code with me for a deep learning based project ,I want to make a gui app for the deep learning project where we give a input file and the app gives output from the model and displays on the app
|
a88e61dab08722863980f33893ff3f52
|
{
"intermediate": 0.2520941197872162,
"beginner": 0.12607638537883759,
"expert": 0.6218295097351074
}
|
48,072
|
how to see what headers i sent via requests library in python?
|
18c7b3092617f57f0a529994e53a1501
|
{
"intermediate": 0.8200308084487915,
"beginner": 0.08474969118833542,
"expert": 0.09521947056055069
}
|
48,073
|
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) >acq.micro.c2bsbp.models.SbpOperation$HibernateProxy$bt6MSxRD["hibernateLazyInitializer"])
|
8bde5469f8511118c0100abdb614bb28
|
{
"intermediate": 0.5605090856552124,
"beginner": 0.21907562017440796,
"expert": 0.22041532397270203
}
|
48,074
|
I need to have the function "butter" implemented without using external libraries:
def butter_lowpass_filter(data, cutoff, fs, order):
normal_cutoff = cutoff / fs
# Get the filter coefficients
b, a = butter(order, normal_cutoff, btype='low', analog=False)
y = filtfilt(b, a, data)
return y
|
e9dc3ad246eae55556caa183e28b227a
|
{
"intermediate": 0.5358769297599792,
"beginner": 0.25000661611557007,
"expert": 0.2141164243221283
}
|
48,075
|
I need a drop-in replacement for function “butter” from SciPy but implemented using standard Python:
def butter_lowpass_filter(data, cutoff, fs, order):
normal_cutoff = cutoff / fs
# Get the filter coefficients
b, a = butter(order, normal_cutoff, btype=‘low’, analog=False)
y = filtfilt(b, a, data)
return y
|
e17140cd483c184719be445a5c48301c
|
{
"intermediate": 0.5707933902740479,
"beginner": 0.2755010724067688,
"expert": 0.15370555222034454
}
|
48,076
|
I need a drop-in replacement for function “butter” from SciPy but implemented using standard Python:
def butter_lowpass_filter(data, cutoff, fs, order):
normal_cutoff = cutoff / fs
# Get the filter coefficients
b, a = butter(order, normal_cutoff, btype=‘low’, analog=False)
y = filtfilt(b, a, data)
return y
|
778a53999ef4d825241b8e3dfa4a1f19
|
{
"intermediate": 0.5707933902740479,
"beginner": 0.2755010724067688,
"expert": 0.15370555222034454
}
|
48,077
|
I need a drop-in replacement for function “butter” from SciPy but implemented using standard Python.
The reason I need it is that this code will be rewritten to different languages and platforms, where these libraries don't exist, hence the requirement for portability.
def butter_lowpass_filter(data, cutoff, fs, order):
normal_cutoff = cutoff / fs
# Get the filter coefficients
b, a = butter(order, normal_cutoff, btype=‘low’, analog=False)
y = filtfilt(b, a, data)
return y
|
99ef896ce75459326ae18c3d177d2dd1
|
{
"intermediate": 0.6297978758811951,
"beginner": 0.19801534712314606,
"expert": 0.17218676209449768
}
|
48,078
|
C:\Users\r.petrikey\Desktop\Скрипты\get_local_admins.ps1:27 знак:28
+ ... $enabled = Get-WmiObject -Class "Win32_UserAccount" -ComputerName $c ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-WmiObject], ManagementException
+ FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
|
a04f49b1a71c3a7c21767280ff386f05
|
{
"intermediate": 0.314869225025177,
"beginner": 0.42749977111816406,
"expert": 0.25763094425201416
}
|
48,079
|
I want to build a Document image Enhancer. Which will help me to correct the image quality and skew correct. With python code
|
6c41794438250b1bab69188699d45f65
|
{
"intermediate": 0.32928845286369324,
"beginner": 0.16301803290843964,
"expert": 0.5076934695243835
}
|
48,080
|
Where is the mistake here
foreach ($admin in $admins) {
$account = $admin.PartComponent -replace '^Win32_UserAccount.Domain="(.+)",Name="(.+)"$', '$2'
$enabled = Get-WmiObject -Class "Win32_UserAccount" -ComputerName $computer -Filter "Name='$account'" -Property Disabled
if (-not $enabled) {
Write-Host "Found enabled local admin account $account on $computer"
$results += [PSCustomObject]@{
ComputerName = $computer
AdminAccount = $account
}
This code actullay just finds all disabled admins as well
|
834dde78c6db375d1ceb40aec2828650
|
{
"intermediate": 0.2870730459690094,
"beginner": 0.529662013053894,
"expert": 0.18326492607593536
}
|
48,081
|
foreach ($admin in $admins) {
$account = $admin.PartComponent -replace '^Win32_UserAccount.Domain="(.+)",Name="(.+)"$', '$2'
$enabled = Get-WmiObject -Class "Win32_UserAccount" -ComputerName $computer -Filter "Name='$account'" -Property Disabled
if (-not $enabled) {
Write-Host "Found enabled local admin account $account on $computer"
$results += [PSCustomObject]@{
ComputerName = $computer
AdminAccount = $account
}
What is wrong here it should find only enabled admins, but it finds all
|
e80218bf11d68963d6a6799b36a0c47d
|
{
"intermediate": 0.3335326910018921,
"beginner": 0.5233308672904968,
"expert": 0.14313636720180511
}
|
48,082
|
say "what we offer" in a different professional way
|
c1f2584037316fae261a3d96a8c59bb6
|
{
"intermediate": 0.3831118941307068,
"beginner": 0.2811710834503174,
"expert": 0.33571699261665344
}
|
48,083
|
the data-types on the different li pricing plans describe the two types of options, on the school option, i have added a new 2 year plan but it is interfering with the prep view. The prep li are four with the fourth as a transparent(is-hidden) li for the placeholder of the extra school li. I want the prep view to strictly show 3 li and add the 4 only when li with data type school are visible four the fourth 2 year plan and also the 4 plans should be centered on the screen. This is a design css issue i need fixed: <div class="pricing-container">
<div class="pricing-switcher">
<p class="fieldset">
<input type="radio" name="duration-1" value="prep" id="prep-1" checked>
<label for="prep-1">Prep Courses</label>
<input type="radio" name="duration-1" value="school" id="school-1">
<label for="school-1">Nursing School</label>
<span class="switch"></span>
</p>
</div>
<ul class="pricing-list bounce-invert">
<li>
<ul class="pricing-wrapper">
<li data-type="prep" class="is-visible">
<div class="header pricing-header">
<h2>Monthly</h2>
<div class="price">
<span class="currency">$</span>
<span class="value">59</span>
<span class="duration">month</span>
</div>
<br><br>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>ALL</em> Courses</li>
<li><em>30</em> Days of access</li>
<li><em>24/7</em> Dedicated Support</li>
<li> Performance tracking</li>
<li> Questions and well-detailed explanation</li>
<li> Detailed performnce analysis available <br> upon completion</li>
</ul>
</div>
<div class="footer pricing-footer">
<button class="select" onclick="submitForm('PREP COURSES MONTHLY', 59)">Get Started Now</button>
</div>
</li>
<!-- <li data-type="school" class="is-hidden" style="height: 700px;">
<div class="header pricing-header">
<div class="price">
</div>
</div>
<div class="pricing-body" style="padding-top: 25px;">
<ul class="pricing-features">
<li style="font-size: 3.5rem; font-weight: 600; color: #4e1249;"> Thank You</li>
<li style="font-size: 2.9rem; font-weight: 700; color: #6c1865;"> For</li>
<li style="font-size: 2.9rem; font-weight: 800; color: #8f2086;"> Your</li>
<li style="font-size: 3.5rem; font-weight: 900; color: #a12597;"> Patience.</li>
</ul>
</div>
<div class="footer pricing-footer">
</div>
</li> -->
<li data-type="school" class="is-hidden">
<div class="header pricing-header">
<h2>Monthly</h2>
<div class="price">
<span class="currency">$</span>
<span class="value">30</span>
<span class="duration">month</span>
</div>
<br><br>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>ALL</em> Topics</li>
<li><em>30</em> Days of access</li>
<li><em>24/7</em> Dedicated Support</li>
<li> Performance tracking</li>
<li> Questions and well-detailed explanation</li>
<li> Detailed performance analysis available <br> upon completion</li>
</ul>
</div>
<div class="footer pricing-footer">
<button class="select" onclick="submitForm('NURSING SCHOOL MONTHLY', 30)">Get Started Now</button>
</div>
</li>
</ul>
</li>
<li class="exclusive">
<ul class="pricing-wrapper">
<li data-type="prep" class="is-visible">
<div class="header pricing-header">
<h2>3 Months</h2>
<div class="price">
<span class="currency">$</span>
<span class="value">50</span>
<span class="duration">month</span>
</div>
<span class="subtitle"> TOTAL: $150</span>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>All</em> Courses</li>
<li><em>6</em> Months of access</li>
<li><em>24/7</em> Dedicated Support</li>
<li> Performance tracking</li>
<li> Questions and well-detailed explanation</li>
<li> Detailed performance analysis available <br> upon completion</li>
</ul>
</div>
<div class="footer pricing-footer">
<button class="select" onclick="submitForm('PREP COURSES 3 MONTHS', 150)">Get Started Now</button>
</div>
</li>
<!-- <li data-type="school" class="is-hidden" style="height: 700px;">
<div class="header pricing-header" style="transform: rotate(-90deg); height: 100%; width: 700px; margin-left: 30%;">
<div class="price">
<span class="value">COMING</span>
</div>
<span style="font-size: 3.5rem; color: #6c1865; font-weight: 600;">BACK SOON</span>
</div>
</li> -->
<li data-type="school" class="is-hidden">
<div class="header pricing-header">
<h2>6 Months</h2>
<div class="price">
<span class="currency">$</span>
<span class="value">23</span>
<span class="duration">month</span>
</div>
<span class="subtitle"> TOTAL: $138</span>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>All</em> Topics</li>
<li><em>6</em> Months of access</li>
<li><em>24/7</em> Dedicated Support</li>
<li> Performance tracking</li>
<li> Questions and well-detailed explanation</li>
<li> Detailed performance analysis available <br> upon completion</li>
</ul>
</div>
<div class="footer pricing-footer">
<button class="select" onclick="submitForm('NURSING SCHOOL 6 MONTHS', 138)">Get Started Now</button>
</div>
</li>
</ul>
</li>
<li>
<ul class="pricing-wrapper">
<li data-type="prep" class="is-visible">
<div class="header pricing-header">
<h2>6 Months</h2>
<div class="price">
<span class="currency">$</span>
<span class="value">40</span>
<span class="duration">month</span>
</div>
<span class="subtitle"> TOTAL: $240</span>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>ALL</em> Courses</li>
<li><em>1</em> Year of access</li>
<li><em>24/7</em> Dedicated Support</li>
<li> Performance tracking</li>
<li> Questions and well-detailed explanation</li>
<li> Detailed performnce analysis available <br> upon completion</li>
</ul>
</div>
<div class="footer pricing-footer">
<button class="select" onclick="submitForm('PREP COURSES 6 MONTHS', 240)">Get Started Now</button>
</div>
</li>
<!-- <li data-type="school" class="is-hidden" style="height: 700px;">
<div class="header pricing-header">
<div class="price">
</div>
</div>
<div class="pricing-body" style="padding-top: 25px;">
<ul class="pricing-features">
<li style="font-size: 2.2rem; font-weight: 500; color: #280926;"> A</li>
<li style="font-size: 2.4rem; font-weight: 600; color: #4e1249;"> Major</li>
<li style="font-size: 2.8rem; font-weight: 700; color: #6c1865;"> Update</li>
<li style="font-size: 3.2rem; font-weight: 800; color: #8f2086;"> Launching</li>
<li style="font-size: 3.5rem; font-weight: 900; color: #a12597;"> SOON !!</li>
</ul>
</div>
<div class="footer pricing-footer">
</div>
</li> -->
<li data-type="school" class="is-hidden">
<div class="header pricing-header">
<h2>One Year</h2>
<div class="price">
<span class="currency">$</span>
<span class="value">18</span>
<span class="duration">month</span>
</div>
<span class="subtitle"> TOTAL: $216</span>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>ALL</em> Topics</li>
<li><em>1</em> Year of access</li>
<li><em>24/7</em> Dedicated Support</li>
<li> Performance tracking</li>
<li> Questions and well-detailed explanation</li>
<li> Detailed performance analysis available <br> upon completion</li>
</ul>
</div>
<div class="footer pricing-footer">
<button class="select" onclick="submitForm('NURSING SCHOOL 1 YEAR', 216)">Get Started Now</button>
</div>
</li>
</ul>
</li>
<li>
<ul class="pricing-wrapper">
<!--<li data-type="prep" class="is-visible">
<div class="header pricing-header">
<h2>2024 PROMOTION</h2>
<div class="price">
<span class="currency"></span>
<span class="value txlg">FULL ACCESS</span></br>
<span class="duration" style="font-size: 1.6em;">second</span>
</div>
<span style="font-size: 1.8em; color: #a12597; font-weight: 600;"> SUBSCRIPTION'S DURATION</span>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>ALL</em> Prep Courses</li>
<li><em>ALL</em> Nursing School Topics</li>
<li style="margin-bottom: 50px;">
<p>By subscribing to BOTH the Prep Courses<br> and Nursing School learning platform,<br> you gain a comprehensive advantage,<br> ensuring access to top-notch resources <br> for the duration of the 2nd<br> Subscription. For example. :<br><span style="color: #2d3e50;"> A 6 Months Prep Courses subscription <br> and a second 1 Year Nursing School <br> subscription will grant you FULL ACCESS <br> to BOTH for 1 Year!</span></p>
</li>
</ul>
</div>
</li>-->
<li data-type="school" class="is-hidden">
<div class="header pricing-header">
<h2>Two Years</h2>
<div class="price">
<span class="currency">$</span>
<span class="value">12</span>
<span class="duration">month</span>
</div>
<span class="subtitle"> TOTAL: $288</span>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>ALL</em> Topics</li>
<li><em>2</em> Years of access</li>
<li><em>24/7</em> Dedicated Support</li>
<li> Performance tracking</li>
<li> Questions and well-detailed explanation</li>
<li> Detailed performance analysis available <br> upon completion</li>
</ul>
</div>
<div class="footer pricing-footer">
<button class="select" onclick="submitForm('NURSING SCHOOL 2 YEARS', 288)">Get Started Now</button>
</div>
</li>
</ul>
</li>
</ul>
</div> CSS: .price {
margin-bottom: 8px;
}
.txlg {
font-size: 3rem;
font-weight: 600;
}
.pricing-title {
font-size: 27px;
font-weight: bold;
padding-top: 150px;
padding-bottom: 20px;
color: #fff;
}
.pricing-description {
font-size: 20px;
color: #fff;
}
.pricing-description2 {
font-size: 20px;
padding-top: 20px;
padding-bottom: 35px;
font-weight: bold;
color: #fff;
}
.pricing-container {
width: 90%;
max-width: 100%;
margin: 5px auto;
}
.pricing-container.full-width {
width: 100%;
max-width: none;
}
.pricing-switcher {
text-align: center;
}
.pricing-switcher .fieldset {
display: inline-block;
position: relative;
padding: 2px;
border-radius: 15px 15px 0 0;
border: 2px solid #fff;
width: fit-content;
}
.pricing-switcher input[type="radio"] {
position: absolute;
opacity: 0;
}
.pricing-switcher label {
position: relative;
z-index: 1;
display: inline-block;
width: 240px;
height: 70px;
line-height: 70px;
cursor: pointer;
font-size: 2rem;
font-weight: bold;
color: #ffffff;
}
.pricing-switcher .switch {
position: absolute;
top: 2px;
left: 2px;
right: 2px;
height: 70px;
width: 240px;
background-image: linear-gradient(-225deg, #A445B2 0%, #D41872 52%, #FF0066 100%);
border-radius: 15px 15px 0 0;
-webkit-transition: -webkit-transform 0.5s;
-moz-transition: -moz-transform 0.5s;
transition: transform 0.5s;
}
.pricing-switcher input[type="radio"]:checked + label + .switch,
.pricing-switcher input[type="radio"]:checked + label:nth-of-type(n) + .switch {
-webkit-transform: translateX(240px);
-moz-transform: translateX(240px);
-ms-transform: translateX(240px);
-o-transform: translateX(240px);
transform: translateX(240px);
}
@media only screen and (max-width: 996px) {
.pricing-switcher label {
width: 120px;
font-size: 16px;
font-weight: bold;
}
.pricing-switcher .switch {
width: 120px;
}
.pricing-switcher input[type="radio"]:checked+label+.switch,
.pricing-switcher input[type="radio"]:checked+label:nth-of-type(n)+.switch {
-webkit-transform: translateX(120px);
-moz-transform: translateX(120px);
-ms-transform: translateX(120px);
-o-transform: translateX(120px);
transform: translateX(120px);
}
}
.no-js .pricing-switcher {
display: none;
}
.pricing-list {
margin: 2em 0 0;
}
.pricing-list > li {
position: relative;
margin-bottom: 1em;
z-index: 2;
}
@media only screen and (min-width: 768px) {
.pricing-list {
margin: 2em;
display: flex;
justify-content: center;
}
.pricing-list:after {
content: "";
display: table;
clear: both;
}
.pricing-list > li {
width: 23%;
float: left;
padding-left: 5px;
padding-right: 5px;
}
.has-margins .pricing-list > li {
width: 48%;
float: left;
margin-right: 1.5%;
}
.has-margins .pricing-list > li:last-of-type {
margin-right: 0;
}
}
.pricing-wrapper {
position: relative;
}
.touch .pricing-wrapper {
-webkit-perspective: 2000px;
-moz-perspective: 2000px;
perspective: 2000px;
}
.pricing-wrapper.is-switched .is-visible {
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
-ms-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
transform: rotateY(180deg);
-webkit-animation: rotate 0.5s;
-moz-animation: rotate 0.5s;
animation: rotate 0.5s;
}
.pricing-wrapper.is-switched .is-hidden {
-webkit-transform: rotateY(0);
-moz-transform: rotateY(0);
-ms-transform: rotateY(0);
-o-transform: rotateY(0);
transform: rotateY(0);
-webkit-animation: rotate-inverse 0.5s;
-moz-animation: rotate-inverse 0.5s;
animation: rotate-inverse 0.5s;
opacity: 0;
}
.pricing-wrapper.is-switched .is-selected {
opacity: 1;
}
.pricing-wrapper.is-switched.reverse-animation .is-visible {
-webkit-transform: rotateY(-180deg);
-moz-transform: rotateY(-180deg);
-ms-transform: rotateY(-180deg);
-o-transform: rotateY(-180deg);
transform: rotateY(-180deg);
-webkit-animation: rotate-back 0.5s;
-moz-animation: rotate-back 0.5s;
animation: rotate-back 0.5s;
}
.pricing-wrapper.is-switched.reverse-animation .is-hidden {
-webkit-transform: rotateY(0);
-moz-transform: rotateY(0);
-ms-transform: rotateY(0);
-o-transform: rotateY(0);
transform: rotateY(0);
-webkit-animation: rotate-inverse-back 0.5s;
-moz-animation: rotate-inverse-back 0.5s;
animation: rotate-inverse-back 0.5s;
opacity: 0;
}
.pricing-wrapper.is-switched.reverse-animation .is-selected {
opacity: 1;
}
.pricing-wrapper > li {
background-color: #ffffff;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
outline: 1px solid transparent;
}
.pricing-wrapper > li::after {
content: '';
position: absolute;
top: 0;
right: 0;
height: 100%;
width: 50px;
pointer-events: none;
background: -webkit-linear-gradient( right , #ffffff, rgba(255, 255, 255, 0));
background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}
.pricing-wrapper > li.is-ended::after {
display: none;
}
.pricing-wrapper .is-visible {
position: relative;
z-index: 5;
border-radius: 24px;
}
.pricing-wrapper .is-hidden {
position: absolute;
border-radius: 24px;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 1;
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
-ms-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
transform: rotateY(180deg);
}
.pricing-wrapper .is-selected {
z-index: 3 !important;
}
@media only screen and (min-width: 768px) {
.pricing-wrapper > li::before {
content: '';
position: absolute;
z-index: 6;
left: -1px;
top: 50%;
bottom: auto;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
height: 50%;
width: 1px;
background-color: #b1d6e8;
}
.pricing-wrapper > li::after {
display: none;
}
.exclusive .pricing-wrapper > li {
box-shadow: inset 0 0 0 3px #ff2e97;
}
.has-margins .pricing-wrapper > li,
.has-margins .exclusive .pricing-wrapper > li {
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}
:nth-of-type(1) > .pricing-wrapper > li::before {
display: none;
}
.has-margins .pricing-wrapper > li {
border-radius: 4px 4px 6px 6px;
}
.has-margins .pricing-wrapper > li::before {
display: none;
}
}
@media only screen and (min-width: 1500px) {
.full-width .pricing-wrapper > li {
padding: 2.5em 0;
}
}
.no-js .pricing-wrapper .is-hidden {
position: relative;
-webkit-transform: rotateY(0);
-moz-transform: rotateY(0);
-ms-transform: rotateY(0);
-o-transform: rotateY(0);
transform: rotateY(0);
margin-top: 1em;
}
@media only screen and (min-width: 768px) {
.exclusive .pricing-wrapper > li::before {
display: none;
}
.exclusive + li .pricing-wrapper > li::before {
display: none;
}
}
.pricing-header h2 {
padding: 0.9em 0.9em 0.6em;
font-weight: 400;
margin-bottom: 30px;
margin-top: 10px;
text-transform: uppercase;
text-align: center;
}
.pricing-header {
height: auto;
padding: 1.9em 0 1.6em;
pointer-events: auto;
text-align: center;
color: #173d50;
background-color: transparent;
}
.exclusive .pricing-header {
color: #a12597;
background-color: transparent;
}
.pricing-header h2 {
font-size: 2.8rem;
letter-spacing: 2px;
}
.currency,
.value {
font-size: 3rem;
font-weight: 300;
}
.duration {
font-weight: 700;
font-size: 1.3rem;
color: #8dc8e4;
text-transform: uppercase;
}
.subtitle {
font-weight: 700;
font-size: 2rem !important;
color: #173d50;
}
.exclusive .duration {
color: #f3b6ab;
}
.duration::before {
content: '/';
margin-right: 2px;
}
.value {
font-size: 7rem;
font-weight: 300;
}
.currency,
.duration {
color: #a12597;
}
.exclusive .currency,
.exclusive .duration {
color: #2d3e50;
}
.currency {
display: inline-block;
margin-top: 10px;
vertical-align: top;
font-size: 2rem;
font-weight: 700;
}
.duration {
font-size: 1.4rem;
}
.pricing-body {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.is-switched .pricing-body {
overflow: hidden;
}
.pricing-body {
overflow-x: visible;
}
.pricing-features {
width: 600px;
}
.pricing-features:after {
content: "";
display: table;
clear: both;
}
.pricing-features li {
width: 100px;
float: left;
padding: 1.6em 1em;
font-size: 17px;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pricing-features em {
display: block;
margin-bottom: 5px;
font-weight: 600;
}
.pricing-features>li>p {
display: block;
font-weight: 600;
font-size: 17px;
color: #a12597;
}
.pricing-features {
width: auto;
}
.pricing-features li {
float: none;
width: auto;
padding: 1em;
}
.exclusive .pricing-features li {
margin: 0 3px;
}
.pricing-features em {
display: inline-block;
font-size: 18px;
margin-bottom: 0;
}
.has-margins .exclusive .pricing-features li {
margin: 0;
}
.pricing-footer {
position: absolute;
z-index: 1;
top: 0;
left: 0;
height: 80px;
width: 100%;
}
.pricing-footer {
position: relative;
height: auto;
padding: 1.8em 0;
text-align: center;
}
.pricing-footer::after {
display: none;
}
.has-margins .pricing-footer {
padding-bottom: 0;
}
.select {
position: relative;
z-index: 1;
display: block;
height: 100%;
overflow: hidden;
text-indent: 100%;
white-space: nowrap;
color: transparent;
}
.select {
position: static;
display: inline-block;
height: auto;
padding: 1.3em 2em;
color: #a12597;
border-radius: 8px;
border: 2px solid #a12597;
font-size: 1.6rem;
text-indent: 0;
text-transform: uppercase;
letter-spacing: 2px;
transition: all .6s;
margin-bottom: 20px;
}
.no-touch .select:hover {
background-color: #a12597;
color: #ffffff;
}
.exclusive .select {
background-color: #a12597;
color: #ffffff;
}
.no-touch .exclusive .select:hover {
background-color: #fff;
color: #a12597;
cursor: pointer;
}
.secondary-theme .exclusive .select {
background-color: #a12597;
}
.no-touch .secondary-theme .exclusive .select:hover {
background-color: #112e3c;
cursor: pointer;
}
.has-margins .select {
display: block;
padding: 1.7em 0;
border-radius: 0 0 4px 4px;
}
|
b2168e2c343986041e8476b9cf280a06
|
{
"intermediate": 0.3414604961872101,
"beginner": 0.3411766588687897,
"expert": 0.317362904548645
}
|
48,084
|
the data-types on the different li pricing plans describe the two types of options, on the school option, i have added a new 2 year plan but it is interfering with the prep view. The prep li are four with the fourth as a transparent(is-hidden) li for the placeholder of the extra school li. I want the prep view to strictly show 3 li and add the 4 only when li with data type school are visible four the fourth 2 year plan and also the 4 plans should be centered on the screen. This is a design css issue i need fixed: HTML SNIPPET:<div class="pricing-container">
<div class="pricing-switcher">
<p class="fieldset">
<input type="radio" name="duration-1" value="prep" id="prep-1" checked>
<label for="prep-1">Prep Courses</label>
<input type="radio" name="duration-1" value="school" id="school-1">
<label for="school-1">Nursing School</label>
<span class="switch"></span>
</p>
</div>
<ul class="pricing-list bounce-invert">
<li>
<ul class="pricing-wrapper">
<li data-type="prep" class="is-visible">
<div class="header pricing-header">
<h2>Monthly</h2>
<div class="price">
<span class="currency">$</span>
<span class="value">59</span>
<span class="duration">month</span>
</div>
<br><br>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>ALL</em> Courses</li>
<li><em>30</em> Days of access</li>
<li><em>24/7</em> Dedicated Support</li>
<li> Performance tracking</li>
<li> Questions and well-detailed explanation</li>
<li> Detailed performnce analysis available <br> upon completion</li>
</ul>
</div>
<div class="footer pricing-footer">
<button class="select" onclick="submitForm('PREP COURSES MONTHLY', 59)">Get Started Now</button>
</div>
</li>
<!-- <li data-type="school" class="is-hidden" style="height: 700px;">
<div class="header pricing-header">
<div class="price">
</div>
</div>
<div class="pricing-body" style="padding-top: 25px;">
<ul class="pricing-features">
<li style="font-size: 3.5rem; font-weight: 600; color: #4e1249;"> Thank You</li>
<li style="font-size: 2.9rem; font-weight: 700; color: #6c1865;"> For</li>
<li style="font-size: 2.9rem; font-weight: 800; color: #8f2086;"> Your</li>
<li style="font-size: 3.5rem; font-weight: 900; color: #a12597;"> Patience.</li>
</ul>
</div>
<div class="footer pricing-footer">
</div>
</li> -->
<li data-type="school" class="is-hidden">
<div class="header pricing-header">
<h2>Monthly</h2>
<div class="price">
<span class="currency">$</span>
<span class="value">30</span>
<span class="duration">month</span>
</div>
<br><br>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>ALL</em> Topics</li>
<li><em>30</em> Days of access</li>
<li><em>24/7</em> Dedicated Support</li>
<li> Performance tracking</li>
<li> Questions and well-detailed explanation</li>
<li> Detailed performance analysis available <br> upon completion</li>
</ul>
</div>
<div class="footer pricing-footer">
<button class="select" onclick="submitForm('NURSING SCHOOL MONTHLY', 30)">Get Started Now</button>
</div>
</li>
</ul>
</li>
<li class="exclusive">
<ul class="pricing-wrapper">
<li data-type="prep" class="is-visible">
<div class="header pricing-header">
<h2>3 Months</h2>
<div class="price">
<span class="currency">$</span>
<span class="value">50</span>
<span class="duration">month</span>
</div>
<span class="subtitle"> TOTAL: $150</span>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>All</em> Courses</li>
<li><em>6</em> Months of access</li>
<li><em>24/7</em> Dedicated Support</li>
<li> Performance tracking</li>
<li> Questions and well-detailed explanation</li>
<li> Detailed performance analysis available <br> upon completion</li>
</ul>
</div>
<div class="footer pricing-footer">
<button class="select" onclick="submitForm('PREP COURSES 3 MONTHS', 150)">Get Started Now</button>
</div>
</li>
<!-- <li data-type="school" class="is-hidden" style="height: 700px;">
<div class="header pricing-header" style="transform: rotate(-90deg); height: 100%; width: 700px; margin-left: 30%;">
<div class="price">
<span class="value">COMING</span>
</div>
<span style="font-size: 3.5rem; color: #6c1865; font-weight: 600;">BACK SOON</span>
</div>
</li> -->
<li data-type="school" class="is-hidden">
<div class="header pricing-header">
<h2>6 Months</h2>
<div class="price">
<span class="currency">$</span>
<span class="value">23</span>
<span class="duration">month</span>
</div>
<span class="subtitle"> TOTAL: $138</span>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>All</em> Topics</li>
<li><em>6</em> Months of access</li>
<li><em>24/7</em> Dedicated Support</li>
<li> Performance tracking</li>
<li> Questions and well-detailed explanation</li>
<li> Detailed performance analysis available <br> upon completion</li>
</ul>
</div>
<div class="footer pricing-footer">
<button class="select" onclick="submitForm('NURSING SCHOOL 6 MONTHS', 138)">Get Started Now</button>
</div>
</li>
</ul>
</li>
<li>
<ul class="pricing-wrapper">
<li data-type="prep" class="is-visible">
<div class="header pricing-header">
<h2>6 Months</h2>
<div class="price">
<span class="currency">$</span>
<span class="value">40</span>
<span class="duration">month</span>
</div>
<span class="subtitle"> TOTAL: $240</span>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>ALL</em> Courses</li>
<li><em>1</em> Year of access</li>
<li><em>24/7</em> Dedicated Support</li>
<li> Performance tracking</li>
<li> Questions and well-detailed explanation</li>
<li> Detailed performnce analysis available <br> upon completion</li>
</ul>
</div>
<div class="footer pricing-footer">
<button class="select" onclick="submitForm('PREP COURSES 6 MONTHS', 240)">Get Started Now</button>
</div>
</li>
<!-- <li data-type="school" class="is-hidden" style="height: 700px;">
<div class="header pricing-header">
<div class="price">
</div>
</div>
<div class="pricing-body" style="padding-top: 25px;">
<ul class="pricing-features">
<li style="font-size: 2.2rem; font-weight: 500; color: #280926;"> A</li>
<li style="font-size: 2.4rem; font-weight: 600; color: #4e1249;"> Major</li>
<li style="font-size: 2.8rem; font-weight: 700; color: #6c1865;"> Update</li>
<li style="font-size: 3.2rem; font-weight: 800; color: #8f2086;"> Launching</li>
<li style="font-size: 3.5rem; font-weight: 900; color: #a12597;"> SOON !!</li>
</ul>
</div>
<div class="footer pricing-footer">
</div>
</li> -->
<li data-type="school" class="is-hidden">
<div class="header pricing-header">
<h2>One Year</h2>
<div class="price">
<span class="currency">$</span>
<span class="value">18</span>
<span class="duration">month</span>
</div>
<span class="subtitle"> TOTAL: $216</span>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>ALL</em> Topics</li>
<li><em>1</em> Year of access</li>
<li><em>24/7</em> Dedicated Support</li>
<li> Performance tracking</li>
<li> Questions and well-detailed explanation</li>
<li> Detailed performance analysis available <br> upon completion</li>
</ul>
</div>
<div class="footer pricing-footer">
<button class="select" onclick="submitForm('NURSING SCHOOL 1 YEAR', 216)">Get Started Now</button>
</div>
</li>
</ul>
</li>
<li>
<ul class="pricing-wrapper">
<!--<li data-type="prep" class="is-visible">
<div class="header pricing-header">
<h2>2024 PROMOTION</h2>
<div class="price">
<span class="currency"></span>
<span class="value txlg">FULL ACCESS</span></br>
<span class="duration" style="font-size: 1.6em;">second</span>
</div>
<span style="font-size: 1.8em; color: #a12597; font-weight: 600;"> SUBSCRIPTION'S DURATION</span>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>ALL</em> Prep Courses</li>
<li><em>ALL</em> Nursing School Topics</li>
<li style="margin-bottom: 50px;">
<p>By subscribing to BOTH the Prep Courses<br> and Nursing School learning platform,<br> you gain a comprehensive advantage,<br> ensuring access to top-notch resources <br> for the duration of the 2nd<br> Subscription. For example. :<br><span style="color: #2d3e50;"> A 6 Months Prep Courses subscription <br> and a second 1 Year Nursing School <br> subscription will grant you FULL ACCESS <br> to BOTH for 1 Year!</span></p>
</li>
</ul>
</div>
</li>-->
<li data-type="school" class="is-hidden">
<div class="header pricing-header">
<h2>Two Years</h2>
<div class="price">
<span class="currency">$</span>
<span class="value">12</span>
<span class="duration">month</span>
</div>
<span class="subtitle"> TOTAL: $288</span>
</div>
<div class="pricing-body">
<ul class="pricing-features">
<li><em>ALL</em> Topics</li>
<li><em>2</em> Years of access</li>
<li><em>24/7</em> Dedicated Support</li>
<li> Performance tracking</li>
<li> Questions and well-detailed explanation</li>
<li> Detailed performance analysis available <br> upon completion</li>
</ul>
</div>
<div class="footer pricing-footer">
<button class="select" onclick="submitForm('NURSING SCHOOL 2 YEARS', 288)">Get Started Now</button>
</div>
</li>
</ul>
</li>
</ul>
</div> CSS: .price {
margin-bottom: 8px;
}
.txlg {
font-size: 3rem;
font-weight: 600;
}
.pricing-title {
font-size: 27px;
font-weight: bold;
padding-top: 150px;
padding-bottom: 20px;
color: #fff;
}
.pricing-description {
font-size: 20px;
color: #fff;
}
.pricing-description2 {
font-size: 20px;
padding-top: 20px;
padding-bottom: 35px;
font-weight: bold;
color: #fff;
}
.pricing-container {
width: 90%;
max-width: 100%;
margin: 5px auto;
}
.pricing-container.full-width {
width: 100%;
max-width: none;
}
.pricing-switcher {
text-align: center;
}
.pricing-switcher .fieldset {
display: inline-block;
position: relative;
padding: 2px;
border-radius: 15px 15px 0 0;
border: 2px solid #fff;
width: fit-content;
}
.pricing-switcher input[type="radio"] {
position: absolute;
opacity: 0;
}
.pricing-switcher label {
position: relative;
z-index: 1;
display: inline-block;
width: 240px;
height: 70px;
line-height: 70px;
cursor: pointer;
font-size: 2rem;
font-weight: bold;
color: #ffffff;
}
.pricing-switcher .switch {
position: absolute;
top: 2px;
left: 2px;
right: 2px;
height: 70px;
width: 240px;
background-image: linear-gradient(-225deg, #A445B2 0%, #D41872 52%, #FF0066 100%);
border-radius: 15px 15px 0 0;
-webkit-transition: -webkit-transform 0.5s;
-moz-transition: -moz-transform 0.5s;
transition: transform 0.5s;
}
.pricing-switcher input[type="radio"]:checked + label + .switch,
.pricing-switcher input[type="radio"]:checked + label:nth-of-type(n) + .switch {
-webkit-transform: translateX(240px);
-moz-transform: translateX(240px);
-ms-transform: translateX(240px);
-o-transform: translateX(240px);
transform: translateX(240px);
}
@media only screen and (max-width: 996px) {
.pricing-switcher label {
width: 120px;
font-size: 16px;
font-weight: bold;
}
.pricing-switcher .switch {
width: 120px;
}
.pricing-switcher input[type="radio"]:checked+label+.switch,
.pricing-switcher input[type="radio"]:checked+label:nth-of-type(n)+.switch {
-webkit-transform: translateX(120px);
-moz-transform: translateX(120px);
-ms-transform: translateX(120px);
-o-transform: translateX(120px);
transform: translateX(120px);
}
}
.no-js .pricing-switcher {
display: none;
}
.pricing-list {
margin: 2em 0 0;
}
.pricing-list > li {
position: relative;
margin-bottom: 1em;
z-index: 2;
}
@media only screen and (min-width: 768px) {
.pricing-list {
margin: 2em;
display: flex;
justify-content: center;
}
.pricing-list:after {
content: "";
display: table;
clear: both;
}
.pricing-list > li {
width: 23%;
float: left;
padding-left: 5px;
padding-right: 5px;
}
.has-margins .pricing-list > li {
width: 48%;
float: left;
margin-right: 1.5%;
}
.has-margins .pricing-list > li:last-of-type {
margin-right: 0;
}
}
.pricing-wrapper {
position: relative;
}
.touch .pricing-wrapper {
-webkit-perspective: 2000px;
-moz-perspective: 2000px;
perspective: 2000px;
}
.pricing-wrapper.is-switched .is-visible {
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
-ms-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
transform: rotateY(180deg);
-webkit-animation: rotate 0.5s;
-moz-animation: rotate 0.5s;
animation: rotate 0.5s;
}
.pricing-wrapper.is-switched .is-hidden {
-webkit-transform: rotateY(0);
-moz-transform: rotateY(0);
-ms-transform: rotateY(0);
-o-transform: rotateY(0);
transform: rotateY(0);
-webkit-animation: rotate-inverse 0.5s;
-moz-animation: rotate-inverse 0.5s;
animation: rotate-inverse 0.5s;
opacity: 0;
}
.pricing-wrapper.is-switched .is-selected {
opacity: 1;
}
.pricing-wrapper.is-switched.reverse-animation .is-visible {
-webkit-transform: rotateY(-180deg);
-moz-transform: rotateY(-180deg);
-ms-transform: rotateY(-180deg);
-o-transform: rotateY(-180deg);
transform: rotateY(-180deg);
-webkit-animation: rotate-back 0.5s;
-moz-animation: rotate-back 0.5s;
animation: rotate-back 0.5s;
}
.pricing-wrapper.is-switched.reverse-animation .is-hidden {
-webkit-transform: rotateY(0);
-moz-transform: rotateY(0);
-ms-transform: rotateY(0);
-o-transform: rotateY(0);
transform: rotateY(0);
-webkit-animation: rotate-inverse-back 0.5s;
-moz-animation: rotate-inverse-back 0.5s;
animation: rotate-inverse-back 0.5s;
opacity: 0;
}
.pricing-wrapper.is-switched.reverse-animation .is-selected {
opacity: 1;
}
.pricing-wrapper > li {
background-color: #ffffff;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
outline: 1px solid transparent;
}
.pricing-wrapper > li::after {
content: '';
position: absolute;
top: 0;
right: 0;
height: 100%;
width: 50px;
pointer-events: none;
background: -webkit-linear-gradient( right , #ffffff, rgba(255, 255, 255, 0));
background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}
.pricing-wrapper > li.is-ended::after {
display: none;
}
.pricing-wrapper .is-visible {
position: relative;
z-index: 5;
border-radius: 24px;
}
.pricing-wrapper .is-hidden {
position: absolute;
border-radius: 24px;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 1;
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
-ms-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
transform: rotateY(180deg);
}
.pricing-wrapper .is-selected {
z-index: 3 !important;
}
@media only screen and (min-width: 768px) {
.pricing-wrapper > li::before {
content: '';
position: absolute;
z-index: 6;
left: -1px;
top: 50%;
bottom: auto;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
height: 50%;
width: 1px;
background-color: #b1d6e8;
}
.pricing-wrapper > li::after {
display: none;
}
.exclusive .pricing-wrapper > li {
box-shadow: inset 0 0 0 3px #ff2e97;
}
.has-margins .pricing-wrapper > li,
.has-margins .exclusive .pricing-wrapper > li {
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}
:nth-of-type(1) > .pricing-wrapper > li::before {
display: none;
}
.has-margins .pricing-wrapper > li {
border-radius: 4px 4px 6px 6px;
}
.has-margins .pricing-wrapper > li::before {
display: none;
}
}
@media only screen and (min-width: 1500px) {
.full-width .pricing-wrapper > li {
padding: 2.5em 0;
}
}
.no-js .pricing-wrapper .is-hidden {
position: relative;
-webkit-transform: rotateY(0);
-moz-transform: rotateY(0);
-ms-transform: rotateY(0);
-o-transform: rotateY(0);
transform: rotateY(0);
margin-top: 1em;
}
@media only screen and (min-width: 768px) {
.exclusive .pricing-wrapper > li::before {
display: none;
}
.exclusive + li .pricing-wrapper > li::before {
display: none;
}
}
.pricing-header h2 {
padding: 0.9em 0.9em 0.6em;
font-weight: 400;
margin-bottom: 30px;
margin-top: 10px;
text-transform: uppercase;
text-align: center;
}
.pricing-header {
height: auto;
padding: 1.9em 0 1.6em;
pointer-events: auto;
text-align: center;
color: #173d50;
background-color: transparent;
}
.exclusive .pricing-header {
color: #a12597;
background-color: transparent;
}
.pricing-header h2 {
font-size: 2.8rem;
letter-spacing: 2px;
}
.currency,
.value {
font-size: 3rem;
font-weight: 300;
}
.duration {
font-weight: 700;
font-size: 1.3rem;
color: #8dc8e4;
text-transform: uppercase;
}
.subtitle {
font-weight: 700;
font-size: 2rem !important;
color: #173d50;
}
.exclusive .duration {
color: #f3b6ab;
}
.duration::before {
content: '/';
margin-right: 2px;
}
.value {
font-size: 7rem;
font-weight: 300;
}
.currency,
.duration {
color: #a12597;
}
.exclusive .currency,
.exclusive .duration {
color: #2d3e50;
}
.currency {
display: inline-block;
margin-top: 10px;
vertical-align: top;
font-size: 2rem;
font-weight: 700;
}
.duration {
font-size: 1.4rem;
}
.pricing-body {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.is-switched .pricing-body {
overflow: hidden;
}
.pricing-body {
overflow-x: visible;
}
.pricing-features {
width: 600px;
}
.pricing-features:after {
content: "";
display: table;
clear: both;
}
.pricing-features li {
width: 100px;
float: left;
padding: 1.6em 1em;
font-size: 17px;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pricing-features em {
display: block;
margin-bottom: 5px;
font-weight: 600;
}
.pricing-features>li>p {
display: block;
font-weight: 600;
font-size: 17px;
color: #a12597;
}
.pricing-features {
width: auto;
}
.pricing-features li {
float: none;
width: auto;
padding: 1em;
}
.exclusive .pricing-features li {
margin: 0 3px;
}
.pricing-features em {
display: inline-block;
font-size: 18px;
margin-bottom: 0;
}
.has-margins .exclusive .pricing-features li {
margin: 0;
}
.pricing-footer {
position: absolute;
z-index: 1;
top: 0;
left: 0;
height: 80px;
width: 100%;
}
.pricing-footer {
position: relative;
height: auto;
padding: 1.8em 0;
text-align: center;
}
.pricing-footer::after {
display: none;
}
.has-margins .pricing-footer {
padding-bottom: 0;
}
.select {
position: relative;
z-index: 1;
display: block;
height: 100%;
overflow: hidden;
text-indent: 100%;
white-space: nowrap;
color: transparent;
}
.select {
position: static;
display: inline-block;
height: auto;
padding: 1.3em 2em;
color: #a12597;
border-radius: 8px;
border: 2px solid #a12597;
font-size: 1.6rem;
text-indent: 0;
text-transform: uppercase;
letter-spacing: 2px;
transition: all .6s;
margin-bottom: 20px;
}
.no-touch .select:hover {
background-color: #a12597;
color: #ffffff;
}
.exclusive .select {
background-color: #a12597;
color: #ffffff;
}
.no-touch .exclusive .select:hover {
background-color: #fff;
color: #a12597;
cursor: pointer;
}
.secondary-theme .exclusive .select {
background-color: #a12597;
}
.no-touch .secondary-theme .exclusive .select:hover {
background-color: #112e3c;
cursor: pointer;
}
.has-margins .select {
display: block;
padding: 1.7em 0;
border-radius: 0 0 4px 4px;
}
|
a983c41e95ecea87ebcebf446b03f8e3
|
{
"intermediate": 0.30427753925323486,
"beginner": 0.4031028747558594,
"expert": 0.29261961579322815
}
|
48,085
|
Write a winmerge filter that find the lines that contain a specific word
|
5601c8b117dfdd2fa9803c5552a336e2
|
{
"intermediate": 0.2435365915298462,
"beginner": 0.09693761169910431,
"expert": 0.6595258116722107
}
|
48,086
|
Please reduce the smell and refine the DMAC_ARBITER.sv to make it cleaner and more elegant, then output the entire code of DMAC_ARBITER.sv again.
<<StartOfFile:DMAC/SIMv2/DMAC_ARBITER.sv>>
module DMAC_ARBITER
#(
N_MASTER = 4,
DATA_SIZE = 32
)
(
input wire clk,
input wire rst_n, // _n means active low
// configuration registers
input wire src_valid_i[N_MASTER],
output reg src_ready_o[N_MASTER],
input wire [DATA_SIZE-1:0] src_data_i[N_MASTER],
output reg dst_valid_o,
input wire dst_ready_i,
output reg [DATA_SIZE-1:0] dst_data_o
);
localparam N_MASTER_LOG2 = $clog2(N_MASTER);
reg dst_valid, dst_valid_n;
reg [DATA_SIZE-1:0] dst_data, dst_data_n;
reg [N_MASTER_LOG2-1:0] last_mst, last_mst_n;
always_ff @(posedge clk) begin
if (~rst_n) begin
dst_valid <= 1'b0;
dst_data <= 'd0;
last_mst <= 'd0;
end
else begin
dst_valid <= dst_valid_n;
dst_data <= dst_data_n;
last_mst <= last_mst_n;
end
end
// round-robin arbiter
always_comb begin
dst_valid_n = dst_valid;
dst_data_n = dst_data;
last_mst_n = last_mst;
for (int i=0; i<N_MASTER; i++) begin
src_ready_o[i] = 1'b0;
end
if (!dst_valid | dst_ready_i) begin
if (last_mst == 'd0) begin
if (src_valid_i[1]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[1];
src_ready_o[1] = 1'b1;
last_mst_n = 'd1;
end
else if (src_valid_i[2]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[2];
src_ready_o[2] = 1'b1;
last_mst_n = 'd2;
end
else if (src_valid_i[3]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[3];
src_ready_o[3] = 1'b1;
last_mst_n = 'd3;
end
else if (src_valid_i[0]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[0];
src_ready_o[0] = 1'b1;
last_mst_n = 'd0;
end
else begin
dst_valid_n = 1'b0;
end
end
else if (last_mst == 'd1) begin
if (src_valid_i[2]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[2];
src_ready_o[2] = 1'b1;
last_mst_n = 'd2;
end
else if (src_valid_i[3]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[3];
src_ready_o[3] = 1'b1;
last_mst_n = 'd3;
end
else if (src_valid_i[0]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[0];
src_ready_o[0] = 1'b1;
last_mst_n = 'd0;
end
else if (src_valid_i[1]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[1];
src_ready_o[1] = 1'b1;
last_mst_n = 'd1;
end
else begin
dst_valid_n = 1'b0;
end
end
else if (last_mst == 'd2) begin
if (src_valid_i[3]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[3];
src_ready_o[3] = 1'b1;
last_mst_n = 'd3;
end
else if (src_valid_i[0]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[0];
src_ready_o[0] = 1'b1;
last_mst_n = 'd0;
end
else if (src_valid_i[1]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[1];
src_ready_o[1] = 1'b1;
last_mst_n = 'd1;
end
else if (src_valid_i[2]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[2];
src_ready_o[2] = 1'b1;
last_mst_n = 'd2;
end
else begin
dst_valid_n = 1'b0;
end
end
else if (last_mst == 'd3) begin
if (src_valid_i[0]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[0];
src_ready_o[0] = 1'b1;
last_mst_n = 'd0;
end
else if (src_valid_i[1]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[1];
src_ready_o[1] = 1'b1;
last_mst_n = 'd1;
end
else if (src_valid_i[2]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[2];
src_ready_o[2] = 1'b1;
last_mst_n = 'd2;
end
else if (src_valid_i[3]) begin
dst_valid_n = 1'b1;
dst_data_n = src_data_i[3];
src_ready_o[3] = 1'b1;
last_mst_n = 'd3;
end
else begin
dst_valid_n = 1'b0;
end
end
end
end
assign dst_valid_o = dst_valid;
assign dst_data_o = dst_data;
endmodule<<EndOfFile:DMAC/SIMv2/DMAC_ARBITER.sv>>
<<StartOfFile:DMAC/RTLv2/DMAC_CFG.sv>>
module DMAC_CFG
(
input wire clk,
input wire rst_n, // _n means active low
// AMBA APB interface
input wire psel_i,
input wire penable_i,
input wire [11:0] paddr_i,
input wire pwrite_i,
input wire [31:0] pwdata_i,
output reg pready_o,
output reg [31:0] prdata_o,
// configuration registers for CH0
output reg [31:0] ch0_src_addr_o,
output reg [31:0] ch0_dst_addr_o,
output reg [15:0] ch0_byte_len_o,
output wire ch0_start_o,
input wire ch0_done_i,
// configuration registers for CH1
output reg [31:0] ch1_src_addr_o,
output reg [31:0] ch1_dst_addr_o,
output reg [15:0] ch1_byte_len_o,
output wire ch1_start_o,
input wire ch1_done_i,
// configuration registers for CH2
output reg [31:0] ch2_src_addr_o,
output reg [31:0] ch2_dst_addr_o,
output reg [15:0] ch2_byte_len_o,
output wire ch2_start_o,
input wire ch2_done_i,
// configuration registers for CH3
output reg [31:0] ch3_src_addr_o,
output reg [31:0] ch3_dst_addr_o,
output reg [15:0] ch3_byte_len_o,
output wire ch3_start_o,
input wire ch3_done_i
);
// Configuration register for CH0 to read/write
reg [31:0] ch0_src_addr;
reg [31:0] ch0_dst_addr;
reg [15:0] ch0_byte_len;
// Configuration register for CH1 to read/write
reg [31:0] ch1_src_addr;
reg [31:0] ch1_dst_addr;
reg [15:0] ch1_byte_len;
// Configuration register for CH2 to read/write
reg [31:0] ch2_src_addr;
reg [31:0] ch2_dst_addr;
reg [15:0] ch2_byte_len;
// Configuration register for CH3 to read/write
reg [31:0] ch3_src_addr;
reg [31:0] ch3_dst_addr;
reg [15:0] ch3_byte_len;
//----------------------------------------------------------
// Write
//----------------------------------------------------------
// an APB write occurs when PSEL & PENABLE & PWRITE
// clk : __--__--__--__--__--__--__--__--__--__--
// psel : ___--------_____________________________
// penable : _______----_____________________________
// pwrite : ___--------_____________________________
// wren : _______----_____________________________
//
// DMA start command must be asserted when APB writes 1 to the DMA_CMD
// register
// clk : __--__--__--__--__--__--__--__--__--__--
// psel : ___--------_____________________________
// penable : _______----_____________________________
// pwrite : ___--------_____________________________
// paddr : |DMA_CMD|
// pwdata : | 1 |
// start : _______----_____________________________
wire wren = penable_i & psel_i & pwrite_i;
wire start = wren & pwdata_i[0];
always @(posedge clk) begin
// Fill
// your
// code
// here
if (!rst_n) begin
ch0_src_addr <= 'b0;
ch0_dst_addr <= 'b0;
ch0_byte_len <= 'b0;
// ch0_start <= 'b0;
ch1_src_addr <= 'b0;
ch1_dst_addr <= 'b0;
ch1_byte_len <= 'b0;
// ch1_start <= 'b0;
ch2_src_addr <= 'b0;
ch2_dst_addr <= 'b0;
ch2_byte_len <= 'b0;
// ch2_start <= 'b0;
ch3_src_addr <= 'b0;
ch3_dst_addr <= 'b0;
ch3_byte_len <= 'b0;
// ch3_start <= 'b0;
end
else if (wren) begin
if (paddr_i == 'h100) begin
ch0_src_addr <= pwdata_i[31:0];
end
else if (paddr_i == 'h104) begin
ch0_dst_addr <= pwdata_i[31:0];
end
else if (paddr_i == 'h108) begin
ch0_byte_len <= pwdata_i[15:0];
end
else if (paddr_i == 'h200) begin
ch1_src_addr <= pwdata_i[31:0];
end
else if (paddr_i == 'h204) begin
ch1_dst_addr <= pwdata_i[31:0];
end
else if (paddr_i == 'h208) begin
ch1_byte_len <= pwdata_i[15:0];
end
else if (paddr_i == 'h300) begin
ch2_src_addr <= pwdata_i[31:0];
end
else if (paddr_i == 'h304) begin
ch2_dst_addr <= pwdata_i[31:0];
end
else if (paddr_i == 'h308) begin
ch2_byte_len <= pwdata_i[15:0];
end
else if (paddr_i == 'h400) begin
ch3_src_addr <= pwdata_i[31:0];
end
else if (paddr_i == 'h404) begin
ch3_dst_addr <= pwdata_i[31:0];
end
else if (paddr_i == 'h408) begin
ch3_byte_len <= pwdata_i[15:0];
end
end
end
// Fill your code here (wren, ch0_start, ch1_start...)
//----------------------------------------------------------
// READ
//----------------------------------------------------------
// an APB read occurs when PSEL & PENABLE & !PWRITE
// To make read data a direct output from register,
// this code shall buffer the muxed read data into a register
// in the SETUP cycle (PSEL & !PENABLE)
// clk : __--__--__--__--__--__--__--__--__--__--
// psel : ___--------_____________________________
// penable : _______----_____________________________
// pwrite : ________________________________________
// reg update : ___----_________________________________
// prdata : |DATA
reg [31:0] rdata;
always @(posedge clk) begin
// Fill
// your
// code
// here
if (!rst_n) begin
rdata <= 'd0;
end
else if (!penable_i & psel_i & !pwrite_i) begin
if (paddr_i == 'h000) begin
rdata <= 32'h0002_0101;
end
else if (paddr_i == 'h100) begin
rdata <= ch0_src_addr;
end
else if (paddr_i == 'h104) begin
rdata <= ch0_dst_addr;
end
else if (paddr_i == 'h108) begin
rdata <= {16'b0, ch0_byte_len};
end
else if (paddr_i == 'h110) begin
rdata <= {31'b0, ch0_done_i};
end
else if (paddr_i == 'h200) begin
rdata <= ch1_src_addr;
end
else if (paddr_i == 'h204) begin
rdata <= ch1_dst_addr;
end
else if (paddr_i == 'h208) begin
rdata <= {16'b0, ch1_byte_len};
end
else if (paddr_i == 'h210) begin
rdata <= {31'b0, ch1_done_i};
end
else if (paddr_i == 'h300) begin
rdata <= ch2_src_addr;
end
else if (paddr_i == 'h304) begin
rdata <= ch2_dst_addr;
end
else if (paddr_i == 'h308) begin
rdata <= {16'b0, ch2_byte_len};
end
else if (paddr_i == 'h310) begin
rdata <= {31'b0, ch2_done_i};
end
else if (paddr_i == 'h400) begin
rdata <= ch3_src_addr;
end
else if (paddr_i == 'h404) begin
rdata <= ch3_dst_addr;
end
else if (paddr_i == 'h408) begin
rdata <= {16'b0, ch3_byte_len};
end
else if (paddr_i == 'h410) begin
rdata <= {31'b0, ch3_done_i};
end
else begin
rdata <= 'd0;
end
end
end
// output assignments
assign pready_o = 1'b1;
assign prdata_o = rdata;
assign ch0_src_addr_o = ch0_src_addr;
assign ch0_dst_addr_o = ch0_dst_addr;
assign ch0_byte_len_o = ch0_byte_len;
assign ch0_start_o = start & (paddr_i=='h10C);
assign ch1_src_addr_o = ch1_src_addr;
assign ch1_dst_addr_o = ch1_dst_addr;
assign ch1_byte_len_o = ch1_byte_len;
assign ch1_start_o = start & (paddr_i=='h20C);
assign ch2_src_addr_o = ch2_src_addr;
assign ch2_dst_addr_o = ch2_dst_addr;
assign ch2_byte_len_o = ch2_byte_len;
assign ch2_start_o = start & (paddr_i=='h30C);
assign ch3_src_addr_o = ch3_src_addr;
assign ch3_dst_addr_o = ch3_dst_addr;
assign ch3_byte_len_o = ch3_byte_len;
assign ch3_start_o = start & (paddr_i=='h40C);
endmodule
<<EndOfFile:DMAC/RTLv2/DMAC_CFG.sv>>
<<StartOfFile:DMAC/RTLv2/DMAC_ENGINE.sv>>
module DMAC_ENGINE
(
input wire clk,
input wire rst_n, // _n means active low
// configuration registers
input wire [31:0] src_addr_i,
input wire [31:0] dst_addr_i,
input wire [15:0] byte_len_i,
input wire start_i,
output wire done_o,
// AMBA AXI interface (AW channel)
output wire [31:0] awaddr_o,
output wire [3:0] awlen_o,
output wire [2:0] awsize_o,
output wire [1:0] awburst_o,
output wire awvalid_o,
input wire awready_i,
// AMBA AXI interface (W channel)
output wire [31:0] wdata_o,
output wire [3:0] wstrb_o,
output wire wlast_o,
output wire wvalid_o,
input wire wready_i,
// AMBA AXI interface (B channel)
input wire [1:0] bresp_i,
input wire bvalid_i,
output wire bready_o,
// AMBA AXI interface (AR channel)
output wire [31:0] araddr_o,
output wire [3:0] arlen_o,
output wire [2:0] arsize_o,
output wire [1:0] arburst_o,
output wire arvalid_o,
input wire arready_i,
// AMBA AXI interface (R channel)
input wire [31:0] rdata_i,
input wire [1:0] rresp_i,
input wire rlast_i,
input wire rvalid_i,
output wire rready_o
);
// mnemonics for state values
localparam S_IDLE = 3'd0,
S_RREQ = 3'd1,
S_RDATA = 3'd2,
S_WREQ = 3'd3,
S_WDATA = 3'd4,
S_WAIT = 3'd5; // new state for project 1
reg [2:0] state, state_n;
reg [31:0] src_addr, src_addr_n;
reg [31:0] dst_addr, dst_addr_n;
reg [15:0] cnt, cnt_n;
reg [3:0] wcnt, wcnt_n;
reg arvalid,
rready,
awvalid,
wvalid,
wlast,
done;
wire fifo_full,
fifo_empty;
reg fifo_wren,
fifo_rden;
wire [31:0] fifo_rdata;
reg [15:0] outstanding_wr_cnt;
reg [15:0] outstanding_wr_cnt_n;
// it's desirable to code registers in a simple way
always_ff @(posedge clk)
if (!rst_n) begin
state <= S_IDLE;
src_addr <= 32'd0;
dst_addr <= 32'd0;
cnt <= 16'd0;
wcnt <= 4'd0;
outstanding_wr_cnt <= 16'd0;
end
else begin
state <= state_n;
src_addr <= src_addr_n;
dst_addr <= dst_addr_n;
cnt <= cnt_n;
wcnt <= wcnt_n;
outstanding_wr_cnt <= outstanding_wr_cnt_n;
end
// this block programs output values and next register values
// based on states.
always_comb begin
state_n = state;
src_addr_n = src_addr;
dst_addr_n = dst_addr;
cnt_n = cnt;
wcnt_n = wcnt;
arvalid = 1'b0;
rready = 1'b0;
awvalid = 1'b0;
wvalid = 1'b0;
wlast = 1'b0;
done = 1'b0;
fifo_wren = 1'b0;
fifo_rden = 1'b0;
case (state)
S_IDLE: begin
done = 1'b1;
if (start_i & byte_len_i!=16'd0) begin
src_addr_n = src_addr_i;
dst_addr_n = dst_addr_i;
cnt_n = byte_len_i;
state_n = S_RREQ;
end
end
S_RREQ: begin
arvalid = 1'b1;
if (arready_i) begin
state_n = S_RDATA;
src_addr_n = src_addr + 'd64;
end
end
S_RDATA: begin
rready = 1'b1;
if (rvalid_i) begin
fifo_wren = 1'b1;
if (rlast_i) begin
state_n = S_WREQ;
end
end
end
S_WREQ: begin
awvalid = 1'b1;
if (awready_i) begin
state_n = S_WDATA;
dst_addr_n = dst_addr + 'd64;
wcnt_n = awlen_o;
if (cnt>='d64) begin
cnt_n = cnt[15:0] - 32'h4 - (arlen_o<<2);
end
else begin
cnt_n = 'd0;
end
end
end
S_WDATA: begin
wvalid = 1'b1;
wlast = (wcnt==4'd0);
if (wready_i) begin
fifo_rden = 1'b1;
if (wlast) begin
if (cnt==16'd0) begin
state_n = S_IDLE;
end
else begin
state_n = S_RREQ;
end
end
else begin
wcnt_n = wcnt - 4'd1;
end
end
end
// FIXME: implement S_WAIT state for project 1
S_WAIT: begin
if (outstanding_wr_cnt == 'd0) begin
state_n = S_IDLE;
end
end
endcase
end
// FIXME: implement outstanding_wr_cnt
wire outstanding_wr_pp = awready_i & awvalid_o;
wire outstanding_wr_mm = bready_o & bvalid_i & (bresp_i == 'd0);
always_comb begin
outstanding_wr_cnt_n = outstanding_wr_cnt;
if (outstanding_wr_pp & !outstanding_wr_mm) begin
outstanding_wr_cnt_n = outstanding_wr_cnt + 'd1;
end
if (!outstanding_wr_pp & outstanding_wr_mm) begin
outstanding_wr_cnt_n = outstanding_wr_cnt - 'd1;
end
end
DMAC_FIFO u_fifo
(
.clk (clk),
.rst_n (rst_n),
.full_o (fifo_full),
.wren_i (fifo_wren),
.wdata_i (rdata_i),
.empty_o (fifo_empty),
.rden_i (fifo_rden),
.rdata_o (fifo_rdata)
);
// Output assigments
assign done_o = done;
assign awaddr_o = dst_addr;
assign awlen_o = (cnt >= 'd64) ? 4'hF: cnt[5:2]-4'h1;
assign awsize_o = 3'b010; // 4 bytes per transfer
assign awburst_o = 2'b01; // incremental
assign awvalid_o = awvalid;
assign wdata_o = fifo_rdata;
assign wstrb_o = 4'b1111; // all bytes within 4 byte are valid
assign wlast_o = wlast;
assign wvalid_o = wvalid;
assign bready_o = 1'b1;
assign arvalid_o = arvalid;
assign araddr_o = src_addr;
assign arlen_o = (cnt >= 'd64) ? 4'hF: cnt[5:2]-4'h1;
assign arsize_o = 3'b010; // 4 bytes per transfer
assign arburst_o = 2'b01; // incremental
assign arvalid_o = arvalid;
assign rready_o = rready & !fifo_full;
endmodule
<<EndOfFile:DMAC/RTLv2/DMAC_ENGINE.sv>>
<<StartOfFile:DMAC/RTLv2/DMAC_FIFO.sv>>
module DMAC_FIFO #(
parameter DEPTH_LG2 = 4,
parameter DATA_WIDTH = 32
)
(
input wire clk,
input wire rst_n,
output wire full_o,
input wire wren_i,
input wire [DATA_WIDTH-1:0] wdata_i,
output wire empty_o,
input wire rden_i,
output wire [DATA_WIDTH-1:0] rdata_o
);
localparam FIFO_DEPTH = (1<<DEPTH_LG2);
reg [DATA_WIDTH-1:0] mem[FIFO_DEPTH];
reg full, full_n,
empty, empty_n;
reg [DEPTH_LG2:0] wrptr, wrptr_n,
rdptr, rdptr_n;
always_ff @(posedge clk)
if (!rst_n) begin
for (int i=0; i<FIFO_DEPTH; i++) begin
mem[i] <= {DATA_WIDTH{1'b0}};
end
end
else begin
if (wren_i) begin
mem[wrptr[DEPTH_LG2-1:0]] <= wdata_i;
end
end
always_ff @(posedge clk)
if (!rst_n) begin
full <= 1'b0;
empty <= 1'b1; // empty after as reset
wrptr <= {(DEPTH_LG2+1){1'b0}};
rdptr <= {(DEPTH_LG2+1){1'b0}};
end
else begin
full <= full_n;
empty <= empty_n;
wrptr <= wrptr_n;
rdptr <= rdptr_n;
end
always_comb begin
wrptr_n = wrptr;
rdptr_n = rdptr;
if (wren_i) begin
wrptr_n = wrptr + 'd1;
end
if (rden_i) begin
rdptr_n = rdptr + 'd1;
end
empty_n = (wrptr_n == rdptr_n);
full_n = (wrptr_n[DEPTH_LG2]!=rdptr_n[DEPTH_LG2])
&(wrptr_n[DEPTH_LG2-1:0]==rdptr_n[DEPTH_LG2-1:0]);
end
// synthesis translate_off
always @(posedge clk) begin
if (full_o & wren_i) begin
\$display("FIFO overflow");
@(posedge clk);
\$finish;
end
end
always @(posedge clk) begin
if (empty_o & rden_i) begin
\$display("FIFO underflow");
@(posedge clk);
\$finish;
end
end
// synthesis translate_on
assign full_o = full;
assign empty_o = empty;
assign rdata_o = mem[rdptr[DEPTH_LG2-1:0]];
endmodule
<<EndOfFile:DMAC/RTLv2/DMAC_FIFO.sv>>
<<StartOfFile:DMAC/RTLv2/DMAC_TOP.sv>>
module DMAC_TOP
(
input wire clk,
input wire rst_n, // _n means active low
// AMBA APB interface
input wire psel_i,
input wire penable_i,
input wire [11:0] paddr_i,
input wire pwrite_i,
input wire [31:0] pwdata_i,
output reg pready_o,
output reg [31:0] prdata_o,
output reg pslverr_o,
// AMBA AXI interface (AW channel)
output wire [3:0] awid_o,
output wire [31:0] awaddr_o,
output wire [3:0] awlen_o,
output wire [2:0] awsize_o,
output wire [1:0] awburst_o,
output wire awvalid_o,
input wire awready_i,
// AMBA AXI interface (AW channel)
output wire [3:0] wid_o,
output wire [31:0] wdata_o,
output wire [3:0] wstrb_o,
output wire wlast_o,
output wire wvalid_o,
input wire wready_i,
// AMBA AXI interface (B channel)
input wire [3:0] bid_i,
input wire [1:0] bresp_i,
input wire bvalid_i,
output wire bready_o,
// AMBA AXI interface (AR channel)
output wire [3:0] arid_o,
output wire [31:0] araddr_o,
output wire [3:0] arlen_o,
output wire [2:0] arsize_o,
output wire [1:0] arburst_o,
output wire arvalid_o,
input wire arready_i,
// AMBA AXI interface (R channel)
input wire [3:0] rid_i,
input wire [31:0] rdata_i,
input wire [1:0] rresp_i,
input wire rlast_i,
input wire rvalid_i,
output wire rready_o
);
localparam N_CH = 4;
wire [31:0] src_addr_vec[N_CH];
wire [31:0] dst_addr_vec[N_CH];
wire [15:0] byte_len_vec[N_CH];
wire start_vec[N_CH];
wire done_vec[N_CH];
wire [3:0] awid_vec[N_CH];
wire [31:0] awaddr_vec[N_CH];
wire [3:0] awlen_vec[N_CH];
wire [2:0] awsize_vec[N_CH];
wire [1:0] awburst_vec[N_CH];
wire awvalid_vec[N_CH];
wire awready_vec[N_CH];
wire [3:0] wid_vec[N_CH];
wire [31:0] wdata_vec[N_CH];
wire [3:0] wstrb_vec[N_CH];
wire wlast_vec[N_CH];
wire wvalid_vec[N_CH];
wire wready_vec[N_CH];
wire bready_vec[N_CH];
wire [3:0] arid_vec[N_CH];
wire [31:0] araddr_vec[N_CH];
wire [3:0] arlen_vec[N_CH];
wire [2:0] arsize_vec[N_CH];
wire [1:0] arburst_vec[N_CH];
wire arvalid_vec[N_CH];
wire arready_vec[N_CH];
wire rready_vec[N_CH];
DMAC_CFG u_cfg(
.clk (clk),
.rst_n (rst_n),
// AMBA APB interface
.psel_i (psel_i),
.penable_i (penable_i),
.paddr_i (paddr_i),
.pwrite_i (pwrite_i),
.pwdata_i (pwdata_i),
.pready_o (pready_o),
.prdata_o (prdata_o),
.ch0_src_addr_o (src_addr_vec[0]),
.ch0_dst_addr_o (dst_addr_vec[0]),
.ch0_byte_len_o (byte_len_vec[0]),
.ch0_start_o (start_vec[0]),
.ch0_done_i (done_vec[0]),
.ch1_src_addr_o (src_addr_vec[1]),
.ch1_dst_addr_o (dst_addr_vec[1]),
.ch1_byte_len_o (byte_len_vec[1]),
.ch1_start_o (start_vec[1]),
.ch1_done_i (done_vec[1]),
.ch2_src_addr_o (src_addr_vec[2]),
.ch2_dst_addr_o (dst_addr_vec[2]),
.ch2_byte_len_o (byte_len_vec[2]),
.ch2_start_o (start_vec[2]),
.ch2_done_i (done_vec[2]),
.ch3_src_addr_o (src_addr_vec[3]),
.ch3_dst_addr_o (dst_addr_vec[3]),
.ch3_byte_len_o (byte_len_vec[3]),
.ch3_start_o (start_vec[3]),
.ch3_done_i (done_vec[3])
);
assign pslverr_o = 1'b0;
DMAC_ARBITER #(
.N_MASTER (N_CH),
.DATA_SIZE (\$bits(arid_o)+\$bits(araddr_o)+\$bits(arlen_o)+\$bits(arsize_o)+\$bits(arburst_o))
)
u_ar_arbiter
(
.clk (clk),
.rst_n (rst_n),
.src_valid_i (arvalid_vec),
.src_ready_o (arready_vec),
.src_data_i ({
{arid_vec[0], araddr_vec[0], arlen_vec[0], arsize_vec[0], arburst_vec[0]},
{arid_vec[1], araddr_vec[1], arlen_vec[1], arsize_vec[1], arburst_vec[1]},
{arid_vec[2], araddr_vec[2], arlen_vec[2], arsize_vec[2], arburst_vec[2]},
{arid_vec[3], araddr_vec[3], arlen_vec[3], arsize_vec[3], arburst_vec[3]}}),
.dst_valid_o (arvalid_o),
.dst_ready_i (arready_i),
.dst_data_o ({arid_o, araddr_o, arlen_o, arsize_o, arburst_o})
);
DMAC_ARBITER #(
.N_MASTER (N_CH),
.DATA_SIZE (\$bits(awid_o)+\$bits(awaddr_o)+\$bits(awlen_o)+\$bits(awsize_o)+\$bits(awburst_o))
)
u_aw_arbiter
(
.clk (clk),
.rst_n (rst_n),
.src_valid_i (awvalid_vec),
.src_ready_o (awready_vec),
.src_data_i ({
{awid_vec[0], awaddr_vec[0], awlen_vec[0], awsize_vec[0], awburst_vec[0]},
{awid_vec[1], awaddr_vec[1], awlen_vec[1], awsize_vec[1], awburst_vec[1]},
{awid_vec[2], awaddr_vec[2], awlen_vec[2], awsize_vec[2], awburst_vec[2]},
{awid_vec[3], awaddr_vec[3], awlen_vec[3], awsize_vec[3], awburst_vec[3]}}),
.dst_valid_o (awvalid_o),
.dst_ready_i (awready_i),
.dst_data_o ({awid_o, awaddr_o, awlen_o, awsize_o, awburst_o})
);
DMAC_ARBITER #(
.N_MASTER (N_CH),
.DATA_SIZE (\$bits(wid_o)+\$bits(wdata_o)+\$bits(wstrb_o)+\$bits(wlast_o))
)
u_w_arbiter
(
.clk (clk),
.rst_n (rst_n),
.src_valid_i (wvalid_vec),
.src_ready_o (wready_vec),
.src_data_i ({
{wid_vec[0], wdata_vec[0], wstrb_vec[0], wlast_vec[0]},
{wid_vec[1], wdata_vec[1], wstrb_vec[1], wlast_vec[1]},
{wid_vec[2], wdata_vec[2], wstrb_vec[2], wlast_vec[2]},
{wid_vec[3], wdata_vec[3], wstrb_vec[3], wlast_vec[3]}}),
.dst_valid_o (wvalid_o),
.dst_ready_i (wready_i),
.dst_data_o ({wid_o, wdata_o, wstrb_o, wlast_o})
);
assign bready_o = (bid_i=='d0) ? bready_vec[0] :
(bid_i=='d1) ? bready_vec[1] :
(bid_i=='d2) ? bready_vec[2] :
bready_vec[3];
assign rready_o = (rid_i=='d0) ? rready_vec[0] :
(rid_i=='d1) ? rready_vec[1] :
(rid_i=='d2) ? rready_vec[2] :
rready_vec[3];
genvar ch;
generate
for (ch=0; ch<N_CH; ch++) begin: channel
DMAC_ENGINE u_engine(
.clk (clk),
.rst_n (rst_n),
// configuration registers
.src_addr_i (src_addr_vec[ch]),
.dst_addr_i (dst_addr_vec[ch]),
.byte_len_i (byte_len_vec[ch]),
.start_i (start_vec[ch]),
.done_o (done_vec[ch]),
// AMBA AXI interface (AW channel)
.awaddr_o (awaddr_vec[ch]),
.awlen_o (awlen_vec[ch]),
.awsize_o (awsize_vec[ch]),
.awburst_o (awburst_vec[ch]),
.awvalid_o (awvalid_vec[ch]),
.awready_i (awready_vec[ch]),
// AMBA AXI interface (W channel)
.wdata_o (wdata_vec[ch]),
.wstrb_o (wstrb_vec[ch]),
.wlast_o (wlast_vec[ch]),
.wvalid_o (wvalid_vec[ch]),
.wready_i (wready_vec[ch]),
// AMBA AXI interface (B channel)
.bresp_i (bresp_i),
.bvalid_i (bvalid_i & (bid_i==ch)),
.bready_o (bready_vec[ch]),
// AMBA AXI interface (AR channel)
.araddr_o (araddr_vec[ch]),
.arlen_o (arlen_vec[ch]),
.arsize_o (arsize_vec[ch]),
.arburst_o (arburst_vec[ch]),
.arvalid_o (arvalid_vec[ch]),
.arready_i (arready_vec[ch]),
// AMBA AXI interface (R channel)
.rdata_i (rdata_i),
.rresp_i (rresp_i),
.rlast_i (rlast_i),
.rvalid_i (rvalid_i & (rid_i==ch)),
.rready_o (rready_vec[ch])
);
assign awid_vec[ch] = ch;
assign wid_vec[ch] = ch;
assign arid_vec[ch] = ch;
end
endgenerate
endmodule
<<EndOfFile:DMAC/RTLv2/DMAC_TOP.sv>>
<<StartOfFile:DMAC/SIMv2/TB/DMAC_TOP_TB.sv>>
`define IP_VER 32'h000
`define CH_SFR_SIZE 32'h100
`define SRC_OFFSET 32'h0
`define DST_OFFSET 32'h4
`define LEN_OFFSET 32'h8
`define CMD_OFFSET 32'hc
`define STAT_OFFSET 32'h10
`define TIMEOUT_DELAY 99999999
`define SRC_REGION_START 32'h0000_0000
`define SRC_REGION_SIZE 32'h0000_2000
`define DST_REGION_STRIDE 32'h0000_2000
`define RANDOM_SEED 12123344
`define TEST_CNT 100
module DMAC_TOP_TB ();
// inject random seed
initial begin
\$srandom(`RANDOM_SEED);
end
//----------------------------------------------------------
// clock and reset generation
//----------------------------------------------------------
reg clk;
reg rst_n;
reg [3:0] data1, data2;
initial begin
data1 = 'b101x;
data2 = 'b1010;
\$display("Result: %d %d", data1===data2, data1!==data2);
\$display("Result: %d %d", data1==data2, data1!=data2);
data1 = 'b101x;
data2 = 'b101x;
\$display("Result: %d", data1===data2);
\$display("Result: %d", data1==data2);
end
// clock generation
initial begin
clk = 1'b0;
forever #10 clk = !clk;
end
// reset generation
initial begin
rst_n = 1'b0; // active at time 0
repeat (3) @(posedge clk); // after 3 cycles,
rst_n = 1'b1; // release the reset
end
// timeout
initial begin
#`TIMEOUT_DELAY \$display("Timeout!");
\$finish;
end
// enable waveform dump
initial begin
\$dumpvars(0, u_DUT);
\$dumpfile("dump.vcd");
end
//----------------------------------------------------------
// Connection between DUT and test modules
//----------------------------------------------------------
APB apb_if (.clk(clk));
AXI_AW_CH aw_ch (.clk(clk));
AXI_W_CH w_ch (.clk(clk));
AXI_B_CH b_ch (.clk(clk));
AXI_AR_CH ar_ch (.clk(clk));
AXI_R_CH r_ch (.clk(clk));
DMAC_TOP u_DUT (
.clk (clk),
.rst_n (rst_n),
// APB interface
.psel_i (apb_if.psel),
.penable_i (apb_if.penable),
.paddr_i (apb_if.paddr[11:0]),
.pwrite_i (apb_if.pwrite),
.pwdata_i (apb_if.pwdata),
.pready_o (apb_if.pready),
.prdata_o (apb_if.prdata),
.pslverr_o (apb_if.pslverr),
// AXI AW channel
.awid_o (aw_ch.awid),
.awaddr_o (aw_ch.awaddr),
.awlen_o (aw_ch.awlen),
.awsize_o (aw_ch.awsize),
.awburst_o (aw_ch.awburst),
.awvalid_o (aw_ch.awvalid),
.awready_i (aw_ch.awready),
// AXI W channel
.wid_o (w_ch.wid),
.wdata_o (w_ch.wdata),
.wstrb_o (w_ch.wstrb),
.wlast_o (w_ch.wlast),
.wvalid_o (w_ch.wvalid),
.wready_i (w_ch.wready),
// AXI B channel
.bid_i (b_ch.bid),
.bresp_i (b_ch.bresp),
.bvalid_i (b_ch.bvalid),
.bready_o (b_ch.bready),
// AXI AR channel
.arid_o (ar_ch.arid),
.araddr_o (ar_ch.araddr),
.arlen_o (ar_ch.arlen),
.arsize_o (ar_ch.arsize),
.arburst_o (ar_ch.arburst),
.arvalid_o (ar_ch.arvalid),
.arready_i (ar_ch.arready),
// AXI R channel
.rid_i (r_ch.rid),
.rdata_i (r_ch.rdata),
.rresp_i (r_ch.rresp),
.rlast_i (r_ch.rlast),
.rvalid_i (r_ch.rvalid),
.rready_o (r_ch.rready)
);
AXI_SLAVE u_mem (
.clk (clk),
.rst_n (rst_n),
.aw_ch (aw_ch),
.w_ch (w_ch),
.b_ch (b_ch),
.ar_ch (ar_ch),
.r_ch (r_ch)
);
//----------------------------------------------------------
// Testbench starts
//----------------------------------------------------------
task test_init();
int data;
apb_if.init();
@(posedge rst_n); // wait for a release of the reset
repeat (10) @(posedge clk); // wait another 10 cycles
apb_if.read(`IP_VER, data);
\$display("---------------------------------------------------");
\$display("IP version: %x", data);
\$display("---------------------------------------------------");
\$display("---------------------------------------------------");
\$display("Load data to memory");
\$display("---------------------------------------------------");
for (int i=0; i<`SRC_REGION_SIZE; i=i+4) begin
// write random data
u_mem.write_word(`SRC_REGION_START+i, \$random);
end
endtask
// this task must be declared automatic so that each invocation uses
// different memories
task automatic test_dma(input int ch, input int src, input int dst, input int len);
int data;
\$display("Ch[%d] DMA configure %x -> %x (%x)", ch, src, dst, len);
apb_if.write((ch+1)*`CH_SFR_SIZE+`SRC_OFFSET, src);
apb_if.read((ch+1)*`CH_SFR_SIZE+`SRC_OFFSET, data);
if (data!==src) begin
\$display("DMA_SRC[%d](fail): %x", ch, data);
@(posedge clk);
\$finish;
end
apb_if.write((ch+1)*`CH_SFR_SIZE+`DST_OFFSET, dst);
apb_if.read((ch+1)*`CH_SFR_SIZE+`DST_OFFSET, data);
if (data!==dst) begin
\$display("DMA_DST[%d](fail): %x", ch, data);
@(posedge clk);
\$finish;
end
apb_if.write((ch+1)*`CH_SFR_SIZE+`LEN_OFFSET, len);
apb_if.read((ch+1)*`CH_SFR_SIZE+`LEN_OFFSET, data);
if (data!==len) begin
\$display("DMA_LEN[%d](fail): %x", ch, data);
@(posedge clk);
\$finish;
end
\$display("Ch[%d] DMA start", ch);
apb_if.write((ch+1)*`CH_SFR_SIZE+`CMD_OFFSET, 32'h1);
data = 0;
while (data!=1) begin
apb_if.read((ch+1)*`CH_SFR_SIZE+`STAT_OFFSET, data);
repeat (100) @(posedge clk);
\$display("Ch[%d] Waiting for a DMA completion", ch);
end
@(posedge clk);
\$display("Ch[%d] DMA completed", ch);
for (int i=0; i<len; i=i+4) begin
logic [31:0] src_word;
logic [31:0] dst_word;
src_word = u_mem.read_word(src+i);
dst_word = u_mem.read_word(dst+i);
if (src_word!==dst_word) begin
\$display("Ch[%d] Mismatch! (src:%x @%x, dst:%x @%x", ch, src_word, src+i, dst_word, dst+i);
@(posedge clk);
\$finish;
end
end
\$display("Ch[%d] DMA passed", ch);
endtask
// this task must be declared automatic so that each invocation uses
// different memories
task automatic test_channel(input int ch, input int test_cnt);
int src_offset, dst_offset, len;
src_offset = 0;
dst_offset = 0;
for (int i=0; i<test_cnt; i++) begin
len = 'h0100;
test_dma(ch, `SRC_REGION_START+src_offset, (ch+1)*`DST_REGION_STRIDE+dst_offset, len);
src_offset = src_offset + len;
dst_offset = dst_offset + len;
end
endtask
// main
initial begin
test_init();
// run 4 channel tests simultaneously
fork
test_channel(0, `TEST_CNT);
test_channel(1, `TEST_CNT);
test_channel(2, `TEST_CNT);
test_channel(3, `TEST_CNT);
join
\$finish;
end
endmodule
<<EndOfFile:DMAC/SIMv2/TB/DMAC_TOP_TB.sv>>
<<StartOfFile:DMAC/SIMv2/TB/AXI_INTF.sv>>
`include "../TB/AXI_TYPEDEF.svh"
interface AXI_AW_CH
#(
parameter ADDR_WIDTH = `AXI_ADDR_WIDTH,
parameter ID_WIDTH = `AXI_ID_WIDTH
)
(
input clk
);
logic awvalid;
logic awready;
logic [ID_WIDTH-1:0] awid;
logic [ADDR_WIDTH-1:0] awaddr;
logic [3:0] awlen;
logic [2:0] awsize;
logic [1:0] awburst;
endinterface
interface AXI_W_CH
#(
parameter DATA_WIDTH = `AXI_DATA_WIDTH,
parameter ID_WIDTH = `AXI_ID_WIDTH
)
(
input clk
);
logic wvalid;
logic wready;
logic [ID_WIDTH-1:0] wid;
logic [DATA_WIDTH-1:0] wdata;
logic [DATA_WIDTH/8-1:0] wstrb;
logic wlast;
endinterface
interface AXI_B_CH
#(
parameter ID_WIDTH = `AXI_ID_WIDTH
)
(
input clk
);
logic bvalid;
logic bready;
logic [ID_WIDTH-1:0] bid;
logic [1:0] bresp;
endinterface
interface AXI_AR_CH
#(
parameter ADDR_WIDTH = `AXI_ADDR_WIDTH,
parameter ID_WIDTH = `AXI_ID_WIDTH
)
(
input clk
);
logic arvalid;
logic arready;
logic [ID_WIDTH-1:0] arid;
logic [ADDR_WIDTH-1:0] araddr;
logic [3:0] arlen;
logic [2:0] arsize;
logic [1:0] arburst;
endinterface
interface AXI_R_CH
#(
parameter DATA_WIDTH = `AXI_DATA_WIDTH,
parameter ID_WIDTH = `AXI_ID_WIDTH
)
(
input clk
);
logic rvalid;
logic rready;
logic [ID_WIDTH-1:0] rid;
logic [DATA_WIDTH-1:0] rdata;
logic [1:0] rresp;
logic rlast;
endinterface
interface APB (
input clk
);
logic psel;
logic penable;
logic [31:0] paddr;
logic pwrite;
logic [31:0] pwdata;
logic pready;
logic [31:0] prdata;
logic pslverr;
// a semaphore to allow only one access at a time
semaphore sema;
initial begin
sema = new(1);
end
modport master (
input clk,
input pready, prdata, pslverr,
output psel, penable, paddr, pwrite, pwdata
);
task init();
psel = 1'b0;
penable = 1'b0;
paddr = 32'd0;
pwrite = 1'b0;
pwdata = 32'd0;
endtask
task automatic write(input int addr,
input int data);
// during a write, another threads cannot access APB
sema.get(1);
#1
psel = 1'b1;
penable = 1'b0;
paddr = addr;
pwrite = 1'b1;
pwdata = data;
@(posedge clk);
#1
penable = 1'b1;
@(posedge clk);
while (pready==1'b0) begin
@(posedge clk);
end
psel = 1'b0;
penable = 1'b0;
paddr = 'hX;
pwrite = 1'bx;
pwdata = 'hX;
// release the semaphore
sema.put(1);
endtask
task automatic read(input int addr,
output int data);
// during a read, another threads cannot access APB
sema.get(1);
#1
psel = 1'b1;
penable = 1'b0;
paddr = addr;
pwrite = 1'b0;
pwdata = 'hX;
@(posedge clk);
#1
penable = 1'b1;
@(posedge clk);
while (pready==1'b0) begin
@(posedge clk);
end
data = prdata;
psel = 1'b0;
penable = 1'b0;
paddr = 'hX;
pwrite = 1'bx;
pwdata = 'hX;
// release the semaphore
sema.put(1);
endtask
endinterface
<<EndOfFile:DMAC/SIMv2/TB/AXI_INTF.sv>>
<<StartOfFile:DMAC/SIMv2/TB/AXI_SLAVE.sv>>
`include "../TB/AXI_TYPEDEF.svh"
module AXI_SLAVE
#(
parameter ADDR_WIDTH = 16,
parameter DATA_WIDTH = `AXI_DATA_WIDTH,
parameter ID_WIDTH = `AXI_ID_WIDTH,
parameter AWREADY_DELAY = 1,
parameter ARREADY_DELAY = 1,
parameter AR2R_DELAY = 50
)
(
input wire clk,
input wire rst_n, // _n means active low
AXI_AW_CH aw_ch,
AXI_W_CH w_ch,
AXI_B_CH b_ch,
AXI_AR_CH ar_ch,
AXI_R_CH r_ch
);
localparam DATA_DEPTH = 1<<ADDR_WIDTH;
logic [7:0] mem[DATA_DEPTH];
function void write_byte(int addr, input bit [7:0] wdata);
mem[addr] = wdata;
endfunction
function void write_word(int addr, input bit [31:0] wdata);
for (int i=0; i<4; i++) begin
write_byte(addr+i, wdata[8*i +: 8]); // [i*8+7:i*8]
end
endfunction
function bit [7:0] read_byte(int addr);
read_byte = mem[addr];
endfunction
function bit [31:0] read_word(int addr);
for (int i=0; i<4; i++) begin
read_word[8*i +: 8] = read_byte(addr+i);// [i*8+7:i*8]
end
endfunction
//----------------------------------------------------------
// write channels (AW, W, B)
//----------------------------------------------------------
localparam logic [1:0] S_W_IDLE = 0,
S_W_AWREADY = 1,
S_W_BURST = 2,
S_W_RESP = 3;
logic [1:0] wstate, wstate_n;
logic [7:0] wcnt, wcnt_n;
logic [ADDR_WIDTH-1:0] waddr, waddr_n;
logic [ID_WIDTH-1:0] wid, wid_n;
logic [3:0] wlen, wlen_n;
always_ff @(posedge clk)
if (!rst_n) begin
wstate <= S_W_IDLE;
wcnt <= 8'd0;
waddr <= {ADDR_WIDTH{1'b0}};
wid <= {ID_WIDTH{1'b0}};
wlen <= 4'd0;
end
else begin
wstate <= wstate_n;
wcnt <= wcnt_n;
waddr <= waddr_n;
wid <= wid_n;
wlen <= wlen_n;
end
always @(*) begin
wstate_n = wstate;
wcnt_n = wcnt;
waddr_n = waddr;
wid_n = wid;
wlen_n = wlen;
aw_ch.awready = 1'b0;
w_ch.wready = 1'b0;
b_ch.bvalid = 1'b0;
case (wstate)
S_W_IDLE: begin
if (aw_ch.awvalid) begin
if (AWREADY_DELAY == 0) begin
waddr_n = aw_ch.awaddr;
wid_n = aw_ch.awid;
wlen_n = aw_ch.awlen;
aw_ch.awready = 1'b1;
wstate_n = S_W_BURST;
end
else begin
wcnt_n = AWREADY_DELAY-1;
wstate_n = S_W_AWREADY;
end
end
end
S_W_AWREADY: begin
if (wcnt==0) begin
waddr_n = aw_ch.awaddr;
wid_n = aw_ch.awid;
wlen_n = aw_ch.awlen;
aw_ch.awready = 1'b1;
wstate_n = S_W_BURST;
end
else begin
wcnt_n = wcnt - 8'd1;
end
end
S_W_BURST: begin
w_ch.wready = 1'b1;
if (w_ch.wvalid) begin
for (int i=0; i<DATA_WIDTH/8; i++) begin
write_byte(waddr + i, w_ch.wdata[i*8 +: 8]); // [i*8+7:i*8]
end
waddr_n = waddr + (DATA_WIDTH/8);
if (wlen==4'd0) begin
wstate_n = S_W_RESP;
end
else begin
wlen_n = wlen - 4'd1;
end
end
end
S_W_RESP: begin
b_ch.bvalid = 1'b1;
if (b_ch.bready) begin
wstate_n = S_W_IDLE;
end
end
endcase
end
//----------------------------------------------------------
// read channel (AR, R)
//----------------------------------------------------------
localparam logic [1:0] S_R_IDLE = 0,
S_R_ARREADY = 1,
S_R_DELAY = 2,
S_R_BURST = 3;
logic [1:0] rstate, rstate_n;
logic [7:0] rcnt, rcnt_n;
logic [ADDR_WIDTH-1:0] raddr, raddr_n;
logic [ID_WIDTH-1:0] rid, rid_n;
logic [3:0] rlen, rlen_n;
always_ff @(posedge clk)
if (!rst_n) begin
rstate <= S_R_IDLE;
rcnt <= 8'd0;
raddr <= {ADDR_WIDTH{1'b0}};
rid <= {ID_WIDTH{1'b0}};
rlen <= 4'd0;
end
else begin
rstate <= rstate_n;
rcnt <= rcnt_n;
raddr <= raddr_n;
rid <= rid_n;
rlen <= rlen_n;
end
always_comb begin
rstate_n = rstate;
rcnt_n = rcnt;
raddr_n = raddr;
rid_n = rid;
rlen_n = rlen;
ar_ch.arready = 1'b0;
r_ch.rvalid = 1'b0;
r_ch.rlast = 1'b0;
case (rstate)
S_R_IDLE: begin
if (ar_ch.arvalid) begin
if (ARREADY_DELAY == 0) begin
raddr_n = ar_ch.araddr;
rid_n = ar_ch.arid;
rlen_n = ar_ch.arlen;
ar_ch.arready = 1'b1;
rcnt_n = AR2R_DELAY - 1;
rstate_n = S_R_DELAY;
end
else begin
rcnt_n = ARREADY_DELAY-1;
rstate_n = S_R_ARREADY;
end
end
end
S_R_ARREADY: begin
if (rcnt==0) begin
raddr_n = ar_ch.araddr;
rid_n = ar_ch.arid;
rlen_n = ar_ch.arlen;
ar_ch.arready = 1'b1;
rcnt_n = AR2R_DELAY - 1;
rstate_n = S_R_DELAY;
end
else begin
rcnt_n = rcnt - 8'd1;
end
end
S_R_DELAY: begin
if (rcnt==0) begin
rstate_n = S_R_BURST;
end
else begin
rcnt_n = rcnt - 8'd1;
end
end
S_R_BURST: begin
r_ch.rvalid = 1'b1;
r_ch.rlast = (rlen==4'd0);
for (int i=0; i<DATA_WIDTH/8; i++) begin
r_ch.rdata[i*8 +: 8] = read_byte(raddr + i); // [i*8+7:i*8]
end
if (r_ch.rready) begin
raddr_n = raddr + (DATA_WIDTH/8);
if (rlen==4'd0) begin
rstate_n = S_R_IDLE;
end
else begin
rlen_n = rlen - 4'd1;
end
end
end
endcase
end
// output assignments
assign b_ch.bid = wid;
assign b_ch.bresp = 2'd0;
assign r_ch.rid = rid;
assign r_ch.rresp = 2'd0;
endmodule
<<EndOfFile:DMAC/SIMv2/TB/AXI_SLAVE.sv>>
<<StartOfFile:DMAC/SIMv2/TB/AXI_TYPEDEF.svh>>
`ifndef __AXI_TYPEDEF_SVH__
`define __AXI_TYPEDEF_SVH__
`define AXI_ADDR_WIDTH 32
`define AXI_DATA_WIDTH 32
`define AXI_ID_WIDTH 4
`endif /* __AXI_TYPEDEF_SVH__ */
<<EndOfFile:DMAC/SIMv2/TB/AXI_TYPEDEF.svh>>
|
18ac70e41220c7b3d896fd6cf14b7799
|
{
"intermediate": 0.2845301628112793,
"beginner": 0.49735957384109497,
"expert": 0.21811027824878693
}
|
48,087
|
Create a project in the com.javacohort package, name it StudentGrade.
Create model class in the com.javacohort.model package: name it Student
Create necessary properties
Create empty constructor and constructor with parameters
Generate getters/setters
Create method: double calculateAverageGrade() - method calculates the
student’s average grade and returns the result as a double
Create method: displayStudentInfo() - method display student’s first name,
array of grades and
average grade.
In the Main.java class
Create five Student objects, use the constructor to initialize student’s data
Display each student’s information
Output:
Name: Nancy
Grades: [85, 90, 75, 88]
Average Grade: 84.5
Name: Terry
Grades: [78, 92, 85, 70]
Average Grade: 81.25
|
3260c2bd792ca8afd0deb72a7d1b44dc
|
{
"intermediate": 0.40718692541122437,
"beginner": 0.3358602523803711,
"expert": 0.25695276260375977
}
|
48,088
|
how to use the parameters in Tkinter label method
|
e908bb5f830bab215dfd081177cbcae7
|
{
"intermediate": 0.2937861382961273,
"beginner": 0.15005958080291748,
"expert": 0.5561542510986328
}
|
48,089
|
在# 将 4输入分开,构建新的相同模态结合的2输入,2分支
import math
import logging
from functools import partial
from collections import OrderedDict
from copy import deepcopy
import torch
import torch.nn as nn
import torch.nn.functional as F
from timm.models.layers import to_2tuple
from lib.models.layers.patch_embed import PatchEmbed, PatchEmbed_event, xcorr_depthwise
from .utils import combine_tokens, recover_tokens
from .vit import VisionTransformer
from ..layers.attn_blocks import CEBlock
from .ad_counter_guide import Counter_Guide_Enhanced
_logger = logging.getLogger(__name__)
class VisionTransformerCE(VisionTransformer):
""" Vision Transformer with candidate elimination (CE) module
A PyTorch impl of : `An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale`
- https://arxiv.org/abs/2010.11929
Includes distillation token & head support for `DeiT: Data-efficient Image Transformers`
- https://arxiv.org/abs/2012.12877
"""
def __init__(self, img_size=224, patch_size=16, in_chans=3, num_classes=1000, embed_dim=768, depth=12,
num_heads=12, mlp_ratio=4., qkv_bias=True, representation_size=None, distilled=False,
drop_rate=0., attn_drop_rate=0., drop_path_rate=0., embed_layer=PatchEmbed, norm_layer=None,
act_layer=None, weight_init='',
ce_loc=None, ce_keep_ratio=None):
super().__init__()
if isinstance(img_size, tuple):
self.img_size = img_size
else:
self.img_size = to_2tuple(img_size)
self.patch_size = patch_size
self.in_chans = in_chans
self.num_classes = num_classes
self.num_features = self.embed_dim = embed_dim # num_features for consistency with other models
self.num_tokens = 2 if distilled else 1
norm_layer = norm_layer or partial(nn.LayerNorm, eps=1e-6)
act_layer = act_layer or nn.GELU
self.patch_embed = embed_layer(
img_size=img_size, patch_size=patch_size, in_chans=in_chans, embed_dim=embed_dim)
num_patches = self.patch_embed.num_patches
self.cls_token = nn.Parameter(torch.zeros(1, 1, embed_dim))
self.dist_token = nn.Parameter(torch.zeros(1, 1, embed_dim)) if distilled else None
self.pos_embed = nn.Parameter(torch.zeros(1, num_patches + self.num_tokens, embed_dim))
self.pos_drop = nn.Dropout(p=drop_rate)
self.pos_embed_event = PatchEmbed_event(in_chans=32, embed_dim=768, kernel_size=4, stride=4)
dpr = [x.item() for x in torch.linspace(0, drop_path_rate, depth)] # stochastic depth decay rule
blocks = []
ce_index = 0
self.ce_loc = ce_loc
for i in range(depth):
ce_keep_ratio_i = 1.0
if ce_loc is not None and i in ce_loc:
ce_keep_ratio_i = ce_keep_ratio[ce_index]
ce_index += 1
blocks.append(
CEBlock(
dim=embed_dim, num_heads=num_heads, mlp_ratio=mlp_ratio, qkv_bias=qkv_bias, drop=drop_rate,
attn_drop=attn_drop_rate, drop_path=dpr[i], norm_layer=norm_layer, act_layer=act_layer,
keep_ratio_search=ce_keep_ratio_i)
)
self.blocks = nn.Sequential(*blocks)
self.norm = norm_layer(embed_dim)
self.init_weights(weight_init)
# 添加交互模块counter_guide
# self.counter_guide = Counter_Guide(768, 768)
self.counter_guide = Counter_Guide_Enhanced(768, 768)
def forward_features(self, z, x, event_z, event_x,
mask_z=None, mask_x=None,
ce_template_mask=None, ce_keep_rate=None,
return_last_attn=False
):
# 分支1 处理流程
B, H, W = x.shape[0], x.shape[2], x.shape[3]
x = self.patch_embed(x)
z = self.patch_embed(z)
z += self.pos_embed_z
x += self.pos_embed_x
if mask_z is not None and mask_x is not None:
mask_z = F.interpolate(mask_z[None].float(), scale_factor=1. / self.patch_size).to(torch.bool)[0]
mask_z = mask_z.flatten(1).unsqueeze(-1)
mask_x = F.interpolate(mask_x[None].float(), scale_factor=1. / self.patch_size).to(torch.bool)[0]
mask_x = mask_x.flatten(1).unsqueeze(-1)
mask_x = combine_tokens(mask_z, mask_x, mode=self.cat_mode)
mask_x = mask_x.squeeze(-1)
if self.add_cls_token:
cls_tokens = self.cls_token.expand(B, -1, -1)
cls_tokens = cls_tokens + self.cls_pos_embed
if self.add_sep_seg:
x += self.search_segment_pos_embed
z += self.template_segment_pos_embed
x = combine_tokens(z, x, mode=self.cat_mode)
if self.add_cls_token:
x = torch.cat([cls_tokens, x], dim=1)
x = self.pos_drop(x)
lens_z = self.pos_embed_z.shape[1]
lens_x = self.pos_embed_x.shape[1]
global_index_t = torch.linspace(0, lens_z - 1, lens_z).to(x.device)
global_index_t = global_index_t.repeat(B, 1)
global_index_s = torch.linspace(0, lens_x - 1, lens_x).to(x.device)
global_index_s = global_index_s.repeat(B, 1)
removed_indexes_s = []
# # 分支2 处理流程
event_x = self.pos_embed_event(event_x)
event_z = self.pos_embed_event(event_z)
event_x += self.pos_embed_x
event_z += self.pos_embed_z
event_x = combine_tokens(event_z, event_x, mode=self.cat_mode)
if self.add_cls_token:
event_x = torch.cat([cls_tokens, event_x], dim=1)
lens_z = self.pos_embed_z.shape[1]
lens_x = self.pos_embed_x.shape[1]
global_index_t1 = torch.linspace(0, lens_z - 1, lens_z).to(event_x.device)
global_index_t1 = global_index_t1.repeat(B, 1)
global_index_s1 = torch.linspace(0, lens_x - 1, lens_x).to(event_x.device)
global_index_s1 = global_index_s1.repeat(B, 1)
removed_indexes_s1 = []
# 新增 初始化一个空列表用于存储每个CEBlock的注意力图
for i, blk in enumerate(self.blocks):
# 第一个分支处理
x, global_index_t, global_index_s, removed_index_s, attn = \
blk(x, global_index_t, global_index_s, mask_x, ce_template_mask, ce_keep_rate)
# 第二个分支处理
event_x, global_index_t1, global_index_s1, removed_index_s1, attn = \
blk(event_x, global_index_t1, global_index_s1, mask_x, ce_template_mask, ce_keep_rate)
if self.ce_loc is not None and i in self.ce_loc:
removed_indexes_s.append(removed_index_s)
removed_indexes_s1.append(removed_index_s1)
# 在第1层和第2层增加counter_guide模块,验证早期融合效果
if i == 0 :
enhanced_x, enhanced_event_x = self.counter_guide(x, event_x)
# 将增强后的特征与原特征相加
x = x + enhanced_x
event_x = event_x + enhanced_event_x
# 应用LayerNorm归一化处理
x = self.norm(x)
event_x = self.norm(event_x)
x_cat = torch.cat([event_x,x], dim=1)
x = x_cat
aux_dict = {
"attn": attn,
"removed_indexes_s": removed_indexes_s, # used for visualization
}
return x, aux_dict
def forward(self, z, x, event_z, event_x,
ce_template_mask=None, ce_keep_rate=None,
tnc_keep_rate=None,
return_last_attn=False):
x, aux_dict = self.forward_features(z, x, event_z, event_x, ce_template_mask=ce_template_mask, ce_keep_rate=ce_keep_rate,)
return x, aux_dict
def _create_vision_transformer(pretrained=False, **kwargs):
model = VisionTransformerCE(**kwargs)
if pretrained:
if 'npz' in pretrained:
model.load_pretrained(pretrained, prefix='')
else:
checkpoint = torch.load(pretrained, map_location="cpu")
missing_keys, unexpected_keys = model.load_state_dict(checkpoint["model"], strict=False)
print('Load pretrained model from: ' + pretrained)
return model
def vit_base_patch16_224_ce(pretrained=False, **kwargs):
""" ViT-Base model (ViT-B/16) from original paper (https://arxiv.org/abs/2010.11929).
"""
model_kwargs = dict(
patch_size=16, embed_dim=768, depth=12, num_heads=12, **kwargs)
model = _create_vision_transformer(pretrained=pretrained, **model_kwargs)
return model
def vit_large_patch16_224_ce(pretrained=False, **kwargs):
""" ViT-Large model (ViT-L/16) from original paper (https://arxiv.org/abs/2010.11929).
"""
model_kwargs = dict(
patch_size=16, embed_dim=1024, depth=24, num_heads=16, **kwargs)
model = _create_vision_transformer(pretrained=pretrained, **model_kwargs)
return model中,两个分支的attn需要做区分吗?
|
7297ab9721518d1f6425d0b127b24d53
|
{
"intermediate": 0.28352805972099304,
"beginner": 0.44167056679725647,
"expert": 0.2748013436794281
}
|
48,090
|
Мне нужно вернуть не весь объект, а только два поля из объекта в виде json, это поле operationId и amount, как это сделать?
@POST
@Path("sbp-payments/reverse")
@Consumes(value = APPLICATION_JSON)
@Produces(value = APPLICATION_JSON)
public SbpOperation reverse(@HeaderParam("token") String token, @QueryParam(value = "id") Long id) {
if (token == null) {
LOGGER.debug("Login failed: token is null");
throw new IllegalAccessError("Login failed: token is null");
}
CheckTokenResult result = authService.auth(token);
if (!result.isValid()) {
LOGGER.info(result.getMessage());
throw new IllegalAccessError(result.getMessage());
}
User user = userService.findById(result.getToken().getUserId());
Employee employee = getEmployeeByLogin(user.getLogin());
if (employee == null) {
LOGGER.debug("Login failed: login: {}", user.getLogin());
throw new NotFoundException("Employee не найден");
}
UsernamePasswordAuthenticationToken authToken = getAuthToken(user.getLogin(), null, employee);
UserInfo userInfo = (UserInfo) authToken.getDetails();
if (!EmployeeAccessType.FULL.equals(userInfo.getAccessType())) {
// Если у пользователя недостаточно прав, то вернем его в список заявок
throw new IllegalAccessError();
}
final UserInfoPartner userInfoPartner = userInfo.getPartner();
final Partner partner = partnerService.get(userInfoPartner.getId());
SbpOperation operation = sbpOperationHelpService.getOperationData(partner.getId(), id);
if (operation == null) {
throw new NotFoundException("Операция не найдена");
}
return operation;
}
|
f89db8dfc057bbe98ec385c9971743fc
|
{
"intermediate": 0.2412731647491455,
"beginner": 0.5690694451332092,
"expert": 0.18965739011764526
}
|
48,091
|
i need you to remember my entire code which is needed for further updation i am having very lengthy code so, i will provide my entire code into three splitups in sequence.
Splitup1:
class CustomGNN(torch.nn.Module):
def __init__(self, in_channels, out_channels):
super(CustomGNN, self).__init__()
self.gat1 = GATConv(in_channels, 8, heads=8, dropout=0.6)
self.gat2 = GATConv(64, out_channels, heads=1, concat=False, dropout=0.6) # 8*8 is 64
def forward(self, x, edge_index):
x = F.dropout(x, p=0.6, training=self.training)
x = F.elu(self.gat1(x, edge_index))
x = F.dropout(x, p=0.6, training=self.training)
x = self.gat2(x, edge_index)
# Selective feature synchronization based on given mappings
# Converting given (row, column) pairs to 0-based indexing
sync_mappings = {
(10, 18): (7, 18),
(10, 19): (7, 19),
(16, 18): (15, 18),
(16, 19): (15, 19),
(5, 18): (13, 18),
(5, 19): (13, 19),
# No need to map (3, 18) and (3, 19) as they remain unchanged
}
original_features = x.clone()
for target, source in sync_mappings.items():
original_features[target[0], target[1]] = original_features[source[0], source[1]]
# Only retain the transformative updates for the specified 19 features
dynamic_updates_mask = torch.zeros_like(x, dtype=bool)
dynamic_indices = [
(0, 18), (0, 19), (3, 18), (3, 19), (5, 18), (5, 19), (7, 18), (7, 19),
(10, 18), (10, 19), (13, 18), (13, 19), (15, 18), (15, 19), (16, 18),
(16, 19), (17, 20), (18, 21), (19, 22)]
for row, col in dynamic_indices:
dynamic_updates_mask[row, col] = True
x = original_features * (~dynamic_updates_mask) + x * dynamic_updates_mask
return x
class Actor(torch.nn.Module):
def __init__(self, gnn_model):
super(Actor, self).__init__()
self.gnn = gnn_model
# Bounds are converted to tensors for ease of calculation
self.bounds_low = torch.tensor([0.18e-6, 0.18e-6, 0.18e-6, 0.18e-6, 0.18e-6,
0.5e-6, 0.5e-6, 0.5e-6, 0.5e-6, 0.5e-6,
15e-6, 0.1e-12, 0.8], dtype=torch.float32)
self.bounds_high = torch.tensor([0.2e-6, 0.2e-6, 0.2e-6, 0.2e-6, 0.2e-6,
50e-6, 50e-6, 50e-6, 50e-6, 50e-6,
30e-6, 10e-12, 1.4], dtype=torch.float32)
def forward(self, state):
node_features_tensor, _, edge_index = state
processed_features = self.gnn(node_features_tensor, edge_index)
# Specific (row, column) indices for action values, converted to 0-based indexing
action_indices = [
(10, 19), (16, 19), (5, 19), (3, 19), (0, 19), (10, 18),
(16, 18), (5, 18), (3, 18), (0, 18), (17, 20), (18, 21), (19, 22)
]
# For gathering specific indices, we first convert action_indices to a tensor format that can be used with gather or indexing
action_indices_tensor = torch.tensor(action_indices, dtype=torch.long).t()
selected_features = processed_features[action_indices_tensor[0], action_indices_tensor[1]]
# Using tanh to squash gnn_output to [-1, 1]
normalized_gnn_output = torch.tanh(selected_features)
# Now scale and shift the normalized output to the action bounds
action_means = self.bounds_low + (self.bounds_high - self.bounds_low) * ((normalized_gnn_output + 1) / 2)
# Here we should define action variances as well, which are learnable and specific to your model structure
action_log_std = torch.zeros_like(action_means)
action_std = torch.exp(action_log_std)
return action_means, action_std
class Critic(torch.nn.Module):
def __init__(self):
super(Critic, self).__init__()
flattened_size = 20 * 24 # Number of nodes times features per node
self.network = torch.nn.Sequential(
torch.nn.Linear(flattened_size, 128),
torch.nn.ReLU(),
torch.nn.Linear(128, 1)
)
def forward(self, state):
# Directly use state as it is already what we referred to as state[0] in evaluate
flattened = state.view(-1) # Flatten to [480]
return self.network(flattened)
Next i will give you my code splitup2, which is in continuation to the code splitup1.
|
eab422825e71b0d83717a59df58561e3
|
{
"intermediate": 0.2544811964035034,
"beginner": 0.5459371209144592,
"expert": 0.19958169758319855
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.