id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
Python_Threading_Schedule/busdriverschedulings_1296_0.txt | [ 196 , "23:58" , "00:38" , 1438 , 1478 , 40 ], | |
Python_Threading_Schedule/busdriverschedulings_1863_0.txt | [ 561 , "11:44" , "13:14" , 704 , 794 , 90 ], | |
Python_Threading_Schedule/busdriverschedulings_1343_0.txt | [ 41 , "05:04" , "06:24" , 304 , 384 , 80 ], | |
Python_Threading_Schedule/busdriverschedulings_747_0.txt | 779 | |
Python_Threading_Schedule/busdriverschedulings_1428_0.txt | [ 126 , "06:13" , "06:58" , 373 , 418 , 45 ], | |
Python_Threading_Schedule/busdriverschedulings_651_0.txt | 683 | |
Python_Threading_Schedule/busdriverschedulings_1325_0.txt | [ 23 , "04:49" , "05:18" , 289 , 318 , 29 ], | |
Python_Threading_Schedule/pythonjobscheduling_11_0.txt | Icon
SAP S/4HANA ERP Automation
Enhance SAP S/4HANA Cloud with RunMyJobs. | |
Python_Threading_Schedule/busdriverschedulings_1669_0.txt | [ 367 , "08:46" , "09:30" , 526 , 570 , 44 ], | |
Python_Threading_Schedule/busdriverschedulings_379_0.txt | 411 | |
Python_Threading_Schedule/pythonjobscheduling_34_0.txt | import time | |
Python_Threading_Schedule/busdriverschedulings_1849_0.txt | [ 547 , "11:29" , "12:54" , 689 , 774 , 85 ], | |
Python_Threading_Schedule/Python_threading__2_1.txt |
It must be called at most once per thread object. It arranges for the
objectâs ` run() ` method to be invoked in a separate thread of control.
This method will raise a [ ` RuntimeError ` ](exceptions.html#RuntimeError
"RuntimeError") if called more than once on the same thread object.
run ( ) ¶
Metho... | |
Python_Threading_Schedule/busdriverschedulings_67_0.txt | [ Raw ](https://github.com/google/or-
tools/raw/stable/examples/python/bus_driver_scheduling_sat.py) | |
Python_Threading_Schedule/busdriverschedulings_373_0.txt | 405 | |
Python_Threading_Schedule/busdriverschedulings_383_0.txt | 415 | |
Python_Threading_Schedule/busdriverschedulings_1934_0.txt | [ 632 , "12:38" , "13:25" , 758 , 805 , 47 ], | |
Python_Threading_Schedule/busdriverschedulings_1560_0.txt | [ 258 , "07:34" , "08:33" , 454 , 513 , 59 ], | |
Python_Threading_Schedule/1722_157_0.txt | No branches or pull requests | |
Python_Threading_Schedule/busdriverschedulings_1087_0.txt | [ 39 , "16:36" , "17:21" , 996 , 1041 , 45 ], | |
Python_Threading_Schedule/busdriverschedulings_271_0.txt | 303 | |
Python_Threading_Schedule/busdriverschedulings_1323_0.txt | [ 21 , "04:48" , "05:30" , 288 , 330 , 42 ], | |
Python_Threading_Schedule/busdriverschedulings_1740_0.txt | [ 438 , "09:48" , "10:30" , 588 , 630 , 42 ], | |
Python_Threading_Schedule/busdriverschedulings_619_0.txt | 651 | |
Python_Threading_Schedule/busdriverschedulings_283_0.txt | 315 | |
Python_Threading_Schedule/busdriverschedulings_64_0.txt | * Code | |
Python_Threading_Schedule/1722_7_0.txt | Explore | |
Python_Threading_Schedule/busdriverschedulings_661_0.txt | 693 | |
Python_Threading_Schedule/busdriverschedulings_478_0.txt | 510 | |
Python_Threading_Schedule/busdriverschedulings_751_0.txt | 783 | |
Python_Threading_Schedule/busdriverschedulings_1859_0.txt | [ 557 , "11:40" , "11:50" , 700 , 710 , 10 ], | |
Python_Threading_Schedule/busdriverschedulings_365_0.txt | 397 | |
Python_Threading_Schedule/busdriverschedulings_1633_0.txt | [ 331 , "08:21" , "08:47" , 501 , 527 , 26 ], | |
Python_Threading_Schedule/busdriverschedulings_1384_0.txt | [ 82 , "05:41" , "06:01" , 341 , 361 , 20 ], | |
Python_Threading_Schedule/busdriverschedulings_1321_0.txt | [ 19 , "04:46" , "04:56" , 286 , 296 , 10 ], | |
Python_Threading_Schedule/busdriverschedulings_1685_0.txt | [ 383 , "09:00" , "09:35" , 540 , 575 , 35 ], | |
Python_Threading_Schedule/busdriverschedulings_1312_0.txt | [ 10 , "04:35" , "04:50" , 275 , 290 , 15 ], | |
Python_Threading_Schedule/busdriverschedulings_588_0.txt | 620 | |
Python_Threading_Schedule/busdriverschedulings_622_0.txt | 654 | |
Python_Threading_Schedule/busdriverschedulings_1589_0.txt | [ 287 , "07:52" , "08:21" , 472 , 501 , 29 ], | |
Python_Threading_Schedule/busdriverschedulings_494_0.txt | 526 | |
Python_Threading_Schedule/busdriverschedulings_601_0.txt | 633 | |
Python_Threading_Schedule/busdriverschedulings_996_0.txt | _OUTPUT_PROTO = flags . DEFINE_string ( | |
Python_Threading_Schedule/busdriverschedulings_801_0.txt | 833 | |
Python_Threading_Schedule/busdriverschedulings_1890_0.txt | [ 588 , "12:04" , "12:15" , 724 , 735 , 11 ], | |
Python_Threading_Schedule/pythonjobscheduling_75_0.txt | # schedule the job to run every minute
scheduler.schedule(
scheduled_time=datetime.utcnow(), # start immediately
func=my_job,
interval=timedelta(minutes=1)
)
In this example, we first create a connection to Redis and then create a Scheduler object using that connection. We define a simple job function that prints “Hel... | |
Python_Threading_Schedule/busdriverschedulings_1772_0.txt | [ 470 , "10:18" , "11:43" , 618 , 703 , 85 ], | |
Python_Threading_Schedule/busdriverschedulings_763_0.txt | 795 | |
Python_Threading_Schedule/busdriverschedulings_794_0.txt | 826 | |
Python_Threading_Schedule/busdriverschedulings_955_0.txt | 987 | |
Python_Threading_Schedule/busdriverschedulings_983_0.txt | \- max working time per driver <= 12h | |
Python_Threading_Schedule/busdriverschedulings_962_0.txt | 994 | |
Python_Threading_Schedule/busdriverschedulings_1046_0.txt | # - shift end minute | |
Python_Threading_Schedule/busdriverschedulings_976_0.txt | # distributed under the License is distributed on an "AS IS" BASIS, | |
Python_Threading_Schedule/1722_113_0.txt | # Arc from source to shift.
# - set the start time of the driver
# - increase driving time and driving time since break
source_lit = model.NewBoolVar('%i from source to %i' % (d, s))
outgoing_source_literals.append(source_lit)
incoming_literals[s].append(source_lit)
shared_incoming_literals[s].append(source_lit)
... | |
Python_Threading_Schedule/busdriverschedulings_1493_0.txt | [ 191 , "06:53" , "07:37" , 413 , 457 , 44 ], | |
Python_Threading_Schedule/1722_135_0.txt | first = True
for s in range(num_shifts):
shift = SAMPLE_SHIFTS[s] | |
Python_Threading_Schedule/busdriverschedulings_444_0.txt | 476 | |
Python_Threading_Schedule/busdriverschedulings_1768_0.txt | [ 466 , "10:14" , "11:41" , 614 , 701 , 87 ], | |
Python_Threading_Schedule/busdriverschedulings_1143_0.txt | [ 43 , "07:58" , "08:45" , 478 , 525 , 47 ], | |
Python_Threading_Schedule/busdriverschedulings_1207_0.txt | [ 107 , "13:53" , "14:40" , 833 , 880 , 47 ], | |
Python_Threading_Schedule/busdriverschedulings_1212_0.txt | [ 112 , "14:20" , "15:31" , 860 , 931 , 71 ], | |
Python_Threading_Schedule/pythonjobscheduling_94_0.txt | There are various ways programmers schedule and execute Python jobs, including simple loops, simple threaded loops, using the Schedule Python Library, Python Crontab, and RQ Scheduler as decoupled queues. | |
Python_Threading_Schedule/busdriverschedulings_1350_0.txt | [ 48 , "05:13" , "05:38" , 313 , 338 , 25 ], | |
Python_Threading_Schedule/busdriverschedulings_430_0.txt | 462 | |
Python_Threading_Schedule/busdriverschedulings_1376_0.txt | [ 74 , "05:38" , "06:33" , 338 , 393 , 55 ], | |
Python_Threading_Schedule/busdriverschedulings_1793_0.txt | [ 491 , "10:39" , "11:33" , 639 , 693 , 54 ], | |
Python_Threading_Schedule/busdriverschedulings_770_0.txt | 802 | |
Python_Threading_Schedule/1722_164_0.txt | You can’t perform that action at this time. | |
Python_Threading_Schedule/busdriverschedulings_993_0.txt | from absl import flags | |
Python_Threading_Schedule/busdriverschedulings_772_0.txt | 804 | |
Python_Threading_Schedule/Python_threading__4_0.txt | ## RLock Objects ¶
A reentrant lock is a synchronization primitive that may be acquired multiple
times by the same thread. Internally, it uses the concepts of âowning
threadâ and ârecursion levelâ in addition to the locked/unlocked state
used by primitive locks. In the locked state, some thread owns the loc... | |
Python_Threading_Schedule/1722_15_0.txt | * [ Learning Pathways ](https://resources.github.com/learn/pathways)
* [ White papers, Ebooks, Webinars ](https://resources.github.com)
* [ Customer Stories ](https://github.com/customer-stories)
* [ Partners ](https://partner.github.com) | |
Python_Threading_Schedule/busdriverschedulings_13_0.txt | * [ CI/CD & Automation ](https://github.com/solutions/ci-cd)
* [ DevOps ](https://github.com/solutions/devops)
* [ DevSecOps ](https://resources.github.com/devops/fundamentals/devsecops) | |
Python_Threading_Schedule/1722_123_0.txt | if minimize_drivers:
# Driver is not working.
working = model.NewBoolVar('working_%i' % d)
model.Add(start_times[d] == min_start_time).OnlyEnforceIf(
working.Not())
model.Add(end_times[d] == min_start_time).OnlyEnforceIf(
working.Not())
model.Add(driving_times[d] == 0).OnlyEnforceIf(working.Not())
working_drivers.appen... | |
Python_Threading_Schedule/busdriverschedulings_462_0.txt | 494 | |
Python_Threading_Schedule/busdriverschedulings_1067_0.txt | [ 19 , "09:30" , "09:40" , 570 , 580 , 10 ], | |
Python_Threading_Schedule/busdriverschedulings_1226_0.txt | [ 126 , "15:18" , "16:05" , 918 , 965 , 47 ], | |
Python_Threading_Schedule/1722_104_0.txt | # For each driver and each shift, we store:
# - the total driving time including this shift
# - the acrued driving time since the last 30 minute break
# Special arcs have the following effect:
# - 'from source to shift' sets the starting time and accumulate the first
# shift
# - 'from shift to end' sets th... | |
Python_Threading_Schedule/busdriverschedulings_1823_0.txt | [ 521 , "11:05" , "11:44" , 665 , 704 , 39 ], | |
Python_Threading_Schedule/workflowyschedulingi_1_0.txt | * [ Home ](https://lukemerrett.com/)
* [ F# Posts ](https://lukemerrett.com/tag/fsharp/)
* [ Presentations ](https://lukemerrett.com/Presentations/)
* [ About ](https://lukemerrett.com/about/)
* [ Trail Running Blog ](https://leave-the-road-and.run/) | |
Python_Threading_Schedule/busdriverschedulings_1074_0.txt | [ 26 , "13:18" , "14:44" , 798 , 884 , 86 ], | |
Python_Threading_Schedule/busdriverschedulings_820_0.txt | 852 | |
Python_Threading_Schedule/busdriverschedulings_129_0.txt | 161 | |
Python_Threading_Schedule/busdriverschedulings_1150_0.txt | [ 50 , "08:20" , "08:36" , 500 , 516 , 16 ], | |
Python_Threading_Schedule/busdriverschedulings_1550_0.txt | [ 248 , "07:27" , "08:07" , 447 , 487 , 40 ], | |
Python_Threading_Schedule/1722_36_0.txt | Cancel Create saved search | |
Python_Threading_Schedule/busdriverschedulings_1707_0.txt | [ 405 , "09:18" , "09:58" , 558 , 598 , 40 ], | |
Python_Threading_Schedule/busdriverschedulings_626_0.txt | 658 | |
Python_Threading_Schedule/busdriverschedulings_566_0.txt | 598 | |
Python_Threading_Schedule/busdriverschedulings_802_0.txt | 834 | |
Python_Threading_Schedule/busdriverschedulings_1320_0.txt | [ 18 , "04:46" , "05:01" , 286 , 301 , 15 ], | |
Python_Threading_Schedule/workflowyschedulingi_17_0.txt | * Launching Firefox
* Logging in to Workflowy for me
* Finding all items with a tag matching todays date (e.g: #2016-02-18)
* Giving each of those items a tag #Focus | |
Python_Threading_Schedule/busdriverschedulings_699_0.txt | 731 | |
Python_Threading_Schedule/busdriverschedulings_1049_0.txt | [ 1 , "05:26" , "06:08" , 326 , 368 , 42 ], | |
Python_Threading_Schedule/busdriverschedulings_1693_0.txt | [ 391 , "09:05" , "09:25" , 545 , 565 , 20 ], | |
Python_Threading_Schedule/busdriverschedulings_124_0.txt | 156 | |
Python_Threading_Schedule/busdriverschedulings_1389_0.txt | [ 87 , "05:47" , "06:17" , 347 , 377 , 30 ], | |
Python_Threading_Schedule/busdriverschedulings_464_0.txt | 496 | |
Python_Threading_Schedule/busdriverschedulings_1193_0.txt | [ 93 , "13:08" , "13:55" , 788 , 835 , 47 ], |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.