id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
Python_Threading_Schedule/busdriverschedulings_1731_0.txt | [ 429 , "09:40" , "09:56" , 580 , 596 , 16 ], | |
Python_Threading_Schedule/busdriverschedulings_1602_0.txt | [ 300 , "08:01" , "08:13" , 481 , 493 , 12 ], | |
Python_Threading_Schedule/busdriverschedulings_568_0.txt | 600 | |
Python_Threading_Schedule/busdriverschedulings_1613_0.txt | [ 311 , "08:10" , "08:45" , 490 , 525 , 35 ], | |
Python_Threading_Schedule/busdriverschedulings_389_0.txt | 421 | |
Python_Threading_Schedule/busdriverschedulings_1593_0.txt | [ 291 , "07:56" , "08:54" , 476 , 534 , 58 ], | |
Python_Threading_Schedule/busdriverschedulings_937_0.txt | 969 | |
Python_Threading_Schedule/busdriverschedulings_100_0.txt | 132 | |
Python_Threading_Schedule/busdriverschedulings_886_0.txt | 918 | |
Python_Threading_Schedule/busdriverschedulings_708_0.txt | 740 | |
Python_Threading_Schedule/busdriverschedulings_1510_0.txt | [ 208 , "07:03" , "08:30" , 423 , 510 , 87 ], | |
Python_Threading_Schedule/busdriverschedulings_410_0.txt | 442 | |
Python_Threading_Schedule/busdriverschedulings_1500_0.txt | [ 198 , "06:57" , "07:45" , 417 , 465 , 48 ], | |
Python_Threading_Schedule/busdriverschedulings_1444_0.txt | [ 142 , "06:20" , "06:30" , 380 , 390 , 10 ], | |
Python_Threading_Schedule/busdriverschedulings_702_0.txt | 734 | |
Python_Threading_Schedule/busdriverschedulings_1116_0.txt | [ 16 , "06:15" , "07:15" , 375 , 435 , 60 ], | |
Python_Threading_Schedule/busdriverschedulings_1485_0.txt | [ 183 , "06:48" , "07:34" , 408 , 454 , 46 ], | |
Python_Threading_Schedule/busdriverschedulings_1411_0.txt | [ 109 , "06:00" , "06:16" , 360 , 376 , 16 ], | |
Python_Threading_Schedule/busdriverschedulings_472_0.txt | 504 | |
Python_Threading_Schedule/busdriverschedulings_255_0.txt | 287 | |
Python_Threading_Schedule/busdriverschedulings_1897_0.txt | [ 595 , "12:10" , "12:20" , 730 , 740 , 10 ], | |
Python_Threading_Schedule/busdriverschedulings_1126_0.txt | [ 26 , "06:34" , "07:09" , 394 , 429 , 35 ], | |
Python_Threading_Schedule/busdriverschedulings_939_0.txt | 971 | |
Python_Threading_Schedule/Python_threading__3_0.txt | ## Lock Objects ¶
A primitive lock is a synchronization primitive that is not owned by a
particular thread when locked. In Python, it is currently the lowest level
synchronization primitive available, implemented directly by the [ ` _thread
` ](_thread.html#module-_thread "_thread: Low-level threading API.") extens... | |
Python_Threading_Schedule/busdriverschedulings_1611_0.txt | [ 309 , "08:08" , "08:55" , 488 , 535 , 47 ], | |
Python_Threading_Schedule/busdriverschedulings_1641_0.txt | [ 339 , "08:28" , "09:23" , 508 , 563 , 55 ], | |
Python_Threading_Schedule/busdriverschedulings_1128_0.txt | [ 28 , "06:44" , "07:17" , 404 , 437 , 33 ], | |
Python_Threading_Schedule/busdriverschedulings_1100_0.txt | [ 0 , "04:30" , "04:53" , 270 , 293 , 23 ], | |
Python_Threading_Schedule/busdriverschedulings_377_0.txt | 409 | |
Python_Threading_Schedule/1722_145_0.txt | [ 
](/Mizux) [ Mizux ](/Mizux) added this to the [ v7.5 ](/google/or-
tools/milestone/10) milestone Jan 21, 2020 | |
Python_Threading_Schedule/busdriverschedulings_219_0.txt | 251 | |
Python_Threading_Schedule/busdriverschedulings_1082_0.txt | [ 34 , "15:38" , "16:25" , 938 , 985 , 47 ], | |
Python_Threading_Schedule/1722_137_0.txt | # Hack to detect if the waiting time between the last shift and
# this one exceeds 30 minutes. For this, we look at the
# no_break_driving which was reinitialized in that case.
if solver.Value(no_break_driving[d, s]) == shift[5] and not first:
print(' **break**')
print(' shift ', shift[0], ':', shift[1], "-", shi... | |
Python_Threading_Schedule/busdriverschedulings_381_0.txt | 413 | |
Python_Threading_Schedule/busdriverschedulings_1452_0.txt | [ 150 , "06:28" , "06:53" , 388 , 413 , 25 ], | |
Python_Threading_Schedule/busdriverschedulings_942_0.txt | 974 | |
Python_Threading_Schedule/pythonjobscheduling_100_0.txt | Learn More | |
Python_Threading_Schedule/busdriverschedulings_1197_0.txt | [ 97 , "13:28" , "14:54" , 808 , 894 , 86 ], | |
Python_Threading_Schedule/busdriverschedulings_1552_0.txt | [ 250 , "07:27" , "08:15" , 447 , 495 , 48 ], | |
Python_Threading_Schedule/busdriverschedulings_1161_0.txt | [ 61 , "09:31" , "09:43" , 571 , 583 , 12 ], | |
Python_Threading_Schedule/busdriverschedulings_929_0.txt | 961 | |
Python_Threading_Schedule/1722_127_0.txt | # The first 3 shifts must be performed by 3 different drivers.
# Let's assign them to the first 3 drivers in sequence
#model.Add(starting_shifts[0, 0] == 1)
#model.Add(starting_shifts[1, 1] == 1)
#model.Add(starting_shifts[2, 2] == 1) | |
Python_Threading_Schedule/busdriverschedulings_514_0.txt | 546 | |
Python_Threading_Schedule/busdriverschedulings_638_0.txt | 670 | |
Python_Threading_Schedule/busdriverschedulings_1234_0.txt | [ 134 , "16:03" , "16:50" , 963 , 1010 , 47 ], | |
Python_Threading_Schedule/busdriverschedulings_848_0.txt | 880 | |
Python_Threading_Schedule/busdriverschedulings_331_0.txt | 363 | |
Python_Threading_Schedule/busdriverschedulings_822_0.txt | 854 | |
Python_Threading_Schedule/workflowyschedulingi_30_0.txt | @classmethod
def __save_changes(cls):
cls.browser.find_element_by_css_selector("div.saveButton").click()
cls.__wait_for_element_to_appear("div.saveButton.saved") | |
Python_Threading_Schedule/busdriverschedulings_90_0.txt | 122 | |
Python_Threading_Schedule/pythonjobscheduling_89_0.txt | Learn More | |
Python_Threading_Schedule/busdriverschedulings_1059_0.txt | [ 11 , "08:00" , "09:05" , 480 , 545 , 65 ], | |
Python_Threading_Schedule/busdriverschedulings_1203_0.txt | [ 103 , "13:40" , "13:50" , 820 , 830 , 10 ], | |
Python_Threading_Schedule/1722_163_0.txt | * [ Terms ](https://docs.github.com/site-policy/github-terms/github-terms-of-service)
* [ Privacy ](https://docs.github.com/site-policy/privacy-policies/github-privacy-statement)
* [ Security ](https://github.com/security)
* [ Status ](https://www.githubstatus.com/)
* [ Docs ](https://docs.github.com/)
* [ Contact ](ht... | |
Python_Threading_Schedule/busdriverschedulings_415_0.txt | 447 | |
Python_Threading_Schedule/busdriverschedulings_309_0.txt | 341 | |
Python_Threading_Schedule/busdriverschedulings_1597_0.txt | [ 295 , "07:58" , "08:23" , 478 , 503 , 25 ], | |
Python_Threading_Schedule/busdriverschedulings_1329_0.txt | [ 27 , "04:53" , "05:19" , 293 , 319 , 26 ], | |
Python_Threading_Schedule/busdriverschedulings_871_0.txt | 903 | |
Python_Threading_Schedule/1722_128_0.txt | if minimize_drivers:
# Push non working drivers to the end
for d in range(num_drivers - 1):
model.AddImplication(working_drivers[d].Not(),
working_drivers[d + 1].Not()) | |
Python_Threading_Schedule/1722_30_0.txt | Cancel Submit feedback | |
Python_Threading_Schedule/busdriverschedulings_492_0.txt | 524 | |
Python_Threading_Schedule/busdriverschedulings_1497_0.txt | [ 195 , "06:56" , "08:23" , 416 , 503 , 87 ], | |
Python_Threading_Schedule/1722_21_0.txt | * [ Pricing ](https://github.com/pricing) | |
Python_Threading_Schedule/busdriverschedulings_1907_0.txt | [ 605 , "12:19" , "13:13" , 739 , 793 , 54 ], | |
Python_Threading_Schedule/busdriverschedulings_204_0.txt | 236 | |
Python_Threading_Schedule/busdriverschedulings_726_0.txt | 758 | |
Python_Threading_Schedule/busdriverschedulings_274_0.txt | 306 | |
Python_Threading_Schedule/busdriverschedulings_945_0.txt | 977 | |
Python_Threading_Schedule/busdriverschedulings_394_0.txt | 426 | |
Python_Threading_Schedule/busdriverschedulings_529_0.txt | 561 | |
Python_Threading_Schedule/busdriverschedulings_696_0.txt | 728 | |
Python_Threading_Schedule/busdriverschedulings_18_0.txt | * [ The ReadME Project GitHub community articles ](https://github.com/readme) | |
Python_Threading_Schedule/busdriverschedulings_1916_0.txt | [ 614 , "12:25" , "13:10" , 745 , 790 , 45 ], | |
Python_Threading_Schedule/busdriverschedulings_117_0.txt | 149 | |
Python_Threading_Schedule/busdriverschedulings_1899_0.txt | [ 597 , "12:11" , "12:38" , 731 , 758 , 27 ], | |
Python_Threading_Schedule/busdriverschedulings_700_0.txt | 732 | |
Python_Threading_Schedule/1722_124_0.txt | # Create circuit constraint.
model.Add(sum(outgoing_source_literals) == 1)
for s in range(num_shifts):
model.Add(sum(outgoing_literals[s]) == 1)
model.Add(sum(incoming_literals[s]) == 1)
model.Add(sum(incoming_sink_literals) == 1) | |
Python_Threading_Schedule/busdriverschedulings_855_0.txt | 887 | |
Python_Threading_Schedule/busdriverschedulings_457_0.txt | 489 | |
Python_Threading_Schedule/busdriverschedulings_944_0.txt | 976 | |
Python_Threading_Schedule/busdriverschedulings_1818_0.txt | [ 516 , "11:00" , "11:10" , 660 , 670 , 10 ], | |
Python_Threading_Schedule/busdriverschedulings_409_0.txt | 441 | |
Python_Threading_Schedule/busdriverschedulings_809_0.txt | 841 | |
Python_Threading_Schedule/busdriverschedulings_180_0.txt | 212 | |
Python_Threading_Schedule/busdriverschedulings_1269_0.txt | [ 169 , "19:21" , "19:31" , 1161 , 1171 , 10 ], | |
Python_Threading_Schedule/busdriverschedulings_1390_0.txt | [ 88 , "05:48" , "07:08" , 348 , 428 , 80 ], | |
Python_Threading_Schedule/busdriverschedulings_830_0.txt | 862 | |
Python_Threading_Schedule/busdriverschedulings_45_0.txt | * [ Code ](/google/or-tools)
* [ Issues ](/google/or-tools/issues)
* [ Pull requests ](/google/or-tools/pulls)
* [ Discussions ](/google/or-tools/discussions)
* [ Actions ](/google/or-tools/actions)
* [ Projects ](/google/or-tools/projects)
* [ Security ](/google/or-tools/security)
* [ Insights ](/google/or-too... | |
Python_Threading_Schedule/busdriverschedulings_1603_0.txt | [ 301 , "08:01" , "08:43" , 481 , 523 , 42 ], | |
Python_Threading_Schedule/pythonjobscheduling_73_0.txt | # create a scheduler object
scheduler = Scheduler(connection=redis_conn) | |
Python_Threading_Schedule/busdriverschedulings_538_0.txt | 570 | |
Python_Threading_Schedule/pythonjobscheduling_46_0.txt | Finally, we use an infinite loop to repeatedly call the run_threaded function and add a time delay of 60 seconds between each call. This way, the job function will be executed every minute. | |
Python_Threading_Schedule/busdriverschedulings_1686_0.txt | [ 384 , "09:00" , "09:16" , 540 , 556 , 16 ], | |
Python_Threading_Schedule/busdriverschedulings_477_0.txt | 509 | |
Python_Threading_Schedule/busdriverschedulings_1075_0.txt | [ 27 , "13:53" , "14:49" , 833 , 889 , 56 ], | |
Python_Threading_Schedule/busdriverschedulings_1471_0.txt | [ 169 , "06:40" , "07:22" , 400 , 442 , 42 ], | |
Python_Threading_Schedule/busdriverschedulings_1489_0.txt | [ 187 , "06:50" , "07:00" , 410 , 420 , 10 ], | |
Python_Threading_Schedule/busdriverschedulings_1621_0.txt | [ 319 , "08:16" , "08:30" , 496 , 510 , 14 ], | |
Python_Threading_Schedule/busdriverschedulings_162_0.txt | 194 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.