task stringclasses 4
values | prompt stringlengths 60 573k | completion stringlengths 60 683k | source_language stringclasses 2
values | target_language stringclasses 4
values | run_name stringclasses 2
values | example_index int64 1 100k | source_metadata dict | hashes dict | source_compile_ok bool 1
class | roundtrip_compile_ok bool 1
class | runtime_signature_match null |
|---|---|---|---|---|---|---|---|---|---|---|---|
python_to_en_plaincode | import os
import sys
import shutil
cwd_path = os.getcwd()
sys.path.append(os.path.join(os.path.dirname(cwd_path), 'rt-thread', 'tools'))
# BSP dist function
def dist_do_building(BSP_ROOT, dist_dir):
from mkdist import bsp_copy_files
import rtconfig
library_dir = os.path.join(dist_dir, 'libraries')
p... | Load os.
Load sys.
Load shutil.
Set cwd_path to os dot getcwd with no values.
Call sys dot path dot append with (os dot path dot join with (os dot path dot dirname with cwd_path), "rt-thread", and "tools").
# BSP dist function
Define function dist_do_building with parameters BSP_ROOT, dist_dir:
Load bsp_copy_files ... | python | en | run_002_20260417_060406 | 76 | {
"max_stars_repo_path": "bsp/nrf5x/tools/sdk_dist.py",
"max_stars_repo_name": "BreederBai/rt-thread",
"max_stars_count": 7482,
"id": "136",
"raw_source_hash": "d19d211abe43af301351b8e1736424459a918224c16ef527d91b3d07aab3f128",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
... | {
"raw_source_hash": "d19d211abe43af301351b8e1736424459a918224c16ef527d91b3d07aab3f128",
"normalized_source_hash": "f6117c7723e25c89e2f37bec6de7957a28eeb7565864875b49d0ec08ae9f0f89",
"source_ast_hash": "c740a902dbc771e00b79ddcfa147109bcff7f7369256790c27af9e23c6543bf0",
"artifact_hash": "71d46f180611f2d6bf607609... | true | true | null |
python_to_es_plaincode | import os
import sys
import shutil
cwd_path = os.getcwd()
sys.path.append(os.path.join(os.path.dirname(cwd_path), 'rt-thread', 'tools'))
# BSP dist function
def dist_do_building(BSP_ROOT, dist_dir):
from mkdist import bsp_copy_files
import rtconfig
library_dir = os.path.join(dist_dir, 'libraries')
p... | Importar os.
Importar sys.
Importar shutil.
Establecer cwd_path como os punto getcwd sin argumentos.
Llamar sys punto path punto append con (os punto path punto join con (os punto path punto dirname con cwd_path), "rt-thread", y también "tools").
# BSP dist function
Definir función dist_do_building con parámetros BSP_R... | python | es | run_002_20260417_060406 | 76 | {
"max_stars_repo_path": "bsp/nrf5x/tools/sdk_dist.py",
"max_stars_repo_name": "BreederBai/rt-thread",
"max_stars_count": 7482,
"id": "136",
"raw_source_hash": "d19d211abe43af301351b8e1736424459a918224c16ef527d91b3d07aab3f128",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
... | {
"raw_source_hash": "d19d211abe43af301351b8e1736424459a918224c16ef527d91b3d07aab3f128",
"normalized_source_hash": "f6117c7723e25c89e2f37bec6de7957a28eeb7565864875b49d0ec08ae9f0f89",
"source_ast_hash": "c740a902dbc771e00b79ddcfa147109bcff7f7369256790c27af9e23c6543bf0",
"artifact_hash": "71d46f180611f2d6bf607609... | true | true | null |
python_to_fr_plaincode | import os
import sys
import shutil
cwd_path = os.getcwd()
sys.path.append(os.path.join(os.path.dirname(cwd_path), 'rt-thread', 'tools'))
# BSP dist function
def dist_do_building(BSP_ROOT, dist_dir):
from mkdist import bsp_copy_files
import rtconfig
library_dir = os.path.join(dist_dir, 'libraries')
p... | Charger os.
Charger sys.
Charger shutil.
Affecter cwd_path à os point de getcwd sans arguments.
Appeler sys point de path point de append avec (os point de path point de join avec (os point de path point de dirname avec cwd_path), "rt-thread", et "tools").
# BSP dist function
Définir fonction dist_do_building avec para... | python | fr | run_002_20260417_060406 | 76 | {
"max_stars_repo_path": "bsp/nrf5x/tools/sdk_dist.py",
"max_stars_repo_name": "BreederBai/rt-thread",
"max_stars_count": 7482,
"id": "136",
"raw_source_hash": "d19d211abe43af301351b8e1736424459a918224c16ef527d91b3d07aab3f128",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
... | {
"raw_source_hash": "d19d211abe43af301351b8e1736424459a918224c16ef527d91b3d07aab3f128",
"normalized_source_hash": "f6117c7723e25c89e2f37bec6de7957a28eeb7565864875b49d0ec08ae9f0f89",
"source_ast_hash": "c740a902dbc771e00b79ddcfa147109bcff7f7369256790c27af9e23c6543bf0",
"artifact_hash": "71d46f180611f2d6bf607609... | true | true | null |
en_plaincode_to_python | Load os.
Load sys.
Load shutil.
Set cwd_path to os dot getcwd with no values.
Call sys dot path dot append with (os dot path dot join with (os dot path dot dirname with cwd_path), "rt-thread", and "tools").
# BSP dist function
Define function dist_do_building with parameters BSP_ROOT, dist_dir:
Load bsp_copy_files ... | import os
import sys
import shutil
cwd_path = os.getcwd()
sys.path.append(os.path.join(os.path.dirname(cwd_path), 'rt-thread', 'tools'))
# BSP dist function
def dist_do_building(BSP_ROOT, dist_dir):
from mkdist import bsp_copy_files
import rtconfig
library_dir = os.path.join(dist_dir, 'libraries')
p... | en | python | run_002_20260417_060406 | 76 | {
"max_stars_repo_path": "bsp/nrf5x/tools/sdk_dist.py",
"max_stars_repo_name": "BreederBai/rt-thread",
"max_stars_count": 7482,
"id": "136",
"raw_source_hash": "d19d211abe43af301351b8e1736424459a918224c16ef527d91b3d07aab3f128",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
... | {
"raw_source_hash": "d19d211abe43af301351b8e1736424459a918224c16ef527d91b3d07aab3f128",
"normalized_source_hash": "f6117c7723e25c89e2f37bec6de7957a28eeb7565864875b49d0ec08ae9f0f89",
"source_ast_hash": "c740a902dbc771e00b79ddcfa147109bcff7f7369256790c27af9e23c6543bf0",
"artifact_hash": "71d46f180611f2d6bf607609... | true | true | null |
python_to_en_plaincode | # Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'conditions': [
['OS!="win"', {
'variables': {
'config_h_dir':
'.', # crafted for gcc/linux.
},
}, { # else, ... | # Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Evaluate the record {
`conditions` set to the list [
the list [
"OS!=\"win\"",
the record {`variables` set to the record {`config_h_di... | python | en | run_002_20260417_060406 | 77 | {
"max_stars_repo_path": "third_party/protobuf/protobuf.gyp",
"max_stars_repo_name": "meego-tablet-ux/meego-app-browser",
"max_stars_count": 1,
"id": "138",
"raw_source_hash": "3c49f78235799963261046baf51c3b44a7bda283d30c27cf601f49c9904b7bcb",
"sanitize_meta": {
"triple_block_count": 0,
"total_tripl... | {
"raw_source_hash": "3c49f78235799963261046baf51c3b44a7bda283d30c27cf601f49c9904b7bcb",
"normalized_source_hash": "e76d84d1ecebd4d431aa616b9348eb561adb279e95b5584c4d2df4cfa44f9ba4",
"source_ast_hash": "49175d51e7b278f164f8746ac45e757743b5fd58bbacca4d9eeaa25ea91039e4",
"artifact_hash": "04cbca586dbb9b50fd2f0b49... | true | true | null |
python_to_es_plaincode | # Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'conditions': [
['OS!="win"', {
'variables': {
'config_h_dir':
'.', # crafted for gcc/linux.
},
}, { # else, ... | # Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use de this source code es governed por a BSD-style license that can be
# found en the LICENSE file.
Evaluar el diccionario {
`conditions` establecido a la lista [
la lista [
"OS!=\"win\"",
el diccionario {`variables` establecido a el... | python | es | run_002_20260417_060406 | 77 | {
"max_stars_repo_path": "third_party/protobuf/protobuf.gyp",
"max_stars_repo_name": "meego-tablet-ux/meego-app-browser",
"max_stars_count": 1,
"id": "138",
"raw_source_hash": "3c49f78235799963261046baf51c3b44a7bda283d30c27cf601f49c9904b7bcb",
"sanitize_meta": {
"triple_block_count": 0,
"total_tripl... | {
"raw_source_hash": "3c49f78235799963261046baf51c3b44a7bda283d30c27cf601f49c9904b7bcb",
"normalized_source_hash": "e76d84d1ecebd4d431aa616b9348eb561adb279e95b5584c4d2df4cfa44f9ba4",
"source_ast_hash": "49175d51e7b278f164f8746ac45e757743b5fd58bbacca4d9eeaa25ea91039e4",
"artifact_hash": "04cbca586dbb9b50fd2f0b49... | true | true | null |
python_to_fr_plaincode | # Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'conditions': [
['OS!="win"', {
'variables': {
'config_h_dir':
'.', # crafted for gcc/linux.
},
}, { # else, ... | # Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use de this source code est governed par a BSD-style license that can be
# found dans the LICENSE file.
Évaluer le registre {
`conditions` défini à la liste [
la liste [
"OS!=\"win\"",
le registre {`variables` défini à le registre {`c... | python | fr | run_002_20260417_060406 | 77 | {
"max_stars_repo_path": "third_party/protobuf/protobuf.gyp",
"max_stars_repo_name": "meego-tablet-ux/meego-app-browser",
"max_stars_count": 1,
"id": "138",
"raw_source_hash": "3c49f78235799963261046baf51c3b44a7bda283d30c27cf601f49c9904b7bcb",
"sanitize_meta": {
"triple_block_count": 0,
"total_tripl... | {
"raw_source_hash": "3c49f78235799963261046baf51c3b44a7bda283d30c27cf601f49c9904b7bcb",
"normalized_source_hash": "e76d84d1ecebd4d431aa616b9348eb561adb279e95b5584c4d2df4cfa44f9ba4",
"source_ast_hash": "49175d51e7b278f164f8746ac45e757743b5fd58bbacca4d9eeaa25ea91039e4",
"artifact_hash": "04cbca586dbb9b50fd2f0b49... | true | true | null |
en_plaincode_to_python | # Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Evaluate the record {
`conditions` set to the list [
the list [
"OS!=\"win\"",
the record {`variables` set to the record {`config_h_di... | # Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'conditions': [
['OS!="win"', {
'variables': {
'config_h_dir':
'.', # crafted for gcc/linux.
},
}, { # else, ... | en | python | run_002_20260417_060406 | 77 | {
"max_stars_repo_path": "third_party/protobuf/protobuf.gyp",
"max_stars_repo_name": "meego-tablet-ux/meego-app-browser",
"max_stars_count": 1,
"id": "138",
"raw_source_hash": "3c49f78235799963261046baf51c3b44a7bda283d30c27cf601f49c9904b7bcb",
"sanitize_meta": {
"triple_block_count": 0,
"total_tripl... | {
"raw_source_hash": "3c49f78235799963261046baf51c3b44a7bda283d30c27cf601f49c9904b7bcb",
"normalized_source_hash": "e76d84d1ecebd4d431aa616b9348eb561adb279e95b5584c4d2df4cfa44f9ba4",
"source_ast_hash": "49175d51e7b278f164f8746ac45e757743b5fd58bbacca4d9eeaa25ea91039e4",
"artifact_hash": "04cbca586dbb9b50fd2f0b49... | true | true | null |
python_to_en_plaincode | # def mul(a):
# return lambda b:b*a
# singler = mul(1) # addition = lambda b:b*1
# doubler = mul(2) # addition = lambda b:b*2
# tripler = mul(3) # addition = lambda b:b*3
# print(doubler(7)) # 7*2 = 14
# print(tripler(7)) # 7*3 = 21
# print(singler(7)) # 7*1 = 7
class Student:
def __init__(self, fna... | # def mul(a):
# return lambda b:b*a
# singler = mul(1) # addition = lambda b:b*1
# doubler = mul(2) # addition = lambda b:b*2
# tripler = mul(3) # addition = lambda b:b*3
# print(doubler(7)) # 7*2 = 14
# print(tripler(7)) # 7*3 = 21
# print(singler(7)) # 7*1 = 7
Define class Student:
Define method _... | python | en | run_002_20260417_060406 | 78 | {
"max_stars_repo_path": "main.py",
"max_stars_repo_name": "Yash-s-Code-Camp/Python-Day-4",
"max_stars_count": 0,
"id": "139",
"raw_source_hash": "3d454de9c75f156a38444b9b3ab28ec0088703e6ed85a100c1ad84c3454a05aa",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"largest_trip... | {
"raw_source_hash": "3d454de9c75f156a38444b9b3ab28ec0088703e6ed85a100c1ad84c3454a05aa",
"normalized_source_hash": "a8e04c1592e5e4700beec567556523301f5b73c73ac96aa2274811fc4d55a89d",
"source_ast_hash": "7553ec44a410ce12b1bbf6c8eeee19cd5c400967ace664cdda3353afd82e7853",
"artifact_hash": "aa6281989f9b724406a5889b... | true | true | null |
python_to_es_plaincode | # def mul(a):
# return lambda b:b*a
# singler = mul(1) # addition = lambda b:b*1
# doubler = mul(2) # addition = lambda b:b*2
# tripler = mul(3) # addition = lambda b:b*3
# print(doubler(7)) # 7*2 = 14
# print(tripler(7)) # 7*3 = 21
# print(singler(7)) # 7*1 = 7
class Student:
def __init__(self, fna... | # def mul(a):
# return lambda b:b*a
# singler = mul(1) # addition = lambda b:b*1
# doubler = mul(2) # addition = lambda b:b*2
# tripler = mul(3) # addition = lambda b:b*3
# print(doubler(7)) # 7*2 = 14
# print(tripler(7)) # 7*3 = 21
# print(singler(7)) # 7*1 = 7
Definir clase Student:
Definir método... | python | es | run_002_20260417_060406 | 78 | {
"max_stars_repo_path": "main.py",
"max_stars_repo_name": "Yash-s-Code-Camp/Python-Day-4",
"max_stars_count": 0,
"id": "139",
"raw_source_hash": "3d454de9c75f156a38444b9b3ab28ec0088703e6ed85a100c1ad84c3454a05aa",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"largest_trip... | {
"raw_source_hash": "3d454de9c75f156a38444b9b3ab28ec0088703e6ed85a100c1ad84c3454a05aa",
"normalized_source_hash": "a8e04c1592e5e4700beec567556523301f5b73c73ac96aa2274811fc4d55a89d",
"source_ast_hash": "7553ec44a410ce12b1bbf6c8eeee19cd5c400967ace664cdda3353afd82e7853",
"artifact_hash": "aa6281989f9b724406a5889b... | true | true | null |
python_to_fr_plaincode | # def mul(a):
# return lambda b:b*a
# singler = mul(1) # addition = lambda b:b*1
# doubler = mul(2) # addition = lambda b:b*2
# tripler = mul(3) # addition = lambda b:b*3
# print(doubler(7)) # 7*2 = 14
# print(tripler(7)) # 7*3 = 21
# print(singler(7)) # 7*1 = 7
class Student:
def __init__(self, fna... | # def mul(a):
# return lambda b:b*a
# singler = mul(1) # addition = lambda b:b*1
# doubler = mul(2) # addition = lambda b:b*2
# tripler = mul(3) # addition = lambda b:b*3
# print(doubler(7)) # 7*2 = 14
# print(tripler(7)) # 7*3 = 21
# print(singler(7)) # 7*1 = 7
Définir classe Student:
Définir métho... | python | fr | run_002_20260417_060406 | 78 | {
"max_stars_repo_path": "main.py",
"max_stars_repo_name": "Yash-s-Code-Camp/Python-Day-4",
"max_stars_count": 0,
"id": "139",
"raw_source_hash": "3d454de9c75f156a38444b9b3ab28ec0088703e6ed85a100c1ad84c3454a05aa",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"largest_trip... | {
"raw_source_hash": "3d454de9c75f156a38444b9b3ab28ec0088703e6ed85a100c1ad84c3454a05aa",
"normalized_source_hash": "a8e04c1592e5e4700beec567556523301f5b73c73ac96aa2274811fc4d55a89d",
"source_ast_hash": "7553ec44a410ce12b1bbf6c8eeee19cd5c400967ace664cdda3353afd82e7853",
"artifact_hash": "aa6281989f9b724406a5889b... | true | true | null |
en_plaincode_to_python | # def mul(a):
# return lambda b:b*a
# singler = mul(1) # addition = lambda b:b*1
# doubler = mul(2) # addition = lambda b:b*2
# tripler = mul(3) # addition = lambda b:b*3
# print(doubler(7)) # 7*2 = 14
# print(tripler(7)) # 7*3 = 21
# print(singler(7)) # 7*1 = 7
Define class Student:
Define method _... | # def mul(a):
# return lambda b:b*a
# singler = mul(1) # addition = lambda b:b*1
# doubler = mul(2) # addition = lambda b:b*2
# tripler = mul(3) # addition = lambda b:b*3
# print(doubler(7)) # 7*2 = 14
# print(tripler(7)) # 7*3 = 21
# print(singler(7)) # 7*1 = 7
class Student:
def __init__(self, fna... | en | python | run_002_20260417_060406 | 78 | {
"max_stars_repo_path": "main.py",
"max_stars_repo_name": "Yash-s-Code-Camp/Python-Day-4",
"max_stars_count": 0,
"id": "139",
"raw_source_hash": "3d454de9c75f156a38444b9b3ab28ec0088703e6ed85a100c1ad84c3454a05aa",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"largest_trip... | {
"raw_source_hash": "3d454de9c75f156a38444b9b3ab28ec0088703e6ed85a100c1ad84c3454a05aa",
"normalized_source_hash": "a8e04c1592e5e4700beec567556523301f5b73c73ac96aa2274811fc4d55a89d",
"source_ast_hash": "7553ec44a410ce12b1bbf6c8eeee19cd5c400967ace664cdda3353afd82e7853",
"artifact_hash": "aa6281989f9b724406a5889b... | true | true | null |
python_to_en_plaincode | #!/usr/bin/env python
import urllib2
import httplib
from urlparse import urlparse
import csv
from wextractor.extractors.extractor import Extractor
class CsvExtractor(Extractor):
def __init__(self, target, header=None, dtypes=None, url=None):
'''
CsvExtractor initializes with an optional url flag ... | # !/usr/bin/env python
Load urllib2.
Load httplib.
Load urlparse from urlparse.
Load csv.
Load Extractor from wextractor.extractors.extractor.
Define class CsvExtractor inheriting from Extractor:
Define method __init__ with parameters self, target, header (default: None), dtypes (default: None), url (default: None)... | python | en | run_002_20260417_060406 | 79 | {
"max_stars_repo_path": "wextractor/extractors/csv_extractor.py",
"max_stars_repo_name": "codeforamerica/w-drive-extractor",
"max_stars_count": 3,
"id": "141",
"raw_source_hash": "3bd18430e1b4c20e02bdb5c8d0b23a0550c8c20e74a92e9b050b6ecf233ce1c9",
"sanitize_meta": {
"triple_block_count": 1,
"total_t... | {
"raw_source_hash": "3bd18430e1b4c20e02bdb5c8d0b23a0550c8c20e74a92e9b050b6ecf233ce1c9",
"normalized_source_hash": "6417276f8731bb5b0043cd5b5e2ee3b2a3bf2418f6f81c53ede7b167d38a56c6",
"source_ast_hash": "20e7beb980c3172b21982995d3bf0f8c731421f5f30afbd7fd1503d6dd6283ba",
"artifact_hash": "e9ab119e8c68f518ddb05fca... | true | true | null |
python_to_es_plaincode | #!/usr/bin/env python
import urllib2
import httplib
from urlparse import urlparse
import csv
from wextractor.extractors.extractor import Extractor
class CsvExtractor(Extractor):
def __init__(self, target, header=None, dtypes=None, url=None):
'''
CsvExtractor initializes with an optional url flag ... | # !/usr/bin/env python
Importar urllib2.
Importar httplib.
Importar urlparse desde urlparse.
Importar csv.
Importar Extractor desde wextractor.extractors.extractor.
Definir clase CsvExtractor heredando de Extractor:
Definir método __init__ con parámetros self, target, header (predeterminado: None), dtypes (predeter... | python | es | run_002_20260417_060406 | 79 | {
"max_stars_repo_path": "wextractor/extractors/csv_extractor.py",
"max_stars_repo_name": "codeforamerica/w-drive-extractor",
"max_stars_count": 3,
"id": "141",
"raw_source_hash": "3bd18430e1b4c20e02bdb5c8d0b23a0550c8c20e74a92e9b050b6ecf233ce1c9",
"sanitize_meta": {
"triple_block_count": 1,
"total_t... | {
"raw_source_hash": "3bd18430e1b4c20e02bdb5c8d0b23a0550c8c20e74a92e9b050b6ecf233ce1c9",
"normalized_source_hash": "6417276f8731bb5b0043cd5b5e2ee3b2a3bf2418f6f81c53ede7b167d38a56c6",
"source_ast_hash": "20e7beb980c3172b21982995d3bf0f8c731421f5f30afbd7fd1503d6dd6283ba",
"artifact_hash": "e9ab119e8c68f518ddb05fca... | true | true | null |
python_to_fr_plaincode | #!/usr/bin/env python
import urllib2
import httplib
from urlparse import urlparse
import csv
from wextractor.extractors.extractor import Extractor
class CsvExtractor(Extractor):
def __init__(self, target, header=None, dtypes=None, url=None):
'''
CsvExtractor initializes with an optional url flag ... | # !/usr/bin/env python
Charger urllib2.
Charger httplib.
Charger urlparse depuis urlparse.
Charger csv.
Charger Extractor depuis wextractor.extractors.extractor.
Définir classe CsvExtractor héritant de Extractor:
Définir méthode __init__ avec paramètres self, target, header (par défaut: None), dtypes (par défaut: N... | python | fr | run_002_20260417_060406 | 79 | {
"max_stars_repo_path": "wextractor/extractors/csv_extractor.py",
"max_stars_repo_name": "codeforamerica/w-drive-extractor",
"max_stars_count": 3,
"id": "141",
"raw_source_hash": "3bd18430e1b4c20e02bdb5c8d0b23a0550c8c20e74a92e9b050b6ecf233ce1c9",
"sanitize_meta": {
"triple_block_count": 1,
"total_t... | {
"raw_source_hash": "3bd18430e1b4c20e02bdb5c8d0b23a0550c8c20e74a92e9b050b6ecf233ce1c9",
"normalized_source_hash": "6417276f8731bb5b0043cd5b5e2ee3b2a3bf2418f6f81c53ede7b167d38a56c6",
"source_ast_hash": "20e7beb980c3172b21982995d3bf0f8c731421f5f30afbd7fd1503d6dd6283ba",
"artifact_hash": "e9ab119e8c68f518ddb05fca... | true | true | null |
en_plaincode_to_python | # !/usr/bin/env python
Load urllib2.
Load httplib.
Load urlparse from urlparse.
Load csv.
Load Extractor from wextractor.extractors.extractor.
Define class CsvExtractor inheriting from Extractor:
Define method __init__ with parameters self, target, header (default: None), dtypes (default: None), url (default: None)... | #!/usr/bin/env python
import urllib2
import httplib
from urlparse import urlparse
import csv
from wextractor.extractors.extractor import Extractor
class CsvExtractor(Extractor):
def __init__(self, target, header=None, dtypes=None, url=None):
'''
CsvExtractor initializes with an optional url flag ... | en | python | run_002_20260417_060406 | 79 | {
"max_stars_repo_path": "wextractor/extractors/csv_extractor.py",
"max_stars_repo_name": "codeforamerica/w-drive-extractor",
"max_stars_count": 3,
"id": "141",
"raw_source_hash": "3bd18430e1b4c20e02bdb5c8d0b23a0550c8c20e74a92e9b050b6ecf233ce1c9",
"sanitize_meta": {
"triple_block_count": 1,
"total_t... | {
"raw_source_hash": "3bd18430e1b4c20e02bdb5c8d0b23a0550c8c20e74a92e9b050b6ecf233ce1c9",
"normalized_source_hash": "6417276f8731bb5b0043cd5b5e2ee3b2a3bf2418f6f81c53ede7b167d38a56c6",
"source_ast_hash": "20e7beb980c3172b21982995d3bf0f8c731421f5f30afbd7fd1503d6dd6283ba",
"artifact_hash": "e9ab119e8c68f518ddb05fca... | true | true | null |
python_to_en_plaincode | # Copyright (c) 2017-2018 {Flair Inc.} <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | # Copyright (c) 2017-2018 {Flair Inc.} <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | python | en | run_002_20260417_060406 | 80 | {
"max_stars_repo_path": "src/main/python/taf/foundation/api/ui/aut.py",
"max_stars_repo_name": "WesleyPeng/uiXautomation",
"max_stars_count": 6,
"id": "143",
"raw_source_hash": "272b7e1671a9a4f047112809b50c7e4bdd5c3492579725b1f9be3c76e04cdd3f",
"sanitize_meta": {
"triple_block_count": 0,
"total_tri... | {
"raw_source_hash": "272b7e1671a9a4f047112809b50c7e4bdd5c3492579725b1f9be3c76e04cdd3f",
"normalized_source_hash": "3dbda5799e6e059ee02a22bd2c289316b0c4207885a71cc7703b1bc90a50daf8",
"source_ast_hash": "47b520200e3bf0c6e1abf041a00f4cb52298c7ccaaa6f9c425a1371e293cc5ea",
"artifact_hash": "867c511f1a920f860d5c84cb... | true | true | null |
python_to_es_plaincode | # Copyright (c) 2017-2018 {Flair Inc.} <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | # Copyright (c) 2017-2018 {Flair Inc.} <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may no use this file except en compliance con the License.
# You may obtain a copy de the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required por applicable law o agreed como... | python | es | run_002_20260417_060406 | 80 | {
"max_stars_repo_path": "src/main/python/taf/foundation/api/ui/aut.py",
"max_stars_repo_name": "WesleyPeng/uiXautomation",
"max_stars_count": 6,
"id": "143",
"raw_source_hash": "272b7e1671a9a4f047112809b50c7e4bdd5c3492579725b1f9be3c76e04cdd3f",
"sanitize_meta": {
"triple_block_count": 0,
"total_tri... | {
"raw_source_hash": "272b7e1671a9a4f047112809b50c7e4bdd5c3492579725b1f9be3c76e04cdd3f",
"normalized_source_hash": "3dbda5799e6e059ee02a22bd2c289316b0c4207885a71cc7703b1bc90a50daf8",
"source_ast_hash": "47b520200e3bf0c6e1abf041a00f4cb52298c7ccaaa6f9c425a1371e293cc5ea",
"artifact_hash": "867c511f1a920f860d5c84cb... | true | true | null |
python_to_fr_plaincode | # Copyright (c) 2017-2018 {Flair Inc.} <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | # Copyright (c) 2017-2018 {Flair Inc.} <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may non use this file except dans compliance avec the License.
# You may obtain a copy de the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required par applicable law ou agreed... | python | fr | run_002_20260417_060406 | 80 | {
"max_stars_repo_path": "src/main/python/taf/foundation/api/ui/aut.py",
"max_stars_repo_name": "WesleyPeng/uiXautomation",
"max_stars_count": 6,
"id": "143",
"raw_source_hash": "272b7e1671a9a4f047112809b50c7e4bdd5c3492579725b1f9be3c76e04cdd3f",
"sanitize_meta": {
"triple_block_count": 0,
"total_tri... | {
"raw_source_hash": "272b7e1671a9a4f047112809b50c7e4bdd5c3492579725b1f9be3c76e04cdd3f",
"normalized_source_hash": "3dbda5799e6e059ee02a22bd2c289316b0c4207885a71cc7703b1bc90a50daf8",
"source_ast_hash": "47b520200e3bf0c6e1abf041a00f4cb52298c7ccaaa6f9c425a1371e293cc5ea",
"artifact_hash": "867c511f1a920f860d5c84cb... | true | true | null |
en_plaincode_to_python | # Copyright (c) 2017-2018 {Flair Inc.} <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | # Copyright (c) 2017-2018 {Flair Inc.} <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | en | python | run_002_20260417_060406 | 80 | {
"max_stars_repo_path": "src/main/python/taf/foundation/api/ui/aut.py",
"max_stars_repo_name": "WesleyPeng/uiXautomation",
"max_stars_count": 6,
"id": "143",
"raw_source_hash": "272b7e1671a9a4f047112809b50c7e4bdd5c3492579725b1f9be3c76e04cdd3f",
"sanitize_meta": {
"triple_block_count": 0,
"total_tri... | {
"raw_source_hash": "272b7e1671a9a4f047112809b50c7e4bdd5c3492579725b1f9be3c76e04cdd3f",
"normalized_source_hash": "3dbda5799e6e059ee02a22bd2c289316b0c4207885a71cc7703b1bc90a50daf8",
"source_ast_hash": "47b520200e3bf0c6e1abf041a00f4cb52298c7ccaaa6f9c425a1371e293cc5ea",
"artifact_hash": "867c511f1a920f860d5c84cb... | true | true | null |
python_to_en_plaincode | import crypto_tools
from itertools import cycle
def vigenere_little_doc():
return "encrypt/decrypt using vigenere cypher"
def vigenere_full_doc():
return """
Advanced caesar we change dict on each char
"""
def vigenere_str_to_list(string, vigenere_dict):
result = list()
for char in string:... | Load crypto_tools.
Load cycle from itertools.
Define function vigenere_little_doc:
Return "encrypt/decrypt using vigenere cypher".
Define function vigenere_full_doc:
Return text block:
""
" Advanced caesar we change dict on each char"
" ".
Define function vigenere_str_to_list with parameters s... | python | en | run_002_20260417_060406 | 81 | {
"max_stars_repo_path": "algo/vigenere.py",
"max_stars_repo_name": "dkushche/Crypto",
"max_stars_count": 3,
"id": "144",
"raw_source_hash": "b62d6e7dc52b65b178378d7185ce0466a65e350efc8bac999e9af7d3816e1726",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 59,
"largest_triple_b... | {
"raw_source_hash": "b62d6e7dc52b65b178378d7185ce0466a65e350efc8bac999e9af7d3816e1726",
"normalized_source_hash": "68c32525356f85ddbb05c70031002bf0438a670734c1b0bf2c76bc39ed262fbf",
"source_ast_hash": "cc08b76d8d2eb0aea9b32a469fcfcf8dc496dbf5de8e684faa9a88b07adbcad5",
"artifact_hash": "2424736499d6f0491ae8e047... | true | true | null |
python_to_es_plaincode | import crypto_tools
from itertools import cycle
def vigenere_little_doc():
return "encrypt/decrypt using vigenere cypher"
def vigenere_full_doc():
return """
Advanced caesar we change dict on each char
"""
def vigenere_str_to_list(string, vigenere_dict):
result = list()
for char in string:... | Importar crypto_tools.
Importar cycle desde itertools.
Definir función vigenere_little_doc:
Devolver "encrypt/decrypt using vigenere cypher".
Definir función vigenere_full_doc:
Devolver texto literal:
""
" Advanced caesar we change dict on each char"
" ".
Definir función vigenere_str_to_list c... | python | es | run_002_20260417_060406 | 81 | {
"max_stars_repo_path": "algo/vigenere.py",
"max_stars_repo_name": "dkushche/Crypto",
"max_stars_count": 3,
"id": "144",
"raw_source_hash": "b62d6e7dc52b65b178378d7185ce0466a65e350efc8bac999e9af7d3816e1726",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 59,
"largest_triple_b... | {
"raw_source_hash": "b62d6e7dc52b65b178378d7185ce0466a65e350efc8bac999e9af7d3816e1726",
"normalized_source_hash": "68c32525356f85ddbb05c70031002bf0438a670734c1b0bf2c76bc39ed262fbf",
"source_ast_hash": "cc08b76d8d2eb0aea9b32a469fcfcf8dc496dbf5de8e684faa9a88b07adbcad5",
"artifact_hash": "2424736499d6f0491ae8e047... | true | true | null |
python_to_fr_plaincode | import crypto_tools
from itertools import cycle
def vigenere_little_doc():
return "encrypt/decrypt using vigenere cypher"
def vigenere_full_doc():
return """
Advanced caesar we change dict on each char
"""
def vigenere_str_to_list(string, vigenere_dict):
result = list()
for char in string:... | Charger crypto_tools.
Charger cycle depuis itertools.
Définir fonction vigenere_little_doc:
Retourner "encrypt/decrypt using vigenere cypher".
Définir fonction vigenere_full_doc:
Retourner texte littéral:
""
" Advanced caesar we change dict on each char"
" ".
Définir fonction vigenere_str_to_l... | python | fr | run_002_20260417_060406 | 81 | {
"max_stars_repo_path": "algo/vigenere.py",
"max_stars_repo_name": "dkushche/Crypto",
"max_stars_count": 3,
"id": "144",
"raw_source_hash": "b62d6e7dc52b65b178378d7185ce0466a65e350efc8bac999e9af7d3816e1726",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 59,
"largest_triple_b... | {
"raw_source_hash": "b62d6e7dc52b65b178378d7185ce0466a65e350efc8bac999e9af7d3816e1726",
"normalized_source_hash": "68c32525356f85ddbb05c70031002bf0438a670734c1b0bf2c76bc39ed262fbf",
"source_ast_hash": "cc08b76d8d2eb0aea9b32a469fcfcf8dc496dbf5de8e684faa9a88b07adbcad5",
"artifact_hash": "2424736499d6f0491ae8e047... | true | true | null |
en_plaincode_to_python | Load crypto_tools.
Load cycle from itertools.
Define function vigenere_little_doc:
Return "encrypt/decrypt using vigenere cypher".
Define function vigenere_full_doc:
Return text block:
""
" Advanced caesar we change dict on each char"
" ".
Define function vigenere_str_to_list with parameters s... | import crypto_tools
from itertools import cycle
def vigenere_little_doc():
return "encrypt/decrypt using vigenere cypher"
def vigenere_full_doc():
return """
Advanced caesar we change dict on each char
"""
def vigenere_str_to_list(string, vigenere_dict):
result = list()
for char in string:... | en | python | run_002_20260417_060406 | 81 | {
"max_stars_repo_path": "algo/vigenere.py",
"max_stars_repo_name": "dkushche/Crypto",
"max_stars_count": 3,
"id": "144",
"raw_source_hash": "b62d6e7dc52b65b178378d7185ce0466a65e350efc8bac999e9af7d3816e1726",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 59,
"largest_triple_b... | {
"raw_source_hash": "b62d6e7dc52b65b178378d7185ce0466a65e350efc8bac999e9af7d3816e1726",
"normalized_source_hash": "68c32525356f85ddbb05c70031002bf0438a670734c1b0bf2c76bc39ed262fbf",
"source_ast_hash": "cc08b76d8d2eb0aea9b32a469fcfcf8dc496dbf5de8e684faa9a88b07adbcad5",
"artifact_hash": "2424736499d6f0491ae8e047... | true | true | null |
python_to_en_plaincode | class MyError(Exception):
pass
class PropertyContainer(object):
def __init__(self):
self.props = {}
def set_property(self, prop, value):
self.props[prop] = value
def get_property(self, prop):
return self.props.get(prop)
def has_property(self, prop):
return prop i... | Define class MyError inheriting from Exception:
Do nothing.
Define class PropertyContainer inheriting from object:
Define method __init__ with parameter self:
Set self dot props to an empty dictionary.
Define method set_property with parameters self, prop, value:
Set item prop of self dot pr... | python | en | run_002_20260417_060406 | 82 | {
"max_stars_repo_path": "homework/Testing with Examples (Network)/impl_fail-add_relation-does_not_fail_when_person1_is_non_existent.py",
"max_stars_repo_name": "rvprasad/software-testing-course",
"max_stars_count": 11,
"id": "147",
"raw_source_hash": "a7145ed59d1b8b6fa6407092582d93a0159d701a826eee690195b52ac... | {
"raw_source_hash": "a7145ed59d1b8b6fa6407092582d93a0159d701a826eee690195b52ac987c6ed",
"normalized_source_hash": "e285407a66fcd08d0e4511dffd0b4722e8b893b18be5a09c2aa196c391bdd2eb",
"source_ast_hash": "59b2682d4dc95bd4b4bcdb7dd83620a173063f0ea04cd3e0f9feaa30d9aaac9f",
"artifact_hash": "aee4e02a8876d67b2b799e8b... | true | true | null |
python_to_es_plaincode | class MyError(Exception):
pass
class PropertyContainer(object):
def __init__(self):
self.props = {}
def set_property(self, prop, value):
self.props[prop] = value
def get_property(self, prop):
return self.props.get(prop)
def has_property(self, prop):
return prop i... | Definir clase MyError heredando de Exception:
No hacer nada.
Definir clase PropertyContainer heredando de object:
Definir método __init__ con parámetro self:
Establecer self punto props como un diccionario vacío.
Definir método set_property con parámetros self, prop, value:
Establecer elemen... | python | es | run_002_20260417_060406 | 82 | {
"max_stars_repo_path": "homework/Testing with Examples (Network)/impl_fail-add_relation-does_not_fail_when_person1_is_non_existent.py",
"max_stars_repo_name": "rvprasad/software-testing-course",
"max_stars_count": 11,
"id": "147",
"raw_source_hash": "a7145ed59d1b8b6fa6407092582d93a0159d701a826eee690195b52ac... | {
"raw_source_hash": "a7145ed59d1b8b6fa6407092582d93a0159d701a826eee690195b52ac987c6ed",
"normalized_source_hash": "e285407a66fcd08d0e4511dffd0b4722e8b893b18be5a09c2aa196c391bdd2eb",
"source_ast_hash": "59b2682d4dc95bd4b4bcdb7dd83620a173063f0ea04cd3e0f9feaa30d9aaac9f",
"artifact_hash": "aee4e02a8876d67b2b799e8b... | true | true | null |
python_to_fr_plaincode | class MyError(Exception):
pass
class PropertyContainer(object):
def __init__(self):
self.props = {}
def set_property(self, prop, value):
self.props[prop] = value
def get_property(self, prop):
return self.props.get(prop)
def has_property(self, prop):
return prop i... | Définir classe MyError héritant de Exception:
Ne rien faire.
Définir classe PropertyContainer héritant de object:
Définir méthode __init__ avec paramètre self:
Affecter self point de props à un dictionnaire vide.
Définir méthode set_property avec paramètres self, prop, value:
Affecter élémen... | python | fr | run_002_20260417_060406 | 82 | {
"max_stars_repo_path": "homework/Testing with Examples (Network)/impl_fail-add_relation-does_not_fail_when_person1_is_non_existent.py",
"max_stars_repo_name": "rvprasad/software-testing-course",
"max_stars_count": 11,
"id": "147",
"raw_source_hash": "a7145ed59d1b8b6fa6407092582d93a0159d701a826eee690195b52ac... | {
"raw_source_hash": "a7145ed59d1b8b6fa6407092582d93a0159d701a826eee690195b52ac987c6ed",
"normalized_source_hash": "e285407a66fcd08d0e4511dffd0b4722e8b893b18be5a09c2aa196c391bdd2eb",
"source_ast_hash": "59b2682d4dc95bd4b4bcdb7dd83620a173063f0ea04cd3e0f9feaa30d9aaac9f",
"artifact_hash": "aee4e02a8876d67b2b799e8b... | true | true | null |
en_plaincode_to_python | Define class MyError inheriting from Exception:
Do nothing.
Define class PropertyContainer inheriting from object:
Define method __init__ with parameter self:
Set self dot props to an empty dictionary.
Define method set_property with parameters self, prop, value:
Set item prop of self dot pr... | class MyError(Exception):
pass
class PropertyContainer(object):
def __init__(self):
self.props = {}
def set_property(self, prop, value):
self.props[prop] = value
def get_property(self, prop):
return self.props.get(prop)
def has_property(self, prop):
return prop i... | en | python | run_002_20260417_060406 | 82 | {
"max_stars_repo_path": "homework/Testing with Examples (Network)/impl_fail-add_relation-does_not_fail_when_person1_is_non_existent.py",
"max_stars_repo_name": "rvprasad/software-testing-course",
"max_stars_count": 11,
"id": "147",
"raw_source_hash": "a7145ed59d1b8b6fa6407092582d93a0159d701a826eee690195b52ac... | {
"raw_source_hash": "a7145ed59d1b8b6fa6407092582d93a0159d701a826eee690195b52ac987c6ed",
"normalized_source_hash": "e285407a66fcd08d0e4511dffd0b4722e8b893b18be5a09c2aa196c391bdd2eb",
"source_ast_hash": "59b2682d4dc95bd4b4bcdb7dd83620a173063f0ea04cd3e0f9feaa30d9aaac9f",
"artifact_hash": "aee4e02a8876d67b2b799e8b... | true | true | null |
python_to_en_plaincode | from itertools import groupby
class Solution:
def countAndSay(self, n):
def gen(s):
return "".join(str(len(list(g))) + k for k, g in groupby(s))
s, i = "1", 1
while i < n:
s = gen(s)
i += 1
return s | Load groupby from itertools.
Define class Solution:
Define method countAndSay with parameters self, n:
Define function gen with parameter s:
Return "" dot join with (the generator of (str with (len with (list with g))) plus k For each k and g in groupby with s).
Unpack the tuple ("1", 1)... | python | en | run_002_20260417_060406 | 83 | {
"max_stars_repo_path": "leetCode/algorithms/easy/count_and_say.py",
"max_stars_repo_name": "ferhatelmas/algo",
"max_stars_count": 25,
"id": "149",
"raw_source_hash": "9a33e1f0290b4564d0196e61722fdd035c2476851a61cfb76953a83d68a496ce",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars"... | {
"raw_source_hash": "9a33e1f0290b4564d0196e61722fdd035c2476851a61cfb76953a83d68a496ce",
"normalized_source_hash": "6759e8555908323f4a515937868b02f0163803aa1a3d2fc7ca94d1ae55565eac",
"source_ast_hash": "c2c7cb7367398499f9b472e6a1b20671cd37741556a969d9784a020fe47f0f74",
"artifact_hash": "878bd54d5fb7c06e90b3a8f7... | true | true | null |
python_to_es_plaincode | from itertools import groupby
class Solution:
def countAndSay(self, n):
def gen(s):
return "".join(str(len(list(g))) + k for k, g in groupby(s))
s, i = "1", 1
while i < n:
s = gen(s)
i += 1
return s | Importar groupby desde itertools.
Definir clase Solution:
Definir método countAndSay con parámetros self, n:
Definir función gen con parámetro s:
Devolver "" punto join con (el generador de (str con (len con (list con g))) más k para cada k y también g en groupby con s).
Desempaquetar la... | python | es | run_002_20260417_060406 | 83 | {
"max_stars_repo_path": "leetCode/algorithms/easy/count_and_say.py",
"max_stars_repo_name": "ferhatelmas/algo",
"max_stars_count": 25,
"id": "149",
"raw_source_hash": "9a33e1f0290b4564d0196e61722fdd035c2476851a61cfb76953a83d68a496ce",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars"... | {
"raw_source_hash": "9a33e1f0290b4564d0196e61722fdd035c2476851a61cfb76953a83d68a496ce",
"normalized_source_hash": "6759e8555908323f4a515937868b02f0163803aa1a3d2fc7ca94d1ae55565eac",
"source_ast_hash": "c2c7cb7367398499f9b472e6a1b20671cd37741556a969d9784a020fe47f0f74",
"artifact_hash": "878bd54d5fb7c06e90b3a8f7... | true | true | null |
python_to_fr_plaincode | from itertools import groupby
class Solution:
def countAndSay(self, n):
def gen(s):
return "".join(str(len(list(g))) + k for k, g in groupby(s))
s, i = "1", 1
while i < n:
s = gen(s)
i += 1
return s | Charger groupby depuis itertools.
Définir classe Solution:
Définir méthode countAndSay avec paramètres self, n:
Définir fonction gen avec paramètre s:
Retourner "" point de join avec (le générateur de (str avec (len avec (list avec g))) plus k pour chaque k et g dans groupby avec s).
Déc... | python | fr | run_002_20260417_060406 | 83 | {
"max_stars_repo_path": "leetCode/algorithms/easy/count_and_say.py",
"max_stars_repo_name": "ferhatelmas/algo",
"max_stars_count": 25,
"id": "149",
"raw_source_hash": "9a33e1f0290b4564d0196e61722fdd035c2476851a61cfb76953a83d68a496ce",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars"... | {
"raw_source_hash": "9a33e1f0290b4564d0196e61722fdd035c2476851a61cfb76953a83d68a496ce",
"normalized_source_hash": "6759e8555908323f4a515937868b02f0163803aa1a3d2fc7ca94d1ae55565eac",
"source_ast_hash": "c2c7cb7367398499f9b472e6a1b20671cd37741556a969d9784a020fe47f0f74",
"artifact_hash": "878bd54d5fb7c06e90b3a8f7... | true | true | null |
en_plaincode_to_python | Load groupby from itertools.
Define class Solution:
Define method countAndSay with parameters self, n:
Define function gen with parameter s:
Return "" dot join with (the generator of (str with (len with (list with g))) plus k For each k and g in groupby with s).
Unpack the tuple ("1", 1)... | from itertools import groupby
class Solution:
def countAndSay(self, n):
def gen(s):
return "".join(str(len(list(g))) + k for k, g in groupby(s))
s, i = "1", 1
while i < n:
s = gen(s)
i += 1
return s | en | python | run_002_20260417_060406 | 83 | {
"max_stars_repo_path": "leetCode/algorithms/easy/count_and_say.py",
"max_stars_repo_name": "ferhatelmas/algo",
"max_stars_count": 25,
"id": "149",
"raw_source_hash": "9a33e1f0290b4564d0196e61722fdd035c2476851a61cfb76953a83d68a496ce",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars"... | {
"raw_source_hash": "9a33e1f0290b4564d0196e61722fdd035c2476851a61cfb76953a83d68a496ce",
"normalized_source_hash": "6759e8555908323f4a515937868b02f0163803aa1a3d2fc7ca94d1ae55565eac",
"source_ast_hash": "c2c7cb7367398499f9b472e6a1b20671cd37741556a969d9784a020fe47f0f74",
"artifact_hash": "878bd54d5fb7c06e90b3a8f7... | true | true | null |
python_to_en_plaincode | # !/usr/bin/python
# @time :2019/5/10 9:13
# @author :Mo
# @function :path of FeatureProject
import pathlib
import sys
import os
# base dir
projectdir = str(pathlib.Path(os.path.abspath(__file__)).parent.parent)
sys.path.append(projectdir)
# path of BERT model
model_dir = projectdir + '/Data/chinese_L-12_H-76... | # !/usr/bin/python
# @time :2019/5/10 9:13
# @author :Mo
# @function :path of FeatureProject
Load pathlib.
Load sys.
Load os.
# base dir
Set projectdir to str with (pathlib dot Path with (os dot path dot abspath with __file__)) dot parent dot parent.
Call sys dot path dot append with projectdir.
# path of BERT mo... | python | en | run_002_20260417_060406 | 84 | {
"max_stars_repo_path": "conf/feature_config.py",
"max_stars_repo_name": "pupuwudi/nlp_xiaojiang",
"max_stars_count": 0,
"id": "150",
"raw_source_hash": "fd2ae6b7cf3009c47980a87cf7d1e7737047835e28678b952b90c860a8fe0fbb",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"larg... | {
"raw_source_hash": "fd2ae6b7cf3009c47980a87cf7d1e7737047835e28678b952b90c860a8fe0fbb",
"normalized_source_hash": "27fc31f7ff11da9f37a78c7fc035e617b10dbf6c3df267e0fcf87caff1d2d710",
"source_ast_hash": "7dee74f5c8502dd5f4a86a555044c5b40114d07a8ea345be88b62aa21d5d4924",
"artifact_hash": "41bb46993831eff816aa1e53... | true | true | null |
python_to_es_plaincode | # !/usr/bin/python
# @time :2019/5/10 9:13
# @author :Mo
# @function :path of FeatureProject
import pathlib
import sys
import os
# base dir
projectdir = str(pathlib.Path(os.path.abspath(__file__)).parent.parent)
sys.path.append(projectdir)
# path of BERT model
model_dir = projectdir + '/Data/chinese_L-12_H-76... | # !/usr/bin/python
# @time :2019/5/10 9:13
# @author :Mo
# @function :path de FeatureProject
Importar pathlib.
Importar sys.
Importar os.
# base dir
Establecer projectdir como str con (pathlib punto Path con (os punto path punto abspath con __file__)) punto parent punto parent.
Llamar sys punto path punto append ... | python | es | run_002_20260417_060406 | 84 | {
"max_stars_repo_path": "conf/feature_config.py",
"max_stars_repo_name": "pupuwudi/nlp_xiaojiang",
"max_stars_count": 0,
"id": "150",
"raw_source_hash": "fd2ae6b7cf3009c47980a87cf7d1e7737047835e28678b952b90c860a8fe0fbb",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"larg... | {
"raw_source_hash": "fd2ae6b7cf3009c47980a87cf7d1e7737047835e28678b952b90c860a8fe0fbb",
"normalized_source_hash": "27fc31f7ff11da9f37a78c7fc035e617b10dbf6c3df267e0fcf87caff1d2d710",
"source_ast_hash": "7dee74f5c8502dd5f4a86a555044c5b40114d07a8ea345be88b62aa21d5d4924",
"artifact_hash": "41bb46993831eff816aa1e53... | true | true | null |
python_to_fr_plaincode | # !/usr/bin/python
# @time :2019/5/10 9:13
# @author :Mo
# @function :path of FeatureProject
import pathlib
import sys
import os
# base dir
projectdir = str(pathlib.Path(os.path.abspath(__file__)).parent.parent)
sys.path.append(projectdir)
# path of BERT model
model_dir = projectdir + '/Data/chinese_L-12_H-76... | # !/usr/bin/python
# @time :2019/5/10 9:13
# @author :Mo
# @function :path de FeatureProject
Charger pathlib.
Charger sys.
Charger os.
# base dir
Affecter projectdir à str avec (pathlib point de Path avec (os point de path point de abspath avec __file__)) point de parent point de parent.
Appeler sys point de path... | python | fr | run_002_20260417_060406 | 84 | {
"max_stars_repo_path": "conf/feature_config.py",
"max_stars_repo_name": "pupuwudi/nlp_xiaojiang",
"max_stars_count": 0,
"id": "150",
"raw_source_hash": "fd2ae6b7cf3009c47980a87cf7d1e7737047835e28678b952b90c860a8fe0fbb",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"larg... | {
"raw_source_hash": "fd2ae6b7cf3009c47980a87cf7d1e7737047835e28678b952b90c860a8fe0fbb",
"normalized_source_hash": "27fc31f7ff11da9f37a78c7fc035e617b10dbf6c3df267e0fcf87caff1d2d710",
"source_ast_hash": "7dee74f5c8502dd5f4a86a555044c5b40114d07a8ea345be88b62aa21d5d4924",
"artifact_hash": "41bb46993831eff816aa1e53... | true | true | null |
en_plaincode_to_python | # !/usr/bin/python
# @time :2019/5/10 9:13
# @author :Mo
# @function :path of FeatureProject
Load pathlib.
Load sys.
Load os.
# base dir
Set projectdir to str with (pathlib dot Path with (os dot path dot abspath with __file__)) dot parent dot parent.
Call sys dot path dot append with projectdir.
# path of BERT mo... | # !/usr/bin/python
# @time :2019/5/10 9:13
# @author :Mo
# @function :path of FeatureProject
import pathlib
import sys
import os
# base dir
projectdir = str(pathlib.Path(os.path.abspath(__file__)).parent.parent)
sys.path.append(projectdir)
# path of BERT model
model_dir = projectdir + '/Data/chinese_L-12_H-76... | en | python | run_002_20260417_060406 | 84 | {
"max_stars_repo_path": "conf/feature_config.py",
"max_stars_repo_name": "pupuwudi/nlp_xiaojiang",
"max_stars_count": 0,
"id": "150",
"raw_source_hash": "fd2ae6b7cf3009c47980a87cf7d1e7737047835e28678b952b90c860a8fe0fbb",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"larg... | {
"raw_source_hash": "fd2ae6b7cf3009c47980a87cf7d1e7737047835e28678b952b90c860a8fe0fbb",
"normalized_source_hash": "27fc31f7ff11da9f37a78c7fc035e617b10dbf6c3df267e0fcf87caff1d2d710",
"source_ast_hash": "7dee74f5c8502dd5f4a86a555044c5b40114d07a8ea345be88b62aa21d5d4924",
"artifact_hash": "41bb46993831eff816aa1e53... | true | true | null |
python_to_en_plaincode | """Test for .prep.read module
"""
from hidrokit.prep import read
import numpy as np
import pandas as pd
A = pd.DataFrame(
data=[
[1, 3, 4, np.nan, 2, np.nan],
[np.nan, 2, 3, np.nan, 1, 4],
[2, np.nan, 1, 3, 4, np.nan]
],
columns=['A', 'B', 'C', 'D', 'E', 'F']
)
A_date = A.set_inde... | Text block:
"Test for .prep.read module"
ending with a newline.
Load read from hidrokit.prep.
Load numpy, referred to as np.
Load pandas, referred to as pd.
Set A to pd dot DataFrame with data set to the list [
the list [
1,
3,
4,
np dot nan,
2,
np dot nan
],
the list [
np dot nan,
2,
... | python | en | run_002_20260417_060406 | 85 | {
"max_stars_repo_path": "tests/test_prep_read.py",
"max_stars_repo_name": "taruma/hidrokit",
"max_stars_count": 5,
"id": "151",
"raw_source_hash": "97800302a5de587f54c20c45128484ea368e48caec423828dff0bec4ecd82fd2",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 33,
"largest_t... | {
"raw_source_hash": "97800302a5de587f54c20c45128484ea368e48caec423828dff0bec4ecd82fd2",
"normalized_source_hash": "5a9ece41ea9c99aa258c8629bf4a9fce1c2f1ad06f9835267a517c73b14313ee",
"source_ast_hash": "49379e7e71f44d4b579e592db492c114a195a5ea41623cb8c77052fbe080ec46",
"artifact_hash": "13e155671525ac3cb39f4bb1... | true | true | null |
python_to_es_plaincode | """Test for .prep.read module
"""
from hidrokit.prep import read
import numpy as np
import pandas as pd
A = pd.DataFrame(
data=[
[1, 3, 4, np.nan, 2, np.nan],
[np.nan, 2, 3, np.nan, 1, 4],
[2, np.nan, 1, 3, 4, np.nan]
],
columns=['A', 'B', 'C', 'D', 'E', 'F']
)
A_date = A.set_inde... | Texto literal:
"Test for .prep.read module"
terminando con una nueva línea.
Importar read desde hidrokit.prep.
Importar numpy, referido como np.
Importar pandas, referido como pd.
Establecer A como pd punto DataFrame con data establecido a la lista [
la lista [
1,
3,
4,
np punto nan,
2,
np punto... | python | es | run_002_20260417_060406 | 85 | {
"max_stars_repo_path": "tests/test_prep_read.py",
"max_stars_repo_name": "taruma/hidrokit",
"max_stars_count": 5,
"id": "151",
"raw_source_hash": "97800302a5de587f54c20c45128484ea368e48caec423828dff0bec4ecd82fd2",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 33,
"largest_t... | {
"raw_source_hash": "97800302a5de587f54c20c45128484ea368e48caec423828dff0bec4ecd82fd2",
"normalized_source_hash": "5a9ece41ea9c99aa258c8629bf4a9fce1c2f1ad06f9835267a517c73b14313ee",
"source_ast_hash": "49379e7e71f44d4b579e592db492c114a195a5ea41623cb8c77052fbe080ec46",
"artifact_hash": "13e155671525ac3cb39f4bb1... | true | true | null |
python_to_fr_plaincode | """Test for .prep.read module
"""
from hidrokit.prep import read
import numpy as np
import pandas as pd
A = pd.DataFrame(
data=[
[1, 3, 4, np.nan, 2, np.nan],
[np.nan, 2, 3, np.nan, 1, 4],
[2, np.nan, 1, 3, 4, np.nan]
],
columns=['A', 'B', 'C', 'D', 'E', 'F']
)
A_date = A.set_inde... | Texte littéral:
"Test for .prep.read module"
se terminant par une nouvelle ligne.
Charger read depuis hidrokit.prep.
Charger numpy, référé comme np.
Charger pandas, référé comme pd.
Affecter A à pd point de DataFrame avec data défini à la liste [
la liste [
1,
3,
4,
np point de nan,
2,
np point ... | python | fr | run_002_20260417_060406 | 85 | {
"max_stars_repo_path": "tests/test_prep_read.py",
"max_stars_repo_name": "taruma/hidrokit",
"max_stars_count": 5,
"id": "151",
"raw_source_hash": "97800302a5de587f54c20c45128484ea368e48caec423828dff0bec4ecd82fd2",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 33,
"largest_t... | {
"raw_source_hash": "97800302a5de587f54c20c45128484ea368e48caec423828dff0bec4ecd82fd2",
"normalized_source_hash": "5a9ece41ea9c99aa258c8629bf4a9fce1c2f1ad06f9835267a517c73b14313ee",
"source_ast_hash": "49379e7e71f44d4b579e592db492c114a195a5ea41623cb8c77052fbe080ec46",
"artifact_hash": "13e155671525ac3cb39f4bb1... | true | true | null |
en_plaincode_to_python | Text block:
"Test for .prep.read module"
ending with a newline.
Load read from hidrokit.prep.
Load numpy, referred to as np.
Load pandas, referred to as pd.
Set A to pd dot DataFrame with data set to the list [
the list [
1,
3,
4,
np dot nan,
2,
np dot nan
],
the list [
np dot nan,
2,
... | """Test for .prep.read module
"""
from hidrokit.prep import read
import numpy as np
import pandas as pd
A = pd.DataFrame(
data=[
[1, 3, 4, np.nan, 2, np.nan],
[np.nan, 2, 3, np.nan, 1, 4],
[2, np.nan, 1, 3, 4, np.nan]
],
columns=['A', 'B', 'C', 'D', 'E', 'F']
)
A_date = A.set_inde... | en | python | run_002_20260417_060406 | 85 | {
"max_stars_repo_path": "tests/test_prep_read.py",
"max_stars_repo_name": "taruma/hidrokit",
"max_stars_count": 5,
"id": "151",
"raw_source_hash": "97800302a5de587f54c20c45128484ea368e48caec423828dff0bec4ecd82fd2",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 33,
"largest_t... | {
"raw_source_hash": "97800302a5de587f54c20c45128484ea368e48caec423828dff0bec4ecd82fd2",
"normalized_source_hash": "5a9ece41ea9c99aa258c8629bf4a9fce1c2f1ad06f9835267a517c73b14313ee",
"source_ast_hash": "49379e7e71f44d4b579e592db492c114a195a5ea41623cb8c77052fbe080ec46",
"artifact_hash": "13e155671525ac3cb39f4bb1... | true | true | null |
python_to_en_plaincode | from flasgger import swag_from
from app.blueprints.base_blueprint import Blueprint, BaseBlueprint, request, Security, Auth
from app.controllers.department_controller import DepartmentController
url_prefix = '{}/departments'.format(BaseBlueprint.base_url_prefix)
department_blueprint = Blueprint('department', __name__,... | Load swag_from from flasgger.
Load Blueprint, BaseBlueprint, request, Security, Auth from app.blueprints.base_blueprint.
Load DepartmentController from app.controllers.department_controller.
Set url_prefix to "{}/departments" dot format with BaseBlueprint dot base_url_prefix.
Set department_blueprint to Blueprint with ... | python | en | run_002_20260417_060406 | 86 | {
"max_stars_repo_path": "app/blueprints/department_blueprint.py",
"max_stars_repo_name": "Maxcutex/personal_ecommerce",
"max_stars_count": 0,
"id": "152",
"raw_source_hash": "92e51f86f3365b9bd7294ed3e0966cc16a78481643c165c329e75636dbfb93dd",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple... | {
"raw_source_hash": "92e51f86f3365b9bd7294ed3e0966cc16a78481643c165c329e75636dbfb93dd",
"normalized_source_hash": "fe37190a055b1ea8671cdc3e94f47a0626c5b189b6a069f76025c28c14ec030d",
"source_ast_hash": "7e14a66fa35d217ff1a4c2e9634db89d6460ac4a9c167d2b0d1eb6d404a111d4",
"artifact_hash": "92844e8b973d25a031c18abd... | true | true | null |
python_to_es_plaincode | from flasgger import swag_from
from app.blueprints.base_blueprint import Blueprint, BaseBlueprint, request, Security, Auth
from app.controllers.department_controller import DepartmentController
url_prefix = '{}/departments'.format(BaseBlueprint.base_url_prefix)
department_blueprint = Blueprint('department', __name__,... | Importar swag_from desde flasgger.
Importar Blueprint, BaseBlueprint, request, Security, Auth desde app.blueprints.base_blueprint.
Importar DepartmentController desde app.controllers.department_controller.
Establecer url_prefix como "{}/departments" punto format con BaseBlueprint punto base_url_prefix.
Establecer depar... | python | es | run_002_20260417_060406 | 86 | {
"max_stars_repo_path": "app/blueprints/department_blueprint.py",
"max_stars_repo_name": "Maxcutex/personal_ecommerce",
"max_stars_count": 0,
"id": "152",
"raw_source_hash": "92e51f86f3365b9bd7294ed3e0966cc16a78481643c165c329e75636dbfb93dd",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple... | {
"raw_source_hash": "92e51f86f3365b9bd7294ed3e0966cc16a78481643c165c329e75636dbfb93dd",
"normalized_source_hash": "fe37190a055b1ea8671cdc3e94f47a0626c5b189b6a069f76025c28c14ec030d",
"source_ast_hash": "7e14a66fa35d217ff1a4c2e9634db89d6460ac4a9c167d2b0d1eb6d404a111d4",
"artifact_hash": "92844e8b973d25a031c18abd... | true | true | null |
python_to_fr_plaincode | from flasgger import swag_from
from app.blueprints.base_blueprint import Blueprint, BaseBlueprint, request, Security, Auth
from app.controllers.department_controller import DepartmentController
url_prefix = '{}/departments'.format(BaseBlueprint.base_url_prefix)
department_blueprint = Blueprint('department', __name__,... | Charger swag_from depuis flasgger.
Charger Blueprint, BaseBlueprint, request, Security, Auth depuis app.blueprints.base_blueprint.
Charger DepartmentController depuis app.controllers.department_controller.
Affecter url_prefix à "{}/departments" point de format avec BaseBlueprint point de base_url_prefix.
Affecter depar... | python | fr | run_002_20260417_060406 | 86 | {
"max_stars_repo_path": "app/blueprints/department_blueprint.py",
"max_stars_repo_name": "Maxcutex/personal_ecommerce",
"max_stars_count": 0,
"id": "152",
"raw_source_hash": "92e51f86f3365b9bd7294ed3e0966cc16a78481643c165c329e75636dbfb93dd",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple... | {
"raw_source_hash": "92e51f86f3365b9bd7294ed3e0966cc16a78481643c165c329e75636dbfb93dd",
"normalized_source_hash": "fe37190a055b1ea8671cdc3e94f47a0626c5b189b6a069f76025c28c14ec030d",
"source_ast_hash": "7e14a66fa35d217ff1a4c2e9634db89d6460ac4a9c167d2b0d1eb6d404a111d4",
"artifact_hash": "92844e8b973d25a031c18abd... | true | true | null |
en_plaincode_to_python | Load swag_from from flasgger.
Load Blueprint, BaseBlueprint, request, Security, Auth from app.blueprints.base_blueprint.
Load DepartmentController from app.controllers.department_controller.
Set url_prefix to "{}/departments" dot format with BaseBlueprint dot base_url_prefix.
Set department_blueprint to Blueprint with ... | from flasgger import swag_from
from app.blueprints.base_blueprint import Blueprint, BaseBlueprint, request, Security, Auth
from app.controllers.department_controller import DepartmentController
url_prefix = '{}/departments'.format(BaseBlueprint.base_url_prefix)
department_blueprint = Blueprint('department', __name__,... | en | python | run_002_20260417_060406 | 86 | {
"max_stars_repo_path": "app/blueprints/department_blueprint.py",
"max_stars_repo_name": "Maxcutex/personal_ecommerce",
"max_stars_count": 0,
"id": "152",
"raw_source_hash": "92e51f86f3365b9bd7294ed3e0966cc16a78481643c165c329e75636dbfb93dd",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple... | {
"raw_source_hash": "92e51f86f3365b9bd7294ed3e0966cc16a78481643c165c329e75636dbfb93dd",
"normalized_source_hash": "fe37190a055b1ea8671cdc3e94f47a0626c5b189b6a069f76025c28c14ec030d",
"source_ast_hash": "7e14a66fa35d217ff1a4c2e9634db89d6460ac4a9c167d2b0d1eb6d404a111d4",
"artifact_hash": "92844e8b973d25a031c18abd... | true | true | null |
python_to_en_plaincode | import pandas as pd
from catalyst.constants import LOG_LEVEL
from catalyst.exchange.utils.stats_utils import prepare_stats
from catalyst.gens.sim_engine import (
BAR,
SESSION_START
)
from logbook import Logger
log = Logger('LiveGraphClock', level=LOG_LEVEL)
class LiveGraphClock(object):
"""Realtime clock... | Load pandas, referred to as pd.
Load LOG_LEVEL from catalyst.constants.
Load prepare_stats from catalyst.exchange.utils.stats_utils.
Load BAR, SESSION_START from catalyst.gens.sim_engine.
Load Logger from logbook.
Set log to Logger with "LiveGraphClock" and level set to LOG_LEVEL.
Define class LiveGraphClock inheriting... | python | en | run_002_20260417_060406 | 87 | {
"max_stars_repo_path": "catalyst/exchange/live_graph_clock.py",
"max_stars_repo_name": "erlendve/catalyst",
"max_stars_count": 0,
"id": "154",
"raw_source_hash": "b8fe5010850cff3fe696467a7e5efe710bb056deaf1d5305985b6e08b6052021",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 10... | {
"raw_source_hash": "b8fe5010850cff3fe696467a7e5efe710bb056deaf1d5305985b6e08b6052021",
"normalized_source_hash": "b462a062065d4a28889ade776e8ad59418213044622c5e57b170b1f18ac6c07f",
"source_ast_hash": "b5b8435e35a63d603d2fee0d00f324467ce237462b010a9a4204af778a26bcaa",
"artifact_hash": "9235484471d81fd8a0016a36... | true | true | null |
python_to_es_plaincode | import pandas as pd
from catalyst.constants import LOG_LEVEL
from catalyst.exchange.utils.stats_utils import prepare_stats
from catalyst.gens.sim_engine import (
BAR,
SESSION_START
)
from logbook import Logger
log = Logger('LiveGraphClock', level=LOG_LEVEL)
class LiveGraphClock(object):
"""Realtime clock... | Importar pandas, referido como pd.
Importar LOG_LEVEL desde catalyst.constants.
Importar prepare_stats desde catalyst.exchange.utils.stats_utils.
Importar BAR, SESSION_START desde catalyst.gens.sim_engine.
Importar Logger desde logbook.
Establecer log como Logger con "LiveGraphClock" y también nivel establecido a LOG_L... | python | es | run_002_20260417_060406 | 87 | {
"max_stars_repo_path": "catalyst/exchange/live_graph_clock.py",
"max_stars_repo_name": "erlendve/catalyst",
"max_stars_count": 0,
"id": "154",
"raw_source_hash": "b8fe5010850cff3fe696467a7e5efe710bb056deaf1d5305985b6e08b6052021",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 10... | {
"raw_source_hash": "b8fe5010850cff3fe696467a7e5efe710bb056deaf1d5305985b6e08b6052021",
"normalized_source_hash": "b462a062065d4a28889ade776e8ad59418213044622c5e57b170b1f18ac6c07f",
"source_ast_hash": "b5b8435e35a63d603d2fee0d00f324467ce237462b010a9a4204af778a26bcaa",
"artifact_hash": "9235484471d81fd8a0016a36... | true | true | null |
python_to_fr_plaincode | import pandas as pd
from catalyst.constants import LOG_LEVEL
from catalyst.exchange.utils.stats_utils import prepare_stats
from catalyst.gens.sim_engine import (
BAR,
SESSION_START
)
from logbook import Logger
log = Logger('LiveGraphClock', level=LOG_LEVEL)
class LiveGraphClock(object):
"""Realtime clock... | Charger pandas, référé comme pd.
Charger LOG_LEVEL depuis catalyst.constants.
Charger prepare_stats depuis catalyst.exchange.utils.stats_utils.
Charger BAR, SESSION_START depuis catalyst.gens.sim_engine.
Charger Logger depuis logbook.
Affecter log à Logger avec "LiveGraphClock" et niveau défini à LOG_LEVEL.
Définir cla... | python | fr | run_002_20260417_060406 | 87 | {
"max_stars_repo_path": "catalyst/exchange/live_graph_clock.py",
"max_stars_repo_name": "erlendve/catalyst",
"max_stars_count": 0,
"id": "154",
"raw_source_hash": "b8fe5010850cff3fe696467a7e5efe710bb056deaf1d5305985b6e08b6052021",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 10... | {
"raw_source_hash": "b8fe5010850cff3fe696467a7e5efe710bb056deaf1d5305985b6e08b6052021",
"normalized_source_hash": "b462a062065d4a28889ade776e8ad59418213044622c5e57b170b1f18ac6c07f",
"source_ast_hash": "b5b8435e35a63d603d2fee0d00f324467ce237462b010a9a4204af778a26bcaa",
"artifact_hash": "9235484471d81fd8a0016a36... | true | true | null |
en_plaincode_to_python | Load pandas, referred to as pd.
Load LOG_LEVEL from catalyst.constants.
Load prepare_stats from catalyst.exchange.utils.stats_utils.
Load BAR, SESSION_START from catalyst.gens.sim_engine.
Load Logger from logbook.
Set log to Logger with "LiveGraphClock" and level set to LOG_LEVEL.
Define class LiveGraphClock inheriting... | import pandas as pd
from catalyst.constants import LOG_LEVEL
from catalyst.exchange.utils.stats_utils import prepare_stats
from catalyst.gens.sim_engine import (
BAR,
SESSION_START
)
from logbook import Logger
log = Logger('LiveGraphClock', level=LOG_LEVEL)
class LiveGraphClock(object):
"""Realtime clock... | en | python | run_002_20260417_060406 | 87 | {
"max_stars_repo_path": "catalyst/exchange/live_graph_clock.py",
"max_stars_repo_name": "erlendve/catalyst",
"max_stars_count": 0,
"id": "154",
"raw_source_hash": "b8fe5010850cff3fe696467a7e5efe710bb056deaf1d5305985b6e08b6052021",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 10... | {
"raw_source_hash": "b8fe5010850cff3fe696467a7e5efe710bb056deaf1d5305985b6e08b6052021",
"normalized_source_hash": "b462a062065d4a28889ade776e8ad59418213044622c5e57b170b1f18ac6c07f",
"source_ast_hash": "b5b8435e35a63d603d2fee0d00f324467ce237462b010a9a4204af778a26bcaa",
"artifact_hash": "9235484471d81fd8a0016a36... | true | true | null |
python_to_en_plaincode | from __future__ import unicode_literals
import inspect
from task.models import InveraTask
from api.utils import send_test_csv_report
from django.contrib.auth.models import User
from rest_framework.test import APIClient, APITestCase
from rest_framework.reverse import reverse
from rest_framework import status
TEST_RE... | Load unicode_literals from __future__.
Load inspect.
Load InveraTask from task.models.
Load send_test_csv_report from api.utils.
Load User from django.contrib.auth.models.
Load APIClient, APITestCase from rest_framework.test.
Load reverse from rest_framework.reverse.
Load status from rest_framework.
Set TEST_RESULTS to... | python | en | run_002_20260417_060406 | 88 | {
"max_stars_repo_path": "invera/api/tests.py",
"max_stars_repo_name": "LeoLeiva/todo-challenge",
"max_stars_count": 0,
"id": "155",
"raw_source_hash": "d69a2e3f5b94c117c0eeb44a8555b5cc579e070ee8a9bd6f453dfc8b5a7fab94",
"sanitize_meta": {
"triple_block_count": 3,
"total_triple_chars": 420,
"larg... | {
"raw_source_hash": "d69a2e3f5b94c117c0eeb44a8555b5cc579e070ee8a9bd6f453dfc8b5a7fab94",
"normalized_source_hash": "6985ae9b15f1bf737fc14cee429ce0abb7e03cc5ed4523ddcd4d80b044be3424",
"source_ast_hash": "6f57f8b49e429a8afa3103e7cc52f49e6cfe8a92f247fbd517c100d594ecf56e",
"artifact_hash": "d72c5adeeb3f97665312e96f... | true | true | null |
python_to_es_plaincode | from __future__ import unicode_literals
import inspect
from task.models import InveraTask
from api.utils import send_test_csv_report
from django.contrib.auth.models import User
from rest_framework.test import APIClient, APITestCase
from rest_framework.reverse import reverse
from rest_framework import status
TEST_RE... | Importar unicode_literals desde __future__.
Importar inspect.
Importar InveraTask desde task.models.
Importar send_test_csv_report desde api.utils.
Importar User desde django.contrib.auth.models.
Importar APIClient, APITestCase desde rest_framework.test.
Importar reverse desde rest_framework.reverse.
Importar status de... | python | es | run_002_20260417_060406 | 88 | {
"max_stars_repo_path": "invera/api/tests.py",
"max_stars_repo_name": "LeoLeiva/todo-challenge",
"max_stars_count": 0,
"id": "155",
"raw_source_hash": "d69a2e3f5b94c117c0eeb44a8555b5cc579e070ee8a9bd6f453dfc8b5a7fab94",
"sanitize_meta": {
"triple_block_count": 3,
"total_triple_chars": 420,
"larg... | {
"raw_source_hash": "d69a2e3f5b94c117c0eeb44a8555b5cc579e070ee8a9bd6f453dfc8b5a7fab94",
"normalized_source_hash": "6985ae9b15f1bf737fc14cee429ce0abb7e03cc5ed4523ddcd4d80b044be3424",
"source_ast_hash": "6f57f8b49e429a8afa3103e7cc52f49e6cfe8a92f247fbd517c100d594ecf56e",
"artifact_hash": "d72c5adeeb3f97665312e96f... | true | true | null |
python_to_fr_plaincode | from __future__ import unicode_literals
import inspect
from task.models import InveraTask
from api.utils import send_test_csv_report
from django.contrib.auth.models import User
from rest_framework.test import APIClient, APITestCase
from rest_framework.reverse import reverse
from rest_framework import status
TEST_RE... | Charger unicode_literals depuis __future__.
Charger inspect.
Charger InveraTask depuis task.models.
Charger send_test_csv_report depuis api.utils.
Charger User depuis django.contrib.auth.models.
Charger APIClient, APITestCase depuis rest_framework.test.
Charger reverse depuis rest_framework.reverse.
Charger status depu... | python | fr | run_002_20260417_060406 | 88 | {
"max_stars_repo_path": "invera/api/tests.py",
"max_stars_repo_name": "LeoLeiva/todo-challenge",
"max_stars_count": 0,
"id": "155",
"raw_source_hash": "d69a2e3f5b94c117c0eeb44a8555b5cc579e070ee8a9bd6f453dfc8b5a7fab94",
"sanitize_meta": {
"triple_block_count": 3,
"total_triple_chars": 420,
"larg... | {
"raw_source_hash": "d69a2e3f5b94c117c0eeb44a8555b5cc579e070ee8a9bd6f453dfc8b5a7fab94",
"normalized_source_hash": "6985ae9b15f1bf737fc14cee429ce0abb7e03cc5ed4523ddcd4d80b044be3424",
"source_ast_hash": "6f57f8b49e429a8afa3103e7cc52f49e6cfe8a92f247fbd517c100d594ecf56e",
"artifact_hash": "d72c5adeeb3f97665312e96f... | true | true | null |
en_plaincode_to_python | Load unicode_literals from __future__.
Load inspect.
Load InveraTask from task.models.
Load send_test_csv_report from api.utils.
Load User from django.contrib.auth.models.
Load APIClient, APITestCase from rest_framework.test.
Load reverse from rest_framework.reverse.
Load status from rest_framework.
Set TEST_RESULTS to... | from __future__ import unicode_literals
import inspect
from task.models import InveraTask
from api.utils import send_test_csv_report
from django.contrib.auth.models import User
from rest_framework.test import APIClient, APITestCase
from rest_framework.reverse import reverse
from rest_framework import status
TEST_RE... | en | python | run_002_20260417_060406 | 88 | {
"max_stars_repo_path": "invera/api/tests.py",
"max_stars_repo_name": "LeoLeiva/todo-challenge",
"max_stars_count": 0,
"id": "155",
"raw_source_hash": "d69a2e3f5b94c117c0eeb44a8555b5cc579e070ee8a9bd6f453dfc8b5a7fab94",
"sanitize_meta": {
"triple_block_count": 3,
"total_triple_chars": 420,
"larg... | {
"raw_source_hash": "d69a2e3f5b94c117c0eeb44a8555b5cc579e070ee8a9bd6f453dfc8b5a7fab94",
"normalized_source_hash": "6985ae9b15f1bf737fc14cee429ce0abb7e03cc5ed4523ddcd4d80b044be3424",
"source_ast_hash": "6f57f8b49e429a8afa3103e7cc52f49e6cfe8a92f247fbd517c100d594ecf56e",
"artifact_hash": "d72c5adeeb3f97665312e96f... | true | true | null |
python_to_en_plaincode | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/seidel-2d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/seidel-2d/tmp_files/6745.c')
procedure('kernel_seidel_2d')
loop(0)
known(' n > 2 ')
tile(0,2,16,2)... | Load everything from chill.
Call source with "/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/seidel-2d/kernel.c".
Call destination with "/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/seidel-2d/tmp_files/6745.c".
Call procedure with "kernel_seidel_2d".
Cal... | python | en | run_002_20260417_060406 | 89 | {
"max_stars_repo_path": "experiments/seidel-2d/tmp_files/6745.py",
"max_stars_repo_name": "LoopTilingBenchmark/benchmark",
"max_stars_count": 0,
"id": "156",
"raw_source_hash": "461fd1def71824b445f017bf302ca5cd0fb4b25254607f7e034a9a0b0892839d",
"sanitize_meta": {
"triple_block_count": 0,
"total_tri... | {
"raw_source_hash": "461fd1def71824b445f017bf302ca5cd0fb4b25254607f7e034a9a0b0892839d",
"normalized_source_hash": "f989771ea7ebb21e99309353c11b40635330a498228191715c7d45a9664675f4",
"source_ast_hash": "d4fa745ded5127602e9ba9bdb75bc4534aae43a3a3f1e883096ed4cc20018f18",
"artifact_hash": "5948d0dc72d7ed1ddec9e60e... | true | true | null |
python_to_es_plaincode | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/seidel-2d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/seidel-2d/tmp_files/6745.c')
procedure('kernel_seidel_2d')
loop(0)
known(' n > 2 ')
tile(0,2,16,2)... | Importar todo desde chill.
Llamar source con "/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/seidel-2d/kernel.c".
Llamar destination con "/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/seidel-2d/tmp_files/6745.c".
Llamar procedure con "kernel_seidel_2d".
L... | python | es | run_002_20260417_060406 | 89 | {
"max_stars_repo_path": "experiments/seidel-2d/tmp_files/6745.py",
"max_stars_repo_name": "LoopTilingBenchmark/benchmark",
"max_stars_count": 0,
"id": "156",
"raw_source_hash": "461fd1def71824b445f017bf302ca5cd0fb4b25254607f7e034a9a0b0892839d",
"sanitize_meta": {
"triple_block_count": 0,
"total_tri... | {
"raw_source_hash": "461fd1def71824b445f017bf302ca5cd0fb4b25254607f7e034a9a0b0892839d",
"normalized_source_hash": "f989771ea7ebb21e99309353c11b40635330a498228191715c7d45a9664675f4",
"source_ast_hash": "d4fa745ded5127602e9ba9bdb75bc4534aae43a3a3f1e883096ed4cc20018f18",
"artifact_hash": "5948d0dc72d7ed1ddec9e60e... | true | true | null |
python_to_fr_plaincode | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/seidel-2d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/seidel-2d/tmp_files/6745.c')
procedure('kernel_seidel_2d')
loop(0)
known(' n > 2 ')
tile(0,2,16,2)... | Charger tout depuis chill.
Appeler source avec "/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/seidel-2d/kernel.c".
Appeler destination avec "/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/seidel-2d/tmp_files/6745.c".
Appeler procedure avec "kernel_seidel_... | python | fr | run_002_20260417_060406 | 89 | {
"max_stars_repo_path": "experiments/seidel-2d/tmp_files/6745.py",
"max_stars_repo_name": "LoopTilingBenchmark/benchmark",
"max_stars_count": 0,
"id": "156",
"raw_source_hash": "461fd1def71824b445f017bf302ca5cd0fb4b25254607f7e034a9a0b0892839d",
"sanitize_meta": {
"triple_block_count": 0,
"total_tri... | {
"raw_source_hash": "461fd1def71824b445f017bf302ca5cd0fb4b25254607f7e034a9a0b0892839d",
"normalized_source_hash": "f989771ea7ebb21e99309353c11b40635330a498228191715c7d45a9664675f4",
"source_ast_hash": "d4fa745ded5127602e9ba9bdb75bc4534aae43a3a3f1e883096ed4cc20018f18",
"artifact_hash": "5948d0dc72d7ed1ddec9e60e... | true | true | null |
en_plaincode_to_python | Load everything from chill.
Call source with "/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/seidel-2d/kernel.c".
Call destination with "/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/seidel-2d/tmp_files/6745.c".
Call procedure with "kernel_seidel_2d".
Cal... | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/seidel-2d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/seidel-2d/tmp_files/6745.c')
procedure('kernel_seidel_2d')
loop(0)
known(' n > 2 ')
tile(0,2,16,2)... | en | python | run_002_20260417_060406 | 89 | {
"max_stars_repo_path": "experiments/seidel-2d/tmp_files/6745.py",
"max_stars_repo_name": "LoopTilingBenchmark/benchmark",
"max_stars_count": 0,
"id": "156",
"raw_source_hash": "461fd1def71824b445f017bf302ca5cd0fb4b25254607f7e034a9a0b0892839d",
"sanitize_meta": {
"triple_block_count": 0,
"total_tri... | {
"raw_source_hash": "461fd1def71824b445f017bf302ca5cd0fb4b25254607f7e034a9a0b0892839d",
"normalized_source_hash": "f989771ea7ebb21e99309353c11b40635330a498228191715c7d45a9664675f4",
"source_ast_hash": "d4fa745ded5127602e9ba9bdb75bc4534aae43a3a3f1e883096ed4cc20018f18",
"artifact_hash": "5948d0dc72d7ed1ddec9e60e... | true | true | null |
python_to_en_plaincode | import json
import aiohttp
async def request(url, payload=None, params=None, headers=None):
headers = {'content-type': 'application/json', **(headers or {})}
data = payload and json.dumps(payload)
async with aiohttp.ClientSession() as client:
async with client.post(
url, data=data... | Load json.
Load aiohttp.
Define async function request with parameters url, payload (default: None), params (default: None), headers (default: None):
Set headers to the dictionary {"content-type": "application/json", named values from headers or an empty dictionary}.
Set data to payload and (json dot dumps with... | python | en | run_002_20260417_060406 | 90 | {
"max_stars_repo_path": "baymax/api.py",
"max_stars_repo_name": "dmrz/baymax",
"max_stars_count": 34,
"id": "157",
"raw_source_hash": "0d6c6de8ff5f55de81a2129b4d3699519ba585bc95d10468b97bfa8d245a75c1",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"largest_triple_block": ... | {
"raw_source_hash": "0d6c6de8ff5f55de81a2129b4d3699519ba585bc95d10468b97bfa8d245a75c1",
"normalized_source_hash": "498b35e34407f91928de12ae772cb5651b661f2c3e74b94b10ffe14ec49ef268",
"source_ast_hash": "ac51a6e568e7fa30ea1e8f1c89b194d95206853df169e6ab295e92ed42afb155",
"artifact_hash": "72f54f5020f7210416abe683... | true | true | null |
python_to_es_plaincode | import json
import aiohttp
async def request(url, payload=None, params=None, headers=None):
headers = {'content-type': 'application/json', **(headers or {})}
data = payload and json.dumps(payload)
async with aiohttp.ClientSession() as client:
async with client.post(
url, data=data... | Importar json.
Importar aiohttp.
Definir función asíncrona request con parámetros url, payload (predeterminado: None), params (predeterminado: None), headers (predeterminado: None):
Establecer headers como el diccionario {"content-type": "application/json", valores nombrados desde headers o un diccionario vacío}.
... | python | es | run_002_20260417_060406 | 90 | {
"max_stars_repo_path": "baymax/api.py",
"max_stars_repo_name": "dmrz/baymax",
"max_stars_count": 34,
"id": "157",
"raw_source_hash": "0d6c6de8ff5f55de81a2129b4d3699519ba585bc95d10468b97bfa8d245a75c1",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"largest_triple_block": ... | {
"raw_source_hash": "0d6c6de8ff5f55de81a2129b4d3699519ba585bc95d10468b97bfa8d245a75c1",
"normalized_source_hash": "498b35e34407f91928de12ae772cb5651b661f2c3e74b94b10ffe14ec49ef268",
"source_ast_hash": "ac51a6e568e7fa30ea1e8f1c89b194d95206853df169e6ab295e92ed42afb155",
"artifact_hash": "72f54f5020f7210416abe683... | true | true | null |
python_to_fr_plaincode | import json
import aiohttp
async def request(url, payload=None, params=None, headers=None):
headers = {'content-type': 'application/json', **(headers or {})}
data = payload and json.dumps(payload)
async with aiohttp.ClientSession() as client:
async with client.post(
url, data=data... | Charger json.
Charger aiohttp.
Définir fonction asynchrone request avec paramètres url, payload (par défaut: None), params (par défaut: None), headers (par défaut: None):
Affecter headers à le dictionnaire {"content-type": "application/json", valeurs nommées depuis headers ou un dictionnaire vide}.
Affecter dat... | python | fr | run_002_20260417_060406 | 90 | {
"max_stars_repo_path": "baymax/api.py",
"max_stars_repo_name": "dmrz/baymax",
"max_stars_count": 34,
"id": "157",
"raw_source_hash": "0d6c6de8ff5f55de81a2129b4d3699519ba585bc95d10468b97bfa8d245a75c1",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"largest_triple_block": ... | {
"raw_source_hash": "0d6c6de8ff5f55de81a2129b4d3699519ba585bc95d10468b97bfa8d245a75c1",
"normalized_source_hash": "498b35e34407f91928de12ae772cb5651b661f2c3e74b94b10ffe14ec49ef268",
"source_ast_hash": "ac51a6e568e7fa30ea1e8f1c89b194d95206853df169e6ab295e92ed42afb155",
"artifact_hash": "72f54f5020f7210416abe683... | true | true | null |
en_plaincode_to_python | Load json.
Load aiohttp.
Define async function request with parameters url, payload (default: None), params (default: None), headers (default: None):
Set headers to the dictionary {"content-type": "application/json", named values from headers or an empty dictionary}.
Set data to payload and (json dot dumps with... | import json
import aiohttp
async def request(url, payload=None, params=None, headers=None):
headers = {'content-type': 'application/json', **(headers or {})}
data = payload and json.dumps(payload)
async with aiohttp.ClientSession() as client:
async with client.post(
url, data=data... | en | python | run_002_20260417_060406 | 90 | {
"max_stars_repo_path": "baymax/api.py",
"max_stars_repo_name": "dmrz/baymax",
"max_stars_count": 34,
"id": "157",
"raw_source_hash": "0d6c6de8ff5f55de81a2129b4d3699519ba585bc95d10468b97bfa8d245a75c1",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"largest_triple_block": ... | {
"raw_source_hash": "0d6c6de8ff5f55de81a2129b4d3699519ba585bc95d10468b97bfa8d245a75c1",
"normalized_source_hash": "498b35e34407f91928de12ae772cb5651b661f2c3e74b94b10ffe14ec49ef268",
"source_ast_hash": "ac51a6e568e7fa30ea1e8f1c89b194d95206853df169e6ab295e92ed42afb155",
"artifact_hash": "72f54f5020f7210416abe683... | true | true | null |
python_to_en_plaincode | # Created by ay27 at 17/4/9
import os
import matplotlib.pyplot as plt
import struct
import numpy as np
def trans(row):
return list(map(lambda x: np.uint8(x), row))
def read_image(filename):
with open(filename, mode='rb') as file:
n = file.read(8)
n = struct.unpack("<Q", n)[0]
c = fi... | # Created by ay27 at 17/4/9
Load os.
Load matplotlib.pyplot, referred to as plt.
Load struct.
Load numpy, referred to as np.
Define function trans with parameter row:
Return list with (map with (the lambda with parameter x returning np dot uint8 with x) and row).
Define function read_image with parameter filename:
... | python | en | run_002_20260417_060406 | 91 | {
"max_stars_repo_path": "superneurons/tools/img_val/main.py",
"max_stars_repo_name": "Phaeton-lang/baselines",
"max_stars_count": 0,
"id": "159",
"raw_source_hash": "cf4c1875342a7eeba22327b177d10f048d9fa2a1d330569e403f5ab3e51c7204",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": ... | {
"raw_source_hash": "cf4c1875342a7eeba22327b177d10f048d9fa2a1d330569e403f5ab3e51c7204",
"normalized_source_hash": "ef0ac5caa728dd3d066b28cc1690614b7d634894771af11821a7943560897bdb",
"source_ast_hash": "5c486c1ab1adca936b5a658a1625da75e934239b39f3a36b32882d2e0c010439",
"artifact_hash": "915f9d80cf172b3d2b0fa712... | true | true | null |
python_to_es_plaincode | # Created by ay27 at 17/4/9
import os
import matplotlib.pyplot as plt
import struct
import numpy as np
def trans(row):
return list(map(lambda x: np.uint8(x), row))
def read_image(filename):
with open(filename, mode='rb') as file:
n = file.read(8)
n = struct.unpack("<Q", n)[0]
c = fi... | # Created por ay27 at 17/4/9
Importar os.
Importar matplotlib.pyplot, referido como plt.
Importar struct.
Importar numpy, referido como np.
Definir función trans con parámetro row:
Devolver list con (map con (la lambda con parámetro x devolviendo np punto uint8 con x) y también row).
Definir función read_image con ... | python | es | run_002_20260417_060406 | 91 | {
"max_stars_repo_path": "superneurons/tools/img_val/main.py",
"max_stars_repo_name": "Phaeton-lang/baselines",
"max_stars_count": 0,
"id": "159",
"raw_source_hash": "cf4c1875342a7eeba22327b177d10f048d9fa2a1d330569e403f5ab3e51c7204",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": ... | {
"raw_source_hash": "cf4c1875342a7eeba22327b177d10f048d9fa2a1d330569e403f5ab3e51c7204",
"normalized_source_hash": "ef0ac5caa728dd3d066b28cc1690614b7d634894771af11821a7943560897bdb",
"source_ast_hash": "5c486c1ab1adca936b5a658a1625da75e934239b39f3a36b32882d2e0c010439",
"artifact_hash": "915f9d80cf172b3d2b0fa712... | true | true | null |
python_to_fr_plaincode | # Created by ay27 at 17/4/9
import os
import matplotlib.pyplot as plt
import struct
import numpy as np
def trans(row):
return list(map(lambda x: np.uint8(x), row))
def read_image(filename):
with open(filename, mode='rb') as file:
n = file.read(8)
n = struct.unpack("<Q", n)[0]
c = fi... | # Created par ay27 at 17/4/9
Charger os.
Charger matplotlib.pyplot, référé comme plt.
Charger struct.
Charger numpy, référé comme np.
Définir fonction trans avec paramètre row:
Retourner list avec (map avec (le lambda avec paramètre x retournant np point de uint8 avec x) et row).
Définir fonction read_image avec pa... | python | fr | run_002_20260417_060406 | 91 | {
"max_stars_repo_path": "superneurons/tools/img_val/main.py",
"max_stars_repo_name": "Phaeton-lang/baselines",
"max_stars_count": 0,
"id": "159",
"raw_source_hash": "cf4c1875342a7eeba22327b177d10f048d9fa2a1d330569e403f5ab3e51c7204",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": ... | {
"raw_source_hash": "cf4c1875342a7eeba22327b177d10f048d9fa2a1d330569e403f5ab3e51c7204",
"normalized_source_hash": "ef0ac5caa728dd3d066b28cc1690614b7d634894771af11821a7943560897bdb",
"source_ast_hash": "5c486c1ab1adca936b5a658a1625da75e934239b39f3a36b32882d2e0c010439",
"artifact_hash": "915f9d80cf172b3d2b0fa712... | true | true | null |
en_plaincode_to_python | # Created by ay27 at 17/4/9
Load os.
Load matplotlib.pyplot, referred to as plt.
Load struct.
Load numpy, referred to as np.
Define function trans with parameter row:
Return list with (map with (the lambda with parameter x returning np dot uint8 with x) and row).
Define function read_image with parameter filename:
... | # Created by ay27 at 17/4/9
import os
import matplotlib.pyplot as plt
import struct
import numpy as np
def trans(row):
return list(map(lambda x: np.uint8(x), row))
def read_image(filename):
with open(filename, mode='rb') as file:
n = file.read(8)
n = struct.unpack("<Q", n)[0]
c = fi... | en | python | run_002_20260417_060406 | 91 | {
"max_stars_repo_path": "superneurons/tools/img_val/main.py",
"max_stars_repo_name": "Phaeton-lang/baselines",
"max_stars_count": 0,
"id": "159",
"raw_source_hash": "cf4c1875342a7eeba22327b177d10f048d9fa2a1d330569e403f5ab3e51c7204",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": ... | {
"raw_source_hash": "cf4c1875342a7eeba22327b177d10f048d9fa2a1d330569e403f5ab3e51c7204",
"normalized_source_hash": "ef0ac5caa728dd3d066b28cc1690614b7d634894771af11821a7943560897bdb",
"source_ast_hash": "5c486c1ab1adca936b5a658a1625da75e934239b39f3a36b32882d2e0c010439",
"artifact_hash": "915f9d80cf172b3d2b0fa712... | true | true | null |
python_to_en_plaincode | # Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Test for the piezo tensor class
"""
__author__ = "<NAME>"
__version__ = "0.1"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
__status__ = "Development"
__date__ = "4/1/16"
import os
import unittest
import numpy as np
... | # Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
Text block:
""
"Test for the piezo tensor class"
ending with a newline.
Set __author__ to "<NAME>".
Set __version__ to "0.1".
Set __maintainer__ to "<NAME>".
Set __email__ to "<EMAIL>".
Set __status__ to "Development".
Set __da... | python | en | run_002_20260417_060406 | 92 | {
"max_stars_repo_path": "pymatgen/analysis/tests/test_piezo.py",
"max_stars_repo_name": "exenGT/pymatgen",
"max_stars_count": 1,
"id": "160",
"raw_source_hash": "1195f28607f016bd6a801c0ab47d04a1931d94eddd2e0324722e99e303bfaf79",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 39,
... | {
"raw_source_hash": "1195f28607f016bd6a801c0ab47d04a1931d94eddd2e0324722e99e303bfaf79",
"normalized_source_hash": "cfef961e44dfee937a3ad0e413cfc6256e21890e319ceb04293577e6065ea1aa",
"source_ast_hash": "1a403ab2dfac0ac91dad79e84403a0293e031906f82ece25bf1fe916b426152c",
"artifact_hash": "c26086ff20bc506696a3355f... | true | true | null |
python_to_es_plaincode | # Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Test for the piezo tensor class
"""
__author__ = "<NAME>"
__version__ = "0.1"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
__status__ = "Development"
__date__ = "4/1/16"
import os
import unittest
import numpy as np
... | # Copyright (c) Pymatgen Development Team.
# Distributed under the terms de the MIT License.
Texto literal:
""
"Test for the piezo tensor class"
terminando con una nueva línea.
Establecer __author__ como "<NAME>".
Establecer __version__ como "0.1".
Establecer __maintainer__ como "<NAME>".
Establecer __email__ como "<EM... | python | es | run_002_20260417_060406 | 92 | {
"max_stars_repo_path": "pymatgen/analysis/tests/test_piezo.py",
"max_stars_repo_name": "exenGT/pymatgen",
"max_stars_count": 1,
"id": "160",
"raw_source_hash": "1195f28607f016bd6a801c0ab47d04a1931d94eddd2e0324722e99e303bfaf79",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 39,
... | {
"raw_source_hash": "1195f28607f016bd6a801c0ab47d04a1931d94eddd2e0324722e99e303bfaf79",
"normalized_source_hash": "cfef961e44dfee937a3ad0e413cfc6256e21890e319ceb04293577e6065ea1aa",
"source_ast_hash": "1a403ab2dfac0ac91dad79e84403a0293e031906f82ece25bf1fe916b426152c",
"artifact_hash": "c26086ff20bc506696a3355f... | true | true | null |
python_to_fr_plaincode | # Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Test for the piezo tensor class
"""
__author__ = "<NAME>"
__version__ = "0.1"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
__status__ = "Development"
__date__ = "4/1/16"
import os
import unittest
import numpy as np
... | # Copyright (c) Pymatgen Development Team.
# Distributed under the terms de the MIT License.
Texte littéral:
""
"Test for the piezo tensor class"
se terminant par une nouvelle ligne.
Affecter __author__ à "<NAME>".
Affecter __version__ à "0.1".
Affecter __maintainer__ à "<NAME>".
Affecter __email__ à "<EMAIL>".
Affecte... | python | fr | run_002_20260417_060406 | 92 | {
"max_stars_repo_path": "pymatgen/analysis/tests/test_piezo.py",
"max_stars_repo_name": "exenGT/pymatgen",
"max_stars_count": 1,
"id": "160",
"raw_source_hash": "1195f28607f016bd6a801c0ab47d04a1931d94eddd2e0324722e99e303bfaf79",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 39,
... | {
"raw_source_hash": "1195f28607f016bd6a801c0ab47d04a1931d94eddd2e0324722e99e303bfaf79",
"normalized_source_hash": "cfef961e44dfee937a3ad0e413cfc6256e21890e319ceb04293577e6065ea1aa",
"source_ast_hash": "1a403ab2dfac0ac91dad79e84403a0293e031906f82ece25bf1fe916b426152c",
"artifact_hash": "c26086ff20bc506696a3355f... | true | true | null |
en_plaincode_to_python | # Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
Text block:
""
"Test for the piezo tensor class"
ending with a newline.
Set __author__ to "<NAME>".
Set __version__ to "0.1".
Set __maintainer__ to "<NAME>".
Set __email__ to "<EMAIL>".
Set __status__ to "Development".
Set __da... | # Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Test for the piezo tensor class
"""
__author__ = "<NAME>"
__version__ = "0.1"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
__status__ = "Development"
__date__ = "4/1/16"
import os
import unittest
import numpy as np
... | en | python | run_002_20260417_060406 | 92 | {
"max_stars_repo_path": "pymatgen/analysis/tests/test_piezo.py",
"max_stars_repo_name": "exenGT/pymatgen",
"max_stars_count": 1,
"id": "160",
"raw_source_hash": "1195f28607f016bd6a801c0ab47d04a1931d94eddd2e0324722e99e303bfaf79",
"sanitize_meta": {
"triple_block_count": 1,
"total_triple_chars": 39,
... | {
"raw_source_hash": "1195f28607f016bd6a801c0ab47d04a1931d94eddd2e0324722e99e303bfaf79",
"normalized_source_hash": "cfef961e44dfee937a3ad0e413cfc6256e21890e319ceb04293577e6065ea1aa",
"source_ast_hash": "1a403ab2dfac0ac91dad79e84403a0293e031906f82ece25bf1fe916b426152c",
"artifact_hash": "c26086ff20bc506696a3355f... | true | true | null |
python_to_en_plaincode | from direct.showbase import DirectObject
from otp.otpbase import OTPGlobals
import sys
from direct.gui.DirectGui import *
from pandac.PandaModules import *
from otp.otpbase import OTPLocalizer
class ChatInputNormal(DirectObject.DirectObject):
ExecNamespace = None
def __init__(self, chatMgr):
self.chat... | Load DirectObject from direct.showbase.
Load OTPGlobals from otp.otpbase.
Load sys.
Load everything from direct.gui.DirectGui.
Load everything from pandac.PandaModules.
Load OTPLocalizer from otp.otpbase.
Define class ChatInputNormal inheriting from DirectObject.DirectObject:
Set ExecNamespace to None.
Define m... | python | en | run_002_20260417_060406 | 93 | {
"max_stars_repo_path": "otp/chat/ChatInputNormal.py",
"max_stars_repo_name": "P1ayerOne/src",
"max_stars_count": 0,
"id": "162",
"raw_source_hash": "0932b4bb617fbdaf07451ba1938f80e27d0c411e3f2bc009f0742200080670a0",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"largest_... | {
"raw_source_hash": "0932b4bb617fbdaf07451ba1938f80e27d0c411e3f2bc009f0742200080670a0",
"normalized_source_hash": "c9c68235cf6186a1f0c10f884f4c844eed35c681179d660c98774d2254f4d0b7",
"source_ast_hash": "731ef3f6a028f526eceba40de7ba241dc399377d23e87c6d8fe689029f649956",
"artifact_hash": "3f9a731519de55204c866213... | true | true | null |
python_to_es_plaincode | from direct.showbase import DirectObject
from otp.otpbase import OTPGlobals
import sys
from direct.gui.DirectGui import *
from pandac.PandaModules import *
from otp.otpbase import OTPLocalizer
class ChatInputNormal(DirectObject.DirectObject):
ExecNamespace = None
def __init__(self, chatMgr):
self.chat... | Importar DirectObject desde direct.showbase.
Importar OTPGlobals desde otp.otpbase.
Importar sys.
Importar todo desde direct.gui.DirectGui.
Importar todo desde pandac.PandaModules.
Importar OTPLocalizer desde otp.otpbase.
Definir clase ChatInputNormal heredando de DirectObject.DirectObject:
Establecer ExecNamespace... | python | es | run_002_20260417_060406 | 93 | {
"max_stars_repo_path": "otp/chat/ChatInputNormal.py",
"max_stars_repo_name": "P1ayerOne/src",
"max_stars_count": 0,
"id": "162",
"raw_source_hash": "0932b4bb617fbdaf07451ba1938f80e27d0c411e3f2bc009f0742200080670a0",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"largest_... | {
"raw_source_hash": "0932b4bb617fbdaf07451ba1938f80e27d0c411e3f2bc009f0742200080670a0",
"normalized_source_hash": "c9c68235cf6186a1f0c10f884f4c844eed35c681179d660c98774d2254f4d0b7",
"source_ast_hash": "731ef3f6a028f526eceba40de7ba241dc399377d23e87c6d8fe689029f649956",
"artifact_hash": "3f9a731519de55204c866213... | true | true | null |
python_to_fr_plaincode | from direct.showbase import DirectObject
from otp.otpbase import OTPGlobals
import sys
from direct.gui.DirectGui import *
from pandac.PandaModules import *
from otp.otpbase import OTPLocalizer
class ChatInputNormal(DirectObject.DirectObject):
ExecNamespace = None
def __init__(self, chatMgr):
self.chat... | Charger DirectObject depuis direct.showbase.
Charger OTPGlobals depuis otp.otpbase.
Charger sys.
Charger tout depuis direct.gui.DirectGui.
Charger tout depuis pandac.PandaModules.
Charger OTPLocalizer depuis otp.otpbase.
Définir classe ChatInputNormal héritant de DirectObject.DirectObject:
Affecter ExecNamespace à ... | python | fr | run_002_20260417_060406 | 93 | {
"max_stars_repo_path": "otp/chat/ChatInputNormal.py",
"max_stars_repo_name": "P1ayerOne/src",
"max_stars_count": 0,
"id": "162",
"raw_source_hash": "0932b4bb617fbdaf07451ba1938f80e27d0c411e3f2bc009f0742200080670a0",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"largest_... | {
"raw_source_hash": "0932b4bb617fbdaf07451ba1938f80e27d0c411e3f2bc009f0742200080670a0",
"normalized_source_hash": "c9c68235cf6186a1f0c10f884f4c844eed35c681179d660c98774d2254f4d0b7",
"source_ast_hash": "731ef3f6a028f526eceba40de7ba241dc399377d23e87c6d8fe689029f649956",
"artifact_hash": "3f9a731519de55204c866213... | true | true | null |
en_plaincode_to_python | Load DirectObject from direct.showbase.
Load OTPGlobals from otp.otpbase.
Load sys.
Load everything from direct.gui.DirectGui.
Load everything from pandac.PandaModules.
Load OTPLocalizer from otp.otpbase.
Define class ChatInputNormal inheriting from DirectObject.DirectObject:
Set ExecNamespace to None.
Define m... | from direct.showbase import DirectObject
from otp.otpbase import OTPGlobals
import sys
from direct.gui.DirectGui import *
from pandac.PandaModules import *
from otp.otpbase import OTPLocalizer
class ChatInputNormal(DirectObject.DirectObject):
ExecNamespace = None
def __init__(self, chatMgr):
self.chat... | en | python | run_002_20260417_060406 | 93 | {
"max_stars_repo_path": "otp/chat/ChatInputNormal.py",
"max_stars_repo_name": "P1ayerOne/src",
"max_stars_count": 0,
"id": "162",
"raw_source_hash": "0932b4bb617fbdaf07451ba1938f80e27d0c411e3f2bc009f0742200080670a0",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
"largest_... | {
"raw_source_hash": "0932b4bb617fbdaf07451ba1938f80e27d0c411e3f2bc009f0742200080670a0",
"normalized_source_hash": "c9c68235cf6186a1f0c10f884f4c844eed35c681179d660c98774d2254f4d0b7",
"source_ast_hash": "731ef3f6a028f526eceba40de7ba241dc399377d23e87c6d8fe689029f649956",
"artifact_hash": "3f9a731519de55204c866213... | true | true | null |
python_to_en_plaincode | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | python | en | run_002_20260417_060406 | 94 | {
"max_stars_repo_path": "src/test/python/apache/aurora/executor/test_status_manager.py",
"max_stars_repo_name": "zmanji/incubator-aurora",
"max_stars_count": 0,
"id": "164",
"raw_source_hash": "0d2cdf59d0bbbe94c52ff611a0d6950e95809135f0e5daecb46a9401531c7426",
"sanitize_meta": {
"triple_block_count": 0... | {
"raw_source_hash": "0d2cdf59d0bbbe94c52ff611a0d6950e95809135f0e5daecb46a9401531c7426",
"normalized_source_hash": "93113b215af13bc3473ee016cd9d1fc64a434f2b2013834721d81a7f9d9e21e2",
"source_ast_hash": "e9f0c25cd468195ccdd3fe09bacc3ca5a53abd881be4784b447e6f8ca775d1b5",
"artifact_hash": "9fcd088c68aa6b6618c345e6... | true | true | null |
python_to_es_plaincode | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may no use this file except en compliance con the License.
# You may obtain a copy de the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required por applicable law o agreed como en writing, software
# distributed under ... | python | es | run_002_20260417_060406 | 94 | {
"max_stars_repo_path": "src/test/python/apache/aurora/executor/test_status_manager.py",
"max_stars_repo_name": "zmanji/incubator-aurora",
"max_stars_count": 0,
"id": "164",
"raw_source_hash": "0d2cdf59d0bbbe94c52ff611a0d6950e95809135f0e5daecb46a9401531c7426",
"sanitize_meta": {
"triple_block_count": 0... | {
"raw_source_hash": "0d2cdf59d0bbbe94c52ff611a0d6950e95809135f0e5daecb46a9401531c7426",
"normalized_source_hash": "93113b215af13bc3473ee016cd9d1fc64a434f2b2013834721d81a7f9d9e21e2",
"source_ast_hash": "e9f0c25cd468195ccdd3fe09bacc3ca5a53abd881be4784b447e6f8ca775d1b5",
"artifact_hash": "9fcd088c68aa6b6618c345e6... | true | true | null |
python_to_fr_plaincode | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may non use this file except dans compliance avec the License.
# You may obtain a copy de the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required par applicable law ou agreed à dans writing, software
# distributed un... | python | fr | run_002_20260417_060406 | 94 | {
"max_stars_repo_path": "src/test/python/apache/aurora/executor/test_status_manager.py",
"max_stars_repo_name": "zmanji/incubator-aurora",
"max_stars_count": 0,
"id": "164",
"raw_source_hash": "0d2cdf59d0bbbe94c52ff611a0d6950e95809135f0e5daecb46a9401531c7426",
"sanitize_meta": {
"triple_block_count": 0... | {
"raw_source_hash": "0d2cdf59d0bbbe94c52ff611a0d6950e95809135f0e5daecb46a9401531c7426",
"normalized_source_hash": "93113b215af13bc3473ee016cd9d1fc64a434f2b2013834721d81a7f9d9e21e2",
"source_ast_hash": "e9f0c25cd468195ccdd3fe09bacc3ca5a53abd881be4784b447e6f8ca775d1b5",
"artifact_hash": "9fcd088c68aa6b6618c345e6... | true | true | null |
en_plaincode_to_python | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | en | python | run_002_20260417_060406 | 94 | {
"max_stars_repo_path": "src/test/python/apache/aurora/executor/test_status_manager.py",
"max_stars_repo_name": "zmanji/incubator-aurora",
"max_stars_count": 0,
"id": "164",
"raw_source_hash": "0d2cdf59d0bbbe94c52ff611a0d6950e95809135f0e5daecb46a9401531c7426",
"sanitize_meta": {
"triple_block_count": 0... | {
"raw_source_hash": "0d2cdf59d0bbbe94c52ff611a0d6950e95809135f0e5daecb46a9401531c7426",
"normalized_source_hash": "93113b215af13bc3473ee016cd9d1fc64a434f2b2013834721d81a7f9d9e21e2",
"source_ast_hash": "e9f0c25cd468195ccdd3fe09bacc3ca5a53abd881be4784b447e6f8ca775d1b5",
"artifact_hash": "9fcd088c68aa6b6618c345e6... | true | true | null |
python_to_en_plaincode | SCRABBLE_LETTER_VALUES = {
'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1,
'o': 1, 'p': 3, 'q': 10, 'r': 1, 's': 1, 't': 1, 'u': 1, 'v': 4, 'w': 4, 'x': 8, 'y': 4, 'z': 10
}
def getWordScore(word, n):
"""
Returns the score for a word. Assu... | Set SCRABBLE_LETTER_VALUES to the record {
`a` set to 1,
`b` set to 3,
`c` set to 3,
`d` set to 2,
`e` set to 1,
`f` set to 4,
`g` set to 2,
`h` set to 4,
`i` set to 1,
`j` set to 8,
`k` set to 5,
`l` set to 1,
`m` set to 3,
`n` set to 1,
`o` set to 1,
`p` set to 3,
`q` set to 10,
`r` set to 1,
`s` set to 1,
`t` set to... | python | en | run_002_20260417_060406 | 95 | {
"max_stars_repo_path": "MIT/600.1x - Introduction to Computer Science and Programming Using Python/Unit 4/Problem Set 4/get_word_score.py",
"max_stars_repo_name": "henriqueumeda/-Python-study",
"max_stars_count": 0,
"id": "169",
"raw_source_hash": "e6d8dafa89acd4ff5bac90950503df8691d617e2a8c331808c3bc60dfdd... | {
"raw_source_hash": "e6d8dafa89acd4ff5bac90950503df8691d617e2a8c331808c3bc60dfddefeff",
"normalized_source_hash": "31f183f56766f1f64888114e45e856376657fd12d7ba3d708ab02dbf7cebf4b0",
"source_ast_hash": "548854575a965f287a2f24262219082672bd69ab619126eabbc24f2da5a76d08",
"artifact_hash": "c34c949db538eb6c2fc6f2c4... | true | true | null |
python_to_es_plaincode | SCRABBLE_LETTER_VALUES = {
'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1,
'o': 1, 'p': 3, 'q': 10, 'r': 1, 's': 1, 't': 1, 'u': 1, 'v': 4, 'w': 4, 'x': 8, 'y': 4, 'z': 10
}
def getWordScore(word, n):
"""
Returns the score for a word. Assu... | Establecer SCRABBLE_LETTER_VALUES como el diccionario {
`a` establecido a 1,
`b` establecido a 3,
`c` establecido a 3,
`d` establecido a 2,
`e` establecido a 1,
`f` establecido a 4,
`g` establecido a 2,
`h` establecido a 4,
`i` establecido a 1,
`j` establecido a 8,
`k` establecido a 5,
`l` establecido a 1,
`m` establec... | python | es | run_002_20260417_060406 | 95 | {
"max_stars_repo_path": "MIT/600.1x - Introduction to Computer Science and Programming Using Python/Unit 4/Problem Set 4/get_word_score.py",
"max_stars_repo_name": "henriqueumeda/-Python-study",
"max_stars_count": 0,
"id": "169",
"raw_source_hash": "e6d8dafa89acd4ff5bac90950503df8691d617e2a8c331808c3bc60dfdd... | {
"raw_source_hash": "e6d8dafa89acd4ff5bac90950503df8691d617e2a8c331808c3bc60dfddefeff",
"normalized_source_hash": "31f183f56766f1f64888114e45e856376657fd12d7ba3d708ab02dbf7cebf4b0",
"source_ast_hash": "548854575a965f287a2f24262219082672bd69ab619126eabbc24f2da5a76d08",
"artifact_hash": "c34c949db538eb6c2fc6f2c4... | true | true | null |
python_to_fr_plaincode | SCRABBLE_LETTER_VALUES = {
'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1,
'o': 1, 'p': 3, 'q': 10, 'r': 1, 's': 1, 't': 1, 'u': 1, 'v': 4, 'w': 4, 'x': 8, 'y': 4, 'z': 10
}
def getWordScore(word, n):
"""
Returns the score for a word. Assu... | Affecter SCRABBLE_LETTER_VALUES à le registre {
`a` défini à 1,
`b` défini à 3,
`c` défini à 3,
`d` défini à 2,
`e` défini à 1,
`f` défini à 4,
`g` défini à 2,
`h` défini à 4,
`i` défini à 1,
`j` défini à 8,
`k` défini à 5,
`l` défini à 1,
`m` défini à 3,
`n` défini à 1,
`o` défini à 1,
`p` défini à 3,
`q` défini à 10,... | python | fr | run_002_20260417_060406 | 95 | {
"max_stars_repo_path": "MIT/600.1x - Introduction to Computer Science and Programming Using Python/Unit 4/Problem Set 4/get_word_score.py",
"max_stars_repo_name": "henriqueumeda/-Python-study",
"max_stars_count": 0,
"id": "169",
"raw_source_hash": "e6d8dafa89acd4ff5bac90950503df8691d617e2a8c331808c3bc60dfdd... | {
"raw_source_hash": "e6d8dafa89acd4ff5bac90950503df8691d617e2a8c331808c3bc60dfddefeff",
"normalized_source_hash": "31f183f56766f1f64888114e45e856376657fd12d7ba3d708ab02dbf7cebf4b0",
"source_ast_hash": "548854575a965f287a2f24262219082672bd69ab619126eabbc24f2da5a76d08",
"artifact_hash": "c34c949db538eb6c2fc6f2c4... | true | true | null |
en_plaincode_to_python | Set SCRABBLE_LETTER_VALUES to the record {
`a` set to 1,
`b` set to 3,
`c` set to 3,
`d` set to 2,
`e` set to 1,
`f` set to 4,
`g` set to 2,
`h` set to 4,
`i` set to 1,
`j` set to 8,
`k` set to 5,
`l` set to 1,
`m` set to 3,
`n` set to 1,
`o` set to 1,
`p` set to 3,
`q` set to 10,
`r` set to 1,
`s` set to 1,
`t` set to... | SCRABBLE_LETTER_VALUES = {
'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1,
'o': 1, 'p': 3, 'q': 10, 'r': 1, 's': 1, 't': 1, 'u': 1, 'v': 4, 'w': 4, 'x': 8, 'y': 4, 'z': 10
}
def getWordScore(word, n):
"""
Returns the score for a word. Assu... | en | python | run_002_20260417_060406 | 95 | {
"max_stars_repo_path": "MIT/600.1x - Introduction to Computer Science and Programming Using Python/Unit 4/Problem Set 4/get_word_score.py",
"max_stars_repo_name": "henriqueumeda/-Python-study",
"max_stars_count": 0,
"id": "169",
"raw_source_hash": "e6d8dafa89acd4ff5bac90950503df8691d617e2a8c331808c3bc60dfdd... | {
"raw_source_hash": "e6d8dafa89acd4ff5bac90950503df8691d617e2a8c331808c3bc60dfddefeff",
"normalized_source_hash": "31f183f56766f1f64888114e45e856376657fd12d7ba3d708ab02dbf7cebf4b0",
"source_ast_hash": "548854575a965f287a2f24262219082672bd69ab619126eabbc24f2da5a76d08",
"artifact_hash": "c34c949db538eb6c2fc6f2c4... | true | true | null |
python_to_en_plaincode | from pathlib import Path
from meth5.meth5 import MetH5File
def main(m5file:Path, chunk_size:int, quiet:bool):
with MetH5File(m5file, "r", chunk_size=chunk_size) as f:
for chrom in f.get_chromosomes():
print(f"{chrom}: {f[chrom].get_number_of_chunks()}") | Load Path from pathlib.
Load MetH5File from meth5.meth5.
Define function main with parameters m5file (type: Path), chunk_size (type: int), quiet (type: bool):
With (MetH5File with m5file, "r", and chunk_size set to chunk_size) bound as f:
For each chrom in f dot get_chromosomes with no values:
P... | python | en | run_002_20260417_060406 | 96 | {
"max_stars_repo_path": "nanoepiseg/main_list_chunks.py",
"max_stars_repo_name": "snajder-r/nanoepiseg",
"max_stars_count": 0,
"id": "171",
"raw_source_hash": "a3a38722fcf0037cc215f158c243204a928231f54eaf813c7afaaec059b40d0f",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
... | {
"raw_source_hash": "a3a38722fcf0037cc215f158c243204a928231f54eaf813c7afaaec059b40d0f",
"normalized_source_hash": "c3a70d5da7f2087d59c6a75b39f9198b6686f92bd28ada155c5009132212019b",
"source_ast_hash": "d973e7ddf94d754f5fe61dad53cf801222b5b6203e08060d70882f80f6d6d5d5",
"artifact_hash": "541b5e643e825ba39e50a10a... | true | true | null |
python_to_es_plaincode | from pathlib import Path
from meth5.meth5 import MetH5File
def main(m5file:Path, chunk_size:int, quiet:bool):
with MetH5File(m5file, "r", chunk_size=chunk_size) as f:
for chrom in f.get_chromosomes():
print(f"{chrom}: {f[chrom].get_number_of_chunks()}") | Importar Path desde pathlib.
Importar MetH5File desde meth5.meth5.
Definir función main con parámetros m5file (tipo: Path), chunk_size (tipo: int), quiet (tipo: bool):
Con (MetH5File con m5file, "r", y también chunk_size establecido a chunk_size) como f:
Para cada chrom en f punto get_chromosomes sin argume... | python | es | run_002_20260417_060406 | 96 | {
"max_stars_repo_path": "nanoepiseg/main_list_chunks.py",
"max_stars_repo_name": "snajder-r/nanoepiseg",
"max_stars_count": 0,
"id": "171",
"raw_source_hash": "a3a38722fcf0037cc215f158c243204a928231f54eaf813c7afaaec059b40d0f",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
... | {
"raw_source_hash": "a3a38722fcf0037cc215f158c243204a928231f54eaf813c7afaaec059b40d0f",
"normalized_source_hash": "c3a70d5da7f2087d59c6a75b39f9198b6686f92bd28ada155c5009132212019b",
"source_ast_hash": "d973e7ddf94d754f5fe61dad53cf801222b5b6203e08060d70882f80f6d6d5d5",
"artifact_hash": "541b5e643e825ba39e50a10a... | true | true | null |
python_to_fr_plaincode | from pathlib import Path
from meth5.meth5 import MetH5File
def main(m5file:Path, chunk_size:int, quiet:bool):
with MetH5File(m5file, "r", chunk_size=chunk_size) as f:
for chrom in f.get_chromosomes():
print(f"{chrom}: {f[chrom].get_number_of_chunks()}") | Charger Path depuis pathlib.
Charger MetH5File depuis meth5.meth5.
Définir fonction main avec paramètres m5file (type : Path), chunk_size (type : int), quiet (type : bool):
Avec (MetH5File avec m5file, "r", et chunk_size défini à chunk_size) lié comme f:
Pour chaque chrom dans f point de get_chromosomes san... | python | fr | run_002_20260417_060406 | 96 | {
"max_stars_repo_path": "nanoepiseg/main_list_chunks.py",
"max_stars_repo_name": "snajder-r/nanoepiseg",
"max_stars_count": 0,
"id": "171",
"raw_source_hash": "a3a38722fcf0037cc215f158c243204a928231f54eaf813c7afaaec059b40d0f",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
... | {
"raw_source_hash": "a3a38722fcf0037cc215f158c243204a928231f54eaf813c7afaaec059b40d0f",
"normalized_source_hash": "c3a70d5da7f2087d59c6a75b39f9198b6686f92bd28ada155c5009132212019b",
"source_ast_hash": "d973e7ddf94d754f5fe61dad53cf801222b5b6203e08060d70882f80f6d6d5d5",
"artifact_hash": "541b5e643e825ba39e50a10a... | true | true | null |
en_plaincode_to_python | Load Path from pathlib.
Load MetH5File from meth5.meth5.
Define function main with parameters m5file (type: Path), chunk_size (type: int), quiet (type: bool):
With (MetH5File with m5file, "r", and chunk_size set to chunk_size) bound as f:
For each chrom in f dot get_chromosomes with no values:
P... | from pathlib import Path
from meth5.meth5 import MetH5File
def main(m5file:Path, chunk_size:int, quiet:bool):
with MetH5File(m5file, "r", chunk_size=chunk_size) as f:
for chrom in f.get_chromosomes():
print(f"{chrom}: {f[chrom].get_number_of_chunks()}") | en | python | run_002_20260417_060406 | 96 | {
"max_stars_repo_path": "nanoepiseg/main_list_chunks.py",
"max_stars_repo_name": "snajder-r/nanoepiseg",
"max_stars_count": 0,
"id": "171",
"raw_source_hash": "a3a38722fcf0037cc215f158c243204a928231f54eaf813c7afaaec059b40d0f",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,
... | {
"raw_source_hash": "a3a38722fcf0037cc215f158c243204a928231f54eaf813c7afaaec059b40d0f",
"normalized_source_hash": "c3a70d5da7f2087d59c6a75b39f9198b6686f92bd28ada155c5009132212019b",
"source_ast_hash": "d973e7ddf94d754f5fe61dad53cf801222b5b6203e08060d70882f80f6d6d5d5",
"artifact_hash": "541b5e643e825ba39e50a10a... | true | true | null |
python_to_en_plaincode | #!/usr/bin/env python
# script to make seasonal means and stddev images of 4-day sig0
# values.
import os
import sys
import glob
import numpy as np
import sirpy2 as sp2
import argparse
from osgeo import gdal
DATADIR = "./"
NODATA_VALUE = -9999.0
Q2M = {
"JAS": list(range(7, 10)),
"OND": list(range(10, 13)),... | # !/usr/bin/env python
# script to make seasonal means and stddev images of 4-day sig0
# values.
Load os.
Load sys.
Load glob.
Load numpy, referred to as np.
Load sirpy2, referred to as sp2.
Load argparse.
Load gdal from osgeo.
Set DATADIR to "./".
Set NODATA_VALUE to negative 9999.0.
Set Q2M to the record {
`JAS` set ... | python | en | run_002_20260417_060406 | 97 | {
"max_stars_repo_path": "qscatv2/make_seasonal_images.py",
"max_stars_repo_name": "tmilliman/sir_to_netcdf",
"max_stars_count": 0,
"id": "172",
"raw_source_hash": "332fa3989251c2dd8598e807e2d41e65ef3f3d7c1c3a5eda52e0450bdf872635",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,... | {
"raw_source_hash": "332fa3989251c2dd8598e807e2d41e65ef3f3d7c1c3a5eda52e0450bdf872635",
"normalized_source_hash": "5ddeeb5dad68c00e5f15c56d1417088d22bd0ce7f38d7297d8ddd7b7076cab44",
"source_ast_hash": "86bc2d0315e881a35fdd2735c76c58b0eacb757393e09f3a7ccffca8675e181a",
"artifact_hash": "3875bffb3efc791ee37bac37... | true | true | null |
python_to_es_plaincode | #!/usr/bin/env python
# script to make seasonal means and stddev images of 4-day sig0
# values.
import os
import sys
import glob
import numpy as np
import sirpy2 as sp2
import argparse
from osgeo import gdal
DATADIR = "./"
NODATA_VALUE = -9999.0
Q2M = {
"JAS": list(range(7, 10)),
"OND": list(range(10, 13)),... | # !/usr/bin/env python
# script como make seasonal means y también stddev images de 4-day sig0
# values.
Importar os.
Importar sys.
Importar glob.
Importar numpy, referido como np.
Importar sirpy2, referido como sp2.
Importar argparse.
Importar gdal desde osgeo.
Establecer DATADIR como "./".
Establecer NODATA_VALUE com... | python | es | run_002_20260417_060406 | 97 | {
"max_stars_repo_path": "qscatv2/make_seasonal_images.py",
"max_stars_repo_name": "tmilliman/sir_to_netcdf",
"max_stars_count": 0,
"id": "172",
"raw_source_hash": "332fa3989251c2dd8598e807e2d41e65ef3f3d7c1c3a5eda52e0450bdf872635",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,... | {
"raw_source_hash": "332fa3989251c2dd8598e807e2d41e65ef3f3d7c1c3a5eda52e0450bdf872635",
"normalized_source_hash": "5ddeeb5dad68c00e5f15c56d1417088d22bd0ce7f38d7297d8ddd7b7076cab44",
"source_ast_hash": "86bc2d0315e881a35fdd2735c76c58b0eacb757393e09f3a7ccffca8675e181a",
"artifact_hash": "3875bffb3efc791ee37bac37... | true | true | null |
python_to_fr_plaincode | #!/usr/bin/env python
# script to make seasonal means and stddev images of 4-day sig0
# values.
import os
import sys
import glob
import numpy as np
import sirpy2 as sp2
import argparse
from osgeo import gdal
DATADIR = "./"
NODATA_VALUE = -9999.0
Q2M = {
"JAS": list(range(7, 10)),
"OND": list(range(10, 13)),... | # !/usr/bin/env python
# script à make seasonal means et stddev images de 4-day sig0
# values.
Charger os.
Charger sys.
Charger glob.
Charger numpy, référé comme np.
Charger sirpy2, référé comme sp2.
Charger argparse.
Charger gdal depuis osgeo.
Affecter DATADIR à "./".
Affecter NODATA_VALUE à négatif 9999.0.
Affecter Q... | python | fr | run_002_20260417_060406 | 97 | {
"max_stars_repo_path": "qscatv2/make_seasonal_images.py",
"max_stars_repo_name": "tmilliman/sir_to_netcdf",
"max_stars_count": 0,
"id": "172",
"raw_source_hash": "332fa3989251c2dd8598e807e2d41e65ef3f3d7c1c3a5eda52e0450bdf872635",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,... | {
"raw_source_hash": "332fa3989251c2dd8598e807e2d41e65ef3f3d7c1c3a5eda52e0450bdf872635",
"normalized_source_hash": "5ddeeb5dad68c00e5f15c56d1417088d22bd0ce7f38d7297d8ddd7b7076cab44",
"source_ast_hash": "86bc2d0315e881a35fdd2735c76c58b0eacb757393e09f3a7ccffca8675e181a",
"artifact_hash": "3875bffb3efc791ee37bac37... | true | true | null |
en_plaincode_to_python | # !/usr/bin/env python
# script to make seasonal means and stddev images of 4-day sig0
# values.
Load os.
Load sys.
Load glob.
Load numpy, referred to as np.
Load sirpy2, referred to as sp2.
Load argparse.
Load gdal from osgeo.
Set DATADIR to "./".
Set NODATA_VALUE to negative 9999.0.
Set Q2M to the record {
`JAS` set ... | #!/usr/bin/env python
# script to make seasonal means and stddev images of 4-day sig0
# values.
import os
import sys
import glob
import numpy as np
import sirpy2 as sp2
import argparse
from osgeo import gdal
DATADIR = "./"
NODATA_VALUE = -9999.0
Q2M = {
"JAS": list(range(7, 10)),
"OND": list(range(10, 13)),... | en | python | run_002_20260417_060406 | 97 | {
"max_stars_repo_path": "qscatv2/make_seasonal_images.py",
"max_stars_repo_name": "tmilliman/sir_to_netcdf",
"max_stars_count": 0,
"id": "172",
"raw_source_hash": "332fa3989251c2dd8598e807e2d41e65ef3f3d7c1c3a5eda52e0450bdf872635",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars": 0,... | {
"raw_source_hash": "332fa3989251c2dd8598e807e2d41e65ef3f3d7c1c3a5eda52e0450bdf872635",
"normalized_source_hash": "5ddeeb5dad68c00e5f15c56d1417088d22bd0ce7f38d7297d8ddd7b7076cab44",
"source_ast_hash": "86bc2d0315e881a35fdd2735c76c58b0eacb757393e09f3a7ccffca8675e181a",
"artifact_hash": "3875bffb3efc791ee37bac37... | true | true | null |
python_to_en_plaincode | """
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
--------------------------------------------------------------------
... | Text block:
""
"Tencent is pleased to support the open source community by making BK-BASE \u84dd\u9cb8\u57fa\u7840\u5e73\u53f0 available."
"Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved."
"BK-BASE \u84dd\u9cb8\u57fa\u7840\u5e73\u53f0 is licensed under the MIT License."
"License for BK-BASE... | python | en | run_002_20260417_060406 | 98 | {
"max_stars_repo_path": "src/api/datamanage/pro/lifecycle/data_trace/data_set_create.py",
"max_stars_repo_name": "Chromico/bk-base",
"max_stars_count": 84,
"id": "175",
"raw_source_hash": "3a6c45f73efe0404f882ebb30857aa51cc69ff9f3c79f87381b91657c798119e",
"sanitize_meta": {
"triple_block_count": 3,
... | {
"raw_source_hash": "3a6c45f73efe0404f882ebb30857aa51cc69ff9f3c79f87381b91657c798119e",
"normalized_source_hash": "a0cb5e20ebb9c523a4cc69f13b26e03bc80af6035e0c743096a086f0ae1a23c7",
"source_ast_hash": "00dc66b213ca5469ab38dbcc76f1b731daafa141b883c4bcadfac8100b9dcf75",
"artifact_hash": "bf6918ee0b5ab89e34a9415d... | true | true | null |
python_to_es_plaincode | """
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
--------------------------------------------------------------------
... | Texto literal:
""
"Tencent is pleased to support the open source community by making BK-BASE \u84dd\u9cb8\u57fa\u7840\u5e73\u53f0 available."
"Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved."
"BK-BASE \u84dd\u9cb8\u57fa\u7840\u5e73\u53f0 is licensed under the MIT License."
"License for BK-B... | python | es | run_002_20260417_060406 | 98 | {
"max_stars_repo_path": "src/api/datamanage/pro/lifecycle/data_trace/data_set_create.py",
"max_stars_repo_name": "Chromico/bk-base",
"max_stars_count": 84,
"id": "175",
"raw_source_hash": "3a6c45f73efe0404f882ebb30857aa51cc69ff9f3c79f87381b91657c798119e",
"sanitize_meta": {
"triple_block_count": 3,
... | {
"raw_source_hash": "3a6c45f73efe0404f882ebb30857aa51cc69ff9f3c79f87381b91657c798119e",
"normalized_source_hash": "a0cb5e20ebb9c523a4cc69f13b26e03bc80af6035e0c743096a086f0ae1a23c7",
"source_ast_hash": "00dc66b213ca5469ab38dbcc76f1b731daafa141b883c4bcadfac8100b9dcf75",
"artifact_hash": "bf6918ee0b5ab89e34a9415d... | true | true | null |
python_to_fr_plaincode | """
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
--------------------------------------------------------------------
... | Texte littéral:
""
"Tencent is pleased to support the open source community by making BK-BASE \u84dd\u9cb8\u57fa\u7840\u5e73\u53f0 available."
"Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved."
"BK-BASE \u84dd\u9cb8\u57fa\u7840\u5e73\u53f0 is licensed under the MIT License."
"License for BK-... | python | fr | run_002_20260417_060406 | 98 | {
"max_stars_repo_path": "src/api/datamanage/pro/lifecycle/data_trace/data_set_create.py",
"max_stars_repo_name": "Chromico/bk-base",
"max_stars_count": 84,
"id": "175",
"raw_source_hash": "3a6c45f73efe0404f882ebb30857aa51cc69ff9f3c79f87381b91657c798119e",
"sanitize_meta": {
"triple_block_count": 3,
... | {
"raw_source_hash": "3a6c45f73efe0404f882ebb30857aa51cc69ff9f3c79f87381b91657c798119e",
"normalized_source_hash": "a0cb5e20ebb9c523a4cc69f13b26e03bc80af6035e0c743096a086f0ae1a23c7",
"source_ast_hash": "00dc66b213ca5469ab38dbcc76f1b731daafa141b883c4bcadfac8100b9dcf75",
"artifact_hash": "bf6918ee0b5ab89e34a9415d... | true | true | null |
en_plaincode_to_python | Text block:
""
"Tencent is pleased to support the open source community by making BK-BASE \u84dd\u9cb8\u57fa\u7840\u5e73\u53f0 available."
"Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved."
"BK-BASE \u84dd\u9cb8\u57fa\u7840\u5e73\u53f0 is licensed under the MIT License."
"License for BK-BASE... | """
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
--------------------------------------------------------------------
... | en | python | run_002_20260417_060406 | 98 | {
"max_stars_repo_path": "src/api/datamanage/pro/lifecycle/data_trace/data_set_create.py",
"max_stars_repo_name": "Chromico/bk-base",
"max_stars_count": 84,
"id": "175",
"raw_source_hash": "3a6c45f73efe0404f882ebb30857aa51cc69ff9f3c79f87381b91657c798119e",
"sanitize_meta": {
"triple_block_count": 3,
... | {
"raw_source_hash": "3a6c45f73efe0404f882ebb30857aa51cc69ff9f3c79f87381b91657c798119e",
"normalized_source_hash": "a0cb5e20ebb9c523a4cc69f13b26e03bc80af6035e0c743096a086f0ae1a23c7",
"source_ast_hash": "00dc66b213ca5469ab38dbcc76f1b731daafa141b883c4bcadfac8100b9dcf75",
"artifact_hash": "bf6918ee0b5ab89e34a9415d... | true | true | null |
python_to_en_plaincode | import unittest
from caravan.task import Task
from caravan.tables import Tables
class TestRun(unittest.TestCase):
def setUp(self):
self.t = Tables.get()
self.t.clear()
def test_task(self):
t = Task(1234, "echo hello world")
self.assertEqual(t.id(), 1234)
self.assertEqu... | Load unittest.
Load Task from caravan.task.
Load Tables from caravan.tables.
Define class TestRun inheriting from unittest.TestCase:
Define method setUp with parameter self:
Set self dot t to Tables dot get with no values.
Call self dot t dot clear.
Define method test_task with parameter self:
... | python | en | run_002_20260417_060406 | 99 | {
"max_stars_repo_path": "caravan_search_engine/test/test_task.py",
"max_stars_repo_name": "crest-cassia/caravan",
"max_stars_count": 4,
"id": "177",
"raw_source_hash": "a49df959825fc998de53c4fbf235f1109824aac1dcd148d610ae7b460385a071",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars... | {
"raw_source_hash": "a49df959825fc998de53c4fbf235f1109824aac1dcd148d610ae7b460385a071",
"normalized_source_hash": "cad85ed3da7ed564837f3cec56f88b931b9c26f0f01a4d7e4d46e4366aa6b838",
"source_ast_hash": "ff60d9b6b5149ef1a234404f42046b91f230ef96cf5d16fda78cd5ee04af0d4e",
"artifact_hash": "d6649a05ee77929297ef590f... | true | true | null |
python_to_es_plaincode | import unittest
from caravan.task import Task
from caravan.tables import Tables
class TestRun(unittest.TestCase):
def setUp(self):
self.t = Tables.get()
self.t.clear()
def test_task(self):
t = Task(1234, "echo hello world")
self.assertEqual(t.id(), 1234)
self.assertEqu... | Importar unittest.
Importar Task desde caravan.task.
Importar Tables desde caravan.tables.
Definir clase TestRun heredando de unittest.TestCase:
Definir método setUp con parámetro self:
Establecer self punto t como Tables punto get sin argumentos.
Llamar self punto t punto clear.
Definir método ... | python | es | run_002_20260417_060406 | 99 | {
"max_stars_repo_path": "caravan_search_engine/test/test_task.py",
"max_stars_repo_name": "crest-cassia/caravan",
"max_stars_count": 4,
"id": "177",
"raw_source_hash": "a49df959825fc998de53c4fbf235f1109824aac1dcd148d610ae7b460385a071",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars... | {
"raw_source_hash": "a49df959825fc998de53c4fbf235f1109824aac1dcd148d610ae7b460385a071",
"normalized_source_hash": "cad85ed3da7ed564837f3cec56f88b931b9c26f0f01a4d7e4d46e4366aa6b838",
"source_ast_hash": "ff60d9b6b5149ef1a234404f42046b91f230ef96cf5d16fda78cd5ee04af0d4e",
"artifact_hash": "d6649a05ee77929297ef590f... | true | true | null |
python_to_fr_plaincode | import unittest
from caravan.task import Task
from caravan.tables import Tables
class TestRun(unittest.TestCase):
def setUp(self):
self.t = Tables.get()
self.t.clear()
def test_task(self):
t = Task(1234, "echo hello world")
self.assertEqual(t.id(), 1234)
self.assertEqu... | Charger unittest.
Charger Task depuis caravan.task.
Charger Tables depuis caravan.tables.
Définir classe TestRun héritant de unittest.TestCase:
Définir méthode setUp avec paramètre self:
Affecter self point de t à Tables point de get sans arguments.
Appeler self point de t point de clear.
Défini... | python | fr | run_002_20260417_060406 | 99 | {
"max_stars_repo_path": "caravan_search_engine/test/test_task.py",
"max_stars_repo_name": "crest-cassia/caravan",
"max_stars_count": 4,
"id": "177",
"raw_source_hash": "a49df959825fc998de53c4fbf235f1109824aac1dcd148d610ae7b460385a071",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars... | {
"raw_source_hash": "a49df959825fc998de53c4fbf235f1109824aac1dcd148d610ae7b460385a071",
"normalized_source_hash": "cad85ed3da7ed564837f3cec56f88b931b9c26f0f01a4d7e4d46e4366aa6b838",
"source_ast_hash": "ff60d9b6b5149ef1a234404f42046b91f230ef96cf5d16fda78cd5ee04af0d4e",
"artifact_hash": "d6649a05ee77929297ef590f... | true | true | null |
en_plaincode_to_python | Load unittest.
Load Task from caravan.task.
Load Tables from caravan.tables.
Define class TestRun inheriting from unittest.TestCase:
Define method setUp with parameter self:
Set self dot t to Tables dot get with no values.
Call self dot t dot clear.
Define method test_task with parameter self:
... | import unittest
from caravan.task import Task
from caravan.tables import Tables
class TestRun(unittest.TestCase):
def setUp(self):
self.t = Tables.get()
self.t.clear()
def test_task(self):
t = Task(1234, "echo hello world")
self.assertEqual(t.id(), 1234)
self.assertEqu... | en | python | run_002_20260417_060406 | 99 | {
"max_stars_repo_path": "caravan_search_engine/test/test_task.py",
"max_stars_repo_name": "crest-cassia/caravan",
"max_stars_count": 4,
"id": "177",
"raw_source_hash": "a49df959825fc998de53c4fbf235f1109824aac1dcd148d610ae7b460385a071",
"sanitize_meta": {
"triple_block_count": 0,
"total_triple_chars... | {
"raw_source_hash": "a49df959825fc998de53c4fbf235f1109824aac1dcd148d610ae7b460385a071",
"normalized_source_hash": "cad85ed3da7ed564837f3cec56f88b931b9c26f0f01a4d7e4d46e4366aa6b838",
"source_ast_hash": "ff60d9b6b5149ef1a234404f42046b91f230ef96cf5d16fda78cd5ee04af0d4e",
"artifact_hash": "d6649a05ee77929297ef590f... | true | true | null |
python_to_en_plaincode | import os
import json
from splash import defaults
from splash.utils import to_bytes, path_join_secure
from splash.errors import BadOption
class RenderOptions(object):
"""
Options that control how to render a response.
"""
_REQUIRED = object()
def __init__(self, data, max_timeout):
self.... | Load os.
Load json.
Load defaults from splash.
Load to_bytes, path_join_secure from splash.utils.
Load BadOption from splash.errors.
Define class RenderOptions inheriting from object:
Text block:
""
" Options that control how to render a response."
" ".
Set _REQUIRED to object with no values.
... | python | en | run_002_20260417_060406 | 100 | {
"max_stars_repo_path": "splash/render_options.py",
"max_stars_repo_name": "tashidexiaoL/splashnew",
"max_stars_count": 3612,
"id": "178",
"raw_source_hash": "a426baa3f187f804acb9bcbb75a7a2cab303f3a70ddeeb06efa44fcf98d3b7d4",
"sanitize_meta": {
"triple_block_count": 5,
"total_triple_chars": 594,
... | {
"raw_source_hash": "a426baa3f187f804acb9bcbb75a7a2cab303f3a70ddeeb06efa44fcf98d3b7d4",
"normalized_source_hash": "c98264ce28ae79a7574e048d67265bbb2b4a7ffc87e7789bde21f3cf864eae9a",
"source_ast_hash": "b68ce0da8c8868cbd11ae0a031f691c02dd5dee66b2e9f79c10bdedb3fe77a45",
"artifact_hash": "034db6701d9c56dc6cd858b3... | true | true | null |
python_to_es_plaincode | import os
import json
from splash import defaults
from splash.utils import to_bytes, path_join_secure
from splash.errors import BadOption
class RenderOptions(object):
"""
Options that control how to render a response.
"""
_REQUIRED = object()
def __init__(self, data, max_timeout):
self.... | Importar os.
Importar json.
Importar defaults desde splash.
Importar to_bytes, path_join_secure desde splash.utils.
Importar BadOption desde splash.errors.
Definir clase RenderOptions heredando de object:
Texto literal:
""
" Options that control how to render a response."
" ".
Establecer _REQU... | python | es | run_002_20260417_060406 | 100 | {
"max_stars_repo_path": "splash/render_options.py",
"max_stars_repo_name": "tashidexiaoL/splashnew",
"max_stars_count": 3612,
"id": "178",
"raw_source_hash": "a426baa3f187f804acb9bcbb75a7a2cab303f3a70ddeeb06efa44fcf98d3b7d4",
"sanitize_meta": {
"triple_block_count": 5,
"total_triple_chars": 594,
... | {
"raw_source_hash": "a426baa3f187f804acb9bcbb75a7a2cab303f3a70ddeeb06efa44fcf98d3b7d4",
"normalized_source_hash": "c98264ce28ae79a7574e048d67265bbb2b4a7ffc87e7789bde21f3cf864eae9a",
"source_ast_hash": "b68ce0da8c8868cbd11ae0a031f691c02dd5dee66b2e9f79c10bdedb3fe77a45",
"artifact_hash": "034db6701d9c56dc6cd858b3... | true | true | null |
python_to_fr_plaincode | import os
import json
from splash import defaults
from splash.utils import to_bytes, path_join_secure
from splash.errors import BadOption
class RenderOptions(object):
"""
Options that control how to render a response.
"""
_REQUIRED = object()
def __init__(self, data, max_timeout):
self.... | Charger os.
Charger json.
Charger defaults depuis splash.
Charger to_bytes, path_join_secure depuis splash.utils.
Charger BadOption depuis splash.errors.
Définir classe RenderOptions héritant de object:
Texte littéral:
""
" Options that control how to render a response."
" ".
Affecter _REQUIRE... | python | fr | run_002_20260417_060406 | 100 | {
"max_stars_repo_path": "splash/render_options.py",
"max_stars_repo_name": "tashidexiaoL/splashnew",
"max_stars_count": 3612,
"id": "178",
"raw_source_hash": "a426baa3f187f804acb9bcbb75a7a2cab303f3a70ddeeb06efa44fcf98d3b7d4",
"sanitize_meta": {
"triple_block_count": 5,
"total_triple_chars": 594,
... | {
"raw_source_hash": "a426baa3f187f804acb9bcbb75a7a2cab303f3a70ddeeb06efa44fcf98d3b7d4",
"normalized_source_hash": "c98264ce28ae79a7574e048d67265bbb2b4a7ffc87e7789bde21f3cf864eae9a",
"source_ast_hash": "b68ce0da8c8868cbd11ae0a031f691c02dd5dee66b2e9f79c10bdedb3fe77a45",
"artifact_hash": "034db6701d9c56dc6cd858b3... | true | true | null |
en_plaincode_to_python | Load os.
Load json.
Load defaults from splash.
Load to_bytes, path_join_secure from splash.utils.
Load BadOption from splash.errors.
Define class RenderOptions inheriting from object:
Text block:
""
" Options that control how to render a response."
" ".
Set _REQUIRED to object with no values.
... | import os
import json
from splash import defaults
from splash.utils import to_bytes, path_join_secure
from splash.errors import BadOption
class RenderOptions(object):
"""
Options that control how to render a response.
"""
_REQUIRED = object()
def __init__(self, data, max_timeout):
self.... | en | python | run_002_20260417_060406 | 100 | {
"max_stars_repo_path": "splash/render_options.py",
"max_stars_repo_name": "tashidexiaoL/splashnew",
"max_stars_count": 3612,
"id": "178",
"raw_source_hash": "a426baa3f187f804acb9bcbb75a7a2cab303f3a70ddeeb06efa44fcf98d3b7d4",
"sanitize_meta": {
"triple_block_count": 5,
"total_triple_chars": 594,
... | {
"raw_source_hash": "a426baa3f187f804acb9bcbb75a7a2cab303f3a70ddeeb06efa44fcf98d3b7d4",
"normalized_source_hash": "c98264ce28ae79a7574e048d67265bbb2b4a7ffc87e7789bde21f3cf864eae9a",
"source_ast_hash": "b68ce0da8c8868cbd11ae0a031f691c02dd5dee66b2e9f79c10bdedb3fe77a45",
"artifact_hash": "034db6701d9c56dc6cd858b3... | true | true | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.