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 asyncio | |
| from typing import List | |
| from baidusearch.baidusearch import search | |
| from app.tool.base import BaseTool | |
| class GoogleSearch(BaseTool): | |
| name: str = "baidu_search" | 
  
    
      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
    
  
  
    
  | package main | |
| import "fmt" | |
| type Employee struct { | |
| name string | |
| age int | |
| salary int | |
| location string | |
| } | 
  
    
      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 duckdb | |
| import json | |
| import os | |
| import shutil | |
| import time | |
| import gzip | |
| import os | |
| conn = duckdb.connect(database="cloudfront-log2.db", read_only=False) | 
  
    
      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
    
  
  
    
  | {"httpRequest":{},"insertId":"8bw4pxf29tneo","jsonPayload":{"body":{"deviceInfo":{"appId":"art.puzzle.games.xxx.coloring.free.game","brand":"google","country":"CN","deviceType":"mobile","model":"Pixel 4","osVersion":"11","platform":"ANDROID","screenH":2236,"screenW":1080,"version":"10"},"events":[{"event":"scanSucceed1","info":{"adId":"111111","adjustId":"111111","deviceId":"xxxxx","firebaseId":"111111"},"param":{"code":{"s":"https://xxxxxx"},"code_type":{"s":"QR_CODE"},"count":{"i":12345},"source":{"s":"scanner"},"sum":{"d":12345.123},"type":{"s":"URI"}},"properties":{"country":"yyyyyy","name":"xxxx"},"timestamp":1683608090000},{"event":"scanSucceed2","info":{"adId":"111111","adjustId":"111111","deviceId":"xxxxx","firebaseId":"111111"},"param":{"code":{"s":"https://xxxxxx"},"code_type":{"s":"QR_CODE"},"count":{"i":12345},"source":{"s":"scanner"},"sum":{"d":12345.123},"type":{"s":"URI"}},"properties":{"country":"yyyyyy","name":"xxxx"},"timestamp":1683608090000},{"event":"scanSucceed4","info":{"adId":"111111", | 
  
    
      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
    
  
  
    
  | package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "math/big" | |
| "sync" | |
| "github.com/ethereum/go-ethereum/common" | 
  
    
      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
    
  
  
    
  | package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "sync" | |
| "time" | |
| "go.uber.org/ratelimit" | 
  
    
      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
    
  
  
    
  | [{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"maxNftSupply","type":"uint256"},{"internalType":"uint256","name":"saleStart","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"in | 
  
    
      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
    
  
  
    
  | func findNextEmpty(board [][]byte) (byte, byte, error) { | |
| for j := byte(0); j < 9; j++ { | |
| for i := byte(0); i < 9; i++ { | |
| if board[j][i] == '.' { | |
| return j, i, nil | |
| } | |
| } | |
| } | |
| return byte(0), byte(0), errors.New("no empty cell to fill in") | |
| } | 
  
    
      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
    
  
  
    
  | var ( | |
| CHROME_EXEC_PATH = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" | |
| USER_DATA_DIR = fmt.Sprintf("/Users/%s/Library/Application Support/Google/Chrome/", GetCurrentUserName()) | |
| PROFILE_DIRECTORY = "Default" | |
| ) | |
| func GetCurrentUserName() string { | |
| currentUser, _ := user.Current() | |
| username := currentUser.Username | |
| return username | 
  
    
      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 python:3.9.13-slim as python-deps | |
| RUN apt-get update -y && apt-get install -y gcc | |
| WORKDIR /usr/app | |
| RUN python -m venv /usr/app/venv | |
| ENV PATH="/usr/app/venv/bin:$PATH" | |
| COPY requirements.txt ./ | |
| RUN pip install --upgrade pip==20.1.1 && \ | |
| pip install -r requirements.txt && \ | |
| rm requirements.txt | 
NewerOlder