blob_id
large_string
repo_name
large_string
path
large_string
src_encoding
large_string
length_bytes
int64
score
float64
int_score
int64
detected_licenses
large list
license_type
large_string
text
string
download_success
bool
968961e936bff3d3b7eaf07448674161ffdb7b4b
eqmvii/websocket-test
/python_socket_test.py
UTF-8
713
2.890625
3
[]
no_license
#!/usr/bin/env python3.7 # WS client example # Run with # python3.7 python_socket_test.py print("hello, world") import asyncio import websockets # dying here: # eqmvii@eqmvii-VirtualBox:~/websocket-test$ python3.7 python_socket_test.py # hello, world # Traceback (most recent call last): # File "python_socket_te...
true
96861a1773721c509dc01385503e39c693e72e5c
camchanhjuice/Scraping-basic-with-requests-selenium
/First Crawler Self Built.py
UTF-8
1,996
2.734375
3
[]
no_license
# -*- coding: utf-8 -*- """ Created on Wed Aug 12 13:48:53 2020 @author: PC """ import re from urllib.parse import urlparse import requests from Links import * import csv main_lk = L_1 print(main_lk) bucket = [] class Crawler(): def __init__(self, inilink, stop): self.inilink = inilin...
true
404711a4f5b4263858b220b35bc02b3b2543c335
charlescerisier/HashCode
/couples.py
UTF-8
1,475
2.734375
3
[]
no_license
from parse import * from match import * deltaIncrease = 0.005 ok = [] imgListMax = [] def giveFakeSlide (slide): if (len(slide['content']) == 2): #print(slide['content'][0]['tags'] + slide['content'][1]['tags']) return {'id': slide['id'], 'content': [{'ID': 0, 'type': 'H', 'nbTags': len(set(slide['content'][0]['...
true
12449c71ffd2f0485cacd8fc9824f7cb1b0e3080
juoyi/DailyFresh
/Ly_dailyfresh/apps/user/models.py
UTF-8
1,576
2.546875
3
[ "MIT" ]
permissive
from django.db import models from django.contrib.auth.models import AbstractUser from db.base_model import BaseModel # 自定义地址的管理器类 class AddressManager(models.Manager): def get_default_address(self, user): # 查询默认的地址,查询不到会报异常 try: # default_address = Address.objects.get(user__exact=use...
true
3246110b1fe967bf3ef783c80f1c5a3c6b2f8a11
MrShepherd/job_hunter
/yilicrawler.py
UTF-8
1,132
2.78125
3
[]
no_license
from urllib import parse import md5 from crawler import Crawler class YiliCrawler(Crawler): def craw(self): data = [] tr_node = self.soup.find('div', class_='lst').find_all('tr') # print(tr_node) for tr in tr_node: # print(tr) tmp_dict = {} td =...
true
c876fa1325e3fdbac0803bdbbc739d4fac8d04c3
ysx001/lab2d
/dmlab2d/settings_helper.py
UTF-8
2,207
2.921875
3
[ "Apache-2.0" ]
permissive
# Lint as: python3 # Copyright 2020 The DMLab2D Authors. # # 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 ...
true
c8bde83cd86312bb7fc70a7a3a2ea3d5344b9327
sakethramanujam/rover
/rover/rover/tools.py
UTF-8
1,157
2.9375
3
[ "MIT" ]
permissive
import os import requests from .config import MISSIONS from datetime import datetime as dt def mission_exists(mission_id: str) -> bool: if mission_id not in MISSIONS.keys(): print(f"{mission_id} doesn't exist") return False return True def n_pages(stats_url:str): """ Finds total numbe...
true
c98a5c521dd619d32287da05995f59b5b526b9a5
Alehercimas/Casteldocs
/Castest2.py
UTF-8
1,254
3.515625
4
[]
no_license
# The first proper function using the "Casteljau" variant to plot a curve for any input # The input s is any (n * 2) sized matrix.The first and second column corresponds to the x and y coordinates respectively import numpy as np import matplotlib.pyplot as plt def castest(s): # Set up a new array pp that's "pytho...
true
c7eddda9d24ce4b2ae5949ebcb4673b6818728d6
alex-kozik/atgc-xyz
/BallTest_IvanK_Original_2005_09_26.py
UTF-8
2,965
2.984375
3
[]
no_license
from __future__ import division # make program faster try: import psyco psyco.full() except: pass # testWorldBalls needs to be at least 3000 so that there are enough identical integers in the 5%th location while calculating the "effective minimum" testWorldBalls = 6000 # MUST BE EVEN NUMBER testWorldDivisor = int(...
true
106242b0aba1f06ad3281fdf57dfc3554c5a526f
andrewdef/advent_of_code_2019
/day_19/advent_of_code_day_19_1.py
UTF-8
326
2.71875
3
[]
no_license
from common.intcodecomputer import CodeExecutor program = [] with open('input.txt') as fd: program = [int(x) for x in fd.read().split(',')] points_affected = 0 for x in range(50): for y in range(50): drone = CodeExecutor(program, memory_amount=200) points_affected += drone.run([x, y])[0] print(points_affec...
true
143174d41379eb6b3d75c1b8b5f06e8c294ace00
Irinha8/hillel_homework
/homewok13.py
UTF-8
296
2.921875
3
[]
no_license
path = "./in.txt" reader = open(path, mode="r") content = reader.read() numbers = sorted([int(number) for number in content.split()]) string_numbers = " ".join(map(str, numbers)) reader.close() path = "./out.txt" writer = open(path, mode='w') result = writer.write(string_numbers) writer.close()
true
bb8893a9d8f000ea6e8ad6a52542da0119ae5029
RYW0203/TreeLevelDML
/dpwa/control.py
UTF-8
6,485
2.65625
3
[]
no_license
from dpwa.conn import RxThread, TxThread import yaml import time from queue import Queue import logging LOGGER = logging.getLogger(__name__) class Struct: def __init__(self, **entries): self.__dict__.update(entries) def __repr__(self): return 'Struct: ' + repr(self.__dict__) class DpwaConfig...
true
594f753566136a5f0be0bd03e4bdee59910e4b2f
valboldakov/design-patterns
/python/builder/builder.py
UTF-8
951
3.859375
4
[]
no_license
class House: def __init__(self): self._description: str = "House" self._was_added = False def get_description(self) -> str: return self._description def add_thing(self, thing: str): if not self._was_added: self._description += " with " self._was_adde...
true
239476863e3c8f0934d53050295fb7207c39d0f1
deadbok/eal_programming
/ass12/prog5.py
UTF-8
1,566
3.59375
4
[]
no_license
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # The above lines tell the shell to use python as interpreter when the # script is called directly, and that this file uses utf-8 encoding, # because of the country specific letter in my surname. """ Name: Program 5 "RetailItem Class" Author: Martin Bo Kristensen Grønhold...
true
74cebd8c181ac5ac0914f47325593c2a15211c78
SiegmannGiS/master2
/amundsen/netcdf.py
UTF-8
1,634
3.0625
3
[]
no_license
from netCDF4 import Dataset, date2num, num2date import numpy as np import os from datetime import datetime class ReadNetCDF(object): def __init__(self, filename): self.fobj = Dataset(filename, mode='r') self.variables = self.fobj.variables self.dimensions = self.fobj.dimensions def cl...
true
7a042615c54ed8d5a8123a5a752e2c220a148888
smalekz/HelpMate
/BlockChain/BCh.py
UTF-8
1,629
3.25
3
[ "MIT" ]
permissive
# HelpMate BlockChain-based deal managment from easy_blockchain.wallet import Wallet from easy_blockchain.blockchain import Block, BlockChain # Create the first user helpmate = Wallet() user01 = helpmate.getPublicKey() trans01 = helpmate.create_transaction('test01', 1, 0.5, 'one message') trans02 = trans01.copy() # c...
true
80536346be308d481d384f97a35de9a2fed0c914
rajeshk738/Python_Programming
/Python_Programs/Python_Programs_UTA/Basic_Program/check_anagrams.py
UTF-8
332
4
4
[]
no_license
def anagrams_check(sample_string1, sample_string2): if sorted(sample_string1.lower()) == sorted(sample_string2.lower()): return True else: return False s1 = "rajesh" s2 = "ajrhes" if(anagrams_check(s1,s2)): print("given strings are anagrams") else: print("not anagra...
true
fb917ac3601aec4a8519ba28228d6fac412b1307
panuta/wealth-crawler
/main.py
UTF-8
1,779
2.5625
3
[ "MIT" ]
permissive
import logging from datetime import date, timedelta, datetime from flask import Flask, abort from flask import request, Response from google.appengine.api import taskqueue from utils import split_date_period, to_thai_date app = Flask(__name__) from tasks import crawl_fund @app.route('/', methods=['GET']) def home...
true
b792f21eda14576b6ad3ab60f849d67d2d3f886d
bunshue/vcs
/_4.python/__code/python3-cookbook-master/cookbook/c09/p22_context_manager.py
UTF-8
837
3.375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Topic: 定义上下文管理器的简单方法 Desc : """ import time from contextlib import contextmanager @contextmanager def timethis(label): start = time.time() try: yield finally: end = time.time() print('{}: {}'.format(label, end - start)) # Exampl...
true
95fe9c6127a6313598d82bbf5791b7b891ad58b6
osswangxining/conversationinsights-mynlu
/_pytest/test_utils.py
UTF-8
1,117
2.921875
3
[ "Apache-2.0" ]
permissive
from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import import pytest from mynlu.utils import relative_normpath, recursively_find_files, create_dir, ordered def test_relative_normpath(): assert relative_normpath("/my/te...
true
f0843e20e93b9250b998b6be36b0387a0eec258c
tonyjianchina/dataAnalay
/stockAnalize/stockAnalize/MA.py
UTF-8
681
3
3
[]
no_license
#-*-coding:utf-8-*- import pandas as pd import matplotlib.pyplot as plt # 5日,10日移动平均线 stock_data= pd.read_csv('../data/stock data/sh600106.csv') index_date = stock_data['date'] stock_data.set_index(index_date,inplace=True) # print stock_data[:4] print stock_data.index print stock_data[:5] stock_data.sort('date',inp...
true
2068fb68803890d90d99be0dd1e21ab4486be5bb
marcinliwen/rogal2
/main2.py
UTF-8
4,763
3.203125
3
[]
no_license
import sys import os import random import boss_game import screens def get_board_from_file(file_name): with open(file_name) as f: read_data = f.read() read_data = read_data.strip() board = read_data.split("\n") for i in range(len(board)): board[i] = list(board[i]) r...
true
19575a1a94cf1dddaa230e7299a8431b052ce642
alvarezGarciaMarcos/autoUniCalendar
/autoUniCalendar.py
UTF-8
5,932
2.515625
3
[]
no_license
#!/usr/bin/python3 # coding: utf-8 import re import requests import sys import urllib.parse import os if len(sys.argv) != 3: print("\n[!] Uso: python3 " + sys.argv[0] + " <JSESSIONID> <RENDERMAP.TOKEN>\n") sys.exit(1) session = sys.argv[1] rendermap = sys.argv[2] print("[i] autoUniCalendar, a script to conv...
true
e0d4b0086900a9344a1ee21aaa13546cfb26cc50
qwe321as/Python
/06_함수/Ex01_func.py
UTF-8
240
3.515625
4
[]
no_license
#-*- coding:utf-8 ''' Created on 2020. 10. 21. @author: user ''' # Ex01_func def add(a,b): print('add함수 정의') return a+b def mul(x,y): return x*y result = add(3,4) print('result:',result) print(mul(10,20))
true
642abc5b50203fc535393c4f4d29dd4a19988502
Cyclometh/knowEveShipsNow
/Html_parser.py
UTF-8
553
2.84375
3
[]
no_license
__author__ = 'frederic.drew' from lxml import etree import html2text class Html_parser: def __init__(self, html): self.etree = etree.HTML(html) self.h = html2text.HTML2Text() self.h.ignore_links = True def parse_text(self, query_string): result = list() for entry in s...
true
943a6199b734ae970f307558fa919b7ab8588126
amirphl/algorithm-design-project
/simulation/graph_coloring/runapp.py
UTF-8
1,113
2.953125
3
[]
no_license
from edge_coloring import do_edge_coloring from vertex_coloring import do_vertex_coloring input_path1 = 'test_cases/vertex/networkC.csv' # necessary for both edge coloring and vertex coloring. for vertex # coloring, put the address of graph in input_path1 and put the output of vertex coloring in java code ( result # ...
true
a38345e9c0fc1829ac8d6c239a7e98cc2e0c7b3f
BrandinO771/python-challenge
/PyBank/main.py
UTF-8
7,842
3.796875
4
[]
no_license
''' SUMMARY HW-3 | PART 1 | PYBANK | BRANDON STEINKE 8-12-19 ///////////////////////////////////////////////////////////////////////////////////////////////////// # S U M M A R Y ///////////////////////////////////////////////////////////////////////////////////...
true
8480a3023067232ff5c291ac30e1ee34ebc54ac4
fathomer/cowin-telegram
/utils.py
UTF-8
1,179
2.875
3
[]
no_license
from datetime import datetime def formatDictToMessage(input_dict) -> str: availabilty = "" if input_dict.get('available_capacity_dose1'): availabilty+=f"\nDOSE 1: {input_dict.get('available_capacity_dose1')} Available" if input_dict.get('available_capacity_dose2'): availabilty+=f"\nDOSE 2:...
true
0b61ba742cb6e245099130e76cc196ee69a47f35
VictorKenichi/ROB317_Analyse_Indexation_d-Images
/TP2/Validation/CreateCSVMontage1.py
UTF-8
757
2.5625
3
[]
no_license
import numpy as np import pandas as pd data = np.zeros(shape=(3168,2)) # Afficher les raccords data[250][0] = 1 data[479][0] = 1 data[511][0] = 1 data[600][0] = 1 data[653][0] = 1 data[691][0] = 1 data[1114][0] = 1 data[1181][0] = 1 data[1310][0] = 1 data[1415][0] = 1 data[1517][0] = 1 data[1565][0] = 1 data[1712][0]...
true
f9d83b1f233a6760c9ed835f7ac1d618105d80d2
srinivaspavan9/two-factor-authentication
/src/app.py
UTF-8
3,894
2.734375
3
[]
no_license
from flask import Flask, render_template, Response, request import cv2 import time import os import subprocess #face recognition libraries import face_recognition import numpy as np from PIL import Image, ImageDraw from IPython.display import display app = Flask(__name__) camera = cv2.VideoCapture(0) # use 0 for we...
true
5fe73ce86960f2b18e58eb7eb782a9c46c310535
opastushkov/codewars-solutions
/CodeWars/Python/5 kyu/Pete, the baker/main.py
UTF-8
105
2.515625
3
[ "MIT" ]
permissive
def cakes(recipe, available): return min([available.setdefault(x, 0)//recipe[x] for x in recipe])
true
bbbff745d95b6eb1922d4aa17ecb57bb5489c76f
imneverdied/WIFI_AUTO_RECONNECTER
/Python.ver/WIFI_AUTO_RECONNECTER.py
UTF-8
848
2.828125
3
[]
no_license
import os import sys import time def outTXT(PATH, strOUT): # 產TXT函數 f = open(PATH, 'a', encoding="UTF-8") f.write(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + " " + strOUT) f.close() def main(): ip = 'www.google.com' # 實現pingIP地址的功能,-c1指傳送報文一次,-w1指等待1秒 backinfo = os....
true
0c8fc9b7a19043de8df732c45e9fd58d81b08c1f
GatienBouyssou/Semantic
/KNN.py
UTF-8
1,157
3
3
[]
no_license
import numpy as np from sklearn.metrics import accuracy_score def main(): #load the data and labels X = np.loadtxt("./OutputDir/window_matrix.csv", delimiter=",", dtype=float) Y = np.loadtxt("./OutputDir/window_matrix_terms_labeled.txt", delimiter=",", dtype=str) #split the data between training and te...
true
313d35ca4b1294a2308b35fa093a082a552589a8
taowu750/wtml
/neural_network.py
UTF-8
20,016
2.828125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ 神经网络相关算法 """ import math from queue import Queue from typing import Union, Tuple, List, Optional, Callable, Iterable, Dict import numpy as np import scipy.optimize as op from numpy import ndarray import _inner_tools as _t import mlfunc as _mf from base import IProb...
true
fdd98f0aa7418fa7c3f7cb7eb7f21fc2e245310c
aapetukhova/prog18
/seminars/S9/mpl.py
UTF-8
291
3.359375
3
[]
no_license
import matplotlib.pyplot as plt # X и Y - координаты точек X = [1, 1.5, 2, 3, 5, 6] Y = [1.8, 1, 3.6, 2, 1, 3] plt.plot(X, Y) # рисуем график - последовательно соединяем точки с координатами из X и Y plt.show()
true
e53da2c78822dd58694fca71848c72ee0f08197b
mario45211/pythonLabs
/lab6/zad4.py
UTF-8
3,897
3.734375
4
[]
no_license
class MoneyPocket: def __init__(self, denomination): self.denomination = denomination #lista przechowujaca dozwolone nominaly monet self._money = [] #lista monet przechowywanych w obiekcie def addCoin(self, coin): if coin in self.denomination: self._money.append(coin)...
true
5dd3ff6886f9ee1b33123e0696312ed0c2e754ce
MautKaFarishta/Competitive_Programming
/CodeChef/AugLong2020/codeChef1.py
UTF-8
2,560
4.25
4
[]
no_license
#August Challenge 2020 import math try: def getScore(finalPower): if finalPower%9==0: return finalPower/9 else: return math.floor(finalPower/9)+1 def declareWinner(ChefScore,RickScore): if RickScore>ChefScore: print("0",int(ChefScore)) else: print("1",int(RickScore)) Test...
true
f6e0131d071916d9c8ca81173c6db52bee7ac202
luohuayong/scrapy
/house/house/spiders/fang.py
UTF-8
7,907
2.53125
3
[]
no_license
# -*- coding: utf-8 -*- import logging import scrapy from scrapy import Request class FangSpider(scrapy.Spider): name = 'fang' allowed_domains = ['fang.com'] # start_urls = ['http://esf.wuhan.fang.com/', # 'http://esf.wuhan.fang.com/house/i31/'] base_url = 'http://esf.wuhan.fang.com/...
true
8c10c7794781d8b8da3b3016b55f449d6ccf6399
Sonali-Joshi-24/flask-book-review-web-app
/application.py
UTF-8
9,475
2.75
3
[]
no_license
import os import json from flask import Flask from flask import jsonify from flask import make_response from flask import session from flask import render_template from flask import redirect from flask import request from flask_session import Session from sqlalchemy import create_engine from sqlalchemy.orm import scop...
true
9b1d47ff878873c4efc6fbc679e018f31c20a888
netai/stockbag_backend
/app/models/user.py
UTF-8
1,610
2.8125
3
[ "MIT" ]
permissive
import datetime import jwt from ..extensions import db, bcrypt from ..config import Config class User(db.Model): """ User Model for storing user related details """ __tablename__ = "users" id = db.Column(db.Integer, primary_key=True, autoincrement=True) name = db.Column(db.String(255), nullable=False)...
true
aef11a06f4bee04fcb7b8b2df396ea0fcc638431
bhakunikaran/apitest
/Interview 2/2.py
UTF-8
1,514
2.8125
3
[]
no_license
from flask import Flask, redirect, url_for, request import psycopg2 import pandas import numpy def get_data(): conn = psycopg2.connect("dbname='test1' user='postgres' password='KaranS@123' host='localhost' port='5432'") cur = conn.cursor() cur.execute("SELECT key,latitude,longitude FROM mapping") data = cur.fetcha...
true
af4c454bb898151e4eb1747a8c297c684a228451
gauravj1991/python-test-ci
/testWithoutMockBTWS.py
UTF-8
882
2.890625
3
[]
no_license
import unittest from BitcoinWallet import BitcoinPricer from BitcoinServices import BitcoinValueService class BitcoinPricerTests(unittest.TestCase): __NumberOfBitcoin=2345 def setUp(self): self.btc_pricer = BitcoinPricer() def test_checkInputFormat(self): self.assertRaises(TypeError, self....
true
beff9ad446fbe99c98ea42f4da989eb4c99eba6a
tvanderplas/goblin-care
/game/jacks bucket.py
UTF-8
375
2.953125
3
[]
no_license
if __name__ == '__main__': a_bucket = "house" another_bucket = "car" rubber_chicken = "rubber_chicken" bouncy_balls = "bouncy_balls" bear_clown = "bear_clown" running_nose = "running_nose" eyeball = "eyeball" jacks_bucket = [a_bucket, another_bucket, rubber_chicken, bouncy_balls, bear_clown, running_nose, eye...
true
431ff119712500fb5f63ae0c500acc4c449a0d47
wschin/onnxmltools
/onnxmltools/utils/float16_converter.py
UTF-8
4,916
2.59375
3
[ "MIT" ]
permissive
import numpy as np from struct import unpack from ..convert.common.data_types import * def _npfloat16_to_int(np_list): ''' Convert numpy float16 to python int. :param np_list: numpy float16 list :return int_list: python int list ''' return [int(bin(_.view('H'))[2:].zfill(16), 2) for _ in np_l...
true
5241f55df3792a41fb29acd462d108700b16d54e
agronomija/Moji-prvi-projekti
/vislice/projekt-vislice.py
UTF-8
4,080
3.0625
3
[]
no_license
def vnesi_crko(prompt): x = input(prompt) while True: if len(x) == 1 and x.isalpha(): return x.lower() else: if len(x) > 1 or len(x) == 0: print('Vnesli ste preveč ali premalo črk, število črk mora biti enako 1.') if not x.isalpha(): ...
true
29b3faf13fb1e3da0af7ffac81433c792e70f69f
colm-fitzpatrick/Python-Movie-Rental
/customer.py
UTF-8
2,538
3.21875
3
[]
no_license
import sys from movie_rental import MovieRental import datetime class Customer: def __init__(self,name): """ Our constructor method which instantiates various customer objects. """ self.name = name self.movie = "" self.rentalBasis = 0 self.rentalTime = 0 s...
true
d476001552f20298c8cbe79c32e4383ef6ec7dd8
kirk86/theano
/trainer.py
UTF-8
27,843
2.609375
3
[]
no_license
import theano import theano.tensor as tt import numpy as np import timeit import inspect import os import cPickle as pickle from models import LogisticRegression from models import MultiLayerPerceptron from models import AutoEncoder from models import DenoisyAutoEncoder from models import StackedDenoisyAutoEncoder f...
true
10f3874746bbd2fb24de166cc3e72d377b858f62
GregHilston/Ping-Pong-Bot
/app.py
UTF-8
556
2.828125
3
[ "MIT" ]
permissive
from simple_slack_bot.simple_slack_bot import SimpleSlackBot simple_slack_bot = SimpleSlackBot(debug=True) @simple_slack_bot.register("message") def pong_callback(request): """This function is called every time a message is sent to a channel out Bot is in :param request: the SlackRequest we receive along wi...
true
98478ca739958e04fd872b084770de76964f47d3
SAGARDX7/python-dev
/python_bitwise_operator.py
UTF-8
176
3.109375
3
[]
no_license
a=60 b=13 print(a&b) print(a|b) print(a^b) print(a&~b) print(~a&b) print(~a&~b) print(~a|b) print(a|~b) print(~a|~b) print(~a) print(~b) print(a<<2) print(a>>2)
true
8b1a8805853bdcdcf82fe8ba11efd2fa182feb40
taovcu/Dekopon
/Helpers/CheckAns.py
UTF-8
209
2.546875
3
[ "MIT" ]
permissive
import sys sys.path.append('../') import Helpers.IO as io def checkEqual(a, b): if a == b: io.printTTS('Correct') return True else: io.printTTS('Wrong') return False
true
4c7be299f3396741f961c5734294aeb72df76562
limk0032/starter-snake-python
/server_logic.py
UTF-8
13,453
3.390625
3
[ "MIT" ]
permissive
import random from typing import List, Dict import math import numpy as np def avoid_my_neck(my_head: Dict[str, int], my_body: List[dict], possible_moves: List[str]) -> List[str]: # print(f'my_head:{my_head}, my_body:{my_body}') if {"x": my_head["x"], "y": my_head["y"] + 1} in my_body and 'up' in possible_mov...
true
4362259ef837c8daf2bdf5152bf197965eab20b7
xfqbuaa/CarND-Behavioral-Cloning-P3
/model.py
UTF-8
9,304
2.890625
3
[]
no_license
""" Udacity self driving Project 3: behavioral cloning Version 2.0 Xu fuqiang 2017.03.01 Thanks for these following exciting blogs and great ideas. https://medium.com/@ValipourMojtaba/my-approach-for-project-3-2545578a9319#.d12enp8g1 http://navoshta.com/end-to-end-deep-learning/ https://classroom.udacity.com/nanodeg...
true
b450ecd74006e2d19cbb049817f9c37587559b2c
fda-tome/n-body-simulations
/new-vers/teste.py
UTF-8
1,473
3.03125
3
[ "MIT" ]
permissive
from multiprocessing import Process, Queue import difflib, random, time def f2(wordlist, mainwordlist, q): for mainword in mainwordlist: matches = difflib.get_close_matches(mainword,wordlist,len(wordlist),0.7) q.put(matches) if __name__ == '__main__': # constants (for 50 input words, find clo...
true
d69831c5135631d47dea1b9c316085afa58a7102
carrot-garden/quant_deeplearning4j
/deeplearning4j-core/src/main/resources/scripts/plot.py
UTF-8
3,487
3.015625
3
[ "Apache-2.0" ]
permissive
import math from matplotlib.pyplot import hist, title, subplot, scatter import matplotlib.pyplot as plt import numpy as np from PIL import Image import seaborn # improves matplotlib look and feel import sys import time ''' Optimization Methods Visualalization Graph tools to help visualize how optimization is performi...
true
40914c1a5046714a1469e32427c72b6e6b197453
Aasthaengg/IBMdataset
/Python_codes/p02609/s505481028.py
UTF-8
742
2.921875
3
[]
no_license
def popcount(x): return bin(x).count("1") def solve(n): if n == 0: return 0 return 1+solve(n % popcount(n)) N = int(input()) X = input() num_x = int(X, 2) p_cnt = X.count('1') if p_cnt == 1: for i in range(N): if X[i] == '1': print(0) elif i == N-1: print...
true
f009d2d9bba60d67d179cc048917a5168a5407fe
podhmo/individual-sandbox
/daily/20181010/example_networkx/01colormap.py
UTF-8
5,231
3.125
3
[]
no_license
# Copyright (C) 2004-2018 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. import matplotlib.pyplot as plt import matplotlib.cm as cm import numpy as np from networkx import nx G = nx.lollipop_graph(4, 6) p...
true
cf4abf70b62d4b91b891dffce13d8679c4b6395a
Abhigyan-Mishra/Quantum-Animation
/my_project/tex_ploting.py
UTF-8
29,158
2.671875
3
[ "MIT" ]
permissive
from manimlib.imports import * Hadamard_1d = "" # Hadamard_2d = "\\begin{bmatrix} 1 & 1 & 1 & 1 \\\\ 1 & -1 & 1 & -1 \\\\ 1 & 1 & -1 & -1 \\\\ 1 & -1 & -1 & 1\\end{bmatrix}" Hadamard_2d = "\\frac{1}{2}\\begin{bmatrix} 1 & 1 & 1 & 1 \\\\ 1 & -1 & 1 & -1 \\\\ 1 & 1 & -1 & -1 \\\\ 1 & -1 & -1 & 1\\end{bmatrix}" C_10 ...
true
ad880118785e9391dd99abe9b7faf94c9ed6f0f6
rushioda/PIXELVALID_athena
/athena/Database/FileStager/scripts/define_local_sample
UTF-8
3,188
2.703125
3
[]
no_license
#!/usr/bin/env python # # usage: define_local_sample [-n <sampleName>] <localDirectory> [<numberCollectionsPerFile>] import sys import os import string, commands from datetime import datetime def ListFromLocal(prefix,localDir): searchcmd = "dir "+localDir rootfiles = [] for file in os.listdir(localDir): fi...
true
d03dbf0993c4365f06097f761856aef8d57e7a95
iTeam-co/pytglib
/pytglib/api/functions/delete_language_pack.py
UTF-8
916
2.828125
3
[ "MIT" ]
permissive
from ..utils import Object class DeleteLanguagePack(Object): """ Deletes all information about a language pack in the current localization target. The language pack which is currently in use (including base language pack) or is being synchronized can't be deleted. Can be called before authorization At...
true
e2f781b976b98cbb3f1a6595002210e55745b671
michalzc/pygametut
/ballgame.py
UTF-8
1,060
2.828125
3
[]
no_license
import sys, pygame import os import entities def main(argv): pygame.init() size = (width, height) = 800, 600 black = 0, 0, 0 clock = pygame.time.Clock() screen = pygame.display.set_mode(size) ball_img, _ = load_image("ball.gif") ball = entities.Ball(ball_img, size) ...
true
84b80b4a9e87b0964484cff432b400441593dfd9
MinzhengHuang/Python_Imooc
/Python_Rudiment/chapter_03/chapter_3.01.py
UTF-8
2,296
4.4375
4
[]
no_license
# coding=utf-8 # Python中数据类型 # 一、整数 # Python可以处理任意大小的整数,当然包括负整数,在Python程序中,整数的表示方法和数学上的写法一模一样,例如:1,100,-8080,0,等等。 # 计算机由于使用二进制,所以,有时候用十六进制表示整数比较方便,十六进制用0x前缀和0-9,a-f表示,例如:0xff00,0xa5b4c3d2,等等。 # 二、浮点数 # 浮点数也就是小数,之所以称为浮点数,是因为按照科学记数法表示时,一个浮点数的小数点位置是可变的,比如,1.23x10^9和12.3x10^8是相等的。浮点数可以用数学写法, # 如1.23,3.14,-9.01,等等。但是对于很大...
true
ac2ec7aa62dcf808bad2d16e140e450193436b6c
EthanW1215/home-assistant
/script/scaffold/generate.py
UTF-8
5,020
2.546875
3
[ "Apache-2.0" ]
permissive
"""Generate an integration.""" from pathlib import Path from .error import ExitApp from .model import Info TEMPLATE_DIR = Path(__file__).parent / "templates" TEMPLATE_INTEGRATION = TEMPLATE_DIR / "integration" TEMPLATE_TESTS = TEMPLATE_DIR / "tests" def generate(template: str, info: Info) -> None: """Generate a...
true
4fd9e994560ff31d8d0523886bf7c09cdfb440f9
tar-k/class-pj
/app/models.py
UTF-8
3,037
2.6875
3
[]
no_license
from sqlalchemy import (Column, String, Text, Integer, Date, Boolean, ForeignKey, create_engine) from sqlalchemy.orm import Session, relationship from sqlalchemy.ext.declarative import declarative_base import datetime engine = create_engine('sqlite:///app.db', echo=True) Base = declarative_base(bind=engine) c...
true
38eacb1ba1755a8f32800f6deae0b9e30dd300f9
lreissmueller/CECS-328
/BinaryString_Split.py
UTF-8
849
3.6875
4
[]
no_license
def binary_search_01split(arr, key, lower_bound, upper_bound): # Binary Search Algorithm mid = int((upper_bound + lower_bound) / 2) if lower_bound > upper_bound: print(f"{key} not found.") return False if key == arr[mid] and arr[mid - 1] == 0: print(f"Found {arr[mid]} at in...
true
7cecc4b5f05115de4882c983781ec83d9af46420
zman2245/EulerProjectSolutions
/EulerProject/lib/ArrayOperations.py
UTF-8
221
2.984375
3
[]
no_license
from TreeNodeNumber import TreeNodeNumber def numArrayToNodeArray(a): for i in range(len(a)): a[i] = TreeNodeNumber(a[i]) return a def strArrayToNumArray(a): for i in range(len(a)): a[i] = int(a[i]) return a
true
5950c2ddfa5807b36737d4f4c7425fc3a450f2eb
GedamuA/APP-
/TrainTestSplit.py
UTF-8
873
2.515625
3
[]
no_license
import os from random import choice import shutil import pdb imgs = [] orginalPath = "/home/gede/VcGAN/Dataset/Test_image/" forTrain = "/home/gede/VcGAN/Dataset/ForTrain/" forTest = "/home/gede/VcGAN/Dataset/ForTest/" for (dirname, dirs,files) in os.walk(orginalPath): for filename in files: im...
true
41978d354a173b1359724c263127faa820254834
Pythoneando-2021/programacionGrupo
/28-04/ejercicio_4.py
UTF-8
477
4.09375
4
[]
no_license
"""4- Solicitar el ingreso de una clave por teclado y almacenarla en una cadena de caracteres. Controlar que el string ingresado tenga entre 10 y 20 caracteres para que sea válido, en caso contrario mostrar un mensaje de error. """ password = str(input("Ingrese su clave: ")) passwordLength = len(password) if passwordL...
true
6f5aacd6e5f19d51ecf13c087ee75f72f4ffc9b5
lein-g/LiaoXuefeng_Python
/2_Python基础_5_循环.py
UTF-8
1,869
5.15625
5
[]
no_license
# -*- coding: utf-8 -*- """ 循环 为了让计算机能计算成千上万次的重复运算,我们就需要循环语句 """ # Python的循环有两种,一种是for...in循环,依次把list或tuple中的每个元素迭代出来 # for x in ...循环就是把每个元素代入变量x,然后执行缩进块的语句 names = ['Michael', 'Bob', 'Tracy'] for name in names: print(name) # 计算1-10的整数之和,可以用一个sum变量做累加 sum = 0 for x in range(11): sum = sum + x print(sum) # ...
true
cbe41526e4599992603506c1714cd240e2a8b64b
Kimyechan/codingTestPractice
/baekjun/생태학.py
UTF-8
410
3.3125
3
[]
no_license
import sys from collections import defaultdict treeSet = set() treeDict = defaultdict(int) totalCount = 0 while True: tree = sys.stdin.readline().rstrip() if tree == "": break treeDict[tree] += 1 treeSet.add(tree) totalCount += 1 treeList = list(treeSet) treeList.sort() for tree in treeLis...
true
7fee920a6bc490aff6d1001f5d0743ad8613c1f5
miyabi625/kaggle-pfs
/191217/model.py
UTF-8
1,444
3.015625
3
[]
no_license
from sklearn.ensemble import RandomForestRegressor from sklearn.metrics import mean_squared_error from sklearn.model_selection import GridSearchCV import logger import logging import numpy as np import pandas as pd class Model: #################################################### # ログ宣言 ###################...
true
4d808584f3eb0d3ac5fe782b43d2608b53595da9
marcowindt/adventOfCode2020
/day23/main.py
UTF-8
3,404
3.390625
3
[]
no_license
import os from copy import deepcopy TEST_CUPS = """389125467""" class Cup: def __init__(self, label: int, prev=None, next=None): self.label = label self.prev = prev self.next = next def __repr__(self): return "->{}".format(self.label) class Cups: def __init__(self, s...
true
1668c34b41b93688a758f23036feb2d38130af9c
MaxKim-J/Algo
/problems/202102/boj-2579-계단오르기.py
UTF-8
294
2.953125
3
[]
no_license
n = int(input()) arr = [] for _ in range(n): arr.append(int(input())) if n < 3: print(sum(arr)) exit(0) dp = [arr[0], arr[0] + arr[1], max(arr[0] + arr[2], arr[1] + arr[2])] for i in range(3, n): dp.append(max(dp[i-2] + arr[i], dp[i-3] + arr[i-1] + arr[i])) print(dp[-1])
true
fc9b8fb2eb8ce26b1f411b0806d5558f25ab7dd4
mrmh2/impip
/src/mictostack.py
UTF-8
2,227
2.6875
3
[]
no_license
#!/usr/bin/env python """mictostack.py This module acts both as part of an image processing pipeline, or a standalone executable. If run as a standalone executable, it should be called as: mictostack.py input_filename output_directory It will convert the microscope file input_filename to a stack in the directory out...
true
170bee67be06ce46162adb6fd40b505a76f94e48
victormruiz/ASIR
/LM2/python/entrega3/entrega3/ejercicio2.py
UTF-8
861
3.125
3
[]
no_license
from crypt import crypt from getpass import getpass usuario=input("Escribe el nombre de usuario: ") contraseña=getpass("Escribe la contraseña del usuario: ") banderausuario=False banderacontraseña=False contraseñaencriptada=None with open("shadow","r") as fichero: for linea in fichero: if usuario == linea.spl...
true
8ce1512368fec2b397a5943e8f0f08f346454c74
yakumo1255/jet_py
/tarkov/repositories/categories.py
UTF-8
2,457
2.578125
3
[ "MIT" ]
permissive
from typing import Dict, Iterable, List, NewType, Optional, Union import pydantic from server import db_dir from tarkov.inventory.types import TemplateId from tarkov.models import Base CategoryId = NewType("CategoryId", str) class CategoryModel(Base): Id: CategoryId ParentId: Optional[CategoryId] Icon:...
true
8ec92c979ccd536435e280d9b905dedd98d04589
olber027/AdventOfCode2017
/2017/Day 3/Day3_Part1.py
UTF-8
378
3.53125
4
[]
no_license
def square(x): return x*x targetNum = 361527 sideLength = 1 while square(sideLength) <= targetNum: sideLength += 2 targetNum -= square(sideLength - 2) corner = sideLength - 1 while targetNum > corner: corner += sideLength - 1 distanceToCorner = corner - targetNum totalDistance = int(sideLength/2) + (int(...
true
a3c3ab1eaf46cf76795010d0e7149ba4d927fed3
P-Space/Hermes-Services
/status_publishd/usr/bin/status_publishd
UTF-8
3,831
2.625
3
[]
no_license
#!/usr/bin/env python # publish to the broker import paho.mqtt.publish as publish # listen the broker for a topic import paho.mqtt.client as client # library to access website import urllib2 import time import twitter from random import randint mqtt_broker_ip = "192.168.1.5" website_url = { 'get':"http://www....
true
61140135e32af0c48787c444fa4de180f403a30b
jonmcwong/FYP_code
/ut_pytorch/main.py
UTF-8
6,257
2.578125
3
[]
no_license
import argparse from torchtext import datasets from torchtext.datasets.babi import BABI20Field from models.UTransformer import BabiUTransformer from models.common_layer import NoamOpt import torch.nn as nn import torch import numpy as np from copy import deepcopy def parse_config(): parser = argparse.ArgumentParse...
true
48df4f445cebe1d027c0d7c7fe74d4826fe4aaff
JinYeJin/algorithm-study
/November,2020~July,2021/2021-01-29/1520_김기홍_내리막길.py
UTF-8
698
3.078125
3
[]
no_license
# dfs-------------------------- import sys sys.setrecursionlimit(10000) dx = [1, -1, 0, 0] dy = [0, 0, 1, -1] m, n = map(int, input().split()) array = [] for _ in range(m): array.append(list(map(int, input().split()))) visited = [[-1] * n for _ in range(m)] def dfs(x, y): if x == m -1 and y == n - 1: ...
true
43a0599fcc1ec74f5ec4f32e99d15cce6bc8a325
husseinberk/python
/Problem 5 (3'e bölünen sayılar).py
UTF-8
78
3.625
4
[]
no_license
for i in range (0,101): if(i % 3 != 0): continue print(i)
true
5ae1762f529edbf10a753ffc21f6b41d20565234
xiaofeifu/ProductClassification
/synset_transformer.py
UTF-8
875
2.703125
3
[]
no_license
from nltk.corpus import wordnet as wn from util import remove_punctuation, remove_stopwords, load_data, write_data import unicodedata def synset_word(word): synsets = wn.synsets(word) return set().union(*[s.lemma_names() for s in synsets]) def synset_review(review): review = unicodedata.normalize('NFKD', review).e...
true
d52d6ce5b059e967a40c51508501b427a1c6882d
adrian-popa/fundamentals-of-programming
/tests/bus-tycoon/src/repositories/route_repository.py
UTF-8
806
3.28125
3
[]
no_license
from domain.route import Route class RouteRepository: def __init__(self): self.__routes = RouteRepository.read_routes_from_file('routes.txt') def get_all_routes(self): return self.__routes def get_route_by_code(self, route_code): for route in self.__routes: if route....
true
18cc57579da18c5287f46a94d2ff6160768b0300
GauravInprosys/AGS-intern-files
/Gaurav/Assignment 2/assignment2.py
UTF-8
886
2.6875
3
[ "MIT" ]
permissive
# -*- coding: utf-8 -*- """ Created on Tue Jun 1 14:48:08 2021 @author: patil """ import pyodbc as db conn = db.connect('Driver={SQL Server};''Server=DESKTOP-VI5MRAI\GAURAVPATIL;''Database=sample;''Trusted_Connection=yes;') #c.execute("SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = N'sample_copy'") ""...
true
613acabbaff11208199b600d4a75ca41c74c6621
giangdip2410/AutoML-Benchmark
/binary-classification/datasets/clean_data.py
UTF-8
1,729
3.328125
3
[ "MIT" ]
permissive
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import json from category_encoders import OneHotEncoder def preproc_data(data, features): ''' Simple preproc data:* LabelEncoded target * One Hot Encoding cat_features ...
true
2c1db689c9c1a80f781932165fcda3bde449573c
kasra82/kasra
/Password List Maker.py
UTF-8
3,236
2.859375
3
[]
no_license
import time import random import os import sys import string import winsound import strings def passlist(password) : characters = list(password) len_of_password = len(password) max_range_of_password = len_of_password ** len_of_password ** len_of_password password_list = [] password_chara...
true
feb8f10fa1641d708d79677ab9157d8b0e7930d7
MZ195/DL-Single-Neuron
/Neuron.py
UTF-8
3,418
3.90625
4
[]
no_license
import random import time import math import numpy as np class Neuron(object): def __init__(self): """ weights weights are assigned to each input to the neuron. we will start by random weights for simplicity, but there are more fine ways to choose weights. lea...
true
51c9d36190775ef56bb4d9ea656e51b6394fc5e0
hasanmubarok123/start-vs-code-on-mac
/Learn Python/tryExcept.py
UTF-8
518
4.125
4
[]
no_license
try: age = int(input("Please enter your age: ")) except ValueError: print("Hey, that wasn't a number!") else: print("I see that you are %d years old." % age) # try: # dividend = int(input("Please enter the dividend: ")) # divisor = int(input("Please enter the divisor: ")) # print("%d / %d = %f"...
true
8df8559bdc90562b8cd29b185992d54fecf61964
mayureshucsb2019/becasue_ui
/apps/app2.py
UTF-8
2,103
2.640625
3
[ "MIT" ]
permissive
import dash_core_components as dcc import dash_html_components as html import dash_bootstrap_components as dbc from dash.dependencies import Input, Output from app import app from components.navbar import nav_bar from apps import app1 header = html.Div([ dbc.Row(dbc.Col(html.H1("Machine Learning Project"))), ]) ...
true
13ecdbd7d9c5d54aaed4b14ccdd12ce12e641dd0
khprasad123/7_Segment_Display_Reader
/code.py
UTF-8
2,325
2.703125
3
[]
no_license
# Python program for Detection of a # specific color(blue here) using OpenCV with Python from backupPyimageSearch import * from usefullFunctions import * def preprocess_2(image): # %% # convert to grayscale gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) showImage(gray,"grey") # %% Apply Gaussian B...
true
810d96e0ce94ee8bda26f5edfb54a0ddf8f25908
Pathogene027/Pathogene
/attendance.py
UTF-8
377
3.921875
4
[]
no_license
number_of_days = [] numb = input('How many days do you want to add up?: ') for i in range(int(numb)): count = int(input('Enter a number and wait for prompt: ')) number_of_days.append(count) print('The total of the attendance is ' , sum(number_of_days)) divisor = len(number_of_days) average = (sum(number_of_day...
true
ee7cafa5f9ea87a7e41cbdf4d227d7452842d497
i3ef0xh4ck/mylearn
/Python基础/day014/s_26 day14作业.py
UTF-8
5,698
3.5
4
[]
no_license
""" s_26 day14作业 """ """ 1.请实现一个装饰器,限制该函数被调用的频率,如10秒一次(面试题) """ # import functools # import time # def foo(time_now): # f1 = open("time.txt","a+",encoding="utf-8") # f1.seek(0) # time_before = 0 # for i in f1: # time_before = i.strip() # time_gap = time_now - float(time_before) # print(...
true
80c6ee54fd44ff7f5999fc4317e322ecffe08455
PVequalnRT/Python_Study
/Python Lab/oop vs pp/pp.py
UTF-8
868
4.46875
4
[]
no_license
#사용자로부터 문자열을 입력받아 #대문자 -> 소문자 #소문자 -> 대문자 #그외 문자는 그대로 바꿔서 다시 문자열로 출력하는 프로그램 #===================================================== #절차지향적 구현 #대문자 -> 소문자 변환 함수 def lower(temp): return chr(temp + 32) #소문자 -> 대문자 변환 def upper(temp): return chr(temp - 32) #사용자로부터 문자열 입력받기 f_str = list(input("변환할 영문 문자열을 입력해 주세요...
true
988340e216b0447fee1d434c64b2b1432ff34716
bucharitesh/UNIV_PRAC
/HD/HD_Server.py
UTF-8
438
3.140625
3
[]
no_license
from socket import * serv_port = 5000 serv_socket = socket(AF_INET, SOCK_STREAM) serv_socket.bind(('localhost',serv_port)) serv_socket.listen(1) print("Server Ready, Shoot!") conn_socket, addr = serv_socket.accept() while True: sent = conn_socket.recv(2048).decode() print("Message received from Client>> ", ...
true
396dd804bdd6d40542db516e9182f87b7f832878
HarmonySeeker/webdav_python
/init_app/views.py
UTF-8
4,322
2.828125
3
[]
no_license
""" File serving all the functions of the WebDav web app. TSU Task """ from django.shortcuts import render from django.http import HttpResponse from rest_framework.decorators import api_view from django.core.files.storage import FileSystemStorage from wsgiref.util import FileWrapper import os SOURCE_DIR = "./init_a...
true
a96cf2b029fc0acf603f410979ad175a7fc59715
seoul-ssafy-class-2-studyclub/Algorithms-Tess
/Baekjoon/Python/4195_친구네트워크.py
UTF-8
3,461
3.359375
3
[]
no_license
''' 2 3 4 2 2 4 ''' import sys sys.stdin = open('4195.txt', 'r') # 유니온파인드! # 들어오는 정보가 한번에 들어오는게 아니라서 arr을 처음에 해놓기가 # 어려웠음. import sys input = sys.stdin.readline def find(x): if root[x] == x: # 내가 최상위 루트라면 자기자신을 부모로 가지고 있다 return x # 자기 자신을 부모로서 출력한다. else: p = find(root[x]) # 그렇지 않은 경우 x의 최상...
true
55740597bd6ef8dcce2cd270a1f45e9b38b441bb
ykyuen/pyrelic
/pyrelic/metric_v2.py
UTF-8
1,023
2.796875
3
[ "MIT" ]
permissive
class MetricV2(object): """ An object to contain the data for one time period in a "get_instance_metric_data_v2" call. The properties are dynamic and based off the field names in the XML response """ def __init__(self, timeslice, values): super(MetricV2, self).__init__() ...
true
80764aee5c96a391804c9940bd285c2f681b1d64
gorigo/Programaci-n
/Práctica 5/ejercicio 11.py
WINDOWS-1252
1,065
3.953125
4
[]
no_license
"""Sergio Rigo Garca - DAW1 - PRCTICA 5 - EJERCICIO 11:Escriu un programa per a jugar a endivinar un nombre (l'ordinador pensa el nombre i l'usuari l'ha d'endevinar). El programa comena demanant entre qu nombres est el nombre a endevinar, s'inventa un nombre a l'atzar i desprs l'usuari va probant valors i el programa...
true
b9cb0f47c6e36b34fde9404d0db61fd5a45f5365
vivac0209/BDPY0619
/demo17.py
UTF-8
814
3.109375
3
[]
no_license
import collections from pprint import pprint # 設定出閣式 該輸入的值 # 把各個課程資料輸入 裝進tuple 再print出 course = collections.namedtuple("course", ['name', 'field', 'attendee', 'remote']) poop = course(name='poop', field='python', attendee=10, remote=False) bdpy = course(name='bdpy', field='python', attendee=15, remote=True) pykt = cou...
true
b97bf20eee744c380b655dc49408af38bd7f93bd
ssssssfsdafdsaf/test
/xiaoshu.py
UTF-8
39
2.578125
3
[]
no_license
scale = 10.00 print("%0.02f%%"%scale)
true
fd1c8c9fc6a67f46f485aeea7e28b3ae505fd16e
alexfok/can_id_analysis
/count_fields.py
UTF-8
3,623
2.90625
3
[]
no_license
# # Alex Fok: Sep 2016 # Filter CAN ids from CAN capture in csv file given id appearance range # # Execution example: # python2.7 count_fields.py --f AlexTest_504_508_50Aactuator2\ 9-04-2016\ 10-15-06\ am.csv --id '525, 500, 7E0, 2222' # ('AlexTest_504_508_50Aactuator2 9-04-2016 10-15-06 am.csv', '1', '10', '525, ...
true