Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Muhammad Bilal Mohib-ul-Nabi
    @Muhammad-Bilal-7896
    I wish I can contribute to such an amazing project.
    Eddy
    @stratosilver
    Hello, is it possible to translate PHP to Python? The cross-language section show only 4 languages
    Vanshika Raj Sharma
    @vanshika2901

    def replace(good,bad,name):
    file = open(name)
    contents = file.read()
    contents = contents[:-4]
    file.seek(0)
    bad_keys = list(bad.keys())
    bad_keys.sort(key = lambda x:len(x),reverse=True)
    good_keys = list(good.keys())
    good_keys.sort(key=lambda x: len(x), reverse=True)
    for i in bad_keys:
    if i in contents:
    for k in good_keys:
    if good[k] == bad[i] and len(i.split()) == len(k.split()):
    contents = contents.replace(i,k)
    break
    print(contents)

    def file_score(good,bad,name):
    bad_score = 0
    good_score = 0
    file = open(name)
    for i in sorted(bad.keys()):
    if i in file.read():
    file.seek(0)
    bad_score += bad[i](file.read()).count(i)
    file.seek(0)
    for i in sorted(good.keys()):
    if i in file.read():
    file.seek(0)
    good_score += good[i]
    (file.read()).count(i)
    file.seek(0)
    print(good_score,bad_score,sep='\n')
    if bad_score > good_score:
    replace(good,bad,name)
    else:
    file.seek(0)
    print(file.read()[:-4])
    file.close()
    bad = {'bad': 5, 'worse': 3, 'worst': 6, 'very bad': 5, 'bad luck': 7, 'bad mood': 6}
    good = {'great': 6, 'good': 5, 'nice': 3, 'very good': 5, 'very great': 7, 'good mood': 6}
    name = input()
    file_score(good,bad,name)

    can nyone convert this python code to c++
    Vikas Narwariya
    @vikas-narwariya
    can anyone convert in react
    soupeggs
    @soupeggs
    hi
    i interesting about dapp, what lang should i learn more than solidity
    badrserhani
    @badrserhani
    hello
    how i can get news about coding ?
    Lauri Ojansivu
    @xet7
    @badrserhani https://dev.to
    Lauri Ojansivu
    @xet7
    @vanshika2901 You could try to convert it to https://nim-lang.org that is similar to Python and Nim can convert to some programming languages
    johnese11111
    @johnese11111
    hello world
    Lauri Ojansivu
    @xet7
    Hi @johnese11111 😀
    Gaurav Baghel
    @gaurav-baghel
    how do I pick language of my choice in cross language editing mode! I code in java but there isn't any option for it.
    Lauri Ojansivu
    @xet7
    @gaurav-baghel Did you install all those programming languages locally on your computer so Java is enabled?
    "Note: Compiler backend is not configured"
    Lauri Ojansivu
    @xet7
    I see this message on ide webpage, because I too have not installed backend compilers to my laptop yet
    Previously when I tested onelang, it did work after installing backend compilers
    Install info is at github repo
    or should be
    Previously when I tested onelang, I made many changes to my fork to get everything running locally, but I have not tested newest version yet
    javadiali631
    @javadiali631
    hi
    im a back-end developer i need a front-end developer everybody who know front-end developing send message in telegram for me hi_alij
    Arjun
    @Arunvm91
    Hi
    radinmsv
    @radinmsv
    everybody now how to work with onelang
    Aditya Anand
    @Adiii_nd_twitter
    hey i know machine learning, is someone here to want some projects or any work done for some stipend??
    1 reply
    HARSHA : THE HACKER
    @LooksHarsha_twitter
    hey i am getting an issue of "compiler backend is not configured" can anyone plz help with this problem
    PRITAM SONI
    @pritamsoni01
    how to change other than typescript languages? it only convert typescript to other..!!!