This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | version: "3" | |
| services: | |
| jenkins: | |
| image: jenkins/jenkins:lts | |
| container_name: jenkins | |
| hostname: jenkins | |
| environment: | |
| - HTTP_PROXY=http://localhost:8080 | |
| - http_proxy=http://localhost:8080 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from flask import Flask | |
| app = Flask(__name__) | |
| @app.get('/hello') | |
| def hello(): | |
| return 'Hello' | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import os | |
| from typing import Union | |
| from pydantic import BaseSettings, Field | |
| class Base(BaseSettings): | |
| secret_key: str = Field('random_string', env='ANOTHER_SECRET_KEY') | |
| port: int = 5050 | |
| username: str = "ANAND" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from flask import Flask | |
| from dotenv import load_dotenv | |
| from config import settings | |
| load_dotenv() # take environment variables from .env. | |
| app = Flask(__name__) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | if (is_valid(a) && b == 0 || s == 1) | |
| # or | |
| if is_valid(a) and not b or s | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from .. import some_module | |
| # or | |
| from foo.bar import some_module | |
| # another example | |
| from foo.bar.some_module import * | |
| # or | |
| from foo.bar.some_module import specific_variable | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # c,a,b,d are some random variables | |
| c = a and b or d | |
| # or | |
| if a: | |
| c = b | |
| else: | |
| c = d | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | counter = 0 | |
| while counter < 5: | |
| print counter | |
| counter += 1 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | for i in xrange(5): | |
| print i | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | if i>0: return sqrt(i) | |
| elif i==0: return 0 | |
| else: return 1j * sqrt(-i) | |
| # Versus | |
| if i > 0: | |
| return sqrt(i) | |
| elif i == 0: |