Dataset Viewer
Auto-converted to Parquet Duplicate
content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
class Solution: def finalPrices(self, prices: List[int]) -> List[int]: res = [] for i in range(len(prices)): for j in range(i+1,len(prices)): if prices[j]<=prices[i]: res.append(prices[i]-prices[j]) break if j==len(p...
class Solution: def final_prices(self, prices: List[int]) -> List[int]: res = [] for i in range(len(prices)): for j in range(i + 1, len(prices)): if prices[j] <= prices[i]: res.append(prices[i] - prices[j]) break if...
"""Tests for the sbahn_munich integration""" line_dict = { "name": "S3", "color": "#333333", "text_color": "#444444", }
"""Tests for the sbahn_munich integration""" line_dict = {'name': 'S3', 'color': '#333333', 'text_color': '#444444'}
N, M = map(int, input().split()) for i in range(1, M + 1): if i % 2 == 1: j = (i - 1) // 2 print(1 + j, M + 1 - j) else: j = (i - 2) // 2 print(M + 2 + j, 2 * M + 1 - j)
(n, m) = map(int, input().split()) for i in range(1, M + 1): if i % 2 == 1: j = (i - 1) // 2 print(1 + j, M + 1 - j) else: j = (i - 2) // 2 print(M + 2 + j, 2 * M + 1 - j)
summary = 0 i = 0 while i < 5: summary = summary + i print(summary) i = i + 1
summary = 0 i = 0 while i < 5: summary = summary + i print(summary) i = i + 1
# Store the version here so: # 1) we don't load dependencies by storing it in __init__.py # 2) we can import it in setup.py for the same reason # 3) we can import it into your module module # https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package __version__ = '1.6.1' release_note...
__version__ = '1.6.1' release_notes = {'1.6.1': '\n Fixed GUI crash when loading certain RLBot config files with relative paths for agents.\n Fixed agent preset loading to allow multiple agents to saved/loaded correctly if they have the same name. - ima9rd\n ', '1.6.0': '\n Add support for auto starting .NE...
input = """ c(2). p(1). a(2). d(2,2,1). okay(X):- c(X), #count{V:a(V),d(V,X,1)} = 1. ouch(X):- p(X), #count{V:a(V),d(V,X,1)} = 1. """ output = """ {a(2), c(2), d(2,2,1), okay(2), p(1)} """
input = '\nc(2).\np(1).\na(2).\nd(2,2,1).\nokay(X):- c(X), #count{V:a(V),d(V,X,1)} = 1.\nouch(X):- p(X), #count{V:a(V),d(V,X,1)} = 1.\n' output = '\n{a(2), c(2), d(2,2,1), okay(2), p(1)}\n'
"#\n# PySNMP MIB module XXX-MIB (http://snmplabs.com/pysmi)\n# ASN.1 source file:///Users/davwang4/D(...TRUNCATED)
"(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', '(...TRUNCATED)
"# Copyright (c) 2009 The Chromium Authors. All rights reserved.\n# Use of this source code is gover(...TRUNCATED)
"{'conditions': [['OS!=\"win\"', {'variables': {'config_h_dir': '.'}}, {'variables': {'config_h_dir'(...TRUNCATED)
"# def mul(a):\n# \treturn lambda b:b*a\n\n# singler = mul(1) # addition = lambda b:b*1\n# double(...TRUNCATED)
"class Student:\n\n def __init__(self, fname):\n self.fname = fname\n\n def greet(self,(...TRUNCATED)
"class MyError(Exception):\n pass\n\n\nclass PropertyContainer(object):\n def __init__(self):\(...TRUNCATED)
"class Myerror(Exception):\n pass\n\nclass Propertycontainer(object):\n\n def __init__(self):\(...TRUNCATED)
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
22