This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import comb | |
def chance(k, n, K, N): | |
return comb(K, k) * comb(N - K, n - k) / comb(N, n) | |
def fits_in_delta_prob(lower, upper, n, K, N): | |
result = 0 | |
for x in range(n + 1): | |
ratio = x / n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(venv) Igors-MacBook-Pro:airflow igor_khrol$ ./breeze --db-reset test-target tests/task/task_runner/test_standard_task_runner.py -- --logging-level=DEBUG | |
Resetting the DB! | |
Fixing group permissions | |
Fixed group permissions | |
Use CI image. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[source]] | |
name = "pypi" | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
[dev-packages] | |
pytest = "*" | |
pylint = "*" | |
pylint-quotes = "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [10]: {**{‘x’: 2}, **{'a': 1}} | |
Out[10]: {'a': 1, 'x': 2} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.khroliz; | |
import net.yandex.speller.services.spellservice.*; | |
import java.util.List; | |
public class WebServiceUsage { | |
public static void main(String[] args) { | |
SpellService service = new SpellService(); | |
SpellServiceSoap port = service.getSpellServiceSoap(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean isButtonDisplayed() { | |
return driver.findElement(By.name("fancy-button")).isDisplayed(); | |
} | |
public void verifyButtonDisplayed() { | |
assertTrue(isButtonDisplayed(), "Button is not displayed"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean verifyButtonDisplayed() { | |
return driver.findElement(By.name("fancy-button")).isDisplayed(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean verifyButtonDisplayed() { | |
WebElement button = driver.findElement(By.name("fancy-button")); | |
assertTrue(button.isDisplayed(), "Button is not displayed"); | |
return button.isDisplayed(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select order_id from orders where funny_order = 1 and rownum <= 1000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select * from ( | |
select order_id from orders where funny_order = 1 | |
order by dbms_random.value | |
) where rownum = 1; |
NewerOlder