DrugBank Drug Interaction Sentences Seem to Be of a Standard Type

We might be able to get more precise information from the DrugBank drug-interactions by mapping the standard sentence forms onto edge types.

Here are the most common phrases in the drug interaction sentences:
{
    "CNS": 295660,
    "CNS depression": 295614,
    "CNS depression can": 295568,
    "CNS depression can be": 295568,
    "CNS depression can be increased": 295568,
    "CNS depression can be increased when": 295568,
    "The": 2091852,
    "The metabolism": 405067,
    "The metabolism of": 405067,
    "The risk": 1211679,
    "The risk or": 1209578,
    "The risk or severity": 1209578,
    "The risk or severity of": 1209578,
    "The risk or severity of CNS": 289998,
    "The risk or severity of CNS depression": 289998,
    "The risk or severity of CNS depression can": 289952,
    "The risk or severity of CNS depression can be": 289952,
    "The risk or severity of CNS depression can be increased": 289952,
    "The risk or severity of CNS depression can be increased when": 289952,
    "The risk or severity of adverse": 331153,
    "The risk or severity of adverse effects": 331153,
    "The risk or severity of adverse effects can": 331153,
    "The risk or severity of adverse effects can be": 331153,
    "The risk or severity of adverse effects can be increased": 330711,
    "The risk or severity of adverse effects can be increased when": 330711,
    "The serum": 171392,
    "The serum concentration": 171392,
    "The serum concentration of": 171392,
    "The therapeutic": 277690,
    "The therapeutic efficacy": 277690,
    "The therapeutic efficacy of": 277690,
    "a": 544436,
    "a higher": 352172,
    "a higher serum": 352172,
    "a higher serum level.": 352172,
    "activities": 310627,
    "activities of": 310627,
    "adverse": 331710,
    "adverse effects": 331153,
    "adverse effects can": 331153,
    "adverse effects can be": 331153,
    "adverse effects can be increased": 330711,
    "adverse effects can be increased when": 330711,
    "and": 157490,
    "be": 2089751,
    "be decreased": 594552,
    "be decreased when": 594552,
    "be decreased when combined": 320819,
    "be decreased when combined with": 320819,
    "be decreased when used": 232489,
    "be decreased when used in": 232489,
    "be decreased when used in combination": 232489,
    "be decreased when used in combination with": 232489,
    "be increased": 1494993,
    "be increased when": 1494993,
    "be increased when combined": 110272,
    "be increased when combined with": 110272,
    "be increased when it": 129870,
    "be increased when it is": 129870,
    "be increased when it is combined": 129870,
    "be increased when it is combined with": 129870,
    "can": 2112673,
    "can be": 2089751,
    "can be decreased": 594552,
    "can be decreased when": 594552,
    "can be decreased when combined": 320819,
    "can be decreased when combined with": 320819,
    "can be decreased when used": 232489,
    "can be decreased when used in": 232489,
    "can be decreased when used in combination": 232489,
    "can be decreased when used in combination with": 232489,
    "can be increased": 1494993,
    "can be increased when": 1494993,
    "can be increased when combined": 110272,
    "can be increased when combined with": 110272,
    "can be increased when it": 129870,
    "can be increased when it is": 129870,
    "can be increased when it is combined": 129870,
    "can be increased when it is combined with": 129870,
    "combination": 279108,
    "combination with": 279108,
    "combined": 1812744,
    "combined with": 1812744,
    "concentration": 194314,
    "concentration of": 171392,
    "could": 412560,
    "could result": 412560,
    "could result in": 412560,
    "could result in a": 412560,
    "could result in a higher": 352172,
    "could result in a higher serum": 352172,
    "could result in a higher serum level.": 352172,
    "decrease": 488133,
    "decrease the": 441894,
    "decrease the excretion": 352172,
    "decrease the excretion rate": 352172,
    "decrease the excretion rate of": 352172,
    "decreased": 594552,
    "decreased when": 594552,
    "decreased when combined": 320819,
    "decreased when combined with": 320819,
    "decreased when used": 232489,
    "decreased when used in": 232489,
    "decreased when used in combination": 232489,
    "decreased when used in combination with": 232489,
    "depression": 297436,
    "depression can": 297390,
    "depression can be": 297390,
    "depression can be increased": 297390,
    "depression can be increased when": 297390,
    "effects": 332463,
    "effects can": 332463,
    "effects can be": 332463,
    "effects can be increased": 332021,
    "effects can be increased when": 332021,
    "efficacy": 277690,
    "efficacy of": 277690,
    "excretion": 433102,
    "excretion rate": 412560,
    "excretion rate of": 412560,
    "higher": 352172,
    "higher serum": 352172,
    "higher serum level.": 352172,
    "in": 820804,
    "in a": 435133,
    "in a higher": 352172,
    "in a higher serum": 352172,
    "in a higher serum level.": 352172,
    "in combination": 279108,
    "in combination with": 279108,
    "increase": 281868,
    "increase the": 281293,
    "increased": 1497663,
    "increased when": 1497094,
    "increased when combined": 110272,
    "increased when combined with": 110272,
    "increased when it": 131971,
    "increased when it is": 131971,
    "increased when it is combined": 131971,
    "increased when it is combined with": 131971,
    "is": 1384692,
    "is combined": 1381653,
    "is combined with": 1381653,
    "it": 172075,
    "it is": 172075,
    "it is combined": 172075,
    "it is combined with": 172075,
    "level.": 352172,
    "may": 724712,
    "may decrease": 443399,
    "may decrease the": 441894,
    "may decrease the excretion": 352172,
    "may decrease the excretion rate": 352172,
    "may decrease the excretion rate of": 352172,
    "may increase": 281313,
    "may increase the": 281293,
    "metabolism": 405067,
    "metabolism of": 405067,
    "of": 2841473,
    "of CNS": 289998,
    "of CNS depression": 289998,
    "of CNS depression can": 289952,
    "of CNS depression can be": 289952,
    "of CNS depression can be increased": 289952,
    "of CNS depression can be increased when": 289952,
    "of adverse": 331708,
    "of adverse effects": 331153,
    "of adverse effects can": 331153,
    "of adverse effects can be": 331153,
    "of adverse effects can be increased": 330711,
    "of adverse effects can be increased when": 330711,
    "or": 1209578,
    "or severity": 1209578,
    "or severity of": 1209578,
    "or severity of CNS": 289998,
    "or severity of CNS depression": 289998,
    "or severity of CNS depression can": 289952,
    "or severity of CNS depression can be": 289952,
    "or severity of CNS depression can be increased": 289952,
    "or severity of CNS depression can be increased when": 289952,
    "or severity of adverse": 331153,
    "or severity of adverse effects": 331153,
    "or severity of adverse effects can": 331153,
    "or severity of adverse effects can be": 331153,
    "or severity of adverse effects can be increased": 330711,
    "or severity of adverse effects can be increased when": 330711,
    "rate": 412560,
    "rate of": 412560,
    "result": 412560,
    "result in": 412560,
    "result in a": 412560,
    "result in a higher": 352172,
    "result in a higher serum": 352172,
    "result in a higher serum level.": 352172,
    "risk": 1211679,
    "risk or": 1209578,
    "risk or severity": 1209578,
    "risk or severity of": 1209578,
    "risk or severity of CNS": 289998,
    "risk or severity of CNS depression": 289998,
    "risk or severity of CNS depression can": 289952,
    "risk or severity of CNS depression can be": 289952,
    "risk or severity of CNS depression can be increased": 289952,
    "risk or severity of CNS depression can be increased when": 289952,
    "risk or severity of adverse": 331153,
    "risk or severity of adverse effects": 331153,
    "risk or severity of adverse effects can": 331153,
    "risk or severity of adverse effects can be": 331153,
    "risk or severity of adverse effects can be increased": 330711,
    "risk or severity of adverse effects can be increased when": 330711,
    "serum": 606876,
    "serum concentration": 194314,
    "serum concentration of": 171392,
    "serum level.": 352172,
    "severity": 1209578,
    "severity of": 1209578,
    "severity of CNS": 289998,
    "severity of CNS depression": 289998,
    "severity of CNS depression can": 289952,
    "severity of CNS depression can be": 289952,
    "severity of CNS depression can be increased": 289952,
    "severity of CNS depression can be increased when": 289952,
    "severity of adverse": 331153,
    "severity of adverse effects": 331153,
    "severity of adverse effects can": 331153,
    "severity of adverse effects can be": 331153,
    "severity of adverse effects can be increased": 330711,
    "severity of adverse effects can be increased when": 330711,
    "the": 747047,
    "the excretion": 412560,
    "the excretion rate": 412560,
    "the excretion rate of": 412560,
    "therapeutic": 277690,
    "therapeutic efficacy": 277690,
    "therapeutic efficacy of": 277690,
    "used": 279108,
    "used in": 279108,
    "used in combination": 279108,
    "used in combination with": 279108,
    "when": 2091852,
    "when combined": 431091,
    "when combined with": 431091,
    "when it": 172075,
    "when it is": 172075,
    "when it is combined": 172075,
    "when it is combined with": 172075,
    "when used": 278170,
    "when used in": 278170,
    "when used in combination": 278170,
    "when used in combination with": 278170,
    "which": 412560,
    "which could": 412560,
    "which could result": 412560,
    "which could result in": 412560,
    "which could result in a": 412560,
    "which could result in a higher": 352172,
    "which could result in a higher serum": 352172,
    "which could result in a higher serum level.": 352172,
    "with": 2091852
}

These are the different risk/severity items, which we will need to map:
{
    "Anticonvulsant Toxicity": 4,
    "CNS depression": 289952,
    "CNS depression and hypotonia": 46,
    "Cardiac Arrhythmia": 2592,
    "Cardiac Arrhythmia and CNS stimulation": 46,
    "Cardiovascular Impairment": 36,
    "Hypertrichosis": 2,
    "QTc prolongation": 91758,
    "QTc prolongation and Cardiac Arrhythmia": 6,
    "QTc prolongation and hypotension": 30,
    "QTc prolongation and serotonin syndrome": 2,
    "QTc prolongation and torsade de pointes": 878,
    "QTc prolongation and ventricular arrhythmias": 648,
    "QTc prolongation, torsade de pointes, and Cardiac Arrhythmia": 2,
    "QTc prolongation, torsade de pointes, and cardiotoxicity": 62,
    "QTc prolongation, torsade de pointes, hypokalemia, hypomagnesemia, and cardiac arrest": 14,
    "QTc prolongation, ventricular arrhythmias, torsade de pointes, and convulsion": 4,
    "Reye's syndrome": 78,
    "Stevens-Johnson syndrome": 2,
    "Tachycardia": 23486,
    "Tachycardia and drowsiness": 2140,
    "Thrombosis": 4566,
    "adverse effects": 331153,
    "anemia": 12,
    "angioedema": 3388,
    "bleeding": 51614,
    "bleeding and bruising": 1890,
    "bleeding and gastrointestinal bleeding": 64,
    "bleeding and hemorrhage": 24140,
    "bleeding and thrombocytopenia": 88,
    "bleeding, nephrotoxicity, and gastrointestinal bleeding": 152,
    "bradycardia": 2634,
    "bronchospasm, shortness of breath, and dyspnea": 14,
    "cardiac arrest": 2,
    "cardiotoxicity": 590,
    "cardiovascular complications": 26,
    "confusion, irritability, and sleep disorders": 12,
    "congestive heart failure": 26,
    "congestive heart failure and hypotension": 70,
    "congestive heart failure, bleeding, hypotension, and Tachycardia": 20,
    "constipation": 656,
    "cytopenia": 40,
    "cytotoxicity": 2,
    "death": 2,
    "dehydration": 7532,
    "drowsiness and CNS depression": 2,
    "edema formation": 4617,
    "electrolyte abnormality": 38,
    "electrolyte imbalance": 2028,
    "elevated intracranial pressure": 772,
    "extrapyramidal symptoms": 1682,
    "extrapyramidal symptoms and CNS depression": 60,
    "fluid retention": 612,
    "gastrointestinal bleeding": 10504,
    "gastrointestinal bleeding and gastrointestinal ulceration": 18,
    "gastrointestinal bleeding and peptic ulcer": 206,
    "gastrointestinal bleeding and thrombocytopenia": 36,
    "gastrointestinal irritation": 13120,
    "gastrointestinal ulceration": 240,
    "gastrointestinal ulceration and gastrointestinal irritation": 125,
    "generalized seizure": 4,
    "generalized seizure and bradycardia": 2,
    "gouty arthritis": 2,
    "granulocytopenia": 28,
    "hemorrhage": 3006,
    "hemorrhage, gastrointestinal bleeding, and gastrointestinal ulceration": 2,
    "hemorrhagic cystitis": 2,
    "hyperbilirubinemia": 2,
    "hypercalcemia": 484,
    "hypercoagulability": 4,
    "hyperglycemia": 15498,
    "hyperkalemia": 26786,
    "hyperkalemia and metabolic acidosis": 2,
    "hyperkinetic symptoms": 6,
    "hypersensitivity reaction": 74,
    "hypertension": 77781,
    "hypertension and Tachycardia": 18,
    "hypertension and cardiovascular complications": 62,
    "hypertension and tardive dyskinesia": 46,
    "hypertension, hyponatremia, and water intoxication": 208,
    "hyperthermia and oligohydrosis": 240,
    "hypocalcemia": 210,
    "hypoglycemia": 28220,
    "hypokalemia": 7720,
    "hyponatremia": 644,
    "hyponatremia and water intoxication": 46,
    "hypotension": 8968,
    "hypotension and CNS depression": 2242,
    "hypotension and hyperkalemia": 8,
    "hypotension and orthostatic hypotension": 728,
    "hypotension and priapism": 20,
    "hypotension and sinus node depression": 24,
    "hypotension and syncope": 780,
    "hypotension, bradycardia, and Cardiac Arrhythmia": 2,
    "hypotension, hyperglycemia, and hyperuricemia": 8,
    "hypotension, hyperkalemia, and nephrotoxicity": 54,
    "hypotension, hyperkalemia, and reduced intravascular volume": 30,
    "hypotension, nitritoid reactions, facial flushing, nausea, and vomiting": 54,
    "hypotension, sedation, death, somnolence, and respiratory depression": 1296,
    "immunosuppression": 1909,
    "increased glucose": 2,
    "increased serum creatinine": 2,
    "increased transaminases": 10,
    "infection": 6150,
    "infection and neutropenia": 12,
    "intraocular pressure": 2,
    "jaw osteonecrosis": 2,
    "jaw osteonecrosis and anti-angiogenesis": 428,
    "lactic acidosis": 64,
    "leukopenia": 2,
    "liver damage": 312,
    "liver enzyme elevations": 212,
    "metabolic acidosis": 38,
    "methemoglobinemia": 66658,
    "mucosal ulceration and ischemic colitis": 16,
    "myelosuppression": 1120,
    "myelosuppression, anemia, and severe leukopenia": 54,
    "myocardial depression": 32,
    "myopathy": 34,
    "myopathy and rhabdomyolysis": 292,
    "myopathy and weakness": 2218,
    "myopathy, rhabdomyolysis, and myoglobinuria": 6864,
    "nephrotoxicity": 23358,
    "nephrotoxicity and hypocalcemia": 1672,
    "neuromuscular blockade": 2742,
    "neuropsychiatric effects": 1310,
    "neutropenia": 820,
    "neutropenia and thrombocytopenia": 2050,
    "orthostatic hypotension": 224,
    "orthostatic hypotension and dizziness": 326,
    "orthostatic hypotension and syncope": 312,
    "osteomalacia": 16,
    "ototoxicity": 14,
    "ototoxicity and nephrotoxicity": 106,
    "peripheral neuropathy": 264,
    "progressive multifocal leukoencephalopathy and immunosuppression": 2,
    "pseudotumor cerebri": 396,
    "psychotic reaction": 2,
    "pulmonary toxicity": 50,
    "rash": 1,
    "rash, hypersensitivity reaction, Stevens-Johnson syndrome, and Cutaneous drug reaction": 2,
    "reduced gastrointestinal motility": 504,
    "renal failure": 1172,
    "renal failure and hypertension": 404,
    "renal failure and hypotension": 82,
    "renal failure, hyperkalemia, and hypertension": 9398,
    "renal failure, hypotension, and hyperkalemia": 1360,
    "respiratory depression": 468,
    "rhabdomyolysis": 20,
    "rhabdomyolysis, myoglobinuria, and elevated creatine kinase (CPK)": 14,
    "sedation": 3094,
    "sedation and CNS depression": 1086,
    "sedation and extrapyramidal symptoms": 2,
    "sedation and orthostatic hypotension": 36,
    "sedation and somnolence": 400,
    "sedation, somnolence, and CNS depression": 2226,
    "seizure": 918,
    "seizure and encephalopathy": 2,
    "serotonin syndrome": 12086,
    "serotonin syndrome and hypomania": 58,
    "serotonin syndrome and neuroleptic malignant syndrome": 4,
    "serotonin syndrome and opioid toxicity": 62,
    "serotonin syndrome and seizure": 70,
    "sinus node depression": 2,
    "somnolence and peripheral neuropathy": 4,
    "tendinopathy": 4053,
    "thrombocytopenia": 316,
    "thromboembolism": 158,
    "torsade de pointes": 10,
    "torsade de pointes and Cardiac Arrhythmia": 4,
    "tumor lysis syndrome": 2,
    "ulceration": 125,
    "urinary retention": 238,
    "urinary retention and constipation": 176,
    "urinary retention, reduced gastrointestinal motility, and constipation": 168,
    "vasospastic reactions": 120,
    "ventricular arrhythmias": 2,
    "ventricular arrhythmias and Cardiac Arrhythmia": 490,
    "ventricular arrhythmias and torsade de pointes": 2,
    "ventricular arrhythmias, bradycardia, and heart block": 270,
    "visual accommodation disturbances": 2,
    "water intoxication": 2,
    "weight gain and edema formation": 16
}

The increase/decrease activity items were extracted with this code. These sentences account for about 310,627 of the total 2,839,486 (about 10%).
def may_impact_activities(sentence):
    increased = " may increase the "
    decreased = " may decrease the "
    dir_flag = ""
    middle1 = ""

    middle2 = " activities of "

    if increased in sentence and middle2 in sentence:
        dir_flag = "increased"
        middle1 = increased
    elif decreased in sentence and middle2 in sentence:
        dir_flag = "decreased"
        middle1 = decreased
    else:
        return None, None

    sentence_div1 = sentence.split(middle1)
    item1 = sentence_div1[0]

    sentence_cut1 = sentence.replace(item1 + middle1, "")
    sentence_div2 = sentence_cut1.split(middle2)
    activity = sentence_div2[0]
    item2 = sentence_div2[1]

    return activity, (item1, dir_flag, activity, item2)

These are the different increase/decrease activity of items that will need to be mapped:
{
    "Change in thyroid function": 120,
    "Decreased alertness": 2,
    "Pseudotumor Cerebri": 28,
    "QTc-prolonging": 2344,
    "QTc-prolonging and arrhythmogenic": 4,
    "alpha-adrenergic": 62,
    "analgesic": 2158,
    "anticholinergic": 1546,
    "anticoagulant": 16507,
    "antihypertensive": 71674,
    "antiplatelet": 1630,
    "antipsychotic": 360,
    "arrhythmogenic": 21434,
    "arrhythmogenic and cardiotoxic": 366,
    "atrioventricular blocking (AV block)": 110,
    "atrioventricular blocking (AV block) and arrhythmogenic": 26,
    "atrioventricular blocking (AV block) and tachycardic": 2,
    "bradycardic": 9552,
    "bradycardic, atrioventricular blocking (AV block), and arrhythmogenic": 26,
    "bronchoconstrictory": 74,
    "bronchodilatory": 862,
    "cardiodepressant": 206,
    "cardiotoxic": 1046,
    "central nervous system depressant (CNS depressant)": 27016,
    "constipating": 2,
    "dermatologic adverse": 2,
    "diuretic": 138,
    "fluid retaining and vasopressor": 112,
    "gastrointestinal motility reducing": 242,
    "hepatotoxic": 500,
    "hepatotoxic and myelosuppressive": 2,
    "hypercalcemic": 38,
    "hyperkalemic": 10156,
    "hypertensive": 3852,
    "hypertensive and vasoconstricting": 3246,
    "hypoglycemic": 17592,
    "hypokalemic": 1019,
    "hypolipidaemic": 18,
    "hypotensive": 42649,
    "hypotensive and Electrolyte Disturbance": 118,
    "hypotensive and central nervous system depressant (CNS depressant)": 28,
    "hypotensive and hyperkalemic": 2,
    "hypotensive and vasodilatory": 24,
    "hypothyroid": 6,
    "immunosuppressive": 3064,
    "myelosuppressive": 246,
    "myopathic rhabdomyolysis": 52,
    "nephrotoxic": 1818,
    "nephrotoxic and neuromuscular blocking": 2,
    "nephrotoxic and ototoxic": 2,
    "neuroexcitatory": 6288,
    "neuromuscular blocking": 5790,
    "neurotoxic": 5686,
    "neutropenic": 4,
    "opioid antagonism": 78,
    "orthostatic hypotensive": 5302,
    "orthostatic hypotensive and hypotensive": 24,
    "orthostatic hypotensive, hypotensive, and antihypertensive": 2138,
    "ototoxic": 54,
    "pancreatitis": 2,
    "photosensitizing": 220,
    "sedative": 9548,
    "serotonergic": 3074,
    "serotonergic and central nervous system depressant (CNS depressant)": 118,
    "skeletal muscle relaxing": 4,
    "smooth muscle relaxing": 29,
    "stimulatory": 2594,
    "sympathomimetic": 272,
    "tachycardic": 1242,
    "teratogenic": 2,
    "thrombogenic": 21546,
    "uterotonic": 19,
    "vasoconstricting": 1758,
    "vasodilatory": 1916,
    "vasopressor": 834
}

This map covers all of the sentence types in the DrugBank drug interaction field: (the keys are placeholders for the fields that change with each entry)
"risk_or_severity_increase": ["The risk or severity of ", DISEASE_KEY, " can be increased when ", MAIN_DRUG_KEY " is combined with ", INTERACTION_DRUG_KEY]
"risk_or_severity_decrease": ["The risk or severity of ", DISEASE_KEY, " can be decreased when ", MAIN_DRUG_KEY " is combined with ", INTERACTION_DRUG_KEY]
"may_impact_activity_increase": [MAIN_DRUG_KEY, " may increase the ", ACTIVITY_KEY, " activities of ", INTERACTION_DRUG_KEY]
"may_impact_activity_decrease": [MAIN_DRUG_KEY, " may decrease the ", ACTIVITY_KEY, " activities of ", INTERACTION_DRUG_KEY]
"therapeutic_efficacy_increase": ["The therapeutic efficacy of ", INTERACTION_DRUG_KEY, " can be increased when used in combination with ", MAIN_DRUG_KEY]
"therapeutic_efficacy_decrease": ["The therapeutic efficacy of ", INTERACTION_DRUG_KEY, " can be decreased when used in combination with ", MAIN_DRUG_KEY]
"higher_serum_level": [MAIN_DRUG_KEY, " may decrease the excretion rate of ", INTERACTION_DRUG_KEY, " which could result in a higher serum level"]
"metabolism_increase": ["The metabolism of ", MAIN_DRUG_KEY, " can be increased when combined with ", INTERACTION_DRUG_KEY]
"metabolism_decrease": ["The metabolism of ", MAIN_DRUG_KEY, " can be decreased when combined with ", INTERACTION_DRUG_KEY]
"serum_concentration_increase": ["The serum concentration of ", MAIN_DRUG_KEY, " can be increased when it is combined with ", INTERACTION_DRUG_KEY]
"serum_concentration_decrease": ["The serum concentration of ", MAIN_DRUG_KEY, " can be decreased when it is combined with ", INTERACTION_DRUG_KEY]
"excretion_rate_increase": [INTERACTION_DRUG_KEY, " may increase the excretion rate of ", MAIN_DRUG_KEY, " which could result in a lower serum level and potentially a reduction in efficacy"]
"absorption_decrease": [INTERACTION_DRUG_KEY, " can cause a decrease in the absorption of ", MAIN_DRUG_KEY, " resulting in a reduced serum concentration and potentially a decrease in efficacy"]
"excretion_increase": ["The excretion of ", MAIN_DRUG_KEY, " can be increased when combined with ", INTERACTION_DRUG_KEY]
"excretion_decrease": ["The excretion of ", MAIN_DRUG_KEY, " can be decreased when combined with ", INTERACTION_DRUG_KEY]
"active_metabolites_increase": ["The serum concentration of the active metabolites of ", INTERACTION_DRUG_KEY, " can be increased when ", INTERACTION_DRUG_KEY, " is used in combination with ", MAIN_DRUG_KEY]
"active_metabolites_decrease": ["The serum concentration of the active metabolites of ", INTERACTION_DRUG_KEY, " can be decreased when ", INTERACTION_DRUG_KEY, " is used in combination with ", MAIN_DRUG_KEY]
"bioavailibility_decrease": ["The bioavailability of ", MAIN_DRUG_KEY, " can be decreased when combined with ", INTERACTION_DRUG_KEY]
"bioavailibility_increase": ["The bioavailability of ", MAIN_DRUG_KEY, " can be increased when combined with ", INTERACTION_DRUG_KEY]
"diagnostic_agent_effectiveness_decrease": [INTERACTION_DRUG_KEY, " may decrease effectiveness of ", MAIN_DRUG_KEY, " as a diagnostic agent"]
"absorption_increase": [MAIN_DRUG_KEY, " can cause an increase in the absorption of ", INTERACTION_DRUG_KEY, " resulting in an increased serum concentration and potentially a worsening of adverse effects"]
"diagnostic_agent_effectiveness_increase": [INTERACTION_DRUG_KEY, " may increase effectiveness of ", MAIN_DRUG_KEY, " as a diagnostic agent"]
"absorption_of_decreased": ["The absorption of ", INTERACTION_DRUG_KEY, " can be decreased when combined with ", MAIN_DRUG_KEY]
"protein_binding_decrease": ["The protein binding of ", INTERACTION_DRUG_KEY, " can be decreased when combined with ", MAIN_DRUG_KEY]
"hypersensitivity_reaction_increase": ["The risk of a hypersensitivity reaction to ", INTERACTION_DRUG_KEY, " is increased when it is combined with ", MAIN_DRUG_KEY]
"serum_concentration_of_active_metabolites": ["The serum concentration of the active metabolites of ", MAIN_DRUG_KEY, " can be reduced when ", MAIN_DRUG_KEY, " is used in combination with ", INTERACTION_DRUG_KEY, " resulting in a loss in efficacy"]
"serum_concentration_increased_in_combination": ["The serum concentration of ", INTERACTION_DRUG_KEY, ", an active metabolite of ", MAIN_DRUG_KEY, ", can be increased when used in combination with ", MAIN_DRUG_KEY]
"serum_concentration_decreased_in_combination": ["The serum concentration of ", INTERACTION_DRUG_KEY, ", an active metabolite of ", MAIN_DRUG_KEY, ", can be decreased when used in combination with ", MAIN_DRUG_KEY]

Here are the counts for each sentence type:
{
    "absorption_decrease": 22367,
    "absorption_increase": 555,
    "absorption_of_decreased": 648,
    "active_metabolites_decrease": 154,
    "active_metabolites_increase": 578,
    "bioavailibility_decrease": 1844,
    "bioavailibility_increase": 170,
    "diagnostic_agent_effectiveness_decrease": 1505,
    "diagnostic_agent_effectiveness_increase": 20,
    "excretion_decrease": 19972,
    "excretion_increase": 570,
    "excretion_rate_increase": 60388,
    "higher_serum_level": 352172,
    "hypersensitivity_reaction_increase": 2101,
    "may_impact_activity_decrease": 89722,
    "may_impact_activity_increase": 220905,
    "metabolism_decrease": 295535,
    "metabolism_increase": 109532,
    "protein_binding_decrease": 2820,
    "risk_or_severity_decrease": 986,
    "risk_or_severity_increase": 1208592,
    "serum_concentration_decrease": 40104,
    "serum_concentration_decreased_in_combination": 44,
    "serum_concentration_increase": 129870,
    "serum_concentration_increased_in_combination": 436,
    "serum_concentration_of_active_metabolites": 206,
    "therapeutic_efficacy_decrease": 232445,
    "therapeutic_efficacy_increase": 45245
}

02f1cbb contains the code for identifying and extracting information from the different sentence types. A few disclaimers:

I tried to verify places where interaction drug vs main drug occur, but sometimes it didn't seem standardized. Hopefully, the cases where it isn't standard will use symmetric predicates. Otherwise, we will need to figure that out.
We don't actually need the names of the drugs (we have the IDs for that), but it is helpful to extract them for verification purposes.
We do need the names of the diseases and activities, because we will have to map those ourselves.

This should hopefully be a good stepping stone towards #369 (to include other free text information from DrugBank in KG2).


Feature request: ability to cache downloaded scenes in ThreeJS cache

It would be nice to be able to enable caching of scenes loaded with addSplatScene or addSplatScenes using both regular and progressive loading. Ideally, the splatBuffer would be cached so that when the addSplatScene or addSplatScenes function is called again, the cached splatBuffer would be parsed into the splatMesh again.

Sorry for the delayed response, this should be a pretty straightforward thing to add so I'll try to get it into a release soon.


[DT-190] Reveal all workflow ID

What was changed

Wraps Workflow ID instead of truncates it in the table on the Recent Workflow page so it is always visible.
Checklist

Closes: DT-190

How was this tested:

[ ] Verify workflow summary with filters is responsive
[ ] Verify workflow summary with filters and bulk actions is responsive
[ ] Verify workflow summary (without filters) is responsive

Any docs updates needed? n/a

Looks much better! Only thing I would suggest is giving the workflow ID column more width when the date fields are removed (i think md and lg break points, sm looks good).

One more thing, we'll want more width on the 'Select all' column on sm.

One last final thing, I think we still want the awesome gradient for the row on hover.


Tracking Italian automated translation review

The italian translation has been automatically generated in the past.
For this reason, in June 2019 it has been disabled.
To re-enable it, we should firstly review all currently translated pages, and improve them so that it's easily readable by humans.
The goal of this issue, is to track such progress.
Pages

[ ] blog/_index.md (#18383)
[ ] case-studies/comcast/comcast_logo.png
[ ] case-studies/comcast/index.html
[ ] case-studies/_index.md
[ ] _common-resources/index.md
[ ] community/code-of-conduct.md
[ ] community/_index.html
[ ] community/static/cncf-code-of-conduct.md
[ ] community/static/README.md
[ ] docs/concepts/architecture/cloud-controller.md
[ ] docs/concepts/architecture/_index.md
[ ] docs/concepts/architecture/master-node-communication.md
[ ] docs/concepts/architecture/nodes.md
[ ] docs/concepts/cluster-administration/addons.md
[ ] docs/concepts/cluster-administration/certificates.md
[ ] docs/concepts/cluster-administration/cloud-providers.md
[ ] docs/concepts/cluster-administration/cluster-administration-overview.md
[ ] docs/concepts/cluster-administration/controller-metrics.md
[ ] docs/concepts/cluster-administration/federation.md
[ ] docs/concepts/cluster-administration/_index.md
[ ] docs/concepts/cluster-administration/kubelet-garbage-collection.md
[ ] docs/concepts/cluster-administration/logging.md
[ ] docs/concepts/cluster-administration/manage-deployment.md
[ ] docs/concepts/cluster-administration/networking.md
[ ] docs/concepts/cluster-administration/proxies.md
[ ] docs/concepts/example-concept-template.md
[ ] docs/concepts/_index.md
[ ] docs/concepts/overview/kubernetes-api.md
[ ] docs/concepts/overview/what-is-kubernetes.md
[ ] examples/admin/logging/fluentd-sidecar-config.yaml
[ ] examples/admin/logging/two-files-counter-pod-agent-sidecar.yaml
[ ] examples/admin/logging/two-files-counter-pod-streaming-sidecar.yaml
[ ] examples/admin/logging/two-files-counter-pod.yaml
[ ] examples/application/nginx-app.yaml
[ ] examples/debug/counter-pod.yaml
[ ] includes/federation-deprecation-warning-note.md
[ ] includes/index.md
[ ] _index.html
[ ] OWNERS
[ ] partners/_index.html

/language it

@Fale I think you can exclude OWNERS
Also, all the example manifests look up-to-date. I checked using a tool:
find content/it/examples -type f | while read manifest; do git diff --no-index "${manifest}" "$( printf "%s" "${manifest}" | sed -e 's,/it/,/en/,' )"; done

and also visually scanned for text that would need localizing.

includes/index.md is fine too.

Excluding OWNERS is ok, but considering that we are at the beginning of this effort and that the well-known issues about the existing translations, I think we should double-check everything no matter if they look up to date.

I confirm you that content/it/examples/* are checked.

/remove-lifecycle stale

@Fale I'm closing this since we are now on master and we would like to track progress about reviewing/translating pages under concepts using separated issues
/close


  It doesn’t work, because the API is still access controlled.

:shipit:


swap "And we invoke our newly created function" to "And invoke our function from the root directory of the project."

Proposal for change, swap "And we invoke our newly created function" to "And invoke our function from the root directory of the project."

@topguncharl Can you edit the page where you see this and submit a pull request?


Change regex to require non-empty string

Currently a title check will fail on following WFLY-666 and pass on one with an space WFLY-666 . However the second one should also fail. We should require non-empty string. So the defaul pattern in Format should be changed from ... .* to ... .+

This was changed to matcho WFLY-666 anywhere in the string. Closing.


fix persistent favorites after rename

This pull request addresses the #58498 issue. Although the code is very similar, or rather identical, I think it would unnecessary interconnect two sort of separated modules, if was put in some kind of function.

I updated the code to erase() from the vector from the end.

@DanielKriz In the future, you should make a new branch before opening a PR. But this PR's Git history looks good now.

I did some real chaos here with my poor github skills, I am sorry to anyone that has been affected

Thanks!

Cherry-picked for 3.5.


Define new objective function

It seems that xgboost takes the Taylor expansion of the loss function up to the second order. So can we define our own loss function? How to modify the code to achieve that? BTW, I use python interface of xgboost

got help from here


python311Packages.circus: fix tests on darwin

Description of changes
On darwin the tests complain about too many open files. Technically increasing the number of open files should fix this, but I don't have a Darwin machine to test this on.
ZHF: #265948

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Builds for me on {x86_64,aarch64}-darwin

Ah. Thanks @wegank. I should've at least tried it on linux...


Button in sidekick,  to switch page in wcmmode=disabled

As we use "wcmmode=disabled" very frequently to test our pages.
By using "wcmmode=disabled" page get loaded as it is usually the case on a 'publish' instance where the normal WCM capabilities are disabled.
So it will be good if we add a button in sidekick to do this job to save our time as shown below:
ScreenShot: https://cloud.githubusercontent.com/assets/7764899/4107465/1e386c62-31c8-11e4-9d3e-bac58e262d33.png
Here is a clientlib package with js which add button in sidekick and on hit of button its reload same page wcm disabled mode.
Eg:
URL Before : http://localhost:4502/cf#/content/actemrahcp/en_us.html
URL After : http://localhost:4502/content/actemrahcp/en_us.html?wcmmode=disabled
Thanks,
Gaurav Jasiwal.

Is this solved, or if not, still relevant?

This exists in TouchUI Page Editor now


App crashes after tns debug android --debug-brk and trying to debug with "Step into/over"

Tell us about the problem
Android app crashes when using --debug-brk and try to debug the app in Dev Chrome tools.
Doesn't happen when  tne debug android
Happens only for Android.
ActivityManager: Process org.nativescript.DebugApp (pid 9660) has died: vis  +99TOP
Please provide the following version numbers that your issue occurs with:

CLI: rc - 3.4.0-2017-12-12-10244
Cross-platform modules: 3.4.0-rc-2<IP_ADDRESS>
Runtime(s): 3.4.0-rc-2<IP_ADDRESS>

Please tell us how to recreate the issue in as much detail as possible.

tns debug android --debug-brk
Open Dev Chrome tools URL
Click on Step over/into btn

@Natalia-Hristova I can confirm that behavior, I also managed to isolate the crash to the v8 inspector 'debug' agent code - it would appear that the runtime pauses too early (in the ts_helpers.js script).
One solution would be to force pause after the runtime has executed the aforementioned script, however at this point the breakpoint will occur in a script irrelevant to the user (see image) - the require override logic as implemented in Javascript.

An alternative to the proposal above would be to not force pausing at all, and rely entirely on user-defined in-code breakpoints - debugger; statements. This won't be much more different to what is being done currently, as you can't place gutter breakpoints (clicking next to the line number in the script source explorer in Chrome DevTools).

@Plamen5kov I'd like to know what you think about the problem, and the proposed solutions.

I'd really like us to have a --debug-brk flag because it's a command valid for both platforms and it's commonly known. The alternative you provided is also a valid one that provides the functionality users will need, but let's brainstorm some more before committing to anything.

@Plamen5kov my second proposal does not eliminate --debug-brk - the application will still pause, and wait for the debugger to be attached, it just wont pause in the first script, but rather on the first encountered program breakpoint (debugger;)

I understand that, but I still find --debug-brk to have a specific behavior that's common knowledge - stop on the first file. I see no problem for the --debug-brk to stop at the require logic, as it is no more known to the user than ts_helpers file.

@Plamen5kov I would like us to avoid the situation where users are a bit confused, and would come filing bug reports stating that they've started their debug session, and a yellow (usually indicative of warnings - in the case of Chrome DevTools it's how scripts in the virtual machine show up) window opens up in front of their eyes, and they may not know whether to restart the session or to continue their debugging session - to 'Play (F8)'

You're right, but better to have the flag and break, than to have the flag and do nothing keeping in mind they don't have any debugger statements in the best scenario. I think it's easier to get you can click continue or F8 than, find in our documentation you need to have a debugger statement.
Maybe we can brainstorm for a way to stop on the first user file, not on the first parsed and loaded script?

@Plamen5kov the proposal came after I tinkered with the code some - moving the pausing logic after ts_helpers, and right before executing the entry-point script, however V8 runs the require override defined in ModuleInternal.cpp, causing the debugger to pause 'on the first script line'.

@Pip3r4o maybe we can move the inspector client callbacks after the internal module initialization which executes the require wrap logic. The problem I find here is, we'll lose the ability to debug the wrap require logic, which maybe isn't so bad when I think about it.

@Plamen5kov that might just work! I'll test it out on Monday and let you know how it went!

@Plamen5kov that did not fix the behavior with pausing inside the requireOverride, the inspector logic inside the runtime::init only attaches certain callbacks to the global object, events happen asynchronously however :-/


Update ACM Connector docs

Try to make the difference between the ACM/ACI connectors more clear, and help users pick the right one.

@woodbridge : Thanks for your contribution! The author, @davidiseminger, has been notified to review your proposed change.


fix a typo

Hi! Don't worry about the weird errors. We generate JSON schemas for our types and doc comments are part of these.
Could you please regenerate them? Just run ./devtools/check_contracts_medium.sh and then commit the results. Things should work then.

I executed ./devtools/check_contracts_medium.sh but the following error is issued.
    Checking ibc-reflect v0.0.0 (xxx/cosmwasm-forked/contracts/ibc-reflect)
error: this expression borrows a reference (`&std::string::String`) that is immediately dereferenced by the compiler
   --> src/contract.rs:168:40
    |
168 |     pending_channel(deps.storage).save(&chan_id)?;
    |                                        ^^^^^^^^ help: change this to: `chan_id`
    |
    = note: `-D clippy::needless-borrow` implied by `-D warnings`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler
   --> src/contract.rs:468:37
    |
468 |                 events: fake_events(&REFLECT_ADDR),
    |                                     ^^^^^^^^^^^^^ help: change this to: `REFLECT_ADDR`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

error: this expression borrows a reference (`&cosmwasm_std::Binary`) that is immediately dereferenced by the compiler
   --> src/contract.rs:556:54
    |
556 |             let rmsg: ReflectExecuteMsg = from_slice(&msg).unwrap();
    |                                                      ^^^^ help: change this to: `msg`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

error: could not compile `ibc-reflect` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

It looks not related with this PR. So, instead of it, I executed cargo schema in three contracts.

It looks not related with this PR. So, instead of it, I executed cargo schema in three contracts.

That's fair. You probably just have a different version of clippy than we use in our CI.

Thanks!

I'm surprised thoose lint issues were not detected as part of https://github.com/CosmWasm/cosmwasm/pull/1013. @loloicci which rustc --version are you using?

I'm surprised thoose lint issues were not detected as part of #1013. @loloicci which rustc --version are you using?

These are from nightly it seems.


Fix String::split[_floats] crashes, better error macros

As discussed on IRC this days:

Fix a bug where calling String::split[_floats] would crash the engine (wrong pointer cast)
Add String::split_ints function which is missing
Update the WARN/ERR macros to be more compatible with Godot modules (possibly, in the future, FUNCTION, FILE, and so on, will be printed too to mimic modules behaviour).

I'll leave the ADD_SIGNAL macro for another PR I still fear it's a bit hacky, and I'll like to do more tests before

We will change the way the branches here work, so the current nativescript-1.1 branch will become the "master" branch. So I'd like to take this PR, but a rebase is needed :)
Grazie


Missing no-duplicate-key implementation

Bug Report

TSLint version: 4.0.0-dev0
TypeScript version: 2.0.3
Running TSLint via: CLI

Actual behavior
Error:
            Could not find implementations for the following rules specified in the configuration:
            no-duplicate-key
            Try upgrading TSLint and/or ensuring that you have all necessary custom rules installed.
            If TSLint was recently upgraded, you may have old rules configured which need to be cleaned up.

Expected behavior
To have a no-duplicate-key implementation
It's the rule no-duplicate-key have been remove or rename or something?

Yes, it was removed because this functionality is covered by the compiler now. Sorry I didn't get around to writing the changelog for v4.0.0-dev.0, but you can check out the milestone: https://github.com/palantir/tslint/milestone/26?closed=1
https://github.com/palantir/tslint/issues/885

Thanks! Will close this then. 😃

@adidahiya How would one get around this issue if they were using the development branch + using "extends": ["tslint:latest"] in their tslint.json? Is that not possible?

@dsifford do you mean 4.0.0-dev.0? It was removed from the built-in configurations in that release too... https://github.com/palantir/tslint/blob/4.0.0-dev.0/src/configs/recommended.ts

@adidahiya Hm.. Let me try again in a bit and report back.
Here's my build from earlier this afternoon that failed after bumping up to @next: https://travis-ci.org/dsifford/academic-bloggers-toolkit/builds/172345309
And here's the commit (you'll see 4.0.0-dev.0 listed in the yarn.lock file): https://github.com/dsifford/academic-bloggers-toolkit/pull/206/commits/10ab0bac9a0d2d362d7ac32ac789606c007ceec6
Let me know if I'm missing something obvious (which is generally the case!)
Also, please extend my thanks to the rest of the Palantir team for all their work on this. Such a critical part of my workflow! 💯 👍

@adidahiya Sorry for the delay.
This is an issue with tslint-microsoft-contrib and it appears to have been resolved in their master branch as of 11 days ago. Microsoft/tslint-microsoft-contrib#304
All good now 👍


Check for pre-existing operator roles and error if they exist

Related: SDA-4624
$ ./rosa create cluster --sts --operator-roles-prefix zg-oct-14-u8z3 -c zg-nov-3
W: More than one Installer role found
? Installer role ARN: arn:aws:iam::765374464689:role/ManagedOpenShift-Installer-Role
I: Using arn:aws:iam::765374464689:role/ManagedOpenShift-ControlPlane-Role for the ControlPlane role
I: Using arn:aws:iam::765374464689:role/ManagedOpenShift-Worker-Role for the Worker role
I: Using arn:aws:iam::765374464689:role/ManagedOpenShift-Support-Role for the Support role
E: Error validating role: A role named 'zg-oct-14-u8z3-openshift-machine-api-aws-cloud-credentials' already exists. Please delete the existing role, or provide a different prefix

@vkareh @pvasant @ciaranRoche PTAL

@zgalor  i think we need to  do this
"if when creating operator roles for a cluster rosa detects that they exist, we can compare the OIDC provider that they're attached to and error out"

@zgalor i think we need to do this
"if when creating operator roles for a cluster rosa detects that they exist, we can compare the OIDC provider that they're attached to and error out"

IIUC per my offline chat with @vkareh we can skip it and just error.
@vkareh ?

/lgtm


fix: resolve Etag issues

:tada: This PR is included in version 0.27.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


mvc/controllers/areas.rst Areas

Docs / aspnet / mvc / controllers / areas.rst  uses the @Html.ActionLink syntax (old) instead of TagHelpers, which would be more consistent.

[ ] Dev review/outline
[ ] Use TagHelpers, remove @Html.ActionLink
[ ] Update to RTM

@kichalla  I updated this in bumped up priority.

https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/areas shows both HtmlHelper  and TagHelper syntax


Migrate CI to Github Actions

The motivation for moving to Github Actions is to be able to run the integration suite.
Improvements

Integration tests pass

[x] ivp6 tests pass
[x] keystore tests pass

Update test matrix to support LTS & Latest Versions of Java -> [8, 11, 14]
Use a test matrix for better visibility of regression failures

Additionally, to get the :integration test suite passing, the following changes were required:

Re-generating the keystore and client-keystore to work on Java >= 11

Additional Notes
Commands to recreate the keystore & client-keystore to test Mutual TLS:
# Step 1: Create server keystore with private key
keytool -genkeypair -keyalg RSA -keysize 2048 -alias server -dname "CN=Hakan,OU=Amsterdam,O=Thunderberry,C=NL" -ext "SAN:c=DNS:localhost,IP:<IP_ADDRESS>" -validity 3650 -keystore keystore -storepass keykey -keypass keykey

# Step 2: Export server certificate from keystore
keytool -exportcert -keystore keystore -storepass keykey -alias server -rfc -file server.cer

# Step 3: Create client keystore and import server certificate
keytool -importcert -keystore client-keystore -file server.cer -alias server-storepass keykey

# Step 4: Create client private key and store in client-keystore
keytool -genkeypair -keystore client-keystore -keyalg RSA -keysize 2048 -alias client -dname "CN=Suleyman,OU=Altindag,O=Altindag,C=NL" -validity 3650 -storepass keykey -keypass keykey

# Step 5: Export client certificate from client-keystore
keytool -exportcert -keystore client-keystore -storepass keykey -alias client-rfc -file client.cer

# Step 6: Import client certificate into server keystore
keytool -keystore keystore -importcert -file client.cer -alias client -storepass keykey

LGTM (I assume #549 will be merged first?)

Yep! I just rebased this branch off of 3.x and the tests still pass 🎉 .


use_color_mode panic with 0.13.5

I'm including leptos-use like so in the Cargo.toml file:
leptos-use = "0.13.5"

The code that presumably results in the panic:
let UseColorModeReturn { mode, set_mode, .. } = use_color_mode();

The error in the console is pretty brief:
thread 'main' panicked at /Users/nfiedler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/js-sys-0.3.70/src/lib.rs:6035:9:
cannot call wasm-bindgen imported functions on non-wasm targets
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/thread/local.rs:260:26:
cannot access a Thread Local Storage value during or after destruction: AccessError
fatal runtime error: thread local panicked on drop

Any suggestions for how I can fix whatever I'm doing wrong? On a related note, I'm using use_drop_zone_with_options() with success on another page, but if I reload that page in the browser, a panic with a long stack trace appears in the console. Perhaps I'm doing something fundamentally wrong. The code for the drop zone usage, if you want to see it, is here: https://github.com/nlfiedler/tanuki/blob/main/src/preso/leptos/client/upload.rs
Versions: Rust 1.82, leptos 0.6.15, wasm-bindgen 0.2.93
Thank you.

Just tried using use_local_storage() and that, too, results in an immediate panic with the same cannot call wasm-bindgen imported functions on non-wasm targets error. How am I doing this so wrong?

Looks like you're using SSR without having configured it correctly. https://leptos-use.rs/server_side_rendering.html


Make node-opus context-aware

I don't know how much performance gain we can get from this, but when I tried to use this module in worker threads it throws errors. I patched it and now it should be context aware.
NOTE: I am no means a C++ developer. I merely follow instructions from here and referred to better-sqlite3's effort. I need someone to check and help improve this PR.

I'm archiving the repository for lack of interest in maintaining it.
I'm extremely grateful for the willingness to contribute! <3 Unfortunately I had kind of made the decision back in late 2019 (as the project was yet again broken by a Node.js upgrade) and never got back to you on this. Sorry. :x
Please see @discordjs/opus for an alternative implementation that is based this project but uses more stable Node.js module technology that should break less between Node.js versions.


Wrong image shown briefly

Hi CartJs team. I hope I am posting this in the correct repo. I am not 100% sure if this is a CartJS issue, a RivetsJs issues, or an implementation issue on my end. I have built a cart flyout that responds to the cart.requestComplete. When the event is fired it opens to show the contents of the cart.
When two items are added to cart at once, often times the same thumbnail image is shown for both items for a short period of time (~.5 - 5 seconds). Then the correct image is shown.
To see this in action, visit https://kammok.com/products/wallaby, select 'Add python straps' and click Add to cart. The issue happens most often on an empty cache.
Thanks in advance for your time on this.

+1

No repro.


Uncaught exception thrown of type AssertionError

When kompiling the following definition:
module TEST-SYNTAX
  syntax Stmt  ::= "COUNTER" "=" Id ";"
endmodule
module TEST
  imports TEST-SYNTAX
  syntax KResult ::= Int | Bool | String
  configuration <T color="yellow">
					<k> $PGM:Stmt</k>
				  <counters>
				  <counter multiplicity="*"> .K </counter>
				  </counters>
                </T>

	rule <k> COUNTER=I; =>. ...</k>
	     <counters> CT:Bag(.Bag =><counter> I </counter>) </counters>
endmodule

it results in  [Error] Internal: Uncaught exception thrown of type AssertionError.
Please rerun your program with the --debug flag to generate a stack trace, and
file a bug report at https://github.com/kframework/k/issues.
But if modify the counters cell in the rule as following:
module TEST-SYNTAX
  syntax Stmt  ::= "COUNTER" "=" Id ";"
endmodule
module TEST
  imports TEST-SYNTAX
  syntax KResult ::= Int | Bool | String
  configuration <T color="yellow">
					<k> $PGM:Stmt</k>
				  <counters>
				  <counter multiplicity="*"> .K </counter>
				  </counters>
                </T>

	rule <k> COUNTER=I; =>. ...</k>
	     <counters> CT:Bag =>CT (<counter> I </counter>) </counters>
endmodule

works well when being kompiled.

it looks like a bug in concretization. thanks for submitting!


Add brightness encoding to aggregated category matrix

Add brightness encoding to aggregated category matrix so the brightness would encode frequency of categories:

General feature -> moved to https://github.com/datavisyn/lineupjs/issues/115.


Unnecessary creation of signed certificate.

The code that generates a signed certificate for a host is doing some unnecessary work.
The CertUtils object is creating 2 certificates. Each signed by the issuer private key.
Double certificate creation
It will be good if this code can be made more efficient. Ideally only creating one signed certificate.
It will help reduce the risk of executor threads timing out and blocking. As seen in #1521

I thought generateX509Certificate is to create the cert and the following method to sign it. I might have been wrong. Anyway, we just need one signed cert.

Well the model in this BC book sample is to create a chain with root, intermediate and end entry certificates.
It appears the existing code is creating 3 certificates. Not quite identical to the above chain.
I suggest we only need 2. A root and end certificate. With the end certificate getting signed by the root.

A PR #1527 was created to implement this optimization. But due to a necessary change in the workflow it has been abandoned.


Release Google.Api.Gax version 4.0.0-alpha03

This will release GAX 4.0.0-alpha03, at which point another PR in google-cloud-dotnet should get the gax-v4 branch ready to run full unit and integration tests on CI.
(I'm waiting for PubSub tests to complete before creating that PR.)

Created release for Google.Api.Gax-4.0.0-alpha03


Serialize struct with additional root element

Sometimes structs/enums need an additional root element. This can be done with a single element enum like so:
#[derive(Serialize)]
enum Foobar {
    #[serde(rename = "root_field_name")]
    RootName{
        field_a: bool,
        field_b: u32,
    }
}

// as JSON
{
  "root_field_name": {
    "field_a": false,
    "field_b": 123
  }
}

A better solution would be a macro which adds the root element without requiring changing the struct.
Prior art

https://github.com/serde-rs/serde/issues/1345
https://crates.io/crates/serde_struct_wrapper

#![feature(adt_const_params)]

#[derive(Copy, Clone, Debug, Default)]
pub struct Layer<const FIELD: &'static str, T: ?Sized>(T);

impl<const FIELD: &'static str, T, U> SerializeAs<T> for Layer<FIELD, U>
where
    U: SerializeAs<T>,
    T: ?Sized,
    U: ?Sized,
{
    fn serialize_as<S>(source: &T, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer {
        use serde::ser::SerializeStruct;

        let mut ser_struct = serializer.serialize_struct("Layer", 1)?;
        ser_struct.serialize_field(FIELD, &ser::SerializeAsWrap::<T, U>::new(source))?;
        ser_struct.end()
    }
}

// Can be used like this
#[serde_as]
#[derive(Serialize)]
struct Data {
    i: i32,
    #[serde_as(as = r#"Layer<"extra", Layer<"foobar", Layer<"really_another_one", DisplayFromStr>>>"#)]
    b: bool,
}

// or like
serde_json::to_string(&Layer::<"root">(&data))

Would like to see this feature implemented still

I would like to see this implemented too, that is why the issue is still open. But nothing has changed so far. serde will not implement it. A proper alternative would require forking serde_derive. The linked crate in the top post requires too many compromises. And the other post makes use of an unstable feature. So for the foreseeable future, nothing will happen here.

This seems related to the general issue of parameterize SerializeAs structs.
For example, I have an sender: String field I want serialized as { table: "sender", id: "<sender>"}


Miio platform broken after upgrade 0.62 (hass.io)

Home Assistant release (hass --version): 0.62
Python release (python3 --version): 3.6 (i suppose)
Component/platform:  Miio
Description of problem: Miio platform fails to initialize.
Expected: Miio platform succeeds to initialize
Problem-relevant configuration.yaml entries and steps to reproduce:
vacuum:
  - platform: xiaomi_miio
    host: <IP_ADDRESS>
    token: !secret aspi_key

Upgrade ha to 0.62
Restart

Traceback (if applicable):
2018-01-28 21:50:38 ERROR (MainThread) [homeassistant.components.vacuum] Error while setting up platform xiaomi_miio
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 189, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
    raise self._exception
  File "/usr/lib/python3.6/asyncio/tasks.py", line 180, in _step
    result = coro.send(None)
  File "/usr/lib/python3.6/asyncio/coroutines.py", line 210, in coro
    res = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/vacuum/xiaomi_miio.py", line 90, in async_setup_platform
    from miio import Vacuum
  File "/usr/lib/python3.6/site-packages/miio/__init__.py", line 2, in <module>
    from miio.protocol import Message, Utils
  File "/usr/lib/python3.6/site-packages/miio/protocol.py", line 179, in <module>
    Const(0x2131, Int16ub),
  File "/usr/lib/python3.6/site-packages/construct/core.py", line 1894, in __init__
    super(Const, self).__init__(subcon)
  File "/usr/lib/python3.6/site-packages/construct/core.py", line 291, in __init__
    raise TypeError("subcon should be a Construct field")
TypeError: subcon should be a Construct field

Additional info: The vacuum (and i guess the whole platform) was working fine with version 0.61

I'm pretty sure this is the pull request that fixes the issue:
https://github.com/rytilahti/python-miio/pull/192/commits/9368d8b766bb811a6308c39fe0b6fd217942b6a4
The vacuum came back in Home Assistant once I manually applied the changes.

Could you help me with manually applying the changes? I am using hass.io on
pi3
On Thu, Feb 1, 2018, 21:31 Skeletorjus<EMAIL_ADDRESS>wrote:

I'm pretty sure this is the pull request that fixes the issue:
rytilahti/python-miio@9368d8b
https://github.com/rytilahti/python-miio/commit/9368d8b766bb811a6308c39fe0b6fd217942b6a4
The vacuum came back in Home Assistant once I manually applied the changes.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/issues/12017#issuecomment-362194146,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEgzV0JNI3MGLGh25ePXJBXLgTG8fluXks5tQXZigaJpZM4Rv4FV
.

@gcorgnet You could try this solution:
https://community.home-assistant.io/t/miio-platform-broken-after-upgrade-0-62/41118/17
Be aware: This change isn’t persistent. If you reboot the hassio instance your manual change will be lost and needs to be re-applied.

pip3 install construct==2.8.22
fixed my problem.

I have tried...
sudo pip3 install construct==2.8.22

But the file /home/pi/.homeassistant/deps/lib/python3.5/site-packages/construct/version.py is still saying...
version = (2,9,26)
version_string = "2.9.26"
release_date = "2018.02.01"

@master-kenobi If you use "sudo" the package will be installed at /usr/lib. Does homeassistant run as user "pi" in your case? What is the output of ps aux | grep hass

@syssi yes it is running as user "pi". what should i do?

@master-kenobi login as pi, then run pip3 install construct==2.8.22 without sudo.

@xain  thanks. but after reboot, I still see...
version = (2,9,26)
version_string = "2.9.26"
release_date = "2018.02.01"

And this error in the log...
2018-02-04 00:23:25 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform xiaomi_miio
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity_component.py", line 189, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for
    return fut.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/usr/lib/python3.5/asyncio/coroutines.py", line 210, in coro
    res = func(*args, **kw)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/light/xiaomi_miio.py", line 64, in async_setup_platform
    from miio import Device, DeviceException
  File "/home/pi/.homeassistant/deps/lib/python3.5/site-packages/miio/__init__.py", line 2, in <module>
    from miio.protocol import Message, Utils
  File "/home/pi/.homeassistant/deps/lib/python3.5/site-packages/miio/protocol.py", line 179, in <module>
    Const(Int16ub, 0x2131),
  File "/home/pi/.homeassistant/deps/lib/python3.5/site-packages/construct/core.py", line 2383, in __init__
    super(Const, self).__init__(subcon)
  File "/home/pi/.homeassistant/deps/lib/python3.5/site-packages/construct/core.py", line 500, in __init__
    raise TypeError("subcon should be a Construct field")
TypeError: subcon should be a Construct field

@master-kenobi If you don't get rid of construct 2.9.26 you could update python-miio instead:
pip3 install https://github.com/rytilahti/python-miio/archive/master.zip

The command will install a construct 2.9.26 compatible version of python-miio.

@syssi i have tried it but nothing changes. still seeing the same error. please note I installed my HA the old fashion way...
sudo pip3 install homeassistant

there is a solution for HASSIO users?

Although this issue is closed and it's expected to be fixed in version 0.64 but I still get the same error message after the upgrade and can't get my Xiaomi vacuum entity loaded in hassio.
Do I have to do a manual upgrade of python version?
Thanks

Ok, please open a new issue

@mehdiheidari Take a look here: #12298


Enhance MatMul and Gather quantization

Type of Change
enhancement
Description
Enhance MatMul and Gather quantization
Expected Behavior & Potential Risk
whisper model can have good accuracy
How has this PR been tested?
how to reproduce the test (including hardware information)
Dependency Change?
no

https://inteltf-jenk.sh.intel.com/job/intel-lpot-validation-top-mr-extension/5019/


uglify-es support

Can we please add support for +ES6?

Solved, see:
https://github.com/requirejs/r.js/issues/959#issuecomment-317424745


python38Packages.jdatetime: 3.6.2 -> 3.6.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python38Packages.jdatetime is: "Jalali datetime binding for python"
meta.homepage for python38Packages.jdatetime is: "https://pypi.python.org/pypi/jdatetime"
meta.changelog for python38Packages.jdatetime is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 3.6.4 with grep in /nix/store/022ribz6s135ik0s2pj28y7q432q4zr9-python3.8-jdatetime-3.6.4

found 3.6.4 in filename of file in /nix/store/022ribz6s135ik0s2pj28y7q432q4zr9-python3.8-jdatetime-3.6.4

directory tree listing: https://gist.github.com/cde26c6ee11b081330f4d6d68144fdcf

du listing: https://gist.github.com/3d0279286f8628401954b319d8fb5255

Rebuild report (if merged into master) (click to expand)

8 total rebuild path(s)

2 package rebuild(s)

2 x86_64-linux rebuild(s)
2 i686-linux rebuild(s)
2 x86_64-darwin rebuild(s)
2 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
python38Packages.jdatetime
python39Packages.jdatetime

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/022ribz6s135ik0s2pj28y7q432q4zr9-python3.8-jdatetime-3.6.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python38Packages.jdatetime https://github.com/r-ryantm/nixpkgs/archive/d6e60ba7ebb12dabd4230e4e358a16c763348b36.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/022ribz6s135ik0s2pj28y7q432q4zr9-python3.8-jdatetime-3.6.4
ls -la /nix/store/022ribz6s135ik0s2pj28y7q432q4zr9-python3.8-jdatetime-3.6.4/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

2 packages built:

python38Packages.jdatetime
python39Packages.jdatetime

Maintainer pings

Result of nixpkgs-review pr 139195 at d6e60ba7 run on aarch64-linux 1

2 packages built successfully:

python38Packages.jdatetime
python39Packages.jdatetime

2 suggestions:

warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?
Near pkgs/development/python-modules/jdatetime/default.nix:14:3:
   |
14 |   meta = with lib; {
   |   ^

warning: no-python-tests
Test runner could not discover any test cases: ‘Ran 0 tests in 0.000s’
Near pkgs/development/python-modules/jdatetime/default.nix:15:0:
   |
15 |     description = "Jalali datetime binding for python";
   | ^


How to deal with $sSelector's ?

You was were thinking about "How to deal with $sSelector's ?"

Yes, something that gave a basic overview of selectors, the differences between xpath & css, and perhaps provided links to some other recommended reading.
Originally posted by @Danp2 in https://github.com/Danp2/WebDriver/issues/168#issuecomment-1028433008
@Danp2  please assign this to me.
btw.
We were talking about WiKi Page

pre-added 11. How to deal with $sSelector's ? to:
https://www.autoitscript.com/wiki/WebDriver#FAQ

It should be fine, but I would recommend a few changes.

How to deal with $sSelector's ?

Don't really like the usage of $sSelectors. I would recommend something like "What is a Selector?"

What selector's are ?

The quotation mark isn't needed here. In English, we would generally phrase it as "What are selectors?" or "What is a selector?"

Q: What kind of Selector's could be used with WebDriver UDF ?

Again with the quotation mark

Thanks.
Fixed and suplemented.

Take a look again:
https://www.autoitscript.com/wiki/WebDriver#FAQ

Some issues I can see --

Q: What is a Selector?
A: Selector is a string which should describe how the chosen "Locator strategy" should find the element?

Answer shouldn't end with a question mark.
I'm no English major, but I think "string which should describe" would be better written as "string that describes"

Exactly the same as WebDriver supports. Using WebDriver UDF you should use this predefined const

This would sound better if rewritten like this - "This UDF supports all locators defined in the Webdriver specifications. Below is a listing of predefined constants:" or something similar.

String a kind of expression which describes how to find element through the HTML DOM. For more information check the links attached below.

This same entry is present for both CSS and xpath. It is vague and doesn't give the reader much useful info.

String wioth exat name

Typos

Take a look again:
https://www.autoitscript.com/wiki/WebDriver#FAQ

Still a few issues --

String a kind of expression which describes how to find element through the HTML DOM. For more information check the links attached below.

This same entry is present for both CSS and xpath. It is vague and doesn't give the reader much useful info.

Do you plan to change this? Also, I believe "which" should be "that" instead.

String with exat name of HTML DOM element for example "ClickMe" is name of this element:

Exact is still misspelled. Also, your description is incorrect here, right? The Tag Name refers to things like input, button, etc; Not the given name of an element.

String which match the desired element name, for example "button" is name of this element:

I still find this confusing or unclear. You seem to use name and tag name as if they are interchangeable. I don't believe they are. In your example, "button" would be the element's tag name and "ClickMe" would be it's name.
This is essentially calling getElementsByTagName(), so maybe you can use that to guide you in describing this selector.

fixed:
String which match the desired element tag name, for example "button" is tag name of this element: <button name="ClickMe">

But I think that a warrning about the fact that function will return collection of elements is required.

I'm not sure that is accurate. Have you tested to see if _WD_FindElement returns a collection when $bMultiple parameter isn't True?

I understand your point of view. I created a new ISSUE so we can temporarily bypassing my last proposal, and finally close this PR.

Take a look again:
https://www.autoitscript.com/wiki/WebDriver#FAQ
There was few changes

I have added additional links in the
11. How to use "Locator strategy" and "Selectors"?
Is that enough?
If yes pleas feel free to close this ISSUE.


Fix issue with parsing date with hardcoded format

We are creating a DateTimeOffset on the server and sending it in string format to the client. There, using ParseExact and a hardcoded US date format, we are converting it back to a DateTimeOffset.
The problem is that when the date is created on a server that is in a non-US locale, the client throws and error and the app crashes.

Thanks!


Extend StringMatcher to accommodate scanning an input string against multiple regexes at once.

Title: Extend StringMatcher to accommodate scanning an input string against multiple regexes at once.
Description:
This issue is a result of my experiments with Hyperscan. I don't know first hand if it's applicable in real existing setups, but I suspect it can be useful for implementing WAF-like functionality when a big number of regex patterns should be tried for an input string with actions triggered upon the first or all matches, e.g. per-regex logging, per-regex stat incrementing.
Currently it's possible to create a RegexMatcher with a really big regex consisting of many OR'ed sub-regexes. Then the regex engine can try to compile a FA optimized for vector instructions to parallelize scanning the sub-regexes and to exploit other optimizations. But in this case only one action can be triggered upon the first match. Alternatively we can configure many separate RegexMatcher's to act differently upon matching an individual regex. In this case we loose FA optimizations.
To alleviate this I'd like to propose extending StringMatcher with one more field multiple_regex of type MultipleRegexMatcher in addition to safe_regex, e.g.
// PoC matcher supporting multiple regexes.
message MultipleRegexMatcher {
  message Hyperscan {
    // If true terminate scanning upon first match, we don't care about the rest.
    google.protobuf.BoolValue terminate = 1;

    // An action common for all matched regexes (e.g. log it or stat increment).
    // FIXME: unable to use core.v3.TypedExtensionConfig due to a circular dep.
    google.protobuf.Any typed_action = 3;

    // TODO: add options for platform-specific tunings.
  }

  message HyperscanFlags {
    // Matching a . will not exclude newlines.
    bool dot_all = 1;

    // Matching will be performed case-insensitively.
    bool case_insensitive = 2;

    // Parse the expression in logical combination syntax.
    bool logical_combination = 3;
  }

  message Regex {
    // The regex match string. The string must be supported by the configured engine.
    string regex = 1 [(validate.rules).string = {min_len: 1}];

    // Flags applicable to the given regex.
    HyperscanFlags flags = 2;

    // A regex-specific action (e.g. log it or stat increment).
    // FIXME: unable to use core.v3.TypedExtensionConfig due to a circular dep.
    google.protobuf.Any typed_action = 3;
  }

  oneof engine_type {
    option (validate.required) = true;

    // Intel's Hyperscan engine.
    Hyperscan hyperscan = 1 [(validate.rules).message = {required: true}];
  }

  // The regex match strings. The strings must be supported by the configured engine.
  repeated Regex regexes = 2 [(validate.rules).repeated = {min_items: 1}];
}

Possible implementation:
Google's RE2 implements the Set API which supports scanning multiple regexes and reporting matched regex IDs for a single input. This API is rather limited. For example scanning cannot be terminated upon the first match. Also memory consumption is unpredictable for big sets of regexes.
Intel's Hyperscan is more flexible and predictable memory-wise. Also it supports scanning in streaming mode. But it has its own issues:

no official support for Aarch64,
a compiled FA is read-only and can be used across multiple threads, but every worker thread should have its own corresponding pre-allocated scratch space (allocating it for every scan is costly),
Hyperscan depends on Boost headers.

Relevant Links:
I have implemented a simple PoC for scanning in block mode with benchmarks included.

    // An action common for all matched regexes (e.g. log it or stat increment).
    // FIXME: unable to use core.v3.TypedExtensionConfig due to a circular dep.
    google.protobuf.Any typed_action = 3;

I personally think that StringMatcher should be pure and concise. Its function is to tell whether a string matches a specified pattern. Yes or No is enough. Other functions should not be directly introduced into StringMatcher.

I personally think that StringMatcher should be pure and concise. Its function is to tell whether a string matches a specified pattern. Yes or No is enough. Other functions should not be directly introduced into StringMatcher.

This behavior of StringMatcher is still there. The action is supposed to be used e.g. to log which regex exactly matched (to understand what vulnerability was exploited). Of course the same could be achieved with many StringMatchers, one StringMatcher per regex, but then performance would suffer.

🤔 I get it. This kind of semantics does work very well in some scenarios. But why don't we just create a new matcher like RecordableMultipleRegexMatcher or something ?  This keeps StringMatcher simple. At the same time, higher-level APIs can be used for users in need.

Sure, I don't mind. The reason why I chose to extend StringMatcher is simply because its target input value is a string. I wasn't sure we wanted another matcher whose target value was a string too.

This issue is an attempt to find people interested in the proposed functionality.
@ZackButcher I was told that you might know someone working on WAF in Envoy.

cc @lizan @nullpo-head


add Wiki search and retrieval

name: Pull Request
about: Create a pull request
Description
wiki.py(service/web) contains functions to search in Wikipedia. These functions can obtain texts, tables, infobox, category lists and images with captions. Unit tests are provided in wiki_test.py(tests).
Checklist
Please check the following items before code is ready to be reviewed.

[ ]  Code has passed all tests
[ ]  Docstrings have been added/updated in Google Style
[ ]  Documentation has been updated
[ ]  Code is ready for review

Why are the unit tests not activated?

Please push a new commit to execute the unit tests.


Size of training dataset?

Hello. I have some questions again in segmentation task.
First is how many 3d models I should use In the training stage. I want to find fit numbers of models.
And second is whether the input is only 3d models with segmentation labels.
Thank you for your help.

According to our experiment, several hundreds of models are enough. Of course, the more the better.
I can not fully understand your second question.

Sorry let me rephrase my 2nd question. To train o-cnn for semantic segmentation task, I only need the 3D segmented models as the input, is that right?

Yes


[shardformer] vit/llama/t5 ignore the sequence parallelism flag and some fix.

📌 Checklist before creating the PR

[ ] I have created an issue for this PR for traceability
[x] The title follows the standard format: [doc/gemini/tensor/...]: A concise description
[ ] I have added relevant tags if possible for us to better distinguish different PRs

🚨 Issue number

Link this PR to your issue with words like fixed to automatically close the linked issue upon merge
e.g. fixed #1234, closed #1234, resolved #1234

📝 What does this PR do?

Summarize your work here.
if you have any plots/diagrams/screenshots/tables, please attach them here.

whisper fix
💥 Checklist before requesting a review

[ ] I have linked my PR to an issue (instruction)
[ ] My issue clearly describes the problem/feature/proposal, with diagrams/charts/table/code if possible
[x] I have performed a self-review of my code
[x] I have added thorough tests.
[ ] I have added docstrings for all the functions/methods I implemented

⭐ Do you enjoy contributing to Colossal-AI?

[x] 🌝 Yes, I do.
[ ] 🌚 No, I don't.

Tell us more if you don't enjoy contributing to Colossal-AI.

All tests have passed.


Update link in README

Super important for usability...

silly saucelabs failing our build...

Interesting that it passed once you merged it...

No more than 5 minutes after I did this I found this:
https://github.com/SitePen/mayhem/blob/master/CONTRIBUTING.md
"Put [ci skip] at the end of commit messages for commits that do not modify any code (readme changes, etc.)"
Would this work here or specific to the Mayhem project?

I'd never heard of that but it looks to be a Travis CI feature. So it would work for
here. Thanks for the tip!
On Thu, Mar 19, 2015 at 8:51 AM, Alex Jones<EMAIL_ADDRESS>wrote:

No more than 5 minutes after I did this I found this:
https://github.com/SitePen/mayhem/blob/master/CONTRIBUTING.md
"Put [ci skip] at the end of commit messages for commits that do not
modify any code (readme changes, etc.)"
Would this work here or specific to the Mayhem project?
—
Reply to this email directly or view it on GitHub
https://github.com/agrc/AGRCJavaScriptProjectBoilerPlate/pull/107#issuecomment-83614384
.

--
Scott Davis
Utah AGRC http://gis.utah.gov/developer/
<EMAIL_ADDRESS>@ScottAGRC https://twitter.com/ScottAGRC


Fix setting a component argument's value

The first commit fixes the mentioned issue. The second is a failing test for another scenario which I'm not sure how to fix. I'm also not sure whether the first commit does the correct thing.
cc @pzuraq
Fixes #21

The second commit is not a valid use case, {{set}} cannot be used to introduce two-way-binding, unlike {{mut}}. You must always be setting a value directly on a context object, so there must be both a target object and a non-empty path.
Other than that, this fix looks good, really appreciate it!

@pzuraq - OK, fair enough, I force-pushed to remove the second commit. Ready to go!

Released in 1.0.1


Online calculation of lightning flash rate for GEOSCHEMchem

Compute the lightning flash rate (LFR) online following the approach used by GEOSCHEMchem_GridComp. The LFR is calculated in MOIST and then made available to other components as a new export field (LFR_GCC). This update does not touch the original LFR calculation in MOIST (using Dale Allen's method).
This pull request is contingent on adding the LFR module to GMAO_Shared. It only adds a new diagnostics to MOIST, hence should be a zero-diff change.

@christophkeller , I tested your pull requests and found they are 0-diff except for adding 'LWI' to moist. However, after discussing with @lltakacs , the LWI is a legacy field which has been phased out of history. Instead, the more accurate and recommended approach is to use the existing fractional areas:
                          'FRLAKE'    , 'SURFACE'       ,
                          'FRLAND'    , 'SURFACE'       ,
                          'FRLANDICE' , 'SURFACE'       ,
                          'FROCEAN'   , 'SURFACE'       ,

Would it be possible to adapt your code to use those existing variables and not to re-introduce a legacy variable?

Removed LWI import from MOIST and instead calculate it from FROCEAN, FRLAKE, FRACI, and TS. The definition is identical to the original LWI formulation.

Now that PR69 in GMAO_Shared is closed, can we move forward with this pull request?
Thanks!

@christophkeller The branch was out-of-date with develop so I clicked the update button. Saves @sdrabenh a step.
(And, I guess, let's me keep my lead on commits in the org 😄 )

@christophkeller thanks for bringing this PR to my attention again. I ran the 0-diff tests on your code, and it passed with the default settings. However, I noticed your code initializes in moist but uses the fractions from surface (FRLAKE, FRACI, etc). Perhaps @mathomp4 can correct me, but I believe the set services for moist are done before surface. Therefore, I presume all these fractions would be bootstrapped to zero, at least for the first model step. Is this the desired behavior? I have not tested activating your lightning module - have your tested running this under the new MAPL-2?

@sdrabenh thanks for bringing this up, this is a good point. Wouldn't these fields then go into the moist import restart file, though?
If all fractions are zero (because they are bootstrapped), LWI would become 1.0 (= land) in the original definition. This is not ideal, since the flash rates over land are much higher than over the ocean. I just changed the parameterization - now using FRLAND - to make water (0.0) the default value. This should prevent unrealistically high global flash rates if the values are bootstrapped. Also, FRLAND is already in the moist import restart file, so there should be less of an issue here.

@christophkeller have you made sure/tested this with the GEOS gcm_regress test? Does it pass a start/stop in time?

Yes, the update passes time regression. As expected, FRACI gets added to the moist import restart file, hence zero-diff.


Reverse monitoring for discord bots

Is it a duplicate question?
No (only very far away from that request (reverse monitoring))
Describe the solution you'd like
Add an API route to Kuma to push status messages (reverse mode). This can be used to monitor not HTTP(s) working devices like discord bots or any other chatbots.

I think what you are seeking is in the 1.8.0 release that just got pushed out.


Documentation Suggestions

I am having a pretty hard time building a boiler-plate webpack project that supports jsx, react, defines with source files in one directory and targets in another.
What would really help me (and I think others in my shoes) would be:

have the examples all include complete webpack.config.js files so I can just run webpack and webpack-dev-server in each example directory and watch it work.  Complete working examples would be so much better.  I did try downloading the master project and building the examples with build.js but these do not include webpack.config.js files in many cases.  The examples are simply too terse to really sink in what I need to understand.
Make some fairly complex, real-world webpack.config.js files and put copious comments in them with all the sources needed to run them.
The configuration docs themselves are quite sparse in areas and assume the reader knows more than he might.  Anyone can read JSON or JS but its what is happening underneath and how the data is interpreted that is important.  Cooking up some real-world example webpack.config.js files that use each/all/many of the config options with comments as to why and what they will do would really help as well.

A section on how to debug loaders and plugins might be helpful - I know, this probably seems obvious or stupid to a seasoned node developer - but I am a newbie that is trying to learn the best path and minimize what I have to learn.  I would be glad to fix or improve the docs myself if I could figure out my own answers.  If I can be of any assistance please let me know.
Thanks for listening.  Hope this helps.

Hi Sanford,
I've been developing material to address some of these issues. See Developing with Webpack, Webpack and React, and Building Kanban chapters of my book. This work evolves continuously as I figure out ways to make it more accessible.
You can see the approach I cover in the book at my boilerplate. That shows how it all goes together.
Speaking of cooking up, earlier this year I wrote a cookbook with Christian. That's something I'll likely revisit at some point and modernize.
If you have any comments about the book material, feel to pop by the issue tracker or contact me directly through other means (gitter, email).

A really good resource, if you have no idea where to go, is the Gitter chat. By no doubt, it is super supportive. Funnily, the heading says "no support" - but the actual opposite is happening. So if you are stuck, head into the Gitter. I am around fairly often and can answer most general questions. I just don't react very well to some ;).
But I can see what you mean. I might as well do something about it there, or jin my effords with @bebraw . I actually have an idea on how to do this: A github org that holds only WebPack samples and boilerplates. A repo of repos, of sorts. But this is still something lingering in my mind...

Hi @sanfordstaab,
You can checkout my webpack configs here where everything is commented, it also provides links to the documentation as well.
There's a 'base' config, because I generate it statically and then extend it in my projects as seen in that examples subfolder.
If you need a full example, my projects typically end up looking something like this.
I hope this helps you!

Thanks Mike - great stuff - put a link to these resources in the docs.
Sandy
Date: Thu, 24 Dec 2015 11:52:41 -0800
From<EMAIL_ADDRESS>To<EMAIL_ADDRESS>CC<EMAIL_ADDRESS>Subject: Re: [webpack] Documentation Suggestions (#1796)
Hi @sanfordstaab,
You can checkout my webpack configs here where everything is commented, it also provides links to the documentation as well.
There's a 'base' config, because I generate it statically and then extend it in my projects as seen in that examples subfolder.
If you need a full example, my projects typically end up looking something like this.
I hope this helps you!
—
Reply to this email directly or view it on GitHub.

Good stuff.  Thanks.Sandy
Date: Wed, 23 Dec 2015 23:22:53 -0800
From<EMAIL_ADDRESS>To<EMAIL_ADDRESS>CC<EMAIL_ADDRESS>Subject: Re: [webpack] Documentation Suggestions (#1796)
A really good resource, if you have no idea where to go, is the Gitter chat. By no doubt, it is super supportive. Funnily, the heading says "no support" - but the actual opposite is happening. So if you are stuck, head into the Gitter. I am around fairly often and can answer most general questions. I just don't react very well to some ;).
But I can see what you mean. I might as well do something about it there, or jin my effords with @bebraw . I actually have an idea on how to do this: A github org that holds only WebPack samples and boilerplates. A repo of repos, of sorts. But this is still something lingering in my mind...
—
Reply to this email directly or view it on GitHub.

Excellent links - I'm all over it.  Thanks!
Sandy
Date: Wed, 23 Dec 2015 21:44:28 -0800
From<EMAIL_ADDRESS>To<EMAIL_ADDRESS>CC<EMAIL_ADDRESS>Subject: Re: [webpack] Documentation Suggestions (#1796)
Hi Sanford,
I've been developing material to address some of these issues. See Developing with Webpack, Webpack and React, and Building Kanban chapters of my book. This work evolves continuously as I figure out ways to make it more accessible.
You can see the approach I cover in the book at my boilerplate. That shows how it all goes together.
Speaking of cooking up, earlier this year I wrote a cookbook with Christian. That's something I'll likely revisit at some point and modernize.
If you have any comments about the book material, feel to pop by the issue tracker or contact me directly through other means (gitter, email).
—
Reply to this email directly or view it on GitHub.

Dat emailtail. (:

We are redeveloping the documentation here. Feel free to check the status and pitch in.


Fix generator promise return

#188 Fix:

If config is \Generator get its return value and continue following checks
Update test/testBootServerInclude.php to cover this case
Rename BootstrapperTest -> bootServerTest class

Thanks!


snappy-itransfer does not re-use existing landing zones

Describe the bug
Consecutive calls to the snappy-itransfer commands create multiple landing zones.
To Reproduce
Consecutively call snappy-itransfer multiple times.
Expected behavior
The commands should re-use existing landing zones from the current user.
Additional context
N/A

How was the tool called? I would expect that behaviour something like the example below, i.e., for each call there will be a new LZ.
If --yes is set, it doesn't check if there are LZs available. Rational: avoid any potential conflict between users. Reuse of LZs is only possible in interact mode and if --validate-and-move is not set.
# variant calling files
cubi-tk snappy itransfer-variant-calling --start-batch 99.snappy_pipeline/project_name.tsv \
	--yes --validate-and-move <UUID>
# ngs mapping files
cubi-tk snappy itransfer-ngs-mapping --start-batch 99.snappy_pipeline/project_name.tsv \
	--yes --validate-and-move <UUID>

# `--yes`: Assume all answers are yes, e.g., will create or use existing available landing zones without asking.
# `--validate-and-move`: after files are transferred to SODAR, it will proceed with validation and move them.

The behaviour is as you describe. There probably was a problem with the specification.
Users cannot interact as each sandbox is only visible to the current user. The current user UUID can be fetched to a recently added API.

The rationale is that the call to the itransfer commands should be idempotent. So by default we should be able to repeat the call with the default parameters and nothing should change remotely.


Trying to call ReadAsync twice on an SSL Stream PipeReader throws an Exception

I'm using the Extension: SSLStream.UsePipeReader();
When calling ReadAsync the first time is successful, however on the second call this exception is thrown:
System.NotSupportedException :  The ReadAsync method cannot be called when another read operation is pending.    at System.Net.Security.SslStreamInternal.ReadAsyncInternal[TReadAdapter](TReadAdapter adapter, Memory1 buffer)
at Nerdbank.Streams.PipeExtensions.<>c__DisplayClass5_0.<b__1>d.MoveNext() in D:\a\1\s\src\Nerdbank.Streams\PipeExtensions.cs:line 92
--- End of stack trace from previous location where exception was thrown ---
at System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
at System.IO.Pipelines.Pipe.GetReadAsyncResult()`
Switching to System.Pipelines.Unofficial implementation StreamConnection.GetDuplex(SSLStream) I was able to call ReadAsync the second time successfully.

Are you calling AdvanceTo after the first ReadAsync call?

Yup!
On Tue, 23 Jul 2019, 02:59 Andrew Arnott<EMAIL_ADDRESS>wrote:

Are you calling AdvanceTo after the first ReadAsync call?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/AArnott/Nerdbank.Streams/issues/102?email_source=notifications&email_token=AHIROKYTM4BPQ63JZJENB2TQAZQXJA5CNFSM4IFX2RM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2RVYOA#issuecomment-514022456,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHIROK2KGGB2KKUU3IA4L6LQAZQXJANCNFSM4IFX2RMQ
.

Can you send me a snippet of your code that throws the error? Preferably everything from when you call UsePipeReader to where it throws. And I hope I can assume you don't have any other code that's trying to read from the stream simultaneously.
You could try UseStrictPipeReader which turns every PipeReader call directly to a Stream.ReadyAsync call. The regular UsePipeReader has a dedicated async state machine that continually reads from the stream. I would not expect either to malfunction so long as you're not trying to read from the stream any more after attaching the pipe reader, and that you're not reading from the pipe reader without calling AdvanceTo after each time.

Closing due to no response.


Update oracle-performance-best-practice.md

ESAN updates

@kisshetty, @jjaygbay1
Thank you for contributing to this Azure documentation. Unfortunately, changes to Virtual Machines content can't be accepted this week. The Skilling Content group is migrating this content to a new repository: azure-compute-docs.
In the meantime, we are closing this PR and tagging it so that when the content is available in the new repo, we can follow up with new location information.
#label:"migrate-followup"
#please-close

@kisshetty
We're happy to share that contributions to virtual-machines are once again possible at azure-compute-docs. Please open a PR in the new repo to submit your changes. We appreciated your patience during this migration.
#remove-label:"migrate-followup"

@kisshetty - This content can no longer be merged to azure-docs, so I'll close this PR. Please move your commits to azure-compute-docs-pr.


chore(main): release veto 0.3.9

:robot: I have created a release beep boop
0.3.9 (2024-05-21)
Bug Fixes

veto: add protable type to string (7c731d5)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/fuf-stack/uniform/releases/tag/veto-v0.3.9 :sunflower:


fix: bug where filtered messsages were backwards when quiet

:tada: This pull request is included in version 0.7.2 :tada:
The release is available on GitHub release :rocket:


nm.wired: Introduce WiredSetting

Coverage increased (+0.03%) to 69.103% when pulling f08b163d868901c36e3dea2c6ab57a1107972b5c on EdDev:refactor-nm-wired-setting into a91ff633faf65725959bd91cc179a59970ff3005 on nmstate:master.

The commit message is not explaining why this is a good idea.

Done

@tyll , unit tests added with + fixes.


Server key authentication

How can I authenticate providing a server key?

It seems that using a private key with plus Google is easier than authorizing with JWT by providing a JSON file.

But is there any sample for usig plus authorization to access api of Google Analytics like checking pageviews?

I wrote a piece on how to authenticate to any Google API if anyone has issues https://flaviocopes.com/google-api-authentication/


Orthography profile?

@LinguList do you have a hunch how feasible orthography profiles for this dataset could be? Are there IPA transcriptions in reflex?

Seems a bit harder than simpler datasets, but not at TNG levels. Let me know if I should go forward.

is it likely to be worth the effort?

I would need some time investigating if diacritics are what I expected (and they should, as it seems consistent with Africanist tradition), but I am learning to stop underestimating the effort.
Still, it would be very interesting to have this in terms of coverage. I can certainly be done in normal times if the focus is more on the sound classes, but finer phonetic details might take a while.
I suggest to leave this open.

Can't tell by now, the source is from 1800+

ok, this sounds like a lot of effort then. I'll close for now. @tresoldi if you get enthusiastic then go for it, but I suspect it's something that's in the too-hard basket.

Ok, I gave it a try, expected to finish in about two hours and of course it took more than twice the time. I'm opening a PR, discussing the profile there.

Awesome :)

@tresoldi, now that you helped so much here, can I give you more
responsibility? could you coordinate the PR for concepticon for the
concept list? As the concepts are in English, I think it can be done by
our fellow concepticon people. The tricky thing is: we need to columns,
one for reflex (which we use for lexibank) and one for the original. It
is on our google drive, @Kristina-Pianykh was working on it, as far as I
know.

I still have a typed off csv sheet with the columns for Reflex (1) and original (2) glosses if it's still relevant. I just uploaded it to the google drive. It's called Reflex_Original Polyglotta with all the entries from the book.


Fix JaCoCo source directories

Codecov Report

Merging #630 (a380594) into main (31432ab) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #630   +/-   ##
=======================================
  Coverage   70.99%   70.99%
=======================================
  Files         114      114
  Lines        5524     5524
  Branches     1091     1091
=======================================
  Hits         3922     3922
  Misses        851      851
  Partials      751      751

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


PostgreSQL - use identity instead of serial

Hi,
according to docs, serial primary key should not be used anymore. Maybe it would be worth to apply this change to postgresql dialect
https://wiki.postgresql.org/wiki/Don't_Do_This#Don.27t_use_serial

Could you please submit a PR?

Hello folks, I've also noticed usage of 'serial' so I've created a PR https://github.com/sebastienros/yessql/pull/551 , could you please take a look on it ?